21 December 2015

plot-gtk

System: Slackware Linux (version 14.0)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: ghc-7.8.4, glpk-4.57, gsl-2.1, OpenBLAS (0.2.11)

Installation of hmatrix-0.16.1.5 and plot-gtk-0.2.0.2.


http://ftp.gnu.org/gnu/glpk/
http://ftp.gnu.org/gnu/gsl/

Bootstrap ghc-7.8.4 (see earlier post), then upgrade the glpk
and gsl SlackBuilds respectively to versions 4.57 and 2.1.

Labs' provided SlackBuilds locate haskell packages'
documentation in /usr/doc/ghc-7.8.4/extralibs/, one
exception being gtk2hs-buildtools. The alex (lexer)
and happy (parser) packages place files outside of
/usr/lib/ghc-7.8.4 and /usr/doc/ghc-7.8.4, therefore
I have followed Värri's conventions in the authorship
of the gtk2hs-buildtools script.

SlackBuilds for colour and storable-complex are located in
the sidebar.

bash-4.2# installpkg OpenBLAS-0.2.11-i486-1_SBo.tgz \
> glpk-4.57-i486-1_SBo.tgz gsl-2.1-i486-1_SBo.tgz \
> haskell-HUnit-1.2.5.2-i486-2_SBo.tgz \
> haskell-colour-2.3.3-i486-1_SBo.tgz \
> haskell-extensible-exceptions-0.1.1.4-i486-1_SBo.tgz \
> haskell-mtl-2.1.3.1-i486-1_SBo.tgz \
> haskell-primitive-0.5.4.0-i486-1_SBo.tgz \
> haskell-random-1.1-i486-1_SBo.tgz \
> haskell-split-0.2.2-i486-1_SBo.tgz \
> haskell-storable-complex-0.2.2-i486-1_SBo.tgz \
> haskell-text-1.2.0.3-i486-1_SBo.tgz \
> haskell-utf8-string-0.3.8-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg happy-1.19.4-i486-1_SBo.tgz \
> haskell-hashable-1.2.3.1-i486-1_SBo.tgz \
> haskell-tf-random-0.4-i486-1_SBo.tgz \
> haskell-vector-0.10.12.2-i486-1_SBo.tgz

...

bash-4.2#


SlackBuilds for hashtables and hmatrix are located in the sidebar.

bash-4.2# installpkg haskell-QuickCheck-2.7.6-i486-1_SBo.tgz \
> haskell-hashtables-1.2.1.0-i486-1_SBo.tgz \
> haskell-hmatrix-0.16.1.5-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg alex-3.1.3-i486-1_SBo.tgz

...

bash-4.2#

A SlackBuild for gtk2hs-buildtools is located in the sidebar.

bash-4.2# installpkg gtk2hs-buildtools-0.13.0.5-i486-1_SBo.tgz

...

bash-4.2#

SlackBuilds for cairo, hmatrix-glpk, hmatrix-gsl, hmatrix-gsl-stats,
and hTensor are located in the sidebar.

bash-4.2# installpkg haskell-cairo-0.13.1.1-i486-1_SBo.tgz \
> haskell-hmatrix-glpk-0.4.1.0-i486-1_SBo.tgz \
> haskell-hmatrix-gsl-0.16.0.3-i486-1_SBo.tgz \
> haskell-hmatrix-gsl-stats-0.4.1.1-i486-1_SBo.tgz \
> haskell-hTensor-0.8.2-i486-1_SBo.tgz

...

bash-4.2#

SlackBuilds for glib, hstatistics, hmatrix-special, and
and hmatrix-tests are located in the sidebar.

bash-4.2# installpkg haskell-glib-0.13.2.2-i486-1_SBo.tgz \
> haskell-hstatistics-0.2.5.2-i486-1_SBo.tgz \
> haskell-hmatrix-special-0.3.0.1-i486-1_SBo.tgz \
> haskell-hmatrix-tests-0.4.1.0-i486-1_SBo.tgz

...

bash-4.2#

A SlackBuild for gio is located in the sidebar.

bash-4.2# installpkg haskell-gio-0.13.1.1-i486-1_SBo.tgz

...

bash-4.2#

A SlackBuild for pango is located in the sidebar.

bash-4.2# installpkg haskell-pango-0.13.1.1-i486-1_SBo.tgz

...

bash-4.2#

A SlackBuild for gtk is located in the sidebar.

bash-4.2# installpkg haskell-gtk-0.13.9-i486-1_SBo.tgz

...

bash-4.2#

A SlackBuild for plot is located in the sidebar.

bash-4.2# installpkg haskell-plot-0.2.3.4-i486-1_SBo.tgz

...

bash-4.2# 

A SlackBuild for plot-gtk is located in the sidebar.

bash-4.2# installpkg haskell-plot-gtk-0.2.0.2-i486-1_SBo.tgz

...

bash-4.2# exit

sh-4.2$ ghci
> Numeric.LinearAlgebra.Tests.runTests 20
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
... etc...
+++ OK, passed 100 tests.
------ some unit tests
Cases: 62  Tried: 62  Errors: 0  Failures: 0
> :quit
Leaving GHCi.
sh-4.2$ exit

10 December 2015

SciPy

System: Slackware Linux (version 14.0)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

Installation of SciPy version 0.14.1.

http://slackbuilds.org/repository/14.1/academic/
http://slackbuilds.org/repository/14.1/development/
http://slackbuilds.org/repository/14.1/libraries/
http://slackbuilds.org/repository/14.1/python/
https://pypi.python.org/pypi/scipy/0.14.1

bash-4.2# installpkg Cython-0.23.4-i486-1_SBo.tgz \
> docutils-0.11-i486-1_SBo.tgz libsodium-1.0.6-i486-1_SBo.tgz \
> OpenBLAS-0.2.11-i486-1_SBo.tgz pyparsing-2.0.3-i486-1_SBo.tgz \
> pysetuptools-18.2-i486-1_SBo.tgz pytz-2014.10-i486-1_SBo.tgz

...

bash-4.2#

A SlackBuild for zeromq is located in the sidebar.

bash-4.2# installpkg backports-ssl-match-hostname-3.4.0.2-i486-1_SBo.tgz \
> MarkupSafe-0.23-i486-1_SBo.tgz pyglet-1.2.4-i486-1_SBo.tgz \
> zeromq-4.0.7-i486-1_SBo.tgz

...

bash-4-2#

bash-4.2# installpkg Jinja2-2.7.3-i486-1_SBo.tgz \
> Pygments-2.0.2-i486-1_SBo.tgz pyzmq-14.5.0-i486-1_SBo.tgz \
> tornado-4.2.1-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg Sphinx-1.2.3-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg mock-1.0.1-i486-1_SBo.tgz nose-1.3.4-i486-1_SBo.tgz \
> numpydoc-0.5-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg six-1.10.0-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg python-dateutil-2.4.2-i486-1_SBo.tgz

...

bash-4.2#

Perhaps this code block in the numpy.SlackBuild can be commented out,
as of scipy-0.14.0 AMD and UMFPACK are no longer supported.

cat > site.cfg <<EOF
[amd]
library_dirs = /usr/lib${LIBDIRSUFFIX}
include_dirs = /usr/include/amd
amd_libs = amd

[umfpack]
library_dirs = /usr/lib${LIBDIRSUFFIX}
include_dirs = /usr/include/umfpack
umfpack_libs = umfpack
EOF

bash-4.2# installpkg numpy-1.9.1-i486-1_SBo.tgz

...

bash-4.2# python -c 'import numpy; numpy.test()' >output1 2>&1
bash-4.2# tail output1
----------------------------------------------------------------------

Ran 5588 tests in 220.939s

