Re: [Ilugc] learning a new language

2011-02-10 Thread Kenneth Gonsalves
On Thu, 2011-02-10 at 11:23 +0530, Vinod Parthasarathy wrote:
 Here's one way of writing factorial in Haskell.
 
 factorial 0=1
 factorial n=n*factorial(n-1)

neat!
 
 Nice, isn't it? Just the way you learnt it in school! Pattern matching
 rules! 

btw, welcome back to the list.
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] learning a new language

2011-02-10 Thread Chandrashekar Babu
On 10/02/11 11:23 AM, Vinod Parthasarathy wrote:

 Here's one way of writing factorial in Haskell.

 factorial 0=1
 factorial n=n*factorial(n-1)

And here's the pythonic way:
factorial = lambda n: n and n*factorial(n-1) or 1

Succinct :-)

Or even better:
from math import factorial  # Batteries included!
print factorial(6)

The Haskell version is also neat (more readable IMO).

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/

PS: The above pythonic code doesn't work for negative numbers.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] learning a new language

2011-02-10 Thread Joe Steeve
On 02/09/2011 11:57 AM, Natarajan V wrote:
 Out of personal experience, after knowing UML, switching between C++,
 Visual C++, Java, Objective C and C# was trivial. You start thinking
 in OOPS, and the language becomes just a language and your idea/ logic
 is in OOPS. The translation becomes trivial, to about 90% of the work.

UML does not make you think object oriented. You got to learn to think
object oriented and UML simply helps you present/communicate it with
your colleagues.

-- 
.o. I'm a Free man. I use Free Software.
..o
ooo http://www.joesteeve.org/



signature.asc
Description: OpenPGP digital signature
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] [OT] Functional Programming [Was: Re: learning a new language]

2011-02-10 Thread steve
Hi,

On 02/10/2011 01:57 PM, Chandrashekar Babu wrote:
 On 10/02/11 11:23 AM, Vinod Parthasarathy wrote:

  Here's one way of writing factorial in Haskell.

  factorial 0=1
  factorial n=n*factorial(n-1)

 And here's the pythonic way:
  factorial = lambda n: n and n*factorial(n-1) or 1

 Succinct :-)

 Or even better:
  from math import factorial  # Batteries included!
  print factorial(6)

 The Haskell version is also neat (more readable IMO).

... just thought I'd share this since we were slowly drifting into the 
functional programming, here is one series of articles I read back-to-back in 
one go when I stumbledupon'd[1] it:

http://devlicio.us/blogs/christopher_bennage/archive/2010/09/06/what-is-functional-programming.aspx

cheers,
- steve

[1] www.stumbleupon.com (also see my sig)
-- 
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] learning a new language

2011-02-10 Thread Nataraj S Narayan
Hi

Plagiarized from Cleartrips.com blog:-
http://blog.cleartrip.com/journal/2007/7/7/lisp-is-sin-and-all-data-is-code.html

I believe Lisp, as a language, attracts a very specific type of
person--and it's not the average bloke who takes computer science
classes in college or enrols in a diploma course because programming
is where the jobs are.

regards

Nataraj

On Wed, Feb 9, 2011 at 9:31 AM, Siddhesh Poyarekar
siddhesh.poyare...@gmail.com wrote:
 On Wed, Feb 9, 2011 at 2:04 PM, steve st...@lonetwin.net wrote:
 I'd say learn C only if you are interested in systems programming. There 
 just is
 no way to do systems programming and /not/ know C -- but that's about the 
 only
 thing C would be useful for these days.

 Since you know python, you won't learn anything new from C++ and will only 
 end
 up wondering why C++ programmers do that to themselves.

 If you want to improve programming chops, learn lisp or any other functional
 programming language.

 +1

 And if you want to explore the programming languages of your younger
 days, but with a twist, then there is always multithreaded COBOL ;)

 --
 Siddhesh Poyarekar
 http://siddhesh.in
 ___
 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] learning a new language

2011-02-10 Thread Kenneth Gonsalves
On Thu, 2011-02-10 at 13:57 +0530, Chandrashekar Babu wrote:
 And here's the pythonic way:
 factorial = lambda n: n and n*factorial(n-1) or 1 

lambda is not considered pythonic (by guido anyway)
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Aanjhan R
On Wed, Feb 9, 2011 at 1:37 PM, Rahul Sundaram methe...@gmail.com wrote:
 conclusions after that point.    If you want to discuss this further,
 catch me up on IRC or mail me offlist.  I am sure the list needn't be
 bothered further with this.

No way. Just because people are not contributing doesn't mean they are
not interested. I am all ears on this thread.

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


Re: [Ilugc] linux compatible tv tuner card

2011-02-10 Thread Roshan George
On Thu, 2011-02-10 at 16:05 +0530, ravi jaya wrote:
 hello folks,
 
 I am looking for  a linux compatible tv tuner card .

Anything with the bt878 chipset will work with bttv. I know of at least
one TV Tuner card, the Pinnacle PCTV Pro PCI card that works with Linux.

-- 
Roshan George

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Kenneth Gonsalves
On Thu, 2011-02-10 at 11:09 +0100, Aanjhan R wrote:
 On Wed, Feb 9, 2011 at 1:37 PM, Rahul Sundaram methe...@gmail.com
 wrote:
  conclusions after that point.If you want to discuss this
 further,
  catch me up on IRC or mail me offlist.  I am sure the list needn't
 be
  bothered further with this.
 
 No way. Just because people are not contributing doesn't mean they are
 not interested. I am all ears on this thread. 

and now to add some ghee to the flames:

My observations on the different modes of development now existent, the
licenses they choose and how the licenses affect the development.

1. The classic mode which we all love and respect: Community driven,
meritocracy ruled projects. These are hugely successful in attracting
developers and although the top rung may not change much there is a
constant in and out flow of developers in the lower rungs. As these
projects reach maturity, the usually produce non profit foundations to
take care of organisational aspects - examples:

linux kernel (GPL), apache set of projects (Apache license) python and
postgresql (BSD license) and many others of course. 

2. Company mode (free) - where the project is mainly run by a company
and the said company does not have any proprietary products based on the
project in question. Usually these companies are able to attract large
number of developers because the developers know that the open source
version they are working on is the same version that the company is
working on. Companies almost invariably choose the GPL as suits are
scared that some one may 'steal' their code. Any way a prime example of
this type is Red hat. There is the curious case of PHP where a company
has 'downgraded' it's license from GPL to a BSD style license. Wonder
why ;-) Sort of knocks the apparent logic of the wine license change
into a hat. More on this later.

3. Company mode (somewhat free) - here the company has an open source
project, and one or more proprietary products built on the open source
project. Looks like wine (and codeweavers) is one of them. Usually the
company does the bulk of the development and does not attract (and does
not really want) too many outside developers. Company decides the path
to be followed with not much say for others. Or in extreme cases like
MySQL (and mono?) the company will not take contributions unless the
copyright is handed over. From what I can make out from the wine case,
it started as a community project under the BSD license, but codeweavers
moved in to do the major development, and changed the license to
'protect' their interests and investment. An interesting comment in the
discussion was - BSD licensed projects are based on trust, with LGPL the
necessity for trust is eliminated - to me this sounds very sad.

4. Company mode (bogus) - here the company releases a watered down
version as open source mainly as bait to get customers for the
proprietary version. This does not attract developers as the the version
they are working on is not the actively developed version. These
companies are a disgrace and instrumental in turning a lot of people
away from open source. The all either use GPL or something even more
restrictive. 

5. Autorickshaw mode - where the whole development team will fit into an
autorickshaw. This segment rarely thinks too much about license, and
anyway they can change license at will. When I first released something
through sourceforge, license was one thing that I had to choose - GPL
was the default and I clicked it - I only read the GPL about 3 years
later ;-)

6. Closet mode - this is a new one that I just discovered a couple of
months back. Here the guy develops software in secret, wraps it in the
GPL and sells copies of it to the customers. He has discovered that the
GPL does not oblige him to put up the source on the internet.
Theoretically his customers can put it up themselves, but in practice it
is impossible. I am sure if one sees the software, it would have to be
installed by hand in various parts of the operating system. The
customer, in the first place, having paid for it is not going to give it
away free. And in the second place it is doubtful if he would have the
knowledge to package it for release in a usable form. We are all aware
of the time consuming processes we have to go through to make a release
usable. And anyway without support from the developer, putting the code
up someplace is an exercise in futility. I think this is a glaring
loophole in the GPL and is why I had suggested a 5th freedom on my blog.

note 1: Change of license is only possible if all the contributors agree
to the change. Even if one disagrees, his work has to be removed before
the license is changed. Which means that once the number of contributors
reaches a critical mass, change of license is impossible.

note 2: Although software cannot be stolen or made proprietary (only a
copy can be stolen or made proprietary), the owner of the copyright can
sell the copyright (as opposed to 

Re: [Ilugc] learning a new language

2011-02-10 Thread Arun SAG
On Thu, Feb 10, 2011 at 3:19 PM, Kenneth Gonsalves
law...@thenilgiris.comwrote:

  lambda is not considered pythonic (by guido anyway)


According to paul graham most of the modern languages are created by
borrowing concepts from lisp.

In his own words ( http://www.paulgraham.com/icad.html)

 If you look at these languages in order, Java, Perl, Python, you notice an
 interesting pattern. At least, you notice this pattern if you are a Lisp
 hacker. Each one is progressively more like Lisp. Python copies even
 features that many Lisp hackers consider to be mistakes. You could translate
 simple Lisp programs into Python line for line. It's 2002, and programming
 languages have almost caught up with 1958.


yes, lambda was borrowed from lisp and it is not pythonic.

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


Re: [Ilugc] learning a new language

2011-02-10 Thread Sathishkumar Duraisamy
On Thu, Feb 10, 2011 at 5:12 PM, Arun SAG saga...@gmail.com wrote:
 On Thu, Feb 10, 2011 at 3:19 PM, Kenneth Gonsalves
 law...@thenilgiris.comwrote:

  lambda is not considered pythonic (by guido anyway)


 According to paul graham most of the modern languages are created by
 borrowing concepts from lisp.

This created some hype.  I have decided to learn it in my free time,
atleast to understand, what it is.

 In his own words ( http://www.paulgraham.com/icad.html)

 If you look at these languages in order, Java, Perl, Python, you notice an
 interesting pattern. At least, you notice this pattern if you are a Lisp
 hacker. Each one is progressively more like Lisp. Python copies even
 features that many Lisp hackers consider to be mistakes. You could translate
 simple Lisp programs into Python line for line. It's 2002, and programming
 languages have almost caught up with 1958.


 yes, lambda was borrowed from lisp and it is not pythonic.

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




-- 
Regards,
Sathishkumar D
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] learning a new language

2011-02-10 Thread Chandrashekar Babu
Hi,

On 10/02/11 3:19 PM, Kenneth Gonsalves wrote:
 lambda is not considered pythonic (by guido anyway)

Well, a proposal for implementing multi-line statements
in lambda was earlier rejected by Guido as the proposed
solutions were considered unpythonic. The reason being,
it was difficult to come up with a clean syntax for
representing multi-line blocks within an expression
without breaking Python's indentation rules.

lambda expressions as such was not mentioned by Guido
as unpythonic anywhere.

Infact, any python code that follows The Zen of Python
can be considered pythonic - and I don't see how lambda
expressions used in a comprehensible way break them.

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/

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


Re: [Ilugc] learning a new language

2011-02-10 Thread Chandrashekar Babu

On 10/02/11 5:12 PM, Arun SAG wrote:
 yes, lambda was borrowed from lisp and it is not pythonic.

Rather, most of python was borrowed from Modula-3. That
doesn't make python unpythonic ;-)

Cheers,
Chandrashekar

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/



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


Re: [Ilugc] mysql db to db query

2011-02-10 Thread Sathia S
Hi

Is it possible to quary and fetch data in one mysql db and store it in a
 second on .

 ya its possible


 I have machine M1 and M2 with mysql configured . There is a DB in M1 namely
 employee_details . Now I have to fectch all the recods in M1
 employee_details from and have to store M2 mysql database via mysql query.
 Is it possible or is it my ignorance about db concepts .


see this link -

http://dev.mysql.com/doc/refman/5.0/en/copying-databases.html


Regards

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


Re: [Ilugc] learning a new language

2011-02-10 Thread Kenneth Gonsalves
On Thu, 2011-02-10 at 17:39 +0530, Chandrashekar Babu wrote:
 lambda expressions as such was not mentioned by Guido
 as unpythonic anywhere. 

he wanted to drop lambda and I think reduce and map - but he was made to
change his mind and reluctantly kept them.
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


[Ilugc] [JOB] Embedded dev engineers

2011-02-10 Thread Mohan Sundaram
I'm building a small high powered team of embedded engineers to build
devices around microcontrollers like Atmel, PIC and ARM7/9/Cortex-M3
core based μCs with associated components liek Flash, communication
controllers, SPI devices etc. We've currently built 2 devices, one
based on the PIC and one on ATMega32.

Am looking for self starters who like working in startup environments.
Folks who have done work with such microcontrollers both hardware and
software, dev/debug tools etc are the people we are looking for. As
expected in startups, we want engineers who love the breadth, willing
to plunge into new areas to learn and contribute.

The startup is based in Bangalore.

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


Re: [Ilugc] [OT] Functional Programming

2011-02-10 Thread Chandrashekar Babu
On 10/02/11 3:15 PM, steve wrote:
 http://devlicio.us/blogs/christopher_bennage/archive/2010/09/06/what-is-functional-programming.aspx

Interesting article - concepts were crisp and
to the point. Thanks for the sharing!

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/


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


Re: [Ilugc] learning a new language

2011-02-10 Thread Chandrashekar Babu
On 10/02/11 5:59 PM, Kenneth Gonsalves wrote:
 he wanted to drop lambda and I think reduce and map - but he was made to
 change his mind and reluctantly kept them.

True. The lambda expressions still exist on
Python 3000 as there are no other pythonic
alternatives to create anonymous functions.

It was impossible at this time to come up with
a better alternative to existing lambda expression
that could support multi-line statements - much
like Proc objects in Ruby for instance, without
breaking existing Python rules (indentation rules
for example).

The existing lambda expression as such does not
break any rules to be termed as unpythonic.

Even 'map' and 'filter' exists on Python 3000 as
most of the community believe them to be more
simpler and readable than list comprehensions
in many cases. Whether using them is pythonic or
not - can be subjective ;-). But they are redundant
variants of list comprehensions.

The 'reduce' was removed in Python 3000 (or rather
moved to functools, instead) to maintain consistency
overall.

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/



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


Re: [Ilugc] learning a new language

2011-02-10 Thread Chandrashekar Babu
On 10/02/11 12:14 PM, Kenneth Gonsalves wrote:
 However the good news is that I
 seem to be getting on ok with C - feels very primitive, but the good
 thing is the internet which explains all the errors and warnings. Last
 three times I tried, internet had not reached India.

You should have started with the book The C Programming Language
by Brian Kernighan and Dennis Ritchie (2nd Edition). It's never too
late - you can start with it right now - best read cover to cover
while practicing all the concepts/programs and working out the
exercises at the end of each chapter.

Another book worth reading (of course, after you've mastered the
basics) - C: A Reference Manual by Samuel Harbison and
Guy L. Steele (5th Edition).

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/

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


[Ilugc] [JOB]Embedded Dev engineers

2011-02-10 Thread Mohan Sundaram
Posting with email id to send CVs to. Apologies to the members for the repost.

I'm building a small high powered team of embedded engineers to build
devices around microcontrollers like Atmel, PIC and ARM7/9/Cortex-M3
core based μCs with associated components liek Flash, communication
controllers, SPI devices etc. We've currently built 2 devices, one
based on the PIC and one on ATMega32.

Am looking for self starters who like working in startup environments.
Folks who have done work with such microcontrollers both hardware and
software, dev/debug tools etc are the people we are looking for. As
expected in startups, we want engineers who love the breadth, willing
to plunge into new areas to learn and contribute.

The startup is based in Bangalore.

Please send your CVs to moahn.tux.j...@gmail.com
-- Mohan Sundaram
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] make tutorial

2011-02-10 Thread Shakthi Kannan
Hi,

--- On Fri, Jun 18, 2010 at 4:59 PM, Girish Venkatachalam
girishvenkatacha...@gmail.com wrote:
| This mail is an attempt to teach makefiles in UNIX.
| ...
| As you can see it is very complicated, complex and needlessly boring.
\--

Made a presentation on GNU Make:

  http://www.shakthimaan.com/downloads.html#dum-ka-biryani-make-for-each-other

Feedback appreciated.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] mysql db to db query

2011-02-10 Thread Girish Venkatachalam
On Thu, Feb 10, 2011 at 4:33 PM, JAGANADH G jagana...@gmail.com wrote:
 Hi

 Is it possible to quary and fetch data in one mysql db and store it in a
 second on .

 I have machine M1 and M2 with mysql configured . There is a DB in M1 namely
 employee_details . Now I have to fectch all the recods in M1
 employee_details from and have to store M2 mysql database via mysql query.
 Is it possible or is it my ignorance about db concepts .


Google for SQL join.

SQL is a worthwhile programming language to learn. There are some interesting
 threads on programming languages in LUG now but SQL does not fit into
any of those moulds.

It is a DB querying language that is very powerful and easy too.

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


Re: [Ilugc] need a web mail client with pop3 support

2011-02-10 Thread Girish Venkatachalam
There is nothing mutt does not support.

Pop3, imap, pop3s, imaps...

-Girish

On Thu, Feb 10, 2011 at 7:26 PM, steve st...@lonetwin.net wrote:
 On 02/09/2011 09:26 PM, Raja Subramanian wrote:
 Dear All,

 I am moving ~70 mail boxes from an old email provider
 to a new one.  During the migration, I want to provide users
 access to their old POP3 mailboxes using a web mail client.

 All web mail clients I have used and evaluated - Squirrel
 Mail, Round Cube, etc - are IMAP only, and do not support
 POP3.

 Any recommendations are for a POP3 web mail client are
 very welcome.  Thanks!


 Horde supports pop3: http://www.horde.org/webmail/

 However, I personally have used it only in an IMAP setup so do not know how
 good/easy/painless it is to setup and use for POP3

 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




-- 
Gayatri Hitech

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


Re: [Ilugc] make tutorial

2011-02-10 Thread Girish Venkatachalam
Ha ha.

On Thu, Feb 10, 2011 at 8:17 PM, Shakthi Kannan shakthim...@gmail.com wrote:
 Hi,

 --- On Fri, Jun 18, 2010 at 4:59 PM, Girish Venkatachalam
 girishvenkatacha...@gmail.com wrote:
 | This mail is an attempt to teach makefiles in UNIX.
 | ...
 | As you can see it is very complicated, complex and needlessly boring.
 \--

 Made a presentation on GNU Make:

  http://www.shakthimaan.com/downloads.html#dum-ka-biryani-make-for-each-other

 Feedback appreciated.

Very funny you quote me from history kind of like dinosaur.

You have made a fantastic presentation on this. Brilliant.

Some of the advanced concepts towards the later slides I have
 never used and I doubt if many people use them at all.

But there is no learning like doing yourself.

-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] need a web mail client with pop3 support

2011-02-10 Thread steve
On 02/10/2011 08:59 PM, Girish Venkatachalam wrote:
 There is nothing mutt does not support.

 Pop3, imap, pop3s, imaps...


If you had taken the time to follow list rules and attempted to quote the mail, 
there would've been an off-chance that you actually /read/ what was requested 
before shooting off a reply.

Sorry for my curt response, but you have been consistently top-posting 
irrelevant responses which is pretty annoying. Please resist the urge to 
respond 
to every mail here.

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 compatible tv tuner card

