Feeds:
Posts
Comments

Archive for the ‘Free Software’ Category

It was an urgent to me for recharging the amount in mobile.when I was doing with hurry,the app frustrates me

I filled all blank fields and it asked me for the confirmation also.

 

When i clicked the confirm button it throws me

NULLPOINTER EXCEPTION

I think they have done in struts

It frustrates the customer isn’t?

better they can move to Django to avoid these kind of frustrating problem to make unfriendly with customer.

:-)

 

Read Full Post »

Welcome you!

I have been facing the problem whenever I setup new amazon ec2 instance for the project.

I need to setup the instance with all packages.

I was searching repeatedly.It is better to take a snapshot of the packages

Ofcourse I have python in my instance.

PIP:

I need pip installer for python packages:
sudo apt-get install python-pip

Py-dev:

Python development packages to avoid “gcc exit status command” problem.This is the problem which i was facing few times whenever i need to compile some source packages. This will be solved by installing the below packages

sudo aptitude install python-dev

sudo apt-get install python-setuptools build-essential
sudo apt-get install libpq-dev

lxml:

i need it for my project.It used to parse the html,xml data
sudo apt-get build-dep libxml2
sudo apt-get install python-lxml

Django:

This is my tool to build the project.yeah..now i need this particular version
sudo pip install Django==1.3

PIL:

I am using imaging library in mymodule.I used in django admin to display like preview images for the easy identification
sudo pip install PIL

Django-Oembed:

This is the piece of package to embed the videos in your django based web app.yeah,here i used to embedd some youtube videos for my project

svn checkout http://django-oembed.googlecode.com/svn/trunk/ django-oembed

Block buster:
Postgres:

It is must be used with it’s specifications.While the previous setup i used the same version.So i am continuing this..
sudo apt-get install postgresql-8.4

This is for the installation

Read Full Post »

Hi Welcome u,

Old is Gold

Take the old beautiful soup It works fine but new soup has some problem with unicode and string.

sorry If i confused you.

Now for sometime I have been working on the parsing html data in python.For this operation we have the standard module called “BeautifulSoup“.When I was working with this suddenly i have faced the problem “HTMLParserError” after i got to go google.

It says that

“you r using the new BeautifulSoupSome modifications has been done on the new soup module that is the parsing is happening from html rather to use lxml.”

So, again I asked the version to find my soup.

again it says politely,

“navatux@localhost$python

>>>import BeautifulSoup

>>>BeautifulSoup.__version__”

>>>”"” Here you need to notice the output .ie Version

So, I did the same thing and I got the number 3.1.7

again I conducted him.

It says,

“Try to install the version 3.0.1a” will be somewhat good.

Again i need to follow that.

I did it downloaded the exact version and installed(3.0.1a) after uninstalled the old one(3.1.7).

Reference:

http://stackoverflow.com/questions/601166/issues-with-beautifulsoup-parsing?s=0c3dca2e-3f3b-4a13-8d79-c13b1204dd7d

Now it works fine. :-)

If i face any new issue let you know :-)

bye ;-)

Read Full Post »

Hello Friends,

Here I would like to share some knowledge about Struts2.0 , I came to learn this technology before sometimes back.There are lot of concepts which shapes struts framework to compete with other talented one like Django.

It has some more concepts for your mind:

1.FilterDispatcher

2.ActionProxy

3.ActionInvocation

4.ActionSupport

5.Interceptors

6.ValueStack

7.OGNL Expressions(Object Grapical Navigational Language)

8.ResultTypes

9.Field Validators

10.JSP & Bean classes

We should have to be good in above all.I am a starter on the above.Even I don’t know the knowledge about JSP.

Read Full Post »

#find + egrep

Command of the Day:

If you see my previous couple of post you would be comfortable to use “egrep” and “find” utilities.

Here One Question arises on me:

How would you combine both commands like you need to find some file in your disk also you have find the string from that file:

my thoughts:

find . -name “nava.txt” | egrep -in “NAVANEETHAN”

Is it correct? Why it is not correct?

find . -name “nava.txt” -exec egrep “NAVANEETHAN” {} \;

(or)

find . -name “nava.txt” -print0 | xargs -0 egrep “NAVANEETHAN” refer    

Read Full Post »

#2 FIND utility

Here I am giving the “find” command utility’s purpose which will be very useful for quite to be familiar with your linux box

I am following from this day itself.Hope will be useful for you.

Very simple to learn.

Description:

basically find command used to find a file/directory in particular location.It will be used to find based on size,type,name,mtime..etc.

Examples:

Find a file using it’s name

find . -name “nava.txt”

find . -iname “navA.txt”

Here .(current directory,-name(case sensitive name of the file))

Find Empty file in / directory

find / -empty

Find Non-Hidden empty files

find  /  -maxdepth -1  -empty -not  -name “.*”

Find TOP 5 big files in Current directory

find / -type f -exec ls -s {} \; | sort -n -r | head -5

Find TOP 5 small files in Current Directory

find / -type  f  -exec ls -s {} \; | sort -n | head -5

Find TOP 5 small files except empty files

find /  -not  -empty -type f -exec ls -s {} \; | sort -n | head -5

Find all Directories

find / -type d

Find all files

find / -type f

Find Hidden Files

