最近在看这个,由于原项目网页域名不太好记,就转载重新记录一下。
这里主要记录一些基础内容。
I’ve been reading this recently. Since the domain of the original project’s website is not easy to remember, I’m reposting and re-recording it here.
This mainly records some basic content.
最近在看这个,由于原项目网页域名不太好记,就转载重新记录一下。
这里主要记录一些基础内容。
I’ve been reading this recently. Since the domain of the original project’s website is not easy to remember, I’m reposting and re-recording it here.
This mainly records some basic content.
emm… 怎么说呢,日常使用电脑你肯定不需要自动登录校园网,但是在某些特殊情况下,如果你的主机与互联网断开了连接,而你又无法在现场操作主机登录校园网,那通常意味着生产力的下降,科研进度的延误等等后果…
前两周由于疫情原因学校关闭了实验室,志成哥在寝室用笔记本登录了一下校园网,就挤掉了实验室的服务器网络,导致无法使用向日葵进行远程连接。只能选择挨门卫大爷一顿骂然后去实验室重新登录校园网。如果当时志成哥的服务器上运行了自动登录校园网的定时任务,就可以免于这一顿挨骂了😂。
试想一下,如果寒假在家期间想要使用实验室的主机进行工作,但是却因为学校的网络中心抽风进行升级维护,导致主机与互联网断开连接,那可就不是挨一顿骂就能解决的了。
寒假即将到来,为了避免上述尴尬局面的发生,故提前完成这一需求。
Emm… how to put it? For everyday computer use, you certainly don’t need auto-login to the campus network. But in certain special situations, if your host loses its connection to the Internet and you can’t be physically present to log the host in to the campus network, it usually means a drop in productivity, delays in research progress, and other such consequences…
Two weeks ago, the school closed the lab because of the pandemic. Brother Zhicheng logged in to the campus network with his laptop in the dorm, which kicked the lab server off the network and made it impossible to remote-connect via Sunflower (向日葵). The only option was to take a scolding from the security guard and go to the lab to log the campus network back in. If Brother Zhicheng’s server had been running a scheduled auto-login task at the time, he would have been spared that scolding😂.
Imagine that during the winter break you want to use the lab’s host to work from home, but the school’s network center has a glitch during an upgrade or maintenance, cutting the host off from the Internet. That would not be solved by just getting scolded.
Winter break is coming. To avoid the embarrassing situation above, I’m completing this requirement in advance.
室友:校园网的收费标准是每月免费使用 8GB 流量,超出 8GB 起每 GB 流量 1 块钱,超过 38GB 后免费使用。
我:那就是…一个月 30 块钱呗。
室友:对,可以这么理解。
Roommate: The campus network gives you 8GB of free traffic per month. Beyond 8GB, each GB costs 1 yuan, and it becomes free again after 38GB.
Me: So… that’s 30 yuan a month then.
Roommate: Yes, you can think of it that way.

这是我研一刚来时和室友的对话,因为我本人很喜欢玩电脑,网络质量就是我的生活质量,所以研一刚来当天就咨询了这个问题。听完之后对比一下家里的收费标准,结论就是一个字:贵!
奈何当时的我还小,知识面太窄,只能任其剥削压迫。
现在可不一样了😏

This was the conversation I had with my roommate when I first arrived as a first-year graduate student. Since I really enjoy playing with computers, network quality is my quality of life, so I asked about this on my very first day. After hearing it and comparing it with the pricing at home, the conclusion was one word: expensive!
But I back then was still young and knew too little, so I could only let it exploit and oppress me.
Now it’s a different story😏




Write a function that takes an unsigned integer (in binary string form) and returns the number of ‘1’ bits in its binary representation.
My first version of the code:
1 | class Solution { |
这个我看起来问题不大啊,边界条件设置好,n&1 计算最低位是不是 1 ,再加上递归调用 n 的右移1 位。
This looks fine to me. The base cases are set up, n&1 checks whether the lowest bit is 1, plus the recursive call on n shifted right by 1 bit.
时间过得好快,还记得上一次过中秋节还是在去年😜
摄影师:广元
Time flies. I remember the last time I celebrated Mid-Autumn Festival was just last year 😜
Photographer: Guangyuan
