Thursday, November 27, 2008

Disabling User module in drupal:stucked outside!

It is dump situation where I disable User login module and log out as admin. N permission restricts me to bring back login as admin as no login form is there,

On that day I spent couple of minutes trying to access site, N As I fed up that day, had given access permission to anonymous user through database access (I know it is very stupid way to get out of situation)

THen on next M'ning I found the solution for that from drupal forum that I can access login page by

Wednesday, November 26, 2008

Working with drupal:Installation

1. Download Drupal 6.x form

2. tar -zxvpf drupal-x.x.tar.gz

3. put this folder into /var/www/

4. mv drupal-x.x/* drupal-x.x/.htaccess /var/www/html

5. Change the permission for setting.php chmod a+w sites/default/settings.php or chmod 777 sites/default/settings.php

6. Create the database using Mysql

* apt-get install mysql

* mysqladmin -u username -p create databasename (where username and password can get from /etc/mysql/debian.cnf)

* GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';
'databasename' is the name of your database
'username@localhost' is the username of your MySQL account
'password' is the password required for that username

7. Then run the script using : http://localhost/drupal-6.6/

8. And you get the welcome page of drupal

9. Then do all settings and congiguration like (site name,logo,feature,database name,another user etc)

Installation of Cygwin in Windows Machine

1. Install either from DVD or from site
2. Run setup.exe any time you want to update or install a Cygwin package.
3. Only the minimal base packages from the Cygwin distribution are installed by default. Clicking on categories and packages in the setup.exe package installation screen will provide you with the ability to control what is installed or updated. Clicking on the "Default" field next to the "All" category will provide you with the opportunity to install every Cygwin package
4. Remove the symlink or symblic link from c:/cygwin/bin

-$ls -l(view symlink)
list: target_filename symlink_filename

-copy the content of target_filename into symlink_filename
$cp targetfile symlink_filename

-and remove symlink by:
$unlink symlink_filename

Now you can use Linux-like environment for Windows. It consists of two parts: A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality. A collection of tools which provide Linux look and feel. The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows.

Tuver Dal -One more Expirement in cooking

Last night it is my turns to prepare dinner for my rummies,so tried for Dal
N It was gr8 simple steps to do
first boil d dal with Fenugreek seeds and
after it that mixup that and add Turmeric Powder, Coriander Powder,
then Tadka with Mustard seeds,heeng ,kadhi patta .......

And that was amazing and testfull ;)
I am saying that from my rummies complement :)

Wednesday, November 5, 2008

Build the binary module package yourself-Madwifi

When I am working on Debian Live project I found a problem :

I am customizing Debian Live using Live-helper
Kernal using :Linux 2.6.26-1-686

The wifi-connection is not being detected, I have packed madwifi-tools, madwifi-source,wireless-tools,gnome-network-admin,network-manager packages any other packages are required for that wife-connection.

I am using linux 2.6.26-1-686 kernal and I didn't find how can I able to add that ?

Here is the solution ...........

madwifi modules are not prebuilt in the archive because the maintainer of madwifi didn't wanted us to do that (on behalf of linux-modules-nonfree-2.6).

however, you need to build the binary module package yourself (m-a build madwifi) and put it into your config/chroot_local-packages.

And now your madwifi package support in your customized Debian Live

“User’s $HOME/.dmrc” file is being ignored.

When your linux machine gives .dmrc problem

"“User’s $HOME/.dmrc” file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permission. User $HOME directory must be owned by user and not writable by other users

Do this....

sudo chmod 644 ~/.dmrc
sudo chown your_username ~/.dmrc
sudo chmod 755 /home/your_username
sudo chown your_username /home/your_username

Thursday, October 16, 2008

Are you afraid of the dark!!! -Sidney Sheldon

I have just finished reading this book ...............

The book starts with the cops who find the dead bodies of various scientists. It tells us briefly about the lives of the two widows when they were married rather happily married. One widow being a high profile model the other being a girl next door kind of a person. This book is a story of the wives of two good scientist who escape death several times. The two lose their husband as they were murdered for being involved in a very high profile undercover project.

The book describes how the two widows decide to find out the person involved in murdering their husband and in the process how do they escape death several times and finally whether did they die or not ? is a question which will be answered only after reading the book.

ARE YOU AFRAID OF THE DARK? is a pleasant and easy read. While the story has its flaws, it certainly held my interest and kept me reading to the very end.

Wednesday, September 24, 2008

Create Debian Live Installer Using Live-helper

Here is the simple way to Install your cusomize Debian Live into your machine

1.Set the two parameter in config/binary with by

2.Give the access to /tmp folder in chroot
chmod 777 /tmp

3.clean binary by lh_clean --binary

4.Rebuild ISO

And now you can install your customized live CD in your machine ,which works fine .......

Thursday, September 18, 2008

Change Splashy image in Debian Live

Spalshy setting
1. Install: apt get install splashy splashy-themes
2. Replace the default image n place image what you want to update.
3. Don't forget to Do : update-initramfs -u

Wednesday, August 27, 2008


The Difference between Focusing on Problems and Focusing on Solutions

Case 1

When NASA began the launch of astronauts into space, they found out
that the pens wouldn't work at zero gravity
(ink won't flow down to the writing surface). To solve this problem,
it took them one decade and $12 million.
They developed a pen that worked at zero gravity, upside down,
underwater, in practically any surface including crystal
and in a temperature range from below freezing to over 300 degrees C.

And what did the Russians do...?? They used a pencil.

Case 2

One of the most memorable case studies on Japanese management was the
case of the empty soap box,
which happened in one of Japan's biggest cosmetics companies.
The company received a complaint that a consumer had bought a soap
box that was empty.
Immediately the authorities isolated the problem to the assembly
which transported all the package! d boxes of soap to the delivery
For some reason, one soap box went through the assembly line empty.
Management asked its engineers to solve the problem.

Post-haste, the engineers worked hard to devise an X-ray machine with
high-resolution monitors
manned by two people to watch all the soap boxes that passed through
the line to make sure they were not empty.
No doubt, they worked hard and they worked fast but they spent a
whoopee amount to do so.

But when a rank-and-file employee in a small company was posed with
the same problem, he did not get into complications of X-rays, etc.,
but instead came out with another solution. He bought a strong
industrial electric fan and
pointed it at the assembly line He switched the fan on, and as each
soap box passed the fan,
it simply blew the empty boxes out of the line.


Always look for simple solutions. Devise the simplest possible
solution that solves the problems

Monday, August 18, 2008

Customization using live-helper

Linux live cd are very useful installation disks and rescue disks are the main application of the technologies used to make a live cd i am going to talk about how to make a debian linux live cd in this how-to i will  cover how to use the application called live-helper first thing you need is a installation of debian it is best to use a debian sid host system to build the iso with live-helper using debian sid ensures that you have all the newest tools and the latest features fixes of live-helper to simplify this write-up i will assume you are using debian sid if you wish to use debian etch or lenny then you can set up apt pinning it will allow you to grab the newest packages for live-helper and all the dependencies so you can keep your precious stable system and still have the latest version of live-helper start off by updating the apt aptitude database and then upgrade any packages on your sid system to the newest possible version. I have used Qemu for running live CD

  1. su apt-get update
  2. apt-get upgrade
  3. apt-get dist-upgrade
    next tell apt to grab the latest live-helper

    Add following line to 
    deb sid/snapshots main contrib non-free

  4. apt-get install live-helper 

    Basic Command for live-helper

    • lh_config - creates the configuration file this is where you specify desktop architecture extra software include installer and so forth
    • lh_build - command to start the build other important commands
    • lh_clean --binary use this to clean things up before building another image using the same
    • config lh_clean use this to clean things up before building another image when the config has changed
    • lh_clean --purge use this to do a super-clean this will purge all packages from the cache some
    • lh_config options
                    -p specify a package list from usr share live-helper lists or specify your own file 
                    --packages specify packages you want to include
                    -d specify the distribution etch lenny sid
                    -a specify the architecture i386 amd64
                   --debian-installer businesscard include the business card installer
                   --debian-installer enabled include the standard installer 
  5. mkdir livebuild
  6. cd livebuild 
  7. su lh_config -d sid -a i386 -p gnome-core --packages list of packages
  8. lh_build
    (when it is done look in the livebuild folder for the binary.iso )
  9. qemu -m memory_size -cdrom -filename iso
    (To run test iso )

Friday, August 8, 2008

Customization Splash image

Steps Customization Splash image in Debian Live

Create your image, and transform it into a XPM file, 640x480, with
14 colors:

$ convert my-nice-image.jpg -colors 14 -geometry 640x480! my-nice-image.xpm

gzip it:

$ gzip my-nice-image.xpm

Put that image into
$ cp my-nice-image.xpm livebuild/config/binary_local-grub/

Modify config/binary file in to
LH_GRUBSPLASHIMAGE =./config/binary_local-grub/my-nice-image.xpm

Friday, July 18, 2008

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

પોતાના 'પ્રોજેક્ટ'ના બોજ હેઠળ દબાઇ જઇ રહીયો છે,
આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

જીંદગીથી હરેલો છે, પણ 'બગ'થી હાર નથી માનતો,
પોતાની 'એપ્લીકેશન'ની એક એક લીટી યાદ છે,

પણ આજે પગમાં ક્યા રંગના મોજા છે તે યાદ નથી,

દિવસ પર દિવસ એક 'એક્સેલ' ફાઇલ બનાવી રહીયો છે,

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

દસ હજાર લીટીનાં 'કોડ'માં 'એરર' શોધી લે છે પણ, મજબૂર મીત્રોની આંખમાં આંસુ દેખાતા નથી,

'કોમ્પ્યુટર'માં હજારો 'વિન્ડો' છે, પણ દિલની બારી પર કોઇ દસ્તક સંભળાતી નથી,

શનિ-રવિ નહાતો નથી ને આખુ અઠવાડિયું નહાતો રહીયો છે,

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

'કૉડીંગ' કરતા કરતા ખબર જ ના રહી, 'બગ'ની 'પ્રાયોરીટી' ક્યારે માતા-પિતા કરતા વધી ગઇ,

પુસ્તકોમાં ગુલાબ રાખવાવાળો 'સિગારેટ'ના ધુમાડામાં ખોવાઇ ગયો, દિલની જમીન પરથી ઇછ્છાઓની વિદાઇ થઇ ગઇ,

શનિ-રવિ પર દારુ પીયને મજા કરી રહીયો છે,

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

મજા લેવી જ હોઇ જો એની તો પૂછી લો, પગાર વધારાની 'પાર્ટી' ક્યારે આપે છે?

ને મજાક ઉડાવવી હોઇ તો પૂછી લો, 'ઓન-સાઇટ' ક્યારે જઇ રહીયો છે?

આ જુઓ 'ઓન-સાઇટ' પરથી પછા ફરેલા સાથી-મિત્રની ચોકલેટ ખાઇ રહીયો છે,

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

ખર્ચા વધી રહ્યા છે, વાળ ઓછા થઇ રહીયા છે,

KRAની તારીખ આવતી નથી ને 'ઇંકમ-ટેક્સ્'નો સિતમ થઇ રહીયો છે,

આ જુઓ પાછી 'બસ' છૂટી ગઇ ને 'રિક્શા'થી આવી રહીયો છે,

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

'પીત્ઝા' ગળે નથી ઉતરતા તો સાથે 'કોક'ના ઘૂંટડા લઇ રહીયો છે,

'ઓફિસ'ની થાળી જોઇ મોઢુ બગાડે છે, માઁના હાથનું જમવાનું યાદ આવી રહીયુ છે,

સરસ ભેળ મળે છે છતાં મફતનો નાસ્તો ખાઇ રહીયો છે,

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

તમે અત્યાર સુધી ઘણી લીધી હશે ચુંટકીઓ,

સોફ્ટવેઅર એન્જીનિયરના જીવનનું સત્ય બતાવતી આ છેલ્લી થોડી પંક્તિઓ,

હજારોના પગારવાળો 'કંપની'ના ખિસ્સામાં કરોડો ભરી રહિયો છે,

સોફ્ટવેઅર એન્જીનિયર એ જ બની શકે જે લોઢાનું કાળજુ રખતો હોઇ,

અમે લોકો જીવી જીવીને મરી રહીયા છીએ, જીંદગી છે કંઇક આવી,

એક 'ફોજી'ની નોકરી, એક સોફ્ટવેઅર એન્જીનિયરની નોકરી, બંને એક જેવી,

આ જુઓ એક સોફ્ટવેઅર એન્જીનિયર જઇ રહીયો છે…

Special thanx to Sumaiya .....

Friday, July 11, 2008

Touching One .......................

Little girl and her father were crossing a bridge.
The father was kind of scared so he asked his little daughter,
"Sweetheart, please hold my hand so
that you don't fall into the river.
" The little girl said,
"No, Dad. You hold my hand.
" "What's the difference?"
Asked the puzzled father.
"There's a big difference,
" replied the little girl.
"If I hold your hand and something happens to me,chances are that I may let your hand go. But if you hold my hand, I know for sure that no matter what happens, you will never let my hand go.
" In any relationship, the essence of trust is not in its bind, but in its bond.

"So hold the hand of the person whom you love rather than expecting
them to hold urs... this story tells many things... u just need to understand
the meaning rest depends on u "

Thursday, July 10, 2008

No Limits ............

While a man was polishing his new car, his 4 yr old son picked stone & scratched lines on the side of the car.

In anger, the man took the child's hand & hit it many times, not realizing he was using a wrench.

At the hospital, the child lost all his fingers due to multiple fractures. When the child say his father.... with painful eyes he asked "Dad when will my fingers grow back?"

Man was so hurt and speechless. He went back to car and kicked it a lot of times.

Devastated by his own actions...... sitting in front of that car he looked at the scratches, child had written "LOVE YOU DAD".
The next day that man committed suicide. . .

Anger and Love has no limits, so let the river of life flow in Limits so that this fresh water stream is never scattered.

Tuesday, July 1, 2008

Working With Debian Live CD................

Gud Experince but have to learn so much .................

Wednesday, April 2, 2008

Netbeans Missing New Project Categories

I started it and wanted to start a new project. What a surprise I have seen I could not. There were no menu items besides import existing ant project what I could reach. Holy s.... something! What is this? I was asking.
Tried to purge package and reinstall but no luck. So finally I concluded that the problem is around Netbeans 5.5. What can people do than? I have taken the lattes version Netbeans 6.0 and tried. Much more surprise I had the same situation. No menu to create new project. I started to think about some kind of global conspiracy and decided to unveil it so the day just turned darker.


$ rm -rf ~/.netbeans/6.0/config/Modules

Simple right?
If you are missing New Project Templates in Netbeans and you have started netbeans ever with IcedTea Java 7 - or any other "unsupported one" - first use only SUN Java as long as this error is not corrected to run netbeans. I do not know if this is an error in Iced Tea Java or in Netbeans and do not care too much anymore. To correct the problem completely delete ~/.netbeans/6.0/config/Modules and restart Netbenas with a Sun Java. This directory will be recreated and you can enjoy the newly available menus without loosing your settings.

Friday, March 28, 2008

Problem regarding saving fonts after creating it ........

Can anybody help me
I have created new font using fontforge but it will not insave the font in installable font.