Filed under Tech

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

ADSL也能被盗?

晚上上网上不去..打电话去铁通服务部问,说是已经有人在线了… 等过阵子让有关人员帮助维修一下. 后来还真弄好了,说你的密码可能被盗了。不就是默认密码我没有改么 =.= 郁闷。