学会感恩

哥,像你这样的,工资都应该拿到2W+,我笑了笑问,为什么?他说你自己太稳定了,根本不了解现在的行情,北京、上海,像我这样的,刚毕业入行都拿到8K+了…

最近两年老是听到这样的声音

  • 奶奶说,鹏程,毛毛工资又涨三千,这才干第四个月,现在都一万二了
  • 爸说,鹏程,恁老板又给你涨工资了没有,记成在郑州都拿到九千了
  • 万里说,哥,你这不中啊,向明哥还是你带的,这才一年工资就比你多了
  • 文杰说鹏程哥,你带的我们几个,刚找工作,一点实际工作经验没有,公司就可以给到6~7K,你得考虑一下了

总之,最近这两年,像这样的声音不绝于耳,我也只是点头微笑。现在工作终于不再那么忙了,闲暇之余,我就来聊聊这个话题吧。

刚入行的时候,拿到5K+。家里人很是为我高兴。说我能挣钱了,不辛苦了,这样的工作风刮不着雨淋不着。的确,2012年初,这样的薪水在我们老家说起来还是相当可观的。那一年过年,用他们的话说,在他们眼里,我就是那金主,风光无限。每每回家带一大堆北京特产给家里老人,给他们买手机,豆浆机,唱戏机等,看着他们的笑脸,我心里可谓是幸福至极。

2012年底,有幸给华威天立做兼职。每月拿着双份工资,加起来的收入比我们一起到北京工作的小伙伴们的工资都高,每次聚餐都是我抢着出钱。你想想,我也是凡人,当时的心情有多么激情澎湃,认为成功离我不远了。甚至有段时间想,就这样一直下去吧,这就是我想要的生活。

对,这样的生活持续2013年4月,我和老婆爱的结晶出世了,小家伙的到来打破了原有的生活。为了能在家多陪着他们娘儿俩,我决定辞去北京的工作,主动要求加入华威天立。

  1. 工作弹性制,时间可自由支配
  2. 不用在北京了,我可以回家工作
  3. 能陪着他们娘俩,看着宝宝成长
  4. 老板是国外的,跟着他等学到很多东西
  5. 对我自己的英语学习有很大帮助

俗话说得好,有得必有失。加入华威天立,意味着我没有了双份工资,收入也自然少了。但,那时的我非常清醒,如现在一样,知道自己想要的是什么。于是我毅然决然的辞去了北京的工作,正式加入华威天立。

在华威天立,没想到我倒是比较适应这样的工作方式。在Alan和Wayne的耐心指导下,我很快接手了DHL的项目,为公司尽职尽责,做出自己的贡献。这样的工作,一直持续至今。其中涉及到的工作内容和责任心,东西比较多,我以后会再单独写一篇。我也可以站在读者的角度来衡量一下自己,到底是不是个优秀的程序猿,一个负责任的员工。

好了,背景交代完毕,我现在回答问题,为什么不离开?

dream

先回过头看看自己走过的路,在华威天立工作的这三年又俩月里,我得到了什么,创造了什么价值?

  • 陪伴见证小儿的成长过程
  • 领导的无私帮助下买了车房
  • 出国涨了见识
  • 英文实质性的提高
  • 心智更加成熟,
  • 技术、沟通有了质的提升
  • 把一群人带上了开发这条路

以上这些,真的不能用金钱衡量。虽然在别的公司也有可能实现其中几项,但是前两项应该有些困难吧,是这些支撑我走到现在。 终于到主题了,所以答案是我在报恩和成长,这种心情也许你们真的很难理解。

所以兄弟,我不是不知道现在的行情,也不是怕凭借自己的能力和工作经验拿不到期望的薪金。虽然听到你们这样说也会心里不舒服,也知道现在的自己再也没有任何优越感了。 但我目前至少不会有任何想法,我知道自己想要的是什么。

用一位同学的话说,你老板确实很厉害?能让你这么死心塌地的跟着他干… 我说,打住,不是老板让我这么死心塌地,是我愿意这样死心塌地的跟着他干,同学当场就晕了。

所以@大家以后都不要再跟我说这些东西了,我知道你们想让我过得更好一些。但我觉得目前还不是独自飞翔的时候,还是需要一如既往的担负起比应该多的责任,积累沉淀更多。如果有一天我觉得自己可以飞翔了,我自会告知大家,谢谢大家。

