Posted by: cymfonyiteam | October 11, 2011

Hubs Vs. Switches: What’s the Difference?


It’s true that as far as outward appearance is concerned, hubs and switches appear very much alike. Both also serve the same basic function — to provide a centralized connection for your PCs and other network equipment. But under the hood, hubs and switches operate quite differently, and replacing the hub with the switch is definitely worthwhile.

Why? A network hub is essentially a “dumb” device that has no knowledge of what devices are plugged into it, where data is coming from or where it’s going. Therefore, when Computer A sends data to Computer B through a hub, the hub simply retransmits, or “repeats”, the data to each and every port in a process called a “broadcast.” Each device connected to the hub then checks to see if the data — known as a frame — is addressed to it in order to determine whether to accept or ignore it.

The problem is that the hub’s “send everything to everyone” approach is that it generates lots of unnecessary network traffic, which in turn causes network congestion and seriously limits performance. Since all devices connected to a hub must take turns sending or receiving data, they spend lots of time waiting for network access or retransmitting data that was stepped on by another transmission (this is what a hub’s “Collision” light indicates).

By contrast, a network switch is an intelligent device that can actively manage the data going through it. Unlike a hub, a switch knows which computers are connected to each of its ports — it identifies them by their MAC address — as well as the source and destination address of each data frame in encounters.

When Computer A sends data to Computer B over a switch, the switch sends only the data to the port Computer B is connected to. This limits unnecessary traffic, provides better performance, and leaves other devices connected to the switch free to simultaneously communicate via their respective ports.  So even while Computer A and B are exchanging data, Computer C and Computer D (and E and F, and so on) can still transmit and receive data.

In addition, while a hub is a shared-bandwidth device — it provides 10 or 100 Mbps of total data throughput that’s shared among all of its ports — each port on a switch gets 10 or 100 Mbps of dedicated bandwidth.

Years ago, switches were considerably more expensive than hubs, so the hub was commonly used in situations where cost was as important a consideration (or more so) as performance. These days, however, switches have become quite inexpensive — a basic 16 port 10/100 Mbps switch can be had for as little as $60. While faster Gigabit (1,000 Mbps) switches and those that provide more advanced features such as data prioritization or network management do cost more, they’re still relatively inexpensive.

As for the effort to install a switch, it’s minimal. Just unplug your devices from the hub, plug them into the switch, and you’re pretty much done.

In a nutshell, if you want to get the most out of your new computers, this is an excellent time to kick that hub to the curb and replace it with a shiny new switch.

Posted by: cymfonyiteam | October 11, 2011

Transactions in MySQL


What is a transaction?

If you are asking this question, you are probably used to website databases, where most often it does not matter in which order you run transactions, and if one query fails, it has no impact on others. If you are updating some sort of content, often you will not care when the update is performed, as long as the reads are being taken care of quickly. Similarly, if an update fails, the reads can still carry on reading the old data in the meantime. However, there are times when it is vitally important in which order queries run, and that all queries in a group run, or none at all. The classic example is from the banking environment. An amount of money is taken from one person’s account, and put into another, for example as follows, a 500-unit transaction:

UPDATE account1 SET balance=balance-500;
UPDATE account1 SET balance=balance+500;

Both queries must run, or neither must run. You cannot have the money being transferred out of one person’s account, and then ‘disappearing’ if for some reason the second query fails. Both these queries form one transaction. A transaction is simply a number of individual queries that are grouped together.

A small dose of ACID

For a long time, when MySQL did not support transaction, its critics complained that it was not ACID compliant. What they meant, is that MySQL did not comply with the four conditions to which transactions need to adhere in order to ensure data integrity. These four conditions are:

  • Atomicity: An atom is meant to be the smallest particle, or something that cannot be divided. Atomicity applies this principle to database transactions. The queries that make up the transaction must either all be carried out, or none at all (as with our banking example, above).
  • Consistency: This refers to the rules of the data. For example, an article body may have to have an associated article heading. During the transaction, this rule may be broken, but this state of affairs should never be visible from outside of the transaction.
  • Isolation: Simply put, data being used for one transaction cannot be used by another transaction until the first transaction is complete. Take this example below, where an account balance starts at 900. There is a single deposit of 100, and a withdrawal of 100, so the balance at the end should remain the same.
    Connection 1: SELECT balance FROM account1;
    Connection 2: SELECT balance FROM account1;
    Connection 1: UPDATE account1 SET balance = 900+100;
    Connection 2: UPDATE account1 SET balance = 900-100;

    The balance is now 800, so we have lost 100. These two transactions should have been isolated, and the result supplied to Connection 2 only when the transaction from Connection 1 was complete.

  • Durability: Once a transaction has completed, its effects should remain, and not be reversible.

Down to work: InnoDB Transactions

Transactions are wrapped in BEGIN and COMMIT statements. Let’s create a sample InnoDB table, and see how transactions work:

mysql> CREATE TABLE t (f INT) TYPE=InnoDB;

Now let’s begin a transaction, and insert a record:

mysql> BEGIN;
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO t(f) VALUES (1);
Query OK, 1 row affected (0.01 sec)

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
+------+
1 row in set (0.02 sec)

mysql> ROLLBACK;
Query OK, 0 rows affected (0.01 sec)

mysql> SELECT * FROM t;
Empty set (0.00 sec)

Without a COMMIT statement, the insert was not permanent, and was reversed with the ROLLBACK. Note that the added record was visible during the transaction from the same connection that added it.

Consistent reads

Let’s try looking from a different connection. For this exercise, open two connections to the database.

Connection 1:

mysql> BEGIN;
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO t (f) VALUES (1);
Query OK, 1 row affected (0.00 sec)

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
+------+
1 row in set (0.00 sec)

Connection 2:

mysql> SELECT * FROM t;
Empty set (0.02 sec)

The important point is that running the same query from different connections (one within the middle of a transaction, the other from without) produces different results. Now, commit the transaction from the first connection, and run the query again from connection 2.

Connection 1:

mysql> COMMIT;
Query OK, 0 rows affected (0.00 sec)

Connection 2:

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
+------+
1 row in set (0.00 sec)

This behavior is called consistent reading. Any select returns a result up until the most recently completed transaction, with the exception of the connection doing the updating, as we saw above. By default, MySQL InnoDB tables perform consistent reads.

Automatic Commits

MySQL also automatically commits statements that are not part of a transaction. The results of any UPDATE or INSERT statement not preceded with aBEGIN will immediately be visible to all connections. You can change this behavior, as follows:

mysql> SET AUTOCOMMIT=0;
Query OK, 0 rows affected (0.00 sec)

Now, note what happens, even if we do not specifically start a transaction with BEGIN.

Connection 1:

mysql> INSERT INTO t (f) VALUES (2);
Query OK, 1 row affected (0.00 sec)

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
|    2 |
+------+
2 rows in set (0.00 sec)

Connection 2:

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
+------+
1 row in set (0.00 sec)

Commit the transaction from the first connection, then reset AUTOCOMMIT to 1, and repeat the exercise:

Connection 1:

mysql> COMMIT;
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO t (f) VALUES (3);
Query OK, 1 row affected (0.00 sec)

Connection 2:

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
|    2 |
|    3 |
+------+
3 rows in set (0.00 sec)

This time the transaction is committed immediately, and is visible from another connection, even without a specific COMMIT statement.

 

Read locks for Updating

Sometimes, the default consistent read is not what you want. There are cases where we would want to read a record in order to update it, knowing that we are not conflicting with any other connection that is doing the same thing. For example, two connections read a record, in order to insert a new value incremented by one from the current maximum.

