21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 11y ago · link · parent
The Map example seems pretty easily solvable via Haskell through typeclasses or the more standard OOP-y languages through interfaces, but am I missing something? Does SML not have the tools for this right now?
comment 11y ago · link · parent
I wonder what the potential output volume range for unpowered headphones is for the volume set at, say, 40% in windows.
comment 11y ago · link · parent
But I think most people see domestic flights as a bother more than anything. The love for trains shows in the stats (second biggest per capita usage of trains after Japan), train stations are usually in the dead-center of town, and you don't have to deal with luggage limits.
comment 11y ago · link · parent
Just an example, but up until maybe a generation ago, it was nigh-impossible to get a mortgage on your house if you were black or decided to live in a neighborhood that was less than 95% white. Even when going through federal aid programs.
Meaning people end up having to go through what are basically loan sharks to get housing for their family, and if anything at all happened, the house is lost instantly. Makes it pretty hard for the grandparents to retire in their tiny house when nobody actually owns the property.
I think the crime level stats are usually confounding with poverty rates. Pretty sure the color of one's skin doesn't make it more likely to kill someone, but there's an argument for poor environments (for example, the worst apartment possible because literally no one else will rent to you, in an area with poor social services) helping spawn crime.
comment 11y ago · link · parent
I think the fact that blacks are given much less lenient sentencing is enough to put the game largely in the oppressive class's favor, and to call the system racist.
And, if purely by statistics, it's hard to argue that this skewing is because all of these people are drug dealers (if they're all drug dealers, who are they selling to?)
comment 11y ago · link · parent
I think the secret is that maybe 10% of CSS writers actually have read more than the bare minimum to getting their layouts to work ( I am not among them, mind you).
comment 11y ago · link · parent
I'm curious as to why you think JQuery is a framework. From my view of things, it seems to be a library in all definitions I've encountered.
comment 11y ago · link · parent
Le Monde had a set of articles about some of this surveillance framework brought to light by the Snowden leaks, but of course the French press didn't talk about it, since the NSA stories were somehow "more relevant to the public".
For all the fingerpointing at the US for the Patriot act and the NSA, France's surveillance state is pretty ominous and there are basically no rules.
comment 11y ago · link · parent
Of course that's the sort of message that you write if it is falling apart as well, so I guess this is basically a contentless press release on that part.
comment 11y ago · link · parent
And when they're not fixed, the support team needs to write _something_. I can sympathize with whoever wrote this. I imagine working for the IRS has its own set of stresses (esp. considering this is stopping people from getting their refunds or whatnot too)
comment 11y ago · link · parent
"America rejects Bush, elects Clinton" makes sense because it's talking about something the country as a whole did. But saying "America builds the creationist museum" can be read as "this was built with a non-minimal amount of popular support, is representative of how americans see things as a whole, and should be placed on the index card describing the country and its people"
5332.
United States dollar almost doubles in value in a single day (2013)(coinion.com ↗)
2 points · by rtpg · 11y ago · discuss
comment 11y ago · link · parent
I'm sure people would be up in arms if "America builds Creationist museum" was a headline, so why should we do this for other places? It's not even hard to rewrite! "First hotel entirely operated by robots to open in Japan"
comment 11y ago · link · parent
Check out this amazing article covering the writing of the AUMF after 9/11 http://www.buzzfeed.com/gregorydjohnsen/60-words-and-a-war-w...
5335.
Save HTML Form State in LocalStorage(github.com ↗)
3 points · by rtpg · 11y ago · discuss
comment 11y ago · link · parent
This is a serious question, because I know a lot of people are against the expansion of TLDs (now I wouldn't have put .sucks on the top of my list for expansion, but...) and I haven't seen a real argument against it.
comment 11y ago · link · parent
And free market arguments do not really apply here I think.If I need to get from NY to Paris in less than 2 weeks, I have no choice but to get onto a plane.
I think standard minimums make absolute sense, because there's not a free market, since people are basically forced to travel by plane (at least for international flights). That or getting rid of reclining seats...
comment 11y ago · link · parent
So for him, he's looking to save his business. Doesn't mean we should bail the guy out, but the situation might be much graver than that 87 number might imply.
comment 11y ago · link · parent
For example, in our application code, we'll use a warning for some type coercion for example
if isinstance(obj,Bar):
warnings.warn('Using a Bar as a Foo!')
In production, this will just print a message to the log. So this is useful for things like phasing out old behavior, where we try to stop using it but don't want hard failure if it's used for now.But in our tests, we do want hard failure (so we can phase out the behavior as much as possible before removing the functionality). So we do something like the following:
if TEST:
warnings.filterwarning('error','Using a Bar as a Foo!',RuntimeWarning)
Which basically says "if I receive a warning matching the regex given, then raise an error instead of just logging". So if I hit that code path during tests it will fail the test.It's very useful, even if warnings is a bit too much about regex matching for my tastes
5340.
How to Sell Excellence(docs.google.com ↗)
2 points · by rtpg · 11y ago · discuss