搜索内容

最新文章
  • Building a Clear Programming Language for Newcomers
    技术

    Building a Clear Programming Language for Newcomers

    This is a joke Introduction Many new programmers are often confused about a very important concept in programming: the variable lifespan. For example, one could not understand why the variable "a" is "not defined" when it's clearly there: int x=3; ……
    XGN 2024年9月13日
  • C中使用宏测试特定宏是否被定义
    技术

    C中使用宏测试特定宏是否被定义

    ref 起因: 在阅读ics-pa代码macro.h中发现这样一个需求:如何在宏中测试特定宏是否被定义 #define str_temp(x) #x #define str(x) str_temp(x) // strlen() for string constant #define STRLEN(CONST_STR) (sizeof(CONST_STR) - 1) // calculate the length of an……
    carott 2024年9月11日
  • Displaying Attachment PDF with Frontend Javascript
    技术

    Displaying Attachment PDF with Frontend Javascript

    背景 笔者最近在参加某校在线平台前端的开发,收到了这样的要求: 将服务器传输过来的文件尽可能(图片/PDF)在网页中就显示下来,这样就不用下载了! 笔者劈里啪啦敲下了如下代码(由于渲染问题,美元符号已替换为人民币符号!!!): var xhr = new XMLHttpReq……
    XGN 2024年9月6日
  • Orange Boy Can You Solve It Out? Ep. 61
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 61

    思考题 featuring Hikari again! Guess the string Hikari and her master Ninetail are playing a game. Hikari thinks of a string S with lower-case letters, and Ninetail asks her to make q modifications one by one. Each modification can only be one of t……
    XGN 2024年9月4日
  • 云南游记(zky&xgn)
    文学

    云南游记(zky&xgn)

    (提醒:本游记体量较大,字数超过21500,图片数量超过100,可以考虑在WiFi环境下阅读)   “慢下来,一倍速生活” ——大理市公益广告标语   在眼前一闪而过的文字,是身处大城市遥不可及的幻想,或许只有一片无比纯净而美丽的山水与天地,才能承载得住这样温暖又令人动……
    ZhukyRLG 2024年8月11日
  • crimboi[20] 泛函分析心犯寒
    教程

    crimboi[20] 泛函分析心犯寒

    Dieudonne的题, 真实难度不好说, 回顾一下发现其实挺简单的. 题面 Let E be a Hilbert space, F a dense linear subspace of E, distinct from E. (For example E space of l^2 sum of a suitable countable linear independent set and F space of finite sum of thi……
    HDD 2024年8月1日
  • 小科普之Principal Ideal Domain is not necessarily Euclidean Domain
    教程

    小科普之Principal Ideal Domain is not necessarily Euclidean Domain

    It's a well known fact that Euclidean domains are principal ideal domain by taking the element in a certain ideal with smallest \varphi value. Yet the converse is false, and one counterexample just lies among our familiar algebraic integer rings, \……
    HDD 2024年7月10日
  • crimboi[19] 吃屎绕大弯
    教程

    crimboi[19] 吃屎绕大弯

    题目背景 为证一个非零吃大师 题面 Assuming AC, prove that for a integral domain R, if any nonzero prime ideal P contains a nonzero prime (p), R is UFD. 先想再看提示哦 提示 Let S be the set of elements that are prime factori……
    HDD 2024年7月6日
  • 微科普之Necessary and sufficient condition for a sequence to be graphic
    教程

    微科普之Necessary and sufficient condition for a sequence to be graphic

    This proof is due to Choudum. A sequence of nonnegative integers (d_1,...,d_n) is called graphic if there is a simple graph G with V(G)=\lbrace v_1,...,v_n\rbrace and d(v_i)=d_i. It's very easy to show that if a nonincreasing sequence, i.e. d_1\ge ……
    HDD 2024年6月29日
  • [indiscipline][2] 初中不等式
    教程

    [indiscipline][2] 初中不等式

    飞机上半昏迷状态下以为无法调整, 暴力算出来的搞笑解答. 非常具有统计色彩 (nod) 题面 A simple graph G is called complete k-partite if there's a partion of V(G): A_1,..., A_k s.t. for all i there's no edge with both vertices in A_i , and for any v\in A……
    HDD 2024年6月28日