- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
The input() problem in Sublime isn't really Sublime's fault. Its build system (Ctrl+B) runs the script with no stdin attached, so input() either hangs or throws EOFError. Two ways around it: install the Terminus package and use a build system with "target": "terminus_exec", which gives the script a real terminal, …
The mistakes that hurt most later are boring ones. Business logic living in controllers, so the same rule ends up copied into an API endpoint, a queued job and an Artisan command. Pull that into action or service classes early and keep controllers thin. On the database side, turn on …
You can skip the clipboard and manual edit step entirely by keeping the markers in localStorage. It survives closing the browser and works fine from a local html file. function saveMarkers() { localStorage.setItem('placemarkers', JSON.stringify(placemarkerList)); } function loadMarkers() { const raw = localStorage.getItem('placemarkers'); return raw ? JSON.parse(raw) : []; } Call …
When I'm vetting a vendor or a site we're about to integrate with, I usually start with DNS and headers before reading any marketing page. dig +short TXT example.com # SPF, plus verification records dig +short TXT _dmarc.example.com # DMARC policy dig +short TXT selector1._domainkey.example.com curl -sIL example.com # Server, …
For Telegram you don't really need a converter. The desktop export (result.json) is simple enough that a few lines of Python turn it into readable text: import json with open('result.json', encoding='utf-8') as f: data = json.load(f) with open('chat.txt', 'w', encoding='utf-8') as out: for m in data['messages']: text = m.get('text', '') …
We run local-first and it's been fine. The MMDB lookup sits in the request path, and the result gets cached per /24 (or /48 for IPv6) in Redis for a day, so the reader barely gets hit anyway. A hosted call only happens async from the Python worker when the …
The End.
stackshortlist