'2020/10/05'에 해당되는 글 7건

  1. 2020.10.05 stormbook 14 pro 64GB 모델
  2. 2020.10.05 FFT와 고조파(harmonic)
  3. 2020.10.05 jaaa - JACK and ALSA Audio Analyser
  4. 2020.10.05 c# 타입? 변수명;
  5. 2020.10.05 c# using 키워드, 예외처리
  6. 2020.10.05 c# @문자열
  7. 2020.10.05 아내몰래 지르자 ㅋ
개소리 왈왈/컴퓨터2020. 10. 5. 22:11

오늘은 재활용날이라 버리는 김에 쭈욱 둘러보는데 하얀거 발견!

zum 으로 보이는 이 마법은 머지 ㅋㅋㅋ

아무튼 다시 보니 imuz 제품. 묘하게 이 그램스러운 느낌은 머지 하고 일단 검색해보니

 

2017년 1월 출시모델

아톰 x5-z8350 체리트레일

14.1인치 FHD

 

오오.. 일단 주워와야지 하고 가져왔는데

밖에서 전원 누르니 불은 들어오더니 이제 안된다 -_ㅠ

 

아무튼 부랴부랴 검색해보는데

오호.. 인증번호 동일하다는건.. 규격이 같다는 거고..

그럼 회사에 가져가서 아쉬운대로 iptime USB 허브 어댑터를 쓰면 전원 충전은 가능하다는거네?!?!

 

스톰북 14 Pro 어댑터 / 안전인증 HA10090-16012

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=B643548711]

 

iptime UH308 어댑터 / 안전인증 HA10090-16012

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=B453620234]

 

+

2020.10.06

회사와서 연결하니 잘되네 ㅋ

근데 묘하게 이어폰 굵기랑 비슷해서 이어폰에 꽂아놨던건 함정 -_-

왜 안켜져? 하고 잘 보니 이어폰 구멍 ㅠㅠ

 

+ 복구 유틸

[링크 : https://m.shop.imuz.com/board/view.php?mypageFl=&bdId=data&sno=488]

 

+ 키보드 5.5만 ㄷㄷㄷ

[링크 : https://shop.imuz.com/board/view.php?&bdId=ascenter&sno=4]

 

윈도우 잠겨있어서 배터리 몇 % 인지 확인을 못한다 -_ㅠ

2시간 충전했는데 1/4도 충전 안된 듯..

 

+

35.9만원이었던 녀석!

[링크 : https://namu.wiki/w/아이뮤즈%20스톰북%20시리즈#s-3.1.2]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

컴퓨터 득템?  (0) 2020.10.14
어쩌다 보니 득템?  (0) 2020.10.11
G840에 이어 G860..  (0) 2020.09.22
다이소 유선 마우스 뽑기 실패인가..  (6) 2020.09.14
지름신님 조합(?)  (0) 2020.09.10
Posted by 구차니
이론 관련/전기 전자2020. 10. 5. 18:24

그러니까 얘를 줄일수 있는거야 없는거야?

있으면 어떻게 판단해야 하는거야? ㅠㅠ

 

[링크 : http://www.rfdh.com/bas_rf/begin/harmonic.htm]

[링크 : https://www.researchgate.net/post/How_can_I_filter_out_the_harmonics_and_sideband]

[링크 : https://kr.mathworks.com/matlabcentral/answers/407416-how-to-remove-particular-harmonic-in-the-time-series]

'이론 관련 > 전기 전자' 카테고리의 다른 글

emc2301 fan controller  (0) 2021.06.11
dBFS  (0) 2021.01.29
Audio Induction Loop  (0) 2020.09.21
quadrature sampling(I/Q signal)  (0) 2020.09.06
가변저항과 전압  (2) 2020.03.09
Posted by 구차니
Linux/Ubuntu2020. 10. 5. 17:14

흐으으으음... 

별 신기한 패키지가 다 있네?

$ jaaa

Jaaa-0.8.4

  (C) 2004-2010 Fons Adriaensen  <fons@kokkinizita.net>

Options:
  -h                 Display this text
  -name <name>       Jack and X11 name
  -J                 Use JACK, with options:
    -s <server>        Select Jack server
  -A                 Use ALSA, with options:
    -d <device>        Alsa device [hw:0]
    -C <device>        Capture device
    -P <device>        Playback device
    -r <rate>          Sample frequency [48000]
    -p <period>        Period size [1024]
    -n <nfrags>        Number of fragments [2]

  Either -J or -A is required.

 

실행은 아래 옵션으로 했음.

$ jaaa -A -d hw:0
playback :
  nchan  : 2
  fsamp  : 48000
  fsize  : 1024
  nfrag  : 2
  format : S32_LE
capture  :
  nchan  : 2
  fsamp  : 48000
  fsize  : 1024
  nfrag  : 2
  format : S32_LE
synced
Connected to ALSA with 2 inputs and 2 outputs
Can't create ALSA thread with RT priority
Warning: memory lock failed.

 

[링크 : http://manpages.ubuntu.com/manpages/xenial/man1/jaaa.1.html]

 

 

+

부랴부랴 audacity 설치하고 생성에서 1kHz 짜리 파형을 생성! 확대해서 보니 음.. 이쁜 정현파군?

 

노트북에 이어폰 꼽고, 마이크에 가져다 대고 jaaa를 실행하니

1k에 피크가 뜨긴 한데.. 이걸 어떻게 프로그램적으로 검사하지?

그리고 저 망할(?) 2k에는 왜 뜨는거야.. FFT 한계인가 문제인가? ㅠㅠ

'Linux > Ubuntu' 카테고리의 다른 글

/dev/ipmi를 보고 싶다!!!  (0) 2020.11.07
우분투에서 부팅 USB 만들기(iso)  (0) 2020.10.06
ipmitool  (0) 2020.09.24
rsync with ssh  (0) 2020.09.23
ubuntu 18.04 계산기 키가 작동하지 않을때  (0) 2020.09.22
Posted by 구차니
Programming/c# & winform2020. 10. 5. 15:05

발단은.. 여기 이녀석.

string? item;

이게 무언가 했는데... string* item; 처럼 보려고 하니 보이기도 하고?

 

string manyLines=@"This is line one
This is line two
Here is line three
The penultimate line is line four
This is the final, fifth line.";

using (var reader = new StringReader(manyLines))
{
    string? item;
    do {
        item = reader.ReadLine();
        Console.WriteLine(item);
    } while(item != null);
}

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/keywords/using-statement]

 

 

변수가 Nullable<T> 형으로 컴파일러에게 알려주는 역할(?) 라는데..

 

class Program
{
    static void Main(string[] args)
    {
        Int32? x;
        Nullable<Int32> y;
    }
}

[링크 : https://gunnarpeipman.com/csharp-question-marks/]

 

 

 

읽어봐도 무슨 소리인지 모르겠네 ㅠㅠ

형식은 값을 할당 하거나 할당할 수 있는 경우 null을 허용 하는 것으로 간주 됩니다 null . 즉, 형식에 값이 없음을 의미 합니다. 기본적으로와 같은 모든 참조 형식은 nullable 이지만 String 와 같은 모든 값 형식은 Int32 이 아닙니다.

C # 및 Visual Basic에서는 값 형식 다음에 표기법을 사용 하 여 값 형식을 nullable로 표시 합니다 ? . 예를 들어 int? c #에서 또는 Integer? Visual Basic는 할당할 수 있는 정수 값 형식을 선언 null 합니다.

Nullable<T>참조 형식은 의도적으로 null을 허용 하므로 구조체는 값 형식만 nullable 형식으로 사용 하도록 지원 합니다.

Nullable클래스는 구조체를 보완 하도록 지원 합니다 Nullable<T> . Nullable클래스는 nullable 형식의 내부 형식 및 내부 값 형식이 제네릭 비교 및 같음 연산을 지원 하지 않는 nullable 형식 쌍에 대 한 비교 및 같음 연산을 지원 합니다.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.nullable-1?view=netcore-3.1]

 

 

한글로 봐도 모르는데 영어로 본다고 알리가 있냐!!! ㅠㅠ

A type is said to be nullable if it can be assigned a value or can be assigned null, which means the type has no value whatsoever. By default, all reference types, such as String, are nullable, but all value types, such as Int32, are not.

In C# and Visual Basic, you mark a value type as nullable by using the ? notation after the value type. For example, int? in C# or Integer? in Visual Basic declares an integer value type that can be assigned null.

The Nullable class provides complementary support for the Nullable<T> structure. The Nullable class supports obtaining the underlying type of a nullable type, and comparison and equality operations on pairs of nullable types whose underlying value type does not support generic comparison and equality operations.

[링크 : https://docs.microsoft.com/en-us/dotnet/api/system.nullable?view=netcore-3.1]

 

 

현재까지 결론

string은 NULL이 의미를 지니는 타입이기에 ?를 써서 Nullable class를 사용할 수 있는데

string? item;

은 그냥 nullable string 변수를 선언했다고 보면된다.

 

 

+

정작 빌드해보면 string? 으로 하면 경고가 뜨고 string으로 하면 경고가 안뜨는데 실행결과는 동일하다.

 

Microsoft (R) Visual C# Compiler version 3.6.0-4.20224.5 (ec77c100)
Copyright (C) Microsoft Corporation. All rights reserved.

using.cs(18,11): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

 

먼가 너무 파고들어서 산으로 가는건가? ㅠㅠ

변수 이름 뒤에 null 허용 연산자 !를 사용하여 이 동작을 재정의할 수 있습니다. 예를 들어 name 변수가 null이 아닌 것으로 알고 있는데 컴파일러 경고가 발생하는 경우 다음 코드를 작성하여 컴파일러 분석을 재정의할 수 있습니다.

name!.Length;

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/nullable-references]

'Programming > c# & winform' 카테고리의 다른 글

c# delagate 대리자  (0) 2020.10.08
c# out  (0) 2020.10.07
c# using 키워드, 예외처리  (0) 2020.10.05
c# @문자열  (0) 2020.10.05
winform socket  (0) 2020.09.29
Posted by 구차니
Programming/c# & winform2020. 10. 5. 11:16

c# 프로그래밍 책을 보는데 오랫만에 봐서 그런가 먼가 많이 건너뛰어버린 느낌 ㅠㅠ

스트림에서 갑자기 Dispose() 나오지 않나 StreamReader 클래스도 IDisposable 인터페이스 구현 이런 이야기 나오는것 봐서는

다시 봐야할 것 같다 -_ㅠ

 

아무튼!

using 은 name space를 정의하는데 쓰는 것 뿐만 아니라

내부에서 예외발생시 Dispose() 메소드를 호출해주는 유용한 녀석이라고 한다.

 

아래 예제는 삼항연산자는 아닌거 같은데 다시 봐야겠네..

 

string manyLines=@"This is line one
This is line two
Here is line three
The penultimate line is line four
This is the final, fifth line.";

using (var reader = new StringReader(manyLines))
{
    string? item;
    do {
        item = reader.ReadLine();
        Console.WriteLine(item);
    } while(item != null);
}

 

c# 8.0 이후

string manyLines=@"This is line one
This is line two
Here is line three
The penultimate line is line four
This is the final, fifth line.";

using var reader = new StringReader(manyLines);
string? item;
do {
    item = reader.ReadLine();
    Console.WriteLine(item);
} while(item != null);

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/keywords/using-statement]

 

+

 

IDisposable.Dispose 메서드
관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.idisposable.dispose?view=netcore-3.1]

'Programming > c# & winform' 카테고리의 다른 글

c# out  (0) 2020.10.07
c# 타입? 변수명;  (0) 2020.10.05
c# @문자열  (0) 2020.10.05
winform socket  (0) 2020.09.29
c# conditional attribute  (0) 2020.09.29
Posted by 구차니
Programming/c# & winform2020. 10. 5. 11:10

@는 수 많은 \ (escape)의 향연에서 벗어날수 있게 해주는 마법의 키워드이다.

string filename1 = @"c:\documents\files\u0066.txt";
string filename2 = "c:\\documents\\files\\u0066.txt";

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/tokens/verbatim]

 

어떻게 보면 pre 태그 같은 느낌마저 주네?

[링크 : https://docs.microsoft.com/ko-kr/.../convert-between-regular-string-verbatim-string?view=vs-2019]

'Programming > c# & winform' 카테고리의 다른 글

c# 타입? 변수명;  (0) 2020.10.05
c# using 키워드, 예외처리  (0) 2020.10.05
winform socket  (0) 2020.09.29
c# conditional attribute  (0) 2020.09.29
mono로 sln 프로젝트 빌드가 되네?  (2) 2020.09.28
Posted by 구차니

포고플은 편할거 같아서(세 큰 딸래미들 공 편하게 모으려면..) 지르고

사운드 카드는 걍 있으면 좋을것 같아서 지르고 (응?)

Posted by 구차니