Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gleitz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
gleitz
12y ago
<3 hackers <3 yoga
2.
▲
by
gleitz
14y ago
My worry is that not everyone will have python2.7 so I'd rather stick to "#!/usr/bin/env python". It would be great if this works but it doesn't #!/usr/bin/env python2
3.
▲
by
gleitz
14y ago
Nice suggestions! We've got a whole list going on at https://github.com/gleitz/howdoi/issues
4.
▲
by
gleitz
14y ago
That's a nice search tool. I found that the relevance is not quite as good as Google (for example "howdoi get referrer url php") but this could be used when you enter a query that contains symbols.
5.
▲
by
gleitz
14y ago
Thanks!
6.
▲
by
gleitz
14y ago
Excellent. Fork away!
7.
▲
by
gleitz
14y ago
Does SO provide data dumps like Wikipedia?
8.
▲
by
gleitz
14y ago
I'm not familiar with the proper way to annotate that. How would I change the hashbang? #!/usr/bin/env python
9.
▲
by
gleitz
14y ago
No way to currently contribute answers. Another commenter mentioned cheat.errtheblog.com that uses a wiki system. The downside is that when the wiki fails (like right now) the application breaks. You may want to just submit a good answer to
10.
▲
by
gleitz
14y ago
"howdoi wittgenstein" is the search of the day. Well done!
11.
▲
by
gleitz
14y ago
Indeed! If only my L1 cache were as large as my disk...
12.
▲
by
gleitz
14y ago
Ah yes I should clarify. -p2 picks the second search result from Google, not the second answer to the question. $ howdoi format dates django templates -l http://stackoverflow.com/questions/7737146/django-template-d... $ howdoi format date
13.
▲
by
gleitz
14y ago
Thanks for playing with it. Sometimes the first answer isn't the greatest but -p2 or -p3 will get it. In this case the following command gets you closer: howdoi format dates django templates -p3 Excellent idea for colorization! I've already
14.
▲
by
gleitz
14y ago
An enhancement I've been considering is noticing when users ask for a second or third answer with "-p2" or "-p3". If it happens often and the user never queries again after reading the second answer you can assume it is probably correct and
15.
▲
by
gleitz
14y ago
Although not user facing, there is also a DuckDuckGo search endpoint if you don't want to use Google for one reason or another.
16.
▲
by
gleitz
14y ago
Precisely! You can pass the "-a" flag to print the entire answer or "-l" to get the link itself. "-p2" will give the second answer. I find myself using the following command quite a bit: open `howdoi print stack trace python -l`
17.
▲
by
gleitz
14y ago
Why keep them in your brain when StackOverflow memorizes it for you?
18.
▲
Howdoi – Instant Coding Answers via the Command Line
(github.com)
245 points
by
gleitz
14y ago
|
85 comments
19.
▲
by
gleitz
15y ago
I'll be writing a series of blog posts about the architecture of the game as well as more info about the API at http://blog.wikimaze.me/ At a high level you are mostly right. The incorrect answers are generated using http://www.freebase.
20.
▲
by
gleitz
15y ago
Sure! You can go to the iframe directly at http://www.wikimaze.me/app
21.
▲
by
gleitz
15y ago
I'll be writing a blog post on the API soon. Stay tuned to http://blog.wikimaze.me
22.
▲
by
gleitz
15y ago
I would have thought that too, but I know there are some superfast edge servers that reroute to their datacenters.
23.
▲
by
gleitz
15y ago
If you want to keep your account "secure", login with Facebook, Twitter, or Google. I know that might turn some people off so I included the username login as well. Future versions will let you set an optional password to "save" the usernam
24.
▲
by
gleitz
15y ago
AppEngine all the way!
25.
▲
by
gleitz
15y ago
I hope it makes everyone filthy smart! It is running on App Engine so the server costs aren't too terrible. Half of all the proceeds go to Wikipedia for providing such great questions. https://venmo.com/gleitz?txn=pay¬e=for+awesome+
26.
▲
by
gleitz
15y ago
I hope this will be a fun way for you to discover new and interesting articles.
27.
▲
by
gleitz
15y ago
If you guess incorrectly twice, it will show you the right answer. If you click a third time, it will take you to the Wikipedia article for that answer. Sounds like you got sent to the Wikipedia article but it didn't load?
28.
▲
by
gleitz
15y ago
It saves between 10-20 questions, but it could easily go much higher. The cache.manifest says "even if I am offline, still load the page". The localStorage is a database that holds the questions. I'll be writing a series of blog posts about
29.
▲
by
gleitz
15y ago
It is also available as an app in the iTunes Store http://itunes.apple.com/us/app/wikimaze-free/id475157639?ls=... <3 HTML5 apps!
30.
▲
by
gleitz
15y ago
Great suggestion! Will add that in the next version
More ›