Backup GMail mail in Outlook

So Maybe you got an email account that you're no longer use. But you don't want to loose the information there, and it cost you!

So, why not download that info and then delete the account!

Let's do that quickly and not painfully.

Step 1: Search for the Configuration Menu



Step 2: Modify the POP and SMTP option like the image:



Step 3: Enter Outlook 2013 and create a new account:





Step 4: Configure the account :





And then go to advance configuration ( Más Configuraciones) and configure the Ports from IMAP and SMTP, make sure that you select SSL. There´s a bug that when you change the SSL, the port reset itself, make sure it¿s 993 and 465!



Now, accept the changes and wait. It may ask for your password again and again, that's because you have to tell GMAIL that you want to access your mail via an old software (yes Outlook 2013 it's outdated) . You will now because Google is going to send you and email with information to configure it.

In Spanish but it's the same


Then try again an you're settled!

Have a great day Comrade!

Installing Modules in Drupal without using FTP

Let's make a quick note about installing modules in Drupal7. Usually when moving your site from your localhost to your production server, you will notice several problems in moving your site.

One of those problems is when you're installing  new modules in your site using the url in  the Drupal modules page and then this wild pokemon appear:

Drupal FTP Installation
This is not the normal way that Drupal7 use to install modules. you are going to see this interface when the file owning and permission in Drupal dont work.

So, how do I fix this?

Easy, well this depend on what Linux are you using (please use Linux). You can always see the Linux version using version in the command line.In my case, I use Ubuntu and to fix this you must go to var/www/html7yoursite/sites and then exec this litle gem:  sudo chown -R www-data *.

There, fixed :)

What kind of Magic is this?

Well, usually in Drupal, you must give permission to the Apache user (if youre using Nginx, I assume is the same) so Drupal can work as usual. In this case we do a chown with -R (recursivity) putting www-data (the Apache user usually in Ubuntu)  as the owner of all files inside sites. You welcome ;)

Installing Modules in Drupal without using FTP

Let's make a quick note about installing modules in Drupal7. Usually when moving your site from your localhost to your production server, you will notice several problems in moving your site.

One of those problems is when you're installing  new modules in your site using the url in  the Drupal modules page and then this wild pokemon appear:

Drupal FTP Installation
This is not the normal way that Drupal7 use to install modules. you are going to see this interface when the file owning and permission in Drupal dont work.

So, how do I fix this?

Easy, well this depend on what Linux are you using (please use Linux). You can always see the Linux version using version in the command line.In my case, I use Ubuntu and to fix this you must go to var/www/html7yoursite/sites and then exec this litle gem:  sudo chown -R www-data *.

There, fixed :)

What kind of Magic is this?

Well, usually in Drupal, you must give permission to the Apache user (if youre using Nginx, I assume is the same) so Drupal can work as usual. In this case we do a chown with -R (recursivity) putting www-data (the Apache user usually in Ubuntu)  as the owner of all files inside sites. You welcome ;)

Recovering Lost Data with PhotoRec for Free

So, we all have been in the same problem, we format our PC and discovered that we didn't save our photos from last christmas. What a shame.  Of course around the web you can find a pletora of tools to do the job and most of them require a payment to be done. But not this, PhotoRec is a small and powerful program that can try to recover your lost data. So hands to the job.

Step1: 

Download PhotoRec from his wikipage. We are trying the 7.0 version, released on december 2014. It worked good for me. When on the Download page, you will see a green big button that say Free Download, so go ahead.


Step2: 

Unzip the beast, and exec the file called qphotorec_win.exe


Step3:

Select the physical drive that you want to scan, select the kind of files you want to recover (photos come in *.jpg,*.bmp and *.png)


Step4:

Select where do you want to recover your Photos. Of course it has to be in a diferent Disk that the one being scanned. If you create it on the same disk then you could lose your data because it will overwrite on the remaining pieces of data, son don't play with your luck


Step5:

Press Start and Cash In

Do I really have to put this image? Hell yes.

Why do I choose Photorec instead of other recovery products?

Well first of all, its awesomely free, easy to use and it do the dirty job. All the payed software that I tried, first scan the disk, then ask you for money (Oh I have test the first page of google when looking for Recovery Software and most of them ask you for money) . The awesome thing with PhotoRec is that when you press start, it really start to recover your data, so let's say you have a blackout in your city, if Photorec is working, and your pc survives the blackout, then you may have some data recovered from your pc.

