|| स्वक्ष ||

To content | To menu | To search

Friday 5 March 2010

python is for girls

Note to my readers: Its been some weeks since I blogged and had started this entry on 2010-02-19 21:43 (roughly two weeks) ago and I am less inclined to modify the older writing so its "as is" thought bits about my first pycon experience!! Thanks to Broadcomm bcm43x drivers which made me jump hoops and downgrade the kernel version, I was having wifi issues and could not blog or tweet much during pycon. Broadcomm, please be less evil.

I reached Atlanta after 4pm on thursday afternoon and Sylvia and me went straight to the Chicago room to volunteer for bag-stuffing and there I was rushing a guy ahead in line, little realising that it was CarlT who recognized me but I was so fixated on the task at hand that I didnt notice whom i was talking to. Yikes, assigning nicks to faces is not my strength!

Next, it was onto the swag T-Shirts and since Greg had just 2 PP templates we had only two teams taking a go at it. Sylvia, me and Wei (and later various volunteers) had a simple humanized-robo process to maximize folded shirts output per minute. This drew tons of pycon gawkers and many onlookers wanted to pitch in and have a go at folding t-shirts. Greg's wife and daughter came to watch too. Our efforts were rewarded with yummy pizzas (yeah they had vegan pizza too) and drinks. It was a lot of fun for my first day and its really heart-warming to see icons who should be UP there, stand and work with you. The simplicity and lack of pride is endearing.

Friday, (the first day of) the conference, was kicked off by Van Lindberg and Steve Holden introducing the PSF and its objectives and stressing on the PSF's focus on diversity. This was echoed by GvR who started off his keynote for Pycon2010 wearing a t-shirt that had the python logo and "python is for girls", sent to him at Google by an anonymous person. Hmm...I am curious to know who is the $AnonPerson@Google !!

GvR is one speaker that I enjoyed listening to, for the casual twitter-feed keynote and yet informative speaking style sans slides. And no, GvR didnt wax eloquent on the "state of CPython" although that was what was listed on the guide. For someone of his stature, the lack of vanity in his community interactions is endearing and if you are not already a part of this space, you'd be inspired to want to chip in and do something. Another noteworthy aspect, the organizers make no bones about pycon being a commercial event. Unlike "some" private and commercial Indian events, there is no BS about claiming to be a "floss" event with shady financial(s) that are not privy to the community that makes the event, and neither is there a cabal that controls and pulls strings from behind the scenes.  Their honest and transparent process is admirable, akin to other community conferences.

A round of snacks later it was over to many luminary speakers from the Python community and the first talk I attended was "The Mighty Dictionary" by Brandon Craig Rhodes and then I attended, Managing the world's oldest Django project by James Bennett who explained why it was such a bad idea to have different branches for each of your clients which will lead to an unwieldy and incompatible codebase over a period of time. Deployment headaches with each server-client network running its own software instance. Their solution was "hosted service". He spoke about unit testing, its importance and how they used spidering tools to test sites for all hosted apps. Saying "No" to customizations and instead creating re-usable customized apps from some requests. IIRC, his parting shot was "FLOSS, Internal code becomes external dependency. Floss jettisons legacy code."

The vegan lunch was fabulous but more about the post-lunch sessions. They were, Python 3: The Next Generation by Mr. Wesley j. chun ; Maximize your program's laziness by Dr. David Q Mertz ; The Ring of Python - Holger Krekel. The latter was a talk I simply loved so go and watch the videos which are online and linked via the pycon website. This is another aspect of pycon that I love --Sharing videos with those that could not attend pycon. They dont assume the worst about people, as in, people will not attend the event if talks are made available online (and hence the organizers wont make money when attendance drops), not including other arrogant (if not) silly excuses that I have heard from certain Indian events.

In 2010, attendance topped previous pycon's. It was announced that this year diversity was at its peak with 113.3 women attendees.  No, I am not sure how 0.3% women attended pycon :). Danny blogged and Guido tweeted, and wrote to the list endorsing his support and thoughts on "diversity, people representing other countries and minority groups". I did make it a point to thank him and all the PSF member/organizers that I could remember for the PSF sponsorship, enabling me to attend. GloriaW deserves a special mention and a BIG thankyou for handling hyatt reservations for a bunch of women who were room sharing.

I also met Noufal and Satya (who was our room-share partner), who were also sponsored by the PSF this year. Satya was telling us about her horrid experience with the legendary US B1-visa process in India and the running around she had to endure. Hmmm, why am i not surprised at the horrid experience she had?! It was incredibly funny to hear that the officer asked her to speak in python....doh!! My immigration officer was a hulk at 6'4" and the only intimidating question he asked me was "So, is python like C language?" and before I could speak he cuts in with "Never mind, I'd never understand what you'd say. You are good to go."

LOL, more later.

Wednesday 27 January 2010

ghargey red pumpkin

Yesterday I made "Ghargey", a sweet puri made out of the very common red pumpkin or "lal bhopla" -- the same one that is used in sambhar and kootu or curry. Its very simple and easy to make.

Ingredients for Ghargey :

  • 1 cup (cleaned & grated) lal bhopla/red pumpkin
  • 1/2 cup gura/jaggery. [If you dont have jaggery use brown sugar]
  • 1 cup wheat flour (dont use maida)
  • 1 tsp ghee
  • 2 tsp oil
  • salt (to taste)
  • 1/4 tsp elaichi powder
  • Oil for deep frying the puri.
Preparation :

