Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shabble
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
shabble
10y ago
Thanks for the introduction to 'sed 1d', which is something I've somehow never come across and resorted to horrible head|tail hacks to strip fixed header lines off things.
152.
▲
by
shabble
10y ago
such things exist (such as the pico from http://pimodules.com/ ) but I've had nothing but grief from its firmware using v1 and v2. There appears to be a new version, and I suppose it might be better now. For most <1
153.
▲
by
shabble
10y ago
Suppressing the header line and any fancy formatting jazz is a nice idea as well, since otherwise there's invariably some buggery needed to strip it like: ps | tail -n +2 | cmd_with_just_records or, if you're doing column
154.
▲
by
shabble
10y ago
This has bitten me occasionally, even though I know the workarounds (tempfiles or pipe-consumers like sponge(1)). I'm wondering if there's any practical use for the behaviour, or if it's worth hacking a shell such that it pro
155.
▲
by
shabble
10y ago
Not sure if it still works, but the ~/Library/KeyBindings/DefaultKeyBinding.dict approach maybe? I use it for putting # on the § key, and it's as simple as: { "\U00a7" = ( "insertTe
156.
▲
by
shabble
10y ago
I'm curious what this process would be. My understanding was they'd typically have a small section of write-once fuses/PROM, and then some final process step to permanently program an ID into that area. That would mean the p
157.
▲
by
shabble
10y ago
Anyone who claims to have never committed a crime is almost certain to be either lying or wrong.
158.
▲
by
shabble
10y ago
The best part of those questions is the screenshot on page 39, with the "EXPLAIN" textfield. I'm struggling to think of any explanation one might offer that would do any good whatsoever (although I realise that isn't the
159.
▲
by
shabble
10y ago
A lot of laptops present the keyboard and touchpad/whatever as internally connected USB devices. So, if you want to disable USB by epoxying the externally facing connectors, that might work, but it means you can't do things like c
160.
▲
by
shabble
10y ago
> They more or less ignored the file sync issue of Docker for Mac Which particular problem? The crappy performance/CPU usage one(s), or something else? Having used various different approaches (docker in vmware linux/virtualb
161.
▲
by
shabble
10y ago
"During his first week on the job, Butler asked the Joint Strategic Target Planning Staff to give him a copy of the SIOP. General Colin Powell and Secretary of Defense Dick Cheney had made clear that the United States needed to change
162.
▲
by
shabble
10y ago
because he was busy dying from liver failure?
163.
▲
by
shabble
10y ago
Didn't Shift-Insert work for that? (I have vague memories, but it's been a long time since I've fought with it) Edit: assuming you have a keyboard with an insert key, and that it's not in a ridiculous location, of course
164.
▲
by
shabble
10y ago
Other than using VMs and 'surprise' power-cycling them, what other ways are there to test these sorts of behaviours? Would an entry like `iptables -I forward -s ... -d ... -j DENY` on a host the 2 endpoints route over suffice to s
165.
▲
by
shabble
10y ago
Why? not much of an info-leak if you know where you're connecting, and it has to use something , or enforce a foo@host string. You could work around it with something like: Host * User WhosAsking in your ~/.ssh/
166.
▲
by
shabble
10y ago
I started writing a FUSE fs specifically for this (and other fun dynamic .ssh/ things), but never got round to finishing it off. The wildcard and (very recent) .d support has mostly solved the need now, unless I can remember what exact
167.
▲
by
shabble
10y ago
>Do you happen to be an older North Carolinian? I don't think I've heard anyone use "mash" in this sense I don't think it's quite that regional - I've heard & used it in this sense (british, not t
168.
▲
by
shabble
10y ago
How are you handling dosing/delivery method? I've been (over)thinking this for a while now and my prototype "lego hopper with RC servo controlled bottom flap" didn't work particularly well, and would get jammed with
169.
▲
by
shabble
10y ago
Do you have a 'big hunk of barrier presence' monitor though? Otherwise, when someone removes the physical stop during maintenance and forgets to reinstall it, and nobody notices for a long time because the software safeties are al
170.
▲
by
shabble
10y ago
'SELECT * from depesz'[1] is another great resource for weird sql capabilities and performance-related stuff, focused heavily on Postgresql [1] https://www.depesz.com/
171.
▲
by
shabble
10y ago
> So there are actually states in the U.S. where you can enter an unlocked home during daylight hours, sit on the couch and read a magazine, make awkward small talk, then leave before sundown Out of curiosity, which state(s) are these,
172.
▲
by
shabble
10y ago
reminds me of people writing IRC bots doing something like: if $line =~ m/!calc (.*)$/ { return eval $1; } which is about the worst possible way you can easily write a calculator :P In fact, irc bot/scrip
173.
▲
by
shabble
10y ago
IIRC it used to be impossible to display it in a split, it required a separate frame (that is, windowmanager-level window). There were some dirty hacks to fix that, but led to more problems with window & buffer switch ordering (and layo
174.
▲
by
shabble
10y ago
ipython shell is great for quick jobs, and is taking over a lot of what I used to do with long pipelines of cut/grep/perl -n, etc. Being able to grab some filenames/contents with foo = !ls bar = !cat *.txt # returns
175.
▲
by
shabble
10y ago
Down that road lies AppleScript... trying to do even trivial things in it has forced me into the alternative hell of 'scripting bridges' and using real languages, and ultimately giving up.
176.
▲
by
shabble
10y ago
If there would be a realistic way to reliably identify 'luxury' purchases, you could just have a really infuriating interstitial that: * displayed the amount of money in a personally relatable manner - "ShineyTron300 costs th
177.
▲
by
shabble
10y ago
> Next on my list is to quit smoking which should also greatly increase my savings ability. Setting aside the obvious health benefits, this can make a pretty impressive saving by itself. From memory, I was spending something like £100-
178.
▲
by
shabble
10y ago
There's Protomold[1] which does relatively cheap short runs of plastic manufacturing. I'm sure there are plenty of alternatives (and I recall seeing a massive chinese 3d printing contract manufacturer, but forget the name). Not su
179.
▲
by
shabble
10y ago
Are you thinking of Suicide Batteries?[1] IIRC, tehy're a major hindrance to people who want to legitimately restore old arcade/pinball machines, rather than just grabbing a cracked rom. [1] http://www.arcadecollecting.
180.
▲
by
shabble
10y ago
For this application, I feel you'd be better off with HTTPie. No really, it's ace: https://github.com/jkbrzt/httpie
More ›