Thursday, November 4, 2010

Reset GNOME to default

rm -rf .gnome .gnome2 .gconf .gconfd .metacity
This will reset the GNOME desktop to its default settings. If you have done a lot of changes and tweaks to your desktop and want to get it to its default setting, then you can delete these folders.
On restarting the system, the default settings will be restored.
To restore the panels to its default settings :
administrator@ubuntu:~$ gconftool --recursive-unset /apps/panel
administrator@ubuntu:~$ rm -rf ~/.gconf/ apps/panel
administrator@ubuntu:~$ pkill gnome-panel

http://oddabout.com/?p=34

Automatically login to GNOME and KDE

If you want to login without entering your password at boot up, you can do the following changes to your system.
FOR GNOME(UBUNTU) users:
For Ubuntu 10.04 (Lucid Lynx)
1. Load the Gnome Administration utility by clicking on System -> Administration -> Login Screen Settings
2. Unlock the window by hitting the unlock button (you will be asked for the administrator password)
3. Enable the checkbox for Log in as <> automatically (Select your User Name from the drop-down list of users).
FOR KDE(KUBUNTU) users:
1. K–>System Setting-> Login Manager.
2. Click on the Administrative Mode.
3. Enter your password when prompted.
4. Click on the Convenience tab and check the Enable Autologin checkbox option.
5. Select the user who would be logged in automatically(if there are multiple users).
Through command-line, it can be done by editing the kdmrc file and making the following changes /etc/kde4/kdm/kdmrc:
[X-:0-Core]
AutoLoginEnable=true
AutoLoginLocked=false
AutoLoginUser=bkevan
ClientLogFile=.xsession-errors

http://oddabout.com/?p=44

Switching between KDE and GNOME

If you’ve installed UBUNTU on your system, then the default desktop environment is GNOME. You can install KDE in UBUNTU through the following steps:
Open Ubuntu Software Centre.
Type Kubuntu and install Kubuntu Plasma Desktop system.Enter your password when prompted.
After the installation process is complete, log out and log in again. This time select KDE from the bottom of the log in screen.
However, you can only log out of KDE desktop environment back to the login screen. You will not have options like SHUTDOWN and RESTART in your KDE environment. This is because, although you login to KDE, the default display manager is still GDM (GNOME Display Manager).
If you want the (SHUTDOWN, RESTART etc.) options to appear in your KDE desktop environment, then you need to change the display manager to KDM (KDE Display Manager).
To do this, open up a terminal and type :
sudo dpkg-reconfigure kdm
and follow the fairly intuitive steps.
If you log out and log in again, the options should be enabled. But if you login to GNOME then those options will be disabled for the same reasons as above.
To change the display manager to gdm, simply type
sudo dpkg-reconfigure gdm.

http://oddabout.com/?p=60

A C program in Ubuntu

The GNU C compiler(gcc).
This is the GNU C compiler, a fairly portable optimizing compiler for C.
This is a dependency package providing the default GNU C compiler.
—————————————————————————————————
The first thing to do is to check if gcc is installed in your system.
This can be done by opening a terminal
and typing:
which gcc
This gives the location where it is installed.
Usually, the output is :
/usr/bin/gcc
If gcc is not installed type :
sudo apt-get install build-essential
To check the version type
gcc -v
The output is :
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.
Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --
libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686
--with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu
--target=i686-linux-gnu
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
The next part is to compile and run a C program.
Type the program in any editor
and save it as hello.c
Sample code is given below:
#include "stdio.h"
int main()
{
printf("Hello World\n");
printf("C in Linux\n");
return 0;
}
In your terminal, go to the location where you have saved your program.
cd Desktop, if it has been saved in the desktop.
Then type
gcc hello.c -o hello
followed by
./hello
You should get the output on your screen.
If u get any permission error then,
chmod +x hello.c
Digging a little deeper
I wrote a code and saved it as test.c
#include "stdio.h"
void main()
{
for (int i=0;i<10 ;i++)
printf("%d",i);
}
When I tried to compile using
gcc test.c -o test
it gave an error:
test.c: In function ‘main’:
test.c:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
test.c:5: note: use option -std=c99 or -std=gnu99 to compile your code
It turns out that declaring 'i' inside the for loop is illegal in C90 mode, which
is the default mode. To compile it you either need to declare 'i' outside the for loop
i.e
int i
for(i=0...)
this works fine.
Or to use the c99 mode, where it is legal to declare variables inside the for loop.
Thus,
gcc test.c -std=gnu99 -o test
or
gcc test.c -std=c99 -o test

http://oddabout.com/?p=69

My first Makefile

