<爱与不爱> Yes Or No 有感

这是一部泰国关于女同的电影。故事讲述一个女大学生被安排跟一个“男人婆”的女生住在同一间宿舍,她们之间发生的故事。它带出了这个社会普遍对同志爱情 (gay or lesbian or T) 这种不正常的爱情的歧视和反对。即使一个打扮的象男生的女生没有喜欢过一个女生也会被人家指指点点为 T。

这部电影告诉女同志,别因为社会的眼光,别因为自己的不正常打扮,来自我设定,而应该根据自己的内心,Yes,Or No,勇敢面对爱情。重要的是彼此的心是否真的在乎对方。

http://www.verycd.com/entries/516838/

台湾钻石夜总会变脸 PK 项目感想

台湾节目钻石夜总会的变脸 PK 项目,觉得很噁心。

这个项目首先是女生卸妆,弄到很丑,比很丑,然后化妆,最后看谁落差大,谁就赢。

看来可以啦。反感的地方是,通常会伴随男生陪女生出来。男生都会尽量讲到女生有多丑,几吓人,很假很假,就为了拿奖金。哎。。。当这个男的是她的男朋友的时候,他这样都讲出口的话,觉得,他不配。是,虽然为了节目效果,为了赢。但是,就是看不下去。

Near Field Communication

Near Field Communication (NFC) technology makes life easier and more convenient for consumers around the world by making it simpler to make transactions, exchange digital content, and connect electronic devices with a touch.

A standards-based connectivity technology, NFC harmonizes today’s diverse contactless technologies, enabling current and future solutions in areas such as:

  • Access control
  • Consumer electronics
  • Healthcare
  • Information collection and exchange
  • Loyalty and coupons
  • Payments
  • Transport

Near field communication (NFC) is a set of standards for smartphones and similar devices to establish radio communication with each other by touching them together or bringing them into close proximity, usually no more than a few centimetres. Present and anticipated applications include contactless transactions, data exchange, and simplified setup of more complex communications such as Wi-Fi. Communication is also possible between an NFC device and an unpowered NFC chip, called a “tag”.

Comparison between NFC and Bluetooth

NFC Bluetooth
Network Standard ISO 13157 etc. IEEE 802.15.1
Network Type Point to Point WPAN
Range < 0.2m < 10m
Frequency 13.56 MHz 2.4–2.5 GHz
Set-up time < 0.1 s < 6 s

There is a rumor saying that iPhone 5 is one of the several devices that will shipped with NFC-enabled smartphones and probably released in year 2012.

Android 4.0 the just released version includes new features called Android Beam that equips Android device with NFC communication.

Google Wallets is a mobile payment solution released by Google that uses NFC to complete the tedious mobile payment process just a single touch.

Services in cities and countries that employed NFC technology

Singapore Mobile payments:MasterCard, DBS Bank, StarHub, EZ-Link, Gemalto
Malaysia Maxis FastTap

 

