Ever frustated using Inkscape when you snap together between two objects? Or when you design tiled pattern or background, some white lines appear that make you stressful. There are white lines between them if you zoom in or export it as image file. This happens not only in inkscape, also …
Convert Mutable List to Array in Kotlin without bracket and comma
I am learning about the Array data structure in kotlin. The task is given an input array and i need to print in reverse that array and without bracket and comma.The solution is i have to use mutable list to populate the input array, and print the result and replace …
Reading console input in Kotlin
Recently i just begin to improve my algorithm using Kotlin. I tried to solve some problem and then with some input how can i code the output from that problem. Some input need to read and become my variable in my code. So how can i read input from console?I …
Converting dp into pixel Android
I have created an application integrated with ads. I am using banner and interstitial ads. The banner ads generally has a fix height 50dp.The problem is, if you program the banner to show after the ads loaded, and programmatically set the padding of the other view above or below the …
How to change generated APK name in Android Studio
By default, Android Studio generates APK name like app-debug.apk or app-release.apk. But, i want to generate my own APK name. You can change it with your whatever name you desire with small changes in build.gradle file. Then Android Studio will generate signed APK for you. This tutorial will help you …
Why Choose Kotlin for Android Development
Kotlin announced as official language for Android development at last year Google I/O . And now, Kotlin development is now supported by Android Studio 3, the default Android development IDE. If you still can choose between Java or Kotlin to develop your application. For about more than 5 years, Kotlin …
Accessing SSH Through a browser using Shellinabox
Updating and maintaining our website anytime, anywhere are very crucial. Mostly i use my dedicated internet to access my server. But sometimes i use internet that has a proxy/firewall behind it. The bad news they block SSH port. Sigh 🙁 Then i need to make my server has a capability …
Fixing a 502 Bad Gateway after a Ghost update
When i tried to update my ghost blog to latest, suddenly i had a 502 Bad Gateway Error. Tried to check ghost service, but it is running and no error.Tried to read some nginx logs, it said it can not reach my site. To solve this i just run: ghost …
Redirecting non-www to www with Nginx on Ubuntu
I prefer to make my website to www rather than non-www. To set it up is really easy. My server use Ubuntu and Nginx and running Let’s Encrypt SSL. I make a server block that handles redirection request. And then other server block to handle the real request. Here is …
How To Change Time Zone in VPS Ubuntu
When you setting up a new VPS, sometimes it comes with default timezone. It is usually set to UTC. If you want to read log files or some configuration you will be confused with the default timezone and local time. You can change it to follow your timezone. Check the …