1/11/13

The Phases of the KDD Process


The Phases of the KDD Process

A KDD process consists of several tasks. Indeed, the actual mining, that is to say the application of a data mining algorithm to a dataset, is only one of these steps. Following the CRISP-Data Mining model [9,31] we distinguish the following tasks:

1. Business Understanding
The very first step of a KDD project should be a close look from the business point of view. The goal of this phase is to gain a deeper understanding of the project objectives and further circumstances strictly from the business perspective. Finally the insights from this initial phase are to be turned into a data mining problem definition.

2. Data Understanding
Based on the results from the business point of view the second step is to get familiar with the available data. The goal is to understand the attributes and the corresponding attribute values and to find out hidden semantics possibly in the data. Furthermore at this stage one should figure out what exactly the available data offers. That is to say, whether it has the potential to answer our mining questions or not, and if possible to select promising subsets of the data.

3. Data Preparation
The next step is to construct the dataset where the mining algorithm is to be run on. This phase covers both syntactic aspects – format transformations for the employed mining algorithm – and semantic aspects like table, record and attribute selection. Last but not least this phase also includes deriving new attributes that contain higher information only implicitly contained in the raw data (e.g. deriving “day of the week” from “date”).

4. Modeling (or Mining)
In the modeling phase the actual data mining takes place. Based on the identified business goals and the assessment of the available data an appropriatemining algorithm is chosen and run on the prepared data.

5. Evaluation
Evaluating the results of the mining run mainly covers three aspects. First of all, it is necessary to ensure whether everything went right from the technical point of view. Was the mining algorithms finally able to read and interpret the prepared dataset correctly? Were all designated information actually given to the algorithm? Etc. Second, one needs to investigate whether the mining results are sound from the mining methods point of view. Some methods directly support this decision by computing certain significance measures whereas others leave this aspect completely to the analyst and his experience. Third, a key objective of the evaluation phase is to determine if all important business issues have been considered adequately.

6. Deployment
After mining the data and assessing the data mining results one needs to transfer the results back into the business environment. This can be rather straight forward like preparing the results in form of a report that is understandable by business people (who of course typically are non data mining experts). Or, as the other extreme, can be quite complex like implementing a repeatable data mining process across the enterprise.

1/10/13

UML Tools for Ubuntu

UML Tools for Ubuntu

Unified Modelling Language (UML) is basically a modelling languages that is typically used in the design phase of object oriented software development process, to express the thought in graphical representation, to visualize the system etc. UML, created by OMG (Object Management Group), has now become the standard approach to software modelling. In fact the UML diagrams makes coding part easier in complex systems, so the time you would spent in drawing will save you a lot of time (later, during development/implementation phase). UML diagrams represents – Static as well as Dynamic views of a system, so using UML tools you can draw – class diagrams, activity diagrams, sequence diagrams, use case diagrams etc.
There are various tools available such as IBM Rational Rose, for drawing UML diagrams but in this post you are going to know about some open source modelling tools, that you can use on your Linux based Operating systems e.g Ubuntu 11.04 (Natty Narwhal) /11.10 (Oneiric Ocelot, the code name of upcoming version)/ or older versions such as 10.10/10.04 LTS…, Linux Mint, Fedora, OpenSuse etc.

UML Modelling Tools for Ubuntu (11.04/11.10/10.04/10.10..) or other Linux OS

Here are some of the most popular free and open source UML Modelling softwares that you can use with Ubuntu or other Linux distro, some of them are cross-platform i.e also available for Windows and Mac OS. Try some of them and choose the one which suits you best.

Umbrello UML Modeller

Umbrello is a KDE based software for creating UML diagrams in standard format. It supports a lot of languages and code generation (advanced code generation is available for ruby) is also supported, it has all basic features – that you expect from a UML tool.
umbrello-uml-modelling-tool
Download Umbrello UML Tool or better install it from command line (in Ubuntu or Debian based system) -
sudo apt-get install umbrello

Gaphor

Gaphor is a cross-platform UML tool with simplicity, before installing it be sure to check for its dependencies such as Python (version 2.5 or later).
Download Gaphor
gaphor-uml-tool-for-ubuntu

ArgoUML

ArgoUML is one of the best open source – ‘software modelling tool’ with a lot of advanced features. It is a java based (and of course cross-platform) application.
argouml-snapshot
The supported diagrams are -
  • class diagrams
  • statechart diagrams
  • use case diagrams
  • activity diagrams
  • sequence diagram
  • deployment diagram
