Archive for the ‘Uncategorized’ Category

I found discovered a couple sites that I want to share this morning.
The first is Commandlinefu.com. There are some really great gems here.
I also appreciate the twitter feeds for their most up voted (thus most useful) commands.
+3 votes
+10 votes
Also I’ll be watching this WP plugin. It looks very promising, but until I get some time [...]

A couple of useful snippets to use in the console ….

// sometimes you want to quickly count all elements in a page
// to see how heavy it is. when you have more elements,
// it takes longer to search all of them in your RIA
document.getElementsByTagName(‘*’).length;

// add a stylesheet dynamically
// this can be useful when diagnosing a [...]

Notes:
Marissa Mayer of Google talks about a better, faster, stronger web.
4 key elements of search
-comprehensiveness
-relevancy
-user experience
-speed
Web Index (pages) @ Google
1999 – 30,000,000
2009 – 300,000,000,000 (*10K more!)
Searches per day
1999 – 100,000
2009 – 1,000,000,000
UxD – how does Google make Google better?
A-B Testing!
Scenario: # Results: 10, 20, 30?
Users said “Give us 30 results per page”.
However, [...]

*nix Commands

In: Uncategorized

13 Aug 2009

Because I’m prone to forget some of my useful, extended, piped commands, I though I would post a few:
Search specific file types for phrases, print the line numbers, dump the errors:
find -regex ".*\.ext$" | xargs grep -n searchText 2> /dev/null
Search specific files and mod only matching files via sed (creating .old backups)
find -regex ".*\.ext$" | [...]

I picked up a few more performance tips from this article. Notably, to make links consistent by case. You’re liking already doing this as a single developer or perhaps a small team, but if there are many developers, I can imagine inconsistencies. Also you should always close your tags. If you’re writing proper [...]