2011의 게시물 표시

c# Create Zip File Using 7-zip

d:\s 폴더 안에 있는 모든 파일 (서브디렉토리포함) zip파일 형태로 압축하여 d\s.kmz 파일로 떨군다. Creating "d\s.kmz" file from all files including sub folders in "d\s". 7zip Option : -t[Type] public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void button1_Click(object sender, EventArgs e)         {             string directoryName = Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().Location);             string processName = Path.Combine( directoryName,"7z.exe");             string argument = " a -tZip \"d:\\s.kmz\" \"d:\\s\\*\"";             Process p = new Process();             p.StartInfo.Arguments = argum...

cmd Key overriding

protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { Keys key = keyData & ~(Keys.Shift Keys.Control); switch (key) { case Keys.D: if ((keyData & Keys.Control) != 0 && (keyData & Keys.Shift) != 0) { if (m_debuggingForm == null) { TPSMessageBox.Show(this, "Debug Mode Activated"); m_debuggingForm = new Debugging_Form(); m_debuggingForm.Show(); m_debuggingForm.SetDesktopLocation(this.Left + (this.Width - m_debuggingForm.Width) / 2, this.Top + (this.Height - m_debuggingForm.Height) / 2); } else if (m_debuggingForm.IsDisposed) { TPSMessageBox.Show(this, "Debug Mode Activated"); m_debuggingForm = new Debugging_Form(); m_debuggingForm.Show(); m_debuggingForm.SetDesktopLocation(this.Left + (this.Width - m_debuggingForm.Width) / 2, this.Top + (this.Height - m_debuggingForm.Height) / 2); } else { m_debuggingForm.BringToFront(); } return true; } break; } return base.ProcessCm...

VSTO 2010 xp Deploy Problem

I tried to deploy Excel 2010 Add-In to XP target machine. But the Add-In didn't work properly which worked well with windows 7. The solution is so simple: Install office 2010PIA on your XP target machine. You can download office 2010PIA in here: http://www.microsoft.com/download/en/details.aspx?id=3508 If you want to make a setup package, you need this bootstrapper, download here : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=18249

웹 디버깅

이미지
옵션 변경 캡션 추가

[MS-SQL] DB의 모든 테이블 정보

select OBJECT_NAME(id) , rows from sysindexes where indid = 1 order by rows desc

When meet "The Module DLL C:\Windows\System32\inetsrv\isapi.dll failed to load. The data is the error." message in event log

이미지
When 503 Sevice unable error occured, check event viewer. If you see "The Module DLL C:\Windows\System32\inetsrv\isapi.dll failed to load.  The data is the error." message, try this one. [Error Message] [solution]

VMware hdd 추가 후 offline상태일 때

CMD창에서 Diskpart 실행후 다음과 같이 입력 DISKPART> SELECT DISK n DISKPART> ATTRIBUTES DISK CLEAR READONLY DISKPART> ONLINE DISK DISKPART> attributes disk clear readonly DISKPART> create partition primary

Deploying a Visual Studio 2010 Tools for Office Solution Using

http://msdn.microsoft.com/en-us/library/ff937654.aspx
/* USE BDB GO BACKUP DATABASE BDB TO DISK = 'D:\DBA\BDB.BAK' */ RESTORE DATABASE BDB FROM DISK = 'D:\DBA\BDB.BAK' GO RESTORE HEADERONLY FROM DISK = 'D:\DBA\BDB.BAK' GO RESTORE FILELISTONLY FROM DISK = 'D:\DBA\BDB.BAK' GO
http://developer.android.com/index.html Publish / Learn more 링크 클릭 1. 개발자 : 개발자키 + apk = a.apk (마켓 업로드 가능) 2. 엉뚱한 해커 : a.apk 이유 : 개발자 키가 존재해야 하는 이유 1. 커스터머 보호 (업그레이드) 2. google 에서 개발자 관리 (개발자키 + 서비스키(ex:map) <마켓 등록시 필요한 자원> 1. 서명된  apk 2. Screenshots 2개이상  - 320 * 480  - 480 * 800  - 480 * 854  - 1280 * 800 3. High Resolution Application Icon 4. 제목/설명(한국어/영어) manifest먼저 변경 src/gen package open > resfector > rename

MS-SQL server 사용 메모리 수정하기

sp_configure sp_configure 'show advanced options', 1 reconfigure sp_configure 'max server memory (MB)', 2048 reconfigure sp_configure 'show advanced options', 0 reconfigure

안드로이드 교육 1일 차

이미지
package 명은 최소 .두개이상 Android Package : src : 소스파일 gen : 자동 생성파일 (건들지 말 것) , R.java: resource asset : 자산 res : 자원(resource) R.java 와 res 가 동기화 된다. > 리소스는 R.java와 동기화되므로 R.java로 부터 이미지 객체를 참조 할 수 있다. 안드로이드 지원 이미지: png , jpg, gif values : 문자열 AndroidManifest : app 정보저장 : version(안드로이드 버전, 앱app), 첫 화면, 외부 호출, permission, 외부 라이브러리 등등... = web.xml(Deploy Descriptor) default.properties : device target 한화면의 단위 : Activity Main이 없어도 실행되는 것들 (life cycle을 가지고 있음): Applet, Servlet, Midlet, Jlet, Xlet 라이프 사이클 : 환경 시스템 이 호출 : OnCreate public : 접근 제한자 final : 수정 제한자(modifier)  final int= 1; 상수화 final void m() : override 불가 inner class를 왜 쓰는가? class A {    int i = 10; //멤버 변수(data) = 속성(attr value) = Field(API관점에서) } static : 소유 제한자 (클래스에 소속된) 멤버변수와 리소스에는 항상 소유 주체가 있다. : 클래스 또는 객체가 주체 asset : 큰 이미지 R.java는 실행과 동시에 메모리에 적재 안드로이드 xml파일, 이미지 전부 소문자/숫자만 가능

ANDROID 환경 구성

이미지
1. JDK 설치 환경변수>시스템 변수 에 path추가 : jdk 폴더 classpath추가: .; 2. Eclipse SE for Java Devoloper galileo ver. 설치 : 최신버전은 궁합이 맞지 않음 플러그인 설치 : Eclipse>help>install software http://developer.android.com/index.html plug in 설치 http://developer.android.com/sdk/eclipse-adt.html 3. Android SDK 설치 안드로이드 = Platform + Software Stack

SharePoint 에러 메시지 : 통합 문서에 사용된 데이터 연결 파일에 액세스할 수 있는 권한이 없거나 해당 파일이 존재하지 않습니다.

에러 메시지 : 통합 문서에 사용된 데이터 연결 파일에 액세스할 수 있는 권한이 없거나 해당 파일이 존재하지 않습니다. 상황 : 외부에서 쉐어포인트 사이트의 Excel 파일에 접근 하였을때 발생 발생 이유 : 외부접근 URL이 등록이 되지 않았기 때문 해결 방법 : 중앙관리>대체 액세스 매핑 으로 이동                      인터넷 영역에 URL을 등록한다.

SQL Server 에이전트를 사용하여 SSIS 패키지 실행 자동화(SQL Server 비디오)

SQL Server 에이전트를 사용하여 SSIS 패키지 실행 자동화(SQL Server 비디오) http://technet.microsoft.com/ko-kr/library/dd440761(SQL.100).aspx