Entries tagged 'cat:Computer'

SBWG 0.13 Entry created on 2025-11-10 (edited 2025-11-18) author:steeph (364) cat:Bash (31) cat:Code (31) cat:Computer (77) cat:Linux (35) cat:Projects (40) cat:SBWG (18) cat:Scripts (28) cat:Software (52) lang:en (248) top:Projects:Code:Bash Scripts:SBWG (16)

Wow, has it been more than a year again without publishing a new SBWG version? Another year where I didn't have much energy for things besides work. But I finally worked on it again. It's still evolving a lot. But the list of things I still want to do is slowly becoming shorter.

SBWG 0.13.0 is a pretty stable version again. I've tested it with several sites for a while and I'm now also using it to generate this web site. You can get it from there.

Apart from the almost permanently ongoing task of cleaning up the code formatting line by line because I started out with a mess of tabs and spaces mixed in different circumstances, I find the following changes worth describing here.

File attachments: Image files are now only embedded as a thumbnail and displayed as a gallery if the file type is one of the following: image/avif, image/bmp, image/gif, image/heic, image/jp2, image/jpeg, image/jpm, image/jpx, image/jxr, image/png, image/svg+xml, image/tiff, image/vnd.microsoft.icon, image/webp or image/x-jp2-codestream. Even though not all of them are supported by most web browsers and there are browsers that support formats not on the list, those are the image types that I find widely supported enough to try to display their contents instead of only linking to the original files. If a file attachment is in a subdirectory, the same sub-path is now used on the generated web site, allowing for several files of the same name to be attached to different entries. That is something that is now possible because file attachment now not necessarily need to be named after the entry they are attached to. Their file name does not matter if the directory they are in is named after the entry. For axample: ENTRYNAME, ENTRYNAME-files or ENTRYNAME-images

