Skip to main content

Posts

Stochastic Systems Analysis

Engineers will recognize that this post is about stock trading, others may wonder what is a stochastic system . Market price data is a time series of mostly random data, a stochastic system .  So a Day Trader is a Stochastic Systems Analyst - now doesn't that sound fancy! Investopedia Simulator   The one thing I learned over the years is that if you want to make money from trading stocks or futures, then you need to have a simple and well defined system, with easy to calculate entry and exit criteria, otherwise you will eventually lose your shirt. As the late Douglas Adams, the famous galactic economist of Bistromatics fame said:    When it is infinitely improbable that something will ever happen,  it will happen almost immediately. Price data is mostly random.  In retrospect it seems to follow a trend and engineers and computer programmers get duped into thinking that they can easily devise a system to do automated trading based on historical ...

Troubleshooting Video Streaming

Casting About Video multicast routing usually 'Just Works'.  Occasionally it doesn't work at all, or the video streams for a few minutes only and then one is left scratching one's head... To find out what is wrong, one has to know how to analyze a playback streaming problem when it happens. Here is something to read on streaming, multicasting and the Internet Group Management Protocol (IGMP): http://www.tldp.org/HOWTO/text/Multicast-HOWTO   Multicast Version Sometimes is is necessary to use a specific version of IGMP to get things to work. One can force the IGMP version in the /proc/sys/net/ipv4/conf/eth0/force_igmp_version to 0 (auto), 2 or 3. Multicast Routing The multicast address subnet is the 224.x.y.z address range.  For routing to work at all, you need a multicast route, set with a command like this: # route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 That is if your ethernet port is eth0.  Mine is enp0s26u1u1 at the moment - I...

Saving the trees - PDF signatures

How to stick a signature graphic into a PDF file, without having to print it first: A word of warning first Don't stick your signature into a MS Word document, since anyone with 2 brain cells can alter it. Also don't use your usual signature - Make a special scrawl for office use. Print the file to PDF with Foxit Reader If the file isn't in PDF format already, open your MS Office document with MS Word on Windows. Print to a file and select PDF format. If you cannot print to a PDF, install Foxit Reader: https://www.foxitsoftware.com/products/pdf-reader/ Make a signature graphic with transparent background using Gimp Make a signature graphic with transparent background: Take a pen, scrawl on a piece of paper. Scan it. Use a real computer - Linux, BSD or Mac: apt install gimp xournal pdfshuffler Open the scan file with Gimp Crop it Select the white background with the eye dropper Click Layer, Transparency, Colour to Alpha Click File, Export, signa...

Simple OpenBSD File Server

These days, when people think of a file server, they assume that it must support Windows CIFS (a.k.a. SMB or Samba).  A few grizzled sysadmins know that NFS would be much, much simpler to set up and almost nobody would consider using FTP. Well, that is too bad, since for many situations, anonymous FTP is best and it works purrfectly on my little OpenBSD netbook. FTP is a very simple protocol, it only talks when it has to and is completely quiet otherwise.  It has none of the chattyness and incessant 'CACA' packets of CIFS.  It is extremely easy to set up and has native support in all operating systems.  Even Windows can do anonymous FTP transparently and can map a FTP server to a drive letter, thus enabling any program to connect to the server directly. Some will speak up and say that FTP is insecure.  Well, yes, but so is NFS and CIFS.  The difference is that FTP doesn't even pretend to be secure.    The joke is that nowadays, since script...

OpenBSD on a Netbook

Recently, I got fed-up with the bloated Linux distributions and wanted to try something that is secure, small and efficient and downloaded OpenBSD 6.0 from Theo De Raadt's server in Calgary.  Since Calgary is actually my old home town - why not? OpenBSD tries to be the most simple and secure UNIX system out of the box.  It is very much server oriented, but it can do anything and many architectures are supported just for fun. For example, Arm RPi and Beaglebone, Intel 32 and 64 bit and several more.  So OpenBSD is a good choice whether you want to build a server farm, a network router, or a robot. I have an old little Lenovo S10e netbook that I threatened to toss away numerous times, but it doesn't want to break.  As I feel guilty about tossing something that works perfectly well in a bin, once in a while when I run short of resources, I end up using it again.  Last year, it was pressed into service as a Linux Mirror server to install a bunch of emb...