#sqlite3

KipJayChou[维护模式]jay@gts.feddit.social
2025-11-28

Gotosocial有点傻福了,Apple也是傻福,我更是傻福

已解决 Solved

https://docs.gotosocial.org/configuration/

我开启注册后,决定尝试申请注册admin@gts.feddit.social,第一个蠢事来了。

  1. iCloud过期,收不到邮件
    我的apple icloud早就爆满了,5G的空间大小塞了47GB的图片视频(icloud+订阅过期了),所以自从11月16号,我的icloud就没有接受过邮件了。
    当我清理完图片,又发现邮件没有像deepseek所说那样在存储恢复后受到邮件,好,白清空了,所以我需要去清理admin和我的xxx@icloud.com邮件。

  2. 通过清理数据库来删除admin和xxx@icloud.com邮件
    因为我没有办法验证这个邮件地址,所以就算我接受了这个账户,也无法登陆它。
    我需要完全清除,再重新注册。

cd data
sudo apt update && apt install sqlite3
cp sqlite.db sqlite.db.bak
sqlite3 sqlite.db

SELECT id, username FROM accounts WHERE username = 'admin';

# 查看这三个 admin 账户的完整信息
SELECT a.id, a.username, a.created_at, a.uri, 
       u.id as user_id, u.email, u.admin, u.moderator, u.disabled
FROM accounts a 
LEFT JOIN users u ON u.account_id = a.id 
WHERE a.username = 'admin';
# 找到本地admin而不是其他实例的admin,要一起执行

DELETE FROM users WHERE account_id = 'xxx';
DELETE FROM accounts WHERE id = 'xxx';

SELECT id, username FROM accounts WHERE username = 'admin';

.quit

docker compse down
docker compose up -d

再次注册,然后在Mail上验证邮件,管理员批准admin

  1. 更傻福的来了

在那个批准界面,approve后,我看见suspended的提示,我也没多想就直接确实suspended了,然后才发现suspended让账户不可登陆,不可撤销。
我就需要用./gotosocial CLI去取消suspended,目前发现好像就算取消suspended了,只会有个gts.feddit.social/@admin,后段管理和webui是无法登陆的,我是个傻福,我需要再次进行第二步操作了。

等我好消息。

#gotosocial #mastodon #admin #sysadmin #icloud #apple #socialmedia #db #sqlite #ssh #mail #suspend #sqlite3

2025-11-22

Пишем Telegram-бота на Python: прикручиваем оплату Telegram Stars, систему промокодов и OpenAI

Привет, Хабр! В качестве пет-проекта для работы с API и базами данных решил написать своего бота-ассистента. Идея простая: прокси к OpenAI, но с нюансами: хотел разобраться, как работать с относительно новой внутренней валютой Telegram Stars, реализовать собственную систему промокодов и админку без использования громоздких фреймворков, оставаясь на библиотеке telebot (pyTelegramBotAPI).

habr.com/ru/articles/969080/

#python #openai_api #telegram_bot #api #telegram_stars #github #sqlite3

2025-11-21

I built a side-project. I used #PostgreSQL to preserve state. I'm coming to regret that decision. When I deployed, I had to boot up a PG cluster, and now I have to worry about backups (the data is important).

My only worry is full-text search and storing XML in the database (less structured data).

I should have just used #sqlite3.

Luckily, I deployed to bare-metal, so I can change my mind quite quickly.

tuxsoultuxsoul
2025-11-17

gracias al tecnologico de cuautla, les comparti el curso de yii2 y base de datos, diseño de base de datos en diferentes motores de bd, todo con software libre y linux, durante cinco dias ... vt.tiktok.com/ZSf12m9b2/

🛢️ FilesSQL - драйвер #SQL для прямих запитів до файлів даних без попереднього імпорту. Підтримує CSV, TSV, LTSV, Parquet та Excel файли з використанням синтаксису #SQLite3.

🔗 github.com/nao1215/filesql

Second new: I decided to fully recode "Crisps Chat 🍟" On my opinion - that was a dirty code.

It's a long story, alas...

The recoded version is located here 👉 codeberg.org/xolatgames/Crisps

I wish you a nice, and a cool day! ✌️😜

#cpp #cplusplus #app #apps #soft #software #imgui #sdl #sdl2 #messaging #sqlite #sqlite3 #communication #opensource #codeberg #git #cmake #make #makefile #application #applications #linux #DearImGui #messages #chat #chatting #chats

2025-10-21

#Golang is elegant

also: #sqlite3

yes, I'm an engineer

bananabob :tinoflag: 🇺🇦 🇵🇸bananabob@mastodon.nz
2025-10-21

EDIT: this problem was fixed using trim() on the variable.

Need a little help with SQLITE3 and PHP.

When I use the following code:
$statement = $db->prepare('SELECT * FROM programme WHERE progchanname = :progchanname');

$statement->bindValue(':progchanname', $channel);

$res = $statement->execute();

Nothing is returned.
But if I substitute the variable $channel with 'HGTV' I get results.

Why is the variable not being accepted?

#Code #PHP #SQLITE3

Hi, folks! 👋 How are you? ✌️

I've already publish the executable of Crisps Chat 🍟

And now you can download then test it! But only for Linux 🐧

Why test it? Because it's an early version of the app, and it has few features and a lot of bugs 🐞🐞🐞

You can download it freely from it Codeberg page 👉 codeberg.org/xolatgames/crisps

#codeberg #opensource #communication #app #apps #soft #software #chat #application #sdl #sdl2 #sqlite #sqlite3 #imgui #development #devlog #chatting #messaging #cpp #cplusplus

Connection screen where you can choose a server. This is the start of the app.Contacts list where you can add your friends by them ID.Messaging screen, where you can send some messages to your friend.
2025-09-05

Turns out adding a new unique column to a database is one heck of a chore.

And yet someone must have figured this out already... who figured it out?

2025-09-05

It is so cool that likely one of the fastest (especially compared to `better-sqlite3`) sqlite bindings for Node.js out there is the one we use for Signal Desktop client.

github.com/signalapp/node-sqlc

I should find motivation to upstream my ideas to back to Node.js core (JS level parameter binding and row parsing through a compiled function), but I’m… too lazy for that. Happy to explain how it all works to anyone interested, though!

#NodeJS #JavaScript #sqlite3

There's still works on my messaging app 👉 codeberg.org/xolatgames/crisps

I've decided to decombine "Create/Connect to server" button. Because I think that it was be a stupid idea.

I've also fix many bugs, and add avatars to "Messaging screen" and "Contacts screen".

So, I've all for today, and I wish you a good day! 😎 ☀️

See ya! 😉 ✌️

#imgui #sql #sqlite #sqlite3 #opensource #chat #communication #app #apps #sdl #sdl2 #cpp #cplusplus #soft #software #messaging #MessagingApp #chatting #dev #devlog

Now app shows you your contacts list.

But it also does nothing, because I need to set up a network logic for receiving invites.

👉 codeberg.org/xolatgames/crisps 🏔️

The picture with that cat: flickr.com/photos/36943025@N07

#cpp #cplusplus #sdl #sdl2 #imgui #opensource #communication #chat #messaging #app #soft #dev #devlog #development #sql #sqlite #sqlite3 #conversations #conversation

JP Mensjpmens
2025-08-08

The things I learn, even at my age, simply by reading documentation are WILD!

Today:

"In addition to reading and writing SQLite database files, the sqlite3 program will also read and write ZIP archives."

sqlite.org/cli.html

I create a zip file with two files in it, load it in sqlite3, select the data from one of the files, DELETE the other from the "virtual zip table" and presto: file is gone.
2025-07-27

Man, it'd be so nice if actually had case insensitive text.

No, no, I hear you typing, "COLLATE NOCASE exi-" and you should stop, right now: that's ASCII only. No, not that 8 bit bullshit, ASCII was never 8 bit: *actual ASCII*. 26 characters. US English only.

Hey, remember when the world only used ASCII? No you don't, because there is no period in history where that was true. Remember IBM code pages? Exactly.

So yeah, it'd be so nice if sqlite3 actually had case insensitive text.

2025-07-13

Ik ben echt een hele slechte #hacker.

Ik probeer een #sql injectie te doen (lokaal) op een #sqlite3 :sqlite: database, maar het lukt niet.

Er wordt geen tabel gewist ... :confused:

Frank Abelbeckfrank@troet.cafe
2025-07-08

Now I have German airspace data in a database.

Ho. Ho. Ho.

#AIXM uses a #GML subset to define surfaces and curves. Arbitrary sets of primitives don't go well with relational databases, imo. Thus I converted the GML structures to semicolon-separated command strings (arc, circle, geodesic, line, curve).

#aviationnerd #python #sqlite3

screenshot of a Terminal window, showing output of an SQLite dump file
Frank Abelbeckfrank@troet.cafe
2025-07-07

Work in progress: declaring #AIXM objects in my #Python class structure. Most AIXM features (like aixm:AirportHeliport) of the datasets at aip.dfs.de/datasets are already defined.

Added a global linker set as class variable to the abstract object class, so that all links (like aixm:onRunway) can be collected and stored in one #sqlite3 helper table.

#aviationnerd

Christoff, the humandeadbeef@oldbytes.space
2025-06-30

Decided to not use #libev and use #libevent instead for socket/timer/event loop/callback system. Other than I trust it more, I like the baked in #openssl support (will use for #telnet+tls later).

Additionally, going to try out sqlcipher (#sqlite3 + AES encryption baked in) for data storage. Everything will be stored in a sqlite3 database.

Using cmake and pkg-config, #C, sqlite3 (sqlcipher), libevent, and openssl.

Decided to just focus on developing the software on KDE neon distro (Ubuntu LTS) and worry about other OSes later. I spent too much time worrying about ease of build/install instructions for other operating systems instead of just deciding and moving forward.

#BBS #NecroNeonBBS #Vaporware

Michal :verified: :btw:michal@kottman.xyz
2025-06-16

Aaand upgrade done, overall took ~30min to migrate my family #Nextcloud from #Sqlite3 to #Postgres

It does feel much snappier now, especially when loading many thumbnails.

Unfortunately the process does take a software engineering degree to finish (--clean-schema does not work due to missing `drop table oc_news_* ... *cascade*`), it's a lot of babysitting and manual corrections.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst