Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kosma
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
kosma
10y ago
Ansible's idempotency is an illusion. Removing an item from a playbook will practically cause it to be "forgotten" by Ansible, but left on machines where it was deployed previously. While there are mechanisms to remove stale
152.
▲
by
kosma
10y ago
pg_hba.conf is one of the reasons it took me so long to learn Postgres. Of course, now that I know it, I don't look back - but making the first step in learning a database "understand this weird model of AF_UNIX username == dbname
153.
▲
by
kosma
10y ago
Try the following in /etc/modprobe.d/blacklist.conf: blacklist i2c_hid I found this fix by accident on a Dell laptop that came with Ubuntu preloaded.
154.
▲
by
kosma
10y ago
head is line-wise. dd is byte-wise.
155.
▲
by
kosma
10y ago
There is no simple answer to this. Stack Overflow has some hints but no definite answer.
156.
▲
by
kosma
10y ago
> native block size (512 bytes for most drives these days) Not anymore. Advanced Format (4096-byte sector) hard drives have taken the market like a storm, and SSDs benefit even more from using larger I/O sizes (because erase sectors
157.
▲
by
kosma
10y ago
There's a common idiom of skipping a file header and handing off processing to some other program, like this: cat foo | ( dd bs=$HEADERSIZE skip=1 of=/dev/null; process-foo-contents )
158.
▲
by
kosma
10y ago
> D-Link is to home routers as the Trabant is to automobiles Trabant was actually a very ingenious design that solved a real problem. D-Link is an analogy of a large car company producing, over decades, model after model of Trabant - eac
159.
▲
by
kosma
10y ago
As someone who's aiming to write an lx106 backend, thanks for the writeup and for the warning. I'll now think twice (and brace for a real challenge) before starting it.
160.
▲
by
kosma
10y ago
10x seems to apply to a specific developer in a specific environment . I've seen corporate farms where hackers would suffer but idiots would thrive, and the exact opposite in startups. I've abandoned ship on gigs where the CTO wo
161.
▲
by
kosma
10y ago
The recent developments of DSM-5 and ICD-11 show the opposite: decades of research failed to show any scientifically valid distinction between functional and non-functional autism. That's why they are being conflated into a single &quo
162.
▲
by
kosma
10y ago
This, a thousand times. I'm an excellent bug-fixer/chaos-manager/refactorer and this led me to believe I should be an excellent project-starter as well. It has bit me in the ass more times than I can count (although I'm
163.
▲
by
kosma
10y ago
Last time I checked my vitamin D levels (or some precursors/metabolites of) the test was pretty expensive and not covered by my insurance. I asked about the price and was told that the test needs to detect those substances in very low
164.
▲
by
kosma
10y ago
One way to completely break a Mac user out of their comfort zone is to switch the machine into verbose boot mode (sudo nvram boot-args=-v). Makes it look like old Slackware.
165.
▲
by
kosma
10y ago
This is the place I go to when I need some greybeard wisdom. The SourceMaking website looks fancy, but barely contains even a fraction of that knowledge.
166.
▲
by
kosma
10y ago
They do. If they scale, they become startups. If not, they stay as a normal business.
167.
▲
by
kosma
10y ago
I was surprised too, especially considering how hard it is to discern ASD symptoms caused by high IQ from high IQ caused by ASD. I fall in the middle of that Venn diagram, and unless there's some sort of miraculous scientific breakthro
168.
▲
by
kosma
10y ago
Burning countless VC money is the new standing on the shoulders of giants. Why read books and learn the history if you can eat sushi and furnish a fancy office instead?
169.
▲
by
kosma
10y ago
Isn't 3yo a bit too early? I mean, at three years old a child is legally smart enough not to swallow the dice... but I thought knowing how to interpret numbers and apply them is a bit more advanced than knowing not to eat the numbery t
170.
▲
by
kosma
10y ago
Unless you're optimizing for raw speed, converting from/to base-3 using your language's standard library should be short and sweet.
171.
▲
by
kosma
10y ago
Go for it before they sell out! :) TME is our primary supplier and from my experience they are not exactly stellar in restocking components when they run out.
172.
▲
by
kosma
10y ago
I don't know the reasons behind the shortage, but if this is a one-off thing, TME still carries some: http://www.tme.eu/gb/details/osk40603c1e/smd-colour-leds/opt... By the way, wouldn't it be
173.
▲
by
kosma
10y ago
This is exactly my experience. Cheap Chinese LEDs seem like a bargain until you discover they are not spec'd beyond "they emit light". The steep price you pay for CREE and other brand-name LEDs is for a product that actually
174.
▲
by
kosma
10y ago
> * Byte strings and character strings are different things so now I have to care about stuff. The vast majority of Python programmers who don't live in a mostly-ASCII world just breathed a sigh of relief. Python 3 makes Unicode awa
175.
▲
by
kosma
10y ago
A substring operation (say, name[:20]) is much more common and fails in similar ways.
176.
▲
by
kosma
10y ago
A ChipWhisperer and some boring winter weekends, probably. I don't break these for cash or fame; it's just for fun.
177.
▲
by
kosma
10y ago
Security on F4 is way better. I haven't found a way to circumvent the JTAG fuse - but to be honest, I never really tried as I don't have access to proper glitching hardware.
178.
▲
by
kosma
10y ago
Send me a locked STM32F1 chip and I'll send you back the binary contained in it. Not kidding. The problem with general purpose MCUs is that they are trivial to break.
179.
▲
by
kosma
10y ago
I work for a successful IoT company and my advice is: don't. State of the art in home automation is: impossibly insecure & rarely helpful. The so-called "smart" home is anything but smart; it takes lots of manual configur
180.
▲
by
kosma
10y ago
> However, on the desktop, many different application want to read and write keys. Tray applets, the system config panel, even your media player... If your applications directly read and store configuration keys belonging to other applic
More ›