[Ilugc] How to code for an Open Source Project

2010-10-17 Thread maverick gugu
Hi,
  I've been always wanting to do this. Though my coding skills are not very
up to the mark, I wish to contribute to some open source project by coding
for it. Can you please guide me into which project can i start with. In the
process I hope i do understand the source control management systems which
are there for each n every project.

Thanks,
Gugu
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Re: ILUG-Coimbatore

2010-10-17 Thread sibi raj
Hello Thyagarajan Shanmugham ,
That was an entirely new post. Just 2 lines were from the previous mail . 
I am fully supportive in case of interleaved posting . 
But when  some one new does a top or bottom posting why we need to be so harsh 
to him ?
That was my point over there .
Not being harsh isn't a strict rule written any where but a basic human nature .
-Sibi 




___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Abishek Goda
Hi

>  I've been always wanting to do this. Though my coding skills are not very
> up to the mark, I wish to contribute to some open source project by coding
> for it. Can you please guide me into which project can i start with. In the
> process I hope i do understand the source control management systems which
> are there for each n every project.

sourceforge.net and look for a link that says project help wanted.

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Re: ILUG-Coimbatore

2010-10-17 Thread Yuva raj
But when  some one new does a top or bottom posting why we need to be so
> harsh to him ?
> That was my point over there .
> Not being harsh isn't a strict rule written any where but a basic human
> nature .
>
>
+1 .

-- 
*Thank You
Best Regards*

*Yuvaraj L*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Headphones not working in ubuntu

2010-10-17 Thread manoj kumar
\
From: Bala Kumar 
To: ilugc@ae.iitm.ac.in
Sent: Sat, 16 October, 2010 12:11:42 AM
Subject: Re: [Ilugc] Headphones not working in ubuntu

My sound card is
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio
Controller (rev 02)
---/
_

I believe that by headphone you implicitly meant the mic too. A friend of mine 
had a similar issue. Kindly try out this 
solution: 
http://getch.wordpress.com/2010/09/12/fix-non-working-mic-in-ubuntu-10-04/


---
ManojKumar.A
http://getch.wordpress.com


___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Girish Venkatachalam
On Sun, Oct 17, 2010 at 12:43 PM, maverick gugu  wrote:
> Hi,
>  I've been always wanting to do this. Though my coding skills are not very
> up to the mark, I wish to contribute to some open source project by coding
> for it. Can you please guide me into which project can i start with. In the
> process I hope i do understand the source control management systems which
> are there for each n every project.

I have suffered from this sort of paralysis for several years before I
got off the ground and did something.

But it is not easy, mind you.

You need to constantly be doing something and learning from books,
Internet and so on.

There is no easy answer.

You have to let this thought brood in your brain just like the romance
sentiments young people have towards girls and
vice versa.

All the time you are thinking of it and one day you will get to know what to do.

Nobody needs to tell you. You feel the answer in your gut.

Just like lovers meet and stay in touch, you need to constantly learn
and upgrade your skills and look at the source of popular
open source  projects.

Also gain familiarity with a very good OS.

Linux is fine to begin with but if you really want to do great things
you need to graduate out of linux in a year or two.

-Girish

-- 
Gayatri Hitech

http://gayatri-hitech.com
gir...@gayatri-hitech.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread pradeep m
On Sun, Oct 17, 2010 at 12:43 PM, maverick gugu wrote:

> Hi,
>  I've been always wanting to do this. Though my coding skills are not very
> up to the mark, I wish to contribute to some open source project by coding
> for it. Can you please guide me into which project can i start with. In the
> process I hope i do understand the source control management systems which
> are there for each n every project.
>
> Thanks,
> Gugu
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>

Hi ,
 Thats really good you came out to ask some help for doing opensource
projects. Its a very good way to keep in touch with the technologies and
your coding skills.

 The sourceforge.net  is  a good idea. I started my opensource with Mozilla
lab's "Bespin" now its called as "Skywriter".
There are many such huge projects where you get chance to code. "Android"
from google, "subversion", "GIT" which is now becoming popular. You can just
go and join the developer community and start contributing.

But apart from these you need a really a great passion and love to code in
order to do OpenSource or any form of coding.

Hope this helps. Happy coding  :-)

Thanks,
Pradeep.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Re: 10.10 installation issue

