-
Number letter counts
Read more: Number letter countsFrom 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…
-
Hidden fields in a lotus form open with a browser
Read more: Hidden fields in a lotus form open with a browserIn 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…
-
How to restore the state of a WebView in a layout “Tabs + Swipe” with ViewPager and FragmentPagerAdapter
Read more: How to restore the state of a WebView in a layout “Tabs + Swipe” with ViewPager and FragmentPagerAdapterIn 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.
-
Power digit sum
Read more: Power digit sumFrom 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
-
Adding colors with OpenGL ES in Android
Read more: Adding colors with OpenGL ES in AndroidIn 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…
-
Lattice paths
Read more: Lattice pathsFrom 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…
-
How to fix a corrupted view of a lotus database
Read more: How to fix a corrupted view of a lotus databaseI 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.
-
Drawing a triangle with OpenGL ES in Android
Read more: Drawing a triangle with OpenGL ES in AndroidThe 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…
-
Longest Collatz sequence
Read more: Longest Collatz sequenceFrom the Project Euler Problem 14: The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the following sequence: 13 → 40 → 20 → 10 → 5 →…
-
Attaching shared javascript and css code in a lotus form
Read more: Attaching shared javascript and css code in a lotus formThe javascript and css code used in a lotus form can also be useful in other forms, and so it is best to save it only one time in a shared place. The pages works well for this purpose and in this post I explain how to create page containing JavaScript code and css and…