3 Doors 1 Car 2 Goats

public class Main {     private static Logger logger = Logger.getLogger("Random");      public static void main(String[] args) {         String[] coins = {"L", "L", "W"};         Random r = new Random();         double total = 0;         double win = 0;         for(int i=0; i<100; i++) {           int fc = r.nextInt(3);           String fcs … Continue reading

Fixing slow code assist for Android in Eclipse Helios

The issue with JavaDoc causing code asssist freezes is indeed a problem in Eclipse Helios (not in Android JavaDoc files). This is fixed for 3.7: https://bugs.eclipse.org/bugs/show_bug.cgi?id=329288 There is a back-port of this fix for Eclipse 3.6 SR1, discussed here: http://groups.google.com/group/android-developers/msg/0f9d2a852e661cba Applying the fix is easy, you just replace org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar inside your Eclipse plugins folder with … Continue reading

Android Emulator Screen Too Large

From within Eclipse: Go to Window -> Android SDK and AVD Manager -> Virtual Devices Select the AVD you want to launch and click Start Check the "Scale display to real size" button Enter how big you want it to appear in inches and press Launch. For this to work, you’ll have to also enter … Continue reading

MySQL := & = MySQL := 与 =的区别

One way to set a user-defined variable is by issuing a SET statement: SET @var_name = expr [, @var_name = expr] … 1) For SET, either = or := can be used as the assignment operator. 在SET语句中,=和:=没有区别,都用于赋值。 2) You can also assign a value to a user variable in statements other than SET. In this … Continue reading

新年

最近过得混混沌沌。感冒也让我在双节宅了好久。没有为自己的2008做总结,没有及时给朋友送上2009新年的祝福。抱歉。 希望时时有今日的及时雨,能冲去心中的污秽。 希望如大家所愿,新年快乐每一天。

吓唬人

差点湿了裤子, 一只蛤蟆突然和我赤裸相对, 我不是怕青蛙, 只是因为太“突然”。

Marina Barrage 游记

Marina Barrage, 享受着习习的海风, 漫步于隔海的堤坝之上,穿梭在熙熙攘攘的俊男靓女之中,自有一番情趣。 侧目,回首,靠! 和我一起来的只有男生。 不过还好,我们都有自己的任务,我们要捕获下那美好的瞬间。 随行杂照,以悦大众。 隔海堤坝,左淡水,右海水。 四杆朝天的屋顶建筑   海中的栈桥,体会被海包围的感觉 陪伴我左右的男人,你相机中有我,我相机中有你,偶尔还有被偷拍的美女 看!看!我刚偷拍到一个美女!! Marina Barrage, 一个值得去体会的地方。特别是谈情说爱,晚间的市区的霓虹灯夜色,为你勾勒出暧昧的气氛。 注:最好有车自驾游。虽说有班车,但是不会到很晚。如果太晚,叫TAXI也是一个办法。

CANTEEN 1 外婆家鸳鸯火锅

帮忙做个广告。吃人的嘴短,拿人的手短。 物美价廉,价格公道。起码从照片上看,卖相不错。=) 上个老板和火锅的近照,看得出来,老板是个羽毛球迷。