jsontest.com - json 응답을 주는 테스트 API 사이트
·
Development
API를 호출하는 기능을 개발하다보면 응답을 제대로 처리하기 위해 테스트 API가 필요한 경우가 있다. 특히 json 형태의 응답을 받게되는 경우가 많은데 테스트를 위한 API를 제공하는 사이트를 소개한다. jsontest.com http://www.jsontest.com/ JSON Test by jsontest JSONTest.com is a testing platform for services utilizing JavaScript Object Notation (JSON). To use, make a request to servicename.jsontest.com, where servicename is the name of a service listed below. We also support a nu..
[supabase] 이미 가입된 이메일 검증하기
·
Backend
supabase를 사용해 회원가입 프로세스를 구현하다보면 이미 가입된 이메일로 가입 시도 시 '이미 가입되어 있으니 로그인을 시도하세요.'와 같은 안내를 하도록 개발하고 싶은 경험 있으실텐데요.보통 이메일과 비밀번호로 회원가입을 시도하는 경우 아래와 같이 코드를 작성하게 됩니다.import { supabase } from './supabaseClient'; // Supabase 클라이언트 import// 회원가입 처리 함수const handleSignUp = async (email, password) => { try { // Supabase의 signUp 함수 호출 const { data, error } = await supabase.auth.signUp({ email: email,..
PC에 연결된 모바일 기기 화면을 명령어로 캡처하기 (안드로이드, iOS)
·
Mobile
모바일 앱을 개발하거나 USB로 연결된 모바일 기기의 화면 캡처가 필요할 때가 종종 있습니다.이번 글에서는 USB로 연결된 안드로이드나 iOS(아이폰) 기기의 화면을 캡처하는 방법에 대해 정리했습니다.1. 각 OS별 캡처 명령안드로이드adb exec-out screencap -p > screenshot.pngADB를 이용해 PNG 캡처 후 로컬에 저장adb devices로 연결 확인 가능windows에서는 cmd에서 가능 (powershell 불가)iOS (실물 기기)xcrun xcdevice screenshot screenshot.pngXcode CLI 도구를 이용해 iOS 기기 화면을 PNG로 저장xcrun xcdevice list로 연결 상태 확인 가능USB로 연결되어 있고, 개발자 모드가 켜져 있..
[Python] 문장에서 가장 긴 단어 찾기
·
Backend
문장을 입력받아 가장 긴 단어를 찾는 예제를 작성해 보았다. 샘플코드 def find_longest_word(sentence): words = sentence.split() return max(words, key=len) # Example usage text = "It only takes about 20 minutes to find out about your accurate English level" print("Longest word:", find_longest_word(text)) 결과 Longest word: accurate
ADB를 사용해 System App 삭제하기
·
Mobile
안드로이드 시스템 이미지에 내장되어 있는 시스템 어플리케이션 (built-in application) 삭제 1. ADB shell접속 및 루트 권한 획득 adb shell su 2. /system 이 어디에 마운트 되었는지 확인 mount | grep system /dev/block/stl12 /system ext4 ro,relatime,barrier=1,data=ordered 0 0 3. read-write로 remount mount -o rw,remount /dev/block/stl12 /system 4. rw모드로 마운트 됐나 확인 mount | grep system /dev/block/stl12 /system ext4 rw,relatime,barrier=1,data=ordered 0 0 5. 어플..