Connection 1:

mysql> BEGIN;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT MAX(f) FROM t;
+--------+
| MAX(f) |
+--------+
|      3 |
+--------+
1 row in set (0.00 sec)

mysql> INSERT INTO t(f) VALUES (4);
Query OK, 1 row affected (0.00 sec)

Connection 2:

mysql> BEGIN;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT MAX(f) FROM t;
+--------+
| MAX(f) |
+--------+
|      3 |
+--------+
1 row in set (0.00 sec)

mysql> INSERT INTO t(f) VALUES(4);
Query OK, 1 row affected (0.00 sec)

mysql> COMMIT;
Query OK, 0 rows affected (0.00 sec)

Connection 1:

mysql> COMMIT;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT * FROM t; 
+------+
| f    |
+------+
|    1 |
|    2 |
|    3 |
|    4 |
|    4 |
+------+
5 rows in set (0.00 sec)

The result is that we have two records with the value 4, where we wanted to have one with 4, one with 5. We can overcome this by creating an update lock. This specifies that no other connections can read that data until the transaction is complete. Here is an update lock in action. First, we delete the erroneous record:

mysql> DELETE FROM t WHERE f=4;
Query OK, 2 rows affected (0.00 sec)

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
|    2 |
|    3 |
+------+
3 rows in set (0.00 sec)

mysql> BEGIN;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT MAX(f) FROM t FOR UPDATE;
+--------+
| MAX(f) |
+--------+
|      3 |
+--------+
1 row in set (0.01 sec)

mysql> INSERT INTO t(f) VALUES (4);
Query OK, 1 row affected (0.00 sec)

Connection 2:

mysql> SELECT MAX(f) FROM t FOR UPDATE;

No results are returned – MySQL is waiting until the active transaction is complete, and only then will it return the results Connection 1:

mysql> COMMIT;
Query OK, 0 rows affected (0.00 sec)

The results are now returned to connection 2. Note that the read may have timed out if you have taken too long:

Connection 2:

mysql> SELECT MAX(f) FROM t FOR UPDATE;
+--------+
| MAX(f) |
+--------+
|      4 |
+--------+
1 row in set (4.23 sec)

mysql> INSERT INTO t(f) VALUES(5);
Query OK, 1 row affected (0.00 sec)

mysql> COMMIT;
Query OK, 0 rows affected (0.01 sec)

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
|    2 |
|    3 |
|    4 |
|    5 |
+------+
5 rows in set (0.00 sec)

Read locks for sharing

Another kind of lock ensures you always read the latest data, but is not part of the transaction wanting to change the data itself. This is the LOCK IN SHARE MODE. It will stop any updates or deletes of the row being read, and if the latest data is still uncommitted, will wait until that transaction is committed before returning any results. Here’s an example:

Connection 1:

mysql> BEGIN;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT MAX(f) FROM t LOCK IN SHARE MODE;
+--------+
| MAX(f) |
+--------+
|      5 |
+--------+
1 row in set (0.00 sec)

Meanwhile, a second connection attempts to perform an update:

Connection 2:

mysql> UPDATE t SET f = 55 WHERE f=5;

The update waits until the lock from the other connection is released.

Connection 1:

mysql> COMMIT;
Query OK, 0 rows affected (0.00 sec)

Connection 2:

mysql> UPDATE t SET f = 55 WHERE f=5;
Query OK, 0 rows affected (6.95 sec)
Rows matched: 0  Changed: 0  Warnings: 0

