AllPeers an extension for Firefox will be available soon to make Firefox more powerful than just browser. Its a peer-to-peer tool which will allows to share media with friends.
Wish you all a Happy New Year. Sorry guys, I was bit stuck here and there and couldn't post lately on my blog. Not a bad start to 2006 and planning a lot for this year. Last year was awesome with adding loads of stuff in my knowledge base. Gained a lot and hoping to gain more this year too.
The nation today mourns in remembrance of the people who lost their lives in last year's Tsunami which hit the coasts of Sri Lanka. Thousands lost their lives while more people were left homeless.
Had a great time with my good old school buddies as we all met at one of my friend's place for dinner on the Christmas eve. It was fun to meet all of them as we had lot of fun talking about all the past things and the stuff we did during school days. If there is an option to goto School again I would really love to. Its a sweet part of life
Read through Rapid Web Development and Testing with Mozilla Firefox to learn more about the Web Developement tools for Firefox.
Finally the issue I had to face with switching hosts came to an end after finding where it would have gone wrong. Our client who was using the services of a leading ISP in Sri Lanka wanted to move their hosting and mail services to a different Service Provider. The client purchased the hosting A/C and requested our company to do the necessity to get things running as they didn't have that much of an experience with the setup. And I was assigned to sort things out and as usual I did the setup of the hosting and the email. I told the client to change the nameservers of the domain and they did that as well. And then to the waiting stage. It took more than two days and still the services were not up. I then tried accessing it via an anonymous proxy and it worked. I told couple of my friends to check who were living in different parts of the world and it was working for them as well. So I realized that it has to do something with the ISP's DNS records. Since this ISP covers 75% or more of Sri Lanka I should say it doesn't work for Sri Lanka.
It all got to the messy stage coz I didn't get a good response from guy I spoke to at the ISP, though I explained him that they haven't removed the DNS records. I was under pressure by the client as they were pissed off thinking that the new hosting company is screwing things up. Atlast I found a guy who is known to my friend who helped me out in solving things out. Earlier they thought that the domain was blacklisted. But to see our client hasn't informed the ISP to disconnect the DNS services. So atlast after submitting all the paperwork the ISP took the necessary steps and all the services are now working fine to all users. It was one hell of a job..
I just wrote a very basic function to handle templates which can be used in PHP to seperate PHP code and HTML code. Embedding PHP into HTML or embedding HTML into PHP is a neccessity when it comes to developing Web Applications. The common problem faced by using either of this methods is that maintaing the code becomes very painful. Web Designers who design the Webpages prefer editing only HTML code rather than messing with PHP code in it. The solution for that will be using a Template Engine. Template Engines can be used to seperate the Application Logic and the Presentation Logic which makes the code more readable. I have been using Smarty as a Template Engine for a quite a long time in my Applications. Even in this Blog Application I used Smarty. I found it a bit difficult to use Smarty for quick solutions and small websites. I wanted to write a function that will do the templating part with a very basic setup. Its more a put this here, put this there kinda template.
Here is the function I wrote to get the job done. The real deal is that it supports caching as well. The place holders on the template file will be the label enclosed with [__ and __].
This is how the template file will look like
<html> <body> <table width="100%" align="center"> <tr> <td><table width="100%" align="center"> <tr> <td><h1>[__pageHeading__]</h1></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>[__welcomeMsg__]</strong></td> </tr> <tr> <td><table width="100%" align="center"> <tr> <td width="200" align="left" valign="top" class="leftColumn">[__leftNav__] </td> <td valign="top"><table width="100%" align="center"> <tr> <td>[__bodyContent__]</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>
Just got this via email from a friend of mine. I seriously don't understand the reason and really wonder whether its a bug.. It will be great if any of the Windows or IE freaks could explain me why..
One more bug in Microsoft Windows!
This is quiet interesting….
1) Create a folder on the desktop and name it as "Notepad"
2) Open any webpage in IE and see its view source.
It's Just SILLY!!!
It has something to do with the Notepad.exe as same thing happens when I hit 'Notepad' on the Run dialog box. What I don't understand is what the hell it has to do with the folder on the desktop???
Just added few updates to my blog. Added an archive section which lists up all my previous posts as most of you were finding it difficult to read my old posts. Still the posts are categorized on monthly basis on the Monthly Archive. Trying to give a facelift to my blog. Let me come up with something really cool..
The eCarnival organized by the Computer Society of Sri Lanka was held over this weekend at the BMICH Exhibition Centre, Colombo. It didn't turn out at all from what I expected from an eCarnival. It was not informative as I expected it to be. I had a short visit on a couple of days just to check things out and was caught snooping around the Microsoft stall and was named an INTRUDER by Fiqri in his picture gallery. My buddy Charith and my Guru Fiqri were amongst the .NET User Group members who were running the show at the Microsft stall. Than the tech stuff what attracted the visitors more was the Fashion Shows and the Karaoke Competion which in my opinion have nothing to do with an eCarnival.
Myself, Charith and Fiqri at the eCarnival