Chimeric Dream

My multi-faceted reverie

Posts Tagged ‘php’

Project Euler Solution: Problem #28

According to the Project Euler website, “Project Euler is a series of challenging mathematical/computer programming problems…”

Always a fan of puzzles, I have decided to share my attempts and solutions here.

Note: If you are trying to solve Problem #28 for yourself, DO NOT READ AHEAD!
(more…)

Project Euler Solution: Problem #5

According to the Project Euler website, “Project Euler is a series of challenging mathematical/computer programming problems…”

Always a fan of puzzles, I have decided to share my attempts and solutions here.

Note: If you are trying to solve Problem #5 for yourself, DO NOT READ AHEAD!
(more…)

Project Euler Solution: Problem #1

According to the Project Euler website, “Project Euler is a series of challenging mathematical/computer programming problems…”

Always a fan of puzzles, I have decided to share my attempts and solutions here.

Note: If you are trying to solve Problem #1 for yourself, DO NOT READ AHEAD!
(more…)

Hash Encryption of User Input (ASP & PHP)

This bit of code is something I came up with a few years ago. I was trying to come up with a way to generate passwords and secure database names when I decided to build a function to do it for me. Basically, it takes your input, hashes it, then suggests potential passwords or database names.

I have no illusions that this is the most groundbreaking code snippet out there, but hopefully it will be of some use to people.

Since creating the original ASP function, I have made a PHP version of it as well.

(more…)

Ch-ch-ch-changes

After installing my new blog, I started working on converting my whole site over to PHP. Halfway through *that* process, I decided to go with Object Oriented Programming. Simply put, OOP helps separate different aspects of code into manageable chunks, called objects (or classes). I just want to say that nobody – and I mean nobody – should make such massive change in the middle of a project. I had pretty much converted my entire “Family & Friends” photo gallery over to PHP when I decided to do this. So now I get to rewrite it *again*.

The good news is that once I have done this, it will be easier for me to update my site overall. Style/layout changes will be simpler and more straightforward, and (in theory), my code will be neater and more manageable. I suppose I just have to survive the initial transition.

New Blog Software

Well, I have finished installing a new blog software to my site. Unfortunately, the one I was writing just kept turning into more and more work. I went with an open-source PHP solution called Serendipity. So far I am quite happy with the results. It was fairly simple to integrate with my layout and offers more features than I will probably ever need from my blog. So yeah, good stuff.