"multiprocessing is a package that supports spawning processes using an API similar to the threading module. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Global Interpreter Lock by using subprocesses instead of threads. Due to this, the multiprocessing module allows the programmer to fully leverage multiple processors on a given machine. It runs on both Unix and Windows."
- Jim Norris
from Bookmarklet
Spooky. I have had this page open in a browser window for the past week.
- Gabe
Interesting. I was not aware that Python has multiprocessing lib. Can someone teach me how commonly this module used by pythonista? For example, is FriendFeed using it? The best part I like about Java is its java.util.concurrent package and I wish I could add this kind of feature to Ruby someday. (I'm nahi at ruby-lang.org, one of a std-lib committer)
- NaHi
from f2p
I wasn't aware of it either, and I don't think it's commonly used, but it's pretty interesting. FriendFeed mainly uses Tornado's nonblocking event-driven architecture along with a little bit of multithreading.
- Jim Norris
I had stumbled upon this a few weeks ago; works great for those cases where you want to take some else's (potentially non multi-* aware) code and throw it across all of your cores.
- Eric Borisch
Jim: Thanks for comment. I found that multiprocessing module is bundled as a std-lib from Python 2.6 (2008-10-01, PEP 371). Widely adoption is yet to come and you picked this as a topic; I've understood now. And for me it's interesting to know that FriendFeed mainly uses Tornado's events for background jobs. Jobs I thought are search indexer, keyword matcher, index table updater, cleaner, etc. I thought these jobs needs to be passivated/backup-ed and restored but it may not be needed by careful design.
- NaHi
from f2p
(Sorry for Ruby topics) GIL is a hot topic in Ruby world as well and Matz (Ruby designer and CRuby developer) seems to think it may not be a serious problem in this many-core era. He's also driving projects for MVM (multi-VM) and distributed KVS.
- NaHi
from f2p
Have a question? Tried googling it on Bing? Maybe you should tweet it on Facebook too.
"WASHINGTON – The nightly attacks by two man-eating lions terrified railway workers and brought construction to a halt in one of east Africa's most notorious onslaughts more than a hundred years ago. But the death toll, scientists now say, wasn't as high as previously thought."
- Jim Norris
from Bookmarklet
William Goldman wrote a bit about this in his book "Which Lie Did I Tell". He also wrote the screenplay for one of the movies based on the story ("The Ghost and the Darkness"), but I've never seen it and don't plan to.
- Andrew C
William Goldman also wrote one of my favorites, "The Princess Bride"
- Megen Vo
"But what really sells Robinson on right wing women’s hotness is that they’re so good at being cheerful, efficient servants for men. A right-wing woman hits the gym, swings past Sobey’s and has dinner on the table by the time you get home ... while her left-wing counterpart is still stuck in traffic listening to Sarah McLachlan on her iPod and feeling morally superior about her carrot choices."
- Jim Norris
from Bookmarklet
"We asked our editors three questions: what are your favorite pairs of earphones - not headphones? Why? And if you had to choose just one, which would it be? Our answers are below, and most interesting in that different users with different listening preferences have gravitated to many similar earphones. Of the group, only one editor noted a preference for full-sized headphones, and no one recommended clip-on earphones, lanyard earphones, convertibles, wireless, or hybrid earbud-canalphones. Feel free to add your picks to the comments section at the bottom of the page."
- Jim Norris
from Bookmarklet
I've been using the Shure E2c's for >4 years now, and absolutely love them. They're leaps and bounds better than anything else I've tried (that didn't cost $$$). They were about $100 when I bought them, but are probably a bit cheaper now. It's slightly irritating to pay $15 for a few pieces of cheap foam, but I've only had to do that once in >4 years, so that's not too bad.
- Joel Webber
I'm not very well-versed on headphones -- all of mine in the past have been whatever cheapo set came with whatever portable music device I happened to be using at the time, though I've stayed away from the stock Apple headphones like the plague -- but I use Bose In-Ear headphones at work and love them.
- Brian Chang
Etymotic ER-6i. They make flying economy a bit more bearable :)
- Tudor Bosman
I am using Etymotic ER-4P since 2007 and happy with them.
- ashish
Srsly what's up with their site? It flashed and jumped around for a few seconds and completely froze up. Twice. Is it the ads?
- Maxamad (Amazigh)
Has anyone listened to the difference between a pair of the ER-4P and ER-6i? Similar technology must drive both, but there is a $100 price gap. I'd be willing to pay the price if the sound was really that much better.
- Bill Strathearn
I wonder whether this will be covered under Pelosi's public option.
- Jim Norris
She lost me at "You've all had high-school chemistry, right? And you know about Einstein?".
- Joel Webber
It's not often than I hear so many words uttered in perfectly grammatical constructs, which have no meaning whatsoever. I guess now I understand why people believe that homeopathy could actually work -- they've had a bunch of meaningless drivel thrown at them, and been cowed in to acceptance through citation of Einstein and Hawkings [sic].
- Joel Webber
"The 'example of the chicken sexers' is famous in several debates in philosophy, especially in the internalism/externalism debate in epistemology."
- Jim Norris
from Bookmarklet
"But Meg Whitman has a story for the people of California. A story that bears no resemblance to the more complicated reality, but it's simple: California's state government spends too much. That somehow California is just tossing around money because the numbers are big."
- Jim Norris
from Bookmarklet
"Fred Hiatt in today’s Washington Post is the latest of these naysayers, writing in his column that the two biggest steps that can be taken to reduce the rate of health care cost growth — changes in health care’s tax treatment and an independent Medicare commission — are missing. I agree with Hiatt on the potential substantial benefits in terms of cost containment from these two changes. But a note to readers who have not read their Washington Post the past few weeks: the Senate Finance Committee bill includes both of these measures." Peter Orszag and Fred Hiatt start a blog flame war.
- Jim Norris
from Bookmarklet
Finally a White House policy blog post worth reading!
- Daniel Dulitz
"Now, think about it. If counterinsurgency, according to current doctrine, is all about securing the population, if securing the population implies not simply keeping them safe but providing people with good governance and economic development and education and so on, what then is the requirement of a global counterinsurgency campaign? Are we called upon to keep ourselves safe? To prevent another 9/11? Are we called upon to secure the population of the entire globe? Given the success we've had thus far in securing the population in Iraq and in Afghanistan, does this idea make any sense whatsoever? Can anybody possibly believe that the United States of America, ... facing a federal budget deficit of $1.8 trillion, ... has the resources necessary to conduct a global counterinsurgency campaign? Over what? The next 20, 50, 80 years? I think [there] is something so preposterous about such proposals. I just find it baffling that they are treated with seriousness by supposedly serious people."
- Jim Norris
from Bookmarklet
Bacevich is one of the most original foreign policy thinker's I've read.
- Jim Norris
At some level I think neoconservatism is fundamentally a domestic political movement that uses its postures of foreign independence, interference and belligerence to marginalize domestic opponents. Any effect in the international arena is just a side effect.
- Jim Norris
The Very Last Superfreakonomics Post of All Time... - J. Bradford DeLong's Grasping Reality with All Eight Tentacles - http://delong.typepad.com/sdj...
"I know, says Steve Levitt: we can build self-reproducing nano-machines to pick up ambient sunlight and use it to break carbon-oxygen bonds and fix carbon. That way we don't have to build either our carbon-scrubbing industry (b) or our power plants (c). And since they reproduce autonomously, they are costless in the long run. We can assemble them into aggregate structures and--at this point Matthew Yglesias breaks in: we could call them "trees"..."
- Jim Norris
from Bookmarklet
Yeah, this. I could tell by the end of the Levitt NPR interview that there was a big baseball-sized hole in his head. "And I definitely don't think people should misinform their readers by saying that the global cooling warnings of the 1970s were like the global wqrming warnings of today, or that the "climate agnostics" have a point because human activity contributes only 2% of the flow...
more...
- j1m
"Our new government is founded upon exactly the opposite idea; its foundations are laid, its corner- stone rests, upon the great truth that the negro is not equal to the white man; that slavery subordination to the superior race is his natural and normal condition. This, our new government, is the first, in the history of the world, based upon this great physical, philosophical, and moral truth."
- Jim Norris
from Bookmarklet
It's interesting how much of the speech sounds entirely modern, except that darn racism part.
- Jim Norris
"We are working on a thorough response to these critics, which we hope to post on the blog in the next day or two. The bottom line is that the foundation of these attacks is essentially fraudulent, as we’ll spell out in detail. In the meantime, let us just say the following. Like those who are criticizing us, we believe that rising global temperatures are a man-made phenomenon and that global warming is an important issue to solve. Where we differ from the critics is in our view of the most effective solutions to this problem."
- Jim Norris
from Bookmarklet
PS: We do however advocate, strongly and unthoughtfully, stupid ubergeek solutions to the problem of global warming, such as blowing up a lot of volcanoes to fill the atmosphere with ash -- solutions which risk environmental disaster in any case, but especially so when combined with our unthoughtful advocacy.
- j1m
"“The financial system nearly collapsed,” he said, “because smart guys had started working on Wall Street.” He took a sip of his martini, and stared straight at the row of bottles behind the bar, as if the conversation was now over."
- Jim Norris
from Bookmarklet
"I reflected on my own college class, of roughly the same era. The top student had been appointed a federal appeals court judge — earning, by Wall Street standards, tip money. A lot of the people with similarly impressive academic records became professors. I could picture the future titans of Wall Street dozing in the back rows of some gut course like Geology 101, popularly known as Rocks for Jocks." Hey, is that you, Bret?
- Jim Norris
"2011 Obama's Coup Fails is an action packed, satire-filled war game that takes place in the not-so-distant future. Right after the November 2010 election, to be precise. It has been said that America would never be destroyed by a foreign power. It does seem our biggest enemies are not from outside our borders. Could the scenario described above ever really happen? If current events keep transpiring as they are, then 2011 Obama's Coup may in fact become a dark chapter in American History. Stay informed and visit the United States of Earth Blog daily for the real facts taking place from the currently free media. Reality is far more scary and ominous than fiction."
- Jim Norris
from Bookmarklet
I feel significantly stupider for having read that page. I assume they include "satire-filled" merely for plausible deniability.
- Alex Power
It also looks like they are doing comment-spam to promote the game, lots of disturbingly similar "I found this cool game by googling usofearth" on right-wing blogs.
- Alex Power
"Feminism made women miserable. This, anyway, seems to be the most popular takeaway from "The Paradox of Declining Female Happiness," a recent study by Betsey Stevenson and Justin Wolfers, which purports to show that women have become steadily unhappier since 1972. Maureen Dowd and Arianna Huffington greeted the news with somber perplexity, but the more common response has been a triumphant: I told you so."
- Jim Norris
from Bookmarklet
"As for the particular happiness study under discussion, the red flags start popping up as soon as you look at the data. "
- Clare Dibble
""contrary to the subjective well-being trends we document, female suicide rates have been falling, even as male suicide rates have remained roughly constant through most of our sample [1972-2006]." Women may get the blues; men are more likely to get a bullet through the temple."
- Clare Dibble
"It's an old story: If you want to sell something, first find the terrible affliction that it cures. In the 1980s, as silicone implants were taking off, the doctors discovered "micromastia" -- the "disease" of small-breastedness. More recently, as big pharma searches furiously for a female Viagra, an amazingly high 43 percent of women have been found to suffer from "female sexual...
more...
- Clare Dibble
Clare: it sounds like you're saying that women are now too depressed to kill themselves. I'm sure some Prozac will take care of that.
- Gabe
Gabe: you crack me up. I like how Ehrenreich points out that the effect size is tiny. Many people look only at the significance level, and not at the effect size.
- Robert Felty
My apologies, Rob. I was only attempting to crack Clare up.
- Gabe
"The question of the moment, framed by the prowar camp, goes like this: Will the president approve the Afghanistan strategy proposed by his handpicked commander General Stanley McChrystal? Or will he reject that plan and accept defeat, thereby inviting the recurrence of 9/11 on an even larger scale? Yet within this camp the appeal of the McChrystal plan lies less in its intrinsic merits, which are exceedingly dubious, than in its implications."
- Jim Norris
from Bookmarklet
"Chucky K has vomited forth a mass over at the Weekly Standard that some people apparently find impressive. The key observation is that American decline is optional, not inevitable. There's certainly something to this; there are different ways to manage the steadily declining economic profile of the United States on the world stage, and the military hegemony of the United States is dependent upon a series of policy choices made in Washington."
- Jim Norris
from Bookmarklet
Sometimes I just want to give up. I don't know what that would mean though.
Sometimes a big shift can help a person gain perspective.
- Kevin Fox
I just got off the toilet and realized I misread Kevin's comment.
- Jim Norris
So did you s*** or just get off the pot?
- Kevin Fox
Things appear to have remained s***ty.
- Jim Norris
Take some time off and travel, it might help
- Shakeel Mahate
+1 Shakeel. One of the best times I ever had was when my wife and I both quit our jobs and went to Spain and Portugal for two months. I came back feeling completely different (in a good way) about almost everything.
- Joel Webber
Give up on something that's not working for you? That could be a good thing. Something better around the corner. :)
- Myrna
"The critics of diplomacy have a point: Tehran has nothing to lose, and much to gain, by drawing out talks and committing to little. However, beyond diplomacy, the administration's policy options are limited and in all likelihood counterproductive. Broad sanctions of the kind Congress is considering won't work; going after Iran's ability to import gas is likely to simply frustrate ordinary Iranians. Nor would the U.S. negotiating position be bolstered by encouraging Israel to bomb Iran, as John Bolton, a former U.S. ambassador to the United Nations, has suggested. Far from weakening the regime, these steps would strengthen it politically as Iranians rallied to support the hard-liners around President Mahmoud Ahmadinejad against the perceived bullying of the United States."
- Jim Norris
from Bookmarklet
"Perry insisted that the three commissioners’ terms had expired and the change was routine. But the ousted chairman, Sam Bassett, told the Houston Chronicle that he had heard from Perry’s staffers that they were “concerned about the investigations we were conducting”; another of the removed commissioners told the Associated Press that Perry’s office informed him that the governor was “going in a different direction.”"
- Jim Norris
from Bookmarklet
"Yesterday, the Republican governor of Texas, Rick Perry, abruptly dismissed the chairman and two members of the Texas Forensic Science Commission investigating the execution of Cameron Todd Willingham, which I wrote about last month in The New Yorker. The move came two days before the commission was scheduled to hear crucial evidence that Willingham was put to death, in 2004, based on...
more...
- Anne Bouey
"This site exists to try and help examine the vicious rumour that Glenn Beck raped and murdered a young girl in 1990. We don't claim to know the truth -- only that the rumour floating around saying that Glenn Beck raped and murdered a young girl in 1990 should be discussed. So we're going to do our part to try and help get to the bottom of this."
- Jim Norris
from Bookmarklet