February 16th, 2010 by admin
No comments »
Recently I am creating a website for the e-commerce project. The basic idea is that we are creating an online matching platform to help US travelers find companions in China.
The website is already uploaded at www.youtrav.net. It is temporarily held by the school server.

February 8th, 2010 by admin
No comments »
Just updated my resume in the resume section.
Have to say job hunting is a pain and please bring me some good news as soon as possbile.

December 9th, 2009 by admin
2 comments »
The complete website has been uploaded to the official URL globalyouthconcept.org
More time should be spent on this site but exams are coming.
Have to say that life is not easy and it takes courage to keep on what you want.
Let’s go, Big Red!
November 20th, 2009 by admin
No comments »
I am in charge of creating the official website for Global Youth Concept, which is a charitable organization under Cornell Institute of Public Relation.
It was a fun work to do, although I have so much other work to do. I am quite fond of the basic style I created for the organization in two days.
The website is temporarily hosted under my website, you can visit it using alex-niu.com/GYC/index.html
And it will put on their official domain at GlobalYouthConcept.org next week.

September 15th, 2009 by admin
1 comment »
暑假参与的PROJECT终于修改完成正式上线,心里好激动啊。从这次RELEASE版本看,整体的流畅性和用户体验都好了很多。整个使用起来都非常的流畅。
旅游指南是为中国用户提供了集搜索目的地,旅游信息,热门地点,游记等等所集合的一个silverlight完成的旅游信息站点。个人认为整个信息量非常完成,提供了很多实用的功能。可能都已经到信息过多,无从下手的感觉了。
参与这个项目两个月,学到了很多东西。至少熟悉了silverlight和bing map SDK。 其中有不少小东西是我完成的,比如地图下的timeline,地图左上的contralbar等等。微软让我学到很多,也让我知道了很多很多的不足。到了康奈尔很多人都会问你经历,当我说I did two internships with Microsoft的时候,别人都会说哇哦。这学期会有两个大PROJECT需要做,一个会做MAP的东西,另一个做Eutainment game,而我要当System lead. 压力很大,但我也很期待能够踏踏实实的完成这个master’s degree。无可否认,我将会学到很多东西。
website: travel.msra.cn
Screen-shots:

July 6th, 2009 by admin
1 comment »
Google gives preview of its new product called Google Wave in Google I/O. It says that “Google Wave is a new tool for communication and collaboration on the web, coming later this year.” I have no idea what exactly it is but some people say that it is google’s new tool to compete with Flash/Silverlight. Will it be the new surprise from Google? Definitely it is. But will it change the situation of the whole RIA? I have no idea.
Check the pictures:
People can add their friends to Wave. And they can plan the activities for their friends.

Combined with google’s various tools such as Google map search blah blah blah, people can share their views.

And use the google map functions, they can plan the routine and etc.

ANYWAY, I do not have super interest on this product because It sounds more like a super chatting room. But google will never let us down, will they?
July 5th, 2009 by admin
1 comment »
最近遇到silverlight2中序列和反序列以及存储的问题,总结了一下。
因为silverlight2库的问题,silverlight2并不支持BinaryFormatter的序列化和反序列化的方式。如果要实现序列化,可以是用XML的方式。不过我们也可以运用System.Runtime.Serialization里面的DataContractSerializer来实现。
结合silverlight2的独立储存技术,让我们来看看如何运用DataContractSerializer来serialize object. Note that the object will be serailized to an XML format and saved in the directory of “C:\users\Administrator\AppData\LocalLow\Microsoft\Silverlight\….. The default maximum volume of the XML file is 1MB which is supported by Silverlight 2. But you can apply for larger space using “TryIncreaseQuotaTo” under “IsolatedStorageFile”
So if we have an object called List<FavoriteItem> for saving user’s controls last time. We want to save it and automatically load it next time the users comes again.
You can then use the DataContractSerializer as follows to save List<FavoriteItem>data to Iso storage:
序列化List<FavoriteItem>对象
public List<FavoriteItem> FavoriteList = new List<FavoriteItem>();
public string strFile = "favorite.xml";
public void saveFavorite()
{
try
{
//apply for the storage in Silverlight
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{
string dirPath = "MyDir";
if (!store.DirectoryExists(dirPath))
{
//Create directory
store.CreateDirectory("MyDir");
}
string filePath = Path.Combine("MyDir", strFile);
//MessageBox.Show(strFile);
if (store.FileExists(filePath))
{
store.DeleteFile(filePath);
}
//Serialize using DateContractSerializer
IsolatedStorageFileStream fileStream = store.CreateFile(filePath);
DataContractSerializer serializer = new DataContractSerializer(typeof(List<FavoriteItem>));
serializer.WriteObject(fileStream, FavoriteList);
fileStream.Close();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
And the following to read it:
反序列化List<FavoriteItem>
public List<FavoriteItem> loadFavorite()
{
try
{
List<FavoriteItem> listHistory;
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{
string filePath = Path.Combine("MyDir", strFile);
if (store.FileExists(filePath))
{
//Deserialize
IsolatedStorageFileStream fileStream = store.OpenFile(filePath, FileMode.Open);
DataContractSerializer serializer = new DataContractSerializer(typeof(List<FavoriteItem>));
listHistory = (List<FavoriteItem>)serializer.ReadObject(fileStream);
fileStream.Close();
return listHistory;
}
else
{
return null;
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return null;
}
}
Thanks for visiting and pointing out mistakes. 原创转载请注明。
Alex Niu
July 1st, 2009 by admin
No comments »
天天也不知道在公司留到那么晚干什么 主要回去也没什么事情做
今天终于把TIMELINE那个老大难问题解决了 现在又在弄Virtual Earth Map的SDK 很是头痛 反正心情有点LOW
学了很多SILVERLIGHT的东西 最近又想法说把这个网站用SILVERLIGHT好好做一下 也算是一直以来的一个梦想 想好好自己设计并且做一个像样的网站 特别是做了SILVERLIGHT以后 毕竟目前熟练SILVERLIGHT的人并不多 也算是一个技能
SHARE一下今天看到的HARRY一段视频 介绍BING的 很不错
Play Video