AlekSmola

Just stuff I try to accomplish in my free time.

AlekSmola


1. Introduction

During studies, it is required to back up the word you type with some other research papers/documents/scientific research [1]. Basically, by writing a theoretical introduction chapter to some thesis everything should in some way be quoted and not ‘made up by students imaginations’ [2]. It is usually accomplished by putting [number#] after each sentence/paragraph which leads to a full source listed at the end of document [3]. It is annoying and students hate it [4]. Not only the list of references should be kept in order [5], but also each figure should have its number leading to it. Tables and equations follow the same scheme [6].

This process seems easy when you start writing the document. You just go from start to the end and write everything in order and numbers will match up [7], right? Well, if you are very consistent, yes but it happens all the time you start writing from actual work and after that, you go on with introduction and theory. In such a case, you would have to change all of the numbers in [] after each change which is a NIGHTMARE [2134]
Most simple text editors do not implement any functionality to automate this [2314]. In reality, it is an easy task to automate. In this example, MS Word will be used to show how easy it is to automate handling references like a pro! [4234].

Read more »

1. It’s surprisingly easy to create your own GUI app nowadays

Modern solutions for programming became extremely accessible.

Figure. Example GUI app

Python programming language is easy and intuitive to learn and lacks unnecessary syntax caveats which may confuse young players. Making an app that simplifies our life, solves some problems or just outputs funny things is as easy as ever before.

Making a GUI app for your already existing application will make it not only more accessible to non-terminal people but will also simplify using it and make it more error-proof.

Read more »

Tutorial on how to rewind a broken BLDC motor by replacing the windings in the stator.

1. A bit of theory

BLDC motors are DC voltage operating motors. The most important advantage over regular brushed DC motors is the fact of lack of brushes in BLDC motors. BLDC comes from a Brushless DC motor. Thanks to that, fewer parts can wear out and the motor is more reliable and longer lasting. Stator consists of windings made out of copper enameled wire. This means that wire has thin layer of insulation. This insulation may get damaged by excess heat, which occurs during motor stall (not only of course). The motor stall is when we want motors to rotate, but its rotor is locked. Visually burned coils will be black, they will stink quite a lot and some of the isolation may melt, changing the shape of the wire. The damaged motor will ‘try’ to rotate when power is applied, but will only vibrate by moving small steps forward and backward.

Figure 1. BLDC motor which is to be repaired in this guide. Note that the instructions can be applied to other motors of that kind. Only the windings pattern will change and/or the wire for windings used.

This guide is based on a tiny BLDC motor taken from Mobula 6 tinywhoop. For other motors, the procedure will be the same but the arrangement and parts required may differ.

Read more »

0. DISCLAIMER

I am not responsible for anything. In this tutorial, I described my way of flashing dd-wrt onto this router. You may have different hardware and the methods described here may not work. Please keep in mind that you may end up with bricked device and you agreed with this loss.


1. Case scenario

TP-Link Archer C8v1 and v2 are wireless routers. Even in 2023, it will handle most of the tasks thrown at it by normal home users. However, support for it ended way back in 2016 and no more official updates were released since then [1].
It can be brought back to safer operation with modern updated firmware like dd-wrt.


2. The problem

According to [2] support page on dd-wrt.com site, this device is supported and there is an image for it. Following instructions on [3] flashing this router with dd-wrt is easy. It involves only a few steps. Main one is uploading .bin file via the original TP-Link site. Unfortunately, there are some problems with v2 hardware version which I encountered.

While performing a flash the following errors can be encountered: error -5533 and Error code: 18005. It appears the .bin file on the dd-wrt download page is meant only for the v1 hardware version. Hence the error -5533 appears.


3. Solution

To solve this issue it is suggested to downgrade the firmware with the official release.

Read more »

How to setup HEXO website [my own instructions] [this site]

Just the quick helpdesk for the things I went through to get Hexo working.

Hexo is the static site generator, which is very easy to use and has a lot of plugins and themes. It simplifies creation of website and does not require much programming skills. Hexco site can be published online to access by everyone, with the help of for example GitHub Pages.

Installing Hexo

Instructions to install and setup hexo locally.

Install required packages and than Hexo:

1
2
3
4
# 1. install git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
# 2. install node.js: https://nodejs.org/en/download
# 3. install hexo:
npm install -g hexo-cli

Start first project - first site

Enter folder where you want to create your project and than:

1
2
hex init project_name
cd project_name

start local server

To enjoy whole site locally, before publishing it online:

1
hexo server

create new site/blog post

Creating new content for the site.

1
2
hexo new post_site_name
hexo new "My New Post"

If you desire, the home page of your site may display only some part of the newest article, instead of the whole thing.

To do so put this:

1
<!-- more -->

in the place where ‘Read more’ should appear.

Read more »
0%