Pythons argparse for dummies
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 »Golden nuggets where no entry is longer than my expected attention span
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 »
If you haven’t lived under a rock for a couple of years, you must have stumbled upon npm, the standard node package manager, in one way […]
Continue reading »Wish I had this list a couple of years ago! https://dev.to/citizen428/10-common-git-problems-and-how-to-fix-them-234o
Continue reading »
CRUD? CRUD is short for Create-Read-Update-Delete, and that is computer-lingo for everything you need to keep one or more database tables updated. MYSQL Since WordPress […]
Continue reading »by accessing your raspberry pi with ssh -X user@hostname-or-ipaddr you can access graphical tools like (the one I always test with) xclock or the file […]
Continue reading »
The Raspberry Pi is a fantastic piece of equipment, and what I like the most is that it resembles a standard computer with Ubuntu, just […]
Continue reading »
A Complete Guide to Grid A great example of how to use Grid CSS to show thumbnails https://codepen.io/SitePoint/pen/JBqgGm
Continue reading »Ruby is a dynamic language, and by that I mean that it can add features to itself, it can write self-modifying code, and it can […]
Continue reading »
There are so many web frameworks. And their supporters all claim that “their” framework is the one with the most momentum. The site http://hotframeworks.com tries […]
Continue reading »First of all, Gulp and Webpack are not beasts of the same kind. Gulp is a task runner, which you can use for various tasks […]
Continue reading »What do you do, when you want to extract some data from a system, but there is no neat API for that particular service? Well […]
Continue reading »
Introduction Design Patterns are an important power tool in your toolbox. You will fall back on these trusty patterns again and again, knowing that you […]
Continue reading »Rails is great, but nowadays a full page refresh is as unpopular as male ponytails or shoulder pads. Some write full-stack SPA sites, which is […]
Continue reading »
OK, let’s have it, are you a Gulper or a Grunter? To some, build systems are a major issue. To me, not so much. In […]
Continue reading »This is the recommended way of serving API-endpoints in a regular Rails application. Note the {format:json} in the “api” section. Rails default is {format :html} […]
Continue reading »Intro Nowadays it is popular to create fullstack-JS applications (meaning both front- and backend written in Javascript) but what if you want to use the […]
Continue reading »
Very often, I would say almost always, you have nested models in a Web application. In Rails, you (most often) specify it using has_many and […]
Continue reading »From Quora: https://www.quora.com/What-makes-Rails-a-framework-worth-learning-in-2017 David Heinemeier Hansson, Creator of Ruby on Rails, Founder & CTO at Basecamp The same reasons why it was a framework […]
Continue reading »
I’d like to present a short and to-the-point instruction on how to add some Ajax pizazz to a simple Rails-generated page. It won’t take you […]
Continue reading »(since I always forget the username part) mkdir MyDir sudo mount -t cifs -o username=myusername,password=mysecretpass //<ip-address>/SHARE MyDir/ Reference: https://access.redhat.com/solutions/448263
Continue reading »
Almost 5 years ago (time flies!) Phil Webb and Dave Syer wrote a blog and twitter entry that boiled down to this: @Controller class ThisWillActuallyRun […]
Continue reading »
Phil Nash wrote a great article about common Rails errors and how to deal with them. The common errors are: 1. ActionController::RoutingError 2. NoMethodError: undefined […]
Continue reading »
Apache Apache is a great piece of website software. What I like the best, is that it is mature and reliable. It is also easy […]
Continue reading »
Divi (https://www.elegantthemes.com) $89/år eller $249 lifetime fee OceanWP Enfold $59 (https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990)
Continue reading »Note: All commands must be prefixed with “sudo” in case your user account doesn’t have enough privileges. System $ uname -a Displays Linux system information […]
Continue reading »
ref: https://tecadmin.net/configure-dns-server-on-ubuntu-linuxmint/ BIND9 If you have a “normally complex” network at home, You usually have an internet router which takes care of DNS-resolutions. However the downside […]
Continue reading »
In accordance with the new policy of releasing a new Java version every 6 months, we now have a fresh installation of Java 11 to […]
Continue reading »
how-to-install-node-js-on-ubuntu-16-04 has a great explanation, but long, about the details. The short version come here: Do NOT use the ubuntu package version. It´s old and named […]
Continue reading »Do you get 100Mbps link speed when you expected Gigabit? In my experience, it´s always the cable to blame, 9 times out of ten. The […]
Continue reading »
Nowadays, it’s easier than ever to create your own computer language. Whether it’s a simple rule-system, or a full-blown language, you can create the tokenizer […]
Continue reading »
Microservices, when supported by a robust framework, is a incredibly productive way of building large-scale services. You get a lot of support from the framework, […]
Continue reading »I love this blog post from Daniel Clark, who normally writes little nuggets about Ruby on Rails. But here he describes how to edit video […]
Continue reading »https://www.facebook.com/groups/wpsvse/permalink/10156211401199699/ https://www.facebook.com/groups/wpsvse/permalink/10156215396494699/
Continue reading »This worked for me: https://askubuntu.com/questions/522431/how-to-send-an-email-using-command-line With CERT fixes from here: https://stackoverflow.com/questions/39341137/postfix-must-issue-a-starttls-command-first
Continue reading »This is a good overview, but with some syntactical mistakes: https://hostpresto.com/community/tutorials/how-to-deploy-multiple-wordpress-sites-on-a-single-ubuntu-16-04-host/ Whats strange is that my installation on CAESAR gives error ERROR 1698 (28000): Access […]
Continue reading »CREATE USER ‘admin’@’%’ IDENTIFIED BY ‘mysecretpassword’; GRANT ALL PRIVILEGES ON *.* TO ‘admin’@’%’ WITH GRANT OPTION; FLUSH PRIVILEGES;
Continue reading »For macOS/OSX all you need to do is download and run the DMG from http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
Continue reading »sudo adduser alpha Answer all quesions, I isually hit Enter on all except Full Name If you want to make this a sudo-able user, add […]
Continue reading »Saving your git password lets you skip giving username/password at every checkin Normally you use git config –global credential.helper store but this is not very […]
Continue reading »MySQL/MariaDB Remember to change bind-address to 0.0.0.0. By default it is set to 127.0.0.1 and then you can’t connect remotely! Exactly which config file it […]
Continue reading »http://www.linuxproblem.org/art_9.html Basically you add the content of your own ~/.ssh/id_rsa.pub to the targets ~/.ssh/authorized_keys file. (Replace ‘a’ with your username, A with your hostname or […]
Continue reading »Since Oracles own instructions (https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-linux-platforms.htm) sucks big time, I can recommend this one instead: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 Simple and easy to follow. And it WORKS!
Continue reading »First of all, check the documentation: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server then go ahead: sudo apt-get install samba decide which LINUX user should be used (or create a new). […]
Continue reading »Some alternatives to Angular 1.x (deprecated), Angular 2 (Typescript) and Angular v4 https://www.slant.co/topics/4306/~angular-js-alternatives vue.js riot react (not a framework, per se. It’s a view rendering […]
Continue reading »General structure BEGIN { print “BEGIN” } /filter1/ { print $0 } /$6 == “Nov”/ { print $1, $2 } […]
Continue reading »
The single reason why I started dating Ruby class VCR def initialize @messages = [] end def method_missing(method, *args, &block) @messages << [method, args, block] […]
Continue reading »You can find a lot of business terms here https://en.wikipedia.org/wiki/List_of_business_terms https://en.wikipedia.org/wiki/List_of_buzzwords Churn Rate Churn rate, when applied to a customer base, refers to the proportion […]
Continue reading »