Download ArgoUML (Latest version 0.32.2 was released on April, 2011)

Dia

Dia is a GTK based drawing program that can be used for drawing UML diagrams, Flowcharts, Network diagrams etc.
Download Dia

1/8/13

How to Turn Your Ubuntu Laptop into a Wireless Access Point

How to Turn Your Ubuntu Laptop into a Wireless Access Point

image
If you have a single wired Internet connection – say, in a hotel room – you can create an ad-hoc wireless network with Ubuntu and share the Internet connection among multiple devices. Ubuntu includes an easy, graphical setup tool.
Unfortunately, there are some limitations. Some devices may not support ad-hoc wireless networks and Ubuntu can only create wireless hotspots with weak WEP encryption, not strong WPA encryption.

Setup

To get started, click the gear icon on the panel and select System Settings.

Select the Network control panel in Ubuntu’s System Settings window. You can also set up a wireless hotspot by clicking the network menu and selecting Edit Network Connections, but that setup process is more complicated.

If you want to share an Internet connection wirelessly, you’ll have to connect to it with a wired connection. You can’t share a Wi-Fi network – when you create a Wi-Fi hotspot, you’ll be disconnected from your current wireless network.

To create a hotspot, select the Wireless network option and click the Use as Hotspot button at the bottom of the window.

You’ll be disconnected from your existing network. You can disable the hotspot later by clicking the Stop Hotspot button in this window or by selecting another wireless network from the network menu on Ubuntu’s panel.

After you click Create Hotspot, you’ll see an notification pop up that indicates your laptop’s wireless radio is now being used as an ad-hoc access point. You should be able to connect from other devices using the default network name – “ubuntu” – and the security key displayed in the Network window. However, you can also click the Options button to customize your wireless hotspot.

From the wireless tab, you can set a custom name for your wireless network using the SSID field. You can also modify other wireless settings from here. The Connect Automatically check box should allow you to use the hotspot as your default wireless network – when you start your computer, Ubuntu will create the hotspot instead of connecting to an existing wireless network.

From the Wireless Security tab, you can change your security key and method. Unfortunately, WPA encryption does not appear to be an option here, so you’ll have to stick with the weaker WEP encryption.

The “Shared to other computers” option on the IPv4 Settings tab tells Ubuntu to share your Internet connection with other computers connected to the hotspot.

Even if you don’t have a wireless Internet connection available to share, you can network computers together and communicate between them – for example, to share files.

1/7/13

Install Java JDK 7 in Ubuntu 12.04

Install Java JDK 7 in Ubuntu 12.04


This package provides Oracle Java JDK 7 (which includes JRE and the Java browser plugin). However, you can’t only install Oracle JRE – the PPA only provides the full Oracle JDK7 package.
1. To add our PPA and install the latest Oracle Java (JDK) 7 in Ubuntu, use the commands below:
#sudo add-apt-repository ppa:webupd8team/java

#sudo apt-get update && sudo apt-get install oracle-jdk7-installer
2. After install you have enable the jdk:
#update-alternatives –display java

3. Check if Ubuntu uses Java JDK 7
#java -version

If all went right the answer should be:
java version “1.7.0_07″

Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)

4. Check what compiler is used:
#javac -version

The correct answer:
javac 1.7.0_07

5. Adding JAVA_HOME to environment
Edit
/etc/environment and add JAVA_HOME=/usr/lib/jvm/java-7-oracle to the end of the file.
First open a Terminal (Applications → Accessories → Terminal), then enter:
#sudo gedit /etc/environment
Append to the end of the file:
JAVA_HOME=/usr/lib/jvm/java-7-oracle
6. Removing Oracle JDK 7
If you don’t want to use Oracle Java (JDK) 7 anymore and want to go back to OpenJDK, all you have to do is remove the Oracle JDK7 Installer and the previous Java (OpenJDK, etc.) version will be used:
#sudo apt-get remove oracle-jdk7-installer

12/7/12

Install Tomcat 7 on Ubuntu 12.04

Install Tomcat 7 on Ubuntu 12.04


Apache has officially launched version 7.0 of the servlet container for Java applications, Tomcat. Major changes in this version, you can highlight support for Servlet 3.0 and JavaServer Pages 2.2.


Install JDK
See this post: Install JDK 6 update 23 in Ubuntu 10.10