OK (KNOWNFAIL=5, SKIP=13)
Running unit tests for numpy
NumPy version 1.9.1
NumPy is installed in /usr/lib/python2.7/site-packages/numpy
Python version 2.7.3 (default, Jul  3 2012, 21:16:07) [GCC 4.7.1]
nose version 1.3.4
bash-4.2#

bash-4.2# installpkg matplotlib-1.4.2-i486-1_SBo.tgz \
> numexpr-2.4.6-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg ipython-3.1.0-i486-1_SBo.tgz

...

bash-4.2#

Change the version number in the scipy.SlackBuild from
0.14.0 to 0.14.1.

bash-4.2# installpkg ipython-mathjax-2.5.1-noarch-1_SBo.tgz \
> scipy-0.14.1-i486-1_SBo.tgz sympy-0.7.6-i486-1_SBo.tgz

...

bash-4.2#

bash-4.2# installpkg Bottleneck-1.0.0-i486-1_SBo.tgz

...

bash-4.2#

bash-4-2# installpkg pandas-0.17.1-i486-1_SBo.tgz

...

bash-4.2# python -c 'import scipy; scipy.test()' >output2 2>&1
bash-4.2# tail output2
Ran 16450 tests in 1295.544s

OK (KNOWNFAIL=146, SKIP=1189)
Running unit tests for scipy
NumPy version 1.9.1
NumPy is installed in /usr/lib/python2.7/site-packages/numpy
SciPy version 0.14.1
SciPy is installed in /usr/lib/python2.7/site-packages/scipy
Python version 2.7.3 (default, Jul  3 2012, 21:16:07) [GCC 4.7.1]
nose version 1.3.4
bash-4.2# exit

pandoc

System: Microsoft Windows XP Home Edition
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: HaskellPlatform-2014.2.0.0-i386-setup.exe

Installation of pandoc version 1.15.1.1.

https://hackage.haskell.org/package/pandoc

This will upgrade attoparsec in %APPDATA%\cabal sub-directories
and may break certain other user installed Haskell packages.

C:\>cabal install pandoc --dry-run -v
Reading available packages...
Choosing modular solver.
Resolving dependencies...
In order, the following would be installed:
JuicyPixels-3.2.6.2 (new package)
SHA-1.6.4.2 (new package)
base64-bytestring-1.0.0.1 (new package)
blaze-builder-0.4.0.1 (new package)
blaze-markup-0.7.0.3 (new package)
blaze-html-0.8.1.1 (new package)
byteable-0.1.1 (new package)
cereal-0.5.0.0 (new package)
cmark-0.4.1 (new package)
data-default-class-0.0.1 (new package)
cookie-0.4.1.6 (new package)
data-default-instances-base-0.0.1 (new package)
data-default-instances-containers-0.0.1 (new package)
data-default-instances-old-locale-0.0.1 (new package)
deepseq-generics-0.1.1.2 (new package)
digest-0.0.1.2 (new package)
dlist-0.7.1.2 (new package)
data-default-instances-dlist-0.0.1 (new package)
data-default-0.5.3 (new package)
extensible-exceptions-0.1.1.4 (new package)
haddock-library-1.2.1 (new package)
hourglass-0.2.9 (new package)
hslua-0.4.1 (new package)
http-types-0.9 (new package)
memory-0.10 (new package)
asn1-types-0.3.1 (new package)
asn1-encoding-0.9.3 (new package)
asn1-parse-0.9.4 (new package)
cryptonite-0.8 (new package)
mime-types-0.1.0.6 (new package)
mmorph-1.0.4 (new package)
nats-1 (new package)
network-uri-2.6.0.3 (new package)
pem-0.2.2 (new package)
regex-pcre-builtin-0.94.4.8.8.35 (new package)
scientific-0.3.4.2 (new package)
attoparsec-0.11.3.4 (latest: 0.13.0.1) (new version)
aeson-0.7.0.6 (latest: 0.10.0.0) +new-bytestring-builder (new package)
pandoc-types-1.12.4.7 (new package)
socks-0.5.4 (new package)
streaming-commons-0.1.14.2 (new package)
tagged-0.8.2 (new package)
semigroups-0.18 (new package)
tagsoup-0.13.5 (new package)
transformers-compat-0.4.0.4 +three (new package)
exceptions-0.8.0.2 (new package)
http-client-0.4.24 -network-uri (new package)
temporary-1.2.0.3 (new package)
transformers-base-0.4.4 (new package)
monad-control-1.0.0.4 (new package)
lifted-base-0.2.3.6 (new package)
enclosed-exceptions-1.0.1.1 (new package)
resourcet-1.1.6 (new package)
unix-compat-0.4.1.4 (new package)
filemanip-0.3.6.3 (new package)
utf8-string-1.0.1.1 (new package)
highlighting-kate-0.6 (new package)
void-0.7.1 (new package)
conduit-1.2.5.1 (new package)
x509-1.6.3 (new package)
x509-store-1.6.1 (new package)
x509-system-1.6.1 (new package)
x509-validation-1.6.3 (new package)
tls-1.3.3 (new package)
connection-0.2.5 (new package)
http-client-tls-0.2.2 (new package)
xml-1.3.14 (new package)
texmath-0.8.4 (new package)
yaml-0.8.15.1 (new package)
zip-archive-0.2.3.7 (new package)
pandoc-1.15.1.1 -network-uri (new package)

C:\>cabal install pandoc

...

C:\>EXIT

14 November 2015

bcc55

System: Microsoft Windows XP Home Edition
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

Installation of Perl version 5.10.1.
C:\Programmer\Borland\BCC55\Bin>TYPE bcc32.cfg
-I"C:\Programmer\Borland\BCC55\Include"
-L"C:\Programmer\Borland\BCC55\Lib"

C:\Programmer\Borland\BCC55\Bin>TYPE ilink32.cfg
-L"C:\Programmer\Borland\BCC55\Lib"

C:\Programmer\Borland\BCC55\Bin>CD \

C:\>SET PATH=%PATH%;C:\Programmer\dmake;C:\Programmer\Borland\BCC55\Bin

C:\>CD perl-5.10.1\win32

C:\perl-5.10.1\win32>

open the file makefile.mk in an editor,
correct the path to your installation
directory, uncomment BORLAND &
comment out GCC, correct the path
to your compiler home

INST_DRV        *= C:\Programmer
INST_TOP        *= $(INST_DRV)\perl

# Borland 5.02 or later
CCTYPE          *= BORLAND
# MinGW with gcc-2.95.2 or later
#CCTYPE         *= GCC

.IF "$(CCTYPE)" == "BORLAND"
CCHOME          *= C:\Programmer\Borland\BCC55
.ELIF "$(CCTYPE)" == "GCC"
CCHOME          *= C:\MinGW
.ELSE
CCHOME          *= $(MSVCDIR)
.ENDIF
CCINCDIR        *= $(CCHOME)\Include
CCLIBDIR        *= $(CCHOME)\Lib                                           

C:\perl-5.10.1\win32>dmake.exe

...

C:\perl-5.10.1\win32>dmake.exe test

...

C:\perl-5.10.1\win32>dmake.exe install

...

C:\perl-5.10.1\win32>EXIT

C:\DOCUME~1\UserName>TYPE perl.bat
@ECHO OFF
ECHO Perl v5.10.1
SET PATH=%PATH%;C:\Programmer\Borland\BCC55\Bin;C:\Programmer\perl\bin

C:\DOCUME~1\UserName>perl.bat
Perl v5.10.1

C:\DOCUME~1\UserName>CD Skrivebord

C:\DOCUME~1\UserName\Skrivebord>perl.exe
print "Hello, World!\n";
^D
Hello, World!

C:\DOCUME~1\UserName\Skrivebord>EXIT

Perl versions 5.12.5 and 5.14.4 shipped with \win32\config.bc files,
but these versions fail to compile due to threading issues.

