279 reputation
110
bio website farsightsoftware.com
location United Kingdom
age
visits member for 4 years, 1 month
seen Nov 5 at 13:45

I run Farsight Software, a software consulting firm. Good people, team approach, reasonable rates. Give us a shout on info@farsightsoftware.com.

I'm a software engineer with a particular interest in web technologies (esp. JavaScript). I also do lots of work in C#, Java, and several other languages. I've been doing this professionally for 20 some-odd years, goofing with computers for 10 years before that, but I hope I'm not this guy.

On occasion, I write up snippets of nifty tricks or techniques in my anemic little blog.


Apr
3
comment Should I block agent Wget/1.12 (linux-gnu)?
And of course, wget lets the user set the User-Agent string (it's the -U / --user-agent option), so blocking wget's default user-agent string is almost entirely useless.
Jan
14
comment Are there downsides to serving UTF-8 with a BOM?
@Rob: Thanks, but I think you're mistaken on this. Here are four tests, all with a BOM (before the doctype, where it's required to be). The ones with a doctype render in standards mode (or in IE6, as close as it gets); the ones without render in quirks mode. Tested in IE6, IE8-11, FF 20 (Linux), FF 26 (Win), Chrome 26 (Linux), Chrome 31 (Win), and Opera 12.15 (Linux & Win). I think if people are observing other results, they're probably serving the file incorrectly or some such.
Jan
14
comment Are there downsides to serving UTF-8 with a BOM?
@JukkaK.Korpela: Thanks. I have to admit having stolen the link from an SO answer, I didn't check it was up-to-date. :-)
Jan
13
comment Are there downsides to serving UTF-8 with a BOM?
GNU grep (my version, anyway, v2.9) isn't phased at all by the BOM, but I know that was just an example. I take your general point about tools, but in this day and age, plain text just isn't plain text. If I use a tool that may strip the BOM out (running a file through grep and taking the output as the starting point of a new file, for instance), it's down to me to make sure I put it back and make sure the text hasn't gotten modified inappropriately. (And similarly if I use cat to combine files and end up with BOM-in-the-middle, etc.) But again, it's a good point to raise.
Feb
15
comment Alternative to Pingdom website monitoring service
Even so, figure you consume 5 SMS messages per event, that's still 40 events worth on signup. Even if you had an outage every month, that's more than three years' worth. And an unplanned outage every month seems...too high. (For planned outages you use the API to pause monitoring.)
Jun
23
comment Any reason a site has 2 links to favicon?
Good link. According to the link, just the first one would work. (Perhaps they explicitly want to send compatible browsers the first one, and perhaps there is no /favIcon.ico at all...)
Jun
23
comment Any reason a site has 2 links to favicon?
Also useful: msdn.microsoft.com/en-us/library/ms537656(v=vs.85).aspx
Jun
23
comment Any reason a site has 2 links to favicon?
I'm not seeing the reason for the close-votes. Perhaps the phrasing isn't perfect, but it's a reasonable question: Is there a good reason why you would specify the icon twice in these two slightly-different ways?
Apr
25
comment Make all subdomains load the same page, how is it called/done?
There is, but it's more of a web server and DNS configuration thing than a programming thing. Voting to move to serverfault.com.
Apr
1
comment Is it okay to use persian utf-8 characters in our urls?
Expect this to change, though; ICANN's working hard on Internationalized Domain Names, which by their nature would require an update to the rules for URIs.
Feb
27
comment Using YouTube as a CDN
stackoverflow.com/faq
Nov
21
comment How can I show multiple ad networks on my site?
That said, Google DFP seems to do exactly that, so...
Nov
21
comment How can I show multiple ad networks on my site?
Be careful doing ad rotation with AdSense. See the program policies, specifically: "Competitive Ads and Services: ...publishers may not display Google ads or search boxes on websites that also contain other ads or services formatted to use the same layout and colours as the Google ads or search boxes on that site..." (my emphasis on "same layout"). To me this means: If you have a banner area and rotate AdSense and other ads in it, you may be banned. And it's hard to get back in.