Sunday, July 1, 2007

Agave - a must have tool for ubuntu web designers

In these days I am doing my exams and also working on several serious articles for ubuntu (so be in touch !) but I have come up with a quick update, a necessary color tool for web designers under ubuntu.

Have you ever seen a nicely colored web page, and wondered about the web designer? Whether or not he sat down and thought about what colors would correlate and create harmony?



Agave is a great color scheme generator for your web pages programs or even your house's room, there you choose a color and it gives you all colors in harmony with it and you can ask it to give you brighter or darker set of same color.

Generate Random Color - Get Inspiration

It is so useful, sometimes you are out of idea, and need some inspiration, so just generate random set of colors (with ctr+R) until you feel you like it , you can 'bookmark' the color schemes to your 'favourites' .

Get the Code
After choosing your color, you can get the RGB CODE to use in html just by right clicking on the color and copying it. (no web designer memorizes color codes)

More :


as you see you can choose colors from
Gnome colors (Be in harmony with gnome's default colors)

Web-safe colors (some colors appear differently on different browsers, they are not web safe colors . )


Install it by this command :
sudo apt-get install agave

Monday, June 18, 2007

Is it visitor's right to block writer's ads?

here is my chat with a friend :
Shewdiz: I had 500 visitors and NO click on my ads...
Shewdiz: :(
Peter: I don't even see your ads
Shewdiz: really ?
Peter: adblock plus removes them all
Shewdiz: u shouldn't use that extention
Peter: why ?
Shewdiz: f** you ppl.
Peter: swear once more and I block you, ok?
Shewdiz: I work hard and I deserve something ! I need money.
Peter: I don't, but I don't like being insulted for nothing
Shewdiz: poor writers make articles so you see their advertises
and u are cheating
by using Ad Block
Peter: cheating?
Shewdiz: yeah, its like fucking a girl without loving her
I wish I could write a script which ppl who are using adblock extention cant enter my blog
they should go to hell, I really wish they go to hell, they are using my blog and they don't even feel like seeing a pice of small ads on my blog . I need money I work hard I desreve !
Peter: you are not very likely to get sympathies if you insult people
Shewdiz: ok :(
Shewdiz: I should go and die. you are right !

What do you think, do you think it is user's right to block a poor writer's advertisement who is working so hard to run his life ? does seeing a piece of small ad on the corner of his article hurt you that much ?

I as the writer of this blog, tell you people, if you don't like to see advertise on my blog, you should not come to my blog, if you are using AdBlock Extention and read my articles, then I think you are entering my house without my permission . Actualy you are having sex with my daughter without loving her .

I am gonna make a logo and put it on top of my blog "if you have Adblock you should get the hell out of here"

I really like to know what is your opinion on this matter , is it readers right to block writer's ads?

+ I wish those who made AdBlock Extention suffer from hunger and have no house to live, and no food to eat, Amen !


UPDATE : EVOLUTION IN MY THINKING

ok guys I want to let you know about how I think now.as you know I am a human and humans think and their thinking changes . thanks for all who commented and told me their opinions, everybody without exception disagreed with me, some people behaved me so bad (sent me nasty comments !)

I think I am gonna stop thinking about making money out of ads
I am gonna find better ways, as I have said before, I am writing some great articles for ubuntu, I hope they help me become known in the ubuntu world .

Today I learnt something, and I write it down here so I never forget it,

Do not fight people, even if you are right, people are always stronger, you have to get along with people.

Sometimes I am wrong but I can convince people to be with me and I win !

Sometimes I am right and I stand against people (who are wrong) and I loose !

that's a sad fact that I have to learn. thank you for all your comments. I will be more understanding in the future. Thank you for reading my blog. Please suggest ideas for future posts.

Friday, June 15, 2007

All ubuntu's torrent clients (overview)


As you know torrents are a common way of sharing and downloading stuff, In this article you will read about my experience on all available torrent clients for Ubuntu including screenshots, I also introduce a web-based one :


BitTornado

if you dont use torrent that much and you dont download multiple torrents, then I recommend BitTornado, which is an enhaced version of the default Bitorrent ,
it is simple small stable program which does the job without using much cpu/memroy and crushing.

Only annoying things is ,it doesn't go to tray on hitting close, but you can force it to go to tray using AllTray.

you can install it using synaptic package managergo back to the menu



Azureus

Azureus is full featured Java Based torrent client,
it is so known and probably most recommended by communities but I do NOT recommend it at all. because, it is extremly slow and it uses a lots of your CPU and memory. Azerus is slow on both windows and ubuntu, because it uses Java .

as I don't recommend Azureus, then "no screenshot for Azereus !"
You can install it using Automatix go back to the menu


Ktorrent
  • Ktorrent does "everything" that a torrent client can do .
  • It has a good looking appearance.
  • It has a tray icon. (goes to tray on hitting close botton)
    and you can start or stop torrents in the tray (as you see bellow) .
  • You can preview downloading files .
  • You can choose selected files inside a torrent to be downloaded first or not to be downloaded (I love this feature).


Ktorrent is a way faster than Azerues, but still uses a feelable amount of cpu and memory, and it is because it is a KDE program (not a native gnome) if you want a full featured torrent, I recommend Ktorrent.go back to the menu





Deluge

  • It intends to be Ktorrent for Gnome (using GTK+ and Paython).
  • It loads so fast (beats Ktorrent in cpu/memory usage)
  • It is is not beautiful . (it is ugly)
  • It has a tray icon, but there is not much you can do with the tray icon (like start/stop torrents in tray icon.)
  • You can choose selected files inside a torrent not to be downloaded , but unlike Ktorrent you can not choose them to be downloaded first .
  • It doesnt have built in preview feature.

Deluge guys are doing a great job, because I really care about the speed of the programs and the amount of cpu/memory they use .
Deluge is under developing, I will be checking every new version, I hope soon it can be as good as Ktorrent. (I hope they read my blog and add the features I listed)

+ You can install it using Synaptic package manager .
+ Here is Deluge's website.go back to the menu



TorrentFlux a web based one!

This one is another kind of torrent cilents, it is PHP based cilent,
means you can intall it on your hosting server, and download torrents using your hosting's fast internet, It is usefull for me , because I have slow internet, I download the torrents to my hosting using torrent flux, I believe there are many other usages of a web based torrent client which u can discover .

here is how it looks in browser :

  • It is open source.
  • You can limit upload speed.
  • You can see the download speed,free space and other information.
  • You can select specific files not to be downloaded.
  • You can close your browser and it continues downloading.
  • You can control your torrents anywhere you have internet (home, work, cell phone...)
  • The downloaded torrents are available for public .
  • It has built-in search .
+ You can also install it on your own machine but you have to install LAMPP (apacheserver/PHP/mysql). Soft pedia has a article about how to install TorrentFlux on your own machine

+ Here is TorrentFlux website.go back to the menu



Tribler


This one is for Video geeks, it combines youtube and torrents and has some features for viewing torrents vidoes in a comfortable way .it is not easy to install on ubuntu, and it didn't click to me, but you may like it.
Here is their website .go back to the menu


Others

there are other torrent clients, which are installable from source which you can give them a try too (a bit work) , Transmission, qBittorent

After all, I tell you, it is up to you what to choose, (according to your needs choose one of the above clients) but I myself use Ktorrent.
go back to the menu


+ I have spent many days testing all those programs and days to write this article with screenshots, and nobody pays me for blogging for ubuntu, in these days I need money so much, so if you liked this article, plz give me a small gift, the donate button is in the right side bar :) go back to the menu

+ I am writing so many GREAT GREAT GREAT articles for ubuntu, they will come soon (not very soon, after my university exams, but I am sure you will love them)


Friday, May 25, 2007

Norton Commander clone for Ubuntu -text mode file manager-

if you find it usefull please Digg it here .

If you remember the old days of MS-DOS, you would miss Norton Commander file manager. The two blue columns where you'd select files on one side and copy them to the next side, only by pressing F5, no typing any commands !


and guess what! I've found Norton Commander for Ubuntu, it's called Midnight Commander. You may ask why would I use Midnight Commander while we have other grpahical file managers (i.e. Nautilus and Konqueror). Midnight Commander is a semi-graphical file manager, which means it runs under a Terminal window in "text mode" and we all know I am in love with text-mode programs like Image magic for editing images in text mode.

Things which are better about text-mode programs are:
  • They're so much faster than programs in grpahical mode
  • You can run it in SSH based terminal . (for example I connect to my webhosting server using SSH and I manage my files without typing commands)
  • They look professional ! (Actualy they are)

Midnight Commander is a text-mode program which rids you of the need to type commands in linux and makes life more comfortable. I love Midnight Commander. I highly recommend this software!
In Ubuntu, you can install it using the Synaptic Package MAnager (search for Midnight Commander) for other linux distributions you can download it from their site . To run it, simply type mc in terminal.
to end, I'd like to share some tips that will be helpful for using this software:

How to Copy or Move: as you see in my screenshot , it has two sides, choose your file in left side and then go to right side by pressing Tab and then choose the destination and then press F5 your filel will be copied ! (for moving you press F6.)

How to select many files: you can mark multiple files (or folders) using "insert" key , when you mark a file using "insert" it becomes yellow .
then you can do something to all of them (copy all of them, move all of them ,...)

to select all , press * key . (all of them will become yellow)
to unselect simply press insert key again and it will become white again.

How to zip and unzip the beautiful thing about MC is , you can compress uncompress files so easily . (I always forget zip related commands)
for example select the files you want to zip and then press F2 and in the menu choose compress ...you can do everything with MC , including CHMOD (permissions)

MC is mouse friendly you can use mouse too (but you don't have to), for example you can click on the right side, instead of pressing tab or you can click on "File" in the menu at the top
(aah I remember DOS days again, at those times I had to run the Mouse program before NC to enable mouse mode . I have such a Nostalgic feeling about MS DOS right now, somebody give me a hug please !)

Sunday, May 20, 2007

Share thunderbird and firefox data files between ubuntu and windows



if you find this article usefull please digg it , and reddit.

You have both windows and ubuntu on your computer (dual boot) and you would like to share data files (emails , bookmarks , extentions, ) of firefox and thunderbird email cilent between ubuntu and windows... then you need to read this tutorial !

First Step : choose the Data Files (profile) you want to use:
if you already have two different profiles (data files) in use in both linux and windows , you will have to sacrifice one, you can not have a combination .
I mean you have to choose weather you want Windows to use your current datas in linux or you want Linux to use your current data (email , bookmark , ,extension ,log...) on windows .

it depends on you ! for me ,most of my data files are in linux , so I make windows to use my profile in linux .

Second Step: choose a place to store shared datas !
we need a a place (a partition) which both operation systems can see it and can write to it .
I suggest a FAT32 partition .
(well you can choose a linux partition too but you have to install some extra programs to make windows see your linux partitions) so let say we choose a FAT32 partition , the partition should be mounted in linux with read write permission.

I go to that partition and make a folder named Sync
I create a folder named Firefox another named Thunderbird
in linux it would be

Third move the profiles to the new place :

now we should copy our current profiles to the new location (profile of the operation system which we chose in First Step) in my case, I chose to save linux datas and make windows to use them .

for copying thunderbird datas , open a the file manager and point it to
/home/username/.mozilla-thunderbird/Profiles
(replace the with your own username)

then there should be a folder like xxxxxxxx.default
move that folder to the Thunderbid folder which you created in second step.

for copying firefox data files do the same, open file manager and point it to :

/home/username/.mozilla/firefox/
(again replace with your own username )
there should be a folder like xxxxxsomething.default
move that folder to Firefox folder which we created in our New Place in Second Step.

ok now go to the next Fourth Step !
for those who want to make linux to use their windows data (unlike me) you do similar things you you find the profile folder and move it to the new place which was mentioned in Second Step.
the profile folders under windows can be found in :

C: / Documents and Settings/user/Application Data/Thunderbird/Profiles/xxxxxxxx.default

C: / Documents and Settings/user/Application Data/Mozilla/Firefox/Profiles/xxxxxxxx.default


Fourth Step : the final step !

now we have to go to Both operation systems and make thunderbird and firefox to use the new location of the profile

means we should make new profiles in both operation systems
first in ubuntu
for thunderbird :
run this command :

mozilla-thunderbird -profilemanager
click create profile
the new profiler is normally named default user
click nextclick choose a folder
and point it to the folder you made in second step !

and the old profile name was default (not default user), you better delete the old profile in the menu.

now it is windows turn !
run this command in Run:
thunderbird.exe -profilemanager
and then do the same things which u did above in ubuntu (create a new profile and point it and then re run it and delete the old profile)

Thats all we did it ! (yep it was easy)

For firefox you do the same thing above,
go to ubuntu , and open the profile manager using this command:
firefox -profilemanager
and then like in thunderbird create a new profile and point it to the folder which we made in second step and delete the old profile)

then go to windows
run the profile manager using this command :
firefox.exe -profilemanager
and do the same things.



thats all folks !
the great thing about this hack is, you wont loose your bookmarks and extensions , even if you loose your operation systems ...(they are all stored in a safe partition !)
you can do some other interesting things , like you can put your bookmarks in a Shared Network and make all the network use the same profile !

in the future I am gonna make tutorial for other programs (like giam and ...but I am just too busy I am swampled with life troubles and school exams)

Wednesday, May 16, 2007

How to install extra fonts in Ubuntu ?




yesterday I found bunch of charming free fonts ( including Harry Potter, Batman , Lord of the rings Movies fonts ) .

I needed to install those fonts to use in my banners , here is how I installed it in my ubuntu .
first download the fonts you like and extract the zip files , and move all the ttf files into a folder in your desktop for example "dlfonts"

now we need to make a directory inside our system font to copy our own fonts into .
sudo mkdir /usr/share/fonts/truetype/myownfonts
and then go to directory which you have copied your fonts
cd Desktop
cd dlfonts
and now copy the TTF files to myfonts directory
cp *.* /usr/share/fonts/truetype/myownfonts
(now delete the "dlfonts" directory in your Desktop we no longer need it)

you need to refresh your Ubuntu font cache:
sudo fc-cache -f -v

here are some other Font Related tutorials for ubuntu :

Sunday, May 13, 2007

The Mafia Inside Digg.com


I have spent many hours sitting on my chair infront of monitor designing my blog and I have spent much hours on each of my articles for ubuntu and they are the result months of testing and experience , and I am enjoying it but ...

but there is something which makes me upset , whenever I submit my articles to Digg.com they get a few diggs but in less than one hour they get deleted .
I dont know who does it (I believe a Mafia inside digg is deleting my posts) the interesting part is , just after a day or sometimes a few hours ,somebody re-writes my article (most of the times they just copy/paste it) and in a few hours they make it to the front page of digg !

I believe digg has come to an era which is collapsing like every regime in the world which keeps things secret from peopel !
leaders of digg.com kept on making digg more complex every day and made hiden rules for user ranking without letting people know about their algorithm until this resulted a Mafia inside the digg.com , which is misusing its power to make money on others .(yep digg is pro open source but it is not open source itself !)


the digg.com's website design has also become so heavy and full of complex java scripts ...I personally prefer visitng reddit.com which is neat , slight and simple and more intresting than digg.com

It was nice which I saw my articles been translated in other languages but it was sad that for the source they had linked to the Mr.Thief's blog !
I emailed the Mr.Thief and asked him to link to my article as the source, and he replied "do whatever you want" well he is right ! I can do nothing, he has so much influence inside digg and he kicks my ass in the digg !

I bet they are making hundreds out of my articles , but take a look at my earning on google adsense, (2 clicks in a week and less 60 cents !)

Page impressions Clicks Page CTR Page eCPM [?] Earnings
shevin 4,255 2 0.09% $0.29 $0.65


I have written several great articles for ubuntu waiting to be published , but I am too disappointed to publish them , the Mafia inside digg will delete my post and will copy/paste my article in their own related sites and digg it !

Good job Mafia in Digg.com , good job with disappointing me !

I used to be a fan of digg.com but I think I am gonna boycott it until they become open source and tell people about their ranking algorithm and their hidden rules and crack down on mafia groups !

there are several grouping inside digg which makes digg less attractive than before, those gorups don't vote for what is useful or interesting, they vote for what is to their benefit !
I feel digg is more like a propaganda playground rather than a real source of information !

may be it is not Digg.com's fault and digg is functioning just like real societies , may be it is just human nature which sucks , in the past it was prophet's duty to guide societies but in this era , who would guide on-line societies to not steal and to not care just about yourself ?

Digg reminds me of ancient history , where empires and governments began really good then by time they misused power and forgot their ideology and at the end they collapsed !

+ These people agree with me :

Friday, May 11, 2007

Wuby : Install ubuntu in windows without touching your partitions


when I recommend Ubuntu to my friends, they immediately ask me :
-do I have to modify my partitions ?
-I like Linux but I just don't like this partitioning stuff...
-Can I have dual boot for Windows and Linux without messing my bootloader ?

and I used to recommend them to use Live CD , which is a good recommendation but just for one time testing, and for those who want permanent Ubuntu but still not ready to modify partitions I have a better solution :

Wubi , installs Ubuntu as it is one of Windows' programs , and it doesn't need you make new partition , and it is very easy to Un-Install (simple like any other windows program)
and another thing to mention, it won't change your boot loader so you wont face Boot Menu Problems .

reading their web site , I made my own F.A.Q for Wubi :

Would Wubi function just like ubuntu ? yes you will have 100% Reall Ubuntu (not using virtual machine or stuff ), but for accessing files on hard disk it wont be not as fast as normal installation of Ubuntu , because you are gonna use a windows partition format (NTFS or FAT32 ) instead of a native partition format for Linux ! EX2 or Ext3)

So .. How Much Space Do I need ? I would say you would need at lest 3 GB free space on your windows partition .

How big is Wubi to download ?
Wubi itself is 9 MB , but after you run it, it will download Ubuntu's iso (about 600MB)

I have already downloaded Ubuntu , do I have to download it again ?

if you have already downloaded the Ubuntu's Alternate ISO, you can put it in the folder of Wubi and you will skip the downloading section (good for computers without internet)
but mind that it must be Alternate Version of the CD (not Live CD)
After installation where to run ubuntu ?
just restart your PC and choose ubuntu in the menu !

How I can uninstall the ubuntu ? this is the intresting part ! You can uninstall it like any other applications. In windows .
you go to the control panel and select "Add or Remove Programs", then select Wubi and uninstall it.

I myself am gonna use Wubi to install other kinds of Ubuntu (you know there are Kubuntu and Xubuntu which I wanna give them a try too and un-install after trying them but , but for you I recommend Ubuntu not other ones )


so if you wanna try Ubuntu go ahead and download Wubi and test it easily and safely !

Monday, May 7, 2007

There is no man in this city..

(I took this photo with my cell phone , too bad I lost my other camera , I could take it much better than this ... )

In this city , taxi , bus , subway , street , school , hospital , everywhere you see a crowd ! and a heavy traffic .
I was walking into the subway , and listening to a Kurdish song by Hesen Derzî , I was walking slowly and looking at people and smiling to them .

the music and and the voice of Hesen Derzî was so mysterious , it was like he was singing from another world and sending his music to our world ... and a part of the poem really touched my heart :

Kesî têda nîe em şare bêto
which means there is nobody in this city ...
yep , the poem really touched my heart , I was looking at the crowd who were pushing each other in the subway , but I felt there was nobody in the city...

Actually , my feeling is not something new , I am saying what Diogenes (Greek philosopher) had said thousands of years ago.
one day Diogenes was
searching in the city with a light in his hand (during the day) , people asked him , "what are you searching for ? "
and he answered "I am searching for a man ! there is no real man in this city ."

Rumi the Persian also repeated
Diogenes' story :

دی شیخ با چرا غ همی گشت گرد شهر

کز دیو و دد ملولم و انسانم آرزوست
(which means , the Sheykh was searching around the city with a light in hand, saying "I am sick of Div and Evils , I want Human ")

It is interesting that Rumi had known
Diogenes at that time , because in the year 2007 , with internet and all these things , I hardly knew who Diogen was but Rumi knew him , hundreds years ago , I wonder what his source of information was .

so yep . the population of Tehran is 15 million but believe me for me there is nobody in this city !

Sunday, May 6, 2007

Boot ubuntu to RAM !

oh god, I have really become like Shewdiz and Shevin (two characters in my story which dont sleep in the nights) I cant sleep in the night too , I have to find a way to make myself sleep , you know I have things to do at the day (school , work stuff...) I have too much Math and Electric Shit matterial to study ... :(

by the way in these days I am writing a short story named "the forgotten story of the giant ship and the small island !" I will publish it on my blog soon .

ok let go to Ubuntu now! today I found a great article "How to boot ubuntu to ram"
it is great you can customize your ubuntu and make it boot to Ram , I have been waiting to do this for a long time , and the article also teaches you how to customize a Live CD ! (making your own Ubuntu Live CD )


Another news, the new Gaim is out , you can download it here (for Feisty Ubuntu)
although Gaim is no longer Gaim (they have changed their name to "pidgin", because AOL was gonna sue them) but I dont like their new name , so for me they are still Gaim .

in the new version ,they have changed the colors , and they have removed some features , I should say I don't like this Pidgin at all , I like neither the new name nor the new theme !


btw here is a cool site full of nice wallpapers for linux !

Saturday, May 5, 2007

Gpaint a simple fast photo editor for ubuntu !


You know what , you are tired and angry and need to edit a photo fast and loading the heavy GIMP would make you more tired and bitchy and you would start cursing your computer ... (he he)

Sometimes you just need simple program for photo editing , GIMP is a great photo editor but it is too heavy and too much feature for doing a a small editing , we need something slight and fast in Ubuntu which would load in 1 second and wouldnt take much screen in our desktop .

Gpaint is what we are looking for, it pretty looks like Microsoft windows paint !

Thursday, May 3, 2007

How to add watermark to 300 photos in 150 seconds ?


F.O.T.U (Focused on the Unfocused) is the name of my photoblog

I started that photoblog several years ago. Unfortunately, I had to stop it.
recently I decided to publish it again. After testing several photoblog systems, I finally chose PixelPost.
(I used to use FolderBlog which is also great but too simple for me)
I liked PixelPost, I edited its default template, but before uploading my photos I needed to resize them and add my watermark to each photo .

I resized all my photos and I added my watermark to all of them in a few seconds
not with Photoshop nor with Gimp ,it would take many hours and a lot of energy using a graphical photo editor, this is one of the situations which a console based program is necessary , I mass edited all my photos using "Image Magic" in a few seconds !

in Ubuntu install Image Magic using :
sudo apt-get install imagemagick
(they have both Windows and Linux version)

then I copied all my photos into a folder on the desktop like "myphotos" then :
cd Desktop
cd myphotos
then I resized all my photos by this command:
mogrify -resize 65% *.jpg
depending on the number of your photos it would take sometime , for me it took a few seconds

you could resize the photo by giving the exact width and height too like this
mogrify -resize 256x256 *.jpg

and then I added my photoblog's name (Focused On The Unfocused) in white color with a black shadow and 22 font size to the bottom of all of my photos using this command :
mogrify -font /usr/share/fonts/truetype/msttcorefonts/Arial_Black.ttf pointsize 22 -verbose -draw "gravity south fill black text 0,33 'Focused On The Unfocused' fill white text 1,32 'Focused On The Unfocused' " *.jpg
Note that you should give the program the address to font file on your system , (I have marked it in green) in ubuntu fonts are normally in /usr/share/fonts/truetype/
(in windows they are in c:\windows\fonts\)

to find out the exact Arial font's address on my Ubuntu system I used this command :
locate Arial*.*
ok we are done ! :)

I add another text to all my jpg photos in the folder ;

  • Text is "WWW.FOTU.SHEVIN.INFO"
  • Smaller font size (15)
  • Another font type (Purisa)
  • Orange Color
  • On the the top Left Corner
here is the command (follow the colour equivalents to learn the command format )
mogrify -font /usr/share/fonts/truetype/thai/Purisa.ttf -pointsize 15 -verbose -draw "fill black text 5,23 'WWW.FOTU.SHEVIN.INFO' fill orange text 6,24 'WWW.FOTU.SHEVIN.INFO' " *.jpg
Mass editing photos saves your time and more important you get the same look on all of the photos , there are many other things than resizing and watermakring which you can do using ImageMagic you can study the commands on their website .



After doing all this stuff , it was was lovely when people visited my F.O.T.U and admired my photos .

Piling told me :
in fact you have your own style , your pictures are dreamy, mysterious, a bit melancholic. like you in fact !

too bad I don't have a camera any more to take more photos... (if you are Bill Gates or somebody ,you are welcome to buy me a camera . wink)

today I also added some things to this blog's template (I am still working on my blog template)

Tuesday, May 1, 2007

Your mind is like a donkey !



Dr. to Raymond (2nd Season , 5th Episode ):
Your mind is like a donkey. You can only throw so many bags on its back before it lies down and won't get up ! So you gotta leave that stress, and do things that relax you.

I love this "Everybody Loves Raymond" TV show ,
Somedays which I have too much stress, I watch a couple of its episodes , and it relaxes me before my donkey lies down ! (I download them in mininova )


by the way they have stuff for your desktop theme on their website
in my Ubuntu , I have set their background wallpaper , and I use their Icons for some of my Icon-less programs and when I shut down , Franks says "Thank you come again !" its cute !

Ubuntu users, to use icons ,extract the theme you downloaded , and open a terminal , and go to the directory and then enter this command :
sudo cp *.ico /usr/share/pixmaps/
and then right click on the program (or application launcher) that you want to use the icon , and click on properties and choose the icon .

and for using Frank's voice for shut down, in Main Menu go to , System / Preferences / Sound / (then go to Sound tab and change the Log out sound to the Frank's wav file)