0. Warm the ghee in a pan and add the grated bhopla and stir well.
1. After a minute or so, add the jaggery and mix well. Remove all lumps. You can also smash banana (the elchi or the kerala variety) and add it to this. 
2. Cook them till the water leaves the sides of the pan. [TIP: do not overcook it into a hard lump.]
3. Turn off the gas and add the cardamom powder and mix well.
4. Cool the pumpkin mixture and transfer to a second vessel. To this, add 2 tsp oil and a pinch of salt. Slowly add the wheat flour and knead the dough. Avoid adding water. Cover and let the dough rest for a few minutes.
5. Divide the dough into small portions and roll them out into round puris with a rolling pin.
6. Deep-fry them in medium hot oil until they puff-up and turn golden brown.
7. Enjoy hot. With shrikhand, its just yum!!

I know that folks expect pictures but the problem is the pooris got over very quickly ;-)

Wednesday 20 January 2010

winter scarf in 48 hours

Winter demands a thick handmade neck-warmer and I needed one in a hurry to avoid freezing.  There was no time to go shopping for black wollen yarn (my defacto safe colour match mantra) and out of 4 colours, only two (hideous) colours were available in the same 4-ply in sufficient quantities at home -- copious bundles of electric blue and baby pink wollen yarn, leftovers from an earlier knitting project. Being pressed for time (48 hours from start to finish) I had no choice but to use them for my neck-warmer. When I see unused yarn, it is like a blank sheet of paper and I always want to own yarns of all shades and dimensions. *sigh*.

Stoles and scarves are my favorites (unlike socks) as I could let my imagination go wild and dont have to depend on a written pattern. Earlier I had crocheted two stoles out of cotton thread and this time I would be faster as I knew what mistakes to avoid. Earlier, I had to unravel both stoles measuring 2.5 meters by 12 inches, as I was not happy with the outcome. The funny thing about unravelling a finished craft pattern is that onlookers tend to gasp and murmur over the lost labour of love. I tend to be less emotional and more concerned with the perfect product. I'd be more annoyed if I knew where the mistake in the pattern lay and would probably quibble about it every time I wore it. Ho hum, I digress! 

So I had managed to find sufficient quantities of wool but a new problem arose. I had lost the larger aluminium hooks for wollen yarn and without a larger hook for proper tension, (as I planned on combining both blue and pink yarns around) my end product would not look good. Desperate, I grabbed the largest steel hook for threads -- a size zero hook (see this picture) and started out with a basic chain, returned with a double crochet (hdc also looks good) and a treble and slowly crocheted this scarf out of two contrasting colours. Keeping the tension was still a challenge, especially when you are using the wrong hook type, the guage gets all wrong whilst juggling with two 4-ply wollen yarns with no dimensions to compare with.

Yet, I managed and was warmly surprised that the colors didnt look as gaudy as I thought it would. Here is the finished scarf with tassels, which is 2.75 meters long (including the fringe) by 12 inches.  Usually fringe/tassels are long strips of cut yarn knotted together, but I was worried that the edges of the 4-ply yarn would unravel after two washes. That looks ugly, so I decided to use crochet a fringe with a knitting stitch for longer durability. The next project is a head warmer ...yeah, a hat!!

Tuesday 19 January 2010

january meetup

Bangpypers Bengaluru Meetup

DATE+TIME:: 20100123 (Saturday) at 1530 Hrs.

VENUE:: ThoughtWorks Technologies ; 2nd Floor, Tower C, Corporate Block, Diamond District, Old Airport Road, Bangalore.

AGENDA::

1. BaijuM will give a demo about using collective.buildbot for setting up buildbot (Continuous integration server) 

2. Noufal will give a short intro talk about setting up a buildbot at his workplace for CI using py.test, being customised to run the tests.

Sunday 10 January 2010

raga janasammodini

Last week I was terribly homesick for music class. Each time I get a chat message I am curious to know what new songs my friends have learnt as I miss the silly banter, the fun and ruckus we caused, including breaking light bulbs...all accidentally ofcourse.

I am not sure how I will catch-up and learn all the songs I missed this past year. So after two back-back reruns of listening to our old recordings, I could not rid the strong feeling and went for an hour long walk singing raga Janasammodhini [Govinda Ninna Namave Chanda] whose lyrics are below.

Sri Purandara Dasa composed this 28 harikaambhoji janya in the Kannada language and set it to Adi Tala with Arohana :: S R2 G3 P D2 N2 S and Avarohana : S N2 D2 P G3 R2 S

Pallavi : govindaa ninna naamave chanda

Anupallavi : anu renu trina kashtha paripoorna govinda || nirmalathmakanaagi iruvude aananda || (Govinda)

Charanam : srishti sthithi laya karana govinda || ee pari mahimeya thiluvude aananda || paramapurusha namma purandara vittala || hingana dasara (ninnaya karana**) sahaluve aananda || (GovinDa)

The composer, Sri Purandara Dasa used the signature "purandara vittala" in his songs which is the second-last line of the charanam (last part of the song).

** In the Charanam, the last line was taught as "ninnaya karana sahaluve aananda" (everything in this world is joyful because of you) but as a non-kannada speaker I am not sure which version is correct as I dont know what "hingana dasara" means. I assume neither does the listener and frankly at -16 deg C, it was just moi lonely soul on the road, as compared to the time we sang it on stage infront of an audience. 

Friday 8 January 2010

bengaluru lug january meet

Here is an update on the Bengaluru LUG meetup tomorrow:

From, http://groups.google.com/group/ilug-bengaluru/browse_thread/thread/e276d78bb443394f

ILUG Bengaluru Meetup - Saturday 9th January 2010

Time:  1630 Hrs onwards.

Venue:
       ThoughtWorks Technologies
       2nd Floor, Tower C, Corporate Block,
       Diamond District, Old Airport Road

