DOSBox keyboard problems (solved)

In a bout of nostalgia, I’ve wanted to do something with DOS again, so I installed the latest release of DOSBox 0.74 for Windows (it’s from 2010, so not that new). First thing I noticed was that some keys didn’t work, mostly on the right side of the keyboard (no backslash, right shift, brackets). I started the internal key mapper (Ctrl-F1) and noticed that while I could remap some of the bad keys, right shift didn’t seem to send any signal at all!

Google results were full of misleading instructions about environment variables to control SDL, the key mapper, or manually deleting keyboard drivers from C:\WINDOWS. None of those helped.

In the end, it turned out that it’s probably caused by my having an external keyboard connected to a laptop. The laptop keyboard gets recognized as “Standard PS/2 keyboard”, and the problem goes away when I force it to use the driver for “Standard PS/2 101/102 keyboard” through device manager. One reboot later, all the keys in DOSbox work as they should. Here’s hoping that I didn’t break anything else.

Advertisements

Plans for 2018

You may call it resolutions, but they aren’t that hard and fast. Here’s a list of things I would like to do in 2018:

  1. Write more. Starting with this blog, I’d like to put more of myself out there. Outside of blogging, a post on dev.to or Medium would be super cool, but I should probably start by writing an article for Suspense & Decision first, like I’ve had on my TO DO list for years now.
  2. Finish a game project. I’ve got several PICO-8 prototypes that never went anywhere, but no finished games. This needs to end, and I’ve got one mechanic in particular that I want to work on. It could turn into all sorts of games, and right now I think that a cooking game like Overcooked would be super fun. Going to toil some more with the basic mechanics.
  3. Learn a new technology. Last year’s new technology was Drupal, and I learned it for work, this year I would like to learn something for myself. I’m thinking Godot, and for a project to try it on, an Eressea client that replaces Magellan or CSMap.
  4. Keep a journal. I’m not good at keeping a journal over long periods of time, so I will start easy: Before going to bed, write a short paragraph about one thing that I thought about during the day. Just to get back into the practice of doing it.
  5. Go to conferences. I went to the Internet Days in Stockholm with work last year, and that was fun. This year, we are planning to attend FOSDEM in Brussels, and I want to stay for a few extra days and also go to GodotCon.
  6. Speak. I haven’t held a presentation in a while, and would like to get back into doing that. It could be for work, or if that doesn’t present itself, I can probably talk about Eressea. Need to write an outline, create slides, find an event to present at. Maybe just the Oslo gamedev meetup for starters? CFP deadlines mean that this may not happen this year, but either way, I want to have a presentation ready for when the opportunity presents itself. I should still have a list of lightning talk topics somewhere.
  7. Play more games. I haven’t been playing a lot of games in the last couple of years. Maybe it would help to document my game experiences on this blog? Another reason to reactivate it. I should post a paragraph or two about each game I play, whether it’s a small PICO-8 project or a title I bought on Steam.
  8. Board games. Living so far from my board gamer friends in Oslo has not been good. I went to a few board game evenings last year, but far from enough. My plan right now is to start the year by hosting one at home, and maybe kick off something semi-regular with people who live in the area.

I’ll try to remember to score myself on these at the end of the year.

Maybe there’s a blog here after all?

The problem with not having a blog is that I’ve got nowhere to write down random stuff I’m thinking about. I no longer even keep a journal (but one of my 2018 resolutions is to try and do that again), and neither Twitter not Facebook feel like the right place for the many different kinds of things going no in my head.

So I may be reactivating this blog. There’s going to be a little bit of everything here, and I don’t really have an audience in mind, so expect a lot not to make any sense at first reading. I’m probably not going to preface everything with lots of exposition. I may even be writing in German from time to time.

First though, a trip to the WordPress backend.

There is no blog here

I have not blogged in a long time. I was fed up with my WP blog, so I had a blog on my own site for a while, but the software that powered it is no longer supported, and it was too much effort to upgrade to a newer version or change blogging frameworks, so that put a bit of a damper on things.

I might reactivate this blog in the future, but for now, it contains a mix of old posts and a dump of my equally discontinued tumblr, which made a royal mess of things. Don’t expect to find many pearls of wisdom here.

digitale aviser

Det blir mer og mer populært å gjemme innhold til digitale aviser bak en paywall. Lokalavisa i Tønsberg, tb.no, har et abonnement til kr. 216/mnd som dekker ca. 99% av alle artiklene deres.

Det er spennende å se hvordan samtidig med introduksjonen av betaling for innhold har overskriftene blitt mer og mer i stil av buzzfeed. “Nå skal denne ferja få ny havn” sier veldig lite om innholdet av artikkelen, og jeg kommer ikke til å punge ut med et abonnement for å finne ut om det handler om en lokal ferge til min øy eller en ferge i Nederland.

Jeg tror ikke dette fungerer. Uavhengig av dårlig journalisme i akkurat denne avisen er det ingen som er villig å betale så mye penger for en avis. Skal man være velinformert går det ikke an å lese bare en avis – jeg leser sikkert seks forskjellige selv, og hvis fremtiden av nettaviser er at hver av dem skal koste 200 kr/mnd, blir det fort penger av det. Jeg har ikke innsyn i tallene til tb.no eller noen andre, men det ville ikke forundret meg om denne paywallen går med underskudd.

sykkelauksjon og politiet.no

Det er vår, og da pleier politiet å ha en sykkelauksjon. Jeg trenger en ny gammel sykkel, og derfor sjekker jeg på politiet.no. Det ser ut til å være en vanlig CMS med veldig lite tilpassing, og er fullt av innlegg om politiauksjoner fra diverse år og alle mulige fylker. Men ingenting om auksjonene som er planlagt i 2016.

Navigasjonen til politiet.no er helt håpløst. Ingen vei leder fra hovedsiden til informasjon om hyttegodsauksjoner uten at jeg bruker søkefeltet. Det stemmer at søk er mektig, men da leter jeg altså i hele korpus av CMS databasen, og får opp forslag om høst 2012 auksjonen i Trondheim, og diverse andere “treff” som ikke hjelper meg heller.

Til slutt er det eneste jeg kan gjøre å slå opp kontaktsiden, og ringe kontoret, eller sende en epost. De har i hvert fall det, det er ikke alle offentlige som forholder seg til noe annet en telefonen.

SSD problems

So my Pi has been giving me trouble lately. I’ve reinstalled, and nothing has changed, so I am starting to suspect hardware, but what do I know? dmesg says:

[970519.112844] Aborting journal on device sda1-8.
[970519.128898] Buffer I/O error on dev sda1, logical block 19431424, lost sync page write
[970519.164602] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[970550.743210] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #1703942: comm sshd: reading directory lblock 0
[970691.368765] EXT4-fs warning: 46 callbacks suppressed
[970691.388437] EXT4-fs warning (device sda1): __ext4_read_dirblock:674: error -5 reading directory block (ino 2368303, block 0)
[970691.421693] EXT4-fs warning (device sda1): __ext4_read_dirblock:674: error -5 reading directory block (ino 2368303, block 0)
[970691.457970] EXT4-fs error (device sda1): ext4_read_inode_bitmap:185: comm transmission-da: Cannot read inode bitmap – block_group = 416, inode_bitmap = 13631504
[970691.494077] EXT4-fs error (device sda1): ext4_journal_check_start:56: Detected aborted journal
[970691.526540] EXT4-fs (sda1): Remounting filesystem read-only

…and at this point, everything is terrible forever.