Posts Tagged ‘css’

Happy New Year from Bill

Thursday, January 1st, 2009

Hello everyone. I want to wish everyone a happy new year.

I started this blog a few months ago because I had a lot to say. I had previously been using MySpace but found it to be too impersonal and not far reaching enough. There were people requesting to be my friend who may have never even glanced at my profile. I outgrew that outfit preferring rather to post social commentary and talk about topics that people could relate to or were interested - not about what outfit I’m wearing today or if I are breakfast or not. 

Through this blog I’ve met many like-minded and interesting people and new visitors are showing up like gangbusters every day. When I started this blog I never thought I’d reach over 200 visitors total much less 200 visitors per day!

I especially want to wish those of you who I met through this blog a happy new year as well. People like Terra and Pete and the many other visitors who happen to run blogs that I visit daily.

Its a new year and that means new beginnings. As everyone knows I’ve been working tirelessly on a new web site that extends this blog. The new site will be an extension of this blog in that not only will it have the same blog you know and love but also more pages that make it an extension of my personality on the web. Some things you will see is:

  • Of course the original blog on the same topics as always
  • A feed. This will be random musings like a Tumblelog. It will contain stuff I find online, music, videos, quotes, and anything that doesn’t fit in the original blog.
  • A section about me. A short bio with links to all the social networks I’m on so you can follow me.
  • Felix and Friends. My original music will be online. You can download songs, view lyrics and photos, and find out when and where I’ll be performing next.
  • Extras. From time to time I’ll provide a download of some sort. Maybe a program I wrote or a wallpaper for your computer or a set of icons. Who knows?

Things to come in the future

I’m only one person so I could only fit a certain number of things into the site at once. What you will see are the essentials. In the future I may add:

  • Coding tutorials. 
  • Wordpress themes
  • Who knows? Ideas are welcome!

You can visit the new site at http://version2point1.tk

The site isn’t finished quite yet. I still have to work on the design. But the site itself works. I can hardly wait to show it off so I will. Since the site works but doesn’t look pretty, I want to invite everyone to visit the one part of the site that is ready for primetime. Of course the design of this part of the site will be changed to match the rest of the site when its finished but you can check it out right now.

Come follow the development of version2point1 with the version2point1 feed.

The Death of Version 2.0

Wednesday, December 24th, 2008

Fuck object oriented PHP. I’m going to do it the procedural way.

Version 2.0 is dead. But not forever. I am starting on version 2.1 first thing in the morning. I had started on the music portion of the site. Specifically the first page of the music section that displayed any news having to do with new songs, new shows, and stuff like that. I wrote the program that got and displayed the information for the page from the database but I couldn’t for the life of me get the program that let me add new information to the database working.

I decided to use an Object Oriented PHP framework called CodeIgniter instead of CakePHP because it was a little easier to understand and implement. I was able to add information to the database using CodeIgniter’s scaffolding feature which basically writes some very basic code that lets you do certain things for you. But I couldn’t use it because its not secure. Any old idiot could find out the directory it was in and edit my site without so much as a password. I’m not running Wikipedia here so in my eyes thats not cool.

I know I eventually need to learn how to use these frameworks because they truly do save you time. But I’m still a newbie to this whole PHP thing. Most PHP frameworks use the object oriented Model View Controller (MVC) approach to programming which is a huge time saver. See, Object Oriented programming whether it be in Java, Ruby, PHP, or whatever breaks up code into manageable chunks. In a very basic general way, this is how it works: You have the code that connects your program to your database seperated from the rest of the code. Then you have the code that performs the application’s functions on its own as well. And finally you have the code that displays the pages to the user somewhere else. This makes updating and upgrading very easy because all you have to do is change the code in one file it applies the changes to the entire site. It also means less code because you only have to write your functions once and reference them using (and I am speaking very generally here) the equivalent of a link or a desktop shortcut/alias to the function in the rest of your code. For example:

This is the seperated function code:

<?php
function nameofFunction() {
it does some stuff that realistically takes up like 10 lines
}
?>
Then You Reference it in another file sort of like this:
$this->get->functionName()

and it does the same thing as the 10 lines of code in the other file. Without this shortcut you’d be rewriting those 10 lines of code multiple times. Now you only have one line of code. And if you ever change the function you don’t need to go and change every reference to it as long as its name hasn’t changed.

But I’m not skilled enough for Object oriented PHP. I have to work the procedural way. The procedural way means writing all the code together and possible multiple times for things like connecting to the database which the application will do multiple times.

So first thing tomorrow morning I will be writing the code for Version 2.1. Its going to be procedural so the code is going to be a bit messy and my view code is going to have to be mixed in with the functionality but once I get the thing working all I need to do is write some CSS and its good to go. This should be a bit easier for me. But Object oriented programming is the way of the future so I will have to upgrade at some point. But not now.