프로그래밍
-
[Centos] .net core 2.1 설치 오류...프로그래밍/.net core 2018. 6. 5. 17:50
개발환경에서 ms 에서 안내에 따라 설치하다 보면 다음과 같은 오류로 인해 설치가 안되는 경우... Downloading packages:dotnet-runtime-deps-2.1.0-rc1- FAILEDdotnet-host-2.1.0-rc1-x64.rpm FAILED 수동으로 2.1.0 런타임을 설치 한 후 ms 안내에 따라 설치해 보자... sudo rpm -Uvh https://packages.microsoft.com/yumrepos/microsoft-fedora27-prod/dotnet-runtime-2.1.0-x64.rpm 일단 패키기로 런타일 설치 후 문제가 없었으나 수정한 내용중 /etc/yum.repos.d/microsoft-prod.repo 내용을 남겨 둔다 -ㅅ-; 음.. 상관 없을려나..
-
배열 사용자 변수 사용예...프로그래밍/mysql 2018. 5. 31. 13:55
set @targets ='1234,1235,1230'; #공백 없이 구분자 , 사용해야 함.set @items = '102,111,112';select * from [테이블명] where FIND_IN_SET(id, @items) and FIND_IN_SET(uid, @targets);update [테이블명] set count=count+4 where FIND_IN_SET(id, @items) and FIND_IN_SET(uid, @targets); 특정 대상을 찾기위해 쿼리문에서 배열 사용자 변수를 설정해 사용하는 방법. >> 참조사용자 변수 : https://dev.mysql.com/doc/refman/8.0/en/user-variables.html FIND_IN_SET : https://dev.m..
-
메모: centos 에 .net core sdk 업그레이드 순서.프로그래밍/.net core 2017. 11. 2. 17:46
1) 기존에 설치된 .net core sdk 가 있으면 제거한다. (yum, apt-get 등으로 가능하면 진행)> 불가능한 경우 dotnet --info 실행 후 설치된 경로 폴더를 삭제. 2) 새 버전의 .net core sdk 설치.> https://docs.microsoft.com/ko-kr/dotnet/core/linux-prerequisites?tabs=netcore2x 3) dotnet --version 을 통해서 업데이트가 잘 되었는지 확인.> 실행되지 않는 경우 2) 단계에서 안내하는 단계중 PATH 설정을 빼먹은것 아닌지 확인. ※ 기존에 설치된 폴더를 제거하지 않은 상태에서 설치한 경우 이전 버전으로 실행 되거나 dotnet 자체가 실행되지 않을 수 있음. 그럴때는 이전 버전의 폴더 ..
-
외부 접속 권한 설정 셈플...프로그래밍/mysql 2017. 6. 12. 12:25
mysql 에 외부 프로그램(HeidiSQL 등...) 을 사용한 접속 설정이 필요한 경우 다음 쿼리를 참고해 작업하자 :P // 5.6 이하에서 유저 외부 접속 설정 확인select host,user,password from mysql.user; // 5.7 이상에서 유저 외부 접속 설정 확인select host,user,authentication_string from mysql.user; // 5.6 이하에서 password 사용하는 경우.INSERT INTO mysql.user (host,user,password) VALUES ('123.123.123.123','root',password('123456'));GRANT ALL PRIVILEGES ON *.* TO 'root'@'123.123.123...
-
-
[WPF] 랜더타겟 이미지 스케일링 조정시(확대시) 깔끔히 나오는게!?프로그래밍/조각코드 2012. 5. 29. 18:44
image = new Image(); RenderOptions.SetBitmapScalingMode(image, BitmapScalingMode.NearestNeighbor);음! 이건 버전이나 그런것은 모르겠고 일단 설정하는 모드가 있는듯!BitmapScalingMode 의 멤버들.. msdn 뽑아옴~Member nameDescriptionUnspecifiedUse the default bitmap scaling mode, which is Linear.LowQualityUse bilinear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output. The LowQualitymode is the sam..
-
[C# WPF] File Drag&Drop / 이미지 표시 / 부분 읽어오기.프로그래밍/조각코드 2012. 5. 10. 15:28
wxWidgets 을 이용해서 만들었던 간단한 이미지 체크툴을 C# WPF 으로 만들어 보기 위해서 구글링을 통해 알아본 해당 코드들... 음 이미지 동일 여부 판단 하는 부분은 빠져 있지만 다른 잡다한 코드가 많이 있던 wxWidgets + C/C++ 보다는.. 간결한 코드가 나온다 ;ㅂ; (.NET 3.5 가 필요하지..) 농담 아니고 정말-ㅅ- 간단하게 처리된다!;; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.D..