20080530 Mental note on Safari, cookies and underscores
In short: do not use underscores for your local domains. Apparently, Safari decided to be kind of very strict, which means it will show a website whose domain name contains underscores, but will dutifully ignore every request to set cookies on it. It’s very funny because if they really wanted to be strict they should [...]
20080307 Fix for the notice errors on simplepie.inc line 5463
If you have errors like these ones… locate the function get_enclosures(), then add this before anything else: foreach(explode(’,', ‘url,type,length,bitrate,channels,expression,framerate,height,lang,medium,samplingrate,width’) as $var_name) { $$var_name = null; } This is for version 1.1! I would post this in their support forums if only I hadn’t to sign into yahoo groups and register to [...]
20071213 Get defacements, database dumps, remote shells, ownages and much more!
It works like that: you write dynamic code and allow parameters to be sent to your code. Then without any type of filtering or validation you use those raw values as parameters for your code. I’ll give you two examples so that you can get the result almost instantly: Example 1: open up your database [...]
20071211 UTF-8 checklist
Following the discussion in the previous post (Reasons for using UTF-8) I thought it could be interesting to gather a series of steps needed to get a UTF-8 friendly environment. I’m going to focus on php and mysql, because using mysql and ruby/rails and utf8 tends to be kind of easier (specially since newer Rails [...]
20071203 Reasons for using UTF-8
The subject on encoding is quite confusing and at the beginning one does never really know what are the differences between encoding types, and most importantly, what are the consequences of choosing ISO-8859 instead of UTF-8, so now that I begin to have more arguments than the Trust me, I think this is the right [...]