Agenda:

       Neo Freerunner

               - state of neo freerunner/ open hardware
               - state of the software/firmwares openmoko/android etc.
               - personal experiences of various users

       Anything goes session

       Will be an unstructured/open format meetup.

Regular Activities:

       GPG keysigning - http://www.debian.org/events/keysigning

For newcomers

The meet itself will last ~1-2hrs, but usually a smaller group tends to move
to other locations for extended discussions which can potentially last until
way past dinner :-)

Kingsly.

Wednesday 6 January 2010

the neuroscience of screwing up

I usually avoid reproducing articles from publications but this was a well-written piece that I wanted to etch it in my memory.

From, http://www.wired.com/magazine/2009/12/fail_accept_defeat/all/1

Accept Defeat: The Neuroscience of Screwing Up
By Jonah Lehrer | December 21, 2009  | 10:00 am  | Wired Jan 2010

It all started with the sound of static. In May 1964, two astronomers at Bell Labs, Arno Penzias and Robert Wilson, were using a radio telescope in suburban New Jersey to search the far reaches of space. Their aim was to make a detailed survey of radiation in the Milky Way, which would allow them to map those vast tracts of the universe devoid of bright stars. This meant that Penzias and Wilson needed a receiver that was exquisitely sensitive, able to eavesdrop on all the emptiness. And so they had retrofitted an old radio telescope, installing amplifiers and a calibration system to make the signals coming from space just a little bit louder.

But they made the scope too sensitive. Whenever Penzias and Wilson aimed their dish at the sky, they picked up a persistent background noise, a static that interfered with all of their observations. It was an incredibly annoying technical problem, like listening to a radio station that keeps cutting out.

At first, they assumed the noise was man-made, an emanation from nearby New York City. But when they pointed their telescope straight at Manhattan, the static didn’t increase. Another possibility was that the sound was due to fallout from recent nuclear bomb tests in the upper atmosphere. But that didn’t make sense either, since the level of interference remained constant, even as the fallout dissipated. And then there were the pigeons: A pair of birds were roosting in the narrow part of the receiver, leaving a trail of what they later  described as “white dielectric material.” The scientists evicted the pigeons and scrubbed away their mess, but the static remained, as loud as ever.

For the next year, Penzias and Wilson tried to ignore the noise, concentrating on observations that didn’t require cosmic silence or perfect precision. They put aluminum tape over the metal joints, kept the receiver as clean as possible, and hoped that a shift in the weather might clear up the interference. They waited for the seasons to change, and then change again, but the noise always remained, making it impossible to find the faint radio echoes they were looking for. Their telescope was a failure.

Kevin Dunbar is a researcher who studies how scientists study things — how they fail and succeed. In the early 1990s, he began an unprecedented research project: observing four biochemistry labs at Stanford University. Philosophers have long theorized about how science happens, but Dunbar wanted to get beyond theory. He wasn’t satisfied with abstract models of the scientific method — that seven-step process we teach schoolkids before the science fair — or the dogmatic faith scientists place in logic and objectivity. Dunbar knew that scientists often don’t think the way the textbooks say they are supposed to. He suspected that all those philosophers of science  — from Aristotle to Karl Popper — had missed something important about what goes on in the lab. (As Richard Feynman famously  quipped, “Philosophy of science is about as useful to scientists as ornithology is to birds.”) So Dunbar decided to launch an “in vivo”  investigation, attempting to learn from the messiness of real experiments.

He ended up spending the next year staring at postdocs and test tubes: The researchers were his flock, and he was the ornithologist. Dunbar brought tape recorders into meeting rooms and loitered in the hallway; he read grant proposals and the rough drafts of papers; he peeked at notebooks, attended lab meetings, and videotaped interview after interview. He spent four years analyzing the data. “I’m not sure I appreciated what I was getting myself into,” Dunbar says. “I asked for complete access, and I got it. But there was just so much to keep track of.”

Dunbar came away from his in vivo studies with an unsettling insight: Science is a deeply frustrating pursuit. Although the researchers were mostly using established techniques, more than 50 percent of their data was unexpected. (In some labs, the figure exceeded 75 percent.) “The scientists had these elaborate theories about what was supposed to happen,” Dunbar says. “But the results kept contradicting their theories. It wasn’t uncommon for someone to spend a month on a project and then just discard all their data because the data didn’t make sense.” Perhaps they hoped to see a specific protein but it wasn’t there. Or maybe their DNA sample showed the presence of an aberrant gene. The details always changed, but the story remained the same: The scientists were looking for X, but they found Y.

Dunbar was fascinated by these statistics. The scientific process, after all, is supposed to be an orderly pursuit of the truth, full of elegant hypotheses and control variables. (Twentieth-century science philosopher Thomas Kuhn, for instance, defined normal science as the kind of research in which “everything but the most esoteric detail of the result is known in advance.”) However, when experiments were observed up close — and Dunbar interviewed the scientists about even the most trifling details — this idealized version of the lab fell apart, replaced by an endless supply of disappointing surprises. There were models that didn’t work and data that couldn’t be replicated and simple studies riddled with anomalies. “These weren’t sloppy people,” Dunbar says. “They were working in some of the finest labs in the world. But experiments rarely tell us what we think they’re going to tell us. That’s the dirty secret of science.”

How did the researchers cope with all this unexpected data? How did they deal with so much failure? Dunbar realized that the vast majority of people in the lab followed the same basic strategy. First, they would blame the method. The surprising finding was classified as a mere mistake; perhaps a machine malfunctioned or an enzyme had gone stale. “The scientists were trying to explain away what they didn’t understand,” Dunbar says. “It’s as if they didn’t want to believe it.”

