Copy text without formatting (as plain text) in Firefox

Ever wanted to copy and paste text from a website without the need for its formatting, e.g. copying some colored text with large font from a website and pasting it inside your gmail account? If so, then this add-on is for you: https://addons.mozilla.org/en-US/firefox/addon/134

After installing and restarting your firefox, right-click on any selected text and choose “Copy as plain text” and then paste it anywhere.

Tagged , , | Leave a comment

How to install Guest Additions for Ubuntu Guest in Virtualbox

Guest Additions are very useful in VirtualBox (or any other virtualization software in general), it installs virtual adapters for your hardware and enables the following:

  • Better graphics support (very useful when resizing the desktop or changing the guest’s resolution)
  • Folder sharing between the host and the guest (you can refer to this article for a how-to)
  • Mouse Integration

Maybe other features as well which I don’t know. To install the guest addtions, you can simply follow the following five steps:

  1. Click Devices->Install Guest Additions, this will mount a virtual cdrom containing the files from which we will install the guest addtions.
  2. Open a terminal and navigate to the folder containing the guest additions “cd /media/cdrom”
  3. Run the guest addition installer “sudo sh VBoxLinuxAdditions-x86.run”
  4. Wait till the additions are installed and the kernel modules are compiled, note that this may take a few minutes.
  5. Restart the Ubuntu guest.

This article is dedicated to my cousin Midoooz, to use it in his first virtual machine 🙂

Tagged , , | Leave a comment

Install Google Gears on Firefox on Ubuntu Karmic

So simple:

  1. Don’t install from the website, it will – till the time of this article – give you an error message that your browser isn’t supported
  2. Install the “gears” package, e.g. open a terminal and type “sudo apt-get install gears” 
  3. Restart your browser
  4. QED 🙂
Tagged , , | Leave a comment

Bash Switch statement

If you have some server that need some script that control it (such as scripts found in /etc/init.d), here’s that script:

open a text file and put the following in :

#! /bin/sh
case "$1" in
start)
echo "START";
## command to start your server
;;
stop)
echo "STOP";
## command to stop your server
;;
*)
echo "Usage : $0 {start|stop}"
exit -1;
esac

Then of course

chomd +x <file_name>

And you’re done.

Tagged , , | Leave a comment

The Log Event responsible for logging user actions in Siebel

To add which user and what he/she was doing exactly to the log files, raise the log level for the event “EventContext”, e.g. “change evtloglvl EventContext=log_level for comp component_name“, remove the “comp” keyword if you want it for all components.

Tagged , | Leave a comment