Add “Send files to email” item to right click menu on Dolphin and Konqueror

Hey :)

One of the useful features when you are using email clients, is “adding attachment(s)” item in right click menu.

Send files to email

Send files to email

This feature does not exist in default KDE 4.x version but adding this item is really piece of cake:

First, go to the service directory:

cd ~/.kde/share/kde4/services

Create file `email.desktop`:

touch email.desktop

Add below configuration commands.

for KMail

[Desktop Entry]
Type=Service
Icon=dolphin
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles

Actions=Send_to_KMail
X-KDE-menu=Email
X-KDE-Priority=TopLevel

[Desktop Action Send_to_KMail]
Name=Send file(s) with KMail
Exec=kmail --attach %U
Icon=kmail

for Thunderbird

[Desktop Entry]
Type=Service
Icon=dolphin
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles

Actions=Send_to_Thunderbird
X-KDE-menu=Email
X-KDE-Priority=TopLevel
Encoding=UTF-8
ServiceTypes=all/all

[Desktop Action Send_to_Thunderbird]
Name=Send file(s) with Thunderbird
Exec=thunderbird -P guest -compose "attachment=file://%U"
Icon=thunderbird

Now save the file and reopen the Dolphin file manager.
done!

Good luck

Ubuntu 9.10 Karmic Koala Release Party In Tehran

Hello :P

Ubuntu 9.10 Karmic Koala Release Party will be held in Tehran, Iran soon:

Ubuntu 9.10 Karmic Koala Release Party

Ubuntu 9.10 Karmic Koala Release Party

Date: Thursday, Nov 12, 2009 from 9 to 14
Location: Forum Conference martyr Ghandi, Opposite St. Hoveyze, above the intersection martyr Ghoddosi (Castle), Shariati St. – Tehran, Iran

More information

P.S.
Above is designed by Sedigheh Ahmadi.

I hope to see you in Party :D

How to extract embedded images from .xls, .ods or .odt

icon_openoffice
Hi :)

It’s simple. Just 4 steps:

  1. Save a copy of the file as ODS (OpenOffice.org Spreadsheet).
  2. Change the filetype of the copy to ZIP (for example rename File.xls to File.zip).
  3. Open the ZIP.
  4. In the directory called Pictures will be the images, just as in the original.

How to posting to Identi.ca from the CLI

terminal - cli
Hi :)

Identi.ca is an open source social networking and micro-blogging service.
I like Ideni.ca. It’s good service.

I use CLI (command line) everyday. I like to dented from it. It’s simple.
Just install cURL:

$ sudo apt-get install curl

And type:

$ curl -u username:password -d status="message" http://identi.ca/api/statuses/update.xml

You will receive a response containing the XML coding for your post which acts as a confirmation that your post was submitted.

Also you can create a shell file for this
Open a new text document and add the following, save it as identica.sh (or anything ending in sh):

#!/bin/bash
curl -u username:password -d status=″$1" http://identi.ca/api/statuses/update.xml

Make sure you change the chmod to 777 using the following command.

$ chmod 777 /path/to/file/

When you located the file (or add a bash prompt) it makes it simplier to identi.ca the rules. For example you can type the following to command to link to the file.

$ ./path/to/idetica.sh "Message"

How to get special lines data from file (Linux)

If you want to get file’s head lines, you can use:

$ head FILE

If you want to get file’s footer lines, you can use:

$ tail FILE

If you want to print some line that they not in first part or last part of file, you can use:

$ more +num10 FILE | head -n20

The above command print from line 10 to 30 (20 lines) of FILE