January 2010
28 posts
2 tags
PHP: Custom array functions
Here are a couple of staple custom PHP array searching functions I rely on in most of my projects.
array_search with partial matches and optionally searches only the keys:
<?php
// array_search with partial matches and optional search by key
function array_find($needle, $haystack, $search_keys = false) {
if(!is_array($haystack)) return false;
foreach($haystack as $key=>$value)...
The Most Relevant Identity Work of the Decade -... →
iFixit: Apple Mac, MacBook, iPod, and iPhone... →
2D Boy: Pay-What-You-Want Birthday Sale Wrap-up →
Great statistics on a “pay want you want” pricing scheme
10/GUI →
A refreshing new take on computer GUIs as we know them.
Human 'bed-warmers' at Holiday Inn - oddstuff |... →
Haha awesome
1 tag
Making jQuery Tablesorter Markup-Friendly
The jQuery Tablesorter plugin is great as long as you don’t have any markup within your cells. It makes such a mess that I ended up disabling the plugin without knowing why it sucked.
Then I discovered the .textExtraction function within the plugin. With a little bit of tinkering it now works like a charm, and I have absolutely no clue why they didn’t use this as the default...
Add Copy To / Move To on Windows 7 or Vista... →
Also handy
Add "Take Ownership" to Explorer Right-Click... →
Handy
The 4 Big Myths of Profile Pictures « OkTrends →
That’s Gay: No Homo // Current
Enabling Telnet for Windows Vista & Windows 7 -... →
1 tag