Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 106
TomArea Tech

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

How to get the IP of a domain with Java

A friend of mine asked me how can he get the IP of a domain today and of course I told him the Windows way of just pinging the domain. Using the command PING <address> is a easy way to find out the ip of a domain. But I thought it would be fun to make him a small application in Java that returns the IP of a domain. 

I know, sounds very easy, but its just some lines of code. With Java you can use the class java.net.InetAddress which has some really useful methods, just consult its Javadocs. Here is the code, I use just one class Host.java, ask for an input with JOptionPane and call InetAddress’s getHostAddress().

 

import java.net.InetAddress;
import java.net.UnknownHostException;
import javax.swing.JOptionPane;

public class Host
{
public static void main(String args[])
{
String s = JOptionPane.showInputDialog(null, "Type address: \n(eg: www.website.com)");
try
{
InetAddress address = InetAddress.getByName(s);
JOptionPane.showMessageDialog(null, (new StringBuilder("Host name: ")).append(address.getHostName()).append("\n").append("IP address: ").append(address.getHostAddress()).toString());
}
catch(UnknownHostException ex)
{
JOptionPane.showMessageDialog(null, (new StringBuilder("Unknown host or IP address ")).append(s).toString());
}
}
}

Voila! Who says Java is complicated? You can download the application from here.


Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

Top 7 features on Windows 7

Everybody waited for it like for a Messiah. Windows Vista really got us a lot of trouble, not to mention all the money for upgrading our computers to keep up with Microsoft’s desires. While Linux is still behind, years pass by and Windows gets bigger (some say better), we hope for the one operating system riding a white horse to save us.

Its no big news that Windows 7 Beta fixes all the major flaws from Vista and even comes with improved perfomante and boot time. But lets see which are the top 7 features we should be impressed:

#7 Internet Explorer 8

Although it can’t really be considered a features since it can be installed even on Windows XP, IE 8 brings new features that improve its brother IE 7. But so far the release candidate failed in so many ways, crash reports are all over the interner, indicating that once more Microsoft’s controversial browser still needs work.

#6 Extended battery life

No wonder, today portability is the key word. If battery techonology doesn’t evolve fast enough than the software producers must think of efficient ways to use the battery. With a display that dims automatically, you get longer battery life, for example.

#5 Windows Touch

For the lucky ones, owning a touchscreen for your PC can be exciting, but useless.

#4 Handwriting recognition

Windows 7 improves pen input in several ways. You can write math expressions, create personalized custom dictionaries for handwriting recognition, and use the new languages supported in Windows 7.

#3 Jump Lists

Microsoft seems to finally understand that what we need from our PC is to just work. Of course we like bling blings, but first comes performance and then visual effects. Vista is just the opposite. The jump lists are used for  keeping the things you use most right in front of you. 

#2 BranchCache

When IT enables BranchCache, a copy of data accessed from an intranet web site or a file server is cached locally within the branch office. When another user on the same network requests the file, the user gets access to the content almost immediately as it is downloaded from the local cache rather than over a limited bandwidth connection back to headquarters.

#1 Improved taskbar and full-screen previews

The name windows starts to fade away if we speak about the new taskbar. Windows are no longer part of the taskbar. Instead they were replaced with icons, like those in Vista/XP’s quick launch, windows and icons becoming one. Also, Aero is present with the large previews of the windows and the smooth movement between windows.


Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

How to install Eclipse 3.4 Ganymede on Ubuntu 8.10

Don’t know how many of you know that Ubuntu got stuck with Eclipse 3.2 for unknown reasons and they didn’t update it for a while. Eclipse 3.4, codename Ganymede, brings some critical features for the developer who uses Eclipse especially for java development.

The first step before you start installing Eclipse 3.4 is to make sure you have the latest JDK installed on your Ubuntu distro. You can see which version of Java you have by running this command:

java -version

Version 1.6 is the latest Java Development kitt, but it will work with 1.5 too.
If you don’t have it installed, run this command:

sudo apt-get install openjdk-6-jdk
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/

Now that you have the latest JDK installed, head over to Eclipse’s official website and download the version suitable for your Ubuntu.

After you download it, create a folder and extract the downloaded archive there. You can start Eclipse by going with the terminal to that directory and just type:

eclipse

Eclipse should start right away, if not, you might have downloaded the wrong version (32 bit or 64 bit) or the JDK installation failed.

If you want to make a shortcut for Ganymede on your desktop, then make a file with the extension “desktop” and write in it:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Link
Icon[en_US]=gnome-panel-launcher
Name[en_US]=Eclipse
URL=file:///home/user/eclipse3.4/eclipse
Name=Eclipse
Icon=gnome-panel-launcher

Hope this was useful and enjoy your Ganymede!


Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

Time Vault takes on Time Machine

Since a week ago I turned to the world of Linux and don’t intent to look back at Microsoft. At least for now. I always liked Ubuntu so I decided to go with Ubuntu 8.10 64 bits, the latest Ubuntu version.
When I was a Windows user I had a healthy habit to backup my data with a very small and efficient program called Drive Snapshot. The little application helped me a lot, but even using Wine on Ubuntu the application won’t work.
After speaking with a friend about Apple’s stuff, he told me about Time Machine. A thing that the Linux community does best I think, is that when they see a good idea, they bring it to Linux.

So I started to look for some kind of alternative to Time Machine, and the search wasn’t hard at all. The answer is Time Vault. Time Vault is a small application which works just like Time Machine, but on Linux.

Time Vault Main Window

Time Vault Main Window

What Time Vault does is snapshots of the system on a regular basis and gives you the possibility to restore your data even from Nautilus. A snapshot is a copy of a directory at a certain point in time. Snapshots don’t use space for the files that haven’t changed, but instead simply add a link to the same data on disk.
The saved snapshots are by default read only, so the user does not delete them by mistake. Options included in Time Vault are Automated Snapshots, snapshot notifications, Snapshot Root Directory and you can exclude files/folders which you don’t want to be included in your backup.

Time Vault Properties Window

Time Vault Properties Window

Right now the latest version of Time Vault is the beta candidate Time Vault 0.7.5 and you can download it from its Launchpad here. It might not be as glossy and 3D as the Time Machine, but Time Vault does almost all the tasks Time Machine does and pretty good.


Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 35

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/tomitzel/domains/tech.tomarea.com/public_html/wp-includes/functions.php on line 43

TomArea opens tech related blog

The purpose of this blog is to present the author’s interactions with the different programming languages and small tutorials to get things done with Java, linux related problems and much more.

Eclipse Linux

Eclipse Linux

Photo Source: mail.baskent.edu.tr