Google PlusFacebookTwitter

小关注了一下JSR-334

By on Dec 11, 2010 in 急急如律 | 2 comments

从Joe Dacy的blog里看来的:Project Coin: JSR 334 Approved 。 特性看起来还不错,当然都是些小改动,所以这个JSR的主题也很谦卑:Small Enhancements to the JavaTM Programming Language,估计要到JDK 7了(这是当然…) Strings in switch Binary integral literals and underscores in numeric literals Multi-catch and more precise rethrow Improved Type Inference for Generic Instance Creation (diamond) try-with-resources statement Simplified Varargs Method Invocation 唉,有些特性其他语言都有了。Java最近的发展是比较迟缓呐… 是以为记,凑数…

IMAP登录Gmail时重复出现”Web Login Required”

By on Sep 9, 2010 in 急急如律 | 0 comments

刚python时遇到的,记录一下。人品真差。 具体症状如标题所说,通过IMAP登录Gmail时(我登录的是某Google Apps域下的email服务),程序遇到重复出现的“Web Login Required” LOGIN失败,并提示查看 http://mail.google.com/support/bin/answer.py?answer=78754。 按提示进入http://mail.google.com/support/bin/answer.py?answer=78754,发现一个比较快速的解决方法:访问清除/解除CAPTCHA。具体做法: 普通Gmail帐号:https://www.google.com/accounts/DisplayUnlockCaptcha Google Apps帐号:https://www.google.com/a/yourdomain.com/UnlockCaptcha ,把yourdomain.com替换成相应的Google Apps域。...