GoDaddy spam filtering

October 20, 2009 by Gabriela

This article presents how to enable spam filtering on your Godaddy account.

The spam filter settings are managed from the Webmail application. You can access the webmail application in 2 ways:
1. the email administration from your godaddy hosting account
2. access directly the email application directly

Access email administration from your godaddy hosting account

1. Login into your godaddy account
Go to www.godaddy.com and login with your Godaddy account name and password.

2. Access your email settings
From the top bar choose Email->My Email Account. A list of your email accounts will be displayed.
Click the “Manage Account” link on the right of the account you need to modify the account settings for.

3. Click launch Webmail

Access the email application directly

Go to http://email04.secureserver.net/webmail.php and enter your email user name and password.

Change the spam filter settings

Once logged into the email application choose Settings->Spam Settings.

The spam settings screen is displayed. You have the following options:
1. Spam settings on/off
2. Behavior
3. Strength
4. Add senders to the blocked list
5. Bulk options when an email is marked as spam
- mark all the emails from the selected senders
- mark only the selected messages
- ask when the message is received

Adjust the spam settings per your needs. Click ok.

The same screen allows to maintain the blocked address list. Messages from senders in the blocked address list will never make it into your inbox.

For more details on the specific options check: http://help.godaddy.com/article/2832

JDBC

March 26, 2009 by bogdan

I will describe in this review the steps taken to create a class, after reading JDBC tutorial and issues arised.
I will describe the steps I’ve gone:

1) download JDK1.6.0_12  which include JavaDB that contains classes and interfaces required for development JDBC applications .

2) NetBeans download the latest version (by downloading the server Glash Fish prelude 1.3, this also include JavaDB). 

3) After installing NetBeans:

 Connecting to Derby database server and I created a database (from window - services - (under Databases) JavaDB - start the server,  (the Java DB drivers are displayed under JavaDB) -  (JavaDB - create database “ultima”)

4) I made a class that will create a table in the above database “ultima”.

I tried to load this drivers ClientDriver and EmbeddedDriver by below statements .

Class.forName ( “org.apache.derby.jdbc.ClientDriver”);

Class.forName ( “org.apache.derby.jdbc.ClientDriver”);

I gave run time error “ClassNotFoundException” for drivers mentioned above.

I do this:

If that drivers are not added in NetBeans make following: Tools-Libraries - to create a new library (EmbeddedDriver) that adds derby.jar files from the specified location (Sun - JavaDB - ..).

When you create the application right click on the symbol applications - project proprietes - libraries - add the drivers, and then the drivers will be recognized by the class.

This is the class wich I tried to run:
package javadbdemo;
import java.sql.*;
/**
 *
 * @author boghy
 */
public class NewClass1 {
 public static void main (String[] args)
    {
        String url = “jdbc:derby://localhost:1527/ultima”;
        Connection con;
        String createString;
        createString = “create table cafele” + (”NumeCafea varchar(32),” + “SupID Integer, “+ “Pret float,” + “vanzari integer,” + “total integer”);
        Statement stmt;

        try{           

Class.forName(”org.apache.derby.jdbc.ClientDriver”);
        }
            catch(java.lang.ClassNotFoundException e)
            {
                System.err.print(”ClassNotFoundException: “);
                System.err.print(e.getMessage());
            }
        try{
            con = DriverManager.getConnection(url);
            stmt = con.createStatement();
            stmt.executeUpdate(createString);
            stmt.close();
            con.close();
        }catch(SQLException ex)
        {      System.err.println(”SQLException:”+ ex.getMessage());

    }
        }
}

Joomla 1.5 and SEF URLs for SEO on Godaddy

March 8, 2009 by Gabriela

Search engine friendly URLs are a must for the search engine optimization.

Here is an example:

A search engine friendly URL: http://dacian.word-history.com/buy-the-dictionary.html

The same URL in a non-friendly way: http://dacian.word-history.com/index.php?option=com_virtuemart&Itemid=30

Joomla 1.5 comes out of the box with this functionality. There are a couple of tricks to make it work on Godaddy.

In essence the steps are easy:

