Setting up Rabbit MQ Server
Here are some quick notes that I refer to when installing Rabbit MQ server on Linux. Installation Read and follow: https://www.rabbitmq.com/download.html Quickstart Make sure the […]
Continue reading »Golden nuggets where no entry is longer than my expected attention span
Here are some quick notes that I refer to when installing Rabbit MQ server on Linux. Installation Read and follow: https://www.rabbitmq.com/download.html Quickstart Make sure the […]
Continue reading »
The following example is built using a Python Flask backend, a CURL-script to test it, and a simple React frontend that logs in, gets an […]
Continue reading »
I often do this: I hurry creating a git repository, do a quick “git add .” and commits. Afterworth, after a few more commits, I […]
Continue reading »
Do you have a lot of CSV files, with sometimes many rows of data that you need to import to a Mysql database? You could […]
Continue reading »
Some people think Spring and Spring Boot adds to much “magic” to a Java app, and to some extend I agree. Have they gone too […]
Continue reading »
Gradle is a beast! Having a background in simpler build systems like Makefile and Ant, Gradles DSL confused me initially. Gradle has sections that basically […]
Continue reading »
When I moved a bunch of classes from a rather large Spring Boot application into a separate library (se more about that process here), I […]
Continue reading »One of my interests which are not computer related, is the murder of Olof Palme, Feb 28 1986. Here is the last interview with Stig […]
Continue reading »
Why it sucks? The TL;DR is “It’s not Linux”. I really want to like Windows. And God knows I have tried. A couple of times […]
Continue reading »
Running webservers on own hardware I develop a lot of websites, and I run them on my own hardware (a Ubuntu Server). When developing (on […]
Continue reading »
For some reason, Linux Mint (and other variants probably?) creates a measily 2GB swap file, which is too small IMHO when you have 16GB or […]
Continue reading »
How the system path is set is quite complicated, depending on your system and shell setup. But for the most common one (Linux Mint/Bash in […]
Continue reading »
ActiveStorage is a gem, I really think so. Before AS, whenevener I needed to attach a “blob” (image or other document) to a model it […]
Continue reading »
A friend asked me to help debug an app that tried to detect three different colors. It was written in Python and used three precreated […]
Continue reading »
The major difference between Linux and Windows is the quality of the terminal. I would say the comparison is like comparing a with a But […]
Continue reading »
I had terrible problems connecting to my Wifi printer Canon MG5450. It worked perfectly from my Imac, but from my Linux Box I got “server-error-internal-error” […]
Continue reading »If you get this (or similar) error when running: /home/peter/.pyenv/versions/3.8.3/lib/python3.8/site-packages/pandas/compat/__init__.py:117: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use […]
Continue reading »In ~/Desktop, create a file named Eclipse.desktop with content: [Desktop Entry] Version=x.y Name=ProgramName Comment=This is my comment Exec=/home/peter/Documents/exec.sh Icon=/home/peter/Pictures/icon.png Terminal=false Type=Application Categories=Utility;Application; if you need […]
Continue reading »This code connects to a Mysql database, reads ths content of a table and imports it into a Dataframe. From there you can twist and […]
Continue reading »
Even with a moderately large React app, you try to structure your modules and end up here in the end: import ../../../components/dialogs/enter.jsx WTF?? Good luck […]
Continue reading »
How do you setup VS Code, which is a great code editor, for Ruby development? Well you start by installing these gems: gem install solargraph […]
Continue reading »
It’s not as straightforward as you might think to completely remove MySQL from your linux box. Here are the details: Use apt to uninstall and […]
Continue reading »I just found this amazing article about the finer details of Websockets, and how to implement a WS server using Ruby. I just had to […]
Continue reading »
iotop is installed via sudo apt install iotop and is a great tool for monitoring I/O in your box. Here are a few tips […]
Continue reading »So it finally happened. After years of usage I managed to f**k up my linux boot. I suspect the HDD was about to give up […]
Continue reading »Top 10 javascript console tips! Tip #0 console.assert() Tip #1 console.trace() Tip #2 console.time() && console.timeEnd() Tip #3 console.memory Tip #4 console.profile(‘profileName’) & console.profileEnd(‘profileName’) Tip […]
Continue reading »
Installation Add the necessary modules yarn add react-redux yarn add redux Fix the component import {connect} from ‘react-redux’; // definition of DummyComponent here… const mapStateToProps […]
Continue reading »
The Actuator is a great tool. The documentation and history of changed configuration and implementation is however a big big mess. To cut a LONG […]
Continue reading »This is how you can test the excellent Highcharts library. Make sure you have JQuery added first. <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/highstock/6.0.2/css/highcharts.css” integrity=”sha256-ji+33kRPEXS0+FM/AbApEs8n5kT2UBiGyk36zs1F9gE=” crossorigin=”anonymous” /> Also include […]
Continue reading »This is a piece of code I keep to remind me of the magic in Ruby. class Main # you can dynamically define methods with […]
Continue reading »If you, like me, often code applications against the TWS API from Interactive Brokers, you will have good use of the following resources: The official […]
Continue reading »
Yes it’s awesome, I know! But even more so, is the list of tools, gems and frameworks that are available for Ruby programmers. Here is […]
Continue reading »Perfecting your Python development setup by RealPython Perfect Your Python Development Setup (Learning Path) – Real Python Optimize your Python development setup with this learning […]
Continue reading »
You now the command top? The one you use when you want to see if there is one process hogging all the CPU? But there […]
Continue reading »
Since I was used to use rvm to handle multiple ruby versions, and a .ruby-version file which automatically switched version for me, of course I […]
Continue reading »
If you have an account at the eminent service dyndns.com, you can update it automatically from your host by using this method: Start by installing […]
Continue reading »If you use the Pandas DataReader and get this message: pandas_datareader.exceptions.ImmediateDeprecationError: Google finance has been immediately deprecated due to large breaks in the API without […]
Continue reading »
I can’t stand long articles so here’s a short bullet list: Searching in:channelname, in:name, from:username, from:me, has:link, has:star, has:emojiname, before, after, on, during Commands /remind […]
Continue reading »This is a no-nonsense instruction of how to create a child theme in WordPress. We create it from the existing theme “twentynineteen” 1. Create a […]
Continue reading »
Since I think the documentation is lacking and I always have to rely on Stackoverflow every time I want to use it, I keep this […]
Continue reading »
Lets say you get sick and tired of writing this in your views: <div class=”field”> <%=form.label :location %> <%=form.text_field :location %> </div> and instead you […]
Continue reading »I like the fixed menu, that stays in place when your scroll the content, but I have seen a few websites do a cool transition […]
Continue reading »Since you need a domain name, and I almost always use dynamic domain services, I recommend setting up ddclient so that the dynamic DNS is […]
Continue reading »
Putting a server on the internet is today similar to walking alone at night in a part of the city you know nothing about, where […]
Continue reading »You should specify a lot of things in your HTML header nowadays. Previously it was enough with some CSS and JS script includes. Now we […]
Continue reading »
Creating a Domain Specific Language has been on my TODO-list for a long time! Ruby is the perfect language for this task I have collected […]
Continue reading »
Python is a great language, but sometimes it makes life more complicated than necessary. I don’t know if this is because it’s heritage (C) or […]
Continue reading »
Linux is great, but granted, sometime it can feel a little complicated. Installing and configuring software always start with a Google: “howto install XXX Ubuntu […]
Continue reading »
Rails helpers like image_url, link_to, form_with, fields_for etc are nifty little “macros” that makes your Rails code smaller and clearer. I mean, who doesn’t prefer […]
Continue reading »
I know, it’s a mouthful! I never thought I’d understand asymmetric cryptography, partly because I tend to stay away from REALLY complicated stuff, and partly […]
Continue reading »
Lots of harddisk space leads to…. lots of files. Why throw stuff away when keeping it is so cheap? I always end up with a […]
Continue reading »Too many frameworks? Check. Too many tools? Check. Too many crossroads? Then use this roadmap. It will help you decide which path to take in […]
Continue reading »
UPDATED OCT 2020 See this link for a much better procedure: https://medium.com/@aadeshshah/pre-installed-and-pre-configured-raspbian-with-opencv-4-1-0-for-raspberry-pi-3-model-b-b-9c307b9a993a This is left for archiving purposes: As usual, I will keep this […]
Continue reading »If the title to this post seems impossible to understand, please read this conversation between Gavin Sinclair and Martin de Mello. Something that was really […]
Continue reading »