Saturday, December 31, 2011

我的2011, 2012

很多人说年终的时候应该给自己写个总结 回顾一下自己过去的一年的好和不好 这样有助于自己未来的进步 也可以看到自己是如何的一点点变得成熟

我对自己的2011毫无怨言 以至于我的运气好到让我担心未来的发展是不是会有什么障碍 担心自己把好运全都用光 然后霉运不知道哪一天就会降临 看看我过去的一年都做到了什么吧

1. 继2010年底拿到mata32 ta职位后, 2011年1月份幸运的开始当3个mata33 tutorial的ta
2. 2010年12月底进行了2轮Google的phone screening, 3月份的时候有机会去Google NYC做on-site面试 虽然最后没有通过 但是经历十分可贵
3. 2月初进行的Amazon面试 因为自己不断地准备和表达出的强烈意愿 最终得到offer 收入不错
4. 1-4月的最后一个学期很顺利的完成了3.88的gpa 最后以distinction毕业 好成绩其实更多是由于贵人相助 不全是我的功劳
5. 7-8月开发了两个小的Android程序 放在android market上 累计有一两百个用户
6. 9月底在Amazon开始工作 主要做Kindle For PC/Mac 用C++
7. 11月得知会进入Cloud Reader 有机会学习HTML5

总结过去一年的学习 我一直没有停止去学习 从前期的准备面试 到后来的自学Android 再到如今的学习C++ Javascript HTML5. 学习让我充实 而不学则让我觉得很空虚 之所以一直没有停止学习 是因为我害怕浪费时间 所以学习的效率也不是很高 总是最初的一两天 比较带劲 而后就懒散了

总结过去几个月的工作 我并不满意 我至今还没有做出什么让大家称道的事情 虽然我早出晚归 但我的效率并不高 我是真的在用十个小时在做同事6个小时就能做出来的东西 工作的时候思考真的很不够 更多的时候是在照葫芦画瓢 所以真的到我要开始原创一些代码的时候我就觉得很吃力 不能好好思考理解的这个坏习惯给我带来的另外一个影响是让我无法提高效率 很多问题同事一眼就能看出答案 而我则需要找很久很久 

所以 在新的一年里

1. 我要更有效率的学习 不能只是为了弥补空虚而学习
2. 我要更积极地思考 尽量从模仿别人的状态下转入更多提出自己的东西
3. 要加强英语的学习 不能总是沉迷于中文之中 不要让语言成为自己进步的障碍
4. 多一点与人交流 多一点帮助别人
5. 多混一些像Stackoverflow这样的网站 看看真正的大牛是怎么样的 然后让自己变得更全面 更强
6. 多一些关心生活里的事情
7. 帮她在这里找一份工作
8. 多锻炼 多休息 注意体重
9. 多给家里一些帮助

过去的一年 我觉得最对不起的就是一直支持我的她 虽然她心里和嘴上一直在说让我回去她身边 但我知道她能够理解这是为我好 把她留在那里过寂寞的日子让我于心不忍 可我又没有办法去改变什么 只能让自己变得更好 对我们的感情更有信心 希望上天能够看得到 希望能够帮助我们永远的走下去




Saturday, November 26, 2011

Why do I want to use GitHub

GitHub can be a very useful tool for your career. It can probably help you in following ways:

1. Must-Have skill. 
Git is a tool that many companies will use in their daily development. So your Git skills can help you to get a job.

2. Opensource your personal profile
If you want to show your skills level to a recruiter or a hiring manager, your code maybe the best way for you to demonstrate your skills level. Having your project opensourced on Git would allow people to see your code and potentially improve your code quality

Thus far, these are all I can think of, but may add to this list later.

Friday, November 25, 2011

Need to learn how to write a blog

It has been a few month that I have this blog.

When I first started this blog, I wanted this place to be a place that I can put down my learning notes when I read something online. Then, when I started to do some Android programming, I put some announcement for my new project here. Now, since I started this job at Amazon, my life started to get busier and busier.

But I really don't want this place to lose its meaning. So let me try to start writing down what I learned and what I would like to share here. 

Hope I would have the time and enthusiasm to do this.

Happy Thanksgiving. 

Thursday, August 25, 2011

UTORLogin v1.0 available in Android Market~!


An application for University of Toronto students! This application will help you to login to the U of T wireless network easily. You just need to input your correct UTORid and password in the application and the application will log you in automatically! It is recommended that you put the App icon on your desktop so that you just need to launch the app to login your wireless account.

This application works at least in UTSC, if you are from other U of T campus, please comment below to let me know whether it works for you or not. Thanks!

Here is the link for the app on Android Marke


Friday, July 29, 2011

李开复说

一个世界有你,一个世界没有你,让二者的不同最大,就是你一生的意义。

人生在世,我们要用勇气改变可以改变的事情,用胸怀接受不可以改变的事情,并用智慧去分辨二者的不同。

Friday, June 24, 2011

Android Study Notes

Here are some of my study notes during the development process of TipsCalc.


Hide Soft Keyboard
- InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);

HideStatusBar (in Manifest)
- <activity android:name="blahblah"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
- .Fullscreen will hide status bar and title bar

Remove focus on Edit text from App startup
- <LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:focusable="true" android:focusableInTouchMode="true">

Prevent screen rotation
- <activity android:name=".TipsCalc" android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="portrait">
- the other direction is screenOrientation="landscape"

Set a different view when orientation changes
- http://stackoverflow.com/questions/456211/activity-restart-on-rotation-android

Keep data when rotation happens
- save everything in Bundle in onSaveInstanceState(Bundle outState)
- Bundle is like a dictionary in Python or hashtable in Java
- use method like Bundle.putString(key, value)
- restore everything when onRestoreInstanceState(Bundle savedInstanceState)
- use method like Bundle.getString(key, value)

EditText not fullscreen when landscape
- mEditText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);

Making an luncher Icon
http://blog.mikandi.com/all-entries/developers/design-developers/tutorial-design-a-simple-app-icon-with-photoshop/

End User Licensing
- http://bees4honey.com/blog/tutorial/adding-eula-to-android-app/


Checking WiFi/3G connected to a network (not on/off)
- ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
    if (mWifi.isConnected())
        //if wifi connected
NetworkInfo mMobile = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
    if (mMobile.isConnected())
        //if internet connected

Request Rating in Androd App Market
- http://www.androidsnippets.com/prompt-engaged-users-to-rate-your-app-in-the-android-market-appirater
- Code in UTORLogin maybe better

Progress Dialog and Android Threading
- http://www.vogella.de/articles/AndroidPerformance/article.html


TipsCalc v1.0 available in Android Market~!

TipsCalc is an application that helps users to calculate tips after each meal. This is my first time to develop an Android application, so there maybe many problems or bugs.

The development experience was great and Stackoverflow is extremely helpful for android development.

Here is the link for the app on Android Market.