1. On the admin side, go to Global Configuration->Site->SEO Settings

2. Set search engine friendly and use mod_rewrite to yes; also set add suffix to urls to yes.

3. Rename htaccess.txt .htaccess

It should work but nmore often then not it doesn’t. Here is why:

1. Godaddy takes about 1 hour to take into account the .htaccess file once is set up on your site

2. The htaccess.txt in the distribution doesn’t work.

To make everything work, just copy the attached file as your .htaccess.txt and wait for about 1 hour for the file to be activated.

Good luck  !

PS: this will give you SEF URLs only for the basic Joomla functionality and as menus and articles. It will NOT provide SEF URLs for the components you are adding. This will be covered in the next article.

Blackberry and SOAP

January 26, 2009 by ovidiu


Blackberry and SOAP

 

In the 21st century, client-server communication is rapidly becoming the very foundation of computer applications. Everything is moving from offline to on-line, be it your work, your media or your shopping. This, of course, means getting the client and the server to talk to each other. For enterprise-level applications, one of the most common ways to do this is to have the server expose a number of web services, and then have the client(s) use those services to send and receive information. Web services are in theory protocol-independent (they’re just a concept), but in practice SOAP is by far the most used protocol for implementing web services, and as such has seen many implementations across a huge number of platforms. So, we have a very powerful concept (web services), a standardized and widely used protocol (SOAP) and your trusty Blackberry. Can we make something out of this?

 

Getting your Blackberry to access web services via SOAP is not as easy as I would have liked it to be. While it is XML-based (and thus human-readable), SOAP is intended for machine-to-machine communication. It is very powerful, very flexible, and VERY complicated (it might seem simple at first, but once you get past the basic examples your head will quickly start to hurt). Most web-services based on SOAP are defined using a WSDL (web services description language) file, that describes where the web service is, what functionality it provides, what kind of input the web service expects, and what kind of output it produces. So how do you go from WSDL file to a Blackberry SOAP client?

 

Method one: use a stub generator. A stub generator (in our case) is a program that, given a WSDL file, produces a set of classes that encapsulate all the functionality of the web service and also take care of the communication between client and server. Let’s take the example of a fictional restaurant management web service. A stub generator, given the web service’s WSDL file, might produce a set of classes that will allow you to simply write Food pizza = Restaurant.cookPizza(“Pepperoni”) in your code, without having to worry AT ALL about what goes behind the scenes. Stub generators are available for many languages and platforms, and one is bundled with Sun’s WTK  (just open ktoolbar.exe, create a new project, then go to Project/Stub generator). Sun’s stub generator produces J2ME code based on JSR 172 (web services) optional API, and since most Blackberry devices have support for JSR 172 you can use the code it generates in your application. However, while it works for small to medium complexity WSDL files, I have found it to be ineffective (ie. The code generated did not respect the logical structure described by the WSDL) for more complex web services. It is still your best shot, so try this before anything else.

 

Method two: use and API and write your own classes. If method one fails, it’s time to write your own implementation. If your target device supports it, using the native JSR 172 API is the best approach to do this. Alternatively, you could try and use the kSOAP 2 library. Be advised that I have found kSOAP2 to be unsuitable for more complex web services, however for simple ones it should be enough.

 

