HNHacker News
TopNewBestAskShowJobs

djeikyb

268 karma · joined June 18, 2011

https://github.com/djeikyb
submissionscomments
djeikyb··on OS X Command Line Utilities
from `man test`:

   -t FD  file descriptor FD is opened on a terminal
FD 0 is stdin I'd guess. Pretty clever!
djeikyb··on Tmux has left SourceForge
I'd previously assumed that all smart consumers aware of the near-universal malwareness of bundled software would despise this sort of thing. I'm glad to have my wrong premises exposed.
djeikyb··on Tmux has left SourceForge
The persons finds bundled malware acceptable. If they sell software, I'd like to avoid it. This is how I interpreted the question.
djeikyb··on Tmux 2.0 released
If you try to curl that "direct" link, you'll find it isn't.
djeikyb··on Xmonad – A dynamically tiling X11 window manager
https://github.com/Tzbob/python-windows-tiler

It works pretty much like xmonad or awesomewm once you edit the keybindings. Unfortunately it doesn't have the same phenomenal multi-monitor support xmonad provides on linux. It works within the usual windows confines[0]. With xmonad/linux, each workspace is independent of the displays. With pwt/windows, each workspace uses the entire logical display surface.

[0]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms6...

djeikyb··on How I taught my dog to text me selfies
i thought the same thing until i read the actual instructions:

http://www.instructables.com/id/Washer-Dryer-Laundry-Alarm-u...

it uses an accelerometer to detect the motion of the washer. no need to dissect your large home applicances!

djeikyb··on Command-line tools can be faster than your Hadoop cluster
Windows does have virtual desktops...just not the way X allows. The main thing that bugs me about Windows's desktops is that it is given a logical display surface compromised of all the display units. Whereas with X (going by my use of xmonad) it's easy to separate the display and desktop abstractions and have desktop 2 on display 1 and desktop 5 on display 2.

There's a nice overview of the limitations and intentions of the Windows model here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms68...

When on windows, I've been using this (it crashes sometimes, but only itself, never takes other programs with it): https://github.com/Tzbob/python-windows-tiler

djeikyb··on The Wire in HD
Nope. He's saying it outright.
djeikyb··on Urbit: a personal cloud computer
Is it common these days to have a drivers ed class in high school? My city's (pop ~1/2mm) high schools didn't, circa 2003ish.
djeikyb··on Friends Don't Let Friends Clap on One and Three: A Backbeat Clapping Study
What do you play and who instructed you to set the metronome to 1 & 3? (I'm a percussionist who's always used a quarternote counting metronome)
djeikyb··on Sprout
Behold patent US147119[0], issued 1874, nearly a century before Taco Bell existed. The specific word "spork" was common enough to include in dictionaries just a couple decades later.

Hilariously, if you do an google ngram search for "spork,foon"[1], you'll find that in comparison, foon is incredibly popular, completely drowning out uses of spork.

I looked at the book results. It's apparent that the ocr has misconstrued ye olde "s" as an "f"; a mistake I also make, on those rare occasions I read something printed before 1800 or so.

[0]: https://www.google.com/patents/US147119

[1]: https://books.google.com/ngrams/graph?content=spork%2C+foon&...

djeikyb··on Bicycle helmets do almost nothing to prevent concussions
Please keep the blinking reasonable and non-distracting. A lot of cyclists where I am have what amount to high-powered strobe lights aimed at car-driver's faces. I've also been the victim of this while riding my bike down canal paths at night. It's no fun being completely blinded while a fellow cyclist zooms past.
djeikyb··on Yahoo Hacked
I was curious. So I went to the link secalex posted. Bountys start at $50; max is $15k.
djeikyb··on Miss a Payment? Good Luck Moving That Car
I wouldn't be surprised if location matters. My experience is in the greater phoenix area (not being vague, my search radius covered the entire phoenix metro, queen creek to glendale). I searched craigslist, independent used car lots, regular dealerships, ebay, and lots around town where people park cars for private sale.
djeikyb··on Miss a Payment? Good Luck Moving That Car
What do you feel is reasonable to pay for a decent used car? What do you feel is a normal amount of money to have just laying around, ready to be invested in a car?

My experience looking for a used car in the greater phoenix area says you can't find anything decent for under $10k. Carmax is said to have higher quality used vehicles, but they rarely have anything under $10k (after gov't fees and taxes). Also, in this price range, the mileage is usually 100k+. Nobody keeps maintenance records, so to avoid blowing up your engine, you'll need to immediately spend $500-900 on a new timing belt. Next, expect your high mileage car to have at least one critical part wear out every other month or so.

I searched long and hard and settled on a $6k car. Twelve years old, 150k miles. It was the cheapest car I could find that didn't have any obvious problems (Firestone vetted it; turned out to have $3k+ of problems over the next fifteen months). My income was ~45k. What with all the other bills, I needed a loan.

It's uncommon for a programmer, but the gov't census for the area says a combined income of $40-60k is normal. I know my fair share of single mothers who wait tables for a lot less than half of that.

I heartily dispute the assertion that it's easy to just pay cash for a working car. One last piece of anecdotal evidence to my argument: the ease of selling my high mileage piece of shit car. I put it on craigslist for $1200 and it sold within hours. I described it as clearly as I could: "as is. doesn't work. died and won't turn back on. lots of recent expensive repairs. must tow.".

tl;dr, in my experience, an easy sum to save gets you a car that doesn't run. if you want a car, you need a loan.

djeikyb··on The Truth We Won't Admit: Drinking Is Healthy
Here's something related: http://www.ncbi.nlm.nih.gov/pubmed/10857708

Definitely not "smoking", and not about preventing parkinson's. But it is one study that shows nicotine helps with some aspects of the disease.

djeikyb··on Show HN: Howm – A Vim-like tiling X11 window manager
I use xmonad when I'm on linux. Now that I'm required to use windows, I use python-windows-tiler[0]. The one thing I sorely miss about xmonad is its multi-monitor support. You get nine workspaces. Each of these is monitor independent. It is trivial to put ws1 on m1 and ws2 on m2, then switch m2 to have ws7. The tiling window managers I've found for ms Windows simply don't have any concept of having workspaces independent of monitors. Every workspace always take up all of your monitors.

On linux I'll usually have a browser workspace, an ide workspace, an email/chat workspace, a console workspace, etc. And I'm able to rapidly put any combination of workspaces on my set of monitors.

[0]: https://github.com/Tzbob/python-windows-tiler

djeikyb··on Java Pain
For those who can accept ant+ivy, I feel this is a stab in the right direction for console apps: https://github.com/djeikyb/simple-console-app

The script target creates a runnable shell script that has the jar and all dependencies embedded. The last step might be using packr[0] to also embed the java runtime.

[0]: https://github.com/libgdx/packr

djeikyb··on CGrep: a context-aware grep for source codes
I've not tried it, but the linked article claims c# is supported. Quote:

    Languages support for Awk, C, Cpp, Chapel, Csharp, Css,
djeikyb··on In Defense of Recruiters
I've not been to tons of meetups, but. Ime, half-way through there's five or so minutes for a few people to pitch their company. They keep it short, and stick around after to talk to anyone who is actually interested. To me, it feels more like supporting programmers rather than hunting them. I may be naive ;). But especially for me as a relatively new programmer, without a huge professional network, I appreciate it.
djeikyb··on eBay customers’ personal data was compromised in March
I got that you were going for a "Tropic Thunder" ref, but it doesn't fit. It sounds like you're saying ebay is stupid, but the TT is satirizing actors pretending to be stupid. And, TT gets away with the bit because it pushes PC-ness further towards not shitting on mentally disabled folks. Mayhaps it should, but slang use of the word "retarded" doesn't automatically offend me. I just don't think your use worked.
djeikyb··on Type checking in Python
Until java 7 you had to write:

    List<String> list = new ArrayList<String>();
It feels silly to have to write the type parameter twice. But now you can say:

    List<String> list = new ArrayList<>();
It's usually not a huge deal, but occasionally the stutter can be more pronounced:

    Map<String, List<Map<Integer, Set<Float>>>> map = ...
djeikyb··on Ack is a grep-like tool, optimised for programmers
nice! i need to pull and recompile!
djeikyb··on Ack is a grep-like tool, optimised for programmers
Yeah, I think it's important not to throw grep away. Ack is really for when you don't know or can't be bothered to explicitly mention the (several) specific files to search.
djeikyb··on Ack is a grep-like tool, optimised for programmers
One thing I miss a little is that ack has the super convenient:

    ack --java "foo"
while with ag you write:

    ag -G"\.java$" "foo"
But yes, ack and ag feel pretty identical except for the speed. Most of the time the speed improvement is irrelevant to me, except sometimes now I'll use ag in my home folder, and it's still fairly snappy.
djeikyb··on Ack is a grep-like tool, optimised for programmers
I use ag[2], which is pretty much the same as ack, but even faster. The other day I was using it to find all instances in all projects of a list of problematic method names[1], in case anyone wants to see a real world use case.

[1]: http://unix.stackexchange.com/questions/108471/no-output-usi...

[2]: https://github.com/ggreer/the_silver_searcher

djeikyb··on Burying the URL
My experience is that chrome works great with intranet addresses if you fully type them out. "gerrit.gps" searches for the string "gerrit.gps". I have to fully type out "http://gerrit.gps" to get to our gerrit server.
djeikyb··on GNU Screen v.4.2.1
I glanced at a couple screen manuals. Looks like both tmux and screen support rebinding all the commands.
djeikyb··on GNU Screen v.4.2.1
I enjoy how readable tmux conf files are. My screenrc is barely legible without the manual open in another shell. I mean, I guess it doesn't matter too much once you've got it working. But I never open my tmux.conf and ask myself wtf is going on.
djeikyb··on It's the Umami – Why the Truth About MSG is So Easy to Swallow
It's considered a dangerous practice. The general rule is food has four hours outside of its proper storage environment before it must be thrown away. Eg, leave the milk on the counter for an hour, put it back in the fridge, leave it out another three hours, and now you should throw it out. I don't have a link, but I'm citing ServSafe, a program that nationally certifies people for food safety (targeted to federal and state requirements for food service).

You might also consider the ambient temp of your kitchen. Pro kitchens run several hours a day, staying fairly warm the whole time (might have several ovens, tens of burners, and other hot equipment running throughout the day). Your kitchen, even with the rice cooker going, might stay fairly cool, and so bad bacteria has less time to grow.

Food safety is also talked about in terms of risk to different groups. Young children, pregnant mothers, and old adults are at higher risk than younger adults.

← PreviousPage 3 of 6Next →