mind asset 邀请码是一款什么软件,它那里下载的时候介绍是游戏,然后用手机号注册,却需要相应的邀

【浅墨著述】《逐梦旅程:Windows游戏编程之从零开始》勘误&配套源代码下载_全英文口试攻略_实战防止重复提交(token)施用思路及过程__脚本百事通
稍等,加载中……
^_^请注意,有可能下面的2篇文章才是您想要的内容:
【浅墨著述】《逐梦旅程:Windows游戏编程之从零开始》勘误&配套源代码下载
全英文口试攻略
实战防止重复提交(token)施用思路及过程
【浅墨著述】《逐梦旅程:Windows游戏编程之从零开始》勘误&配套源代码下载
【浅墨著作】《逐梦旅程:Windows游戏编程之从零开始》勘误&配套源代码下载
I'm back~~恩,几个月不见,大家还好吗?
这段时间真的好多童鞋在博客里留言说或者发邮件说浅墨你回来继续更新博客吧。 woxiangnifrr童鞋说每天都在来浅墨的博客逛一下看有没有更新,“每天都来就像看女神那般不依不舍”,弄得我再不更新都不好意思了,哈哈~怎么说呢,前段时间忙毕设,回国,暑假,间隔年旅行休整,然后是适应新的生活,各种事情,也真正没有心境来更新博客了,最近正好心境安定下来,就继续开始写博。额,关于思想汇报改天我专门写一篇文章和大家交流交流,现在先打住说正事吧~
首先是大家关心的博客回归问题,博客会在这段时间继续开始更新,《Visual C++游戏开发》专栏的第三季,更新时间暂定依旧是每周一。
然后这篇博文主要是用于《逐梦旅程:Windows游戏编程之从零开始》一书的维护工作,勘误和源代码下载两个方面。
这本书浅墨用了一年多时间完成,最近刚出版,已经陆续在当当,淘宝,亚马逊,京东上架了,各大实体书店也渐渐有了货。{各大网店目前还是没有把书正式上架,但是显示的有货状态,已经可以购买了但是记录和评论都在后台上没有更新到界面里,囧}
放一张样书的玉照吧,浅墨自己构思的封面哦,很梦幻吧:
恩,来做一个简单的介绍吧:
一、自序:我有一个梦想——致终将由我们去复兴的国产游戏
All our dreams can come true, if we have thecourage to pursue them.
我们所有的梦想都可以成真,只要我们有勇气去追求它们。
————沃尔特·迪斯尼
依稀记得那还是F4红遍大街小巷,满城都飘扬着《流星雨》的年代。
那个时候的电子游戏,无论是投币式的街机游戏,还是网吧里的《反恐精英》、《流星蝴蝶剑》、《仙剑奇侠传》、《星际争霸》、《帝国时代》等引领时代的游戏界的璀璨明珠,总能深深地吸引住每个纯真无邪孩童的心,绚烂的游戏画面总是让孩童们流连忘返。
那个时候,每次放学后唯一单纯的想法,就是悄悄溜到学校附近的网吧,和电脑游戏亲密接触。口袋里有邻花钱的时候就能玩上一会儿,没有零花钱的时候就痴痴地站在屏幕前面看别人操纵着荧幕前的剑侠闯荡世界。年少的我单纯地认为,游戏世界中存在着一个无比恢弘的世界,那是可以装下梦想的地方。应该是我对游戏的痴迷,对游戏开发梦想的虔诚,让我走向了研习游戏开发的这条道路。
还记得那个香樟树覆盖的夏天,年幼无知的我在一帮同学中吹牛说:我长大后,一定要自己开发出比这些还牛还要好玩的游戏。
现在想想,这几年走过的路途,真应了那句话,“现在的努力,都是为了小时候吹过的牛逼”。
这些年来,在学习游戏编程的道路上有过惊喜,有过坎坷,有过自豪,有过怅惘,走了不少弯路,也算是最终走上了正途,小有所成。于是,我单曲循环着五月天的《有些事情现在不做一辈子都不会做了》,打开Word,打开Visual Studio,把自己这么多年来的游戏开发经验和心得用文字凝聚起来,开始为大家写这本书。
而这么一写,就是一整年。
经过一年夙兴夜寐,终于,赶在22岁生日之前,近百万字的书稿随着一声响指而初具雏形。
“谨以此书献给父母,因养育之恩无以回报。谨以此书献给母校南京航空航天大学和乌克兰国立航空航天大学,因赐予我一颗不甘平庸、上下求索的心。谨以此书献给所有怀揣游戏开发梦想的人们,因为,你们不是一个人在战斗。”
当在书稿的开头写下这三个“谨以”的时候,我终于开始觉得,这一年的夜以继日,这一年的披星戴月,都是值得的。
然而,因为岁月积累的关系,这本书中渗透的编程思想或许不能和编程界中的泰斗们同日而语。但是,我可以捂着胸口问心无愧地说,我把这些年自己悟出来的关于游戏编程的学习方法和真知灼见,毫无保留地呈现给了大家。大家能看到的眼前的这些句子和代码,全都是经过一遍又一遍的深思熟虑,一遍又一遍的修改,然后小心谨慎地敲出来的。
详细研究过游戏编程的朋友们都应该有这样的共识:“中国人写的书水平上不去,外国人写的书水平有了,但是翻译得往往都强差人意,理解不了”。也许正是这个原因,国内游戏编程的入门门槛一直很高,DirectX一直被人们认为是很难学的。很多怀揣游戏开发梦想的热血青年们,信誓旦旦地开始着手学习游戏编程的时候,却被晦涩难懂的游戏编程教材拒之梦想门外,碰了一鼻子灰,从此和最初的梦想失之交臂。我想,这正是导致国产游戏业界的萎靡,国产游戏一直很难成长起来的原因之一。
在这样的环境的激励下,这本倾注我一年多心血的书出现了,它的创作初衷便是渴望能够改变这样的现状。
愿这本书,能帮到那些热爱游戏编程、怀揣游戏开发梦想,却苦于难以入门的人们,让他们少走弯路。
愿这本书,能为国产游戏、国产游戏引擎的崛起,开启一扇门,迎接新的黎明。
我有一个梦想,将来的某一天,大家都能玩到蕴含着中国上下五千年本土文化的优质游戏大作。
我有一个梦想,有一天,西游记能出ACT,让老外去体会中国文化西游记中”斗战胜佛”的打击快感,那一定比西方的动作巅峰之作《战神》、《鬼泣》更加深邃。
我有一个梦想,有一天,上海滩能出沙盒游戏,而不是玩《GTA》感受美国梦,亦或是玩着《热血无赖》体验国外公司强行塞给我们的“中国文化”。
我有一个梦想,有一天,不少3A大作不需要汉化,因为是我们自己的游戏,配音是中文,文化也是中国的。
我有一个梦想,将来的某一天,国产游戏能像中国的其他产业一样,以一个领跑者的姿态,面对全世界,面对全宇宙,器宇轩昂,扬眉吐气。
这会是由我们一起去完成的梦想。
我等着我们的好消息。
浅墨 2013年5月于乌克兰
二、逐梦 · 导读
这本书分为六大篇章,26个章节。六大循序进阶的篇章分别为:
篇章序:逐梦 o 游戏开发梦想的重量
篇章一:起航 o 夯实游戏程序之根
篇章二:初探 o GDI 2D游戏编程
篇章三:飞跃 o DirectX游戏编程基础
篇章四:致用 o DirectX游戏编程应用
篇章五:升华 o 致我们的游戏开发梦想
以下的书本导读内容可以帮到大家更好的对当前的学习阶段进行定位,让自己对号入座,快速、科学地开始自己的游戏编程逐梦之旅。
如果你的编程经验为零:
毫无编程经验的朋友,请先阅读介绍C++编程语言的相关书籍,再来延续我们的梦想,阅读这本书。学习C++推荐书目:《C++ Primer》与《C++ Primer Plus》,或各大高校的C++程序设计教程。
有C++编程经验但不熟悉Windows 下编程:
有C++编程经验但毫无Windows编程经验的朋友,可以重头到尾顺畅的阅读这本书。因为这本书最准确的定位就是有一点C++编程经验之后从零开始掌握Windows游戏编程。
如果你有Windows 编程经验但不熟悉GDI:
但不熟悉GDI有Windows 编程经验但不熟悉GDI的朋友,推荐适当阅读第一章之后,推荐从第四章开始征程。
如果你想了解Windows GDI游戏绘图技巧:
想了解Windows GDI游戏绘图技巧的朋友,请阅读第五章。
如果你想了解Windows游戏动画技巧:
想了解Windows游戏动画技巧的朋友,第六章会满足你的好奇心。
想了解Windows小游戏键盘鼠标编程相关知识:
需要了解Windows中小游戏对键盘鼠标编程相关知识的朋友,第七章会给你答案。
想看看Windows GDI如何写出好玩的程序:
想看看Windows GDI可以弄出哪些好玩的玩意儿的朋友,第八章会给你惊喜。
想了解一个GDI小游戏完整的开发过程:
想了解一个结构完整的小游戏的开发过程的朋友们,第九章会超出你们的期待。
如果你想开始学习DirectX游戏编程:
有一定Windows编程经验,并且了解GDI编程,已经准备好迎接挑战,想开始DirectX3D游戏编程学习的朋友,请从第十章开始阅读。这本书从第十章往后的内容组织起来是一个系统的DirectX游戏编程教材,其实可以单独成书的。
想了解DirectX的进阶应用技术:
如果你已经打好DirectX的编程基础,想了解DirectX的进阶应用,请从第21章开始阅读。
想了解游戏引擎技术:
如果你通过自己的不懈追逐,已经有了不错的C++/DirectX基础,想适当了解游戏引擎技术,第26章正是为你准备的。
想搜寻进阶的游戏编程书籍
如果你已经完成本书的学习,并且信心满满,想知晓世界范围内有哪些进阶游戏编程书籍可以进一步提高自己的“段位”,总结全面的附录A.2和A.3正是为你准备的。
三、详细注释的书本配套源代码下载
源代码包是400多Mb的rar格式压缩包,完全解压后近1G,是和书一样的大块头了。
每个程序浅墨都有用心为大家准备,代码都经过详细注释,每个程序示例运行的时候都有精选的,独一无二的背景音乐播放。
配套源代码包解压后是如下的样子:
那么,《逐梦旅程:Windows游戏编程之从零开始》一书配套源代码下载地址:
1.百度网盘
暂时用百度网盘先顶着,其他下载方式会陆续放出~:)
先放一些程序截图吧:
然后这里是配套示例程序的一些说明:
1.【FirstBlood!】 一个简单的Windows API示例程序,并附有dota中第一个击杀会播放的很酷的“FirstBlood”音效。
2.【GameCore】 用代码勾勒出游戏开发所需的核心框架程序
3.【GDIdemoCore】实现GDI游戏开发所需的核心框架程序
4.【GDIdemo1】GDI基本几何绘图示例程序
5.【GDIdemo2】GDI文字输出示例程序
6.【GDIdemo3】GDI位图绘制示例程序
7.【GDIdemo4】透明贴图两套体系之:透明遮罩法示例程序
8.【GDIdemo5】透明贴图两套体系之:透明色彩法示例程序
9.【GDIdemo6】游戏动画技巧之 定时器动画显示示例程序
10.【GDIdemo7】游戏动画技巧之 游戏循环动画显示示例程序
11.【GDIdemo8】游戏动画技巧之 透明动画示例程序
12.【GDIdemo9】游戏动画技巧之 排序贴图示例程序
13.【GDIdemo10】Windows消息处理之键盘消息处理示例程序
14.【GDIdemo11】Windows消息处理之鼠标消息处理示例程序
15.【GDIdemo12】愤怒的小鸟弹球之物理匀速运动模拟示例程序
16.【GDIdemo13】愤怒的小鸟弹球之重力环境模拟示例程序
17.【GDIdemo14】愤怒的小鸟弹球之摩擦力环境模拟示例程序
18.【GDIdemo15】粒子系统初步之雪花飞舞示例程序
19.【GDIdemo16】粒子系统初步之星光绽放示例程序
20.【GDIdemo17】小型回合制游戏:《勇者斗恶龙》程序源码
21.【D3DdemoCore】Direct3D程序的核心框架
22.【D3Ddemo1】Direct3D初始化四步曲 示例程序
23.【D3Ddemo2】Direct3D渲染五步曲 示例程序
24.【D3Ddemo3】Direct3D顶点缓存的逆袭 示例程序
25.【D3Ddemo4】Direct3D索引缓存的故事 示例程序
26.【D3Ddemo5】迈向三维世界:Direct3D四大变换 示例程序
27.【D3Ddemo6】Direct3D中几种几何体的快捷绘制示例程序
28.【D3Ddemo7】绘制真实质感的三维世界:光照与材质示例程序
29.【D3Ddemo8】游戏输入控制利器 : DirectInput 示例程序
30.【D3Ddemo9】对DirectInput的封装 示例程序
31.【D3Ddemo10】为三维世界添彩:纹理映射示例程序之一
32.【D3Ddemo11】为三维世界添彩:纹理映射示例程序之二
33.【D3Ddemo12】网格模型和X文件使用面面观 示例程序
34.【D3Ddemo13】水乳交融的艺术:alpha混合技术 示例程序
35.【D3Ddemo14】横看成岭侧成峰:深度测试和Z缓存 示例程序
36.【D3Ddemo15】虚实结合的光影 : 模板技术 示例程序
37.【D3Ddemo16】翱翔于三维空间:第一人称摄像机的实现示例程序
38.【D3Ddemo17】钟灵毓秀的世界:三维地形系统的实现示例程序
39.【D3Ddemo18】向碧蓝的苍穹致敬:三维天空的实现示例程序第24章:
40.【D3Ddemo19】让唯美的雪花飘扬:三维粒子系统的实现示例程序
41.【D3Ddemo20】造物主的降临:多游戏模型的载入示例程序
四、纠错·交流
由于浅墨水平有限,书中难免会有疏漏之处。希望电脑屏幕前热心的你,能够指出书本中错误,评论在这篇文章中。
浅墨会及时对这一部分的内容进行更新,以便在书籍下一版印刷的时候,以一个更完美更严谨的样子,呈现在懂得她的人的面前。
文章最后依旧是送大家一个句子:
希望你,能在二十岁出头的生命里,做一些到了八十岁想起来还会微笑的事情。
电脑屏幕那端的你,晚安:)
下周一,回归季,游戏开发笔记第三季,我们,不见不散。
全英文口试攻略
全英文面试攻略
实英文面试都比较简单,只是容易一时激动忘词了,全英面试攻略,复习一下,关键时刻不能掉链子。 一、完整的自我介绍1 Good morning ! It is really my honor to have this opportunity for an interview,I hope I can make a good performance today. I’m confident that I can succeed.Now I will introduce myself briefly. I am 26 years old,born in shandong province .I was graduated from qingdao university. My major is electronic and i got my bachelor degree after my graduation in the year of 2003.I spend most of my time on study,I have passed CET4/6 . and I have acquired basic knowledge of my major during my school time.In July 2003, I began work for a small private company as a technical support engineer in QingDao city.Because I’m capable of more responsibilities, so I decided to change my job.And in August 2004,I left QingDao to BeiJing and worked for a foreign enterprise as a automation software test engineer.Because I want to change my working environment, I’d like to find a job which is more challenging. Morover Motorola is a global company, so I feel I can gain the most from working in this kind of company ennvironment. That is the reason why I come here to compete for this position. I think I’m a good team player and I’m a person of great honesty to others. Also I am able to work under great pressure. That’s all. Thank you for giving me the chance. 完整的自我介绍2 good morning, my name is jack, it is really a great honor to have this opportunity for a interview, i would like to answer whatever you may raise, and i hope i can make a good performance today, eventually enroll in this prestigious university in september. now i will introduce myself briefly. i am 21 years old,born in heilongjiang province ,northeast of china,and i am curruently a senior student at beijing XX uni.my major is packaging engineering.and i will receive my bachelor degree after my graduation in june.in the past 4 years,i spend most of my time on study,i have passed CET4/6 with an ease. and i have acquired basic knowledge of packaging and publishing both in theory and in practice. besides, i have attend several packaging exhibition hold in Beijing, this is our advantage study here, i have taken a tour to some big factory and company. through these i have a deeply understanding of domestic packaging industry. compared to developed countries such as us, unfortunately, although we have made extraordinary progress since 1978,our packaging industry are still underdeveloped, mess, unstable, the situation of employees in this field are awkard. but i have full confidence in a bright future if only our economy can keep the growth pace still. i guess you maybe interested in the reason itch to law, and what is my plan during graduate study life, i would like to tell you that pursue law is one of my lifelong goal,i like my major packaging and i won’t give up,if i can pursue my master degree here i will combine law with my former education. i will work hard in thesefields ,patent ,trademark, copyright, on the base of my years study in department of p&p. my character? i cannot describe it well, but i know i am optimistic and confident. sometimes i prefer to stay alone, reading, listening to music, but i am not lonely, i like to chat with my classmates, almost talk everything ,my favorite pastime is valleyball,playing cards or surf online. through college life,i learn how to balance between study and entertainment. by the way, i was a actor of our amazing drama club. i had a few glorious memory on stage. that is my pride. 二、模板1:自我介绍(self-introduction) Good morning. I am glad to be here for this interview. First let me introduce myself. My name is ***, 24. I come from ******,the capital of *******Province. I graduated from the ******* department of *****University in July ,2001.In the past two years I have been preparing for the postgraduate examination while I have been teaching *****in NO.****middle School and I was a head-teacher of a class in junior grade two.Now all my hard work has got a result since I have a chance to be interview by you . I am open-minded ,quick in thought and very fond of history.In my spare time,I have broad interests like many other youngsters.I like reading books, especially those about *******.Frequently I exchange with other people by making comments in the forum on line.In addition ,during my college years,I was once a Net-bar technician.So, I have a comparatively good command of network application.I am able to operate the computer well.I am skillful in searching for information in Internet.I am a football fan for years.Italian team is my favorite. Anyway,I feel great pity for our country’s team. I always believe that one will easily lag behind unless he keeps on learning .Of course, if I am given a chance to study ****** in this famous University,I will stare no effort to master a good command of advance ******. 模板2:自我介绍(self-introduction) Good afternoon .I am of great hornor to stand here and introduce myself to you . First of all ,my english name is …and my chinese name is ..If you are going to have a job interview ,you must say much things which can show your willness to this job ,such as ,it is my long cherished dream to be …and I am eager to get an opportunity to do…and then give some examples which can give evidence to .then you can say something about your hobbies .and it is best that the hobbies have something to do with the job. What is more important is do not forget to communicate with the interviewee,keeping a smile and keeping your talks interesting and funny can contribute to the success. I hope you will give them a wonderful speech .Good luck to you ! 三、面试现场提问环节: 1. What is your greatest strength?(你最突出的优点是什么?) 这是很多面试考官喜欢问的一个问题,这是你展示自己的最佳机会,不要吹嘘自己或过于自负,但要让雇主知道你相信自己,你知道自己的优点。如可答:“我认为我最大的优点是能够执着地尽力把事情办好。当做完一件工作而其成果又正合我的预想时,我会有一种真正的成就感。我给自己定了一些高目标。比如说,我要成为出色的毕业生。尽管在大学一年级时我启动慢了些,但最终我以优等论文完成了学业。” I feel that my strongest asset is my ability to stick to things to get them done. I feel a real sense of accomplishment when I finish a job and it turns out just as I’d planned. I’ve set some high goals for myself. For example, I want to graduate with highest distinction. And even though I had a slow start in my freshman year, I made up for it by doing an honor’s thesis. 2. What is your greatest weakness?(你最大的弱点是什么?) 你不应该说你没有任何弱点,以此来回避这个问题。每个人都有弱点,最佳策略是承认你的弱点,但同时表明你在予以改进,并有克服弱点的计划。可能的话,你可说出一项可能会给公司带来好处的弱点,如可说:“我是一个完美主义者。工作做得不漂亮,我是不会撒手的。” I’m such a perfectionist that I will not stop until a job is well done. 四、英语面试实战指南 I:Interviewer(面试者) A:Applicant(求职者) 1、介绍教育背景:简明扼要,实话实说 ①I:what is your major? A:My major is Business Administration. I am especially interested in〃Marketing〃. (不仅回答了问题,还顺带一句介绍了自己较为感兴趣的方面,简明扼要。) ②I:Which university are you attending? A:I am attending×××University. ③I:Have you received any degrees? A:Yes. First,I received my Bachelor degree in English Literature and then an MBA degree. ④I:What course did you like best? A:Project Management. I was very interested in this course when I was a student. And I think it’s very useful for my present work. ⑤I:Do you feel that you have received a good general training? A:Yes.I have studied in an English train-ing program and a computer training program since I graduated from university. I am currently studying Finance at a training school. 2、介绍工作经验:显露实力,避免炫耀 ①I: Have you ever been employed? ②I: Your resume says you have had one-year experience working in a foreign representative office in Shanghai,may I ask why you left? A:I worked in a foreign rep.office for one year.However,I left there two years ago because the work they gave me was rather dull.I found another job that is more interesting. ③I: Have you done any work in this field? ④I: What qualifications do you have that make you feel you will be successful in your field? ⑤I: What have you learned from the jobs you have had? A: I have learned a lot about business know how and basic office skills. In addition,I learned at my previous job show to cooperate with my colleagues. ⑥I:What’s you major weak point? A:I haven’t been involved in international business, so I don’t have any experience, but I have studied this course in the International Business Training Center of the×××Company. ⑦I: What are your greatest strengths?(实话实说好了,不必客气,但应注意语气和表情,不要给人炫耀之感。) ⑧I: Please tell me about your working experience. ⑨I: Does your present employer know you are looking for another job? A: No,I haven’t discussed my career plans with my present employer, but I am sure he will understand. 3、性格爱好:表现积极、合作的一面 ①I: How do you spend your spare time? ②I: Are you interested in sports? ③I: Do you think you are introverted or extroverted? ④I: What kind of personality do you think you have? A: I always approach things very enthusiastically. When I beg in something, I don’t like to leave it halfdone. I can’t concentrate on something new until the first thing is finished. ⑤I: What is the most important thing for you to be happy? A: Different people have different ideas. I think the most important thing for me is having a good relationship with my family members and my friends. My family has always been very closeknit and my friend sand I spend a lot of time together. Without that I would be much less happy than I am. ⑥I: What makes you angry? A: Dishonesty. It’s unacceptable. ⑦I: What are your personal weaknesses? A: I’m afraid I’m a poor talker. I’m not comfortable talking with the people whom I have just met for the first time. That is not very good for business, so I have been studying public speaking. ⑧I: Are you more of a leader or a follower? A: I don’t try to lead people. I’d rather cooperate with everybody and get the job done by working together. 4、工作要求:我能胜任 ①I: Do you think you can make yourself easily understood in English? A: Yes, in most circumstances. ②I:Are you available for travel? A: Yes, I like traveling. I am young and unmarried. It’s no problem for me to travel frequently. ③I: How about overtime work? A: Overtime work is very common in companies. I can work overtime if it’s necessary, but I don’t think we will work overtime everyday. ④I: How long do you think we can depend on your working here? ⑤I: Do you like regular work? A: No, I don’t like regular work. I am interested in different projects with new opport unities and new challenge, but I can do regular work if the company needs me to do so. ⑥I: What salary do you expect? A: Shall we discuss my responsibilities with your company first?I think salary is closely related to the responsibilities of the job. ⑦I: Do you work well under pressure? A: Working under pressure is exciting and challenging. I don’t mind working under pressure. I work well under the secircum stances. People can I Can. ⑧I: Do you have any particular conditions that you would like the company to take into consideration? A: No, nothing in particular. ⑨I: How soon can you begin working for us? A: I need about two to three weeks for necessary formalities. I will quit then transfer to your company. 5、面试结束:礼貌道别 ①I: Any questions? A: When will I know your decision? ②I: How can we get in touch with you? ③I: We will notify you of our decision by mail, is this convenient for you? ④I: Thank you for your interest in our company. A: Thank you. Mr.Smith. Goodbye. Thank you for your time. ⑤I: You will be hearing from us very soon. Please send the next applicantin on your way out. A: OK.Thank you very much. 此外,面试官还可能问及你的家庭情况,如家人对你的影响等,也应事先有所准备。 五、资料1: 英语自我介绍常用十句话 1. I have been for over five years in teh employ of an exporting company. 本人曾经前后五年被受雇于出口贸易公司。 2. I have been in the business for the last ten years, and worked as the superintendent in the personnel department. 本人在过去十年在商界担任人事部主任迄今。 3. I have had five years’ experience with a company as a salesman. 本人曾在某一公司担任推销员,前后有五年之久。 4. For the past three years, I have been in the office of the Brothers Trading Co., where I have been ad still am an accountant. 本人曾经在兄弟贸易公司服务三年,担任会计工作,现仍在职中。 5. I am twenty years of age, and have been employed for the last two years by the Green Trees Co., in teh general clerical work of the office. 我今年20岁,曾于绿林公司服务两年,担任一般文员工作。 6. I am 25 years of age, and have had two years’ experience in my present post, which I am leaving to better myself. 我今年25岁,已在目前的职位工作两年,兹为寻找更上一层楼,准备离开此职位。 7. I am nineteen years of age, female and have had two years’ experience in a company’s delivery office. 我今年19岁,女性。曾在某家公司担任收发工作两年。 8. I am just leaving school, and am eighteen years of age. 本人18岁,不久即可毕业。 9. I am twenty years of age, and am anxious to settle down to office work. 本人20岁,希望能找到一个公司,以便安定下来。 10. Since my graduation from the school two years ago, I have been employed in teh Green Hotel as a cashier. 两年前,自从离校后,在格兰酒店担任出纳员。 资料2:自我介绍用语大全之问候类 1.Good morning everyone. 大家早上好。 2.Good afternoon, ladies and gentlemen. 先生们,女士们下午好。 3.Good evening, teachers and fellow students. 老师们,同学们晚上好。 4.It’s my great honor to introduce myself to you here. 很荣幸在这儿向大家作自我介绍。 5.It’s my pleasure to introduce myself to you here. 我很高兴在这儿向大家作自我介绍。 6.I’m very happy to introduce myself to you here. 我很高兴在这儿向大家作自我介绍。 7.I’m very glad to introduce myself to you here. 我很高兴在这儿向大家作自我介绍。 8.I feel very honored to introduce myself to you here. 我感到很荣幸在这儿向大家作自我介绍。 9.It is a great pleasure for me to introduce myself to you here. 我是如此的高兴在这儿向大家作自我介绍。 10.It is a privilege to be speaking to you today. 今天能跟你谈话真是我三生有幸。 11. I am very proud to be addressing you this evening. 今晚能在此应邀讲话我深感荣幸。
实战防止重复提交(token)施用思路及过程
实战防止重复提交(token)应用思路及过程我这里只考虑了直接使用struts API的情况,使用自定义的token生成机制与此类似。 产生重复提交的两种情况: 1.用户操作完成后,点后退,返回jsp页面,再次提交。 2.用户操作完成后,刷新当前页。 简单回想下token的使用: 1.生成token,并保存到HttpSession中; 2.限制重复提交的jsp页面要从session中get这个token,并提交到servlet(或者struts action); 3.servlet(或者struts action)中比较HttpSession中保存的token和jsp页面提交来的token是否内容相同。如果相同,则同意提交;否则,操作为重复提交,拒绝该此操作。 常规的实现方法中,是由struts的action的子类先做下预处理:生成token,然后在jsp中get之。 有个遗留的系统,表现层这块用的struts,不知道什么原因没有处理“重复提交”这个问题,系统如果在生产系统上运行的话,不知道要出多大的乱子呢,应该是比想到的结果还要糟糕。下面就赶紧解决这个BUG。 目前系统代码大约5万行,用常规的方法恐怕不行,因为现在为每个需要防止重复提交的jsp做个预处理的action是不可能的: 1.要修改很多jsp的提交路径,原来是直接跳转到jsp的. 2.要修改struts的配置文件,现在的配置文件已经很多了。 解决办法: 在跳转到jsp之前生成token,才能解决这个问题。什么机制可以处理这种转发呢?想来想去,突然想到了filter。 正好filter可以捕获到jsp的跳转,这样在filter中添加生成token的逻辑即可。 web.xml中指定需要做防止重复提交处理的jsp即可,或者自己指定配置格式自己读取。 实施: 1.生成token可以使用struts的TokenProcessor,当然也可以定义自己的token生成机制。 2.如果使用struts来生成token,则注意jsp中获取token时用的名称,要到TokenProcessor中查一下。 3.保存到jsp中的hidden的名称,也要看下struts action中isTokenValid()方法中是怎样比较token的。
如果您想提高自己的技术水平,欢迎加入本站官方1号QQ群:&&,&&2号QQ群:,在群里结识技术精英和交流技术^_^
本站联系邮箱:

我要回帖

更多关于 www.mindasset.com 的文章

 

随机推荐