2015년 3월 26일 목요일
[EtC] Classic ASP 에서 외부링크의 JSON 결과 가지고 오기
Dim result Dim xmlhttp Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP") xmlhttp.Open "GET", "http://test.url?idx=" & session("idx"), false xmlhttp.setRequestHeader "Content-Type", "application/json; charset=utf-8" xmlhttp.send result = xmlhttp.responseText Set xmlhttp = Nothing Response.Write result
참고 : Classic ASP 용 JSON Parser http://www.aspjson.com/
2015년 3월 19일 목요일
[AnDrOiD] 카카오톡 텍스트 메세지 전송
String sendMsg = "Hello World!!"; Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, "[메세지]\n"); intent.putExtra(Intent.EXTRA_TEXT, sendMsg); intent.setPackage("com.kakao.talk"); startActivity(intent);
2015년 3월 9일 월요일
[AnDrOiD] adb 명령을 이용한 앱 구동 화면 녹화
c:\> adb shell screenrecord --time-limit 60 /sdcard/app_movie.mp4
WARNING: linker: libdmb_MPEG4SL.so has text relocations. This is wasting memory
and is a security risk. Please fix.
--time-limit : 녹화할 시간. 초단위.
/sdcard/app_movie.mp4 : 저장할 경로 및 파일 이름.
에러메세지에 대해서는 찾아 보는중...
2015년 3월 4일 수요일
[AnDrOiD] TableLayout의 stretchColumns 때문에 늘어난 TextView의 줄바꿈
출처 : http://susemi99.tistory.com/1340
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="1" >
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_width="70dp"
android:layout_height="match_parent"
android:text="@string/msg_name" />
<TextView
android:id="@+id/tvLoc"
android:width="0dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</TableRow>
</TableLayout>
2015년 2월 13일 금요일
[EtC] 명령어를 이용하여 윈도우 설치된 프로그램 목록 작성
관리자 권한으로 cmd 를 실행 합니다.
아래의 명령을 실행 합니다.
c:\> wmic
wmic:root\cli> /output:c:\programlist.txt product get name,vendor,version
윈도우 업데이트 목록을 얻어 내는 명령
wmic:root\cli> /output:c:\updatelist.txt QFE get Caption, Description, HotFixID, InstalledOn
출처 : http://egloos.zum.com/dochi575/v/4791023
2015년 2월 10일 화요일
[EtC] Tomcat 7 SSL 적용
server.xml
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" keystoreFile="인증서 파일 위치" keystorePass="인증서 비밀번호" clientAuth="false" sslProtocol="TLS" /><!-- 추가 --> <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/> <!-- 주석처리 -->
2015년 2월 5일 목요일
[LiNuX] ping 에 응답 하지 않도록 설정
root@testbed:~# sysctl net.ipv4.icmp_echo_ignore_all
net.ipv4.icmp_echo_ignore_all = 0
root@testbed:~# sysctl net.ipv4.icmp_echo_ignore_all = 1
* 참고 : 0 = ping 에 응답 함(기본값)
1 = ping 에 응답 하지 않음.
2015년 1월 22일 목요일
[EtC] 프로그램의 User-Agent 값 테스트
1. JAVA 1.7 로 만든 프로그램
Java/1.7.0_60
2. VB 6.0 으로 만든 프로그램
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; BRI/2; SMJB)
3. wget
Wget/1.13.4 (linux-gnu)
2014년 12월 30일 화요일
[AnDrOiD] 화면 캡쳐 방지
setContentView(); 이전에 아래의 코드를 넣는다.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
출처 : http://biig.tistory.com/54
피드 구독하기:
글
(Atom)