NanoDano's blog

Advertisement

Advertisement

Ruby Rake Tutorial

The rake utility and Rakefile are Ruby's version of make and Makefile. Personally, I find rake much more pleasant to work with than make. While it is written in Ruby, you can use it as task runner for a project of any language. Let's look at some basic usage of rake.

How to solve "Error: Cannot find module '*.js'" with Node.js

If you are trying to run your Node.js application and you get something like this:

Error: Cannot find module 'C:\Users\Me\my_app.js'

then you are most likely trying to run the wrong file. It is possible you are missing a dependency that is needed from npm install, but if it says it cannot find the main file you are trying to run, then you are trying to run a file that does not exist. It is a common mistake.

Angular vs React vs Vue.js

Recently I needed to take my front end development skills to the next level. Whenever I needed to build a web interface, it was simple enough to use Bootstrap and the jQuery that came packaged with it. This worked fine when the templates were being rendered server-side using templates like with Django, Flask, WordPress, etc.

The better way to make web applications these days though is to have a separate REST API running the back-end, and then have a front-end that consists only of static HTML, CSS and JavaScript that interact with the API using AJAX calls.

I decided to take the time to learn Angular, React, and Vue.js enough to form an opinion and understand the benefits and drawbacks of each one. This is my comparison and conclusion. I chose Angular and I will explain why.

For reference:

Dialog Boxes with Python

Dialog boxes are a commonly used GUI element to provide feedback to the user and also to prompt the user for information or to take an action. Some examples of common dialogs are:

  • A simple message: "Press OK to continue"
  • Ask for "OK or cancel"
  • Ask for "Yes, no or cancel"

We will look at several different methods for creating dialog boxes in Python including cross-platform options like tkinter and PyAutoGUI, as well as a couple Windows specific options.

Advertisement

Advertisement