System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000
Deps: local-lib-2.000029.tar.gz
PDL and Statistics::R::IO for 2D grid inspection.
Useful on headless servers or in remote terminal environments.
https://slackbuilds.org/repository/15.0/perl/perl-local-lib/
local-lib-2.000029.tar.gz
perl-local-lib.tar.gz
bash-5.1# installpkg --terse perl-local-lib-2.000029-x86_64-1_SBo.tgz
perl-local-lib-2.000029-x86_64-1_SBo: create and use a local lib/ for perl modules ............... [ 190K]
bash-5.1#
Install PDL.
bash-5.1$ cat pdl.sh
#!/bin/sh
eval "$(perl -Mlocal::lib)"
export PDL_WITH_PROJ=0
export PDL_WITH_GD=0
export PDL_WITH_HDF=0
export PDL_WITH_NETCDF=0
export PDL_WITH_FFTW=0
cpan File::Map File::Which Sys::SigAction Test::Deep Test::Exception \
Test::Warn PDL Term::ReadLine::Gnu PDL::IO::Browser Statistics::R::IO
bash-5.1$
Print trees class, structure and title.
bash-5.1$ Rscript -e 'print(class(trees)); str(trees)' | sed -n '2p'
'data.frame': 31 obs. of 3 variables:
bash-5.1$ Rscript - <<'EOF'
> db <- data(package="datasets")$results
> cat(db[db[, "Item"] == "trees", "Title"], "\n")
> EOF
Diameter, Height and Volume for Black Cherry Trees
bash-5.1$
Generate an .rds file.
bash-5.1$ Rscript -e 'saveRDS(as.matrix(trees), "trees.rds",
> compress = FALSE, version = 2)'
bash-5.1$
Load the .rds file for browsing.
bash-5.1$ cat cherries.pl
#!/usr/bin/perl
use strict;
use warnings;
use PDL;
use PDL::IO::Browser;
use Statistics::R::IO;
pdl(Statistics::R::IO::readRDS('trees.rds')->to_pl)
->reshape(31, 3)->transpose->browse;
bash-5.1$
Create a FastRaw data pair.
bash-5.1$ cat trees.pl
#!/usr/bin/perl
use strict;
use warnings;
use PDL;
use PDL::IO::FastRaw;
use Statistics::R::IO;
my $matrix = pdl(Statistics::R::IO::readRDS('trees.rds')->to_pl)
->reshape(31, 3)->transpose;
writefraw($matrix, 'trees');
bash-5.1$
Call this script on the binary; e.g. browse trees.
bash-5.1$ cat browse
#!/usr/bin/perl
use strict;
use warnings;
use PDL;
use PDL::IO::FastRaw;
use PDL::IO::Browser;
my $filename = $ARGV[0] or die "Usage: $0 <fastraw_basename>\n";
my $matrix = readfraw($filename);
$matrix->browse;
bash-5.1$
Create a .csv file for an MS® spreadsheet.
bash-5.1$ cat meyer.pl
#!/usr/bin/perl
# Forest Mensuration
# H. A. Meyer
# Penns Valley Publishers, Inc.
use strict;
use warnings;
use PDL;
use PDL::IO::Misc;
use Statistics::R::IO;
my $data = pdl(Statistics::R::IO::readRDS('trees.rds')->to_pl);
my $matrix = $data->reshape(31, 3);
wcols($matrix, 'prunus_serotina.csv', { COLSEP => ',' });
bash-5.1$
A PDL::IO::Browser bug was fixed with commit 0e60cce on Thu Nov 12 14:56:49 2026 +0000.
26 December 2023
21 November 2020
vile
System: Slackware Linux (version 14.2)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: vile-9.8t.tgz, IO-Tty-1.14.tar.gz
https://slackbuilds.org/repository/14.2/development/vile/
vile-9.8t.tgz
vile.tar.gz
bash-4.3$ diff a/vile.SlackBuild b/vile.SlackBuild
82c82,88
< --build=$ARCH-slackware-linux
---
> --build=$ARCH-slackware-linux \
> --with-perl \
> --with-screen=ncursesw \
> --with-loadable-filters \
> --enable-plugins \
> --with-locale \
> --with-iconv
bash-4.3$
https://slackbuilds.org/repository/14.2/perl/perl-IO-Tty/
IO-Tty-1.14.tar.gz
perl-IO-Tty.tar.gz
bash-4.3# cd /usr/include
bash-4.3# h2ph -alQ sys/ioctl.h 2>/dev/null
bash-4.3# tree -L 1 -d --noreport /usr/local/lib/perl5
/usr/local/lib/perl5
|-- asm
|-- asm-generic
|-- bits
|-- gnu
|-- linux
`-- sys
bash-4.3#
Create a startup file with the following content.
bash-4.3$ cat ~/.vilerc
perl "use shell"
set bcolor white
set fcolor black
bash-4.3$
Vim's digraph feature is based on RFC 1345.
Here's an implementation of the use of LaTeX/XeLaTeX shortcuts.
It uses Ctrl + K followed by the shortcut.
bash-4.3$ mkdir ~/.vile
bash-5.1$ cat latex.sh
#!/bin/sh
echo ";; latex.rc for use with vile" > ~/.vile/latex.rc
echo ";; simply put the line" >> ~/.vile/latex.rc
echo ";; source latex.rc" >> ~/.vile/latex.rc
echo ";; in your startup file" >> ~/.vile/latex.rc
echo >> ~/.vile/latex.rc
echo ";; '×'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\times \x16u00D7\n" >> ~/.vile/latex.rc
echo ";; '÷'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\div \x16u00F7\n" >> ~/.vile/latex.rc
echo ";; '↑'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\uparrow \x16u2191\n" >> ~/.vile/latex.rc
echo ";; '→'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\to \x16u2192\n" >> ~/.vile/latex.rc
echo ";; '∀'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\forall \x16u2200\n" >> ~/.vile/latex.rc
echo ";; '∃'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\exists \x16u2203\n" >> ~/.vile/latex.rc
echo ";; '∈'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\in \x16u2208\n" >> ~/.vile/latex.rc
echo ";; '∐'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\coprod \x16u2210\n" >> ~/.vile/latex.rc
echo ";; '∖'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\setminus \x16u2216\n" >> ~/.vile/latex.rc
echo ";; '∪'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\cup \x16u222A\n" >> ~/.vile/latex.rc
echo ";; '∣'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\mid \x16u2223\n" >> ~/.vile/latex.rc
echo ";; '∩'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\cap \x16u2229\n" >> ~/.vile/latex.rc
echo ";; '∶'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\colon \x16u2236\n" >> ~/.vile/latex.rc
echo ";; '≔'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\coloneq \x16u2254\n" >> ~/.vile/latex.rc
echo ";; '≡'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\equiv \x16u2261\n" >> ~/.vile/latex.rc
echo ";; '≤'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\leq \x16u2264\n" >> ~/.vile/latex.rc
echo ";; '≥'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\geq \x16u2265\n" >> ~/.vile/latex.rc
echo ";; '⊆'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\subseteq \x16u2286\n" >> ~/.vile/latex.rc
echo >> ~/.vile/latex.rc
echo ";; from xelatex" >> ~/.vile/latex.rc
echo >> ~/.vile/latex.rc
echo ";; '−'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\textminus \x16u2212\n" >> ~/.vile/latex.rc
bash-5.1$ printf '%s\n' 'source ~/.vile/latex.rc' >> ~/.vilerc
bash-5.1$
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: vile-9.8t.tgz, IO-Tty-1.14.tar.gz
https://slackbuilds.org/repository/14.2/development/vile/
vile-9.8t.tgz
vile.tar.gz
bash-4.3$ diff a/vile.SlackBuild b/vile.SlackBuild
82c82,88
< --build=$ARCH-slackware-linux
---
> --build=$ARCH-slackware-linux \
> --with-perl \
> --with-screen=ncursesw \
> --with-loadable-filters \
> --enable-plugins \
> --with-locale \
> --with-iconv
bash-4.3$
https://slackbuilds.org/repository/14.2/perl/perl-IO-Tty/
IO-Tty-1.14.tar.gz
perl-IO-Tty.tar.gz
bash-4.3# cd /usr/include
bash-4.3# h2ph -alQ sys/ioctl.h 2>/dev/null
bash-4.3# tree -L 1 -d --noreport /usr/local/lib/perl5
/usr/local/lib/perl5
|-- asm
|-- asm-generic
|-- bits
|-- gnu
|-- linux
`-- sys
bash-4.3#
Create a startup file with the following content.
bash-4.3$ cat ~/.vilerc
perl "use shell"
set bcolor white
set fcolor black
bash-4.3$
Vim's digraph feature is based on RFC 1345.
Here's an implementation of the use of LaTeX/XeLaTeX shortcuts.
It uses Ctrl + K followed by the shortcut.
bash-4.3$ mkdir ~/.vile
bash-5.1$ cat latex.sh
#!/bin/sh
echo ";; latex.rc for use with vile" > ~/.vile/latex.rc
echo ";; simply put the line" >> ~/.vile/latex.rc
echo ";; source latex.rc" >> ~/.vile/latex.rc
echo ";; in your startup file" >> ~/.vile/latex.rc
echo >> ~/.vile/latex.rc
echo ";; '×'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\times \x16u00D7\n" >> ~/.vile/latex.rc
echo ";; '÷'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\div \x16u00F7\n" >> ~/.vile/latex.rc
echo ";; '↑'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\uparrow \x16u2191\n" >> ~/.vile/latex.rc
echo ";; '→'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\to \x16u2192\n" >> ~/.vile/latex.rc
echo ";; '∀'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\forall \x16u2200\n" >> ~/.vile/latex.rc
echo ";; '∃'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\exists \x16u2203\n" >> ~/.vile/latex.rc
echo ";; '∈'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\in \x16u2208\n" >> ~/.vile/latex.rc
echo ";; '∐'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\coprod \x16u2210\n" >> ~/.vile/latex.rc
echo ";; '∖'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\setminus \x16u2216\n" >> ~/.vile/latex.rc
echo ";; '∪'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\cup \x16u222A\n" >> ~/.vile/latex.rc
echo ";; '∣'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\mid \x16u2223\n" >> ~/.vile/latex.rc
echo ";; '∩'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\cap \x16u2229\n" >> ~/.vile/latex.rc
echo ";; '∶'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\colon \x16u2236\n" >> ~/.vile/latex.rc
echo ";; '≔'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\coloneq \x16u2254\n" >> ~/.vile/latex.rc
echo ";; '≡'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\equiv \x16u2261\n" >> ~/.vile/latex.rc
echo ";; '≤'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\leq \x16u2264\n" >> ~/.vile/latex.rc
echo ";; '≥'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\geq \x16u2265\n" >> ~/.vile/latex.rc
echo ";; '⊆'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\subseteq \x16u2286\n" >> ~/.vile/latex.rc
echo >> ~/.vile/latex.rc
echo ";; from xelatex" >> ~/.vile/latex.rc
echo >> ~/.vile/latex.rc
echo ";; '−'" >> ~/.vile/latex.rc
printf "map! \x0B\\\\textminus \x16u2212\n" >> ~/.vile/latex.rc
bash-5.1$ printf '%s\n' 'source ~/.vile/latex.rc' >> ~/.vilerc
bash-5.1$
Indsendt af
Eric Lindblad
kl.
07:32
![[ ]](https://raw.githubusercontent.com/nurmi-labs/nurmi-labs.github.io/main/img/vile.png)