java string split – escape |

You read the java doc. Yep, super easy.

String s=”a,b,c”

String () aStr=s.split(“,”);

aStr will hold

A b c

How about if s is “a|b”?

Before pulling your hairs off, here is the answer:

S.split(“\\|”);

Do think about it why, though.

Answer: Because | and \ are special characters in java so you have to escape them.

在ipad上阅读中文PDF的问题‏

这是我用WORD文件转成的PDF文件,用以测试用ipad是否能阅读PDF文件。

通过email传来的《文明小史》等PDF文件无法在ipad,ipod 和我的XP 电脑上test-pdf阅读,所以应该是email 所传pdf 文件本身的问题。

=========

进一步测试表明,用我刚刚生成的pdf文件,在ipad上作为email附件阅读没有问题,ezshare PDF阅读器或者用浏览器看都没有问题。

Ipod touch: jailbreak’ed!

Finally tonight I got iPod touch jailbreaked!

You have to have redra0n and 3.1.2 firmware ready for iphone os 3.1.3. I know this is tricky as per iPhone dev team this is a loophole.

You’d be careful every upgrade past 3.1.2 from apple could wiie out your jailbreak data!

Proof of a big girl

Yesterday during dinner time, mm did not cry even without sitting by mom; this is a Big improvement.

Mm also had soup with her rice; she used to have rice without soup. This the first time in recent time. Or is this because the tomato/egg soup mom prepared too good to resist?

We did not tellmm until she finishes dinner. Yy know what I meant but kept the secret till mmfinishrs her dinner.

Ipad

Got one yesterday on it’s first day release. This is a bigger iPod touch, – I am not joking, it ya exactly bigger iPod touch, no built-in mic or web cam what so ever. By the Way, if you need mic for voice memo or voip calls, buy an apple earphone with remote and mic. It is available in applestore or online And costs about thirty bucks. I tried one in apple store in a mall yesterday.Being the first release of ipad, it’s so crowded over there, so I can not tell if the recotding quality is up to par. But it did record the sound.

Some apps are only avialble for ipad.

Today

Sent y to dr jones. Have to ask her to take lxp at night instead of morning to avoid being too sleepying during the day.

Y and the famly Yogoed a bit in the
Morning. Huilan yoga is smothg but the connection from youku is Lind of spotty after halfway through.

Took a walk in the afternoon. Yy is scootering and mm is biking-her small bike with supporting wheels.

我们还有隐私权吗?

 
报载四川一网民在家下载色情图片被捕,被罚3000元。

我们公民还有隐私权吗?在政府官员用公款吃喝嫖赌的今天,平头百姓在家看什么也须政府管理吗?

那些负责抓人的警察,拿着纳税人的钱,能否做点更有意义的事呢?

这种政府能否把精力放在更有意义的事情上呢?

一声叹息。

> 相关阅读(google the news below):

  男子在家下色情图被罚:据称遭熟人认出精神崩溃

  男子在家下载色情图片被罚3000元

一天的流水帐

本来想去outlet mall的,天公不作美,下起了蒙蒙细雨。后来改作在社区内散步,刚出门,微雨丶大风再加上寒冷的空气,终于让我们彻底打消了出门的念头。

昨天还是阳光灿烂,宛若暑天,今天却如寒冬一般,只能乖乖地缩在家里。只是刚刚洒过除草剂的草地,不知杂草明日会否卷土重来?

今天有同行的阳光
有暧昧的风
模糊的空气

杏花春雨的时候
我特立独行
然后宛然若失

芭蕉夜雨下
听够了海誓山盟

而今
依然还记得的
是古老时光的
气味