"; */ ?>

software


21
Nov 07

Add Launcher to “Avant Window Navigator”

    Lately it has become a very painful experience for many people (according to forums/articles/open tickets) to add new launchers to Avant Window Navigator. I have taken a look at it and figured out a rather hacky approach to make it work.

    First I will manually create a "desktop" launcher.

( If you already have one, open it with any text editor (vi, gedit, etc..) and make sure it follows the structure of my "desktop" launcher )

   In order to create the launcher, I have to know two things:

       – the path to the file we would like to launch

       – the path to the icon we would like to use

    In this example, I am going to create a launcher to some program called Aptana, in your case it may be any other program. I know that Aptana executable file is located here: "/opt/aptana/Aptana". I also found an icon I would like to use for it, and put it here: "/home/user/icons/aptana_48x48.png".

    Now by knowing two these things, I can open my favorite text editor (vi, gedit, your favorite.. ) and type the following:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name[en_US]=aptana
Exec=/opt/aptana/Aptana
Comment[en_US]=+ RadRails
Icon[en_US]=/home/user/icons/aptana_48x48.png
Name=aptana
Comment=+ RadRails
Icon=/home/user/icons/aptana_48x48.png

    Notice the Exec and Icon parameters are populated with those two things. Name and Comment can be whichever you’d like them to be, in this case I just like them to make sense.

    Now I will save the file (you can save it on your desktop, or anywhere you want your launchers to live) as "aptana.desktop" (permissions could be "-rw-r–r–", or you can make it less restrictive if you like).

    And.. I am ready for the final step "drag & drop" (!). For this I go to the directory where I saved the "aptana.desktop" file using Nautilus/Konqueror/Other GUI browser, click on the file, drag it to Avant’s launcher bar, and drop it there. Tam tam tam – it is there -> I am done! So do you!

    Make sure your "desktop" file is the format shown above, since it is tested and works.


31
Oct 07

Feed Opera with Firefox :)

    One of my readers wanted to sign up to my feed using his favorite Opera browser. However failed to do that since Opera does not yet understand "feed://" protocol. Hence, I decided to drop this quick note on how to make Opera delegate feeds to others until the times it’s capable ;)

    In Opera go to "Tools -> Preferences -> Advanced -> Programs", click on "Add…", and enter "feed" for Protocol and "firefox", or ANY preferred RSS reader in "Open with other application":

   

    Now click "Ok" followed by another "Ok" and enter a "feed://" address to the address bar, for example this one. Once you hit Enter, you favorite RSS Reader (Firefox in my case) will open this feed, and your Opera will feel much better, since it just delegated a heavy unit of a hard work to somebody else ;)

    Happy hacking people!


30
Oct 07

How to Build DIGG in Ruby On Rails (Free Book)

    I’ve been playing a lot lately with RoR (Ruby on Rails) and of course I love DIGG, hence I was very pleased to stumble upon a very interesting work by Patrick Lenz, which is a definitely cool and enjoyable free book (pdf) on how to build a full blown DIGG in Ruby on Rails from scratch!

    I spent a couple of hours reading and trying, and I am already (!) building the app (or should I say building the DIGG) at this point of writing this post. The book uses Web 2.0 approach which covers a lot of Web 2.0 along the way – very cool! I highly recommend it to anybody who has the same passion, since it really is an awesome read!

    Please hurry, as this book is only free (since the moment of me writing this) for "32 days, 14 hours, 21 minutes, 49 seconds" more, and I guess will blend in with many other books that we have to pay for once the time is up (currently it is $26.37 at Amazon).

    For something "not very free", but "the best" on Ruby on Rails, there is another great book "Agile Web Development with Rails, 2nd Edition" that can be obtained, well, same place all other "not very free" books are obtained :) here.

    It is not in any way an intentional advertisement for any of the links above, I am just so exited reading it, that I could not stop my self from sharing with the rest of the universe! ;)


19
Oct 07

Help Google to Generate Only Relevant Ads!

