Tag Archive: Open source



We all need to look for word definition. Online dictionaries and wikipedia are great but we are not always connected to the net. sdcv is a console version of StarDict dictionary. Using sdcv you can search for definitions while still offline. So here are the step to install and make use of this great program.

Step 1. Installation

On Ubuntu

Open Up terminal and type:

$ sudo apt-get install sdcv

On Fedora

$ su -c “yum install sdcv”

On Mac OS X

Mac OS comes with a great GUI based dictionary, but cli enthusiasts will enjoy sdcv.

Please install Macports and then open Finder, Go to Application Folder > Utilities Folder and launch terminal and type

$sudo port install sdcv

Step 2. Download Dictionary Files

Now that we have installed sdcv, we need to download dictionary files from the net.

Go to this site1 , site 2  and download dictionary files according to you requirements. For open source fans, Free On-Line Dictionary of Computing (FOLDOC) and Jargon file are must. They are both available from site1.

FOLDOC: Dictionary for computing subjects.

Jargon File: “A comprehensive compendium of hacker slang illuminating many aspects of hackish tradition, folklore, and humor.” – From Jargon File Homepage.

GNU/Linux English-English Dictionary: You can download it form here.

Step 3. Install downloaded Dictionary Files

Now that you have downloaded the dictionary files we need to put them in the folder where sdcv looks for dictionary files when invoked.

On Linux based systems do the following

$sudo mkdir /usr/share/stardict/dic/

$sudo tar -xvjf downloaded.tar.bz2 -C /usr/share/stardict/dic or

$sudo tar -xvzf downlaoded.tar.gz -C /usr/share/stardict/dic

Note: Make sure the user who will be invoking the sdcv command has read and execute permissions on /usr/share/stardict/dic/ and its subfolders.

On Mac OS X

$mkdir -p $HOME/.stardict/dic

$sudo tar -xvjf downloaded.tar.bz2 -C $HOME/.stardict/dic

Note: Unfortunately you need to repeat this process for every user that needs access to these dictionary files.

Step 4. Enjoy sdcv

Searching for definition

$ sdcv Linux                         (looks for linux in the dictionary.)

$ sdcv                                  (invoes sdcv in the interactive mode, press Control-D to quit).

In earlier article we covered how to use espeak, now you can combine sdcv and espeak together. Sdcv to look for definition and espeak for pronunciation.

$ sdcv Linux && espeak Linux

Here is a picture.

"sdcv"

Note: Sometimes due to the long definition of a particular word text scrolls down too fast for you to read, advanced users can set SDCV_PAGER environment variable to /usr/bin/less. Now, less will be used to display to the dictionary’s article. You may consider adding this to your .bashrc file. Check out manpage for sdcv for more information.

Pages : Follow flossstuff on Twitter      


Pygame API is an  extension of SDL in python. You can create games quickly and easily  using this. I recently created a repository on github named as ‘Pygame-Examples-For-Learning’ to motivate the learning of this API. This repository consists of various small demos (from hello world to the sprite demo). You can try out those using your own logic and can apply the same into large programs. It also includes a small 3 level game ‘Hungry-Snake’ . Just a contribution from my side to all the enthusiast learners out there (open source too) :) Play with the code to explore more. I will keep updating the repo in future also. You can also contribute in the same. Link to the repo : http://github.com/ankur0890/Pygame-Examples-For-Learning :) Feedback and suggestions are always welcomed :)

Pages : Follow ankurtwi on Twitter      


Wikipedia : One of the most important web portal in  geek’s life. Whenever I need to search anything I use two things. First open up the Google and then search for the related  wikipedia page. Exploring wikipedia page using shell is possible. Interested fact is that we can do it without even opening the cli browser. We can make wikipedia text query over dns for an ip address. I learned this trick from Ajay Sharma (ajayctk@gmail.com). Thanks to him for teaching me this wonderful trick. Let’s explore how to do it :)

We will use ‘dig‘ utility for this purpose. Dig is more popularly known as the DNS lookup Utility. You can find more about it using  man pages. Syntax for the text based wikipedia query is : dig +short txt <keyword>.wp.dg.cx . For example if you want to look into the wikipedia page of Linux you need to type something like this : dig +short txt  linux.wp.dg.cx . Screenshot of the same is attached below :

Making A Wikipedia Query In CLI

For multiple word search having spaces in between them you can use the traditional ‘\’ operator. To grasp the wikipedia page  of  Free Software Foundation (FSF) we need to type dig +short txt  free\ software\  foundation.wp.dg.cx . 

FSF Wikipedia Search

Only problem is its quite limited. I am trying to figure out a way through which we can look up the whole page but I think this much is also quite useful as most of the times we came to know about the product by reading one or two lines only. So play with wikipedia using Shell only :)

Pages : Follow ankurtwi on Twitter      


Few days back I released my game named as “Hungry Snake” on Google Code  http://code.google.com/p/hungry-snakes/ . Today I got an email from the Softpedia team that they have added my game under the category of Mac Os applications Category. They  tested the game in their software labs and certified it as 100 % free which means  it does not contain any form of malware, including but not limited to: spyware, viruses, trojans and backdoors. The Game is published under the GPL license. You can run it on any platform. At the time of the writing download count in total (Google Code + Softpedia) is about 250. I can feel the power of open source. Thanks to Richard Stallman and Linus Torvalds .

Game Download Links – http://code.google.com/p/hungry-snakes/downloads/list
http://mac.softpedia.com/get/Games/Hungry-Snake.shtml

Softpedia Certificate Link –  http://mac.softpedia.com/progClean/Hungry-Snake-Clean-98721.html

 

Pages : Follow ankurtwi on Twitter      


The Linux Counter is run by a nonprofit membership organization called the Linux Counter Project.
This organization was created on May 1, 1999, taking over the running of the counter from Harald Tveit Alvestrand, who has been running the project since 1993.Harald Alvestrand is chief executive officer of the organization.
The Linux Counter is started as a “for fun” project to find out how many Linux users there are worldwide. The basic idea is for people to register themselves as being a Linux user. Of course, this way you won’t get all Linux users counted as not every Linux user will register himself at the Linux Counter site.
Thus, the only way to “know” the number of Linux users worldwide, is to make a guess, preferably a not-too-wild guess of the number of Linux users. Not making wild guesses there is only one way to go: statistics.
Count Your Machine In This Project On http://counter.li.org/
I would like to thank my friend Anirudhh Dev through which i came to know about this project.
My Registration Number is #529973

Pages : Follow ankurtwi on Twitter      

GeeksZine November issue


Sweet November brings another colorful issue  of GeeksZine. We have put togetherShell Internals, Git, a writeup on an automation tool PyMakeMeLazyNDumb along with some Cool Tricks and News Bytes this month. We invite everyone to become a part of the GeeksZine so that we all could prove that Open Source is Fun. A big thanks to Richard StallmanLinus Torvalds and all the Geeks there to pamper us with FLOSS and make the GeeksZine possible. FLOSS Rulz!!!

To Download the Magazine visit – http://richnusgeeks.com/geekszine-november-2010-issue

 

Pages : Follow ankurtwi on Twitter      


OpenOffice.org may not be the number one free alternative to Microsoft Office for much longer. Since Oracle acquired Sun the future of the open source office suite has been uncertain. So uncertain in fact that a group decided to fork the code base and create an alternative implementation called LibreOffice under a new organization known as The Document Foundation.

Essentially LibreOffice is the equivalent of OpenOffice.org, but in no way is under the control of Oracle. The Document Foundation asked Oracle to come on board and to allow them to use the OpenOffice.org name. Oracle refused and asked anyone associated with LibreOffice to leave the OpenOffice.org project due to a conflict of interest.
Full Story And credits to – http://www.geek.com/articles/news/33-developers-quit-openoffice-org-2010111/

 

Pages : Follow ankurtwi on Twitter      

BSD Day


The Berkeley Software Distribution (BSD) is a free open source version of the Unix operating system which evolved at the University of Berkeley starting from 1975, and it is based on AT&T’s Unix Sixth Edition (V6). The name BSD is now used collectively for the modern descendants of these distributions. Most notable among these today is perhaps the major open source BSDs (FreeBSDNetBSDOpenBSD) which have themselves spawned a number of children.

Read the full story at  http://wiki.freebsd.org/BSDDay_

 

Pages : Follow ankurtwi on Twitter      


Tux-welcome to my world

This is my first post on the blog. So I want to share my Experience how I came into this  Gnu/Linux World.

I want to ask a question guys- How many time you thought that ” It will be great if the software got the feature i needed”??????  Solution is -World of Gnu/Linux

What is Gnu/linux- well I am not gonna tell you people in detail because you can search about it on the web and millions of answers you will get . In short to say Gnu/linux is an open source operating  system. You can Download the source code of all the tools and softwares under this operating system and can modify it according to your needs.

First Time I install  Ubuntu on my laptop in Jan 2009 (3rd Trimester of my coll). On First Look  Graphical User Interface to me looks Dizzy. Quite Impressive but when I started working doing my regular work on it,I found it really difficult. You have to start with Command Line (terminal) for things like compiling programs and all.. So at last I uninstalled it from my laptop. But something keeps striking my mind that what’s this thing… Y people love it so much??? what are the magical facts about it?? Then I reinstalled it and this time I use it properly. Whenever a problem was there, I just posted the problem on the web and thanks to the Linux community for that. Within 2-3 Hrs I got reply from the people  solving my problem and this way I move further and further into this great world of Gnu/Linux. Believe me guys Gnu/linux has changed the way i use to work on the laptop. Thanks to Linus Torvalds and Richard Stallman for creating this enviornment.

There are many myths about Linux in the minds of common people but they are myths only. They are not true at all…..

Myth 1- Free means Free of cost like Free Beer

Answer- Free word has many meanings and in the world of  Gnu/Linux its Freedom not free of cost. Freedom for modify your software according to your needs by changing the available source code. Freedom to distribute it among others.  There is no mention anywhere that  “Free” software  is free of cost.  You can charge of the software you made but the condition is you have to made the source code Available. In the world of Gnu/linux Knowledge comes first and then money.  “Free Speech Not Free Beer. You can earn a lot by providing the support for the softwares.

Myth 2- Linux is more of command line work. Bad At Graphical Interface

Answer- You will start working and enjoying the command line as soon as you start working on the Linux.  And for those who thinks that it is bad at Graphical Interface  then try out compiz guys. You will see amazing Graphical work.  A pic is shown below to show the  the Graphical View

Try Compiz Guys

Myth 3-  There are only few Gnu/Linux users around

Answer- Linux Community is growing very fast. Ubuntu distribution now holds above 8 million users and this is just one distribution stats. There are many Distributions of Linux like Redhat,Gentoo,opensuse,Fedora etc and hundreds of more and Linux community is very active on web. Check this by pasting any forum on the web and you will surprised to see the number of people want to help you

Myth 4- I am a Microsoft Windows user,What about the softwares and all i am using on Microsoft Windows

Answer- I guarantee you people that there exist all the alternative of the Windows software in Linux.

Microsoft Office —-> Libre Office

Matlab ————–> Gnu Octave

PhotoShop ———–> Gimp

Gcc Compiler one of the most powerful complier of the world where u can do your C type programming.

Window Media Player- Vlc,Tottem Movie player

and the list goes on……….. You will find minimum one software alternative in linux however more than one is possible but atleast one is always there. More over Famous softwares like Skype,Vlc,gns3,Dropbox,Java-sdk also runs on the linux too. they have got the Linux support too.

Still if you want to use windows software under Linux for some reason,  you can use WINE (Wine is not an emulator) to run many windows programs like packet tracer on Linux.

Myth 5-It is not worth bothering to learn Linux because most companies use Microsoft Windows and thus a knowledge of Windows is desired for most jobs.

Answer- I think its the worst myth.  People also use Linux at a large scale.  60% of the world companies uses LAMP(linux apache mysql php/python/perl) server for their working. Movies like Titanic, Avatar and thousands others are made on these servers.What stops the companies from adopting the Linux in their work culture because of lack of Linux Professionals. People with Linux skills typically get paid substantially more than people with Windows skills. Developers Always prefer Linux. So guys don’t think ever that you can’t earn through linux

Comments and suggestions are always welcome. I might be wrong at some point and if u feel so plz correct me. I dont mind in learning at all.

Email- coolankur2006@gmail.com , ankur.aggarwal2390@gmail.com

Pages : Follow ankurtwi on Twitter      

Follow

Get every new post delivered to your Inbox.

Join 70 other followers

%d bloggers like this: