Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kami8845
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
241.
▲
by
kami8845
14y ago
Buffering [0] and Caching [1]. The front-end specifically asks for pages in 200-chunks. So whether you slide to page 299,300 or 385, it will request 200-400 from the API. This means I can then very easily serve these requests out of Redis [
242.
▲
by
kami8845
14y ago
https://github.com/doda/rewindhn/blob/master/scrape.py#L26 This is where the scraping happens. The code is a little uglier than I'd like, but that's largely to do with the hard-extract-data from HN markup. I'll look at adding more data so
243.
▲
by
kami8845
14y ago
Hey, I commented on this a bit further down in the topic: http://www.crummy.com/2012/1/22/0
244.
▲
by
kami8845
14y ago
Hey. Lots of people suggested this so I added a notice to the blogpost to further explain why I chose these libraries: > I specifically excluded awesome libs like requests, SQLAlchemy, Flask, fabric etc. because I think they're already
245.
▲
by
kami8845
14y ago
Hey, can you talk more on that? I found it to work quite well on my machine and servers, it's also an integral part of another open source library that I'm building. [0] [0] http://github.com/doda/imagy
246.
▲
by
kami8845
14y ago
Hey Permit. This is a really good point. Looking at PyQuery's source code [0], it really does nothing in terms of parsing other than calling lxml's fromstring function and then works with the result of that when evaluating queries. So it wo
247.
▲
by
kami8845
14y ago
Hey. Author of the blog post here. I specifically excluded awesome libs like requests, SQLAlchemy, Flask, fabric etc. because I thought them too "main-stream". If you know what you're trying to do, it's almost guaranteed that you'll stumble
248.
▲
by
kami8845
14y ago
Hey before BS 4 got released I looked forward to the very same thing you're talking about, using BS on top of lxml. But it seems the performance hasn't really improved: http://www.crummy.com/2012/1/22/0
249.
▲
by
kami8845
14y ago
Sorry :( The application as it exists currently heavily relies on EJS (embedded JavaScript) templating. I originally just dumped the raw scraped HTML into the DOM but that proved to be too space-inefficient (even with gzip).
250.
▲
by
kami8845
14y ago
Hey. I built RewindHN. I created this for the HN community and I'm very happy to see so many people enjoying it :) If you have any questions about how I built this or if you'd like to suggest something new, let me know!
251.
▲
by
kami8845
14y ago
Ha, you're right. I just put up a notice for <noscripters>
252.
▲
by
kami8845
14y ago
Hm. That's weird. I'm using http://github.com/madrobby/keymaster to hook up the keys to the same function also used by the slider itself. Does the keymaster live demo at http://madrobby.github.com/keymaster/ work for you?
253.
▲
by
kami8845
14y ago
That's a good idea! I'll look at incorporating some "historic" snapshots from archive.org
254.
▲
Show HN: RewindHN - Go back in Hacker News history
(rewindhn.com)
250 points
by
kami8845
14y ago
|
51 comments
255.
▲
Thelongestdomainnameintheworldandthensomeandthensomemoreandmore
(thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com)
4 points
by
kami8845
14y ago
|
1 comments
256.
▲
by
kami8845
14y ago
I have IPython. I want Light Table as well :)
257.
▲
by
kami8845
14y ago
Any idea when we can expect first traces of python support?
258.
▲
by
kami8845
14y ago
>With regard to posting code yes I may do that. We'll see. What does it depend on?
259.
▲
by
kami8845
14y ago
I think what you mean is that anyone can break the internet (in this case a random ISP from Indonesia) and that in that case only very specific people could fix it (probably at least a senior network engineer at said ISP).
260.
▲
by
kami8845
14y ago
Your dropdowns are being hidden by the video player. To fix this you need to 1. set the `wmode` on the embed to `opaque`, though this disables some optimizations and thus takes up more CPU 2. hide the video while drop downs are active 3. (p
261.
▲
by
kami8845
14y ago
The statement can be found on http://www.apple.co.uk for anyone wondering.
262.
▲
Show HN: RewindHN
(rewindhn.com)
2 points
by
kami8845
14y ago
|
0 comments
263.
▲
by
kami8845
14y ago
One of the few times I've felt jealous as a Linux user :) Really cool, I love the a={2:42} a.values()[0]. <int completion> example. What are the limitations of such a system in Python? Are there cases where it can be wrong?
264.
▲
by
kami8845
14y ago
>It certainly doesn't cost 50,000$ to switch payment providers. Your argument is therefore invalid. Well, I certainly do apologize for "offending your intellect" and "wasting your time". But you seem to be missing that Braintree doesn't
265.
▲
by
kami8845
14y ago
Ah thanks! I knew there was some part missing to my full understanding of the term. If I were to criticize my original post, I'd say it's overly negative. My tone was dismissive and that's probably what most people found issue with. It's a
266.
▲
by
kami8845
14y ago
The thought of "middlebrow dismissals" came to mind when I saw the ensuing discussion. Now I don't think I fully understand what is meant by the term. Further googling didn't bring up anything else, but if it's meant that I simply dismiss w
267.
▲
by
kami8845
14y ago
Yup. That's what I said in the original post. This is a net-good for the startup community. It's not charity though, as they'd like to make us think.
268.
▲
by
kami8845
14y ago
I think my initial post is being misunderstood. That's probably my own fault. I like what Braintree is doing here. I don't like how they've worded it. It's as if they think their customers are dupes, stupid enough not to see that they're no
269.
▲
by
kami8845
14y ago
I tried to clearly differentiate on what I think about the offering (beneficial to the community) and how they worded their announcement (misleading). Yes, I realize the majority of my message was spent in negativity. That is something, I,
270.
▲
by
kami8845
14y ago
Competition is good for consumers. So in essence this is probably one of the positive effects Stripe has on the payments landscape. Not only are they offering a well-received service. They're also forcing their competition to come up with w
More ›