쭈니아빠 블로그
close
프로필 배경
프로필 로고

쭈니아빠 블로그

    • 분류 전체보기 (87)
      • Development (70)
        • C# (10)
        • WPF (4)
        • ASP.Net (11)
        • Javascript & TypeScript (4)
        • HTML & CSS (1)
        • NodeJs (1)
        • NextJS (1)
        • Angular (1)
        • Python (6)
        • Linux (1)
        • SQL (6)
        • Windows (7)
        • Visual Studio Code (1)
        • Unity (2)
        • Cocos2d-x (3)
        • Flutter (1)
        • Utility Apps (7)
        • Docker (1)
        • LeetCode (1)
      • 일상 (7)
        • 이런 저런 이야기 (2)
        • 노트북 (1)
        • 주변기기 (2)
      • 이글루스 블로그 기록들 (9)
        • 기록 보관소 (8)
        • 오래된 도구들 (1)
  • mode_edit_outline글작성
  • settings환경설정
  • 홈
  • 태그
  • 방명록
[HTML] Password 타입 input 태그 사용시 브라우저에서 비밀번호 자동 입력되지 않게 하기

[HTML] Password 타입 input 태그 사용시 브라우저에서 비밀번호 자동 입력되지 않게 하기

아래와같은 페이지가 있을 때 브라우저에서 비밀번호 자동입력 기능을 한 번이라도 사용하면 해당 페이지에 password type의 input 태그가 있는 곳 마다 auto completion기능이 동작해서 자동으로 값이 입력됩니다. second User Name Password second User Name Password 만일 두 번 째 password input box에 패스워드 자동입력을 막고 싶다면 아래와 같이 하면 됩니다. Password 자세한 내용은 MDN Web Docs를 참조하세요. 링크: https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

  • format_list_bulleted Development/HTML & CSS
  • · 2023. 2. 16.
  • textsms

[C#] HMACSHA256 클래스를 이용해서 사용자 비밀번호를 암호화하기

C#에 HMACSHA256 클래스를 사용하면 아주 간단한 코드로 사용자 비밀번호를 암호화된 문자열로 바꿀 수 있습니다. public static class CredentialHelper { public static string GetHMACSHA256Hash(string username, string password) { var key = Encoding.ASCII.GetBytes(username); var data = Encoding.ASCII.GetBytes(password); return Convert.ToBase64String(new HMACSHA256(key).ComputeHash(data)); } } 위와같이 static class를 하나 만들어두고 사용자가 입력한 username과 passw..

  • format_list_bulleted Development/C#
  • · 2023. 2. 15.
  • textsms

[Javascript] 이중 느낌표 연산자(Double Exclamation Operator)

Javascript 에서 이중 느낌표(!!) 연산자는 boolean으로 형 변환을 하는 기능을 합니다. const a = [1, 2, 3] const is_a_truthy = !!a; // true const b = null; const is_b_truthy = !!b; // false const c = 0; const is_c_truthy = !!c; // false const d = "0"; const is_d_truthy = !!d; // true

  • format_list_bulleted Development/Javascript & TypeScript
  • · 2023. 2. 14.
  • textsms
[C#] Project publish할 때  "Could not find a part of the path..." 오류가 발생할 경우

[C#] Project publish할 때 "Could not find a part of the path..." 오류가 발생할 경우

주 원인은 파일 경로가 너무 길어서 발생합니다. 그래서 프로젝트 폴더명을 줄이고 좀 더 상위 폴더에 위치시키는 방법을 써서 경로명 길이를 줄여주면 되지만 불가피하게 긴 이름과 깊은 level에 폴더에 위치시켜야한다면 Windows Registry를 변경 하는 방법이 있습니다. 아래 registry 경로로 가서 Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled를 1로 설정해 주면 해결 됩니다. 해당 property가 없다면 DWORD 타입으로 하나 생성해서 값을 1로 설정하면 됩니다. (리부팅 필요하지 않음)

  • format_list_bulleted Development/C#
  • · 2023. 2. 12.
  • textsms

[ASP.Net] ASP.Net Core WebAPI 프로젝트에 static html을 포함시킬때 Page Not Found(404) 에러 대신 root로 redirection 해주기

ASP..Net core로 WebAPI 서버를 자주 개발하는데 종종 Angular로 만든 프론트를 wwwroot 폴더에 넣어서 함께 종종 배포하곤 합니다. 이 때, Angular web app에서 별도로 routing을 하는 경우 ASP.Net에서 먼저 http 요청을 처리하기 때문에 브라우저에서 페이지 생신시 요청되는 url이 WebAPI에서 알지 못하는 주소라서 404 Not Found를 뿜어냅니다. 이럴 때 root 경로로 redirect 해주면 간단히 해결됩니다. app.Use(async (context, next) => { await next(); if (context.Response.StatusCode == 404) { context.Request.Path = "/"; await next();..

  • format_list_bulleted Development/ASP.Net
  • · 2023. 2. 11.
  • textsms
[ASP.Net] ASP.Net 6 Windows Service에 등록 후 실행하면 appsettings.json 파일을 못찾을 경우

[ASP.Net] ASP.Net 6 Windows Service에 등록 후 실행하면 appsettings.json 파일을 못찾을 경우

.Net 6 에서 ASP.Net core 프로젝트를 빌드해서 Windows Service에 등록 한 다음 서비스를 시작했는데 에러가 발생했다면 우선 Event Log Viewer 에서 Exception 메세지를 먼저 확인 합니다. Windows Logs -> Application 에서 .Net Runtime Error 내용을 들여다 보면 Exception이 발생한 코드의 위치가 나오는데, 해당 코드가 appsettings.json에서 읽어온 configuration을 access하는 코드라면 아래 옵션을 추가해서 간단히 해결 가능합니다. var builder = WebApplication.CreateBuilder(new WebApplicationOptions { Args = args, ContentRoo..

  • format_list_bulleted Development/ASP.Net
  • · 2023. 2. 9.
  • textsms
  • 1
  • ···
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • ···
  • 15
공지사항
전체 카테고리
  • 분류 전체보기 (87)
    • Development (70)
      • C# (10)
      • WPF (4)
      • ASP.Net (11)
      • Javascript & TypeScript (4)
      • HTML & CSS (1)
      • NodeJs (1)
      • NextJS (1)
      • Angular (1)
      • Python (6)
      • Linux (1)
      • SQL (6)
      • Windows (7)
      • Visual Studio Code (1)
      • Unity (2)
      • Cocos2d-x (3)
      • Flutter (1)
      • Utility Apps (7)
      • Docker (1)
      • LeetCode (1)
    • 일상 (7)
      • 이런 저런 이야기 (2)
      • 노트북 (1)
      • 주변기기 (2)
    • 이글루스 블로그 기록들 (9)
      • 기록 보관소 (8)
      • 오래된 도구들 (1)
최근 글
인기 글
최근 댓글
태그
  • #ASP.NET
  • #asp.net core 6
  • #PostgreSQL
  • #wpf
  • #mvvm
  • #asp.net core
  • #.net6
  • #CommunityToolkit.Mvvm
  • #ObservableObject
  • #C#
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바