Posts

Rename Your Ubuntu Linux username

Consider the renaming the ubuntu linux user name there is no obvious method to do that. General solution for this add new user using new user name and delete the old user account. But imagine your current account can not be changed due to your data and other customized stuff. Then you have to think another way. That's the real life. I have primary method for that. you can edit some file rename that. First you have to login root or other account. This can not be done in same account. Then you have to edit /etc/passwd, /etc/group, /etc/shadow files. you can do that using following, # sed -i 's/oldname/newname/g' /etc/passwd # sed -i 's/oldname/newname/g' /etc/group # sed -i 's/oldname/newname/g' /etc/shadow Then simply rename the folder in side the HOME folder to your new user name /home/oldname => /home/newname Then relogin.. If you want to rename your Host Name then you must edit /etc/hostname file. Then relogin... Arosha Uduwerella.

How to Install Sinhala Unicode for Ubuntu Linux

Before activate Unicode You have to remove SCIM. You can't use iBus with SCIM installed on your computer. sudo apt-get remove scim For configuring the iBus Go to System -> Preferences -> IBus Preferences and open "IBus Preferences" dialog box. Select "Input Method" tab and Choose a suitable keyboard layout under Sinhala. Then goto home directory(~) and open .bashrc file add following code to end of the file and save. export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus To add iBus as startup application System -> Preferences -> Startup Applications and open Startup Applications dialog box and click add and enter enter enter "IBus" in "Name" text box, "ibus-daemon" in "Command" text box. For setting up fonts Go to /usr/share/fonts/truetype as root and delete "freefonts" directory. Install new Sinhala Unicode font and update Ubuntu

Mobile Phones

අපි හැමොම වාගේ මොබයිල් ෆෝන් එකක් මිලදිගැනිමේදි වැඩිපුර සොයාබලන්නේ මේ ෆොන් එකේ බාහිර ඔපය පිලිබදව හා ඉන් කරගන්න පුලුවන් වැඩ කොටස පිලිබදවයි. නමුත් අප මිළදි ගන්නා එම ෆොන් එක ඔරිජිනල් කම්පැනියේම නිෂ්පාදිත එකක්ද? එසේත් නැතිනම් වි්යාජ ලෙස එකලස් කරපු එකක්ද කියලා අපිට සොයාගන්න විදියක් නැ. එත් මෙන්න මේ මා ලබාදෙන codes ටිකෙන් ඔයාලට බලාගන්න පුලුවන් ඔයාලාගේ Nokia Mobile phone එක ඔරිජිනල්ද? නැද්ද කියලා මුලින්ම ඔයාලට කරන්න තියෙන්නේ ඔබගේ nokia ෆොන් එකේ IMEI no එක (International Mobile Equipment Identity) සොයාගන්න එකයි. මේ සදහා මෙන්න මේ code එක ඔබගේ ෆොන් එකේ ගහන්න *#06# එවිට ඔබට ඔබගේ IMEI නොම්මරය දිස්වේවි. ඔබ මෙහිදි අවදානය යොමුකල යුතුවන්නේ එම IMEI no එකේ හි 7වන හා 8 වන ස්ථානයේ ඇති අංක දෙක පිලිබදවයි. උදා: ෆොන් එකේ IMEI no : X X X X X X ? ? X X X X X X X *ඔබගේ IMEI no එකේහි 7 වන හා 8 වන ස්ථාන වල් පිලිවලින් 0 2 හෝ 2 0 සටහන්ව ඇත්නම් ඒම දුරකතනය මැදපෙරදිග රටක එකලස් කරපු එකකි. එහි තත්වය බොහොම බාල වර්ගයකි. *ඔබගේ IMEI no එකේහි 7 වන හා 8 වන ස්ථාන වල් පිලිවලින් 0 8 හෝ 8 0 සටහන්ව ඇත්නම් ඒම දුරකතනය නිෂ්පාදනය කර ඇත්

Image processing

Image processing Image processing is any form of signal processing for which the input is an image, such as photographs or frames of video; the output of image processing can be either an image or a set of characteristics or parameters related to the image. Most image-processing techniques involve treating the image as a two-dimensional signal and applying standard signal-processing techniques to it. Image processing usually refers to digital image processing, but optical and analog image processing are also possible. This article is about general techniques that apply to all of them. The acquisition of images (producing the input image in the first place) is referred to as imaging. Digital image processing is the use of computer algorithms to perform image processing on digital images. As a subfield of digital signal processing, digital image processing has many advantages over analog image processing; it allows a much wider range of algorithms to b

OpenCv & Visual Studio 2005 Library Paths

Create New Project and Configure the Library path to Project Using OpenCv and Visual Studio 2005 File -> New Project -> Visual C++ ->Win 32 Select Win32 console app Give name and click Ok and click Finish. Keep Default cording Tools -> Application -> Project & solution VC++ Directories Select include files Brows ->programs files -> opencv -> cv -> include (click open) -> cxcore -> include (click open) -> cvaux -> include (click open) -> ml -> include (click open) -> other lib -> highgui (click open) -> Select library files Opencv -> lib (click open) Opencv -> other lib (click open) Project -> Test -> properties Configuration properties -> C / C++ -> general Additional include Directories include Add above 5 cv.lib ,cvaux, highgui.lib , ml.lib , cxcore.lib Linker -> Input -> Additional Dependencies Type cv.lib ,cvaux, highgui.lib , ml.lib , cxco