Blog

  • BanyekEst

    I’d had enough. I mean, I lead a fairly active life, yet sometimes it’s surprisingly difficult to figure out what to do on any given day. It used to be relatively easy: I’d go down to one of my favourite places, pick up a copy of Pesti Est from the counter, sit down and read through it. Then I’d take it home, and my plans for the following week were pretty much sorted.

    And then it all went to hell. COVID killed off Pesti Est, among other things, and suddenly there was no decent event guide anymore. Decent by my standards, of course.

    Sure, there’s Facebook. You follow all sorts of shit and hope that the algorithm will take you under its wing and show you something you’re actually interested in. Long story short: it won’t.

    So I decided to sort things out myself and created BanyekEst. Using ChatGPT, I put together a fairly extensive list of sources and asked it to collect events from those places and compile a weekly event guide. I don’t know whether it catches everything, but I do know that the content comes from places I like, and I’ve got something to browse.

    A new edition is ready every Monday morning, covering two weeks of events.

    And there’s no algorithm deciding what you should be interested in. No personalised recommendations. If you’re looking for something to do in Budapest, browse through the event titles. If something catches your eye, click on it and check out the event at its original source.

    The site always covers the current week and the following one. The current week’s listings are regenerated as well, so any changes to the original sources can be reflected in the guide.

    Take it, use it, spread the word.

  • The Endlessly Stretching Present

    Lately (for quite a while now), what interests me the most is slowing down. I have this feeling that today’s world is mostly about pushing everything to the max, gobbling up experiences, squeezing everything we possibly can into the time available to us, and just devouring and consuming without stopping, as if there was no tomorrow.

    And the funny thing about all this is that this way, there really is no tomorrow. Right now, I’m not trying to criticise how capitalism works, nor am I thinking about how we are destroying our own living environment (although we are), but rather about how, if one doesn’t learn to slow down and perhaps stop in the moment, instead of a beautiful, uncluttered future, all that remains is noise and buzzing, an endlessly stretching present. And this is not good.

    (more…)
  • We’re Not Done Until We’ve Cleaned Up

    I’ve said this in many different ways before, but one of my favourite ways of putting it is: let’s do our future selves a favour.

    There’s probably some ADHD lurking in me. I can’t say for sure, because I’ve never had it officially assessed, but whenever I read up on it or take one of those questionnaires, let’s just say my suspicions get considerably stronger.

    (more…)
  • Refactoring the Past

    It’s an interesting question what we should and shouldn’t do with our archaic codebases.

    For example, my GitHub is full of quite a few old projects I made 10–15 years ago, for problems that existed back then. I didn’t necessarily have to put them on GitHub, but I did, because why wouldn’t I have?

    (more…)
  • Vim – again

    I’m the kind of person who opens VSCode, and then a few minutes later realizes they’re editing files with Vim in the built-in terminal.

    But I’m not completely stupid.

    (more…)
  • Starting Over

    So, I guess I’m starting over today.

    Not really with the blog, though. More like with the internet. My little corner of it, anyway.

    I’m fed up with social (or should I say so-shul?) media, and all those algorithms sprawling all over it, constantly feeding everyone (myself included) content that someone thinks we’ll find interesting, just to keep us on their platforms so we can make them some money.

    Thanks, but no thanks.

    The first time I encountered the actual internet was in 1994, as a first-year high school student, at the public library in Dunakeszi, Hungary.

    (more…)
  • Chairs

    Chairs. I have been working from home mainly for the past 3–4 years, so having a decent home office setup has always been important to me.

    I have a nice adjustable desk. I ordered the base from autonomous.ai, but the tabletop is a 200 cm-long IKEA Linnmon tabletop, because my wife and I work together a lot.

    The chair I had been using for a long time was an IKEA Flintan chair. I bought it used from my old workplace for something like 15 euros. Bargain.

    I used it for a long time, but as the chair got older, the seat was no longer the best. It became less soft over time, so I decided to change it.

    I went to IKEA and bought a chair named Järvfjället. The strength of the mechanism was not adjustable, so after two days, I decided to bring it back to the store because my back had started to hurt. I got a different chair, named Markus. It was quite good for a while, but I noticed that my neck started to hurt in it, so after about six months, I gave it to my nephew and brought back my old Flintan chair.

    I used it again for several months, but it became less good again, so yesterday I made my decision and went to IKEA and bought a brand-new Flintan chair.

    I put it together yesterday and started to use it. It was comfortable to sit on, but it was not good to lean back in. The spring in it was much stronger than in the old one, and they changed the mechanism—the spring is not adjustable anymore.

    I made my decision, and I decided to swap the mechanism of my old Flintan chair with the new one… but I am not able to do it, because they redesigned the entire chair. All the screws are in different places, so I can’t do it.

    So now I have an old chair that I can’t sit on comfortably anymore, and a new one that I can’t sit on comfortably either.

    I am pretty grumpy about it. F*CK IKEA. Why change something that was working well?

  • Happy birthday VIM!

    Vim turned 29 this day. Yay! I am a heavy vim user. It is my editor of choice in every operating system, however, I always install some GUI editors as well (atom or sublime) for quick copy-paste tasks.

    But this post is about vim.

    I pretty much love it. I love how seamlessly it integrates into my daily workflow. I avoid using vim plugins and fancy configuration parameters. I try to keep it clean and easy. (Yes, I’ll share my .vimrc at the end of this post)

    My normal workflow utilizes mostly the UNIX shell. I rarely keep multiple files open – unless I plan to copy-paste between two files. When I have to edit a file, I enter the work directory, open the file with vim, do my edits then save, and go for the next file. Sometimes I use ‘gf’ and ctrl+O to navigate between files. I often use sed like replacements inside files, and when I have to edit multiple files I mostly use macro recording. And that’s it, I guess. The main part of my config is about how to colorize the output, what to do with the whitespaces, things like those. I keep vim plugin free because I can easily copy my .vimrc to any server I have to work on.

    (more…)
  • I forgot to format my Mac to case-sensitive – this way I solved it

    I have a new job, and a new computer, and I have to admit: when I moved to this machine, I was not able to resist the temptation of Catalina, so I installed the newest OSX on the laptop.

    Everything was quite nice – well, I could rant for a while about why it was important to drop 32bit compatibility, but I eventually solved everything there – but there a major problem emerged: when I checked out a repo of ours, I got the following message:

    $ git clone [email protected]:our/repo.git
    Cloning into 'repo'...
    remote: Counting objects: 20310, done.
    remote: Compressing objects: 100% (295/295), done.
    remote: Total 20310 (delta 254), reused 536 (delta 209)
    Receiving objects: 100% (20310/20310), 280.39 MiB | 2.38 MiB/s, done.
    Resolving deltas: 100% (12614/12614), done.
    Updating files: 100% (1849/1849), done.
    warning: the following paths have collided (e.g. case-sensitive paths
    on a case-insensitive filesystem) and only one from the same
    colliding group is in the working tree:
    
      'src/path/Configfile-1.0.cfg'
      'src/path/configfile-1.0.cfg'
    

    Oh gosh. I have to reformat my disk and start everything over. Maybe I can create a Time Machine backup, and restore everything? I just don’t feel like it.

    Some people tend to make the same mistakes again and again, and it seems I am one of those, but this time, I decided to fight back.

    Ok, so what can I do? I can create a new disk image, format it to case sensitive, mount it, and use it as a ‘project’ folder.

    $ hdiutil create -size 10g -fs "Case-sensitive Journaled HFS+" -type SPARSE -volname Projects ~/Projects.dmg
    $ hdiutil attach ~/Projects.dmg.sparseimage
    $ sudo setfile -a V /Volumes/Projects/
    $ killall Finder
    $ mkdir /Volumes/Projects/projects/
    $ ln -s /Volumes/Projects/projects/ ~/projects

    So let’s see what happened here?

    • I created a new disk image with a case-sensitive filesystem. The type is ‘spare’ which means it will automatically grow when needed, but initially it will take only 50mb on disk.
    • I mounted the image
    • I hid it on the desktop (This volume will be always mounted, so I don’t want to see the icon of it) – for this I set the invisible attibute with setfile, and restarted Finder
    • And finally I created the projects folder inside the volume, and linked it into my home directory.

    That’s all folks. For more convenience I added the volume into my login items, so the disk image is automatically mounted when I restart my computer.

    $ git clone [email protected]:our/repo.git
    Cloning into 'repo'...
    remote: Counting objects: 20310, done.
    remote: Compressing objects: 100% (295/295), done.
    remote: Total 20310 (delta 254), reused 536 (delta 209)
    Receiving objects: 100% (20310/20310), 280.39 MiB | 2.38 MiB/s, done.
    Resolving deltas: 100% (12614/12614), done.
    Updating files: 100% (1849/1849), done.
    $
  • Finally I am able to work under windows – with wsl 2

    I have to admit that I was not able to work on windows ever.


    I mean I tried, but my workflow did not fit windows. I use the terminal and gnu stuff mostly, I do not use an IDE, I use vim and shell, and that is good for me.


    That means I could work with Linux… mostly. But all the time I tried, I hit walls as there was VPN software I had problems working with, or some video chat app, or an admin tool for eg. Netware, or simply the computer my employer provided was not working with Linux, its battery drained super fast, or the touchpad did not work well, you name it. And I know that there are machines that have excellent Linux support, like the Dell’s XPS developer edition or some Lenovo machines, but I never had those. – I even had a year back in the early 2000s when I used FreeBSD as my main OS because the PCI modem I had money for wasn’t working well with Linux. (It didn’t work well under Windows tbh.)


    Back in 2009 I bought my first iMac, and working on that machine was awesome! Everything worked out of the box. There was no hardware which would cause any problem, and when I had to code something, I just opened my terminal and started working in an environment that was pretty close to a Linux experience. I needed to change a few utils for their GNU replacement, but that’s all. I was able to work on my Mac as I was able to work on my Linux box – but it was way better. Hooray.


    Years passed, and my main work environment became OSX, I loved it, I had a fine Macbook Air, and everything worked as planned.


    One day I bought a PC for home because I wanted to play video games, and sometimes I tried to work with that, but I was not able to, as my work environment just did not fit there. I tried everything. I tried to run Virtualbox and ssh-d into that, but I hated all the terminal emulators I’ve found. It was simply inconvenient in every possible way.


    In the meantime, my love with the Mac ended – the ‘new’ series for MacBook pros with touch bar and crappy keyboards just killed the experience for me. I am still working on a Mac because that is still the best option, but the love is gone.


    When WSL was released, I tried to use it, but it wasn’t good either. I missed locally starting my daemons such as MySQL or Docker, and it did not fit my workflow. Of course, I was able to run my services under windows, and access them from my WSL installation, but it wasn’t good. It was a bad experience. The best thing I was able to do was spin up a cloud instance and use my WSL installation to ssh into that.


    When I first heard about WSL 2.0 it sounded great to me, so I decided to try it out as early as I could. I enrolled in the insider program and I installed a version which included it and started to work with it.


    So far it is good. It provides me the Linux experience from the moment I open my terminal. All my workflows and utilities behave the way I was used to, and it has a seamless integration to my windows desktop.
    `