Commissioning and transfer to Zebardast.ir/en

October 30, 2009

Hello :)

After some time away from blogging I decided that move my blog from zebardast.wordpress.com to zebardast.ir/en.

You can follow me there :P

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

May 14, 2009

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

February 16, 2009

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)

January 14, 2009

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

Marry Xmas & Happy New Year

January 2, 2009

Dear Friends in name of Peace, Love and Community

I wish You:

Marry Christmas & Happy New year.

Merry Christmas and a Happy New Year 2009

Language: Merry Christmas and Happy New Year

Persian

(kerismas mobārak) كریسمس مبارک

(sale no mobārak) سال نو مبارک

Afrikaans

Geseënde Kersfees en ‘n gelukkige nuwe jaar

Geseënde Kersfees en ‘n voorspoedige Nuwe jaar

Akeanon

Maayad-ayad nga Paskwa

Mahigugmaon nga Bag-ong Dag-on kinyo tanan!

Albanian

Gëzuar Krishtlindjet e Vitin e Ri

Aleut

Kamgan Ukudigaa

Alsatian

E güeti Wïnâchte un e gleckichs Nej Johr

Amharic

(Melikam yelidet beale Melikam Addis Amet)

Apache (Western)

Gozhqq Keshmish

Arabic (Modern Standard)

اجمل التهاني بمناسبة الميلاد

و حلول السنة الجديدة

(Ajmel altehani bemonasebt almīlad wa helol alseneh

aljedīdah)

(kullu sina winta t̴ayyib – to a man) كل سنة

وانت طيّب

(kullu sina winti t̴ayyiba – to a woman) كل سنة

وانت طيّبة

Armenian (Eastern)

Շնորհավոր Ամանոր և Սուրբ

Ծնունդ

(Shnorhavor Amanor yev Surb Tznund)

Armenian (Western)

Շնորհաւոր Նոր Տարի եւ Սուրբ

Ծնունդ:

(Shnorhavor Nor Daree yev Soorp Dzuhnoont)

Բարի կաղանդ և ամանոր (Paree gaghant

yev amanor)

Aromanian

Cãrciun hãrios (Hristolu s-aflà! Dealihea cà

s-afla!)

shi ti multsã-anji Anlu Nàù!

Asturian

Bones Navidaes y Gayoleru añu nuevu!

Aymara

Sooma Nawira-ra

Azerbaijani

Tezze iliniz yahsi olsun

Basque

Zorionak eta urte berri on

Belarusian

З Божым нараджэннем (Z Bozym

naradzenniem)

Сзцзаслівыцг Каліадау (Szczaslivych

Kaliadau)

З Новым годам i Калядамi (Z Novym

godam i Kaliadami)

Bengali

শুভ বড়দিন (shubho bôṛodin)

শুভ নববর্ষ (shubho nôbobôrsho)

Bikol

Maogmang Pasko

Mamura-way na Ba-gong Taon sa indo gabos!

Blackfoot

ᖱᒣᖳᒐᒉᑊᖿᒪᔪᖱᖽᐧᒡᒧᐧᖾᒍ

(i’taamomahkatoyiiksistsikomi)

Bosnian

Cestit Bozic i Sretna Nova godina

Breton

Nedeleg laouen ha bloavezh mat

Bulgarian

Честита Коледа! (Čestita Koleda!)

Щастлива Нова Година (Štastliva Nova

Godina)

Catalan

Bon Nadal i feliç any nou

Cebuano

Maayong Pasko

Mabungahong Bag-ong Tuig kaninyong tanan!

Chamorro

Felis Nabidat yan Felis Año Nuebo

Cherokee

ᏓᏂᏍᏔᏲᎯᎲ & ᎠᎵᎮᎵᏍᏗ ᎢᏤ

ᎤᏕᏘᏴᎠᏌᏗᏒ

(Danistayohihv & Aliheli’sdi Itse Udetiyvasadisv)

Cheyenne

Hoesenestotse & Aa’eEmona’e

Chinese

(Cantonese)

聖誕節同新年快樂 (singdaanjit tùnhg sànnìhn

faailohk)

恭喜發財 (gung héi fáat chōi) – used at Chinese

New Year

Chinese

(Hakka)

