Author name: Markelic

Programming, Scala

Call by Name vs Call by Value in Scala

This information is based on the coursera course “Functional Programming Principles in Scala” by Martin Odersky. In Scala expressions* are evaluated by the Scala interpreter following the substitution model. What does this mean? What are expressions, and what means they are evaluated? An expression could be something as simple as “4+3”. Its the combination of

Frontend

How to serve local web files over HTTP for testing

Recently I got interested in creating my own webapp. If you write a simple html file you can open it with a browser. Notice that in the browser in the little window in which you normally type a URL it says ‘file://’. This tells you that the file is not served over the HTTP protocol.

plot of the standard normal distribution
Probability and Statistics

Understanding the Probability Density Function of the Normal Distribution

A random variable \(Z\)  is said to have the standard normal distribution, if its probability density function (pdf) is as follows:  \[\begin{equation}f_Z(z)=\frac{1}{\sqrt{2\pi}} * \exp(\frac{-z^2}{2}), \quad -\infty<z<\infty\end{equation} \tag{1}\label{eq:eq1} \] This formula seems hard to digest and remember. The goal of this post is to get familiar with it. We will do so by dissecting it thoroughly

Scroll to Top
Cookie Consent with Real Cookie Banner