927 karma · joined Mar 14, 2017 (9y ago) · 307 submissions
comment 8y ago · link · parent
For example, a system using a database with asynchronous replicas - especially if latency is not extremely low - using those replicas for read scaling, is an eventually consistent system (because of replication lag) and suffers from related issues.
Multi-master databases are even worse. You get the joys of network partitioning (netsplit or split-brain) and conflicting updates.
Sure, there are ways to work around this, but all the workarounds I know of have some rather ugly tradeoffs.
Basically, there are many opportunities to do something great, and not be bored. IMHO.
comment 8y ago · link · parent
From Programming Pearls, Section 7.3 [Safety Factors], by Dr. Jon Bentley, which reproduces Vic Vyssotsky's advice from a talk he has given on several occasions.
"Most of you'', says Vyssotsky, "probably recall pictures of `Galloping Gertie', the Tacoma Narrows Bridge which tore itself apart in a windstorm in 1940. Well, suspension bridges had been ripping themselves apart that way for eighty years or so before Galloping Gertie. It's an aerodynamic lift phenomenon, and to do a proper engineering calculation of the forces, which involve drastic nonlinearities, you have to use the mathematics and concepts of Kolmogorov to model the eddy spectrum. Nobody really knew how to do this correctly in detail until the 1950's or thereabouts. So, why hasn't the Brooklyn Bridge torn itself apart, like Galloping Gertie?
"It's because John Roebling had sense enough to know what he didn't know. His notes and letters on the design of the Brooklyn Bridge still exist, and they are a fascinating example of a good engineer recognizing the limits of his knowledge. He knew about aerodynamic lift on suspension bridges; he had watched it. And he knew he didn't know enough to model it. So he designed the stiffness of the truss on the Brooklyn Bridge roadway to be six times what a normal calculation based on known static and dynamic loads would have called for. And, he specified a network of diagonal stays running down to the roadway, to stiffen the entire bridge structure. Go look at those sometime; they're almost unique.
"When Roebling was asked whether his proposed bridge wouldn't collapse like so many others, he said, `No, because I designed it six times as strong as it needs to be, to prevent that from happening.'
"Roebling was a good engineer, and he built a good bridge, by employing a huge safety factor to compensate for his ignorance. Do we do that? I submit to you that in calculating performance of our real-time software systems we ought to derate them by a factor of two, or four, or six, to compensate for our ignorance. In making reliability/availability commitments, we ought to stay back from the objectives we think we can meet by a factor of ten, to compensate for our ignorance. In estimating size and cost and schedule, we should be conservative by a factor of two or four to compensate for our ignorance. We should design the way John Roebling did, and not the way his contemporaries did -- so far as I know, none of the suspension bridges built by Roebling's contemporaries in the United States still stands, and a quarter of all the bridges of any type built in the U.S. in the 1870's collapsed within ten years of their construction.
"Are we engineers, like John Roebling? I wonder.''
comment 8y ago · link · parent
“Potentially”, because it may (who knows) accidentally have come to the correct conclusion, notwithstanding its shaky basis, but it could just as easily be wrong.
The author of that article even goes as far as writing “Correlation does not equal causation“ and in the same sentence goes on to call it a trend, which I find contradictory.
comment 8y ago · link · parent
I have no doubt that it has happened before and continues to happen.
The deceit; the refusal to listen to or pay attention to actual proof; the rewarding of the guilty and the punishment of the innocent; the firing or sidelining of the overly vocal; the hell-bent tunnel vision that believes only in the billion-dollar payoff, even if it destroys the company (or people’s lives), and all the pathological rest.
I’m not sure if that says something about humans in general, or maybe even primates, or US society, or all of these.
I wonder, too, if the logical voices of dissent so necessary for real progress have been largely silenced by the tyranny of the hashtag, the mob mentality of social media (HN excepted), the attention-deficient multitudes born of television and the Internet, and the power leached away from us by mandatory binding arbitration clauses in our job, lease, rent, and just about any contract in the USA these days?
comment 8y ago · link · parent
In fact, I almost certainly know only a tiny fraction of what the actual experts in that company knew, but a number of people have told me that I know a lot more about it than the average developer.
That scares me, and if people flame someone for recommending that a dedicated security expert be hired by companies that handle sensitive data, I can only conclude it is out of ignorance - of what's out there, and what's possible.
On the other hand, there are economic realities to consider, especially in early-stage, underfunded startups. What do they do about this?
comment 8y ago · link · parent
I, too, do ssh + tmux, as well as Textastic, Pythonista, and Working Copy (git), so much so that when I showed a colleague what I did, he exclaimed in an astonished tone that the only things he thought people used iPads for were email, browsing, and games.
That remark prompted me to make an 11 minute video (all done on the iPad using screen recording, Keynote, and iMovie) of creating a Linode, sshing into it, installing a user with SSH login, logging out and sshing in as the new user, installing the latest Docker from docker.com, and demoing some of the apps I just mentioned (to fit a 15 minute time budget). The latest iPads are not toys; they can be used for professional work.
With LTE access, I can easily work almost anywhere; working on a plane is much easier than with a laptop (for me - I'm pretty tall and it's already a squeeze).
comment 8y ago · link · parent
Computers always do what you _tell_ them to do, not what you want them to do.
The onus for keeping computerized material private is on the owner, and the owner screwed up royally by wrongly allowing sensitive material to be placed unprotected on a _public_ web site. Whether or not it was indexed is irrelevant - it was on a publicly accessible site, permissions set to publicly accessible, and the entire site was meant to be publicly accessible. One can close the analysis until the cows come home, it will not change this fact.
Accessing that material is as illegal as finding a diamond ring (or personal files) while dumpster diving. Dumpster diving may be seen as tasteless or low-class, but as far as I know, it’s not illegal.
Do we prosecute reporters for ferreting out publicly available, yet embarrassing, information?
comment 8y ago · link · parent
If those sensitive documents were on a _public_ website intended to be browsed by the _public_, who presumably did not require authentication, and the documents did not cause an “Authorization required” response when accessed, it feels rather totalitarian to treat that as a crime.
Most of the metaphors I’ve seen about this are not fitting. As excessive as the barrage of metaphors may be, allow me to add my own:
As part of a free treasure hunt, a person gives you the address of their house and says, “Whatever is not locked up is fair game for you to look over, take photos, or copy.”
You go there and have a great time. Then the homeowner has a fit because you discovered a hidden cellar full of pornography, which was apparently off limits but the door was inadvertently left unlocked. Now the homeowner is charging you with breaking and entering, saying you should have known better and it was common sense.
comment 8y ago · link · parent
At the time, there were no Forth interpreters available locally for the only computer I had (a TRS-80 Model II running CP/M. Actually, it was my Dad’s.)
I found someone from the Forth Interest Group (FIG) who gave me a 90-page Z-80 assembly language listing for figForth, which I proceeded to type in overnight and assemble with masm, IIRC.
It worked, and sadly, I never really did much with Forth after that. But it was an interesting experience and I still think TILs are a cool idea.
comment 8y ago · link · parent
In Robert Sutton’s book, “The No Asshole Rule”, he describes what it takes to be a “certified asshole”:
> A person needs to display a persistent pattern, to have a history of episodes that end with one “target” after another feeling belittled, put down, humiliated, disrespected, oppressed, de-energized, and generally worse about themselves.
Put another way, in the series “Justified”, Raylan Givens opines (paraphrasing here):
> If you come across an asshole in the morning, well, you just met an asshole. If you’re coming across assholes all day long, maybe _you’re_ the asshole.
Assholes at work create a genuinely toxic work environment. People get sick, quit, and even commit suicide.
It can be argued, with some merit, that this differs from the Internet in that the assholes are usually in a position of power to abuse their subordinates, while on the Internet - at least in chat rooms and the like - people can withdraw from hateful environments by just closing the tab on the browser.
That’s not my point, though; I’m asserting that people who show a “persistent pattern” of promoting hatred of particular groups, inciting violence, and convincing people of harmful information through lies, half-truths, and myths, deserve to be labeled as “toxic”, and can be far more dangerous to society than a common or garden corporate asshole, because their messages can - and do - influence millions of people towards antisocial or, at very least, irrational thoughts and activities.
comment 8y ago · link · parent
Like anything, it has its envelope and sweet spots, as well as its warts. Some people find the Erlang language syntax to be ugly; I quite like it and find it easier to comprehend in general than Elixir, which is much more verbose to my eyes (except for the very nice pipe operator!)
Yes, the semicolon / period thing in Erlang can be annoying, but not so much that it really gets in my way.
The tooling can be a real barrier to entry, and I’m glad that Elixir is bringing more people into the fold, although I can’t bring myself to really like Elixir for purely subjective reasons.
For example, one of my major complaints about Elixir is that it is literally Erlang with some syntax changes, rewritten libraries, and extensions like macros - but if you don’t grok Erlang thoroughly, you will get frustrated when you hit the bottom layer - like exceptions and error messages - and it’s full of Erlang data structures. I had the same reaction when working with non-Java languages targeting the JVM. They all feel a bit like bolt-on kits. At some point, you really need to understand the core.
In my opinion, of course.
comment 8y ago · link · parent
I worked with two blind systems people for close to 5 years - we were all working remote, so initially I had no idea they were blind - and subsequently learned from them about their struggles and frustrations dealing with shitty or nonexistent accessibility features.
And with assistive devices’ drivers that were broken, or not updated since Windows State of the Ark version, or not available on Linux or Mac, and so on.
These two people dramatically improved the accessibility features of the smartphone product that the company sells, by reporting the issues they found while dogfooding it. They raised the awareness of many people, including me, of the challenges of the blind, particularly in technology settings.
As a result, I learned ‘dot’ (graphviz) pretty well, and became much more text-centric in other ways (e.g. using markdown, avoiding images when possible, adding alt text).
Slack has done the community a disservice by dropping support for open protocols like IRC and XMPP, which support text-based interfaces that work well with screen readers.
comment 8y ago · link · parent
It’s also a recognition that in complex systems, something unanticipated is going to go wrong sometimes, and rather have a plan for handling the failure than pretend that the system will never hit a really bizarre failure mode.
Your circuit breaker analogy made me think of this.
comment 8y ago · link · parent
eval $(ssh-agent)
Sure you can get addons (like bass[0]) that will translate the sh environment variable settings to fish, but it’s a pain to have to do that (and remember wth it was called).comment 8y ago · link · parent
My small insight as a lifelong depressive is that well-meaning people who give advice and encouragement often do so from a position of limited understanding, hopefully because they have never had to endure similar torment.
It can seem inconceivable to them that sometimes people are so destroyed that it is effectively impossible to take their advice, or derive comfort from their words.
I truly hope you find some relief that avoids the need for self-liberation.
comment 8y ago · link · parent
"O tempora o mores" was said by Cicero over 2,000 years ago, which - together with plenty of other evidence - suggests that this is part of human nature.
"Mate", according to you, has become an unfashionable word, but it was quite acceptable in my youth (the 70's).
For example, there was a radio quiz program when I was growing up in South Africa called "Check Your Mate!"
And when I was so clueless in my early twenties to think it would be nice to have a get-together to which I invited my then-girlfriend and some ex-girlfriends, without mentioning this to any of them (because it didn't even cross my mind), at the gathering my then-current girlfriend - without warning - bit me hard on the shoulder and hissed at me, "Don't mix your mates!"
I've also never heard anyone complain about the word "soul-mate".
All I'm saying is that we each speak from our own world view, and suggest that maybe it's fallacious to think that it's always the prevailing world view.
comment 8y ago · link · parent
As (unfortunately) a user of a number of prescription medications, I have encountered adverse effects that were considered uncommon, yet heard about similar issues from fellow users. Of course, this is anecdata, so one can draw no conclusions, but I have a nagging suspicion that enough digging by people who truly understand statistics will find flaws, perhaps major ones.
Not likely to happen, though.
comment 9y ago · link · parent
The reason I say this is that knowing not to give a sensitive AWS S3 bucket public access is 101-level AWS expertise, which means either of these scenarios are likely:
- The persons responsible did not know any better, or
- They did know better, but made an error provoked by pressure due to understaffing.
Both of these point to a lack of competent security personnel, either due to understaffing, or hiring insufficiently experienced staff, both of these due to minimizing salary budgets (or clueless hiring managers, perhaps).
comment 9y ago · link · parent
This is not to say that an opioid crisis does not exist, only that it is being used for nefarious purposes.
It's not rocket science to predict the outcome, based on current events: opioids become so difficult to get, even for legitimate purposes like breakthrough cancer and post-surgical pain, that the genuine users suffer along with the so-called abusers; politicos declare victory; and we get stuck with more dangerous pain relief that has not (yet) come under scrutiny.
This is another turn of the screw that crushes the populace a little further into servitude.
Hyperbole? No.
Taken together with the other almost invisible attacks on our freedoms, such as
- not being able to deposit $5,000 or more in totally legitimate cash without being reported to the finance cops,
- the loss of 7th amendment rights by more and more contracts incorporating mandatory binding arbitration clauses, and
- the need for good credit ratings effectively forcing us to have at least some debt,
a reasonable person will surely agree that the sum of these, and upcoming, small tyrannies, if unchecked, will leave most of us in servitude to the State and the "Corporate State".
comment 9y ago · link · parent
comment 9y ago · link · parent
I wasn't aware of this. To be clear, it's not 100% accurate to say "never", because it depends on the .NET environment, but point taken.
I now understand that .NET (on desktop, anyway) compiles all intermediate code (CIL) to native code on every run. This is a way different kind of JIT than Java HotSpot, which executes intermediate code (bytecode) initially, profiles intermediate code execution, and only compiles the hot spots to native code after a while.
It seems like what "JIT" means has evolved since the time it meant "JVM HotSpot".
There's a very interesting snippet of an interview with Anders Hejlsberg at https://stackoverflow.com/a/1255828/4158187, which exposes his reasoning.
comment 9y ago · link · parent
I'm curious as to how you get certbot to renew automatically without a cron job or some sort of script in the Docker container that periodically runs 'certbot renew'.
comment 9y ago · link · parent
Isn't JIT compilation the process of compiling some sort of intermediate code into machine code at runtime? For example, compiling JVM bytecode into machine code during execution, and using the cached machine code transparently on subsequent calls to that segment of code.
Not to detract from the article, or the interesting techniques and explanation, but I didn't see any compilation other than by gcc, which IMHO makes this AOT rather than JIT compilation.
What am I missing?
comment 9y ago · link · parent
Basically, I can only conclude that we are encouraged to be 'good citizens" by borrowing money and paying interest on it while slowly paying back the principal. People who live on a cash-only basis, which was considered to be a respectable practice not that long ago (borrowing was shameful) have terrible credit scores.
So what, you may ask?
There are very real and increasing disincentives to having bad or no credit. Creditworthiness (in the form of a nice, easy to understand number) is being taken more and more by various entities as a sign of responsibility and even good character.
A credit score is now used by some entities, beyond the mainstay car dealers, to judge risk and character: apartment rentals and employers, to name two.
I'm not suggesting that all employers and apartment management companies do this, only that the trend (I have no citations but it should be searchable) is on the increase.
The bottom line is that in the USA today, credit scores depend on how - and how much - you borrow and repay.
Furthermore, the higher your credit score, the better you are treated, to a degree: better rates on loans, no problems getting a job (all other things being equal), and so on. The opposite is true for bad scores.
This is one of the many ways we are corraled into greasing the gears of the economy, and it is a wasteland for cash-only operators (unless, I suppose, they have a huge amount of cash).