Luca Zanini
  • Home
    • Astronomy
    • Android
    • Java
    • Lotus
  • About me
  • Buttons for a view in a Custom Control

    Dec 2, 2012

    —

    by

    Luca Zanini
    in Lotus

    There are standard buttons that are often added to a view that perform the basic functions (new, delete, refresh) that usually you put in a view. The code in this post is a Custom Control you can add to a XPage bound to a lotus view to insert the buttons New, Delete and Refresh. This…

    Read more: Buttons for a view in a Custom Control

  • List of the sensors in an Android device

    Dec 1, 2012

    —

    by

    Luca Zanini
    in Android

    This is a simple app that displays all the sensors in the phone reporting the following characteristics: Name: name of the sensor Version: version of the sensor’s module Vendor: vendor of this sensor Type: type of this sensor Max Range: maximum range of the sensor Resolution: resolution of the sensor Min Delay: minimum delay allowed…

    Read more: List of the sensors in an Android device

  • Project Euler – Problem 7

    Nov 30, 2012

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 7:By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 10001st prime number? checked used the code for problem 3.

    Read more: Project Euler – Problem 7

  • Project Euler – Problem 6

    Nov 27, 2012

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 6: The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + … + 10^2 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + … + 10)^2 = 55^2 = 3025 Hence the difference between the…

    Read more: Project Euler – Problem 6

  • Creating a singleton in java

    Nov 25, 2012

    —

    by

    Luca Zanini
    in Java

    In this post I explain how to create only one object of a java class, then a single instance is available in the application. An object of this type is called singleton and a starting class can be the following:

    Read more: Creating a singleton in java

  • Project Euler – Problem 5

    Nov 24, 2012

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 5: 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? checked It ‘s the least common multiple of the…

    Read more: Project Euler – Problem 5

  • Buttons for a form in a Custom Control

    Nov 21, 2012

    —

    by

    Luca Zanini
    in Lotus

    There are standard buttons that are often added to a form that perform the basic functions (edit, save, close) that usually you put in a form. The code in this post is a Custom Control that you can add to a XPage connected to a lotus form to place the buttons Edit, Save and Close.…

    Read more: Buttons for a form in a Custom Control

  • MessageSource in Spring 3

    Nov 18, 2012

    —

    by

    Luca Zanini
    in Java

    The MessageSource interface supports the parameterization and internationalization of messages and provides 2 implementations: ResourceBundleMessageSource, built on top of the standard ResourceBundle ReloadableResourceBundleMessageSource, being able to reload message definitions without restarting the VM The following is an example of ResourceBundleMessageSource to get messages in the specified language in Spring 3.

    Read more: MessageSource in Spring 3

  • Project Euler – Problem 4

    Nov 17, 2012

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 4: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 * 99. Find the largest palindrome made from the product of two 3-digit numbers checked

    Read more: Project Euler – Problem 4

  • Device Definitions in Android SDK Tools Rev.21

    Nov 14, 2012

    —

    by

    Luca Zanini
    in Android

    In the last release of Android SDK Tools Rev.21 I found a nice surprise: now there are some device and configurations for the emulator.

    Read more: Device Definitions in Android SDK Tools Rev.21

←Previous Page Next Page→
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.