2010-10-17 Thread Eknath Venkataramani
On Sat, Oct 16, 2010 at 10:32 PM, Anand Prabhu wrote:

> I guess by default the Ubuntu would choose (the nearby) Indian server for
> the latest
> updates. Thats the reason getting the updates and other softwares takes
> time. One
>
I'm in the US right now.

> better option you could have selected is to install the updates after
> installing the OS
> in your laptop since you have a high speed connection.
>
I tried this too. As a matter of fact I tried fedora 13 too, when I ran
'liveinst' from the terminal, it said it couldn't detect partitions

>
> --
> regards,
>
> Ubuntufreak
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>



-- 
Eknath Venkataramani
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Hameed
On 17 October 2010 15:28, pradeep m  wrote:

> On Sun, Oct 17, 2010 at 12:43 PM, maverick gugu  >wrote:
>
> > Hi,
> >  I've been always wanting to do this. Though my coding skills are not
> very
> > up to the mark, I wish to contribute to some open source project by
> coding
> > for it. Can you please guide me into which project can i start with. In
> the
> > process I hope i do understand the source control management systems
> which
> > are there for each n every project.
> >
> > Thanks,
> > Gugu
> > ___
> > ILUGC Mailing List:
> > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> >
>
> Hi ,
> Thats really good you came out to ask some help for doing opensource
> projects. Its a very good way to keep in touch with the technologies and
> your coding skills.
>
>  The sourceforge.net  is  a good idea. I started my opensource with
> Mozilla
> lab's "Bespin" now its called as "Skywriter".
> There are many such huge projects where you get chance to code. "Android"
> from google, "subversion", "GIT" which is now becoming popular. You can
> just
> go and join the developer community and start contributing.
>
> But apart from these you need a really a great passion and love to code in
> order to do OpenSource or any form of coding.
>
> Hope this helps. Happy coding  :-)
>
> Thanks,
> Pradeep.
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>


Hi Pradeep, Girish

  If you were to suggest **ONE** open-source project for any new comer to
start with - a project that makes it easy to learn, at the same time,
generates lot of interest in a *newbie* developer to dive deeper & deeper,
what would it be??


Thanks

Hameed
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Abishek Goda
Hi,

>  If you were to suggest **ONE** open-source project for any new comer to
> start with - a project that makes it easy to learn, at the same time,
> generates lot of interest in a *newbie* developer to dive deeper & deeper,
> what would it be??
Sorry to hijack the question :D

That question is more or less unanswerable. It depends a lot on how
much a person is familiar with a language, how far the project has
evolved, how many different things the project is trying to do and so
on.

I ll anyway leave it for Girish/Pradeep to answer that!

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread pradeep m
Hi Hameed - I am not very much experienced to suggest any project since i
myself is a *newbie*. Upto my understanding all the open source projects are
documented well and have good community to help . So you can just pick one
and start contributing.


Thanks,
Pradeep.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread steve

Hi,

On 10/17/2010 12:43 PM, maverick gugu wrote:

Hi,
   I've been always wanting to do this. Though my coding skills are not very
up to the mark, I wish to contribute to some open source project by coding
for it. Can you please guide me into which project can i start with. In the
process I hope i do understand the source control management systems which
are there for each n every project.



Besides the other suggestions you have received, I personally feel a more 
practical and easier path to contribution is to become a bug-zapper ! ie: Pick 
any random application you use everyday (or you can just aim high and pick the 
linux kernel itself) and then visit the project's bug tracker. Almost all open 
source software has bugs or feature requests that are being ignored only because 
the developers either do not have enough tuits [1] or the bugs aren't critical 
enough. Pick one or more of those and fix them.


Note that this approach is most useful if you do /not/ already have a project 
idea of your own that you would like to work on or are not already motivated 
enough to contribute to one specific application that you use and care about. If 
you do, just go ahead and do that (ie: scratch your own itch).


The reason I recommend the bug fixing approach is because:
a. You can make a very practical and useful contribution to a meaningful 
project. (as opposed to a random small project off sourceforge.net that you 
choose to contribute as a developer; where although you might learn and improve 
your coding skills at a faster rate (/if/ you are committed enough), you might 
not get the satisfaction of contributing to a 'real' project).


b. The time and effort involved between wanting to start contributing and 
actually contributing is much smaller.


