Re: [Ilugc] Any report making tools in php for MYSQL database?

2012-04-01 Thread Mohan L
On Sun, Apr 1, 2012 at 9:33 AM, Girish Venkatachalam <
girishvenkatacha...@gmail.com> wrote:

> On Sun, Apr 1, 2012 at 9:03 AM, Ganesh Kumar  wrote:
> > Hi Guys,
> >
> > I am new to php mysql report report making. Any tools available?. I
> > basically need to have a layout setup. It can be making pdf.give any
> > clues.
> > My database table having four columns when user select date.
> > particular date, data will generated to pdf file.
> >
>

I am not PHP guy to help you. Not sure this what you want.   I am just
sharing what I seen from my friend portal. He is using wkhtmltopdf via PHP
bindings in reporting portal  to prepare pdf reports from html:

If you want to use specifically php, You may look wkhtmltopdf

wkhtmltopdf : http://code.google.com/p/wkhtmltopdf/
PHP bindings : https://github.com/mreiferson/php-wkhtmltox

There is also some pure php modules available to convert html to pdf.

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


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Akilan R
On Sun, Apr 1, 2012 at 11:33 AM, Natarajan V  wrote:

> I have a BSNL BB connection connected to a PC and a Laptop through an

[snip]

Set MTU to 1452 and check if the sites load.


-- 
அகிலன் (Akilan R)
[ blog.akilan.in ]
*I should have no use for a paradise in which I should be deprived of the
right to prefer hell.*
  --Jean Rostand
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Pen input device for Linux

2012-04-01 Thread Gautam
Currently Ubuntu has the best support for Wacom pen-tablets . Others such
as iBall may work , but there would be issues . For example I was helping a
person with a iBall pentablet , It worked out of the box , but had some
issues with movement , So had to do some tweaking to get things working
smoothly .
So think before you buy.

On 1 April 2012 09:21, prasannatsmkumar  wrote:

> I am in need of a device which will show what I write on a pad in computer
> screen - this will help while I read or draw some thing and want that in
> digital form. Is there any such device that works with Linux? What is the
> average cost of such device? It will be good if I could get something for
> about 500Rs.
> ___
> 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] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread ம. ஸ்ரீ ராமதாஸ்
On 04/01/2012 11:33 AM, Natarajan V wrote:
> Is there a
> way to confirm this? If that is the problem, is there a way to
> circumvent the same?
set google nameservers (8.8.8.8, 8.8.4.4) or some other credible in 
/etc/resolv.conf


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


Re: [Ilugc] why embedded Linux not having swap partition.

2012-04-01 Thread Bharathi Subramanian
On Wed, Mar 28, 2012 at 5:13 PM, Arun Venkataswamy  wrote:

Arun pointed out the main reason for not including the Swap in
Embedded device. I will try to add some more info

>   - From a design perspective, the design team will know how much RAM is
>   required for a purpose built embedded device. This amount of RAM would have
>   been provisioned physically.

Embedded System is for a specific set of task and designer can roughly
estimate the memory utilization. So most of the time, system will be
having enough RAM to do the core functions. If not enough RAM,
unwanted application will be kicked-out of the RAM. Read about Android
Low Memory Killer.

>   - For a general purpose device, we can safely assume permanent storage
>   would typically be on board flash or memory cards. Any flash based
>   permanent storage has a fixed `life` or write cycles after which it is
>   likely to fail. Continuous use of swap file will reduce the effective life
>   of the device.

Read http://en.wikipedia.org/wiki/Wear_leveling

Bye :)
-- 
Bharathi Subramanian
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Pen input device for Linux

2012-04-01 Thread prasannatsmkumar
On Sun, Apr 1, 2012 at 1:37 PM, Gautam  wrote:

> Currently Ubuntu has the best support for Wacom pen-tablets . Others such
> as iBall may work , but there would be issues . For example I was helping a
> person with a iBall pentablet , It worked out of the box , but had some
> issues with movement , So had to do some tweaking to get things working
> smoothly .
> So think before you buy.
>
> On 1 April 2012 09:21, prasannatsmkumar 
> wrote:
>
> > I am in need of a device which will show what I write on a pad in
> computer
> > screen - this will help while I read or draw some thing and want that in
> > digital form. Is there any such device that works with Linux? What is the
> > average cost of such device? It will be good if I could get something for
> > about 500Rs.
> > ___
> > ILUGC Mailing List:
> > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> >
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>


