Skip to main content

Posts

Web eID smart card driver error

Symptoms: in case you are using Web eID (online identification software for Estonian, Latvian, Lithuanian residents), you may get a card error. At first it says something like " Card driver error ", and afterwards you get another error, like " This card cannot be read ". Solution: remove the card from the reader and insert it again or disconnect the reader from the USB port and connect it again.

Child Protective Services Activity 2016-2020

There has been always an ongoing debate whether the measures taken by Child Protective Services (CPS) are not too excessive. For example, it is obviously clear that separating a child from his family by force, even for a few hours, will definitely cause him lifelong issues.  Sometimes a child is separated from his family just to be returned a few days later. Some people may want to protect their kids from such an outcome. National Foster Youth Institute claims that 50% of homeless population spent time in foster care. Is it always a good idea to separate a child from his family and put it into foster care? Here is the map of Child Protective Services Activity. Frequently asked questions: I have high income. Are my kids safe from Child Protective Services investigation? The link between average income and CPS activity is weak. The correlation between average purchasing power of each state and CPS activity is only ~ -0.3. High income does not protect your kids from the CPS Investiga...

Basic Python macros in Libre Office Calc

There are only a few Libre Office Python macro examples in the internet. Here are some basic macros: Insert the current time in the cell D1: from datetime import datetime def insert_time(*args):   desktop = XSCRIPTCONTEXT.getDesktop()  model = desktop.getCurrentComponent()  active_sheet = model.CurrentController.ActiveSheet  now = datetime.now()  current_time = now.strftime("%H:%M:%S")  active_sheet.getCellByPosition(3,0).setFormula(current_time)  return Delete contents of the Column A: def delete_column_contents(*args):   desktop = XSCRIPTCONTEXT.getDesktop()  model = desktop.getCurrentComponent()  active_sheet = model.CurrentController.ActiveSheet  column = active_sheet.getCellByRangeName("A:A")  column.clearContents(1) #unfortunately this code deletes numbers only   return Place a cursor on the cell A11 (it is more like a workaround, partly derived from this forum ): def gotoCell(*args):   desktop = XSCRIPTCONTEXT...

How to save a Box tree from caterpillars?

Caterpillars ate your Box tree? Don't worry, you can revive it! Just cut all branches and leave the stem only. Your Buxus tree will recover!

Making life decisions according to the sunspot number

When making life decisions, it is worth checking the sunspot trends. By having some life experience I can confirm that the my worst life decisions were made during the spikes in sunspot number: My worst life decisions and a sunspot number The picture above shows the dates of my worst life decisions: September 2011 November 2013 December 2020 Sunspots produce magnetic flares, which reach the Earth, and negatively affect humans. As you can see, in September 2011 the average sunspot number was above 100, and there was a huge spike in the sunspot number in the second half of 2011. My worst life decision was made in September 2011. In the second half of the 2013, there was also a huge spike in sunspot number, and the average monthly sunspot number was above 100. My second worst life decision was made in November 2013. Also we can see a huge spike in the end of 2020 – also one of the worst decisions was made, however, this time the average monthly sunspot number was below 100. So in general,...

The best Linux Distribution ever – Lubuntu Bionic Beaver 18.04.5 LTS!

For beginners, it is always difficult to choose the right Linux distribution. Everybody wants an easy configuration, an everlasting " snap feel ", a great stability and extensive information in forums. Lubuntu Bionic Beaver 18.04 LTS was my first distribution. I have been using it for 3 years. I really liked it. I would like to point out the major reasons, why it is so great! 1. The Ubuntu community is more willing to help, it is more likely to provide you with the required commands. I started to admire Lubuntu even more when I tried another distribution – Manjaro. After I configured everything in Manjaro, a black screen appeared after login. I could not find the solution, so I gave up on Manjaro. When I was searching for the solution, I learned that Manjaro people tend to explain everything in  a more advanced way, skipping various aspects, which beginners may come up with. For example one of the reasons of why I experienced a black screen, is probably the error of lightdm: ...

How to add a transparent watermark in mtPaint?

Sometimes you may need to add a transparent watermark to your image. Various image editing software might be too expensive, however, a lightweight mtPaint is free and it can be used commercially. With this tool it is possible to add a transparent watermark. 1. Open mtPaint. Open the image file by using " File>Open " dialog. 2. Click " View>Layers Window ". Alternatively you can press " L " key. Click the " New Layer " button on the Layers window. 3. A new dialog appears. Click " Create ":   4. Make sure " Layer 1 " is selected. Set the " Transparent color " to " 0 ". 5. Click " Paste text " tool. 6. Select Font Family, Style, Size. Remove all checkboxes (" Antialias ", " Background Color ", " Angle of rotation "). Click " Paste text " 7. Select the desired color of your watermark: 8. [IMPORTANT] After you select the color, press " Enter " an...