2011-02-10 Thread Girish Venkatachalam
On Thu, Feb 10, 2011 at 4:05 PM, ravi jaya ravijaya.l...@gmail.com wrote:
 hello folks,

 I am looking for  a linux compatible tv tuner card .

 Could you please share your experience with the same. if you were current
 using it.


 I would appreciate, if  you would post back the name and model which is
 compatible with linux would be great.

I use a very old Pinnacle card bought from the tech-com brand.

It works remarkably well though the card is really very old.

Fabulous!

Even the Windows driver does not work!

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


Re: [Ilugc] need a web mail client with pop3 support

2011-02-10 Thread Balachandran Sivakumar
Hi,

On Thu, Feb 10, 2011 at 8:59 PM, Girish Venkatachalam
girishvenkatacha...@gmail.com wrote:
 There is nothing mutt does not support.

   mutt is not a web mail client :) Thanks

-- 
Thank you
Balachandran Sivakumar

Arise Awake and stop not till the goal is reached.

Mail: benignb...@gmail.com
Blog: http://benignbala.wordpress.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] mysql db to db query

2011-02-10 Thread steve
On 02/10/2011 08:59 PM, Girish Venkatachalam wrote:
 On Thu, Feb 10, 2011 at 4:33 PM, JAGANADH Gjagana...@gmail.com  wrote:
  Hi

  Is it possible to quary and fetch data in one mysql db and store it in a
  second on .

  I have machine M1 and M2 with mysql configured . There is a DB in M1 namely
  employee_details . Now I have to fectch all the recods in M1
  employee_details from and have to store M2 mysql database via mysql query.
  Is it possible or is it my ignorance about db concepts .


 Google for SQL join.
 [...snipped rambling about SQL...]

Could you please elaborate on just exactly how does one use SQL join to ... 
fectch all the recods in M1 ... and ...store [in] M2 ... where M1 and M2 are 
clearly specified as 2 different machines with different instances of mysql ?

I'd really be interested in this !

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] mysql db to db query

2011-02-10 Thread Chandrashekar Babu
On 10/02/11 4:33 PM, JAGANADH G wrote:
 Is it possible to quary and fetch data in one mysql db and store it in a
 second on .

 I have machine M1 and M2 with mysql configured . There is a DB in M1 namely
 employee_details . Now I have to fectch all the recods in M1
 employee_details from and have to store M2 mysql database via mysql query.

You might want to try using mysqldump as mentioned by Sathia.

If you want to replicate just one table from another machine
(M1), you can first try creating a federated table on the
target machine (M2) which has the same table structure as the
table in M1.

On target machine (M2) you might want to try something like
below:
--
CREATE TABLE `fed_emp_details`(
   `id`SERIAL PRIMARY KEY,
   `name`  VARCHAR(32) NOT NULL,
   `dept`  VARCHAR(32) NOT NULL
) ENGINE=FEDERATED
   CONNECTION='mysql://someuser@M1:3306/mydb/employee_details';
--
You might want to modify the table structure and connection
details to suit your requirement.

Now running queries on the federated table on M2 will actually
show/affect the contents from table that is stored on M1.

Now, you can use a query similar to the one below on the
target machine (M2) to actually replicate the table:
--
CREATE TABLE `employee_details` ENGINE=MyISAM AS
SELECT * FROM `fed_emp_details`;
--
This method could be used only if you do not have the luxury
of running mysqldump on your shell prompt. Of course, this
technique is non-optimal, and might not work if your source
table is not using MyISAM storage engine. Some deployments
of MySQL server might also have FEDERATED engine disabled.

Nevertheless, it is worth noting that there is a possibility.

To know more about federated table usage, kindly lookup
the URL: http://dev.mysql.com/doc/refman/5.0/en/federated-use.html

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] mysql db to db query

2011-02-10 Thread Chandrashekar Babu
On 10/02/11 4:33 PM, JAGANADH G wrote:
 Is it possible to quary and fetch data in one mysql db and store it in a
 second one .

If you can write a script in PHP/Perl/Python/Ruby or any other
language of your choice, you can open two database connections
- one to the source host and one to the destination host:

1. Execute the query 'SHOW CREATE TABLE `employee_details`'
on the source host to get the table structure.

2. Execute the resultset column (which should be a valid
CREATE TABLE statement) as a query on destination host.

3. Now fetch rows from the table on the source host and
insert the result-set as rows in the destination host.

Hope this helps.

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] need a web mail client with pop3 support

2011-02-10 Thread Raja Subramanian
On Thu, Feb 10, 2011 at 7:26 PM, steve st...@lonetwin.net wrote:
 Horde supports pop3: http://www.horde.org/webmail/

Thanks to everyone for their suggestions.

I found www.mail2web.com which does what I need, and
best part is that I don't have to install anything.  Of course
it has security caveats - I would never use my password
on a 3rd party website.  But my users are okay with it,
and it get's the job done quickly.

Thanks again for the suggestions.

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


Re: [Ilugc] learning a new language

