Scala by Example – Control Structures

In this tutorial, you will learn what type of control structures and loops does Scala give and  how to implement them. We will look into how Scala conditions and loops is different from Java and C++. Conditional Expressions As Java and C++, Scala has if/else construct with the same syntax. However, if/else has a value [...]

5 Gmail Hidden Features

Gmail logo

Gmail is a free email service provided by Google. It provides users with 7.6 GB free disk space, less spam, video chat and more for free .In this post I’ll cover some Gmail features that you may not know and will help you manage your email efficiently, boost your productivity and keep your Gmail account [...]

Scala by Example for Java Developers – Part 3

Scala part 3

In our previous tutorial we looked at Scala as Object Oriented language and we dug into its type system. In this tutorial I’ll cover Scala arithmetic operator overloading and Scala doc. Arithmetic operations Just as Java or C++ you can invoke arithmetic operations using the ordinary operators: (+) for addition. (-) for subtraction. (*) for [...]

Moving to Chrome

chrome-logo

After being a loyal user of Firefox web browser from its early version 1.5 to current version 7.0 (around 6 years), I decided that Chrome deserves a try. In the past, every time I tried Chrome I found something missing so what has changed? The answer is Chrome WebStore. WebStore is an online store from [...]

Scala by Example for Java Developers – Part 2

Scala part2

In our previous tutorial we looked at some Scala features that makes it worth learning, looked at variable declaration and functions. In this tutorial we’ll dive into Scala functions and we’ll show some of Scala strength as functional language, but before let’s review some Scala concepts: All values are objects Yes that’s true, all values in [...]

Scala by Example for Java Developers – Part 1

In this series we’ll learn Scala by example and I’ll include examples for every topic, I’ll cover as much as possible without going into details I’ll just keep it simple to make you able to find your way through Scala world. Why Scala Scala is a general purpose programming language designed to express common programming patterns [...]

Paste Formatted Code into any Word Processor

In this tutorial we’ll see how to paste a formatted code into any word processor.This tutorial was tested on Netbeans and Intellij IDEA IDEs with MS Office and Libre Office word processors. Steps: Open your code file in Netbeans IDE. Select File->Print to HTML menu item. Check Open generated HTML in web browser option. Click OK. [...]

How to Guarantee Reliable Tests while using Maven

If you are using Maven as build manager for Java projects you may face this strange behavior in your unit tests: java.io.File always resolves the relative path to the current working directory not to the project base directory. Some may argue that the working directory is the project base directory but this is not always [...]

Embed H2 Database in your Java Application Tutorial

In this tutorial we’ll look at H2 database and how to embed it into our Java application. We can use embedded database if we want to store our application data in a relational database, however we don’t want to ship a database server with our app and don’t want to bother the user with installing [...]

Create Desktop for Every App in OSX Lion Tip

Create Desktop for Every App in OSX Lion Tip

One of the great features of OSX Lion is Mission Control. Mission Control brings together Exposé, Dashboard, Spaces and full-screen apps to give you one place to see and navigate everything running on your Mac. Moreover, Mission Control gives you the power to have as many desktops as you like and the ability to customize [...]

  • Page 1 of 2
  • 1
  • 2
  • >