ITeye博客

渴死的火烈鸟

standalone · 共 356 篇文章

GNU Make Variables: simple and recursive

今天有时间看了一下teammate写的makefile,学习了一下,其中发现定义变量的时候用的是=,有的是:=,查了一下发现真的有学问在里面。 这是一篇讲得很清楚的文章: http://www.electric-cloud.com/blog/2009/03/23/makefile-performance-shell/

2012-04-19 14:17 · linux · 评论(0)

How do I find the largest top 10 files in linux?

http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/ To find out largest file only use command ls as follows in current directory: ls -lSh . | head -5 Output: -rw-r–r– 1 vivek vivek 267M 2004-08-04 15:37 WindowsXP-KB835935-SP2-ENU.exe -rw-r–r– 1 vive…

2012-04-06 15:24 · linux · 评论(0)

[youtube] Scaling the Web: Databases & NoSQL

Very good talk on this subject. http://www.youtube.com/watch?NR=1&feature=endscreen&v=oL-A4JYwgH4

2012-03-23 13:11 · hbase · 评论(0)

sybase 12.5 insert null values

It's weird that sybase will convert empty string into ' ' (note: not empty but just a whitespace). So if you want to insert a null into a row, you should do like this: insert tabe xxx values (..., null, ...) That's, include a null value in your sql query, or you should not metion that column name i…

2012-02-28 12:54 · database · 评论(0)

Using rowexpander in extjs4

Add code snippe below to your grid: plugins: [{ ptype: 'rowexpander', rowBodyTpl : [ '<p>{yourcolumn}</p>' ] }], How to expand all after store finishes loading? I got many answers from google but they did not work! Do not use expander.expandRow(rownum); Instead you should use expander.toggleRow(row…

2012-01-31 16:35 · javascript · web · 评论(2)

css word-wrap

http://www.css3.info/preview/word-wrap/

2011-12-09 15:04 · web · 评论(0)

xargs usage with multi arguments

http://offbytwo.com/2011/06/26/things-you-didnt-know-about-xargs.html I saw this article when I was wondering how to move a lot of files listed in a file to another place. I found xargs is very useful here. cat filename list | xargs -I % mv % newfolder Note that in the article above it mentions usi…

2011-11-30 12:24 · linux · 评论(0)

Javascript Replace innerHTML throwing Unknown Runtime Error

Quite annoying...IE sucks... http://stackoverflow.com/questions/555965/javascript-replace-innerhtml-throwing-unknown-runtime-error I encountered this problem when I want to change a table's content using el.innerHtml = '<tr>...</tr>' in which el is a table element, IE throws "unknown runtime except…

2011-11-30 12:18 · javascript · 评论(0)

Faster InnerHTML

http://blog.stevenlevithan.com/archives/faster-than-innerhtml I got performance boost in my FF rather than IE, quite weird, anyway, I think it's useful.

2011-11-23 17:18 · javascript · 评论(0)

send html with perl MIME:Lite

Today I encounter a problem when sending html content via Perl's MIME:Lite, in my html there is always a </tr> got broken...damn it! I checked the html string, it's all right. Finally I found there is a config for MIME:Lite: Use encoding: | If your message contains: --------------------------------…

2011-10-28 15:35 · perl · 评论(0)

jquery lazy loading

最近玩了一下jquery,主要是在做的一个小工具要在一个web page里显示一个表格,表格每一行有一个图片,大约有几万行,所以问题是一下子load下来吃不消了。对于前端我是门外汉,网上搜了一下,发现有个lazy load的插件,jquery写的。 这个是官方网站: http://www.appelsiini.net/projects/lazyload 但是因为这玩意很早写的,后来浏览器发展太快了吧所以现在的浏览器上这个插件有问题了,作者在网站上也说了。于是就有某人去改了一些: 这个是某人改进的: http://www.popo4j.com/qianduan/transformation_j…

2011-10-26 15:24 · javascript · 评论(0)

executing external commands in perl

http://www.perlhowto.com/executing_external_commands

2011-09-06 15:00 · perl · 评论(0)

Fiel Test in Perl

http://www.devshed.com/c/a/Perl/File-Tests-in-Perl/ File test in perl is quite useful. E.g., how to check if a file exists? How to check if it's writable? And how to get age of a file? I finally see the link above, enjoy it.

2011-09-06 13:06 · perl · 评论(0)

Pie Chart With Small Value Renders Incorrectly in IE

这个bug是我在使用extjs 4的pie chart的时候发现的,貌似还没有解决。 http://www.sencha.com/forum/showthread.php?137809-4.0.2a-Pie-Chart-with-small-value-renders-incorrectly-in-IE&p=616611

2011-09-02 14:26 · javascript · 评论(0)

Cloud Security?

看了一些文章,主要是保证用户怎么保证存储在公有云的数据的完整性和正确性,即使用一套逻辑或者叫协议供用户和云存储提供者使用,使得用户能够相信数据放在存储厂商那里没有被删改,而且数据对于厂商是加密的。基于早就成型的密码学算法,这些文章都给出了有效的算法。 现在问题是如果用户不但要用公有云的存储,还要用它的计算结点,怎么保证整个过程的安全呢?

2011-09-02 14:23 · cloud · 评论(0)