Huy Dinh - Coding magic for food Blog

Magic coding [ ninja | monkey ] seeks secret code of legends (and 3 meals a day)!
February 6, 2008

Slots Logic - a slot machine search engine

Author: Huy Dinh - Categories: PHP, Random

Previously known as Slots Boffin, Slots Logic is a website with information and reviews about slot machines. I don’t know when it was launched but is live now, and it’s pretty good.

The site is nice and colourful with good icons and graphics. My part in the site was the PHP engine that searches for specific slot machines.

So, if you want to know more about slot machines, go to http://www.slotslogic.com!

The Lynx Effect

Author: Huy Dinh - Categories: Random

Wooooh! The LynxEffect.com site is finally live after 5 months of beta test (5 months of mind changes and pain).

Actually, the site went live in early January with localised versions rolled out about 2 weeks ago.

In that time I have moved from Preloaded, so the site is no longer my pain, but I feel sorry for my ex-colleagues who are still working on it, especially Jason, who must have lost a lot of sleep over it.

Dan (the guy who built all the flash templates) got the right idea by working as a freelancer, left the project very early on. Even though he was only exposed to a short amount of time, he has had his fair share of misery.

Dan thinks that the site has a bad omen - his laptop was stolen during development, and in a separate incident, the office was broken into many laptops were stolen.

Check it out: http://www.lynxeffect.com, but be warned, the bad luck may be passed on to you too!

Spooky!

December 19, 2007

Preloaded, design agency of the year

Author: Huy Dinh - Categories: Random

Wow, Preloaded has won .net’s design agency of the year award!

Tracking crazy

Author: Huy Dinh - Categories: Flash, Random - Tags: , ,

On Axe (The Lynx Effect) yet again, this time to implement another tracking service into the flash app.

Back in March 07, it was decided that only Google Analytics would be used to track user’s journey through the site. Came July, after the site had been finished, the specifications changed, the client wanted to use Webtrends. Then, somewhere along the line Spotlight and DoubleClick was added… so, that’s 4 tracking service to track one site that doesn’t even display adverts… or… is that the next step?

Oh, I forgot to mention that Traction is also used to track interactions and data submission, making a total of 5 tracking services.

Is that an overkill or what?

Then again, the number of companies involved in the website is 6 (or so), and I suppose each want their own tracking system implemented.

November 20, 2007

Flower power drink

Author: Huy Dinh - Categories: AS2, Flash

The website for the UK’s first hibiscus flower drink has gone live!

Hib drinks, made from the hibiscus flower, is a new range of healthy super drinks has been launched, and with it, a website with lots of information and background about the health benefits of drinking the “dried calx from the hibiscus flower bush”.

I’ve spent quite a bit of time on the programming, applied the skills that I’ve learned only weeks earlier - to create a flash movie that reads data from an XML file, parse the information and format it for display and animation! The advantage of doing it this way is that it can be edited by anyone easily, without the need to republish the movie!

Anyway, check the site out here: http://www.hibdrinks.com, and look out for the drink next time you go to the supermarket.

November 16, 2007

Launchball on the shell building

Author: Huy Dinh - Categories: Random - Tags: , , , , , ,

Launch ball, if you haven’t heard of it, is a puzzle game created by some tallented people at my office. It was so popular that it crashed the server on the first day.

Today it was projected on to the shell building by the London Eye. How cool is that?

Launchball on shell building

Haven’t played it? here you go: http://www.sciencemuseum.org.uk/launchpad/launchball

Bizzarly enough, someone’s even created a walkthrough for it: http://www.facetiously.net/launchball

November 15, 2007

Time saving hack!

Author: Huy Dinh - Categories: Flash - Tags: , , ,

I was working on Axe, adding an extra link into the bottom nav... simple task!

...or it should be... but the system wasn't designed properly, links were in the wrong places in the database, the flash parsed the xml using absolute positions. The first 3 elements were ignored, they're the main sections, the next 3 were the original bottom navs, a few more elements make up forms and other areas of the site, and the last, which I've just added sits at position 11.

The original code looks similar to this:

Actionscript:
  1. for (i = 3; i <6; i++) {
  2. var element:XMLNode = xmlnode.childNodes[ i ];
  3. // blah blah
  4. }

The best practice thing to do would be to move all the bottom nav links into one section, but as usual, time, money, client - all the usual reasons means that the work had to be done yesterday, I needed to find a quick hack.

So this is what I came up with:

Actionscript:
  1. var elementIDs:Array = [3, 4, 11, 5];
  2. for (i in elementIDs) {
  3. var element:XMLNode = xmlnode.childNodes[ elementIDs[ i ] ];
  4. // blah blah
  5. }

Hard coding the posisions into an array allowed me to place the elements in any order I like, it's a good thing because the client wanted the new link between existing links.

Quite a neat trick I think!

November 9, 2007

Hello world!

Author: Huy Dinh - Categories: Random

This marks the start of my geek blog... and the end of your journey if you're reading in reverse chronological order!

I'm not much of a blogger, it takes me too long to write anything interesting, so instead, this site is for me to show off my work and achievements.

I hope to post one blog every fortnight... but that may be ambitious, though, other sections will be kept up-to-date.

It may seem like the Contact page is missing information, this means that I'm not in the market.