The experiment would then be carefully repeated. Sometimes, the weird blip would disappear, in which case the problem was solved. But the weirdness usually remained, an anomaly that wouldn’t go away. This is when things get interesting. According to Dunbar, even after scientists had generated their “error” multiple times — it was a consistent inconsistency — they might fail to follow it up. “Given the amount of unexpected data in science, it’s just not feasible to pursue everything,” Dunbar says. “People have to pick and choose what’s interesting and what’s not, but they often choose badly.” And so the result was tossed aside, filed in a quickly forgotten notebook. The scientists had discovered a new fact, but they called it a failure.

The reason we’re so resistant to anomalous information — the real reason researchers automatically assume that every unexpected result is a stupid mistake — is rooted in the way the human brain works. Over the past few decades, psychologists have dismantled the myth of objectivity. The fact is, we carefully edit our reality, searching for evidence that confirms what we already believe. Although we pretend we’re empiricists — our views dictated by nothing but the facts — we’re actually blinkered, especially when it comes to information that contradicts our theories. The problem with science, then, isn’t that most experiments fail — it’s that most failures are ignored. As he tried to further understand how people deal with dissonant data, Dunbar conducted some experiments of his own. In one 2003 study, he had undergraduates at Dartmouth College watch a couple of short videos of two different-size balls falling. The first clip showed the two balls falling at the same rate. The second clip showed the larger ball falling at a faster rate. The footage was a reconstruction of the famous (and probably apocryphal) experiment performed by Galileo, in which he dropped cannonballs of different sizes from the Tower of Pisa. Galileo’s metal balls all landed at the exact same time — a refutation of Aristotle, who claimed that heavier objects fell faster.

While the students were watching the footage, Dunbar asked them to select the more accurate representation of gravity. Not surprisingly, undergraduates without a physics background disagreed with Galileo. (Intuitively, we’re all Aristotelians.) They found the two balls falling at the same rate to be deeply unrealistic, despite the fact that it’s how objects actually behave. Furthermore, when Dunbar monitored the subjects in an fMRI machine, he found that showing non-physics majors the correct video triggered a particular pattern of brain activation: There was a squirt of blood to the anterior cingulate cortex, a collar of tissue located in the center of the brain. The ACC is typically associated with the perception of errors and contradictions — neuroscientists often refer to it as part of the “Oh shit!” circuit — so it makes sense that it would be turned on when we watch a video of something that seems wrong.

So far, so obvious: Most undergrads are scientifically illiterate. But Dunbar also conducted the experiment with physics majors. As expected, their education enabled them to see the error, and for them it was the inaccurate video that triggered the ACC. But there’s another region of the brain that can be activated as we go about editing reality. It’s called the dorsolateral prefrontal cortex, or DLPFC. It’s located just behind the forehead and is one of the last brain areas to develop in young adults. It plays a crucial role in suppressing so-called unwanted representations, getting rid of those thoughts that don’t square with our preconceptions. For scientists, it’s a problem.

When physics students saw the Aristotelian video with the aberrant balls, their DLPFCs kicked into gear and they quickly deleted the image from their consciousness. In most contexts, this act of editing is an essential cognitive skill. (When the DLPFC is damaged, people often struggle to pay attention, since they can’t filter out irrelevant stimuli.) However, when it comes to noticing anomalies, an efficient prefrontal cortex can actually be a serious liability. The DLPFC is constantly censoring the world, erasing facts from our experience. If the ACC is the “Oh shit!” circuit, the DLPFC is the Delete key. When the ACC and DLPFC “turn on together, people aren’t just noticing that something doesn’t look right,” Dunbar says. “They’re also inhibiting that information.”

The lesson is that not all data is created equal in our mind’s eye: When it comes to interpreting our experiments, we see what we want to
see and disregard the rest. The physics students, for instance, didn’t watch the video and wonder whether Galileo might be wrong. Instead, they put their trust in theory, tuning out whatever it couldn’t explain. Belief, in other words, is a kind of blindness.


How to Learn From Failure

Too often, we assume that a failed experiment is a wasted effort. But not all anomalies are useless. Here’s how to make the most of them.—J.L.

1. Check Your Assumptions : Ask yourself why this result feels like a failure. What theory does it contradict? Maybe the hypothesis failed, not the experiment.

2. Seek Out the Ignorant: Talk to people who are unfamiliar with your experiment. Explaining your work in simple terms may help you see it in a new light.

3. Encourage Diversity: If everyone working on a problem speaks the same language, then everyone has the same set of assumptions.

4. Beware of Failure-Blindness: It’s normal to filter out information that contradicts our preconceptions. The only way to avoid that bias is to be aware of it.

But this research raises an obvious question: If humans — scientists included — are apt to cling to their beliefs, why is science so successful? How do our theories ever change? How do we learn to reinterpret a failure so we can see the answer?

This was the challenge facing Penzias and Wilson as they tinkered with their radio telescope. Their background noise was still inexplicable, but it was getting harder to ignore, if only because it was always there. After a year of trying to erase the static, after assuming it was just a mechanical malfunction, an irrelevant artifact, or pigeon guano, Penzias and Wilson began exploring the possibility that it was real. Perhaps it was everywhere for a reason.

In 1918, sociologist Thorstein Veblen was commissioned by a popular magazine devoted to American Jewry to write an essay on how Jewish “intellectual productivity” would be changed if Jews were given a homeland. At the time, Zionism was becoming a potent political movement, and the magazine editor assumed that Veblen would make the obvious argument: A Jewish state would lead to an intellectual boom, as Jews would no longer be held back by institutional anti-Semitism. But Veblen, always the provocateur, turned the premise on its head. He argued instead that the scientific achievements of Jews — at the time, Albert Einstein was about to win the Nobel Prize and Sigmund Freud was a best-selling author — were due largely to their marginal status. In other words, persecution wasn’t holding the Jewish community back — it was pushing it forward.

