Hacker News new | comments | show | ask | jobs | submit login

If anything Safari is the only browser that _could_ be _at all_ indicative of one's financial bracket...



Most browsers send the OS as part of the user agent though, which I'd assume would be a more reliable metric.


It runs on windows too, so it wouldn't be a very good indicator (assuming that you're saying the people who buy macs are more affluent than those who buy pcs).


Still checks out, Safari sends the OS in the UA string;

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


Which isn't the same as the browser being indicative of it, eh? Especially as other browsers send the OS as well.


IE6 from a non-government email address and/or not during normal corporate business hours = dirty overalls + straw hat


or grandma


s/_/ *

[replace _ with * ]


What is the world coming to, that you have to explain vi commands on HN?


That's technically just a regular expression (perl syntax). The vi equivalent would be

    :%s/_/*/g
Which is, replace all occurrences on all lines of '_' with ' *'

EDIT: Talk about formatting fail...


Isn't that actually ed/sed syntax?


What is the world coming to when a correction has to get 3 levels deep before it's actually correct on HN?

(And you have less points than either of the ones above you? Seriously?)


Indeed, quick memory recall failure on my part. It's ed syntax which bled into everything else via POSIX basic. However, given the limited number of symbols present, identification can be considered ambiguous :).


I actually couldn't get the asterisk to appear without adding text below it, and I didn't have anything else to add. So I just added an explanation.

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


I wasn't aware HN actually had formatting, I was just trying to use plaintext for emphasis... Or does it?


Text between asterisks will be in italics.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: