허당 레몬도리
임시 인터넷 파일캐싱을 위한 방지 html,css,javascript
가. 언어유형/C# 2015. 5. 19. 17:06

이번 글의 주제 캐싱입니다. 프로그램 소스 html, css, script 등을 변경해서 서버에 반영을 했는데. 특정 사람들에 한하여 반영된 소스가 안보일 경우가 있습니다. 보통 같은 파일명의 파일에 내부소스를 변경하거나 추가했을시 적용되지 않을것처럼 헝클어지거나, 어긋나 보이는 현상이기도 하지요. 가서 확인을 해보면 임시 인터넷 폴더에 해당 파일(캐싱)이 존재해서 인데요. 개발자 입장에서 쉽게 해결하는 방법 1. Ctrl + F5를 입력하라고 한다. - 입력할 경우 캐싱된 파일들을 날리고 새로 받습니다. 2. 인터넷 설정에서 임시인터넷 파일 설정을 웹 페이지를 열 때마다로 변경 한다. 이 두 가지는 정말 개발자 입장에서 처리한 것 이라서 사용자가 난 그리 못하겠다고 하면 답이 없습니다. 최초 유효방문자..

CodePlex의 괞잖은 오픈소스들
가. 언어유형/C# 2014. 8. 8. 11:50

CodePlex의 괞잖은 오픈소스들 체계적인 오픈소스 관리및 개발자들 양성... 부럽습니다.. 여기서 말하는 그래프는 차트가 아닙니다. 일반 그래프이론에서 말하는 그래프입니다. 88가지 주요 이미지포맷 조작을 맘대로~~~ http://graphicsmagick.codeplex.com/ Graph 데이타구조및 알고리즘 오픈소스 http://quickgraph.codeplex.com/ Graph# : WPF로 그래프 레이아웃 오픈소스 http://graphsharp.codeplex.com 엑셀에서 그래프를 http://nodexl.codeplex.com/ WPF그래프 : 작동을 잘 않는데.. 괞잖은 소스일듯.. http://graphviz4net.codeplex.com/ http://graphx.codepl..

A simple C#, Thread Safe Logging Class
가. 언어유형/C# 2014. 7. 7. 18:00

I was doing some work for a client recently that had all sorts of issues with logging due to some old code from the original developers. It had multiple threads all trying to write to the log file simultaneously. Needless to say loads of logging just fell by the way side as the file could not be locked for writing. The Singleton class below implements an internal queue that stacks up Log Message..

C# 비동기 메서드 샘플
가. 언어유형/C# 2013. 10. 1. 16:39

Call a Method Asynchronously using Delegate BeginInvoke and EndInvoke Patternhttp://www.dotnetcurry.com/ShowArticle.aspx?ID=634

엑셀 숫자 형변환 방지
가. 언어유형/C# 2013. 7. 12. 15:13

엑셀엑셀변환시 형변환 방지 (텍스트가 숫자로 변환될때)style="mso-number-format:\@" Response.ContentType = "application/vnd.ms-excel"; //excel인지 word인지 구분 Response.AddHeader("Content-Disposition", "attachment; fileName=Stationery.xls"); // 저장할 파일명 지정 Response.Charset = "UTP-8"; /* */ System.IO.StringWriter tw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw); GridView..

JSON 타입의 직렬화, 역직렬화
가. 언어유형/C# 2013. 7. 12. 14:18

/// /// JSON 타입의 직렬화 /// /// /// /// public static string Serialize(T obj) { string json = null; using (MemoryStream ms = new System.IO.MemoryStream()) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(obj.GetType()); serializer.WriteObject(ms, obj); json = Encoding.UTF8.GetString(ms.ToArray()); } return json; } /// /// JSON 타입의 역직렬화 /// /// /// /// public static T Deseria..

String Format for DateTime [C#]
가. 언어유형/C# 2013. 3. 12. 21:07

String Format for DateTime [C#] This example shows how to format DateTime using String.Format method. All formatting can be done also using DateTime.ToString method. Custom DateTime Formatting There are following custom format specifiers y (year), M (month), d (day), h (hour 12), H (hour 24), m (minute), s (second), f (second fraction), F (second fraction, trailing zeroes are trimmed),t (P.M or ..

String 문자열을 Datetime으로 변경
가. 언어유형/C# 2013. 3. 12. 20:24

DateTime Class(http://msdn.microsoft.com/ko-kr/library/w2sa9yss.aspx) DateTime.ParseExact 메서드를 이용해 변경해보자 메서드의 요구하는 매개변수들은 string s : 문자열로 된 날짜(ex:20130312202112) string format : 위 문자(s)의 형태(ex:yyyyMMddHHmmss) IFormatProvider provider : 서식 지정을 제어하는 개체를 검색하기 위한 메커니즘(ex:CultureInfo) public static DateTime ParseExact( string s, string format, IFormatProvider provider ) 예제 string buy_time = "20130312..