Set Operations in Java: What is a Set Mathematically, a set is just a collection of objects, for example let set=["apple","orange","banan...
Search This Blog
Tuesday, June 4, 2013
Wednesday, May 22, 2013
To Enable Append operations on Hadoop
Open the file on the path ${HADOOP_HOME}/conf/hdfs-site.xml
copy the following code into the file between the <configuration> tag
<property>
<name>dfs.support.append</name>
<value>true</value>
<description>Does HDFS allow appends to files?
This is currently set to false because there are bugs in the
"append code" and is not supported in any prodction cluster.
</description>
</property>
[Ref: http://hadoop4mapreduce.blogspot.in/2012/08/two-methods-to-append-content-to-file.html ]
copy the following code into the file between the <configuration> tag
<property>
<name>dfs.support.append</name>
<value>true</value>
<description>Does HDFS allow appends to files?
This is currently set to false because there are bugs in the
"append code" and is not supported in any prodction cluster.
</description>
</property>
[Ref: http://hadoop4mapreduce.blogspot.in/2012/08/two-methods-to-append-content-to-file.html ]
Tuesday, February 19, 2013
Linux Commands I Used
- cat /proc/cpuinfo
- cat /proc/meminfo
- du -b $(find -type f) // To list all files (including all sub directories) along with its size in bytes. Enter into the directory on which you need to run this and then type the command.
Sunday, February 17, 2013
Google Password Update on android phones after password change through web.
Click on Play Store icon - this will bring up a prompt that says your
password has changed. When you change it on the market, it will change
it for gmail as well...
Ref: http://productforums.google. com/forum/#!topic/gmail/ jtnMOvWSOtY
Ref: http://productforums.google.
Saturday, January 19, 2013
Commands used after installing Ubuntu
To install Drivers and VLC
- sudo apt-get update
- sudo apt-get install ubuntu-restricted-extras
- sudo apt-get install vlc
To Install JAVA from bin file jdk-6u39-linux-i586.bin
Remove open JDK
- sudo apt-get purge openjdk*
i.e
- cd /usr/lib
- sudo mkdir jvm
- cp sourceFilePath/jdk-6u39-linux-i586.bin /usr/lib/jvm/
- sudo chmod +x /usr/lib/jvm/jdk-6u39-linux-i586.bin
- gedit ~/.bashrc
- export JAVA_HOME='/usr/lib/jvm/jdk1.6.0_39'
PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH - which java
- Above command will return /usr/lib/jvm/jdk1.6.0_39
Install Softwares
- sudo apt-get install wireshark
- sudo apt-get install tshark
- sudo apt-get install ns2
To Enable Root Account
- sudo passwd root
- sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'
Move Minimize,Maximize & Close Button to Right
- sudo apt-get install gconf-editor
- gconf-editor
- Go to the following: 'apps' -> 'metacity' -> 'general' Find the "button_layout" parameter,
- Right mouse click, and select Edit Key.
- Change the value to the following: menu:minimize,maximize,close then Press Enter
Adobe Reader invisble Menus
- //from terminal
- cd /etc/X11/Xsession.d
- sudo gedit 98menuproxy
- //open gedit & paste
- export UBUNTU_MENUPROXY="acroread":$UBUNTU_MENUPROXY
- //save file; log off and log on
Friday, January 18, 2013
Restore/Reinstall Grub 2 in Ubuntu
- Change your system boot priority to CD drive \ USB [depends on your installation media... I selected USB].
- Select option Run Ubuntu from this USB.
- Open the Terminal and run below command to find the partition where Ubuntu Installed.
- sudo fdisk -l [In my system on sda8]
Device Boot Start End Blocks Id System
/dev/sda1 63 80324 40131 de Dell Utility
Partition 1 does not start on physical sector boundary.
/dev/sda2 * 81920 31145983 15532032 7 HPFS/NTFS/exFAT
/dev/sda3 31145984 197792279 83323148 7 HPFS/NTFS/exFAT
/dev/sda4 197792280 625141759 213674740 f W95 Ext'd (LBA)
/dev/sda5 197792343 354474224 78340941 7 HPFS/NTFS/exFAT
Partition 5 does not start on physical sector boundary.
/dev/sda6 354474288 438606629 42066171 7 HPFS/NTFS/exFAT
/dev/sda7 438606693 522739034 42066171 7 HPFS/NTFS/exFAT
Partition 7 does not start on physical sector boundary.
/dev/sda8 522739712 613423103 45341696 83 Linux
/dev/sda9 613425152 625141759 5858304 82 Linux swap / Solaris
- Execute following 15 commands one by one, then restart your system and revert back the boot priority.
- sudo mount /dev/sda8 /mnt
- sudo mount --bind /dev /mnt/dev
- sudo mount --bind /dev/pts /mnt/dev/pts
- sudo mount --bind /proc /mnt/proc
- sudo mount --bind /sys /mnt/sys
- sudo chroot /mnt
- grub-install /dev/sda
- grub-install --recheck /dev/sda
- update-grub
- exit
- sudo umount /mnt/dev/pts
- sudo umount /mnt/dev
- sudo umount /mnt/proc
- sudo umount /mnt/sys
- sudo umount /mnt
Labels:
Grub2,
Reinstall Grub2,
Ubuntu 12.04
Location:
Kochi, Kerala, India
Wednesday, January 9, 2013
To Include JavaDoc in NetBeans
In NetBeans IDE [my version 7.2.1]
- Click Tools -> Java Platform. [Java Platform Manager will open.]
- Select the platform to which you want to add Javadoc in the left panel of the dialog box. [I selected JDK 1.7]
- In the Javadoc tab, click 'Add ZIP/Folder' and specify the location of the Javadoc folder.
- Click Close.
Tuesday, January 8, 2013
GATE Scholarship on-line submission 2012-13
Follow below instructions to apply for GATE Scholarship 2012-13. [Common for 2011 and 2012 batch]
- Click on link: http://www.aicte-india.org/
PGScholarship.htm. There are 3 steps to complete this [Try to access with Internet Explorer]
- Get your Institute ID [Step 1 from site]
- Change the IE Security setting as bellow.
- Internet Options -> Security Tab -> Click on Internet -> Security Level for this Zone (Make it Low)
- Un check option 'Enable Protected Mode'.
- Restart IE
- Press and Hold CTRL key while clicking 2nd Step, this will install 'Siebel high interactivity framework' automatically. [We have try 2 or 3 times for the proper installation]
- Try to generate student id, details should match exactly the same information updated by the college. [Step 2 from site]
- If Students are not able to generate student id, college has an option to pull the details from AICTE web site along with student id.
- Now click on Step 3 [ from site]. If the above mentioned installation is proper we will get a screen asking details like, State, Institute ID, Student ID and DOB, then fill the necessary details as given in below step 8, and skip below step 7.
- If the above installation is NOT proper the site will ask for User ID and Password, [Try Several times to get the proper installation] OR else we have another way to complete 3rd step i.e we need to login with college's AICTE ID and password, same can be done only from authorized office staff member of college.This ID and password will not disclose to students.[Most of students from our college completed this Step 3 with the help of college]
- Following are the Details required to complete 'Step 3' all are Mandatory .
- Institution ID [ from Step1]
- Student ID [ from Step2]
- Date Of Birth
- Gate Reg No
- Gate Score
- Gate Year
- SBI A\C No
- Branch Name
- IFSC Code
- Mobile 1
- Mobile 2\Land Line
- E Mail 1
- E Mail 2
- Scanned copy of GATE Score card
- Scanned copy of SBI Passbook i.e page containing A\C no, IFSC Code, photo etc. [Format not specified you upload these files in JPG or PDF].
Subscribe to:
Posts (Atom)