HNHacker News
TopNewBestAskShowJobs

vhost-

851 karma · joined August 17, 2012

https://github.com/kyleterry

[ my public key: https://keybase.io/xvx; my proof: https://keybase.io/xvx/sigs/5UC6RpBsbDaBe9xckngQBoYQbvT4-uziKKr7o-saUdU ]

submissionscomments
vhost-··on SQLITE: JSON1 Extension
I always seem to be the black sheep in a group of people when I say that I love sqlite. It's seriously so handy. If I need to aggregate or parse big CSV sheets, I just toss them in a sqlite database and run actual SQL queries against the data and it makes the process much faster and I can give someone their data in relational form on a thumbdrive or in a tar.gz.
vhost-··on GitLab Database Incident – Live Report
I haven't seen or done anything of this scale before, but I did have a very sobering moment while working on a large online retailers stack as a systems engineer.

We were rolling out a new stack in another data center across the country and before replication went live, I decided to connect and check things out. Our chef work hadn't completed for the database hosts, so I decided to install some OS updates by hand using pssh on all the MySQL hosts and saw a kernel update. So I thought, the DC isn't live yet, no replication is running, I'll just restart these servers. So I did using pssh again and then I caught a glimps at the domain in some output and my face went completely pale. I restarted the production databases... all of them. And they all had 256GB of ecc memory. It takes a very long time for each of those machines to POST.

I contacted the client and said the maintenance page was my fault and was fully expecting to be fired on the spot, but they just grilled me about being careful in the future, and then laughed it off.

I've been the most careful ever since then. It scared me straight. Always make sure you are in the right environment before you do anything that requires a write operation.

vhost-··on Show HN: Invite friends to SSH into your laptop using their GitHub handle
I don't like using the TCP functionality of ngrok because it seems to always use the same hostname (0.tcp.ngrok.io) with a random port. So anyone can just scan for open ports on that domain and start trying to connect to things. The HTTP forwarding at least gives you a random subdomain.
vhost-··on Go dependency management tool is made public
Finally hopeful for better dependency management! I was digging through the source code and see it works with mercurial, git and bazaar using a hash or tag (so you can lock a package down to either): https://github.com/sdboyer/gps/blob/master/vcs_source.go#L22...

I'm guessing gps will be merged into the stdlib at some point.

vhost-··on Trump bans EPA employees from giving social media updates
Why does trump get to use twitter, but the EPA can't?
vhost-··on GitHub Report Card
This app was made by Reflect not Github. By the way, github has this coming down their development pipeline: https://developer.github.com/early-access/integrations/
vhost-··on Request for Startups: Water
What about utilizing ocean currents? You deploy the collectors and eventually they end up somewhere close enough to be toed in without using much fuel. Deploy them at regular intervals and go pick them up as they get closer to shore. This is assuming such currents exist and will allow enough time for the collectors to collect enough water.
vhost-··on IPv6 Support for EC2 Instances in Virtual Private Clouds
The state of IPv6 remains sad and depressing. I just switched to centurylink fiber from comcast and I still don't have an IPv6 address. I have the option, but I have to pay for it, which seems totally backwards to me. Sure, I will pay for a static IPv4 address if I need it because I understand that they are few and far between by now. But you can't just give me one v6?

Basically I have a fiber connection in the US, which on it's own is pretty mindblowing, but no IPv6 address...

vhost-··on What.CD is shutting down
I felt the same. I'm now just waiting for the day that passthepopcorn.me disappears. I'm very surprised this happened.
vhost-··on Google Trends Electionland
Nothing in Oregon because we all sent our ballots in a week or two ago. Interesting viz to see.
vhost-··on MacBook Pro
Where does 99% come from?

My girlfriend is a nursing student, not a programmer and has 8 gigs of ram on her laptop. She's constantly asking me to look at her laptop when it beachballs and slows to a crawl when she's doing homework and her memory is maxed. She only has chrome, Word, Excel and some online courses open.

I don't buy that figure one bit.

vhost-··on Parsing JSON is a Minefield
You definitely can't rely on it. Just the other day I was given a task to take a request payload from our front end and do some stuff with it on our backend. The payload looked like this: {"thing": [{"values": ["foobar"], "type": "blah blah"}, "some identifier"], "other thing": "some string"}. It's mixing types in arrays which is problematic for most statically types languages.

Tips for Go: Don't use map[string]interface{} and circumvent the type system (I've seen this a lot in production). The fix involves the UnmarshalJSON and MarshalJSON interfaces. This lets you put the data into a structure that's sane and re-encode it back to something the other system expects.

vhost-··on Images of New MacBook Pro with Magic Toolbar Leaked in MacOS Sierra 10.12.1
That's not really an example of why something in all caps is useful, though.

