Skip to main content
2011 San Francisco
  1. Travel/

2011 San Francisco

·1 min

One of my earliest trips with a camera. San Francisco was the kind of city that made me want to photograph everything: the Golden Gate Bridge, City Hall, Fisherman’s Wharf, Haight Street, Aquarium of the Bay.

This was before photography became something serious for me, but looking back, these photos are where the interest started building. Just exploring a city with a camera and seeing what you find.

Related

4 Hour Body by Tim Ferriss

·2 mins
Slow Motion Workout # The technical term is 5/5 Cadence (5 seconds up, 5 seconds down). I tried this for the first time on Sunday; it is really intense. Momentum is not there to help you. You will feel every part of your muscle throughout the motion. Weights # Tim Ferriss showed a simple formula to figure out the starting weight to work out with. Simply do regular sets. If you can do 5 reps, wait a minute & then increase the weight by 10 lb or 10%. When you fail a set, then take 70% of the last 5-rep set and use that weight for the slow-motion workout. You can figure out weights to use by trial and error. This should prevent injuries or wasted time.

MySQL Update If Exist Else Insert Procedure

·1 min
Are you tired of checking data in your code before inserting? Well MySQL procedures are here to the rescue. This simple procedure shows how you can do that: CREATE PROCEDURE ` update_insert_user ` ( IN uid2 int ) BEGIN DECLARE last_login2 DATETIME; SELECT ` last_login ` INTO last_login2 FROM ` user ` WHERE ` uid ` = uid2 LIMIT 1 ; IF last_login2 IS NULL THEN INSERT INTO ` user ` ( ` uid ` , ` last_login ` ) values (uid2, now()); ELSE UPDATE ` user ` SET ` last_login ` = now() WHERE ` uid ` = uid2 LIMIT 1 ; END IF ; END