The reason, according to Veblen, was that Jews were perpetual outsiders, which filled them with a “skeptical animus.” Because they had no vested interest in “the alien lines of gentile inquiry,” they were able to question everything, even the most cherished of assumptions. Just look at Einstein, who did much of his most radical work as a lowly patent clerk in Bern, Switzerland. According to Veblen’s logic, if Einstein had gotten tenure at an elite German university, he would have become just another physics professor with a vested interest in the space-time status quo. He would never have noticed the anomalies that led him to develop the theory of relativity.

Predictably, Veblen’s essay was potentially controversial, and not just because he was a Lutheran from Wisconsin. The magazine editor evidently was not pleased; Veblen could be seen as an apologist for anti-Semitism. But his larger point is crucial: There are advantages to thinking on the margin. When we look at a problem from the outside, we’re more likely to notice what doesn’t work. Instead of suppressing the unexpected, shunting it aside with our “Oh shit!” circuit and Delete key, we can take the mistake seriously. A new theory emerges from the ashes of our surprise.

Modern science is populated by expert insiders, schooled in narrow disciplines. Researchers have all studied the same thick textbooks, which make the world of fact seem settled. This led Kuhn, the philosopher of science, to argue that the only scientists capable of acknowledging the anomalies — and thus shifting paradigms and starting revolutions — are “either very young or very new to the field.” In other words, they are classic outsiders, naive and untenured. They aren’t inhibited from noticing the failures that point toward new possibilities.

But Dunbar, who had spent all those years watching Stanford scientists struggle and fail, realized that the romantic narrative of the brilliant and perceptive newcomer left something out. After all, most scientific change isn’t abrupt and dramatic; revolutions are rare. Instead, the epiphanies of modern science tend to be subtle and obscure and often come from researchers safely ensconced on the inside. “These aren’t Einstein figures, working from the outside,” Dunbar says. “These are the guys with big NIH grants.” How do they overcome failure-blindness?

While the scientific process is typically seen as a lonely pursuit — researchers solve problems by themselves — Dunbar found that most new scientific ideas emerged from lab meetings, those weekly sessions in which people publicly present their data. Interestingly, the most important element of the lab meeting wasn’t the presentation — it was the debate that followed. Dunbar observed that the skeptical (and sometimes heated) questions asked during a group session frequently triggered breakthroughs, as the scientists were forced to reconsider data they’d previously ignored. The new theory was a product of spontaneous conversation, not solitude; a single bracing query was enough to turn scientists into temporary outsiders, able to look anew at their own work.

But not every lab meeting was equally effective. Dunbar tells the story of two labs that both ran into the same experimental problem: The proteins they were trying to measure were sticking to a filter, making it impossible to analyze the data. “One of the labs was full of people from different backgrounds,” Dunbar says. “They had biochemists and molecular biologists and geneticists and students in medical school.” The other lab, in contrast, was made up of E. coli experts. “They knew more about E. coli than anyone else, but that was what they knew,” he says. Dunbar watched how each of these labs dealt with their protein problem. The E. coli group took a brute-force approach, spending several weeks methodically testing various fixes. “It was extremely inefficient,” Dunbar says. “They eventually solved it, but they wasted a lot of valuable time.”

The diverse lab, in contrast, mulled the problem at a group meeting. None of the scientists were protein experts, so they began a wide-ranging discussion of possible solutions. At first, the conversation seemed rather useless. But then, as the chemists traded ideas with the biologists and the biologists bounced ideas off the med students, potential answers began to emerge. “After another 10 minutes of talking, the protein problem was solved,” Dunbar says. “They made it look easy.”

When Dunbar reviewed the transcripts of the meeting, he found that the intellectual mix generated a distinct type of interaction in which the scientists were forced to rely on metaphors and analogies to express themselves. (That’s because, unlike the E. coli group, the second lab lacked a specialized language that everyone could understand.) These abstractions proved essential for problem-solving, as they  encouraged the scientists to reconsider their assumptions. Having to explain the problem to someone else forced them to think, if only for a moment, like an intellectual on the margins, filled with self-skepticism.

This is why other people are so helpful: They shock us out of our cognitive box. “I saw this happen all the time,” Dunbar says. “A scientist would be trying to describe their approach, and they’d be getting a little defensive, and then they’d get this quizzical look on their face. It was like they’d finally understood what was important.” What turned out to be so important, of course, was the unexpected result, the experimental error that felt like a failure. The answer had been there all along — it was just obscured by the imperfect theory, rendered invisible by our small-minded brain. It’s not until we talk to a colleague or translate our idea into an analogy that we glimpse the meaning in our mistake. Bob Dylan, in other words, was right: There’s no success quite like failure.

For the radio astronomers, the breakthrough was the result of a casual conversation with an outsider. Penzias had been referred by a colleague to Robert Dicke, a Princeton scientist whose training had been not in astrophysics but nuclear physics. He was best known for his work on radar systems during World War II. Dicke had since become interested in applying his radar technology to astronomy; he was especially drawn to a then-strange theory called the big bang, which postulated that the cosmos had started with a primordial explosion. Such a blast would have been so massive, Dicke argued, that it would have littered the entire universe with cosmic shrapnel, the radioactive residue of genesis. (This proposal was first made in 1948 by physicists George Gamow, Ralph Alpher, and Robert Herman, although it had been largely forgotten by the astronomical community.) The problem for Dicke was that he couldn’t find this residue using standard telescopes, so he was planning to build his own dish less than an hour’s drive south of the Bell Labs one.

