마지막 상태를 기억하는 릴레이
전자기기 에서 리모콘으로 전원 ON 해두고 다시 켜면은 마지막 상태인 ON으로 되는데
어떻게 상태를 저장하나.. 궁금했는데
하드웨어적으로 전원부 스위치가 래칭 릴레이를 사용한다면 복잡하게 생각 할 필요가 없어진다.
[링크 : http://kor.pe.kr/make/reference/latching_relay/?ckattempt=1]
마지막 상태를 기억하는 릴레이
전자기기 에서 리모콘으로 전원 ON 해두고 다시 켜면은 마지막 상태인 ON으로 되는데
어떻게 상태를 저장하나.. 궁금했는데
하드웨어적으로 전원부 스위치가 래칭 릴레이를 사용한다면 복잡하게 생각 할 필요가 없어진다.
[링크 : http://kor.pe.kr/make/reference/latching_relay/?ckattempt=1]
결론만 말하자면.. wine으로 돌리는 패키지는 있는데
native 하게 리눅스 용으로 만들어진 버전은 존재하지 않는다
snap 이라는게 wine 랩퍼인지는 좀 찾아봐야 할 듯..
[링크 : https://jangjy.tistory.com/312]
[링크 : https://www.omgubuntu.co.uk/2019/05/install-notepad-in-ubuntu]
notepad++ 복수 키워드 검색하기(정규표현식) (0) | 2020.11.06 |
---|---|
notepad++ multi line edit (0) | 2019.12.30 |
notepad++ 주석 삭제하기 (4) | 2018.05.09 |
notepad++ 특정 라인 열도록 실행하기 (0) | 2018.01.02 |
notepad++ 따옴표 자동완성 끄기 (0) | 2017.12.10 |
일단은 조사해봐야 할 듯...
genotype / haplotype /diplotype
[링크 : https://en.wikipedia.org/wiki/Compound_heterozygosity]
[링크 : https://2wordspm.com/2017/10/26/유전학-중요개념-정리-compound-heterozygote/]
항암제 (0) | 2020.01.03 |
---|---|
postgresql regexp_matches 로 HGVS g. c. p. 잡아내기 (0) | 2020.01.01 |
refseq protein (0) | 2019.08.23 |
tpmC? (0) | 2019.08.19 |
OLTP (0) | 2019.08.19 |
shift-f4 는 아니고
shift-ctrl-y로 '반복' 이라는 이름으로 마지막 행동을 반복하는 설정이 있다.
그래도F4가 아니니 좀 많이 불편하구만..
[링크 : https://forum.openoffice.org/en/forum/viewtopic.php?f=9&t=96740]
[링크 : https://forum.openoffice.org/en/forum/viewtopic.php?f=9&t=6258]
리브레 오피스 Calc 중복제거 (0) | 2020.11.05 |
---|---|
리브레 오피스 내보내기 - PDF (0) | 2020.09.22 |
libreoffice calc 셀 고정하기 (0) | 2019.05.18 |
libreoffice base에서 jdbc 연결하기 (0) | 2014.04.10 |
libreoffice mirror가 너무해! (0) | 2012.10.02 |
화면 터치하면 바로바로 화상 키보드가 떠서 귀찮은데
그걸 끄려고 하면 먼가 다른걸 설치해야 하는 듯 -_-
해보니 터치해도 안뜨긴 한데.. 문제는 터치해도 안뜬다 라는 것?
화상 키보드를 써야할 상황인데 화상 키보드가 안뜨면 무슨 필요겠냐마는..
접근성 메뉴 항상 켜놓고 필요하면 화상키보드 on 해서 써야 하는 걸로 일단 일단락..
그리고 크롬 확장 도구에다가 쉘 확장 패키지까지 깔아야지 겨우 설정할 수 있어서 좀 번거롭네..
[링크 : https://unix.stackexchange.com/.../how-to-disable-the-on-screen-keyboard-when-i-use-the-touch-screen]
[링크 : https://extensions.gnome.org/extension/1326/block-caribou/]
매 부팅시 마다 "우분투 시스템 프로그램 오류를 발견했습니다" 뜰때 (0) | 2020.01.11 |
---|---|
ubuntu 18.04 뚜껑 닫아도 절전모드 안들어가게 하기 (0) | 2020.01.08 |
mx linux - xfce + debian (0) | 2019.10.14 |
ubuntu 18.04 / phpmyadmin 실행안될때 (0) | 2019.09.04 |
ubuntu 18.04 wayland와 ubuntu session (0) | 2019.08.28 |
정상작동 되는지 전체가 들어간지는 아직 몰라서 확인이 필요함.
예전에 3 letter를 1letter로 replace를 이용한 건 편리했는데
1letter를 3letter로 바꾸는건 오류가 있어서 못쓰다가, 이번에 반복문을 이용해서 한번 시도해 봄
DO $$
DECLARE
hgvspthreeletter text := 'Thr790Met';
hgvsponeletter text := 'T790Mfs';
hgvslen integer := length(hgvsponeletter);
i integer := 1;
result text;
conv text;
res text;
BEGIN
-- RAISE NOTICE '%의 길이는 %이며 원래는 % 임',
-- hgvsponeletter, hgvslen, hgvspthreeletter;
while i<= hgvslen loop
select substring(hgvsponeletter, i, 1) into result;
SELECT i+1 INTO i;
SELECT case
when result = 'A' then 'Ala'
when result = 'B' then 'Asx'
when result = 'C' then 'Cys'
when result = 'D' then 'Asp'
when result = 'E' then 'Glu'
when result = 'F' then 'Phe'
when result = 'G' then 'Gly'
when result = 'H' then 'His'
when result = 'I' then 'Ile'
when result = 'J' then 'Xle'
when result = 'K' then 'Lys'
when result = 'L' then 'Leu'
when result = 'M' then 'Met'
when result = 'N' then 'Asn'
when result = 'O' then 'Pyl'
when result = 'P' then 'Pro'
when result = 'Q' then 'Gln'
when result = 'R' then 'Arg'
when result = 'S' then 'Ser'
when result = 'T' then 'Thr'
when result = 'U' then 'Sec'
when result = 'V' then 'Val'
when result = 'W' then 'Trp'
when result = 'X' then 'X'
when result = 'Y' then 'Tyr'
when result = 'Z' then 'Glx'
when result = '*' then 'Ter' -- '*'
else result
end INTO conv;
SELECT concat(res, conv) into res;
-- raise notice '% %' ,conv,res;
end loop;
raise notice '%' ,res;
END $$;
알림: Thr790Metfs DO Query returned successfully in 72 msec. |
[링크 : https://www.hgvs.org/mutnomen/codon.html]
[링크 : http://www.gisdeveloper.co.kr/?p=4621]
[링크 : http://www.gisdeveloper.co.kr/?p=4573]
[링크 : https://w3resource.com/PostgreSQL/substring-function.php]
left join이 능사는 아니다 (0) | 2019.12.24 |
---|---|
dense_rank() (0) | 2019.12.22 |
postgresql loop 반복문 (0) | 2019.12.20 |
sql array any all (0) | 2019.12.20 |
postgres 동일 컬럼명 에러 (0) | 2019.12.20 |
디버깅 방법은 좀 찾아 봐야겠지만..
일단 텍스트에 대해서 length로 반복 횟수를 정하고
substr()로 특정 위치의 값 하나를 빼내서
다른 변수에 치환해서 넣어주면 원하는 기능을 구현을 할 수 는 있을 것으로 보인다.
[링크 : http://www.gisdeveloper.co.kr/?p=4573] <<
[링크 : http://www.gisdeveloper.co.kr/?p=4621]
[링크 : http://www.postgresqltutorial.com/plpgsql-loop-statements/]
dense_rank() (0) | 2019.12.22 |
---|---|
postgresql 의 반복문을 이용한 문자열 치환하기 (0) | 2019.12.20 |
sql array any all (0) | 2019.12.20 |
postgres 동일 컬럼명 에러 (0) | 2019.12.20 |
sql scan과 index (0) | 2019.12.19 |
배열내의 내용을 검색하는 거라고 들었지만
실제로 내용을 보면 그런 용도와는 좀 다른 느낌.
[링크 : https://www.w3schools.com/sql/sql_any_all.asp]
[링크 : https://stackoverflow.com/questions/34627026/in-vs-any-operator-in-postgresql]
postgresql 의 반복문을 이용한 문자열 치환하기 (0) | 2019.12.20 |
---|---|
postgresql loop 반복문 (0) | 2019.12.20 |
postgres 동일 컬럼명 에러 (0) | 2019.12.20 |
sql scan과 index (0) | 2019.12.19 |
postgresql 에서 ,로 구분되는 문자열로 내보내기 (0) | 2019.12.18 |
길 맞은편에 있는 좀 규모가 있던 문구였는데
어라.. 문을 닫았네?
그리고 전에 한번 먹었던 참치집도 문을 닫았네?
한건물에 두개나 거의 동시에 문을 닫았다는 사실이 서글프게 느껴진다.
자영업자들의 겨울인것인가.. 이 쪽 지역이 무덤인 것인가..
이제 볼펜사러 어딜 가야하나...
또 한해가 끝나는구나 (0) | 2019.12.31 |
---|---|
가슴도 콩닥콩닥 (0) | 2019.12.29 |
나를 위한 주문 "한 걸음을 내딛을 수 있는 힘" (0) | 2019.12.18 |
오랫만에 일찍 기...절? (0) | 2019.12.14 |
이틀만의 퇴근 (2) | 2019.12.13 |
오류: "array_agg" 칼럼을 하나 이상 지정했음
에러만 봐서는.. array_agg 컬럼을 여러개 써서 그런거 같은데
(한 쿼리에 array_agg를 여러번 쓰면 안되는 것으로 이해함)
정작 에러코드를 찾아가보면 컬럼명이 동일한게 존재하기 때문에 발생하는 에러라고 해석된다.
array_agg라는 이름으로 컬럼명이 생성되다 보니 그런건데.. 해석이 아무리봐도 이상한 듯..
결론은.. as로 다른 이름을 지정해주면 끝.
DB2 SQL-Error: -121 SQLState: 42701 Short Description: THE COLUMN IS IDENTIFIED MORE THAN ONCE IN THE INSERT OR UPDATE OR SET TRANSITION VARIABLE STATEMENT The same column 'name' is specified more than once, either in the list of object columns of an INSERT statement, in the SET clause of an UPDATE statement, or in a SET transition variable statement. System action: The statement cannot be executed. No data was inserted or updated in the object table. Programmer response: Correct the syntax of the statement so that each column name is specified only once. |
[링크 : http://www.sqlerror.de/db2_sql_error_-121_sqlstate_42701.html]
postgresql loop 반복문 (0) | 2019.12.20 |
---|---|
sql array any all (0) | 2019.12.20 |
sql scan과 index (0) | 2019.12.19 |
postgresql 에서 ,로 구분되는 문자열로 내보내기 (0) | 2019.12.18 |
postgres create view / materialized view (0) | 2019.12.15 |