Tuesday, May 21, 2013
Friday, January 25, 2013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory OR pwd: cannot get current directory: No such file or directory
Suddenly on my shell, in my vnc window, I got "shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory" for any shell command I executed.
dragon:685> ls
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
<op snipped>
Since it said "No such file or directory" , I tried executing "pwd" to get my current directory. I got an error for "pwd" too..
dragon:736> pwd
pwd: cannot get current directory: No such file or directory
Puzzled..I did a "cd" .
dragon:737> cd
And then executed "pwd". And Viola!! It worked!
dragon:738> pwd
/users/rover
dragon:739>
I later found out that I had deleted my "current working directory" in another shell window. When I did "cd" I got to my home directory and hence all my linux/unix commands worked..
Hope this helps!
Friday, January 4, 2013
Outlook Mac converting underscore to italic!!
Outlook in Mac converting text between underscores to italic !!
This is very irritating when typing text with underscores in outlook on Mac. It converts _my_name_ to myname . After a bit of fiddling around I found a way to resolve it:
Follow the steps below:
1. Go to Outlook -> Preferences
This is very irritating when typing text with underscores in outlook on Mac. It converts _my_name_ to myname . After a bit of fiddling around I found a way to resolve it:
Follow the steps below:
1. Go to Outlook -> Preferences
2. Click on AutoCorrect under Personal Settings
3. Click on the AutoFormat tab
By default "Bold" and _italic_ with real formatting is selected.
4. Unselect the "Bold" and _italic_ with real formatting check box
Go through the other auto formatting options and uncheck/check whatever is necessary.
Enjoy!
Sunday, December 2, 2012
Which one is better - Glasses or Contact Lenses?
Ah, the great battle between glasses and contact lenses. There are fierce supporters on both sides of this war, with each having their pros and cons. Let’s look at the arguments behind each, and you can decide which you want to wear.
While it’s much easier to find advantages of contact lenses over glasses, let’s first look at why people prefer glasses. First of all, some people prefer the look of glasses. It gives people a studious, intelligent appearance. Glasses can be fashionable, with many different styles. Glasses can be easily removed. If you want to lie down, you can just take them off. This is not possible with contact lenses. Finally, glasses are very affordable. They can be reasonably priced and are significantly cheaper than contact lenses in the long run.
Contact lenses continue to increase in popularity. They’re worn right on the eye, so your vision is more natural. Peripheral vision is not an issue with contacts. You have a complete field of view. Contacts don’t have weight and a frame slowing sliding down your nose. Contacts don’t fog up with changes in temperature. Athletes prefer contacts because they don’t have to worry about glasses falling off or getting in the way.
If you’re undecided on which option will be best for you, try both of them. Talk with your eye care doctor on which option will suit you better. If you like glasses and contact lenses, many people wear a combination of the two. Experiment with glasses and contact lenses and choose whichever makes you happier!
How to set up cron job in linux
What is a cron job?
As a network admin, its very important that we know the use of the crontab command which is used to setup cron jobs.
As a network admin, its very important that we know the use of the crontab command which is used to setup cron jobs.
Cron job are used to schedule commands to be executed periodically. You can setup commands or scripts, which will repeatedly run at a set time. Cron is one of the most useful tool in Linux or UNIX like operating systems. The cron service (daemon) runs in the background and constantly checks the /etc/crontab file, /etc/cron.*/ directories. It also checks the /var/spool/cron/ directory
crontab is the command used to install, deinstall or list the tables (cron configuration file) used to drive the cron daemon in Vixie Cron. Each user can have their own crontab file, and though these are files in /var/spool/cron/crontabs, they are not intended to be edited directly. You need to use crontab command for editing or setting up your own cron jobs.
To edit your crontab file, type the following command at the UNIX / Linux shell prompt:
$ crontab -e
Syntax of crontab (Field Description)
Your cron job looks as follows for user jobs:
1 2 3 4 5 /filepath ag1 ag2
OR
1 2 3 4 5 /root/runscript.tcl
Where,
- 1: Minute (0-59)
- 2: Hours (0-23)
- 3: Day (0-31)
- 4: Month (0-12 [12 == December])
- 5: Day of the week(0-7 [7 or 0 == sunday])
- /filepath - Absolute path of the script or command name to schedule* * * * * command to be executed
EXAMPLE CRON FILE
# use /bin/sh to run commands, no matter what /etc/passwd says SHELL=/bin/sh # mail any output to 'paul', no matter whose crontab this is MAILTO=paul # # run five minutes after midnight, every day 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1
# run at 2:15pm on the first of every month -- output mailed to paul
15 14 1 * * $HOME/bin/monthly
# run at 10 pm on weekdays, annoy Joe
0 22 * * 1-5 mail -s "It's 10pm" joe%Joe,%%Where are your kids?%
23 0-23/2 * * * echo "run 23 minutes after midn, 2am, 4am ..., everyday"
5 4 * * sun echo "run at 5 after 4 every sunday"
Sunday, November 25, 2012
5 tips to get Amazon promo codes
So, you want to save money while shopping on Amazon? Have you been searching all over the internet to find some promo codes? Here are some useful tips to get Amazon Promo codes. Trust me , it works:
1. Subscribe to Amazon's news feeds. You might find promotional claim codes from Amazon.com in newspapers and magazines, in shipments, or in e-mails that they send to you. The codes are generally posted at the beginning of every month. So lookout for the ones that match your requirements.
2. There are a plenty of websites in the internet that provide authentic promo codes. For me personally, the Amazon promotional codes at www.coupongravy.com and www.retailmenot.com have helped. That does not mean that these are the only two authentic sites around!
3. In this world of social networking, Twitter, Facebook, google+ can be be a great source to get leads on Amazon promotional codes. Make use of them and enjoy the benefits!
4. Search in Youtube and blogging sites for amazon promo codes. Some people create videos on Youtube with the various codes and coupons that you can use.
5. Last but not the least, subscribe to the RSS feed of bloggers who compile the list of latest Amazon promotional codes. Also keep on the lookout for secret discount codes. There are a few sites that act as a source for these. Search for them on the internet!
Enjoy your shopping!
Did you find another way to get promo codes? Let us know...List them in the comments section
Thursday, August 16, 2012
Carpet area vs Built up area vs Super builtup area
Carpet are:
It is the actual area under the roof. carpet area is the area calculated from wall to wall inside the house, this would include steps if any, inside the house.
Built up area:
Built up area is the carpet area + area covered by thickness of walls+ balconies etc. As a general rule built up area is around 8% to 10% more than carpet area.
Super builtup area
Super built up area is a unique money making concept by builders in apartment complexes. This is built up area + (area occupied by common amenities like lifts, corridors, awnings, club house, stairs)/ number of appts. Rule of thumb - super built up is around 28 to 30% more than carpet area. However in some cases it can be upto 50% more.
Source : yahoo.com
Subscribe to:
Posts (Atom)