koali

XAMPP and skype

February 12th, 2010

If you load skype before turning on your apache server, you will notice that it won’t load. Doing a port check shows that skype is listening on port 80.
Two easy fixes:
1. Quit skype and load xammp and then reload skype
OR
2. Change the port xammp is listening on

Regular expression to find <? instead of <?php

February 10th, 2010

So I was getting “Parse Error: syntax error, unexpected $end filename on line linenum” In a wordpress plugin. The file was working correctly on my live server but not on xampp and the line number was the last line of the file. A bit of googling searching pointed me to the issue being a mixture of <? and <?php.

So if you come across the issue, and don’t want to manually search through your 2000 line file to find the offending tag, the following regular expression will find those naughty <? tags
<?[^p]

Handy info for staging wordpress sites

February 10th, 2010

When setting up a wordpress site, I’ll usually develop it in a staging environment and then deploy it live. In the past i’ve been manually changing the database as per the instructions I found a couple of years ago. I decided to see if there was an easier solution and there is.
WordPress has information on changing the site url

In other wordpress tips, Xammp lite is fantastic for setting up a small little dev site locally.

Securing your swfs

January 17th, 2010

I just came across an article on creating more secure swfs from adobe.

P.S Unlike my personal blog, which has a decent amount of activity, this side of my blog has gone a bit unloved. The reason is that when I’m programming at home, I’m usually trying to solve a ‘what if’ or ‘I wonder if this is possible’ problem and when i’ve solved the problem it is usually late and I feel no urge to clean it up to show the world. Therefore I am going to aim to share links and small snippets as a reference for when I or anyone might need them later.

Resizing a bitmap using a transform matrix

January 6th, 2010

A quick example of how to clone and shrink a bitmap image, posted here for easy reference

Source code

Webdu day 2 – The wrap up

May 23rd, 2009

The day started with the Microsoft Mobile breakfast. They are starting up a service called ‘marketplace’ for windows mobile apps which is basically like the appstore for Iphone. Besides that, there wasn’t that much that was interesting.

Day 2 keynote was in 3 parts by Google, Yahoo and Microsoft about where they are going with their technologies. I honestly wasn’t that awake during the session but picked up some bits and pieces. Next I went to the google maps session. I sat up the back to listen to the stuff I didn’t know but also to check email and take a look at my trading cards. I pulled the trading cards I had collected and put together wednesday night and swapped a couple around. I didn’t even bother recalculating as I was more interested in the learning part of the day. Then I watched the session on pixel bender, which I had talked briefly about last year, but was nice to see the different ways to put it into flash and also how to use it in photoshop. I’m inspired to try to write some more filters for photoshop. Then was Mike chambers session on advanced air development. Learnt a few handy things that I’m sure will come up as problems in the future. And finally Michaels session on Binding, which was fantastic!

The wrap up of webdu is the final round table session. The panel made up of Adobe, Microsoft and Yahoo employees field questions from the audience and then try to answer as honestly as they can while following their companies marketing line. Then came the prize draws…
This year I handed in my trading cards without even calculating because I wanted to focus on the sessions. I thought I had about 300 and had hoped for maybe a prize in the top 10. Then the top 10-4 scores came up on the board and they started at 430 so I had counted myself out of the race. 3rd prize was announced, then 2nd and then first prize. I looked up at the big screen as I heard my name called out. Richard (who was sitting next to me) said he hadn’t seen anyone go as pale and then bright red as I did. First prize was an xbox360 elite with Project Gotham 4 and Gears of war!!!
An extra funny thing is that Zoe (another girl from QLD) came first last year, so now we have started something.
thatsme
This photo was taken a little bit later then the announcement when I realised my name was still up on screen and I should take a photo.

lanyard finalpanel codewarchampionsxbox

I was given a whole range of extra cards so I’m planning to share them at the brisbane adobe usergroups.