Thanks for the information. Where can I buy one in chennai? What is the
cost of new device? flipkart does not have this listed. Is it possible to
get online? I would like to buy wacom bamboo.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Pen input device for Linux

2012-04-01 Thread Manokaran K
On Sun, Apr 1, 2012 at 5:03 PM, prasannatsmkumar  wrote:

> Thanks for the information. Where can I buy one in chennai? What is the
> cost of new device? flipkart does not have this listed. Is it possible to
> get online? I would like to buy wacom bamboo.
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>

Wacom Bamboo tablets are available in Ritchie street among many places
around Chennai. IIRC the smallest model costs between 3-4K.

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


[Ilugc] Sqlite database tutorial part I

2012-04-01 Thread Girish Venkatachalam
This tutorial is a small introduction to databases, SQL language and
the simplest
way to get started on using an embedded small database for uses which
are common.

To begin with my understanding of SQL and databases has been very sketchy
 and incongruous for a long time.

In recent years however things changed. Today I can claim that I put SQL to
 good use.

To put things in perspective, other than crazy fellows like my ilk
most of the world
lives and moves on databases.

All your ticketing, bank transactions blah blah are done using DB.

So learning SQL is something that a lot of average programmers and
grubby folks do
grudgingly.

But properly applied, sqlite and SQL are both very pleasant.

Okay let us start from the start.

I will split this content into two mails. In this mail I will start with sqlite.

What is sqlite?

It is a very small database that supports the SQL standard or is
compliant to a large degree.

There are really small key value pair(table) databases like tdb in
samba, Berkeley DB, gdm etc.

But no SQL.

SQL = Structured Query Language

It is a method to extract data which is basically columns from a set of rows.

Okay, let us look at a trivial example.

Say you have a very simple data set(table).

A table is nothing but a name value pair.

Each row in a database is a separate data point or name value pair .

Usually it is one name and one value or multiple values.

Does not matter much. But each row is always the smallest unit of
independent data.

Let us look at it this way.

I want to store and manipulate the marks of students in a class.

There are 5 subjects, phy, che, math, Tamil and English.

Okay here you go:

Rahim 20 30 40 50 100

Syam 20 40 40 50 100

Priya 30 50 100 60 80

Okay you have 3 students with their credentials.

Now Each of them is represented in an SQL DB like this.

$ sqlite3 marks.db
  > create table marks (id integer primary key, name string, phy
integer, che integer, mat integer,
 eng integer, tamil integer);
> insert into marks values(NULL, "Rahim", 20, 30, 40, 50, 100);
> insert into marks values(NULL, "Syam", 20, 40, 40, 50, 100);
> insert into marks values(NULL, "Priya", 30, 50, 100, 60, 80);
> quit;

There you go.

You now managed to store them in a nice SQL formatted sqlite DB(table).

Check:

$ echo "select * from marks;" | sqlite3 marks.db

You will see values.

Right. You get it so far?

Now I have only talked about rows.

Each dataset is stored in a row, but the table schema or type is specified by
 how many columns each datapoint will contain.

In this case, the columns are name and marks in each subject.

Now you can look for them.

$ echo "select phy from marks;" | sqlite3 marks.db

Or

$ echo "select phy,name from marks;" | sqlite3 marks.db

Good.

You are happy now. Aren't you?

Usually people are discombobulated by various terms that they absolutely
 don't need to know when dealing about DB and SQL.

User ID, password, TCP, port and so on.

Mysql, postgres ...eeek.

Instead sqlite is a file db, no username, password nonsense.

Just plain sql. Just copy the stupid file and you get the DB.

Backing up is simple. It supports a huge dataset.

All the common software you can imagine that apparently have nothing to do  with
 databases use SQLite.

It is called an embeddable DB and it sure it.

But I don't care. It gets my job done, gives me the convenience and superb
 power of SQL.

We will see that tomorrow. Okay?

-Girish

-- 
G3 Tech
Networking appliance company
web: http://g3tech.in  mail: gir...@g3tech.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] shell script to search for a file

2012-04-01 Thread Bharath Kumar
Hi ILUGC members,

