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 · 4 min · Markus Greiner

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 · 4 min · Markus Greiner

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 · 3 min · Markus Greiner

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 · 4 min · Markus Greiner

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 · 2 min · Markus Greiner

Miscellaneous

This is a list of reminders and open questions I still wanted to look at in more detail. CSV conversion Next to FSharp.Data there is CSVHelper. However, it does not support FSharp types intrinsically. A stackoverflow article describes the details. ...

March 18, 2023 · 2 min · Markus Greiner

RESTful API

This contains some thoughts how to implement RESTful APIs. Background tbd Best practices A search for RESTful API best practices reveals many sites: ...

March 15, 2023 · 3 min · Markus Greiner

Github resources

Some of my codes are documented on my Github with description in the readme files. Take a look there. Github Description BoleroApp A simple Bolero app with file upload and data repository using dependency injection StringAlgorithms Some string algorithms in F# to measure string similarity WebAPI A net7.0 based RestAPI in F# DependencyInjection simple attempts at dependency injection in F# MinimalAPI Minimal API with a file upload example BoleroAppRazor Bolero App, but using Razor pages on the server

February 10, 2023 · 1 min · Markus Greiner

Go tricks & tips

In 2023, I became interested in the programming language Go. It is a C derivates without all the nil pointer exceptions, and has a very solid infrastructure and libraries to compile across different operating systems. ...

February 1, 2023 · 3 min · Markus Greiner

SWIG - interface for C and C++

SWIG SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of target languages including common scripting languages such as Javascript, Perl, PHP, Python, Tcl and Ruby. ...

January 13, 2023 · 1 min · Markus Greiner