Then, in early 1965, Penzias picked up the phone and called Dicke. He wanted to know if the renowned radar and radio telescope expert could help explain the persistent noise bedeviling them. Perhaps he knew where it was coming from? Dicke’s reaction was instantaneous: “Boys, we’ve been scooped!” he said. Someone else had found what he’d been searching for: the radiation left over from the beginning of the universe. It had been an incredibly frustrating process for Penzias and Wilson. They’d been consumed by the technical problem and had spent way too much time cleaning up pigeon shit — but they had finally found an explanation for the static. Their failure was the answer to a different question.

And all that frustration paid off: In 1978, they received the Nobel Prize for physics.

Contributing editor Jonah Lehrer (jonah.lehrer@gmail.com) wrote about how our friends affect our health in issue 17.10

key signing party with DD Sean Finney

http://groups.google.com/group/ilug-bengaluru/browse_thread/thread/d99f63e1a9f8090f?hl=en

There is a meet today evening for key signing, followed by a dinner. Debian Developer Sean Finney will be there.

People interested for key signing or attending the meet, please feel free to join us.

Venue: Koshy's Restaurant
Time: 18:30 hrs IST
Guide:
http://maps.google.com/maps/place?cid=4568273450830720944&q=Koshy%27s%2BRestaurant,%2BBangalore

http://tinyurl.com/yz8ej7n

PS: Please carry a copy of your ID (preferably Passport or Driving License) for the Key Signing.

Regards,
Ritesh

Wednesday 30 December 2009

linux and science4kids

Some weeks ago, I had asked a women-only list how to engage a bunch of 5-12 y.o kids with science and math via linux in a fun, engaging way. Telling kids to learn foo-programming language is not my idea of a fun learning experience. My dislike for multimedia learning tools in pirated CD's with propreitary software extends to gizmos like playstations and Wii (no offense).

I'd love to see floss tools that teach algebra and geometry in a fun way without the scary "math" word, but existing floss tools are highly limited in quantity and mostly target the pre-teen and teen's for Science learning. Think alice.org, which is at the other end of the spectrum expecting some user/learner contribution, a wee bit much for a 5-7 y.o to grasp. 

When I saw a similar post by Adam, who is looking for kids games, the thought of sharing the interesting responses these women gave came up but I cant post their experiences sans permission, so I'll just post the links and names of the games they responded with.

#0. Squeak or Scratch.

#1. MIT also has the physics simulations gallery on their Scratch site.

#2. A TED talk by Alan Kay about teaching kids

#3. TUX racer game.

#4. Yahtzee game.

#5. Mahjongg. [I think this is a good pattern matching and visual game]

#6. A hello world programming book for teens and maybe even pre-teens.

#7. World of Goo : http://2dboy.com/games.php [physics based puzzle construction game for kids]

#8. Blender.

#9. Pingus, available in the Ubuntu repository.


Some links from Adams blog need internet access while others dont.

#10. http://www.neave.com/games/

#11. http://gcompris.net/  [apt-get the recent GCompris version from Thomas Petazzoni's Unofficial debian repo]

#12. http://www.neopets.com


Returning to games that you can install on your linux machine, there is a whole range of games available in the debian/ubuntu repos and your default Ubuntu installation categorizes the logic games under Applications>Games>Logic, and the ones which I like are Klotski, Five or more, Same Gnome and Sudoku. Some kids (under 10 yrs) love Mahjongg, but then some games are suitable for anyone interested enough to try it.
Having said that, I still feel that a machine cannot (and should not) replace the human touch. The natural curiosity of a kid's mind is something a machine can never replicate, currently atleast. That is where atleast one parent or relative or friend or teacher who makes science interesting will help a kid assimilate and relate to science a lot more than schools dumping linux or science on them in grade 5, or whenever it is that schools introduce computers to kids. For example, Just spin a yarn around the Chinese postman problem, and the kids wont even realise they solved a wee bit of graph theory.  This may perhaps be my cognitive bias speaking so i'll just echo Stephen's thoughts : http://halfanhour.blogspot.com/2009/09/operating-system-for-mind.html (a must read).
 

Tuesday 29 December 2009

neo freerunner meetup in bangalore

There is a Neo Freerunner meetup scheduled on Saturday, 2010Jan09 in Bangalore. Since the timing for the meet was not mentioned, mail Manish Chakravarty [manishchaks at gmail d0t c0m], if you are interested in attending this meet at TW.

TW's address :
ThoughtWorks Technologies India Pvt Ltd ;
2nd Floor, Tower C, Corporate Block ;
Diamond District ;
150 Old Airport Road ;
Bangalore - 560008

Sunday 27 December 2009

happy holidays 2009

Rain kinda killed my hope for a white christmas but after catching up on 2012, good food and dancing with friends over this holiday season, I ain't complaining. The flurries flew in last night and today, so after the lake trip which turned me into a five yo fishing for smooth pebbles in icy waters ; the weekend turned red with merlot, cabernet, and dolcetto. I found the dolcetto quite acidic [a detailed listing for acid/alkaline forming foods] as compared to the cabernet, although technically its the other way around. But am told that this also depends on many other factors like the soil, the fermentation process, region it was produced, etc. That I agree with, as it rewinds me to the experience of drinking wines produced within India, to put it politely, </me scrunches face in distaste>. The humid Mumbai weather makes it a pain to store wines properly and i only have so much space in my fridge and mom, in all probability, must've thrown the last bottle of red wine which I'd preserved for some years, as an experiment.

