[Ilugc] [Final Year Project Idea] Creating a STL like library for C

2010-10-28 Thread Harish R
Hi,

I am replying like a new thread because for some reason mails are not
getting delivered to my inbox and I cannot login to play around with the
settings. I am still figuring out the problem. Anyway, lets set that aside
and thanks to all for replying.

As Sankarshan Mukhopadhyay said, there exists Glib. But it does not target
at STL like functionality directly. It deals with stacks, queues, dequeues,
singly and doubly linked lists, arrays, binary trees, n-array trees,
sequences and a few other data structures only. However, it lacks the
support for graphs, hash tables and several algorithms that exist like
searching, sorting, traversing etc. Also, Glib sounds kinda complex to me
personally and this project idea could benefit people like me as I will try
to create easily usable library functions.

As Girish suggested, STL is a C++ thing and not a C thing. I agree totally.
But in cases when you need to demo the algorithm in class as a teacher or
use these data structure operations in quick prototyping of an algorithm or
software you are developing, I think my proposed idea serves well. What say?
Thanks for the other ideas too.

Warm Regards,
Harish.R.

http://blogofharish.wordpress.com

Don't design your character as a garden where everyone can walk
Design it as the sky where everyone will aspire to reach
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Ubuntu 10.04 appearing blank screen while working

2010-10-28 Thread JAGANADH G
Dear All
My friend installed Ubuntu10.04 in his desktop .
The installation was successful .

 While working in the PC some times a cursor and black screen appears .
How to solve this issue .
PC Specification
RAM 512
Mother Board : Intel D845GVSR
Processor : P4

-- 
**
JAGANADH G
http://jaganadhg.freeflux.net/blog
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Final Year Project Idea] Creating a STL like library for C

2010-10-28 Thread Sudharshan S
On Thu, Oct 28, 2010 at 1:06 PM, Harish R  wrote:
> Hi,
> As Sankarshan Mukhopadhyay said, there exists Glib. But it does not target
> at STL like functionality directly. It deals with stacks, queues, dequeues,
> singly and doubly linked lists, arrays, binary trees, n-array trees,
> sequences and a few other data structures only. However, it lacks the
> support for graphs, hash tables and several algorithms that exist like
> searching, sorting, traversing etc. Also, Glib sounds kinda complex to me
> personally and this project idea could benefit people like me as I will try
> to create easily usable library functions.
>

Glib has been in use for a long time now and is not that difficult to
use. Coming up with something like Glib is not that easy either. Glib
has a ton of utility functions and the documentation is easy to
follow, even for stupid programmers like me.
If you feel something is missing in Glib, why not just add the missing
functionality in Glib itself? Especially since Glib has all the
low-level details abstracted for you anyway. It would also help if you
can tell us what aspect of Glib you find to be complex. If it is the
sleep inducing GObject boilerplate code that you might end up writing,
take a look at Vala. Generates C code and makes Gobject based
programming painless.

> As Girish suggested, STL is a C++ thing and not a C thing. I agree totally.
> But in cases when you need to demo the algorithm in class as a teacher or
> use these data structure operations in quick prototyping of an algorithm or
> software you are developing, I think my proposed idea serves well. What say?
> Thanks for the other ideas too.

If I were you, I'd save myself a lot of trouble by choosing a more
'high-level' language like Python or Ruby (even better, Lisp or
Haskell) for prototyping an algorithm. You can get a lot of job done
by writing less code. Its also easier to teach what the algorithm is
about with these languages as the written code is almost similar to a
pseudocode.

-- 
Sudharshan S
http://sudharsh.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Iligc-configuring XP in Vitual box VM

2010-10-28 Thread Yoganandam Goteti
On Thu, 2010-10-28 at 10:55 +0530, Hrishikesh Murali wrote:
> Hi,
> 
> On Wed, Oct 27, 2010 at 9:47 PM, Yoganandam Goteti  wrote:
> 
> > I did install guest addons and selected NAT yet the usb is not detected
> > though the devices menu shows the two connected devices but they are not
> > selectable I also check the vbox site and found I did exactly as per
> > manual yet no luck/ Any clues /pointers ?
> >
> 
> I too had the same issue, and resolved it by referring
> http://news.softpedia.com/news/How-to-Fix-VirtualBox-USB-Support-111715.shtml
> .Thanks Hrishikesh

