'잡동사니'에 해당되는 글 13451건

  1. 2021.01.06 c# named argument
  2. 2021.01.06 scpi, visa, ivi
  3. 2021.01.05 udev
  4. 2021.01.05 rtl sdr driver libusb
  5. 2021.01.05 uio - userspace io
  6. 2021.01.05 hpl/linpack openmpi slurm
  7. 2021.01.05 sdr# PAL tv plugin
  8. 2021.01.05 openSUSE에 getvnfs extracting failed ㅠㅠ
  9. 2021.01.05 openSUSE 네트워크 설정
  10. 2021.01.04 lg v50s 대 삼성 노트9 fm 라디오
Programming/c# & winform2021. 1. 6. 12:31

자동 번역인진 모르겠지만 "명명된 인자" 라는 명칭으로 메소드 호출이나

객체 생성시 변수 순서와 상관없이 인자명칭을 직접 지정해서 호출 할 수 있는 문법

 

아래의 코드에서 Main() 안의 moto.Drive() 를 보면

원래 Drive() 메소드는 int miles, int speed로 선언되어 있으나

moto.Drive(speed: 60, miles: 170) 으로

선언된 인자와 다른 순서로 입력을 해주는 것을 볼 수 있다.

 

using System;

class TestMotorcycle : Motorcycle
{
   public override int Drive(int miles, int speed)
   {
      return (int) Math.Round( ((double)miles) / speed, 0);
   }

   public override double GetTopSpeed()
   {
      return 108.4;
   }

   static void Main()
   {

      TestMotorcycle moto = new TestMotorcycle();
      moto.StartEngine();
      moto.AddGas(15);
      var travelTime = moto.Drive(speed: 60, miles: 170);
      Console.WriteLine("Travel time: approx. {0} hours", travelTime);
   }
}
// The example displays the following output:
//      Travel time: approx. 3 hours

 

