Categories
Mastering Development

Caught in an endless loop with my C program

In my C program, I have a function (datecheck), to check for valid date entries, but I’m caught in an endless loop. What can I put in there to get out? I’ve tried return and break commands in "if loops", but they haven’t worked. It is using struct datee get_date and struct datee, and month. […]

Categories
User Help

How to use XLOOKUP with an dynamic row count?

At the result cell C2 =XLOOKUP(B2:B10, {“Jan”,”Feb”,”Mar”,”Apr”,”May”,”Jun”,”Jul”,”Aug”,”Sep”,”Oct”,”Nov”,”Dec”}, {1,2,3,4,5,6,7,8,9,10,11,12}) The first column A is all text. I want to convert to the month number. Assuming the number of rows of the table might change (say to 100), then the lookup range B10 might need to be B100 instead of the initial B10. How to do it? […]

Categories
Mastering Development

unexpected keyword argument ‘freq’ in Pandas DataReader (Stooq Module)

I’m a little bit new to coding and am not sure what is going on. I am currently trying to extract monthly index data from stooq to write a research paper. However, the ‘freq’ argument is returning the unexpected keyword argument error when trying to call it. I tried to compare this to the ‘interval’ […]

Categories
Mastering Development

How to split the spark dataframe into 2 using ratio given in terms of months and the unix epoch column?

I wanted to split the spark dataframe into 2 using ratio given in terms of months and the unix epoch column- sample dataframe is as below- unixepoch ——— 1539754800 1539754800 1539931200 1539927600 1539927600 1539931200 1539931200 1539931200 1539927600 1540014000 1540014000 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 1540190400 strategy of splitting- […]

Categories
Mastering Development

Why I can’t delete data in cascade way?

The problem is when I want to delete user I’m getting error in Spring Boot like that: java.sql.SQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (32506632_pam.badge, CONSTRAINT FK4aamfo6o0h5ejqjn40fv40jdw FOREIGN KEY (user_id) REFERENCES user (id)) I’m guessing that I need to delete data in cascade way. So I’ve placed CascadeType.REMOVE value […]

Categories
Linux Mastering Development Ubuntu

How do I disable the opening of files with the spacebar key? [closed]

Please, in my Ubuntu Studio 20.04 LTS – I need to change / disable assigned function for the “space-bar” key. This key works like the ENTER key!?” Spacebar key opens all files in my computer (dir, mpr3, jpg…). I don’t want it, I don’t need it That’s why I need disable, or make it change […]

Categories
Linux Mastering Development Ubuntu

Space-bar in UbuntuStudio 20.04 LTS – I need your help

Hi friends! Please – in ubuntu I need to disable the assigned function –start/stop– for the “space-bar” key. The “space-bar” key works like the “enter” key. For example, it triggers audio files in a folder. I wish to disable this feature and set the standard keyboard functions.. Please, can anyone help me with this? […]

Categories
Mastering Development

How i can print dates under right weekdays?

#include <stdio.h> #include <math.h> const char weekday_str[7][4] = {“SUN”, “MON”, “TUE”, “WED”, “THU”, “FRI”, “SAT”}; const char month_str[13][4] = {“”, “JAN”, “FEB”, “MAR”, “APR”, “MAY”, “JUN”,”JUL”, “AGO”, “SEP”, “OCT”, “NOV”, “DEC”}; const int days_in_months[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int isLeap(int year); int weekDay(int y, int […]

Categories
Mastering Development

Save multiple JsonArrays in 1 variable and retrieve them later

I have an adapter that fills up a listview with textviews read from a json file (https://imgur.com/a/SCeojdM), now i want to add an autoCompleteTextView to the textviews talked about earlier so its possible to choose possible answers now when i try to set the AutoComplete options to a textfield i get this: https://imgur.com/a/fga81A1 how can […]

Categories
Mastering Development

How can I get specific values from a list within lists, inside a dictionary, and based on the keys

Hey there programmers i’m a bit new… I have a dictionary containing many lists within lists and in the program I am asking the user for an input of a specific year this year will correlate directly to the keys of the dictionairy (I must find the user input in the keys of the dictionary) […]