protected String getCurrentMethodName() 
{
    return new Exception().getStackTrace()[1].getMethodName();
}

Posted by zennken

cat plugin_directory/plugin.properties

aboutText=blah blah\n\n\
Build Number: 

 

cat build.xml

...

<target name="before-pde-build">

<echo file="${buildDirectory}/plugins/plug_in_name/plugin.properties" message=${env.BUILD_NUMBER}" append="true"/>
</target>

Posted by zennken

public static final NumberFormat gLocaleNumberFormatter = NumberFormat.getNumberInstance(Locale.getDefault());


System.out.println (gLocaleNumberFormatter.foramt(12345));

Posted by zennken

if (mListViewer != null)

{

List sList = mListViewer.getList();

if (sList.getItemCount() > 0)

{

sList.select(0);

sList.notifyListeners(SWT.Selection, new Event());

}

}

Posted by zennken

//////////////////////////////////
// Oracle
//////////////////////////////////
drop table t1;
create table t1 (c1 char(20));
insert /*+ APPEND */ into t1 select rownum from dual connect by level <=1000000;
commit;
select count(*) from t1;

//////////////////////////////////
// Timesten 7
//////////////////////////////////
autocommit on;
drop table TEST.T1;
create table test.t1 (c1 char(20));
insert into t1 select a.rowid from sys.columns a cross join sys.columns b;
select count(*) from t1;

//////////////////////////////////
// Timesten 11
//////////////////////////////////
drop table TEST.T1;
create table test.t1 (c1 char(20));
insert into t1 select a.rowid from sys.columns a cross join sys.columns b;
select count(*) from t1;
commit;

//////////////////////////////////
// MS-SQL
//////////////////////////////////
drop table t1;
create table t1 (c1 char(128));
insert into t1(c1) select top 480000 newid() from sys.columns a cross join sys.columns b;
insert into t1(c1) select top 480000 newid() from sys.columns a cross join sys.columns b;
select count(*) from t1;

//////////////////////////////////
// MySQL
//////////////////////////////////
drop table test.t1;
create table test.t1 (c1 char(20));
/* 1,000,000  */
insert into test.t1 (c1) select @row := @row + 1 from
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t1,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t2,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t3,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t4,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t5
;

//////////////////////////////////
// Informix
//////////////////////////////////
drop table t1;
create table t1 (c1 varchar(128));
insert into t1(c1) select a.rowid from syscolumns a cross join syscolumns b;
select count(*) from t1;

//////////////////////////////////
//Altibase 6.5.1
//////////////////////////////////
drop table t1;
create table t1 (c1 char(20));
insert /*+ APPEND */ into t1 select rownum from dual connect by level <=1000000;
commit;
select count(*) from t1;

//////////////////////////////////
// Tibero
//////////////////////////////////
drop table t1;
create table test.t1 (c1 char(20));
insert into t1 select rownum from dual connect by level <=100000

//////////////////////////////////
// CUBRID 9.x
//////////////////////////////////
drop table t1;
create table t1 (c1 int);
insert into t1 select rownum+1 from
                  table({0,1,2,3,4,5,6,7,8,9}) t0(a),
                  table({0,1,2,3,4,5,6,7,8,9}) t1(a), -- 100
                  table({0,1,2,3,4,5,6,7,8,9}) t2(a), -- 1,000
                  table({0,1,2,3,4,5,6,7,8,9}) t3(a), -- 10,000
                  table({0,1,2,3,4,5,6,7,8,9}) t4(a), -- 100,000
                  table({0,1,2,3,4,5,6,7,8,9}) t5(a)  -- 1,000,000

Posted by zennken

http://stackoverflow.com/questions/9463092/how-to-change-oracle-10gr2-express-editions-default-character-set

/* Oracle XE 10g alter default character set */

connect sys/xxxxx as sysdba
shutdown immediate 
startup mount 
alter system enable restricted session ; 
alter system set JOB_QUEUE_PROCESSES=0; 
alter system set AQ_TM_PROCESSES=0; 
alter database open; 
alter database character set internal_use KO16MSWIN949; 
shutdown immediate 
startup


SQL> select * from nls_database_parameters where parameter = 'NLS_CHARACTERSET';
PARAMETER
------------------------------
VALUE
--------------------------------------------------------------------------------
NLS_CHARACTERSET
KO16MSWIN949


Posted by zennken

1.5V 수은전지,리듐전지,알카라인전지,단추형,버튼형,코인형,button전지,coin전지,
alkaline전지, 배터리(battery) 라고 불리는 자주 사용되는 건전지 종류 및 호환성 명칭 입니다.

  • AG3   : LR41, LR736, 392A, CX41 호환
  • AG8   : LR55, LR1120 호환
  • AG10 : LR54, L1131, LR1130, 189 호환
  • AG11 : LR58, LR721 호환
  • AG12 :  LR43, L1142, LR1142, 186 호환
  • AG13 : LR44, L1154, LR1154, GPA76, A76, V13GA 호환
  • 357A : SG13, SR44W, 357 호환

출처: http://blog.naver.com/mbssz9/10097259921


Posted by zennken
  • 바탕화면에 있는 Chrome 아이콘 마우스 오른쪽 클릭
  • 바로 가기 만들기 
  • 바로 가기로 만든 Chrome 아이콘 마우스 오른쪽 클릭 >> 속성 >> 대상 "\Application\chrome.exe" --disable-directwrite-for-UI 추가
  •  적용 
  • 바로가기 만든 크롬 아이콘 재실행


출처: https://productforums.google.com/forum/#!category-topic/chrome-ko/windows7/PFPG-U9KL_E

Posted by zennken

When clearing routing table with "route -f", then 

  • Fail to ping 127.0.0.1 with general failure
  • Unable to use debugger at Eclipse: JDWP Transport dt_socket failed to initialize
My solution was
  1. Disable all NICs.
  2. Execute "route -f" again.
  3. Enable all NICs and input necessary information such as gate way.
  4. Reboot computer.
  5. Check 127.0.0.1 with "route print" command.
  6. Execute "ping 127.0.0.1" and confirm it works OK.


Posted by zennken

http://lj4newbies.blogspot.kr/2008/03/using-classgetresource-load-resource.html



Posted by zennken

zennken

달력