Thanks for your valuable suggestion. I have modified the code in such a way 
that if I search for an open office file that has 'spaces' in the name, it will 
output the kind of file. 

Essence of the code : 

I will create a file in the name that was converted from space format to 
underscore format. 
I will open the document file and save it in the format as per the extension. 
This is only for open document file. 

Code Snippet

#!/bin/bash
echo -e "Input the file that you want to search: c"
read input 
find ~ -name ${input}
echo -e "Input the file that you want: c"
read input1
export input1=`echo $input1 | tr ' ' _ `
touch ${input1}
ooffice ${input1}
file ${input1}

I would like to know how to write 'if' condition for image, audio, video files 
etc. 

Thanks and Regards,
Bharathkumar A.V. 

On Sun, 25 Mar 2012 22:02:57 +0530  wrote
>Hi ILUGC members,
>

>
I have written a shell script to find out what type of file is the file I am 
searching for. If the resultant file name doesnt have any gap (like 
/path/name/Bharath_file.txt) I get the result correctly. But if the file has a 
gap (like /path/name/Bharath Kumar Letter.pdf) I get simply "ERROR". Is there 
any bug ?? Please help me resolve the bug please ??
>

>
This is my code snippet : 
>

>
#!/bin/bash
>
echo -e "Input the file that you want to search: c"
>
read input 
>
find ~ -name ${input}
>
echo -e "Input the file that you want: c" // Comments : I will copy the file 
with the full name that I want
>
   //to find out what type of file it 
is 
>
read input1
>
file ${input1}| cut -d: -f 2
>

>

>
Thanks,
>
Bharathkumar A.V. 
>

FollowRediff Deal ho jaye!to get exciting offers in your city everyday.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] shell script to search for a file

2012-04-01 Thread Girish Venkatachalam
On Sun, Apr 1, 2012 at 7:22 PM, Bharath Kumar
 wrote:
> Hi ILUGC members,
>
> Thanks for your valuable suggestion. I have modified the code in such a way 
> that if I search for an open office file that has 'spaces' in the name, it 
> will output the kind of file.
>
> Essence of the code :
>
> I will create a file in the name that was converted from space format to 
> underscore format.
> I will open the document file and save it in the format as per the extension.
> This is only for open document file.
>
> Code Snippet
>
> #!/bin/bash
> echo -e "Input the file that you want to search: c"
> read input
> find ~ -name ${input}
> echo -e "Input the file that you want: c"
> read input1
> export input1=`echo $input1 | tr ' ' _ `
> touch ${input1}
> ooffice ${input1}
> file ${input1}
>
> I would like to know how to write 'if' condition for image, audio, video 
> files etc.
>

Okay.

You can escape space with backslash.

Now to recognize image,


$ identify

To recognize audio and video

$ mplayer -frames 0 -identify foo.[avi|mp3] | grep Audio

This is much better than any other easier tool.

identify(1) is part of ImageMagick.

UNIX is an ocean. Be patient. I have been learning, learning and learning.

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


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Natarajan V
2012/4/1 "ம. ஸ்ரீ ராமதாஸ்" :
> On 04/01/2012 11:33 AM, Natarajan V wrote:
>> Is there a
>> way to confirm this? If that is the problem, is there a way to
>> circumvent the same?
> set google nameservers (8.8.8.8, 8.8.4.4) or some other credible in
> /etc/resolv.conf
>

Thanks. I don't have issues with name servers. Infact, I have Google
nameservers added. Routing seems to be troublesome. Infact some sites
without any names, but just IP addresses (some BSNL Directory lookup
sites) also dont work.


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


[Ilugc] linux mint 12 software

2012-04-01 Thread snegan
iam using linux mint12 i have connected bsnl cdma modem after long battle
al ready the device connected but the device disconnect automatic i have
configured open opendns   it is connected successfully i need above
software solution for Linuxs mint 12


   1. cdma modem monitor to watch signal strength
   2. video jointer converter dvd cd ripper software with good support

how to check Linux mint 12 all hardware have driver

how to convert wvdial connection with out terminal

thanks to srini,welkin,linux baskar




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


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Girish Venkatachalam
Natarajan,

In my rich networking experience, in fact I have never solved any problems
 as networking problems in my whole life I have never come across
 something like this.