google money    I recently decided to participate in Google Adsense program where Google shows its ads on my blog, and I get paid when somebody clicks the ad. This tool from Google is far from being fresh and new, but I think it has a very cool idea behind it:
        – ad owner wins, because people go to her/his website,
        – Google wins, because ad owner pays Google for a click (through Google Adwords)
        – I win, because I keep writing stuff on my blog and get paid by Google for a click.

   One of the main challenges and the main thing about any kind of ads from any place is their relevance. Will you buy milk on a porno site? Or do you need a pack of Marlboro Lights, when searching for a Whitening Toothpaste? Probably not really…

    So you see the logic, the more relevant the ad is, the more chances people are going to pay their attention to it and, in the case of Adsense, "click it".

    Relevance is mostly achieved by the Google algorithm that analyzes your page (the page where ads are going to be displayed) by reading its content and "data mining" it. Then it makes a decision on what exactly "this" page is about, and what ads Google has on that topic. Once all is figured out, Google places the resulting ads on the page.

    But there are ways we can help Google not to "offer milk on the porno site" (although Google does not do porno sites – just a colorful example here :) ), but instead target its ads right to the point. One of such ways is "Section Targeting".

    how Google explains it:

    Section targeting allows you to suggest sections of your text and HTML content that you’d like us to emphasize or downplay when matching ads to your site’s content. By providing us with your suggestions, you can assist us in improving your ad targeting.

    You can read their short tutorial here. The idea is simple: your html page has a lot of text, including links, other advertisement, people comments, etc. but what you really want Google to focus on is your content ( in my case it is my blog post ). So you can use three HTML tags that will focus Google Adsense engine on your content. These tags are:

               Section start tag:               <!– google_ad_section_start –>

               Section end tag:                <!– google_ad_section_end –>

               Ignore section start tag:      <!– google_ad_section_start(weight=ignore) –>

    Sample from Google:

<html><head><title>Section targeting</title></head>
<body>
 
<!-- google_ad_section_start -->
 
This is the text of your webpage. Most of your content resides here.
 
<!-- google_ad_section_end -->
 
</body>
</html>

    From the sample above you can see how (start, end) tags can be used to focus Google only on the  main content. In order to ignore the content, wrap it with (ignore, end) tags as follows:

<html><head><title>Section targeting</title></head>
<body>
 
<!-- google_ad_section_start(weight=ignore) -->
 
This is the text of your webpage. Most of your content resides here.
 
<!-- google_ad_section_end -->
 
</body>
</html>

    But there is something interesting, that is not included in Google’s tutorial, that you can do with tags – you can nest them, as well as focus them on multiple sections! I have spoken to the Google Adsense representative, gave him a couple of examples I would liked to use the tags, and he confirmed that it works.

    So here is very cool and efficient things that you can do with adsense tags in addition to the usual stuff…

    nest those tags:

<!-- google_ad_section_start -->
 
     my content I want to focus on
     .....
 
     <!-- google_ad_section_start(weight=ignore) -->
 
          content I would like to ignore
 
     <!-- google_ad_section_end(weight=ignore) -->
 
     my content I want to focus on
     .....
 
<!-- google_ad_section_end -->

    so, in the above example we ignored a part of the section (content) we actually want Google to focus on – cool, right? :)

    That is not all, you can also focus on multiple sections, like this:

<!-- google_ad_section_start -->
 
     my content A I want to focus on
     .....
 
<!-- google_ad_section_end -->
 
     some other irrelevant content
     .....
 
<!-- google_ad_section_start -->
 
     my content B I want to focus on
     .....
 
<!-- google_ad_section_end -->

    This really opens the doors to finetune the relavence of your ads, which, who knows, maybe someday will make you a millionaire! ;)


16
Oct 07

Ubuntu Gutsy Gibbon Parties all over the World

Ubuntu LogoAccording to Ubuntu once Ubuntu 7.10 (Gutsy Gibbon) is out, there will be plenty to celebrate, whether you were directly involved in the release process or just rejoice because the next iteration of the best distribution is finally out.

    Thursday, 18th of October ‘2007 is the tentative date for Ubuntu 7.10. Many parties will be on this date, or you can pick your own date! Go ahead and put down your favorite pub, park or cafe and celebrate getting Gutsy Gibbon out of the door!

   Ubuntu Feisty Fawn

    get it while its hot :)

    Come and join Ubuntu parties all over the Globe! The schedule of already "Confirmed Parties" are here

picture’s source