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.

Reverse Polish Notation explained

The Youtube channel “Computerphile” has some cool videos. This one explains very well what Reverse Polish Notation (RPN) is and how it works. The concept is central to the traditional HP calculators, something dear to my heart 🙂

Notice how I am drifting away from blogging about Scientology. Scientology blog posts generate a hell of a lot more action than any post on RPN of HP calculators. But it’s the logical evolutions as Scientology drifts away into the sunset. The church is dying and anything of value in the subject itself will find its way into the common pool og human knowledge. And all will be fine.

It’s the feeling

In my talk at HP Norway, I covered my history as a calculator enthusiast. I got my first calculator (a TI-57) when I was 13 and my first HP calculator (HP-41CX) a few years later. I started collecting as an adult, and in 2008 eighty-nine of my ninety calculators got toasted when the building where we had our offices burned to the ground.

vindern-brann

A couple of months before the fire, the Norwegian national TV interviewed me and showed my collection. Lots of people saw it. Shortly after the fire, the TV host Petter Skjerven came back to do a “part 2” where he asked me how I felt after the fire. We were standing in the ruins when I told him I felt great.

A couple of weeks before the fire, I had a dream where I had all HP-calculators ever made in mint condition. That saddened me – because the game was over. You see, the point about collecting the calculators, apart from actually using them, is to COLLECT – not to HAVE. So, I had 8 years of fun behind me when the fire struck. And then I had at least 8 years of fun ahead. It felt great. After that second show, people started sending me their old calculators. And now I am almost beck where I was. Except my HP-01 is hard to replace. And my HP-37E had the lowest serial number recorded. Priceless. Oh well. I started to rebuild my collection, and I have calcs now that I never had before – like the gifts I got from HP after my talk; an HP-70, an HP-25C and an HP-10. All rare items.

One important personal point I touched upon in my talk was how I am driven by feelings. The feeling for the unknown, the feeling of learning something new, of discovery, of the vast sea of interesting knowledge, the thrill of learning Einstein’s theory of relativity before I got my first calculator, the excitement of making a self-modifying program on a TI-59 that I borrowed from a friend of mine. The joy of synthetic programming on an HP-41. And the nerve wrecking feeling of reading aloud when I was in high school. The thrill of girls, of the first job, of travelling abroad, of meeting with interesting and amazing people. The emotions, the fun. This is what drives me. And collecting old calculators rejuvenates many tingling, captivating and entrancing rushes. I love it.

This a big reason why I make music, artwork, meet and talk to new people, travel, read, play, point my telescope to the stars and live life as I do. I am a feeling-junky. This is also why I blog.

humanfactor.jpg

Video: Kalkulatorentusiastene

Det blir vanskelig å slå gårdsdagen. Dagen da julen ble overskygget. Dagen da kalkulatorentusiastene inntok HP-kontorene på Fornebu og fikk dele sin pussige glede over gamle klenodier som selv HP hadde parkert i sin dypeste kjeller.

hp-g-a

Tenke seg til – jeg ble invitert av HP til å holde foredrag om et av deres gamle hjertebarn; HP-kalkulatorene.

Det er videns kjent at jeg har en mental skavank, en særegen svakhet for gamle mattemaskiner fra 70- og 80-tallet produsert nettopp av Hewlett Packard. Og i går fikk jeg muligheten til uten bygsel å legge for en dag mine følelser for maskinene som for meg representerer et vindu inn i matematikken og vitenskapens verden. Sammen med min gode venn, Arne Helme, som deler mitt mentale avvik.

