Abbysays’s Weblog

June 23, 2008

Zen Of Python

Filed under: Software — abbysays @ 5:33 pm
Tags: , ,

To see the ‘Zen Of Python’, which is widely accepted as the principles on which the python is based, simply type ‘import this’ at the Python prompt.

C:\>python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on
win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!
>>>

June 5, 2008

How to download video from YouTube

Real Player 11 though as not much popular these days, did strike back big with cool features with its version 11 allowing downloading streaming video.

Here is how you can download videos from YouTube.

Download RealPlayer 11 for your Operating System. You can use the following link to download:

http://www.real.com/freeplayer/?rppr=rnwk

After downloading the file, start to installation by double clicking on the executable file and following the installation steps. When you come to the installation step (as shown below), make sure to check the check box for “Download & Recording”. Continue with the installation process.

After installation is finished, open the Real Player. Go to Tools->Preferences. Click on the “Download & Recording” tab from the “Category“list on the left hand side of the window (as shown below)

Select “Only on mouse-over” radio button. You can also change here the directory path where you want the downloaded video to be saved. Click the “OK” button. Close the internet browser and then again reopen.

Now to download the video from the YouTube, start to play the video you want to download on YouTube. Point the mouse cursor to the top right corner of the screen and click the download button.

The download of the gets started. Real Player can download multiple files simultaneously. The file is saved with “.flv” extension which can be later player by RealPlayer or VLC. Happy downloading :-)

May 24, 2008

How to install Evernote 3.0 on Ubuntu

Evernote allows you to easily capture information in any environment using whatever device or platform you find most convenient, and makes this information accessible and search able at anytime, from anywhere. With the new version of Evernote (still in beta) not only can one download the software but can also work online and later synchronize Of all the available notes solution available in the market, Evernote is one of the most desired software application for taking down notes, pictures, videos, etc. But the bad news for Linux/Ubuntu users is that Evernote installable is only available in Windows XP/Vista and Mac. There is no Linux support.

But using wine I was easily able to install Evernote on my Ubuntu. The steps are as follows:

If you do not have wine installed, you can get it with the following command:

> sudo apt-get install wine

Download the Windows installation executable of Evernote from the Evernote site (http://evernote.com/about/download/)

After wine is install, type the following command:

> wine location where the executable is downloaded

For example, in mine case:

> wine /home/abby/apps/Evernote_3.0.0.594.exe

The installation process starts which is similar similar to Windows.

Complete the installation steps and you will have Evernote installed on your Ubuntu. There shall be a icon to start Evernote on the desktop too after installation is complete.

Since Evernote is in Beta, to get the invitation one need to give there  email id at this link (http://www.evernote.com/about/prereg/)and they shall send you the invitation to register. I have 18 invitations remaining. In case you need one, do let me know.

Now no reason to be sad since your favourite Evernote works with your favourite Ubuntu :-)

Blog at WordPress.com.