Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wulczer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
wulczer
14y ago
Yeah, I agree, it's a question of cost vs benefit. A bunch of tests that check trivial cases is not helpful at all, a well-maintained suite of tests is very useful. What I mean is that a bunch of documentation that only states the obvious i
32.
▲
by
wulczer
14y ago
> Comments - like documentation - are a liability. Tests, too. But you wouldn't advocate not having tests, right?
33.
▲
by
wulczer
14y ago
Bad comments are like bad tests, they're bad. Good comments, like good tests, are a boon for complex software.
34.
▲
by
wulczer
14y ago
I think it is helpful to know if the check is just a sanity check or if there's an already known set of conditions can lead to that particular error. The function comments I also find very useful. Read a few of them and see how much informa
35.
▲
by
wulczer
14y ago
https://github.com/postgres/postgres/blob/master/src/backend... In general, most of Postgres code.
36.
▲
In which the widgets are set free
(ducksboard.com)
2 points
by
wulczer
14y ago
|
0 comments
37.
▲
by
wulczer
14y ago
So disappointed when I went to http://apc.io/products/scissors/ and got a 404 :(
38.
▲
by
wulczer
14y ago
I believe this won't work on PostgreSQL, which will always say one row has been updated, even if the new value is the same as the old value. There are numerous ways around that, from less fancy to really fancy. 1. use SELECT FOR UPDATE,
39.
▲
by
wulczer
14y ago
I just gave django.contrib.auth.tokens a read and shared my opinion on it :) I wouldn't roll my own password reset feature if I can just take the builtin one from Django, which is what I did.
40.
▲
by
wulczer
14y ago
I commented on the other thread, but will repeat here: I really like how Django handles password resets. No nonce is generated and nothing is stored. The user is emailed a link with her user ID and a token that's a hash of (last login times
41.
▲
by
wulczer
14y ago
It's interesting how differently Django handles password resets - no nonce is generated. Instead, the user is emailed a token that's just her user ID, HMAC-signed with the last login date and a secret site key. You can't generate valid rese
42.
▲
by
wulczer
14y ago
> (I'm pretty sure the same is true of Python, but I'm less confident of the specifics. I think this is a very fair issue to raise with PHP in general, though.) Yeah, Python's random module uses MT, but you can use PyCrypto, which provi
43.
▲
by
wulczer
14y ago
This is a wiki page created to discuss the steps that would have to be taken should the decision to change the name be taken. As far as I know, the core team's position is that the product is called PostgreSQL, with Postgres being an ac
44.
▲
by
wulczer
14y ago
CrowdStrike says that it hooks vfs_read and if the data read contains the line it injects into /etc/rc.local, it is removed from the read buffer. This means you could just read the file byte-by-byte (I guess runnin dd a couple of times woul
45.
▲
by
wulczer
14y ago
It can't http://git.chromium.org/gitweb/?p=chromium.git;a=blob;f=chro... (link found on some other page, can't remember where)
46.
▲
by
wulczer
14y ago
Ah, the ambiguities of the English tongue and the unaware non-native speakers that get ensnared by them! Anyway, I hope the intended meaning gets through and it was also a case of "shit, people, we need to be on this thing!". So they made
47.
▲
by
wulczer
14y ago
Oh boy, are you in for a treat then :) Let's just say that there'll be news announced next week...
48.
▲
Making Twilio calls from Zabbix
(ducksboard.com)
5 points
by
wulczer
14y ago
|
3 comments
49.
▲
by
wulczer
14y ago
Interesting: $ dig +short @8.8.8.8 google.ie 173.194.39.119 173.194.39.127 173.194.39.120 $ dig +short @ns1.farahatz.net google.ie 119.235.27.219 $ whois 119.235.27.219 (...) descr: PT. TEKNOLOGI LINTASLINK
50.
▲
by
wulczer
14y ago
Well one easy way to increase security would for this to stop running as root. Please, don't ever run your application code as root. Less so when it's facing the Internet.
51.
▲
by
wulczer
14y ago
Yep, the people that can both produce and sell are a rare and very valuable breed, if only because they can actually understand what the other marketers need (or will pay for!).
52.
▲
by
wulczer
14y ago
> Some PR or marketing guy wrote them then showed them to the person to whom they'd be attributed to get their ok I happen to know the guy that AFAIK was in charge of preparing the press release and he's actually a major contributor to
53.
▲
by
wulczer
14y ago
I've tried this with GCC 4.7.1 on Debian x86_64 and did not get it to work in constant time with -O2. I'm guessing (from the OP's usage of -install_name) that he's been compiling this on OSX. I wonder what did my compiler miss that the OP's
54.
▲
by
wulczer
14y ago
I like Matt Hempey's take on the problem: blog blog blog it all, blog it if it's big or small blog at the cineplex, blog while you're having sex blog in the locker room, babies blogging in the womb blog even if you're wrong, won't
55.
▲
by
wulczer
14y ago
That's right if you use "should" instead of "shall".
56.
▲
by
wulczer
14y ago
Still evaluating. But we definitely don't want to stay there.
57.
▲
by
wulczer
14y ago
Ouch, that's a big minus from the point of view of an European company - not having to look for another app to generate invoices or futz around with generating your own was nice. The specific issue with Recurly that we had is that they sile
58.
▲
by
wulczer
14y ago
I recommend that everyone who read this contemplates this: http://news.ycombinator.com/item?id=3889435 (AKA the voice of reason)
59.
▲
by
wulczer
14y ago
Also, i18n.
60.
▲
by
wulczer
14y ago
As we all know, every situation in life can be exhaustively and accurately resumed by an XKCD comic. Here's this thread's: http://xkcd.com/874/
More ›