21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 9y ago · link · parent
It's not that you're not allowed to worry about google holding your data (of course it is!), but it's pretty unsafe to be on the 'net without being properly patched.
If I had to set about this, I would have an upstream fork of Chromium that would patch the various networking functions to blacklist known google domains, and then offer a flag to ignore the blacklist in the "obvious" spots (like when you go to google.com). Probably not perfect, but a bit safer.
If you're super serious, you could just 404 all access to google.
comment 9y ago · link · parent
In my experience in other countries, the primary difficulty for ADHD support groups is that many country's medical institutions do not even acknowledge ADHD as a thing.
Some of these institutions acknowledge, but seem to believe that the condition disappears when you turn 18.
Many of the regulatory institutions don't allow stimulants to be used for treatment, either.
This is mostly an anti-scientific position. ADHD is extremely well-researched. Its (medication-based, not CBT) treatment is the most effective of any mental illness, more so than "understood" things like depression.
I'm biased, but I think a lot of places are still in denial about ADHD. There's way too much research around the illness and its effects and treatment.
comment 9y ago · link · parent
Didn't know about the nicotine angle though, kind of interested in the research on this.
comment 9y ago · link · parent
My note-taking became much more effective once I realized that my notes rarely ended up in anyone else's hands, and that they were usually for short-term consumption.
You don't need beautiful notes, you need your notes! Scribble all over if you want (plus it's fun to scratch things out)
comment 9y ago · link · parent
There's less debate and uncertainty about the legitimacy of the retaliation, and its better understood than the advanced kremlinology required to decipher some other things.
Not many things are panacea, but things like the WTO have been pretty useful at avoiding trade wars IMO.
comment 9y ago · link · parent
Without a body that can invoke broad sanctions, countries can play chicken with each other. Regimes can simply decide to seize company assets, and hope the offending parties don't cause enough of a real ruckus.
Of course this lowers investor confidence long-term. But governments that do that are rarely interested in this. They're more interested in lining their own pockets with personal wealth.
These sort of trade frameworks build a mutually-assured-destruction setup, so that any BS can get swiftly acted upon by a "neutral" party. And at the end of the day, it allows for stronger rule of law, which is better for most parties. The ones that end up the worst off are the kleptocrats.
Airliners can buy insurance for plane crashes. But most of them would rather planes just not crash.
comment 9y ago · link · parent
My reading here is that the base mechanism of the trade was "DB gives X, receives Y% of X over Z years".
I really wonder what % of transactions are this sort of fee-generating trade
comment 9y ago · link · parent
Russia is able to make noise and do things to Eastern Europe, but the government's moves seem to be much more about preserving the current government rather than advancing the interests of the nation as a whole
For example: how does annexing Crimea help Russia? Was that one navy port worth it?
A calculated risk, perhaps. But they seem to be bad at math.
comment 9y ago · link · parent
So now your economy has single points of failure. Samsung failing would cause massive failures. Markets are not rational, and crises of confidence will kill.
From a corporate governance standpoint, being the son of the CEO does not make you the right future CEO.
Having huge conglomerates might help with coordination, but not for competition. Samsung the smartphone company will feel obligated to use Samsung the construction company , even if Hyundai might meet the requirements better.
Having only large corporations that can throw their weight around is basically a planned economy. That works well when the people running them are good. Sometimes planning works!
But you now are placing your bets on the skills of a couple dozen people not being bad at their job.
If these companies were split up, then suddenly an economic crisis requires a much larger amount of people being stupid.
This isn't impossible (2008 is a good example of interests not being aligned), but personally I prefer that to a quasi monarchy.
comment 9y ago · link · parent
What name do you ascribe to "a continuous function from R to R"?
Another detail is that you are rarely juggling more than 10 or so names at once.
A lot of math at a higher level becomes abstract enough to where elements no longer have a concrete meaning. What does the x in integral(f(x)dx) mean? It's more about some things being harder to write in point free style rather than anything else.
This is perhaps why it's common to have short names for arguments in functional languages as well.
comment 9y ago · link · parent
You might want simplicity, but users also want performance. So a complete solution will be performant, but simple.
You have one use case, but other users have others. A complete solution will work in as many use cases as possible given its constraints.
Scala's parser combinators are a good example of a complete solution. It offers the "elegant" solution of parser combinators. But it also offers an implementation of this using things like Packrat parsing that are extremely efficient.
The non-complete example of this is someone who writes a parser combinator library that is simple, but simply not performant for real world use. For example, you might write a simple version in Python, but not properly apply TCO and so your parser can't handle deeply nested structures because of a stack overflow.
---
With regards to owning code, I remember hearing that it took 9 years of the initial publication of quicksort for there to be a bugfree implementation of it. Even easy things can be tricky.
comment 9y ago · link · parent
Do you want to make games? Using something like the PICO-8 will still mean you're gonna futz around. But you'll be futzing around on game design-y stuff, rather than on "how do I get pixels to the screen" futzing.
If you want to make game engines, then the pixels to the screen is the fun part.
I futzed around so much as a kid, but not because I wanted to. It was more because I didn't know any better, and was just trying to get to what I "really" wanted to futz with.
comment 9y ago · link · parent
Python 2 will allow this to sometimes work, Python 3 will make sure this never works, because there's a bytes/text mismatch. It's nice to rule out entire classes of bugs like this
from sys import argv
import json
with open(argv[1], 'rb') as f:
json.loads(f.read())
Porting is still difficult. But when we ported from Py2 to Py3, we found a couple issues like this (despite dealing with weird encodings all the time).comment 9y ago · link · parent
Let's say 20 people own parts of the house in front of yours. It's confusing, so you whine a lot, and suddenly a public auction is triggered?
At the very least, he must understand that he is _not_ the owner, so everything else is kinda moot right?
EDIT: seems like he bought out certain percentages of ownership on these parcels, and there's a law that can help to force a sale when the ownership gets too confusing.
Seems like the sort of law for billionaires wanting to have their own private beach.
comment 9y ago · link · parent
Even if the model said 95% for Clinton, there's still a small possibility for Trump to win. It's hard to accept because 95% is really high! But hey, people win the lottery, right?
comment 9y ago · link · parent
Sure, it's anonymous. But the short-term nature means that the prime objective when posting something is to get replies. So you get some troll bait or other things sure to get replies.
Everyone else is doing the same, so you develop a vocabulary based primarily around saying and responding to memes.
If the communication were natural, why is 80% of it memes?
Because of the FOMO, you get an effect similar to many MMOs. In order to participate, you must spend a lot of time on the image board, on IRC, making sure that you're doing your thing.
So you end up with a bunch of people who spend their (usually teenage) lives online absorbing as much image board culture as possible to "get good" at it. It's the ultimate clique. Everyone wants to be part of the secret club (sometimes quite literal: the IRC channels like #/v/ would spend their time creating private sub-channels to have "real talk").
I know on some of the lower-traffic boards you'll find some "real talk" happening, but even then it's usually layered underneath snarky "contrarian trueisms".
It's the ultimate secret club for people who think they get the internet, and gets pretty close to a religion. Remember: don't say you came from reddit.
comment 9y ago · link · parent
- A functioning public transportation system (I was living in a city of 100k people and could get around by bus decently. The worst bus lines still came once every 20 minutes).
- almost free access to culture
- Being able to get your passport done in a week, not six. Maybe not the nicest people, but things happen a bit faster
But I think the core reason you don't see super-high salaries is because the system makes offering absurdly high salaries very costly, instead preferring for more people to make reasonable salaries. You have things like the fortune tax so that even if you don't have a salary, if you have too much money you'll get an extra tax.
It's a feature of the system, not a bug. The glib explanation is France hates rich people. Not everyone likes it but at least everyone gets 6 weeks vacation. And if you don't have a job you can still have a place to live and not live under constant fear of eviction.
comment 9y ago · link · parent
If you could assume escaping, that means you're limiting your input, which seems to go against the advice from my reading.
I gave escaping as an example, but one of the primary ways to reduce bugs is to reduce the scope of possible inputs as much as possible (thus reducing the scope of output to manage).
The requirements are different depending on the use case, but for application-internal code, not relying on that means that so much more global knowledge about the project is necessary to work on it. And, of course, a greater possibility of mistakes (because your requirements are more vast)
comment 9y ago · link · parent
As to why this works this way, consider the following:
do you have to do HTML entity decoding when getting an input value from Javascript?
comment 9y ago · link · parent
This point makes me mad because we have both ways to statically verify that calling conditions are "correct" through the right kind of design, and it should be a zero-cost abstraction but you can't do it in C.
Plus this advice is messy when it comes to things like string escaping. This could easily lead to issues like double encoding. Issues that don't exist if you could set up "proper" type checking in C without having to use things like wrapper structs that incur performance penalties.
Defensive programming is always a bit weird because it always feels un-necessary, but in C it's really necessary because you have so few assurances. Pretty scary
I wonder if there's a tool out there that lets you use Rust-style linear types over C code, and other things that would make some of this advice redundant (because the CI server would check the code). You could still write C, but wrong C would error in the checking step.
comment 9y ago · link · parent
- Have the possibility of {{ and }} in your server-side output (or whatever symbols you configured Angular for)
- Have Angular.JS on a page with server-side output
Choose one.
It's important to realize that this affects things like user input as well. So form initials/form defaults can also be affected by this issue!
A bit of a silly way to fix this problem is to modify your server-side escaping function (surely you have this!) to "escape" {{ with {<zero-width space>{. This will mess up things that need to be equal to each other, and can poison user input (because of form initials) but will protect you from this issue.
comment 9y ago · link · parent
It's like if I wrote a post saying "How I started a company, grew it to $10 million and sold it in 3 months" and it started with "I put in my $5 million trust fund as capital for this company". As a story it might be interesting. As an entry in the "advice post" genre (hinted at by the title), not so great
comment 9y ago · link · parent
>When I remark that President Obama had eight years without any ethical shadiness, Mr. Thiel flips it, noting: “But there’s a point where no corruption can be a bad thing. It can mean that things are too boring.”
"Boring things suck, let's make stuff exciting" is his argument for corruption.
>"It’s like, even if you appointed a whole series of conservative Supreme Court justices, I’m not sure that Roe v. Wade would get overturned, ever.”
Given the current reality of 5-4 votes on these issues, if we were to replace the 5 "for" votes with 5 more "against" votes, I believe that can cause things to be overturned, yes.
It really feels like Thiel has never actually thought about politics deeply, beyond platitudes he's heard. I assume that's not true, but it sure reads like that.
I really wish this had been a video interview, because if it reads absurdly, I bet the soundbites would be even moreso.