Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
danneu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
301.
▲
by
danneu
12y ago
It contains the foreign key data, but not the constraint. You get this: <field Field="course_id" Type="int(10)" Null="NO" Key="MUL"/> But not this: CONSTRAINT `fk_courses_off
302.
▲
by
danneu
12y ago
There was once a boy named Milo who didn't know what to do with himself — not just sometimes, but always. When he was in school he longed to be out, and when he was out he longed to be in. On the way he thought about coming home, and c
303.
▲
by
danneu
12y ago
A simple way to implement fast pagination is to set item.idx whenever you insert an item into a collection. It starts at 0 and gets incremented each time. From there, given the number of items per page, you can trivially determine which ite
304.
▲
by
danneu
12y ago
Vimperator has fuzzy matching on tab titles if you press "b": https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/sr732e...
305.
▲
by
danneu
12y ago
Thanks, just installed The Fox Only Better which restored Vimperator to its former glory. That url bar was painful. https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/u_g2cx...
306.
▲
by
danneu
12y ago
Just because we all die at the end doesn't make the tales of our lives about downfall.
307.
▲
by
danneu
12y ago
From my experience, the state of javascript for what's ostensibly the best web crawler in the world is still "it might work".
308.
▲
by
danneu
12y ago
What if you only want the id and markup of each post? Postgres 9.4 gave us json_build_object: SELECT u.name, array_agg( json_build_object( 'id', p.id, 'markup', p.markup
309.
▲
by
danneu
12y ago
Using json_build_object (Postgres 9.4) to map each username to an array of posts: SELECT json_build_object( u.username, (SELECT json_agg(p) FROM posts p WHERE u.id = p.user_id) ) FROM users u Output
310.
▲
by
danneu
12y ago
Crunchbang is the only lightweight distro that completely worked on my 2008 10" Atom netbook. I used that thing for three years when I was a student. It's my favorite distro, I'm thankful for it, and it's sad to see it c
311.
▲
by
danneu
12y ago
I tried it too. Vinegar in my hair just made it a greasy mess that now smelled like vinegar, which is pretty how you smell when you don't shower to begin with. Baking soda was necessary but didn't put a dent in the stench of vineg
312.
▲
by
danneu
12y ago
> it's hugely important to use the right equipment for a specific task Yet almost everything is built with a tool that's merely good enough for the task. Which usually makes it one of the right tools. You mention that
313.
▲
by
danneu
12y ago
> How children are supposed to not think of > computers as magic boxes if they're prohibited > from doing anything interesting on it (and that > very much includes breaking them and fixing by > th
314.
▲
by
danneu
12y ago
On the other side of the spectrum, you have large Java libraries where you need to somehow figure out which 20 classes collaborate to do a task, and the "documentation" link just drops you into one of those iframe-sidebar javadoc
315.
▲
by
danneu
12y ago
> In other words, HTTP2 sucks because it simultaneously > includes too many features, and not enough features. No, they are agreeing that it's a heap of extraneous features.
316.
▲
by
danneu
12y ago
Over the past year, I've restarted the book I'm trying to read three times because too much time will elapse. The thought of ever finishing it at all is beginning to feel satisfying.
317.
▲
by
danneu
12y ago
> Ah yes, nothing is better than waiting 5 minutes for the native > Facebook iPhone app to boot up. But seriously, I've mostly > switched from facebook to ello just because ello as a web app is > faster
318.
▲
by
danneu
12y ago
But, much slower. And you'd need to follow it with a broom to satisfy my mother's standards.
319.
▲
by
danneu
12y ago
It seems useful for unfamiliar locations and all the 3x3m locations without addresses, like where your tent is pitched or where on the trail you've fallen. I'd rather (A) read out "chair.lion.knowledge" than (B) try to f
320.
▲
by
danneu
12y ago
I'm pretty sure this library simply forks SweetAlert to use Bootstrap's markup and Less variables. So it comes out of the box plugging into Bootstrap CSS and your overrides (like, I imagine, a Bootstrap theme from bootswatch.com).
321.
▲
by
danneu
12y ago
When you want a nice looking off-the-shelf feedback modal with a simple API without depending on Bootstrap JS and the entirety of jQuery.
322.
▲
by
danneu
12y ago
swal({ title: "Click outside to close", allowOutsideClick: true })
323.
▲
by
danneu
12y ago
https://github.com/swannodette/om/wiki/Cursors
324.
▲
by
danneu
12y ago
Example of Google's Closure Compiler eliminating the memory leak: var theThing = null; function replaceThing() { theThing = { longStr: Array(1E6).join("*"), someMethod: function() { } }
325.
▲
by
danneu
12y ago
> I still need to look into some things like > how to properly shut down the `go` blocks. I have limited core.async experience, but one simple solution would be to replace `(go (while true ... (<! report-chan)))` with
326.
▲
by
danneu
12y ago
> I mean, who cares of those little differences? > When I edit a comment or something, I just hit > the preview button (or see the preview real time). That's actually a common example of when those little d
327.
▲
by
danneu
12y ago
Trading time for money is already how it works. It's the default. There's nothing more satisfying about it. We've been doing it since we got our first job sacking groceries or folding sweaters. You're paid a fixed rate b
328.
▲
by
danneu
12y ago
I own a forum that makes me $1500/month. I haven't logged in for 6 months. All the effort was done in 2007. Contract work, like 9-to-5 employment, is the opposite of what people have in mind when they say "passive income"
329.
▲
by
danneu
12y ago
Most of the effort involved just getting a workflow down, fleshing out my core `db.clj` abstractions, iterating until I understood What Not To Do, and getting a feel for Datomic's idiosyncrasies. I'd had a modicum of Datomic exper
330.
▲
by
danneu
12y ago
Yeah, Datomic returns unordered data. I use a transactor function to bump the :post/idx on post insertion. On retrieval, I naively sort by :post/idx and use `drop` (offset) and `take` (limit). When I asked in #datomic on Freenode
More ›