A starter’s guide to a makefile
This post is just the tip of the iceberg called “make” and its capabilities. It does not even scratch the surface but is meant as a tutorial to write your first makefile.
The following Makefile is used to make it easier to type commands to compile and run a program.
for eg. to compile arg.c
we use
gcc -o arg arg.c
Instead of this we can create a Makefile as:
#Makefile
1:
(tab) gcc -o arg arg.c
and save it as Makefile in the directory where our program arg.c is saved.
Now we can type:
$ make 1
to compile the program
and
./arg
to run the program.
anand@anand-desktop:~/Desktop$ make 1
Makefile:5: *** missing separator. Stop.
This error comes if we have missed the tab in the newline before gcc -o arg arg.c
1:
(Tab) gcc -o arg arg.c
Make sure you press the tab key and not write (Tab) .
If we can compile a program, why not run it too?
edit the Makefile and add the following:
2:
(tab) ./arg
Therefore,
$make 1
$make 2
in your terminal is same as
gcc -o arg arg.c
followed by
./arg

http://oddabout.com/?p=78

Tuesday, April 20, 2010

Mother's Day, Flowers and 1800flowers

Mother's Day is to celebrate those people who have the biggest but quietest influence in our lives.If a wish or a gift has touched your heart on Mother's Day, then say 'Thank You'. Also this is a good time to thank your mom or someone you feel is as inspiring or loving. Nothing can come close to the love that a mother feels for her children. Most women are inherently excellent mothers. Women carry their young before they are born and then continue to nurture them throughout their childhood and even into adulthood.

Mothers make sure that their children are safe and happy throughout their childhood. It is the unconditional love that a mother feels that drives these feelings. It is hard to describe the feeling that a mother has towards her children. In fact, most people do not understand unless they become a mother themselves.

A famous saying states that "God could not be everywhere and so he invented mothers", these words are a great inspiration to mothers across the world. When all is well, a mother puts her children before anything else, including their own comfort and happiness.

To celebrate Mothers Day and appreciate the beautiful things that she has done for you, 1800Flowers brings to you a wide range of gifts and flowers to choose from. What better way then, than to gift your mom with those lovely flowers and brighten her day?

Wednesday, February 10, 2010

1800flowers for your valentine

Valentine’s Day is fast approaching and flowers are an easy and affordable way to get a smile from those you love on Valentine’s Day.
The most important aspect of all things on Valentine’s Day is not the price but your thoughtfulness and creativity. Flowers have a magical way of saying what words sometimes cannot. At the same time the words that accompany the flowers can have a power of their own.
1-800-flowers has introduced several Twilight flowers DVD offer. One of them is really cool in that it actually comes with a pre-order of the New Moon DVD.
Basic Package is $49.95 and comes with 12 Premium long stem roses, Exclusive Twilight Gift Card / Poster from Hallmark, and Clear or silver vase available at additional cost.
Premium Package is $99.95 and includes your roses doubled to 24 Premium long stem roses, Pre-order New Moon DVD, Collectible Twilight Chocolate Candy Bars, Exclusive Hallmark Twilight Card/Poster, and Clear or silver vase available at additional cost.
1800flowers offers these exclusive gift packages for a very reasonable price. In fact, according to MSNBC, 1800flowers has been approved to have a much better policy with regards to price than its competitors.

Saturday, February 6, 2010

Flowers

All of us like to look at those pretty flowers blooming all around, especially during winter and spring. Flowers are scents of life spreading the essence of its beauty all around. They can express our mood and convey our thoughts and feelings more convincingly than any utterance of our expression. You can use flowers to beautify your homes and as centrepieces for tables.
Flowers can benefit someone who is sick or in pain to help in their recovery whether they are in the hospital or at home.
Flowers express your deepest feelings.
Flowers bring about positive emotional feelings in those who enter a room and they make the space more welcoming and create a sharing atmosphere. Flowers have an immediate impact on happiness. Flowers have a long-term positive effect on moods. Flowers make us happier than we know and they have strong positive effects on our emotional well being.

Thursday, December 31, 2009

Frank Hanna

If we have been blessed with wealth, what should we do with that wealth? Frank Hanna's recently published work, What Your Money Means (And How to Use it well), tries to address the core issues regarding wealth and philanthropy.

The aptly titled book tries to say it all, what does money mean to each of us? What is the best way to save it? Invest or Save? Frank Hanna's book speaks about money in a different perspective. It is not about how to utilize your money but more on understanding your money.

Frank Hanna's philosophical approach to money gives it an invigorating twist, making you to reflect on your spending habits and your point of view towards money.

Frank Hanna
is a merchant banker in Atlanta who has started and backed a number of successful businesses. Mr. Hanna is also the founder of the Solidarity Foundation. Among other efforts, the Solidarity Foundation recently obtained the oldest extant copy of portions of the Gospels of Luke and John and then gave it to the Vatican.

Wednesday, December 30, 2009

Boost your career with: American Career Group

American Career Group is the premier destination for connecting employees and employers throughout the United States via the Internet. Not only does it provide employment opportunities and connectivity between the employer and the employee, it provides tips on writing your resume for that perfect job that you always wanted.

If you require any more resources, American Career Group also provides tips on interviews and on writing your cover letter. It is a boon for the job seekers as the categories of jobs that you can search for are myriad.

American Career Group understands the role a recruiter has in filling available positions. Their extensive network of partners and resources allows them to have a nationwide reach while maintaining a local focus. So the next time you need a job and all your connections have been exhausted, look no further than the American Career Group. It will help you take your career to the next level.

Know about : Ashley M. Stevanovich

Flowers have a way of brightening our day. All of us like to look at those pretty flowers blooming all around, especially during winter and spring. Flowers are scents of life spreading the essence of its beauty all around. They can express our mood and convey our thoughts and feelings more convincingly than any utterance of our expression.Whether we've got a vase filled with cut flowers or we encounter fields full of blooms, flowers are nature's gift to all of us as a symbol of the brightness and joy life has to offer. Ashley M Stevanovich loves flowers, and she is particularly interested in the flowers each of the states has adopted as its own. From the Orange Blossom of Florida to the Bluebonnet of Texas, all fifty states have adopted a native flower and the diversity of the state flowers is emblematic of the diversity our nation is built upon.

Through flowers, Ashley M. Stevanovich celebrates our cultural diversity. Her love of flowers colors her work in other aspects of her environment, including her involvement with the education of children.

Pine Crest has been turning out outstanding community leaders since 1934, so they must be doing something right. As a member of the Pine Crest School's Board of Advisors, Ashley M. Stevanovich works to help educate the children of South Florida. Whether its flowers or children, she has found ways to express her appreciation of the hope and joy we find all around us.

Know about : Sakwinder Narwal

Sakwinder Narwal is a great example of a busy executive with a great outdoor hobby. Narwal enjoys fishing. “ Fishing has taken me to some of the wildest and most beautiful natural settings,’ he says.The CEO of Omicron Technologies, Inc., finds time to go fishing every week.

Sakwinder goes fishing everywhere he can. From salmon fishing in Alaska to catching catfish in Florida Keys and trout in New York, Sakwinder Narwal has fully embraced his passion. Sakwinder Narwal believes the catfish love this bait as much now as they did many years ago.

While he enjoys a good fish dinner, he is known to be a catch and release fisherman. Sak Narwal likes to fish for both fresh and salt water fish and learns all he can of the habits of both salt water and fresh water fish alike; what they eat and where they are to be found Sakwinder Narwal went fishing with this old gentleman when he was just a boy and he learned the old man’s secret bait for channel cat: canned sweet corn.

Sakwinder Narwal is an amateur ichthyologist who enjoys the connection with nature while fishing.In the heat of summer you might see Sakwinder Narwal fishing for shark off Montauk NY or plumbing the great depths of Lake George for landlocked salmon.

Shasta Pools

Are you in or around Phoenix? Then you must have heard of Shasta Pools which has built a large number of pools around your place. Not only do they provide attractive pools but they also focus on the ecological aspects providing you with a green eco friendly pool.

So if you are planning to build a pool in your backyard and turn that long standing dream into a reality trust Shasta Pools to provide you with a quality swimming pool at an attractive and reasonable price.

Since 1968, Shasta Pools has constructed more than 75000 swimming pools throughout Arizona. If you are on the lookout for innovative pools, then check out what Shasta Pools has to provide you. Trust them to make it a memorable experience that you would be proud of for a long time.

Saturday, November 14, 2009

Flowers for every occasion

All of us like to look at those pretty flowers blooming all around, especially during winter and spring.Flowers are scents of life spreading the essence of its beauty all around. They can express our mood and convey our thoughts and feelings more convincingly than any utterance of our expression. You can use flowers to beautify your homes and as centerpieces for tables.
Flowers can benefit someone who is sick or in pain to help in their recovery whether they are in the hospital or at home.
Flowers express your deepest feelings.
1 800 flowers is one of the leading flower stores online with an astonishing array of flowers, gift baskets, and food gifts. 1800 Flowers coupons will give you special discounts to customers purchasing gifts through their site.

Gift baskets

Gifts and flowers play an integral role in any celebrations and gifting culture. Recent years brought about a drastic change in the concept of giving presents to their loved ones keeping in view of their favorites, and their specific needs.
Delivery of online flower and gifts baskets has become a common feature not only in big cities but also in towns. Scarcity of time in the lives of people has enhanced these business establishments. One of the Internet baby i.e., Online trading has zoomed.
You can send a favorite of your loved one being at the remote corner of a country to any part of the world with in the shortest time. Sending a simple bouquet is more than some beautifully crafted powerful words. A florist can help you at all times.
Nothing shows you care quite like a stunning bouquet of fresh and vibrant flowers. With the flowers and gifts, one can show your appreciation and care to your friends, family, or employees.
One such site which provides an excellent service is 1800flowers gift baskets .With their wide range of collections, one can choose from any of the gift baskets to gift your loved ones.

Thursday, October 29, 2009

Shasta Pools

Are you in or around Phoenix? Then you must have heard of Shasta Pools which has built a large number of pools around your place. Not only do they provide attractive pools but they also focus on the ecological aspects providing you with a green eco friendly pool.

So if you are planning to build a pool in your backyard and turn that long standing dream into a reality trust Shasta Pools to provide you with a quality swimming pool at an attractive and reasonable price.

Since 1968, Shasta Pools has constructed more than 75000 swimming pools throughout Arizona. If you are on the lookout for innovative pools, then check out what Shasta Pools has to provide you. Trust them to make it a memorable experience that you would be proud of for a long time.

Sakwinder Narwal

Sakwinder Narwal is a great example of a busy executive with a great outdoor hobby. Narwal enjoys fishing. “ Fishing has taken me to some of the wildest and most beautiful natural settings,’ he says.The CEO of Omicron Technologies, Inc., finds time to go fishing every week.

Sakwinder goes fishing everywhere he can. From salmon fishing in Alaska to catching catfish in Florida Keys and trout in New York, Sakwinder Narwal has fully embraced his passion. Sakwinder Narwal believes the catfish love this bait as much now as they did many years ago.

While he enjoys a good fish dinner, he is known to be a catch and release fisherman. Sak Narwal likes to fish for both fresh and salt water fish and learns all he can of the habits of both salt water and fresh water fish alike; what they eat and where they are to be found Sakwinder Narwal went fishing with this old gentleman when he was just a boy and he learned the old man’s secret bait for channel cat: canned sweet corn.

Sakwinder Narwal is an amateur ichthyologist who enjoys the connection with nature while fishing.In the heat of summer you might see Sakwinder Narwal fishing for shark off Montauk NY or plumbing the great depths of Lake George for landlocked salmon.

RENEW International

RENEW International is a Roman Catholic ministry organization incorporated under the auspices of the Archdiocese of Newark. Most Reverend John J. Myers, J.C.D., D.D. is the Chairman of RENEW’s Corporate Board.

RENEW International has been performing a ministry of peace building and ethnic reconciliation in the nation of Burundi since 2004. Burundi is one of the world’s poorest nations in Africa and it is constantly plagued by flood and famine. The land and people in Burundi has been ravaged by war, oppression, and chaos.

RENEW International has timely ways to serve the pastoral needs of parishes and people. They offer a full range of spiritual processes with step-by-step guides, sound materials and personal support for pastors, ministry leaders and participants.

They are committed to helping people around the world learn of the Catholic church and its teachings. The organization emphasizes the important role that small, faith-based communities can have in supporting those who are pursuing spiritual discovery in the Catholic faith. Whether you are involved with stewardship or outreach, they offer programs to support your growth.

K-Designers

Are you thinking about giving your home the much needed facelift? If your house needs a remodeling, check out K-Designers and see the offers that they have for you. K-Designers, an award winning Home Remodeling Company, were formed in 1978 by Larry and Lee Judson in Casper, Wyoming.

The K-Designers motto is with K-Designers design and materials you are getting "a new home at our old address." The company which began from a single location has now grown into 11 branch locations throughout the west. The business opened with four employees. Today they have over 900 employees and associates and are one of the largest remodeling contractors in the United States.

When it was time for us to remodel our house then the only option that sounded reliable was K-Designers. K-Designers offer a number of services that can turn your home into the dream house that you always craved for. They offer cost-efficient and energy saving renovation. Why opt for anyone else for your home renovation needs.

Amos Tamam

Amos Tamam is the CEO of the super successful Verifone Transportation Systems Inc. After he came from Israel to the USA in the 1980s, he planned on a fresh start. Just after arriving, Amos Tamam began to repair taxicabs, in New York City, and has never stopped or looked back. Blessed with an uncanny ingenuity, he was able to develop products that solved problems within the taxi industry.

Among his latest technological inventiveness has been the installation of credit card machines in taxicabs in New York. Now isn't that amazing? Thanks to Amos Tamam, taxi fares can be paid through your credit cards.

In addition to the credit card system, GPS (global positioning systems) are being attached to every car with the monitors to ensure that the passengers are well aware of their positions and also the featured news. With the on-board Verifone technology, touch screen monitors will also provide weather, sports, local news and traffic information.

"This program was completed back in March 2007," Amos Tamam said. "As the public is becoming more and more aware of it, we're seeing a steady increase in transaction volume every month."