Skip to main content

Posts

Showing posts from August, 2011

Boost MySQL performance (not my writing)

Tune those queries . Biggest bang for your buck. Enable the slow query log and watch it. Once you've found a heavy resource intensive query, optimize it! Tune what receives real-world traffic. Employ Master-Master Replication . Immediately have a read-only slave for your application to hit as well. Use Your Memory . Set innodb_buffer_pool_size, key_buffer_size and other key options. RAID Your Disk I/O . Use RAID 10 mirroring and striping. On EC2 striping across a number of EBS volumes using the Linux md software raid. Tune Key Parameters . speeds up inserts & updates with innodb_flush_log_at_trx_commit=2; create a tablespace and underlying datafile for each table with innodb_file_per_table.

不要让你孤单

这首歌觉得陈奕迅比陈升 唱的好听 现场版

整理一些Markov Random Field以及Graph Model的基础学习资料 (转)

最近对于Markov Random Field等Graph Model有点兴趣,想系统学习一下这方面的知识。但是发现网上搜索的很多论文都是比较深入,不知道从何下手。下面是我收集到的一些不错的资料。 1. 首先是video lecture上的Prof. Charles Elkan在CIKM08 tutorial (http://videolectures.net/cikm08_elkan_llmacrf)的video。他从最最最基本的probability, maximum likelihood开始讲,十分清晰。这应该是作为第一个入门的学习资料,不过他这个talk里面居然只有4个听众。。。同时,这位prof把关于这个talk的note也放在了网上(http://cseweb.ucsd.edu/~elkan/250B/cikmtutorial.pdf)。 2. 接下来可以看一些conditional random field在image和language方面的应用。这篇文章(http://www.whatdafact.com/kittipat/?p=476)里面介绍了两篇citation很高的paper。同时,它也把Prof. Chales Elkan在CIKM08上的video lecture放在了首位。还有一篇比较通俗全面的intro在这里(http://www.inference.phy.cam.ac.uk/hmw26/papers/crf_intro.pdf)。注意,这里说的通俗,也是指你看完了1之后。如果你不熟悉log-linear model去看这篇intro,还是很难懂的。 3. 关于Markov Random Field以及Statistical Graph Model的课程材料,同学推荐我看看他们在哥大的Machine Learning的教案(http://www.cs.columbia.edu/~jebara/4771/handouts.html)。这个课程在网上也有video。

GET or POST in AJAX?

GET or POST? GET is simpler and faster than POST, and can be used in most cases. However, always use POST requests when: (1) A cached file is not an option (update a file or database on the server) (2) Sending a large amount of data to the server (POST has no size limitations) (3) Sending user input (which can contain unknown characters), POST is more robust and secure than GET

c:out jstl does not contain such component ?

You can not find the c:out in JSTL? because The c:out JSTL tag is NOT supported by facelets. Read following posts: http://mail-archives.apache.org/mod_mbox/myfaces-users/200608.mbox/%3C93D4BCE34C8C1A4E8D92E1A9E8738D6502D8786E@EVS2.ad.greenspuncorp.com%3E http://jdevelopment.nl/facelets-legacy-jsp/