jzGradeChecker - 优雅查成绩 Graceful Grade-Checking Experience

链接 Links

  • 网站 Website (包含导出数据查看网页 Includes a webpage for reading the exported file)
  • 演示 Demo (这是扩展的欢迎界面,显示效果与实际扩展工作情况无异 This is the introduction page of the extension, which reuses the same core scripts of the parsing code, working identically to the extension)
  • Chrome Web Store

重要提示 Notice

由于原网站在今年改版,成绩查询服务器已经下线,该扩展的读取成绩功能已经无法工作。但因为扩展自定义了一套 JSON 数据结构,即便服务器不可用,仍可通过离线数据实现信息显示,因此在线演示、导出成绩查看器等仍可查看。

Due to the original website upgrade, this Chrome extension cannot fetch grade data any more (the grade check server is down). However, the demo and the exported data reader still work, because I have implemented a customized JSON data structure, which make the code functional by reading the JSON data even if the remote server is unavailable. 继续阅读“jzGradeChecker - 优雅查成绩 Graceful Grade-Checking Experience”

魔方机器人(网页与 Python 控制程序) Rubik's Cube Solving Robot

介绍 Introduction

本作品为本科专业必修课《科研项目指导与训练》的课程项目。我们选择实现一台魔方机器人,可对打乱的三阶魔方在进行表面颜色识别后,恢复至六面同色状态。

This is a course project for "Scientific Research Project Guidance and Training" course of my major. We chose to build a Rubik's cube solving robot, which can identify a third-order cube's pattern and solve it.

该机器人拥有六个自由度,对六个面进行旋转,并有四个摄像头从四个角进行颜色的识别。此外,机器人采用树莓派作为上位机进行总体控制,采用 Arduino 作为下位机进行步进电机的控制。

The robot has six degrees of freedom, rotating the six sides. It identifies the cube by four cameras from the four corners. A Raspberry Pi is used as an upper controller for the general control, and an Arduino board as a lower controller for the motor control.

项目在最终结题答辩时获得非常高的评价,同一课程中共有 9 组项目。

The project gets an excellent feedback at the final presentation among 9 projects of the course.

继续阅读“魔方机器人(网页与 Python 控制程序) Rubik's Cube Solving Robot”

Make Service Fault Transparent

This article is an English one, because I really need to work on the language. Sorry if it is not easy to understand.

A Summary to What's Happening Recently

