macOS Live Text has a very good quality/speed tradeoff.
Compared to Tesseract, it has much higher quality and is up to 3x as fast.
macOS Live Text has a very good quality/speed tradeoff.
Compared to Tesseract, it has much higher quality and is up to 3x as fast.
import json | |
import sqlite3 | |
repodata = json.load(open("497deca9.json")) | |
COLS = 'filename, build, build_number, depends, license, license_family, md5, name, sha256, size, subdir, timestamp, version'.split(', ') | |
db = sqlite3.connect("497deca9.sqlite") | |
db.execute("create table repodata ({}, primary key (filename))".format(','.join(COLS))) |
import concurrent.futures.thread as _thread_impl | |
import threading | |
import time | |
import weakref | |
from concurrent.futures import Future | |
class WorkStealThreadPoolExecutor(_thread_impl.ThreadPoolExecutor): | |
"""A ThreadPoolExecutor that supports work stealing. |
.ttf
files)git clone https://github.com/tesseract-ocr/tesstrain/
git clone https://github.com/tesseract-ocr/langdata_lstm
cd src
python -m tesstrain \
--langdata_dir /path/to/langdata_lstm \
--linedata_only \
import enum | |
class EnumWithDisplayName(enum.Enum): | |
def __new__(cls, value, name=None): | |
if not hasattr(cls, "_value_to_display_name"): | |
cls._value_to_display_name = {} | |
cls._display_name_to_value = {} | |
if name is not None: | |
if value in cls._value_to_display_name: |
def app(env, start_response): | |
start_response('200 ok', []) | |
return 'hello\n' |
I'm going to present you with a piece of text. Please classify it according to the classes outlined after the text. | |
The text: | |
""" | |
When should you choose MongoDB over a relational database management system (RDBMS) like MySQL? | |
By Dimitri Fague / 2024-05-23 / Databases, DBaaS, MongoDB, OVHcloud, Public Cloud | |
Of all the non-relational database engines (NoSQL) that have emerged in the last decade, MongoDB is without a doubt the most widely used. Source-available, powerful, flexible and scalable, MongoDB covers a wide range of use cases. Many, including startups, choose it to ensure they are not limited in their technological choices, so they can scale and adapt to different use cases. The possibility of switching from MySQL to MongoDB might come up when updating or revamping an existing app. So, let’s see when this switch might be relevant, and why using the MongoDB service managed by OVHcloud could be the ideal option. | |
The flexibility of the NoSQL data model |
import librosa | |
from scipy.signal import butter, lfilter | |
SR = 8000 | |
NFFT = 256 # change ~proportionally to SR | |
def butter_bandpass(lowcut, highcut, fs, order=5): | |
nyq = 0.5 * fs | |
low = lowcut / nyq |
How to:
For Fargate/ECS to be able to access your Docker images hosted on ECR (or somewhere else) you'll have to allow outbound internet access to the Fargate subnets. Here's how you do it.
curl -L https://raw.githubusercontent.com/redacted/XKCD-password-generator/master/xkcdpass/static/eff-long \ | |
| sort -R \ | |
| head -n 5 \ | |
| tr '\n' - |