聖誕節快樂, 新年快樂 (shin5-tan5-ziet7

kwai5-lok8, sin1-ngien2 kwai5-lok8)

恭喜發財 (giung1 hi3 fat7 coi2) – used at Chinese

New Year

Chinese

(Mandarin)

聖誕快樂 新年快樂 [圣诞快乐 新年快乐]

(shèngdàn kuàilè xīnnián kuàilè)

恭喜發財 [恭喜发财] (gōngxǐ fācái) – used

at Chinese New Year

Chinese

(Shanghainese)

圣诞节快乐 (sendaijiq kualoq)

新年快乐 (sinni kualoq)

Chinese

(Teochew)

圣诞快乐 新年快乐 (siandang kuailak singnin

kuailak)

Choctaw

Yukpa, Nitak Hollo Chito

Comanche

Tsaa Nu̶u̶sukatu̶̲ Waa Himaru̶

Cornish

Nadelik Lowen ha Blydhen Nowydh Da

Nadelik Looan ha Looan Blethen Noweth

Nadelack looan ha looan blethan noueth

Cree

ᒥᑐ ᒪᑯᓯ ᑫᓯᑲᓐᓯ

(Mitho Makosi Kesikansi)

Creek

Afvcke Nettvcakorakko

Croatian

Sretan Božić!

Sretna Nova godina!

Czech

Veselé vánoce a šťastný nový rok

Danish

Glædelig jul og godt nytår

Dutch

Prettige kerstdagen en een Gelukkig NieuwJaar!

Zalig kerstfeest en gelukkig nieuwjaar

East Inuktitut

Quviasummi Quviasugitsi/Quviasuvvisiutsiarit ammalu

Qitinngumarik!

Esperanto

Bonan Kristnaskon kaj feliĉan novan jaron

Estonian

Rõõmsaid Jõule ja Head Uut Aastat

Häid Jõule ja Head Uut Aastat

Faroese

Gleðilig Jól og eydnuríkt nýggjár

Gleðilig Jól og gott nýggjár (frm)

Gleiðilig jól og eitt av harranum signað nýggjár

Fijian

Me Nomuni na marau ni siga ni sucu dei na yabaki vou

Finnish

Hyvää joulua ja onnellista uutta vuotta

Flemish

Zalig Kerstfeest en Gelukkig nieuw jaar

Frisian

Noflike Krystdagen en folle lok en seine

French

Joyeux Noël et bonne année

Friulian

Bon Nadâl e Biel An Gnûv!

Galician

Bo Nadal e próspero aninovo

Georgian

გილოცავთ შობა-ახალ

წელს (gilocʻavtʻ šoba-axal cels) – frm

გილოცავ შობა-ახალ

წელს (gilocʻav šoba-axal cels) – inf

German

Frohe/Fröhliche Weihnachten

und ein gutes neues Jahr / ein gutes Neues / und ein

gesundes neues Jahr / und einen guten Rutsch ins neue

Jahr

Frohes Fest und guten Rutsch [ins neue Jahr]

German (Bavarian)

Froue Weihnåcht’n, und a guad’s nei’s Joah

German (Hessian)

Frohe Weihnachte unn ein gudes neus Jahr

German (Swiss)

schöni Fäschttäg / schöni Wienachte

und e guets neus Jahr / en guete Rutsch is neue Johr

German (Pennsylvania)

En frehlicher Grischtdaag un en hallich Nei Yaahr

Greek

Καλά Χριστούγεννα και

Ευτυχισμένο το Νέο Ετος

(Kala Khristougenna kai Eutukhismeno to Neo Etos)

Καλὰ Χριστούγεννα καὶ καλὴ

χρονιά!

(Kalá hristoúgena ke kalí hroniá)

Greenlandic

Juullimi ukiortaasamilu pilluaritsi

Hausa

barka da Kirsimatikuma barka da sabuwar shekara

Hawaiian

Mele Kalikimaka me ka Hauʻoli Makahiki Hou

Hebrew

חג מולד שמח ושנה טובה

Chag Molad Sameach v’Shanah Tovah

Hiligaynon

Malipayon nga Paskwa

Mahamungayaon nga Bag-ong Tuig sa inyong tanan

Hindi

शुभ क्रिसमस (Śubh krisamas)

नये साल की हार्दिक

शुभकामनायें (Naye sāl kī

hārdik śubhkāmnayeṅ)

Hungarian

Kellemes karácsonyt és boldog új évet

Icelandic

Gleðileg jól og farsælt komandi ár

Gleðileg jól og farsælt nýtt ár

Ilokano

Naragsak a Paskua

Narang-ay a Baro a Tawen kadakayo amin!

Indonesian

Selamat Hari Natal dan Tahun Baru

Inonhan

Malipayon nga Paskwa

kag Masadya nga Bag-ong Tuig sa inyo tanan.

Inuktitut

ᑯᕕᐊᓇᒃ ᐃᓄᕕᐊ (Kuvianak Inovia) – Merry

Christmas

Iñupiaq

Quvianagli Anaiyyuniqpaliqsi suli Nakuuluni

Ukiutqiutiqsi

Inupiatun

Annaurri Aniruq-lu Paglaun Ukiutchiaq!

Quvianaq Agaayuniqpak-lu Paglaun Ukiutchiaq!

Nayaangmik Piqagiñ-lu Paglaun Ukiutchiaq!

Irish (Gaelic)

Nollaig shona duit (Happy Christmas to you)

Beannachtaí na Nollag (Christmas Greetings)

Beannachtaí an tSéasúir (Season’s Greetings)

Athbhliain faoi mhaise duit (Prosperous New Year)

Bliain úr faoi shéan is faoi mhaise duit (Happy New

Year to you)

Italian

Buon Natale e felice anno nuovo

Japanese

メリークリスマス (merī kurisumasu)

New Year greeting – ‘Western’ style

新年おめでとうございます (shinnen omedetō

gozaimasu)

New Year greetings – Japanese style

明けましておめでとうございます

(akemashite omedetō gozaimasu)

旧年中大変お世話になりました (kyūnenjū

taihen osewa ni narimashita)

本年もよろしくお願いいたします (honnen

mo yoroshiku onegai itashimasu)

Jèrriais

Bouan Noué / Jouaiyeux Noué et Bouonne année

Un Bouan Noué et lé Nouvel An!

Judeo-Spanish / Ladino

Noel alegre i felis anyo muevo

Kapampangan

Masayang Pasku

Masaplalang Bayung Banwa keko ngan!

Kazakh

Жаңа жыл құтты болсын! (Jaña jıl

quttı bolsın!) – inf

Жаңа жылыңыз құтты болсын! (Jaña

jılıñız quttı bolsın!) – frm

(Happy New Year)

Kinyarwanda

Noheri nziza n’umwaka mushya muhire!

Kirghiz

Жаратканнын туысымен Жана

Жылыныз кутты болсын

(Žaratkannyi tuysymen Žana Žylynyz kutty bolsyn)

Klingon

QISmaS DatIvjaj ‘ej DIS chu’ DatIvjaj (sg)

QISmaS botIvjaj ‘ej DIS chu’ botIvjaj (pl)

Korean

메리 크리스마스 잘 지내고 새해 복 많이

받으세요

(meli kliseumaseu jal ji naego saehae pog manhi

pateuseyo)

Kurdish (Kurmanji)

Kirîsmes u ser sala we pîroz be

Kurdish (Sorani)

Kirîsmes u salî nwêtan lê pîroz bê

Latin

Natale hilare et annum faustum

Latvian

Priecīgus Ziemassvētkus un laimīgu Jauno gadu

Lithuanian

Linksmų Kalėdų ir laimingų Naujųjų Metų

Luganda

Mbagaliza Christmass Enungi Nomwaka Omugya Gubaberere

Gwamirembe

Luxembourgish

E schéine Chrëschtdag an e glécklecht neit Joer

Schéi Feierdeeg an e glécklecht neit Joer

Schéi Chrëschtdeeg an e gudde Rutsch an d’neit Joer

Macedonian

Среќен Божик и среќна Нова

година (Sreken Bozhik i srekna Nova godina)

Malagasy

Mirary noely sambatra

Arahabaina tratrin’ny taona vaovao

Malay

Selamat Hari Natal (Christmas)

Selamat Tahun Baru (New Year)

Malayalam

(nava-valsara āshamsakal) – Happy New Year

Maltese

Il-Milied Ħieni u s-Sena t-Tajba

Awguri għas-sena l-ġdida

Manx

Nollick Ghennal as Blein Vie Noa

Māori

Kia orana e kia manuia rava i teia Kiritimeti e te

Mataiti Ou

Marathi

शुभ नाताळ (Śubh Nātāḷ)

नवीन वर्षच्या

हार्दिक शुभेच्छा (Navīn

varṣacyā hārdik śubhecchā)

Mongolian

Танд кристмас ба шинэ жилийн

мэнд хүргэе

(Tand kristmas ba shine jiliyn mend khürgeye)

Navajo

Ya’at’eeh Keshmish

Nepali

क्रस्मसको शुभकामना

तथा नयाँ वर्षको

शुभकामना

(krismas ko subhakamana tatha nayabarsha ko

subhakamana)

Norwegian

God jul og godt nytt år (Bokmål)

God jol og godt nyttår (Nynorsk)

Occitan

Polit Nadal e bona annada

Ogoni

Eenyie Mea Krist Ne Eenyie Aagbaa

Old English

Glæd Geol and Gesælig Niw Gear

Pangasinan

Maabig ya Pasko

Maaligwas ya Balon Taon ed sikayon amin!

Papiamentu

Bon Pasku i Felis Anja Nobo

Persian

(kerismas mobārak) كریسمس مبارک

(sale no mobārak) سال نو مبارک

Polish

Wesołych Świąt i Szczęśliwego Nowego Roku!

Portuguese

Feliz Natal e próspero ano novo / Feliz Ano Novo

Boas Festas e Feliz Ano Novo / Um Santo e Feliz Natal

Punjabi

ਕਰਿਸਮ ਤੇ ਨਵਾੰ ਸਾਲ

ਖੁਸ਼ਿਯਾੰਵਾਲਾ ਹੋਵੇ

(karisama te nawāṃ sāla khušayāṃwālā hewe)

Quenya

Alassëa Hristomerendë! Alassëa Vinyarië!

Romansh

(Sursilvan dialect)

Legreivlas fiastas da Nadal e bien niev onn!!

Romanian

Crăciun fericit şi un an nou fericit

Russian

С Рождеством Христовым и С

наступающим Новым Годом

(S Roždestvom Khristovym i S nastupayuščim Novym

Godom)

The first real snow in Saadabad, Tehran

December 16, 2008

Finally, I saw first real winter snow in Saadabad, Tehran. It’s beautiful. I taken photos :)
You can see them here.

Day:
_mg_6803resized

picture-475resized

And night:
00021resized

00022resized

00026resized

00027resized

Ubuntu 8.10 release party held in Tehran, Iran

November 29, 2008

ubuntu logo
Hi All,

Ubuntu 8.10 Intrepid Ibex release party held in Tehran, Iran.

Iranian Ubuntu Team

Iranian Ubuntu Team

Ubuntu-ir Digest, Vol 9, Issue 1

Hiya,

The Iranian Local Community had their greatest ever Ubuntu Release Party in
Tehran with more than 100 attendee and celebrated Ubuntu-ir’s 2nd
anniversary!
The Iranian Team started their public work with Ubuntu 6.10 release and soon
became a big mature Open Source promoter team in the area and now with more
than 3000 users in forums and ~80 posts per day is a very fast growing
comunity.

We’ve had 8 Presentations in this release party. Ubuntu 8.10 features tour,
Kubuntu 8.10 features tour, Joomla CMS Introduction, Zekr project
Introduction, Desktop effects in Ubuntu & Kubuntu, Ubuntu Server
presentation, Linux Kernel comipation howto and finally the Iranian team
future plan and roadmap.

I would like to thank all contributers, all talkers, and Farhang Saraye
Rasane again for the conference room.
You guys all rock and did a great job, THANKS A LOT :-)

The whole Story, Photos and Presentations:
http://wiki.ubuntu.ir/IntrepidIbexReleaseParty

Cool figures ;-)
Ubuntu 7.04 Release Party: 15 attendee
Ubuntu 7.10 Release Party: 25 attendee
Ubuntu 8.04 Release Party: 50 attendee
Ubuntu 8.10 Release Party: 100 attendee
Ubuntu 9.04 Release Party: ???

Bests,

Yours Sincerely, Mehdi Hassanpour

Good luck

Install Oracle Instant Client and PHP OCI8 module

August 10, 2008

If you want to connect to an Oracle database with PHP, you can use Oracle’s Instant Client and the oci8 module from pear.

Download the Basic and the SDK packages from oracle.com. At the time of this writing, the filenames are instantclient-basic.zip and instantclient-sdk.zip.

Unzip these files in a new directory, e.g. /opt/oracle/instantclient.

Code:

sudo su 
mkdir -p /opt/oracle/instantclient
cd /opt/oracle/instantclient
unzip instantclient-basic.zip
unzip instantclient-sdk.zip
echo /opt/oracle/instantclient >> /etc/ld.so.conf
ldconfig

The previous two lines are supposed to create symlinks named libclntsh.so and libocci.so which we will need later. In my case these symlinks were not created by ldconfig, so I created them manually.

Code:

ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so

In the next step we will download the oci8 module with pear. Pear is in the php-pear package.

Code:

apt-get install php-pear

Also, you need php5-dev and build-essential packages for compiling oci8 module.

Code:

apt-get install php-pear php5-dev build-essential

“Normally” we should be able to just use pecl install oci8 now, but apparently pear is not able to figure out where the instantclient libraries are. So we will just download the oci8 module and build it on our own.

Code:

mkdir -p /usr/local/src
cd /usr/local/src
pecl download oci8
tar xzf oci8-1.3.4.tgz
cd oci8-1.3.4
phpize
./configure --with-oci8=shared,instantclient,/opt/oracle/instantclient
make
make install

The oci8-1.3.4.tgz filename will of course change for newer releases.

To enable the oci8 module in the php.ini (/etc/php5/apache2/php.ini and /etc/php5/cli/php.ini), add a line
Code:

extension=oci8.so

(put this line after the examples starting with ;extension).

Now stop and start Apache. You should see the oci8 module in the output of phpinfo().

Good luck

Hardy Party held in Tehran, Iran

May 23, 2008

Ubuntu
Hi All,

Ubuntu 8.04 Hardy Heron release party held in Tehran, Iran.

From Ubuntu 8.04 Hardy Heron Release Party

Ubuntu-ir Digest, Vol 8, Issue 3:

Hi all,

Yesterday the Iranian Team had a great hardy party held in Tehran. Although
it was the uni. exams time/date more than 50 attended the party and made a
great day for the Team.

We’ve had 5 presentation: Ubutnu Installation, Kubuntu 3.5 Tour, KDE 4
features and Tour, Desktop Effects in Ubuntu, Ubuntu Overview and Hardy
Tour, Iranian Team report and future plan.
We had also K/ED/Ubuntu CD, DVD, sticker, MUGs distribution.

I hope we can plan for an Install Fest in near future, since we really need
more face to face talk and free chatting.

And I would like to thank all contributers, all talkers, and Farhang Saraye
Rasane for the conference room. You guys all rock and did a great job,
THANKS A LOT :-)

Shots:
http://picasaweb.google.com/saeid.zebardast/Ubuntu804HardyHeronReleaseParty
The whole story and Presentations:
http://wiki.ubuntu-ir.org/Meetings/13870302

Bests,
Mehdi Hassanpour

Good luck

Nested X11 environment session

April 7, 2008


Hi :)

Instead of using a full-blown new virtual X for developing software you can use Xephyr to embed your KDE 4 session into your working KDE 3 or other X11 environment.

If you want to get a minimal KDE session up and running, just launch Xephyr (available in Kubuntu as xserver-xephyr; Gentoo users compile x11-base/xorg-server with USE=”kdrive”):

Xephyr :1 -extension GLX &

You can now launch KDE:

export DISPLAY=:1
/path/to/kde4/bin/startkde &

For other X11 environment just change /path/to/kde4 like:

/usr/bin/startx &

or

/usr/bin/startkde &

or

/usr/bin/startxfce&

You can use “locate” command to find paths like:

locate startkde

Appendix
Happy Nowruz 1387 (Iranian new year holiday)

Good Luck


Follow

Get every new post delivered to your Inbox.