Categories
Raspberry Pi User Help

Kivy popup with incorrect graphics

I could not find anything related so I posted the same question on stackexchange to reach a wider range of experts on the matter. On Raspberry Pi4 with Raspbian GNU/Linux 10 (buster) I have Kivy setup the following way: [INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_20-09-30_28.txt [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, […]

Categories
Linux Mastering Development

what does this smartclt output says?

Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.14 (AF) Device Model: ST1000DM003-1SB102 Serial Number: Z9AA8JSH LU WWN Device Id: 5 000c50 0a1dfd4c7 Firmware Version: HPH3 User Capacity: 1,000,204,886,016 bytes [1.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form […]

Categories
Cryptocurrency Ethereum Mastering Development

ethers.js wrong signature

From the same private key in ethers.js and secp256k1 I get the same eth address. But if I sign a message I get a different (wrong) signature in ethers.js. What is wrong with my code? import { createKeyPair, sign } from ‘@erebos/secp256k1’ import { pubKeyToAddress } from ‘@erebos/keccak256’ import { ethers, Wallet } from ‘ethers’; […]

Categories
User Help

Linux mint freezes when running SDL2 prgram

In the past couple SDL2 programs I’ve been developing the strangest error seems to pop up; whenever I run the program– after an arbitrary amount of time has passed– Linux mint freezes. I can’t move my mouse or do anything with the computer. My only option at that point is to push the power button […]

Categories
Mastering Development

python plotly: unfixed number of traces

My code reads data from .xlsx file and it plots the Bubble diagram by using plotly. Bubble Diagram The task is easy when I do know how many traces need to be plot. However, I was thrown into bewilderment when the number of traces is unfixed since the number of rows is variable. raw data […]

SMART error on SSD, how can I access data for backup?

I’ve got a relatively new Kingston 1TB SSD installed in an Intel NUC running Ubuntu. This is a new build only 2 months old. Upon starting up today I see a S.M.A.R.T. error suggesting I backup and replace the device. Contacted Kingston and I have a new SSD on the way. I managed to boot […]

Categories
Mastering Development

Projecting eigenvectors for fisher’s linear discriminant analysis

I am trying to implement this feature selection method that also allows me to classify data. Following this: paper I have tried many workarounds and ways to implement this, but always my data gets weird. The public dataset that is made available has only to aquisition 1 and 4, to which i have extracted the […]

Possible Hard Disk failure

I have a dual booted laptop with windows 10 on dev/sda1 and ubuntu on dev/sda6. Recently the windows os boots properly but booting Ubuntu did not go well saying the filesystem encountered errors and prompted me to run fsck manually. I followed the onscreen instructions and ran fsck on the dev/sda6 partition and pressed yes […]

Categories
Mastering Development

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column ‘haystack’ at row 2

I am trying to fetch data using mysql find_in_set the find in set contains around 180 , separated values The query which i used for demo SELECT ‘id’ AS column_name, 10 AS header_name, GROUP_CONCAT(CONCAT( ”,T.row_id) SEPARATOR ‘, ‘) AS err_rows FROM `tmp_import_table_1595858629` T WHERE T.is_removed=0 AND (LENGTH(T.column26) > 0 AND T.column26 IS NOT NULL AND […]

Draw polygon when last point clicked and show angles of each line

I want to complete polygon when starting point of polygon clicked, i think i need to hide or set opacity of last line which is linking to first point of line. goal is to achieve exactly what is happening in this GIF. also i want to show angles and length on each line while drawing […]