Category Archives: Open Source

Deploying to production via FTP using GIT hooks

In this post, we address a common development task of pushing to production. This tutorial assumes you are working on linux, use GIT for version control and are somewhat familiar with python. I’ve only recently started using python for scripting and I can say it’s very friendly for these kind of tasks. Also, I assume […]

Continue reading

Creating HTML Links with Page Titles using Raw URLs in Linux Shell

Given a plain text list of URLs (for example links in your history) you want to create a list of HTML links which have the same title as the page’s document title. Offcourse, you want to do it with a script! Example input: https://www.invision-web.net/ https://www.share-2-web.com/ Example output: <a target=”_blank” href=”https://www.invision-web.net/”>InVision-Web.net :: Top work at Web […]

Continue reading

Colored Text Output in Linux Shell and Bash Scripts

This script is used in a lot of other scripts I produce over time, and it’s very handy for generating colored text output in the terminal. Example of usage Here’s an example of using the colors.sh script: #!/bin/bash source colors.sh echo “${fg_yellow}Yellow ${fg_reset}Normal ${fg_green}Green {$fg_reset}”; Download You can view or download the script here: https://invision-web.net/web/sources/colors.sh […]

Continue reading

Computing Arithmetic Expressions given as Strings: C++ Solution

The most basic task any programming language should be able to handle is to compute arithmetic expressions including constants, numbers, variables as well as function calls and other value holding “objects”. I’ve written a simple C++ solution that can solve very simple arithmetic expressions. I think it’s a good starting point for anybody trying to […]

Continue reading

Turing Machine Simulation written in Javascript and PHP

Few years back I’ve been working on a Turing machine implementation in PHP and Javascript. Try out the javascript animated simulation first and then continue reading. Turing machine animated simulation START SIMULATION (press F5 to restart) Delay (1/speed): 30 ms of delay More delay (slower) | Less delay (faster) The Turing machine definition: This file […]

Continue reading

InVision Framework: The View Template Language

Many modern web applications follow the Model-View-Controller pattern in order to separate concerns, or in detailed terms: to avoid mixing the backend processes, business logic, the data structuring and the way all gets displayed to the user. Following this pattern I have developed a simple language which is quite neat, easy to use and understand […]

Continue reading