- More scalable/faster than a blockchain (not enough utxos)
- Much better privacy security model than a blockchain
- Same or better theft security model than TTP but much worse than a blockchain
If it's so great, why hasn't it been done yet?
If it's so great, why hasn't it been done yet?
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |
""" | |
This is how I run my new bots created with pyTelegramBotAPI to avoid API errors, | |
like timeout errors or whenever my server can't reach Telegram servers (i.e. if net is down). | |
A while loop restarts the polling when it's ended due to an error. | |
A new bot object is created in each new loop execution, to avoid some errors. | |
We set all our message handlers in botactions() so the new bot object can use them. | |
Threading is not needed, but I prefer running the while True loop threaded so I can stop the bot | |
anytime with Ctrl+C, otherwise it can't be stopped easily. Killing the script is not nice and | |
I use databases in some bots, which should be closed beforehand. |
#!/usr/bin/python3 | |
import os | |
import datetime | |
import subprocess | |
import logging | |
import tempfile | |
import contextlib | |
from pathlib import Path |
import numpy as np | |
import soundfile as sf | |
from scipy.fftpack import fft, ifft | |
def rotateSignal(signal,flip): | |
if flip: | |
signal = signal[::-1] | |
x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft | |
rotSig = ifft(x) |
! NEC Portable Internetwork Core Operating System Software | |
! IX Series IX3315 (magellan-sec) Software, Version 10.7.18, RELEASE SOFTWARE | |
! Compiled Oct 25-Tue-2022 12:28:03 JST #2 | |
! Current time Apr 26-Wed-2023 16:52:00 JST | |
! | |
timezone +09 00 | |
! | |
logging buffered 819200 | |
logging subsystem flt warn | |
logging subsystem mape debug |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
SELECT title FROM movies;