Posts

Showing posts from April, 2008

my new theme on Fedora 8 , : awesome !!

Image
here is a screenshot of my Fedora 8 desktop with the new theme , it is just great ...... i am lovin it !!

worries with the main logic of endswith !

reference : http://satisheerpini.blogspot.com/2008/04/endswith-function-in-c.html i have been having enough problems getting the main logic of the endswith function right, .... the code for the main loop in the program which does the string matching is as follows : ____________________________________________________________________________________ for(i=0;i dir_recd_len;i++){ if(i<(dir_recd_len-comp_str_len)) continue ; else{ /* * the first error lay here , i forgot to give the * brackets at (85,19) and (85,45), that gave negative values * during iterations , which was disastrous */ if(argv[2][i-(dir_recd_len-comp_str_len)]==dir_recd->d_name[i]){ flag=1; } else{ flag=0; /*

exams time again !!

to say the least , the next two weeks is going to be the most boring time of my life, ... it is sem end exams coming up , so have to do some serious studying !!! miss u guys !! :-( .........

2.6.25 up and running !!!

well i have compiled the latest kernel (2.6.25) , without any problems on Fedora 8. ... it appears to e a notch faster than the previous stable release, ....... but i have realized one thing, on Fedora, just compiling and installing the kernel image also automatically generates the 'initrd image, . While it does not on other distros, most of which i have used !!!

endsWith() function in C

well this function already exists in Java , so i just wanted to write a similar thing in C , it was pretty simple work , the source code can be downloaded from , http://filekeeper.org/download/eerpini/endswith-1.0.tar.gz and a lot of things are yet to be added , which can be found in the TO-DO file .

ubuntu root login

by default ubuntu does not come with the privileges to login as root in GDM , ... here is what can be done , there are two steps , first to enable root login and the second to know the root password : 1) go to the following in the panel menu: System--> Administration--> Login Window There in the Security tab , check the option , Allow local System Administratotr Login . 2) go to the following in the panel menu : System--> Administration--> User and Groups then select root, and click on Properties , then select Generate Random Password and note down the password displayed in the Password set to field. This is the required root password , change it if u want to from the terminal . Now logout and login back as the root user . Logging in as the root user provides a lot of functionality, but it may get very messy at t

Helper Functions Library in C

A small project has been planned at the LUG@VITU , it consists of coding a simple C library having helper functions which are not available in the standard C library .More details about the project and how to contribute to it can be found here : http://220.225.214.101/node/115

kernel 2.6.24.4 up and running .

i had absolutely nor problems with compiling the latest kernel and installing it on my laptop running Ubuntu 7.10 . The only cliche was that when i copied the config file from my installed kernel for the compilation , my sound drivers were not enabled by default , so had to check them out manually, then i just used the make-kpkg provided with ubuntu , to make the kernel headers and image debian files , which i installed and then booted. The only thing left to be configure is the WI-FI card, ipw3945 card.

mplayer resolution problem : 2nd method .

i have already talked about both the problem and the first solution , which can set it right when used it from the command prompt , but here is another method if u are opening mplayer from gnome , ... click on the video to be opened and select ' open with other application ' , there select ' use custom command ' , then enter ' mplayer -zoom 200 ' , this will open mplayer properly , the next time u need not enter the whole thing, ....... selecting only mplayer also works, because mplayer automatically generates an alias withing the filesystem . But there is a problem , now suppose if u plug in a removable media , u will have to enter the whole command with the zoom option again , because it is a different filesystem . I am not yet confirmed on this point , have to do a little more testing . But i have not encountered the problem on the same machine when i compiled and installed MPlayer-1.0rc2 . Have to test the whole thing a litlle more to confirm the bugs .

mplayer resolution problem

i was facing this problem when installed MPlayer-1.0rc1 on ubuntu 7.10, the problem was that the video would come up only in the center of the screen even in the full screen mode ,i had installed the player from source . Now there are two solutions for this, the first one works perfectly , but the second one is a little problematic .They are : 1. Create an alias to the mplayer command and place it in the bash configuration file, so the line to be placed in the file is: alias mplayer='mplayer -zoom 200' and place this in the file ~/.bashrc . This works fine if u are running mplayer from the command line , i will post the next method a little later .....

A series on kernel configuration and compilation.

Here is a series of posts on the very basics of how one can configure a kernel and then compile it and install it. If anything appears to be wrong or something more has to be added please feel free to add or comment .... http://220.225.214.101/forum/59

retrieving deleted files from ext3 partitions : ext3grep

ext3grep seems to be one awesome of a creation . It was a result of, what drives most work in this world, ' a personal itch ' . The description and details given by the creator Carlo Wood are too great for me to provide a new definition over here , so take a look at the HOWTO here, http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html , the page has a really good explanation of how ext3 works and how actually ext3grep retrieves the files . You can have a look at the various releases of the utility //code.google.com/p/ext3grep/downloads/list and one can download the latest release from http://ext3grep.googlecode.com/files/ext3grep-0.5.0.tar.gz i bet it is one thing every linux user should have at hand , because as Carlo says , it happens to everyone sooner or later . The utility still need s a lot of testing and improving i guess, so joining the mailing lists would be a great idea .

Saturday Roundup - LUG

The first planned saturday round-up at the LUG , VITU , took place yesterday in the evening . It was a pretty private one , but the discussions that went on were great . Lot of plans were proposed for improving the website and for involving more people . A lot of techincal and interesting discussions also went on . A review on the discussions can be found at : http://220.225.214.101/forum/57 .

The __LINE__ macro

i never actually knew that there was a macro provided by ANSI C which contains the current line number of execution , it is the __LINE__ macro here is a sample program to show its usage and after that follows the ouput : int main (){ int a; printf("\nHello testing the use of the __LINE__macro \n"); a=__LINE__; printf("The current line number is 5 \n and the value of __LINE__ is :%d \n",a); return 0 ; } Output: Hello testing the use of the __LINE__macro The current line number is 5 and the value of __LINE__ is :5 the preprocessor directives such as #include do not come under program lines so i have not included them here ....

Yum rollback : more issues

the discussions i have been involved in on the YUM mailing lists are still going on , and a very recent and important issue has cropped , consider if i have mysql installed in my system and i am upgrading to a higher version , now if i want to rollback then i would have to rollback to the previous version of the database server but not affect the databases and the data , so that would be a tough asking . well a solution proposed for this was that if rollback was developed as a plugin or something for YUM , then it would during package installation warn the user that he is making changes that cannot be rolled back or may be the rollback utility will create a list of applications that cannot be rolled back and thus be excluded during rollback . the final suggestion was that it was not a very good idea to actually implement the rollback utility as a part of yum or as an external module, that was quite disheartening , but looking at the issues there seems no other go , or is there one

Yum rollback : Inconsistencies and new ideas !!

The posting of this idea for Gsoc has indeed brought out a lot of defects and inconsistencies in the idea and the proposed implementation , I have been having a good set of discussions with the GSoc mentors , my application doesn't seem to be going anywhere but the idea has been getting a lot of shaping and chiseling, ...... to say in short , there are a lot of shortcomings which were not identified before, and the main drawback was that i had not discussed these ideas with people from the YUM mailing lists, the recent discussions i had on the mailing lists show the following shortcomings, which seem to be very obvious now : 1) the utility would be very slow if it used YUM again for the rollback process also 2) i was suggested to use conventional backup and recovery methods, and try improving the backup storage methods and improve the speed eventually . 3) the system would be left very inconsistent , if the rollback process anywhere involved the use of commands such as 'rpm -e&