YeenDeer softness blog (programming and electronics)

Ellie the Yeen is a soft YeenDeer that mweeoops and does programming

View on GitHub About Bots Projects Tags

The YeenDeer softness blog

Hi this is the blog of a YeenDeer mostly about programming and similar topics
  • How to copy an array

    Copying arrays is something that seems like a very obvious thing in programming but different languages do it in completely different ways.

  • How to configure Apache to do nothing

    Sometimes you want to configure Apache to really do nothing. No server scripts and just use it as a purely static file server. An example of this would be when you have a Downloads folder and you want to share without there being issues due to how Apache functions.

  • Shell symbol magic

    Shell languages like bash have some interesting syntax that looks like magic as it is just symbols in the syntax and not a single word actually written. This makes writing these things extremely hard to remember or write but once you know them you can do quite some useful things using shells.

  • Downloader browser extension for aria2

    So previously we looked at how to hardlink downloaded files in aria2 but this time we are going to look how to make a simple browser extension to quickly add anything you want to the download queue.

  • Hardlink finished files in aria2

    So I recently started to use the aria2 download manager since my NAS is starting to really break down at this point but there is one single feature it lacks. That feature is to be able to move finished files into a different directory. With torrents this tends to be somewhat hard to do since they have a seeding phase after the download phase and only the application itself is allowed to move the files during that phase as otherwise it cannot upload them to other users.

  • Escapes

    Escaping is when you want to place some code in some other code and you modify it first in order to. Here are some examples of the concept and how it might look in different situations.

  • What is false?

    An interesting thing in programming languages is what is actually considered false when comparing it as a boolean such as inside an if clause. Each language has their own way of comparing what is false where some have bizarre rules and some have very simple ones. Certain languages eve have rules where some types are considered false sometimes.

  • Systemd sockets

    You might have heard about inetd which is often called a super-server according to Wikipedia. But did you know the systemd can do the same thing using something called systemd sockets. I will show you how to use them.

  • Useful Keyboard Shortcuts

    There are a lot of useful keyboard shortcuts in a large amount of applications and operating systems that make using those a lot easier and faster. You should always look up the keyboard shortcuts for the applications you use to be able them better. Here are some various examples from apps I commonly use.

  • Ensure a line is in a file in bash, zsh and sh

    Sometimes you want to ensure a certain line is in a config file for example that there is something in authorized_keys or anything like that really. It is quite common to do this manually by opening the file and putting in the line if it is missing and so on. You can however automate the entire process using shell.

  • Command Not Found

    Have you ever wondered what specifically happens when a command is not found on bash or zsh. Some you get some kind of message about installation. Here is how it works.

  • How to configure Requests in Python to retry

    There is a HTTP library for Python called Requests that is very widely used with a user friendly interface for most things except how to actually set how many retries it should do.

  • LeafPHP

    One thing I have not done much with PHP is looking at different frameworks. For many other languages such as Python and Java I have used quite some frameworks such as Netty, Twisted, Flask, Quart, and CherryPy. For PHP however I have not seen many at all that I have really looked into. For that reason I am looking into one that looks good called LeafPHP.

  • Webhook generator and mod_rewrite

    Sometimes you have a large amount of webhooks you want to receive from many different services so why not make one single handler for all of them and with fancy URLs too.

  • Turning off one of many screens on Windows 10 programmatically

    Lets say you have a computer setup like I do where you have 2 computers and one of them is a gaming computer using the middle screen that is on at times and the rest is a computer for everything else using several screens (more than 2) including the middle screen.

  • Getting back into electronics and soldering

    Decided to get into electronics more lately so decided to do some soldering of several microprocessor boards and also got a new camera setup to allow of making videos and streams about electronics. Currently waiting for a delivery of some PCBs I made in Kicad and Fritzing which will hopefully arrive soon. Here are some videos of me soldering.

  • How the plotter converts images to Gcode

    So you might know that I have a pen plotter which I built. I first made a smaller version that was not as good then in 2021 the one I have today which works great. Lately I have been plotting quite a few usernames and profile pictures of those liking a certain Mastodon, Bsky and Twitter post.

  • 3D print GIFs using OctoPrint

    OctoPrint has a feature to automatically make videos using a webcam and mjpg streamer or any other camera that can take snapshots by getting some data from an URL. This can be convenient but sometimes you want things that are sized differently or maybe a GIF instead of a video.

  • Get notifications when 3D prints are done in OctoPrint

    When you have 3D prints in OctoPrint it is convenient to know when a print is done and how it looks. Since Octoprint already tends to be set up with a webcam or other camera in mind this is quite easy to set up.

  • How to enable browser notifications in the local network

    The browser notification API is a bit quirky that it either requires either that you are from localhost or that you have a valid ssl certificate. There is however a way around it that involves using a self signed certificate. There are many guides how to set up such a certificate but it depends on what browser you have.

  • 1
  • 2