jenrzzz
|
3 years ago
|
on: Crimes with Python's pattern matching
Why the heck is
case Not(DistanceMetric)():
a syntax error?
jenrzzz
|
3 years ago
|
on: To Ruby from Python
It's always a method. Ruby doesn't expose instance variables unless you define accessor methods for them.
jenrzzz
|
3 years ago
|
on: Tunneling Wikipedia through WhatsApp to (maybe?) get around WiFi restrictions
I use the TP-Link TL-WR902AC for this, it's cheap and has a MAC cloning feature that makes it pretty easy. Unfortunately the firmware isn't updated anymore and it's missing a VPN client, but apart from that it gets the job done.
jenrzzz
|
4 years ago
|
on: Repulsive Surfaces
jenrzzz
|
5 years ago
|
on: Elon Musk reopening Tesla factory despite Alameda County order
Many delivery services are operating, or they could have a caregiver pick it up for them.
jenrzzz
|
6 years ago
|
on: DoorDash confirms data breach affected 4.9M customers, workers and merchants
DoorDash is the worst. They inexplicably banned me from their platform after giving me a credit for a bad order. I filed several support tickets over several months and kept getting canned responses about how they were "looking into the issue." Eventually I just switched to Uber Eats.
jenrzzz
|
8 years ago
|
on: Sliding right into disaster: Left-to-right sliding windows leak
I was an expecting an article about waterproofing differences between windows that open to the left and those that open to the right. Forgot this was HN.
jenrzzz
|
9 years ago
|
on: Automated snare drum made to the order of Aphex Twin (2014)
jenrzzz
|
9 years ago
|
on: Show HN: Command Line Challenge
I love awk. I used to be afraid of it, but I started using it just to pluck columns, and over a couple years actually started to grok it.
Also, I learned today that cat takes a -n option to prepend line numbers to the output! My solution ended up being
cat -n faces.txt | sort -k2 -k1n | uniq -f1 | sort -nk1,1 | cut -f2-
jenrzzz
|
11 years ago
|
on: Huawei Watch
More convenient for the right index finger.
jenrzzz
|
11 years ago
|
on: Making Ruby Faster
I didn't say it couldn't be questioned. I was just explaining some possible reasons why the patch was so esoteric, and pointing out that things that seem straightforward to MRI hackers often aren't to people who don't dig through Ruby internals every day.
jenrzzz
|
11 years ago
|
on: Making Ruby Faster
It's an optimization hack. By nature, they aren't that nice to look at.
`sym_equal` only makes 2 appearances in the whole codebase (to be bound to `Symbol#==` and `Symbol#===` in string.c), so there's not a whole lot of room for confusion.
Also, this is Ruby core! Smart people do what works and makes sense to them and don't spend a lot of time worrying about how clear it is to us unwashed masses.
jenrzzz
|
11 years ago
|
on: Making Ruby Faster
Actually, he wrote it!
jenrzzz
|
11 years ago
|
on: Ask HN: Is it just me or why does Docker suck so much?
It may just be you, but given Docker's youth and novelty, you should expect some frustration. If everything about it seems like a pain in the ass, it might be the wrong tool for your use case.
jenrzzz
|
11 years ago
|
on: How can an introvert Asian engineer like me make friends?
"Did you see that ludicrous display last night?"
jenrzzz
|
12 years ago
|
on: The Magic of strace
ftp://crisp.dyndns-server.com/pub/release/website/tools/trace-20140126-x86_64-b95.tar.gz works too if it makes you feel any better.
jenrzzz
|
12 years ago
|
on: Are Your Programmers Working Hard, Or Are They Lazy?
That's why you need to find a bricklayer with a O(1) bricklaying technique.
jenrzzz
|
12 years ago
|
on: CAR and CDR
You can use symbolic modes in chmod too if you can't remember the octal representation. For example, you could set 0755 with "u=rwx,go=rx."
jenrzzz
|
12 years ago
|
on: Why You Shouldn't Interrupt a Programmer
jenrzzz
|
12 years ago
|
on: An Aspiring Scientist’s Frustration with Modern-Day Academia