9 votes

What programming/technical projects have you been working on?

This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

6 comments

  1. Apos
    Link
    I just released the first version of my Shapes library for MonoGame. Right now I only support circles. They look crisp at any size: https://gfycat.com/uniquecluelessiridescentshark. It's an...

    I just released the first version of my Shapes library for MonoGame.

    Right now I only support circles. They look crisp at any size: https://gfycat.com/uniquecluelessiridescentshark.

    It's an SDF-based shape rendering library. SDF means signed distance function / field. Essentially, for any pixel on the screen, you have a function that tells you how far the nearest edge of the shape you're drawing is. Based on that distance, you can do some logic. You could decide for example to draw all the pixels in blue if they are within a distance range. This would allow you to draw a border. You can get really crazy with them: https://www.youtube.com/watch?v=8--5LwHRhjk.

    The rendering requires a special shader. To support many shapes, I'm thinking of doing a ubershader and somehow pass which shape should be drawn in the shape draw call. This would allow me to batch thousands of shapes at the same time in a single draw command which should hopeful give some good performances.

    Overall, I can't wait to start using it in my game projects.

    6 votes
  2. [4]
    archevel
    Link
    I made a POC for fetching bank transactions via scraping using pyppeteer. The tricky but was loging in to my bank since it requires use of BankID and is trigged with a qr code. It ended up being a...

    I made a POC for fetching bank transactions via scraping using pyppeteer. The tricky but was loging in to my bank since it requires use of BankID and is trigged with a qr code. It ended up being a short ~15 LOC script that prints the transactions I have on my main bank account. Not 100% sure if it is a useful approach, but fun little exercise none the less!

    3 votes
    1. [2]
      stu2b50
      Link Parent
      It’s pretty much the only approach. It’s what Plaid (the de facto bank integration service) is doing under the hood for most banks.

      It’s pretty much the only approach. It’s what Plaid (the de facto bank integration service) is doing under the hood for most banks.

      4 votes
      1. archevel
        Link Parent
        Yeah, but I think in the UK the situation seems better. There's the open banking stuff that ought to make it possible to do some basic stuff there. Alas we haven't got something like that mandated...

        Yeah, but I think in the UK the situation seems better. There's the open banking stuff that ought to make it possible to do some basic stuff there. Alas we haven't got something like that mandated yet here in Sweden :(

        1 vote
    2. vord
      Link Parent
      For what it's worth, GNUcash has some great documentation on some open source methods to connect to banks programatically, including many US banks. Edit: @stu2b50 and @archevel might have interest

      For what it's worth, GNUcash has some great documentation on some open source methods to connect to banks programatically, including many US banks.

      Edit: @stu2b50 and @archevel might have interest

      3 votes
  3. tape
    Link
    I haven't sat down and started yet (the hardest part) but I'm giving good thought to making a personal time clock page on my raspi instead of the flat file time clock program I used before the...

    I haven't sat down and started yet (the hardest part) but I'm giving good thought to making a personal time clock page on my raspi instead of the flat file time clock program I used before the pandemic to track my hours at work.

    We're not required to track hours because I'm salary, but just like they wouldn't want me to cheat them out of time, I don't want them to cheat me out of time.

    I already have the pi running lamp for tracking my finances with just a shitty php/msql set of pages. And one page to wol my computer if I would need into it for anything during the day.

    2 votes