2011-02-10 Thread Raja Subramanian
On Thu, Feb 10, 2011 at 12:14 PM, Kenneth Gonsalves
law...@thenilgiris.com wrote:
 I have been trying to learn javascript for the past 7 years - I seem to
 have some block. Just not happening. However the good news is that I
 seem to be getting on ok with C - feels very primitive, but the good
 thing is the internet which explains all the errors and warnings. Last
 three times I tried, internet had not reached India.

Grab yourself a copy of The Practice of Programming
http://tpop.awl.com/

Regardless of the programming language, it offers exceptional
advise on good programming techniques.


Writing Solid Code by Steve Maguire, Microsoft Press, is
another excellent book to improve coding skills.  Especially
for C programmers.

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


[Ilugc] Connecting two virtual OSs in same machine

2011-02-10 Thread Zico
Hi, My host OS is: Ubuntu 10.10. One of my virtual OS is: Ubuntu 9.04 and
another one is: Ubuntu 10.04. All of these virtualisation has been completed
with Virtualbox. Now, I need to replicate those two servers, one server is
running  in Ubuntu 9.04 and another one is running in Ubuntu 10.04. Is it
possible? If yes, can you please provide me some help?

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Rahul Sundaram
On 02/10/2011 08:25 AM, Kenneth Gonsalves wrote:
 I have read the citation you have given - 6 times so far. There is
 nothing about license there - the citation talks of what you call
 governance - governance is bad and is the root of the problem. 

You misunderstood the purpose of the reference.  You said NetBSD was
alive and kicking.  I pointed out that it was facing problems.  The
problems that were talked about in the mailing list weren't due to
licensing but as I already indicated,  you can get more information by
talking to the developers directly and get to know the impact of the
licensing in their development since there isn't any readily available
reference for that.   That is what I meant by doing your own research.

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Rahul Sundaram
On 02/10/2011 05:07 PM, Kenneth Gonsalves wrote:

[ The different modes of development have already well established
names.   Look up Open Core,  centralized copyright etc)

 note 1: Change of license is only possible if all the contributors agree
 to the change. Even if one disagrees, his work has to be removed before
 the license is changed. Which means that once the number of contributors
 reaches a critical mass, change of license is impossible.

Not really true.   Number of contributors is irrelevant.  What is
important is diversity of copyright holders or the specific permissions
provided by a contributions license agreement if one exists.  MySQL or
Openoffice.org or most of the FSF/GNU projects has a single copyright
holder and that entity can change the license anytime they want to. Also
not all contributions are worthy of copyright. 

 note 2: Although software cannot be stolen or made proprietary (only a
 copy can be stolen or made proprietary), the owner of the copyright can
 sell the copyright (as opposed to selling a copy). But if the number of
 developers has reached a critical mass, selling the copyright is also
 impossible. 

Copyright laws have several major differences depending on which part of
the world we are talking about.  In some places, public domain is not a
legally recognized concept for instance.

Rahul

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Rahul Sundaram
On 02/10/2011 05:07 PM, Kenneth Gonsalves wrote:
 2. Company mode (free) - where the project is mainly run by a company
 and the said company does not have any proprietary products based on the
 project in question. Usually these companies are able to attract large
 number of developers because the developers know that the open source
 version they are working on is the same version that the company is
 working on. Companies almost invariably choose the GPL as suits are
 scared that some one may 'steal' their code. Any way a prime example of
 this type is Red hat. 

I have yet to see any evidence that organizations prefer GPL for control
or they prefer GPL at all  and in any case,  Red Hat as a example of
that is incorrect.Take  Red Hat Enterprise Linux or Fedora and you
will find that majority of packages have code that is developed outside
of Red Hat and Red Hat serves as a integration point.   It is clear
according to several surveys that majority of FOSS developers who are
hobbyists prefer GPL and not merely organizations and the motivations
are described for those who bothered to look as well .   Also when Red
Hat does development of a new project,  the license of the project is
chosen on a case by case basis.I can give you examples of various
licenses that Red Hat has chosen for new projects.   a) Libvirt,  LGPL 
b)  FreeIPA ,  GPLv3,   c) Deltacloud,  Apache,  D)  Red Hat directory
server,  GPLv2 + exceptions,  E)  LibXML2,  MIT. I am sure there are
others. 

 There is the curious case of PHP where a company
 has 'downgraded' it's license from GPL to a BSD style license. Wonder
 why ;-) Sort of knocks the apparent logic of the wine license change
 into a hat. 

Not really.  A license change is not a downgrade or a upgrade.  That
concept has no legal meaning.  Also if anything it knocks down the idea
the organizations prefer GPL.   The motivations will have to be
evaluated based on the project in question  

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


[Ilugc] Speak up for every child's right to education.

2011-02-10 Thread UNICEF

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


[Ilugc] Speak up for every child's right to education.

2011-02-10 Thread UNICEF

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


Re: [Ilugc] Connecting two virtual OSs in same machine

2011-02-10 Thread Girish Venkatachalam
On Fri, Feb 11, 2011 at 12:50 AM, Zico mailz...@gmail.com wrote:
 Hi, My host OS is: Ubuntu 10.10. One of my virtual OS is: Ubuntu 9.04 and
 another one is: Ubuntu 10.04. All of these virtualisation has been completed
 with Virtualbox. Now, I need to replicate those two servers, one server is
 running  in Ubuntu 9.04 and another one is running in Ubuntu 10.04. Is it
 possible? If yes, can you please provide me some help?


