Skip to content

Content classified under "Software"

Page 1 of 21

Content classified under "Software"

Use Shared Variables with Cypress in Typescript

September 11, 2019Categories: Software, Tutorial
This week I started adding Cypress testing to my blog (with some surprises too!). I insisted to use typescript with Cypress and my code looks now like this: This is fine and it works. Thing is that I have the text 'Laur IVAN|PRO" defined in another file and the site is getting it from that file…

Draw Graphs with JSON Data

February 3, 2019Categories: Software, Tutorial
Previous post dealt with sending JSON data around. Now, I need to be able to draw it. After looking for graphing libraries, I've settled on Chart.js and on CanvasJS . Common steps All graphs need a canvas element to function: First thing I wanted, was to get the data with AJAX. This way, my…

Send JSON Graph Data from Django

February 3, 2019Categories: Software, Tutorial
I'm trying to write a Django application to deal with my finances. I've got a nice page listing various transactions, but I thought it'd be nice to have a graph too, to see where I actually am on the spot. To do this, I'll need two components: A JSON sender from Django A receiver and renderer on the…

Delete Executions in Rundeck - Wrapping it all Up

October 9, 2018Categories: IT, Software, Tutorial
The previous posts have built the components to allow us to get projects , jobs , executions and remove executions from a Rundeck instance via its API. Now, we can just wrap them up :) The list of packages we need is: For convenience, I've declared a bunch of constants we can use…

List Rundeck Jobs for a Project

September 6, 2018Categories: IT, Software, Tutorial
Now that we Rundeck have a list of project names , we might want to see which jobs were created for each project. To do this, we need: The Rundeck instance's address ( server , port ) The API key ( api_key ) A project's name ( project_name ) First, we need to get the list of jobs for a project…

List Rundeck Projects

September 6, 2018Categories: IT, Software, Tutorial
The other day I found out that Rundeck has an API which allows it to be controlled remotely by scripts. I've decided to write a script to list all the projects defined in a rundeck instance. Prerequisites Before you start, you need: The instance's URL ( server and port ) An api key for the…

Remove Large Files in Git

September 6, 2018Categories: Software, Tutorial
TL;DR: BFG is your friend. java -jar bfg.jar -b 50M myrepo-bfg.git for example The other day I've committed a rather large file by mistake (generated movie of the git commit history). This was a bit annoying because all other developers would have suddenly to check out a 1G file :( with no LFS…

Run a Rundeck Command as a Different User

September 6, 2018Categories: Software, Tutorial
TL;DR: Add the rundeck user to the sudoers and then use sudo Installing rundeck on Ubuntu usually results in creating a rundeck user. We had a bunch of issues creating a rundeck job because we needed to execute a command as a specific user (only that user had access to some resources…

Fix Not Found Package Errors with .staging Warnings on Npm Install

September 5, 2018Category: Software
TL;DR : Clean the npm cache and the package-lock.json The other day I started to get ENOENT warning when running npm install like: only to have the compilation failing with something like: I've looked into it and the conclusion was that the error occurred because I've updated my node/npm…

Fix TS1144 for e.g. flex-layout

September 5, 2018Category: Software
TL;DR: Update your typescript version dependency. These days we're updating some angular apps to the most recent version (6 at the time of writing this entry). Everything is nice, with the exception of various errors we get because of the other dependencies. The most recent one was a TS114…
Next

All categories