mysql> UPDATE t SET f = 55 WHERE f=5;
Query OK, 1 row affected (43.30 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> SELECT * FROM t;
+------+
| f    |
+------+
|    1 |
|    2 |
|    3 |
|    4 |
|   55 |
+------+
5 rows in set (0.00 sec)

BDB tables handle transactions slightly differently, and the default MyISAM tables only in a very limited way (table locks only, as opposed to read locks), but if you are using transactions, you are most likely to be using InnoDB tables. If there’s enough demand, I will write a follow up article on transactions in these table types, but hopefully you have enough to keep you busy in the meantime. Good luck!

Posted by: cymfonyiteam | October 11, 2011

Data Mining Query Task in SQL Server Integration Services


One of the primary goals of business intelligence is to transform raw data into meaningful information, by combining its sources, discovering its dependencies and patterns, and using them to predict future trends. While the majority of methods that deliver these objectives fall within the scope of Analysis Services and Data Mining, SQL Server 2008 R2 Integration Services offers a wide range of features that help streamline and automate their implementation. In this article, we will present Data Mining Query Task that illustrates this paradigm.

Besides its obvious purpose of executing Data Mining Extension (DMX) queries, the Data Mining Query task provides a means for capturing their outcome into an arbitrary table. Query execution leverages data mining models, which apply specifically crafted algorithms to data exposed via a mining structure.

To better understand this process, let’s review briefly some of its key concepts. Mining structure constitutes a data source view (commonly combining data from multiple sources) along with associated metadata (such as content type and its distribution), filtered in a manner that serves as a basis for subsequent analysis. Such analysis is conducted by employing mining models that might involve additional filtering (by using distinct sets of input columns or selecting rows that contain specific values only) and aliasing (referencing multiple, individually named copies of the mining structure column set) to facilitate execution of their respective mining algorithms (which, in turn, are utilized to execute predictive queries). Mining algorithms are responsible for identifying patterns and interdependencies in arbitrarily selected data subsets (divided into two partitions – training and testing), yielding forecasts that are used, with certain degree of probability, to extrapolate future events.

Selecting the most appropriate algorithm to match a specific business scenario requires fairly in-depth knowledge of their characteristics as well as good understanding of the underlying data and is beyond the scope of this article (for more information about the available choices incorporated into the product, as well as examples illustrating their use, refer to the Data Mining Algorithms article in SQL Server 2008 R2 Books Online).

In order to demonstrate the functionality of Data Mining Query Task, we will take advantage of the AdventureWorksDW2008R2 sample database (containing customer data of a fictitious company that manufactures and sells bicycles to international commercial markets) downloadable from the CodePlex web site, where you will also find detailed procedures illustrating its deployment. The resulting Analysis Services installation includes Targeted Mailing Mining Structure (similar in many aspects to Bike Buyer Mining Structure documented in the tutorial in SQL Server 2008 R2 Books Online), which, in turn, contains four mining models. While any of them can serve as the basis for our presentation, for the sake of clarity, we will choose TM Decision Tree, which is practically identical to the Decision Tree model referenced by the tutorial and use it to compose a batch prediction query. Its general format can be summarized as:

SELECT TOP
FROM []
PREDICTION JOIN
OPENQUERY([],”)
AS []
ON
WHERE
ORDER BY

As you can see, DMX queries borrow heavily from T-SQL syntax, with minor differences resulting from idiosyncrasy of Data Mining technology. In particular, allows you to combine columns from ProspectiveBuyer table (included in the Analysis Services data source (referenced by the OPENQUERY clause) and mining model (in our case, Adventure Works DW and TM Decision Tree respectively), which are joined together via PREDICTION JOIN (via a number of common columns). The WHERE clause indicates that we are interested in prospective customers that are likely to buy a bike and the value of PredictProbability function calculated against the Bike Buyer column provides the probability of such events. Effectively, the resulting query takes the following form:

SELECT
TOP 100
t.[LastName],
t.[FirstName],
[TM Decision Tree].[Bike Buyer],
PredictProbability([Bike Buyer])
FROM
[TM Decision Tree]
PREDICTION JOIN
OPENQUERY([Adventure Works DW],
‘SELECT
[LastName],
[FirstName],
[MaritalStatus],
[Gender],
[YearlyIncome],
[TotalChildren],
[NumberChildrenAtHome],
[Education],
[Occupation],
[HouseOwnerFlag],
[NumberCarsOwned]
FROM
[dbo].[ProspectiveBuyer]
‘) AS t
ON
[TM Decision Tree].[Marital Status] = t.[MaritalStatus] AND
[TM Decision Tree].[Gender] = t.[Gender] AND
[TM Decision Tree].[Yearly Income] = t.[YearlyIncome] AND
[TM Decision Tree].[Total Children] = t.[TotalChildren] AND
[TM Decision Tree].[Number Children At Home] = t.[NumberChildrenAtHome] AND
[TM Decision Tree].[Education] = t.[Education] AND
[TM Decision Tree].[Occupation] = t.[Occupation] AND
[TM Decision Tree].[House Owner Flag] = t.[HouseOwnerFlag] AND
[TM Decision Tree].[Number Cars Owned] = t.[NumberCarsOwned]
WHERE[TM Decision Tree].[Bike Buyer] = 1
ORDER BY PredictProbability([Bike Buyer]) DESC

While you can execute this query from the SQL Server Management Studio (by connecting to Analysis Services instance, invoking New Query->DMX option from its context sensitive menu, selecting TM Decision Tree entry in the Mining model listbox, and pasting the statement listed above in the DMXQuery window), we are interested in its execution via SSIS Data Mining Query Task. To accomplish this, launch Business Intelligence Development Studio and create a new project based on the Integration Services template. Next, drag Data Mining Task from the Toolbox onto the Designer window and launch its Editor (by choosing Edit … entry from its context sensitive menu). Create a new connection utilizing OLE DB Provider for Analysis Services pointing to the target instance of Analysis Services (or a solution that includes target Analysis Services project where the relevant mining structures and models are defined). Choose Targeted Mailing mining structure in the drop-down list directly below and verify that its mining models are displayed underneath. Switch to the Query tab and enter the predictive query listed above into its textbox.

Note that you could accomplish the equivalent outcome (with the exception of the ORDER BY clause) by leveraging the New Data Mining Query dialog box (accessible by clicking on Build New Query command button). Parameter Mapping and Result Set tabs are not relevant in this case so effectively you can leave them blank. Switch to the output tab and define the second connection manager, which, as mentioned earlier, designates a database and its table where the results of the task’s execution are written.

Posted by: cymfonyiteam | July 4, 2011

It’s all about Cloud Computing


Defining Cloud Computing

Cloud computing is just another place to run your applications. The cloud hides from you details of how your application is run. Different types of clouds hide different aspects of the environment from you. While losing some control and visibility into what is going on, you gain freedom from those details, and a lot of cost savings.

There is a spectrum of computing that you pick from when you decide where and how to deploy your applications. On the far left of this spectrum is the local experience, starting with a mobile device (like a Windows Phone or an iPad). This spectrum stretches to the right through the desktop, to the server room, to the hoster, and finally coming to s stop with the cloud on the right hand side.

Generally speaking, the more you moving from the left to the right the less control over the environment you have, while gaining economies of scale. Think of it this way, when you have to buy, maintain, and support all of the servers you need you have full control over everything. The hardware you select, how often you maintain and patch it, as well as how well you manage security, disaster recovery, and high availability. As you move to the right, towards the cloud, you lose control over HOW these aspects are provided, but you gain economies of scale in the features the vendor provides.

Many customers actually end up with a more secure and better managed platform when they move to the cloud because it is better than what they were able to previously afford (or not afford as the case may be).

The vendor will likely provide for security, availability, and lots of other features and you won’t necessarily know or care how that is achieved. That is ok, as long as it is documented in a contract, and an SLA, and you hold them to that SLA, that is all that matters. Ok, so the cloud is just another place to run my code. But why? Why do I want to use the cloud? The biggest reason is usually money. By moving systems to the cloud that you don’t need a lot of control over (a customer facing portal for example) then you save a lot of money by leveraging the vendor’s economy of scale.

Why Use Cloud Computing?

One of the key differentiators of the cloud is the dynamic allocation of resources from a shared pool to your application. When you site gets busy you can add servers, and as it becomes stagnant you can remove servers. This dialing up and down of resources makes it easier to save money. Cloud offerings are usually maintained like a utility. I can get as much as I want, when I want it, and pay for only what I use. These utility like aspects give your company a great degree of agility to respond to the demands on the system, and to the demands on the business.

As all of the vendors keep trying to woo you, remember that not everything needs to or can run in the cloud. There are going to be pieces of your IT that make complete sense to run in the cloud, and other parts that really show stay where they are. Look for a vendor that can meet these needs, a vendor that won’t require you to completely rewrite your system in their language just to move a part to the cloud. Focus on a hybrid approach, picking the pieces that the cloud will provide the most value for, and moving those. Move the lowest hanging fruit first, that system that has the least risk to the business. Your vendor should have options for connecting your cloud components to your on premises components, and make them all work together.

Looking Deeper into Cloud Computing

This aritcle launches a new column that will be hosted on Codeguru.com. In this new column, you’ll learn about the different types of clouds, when you should use them, and when you shouldn’t. In the meantime, please leave any questions in the comments and we will do our best to get them answered!

 

 

Article By,

Ganesan G.


Contents
– Overview of JMX Technology
– JMX Tiered Architecture
– JMX Technology Implementations
– JMX Technology and J2SE 5.0
– The JMX Technology Programming Model
– JMX Technology for Remote Management
– JMX Technology Related Specifications

 

The Java Management Extensions (JMX) API is a standard —developed through the Java Community Process (JCP) as JSR 3—for managing and monitoring applications and services. It defines a management architecture, design patterns, APIs, and services for building web-based, distributed, dynamic, and modular solutions to manage Java-enabled resources. The JMX APIs make it possible to add manageability to Java-enabled equipment, from web phones to set-top boxes to network devices and servers. Using JMX technology to manage applications and services increases their value to vendors and clients by making applications easier to install, configure, and maintain.

This article provides a fast track technical tutorial to JMX technology. It discusses JMX’s tiered architecture, the JMX programming model, and code demonstrating how to use JMX technology to develop management applications. In addition, the article shows how to use a JMX technology-compliant management tool in the Java 2 Platform, Standard Edition 5.0 (J2SE 5.0), which has implemented version 1.2 of the JMX specification.

Overview of JMX Technology

 The JMX technology is native to the Java programming language. As a result, it offers natural, efficient, and lightweight management extensions to Java-based functions. It consists of a set of specifications and development tools for managing Java environments and developing state-of-the-art management solutions for applications and services. It provides Java developers with the means to instrument Java code, create smart Java agents, implement distributed management middleware and managers, and easily integrate these solutions into existing management and monitoring systems. The dynamics of the JMX technology architecture enables you to use it to monitor and manage resources as they are implemented and installed. It can also be used to monitor and manage the Java Virtual Machine (JVM machine).

Typical uses of the JMX technology include:

  • Consulting and changing application configuration
  • Collecting statistics about application behavior and making the statistics available
  • Notification of state changes and erroneous conditions

Benefits of JMX Technology

The JMX technology enables Java developers to encapsulate resources as Java objects and expose them as management resources in a distributed environment. The JMX specification lists the following benefits to using it to build a management infrastructure:

  • Manages Java applications and services without heavy investment: JMX architecture relies on a core managed object server that acts as a management agent and can run on most Java-enabled devices. Java applications can be managed with little impact on their design.
  • Provides a scalable management architecture: A JMX agent service is independent and can be plugged into the management agent. The component-based approach enables JMX solutions to scale from small footprint devices to large telecommunications switches.
  • Can leverage future management concepts: It can implement flexible and dynamic management solutions. It can leverage emerging technologies; for example JMX solutions can use lookup and discovery services such as Jini network technology, UPnP, and Service Location Protocol (SLP).
  • Focuses on management: While JMX technology provides a number of services designed to fit into a distributed environment, its APIs are focused on providing functionality for managing networks, systems, applications, and services.
JMX Tiered Architecture

JMX technology provides a tiered architecture where managed resources and management applications can be integrated in the plug-and-play approach as shown in Figure 1. A given resource is instrumented by one or more Java objects known as Managed Beans (or MBeans), which are registered in a core managed object server known as the MBean server. This server acts as a management agent and can run on most Java-enabled devices.

Figure 1: JMX Tiered Architecture

Figure 1: JMX Tiered Architecture

As Figure 1 demonstrates, there are three tiers or levels in this architecture: instrumentation, agent, and manager.

Instrumentation Level

This tier contains MBeans and their manageable resources. It provides a specification for implementing JMX technology-manageable resources, which can be an application, service, device, or user. A resource is manageable if it is developed in Java (or provides a Java wrapper) and has been instrumented so that it can be managed by JMX-compliant applications. A resource is instrumented by one or more MBeans that are either standard or dynamic. Standard MBeans are Java objects that conform to certain design patterns (for example, they must have a constructor and setter/getter methods). A dynamic MBean conforms to a specific interface that offers more flexibility at runtime. The instrumentation of a resource allows it to be manageable at the agent level; however, note that MBeans do not require knowledge of the JMX agent with which they operate. In other words, any JMX-manageable resource can use any JMX agent that offers the services it requires.

The key Components at the instrumentation level are the MBeans, the notification model, and the MBean metadata classes.

  • MBeans: An MBean is a Java object that implements a specific interface. The management interface of an MBean is represented as: (1) valued attributes that can be accessed; (2) operations that can be invoked; (3) notifications that can be emitted; and (4) the constructors. There are four types of MBeans:
  1. Standard MBeans: The simplest to design and implement. Their management interface is described by their method names.
  2. Dynamic MBeans: They implement a specific interface, and they expose their management interfaces at runtime for greatest flexibility.
  3. Open MBean: Dynamic MBeans that rely on basic data types for universal manageability; they are self-describing for user-friendliness.
  4. Model MBeans: Dynamic MBeans that are fully configurable and self described at runtime. They provide a generic MBean class with default behavior for dynamic instrumentation of resources.
  • Notification Model: JMX technology defines a generic notification model based on the Java event model. It lets developers build proactive management solutions. Using notifications, JMX agents and MBeans can send critical information to interested parties such as management applications or other MBeans.
  • MBean Metadata Classes: These classes contain the structures to describe all components of an MBean’s management interface: its attributes, operations, notification, and constructors. For each of these, the metadata include a name, a description and its particular characteristics (for example, an attribute is readable, writeable, or both; for an operation, the signature of its parameter and return types).

Agent Level

This tier contains the JMX agents used to expose the MBeans. It provides a specification for implementing agents, which control the resources and make them available to remote management applications. Agents are usually located on the same machine as the resources they manage, but this is not a requirement. The JMX agent consists of an MBean server and a set of services for handling MBeans. Managers access an agent’s MBeans and use the provided services through a protocol adaptor or connector. But note that JMX agents do not require knowledge of the remote management applications that use them.

The main components at the agent level are the MBean Server and Agent Services.

  • MBean Server: A registry of objects that are exposed to management operations in an agent. Any object registered with the MBean server becomes visible to management applications. However, note that the MBean server only exposes an MBean’s management interface and never its direct object reference. Any resources that you want to manage from outside the agent’s JVM must be registered as an MBean in the server. The server also provides a standardized interface for accessing MBeans within the same JVM, giving local objects all the benefits of manipulating manageable resources. MBeans can be instantiated and registered by another MBean, the agent itself, or a remote management application through the distributed services. When you register an MBean, you must assign it a unique object name, which is used by the management application to identify the object on which to perform a management operation.
  • Agent Services: Objects that can perform management operations on the MBeans registered in the MBean server. By including management intelligence in the agent, JMX helps you build more powerful management solutions. The JMX API defines the following Agent Services available in J2SE 5.0:
  1. Dynamic Class loader: Through the management applet (m-let) service, retrieves and instantiates new classes and native libraries from an arbitrary network location.
  2. Monitors: Observe the numerical or string value of an attribute of several MBeans and can notify other objects of several types of changes in the target.
  3. Timers: Provide a scheduling mechanism based on a one-time alarm-clock notification or on a repeated, periodic notification.
  4. The relation service: Defines associations between MBeans and enforces the cardinality of the relation based on predefined relation types.

Manager (or Distributed Services) Level

This tier contains the components that enable management applications to communicate with JMX agents. It provides the interfaces for implementing JMX managers, and defines the management interfaces and components that operate on agents. Such components provide an interface for a management application to interact with an agent and its JMX manageable resources through a connector, and also expose a management view of a JMX agent and its MBeans by mapping their semantic meaning into the constructs of a data-rich protocol (such as HTML).
JMX comprises a separate package for each tier of the management architecture. The instrumentation tier will be free, and other tiers can be built from public specifications or reference implementations available under Sun Community Source License. Alternatively, you can purchase commercially supported products.

JMX Technology Implementations

The Java 2 Platform, Standard Edition 5.0 (J2SE 5.0) supports JMX 1.2 and JMX Remote API 1.0, which is now the official JMX reference implementation (RI). For developers who are running J2SE 1.4, a JMX RI is also available from Sun Microsystems, and can be downloaded free of charge.

Sun Microsystems also provides the Java Dynamic Management Kit (Java DMK). Java DMK 5.1 is the first commercial implementation of the latest versions of the JMX standards, JMX 1.2 and JMX Remote API 1.0. JMDK is an all-in-one product for building secure, interoperable monitoring and management solutions on the J2SE platform, and it is supported on Solaris, Microsoft Windows, and Linux. Several other commercial and open source implementations are available as well. It is worth noting that Tomcat 5.0 implements the JMX specification.

JMX Technology and J2SE 5.0

J2SE 5.0 has implemented version 1.2 of the JMX specification and version 1.0 of the JMX Remote API (JSR 160) specification. J2SE 5.0 includes significant monitoring and management features, including:

  • JVM instrumentation: The JVM is instrumented for monitoring and management providing built-in, out-of-the-box management capabilities for local and remote access.
  • Monitoring and Management APIs: The java.lang.management package provides the interface for monitoring and managing the JVM. It provides access to information such as: number of classes loaded and threads running, memory consumption, garbage collection statistics, on-demand deadlock detection, and others.
  • Management tools such as JConsole, which is a JMX-compliant monitoring tool that comes with J2SE 5.0. It uses JMX instrumentation of the JVM to provide information on performance and resource consumption of applications running on the Java platform.

The core classes for the JMX implementation are provided in the javax.management package. In addition, the java.lang.management package provides the mangagement interface for monitoring and management of the JVM as well as the operating system on which the JVM is running.
To enable the JMX agent and configure its operation using jconsole, your must set some specific system properties when you start the JVM. For local access, set the property com.sun.management.jmxremote as follows when starting the JVM:

prompt> java -Dcom.sun.management.jmxremote AppName

And, to enable monitoring and management from remote systems, set the property:

com.sun.management.jmxremote.port=portNumber

For more information on setting system properties for JMX, please see Monitoring and Management using JMX.

The JMX Technology Programming Model

Using JMX to instrument your applications, services, or devices for manageability is simple. This is because JMX technology shares Java’s object model. If you are familiar with Java and its JavaBeans component model, you already know 95% of all you need to know.

As mentioned previously, an MBean is a Java object that follows some standard design patterns and naming conventions. It can represent a device, application, or any resource that needs to be managed. An MBean exposes a management interface or a set of readable and/or writable attributes and a set of invokable operations, along with a self-description. Note that the management interface does not change through the life of an MBean instance.

Sample Application

This simple application manages a resource. You will create a simple standard MBean that exposes a String object and an operation. For more JMX technology examples, please see the JMX Tutorial.
The first step is to develop the MBean interface. In this application, the interface is called HelloMBean, which declares three methods: one getter, one setter, and one for saying hello as shown in Code Sample 1.

Code Sample 1: HelloMBean.java
public interface HelloMBean {

   public void setMessage(String message);

   public String getMessage();

   public void sayHello();
}

 

The next step is to implement the MBean interface. A sample implementation is shown in the following Code Sample.

Code Sample 2: Hello.java
public class Hello implements HelloMBean {
   private String message = null;

   public Hello() {
      message = "Hello there";
   }

   public Hello(String message) {
      this.message = message;
   }

   public void setMessage(String message) {
      this.message = message;
   }

   public String getMessage() {
      return message;
   }

   public void sayHello() {
      System.out.println(message);
   }
}

 

Congratulations! You have created your first MBean. The next step is to test the MBean, by developing a JMX agent in which you register the MBean. A JMX agent is a component in the agent level and acts as a container for the MBean. A sample agent, SimpleAgent, is provided in Code Sample 3. This agent performs the following tasks:

    1. Gets the platform MBeanServer
  • Registers an instance of the Hello MBean
Code Sample 3: SimpleAgent.java
import javax.management.*;
import java.lang.management.*;

public class SimpleAgent {
   private MBeanServer mbs = null;

   public SimpleAgent() {

      // Get the platform MBeanServer
       mbs = ManagementFactory.getPlatformMBeanServer();

      // Unique identification of MBeans
      Hello helloBean = new Hello();
      ObjectName helloName = null;

      try {
         // Uniquely identify the MBeans and register them with the platform MBeanServer
         helloName = new ObjectName("SimpleAgent:name=hellothere");
         mbs.registerMBean(helloBean, helloName);
      } catch(Exception e) {
         e.printStackTrace();
      }
   }

   // Utility method: so that the application continues to run
   private static void waitForEnterPressed() {
      try {
         System.out.println("Press  to continue...");
         System.in.read();
      } catch (Exception e) {
         e.printStackTrace();
      }
    }

   public static void main(String argv[]) {
      SimpleAgent agent = new SimpleAgent();
      System.out.println("SimpleAgent is running...");
      SimpleAgent.waitForEnterPressed();
   }
}

 
The java.lang.management.ManagementFactory class is a factory class for getting managed beans for the Java platform. In this example, the getPlatformMBeanServer() method is used to get the platform MBeanServer, which is the interface for MBean manipulation on the agent side. It contains the methods necessary for the creation, registration, and deletion of MBeans. The MBeanServer is the core component of the JMX agent infrastructure.
To experiment with this application, do the following:

  1. Create a directory of your choice (such as jmx-example)
  2. Copy Code Samples 1, 2, and 3 into that directory
  3. Compile all the .java files using javac
  4. Run SimpleAgent. In order to use the jconsole tool to manage it, you should run the SimpleAgent as follows:

prompt> java -Dcom.sun.management.jmxremote SimpleAgent

Note: The -Dcom.sun.management.jmxremote system property creates an RMI connector to the platform MBeanServer. For information on the RMI connector, see the coming section, Using the RMI Connector.

  • Connect to the JMX agent using the jconsole tool. Run the jconsole tool from the command line.

Once you start jconsole, it will display the list of local processes to be monitored as shown in Figure 2.

Figure 2: The jconsole monitoring tool

Figure 2: The jconsole monitoring tool

  • Now, you can connect to the service. Once connected, select the MBeans tab so that you can list the MBeans and manage them as shown in Figure 3.

Figure 3: The MBeans tab of jconsole

Figure 3: The MBeans tab of jconsole

It is worth noting that local monitoring with jconsole is useful for development and prototyping. It is not recommended that jconsole be used locally for production environments as it consumes significant system resources. jconsole should be used on a remote system from the platform being monitored. For more information on jconsole and sample screenshots of what it provides, please see Using JConsole.

JMX Technology for Remote Management

The MBean server relies on protocol adaptors and connectors to make a JMX agent accessible from management applications outside the agent’s JVM. Adaptors provide a view through a specific protocol for all MBeans registered in the MBean server (for example, an HTML adaptor could display an MBean in a Web browser).
Connectors provide a manager-side interface that handles the communication between manager and JMX agent. When a remote management application uses this interface, it can connect to a JMX agent transparently through the network regardless of the protocol.

JMX technology exports JMX API instrumentation to remote applications by using Remote Method Invocation (RMI). It also defines an optional protocol based directly on TCP sockets called the JMX Messaging Protocol (JMXMP). However, note that this protocol is not supported in J2SE 5.0.

The JMX Remote API 1.0 (JSR 160) specification describes how to advertise and find JMX agents using existing discovery and lookup infrastructures. In other words, the specification does not define its own discovery and lookup service. Using existing discovery and lookup services is optional; you can encode the address of your JMX API agents in the form of URLs and make these URLs available to the manager.

Using the RMI Connector

Code Sample 4 shows an example of using the RMI connector, which is a slight modification of Code Sample 3.

Code Sample 4: SimpleAgent.java
import javax.management.*;
import java.lang.management.*;
import javax.management.remote.*;

public class SimpleAgent {
   private MBeanServer mbs = null;

   public SimpleAgent() {

      // Get the platform MBeanServer
      mbs = ManagementFactory.getPlatformMBeanServer();

      // Unique identification of MBeans
      Hello helloBean = new Hello();
      ObjectName helloName = null;

      try {
         // Uniquely identify the MBeans and register them with the MBeanServer
         helloName = new ObjectName("SimpleAgent:name=hellothere");
         mbs.registerMBean(helloBean, helloName);

         // Create an RMI connector and start it JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9999/server"); JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs); cs.start();
      } catch(Exception e) {
         e.printStackTrace();
      }
   }

   public static void main(String argv[]) {
      SimpleAgent agent = new SimpleAgent();
      System.out.println("SimpleAgent is running...");
   }
}

To run this application, do the following:

  1. If you wish to run this application on J2SE 1.4, you need to change the line mbs = ManagementFactory.getPlatformMBeanServer();. to mbs = MBeanServerFactory.createMBeanServer("SimpleAgent");
  2. Compile the revised SimpleAgent.java from Code Sample 4.
  3. Start the rmiregistry on port 9999 (prompt> rmiregistry 9999).
  4. Run SimpleAgent (prompt> java SimpleAgent).
  5. While SimpleAgent is running, run jconsole and then use the Advanced tab and enter the information as shown in the following figure.

Figure 4: Configuring jconsole for remote management

Figure 4: Configuring jconsole for remote management

  • Once you are connected, you can browse the MBeans and manage them using the MBeans tab as shown in Figure 5.

Figure 5: Browsing and managing remote MBeans

Figure 5: Browsing and managing remote MBeans

Using the HTML Adaptor

An HTML adaptor is provided by Sun Microsystems and comes with the JMX Reference Implementation (it doesn’t come with J2SE 5.0). The HTML adaptor lets you manage MBeans using a web browser. The adaptor enables you to interact with the agent to view registered MBeans and their attributes. In other words, this adaptor provides a simple yet powerful management tool that lets you:

  • View the readable MBean attributes
  • Update writable attributes
  • Invoke methods

Code Sample 5 shows the revised SimpleAgent that uses the HTML adaptor.

Code Sample 5: SimpleAgent.java
import javax.management.*;
import java.lang.management.*;
import com.sun.jdmk.comm.HtmlAdaptorServer;

public class SimpleAgent {
   private MBeanServer mbs = null;

   public SimpleAgent() {

      // Create an MBeanServer and HTML adaptor (J2SE 1.4)
      mbs = ManagementFactory.getPlatformMBeanServer();
      HtmlAdaptorServer adapter = new HtmlAdaptorServer();

      // Unique identification of MBeans
      Hello helloBean = new Hello();
      ObjectName adapterName = null;
      ObjectName helloName = null;

      try {
         // Uniquely identify the MBeans and register them with the MBeanServer
         helloName = new ObjectName("SimpleAgent:name=hellothere");
         mbs.registerMBean(helloBean, helloName);
         // Register and start the HTML adaptor
         adapterName = new ObjectName("SimpleAgent:name=htmladapter,port=8000");
         adapter.setPort(8000);
         mbs.registerMBean(adapter, adapterName);
         adapter.start();
      } catch(Exception e) {
         e.printStackTrace();
      }
   }

   public static void main(String argv[]) {
      SimpleAgent agent = new SimpleAgent();
      System.out.println("SimpleAgent is running...");
   }
}

 
To experiment with this application, do the following:

  1. Download the JMX Reference Implementation. This is needed only because SimpleAgent (in Code Sample 5) uses the HTML Adaptor, which does not come with the J2SE 5.0 implementation of JMX 1.2. From the JMX implementation, you only need the jmxtools.jar file.
  2. If you wish to run this application on J2SE 1.4, you need to change the line
    mbs = ManagementFactory.getPlatformMBeanServer();
    to mbs = MBeanServerFactory.createMBeanServer("SimpleAgent");
  3. Compile all the .java files (Code Samples 1, 2, and 5). Make sure you include the jmxtools.jar in your classpath.
  4. Run SimpleAgent. Make sure you include the jmxtools.jar in your classpath. SimpleAgent will run as a server.
  5. Connect to the JMX agent by entering the URL http://localhost:8000 in your web browser.
    Once connected to the JMX agent, the HTML adaptor provides three views:
  • Agent view: Provides a summary of the MBeans contained within the agent. You can filter the MBean list to provide refined views.

Figure 6: HTML adaptor agent view

Figure 6: HTML adaptor agent view

  • MBean view: Provides details about a specific MBean. Here you can set and get MBean attributes and invoke methods as shown in Figure 7.

Figure 7: HTML adaptor MBean view

Figure 7: HTML adaptor MBean view

  • Admin view: Allows you to register new MBeans on the agent as shown in Figure 8.

Figure 8: HTML admin view

Figure 8: HTML admin view

JMX Technology Related Specifications

The various JSRs that related to the JMX specification follow:

Summary

JMX technology provides a component-based architecture for developing solutions to monitor and manage your applications, services, and resources. JMX technology is the way to instrument any application or service that was built using Java technology. Hence, the Java platform now provides excellent facilities for creating and managing applications and services. JMX technology should be used for any application and service that benefit from being manageable, as this will increase their value to vendors and clients, by making them easier to install, configure, and maintain. The current version of JMX is 1.2, and the JMX 2.0 update was launched in September 2004. It will update the JMX and JMX Remote APIs to improve existing interfaces, mainly with respect to ease of use.
This article provided a fast track introduction and tutorial to the JMX architcture and its programming model. The sample code provided demonstrates how easy it is to get started developing management and monitoring solutions using JMX technology. The J2SE 5.0 implements the JMX specification—if you use J2SE 5.0, you are ready to start developing using JMX technology.

Posted by: cymfonyiteam | May 18, 2011

Evolution of Computer Languages


All the cloud applications you use on the Internet today are written in a specific computer language. What you see as a nice icon on the front end looks like a bunch of code on the back end. It’s interesting to see where computer languages started and how they have evolved over time. There are now a series of computer languages to choose from and billions lines of code. Check out the infographic below to see the computer language timeline and read some fun facts about code along the way.


Posted by: cymfonyiteam | April 15, 2011

MySQL – Useful Commands – Part 1


1. Connect MySQL Database with single command

Usually, users will fire 2 or 3 commands to connect to a specific database.

Example,

[root@localhost]$ mysql -p -u <username>

Enter  Password:

.

.

.

mysql>use <databasename>;

This way will consume a significant time. Alternately, you can connect to a specific database with single command:

[root@localhost]$ mysql -p<password> -u<username> <databasename>

2. Current Database Name

To know the currently using database name while working in middle use the following command,

mysql>prompt [/d]>

Just consider, currently you are working on “test_db” database, the output will be like following,

[test_db]>

The advantage of this command is to confirm that you are working/updating on correct database.

3. Dumping (Logging) Outputs to a File

You’ll occasionally need to dump SQL result output to a text file. You could use the SELECT INTO OUTFILE command, or from within the mysql client you can enable the tee command and assign an output file, causing all subsequent output to be sent to that file:

mysql>tee test_results.txt

4. Paginating Query Output

Sometimes you want to peruse a table’s rows, but there are too many to view in a single screen. Rather than grapple with using the LIMIT clause, enable the client pager and set it to your system’s paging utility:

mysql>pager more

PAGER set to ‘more’

5. Display Outputs Vertically

Even relatively simple table schemas can consist of so many columns that it’s impossible to review their contents in a practical way. For instance, consider the following table, which consists of just 11 columns:

mysql> select * from accounts where username = 'wjgilmore';
+----+-----------+------------------+------------------------------
----+----------+-----------+------------+-----------+--------------
--------------------+---------------------+---------------------+
| id | username | email | password 
 | zip_code | latitude | longitude | confirmed | recovery 
 | created_on | last_login |
+----+-----------+------------------+-------------------------------
---+----------+-----------+------------+-----------+-----------------
-----------------+---------------------+---------------------+
| 7 | wjgilmore | wj@wjgilmore.com | 2b877b4b825b48a9a0950dd5bd1f264d
 | 43201 | 39.984577 | -83.018692 | 1 | 
8bnnwtqlt2289q2yp81tuge82fty501h | 2010-09-16 14:48:41 | 2010-10-27 15:49:44 | 
+----+-----------+------------------+----------------------------------
+----------+-----------+------------+-----------+----------------------
------------+---------------------+---------------------+


Convert this ugly display into a vertically-oriented format using the G command:


mysql> select * from accounts where username = 'wjgilmore'\G
*************************** 1. row ***************************
 id: 7
 username: wjgilmore
 email: wj@wjgilmore.com
 password: 2b877b4b825b48a9a0950dd5bd1f264d
 zip_code: 43201
 latitude: 39.984577
 longitude: -83.018692
 confirmed: 1
 recovery: 8bnnwtqlt2289q2yp81tuge82fty501h
created_on: 2010-09-16 14:48:41
last_login: 2010-10-27 15:49:44


Article by,

Ganesan.G

Posted by: cymfonyiteam | February 25, 2011

SAML architecture


SAML Architecture

Contents

SAML Architecture

It is rooted in XML.

Information passed around between asserting parties (SAML authorities) and relying parties is mostly in the form of XML, and the format of these XML messages and assertions is defined in a pair of SAML XML schemas.

All of the requests and responses are transmitted within a SOAP envelope via HTTP

SAML has the following key concepts:

  • Assertions
  • Protocol
  • Bindings
  • Profiles

Assertions

An assertion is a Package of information that supplies one or more statements made by a SAML authority.

It defines three kinds of statements that can be carried within an assertion.

  • Authentication statements “This subject was authenticated by this means at this time.”
  • Attribute statements provide specific details about the subject. For example: That a user holds “Gold” status.
  • Authorization decision statements identify what the subject is entitled to do. For example: Whether a user is permitted to buy a specified item. The XML format for assertions and their allowable extensions.

Protocol

  • SAML defines a request/response protocol for obtaining assertions.
  • A SAML request can either ask for a specific known assertion or make authentication, attribute, and authorization decision queries, with the SAML response providing back the requested assertions.

Bindings

  • A binding details exactly how the SAML protocol maps onto transport and messaging protocols. For example: SAML specification provides a binding of how SAML request/responses.

Profiles

  • Profiles are technical descriptions of particular flows of assertions and protocol messages derived from use cases.

SAML Structure and Examples

SAML responses carry assertions that satisfy the parameters of the SAML request.

SAML response being transported within a SOAP body.

The following characteristics:

  • The SAML response contains SAML status information in addition to one or more assertions.
  • One or more assertions can be transported, although typically only a single assertion is provided in a SAML response.
  • An assertion consists of one or more statements. For SSO, typically a SAML assertion will contain a single authentication statement and possibly a single attribute statement.
  • HTTP
  • SOAP Message
  • SOAP Header
  • SOAP Body
  • SAML
  • Request or Response

Code Example

Because the SAML standard is designed only for the exchange of secure sign-on information between a user, or “relying party,” and multiple issuing parties, it allows issuing parties to use their own chosen methods of authentication. For example: PKI, hash, or password.

Here, a sample SAML-compliant request is sent from a relying party requesting password authentication by the issuing party.

SAML Response

<env:Envelope

xmlns:env=”http://schemas.xmlsoap.org/soap/envelope/“>

<env:Body>

<samlp:Response

xmlns:samlp=”urn:oasis:names:tc:SAML:1.0:protocol”

ResponseID=”huGxcDQc4cNdDyocphmi6CxEMnga”

InResponseTo=”_192.168.16.51.1024506224022″

MajorVersion=”1″

MinorVersion=”1″

IssueInstant=”2002-06-19T17:05:37.795Z”>

<samlp:Status>

<samlp:StatusCode Value=”samlp:Success” />

</samlp:Status>

…… SAML ASSERTION AND STATEMENTS

</samlp:Response>

</env:Body>

</env:Envelope>

SAML Assertion

<saml:Assertion
xmlns:saml=”urn:oasis:names:tc:SAML:1.0:assertion”
MajorVersion=”1″
MinorVersion=”1″
AssertionID=”buGxcG4gILg5NlocyLccDz6iXrUa”
Issuer=”www.acompany.com”
IssueInstant=”2002-06-19T17:05:37.795Z”>
<saml:Conditions NotBefore=”2002-06-19T17:00:37.795Z”
NotOnOrAfter=”2002-06-19T17:10:37.795Z”/>
<saml:AuthenticationStatement
AuthenticationMethod=”urn:oasis:names:tc:SAML:1.0:am:password”
AuthenticationInstant=”2002-06-19T17:05:17.706Z”>
<saml:Subject>
<saml:NameIdentifier
NameQualifier=http://www.acompany.com
Format=”http://www.customformat.com/“>
uid=joe
</saml:NameIdentifier>
<saml:SubjectConfirmation>
<saml:ConfirmationMethod>
urn:oasis:names:tc:SAML:1.0:cm:artifact-01
</saml:ConfirmationMethod>
</saml:SubjectConfirmation>
</saml:Subject>
</saml:AuthenticationStatement>
</saml:Assertion>

Posted by: cymfonyiteam | February 25, 2011

5 Great Free Small Business Software Options


If you’re looking for ways to cut costs on your day-to-day business operations, one way is to use free small business software as alternatives to the expensive software installed on your office PCs. Licensing software for use on your office systems can be very expensive; Windows 7 and Microsoft Office 2010 alone can cost more $600 per system. Multiple that by five or 10 systems, and the cost escalates quickly.

Here’s the good news: most of the commercial software that we use everyday has a free alternative that works well and easily meets the needs of the average small business professional. This software might not have all of the bells and whistles of the commercial version — or the technical support options typically associated with them — but if you’re just looking for core functionality and a way to save significant money, then these free small business software options deserve a closer look.

To help illustrate the potential savings, we’ll sort these free applications into a few common software categories typically found on the average business PC. Within each category we’ll highlight a representative commercial application, along with its current price listed on Amazon.com. And then we’ll list and describe the free software alternative.

Small Business Software: Productivity Suites

Commercial Software: Microsoft Office 2010 Professional (Disc Version); Price: $399.99

Free Software: OpenOffice.org

Like Microsoft Office, OpenOffice.org consists of several useful desktop applications, such as a word processor, a spreadsheet program, presentation software, and a database application. It also includes a graphics application called Draw for creating flowcharts, organization charts, network diagrams and more. It has a clean and easy to understand user interface, along with a feature set on par with any commercial product. In addition, OpenOffice.org is compatible with a variety of file formats, including those of Microsoft Office, and it’s available in 27 languages.

For the last 10 years, this open source software has been widely praised by the media for its functionality and usability. Plus, it offers a great selection of free templates, which means you’ll never have to worry about creating professional looking documents. Best of all it is 100 percent free, whether for personal or business use. Bottom line, OpenOffice.org is an outstanding alternative to Microsoft Office.

Other Free Software Options: Lotus Symphony

Small Business Software: Antivirus

Commercial Software: Norton Antivirus 2011, Price: one user: $22.66; 10 users: $127.45

Free Software: Microsoft Security Essentials

As you can see by the cost of Norton AntiVirus, many commercial packages aren’t overly expensive. Less than $25 for a single PC and slightly more than $125 for 10 systems isn’t going to break the bank, but there are so many top-notch, free antivirus alternatives available that it almost seems silly to pay.

One of my favorites is Microsoft Security Essentials (MSE), which runs quietly and efficiently in the background, providing real-time protection against viruses, spyware, malware, and even rootkit protection. MSE provides the typical quick-scan and full-scan capabilities you’d expect, and you can configure USB flash drives and other external devices for automatic scanning upon connection. Plus, a context-menu option lets you scan individual files or folders right from within Windows Explorer.

The software automatically scans attachments and downloaded files, and the latest version also lets you create a system restore point, so you can backup your computer before you remove any detected malware. MSE is available for small businesses with up to 10 PCs. Best of all, unlike some other free antivirus applications, MSE will not continually prompt you to purchase a full version of the product. It just sits there doing its job like a good antivirus application should.

Other Free Software Options: Avira Personal Free Antivirus or AVG Antivirus Free Edition 2011

Small Business Software: CD/DVD Burning Apps

Commercial Software: Roxio Creator 2011; Price: $74.52, Nero Multimedia Suite 10; Price: $49.95

Free Software: CDBurnerXP

While Windows 7 does have the capability to burn CD and DVDs natively, it’s not overly intuitive or feature rich, which is why most people still opt for a third-party application like the Roxio and Nero suites. Prices for these suites vary significantly, and over the years they have expanded their feature set to do far more than simple CD/DVD burning, flooding your system with more apps and utilities then most of us will ever use.

If all you need is a simple and effective CD/DVD burning utility, allow me to introduce you to CDBurnerXP. Among its many features, CDBurnerXP allows users to burn data to CDs, DVDs, Dual-layer DVDs and Blu-ray disks. It makes use of buffer-under-run protections, can create bootable disks, spread data between multiple disks, has quick- and full-erase options for re-writable media, can perform disk copies, be used to create audio CDs, and burn or generate ISO files.

It even supports Hewlett-Packard’s LightScribe technology, which lets you print labels or images directly on the disk. It’s available in multiple languages, and it’s free for both personal and business use. What more do you need?

Other Free Software Options: ImgBurn or InfraRecorder

Small Business Software: Email Client

Commercial Software: Microsoft Outlook 2010; Price: $117.82

Free Software: Windows Live Mail

This category was actually rather hard to pin down because there are literally dozens of exceptional email clients available, many offering vast customization options and elegant mail management solutions. However, the majority of these programs just manage email. The only product I’ve seen that offers many of the features found in Outlook, such as a contact manager, calendar, Newsgroups and RSS feed manager is Microsoft’s own Windows Live Mail.

Windows Live Mail (WLM) is part of the Windows Live Essential suite of applications and utilities. In many respects it can be considered “Outlook Lite,” but don’t let this moniker fool you; WLM is a solid email client with a respectable feature set. It supports both traditional POP3 and IMAP accounts, along with web-based email accounts like Hotmail, Gmail, and Yahoo.

A strong junk-mail filter minimizes the clutter, and a built-in search feature helps you quickly find important messages. So is WLM the greatest free email client in the world? No. It does have limitations, but it provides most of the functionality of Outlook, minus the $100 price tag. If that has value to you, then you should give it a try.

However, if email management is your number one priority, then the other options suggested below might work better for you. In either case, they are all worthy.

Other Free Software Options: Thunderbird or Opera Mail

Small Business Software: Operating Systems

Commercial: Microsoft Windows 7 Professional; Price: $166.99 – $259.99

Free Software: Ubuntu

When it comes to operating systems, there aren’t a lot of options available. You could make the leap to Mac, but that would involve investing in all new hardware. A better option might be to consider trying out a popular Linux based OS called Ubuntu.

Over the years Ubuntu has become the most recommended distribution for for people considering, or new to Linux. The reason for this is simple. Ubuntu does just about everything you need in an operating system. It has an attractive interface, works with your existing PC files and printers, can play all of your video and music, plus it comes preinstalled with all of the applications you need to be productive.

In fact, many of the free applications on this list are also included with Ubuntu, such as OpenOffice.org and Thunderbird. Many other popular applications like Flash, Google Chrome, Skype, Facebook and Twitter are also compatible with Ubuntu. Ubuntu has very modest hardware requirements, which makes it a great choice for older systems or under-powered netbooks.

Ubuntu is also far less susceptible to virus and malware attacks. In addition to being free, Ubuntu provides the unique ability to try it out by running it directly off of the CD without first having to modify your system. This lets you see it and work with it before committing to it. If you’ve suffered through one blue screen too many, do yourself a favor and give Ubuntu a try.

Other Free Software Options: Fedora 14

Ronald V. Pacchiano is a systems integrator and technology specialist with expertise in Windows server management, desktop support and network administration. He is also an accomplished technology journalist and a contributing writer for Small Business Computing.

Posted by: cymfonyiteam | February 25, 2011

4 Easy Steps to Securing Your Servers in the Public Cloud


You have a significant role in security if you have servers in the public cloud. Do you know what that role is? It’s the role of security manager, and it’s a big job. What the job entails might be more than you’re ready for — particularly when you know that you have certain legal obligations and liabilities to maintain security on those systems. Yes, you read correctly. Your company has liability for security breaches that result in loss or damage to consumers or users of your systems.

Due diligence is your best defense. By complying with all computer data and security legislation, plus providing your dated documentation, you’ll reduce your risk to near zero. While historically many such cases against companies haven’t proven successful, new precedents and laws are in flux in these matters.

So what is due diligence when it comes to computer security, and how can you minimize your risks? The following guidelines will help you toward that end.

1. Documentation

When it comes down to legal defense, your best defense is a strong offense. He who has the best documentation wins in courts of law. Draft written policies and procedures that define best practices, schedules, frequencies, and sources of security patches, updates, service packs and hot fixes. Implement those procedures with adequate documentation (i.e., dates, times, personnel, phone records and written summaries), and keep them readily available for easy shipping to your attorney’s office.

2. Patching

Your personnel should perform maintenance patching on at least a quarterly basis. However, you should apply security patches as soon as vendors release them to you. A vendor-supplied security patch means they’ve uncovered a security flaw, and it’s worth the time to notify you about it. You should practice the same amount of diligence with your server system’s security patching as you do with your personal antivirus updating. In other words, assume all security patches are critical.

3. Security Management

Other than malware, viruses and Trojan horse programs, network breaches are the most common type of security compromises. Network security begins at your border routers and firewalls, and it ends at your server systems. Maintain a high level of vigilance with network security and intrusion detection services. Several excellent software packages are available to alert system administrators to changed files and to alert network administrators of any interesting connections to protected data stores and systems.

Some breaches and thefts come from inside the company itself. These breaches are difficult to prevent because of the number of people who support protected systems. However, access logs will provide investigators with enough information to catch the responsible culprit.

4. Reporting

Most of the lawsuits filed against companies by individuals have failed to produce any damages or remuneration for the plaintiffs. They failed because the company responsible for the breached data demonstrated it had measures in place to prevent such occurrences and to mitigate them as they happen. In addition to showing due diligence in these matters, companies have also shown forthrightness in reporting breaches to customers and the public. Therefore, companies that have had data stolen generally are held not liable unless the circumstances are unusual.

Full disclosure and due diligence are the best defenses for companies that house or collect personal information. Your best defense is to maintain vigilance on your accounts and information in case of breached data. Contact the company immediately and change your account information.

Diligent Incident Reporting
The type of information and number of records
The circumstances of the loss
Action taken to mitigate the breach
Details of the breach investigation
Regulatory bodies informed of the breach
Preventative actions taken
Maintaining cloud-based server security isn’t easy. It requires extreme caution and focused attention. If you’re housing sensitive data on public cloud servers, you should expect hack attempts, denial-of-service (DOS) attacks and internal security breaches. By expecting them, you’ll learn to disrupt them. Failing that, have a plan in place to fix what’s broken when it breaks, be ready to tell everyone that it broke, and prepare how you will inform the media and your customers how you’re fixing it.
Ken Hess is a freelance writer who writes on a variety of open source topics including Linux, databases, and virtualization. He is also the coauthor of Practical Virtualization Solutions, which was published in October 2009. You may reach him through his web site at http://www.kenhess.com.

Older Posts »

Categories

Create your own website, free on WordPress.com.Create your own website.
Start free