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.
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
I’m at work needing to transfer files from my Mac to my NTFS hard drive. The file system normally allows the drive to be read but unable to write to. There’s too many complicated tutorials/forum posts so I’m making it simple for myself and hopefully others here. 2 downloads and no funky terminal stuff.
Now the NTFS drive should be writable.
Notes:
If you get an error like:
$LogFile indicates unclean shutdown (0,0)
Failed to mount…
You need to plug in the drive into a windows pc and then “Safely remove hardware” by right-clicking on the lower right-hand green arrow that says “Safely remove hardware”. There’s other ways, but this is the easiest I’ve seen.
Most helpful forum link by
jo7ker on Sat, Mar 3 2007 at 9:12AM PST

I have no idea how this happened. Somhow the png got really messed up…

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:
- Open the applescript editor, create a new script
Applications > Applescript > Script Editor
- Paste the following:
tell application “Finder”
set sel to the selection as text
set the clipboard to POSIX path of sel
end tell
- Save as an File Format > Application

-
Drag the .app file into any finder window’s toolbar to add the shortcut
To use:
- Select the file you want to copy the path
- Click the scipt shortcut icon you just created
- Now it’s on your clipboard, so you can paste the filepath!

Saw the movie- I thought it was really good and decided to spend a bit of my free time sketching. Is it me or does iron man’s mask thing make it look like he’s frowning all the time?
Ok. Here’s a quick tip on how to make your stage transparent in flash.
- Go to publish settings: File > Publish Settings or Shift + F12
- In the HTML Tab, Find the Window Mode setting and select Transparent Windowless from the drop down menu.

Source: Adobe’s tech help site

A logo for a new project- kinda like my last Baseball field diagram. Apart from the color irregularities, I like this logo design I whipped up.