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

  1. 2018.12.04 다음 아고라 서비스 종료 4
  2. 2018.12.04 js 부모창 변수 접근하기
  3. 2018.12.03 centos 서비스 등록하기
  4. 2018.12.03 오늘의 늬우스
  5. 2018.12.03 아 몰랑 일단 질러 5
  6. 2018.12.02 간만에 침실 청소 2
  7. 2018.12.01 아내 지름신.. 4
  8. 2018.11.30 http vlc protocol
  9. 2018.11.30 edge browser mobile
  10. 2018.11.30 ffmpeg / ffplay cli interactive interface

먼가.. 새로운거 오픈하는건 못 듣는거 같은데

종료만 디립다 들리는건 기분 탓인가..



Posted by 구차니

opener.window.변수명 하니 되는거 같기도 하고?


---


parent.변수명

[링크 : https://stackoverflow.com/.../sharing-global-javascript-variable-of-a-page-with-an-iframe-within-that-page]


되는건줄 알았는데 왜 안되지.. ㅠㅠ


---


팝업이라는 전제가 붙는건 opener 함수가 열어주어야 하기 때문인듯.

아무튼.. 단순하게(?) 전역변수에 접근할순 없고

parent 측에서 opener 변수로 해주어야 하는 것 같기도 하고..


opener.document.[name_tag]....

[링크 : http://algina.tistory.com/50]


document.[name_tag]...

[링크 : http://kamjum.tistory.com/entry/JavaScript-팝업창에서-부모-창의-hidden-변수에-따라-값-설정-위치-변경]


opener / top

[링크 : https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_html&wr_id=33683]

[링크 : http://j07051.tistory.com/518]



+

Coding Tip: window.opener.close() will close the source (parent) window.

[링크 : https://www.w3schools.com/jsref/prop_win_opener.asp]


+

현재 윈도우(window)를 오픈한 윈도우의 레퍼런스(reference)를 반환합니다.

[링크 : https://developer.mozilla.org/ko/docs/Web/API/Window/opener]

'Programming > javascript & HTML' 카테고리의 다른 글

js __proto__  (0) 2018.12.14
canvas dataURL to Formdata(file)  (0) 2018.12.07
크로스 브라우징 관련..  (0) 2018.11.30
wavesurfer.js HTML5 AUDIO 미지원시  (0) 2018.11.30
safari 날짜 계산 NaN 문제  (0) 2018.11.30
Posted by 구차니
Linux/centos2018. 12. 3. 17:13

_

2019.03.21

centos7 기준 아래 경로가 잘못되어 수정

# vi /usr/lib/systemd/system/servicename




# vi /usr/lib/systemd/service/servicename

[Unit]

Description = making network connection up

After = network.target


[Service]

ExecStart = /root/scripts/conup.sh


[Install]

WantedBy = multi-user.target


실제 서비스 등록

# chmod +x /root/scripts/conup.sh

# systemctl enable servicename  


[링크 : https://www.tecmint.com/create-new-service-units-in-systemd/]



+

node.js 경로줘서 실행하기


npm start --prefix path/to/your/app 


[링크 : https://stackoverflow.com/questions/36172442/how-to-npm-start-at-a-different-directory]


+

귀찮으니.. whereis로 찾아서

/bin/http-server 와(얘는 걍 스크립트)

/bin/node 를 만들어 주면 해결!(얘는 바이너리)

[링크 : http://leechwin.tistory.com/...usrbinenv-node-No-such-file-or-directory-에러가-발생하는-경우]



+

reload를 적용하려면 아래의 줄을 [service] 항목에 추가하면 되는 듯?

[Unit]

Description=The NGINX HTTP and reverse proxy server

After=syslog.target network.target remote-fs.target nss-lookup.target


[Service]

Type=forking

PIDFile=/run/nginx.pid

ExecStartPre=/usr/sbin/nginx -t

ExecStart=/usr/sbin/nginx

ExecReload=/bin/kill -s HUP $MAINPID

ExecStop=/bin/kill -s QUIT $MAINPID

PrivateTmp=true


[Install]

WantedBy=multi-user.target 


[링크 : https://www.shellhacks.com/systemd-service-file-example/]

Posted by 구차니

ㅋㅋㅋ 닭띠해도 끝나가는데

조금 빠르게 다음해가 되는느낌 ㅋㅋㅋ



[링크 : https://news.v.daum.net/v/20181203091640470]

[링크 : https://news.v.daum.net/v/20181203103744986]

'개소리 왈왈 > 페미니즈음' 카테고리의 다른 글

기사 - '82년생 김지영'에 남자들은 거리 뒀다  (4) 2018.12.13
오늘자 페미 기사  (4) 2018.12.07
대한민국의 미래가 안보이네  (4) 2018.11.16
백래시?  (2) 2018.10.17
산부인과 반응 웃기네  (2) 2018.08.29
Posted by 구차니

요걸 보고 부품을 찾아서

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




가장 싼 호환 필터와 17400 * 2 + 2500

(찾다 보니 흰놈이 더 비싸네...)

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


위의 DIY 제품의 팬 모델을 찾아서 싼걸로 일단 구매 (10900 + 450 + 450 + 900) * 2

요걸 고른 이유는.. 동일 모델보다 싸다?

사각형 케이스는 착탈이 가능해서 바람 방향을 바꿀수 있다니

반대로 생각하면 더 많은 부품을 구매하고도 더 싸다는 결론(?)

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



원래 아내의 허가로는 하나만 만들어 보라고 했으나

배송비랑 고려해봤을때 두개가 나을 듯 하여

안되면 머.. 회사 가져가서 쓰지라는 마음으로 아내몰래 두개 지르기 ㅋㅋㅋ

(그리고 안 뜯어 보면 환풍기 팬은 한박스에 두개 넣어줄거라는 믿음으로...)



+

상품의견 보다 보니 조용하다는 평이 많다. 스펙으로는 30dB 니까 선풍기 보다는 조용하려나..


[링크 : http://prod.danawa.com/info/?pcode=2579596&relationMenuType=koost#bookmark_cm_opinion]


많이 광고하는 CADR은 CFM 값이 단위인거 같은데

Clean Air Delivery Rate (CADR) is a figure of merit that is the cubic feet per minute (CFM) of air that has had all the particles of a given size distribution removed 

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


스펙인 풍량 6m3/min 을 변환해보면 


[링크 : http://www.endmemo.com/sconvert/m3_minft3_min.php]


어..라..

공식 홈페이지에 샤오미 미에어 2가 310m^3/h 라고 써있네?

summary-size-spec.webp

[링크 : https://www.mi.com/global/air2/]



음.. 단순하게(?) 60을 곱해주면 되니까(min -> hour)

필터로 인한 손실이라던가 여러가지 고려해보면 (아마도) 최대 단수로 팡팡 돌리는

샤오미 2s랑 비슷한 정도의 성능을 지니지 않았을까 생각을 해본다.

Posted by 구차니

모래랑 해서 쓰레기가 쓰레받이 하나 가득... ㄷㄷㄷ

자주 해야 하는데 느므느므 힘들다...


망할 침대 두개 ㅠㅠ

Posted by 구차니

다음주에 쓸지도 모르는(?) 구두를 사러 근처 이마트갔다가

아내님 지름신 오셔서 첫째 딸래미 장난감으로 내 구두의 두배값 나가버림... -_ㅠ


똘똘이랑 요리카트 (카트인데 펼치면 요리기구 나오는 녀석)

후~ 불면 꺼지는 생일 축하 노래 들어있는 책

공룡 메카드 운반차

헬로 카봇 부츠




(애꺼 지른거니까 육아관련...)


Posted by 구차니
프로그램 사용/VLC2018. 11. 30. 19:34

유튜브 처럼 재생 가능한 비디오 프록시를 찾으려는데 영 쉽지 않네

자체 제작이려나...



seek to <val>:

 ?command=seek&val=<val>
 Allowed values are of the form:
   [+ or -][<int><H or h>:][<int><M or m or '>:][<int><nothing or S or s or ">]
   or [+ or -]<int>%
   (value between [ ] are optional, value between < > are mandatory)
 examples:
   1000 -> seek to the 1000th second
   +1H:2M -> seek 1 hour and 2 minutes forward
   -10% -> seek 10% back

[링크 : https://wiki.videolan.org/VLC_HTTP_requests/]

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

vlc 화면 돌리기  (0) 2025.03.21
vlc 간편 녹화  (0) 2022.08.01
vlc for windows / ascii art ㅋㅋㅋ  (0) 2016.11.22
vlc 옵션 -vvv  (0) 2015.09.15
dash with VLC  (0) 2015.09.11
Posted by 구차니
Programming/web 관련2018. 11. 30. 19:04

모바일 edge 브라우저.. ㄷㄷㄷ

내 핸드폰에도 깔릴려나?


[링크 : https://play.google.com/store/apps/details?id=com.microsoft.emmx&hl=ko]

[링크 : https://itunes.apple.com/us/app/microsoft-edge/id1288723196?mt=8]

'Programming > web 관련' 카테고리의 다른 글

w3c validator  (0) 2018.12.10
미세먼지 크롤러 (다음, 네이버)  (0) 2018.12.07
chrome 보안 무시  (0) 2018.11.13
REST API HTTP 에러코드  (0) 2018.11.06
sso openid oauth  (0) 2018.09.10
Posted by 구차니

ffmpeg를 실행하고 ?를 누르고 엔터치면 아래처럼 무언가 도움말이 나온다.

key    function

?      show this help

+      increase verbosity

-      decrease verbosity

c      Send command to first matching filter supporting it

C      Send/Queue command to all matching filters

D      cycle through available debug modes

h      dump packets/hex press to cycle through the 3 states

q      quit

s      Show QP histogram


c 누르고 하면 먼가 이상한게 뜨는데.. 찾아도 잘 안나온다.

Enter command: <target>|all <time>|-1 <command>[ <argument>]  


찾아보니.. 필터별로 명령어를 보내는 거라고..

libavcodec 쪽으로도 명령어 보내서 네비게이션 가능하려나?

[링크 : https://stackoverflow.com/questions/48635380/ffmpeg-interactive-mode-help-options]

[링크 : https://ffmpeg.org/ffmpeg-filters.html#sendcmd_002c-asendcmd]

[링크 : https://ffmpeg.org/ffmpeg-filters.html]


+

요건 ffplay

while playing

       q, ESC

           Quit.


       f   Toggle full screen.


       p, SPC

           Pause.


       m   Toggle mute.


       9, 0

           Decrease and increase volume respectively.


       /, *

           Decrease and increase volume respectively.


       a   Cycle audio channel in the current program.


       v   Cycle video channel.


       t   Cycle subtitle channel in the current program.


       c   Cycle program.


       w   Cycle video filters or show modes.


       s   Step to the next frame.


           Pause if the stream is not already paused, step to the next video frame, and pause.


       left/right

           Seek backward/forward 10 seconds.


       down/up

           Seek backward/forward 1 minute.


       page down/page up

           Seek to the previous/next chapter.  or if there are no chapters Seek backward/forward

           10 minutes.


       right mouse click

           Seek to percentage in file corresponding to fraction of width.


       left mouse double-click

           Toggle full screen.


[링크 : http://manpages.ubuntu.com/manpages/cosmic/man1/ffplay.1.html]

[링크 : http://www.herongyang.com/Flash/Video-Stream-FFmpeg-ffplay-Interactive-Command.html]

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

ffmpeg으로 비디오 비트레이트 바꾸기  (0) 2019.02.22
ffmpeg 레이턴시 관련 옵션 조사  (0) 2018.12.16
ffmpeg concat  (0) 2018.11.05
ffmpeg concat  (0) 2018.10.10
ffmpeg huffyuv  (0) 2017.02.28
Posted by 구차니