Friday 26 March 2010

Protecting Your Kids Online Through IP Change

Protecting Your Kids Online Through IP Change
By Virender Labroo

IP Change gives extra security for children while surfing the internet IP or internet protocol address is the answer when you are looking for identity protection in the internet. This article will show how we can protect our children on the internet from predators and other unsavory characters by a rather simple new piece of technology that involves rapid IP Change.

Modern day living without internet is unattainable. This holds true for us as well as our children. Denying children with internet access in today's time is quite impossible. Internet is becoming essential for the achievement of quality education. Thus, schools need to provide internet access to the kids. Internet is very important towards a wonderful learning process for children. It is used for researches, communication, and other educational and interactive games.

More mature children in their teens are now wired with their friends with Social Media Sites such as Face Book and My Space. Internet indeed dratiscally changed the teen world. .

However, internet does not offer all great opportunities only. It can also be a very dangerous place for vulnerable children with many predators lurching around on the net.

In order for us to safeguard our children, understanding of internet browsing is a must. We must have a knowledge as to where they hang out on the web. This includes forums, chat rooms, and other sites. Each of those should have rules to try to protect the young on the internet. For instance, you must make certain that for Face Book and My Space, only 13 years old and above can sign up. Are the forums and chat rooms controlled or not? Parents should be able to talk this out with kids to ensure that sites visited are safe.

It is also a must that parents use software to prevent violent and sexual content from being viewed by the kids. Parents must support their children all the way. They have to educate their children about indentity protection online. This includes education as to what should and should not be included when giving information online. They should be educated early on the risks and outcomes of identity theft and how important it is to protect the identity to ward of dangers now and consequences later in life.

Using simple language, children should understand how the internet works and how they can be protected when they are online. They should be reassured that their computer is firewall protected and has complete internet security suite updated and protecting them all the time. However, they must be reminded that they have to be extra careful about their identity online.

Parents, should however be conscious that technologies change all the time and new security technologies are being developed for better security and privacy on the net. One of these technologies is frequent IP Change. This routes your internet connection through various servers termed as proxy servers placed across the globe with the use of software called IP Changer. This software conceals your real IP address given by your ISP or Internet Service Provider since only one of the various IP addresses of the proxy servers are shown to the sites you and your children may visit. Internet surfing can now be done anonymously. Combining this IP Change technology with data encryption you are making your browsing secure and private. You are keeping hackers away by denying them your real IP address which is the key to access your computer.

Given this, when you put to practice good parenting , internet security software, and IP Change for anonymous browsing, you can be of great help for the security of children of children online.

About the Author: For more information about this important topic which is IP Change

Source: www.isnare.com

Friday 5 March 2010

Building Your First iReport

Building Your First iReport

We will develop our first simple report using iReport, and before doing so, we will create a connection/data source that will be used to fill the reports.

In this article by Shamsuddin Ahammad, author of iReport 3.7, we will learn about:

>> Creating a new data source or database JDBC connection
>> Creating a report using the wizard
>> Using the design query feature to produce the SQL query for the report
>> Viewing and exporting the report using the built-in viewer

So let's get on with it!

Creating a connection/data source

Before going to create the connection, a database should be set up. The SQL query for the database used for creating reports can be downloaded from the Packt website. Now, we are going to create a connection/data source in iReport and build our first report in some easy to follow steps:

You need to create the connection/data source just once before developing the first report. This connection will be reused for the following reports.

1. Start iReport.
2. Press the Report Datasources button in the toolbar. You will see a dialog box similar to the following screenshot:


3. Press the New button. Another dialog box will appear for selecting the data source type. There are several types to choose from, according to your requirement. For now, choose Database JDBC connection, and press Next >.


4. Another dialog box will appear to set up the Database JDBC connection properties. Give a sensible name to the connection. In this case, it is inventory.

5. Choose the JDBC Driver from the list, according to your connection type and/or your database. In this case, it is MySQL (com.mysql.jdbc.Driver).

6. Write the JDBC URL, according to the driver you have chosen. For this tutorial, it is jdbc:mysql://localhost/inventory.

In the previous code for connecting to a database from a Java program using JDBC—jdbc is the connection protocol, mysql is the subprotocol, localhost is the MySQL server if it runs on the same computer, and inventory is the database name.

7. Enter the Username and Password. Generally, for a MySQL server, the username is root and you have set a customized password during the installation of the MySQL server. The screenshot is as follows:


8. Press Test to confirm that you have set all the properties correctly. If all the settings are correct, then you will see a message that says Connection test successful!.

You can save the password by checking the Save Password checkbox, but be warned that iReport stores passwords in clear text. Storing passwords in clear text is a bad thing for us, isn't it? If you do not specify a password now, iReport will ask you for one only when required and will not save it.

