본문 바로가기

분류 전체보기34

AWS | Amazon Web Services | system interrupts - CPU 100% AWS | Amazon Web Services | system interrupts - CPU 100% 아마존 웹 서비스 CPU 100% 에러 system interrupts 오류 1. 문제 Wondows Server 인스턴스 CPU 100% 상황 발생. 원격데스크톱 연결안됨. Wondows Server 속도 저하. 2. 원인 원격데스크톱 오류로 예상됩니다. 원격데스크톱 3~4일 장기간 연결 된상태로 유지할시 문제 발생. 해결 AWS 인스턴트 재시작으로 CPU 안정화. Server관리는 필요시만 원격테스크톱 사용. 파일관리는 FTP 사용. 2020. 8. 25.
C# Winform | Json - Read, Write C# Winform | Json - Read, Write Nuget 설치 1. Microsoft.Windows.SDK.Contracts 설치 2. 마이그레이션 3. 마이그레이션 확인 설정완료후 Using 추가 1 using Windows.Data.Json; cs 읽기 1. test JSON string [{"key":1,"market":"ETH","day":1.31,"week":-2.75,"mon1":34.09,"mon6":30.17,"year1":89.76,"view":true}, {"key":2,"market":"USDT","day":-0.99,"week":-0.88,"mon1":-20.91,"mon6":-19.09,"year1":-14.39,"view":true}, {"key":3,"market":.. 2020. 8. 24.
C# Winform | List Sort | ObservableCollection Sort C# Winform | List Sort | ObservableCollection Sort List Sort Code - 1 List orgList = new List(); List tempList = orgList.OrderBy(x => x.FiledName).ToList(); cs Code - 2 List orgList = new List(); orgList.Sort(delegate (classObjectx, classObjecty) { if (x.FiledName == null && y.FiledName == null) return 0; else if (x.FiledName == null) return -1; else if (y.FiledName == null) return 1; else retur.. 2020. 7. 3.
C# Winform | enum foreach C# Winform | enum foreach enum foreach foreach (sample_t p in Enum.GetValues(typeof(sample_t))) { Console.WriteLine(p.ToString() + " : " + (int)p); } Colored by Color Scripter cs TEST CODE - 1 public enum sample_t { SAMPLE1, SAMPLE2, SAMPLE3, SAMPLE4, } cs output SAMPLE1 : 0 SAMPLE2 : 1 SAMPLE3 : 2 SAMPLE4 : 3 TEST CODE - 2 public enum sample_t { SAMPLE1 = -100, SAMPLE2, SAMPLE3, SAMPLE4, } cs o.. 2020. 5. 6.
C# Winform | Hardware Info | CPU ID, HDD, Mac, Serial C# Winform | Hardware Info | CPU ID, HDD, Mac, Serial using System.Management MSDN MSDN Computer System Hardware Classes - Win32 apps Computer System Hardware Classes In this article --> The Computer System Hardware category groups classes together that represent hardware related objects. Examples include input devices, hard disks, expansion cards, video devices, networking devices, and docs.mic.. 2020. 4. 29.
C# Winform | DateTime Convert(Long To, TimeStamp to) C# Winform | DateTime Convert(Long To, TimeStamp to) long Date to DateTime private DateTime LongDateToDateTime(long longdate, string type) { DateTime date = DateTime.ParseExact(longdate.ToString(), type, System.Globalization.CultureInfo.InvariantCulture); return date; } Colored by Color Scripter cs TEST CODE private void button1_Click(object sender, EventArgs e) { Console.WriteLine(LongDateToDat.. 2020. 4. 28.