Welcome to ExoPlanet

ExoPlanet aggregates blog entries written by ExoBloggers

Winners High Noon Video Showdown

Posted on September 2, 2010 at 11:54 AM by HappyLatte RSS

Yeehaa! The video shooting contest is over, back to real guns now!
We’ll be happy to announce the winners of the grande finale today
With 662 views the 1 st of 400 wampum goes to Mustafatan
Video:
http://www.youtube.com/watch?v=u8lGZ0xF3yA
The other two 300 wampum prizes will be given to:
Leader1976
http://www.youtube.com/watch?v=TaszTAV2K2I
Nathan Sifu
http://www.youtube.com/watch?v=5Tq9l1NlGn8

Yeehaa! The video shooting contest is over, back to real guns now!
We’ll be happy to announce the winners of the grande finale today

.

With 662 views the 1 st prize of 400 wampum goes to Mustafatan
 with Video:
http://www.youtube.com/watch?v=u8lGZ0xF3yA

The other two 300 wampum prizes will be given to:

Leader1976 
http://www.youtube.com/watch?v=TaszTAV2K2I
Nathan Sifu 
http://www.youtube.com/watch?v=5Tq9l1NlGn8

Thanks guys, great job! =)

Read more »

High Noon Video Showdown (Aug 18th – Sep 1st)

Posted on August 18, 2010 at 3:51 PM by HappyLatte RSS

High Noon Video Showdown

We’re giving away 1,000 wampum in prizes!!

Holster your guns and whip out your video cameras for a chance to win 400 wampum and a special director’s hat.  Entering is easy: just create a video clip featuring the iPhone game High Noon and upload it to YouTube (see details below).


We’ll be giving away three wampum prizes: 400 wampum will go the video with the most views, and two 300 wampum prizes will be given to videos based on creative merits (we’ll know it when we see it! :) )


On September 2nd we’ll look at the submissions and announce the winners.  Email: highnoon-support@happylatte.com for questions and comments!


Contest requirements

*Video must be at least 30 seconds long, and must be uploaded to YouTube before September 1st
*Video must include a note at the end telling people where to find High Noon (see details below)
*The link to your video must be posted as a comment on this blog post (link to it)

Video creation process

  1. Create an account on YouTube or Google if you don’t already have one
  2. Upload a video or record a video from your webcam (less than 2GB and 15 minutes, and adhering to theYouTube content restrictions)
  3. Refer to High Noon at the end – Go to the video that you just uploaded > Edit Video > Annotations > Add Note (2nd + button on the bottom right)
    1. Enter Text: Search for High Noon Reloaded in the Apple App Store!
    2. Enter Time: First box is the beginning time. Second box is ending time. (Must be at least 10 sec long)
      1. For Example, my video is 1:00 minute long and I want the HN link to show the note for at the last 10 seconds.
      2. It’d look like something like (0:00:50:0) —> (0:01:00:0)
    3. Personalize Text Box: You can also personalize the boxes to High Noon link by adding colors
      1. Play your video > Click on the note you added > Change annotation color (the color circle button)
  4. Promote the video by posting it to Facebook, Twitter, etc
    1. Obtain more views from your friends by linking your video to your Facebook account.
      1. > www.youtube.com (scroll down) > F Connect > Allow
  5. If your video is in a foreign language, please provide a translation or a description of your content.

Stuck on ideas?  Here are some: write a poem, sing a song, create a dance, film a short movie, make an ad for High Noon Reloaded, show off your amazing shooting skills, High Noon fashion show…


- Happylatte

Read more »

被一个javascript问题折磨半个晚上!

Posted on August 9, 2010 at 6:26 PM by Morning RSS

写了一段javascript,
[/code]
function send(strCmd) {
    cmd = strCmd.split(" ", 1)[0];
    args = strCmd.slice(cmd.length + 1);
}
[/code]
在Firefox,Chrome下执行一切正常,唯独到了IE下,总是出现“对象不支持此属性或方法”错误。
搜索+纠结了很久,才发现cmd和args前没有写var声明变量。

