You are browsing through Uncategorized

Put yourself in my shoes…

Monday, April 13th, 2009

This is why I moved....

Tracy and I moved units after seeing this wonderful view. We wake up and come home to this. No drummers beneath us is also a plus.

PHP register new user

Wednesday, October 15th, 2008

So I’m continuing on my user account management quest. Yesterday and today I added the ability to register as a new user. It’s still very rudimentary- the registration fields are not checked for validity (so more than one user can have the same user name) but I feel great that I’m making progress. Try it out: http://yukikodesign.com/test/testbed/index.php

Next up, send an email when “forgot password” and add personal account management to change passwords and delete users if you’re an admin.

PHP user login test

Wednesday, October 8th, 2008

A huge step for me in programming- I got a simple user authentication to work through php. It took some stretching and “feeling my way through the dark” but I got something that requires a login and logout and it seems to work. The SQL database stuff was a bit of a fanagle since it veered off from my book but this time I looked around and was able to “upload” my queries instead of typing them out in a command prompt. I’ll work on it a bit more later but it’s sleepy time.

links:
My Quick and dirty test
User: jack
Pass: toronto

Book reference: PHP Hacks- Tips & tools for Creating Dynamic Web Sites
Online Tutorial: Simple Login, Logout, and Session Handling

Tutorial: How to copy file path in Mac OSX

Thursday, July 3rd, 2008


So you can’t cut/paste file paths easily in Mac OSX. No keyboard shortcuts and even “get info” doesn’t give a selectable pathname. Yes, you can see the path, but you can’t get it onto the clipboard. Hmm.. after trolling a bit of the internet, I found that there’s some freeware and some methodologies- drag into terminal or into textWrangler… They all sounded a bit involved when speed and simplicity is the issue. My method of choice came from Camarena in a forum link: Create a simple apple script, turn it into an .app and then drag that app into any finder bar so it appears as an icon.  So here’s the step by step.

Create the App:
  1. Open the applescript editor, create a new script
    Applications > Applescript > Script Editor

  2. Paste the following: 
    tell application “Finder”
    set sel to the selection as text
    set the clipboard to POSIX path of sel
    end tell

  3. Save as an File Format > Application 

  4. Drag the .app file into any finder window’s toolbar to add the shortcut

To use:
  1. Select the file you want to copy the path
  2. Click the scipt shortcut icon you just created
  3. Now it’s on your clipboard, so you can paste the filepath!