This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextView | |
android:id="@+id/textView3" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignBaseline="@+id/textView2" | |
android:layout_alignBottom="@+id/textView2" | |
android:layout_alignLeft="@+id/imageView2" | |
android:layout_marginLeft="16dp" | |
android:gravity="center" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To work with groovy at eclipse we should insert required plugins for eclipse.My eclipse version is Kepler so i will show you at kepler you can find detailed information for other versions below link. | |
Open your eclipse and open Help -> Install New Software | |
Paste this url to "work with" area : http://dist.springsource.org/release/GRECLIPSE/e4.3/ | |
After installing this plugin you should restart your eclipse. | |
Good Work. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Scanner input = new Scanner(System.in); | |
System.out.println("Input Value"); | |
String willEncryptText = input.next(); | |
byte[] bytesOfMessageText = willEncryptText.getBytes("UTF-8"); | |
MessageDigest md = MessageDigest.getInstance("MD5"); | |
byte[] thedigest = md.digest(bytesOfMessageText); | |
System.out.println(thedigest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -anp | grep 8080 | |
Linux: | |
kill -9 248 | |
Windows: | |
taskkill /f /pid 248 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For Oracle: | |
Jdbc Driver Name="oracle.jdbc.driver.OracleDriver" (if you have it on your system) | |
Url format="jdbc:oracle:thin:@hostname:port Number:databaseName" | |
For Odbc: | |
Odbc bridge="sun.jdbc.odbc.JdbcOdbcDriver" | |
Url format="jdbc:odbc:dsn_name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* algorithm checkRotation(string s1, string s2) | |
if( len(s1) != len(s2)) | |
return false | |
if( substring(s2,concat(s1,s1)) | |
return true | |
return false | |
end */ | |
//In Java: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String programDir = "C:/Program Files (x86)/Notepad++/"; | |
String docDir = "C:/Users/XXXX/Desktop/"; | |
ProcessBuilder builder = new ProcessBuilder(new String[] { | |
programDir + "notepad++.exe",docDir + "svncommands.txt",docDir + "export.txt" }); | |
// builder.directory(new File( | |
// docDir + "export.txt")); | |
Process newProcess = builder.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JVM (Java Virtual Machine) : Bir Java dosyası derlendiği(compile) zaman .class uzantılı java byte kodları oluşur . Java byte kodları işletim sisteminde kurulu olan JVM ile makina kodlarına çevrilir . Bu sayede java kodları derlendikten sonra farklı işletim sistemlerinde sorunsuz olarak çalışır . JVM sayesinde Java da sıkça duyduğumuz ve Javayı Java yapan "Write Once, Run Anywhere" özelliğini kullanabilmekteyiz . Her işletim sisteminin kendi sanal makinası vardır | |
JRE (Java Runtime Edition) : Bir Java uygulamasını çalıştırmak için gerekli olan Java kütüphanelerini ve JVM içerir | |
JRE = Java Kütüphaneleri + JVM | |
JDK (Java Development Kit ) : Java ile geliştirme yapmak için ve yazdığımız java kodlarını compile edip .class uzantılı dosyaları oluşturmamızı sağlayan tool dur. | |
JDK = JRE + derleyici + Java Compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://androidprogramz.blogspot.co.uk/2012/07/connect-mysql-database-from-android.html | |
http://stackoverflow.com/questions/19217835/can-an-android-app-connect-directly-to-an-online-mysql-database | |
http://www.helloandroid.com/tutorials/connecting-mysql-database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\mgnfcnt] | |
@="Random Rename" | |
[HKEY_CLASSES_ROOT\*\shell\mgnfcnt\command] | |
@="java -jar \"C:\\mgnfcnt.jar\" \"%1\"" |
OlderNewer