在这里佩服一下IE对javascript的严谨,赞美一下Firefox和Chrome对javascript的包容。

Read more »

Living with an iPhone

Posted on July 30, 2010 at 12:51 PM by HappyLatte RSS

Feb 6th, 2010

Blue Ocean Network (BON) featuring Happylatte’s Partner and Creator Michael Welch and Senior Software Developer Favo Yang on the topic of iPhones in China.

Michael and Favo provided us great insights and useful recommendations on iPhone apps and usages. They are also here to share with you some of their own experiences with Happylatte and help you understand our company at a deeper level. Here, they tell you some behind-the-scenes stories on how our games came about. Watch the video to find out:

http://www.bonlive.com/11/60/1889-living-with-an-iphone-part-1.shtml

http://www.bonlive.com/11/60/1888-living-with-an-iphone-part-2.shtml

In the second video, Roseann Lake discussed the topic of “Playing Pee Monkey in the bathroom” and how many users play in the loo. It definitely adds to the atmosphere of the game: could be a great motivation to wake you up in the morning or a short entertainment to relief your stress from work! Enjoy :)

Read more »

用USB-Serial連接La Fonera 2100,并啟用SSH

Posted on July 6, 2010 at 5:44 AM by Liwen RSS

不知道什麼原因路由器裡修改過的配置都被抹掉了。那晚打雷,還停電了…

-----------------

2007年中文網誌年會,我狗屎運的得了一個很漂亮的La Fonera 2100路由器,一直用著沒出啥問題。

La Fonera 2100

有一天我去網通網站隨便看看,突然測試強迫症發作,想試試修改ADSL用戶名。網通規定修改用戶名時,新用戶名必須以“*” – 星號開頭。改唄,貌似也沒啥,然後杯具就發生。發現路由器配置頁面的表單是不允許輸入星號的。-_-! 打電話給網通,編個故事說,帳號被已經搬走且反目的同屋修改,自己不知道現在該怎麼登陸,請求恢復成默認的帳號密碼。答覆是,Windows下沒有問題,其他環境,比如路由器網通不提供支持。-_-!

Linux裡撥號是可以寫星號的,因為只是個文本配置文件。但我不能只讓這一台電腦上網其啊。
La Fonera支持被刷。如果能登陸進去,手動改改配置文件,即可更自由。

重啟後,長按Reset的方法,試了很多次…不管用。很難過,考慮是不是去買個新的支持OpenWRT的路由器。不便宜幾百塊,而且明明,我有一個路由器… 賭一把,弄根串口線刷刷看。試了幾根手機線做的usb-serial後,都沒成功。我就不信了…從淘寶買了一根PL2303的連接線,絕對環保,電路板和芯片都裸在外面。一頓折騰後,我的路由器終於又可以撥號。網通會生氣吧。:D

這次記錄步驟如下:

1. 驅動

Mac OS X版的PL2303驅動在這裡下載。安裝方法試將解壓縮得到的.kext目錄拷貝到/System/Library/Extensions目錄下,重啟。
連接線接上後,應該會出現一個/dev/tty.PL2303-xxx文件。

Windows版本可在這裡找到,Windows 7下可以用,不知道別的Windows能用不能。如果不能,可參考這個帖子。如果驅動與Windows版本不一樣,會有啟動不了設備的問題出現。但基本只要找到相應的PL2303驅動即可。

2. 終端連接串口

具體連接方式,請看 http://66.49.218.210/?p=10 。

3. 用終端程序連接

我以前用的是Windows下的hyperterminal

這次用的screen,啥設置都不需要做竟然就可以用了。

一定要先把連接線USB端接電腦,否則電腦沒有/dev/tty.PL2303-xxxx的設備沒法開終端等著。
如果發現不能啟動,可以先將TX線拔掉,通電後迅速插上。成功啟動的話會顯示如下信息。