Since SBWG sometimes changes how certain features work, it is possible (as in thinkable. It's not like SBWG is used by so many sites that there has been an actual example of it.) that a web site created for one version of SBWG is not generating as expected with a newer version of the script. That is why it is now possible to declare in a site's settings file that it may not be generated by a SBWG script newer than a certain version. If your site uses hooks it may be a good idea to use this new feature so that you get a message when trying to use a wrong version of SBWG instead of noticing after a possibly long generation process that everything does not look right. To activate this restriction, simply add a < sign followed by the latest version allowed to the first line of the site's settings file. For example: #SBWG <0.13.0

Accessibility as an afterthought: For some reason I didn't many things wrong from the start when it comes to accessibility. I've always felt that design decisions are and should be subject to my personality and mood. This is why SBWG is only written for Bash (so far) and so many specialty features are the way they are. I guess I've let this policy spill out on decisions like how readable generated sites are. I've never been good with designing web pages entirely on my own. I'm better at implementing CSS than at design decisions. But this goes so far that I've created an image gallery feature (for image file attachments) with modal preview without using any JavaScript. To realise that I had to break some HTML rules and create HTML that is not viewable without a basic minimum of styling (to hide some elements). I am very very slowly drifting off that course of not caring about things like that. As a start, I've changed the layout of web sites generated with SBWG to contain their menu after the content. For a styled site there's no difference (e.g. using the default "elth" style). But in text browsers (and hopefully also screen readers) this means the entire menu with all topics and the whole tagcloud isn't displayed/read before getting to the actual content of a page. To make it easy to access the menu, there is now a "Jump to the menu" link at the top of every page. Another improvement in this regard is inclusion of image descriptions as alt attributes where descriptions are found in the meta information embedded in the image files. SBWG now looks for all sorts of tags that might hold a useful description of an image, or at least a title or keywords. Fields meant for image descriptions are preferred over others that probably only hold inferior information. This should in some cases already generate useful alt attributes. But I know that I'm going to have to actually write those image descriptions for images used on my site. It's a start. Like I said. I'm moving very very slowly on this.

Style set handling: The most recent large change has been the rewrite of everything related to fetching and embedding style sets. I made some minor compromises but simplified some parts a lot. Changes emerging from the re-write include: Style sets can be placed in different directories now. SBWG looks for the requested style sets in the web site's own styles directory as before. If it isn't there, it continues looking in the user's home directory (`~/.local/share/sbwg/styles/`), then in a global styles directory (`/usr/local/share/sbwg/styles/`), then in the styles directory relative to the script file (in case SBWG is used as a portable directory, not installed). This way styles can be provided globally, e.g. with an install script, additional or altered styles can be installed by a user for their own sites and additional or altered styles again can be limited to a single web site. And lastly a stylesheet file can be chosen by path no matter where it's localed. But this file will be its own style set. Special use case, I know. But if you happen to have a use for that feature, there you go. Style files named reset.css are no longer treated specially. It wasn't a requested feature and I never used it myself. If you use alternate styles on your site (which is unlikely enough) and there are style definitions you want to be included in all style sets, simply include them in all style sets. If you want to refrain from using redundant CSS, put that code in a separate file like before with reset.css) and create links for each style set. The result will be same as before but more self explanatory. When using alternate styles on a web site (so the user can select from them in the browser), all non-styling files from all style sets are now being used. Again this is more in line with what you would expect. Although I might change this again later because the way it used to be was more practical. There were good reasons for it. The basic minimum of styling that should be applied to a site generated by SBWG is now hardcoded. If no style whatsoever is requested, a file with those minimal rules is generated and linked on generated HTML files.

Other than that it's mostly code improvements, HTML cleanliness improvements, formatting improvements and UI/style improvements of a tiny nature. But I'm glad I have two of the larger todos - attachment changes and the style rewrite - (almost) done.

Entry created on 2025-09-08 author:steeph (364) cat:Computer (77) cat:Hard Drives (1) cat:Hardware (16) cat:Macros (3) cat:Photos (29)

It's been a long time since I've taken apart a hard drive. I think this was the first time since I have a proper camera.

File Attachments (6 files)
hdd_makros-00.jpeg (image/jpeg, 1946392 B)
hdd_makros-00.jpeg (image/jpeg, 1946392 B)
hdd_makros-01.jpeg (image/jpeg, 1366291 B)
hdd_makros-01.jpeg (image/jpeg, 1366291 B)
hdd_makros-02.jpeg (image/jpeg, 1085188 B)
hdd_makros-02.jpeg (image/jpeg, 1085188 B)
hdd_makros-03.jpeg (image/jpeg, 1551952 B)
hdd_makros-03.jpeg (image/jpeg, 1551952 B)
hdd_makros-04.jpeg (image/jpeg, 1326586 B)
hdd_makros-04.jpeg (image/jpeg, 1326586 B)
hdd_makros-05.jpeg (image/jpeg, 2138931 B)
hdd_makros-05.jpeg (image/jpeg, 2138931 B)
Blank Keyboard Entry created on 2024-11-23 (edited 2024-11-24) author:steeph (364) cat:#100DaysToOffload (40) cat:Computer (77) cat:Hardware (16) cat:Keyboards (10) cat:Typing (1) lang:en (248)

Some 10 years ago, I picked up a simple USB keyboard from the scrap box of a hackerspace before to see whether it really was broken. It was missing one key, which made me think maybe that's all that's wrong with it. Turns out I can do without the Numlock key and all other keys work perfectly. When I have to press the Numlock key I use a pen. I never had to move another keycap onto it.

My idea when I took this keyboard was to same working tech from being dumped and destroyed and to have a random spare in case I needed a USB keyboard because I only had spare PS/2 and one very cheap and bad 2.4 GHz USB keyboard (if not 800 MHz). But there's something special about it. It's a BLANK keyboard, which seems to be a brand solely marketing keyboards without any markings or labeling on any key. I had heard of them before and thought it's an interesting idea. But I wouldn't have chosen to buy one. At some point I needed a USB keyboard and tried the blank one for a while. Since then I use this keyboard for my desktop PC intentionally, not because I don't have another one. I thought I'd write down my experience in getting used to it and what it did to my typing.

It appears a bit surprising to me now but at my first experience with the Blank keyboard was what I expected at the time. I was using it at an opened laptop with a broken keyboard. And I was very glad to have a labeled reference in front of me. Typing a word or two took ten or twenty times as long because I didn't know what most of the keys were. Well, some are obvious (Return, Escape, Space, etc.). I must have cought a particularly patient time in my life. Because I kept trying to hit the right keys when typing. I also didn't really type long texts on that machine at that time. So it wasn't too much of a dive into label-less typing. There must have been enough moments where I hit the right key first try to motivate me to keep trying and maybe learn to type blindly. When the laptop keyboard had dried sufficiently I was very glad about being able to switch back again. Such a relief. But I chose to go back to the blank one for a while every now and then. There were so many times where I started to type one or half a key to the left or to the right, so I started to produce gibberish, deleted the last few characters, adjusted my hand's alignment a few millimeters and try again. Sometimes (actually still pretty often) it took five or more attempts to hit the right keys. That was how I typed for a long time. When I wanted to type "Foo Bar Baz" I typed something like "Gpp<<<Doo<<<Foo Nar<<ar<<<Nae<<<Nar<<<Bae<<ar Bau<u<u<u<t<t<z", sometimes much longer. That was the period where I was surprised to bring up enough patience to continue. There was pretty much no progress for months.

I'll leave it at that one example. But it was a long time during which I accepted that I often had to type things three or four times. I eventually stopped because I hardly noticed any progress. But when I again needed a USB keyboard and the blank one was the nearest one, I gave it another try. And I was glad about how quickly I got back into it. Now I did notice progress after a few weeks. Maybe the fact that I was off and on that keyboard every other day played a roll in that. That was a couple of months ago. And I am happy to be able to say that I am typing blindly now. Still not without errors. I probably hit a wrong key about a dozon times in this paragraph already. But it's bearable. And I'm not sure how many such mistakes I made before on a labeled keyboard because I never payed that much attention to that. Typing blindly always was something that I always thought of a very nice skill to have but one infinitely far away. Now I look once at the keyboard before I start typing and that's enough. Maybe I wouldn't need to do that on a keyboard with very clear J and F markings. But I doubt it. When I look at the keyboard before starting to type I look for the first key that I want to press, not F or J.

Now that I got that far I will probably continue to get better at hitting the right key at first try more often. Because I noticed that I stopped lookign at other keyboards as well, even with nice large labels or glowing keys. That should give me the necessary training over the next couple of years. Although right now I don't feel like I'm making any progress again.

HelenOS Entry created on 2024-11-23 author:steeph (364) cat:#100DaysToOffload (40) cat:Computer (77) cat:Operating Systems (23) cat:Software (52) lang:en (248)
This entry is referencing the entry 'Alternative Operating Systems'.

HelenOS

One of those operating systems that is used for operating system research here and there. I think that's also what it was made for. The last releast was earlier this year, which makes it seem one of the more actively developed research OSs. With the release there are also prebuilt ISO for a variety of platforms including the usual, Raspberry Pi, other ARM platforms and older PCs.

There are similarities to UNIX-like systems but it is clearly not a POSIX system. Basic utilities are included as well as some basic console and graphical applications and demos. I didn't look for any additional software, yet. I'm not sure if I will use this os much more. But by booting flawlessly without any changes and effort, this is one of the more usable OSs I've tried. So I might. It has network capabilities, a basic GUI and TUI, window manager and its own shell.

The GUI is optional. Most applications run in the console mode as well, which is a TUI that mimics the GUI with its start menu. Which is good to have because the GUI is really slow to the point that the mouse pointer is lagging behind.

On my desktop PC neither a PS/2 nor a USB mouse worked. But the touchpad in my old latitude worked fine, including the second set of mouse buttons that work in almost no OS. Graphics mode worked with the appropriate resolutions automatically. Above that I haven't tested any hardware.

There are screenshots in the official wiki.

Alternative Operating System: Haiku OS Entry created on 2022-03-29 (edited 2024-11-15) author:steeph (364) cat:Computer (77) cat:Haiku (2) cat:Operating Systems (23) cat:Software (52) lang:en (248) top:Software:Alternative Operating Systems (18)
This entry is referencing the entry 'Alternative Operating Systems'.

Haiku OS

Haiku OS is a BeOS clone. I didn't use BeOS back in the day (although I wish somebody would have showed it to me). So I'm not sure, but Haiku seems to be pretty much the same experience. But Haiku is open source, still actively developed and compatible with newer hardware. It ran relatively well on the Core2Duo PC I've tested it on. Except for the included web browser. That thing crashed. For a lot of people whether a desktop OS is usable is decided on how good of a web browser is available for it. Haiku OS Beta 3 looked promising with its WebPositive using WebKit 612.1.21. But at least on the old PC I've tested it on it wasn't usable. It was slower than imaginable and kept crashing after one or two page loads. (The simple included help pages at that. I didn't even feed it something complex, like YouTube or Google Docs.) But I've heard others hat a pretty good web experience with it. At least as long as nobody asks about security. The rest of the system is snappy enough. It's no KolibriOS, but on any x86 or x86_64 from the last ten years it should be as fast as anyone wishes their OS to be and much older computers run it just fine. There seems to be a not so small community of users and developers. Every new Beta that is released comes closer to a desktop OS that has everything that people ask about/for. (Let's not talk about big games people are familiar with.) And because of the growing community and the fact that the 32 bit version can still run many applications compiled for the original BeOS this is not just a small OS with theoretical goals bigger than its community. It's really usable already and it looks to me that it has good chances of becoming more important in the future. I'm not sure if I'd have said that five years ago. It's moving slowly (compared to Windows and Linux), but consistently towards its goals.

Edit 2024: The have been two new alpha releases since I wrote about Haiku here. It is definitely capable of being an everyday desktop OS even though the release candidate's version labels are modest. The biggest change recently has been that GTK3 has been ported to Haiku, meaning that a large number of graphical applications becomes available or portable. Applications that have been written with other operating systems in mind. This has been demonstrated with Inkskape and GIMP. But many more applications will follow, I'm sure. I suspect that this also means that Firefox or some fork of it will be the web browser most people will use on Haiku. It certainly makes it more usable as ther main OS for many people.

File Attachments (4 files)
Haiku_OS-1.png (image/png, 346461 B)
Haiku_OS-1.png (image/png, 346461 B)
Haiku_OS-2.png (image/png, 288045 B)
Haiku_OS-2.png (image/png, 288045 B)
Haiku_OS-3.png (image/png, 260590 B)
Haiku_OS-3.png (image/png, 260590 B)
Haiku_OS-4.png (image/png, 814785 B)
Haiku_OS-4.png (image/png, 814785 B)
Go To Navigation Page
Show/Hide Navigation