Disclaimer
All content on this site are my own thoughts and opinions not those of my employer or projects I contribute to.
Archives
- Months
- December 2009 (2)
- October 2009 (2)
- September 2009 (1)
- July 2009 (1)
- June 2009 (1)
- May 2009 (1)
- April 2009 (2)
- March 2009 (4)
- February 2009 (1)
- January 2009 (3)
- December 2008 (3)
- November 2008 (5)
- Years
- Months
How customer service should be
Awesome and entertaining customer service from IWOOT!
I’m sorry to hear about this, but thank you for letting us know.
I’ve just sent a request for a new one to be sent out to you, so you should receive it soon.
There’s no need to return the broken one, we wouldn’t want the posties to be carrying around broken pottery in their bags – they have enough to complain about! Just take care and dispose of it safely.
I hope this helps a wee bit?
PHP function: is_serialized()
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. Continue reading
Vacuum Firefox on Ubuntu
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
HP strikes back
Hewlett Packard, and others, strike back with ever more excessive cardboard gluttony; the Register has the details.
Home Office Gaffe
The UK Home Office published a consultation paper on the 24th April detailing their plans for draconian data retention and access rules, which will see ‘communications data’ retained by ‘communications service providers’. As concerning as the whole thing is, there was an interesting mistake I noticed.
There is a right to complain to an independent tribunal if a member of the public believes that their data has not been acquired unlawfully.
Protecting the public in a changing communications environment
Lovely double negative!
Another phpBB Hook
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. Continue reading
Posted in Code Snippets, Web, phpBB
Tagged code, hook, modification, php, phpBB, tips
Leave a comment






