Some Good Articles Found On The Net - New Discoveries, Interesting Topics, Humor, Techy

Wednesday, 2 June 2010

Smokescreen Converts Flash to JavaScript On the Fly

Smokescreen Converts Flash to JavaScript On  the FlyNow this is interesting. Smokescreen, written by Chris Smoak, is a "Flash player written in JavaScript" that takes Flash objects and converts them to JavaScript in real time.

What's that mean? Well, it means it can allow Flash to work where it isn't supported, such as on the iPad. Here's how it works:

It runs entirely in the browser, reads in SWF binaries, unzips them (in native JS), extracts images and embedded audio and turns them in to base64 encoded data:uris, then stitches the vector graphics back together as animated SVG.

It's impressive stuff! You can check out a Homestar Runner demo on their site, and it runs beautifully.

One problem, however, is that the whole thing is pretty hefty, clocking in at over 8,000 lines of JavaScript and 175KB, which may make performance on phones and iPads difficult. But the code is set to be open sourced in the near future, so it should be tweaked to run like butter on mobile devices with a little luck. Awesome stuff. [Smokescreen via Simon Willison via Jim Ray via Marco.org]



Source:
Smokescreen Converts Flash to JavaScript On the Fly

Sunday, 30 May 2010

Eat bacteria to boost brain power

Studies in mice suggest that playing in the dirt could make us smarter

CultureLab: Learn all of science in less than half an hour

This beautifully illustrated book claims to contain "the 50 most thought-provoking theories in science, each explained in half a minute".

"Explained" might be a stretch. After all, there's only so much one can garner about quantum theory or sociobiology from a few brief paragraphs.

Still, there's much food for thought on topics from natural selection to information theory. Expert contributors present difficult concepts as simply and succinctly as possible, and each entry comes with a "3-minute thought" for readers willing to invest an additional 180 seconds. (As the bit on relativity explains, those 180 seconds will take you much further if you happen to be travelling at close to the speed of light.)

30-Second Theories is the kind of book that can spark curiosity and inspire you to seek more information, and would make a lovely gift for the inquisitive non-scientist in your life.

Book Information
30-Second Theories: The 50 most thought-provoking theories in science, each explained in half a minute by Paul Parsons
Icon Books
£12.99

Source:
CultureLab: Learn all of science in less than half an hour

Computer Program Recognizes Sarcasm : Discovery News

THE GIST
  • A new computer program can identify sarcasm in online messages.
  • The program is about as effective as a real person with bad social skills.
  • It can help people avoid confusion in a medium where there are normally few social cues.
computer sarcasm
Sarcasm can be difficult to convey over electronic messages where social cues (like facial expressions) are few.

Sarcasm is a useful way to blunt the impact of criticism by adding a twist of snide humor, as in this recent tweet: "Really love when the scope of a project I've been working on for a week changes in 10 min #sarcasm."

Without the help of a hash tag, though, people often miss the irony, especially when it's delivered online, where there are no contextual hints or social cues. To cut through the confusion, researchers have developed a computer program that can identify sarcasm in online communities with an accuracy rate of about 80 percent.

While there is still a long way to go before computers will be able to understand all the subtleties of humor, the new work might, among other practical applications, help companies sort through comments about their products to find out what customers really think.

Consider, for example, a website that allows users to post their opinions about the products it sells. One comment says, "The size of this camera is great. It fits right into my pocket." Another says, "The size of this camera is great. I need a porter to carry it."

"A typical summarization system will conclude that people are very, very happy with the size and weight" of the camera, said Oren Tsur, a computer scientist at The Hebrew University in Jerusalem. "Obviously, this is not the case."

Funny enough, Tsur's attempt to program a sarcasm detector started as a joke.

When he was a University freshman, he received an email that thanked him for his previous contributions to an annual conference and asked him to be that year's program chair. The email was clearly intended for someone else, but Tsur thought it was funny, so he responded with what he thought was an obviously sarcastic tone. His reply was taken seriously.

"They allowed me to postpone the deadline for submission and asked me what I was working on," Tsur said. "I wrote back that I was working on detecting irony in email. They didn't get that either."

Since then, Tsur's interest in sarcasm had turned serious. This week he plans to present a paper about his work at a meeting of the Association for the Advancement of Artificial Intelligence in Washington, D.C.

His program uses a strategy called "machine learning." To begin, he and colleagues fed the computer 80 sarcastic sentences and several hundred non-sarcastic sentences that they had plucked from Amazon user reviews. Sarcastic comments included: "Trees died for this book?" and, for a smart phone: "All the features you want -- too bad they don't work!"

The program analyzed the sentences and created hundreds of patterns that it used to evaluate a total of Amazon 66,000 reviews for 120 products sold on Amazon.com. Each review contained an average of 15 sentences. One of the patterns it figured out, for example, was that sentences that start with "I guess" and end with an ellipsis are often, though not always sarcastic.

To test how well the program was working, the researchers gave 200 of the same product reviews to three independent reviewers. Results showed about an 80 percent agreement between computer and humans. Given a few million tweets, the program performed with a similar level of accuracy.

The program's performance is still far from perfect, probably because sarcasm is such a complicated social construct, said Katherine Rankin, a neuropsychologist at the University of California, San Francisco.

"That's about as good as a person with bad social skills would do," she said. While such a program might be good enough to help rank reviews, she added, "if the purpose of having a computer program recognize sarcasm is to be like prosthetic for people with poor social skills, I'm not entirely sure those people are really going to benefit .

To truly get interpret a comment like "Oh, I LOVE working on Saturdays," Rankin said, people usually need to know something about the context of a situation and the person who's talking. Cues like eye rolling and a lilting tone of voice help. None of those are available in online communities.

"Our brains pick up complex social cues and process many subtle things," she said. "Computers are nowhere near getting there."



Source:
Computer Program Recognizes Sarcasm : Discovery News

Steve Jobs vs. Bill Gates | SadAndUseless.com



Steve Jobs vs. Bill Gates | SadAndUseless.com

First Human Infected with a Computer Virus : Discovery News

Computer-virus-650x450
As if humans didn't have enough viruses to worry about, one British researcher has successfully infected himself with a computer virus.

Mark Gasson, senior research fellow at the University of Reading, was able to infect a tiny, radio frequency identification (RFID) chip with a virus before he placed it under the skin on his hand. He uses that chip to activate his cell phone, as well as open secure doors.

Thanks to the computer chip, his cell phone knows when he's using it, and when someone else is trying to operate the device. If someone else tries to use his phone (after, say, stealing it), that person is not able to use it. Only Gasson can.

And instead of him swiping an ID card to enter his building, he just needs to wave his hand to gain entrance. The convenience of not taking out his ID and the safety of his phone come with a price, however.

He served as carrier, and was able to pass the virus on to an external computer. The virus was of Gasson's own design and was not malicious. But he was able to show that computer viruses can move seamlessly between computers within and outside the body. And theoretically, if a person had several computers in his or her body, a computer virus could spread from one to another, infecting them all.

Why would people have computers in their bodies? Researchers around the world are developing tiny electronics that can be ingested or embedded in people for health or even security reasons. Consider the camera pill, which records data from the intestines, bionic eyes, bionic limbs, implantable telescopes to improve vision, and more.

The kind of computer chip that Gasson installed in his body is not in wide use, so no need to worry as of yet. In fact, you have more reason to worry about bed bugs than computer bugs. But in the future, computers will get under our skin, and people will have to take precautions to spread digital infections.


Source