My computer setup

Here’s a HyperList of my current computer setup – for reference in case someone is looking for inspiration:

PC = Samsung NP900X4C

OS = Ubuntu Linux (16.04) (http://www.ubuntu.com/)

Shell = zsh (http://www.zsh.org/)

Terminal = urxvt (http://software.schmorp.de/pkg/rxvt-unicode.html)

Text editor = VIM (http://www.vim.org/)

Document production = LaTeX (https://www.latex-project.org/)

Programming Languages

Mail User Agent = mutt (http://www.mutt.org/)

  • Mail filtering = mail_fetch (from GMail accounts)

SMTP client = msmtp (http://msmtp.sourceforge.net/)

Instant communication = Weechat (https://weechat.org/)

HP-41 link = pc41 (https://github.com/isene/pc41)

Newsreader (RSS) = Newsbeuter (http://newsbeuter.org/)

Window Manager = i3 (http://www.i3wm.org/)

Information display = Conky (https://github.com/brndnmtthws/conky)

Browser = Qutebrowser (https://github.com/The-Compiler/qutebrowser)

Office suite = LibreOffice (https://www.libreoffice.org/)

Presentation viewer = Impressive (http://impressive.sourceforge.net/)

 

conky-screenshot

Tech stuff: Julia, Vim & Vizardry

Been doing lots of tech stuff lately. Here’s a sharing of some highlights.

Through the years I’ve been programming in more than a dozen different languages. Since many years I have more or less settled on Ruby besides my HP-41 projects programmed in FOCAL and MCODE. Now and then I get this urge to learn a new programming language, and after an extensive search for something neat, I finally landed on Julia. I’m trying her out while reading the book, “Getting started with Julia Programming Language“.

The book is good. The programming language seems excellent. It boasts a complete GitHub-based package system to extend the language with various modules. Although it’s a general purpose language, its strength lies in maths and natural sciences. It’s very fast and with a pretty clean and natural syntax. You can even do straight forward math like this:

f(x) = 2sin(3x)^2

And by then executing the function “f” with x as 0.8, you get the answer straight:

f(0.8)
0.9125010165605526

There is a chance I could be falling in love here πŸ™‚

I’ve also been doing lots of work on my Conky setup resulting in this as my “bare” desktop:

conky

If you have any questions about scripts or conky setups, just ask by leaving a comment here.

Then there is VIM – perhaps my the tool I use the most. I’ve been using VIM for writing everything from HyperLists and notes to e-mails, short stories and books since around 2001. It’s a fantstic text editor. But it lacks a good package manager for add-ons :-/

But then I found Vizardry. Using Pathogen as a base to install extensions, Vizardry will let you search for add-ons, install it with a breeze and remove it just as easily. If you’re a VIM user, this is a must. Go get it! You will thank me πŸ™‚

HP-41: The Periodic Table of Chemical Elements

Have your HP-41 right where it should be (in your hand) and unable to find the Internetz to look up nifty details of obscure chemical elements? Worry no more, the solution is here, the HP-41 program, “PERIOD”.

14LaAc_periodic_table_IIb

The program will display:

  • Atomic number, Name and Symbol
  • Group, Period and Block
  • Atomic Weight
  • Property (Alkali metal, Noble Gas, etc.)
  • Type (Gas, Liquid, Solid or Unknown)
  • Occurrence in nature (Primordial, From Decay, Synthetic)
  • Melting Point, Boiling Point (in Kelvin)
  • Year of discovery (“OLD” if known in ancient times)
  • Electron Configuration
  • Atomic Radius (empirical and calculated)
  • Origin (Big Bang, Cosmic Rays, Small & Large Stars, Large Stars, Large Stars & Super Nova, Super Nova and Man Made)

You will find the ROM pages, program listing and element details on the Github project page. It is also included in the HP Museum’s “HP-41C Software Library“. Enjoy πŸ™‚

Code is up

… on Github.

github-logo

Got around to putting my most useful programming projects up on Github.com. You can now easily get the newst versions, repost bugs, read the source code and fork the code to make your own version.

The projects that are up so far are:

  • npcg – the random encounters and NPC generator for the AMAR RPG
  • hyperlist.vim – the VIM plugin to easily and effectively manage HyperListS
  • hypergraph – the tool to make graphical representations of HyperListS
  • mailfetch – collect mail from different imap accounts, filter and store locally
  • imaptools – Client-side tools for imap mail
  • pc41 – Facilitating serial/USB connection to an HP-41 calculator

The next project up will probably be my collection of HP-41 programs found on this site.

Update (2015-08-28): I have now put all my relevant HP-41 related programs up on my Github page. The pages and links on this site is now updated to point to my Github projects.

HP-41: CLR & STATUS

I’ve had this simple program on my HP-41 for years, “CLR”. It clears the registers, stack and Alpha as well as setting the correct flags and time/date formats. It also checked to see if the clock had been reset (as it does when the battery runs out) and prompts for Time and Date if it has.

Meeting Garth and Joe at our "mini HHC" (the yearly HP Handheld Club is in the autumn). Great to meet with some fellow geeks and talk HP calculators. Yeay!

Meeting Garth and Joe at our “mini HHC” (the yearly HP Handheld Club is in the autumn). Great to meet with some fellow geeks and talk HP calculators. Yeay!

On my trip to the US, I met with Joseph Horn and Garth Wilson. And it was from Garth I got the idea to extend my CLR program to include a simple status line with the current week number, the current moon phase (percentage of illumination of the moon) as well as the time remaining to the next upcoming alarm, if any.

The moon going through its phases

The program is simply run by XEQ “CLR”. This clears all register, stack and Alpha as well as setting the right combinations of flags. It returns with zero in the display. If you press R/S it will prompt for “DATE^TIME” if the clock has been reset (DATE, Enter, TIME) and then display a status line: (ALARM) WEEK# MOON% – Example: “01:32 27 -35%” which shows it is 1 hour and 32 minutes till the next alarm goes off (no such number if there are no future alarms), it is week #27 and the moon is illuminated 35% and it is waning (a positive number means the phase is waxing/growing). Pressing R/S again shows the running clock (the CLOCK command). You can also access the status line (and then the clock by pressing R/S) by XEQ “STATUS” without having to clear registers, stack and Alpha first (thanks Anette).

Here’s the program listing.

Hope this is of use to someone πŸ™‚