Installation

The first thing to do is download the package "apache-tomcat-7.0.6.tar.gz" from the NEXT link
http://tomcat.apache.org/download-70.cgi [tar.gz]
Now unpack it with the following command:
tar xvzf apache-tomcat-7.0.8.tar.gz

Then we let in a more appropriate directory, in our case in / usr/share/tomcat7, but can be in any directory. We do this with the command:
sudo mv apache-tomcat-7.0.8/ /usr/share/tomcat7

Now we define the environment variables JAVA_HOME and JRE_HOME. This file is in the "environment" in / etc. Command to edit the file:
sudo gedit /etc/environment

Here we record the routes where we have installed Java in my case this is as follows:

JAVA_HOME="/usr/local/jdk1.6.0_23"
JRE_HOME="/usr/local/jdk1.6.0_23/jre"
PATH="...(other path):$JAVA_HOME:$JRE_HOME"
( or we can configure it directly in /etc/environment )
IMPORTANT: Verify the routes where they have installed Java.

I have had some problems in defining these environment variables, as sometimes tomcat does not recognize, but a surefire way of recognizing that tomcat is to define the file paths inside "catalina.sh"located in tomcat7/bin. To modify this file use the command:
sudo gedit /usr/share/tomcat7/bin/catalina.sh

Now just insert the JAVA_HOME and JRE_HOME after the first line, so the file is as follows:
#!/bin/sh
JAVA_HOME="/usr/local/jdk1.6.0_23"
JRE_HOME="/usr/local/jdk1.6.0_23/jre"
# Licensed to the Apache Software Foundation (ASF)...
#...
#...
....

Now let's configure Tomcat users, this is done in the file "tomcat-users.xml"directory tomcat7/conf. Command to edit the file:
sudo gedit /usr/share/tomcat7/conf/tomcat-users.xml

Unlike previous versions where the administrator should own role "manager" now it should be "manager-gui"to operate on the web administration tomcat7. The file would be as follows:

















Now you should be all ready to try tomcat7.

First we must lift the server with the following command:
sudo /usr/share/tomcat7/bin/startup.sh

With this we get the following output on console:
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using JRE_HOME: /usr/local/jdk1.6.0_20/jre
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Verify that the JRE_HOME is where we define.

Now open your web browser and type the following url:
http://127.0.0.1:8080/

So we get the following page:

If we enter the administration Tomcat Manager we click on the menu or directly at URL:
http://127.0.0.1:8080/manager/html

Here we ask the user data from previous record in mind tomcat-users.xml.

I recommend testing the sample to make sure everything works ok, they are in the section "Miscellaneous" from the side menu or at the URL:
http://127.0.0.1:8080/examples/

Commands

Start server:
sudo /usr/share/tomcat7/bin/startup.sh

Stop server:
sudo /usr/share/tomcat7/bin/shutdown.sh

Automatic Starting

To make tomcat automatically start when we boot up the computer, you can add a script to make it auto-start and shutdown.


sudo gedit /etc/init.d/tomcat7

Now paste in the following:


# Tomcat auto-start
#
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /var/run/tomcat.pid

case $1 in
start)
sh /usr/share/tomcat7/bin/startup.sh
;;
stop)
sh /usr/share/tomcat7/bin/shutdown.sh
;;
restart)
sh /usr/share/tomcat7/bin/shutdown.sh
sh /usr/share/tomcat7/bin/startup.sh
;;
esac
exit 0

You’ll need to make the script executable by running the chmod command:


sudo chmod 755 /etc/init.d/tomcat7

The last step is actually linking this script to the startup folders with a symbolic link. Execute these two commands and we should be on our way.


sudo ln -s /etc/init.d/tomcat7 /etc/rc1.d/K99tomcat
sudo ln -s /etc/init.d/tomcat7 /etc/rc2.d/S99tomcat

Tomcat should now be fully installed and operational. Enjoy!

sudo /etc/init.d/tomcat7 restart

9/6/12

EMAIL SIGN-OFF CONSIDERATIONS


EMAIL SIGN-OFF CONSIDERATIONS

