How to Convert JPG to PNG Using Linux Command

How to Convert JPG to PNG Using Linux Command

When we work with images in our project, we often need to convert the format of the images. In Linux OS, you can do this stuff by using one line Linux command. It is pretty simple to do. You can use the following command to convert JPG images to PNG format.

mogrify -format png /path/*.jpg 

This command will produce the png files in the same directory with the source files. To get the result in a certain directory you could specify the directory path like the command below.

mogrify -path /dest_path/ -format png /path/*.jpg

Thank you mogrify! 🙂

Advertisements

How to Share One Mouse and Keyboard for Two Computers

How to Share One Mouse and Keyboard for Two Computers

Tonight, I am going to work on my projects. It was quite interesting that I just realized I need to use two laptops at the same time. At first, I just put both of the laptops on the same table and I used each mouse and keyboard. But, before I felt the back pain caused by turning aside frequently, I just realized that there must be some way I can use my only-one mouse and the attached keyboard for both of these laptops as I do with the dual extended screen. Thankfully, I found how to do it and I really want to share it with you since it might be really useful for you.

Thanks for Synergy, It is a great app that can do the magic for us. You can simply install this app on both of your laptops and let the Synergy do the trick. This is the simple steps you need to do to set up the server-side (sharing the mouse and keyboard) and client-side (using server’s mouse and keyboard).

Server

After you installed the synergy, you can open by running synergy command on the terminal or open the app by launching from gnome launcher.

Screenshot from 2017-10-30 01-06-28.png
Synergy app

Continue reading “How to Share One Mouse and Keyboard for Two Computers”

Python Basics

We have already know about What is Python and why we need to learn Python. Now, we are going to show you the fundamentals that you will be happy to learn in the first step in mastering Python.

Just like another programming language Python has syntax, variable, function, and development environment. Python also has an interactive shell that can be used to test our code quickly and it is very helpful for us to learn this language. In this tutorial, We are only going to show you the example using Linux/Unix based Operating System.

Continue reading “Python Basics”

What is Python

9781593275990
Source : bookdepository.com
As a programmer, I have learned and understood several programming languages. Thanks to Accelbyte that has given me lots of experience including “introducing” me with many cool programming languages like Go, java, shell, and of course Python.  In this post I will also introduce you about Python and Why you should learn it.

Continue reading “What is Python”

Transportation in Istanbul, Turkey

Today is our 17th Day live in Turkey. My wife and I arrived at Sabiha Gokcen airport on the 3rd September. I need to go here to continue my study in Robotics, especially in Deep Learning and my wife is here to accompany me and giving birth to our first baby, hopefully. It is a big step for us and we are always ready for the great journey.

There are lots things which are very different in our country, Indonesia. We’d spent most of our time these past 5 years at Yogyakarta and It was very pleasant experience. Now, we need to do the adaptation to our new “home”. One of the biggest difference is the way we are moving to the other place. We used to ride a motorcycle all over the way in Yogya. But in here, we are getting used to using a public transportation.

The main choice for us is using metro (underground train), bus, and metro-bus (a bus with the special route like TransJakarta). We have another choice like Uber and Taxi but we do not recommend because people drive too recklessly here so It won’t be a good choice for your heart.

Continue reading “Transportation in Istanbul, Turkey”

How to setup Jenkins using Docker Container

This guide pressume you have already launch EC2 instance and installed docker inside it. To setup Jenkins on your EC2 do the following installation steps.

  1. Start Docker Service Run the following command
$ sudo service docker start

It will start docker service to run on your ec2. You can check the service using docker infocommand.

  1. Create the docker image We will use official Jenkins docker image and build our own Jenkins docker image. First, we need to create a Dockerfile. Write down these code on the Dockerfile.

Continue reading “How to setup Jenkins using Docker Container”