+ I don't consider this a tutorial ! (it is too easy thing to be called a tutorial)
my point of posting this was just sharing my happiness with those who also like both "Everybody Loves Raymond" and "Ubuntu" . (wink and have fun)

Monday, April 30, 2007

Force programs to minimize in tray on hitting close button

I always wished to force some programs to be minimized in tray when I hit close button (instead of being closed), for example Rhythmbox ,BitTorrent ,SSH terminal, RealPlayer , Thunderbird , it was painful you were listening to a music and you had to have big Rhythmbox on your screen and on your panel , (I used to move it to another desktop but still I had to switch to another desktop if I needed it) or sometimes you hit close button on a bitTorrent program and it would be closed....

I found a program named , AllTray , (I wonder why digg users never introduced it to people) , after installing this program you can put the programs you want in tray , by running AllTray and then clicking on the window of the program you to minimize to tray, so after that when you hit the close button , it will be minimized to tray , instead of being closed !

In Ubuntu (Fesity Fawn) you can install this program using Synaptic package manager , for other Distros you can download it here

Enjoy too !

+ Update : just a tip on using this program , do not put all your programs in tray , putting a program in tray means , you want that program to be in the Resident Memory (Ram) and you want it to be ready all the time ! (so do not put unnecessary programs in tray or it will take your ram and your computer speed)

+Update2: another tip, to make a program to be loaded by AllTray on default, you can do this :
for example for Thunderbird , go to System / Preferences / Main Menu / Choose Internet in left column / (then right click on Thunderbird Mail and change the properties
change the command :
mozilla-thunderbird

to
alltray mozilla-thunderbird
you can play with it and do some other things , like you can add that above command to System/ Preferences / Seasons (so it run thunderbird in automaticly at startup using AllTray)


alltray itself has some options which you can use them to see the full list of options type this :
alltray --help

+For poor Windows users , I found a similar program for them so they have some fun too (wink) it is not as cool as AllTray but still....

Wednesday, April 25, 2007

How To Launch Programs In The Background From A Terminal Window

today I found out ubuntugeek.com stole one my articles (copy pasted it !) well they had corrected my grammar mistakes in English , it is painfull , I spend hours on my blog and somebody else is making money on it ! I commented there and complained , they deleted my comment ...

some years ago , linux community was a lot better , peopel were honest and nice but now , whatever...

today I read this tutorial about how to launch programs in background in terminal ! I am not gonna copy/paste it like Ubuntu Geek.com (go to the original site and read it there)

just in brief, you add a & infront of the program name it will be runned in background, like this:
firefox &

and to see a list of running programs you type this :
jobs

Tuesday, April 24, 2007

How to implement the Babylon dictionaries in Ubuntu?



Have you missed the Babylon program under windows , with all those good dictionaries?
here I will tell you how to make Babylon dictionaries work under ubuntu .

StarDict works like Babylon it is resident in memory , you select the word and it will show the definition in a small pop-up window fastly, ofcourse you can change the keys . (I changed it so when I press WIN key it show me the definition of the selected word) you can install StarDict using synaptic package manager easily .

How to make the Babylon dictionaries work in ubuntu(stardict)?
they have some dictionaries on StarDict site but compared to Babylon dictionaries they are so few.. first go to Babylon site and download the dictionary which you want to use , (I download Kurdish and Farsi ones)

Now we should convert the downloaded dictionary to StarDict format ,
there is a program named dictconv , to convert dictionary formats to each other (including Babylon to StarDict)

here we go :
1- download dictconv here . you should install it by source (don't loose your pants , it is not hard)

2-Extract the zipped file which you downloaded , somewhere in your desktop .
3-Before we continue , open synaptic package manager and install "libxml2-dev" as it is needed for our program .

then go to the folder on the desktop
cd dictconv
4-then enter this :
sudo ./configure
5- if the previous thing was done without any error continue , if it gave you error , (it usualy tells you , you need to install something) solve the error and continue :
sudo make all install
Now it is installed ! but we still need another program
again go to synaptic package manager and install "dictzip".

now here we go to convert the bayblon dictionary : for example mine is Farsi.BGL
I copy it to the desktop then
cd Desktop
then
dictconv Farsi.BGL -o Farsi.ifo

in this example Farsi.BGL is the one which I downloaded from Babylon site and Farsi.ifo is the name of the output file which I want to make .

if you have done it successfully ,it should generate 3 files !

one of those 3 generated files is Farsi.dict (Farsi in my case)
now we should do this :
dictzip Farsi.dict
this command changes our .dict file to .dz !

now we should have three files
Farsi.dz
Farsi.ifo
Farsi.idx
create a folder on your desktop and move these 3 files to that folder .
and move those generated files to there , in my case I created Farsi in desktop and moved them
to the Farsi folder .

now we should move the whole things to the StarDict folder
sudo mv Farsi /usr/share/stardict/dic

and now I restart the StarDict and click on the "manager dictionaries" (it is in the Right Bottom corner of the window) and Enable the Farsi dictionary.

Thats all folks . I am enjoying Babylon dictionry under ubuntu !

Monday, April 23, 2007

I must learn MySQL !

I am working a project which I had started 2 years ago but never could complete it (being lazy , being prefectionist , and giving my time to other things !) for that I need to learn MySQL ,

I need a login system for the site , and I want each user have a profile and they be able to add up to 100 favorite sites to their profile , and I want to learn to show these information easily on the pages, like all the UserX's Favorite sites , and he should be able to easily delete/edit his profile fields .

I searched for tutorials , these are the really good ones which I am learning from them,
and I was amazed how easy MySQL is and why I hadnt started learning it before !


if you also know good tutorial , please comment it so me and others use it !

Saturday, April 21, 2007

Issues I had to install my graphic card in ubuntu -Nvidia Rivia TNT2-


I can tell you installing the "right" driver for your graphic will boost your ubuntu speed and also its appearance and it really becomes faster !

not installing my graphic card driver I had some problems ,
I used to see Firefox uses a lot of CPU while opening Digg.com or Blogger.com (other people also had the same problem )
I fixed that problem by installing the right driver for my TNT2 graphic card , and now Firefox and my other programs like Ktorrent or Tomboy load so much faster !

it may be a reall headache to install the "right" driver for your card, but it worth it and I tell you Ubuntu without right graphic card driver, is not Ubuntu ! it is Half of Ubuntu .

First of all I make a back up of my Xorg.conf like a good boy !
So here is how I installed my Nvidia TNT2 graphic card :
I first backed up my Xorg.conf using this command (you should really do that before installing any graphic driver program )
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
then I installed the drive using the menu , system--> adminstrator --> restricted driver manager ,then it automaticly installed my graphic card.

(I made sure I had not installed the driver using other programs like "automatix2" or "envy" , in that case I uninstalled the driver installed by them first )

How to make sure if the Graphic driver is installed and enabled ?

try this
sudo nvidia-glx-config enable
and also this :
glxgears
this should show a 3D animation and also some numbers in the terminal like

909 frames in 5.0 seconds = 181.725 FPS
1060 frames in 5.0 seconds = 211.880 FPS
1115 frames in 5.0 seconds = 222.946 FPS
998 frames in 5.0 seconds = 199.475 FPS
if those numbers which I marked in red, are less than 1000 (like 150 , 300...) then you have not enabled / installed it right !

Ah , Low Screen Reolution Problem !
but after installing I found out my screen resolution is 800*600 and it doesn't let me change it . some others also have the same problem , and a bug is listed in luanch pad for this !

the problem is the Ubuntu fails to detect the monitor Horizontal and Vertical Refresh Rate numbers, (on ubuntu site they have explained this fix in detail) .
to fix this problem I do this (I have made backup of the xorg.conf ! okay?)
sudo gedit /etc/X11/xorg.conf
(if you are in not graphic mode , you should use nano instead of gedit)

now find the Section "Monitor"
and add these lines just before EndSection :
HorizSync 30-96
VertRefresh 50-160

mind that those numbers (30-96 and 50-160) are default numbers which should work with most monitors ,but your monitor may be different , so google for it to find the right numbers.
for your own monitor .

now save the file and then restart your Ubuntu !



I was also told on the forums to add this to my Section "Screen" in Xorg.conf for better performance (this is just for my card -TNT2-)
Option "AllowGLXWithComposite" "1"

Now I have installed the driver and I am enjoying it !

+For Nividia and ATI cards there is an Automatic tool to install drivers called Envy , many people used it and they liked it ,so you may give it a try !


If you messed up your graphic in Ubuntu...
You no longer see any graphic but a black page with terminal (command prompt) ?
Don't get scared (terminal is not gonna bite you) , it is easy to recover , fix everything using commands .
cd /etc/X11/
Then
dir
this shows list of files in that folder
mv xorg.conf.backup xorg.conf
If your backup file name is diffrent change xorg.conf.backup , for exmple
mv xorg.conf.backup20070404 xorg.conf

To find out the name of the back up file just look at the list of files which "dir" command gave you.

Friday, April 20, 2007

How did I fix "can't acess tty" in Feisty Fawn Live CD ?



many people like me have faced a "can't acess tty" error in Feisty Fawn Live CD while trying to boot from live CD , the exact error is :
/bin/sh: can't access tty; job control turned off
I fixed the problem , I was inspired by Ben Colin's comment but I didnt do what he said , as it didnt work for many others , I fixed it in my Shewdiz-ish way .

it seems this problem is happening to those who have more than one hard disk ,
I have two Hard Disks and two disk drives (a CD-RW and a DVD-ROM) ,
I unplugged one of the hard disks and unplugged the CD-RW ,so I had one device on each IDE .
then I put the live CD in and installed the Feisty Fawn Linux .

but the problem is not fixed yet, after you are in ubuntu you should , type this in terminal :
sudo gedit /etc/initramfs-tools/modules
and then add this to the end of the file
piix
and then save the file , and now do this :
sudo update-initramfs -u

now turn off your PC , and then connect your Other Drives cables again and start ubuntu , it should work fine !

+ a Bug is filled for this error in launchpad.

Thursday, April 19, 2007

Backup your installed programs on ubuntu and install them on another computer without internet !

Read this tutorial if :

  • you have slow internet connection and you have to reinstall your Ubuntu , you don't want to re-download all the programs which you had downloaded .
  • you want to install Ubuntu with certain programs on many computers in a an office or someplace... but you dont want to download programs for each computer.
  • or let say you want to install programs on a computer which doesn't have internet !

all the programs which you install using Synapatic package manger have a .Deb file (the installation file) and they are archived in this folder :

/var/cache/apt/archives

you can go there and copy the deb files to a CD , and then install them in another PC .
for example I myself have copied the Java Virtual Machine's deb files (which are about 60 MB) to somewhere on my hard disk and each time I install it from hard disk (instead of downloading it)

just make sure when you copy a program's Deb file , you copy its dependencies too (to find out the dependencies double click on the file and you will see the info)


a safe way to install many packages without having you find the dependences is to
copy all the files in the address below :
/var/cache/apt/archives
but before that you may want to clean "old packages" using this command :
sudo apt-get autoclean
and on the new PC , and open a terminal and go to the folder containing backed up Deb files and then type
sudo dpkg -i *.deb
this will automaticly finds out the dependencies and installs them by order !



A Friend's Note :
A webmaster usually goes for pay per click rather than any other online marketing plan. This is because ppc is heard of in hosting business, the rest are not. In student web hosting services however, the layman information spectrum is much larger.




+ by the way there is a GUI program named AptOnCD , you can also use that ! (the same thing but in graphical mode but command based way always works and it is so faster )

Wednesday, April 18, 2007

Refreshing Your Original Firefox Installation

Sometimes firefox becomes gives me nasty errors or some of my usefull extentions stop working (mostly because of installing a bad extensions which blow the firefox up) , and it gives me "chrome" error, I reinstall the extension and even I reinstall the firefox itself , but still wont work !

what's the problem and what to do ? the problem is there is a folder under your comptuer which stores Firefox datas and when you un-install or reinstall Firefox , it doesn't delete that folder and the new Firefox will use that folder too which has the error in it .

the solution is to delete the "Firefo"x folder under ".mozilla" folder in your home directory .

1- in ubuntu , go to your home directory
2- and press ctrl+h to see Hidden folders
3- then you will see .mozilla folder go there
4- there is a Firefox folder there, just delete the Firefox folder
5- now reinstall firefox and you will have firefox working like first day


(I believe in windows you should do the same, except in windows the folder should bein Documents under application data )

Monday, April 16, 2007

Messed up boot loader ? recover easily

one of the ugliest problems about dual booting windows and Ubuntu (generally Linux) is Boot Loader problems.

the problem is , "the menu" which lets you choose the operation system at startup needs to be stored in your Hard Disk MBR (MBR is the short for -Master Boot Record- and it means the first sector of your hard disk which tells the computer which partition has the operation system to load)

you can easily destroy this MBR by just adding a new hard disk or changing the hard disk cable position or installing a new operation system (windows doesn't care about Linux , so if you install windows after Linux , it will destroy Linux MBR , but if you install Linux after Windows it won't destroy your windows booting ability , so when you install windows after Linux be careful)

so let say you messed that MBR thing up , you will see your computer doesn't load at all ,
but don't worry you have lost none of your data or operation system .

you can solve this ugly problem in less than 3 minutes and 5 commands ,
for this you must have a Linux Live CD (I strongly recommend Ubuntu Dapper live CD)

1- insert your Ubuntu Dapper Live CD and in your computer setup set the options to boot from CD (I assume you know how to boot from CD)

2- now we are in ubuntu (by live CD) , open a Terminal window (it is in menu list)
3- open a terminal and enter these commands :

Sudo Grub


find /boot/grub/stage1

this should give you a result , remember the results .

root (hd?,?)

(replace the ? with the numbers you got in the last command)

setup (hd0)
replace 0 with the hard disk number you want the grub to install to (if you don't know, don't worry just use hd0 it should work fine)

quit

now restart and you should have a boot menu for your all installed operation systems.

Sunday, April 15, 2007

A lil about me

I am a Kurd and studying Comptuers in Tehran ,

when I was a kid , I wanted to be God's Chosen (a prophet) I was disapointed when they told me ,Mohammad was the last prophet and there will never be any prophet again .

when I was teenager I wanted to be a hero in running or wrestling or badminton , but soon I found out my body is not made for a sport hero , then I wanted to be somebody like Billgates in computers .

when I was a bit older , I wanted to become leader of the rebels of the world !
later I wished to become president of my country ,...

but now I am an adult and I just want to be a human , and I belive being a human is more than being a president, a leader and a hero and more than all Bill Gates' money!

Computer is my Friend, my Tool , my Job and source of Money .
I am supporter of Open Source Softwares, Ubuntu and Humanity .

I am not a photographer but I take photos and people like it , I used to have a photoblog and I won several awards and some TVs showed my works , but for some reasons I had to stop it ,
I hope I can set up my photoblog again .


I am also so fond of languages and literature , and I write a lot , my drawer is always full of notes which I have written .
Shewdiz & Shevin are characters in a story which I am writing in these months ,
He is a man who has special powers in the night , and Shevin is a girl who doesn't sleep in the nights , Shewdiz chooses Shevin for some missions . (I am not gonna tell you all the story)


in this blog , I will try to post my "publishable" materials about computer (mostly ubuntu and open source softwares) and life (literature , personal notes , music and ...)

I also try to make some money ,well I am a student, living on my own , I try to find peopel who may wish to hire me.

Related

Labels

computer (48) ubuntu (46) linux (28) tutorial (20) opinion (17) programming (14) software overview (13) terminal (12) troubleshooting (8) life (7) literature (7) poem (7) human languages (6) vim (6) bash (5) google (5) python (5) android (4) cars (4) phpBB (4) suggestion (4) tips (4) 12.04 (3) Chef (3) extension and addons (3) firefox (3) java (3) personal (3) russian (3) shell (3) windows (3) 64bit (2) Calligraphy (2) Chicago (2) Vagrant (2) apple (2) backup (2) bug (2) code (2) eclipse (2) funny (2) google chrome (2) idea (2) monitor (2) php (2) phpBB3 (2) shorter prompt (2) ssh (2) virtualbox (2) $_SERVER['REQUEST_URI'] (1) 2.7 (1) ALT+Backspace (1) AVR (1) Alt-Printscreen-K (1) AutoRotate (1) CTRL+ALT+DELETE (1) DRM (1) Debugging (1) Gimp (1) Gimp 2.8 (1) Microcontroler (1) Restart X (1) UML (1) Ventra (1) adsense (1) amazon (1) audio (1) aws (1) background process (1) battery (1) bing (1) blank (1) blogging (1) bmw (1) boot (1) business review (1) car (1) cd (1) chrome (1) comcast (1) computer kubuntu (1) conference (1) cookie (1) cron (1) database (1) date (1) display (1) domain name (1) download manager (1) dual boot (1) dual monitor (1) extensions (1) feature request (1) file (1) folder (1) freeze (1) gimp single window (1) git (1) gnome 3.10 (1) google docs (1) google plust (1) google+ (1) grep (1) icon (1) install (1) iterator (1) links (1) linu (1) linux links (1) list (1) mac os (1) media server (1) microsoft (1) moonlight (1) music (1) mysql (1) name (1) nautilus (1) netflix (1) notepad++ (1) parking (1) permission (1) philosophy (1) photo (1) prompt (1) protest (1) ps3mediaserver (1) putty (1) read from file (1) realtek (1) resolution (1) roku (1) samsung (1) scala (1) screenshot (1) security (1) selinux (1) server (1) skype (1) space (1) spam (1) spambot (1) sql (1) suspension (1) system monitor (1) tar (1) task manager (1) template design (1) th23 domain (1) thinking (1) ubuntu 13.10 (1) unity (1) vimrc (1) virtual machine (1) weblogic (1) wget (1) with space (1) xorg (1) xrand (1)