tyson記事本

Google & man(Unix) are your best friends!

flot & Googlecharts

最近要畫一個水位雨量監控的展示數據圖形
suvery到flot (jQuery) & Googlecharts

還不錯用.. 瞞好玩的 ccc
有不少人針對 Googlecharts 寫了Creator/Builder
1. Google Chart Creator
2. Online Charts Builder
3. ChartMaker

google 資料不少呢~

Slimbox, the ultimate lightweight Lightbox clone

http://www.digitalia.be/software/slimbox
http://www.huddletogether.com/projects/lightbox2/
http://www.mootools.net/

Play Fifteen puzzle - a game example with jQuery

jQuery game
http://www.alexatnet.com/node/68

#game15 {
width: 255px; height: 290px; border: 1px solid gray;
}
#game15-controls {
margin: 10px;
height: 25px;
}
#game15-field {
width: 240px;
height: 240px;
margin: 10px 0px 10px 10px;
}
.game-cell {
width: 55px;
height: 55px;
border: 1px solid gray;
text-align: center;
line-height: 55px;
color: #aaa;
font-family: arial;
font-weight: bold;
font-size: 30px;
background: white;
position: absolute;
overflow: hidden;
}

jQuery(function () {
// Game model object
var field = new (function () {
this.moves = 0;
this.cells = [ [0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0] ];
this.isFree [...]

JAVA 測試 String物件時間

ref: http://www.javaworld.com.tw/jute/post/view?bid=29&id=9557

public class Test{
public static void main(String[] args){
new Test();
}

public Test(){
System.out.println(”normal converting (ms): ” + normal());
System.out.println(”algorithm converting (ms): ” + algo());
}

public long normal(){
int a = 0;
String b = null;
long st = System.currentTimeMillis();
for (int i = 0; i < 2000000; i++){
b = a + “”;
}
long et = System.currentTimeMillis();
return (et - st);
}

public long algo(){
int a = 0;
String b [...]

String與基本資料型態(int byte…等)之間的轉換

ref: http://www.javaworld.com.tw/jute/post/view?bid=29&id=9557
轉錄自java連線版
發信人: TAHO, 看板: java 精華區
標 題: String與基本資料型態(int byte…等)之間的轉換
發信站: 140.126.22.6 竹師風之坊
Origin: Local
String與基本資料型態(int byte…等)之間的轉換
1. 由 基本資料型態轉換成 String
String 類別中已經提供了將基本資料型態轉換成 String 的 static 方法
也就是 String.valueOf() 這個參數多載的方法
有下列幾種
String.valueOf(boolean b) : 將 boolean 變數 b 轉換成字串
String.valueOf(char c) : 將 char 變數 c 轉換成字串
String.valueOf(char[] data) : 將 char 陣列 data 轉換成字串
String.valueOf(char[] data, int offset, int count) :
將 char 陣列 data [...]

一些 php 應用程式

1. http://sourceforge.net/projects/simplsheet
2. http://www.phpriot.com/
3. http://www.smashingmagazine.com/2006/10/30/cheat-sheet-round-up-ajax-css-latex-ruby/
4. http://www.phpobjectgenerator.com/
999. http://blogmarks.net/marks/tag/php,mysql

keep looking »