c. You get to work with a much larger and more active set of people than when 
for instance working on yet another mp3 player/text 
editor/game/calander/terminal ...etc. This means that you are more likely to 
receive better help, suggestions and feedback.


d. The project developers would appreciate your help immensely.


hth,
cheers,
- steve

[1] Tuit: http://en.wiktionary.org/wiki/round_tuit

--
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread openbala
On Sun, Oct 17, 2010 at 3:45 PM, Hameed  wrote:
> Hi Pradeep, Girish
>
>  If you were to suggest **ONE** open-source project for any new comer to
> start with - a project that makes it easy to learn, at the same time,
> generates lot of interest in a *newbie* developer to dive deeper & deeper,
> what would it be??

Dear Hameed and other wanna-be opensource enthusiasts,

Like it has already been pointed out, no one can really suggest an
open source project for new comer. The idea should come from you, the
idea should be a virus, infecting your brain. Like Girish rightly
said, its like falling in love, being possessed with it. You shouldn't
go after a project to 'try' or 'learn' or 'dive deeper' etc.

Remember: In the olden days, people worked in opensource to fix a
problem for them - now people mostly want to work in opensource for
satisfying and boosting their geek cred. It works for both of the
parties, but now the since the demand is more, the barrier for entry
is a bit high.

Its not all glory right from the start.

You need to have knowledge in:
* source control systems. - checkout, commit, fork, branch, patch,
merge, update, status, log (If these words doesn't mean anything to
you, learn them - git, svn, cvs, hg)
* coding standards - each project has its own set of rules and guidelines.
* bug tracking systems and how to sign up for testing, triaging,
fixing, reporting them.
* you need to be good at at least 2 programming languages (apart from
html, css, javascript, xml) and be well versed with programming
paradigms and patterns.
* understand build process. understand what is unit testing, how to write tests.
* You need to be good with typing, ide shortcuts - its an important skill.
* Debugging is also an essential skill - ide to the rescue.
* read code - literally read code. understand what each line does, go
with the flow, use debug points and figure out when and which and what
gets triggered, evaluated and executed.

You won't get commit rights right from the start, you need to build
your reputation, that is only through finding bugs, triaging bugs,
reporting bugs and fixing bugs. Communication skills is really
important. You'd need to mail, irc, chat with fellow developers and
committers. English is the medium of communication - better be good at
it.

Checkout some opensource projects, read the code, find and understand
their bug tracking and request acceptance processes. See their bug
tracking system, mailing lists and start up!

If it feels daunting, don't worry. You'd get it eventually. But, most
importantly - start!

>
>
> Thanks
>
> Hameed
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Aanjhan R
On Sun, Oct 17, 2010 at 11:22 AM, Girish Venkatachalam
 wrote:
> Linux is fine to begin with but if you really want to do great things
> you need to graduate out of linux in a year or two.

IMO, Linux is NOT fine to begin with. The code is way too big for a
beginner to handle. And its something I would NEVER recommend for a
newbie. Plus, it is extremely easy to get lost, frightened and
disappear.

The best place to start when it comes to OS would be small kernels.

E.g. RTEMS, TinyOS, FreeRTOS, Ångström, ucLinux and the likes.

You would have already guessed most of these relate to embedded
systems which enforce a lot of resource constraints. So they have to
be small and stripped off unnecessary crap. Once you learn one of
these, you can graduate to Linux much more easily and then move ahead.

My two cents.

--
A
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Aanjhan R
On Sun, Oct 17, 2010 at 9:13 AM, maverick gugu  wrote:
>  I've been always wanting to do this. Though my coding skills are not very
> up to the mark, I wish to contribute to some open source project by coding
> for it. Can you please guide me into which project can i start with. In the
> process I hope i do understand the source control management systems which
> are there for each n every project.

http://openhatch.org/

An good place to start your search.

-
A
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Siddhesh Poyarekar
On Sun, Oct 17, 2010 at 4:31 PM, steve  wrote:
> Besides the other suggestions you have received, I personally feel a more
> practical and easier path to contribution is to become a bug-zapper ! ie:
> Pick any random application you use everyday (or you can just aim high and
> pick the linux kernel itself) and then visit the project's bug tracker.
> Almost all open source software has bugs or feature requests that are being
> ignored only because the developers either do not have enough tuits [1] or
> the bugs aren't critical enough. Pick one or more of those and fix them.

