JeffHung.Blog

(My smile insists of having nose. :-)

run.sh

簡單的 script,簡化日常跑程式順便要做 log 的步驟。目前是 FreeBSD only,除了各個 utility program,如 date、script 等路徑的關係之外,最重要的是 FreeBSD 上的 script 的 behavior 跟一般的 script 有些不一樣,允許直接把 command 放在 ${__out_file} 後面。另外,TCSH 的 time 也較精確,取得的資訊也較多,甚至可以在 .(t)cshrc 裡設定最後輸出格式 [1],所以下面就改成用 tcsh 做 time 了。

#!/bin/sh
# ----------------------------------------------------------------------------
# Amarganth Development Environment
# Copyright (C) 2004, Jeff Hung
# All rights reserved.
# ----------------------------------------------------------------------------
# $Date: 2006-09-12 12:37:52 +0800 (Tue, 12 Sep 2006) $
# $Rev: [...]

GCC 4 出了

從這邊輾轉看到這邊。 然後我就到 GCC 官方網站看 ChangeLog。
比較令我感興趣的有:

GCC now generates location lists by default when compiling with debug info and optimization. (disabled by -fno-var-tracking)
#pragma pack() semantics have been brought closer to those used by other compilers. This also applies to C++.
ELF visibility attributes can now be applied to a class type, so that it affects every member [...]

BSD-style license Wonka JVM

URL: https://opensource.luminis.net/confluence/display/WONKA/Home
某個學長告知的。記錄一下。我把幾個重點弄成 bold 了。

Wonka is a cleanroom Virtual Machine for the Java(tm) language, originally developed by telematics specialists ACUNIA. It is extremely portable and self-contained, and can optionally be used with its own real-time executive (OSwald(tm)) to provide a complete solution for embedded devices. The Wonka Virtual Machine is fully Java2(tm) compatible and the Wonka [...]

Distributed Media Distribution

URL: Open Akamaization with Coral
之前我好像有提到,應該是在 lady 提的,希望能有一個方法,能夠把大容量的 media 放在外面,這樣子網站的負擔會比較小,畢竟我是用 ADSL 在架站。
本來的想法是,放在 Gmail 裡,可是 Gmail anonymous login 搞不定。後來想,其實也可以放在 flickr 與 upload.video.google 上,不過這樣子大家要放東西,就必須也各自擁有對應的帳號,且不太有辦法由 lady 這邊的程式代勞,統一操作介面。
現在看到這篇,裡面提到的 Coral 之前 pest 在 neto 的版上也有提到,似乎可以更進一步地 enhance 這個 media put outside 的概念。使用者各自想辦法找地方放 media,然後統一弄成 Coral 的 url 報給 lady,這樣子雖然操作起來還是有些 ugly,但是至少大家可以各自選擇 media 的儲放地點了。然後,因為 P2P 的天性,lady 還可以自行再找地點,sychronize 一份 media 當備份。
嗯嗯,看來不錯,值得研究。:-)
真糟糕,看來 flickr 有限制 anonymous 可以看到的相片數。如果我是申請 flickr [...]

Search Result Clustering

URL: Search Result Clustering
ijliao 在他的 blog 裡提到這個 Search Result Clustering 的搜尋引擎,用了一下,似乎還不錯。不過,似乎其背後用的搜尋引擎,目前只有 MSN 系列而已。我希望能有 google 能用。:-)

WebMon - Monitor The Websites

URL: WebMon - Monitor The Websites
這個倒是不錯:「拿來用在P2P論壇上了...」

也許我該先開始 client-side 的 editor 開發

之前我又再 抱怨找不到合意的 blog system 了,沒辦法,bloglines 已經很接近我的需要了,但是就是在 editing 上面,還是差了那麼一點點。所以,似乎還是得自己來才行,老是等著用別人做好的,我看是永遠等不到,畢竟慾望是一直一直地在飆升的啊。
不過,在這篇裡,我也有提到,希望能夠在 FreeBSD 5 上面做所有的開發工作,因此,在目前 lady 及 new.lady 都還是灌 FreeBSD 4 的情況下,server 端及系統的邏輯都無法開始。這一切都是因為潔癖的緣故。
還好,剛剛想了一想,其實 client-side 的 editor 可以先開工。這是與 server 端無關的東西,是在 client 端的 browser 上執行的。而至少打算要處裡的 IE 和 Mozilla/Firefox,其實也不缺環境。因此,確實可以現在就立即開工。
而談到 client-side 的 editor,特製的 htmlarea 就當仁不讓啦。不過很倒楣的,似乎就在 March 8 2005,InteractiveTools 把 htmlarea 記畫給關閉了。幸好,Dynarch.com 還是在這裡接手了 htmlarea 的開發工作,所以我們還是有 htmlarea 可以用。在 Dynarch.com 的 htmlarea 網頁上有這麼一段話,說明了這段經過,以及 Dynarch.com 的承諾:

Update, March [...]

Craigslist for-rent ads scraped and placed on Google Maps

URL: Craigslist for-rent ads scraped and placed on Google Maps
This is a really cool LBS (location based service), if it can be displayed on mobile devices, such as in-car computer.

How to clone a container of polymorphic pointers?

Assume that classes of these polymorphic pointers have a clone() virtual member function that can clone it self. Write a functor to clone the objects:
#include <functional>
#include <algorithm>

template <class T>
struct cloner : public ::std::unary_function<T*, T*>
{
T* operator () (T*& p)
{
return p->clone();
[...]

 Prev 1 2 3 ...11 12 13 14 15 16 17 18 19