Tuesday, March 27, 2012
Mounting Windows File Systems using Unix
sudo apt-get install pysdm
Open storage device manger:
sudo pysdm
Choose your required drives
Press assist
Uncheck open as read only
Check owner user of file system and write your username
Press ok and apply
Remount the drive
Note: if you can't change files to binary executables, go to special files and check permit execution of files as binaries, and go to step 7
Source : http://askubuntu.com/questions/90339/how-do-i-set-read-write-permissions-my-hard-drives
Tuesday, March 20, 2012
Useful Things to Know About Ph. D. Thesis Research (US Side of the Story)
READ ON : http://www.eecs.harvard.edu/~htk/thesis.htm
Thursday, October 20, 2011
vimrc essentials
map <F6> <Esc>:setlocal spell spelllang=en_us<CR>
map <F8> <Esc>:setlocal nospell<CR>
" toggle colored right border after 80 chars
set colorcolumn=81
let s:color_column_old = 0
function! s:ToggleColorColumn()
if s:color_column_old == 0
let s:color_column_old = &colorcolumn
windo let &colorcolumn = 0
else
windo let &colorcolumn=s:color_column_old
let s:color_column_old = 0
endif
endfunction
nnoremap <Leader>8 :call <SID>ToggleColorColumn()<cr>
Tuesday, August 02, 2011
Saturday, May 22, 2010
Came-back
Just move back in to Google from wordpress for no reason, ok maybe the single sign on can be one reason..
Just to inform, And will work on the visual aspect of the blog also and more importantly will restart the momentum in blogging ...
Wednesday, October 03, 2007
Moving to Wordpress....
Thanks
Lahiru Sandakith
Tuesday, May 01, 2007
How To Speed Up Firefox ...
** Type “about:config” into the address bar, look for ...
network.http.pipelining
network.http.proxy.pipelining
network.http.pipelining.maxrequests
Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.
** Alter the entries as follows:
Set “network.http.pipelining” to “true”
Set “network.http.proxy.pipelining” to “true”
Set “network.http.pipelining.maxrequests” to some number like 30.
** Lastly right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0″. This value is the amount of time the browser waits before it acts on information it receives.
If you’re using a broadband connection you’ll load pages MUCH faster now!
Saturday, April 14, 2007
Happy Sinhala Hindu New Year 2007
All of your dreams come true...
Monday, July 31, 2006
all about system info gathering
here are some of the info that I gotted out wile doing that
find & replace in vi
:%s/
abt solaris system info
cpuinfo - command vmstat
meminfo - command vm stat
in top u can custermize that to ur preference
f will do the selecting the display columns
h will go to the help mode
W will write to the config file the current settings and many more
also a atsar command at unix
sar - Collect, report, or save system activity information.
Thursday, July 13, 2006
SELinux disable
Disable SELinux by changing the following in /etc/sysconfig/selinux and rebooting the system.
setenforce 0 this is also be the command that diable on the fly
Wednesday, July 12, 2006
remove the old kernel Ubuntu
You can uninstall the old one if you don't use it anymore :
sudo apt-get remove --purge 2.6.15-23-386*
Doing this will uninstall the packages related to the 2.6.15-23 kernel, like "linux-image-2.6.15-23-386", "linux-restricted-modules-2.6.15-23-386", etc.
TCP MON and Tungsten
-------------------------------------------------------------------------
change the services.xml protocol to http
if we comment the transport tab then it will expose in all the transport methods
tungstom xml change the debug state to ON
then it should work ..
about thungsten build
Never do a maven clean build while the link is available to a source location from the targets location that will cleaned
before do any wbm and any other thing do check we whether that extention link exists
if so remove that thing otherwise shot dead
How to create that link
cd target/dist/tungsten-SNAPSHOT/lib/www/
rm -fr extensions/
ln -s ../../../../../modules/www/extensions/
So be alert always
Idea remote debugging
First create a remote configuration on Idea that you can do remote debugging
The string pattern that will occur will look like this
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
and what we need to do is depending on your executable project wither set the JAVA_OPTS variable to the above
and start the project and then
start the debugger on idea
CINTEC AWARD for the best CSE Project
Wednesday, July 05, 2006
Saturday, June 24, 2006
10 Immutable Laws of Security
* Law #1: If a bad guy can persuade you to run his program on your computer, it's not your computer anymore
* Law #2: If a bad guy can alter the operating system on your computer, it's not your computer anymore
* Law #3: If a bad guy has unrestricted physical access to your computer, it's not your computer anymore
* Law #4: If you allow a bad guy to upload programs to your website, it's not your website any more
* Law #5: Weak passwords trump strong security
* Law #6: A computer is only as secure as the administrator is trustworthy
* Law #7: Encrypted data is only as secure as the decryption key
* Law #8: An out of date virus scanner is only marginally better than no virus scanner at all
* Law #9: Absolute anonymity isn't practical, in real life or on the Web
* Law #10: Technology is not a panacea
10 Immutable Laws of Security at Microsoft TechNet.
Wednesday, June 21, 2006
Ant bash completion
Sunday, June 04, 2006
note from the hongkong airport
Though this was published late, this was a original blog at that location
Blog Form the Hong Kong International Air
Time : Sri Lanaka 1 45 PM
: Honk Kong 3 45 PM
We 3 (ME , Amila, Sris), finally arrived at the Hong Kong International
Airport. They say that this is the best Airport around. Its one of the
best that you can get. We went shopping but seems all the electronic
equipments are bit expensive than we thought. To refresh the journey all the way up to here we first got in to CX700 and landed in Bankok, Thailand after nearly 3 hours of air time. Lucky I received the window seat there and I got this valuable experience to see the outside when the Airjet take off from the ground. This was my first flight experience and to be at the window at your first flight means that you are very lucky. Saw how the our small world can be seen from
30000 km above and the temperature sometimes around -10 C. But at the Bankok airport we never got the chance to getdown from the plane due to this security reason, thats very unfortunate for us. But leaving bangkok we arrived at Hong Kong after a another 2 and half hour of journey. And we got arroung 4 hour before the the flight to San Fransisco arrives. And then got into the San Fransisco flight and unfortunately the seats are located right in the middle row that we were never saw the outside thought the flight. The flight was almost full and all kinds of pessengers were there. This wes the tedious part of the flight and we almost felt seep 80% of the flight time. The food was served in different menus twise of the flight and Some ware good but some were not that much eatable for me. Finally we arrived at the SF and Ryan was there to meet us. we never got any trouble with the baggages and it was a relief for us.
So that how it goes , first flight completed successfully !
Friday, May 26, 2006
Linux Splash Creation with GIMP
You will need to make sure your GRUB supports the splashimage command. I took image from gentoo.org and cut a little for the GRUB background
Creating image (GIMP)
1. Start the GIMP.
2. Click on File->New or type Ctrl+N
3. In the new image dialog, change Width to 640 pixels and Height to 480 pixels. (The image should be of size 640x480 pixels.) Now click OK.
4. Create the image which you would like to be the splash image. It's quite fun to experiment with the various tools of the GIMP!
5. After you have finished creating the image, hit Alt+i or right click on the image and click on Image->Mode->Indexed...
6. In the Indexed Color Conversion dialog that appears, click on the radio button "Generate optimal Palette" and in "# of colors" enter 14. Click OK.(The image should be of only 14 colors)
7. Now right-click on the image and click on File->Save As...Save the file as ImageName.xpm in a directory of your choice.
For some reasons i could not create *.xpm so i save it as *.png and then
convert ImageName.png ImageName.xpm
(convert is a part of media-gfx/imagemagick)
You can save image from this page and convert it skipping image creation hassle
Creating image (Imagemagick)
* You can also pick an image (any type supported by ImageMagick) and execute:
convert -resize 640x480 -colors 14 picture.jpg ImageName.xpm
Installing the Image
gzip ImageName.xpm
mount /boot
mv ImageName.xpm.gz /boot/grub/
* In the /boot/grub/grub.conf you have to point splashimage to newly created image i.e.
File: /boot/grub/grub.conf
# Splash Image
splashimage=(hd0,0)/grub/ImageName.xpm.gz
That's it! When you reboot, you will find your image in the background, with the menu of operating systems etc. in the foreground.
