비밀메모(SecureMemo) + 유클라우드.
KT비회원도 무료가입 후 2GB까지 쓸 수 있음.
드디어 업데이트 되었네요.
다운로드는 구글플레이(안드로이드 마켓)에서..
https://play.google.com/store/apps/details?id=kr.co.bitek.android.memo&hl=ko
2012년 11월 11일 일요일
2012년 10월 9일 화요일
갤럭시넥서스 ICS --> 젤리빈(4.1) OTA 강제로 받는 법
SKT 갤럭시넥서스 순정에서 ICS --> 젤리빈(4.1) OTA 강제로 확인하는 방법
1) 설정 > 애플리케이션 > 전체 > Google Service Framework 들어가서.. 데이터 삭제.
2) 설정 > 휴대전화 정보 > 시스템 업데이트 > 지금확인
( 위 서비스프레임워크 데이터를 지우면 확인날짜가 1970.01.01 이라고 되어있을거에요)
또는 1) 번 수행 후 다이얼러 열어서 *#*#2432546#*#* 입력 후 통화버튼.
심플하고 특이한 로또 앱.. Pic Lotto
심플하고(가볍고..) 특이한 로또 앱 발견.
사진을 찍거나 기존 갤러리에서 사진을 선택하면..
사진 데이터(?)를 분석해서 로또번호를 생성해준다.
이걸로 당첨되면 더 좋겠다..ㅋㅋㅋ
구글플레이(안드로이드 마켓)에서 다운로드(무료)
https://play.google.com/store/apps/details?id=com.gnseor.piclotto
2012년 9월 12일 수요일
MSSQL 에서 IDENTITY 지정된 필드의 INSERT값 알아내기
MSSQL 에서 IDENTITY 지정된 필드의 INSERT값 알아내기
예를 들어 AA 라는 필드에 IDENTITY 가 걸려있는경우, 알아내기위해 쿼리를 다시 하지 않고..
INSERT 의 리턴값을 해당 필드값으로 반환받을 수 있다.
INSERT INTO 테이블명 ( 컬럼명1, 컬럼명2, ...)
OUTPUT INSERTED.리턴받을 컬럼명
VALUES ( 컬럼값1, 컬럼값2, ...)
예)
INSERT INTO TEST
(
BB
, CC
)
OUTPUT INSERTED.AA
VALUES (
, '1'
, GETDATE()
)
자바에서 Process 와 Runtime.getRuntime().exec()를 이용한 외부 프로그램 실행시..
자바에서 Process 와 Runtime.getRuntime().exec()를 이용한 외부 프로그램 실행시..
특정디렉토리에서 수행되도록 하는 경우.
주의할 점은 명령실행 후 출력되는 내용이 getInputStream()으로 대부분 나오지만,
간혹 getErrorStream() 으로 내보내지는 경우도 있으니, 둘다 확인해봐야 한다.
public class Test {
public static void main( String[] args ) {
try {
Process child = Runtime.getRuntime().exec( "java -version", null, new File( "D:\\Java\\jdk1.6.0_16\\bin\\" ) );
System.out.println( readAll( child ) );
child.waitFor();
System.out.println( child.exitValue() );
}
catch ( Exception e ) {
e.printStackTrace();
}
}
private static String readAll( Process child ) {
StringBuffer sb = new StringBuffer();
sb.append( read( child.getInputStream() ) ).append( "\n" );
sb.append( read( child.getErrorStream() ) );
/**
* (필수) OutputStream 을 닫는다.
* waitFor() 무한대기 방지를 위해
*/
try {
child.getOutputStream().close();
} catch (IOException e) {
e.printStackTrace();
}
return sb.toString().trim();
}
private static String read( InputStream in ) {
StringBuffer sb = new StringBuffer();
BufferedReader br = null;
try {
String line = null;
br = new BufferedReader( new InputStreamReader( in ));
while ( ( line = br.readLine() ) != null ) {
sb.append( line ).append( "\n" );
}
}
catch (IOException e) {
e.printStackTrace();
}
finally {
/**
* (필수) InputStream 을 닫는다.
* waitFor() 무한대기 방지를 위해
*/
try {
if ( br != null ) br.close ( );
} catch (IOException e) {
e.printStackTrace();
}
}
// 문자열의 앞/뒤 공백을 제거하고 담는다.
return Util.emptyString( sb.toString() ).trim();
}
}
특정디렉토리에서 수행되도록 하는 경우.
주의할 점은 명령실행 후 출력되는 내용이 getInputStream()으로 대부분 나오지만,
간혹 getErrorStream() 으로 내보내지는 경우도 있으니, 둘다 확인해봐야 한다.
public class Test {
public static void main( String[] args ) {
try {
Process child = Runtime.getRuntime().exec( "java -version", null, new File( "D:\\Java\\jdk1.6.0_16\\bin\\" ) );
System.out.println( readAll( child ) );
child.waitFor();
System.out.println( child.exitValue() );
}
catch ( Exception e ) {
e.printStackTrace();
}
}
private static String readAll( Process child ) {
StringBuffer sb = new StringBuffer();
sb.append( read( child.getInputStream() ) ).append( "\n" );
sb.append( read( child.getErrorStream() ) );
/**
* (필수) OutputStream 을 닫는다.
* waitFor() 무한대기 방지를 위해
*/
try {
child.getOutputStream().close();
} catch (IOException e) {
e.printStackTrace();
}
return sb.toString().trim();
}
private static String read( InputStream in ) {
StringBuffer sb = new StringBuffer();
BufferedReader br = null;
try {
String line = null;
br = new BufferedReader( new InputStreamReader( in ));
while ( ( line = br.readLine() ) != null ) {
sb.append( line ).append( "\n" );
}
}
catch (IOException e) {
e.printStackTrace();
}
finally {
/**
* (필수) InputStream 을 닫는다.
* waitFor() 무한대기 방지를 위해
*/
try {
if ( br != null ) br.close ( );
} catch (IOException e) {
e.printStackTrace();
}
}
// 문자열의 앞/뒤 공백을 제거하고 담는다.
return Util.emptyString( sb.toString() ).trim();
}
}
2012년 8월 1일 수요일
2012년 7월 27일 금요일
피드 구독하기:
글 (Atom)