A little Python!

The programming language one, not the snake one!

Hello pals!
Some time ago, I came across a problem in which I had to flatten an array of objects. That is, the elements of the array can be primitives or arrays. The end results is to be an array of primitives.

I used python to implement this since it allows much more compact snippets for such jobs.

Here is the code:)

def flatten(lst):
 return sum( ([x] if not isinstance(x, list) else flatten(x)
 for x in lst), [] )
lst = [[1], 2, [[3,4], 5], [[[]]], [[[6]]], 7, 8, []]
print flatten(lst)

Continue reading “A little Python!”

Android studio – some shortcuts

Hello guys!

A couple days ago I realized I could share some really useful shortcuts for Android studio, which is the official android development IDE.

Here is the first one:

Tab: applies the first suggestion in the ctrl+space helper menu


inn , tab: inserts if (variable != null){   } block


fbc, tab: inserts findViewById() block with casl.

Color Palette Design Illustrator

Hello pals!

I’ve designed a color palette for a game I’m working on. I don’t have a tutorial about it but I think it is easy to prepare if there is any request.

In the simplest words, I started out for a minimalist color palette design. Then, I lost control of myself and made it a bit more complicated and detailed. With the time restrictions, it was still pretty straightforward, though.

The image is below in this page. Continue reading “Color Palette Design Illustrator”

Blender Render Sampling

Yesterday I shared a coffee mug image.

Now, let’s have a look at some other sample sizes of that image.

low size: 250


If you look closely, you will see the black and white dots inside mug, close to the top. Takes about a minute to render.

Mid size:1000


This was the image a shared yesterday. It is much more beautiful. You can’t see a problem looking at this image. Now, I know this because I compared it with the next one. Look at the lower left side of the mug. you see the shading. the dark grey is somewhat scattered.

Takes about 4-5 minutes to render.

Max size: 5000 (Not the maximum you can do, I meant my biggest render size for this)


Takes much longer. About 20 minutes maybe. I was watching tv series, it was running in background.

Perhaps privacy is a thing of the past.

In the future, everything about us will be available with the touch of a button…

Who’s fallen in love, who’s gotten sick, who’s having an affair.

Maybe it’s a good thing…

A future without secrets.

Of course, those of us with a few more years value our privacy.

We’ve made our mistakes and survived them.

It’s not that we want to keep these secrets from others.

Usually, we’re keeping them from ourselves.

Wolf Pack

“A wolf pack: the first 3 are the old or sick, they give the pace to the entire pack. If it was the other way round, they would be left behind, losing contact with the pack. In case of an ambush they would be sacrificed. Then come 5 strong ones, the front line. In the center are the rest of the pack members, then the 5 strongest following. Last is alone, the alpha. He controls everything from the rear. In that position he can see everything, decide the direction. He sees all of the pack. The pack moves according to the elders pace and help each other, watch each other.”3af21139-53e2-4ade-b50e-1974b96b23e6-original