Aptana and Eclipse Mouse Click Problems

Recently, both the Aptana and Eclipse IDE’s have been giving me mouse clicking problems but I finally found the solution. To fix the problem you will need to do the following:

  1. Create a new empty file called aptana.sh that you will use to launch Aptana.  I store my install of Aptana in /home/username/Applications/aptana so I created the launch script in /home/username/Applications/aptana.sh.
  2. Put the following code in the empty file and save it.  It will become what is called a wrapper script for launching the Aptana application.  Change the paths to match your environment.
    #!/bin/sh
    export GDK_NATIVE_WINDOWS=1
    /home/username/Applications/aptana/AptanaStudio
  3. Make the script executable.  You can do this by right-clicking it in gnome and selecting Properties -> Permissions -> Allow executing file as program.  For the purists: chmod +x /home/username/Applications/aptana.sh
  4. Create a launch script.  For the sake of simplicity, I create a launch script for it on my desktop by right-clicking on the desktop and selecting Create Launcher.
    Name: Aptana
    Command: /home/username/applications/aptana.sh
    (browse to and select the script you created)

You should be able to use a very similar setup to fix mouse clicks in Eclipse as well.  Just change the paths and filenames where appropriate.  Keep in mind that the application for Aptana is called AptanaStudio whereas in Eclipse it is simply called eclipse.

You can now test your script by double clicking the launcher or running the shell script you created.  The mouse clicking problems should be fixed.

Captcha Insanity?

So, normally as a programmer, I appreciate the use CAPTCHAs to prevent spam bots from emailing me random junk, but this is when it get’s a little excessive…

secur

Originally posted on my friend’s website here.

PHP Object Unit Testing

I recently found a PHP tool that might actually be useful to a lot of developers in helping to keep their PHP code clean and help with bug tracking and diagnosis.  With PHP 5, we now have the ability to delve quite heavily into OOP based scripting.  This basically means creating PHP code as Objects instead of spaghetti code.  The tool I found recently is a simple framework for testing your newly created PHP objects.  It is called SimpleTest.

Basically, you can build your PHP objects and use this tool to create test cases in order to ensure that future upgrades don’t break existing code. This is called Unit Testing.  Check it out.  I’d love to know how you like it.

FormContact 1.1 with PHP5 Support

I have recently upgraded FormContact to version 1.1 which now has much better built-in PHP5 support.

The FormContact 1.1 system will allow you to handle most Form-To-Email functions required by a website. It can be set up to take all the submitted form data and convert it to a readable email format. It can be customized to send users to a “thank you” page once the form data has been filled out, and certain form fields can be marked as being required in order for the form to be completed.

It also has the added ability for sending an automated response to the person who fills out the form. Different responses can be used for different forms, and can even be personalized to the user, based on form fields they enter.

Click here to read more about the person who created these resources and is offering them for you to use.

Requirements: PHP 4 or 5

Features:
Form Submission
Convert form submitted data to an email which can be received by the webmaster.

Destination Email
Set one or multiple recipients of the email generated from the form data.

Required Fields
The form can be set up to require certain fields to be filled out before a successful submission can be made.

Followup URL
Send your website visitors to a “Thank You” page once they have successfully filled out the form on your website.

Automated Response
In addition to emailing the form data to the webmaster, the FormContact system can create a customized email response to be set back to the user who filled out the form, based on what data they have entered into the form. Excellent for followup of clients, adding that small extra touch of connection to let them know that they have been heard, and will be contacted further shortly.

Download the script Get a quote for custom work Tip the developer

Website Subversion Backup

As a PHP coder and web developer, I have recently discovered and fallen in love with a tool which helps to keep my source code safely backed up. This tool is called Subversion and “it is used to maintain current and historical versions of files such as source code, web pages, and documentation.” (1) In simple terms, it allows you to back up your files and keeps a history of all the versions of files that you send to it.

This is VERY useful when doing PHP development because as you develop your application you can commit versions of the files to the Subversion (SVN) repository and it will keep track of all the changes you have made. If necessary, you can even revert back to older versions.

One of the difficulties that I have run into while doing website development is how to keep the live remote website synchronized with my local working copy. This is especially true of WordPress installations where editors may be uploading new pictures or documents to the site on a daily basis. If you are not constantly downloading the latest copy of the website, your local copy will be out-of-date and may cause problems in your development.

Subversion to the Rescue:

However, I have come up with a relatively simple solution to this problem, which utilizes the controls within Subversion, to both back up the data on the LIVE website, as well as providing version control for all the site data as a whole. For the sake of simplicity, I will be using a WordPress website as my example, but the concepts here could be applied to essentially any website.

One of the useful features of Subversion is the ability to run what they refer to as “hook scripts” at different points in the versioning process. For example, an SVN repository can be configured to run a set of scripts directly after any data is “committed” to it. (sending data to the repository is called “committing” the data) For this example, this is exactly the functionality we are going to be using.

Before I go any further though, let’s go over some of the requirements for setting up a website and subversion repository in this way.

Read the rest of this entry »

New Webmaster Tool – The Regular Expression Editor

WarkenSoft Productions is proud to announce the development of a new tool for use on our site. The Regular Expression editor will allow you to test and edit any regular expressions that you have been struggling with to develop. Made available for free to our visitors, we hope you enjoy the tool and find it to be useful.

If you have any suggestions for improvements or comments about it, feel free to leave them in the comments area below. Also, we’re always on the look out for good regular expressions, so if you feel that you have one or a few that might be useful to the other visitors to this site, feel free to mention them in the comments.