Which tutorial would you like me to do?

View Results

Loading ... Loading ...

PHP register new user

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

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

Writing files from Mac to NTFS hard drive

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.

  1. Download MacFUSE on Google Code - Install & restart
  2. Download the MacOSX NTFS-3G plugin – Install & restart
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
http://www.macosxhints.com/article.php?story=20070220150856279



Before and After?


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

Reflections- Before & After

Before
After

Tutorial: How to copy file path in Mac OSX


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!

New sketch- Ironman!


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?

Make Flash stage transparent

Ok. Here’s a quick tip on how to make your stage transparent in flash.

  1. Go to publish settings: File > Publish Settings or Shift + F12
  2. In the HTML Tab, Find the Window Mode setting and select Transparent Windowless from the drop down menu.

Source: Adobe’s tech help site

Two Images I whipped up last night