CSS Layout without the hassle of div position

Tables are for tabular data. Div with CSS has been the new layout trend. With div and css, the code is much cleaner and accessible. But div positioning is something I always had problem with. But now using float attribute, I can create CSS Layout in much easier way. I just watched a very good video on google about how to easily create CSS Layout. I hope you have enough time, its about an hour long video. Check it out.

Reading about how to customize WordPress

I have been reading about WordPress this weekend. WordPress is a Web CMS that can be used to create a blog. By default, it is set to create blog. But lots of website use WordPress as the base website and customize it to create amazing websites. I still need to hone my CSS 2 skills, specially the layout skills. With a good knowledge of CSS, PHP, Photoshop and JQuery, WordPress can be customized to create very professional quality websites.

JQuery rocks !!!

JQuery is a libray of javascript functions that can be used for creating a website. Once JQuery is installed and included in your document, you have access to $ function or the jQuery(). I am reading a cookbook on JQuery on my ipod touch. Also got a cool ipod app with JQuery references. One of the syntax to use JQuery is $(element).attribute(function(){ //do something}); I never liked the use of function definition in a function parameter. Hopefully, I will start to get use to with it. JQuery website also has a lot of tutorials, demos along with its extensive documentation. Thanks to my prof Simon, I found jQuery. ..will post more about JQuery when I find something useful. http://www.jquery.com JQuery. write less do more..

Earthquake in Toronto

Wow, there was small earthquake in Toronto at about 1:40pm today. It lasted for about 10 seconds. I was not sure if the house I was in was shaking or was it really an earthquake. I was about to run out of the house but by then earthquake had stopped. So I turned on the tv and checked CP24. It was showing a live speech by Obama. As soon as Obama’s speech was over, CP24 breaking news talked about the earthquake. There were people calling CP24 about the earthquake and telling their experiences. It was funny. Why did these people call the news amidst an earthquake? and they had the phone number of CP24 handy too? wow..these people are resourceful, they can get you a phone number of the tv news in the middle of an earthquake.

Singleton Pattern

In Singleton Pattern, the class can only create a single instance. We want a class to have only a single instance for various reasons. Sometimes, we want use a global object to keep information about your program. This object should not have any copies. This information might be things like configuration of the program, or a master object that manages pools of resources. So when you need a resource, you ask the master object to get it for you. Now if there were many copies of this master object, you would not know whom to ask for that resource. This single object should not be allowed to have copies. Singleton Pattern forces this rule so that programmer doesn’t have to remember about not creating copies. Singleton pattern will create an instance if it doesn’t exist and will not create any new instance if an instance already exist. It will just return a reference to that single instance.
class ProgramConfiguration{
    public ProgramConfiguraiton(){
        //default constructor code
    }
}
[Read more…]