기타
-
페이팔 샌드박스(테스트 서버)에서 구독(정기결제)을 생성하고 결제하는 프로세스를 정리해보려 합니다. 정말 페이팔은 가이드가 부족해서 개발이 오래 걸리는 것 같습니다. 간단히 기록용으로 정리한 내용이라 궁금하신 부분이 있으면 댓글로 남겨주세요. 1. Paypal 개발자 계정 생성 https://developer.paypal.com/ https://developer.paypal.com/ developer.paypal.com 이 사이트에서 생성하면 됩니다. (GET API Credentials 버튼 클릭) 2. accounts 확인 https://developer.paypal.com/dashboard/accounts Developer Dashboard developer.paypal.com 개발자 계정 생성 시..
paypal sandbox subscription test process페이팔 샌드박스(테스트 서버)에서 구독(정기결제)을 생성하고 결제하는 프로세스를 정리해보려 합니다. 정말 페이팔은 가이드가 부족해서 개발이 오래 걸리는 것 같습니다. 간단히 기록용으로 정리한 내용이라 궁금하신 부분이 있으면 댓글로 남겨주세요. 1. Paypal 개발자 계정 생성 https://developer.paypal.com/ https://developer.paypal.com/ developer.paypal.com 이 사이트에서 생성하면 됩니다. (GET API Credentials 버튼 클릭) 2. accounts 확인 https://developer.paypal.com/dashboard/accounts Developer Dashboard developer.paypal.com 개발자 계정 생성 시..
2024.03.20 -
https://gusrb.tistory.com/25 [Ubuntu]우분투 무한 로그인 해결 여러 방법들ubuntu 무한 로그인우분투 사용하다 보면 가끔 로그인 화면에서 넘어가지 않을 때가 있다.원인은 다양 하겠지만 보통 nvidia 드라이버나 cuda의 충돌이라고들 한다.,...이 증상 때문에 정말 지겹도록 gusrb.tistory.com 여러 방법 중 위의 방법이 성공했습니다
우분투 18 무한 로그인 해결https://gusrb.tistory.com/25 [Ubuntu]우분투 무한 로그인 해결 여러 방법들ubuntu 무한 로그인우분투 사용하다 보면 가끔 로그인 화면에서 넘어가지 않을 때가 있다.원인은 다양 하겠지만 보통 nvidia 드라이버나 cuda의 충돌이라고들 한다.,...이 증상 때문에 정말 지겹도록 gusrb.tistory.com 여러 방법 중 위의 방법이 성공했습니다
2024.03.20 -
1. 기존 설치된 버전 있는지 확인 redis-server --version 있는 경우 기존 버전 제거 https://webhostinggeeks.com/howto/how-to-uninstall-redis-on-ubuntu/ How to Uninstall Redis on Ubuntu | Linux Tutorials for Beginners Redis is an in-memory data structure store, primarily used as a database, cache, and message broker. While it offers numerous advantages in terms of speed a ... webhostinggeeks.com 제거 확인 sudo netstat -ntlp |..
django redis 설정1. 기존 설치된 버전 있는지 확인 redis-server --version 있는 경우 기존 버전 제거 https://webhostinggeeks.com/howto/how-to-uninstall-redis-on-ubuntu/ How to Uninstall Redis on Ubuntu | Linux Tutorials for Beginners Redis is an in-memory data structure store, primarily used as a database, cache, and message broker. While it offers numerous advantages in terms of speed a ... webhostinggeeks.com 제거 확인 sudo netstat -ntlp |..
2024.02.22 -
from django.views.decorators.http import require_POST import json @require_POST def api_sample(request): data = json.loads(request.POST.get('targets')) print(data) # {'key1': [[1, 2, 3], [65, 3, 11], ...]} Python $.ajax({ type: 'POST', url: '/api_sample', dataType: 'json', data: { targets:JSON.stringify({"key1":[[1, 2, 3], [11, 22, 33]]}) }, success: (res)=>{ console.log(res) }, error: (error)=>..
django array input request POST로 받는 법from django.views.decorators.http import require_POST import json @require_POST def api_sample(request): data = json.loads(request.POST.get('targets')) print(data) # {'key1': [[1, 2, 3], [65, 3, 11], ...]} Python $.ajax({ type: 'POST', url: '/api_sample', dataType: 'json', data: { targets:JSON.stringify({"key1":[[1, 2, 3], [11, 22, 33]]}) }, success: (res)=>{ console.log(res) }, error: (error)=>..
2024.02.21 -
영상이 로드가 안되는 경우가 있어서 삽질하다가 mp4 파일은 웹 상에서 H.264 코덱이 호환 가능한 코덱임을 발견했다. 기존 영상 코덱 MPEG-4 -> H.264로 변환해서 해결 ffmpeg -i video_path -vcodec libx264 -acodec aac output_path -y 이 때 동일한 경로로 할 경우 ffmpeg 잘 안되니 임시 파일명 주고 delete, rename하는 식으로 하기
python flask, django web video load disabled영상이 로드가 안되는 경우가 있어서 삽질하다가 mp4 파일은 웹 상에서 H.264 코덱이 호환 가능한 코덱임을 발견했다. 기존 영상 코덱 MPEG-4 -> H.264로 변환해서 해결 ffmpeg -i video_path -vcodec libx264 -acodec aac output_path -y 이 때 동일한 경로로 할 경우 ffmpeg 잘 안되니 임시 파일명 주고 delete, rename하는 식으로 하기
2023.11.29 -
Bert 관련 모델 학습 코드 실행 중 해당 오류가 발생했습니다. (세그멘테이션 오류) terminal 상에서는 모델 로드 및 model.cuda() 해도 에러가 안나서 찾아보다가 한참 걸렸네요. 해결 방법 코드 상 학습, 추론에 사용되는 모델은 torch였는데 "import tensorflow"가 선언되어있어 제거하니 정상 작동 되었습니다. 제 코드에서 tensorflow는 "from keras.preprocessing.sequence import pad_sequences" 이 소스만 사용하고 있어 굳이 "import tensorflow"를 할 필요가 없었습니다.
torch model.cuda() segmentation fault (core dumped) 에러 해결Bert 관련 모델 학습 코드 실행 중 해당 오류가 발생했습니다. (세그멘테이션 오류) terminal 상에서는 모델 로드 및 model.cuda() 해도 에러가 안나서 찾아보다가 한참 걸렸네요. 해결 방법 코드 상 학습, 추론에 사용되는 모델은 torch였는데 "import tensorflow"가 선언되어있어 제거하니 정상 작동 되었습니다. 제 코드에서 tensorflow는 "from keras.preprocessing.sequence import pad_sequences" 이 소스만 사용하고 있어 굳이 "import tensorflow"를 할 필요가 없었습니다.
2023.10.16