Update Composer

I tried starting a new Laravel project from my Mac’s Terminal and came across this message saying, “Warning: This development build of composer is over 30 days old. It is recommended to update it by running “/usr/local/bin/composer self-update” to get the latest version.” So I ran this command to get the latest composer.

sudo /usr/local/bin/composer self-update

You’ll be prompted to enter the Admin password.

And that’s the way you get the latest update of Composer.

Now, back to the new project.

PHP Upload Limit

I was working on PHPMyAdmin today trying to create a copy of a database. The SQL file was bigger than 8MB. Before I uploaded, I saw a message on the page of PHPMyAdmin saying the upload limit is 8MB. All indication points to increasing the upload … [Continue reading]

Wp_enqueue_scripts

There's a new way to load WordPress stylesheets from within your templates. In the older versions of WordPress, the stylesheets were hard coded on the theme's header file. The proper way to load your stylesheets is via the functions.php file. Here … [Continue reading]

Enable Mod Rewrite in Ubuntu

Another issue when installing Laravel on the Ubuntu server is to make sure you have the mod_rewrite module enabled. You can turn it on by invoking the following command. sudo a2enmod rewrite sudo service apache2 reload Once you've enabled … [Continue reading]

Laravel: Curl and Mycrypt

I've installed Laravel at least a dozen times. Each time, there's always something new that goes awry during the installation. If it's not curl, it's mcrypt, or maybe the app/storage permissions. I think it's just the fact that I'm experimenting … [Continue reading]

Keep Your SSH Sessions Alive

If you work on servers via Terminal using SSH (secure shell), one of the more annoying things that happens quite regularly are timeouts. If there's no activity between your SSH client and the server, your terminal is closed because your session has … [Continue reading]

Display Post From A Year Ago

Here's a cool little WordPress script to display a post from a year ago. You can display your old content to entice your readers to view older articles. You can display your old posts on your theme's sidebar, after your post content, or just anywhere … [Continue reading]

Hide WordPress Admin Bar

There are reasons why you want to hide the Admin Bar from your users. If users don't have edit rights, then there's really no use for an Admin bar. Another reason is if the account is shared with others, you don't want users to reset the password. … [Continue reading]