Archives for June 2011

Searching for a String in Environmental Variables in Powershell

I’ve updated the post through feedback in the comments: Regex compare on strings for Get-Variable is Where-Object -Match. So, the closest parallel to the following bash code: set | grep "Users" is the following Powershell: Get-Variable | Where-Object { $_.Value -Match "Users" } or shortened: gv | ? {$_.Value -Match "Users"} Original Post, with Updates [...]

Entropy of iPhone headphone cables (an excuse to experiment with WP-LaTeX)

Why is it that iPhone earbuds seem to tangle with so many more hopeless tangles than any other cables? Of course, this whole exercise was an excuse to play with LaTeX and the WP-LaTeX plugin. I also managed to find a nice LaTeX cheat sheet in the process.