본문 바로가기

분류 전체보기473

String to Date format string For java @SuppressLint("SimpleDateFormat") public static String toDateFormat(String v) { String rtn = ""; if ( StringUtils.isNotEmpty(v) ) { v = v.replaceAll("[^0-9]", ""); System.out.println(v); SimpleDateFormat pm = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat sm = new SimpleDateFormat("yyyy-MM-dd"); try { Date vd = pm.parse(v); rtn = sm.format(vd); } catch (ParseException e) { e.printStackTrace(.. 2015. 12. 28.
java generic classes http://www.slideshare.net/yanngaelgueheneuc/java-generic-classes/1?src=clipshare 2015. 12. 28.
POJO to String by java reflection public static void pojoToString(Object obj) { Class cls = obj.getClass(); Field fieldlist[] = cls.getDeclaredFields(); for (int i = 0; i < fieldlist.length; i++) { Field fld = fieldlist[i]; // Util.i("name = " + fld.getName()); // Util.i("decl class = " + fld.getDeclaringClass()); // Util.i("type = " + fld.getType()); // int mod = fld.getModifiers(); // Util.i("modifiers = " + Modifier.toString(.. 2015. 12. 28.
fsutil 대용량 파일 생성 원본 : http://blog.daum.net/naturelove87/156 가끔 파일을 한꺼번에 많이 생성할 때 또는 대용량 파일이 필요할 때 쓰는 명령어 윈도우: fsutil 리눅싀: dd -사용방법 fsutil file createnew [filename] [filesize] ex) fsutil createne test.txt 102400 -> test란 이름으로 1MB 파일이 생성된다. dd if=/dev/zero of=[경로 및 파일명] bs=[filesize] count=[반복횟수] ex) dd if=/dev/zero of=/root/test.txt bs=100M count=1 -> test.txt란 이름으로 100MB의 파일이 생성된다. count=2 일경우 200MB가 생성된다. ※ 주의할.. 2015. 11. 12.
change image position and size in ppt Sub a1() ActiveWindow.Selection.ShapeRange.Width = 495.5 'ActiveWindow.Selection.ShapeRange.Height = 364.25 ActiveWindow.Selection.ShapeRange.Left = 19.87504 ActiveWindow.Selection.ShapeRange.Top = 135.5 '495.5 '364.25 '19.87504 '135.5 End Sub Sub a2() MsgBox (ActiveWindow.Selection.ShapeRange.Width & " / " & ActiveWindow.Selection.ShapeRange.Height & " / " & ActiveWindow.Selection.ShapeRange.Le.. 2015. 11. 12.
security.fileuri.strict_origin_policy http://stackoverflow.com/questions/17711924/disable-cross-domain-web-security-in-firefox The Chrome setting you refer to is to disable the same origin policy. This was covered in this thread also: Disable firefox same origin policy about:config -> security.fileuri.strict_origin_policy -> false 2015. 10. 12.