전체 글
-
무엇이 그들을 극단적 선택으로 내몰았는가일상 2023. 8. 4. 13:33
2023년 8월 4일 연일 발생하는 무차별 칼부림 사건으로 사회가 두려움에 떨고있다. 신림역에서 시작한 칼부림 사건부터 시작해 서현역 그리고 다수의 난동 예고까지 커뮤니티를 돌아보면 내 자신을 지키기 위해 방검복 호신용품 심지어 흉기를 소지하겠다라는 이야기가 등장하기도 한다. 이번 흉기난동을 보며 다양한 생각이 들었다. 불현듯 떠오른 이 생각을 글로써 표현하며서 무엇이 그들을 그렇게 내몰았는지 내 생각을 정리하며 글로 표현해보고자 한다. 먼저 범인들에 대해서 알아보면 그들이 어떠한 인생을 살아왔는지 그리고 선택의 순각에 왜 그런 극단적 선택을 했는지에 대해서 파악하는 것이 중요하다. 마냥 모든 난동 사건을 단순 그 사람의 책임으로 몰고가는 것보다는 제 2의 난동 사건을 막기 위해 장기적인 접근 역시 중요..
-
ASP.Net 메모용개발/C# 2023. 7. 26. 22:59
Your startup project 'TutorialShop.Api' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again. Microsoft.EntityFrameworkCore.Design 패키지가 없어서 발생하는 문제 dotnet add package Microsoft.EntityFrameworkCore.Design Dotnet EntityFrameworkCore 설치 dotnet tool inst..
-
[Error] 일관성 없는 액세스 가능성 : ....개발/C# 2023. 7. 26. 14:51
C# 프로젝트 또는 프로그램을 작성하다 보면 [일관성 없는 액세스 가능성... ]에 관한 에러를 확인할 수 있다. 이는 접근성에 대한 문제로 접근자 키워드를 수정하면 에러를 없앨 수 있다. 가능성은 여러가지가 있을 수 있으나 보통의 경우 다음과 같다. 클래스의 메소드가 클래스의 접근자보다 더 넓은 경우 ( Class: Default, Method: Public) 클래스의 메소드에서 사용하고 있는 인스턴스 변수의 접근자보다 더 넓은 경우 (ModelClass: Default, Method: Public) 등등... 필자의 경우엔 Model Class에 접근자를 지정하지 않은 Default 클래스를 주었는데 Public 접근자를 준 메소드에서 Default Class Instance를 사용해 위의 에러가 발..
-
Leetcode 1870. Minimum Speed to Arrive on Time개발/Leetcode 2023. 7. 26. 10:43
https://leetcode.com/problems/minimum-speed-to-arrive-on-time/description/ Minimum Speed to Arrive on Time - LeetCode Can you solve this real interview question? Minimum Speed to Arrive on Time - You are given a floating-point number hour, representing the amount of time you have to reach the office. To commute to the office, you must take n trains in sequential order. Yo leetcode.com 문제 부동소수점인 ..
-
Leetcode 852. Peak Index in a Mountain Array개발/Leetcode 2023. 7. 25. 09:36
https://leetcode.com/problems/peak-index-in-a-mountain-array/description/ Peak Index in a Mountain Array - LeetCode Can you solve this real interview question? Peak Index in a Mountain Array - An array arr a mountain if the following properties hold: * arr.length >= 3 * There exists some i with 0 < i < arr.length - 1 such that: * arr[0] < arr[1] < ... < arr[i - 1] < arr leetcode.com 문제 주어진 배열 다음..
-
Leetcode 50. Pow(x, n)개발/Leetcode 2023. 7. 24. 12:36
https://leetcode.com/problems/powx-n/description/ Pow(x, n) - LeetCode Can you solve this real interview question? Pow(x, n) - Implement pow(x, n) [http://www.cplusplus.com/reference/valarray/pow/], which calculates x raised to the power n (i.e., xn). Example 1: Input: x = 2.00000, n = 10 Output: 1024.00000 Example 2: Inpu leetcode.com 문제 pow(x,n) x의 n승을 계산하는 함수를 구현하여라 코드 class Solution: def myP..
-
[C#] \r은 뭐하는 놈일까?개발 2023. 7. 22. 16:44
Carriage return(https://en.wikipedia.org/wiki/Carriage_return) CR이라고도 불리는 carriage return 타자기(종이에 활자를 찍어내는)에서 주로 사용하는 control caracter이다. 위키에서 발췌한 정의는 위와 같다. 시대가 지나갈 수록 타자기라는 기계를 접해보지 않은 사람은 더욱이 위의 용도는 무엇인지 그리고 왜 저런것이 필요한지 모르는 것이 정상이다. 나 역시 타자기를 한번도 접해보지 않았고 \r 이 무엇인지 확인하는 중에 알게되었으니 말이다. 타자기는 어떻게 동작하는걸까? carraige return이라는 것을 알기위해서는 타자기 동작방식을 이해하면 좀 더 쉽게 왜 carriage return이라는 것이 필요한지 알 수있다. 먼저 타자..
-
Leetcode 735. Asteroid Collision개발/Leetcode 2023. 7. 20. 09:46
https://leetcode.com/problems/asteroid-collision/description/ Asteroid Collision - LeetCode Can you solve this real interview question? Asteroid Collision - We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning leetcode.com 문제 소행성의 정보를 정수로 담고 있는 asteroids 배열이 ..