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)