Luca Zanini
  • Home
    • Astronomy
    • Android
    • Java
    • Lotus
  • About me
  • How to set a default method to running code on the creation or destruction of a bean

    Sep 28, 2013

    —

    by

    Luca Zanini
    in Java

    In the post Executing code on the creation or destruction of a bean in Spring I explain three ways to execute code on the creation or destruction of a Bean in Spring. With two of these ways you can set the execution of a specific custom method: with the annotations @PostConstruct and @PreDestroy configuring the…

    Read more: How to set a default method to running code on the creation or destruction of a bean

  • Reciprocal cycles

    Sep 25, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 26: A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given: 1/2 = 0.5 1/3 = 0.(3) 1/4 = 0.25 1/5 = 0.2 1/6 = 0.1(6) 1/7 = 0.(142857) 1/8 = 0.125 1/9 = 0.(1) 1/10 = 0.1…

    Read more: Reciprocal cycles

  • 1000-digit Fibonacci number

    Sep 15, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 25: The Fibonacci sequence is defined by the recurrence relation: Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 F7 =…

    Read more: 1000-digit Fibonacci number

  • # vs $ in the computed expressions in the xpages

    Sep 13, 2013

    —

    by

    Luca Zanini
    in Lotus

    In the xml code of the xpages the computed expressions begin with the character “#” or with the character “$”, ie they are one of the following types: value=”#{[language]:[expression]}” value=”${[language]:[expression]}” where [language] is the name of the language, for example javascript and [expression] is the expression to compute. The question is “what is the difference…

    Read more: # vs $ in the computed expressions in the xpages

  • How to access to a control connected to a lotus field using javascript

    Sep 6, 2013

    —

    by

    Luca Zanini
    in Lotus

    In this post I test how to access via javascript to the following controls connected to a lotus field: Edit Box: a control for entering a single line of data Hidden Input: a control for hiding data to the user A Hidden Input control is not such as an Edit Box control with “Visible” unchecked…

    Read more: How to access to a control connected to a lotus field using javascript

  • Lexicographic permutations

    Sep 5, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 24: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabetically, we call it lexicographic order. The lexicographic permutations of 0, 1 and 2 are: 012 021…

    Read more: Lexicographic permutations

  • Script for creating Android Icons

    Aug 23, 2013

    —

    by

    Luca Zanini
    in Android

    Just another tool to create Android icons, such as gimp-android-xdpi. You can find at Script for creating Android Icons or at GIMP script for creating Android icons at once.

    Read more: Script for creating Android Icons

  • The Form Layout Column control of the Extension Library

    Aug 22, 2013

    —

    by

    Luca Zanini
    in Lotus

    The Form Layout Column control allow you to place the various controls (such as Form Layout Row) on multiple columns. In the post The Form Table and Form Layout Row controls of the Extension Library I built a xpage with two Form Layout Row controls at different lines, using two Column Layout Form controls you…

    Read more: The Form Layout Column control of the Extension Library

  • Non-abundant sums

    Aug 12, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 23: A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a…

    Read more: Non-abundant sums

  • Updating frequently a TextView inside a loop

    Aug 11, 2013

    —

    by

    Luca Zanini
    in Android

    The problem How to update a TextView inside a loop or, more generally, how to update frequently an UI element of an Activity.

    Read more: Updating frequently a TextView inside a loop

←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.