SCRAPER BIKE

These guys just featured on TV and making lot of name. More than 2 million hits on YouTube and they are nominated for best video last year.

Blogged with MessageDance using YouTube

Now bollywood starts blogging, Starting with big guns

Big B started his blog to communicate with his fans, This comes after Amir Khan launched his blog previously. This should have happened long back, but slowly it is hitting people who are vocal about issues.

Website Snapshot

Bollywood film legend Bachchan turns blogger - Yahoo! News

Indian film megastar Amitabh Bachchan has reached out to fans in cyberspace, launching a blog about his life which has triggered a flood of responses from around the world.

Blogged with MessageDance using Gmail

How to extract text from HTML using Ruby/Hpricot

I found this while solving my own problem. ( That is always a best way to learn). 


Requirement: Extract text from HTML body which includes ignoring large white spaces between tags and words.

Solution : Use Hpricot to do the magic

Assumption : Only HTML body is used here 

One liner : Hpricot(html).inner_text.gsub("\r"," ").gsub("\n"," ").split(" ").join(" ")
 

  1. Above line gets the inner text (which is a very convenient method to get the actual meat out of HTML)
  2. Replaces line returns into spaces. 
  3. Do a split/join which eliminates multiple spaces between tags and words. This trims it down to single space

Now if want scan thru the whole HTML right from <html> tags, then you will have to strip out script, link, meta, style tags as well. to do that just do following

hpricot = Hpricot(html)
hpricot.search("script").remove
hpricot.search("link").remove
hpricot.search("meta").remove
hpricot.search("style").remove



Blogged with MessageDance using Gmail

Digg Story: Nanoparticles Help Gauze Stop Gushing Wounds

200Digg! It is interesting on what all can you do with Nanotechnology.

Now chemists have infused cotton gauze with nanoparticles, giving it a vastly improved ability to halt blood loss — even in tight spots like the neck or groin where it’s hard to apply pressure.

Click here to read this story on Digg

Blogged with MessageDance using Digg

13 Seed Funding Options For Entrepreneurs - From @rww

By  Bernard Lunn

http://www.readwriteweb.com/archives/13_seed_funding_options_for_entrepreneurs.php

Some funny, Some serious. 

Blogged with MessageDance using Gmail

Passenger - mod_rails - Can this be a speed demon for Rails apps ?

What is Passenger ? (from http://www.modrails.com/)


 

Phusion Passenger — a.k.a. mod_rails — makes deployment of applications built on the revolutionary Ruby on Rails web framework a breeze. It follows the usual Ruby on Rails conventions, such as “Don’t-Repeat-Yourself”.


If this really picks up, expect to toss couple of key problems with rails based apps


 


Also comments from two of the best authorities on Ruby & Rails


- Matz (Yukihiro Matsumoto) said “It is often said that Rails is weak on deployment; PHP runs fairly fast just by uploading scripts.Rails is slow on development mode, and requires restarting on production mode (and bit complex to configure). modrails might be the answer for it.”.


- David Heinemeier Hansson says “This could become popular very fast”


Surely worth a try and this could answer and resolve tons of frustration rails programmers have as far as performance is concerned.


 




 

Blogged with MessageDance using Gmail

101 Year Old Man Running Marathon and Drinking.

Thats unreal, at this age he can SMOKE, DRINK and RUN ?. WoW!.

Blogged with MessageDance using YouTube

GitHub - Social Network for Nerds

http://github.com/

Look at this page http://github.com/news and it will give you what it really means. Kinda like facebook's public feed for programmers commit/going crazy activities. I like that.

Blogged with MessageDance using Gmail

Great new Toy concept: Moov

IKEA meets Toy World. Very interesting for kids as they can build real life big enough rides.

Blogged with MessageDance using YouTube

Turn your Macbook into seismograph / earthquake sensor

I ran into a very interesting article on Wired today. Article title said Scientists Want Your MacBook for Earthquake Detection“. when I saw that I was like a oh! not another “Use your computer idle time to search for Extra terrestrial and other global causes“.  As usual it is an interesting thought and great idea, apart from knowing what scientists want I found few neat things about the Mac, after reading following section in the article

Cochran’s system makes use of the accelerometers — tiny motion sensors — built into many modern notebooks, including Apple’s MacBook and Lenovo’s ThinkPad, as well as the iPhone and Nintendo’s Wii. Accelerometers detect movement and translate it into digital signals. In notebooks, they function as safety devices: When the accelerometer detects that the notebook is in free fall, the computer moves the hard drive head to a safe position in order to minimize the risk of damage when it hits the ground. But the accelerometers are also accessible to software, so they can be used for games or other applications.

I did not know that motion sensors are this good to the level that they can be used for sensing vibrations and motion around, not just on the keyboard. So I downloaded SeisMac software which can turn your Macbook into awesome sensor device which can give you a visual of noise around your Macbook. This is how it looks It is an impressive piece of software (less than 600K) with the simple idea of tapping accelerometer signals and turning that into running seismic graph. brilliant!. Think about usage of that into all the above scenarios. I’m sure they have different apps for Windows and Unix OS as well, as all the modern laptops these days comes with decent motion sensors for power saving features.Blogged with MessageDance using Gmail