Categories
Mastering Development

Why does my prompt command execute first before my .randQuestion in javascript?

I am following a JavaScript course on Udemy, and I can not understand why my prompt command which is towards the end of my script is executing before my .randQuestion method which is suppose to console.log information to the console. Here is a screen recording of what I am talking about: https://osaintilien55-gmail.tinytake.com/tt/NDE4NjE2N18xMjk5NTg5NQ Thank you for […]

Categories
Mastering Development

How print each smaller dictionary in new line in nested dictionary

I wrote a nested dictionary program. The dictionary generates well but I would like every smaller dictionary to be printed in a new line. import random list_of_surname = [“Gates”, “Bezos”, “Buffett”, “Zuckerberg”, “Arnault”, “Page”, “Sołowow”, “Solorz”] list_of_name = [“Bill”, “Jeff”, “Warren “, “Mark “, “Bernard”, “Larry “, “Michał”, “Zygmunt”] list_of_age = [73, 24, 35, 76, […]

Categories
Linux Mastering Development Ubuntu

Mouse pointer moving by itself

My mouse pointer moves by itself automatically at either 10 – 15 minutes intervals or less. Im on the Ubuntu 18.04.4 LTS, Laptop = Toshiba Portege Z30-A. Is there a way I can stop this from happening? Please help. Regards, Mark

Categories
Development User Help

Disable Word open app prompt on SharePoint

I have tried to find a definitive answer to this question but cannot. When opening a Word document from a SharePoint Online document library, we have set files to be opened with the desktop application. When we click on Word files, there is a browser prompt each time: disable this prompt Is it possible to […]

Categories
Development

Getting the best 6 subjects including a compulsory subject in mysql query

I have a student grade system, that calculates a student final mark. A student, for example, can do 10 subjects, but only the best 6 are calculated to come up with the student average. The current code I have calculates all the marks and divides by the number of subjects. For example, if a student […]

Categories
Development

Rails CSV remove column that have empty header

I am receiving a csv file that has some blank headers but data exists in these columns. I want to remove the blank header and it’s associated column in rails. Sample csv #report ,Code,Price,Orders,,Mark, 1,X91,4.55,4,xxx,F,23 What I’d like returned: Code,Price,Orders,Mark A91,4.55,4,F This is what I have so far as there is also comments on the […]

Categories
Development

Getting the error “Error in lookup[, 1] : incorrect number of dimensions” while plotting word network

I am trying to plot word network with qdap’s word_associate function. Below is the dataframe and its elements. df<-data.frame(text=c(“There is a decent section of beach but the buildings adjacent to the beach are under attack from fairly big waves.”, “The beach is clean and being close to the reef one can see some fish and […]

Categories
Development Linux Ubuntu

Help With Software Center

Where can I find the repository or App Store to search for and add additional programs in Ubuntu Studio? Thank you, Mark

Categories
Development Linux Ubuntu

Help With Software Center

Where can I find the repository or App Store to search for and add additional programs in Ubuntu Studio? Thank you, Mark

Categories
Development

Compare two lists of strings using java stream

How can i perform following using Java Streams? Here I am trying to compare two lists of string. If any of the element matches, in the first match, increment the count, add matched value to matchList and break the loop. List<String> nameList1 = Arrays.asList(“Bill”, “Steve”, “Mark”); List<String> nameList2 = Arrays.asList(“Steve Jobs”, “Mark”, “Bill”); int count […]