Pookyho Deník

Nemá smysl se rozčilovat, stejně bude brzo pátek.

Lidé tráví veškerý svůj volný čas v práci. Proč? Protože nemůžou přestat. Dříve platilo, že ten kdo pracuje tvrdě se po čase dopracuje na pozici kde už tolik pracovat nemusí a může si užívat. Dnes už to neplatí. Naopak, firmy úmyslně vyhledávají a nabírají takové zaměstnance, kteří trpí vnitřní nejistotou a jejich sebeúcta přímo vychází pouze z jejich pracovního výkonu. Takoví lidé jsou ochotnější zůstávat v práci déle, odsunout svůj osobní život a obětovat všechno, jenom aby byli v práci úspěšní a získali pochvalu od svého nadřízeného. Takhle mohou fungovat několik let a následně se jim rozpadne osobní život, začnou trpět depresemi, zdraví se jim zhorší a následně přijde vyhoření. V nejhorším případně už nejsou schopni ani vykonávat svoje povinnosti a ztrácí poslední bod, který je ještě držet nad vodou – jejich práci.

Někdy je prostě lepší zastavit se, odpočinout si a zvolnit.


Java Wiki

I have decided to start write down some my knowledge about Java world and ecosystem. I have a lot of experience with java since my highschool. I have been working as java developer, I have read a lot of books, get training but I still felt, that there is so many information, standards, versions, components, types that I need it to document just how the things interact and what I know about each of them.

Currently, there are two main branches on which I mainly focus. Web-development and Spring integration. In this area I feel most confusion and complex solutions which are not easy to understand. Therefore, they need some documentation not about how to use them but what they are and where do you need them.

Both branches has repository on GitHub with the simplest possible example. This example is basic configuration which can be blueprint for future projects. Besides the code there is also documentation and wiki.

Servlet example
Spring Dependency Injection example
Java Wiki

Amazon currently offer really cool and cheap device Fire TV stick. This Fire TV stick is similar to Chromecast. You plug it in your TV and then your TV is magically smart land full of movies and series to watch. Only one thing, you have to have Amazon Prime, without this subscription is it just stick without any content with preinstalled Android and remote control – which is beautiful and incredibly usefull.

Fire TV stick is basically Android device. Well, there are a lot of Android Apps, for instance KODI. Open-source media center, which allows you to watch whatever you want, only thing you need to invest is time and knowledge.

How to do it:

1) Buy Amazon Fire TV Stick

You can buy it from Amazon webstore. You can get it here currently for 39eur.

2) Plug it in and connect to your Wifi
3) Install android App

How to install android app on Fire TV stick?

This step can be solved by many differend approaches. The most usefull one will be this:

Allow untrusted application and developer options – direct approach with pictures is here
Settings->Device->Developer options->Allow ADB debug and Untrusted Apps.

After this, you can either: install application from amazon apps store or use this app for installing other applications for your Fire TV.

You can also use Android Developer Bridge (ADB) and by it control your Fire TV stick. This app allow you to connect to your device, install some package .apk or browse filesystem.

Current version of KODI can be downloaded here (choose android version).

Basically, when you manage to install KODI that’s the win. After that, you can install any other Android App on your own wish.

Kodi and Fire TV Stick

After you install KODI, there are some things you will need to get used to. For example:

Remote control has no „fullscreen“ button

This can be solved by presing „back“ button and then „left“, you should see left options sidebar and in the bottom, there is remote control button for fullscreen.

How install other repositories to KODI

First install of KODI is without any Addons, only available addons are in some global repository. The really useful one are mostly on private repositories. To install that, just copy „zip file“ of repository to your KODI. For this operation you can use ABDLink and press button „filemanager“, then copy your repository to KODI.

Fire TV Stick specification

Switzerland writer Max Frisch wrote few questions which are really interesting. This questions are interesting not for some score but just for themselves to be risen up and to expand our horizons of thoughts.

Question: Are you really interested in the preservation of the human race once you and all the people you know are no longer alive? State briefly why.
My answer: Yes, I`m human and I want our race to continue.
Qustion: How many of your children do not owe their existence to deliberate intention?
A: None, I don`t have children yet.
Q: Whom would you rather never have met?
A: No-one, I`m grateful for every person I have meet and it brings me a lot of experience – bad or good, that doesn’t matter.
Q: Are you conscious of being in the wrong in relation to some other person (who need not necessarily be aware of it)? If so, does this make you hate yourself – or the other person?
A: Yes, that`s make me angry.
Q: Would you like to have perfect memory?
A: Human memory is good as it is, there is nothing like perfect memory.
Q: Give the name of a politician whose death through illness, accident, etc. would fill you with hope. Or do you consider none of them indispensible?
A: I don`t wish any harm to any person or human being.

Q: Which person or persons, now dead, would you like to see again?

A: My grandfather.

Q: Which not?

A: None

Q: Would you rather have belonged to a different nation (or civilization)? If so, which?

A: I think our nation is fine, there is no better (perfect) nation.

Q: To what age do you wish to live?

A: at least 115 years

Q: If you had the power to put into effect things you consider right, would you do so against the wishes of the majority? (Yes or no)

A: Yes

Q: Why not, if you think they are right?

Q: Which do you find it easier to hate, a group or an individual? And do you prefer to hate individually or as part of a group?

A: It`s easily to hate group without face but haters is wrong even for group or individual.

Q: When did you stop believing you could become wiser – or do you still believe it? Give your age.

A: I still believe I can be wiser, everyone can. I`m now 25 years old.

Q: Are you convinced by your own self-criticism?

A: Yes, one of the biggest.

Q: What in your opinion do others dislike about you, and what do you dislike about yourself? If not the same thing, which do you find it easier to excuse?

A: Others dot like my mood swing, my opinions which they don`t understand or seem correct to them. I don`t like also my mood swing and sometimes my stubborn. It`s easier to excuse my strong opinions towards others, I do it for their own good.

Q: Do you find the thought that you might never have been born (if it ever occurs to you) disturbing?

A: Not at all

Q: When you think of someone dead, would you like him to speak to you, or would you rather say something more to him?

A: Both, conversation would be nice.

Q: Do you love anybody?

A: Yes, I do.

Q: How do you know?

A: I`m smart person, I know.

Q: Let us assume that you have never killed another human being. How do you account for it?

A: It`s natural to not kill your own species.

Q: What do you need in order to be happy?

A: Free-time, money, company, books, sport, sex, love, animals, shelter, invention, food, sun

Q: What are you grateful for?

A: I`m grateful for human existence and all human being on the planet.

Q: Which would you rather do: die or live on as a healthy animal? Which animal?

A: Animal, totally animal! Almost anyone fish, cat, bird, dog, elephant. My favorite would be dog.

Learning new language is hard. I know that. It takes time, effort, commitment and any progress is really hard to see or test. Many of students try to start with new language, but they will be soon disappointed with his difficulty, grammatical rules and lack of vocabulary. They are also not sure, why even they should learn new language in first place. In regular environment, there is not many possibilities how to practice your new language and even if there will be, it’s hard to practice it regularly.

The limits of my language means the limits of my world.
Ludwig Wittgenstein

I recently see some results from EU barometer. In year 2005 in Czech Republic there has been about 61% of residents to be able hold conversation at least in one addition language. In year 2012 there was drop about 12% to current 49%, which is not much. There is also interesting number, that only 27% of responders can speak English language and about 14% can speak German. If we take in account, that subjective scale of each responder is probably very different and language without active usage is going to be forgotten really soon, the numbers are really bad.

Source: ec.europa.eu/public_opinion/archives/ebs/ebs_386_en.pdf