The only time I've seen anyone using caps lock is in a call center where people think it's the proper way of entering data into a form (my opinion is it's totally not).

vhost-··on Images of New MacBook Pro with Magic Toolbar Leaked in MacOS Sierra 10.12.1
I genuinely don't understand why there is still a caps lock key on most keyboards.

Can someone fill me in on actual use cases of having this key still?

I have been binding caps lock to escape for many many years.

vhost-··on Webcams used to attack Reddit and Twitter recalled
Totally, this is a good way to protect from that. It's just impossible to trust that is what someone is doing without going and looking at the script unfortunately.
vhost-··on Can you hurt yourself eating chilli peppers?
But was this due to the heat, acidity or some other characteristic of this cross? Or was it because he swallowed a pepper whole and it tore a hole because it went down sideways? You have to remember how much and how fast people shove things into their mouths during these contests...

I can't find anything that tells me why it happened.

vhost-··on Webcams used to attack Reddit and Twitter recalled
Another issue is partially written responses. If the connection fails in the middle of your curl (or the source's application crashes) you can receive part of a shell script that could very well contain `rm -rf /usr`.

Edit: I cooked up an example actually. Here is a small Go program that will panic after 1 nanosecond: https://gist.github.com/kyleterry/dc304503dfca2d149b189694d1...

This will sometimes return partial responses.

Run this in a bash `while true` loop and curl localhost:8080 a few times. You will mostly see empty and full responses because my example isn't perfect, but occasionally you will only get part of the script dumped to the screen and that's the problem with curl|bash.

vhost-··on Is Facebook’s Massive Open Office Scaring Away Developers?
What are the alternatives to open offices for companies with hundreds or thousands of developers? Do you have offices with dozens of people split up by team?

I've been to the AWS headquarters in Seattle and I think that's what their setup is like but I didn't get too much of a chance to look around.

I've worked on systems administrations teams that had their own office and being able to close the door was awesome.

vhost-··on A Brief History of Who Ruined Burning Man
Last time I saw it was probably 2005-ish. It was along 445 near Spanish Springs.
vhost-··on A Brief History of Who Ruined Burning Man
I grew up in Nevada along a main highway that people take to burning man. I really wish "leave no trace" included places outside blackrock.

People would also routinely leave their playa covered and broken down vans, RVs and cars in my neighborhood. In the desert by my parent's house we would find numerous trailers abandoned full of trash, empty water bottles and old clothes. You knew it was from burning man because the stuff was covered in playa dust.

vhost-··on Karabiner – Easy Keyboard Remapping for OS X
OS X nor macOS have the option to set caps lock to escape. This is why people who want to do this use Seil or Karabiner Elements.
vhost-··on Microservices
It doesn't have to be messy. I've worked in monoliths that are a complete disaster. I've worked in micro-architectures that are a complete disaster. It's the same kinds of people and management practices making these disasters.

I will say the only clean systems I've worked in have been microservice oriented. All monolithic systems I've worked on never scaled properly and always had bugs with 1000 function deep stacktraces.

I've talked to people who have worked in excellent monoliths (rails and django). I know they exist.

Moral is: do it right and have good development practices.

vhost-··on FBI director: Cover up your webcam
I worked for a remote company and I recall only having my camera enabled for the first week or so. After that it was off pretty much permanently. I didn't notice a difference with it on or off. It didn't seem to matter and everyone else did more or less the same thing.
vhost-··on iPhone 7
Why would they include a 3.5 mm adapter then?
vhost-··on Dependency graphs of Go web frameworks
No gorilla mux?
vhost-··on The Secret Button
I used to use this a lot. A coworker who was really into macs back in like '06 or '07 used it because he was used to the close button being on the left and showed me. I totally forgot about that button.
vhost-··on Context aware MySQL pools via HAProxy
I did something very similar on a 5 read cluster, but wrote custom NetScaler health checks to pull laggy replicas out of the virtual server pool.
vhost-··on Go 1.7 is released
I can't speak to this. I'm a Go and Python programmer. I learned Go in about ~8 hours and have been very productive with it over the past 2 years.

I've been struggling at work to learn and use Rails for the better part of a year. I constantly have to grab someone and have them help me. Either I'm an idiot, or Rails has a bigger learning curve than people make it out to have because I've never experienced this in all my 10 years of programming professionally.

vhost-··on Apple says Pokémon Go is the most downloaded app in its first week ever
Maybe flappy bird?
vhost-··on Billions of Messages a Day – Yelp's Real-Time Data Pipeline
This is how I read it too. I think op was taking that too literally when they were just stating that the two are essentially equivalent at that scale.
← PreviousPage 3 of 9Next →