3.5 inch GPIO display and RPi

There are a lot of displays for Raspberry Pi. We can list them by image technology:

And by connection method:

There are a lot of arguments and parameters to consider when picking one that is best for you:

  • DSI is the most expensive, but leaves both HDMI and GPIO port free
  • HDMI is cheaper, but occupies one USB port (powering) and of course HDMI port
  • GPIO is the cheapest solution, but occupies GPIO port which is not acceptable in most scenarios

I have decided to buy the last one because it was purely for testing purposes.

Read More “3.5 inch GPIO display and RPi”

Doing IT in Switzerland

I have a chat with a HR guy from Switzerland. He gave me some wages for the IT (May 2021; post-COVID!):

Most likely gross, but still… Swiss IT is doing good. Really, good…

Get started with Raspberry Pi

In this quite old article I have provided just a typical non-sense introductory blah, blah about playing with Raspberry Pi. People who hasn’t done anything yet to their RPi box where sent there to the original “Get started with Raspberry Pi” article at the RPi’s homepage.

Now, it is time to write my very own “getting started” article. A short list-command memo of what should be considered after you unpack, power up and access via SSH your next RPi box.

Read More “Get started with Raspberry Pi”

Login as root user to Raspberry Pi

As in this article, you cannot login as a root user in Raspberry Pi (neither locally nor via SSH), because you don’t know the default’s root password. In this article, I’ll show you how to change it to be able to login to it, but only locally (still no SSH access), which is good.

Again, as in here, you should never, ever access or use root account. Instead you should use pi user (after changing its default password) and elevate it to superuser with sudo su or by casting sudo in front of each console command.

Read More “Login as root user to Raspberry Pi”

Various wako problems with Alt+Tab and Microsoft products

Ever since Windows exists there was a very handy Alt+Tab combination to quickly switch between open applications. Nowadays, when people are using many screens for single computer it might be less often used, but still is very familiar and handy.

Not for so long time, but still for quite long, Microsoft is doing everything to make that simple, obvious and easy to understand combination work as wrong as possible in their products, so from time to time you may run into a really weird behaviour. For example:

Fortunately these inconsistencies and workflow breakers exists only in certain Microsoft products and are easy to fix.

Read More “Various wako problems with Alt+Tab and Microsoft products”

MEGA — file sharing and cloud storage far above average

The IT world grows, big data becomes your everyday’s pal. Whether you are a developer or project manager, you need to store more and more data each and every day. Getting a good quality and reliable solution becomes a bit challenge. To help you with that I wanted to tell you a bit about MEGA service.

I found it by a complete coincidence (I am not getting paid for this post!) — a friend has shared a file with me. I dug into details and found it interesting. In my opinion MEGA is far better than most file sharing services and can challenge even well known cloud storage options like Google Drive, Dropbox or OneDrive.

So, what makes MEGA that unique? In short: command-line tool, NAS support, mobile apps, browser’s extensions and many more.

Read More “MEGA — file sharing and cloud storage far above average”

Force Microsoft Edge to safe images with .jpg instead of .jfif extension

There are million of guides in the Internet on how to correct this stupid default behavior that happens in Microsoft Edge nearly every time and in Google Chrome from time to time. But all these solutions requires you to read through long block of text or watch 2-3 minutes long video while solution is actually ultra-fast.

  1. Start > type regedit > hit Enter
  2. Paste Computer\HKEY_CLASSES_ROOT\MIME\Database\Content Type\image/jpeg to address bar > hit Enter
  3. Double click on Extension > paste .jpg > hit Enter

And… you’re done! Restart Edge to see the effects. No more .jpg files saved with stupid .jfif extension.

keepachangelog.com of your stuff?

I am not intend to tell you that you should keep a change log of any piece of software that you ever develop. This is as obvious as the fact that sun shines and fire burns. If you don’t understand this or disagree then you’re certainly at the wrong address.

However, with this article I am going to tell you about a specific way of keeping history of changes to your software. The one that keepachangelog.com suggests. The one that I immediately fell in love with.

Read More “keepachangelog.com of your stuff?”

Temp Mail and Temp Number for QA purposes, but not only…

The Temp Mail and Temp Number services were originally created (according to their owners) to lift of your problem of being bloated with stupid newsletters and SPAM emails and text messages, when you use your actual mailbox address or phone number in order to register to some service.

With these services you can totally forget about such pains because you’re getting a fully working email address or SMS receive-enabled phone number that will self-destruct after twenty minutes or so.

If you are a developer you may already catch an idea that you can use this for a QA purposes.

Read More “Temp Mail and Temp Number for QA purposes, but not only…”

