When creating a Java project, or importing an existing Java project, that uses JUnit tests in Eclipse, you may run into the error message:
the import org.junit cannot be resolved
The error results when properly attempting to import JUnit with lines like the following:
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
The error occurs because the JUnit library has not been configured for the project, but can be resolved using the following steps.
1. Right click on the Java project and select Build Path > Configure Build Path.
2. Click Add Library.
3. Select JUnit, then click Next.
4. Now select the latest version of the JUnit library, then click Finish.
The error should now be resolved.
If WordPress Cron Job isn’t getting triggered on-time, which is common if the blog does not get a lot of traffic, WordPress cron can be setup to use a real Linux crontab to make it trigger on-time. If you don’t have access to the Linux command line for your server, then ask your webhost to setup this up for you.
In wp-config.php disable WP Cron:
Open a Linux terminal command line window and enter:
Now press the i key to insert a new line and paste the following with your domain name:
Now press the Esc key, and then the keys :wq, and enter, to save your changes.
This will fire the cron every 2 minutes.
How to Protect Yourself from Credit Card Fraud
Hacked credit cart accounts and credit card fraud makes the news during the peak holiday season, but that never slows down online purchases. What should you do to protect yourself? The answer, put your credit/debit card information into the right hands.
See that image at the top of this article showing the lock, and the https? That means your data on toddlahman.com is securely encrypted using Secure Socket Layers (SSL) whenever you are passing information back and forth between your web browser and toddlahman.com. Never make a purchase if you don’t see that lock and https on the page your typing information into, because once you click the submit button your data could be read by anyone unless it is SSL encrypted.
It also matters what a website does with your data. Does the website save your credit card information? On toddlahman.com we don’t save any of your credit card information, because it takes a lot of manpower to provide Level 1 PCI security to keep that information safe and secure. Here at toddlahman.com we let Stripe and PayPal receive and store your sensitive credit card information. Stripe is our preferred payment gateway because they’ve made it clear they are PCI level 1 complaint, which means they are as secure as anyone could ever be storing credit/debit card data, so we know you are in good hands.
Payment Card Industry (PCI) Data Security Standard (DSS) is a tested standard that payment gateways must comply with to assess how well they secure credit/debit card data. Level 1 is the stringent level of certification that Stripe complies with. When Stripe stores your data you can be assured they are doing everything in their power to prevent you from being a victim of credit card fraud.
Your security and privacy are very important to toddlahman.com, as is a positive experience with our software. Happy shopping! :)
WordPress Plugin Installation
Installing a commercial paid-for plugin from a zip file for the first time can be a little confusing. A WordPress plugin installation from a zip file using the WordPress dashboard is quite simple once you know how. This guide should prove helpful, but it is not for WordPress.com customers, it is only for self hosted installations of WordPress from WordPress.org.
First go to Plugins > Add New.
The search link is to find free plugins on WordPress.org. Click on the Upload link.
Now select the plugin zip file to install.
If you don’t see a .zip file, but only see a directory you will not be able to complete the installation until you find the zip file. If you are using the Safari web browser, go to Safari > Preferences.
Under the General tab of Safari preferences, Uncheck the box for Open “safe” files after downloading… This will prevent Safari from opening the plugin zip file after it is download, so it will remain a zip file that can be uploaded to WordPress, and will not be converted to a directory that cannot be uploaded to WordPress.
Once you have selected the plugin zip file click the Install Now button.
If the installation completed successfully you should see the screen above. All you need to do now is click the Activate Plugin link.
Now you can edit the plugin settings. The plugin settings can be under Settings, have their own top level menu link and icon, or the settings could be under another top level menu item. Consult your plugin’s documentation for more information about the configuration settings for your plugin.
Some shopping cart forms will allow buyers to click the buy/submit button more than once, resulting in multiple charges to the same person, and irritation. There is a simple way to prevent duplicate form submissions using jQuery. This script prevents a form from being submitted twice, except when using Firefox 3.x, which will submit the form no more than twice if the visitor is clicking the submit/buy button repeatedly.