Tagged: Code

0

Simple CGI programming

A simple HTTP server serves static HTML, Javascript, CSS, Images, etc. Sometimes you need a bit of dynamic content from the server-side. There are simple microframeworks to mega frameworks to achieve this. You could use any of these available web frameworks on the server side. But let’s say you don’t have access to any of those frameworks, and you want it to be simple and lightweight. You could try CGI.

Or you are just a web geek and want to spend an hour on old but interesting technology.

0

How to Use Podman to run Workflows in Digdag

I often try to use Docker with my Digdag workflows. That way, we can keep the dependencies clean and separate for each DAG. I have blogged about it in detail before. Now instead of Docker, I can use Podman, by just making one small change.

1

Counting Blog Posts using xidel

I wanted to write 100 posts in 2021, and I am nowhere close to that. I tried to look at the posts by year and see how I have performed over the years. Of course, I could have done that manually by looking at the year archive count or running a query on the database. But recently, I have started using Xidel, so why not use it? :)

0

Building a Web API around CLI Tool

So It’s in my nature to convert everything to a web-service. The biggest reason is that you can call a web service from anywhere, and it’s easy to share the processing power and logic with anyone who has access to a web browser or curl and nothing else.

2

Extract Data from HTML/XML/JSON using Xidel

As you would know, I scrape a lot of web pages as a Data Archivist at DataMeet. I usually use BS4 for this, and it’s beautiful, simple, and works. But often don’t want to write a python script to do that, and I need a simple tool to get data out of HTML.

0

JBang and My Own Custom Catalog

JBang, once installed, allows you to run any java file like a script. Superbly helpful if you want to hack something quickly. It can also install the same as app or binary so it can be found on your PATH. So you can forget about jbang and just run the app.