LinuxDo 新帖推送
188 subscribers
254K photos
317K links
Download Telegram
标题: 黄金价格突破4950!
作者: #JuRAN
板块: #搞七捻三
编号: 1560183
帖子: https://linux.do/t/topic/1560183
时间: 2026-02-03 16:23:52
摘要:
标题: 我感觉程序员炒股的群体也挺大的,是什么让你们在亏钱的同时还一直坚持炒下去的
作者: #sug
板块: #搞七捻三
编号: 1560184
帖子: https://linux.do/t/topic/1560184
时间: 2026-02-03 16:24:11
摘要:
我感觉我在各种群上看到除了聊技术外,每天最多的话题就是炒股了,但是我从字里行间都看得出好像都是赔的多,不明白为什么还要坚持下去 (本人不炒股)
标题: 分享一个LC刷题的测试模板, 有用拿去没用给个赞
作者: #googleMail
板块: #开发调优
编号: 1560188
帖子: https://linux.do/t/topic/1560188
时间: 2026-02-03 16:24:57
摘要:
C模板
例如刷 845. 数组中的最长山脉
typedef int
Func( const int a[], size_t sizeA );


static Func *solution = NULL;


// timeComplexity: O( n * n ), spaceComplexity: O( 1 ).
static inline int
longestMountainV000( const int a[], size_t sizeA ) {
int answer = 0;

for( size_t j = 0, i = 0; i < sizeA; ++i ) {
int ascend = 0;
int descend = 0;
for( j = i; j + 1 < sizeA && a[j] < a[j + 1]; ++j ) {
++ascend;
}
for( ; j + 1 < sizeA && a[j + 1] < a[j]; ++j ) {
++descend;
}
if( 0 < ascend && 0 < descend ) {
answer = fmax( answer, ascend + descend + 1 );
}
}

return answer;
}

static inline int
longestMountainV001( const int a[], size_t sizeA ) {
int answer = 0;

for( size_t j = 0, i = 0; i < sizeA; ++i ) {
int ascend = 0;
int descend = 0;
for( j = i; j + 1 < sizeA && a[j] < a[j + 1]; ++j ) {
++ascend;
}
for( ; ++j < sizeA && a[j] < a[j - 1]; ++descend ) {}
if( 0 < ascend && 0 < descend ) {
answer = fmax( answer, ascend + descend + 1 );
}
}

return answer;
}

static inline int
longestMountainV002( const int a[], size_t sizeA ) {
int answer = 0;

for( size_t j = 0, i = 0; i < sizeA; ++i ) {
int ascend = 0;
int descend = 0;
for( j = i; ++j < sizeA && a[j - 1] < a[j]; ++ascend ) {}
for( ; j < sizeA && a[j] < a[j - 1]; ++j ) {
++descend;
}
if( 0 < ascend && 0 < descend ) {
answer = fmax( answer, ascend + descend + 1 );
}
}

return answer;
}

// timeComplexity: O( n * n ), spaceComplexity: O( 1 ).
static inline int
longestMountainV100( const int a[], size_t sizeA ) {
int answer = 0;

for( size_t left = 0, right = 0, i = 0; i < sizeA; ++i ) {
for( left = i; 0 < left && a[left - 1] < a[left]; --left ) {}
for( right = i; right + 1 < sizeA && a[right + 1] < a[right]; ++right ) {}
if( left < i && i < right ) {
answer = fmax( answer, right - left + 1 );
}
}

return answer;
}

static inline int
longestMountainV101( const int a[], size_t sizeA ) {
int answer = 0;

for( size_t start = 0, end = 0, peak = 0; peak < sizeA; ++peak ) {
for( start = peak; 0 < start && a[start - 1] < a[start]; --start ) {}
for( end = peak; end + 1 < sizeA && a[end + 1] < a[end]; ++end ) {}
start < peak && peak < end ? answer = fmax( answer, end - start + 1 ) : 0;
}

return answer;
}