+PHY ID is 0022:5521
Ethernet eth0: MAC address 00:18:84:16:74:78
IP: 0.0.0.0/255.255.255.255, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.0 – built 16:57:58, Aug 7 2006

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51
RAM: 0×80000000-0×81000000, [0x80040450-0x80fe1000] available
FLASH: 0xa8000000 – 0xa87f0000, 128 blocks of 0×00010000 bytes each.
== Executing boot script in 1.000 seconds – enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
…(略)…
Please press Enter to activate this console.
…(略)…

看到

Please press Enter to activate this console.

便可按回車鍵激活終端。

4. 修改配置

BusyBox v1.1.3 (2006.11.21-19:49+0000) Built-in shell (ash)
Enter ‘help’ for a list of built-in commands.

_______ _______ _______
| ____|| || _ |
| ____|| – || | | |
| | |_______||__| |__|
|___|

Fonera Firmware (Version 0.7.1 rev 1) ————-
*
* Based on OpenWrt – http://openwrt.org
* Powered by FON – http://www.fon.com
—————————————————
root@OpenWrt:/#

後面的操作,參考這篇文章。

主要步驟有,啟用dropbear來做SSH服務器

root@OpenWrt:/# mv /etc/init.d/dropbear /etc/init.d/S50dropbear

編輯/etc/firewall.user文件

root@OpenWrt:~# vi /etc/firewall.user

在firewall.user裡啟用下面兩行iptable命令,允許訪問22端口。

### Open port to WAN
## — This allows port 22 to be answered by (dropbear on) the router
iptables -t nat -A prerouting_rule -i $WAN -p tcp –dport 22 -j ACCEPT
iptables -A input_rule -i $WAN -p tcp –dport 22 -j ACCEPT

重啟。可以ssh到路由器了。

編輯/etc/config/fon文件

root@OpenWrt:/# vi /etc/config/fon

主要修改如下信息

config network wan
option mode ‘pppoe’
option username ‘_username_’
option password ‘_password_’

修改局域網的網段,默認為192.168.10.1/255.255.255.0 ,我改成了如下樣子。

config network lan
option mode static
option ipaddr ’10.10.10.1′
option netmask ’255.255.255.0′
option dhcp ’1′

默認用戶名密碼,都是admin/admin。admin也就是root,用passwd命令可以修改。

重啟。搞定,又可以在家wifi了。


Tags: , , ,
No comment

Read more »

doit slides (pycon asia-pacific 2010)

Posted on June 29, 2010 at 10:00 PM by Eduardo RSS

Here are the slides of my doit presentation at pycon apac 2010


Read more »

使用RAMHost的Mini VPS翻牆

Posted on June 28, 2010 at 11:12 PM by Liwen RSS

突然之間翻牆就成了必備技能之一。
我用RAMHost的Mini VPS嘗試了幾種翻牆的方式。
操作系統是Debian 5.0。

通過VPN翻牆 – OpenVPN+Tunnelblick

全局都翻牆且不用設置瀏覽器,客戶端一點就可以。

具體步驟參考RAMHost用戶論壇的第四個帖子。唯一需要注意的是第四步在/etc/rc.local中加入每小時自動重啟OpenVPN的命令。這還真是必須的,因為/dev/tun會在重啟的時候丟掉,可能是OpenVZ的原因吧。

我使用Tunnelblick做客戶端來連VPN。
下載安裝後,需要將openvpn.conf放在如下位置~/Library/Application Support/Tunnelblick/Configurations/

openvpn.conf中引用的*.crt和*.key也放這裡即可。

當晚(其實大概天快亮了-_-!)試過看HuluYoutube等高清視頻很流暢。

好處多多,壞處就是得拷貝那几個證書文件給客戶端。(更喜歡PPTP要求用戶名密碼的方式,但OpenVZ)

代理服務器 – Squid

GFW是強大的,直接用Squid仍然會被墻。

更安全的代理服務器 – Squid+Stunnel

