Categories
Mastering Development

ORACLE updating records with 1 to many table relationship in a trigger

I’m stuck, I don’t know what I’m doing wrong, I need some help! Given a table PERSON which maps to a person: create table person ( ID integer, registration_number varchar(9), primary_number varchar(9), women_act varchar(1) ); Given a table CONSOLIDATED_NUMBERS which specifies a mapping between multiple entries from PERSON: create table consolidated_numbers ( SECONDARY_NUMBER varchar(9), person_id […]

Categories
Linux Mastering Development Ubuntu

Ubuntu 20.04 Touchpad cursor jumping

I`m using Ubuntu 20.04.1. After installing video driver for AMD (AMDGPU PRO) i got "Jumping touchpad cursor error". It has totally random movement and also registering clicks randomly. Without video driver i don’t have this issue and in BIOS also (so seems like its not touchpad error). Notebook: Asus VivoBook S15 M533IA Proc: Ryzen 5 […]

Categories
Mastering Development

Syntax Error in R when adding a loop to read multiple pdf pages

Can anyone help me to find where is my mistake in this piece of code? This is what I am getting: "Error: unexpected ‘}’ in " }"" If I try to run only the chunk under the loop everything is fine but I need this to be process in 50 pages and then merged. library(pdftools) […]

Categories
Linux Mastering Development

Bash sed to replace string that contains special characters

I need to use sed to replace a string with another string but they both contain special characters and cant seem to figure out how to get them to replace. Example: oldstring="{float:left;height:2rem;line-height:2rem;width:14rem;padding:1px 1px 1px 2px;margin:8px 12px;border-radius:3px;background-color:#585858;box-shadow:0 1px 0 #989898,inset 0 1px 0 #202020}" newstring="{width: 25rem; height: 18px; border-radius: 3px; border: 2px solid rgb(180,180,180); }" sed […]

Categories
Mastering Development

LibGDX Exception in thread “LWJGL Application” error

So to start off I’m a little new to using libGDX. I have the book Java Game Development with LibGDX and I’m trying to run the example program in chapter 2. I am using BlueJ. Here is the code: import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input.Keys; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.Game; […]

Categories
Mastering Development

How to make my user-interface self adapt to the show and hide of JPanel?

Recently I’m writing a mail system client using Java (I chose swing to write the GUI and use IDEA to hardcode my GUI). In the Compose module, I want to show or hide the textfield for CC and Bcc when I click the corresponding buttons. So I googled and browsed the following questions and doc […]

Categories
Linux Mastering Development

Ubuntu Server 20.04 (and 19.04) extremely high writes to SSD, remounted as readonly

I’m running a small home server which runs Ubuntu 20.04 (19.04 before). This server only runs docker and generally writes its data to a ZFS Pool that I mount (not really relevant for this story, just for context). As boot disk I’m using a Kingston A2000 512GB NVME drive with an EXT4 filesystem. This afternoon […]

Categories
Mastering Development

extracting the mean value of a grid at every point of an image

I have a large amount of images that i would like to extract features from. I have a grid of 9 pixels, representing 1 point at different 22 specific coordinates of an image. What i want to do is calculate the mean value inside a grid of 9 pixels in each 22 positions.For instance: Every […]

Categories
Mastering Development

How to Un-Sort The legends in the graph in R?

I am not an expert in R. I am having an issue, the legends are sorted alphabetically. I cannot arrange them manually because I have 87 patients and each patient has 300 days and the status (category) changes every day so i want to plot the graph exactly like it has in the source. ggplot(data […]

Categories
Linux Mastering Development Ubuntu

Lenovo Legion 5 touchpad

I have just bought a new Lenovo Legion 5-15ARH05. I have a problem with the touchpad. It seems that it’s recognized by the system, however, I cannot move with the cursor. I found out that the left click and the right click works just fine. I am using 5.8.0-050800-generic kernel and Synaptics package. This is […]