// timeComplexity: O( n ), spaceComplexity: O( 1 ).
static inline int
longestMountainV200( const int a[], size_t sizeA ) {
int answer = 0;
size_t beginAscend = 0;
size_t endAscend = beginAscend;
size_t beginDescend = beginAscend;
size_t endDescend = beginDescend;

endDescend = beginDescend = endAscend = beginAscend = sizeA; // 记录升序与降序的[左闭,右开)区间.
for( size_t i = 0; i + 1 < sizeA; ++i ) {
if( a[i] <= a[i + 1] && beginAscend < endAscend && beginDescend < endDescend ) {
answer = fmax( answer, (endAscend - beginAscend) + (endDescend - beginDescend) - 1 );
endDescend = beginDescend = endAscend = beginAscend = sizeA;
}
if( a[i] == a[i + 1] ) {
endDescend = beginDescend = endAscend = beginAscend = sizeA;
}
if( a[i] < a[i + 1] ) {
if( beginAscend == endAscend ) {
beginAscend = i;
}
endAscend = i + 1 + 1;
}
if( a[i + 1] < a[i] && beginAscend < endAscend /* 存在上坡 */ ) {
if( beginDescend == endDescend ) {
beginDescend = i;
}
endDescend = i + 1 + 1;
}
}
if( beginAscend < endAscend && beginDescend < endDescend ) {
answer = fmax( answer, (endAscend - beginAscend) + (en
标题: codex 不思考了?
作者: #菲林
板块: #开发调优
编号: 1560198
帖子: https://linux.do/t/topic/1560198
时间: 2026-02-03 16:26:57
摘要:
如题,今天更新到了最新的 codex for vscode 插件之后,在侧边栏聊天,只显示“正在思考”,一会儿后就输出回复了,思维链展示直接没了,也不知道是降智了还是插件的 bug。
标题: google学生优惠绑卡问题
作者: #gsxiao
板块: #搞七捻三
编号: 1560225
帖子: https://linux.do/t/topic/1560225
时间: 2026-02-03 16:30:03
摘要:
想问下各位佬,学生优惠绑自己的safepay虚拟卡,到期会自动扣费吗
标题: 搞了一个macOS听本地音乐的软件
作者: #lueluelue
板块: #资源荟萃
编号: 1560227
帖子: https://linux.do/t/topic/1560227
时间: 2026-02-03 16:30:28
摘要:
github.com






GitHub - lueluelue2006/macOS_MusicPlayer

通过在 GitHub 上创建帐户来为 lueluelue2006/macOS_MusicPlayer 开发做出贡献。












下载:Releases · lueluelue2006/macOS_MusicPlayer · GitHub
PS:如遇到系统拦截,可删除隔离标记:
xattr -dr com.apple.quarantine /Applications/MusicPlayer.app


展示图:



内存占用还挺好:

功能
单曲循环/随机、队列上一首下一首。

静态/动态歌词显示、手动跳转(双击某一句)/自动跟随

简单音量均衡

元数据编辑



已自用3个月
标题: Epic 喜加一:原价 12 元动作游戏《NightReaper 2》免费领
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #福利羊毛
编号: 1560232
帖子: https://linux.do/t/topic/1560232
时间: 2026-02-03 16:31:20
摘要:
由独立开发者 DarkGoose4 打造的动作游戏《NightReaper 2》目前在 Epic 游戏商城开启了限时免费领取活动,本作在国区定价为 12 元,IT之家附 Epic 商店地址(https://store.epicgames.com/zh-Hant/p/nightreaper2-bc3b86)
需要注意的是,这次免费活动并非 Epic 官方常规“喜加一”,而是由开发者自己发起的免费领取活动,玩家只要在 2 月 28 日前登录 Epic 账号并完成领取,就可以永久免费入库。
Epic 喜加一:原价 12 元动作游戏《NightReaper 2》免费领 - IT之家
标题: 即将 3 级,学到不少
作者: #不器
板块: #搞七捻三
编号: 1560234
帖子: https://linux.do/t/topic/1560234
时间: 2026-02-03 16:31:40
摘要:
升级挺快的,收获

公益站 claude code 每天猛猛蹬
用ldc买了个 google pro,把工作流切换到 google
每天看有什么好玩的

心情还是不好,加班不够绩效被扣钱,打工真没意思
标题: OpenClaw 一键脚本又完善了一下 欢迎体验!
作者: #科技lion
板块: #开发调优
编号: 1560240
帖子: https://linux.do/t/topic/1560240
时间: 2026-02-03 16:33:00
摘要:
一键脚本
bash <(curl -sL kejilion.sh) app openclaw

新增功能

支持API导入兼容各类openai的key。
支持安装插件如飞书叮叮等。
支持安装技能,技能展示与选择。
支持手动编辑配置文件。

优化功能

模型切换前展示所有模型列表方便选择。
安装命令将从npm安装 更块更稳。
保活程序优化。
更新和卸载进行优化。
兼容非脚本安装的openclaw管理。

效果图
标题: 我一直以为法学硕士是个梗
作者: #温州程序员劝退师
板块: #搞七捻三
编号: 1560241
帖子: https://linux.do/t/topic/1560241
时间: 2026-02-03 16:33:13
摘要:
标题: 请教ios app的vibe coding最佳实践
作者: #Kaijun
板块: #开发调优
编号: 1560254
帖子: https://linux.do/t/topic/1560254
时间: 2026-02-03 16:35:40
摘要:
最近马上要打一个hackathon,我负责软件端的实现。本科学的是软件工程,但做过的项目都是以web居多,且那时候vibe coding的工具和生态相对没那么成熟。现在研究生转向具身智能研究,接触开发也少了很多。
目前有一台macbook air(M4+16+256),打算是开发一个ios app(微信小程序也可能考虑)。之前没有接触过ios端的开发,需要提前准备些什么东西吗(比如开发者申请等等,不太懂),并且请教在vibe coding下推荐用哪些工具/IDE,有什么好的开发workflow,很期待狠狠体验一波
标题: 纸币其实是一种匿名货币
作者: #木瓜蛋白酶Tea🎋
板块: #搞七捻三
编号: 1560260
帖子: https://linux.do/t/topic/1560260
时间: 2026-02-03 16:37:22
摘要:
突然想到的一个论点,纸币其实是一种匿名货币,而因为移动支付太方便了,这种匿名性逐渐被人忽视了,这种匿名性比加密货币可能更强?没有加密货币私钥泄露的风险,洗钱中通过地下钱庄对冲就是境内交换现金,境外交换现金,以及现金密集型的产业如饭店、酒吧、赌场等。
而电子支付普及后,各类个人信息被非法传播就会导致个人隐私信息泄露,轻则遭遇广告推销,重则遭遇电信诈骗。这种隐私性类似商用输入法与开源输入法之间的关系,开源输入法不联网、在不与他人分享用户数据的情况下,不存在隐私问题,但不够准确;而商业输入法训练大模型,同时收集用户数据训练大模型形成闭环,越来越准确,同时收集的用户信息越来越多,分享给其他第三方 SDK ,给你准确推送你想要的商品。隐私和便利还是不可兼得。
标题: 公司放假安排被狂吐槽
作者: #CrazyBABYgO
板块: #搞七捻三
编号: 1560268
帖子: https://linux.do/t/topic/1560268
时间: 2026-02-03 16:38:33
摘要:
今天公司放假安排出了,2.11-23。听着是不错但是11-14号三天是强制扣年假来的。不管你愿不愿意强制休息四天,10天年假一下打折了,同事疯狂吐槽但无力反抗,无奈啊。。。