The topic of how to sign-off an email is one that has perplexed and concerned many a Netizen. Those who are concerned about being perceived favorably wonder how to sign-off with the appropriate tone, close with the intended meaning getting across as well as how not to look redundant by always including the same closing.
First things first. All sign-offs need to include your name. Whether you include your first name alone or first and last name is dependent on the level of formality in your email. For first time contacts you can include your last name, but in subsequent communications that isn’t necessary. If you have your email program setup properly, your last name is in the From: field.
Not only does how you sign your name set the tone of an email, so does how you choose to sign-off. Some have their own way of signing off that reflects individuality or their personality. For example I am known for signing off my emails with “At your service,” or “Virtually,”. If you see anyone else using these closings, you now know where they got it from!
Then there are the most popular:
Best,

Cheers,

Yours,

Cordially,

Regards,

Best regards,

Best wishes,

Sincerely,

Kindest regards,

Warmest regards,

I remain yours truly,

Warmly,

Thanks again,

My sincere thanks for your time and consideration,

Take care,

Continued success,
As with anything to do with email, use your discretion as to what is best for that particular message. For example, you wouldn’t use “I remain yours truly” in business communications, but you would use that closing with someone you admire, like or would like to have a friendly email relationship with. Whereas “Regards,” is the other end of the scale. Very professional, unemotional and depending on the content of the email could be perceived as a terse closing.
One must take the time to choose a sign-off that is indicative of the overall tone of your email. A sign-off that does not match the essence of the email’s text can be perceived as being sarcastic or down right rude. For example, I doubt if you were sending a professionally stern email that you would sign off with “Warmly!”
And that is the dilemma we all face when writing and closing our emails. Using our discretion to determine the best words to use to relay the exact tone and intent with clarity to avoid misunderstandings. From how you open your email with a salutation to the content and then the sign-off, all parts of your email are a component that contributes to the overall interpretation of your message.
Most onliners are not clear communicators. If you think about it we haven’t had to rely on communicating with the written word in decades. Just a mere century ago people wrote letters daily. This meant choosing their words carefully and thoughtfully to communicate the emotion and intent of their writings. Now, fast forward to this century and many emails appear to be written by someone who didn’t make it out of grade school!
The above examples are not the end-all-be-all either. Your sign-off isn’t exclusively the words above your name separated by a comma. You can also use phrases that reflect the purpose of your email as well. Some examples could be:
Good Job!

All the best of success!

Have a great day!

Happy Holidays!

Keep up the good work!

Thank you!

Thank you for your quick response.

Thank you for taking your time.

Looking forward to your reply.

Enjoy your weekend!

HTH! (Hope This Helps!)

Have a good one!
Your closing, while very important, is only the icing on the cake. It needs to be inline with the overall tone and demeanor of your email to ensure that your message is received as intended and leaves no room for misunderstandings or incorrect perceptions.
By taking your time and choosing your words carefully your sign-offs will just be one more indicator of what a pleasure it will be to communicate with you.
Help get the word out by sharing! ;-)

6/6/12

IPv6

What if the Internet ran out of room?
In fact, it's already happening.


Vint Cerf, Chief Internet Evangelist at Google, and a founding father of the Internet, discusses the next version of the Internet, IPv6, and why we need it.

Why is the internet running out of room?

Just as phones use a system of phone numbers in order to place calls, every Internet-connected device gets a unique number known as an "IP address" that connects it to the global online network.
The problem is that the current Internet addressing system, IPv4, only has room for about 4 billion addresses -- not nearly enough for the world's people, let alone the devices that are online today and those that will be in the future: computers, phones, TVs, watches, fridges, cars, and so on. More than 4 billion devices already share addresses. As IPv4 runs out of free addresses, everyone will need to share.
IPv6 Graph

How are we making space to grow?

Clearly the internet needs more IP addresses. How many more, exactly? Well, how about 340 trillion trillion trillion (or, 340,000,000,000,000,000,000,000,000,000,000,000,000)? That's how many addresses the internet's new "piping," IPv6, can handle. That's a number big enough to give everyone on Earth their own list of billions of IP addresses. Big enough, in other words, to offer the Internet virtually infinite room to grow, from now into the foreseeable future.

When is the transition happening?

At Google we believe IPv6 is essential to the continued health and growth of the Internet and that by allowing all devices to talk to each other directly, IPv6 enables new innovative services. Replacing the Internet's plumbing will take some time, but the transition has begun. World IPv6 Launch on June 6, 2012, marks the start of a coordinated rollout by major websites and Internet service and equipment providers.
You do not need to do anything to prepare, but if you're interested in learning more and supporting IPv6, check out a few frequently asked questions.