New Theme..
Posted by mkhairul - May 27, 2007 at 01:05:13 am - No CommentsCategories: blog
I’ve changed the theme, from Green Marinee to this, Vertigo Enhanced something. In other news, finally my domain have been renewed. Its a struggle, I dont know why, it is suppose to be fast, renewing a .com domain.
Rie Fu - Tsukiakari (Moonlight)
Posted by mkhairul - May 19, 2007 at 03:05:50 pm - No CommentsCategories: blog
Its saturday, do you know where you are? I’m at home relaxing, watching anime and surfing while listening to music.
Some opening and ending songs for anime are really good that I can’t help myself and download it. Recently I’ve been watching Darker Than Black. The ending is done by Rie Fu. The music have a nice soothing feeling about it.
Nipponsei haven’t release their version yet, I guess they’re waiting for the CD to come out which is on 23rd May. (Nipponsei is the first site that I go for my anime music fix). Hehe.
Found a site which also have a music video of the song. Still can’t find the translated lyric. I’m stuck with the tv version lyric for now.
{Words of Songs} have tremendous amount of lyrics. Keep up the good work!
Update: The lyric is available! Weeeee…
Best Practices? Well, maybe.
Posted by mkhairul - May 13, 2007 at 08:05:13 pm - No CommentsCategories: Development, blog
I’ve had postponed this thing for too long. Everytime I opened there it is, sites with best practices still hanging around because I’m too lazy to do anything about it (I use sessionsaver, firefox add-on).
Five Ways to Improve Your Perl Programming
- Cleaning up your code
- Configuration
- Logging
- Persistence
- Subclasses for Application
Some of the topic might be advance, but useful nonetheless. Stick to one coding style, documentation, make guidelines, one configuration (if there’s multiple config files put it in a folder and give obvious names). Something along those lines.
Type Safe Coding - When making a comparsion for if..else, use an identical operator (===/!==). It compares the VALUE and its TYPE.
Exceptions - Cool but dangerous
Bad Short Open Tags - Just stick with <?php. Mark my words. Heh.
Variable Injection, SQL Injection, and lots of other stuffs. PHP Best Practices.
There’s lots more, too much for today. I’ll update it later. I hope.
Update (14 / 05 / 2007, 16:15): Damn typo. Fixed Bst to Best.
Javascript getYear function
Posted by mkhairul - May 7, 2007 at 06:05:41 pm - No CommentsCategories: Development
I ran into a wall, but not too long. After a quick google I found a solution for this.
Well, the problem is, I get 107 from firefox and 2007 from IE. Huh, different browsers different implementation of javascript? Heh. I found out that I should be using:
var now = new Date();
var yr = now.getUTCFullYear();
Works like a charm. Short post. Time to go home.
Tired and weary
Posted by mkhairul - May 4, 2007 at 11:05:52 am - 3 CommentsCategories: blog
Even though the interest doesnt flicker, I sometimes fall asleep on the job. I might be the worst guy to pick for a sentry. Heh.
I was doing a light mockup for a website with database driver forms to add contents. I’m using codeigniter for it. I’m not a big fan of heavy hitters, well, maybe later.
I was typing up a url for a link management_profile_add then this link came up, <a href="<?=site_url(’content/add_newprofile_attack’)?>">Add New Profile</a>, no connection whatsoever.
It was the kind of drowsiness that when you’re watching a show, in a blink of an eye, 5 minutes have passed and wondering what the hell has happened. Sigh.
Adobe Illustrator CS2 font problem
Posted by mkhairul - May 3, 2007 at 03:05:00 pm - No CommentsCategories: Troubleshoot, blog
It’s been quite a while, again, since I last blogged. Yeah, lots of things happened. Bad week last week.
So anyway, a colleague of mine had a problem with her illustrator. I guess it must be some preferences / application data problems. I deleted the folder and restart Illustrator CS2 back. THE FONTS HAVE DISAPPEARED! Photoshop works fine. Everything else works fine. I searched and read a few posts on several forums. It seems AI CS2 had all kinds of problems.
I searched and searched.. read some 20-30 posts. Found a post that solved the problem. I tried it, downloaded Acrobat Reader 8 and installed it on my colleague’s PC and behooooold! it works. yeay!
I have no idea why the hell acrobat reader should have any kind of relationship with AI CS2. It should not! Magical it is the way of the softwares (in yoda voice).
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.