All Raspberry Pi default logins and passwords

I don’t like unnecessary blah, blah and I don’t like blogs bloated with ads, so I decided to steal this source and transform it into a simple list of default logins and passwords on various Raspberry Pi bases and clones.

All the glory (copyright and authorship) goes to tutorials-raspberrypi.com.

You read more about users at base Raspberry Pi (no clone) here.

Read More “All Raspberry Pi default logins and passwords”

Put significance on tens and ones or round to a negative precision [updated!]

I had a situation in Excel where tens and ones are the only significant parts of a any number. For some Polish language-specific issues I have come with the situation that no matter how big number is, I need to know the value of its last two digits or last digit.

For example:

21 --> 21 and 1
56 --> 56 and 6
160 --> 60 and 0
1122 --> 22 and 2
679014 --> 14 and 4
1053405 --> 5 and 5

Learning the fact that ROUND(), ROUNDUP() and ROUNDDOWN() functions in Excel can be used with a negative precision parameter helped me solved this issue.

I am not too good in Excel, so maybe (update!) there are prettier solutions. This one works, however…

Read More “Put significance on tens and ones or round to a negative precision [updated!]”

Introduction to curl

This is just a barely memo about very, very basics of curl. Since curl fetches URLs and data from some endpoints, it can be used for a variety of reasons. I am using to for a very basic (and quick!) API calls tests.

If you’re on Linux, Unix or any of its clones or if you’re on Mac then you most likely have curl. If you’re on Windows, but you’re using Git for Windows (or some similar tool) then you have curl.

So, let’s jump into that basics. Be warned — you will not find here anything that you wouldn’t already knew.

Read More “Introduction to curl”

Developing applications for Raspberry Pi or Linux

Depending on: project’s scope, business expectations, your knowledge and Raspberry Pi’s role you can develop software for RPi in mainly three ways:

  1. Turn Raspberry Pi into API-like webserver with node.js and do all the programming in clients.
  2. Develop a HTML/CSS/JS application
  3. Develop an native Raspberry Pi app

All of the above require you to:

  • Develop a regular Linux app
  • Optimised to use hardware and computing power of Raspberry Pi
  • Run it in Raspbian OS or any other Linux distribution of your choice

And, if you really want to get your hands dirty and truly have no limits then you must forget about Linux and start thinking about Ultibo (there’s a separate article for that).

Developing in Ultibo (or similar complete embedded development environment) requires a lot of expertise, development knowledge and practice. And simply isn’t an option for all. Especially, if you only need to build a quick-and-easy app for RapberryPi. For these purposes this article lists details about RPi development.

Read More “Developing applications for Raspberry Pi or Linux”

Pluralized and non-pluralized rules for the same REST controller

The quickest way of adding REST support to your Yii 2 application is to add REST controller to it and configure REST rules. Just a couple of line and framework will do all the dirty stuff for you “behind the scene”.

If you do this then your REST rules will have pluralize property set to true be default meaning that even though you are using controller’s name in singular (i.e. UserController, PostController etc.) your REST URL rules will have it in plural, i.e. GET /posts/12, DELETE /posts/13 etc.

Since I am a purification and perfection maniac, I wasn’t pretty much satisfied with the idea that:

  • I have plural routes when fetching, deleting or updating single record (when pluralize = true) or
  • I have single GET /post router when fetching all records (when pluralize = false)

In other words, I wanted a solution that will give me:

  • Everything in singular (i.e. GET /post/12, PATCH /post/77)
  • Except listing all the records, where I will have plural (i.e. GET /posts)

The solution turned out to be quite simple…

Read More “Pluralized and non-pluralized rules for the same REST controller”

The smallest Linux for Raspberry Pi?

There are dozens of articles similar to this, so I treat it just as another quick memo for myself:

  1. You can create custom Linux-based system yourself with tools like:
  2. A ready out-of-the box solution is Core Linux / pi Core:
    • some info: here, here and here
    • very modular, add whatever you need
    • smallest version is claimed to have only 10 MB with GUI!
  3. Smallest Rasbian OS is 0.5+ GB in size so is out of option.

And if anything above is not for you then maybe a… non-Linux solution for your RPi?

Ultra-fast animated screen capture with LICEcap or ScreenToGif

Up until now I was using fabulous ScreenToGif to quickly capture animated screenshots for bug reporting. It truly is — as its homepage says — free, compact and powerful. It comes with handy installer, but also with portable version. And capturing is ultra-easy with it.

Today I discovered LICECap and immediately felt in love again…

Read More “Ultra-fast animated screen capture with LICEcap or ScreenToGif”