Method three: use a proxy. Netcaboodle (http://www.netcaboodle.com/) offers a proxy-based solution, complete with a stub generator, that is advertised to fully support SOAP, and as a bonus be compatible with a very large number of devices (plus is saves on bandwidth and CPU). This solution works by placing a proxy between the mobile client and the web service, basically offloading all the complex stuff to the proxy.

 

Method four: MacGyver a solution. For example, you could take the query generated by a more powerful desktop-based client and use string replacement to replace “<your value here>” with the actual value you want to send to the server. Then, you could write a custom parser for the response messages that extracts the relevant information and transforms it into a data structure you application can understand. This approach has the advantage of being relatively easy and quick to implement, and with enough optimizations (ex: use prepared queries, use the native XML API to parse the response, etc) it can become quite fast. However, any changes to the web service structure on the server side will most likely break your code, so you have to be VERY careful about this.

 

So, there you go. Four ways to use SOAP in your Blackberry applications. Each method has its strengths and weaknesses, depending on the project at hand, so don’t rule any of them out.  Happy SOAPing!

Midlet Over The Air Provisioning Set-up for 3rd Party Hosting

November 23, 2008 by Gabriela

To provision a Midlet over the web and allow your users to download it directly on the phone you need both the .jad and .jar file. The .jad file is the Java Application Descriptor and has information about your J2ME application.

In order to provision your Midlet over the web, the web server must be set up the serve the right mime types for the jar and the jad files and the jad file must have the right path to the .jar file. Your hosting provider must allow .htaccess files on your account.

1. Look for a .htaccess file in the root folder of your website. If not .htaccess file exists, create one.

2. Paste these instructions in the .htaccess file and save it:

<IfModule mod_mime.c>
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/java-archive .jar
</IfModule>

3. In your .jad file make sure your application URL is correct:

      MIDlet-Jar-URL: http://www.yoursite.com/midletpath/midlet.jar

Test your Midlet by entering http://www.yoursite.com/midletpath/midlet.jad in your mobile phone’s browser. Follow the instructions and enjoy your Midlet.

Note:

If you are working on a Mac and you cannot see the .htaccess file here is how you can enable the display or the hidden files in Finder:

1. open Terminal   (you can use Spotlight to search for it)

2. Type these 2 commands:

$ defaults write com.apple.finder AppleShowAllFiles true
$ killall Finder

Now you should be able to see the hidden files (the files starting with a .).

ANT & ANTENNA

July 4, 2008 by ovidiu


Most programmers, if not all, have heard about the C++ utility ‘make’. It’s purpose is simple: to aid in the configuration, compilation and deployment of C++ based applications. Make is used by creating makefiles which describe all the sets the above operations require. Then, instead of typing away countless commands at the command prompt, you simply invoke ‘make’ and let it take care of the dirty stuff. This saves time and eliminates a lot of possible errors, but it barely scratches the surface of what ‘make’ can do.  And, guess what, there’s a Java equivalent for ‘make’. It’s name is ANT.

            ANT is an acronym for “Another Neat Tool”. ANT is 100% written in Java and, unlike make, uses XML-based configuration files. This makes editing ANT configuration files a lot easier than editing MAKE configuration files, and a lot less error-prone. ANT is mostly used for one-line compiling and building. However, ANT can do much more. It allows you to build applications for different platforms and configurations, to  include different sources for different targets, to automatically run JUnit test and in general control the entire workflow of the building and compiling process.

            ANT is really easy to pick up and use. There’s a great tutorial over at http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html , so I won’t give you a How-To here. Furthermore, you’ll rarely work with ANT itself, since all major Java IDEs have built-in support for ANT. In fact, if you’re using NetBeans or Eclipse, you’re also using ANT by default, even if you’re not aware of this!

            ANT was built with desktop Java in mind. And while it’s more than suitable for using with J2ME projects, there’s a little extra add-on, called ANTENNA, that provides support for J2ME specific tasks. For instance, it can remove unused classes from JAR files, automatically sign MIDlets, automatically modify JAD files and more. It is a great addition for J2ME developers.

            To my knowledge, ANTENNA is not integrated with NetBeans (although Eclipse supports it). However, the NetBeans Mobility Pack already offers almost everything ANTENNA offers (perhaps with the exception of generating code specific for the Blackberry and Palm OS).  And if you really want to, you can integrate ANTENNA with NetBeans also. There’s a tutorial on the subject available here: http://www.indicthreads.com/blogs/154/Ant_Antenna_NetBeans.html .

            ANT and ANTENNA are two of the most time-saving Java tools in existence. They help you focus more on meaningful tasks, such as coding, and less on more menial tasks, such as actually compiling, linking and deploying your application. Without them, a Java developer’s life simply wouldn’t be the same.

HTTP and J2ME

July 1, 2008 by ovidiu


            In this day and age, everything is connected to everything else. So let’s look at how your J2ME device can join the fun. More specifically let’s see how you can use HTTP and HTTPS from within your J2ME applications.

 

Read the rest of this entry »

Mobile Unit Testing

July 1, 2008 by ovidiu


Wikipedia tells us that “unit testing is a test (often automated) that validates that individual units of source code are working properly. A unit is the smallest testable part of an application.” What this means is that every time you change something in you code, or do something that might affect the behavior of your application, all you have to do is run the test suite and you’ll have an immediate answer to the question “does my change break the application or not?”.

            In the Java world, unit testing is synonymous with JUnit. While JUnit is written in pure Java, it makes use of certain features not available on J2ME, such as the Reflection API. While you cannot use JUnit for J2ME unit testing, suites do exist for J2ME that mimic the behavior of JUnit to a very large degree. Going from Java unit testing to J2ME unit testing is a matter of minutes, and is easy as pie.

Read the rest of this entry »

Parsing XML in J2ME

July 1, 2008 by ovidiu


Intro

            When it comes to exchanging information in the digital world, XML has long been praised as The Great Unifier. Being text-based (thus almost platform-independent) and able to represent any kind of data imaginable, XML turns interoperability and compatibility into goals within grasp. Other benefits, such as savings in both time and money, should also be noted. XML has been around for some time now, and it’s likely it won’t go away anytime soon.

            Now, while XML was busy igniting a revolution in interoperability, another technology was hard at work changing the very way we look at pocket-sized devices such as cell phones. Yes, I’m talking about J2ME. Bringing the power and philosophy of Java to something the size of a candy bar is no easy task, but J2ME has more than proven itself up to the challenge.

            So now, thanks to J2ME, you have billions of devices, all eager to talk to one-another and to exchange information with servers on the internet. And thanks to XML, they can all speak the same language and exchange information in a clear, easy to understand fashion.

Read the rest of this entry »

Paypal Recurring Payments in VirtueMart

April 7, 2008 by Octav

To create a new Paypal Recurring Payment Method in VirtueMart, login to Joomla’s backend, go to Components -> VirtueMart.

Locate the “Store” menu and click the “List Payment Methods” submenu. Click the “New” button in the top right toolbar to create a new payment method.

Read the rest of this entry »

VirtueMart Zero Cost Downloads

April 3, 2008 by Octav

A few days ago, we wanted to have one of our custom made components included in Joomla Extensions Directory.

Toni Marie, chief of Joomla Extensions Directory said:

One of the requirements is that we are able to successfully download and install the product according to the intent of the listing. In this case, we cannot download because PayPal demands a payment higher than zero. It is at that point that the transaction breaks down.

So we had to find a solution to fix this. After some investigation, we found it:

Read the rest of this entry »

How to install Joomla…fresh install

March 27, 2008 by Corina

The main keywords associated to Joomla! CMS (Content Management System), are the following: “It’s easy!”. So feel free to browse through the next installation steps, to find out just how easy it is…

Read the rest of this entry »

Secure Joomla!’s Administrator

March 16, 2008 by Octav

If you have a SSL certificate and want to secure your /administrator/ directory, to be sure that it can be accessed only by HTTPS create a new file and paste:

Read the rest of this entry »

Introduction to PHP sessions and MySQL documentations

March 12, 2008 by Corina

While getting a more proficient understanding of how PHP works, you will find out that one of the nifty things it can accomplish is talking to a MySQL database server, another is using sessions. Sessions are useful when we want to keep track of users as they browse through a site. As an example for using sessions, we can make sure that only those users who have a valid username and password can gain access to a specific part of a site (something like a membership card), or as another example, in the case of any online store, sessions can help you keep track of what is in the shopping cart at any given time.

Read the rest of this entry »

Zen Cart Configuration

March 3, 2008 by George
  1. Managing the store
  2. 1.1 Side boxes and links
    To manage te appearance and existance of the side boxes go to tools meniu->layout boxes controler. To manage the banner of publicity to zencart go to tools->banners
    To manage the links from the header or footer of the site go to tools->EZ-Pages
    You can edit diferent pages with html code to increase their aspect and personalize them.To do that go to tool->define pages editor

Read the rest of this entry »