However there are networking troubleshooting boys and certain OpenBSD devs like
 Henning Brauer who play with BGP and SMTP internals.

I am not that caliber but then I am also not a sysadmin of a huge
network to troubleshoot
 a lot.

Still from a programming and troubleshooting angle I do know something
about where what
 could go wrong.

Your problem is bizarre.

It has nothing to do with routing is what I feel.

Probably some firewall, browser or some such thing.

If ping does not work, then your MODEM could be broken, your
switch/hub could be worn out,
 your computer's NIC, it could be anything.

Best of luck.

-Girish

On Sun, Apr 1, 2012 at 7:54 PM, Natarajan V  wrote:
> 2012/4/1 "ம. ஸ்ரீ ராமதாஸ்" :
>> On 04/01/2012 11:33 AM, Natarajan V wrote:
>>> Is there a
>>> way to confirm this? If that is the problem, is there a way to
>>> circumvent the same?
>> set google nameservers (8.8.8.8, 8.8.4.4) or some other credible in
>> /etc/resolv.conf
>>
>
> Thanks. I don't have issues with name servers. Infact, I have Google
> nameservers added. Routing seems to be troublesome. Infact some sites
> without any names, but just IP addresses (some BSNL Directory lookup
> sites) also dont work.
>
>
> with regards,
> Natarajan
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
G3 Tech
Networking appliance company
web: http://g3tech.in  mail: gir...@g3tech.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Natarajan V
On Sun, Apr 1, 2012 at 12:48 PM, Akilan R  wrote:
> On Sun, Apr 1, 2012 at 11:33 AM, Natarajan V  wrote:
>
>> I have a BSNL BB connection connected to a PC and a Laptop through an
>
> [snip]
>
> Set MTU to 1452 and check if the sites load.
>

Great! That worked. Now, let me try to find out how that happened :-)
Thanks a lot!


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


Re: [Ilugc] linux mint 12 software

2012-04-01 Thread Girish Venkatachalam
On Sun, Apr 1, 2012 at 8:00 PM, snegan  wrote:
> iam using linux mint12 i have connected bsnl cdma modem after long battle
> al ready the device connected but the device disconnect automatic i have
> configured open opendns   it is connected successfully i need above
> software solution for Linuxs mint 12
>
>
>   1. cdma modem monitor to watch signal strength
>   2. video jointer converter dvd cd ripper software with good support
>
> how to check Linux mint 12 all hardware have driver
>
> how to convert wvdial connection with out terminal
>
> thanks to srini,welkin,linux baskar
>

Snegan,

Are you talkin in some alien tongue eh?

It is ludicrous language. Do something or you will be a
 laughing stock although it might not directly affect your career.

Alright now for your queries.

To monitor signal strength, you could use iwconfig or something.
 I don't use Linux.

Okay as to video combining and DVD ripper no better tool
 than mencoder.

Usually English skills are a reflection of one's IQ, most think
 that vocab is directly related as it relates to memory and
 comprehension.

That is largely true although IQ is not important for life. Wisdom is.

And maturity.

If you are not very attentive to detail, your English grammar will
 not be good and you can't do much in UNIX either.

Sorry for being negative, only a friendly remark connecting the dots.

Your battle is good, victory even better.

CDMA is a very good standard.

Even with poor signal strength, the spread spectrum algorithms will
 give you excellent throughput.

Thanks to Andrew Viterbi.

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


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Girish Venkatachalam
On Sun, Apr 1, 2012 at 8:01 PM, Natarajan V  wrote:
> On Sun, Apr 1, 2012 at 12:48 PM, Akilan R  wrote:
>> On Sun, Apr 1, 2012 at 11:33 AM, Natarajan V  wrote:
>> Set MTU to 1452 and check if the sites load.
>>
>
> Great! That worked. Now, let me try to find out how that happened :-)
> Thanks a lot!
>
>

I see. Such pointed tech answers are rare in LUG.

This is wonderful. I am happy for both of you.

However this is bad advertisement for Linux.

How can something so silly bite you?

-Girish


-- 
G3 Tech
Networking appliance company
web: http://g3tech.in  mail: gir...@g3tech.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Natarajan V
On Sun, Apr 1, 2012 at 8:08 PM, Girish Venkatachalam
 wrote:
