Archive for April, 2007

Gene explains why people are night owls | Uk News | News | Telegraph

Gene explains why people are night owls | Uk News | News | Telegraph – 早就覺得我的一天是27小時了,科科。

Instead of following the typical 24 hour pattern, some of the mice had body clocks that stretched to up to a 27 hour day.

三談HTML注入, 以及對 Jikto 的淺薄想法

艾克索夫實驗室 » 三談HTML注入, 以及對 Jikto 的淺薄想法

CSS resources

Real Editor: Online CSS Edits – 蠻炫的
DD Tab Menus – 美觀的tab menu
Download free CSS templates – Free CSS Templates

解除xpdf對文字的封鎖

程式者的胡言亂語 : 一個程式者的胡言亂語

其實這修改很容易,從pdftotext給你的錯誤訊息就可以找到source code的位置。
在xpdf中的pdftotext.cc是這麼檢查安全設定的:

// check for copy permission
if (!doc->okToCopy()) {
error(-1, "Copying of text from this document is not allowed.");
exitCode = 3;
goto err2;
}

所以,把這個檢查忽略掉就可以取出其中的文字。

flickr viewer

http://kitty.2y.idv.tw/~chfang/flickr.htm
優點: 可以看到個人所有的照片,spinner.gif很可愛。
第一個ajax application出爐,利用flickr的open API: flickr.people.getPublicPhotos取得所有的照片並且列出,這麼做的原因主要是flickr非付費的會員只能display出來200張照片,另外想做的是把這個東西做成一個greasemonkey script,遇到阻礙的地方有幾個:1)一開始不會parse傳回來的REST,後來google一下用getAttribute搞定。 2)超出範圍的地方就是proxy.php了,範例是從這邊抄來的,因為javascript因為安全問題所以有same origin policy,非得用proxy.php過一次水不可。3)輸入的地方可以輸入user name,所以必須用另外一個flickr API:flickr.people.findByUsername取得user的nsid,如果兩個都是非同步,可能還沒傳回nsid之前就會呼叫flickr.people.getPublicPhotos,解法我不太清楚,我想一想有兩個方法,一個隔一段時間去polling是否有傳回來了,如果有再繼續呼叫另外一個api,第二個方法就是讓 flickr.people.findByUsername 設成同步呼叫,也就是第三個參數設成false,flickr.people.getPublicPhotos第三個參數社成true,這樣看起來是會work的。

還有一些零零碎碎的小問題,像是自動產生下面的分頁按鈕,可是又不想每次都呼叫兩次api,記錄在global variable又抓不到值。

還有一些要改進的地方,1)學gmail可以回上一頁,大部分的ajax一按上一頁就會破功,這個好像比較難,2)可愛的spinner會頓,按下search之後會頓一下,跑的時候也會頓頓的。3)讓使用者可以選擇要出現的圖形大小,這個是不難,只是要排得整整齊齊的就比較難了。

新竹吃的

舊的吃完,要開發新的了,尤其是宵夜時段的東西

  1. [食記] 新竹老港陳
    [食記] 新竹老港陳 啪兔!!
    餐廳名稱:老港陳 阿~
    地址:新竹市林森路中華電信前電話:NO~
    營業時間:晚上10點~凌晨2點 有時會到4點
    價位範圍(每人):50起跳!!

  2. Re: [吃喝] 推薦一下新竹的滷味攤吧
    萬福滷味
    地址: 300新竹市東區西大路156號
    營業時間: 平日 16:00-02:00

  3. scilife-「竹豐園」料好實在看得見
    Seeing you makes me completed – [食記]新竹‧竹豐園點心小館
    地址:03-5428314
    電話:新竹市民族路187號

  4. [食記] 新竹-蕭記小籠包
    住址:大同路215號
    電話:5620875
    營業時間:
    6:00 AM~ 9:00 AM 4:00 PM~ 11:00 PM

  5. Asteris – 【食】鴻記湯包
    新竹市西門街12巷巷口(不是和大遠百同一邊,是大遠百斜對面那一段,從Easy Shop旁邊進去,
    燦坤再下去一點點的位置)
    湯包 一籠七個50元
    水餃 一個四元(但是要點十個以上才煮)

  6. 美食地圖。Cuisine Map – [新竹] 瑪露連 嫩仙草
    瑪露連 嫩仙草
    一碗 30元
    新竹市東大路二段239巷走到底
    (03)543-9421 0919-925578
    (時間上配合 12碗以上就外送)

  7. 美食地圖。Cuisine Map – [新竹] 瑪露連 嫩仙草 美食地圖。Cuisine Map – [新竹] 瑪露連 嫩仙草 – 麻將麵味濃,還有他的牛肉捲餅
    地址:新竹市經國路二段487號

  8. 三廠麵店
    地址:新竹市延平路一段214巷72之2號
    營業時間:早上早上5:30-下午2:00

本月連結

不入流工程師 | 你在SI 嗎
はてなセリフ – 可以產生一些有趣的包含文字的圖
Topcoder « Mr./Ms. Days – 網路, 資訊, 觀察, 生活
Lighty RoR 最簡潔有力的網頁框架: REST 簡介
Representational State Transfer – Wikipedia, the free encyclopedia
WordPress Plugin: Bigram Full-Text Search | Lvx ex Cælis
N-gram – Wikipedia, the free encyclopedia

wargame , chroot, hackers

chrO.ot – 國內知名駭客組織。

hackers:
cclien.net
OuTian’s 芭樂閣

Links
OuTian’s 芭樂閣 » Zone-H Digital Attacks Archive Parser
OuTian’s 芭樂閣 » HIT2006 Wargame – wargame蠻有趣的阿 …

待整理

1. SQL injection
What’s a SQL Injection Bug? – Joel on Software
http://www.joelonsoftware.com/items/2006/11/01.html

SQL Injection (資料隱碼)– 駭客的 SQL填空遊戲(上)
http://www.microsoft.com/taiwan/sql/SQL_Injection_G1.htm

SQL Injection (資料隱碼)– 駭客的 SQL填空遊戲(下)http://www.microsoft.com/taiwan/sql/SQL_Injection_G2.htm

SQL Injection Cheat Sheet
http://ferruh.mavituna.com/makale/sql-injection-cheatsheet/

攻防實戰:SQL Injection漏洞的利用和防範 – 這是我的部落格 – Yahoo!奇摩部落格

NBSI2內部功能實現大揭謎
2. JSON
QuirksBlog: The AJAX response: XML, HTML, or JSON?
http://www.quirksmode.org/blog/archives/2005/12/the_ajax_respon.html

Howto Dynamically Insert Javascript And CSS
http://www.hunlock.com/blogs/Howto_Dynamically_Insert_Javascript_And_CSS

3. Flickr and AJAX
Using Flickr Services

Prototype Center

Ting-yu Chiang’s Resume

4. greasemonkey scripts
http://overstimulate.com/articles/2005/04/24/greasemonkey-book-burro-find-cheap-books.html

丁丁是人才!


因為丁丁是人才!,所以要瞭解一下天線寶寶。
天線寶寶 – Wikipedia

* Tinky Winky(中譯:丁丁):為年紀最大的天線寶寶,紫色,白皮膚,男性,天線是倒三角形寶寶,他最喜歡的東西是紅色手袋。然而他的造型在外界頗受爭議,因為有人認為他的行為舉止像一個男同性戀者或易服癖。
* Dipsy(中譯:迪西):綠色的天線寶寶,直天線,黑皮膚,男性。他最喜歡的東西是黑白色帽子。
* Laa-Laa(中譯:拉拉):黃色的天線寶寶,豬尾天線,紅皮膚,女性。她最喜歡的東西是橘色皮球。
* Po(中譯:小波):為年紀最小的天線寶寶,紅色,圓形天線,黃皮膚,女性。她最喜歡的東西是紅色踏板車。她是唯一會說中文的天線寶寶,經常以廣東話說:「快啲、快啲,慢慢慢,一、二、三」等。

Shape Shed – Journal – Default Styles for CSS

Shape Shed – Journal – Default Styles for CSS

笑話一則


Nikolai Bezroukov. Portraits of Open Source Pioneers. Ch.2 Donald Knuth: Leonard Euler of Computer Science – XDDD

Richard M. Stallman, Linus Torvalds, and Donald E. Knuth engage in a discussion on whose impact on the computerized world was the greatest.
Stallman: “God told me I have programmed the best editor in the world!”
Torvalds: “Well, God told *me* that I have programmed the best operating system in the world!”
Knuth: “Wait, wait – I never said that.”

From rec.humor.funny.
submitted by ermel@gmx.de (Erik Meltzer)
然後再slashdot 又補了一句

While Dijkstra was still trying to find the shortest path to the conference

{|ihower.idv.tw| blog } » Eric Sink 談小軟體公司的創業經營

Eric Sink on the Business of Software – brilliant!
{|ihower.idv.tw| blog } » Eric Sink 談小軟體公司的創業經營

利基市場 (niche market)

{|ihower.idv.tw| blog } » Eric Sink 談小軟體公司的創業經營(續) People

何謂作者定義的 developers,就是除了 coding 跟 fix bugs(幸運的話) 之外,還需要做以下事情 :

* Spec documents
* Configuration management
* Code reviews
* Testing
* Automated tests
* Documentation
* Solving tough customer problems

重點是因為初期所有的決策幾乎都跟技術有關(例如一個經典問題,要自己 build 還是 buy?) ,developer 帶來的價值勝過其他人 (正確的說是隨著公司大小而定,公司越小相對價值較高,公司越大相對價值才會降低),的確是有很多工作是 non-coding,不過那些只是 part-time job(自己或developer來做即可),你不需要 full-time的人力,創業初期你不需要 MBA,更不需要所謂 businessman 的 co-founder。

石頭閒語:JavaScript Hijacking and How to – 樂多日誌

石頭閒語:JavaScript Hijacking and How to – 樂多日誌
Software Security | Protect your Software at the Source | Fortify Software

CC, BCC

Blind carbon copy – Wikipedia, the free encyclopedia
Carbon copy – Wikipedia, the free encyclopedia

In common usage, To field recipients are the primary audience of the message, CC field recipients are others whom the author wishes to publicly inform of the message, and BCC field recipients are those surreptitiously being informed of the communication.

麥克風

  • shure SM-58 : 高檔vocal用 mic $4xxx – “這隻算是主唱麥克風的業界標準”,”甚至Michael Jackson也會用他來錄音喔”
  • shure SM-57 : 錄樂器/人聲 $3xxx
  • shure SM-565sd : 卡拉OK專用 $2xxx – “十幾年來 SHURE 565SD 一直是是專業人聲麥克風的常青樹”

據說$800的shure也能打死ktv的mic

Planet OrzLab: 構想:Embedded Linux + Mozilla

Planet OrzLab: 構想:Embedded Linux + Mozilla
Rapid Application Development with Mozilla – 用XUL來畫gui,嚴重關注。

lamplamp

敗家網 : 聯合精品團購網 – 真是惡搞的燈泡
lamplamp

ICMP

Internet Control Message Protocol – Wikipedia, the free encyclopedia

It is chiefly used by networked computers’ operating systems to send error messages—indicating, for instance, that a requested service is not available or that a host or router could not be reached.

ICMP differs in purpose from TCP and UDP in that it is usually not used directly by user network applications. One exception is the ping tool, which sends ICMP Echo Request messages (and receives Echo Response messages) to determine whether a host is reachable and how long packets take to get to and from that host.

Ping Tunnel – Send TCP traffic over ICMP – 應用場合像是pulic需要登入才能使用的無線網路,如果沒有檔ping的話,更甚者還有利用ptt的chatroom來達成。

media center survay

  1. apple tv
    • cost: $11000
    • hardware:

      • CPU: Ultra Low Voltage Pentium M Dothan 1GHz / 2MB L2 cache / 400MHz
      • chipset: Mobile 945G
      • RAM: 256MB DDR2 onboard
      • hardisk: Fujitsu MHW2040AT 40GB
      • VGA:NV GeForce Go 7300 / with 64MB GDDR3

  2. mac mini
  3. XBOX