Ducktape’s blog

Setting up Jupyter Notebook for Perl5

I want to start using Perl5 to replace some of my day to day Python tasks, but I don’t want to have to give up Jupyter notebooks! Fortunatly, someone has solved this already.

The following instructions are for Ubuntu 16.04

  1. Install rabbitMQ: sudo apt install libzmq3-dev
  2. Install Jupyter: sudo python3 -m pip install jupyter
  3. Install iperl: cpanm Devel::IPerl

You should now be able to start a jupyter-notebook and select iperl as the kernel!

February 6, 2020 note Perl Jupyter






PICO-8 Cartridge



Reset Reset
Pause Pause
Fullscreen Fullscreen
Toggle Sound Sound



February 5, 2020 project PICO-8 games






Peter Norvigs Spellchecker in Perl6

I finally decided to dive into Perl6 and used Peter Norvigs Spellchecker as a staring point to learn what was what. The original can be found here.

My main takeaway regarding Perl6 is that it is awesome! And complicated. The gradual typeing will be a really nice feature once I get the hang of it. My biggest frustration was the lack of slicing for strings, all that is available is substr.

Here is the pretty much direct copy of the python version.

For a more up to date version, see here

February 4, 2020 note Perl 6 Raku spellchecker






Installing R on a Crostini Chromebook

Getting R to work is a pain. At the end of the day I installed from source. First, if you’ve been messing with your /etc/apt/sources.list file, restore it by following the examples from here.

I then followed

r_version=3.5.1
wget http://cran.rstudio.com/src/base/R-3/R-"$r_version".tar.gz
mkdir R_HOME
mv R-"$r_version".tar.gz R_HOME/
cd R_HOME/
tar zxvf R-"$r_version".tar.gz
cd R-"$r_version"/
sudo apt-get install default-jdk
sudo apt-get install gfortran libreadline6-dev libx11-dev libxt-dev zlib1g-dev libbz2-dev liblzma-dev libghc-regex-pcre-dev
./configure
make
# Then make sure to add the bin dir to your path
  • Note that there may be a few system deps that I already had installed for compiling some other tools. So you may still need basic stuff like gcc etc.
  • Compiling from source takes approx 3 years

February 3, 2020 note R Crostini Chromebook Linux