Det hele ble kronet med en julaften som lignet den jeg opplevde da jeg var 12 år og fikk mitt første teleskop. Harald Andersson hadde tatt turen ned i kjelleren og hentet ut en skokk pensjonerte kunstverk for å gi dem et bedre hjem. Hos Geir og Arne. Jeg fikk tolv kalkulatorer! Inkludert en HP-70!! Arne fikk tak i en HP-70 for noen år siden og misunnelsen har ikke stått stille siden. Og der var det jommen meg en HP-25C også. Og en flott HP-27. Og en HP.10 🙂 og en ubrukt HP-34C som jeg ga til Arne. Jeg har en slik fra før, men det hadde ikke han. Et lite ras av dokumentasjon og bøker fulgte med. Og en blomst og en vinflaske. Helt sykt. Snakk om julaften! Tusen takk til Julenissen som til daglig jobber som ingeniør i HP.

hp calculators

HP er en unik bedrift med en unik historie. Og nå som de har lansert en svært avansert kalkulator med touch-skjerm i farger og heftige matematiske funksjoner, er de på rett spor igjen. Mer om HP Prime i en senere bloggpost.

Hele opplevelsen ble tatt opp på video og lagt ut på Youtube. Popkorn. Snurr film:

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 🙂

Report from the US Tour

OMG! Brendan, Anette and myself did a US race in one week, with two days in New York City, one day in Phoenix/Grand Canyon and four days in Los Angeles. We met with more than 35 people in more than 20 meetings covering anything from business to Scientology, HP calculators, art and music. We had a blast!

A picture tells more than a thousand words. And this time I will let the pictures do the reporting:

New York City

Times Square - New York City is like the real Bladerunner

Times Square – New York City is like the real Bladerunner

Anette & Geir kissing as part of the "making out in front of churches"-series

Anette & Geir kissing as part of the “making out in front of churches”-series

Beautiful Central Park

Beautiful Central Park

Two squirrels in the park

Two squirrels in the park

Brendan and Geir trying hard to follow the rules of the Soup Nazi

Brendan and Geir trying hard to follow the rules of the Soup Nazi

Had a late coffee with Tony Ortega. Intriguing talk with a highly intelligent man. And way too interesting to remember taking any pictures... so here's his official FB pic.

Had a late coffee with Tony Ortega. Intriguing talk with a highly intelligent man. And way too interesting to remember taking any pictures… so here’s his official FB pic.

Zana - we had an interesting chat :-)

Zana – we had an interesting chat 🙂

Meeting Victoria and her wonderful and loving family.

Meeting Victoria and her wonderful and loving family.

Meeting Dave in Little Italy talking about Life, the universe, everything.

Meeting Dave in Little Italy talking about Life, the universe, everything.

Martin the genius DJ

Martin the genius DJ

A taste of Martin’s music (he’s half of the duo CLMD):

Phoenix & the Grand Canyon

Visiting Chris (our resident blogger) and his gorgeous family. Love'em to bits.

Visiting Chris (our resident blogger) and his gorgeous family. Love’em to bits.

Chris took us to Grand Canyon... OMG!

Chris took us to Grand Canyon… OMG!

Got real close to an elk up there.

Got real close to an elk up there.

Saw the outside of Hubbard's home in Phoenix (he lived there for about a year back in the early 50's). No one answered when we rung the bell.

Saw the outside of Hubbard’s home in Phoenix (he lived there for about a year back in the early 50’s). No one answered when we rung the bell.

The almost staff-less but huge and beautiful Church of Scientology in Phoenix.

The almost staff-less but huge and beautiful Church of Scientology in Phoenix.

Los Angeles

Making out in front of Celebrity Centre International (Scientology's VIP church).

Making out in front of Celebrity Centre International (Scientology’s VIP church).

Meeting Jeff and Karen - what a wonderful, energetic and creative couple. The planning of some counter-OSA-ops was fun.

Meeting Jeff and Karen – what a wonderful, energetic and creative couple. The planning of some counter-OSA-ops was fun.

I did a series of videos at Karen’s detailing my various experiences in Scientology – from my work with OSA Int to my meeting with David Miscavige. I will do a blog post for each of these videos as the are produced and released on Karen’s channel. Karen has done lots of videos, like this one:

Attending a show on Scientology at the Silent Theater (Cine Family). Got invited by Karen and Spanky. Winged it... got on the panel and did a demo session. Awesome fun!

Attending a show on Scientology at the Silent Theater (Cine Family). Got invited by Karen and Spanky. Winged it… got on the panel and did a demo session. Awesome fun!

Here’s Tory and Mark’s video on what went down that night:

Doing a demo session with the organizer of the event, Hadrian. He was a good sport and as funny as they come. He even said he had some gain out of the two auditing questions he was asked.

Doing a demo session with the organizer of the event, Hadrian. He was a good sport and as funny as they come. He even said he had some gain out of the two auditing questions he was asked.

JD Shapiro talking about his script writing for the movie Battlefield Earth. Some interesting insight right there.

JD Shapiro talking about his script writing for the movie Battlefield Earth. Some interesting insight right there.

Meeting the lovable Tory Magoo :-)

Meeting the lovable Tory Magoo 🙂

Spanky and me in the garden behind the theater. You just gotta love that energy and compassion.

Spanky and me in the garden behind the theater. You just gotta love that energy and compassion.

The happiest place on Earth :-)

The happiest place on Earth 🙂

Doing the "Star Tour" at Disneyland.

Doing the “Star Tour” at Disneyland.

Boat trip down at the wonderful Newport Beach with Mike and Betsy. Great couple. Very interesting talk.

Boat trip down at the wonderful Newport Beach with Mike and Betsy. Great couple. Very interesting talk.

I'd take it if someone had begged me to live there.

I’d take it if someone had begged me to live there.

...especially with this pelican outside the door.

…especially with this pelican outside the door.

Jason the Writer and Video Producer with Brendan looking over Newport Beach.

Jason the Writer and Video Producer with Brendan looking over Newport Beach.

Tom and Anette on Venice Beach. Tom's a cool chap.

Tom and Anette on Venice Beach. Tom’s a cool chap.

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!

Talking Incas and her upcoming book and TV series with Theresa. Fascinating stories!

Talking Incas and her upcoming book and TV series with Theresa. Fascinating stories!

At Aida and Dave's. The powerhouse Mexican served authentic food from her home country - all made from scratch. Oh yummy.

At Aida and Dave’s. The powerhouse Mexican served authentic food from her home country – all made from scratch. Oh yummy.

The view from Aida's is not bad... not bad at all...

The view from Aida’s is not bad… not bad at all…

Jason the Writer invited us to the Magic Castle with a really fun show :-)

Jason the Writer invited us to the Magic Castle with a really fun show 🙂

Spent hours with Jason - but with him and us being so much into the conversations, we forgot all about taking pictures together with him and his family...

Spent hours with Jason – but with him and us being so much into the conversations, we forgot all about taking pictures together with him and his family…

...but Anette did take a picture of me kissing one of Jason's bunnies...

…but Anette did take a picture of me kissing one of Jason’s bunnies…

...and his duck. After which Angie took us on a Black Widow safari around their house. That woman's got balls of steel.

…and his duck. After which Angie took us on a Black Widow safari around their house. That woman’s got balls of steel.

Flying home

Flying home

There are so many pictures we didn’t take in all our awe and rush. It was a week we will never forget. And with people we will have many years ahead with great friendship and lots of fun. Next time we’ll go to…

The perfect match: HP-41 and your telescope

Got a neat little program for you: SCOPE.

The abstract from the page:

This program calculates values for telescopes and oculars. You start the program, add a telescope and then as many oculars as you want. You can then view several values for the telescope as well as the details for each ocular when used with this telescope. You can also save the data set (telescope and oculars) to an XM file or retrieve a file saved earlier. You may add new oculars as needed to a retrieved file and save it anew.

Before you start jumping with joy, take it for a ride and tell me what you think. Miss anything in there? Want it to do some other things? Like make a cup of coffee for you? Just slip me a note and will see what I can do.