993 karma · joined Mar 5, 2009 (17y ago) · 117 submissions
comment 6y ago · link · parent
You had to pick where to dig test pits and how deep to dig in order to find artifacts. If you found nothing, you had to decide to either dig deeper or open a new test pit. A great lesson in how to do sampling.
comment 6y ago · link · parent
I didn't find any on ebay, but I did find a whole Sun Voyager system https://www.ebay.com/itm/WORKING-Rare-SUN-Voyager-SPARCstati... $700 just to get a keyboard is kinda pricy.
Like the author of the article, I like the Happy Hacker keyboard. It's compact, well built, the control key is in the correct place, has well placed arrow keys, and isn't overly expensive. I have (I hope) a lifetime supply of them. So long as I can get ps2 adaptors for whatever comes after USB.
comment 7y ago · link · parent
The physical Apple remotes are so terrible, I've stopped using Apple TV (all of them). The Apple remote app is better, but is useless for when you need to hit pause, as your phone has gone to sleep.
comment 7y ago · link · parent
Another factor was budgeting crawl resources. The crawler has a lot of pages to crawl and if you let it, it'd just do a deep dive on amazon.com and never come back. So dividing crawl budget between domains and subdomains is important. As noted in the article, it can be gamed so you have to guard against that algorithmically and occasionally make special cases.
Prior to the Public Suffix List (https://publicsuffix.org/) project I was using the Mozilla project's list of top level domains. I had code that would download the latest TLD list from Mozilla (and later the publicsuffix.org) and generate a trie that the blekko crawler could traverse to obtain the TLD and the subdomain. Blekko kept all sorts of data on every domain and subdomain, including (but not limited to) domain rank, host IPs, country, language, average porn score per page, etc.
My Perl TLD parsing code is here: https://github.com/randomstring/Net-Domain-PublicSuffix
Interesting aside: the TLD .US (https://en.wikipedia.org/wiki/.us) has some "weird" rules that must have seemed like a good idea when they were proposed, but complicate parsing rules. For instance in the hostname town.windermere.fl.us the "town" is significant to differentiate it from a potentially different entity hosted on co.windermere.fl.us (the county of Winermere Florida, if such a thing exists). Thankfully, few cities/counties/villages/etc use theses convoluted .us domains. Many opt for a more traditional TLD (seattle.gov for instance).
comment 7y ago · link · parent
Org-mode files are synced via Dropbox, iCloud, or WebDAV.
Having a Siri shortcut to just tell Siri to add something to my TODO list would be a nice feature. Glancing at the shortcuts API, there is an append to file feature. I might have to try to roll my own.
comment 7y ago · link · parent
Having written the robots.txt parser at Blekko, I can tell you what standards there are incomplete and inconsistent.
Robots.txt files are usually written by hand using random text editors ("/n" vs "/r/n" vs a mix of both!) by people who have no idea what a programming language grammar is. Let alone follow BNF from the RFC. There are situations where adding a newline completely negates all your rules. Specifically, newlines between useragent lines nor between useragent lines and rules.
My first inclination was to build an RFC compliant parser and point to the standard if anyone complained. However, if you start looking at a cross section of robots.txt files, you see that very few are well formed.
With the addition of sitemaps, crawl-delay, and other non-standard syntax adopted by Google, Bing, and Yahoo (RIP). Clearly the RFC is just a starting point and what ends up on website can be broken and hard to interpret the author's meaning. For example, the Google parser allows for five possible spellings of DISALLOW, including DISALLAW.
If you read a few webmaster boards, you see that many website owners don't want a lesson in Backus–Naur form and are quick to get the torches and pitchforks if they feel some crawler is wasting their precious CPU cycles or cluttering up their log files. Having a robots.txt parser that "does what the webmaster intends" is critical. Sometimes, I couldn't figure out what some particular webmaster intended, let alone write a program that could. The only solution was to draft off of Google's de facto standard.
(To the webmaster with the broken robots.txt and links on every product page with a CGI arg with "&action=DELETE" in it, we're so sorry! but... why???)
Here's the Perl for the Blekko robots.txt parser. https://github.com/randomstring/ParseRobotsTXT
comment 8y ago · link · parent
That said of all the actuaries I went to school with, none liked their jobs and all eventually moved on to do something else.
comment 8y ago · link · parent
Of course this means you have to go hiking in the cold. Totally worth it.
comment 8y ago · link · parent
https://www.goodreads.com/book/show/23168483-the-most-good-y...
It's clear that Bill and Melinda Gates are practicing effective altruism in an effort to do the most good with their money.
comment 8y ago · link · parent
How Schopenhauer Got Me Through My Mid-Life Crisis by Charles Alonso https://www.amazon.com/How-Schopenhauer-Through-Mid-Life-Cri...
It's fiction, funny, philosophical, about middle age and a quick read.
comment 9y ago · link · parent
for b in range(1, 27)
for n in range(1, 27)
if b**3 + z**3 + n**3 + o**9 == 1997
for k in (3,4)
for e in range(1, 27)
This reduces the number of innermost tests and on my laptop it runs about 18x faster than the blog's solution. That was: for k in (3,4)
for b in range(1, 27)
for e in range(1, 27)
for n in range(1, 27)
if b**3 + z**3 + n**3 + o**9 == 1997
Then I see that @eutectic did the same optimization in his Haskell code. Nice!comment 10y ago · link · parent
I bought and read the book hoping it would be suitable for my kids (10 & 13), but having half its content in footnotes killed it as a kid friendly book.
If you are looking for a good book for kids with smart female leads (a fictionalized Ada Lovelace and Marry Shelley) I highly recommend The Case of the Missing Moonstone (The Wollstonecraft Detective Agency #1) by Jordan Stratford. Probably best for ages 6-10.
comment 10y ago · link · parent
Secondly, maintaining this list is a pain. You have hundreds of two letter top level domains, one for each country. Each country with its own NIC in charge of sub-domains. Each NIC with the power to add or delete subdomains (check out https://en.wikipedia.org/wiki/.uk for just one of hundreds of examples). Some "countries" even sell off their top level domain like .nu . Then you have .us (https://en.wikipedia.org/wiki/.us) that has wild card domains like http://vil.stockbridge.mi.us/ where the vil. is fixed and part of the domain and stockbridge.mi is the important domain information. Of course they're always adding more top level domains: .ninja, .wtf, etc (maybe there is a .etc now?). Then you have all the blogging and hosting platforms that use personalized domains for hosting content. Many are listed in the publicsuffix list, but I'm guessing not all!
I ended up writing my own publicsuffix parser in PERL a few years back for the blekko search engine. The main purpose being to be able to group web pages together by site/owner. There is nothing quite like feeding every URL on the internet through your parser to find bugs and corner cases.
comment 10y ago · link · parent
comment 10y ago · link · parent
Watson, the Watson logo, Power7, DeepQA, and the IBM logo are
copyright IBM. The Watson 2016 Foundation has no affiliation
with IBM. The views and opinions expressed here in no way
represent the views, positions or opinions - expressed or
implied - by IBM or anyone else.
According to WHOIS the domain is owned by: Registrant Name: Aaron Siegel
Registrant City: Los Angeles
Registrant State/Province: Californiacomment 11y ago · link · parent
And someone who walked all of Berkeley, CA back in 2007. https://walkingberkeley.wordpress.com/
comment 11y ago · link · parent
http://www.skrenta.com/2006/12/dmoz_had_9_lives_used_up_yet....
comment 11y ago · link · parent
I think the misunderstanding of Perl is based in the "There is more than one way to do it" philosophy. A corollary to that motto could be "There is no right way to do it." Using that corollary, no matter what Perl code you look at the correctness is in the eye of the beholder.
Even looking at your own code a year later, you'll ask yourself "why did I do it that way?" This is because the Perl syntax and choice of modules is so deep and varied that you cannot help but continuously evolve your style.
It takes real world trial and error of writing and reading Perl code to build your own style and get a handle on what good, readable Perl code should be... for you.
Haters are going to hate, but Perl programmers know the power and aren't going to it give up. Winning isn't everything. Getting there first? Well, that just means you should respect your elders. :)
comment 12y ago · link · parent
Proofs are built with an adversarial mind set. Always assuming the worst possible case and proving that a theorem holds in all conditions. The "hand of god" (or in this case the game show host) doesn't move to make theorems easier to prove. That isn't the universe works!