'2020/09/21'에 해당되는 글 6건

  1. 2020.09.21 Audio Induction Loop
  2. 2020.09.21 torque PBS on ubuntu
  3. 2020.09.21 c# 교과서 표준 입출력 등
  4. 2020.09.21 c# 교과서 - 키워드 정리
  5. 2020.09.21 c# checked , unchecked
  6. 2020.09.21 c#(mono) on ubuntu
이론 관련/전기 전자2020. 9. 21. 18:02

인덕션이라길래 그 전기레인지 상상했는데 오디오랑 도대체 어떻게 연결이 되나 했더니

한줄 요약하면 인공와우 혹은 보청기 사용자를(청각 장애인) 위한 전용 스피커 정도로 하면 될 듯

induction을 통해 코일에 직접적으로 음파를 전달하는걸로 보면 될것 같기도 하지만.. 내 영역 밖의 이야기.. ㅠㅠ

 

[링크 : https://en.wikipedia.org/wiki/Audio_induction_loop]

[링크 : https://kor.kunyoong.com/board/read.php?M2_IDX=16088&BCL_IDX=&SC_WORD=&MY=&PAGE=1&B_IDX=22759]

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

dBFS  (0) 2021.01.29
FFT와 고조파(harmonic)  (0) 2020.10.05
quadrature sampling(I/Q signal)  (0) 2020.09.06
가변저항과 전압  (2) 2020.03.09
래칭 릴레이(latching relay)  (0) 2019.12.22
Posted by 구차니
프로그램 사용/openHPC2020. 9. 21. 15:36

패키지 구성은 위는 서버 아래는 클라이언트.

그나저나 클러스터로 구성되면 어떤 작업이든 상관이 없이 가능한건가? (분산 빌드가 가능?)

sudo aptitude install torque-server torque-scheduler torque-client
sudo aptitude install torque-client torque-mom

[링크 : https://help.ubuntu.com/community/TorquePbsHowto]

[링크 : https://pmateusz.github.io/linux/torque/2017/03/25/torque-installation-on-ubuntu.html]

[링크 : https://jabriffa.wordpress.com/.../installing-torquepbs-job-scheduler-on-ubuntu-14-04-lts/]

[링크 : https://jabriffa.wordpress.com/.../adding-client-nodes-to-a-torquepbs-system-on-ubuntu-14-04-lts/]

[링크 : http://sarghis.com/blog/652/]

 

[링크 : https://community.openpbs.org/t/installation-of-torque-in-single-node-ubuntu-14-04/846]

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

slurm gpu  (0) 2020.11.16
openBMC  (0) 2020.11.02
HPL for CUDA , KNL  (0) 2020.11.02
slurm 계정이 생겼다?  (0) 2020.09.22
qsub? torque?  (0) 2020.09.18
Posted by 구차니
Programming/c# & winform2020. 9. 21. 14:41

- printf, scanf()

Console.WriteLine(1/2); // 0, 앞의 숫자로 암시적 캐스팅 되서 결과가 나오는 듯
Console.WriteLine("안녕하세요"[100]); // 에러는 발생하지만 이런식으로 변수가 생성 가능한 듯
Console.WriteLin('가'+'힣'); // 99235 char 형으로 인식해서 숫자로 되는 듯. "가" 로 하면 합쳐지려나?

Console.ReadLine();

 

INT_MAX

int.MaxValue
int.MinValue
long.MaxValue
long.MinValue

 

variable.GetType() // 형을 리턴함 "System.Int32"

 

int.parse("111")
int.ToString()
double_var.ToString("0.00"); // 소수점 두자리 출력하도록 제한

 

time 함수?

DateTime.Now.Year
DateTime.Now.Month
DateTime.Now.Day
DateTime.Now.Hour
DateTime.Now.Minute
DateTime.Now.Second

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

c# xml 주석  (0) 2020.09.22
c# 프로그래밍, 문법 공부(문자열)  (0) 2020.09.22
c# 교과서 - 키워드 정리  (0) 2020.09.21
c# checked , unchecked  (0) 2020.09.21
c#(mono) on ubuntu  (0) 2020.09.21
Posted by 구차니
Programming/c# & winform2020. 9. 21. 14:26

좀 생소한 녀석들이 보이네..

 

일반 키워드
abstract
as - effectc c# 에서는 시작 부분에 cast 대신 쓰라고 나오네?
base
bool
break
byte
case
catch
char
checked
class
const
continue
decimal
default
delegate
do
double
else
enum
event
explicit
extern
false
finally
fixed
float
for
foreach
goto
if
implicit
in
int
interface
internal
is
lock
long
namespace
new
null
object
operator
out
override
params
private
protected
public
readonly
ref
return
sbyte
sealed
short
sizeof
stackalloc
static
string
struct
switch
this
throw
true
try
typeof
uint
ulong
unchecked
unsafe
ushort
using
virtual
void
volatile
while

컨텍스트 키워드
add
alias
ascending
async
await
descending
dynamic
from
get
global
group
into
join
let
orderby
partial
remove
select
set
value
var - js 등의 var와 동일한데 초기에 변수 형태가 정해지면 바꿀순 없음
where
yield

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

c# 프로그래밍, 문법 공부(문자열)  (0) 2020.09.22
c# 교과서 표준 입출력 등  (0) 2020.09.21
c# checked , unchecked  (0) 2020.09.21
c#(mono) on ubuntu  (0) 2020.09.21
c# 변수형  (0) 2020.09.18
Posted by 구차니
Programming/c# & winform2020. 9. 21. 12:13

오버플로우를 컴파일 타임이나 런 타임에 확인하도록 하는 키워드

기본적으로 컴파일 타임에 확인이 되도록 되어있고

런타임 체크에서 checked로 되어 있으면 검사하고 unchecked로 되어 있으며 하지 않도록 되는 듯.

 

checked도 unchecked도 지정하지 않으면 상수가 아닌 식(런타임에 계산되는 식)의 기본 컨텍스트는 -checked 컴파일러 옵션의 값으로 정의됩니다. 기본적으로 이 옵션의 값은 설정되지 않으며 unchecked 컨텍스트에서 산술 연산이 실행됩니다.

상수 식(컴파일 시간에 완전히 계산될 수 있는 식)의 경우 기본 컨텍스트는 항상 checked입니다. 상수 식이 unchecked 컨텍스트에 명시적으로 배치되지 않는 경우 식에 대한 컴파일 시간 계산 중 발생하는 오버플로로 인해 컴파일 시간 오류가 발생합니다.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/keywords/checked-and-unchecked]

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

 

unchecked 환경을 제거하면 컴파일 오류가 발생합니다. 식의 모든 항이 상수이기 때문에 컴파일 시간에 오버플로가 검색될 수 있습니다.

상수가 아닌 항을 포함하는 식은 컴파일 시간 및 런타임에 기본적으로 확인되지 않습니다. checked 환경을 사용하도록 설정하는 방법에 대한 자세한 내용은 checked를 참조하세요.

오버플로를 확인하는 데 시간이 걸리기 때문에 오버플로 위험이 없는 상황에서는 unchecked 코드를 사용하여 성능을 향상할 수 있습니다. 그러나 오버플로가 발생할 가능성이 있는 경우 checked 환경을 사용해야 합니다.

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

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

c# 교과서 표준 입출력 등  (0) 2020.09.21
c# 교과서 - 키워드 정리  (0) 2020.09.21
c#(mono) on ubuntu  (0) 2020.09.21
c# 변수형  (0) 2020.09.18
c# 에서 hex string을 숫자로 변환하기  (0) 2020.09.15
Posted by 구차니
Programming/c# & winform2020. 9. 21. 10:29

mono 홈페이지 가보니 ms의 스폰으로 제작되고 있는 것 같은데

monodevleop 자체는 ubuntu에서 관리를 안하는건지 패키지가 존재하지 않는다.

 

Ubuntu 18.04 (i386, amd64, armhf, arm64, ppc64el)
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update

 

mono-devel을 깔아보니 순수하게 컴파일러 인듯

$ sudo apt install mono-devel

개발 환경은 별도로 설치해야 한다.

$ sudo apt-get install monodevelop

 

 

visual studio community 처럼 winform을 바로 만들순 없나?

 

[링크 : https://www.mono-project.com/download/stable/]

[링크 : https://www.mono-project.com/]

 

[링크 : https://blog.danggun.net/1776]

[링크 : https://blog.naver.com/chandong83/220858687557]

[링크 : https://www.ifunfactory.com/engine/documents/reference/ko/development-on-monodevelop.html]

[링크 : https://yaraba.tistory.com/605]

 

+

mono는 compiler가 아니라 실행환경이구나.. csc가 csharp compiler 줄여서 컴파일러인 듯.

$ mono tt.cs 
Cannot open assembly 'tt.cs': File does not contain a valid CIL image.

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

$ mono tt.exe
Hello World!

 

-r 옵션 주지 않아도 빌드되고 실행은 된다.

$ csc wf.cs -r:System.Windows.Forms.dll
Microsoft (R) Visual C# Compiler version 3.6.0-4.20224.5 (ec77c100)
Copyright (C) Microsoft Corporation. All rights reserved.

$ mono wf.exe

 

 

[링크 : https://www.mono-project.com/docs/getting-started/mono-basics/]

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

c# 교과서 - 키워드 정리  (0) 2020.09.21
c# checked , unchecked  (0) 2020.09.21
c# 변수형  (0) 2020.09.18
c# 에서 hex string을 숫자로 변환하기  (0) 2020.09.15
c# tcp binary  (0) 2020.09.14
Posted by 구차니