oscar dias

Personal Blog

Ubuntu One Backup

A couple of weeks ago I was looking for a backup solution for my MySQL databases. As I don’t want to spend money on this, I chose to backup using one of the cloud drives available around. I already use Google Drive for my companies’ files and Dropbox for my personal needs. In order to keep each thing in it’s own place, I decided to use Ubuntu One to host my backups.

Continue reading

File Browser in CodeIgniter

This is a quick post. I’m going to show the code necessary to build a file browser in PHP using CodeIgniter. It allows file browsing in the server and opening files without leaving your app. Text files are displayed directly while other files are send to download. Continue reading

Creating a CodeIgniter App (Part 7): Validation

I decided to continue with the series about CodeIgniter, but now I’ll be writing about more specific topics. In this part, I’ll explain how to use the form_validation library to validate form and ensure the correct data reach the database. Even though it’s an specific topic, I’m going to continue using the same application from previous posts.

Continue reading

How to Protect and Optimize your WordPress Installation

In this article I will explain some measures I took to protect my WordPress installation from attacks. More precisely, I will be talking about htaccess and what it can do for you. Besides that, I will also briefly explain some plugins. One of them is WP Super Cache, capable of optimizing your blog. If you use other methods, please comment.

Continue reading

Creating a CodeIgniter App (Part 6): Tasks

We finally got to the end of the series Creating a CodeIgniter App. We will conclude our Simple Task Board app with the development of the tasks section. This includes the creation of tasks for each project, the exhibition of these tasks in the dashboard and, of course, the exhibition of these tasks in a agile like task board.

To accomplish out task we’ll create a table in the database, a controller (we’ll also update two other controllers), a model and a view (we’ll also update two other views, the menu and the Template library). In order to complete it, some CSS and JavaScript.

Continue reading