Categories
User Help

IFS function in excel not able to work

I am not sure what is the problem, either is syntax error, or data error. The data in 1st column F is all text. Some are in millions (with the word ‘M’ at the end) and some in thousands ((with the word ‘K’ at the end). I want to convert all to numbers and put […]

Categories
Mastering Development

How to determine how many times ‘0’ to ‘9’ have been used in a specific range having O(N) Time complexity?

I want to count how many times ‘0’ to ‘9’ have been used in a specific range e.g. 112 has two ‘1’ and one ‘2’ I wrote this code, but it has O(n^2) Time complexity. num = int(input(‘n : ‘)) arr = [0] * 10 for i in range(1, num + 1): for j in […]

Categories
Mastering Development

Java: two threads summing numbers in a given range simultaneously: when just one thread is joined the second thread’s sum is too big

I have two threads that sum values in a single array of integers: [0; 100_000]. Each thread is an object that has min, max and sum fields and I later get the total sum by summing the result of both threads. Thread 1 sums numbers in [0, 20_000] range, while thread 2 sums numbers in […]

Categories
Mastering Development

Taking a certain part of the page with selenium

from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver import ActionChains import selenium.webdriver.common.keys from bs4 import BeautifulSoup import requests import time driver = webdriver.Chrome(executable_path=”../drivers/chromedriver.exe”) driver.get(“https://www.Here the address of the relevant website ends with aspx.com.aspx”) element=driver.find_element_by_id(“ctl00_ContentPlaceHolder1_LB_SEKTOR”) drp=Select(element) drp.select_by_index(0) element1=driver.find_element_by_id(“ctl00_ContentPlaceHolder1_Lb_Oran”) drp=Select(element1) drp.select_by_index(41) element2=driver.find_element_by_id(“ctl00_ContentPlaceHolder1_LB_DONEM”) drp=Select(element2) drp.select_by_index(1) driver.find_element_by_id(“ctl00_ContentPlaceHolder1_ImageButton1”).click() time.sleep(1) print(driver.page_source) The last part of these codes, I can […]

Categories
Ask Games Video Games

Minecraft item won’t do the damage to the entity that has higher health than 100,000 after i downloaded CustomNPCmod (1.11)

(Im using 1.11.2 forge) So i have this item which has the attack damage of 10,000,000 and i used to an entity that has health of 100,000, it used to work just fine (it used to kill the entity) but after i downloaded CustomNPCmod the item won’t do the damage no matter how much i […]

Categories
Apple User Help

How do I check the hardware of my iMac?

I have a late 2012 iMac that I suspect has something failing in terms of disk or USB. This is what is happening: Some programs freeze from times to times. Once that happens, there is no way for the program to run again. Just a restart of the iMac will solve that. WHen #1 happens […]

Categories
Linux Mastering Development

smartctl results and possible solution

Do I need to dump my hard disk, based on following smartctl results on my SATA hard disk. The problem is that I was getting filesystem errors during boot time very frequently and even fsck failed to repair it last time. Then I used Live USB(fedora) and checked ‘disks’ utility, it showed bad sectors around […]

Categories
Game Creation Mastering Development

How to deal with players having too much money (or any large numbers)?

I’m working on a browser MMORPG in PHP and MySQL and today got a bug report about int32 overflow, due to the player having too much money. When I was designing the core system, I completely forgot about the integer 2,147,483,647 limit, so now I’m trying to come up with some way to fix this […]

Categories
Mastering Development

How do I add subscript to a stargazer table covariate label?

Within the below covariate labels I’d like to include P, M and C in subscript. Here is my code: stargazer(DD1_PT, DD1_MT, DD1_CT, type = “text”, title = “Table 1”, out = “table1.html”, dep.var.labels.include = FALSE, column.labels = c(“Presidential”, “Midterm”, “Constitutional”), model.numbers = FALSE, order=c(4, 1, 8, 2, 9, 3, 10, 5, 6, 7), covariate.labels=c(“TimeP (1 […]

Categories
Mastering Development

Why my slideshow is scrolling down my screen?

My code is really messed up somehow. please, if anyone out there is a coding genius, ask for the code, and I will send you it right now. All I need is for my page to stop teleporting up like 500px every time I try to change one of the slides to a different one. […]