Tuesday, May 15, 2012

Using a Test SMTP Server For Local Drupal 7 Email Testing

I don't usually require testing email notifications and other email related functions during local site development using Drupal, but there are times when you really need to test how, when and to whom emails are being sent to.

I use Uniform Server for local development, but this should apply to any WAMP install, as it uses just 2 things:
  1. First, the SMTP module
  2. Second, an account in mailtrap.io
For those who are wondering why one should use mailtrap instead of just connecting to hotmail, yahoo or gmail accounts, reasons are:
  • Most email providers will require you to connect via SSL / TLS
  • and will also try to block you believing you are trying to send out spam
Steps
  1. To get SMTP functionality, install the SMTP module
  2. Once you have installed the module, it will require you to input SMTP details. This is where mailtrap.io comes in.
  3. Create an account in mailtrap.io. Once you sign up, you'll receive a confirmation email in your inbox.
    Confirm your email
  4. Go back to mailtrap.io and create an Inbox
  5. Once an Inbox is created, you'll be given SMTP details that you can use
  6. Copy over to the SMTP module configuration page the SMTP details like SMTP Server, Username, Passwords, etc.
  7. Save, and test.

Monday, May 07, 2012

Apache crashes when running Drupal on Uniserver 7.1.5 ( Orion )

While installing additional modules to Drupal 6 and 7 on UniServer 7.1.5 ( a portable server on Windows ), I have encountered multiple times Apache having problems starting. Looking at the Apache logs, there are entries for PHP Fatal error: Allowed memory size of 33554432 bytes exhausted.

This can quickly be resolved by increasing PHP Memory Limit to something higher than 32MB.

  1. From root of UniServer, go to usr > local > php and open in a text editor the php.ini file.
  2. Look for memory_limit and increase from 32M to 64M or 128M.

  3. Restart Apache service.

Thursday, March 15, 2012

Create a Bootable DOS Flash Disk

The process is simple, and the end result is a very basic bootable flash disk.


  1. Download Bootable USB Drive Creator Tool from Softpedia, this contains both the formatter and DOS files ( MS-Dos and FreeDos ).
  2. The file download will be in RAR, so extract using an archive utility software like 7-zip.
  3. Once extracted, run the exe file as an administrator ( Right-click > Run as administrator )
  4. On the application, select your usb drive under Device
  5. Check Create Bootable Drive
  6. Browse for the included MS-DOS and FreeDOS folder
  7. Before clicking on Start, make sure that you do not have important files that you want to save on your USB drive, as the process of formatting will delete all the contents of the drive. Click Start to proceed.

After the process, you should have a bootable USB drive with either MS-DOS or FreeDOS.

Alternately, you use another disk formatter and Win98 files, and the process should be the same as above.

Friday, February 24, 2012

What is that  on top of my web page?

 is the BOM or Byte Order Mark of the Unicode standard. To solve issues where the BOM appears on top of your web page, simply open it in a note editor like notepad++ and change formatting to Unicode in UTF-8 without BOM and then save the file.

The BOM should not appear anymore when you view the page on a browser after doing this formatting change.

Resources:

  1. Byte order mark ( Wikipedia )
  2. Notepad++ is an open source text editor. You can download notepad++ here.

Internal Server Error After Migrating a Drupal Site to Go Daddy

Scenario


You have your main domain in Go Daddy with a hosting account linked to it. You either have another domain or subdomain that you want to host on the same hosting account, so you go ahead and create a new subdirectory, and migrate your Drupal files into the newly created directory folder. Once the database has been imported and settings.php updated with the database details, you go to your site, is able to access the home page, but no other page is accessible - you get an Internal Server Error on any page that you try to open, even logging in ( from the home or front page ) gives you the same error.


Solutions to try


If Subdomain

On the root of your Drupal folder, look for the .htaccess file. Download to your local drive and open in a text editor, and uncomment the line:

RewriteBase /

See image below.



If on a Subdirectory

If you are not using a subdomain, but just a subdirectory, try uncommenting the line:

RewriteBase /drupal

Replace /drupal with the name of your drupal directory. See image below.


After saving the file, upload back to your server. Test and see if the change in .htaccess resolved the issue.

Thursday, February 16, 2012

Focus and Track Time with Tomato Doer

Most of us spend our days trying to manage the time that we spend on different tasks, whether its work related or personal chores. Managing time and getting us to focus on whatever we are doing is one of the goals of the Pomodoro Technique, something that you should try if you want to improve your own time management and focus.


There are various tools that you can use to follow the Pomodoro technique, the most simplest being pen and paper. One application that I have found and am currently using is Tomato Doer. It’s portable, keeps a log of your completed sessions and mostly stays out of the way – which is good so that it does not in itself affect your productivity.

You can read more about the Pomodoro technique here first, then try out the tool by downloading it from Sourceforge. Tomato Doer requires Microsoft .NET 4.0 Framework.

Saturday, October 01, 2011

Problem opening Maxthon Portable

Maxthon is a browser that uses both the Trident ( IE ) and Gecko ( Firefox ) browser engines. This browser is available in a portable version, and this quick tip is about how to resolve an issue when opening Maxthon Portable, and it gives you an error saying "Another instance of Portable Maxthon is starting. Please wait for it to start before launching again" ( it should also apply to most cases when you receive an error upon starting the program ).

To resolve the issue, go to the Portable Maxthon folder > Data and look for a file named PortableApps.comLauncherRuntimeData-MaxthonPortable.ini. Delete this file ( don't worry, it will be recreated once Maxthon has successfully opened ) and then try to start Portable Maxthon.

Resources:

  1. Maxthon Site
  2. Maxthon Portable from PortableApps