08/03/2016 – Tips of Tolerance Checker– 公差查询器备忘

(English version follows Chinese Part)

之前就有说过实验室板块一共打算同时进行两个项目,天文部分是晴天钟,机械部分是公差查询器。这篇文章打算记录一下公差查询器的思考内容以作备忘。

I was talking about plans of the lab before, Web Forecast for astronomy block and Tolerance Checker for mechanical block. This is the memorandum of what I have thought about building the tolerance checker.

一开始先检索了一下“检索器+数据库”结构的实现方式,包括asp+excel, php+myaql, php+excel等等等等。我根据我的客观条件,打算采用php+excel的方式来实现网页查表式的公差查询器。

The basic structure of online checker is “checker+database”, which have kinds of  method including asp+excel, php+myaql, php+excel and etc. Considering of objective conditions I have, I will go by php+excel solution.

选择php+html作为前端和服务器端的检索器是因为我已经有了一个支持php的虚拟主机,直接提供了在线调试环境,而且流量够、速度够,就不打算再倒腾一番搭建本地测试环境了。所以没有采用asp。

It is no necessary that set up another local testing environment when I have already got virtual host with php supporting. That’s why I chose php instead asp for my checker and I can test it online.

至于数据库,使用excel,是因为我完全不打算再学mysql,另一个原因是极限偏差表的数据量有点大,而且目前取得的数据必须要依靠我手工输入,所以选择excel在创建数据库的时候会比较便捷。另外,php有开源的excel读取工具可以直接调用,这对我这样一个php小白来说,实在是方便不过。

As for database, learn to use mysql may take too much time. But the core problem is that entering data of tolerance would be a huge project when I have to type it myself by hand. So, excel will be easier for me to setup database files. Luckily, php has open source of excel reader that I can use for my checker directly.

目前,参考网络上已有的php+excel查询器例子,思考了几天,打算按照如图1的结构创建查询器,不过也有可能需要更多的php文件在服务器端进行检索、查表操作。

After searching examples of php+excel checkers online, I make the structure graph as Fig.1. It is a prophase plan and there might be more php files for the checking function at server side.

20160308-tolerance_checker (2)

图1(Fig.1)

主页客户端的表单和服务器端检索的逻辑如图2,我目前最好的打算是表单和结果显示能够在同一页面展现且不断复用,这样才是“查询器”,而不是“查询页”。

The form on front page has its appearance as Fig.2 and the checking logic of server-side files have been shown as well. My better plan of the front page is that exhibiting the radio buttons and the return result on the same page which can be reused without refreshing the page.

20160308-tolerance_checker-1

图2(Fig.2)

I251-82-94-上海私家记忆

出版物封面

Cover of Publication

出版物名称

Name of Publication

上海私家记忆
著者 Author 王海
出版单位 Publisher 中信出版社
简介

Introduction/ Abstract

上海是一个生动的城市,既拽着对腔调的追求,也有活泼的市井烟火气。

作者在上海生活四十余年,他怀着对这座城市的爱与独特的幽默感,将自己记忆中的上海细致勾画。

全书分为三部分内容:上海街头、上海面孔、上海闲话教案。

上海街头中,作者记述了过去二三十年里身边普通人、街、事的故事,有国定路与虹镇往事,有上海独有的爷叔现象、饭泡粥的味道等等。个人记忆里印证着时代与城市的变迁。

上海面孔里,作者回忆了王安忆、陈逸飞、闵惠芬、张瑜、潘虹等具有代表性的上海人的故事,以及上译厂的暗影往事。作者与他们相知相交,因此在他笔下,这些人物有了更为生动的面孔。

上海闲话教案里,作者撷取上海话中常见口头语,对其做一番探寻、推敲与释义,供不懂上海话的朋友参考。如“鲜格格”“爱哭鬼蚌壳精”等,在这样鲜活的语言里才会更体会到市井街巷的妙处与精髓。

个人书评

Personal Book Review

很抱歉,我在上海读书的四年产生的深厚感情让我总是有意无意地关注有关她的书籍。这本书实际上是一本回忆录,记录上海人过去的事,身边的事,虽然只是沧海一粟,但申城之风貌、上海之精神、海派之文化,就是由这些小故事组成。当然,对于我这样一个曾生活在上海的人来说,附录的上海“闲话”谐趣教案,不禁令人用那口吴侬软语小声跟读起来,作为上海话小教程又何妨?

Maybe I should apologize for that I post too much books about the Shanghai City, it is really natural that notice about items of Shanghai when you spent years in that place. Actually, it is a book talking about piece of memory of local people. Even though these stories are drops in the sea, Shanghai and its culture are based on them. Additionally, I recommend the appendix which is a small tutorial you can learn about words and expressions of Shanghainese.

ISBN/ISSN 9787893990144
出版日期

Date of Publication

2015.8 出版地

Place of Publication

北京

Beijing

中图分类号

CLC Code

I251 中图法分类名称

CLC Category

回忆录
国际十进分类号

UDC Code

82-94 国际十进分类名称

UDC Category

历史作为文学体裁. 历史写作、史学、编年史、史册、回忆录、期刊、日记、传记、自传

History as literary genre. Historical writing. Historiography. Chronicles. Annals. Memoirs. Journals. Diaries. Biography. Autobiography

 

书刊定价

Price of Publication

32.00 书刊语言

Language

简体中文
购买正版

Purchase of Authorized Edition

Amazon.cn

Amazon.cn(Kindle)

I253-82-94-美国军校的中国男孩

出版物封面

Cover of Publication

 

出版物名称

Name of Publication

美国军校的中国男孩
著者 Author 孔一诺
出版单位 Publisher 国际文化出版公司
简介

Introduction/ Abstract

讲述了本书主人公孔一诺,是一个在快乐单纯的北京男孩,却要独自面对在异国他乡生存与成长的挑战。更不可思议的是,他选择的是一所在美国也以严格奉行军事化管理著称的军校,并面对生活的巨大转变和内心的强烈震荡的一些列故事。
ISBN/ISSN 9787512500815
出版日期

Date of Publication

2010.9 出版地

Place of Publication

北京
中图分类号

CLC Code

I253 中图法分类名称

CLC Category

通讯、特写、专题报道
国际十进分类号

UDC Code

82-94 国际十进分类名称

UDC Category

历史作为文学体裁. 历史写作、史学、编年史、史册、回忆录、期刊、日记、传记、自传

History as literary genre. Historical writing. Historiography. Chronicles. Annals. Memoirs. Journals. Diaries. Biography. Autobiography

书刊定价

Price of Publication

28 书刊语言

Language

简体中文

H33-811.112.2-新编大学德语:MP3版.1

出版物封面

Cover of Publication

 

出版物名称

Name of Publication

新编大学德语:MP3版.1
著者 Author 朱建华等
出版单位 Publisher 外语教学与研究出版社
简介

Introduction/ Abstract

ISBN/ISSN 9787560064482
出版日期

Date of Publication

2007.10 出版地

Place of Publication

北京
中图分类号

CLC Code

H33 中图法分类名称

CLC Category

德语
国际十进分类号

UDC Code

811.112.2
国际十进分类名称

UDC Category

 德语(高地德语、标准书面语)

German language (High German, Standard written German)

书刊定价

Price of Publication

36.899999999999999 书刊语言

Language

德语

O185.2-62-画法几何解题指南

出版物封面

Cover of Publication

出版物名称

Name of Publication

画法几何解题指南
著者 Author 缪临平,顾文逵
出版单位 Publisher 中国纺织大学出版社
简介

Introduction/ Abstract

ISBN/ISSN 7-81038-062-1
出版日期

Date of Publication

1995.10 出版地

Place of Publication

上海
中图分类号

CLC Code

O185.2 中图法分类名称

CLC Category

画法几何
国际十进分类号

UDC Code

62 国际十进分类名称

UDC Category

Engineering. Technology in general
书刊定价

Price of Publication

16 书刊语言

Language

简体中文