+1

I'd go a step ahead and suggest the 'scratch your itch' approach
instead of just lurking on bug trackers, thus not limiting you to any
single app. There will surely be something about some application that
bothers you -- the odd crash, some behaviour quirk that is just wrong,
or some feature you would like to have in it. Download the source for
that app, read the code and fix your own problem. Then you contribute
your fix upstream. Of course, expect your patch to be rejected at
least the first few hundred times. If it is rejected, understand why;
that way you learn much more about the app.

Somewhere down the line (a couple of years maybe, or more) you will
find yourself fixing more bugs of some specific application than
others, either because you understand the codebase better or find it
interesting/challenging.

-- 
Siddhesh Poyarekar
http://siddhesh.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread satyaakam goswami
 On Sun, Oct 17, 2010 at 12:43 PM, maverick gugu wrote:

> Hi,
>  I've been always wanting to do this. Though my coding skills are not very
> up to the mark, I wish to contribute to some open source project by coding
>


http://bit.ly/cHpw2p

-Satya
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] lugc-new installation grub error

2010-10-17 Thread Anand G
Hi friends,

I have encountered a very strange error. Like I said a weeks ago I am still 
stuck with the need of XP for a while. Today I reformatted my dell laptop 
inspiron m600's 160 gb HDD installed xp and restored some of the proprietary 
stuff and went on to install ubuntu 9.04/ the installation went on smoothly and 
on restart threw up the following error 
stage 1.5.
loading grub please wait..
error 18 and am unable to go forward. I tried deleting the ubuntu partitions 
and reinstall it is not allowing me to even after I delete the partition how to 
proceed further how to atleast return to original status prior to ubunto 
installation.
I need a quick fix as I have to travel with my laptop very soon on audit  to my 
auditors at Hyderabad.

I just repeated what I did on another desktop at a friends place where the 
installation went on smoothly. Just wanted to introduce FOSS to him.
GY


___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] lugc-new installation grub error

2010-10-17 Thread balaji sivanath
>From your mail i think  your ubuntu installation completed
successfully but the grub loader is having problem, search in google
for how to configure grub for dualboot system, use ubuntu live bootup
& configure it. Hope this will solve your problem

On 10/17/10, Anand G  wrote:
> Hi friends,
>
> I have encountered a very strange error. Like I said a weeks ago I am still
> stuck with the need of XP for a while. Today I reformatted my dell laptop
> inspiron m600's 160 gb HDD installed xp and restored some of the proprietary
> stuff and went on to install ubuntu 9.04/ the installation went on smoothly
> and on restart threw up the following error
> stage 1.5.
> loading grub please wait..
> error 18 and am unable to go forward. I tried deleting the ubuntu partitions
> and reinstall it is not allowing me to even after I delete the partition how
> to proceed further how to atleast return to original status prior to ubunto
> installation.
> I need a quick fix as I have to travel with my laptop very soon on audit  to
> my auditors at Hyderabad.
>
> I just repeated what I did on another desktop at a friends place where the
> installation went on smoothly. Just wanted to introduce FOSS to him.
> GY
>
>
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>

-- 
Sent from my mobile device
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] lugc-new installation grub error

2010-10-17 Thread Yoganandam G
On Sun, 2010-10-17 at 20:57 +0530, balaji sivanath wrote:
> >From your mail i think  your ubuntu installation completed
> successfully but the grub loader is having problem, search in google
> for how to configure grub for dualboot system, use ubuntu live bootup
> & configure it. Hope this will solve your problem
Well I did google, as did a live boot it worked. I did finally solve the
issue, I did a reinstall with manual partition and there I found it
marked the partition as do not use this partition hence grub was unable
to find root when I changed it and reinstallted again it worked fine, 
This reply is from the freshly installed ubuntu.

Thanks for the suggestion.
GY


> > GY



___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [ilugc]webserver responds slowly ?

2010-10-17 Thread ashwin kesavan
On 14 October 2010 11:43, JITHIN K  wrote:
> Hi Aswin,
>
>
> For mantis access log  please follow the link http://dpaste.com/257651/
>
> For Mantis error log http://dpaste.com/257654/
>
Hi Jithin,

