Bill Gates (via Slashdot): It feels like just yesterday that Paul and I were hunched over the PDP-10 in Harvard’s computer lab, writing the code that would become the first product of our new company. That code remains the coolest code I’ve ever written to this day—and you can see it for yourself at the […]
Reuters (PDF, Slashdot): Apple was hit with a 150 million euro ($162.4 million) fine by French antitrust regulators on Monday for abusing its dominant position in mobile app advertising on its devices via a privacy control tool. […] “While we are disappointed with today’s decision, the French Competition Authority has not required any specific changes […]
Joe Mullin: In a moment of clarity after initially moving forward a deeply flawed piece of legislation, the French National Assembly has done the right thing: it rejected a dangerous proposal that would have gutted end-to-end encryption in the name of fighting drug trafficking. Despite heavy pressure from the Interior Ministry, lawmakers voted Thursday night […]
Apple: Starting today, with the availability of iOS 18.4, iPadOS 18.4, and macOS Sequoia 15.4, Apple Intelligence features are now available in many new languages, including French, German, Italian, Portuguese (Brazil), Spanish, Japanese, Korean, and Chinese (simplified) — as well as localized English for Singapore and India — and are accessible in nearly all regions […]
昨天没有拍照片,但生成了一张,对于生成的效果和过程还是理解的更深了一些。
正在上体育课的小学生。
Nick Lockwood: Airdrop on macOS has this “great” feature where it displays receivers asynchronously as it finds them and they are sorted alphabetically, so the order shuffles randomly under the mouse as you are trying to clickBrought to you by the guy who sent a file to a random colleague when trying to share it […]
Also new in Swift 6.1, ST-0006: We offer three variants of #expect(throws:):One that takes an error type, and matches any error of the same type;One that takes an error instance (conforming to Equatable) and matches any error that compares equal to it; andOne that takes a trailing closure and allows test authors to write arbitrary […]
Ernie Smith (via Hacker News): But it of course raises the question: Do they make Apple‘s shows on Macs? As the second season of Severance ended in dramatic fashion, Apple decided to answer that question, and the answer was … surprisingly confusing. […] In the video Apple released, which highlights the Mac-driven editing process that […]
Makena Kelly (Hacker News): The project is being organized by Elon Musk lieutenant Steve Davis, multiple sources who were not given permission to talk to the media tell WIRED, and aims to migrate all SSA systems off COBOL, one of the first common business-oriented programming languages, and onto a more modern replacement like Java within […]
1月 不躬身入局,怎能胜天半子?不付出代价,怎么让场内的人认为你是玩家而非猎物?观望只能收获谈资。 数据备份太重要了,老婆的苹果手机突然屏幕失灵,进不去系统,资料在里面也取不出来。赶忙把电脑、手机都备份一下,里面数据丢失了的话比丢钱还肉疼。 设置每周自动备份我的电脑。 NAS的实用性进一步体现出来。 特朗普在候任的前两天发布了名为“TRUMP”的模因币(meme),紧随其后的是他老婆也发了一个。此举瞬间点燃加密市场,各大交易所跟进,盈利百万的群友比比皆是。目前一枚TRUMP约40刀,此次事件是否成为阶段性顶部,还有待进一步观察。 今年又用AI工具设计了红包封面,去年龙年非常好设计,今年蛇年,AI工具好像有点儿分不清龙和蛇,画出来的效果都不太好。所以索性就画了个熊猫上去。不得不说,Coze是个好上手的工具~ 可以在我的公众号里领取,一共2000个。 日本央行继续加息25个基点至0.5%,为2007年来最大加息幅度。 想要开心,过得舒服,必须要有钝感力。那种,“言未出,结局已演千百遍;身未动,心中已过万重山”的内心戏只会增加内耗并让你心神迷乱,这些是造成身体和财富全面陨落的关键因素。顿感的实质是内心平和做熵减,敏感的实质是内心加戏做熵增。生命是以负熵为食的,选哪个是必然的。 by TumbleBit 观念与习惯都是个人可以掌控之事,我想就它们提些改进建议,佐以寻常运气,幸福或便可得。–罗素《幸福之路》 蛇年春节去一趟华强北修手机屏幕😂 2月 开工了,时间还比较多。 在看《边水往事》这部剧,还挺有意思的,赌石头的老哥应该是武汉人,口音也是演技的一部分。 这个总结挺对的: 你与大众认知不一致,且你是对的。只有这种情况才能挖到金。 周末坐绿皮火车从内江到宜宾,还没有吃过宜宾燃面呢,据说和武汉热干面比较像。 他说道:“以劳力换取金钱,需脚踏实地;以智慧谋取财富,需灵活变通;以金钱生金钱,则需果断决绝;以资源换收益,则需圆融通达;以人才促发展,则需心胸开阔。”正当我沉浸在这些话语中时,前辈又抛出了富人的核心秘诀:“普通人行事,往往需十足资源与把握才敢迈出步伐。” 凑热闹看了《哪吒之魔童闹海》,回家路上交流感受,我说这个太短了吧,用文言文写出来不到两千字就能表达出来。老婆说最让她感动的细节是申公豹他爹在被砍了一只手但知道对方是玉虚宫的之后,不仅放弃了反抗还求饶,只是为了儿子申公豹能留下好印象。这就像很多家长,舍弃自己也要为儿女做点什么。 月底了,美股和加密货币市场出现大幅回撤。3天回撤25%以上,10万直接到7字头了 😭 特朗普给的全都还回去了。 慈悲若没有智慧和勇猛,善良若没有边界和锋芒,所到之处也是百鬼缠身。 3月 乌克兰和美国谈判,没想到谈成这样子了。或许这个瞬间,真的掀开了一个动荡不安世界的一角: 引发一个思考:本届美国政府治下,经济会如何发展?我该如何下注? 3月3日凌晨,加密市场剧烈波动。因川总统的一条发言,比特币又拉回了9万以上。这么剧烈的波动真不是一般人可以受得了的,对心理是一个极大考验。 读完《幸福之路》,黄菡译本。 Fact Sheet: President Donald J. Trump Establishes the Strategic Bitcoin Reserve and U.S. Digital Asset Stockpile. 看完一部好剧《北平无战事》,为曾可达惋惜。一片忠心耿耿,换来死道边,建丰不配做他的领导。 周末去歌乐山徒步,时隔大约有一年再次踏上山林。歌乐山位于重庆市沙坪坝区,著名的白公馆和渣滓洞就在这里。我们走了一个不到10公里的路线,因为是市内,难度比较小,很多家长带娃体验。孩子还是适合在大自然里玩耍,每周补课天天做题,终点只是一个呆子,进入社会了也就是个苦逼的打工人,你问他幸福是什么?不知道。 新买了一个手持电台,泉神K6,到手后刷了开源的第三方系统。计划什么时候刷一个国外的系统,可以让K6支持FT8模式。所以啊,希望这些国产无线电厂家从泉盛的案例中学到开源的好处,积极拥抱社区和用户,并不是什么坏事。 历史太有借鉴意义了,这部《大明王朝1566》能在豆瓣有9.8的评分,从各种角度解读都能给人以思考。 嘉靖在位45年,不理朝政多年,但对其下属及派别之间的斗争都了如指掌,是为知人善任,并且为儿子和孙子留下了海瑞和张居正。 等到张居正任首辅的时候,出现万历中兴。 中兴后迅速衰败,万历又面临和嘉靖同样的问题:张居正如严嵩一般权倾朝野,该不该处理? 嘉靖爷孙三人在大殿上同海瑞谈话,嘉靖说黄河长江一个清一个浊,二者不可偏废,只能做好平衡。 嘉靖时张居正为“清”,万历后期张居正为“浊”。 黄仁宇先生在《万历十五年》中曾写道:“在当时的历史条件下,皇帝的励精图治或者宴安耽乐,首辅的独裁或者调和,高级将军的富于创造或者习于苟安,文官的廉洁奉公或者贪污舞弊,思想家的极端进步或者绝对保守,都无法扭转时局。” 黄仁宇先还写道:“中国两千年来,以道德代替法制,至明代而极,这就是一切问题的症结。” 都在等中美4月的会晤。金融市场暗流涌动,黄金价格快速攀升,暴风雨前夜的即视感啊。我还是希望有个好结果:顺利会谈,有分歧也要合作。 三月最后一天在四姑娘山遇到大雪。上山路上堵了几公里,幸亏及时掉头返回了都江堰市区,不然在山腰上要堵一夜。 这件事情告诉我,要及时止损。
Holly Borla: Swift 6.1 enables custom Swift Testing traits to perform logic before or after tests run in order to share set-up or tear-down logic. If you write a custom trait type which conforms to the new TestScoping protocol, you can implement a method to customize the scope in which each test or suite the […]
Apple (security, downloads): Clang now defines TARGET_OS_* conditionals as built-in macros based on the provided target triple.[…]Searching in the documentation viewer may start an indexing process which makes no progress. This may result in missing search results and increased CPU usage.[…]Fixed: Foundation encoders/decoders user info dictionaries now require Sendable values. This may cause build errors […]
SpamSieve 3.1.2 improves the filtering accuracy of my Mac e-mail spam filter, amongst other enhancements and fixes. Some interesting issues were: I made some more table view improvements enabled by the lazy Core Data collections mentioned in the previous release. Since it no longer loads the whole selection into RAM, it’s now possible to operate […]
Elon Musk (Hacker News): @xAI has acquired @X in an all-stock transaction. The combination values xAI at $80 billion and X at $33 billion ($45B less $12B debt). Since its founding two years ago, xAI has rapidly become one of the leading AI labs in the world, building models and data centers at unprecedented speed […]
站长 2025 年 4 月 1 日发布的微博
## **1\. 引言:AI 原生软件开发的黎明**
不知是周几,不知是不是休息日。老婆大人发给我两张某音电子团购券,让去换两袋元宵回来。券马上过期了,最后一天。唯一可以确定的,不是元宵节。 公交车上接到班主任电话,说臭宝出了点事儿,让我赶紧去XX大厦803房间一趟。 门后有一大帮人,有男有女。有人兴奋地大喊:“来了来了,是那个喊得最响的小个儿家的。” 出现两位警察叔叔:“这样儿哈,你闺女上人家堵门,把人家给砍了。砍在肚子上,在医院手术呢。人家家长说了,你拿出50万,他们不追究责任,否则的话就得走法律程序了。你也知道,她虽然年龄不够,但是也会进档案,以后入党当兵考公务员都受影响。” “不入。”我掉头就走。 警察叔叔立刻表示:“哎哎,等会儿,可以商量。” 我:“第一,我不跟你们商量,对方家长来。第二,不在这儿商量。第三,我再不走元宵没有了。” 警察叔叔:“哎哎,好说好说,你先把人领回去啊!” 我:“谁给弄来的谁给弄回去。” 里屋臭宝的声音也很配合:“早跟你们说了,少了30串大串和3杯霸王茶几我是不会走的!” 班主任一声不吭地站在门槛上,两手撑门,一妇当关。 “臭宝爸爸啊,臭宝确实没砍人,但是今天找你来,确实是因为她犯了严重的错误。” “什么错误啊?” “昨天小考,臭宝竟然不会做9500开平方!我早就强调过,这个一定要会!结果呢,全班只有2个人做出来了,把我的话当什么了!” “不会你倒是教啊?!” “这不是让你们家长给数学老师上强度嘛,难道你开根号是物理老师教的?” “你着急你就教呗。我初中就是代数老师和几何老师互相扯皮谁都不讲,物理老师看不下去了自己教的。” “让开吧。我买不着元宵我就报警了,你这还有假警察。” 两位警察叔叔赶紧澄清:“我们是真警察。我们跟学校有合作,在学校值班的,帮忙。” “真警察那就打督察电话呗,敲诈勒索。麻烦警号拍一下。” 两位警察叔叔消失了。 “X老师,咱就教育局呗?” 班主任也消失了。 只听到臭宝在里面的大嗓门:“我爸来了,都别走,我爸请大家吃大串,喝霸王茶几。” 吓醒了。 《梦四十五》采用署名-非商业性使用-禁止演绎许可协议进行许可。 『破袜子』期待与您交流。 相关推荐: 2008元宵节快乐[61%] 梦三十二[34%] 周记(499)[31%] 每夫吐槽(019)[31%] 梦[4%]
> AutoDev Next 的核心理念是将强大的 IDE 能力与 AI 结合,打造“IDE 即服务”的下一代 AI 编程体验,随处即创建应用的编程服务体验。
Juli Clover (release notes, security, enterprise, developer, full installer, IPSW): With macOS 15.4, Apple is bringing Mail Categorization to the Mac. The Mail app features dedicated categories like transactions, updates, and promotions, with important emails organized into a primary section.Apple News+ subscribers now have access to an Apple News Food section with recipes, food articles, […]
macOS 14.7.5 (full installer, security): This update provides important security fixes and is recommended for all users. macOS 13.7.5 (full installer, security): This update provides important security fixes and is recommended for all users. Previously: macOS 14.7.4 and macOS 13.7.4
Juli Clover (no iOS/iPadOS release notes, security, enterprise, no developer): iOS 18.4 adds Priority notifications for Apple Intelligence-capable devices, showing you your most notification first. There’s a dedicated Apple Vision Pro app for Vision Pro owners, and a new Apple News Food feature for Apple News+ subscribers. There’s lots more quoted in her article, though […]
Juli Clover (release notes, security, no developer): Apple shares full release notes for tvOS in its tvOS support document, which is updated after each new version of tvOS comes out. But all it says is “performance and stability improvements.” Previously: tvOS 18.3.1
Ryan Christoffel (no release notes, no security, no developer): After initially listing watchOS 11.4 on its website as released, the site has since been updated to remove the update. It’s unknown when it will return. Previously: watchOS 11.3.1
Juli Clover (no release notes, security, developer, enterprise): The visionOS 2.4 update brings Apple Intelligence to the Vision Pro for the first time, putting it on par with the iPhone, iPad, and Mac. […] Along with Apple Intelligence, Apple added a Spatial Gallery app for the Vision Pro. The Spatial Gallery app offers a curated […]
Apple: This update includes performance and stability improvements. Previously: audioOS 18.3
小陈最近为团队的 HTTP 服务开发了一个高性能网关,用户的请求会先经过小陈开发的网关,网关对 HTTP He […] Continue reading...
**I. 引言:人工智能代码生成时代下“粪围编程”的定义**
模拟是最有效的练习编程熟练度的基础算法,也是有效的掌握各种编程技巧的练习方式。 本文将把各种模拟技巧与题目结合,用题目带着学生掌握这些模拟技巧。 二维数组包边 有些时候,我们在处理二维数组的时候,需要处理 x,y 坐标的边界。这样写起来会比较麻烦,但是,如果我们将数据从下标 1 开始保存,那么就人为在数据外面留了一圈缓冲带。这个时候,在处理 x,y 周围坐标的时候,就不会出现数据下标越界的情况了。 例题:P2670 NOIP 2015 普及组 扫雷游戏 该题如果正常写,需要判断每个格子周围 8 个格子的状态。如果我们把数据从 1 开始读入,在判断的时候就容易很多。以下是参考代码。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 /** * P2670 [NOIP 2015 普及组] 扫雷游戏 * * Author: Tang Qiao */ #include using namespace std; int n, m; char tu[110][110]; int movex[] = {-1, -1, -1, 0, 0, 1, 1, 1}; int movey[] = {-1, 0, 1, -1, 1, -1, 0, 1}; int main() { cin >> n >> m; for (int i = 1; i > tu[i][j]; } } for (int i = 1; i using namespace std; int n, m; int a[1001][1001]; int x, y; bool check(int i, int j) { // 检查上方格子 if (i > 1 && a[i-1][j] == y) return true; // 检查下方格子 if (i 1 && a[i][j-1] == y) return true; // 检查右侧格子 if (j > n >> m; for (int i = 1; i > a[i][j]; } } cin >> x >> y; int count = 0; for (int i = 1; i using namespace std; #define MAXN int(1e5 + 10) int n, m; int face[MAXN]; string name[MAXN]; int main() { cin >> n >> m; for (int i = 0; i > face[i] >> name[i] ; } int idx = 0; for (int i = 0; i > a >> b; // 圈内向左 == 圈外向右 if ((face[idx] == 0 && a == 0) || (face[idx] == 1 && a == 1)) { idx = (idx - b + n) % n; } else { idx = (idx + b) % n; } } cout using namespace std; int main() { int n, m; cin >> n >> m; vector a(n); for (int i = 0; i > a[i]; } int current = 0; for (int i = 0; i n || ny n || tu[nx][ny] != 0) { order = (order + 1) % 4; nx = x + movex[order]; ny = y + movey[order]; } 因为要填充 n*n 个数,所以循环一共执行 n*n 次。 完整的参考代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 /** * Author: Tang Qiao */ #include using namespace std; int n, x, y, order; int tu[15][15]; int movex[] = {0, 1, 0, -1}; int movey[] = {1, 0, -1, 0}; int main() { cin >> n; memset(tu, 0, sizeof(tu)); x = 1; y = 0; order = 0; for (int i = 1; i n || ny n || tu[nx][ny] != 0) { order = (order + 1) % 4; nx = x + movex[order]; ny = y + movey[order]; } x = nx; y = ny; tu[x][y] = i; } for (int i = 1; i (b, -a) 逆时针旋转:(a, b) -> (-b, a) 这样,我们就可以构建关键的旋转代码了,假如我们是基于中心点 (x, y) 半径是 r 的顺时针旋转的话,那么,对于坐标 (a, b),我们: 首先:把它移动到以 (x, y) 为中心:(a-x, b-y) 然后:我们把坐标按上面的规则变换成 (b-y, x-a) 最后:我们把坐标加上 (x, y) 的偏移,还原成原始坐标:(b-y+x, x-a+y) 以上逻辑写成代码是:g[b-y+x][x-a+y]=f[a][b] 同理,如果是逆时针旋转: 首先:把它移动到以 (x, y) 为中心:(a-x, b-y) 然后:我们把坐标按上面的规则变换成 (y-b, a-x) 最后:我们把坐标加上 (x, y) 的偏移,还原成原始坐标:(y-b+x, a-x+y) 以上逻辑写成代码是:g[y-b+x][a-x+y]=f[a][b] 本题保证了数据不会在旋转时越界,整体的参考代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 /** * Author: Tang Qiao */ #include using namespace std; #define MAXN 510 int f[MAXN][MAXN], g[MAXN][MAXN]; int n, m; int main() { cin >> n >> m; int cnt = 1; for (int i = 1; i > x >> y >> r >> z; if (z == 0) { for (int a = x-r; a <= x+r; ++a) for (int b = y-r; b <= y+r; ++b) g[b-y+x][x-a+y]=f[a][b]; } else { for (int a = x-r; a <= x+r; ++a) for (int b = y-r; b <= y+r; ++b) g[y-b+x][a-x+y]=f[a][b]; } for (int a = x-r; a <= x+r; ++a) for (int b = y-r; b <= y+r; ++b) f[a][b] = g[a][b]; } // end of m for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { cout << f[i][j] << " "; } cout << endl; } return 0; } 游戏模拟 游戏模拟类的题目通常会告诉你一个相对复杂一点的游戏规则,然后让你用程序将这个游戏规律实现,最终将游戏的结果输出出来。 这种题目一方面考查了读题能力,需要对游戏规则的理解清楚,另一方面则是要对游戏规则进行建模,用合适的数据结构实现游戏中的模拟。 以下是一些相关的题目。 题号描述 P1042NOIP 2003 普及组 乒乓球 P1328NOIP 2014 提高组 生活大爆炸版石头剪刀布 P1518USACO2.4 两只塔姆沃斯牛 The Tamworth Two 其它模拟题目 题号描述
昨天晚上的,但依然觉得他们是一对小“赌徒”。
Patrick Wardle (tweet): Since TCC is designed to protect these resources, it poses a challenge for malware that often tries to access them. Generally malware takes one of two approaches: exploiting TCC bugs, or obtaining explicit user permission access to the TCC protected item. The former is rather uncommon, while the latter is much more […]
Jeff Johnson: ChangeTheHeaders is a Safari extension for iOS, iPadOS, macOS, and visionOS that allows you to customize HTTP request headers such as Accept, Accept-Language, Cookie, and User-Agent. ChangeTheHeaders is available now in the App Store. […]You might ask, why didn’t I just add this feature to StopTheMadness Pro? On macOS, StopTheMadness Pro is a […]
Howard Oakley: LaunchServices compiles a large registry database of apps and their associations with and capabilities for handling different document types. Its records determine which app opens a document when you double-click on its icon in the Finder, and most prominently which are listed when you open the Open With… item in the Finder’s contextual […]
Timothy R. Butler (Hacker News, Slashdot): The latest releases — MacOS Sequoia and iOS/iPadOS 18 — are screaming for such a reset. Yes, they work and are still smoother and less glitchy than Windows 11, but they feel like software developed by people who don’t actually use that software. In the 22 years since I […]
最爱,但不是我的。
Dave Nanian (Mastodon): Since a given APFS container can hold multiple copies of the OS, Preboot and Recovery have folder structures that include UUIDs corresponding to the volume that “owns” that part of their shared volumes in the group. Inside that UUID-named folder are the files that “pair” with the system you’re trying to boot.In […]
Andrew Liszewski: Amazon has released a software update for the current-generation Colorsoft and Paperwhite that lets you double-tap on the sides or back of your Kindle to turn the page. The new feature, as spotted by The eBook Reader, is listed in the release notes for the 5.18.1 update and can be found in Settings […]
Ben Schoon (via Hacker News): The Android Open Source Project (AOSP) has left most of Google’s work in developing Android as an operating system visible to the public eye. But, starting next week, Google is moving that work behind closed doors.Google confirmed to Android Authority that “all Android development will occur within Google’s internal branches,” […]
之前超速的 case 律师帮我出庭了,结果就是罚款加上课,也算是个好结果,至少保险应该不会涨。 下周去日本。和老
Kevin Perry: It’s clear from community adoption and feedback that Codable has had a lot of success in the years since it was added to Swift 4, but that it doesn’t satisfy some important needs. One of the foremost of those needs is performance more in line with programming environments that compete with Swift. As […]
Ryan Christoffel: Wayne Ma writes today at The Information about the state of Apple TV+ as a business, analyzing where the streamer stands in terms of revenue and subscribers after five years.In the heavily-paywalled article, Ma reports that Apple’s losses on TV+ amount to over $1 billion per year. While it’s long been known that […]
Nathan Edwards (2023, via Nick Heer): It was fine until my yellow ink cartridge (allegedly) ran out, and the printer stopped printing in color. I soldiered on with the black cartridge. Until one day I tried to print a return label (in black and white!) and the printer decided it wouldn’t. Not until I replaced […]
Wikipedia: Michael Sweet, who owned Easy Software Products, started developing CUPS in 1997 and the first public betas appeared in 1999. The original design of CUPS used the Line Printer Daemon protocol (LPD), but due to limitations in LPD and vendor incompatibilities, the Internet Printing Protocol (IPP) was chosen instead. CUPS was initially called “The […]
今天chatGPT-4o的图像生成功能达到了一个新高度,你说这一张是照片,也没人会相信。
PS:在我们等待了几个月之后,国内终于有模型(DS V3-0324)能支持 AutoDev 的能力,也因此是时候发布 AutoDev 2.0 了!
站长在 YouTube 频道发布的视频
Tim Hardwick: Apple will bring lossless audio and ulta-low latency audio to AirPods Max in its upcoming iOS 18.4 software update arriving in April, according to the company.[…]Apple also said that today it is making a USB-C to 3.5mm audio cable available to buy for $39 from its online store, Apple Store app, and authorized […]
My Intel MacBook Pro died, and even though I have an M1 MacBookAir ready to replace it, it’s taken several days to get back to the point where I can run older versions of macOS for testing my apps. I had all the old versions installed in separate partitions on an external SSD. Prior to […]
Drew DeVault: Over the past few months, instead of working on our priorities at SourceHut, I have spent anywhere from 20-100% of my time in any given week mitigating hyper-aggressive LLM crawlers at scale. […] If you think these crawlers respect robots.txt then you are several assumptions of good faith removed from reality. These bots […]