RSSAmplifier

Blog

cosarara.me

cosarara.meRSS feed ↗24 posts

Latest posts

Server on a phone

I went and set up a web server on my old android phone. The main explanation is there on the site itself http://phone.cosarara.me/ ( wayback machine link for when it inevitably stops working).

Advent of Code Haskell

It is that time of the year again, Advent of Code time. I love the puzzles by themselves, especially as they become trickier and trickier, but I also take the opportunity to explore programming languages I don’t usually use that much. If I don’t have much time that day, or I’m feeling a bit frustrated, I might solve it in python only (the language that usually comes more…

Setting up guix, and locales

I wanted to try out Spritely Goblins to see what it is like, or to really understand what it is, since I’d been seeing it pop up on lobste.rs here and there. The guide suggests using the guix package, so I decided to install the guix package manager on top of my arch linux system. Installing asks to please run nscd, which is not even included in arch nowadays, so I did not, we’ll see…

Annoyance on low battery

Laptops should be a bit annoying when they are low on battery. Otherwise, I will not realise it until it’s too late, and my computer will turn off in the middle of whatever I was doing. Proper linux Desktop Environments already do this, but since I am running the Awesome window manager with a custom config, I only get what I add myself. My solution is as follows. First, the annoyance script:…

Building dosemu2 to run WordPerfect for DOS on debian

We are going to run wordperfect for dos on dosemu on debian. Overcomplicated adventure building stuff as debs for no reason. Main source of inspiration is http://www.columbia.edu/~em36/wpdos/ and the linux page there . Apparently there is a new way with dosbox-x which is better, but I don’t seriously intend to use WP, I’m just toying, so I won’t ask. I wrote down what I did as I…

Making stupid bridged networking work on wifi (because usermode networking is not good enough)

This is how I setup the network when I run a VM on a laptop. Create a bridge on networkmanager: $ nmcli connection add type bridge ifname br0 stp no \ ipv4.addresses 10 .42.42.42/24 ipv4.method manual connection.id br0 (it will be DOWN but already be visible in ip link ) Set up a dhcp server for our vms using dnsmasq #/etc/dnsmasq.conf interface=br0 dhcp-range=10.42.42.50,10.42.42.150,12h #…

Nix on ubuntu and webGL

So I switched jobs and got a laptop from the company, and it had ubuntu installed with FDE. Normally I would have done a clean install of arch on it, but I said hey, let’s just give ubuntu a chance. When it came to setting up the elm language server though, you need a specific version of node and the fight with npm got tiring enough that I decided to go the Nix On Non Nixos route. So I…

Microblogging on the fediverse

So today I read this post by icyphox titled Stop joining mastodon.social ( archived ) and I thought I’d put my thoughts in writing. And out came the following pointless mess. TL;DR: The fediverse doesn’t seem to work for me. I’ll take a step back first, and that sets me on twitter. So I don’t really do twitter. As in, I almost never tweet. I have followers but no mutual…

Fenix is not a rebirth but a regression

This will be a rant. Couple days ago, I upgraded the apps on my phone. Firefox for Android, my phone browser of choice, got a major upgrade. It went from the old codebase Fennec, to the new codebase Fenix, built on GeckoView, which had been on testing for a while in Firefox Preview, Firefox Nightly and Firefox Beta. The first obvious change is that the URL bar is now at the bottom. But fear not,…

Adventures with an R9 290 and temperature

So there’s this AMD R9 290 I had lying around from back when two friends and I set up an ethereum mining rig (which is a story for another day). Only one fan, stock cooler. I was thinking of selling it, but after a couple google searches, the internet told me that this card was in fact better than the Nvidia GTX 960 I was running. So I pop it in place, reconfigure everything to use amdgpu…

Installing OpenBSD on a Scaleway VPS

Yesterday I wanted to set up an OpenBSD vps. And the cheapest vps provider these days seems to be Scaleway, which doesn’t allow custom ISO uploads. So what I did is pick debian, and from grub run with the serial console attached: set root=(hd0,gpt1) kopenbsd /bsd.rd boot And I got nothing, because this thing is serial not a proper terminal (or so I thought at first. Actually, the problem is…

KRunner and D-Bus

Today I pressed my awesome shortcut for layout switching and found that it didn’t work. Instead, something called KRunner popped up. BUT WHY? What followed was an investigation. Typing krunner on google already explained the first thing: KRunner binds to Alt-F2 and Alt-SPACE. Now why was krunner running? > ps ax | grep krunner 2343941 ? Sl 0:00 /usr/bin/krunner 2382396 pts/10 S+ 0:00 grep…

Ludum Dare 40

This last weekend, after partying hard on Friday night, I made a game for the Ludum Dare 40 Compo ! (and messed up my sleep schedule even more) https://ldjam.com/events/ludum-dare/40/to-the-other-side/ I used the Godot Engine (v2.1.4, not the v3 beta), the Aseprite pixel art editor (the GPL fork), the sfxr sound effect generator and the MilkyTracker music tracker. I did everything all the…

Disassembling bytecode

Today I rewrote the decompiler in Red Alien . Here is a quick comparison: From script source: #dyn 0x800000 #org @start lock :label loadpointer @text jump :label #org @text = \c\h01\h05\v\h01I don't even know what\n = I'm doing! Ádudududu\p = \c\h01\03Does this text even make\n = sense? Before: '-------------------- 'file name = /home/jaume/RH/ruby.gba 'address = 0x800000 '--- #org 0x800000 lock…

Blog Technology

The other day, I was asked on IRC what did this website run on. Let’s go from the bottom to the top. First, the hardware: An Intel Atom ( D945GCLF2 ) with just a power cord and an ethernet cable comming out of it, sitting on my home desk. A single 300GB disk, no raid, no backups, no SAI, the best setup ever. 2GB RAM. Since the fan is noisy, I have it set to never spin below 75°C. Now, for…

Today I Solved/Broke ROM-Hacking

GBA Pokémon game ROM-Hacking is messy. It's done using tools like map editors, hex editors or image inserters directly on the ROM file, and the only safety measure are plain file backups. Normal game or software development, on the other hand, usually keeps all the source data in separate, easily editable files, then provides some means of building the final product automatically. Wouldn't it be…

Random Thoughts, part I

Fixing broken ROM Hacks the dirty way

People make ROM Hacks using buggy tools, and then one day they find their game freezing on a pokemon evolution, or battle, or whatever. Since the ROM file is just a big mess and they have no idea how to fix it, they either start over or give up. I sometimes fix other people's ROM hacks. My usual method was going close to the point of failure (freeze, reboot, whatever), making vba-sdl-h start…

VNC over 2 SSH servers

Today I *needed* a graphical connection to my home desktop, from ~100 km away. That means VNC. At home I have 2 computers: a server and said desktop. The server has a port redirected from the router for ssh, and from the server I can access the desktop (ssh as well). Therefore, I need some kind of double tunnel to get from the laptop to the home machine. The final solution looked like this: home $…

Bye bye, database

This blog doesn't use a database any more. Instead, entries are saved in plain text files, and it's all put together using Mako templates. Now I can have the blog contents under version control, I edit the entries the same way I edit the rest of the website (emacs and ssh), and the code has decreased in size quite a bit. It's also one less service running on the server. This was my first…

Docs

Here it is, lads, a manual for Red Alien . I might or might not write a tutorial as well. While doing it I realized that writing HTML using emacs with web-mode and evil is not bad at all. Also, I'll see if I can integrate that syntax highlighting I used in the document into the GUI's QScintilla editor.

Beep! Someone said my name

As an IRC client, I run weechat on my server, inside a tmux session, and connect to that using SSH. I had disabled the beep plugin, since I was begining to go crazy every time someone mentioned me. Still, I needed some way to get notified when someone mentioned or /query'ed me. Enter notify-send and twmnd. notify-send is a standard tool to send notifications to the notification server in a linux…

Upset

I'm so upset. jk. https://github.com/cosarara97/upset I think the original UPS patcher had a command line interface already... Anyway, this was both easy and fun to do.

Here we go again

The server stopped working, like a week or two ago. The hard drives were too hot and died. Some info was lost, like everything on the database, but I saved the website code (yay!).