tutorials

Creating archive pages grouped by year in Hugo

Permalink 2 minute read Modified: (Rohan Verma)

I was on the hunt to find out how to organize my blog and project archive pages by year in Hugo. After being unable to find any easy solutions I decided I would sit down and write the go template to render these pages myself. The idea was simple, iterate over the list divided by year into sub lists and render tables, but it turned out to be a bit tricky.

Extract filenames without their extensions…

Permalink 1 minute read Modified: (rhnvrm)

Extract filenames without their extensions and put it in the clipboard ls -C | awk -F"." '{print $1}' | xclip -selection c

Adding xfce4 Keyboard Shortcuts for Clementine or Spotify

Permalink 1 minute read Modified: (rhnvrm)

xfce4 has default media key settings for Pragha music player. Although, if you use clementine music player you can use keyboard shortcuts to control it with DBus and MPRIS. Clementine is known as org.mpris.clementine and you can add the following entries to your Keyboard Settings > Application Shortcuts If you use spotify, it is registered as org.mpris.MediaPlayer2.spotify on qdbus. qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Next qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Pause qdbus org.mpris.clementine /Player org.

Working with J2ME on Linux in 2017

Permalink 2 minute read Modified: (rhnvrm)

I recently had to work on the J2ME platform for a course at my university. It is an old technology and does not have many recent articles about using or installing J2ME on Linux. J2ME SDK has had no support for Linux for a long time. The SDK 3.x only has support for Mac and Windows. The last version available was by Sun which is called the Sun Java Wireless Toolkit 2.

You can get a free BNC account on EliteBNC…

Permalink 1 minute read Modified: (rhnvrm)

You can get a free BNC account on EliteBNC. It runs ZNC which you can run yourself if you have a spare VPS. All you need to do is login on FreeNode (you can use their webchat if you don’t have a client handy) and join #EliteBNC channel and issue the following command command: !request <username> freenode <your email id> and you will get the settings in your email if your request is approved.