This file contains hidden or 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://jsminnpp.sourceforge.net |
This file contains hidden or 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
If you also (like me :)) want to add your current eclipse some new features you can follow this steps. | |
Help -> Install New Software -> Add | |
http://download.eclipse.org/releases/helios/ | |
Choice which of them you want . | |
Also you can look at source site: |
This file contains hidden or 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
import java.awt.FileDialog; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.nio.ByteBuffer; | |
import java.nio.charset.Charset; | |
import java.util.*; |
This file contains hidden or 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] | |
@="cmd /c For /f \"tokens=1-3 delims=/ \" %%a in ('date /t') do ren \"%1\" %%c-%%b-%%a-%%random%%.*" |
This file contains hidden or 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
//If your database is mysql then you can use these codes | |
try { | |
Class.forName("com.mysql.jdbc.Driver").newInstance(); | |
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/work_training", "root", ""); | |
Statement st = conn.createStatement(); | |
String query = "insert into SALES values (?,?, ?, ?,?, ? ,?)"; | |
PreparedStatement pStatement = conn.prepareStatement(query); | |
int[] products = new int[]{100, 200, 300, 400}; |
This file contains hidden or 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\"" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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: |