Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benhoyt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
691.
▲
by
benhoyt
14y ago
Funny -- I've used Python and its online docs for many years and never used their search, I always use Google. :-) Google search with site:docs.python.org does a somewhat better job: http://www.google.com/#hl=en&sclient=psy-ab&q=st
692.
▲
by
benhoyt
14y ago
Yes, it'd be nice if that search went straight to the function in question -- however, it'd make the docs a lot more broken up and IMHO harder to use if each module had 15 sub-pages for the individual functions. Harder to scan or Ctrl-F on
693.
▲
by
benhoyt
14y ago
Good call. I sent an email with a UTF-8 version of his article attached to the address listed at http://samizdat.mines.edu/howto/ , but it bounced. Any ideas for how to contact him?
694.
▲
by
benhoyt
14y ago
Cheeky side note: it'd be nice if the author could program their web server to send the correct character set so that the © symbol doesn't show up as �. It's being served with: Content-Type:text/html; charset=UTF-8 whereas the ch
695.
▲
by
benhoyt
14y ago
Thanks, that's interesting. So it only kicks in when your index covers all the columns in the "what" (select) clause. That tends not to be true for tables I've designed/worked with. I guess you could index differently to take advantage of t
696.
▲
by
benhoyt
14y ago
Can you please explain index-only scans, and what the advantages are (or why this isn't the default already)?
697.
▲
by
benhoyt
14y ago
See also http://bugs.python.org/issue3974 , where someone submits a patch for namedtuple that doesn't use exec. The maintainers reject it as less clear and probably slower. I agree there is "nothing unholy in using exec", though I found th
698.
▲
by
benhoyt
14y ago
Very interesting. Reminds me of pixelsnap, an Inkscape plugin my brother wrote to do this very thing: http://code.google.com/p/pixelsnap/
699.
▲
A few little libraries we're making open source
(tech.oyster.com)
2 points
by
benhoyt
14y ago
|
0 comments
700.
▲
by
benhoyt
15y ago
Thanks -- I've used difflib several times but hadn't seen the difflib.get_close_matches() helper function.
701.
▲
by
benhoyt
15y ago
Excepting the extreme minimalism of Forth, this is the first language I'm aware of where simplicity of the implementation was a concern. Actually (and I don't have a reference now, but) Guido van Rossum specifically rejects certain speed
702.
▲
by
benhoyt
15y ago
Simple and useful overview. I find enumerate() quite useful. I should probably define generators more often. One built-in function I basically never use is zip(). I know how it's used and what it does, and I grok the names/ages types of e
703.
▲
by
benhoyt
15y ago
Not on my machine. :-) C:\>ps 'ps' is not recognized as an internal or external command, operable program or batch file. The guy why suggested using the psutil is onto something -- definitely a 3rd-party dependency, but ro
704.
▲
by
benhoyt
15y ago
Huh, interesting, and I'm surprised I hadn't heard of Fodor's. I work at http://www.oyster.com/ -- we're kind of the anti-TripAdvisor as all hotels are visited and photographed by our pro photographers and reviewers. We've found the same
705.
▲
Porting our iPad app to 3,145,728 pixels in 5 days
(tech.oyster.com)
2 points
by
benhoyt
15y ago
|
0 comments
706.
▲
Protect IP counterpoint: "Just Write a Better Bill"
(blog.redfin.com)
2 points
by
benhoyt
15y ago
|
0 comments
707.
▲
by
benhoyt
15y ago
It's not quite true to say reference counting adds overhead "for each access" -- for example, you can easily have a loop which accesses an object but doesn't modify the reference count. Reference counting adds overhead each time someone "
708.
▲
Why we built a 40TB photo server in-house instead of using S3
(tech.oyster.com)
94 points
by
benhoyt
15y ago
|
74 comments
709.
▲
by
benhoyt
15y ago
Huh, it was really interesting to me how he used a .org for his (commercial) Appointment Reminder website to get an exact match and rank #1 for that phrase on Google. To quote: 'Exact match domain names. ”Hey Patrick, how is it that with no
710.
▲
How to build a 40TB file server
(tech.oyster.com)
8 points
by
benhoyt
15y ago
|
0 comments
711.
▲
by
benhoyt
15y ago
Yeah, those are terrible letter shapes. It happens in IE8 on Windows XP for me too.
712.
▲
by
benhoyt
15y ago
And in 2011, "live in tragedy" Microsoft can render fonts sharply, Apple can't. I'm a Windows guy temporarily using a Mac to write an iPad app, and the main thing that bugs me about OS X is how fuzzy the fonts look. In Windows, my fonts loo
713.
▲
by
benhoyt
15y ago
Is it art, then, or is it making a point? I don't deny that something can be both, but it seems to me much of the "crazy modern art" you see only succeeds in making a point, not in being beautiful.
714.
▲
Building a photo search engine in Python
(tech.oyster.com)
3 points
by
benhoyt
15y ago
|
0 comments
715.
▲
by
benhoyt
15y ago
We're running on Windows, and fork isn't available there. Also, in this case AFAIK fork doesn't really apply, as we wanted to start the C++ and Python servers completely separately.
716.
▲
by
benhoyt
15y ago
Good question: In this case C++ was the server, and Python (via urllib2) was the client.
717.
▲
Cohabitation with Python and C++
(tech.oyster.com)
10 points
by
benhoyt
15y ago
|
6 comments
718.
▲
by
benhoyt
15y ago
Strange. Worked first time for me: http://i.imgur.com/JD2qb.png
719.
▲
Passing a Language through the Eye of a Needle
(queue.acm.org)
2 points
by
benhoyt
15y ago
|
0 comments
720.
▲
µA/MHz is only the beginning
(blog.brush.co.nz)
7 points
by
benhoyt
15y ago
|
1 comments
More ›