The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Search the net - and do something for the environment :)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jan Lelis

Posts: 136
Nickname: rbjl
Registered: Aug, 2009

Jan Lelis is an IT student from Dresden/Germany
Search the net - and do something for the environment :) Posted: Dec 18, 2009 8:17 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Jan Lelis.
Original Post: Search the net - and do something for the environment :)
Feed Title: rbJ*_*L.net
Feed URL: http://feeds.feedburner.com/rbJL
Feed Description: Hi, I am a fan of Ruby and like to explore it and the world around ;). So I started this blog, where I am publishing code snippets, tutorials for beginners as well as general thoughts about Ruby, the web or programming in general.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jan Lelis
Latest Posts From rbJ*_*L.net

Advertisement

It is not that easy to find an replacement for google – often the search results are just better then those of the competitors. Except Yahoo – I like their results, but the user interface is not as good as google’s.

But now I have found a solution that works for me: ecosia.org.

It uses the search of Yahoo and bing and has a nice (simple) interface. And it is about the Rainforest. The site displays ads from Yahoo and Microsoft to earn money the usual way. But 80% of this money, they spend to a Rainforest project of the WWF. Besides this, their servers use green electricity and do not store personal information.

The concept convinced me.

Search from the terminal

Since this is a Ruby blog… I have to write something about Ruby ;).

Like lots of other people, I am lazy. And sometimes I am at the (bash) terminal and want to look up something on the internet. But instead of having to find my firefox, open a new tab, select the right search engine, enter the search term and hit enter, I can now do

e google eats itself

form the console to search for “google eats itself”.

This is achieved by three little steps:

1 – Create the ruby starter “script”

At some place (for example your homefolder), create ecosia.rb:

Listing 1
/15/ecosia.rb ruby
#!/usr/bin/env ruby
`firefox -new-tab http://ecosia.org/search.php?q=#{$**'+'}`

2 – Make the file executable

chmod +x ecosia.rb

3 – Create an alias

Open up the .bashrc in your home folder and insert alias e path/to/the/script/ecosia.rb. Save the file and type source .bashrc (or restart the terminal).


[ Oh, and I changed the design of the blog… I must admit, that the previous version looked pretty ugly at some machines ]

CC0

Read: Search the net - and do something for the environment :)

Topic: End of the Road Previous Topic   Next Topic Topic: Git annoyance

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use