I do ALL my work with qemu.

Every qemu instance is a separate OS!

Yes. It is amazing. Even low end atom PCs that are available for 2900 rupees
 in Richie street supports this.

Read my article:

http://aplawrence.com/Girish/qemu.html

Just start qemu like this:

$ qemu -hda ubuntu1010.bin

You should install ubuntu 10.10 on to a filestore.

You install like this:

$ qemu -hda ubuntu1010.bin -cdrom path-tocdrom-ubuntu

To create a hard disk execute this command:

$ qemu-img create ubuntu1010.bin 10G

Repeat this whenever you want to install new OSes.

-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] learning a new language

2011-02-10 Thread Kenneth Gonsalves
On Thu, 2011-02-10 at 18:50 +0530, Chandrashekar Babu wrote:
 On 10/02/11 12:14 PM, Kenneth Gonsalves wrote:
  However the good news is that I
  seem to be getting on ok with C - feels very primitive, but the good
  thing is the internet which explains all the errors and warnings.
 Last
  three times I tried, internet had not reached India.
 
 You should have started with the book The C Programming Language
 by Brian Kernighan and Dennis Ritchie (2nd Edition). 

yes sir - right away. I have several copies of it.
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] need a web mail client with pop3 support

2011-02-10 Thread Kenneth Gonsalves
On Thu, 2011-02-10 at 19:26 +0530, steve wrote:
  Any recommendations are for a POP3 web mail client are
  very welcome.  Thanks!
 
 
 Horde supports pop3: http://www.horde.org/webmail/
 
 However, I personally have used it only in an IMAP setup so do not
 know how 
 good/easy/painless it is to setup and use for POP3 

how about the grand daddy of all - good old openwebmail?
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] need a web mail client with pop3 support

2011-02-10 Thread Kenneth Gonsalves
On Thu, 2011-02-10 at 20:59 +0530, Girish Venkatachalam wrote:
 There is nothing mutt does not support.

except perhaps for the fact that it is not a web mail client? Please try
to contribute to the battle against global warming by not top posting.
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Kenneth Gonsalves
On Fri, 2011-02-11 at 02:57 +0530, Rahul Sundaram wrote:
 On 02/10/2011 08:25 AM, Kenneth Gonsalves wrote:
  I have read the citation you have given - 6 times so far. There is
  nothing about license there - the citation talks of what you call
  governance - governance is bad and is the root of the problem. 
 
 You misunderstood the purpose of the reference.  You said NetBSD was
 alive and kicking.  I pointed out that it was facing problems.  The
 problems that were talked about in the mailing list weren't due to
 licensing but as I already indicated,  you can get more information by
 talking to the developers directly and get to know the impact of the
 licensing in their development since there isn't any readily available
 reference for that.   That is what I meant by doing your own
 research. 

unfortunately I do not move in such exalted circles - so why do you not
tell us what the developers told you about how licensing impacted
NetBSD?
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Kenneth Gonsalves
On Fri, 2011-02-11 at 03:03 +0530, Rahul Sundaram wrote:
 [ The different modes of development have already well established
 names.   Look up Open Core,  centralized copyright etc)

these are fruits of my independent research and observations
 
  note 1: Change of license is only possible if all the contributors
 agree
  to the change. Even if one disagrees, his work has to be removed
 before
  the license is changed. Which means that once the number of
 contributors
  reaches a critical mass, change of license is impossible.
 
 Not really true.   Number of contributors is irrelevant.  What is
 important is diversity of copyright holders or the specific
 permissions
 provided by a contributions license agreement if one exists.  MySQL or
 Openoffice.org or most of the FSF/GNU projects has a single copyright
 holder and that entity can change the license anytime they want to.

this is what I said.
  Also
 not all contributions are worthy of copyright. 
 
  note 2: Although software cannot be stolen or made proprietary (only
 a
  copy can be stolen or made proprietary), the owner of the copyright
 can
  sell the copyright (as opposed to selling a copy). But if the number
 of
  developers has reached a critical mass, selling the copyright is
 also
  impossible. 
 
 Copyright laws have several major differences depending on which part
 of
 the world we are talking about.

India
   In some places, public domain is not a
 legally recognized concept for instance. 

I know some one floated an idea that 'public domain' is not a legally
recognised concept in the US - but I doubt it has any validity. Anyway
in India it is not only recognised, but codified. btw, what has this got
to do with the discussion?
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Rahul Sundaram
On 02/11/2011 08:20 AM, Kenneth Gonsalves wrote:
 unfortunately I do not move in such exalted circles - so why do you not
 tell us what the developers told you about how licensing impacted
 NetBSD?

I have already answered that in a previous mail where I gave the
citation.  I rather not go in a circle.  So this will be my last mail on
this example. 

Rahul

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Rahul Sundaram
On 02/11/2011 08:24 AM, Kenneth Gonsalves wrote:
 I know some one floated an idea that 'public domain' is not a legally
 recognised concept in the US - but I doubt it has any validity.

