Categories
Mastering Development

Fast way to remove array of specific row values from 2D numpy array

I have a 2D array like this: a = np.array([[25, 83, 18, 71], [75, 7, 0, 85], [25, 83, 18, 71], [25, 83, 18, 71], [75, 48, 8, 43], [ 7, 47, 96, 94], [ 7, 47, 96, 94], [56, 75, 50, 0], [19, 49, 92, 57], [52, 93, 58, 9]]) and I want to […]

Categories
Mastering Development

how to find number of pages and number of lines on the current page respect to speed after a specified interval of time?

A student has created a software which will read from one book and write into another book . Both books may have different dimensions. Software first reads from the book fully then process the format to write into another book. Yours task is to identify after a specified interval of time , if software is […]

Categories
Mastering Development

Ordered set of Dataframe values in Pandas

Question: a series named heights_A with values 176.2, 158.4, 167.6, 156.2, and 161.4. These values represent heights of 5 students of class A. Label each student as s1, s2, s3, s4, and s5. another series named weights_A with values 85.1, 90.2, 76.8, 80.4, and 78.9. These values represent weights of 5 students of class A. […]

Categories
Mastering Development System & Network

OpenSource+Free+Secure CLUSTER/HA Software, Sync Multi-Zone Mail/Web User Data+DataBase, & Keep Single-Zone Unsynced

QUESTIONS : • For three Debian (GNU/Linux) v10/Buster KVM VPS based nodes, what free & open-source & secure cluster/HA software can i/user use ? • please mention if i/user can obtain cluster/HA (& ha administration) sw/source-code over encrypted connection ? • which cluster/HA sw can be configured to use minimum AES-256/RSA-16384/etc (encryption) based encrypted-communication for […]

Categories
Mastering Development

Using one button to display different images on an oled display

I am using an oled display with the Adafruit_GFX and Adafruit_SSD1306 libraries. I am trying to create a menu on my oled display (a series of different images). I have created code that, when one button is pressed, the screen changes to one image, and when pressed again, the screen changes to the second image. […]

Categories
Mastering Development

How to use remove a key from HashMap in a loop?

I tried several different things to try to remove a key in my HashMap, but I always get this error: Exception in thread "main" java.util.ConcurrentModificationException I only have this error in the loop, is there really no way to make it work? private void optimizeProfits(HashMap<String, Object> priceList) { int maxSlotsInAnimalPen = 4; int x = […]

Categories
Artificial Intelligence (AI) Mastering Development

When using experience replay in reinforcement learning, which state is used for training?

I’m slightly confused about the experience replay process. I understand why we use batch processing in reinforcement learning, and from my understanding, a batch of states are input into the neural network model. Suppose there are 2 valid moves in the action space (UP or DOWN) Suppose the batch size is 5, and the 5 […]

Categories
Mastering Development

Getting column names in pandas that equal a value for a given row

I have a table like this: Scen F1 F2 F3 F4 0 S1 1 0 1 0 1 S2 0 1 0 1 and want to search by Scen and return the column names that == 1 for that row, e.g. for S1 I require F1, F3 as the result. I’ve tried the following, and […]

Categories
Mastering Development

How to limit number of permutations

I have like 20 short strings that I want to permutate, but I just want the permutations that have len=8. I could do something like that, but it calculates aaalll possible permutations and then print. import itertools p = itertools.permutations([s1, s2, s3, s4, s5, s6,…]) for i in p: s = ”.join(j for j in […]

Categories
CMS Mastering Development Wordpress

I want create a page in my site that will have the following functions:

I want create a page in my site that will have the following functions: I have a admin account and database of images 1.png,2.png,3.png,…,100.png(in google drive say) I will have 50 student accounts s1,s2,s3,…s50 I need to have this automation 1.png will be sent to s1 if Reply is ‘Yes’ within specific time say 10 […]