路途虽远,我不害怕,定要披荆斩棘,实现梦想。–鹏程

说说我为什么要学好英语

想起来,自己从初中开始学习英语,那时十二三,跟其他大多数孩子一样,不会认识到英语的重要性。甚至在小学时都会说一段:

我是中国人,不学外国文,不会ABC,照样是接班人。

相信你们也记得有这么一段,现在想想,多么可笑啊。的确,那时侯的我们年轻,爱玩的年纪,不可能想那么远,把自己以后该怎样发展想的那么透彻。所以,我的英语就没有跟上。但有时候我也觉得那时候国家对英语教育还没有足够重视,要不然从幼儿园就应该开授英语课了。

到了职专,本来自己的英语底子不好,学校又把教学重点放到专业课上(毕竟是职专,只为就业。),所以自己也还是没有重视英语学习。临近高考,我自己尽最大努力把所有英文资料背了一遍。结果还好,英语就失了几分。但只是死记硬背词句,有很多东西自己根本不理解。很可惜,那时候也没有能认识到英语对我以后的职业道路是那么的重要。

各种曲折进入大学,由于高中压抑的学习生活,在象牙塔中很多新奇东西吸引了我。最让我着迷的还是自由的学习生活,每天可以打篮球,玩澄海,不亦乐乎,忘乎所以。哪天心里低潮,觉得不能再这样堕落、荒废青春了,也会拿起英语书看看。偶尔也会心血来潮,打印类似背多少篇文章就会记会多少单词的英语学习技巧。但那只是三分热度,朋友一句“鹏程,3C啊”就给冷却了。就这样过了三年,自己的英语水平不进而退,好尴尬,但那时却没有觉得。

大学毕业以后,第一次面试就给了我很大的打击。面试者拿出一张A4纸,上面写了好几段英文。面试者要我把这张A4纸上说的是什么给弄清楚,并且要叙述给他听。当时我就脸红了,看了半天,支支吾吾的也没有说出个所以然。这次面试后,我开始认识到英语的重要性了,在平常的生活中不时的关注和提高英语。

但,最让我下决心开始刻意努力学习英语是在我到华威天立工作以后。由于公司特殊的工作性质,我接触英语开始多了起来,也逐渐对英语感兴趣了。去了一趟新加坡,让我觉得自己好渺小啊,自信的自己被打击的体无完肤。日常生活随没有什么压力,但那也是建立在他们都会说中文的基础上。在Agile Conference 2013上,那些大牛们演讲说的英语术语我80%都听不懂,还需要Alan帮我翻译,瞬间觉得这次来枉费了他的心意。还好,我没有退缩。带着歉意,我更加努力的学习英语。

好了,背景已经交代完,我已经认识到英语的重要性了。那么,重要性具体能在哪些方面体现呢? enter image description here

  • 出国旅游,不必担心到英语国家旅行时生活不能自理。 航班上空姐给你说话不会担心,不会尴尬地用中文回应。如果空姐嘴角一笑,然后用中文跟你说一遍,瞬间觉得自己被鄙视。如果空姐不会中文,那就更尴尬了,请自行补脑那些画面。
  • 餐馆点餐,如果不会英语,就只能手指点着一道菜的图片对着服务员说,this,and this one,是不是很low?如果菜单没有图片呢,请继续补脑。
  • 与世界接轨,可以多认识不同国家的朋友,了解不同国家的历史和文化,英语是与世界沟通的桥梁。如果英语好了,见识多了,亲朋好友有可能会拉着你一起出国游玩哦,因为他们不会英语啊哈哈。
  • 提升自己的人格魅力。本来自己也没有什么值得骄傲的,外观不能观,现在想要往矮肥圆发展,简直不能简直了。既然外表不足,那就让内心富足起来。和朋友在一起吃饭,就一顿饭的时间,不多的话语,也许别人就能通过谈吐了解到你内心修养。如果对方再是个伯乐,那自己通往成功的道路上,机会也许会更多一些。
  • 阅读英文原版技术书籍,这个没什么可说的。很多IT技术资料都是西方国家用英语写出来的,毕竟语言都是他们写的。国内的翻译版有时候可能翻译的不太准确,还是穿一手鞋来的更直接和准确一些。
  • 可以装A啊,地铁里拿一本纯英语书籍看、电脑手机语言都设置成英文、游玩遇到老外聊会天拍张照片、给老外指路是不是逼格很高?

