2006-09-28

Googlepages Multiple Sites and 500 Uploads

Origin: Google Page Creator Updates
- 5 Sites each 100MB in size!!
- Max upload files from 100 to 500 !!

Google Notebook Sharing Improved

- GooglePages Module
- Google IG Module
- Hot linking (Example)

Supports collaboration too, just send invitations to target persons.

2006-09-21

Linux zd1211rw usb wireless

Switching from net-wireless/zd1211 to kernel 2.6.18 zd1211rw support.
$ lsusb
Bus 001 Device 002: ID 14ea:ab13
$ nano -w /usr/src/linux/drivers/net/wireless/zd1211rw/zd_usb.c
static struct usb_device_id usb_ids[] = {
        /* ZD1211 */
        { USB_DEVICE(0x6891, 0xa727), .driver_info = DEVICE_ZD1211 },
        { USB_DEVICE(0x0df6, 0x9071), .driver_info = DEVICE_ZD1211 },
        { USB_DEVICE(0x157e, 0x300b), .driver_info = DEVICE_ZD1211 },
+        { USB_DEVICE(0x14ea, 0xab13), .driver_info = DEVICE_ZD1211 },
$ cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# USB Device: 0x14ea:0xab13 (zd1211rw)
#SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="aa:bb:cc:dd:ee:ff", NAME="eth0"
#SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="aa:bb:cc:dd:ee:ff", NAME="eth1"
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="aa:bb:cc:dd:ee:ff", NAME="eth2"
$ grep ZD /usr/src/linux/.config
# CONFIG_USB_ZD1201 is not set
CONFIG_ZD1211RW=m
# CONFIG_ZD1211RW_DEBUG is not set
$ insmod zd1211rw
$ lsmod
Module                  Size  Used by
zd1211rw               32384  0
ieee80211softmac       20736  1 zd1211rw
ieee80211_crypt_tkip    8832  2
ieee80211              24584  2 zd1211rw,ieee80211softmac
ieee80211_crypt         4032  2 ieee80211_crypt_tkip,ieee80211
$ dmesg
usbcore: registered new driver zd1211rw
usb 1-3: new high speed USB device using ehci_hcd and address 2
usb 1-3: configuration #1 chosen from 1 choice
zd1211rw 1-3:1.0: firmware version 4605
zd1211rw 1-3:1.0: zd1211 chip 14ea:ab13 v4330 high 00-90-cc AL2230_RF pa0 g--
zd1211rw 1-3:1.0: eth0
SoftMAC: Open Authentication completed with aa:bb:cc:dd:ee:ff
$ iwconfig eth2
eth2      802.11g zd1211  ESSID:"access_point"
          Mode:Managed  Frequency:2.437 GHz  Access Point: aa:bb:cc:dd:ee:ff
          Bit Rate=54 Mb/s
          Encryption key:40AA-A249-F54A-ACB9-XXXX-0079-XXXX-014C-XXXX-94E6-XXXX-CFDF-A787-XXXX-F34C-XXXX   Security mode:open
          Link Quality=98/100  Signal level=100/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
$ iwlist scan
eth2      Scan completed :
          Cell 02 - Address: aa:bb:cc:dd:ee:ff
                    ESSID:"access_point"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=100/100  Signal level=100/100
                    IE: WPA Version 1
                        Group Cipher : WEP-40
                        Pairwise Ciphers (1) : WEP-40
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : WEP-40
                        Pairwise Ciphers (1) : WEP-40
                        Authentication Suites (1) : PSK
                    Extra: Last beacon: 17ms ago
$ ifconfig -a
eth2      Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff
          inet addr:192.168.xx.yy  Bcast:192.168.xx.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

2006-09-20

Google Protection Warning


GoogleVideo Full Feature GooglePlayer Bar

Before:

After:


Modify the html codes
把 html 修改一下:
<embed
  style="width:100%; height:100%"
  id="VideoPlayback"
  align="middle"
  type="application/x-shockwave-flash"
  src="http://video.google.com/googleplayer.swf?&docid=<...>
   &amp;begin=0
   &len=148432
   &messagesUrl=http://video.google.com/FlashUiStrings.xlb?frame=flashstrings
   &hl=en
   &autoPlay=true"
 allowScriptAccess="always"
 quality="best"
 bgcolor="#ffffff"
 scale="noScale"
 salign="TL"
 FlashVars="playerMode=normal&autoPlay=true&docid=<...>&clickUrl=">
</embed>"
with <object>
<object type="application/x-shockwave-flash"    
  data="http://video.google.com/googleplayer.swf?&docid=<...>" 
  width="100%" height="100%" id="VideoPlayback">
 <param name="movie" value="http://video.google.com/googleplayer.swf?&docid=<...>" />
 <param name="allowScriptAcess" value="sameDomain" />
 <param name="quality" value="best" />
 <param name="bgcolor" value="#ffffff" />
 <param name="scale" value="noScale" />
 <param name="salign" value="TL" />
 <param name="FlashVars" value="playerMode=embedded" />
</object>
This is the http://video.google.com/FlashUiStrings.xlb and options for Flash UI Strings.
<?xml version="1.0"?>
<localizationbundle locale="en">
<messages>
 <msg name="SmoothVideo" desc="menu button to choose a smoother looking scaled image over a faster scaled image">Smooth Video</msg>
 <msg name="OriginalSize" desc="menu button to scale the image to 100% size (no scaling)">Original Size</msg>
 <msg name="DoubleSize" desc="menu button to scale the image to 200%">Double Size</msg>
 <msg name="FitToWindow" desc="menu button to scale the image to fill the window">Fit to Window</msg>
 <msg name="FullScreen" desc="menu button to switch to the full screen window">Full Screen</msg>
 <msg name="VideoPlayingInFullScreen" desc="message to inform the user that the video is not being shown in this window but instead is being played in the full screen player window">Video is playing in the fullscreen window.</msg>
 <msg name="Buffering" desc="message to tell user that data is being queued until we have enough to play">Buffering...</msg>
 <msg name="GoToGoogleVideo" desc="button to go to Google Video homepage">Go to Google Video</msg>
 <msg name="NotAvailableTryLater" desc="message to tell the user that this video is currently not available and suggest that they try again later">This video is currently not available.\nPlease try again later.</msg>
 <msg name="PleaseUpgradeToFlash7" desc="ask the user to upgrade to newer version of Flash">Please upgrade to Flash Player 7 to watch this video.</msg>
 <msg name="ShowCaptions" desc="Tooltips text for subtitle button when it is off">Show captions</msg>
 <msg name="HideCaptions" desc="Tooltips text for subtitle button when it is on">Hide captions</msg>
 <msg name="Volume" desc="Tooltips text for volume control">Volume</msg>
 <msg name="Menu" desc="Tooltips text for menu button">Menu</msg>
</messages>
</localizationbundle>

Google Video Flash Format

$ file video-downloaded-from-google.flv
video-downloaded-from-google.flv: Macromedia Flash Video
$ mplayer video-downloaded-from-google.flv
MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1700MHz (Family: 6, Model: 9, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


93 audio & 211 video codecs

Playing video-downloaded-from-google.flv.
libavformat file format detected.
VIDEO:  [FLV1]  320x240  0bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 64.0 kbit/9.07% (ratio: 8000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
alsa-init: using device default
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
A:   0.0 V:   0.0 A-V:  0.000 ct: -0.002 243/243 ??% ??% ??,?% 0 0
alsa-uninit: pcm closed

Exiting... (End of file)

Writely sign-in with Google Account Password

Mime-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
X-Mailer: WritelyMailer
Sender: email_noreply
Return-Path: email_noreply
Subject: An IMPORTANT notice from the Writely team, xxxxxxx@gmail.com
To: xxxxxxx@gmail.com
From: noreply@writely.com
Date: Tue, 19 Sep 2006 15:00:18 -0700

Dear xxxxxxx,

In a few days, we will update your Writely account to use your xxxxxxx@gmail.com Google Account registration settings.

This means you'll need to use your Google Account password when signing in, not your Writely password (if they're different).

If you've forgotten your Google Account password, just go to https://www.google.com/accounts/ForgotPasswd

Thanks!
Google Writely Team

2006-09-18

香港小學畢業會考常識科試題..... 1953年

香港小學畢業會考常識科試題..... 1953年

Hong Kong Primary School Certificate Examination Paper for the subject of General Knowledge 1953

Gmail HTML Content Layout Editing

網絡溝通, 禮儀常備
Netiquette: Think before you post

  1. Very common
    經常情況
  2. Content is send properly but just is so *wide*.
    太寬的內容不好閱讀


    figure 1(a) -
    before send,
    under Thunderbird

    figure 1(b)
    - recieved under
    Gmail
  3. Edit with HTML for more comfortable reading
    用 html 的語法處理一下
    <div style="margin: auto; max-width: 620px;">...<div>
  4. Limit the content width to 620.
    內容限橫寬 620, 好閱讀多了


    figure 2(a) -
    before send,
    under Thunderbird

    figure 2(b)
    - recieved under
    Gmail

Thunderbird Extension(擴展工具): EditHtml

2006-09-16

Software Freedom Day 2006 (3rd)

What is Software Freedom Day?

http://www.softwarefreedomday.org/about

Software Freedom Day (SFD) is a worldwide celebration of Free and Open Source Software (FOSS). Our goal in this celebration is to educate the worldwide public about of the benefits of using high quality FOSS in education, in government, at home, and in business -- in short, everywhere! The non-profit company Software Freedom International provides guidance in organizing SFD, but volunteer teams around the world organize their own SFD events to impact their own communities.

2006-09-15

巨大的鯊魚一一失蹤

西雅圖水族館換魚缸,把幾個大型的魚類放在一起,以為這樣這些大傢伙們可以相安無事,沒想到連續幾條巨大的鯊魚一一失蹤,一位工作人員決定守夜觀察,竟然拍到這個驚人的片段。

想起 Kraken

2006-09-11

Test CSS3 Native Round Corner and Shadow

Picture:

-moz-border-radius is rendered fine under Firefox 1.5.0.6.
<div style="font-size:16px;
          color:#ffffff;
          background:#9999ff;
          border:1em solid #7777ff;
          padding: 10px;
          -moz-border-radius:2em;
          -webkit-border-radius:2em;
          box-shadow:1em 1em #ffffff;
          -moz-box-shadow:1em 1em #ffffff;">
<br>
</div>

2006-09-09

Gentoo Portage 2.1.1 from RC1-R6

 * In portage-2.1.1, emerge --newuse is now sensitive to changes in IUSE.
 * Immediately after upgrade from 2.1, users may notice a significantly larger
 * number of packages pulled in by --newuse, but that behavior is normal.

 * See NEWS and RELEASE-NOTES for further changes.

 *
 * For help with using portage please consult the Gentoo Handbook
 * at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
 *
>>> Regenerating /etc/ld.so.cache...
>>> sys-apps/portage-2.1.1 merged.

2006-09-02

用香港智能身證的下場

顧客:喂,我想叫‥‥‥

接線生:先生,請你比你既智能咭號碼。

顧客:呀,請等等,12345678。

接線生:陳先生你好,你係住係元州街1號2樓,你屋企電話係 53541177,你公司電話係 70861366,你手提電話係93945354。請問你依家用緊邊個電話打呢?

顧客:屋企,點解你知道我所有電話號碼?

接線生:陳先生,因為我地接通左智能系統.

顧客:要一個海鮮薄餅‥‥

接線生:陳先生,海鮮薄餅唔啱你。

顧客:點解?

接線生:根據你嘅醫療記錄,你有血壓高兼膽固醇偏高。

顧客:吓?‥‥咁你有乜好介紹。

接線生:你可以試試我地既低脂健康薄餅。

顧客:你點知我鍾意食呢種?

接線生:哦,你喺上星期一喺中央圖書館借過本低脂健康食譜。

顧客:哎呀,好啦,我要個特大家庭裝薄餅,幾多錢?

接線生:唔,加多個都夠你一家十口食,仲好啦,盛惠 280 蚊啦。

顧客:可唔可以用信用卡?

接線生:陳先生,唔好意思,請你用現金找數,因為你既信用卡已經過晒額,你而家仲欠緊銀行 $3,344.44 卡數未找。仲有,提提你,你今期仲未供樓喎。

顧客:哦,咁我去附近提款機提定錢先.

接線生:陳先生,根據你既記錄,你今日提款機提款限額已經過左額。

顧客:唔好懶叻,送薄餅先啦,我有錢係度。幾時送到呀!

接線生:大約45分鐘,如果唔等得,可以你自己開車嚟。

顧客:乜話!你點知我有車?

接線生:根據系統記錄,你有一架綿羊仔,號碼係 PK1366。

顧客:@#&***##%?*&@%$

接線生:陳先生,請你小心你既說話。你係1997年7月14日曾經用粗口鬧警察,判左有罪。

顧客:‥‥‥

接線生:請問仲要啲乜呢?

顧客:無喇,呀,係唔係有三罐可樂送?

接線生:係,不過系統記錄你有糖尿病與愛滋‥‥‥‥‥