Showing posts with label Louis. Show all posts
Showing posts with label Louis. Show all posts

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, 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.

Tuesday, February 15, 2011

Keep moving forward

I received an offer from Amazon today for a Full-Time Software Development Engineer position in Seattle. 


This is the news that I have been waiting for a long time.


I am lucky.... and I will keep moving forward...

Saturday, February 12, 2011

Where Yiwen Learn

我觉得人应该和比自己有智慧的人比自己成功的人交流
我不智慧也不成功
所以我和他们交流的方式也只有我单向的从他们那里摄取
有的时候看到这些人说的话写的字十分有道理
苦于日子久了这些就都忘了
所以我想在这里记录下来我看到的喜欢的一切能对人生起到积极作用的东西