Manage Code Versions With git

Code Changes and Project Versions

Synopsis

There are many ways to use git to manages changes. This insert focus is the use of git in a development environment to handle changes of multiple versions done by various developers.

versions tree

Mainstream development (next version) is always done in main branch. When next …

more ...

Remote Host Accessibility

How to check port on remote host is accessible

Synopsis

This post shows how to validate remote host is accessible.

Motivation

There are many solutions out there on how to check that port on a remote host is accessible. But we needed a solution that would not hang up.

Checking …

more ...

SSH Pipe with Python's Subprocess and Multiprocessing

How to pass objects to remote system using SSH and Multiprocessing

Synopsis

Previous post on this subject used os.fork and os.pipe to issue SSH in a child process. Instead, this post uses multiprocessing Process and Pipe to make it more platform agnostic. Per audience request, this post will …

more ...

SSH Pipe with Python's Subprocess

How to pass objects to remote system using SSH

Synopsis

This post shows how to create pipe channel over SSH. In particular, it demonstrates how to instantiate pipeline channel over SSH. We use this channel to pass an object to a remote system. This post shows two methods. One using …

more ...

Python Lex and Yacc with PLY

Grammer Reusability

Synopsis

In many cases, grammar is used in a singular scope of actions. That is, any sentence in the grammar yields distinct action. In some cases, we want to produce different outcomes in different compiling passes of the same text. This post focuses on how to use Python …

more ...

Pelican Post Template Controls

How to selectively show comments block

Synopsis

This post will cover how to control templates from articles. In specific, how to enable or disable comments block in posts.

Motivation

We are using Pelican static website framework with Pelican Comment System. However, we wanted to disable for some of the articles …

more ...

SSH Made Easy Using Python Subprocess

Subprocess Module

Synopsis

Python's subprocess module makes it easy to invoke external commands on localhost. It can also use SSH to invoke commands on remote hosts.

How simple?

The short answer is, very simple!

The longer answer is, subprocess.run, as follows:

1
2
3
4
5
result = subprocess.run …
more ...

Astrophysics Research Python Programming

The Productive Research

Introduction

Recently I helped a group of astrophysicists convert a set of IDL programs to Python. This set was to classify stars by analyzing ROTSE-I and ROTSE-III data. In this insert I would share the experience of moving IDL code to python. The insert is only attempt …

more ...

Python Ordered Class

Maintain Ordered of Fields in Class

Introduction

We saw many questions on the WEB regarding having Python class maintain order of its fields. Reason being that __dict__ is dict, therefore, class doesn't register the order of the fields presented to it.

We decided to share our version of such a …

more ...

Python Print Directory Tree

Mimicking Linux Tree Utility

Introduction

Many blogs are showing how to print directory tree using Python. Drawing from those examples, we built our version. The primary drivers were:

  1. Compatibility with Python3
  2. Print symbolic links
  3. Limit depth of tree

Example output:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10 …
more ...

Cobol Conversion Take 1

Acrisel team has vast experience in Cobol conversion. We are sharing this knowledge with our community.

Introduction

Cobol is a structural language with many years of maturity. It was built for business use, and it is used as that for a few decades now. So why to move away from …

more ...

Acrisel's place for sharing experience

more ...