Recently in my campus, IT service is very unstable.

  • In March, many people posted on forums that they tried to top up campus Internet account by WeChat, but more money (maybe 100x) than they paid were topped up.
    • Later WeChat top-up service were disabled. Because most people were not aware of the existing offline top-up-by-card service, many of them became arrearage.
    • Several days later, campus Internet's charging system was disabled, which means you can use it for free. Later the charging system was resumed, but only charging at the monthly fee (not counting flux fee).
    • An unnoticeable statement was published then, indicating that it was caused by a bug from the software company.
  • On March 20th, campus card users who used their cards to drink hot water or eat breakfast, found their card locked. (Those lazy guys were not affected at all)
    • In the morning nobody knows whether the issue was being solved, until at around 11 (lunchtime) my school's instructor sent an announcement that "there will be unlock service in canteens, please keep order and don't panic at the scene". At canteens announcements by canteens' administrator is put up. Unlocking was quick and easy, but most people still went to canteens where Alipay is accepted.
    • Later that afternoon public statement by card administrator was out: It was a service fault (on BITUnion some said that it's a bug hidden for 14 years). IT staffs explained on BITUnion that they tried to work out solutions and mitigate the issue before they drafted public statements.
  • In these months campus Internet is unstable: During peak hours it became very slow or even unavailable. Maybe it's around 2%'s downtime (in a 24-hour aspect), looking not that much, but users surely could experience that.
    • The causes seem very complex. In my view, new DNS servers, old cache servers, new firewall systems, new upstream link providers and upstream link issue all can cause problems. And of course those new facilities all need to be fine-tuned, which takes time.
    • Currently no authentic statement is published. But in the IT service monthly report (which most people are not aware of), it said "Issue fully fixed, during peak hours upstream links can work in full bandwidth now". One of the reasons they mentioned was "DDoS attack causing network core server CPU instant usage up to 99% (usually ~20%)".
    • However, as student representatives meeting will be held, many representatives will raise the heated Internet issue onto the meeting. But I believe most of they will never get the point why this is happening.

继续阅读“Make Service Fault Transparent”

学院综合测评系统 Student Evaluation System

效果 Influence

学院每学期会对学生进行“综合测评”。测评规则最早较为简单,可以通过网上常用的电子表单服务实现,但随着测评规则和配套表格的复杂化,其他班级不得不回到填写 Word 表格后手工统计的模式。本系统集成了测评表格和计算规则,设计用于班级内的测评表格收集、自动统计,直接导出要求的测评结果表格,并支持多班级分别使用。

系统在班内(29 人)已使用两个学期,应实际使用需求,在使用过程中增加了测评项目、单次填写多学期的支持。此外系统也为其他 1 个班级提供过服务。使用过的班长均反馈效果良好。 继续阅读“学院综合测评系统 Student Evaluation System”

bPlanner 多学生教务信息整合系统

介绍 Introduction

bPlanner 是一个多学生教务信息整合系统,利用它可以获得一部分学生的课程情况、考试成绩、考试地点汇总等信息,可利用于活动时间安排、考试成绩分析等用途。

虽然系统目前仍是作者个人使用为主,但其已经为作者所在的班级提供多次服务。

其由三部分组成:

  • 开源的 PHP 教务系统读取库,以对象形式调用并处理正方教务系统中的课表、校历、成绩等信息,且可自动利用调课信息对课表进行修改;
    通过替换这一库文件,可对其他使用不同教务系统的学校进行支持;
  • 调用上述接口,将教务信息保存至系统内,并导出为 JSON 文件的 PHP 采集模块
  • 读取导出的 JSON 文件,在浏览器内离线对教务信息进行分析显示的分析模块

借助读取库和一小点代码,可将课表生成为 iCalendar 文件,导入进日历软件。 继续阅读“bPlanner 多学生教务信息整合系统”

汕头实时公交网页设计 Realtime Bus in Shantou

简介 Introduction

汕头市位于广东省,是中国第一批 4 个经济特区之一。目前其市区内的实时公交信息只通过一款手机应用发放,其对于日常使用而言,体验仍过于复杂,乘客需要打开应用 > 手动输入线路或点击“当前站点”按钮后、选择当前站点和线路 > 查看线路情况。

在参考了 CitymapperTransit 等应用的设计后,给出了一个基于网页的实时公交查询设计。在同一个页面上,由上至下列出当前位置附近所有方向线路的来车状态,并以站点分组,点击线路后会显示路线图和车辆情况,大大优化了日常查询实时公交的体验。

网页显示的实时公交数据,需要借助后端 PHP 程序抓取。程序设置了缓存机制,此外还通过保存每辆车的历史位置,对长时间不移动的车辆进行标注提示,提升了数据的可信度。 继续阅读“汕头实时公交网页设计 Realtime Bus in Shantou”

Don't Shoot the Puppy, Don't Wandering around

Viewed over 40,000,000 times, this game asked the question "how hard is it to do nothing?". From fake popup ads to fake blank screens to fake obstacles, players convinced themselves that this time the puppy needed help, but what we didn't realize was how many people could not just sit and watch for 10 minutes. Even though we sit through movies or TV for hours on end, Flash games are so ADD-friendly that many people lost patience and knowingly killed the dog.

From http://www.rrrrthats5rs.com/about/#dont-shoot-the-puppy

This is the game. It shows that almost everyone online who is able to try it has ADHD.

The game tells us that a big challenge of people at present is how you stay foused in a bustle. The analogy is so vivid. How can the puppy of goals arrive at its destination when the gun is always ready to shoot, to go around.

So, just forget the bustle. Stay on what you are on. And there is always an end except you Flash crashes.

[Task Writing] The Voluntary Work

The passage introduces the heated situation of the teens voluntary work to support charity in America, in which the teens gain leadership skills and experiences of meeting people and working, according to a volunteer Gaby Lucy.

Doing volunteer work means a lot to growing-ups. We can learn how to communicate to people properly, gain co-operating and leadershop skills, and last but not least, meet all walks of people who has the same aim as yours. I had been working as a voluntary member in an association, which helps improve the canteens in my senior high school. My job was to ask students for their advice on the canteen service, which taught me the way to "interview" a stranger. I also met many fellows, who were kind and optimistic about life, and I will never forget the experience being in the association. I will be active if I have a chance to do volunteer work later.

In the modern society volunteer work is regarded positive and necessary. Thus we teenagers should take part in volunteer work to learn more about the society.

[Task Writing] The Time Machine

The passage talks about the author's thoughts of the film The Time Machine. If he could, the author would go back to the Berlin Olympics, where Jessie Owens won four gold medals, showing how wrong Hitler's ideas were.

It's an exciting idea to have had such a time machine to witness the past events and even try to make a difference. If I had a chance to go back in time, I would choose 1990's. I would travel around China to learn more about what was happening in that period. I would ask the ordinary people what they thought about the country's future. I would see what the nature environment and the social situation were like. I would also track my parents' life, where they should be plenty of happiness.

If I achieved all these above, I would have a better understanding of the development of China in the past 30 years. Thus, I would know what's the right thing to do in the future, cherishing the age I am in and creating a better life.

P.S. the example of the starting:

The author introduces the film "The Time Machine", in which the hero invents a time travelling machine to save his sweetheart. He also imagines where he would go if he could travel through time.

[Task Writing] Pros and Cons of Blogs

The passage discussed the pros and cons of online blogging, finally concluding that keeping a blog is beneficial while the public and the government should prevent it from abuse.

From my point of view, personal blogs are valuable. As a new kind of medium, blogs make various opinions spoken out, which is a must of modern society. For us students, blogs help us improve learning, writing and communication skills, as is listed in the passage. On the other hand, blogs may spread bad information, and thus the government should keep an eye on it. I totally agree with the idea in this passage.

I have my own blog online, which I created several years ago. It gives me a space where I can think in depth and write whatever I want to. I share my hobby and life on it. Some visitors left useful comments as they checked out my blog. I even gained a friend by my blog. Thus I recommend that students should have their own blogs so as to understand better about lives.

(topic is from 2012 Shantou civic yearly final exams of Grade 11)