Migrating emails using IMAP (imapsync) to/from (Gmail, Yahoo, etc)

Hi all!

Last update April 5 2015!

I’ll try use the new Yahoo! Mail for a while but I need my old emails messages. I am a Gmail user and want to copy everything to Yahoo! Mail. After search a lot at Google I found imapsync. It is a Linux program that runs on the command line and can connect to a IMAP server and copy to another one.

Linux Machine

I am a MAC user, so I don’t have Linux machines except servers I don’t want to install things I’ll use just once. So I created a Ubuntu 12.10 64 bits droplet at Digital Ocean and install dependencies and start to sync my emails messages. First we must install dependencies and after install the imapsync. Take a look:

apt-get update
apt-get install libdigest-hmac-perl libdigest-hmac-perl libterm-readkey-perl libterm-readkey-perl libdate-manip-perl libdate-manip-perl libmail-imapclient-perl

Continue reading Migrating emails using IMAP (imapsync) to/from (Gmail, Yahoo, etc)

Deploying/Upload applications using GIT (forget FTP)


Today I’ll talk a practice that changed my life. Since when I work developing web applications I used to work with FTP to send files to server. Forget using FTP for that and welcome to the GIT world.

GIT became famous after the launch of GitHub website. GIT is a version control tool used to manage applications (or files) and control users files update and much more.

Basically you must have:

  • GIT installed on the remote machine and local machine
  • Repositories created on both machines
  • The files you want to deploy/upload

Continue reading Deploying/Upload applications using GIT (forget FTP)

Deploying Laravel applications on a shared host


Laravel is an awesome PHP framework created by Taylor Otwell. Actually, it is on the third version and it is one of the great PHP frameworks we have today.

As a lot of frameworks, we have to create our own Apache Virtual Host to point to the public dir to improve security and only allow access to really public files.

Some people asked me to create a blog post about how to deploy Laravel application to a shared host, like my post about how to Deploying Zend Framework applications on a shared host.

Laravel file structure

A basic Laravel application has the same file structure:

  • application/: your app files, like controllers, routes, models, views, tasks, etc
  • bundles/: the bundle’s files you’ve installed for your app
  • laravel/: the Laravel’s files
  • public/: your public files
  • storage/: files about cache, session, logs, etc
  • artisan: the Laravel command line file
  • licence.txt: licence file
  • paths.php: file with paths information
  • readme.md: just a readme file with Laravel instructions

Continue reading Deploying Laravel applications on a shared host

Creating your first WordPress theme – Part 3 – Important files

Hello all!

Let’s continue with our WordPress series. Today I’ll write about the main files in a WordPress theme.

First files

Above we have some files that are basic for your new theme:


This file is the root file, the home page. When you open your WordPress website it’ll get this file content. Is can also be renamed to home.php, not problem. WordPress will understand that.


As we saw in the first post about WordPress themes, this is the file you’ll have your header content. Things like navigation, logo, users welcome messages and more, you’ll find in this file.

Continue reading Creating your first WordPress theme – Part 3 – Important files

Creating your first WordPress theme – Part 2

Hello everyone!

As I said, this is our second post about Themes in WordPress. Today I’ll talk about:

  • How to create page templates
  • How to retrieve posts

If you want you can read the first post about WordPress themes.

Let’s GO!

Continue reading Creating your first WordPress theme – Part 2

Creating your first WordPress theme – Part 1

Hello again…

Continuing with our first WordPress site, now we’ll understand how WordPress allow you to customize themes.

If you didn’t read the first post about WordPress Thinking the WordPress Way – First Steps and want to learn how WordPress works, take a look.

You don’t have to change your layout or using specific techniques to create your own layout. I suggest you create the basic layout the way you want, using CSS (or LESS), Javascript, HTML, images and what you want.

File Structure

Our new theme will called grossi. Every theme you create will be stored in the /wp-content/themes/grossi.

First, you need to create the grossi folder and put a style.css file inside it with some content. This file is used by WordPress to see your new theme. After that you’ll can activate your new theme in your Administration Panel.

Continue reading Creating your first WordPress theme – Part 1

Thinking the WordPress Way – First Steps

Hello everybody!

I work with PHP since 8 years and I never took a look on WordPress. In the start of this year a customer requires me to develop his next website, but using the WordPress. So I had to search some tutorials on the Internet and join informations to make my own way to think using WordPress.

In this first post I’ll explain how to THINK in the WordPress way, the files you need to customize, create and how to get posts in yours next website pages.

How WordPress works

The first question I had is how to imagine a new website in the WordPress way. It’s easy, because it has only 2 ways of save data: Posts and Pages.

It’s simple to understand. Let’s take a sample website content to explain better:

  • About Us
  • Customers
  • Services

Continue reading Thinking the WordPress Way – First Steps

Getting an free Akismet API key for your personal site

Hi all!

Yesterday I publish a new blog theme and the spams arrived! Between 12 AM and 7 AM I received 12 spam emails in my Inbox.

So, let’s get a free Akismet API Key. I’m using the Akismet WordPress Plugin.

Locating the free plan

When you open the Akismet signup page you’ll see 3 paid plans. Just pay attention on the “Personal” plan. That you’ll find “$0-$120/yr”, so you must select that plan and in the next page you select to paid $0/yr for you personal use.

Fill the fields with your personal data and wait for the email with your API Key. After that just access you Askimet Settings page and set up your received API Key.

I hope help.


My blog’s new theme

Hi all!

I am here to present my new blog theme. I know that I have to blog more but I am not having time for that.

So, yesterday I was thinking in a way to blog more and decided to create a new blog theme. I think a clean and small blog theme can make me feel more productive and start to blogging more.

Even I install the incredible plugin WP-Markdown that make me feel better and write more and faster.

Well, that’s all. On this theme I used free icons my Glyphicons, Twitter Bootstrap and WordPress.

Enjoy and if want contact me at @juniorgro!


MySocial – My Social Network developed for academic purposes

Hello people!

I am now finishing my Post-graduate course in Web Development at PUCMG and I had the RubyOnRails discipline to do.

The final work was develop a simple Social Network app using RubyOnRails. I love that framework and think the Ruby language is amazing.

So, the final result is shared in GitHub at https://github.com/juniorgrossi/social_network_dsw7 and the live app is hosted at my own domain: http://mysocial.juniorgrossi.com.

This app was decisive for my interest on improve my RoR knowledges. I am in love with the framework and some GEM’s I use, like Devise and Paperclip.

That’s it! Thanks.