I wasn't talking about U.S. 

  Anyway
 in India it is not only recognised, but codified. btw, what has this got
 to do with the discussion?

That was one example of how copyright differs.  Another example is that
it is not possible to really sell aka assign copyright to another
entity at all in some regions.  So such differences must be taken into
account when discussing the impact of various models. 

Rahul

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Kenneth Gonsalves
On Fri, 2011-02-11 at 08:28 +0530, Rahul Sundaram wrote:
 Another example is that
 it is not possible to really sell aka assign copyright to another
 entity at all in some regions. 

which regions?
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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


Re: [Ilugc] Understanding Free and Open source code licenses

2011-02-10 Thread Rahul Sundaram
On 02/11/2011 08:41 AM, Kenneth Gonsalves wrote:
 On Fri, 2011-02-11 at 08:28 +0530, Rahul Sundaram wrote:
 Another example is that
 it is not possible to really sell aka assign copyright to another
 entity at all in some regions. 
 which regions?

Look up special author rights in Europe for instance.  In other places, 
copyright itself can be assigned or sold but not moral rights . 
IIRC,  that includes India. 

Rahul


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


Re: [Ilugc] Connecting two virtual OSs in same machine

2011-02-10 Thread Zico
On Fri, Feb 11, 2011 at 6:43 AM, Girish Venkatachalam 
girishvenkatacha...@gmail.com wrote:

 I do ALL my work with qemu.

 Every qemu instance is a separate OS!

 Yes. It is amazing. Even low end atom PCs that are available for 2900
 rupees
  in Richie street supports this.

 Read my article:

 http://aplawrence.com/Girish/qemu.html

 Just start qemu like this:

 $ qemu -hda ubuntu1010.bin


[ ... ]

Thanks a lot Girish for your nice article. But, I am afraid that, I was not
able to make the actual thing clear to you, I guess.

Host: Ubuntu 10.10
Guest 1: Ubuntu 9.04
Guest 2: Ubuntu 10.04

Job: Must have to run two guests at a time. Because, two LDAP of two guests
need to replicate. Now, If I try to get the first Guest ( hostname:
mohib-laptop ) from second Guest ( hostname: zaman-laptop ), it is not
getting!

Do I need to change IP address of those both Guests? Or are there anything
which will make it possible?

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


Re: [Ilugc] make tutorial

2011-02-10 Thread sivakumar bharadhwaj
Mr. Girish, Mohan  Shakti Kannan,

Thanks for this excellent post.  A lot of work - for which - everyone will
appreciate this, particularly newbies.

with warm regards

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


Re: [Ilugc] make tutorial

2011-02-10 Thread Sathishkumar Duraisamy
On Thu, Feb 10, 2011 at 8:17 PM, Shakthi Kannan shakthim...@gmail.com wrote:
 Hi,

 --- On Fri, Jun 18, 2010 at 4:59 PM, Girish Venkatachalam
 girishvenkatacha...@gmail.com wrote:
 | This mail is an attempt to teach makefiles in UNIX.
 | ...
 | As you can see it is very complicated, complex and needlessly boring.
 \--

 Made a presentation on GNU Make:

  http://www.shakthimaan.com/downloads.html#dum-ka-biryani-make-for-each-other

the biryani is superb and very tasty...
-- 
Regards,
Sathishkumar D
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Connecting two virtual OSs in same machine

2011-02-10 Thread Girish Venkatachalam
On Fri, Feb 11, 2011 at 9:42 AM, Zico mailz...@gmail.com wrote:

 Thanks a lot Girish for your nice article. But, I am afraid that, I was not
 able to make the actual thing clear to you, I guess.

 Host: Ubuntu 10.10
 Guest 1: Ubuntu 9.04
 Guest 2: Ubuntu 10.04

 Job: Must have to run two guests at a time. Because, two LDAP of two guests
 need to replicate. Now, If I try to get the first Guest ( hostname:
 mohib-laptop ) from second Guest ( hostname: zaman-laptop ), it is not
 getting!

 Do I need to change IP address of those both Guests? Or are there anything
 which will make it possible?

Your question is clear Zico.

You have to do full mode networking with qemu for this.

Start qemu with

# qemu -net nic -net tap foo.bin

command line.

You can run one host Ubuntu and two guests.

This is not a direct answer but you can figure out the rest on your own.

Best of luck.

-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] Connecting two virtual OSs in same machine

2011-02-10 Thread Hrishikesh Murali
Hi,

On Fri, Feb 11, 2011 at 9:42 AM, Zico mailz...@gmail.com wrote:

 Job: Must have to run two guests at a time. Because, two LDAP of two guests
 need to replicate. Now, If I try to get the first Guest ( hostname:
 mohib-laptop ) from second Guest ( hostname: zaman-laptop ), it is not
 getting!


Virtualbox provides Internal Networking so that guests on the same host
can connect to each other, provided they have the same network ID. Look at
http://www.virtualbox.org/manual/ch06.html#network_internal.

-- 
Thanks and Regards,
Hrishikesh Murali
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc