Shared Folder and Multiple Files Upload in Google Docs

This item was filled under [ Internet ]

Today, just after I logged in to my Google docs account, I noticed that there is a new tab just below the folders section.

Google Docs Shared Folder

Google Docs Shared Folder

The smart engineers of Google finally added an option to share the whole contents of the folder. You can share the folder to one person or to a whole group, either giving them user or admin privileges.

The Folder Icon was changed after sharing.

The Folder Icon was changed after sharing.

This is really a welcome addition to the better-alternative-to-ms word processor.

Other than the sharing of folders feature, Google Docs also added the ability to upload multiple documents at once. At last, I can now convert all my files to Google Docs with ease, making them accessible anywhere in the world.

Uploading Multiple Files in Google Docs

Uploading Multiple Files in Google Docs

I’m not sure on what is the max number of documents that can be uploaded on a single time. I will try this in the days to come.

Hmm, it seems that those multiple files can only be uploaded to one destination folder. I propose that they put an option to select which destination folders  for each individual files to be uploaded.

  • Share/Bookmark
Tagged with: [ , , , ]

Plan Ahead Before Super Typhoon Bagyong Pepeng Hits

This item was filled under [ Life ]

With the recent calamity of Ondoy, and the upcoming new typhoon Pepeng, preparing for it should be done well ahead of time.

First things first: Basic Commodities.

Clean drinking water – we can live for days without food but not without water
Canned Foods – Don’t stock frozen meat/food. Power failures after a calamity might last for days. Also don’t forget to have can openers :)
Plastic-ware / Paper Plates – in case of evacuation, you won’t need water to rinse plates.
First Aid Kit / Basic Medicine – Make sure you have adequate supply of paracetamols and antibiotics.
Flashlight and batteries / portable radio
Paper Towels and Garbage Bags

What to Plan Ahead:

1. As much as possible, stay home on the day of the typhoon. Bagyong Pepeng will make landfall on Saturday.

2. Stay tuned on the most recent news regarding the upcoming typhoon. If the local government say you evacuate, lock your doors and leave your house. I’m pretty sure they aren’t kidding.

3. Make or Update your list of all important telephone numbers, both on local land-line and cellular networks. Example would be police, ambulance, firetrucks, media TV and radio emergency hot-lines, etc.

4. If your place is flood-prone, park your car to a safe location where you are sure that it won’t be reached by floodwater.

5. Full charge your cellphone, emergency lamps and portable radio. We’re not sure how long a blackout may occur.

  • Share/Bookmark
Tagged with: [ , ]

HP-UX: Replace and Add Gateway Without Reboot

This item was filled under [ HPUX, Solaris ]

Network gateways can be added or replaced without rebooting your server by using the route command.

To remove old gateway ip address.
# route delete default <old.gateway.ip.add> 1
To add the new gateway ip address.
# route add default <new.gateway.ip.add> 1
Please make sure to place the 1 at the end of the route command. This is a hop count value and must always be at least 1. If you accidentally forgot to place the 1, this will result to an error as the default value if it is 0.

If you want it to be presistent after reboot, add the ip address entry to /etc/rc.config.d/netconf .

  • Share/Bookmark

HP-UX: How To Remove Volume Groups Easily

This item was filled under [ HPUX ]

You can actually remove a VG (Volume Group) by just using two commands (actually 4 commands if you include the umount and editing the fstab). Before, I usually did the tedious task of removing the LUNs in the VG one by one using the command pvremove, then vgremove. You can check it in my previous post of removing lvm in hp-ux.

To remove a volume group follow the four steps below:

1. First unmount the all filesystem from its logical volumes in the volume groups.

# bdf /opt/java1.4
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg_apps/lv_java1.4
262144  134372  119819   53% /opt/java1.4

# umount /opt/java1.4

2. When all the filesystems are unmounted, deactivate the volume groups using the command vgchange.

# vgchange -a n /dev/vg_apps

3. After the VG has been deactivated, you may now remove the VG by using vgexport.

# vgexport /dev/vg_apps

You may pvremove all the LUNs/Disks that were removed to delete the LVM headers from the physical disks. This will insure that disk can’t be vgimported back.

  • Share/Bookmark
Tagged with: [ , , , , , , ]

HP-UX: Grep Whole Words Only

This item was filled under [ HPUX ]

This is a simple tip to grep whole word only and disregard other lines with the same match.

To differentiate the grep commands, I created a file named file.txt containing the 4 lines below.


$ cat file.txt
word
secondword
1 word
word space

Using the normal grep without options, this will show all the four line containing the word word.


$ grep word file.txt
word
secondword
1 word
word space

Now by adding the option -w, this will only display the lines that have the whole word only. Note that this only works on HP-UX11.11 and above.

$ grep -w word file.txt
word
1 word
word space

Using the ^ and $ to indicate the first and last character, this will print the line that has only the word word in it.

$ grep ^word$ file.txt
word

  • Share/Bookmark
Tagged with: [ , , , ]