Reputation
411
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 3 8
Impact
~29k people reached

  • 0 posts edited
  • 0 helpful flags
  • 24 votes cast
Apr
20
comment Writing a service to find the public IP address of a computer, from scratch
X-Forwarded-For: should only be examined by your server if you have your server behind proxies (e.g. load-balancing, like haproxy or something, or a proxy handling the https layer), since in that case, the header is provided by a proxy you trust. If the header is provided by the client it cannot be trusted and should be ignored.
Apr
6
awarded  Famous Question
Dec
3
comment Preventing javascript from grabbing arrow keys
It seems to work, but only when activated explicitly. Is there any way to have it always active on certain sites?
Dec
3
comment Preventing javascript from grabbing arrow keys
Looks promising. I'm trying it.
Nov
5
comment Preventing javascript from grabbing arrow keys
I'm not familiar with the exact mechanism by which JS steals key events, but the goal would be to prevent overriding of at least the arrow keys, with the ability to use a blacklist or whitelist approach for allowing some sites to steal them. My impression is that the ability to bind keys when a particular object (like an edit area) is focused is important, so if it's possible to allow that while forbidding it at the whole-page scope, that would greatly lessen the need for whitelisting.
Nov
5
asked Preventing javascript from grabbing arrow keys
Sep
26
comment How do I patch the shellshock vulnerability on an obsolete Ubuntu system that I can't upgrade?
A closer analogy would be telling someone experiencing a bug in GCC to try clang. Both implement the same language (with different but sometimes overlapping sets of nonstandard extensions) and it's unlikely that the actual need is for "bash" but rather for "shell interpreter".
Sep
26
answered How do I patch the shellshock vulnerability on an obsolete Ubuntu system that I can't upgrade?
Jul
23
comment Are computers with more RAM potentially faster if not all memory is usually in use?
Part of the difficulty of this question is that "in use" is difficult to define for any modern operating system with virtual memory and memory-mapped files. For example, is the code ("text") segment of an executing program "used" or "cache"?
Jun
29
comment What is the Linux command that encapsulates almost all of the other commands?
D'oh, I was going to say emacs...
Jun
23
awarded  Yearling
Jun
23
comment Force Windows to display in grayscale
You could check eBay for black-and-white monitors... ;-)
Jun
16
comment What is a external reliable IP address to ping to check if internet is available?
This question would be more answerable with some details on scope. The types of answers that might make sense for a site-local script that you can edit when necessary are going to be a lot different than the types of answers that would make sense for an embedded device (home routers, settop boxes, in-car devices, ...).
Jun
9
comment Why are special characters such as “carriage return” represented as “^M”?
Ascii DEL (^?) has nothing to do with the delete key. It's actually the standard code generated by the <--- key (also, confusingly, called backspace) on VT100-like terminals.
Jun
7
awarded  Notable Question
Jun
6
comment Why are special characters such as “carriage return” represented as “^M”?
It's not used only with letters. I would not define it as the control character with "the letter's numeric value" but rather as "xor 64". In other words, ^A is 0x41 xor 0x40, or 0x01 and ^? is 0x3F xor 0x40, or 0x7F.
May
26
comment Displaying ads over WiFi hotspot
@Chipperyman: I explained in a comment on one of the answers some of the things that could go wrong. In addition, providing modified versions of the content that users access (at least morally, and hopefully legally) nullifies his status as a common carrier. For example, as David mentioned, if one of his neighbors is downloading CP, his machines would be actively fetching, modifying, and re-serving the pages containing CP rather than just passing through packets.
May
26
awarded  Commentator
May
26
comment Displaying ads over WiFi hotspot
If you want/need to make money you should just charge them a tiny fee for access. Otherwise, drop this. It's a bad idea.
May
26
comment Displaying ads over WiFi hotspot
As an aside/additional reason not to do this, modifying the data returned by an HTTP request can introduce serious and far-reaching corruption. Imagine a non-expert updating their website who downloads their own page, modifies it, and uploads the resulting html file back to their server via ftp. You've now trashed their data; your modifications inadvertently make it back out into the wild. There are plenty of other variants on this theme.