[링크 : https://docs.microsoft.com/en-us/dotnet/csharp/methods]

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

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

ansi escape code  (0) 2021.05.24
c# richtextbox 글씨 색상 입히기  (0) 2021.05.24
아.. 이놈의 인코딩..  (0) 2020.12.03
c# vertical tab  (0) 2020.11.26
c# rest API client  (0) 2020.11.25
Posted by 구차니

 

[링크 : http://www.cat-solutions.nl/index.php/en/training-en/visa-scpi-sicl-io-suite-library-usage-en]

[링크 : https://www.rohde-schwarz.com/tr/driver-pages/remote-control/instruments-drivers-vs.-plain-scpi-commands_231246.html]

'하드웨어 > instrument device' 카테고리의 다른 글

gwinstek MFG-2230M SCPI  (0) 2024.07.10
adc 속도  (0) 2023.01.11
FMU... 2?  (0) 2020.12.22
FMU  (0) 2020.12.21
계측장치용 프로토콜 (VISA, SCPI, IEEE-488)  (0) 2020.11.27
Posted by 구차니
Linux2021. 1. 5. 19:54

udev는 장치관리자 / 자동 마운트지

user space driver 와는 연관이 없는 것 같은데....

user space driver 에 대한 마운트를 진행하기도 하니 그거랑 연관이 있다고 해야하나 말아야 하나..

 

[링크 : http://wiki.archlinux.org/index.php/Udev]

[링크 : http://lascrea.tistory.com/89]

 

'Linux' 카테고리의 다른 글

segmentation fault, bus error  (0) 2021.01.08
linux ip 와 gateway 설정  (0) 2021.01.08
uio - userspace io  (0) 2021.01.05
파일이 존재하는데 실행하려고 하면 없다고 에러 뜰 경우  (0) 2020.12.16
ifconfig wan  (0) 2020.12.11
Posted by 구차니

rtl-sdr을 쓰지 않고 원본 드라이버로 먼가하고 싶긴한데 영 안되네..

rtl-sdr

libusb

librtlsdr

여러가지가 보이는데 서로 연관이 어떻게 되는건가..

 

[링크 : http://blog.tcltk.co.kr/?p=888]

[링크 : http://github.com/steve-m/librtlsdr/blob/master/src/librtlsdr.c]

 

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

rtp sdr noaa  (0) 2021.11.24
Blaze Video / FM 듣기  (0) 2021.01.16
sdr# PAL tv plugin  (0) 2021.01.05
blazeVideo HDTV Player (DVB-T)  (0) 2021.01.04
RTL-SDR 튜너 분해(FC0012)  (0) 2020.09.07
Posted by 구차니
Linux2021. 1. 5. 19:43

user space driver를 보다가 점점 이상한데로 헤매는 느낌..

rtl-sdr에서 왜 자꾸 이상한데로 새는건가.. ㅠㅠ

 

[링크 : http://lethean.github.io/2006/12/19/uio-linux-userspace-kernel-driver/]

[링크 : http://www.kernel.org/doc/html/v4.14/driver-api/uio-howto.html]

 

'Linux' 카테고리의 다른 글

linux ip 와 gateway 설정  (0) 2021.01.08
udev  (0) 2021.01.05
파일이 존재하는데 실행하려고 하면 없다고 에러 뜰 경우  (0) 2020.12.16
ifconfig wan  (0) 2020.12.11
dsa distributed switch architecture  (0) 2020.12.11
Posted by 구차니

mpirun

 

 

[링크 : http://www.brightcomputing.com/Blog/bid/151678/How-to-run-Linpack-across-a-Bright-Linux-cluster]

[링크 : http://www.open-mpi.org/faq/?category=slurm]

 

+ 2021.01.07

[링크 : https://juser.fz-juelich.de/record/851266/files/Parallel Programming (MPI) and Batch Usage (SLURM).pdf]

[링크 : https://thelinuxcluster.com/.../running-linpack-hpl-test-on-linux-cluster-with-openmpi-and-intel-compilers/]

[링크 : https://ulhpc-tutorials.readthedocs.io/en/latest/parallel/mpi/HPL/]

[링크 : https://stackoverflow.com/questions/13999415/how-do-you-specify-nodes-on-mpiruns-command-line]

[링크 : https://www.open-mpi.org/faq/?category=running#mpirun-scheduling]

 

mpirun 에 host 기재하기

% mpirun -host node1,node1,node2,node2 ...

mpirun 에 hostfile로 지정하기

% cat my_hosts
a slots=2 max_slots=20
b slots=2 max_slots=20
c slots=2 max_slots=20
d slots=2 max_slots=20

Suppose you issue the following command to run program a.out:


% mpirun -np 1 --hostfile my_hosts --host c a.out

[링크 : https://docs.oracle.com/cd/E19923-01/820-6793-10/ExecutingPrograms.html]

'프로그램 사용 > openHPC' 카테고리의 다른 글

MPI/PMI  (0) 2021.01.07
warewulf - wwsh 명령어  (0) 2021.01.06
openSUSE에 getvnfs extracting failed ㅠㅠ  (0) 2021.01.05
openSUSE에 openHPC 설치하기 part 1  (0) 2021.01.04
slurm, pbs pro, torque/maui  (0) 2021.01.04
Posted by 구차니

플러그 인을 보다 보니 PAL TV를 흑백으로 보여주는게 있네?

dll로 주어지는데 어떤식으로 프로그래밍 하는지 참 궁금하다.

 

능력되면 국내 DMB에 대해서 한번 디코딩 해보고 싶기도 하지만

은근히 대역폭이 넓어서 될 진 모르겠네..

[링크 : http://www.rtl-sdr.ru/page/no-title-2]

[링크 : https://www.rtl-sdr.com/sdrsharp-plugins/]

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

Blaze Video / FM 듣기  (0) 2021.01.16
rtl sdr driver libusb  (0) 2021.01.05
blazeVideo HDTV Player (DVB-T)  (0) 2021.01.04
RTL-SDR 튜너 분해(FC0012)  (0) 2020.09.07
SDR# 샘플 레이트와 대역  (0) 2020.09.06
Posted by 구차니

부팅하다 커널 패닉나서 다시 보니

vnfs를 정상적으로 붙이지 못하는 것 같네..

 

 

우여곡절 끝에 찾아보니 저놈의 checksum 값이 나오는 항목은 찾았는데..

vnfs가 어떤식으로 구성이 되는진 모르겠으나..

# wwsh object dump
Object #5:  OBJECT REF Warewulf::Vnfs=HASH(0x55f062096fd0) {
    "ARCH" (4) => "x86_64" (6)
    "CHECKSUM" (8) => "9f8b23f061ae257ba752e3861b3c4a08" (32)
    "CHROOT" (6) => "/opt/ohpc/admin/images/leap15.2" (31)
    "NAME" (4) => "leap15.2" (8)
    "SIZE" (4) => 503415145
    "_ID" (3) => 6
    "_TIMESTAMP" (10) => 1609744655
    "_TYPE" (5) => "vnfs" (4)
}

[링크 : https://groups.io/g/OpenHPC-users/topic/stateful_provisioning_issues/7717941?p=]

 

# md5sum /srv/warewulf/bootstrap/x86_64/5/initfs.gz
94a63f3001bf9f738bd716a5ab71d61f  /srv/warewulf/bootstrap/x86_64/5/initfs.gz

이거 그건가...? extracting 에서 error가 발생했는데 엉뚱한데를 짚은건가?

 

+

2021.01.07

 

그러고 보니 왜 ID가 6인거지?

The section code that's sitting at is a 'wait "${EXTRACT_PID}"'.
EXTRACT_PID comes from this command:

  gunzip < /tmp/vnfs-download | bsdtar -pxf - 2>/dev/null &

So it seems that is failing somewhere. Do any other VNFS images work?

If you want to go in... you can extract the transport-http capability,
and edit the wwgetvfs script that's contained within. Remove that
"2>/dev/null" from that command, rebuild the capability file, and then
rebuild the bootstrap. That would hopefully point you to what's
actually throwing an error.

The ID always being 5 is correct. If it changed I would be worried.
That should be the Database ID of the VNFS. 

 

+

정상작동하는 openhpc/centos 에서도 ID:6 인데 extrating은 정상적으로 넘어간다.

 

체크섬도 여기서 나오는 같이랑 동일한데, SKIPPED 인건 문제가 없는건가.. 기본값이 SKIP인가?

Object #5:  OBJECT REF Warewulf::Vnfs=HASH(0x55e09d574470) {
    "ARCH" (4) => "x86_64" (6)
    "CHECKSUM" (8) => "3440bd638263bfb2e91e5f19b9afb51b" (32)
    "CHROOT" (6) => "/opt/ohpc/admin/images/centos8.2" (32)
    "NAME" (4) => "centos8.2" (9)
    "SIZE" (4) => 160341375
    "_ID" (3) => 6
    "_TIMESTAMP" (10) => 1608705691
    "_TYPE" (5) => "vnfs" (4)
}

'프로그램 사용 > openHPC' 카테고리의 다른 글

warewulf - wwsh 명령어  (0) 2021.01.06
hpl/linpack openmpi slurm  (0) 2021.01.05
openSUSE에 openHPC 설치하기 part 1  (0) 2021.01.04
slurm, pbs pro, torque/maui  (0) 2021.01.04
slurm gpu  (0) 2020.12.28
Posted by 구차니
Linux/openSUSE2021. 1. 5. 10:05

네트워크 설정은 특색이라고 해야하나

redhat이나 debian 계열과는 또 확연히 다르다.

 

[링크 : https://continuetochallenge.tistory.com/40]

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

openSUSE ssh 활성화 하기  (0) 2021.01.04
openSUSE 패키지 관리자 zypper  (0) 2021.01.04
Posted by 구차니

스캔속도 및 잡음에서 삼성 압승 ㅠㅠ

아내꺼 뺏을수도 없는데 으어어어엉 ㅠㅠ

 

일단 삼성 fm 라디오는

스캔이 2초도 안걸린것 같고

스캔한 채널이 목록으로 나오고 즐겨찾기를 하는 개념이라면

 

lg는 스캔에 5초는 걸린것 겉고

스캔한 채널은 채널 목록으로 별도의 행동알 취해 들어가야하고

첫 페이지에는 6개의 즐겨찾기 그리고 슬라이드로 구현되는 총 12개의 채널만 출력된다.

 

dmb도 lg는 잘 나오지도 않는데(hd 채널)

삼성은 약간 끊어지지만 잘 나오는 편이다

 

안테나 위치 영향받을까봐 이어폰 위치는 동일하게

잭 위치겹쳐서 그대로 옮겼는데도 그러네..

 

드라이버쪽은 삼성이 좀 더 신경을 잘 쓰고

안테나 rf 필터나 증폭기도 좀 더 신경을 잘 쓴듯.

'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

lg 듀얼 스크린 확장모드  (0) 2021.01.09
액정 보호 필름 도착!!  (0) 2021.01.06
3.5mm 이어폰 FM 안테나  (0) 2021.01.04
핸드폰 3.5" 이어폰 잭 안테나..  (2) 2021.01.02
순접 신공  (0) 2020.12.30
Posted by 구차니