Loading images and caching them with Fresco in Android

Java Android Fresco

I am working for a Start Up project – DiagramArt, where we needed to create Android application which : load list of diagrams from API, show these diagrams to the user and some other stuff of course. The list consists from a preview picture, diagram’s title and its description. There is no problem to load and show these data, the problem was in the preview picture.

Continue reading...

Where do I take my energy

Few weeks ago in the late night, my friend asked me, where do I take the energy. He knows I have work, couple of sides projects and from time to time I try to write here some post. Is it some kind of a coffee? Or something else? I didn’t know how to answer, but I was thinking about it during a walk.

Continue reading...

Express server with JWT authentication

JavaScript Node.js Express JWT Example project

I needed to create a simple server, that would have one “public” route /login and other routes are available only for users with valid JWT token.

That means, the user is allowed to log into the system and then get any data from it. If he is not logged in and he tries to get some data, he only get an error message and 401 ( Unauthorized ) status code will be returned.

Continue reading...

How to send HTTP GET / POST request in Java

Java

This post describes how to make HTTP GET and POST request on server. I will use httpbin server for testing. It returns you everything you send there : query params, post data, headers, etc.

Continue reading...

Website screenshots and visual diffs

JavaScript Node.js

Maybe you know the situation when you deploy some page, check it fastly and go away from the office feeling good about your job done. Then a colleague calls you and you hear “What did you do? It is not working!”.

Continue reading...