Monitor Scheduled Tasks in Laravel

If you have tasks that run using Laravel’s Task Scheduling feature, you may want to monitor that these tasks ran and what output they generated. You can currently use sendOutputTo() …

AVL Tree in Java

An AVL tree is a self-balancing binary tree. That’s all I remember from when I wrote this java implementation of an AVL Tree a few years ago. This code may …

MySQL Affected Rows vs Rows Matched

PHP’s mysql_affected_rows() is used to get the number of rows that were “affected” by the last query executed using mysql_query(). Therefore, an UPDATE query that set the value of a …

Secure Password Encryption using BCrypt with PHP

Implementing login functionality in your application comes with the responsibility of securely storing your users’ passwords in your database. Storing the password as plain text is highly irresponsible since a …