請教了一下Fantix,他用Stunnel給Squid加密的方法來解決這個問題。

我用的Squid3,需要啟用lenny-backports才能找到。其實默認的Squid2.7也可以。裝好後,默認配置就能用。
簡化版本如下:

visible_hostname proxy.sunliwen.com
cache_effective_user proxy proxy
http_port 3128
acl localnet src 127.0.0.0/24
http_access allow localnet

因為我要用Stunnel包加密,所以只允許本地訪問。
配置Stunnel之前先測試一下Squid是否可以走通,免的不方便查錯。

export HTTP_PROXY=http://localhost:3128
elinks www.youtube.com

配置Stunnel可參考這篇

MacOSX下安裝stunnel

$ sudo port install stunnel

配置文件以及在sever端生成的pem文件放在/opt/local/etc/stunnel下

$ ls /opt/local/etc/stunnel/
stunnel.conf stunnel.pem

然後在客戶端本地運行一下/opt/local/bin/stunnel3後,http://localhost:8080 便成了一個安全的代理。

比較

前者比較方便,但不是很穩定,鏈接會自動斷開,重新鏈接VPN可以恢復。
後者需要在瀏覽器上進行設置,但比較穩定,沒出過什麼問題。

兩種方法速度差不多,都比裸的Squid慢。

PS:Hulu - 通過VPN可以看,Squid代理卻不行。
後者具體情況是,在播放完廣告之後報告一個錯

Sorry, we are unable to stream this video. Please check your Internet connection and try again.

點“reload the video”,重新放了一遍廣告,錯誤依舊。可能Hulu已經不僅僅在播放前查IP了


Read more »

MacPorts安裝Mercurial和自動補齊

Posted on June 18, 2010 at 3:21 PM by Liwen RSS

使用macports默認安裝mercurial時,沒有自動補齊。
解決方法如下:

$ sudo port install mercurial +bash_completion

用macports可以安裝各種開源的程序,只是小心不要為了用個小工具比如Gnome的vino而裝了幾百兆的依賴。-_-!


Read more »

Ramhost的VPS

Posted on June 18, 2010 at 3:12 PM by Liwen RSS

讀了很多VPS評測的文章,最後選擇了非常有誘惑力的Ramhost (基本只有好評)

第一次使用ssh登錄

https://ramhost.us/?page=vps-console

添加用戶

# adduser liwen

安裝sshd

# apt-get install openssh-server

安裝vim

# apt-get install vim

安裝sudo

# apt-get install sudo

安裝apache/php5

# apt-get install apache2-mpm-prefork libapache2-mod-php5 php5-cgi php5-mysql php5-mcrypt php5-gd php5-sqlite

安裝ZendOptimizer (參考:http://www.debiantutorials.net/installing-zend-optimizer/)

# wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

安裝mysql

# apt-get install mysql-server

添加用戶到www-data組

# usermod -G www-data liwen
# id liwen
uid=1000(liwen) gid=1000(liwen) groups=1000(liwen),33(www-data)

解決locale錯誤信息

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “en_US.utf8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).

解决方法

# apt-get install locales

# dpkg-reconfigure locales

查看vps狀態
https://my.ramhost.us/v2/vps/cp/?page=main


Read more »

Castle in the Sky

Posted on May 18, 2010 at 6:13 PM by Fantix RSS

继续。宫崎骏经典之作《天空之城》的主题曲《君をのせて》(或者叫《Innocent》或者叫《纯洁》),久石让作曲。这注定是一首意义非凡的曲子,刷完在机器里躺了一个星期,今天才想起来发出来。这个版本是笔者从数十首 MIDI 中选出来的,一方面不算难弹,另一方面不算难听,还算稍微完整一点。原曲是降E大调的,被我活活换成C大调了,电钢的就往上掰三个调调吧。

下载 Nted 源文件PDFMIDIOGG

第一页:

Read more »

page 1 of 147 (1461 posts) >>