List/Grid

Normal Subscribe to Normal

3 Unix Shell Scripts – User Activity, View Processes, Display Memory

3 Unix Shell Scripts – User Activity, View Processes, Display Memory

/bin/bash w > /tmp/a echo “Total number of unique users logged in currently” cat /tmp/a| sed ’1,2d’ | awk ‘{print $1}’ | uniq | wc -l echo “” echo “List of unique users logged in currently” cat /tmp/a | sed ’1,2d’| awk ‘{print $1}’ …

Emacs Macro Tutorial: How to Record and Play

Emacs Macro Tutorial: How to Record and Play

Let us take the following text snippet as an example. $ cat thegeekstuff.txt * virtualization technologies * sed and awk tips/tricks * emacs tutorials * bash scripting tutorial series …

CPU-LOADing Detect function

CPU-LOADing Detect function

Sometime you need to detect cup loading on server. This function was support window and linux cpu loading detect. function GetCpuLoad($Check=false, $NoComment=false) { if (!PHP_OS) return ($Check)?-1:0; if (strtoupper(substr(PHP_OS, 0,… Read more »

Spicing Up Your Website With jQuery Goodness

Spicing Up Your Website With jQuery Goodness

There comes a point in every website design when you simply want to give the website a little spice to impress the visitor and make it memorable. You want that… Read more »

Keeping You in the Loop – Bash For, While, Until Loop Examples

Keeping You in the Loop – Bash For, While, Until Loop Examples

/bin/bash # Find files which has .zip for file in `find /root -name “*.zip*” -type f` do # Skip the extension .zip dirname=`echo ${file} | awk -F’.’ ‘{print $1}’` # Create the directory mkdir $dirname # Copy the zip file cp ${file} …

C# 用語

C# 用語

以下內容全文轉自:http://www.dotblogs.com.tw/jimmyyu/archive/2009/08/09/9961.aspx 為了讓大家不用再連到MSDN上,我直接全文轉過來,會轉這篇的主要原因是這些詞很常被用到,但 跟別人討論時往往需解釋一段時間,有空的時候再針對每個用語加些圖示說明吧。 另外再提供.net framework字彙:http://msdn.microsoft.com/zh-tw/library/6c701b8w(VS.80).aspx Access Modifier – 存取修飾詞 關鍵字 (例如, private、 protected、 internal 或 public),會限制對型別或型別成員的存取。如需詳細資訊,請參閱 存取修飾詞。 Accessible Member – 可存取成員 某個型別可以存取的成員。某個型別可以存取的成員其他型別不一定能存取。如需詳細資訊,請參閱 存取修飾詞和 Friend 組件。 Accessor – 存取子 是一種方法,可設定或擷取與屬性相關的私用 (Private)… Read more »

45 Fresh Useful JavaScript and jQuery Techniques and Tools

45 Fresh Useful JavaScript and jQuery Techniques and Tools

Yes, this is another round-up of fresh and useful Javascript techniques, tools and resources. But don’t close the tab yet, as you might find this one very useful. In this… Read more »

Introducing Tweetbacks Plugin for WordPress

Introducing Tweetbacks Plugin for WordPress

Just yesterday we introduced Twitter Avatars In Comments plugin for WordPress that enables bloggers to have both Twitter and Gravatar avatars in blog comments. We are certainly not going to… Read more »

Color Paper: A Free WordPress Theme

Color Paper: A Free WordPress Theme

We are offering you the opportunity to showcase your work in our magazine by releasing a high-quality freebie. We try to keep high standards and we have high expectations because… Read more »

50 Fresh JavaScript Tools That Will Improve Your Workflow

50 Fresh JavaScript Tools That Will Improve Your Workflow

JavaScript is an integral part of the RIA revolution. JavaScript allows developers to create rich and interactive web interfaces and establish asynchronous communication with servers for constantly up-to-date data without… Read more »