Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shabble
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
301.
▲
by
shabble
12y ago
If you have an index on your "Email" field in the database, there may be discernible difference between the time taken to check the index and return '0 rows', vs getting a match and actually reading the appropriate data
302.
▲
by
shabble
12y ago
Has anyone tried to store/diff/share code as ASTs, and allow each individual user to apply formatting rules? I guess (apart from the tooling effort involved) the problem would be that all rules have some exceptions, which you'
303.
▲
by
shabble
12y ago
It's still nicer than the func = getattr(self, 'do_%s' % thing) func(args) I've seen in some codebases :)
304.
▲
by
shabble
12y ago
well, as a statement it's also a reserved keyword, so you can't override or mock it (AFAIK), and I suspect changing the parser to identify context and operate accordingly might be rather painful. Honestly, I'm reasonably happ
305.
▲
by
shabble
12y ago
print-as-a-function has a few nice qualities, like the ability to pass it around as an argument to things so you can do (stupid example): map(print, range(10)) It can also take some kwargs that allow you to do things that are a bit
306.
▲
by
shabble
12y ago
GNU Stow[1] referencing a git repo in ~/.dotfiles is what I use for that. You might consider it hackish, but at least there are plenty of tools out there for managing it :) [1] https://www.gnu.org/software/stow
307.
▲
by
shabble
12y ago
Reverse to schematic, or reverse to board-layout ("gerber") level? The schematic typically doesn't care about things like hole spacing, although it might be attached as footprint metadata to a component. Once you have some ni
308.
▲
by
shabble
12y ago
Great link, I knew I'd seen something like this before. I wonder roughly where the board cost makes this level of massively labour-intensive rework cost-effective. Unless parts/plans are totally unavailable, I'd have thought
309.
▲
by
shabble
12y ago
An actual service manual intended for technicians who would be repairing the thing is likely to contain a lot more than the user manual would, although I have seen schematics/board prints in both. Even without that available, strippi
310.
▲
by
shabble
12y ago
I remember doing that too, after some heavy draw toasterised a few of the ATX connector wires. I was quite surprised at the efficiency of the inner ground plane(s) in sucking the heat right out of the attempted joint, and ended up requiring
311.
▲
by
shabble
12y ago
I think the problem is that it's still one of the most effective smokescreen generating compounds out there, so militaries are hesitant to ban it entirely and not have it available for that use. But, just because it's not marked &
312.
▲
by
shabble
12y ago
Yes, the FFT/STFT[1] is generally invertible, potentially subject to knowing the parameters it was generated with, or finding some reference markers in the original input you could use to derive them. There's also the possibility
313.
▲
by
shabble
12y ago
Edit: I wonder if anyone is mask/shielding against back-side attacks yet? I did like the buried light-sensors dotted around some hi-sec core I was watching, although they didn't end up being particularly useful. My understanding h
314.
▲
by
shabble
12y ago
Invasive attacks for extracting the UID depend on exactly how it's 'implemented in hardware'. It could be a total lie, and hardwired or masked-rom per-revision (but I doubt that, too easy to discover) It could be in a one-tim
315.
▲
by
shabble
12y ago
Go check out some conference presentations by Christopher Tarnovsky. He's made a career out of it, and acquired some very expensive toys (focused ion-beam equipment doesn't come cheap), but there are lectures of his explaining how
316.
▲
by
shabble
12y ago
You're talking about essentially an HW firewall for USB connections. We can discount VID/PID based black/whitelisting since they're trivial to spoof, but it might be possible to use them to identify (from an external dat
317.
▲
by
shabble
12y ago
My laptop has a USB keyboard (well, that's how it's presented, wiring is all internal), and I regularly connect an external USB keyboard to it. You might think you could identify it by manufacturer/model (VID/PID) or eve
318.
▲
by
shabble
12y ago
IIRC a talk by Travis Goodspeed mentioned that it was only internally disabled for USB and writeable media. If a USB device presents itself as a CDROM, it can still autorun things unless globally disabled by the user. Or it could emulate a
319.
▲
by
shabble
12y ago
I believe it's http://www.amazon.co.uk/6-5-Alexandre-Laumonier/dp/293060110... (although that's still the french version) And the author is https://twitter.com/SniperInMahwah I do hope t
320.
▲
by
shabble
12y ago
There is a recent paper suggesting it may in fact be essential as a trace element: https://www.ncbi.nlm.nih.gov/pubmed/24906154 Although exactly where modern diet/exposure lies on the necessary/harm spectrum
321.
▲
by
shabble
12y ago
I've fought with both of them in the past, and ultimately went back to MacPorts when I last reinstalled. Homebrew was (at the time, maybe a year or so ago) missing a lot of things I wanted to use, and some packages broke for no obvious
322.
▲
by
shabble
12y ago
Even though I've got MacPorts bash installed, it lives in /opt/local/bin, while the default one in /bin/{ba,}sh is the ancient apple 3.2 one. https://apple.stackexchange.com/questions/14684
323.
▲
by
shabble
12y ago
The downside is of course that if you crash hard, the most valuable log entries are the ones least likely to be on-disk afterwards.
324.
▲
by
shabble
12y ago
> Psychedelics kill noone. Their LD50 is usually too high. Perhaps, for pure 'traditional' psychedelics like LSD. (I'm not sure if there are any known direct toxicity-related deaths from it, including doses ~1000x typica
325.
▲
by
shabble
12y ago
Largely, yes. Which is why strace is so useful as a debugging tool. It's also why you want to do buffered IO (read/write in kB at a time) to minimise call overhead. There is mmap[1] (controlled, unsurprisingly, by syscalls), whi
326.
▲
by
shabble
12y ago
As an additional anec-datapoint here, I've noticed it's a relatively common habit amongst native english speakers who have some degree of dyslexia. I've asked about it once or twice, and the most consistent answer is somethin
327.
▲
by
shabble
12y ago
In my interviewing experience (looking at the time for something not dissimilar), lots of people think that 'knows C' and 'embedded systems' are the same as "I took a single module involving C at university, and by
328.
▲
by
shabble
12y ago
DNS over websockets, obviously!
329.
▲
by
shabble
12y ago
mounting host directories into containers with -v is one place b2d definitely hurts more than running on linux directly. The options appear to be: 1. Don't do that 2. Mount something via samba into the b2d vm, then -v it into your cont
330.
▲
by
shabble
12y ago
Any number of reasons. Test ranges are usually in remote areas to avoid any immediate danger, but if the guidance or control systems malfunction, it can go somewhere unfortunate rather quickly. I can't seem to find any good numbers, bu
More ›