HNHacker News
TopNewBestAskShowJobs

gmjosack

896 karma · joined April 17, 2010

submissionscomments
gmjosack··on Python Wheels
The biggest problem I've had with Python packages is that you can't use multiple version of the same package in a Python project without a lot of complex tricks. This becomes more and more a problem in large code bases over time. One dependency might need requests 1.x and another 2.x in incompatible ways.

Unfortunately Wheels don't solve this problem as it seem inherent to how python imports modules.

I've seen people get around this by vendoring their dependencies and I've done some tricks in the past where you provide a vendor proxy package that you can point at a different site packages but this is brittle if your dependency has additional dependencies or uses absolute imports. Now you're maintaining a fork.

I'd love to hear if anyone has had more success in this realm. I love Python but using node and rust, and having the ability to have isolated dependencies trees has made me sad about the state of python packages.

gmjosack··on Monads in JavaScript
I was able to "join" the course for free and all of the videos are available.
gmjosack··on Why Google Employees Quit (2009)
I worked at Google from 2010 to 2012, just under two years, as an SRE. Google was a great company to work for and the people I worked with were all awesome.

I ultimately left Google because I felt bored working there. You admin systems and fill out resource request through web browsers and work with proprietary stacks all day. It didn't take long to feel my skills as a Linux professional start to atrophy. The longer I stayed the more concerned I became about passing interviews in the rest of the industry as I became a Google engineer.

I often miss the tools I had at Google but it's exciting building those tools at smaller companies and working with industry best practices.

gmjosack··on Rust 1.1 Stable, the Community Subteam, and RustCamp
You probably want this page for str:

http://doc.rust-lang.org/nightly/std/primitive.str.html

It's unfortunate that most of the links navigate you to the less useful doc.

gmjosack··on NGINX open sources TCP load balancing
I've been able to get real-time stats in nginx by adding custom counters with the lua plugin and exporting a stats handler.

http://wiki.nginx.org/HttpLuaModule#ngx.shared.DICT

gmjosack··on Ask HN: Who is hiring? (August 2014)
Dropbox (San Francisco, CA) - https://www.dropbox.com/ Site Reliability Engineer - https://www.dropbox.com/jobs/listing/141

We're looking for people who have a passion for operations, reliability, and software engineering. People who don't just want to build tools, but actual infrastructure products, for the rest of the product organization. Want to touch provisioning, package/configuration/service management, monitoring, deployments, network & datacenter tooling, etc. in an environment with >10,000 hosts? We're currently solving very challenging problems at a large scale and are looking for people to build out the next generation of operational infrastructure.

You can apply through the website but if you have any questions, I'm on the SRE team, feel free to email me at gary@dropbox.com.

gmjosack··on Announcing a specification for PHP
This was how a lot of perl5 was when I used it in the early 2000s.
gmjosack··on What I Learned After I Published My Twitter Password
The article mentions using Google Authenticator but I'd recommend Duo (Duo Mobile on Android) as it lets you reorganize your accounts, assign icons to various accounts, and only shows the token you care about via expanding with a much larger font. Once I passed around 6 two-factor accounts Google Authenticator became too hard to use.
gmjosack··on Captchas are Becoming Ridiculous
You must have missed the part where he tried to guess with the easier of two words and still failed. The control words are rarely any easier to read than the unknown word.
gmjosack··on Show HN: My weekend project – simple cron monitoring
One way I've solved this in the past which is a bit hacky but novel and fun was to set the MAILTO to some e-mail address like cron-error@ and use the local postfix process to map that e-mail to a command via transports. This allows us to inject cron errors into our exception tracking system and alert minimizing the amount of cron storming to our inboxes.
gmjosack··on Gofmt No Longer Allows Spaces. Tabs Only
Is it that unbelievable to you that a company that previously used other languages with spaces for indentation would desire to have a consistent indentation policy, especially considering that up until now the tooling supported such desires?
gmjosack··on Gofmt No Longer Allows Spaces. Tabs Only
I'm personally in the spaces camp but my favorite point in favor of tabs no one has mentioned is all of the bytes you're saving. In a large codebase you can save kilobytes to megabytes by switching from spaces to tabs. :)
gmjosack··on Gofmt No Longer Allows Spaces. Tabs Only
The way people solve that is tabs for indentation and spaces for alignment. In my opinion this is a terrible compromise as mixing tabs and spaces is sacrilegious.
gmjosack··on Gofmt No Longer Allows Spaces. Tabs Only
I'd say it's newsworthy to large Go shops that use spaces with gofmt and now have to change indentation in their repos. This isn't insignificant. Also it requires additional flags for things like blame/diff to ignore whitespace changes.
gmjosack··on Your Job is Not to Code
Though the job description certainly has requirements for how to code. And knowing a common language allows quick and efficient collaboration among your team members. So I'd say it is your job to know how to code in order to solve a problem that the business has.
gmjosack··on Nginx 1.7.1 adds syslog support
The simplest answer I could think of is getting remote syslogging for free. This also makes it easier to process nginx logs in realtime without named pipe trickery. I'm pretty excited to clean up some log ingestion code.
gmjosack··on What if C++ looked more like Python or CoffeeScript?
Semi-related, you might be interested in Whitespace

http://en.wikipedia.org/wiki/Whitespace_(programming_languag...

gmjosack··on Skype group video calling becomes free
I'd written Skype off as malware after it continued to put a browser extension on my computer that parsed every single page I visited without my permission. Even after removing the plugin it would regularly disappear. This behavior is not okay.
gmjosack··on Amazon Snags Older HBO Shows For Web Streaming
It was a plan on the website for me.
gmjosack··on Amazon Snags Older HBO Shows For Web Streaming
You can already sign up for HBO Go with Comcast without having a TV plan. They'll bundle it with your internet plan.
gmjosack··on Rust for C++ programmers – part 2: control flow
your comparison isn't fair. you're making an argument against fn/int vs function/integer but the largest difference in the code is between index and n. I prefer the version with a longer variable name despite the length.

also shouldn't the returns be unnecessary here since the conditional is an expression?

gmjosack··on Better bash in 15 minutes
I just use vim.
gmjosack··on Better bash in 15 minutes
It's a lot easier for my fingers to type /idx than /\<i\> and it also easier to scan for idx than i. I'm not saying that everyone should do as I do but I find it frustrating dealing with single letter variables personally.
gmjosack··on Better bash in 15 minutes
I call my for loop variables idx. I never use single letter variable names, though I won't call someone out for it in a small block. Being able to highlight a variable in my editor, even when it's only used in a 5 line block of code is useful. Highlighting all letter i's is not.
gmjosack··on Trapperkeeper is a new Clojure framework for long-running applications, services
I agree with you but I also believe there needs to be limits. I like Google's strategy of N approved languages.

From an operational perspective there's too much overhead to effectively running any language in a production environment.

From a maintenance perspective you want to have common skill sets between a large intersection of employees so you're not the only person doing bug fixes on a system.

There needs to be a balance for sure.

gmjosack··on Trapperkeeper is a new Clojure framework for long-running applications, services
I've also released an opensource tool called TrapperKeeper which is for storing and displaying SNMP traps. We use it at Dropbox to turn SNMP traps into stateful alerts so that they can be polled by monitoring services. We haven't really announced it publicly because I want to finish writing up docs but it's been public on Github for about a month.

https://github.com/dropbox/trapperkeeper

gmjosack··on Linux Commands In Structured Order with Detailed Reference
lsof is much more useful when you want to see which process has a file open rather than the inverse.
gmjosack··on Linux Commands In Structured Order with Detailed Reference
Yeah, whenever you cd, OLDPWD gets set to the directory you just changed from. cd will substitute $OLDPWD when you cd to "-". Perhaps even less well know, the shell itself will expand ~- to $OLDPWD so if you ever want to see where cd - would take you, or just list the files from your previous working directory you could do "echo ~-" or "ls ~-" respectively.
gmjosack··on Linux Commands In Structured Order with Detailed Reference
I'm honestly curious. Is a large portion of the Hacker News audience just less operationally experienced compared to the programming side of things? It seems like Linux 101 lists like this make it to the top of HN pretty regularly but I'd equate this to a post about Python that listed for/while loops, if statements, how to create a class, etc. Am I blinded by my own experiences or do very basic Linux seem to do very well on this site.
gmjosack··on Linux Commands In Structured Order with Detailed Reference
I couldn't immediately tell from your reply whether you didn't know about pushd/popd or were mentioning them as something missing from the list. Since I don't seem to see them in the posted list I'm going to assume the latter.

For anyone who is curious about pushd/popd, pushd will change your current working directory and adds your new working directory to the top of a stack. popd will remove the top directory from the stack and change your current working directory to the new top of stack. This is helpful in scripts where you need to change directories for some action and then back out to where you were. You can also use the dirs command to list the stack.

One reason I could see omitting these from the list is that they are shell builtins rather than external commands as the vast majority of the list is.

← PreviousPage 3 of 5Next →