Stop motion movie to Shunshun
my first stop motion movie. Even though the actual movie is only 36 seconds, but it did take three of us a lot of efforts =) Plz check it out!
November 24th, 2009 by Ming | No Comments »my first stop motion movie. Even though the actual movie is only 36 seconds, but it did take three of us a lot of efforts =) Plz check it out!
November 24th, 2009 by Ming | No Comments »haha, today randomlunch.se finally comes alive. This is an interesting site Jossan, Niklas and me did during our spare time. It randomly generates a lunch restaurant suggestion for you according to the provided location. Too bad that we only have restaurants information in Göteborg Sweden now, but there will be more cities involved soon we hope.
The site is still not completely done, there will be more functionalities added later such as, adding restaurant by user, location auto completion, improvements on display directions in the result map…
So plz check the site out and feel free to contact us or even contribute.
August 10th, 2009 by Ming | 5 Comments »When coding in javascript, some people may wonder how to pass extra parameters to the event handler function. Here is a workaround hope can help you:
blow the example is coded using prototype
$(el).observe('click', function(e){ EVENT_HANDLER_FUNCTION(e, para1, para2, ...)})
I guess the example code is quite self-explaining, hope can help =)
July 28th, 2009 by Ming | 2 Comments »I discovered recently that it causes headache when using mouseover and mouseout events together on one HTML element. This will not have any problem if that element does not have any child element, otherwise, the problem starts. My problem occurred when I tried to use special effects when mouseover and mouseout of an element which has one child element. The effects became to be very flickering. After a while of searching on the internet as usual, I found a post which explains the problem very well. It is because:
First mouseover event is fired when mouse over the REAL observed element, and then when the mouse moves into the child element, it thinks that your mouse has moved out from the REAL observed element so that its mouseout event is fired, but soon it realizes that the mouse is still within the area of its parent and then fires again its mouseover event….
I guess in most of the cases, this is not a proper behavor that one wants to be. Below I have pasted some code that I found which solves my problem very well:
function isMouseLeaveOrEnter(e, handler) {
if (e.type != 'mouseout' && e.type != 'mouseover') return false;
var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ?
e.toElement : e.fromElement;
while (reltg && reltg != handler)
reltg = reltg.parentNode;
return (reltg != handler);
}
In the code above, e is the element which the current event belongs to and handler is the REAL observed element. The problem is solved by calling this function before executing your real event handler’s code.
I hope this could help anyone else who has this similar annoying problems.
July 27th, 2009 by Ming | 1 Comment »最近心情不好。。。发生了好多不好的事情, 工作上的, 家里的, 感情的, 感觉非常的不顺利, 可能是之前我实在太顺利了, 也没有遇到什么很大的挫折, 生活上也是被溺爱着, 感情上也缺乏经验。。。不过这就是生活吧, 总是有起有落, 就像我一直相信的一样, 运气是守恒的 =). 生活还得继续, 还有很多重要的事情需要我努力, 希望这段时间能很快过去, 一切可以走上正轨~~ Good luck to myself!
July 26th, 2009 by Ming | 9 Comments »经过了一段短暂而神奇的经历。。。又开始了原来的生活, 工作工作工作~~希望一切顺利!
July 19th, 2009 by Ming | 3 Comments »缘分是啥?那是电视里骗收视率的把戏~~以前我从来不相信。
最近通过种种的亲身感受, 使我渐渐开始相信可能真有缘分这东西。。。2个人能从茫茫人海中相识, 相恋, 到最后相爱真得不是一件容易的事情! 以前听人说, 人的一生能有1,2个真正的好朋友就已经是很庆幸的事情了, 更何况是找到那个互相适合的另一半? 有的人可能一路上有过很多个男/女朋友, 但是最终都由于某些原因而没有走下去, 这都是很可怜的事情, 但是也可能是没有缘分吧… 感情是两个人的事情, 很多小的事情都有可能造成是分手的导火索, 所以我个人的感觉, 一旦找到合适的另一半, 请千万珍惜~~不要等到了错过或者失去才感到后悔. 也不要永远期待着更好地而错失眼前的那个人. 感情没有好和坏, 只有合适和不合适.
祝大家早日找到另一半, 希望那些已经很幸运的找到的人们, 请珍惜现在的幸福并且努力维持下去~~~~
July 12th, 2009 by Ming | 4 Comments »Drupal is one of the popular platforms which let users easily publish, manage and orgnize rich contents on the web. It is very similiar to Wordpress.
Personally, I have never heard of it before last month. I started with a new web site project last month and I was supposed to use drupal to build it. Due to the blogish looking of Drupal’s default theme, my first task was to figure out how can customize the theme as our designer designed. After a while of searching on the internet, I realized that it is quite generic to do so in Drupal. What I needed to do was copy one of the themes that come along with Drupal to the folder sites& where my subsite is located. Then I needed to change some information in .info file and that will do it for a clean start! After I have done those all, in the admin panel of my site, I was able to enable and choose my customized theme.
One thing that needs to be mentioned is the plugin modules of Drupal. To make things a lot easier, there are some plugins that I really recommand to install. For example, views module, filterbynodetype, webform, block theme, block css, markdown and etc. Those modules would do a great help for your implementing.
Customzation in Drupal in gernal is fairly flexiable, web pages are defined by page temple, every content is defined as a “node” in the system which are controled by its template too. All those templates can be modified, for instance, by different node type or pages. (Thanks for the help of necessary modules.) To be able to have more control of the site, one file is quite important. One can create a tempalte.php file in the custom theme folder in which can write functions that overwrite some of Drupal’s default functions, such as function for rendering HTML element like table and list. This is a pretty neat way to add extra info as custom wishes.
Unfortunately that web site took me almost an entire month to finish and that was due to the unfimilarness of Drupal. A lot of time that I spent was to find helpful modules and the customization. And I still think what I have discovered is just a tip of an iceberg, but I would like to know more about it later on. Please let me know if you have some questions about it and I really would like to discuss with you guys.
July 11th, 2009 by Ming | 11 Comments »Something new:
从明天开始我就要搬家到Bielefeld了,心情不安又激动,最感动的是朋友们悄悄为我集了签名T恤。其实我不是一个善于表达情感的人,特别是对于友情,心里感动,但话到嘴边,却不知道怎么甜蜜地表达。其实我心里是非常感动的。朋友们说我是一个不会social的人,可能是吧,我想,真诚留在心里,大家应该都明白的。最开心的是,搬到Bielefeld就离开晓明近很多了,虽然坐在房间里的时候,也感觉不到变近,但心里会觉得哥德堡其实就在我北面一点点,呵呵。
Something sad:
Micheal Jackson辞世了。我觉得,姑且不论那些整容新闻和虐童案,就音乐才能和舞蹈表演,确实无人能出其右。我曾经看过他的Music Video,着实有被震到的感觉,非常之惊艳。其实我不是特别粉他,但从心里尊敬他,作为一个艺人,我尊敬他曾经为流行歌坛做出的贡献。”Heal the world” and let’s “beat it.”
27.06.2009 阴有时有雨 Lily
June 28th, 2009 by lily2009 | 6 Comments »哈哈, 日子过得很快, 我和Lily在一起已经一个月了, 所以首先! 祝我们1月周年快乐!! 也许是由于我们是老同学的关系, 彼此的相处并不是很陌生, 我们也几乎无事不谈。 我很能理解她过去的经历并且希望她今后能够过得越来越好。 我很享受两人之间开诚布公的谈话, 和一起讨论某一件事情或是开心上的帖子的感觉。
谈恋爱不是一件很容易的事情, 甚至可以说是一门学问, 需要两人不断的磨合。 但是更重要是, 需要两人都具有对于这份感情坚定的信心, 尤其是对于我们这样的两地恋爱。我对于恋爱技巧并不是很在行, 但是我还是很有信心的。希望我们能够更多地互相了解, 知道对方的喜好, 了解彼此的内心想法甚至生气的样子=). 下个月我准备去看Lily, 并且陪她几天, 这样的话我们第二个月的纪念就可以一起过了!也~~~
很快Lily就要正是工作了, 新的家, 新的城市, 新的工作,万事开头难, 有困难有怨言有不开心的事情可以随时和我讲,我身处另一个城市, 能帮助你的就是在背后支持你。 我相信很快你就会熟悉新的环境和工作, 开始一段新的好生活!=)
Again, 期待下个月!
June 26th, 2009 by Ming | 11 Comments »