代码改变世界

elon musk's 5 steps work method

2026-04-17 20:53 by 蜡笔小旧, 3 阅读, 0 推荐, 收藏,
摘要:most people: automated -> accelarated -> simplified -> delete elon: you requirements are dumb (even smart) -> delete try to delete part of processes - 阅读全文

sqlite rollback journal vs. wal

2026-04-15 23:08 by 蜡笔小旧, 4 阅读, 0 推荐, 收藏,
摘要:背景 今天看到了一个新名词WAL,跟在了sqlite后面,变产生了好奇。 sqlite 支持两种commit和rollback模式. 1. rollback journal (默认) 2. wal(write-ahead logging) 比喻: sqlite是一家银行, 有一本总账. 1. rol 阅读全文

cmd/powershell frozen issue

2026-03-17 09:51 by 蜡笔小旧, 5 阅读, 0 推荐, 收藏,
摘要:Yesteday, I ran a python web server code like this `uv run main.py`, but I can't login today, seems console get stucked, once I press any key on keybo 阅读全文

MTU issue in Ubuntu 22.04

2026-01-30 18:18 by 蜡笔小旧, 5 阅读, 0 推荐, 收藏,
摘要:最新一直在Ubuntu 22.04 desktop中上网很慢,经常超时如下图: 但是刷新下后面又能正常用,也不是每个网站都这样。这两天在用nuget上传package到私有registry发现也有问题了, 如图: 受不了了, 用tshark capture了下: sudo tshark -f "(h 阅读全文

Cursor ai network issue workaround in Ubuntu 22.04

2025-11-15 17:15 by 蜡笔小旧, 73 阅读, 0 推荐, 收藏,
摘要:之前用Cursor一切都正常, 偶尔大家也会报一些网络问题, 后面升级后一直断断续续能用, 偶尔不能用, 但是奇怪的是Windows都正常, 就我的Ubuntu不能用。 后面也尝试过用代理, 也是偶尔正常偶尔好,成了用Cursor要看运气。后面去查论坛,有人说要加--no-sadbox. 发现还果真 阅读全文

android app network monitor with mitmweb

2025-11-13 18:08 by 蜡笔小旧, 19 阅读, 0 推荐, 收藏,
摘要:1. Install root Mitm CA cert - Installing the mitmproxy CA as a user certificate (via http://mitm.it) - In your AVD, go to Settings → Security → Advan 阅读全文

zsh vs. bash

2025-10-09 11:49 by 蜡笔小旧, 8 阅读, 0 推荐, 收藏,
摘要:bash array=(1 2 3) echo $array # output: 1 zsh array=(1 2 3) echo $array # output: 1 2 3 阅读全文

在gitlab中使用fastlane编译ios

2025-09-30 15:20 by 蜡笔小旧, 21 阅读, 0 推荐, 收藏,
摘要:## 准备工作 1. 先找apple帐号管理员添加一个app api key, 见app-store-connect-api.png. 然后role设置为 app manager. (注:如何这个账户要自动创建cert可能需要admin)。 他应该给你issue Id, keyId, 然后一个p8文 阅读全文

记一次gitlab artifact问题

2025-09-12 03:21 by 蜡笔小旧, 15 阅读, 0 推荐, 收藏,
摘要:今天前端告诉我前端发布越来越慢了. 一看gitlab的deploy文件1千多个. 就开始查已开始查问题, 1. 一直觉得是前端build的问题,后来看了下build的文件只有几十个. 那就不是build的问题. 2. 开始怀疑是cache把dist目录缓存了, 后面发现也没有. 3. 怀疑是arti 阅读全文

Cursor in Ubuntu 22.04

2025-08-30 10:00 by 蜡笔小旧, 20 阅读, 0 推荐, 收藏,
摘要:If you have installed Cursor in Ubuntu 22.04, every thing looks correct but you can't chat with LLM and Network Diagnostics are stucks. Workround: ./c 阅读全文
1 2 3 4 5 ··· 22 下一页