Develop/Others25 Axios, Fetch로 온라인/오프라인 상태 체크 가능할까? axios 나 fetch와 같은 네트워크 관련 라이브러리로 온라인 상태 체크 불가능. 서버의 응답이 오지 않는 것은 체크할 수 있지만 이것이 네트워크가 온프라인 상태라는 것은 100% 장담할 수 없으므로 제3의 라이브러리를 이용한 방법을 사용하는 것이 좋다. 브라우저 - Navigator.onLine if (navigator.onLine) { console.log('온라인'); } ReactNative - NetInfo import NetInfo from '@react-native-community/netinfo'; const networkState = await NetInfo.fetch(); if(networkState.isConnected) }{ console.log("온라인") } Axios axi.. 2021. 10. 7. 안드로이드 & 애플 영상 공통 코덱 # video codec - H264 - Baseline Profile [O] (낮은 성능의 디바이스에서 사용 가능, 리소스 증가) - Hight Profile [X] ( 낮은 성능의 디바이스에서 사용 불가) # audio codec - AAC APPLE 지원 코덱 Using Audio Retired Document Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid. For information on media playback, see Media Playback Programming Guide. U.. 2021. 10. 3. x264 FFmpeg Options Guide x264 FFmpeg Options Guide Please Note: This guide will remain here for historic purposes but FFmpeg and libav now use libx264's internal -preset, -profile and -tune options. Please see `avconv -h | less` or `ffmpeg -h | less` and scroll down to "libx264 AVOptions:". This guide maps most of x264's options to FFmpeg's options along with detailed descriptions by x264 developer Dark_Shikari. Frame-t.. 2021. 10. 3. [git] cheatsheet 🧐 # 특정 커밋ID 의 변경 소스 확인 git show COMMIT git diff COMMIT^! git diff COMMIT~ COMMIT git diff-tree -p COMMIT git diff oldCommit newCommit # git merge --sqaush git checkout master git merge --sqaush issue1 git add . git commit -m 'commit message' # git rebase master git checkout issue1 git rebase master git checkout master git merge issue1 # git log git log --graph --pretty=oneline # 로컬 말고 원격 브랜치 로그 보고.. 2021. 10. 1. [wsl] wsl에서 redis server 실행하기 ubuntu sudo service redis-server start centos systemctl start redis-server 기존에 centos에서 redis server를 실행하듯이 WSL(Windows Linux System)에서 명령어를 입력하면 작동하지 않는다. WSL에서 레디스 서버를 실행 할 때는 sudo service redis-server start 를 사용한다. 2021. 9. 30. 이전 1 2 3 다음