20 May 2013
This weekend I thoroughly cracked the surface of my iPhone. I placed my iPhone and wallet on the edge of the truck bed while loading for a road trip. I packed my things. I packed the dog. I packed my mug of tea. Then I drove away. About an hour later I noticed that I didn't have my wallet. I drove back, searched the house frantically, then discovered the phone and wallet on the side...
03 May 2013
Snippets and useful notes as I work with Symfony2 and learn the conventions.
Clear the cache:
If you do not flag this command for the environment it will run the command only for the dev environment (not what we want when testing CSS compression or JS minification). To clear cache for production:
app/console cache:clear --env prod
Update assets served by assetic (from your /src/... dir).
26 Apr 2013
Amy Sterling Casil has a very useful commentary on Wikipedia's feminist flub, first documented in the NYT. It's possible that allowing nonexperts to carry equal weight as content auditors can lead to these sorts of issues. But that could be perceived by some as an extremely classist opinion. I'm also not sure it's a complete explanation, and I don't believe it's worth revoking Wikipedia's trusted brand because one person messed up...
25 Apr 2013
Or, Amy Once Thought She Knew PHP
A colleague's peer review turned up a new concern for me today: restricting the format of a URL parameter in PHP. My original entry:
$param = required_param('markup', PARAM_TEXT);
And since I didn't actually need to allow alphanum, format could be restricted further:
$param = required_param('markup', PARAM_ALPHA);
Therefore somewhat inhibiting efforts of insane plotting end-user hacker from sending any...
02 Apr 2013
This morning Win 7 installed IE9 on a VM I'd intentionally put IE8 on. News to me that MS is now updating browsers for end-users. Good for them. Too bad we have missed out on it for the last 10 years.
Thankfully for Web devs, it can be undone:
- Press Start orb in the lower left corner of your screen.
- Type "appwiz.cpl" and press [ENTER].
- Click View installed updates.
- Select Windows Internet Explorer 9 in...