9. Now save the connection. You will see that the newly created connection is listed in the Connections/Datasources window. If you have more than one connections, then you can set one as the default connection. In order to do this, select the connection and press Set as Default.

10. Enter the Username and Password. Generally, for a MySQL server, the username is root and you have set a customized password during the installation of the MySQL server. The screenshot is as follows:


When we execute the report with an active connection, the reports are filled with data from the database or other data sources. We can also see the report output with empty data sources, which has, by default, a single record with all fields set to null. An empty data source is used to print a static report. However, in order to choose the tables and columns from a database automatically using the Report Wizard, we need to connect to a database/data source first. To do this, we must create a connection/data source.

Building your first report

Having set up a connection, we are ready to build our first report. We will keep it very simple, just to be familiar with the steps required for building a report. We will create a report that lists out all the products; that is, we will show all the rows of the product table of our database.

Follow the steps listed and build your first report:

1. Go to the File menu and click New…. You will see a dialog box like the following screenshot:


2. From the list of Report templates, select Simple Blue and press Launch Report Wizard.


3. Enter Report name as List of Products and press Next >.
4. Now you will specify the query to retrieve the report fields. Select your connection from the Connections / Data Sources drop-down list.


5. Write the SQL query for the report you want to develop. In our case, it is

SELECT ProductCode, Name, Description FROM Product.

--------------------------------------------------------------------------------

iReport 3.7

Learn how to use iReport to create, design, format, and export reports
>> A step-by-step, example-oriented tutorial with lots of screenshots to guide the reader seamlessly through the book
>> Generate enterprise-level reports using iReport 3.7
>> Give your reports a professional look with built in templates
>> Create master/detail reports easily with the sub-report feature
>> Produce summary data and present them in a dynamic crosstab report
http://www.packtpub.com/ireport-3-7/book

--------------------------------------------------------------------------------

6. Alternatively, you can use the Design query option if you want to design the query graphically by selecting tables and columns easily, without writing the SQL commands. For this, double-click on the table name, select the fields from the table, and then press OK.


7. After writing the SQL query or designing the query, press Next >.


8. In this step, we will select the fields that we want to show in the report. We may select all the fields or choose some of them. For this example, select all the fields (ProductCode, Name, and Description) by clicking on >> (double arrow). Note that the fields listed here are based on the query specified in the previous step.


9. After selecting the fields, press Next >.

10. Now we are in step 5 (Group by…) of the wizard. Ignore this just for now; we will learn about grouping later. Press Next > to proceed.

11. We are at the last step of the Report Wizard. Now press Finish.


12. You will see the following output:


13. To change the title, select TITLE, and enter List of Products in the Text box of the Properties window, at the bottom-right corner. You can change the font name, size, and style according to your requirements from the same window. In this example, Font name is SansSerif, Size is 20, and style is Bold.


14. It's time to see the output of your first report. Just press the Preview button at the top of the report design. You will see a report similar to the following one:


To build the report easily, we can use the Report Wizard, where the database columns can be selected from the list, and the layout of the report can be set very easily by choosing templates. Note that for choosing the layout, the tabular format is generally suitable if your report shows more than one row from the database table, and the column format is suitable if the query returns only a single row. If the number of columns in the query result is quite large, then you can choose the landscape template.

Viewing and exporting the report

We can view our report using JRViewer or any other supported external programs, such as Acrobat Reader (PDF preview), Microsoft Word (RTF preview), any browser (HTML preview), and so on. You have seen the JRViewer preview. There is a built-in toolbar in the JRViewer; here you can save the report in various formats, such as PDF, RTF, HTML, CSV, XML, and so on. To do this, just press the Save button, and then choose PDF/ RTF/ HTML/ CSV/ XML or others from the Files of type drop-down list.

You can print the report from the viewer by just pressing the Print button in the toolbar. If your report contains more than one page, then you can navigate through the report pages using these four buttons: First Page, Previous Page, Next Page, and Last Page from the toolbar. You can resize the page to Fit the page, Fit the page width, or Actual size. You can also zoom in or zoom out. All options are available in the toolbar—you just have to choose the appropriate button.

You can change the report viewer from the Preview menu to see the preview in another application. You can choose from PDF, HTML Java 2D, RTF, or other preview options. However, before seeing these previews, you have to set the external programs for the appropriate viewers. You can do this from Tools | Options | iReport | Viewers. Browse the required programs for each viewer. Then choose the appropriate viewer from the Preview menu, and preview the report again.


Summary

In this article, we had a look at creating connections and building simple reports.

Specifically, we covered:
>> Creating a database JDBC connection
>> Using the Report Wizard
>> Using the design query feature for designing a query without writing the SQL command
>> Choosing the appropriate layout and template
>> Viewing report in JRViewer and other external programs