2014/06/17 19:40:55 [error] 9095#0: *28 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.182.23.29, server: _, request: "HEAD /phpmyadmintting.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "128.199.173.22"
2014/06/17 19:40:55 [error] 9095#0: *28 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.182.23.29, server: _, request: "HEAD //phpMyAdmin/tting.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "128.199.173.22"
2014/06/17 19:40:55 [error] 9095#0: *28 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.182.23.29, server: _, request: "HEAD //admin/tting.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "128.199.173.22"
2014/06/17 19:40:56 [error] 9095#0: *28 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.182.23.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
2012/09/03 taichunmin | |
2012/10/08 taichunmin add set_charset | |
*/ | |
switch($_SERVER['HTTP_HOST']) | |
{ | |
default: | |
$cfg['dbHost'] = 'localhost'; | |
$cfg['dbUser'] = 'username'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
2012/04/21 taichunmin | |
將檔案大小顯示成為比較好讀的方式 | |
*/ | |
function tai_readableFileSize($size) | |
{ | |
$unit = array('Byte','KB','MB','GB','TB','PB'); | |
$ia = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
2012/11/07 taichunmin First Release | |
Make SQL file from a TAB separate file. | |
*/ | |
function tai_tab2sql($filein, $fileout, $tbl = '') | |
{ | |
$fin = fopen($filein, 'r'); | |
$fout = fopen($fileout, 'w'); | |
if( !$fin || !$fout ) die('In tai_tab2sql(): Can not open file.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
名稱:資料欄位檢查 | |
版本: | |
2012/08/09 taichunmin 初版,debug 未完成 | |
2012/12/20 taichunmin 模仿 jQuery Vaildate 修改程式 | |
用途: | |
資料檢查。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class progress_bar | |
{ | |
private $max = 1; | |
private $cnt = 0; | |
private $molecular = 0; // 分子 | |
private $ng; // 下一個目標 | |
private $clear_line = " \r"; | |
private $write_func; | |
public $printFormat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 用於讀取 TAB 分隔之資料 (就是直接從 Excel 複製出來的資料格式) | |
*/ | |
class tsvResult_C | |
{ | |
private $header, $fin, $rowCache = array(); | |
function __construct($filename) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------- PastLeo's tmux.conf --------------------- | |
# | |
# 蒐集各處資料製作而成 | |
# 讓tmux有screen的操作方式 | |
# 並且可以顯示CPU,RAM的使用情況 | |
# (記得裝套件,詳情:https://github.com/tony/tmux-config 的 tmux-mem-cpu-load) | |
# tmux樹狀圖: | |
# tmux >> client (attach/detach) >> session >> window >> pane | |
# | |
# -------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $trtd = $('table tr:has(td)'); | |
var tai_title = []; | |
$("[name=item_ids]").click(); | |
$('.btn-success[type=submit]').val('新增('+$trtd.has(':checkbox:checked').length+')'); | |
$.each( $trtd, function(k,v){ | |
var $this = $(this); | |
var title = $this.find('td:eq(2)').text().trim(); | |
var ba = false; |