要学好英语,最大的动力是我的梦想,带着老婆孩子游遍全世界,所以自己一定要加油。

离回家越来越近,写点什么吧。

BDA

不知不觉,已经在北京待了四个多月了,还有不到10天就要回家了。想想在北京这四个多月以来,自己都做了哪些有意义的事情呢?


工作

来北京本来是打算要闭门造车,我司Team成员在一起协作开发出一款新产品。可是到目前为止,也没有一个成型的产品可以拿出来Show的。但是,这并不代表我们没有努力,也在一点点探索,一步步的向前迈步。

学习

终于,我们转到Python了,新语言让我兴奋不已,求知若渴,迷失在Python的世界里。先不说其性能如何,光是简洁优雅的语法就已经让我爱上了这门语言。还有其灵活性,那么多的第三方library可以自由组合使用,太爽了。

Python is a powerful multiparadigm computer programming language, optimized for programmer productivity, code readability, and software quality. ——Mark Lutz

学会了微信公众号开发基础,也了解了怎么样运营一个微信公众号。在我们的新产品上使用了微信授权登录,总共写了PHP、ColdFusion和Python三个版本的Code,算是把微信授权登录给研究透彻了。其实,我想说,学习一门新技术时,必须静下心来学,认真细心是必须的。

读了如下几本书,包括技术类和人文类,当然,人文类的相对少一些,因为毕竟还要工作。

  • 《微信公众平台开发最佳实践》
  • 《用户体验要素》
  • 《在你身边,为你设计》
  • 《我们仨》
  • Make Your Own Text Adventure With Python
  • Flask.Web.Development.Developing.Web.Applications.with.Python

生活

带了两个亲戚走向开发这条不归路。过完年未出正月,我就带了两个学生,一个表哥,一个表弟。让他们照HTML->Div+Css->Javascript->MySQL->PHP这个路线学,其他人也都是这么过来的。我来了北京,带着表弟,表哥虽没有跟来,但是他自己在家学得也很不错。学了差不多四个月左右,现在各自也都找到了工作,并且还比较稳定,这是给我最大的欣慰。

这篇随笔,把妻儿放到最后写也代表了他们在我心里是最重要的。这四个多月以来,他们带给我的不只有欢乐,我知道我努力学习、工作的动力就是他们。每天早上醒来,看到身边一张稚嫩的小脸和另一张美丽的脸庞,就有勇气面对对未来的恐惧。大步向前,为让他们过上更幸福的生活。

This is my first time to use Mankdown to write.

Here are some tips for SQL

SQL Server

Concatenate rows into a comma-separated list,we can do it like this.

[tsql]
SELECT DISTINCT
usr.id, usr.name,
(SELECT STUFF((SELECT ‘,’+title FROM hobby_main AS hm WHERE hm.uid=usr.id FOR XML PATH(”)),1,1,”)) AS hobbies
FROM user AS usr
WHERE name = ‘Pengcheng’
[/tsql]

MySQL

I help my little brother to rank the running data in CampusRun app,there is a release date for this app.It calculates total distance from the release date when user’s registration date before the app release date,then calculates total distance from user’s registration date.so i have to use IF statement inside WHERE clause in SQL like below.

[mysql]
SELECT b.id, b.cnname, SUM(distance)/1000 AS total_distance
FROM `xm__run_infos_by_day` AS a
INNER JOIN `xm__member` AS b
ON a.ydq_openid = b.ydq_openid
WHERE IF(b.ydq_join_time < '1467450000', a.time >= ‘1467450000’, a.time >= b.ydq_join_time)
GROUP BY a.ydq_openid, b.cnname, b.id
ORDER BY SUM(distance)/1000 DESC
[/mysql]

Python Web Development 2 Questions

1.Why do we use virtual environments? The advantage of virtual environments is avoids the effects of different Python projects,each Python project has its own library and interpreter.

virtualenv is most popular tool of Python virtual environments config.It not only support Python 2 but also Python 3,it still can designate interpreter for each virtual environment,but doesn’t inherit the basic library. From Python 3.3,there is a  buildin virtual environment called venv,it similar to  virtualenv,but it only supports Python 3.3 and the versions after Python 3.3. So,we can use command

