So working on a phpbb2 -> phpbb3 upgrade this weekend and the final part was updating the script to sync my applications user table with phpbb3, so users of my application automatically have an account on the forum with the same credentials. phpbb3 has a new password handling system so it’s not so simple to […]
webmastering
Japanese charaters in code igniter urls
Code igniter is restrictive over permitted url characters (a good thing!), and it’s simple enough to edit the permitted_uri_config option to add more charaters. However, what if you’re dealing with Japanese charaters in the url? Well (after a little searching) it turns out that this isn’t too difficult to fix as the config value is […]
setting up terminal and vim for japanese on osx
I’d hazzard a guess that there aren’t a great deal of non-japanese vi users on osx who need to work in japanese, but at the very least this will serve as a reminder for myself later on! First up, the most useful resource I found was the following page http://osksn2.hep.sci.osaka-u.ac.jp/~taku/osx/vimjp.html (thanks to Taku Yamanaka!) If […]
Facebook Apps on EC2 update
I wrote an overview on using ec2 for hosting facebook apps a few months back. I’ve been poking around a little more with EC2 lately and have a couple of items to report back. Facebook ‘hello world’ Public EC2 image I spotted this public ami for getting started with facebook, shipping with: 1. Facebook Client […]
Amazon EC2 as webhosting replacement
So I’m currently researching hosting options for our infrustructure expansion on www.theartistsweb.co.uk, we already make heavy use of S3 and so I wanted to look into taking advantage of EC2 aswell. I’m not a complete newbie to EC2 and used it to scale a popular facebook application, which worked well. However more traditional website hosting […]
WordPress SEO cheat sheet
So I’ve recently become aware of some of the SEO boo’s an out of the box wordpress install will inflict on your blog (actually I shouldn’t use inflict, because wordpress is great tool, but I’m using my poetic license :). The key problems are duplicate content and sub optimal page titles. There are probably a […]
Facebook Developer API
Hire A Facebook Developer Looking to hire a facebook developer, click here for more info. Not exactly hot off the press, but facebook have opened up their site to developers with their ‘platform’ api. This is perhaps a big step forward for social networking. They are letting any developer easily write applications that can poke […]
Url rewrite for query strings
Url Rewriting We all know and repsect the voodoo that is apache mod_rewrite, the superb apache mod that allows one to redirect/rewite urls, silently redirecting nice SEO friendly URLS to standard query string types e.g.: http://www.coolsite.com/news/coolstuff/new-url-rewriting-mod/ -> http://www.coolsite.com/?pageid=123871&catid=2432 Moving Pages One handy use of mod rewrite is when you re-organise your sites url structure, it’s […]
Converting squid log to apache format when Using Squid as an http accelerator
Introduction This article is really an extention to setting up squid as a reverse proxy, and is about my method for blending the squid log into my apache log. I must point out, that my method is rather crude and I think a better solution than my shell scripts exists, but I couldn’t find it. […]
Bash, for loops and filenames with spaces
For loops delimit the items on whitespace, so a filename like: filename with spaces.txt Will create three separate items, which in this case is not ideal: filename with spaces.txt Solution use a while loop e.g. for a file ‘list.txt’ with a list of filenames: while read filename; do ;done < list.txt