I was able to get the usb working following your link. Now I am not sure
what is the cause but the moment I tried to configure wifi uder the
guest VBox the host got disconnected from the internet and took almost 1
hour to reconnect. Any clue? it is a issue to worry  or just a
coincidence. Also under guest my wifi  access point was not available
fully it was just partially shown the point.

Is there any limitation of such nature where the host is deprived of the
device if guest wants it ?
GY



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


Re: [Ilugc] [Final Year Project Idea] Creating a STL like library for C

2010-10-28 Thread Joe Steeve
On 10/28/2010 01:48 PM, Sudharshan S wrote:
> If you feel something is missing in Glib, why not just add the missing
> functionality in Glib itself?

+1

> can tell us what aspect of Glib you find to be complex. If it is the
> sleep inducing GObject boilerplate code that you might end up writing,
> take a look at Vala. Generates C code and makes Gobject based
> programming painless.

I would not recommend vala for adding functionality to a Glib like
library. If the OP really implements the said features for Glib, I am
sure the Glib folks will be happy to take it into their codebase.

But the fact that Glib does not have such features YET, suggests that
there might be a reason.

-- 
.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


Re: [Ilugc] Iligc-configuring XP in Vitual box VM

2010-10-28 Thread Yoganandam Goteti
On Thu, 2010-10-28 at 14:10 +0530, Yoganandam Goteti wrote:
> On Thu, 2010-10-28 at 10:55 +0530, Hrishikesh Murali wrote:
> > Hi,
> > 
> > On Wed, Oct 27, 2010 at 9:47 PM, Yoganandam Goteti  wrote:
> > 
> > > I did install guest addons and selected NAT yet the usb is not detected
> > > though the devices menu shows the two connected devices but they are not
> > > selectable I also check the vbox site and found I did exactly as per
> > > manual yet no luck/ Any clues /pointers ?
> > >
> > 
> > I too had the same issue, and resolved it by referring
> > http://news.softpedia.com/news/How-to-Fix-VirtualBox-USB-Support-111715.shtml
> > .Thanks Hrishikesh
> 
> I was able to get the usb working following your link. Now I am not sure
> what is the cause but the moment I tried to configure wifi uder the
> guest VBox the host got disconnected from the internet and took almost 1
> hour to reconnect. Any clue? it is a issue to worry  or just a
> coincidence. Also under guest my wifi  access point was not available
> fully it was just partially shown the point.
> 
> Is there any limitation of such nature where the host is deprived of the
> device if guest wants it ?
> GY
Well I am sorry I misread the documentation on Vbox as devices will be 
available on both the host and guest I am wrong I read the documentation again 
and it very clear once host receives the device the host will loose it.
would have loved to have it at both places though as I will not be able
to share the host and guest on virtual network as I have only one usb
wifi available.Am digging to find an alternate to use network function
if any one has some exposure please shre the info.


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



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


[Ilugc] [JOB] Require PHP & MySQL developer

2010-10-28 Thread Arvindh Raj
Hello,

We are currently in need of a full time PHP & MySQL developer with one or
two years experience.

Interested people please contact offlist.


Thanks & Regards
--
N. Arvindh
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Tip] What is my public IP-address?

2010-10-28 Thread Arun Khan
On Thu, Oct 28, 2010 at 10:14 AM, Tha.Suresh  wrote:

>
> More info visit http://ifconfig.me/
>

Nice :)

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


Re: [Ilugc] [Final Year Project Idea] Creating a STL like library for C

2010-10-28 Thread Sudharshan S
On Thu, Oct 28, 2010 at 3:33 PM, Joe Steeve  wrote:
> I would not recommend vala for adding functionality to a Glib like
> library. If the OP really implements the said features for Glib, I am
> sure the Glib folks will be happy to take it into their codebase.
>

Oops. I was referring to GObject/Glib programming in general.
I feel, the Vala codebase is an interesting playground for students.
Lot of opportunities to contribute.

> But the fact that Glib does not have such features YET, suggests that
> there might be a reason.
>

I guess one of the reasons is that, being a utility library, Glib need
not have the implementations of all the algorithms under the sun.
As an API user, I won't care what sort algorithm Glib uses as long as
g_list_sort returns a sorted list correctly with a decent performance
:). (g_list_sort seems to use merge sort ;) )

@OP,
All the searching, sorting, hashmaps.etc are already there in Glib.
Graphs are not that hard to implement either. Just have a GHashMap
with GList as values and voila, you have an adjacency list. IMHO,
Implementing a full typing system like GObject and building something
like Glib on top of it is just crazy, especially considering the fact
you want to do it as part of an academic project where you are
time-constrained. That said, there is nothing wrong in doing it. The
experience and the pain might be worth it ;).

-- 
Sudharshan S
http://sudharsh.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Iligc-configuring XP in Vitual box VM

2010-10-28 Thread Arun Khan
On Thu, Oct 28, 2010 at 10:55 AM, Hrishikesh Murali
 wrote:

> I too had the same issue, and resolved it by referring
> http://news.softpedia.com/news/How-to-Fix-VirtualBox-USB-Support-111715.shtml

Interesting - looks like VB now allows any user to fire up a VM.
IIRC, in earlier versions (about 18-24 months ago) the user had to be
a member of 'vboxusers' group otherwise the VM would not fire up.

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


Re: [Ilugc] [Tip] What is my public IP-address?

2010-10-28 Thread Baskar Selvaraj
What is my public IP-address?

>
> $ curl ifconfig.me
>
> More info visit http://ifconfig.me/
>
> :-)
>
>
> --
> Regards,
> Tha.Suresh
> http://thasulinux.wordpress.com
>

Nice :)

Thanks a lot for our TIP Suresh

Regards

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


[Ilugc] Problem in logging as root user.

2010-10-28 Thread Balakrishnan.V
Hi to all.

I am using Ubuntu 10.04

I cant login as a root user from terminal, if i use sudo from normal user i
got
error msg like sudo: must be setuid root

I got this problem after i executing the following command as a root user

(i.e) chmod 777 -R /. (i did this while answering a call)

i think this is the problem which i committed.

Now How can i restore the permissions?






-- 
With Regards,
V. Balakrishnan.

Kanchi Linux User Group Rocks !!!

http://kanchilug.wordpress.com

You can see my activities at

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


Re: [Ilugc] Problem in logging as root user.

2010-10-28 Thread amit sharma
On Thu, Oct 28, 2010 at 9:16 PM, Balakrishnan.V wrote:

> Hi to all.
>
> I am using Ubuntu 10.04
>
> I cant login as a root user from terminal, if i use sudo from normal user i
> got
> error msg like sudo: must be setuid root
>
> I got this problem after i executing the following command as a root user
>
> (i.e) chmod 777 -R /. (i did this while answering a call)
>
> i think this is the problem which i committed.
>
> Now How can i restore the permissions?
>
>
>
please

use the commandsudo -i

and enter the your user password.

>
>
>
>
> --
> With Regards,
> V. Balakrishnan.
>
> Kanchi Linux User Group Rocks !!!
>
> http://kanchilug.wordpress.com
>
> You can see my activities at
>
> http://gnubala.wordpress.com/
> ___
> 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] Problem in logging as root user.

2010-10-28 Thread Roshan George
On Thu, 2010-10-28 at 21:48 +0530, amit sharma wrote:
> please
> 
> use the commandsudo -i
> 
> and enter the your user password.

How would that work? He destroyed permissions on his whole filesystem.
sudo won't give him super-user because it can't.

I think your best bet is to use a LiveCD. Use the LiveCD to mount your
partitions and then restore them using methods similar to those
documented here: .

-- 
Roshan George

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


Re: [Ilugc] [Tip] What is my public IP-address?

2010-10-28 Thread Mehul Ved
On Thu, Oct 28, 2010 at 10:14 AM, Tha.Suresh  wrote:
> What is my public IP-address?
>
> $ curl ifconfig.me
>
> Short command, easy to remember.. !
>
> You need to install 'curl' package.

Made it into a shell script so I don't have to go searching for
options each time though it's mostly straightforward.
http://github.com/mehulved/ifconfig.me
Will add a simple frontend to it next week, probably using zenity.

-- 
With Regards,
Mehul Ved
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Problem in logging as root user.

2010-10-28 Thread Raja Subramanian
On Thu, Oct 28, 2010 at 10:18 PM, Roshan George  wrote:
> I think your best bet is to use a LiveCD. Use the LiveCD to mount your
> partitions and then restore them using methods similar to those
> documented here: .

Interesting article, but it ends when it's just about to get interesting.
In this case, the devil is in the details.

Would recommend the OP to backup his data and reinstall.  That's the
safest way to fix massively broken file permissions.

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


[Ilugc] [Tip] One-liner to get the current week number

2010-10-28 Thread Tha.Suresh
One-liner to get the current week number

$ date +%V


Ex:
th...@thasu-desktop ~ $ date +%V
43


-- 
Regards,
Tha.Suresh
My experiences with Linux are here,
http://thasulinux.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Re: Error in Sql

2010-10-28 Thread benedict nicholas
Dear friends,
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)


Solution:

I also got the same problem. It was because mysqld service was not running.

If root user type the following in the command prompt---
chkconfig mysqld on
service mysqld start 

> sudo is not there in fedora

sudo is there in fedora also


With regards,
Benedict J.N.

With



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


[Ilugc] Virtualbox issue

2010-10-28 Thread karthick
Hi,



I am getting an error message while installing Virtualbox in RHEL5



r...@twain ~]# yum install VirtualBox*

Loaded plugins: rhnplugin, security

Setting up Install Process

Examining VirtualBox-3.2-3.2.10_66523_rhel5-1.i386.rpm: VirtualBox-3.2-3.2.10_66

523_rhel5-1.i386

Marking VirtualBox-3.2-3.2.10_66523_rhel5-1.i386.rpm to be installed Resolving 
Dependencies

--> Running transaction check

---> Package VirtualBox-3.2.i386 0:3.2.10_66523_rhel5-1 set to be

---> updated

--> Processing Dependency: libpython2.4.so.1.0 for package:

--> VirtualBox-3.2 Finished Dependency Resolution

VirtualBox-3.2-3.2.10_66523_rhel5-1.i386 from /VirtualBox-3.2-3.2.10_66523_rhel5

-1.i386 has depsolving problems

  --> Missing Dependency: libpython2.4.so.1.0 is needed by package VirtualBox-3.

2-3.2.10_66523_rhel5-1.i386 (/VirtualBox-3.2-3.2.10_66523_rhel5-1.i386)

Error: Missing Dependency: libpython2.4.so.1.0 is needed by package VirtualBox-3

.2-3.2.10_66523_rhel5-1.i386 (/VirtualBox-3.2-3.2.10_66523_rhel5-1.i386)

 You could try using --skip-broken to work around the problem

 You could try running: package-cleanup --problems

package-cleanup --dupes

rpm -Va --nofiles --nodigest [r...@twain ~]#



Pl help me to solve this issue.



Regards,

V. Karthick



CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information. Any unauthorized review, use , disclosure or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message(S).

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


Re: [Ilugc] Iligc-configuring XP in Vitual box VM

2010-10-28 Thread Yoganandam Goteti
On Thu, 2010-10-28 at 18:36 +0530, Arun Khan wrote:
> On Thu, Oct 28, 2010 at 10:55 AM, Hrishikesh Murali
>  wrote:
> 
> > I too had the same issue, and resolved it by referring
> > http://news.softpedia.com/news/How-to-Fix-VirtualBox-USB-Support-111715.shtml
> 

Has any one tried to configure as VPN the guest and host under VBox to
share files/network function between them?
GY


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


Re: [Ilugc] Problem in logging as root user.

2010-10-28 Thread selvamani sampath
On 28 October 2010 21:16, Balakrishnan.V  wrote:
> Hi to all.
>
> I am using Ubuntu 10.04
>
> I cant login as a root user from terminal, if i use sudo from normal user i
> got
> error msg like sudo: must be setuid root
>
> I got this problem after i executing the following command as a root user
>
> (i.e) chmod 777 -R /. (i did this while answering a call)
>
> i think this is the problem which i committed.
>
> Now How can i restore the permissions?
>
>
you can try this link given in the ubuntu forums.  I think it will help you
>http://ubuntuforums.org/showthread.php?t=219767
>
>-Selvamani. S
-- 
My journey on linux

http://infobees.wordpress.com/

KanchiLUG activities

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


Re: [Ilugc] Virtualbox issue

2010-10-28 Thread JAGANADH G
On Fri, Oct 29, 2010 at 9:04 AM,  wrote:

> Hi,
>
>
>
> I am getting an error message while installing Virtualbox in RHEL5
>
>
>
> r...@twain ~]# yum install VirtualBox*
>
> Loaded plugins: rhnplugin, security
>
> Setting up Install Process
>
> Examining VirtualBox-3.2-3.2.10_66523_rhel5-1.i386.rpm:
> VirtualBox-3.2-3.2.10_66
>
> 523_rhel5-1.i386
>
> Marking VirtualBox-3.2-3.2.10_66523_rhel5-1.i386.rpm to be installed
> Resolving Dependencies
>
> --> Running transaction check
>
> ---> Package VirtualBox-3.2.i386 0:3.2.10_66523_rhel5-1 set to be
>
> ---> updated
>
> --> Processing Dependency: libpython2.4.so.1.0 for package:
>
> --> VirtualBox-3.2 Finished Dependency Resolution
>
> VirtualBox-3.2-3.2.10_66523_rhel5-1.i386 from
> /VirtualBox-3.2-3.2.10_66523_rhel5
>
> -1.i386 has depsolving problems
>
>  --> Missing Dependency: libpython2.4.so.1.0 is needed by package
> VirtualBox-3.
>
> 2-3.2.10_66523_rhel5-1.i386 (/VirtualBox-3.2-3.2.10_66523_rhel5-1.i386)
>
> Error: Missing Dependency: libpython2.4.so.1.0 is needed by package
> VirtualBox-3
>
> .2-3.2.10_66523_rhel5-1.i386 (/VirtualBox-3.2-3.2.10_66523_rhel5-1.i386)
>
>  You could try using --skip-broken to work around the problem
>
>  You could try running: package-cleanup --problems
>
>package-cleanup --dupes
>
>rpm -Va --nofiles --nodigest [r...@twain ~]#
>


I think solution is there in the error itself.

Dont sent mails with "CONFIDENTIAL" statements !

-- 
**
JAGANADH G
http://jaganadhg.freeflux.net/blog
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Problem in logging as root user.

2010-10-28 Thread Girish Venkatachalam
On Fri, Oct 29, 2010 at 9:35 AM, selvamani sampath >>
>> I got this problem after i executing the following command as a root user
>>
>> (i.e) chmod 777 -R /. (i did this while answering a call)
>>
>> i think this is the problem which i committed.
>>
>> Now How can i restore the permissions?

Normally if you do 777 / then it is very hard to get back on keel.

Such quick fixes are somewhat dangerous.

For /tmp you should give chmod 1777 .

For others particularly /home you should give user perms.

For user foo,

# chown -R foo /home/foo

and so on.

Best of luck.

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


[Ilugc] [OT] Query regarding RAM availability

2010-10-28 Thread JAGANADH G
Does anybody know PC hardware dealers selling DDR3 24GB RAM or above in
Tamilnadu

Any hint on price ??

-- 
**
JAGANADH G
http://jaganadhg.freeflux.net/blog
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc