2,116 karma · joined Aug 14, 2007 (19y ago) · 566 submissions
comment 11y ago · link · parent
Sadly, that makes it hard to ask the question "what methods can I call on an object of this type?" because the answer might include functions with that type in any parameter position. In many cases that wouldn't be a meaningful answer - as in the case of, say, a numeric type which could be used for all kinds of indexing, iteration, and offset methods involving collections, IO handles, etc.
You might benefit a bit more from using the 'apropos' builtin to lookup functions based on simple keyword matching. Given a type name it lists methods that take or emit objects of that type (which may or may not be exactly what you want, but it's a starting point at least).
comment 11y ago · link · parent
It's also a perfect example of why even really amazing teams reinventing a language/tooling ecosystem from scratch stumble over problems that were solved years (or even decades ago) in preceding platforms. I leave it as an exercise for the reader to decide if the "reinvent from scratch" critique is more deserved by Docker, Go, or Linux.
That being said, I'm pretty sure even the broken Setuid behavior described there would be good enough to sandbox a thread or child proc that was just handling buffered I/O into and out of the xz binary.
comment 11y ago · link · parent
Sadly, many of the best engineers I've worked with do have families, are working, don't live in the same town, and would absolutely balk at the idea of taking a week away from all that to "try out" a new job.
Of course, there's a wide spectrum between "work together for a week" and "write some C++ on a whiteboard for 40 minutes" that gets dropped from most screening processes. That's the zone where I'm most interested in finding creative evaluation tools.
comment 11y ago · link · parent
It's also literally one line of code in most UNIX-based languages (syscall.Setuid(<uid that isn't root>) in Go, FWIW) to drop root privileges before doing something unsafe. Even if the main Docker daemon absolutely has to run as root most of the time, it can and should fork and drop that access for anything dealing with moving data between unstrusted (e.g. the Internet, user input, etc.) and trusted (verified, read-only local state) security domains.
comment 11y ago · link · parent
* the false sense of security from putting signatures in the manifests then ignoring them
* loading signing certs via the network with no provision for pinning
* happily loading untrusted/unsigned images by default (npm, rubygems, installtools, etc. also do this but why repeat their awful design mistake?)
* running basically everything as root (because why deal with all those messy permissions?)
My sysadmin Spidey-sense has been tingling at the rate of change in the Docker ecosystem since it went from "interesting POC" to "we think it's production ready" in a shockingly short period of time. Things like this sadly confirm that initial pessimistic view.
comment 11y ago · link · parent
It's a theoretically clean approach, but this article is largely focused on how to keep the (SIMD-aware) compiler humming along on large vectors without reverting to scalar operations.
AFAICT GHC only has experimental support for SIMD optimizations anyway, so this is probably less of an issue for Haskell code than it is for C/C++/Fortan numeric primitives (and languages like Julia which utilize them).
comment 11y ago · link · parent
That being said, my absolute favorite thing to prepare sous vide is carrots. Lots of other root vegetables (turnips, burdock, sunchokes, new potatoes) can similarly be cooked in a water bath to a temperature just high enough to soften them without extracting flavor or nutrients via boiling, steaming, or sautéing. I've also had good luck with green beans, asparagus, and broccoli rabe.
Finally, if you're pescetarian seafood is also a great option. I'm not sure I'll ever cook lobster any other way after seeing what whole (shell-on) lobster tails are like cooked sous vide with a healthy dollop of butter.
comment 11y ago · link · parent
http://www.time-travellers.org/shane/papers/NFS_considered_h...
The tl;dr basically boils down to the fact that PostgreSQL and MySQL (or really any good database engine running on *NIX systems) make very strong assumptions about the POSIX-ness of their underlying filesystem: flock() is fast, sync() calls actually mean data has hit disk, etc.
Docker/CoreOS/etc. aren't a replacement for a good SAN or other reliable storage. If you value your data I'd suggest keeping your core database(s) on dedicated machines/VMs (ideally SSD-equipped and UPS-backed). If managing those is too much work, consider a managed cloud database; DynamoDB and RDS can stand in for Redis and Postgres, respectively.
comment 12y ago · link · parent
If you aren't a trained, competent security analyst/engineer (or working with one) then don't accept sensitive information. PHI, credit card numbers, even contact lists: all of these are considered "sensitive" for a reason, and you are being reckless in the extreme if you accept them from your customers without the proper protections in place.
I have seen and even been responsible for (many years ago) the implementation of some horrifyingly bad "security controls" by people who simply didn't understand the field.
It's not just crypto, or disabling root logins via SSH, or preventing XSS on your web forms; you need to plan for a multitude of possible attack vectors, internal and external. Many of those aren't likely to be intuitive without some real training and exposure to best practices.
comment 12y ago · link · parent
Regardless, while the absolute cost of raising children may be higher for high-income families, the share of their total income that represents is much lower. Someone earning minimum wage will struggle to support even one child's basic food, clothing, and shelter; their counterpart making $1M a year could easily afford private school, childcare, and the best possible opportunities for a family of 3-4 children.
comment 12y ago · link · parent
They don't spam me, their DNS service is rock-solid, and their website (while a bit lacking in the graphical design department) is fast, clean, and ad-free. I also get clear, to-the-point reminders when a domain is up for renewal.
I have dozens (not hundreds or thousands) of domains registered, but I would recommend them without hesitation to anyone looking for developer-friendly registration and hosted DNS.
comment 12y ago · link · parent
Second: PDX.rb is a friendly, knowledgeable group. Find them on calagator.org and go to some meetups. They'll absolutely help.
I don't really do Ruby or Rails any more so I can't offer much more concrete help than that, but welcome to Portland regardless.
comment 12y ago · link · parent
As a manager, I value my long-tenured employees _very_ highly and work hard to ensure they get significant raises year after year. I learned to do that by working as an engineer at several other companies that did the same.
So, if your employer doesn't work to make their best, most experienced engineers feel valued and well-compensated, by all means look for another job. But don't assume that all companies will try to force you out as soon as your salary is higher than a new grad's.
comment 12y ago · link · parent
Requiring people to have a competitive offer in-hand basically says, "if you want a raise, go interview somewhere else." That's toxic and only effective for the people who game the system.
Responsible employers owe their employees a fair (according to market, their peers, and their contributions) wage, not the minimum they can possibly get away with paying. It might save you a few bucks in the near term to play stupid games with people's comp, but the attrition will kill you in the long run.
comment 12y ago · link · parent
My usual media/gadget inventory while traveling is a compact camera, Kindle and a paperback or two, and a battery-powered speaker for listening to music at night. No headphones (too isolating), no tech books (distracting, and honestly frustrating w/o the Internet to do additional research) and only as many hours of video as I need to keep myself distracted during the flight.
comment 12y ago · link · parent
We're a polyglot team (Java, Python, Javascript, Objective-C) and use open source (Linux, PostgreSQL, Hadoop, HBase, Netty, Django) wherever we can. We're supported by awesome ops, product, and design folks.
We care about massive scaling, great UX, building high-quality systems, and learning from each other every day. Remote (US) work is okay, and anyone with a unique origin story is highly encouraged to apply.
Email me (lennon at urbanairship.com) for more info if you're interested.
comment 12y ago · link · parent
Also, if you're using those keys to protect other secrets like passwords - say, DB credentials or AWS keys stored in an HTTP-hosted Git repo behind - you can't really assume those are safe either.
Fun times!
comment 12y ago · link · parent
According to Wikipedia, only the bottom quartile of the US population earns less than $22500 per household; if you assume that BI isn't simply added on tax-free to higher-earning households' net income, that makes it more like 1/4 of the 80% of the population over age 14 would be eligible for full BI benefits. So, call it 20% of your original population estimate.
That makes it roughly $600 billion, with the potential chance of largely replacing welfare ($532 billion* in 2013) and federal disability ($166 billion), not to mention some portion of Social Security and other programs.
Sounds like a reasonable idea to at least explore IMHO.
* per charts at usgovernmentspending.com
comment 12y ago · link · parent
Downsides are all the usual ones, of course: updates don't happen automatically, you may need some sort of licensing/DRM if you want people to pay for your application, and your testing story is a lot more complex. (Plus: look-and-feel on various platforms, reverse engineering is that much easier, etc., etc.)
comment 12y ago · link · parent
Yes, you need decent chunk of financing + equipment to get started. No, it isn't "real money" to most of the folks on HN. Compared to the margins on most foodservice businesses, though, it's amazing.
comment 12y ago · link · parent
Surface area doesn't scale linearly with capacity, so both cost and cleaning time actually get _better_ as you scale up. Grain, cleaning supplies, and tools get cheaper as you scale, too.
It also only takes a tiny active culture of something bad to ruin an entire batch of beer. Each vessel, airlock, valve, and spoon is another potential source of contamination, so having fewer things to clean is a Good Thing.
comment 12y ago · link · parent
Say 1% of Twitter's active users would be willing to pay for such a service. (That's extremely generous, I think, but it makes the math easier.)
At 240 million MAUs, that gives ~2.4 million paying users. Say the price was comparable to Flickr at $50/year. (Again, very generous, and probably out of reach of most users outside US/Japan/EU, but we'll try it for the sake of argument.)
After up-selling each and every one of those users, the company could have annual revenue of about $120 million...or roughly _half_ what they cleared in Q4.
Even with 2-3x organic growth in the next couple of years, it would be a dead-end in terms of revenue, and better-financed competitors would be able to push them around, poach their best staff, etc.
comment 12y ago · link · parent
However, it can be a great motivator to learn new areas of mathematics.
Consider a simple game engine: writing a program that displays sprites on screen and moves them will build an understanding of basic coordinate systems. Collision detection requires slightly more advanced math in that coordinate space. Pathfinding (say, for enemies chasing the player) requires all that, plus basic trig, plus some understanding of randomness and probabilities.
Particle behavior (for weapons, jump physics, etc.) begs for calculus. Error-handling can be a great intro to the difference between total and partial functions, etc. etc.
This was a huge motivator for me in learning mathematics both during my time in school and beyond. Instilling a love of problem-solving through coding is a great way to put your kid on the route to continuous learning.
comment 12y ago · link · parent
First, most recruiters/hiring managers ask for current comp (or at least a salary range) early in the discussion, so it should be easy for them to offer well over someone's current pay. This simply removes one bargaining tools (lying about current comp) for an employee considering a move elsewhere.
Second, matching outside offers very quickly becomes a slippery slope. Anyone who figures out that such a policy exists will quickly come to the realization that the easiest way to get a raise is to put themselves onto the market. That's toxic, not to mention unsustainable.
Finally, equity. The one-year cliff exists for a reason, and if you're playing for keeps with an early-stage startup, you're probably expecting (or at least hoping) for your ownership stake to be worth a lot more in the long run than your salary.
comment 13y ago · link · parent
For those who have less-portable skills, or are in a more competitive labor market, telling your boss to go to hell is a much more dubious choice.
comment 13y ago · link · parent
I also wasn't really trying to generalize; I was attending a fairly expensive liberal arts school (albeit to study math) with 100% need-based financial aid, and tuition alone doesn't cost nearly as much at most state schools.
comment 13y ago · link · parent
After a year of work wherein I made about $25k, I talked to the financial aid office and found out that my expected contribution towards tuition, room, and board was likely to go from about $5k/year (barely covered via loans and family support) to $15-20k, which was totally untenable.
My response was to drop out, keep coding, and figure out how to backfill the CS knowledge I needed by working with smarter, more experienced people than myself. 15 years in, it seems to have worked reasonably well, and I'm regularly reminded how much easier my life has been not having tens of thousands of dollars worth of student loan debt hanging around my neck throughout my 20s.
To be clear: I know that the plural of anecdote is not "data", and I don't want to suggest that the dropout -> tech industry path is easy or in any way guaranteed. However, I think that it's a far easier field to get into than many others if you have the aptitude and motivation to build some things on your own and learn as much as you can from the process.
comment 13y ago · link · parent
The OP is not wrong about the qualitative difference between a 'bot and a normal video-conference setup. Things like this may seem minor (or even silly), but they go a long way to make it feel like our remote colleagues are actually present and part of the team:
https://twitter.com/thedeepg/status/337352680840257536 https://twitter.com/rcoder/status/336584756147916800
comment 13y ago · link · parent
That being said, above a certain scale and complexity level, you probably want the topology of your persistent data store hidden from your web request handlers anyway. For one thing, making requests to N backend shards from M frontend web workers starts to get bad when N and M are both large; for another, introducing really complex scatter-gather query logic into your request-handling pipeline can be a maintenance and debugging nightmare.
Introducing a proxy or data-abstraction service in between cuts down on the number of open connections and lets you change the data storage topology without updating frontend code.