Well one of my gripes with Ubuntu 9.10 ‘Karmic Koala’ has been cured at least, Firebug 1.5 now works after upgrades to Firefox 3.5.8.
Shame that I’ve found out my bash completion is broken.
Well one of my gripes with Ubuntu 9.10 ‘Karmic Koala’ has been cured at least, Firebug 1.5 now works after upgrades to Firefox 3.5.8.
Shame that I’ve found out my bash completion is broken.
Time for another phpBB hook, this time the aim is to remove the messages which irritate some people when a post has been made and instead redirect the user immediately to the default choice. A few considerations had to be made with this, firstly the administration panel is off limits as this uses messages for success and failure in some places. Secondly any page which goes back to itself by default is made confusing if there isn’t a confirmation, so these aren’t automatically redirected; a good example of this being the UCP preferences. (more…)
I recently treated myself to a new mobile phonecomputer, so I bought a Nokia N900 which eXpansys eventually shipped to me. Now to the point, you can easily share content to Facebook, Ovi, and Flickr but I maintain my own Gallery2 installation and I wanted to upload my photos there as well. Luckily the sharing infrastructure is pluggable, so all I needed was a plugin which I found.
Configuring it was a bit of a headache so here is how I did it. (more…)
I needed a way to detect if some values were serialized or not, annoyingly PHP does not provide a method for this. I’d also rather not perform unserialize() on everything to check for a serialized string in the name of efficiency, so instead I came up with a simple function to detect serialized data. The result of my endeavours is a function that checks a string for basic makers of the PHP serialization form, it only checks the variables type and not any deeper values inside arrays or objects, if this preliminary testing is successful then unserialize() is invoked to provide the final proof. The unserialized form is available as an option argument passed by reference and the return value is a boolean, true for boolean or false otherwise. You can find the function on Gist or below. (more…)
It was suggested to me to use vacuum places to improve my Firefox awesome bar performance, as I’m still using Firefox 3.0 which is packaged with Jaunty; I do have 3.5 installed I just use it for testing sites at the moment. However realising that I didn’t need an addon a single line of bash will probably do what I want I headed to Google and found an explaining it all and a suitable one-liner to optimise all my Firefox SQLite DBs.
You will need the sqlite3 package installed and you should close Firefox prior to running the command.
for i in ~/.mozilla/firefox/*/*.sqlite; do echo "VACUUM;" | sqlite3 $i ; done
Further to my entry last month about a phpBB Hook to disable the post queue for certain users, I’ve written a really quick one to enable phpBB’s debugging mode for founder users. Debug mode is usually enabled by using the constants DEBUG and DEBUG_EXTRA in the configuration file but these can be defined anywhere. The only downside debugging information will only be available after the hook is included, however this is sufficient to get the page generation time, memory usage etc. in the footer which is what I was after. (more…)
In phpBB 3.0.3 we added the possibility to queue posts of users who had a post count lower than an administrator defined threshold, this works very well at keeping spam out of the public eye on your board. But on the board I administer which is primarily for university students who all have their own university e-mail address it penalises new users who I as the board administrator trust. To get around this, I will be applying a small modification to our board during the next maintenance period which I thought I will share with you. (more…)
Since Firefox 3 scrapped the yellow address bar for SSL and TLS secured sites (i.e. https) and displays a nice green box for EV certificates I was hinted at a way to get a similar visual for non-EV certificates. You need to enter the FF configuration editor, pop about:config into your address bar, confirm you know there maybe dragons. Put browser.identity.ssl_domain_display into the filter box, double click on the result and then enter the value 2. Bingo! Job done.
I’ve been running my blog since late 2005 as such my archives had been getting a little bit unwieldy in the sidebar and stretching the page to extraordinary heights. I’ve reduced this clutter with some very small changes. First I dug around only to find out that Wordpress doesn’t support fetching the monthly archives for one year, so I had to apply some filter foomongery. I discovered somebody else has done something similar, not quite as nice personally but it works.
(more…)
Content Copyright © 2005-2009 Chris Smith. All Rights Reserved.