Tcl/Tk shipped for a while with "experimental" makefile.bc files.
I have no comment on these at this time.

Try Igor Pavlov's 7-Zip (32-bit x86) for extraction.

CPAN setup

http://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.11/
MSYS-1.0.11.exe

http://invisible-island.net/lynx/
Win32 installer lynx (color-style)

http://www.paehl.com/open_source/
From the sidebar click on the CURL [current release] button.
Download WITH SUPPORT SSL

Extract curl_xxx_x_ssl.zip and move curl.exe
into C:\MSYS\bin.

C:\DOCUME~1\UserName\Dokumenter\Downloads>DIR
 Disken i drev C har ikke noget navn.
 Diskens serienummer er C804-10A1

 Indhold af C:\DOCUME~1\UserName\Dokumenter\Downloads

27-09-2016  22:19    <DIR>          .
27-09-2016  22:19    <DIR>          ..
27-09-2016  22:19               771 curl.bat
27-09-2016  22:17               110 seven.bat
               2 fil(er)              881 byte
               2 mappe(r)  61.970.788.352 byte ledig

C:\DOCUME~1\UserName\Dokumenter\Downloads>TYPE curl.bat
@ECHO OFF

SETLOCAL
SET PATH=C:\MSYS\bin;%PATH%

curl.exe -O^
 http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-3.71.tar.gz -O^
 http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz -O^
 http://www.cpan.org/authors/id/E/ET/ETHER/URI-1.71.tar.gz -O^
 http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-0.46.tar.gz -O^
 http://www.cpan.org/authors/id/I/IN/INGY/Test-Base-0.88.tar.gz -O^
 http://www.cpan.org/authors/id/I/IN/INGY/Test-YAML-1.06.tar.gz -O^
 http://www.cpan.org/authors/id/I/IN/INGY/YAML-1.15.tar.gz -O^
 http://www.cpan.org/authors/id/N/NE/NEILB/Text-Diff-1.44.tar.gz -O^
 http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tagset-3.20.tar.gz -O^
 http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-1.1903.tar.gz

ENDLOCAL
C:\DOCUME~1\UserName\Dokumenter\Downloads>TYPE seven.bat
@ECHO OFF

SETLOCAL
SET PATH=%ProgramFiles%\7-Zip;%PATH%

7z.exe e *.tar.gz && 7z.exe x *.tar

ENDLOCAL
C:\DOCUME~1\UserName\Dokumenter\Downloads>

C:\DOCUME~1\UserName\Dokumenter\Downloads>curl.bat
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 90368  100 90368    0     0  33833      0  0:00:02  0:00:02 --:--:-- 33833
100  263k  100  263k    0     0  56889      0  0:00:04  0:00:04 --:--:-- 56979
100   97k  100   97k    0     0  47845      0  0:00:02  0:00:02 --:--:-- 46350
100 33447  100 33447    0     0  31945      0  0:00:01  0:00:01 --:--:-- 73834
100 52032  100 52032    0     0  69376      0 --:--:-- --:--:-- --:--:-- 70888
100 11470  100 11470    0     0  38750      0 --:--:-- --:--:-- --:--:--  162k
100 80702  100 80702    0     0  61463      0  0:00:01  0:00:01 --:--:--  137k
100 29535  100 29535    0     0   5040      0  0:00:05  0:00:05 --:--:--  7685
100  8150  100  8150    0     0   4010      0  0:00:02  0:00:02 --:--:--  8021
100 34174  100 34174    0     0   1718      0  0:00:19  0:00:19 --:--:--  2683

C:\DOCUME~1\UserName\Dokumenter\Downloads>seven.bat

...

C:\DOCUME~1\UserName\Dokumenter\Downloads>SET PATH=%PATH%;C:\Programmer\dmake

C:\DOCUME~1\UserName\Dokumenter\Downloads>PUSHD %USERPROFILE% && perl.bat
Perl v5.10.1

C:\DOCUME~1\UserName>POPD
C:\DOCUME~1\UserName\Dokumenter\Downloads>ECHO %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32Wbem;C:\Programmer\dmake;
C:\Programmer\Borland\BCC55\Bin;C:\Programmer\perl\bin

C:\DOCUME~1\UserName\Dokumenter\Downloads>

Installing these modules in the order given should suffice for enabling cpan.bat for use of LWP
and YAML: Algorithm-Diff-1.1903, Spiffy-0.46, Text-Diff-1.44, Test-Base-0.88, Test-YAML-1.06,
YAML-1.15, URI-1.71, HTML-Tagset-3.20, HTML-Parser-3.71, libwww-perl-5.837.

CD into to each extracted directory (in the given order) and run the following commands:

perl.exe Makefile.PL
dmake.exe
dmake.exe test
dmake.exe install

Installing the modules manually will avoid for the novice user some of the questions arising
from cpan.bat installation. In alternative, a FOR loop in a batch file with redirection to save
the output could be utilised.

Here's my Config.pm file, which - if one moves an uninitilsed \CPAN\Config.pm file
to \CPAN\Config.pm.bak - one can copy this one into that directory, modifiying the
paths to your executables - if they are in a different location - and change the urllist
value according to the location of your local cpan mirror.

C:\>TYPE Programmer\perl\lib\CPAN\Config.pm

# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# /.cpan/CPAN/MyConfig.pm.

$CPAN::Config = {
  'applypatch' => q[],
  'auto_commit' => q[0],
  'build_cache' => q[100],
  'build_dir' => q[C:\\Programmer\\perl\\.cpan\\build],
  'build_dir_reuse' => q[0],
  'build_requires_install_policy' => q[ask/yes],
  'bzip2' => q[C:\\MSYS\\bin\\bzip2.exe],
  'cache_metadata' => q[1],
  'check_sigs' => q[0],
  'commandnumber_in_prompt' => q[1],
  'connect_to_internet_ok' => q[1],
  'cpan_home' => q[C:\\Programmer\\perl\\.cpan],
  'curl' => q[C:\\MSYS\\bin\\curl.exe],
  'ftp' => q[C:\\WINDOWS\\system32\\ftp.exe],
  'ftp_passive' => q[1],
  'ftp_proxy' => q[],
  'getcwd' => q[cwd],
  'gpg' => q[],
  'gzip' => q[C:\\MSYS\\bin\\gzip.exe],
  'halt_on_failure' => q[0],
  'histfile' => q[C:\\Programmer\\perl\\.cpan\\histfile],
  'histsize' => q[100],
  'http_proxy' => q[],
  'inactivity_timeout' => q[0],
  'index_expire' => q[1],
  'inhibit_startup_message' => q[0],
  'keep_source_where' => q[C:\\Programmer\\perl\\.cpan\\sources],
  'load_module_verbosity' => q[v],
  'lynx' => q[C:\\Programmer\\Lynx\\lynx.exe],
  'make' => q[C:\\Programmer\\dmake\\dmake.exe],
  'make_arg' => q[],
  'make_install_arg' => q[],
  'make_install_make_command' => q[C:\\Programmer\\dmake\\dmake.exe],
  'makepl_arg' => q[],
  'mbuild_arg' => q[],
  'mbuild_install_arg' => q[],
  'mbuildpl_arg' => q[],
  'ncftp' => q[],
  'ncftpget' => q[],
  'no_proxy' => q[],
  'pager' => q[C:\\MSYS\\bin\\less.exe],
  'patch' => q[C:\\MSYS\\bin\\patch.exe],
  'perl5lib_verbosity' => q[v],
  'prefer_installer' => q[MB],
  'prefs_dir' => q[C:\\Programmer\\perl\\.cpan\\prefs],
  'prerequisites_policy' => q[ask],
  'scan_cache' => q[atstart],
  'shell' => q[C:\\WINDOWS\\system32\\cmd.exe],
  'show_unparsable_versions' => q[0],
  'show_upload_date' => q[0],
  'show_zero_versions' => q[0],
  'tar' => q[C:\\MSYS\\bin\\tar.exe],
  'tar_verbosity' => q[v],
  'term_is_latin' => q[1],
  'term_ornaments' => q[1],
  'test_report' => q[0],
  'trust_test_report_history' => q[0],
  'unzip' => q[],
  'urllist' => [q[http://www.cpan.dk/]],
  'use_sqlite' => q[0],
  'wget' => q[],
  'yaml_load_code' => q[0],
  'yaml_module' => q[YAML],
};
1;
__END__

C:\>EXIT

NB: Some perl modules calling external C subroutines (xsubs) may
require other C header files than those accompanying this compiler.

After the above listed modules are installed test the installation,
the selected module chosen from the examples in the cpan.bat
file, and the dependencies' version numbers satisfied by those
modules accompanying the perl v5.10.1 installation:

C:\>cpan.bat BDFOY/Netscape-Bookmarks-1.95.tar.gz
CPAN: LWP::UserAgent loaded ok (v5.835)
CPAN: Time::HiRes loaded ok (v1.9719)
Fetching with LWP:
  http://www.cpan.dk/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v1.15)
Going to read 'C:\Programmer\perl\.cpan\sources\authors\01mailrc.txt.gz'
CPAN: Compress::Zlib loaded ok (v2.02)
............................................................................DONE

Fetching with LWP:
  http://www.cpan.dk/modules/02packages.details.txt.gz
Going to read 'C:\Programmer\perl\.cpan\sources\modules\02packages.details.txt.g
z'
  Database was generated on Sun, 25 Sep 2016 12:41:02 GMT
.............
  New CPAN.pm version (v2.14) available.
  [Currently running version is v1.9402]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


...............................................................DONE
Fetching with LWP:
  http://www.cpan.dk/modules/03modlist.data.gz
Going to read 'C:\Programmer\perl\.cpan\sources\modules\03modlist.data.gz'
DONE
Going to write C:\Programmer\perl\.cpan\Metadata
Running make for B/BD/BDFOY/Netscape-Bookmarks-1.95.tar.gz
Fetching with LWP:
  http://www.cpan.dk/authors/id/B/BD/BDFOY/Netscape-Bookmarks-1.95.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
Fetching with LWP:
  http://www.cpan.dk/authors/id/B/BD/BDFOY/CHECKSUMS
Checksum for C:\Programmer\perl\.cpan\sources\authors\id\B\BD\BDFOY\Netscape-Boo
kmarks-1.95.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.52)
Netscape-Bookmarks-1.95/
Netscape-Bookmarks-1.95/bookmark_files/
Netscape-Bookmarks-1.95/bookmark_files/Bookmarks.html
Netscape-Bookmarks-1.95/bookmark_files/Bookmarks4.7.html
Netscape-Bookmarks-1.95/bookmark_files/Favorites.html
Netscape-Bookmarks-1.95/bookmark_files/iCab.Hotlist.html
Netscape-Bookmarks-1.95/Changes
Netscape-Bookmarks-1.95/examples/
Netscape-Bookmarks-1.95/examples/README
Netscape-Bookmarks-1.95/lib/
Netscape-Bookmarks-1.95/lib/Alias.pm
Netscape-Bookmarks-1.95/lib/Bookmarks.pm
Netscape-Bookmarks-1.95/lib/Category.pm
Netscape-Bookmarks-1.95/lib/Link.pm
Netscape-Bookmarks-1.95/lib/Separator.pm
Netscape-Bookmarks-1.95/LICENSE
Netscape-Bookmarks-1.95/Makefile.PL
Netscape-Bookmarks-1.95/MANIFEST
Netscape-Bookmarks-1.95/MANIFEST.SKIP
Netscape-Bookmarks-1.95/META.yml
Netscape-Bookmarks-1.95/README
Netscape-Bookmarks-1.95/t/
Netscape-Bookmarks-1.95/t/alias.t
Netscape-Bookmarks-1.95/t/bookmarks.t
Netscape-Bookmarks-1.95/t/category.t
Netscape-Bookmarks-1.95/t/link.t
Netscape-Bookmarks-1.95/t/load.t
Netscape-Bookmarks-1.95/t/pod.t
Netscape-Bookmarks-1.95/t/pod_coverage.t
Netscape-Bookmarks-1.95/t/prereq.t
Netscape-Bookmarks-1.95/t/separator.t
Netscape-Bookmarks-1.95/t/test_manifest
CPAN: File::Temp loaded ok (v0.22)

  CPAN.pm: Going to build B/BD/BDFOY/Netscape-Bookmarks-1.95.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Netscape::Bookmarks
cp lib/Link.pm blib\lib\Netscape/Bookmarks/Link.pm
cp lib/Alias.pm blib\lib\Netscape/Bookmarks/Alias.pm
cp lib/Separator.pm blib\lib\Netscape/Bookmarks/Separator.pm
cp lib/Bookmarks.pm blib\lib\Netscape/Bookmarks.pm
cp lib/Category.pm blib\lib\Netscape/Bookmarks/Category.pm
  BDFOY/Netscape-Bookmarks-1.95.tar.gz
  C:\Programmer\dmake\dmake.exe -- OK
Running make test
C:\Programmer\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib\lib', 'blib\arch')" t/*.t
t/alias.t ......... ok
t/bookmarks.t ..... ok
t/category.t ...... ok
t/link.t .......... ok
t/load.t .......... ok
t/pod.t ........... skipped: Test::Pod 1.00 required for testing POD
t/pod_coverage.t .. skipped: Test::Pod::Coverage required for testing POD
t/prereq.t ........ skipped: Test::Prereq required to test dependencies
t/separator.t ..... ok
All tests successful.
Files=9, Tests=18,  2 wallclock secs ( 0.23 usr +  0.12 sys =  0.36 CPU)
Result: PASS
  BDFOY/Netscape-Bookmarks-1.95.tar.gz
  C:\Programmer\dmake\dmake.exe test -- OK
Running make install
Prepending C:\Programmer\perl\.cpan\build\Netscape-Bookmarks-1.95-SKIG00/blib/ar
ch C:\Programmer\perl\.cpan\build\Netscape-Bookmarks-1.95-SKIG00/blib/lib to PER
L5LIB for 'install'
Installing C:\Programmer\perl\site\lib\Netscape\Bookmarks.pm
Installing C:\Programmer\perl\site\lib\Netscape\Bookmarks\Alias.pm
Installing C:\Programmer\perl\site\lib\Netscape\Bookmarks\Category.pm
Installing C:\Programmer\perl\site\lib\Netscape\Bookmarks\Link.pm
Installing C:\Programmer\perl\site\lib\Netscape\Bookmarks\Separator.pm
Appending installation info to C:\Programmer\perl\lib/perllocal.pod
  BDFOY/Netscape-Bookmarks-1.95.tar.gz
  C:\Programmer\dmake\dmake.exe install  -- OK

C:\>EXIT

Last updated: 2016-09-25

13 November 2015

bootstrapping ghc

System: Slackware Linux (version 14.0)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: gmp-5.0.5

Mikko Värri's build script took about 5 hours to run.

http://slackbuilds.org/repository/14.1/haskell/ghc/


ghc-7.8.4-i386-unknown-linux-deb7.tar.xz


bash-4.2# ./ghc.SlackBuild

...

bash-4.2# installpkg ghc-7.8.4-i486-1_SBo.tgz
Verifying package ghc-7.8.4-i486-1_SBo.tgz.
Installing package ghc-7.8.4-i486-1_SBo.tgz:
PACKAGE DESCRIPTION:
# ghc (The Glasgow Haskell Compiler)
#
# GHC is a state-of-the-art, open source, compiler and interactive
# environment for the functional language Haskell.
# This is a complete build, including interactive system, profiling
# libraries and documentation.
#
# Homepage: http://haskell.org/ghc/
#
Executing install script for ghc-7.8.4-i486-1_SBo.tgz.
Package ghc-7.8.4-i486-1_SBo.tgz installed.

bash-4.2# ghci
GHCi, version 7.8.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :quit
Leaving GHCi.

bash-4.2#

Installation of the test-framework and statistics packages.

http://www.slackbuilds.org/repository/14.1/haskell/
https://hackage.haskell.org/package/test-framework
https://hackage.haskell.org/package/statistics

I prefer the documenatation for packages to be centrally located,
so I modify the SlackBuild scripts where available as follows:

GHC_VERSION=$(ghc --numeric-version)

+ DOCDIR=/usr/doc/ghc-${GHC_VERSION}/extralibs

-  --docdir=/usr/doc/$PRGNAM-$VERSION
+  --docdir=${DOCDIR}/$SRCNAM-$VERSION

- mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
- cp -a LICENSE  $PKG/usr/doc/$PRGNAM-$VERSION
- cat $CWD/$PRGNAM.SlackBuild > \
- $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

+ mkdir -p $PKG/$DOCDIR/$SRCNAM-$VERSION
+ cp -a LICENSE $PKG/$DOCDIR/$SRCNAM-$VERSION
+ cat $CWD/$PRGNAM.SlackBuild > \
+ $PKG/$DOCDIR/$SRCNAM-$VERSION/$PRGNAM.SlackBuild

SlackBuilds for abstract-par, erf, and ieee754, are located in the sidebar;
follow the template for writing a slack-desc file, or use the one accompany-
ing the SlackBuild. 

bash-4.2# installpkg haskell-HUnit-1.2.5.2-i486-2_SBo.tgz \
> haskell-abstract-par-0.3.3-i486-1_SBo.tgz \
> haskell-ansi-terminal-0.6.2.1-i486-1_SBo.tgz \
> haskell-cereal-0.4.1.1-i486-1_SBo.tgz \
> haskell-dlist-0.7.1-i486-1_SBo.tgz \
> haskell-erf-2.0.0.0-i486-1_SBo.tgz \
> haskell-extensible-exceptions-0.1.1.4-i486-1_SBo.tgz \
> haskell-hostname-1.0-i486-2_SBo.tgz \
> haskell-ieee754-0.7.6-i486-1_SBo.tgz \
> haskell-mtl-2.1.3.1-i486-1_SBo.tgz \
> haskell-primitive-0.5.4.0-i486-1_SBo.tgz \
> haskell-random-1.1-i486-1_SBo.tgz \
> haskell-syb-0.4.4-i486-1_SBo.tgz \
> haskell-text-1.2.0.3-i486-1_SBo.tgz

...

bash-4.2# 

SlackBuilds for atomic-primops and libxml are located in the sidebar.

bash-4.2# installpkg haskell-ansi-wl-pprint-0.6.7.1-i486-1_SBo.tgz \
> haskell-atomic-primops-0.8.0.2-i486-1_SBo.tgz \
> haskell-hashable-1.2.3.1-i486-1_SBo.tgz \
> haskell-libxml-0.1.1-i486-1_SBo.tgz \
> haskell-regex-base-0.93.2-i486-3_SBo.tgz \
> haskell-tf-random-0.4-i486-1_SBo.tgz \
> haskell-vector-0.10.12.2-i486-1_SBo.tgz \
> haskell-xml-1.3.13-i486-1_SBo.tgz

...

bash-4.2# 

and vector-th-unbox, are located in the sidebar.

bash-4.2# installpkg haskell-mwc-random-0.13.3.2-i486-1_SBo.tgz \
> haskell-QuickCheck-2.7.6-i486-1_SBo.tgz \
> haskell-regex-posix-0.95.2-i486-1_SBo.tgz \
> haskell-scientific-0.3.3.4-i486-1_SBo.tgz \
> haskell-unordered-containers-0.2.5.1-i486-1_SBo.tgz \
> haskell-vector-binary-instances-0.2.1.0-i486-1_SBo.tgz \
> haskell-vector-th-unbox-0.2.1.3-i486-1_SBo.tgz

...

bash-4.2# 

SlackBuilds for abstract-deque, math-functions, and
vector-algorithms, are located in the sidebar.

bash-4.2# installpkg haskell-abstract-deque-0.3-i486-1_SBo.tgz \
> haskell-math-functions-0.1.5.2-i486-1_SBo.tgz \
> haskell-parallel-3.2.0.6-i486-1_SBo.tgz \
> haskell-test-framework-0.8.1.0-i486-1_SBo.tgz \
> haskell-vector-algorithms-0.7.0.1-i486-1_SBo.tgz

...

bash-4.2# 

SlackBuilds for chaselev-deque and monad-par-extras are located in the sidebar.

bash-4.2# installpkg haskell-attoparsec-0.12.1.2-i486-1_SBo.tgz \
> haskell-chaselev-deque-0.5.0.5-i486-1_SBo.tgz \
> haskell-monad-par-extras-0.3.3-i486-1_SBo.tgz \
> haskell-test-framework-hunit-0.3.0.1-i486-1_SBo.tgz \
> haskell-test-framework-quickcheck2-0.3.0.3-i486-1_SBo.tgz

...

bash-4.2# 

SlackBuilds for abstract-deque-tests and monad-par are located in the sidebar.

bash-4.2# installpkg haskell-abstract-deque-tests-0.3-i486-1_SBo.tgz \
> haskell-aeson-0.8.0.2-i486-1_SBo.tgz \
> haskell-monad-par-0.3.4.7-i486-1_SBo.tgz

...

bash-4.2# 

A SlackBuild for statistics is located in the sidebar.

bash-4.2# installpkg haskell-statistics-0.13.2.3-i486-1_SBo.tgz

...

bash-4.2# 

PQ

System: Plan 9
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

This entry will look at the pq client for an 'implicit relational' database server.

See the man pages.

25 October 2015

Kirara

This entry will look at the indexing software written with Plan 9's rc and dialect of ANSI C, and implemented using unicode encoding.

http://plan9.aichi-u.ac.jp/kirara/ (Japanese webpage)

See the QUICK GUIDE.

Namazu

System: Microsoft Windows XP Home Edition
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

Deps: mingw32-base, msys-base, mingw-developer-kit,
msys-groff (bin), msys-man (bin), msys-unzip (bin),
msys-wget (bin), msys-perl (bin), File::MMagic (CPAN),
lynx-cs-setup.exe, tcl82.exe, namazu-2.0.21.tar.gz;
and (optionally) netscape-navigator-9.0.0.6.exe.

$ tar xvf namazu-2.0.21.tar.gz

...

$ cd namazu-2.0.21
$ ./configure \
> --prefix=/usr \
> --sysconfdir=/mingw/etc

...

$ make

...

$ make install

...

$ cd tknamazu
$ ./configure --prefix=c:/mingw/msys/1.0 \
> --bindir=c:/mingw/msys/1.0/bin \
> --sbindir=c:/mingw/msys/1.0/sbin \
> --libexecdir=c:/mingw/msys/1.0/libexec \
> --datadir=c:/mingw/msys/1.0/share \
> --sysconfdir=c:/mingw/etc \
> --localstatedir=c:/mingw/msys/1.0/var \
> --libdir=c:/mingw/msys/1.0/lib \
> --includedir=c:/mingw/msys/1.0/include \
> --infodir=c:/mingw/msys/1.0/info \
> --mandir=c:/mingw/msys/1.0/man \
> --with-namazu=c:/mingw/msys/1.0/bin/namazu.exe \
> --with-mknmz=c:/mingw/msys/1.0/bin/mknmz \
> --with-indexdir=c:/mingw/msys/1.0/var/namazu/index \
> --with-wish=c:/programmer/tcl/bin/wish82.exe \
> --with-lynx=c:/programmer/lynx/lynx.exe \
> --with-groff=c:/mingw/msys/1.0/bin/groff.exe \
> --with-info=c:/mingw/msys/1.0/bin/info.exe \
> --with-zcat=c:/mingw/msys/1.0/bin/zcat.exe \
> --with-netscape='"c:/programmer/netscape/navigator 9/navigator.exe"'

...

$ make

...

$ make install

...

$ exit

In tknamazurc correct the paths for INDEXES1, INDEXES2, and BOOKMARKS1.

hogehoge is Japanese for foobar

Borland Delphi 5 and 7 version (Japanese only) frontends were written for namazu-092 and -093beta by Seiji Yamashita. [srchs092.exe, srchs092-nb.exe, srchs092src.lzh, srchs093beta-0421.lzh]

http://www.syam.net/library/search-s/index.html

Anders Hejlsberg, a Danish software engineer, was the chief architect of the Delphi language, and currently is a lead architect at Microsoft Corp. for the C# language.

Awk

I'll create a delimited file from an agriculture sector* document as a sample for this entry.

This entry will look at awk, a pattern-directed scanning and processing language.

The AWK Programming Language
B.W. Kernighan, P.J. Weinberger,
A.V. Aho, © 1988 Bell Telephone
Laboratories, Incorporated

UNIX Awk: http://www.cs.princeton.edu/~bwk/btl.mirror/index.html
GNU Awk: https://www.gnu.org/software/gawk/manual/
Plan 9: http://man.cat-v.org/plan_9/1/awk

Navn: Institut Français des Productions Cidricoles
Adresse: La Rangée Chesnel, 61500 Sées, Frankrig
Telefon: +33 2 33 27 56 70
Web adresse: http://www.ifpc.eu/

* Varietes_cidricoles.pdf (POMME A CIDRE)

pdftotext version 0.20.2
GNU sed version 4.2.1 (has the -i argument)

sh-4.2$ pdftotext -f 6 -l 6 -layout Varietes_cidricoles.pdf
sh-4.2$ sed -i '12, 16d; s/3 DOUCE/ DOUCE/g; s/2 DOUCE/ DOUCE /g' Varietes_cidricoles.txt
sh-4.2$ head -n 67 Varietes_cidricoles.txt | tail -n +11 \
> | cut -f 41- -d " " > output
sh-4.2$

The resulting file named 'output' is a three column width file, modify the file so
it is single column as appears at the base of this Internet log (blog) post.

Add delimiters to the records excepting the uppercase and blank lines.

sh-4.2$ sed -i 's/ (/:(/g; s/) /):/g; s/[0-9]$/&::/g; s/[a-z]$/&::::/g' output
sh-4.2$

Add data to the fourth fields excepting the uppercase and blank lines.

sh-4.2$ sed -i '2, 15s/::$/:amere:/; 18, 38s/::$/:douce amere:/; 41, 50s/::$/:douce:/' output
sh-4.2$ sed -i '53, 60s/::$/:acidulee:/; 63s/::$/:aigre amere:/; 66, 82s/::$/:aigre:/' output
sh-4.2$

Obtain the names of the registered cultivars.

sh-4.2$ pdftotext Varietes_cidricoles.pdf - | grep ® | sort -u
Chanteline®
Chanteline® 1
Cidor®
Judaine®
Judaine® 1
Judeline®
Judeline® 1
Juliana®
sh-4.2$

Determine if these are also present in our text file.

sh-4.2$ for cultivar in Chanteline Cidor Judaine Judeline Juliana
> do
> grep $cultivar output
> done
Cidor:(4.02 / 25.9):1055:amere:
Judaine:(0.75 / 100.4):1053:aigre:
Judeline:(0.67 / 75.42):1050:acidulee:
Juliana:(1.78 / 154):1061:aigre:
sh-4.2$

Then enter the registered mark as unicode chars in the appropriate records.

sh-4.2$ cat script
4s/$/&®/
55s/$/&®/
72s/$/&®/
75s/$/&®/
sh-4.2$ file script
script: UTF-8 Unicode text
sh-4.2$ sed -i -f script output
sh-4.2$

Delete the uppercase and blank lines.

sh-4.2$ sed -i '1d; 16, 17d; 39, 40d; 51, 52d; 61, 62d; 64, 65d' output
sh-4.2$

Sort the file alphabetically and redirect stdout to a new file.

sh-4.2$ export LC_ALL=fr_FR.UTF-8
sh-4.2$ sort output > varietes_cidricoles
sh-4.2$ exit

The resulting file which will be utilised for exercises with awk
is located in the sidebar.

sh-4.2$ awk -F: '/aigre amere/' varietes_cidricoles
Cazo Jaune:(3.28 / 196.2):1054:aigre amere:
sh-4.2$

sh-4.2$ awk -F: 'NR == 18 { print $1$5 " is a bitter apple." }' varietes_cidricoles
Cidor® is a bitter apple.
sh-4.2$

sh-4.2$ awk -F: 'NR == 23 { gsub("oe", "oë", $1); print }' varietes_cidricoles
Douce Coëtligné (1.83 / 29.09) 1051 douce
sh-4.2$

sh-4.2$ awk -F: 'NR==39 || NR==58 { gsub(/^\(/, "", $2); gsub(/\)$/, "", $2); split($2,a," / "); \
> print $1$5 " has " a[1] " g/l polyphenols and " a[2] " meq/l acidity." }' varietes_cidricoles
Judeline® has 0.67 g/l polyphenols and 75.42 meq/l acidity.
Petit Jaune has 1.2 g/l polyphenols and 110.59 meq/l acidity.
sh-4.2$

Create a CRLF .csv file for use in an MS® spreadsheet.

sh-4.2$ tr ':' ',' < varietes_cidricoles | awk '{ printf "%s\r\n",  $0 }' > varietes_cidricoles.csv
sh-4.2$

One can manually delete in notepad.exe the empty line at the end of the .csv file.

sh-4.2$ cat output
AMERE
C'Huero Briz (4.67 / 30.65) 1056
Chevalier Jaune (3.79 / 33.09) 1053
Cidor (4.02 / 25.9) 1055
Domaines (3.6 / 31.81) 1067
Doux Joseph (3.61 / 31.04) 1058
Fréquin Rouge Petit (5.06 / 36.35) 1065
Jeanne Renard (4.23 / 25.35) 1065
Kermerrien (4.32 / 22.17) 1062
Marie Ménard (4.82 / 32.78) 1061
Marin Onfroy (3.25 / 25.5) 1059
Meriennet
Mettais (3.78 / 25.61) 1063
Petit Amer (4.43 / 29.65) 1055
Tardive de la Sarthe (3.68 / 29.51) 1059

DOUCE AMERE
Antoinette (2.73 / 36.79) 1050
Argile Rouge Bruyère
Bedan (2.27 / 22.04) 1056
Binet Blanc (2.52 / 26.5) 1060
Binet Rouge (2.41 / 26.54) 1063
Binet Violet (2.62 / 24.93) 1050
Bisquet (2.12 / 31.31) 1045
C'Huero Ru
Cartigny (2.21 / 31.26) 1051
Clos Renaux (2.2 / 36.91) 1052
Clozette Douce (2.32 / 33.25) 1054
Douce Moen (2.43 / 31.85) 1061
Doux Lozon (2.13 / 21.21) 1053
Gros Bois (2.86 / 42.15) 1050
Gros Oeillet
Moulin à Vent (2.7 / 38.96) 1061
Muscadet de Dieppe (2.54 / 30.95) 1055
Noël des Champs (2.33 / 22.6) 1050
Omont (2.2 / 29) 1063
Peau de Chien (2.95 / 32.25) 1065
Saint Martin (2.27 / 30.09) 1055

DOUCE
Belle Fille de la Manche
Douce Coetligné (1.83 / 29.09) 1051
Doux au Gober
Doux Evêque Jaune (1.96 / 24.25) 1052
Doux Normandie (1.42 / 24.56) 1065
Doux Veret de Carrouges (1.77 / 24.62) 1055
Muscadet Petit de l'Orne (1.9 / 24.23) 1061
Queue Torte
Rouge Duret (1.65 / 25.3) 1049
Rousse de la Sarthe (1.64 / 25.22) 1056

ACIDULEE
Blanchet (1.28 / 71.4) 1050
Guillevic (1.35 / 86.29) 1059
Judeline (0.67 / 75.42) 1050
Locard Blanc
Pomme de Moi
Rouget de Dol Gros
Sebin Blanc (1.44 / 81.2) 1051
Tesnière (1.56 / 83.97) 1055

AIGRE AMERE
Cazo Jaune (3.28 / 196.2) 1054

AIGRE
Armagnac (1.7 / 121.21) 1065
Avrolles (0.87 / 178.99) 1055
Blanc Sur (1.23 / 99.25) 1055
Diot Roux (1.85 / 146.48) 1052
Gesnot (1.11 / 97) 1049
Jaune de Vitré (1.61 / 132.44) 1060
Judaine (0.75 / 100.4) 1053
Judin (0.89 / 98.24) 1060
Judor (0.73 / 100.63) 1052
Juliana (1.78 / 154) 1061
Jurella (0.61 / 126.7) 1053
Locard Vert
Petit Jaune (1.2 / 110.59) 1055
Pomme de Bouet
Rambault (1.4 / 95.76) 1061
Rénao
René Martin (1.38 / 113.31) 1053
sh-4.2$

regexp

This entry will look at Plan 9 Basic REs (similiar to those found in ed), at P9's Extended REs (as in egrep, before egrep got complicated), and at Tcl8.6.x series RE notation based on Henry Spencer's package with some (not quite all) of the Perl 5 extensions.

System: Plan 9, Linux, MS XP Home Edition
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: plan9port (Linux), 9pm or pf9 (MS)

I've not yet written the code to enable plan9port to run under
Microsoft Corporation's SUA/SFU Interix <versions>.

http://plan9.bell-labs.com/sources/extra/9pm051031.zip

my setting in
Kontrolpanel | System | Avanceret | Miljøvariabler | Brugervariabler
Control Panel | System | Advanced | Environment Variables | User Variables

font C:/Programmer/9pm/font/lucm.9.font

https://bitbucket.org/mtrS/pf9/downloads/

8b0f391be5a4.zip

Conor Williams at the University of Limerick (in 2003)
ported Tcl 8.3.5 to Plan 9.

Ævar Arnfjörð Bjarmason from Iceland (in 2007) wrote
re-engine-Plan9 (CPAN), requiring Perl 5.10 or newer.

Slackware-14.0
perl v5.16.1
(exited on error on Plan9.xs:158:5)

I don't expect some entries on this blog will be filled in on
a short time frame. In the interim the reader may refer to:

http://man.cat-v.org/plan_9_2nd_ed/2/regexp
http://man.cat-v.org/plan_9_2nd_ed/6/regexp

http://man.cat-v.org/p9p/3/regexp
http://man.cat-v.org/p9p/7/regexp

Brent Welch has kindly made available some chapters of his book
"Practical Programming in Tcl and Tk" (Prentice Hall) including
Part II, Chapter 11. Regular Expressions (circa Tcl/Tk 8.0)

http://www.beedub.com/book/2nd/booktoc.mif.html

Most introductory Perl books contain a chapter on regexes.

perlrequick  - Perl regular expressions quick start
perlretut - Perl regular expressions tutorial

Regular Expression Matching Can Be Simple And Fast
(but is slow in Java, Perl, PHP, Python, Ruby, ...)
https://swtch.com/~rsc/regexp/regexp1.html
Discussion on reddit and perlmonks and LtU.

Unix Software from Plan 9
https://swtch.com/plan9port/unix/
libutf, libfmt, libbio, libregexp9. mk,
mk-with-libs

ed

This entry will look at ed, the venerable text editor.

Troff

This entry will look at troff, a text-formatting program.

18 October 2015

Xapian

Awaiting network testing on Windows 7 Ultimate, in the interim the reader may refer to:
http://lists.xapian.org/pipermail/xapian-discuss/2015-October/009265.html

System: Slackware Linux (version 14.0)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

xapian-core-1.2.21.tar.xz

$ make check
./apitest backend none: All 58 tests passed.
./apitest backend inmemory: All 226 tests passed, 8 skipped.
./apitest backend brass: All 302 tests passed, 2 skipped.
./apitest backend chert: All 302 tests passed, 2 skipped.
./apitest backend flint: All 298 tests passed, 2 skipped.
./apitest backend multi_brass: All 157 tests passed, 5 skipped.
./apitest backend multi_chert: All 157 tests passed, 5 skipped.
./apitest backend multi_flint: All 155 tests passed, 5 skipped.
./apitest backend remoteprog_brass: All 225 tests passed, 3 skipped.
./apitest backend remotetcp_brass: All 225 tests passed, 3 skipped.
./apitest backend remoteprog_chert: All 225 tests passed, 3 skipped.
./apitest backend remotetcp_chert: All 225 tests passed, 3 skipped.
./apitest backend remoteprog_flint: All 219 tests passed, 2 skipped.
./apitest backend remotetcp_flint: All 219 tests passed, 2 skipped.
./apitest total: All 2993 tests passed, 45 skipped.
PASS: apitest
PASS: internaltest
PASS: stemtest (stemdict tests skipped)
PASS: queryparsertest
PASS: termgentest
PASS: unittest
==================
All 6 tests passed
==================

api collapsekey2 tests skipped on all backends

adddoc5, adddoc6, metadata5, nomoredocids1, termtoolong1,
and uuid1 skipped on inmemory

eliteset1, 2, 4, and 5, skipped on multi_brass, multi_chert,
and multi_flint

positfromtermit1 skipped on remoteprog_brass, remotetcp_brass,
remoteprog_chert, remotetcp_chert, remoteprog_flint, and
remotetcp_flint

replicate2 skipped on brass

replicate5 skipped on chert and flint

valueweightsource5 skipped on inmemory, remoteprog_brass,
remotetcp_brass, remoteprog_chert, and remotetcp_chert

Yi

System: Microsoft Windows XP Home Edition
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

Installation of yi-0.10.1.

C:\DOCUME~1\UserName>CD \

C:\>MKDIR Programmer\gtk

Extract gtk+-bundle_3.6.4-20130921_win32.zip into C:\Programmer\gtk and add
C:\Programmer\gtk\bin to the System variable PATH.

C:\>pkg-config --cflags gtk+-2.0
-mms-bitfields -IC:/Programmer/gtk/include/gtk-2.0 -IC:/Programmer/gtk/lib/gtk-2.0/include
-IC:/Programmer/gtk/include/atk-1.0 -IC:/Programmer/gtk/include/cairo -IC:/Programmer/gtk /include/gdk-pixbuf-2.0 -IC:/Programmer/gtk/include/pango-1.0 -IC:/Programmer/gtk/include
/glib-2.0 -IC:/Programmer/gtk/lib/glib-2.0/include -IC:/Programmer /gtk/include -IC:/Program
mer/gtk/include/freetype2 -IC:/Programmer/gtk/include/libpng14

C:\>gtk-demo

Create a file named 'gtkrc' with the line

gtk-theme-name = "MS-Windows"

C:\>edit.com Programmer\gtk\etc\gtk-2.0\gtkrc

C:\>TYPE Programmer\gtk\etc\gtk-2.0\gtkrc
gtk-theme-name = "MS-Windows"

C:\>

Install HaskellPlatform-2014.2.0.0-i386-setup.exe, accepting the licence and the
default options.

The System variable PATH should now read

C:\Programmer\Haskell\bin;C:\Programmer\Haskell\lib\extralibs\bin;C:\Programmer\gtk\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmer\
Haskell\mingw\bin

a User variable PATH should be created with
C:\Documents and Settings\UserName\Application Data\cabal\bin

that folder however does not yet exist.

C:\>EXIT

Opening the Command Prompt again will load the new PATH variables.

C:\DOCUME~1\UserName>ECHO %PATH%
C:\Programmer\Haskell\bin;C:\Programmer\Haskell\lib\extralibs\bin;C:\Programmer\gtk\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmer\
Haskell\mingw\bin;C:\Documents and Settings\UserName\Application Data\cabal\bin

C:\DOCUME~1\UserName>

Running the command

C:\DOCUME~1\UserName>cabal list --installed

or,

C:\DOCUME~1\UserName>cabal list --simple-output

will create the file C:\DOCUME~1\UserName\Application Data\cabal\config.

C:\DOCUME~1\UserName>CD \

C:\>cabal update
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install

C:\>cabal install cabal-install
Resolving dependencies...
Downloading Cabal-1.22.4.0...
Configuring Cabal-1.22.4.0...
Building Cabal-1.22.4.0...
Installed Cabal-1.22.4.0
Downloading cabal-install-1.22.6.0...
Configuring cabal-install-1.22.6.0...
Building cabal-install-1.22.6.0...
Installed cabal-install-1.22.6.0

C:\>cabal install gtk2hs-buildtools-0.13.0.4
Resolving dependencies...
Downloading hashtables-1.2.0.2...
Configuring hashtables-1.2.0.2...
Building hashtables-1.2.0.2...
Installed hashtables-1.2.0.2
Downloading gtk2hs-buildtools-0.13.0.4...
Configuring gtk2hs-buildtools-0.13.0.4...
Building gtk2hs-buildtools-0.13.0.4...
Installed gtk2hs-buildtools-0.13.0.4

The --dry-run -v options used to check dependencies in verbose mode.

C:\>cabal install yi-0.10.1 -f-vty -fpango --dry-run -v
Reading available packages...
Choosing modular solver.
Resolving dependencies...
In order, the following would be installed:
StateVar-1.1.0.0 (new package)
base-orphans-0.4.0 (new package)
cautious-file-1.0.2 (new package)
data-default-class-0.0.1 (new package)
data-default-instances-base-0.0.1 (new package)
data-default-instances-containers-0.0.1 (new package)
data-default-instances-old-locale-0.0.1 (new package)
dlist-0.7.1.1 (new package)
data-default-instances-dlist-0.0.1 (new package)
data-default-0.5.3 (new package)
executable-path-0.0.3 (new package)
extensible-exceptions-0.1.1.4 (new package)
fingertree-0.1.1.0 (new package)
ghc-paths-0.1.0.9 (new package)
io-storage-0.3 (new package)
oo-prototypes-0.1.0.0 (new package)
pointedlist-0.6.1 (new package)
prelude-extras-0.4 (new package)
reflection-1.5.2.1 (new package)
safe-0.3.9 (new package)
tagged-0.8.1 (new package)
text-1.2.1.1 -integer-simple (new version)
hashable-1.2.3.3 (new version)
nats-1 (new package)
parsec-3.1.9 (new version)
regex-tdfa-1.2.0 (new package)
tf-random-0.5 (new package)
QuickCheck-2.7.6 (latest: 2.8.1) (new version)
transformers-compat-0.4.0.3 (latest: 0.4.0.4) (new package)
distributive-0.4.4 (new package)
exceptions-0.8.0.2 (new package)
ghc-mtl-1.2.1.0 (new package)
hint-0.4.2.3 (new package)
transformers-base-0.4.4 (new package)
unix-compat-0.4.1.4 (new package)
unordered-containers-0.2.5.1 (new version)
dynamic-state-0.2.0.0 (new package)
semigroups-0.16.2.2 (new package)
bifunctors-5 (new package)
utf8-string-1 (new package)
cairo-0.13.1.0 (new package)
glib-0.13.1.1 (new package)
gio-0.13.1.0 (new package)
pango-0.13.1.0 (new package)
gtk-0.13.8.1 (new package)
void-0.7 (new package)
contravariant-1.3.1.1 (new package)
comonad-4.2.6 (latest: 4.2.7) (new package)
profunctors-5.1.1 (new package)
semigroupoids-5.0.0.2 (new package)
free-4.12.1 (new package)
adjunctions-4.2.1 (new package)
kan-extensions-4.2.2 (new package)
lens-4.11 (new package)
word-trie-0.3.0 (new package)
xdg-basedir-0.2.2 (new package)
dyre-0.8.12 (new package)
yi-language-0.2.0 (new package)
yi-rope-0.4.1.0 (latest: 0.7.0.1) (new package)
yi-0.10.1 (latest: 0.12.0) -vty +pango (new package)

C:\>cabal install yi-0.10.1 -f-vty -fpango

The installation 'C:\>cabal install yi-0.10.1 -f-vty -fpango' was stopped after xdg-basedir-0.2.2 was installed and then the dyre, xdg and yi files were deleted from the \Application Data\ghc and \Application Data\cabal subdirectories.

C:\xdg-basedir-0.2.2\System\Environment\XDG\BasDir.hs was edited to read 'Lokale indstillinger' instead of 'Local Settings' for a Danish computer, and then the modified xdg-basedir-0.2.2 was installed manually.

C:\>CD xdg-basedir-0.2.2

C:\xdg-basedir-0.2.2>runhaskell Setup configure --user
Configuring xdg-basedir-0.2.2...

C:\xdg-basedir-0.2.2>runhaskell Setup build
Building xdg-basedir-0.2.2...
Preprocessing library xdg-basedir-0.2.2...
[1 of 1] Compiling System.Environment.XDG.BaseDir ( System\Environment\XDG\BaseD
ir.hs, dist\build\System\Environment\XDG\BaseDir.o )
In-place registering xdg-basedir-0.2.2...

C:\xdg-basedir-0.2.2>runhaskell Setup install
Installing library in C:\Documents and Settings\UserName\Application
Data\cabal\i386-windows-ghc-7.8.3\xdg-basedir-0.2.2
Registering xdg-basedir-0.2.2...

C:\xdg-basedir-0.2.2>cabal install yi-0.10.1 -f-vty -fpango
Resolving dependencies...
Downloading dyre-0.8.12...
Downloading hint-0.4.2.3...
Downloading yi-language-0.2.0...
Downloading yi-rope-0.4.1.0...
Configuring hint-0.4.2.3...
Configuring dyre-0.8.12...
Building dyre-0.8.12...
Building hint-0.4.2.3...
Configuring gtk-0.13.8.1...
Installed dyre-0.8.12
Configuring yi-language-0.2.0...
Installed hint-0.4.2.3
Building yi-language-0.2.0...
Building gtk-0.13.8.1...
Configuring yi-rope-0.4.1.0...
Installed yi-language-0.2.0
Building yi-rope-0.4.1.0...
Installed yi-rope-0.4.1.0
Installed gtk-0.13.8.1
Downloading yi-0.10.1...
Configuring yi-0.10.1...
Building yi-0.10.1...
Installed yi-0.10.1

C:\xdg-basedir-0.2.2>EXIT

Read the documentation on user customisation.