Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phunge
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
phunge
12y ago
I've wondered the same thing. Up until now I've avoided digging deep into my issues -- I've never found good docs, googling leads you to misleading forum posts and generally had bad signal-to-noise, and the WiFi stack is nest
62.
▲
by
phunge
12y ago
In theory you could use the I2S, but I went the easy route and hooked up a USB DAC (Behringer UCA-202 - good cheap DAC). Thanks to Pi's USB issues, you need to switch to USB low speed (dwc_otg.speed=1), but it's worked well.
63.
▲
by
phunge
12y ago
Yes I believe swap makes some workloads faster. The goal of virtual memory is to apportion physical memory to the things that need it most -- keep frequently used data in RAM, and pageout things which aren't frequently used. This makes
64.
▲
by
phunge
12y ago
Looking through his list though, most of the settings are less controversial than swappiness. I do wish people were more rigorous about changing swappiness. Maybe if swappiness=0 was documented as "pageout every byte of /usr/
65.
▲
by
phunge
12y ago
Thread sanitizer is a tool which can detect races. Spin is a tool which can prove an algorithm (or a simplified specification of it) is race-free. You start with an algorithm involving concurrent operations. Spin searches across all possibl
66.
▲
by
phunge
12y ago
This (or some other tool like it) is a great skill to have if you deal with concurrent datastructures. I used it to deal with a lock-free multithreaded ringbuffer at a previous job and it made my life much easier. The Spin Book is a good re
67.
▲
by
phunge
12y ago
Absolutely agree. The author is a quadruple threat -- knows the theory, communicates clearly, gets their hands dirty, and is incredibly thorough.
68.
▲
by
phunge
12y ago
I only read as far as "rentAmount.dollars = 600; // => 600" before I got all ragey. Why would someone think that read-only attributes that silently ignore assignments are a good idea? This is a criticism in JS, not in
69.
▲
by
phunge
12y ago
Yes I'm surprised to learn that SQLite is relying on POSIX locks, they're basically impossible to use correctly -- by design. I wonder if things could be reengineered to use BSD locks (flock). I wonder if it's there for porta
70.
▲
by
phunge
12y ago
The sexiness of AmazonSupply disappears once you start searching for products. Industrial parametric part search is incredibly hard to get right, and McMaster-Carr is the clear leader in online. The article didn't even mention them. Am
71.
▲
by
phunge
13y ago
Jay Kreps speaks the truth. His talk "Building LinkedIn's Real-time Data Pipeline" is along the same lines as the Log blogpost mentioned here and is also extremely informative.
72.
▲
by
phunge
13y ago
Verizon spent an average of $817 per household to deploy FIOS. Though that may not be the stat your asking for! :) Source: http://newamerica.net/sites/newamerica.net/files/policydocs/...
73.
▲
by
phunge
13y ago
For new projects that aren't already tied to syslog(), Apache Kafka is also an interesting library to look at. I've always felt that using UDP is an uneasy tradeoff -- you're solving the problem of blocking, but at the cost o
74.
▲
by
phunge
13y ago
Shameless plug: http://www.trulia.com/rent_vs_buy/
75.
▲
by
phunge
13y ago
Still, that's not exception-safe, correct? If LogFlush or SleepForMicroseconds throws an exception the mutex will be unlocked twice, which pthreads disallows for normal mutexes...
76.
▲
by
phunge
13y ago
How about 2 serial ports, connecting only TxD, RxD and GND? 3-wire RS-232 basically has no attack surface, there's no protocol to speak of. [edit: shabble already suggested this]
77.
▲
by
phunge
13y ago
My experience with the launchpad has been mixed. The chips are definitely aimed at the low power, low requirements side of things; I had a project where the MSP430g2231's inability to clock from an external high-frequency crystal was a
78.
▲
by
phunge
13y ago
Looks somewhat inspired by the teensy 2.0 (mini USB -- not micro!, bootloader button). This has a lower price point and an ATTiny instead of atmega32u4. I have a few teensys and find them to be really practical. Does the ATTiny implement US
79.
▲
by
phunge
13y ago
Instant usefulness! You might want to consider hosting the apps on a separate domain than your own to avoid some security gotchas. github did so recently and explains the rationale at: https://github.com/blog/1452-new-g
80.
▲
by
phunge
13y ago
Hadoop is a pile of bad code, a stagnant codebase, crusty APIs and a thick surrounding layer of hype which obscures what it's really like to use. Spark might be better or faster, but mostly what you need to beat Hadoop is to make somet
81.
▲
by
phunge
13y ago
Wonderful, wonderful stuff. ePaper has been an interesting technology paired with a closed ecosystem for way too long. I had seen the displays for sale on adafruit but to see the whole picture is really great.
82.
▲
by
phunge
13y ago
Last I checked the Case Shiller futures are so illiquid that they're a bad trade in almost all circumstances. I believe they just never caught on.
83.
▲
by
phunge
13y ago
I don't have a 100W-equivalent but if it's anything like Philips's 75W-equivalent, it's pricey but flawless. I haven't found anything in my usage to dislike about it at all.
84.
▲
by
phunge
14y ago
Yep, everybody agrees that filament should be cheaper, so much so that they ran a contest with a $40k prize: http://desktopfactory2012.istart.org/ . That was won by the Lyman extruder. See also filastruder (derived from Lyman's design), cu
85.
▲
by
phunge
14y ago
If & when the immigration overhaul happens in Washington, I believe this is slated to get fixed -- higher ed students at US institutions would have an automatic path to permanent residence after graduating. I haven't followed the immigr
86.
▲
by
phunge
14y ago
Is that a big copper counterweight in the handle? That'd never fly nowadays, copper's too expensive :)
87.
▲
by
phunge
14y ago
This article links to Timothy Taylor's blog entry -- that's also definitely worth reading. Interesting that the same thing isn't happening in Canada or most EU countries. I keep wondering if the population shift towards urban areas explain
88.
▲
by
phunge
14y ago
If enough people find it crass, it's crass. I find it crass, enough to not click through. Sure, layout is common terminology in EDA. Getting laid is not.
89.
▲
by
phunge
14y ago
IMHO the eInk people are missing out by not getting their displays in the hands of more hobbyists. There aren't any reasonably priced development kits anywhere, they're nearly as expensive as the end-user devices. A lot of the end-user devi