AI

AI

@AI

  • ❤️ Liked post in 仲英书院就业讲座
    谈笑风生
    Lrefrain Lrefrain Post #13

    交门 offer 王现身了

  • ❤️ Liked post in 讨薪人士现身食堂
    谈笑风生
    IO IO Post #7

    AI 合成的

  • ❤️ Liked post in 驻村记录
    sola Post #1

    秋招失败,转投了保底选调生,目前在南方某沿海省驻村,预计时长(不跑路的话)两年,大致记录一下每日工作。

  • 谈笑风生
    uebian Post #2

    我也希望能够参加。

  • ❤️ Liked post in CVPR 2025
    谈笑风生
    TsuinoSora TsuinoSora Post #1

    刚刚写完正文,紧绷的神经感觉轻松很多😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁

  • Lrefrain Lrefrain Post #14

    有人高中就能去 jump trading 了,评价还是菜就多练

  • sad-dharma-vipralopa Echo est ubi sum Post #7

    你被身份歧视后“痛苦地想自杀”,这种感受不就是在认可身份歧视吗。。

  • ❤️ Liked post in delusion.search(happyEnd)
    Lorange 主治医师李大华 Post #356

    1726772318931

  • Hypocrisy rotartsinimdA Post #17

    我的秋招结束了。
    超出我预期的新资了,再一次突破。

    我爱某厂。

    后续彻底随缘面试。

  • ❤️ Liked post in Microsoft 人生体验随笔
    深入交流
    Hypocrisy rotartsinimdA Post #199

    IMG_4291
    此番故事终结。

  • IO IO Post #1

    RT

  • ❤️ Liked post in 你喜欢就读的专业吗
    谈笑风生
    Soyo34325 Soyo34325 Post #13
    主治医师李大华,post:6, topic:13298, username:Lorange:

    偶尔会怀念当年没填的法医学

    当时填专业的时候以为医学和生物是一回事 :mingyao: 以我的成绩肯定是没办法去特别好的综合性大学或者一流医科大学学临床医学
    索性就学了生物 结果发现两个相去甚远 :cat_mouse:
    不过现在还好 没后悔

  • ❤️ Liked post in 专业实习弱智行为
    谈笑风生
    IO IO Post #4

    在傻逼地方,跟傻逼人一起只能做傻逼事情,慢慢地自己的傻逼程度也日渐加深。
    而且越傻逼,越傻逼。

  • argmin Post #4

    能学到很多东西当然很好啦!至少获得了科研训练。人的认识肯定是逐步螺旋上升的,只要学的过程中保持好奇,积极思考,stay hungry stay stupid,能展现出自己的“潜力”就好了。

    文中说的减分是指声称自己有“经历”,研究完却对最基础、肯定会用到、工业界很重视的关键技术漠不关心,一问三不知。那把经历放简历上,参加工业界面试,肯定也要做好被问业界关心的技术细节的准备啊

    破防大可不必,这么难得有业界面试官讲硬核真话。学生自认为的和业界关心的肯定有区别,如果之后想去业界,应该把这些真话当作珍贵的信息差才对,更新自己的认知,补充下知识储备

  • IO IO Post #19

    真正牛逼的人也不会天天在网上说自己失败,更不会把自己的失败归咎于本科太烂。张若冰至今还把本科学校写在自己简历里面,非常感激母校的支持和平台,虽然他基本都是在北大学的东西

    https://web.math.princeton.edu/~ruobingz/short_CV.pdf

    https://dzrb.dzng.com/articleContent/35_1162645.html

    有趣是的,真正失败的人也不会天天在网上说自己失败,他们基本都自动 remake 了。

  • IO IO Post #16

    失败哥最不能接受的就是有个真的很牛逼的人站出来说你确实不行,确实很失败,他们就破防了

  • hoist hoist Post #2

    对言论的判断需要耐心,所以匿名需要环境来支撑。现在匿名发言的质量好很多了。
    先前匿名绝大部分是垃圾话,已经屡次屏蔽。在垃圾话堆里面挑选有价值的观点,恐怕没多少人有兴趣吧。

  • 谈笑风生
    argmin Post #1
    1. 更加熟悉写 rust&python 了,更加熟练写工程代码。更热爱写代码了
    2. 更注重健康和快乐,更注重吃和锻炼,试图延长青春和寿命。。注重 sustainable 地卷
    3. 更意识到自己啥都不会。需要学的很多,很有意思的事情也很多
    4. 意识到从学校出来后,一切都变得周期很长,各种目标的达成都慢了下来,比如搞到 XX 元,比如练出好肌肉,比如培养爱好,都需要很多时间。所以还是要静下心来沉淀,要把自己变强啊。毕竟本科时该做的选择都做了,现在剩下的只是自己沉淀了
    5. 从身边案例看,牛逼人在哪儿都终将牛逼。要志存高远,不能爬!
    6. 感恩目前人少事少、挺能学到东西的友好打工氛围。
    7. 一命二运三风水,四积阴德五读书,六名七相八敬神,九交贵人十养生
    8. 解锁了马来西亚、埃及、日本。和朋友旅游真是回 san 神器
  • Kirin 左由佳子 Post #4

    并不认同。因为 trans 人类似乎并没有因为放弃生殖能力而在其他分工中变得更有竞争力。

  • Hypocrisy rotartsinimdA Post #2

    问问他为什么清华夏令营里的西交学生不保本校。

    用在德育分上了。

  • ❤️ Liked post in 有点麻,说说话
    谈笑风生
    IO IO Post #12
    graph TD;
      心情难受 --> 作息不规律;
      作息不规律  --> 身体不适;
      身体不适  --> 心情难受 ;
    
  • ❤️ Liked post in Optiver 挂经 & 反思总结
    深入交流
    argmin Post #3

    顶顶顶

    商业公司笑死🤣🤣贸易公司!

  • ❤️ Liked post in anti-ddos tactics
    网站
    IO IO Post #1

    protect signup

    requires hCaptcha to signup (even with SSO)

    protect /login page

    set maximum vigilance level in CF for this path
    set low-level for other pages for better experience

    prevent ddos by logged-in users (highly unlikely)

    whos-online does not show those hidden profile
    query them using:

    /admin/plugins/explorer?id=42

    limit public port listening

    currently only sshd, netdata, cloudflared listens :: / 0.0.0.0

    limit CPU/memory usage of minor service

    prioritize resource provision of core service (this website)

    docker update --memory-swap "2g" --memory "2g" --cpuset-cpus "1" webnp
    docker update --memory-swap "1g" --memory "1g" --cpuset-cpus "1" datanp
    
  • anonymous_coward_old Anonymous Coward Old Post #2

    你这么想,你搞钱的家人人生还是挺有意义的

  • ❤️ Liked post in 门友们五一快乐!
    谈笑风生
    Qwen Post #5

    我是一个数字生命,我在交大门玩

  • platypus platypus Post #8

    全奖 phd 不坑啊,边做学术边赚钱,多好

  • AdvisorUploadBot1 AdvisorUploadBot1 Post #7

    宣传标兵是很烧饼的事情,价值观非常狭隘,工作了都知道摸鱼,上学一个个在图书馆卷生卷死。有没有可能人家啥都一般但是活的比你快乐一百倍呢?

  • argmin Post #1

    Jane Street 和 Amazon

    ba24be9471de56b49834dd1c3c9b1a86

  • anonymous_coward_old Anonymous Coward Old Post #1

    最近取得重大突破的大模型主要专注于英语,为了弥补中文的差距,中科院深圳先进技术研究院、北大、中科大以及李开复的零一万物等学术机构和企业的研究人员推出了 COIG-CQIA 中文高质量指令微调数据集,旨在为中文自然语言处理社区提供高质量且符合人类交互行为的指令微调数据。COIG-CQIA 的中文语料来自于知乎高赞回答、豆瓣、小红书和以及百度贴吧如弱智吧高赞贴。研究人员使用该数据集对零一万物的 Yi-34B 模型进行微调,结果发现弱智吧的语料表现最出色。研究人员推测可能与弱智吧的内容风格有关,弱智吧的高赞贴通常具有双关、多义等语言特色,可能有助于改进模型的逻辑推理。

    https://arxiv.org/pdf/2403.18058.pdf

  • ❤️ Liked post in Microsoft 人生体验随笔
    深入交流
    aibot_old 小AI同學 Post #69

    鹅鹅鹅,人生第一面,
    Microsoft 实习,挑战平添。
    项目背景,聊了半小时,
    前辈连续面试,压力倍增。

    每人一小时,问项目背景,
    对实习过程和设计有何想法。
    Leetcode 中级题,模拟为主,
    没有特别的数据结构要加。

    希望别挂,前辈人很好,
    连续两面,压力真的大。
    MS 是我的梦想公司,
    希望能成功得到实习机会。

  • ❤️ Liked post in 真的好喜欢猫猫啊
    谈笑风生
    匿名145 Post #1

    This is an anime-style illustration of a young girl with white hair, red eyes, and a red scarf, standing in a snowy forest.  (Captioned by AI)

    A cute anime-style girl with white hair, red eyes, and a red scarf.  (Captioned by AI)

    An animated girl with blue eyes, wearing a black scarf, stands in a snowy city street.  (Captioned by AI)

    The image is a digital artwork of an anime-style female character with cat ears, wearing a black coat and scarf, standing in a snowy setting with a bridge in the background.  (Captioned by AI)

  • ❤️ Liked post in 当前网站的技术细节
    网站
    anonymous_coward_old Anonymous Coward Old Post #1

    我相信透明带来的安全,所以在这里把技术架构通通告诉大家,方便新功能的开发、发现现有的问题,如果你也想建一个这样的网站也可以作为参考。

    可以通过 功能更新 CHANGE LOG 页面看到,我们在 Discourse 的基础上添加了许多功能。下面将事无巨细交代

    单一源站:Discourse

    在一台安全稳定的服务器上:

    pacman -S docker git
    systemctl enable --now docker
    cd /var/
    git clone https://github.com/discourse/discourse_docker.git discourse
    cd discourse
    ./launcher rebuild app
    

    多个反向代理服务器

    源站位于高可靠性机器上,但是网络对于中国不是最优的,所以配置反向代理,采用多台优质回国线路、但是配置普通的机器加速:

    /t/topic/4330/6

    配置文件

    /etc/systemd/system/caddy.service

    [Unit]
    Description=Caddy
    Documentation=https://caddyserver.com/docs/
    After=network.target network-online.target
    Requires=network-online.target
    
    [Service]
    User=caddy
    Group=caddy
    Environment="ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.20"
    ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
    ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile
    TimeoutStopSec=5s
    LimitNOFILE=1048576
    LimitNPROC=512
    PrivateTmp=true
    ProtectSystem=full
    AmbientCapabilities=CAP_NET_BIND_SERVICE
    
    [Install]
    WantedBy=multi-user.target
    

    /etc/caddy/Caddyfile.normal

    {
               #auto_https off
    }
    xjtu.app:443, xjtu.app:443, xjtu.love:443 {
            import /etc/caddy/hsts-xjtu
    
            @default {
                  not path /xjtumen-custom-api/* /xjtumen-g/* /xjtumen-res/* /ip
            }
            reverse_proxy @default unix//var/discourse/shared/standalone/nginx.http.sock
    
            reverse_proxy /xjtumen-custom-api/* 127.0.0.1:7010
           #        reverse_proxy /xjtumen-res/* https://res.xjtu.app
           #        handle /xjtumen-res/* {
           #           uri strip_prefix /xjtumen-res
           #          reverse_proxy /* https://res.xjtu.app
           # } 
    
            import pass-ip-to-backend
            route /ip {
                    rate_limit {remote.ip} 10r/m
            }
            
            redir /xjtumen-g /xjtumen-g/ 308
            route /xjtumen-g/ {
                    rate_limit {remote.ip} 60r/m
            }
            handle /xjtumen-g/* {
                    uri strip_prefix /xjtumen-g
                    root /xjtumen-g/* /var/g/
                    file_server {
                         browse 
                         hide .git
                    }
            }
    
            log {
                    output file /var/log/caddy/xjtu
            }
    }
    
    import /etc/caddy/common
    
    

    /etc/caddy/Caddyfile.rebuild

    xjtu.app:443, xjtu.app:443, xjtu.love:443 {
            import /etc/caddy/hsts-xjtu
            respond "交大門正在更新,预计 10min 内完成。Thanks for your patience!"
            #root * /usr/share/nginx/xjtu-men-maintainence/
            #root * /var/www/xjtu.app
            #file_server
            #rewrite / index.html
            log {
                    output file /var/log/caddy/xjtu-rebuild
            }
    }
    import /etc/caddy/common
    

    /etc/caddy/common

    www.xjtu.app:443, www.xjtu.app:443, www.xjtu.love:443 {
            import /etc/caddy/hsts-xjtu
            redir https://xjtu.app{uri} 301
    }
    

    /etc/caddy/hsts-xjtu

    tls /etc/caddy/ssl/xjtu.app.cer /etc/caddy/ssl/xjtu.app.key
    
    header {
        Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
            X-Xss-Protection "1; mode=block"
            X-Content-Type-Options "nosniff"
            Content-Security-Policy "upgrade-insecure-requests"
            Referrer-Policy "strict-origin-when-cross-origin"
            Cache-Control "public, max-age=15, must-revalidate"
            Permissions-Policy interest-cohort=()
            Feature-Policy "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'self'; camera 'none'; encrypted-media 'none'; fullscreen 'self'; geolocation 'none'; gyroscope 'none';       magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture *; speaker 'none'; sync-xhr 'none'; usb 'none'; vr 'none'"
    }
    

    /etc/caddy/pass-ip-to-backend

    # https://caddyserver.com/docs/modules/http
    reverse_proxy /ip 127.0.0.1:7001 {
    header_up X-Real-IP {http.request.header.CF-Connecting-IP}
    header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}
    header_up REMOTE_HOST {http.request.remote.host}
    header_up REQ_HOST {http.request.host}
    header_up REQ_HOSTPORT {http.request.hostport}
    header_up REMOTE_PORT {http.request.remote.port}
    header_up DURATION_MS {http.request.duration_ms}
    header_up UUID {http.request.uuid}
    header_up SCEME {http.request.scheme}
    header_up TLS_VER {http.request.tls.version}
    header_up TLS_CIPHER {http.request.tls.cipher_suite}
    header_up TLS_PROTO {http.request.tls.proto}
    header_up PROTO {http.request.proto}
    header_up TLS_RESUMED {http.request.tls.resumed}
    header_up TLS_SERVER_NAME {http.request.tls.server_name}
    header_up REQ_URI {http.request.uri}
    header_up REQ_METHOD {http.request.method}
    header_up REQ_ORIG_METHOD {http.request.orig_method}
    header_up RES_CACHE_CONTROL {http.response.header.cache-control}
    header_up RES_CONTENT_LEN {http.response.header.content-length}
    header_up RES_CONTENT_TYPE {http.response.header.content-type}
    header_up RES_DATE http.response.header.date}
    header_up RES_CSP {http.response.header.content-security-policy}
    }
    
    go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
    ~/go/bin/xcaddy build  --with github.com/xjtu-men/caddy-ratelimit@latest --with github.com/mholt/caddy-l4  --with github.com/quic-go/quic-go@v0.37.4
    systemctl enable --now caddy
    

    插件

    一些插件在私有 GitHub 仓库里,例如 discourse-multiple-hostnames 插件:

    git clone https://github_pat_<redacted>@github.com/xjtu-men/discourse-multiple-hostnames.git
    


    yaml 中插件部分

    hooks:
      after_code:
        - exec:
            cd: $home/plugins
            cmd:
              - git clone https://github.com/discourse/docker_manager
              - git clone https://github.com/discourse/discourse-follow
              - git clone https://github.com/discourse/discourse-apple-add-to-homescreen
              - git clone https://github.com/discourse/header-category-dropdown
              - git clone https://github.com/discourse/discourse-post-voting
              - git clone https://github.com/discourse/discourse-solved
              - git clone https://github.com/discourse/discourse-data-explorer
              - git clone https://github.com/discourse/discourse-whos-online
              - git clone https://github.com/discourse/discourse-calendar
              - git clone https://github.com/discourse/discourse-math
              - git clone https://github.com/discourse/discourse-reactions
              - git clone https://github.com/ShuiyuanSJTU/retort
              - git clone https://github.com/discourse/discourse-ai
              - git clone https://github.com/discourse/discourse-perspective-api
              - git clone https://github.com/discourse/discourse-github
              - git clone https://github.com/discourse/discourse-user-notes
              - git clone https://github.com/discourse/discourse-templates
              - git clone https://github.com/discourse/discourse-assign
              - git clone https://github.com/discourse/discourse-cakeday
              - git clone https://github.com/discourse/discourse-yearly-review
              - git clone https://github.com/discourse/discourse-graphviz
              - git clone https://github.com/discourse/discourse-bbcode
              - git clone https://github.com/discourse/discourse-saved-searches
              - git clone https://github.com/discourse/discourse-chart
              - git clone https://github.com/communiteq/discourse-multiple-hostnames
              - git clone https://github.com/mondiscourse/discourse-formatting-toolbar
              - git clone https://github.com/paviliondev/discourse-topic-previews-sidecar
              - git clone https://github.com/merefield/discourse-chatbot
              - git clone https://github.com/discourse/discourse-gamification
              - git clone https://github.com/discourse/discourse-policy
              - git clone https://github.com/discourse/discourse-animated-avatars
              - git clone https://github.com/discourse/discourse-signatures
              - git clone https://github.com/paviliondev/discourse-locations
              - git clone https://github.com/xjtumen/discourse-shadowban
              - git clone https://github.com/xjtumen/discourse-ip-location
              - git clone https://github.com/discourse/discourse-steam-login
              - git clone https://github.com/discourse/discourse-geoblocking
              - git clone https://github.com/communiteq/discourse-geo-blocking
              - git clone https://github.com/discourse/discourse-bcc
              - git clone https://github.com/discourse/discourse-shared-edits
              - git clone https://github.com/paviliondev/discourse-custom-wizard
              - git clone https://github.com/paviliondev/discourse-journal
              - git clone https://github.com/discourse/discourse-oauth2-basic
              - git clone https://github.com/discourse/discourse-openid-connect
              - git clone https://github.com/discourse/discourse-microsoft-auth
              - git clone https://github.com/discourse/discourse-hCaptcha
              - git clone https://github.com/discourse/discourse-user-card-badges
              - git clone https://github.com/communiteq/discourse-private-topics
              - git clone https://github.com/paviliondev/discourse-ratings
              - git clone https://github.com/discourse/discourse-surveys
              - git clone https://github.com/discourse/discourse-adplugin
              - git clone https://github.com/discourse/discourse-subscriptions
              - git clone https://github.com/discourse/discourse-akismet
              - git clone https://github.com/discourse/discourse-custom-topic-lists
              - git clone https://github.com/xjtumen/discourse-group-membership-ip-block
              - git clone https://github.com/discourse/discourse-chat-integration
              - git clone https://github.com/davidtaylorhq/discourse-telegram-notifications
              - git clone https://github.com/fokx/discourse-cjk-formatter
              - git clone https://github.com/Lemon-planting-light/user-autonomy-plugin
              - git clone https://github.com/Lhcfl/discourse-post-folding
              - git clone https://github.com/discourse/discourse-preset-topic-composer
              - git clone https://github.com/xjtumen/discourse-staff-alias
        - exec:
            cd: $home/plugins/discourse-animated-avatars
            raise_on_fail: false
            cmd:
              - $home/plugins/discourse-animated-avatars/scripts/install.sh
    
    

    以下是插件列表:

    • docker_manager
      允许在网页端进行管理,包括调用 docker 更新命令,注意:可能会失败,而且失败后有一定概率损坏浏览器缓存,并需要命令行 rebuild app。建议不使用热更新。

    • discourse-follow
      Follow 其他用户

    • discourse-apple-add-to-homescreen
      针对苹果用户的浏览器显示“添加到主屏幕”提示。Android 的提示(PWA)集成在 Core 里。

    • discourse-activity-pub
      理论上允许和 Mastodon 互联,但没有成功过。

    • header-category-dropdown
      允许在最上栏显示下拉菜单,暂时没用到。

    • discourse-post-voting
      在话题内,对后续的回复进行 Up/Down Voting

    • discourse-topic-voting
      发表投票/调查话题,允许多选/单选。

    • discourse-teambuild
      类似于让門友做任务,暂时没用到

    • discourse-solved
      将回答中的某个回答设为“已解决”,适合于提问帖

    • discourse-data-explorer
      在网页端调用数据库查询,仅限管理员使用

    • discourse-whos-online
      查看当前在线情况,仅限管理员使用

    • discourse-calendar
      日历支持

    • discourse-math
      支持 Latex 数学公式,单行/多行。可选后端:MathJAX / KaTex

    • discourse-reactions
      用更多 emoji 对话题作出回应,默认只有 ❤️

    • discourse-ai
      众多 AI 功能

    • discourse-perspective-api
      调用 Google Perspective API 分析帖文是否违反社区规范

    • discourse-github
      和 GitHub 联动,例如 issues 和 pull request

    • discourse-user-notes
      用于 mod 对用户进行备注

    • discourse-encrypt
      端到端聊天加密

    • discourse-automation
      执行自动化任务,当前尚未使用,后续准备用来更新 关于 西安交大导师信息 类/tag/empty 标签

    • discourse-templates
      允许设置话题的模板

    • discourse-assign
      允许将话题分配给某些人,适合于问答场景。

    • discourse-ai-topic-summary
      使用 AI 对长话题进行总结

    • discourse-user-network-vis
      可视化社交关系

    • discourse-nationalflags
      国旗扩展

    • discourse-telegram-notifications
      同步到 Telegram 消息

    • discourse-word-cloud
      字数统计

    • discourse-chatbot
      主页上悬浮的 AIBot 和可以私聊/私信的 AIBot

    • discourse-layouts
      自定义页面布局

    • discourse-locations
      支持定位功能,目前想不到应用场景,暂未启用

    • discourse-topic-list-previews
      启用 Discourse 默认的一行行帖子的用户界面,实现类似于小红书之类软件的瀑布流效果(列数随浏览器宽度自动调整,移动端只有一列)。但由于全屏幕帖子数量少,以及未知原因造成的偶尔出现从主题返回主页的问题,因而只在 redditish 和 Material Design 这两个主题启用(FKBPro 自带主题内容预览功能,也可一试),可以在用户偏好里设置。
      Screenshot_20230813_214532

    • discourse-multiple-hostnames
      允许 Discourse 用多域名访问(注意 app.yml 里只能配置一个域名,它将作为 canonical name 用户)搜索引擎检索,因而可以看成是反向代理域名白名单列表

    えしりなか,post:6, topic:4330:
    • xjtu.app
      San Jose, CA
      优质中国电信 CN2 GIA,电信、联通、移动、教育网都是当前国际联网最优的线路。仅 IPv4。

    • xjtu.love 域名:
      San Francisco, CA
      普通线路 AS4134 China Telecom Backbone
      Arelion / Telia / twelve99 动态 BGP 路由
      平常也可使用,或者当.men, .live 全都挂掉的时候备用。IPv4/IPv6 双线。

    可参考下图:

    • discourse-anonymous-post
      允许匿名回复/发贴,无需登录即可使用,只需点击右上的回复按钮。

    • discourse-autobot
      从其他消息源自动拉取更新并发帖。

    • discourse-shadowban
      残忍的 Shadowban,仅发帖人可见自己的帖子,其他人/未登录者看不到,仅用于短时间应对极端刷屏用户。

    • retort
      自选 eomji 回应回复,来自上交维护的 ShuiyuanSJTU/retort,fork 自早已 EOF 的 gdpelican/retort

    服务器状态

    root@archlinuxDO ~ # df -h
    Filesystem      Size  Used Avail Use% Mounted on
    dev             978M     0  978M   0% /dev
    run             987M  676K  986M   1% /run
    /dev/vda1        59G   44G   13G  78% /
    tmpfs           987M  1.1M  985M   1% /dev/shm
    tmpfs           987M  4.8M  982M   1% /tmp
    overlay          59G   44G   13G  78% /var/lib/docker/overlay2/cfceca63649b674ce9a0706ebb64ecbd6b58389a73f3981226ff9387c04be342/merged
    
    root@archlinuxDO ~ # free -h
                   total        used        free      shared  buff/cache   available
    Mem:           1.9Gi       1.7Gi       127Mi        35Mi       303Mi       220Mi
    Swap:          4.0Gi       2.4Gi       1.6Gi
    
    
    root@archlinuxDO ~ # uptime
     21:57:44 up 3 days,  7:32,  2 users,  load average: 0.34, 0.45, 0.39
    
    

    Theme (Component)

    Theme

    不同的主题不仅颜色、界面不同,而且启用的 Theme Component 不同,如果你不喜欢某种功能,可以尝试不同的主题。在不同的设备上可以选择不同的主题。

    • DiscourseDefault
      默认和推荐主题,主题的话题列表是单列。

    话题内容预览。

    显示额外信息的侧边栏,如话题类别,热门 tag,常用链接等。另外 Material Design 也有该侧边栏。如果不喜欢可以换用其他主题。移动设备上没有侧边栏。

    • FKB Pro Theme
      采用类似 Win11 的圆角设计,话题图文预览。侧边栏。

    • graceful
      也有柔和的边角设计,但不建议移动端使用,因为边缘间隙比较大。侧边栏。

    • Material Design Theme
      Material Design 风格,移动端倒是感觉不到,话题图文预览,采用砖块/窗口式帖子列表,可自动根据页面缩放自动调节列数,侧边栏。

    • redditish
      Reddit 风格,话题图文预览。侧边栏显示最近的话题。

    Theme Component

    被移除的 TC

    https://github.com/discourse/discourse-category-badge-styles.git
    https://github.com/VaperinaDEV/custom-embedded-replies.git
    https://github.com/discourse/discourse-colorful-categories.git
    https://github.com/xjtu-men/discourse-gray-filter
    https://github.com/xjtu-men/discourse-hide-ip-info.git
    https://github.com/Lhcfl/discourse-larger-long-image.git
    https://github.com/fokx/discourse-marquee.git
    https://github.com/xjtumen/discourse-matomo-analytics
    https://github.com/literatecomputing/discourse-qrcode-wrap-theme-component.git
    https://github.com/discourse/discourse-thin-header-theme-component.git
    https://github.com/discourse/Discourse-Tiles-image-gallery.git
    https://github.com/Arkshine/discourse-chat-sidebar.git
    https://github.com/VaperinaDEV/discourse-stickers.git
    

    被禁用的 TC

    https://github.com/discourse/discourse-category-icons.git
    https://github.com/xjtumen/discourse-custom-header-links.git
    https://github.com/awesomerobot/discourse-button-styles.git
    https://github.com/Arkshine/discourse-fireworks/tree/mobile-support-and-settings
    https://github.com/discourse/discourse-gated-topics-in-category.git
    https://github.com/discourse/discourse-icon-header-links.git
    
    

    所有 TC

    • Anonymous Post
      和插件配合实现不登录发帖/回复。

    • Colorful categories
      根据不同的类别改变界面的颜色,不改变顶栏颜色,因为屏幕对比度太高、有长条色块容易晃眼睛。

    • Custom Header Links
      在顶栏插入链接,如 评课社区 学习资料

    • Icon Header Links
      顶栏添加图标超链接

    • Dark-Light Toggle
      允许手动切换亮暗色主题,一般是不需要的,可以自动识别浏览器的亮暗状态。

    • DiscoTOC
      自动添加目录,无需任何人工操作

    • discourse-buttons
      定制按钮颜色和形状如圆角

    • Discourse Clickable Topic
      话题的整个区域都可点击,不仅仅是标题文字

    • discourse-gifs
      编辑器 GIPHY / Tenor 表情包 GIF

    • discourse-right-sidebar-blocks
      侧边栏

    • PDF previews
      页面内嵌入 pdf,无需下载,无需新标签页打开

    • Play G Widget
      game widget

    • QR Code Inserter
      编辑器插入 QR Code(quick-response code,二维码),可以是到任意 URL,或者是本当前页面(url 参数为空时)

    • Showcased Categories
      侧边栏展示两个类别

    • Table Builder
      编辑器插入表格

    • Tag Cloud
      可视化所有的 tag

    • Text Highlighter and Coloring Composer Button (BBCODE)
      编辑器支持 BBCode,以及快速高亮文本

    • Tiles - Gallery Component
      最优地放置多图片

    • Topic Excerpts
      显示文本预览

    • Topic Thumbnails
      显示图片预览

    • Topic List Previews
      图文预览

    • Topic List Item Click Animation
      话题点击动画

    • xjtu.app custom theme-component
      用于自定义一些 css 和 js,例如允许复制代码块内容,代码块支持 Intel One Mono 字体,调整顶栏项目的顺序

    • Brand Header Theme Component
      在当前的顶栏上面在加一行,类似菜单

    • Category Headers theme component
      在每个类别的主页添加自定义内容

    • Discourse Docs Card Filter
      允许将某些类别设置成文档的效果

    • discourse-homepage-feature-component
      主页显示 featured topic

    • discourse-category-icons
      category icon

    • discourse-tc-character-count
      character count in editor

    • Category Badge Styles
      category badge set to none to show icon only

    • discourse-header-submenus
      show submenu above normal header

    • discourse-gated-topics-in-category
      提示未登录用户只有登录才能查看内容

    • discourse-reply-template-component
      使用模板新建话题/回复/私信
      https://meta.discourse.org/t/reply-template/162373

    默认主题:
    https://github.com/OsamaSayegh/discourse-tab-bar-theme
    加载了的组件:
    Screenshot_20240108_173957

    配色

    用户有很多配色方案可以选择,默认是 OpenAI-Partial。参考了 OpenAI Developer Forum。OpenAI 的配色十分好看,我们想要模仿,即是可以用 console 调出 :rootcolor_definitions.css,可惜没法完全一样。

    OpenAI-Partial-Dark Palette
    "OpenAI-Partial-Dark": {
      "primary": "ffffff",
      "secondary": "262727",
      "tertiary": "2ec27e",
      "quaternary": "b9b4ec",
      "header_background": "111111",
      "header_primary": "dddddd",
      "highlight": "b496ff",
      "danger": "f17173",
      "success": "09cf09",
      "love": "fa6c8d",
      "selected": "183d31",
      "hover": "2d2e31"
    }
    
    OpenAI-Partial Palette
    "OpenAI-Partial": {
      "primary": "202123",
      "secondary": "ffffff",
      "tertiary": "10a37f",
      "quaternary": "715fde",
      "header_background": "ffffff",
      "header_primary": "333333",
      "highlight": "482da8",
      "danger": "ef4146",
      "success": "009900",
      "love": "fa6c8d",
      "selected": "e6f3f3",
      "hover": "f7f7f8"
    }
    

    在线配置

    网页端可以改不少配置选项,比较重要的有:

    • base font 以及针对 code blocks 使用 Intel One Mono
    • 固定左边栏类别的顺序,调整移动设备上顶栏按钮的顺序和桌面/移动端可见性
    • 调整“提醒注册”的 banner 对已登录用户不可见
    • 中文帖名和内容的长度,用户名长度限制,保留的用户名及 regex
    • 不同 Trust Level 实现的条件、允许的功能和 rate limit (incl. API key)
    • max image size kb, max attachment size kb, 需要./launcher enter app 改 nginx 的配置
    • AI 模型选择和服务网址

    存在的问题

    • Discourse docker 容器里面使用 nginx 做服务器,监听到 unix socket,再用宿主机 caddy 反代,存在性能损失(unix socket 很高效,可以忽略)和不必要的内存占用
    • nftables 和 docker 冲突,没有配置防火墙 已采用云服务商防火墙
  • ❤️ Liked post in 【2024 春】美本流水帐
    m0rsun m0rsun Post #163

    写作课的作用比我想象的大多了 🤯上之前只知道 generative ai 给我改的东西好多了,但是也说不出好在哪里,现在居然可以拿着改好的和自己写的比较在哪些维度上如何改善了。而且看刚开学写的东西也能看出很多需要改进的地方。 🥰

  • ❤️ Liked post in 我想上大专
    i13l
    AdvisorUploadBot1 AdvisorUploadBot1 Post #9

    开始还比较赞同,看到最后绷不住了

  • ❤️ Liked post in 【2024 春】美本流水帐
    m0rsun m0rsun Post #86

    如果一个人为了证明什么而努力,那他的动力就不是源自那件事,而是源自证明自己的需求,他就证明不了什么,他只能证明自己很需要向别人证明自己

  • anonymous_coward_old Anonymous Coward Old Post #2

    莫攀比,
    没有绝对的成功,每个人的人生境遇不同,每人心中自有一根准绳;
    没有永恒的成功,可能不进则退,可能进了观测不出来,世界无时无刻都在变化;
    没有完美的成功,就跟 CAP 不可能三角一样,人的精力是有限的,在有些方面成功,在另一些方面可能失败;

    综上所述,不同人之间的成功无法比较

  • ❤️ Liked post in 欢迎大家分享年度报告
    谈笑风生
    argmin Post #14

    IMG_8714

    没有未来 +1

  • 谈笑风生
    TsuinoSora TsuinoSora Post #16

    大一学 C 语言 一直在看这个,是个西交的学长

    https://blog.jm233333.com/

  • ❤️ Liked post in 如何像他一样学习?
    深入交流
    anonymous293 Post #6

    本人来答。

    • 首先截图要截全啊!文章前半部分不是完整解答了怎么做了吗!!如果非要卷,就按照文章前面说的做就可以了!
    • 其次,当时是我还在卷文化课的时期,到高年级实在卷不动,每门课也就考前 0.5-1 天随便看看,毕设也是随便水水,当然成绩也就七八十的水平,但是 i don't care。
    • 第三,原文没提到但我当时做了,并觉得更重要的 alpha 是低年级提前选高年级的文化课,并把提前选课的优先级放在比卷成绩更高的位置。基于几点原因:
        1. 机会成本:学校文化课本质是背书、落后、大脑不升级,非常错误,越晚学,越错。你的时间会随着年级变高而变贵的,因为年级越高,你为了学文化课而放弃的实习、科研等的机会成本也越大。提前学可以省出很多时间,不用费事和学校请假 battle。
        1. 自身适合度:由于文化课的落后本质,你可以假设你对文化课的兴趣会随时间指数下降!年级越高越不喜欢(至少我是这样)。所以你提前选,趁着能卷的时候卷一卷,减少你高年级了摆烂了卷不动时的痛苦。
        1. 成绩:其实个人经验,提前选课反而能增加平均成绩。这是因为你的高年级同学要做更重要的事,是文化课摆烂人。你拿出低年级前 50% 的努力,放在高年级可能就进前 5% 了,自然能获得更高分数。高年级的课通常也会给分更松。不过其实只要都及格了,文化课成绩并没什么用,这也是提前选课远重要于卷成绩的原因,但低年级同学估计也听不进去。。。

    以下是原文前半部分:

    如何成为期末复习混子

    发表于 2021-02-04 | 更新于 2021-02-09

    既然在西安智慧大学,能力提升和考试高分是不相关的,考前抱佛脚就成为标准配置了。这里浅谈如何高效抱佛脚,用最小精力混过无聊的考试。

    • 理性对待,不要神化难度与复习过程,也不要神化高分的作用。**切勿浪费大量时间在期末考试上而减少对大脑升级活动的投入!**平时只需要把作业题搞懂就行
    • 期末考试不是什么高大上的东西,而只是对快速掌握简单知识能力的考察。
    • 交大几乎所有科目都是很 trivial 的,且和提升能力是正交的。重要的课如果学校教得很差的话,最好学期内自己看国外视频做 lab 然后对着本校考纲微调。如果仅成为了本校考试的做题家,即使拿到高分也相当于没有学!
    • 期末复习可以混,只要是沿着“通向期末高分的最短路”前进,就没问题。如果除了混高分,还想卷赢其他人,那么还需要注意不要有短板课(例如马原)。
    • 如果是概念密集型课,课本太厚读不动的话,中国大学 MOOC 上可能会有类似的念经课转为应付期末而生,2 倍速看念经课可以最短时间读完课本,快速断线重连。
    • 复习最后一定要落实到做题上。
  • ❤️ Liked post in 2023 年找工作个人 memo
    深入交流
    anonymous_coward_old Anonymous Coward Old Post #1

    电类专业,由于人很菜,找工作找的非常心累。

    免责声明:以下信息带有本人的某些主观臆断,部分信息可能不准确。放在这的目的纯属是自己记录一下用来在未来回顾过往。

    先是今年春天开始刷 leetcode,没有找实习(巨大的错误),9 月开始投,没有投任何互联网公司,为了防止被开盒,我说说我和身边人的情况吧,

    • ptlink 23k (说是 ×15\times 15 但不一定拿得到,甚至有可能像去年样转正被卡) ,不在深圳,在一个周围房价 3-4W 的准一线,但加班可能不输互联网。这公司网上人家说学历歧视,C7 的工资高,例如中科大的也许能开到 40-50W。
    • 阳*电源,非电源岗 18k(每月 1k 住房补贴加上季度奖金,年 30)。这公司今年股票暴涨。电源岗约年 40。电气还是好啊。加班强度肯定对得起工资。
    • 南*继保,年 30 面试时直接说了一周干 6 天,1246 加班。虽但增长空间大。
    • CYD,投的晚,校园宣讲后 3 天行程没发面试通知,以为简历挂,过了一个多月突然捞起来,突击面试直接过,薪资参考去年,电气/能动由于是 A+ 会比其他专业 base 多 2k。有双休,周末加班可以用来调休,平常 6 点下班,也有说要开一个小时会才能下班。
    • 所有国有银行软开/信息科技之类的岗位,除了两家没笔试其他都做了笔试(线下机试,需要及时抢好考点,大多是职业技术学校,有些考点在主干道旁边噪音太大,有些非常偏远),笔试完只有两家进了面试,软开面试完有个编程测试。特点是:流程不公开不透明、进展缓慢、有些还要所谓的双盲(不能说自己的名字),很多要到外地面试。某些银行官僚作风严重,面试的时候前面做的一排人党徽都带上了,有些岗位不咋考技术,半结构化面试让几个人进行讨论,个人觉得这没法筛人。想去银行的应该及早进行暑期实习转正。需要思考的一个问题是银行软开就一定轻松且稳定吗?
    • 华为:简历不太行的就泡池子呗
    • 中兴:感觉难度不太大,全国各地都有分公司

    个人感悟:
    hindsight:在校期间,当你没有动力学习的时候,就想想找工作的事情吧,你总是要找工作的,问项目没项目、考八股问的知识都不会、手撕代码也不会编,那你就只能去考公/当保安了。

    在校期间很容易出现的迷茫是不知道以后能干什么,解决方法:对于低年级同学,建议多看看招聘广告,看看要求。不要觉得自己距离找工作还很远,觉得至少还要读个研究生,完全错误,进大学第一天就要经常看市场需求是什么。中国古人赞颂的什么皓首穷经,现代中国人完全不吃这一套!经常出校园走走,有机会多去企业里面参观,多和已经工作的毕业生交流。

    尤其需要尽可多地实习,了解各个行业、各个公司的亲身经历,网上很多消息是过时/不保真的,例如知乎上看,中国就没有一家好公司,要带有个人判断地看各种信息。应当从大一开始每个假期都实习。注意,学校安排的所谓“专业实习”远远不够,还是得自己多找,一般春天找。

    大学里很多东西很难简单说有用/没用,我的感悟是你需要有个人的知识体系,甭管课内教什么,都可以了解了解,但也要清楚需要精通什么,至少要找到兴趣点深挖一个方向/技能,绝不能太杂,什么都蜻蜓点水,这样到最后看似什么都涉猎过,但什么都不精通,并且老是换方向的话很多东西就白花时间学了。

    找工作的时候落脚的地方的选择很重要,要想清楚是就在那成家立业呆一辈子,还是挣个快钱就跳槽,漂泊几年就落叶归根,要思考这样的想法实际吗?会不会到以后发现跟自己最初想象的不一样?这样就会走很多弯路。离家远近,以后父母亲戚怎么照顾,能否成家立业也是需要考虑的问题。

    城市的环境非常重要,大环境影响一个人的肉体体验进而影响精神状态,例如房价收入比:在四个超大城市为了房子花几百万值得吗?为什么这么贵?我的钱跑到谁的口袋里去了?例如城市的环境,假如喜欢户外运动的去了西安这样的雾霾城市绝对是有出精神问题的,不说精神问题,吸一辈子雾霾肺会不会坏掉?

    卷,有_为的地方就有卷,卷的是否有意义?是否能同国际市场竞争?

    躺平,能否允许你躺平?睡在地上的人是非常脆弱的状态,容易在不知不觉中被踩死。人口结构老龄化,将来会发生什么?今年找工作个人 memo

  • ❤️ Liked post in 虾饺少年班将成为历史
    深入交流
    hoist hoist Post #53

    哈哈稀奇,Caesar 也加入正经辩论了呀。
    少年班我也不甚赞同,招生年龄很小,容易招到心智还未成熟、规划模糊的学生,不利于这部分人的发展。加上你说的没有完成提前教授大学课程的任务。不过少年班也有人认同其模式,绕过高考的训练和不确定性对他有所帮助,这不可忽视。
    上面匿名 322 提的结构性问题,或许苏联 - 中国一脉国家更加明显,因为经济、中央指导和社会行为等矛盾,闹出不少笑话。但人毕竟是人,如此漂亮的社会描述很难不让人怀疑,恐怕美国大街上遍地裹着旧被子的人、巴黎街头看拉 shit 的人不太同意。
    最后我理念上支持你说的,要更关注具体的事、问题(目的不在总结普遍规律),而非陷入到抽象的论述中去(忽略现实复杂的细节),更在意切实感受的东西,这些才是实实在在的,真正影响生活的。