Ktor CORS doesn't allow requests
Jul 30, 2021
I’ve stumbled upon issue with Ktors CORS feature that I couldn’t solve that fast, required a lot of googling and everything on stackoverflow showed that my requests were correct, but they weren’t for Ktor.
Past Authoring Program - Review
Oct 12, 2020
I purchased full Self Authoring Suite and worked on Past Authoring. Most of the program is about answering given questions to yourself, but you break up your life in some past events that occurred and made an impact to you, positive and negative.
I’ve been meditating for more than year and a half now, and I let go most of my past, it’s not holding me down anymore. So when I was writing in the Past Authoring, I didn’t get that much as I thought I could.
Why Is Java Not Showing Full Stacktrace
Jun 21, 2020
Few weeks ago I got a recommendation from a colleague to read Effective Java. It’s insightful book with many great tips, some of which I’ve been using by default because IntelliJ is hinting me to do that, however most of tips were new to me.
One paragraph stated that “exceptions are expensive operations to throw, because they require the whole stacktrace to be captured”. It seems logical and that’s something I remembered.
How to Give a Presentation to Your Team
Jan 5, 2020
About a year ago I held a presentation to my team about Docker, and how we can use it for development. Since we’re working on backend, we need frontend (web app) to do something. It’s a bit hard to do everything with HTTP client. We usually had to hit up somebody on frontend team to build and run the web app for us. This meant that if they are out of work, we couldn’t have the web app.
Java mTLS Http Client
Nov 3, 2019
A guide on how to implement Java mTLS Http Client, and call HTTP(S) server. Also how to do it from localhost and use the tunnel to server
Migrating to Password Manager
Oct 20, 2019
Observations I've made while I migrated to RememBear
Overriding Hugo Default Archetype
Oct 6, 2019
When I started writing this blog, I had no idea about how powerful Hugo is, and I used just basic features, leaving everything to default.
After some time of writing, my needs grew, and one of them was that I want to have a default template for my posts, one of them being the “footer”, and other one being front matter to have some more information.
The location of archetype is rootOfBlog/archetypes/default.
The Most Important Thing I've Learned as Junior Developer
Sep 29, 2019
Being the annoying one isn't fun for anybody. I explain the problem of asking questions all the time to fellow teammates and offer a solution.
Scheduling Hugo Posts with AWS CloudWatch
Sep 1, 2019
Hugo builds a static website, so in order to publish something we need to run hugo command and it will output public directory with our website in it. This post explains the process of building the project using AWS CloudWatch at specific times.
Postgres - Conditional Order By
Aug 25, 2019
In last post, I wrote about ordering by date descending and then time ascending. Building on top of that post, I’ll make a case for conditional order by. This is something that I’ve found in few places in our codebase.
The idea is simple, use CASE in ORDER BY statement, where we can check multiple columns. We’ll use two columns this time, first column will be date_created for meta information, and second will be date_of_activation which represents when the user activated some feature.
Postgres - Order by Date Descending Time Ascending
Aug 18, 2019
This week, I’ve got a request from our project manager to make an update to an existing feature. The update required the feature to have groups by date, which are shown descending, and then in those days, the times should be in ascending order.
Everything I’ve written here is executed on a Mac, iTerm 2 command line and using pgcli tool. It’s similar to psql, just with autocomplete and some other neat features.
Android - Implementing TextWatcher With Kotlin
Aug 11, 2019
I’ve built the part of the app that has a field for numeric input, and goes up to five digits. Something like this:
<EditText android:id = "@+id/editText" android:inputType = "number" android:layout_height = "wrap_content" android:layout_width = "wrap_content" android:maxLength = "5" /> The problem was that I could put five zeros there, and the program would work. Being new to Android, I’ve Googled the question and found this StackOverflow answer. From there, it seems I need a TextWatcher implementation and attaching it to editText object.
Android - Pass Object to New Activity with Kotlin
Aug 3, 2019
I’ve been working on server side programming for almost two years now. I’ve had a bunch of ideas for apps to create, but they require me to learn something on the “front end”. Since I don’t want to worry much about security, keeping the server up and running, and similar problems on the server, I’ve decided to start making Android apps for myself, and maybe publishing them, and even keeping some of them open source on GitHub.
Keep the End Goal in Mind
Jul 14, 2019
Few days ago I went a bit late to work, I arrived at around 10AM, leaving me enough time to get back home at around 18:30, get the stuff for the gym and be there by 18:50 by foot. At some point during work, I wanted to just get home and stay there, to spend like 10-20 minutes cleaning my room (I like my room clean), and relax after that. I fell prey to monkey mind - listening to my mind saying to do everything easier, and to procrastinate more.
Removing Digital Distractions
Jun 10, 2019
Something that’s happening to me over and over again is that spend too much time on one medium (social media) and I stick with it for some time that it becomes something that I no longer want to be a part of, something that I don’t enjoy. In August 2016 I deleted my facebook account. I had a (bad) habit tied to facebook - when I woke up, the first thing that I’d do was turn on the computer, open the browser, and start with the letter ‘f’ (for facebook), and let the auto-completion do the work.
Becoming a Minimalist
Jun 9, 2019
About a year and a half ago I started my journey towards minimalism and keeping things simple. Starting with my room, I sold a lot of things that were in it, like an old CRT TV and shelf it was on, old sewing machine, got rid of carpet and some other smaller things were removed. This led my room to contain only a couch/bed, desk and chair, and a wardrobe cabinet.
What I've Learned From 8 Productivity Courses Part 3
May 27, 2019
You’re reading part three, you can read part one here and part two here.
11. Creators vs Consumers This is an idea of splitting people in two categories, the creators and the consumers. From the courses, about 1% of the world are creators. And if you create something, you are in that 1%, so you should feel happy. This can motivate you to be more productive, to produce more content, more things for better world, for creating a better environment for somebody and similar.
What I've Learned From 8 Productivity Courses Part 2
May 19, 2019
You’re reading part two, you can read part one here and part three here.
3. Taking breaks You need rest, even for 5 minutes sometimes. To stretch the legs, relax, and do something you like. I remember from one of Robin Sharma’s book the quote, it goes something like this:
Having time to pause, refuel and enjoy the life is not a luxury. It’s an absolute necessity.
Robin Sharma Getting a good night sleep also helps your memory, since you create new connections in your brain based on your current and past experiences.
What I've Learned From 8 Productivity Courses Part 1
May 12, 2019
You’re reading part one, you can read part two here and part three here.
At the beginning of the year, I’ve bought a productivity course bundle. I have never bought an online course before, so I thought this could be a useful purchase, and it was. I’m going to share what I’ve learned from those courses, and some blueprints that are in them, something that they have in common. The courses were not only productivity related, but how to become successful too, so that’s going to be covered as well as productivity.
Being Unproductive is Fine
Apr 29, 2019
Why do we always have to rush to do things? We rush to do everything as soon as possible, and we don’t rest, we just want to be productive. But we have to put ourselves to other perspective. That perspective being that we have time to do things, but we don’t have to do them right now. For me, it’s like, I’m only 24 years old, I have lots of time to make more money, to learn more, to be more productive.