Rails app with Azure Entra-ID authentication

This post 1 demonstrates how to use Azure Entra-ID for authentication. According to What is Microsoft Entra ID?, Microsoft Entra ID is a cloud-based identity and access management service that your employees can use to access external resources. ...

February 9, 2025

Ruby tricks and tips

I have been using ruby for over a year now and collected some tricks I would like to share. Ruby weekly newsletter Often, I consult the Ruby weekly newsletter. These are some interesting articles I found there. ...

January 12, 2025

Simple.css framework

After using bulma for some time, I moved on to an even easier framework, called Simple.css. All you have to do is to include it: ...

January 1, 2025

Ruby on Rails ticks and trips

I have been using Ruby on Rails quite a lot lately due to its extremely rapid way to build proof of concepts for web applications. ...

November 12, 2024

A vertical responsive menu with PureCSS

I have been using Pure.css in most of my applications since it is really simple to use. This is a small code sample that uses Pure.css with a responsive, vertical menu with hamburger and a submenu. ...

July 27, 2024

Pure.css framework

Pure.css is a css framework that does not include JavaScript like other frameworks such as Vue, bootstrap, … In contrast to those frameworks: ...

February 3, 2024

Serving static pages locally

Running build-in tomcat server It is possible to deploy Jekyll sites locally, because OSX has a build-in Apache tomcat server. The local sites reside under ~/Sites. However, the setup of this server often changes with new versions of OSX. ...

October 1, 2023

How to work with modules and packages in Go

I had to practice a long time to understand the go concepts of modules, packages, and how to publish them to github. Here are my learnings. ...

July 30, 2023

Bolero hosting Razor page

In this post we investigate how to use Razor pages on the host and Bolero WebAssembly on the client side. The final code can be found on My github - Tutorials - BoleroAppRazor. ...

April 11, 2023

General production optimization

Optimization General production structure capacited multi-level lot-sizing model PochetWolsey, page 45 $1 \le i \le m$: set of items to be produced $1 \le k \le K$: set of shared resources with limited capacity $1 \le t \le n$: time periods until final period n $p_t$: unit production cost $q_t$: fixed production cost $h_t$: unit inventory cost $d_t^i$: demand for item i to be satisified at period t $M_t$: large positive number, expressing an upper bound on the maximum lot size iin period t $L_t^k$: available capacity of resource k during period t $\alpha^{i k}, \beta^{i k}$: amount of capacity of resource k consumed $1 \le j \le m$: items $D(i)$ set of direct successors of part i in the BOM, i.e. the items consuming some amount of item i when they are produced $r^{i j}$: the amount of item i required to make one unit of item j. r is the dependent demand, and $d_t^i$ is the independent demand $\gamma^i$: lead-time to produce or deliver an lot of i $x_t^i$: the size of product or purchase order of item i launched in period t, and delivered in period $t + \gamma^i$. Decision variables: $x_t$: production lot size in period t $y_t$: binary variable indicating wether there is a positive production in period t $s_t$:inventory at the end of period t Objective Function $$ \begin{aligned} \text{min} \sum_i \sum_t (p_t^i x_t^i + q_t^i y_t^i + h_t^i s_t^i) \cr \text{subject to} \cr s_{t-1}^i + x_{t-\gamma^i}^i & = [d_t^i + \sum_{j \in D(i)} r^{i j} x_t^j] + s_t^i \cr x_t^i & \le M_t^i y_t^i \cr \sum_i \alpha^{i k} x_t^i + \sum_t \beta^{i k} y_t^i & \le L_t^k \cr \end{aligned} $$ ...

April 1, 2023