Amy Groshek Avocation and Vocation

Broken iPhone Screen

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...

Symfony2 Snippets

Snippets and useful notes as I work with Symfony2 and learn the conventions.

Clear the cache:

app/console cache:clear

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).

Wikipedia's Sexism Debacle and Metadata

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...

URL Parameter Security

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...

Undo Force Update for IE7 Test VM

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:

  1. Press Start orb in the lower left corner of your screen.
  2. Type "appwiz.cpl" and press [ENTER].
  3. Click View installed updates.
  4. Select Windows Internet Explorer 9 in...