Emacs with Prelude

1. Prelude

Prelude provides a pre-defined set of functionalities that modernizes emacs without the user requiring to install countless packages and initializing them manually. Therefore, prelude can be a good starting point for your emacs setup.

However, the default installation of prelude will override all your packages including the startup init.el file. It auto-generates the init.el file.

If you want to manually enable packages or scripts you can do that in ~/.emacs.d/personal directory.

For installation of Prelude with default settings and packages run following command.

curl -L https://git.io/epre | sh

See https://github.com/bbatsov/prelude for more information.

If you start emacs, it should initialize and install the required packages. Continue reading

Leave a comment

Filed under Uncategorized

Fundamental Programming Structure (Java)

Key points of Java

  1. In Java, all methods are declared in a class. You invoke a nonstatic method on an object of the class to which the method belongs.
  2. Static methods are not invoked on objects.
  3. Java has eight primitive types: five integral types, two floating-point types, and boolean.
  4. The Math class provides common mathematical functions.
  5. String objects are sequences of unicode code points in UTF-16 encoding. Or more precisely code units, the 16-bit quantities of  the UTF-16 encoding.
  6. With the System.out object, you can display output in a terminal window. A Scanner tied to System.in lets you read terminal input.
  7. Arrays and collections can be used to collect elements of the same type.

Continue reading

Leave a comment

Filed under Uncategorized

Fix Arch Linux boot issues

Introduction

If you are a long time Arch Linux user, you probably have collected huge number of packages. Most of them you probably don’t need. May be you thought about cleaning up the packages by removing the core GUI packages E.g., gnome or xorg-server.  If you use -Rsc argument then most of its dependent packages are also removed. After the packages are uninstalled you will start from the basics and install the core packages, so that you can pick and choose the ones you require as you need them later. You might forget to install some of the packages that is needed for boot (E.g., The kernel itself linuxsystemd or grub or may be mkinitcpio). These packages are core for Arch to work. If you forget to install these packages you might end up with an empty grub prompt.

Continue reading

Leave a comment

Filed under Uncategorized

Resolving failed password and group check service in systemd

If you get error like “Failed to start Verify integrity of password and group files” it usually means some services are already removed and still the password and group file tracks them (with user and group names). To check which users no longer exist in the computer run following password checking command.

Continue reading

Leave a comment

Filed under Uncategorized

Important IntelliJ settings and commands

Shortcuts

Continue reading

Leave a comment

Filed under Uncategorized

Build a console google tech news reader in Java

I sometimes like to read text in console. It is lot convenient to open a new tmux instance and quickly check few things online. One of such applications is ‘googler’. I can search text in google from command line and open them using the id next to the text.

In this post, I want to talk about similar application I wrote for reading google tech news. It is a very basic application that does similar thing for google tech news. It displays text and id next to it. User can open the associated link (in the default browser) by typing the id.

Continue reading

Leave a comment

Filed under Uncategorized

Play Youtube in Linux with style with QMPlay2

Introduction

Is it just me or do most people spend most of their time in Youtube (after Facebook, I guess) ? May be I am just a minority, but that doesn’t make playing Youtube videos with a Desktop application less interesting. There are quite some distinct benefits playing youtube videos with a dedicated application. However each tool brings their own set of features, that some like and some don’t. Previously, I introduced Minitube as such an application. Minitube is basically a TV replacement, because you can subscribe to channels without having to login to Youtube. When new vidoes are uploaded in your subscribed channels, you get notifications that lets you watch all the videos that you missed.

Another feature I want from a dedicated youtube application is the ability to create playlists. I want to add my favorite songs and play them on repeat mode in the background, while I am doing other things. QMPlay2 provides just that feature.

Continue reading

Leave a comment

Filed under Uncategorized