To do copy paste on vim, we can use visual mode by typing v when on normal mode. Use cursor to select the text to copy. Below we select 6 characters. After selecting the text then press y to copy the text to register.
Continue reading “Vim : Copy Paste Operation”Starting or Stopping Rails 7 Application using shell script on linux.
Simple approach to start or stop rails 7 application using shell script on linux.
Starting production rails application using default web server on port 3000 and ip address 192.168.25.168, then daemonize it.

Stopping rails application that running on port 3000 is as follow.

Thank you !
Optimize linux battery life
Ubuntu/Debian : sudo apt install tlp
to start it : sudo tlp start
to show stat : sudo tlp stat
Long time no see wordpress ! been busy lately.
unar : Extract multipart zip files on linux
Its a shock knowing that the unzip program available on linux cant easily extract multipart zip files with ease. There is alternative program unar also available to do this task efficiently.
If u have multipart zip files as follow archive.zip.001, archive.zip.002archive.zip.003 then just execute unar archive.zip.001 and extraction will begin.
To install unar on debian/ubuntu based linux : sudo apt install unar.
Soon enough goodbye november and welcome december, go away pandemic.
Starting Qt5 development on Ubuntu 20
To install Qt5 package needed to develop do :
sudo apt install qt5-default
Create a new folder to contain qthello project files.
mkdir qthello
cd qthello
Continue reading “Starting Qt5 development on Ubuntu 20”Python package manager
Ruby have its gem command to install package and python have pip. Since python 3.4, pip is included to default install.
On my linux mint pip command is pip3 and i try to list installed package with pip list command.

To install a package try : pip install <package name>
To search a package try : pip search <searched word>
Python compile to bytecode
To compile a python script to bytecode we can use py_compile module.

Above we try to compile tk_login_app.py and the bytecode available at __pycache__ folder. We can execute the bytecode as usual. This bytecode cant be used to hide your source code because one can “uncompile” it.
Tkinter Application with login form
Hooray this is my first python post !
Here i want to share a tkinter based application on python 3 with login form. If user is logging in by clicked a login button then login form will disappear and main form will show up. This code is not connected to database yet ! Only playing with 2 toplevel tk window placement and control its state.
Donwload py source code below.
Trying postgresql c++ interface : pqxx
Postgresql database have an official interface to C programming language and a C++ interface derived from that. C++ is a different language from C and i think it will be more easier to deal with.
Lets give a try on the newest linux mint 20.
1. install libpqxx-dev package (sudo apt-get install libpqxx-dev).
2. install codelite IDE (sudo apt-get install codelite).
3. install postgresql (sudo apt-get install postgresql).
4. create an user (user1) for connecting to postgresql. Continue reading “Trying postgresql c++ interface : pqxx”
Java Scripting on JDK 11
JDK 11 make java command can directly run source code like other scripting language or interpreter. Lets say we have a java source file called hello.java as follow.
