일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 폼메일
- 설치
- not working
- chart.js
- 안드로이드
- 자동 생성
- android 효과음
- roundcube
- mysql
- xe
- C#
- php 취약점
- dovecot
- C# IO
- 안드로이드 푸시
- 자바스크립트
- 안드로이드 푸쉬
- WebView
- javascript
- 우분투
- Mail Server
- Android
- html5
- FCM
- curl
- php 시큐어코딩
- UML
- 안드로이드 gcm
- PHP
- soundpool
- Today
- Total
목록분류 전체보기 (496)
그러냐
http://blog.naver.com/doghole/100131749210 Image img = Image.FromFile("이미지있는곳/이미지.ico"); ------------------------------------------------------------------< 멀쩡한 이미지 using (Graphics g = Graphics.FromImage(img)) { Color 반투명파랑 = Color.FromArgb(100, Color.Blue); SolidBrush brush = new SolidBrush(반투명파랑); g.FillRectangle(brush, 0, 0, img.Width, img.Height); brush.Dispose(); } -------------------------..
private void DrawAnalogClock(Graphics g) { int center = baseX + picH / 2; //int centerY = baseY + picW / 2; double valueAngle = 2 * Math.PI * (value+45/*Center Angle*/) / 100; //double radian = valueAngle * (Math.PI / 180); //g.DrawLine(new Pen(Brushes.Red, 7), center, center, // center + (int)(100 * Math.Cos(valueAngle)), // center + (int)(100 * Math.Sin(valueAngle))); Image img = Image.FromFil..
public static string MD5(string password) { byte[] textBytes = System.Text.Encoding.Default.GetBytes(password); try { System.Security.Cryptography.MD5CryptoServiceProvider cryptHandler; cryptHandler = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] hash = cryptHandler.ComputeHash (textBytes); string ret = ""; foreach (byte a in hash) { if (a
using System; using System.Collections; namespace FirstCon { class Archive { public static void Compress(int nFile) { for( int i = 0; i < nFile; i++ ) { Console.WriteLine("{0}번째 파일을 압축하는 중이다...", i + 1); System.Threading.Thread.Sleep(500); } } } class Program { static void Main() { Archive.Compress(10); Console.WriteLine("모든 파일을 압축했습니다."); } } } /* 델리게이트 활용 */ using System; using System.Collecti..
using System; using System.Collections; namespace FirstCon { class Program { public static int Add(int a, int b) { return a+b; } public static int Mul(int a, int b) { return a*b; } static void Main() { int a = 3, b = 5; int o; Console.Write("어떤 연산을 하고 싶습니까? (1: 덧셈, 2: 곱셈) " ); o = Convert.ToInt32(Console.ReadLine()); switch(o) { case 1: Console.WriteLine("결과는 {0} 입니다.", Add(a, b)); break; case 2..
C# 2.0의 새로운 기능들 이번 글에서는 Generic을 제외한 C# 2.0의 새로운 기능들에 대해서 소개할 것이다(Solve It의 다른 필자 분이 VB.NET에서의 Generic에 대해서 소개를 하였기 때문에, C#에서의 Generic에 대한 설명은 생략하기로 한다). C# 2.0에 새롭게 추가된 기능이 상당히 많기 때문에 이 글에서 소개하는 내용 중에서 특별히 관심을 끄는 내용이 있다면, C# 2.0 스펙에 대해서 소개하고 있는 서적을 구입하여 보다 자세한 정보를 확인하도록 한다. 반복문의 활용, Iterators C#의 foreach 문을 사용하게 되면서부터, 기존의 C/C++ 개발자들은 반복문의 활용에 대해서 굉장히 다른 시각을 갖게 되었다. for와 while을 사용하는 일반적인 반복문은 개..
* Socket 클레스를 이용한 바이트단위 Socket 프로그램* # Server-------------------------------------------------------------------- 1. IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 7000); 2. Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); 3. server.Bind(ipep); 4. server.Listen(10); 5. Socket client = server.Accept(); # Client------------------------------------------..
Invoke, MethodInvoker, BeginInvoke - EndInvoke UI Control들은 폼 구동시 실행되는 하나의 쓰레드에서 구동된다. 따라서 사용자가 실행시킨 쓰레드는 별도로 실행 되기 때문에 이 메인 쓰레드에 적절한 마샬링 없이 다른쓰레드에서 직접 접근하면 다른 쓰레드를 침범하는 것이다. (Cross Thread Problem) 이런 경우에는 프로그램이 개발자가 설계한대로 잘 동작하지 않을 수 있다.(Race Condition,DeadLock) 따라서, 안전하게 동작하게 하기위하여 .Net 환경에서는 Invoke를 제공하고 있다. 본 내용을 무시한 채 프로그램을 작성하면 InvalidOperationException을 발생시키고 . Debug 창에서 "컨트롤이 자신이 만들어진 스레..
Written by 김영일(Youngil Kim), C# Developer C# 2.0에서는 익명메소드라는 기능이 있는데 이를 이용하면 여러개의 메소드로 나누어서 처리해야할 것을 1개로 정리할 수 있는 기능입니다. 그러나, Control클래스의 Invoke메소드 파라미터로서 익명메소드를 만들면 컴파일시 오류가 납니다. - 익명 메소드 사용법 Thread 클래스에 의해 다른 스레드로 처리를 할 경우 , C# 1.1에서는 다음과 같이 사용합니다. void Run() { ThreadStart ts = new ThreadStart(worker); Thread t = new Thread(ts); t.Start(); } void worker() { Console.WriteLine("스레드 실행중..."); } 위 ..
스레드 간 컨트롤 접근과 스레드 동기화 닷넷 프레임웍을 이용해서 멀티스레드 어플리케이션을 작성할 일이 종종 있다. 특히나 파일 다운로드/업로드 나 긴 데이터베이스 작업을 수행할때, 사용자는 "죽은거야?......모래시계만 나오고..죽은거네..싱..." 라고 인내심을 버리기 일쑤다... 이럴때 우리의 개발자들은 예뿐 상태진행 화면을 작업 중에 보여주어 사용자가 "아..잘 처리되고 있구나..." 라고 인식할 수 있도록 해주어야 할 것이다.....그래야 한다...그래야 프로젝트 종료가 된다...-_-! 이 상태처리 화면을 폼으로 작성하기만 한다고 해서 작업 처리 중에 상태처리 화면을 동시에 보여줄 수 있는것은 아니라는것은 삼척동자도 다 안다....그래서 우리는 System.Threading.Thread.Sta..