Jun 26 2010

Butterfly


Butterfly

It has been some time since I posted a photo. I just got a new DSLR camera, the Nikon D5000, and have been playing with it.

This photo is from a trail in the north end of Oshawa, right behind the airport (also known as “Airport Trail”). I was walking along and seen this monarch just sitting there.

I love this camera so much. On the original photo I can zoom in to 100% and see every little detail.

Click the image to download.

Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace

Jun 19 2010

Purple Woods Observation Deck [Panoramic]

Link to this images main project page.

Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace

Apr 14 2010

BHLogin 1.1 [Programs]

I fixed some problems that I didn’t notice before and added a user area. This is not an update so make sure you remove the old installation (including database).

INSTALL

  1. Edit “bhlogin/config.php” to your server settings.
  2. Run the installer “bhlogin/install.php”.
  3. Delete “bhlogin/install.php”.
  4. Add the auth code to the top of your pages that you want authentication on. See “bhlogin/page.php” for an example.

I also wanted to note that this has been developed and tested on a windows PC using XAMPP and have only tested it on one other server (My GoDaddy Linux Hosting) so give feedback on how well it worked for you, any changes you needed to make. I love the feedback.

Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace

Apr 11 2010

BHLogin: Simple PHP Login [Programs]

Login Page Example

I have been working hard these past few days. Starting from scratch about 3 times to get things perfect. And yet its not at the point I would like it to be. So this would be version 1.0 of my BHLogin program. And you should consider this a beta program.

BHLogin provides a very simple way for site administrators to add user authentication to their sites. Just by adding 4 lines of code to the beginning of the page you now have a locked down page that requires user to login to see.

I am not going to go into major detail about the program because I will be making a manual and include much more support for version 2.0 but I can at least tell you how to get started.

You can start by downloading one of these amazing archives.

Start by extracting one of these archives onto your site.

Open “bhlogin/config.php” and edit the settings to work with your server.

Open a web browser and run “bhlogin/install.php”.

After install is done with no errors, delete “bhlogin/install.php” so nobody can mess with your installation.

You can now login to “bhlogin/admin/” as User:admin, Pass:admin to change your username and password, create new users, and delete users.

If you visit “bhlogin/page.php” you will see that you are required to login to view that page. If you open that page in your favorite text editor you will see the code that looks like this:

<?php
// Start basic session handleing
session_start();

// Load bhlogin.php
require (‘bhlogin.php’);

// Load bhlogin class
$bhlogin = new bhlogin();

// Require authentication
// auth($auth_level, $page = NULL)
// $auth_level can be 1 = User, 2 = Manager, 3 = Administrator
// $page can be left blank and $after_login (in config.php) will be used instead. This is the page to redirect to after login.
$bhlogin->auth(1, $_SERVER['REQUEST_URI']);
?>

This code is required to add authentication to your pages. I added comments so you can see what is what.

Let me know what you think in the comments below.

Plans for version 2.0

  • Allow users to sign up
  • Allow users to change their settings
  • Verify email with link emailed to user
  • Ability to email a user from the admin panel
  • Anything else I can think of.

There is still lots of work to do. But I am hoping to be done it before I leave for Basic Training.

Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace

Mar 17 2010

Acceptance feels good [Quick Post]

Today I got a call from the Canadian Forces recruitment office with a job offer for me. I am so excited about this and can’t wait until I go and serve for my country. My enrollment ceremony is on June 22nd and I leave for basic on July 10th. I am glad that it’s 4 months away because that will give me a enough time to lose some weight and I have started doing just that. I need to lose about 60-80 lbs. before then to be in the healthy range. I won’t be done basic until October 15th and after that I think I will be going to Vancouver for Navy training, but that is just a guess. Oh I should mention that I am going to be doing Naval Communicator. I will be basically working with the ships computers and maintaining communications between other ships and land base.

Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace