Mathematically producing sphere-shaped hexagonal grid

The shape you have is one of so called “Goldberg polyhedra”, is also a geodesic polyhedra. The (rather elegant) algorithm to generate this (and many many more) can be succinctly encoded in something called a Conway Polyhedron Notation. The construction is easy to follow step by step, you can click the images below to get … Read more

Tiled drawable sometimes stretches

I also got bitten by this problem. Very hard to diagnose, even harder to find similar reports and usable solutions. “Tapas” on the freenode #android-dev irc channel came with the following utility method: public static void fixBackgroundRepeat(View view) { Drawable bg = view.getBackground(); if (bg != null) { if (bg instanceof BitmapDrawable) { BitmapDrawable bmp … Read more

tech