Yearly Archives: 2010
Advanced Windows Batch File Scripting
Shared by 小董 這樣的一篇關於windows batch file技巧的文章 近年少見 推!! First off, this is a single windows .bat file that I have written to do advanced batch scripting the easy way, meaning it’s mostly a series of functions you can call from the script or within other functions for extremely modular code. Before you get all bent out of shape by my choice of words (“easy, modular”), when I say this is advanced I mean for Windows .bat files, one of the worlds worst scripting languages, but it works on all windows versions so it’s ideal for things like autorun, autoplay, custom startups, usb drives, etc..
[php-editor] USE PHP_Beautifier in Notepad++
This is the way to use PHP_Beautifier to formate php in notepad++ and output to clipboard Install PHP_Beautifier via http://pear.php.net/package/PHP_Beautifier Make sure your notepad++ have NPPExec Add Execute like this… Read more
9 Useful PHP Functions and Features You Need to Know
Shared by 小董 的確很優~ 1. Functions with Arbitrary Number of Arguments You may already know that PHP allows you to define functions with optional arguments
Object-Oriented PHP for Beginners
Shared by 小董 會利用物件導向的確可以省很多事 但誤用會多更多事 For many PHP programmers, object-oriented programming is a frightening concept, full of complicated syntax and other roadblocks. As detailed in my book, Pro PHP and jQuery, you’ll learn the concepts behind object-oriented programming (OOP), a style of coding in which related actions are grouped into classes to aid in creating more-compact, effective code. Understanding Object-Oriented Programming Object-oriented programming is a style of coding that allows developers to group similar tasks into classes
[PHP::PDO]SQLITE Drop Columns function
//CODE DEMO $dbh = new PDO(‘sqlite:ClientFB.sqlite3′); $st = $dbh->query(“PRAGMA table_info(ap_form_elements)”); var_dump($st->fetchAll(PDO::FETCH_COLUMN,1)); sqlite_drop_table_columns(‘ap_form_elements’,array(‘element_position’,'element_default_value’),$dbh); $st = $dbh->query(“PRAGMA table_info(ap_form_elements)”); var_dump($st->fetchAll(PDO::FETCH_COLUMN,1)); /** * 實做一個刪除資料表欄位 function * @prama $table STRING * @prama $columns ARRAY */… Read more
NotePad++ 5.7 in windows7 support php function list
This case spend me so much time . Step 1. Download this file FunctionList.zip Step 2. Install notepad++ 5.7 and don’t install with %APPDATA% Step 3. unzip the FunctionList.zip and… Read more
Cleanup WordPress Header
Shared by 小董 你知道這些狗屎header消耗多少資源嗎?恩~當你超過上萬篇文章就有感覺了~ WordPress implements new standard features in the head of the theme since version 2.5, that are always on the hook wp_head .
Our WordPress Developer Toolbox
Shared by 小董 我真的為這個文章喝采 他可讓我節省好多時間 Again and again the question comes in: What do you use as an environment to develop with WordPress. Some suggestions I would like to give, these are just my preferences, but I would be happy if you tell me your preferences of tools.
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}’ …