I'm not so sure browser choice is an accurate signal of a person's worth (In this sense, worth could mean anything).
[replace _ with * ]
:%s/_/*/g
Which is, replace all occurrences on all lines of '_' with ' *'EDIT: Talk about formatting fail...
(And you have less points than either of the ones above you? Seriously?)
Don't worry! I didn't feel like I needed to explain. But the formatting on HN is odd, and the rule on how to use asterisks is obscure and bizarre.
s|s/_/*| s/_/*|
And since I haven't debugged that regex even if it was legible, add two spaces to the beginning of a line to reproduce text verbatim. (Even if it's on one line.)Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5
vs
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5
actually the chrome figure makes sorta sense. chrome is super early adopters, so likely wealthier purchasers of high-end electronics... dunno completely pulling this outta my A$$ :-)
I remember it being used often in moderated fidonet[1] though that may have been limited to local and regional forums. Also to avoid the swear word filters on BBS chat in the 80s and very early 90s. And in some MMORPGs for the same reason circa 2000 to present.
Firefox: Geeks, Biological relatives of geeks, IT people.
Chrome: Programmers, basement dwellers, hipsters.
You just need to check if the request is coming from a T-Mobile IP, or any other GSM carrier in the USA (http://en.wikipedia.org/wiki/List_of_United_States_wireless_...).
This wouldn't work outside the USA (unless you want to research the carriers) and most people would be connected to wifi.
So, this wouldn't really work. It would be much easier with a BlackBerry as they transmit the vendorID (a type of carrierID) in the UA. You could easily check this with the IP.