HNHacker News
TopNewBestAskShowJobs

potatosareok2

3 karma · joined December 7, 2015

submissionscomments
potatosareok2··on Stripe was down
Don't be so excited! Maybe they just dropped another DB index and the guy who did it still has no visibility into the actual DB load.

https://support.stripe.com/questions/outage-postmortem-2015-...

potatosareok2··on Defensive BASH programming
Sorry I think we're saying same thing. On systems with non-GNU find do either `-exec cmd {} +` or `print0` work? My exp was both did NOT work. So either both work or both don't.

But if I understand you correctly on RHEL 4.X `print0` works but `-exec cmd {} +` doesn't.

Which is to say I disagree with op that it's better to rely on `exec cmd {} +` when it seems you're more likely to have `print0 and xargs -0` then that.

potatosareok2··on Too many open files: Tracking down a bug in production
I wonder why they approached the problem from the way they did -- that is to say the monitor the effect of the problem but not the cause (# open fd caused by stuck threads). Why not monitor the # JVM threads.

I'm somewhat familiar with a tool we use at work for monitoring JVM - wily introscope, but I'm sure there are other options available (newrelic java agent? ps can check nwlp on Linux? prstat available on linux? other jmx solutions?). Again I'm not familiar with tomcat as much as websphere/weblogic but I see tomcat has this option https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#S... which you can use in conjunction with other monitoring to get alerts I think for situations like this (your app threads getting stuck). I'm not sure if tomcat will write a warning log msg or actually mark the the thread as "STUCK" in thread dump.

The author did mention Java Mission Control but I wanted to point out that's not the only option for JVM monitoring.

potatosareok2··on Defensive BASH programming
Is there a place you can use `-exec cmd {} +` but not `print0`? My experience has been I can use both or I can use none (Solaris 10 boxes).
potatosareok2··on Defensive BASH programming
The problem isn't where it is - using "ls" to find files is never a good idea from my understanding. I think it's because of ls garbling file names but I might be mistaken there.

That the author is using that to find files is reasonable enough to me to disregard the rest of the blog.

edit: take that back...looked through rest of blog but don't see anything useful. I hate his idea for functions for builtins, using local is ok, please don't break up shell pipelines over N lines for simple stuff

potatosareok2··on AOL Lays Off Another 100, Two-Thirds in Its Dial-Up/Membership Division
Where do you get $10m a year? Quarterly earnings report have much higher numbers...http://ir.aol.com/phoenix.zhtml?c=147895&p=quarterlyearnings

Beyond that I think Verizon bought AOL 1) for a company with some experience with digital advertising, which is where I think Verizon sees a lot of its growth potential. There's only so many mobile phone subscribers in the US and landline business isn't really growing too much. See its accquistion of the TV company from Intel (they spent $1 billion for a NFL contract to stream games on mobile for 4 years). 2) it's still profitable and $4 billion really isn't very much for Verizon (Verizon itself was the $130B buyout of the Vodafone share by Verizon communications)

potatosareok2··on Why Java? Tales from a Python Convert
Was erasure necessary to maintain backwards compatibility?

Also what are you doing that you need type information at runtime?

potatosareok2··on Pixel C
I got a Surface 4 Pro. The problem I have with it is it's not a very good laptop in your laptop. Like putting on your lap and using it is very awkward for me. The kickstand barely bits on my legs. Everything else I liked but since I can't easily use the laptop on my lap...I returned it.