Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
STRML
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
481.
▲
by
STRML
13y ago
Wow, I've been using require.js for more than a year and I've never seen that syntax used. `var module = require('module')` will only work if the module has already been downloaded; otherwise, there's no way it can
482.
▲
by
STRML
13y ago
This is the most classic bitcoin scam - buy with paypal, then claim you didn't receive the item. The seller has no way of proving that you did, and Paypal will rule on the buyer's side every single time. This is why trading channe
483.
▲
by
STRML
13y ago
I'm not at all a big fan of Bootstrap 3's new look, but the change to border-box alone is a great reason to use it. Applying custom styles to buttons and inputs in Bootstrap 2 is a huge pain due to box-sizing: content-box.
484.
▲
by
STRML
13y ago
I can't see all of them on a 1080p screen at 125% zoom, either.
485.
▲
by
STRML
13y ago
The low-contrast trend is really being shown here. I don't get why it's so popular. We've got left navigation with grey text on a grey background, no borders, no underlines indicating that they are link. The top bar is purple
486.
▲
by
STRML
13y ago
Yeah, I get that. It depends on how often you do web work. If you do it as often as I do, it makes a lot of sense to put in the extra effort now to streamline you work in the future. But obviously that doesn't apply to everyone.
487.
▲
by
STRML
13y ago
The timeline editing is pretty cool. But you could easily get automatic vendor prefixing with SCSS/SASS (and you should be using a compile-to-CSS language if you're doing serious web design), and automatic reloads with Vogue or Li
488.
▲
by
STRML
13y ago
If you truly believe that we're all missing the point, how do you propose it be fixed? How far down the stack do we need to start disassembling parts and rebuilding? And who, if anyone, is doing that now?
489.
▲
by
STRML
13y ago
Ah, yeah, of course. That always threw me off, I've been working too much in other languages.
490.
▲
by
STRML
13y ago
This is great and allows us to do some slicker functional code: function take(num, list) { if (num <= 0 || !list || list === []) return []; var [head, ...tail] = list; return [head].concat(take(num - 1, tail));
491.
▲
by
STRML
13y ago
The node-inspired `http-browserify` is my favorite; really nice, sane syntax for doing ajax requests that you can mix with client-side streams and transforms to do really advanced things with code that is clear and readable. Of course you h
492.
▲
by
STRML
13y ago
Could somebody help me understand how this attack would be viable? It seems like the attack has the following requirements: 1. You want a secret that appears in the response body, like a CSRF token. 2. The web server always res
493.
▲
by
STRML
13y ago
How is it that random data would only slow it down? If I add a random field to my response of variable length, say, from 0 to 50, with completely random characters, it should completely throw off this attack. The length of the output will c
494.
▲
by
STRML
13y ago
Node-fibers allows a similar thing with a pretty raw syntax. At least one clever programmer has painted over it and introduced await/defer in Node without any JS pre-processing [1]. If you enjoy CoffeeScript, Iced CoffeeScript does a g
495.
▲
by
STRML
13y ago
Maybe I'm showing my allegiance to my platform of choice, but the subtle dig on nodejs wasn't warranted on slide 25 ( http://talks.golang.org/2013/oscon-dl.slide#25 ). As everyone's pal `substack` will tel
496.
▲
by
STRML
13y ago
Actually, in SASS, border-radius is done with the syntax `+border-radius(5px)`. You're thinking of SCSS, which is much more verbose but has more similar syntax to CSS.
497.
▲
by
STRML
13y ago
That I am not sure of. At least, until now, I didn't think that it was likely for them to be checking up on that or to have that data. Now, even though I know they have the data, it seems unlikely to me that they would use it for somet
498.
▲
by
STRML
13y ago
This is not particularly surprising to me. When I was employed with the US government for a short time as a contractor during the Bradley Manning / Wikileaks mess, we were repeatedly reminded of the INFOSEC policy that restricted us fr
499.
▲
by
STRML
13y ago
Yeah, you're right - an East Coast EC2 instance is about 220ms, but it's a very stable 220. No problem using SSH through that, and you can use mosh if it really bothers you. It's really much more pleasant than I'd expect
500.
▲
by
STRML
13y ago
I live in Hong Kong, and can verify that it is absolutely a technologist's paradise and an extremely easy place to move around in. Phones are incredibly cheap; the cheapest functional Android knockoff smartphones will run you about $50
501.
▲
by
STRML
13y ago
The Android bug is quite serious - it would be trivial for a kid with a rooted phone to send himself a chat, never open it and to occasionally copy the photos out. Choosing to persist them past the visual deletion is a curious mistake.
502.
▲
by
STRML
14y ago
Airbnb gets around this by rendering their backbone.js views server-side, then pushing them out upon page load. They call it 'Rendr', which they have released [1]. [1]: https://github.com/airbnb/rendr
503.
▲
by
STRML
14y ago
They are shockingly unfit to be the largest exchange in a billion dollar market. They are amateurs at best.
504.
▲
by
STRML
14y ago
I have a 512GB SSD, a 128GB SSD, and a 128GB mSATA all in the same laptop - and I use all of them. With Steam, documents, code, VMs, and so on, I find a way to fill it up. For most people storing media, a large (~3TB) spinner is ideal, pair
505.
▲
by
STRML
14y ago
I agree, they're everywhere - but it doesn't explain this well-written RFC[1] to accompany the code. [1] http://tools.ietf.org/html/rfc6108
506.
▲
by
STRML
14y ago
Look at all the work that went into that RFC. Unbelievable that they couldn't get a half-decent developer to verify that the notification is coded well enough to even show properly .
507.
▲
by
STRML
14y ago
This code is beyond awful - it fails to display, makes endless AJAX requests, and more; here are a few fun tidbits: 1. The code is not encapsulated in an IIFE, so it clobbers any global variables (like 'image_url') in the page, breaking any
508.
▲
by
STRML
14y ago
-1 not enough jQuery
509.
▲
by
STRML
14y ago
LLJS, asm.js, & Emscripten are really moving Javascript forward at incredible speed. I wonder if these projects will affect the future of the JS spec (ECMAScript Harmony + above). It's an exciting time to be a web programmer.
510.
▲
by
STRML
14y ago
His complaints about the router also plague Backbone apps - how do you cleanly deal with users reaching the route through your app, and users navigating to a route directly? I have had some luck with Backbone.routes ( http://siong1987.com/p
More ›