434 karma · joined Aug 20, 2009 (17y ago) · 79 submissions
comment 15y ago · link · parent
Either the types that are returned are scala collections, or they're java collections. If you want to treat java collections like scala collections you can always `import JavaConversions._` and huzzah, shallow conversions and collection uniformity.
Finally, if something has the possibility of being null, you can use the option construct, e.g.
if (Option(someListThatMightBeNull).getOrElse(List()).isEmpty) { ... }
Or more likely: Option(someListThatMightBeNull) match {
case Some(list) => // do something...
case None => // do something else...
}
More than likely if you're dealing with scala libs, things that can be "null" are returning options anyway.comment 15y ago · link · parent
Even if you're brilliant and correct, a tactful approach to persuasion/discussion is virtually guaranteed to yield better results than verbal blunt-trauma. Unless the goal of life is simply "To be correct", which honestly strikes me as a fairly depressing end game compared to the other options.
comment 15y ago · link · parent
The drive is two hours, but a waste of gas and time if you're only going for a weekend. Highspeed rail is the perfect intermediate and at a reasonable price (read: $100 or so round trip) would be well more than enough reason to ditch my car for basically all trips greater than 100 miles.
Just because there are some places in the USA where highspeed rail doesn't make sense doesn't mean that argument extends to the whole country.
comment 15y ago · link · parent
They were minting physical coins. They called them dollars. Just because they decided they didn't think they were legally coinage or currency doesn't change the fact that, that's very obviously the intent.
Their whole disclaimer is delivered with a wink and nudge.
comment 15y ago · link · parent
comment 15y ago · link · parent
When coal miners die in China, you don't hear the media clamoring to shutdown every coal mine. Or perhaps more apropos: when there's a coal slurry disaster no one calls for halting all coal mining everywhere.
The real reason is that nuclear is scary because people don't understand it.
comment 15y ago · link · parent
The focus in the media on the reactor is criminally unethical in my opinion. It just adds to the populist echo chamber that nuclear is bad (no matter what) without any context or perspective at all and without any education.
comment 15y ago · link · parent
It says that (presumably in Newark?) you were handed over to a US Army official. Are you certain the individual worked for the Army?
Wikileaks and the Federal Government's response to it is fascinating to me. I'd love to hear more details than what little teaser of an article offers.
comment 15y ago · link · parent
Just because .xxx exists doesn't mean there won't be "pornography" or "offensive materials" on .com/.{foo} addresses. This just provides an excuse for policy and law makers to write legislation saying "Pornography can only be on *.xxx domains".
It's naive to think this will have any effect whatsoever on the availability of porn to your average < 18 year old anywhere in the world.
comment 15y ago · link · parent
Incidentally; Wikifashion is genius. I'm totally going to score points by showing it to my fashion-obsessed-and-wikipedia-contributing girlfriend tonight.
comment 15y ago · link · parent
While Wikifashion is pretty and, that beauty certainly (I'm sure) helps contribute to it's success: Don't you think your high female contributor ratio has more to do with your subject matter being more interesting to women?
comment 15y ago · link · parent
As a deal: You tell your guys stop being dicks to me when I fly to London, and I'll tell my guys to stop being dicks to you when you fly to [US city of choice] :-D
comment 15y ago · link · parent
> Yes you can say that, say, an Iraqi citizen will have a hard time getting in to any country, not just the US; but when we're talking people from England, Europe, China, hell, even Mexico and Canada
England and most western European countries don't require visas to enter the US at all, since they qualify under the VWP. Mexico and Canada only recently required a passport to entry, and at most high-volume crossings you can use a special state/federal ID instead.
Harrowing, I think, is too strong of a word. Several years ago I was stopped at the Canadian border on I5 (between Seattle and Vancouver) and had my car searched. I had to sit in an immigration office for an hour and answer a ton of questions. That's about as bad as it can get between NAFTA countries and it's hardly what I'd call harrowing.
All of that having been said: You're preaching to the choir. I'm 100% in favor of relaxing entry and work requirements for foreigners into the US. I think that people overreact about the US requirements when for most first world citizens it's not that big of a deal, and for the rest of the world it's complicated just about everywhere else too.
> 20-something backpackers who get hassled crossing into America today, or who choose to go to a different country for 6 months instead of face American border bureaucracy, will take those experiences with them when they enter industry and leadership positions in the future.
Agreed, but this has more to do with foreign policy and international PR rather than just border security and hassle.
> Edit: another anecdote--on entering New Zealand I was asked for proof of onward travel (as I later found out, a requirement to enter the country). I didn't have any; I had planned on staying a few months then carrying on to Australia when I felt like it. When I told the agent this, she laughed and waved me on. Can you imagine a US border agent doing that?
Counter anecdote: I once flew back from Mexico without a passport or any identification other than a driver's license (this was right after the passport requirements for flight went into effect -- Mexico didn't require a US passport for entry, but the US required a passport for re-entry) and had to convince the CBP agent that I was an American. He asked me a couple questions and ended with "Who was your freshman English teacher?" which I laughed at and said: "Are you serious?! Does anyone remember that?" and he laughed and let me in. Took just about as long as a normal border crossing.
comment 15y ago · link · parent
comment 15y ago · link · parent
Does flying through the US as the citizen of a non-waived-visa country suck? Yup. But it's not like the US is the only country that has these policies. The UK has a list of countries that require transit visas. The Schengen Zone has a list of countries that require transit visas. Russia does.
And to add further anecdotal fuel to the fire (and counter yours): As a US citizen the worst customs I've been through is far and away the UK.
comment 15y ago · link · parent
There's also the problem that medical care is an inherently non-free market. If I'm bleeding to death, I don't have time to search the BBB's ratings on a hospital and decide which emergency room I'd prefer. The same is true for pricing: If I'm dying my demand for service is going to be irrespective of it's price.
Regulation is a critical component in the medical industry, in my opinion.
comment 15y ago · link · parent
comment 15y ago · link · parent
So your argument is: "Most people don't realize that there's a difference between opinion and reporting, so there isn't one."? I don't accept that people can't distinguish, and even if true, I don't accept that it makes any difference in the truth.
There is also a difference between real new organizations -- viz. print -- and cable news. Even on Fox News, however (note: I don't watch cable news frequently, I'm assuming this is still the case), their opinion shows are clearly separate from their actual reporting. O'Reilly, Hannity, Fox and Friends all discuss the news but aren't reporting it.
> Again we're focusing on Julian Assange. While there is a story to be written about him, that story is easy and lazy. The far harder story is to actually investigate the cables.
Forgive me, but, It's a bit offensive to the reporters at the New Yorker, or the Times, or the NYT to imply that such a story is easy and lazy. You make it sound like the two stories are mutually exclusive and it's not as it the cables themselves are being ignored by anyone.
> The rape accusations against him (while serious and perhaps true) do not change the information contained therein. The source doesn't actually taint the leaked information.
I'm not sure how major media outlets are implying that it does tain the leaked information. If you can see that, what makes you think that others can't?
> Former illegal cocaine and marijuana user, President Barack Obama, took a trip to Hawaii for Christmas break. Since he had been known to get a speeding ticket, it's interesting that he's asked to speed up the time table for implementing the repeal of "Don't Ask Don't Tell".
I honestly don't know how you can't see that there's an ethical difference between what you said and the bias it contains and reporting that Julian Assange is accused of rape. If Obama were accused of rape and tried to pass DADT, you can bet it would be reported on too. Like it or not, the world doesn't organize itself into self-contained encapsulated segments of information. Humanity and human faces are a part of reporting, one that drives more people to know about things like the leaks than otherwise would have.
comment 15y ago · link · parent
I disagree strongly with you. The NYT (as an example) has entire pages dedicated on their website for both the war logs and and diplomatic cables. Even several days ago their front page (print) story was from the leaks. The media is not dropping the ball on this, it's just that alternative media talking heads desperately want them to drop the ball and so just keep saying that they have.
Like it or not, Julian is the face of Wikileaks and his eccentricities and the intrigue surrounding him is part of the story. A compelling part. One that gets more people reading about this than otherwise would have. Reporting isn't just about telling facts no matter how unbiased a reporter or news establishment might be. This is precisely why Wikileaks releases raw data to their media partners for analysis under an embargo in the first place; analysis which comes with some bias.
Would you consider it good reporting if the media were to never address the rape allegations when interviewing Assange? Even if they're fabricated?
> In fact, many media outlets have gone so far as to condemn the Wikileaks organization or to dismiss them as "not containing anything we didn't already know".
Which media outlets are those? Suggesting that outside of the context of an Op-Ed would be pretty unethical, but I haven't see that and I haven't read it anywhere.
comment 15y ago · link · parent
We were going between villages in the mountains that were -- to say the least -- rural. Most of them probably had thirty or forty people living in them and the only access was a single-lane dirt road barely passable by even four-wheel drive vehicles. The workers in the villages rely on hitchhiking or private "taxis" to get to work. Those with trucks generally pick up anyone on the side of the road who's going in the same direction and flags them down.
Having been the hiker myself on some similar Guatemalan roads previously, I discovered that it's customary to ask the driver how much you owed them for the trip at the end and then pay them (depending on the length of the trip) maybe 5 or 10 quetzales -- I think at the time that was about $1.00 - $1.20 USD or so.
My friend and I got in the habit of picking up everyone we saw and dropping them off at their location; por gratis. Most of them didn't speak Spanish (this was rural enough that nearly everyone spoke some mayan dialect) so it was always a bit of a silly experiment trying to explain that I didn't them to pay.
I like to think that maybe we made a couple people's days and they were able to put a little more food on their table (or heck, beer in their belly).
More generally, I make a point to pick up hitchhikers when I have time -- which sadly is less and less frequent these days. Even if it's a risky proposal, I've been on the other side of the equation one too many times in my life not to try and return the favor.
comment 15y ago · link · parent
American blacks make up nearly 13% of the population in the US. That's a pretty significant difference and if you include all minority groups, America's a significantly less homogeneous place than any country in Europe or Asia that I'm aware of.
I agree with your (unstated) premise that this isn't the point, though.
comment 15y ago · link · parent
Some things are simply not important to know as a native speaker but still manage to get taught in English classes. A couple of examples:
1. The different between "that" and "which" (e.g. The curtains that/which cover the windows). Either way is perfectly clear and rigid adherence to a correct "rule" is just language fascism.
2. Terminology for many things that are specific to grammar are also pretty useless. Words like 'participle', 'split-infinitive', and 'gerund' (I literally had to look that up to remember it) are basically useless. Specifically from the test are phrases which obviously have been taught within the class, but don't have any real meaning outside of the concept it's teaching: "Parts of Speech" and "Define Case".
Grammar is only important insomuch as you can write and speak intelligently and coherently. Construction beyond that belongs in a linguistics class specifically focused on the mechanics of language.
comment 16y ago · link · parent
First, children aren't the best judges of the topics they should be learning.
Second, children aren't the best judges of how to most effectively spend their time and judge their own pace, nor should they be: They're children. If I were given a choice in high school, I would have skipped all literature and English classes, played videogames all day, or something else that would be equally destructive to my future.
> Wouldn't it be the best possible outcome if children grew to love the learning process instead of learning to sit and regurgitate?
You're knocking down a straw man: Allowing children absolute freedom isn't necessarily going to lead to them love the learning process, nor is the current system completely about regurgitating facts.