The whites (Chardonnay and its ilk) dont work their magic for me as I prefer the dry and semi-sweet (scale of 0 to 7 and mood permitting may even push a 10) and the most tempting surprise was Eiswein, but it tipping the scale at 24 was a definite no buy. Maybe i'll be more adventurous the next time! 2009 had forgettable recovering surgical moments and I so look forward to 2010. Happy holidays / Merry X'mas (belated) / Happy 2010 !!

Saturday 5 December 2009

lan on ubuntu

Thanks to broadcomm not supporting libre software, wifi with bcm43xx drivers used to be an issue ...see http://bcm43xx.berlios.de/ and http://linuxwireless.org/en/users/Drivers/b43. Earlier, ubuntu 8.10 brought out networking issues on my laptop which worked flawlessly in one city (Bangalore) but suddenly even a wired connection failed. Kinda odd to have no Lan but no  jumping loops for wi-fi drivers because in recent versions of Ubuntu (8.10 onwards) the device driver hardware was detected automagically. After loading Ubuntu (a clean install once in 2 years is better than an upgrade), the user has the option to activate a non-free drivers for Broadcomm wi-fi cards so device drivers dont have to be manually loaded now. I cant recall if its from the ugly set of plug-ins and hence less supported.   Anyway, the The ethernet cable would detect a direct connection in Vista but not in my Debian and Ubuntu installations. Time to wade through a list of "lan not working in Ubuntu" bugs for every other laptop model and there was another kernel bug filed but that was an issue I faced in ver 8.10 and before. A few minutes of experimenting and wading through help forums didnt help the LAN detection problem. Then I checked /etc/NetworkManager/nm-system-settings.conf

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

and changed the above value to "true" and then "sudo /etc/init.d/networking restart" solved the lan problem.

Saturday 21 November 2009

fossjobs.in

Narendra started and maintains fossjobs.in, an new India-centric job-board for all those Libre software jobs. Its a welcome change to see the clean interface sans any Advertisements with a  readable font size, an important part of usability which many sites seem to ignore.

Another "nice"feature is the non-requirement to create-yet-another-account-to-post...yay!! Click on "post a new job" and voila! The job-type has just 5 listings (Full-time,  Part-time, Freelance, Volunteer, Work from home,) but it would be nice to have "contract/job-work"or even "temporary work" for those short-term assignments that folks may be interested in working on. There is RSS and a twitter stream for all jobs posted. C00L work this :)

Wednesday 18 November 2009

manga-inji

Pickles are an integral part of Indian cuisine but when one is sick the spicy ones like mango, etc.. are taboo, even if your palate demands it. Well food is incomplete without without a peck at some form of pickle, of which there is a whole variety even for folks who are sick. 

Nartankai is one such yummy pickle that is made out of the humble lime-fruit but then I had a whole batch of mangai-inji/mango ginger that suddenly grew from the mud that i had purchased from the nursery. I had no clue what to do with the white coloured inji-manga which smells like mangoes when cut and a chutney would be nice but with a short shelf life, so I chose to pickle it instead...

Ingredients:

  • 5 inches of mangai-inji (cleaned, peeled and cut into small pieces)
  • 2 inches of haldi root (cleaned, peeled and cut into small pieces)
  • 5 limes (washed and cut into cubes)
  • 10 thin green chillies (finely chopped)
  • Salt to taste.

Preparation: Mix all the ingredients in a large bowl and marinate for a few hours and your pickle is ready to eat. Its a very good digestive agent.

Tuesday 17 November 2009

bangpypers lug meetup

Date and Time : At 16:00 hrs on 2009Nov22 (Sunday).

Venue :  ThoughtWorks Technologies ; 2nd Floor, Tower C, Corporate Block ; Diamond District, Old Airport Road ; Bengaluru

Proposed agenda: R.Mahadevan's talk on python bindings for llvm.

Monday 9 November 2009

raga revati

Revati can be:: the name of a person ; the wife of Balarama (elder brother of Krishna) ; or a Pisces nakshatra/lunar star ; but for me its Revati ragam in Karnatic music, which is the second ratnangi janya (argh, that is YAB entry sitting as a "draft" since months).

Tala: Adi | Composer: Dayananda Saraswati | Language: Sanskrit.

Arohanam : S R1 M1 P N2 S  || Avarohan  : S N2 P M1 R1 S

where, R1==shuddha rishabham, M1==shuddha madhyamam, and N2==kaishiki nishadham.

Pallavi: bho shambho shiva shambho svayambho
Anupallavi: gangadhara shankara karunakara mamava bhavasagara taraka
Charanam1
: nirguna parabrahma svarupa gamagama bhuta prapanca rahita | nija guhanihita nitanta ananta ananda atishaya akshayalinga ||
Charanam2: dhimita dhimita dhimi dhimikita kitatom tom | tom tarikita tarikitakita tom | matanga munivara vandita isha | sarva digambara veshtitha vesha | Isha sabhesha sarvesha||

So what is it about some ragas that have an attractive quality to them? Apparently listening (and performing?) this raga always evokes deep emotions and feelings. Hmm.... I've heard the same of raga Bhairavi but BHO SHAMBHO in Revati has a very important place for me. I had learnt this raga all by myself more than a decade ago...gee, i wonder how annoyed folks around me would been as i insisted on ghissa'oing the tape 24/7. Nothing else, just one raga months on end and a few months later when I heard CB render it with a plastic bucket as his modified tabla....absolutely mesmerising!! I had to ask him for a jam session and he helped me iron out my rough edges -- He had demoed some swara bhedams and I had no clue that I was making those errors in my niravals. See, now that is the difference between DIY effort and a propah guru to guide ya. Some years later, when I formally learnt it again from a guru, I was able to appreciate the raga more deeply.

