Tagged as "software tips"

List of articles tagged as "software tips".

Reset your Drupal password without email.

I deal with Drupal sites often, and one of the most often recurring issues is a forgotten/lost password for the admin account. Sometimes, the site isn't yours, and you simply were told the wrong info to log into the site but you have FTP access. Other times, you simply don't want to go through the hassle of sending yourself an e-mail, clicking a reset link, and editing your password through the profile settings page. There has to be an easier, faster way, right? Well, the answer is here.
The best way to deal with this is to make a script that does every bit of the password reset all in one go. The downside to this script is it is incredibly insecure. You will want to name it something funny random, like gudgoin.php or idungiveafk.php, place it in the root directory of the site, and delete it from the server right after using it.

Read More

Output clean JSON data from Twitter API v1.1 using PHP

I was making a mobile app with Tersus (WYSIWYG RAD) as a school project, and I noticed Twitter no longer has an open XML feed. I looked around and most of the Twitter apps I saw were outdated or simply used the Twitter widget (JS only). For that reason, I took a few hours out of my day to develop a workflow for interacting with Twitter in PHP using the TwitterOAuth library, which is a very nice object-oriented abstraction layer for the generic OAuth library (included with previously mentioned library).

Read More

Mount Windows Shared Folder as VirtualBox Linux VirtualHost

Mount your VMs with vigor!

If you want to use a Linux virtual machine (VM) for use as a testing environment for your web projects yet also want to edit the files from the comfort of your Windows computer, there are many caveats that could slow you down. This is a short article with command examples to help you.

Read More

Resize LVM PV Partition in Debian/Ubuntu

This was a headache for no particular reason.

Okay, so you made or received a backup of an operating system for use in a virtual environment. The partitions list something like "ext2, extended, lvm pv" and the lvm pv partition is way too small. What you want to do is resize the partition, but chances are you tried that already and are now looking for answers as to why it didn't work or how to fix it.

Read More