There are a few good reasons to set up a small Minecraft server for your kids! One is that you can introduce online gaming in a controlled pace, another reason is that you (together with the kids of course) can decide on what world parameters and what plugins to install. Ultimately it allows the kids to learn a bit about what a server is, what it takes to run it and also administer it themselves....
Using @Autowired in abstract classes
I recently came across a problem when migrating an old java code base to use the Spring framework. More specific we needed to implement spring-data-mongo and took the opportunity to “springify” the application properly. The app is using quite a few abstract classes, sometimes a couple of levels deep and as an example the top level abstract class did contain code to read from properties files and also did have some class level members that needed to instantiated....
Open external links in Hugo
When adding links to external sites in markdown there is no way to define that they should open up in a new windows - this is a simplification made in Markdown. In this site I create links to various resources and it’s desirable to open up those in a new window. Out of the box it seems that Hugo is stripping out html links from the markdown when producing the static pages, so a workaround need to be done!...
Big Sur and Printers
Printers has always been a source of trouble - either it won’t print correctly or not at all. If you add a network to the mix it makes it worse. So when my Canon MF645C started to print just some content (the pictures, none of the text on the pages) I was not surprised. I did realized that I upgraded to macOS Big Sur a few days back (jumping from 10....
Exporting From Evernote
Evernote is a very flexible and nice application for note-taking. I especially like the fact that it’s working so well on multiple platforms. I’m using it on Android, ipadOS, macOS and on the web, and all without syncing problems. Testing one if the tools I just took one among all (ok, I like that it’s installable with Homebrew) https://github.com/wormi4ok/evernote2md brew install evernote2md and then run like this evernote2md (flags) [input] [outputDir] Simple note Exported one note from Evernote to an empty folder and then ran the following...
React Functions Lifecycle
When moving away to from class components in React (simpler syntax and enables the use of hooks) you sometimes need to attach some code according to the lifecycle of the component. The code below is an example of this. import React from 'react' const Home = (props) => { React.useEffect(() => { console.log('Component has mounted'); return () => { console.log('Component is unmounting'); }; }, []); React.useEffect(() => { console.log('Component updated'); }); return ( <div> <h3>Home</h3> </div> ); } export default Home ...
Setting up a micro blog
Why Yes, you should have a clear view of why you set up a new website, and of course pair that with a social media strategy and all that. Or… just spin up a small site for the fun of it… I saw two reasons why I set up this site; Create a space for hosting all of those thoughts that pops up daily just by browsing the internet, and to be able to add this to a site that I own and not a mega-corp....