find / -type f  -name “.*”

Find files by size

find / -size +100M

Note:{ +100M ( > 100MB) , -100M( < 100MB), 100M (== 100MB)  }

Finally:

Thanks for your time ;-)

Read Full Post »

Command Of the Day

#1

Hi Friends,

Today I have learned the command to search a word in a file along with line number

Command:

egrep -in “nava|neethan” *.txt

Explanation:

egrep extended grep -in insensitive case and number “nava|neethan” word to be searched (nava or neethan) *.txt look up files

sample output:    egrep -in “nava|neethan” name.txt

1:nava is my first name

2:neethan is my last name

3:navaneethan = Navaneethan

Thanks for visiting today’s command of the day!!

Read Full Post »

Hi Friends,

HAPPY NEW YEAR This year brings happiness

:recently_I_Learned _some_vim _commands

:i_am_happy_to_share_with_you

Now I would like to share with you some vim commands which i known recently,I hope you can get your commands in direct googling ,but here i would like to share my familiar commands with you

Actually Vim is a powerful editor there are a lot of plugins available even we can maintain a todo list in vim taskpaper is used to do that.

In some previous days i used Vim to open,read,write simple purpose just recent days only i started to use for search,copy for those purposes too
There are a lot of editors available command line utility is the good for programmers like technician
Vim(old) is gold

:  To enter into vim command mode

vim commands only has to be entered in this mode only,so when ever we need to do enter vim commands we should use this colon character
:e file_name To open a file [Eg: :e post.txt]
:tabnew To open new tab
:tabfirst[tablast] Switch to first tab ,last tab respectively
:sav or :w used to save the files
Replace a string in a file

:%s/old_string/new_string/g here the string replacement occurs in all lines of the file

if you want to do this operation in a particular set of lines
:3,44s/old_string/new_string/g

:3,$s/old_string/new_string/g Starting line no 3 to End OF file
:%s/^/start/g Add the String “Start” in all starting lines of your file
:%s/$/end/g Add the String “end” in all ending lines of your file

:g/string/d Delete all lines what has the string
:v/string/d Delete all lines what hasn’t contain the string

:2,45 w another_file.txt // Witre the lines from 2 to 45 to another file
:2,45 w >> another_file.txt //To append those lines to another file
Change Color Scheme
:colorscheme morning [morning,evening,desert....]
Auto-completion
Ctrl+n Ctrl+p (in insert mode)

Complete wordCtrl+x Ctrl+l

Complete line:set dictionary=dict Define dict as a dictionnary

Ctrl+x Ctrl+k Complete with dictionnary

set shiftwidth=3 //for indentation space

set autoindent //auto indent

Would you want to change the Case in all lines of your file
Execute this command in your vim mode
:for i in range(0,line(‘$’))

["indent need"]call setline(i,tolower(getline(i)))

endfor

Explanation:
Get the No of lines in for loop and call the function setline to set all lines as lowercase similar that we can peroform for toupper(),..
If you want to change the cases in line only
Press ‘V‘(caps)
and press ‘e‘ then press ‘u‘  for small case
press ‘E‘ then press ‘U” for big case

Do in All tabs:

If you want to do your vim commands in all opened tabs means you can use the command tabdo
:tabdo %s/old_string/new_string/g

okay these are the commands which i learnt recenly ;-) I hope this will be useful for you in some way
okay if you find any problem with this means send me for a discussion
thanks!!

Read Full Post »

FHS root filesystem

(more…)

Read Full Post »

LFY-June’10

Welcome friends,

Here we are going to see about the LFY of JUN’10

Jun'10 LFY

It is one of fantastic issues which i red almost.there are lot of articles which has been discussed elegantly.we had received Ubuntu(Lucid) and Knoppix 6.2 DVDs.

FOR U & ME

I have red few articles which has been admitted superb.The section “FOR U & ME” Linux On the Go which has nice overview about Linux,after that ArchBang and Arch Linux comparison has given lightly and in deep manner.Fedora 13 review was good “GODDRAD” review

DEVELOPERS

In “DEVELOPERS” section challengers in platform selection” is a elegant article.Here we spent time more that I learnt about Micro kernal,Monolithic kernal,and Hybrid kernal,..Hard real time system ,soft real time system where it is using…,and GPO(general purpose system),RTOS(Real time operating system)…. nicely explained :-] In hybrid kernal the work is done like monolithic as well as micro ..the operation has been handled with help of FIFO queue channel

Challenges in platform selection

TIPS AND TRICKS

In “TIPS & TRICKS ” section we can know something ….that I remember here is ENABLE CTRL+ALT+BACKSPACE” for configuring x in jaunty we need to install the package”dontzap”…

Difference between ”whoami” and “who am i” commands

friend@Friend-laptop:~$ whoami
friend                                                     //User id only
friend@Friend-laptop:~$

friend@Friend-laptop:~$ who am i
friend   pts/0        2010-06-20 18:09 (:0.0)       //login info also
friend@Friend-laptop:~$
HDFS – Hadoop file system database article is knowledgeable

The author S G Ganesh who has given “Understanding the Lifetime of a C program” good to know atleast now itself detaily….ha….ha.!!
Then i need to complete this issue candidly….just shared something for U….share with me via your comments

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 173 other followers