Determine default Gateway obtained via DHCP under FreeBSD

By | November 1, 2019

So, lets have a FreBSD installation that got an IP address via DHCP using dhclient, and you want to know in a shell script the assigned default gateway for the specific interface. You can use the following little script which prints the IP address of the default gateway to stdout. Assuming you have the script… Read More »

Category: OS

Creating a VirtualBox Machine to Install Plan 9

By | January 16, 2019

Creating a VM in VirtualBox to run the Plan 9 operating system is pretty straightforward. Create a new virtual machine of type "Other" and version "Other/Unknown", then click "Next". Select a memory size of your choice. This could be in a range from 32 MB to what your host is able to serve. In our… Read More »

How to edit OpenSeSim Source Code in Netbeans

By | September 4, 2018

OpenSesim is an open source stock exchange simulator, where you can find the source code on Github here. To work with the source code on OpenSesim it's recommended to use the Netbeans IDE. If you are using Ubuntu 18.04, you can find here instructions to install Netbeans. You can clone the source directly in Netbeans.… Read More »

Install Netbeans 8.2 on Ubuntu 18.04

By | September 3, 2018

First you have to install OpenJDK 8 because Netbeans doesn't work with OpenJDK 11 which is installed on Ubuntu 18.04 by default. sudo apt-get install openjdk-8-jdk Next download here the Netbeans installer of your choice for Linux. If you chose Netbeans IDE Java SE you should get the file: netbeans-8.2-javase-linux.sh. Now start the installer, setting… Read More »

Bad Coding Style (I)

By | February 12, 2018

Look at the following PHP code snipped. It's a function which calculates the product of its two arguments and returns the result if both arguments are of type integer. Otherwise the function returns false. So far so good. The function does what it should do, and I have seen a lot of functions written this… Read More »

Simulating the Impact of UASF / BIP148 on Bitcoin

By | June 8, 2017

To get a better prediction of UASF impact on bitcoin, I wrote a quick and dirty bitcoin network simulator, which you can find here on GitHub. After playing around with all kinds of hash rate distributions and UASF/non-UASF nodes, my first conclusion is, that there is almost no impact  of UASF nodes on bitcoin, if… Read More »

How to Setup a Bitcoin BIP148/UASF Node on FreeBSD

By | May 22, 2017

Assuming you have a fresh FreeBSD (or a jail) installed, and you are logged in as root, download the latest version of BIP148 enabled bitcoin sources from here as .tar.gz file and untar it.  As of writing it is v0.14.1-uasfsegwit0.3.tar.gz. fetch https://github.com/UASF/bitcoin/archive/v0.14.1-uasfsegwit0.3.tar.gz tar xzvf v0.14.1-uasfsegwit0.3.tar.gz cd bitcoin-0.14.1-uasfsegwit0.3 Next the documentation in ./doc/build-unix.md tells us which… Read More »

Open Sesim!

By | April 9, 2017

There is now a dedicated page for SeSim  - Open Source Stock Exchange Simulator. New releases and other information will be found there.