Skip to content

Content classified under "Software"

Page 2 of 21

Content classified under "Software"

Build a Django Docker Image with Cx-Oracle

July 17, 2018Categories: Software, Tutorial
TL;DR: Don't use alpine images. There's a glibc issue . We added a cx-oracle dependency to one of our django apps. As the previous image was just an alpine basic (python) image we needed to put in place a process to build the new image. Initially, I've tried to use the same alpine image (oh…

Execute a Command in Every Directory with Bash

July 13, 2018Categories: Software, Tutorial
TL;DR : Use a find-based loop The other day I was wondering how to execute a command in each sub-directory of a project. In python , you have os.walk . In C , I would've probably written myself something just for fun etc. In shell , I know you have find which is capable of finding all…

Build Update Statements with Oracle SQL Developer and Python

June 18, 2018Categories: Software, Tutorial
By default, SQL Developer can only export INSERT statements. This is quite unfortunate when one needs to build UPDATE statements because their syntax is different. I've tried to use regexp to convert the statements but I didn't find it not straight forward at all. So, I cam up with the following…

How to Develop Pipelines - Some Best Practices

May 30, 2018Categories: IT, Software
These days I'm developing a bunch of pipelines to automatise the build/deployment process. Here are some things I've learned: How to develop Initially, I've started developing the pipeline as any other program: Create a repository, fire my editor, write a Jenkinsfile and use the Pipeline script…

Fade colors in Corona using Transitions

March 11, 2018Categories: Software, Tutorial
Corona provides transitions. According to this post , a transitionTo(...) would suffice: The user can also cancel the transition if needed (which is waht I would need to do later in the code). In case you're into custom stuff and the easing functions are not enough, you can create your own . A…

Fade Colors on a Polygon using the Game Loop

March 11, 2018Categories: Software, Tutorial
One of the features I need to implement is to smoothly change the fill/stroke color of a polygon, like this: A manual approach In order to better understand the mechanics, I built my own fading PoC. First, one would need to build the polygon: In this particular case, I have a text field and a…

Antialias a Polygon with Corona SDK

February 27, 2018Categories: Software, Tutorial
The other day I figured I needed to draw a polygon in Corona SDK . With display.newPolygon(...), the job is extremely easy and a result like (apologies for the JPEG artefacts): It is obvious that in non retina cases, one can see the aliasing of the polygon's edges. Hence I've thought and searched…

Ignore ESLint Directives in Code

January 18, 2018Categories: Software, Tutorial
The other day I've had to refactor a piece of angular code. Unfortunately, the original code was written a long time ago and has some issues like having $scope in controllers and a rather large number of unused variables. changing the $scope to this is a very time-consuming task as it implies…

Monitor ethOS Distro with Elastic Search - 3

December 27, 2017Categories: IT, Software, Tutorial
Once we've set up the data sending from out ethOS machine , we can check that ElasticSearch collects data. With GET /ethos/_count , we get something like: If the count is greather than 0 , we can start analysing the data. Metrics I am currently measuring only machine. Therefore, I've set up some…

Proxy Content from URL with Webpack Dev Server

December 21, 2017Categories: Software, Tutorial
An application I'm working with has a large amount of static files (path starting with '/files/' ) deployed on a mounted volume in Docker . They are subsequently served via nginx . for local development, I thought of two options: Add files to the local dev server (e.g. copy assets) Build a proxy…
PreviousNext

All categories