Skip to content

Instantly share code, notes, and snippets.

@theamith
theamith / android_cordova_eclipse
Created March 30, 2013 14:52
Problem: After creating a new Android Project in Eclipse I included cordova jar in the build path and added my html page in assests/www folder and made corresponding changes in MainActivity.java file. But while running application in Android Emulator its showing an error "Unfortunately HelloWorldCordova App has stopped unexpectedly".
1. Your MainActivity.java file should be like this
package com.example.cordovageolocationapi;
import android.os.Bundle;
import org.apache.cordova.*;
public class MainActivity extends DroidGap {
@Override
@theamith
theamith / VNC_vs_RDP
Last active December 14, 2015 21:19
VNC vs RDP
RDP(Remote Desktop Protocol)
1. MSTSC(MicroSoft Terminal Services Client) uses RDP(Proprietary Software Developed by Microsoft).
2. RDP works by sending instructions on how to draw the screen to the client computer.
VNC(Virtual Network Computing)
1. VNC by sending a picture of the desktop across the network.
2. It uses RFB (Remote Frame Buffer) Protocol.
3. VNC is platform independent.
@theamith
theamith / Configuring static ip in a system
Last active December 14, 2015 17:39
Configuring static ip in a system
edit etc/network/interfaces
change dhcp to static
address 10.0.0.1
netmask 255.255.255.0
gateway 10.0.0.2
Give system1's gateway as system2's address in ipv4 settings
netmask 255.255.255.0
@theamith
theamith / instal_airtel_modem_ubuntu
Created March 5, 2013 17:35
Installing Airtel HUAWEI Modem in ubuntu
sudo -i
mkdir /mnt/myusbmodem
mount /dev/filename /mnt/myusbmodem
( Usually mount /dev/cdrom /mnt/myusbmodem )
filename can be found in File System'->'dev'.There you will see files starting with 'cdrom'.
cd /mnt/myusbmodem
./autorun.sh
@theamith
theamith / software_installation_ubuntu
Last active December 14, 2015 11:28
Installing Softwares in Ubuntu
1. Java
$ sudo apt-get install openjdk-6-jdk
After installing java make a quick check using
# java -version
2. Chromium
@theamith
theamith / win_7_not_loading_after_ubuntu_install
Last active December 14, 2015 10:59
Windows 7 not booting after installing Ubunutu
I have fed up for one day after i was unable to load my windows 7 after installing Ubuntu 12.04 LTS.
I'm gonna share some things i learned while recovering my system from this problem.
Mistakes Done by me:
1. Formatted the small partition(some thing around 200 MB) created automatically wile installing Windows 7.
2. Did not allocate swap space while installing Ubuntu.
Outcome of the Mistakes:
@theamith
theamith / install_lamp_in_ubuntu
Created February 28, 2013 12:16
Install LAMP in ubuntu
1. sudo apt-get install tasksel
2. sudo tasksel
3. Select LAMP Server and Click OK.
4. Enter mysql root password (say admin)
5. sudo vi /var/www/info.php --> Open info.php in vi editor
@theamith
theamith / ubuntu_terminal_greenhorns
Last active December 14, 2015 08:09
Ubuntu Terminal GreenHorns
1. sudo
#to gain root privilege.
# sudo means superuser do which allows user to install/update/remove software as a super user.
Eg: sudo apt-get updates
# To run graphical application as root use "gksudo"
Eg: gksudo gedit
@theamith
theamith / Running Hadoop on Ubuntu Linux(Single Node Cluster)
Last active December 14, 2015 07:18
Running Hadoop on Ubuntu Linux(Single Node Cluster):
1. Prerequisites
Java
User for hadoop
SSH
IPv6
1.1 Setup and Check Java :
# Install Sun Java JDK