I got really bored so I wrote a simple dithering tool in Kotlin. It is surprising how little loss you get when reducing an image to 8 colors. Source code: https://gist.github.com/Frederikam/115a15450bec82720d3bb5a70b5ceefd
Grammar, typesetting, rant Show more
Danish has a lot of ambiguous words that are spelled the same, some of which can even be used in the same context.
For instance, "En vis mand" can either mean "A wise man" or "A certain man". This would never be ambiguous in speech.
It really bothers me that most speakers don't know or don't use the optional accent aigu (´), which can be used to make words unambiguous. "vís" can only mean "wise".
At least my #typesetting looks fancypants ¯\_(ツ)_/¯
Me: "Oh no, my bicycle broke. Now I need to bring my bicycle to a mechanic. Oh noes, I neglected to go to the mechanic due to [insert bad excuses]. Now I need to skip lectures to have time to bring it to a mechanic."
Also me: *reattaches bike chain with no effort after skipping uni*
I am not as rational as I like to think I am.
It's wildly obscure but so good https://www.youtube.com/watch?v=GjgX6NlDP7M&index=2&list=OLAK5uy_mNQXFv3MDMSAllsufib0yvWhlxHTjnvfY
At work I am storing over 46 million entities, written to several thousands of times per second. These entities are all stored in RAM. I wonder if it would be economically viable to store them on SSDs.
The problem with SSDs is that they are prone to fail after many writes, so maybe only Optane would be viable.
I really love reactive and declarative syntax. This snippet of code does 7 things:
1. Downloads a page from a paging API
2. Serializes the body
3. Saves the link to the next page
4. Takes the body and creates a stream of multiple list items
5. Maps each of those items to database entities
6. Saves all of those to a database
7. Waits for everything to complete, all without blocking any threads, before handling the next page
In my latest exam there was a multiple choice question about where it would be appropriate to keep comments after completing a software project. I hate that kind of question, because it really boils down to circumstance and preference, and I didn't agree with any of the 6 answers.
Why would you even remove comments before release?
21 y/o studying Software Engineering and the creator of FredBoat. Mostly self-taught.
Welcome to my dump of assorted thoughts.
We are a cute and loving international community Ｏ(≧▽≦)Ｏ !