python -m venv myenv

to create our virtual environments,actually,the file of the command is Python Root\Tools\scripts\pyvenv.py,and the official website of the venv is

https://docs.python.org/3/library/venv.html,you can take a look at it.

Why do we use Blueprints? A system has many different modules,if we put all of the code into one file,the file size will be getting bigger and bigger,more and more code, it makes the code harder to maintain. It prone to error,and difficult to find the error where.And we have to spend more time to combine the code if multiple people work on the the same file. Blueprints allows us to separate the different routes,it also has different static resources.Another words,Blueprints makes the code more loose coupling,more flexible and code reusability.It still can increases efficiency for locating the errors and reduce the error rate. Look at this websites:

http://www.pythondoc.com/flask/blueprints.html http://flask.pocoo.org/docs/0.10/blueprints/

Setup Python

1.Creating virtual environments.

On Windows,just run the command like this.

if you don’t have the relevant PATH settings,you may have to invoke the pyvenv script as follows.

c:\Python35\python c:\Python35\Tools\Scripts\pyvenv.py venv

A virtural environments directory will be created when you run the command

2.Activate the virtual environments.

Once a venv has been created,it can be “activated” using a script in the venv’s binary directory,on Windows,in the Command-Prompt,we can run

venv\Scripts\activate.bat

to activate the virtual environments directly.

3.Install Flask.

Now,we are in the activated virtual environments,just run

pip install Flask

command,a few seconds later,the installation is complete.

4.Install pypyodbc

Still in virtual environments in Ccommand-Prompt,just run

pip install pypyodbc

to install it,look at the screenshot below.

How to install Python on Windows

Step 1.Download Python from the official Websites https://www.python.org/,i get the latest version of Python 3.5.1

Step 2. Just double click the python-3.5.1-amd64.exe to start the installation,then click Customize installation, select Add Python 3.5 to PATH,so that the install directory will be added to the system PATH.

Step 3. Cause of it is product environment,i deselect the Documention and IDLE,then click next button.

Step 4. Advanced Options,i just change install location to D:\Python\Python35,then click Install button to start installing Python.

Step 5. Setup was successful,just click the Colse button to finished installing.

Step 6. Check whether the installation is successful.Ctrl + R to open command prompt,type in python -V or python command,the installation is successful if what is seen in the below image.

 

Different Countries Have Different Kinds of Englishes

Voyages of people from England play an important part in spreading the English language.At present.English is frequently spoken as an official or common language in many countries,such as America,Singapore,Malaysia and some African countries.All based on British English,the English spoken in these countries can be well understood by native English speakers.But actually,these Englishes have been gradually changing in accents,spellings,expressions and the usage of vocabulary.Because of this fact,you can make use of the differences to tell which country the foreigners of your block are from.For example,if a boss fluently commands his driver,”Come up straight to my apartment by elevator and take some gas for my trucks and cabs”,instead of requesting,”Please come to my flat by lift and take some petrol for my lorries and taxis”,you can recognize his American identity,while the latter suggests that he is British.

New Words:

  • voyages
  • present
  • frequently
  • gradually
  • accents
  • vocabulary
  • foreigners
  • fluently
  • straight
  • flat
  • petrol
  • lorries
  • recognize
  • identity

Fall in Love with English

Hiding behind the loose dusty curtain,a teenager packed up his overcoat into the suitcase.He planned to leave home at dust though there was thunder and lightning outdoors.He had got to do this because he was tried of his parents’ nagging about his English study and didn’t want to go through it any longer.He couldn’t get along well with English and disliked joining in English classes because he thought his teacher ignored him on purpose.As a result,his score in each exam never added up to over 60.

His partner was concerned about him very much.She understood exactly what he was suffering from,but entirely disagreed with his idea.In order to calm him down and settle his problem,she talked with him face to face and swapped a series of learning tips with him.The items she set down helped him find the highway to studying English well.

The teenager was grateful and got great power from his friend’s words.Now,he has recovered from being upset and has fallen in love with English.

New Words:

  • loose
  • curtain
  • suitcase
  • dusk
  • thunder
  • lightning
  • nagging
  • partner
  • concerned
  • suffering
  • entirely
  • calm
  • settle
  • upset