lunatechian (lunatech-ian)

one relating to, belonging to, or resembling lunatech

strange coding practises

Fair warning to all, heavy geek joke ahead. While reading the comp.lang.php Usenet group, I came across this exchange

ctrl+alt+delete writes: I am interested in learning PHP programming and am wondering what IDE people use to work on their projects.

Chung Leong replies to ctrl+alt+delete: I don't use an IDE at all. For my PHP projects, I get assistance from my teacher, Ms Anne Sullivan. All my coding is done by rubbing her palm and touching her elbow.

R. Rajesh Jeba Anbiah clarifies Chung Leong's answer : Chung's doctrines are sometimes too global and sometimes too local to grasp.

Defined tags for this entry:

Small courtesies

Small courtesies shown to others do add to to make big positive karma for you. And by small courtesies, I really mean the small things - like a thank you note sent to the developer who worked till midnight on debugging your site to make the Java script work on the fucked up Internet Explorer on Mac. Note to self - send thank you notes to people whose articles I find useful.
Defined tags for this entry:

Presentation for developers

Yesterday, I had to give an introduction to the LAMP stack to a group of trainees. My energy was mostly focused on the MySQL and PHP part. I had gone to the workshop with some source code examples and no slides. I am convinced that this is the best way to present talks to a group of developers i.e. using a white board and source code. Though I will not say that the trainees were hanging on to my every word, they asked question and I did not see anyone fall off to sleep :-) . I introduced them to DBDesigener, phpmyadmin, and Adodb.

It also helped that I used these tools in most of the work I do and knew them quite well. I was able to show them how they will be using them in Real Life.

Defined tags for this entry: , ,

Advanced PHP Programming impressions

Got myself "Advanced PHP Programming" by Schlossnagle. I started reading it last night, (currently on chapter 3 - "Error Handling"). Excellent book, with clear and good examples. The examples are culled from real life. In chapter 2 (Object Oriented Programming through Design Patterns), he explains how Design Patterns can be applied when making websites. It was one of those "aha!" moments. This is a book I have been looking forward to lay my hands on for a long time.

One complaint though (with the Pearsons's Low Price Edition of this book) is the pathetic quality of figures. It looks like the pages have been photocopied from their original color print.

Defined tags for this entry:

Fighting Comment spam

Wordpress has a nifty feature for fighting comment spam. It allows you to blacklist certain words (like Viagra, casinos). Any comment which has those words (either in the URL, comment body or email) is held for moderation.

However, this method is not perfect. For example, the default word list does not contain the words "poker" or "anti-wrinkle cream". I use a combination of Bloglines (my feed reader) and my "Comments RSS" feed. I have subscribed to my "Comments RSS" using Bloglines. This enables me to keep an eye on what comments have been posted on the site.

An aside: Interestingly, I have seen that the spammers target the articles which are older rather than the ones that are fresh. (i.e. my posts of November receive more spam comments as compared to the December ones). I guess, the idea is that once the articles have been moved off from the front page, not many users bother going back to the archives.
Whenever a new comment appears on the blog, I can either respond to it (if it is legitimate comment) or in a quick glance check out what new words the spammers are linking to. Add the new words to the Wordpress's blacklist, rerun the comments through the new blacklist, remove the comments that have been trapped and you are back in business with a spam-comment free blog.

Defined tags for this entry:

sending a geek on a guilt trip

One of the methods used by normal humans to send other (normal humans) on the "guilt trip" is to use the cliche "every time you do THIS or THAT god kills a kitten. Please, think of the kittens..." For an even bigger guilt-trip, you can use "every time you do THIS , somewhere a kitten gets run over by a Monster truck. given not ten minutes ago to the five year old girl standing by the side of the road, spattered, red, and crying as she fumbles with her inhaler" (Thanks to Brian Bilbrey, member of The Answer Gang for the picturesque description )

Frankly, the whole killing of the kitten part leaves me rather unmoved. Having lots of free time on my hand lately, I thought of things that would send me on a guilt trip.

  • every time you do THAT, your email id gets harvested by Mr. Joseph Adisa of Lagos, Nigeria
  • every time you do THAT, Microsoft issues ten critical updates
  • every time you do THAT, some clueless bastard says "Linux has less viruses because it is less popular " (my veins are throbbing just writing this)
  • every time you do THAT, some luser says "IE is better than Firefox since IE supports advanced features like ActiveX"
  • every time you do THAT, someone starts building a new Linux distro
I know I am not normal :-)

Defined tags for this entry: ,