Nov
28
2009
0

Change the format of a Subversion working copy

When you copy a subversion working copy from someone else and perform a `svn up` command, you may meet error like this:

svn: This client is too old to work with working copy ‘./’; please get a newer Subversion client.

You can choose to update your svnclient version, or simply use this python script to change format of this subversion working copy:

./change-svn-wc-format.py . 1.4

Written by mic in: Geek |
Nov
14
2009
3

How-To Extract the Boot Camp Drivers from the Mac OS X v10.6 Snow Leopard DMG

Introduction

So, you’ve waited for hours and hours for your Leopard DMG to finish torre-I mean, download from the ADC website. You don’t have an extra DL-DVD laying around or you just don’t want to use one – that’s fine, but when you use boot camp, you’ll find it asks for the Leopard DVD anyways!

You don’t have to download the drivers from anywhere, you can extract them and copy/paste them from OS X! Here’s a step-by-step guide on making it easy.

Part 1

Do not mount the Leopard DMG. If it is mounted, unmount it and then restart (you must restart or it will not work, there’s no way to get around it, sorry guys.)

Part 2

Open a new Terminal window. If you don’t know where to find terminal it’s in Applications/Utilities.

Type in:

Code:
sudo hdid -nomount

[Add a space to the end] and drag the Leopard DMG file from your hard drive to the terminal window. The path will appear, and you can hit enter on the command. This forces the HFS+ partition of the Leopard DMG to not load, allowing the ISO part of the DMG to be booted, which is what we need.

If you’re not using sudo already, it’ll ask you for your password, type it in, hit enter, and you’ll be rewarded with the following:

Code:
/dev/disk?              Apple_partition_scheme
/dev/disk?s1            Apple_partition_map
/dev/disk?s2            Apple_Driver_ATAPI
/dev/disk?s3            Apple_HFS

Take note of the “?” because you’ll need to remember it in a little bit.

Part 3

We need to make a way for the volume to mount on your Mac, so type in:

Code:
mkdir /Volumes/drivers

You’ll recieve no response but this is normal.

Part 4

You’re almost there! We now need to force the DMG to load with the ISO volume instead of the HFS+ volume. To do so, simply type:

Code:
sudo mount -t cd9660 -o nodev,nosuid /dev/disk? /Volumes/drivers

Where ? is the number we mentioned earlier. Remeber not to include the ’s1,’ ’s2,’ or ’s3′ parts in this command.

Now you simply have to restart Finder, which is easy to do from terminal:

Code:
killall Finder

Now you just have to copy the drivers onto a USB drive [or burn them to a disc], boot into Windows and install.

Written by mic in: Geek |
Feb
25
2009
--

Safari 4 public beta

据说Safari4的javascript性能有4.2倍提升(基于Nitro引擎,号称快过IE7 30倍),应该是世界上最快的浏览器了吧?不过我没感觉,因为safari3.1已经很快了。

Tab样式很像Chrome,放在标题栏可以省去以前占用的Tab栏,可视空间一下变大啦:)

下图是启动页: Top Sites效果,很炫。

值得高兴的是Safari adblock还能兼容Safari4,呵呵

200902250015.jpg

搜索建议功能也很实用

200902250032.jpg

Written by mic in: Geek | 标签:,

Powered by WordPress. Theme: TheBuckmaker. Kreditvergleich, Streaming Audio

MC Inside