Saturday, November 16, 2013

Why linux better than windows

#5 finest point to talk when compare

#1 : No more anti virus required
#2 : Feel the software freedom
#3 : Don't goto shop for your drivers
#4 : Multi workspace with multi task window
#5 : No need to crack software when it free.

Dot prefix folder in ubuntu

Ubuntu : I surprised after finding some data in my pen drive on ubuntu. I was copied folder prefixed of dot( "." [e.g] .m2) from my window laptop. But it was missing when plugged ubuntu. I am just confident with what I have been copied. So, I thought of finding it with google as ".folder in ubuntu".

I found a link,
http://www.cyberciti.biz/faq/explain-linux-unix-dot-files/

"A dot file is nothing but a configuration file usually stored in users home directory."

from the above line I got the nice information that ubuntu storing all the configuration data inside the .file and .folder

E.g to view the .folders

$ ls -a
$ ls -ld .*
$ ls -a | grep '^\.'


But here the point I don’t want to last my folder which is copied already.So I chooses to go with terminal (command prompt). He never pushed me down.

$cd .m2 

Using the above command I able to be inside the .m2 . So the problem solved, with coping the data from the current directory.

$ls 

output:
repository

The $ls command shown me the subdirectories of current path.

$cp -r repository ../

after using the copy command I got the subdirectory outside of the .m2 folder.

Note: I used the -r argument for the copy command because my subdirectory have some more subdirectory inside.







Ubuntu : Auto mount drive partition when startup

#3 step solution:
(Tested on Ubuntu 13.4)

#1 --> Terminal (alt+ctrl+T)
           type
             sudo blkid
             take note of your favourite partition ID like (/dev/sda9)

#2 --> Super button (Dash Home) - Startup Applications

#3 --> Click add on Startup Application
           udisks --mount /dev/sda9           

Now You Done!!
wanna Test! Restart!!

Merging two sorted arrays - Big O (n+m) time complexity

 Problem :  Merge the two sorted arrays. Edge case :  Array can empty Arrays can be in different size let getMaxLength = ( input1 , input...