Thứ Sáu, 30 tháng 11, 2012

Thiết kế hay

Cầu trượt chạy quanh nhà cho em bé chơi. ^_^










Energy Efficient Buildings are Easy and Affordable

energy efficient buildings are great because they are affordable and don't destroy our environment Going green has never been easier or more affordable than it is right now. This is a lasting trend and it makes sense for many reasons. Most notably, energy efficient buildings are good for the environment. Since they are energy efficient they will also pay for themselves over time. Find out more about how the energy efficient buildings can serve you by reading this article.

Ảnh nghệ thuật - Nguồn ovui.vn









Thứ Năm, 29 tháng 11, 2012

Asus ~ UX31A 使用感想2

感想2就沒啥好說的.........

第一就是觸控板非常不靈敏

不知道是不是程式沒寫好, 有時候去滑他

滑~~~~~沒反應....

這很明顯可以看出

我也看過有人反映~~~~~~顯然不只是我~~~~


再來就是螢幕的問題

色彩不鮮豔就算了~~~~~說實在畫面真的很難看

顏色很不飽和~~~~

但這不是重點

重點是........


平常上班~~要去吃飯了

start+L鎖定電腦

fn+f7讓螢幕暗下來..............

好像哪裡怪怪的

拉近點看.......

看出是甚麼了嗎...........要不要思考下~~答案在下面XD


















是鍵盤印...........幹...........................

他媽的蝦爆了.................................................................

所以平常的螢幕清潔=狗屁

反正蓋下去他會在幫你印上去

Core77 Designer Gift Guide

Core77 Designer Gift Guide

Concept 1




Javascript ~ sort array


var array = [[1, "grape", 42], [2, "fruit", 9]];
array.sort(function(a, b)
{
if (a[1] == b[1]) { return 0; }
if (a[1] > b[1])
{
return 1;
}
else
{
return -1;
}
});


reference
http://stackoverflow.com/questions/5503900/how-to-sort-an-array-of-objects-with-jquery-or-javascript

Thứ Tư, 28 tháng 11, 2012

"Festool MFT/3 Fence Set Up"

"Festool MFT/3 Fence Set Up"

20 mm router bits source

20 mm router bits source: 20mm in metric is essentially the same as 25/32 inches in dinosaur. �25/32 inch = 19.844 mm or essentially 20mm.

If you are willing to use a 1/2 inch shank bit, which is arguably stronger than 1/4 inch or 8mm, the first two sources of American-made router bits I checked have them, Eagle and Whiteside.

Eagle has this one:

Part No.:102-1275, diameter 25/32" carbide length 1-1/4" overall length = 3" shank: 1/2" $22.95

Whiteside has this one:

Part No: 1088, diameter 25/32" , carbide length 1 1/4" overall length 3" , shank 1/2", $17.12


Top 5 Uses for Portable Structures

portable structures can save your construction site money There are many uses for portable structures from shelter structures. In case you need some ideas on the best usages, they are here to help you out. From protecting your equipment from theft to protecting you from severe weather these portable structures can really do it all. Find out what else they can do here.

PHP ~ curl 使用感想XD

有些網頁

可能不是簡單的對他要求網址就會把他的網頁傳回來給你

雖然大多是這樣~

但有些網頁是要透過post傳資料後才回傳結果給你

如果想透過程式去抓取這些資料

則要模擬你發送這些資訊給對方server, 對方再回傳東西

如果用PHP可能可以用Peal的HTTP_Request2或是curl做到


但還有一種少數情況.....

不是假裝發post資料給對方server他就認你

我就遇到這問題.......

他還會看你是從哪裡來的

再看要不要傳資料給你

今天解決這問題也是我透過firebug監看網頁上操作時發送的資訊

才發現可以再嘗試多傳送這些參數給server看他認不認得出是正常使用者去瀏覽她的網頁

多次嘗試終於........我找到要多傳哪個關鍵參數給server

他才真的以為我是正常管道去讀取這網頁




我也是搞好久才發現到這個.....

就是Request Headers那一排

這邊firebug很清楚明瞭的列出傳了那些header過去

於是我才想到......可以不只傳post還可以傳假的header資訊給他試試看

過程我試了改 Agent, cookie, host, Referer

試到Referer

才成功............

因為不知道怎麼傳這些header參數所以也是一直google找資料= =

最後弄出來真的......好家在0rz


這邊我是用curl做的

才發現php的curl真的很強大,還可以亂真的XD

 curl_setopt($ch, CURLOPT_REFERER, 'http://www.xxxxx.com.tw/ggggggxxxx');

這段code就是傳header跟server說我是從哪裡來的

如果沒傳, 他就以為你亂搞

可是有傳~~~~他就覺得你是正常人~~~~才回傳資料給你

PHP ~ get number only

$output = preg_replace ( '/[^0-9]/', '', $string );

reference
http://stackoverflow.com/questions/5474088/php-regular-expression-filter-number-only

Hình ảnh học viên các khóa tại RAG