I’m in the middle of updating things around here – the sidebar and navigation will stay a little broken for a bit.
Search
Categories
Archives
Meta
Latest posts from my personal blogMy Recent Tweets
Follow @gobbledygooch
I’m in the middle of updating things around here – the sidebar and navigation will stay a little broken for a bit.
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
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]
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.
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.
A quick example of how to clone and shrink a bitmap image, posted here for easy reference