> On Sun, Apr 1, 2012 at 8:01 PM, Natarajan V  wrote:
>> On Sun, Apr 1, 2012 at 12:48 PM, Akilan R  wrote:
>>> On Sun, Apr 1, 2012 at 11:33 AM, Natarajan V  wrote:
>>> Set MTU to 1452 and check if the sites load.
>>>
>>
>> Great! That worked. Now, let me try to find out how that happened :-)
>> Thanks a lot!

Well, this documentation seems to be concise enough:
http://www.dslreports.com/faq/695

The following is what *think* might have happened.
MTU is largest size of each packet. The default value is 1500. But
seems like this size is too big for some networks. When I observed
more closely, some sites just didn't load at all. The othersites (such
as thehindu & slashdot), start to load, and they keep waiting for
ever. The site has been waiting indefinitely for some content to be
loaded from other domains whose routes accept smaller than 1500.
That's why some sites stopped loading midway, while others never
loaded at all.


>
> I see. Such pointed tech answers are rare in LUG.

Don't you remember that iLugC is one of those rare LUGs where you do
get such answers :-)

> However this is bad advertisement for Linux.

No it isn't. It's just a good documentation for others who might also
face a similar problem.

> How can something so silly bite you?

:(
1. Am not a network-admin, but more of an App Developer
2. I couldn't relate the symptoms with the cause.


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


Re: [Ilugc] linux mint 12 software

2012-04-01 Thread prasannatsmkumar
On Sun, Apr 1, 2012 at 8:06 PM, Girish Venkatachalam <
girishvenkatacha...@gmail.com> wrote:

> On Sun, Apr 1, 2012 at 8:00 PM, snegan  wrote:
> > iam using linux mint12 i have connected bsnl cdma modem after long battle
> > al ready the device connected but the device disconnect automatic i have
> > configured open opendns   it is connected successfully i need above
> > software solution for Linuxs mint 12
> >
> >
> >   1. cdma modem monitor to watch signal strength
> >   2. video jointer converter dvd cd ripper software with good support
> >
> > how to check Linux mint 12 all hardware have driver
> >
> > how to convert wvdial connection with out terminal
> >
> > thanks to srini,welkin,linux baskar
> >
>
> Snegan,
>
> Are you talkin in some alien tongue eh?
>
> It is ludicrous language. Do something or you will be a
>  laughing stock although it might not directly affect your career.
>
> Alright now for your queries.
>
> To monitor signal strength, you could use iwconfig or something.
>  I don't use Linux.
>
> Okay as to video combining and DVD ripper no better tool
>  than mencoder.
>
> Usually English skills are a reflection of one's IQ, most think
>  that vocab is directly related as it relates to memory and
>  comprehension.
>
> That is largely true although IQ is not important for life. Wisdom is.
>
> And maturity.
>
> If you are not very attentive to detail, your English grammar will
>  not be good and you can't do much in UNIX either.
>
> Sorry for being negative, only a friendly remark connecting the dots.
>
> Your battle is good, victory even better.
>
> CDMA is a very good standard.
>
> Even with poor signal strength, the spread spectrum algorithms will
>  give you excellent throughput.
>
> Thanks to Andrew Viterbi.
>
> -Girish
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>


Did you try using network manager? If your signal strength drops (below
threshold) in between there may be disconnection problem.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Raja Subramanian
On Sun, Apr 1, 2012 at 8:21 PM, Natarajan V  wrote:
> The following is what *think* might have happened.
> MTU is largest size of each packet. The default value is 1500. But
> seems like this size is too big for some networks.

Actually the issue is more like this:

The link between your DSL modem and DSLAM (other end ISP equipment
your DSL modem connects to) uses encapsulated PPP - it's either PPP over
Ethernet or ATM.

Since 1500 is the MTU on Ethernet networks, when you add PPPoA/E
the packet size increases due to encapsulation overhead.

PPPoE add 8 bytes overhead. So the MTU should be 1492 bytes to
ensure that even after adding encapsulation overhead you are still
at the 1500 byte MTU limit.

* I don't use BSNL to verify, so please let us know if MTU 1492 works for you.

Note that the same issue is present when you use VPN tunnels - you
need to use a lower MTU on the tunnel to accommodate VPN overhead.

There are a couple of ways around manual MTU setting:

Routers can fragment and reassemble packets so that they can pass through
packets with smaller MTU sizes, but this has a lot of overhead. In fact it has
so much overhead that IPv6 does not support fragmentation/reassembly.
It simply drops the packet, sends a "packet to big" ICMP error condition.
This forces sender/receiver to perform path MTU discovery.


> When I observed
> more closely, some sites just didn't load at all.
> The othersites (such
> as thehindu & slashdot), start to load, and they keep waiting for
> ever. The site has been waiting indefinitely for some content to be
> loaded from other domains whose routes accept smaller than 1500.
> That's why some sites stopped loading midway, while others never
> loaded at all.

Sites which load are successfully able to perform path MTU discovery
so they automatically discover the lower MTU on your DSL modem.

To be certain use "tracepath" which is similar to traceroute but reports
the path MTU at each hop. It will be great to see the tracepath output
for your various websites.

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


[Ilugc] Fast and Lightweight Desktop Recorder in Fedora 16

2012-04-01 Thread Prasanna Venkadesh
Dear folks,

I was in need of a Lightweight and a fast rendering Desktop recording
utility to use in fedora and i came across a Command line utility named
BYZANZ, released under GPLV3 license and hosted under gnome git repository.

This can be directly downloaded as fedora package and installed in the
system.

To install it in Fedora 16:
su -
yum install byzanz

To use it:
byzanz-record --duration=60 -c -a testing.webm

The above command will record the desktop for 60 Seconds and traces the
cursor wherever it moves with audio enabled and renders it in webm format.

Written a blog post on the same here:-
http://prasopensource.wordpress.com/2012/04/01/a-lightweight-fast-desktop-recorder-for-fedora/

-- 
Regards,
Prasanna Venkadesh

PuduvaiLUG Mailing List:
http://puduvailug.wordpress.com/mailing-list-guidelines/
FOSS Jobs all over India: http://fossjobs.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] SQL tutorial part II

2012-04-01 Thread Girish Venkatachalam
We see SQL now.

We saw a bit yesterday.

By the way, my projects were featured in LinuxToday.

http://www.linuxtoday.com/infrastructure/2011120900239RVOOBD

I have also updated the latest images now.

http://liveusb-openbsd.sf.net

http://livecd-openbsd.sf.net

It started as a fun project 3 years ago, hopefully it will get
somewhere with time.

Now for SQL.

SQL is structured query language.

You can query a database/table in various ways.

It is like saying:

What all questions can you ask from an answer?

Right?

So if you have data organized in multiple columns and rows, you can
 operate on the matrix in very many ways.

SQL allows you all the flexibility you need.

Really cool.

Columns are sorted with the first argument to the select command.

Rows are selected as the last argument.

You can say.

sqlite> select id from marks where name = "rahim";

Or

sqlite> select phy from marks where distinct phy;

The great thing about SQL is that you can order the results, automatic sorting,
maximum, minimum and average computation comes with batteries.

Like python. ;)

sqlite> select max(phy) from marks;

It is amazing.

Now I did not say why we specify NULL as the first argument when we insert?

It is an auto increment primary key ID value.

Very good to have on all tables you create.

The table is indexed that way and stored internally to do quick searches against
 this field.

As I said, every row/record/data set is a key value pair.

And in our case as is true in most , the key is the id and the entire row is
 the set of values.

We can also have multiple keys, called tertiary and secondary keys.

Which can index faster and perform searches for us. You can also join
tables but
 I normally don't do it as it helps us combine multiple SQL tables.

Now let us talk about database.

A database contains multiple tables.

And you can also have any number of databases.

But let us not complicate.

Any fool can complicate things. Let us simplify.

SQL helps us do complex arithmetic on data without you having to write a lot of
 buggy unpredictable code.

In my product SpamCheetah I use SQL everywhere I want to retrieve user
stats like

1) How many attachments were totally received?

2) How many mails from who to who?

3) How many rejections were due to SPF mismatch?

And any arbitrary question user can come up with.

Your creativity alone is the limit.

How?

Using SQL and sqlite.

But of course the backend is build using CGI, Perl and C code.

And UNIX domain sockets.

You can build a web form to do a backend SQL query and return to the user.

This will look like magic.

If you have a website and do this, people will think you are a mini google. :)

Okay that is taking it a bit far.

-Girish
-- 
G3 Tech
Networking appliance company
web: http://g3tech.in  mail: gir...@g3tech.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Mohan Sundaram
On Sun, Apr 1, 2012 at 11:19 PM, Raja Subramanian
 wrote:
> On Sun, Apr 1, 2012 at 8:21 PM, Natarajan V  wrote:
>> The following is what *think* might have happened.
>> MTU is largest size of each packet. The default value is 1500. But
>> seems like this size is too big for some networks.
> Sites which load are successfully able to perform path MTU discovery
> so they automatically discover the lower MTU on your DSL modem.
>
> To be certain use "tracepath" which is similar to traceroute but reports
> the path MTU at each hop. It will be great to see the tracepath output
> for your various websites.

This has been an issue for a long time now. Many sites do not open as
packets get dropped when encapsulation happens. It is seen more often
when you have control connections getting dropped. PPP control
connections is one such case.

I've also noticed this more often in sites that are served out of
large web farms/ CDNs which have some kind of indirection/ reverse
proxy. LinkedIn is a standing example.

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


Re: [Ilugc] [OT?] Many sites not opening - BSNL BB

2012-04-01 Thread Mohan Sundaram
On Mon, Apr 2, 2012 at 7:05 AM, Mohan Sundaram  wrote:
> This has been an issue for a long time now. Many sites do not open as
> packets get dropped when encapsulation happens. It is seen more often
> when you have control connections getting dropped. PPP control
> connections is one such case.
>
> I've also noticed this more often in sites that are served out of
> large web farms/ CDNs which have some kind of indirection/ reverse
> proxy. LinkedIn is a standing example.

Apologies for replying to my own post. To get rid of this problem
across networks that I move in and out of, I've set my ethernet MTU to
1300 ( a safe number) to account for a few encapsulated hops.

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


[Ilugc] Julia, I Love You

2012-04-01 Thread Shrinivasan T
Julia is a new language for scientific computing that is winning
praise from a slew of very smart people, including Harlan Harris,
Chris Fonnesbeck, Douglas Bates, Vince Buffalo and Shane Conway. As a
language, it has lofty design goals, which, if attained, will make it
noticeably superior to Matlab, R and Python for scientific
programming. In the core development team’s own words:

We want a language that’s open source, with a liberal license. We
want the speed of C with the dynamism of Ruby. We want a language
that’s homoiconic, with true macros like Lisp, but with obvious,
familiar mathematical notation like Matlab. We want something as
usable for general programming as Python, as easy for statistics as R,
as natural for string processing as Perl, as powerful for linear
algebra as Matlab, as good at gluing programs together as the shell.
Something that is dirt simple to learn, yet keeps the most serious
hackers happy. We want it interactive and we want it compiled.

Read more at: http://www.r-bloggers.com/julia-i-love-you/

http://julialang.org/


-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] j (Was: Julia, I Love You)

2012-04-01 Thread Kingsley G. Morse Jr.
I like "j".

It's open source, good with arrays, elegant, and so
concise that it can improve programmer
productivity about 10x.

For example, you can write a really small function
to calculate the average of a list of numbers:

  $ avg=: +/ % #

Run it with

  $ avg 1 2 3 4
2.5

It's like apl with a normal keyboard.

http://en.wikipedia.org/wiki/J_%28programming_language%29

Thanks,
Kingsley


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


Re: [Ilugc] Julia, I Love You

2012-04-01 Thread Girish Venkatachalam
What crappy subject?

I thought it was a virus. ;)

-Girish

On Mon, Apr 2, 2012 at 10:16 AM, Shrinivasan T  wrote:
> Julia is a new language for scientific computing that is winning
> praise from a slew of very smart people, including Harlan Harris,
> Chris Fonnesbeck, Douglas Bates, Vince Buffalo and Shane Conway. As a
> language, it has lofty design goals, which, if attained, will make it
> noticeably superior to Matlab, R and Python for scientific
> programming. In the core development team’s own words:
>
>    We want a language that’s open source, with a liberal license. We
> want the speed of C with the dynamism of Ruby. We want a language
> that’s homoiconic, with true macros like Lisp, but with obvious,
> familiar mathematical notation like Matlab. We want something as
> usable for general programming as Python, as easy for statistics as R,
> as natural for string processing as Perl, as powerful for linear
> algebra as Matlab, as good at gluing programs together as the shell.
> Something that is dirt simple to learn, yet keeps the most serious
> hackers happy. We want it interactive and we want it compiled.
>
> Read more at: http://www.r-bloggers.com/julia-i-love-you/
>
> http://julialang.org/
>
>
> --
> Regards,
> T.Shrinivasan
>
>
> My Life with GNU/Linux : http://goinggnu.wordpress.com
> Free/Open Source Jobs : http://fossjobs.in
>
> Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
G3 Tech
Networking appliance company
web: http://g3tech.in  mail: gir...@g3tech.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Julia, I Love You

2012-04-01 Thread Yogesh Girikumar
On 2 April 2012 11:19, Girish Venkatachalam
wrote:

> What crappy subject?
>
> I thought it was a virus. ;)
>

I was going to spam it ! :) Another programming language.. *sigh*

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


Re: [Ilugc] Julia, I Love You

2012-04-01 Thread Warren Howard
On 02/04/12 11:26 AM, Yogesh Girikumar wrote:
> On 2 April 2012 11:19, Girish Venkatachalam
> wrote:
>
>> What crappy subject?
>>
>> I thought it was a virus. ;)
>>
> I was going to spam it ! :) Another programming language.. *sigh*
>
>
Just 24 hours earlier you could have written the whole thing off as an 
April Fools joke...
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] [commercial] Job openings

2012-04-01 Thread Suresh Kumar
All,

we have the following openings in our company (www.carc.co.in).

If you are interested please contact me offline.

thanks
suresh.


1) Platform Developer:

Linux Device driver dev, Kernel development, UBOOT, Kernel porting, BSP dev
, Board bring up activities

3-10 years exp
location : chennai

2)
FPGA Design Engineer:
System design as well as RTL coding,FPGA design & Test
exp(Xlinux,altera,verilog,)
exp: 8-10years

3)
hardware digital design engineer

processor knowledge (ARM9/11, MIPS, etC)hardware design, DDR,I2C,SPI,,
schematic design,fpga interface,SRIO,signal integrity
exp : 4-7 years
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Julia, I Love You

2012-04-01 Thread Shrinivasan T
>>
>>> What crappy subject?
>>>
>>> I thought it was a virus. ;)
>>>
>> I was going to spam it ! :) Another programming language.. *sigh*

Just wondered to see the benchmark chart here.

http://julialang.org/

It may be useful when high performance is the requirement.



-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Julia, I Love You

2012-04-01 Thread Arun Venkataswamy
On Mon, Apr 2, 2012 at 11:49 AM, Shrinivasan T wrote:

> Just wondered to see the benchmark chart here.
> http://julialang.org/
>
>
It's nice.
Thanks for the link.

On a side note, never knew JavaScript was so incredible in performance!

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


Re: [Ilugc] Julia, I Love You

2012-04-01 Thread Arun Venkataswamy
On Mon, Apr 2, 2012 at 11:49 AM, Shrinivasan T wrote:

> http://julialang.org/
>  It may be useful when high performance is the requirement.
>
>
Not just performance, it is also damn good in `readable` code

The subtle connection of this sample code  in their page to their namesake
`Julia`(sets) is super cool :)
Julia sets are curves/point sets in fractal planes (planes with fractal
dimensions - how cool is a 2.46 dimension - A human mind can only interpret
integer dimensions, this is 1D, 2D and 3D spaces) which satisfies a
limiting function.
That limiting function is:

function mandel(z)
c = z
maxiter = 80
for n = 1:maxiter
if abs(z) > 2
return n-1
end
z = z^2 + c
end
return maxiter
end

The readability of this code is incredible. Considering the variables `c`
and `z` are complex numbers with real and imaginary coefficients.

Regards,
Arun


-- 

Arun Venkataswamy

"கற்றது கைமண் அளவு, கல்லாதது உலகளவு" - ஔவையார்
Known is a drop, Unknown is an ocean

A mash up I made from NASA's APOD website...
Want to see some wonders of our universe?
http://apodweekly.com and a chrome app
here
.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc