2008-05-31

How to enable single window mode in Safari

After browsing for a few hours in Safari it's possible to end up with a dozen windows or so because of links that open a new window (links with target="_blank"). I've always wished there was a way to have these links open in a new tab instead of a new window (sometimes referred to as single window mode).

In the latest Safari 3.1 Apple finally added a (hidden) preference! To enable single window mode and have all links open in a new tab that would normally have opened in a new window, we only need to enable the TargetedClicksCreateTabs preference using the following command (paste it into Terminal):

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

You might need to restart Safari before the setting is taken into effect. To disable the setting again, run the same command with false instead of true.

Have fun!

-- From http://www.naquah.net/

2008-05-22

2008-05-17

Ubuntu 8.04

前天收到了从 Netherland 寄来的 Ubuntu 8.04 的 CD, 里面已经 officially 包含了 Wubi 安装程序, 在 Windows XP 上安装了一下, 很顺畅, 没遇到什么麻烦, 只是在安装过程中有个进度条竟然到了 128%, 应该是个小 bug. 启动之后使用正常, 只发现一点儿小问题: 音量控制不起作用.

2008-05-15

Securing and Optimizing Linux

Securing and Optimizing Linux - RedHat Edition - A Hands on Guide

2008-05-09

PuttyCyg

PuttyCyg - code.google.com

--
putty cygwin

Layer 4-7 Switching

Layer 4 switching: The magic combination - NetworkWorld.com
Multilayer Switch - Wikipedia.org

A Layer 7 Switch performs wire-speed processing of packet header content, not only at Layer 2 or Layer 3, but also at the transport layer (Layer 4) up through the application layer (OSI’s Layer 7). Layer 7 switch integrates routing and switching by forwarding traffic at layer 2 speed using layer 7 information. For example, an XML switch can analyze the XML tags at the application level and make forwarding decisions. -- javvin.com

Readers' Choice Awards 2008

Readers' Choice Awards 2008

Parted Magic

Parted Magic is a Linux LiveCD/USB/PXE with its elemental purpose being to partition hard drives.

Optimized at approximately 45MB, the Parted Magic OS employs core programs of GParted and Parted to handle partitioning tasks with ease, while featuring other useful programs (e.g. Partition Image, TestDisk, fdisk, sfdisk, dd, ddrescue, etc.) and an excellent set of documentation to benefit the user. An extensive collection of fileystem tools are also included, as Parted Magic supports the following: ext2, ext3, ext4, fat16, fat32, hfs, hfs+, jfs, linux-swap, ntfs, reiserfs, reiser4, and xfs.

The latest version is updated with: Linux 2.6.24.3, Parted 1.8.8, ntfsprogs-2.0.0, ntfs-3g-1.2506, and GParted-0.3.7.

Parted Magic uses Busybox for basic Unix commands and networking, the Dropbear SSH server and client, and Firefox to surf the web.

The current Xserver is xorg-server-1.4.0.90 with the following drivers: apm, ark, ati, chips, cirrus, cyrix, glint, i128, i740, i810, mga, neomagic, nv, r128, riva128, radeon, rendition, s3, s3virge, savage, siliconmotion, sis, tdfx, tga, trident, tseng, vesa, vmware, and voodoo.

The mini Xserver, Xvesa, is also available.

Parted Magic falls under the terms of the GPL.

2008-05-04

LDAP Docs

LDAP related RFCs - bind9.net
LDAP related RFCs - ldapman.org

2008-04-29

Disabling the Firefox DNS cache

Disabling the Firefox DNS cache

November 4th, 2006 by site admin

If you, like me, make frequent changes to your host file, for instance because your staging and production environment both listen to the same vhost. You will have probably noticed that it takes Firefox a while to pick up on the alterations you made. This is because in order to improve performance by default Firefox caches DNS lookups for up to 60 seconds. If you do not feel like waiting, restarting the browser is your only option. Fortunately you can disable DNS caching. This is what you do :

Enter about:config in the adress bar.

Right click on the list of properties, select new > integer in the context menu

enter network.dnsCacheExpiration as the preference name and 0 as the integer value

Add another integer preference, this time use network.dnsCacheEntries as the preference name and again 0 as the value

2008-04-25

[股市] 什么是“大非”、“小非”

股权分置改革之前,上市公司的股份分为流通股和非流通股两部分。股权分置改革之后,考虑到市场的接纳程 度,对非流通股获得流通权规定了限制时间,这部分股票因此叫限售股份。“大非”是指大规模的限售流通股,占总股本5%以上。“小非”是指小规模限售流通 股,占总股本5%以下。

-- 南方周末

2008-04-02

Change MSN Account E-Mail

MSN 帐号支持修改 email 了, 在 Windows Live Account 登录后点 Change 链接即可, 昨天俺把用了 N 年的 MSN 帐号从 263 的 email 换成了 gmail. 转换过程很顺利, 原来的 MSN 好友会自动迁移到新的 MSN 帐号中, 正如我所期望的那样.

Free Books

Wikipedia 也能访问了!

既然 blogspot 解禁, 那 wikipedia 呢. 试一下打开 en.wikipedia.org, 竟然进去了, 大喜.

Blogspot 解禁了?

使用 proxy 访问 blogspot 很久了, 昨晚在家突然访问不了我的 blog 了, 以为是临时网络故障所致, 没有在意. 今早来公司再次访问俺的 blog, 仍然失败, 怪. 难道 ...? 修改 firefox 的 settings, 去掉 proxy 设置, 竟然能直接访问 blogspot 了, 喜. google 一下 ‘blogspot 解禁’, 果然是解禁了, 但愿不是临时的.

2008-03-28

andLinux

andLinux is a complete Ubuntu Linux system running seamlessly in Windows 2000 based systems (2000, XP, 2003, Vista; 32-bit versions only). This project was started for Dynamism for the GP2X community, but its userbase far exceeds its original design. andLinux is free and will remain so, but donations are greatly needed.

andLinux uses coLinux as its core which is confusing for many people. coLinux is a port of the Linux kernel to Windows. Although this technology is a bit like running Linux in a virtual machine, coLinux differs itself by being more of a merger of Windows and the Linux kernel and not an emulated PC, making it more efficient. Xming is used as X server and PulseAudio as sound server.

andLinux is not just for development and runs almost all Linux applications without modification.