All entries of my technical and business blog

Object Cache Class in PHP

Nov 16, 2010 php programming

While I’m infinitely happy that all uses of a class in PHP now are references, that’s just not good enough. Sometimes I want to use my newly created object in many different methods. I have two options. First, I could create it as a Singleton, and always call the instance getter. Or, I could use an object cache.

It's not shameful to cut your losses

Nov 9, 2010 business

One thing I’ve learned about the entrepreneurial spirit is that it leads to failure. With figures as high as 90% of businesses fail, this is something you have to get used to. Even leaders like Robert Kiyosaki mention that knowledge is what makes money - and that knowledge is gained by failure. You’ve heard the sayings before, learn from your failures…

3D walkthrough in Basic

Nov 2, 2010 programming

Just had a blast from the past… found this a while ago. This was a program I wrote way back in the days of Basic. It was a basic 3D walk through.

IEStandards.xml requests

Oct 26, 2010 misc-web

The other day, I saw some 404 errors for the file IEStandards.xml in my error logs. After a little research, I found some links here and here that lead me to believe that I had done something wrong. Let me explain…

Change the @author tag default in Eclipse PDT

Oct 22, 2010 eclipse-pdt

When creating a docblock in Eclipse PDT, if commenting is enabled, a template is inserted. This template references the $user variable which is usually set to whichever user you are logged into your machine with. You can change this variable on the command line every time you launch Eclipse if you really wanted to:

jQuery show password toggle

Oct 19, 2010 javascript jquery

More and more people are requesting that their passwords not be masked - or that they have the option to toggle them. If the visitor is using Firefox, this has been a relatively easy feat. Simply add a checkbox and change the input type on click. However, in “secure” browsers like IE, yes the security of Internet Explorer, won’t allow you to do this.