Bash scripting to compare the Ossasepia logs

The task is to devise a bash script to compare the logs of ossasepia on different servers (here in particular logs.nosuchlabs.com and logs.ossasepia.com). This is the first time I’ve written a bash script going beyond a handful of simple commands. I’m happy to hear feedback on how the approach / code can be improved. TL;DR…

Land of Lisp (O’Reilly | Safari)

Where Does Lisp Get Its Power? I’ve said that Lisp is a particularly powerful language. So what were the key insights that John McCarthy (and the other, later innovators … – Selection from Land of Lisp [Book]

"The second trait that gives a language power is letting you muck around inside it as deeply as possible to make it do your bidding. That way, even if the designers of the language never conceived of what you’re trying to do, you can make your own changes to the language until it does exactly…

Temporary fix for fatwigoo issue with indieweb-publisher theme

Excerpt from IRC convo [su_note]<+GWG> https://github.com/dshanske/indieweb-publisher/blob/96514b9866bc146ab5d4579ad659e1e9dcf58088/inc/template-functions.php#L63 +GWG> Comment out this line for now. <+GWG> It should be an easy fix once I get to it[/su_note] the line to be commented out is : [su_note] return Kind_Taxonomy::get_icon( $term->slug); [/su_note]

Use template parts to match your theme’s styling by Bill Erickson

Display Posts lets you easily display posts based on any criteria you choose without any coding.
It can be difficult to match your theme’s design for post summaries using just the shortcode and CSS. That’s where template parts come in. Styling belongs in a theme
Your theme already contains the …

I’m planning to use this to create some custom pages to enable quickly viewing specific views of all the content. #wordpress #php

Tips for building a dev-env with docker (Muffin Research Labs)

There’s a few gotchas when using docker to run your development environment. This post provides tips on overcoming the biggest hurdles you might face.

"Having used docker-compose (née fig) on the marketplace development environment. We learnt a lot about what did and didn’t work. Two of the biggest issues we hit were: Dependencies and dep updates Front-end tools the best way to avoid deps becoming a problem, is to use the hub to build your docker images from a…

Including parts of README.rst in your sphinx docs (Muffin Research Labs)

This will probably be of use to about 3 people, and I’m one of them. If you feel your eyes glazing over, don’t fret and look at this kitten picture instead: The problem I wanted to add some content to both our docs (built via sphinx docs and written in

"ReStructured text has a handy include directive which allows you to include content files by path references. I tried using that in the README.rst and our docs. Unfortunately on github this fails for the README because github don’t allow the include directive for security reasons. There’s a neat facility in RST that allows you to…

"If you look over all these Makefiles you’ll see that there are probably only five or six elements which are repeated over and over. It doesn’t take many lines in a Makefile to get powerful results, yet I run the command make literally dozens of times per day in widely varying projects. GNU Make is…

2.0.0 (Homebrew)

Today I’d like to announce Homebrew 2.0.0. The most significant changes since 1.9.0 are official support for Linux and Windows 10 (with Windows Subsystem for Linux), brew cleanup running automatically, no more options in Homebrew/homebrew-core, and removal of support for OS X Mountain Lion (10.8) and older.

Homebrew can now be used on #Linux as well as #Windows (WSL) ! This is cool.

a post by Kaushal Modi :emacs:Kaushal Modi :emacs:

@s.ragavan.co
See if https://github.com/cweiske/stapibas helps. I do not have a server to host an instance of it. But the author of that project was kind enough to let me send #webmentions through his instance.
The benefit of stapibas is that it does the database management of which wm’s have alread…

Thanks! I will keep this in mind for the next round and check it out. Ha, its a tiny ‘nanode’ server on Linode 🙂 Its surprising what can be done with 1GB of RAM and 1 CPU core. There are definitely several rough edges to look into in my setup 😀 Your 2nd reply shows…

a post by Kaushal Modi :emacs:Kaushal Modi :emacs:

@s.ragavan.co Thanks for that update.
You certainly have experience with server setup and dealing with #Wordpress installation. Honestly speaking, as there are many Wordpress users, its #webmentions plugin should be well maintained too.
This is great as you got the things set up as you wanted.
> Now…

‘Indiewebifying’ my website

TL;DR Started out with zero knowledge of indieweb and wanted to indiewebify my hugo website and use self-hosted services or apps. Discovered that a completely self-hosted indieweb workflow (on a static website) has several components to consider and setup (not to mention the things I don’t know that I don’t know). Finally, reverted to using…

a post by Kaushal Modi :emacs:Kaushal Modi :emacs:

@kaushalmodi: Though I made progress – there was too much to look into and I stopped at the point where I was trying to setup webmentions.io as a self-hosted service. So, to get moving – I went back to my WP setup and have finally ‘indiewebified’ my site.. Using WP for this was relatively straightforward…

The ‘Get Current URL’ Bookmarklet Pattern (arcadiamashups.blogspot.com)

In An Introduction to Bookmarklets , I introduced the idea of a bookmarklet , a browser based bookmark that lets you execute a small Javascr…

Created my first bookmarklet thanks to the information and tool at this link. The bookmarklet essentially captures the current webpage URL and opens the reply tab of Quill (a micropub editor) with the URL and title ready. For reference, the reply bookmarklet is javascript:(function(){window.location=’https://quill.p3k.io/new?reply=’+encodeURIComponent(window.location.href);})()

MathJax basic tutorial and quick reference (Mathematics Meta Stack Exchange)

(Deutsch: MathJax: LaTeX Basic Tutorial und Referenz)
To see how any formula was written in any question or answer, including this one, right-click on the expression it and choose “Show Math As > …

This is an excellent quick reference for MathJax and Latex. It is easy to look up and the subsequent posts also contain useful references.

As per indieweb ‘conventions’: Article: traditional long form content: a post with an explicit title and body Note: short content: a post or status update with just plain content and typically without a title I started with defining the majority of posts as notes. My updated strategy will be to use the article form by…

Init: custom docker container for Data Science

I have enabled the TCP on port 8787 via UFW, and am running a docker container of the image ‘rocker/tidyverse’, which is providing an Rstudio IDE online to play with. This was relatively straightforward, starting with installing docker on my debian machine, and then pulling in the rocker/tidyverse container, as well as the rocker/shiny-verse container.…

Easy to resize the swap partition in Linode

In the ‘new’ interface for Linode manager – the advanced tab contains the list of disks. When the Linode is fully powered down, it is possible to resize the partitions as desired. My earlier notes indicate that atleats 2.5GB of swap space was required to install Rstudio (without docker) in the past, on a machine…

Brief exploration of Linode’s backup service add-on

The price is relatively cheap. There appear to be 4 backup slots, each with a varying number of days. However, the price increases as the size of the Linode go up. While the website and the services can be considered critical – I am nevertheless hesitant about relying on Linode itself for backup. I’m thinking…

Installing UMAP took up nearly 1-1.5 GB of swap

Atleast ~500MB of RAM and around 1-1.5GB of swap was used while installing the UMAP package into rocker/tidyverse. It also took ~10 minutes atleast, and started with installing the reticulate, Rspectra and Rcppeigen (?) packages first, after which UMAP was installed. It would certainly save time and head-banging to have umap already installed into a…

ggplot2 –> plotly, transferring subtitles and captions

Lets presume that a ggplot object(g) is available, and the idea is to convert this into a plotly object (p), which offers enhanced interactivity of plots. However, the subtitle and captions defined in the said ggplot object do not get translated into plotly. This is a feature enhancement that has been raised in November 2016…

Enabling ‘pretty’ permalinks in Nginx / WordPress

This wordpress article enumerates some of the differences between an Apache and a Nginx based setup. I ran into this issue, while trying to change the URL format of the blog posts / pages on the website. Essentially, I could not. I was on the fence about enabling ‘pretty’ URLS and was inclined to think…

Removing cloudflare from the VPS

diana_coman’s comment about removing cloudflare’s service from my VPS made me realise: I went ahead (on autopilot??) in setting up Cloudflare for my VPS considering no logical basis. As mentioned in this blog article, cloudflare.com acts as a ‘reverse proxy server’ for websites. Using cloudflare is by no means compulsory or critical for general purpose…

Week 1: Notes on PGP – Pretty Good Privacy, GPG, WOT [0/3]

Most of these notes were written on the go, while implementing things, following tutorials and articles online. However, they have also been subsequently refined and re-organised to aid in clarity and provide some level of organisation. Personal notes: While I’ve documented many projects in the past, and had some exposure to PGP and using GPG…

Literate Org-mode configuration for Emacs is liberating

TLDR: Check out the Docs section for my Emacs config in Org-mode The literate programming paradigm, as conceived by Donald Knuth, represents a move away from writing programs in the manner and order imposed by the computer, and instead enables programmers to develop programs in the order demanded by the logic and flow of their…

Leverage recorded macros to learn =elisp= and hack together workflows in Emacs

The primary power of Emacs is that you can create customised workflows to suit your needs. However, lisp is probably not a language that many learn as a typical requirement in the academic systems, perhaps even for a software engineer. How would one then start customisting Emacs? One way would be to hunt for snippets…

Why bother with Emacs and workflows? :Productivity:yasnippet:Emacs

I’ve written several posts on different ways and tools available to aid productivity, and probably a lot about Emacs. My background is in computational physics, and not in programming, and yet Emacs has been an indispensable driver of my daily workflow for the past 3 years. The fact is that knowing Emacs (or Vim), or…

Incremental improvements can lead to significant gains

While reading the book Atomic Habits by James Clear, I was reflecting that my choice of embracing Emacs and progressively gaining mastery over it was intimately connected with the philosophy preached in the book. My efforts initially started out with a craving for a system to quantify and manage my tasks, habits, notes, blog writing,…

Jupyter notebooks to Org source + Tower of Babel

This post provides a simple example demonstrating how a shell script can be called with appropriate variables from any Org file in Emacs. The script essentially converts a Jupyter notebook to Org source, and Babel is leveraged to call the script with appropriate variables from any Org file. This reddit thread and blog post elucidate…

Getting productive – an exploration into holistic task management

Introduction To integrate tasks, reminders, notes, coding workflow into a single framework is no easy challenge. Org mode and Emacs help you do just that. After trying out several tools, IMHO : Todoist offers the best bang for your buck, especially with it’s natural language parsing ability, smooth and reliable sync as well as its…