Installing Jupyter Notebooks on Solaris

pip installing jupyterlab may give you the following error (somewhere in the error output anyway!): The simplest solution I’ve found to this is just to install libzmq. We can pull the latest code from github and install it. I usually install things in /opt but as the pip process will look for libzmq in /usr/local, we’ll install it in there this time. If you do put it somewhere other than /usr/local you might need to Read more

Install scipy on Solaris

When trying to install scipy via pip on Solaris you may encounter this error: There’s a simple way to resolve this but it’s not immediately obvious. BLAS (Basic Linear Algebra Subprograms) and LAPACK (Linear Algebra Something Something…?) are actually provided by the Solaris math and perf libraries, so installing those and setting a couple of environment variables will get scipy and numpy up and running for us on Solaris. Python 3.7 is in more SRU’s. Read more

One-hot encoding labels

Another little snippet that I sometimes forget 🙂 Suppose you have a dataframe with a column that has data in a string format and you need to transform that into a way that a machine learning algorithm can use. One good way is with one-hot encoding which will take the values in the column and create new columns with 1’s & 0’s representing the original data. Have a look at this dataframe snippet: prod rev Read more

Python : generating unittests on the fly

When creating python unit tests you need to create a method in a unittest class. The problem however is when you don’t know until the code is running what these tests will be. In my particular case I need to run a series of tests against a number of Solaris packages. But I won’t know what the packages will be in advance. Read more

Tonidoplug Power Supply failure

I’ve been using my tonidoplug as a home NAS server for almost a couple of years now. It’s performed as well as can be expected for 2 mirrored 1.5TB disks attached on a USB hub. One evening recently though I noticed that it was unreachable. A quick look at the box showed that all was not well, both lights on the network interface were on as was the green light on the box. After trying Read more

Using NAT with Zones

This post originally appeared at http://blogs.sun.com/ford/entry/using_nat_in_the_global Since sun.com is going away soon (thank a bunch Oracle…) I’m going to mirror it here because I found it useful. Tuesday September 27, 2005 Using NAT in the Global Zone There have been requests to use IPFilter on Solaris 10 as a tool to allow use of networking by non-global zones without allocating an IP address for each zone. The general idea is to use network address translation Read more