More about NFC (http://www.nfc-forum.org/aboutnfc/)

Titanium Studio 1.0.8 Update greatly improve module packager process

With latest Titanium Studio 1.0.8 update and its latest SDK 1.8.1, it is now easier to create Titanium iOS module and packaged into Titanium mobile apps. I am able to code the iphone torch controller (flash light) in Objective-C and compiled into module and invoked from Titanium JavaScript API.

Just to remember to change the Apps Project release to use armv7 (standard).

Last three weeks I tried to do the same thing in older version of Titanium Studio but I failed to make it even I followed the completed steps for manually creating module skeleton templates using command utility tool.

The latest Titanium Studio 1.0.8 Update really improve module packager process.

Thailand Trip during CNY 2012

(Last Updated: Jan 26, 2012, 12am)

 

—————–

I attended a family / relative thailand trip (in 30++ person) during Chinese New Year 2012. We went to southern of Thailand (Hat Yai / Trang) by taking bus departed from Nibong Tebal, Penang.

Day 0

We joined the bus in front of Maybank of Nibong Tebal, Penang around 7pm of January 24.

We arrived Malaysia-Thailand customs around 11pm to 12am. The two customs there look lousy compared the one between Singapore and Malaysia. There is a simple gate between these two countries customs. We entered Thailand before 12am midnight, and we heard a big bell ringing that looked like made from temple to notify the time.

Around 1am time, we arrived Hat Yai, we stopped for a while to take supper. Hat Yai here had a lot of foods and drinks and stalls that sell clothes, souvenir. Here is full of shops for Karaoke, Thai massage and lots more entertainment places.

After that we had 5 hours distance time in North direction and stopped outside of one petrol station for 2 hours to wait for morning arrival…

这里的时差是+7,而大马的是+8,过了那道关卡 (一个 gate),时差就那么有趣的慢了一个小时,而我在过关卡的时候就一直注视着那个 gate 周围的一草一木,一边是大马,一边是泰国。这边的边境关卡两边都很简陋,不象大马和新加坡之间的关卡那么的豪华,好像回到了几十年前的感觉。靠近边境的地方,虽然有一点点落后,但是这里店屋林立,到处是娱乐场所,按摩院,夜生活很多人。

过后我们到合艾吃宵夜,那里有很多小吃摊。我们叫了鱼粥 50 baht 和燕窝 100 baht。然后那里也有路摊旁的市集。这里虽然已经接近午夜了,还是有很多游客,也有西方人,东方人。

吃完后我们就北上5个小时。

Day 1

After wake up in the morning, we had a small breakfast in a market and then we took the bus go to three places. One is a Hemerald Lake, it is a big, clean, blue and green lake, somebody jumped inside and swimming. Second is called Hot Waterfall (Ron Waterfall). Third places we went is a Tiger Hole. After that, we stayed at the 5 star Hotel at Trang.

We enjoyed 2 served dishes, nice Thai lunch and dinner.

我们的巴士停在一个油站外面,为了等待早上的到来,我们就在车上睡觉。有些人醒来后就到 7-eleven 买简单的早餐吃。旁边也有一间 Coffee Cafe。我们随便吃了个三明治。然后就开车到一个巴刹吃个简单的早餐,摆摊的应该都是 Thai Malay 吧。

接下来,我们就驱车前往旅游目的地,我们去了三个地方,一个是大湖,一个是热水瀑布,及老虎洞。

第一个大湖,首先,我们需要走一段差不多1公里的路程才能抵达里面的大湖。这段路,两旁都是森林,一段路还有竹林。到了最里面,就是一片清澈见底的大湖,它的水是蓝色和绿色参参的,超美的,我放了两只脚在下面泡。几个亲戚包括我爸爸也跃身跳进湖中,又自由式,又倒卧式的在里面遨游。风景很不错,只是阳光太刺眼了。

第二个是热水瀑布。一样,也是要走一段路抵达里面的瀑布。里面有很多外国西方游客。很多亲戚们也脱衣服下水。我和妹妹则只是把脚伸进去泡泡,超爽的。

第三个目的地是老虎洞。老虎洞外面是拜观音的地方。我们跟着仪式拜了拜观音。接着,我们进去老虎洞的庙。相传古代在深山里有个洞,有老虎守着,一个经过的和尚看到后觉得很美,就在那里建立了一个庙,流传至今。里面没有看到真的老虎,只有老虎像。里面有许多佛像。在里面有一个小房间是锁上的,里面有个长方形的盒子,我们就尝试把硬币丢进去那个盒子上面,除了我妹妹,没一个人成功。另外,我们也求了一个平安牌。念个经文再许愿。

晚上,我们住进 Trang 的一个五星级酒店,里面的设施看来很先进,服务员也很有礼貌,只是我们跟他们交流还是有一点点问题,英文等。另外,在里面发现他们的 socket 插头跟我们的不同,晚上我们到附近的 Supermarket 买了 socket 插头转换器,才能 charge 我们的手机。晚上后,大多数人到其中一个亲戚的房间聚赌,而我则躲在房间里上网,上传照片,写部落格,听歌,然后写着写着就直接睡着了。

Day 2

第二天,早上进来,到酒店吃早餐 buffet。

今天的行程包括龙宫和白钢塔,晚上也有去看 Tiger show。

龙宫里,是坐个载五人的小船,绕着看风景。然后开始进洞,到了一个角落,上岸,看着洞里面的钟乳石和神像。接下来,继续行程,接下来的行程比较辛苦及够力。我们全部人都要向后平躺下来一段时间,300 m 的路程,那段路的洞的高度超级矮,如果不平躺肯定撞到毁容,8个字:好可怕,以后不来了。而且如果那个洞淹水的话,我们肯定死定。

到了晚上,check in 了第二个 Hotel,这个 Hotel 是在 Hat Yai 合艾的,有点老旧,但是它的 socket charger original 是支持我们版本的,很好。外面也有很多店屋,摊位,娱乐场所,百货中心,按摩中心,应有尽有,可谓是泰南一大经济中心。在这里驾车过马路要小心,他们没看的。

接下来,我们全部人特别坐 van 车上白钢塔,在一个很高的山上。很美,很多佛像,很好。

然后,一部分人跟着去看 Tiger show。平时只在网上看的,今天可现场看到男生女生脱光秀,还有性爱场面,及魔术。其他亲戚应该是看过很多次,说这个表演蛮假的,曼谷的比较真实,这里的只是做做样子。

Day 3

今天早上起来,吃了早餐,就坐嘟嘟车到巴刹,嘟嘟车是一个小lori的样子,有点像 Taxi。在大巴刹里逛了许久,多数停在卖鞋子和衣服的地方,里面逛来逛去很显,很热。

接下来,我们去土产店买土产。

然后,开始回家,等排 customs 等到很久。不论是泰国和大马的 customs 都很老旧,大马的还好一点。不象新马的那么先进豪华。

Java knowledge about Atomic Operation of Increment Operator

An atomic operation is an operation which is performed as a single unit of work without the possibility of interference from other operations.

A Java question and knowledge transfer about Atomic Operation.

Refer to the following code:


public void someMethod() {
int a = 1;
a++;
}

Normally the final result of variable a is 2, but the value can be other possible such as 3 or 4. Why?

It is because in Java the language specification guarantees that that reading or writing a variable is atomic (unless the variable is of type long or double). Long and double are only atomic if they declared as volatile.

The operation a++ it not atomic in Java for the standard variables (int, long, etc). It first reads the value which is currently stored in a (atomic operations) and then it adds one to it (atomic operation). But between the read and the write the value of a might have changed.

Discuz! 应用中心在线公测

期待已久,一个类似 WordPress 能够自动安装插件 (Plugins) 和风格 (Themes) 的 Discuz! 应用中心在线公测了。

Discuz! 官方释出了应用中心 For X2 的测试包,供站长下载测试。站长安装后,便可在 Discuz! 管理后台搜寻应用中心上架的插件和风格了。插件和风格制作者也可以上传自己的应用上去,并可设置免费或付费。

相关链接:http://www.discuz.net/thread-2597037-1-1.html

赶快去研究吧,我也准备好把 Imgshow For Discuz 放上去了,嘿嘿!