5,292 reputation
729
bio website vyznev.net
location Helsinki, Finland
age
visits member for 2 years, 11 months
seen Dec 15 at 23:08

I'm a PhD student in biomathematics, working on stochastic individual-based models of evolution in spatially structured populations. My other interests include cryptography, programming games and puzzles, photography and graphic design.


I'm the main author and maintainer of the Stack Overflow Unofficial Patch (SOUP), a user script for browsers with GreaseMonkey-compatible user script support (Firefox, Chrome, Opera, possibly Safari) that fixes or works around a number of outstanding issues with the Stack Exchange user interface.

I tend to answer a lot more questions than I ask. Some answers I'm rather proud of:

CC-Zero Please consider any (original) code I post to Stack Overflow and other Stack Exchange sites to be released under CC-Zero unless stated otherwise. You may do whatever you want with it and don't have to credit me in any way, although of course that would be nice.


Jun
26
comment How do you tell search engines not to index this page just yet, but maybe in the future?
@Binarysurf: According to the OP, they're using a custom script to serve dynamic content for "virtual pages" constructed out of information stored in a database (just like Wikipedia, SE and most major websites do nowadays). This does mean that "regular web server behavior" doesn't apply -- as far as the web server (Apache, IIS, nginx, etc.) is concerned, the content-generating script exists and runs, so it defaults to a "200 OK" response, unless the script tells it otherwise. I'm just suggesting that the OP should make their script send a 404 response, if there's no actual content to show.
Jun
26
answered How do you tell search engines not to index this page just yet, but maybe in the future?
Jun
25
comment 403 Error Fetching Image with JS
+1, this appears to be the correct explanation in this case. Further testing shows that the server accepts an empty referrer (-e ""), as a browser would send if you typed the image URL into the address bar, but not a referral from another site. (Also, despite what I suggested in earlier comments, the Accept header does not seem to make any difference for this site.)
Jun
25
answered What is Google's policy about separate content on same URLs in mobile and desktop versions?
Apr
25
comment Serve a different robots.txt file for every site hosted in the same directory
@EdgarQuintero: An internal rewrite, as implemented by the rewrite rules I show above, happens entirely within the webserver. A crawler requesting the URL path /robots.txt has no way of even knowing whether the content it receives comes from a file named robots.txt (as usual) or from a file named robots_ar.txt (to which the request was rewritten) or even from a script named robots.php (or even whatever.php).
Apr
25
comment Serve a different robots.txt file for every site hosted in the same directory
@EdgarQuintero: Why on earth could it not be?
Apr
25
answered Serve a different robots.txt file for every site hosted in the same directory
Apr
18
revised Too many duplicate image alt attributes. What to do?
added 52 characters in body
Apr
18
answered Too many duplicate image alt attributes. What to do?
Mar
18
comment Combine user-agents in robots.txt
The original robots.txt spec agrees: "If more than one User-agent field is present the record describes an identical access policy for more than one robot."
Mar
18
answered Are these backlinks hurting my site
Mar
5
answered Deleted page still in Google results
Feb
23
comment Submit example.com/#!/page URLs to Google
...and you're just toggling the visibility of the <li>s, rather than actually loading the content via AJAX? In that case, you could just add some code to your index.php so that, if it receives an _escaped_fragment_ parameter, it styles the matching <li> with display:block and all the others with display:none (or omits them entirely). Oh, and you probably should a) change your <title> to describe the page being shown, and b) use the <meta name="fragment" content="!"> trick for the main page.
Feb
23
comment Submit example.com/#!/page URLs to Google
"There is no way to directly submit this to Google" is kind of misleading, since, in fact, the instructions you've linked to say you should directly submit such URLs to Google in your sitemap. You just needs some extra server-side support to let Googlebot fetch them.
Feb
23
answered Submit example.com/#!/page URLs to Google
Feb
9
revised Mass deletion of spam revisions in Mediawiki
note that attachLatest.php needs the --fix parameter, per http://webmasters.stackexchange.com/review/suggested-edits/16970
Jan
27
comment Does the 'Server' header serve any purpose?
A 100-byte header, like the one quoted in the question, might well cause the combined length of the response headers and content to spill over into an extra packet. Besides, packet-counting tells the whole story only for purely latency-limited connections. In (at least partially) bandwidth-limited situations (such as slow mobile connections, or large data centers with a huge request volume), the total amount of bytes transmitted starts to matter too.
Jan
11
awarded  Yearling
Jan
10
comment What is the purpose of leading slash in HTML URLs?
@DisgruntledGoat: Probably way earlier than that. In fact, I'd go on a limb and just say "every browser ever"; that syntax has been part of the URL standard from the very beginning.
Jan
10
comment Mass deletion of spam revisions in Mediawiki
There's no point in trying to delete spam links from externallinks, since that's a redundant metadata table that's basically only used for things like Special:LinkSearch; once you've cleaned up the actual pages, you can just run rebuildall.php to wipe and rebuild it. Ditto for searchindex.