I saw the access log and error log. I don't find anything unusual. I
expected to see lots 5xx codes. But that didn't happen or the log
isn't complete. The issue you are saying is a typical scenario where
in the httpd dies and start itself up. Which will not be noticeable in
ping request. Ping just makes sure ip connectivity exists or not. It
does nt check whether your application died or not. Ping is in no way
useful in our current scenario. Please look for symptoms of
application httpd crashing and starting itself up. If it Linux i would
look at /var/log/messages . If it is windows i would look at event
viewer. Please start looking at that angle. One more query , is
selinux thing to blame ??

--ashwin
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Linux scripting: need some idea

2010-10-17 Thread Zico
Hi, I need some idea regarding scripting. I need to run a script, which will
search for the (latest-1) file from a folder. Here, (Latest-1) means: this
script will find the file which is not the last edited/saved file but the
immediate previous edited/saved file of that lastest one? Is it possible?

-- 
Best,
Zico
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Linux scripting: need some idea

2010-10-17 Thread Siddhesh Poyarekar
On Mon, Oct 18, 2010 at 1:14 AM, Zico  wrote:
> Hi, I need some idea regarding scripting. I need to run a script, which will
> search for the (latest-1) file from a folder. Here, (Latest-1) means: this
> script will find the file which is not the last edited/saved file but the
> immediate previous edited/saved file of that lastest one? Is it possible?
>

ls -1rt | tail -2 | head -1


-- 
Siddhesh Poyarekar
http://siddhesh.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Linux scripting: need some idea

2010-10-17 Thread Siddhesh Poyarekar
On Mon, Oct 18, 2010 at 1:20 AM, Siddhesh Poyarekar
 wrote:
> On Mon, Oct 18, 2010 at 1:14 AM, Zico  wrote:
>> Hi, I need some idea regarding scripting. I need to run a script, which will
>> search for the (latest-1) file from a folder. Here, (Latest-1) means: this
>> script will find the file which is not the last edited/saved file but the
>> immediate previous edited/saved file of that lastest one? Is it possible?
>>
>
> ls -1rt | tail -2 | head -1
>

Or of course,

ls -1t | head -2 | tail -1

;)

-- 
Siddhesh Poyarekar
http://siddhesh.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Linux scripting: need some idea

2010-10-17 Thread Zico
On Mon, Oct 18, 2010 at 1:52 AM, Siddhesh Poyarekar <
siddhesh.poyare...@gmail.com> wrote:

>
> Or of course,
>
> ls -1t | head -2 | tail -1
>
>
Thanks a lot! Now, Say, there are five files... 1 2 3 4 & 5. Now, I want to
rename and replace the new inserted sixth file as 1, seventh file as 2 ...
and so on. What should be my script command? By the way, there will be no
more than "five" modified files there!!

-- 
Best,
Zico
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Linux scripting: need some idea

2010-10-17 Thread Siddhesh Poyarekar
On Mon, Oct 18, 2010 at 1:26 AM, Zico  wrote:
> Thanks a lot! Now, Say, there are five files... 1 2 3 4 & 5. Now, I want to
> rename and replace the new inserted sixth file as 1, seventh file as 2 ...
> and so on. What should be my script command? By the way, there will be no
> more than "five" modified files there!!
>

You're basically looking to replace the oldest file at all times,
kinda like log rotation, so you can simply follow the logic:

n=$(ls -1|wc -l)
lf n < 5 then
   create the n+1th file
else
   replace the file you get with ls -1t|tail -1
end if

-- 
Siddhesh Poyarekar
http://siddhesh.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Linux scripting: need some idea

2010-10-17 Thread Zico
On Mon, Oct 18, 2010 at 2:10 AM, Siddhesh Poyarekar <
siddhesh.poyare...@gmail.com> wrote:

> You're basically looking to replace the oldest file at all times,
> kinda like log rotation, so you can simply follow the logic:
>
> n=$(ls -1|wc -l)
> lf n < 5 then
>   create the n+1th file
> else
>   replace the file you get with ls -1t|tail -1
> end if
>
>
Thank you again. But, if I call the variable as "n", the whole name of the
file becomes *n. *

**I have given my total script below which will get the file, immediate
previous one of latest one. Then, a command will be applied on that... and
after that, the new modified file will be saved in a new directory.
*
*
*cd /home/mohib/Desktop/Raw/*
*n=$(ls -1t|head -2|tail -1)*
*/opt/gpac/bin/gcc/MP4Box -hint -latm "n"*
*cp "n" /home/mohib/Desktop/Final/*
*
*
*n=$(ls -1|wc -l)*
*lf n < 5 then*
*  create the n+1th file*
*else*
*  replace the file you get with ls -1t|tail -1*
*end if*

Whats wrong I have made here?
-- 
Best,
Zico
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Linux scripting: need some idea

2010-10-17 Thread steve

On 10/18/2010 02:10 AM, Zico wrote:

On Mon, Oct 18, 2010 at 2:10 AM, Siddhesh Poyarekar<
siddhesh.poyare...@gmail.com>  wrote:


 You're basically looking to replace the oldest file at all times,
 kinda like log rotation, so you can simply follow the logic:

 n=$(ls -1|wc -l)
 lf n<  5 then
   create the n+1th file
 else
   replace the file you get with ls -1t|tail -1
 end if



Thank you again. But, if I call the variable as "n", the whole name of the
file becomes *n. *



Do a `man bash` or `info bash` and search for `Parameter Expansion`. Quick ref:

[st...@laptop ~]$ i="foo.txt"
[st...@laptop ~]$ echo $i ${i%%.txt} ${i/txt/mp3}
foo.txt foo foo.mp3

hth,
cheers,
- steve

--
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Linux scripting: need some idea

2010-10-17 Thread Siddhesh Poyarekar
On Mon, Oct 18, 2010 at 2:10 AM, Zico  wrote:
> Thank you again. But, if I call the variable as "n", the whole name of the
> file becomes *n. *

I gave you the logic for it and expected that you would try to
implement it yourself in shell script.

-- 
Siddhesh Poyarekar
http://siddhesh.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [ilugc]webserver responds slowly ?

2010-10-17 Thread JITHIN K
On Mon, Oct 18, 2010 at 12:45 AM, ashwin kesavan wrote:

> On 14 October 2010 11:43, JITHIN K  wrote:
> > Hi Aswin,
> >
> >
> > For mantis access log  please follow the link http://dpaste.com/257651/
> >
> > For Mantis error log http://dpaste.com/257654/
> >
> Hi Jithin,
>
> I saw the access log and error log. I don't find anything unusual. I
> expected to see lots 5xx codes. But that didn't happen or the log
> isn't complete. The issue you are saying is a typical scenario where
> in the httpd dies and start itself up. Which will not be noticeable in
> ping request. Ping just makes sure ip connectivity exists or not. It
> does nt check whether your application died or not. Ping is in no way
> useful in our current scenario. Please look for symptoms of
> application httpd crashing and starting itself up. If it Linux i would
> look at /var/log/messages . If it is windows i would look at event
> viewer. Please start looking at that angle. One more query , is
> selinux thing to blame ??
>
> --ashwin
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>

Hi Aswin,

 Thanks for your response. I knew that there is no connection between ping
request and apache2.2 . But i just found that if there any type of
connection ( Putty,FTP,ping etc) established between my webserver and local
pc . Then the website is loading fine.  Any way let me check the message
log.

 Thanks and Regards

Jithin K
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] IP Aliasing

2010-10-17 Thread Govi
thanks Mr.Raja,
   Is there any possibility to modify the kernel to use src
ip as eth0:1 instead of eth0.



*Thanks & Regards*

*Govi*

*Mobile: +91 98407 45214*

*  **Save the Planet...*




On Sat, Oct 16, 2010 at 4:35 AM, Raja Subramanian wrote:

> On Thu, Oct 14, 2010 at 10:26 AM, Govi  wrote:
> >   I have one ethernet card(eth0) , with three ip address(2 aliases).
> > When ever i am establishing a connection it was sending through eth0 only
> > .incomming packets are receiving for all the ips.
> >
> > My questions all the outgoing packets are sent through eth0 only or i
> will
> > sent through any one ip( eth0 , eth0:1 or eth0:2 ).
>
> When you initiate a connection from your system, the kernel is free
> to choose any suitable source IP based on the kernel routing table.
> And by default, the primary IP of the interface is selected as src IP.
>
> If you want your application to use a specific IP (eth0:1), then your
> daemon/app needs to bind to that specific IP *before* initiating a
> connection.  Most applications use 0.0.0.0 as the src IP by default
> and let the kernel choose the appropriate src IP.
>
> Eg. If eth0 is 192.168.0.10, eth0:1 is 192.168.0.11
>
> "ping 192.168.0.1" will send ICMP packets with src IP 192.168.0.10
>
> "ping -I 192.168.0.11 192.168.0.1" will send ICMP packets with src
> IP 192.168.0.11
>
>
> Note that having multiple IPs defined in the same subnet can cause
> other unexpected problems unless it is handled specifically.  If you
> have two physical interfaces with IPs assigned in the same subnet,
> ARP requests/responses can get mixed up and cause issues.  IIRC
> recent kernel versions have addressed these issues.
>
> - Raja
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Re: ILUG-Coimbatore

2010-10-17 Thread Kenneth Gonsalves
On Sun, 2010-10-17 at 08:03 +0530, sibi raj wrote:
> This is called as democracy , One person Dictates and all others
> listen to it ...

who is this one person who has dictated this? (it is not me as I only
joined this group in 2005 and the rules were already there). Let us find
this bad fellow and kick him out.
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Re: ILUG-Coimbatore

2010-10-17 Thread Kenneth Gonsalves
On Sun, 2010-10-17 at 08:53 +0530, Shakthi Kannan wrote:
> --- On Sun, Oct 17, 2010 at 4:52 AM, Kenneth Gonsalves
>  wrote:
> | The
> | correct method of posting is 'interleaved posting' and not bottom
> | posting. @shakthi+Srini - this has been there for several years and
> it
> | is misleading.
> \--
> 
> I am not a moderator for this group. I had updated my presentation [1]
> quite some time back to reflect the interleaved, trimmed posting. You
> are welcome to refer it when needed. 

I did not realise that. Unfortunately an uncorrected copy is being sent
to the list every month.
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Kenneth Gonsalves
On Sun, 2010-10-17 at 16:35 +0530, openbala wrote:
> * you need to be good at at least 2 programming languages

one is enough
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Kenneth Gonsalves
On Sun, 2010-10-17 at 12:43 +0530, maverick gugu wrote:
>   I've been always wanting to do this. Though my coding skills are not
> very
> up to the mark, I wish to contribute to some open source project by
> coding
> for it. Can you please guide me into which project can i start with.
> In the
> process I hope i do understand the source control management systems
> which
> are there for each n every project. 

if you know python, I need a lot of help.
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Re: ILUG-Coimbatore

2010-10-17 Thread Kenneth Gonsalves
On Sun, 2010-10-17 at 12:48 +0530, sibi raj wrote:
> Hello Thyagarajan Shanmugham ,
> That was an entirely new post. Just 2 lines were from the previous
> mail . 
> I am fully supportive in case of interleaved posting . 
> But when  some one new does a top or bottom posting why we need to be
> so harsh to him ?
> That was my point over there .
> Not being harsh isn't a strict rule written any where but a basic
> human nature . 

please do not top post
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] IP Aliasing

2010-10-17 Thread Kenneth Gonsalves
On Mon, 2010-10-18 at 11:10 +0530, Govi wrote:
> *  **Save the Planet...*

top posting contributes to global warming
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to code for an Open Source Project

2010-10-17 Thread Version Control Buddy
> if you know python, I need a lot of help.

Which project is this for, I can have a look and tell you if can help you.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] lugc-new installation grub error

2010-10-17 Thread Version Control Buddy
> I have encountered a very strange error. Like I said a weeks ago I am still 
> stuck with the need of XP for a while. Today I reformatted my dell laptop 
> inspiron m600's 160 gb HDD installed xp and restored some of the proprietary 
> stuff and went on to install ubuntu 9.04/ the installation went on smoothly 
> and on restart threw up the following error
> stage 1.5.
> loading grub please wait..
> error 18 and am unable to go forward. I tried deleting the ubuntu partitions 
> and reinstall it is not allowing me to even after I delete the partition how 
> to proceed further how to atleast return to original status prior to ubunto 
> installation.
> I need a quick fix as I have to travel with my laptop very soon on audit  to 
> my auditors at Hyderabad.
>
> I just repeated what I did on another desktop at a friends place where the 
> installation went on smoothly. Just wanted to introduce FOSS to him.
> GY


I think grub is upgraded to 2.0 in ubuntu 9.x, which could be the
cause. Try installing grub again using the live CD.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc