Photography

Pic-A-Day: Horseman at Pont Neuf

Saturday, May 24th, 2008 -- By ET

Pont Neuf is the oldest standing bridge across the river Seine in Paris. Ironically, the French “Pont Neuf” means “New Bridge”.

pontneufhorseman.jpg

Pic-A-Day: Untitled

Friday, May 23rd, 2008 -- By ET

 Our mother nature produces such beautiful scenes, yet at the same time can be so cruel as testified by the Chinese Earth Quake and Myanmar Storm.

grassflowerhdr.jpg

 

 

Pic-A-Day: Door Nob

Wednesday, May 14th, 2008 -- By ET

doorhandle1.jpg

Pic-A-Day: Violin Player

Tuesday, May 6th, 2008 -- By ET

This is a photo I took recently. It has a lot of interesting components that fascinated me: lines, squares, colors, musical instrument, interesting face…

montmatreviolinhdr.jpg

Pic-A-Day: Red Sun Shield

Sunday, May 4th, 2008 -- By ET

 

redroof1.jpg

X-ray Photography

Wednesday, April 16th, 2008 -- By ET

I like photography, and I like photos that view this world from different angles.

Nothing compares to the following photograph which was taken with an X-ray enabled camera.

xray2pa1304_468x734.jpg

It shows an office building, you can even see someone kneeling there to fix a copier.

While I like this photo.  I think the photographer is crazy.  If I were in the building, I’d surely sue this redneck photographer.

Recent Photos

Thursday, March 27th, 2008 -- By ET

ifchdr.jpg

swanhdr.jpg

timesquare.jpg

 

causewayheads.jpg

 

 

HKUST Library at night

Thursday, March 20th, 2008 -- By ET

Our library is a very beautiful building. Here is a picture I took yesterday.

Click on the image to get a bigger version.

librarytower2.jpg

Recent Photos from Gu Lang Yu

Wednesday, December 12th, 2007 -- By ET

IMG_5212

IMG_5238

IMG_5300

IMG_5404

IMG_5417

IMG_5527

IMG_5557

IMG_5590

IMG_5556.jpg

IMG_5261.jpg

IMG_5304.jpg

IMG_5433.jpg

[Mac Tip] Quickly Copy Files from Local to Remote Machine through SSH

Monday, November 5th, 2007 -- By ET

Note the beautiful title bars you see in this blog.


They are on top of the blog, each time you reload the page, you get a different title bar.

I may write a post about these title bars and the stories behind them later, but today, I’d like to record how I can copy them quickly to the title bar directory from my Mac.

There are a few steps:

  1. Create publickey authentication on the remote server, in this case: mikezhang.com
    • Type “ssh-keygen -d” on the local server
    • Then, typ “ssh -l username mikezhang.com ‘test -d .ssh || mkdir -m 0700 .ssh ; cat >> .ssh/authorized_keys && chmod 0600 .ssh/*’ < ~/.ssh/id_dsa.pub”, this creates a new directory on the remote server called .ssh and paste the public key into the file “authorized_keys”
    • Make sure the .ssh created on the remote server is chmod to 0700
    • test if we can directly go there by “ssh -l username mikezhang.com” without typing the password
  2. Create a new directory on the local machine:
    • and a new file at ~/Library/Application Support/Quicksilver/Actions/Copy To Server.sh
    • the content of the file will be
      #!/bin/sh
      #
      infile=`echo $1|tr '"' '\"'`;
      filename=`basename "$infile"`;
      `/usr/bin/scp "$infile" username@mikezhang.com:/home/username/mikezhang.com/wp-content/themes/aura/headerimg/`;
      base="http://mikezhang.com/wp-content/themes/aura/headerimg/";
      echo "$base$filename" | perl -ne 's/ /%20/g; print';

  3. That’s all

To use the shortcut, select the newly created title bars, invoke QS, type “Current Selection..”, then “TAB”, then “Copy to”, the option called “Copy to Server” will show up, press Enter. It’s done.

Here is the newest addition:


BlogTimer
You are visitor number several since September 1, 2001

Copyright Xiaoquan (Michael) Zhang, 2004-2007. All rights reserved.
All trademarks property of their owners.