Need to copy .ssh if username
changed.
STEP 1 : check ssh is installed
prayagupd@DWNPCPU196:~$ ssh -v
OpenSSH_6.2p2 Ubuntu-6, OpenSSL 1.0.1e 11 Feb 2013
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
http://stackoverflow.com/questions/6081743/webview-doesnt-play-swf-file-on-android | |
android:hardwareAccelerated = "true" | |
http://stackoverflow.com/questions/7902684/webview-with-flash-on-a-3-1-device-with-2-2-app | |
That'll set the application target to Android 3.0, so you can use the hardware acceleration tag in the manifest file, but allow the application to be installed on Android 2.2+. | |
//http://stackoverflow.com/questions/1060203/how-to-launch-email-intent-with-an-attached-image?rq=1 | |
Intent intent4 = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", "testemail@gmail.com", null)); | |
intent4.setDataAndType(Uri.parse("file://"+ mTempFilePath), Bitmap.CompressFormat.JPEG.name()); | |
startActivity(intent4); | |
//or | |
public static final String SCHEME ="file://"; | |
public static final String CSV_RESOURCES_DIR =""; |
http://grails.org/Converters+Reference | |
import grails.converters.* | |
import org.codehaus.groovy.grails.web.json.*; // package containing JSONObject, JSONArray,... | |
def o = JSON.parse("{ foo: 'bar' }"); // Parse a JSON String | |
assert o instanceof JSONObject // In this case, JSON.parse returns a JSONObject instance | |
assert o instanceof Map // which implements the Map interface | |
assert o.foo == 'bar' // access a property |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
# worked on ubuntu 12.10 | |
# may take 20+ minutes (depends on internet speed + ...) | |
# You will need to make this file executable (chmod u+x) and run it with sudo | |
sudo apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk | |
sudo mkdir -p /src/erlang | |
cd /src/erlang | |
sudo wget http://www.erlang.org/download/otp_src_R15B.tar.gz | |
sudo tar -xvzf otp_src_R15B.tar.gz | |
sudo chmod -R 777 otp_src_R15B | |
cd otp_src_R15B |
#!/bin/bash | |
svn='/usr/bin/svn' | |
svn_project_wk='/home/prayag/workspace_java/central-transborder-system' | |
cd $svn_project_wk | |
stat='svn status' | |
echo "svn status showing...." | |
$stat #or simply put svn status |
prayag@prayag:~$ sudo apt-get install build-essential | |
prayag@prayag:~$ sudo apt-get install libssl-dev | |
prayag@prayag:~$ wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz | |
prayag@prayag:~$ tar -zxvf aircrack-ng-1.1.tar.gz | |
prayag@prayag:~$ cd aircrack-ng-1.1 | |
#in the aircrack-ng-1.1 directory there is a file called common.mak, | |
#open the file and scroll down till the following line is seen: |
/** | |
* convert {@link String} of format "Wed Feb 06 00:00:00 NPT 2013" to {@link Date} | |
* | |
* @param stringDate | |
* @return | |
*/ | |
public static Date convertDateToString(String stringDate) { | |
DateFormat dateFormat = new SimpleDateFormat("E MMM dd HH:mm:ss Z yyyy"); | |
try { | |
return dateFormat.parse(stringDate); |
Need to copy .ssh if username
changed.
STEP 1 : check ssh is installed
prayagupd@DWNPCPU196:~$ ssh -v
OpenSSH_6.2p2 Ubuntu-6, OpenSSL 1.0.1e 11 Feb 2013
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[1] hg diff a file between two (changesets)[http://stackoverflow.com/a/4154532/432903] | |
hg diff -r -1:. e-controller/src/main/webapp/WEB-INF/root-context.xml | |
[2] hg log --limit 2 | |
[3] # http://stackoverflow.com/a/3289331/432903 | |
hg update -v | |
[4] |