Archives for February 2011

Ruby - My Favorite Programming Language

Posted on February 24, 2011 in General

Ruby is my new favorite programming language. After about one or two weeks with it, I was sure this was my new favorite. Ruby is a wonderful language, with so many advantages, so I thought I'd write a blog post about it. Before I found Ruby, I was in a dilema about which programming language was my favorite. I had recently found Lua, and immediately loved syntax, but Lua is nowhere near powerful enough in...

Read more...

Generating a Joomla Password (for reseting)

Posted on February 23, 2011 in Tutorials

I recently found myself in the awkward situation of having only a Super Admin user in the Joomla installation, and neither I nor my client knew the password. I had to the fix the problem, and I decided to do so by generating a Joomla user password (which required a lot of searching through code, mind you). Here's the PHP code I used: <?php // JUserHelper class from libraries/joomla/user/helper.php $pwd = 'my_new_password'; $instance = new...

Read more...

Website Redo!

Posted on February 23, 2011 in General

My website hasn't been that active at all lately, due to me being busy (as always). I decided to give the website some attention this month, but instead of posting updates or anything, I've been working on a complete overhaul. This site now runs on WordPress, which is much better, more dynamic, and easier to use than my custom made CodeIgniter slap-together. The blog and website are now merged into one, as in, they run...

Read more...

Making a Dynamic Copyright With PHP

Posted on February 23, 2011 in Tutorials

I though I'd just write a quick tutorial on how I make a dynamic copyright for my websites. If you don't know what a function does in the code, look it up on the PHP manual. <?php echo strftime('%Y', time()); ?> That's the year generating code. It's just grabbing the year from the current timestamp. So we could do something like this in the copyright: &copy; <?php echo strftime('%Y', time()); ?> Legion of Weirdos. You...

Read more...