Lastly a word on the composer, Dayananda Saraswati. He is the founder of Arya Samaj whose writings, rather commentary on the Vedic/Upanishad texts is very interesting. It has a lot of similarities to Gaudapada's karika on the Mandukya upanishad which inspired the sunyata nyaya. Yet another check in my pending ToReadList.

Sunday 8 November 2009

mining for money and power

This entry is an ode to our shining political servants (pun intended).

#0#. After 17 days of hardcore bargaining, Mumbai finally hosted the swearing-in of a government for Maharashtra state.

#0#.Down South, Karnataka's politicians are busy playing with the tax-payers money, while the US thinks its getting Bangalored with competition.

President Barack Obama has exhorted schools in the US to develop globally competitive standards to help students take on `folks in Beijing and Bangalore'..........engage in intrigues, mud-slinging, backstabbing and witch-hunting. They throw ideologies to the winds, ditch friends and join hands with foes. They use money and muscle power to bulldoze their way to the seat of power....

#0#. A Ranchi resident files a PIL on Koda and Co. who had de-frauded 3.6 crore rupees per day for 3 years to bid for South African mines while his wife sacrifices goats for his well-being as the ED is hot on his tail with an imminent arrest.

#0#. China sees RED when the Dalai Lama visits an Indian state while many Indian states have Naxals and Maoists on a killing spree and our national song, Vande Mataram, has been issued a fatwa by Muslim clerics.

Mera Bharat Mahan - Indians are ironically a blessed lot!

Wednesday 4 November 2009

online banking and browser neutral standards

Online Internet banking and financial transactions on most Indian bank websites is jinxed because every bank out there (atleast the ones I use) insist on paying their IT vendors to develop software that does not run properly on a Linux platform.

Their websites will display webpages on FF but verification of online transactions and shares trading will be supported only on IE.  For the last few days, I've been trying to access the BOB site to change the password for netbanking but it keeps throwing a "JavaScript Disabled in Browser" error.

Nope, its not just a government bank, private banks are no better. The HDFC website is also FF friendly and renders well but try verifying credit cards for online purchase. Earlier the Netsafe/Verified by Visa/ MasterCard SecureCode pop-up screen used to return a "your browser is not IE....." message but now it gleefully crashes FF in a very customer friendly way! After a whole week of running around between branches and complaining online to talking to divisional heads... the status quo remains. Frustrated, I used IE and voila, everything just works. Ughh!!

Supporting transactions for non-IE browsers is almost non-existent and talking about standards with the bank staff will get the standard response "yahan sab log Windows use karte hain (here everyone uses Windows)". That is the managers cue to me : "Yo customer, I dont care for your problem so end this Linux conversation". Asking to speak to the technical folks will not materialise --see they would not speak to lesser denizens, their customers.

Yet another private bank, ICICI does not think a second layer of security verification for credit card transactions online is important. Simply using a https server is not good enough. A second layer of security for each transaction should be mandatory. Ideally before approving an online transaction the merchant website should redirect to  a Visa or Mastercard verification page (via your bank) which will ask you to verify with the CCV pin#, email id, password, etc... (exact procedure differs slightly from bank to bank) for EACH transaction. Currently ICICI simply approves the transaction which is a probable security lapse on the banks part because someone can memorize the card number, the expiry date, $name and simply flip over your card to read the 3-digit CCV overleaf and voila, you just gave a stranger access to your money !!

In Delhi, a restaurant printed the name, the 16-digit CC number (in all its glory) with expiry date on the POS receipt. So sans the second layer verification from Visa/MC, anyone with access to the merchants copy of the CC payment receipt can (mis)use the card online. All s/he has to do is memorize the 3-digit CCV number on the back of your card. _That_ is a BIG security hole. I didnt bring this to the merchants attention as I didnt want to alert them to a possible route to a financial fraud.  Now, if ICICI has a II-layer verification for the online transaction to be approved the fraudster would need to know your email id, password, answer to your security question, etc... before they can (mis)use your card online. This II-layer verification (besides the IP verification, etc)) will help to narrow down the culprit(s) to: 1) an internal source who has access to your bank records, OR 2) social engineering, where you gave the details to your confidant/relative/friend/family and it was (mis)used sans your permission.

I suspect that the second layer verification is provided by  Visa/Mastercard  only to those banks that pay them for this service and I've experimented with multiple cards for the _same merchant_ and ICICI is still approving the online transaction sans the second verification layer. Now, if a second layer security feature service provided by VISA and MasterCard is being withheld by not informing and not providing the service to the customer, then it is a security lapse on the banks part.  The other scary bit with online banking with some Indian merchants is the practice of auto-debiting your Credit Card  for annual subscriptions. See, if I want to re-sub, I would prefer the merchant sending me a email notice instead of directly debiting my card without my approval or request. This tells me that the merchant is storing my Card details which is not good security practice and most likely I will not use their service again.

Another problem area is the live trading on BSE. Currently this data is available deferred live if you use a non-IE browser. The merchants I spoke to are un-willing to support live trading on a Linux platform, partly because the share traders and banks are so used to IE that they dont support any neutral standards or system platforms.

The European Union's Internet accessibility laws are pretty strongly enforced and India should also have such laws. RBI, http://www.rbi.org.in, has a list of all the circulars sent to all Indian banks under its jurisdiction, including small branches which as per law are required to publicly display rules and regulations in B&W on a Notice board within their offices. Maybe a PIL on behalf of the Persons With Disabilities Act will get browser neutral compatibility standards enforced across the board in India.


- page 1 of 13