Second of all, it's pretty fast and stable. Other options couldn't work all the data I was trying to save. I got a 1 Terabyte disk that was formatted and also got an installation of Windows 7 on it, so some of my data could have been lost, but Photorec still managed to recover like 50 gigabytes worth of photos, and I just waited for 6 hours to do it.

Tips and Fun when using Photorec

  • Although it will slow down the recovery, always start your antivirus software just in case you may find virus. The first time I tried Photorec with all the file extension turned on , I discovered like 300 virus on my hard drive. Also never ever ever execute a *.exe file freshly recovered from Photorec, you are calling your own doom doing that.
  • Remember to select your file extension. The first time that I tried the recovery, I matched all the extension and it never ended running. I stoped it at the third day of running, and I was deleting all kind of files because my backup disk has less space than the one being recovered.
  • Please dont save your data ON the disk being recovered, I repeat it again, if you do that, you ARE GOING to loose the deleted files forever.
So how does Photorec works? Well its magic, the only thing I know is that when you format a disk, you dont delete the physical files, you just delete the index that point to your physical files, that is why when you write new files to your disk, you are really overwriting on top of all the physical files that are not in the index. There's a special case when formating your disk that is called low level formatting that really delete the files from the hard drive, in that case you are not going to recover your files with this tool.

So please, take a look at that software, it really help me a lot, so this is a tribute to the guy that made this software. Please have a nice day Mr C. Grenier!.

MySQL server has gone away and Drupal

So if you got this problem, it's not really a Drupal problems, it's a problem with mysql configuration. The easy way to fix it is entering to my.ini and search for the string max_allowed_packet and set it to 32M or more.

Have fun!

Correct Way to Translate Content in Drupal

Ok, this will be a small post about keeping a multilanguage web page in Drupal7. As you know  Drupal is powerfull, but a bit complicate when configuring it. This WILL NOT be a tutorial, but a general map of instruction to translate your website. So let's see howto do it.

How Drupal knows what is the current language on your page.

There's a lot of ways of how drupal can recognise the current language. In fact you choose one when configuring the languages that are going to be on Drupal. But I really recommend using the URL method. This work as follow. Suppose you have a domain www.domain.com. When using URL for internationalization, your webpage in spanish are going to be on www.domain.com/es. So your node1 should be www.domain.com/es/node/1, in english it will be www.domain.com/en/node/2 (node2 because that's your translated module). There are other ways like having a global variable, but it will mess up your SEO, because google really hates having the same URL with different content (ok, its the same content but in a different language).


Translating Content

For translating content, you have to install the i18n module. When installed, a new tab called translate will appear when editing your node. The way you translate a content is creating a new node that is related to the original node. 

Translating WebForms

This will be the same as content. You create a clon of the original webform and relate it to the original.


Translating Blocks

You are going to need to activate the block Language Module. Works the same as Content.

Translating things in Views

So, lets say you create your awesome view and have put some global text button, or put a main title on it. the way you have to translate that is using the Content Translation module that comes with core of Drupal. After that you have to search for the string you want to translate, include the HTML if your title or global text have that, or else it will not appear in your search list. But!, and this is a very big but, when translating string, make sure youre currently on the language the translate string is. For example is you create a title in Spanish, let's say "Hola Mundo" (yes with the span tags to separe Hola from Mundo), you have to search that string using the admin in spanish, like www.domain.com/es/admin/translateblahblah or else your string will appear in the wrong language.

Menus and URL

This is the last thing you want to translate. For me its easy to create a new menu item in a different language. And why do it last? Because the URL of your content will exist only after your content is created. 

So, what thing's cannot be done easily?

My only problem right now is looking  for a way to translate the URL of a View in Page form. If you know, please tell me in the comment. Good luck!


Image corrupt or truncated in Firefox

Ok this will be a small entry. I got this problem in a Drupal7 Web Page using a slider module, the classic rotating image block.

It was kinda strange, because even in Internet Explorer the images were ok (IE!). So after trying the same webpage in Opera and Safari, and seeing that it worked ok, I disabled my Firebug extension and it worked like a charm!. I enable it, and the problem was gone.

So next time you have this problem, a corrupt image in firefox only, maybe you should deactivate any Firefox plugin youre having right now, specially Firebug. Hope it help someone.