Luca Zanini
  • Home
    • Astronomy
    • Android
    • Java
    • Lotus
  • About me
  • Counting Sundays

    May 19, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 19: You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday. Thirty days has September, April, June and November. All the rest have thirty-one, Saving February alone, Which has twenty-eight, rain or shine. And on leap years, twenty-nine.…

    Read more: Counting Sundays

  • Maximum path sum

    May 11, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 18: By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 That is, 3 + 7 + 4 + 9 = 23. Find…

    Read more: Maximum path sum

  • Number letter counts

    May 5, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 17: If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in…

    Read more: Number letter counts

  • Hidden fields in a lotus form open with a browser

    Apr 30, 2013

    —

    by

    Luca Zanini
    in Lotus

    In a lotus form you can hide the fields enabling the check box “Hide paragraph from Web browser” in the window of the properties of the field but in this way the field is not generated as a hidden field, i.e. a html tag input with attribute type=”hidden” is not generated and you can’t access…

    Read more: Hidden fields in a lotus form open with a browser

  • How to restore the state of a WebView in a layout “Tabs + Swipe” with ViewPager and FragmentPagerAdapter

    Apr 29, 2013

    —

    by

    Luca Zanini
    in Android

    In the post Tabs and swipe views Szymon asks how to implement a WebView in order to preserve its state moving from one tab to another in a similar way as explained in How to save the state of a WebView inside a Fragment of an Action Bar.

    Read more: How to restore the state of a WebView in a layout “Tabs + Swipe” with ViewPager and FragmentPagerAdapter

  • Power digit sum

    Apr 25, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 16: 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000? checked

    Read more: Power digit sum

  • Adding colors with OpenGL ES in Android

    Apr 23, 2013

    —

    by

    Luca Zanini
    in Android

    In the post Drawing a triangle with OpenGL ES in Android I explained how to draw a triangle without setting the colors, indeed, the triangle is gray. In this post I add a few lines of code that allow you to change the color of the triangle starting from the code in Drawing a triangle…

    Read more: Adding colors with OpenGL ES in Android

  • Lattice paths

    Apr 21, 2013

    —

    by

    Luca Zanini
    in Uncategorized

    From the Project Euler Problem 15: Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner. How many such routes are there through a 20×20 grid? checked In the first attempt I counted all…

    Read more: Lattice paths

  • How to fix a corrupted view of a lotus database

    Apr 2, 2013

    —

    by

    Luca Zanini
    in Lotus

    I found this command to use on the console of the domino server to rebuild a specific corrupted view in a lotus database without rebuilding all the views of the database: lo updall -R [database] -T [view] where [database] is the path to the database and [view] is the name of the view.

    Read more: How to fix a corrupted view of a lotus database

  • Drawing a triangle with OpenGL ES in Android

    Mar 26, 2013

    —

    by

    Luca Zanini
    in Android

    The scope of this post is drawing a triangle with OpenGL ES 1.x in Android focusing especially on the relationship between code and position of the triangle. The coordinate system has the origin where the observer is, with the x axis horizontal and rightward, the y-axis vertical and upward and the z axis points so…

    Read more: Drawing a triangle with OpenGL ES in Android

←Previous Page Next Page→