Categories
Arduino Ask Engineering

Send custom HID values instead of keys

I’ve been building a small macro keypad based on the ATmega32U4. So far, I’ve been able to send standard key presses to the host. But since I want a program on the host system to react to the key presses, I only send the keys to serial to avoid typing anything. For now, this does […]

Categories
Mastering Development

setTimeout not working client side on landing page

Good Afternoon, I am trying to have a loading animation for the pages on my site, but the client-side setTimeout function is not working. I have the same function on a test page with no bootstrap and no other scripts and it works, but once I put the script on my landing page it doesn’t […]

Categories
Ask Health Medical

How frequently does the use of topical fluorouracil cream result in permanent scarring and/or skin discoloration?

I wonder how frequently the use of topical fluorouracil cream results in permanent scarring and/or skin discoloration (e.g., hyper- or hypopigmentation). What I have found so far doesn’t give any source supporting their claims and is sometimes contradictory: https://en.wikipedia.org/w/index.php?title=Fluorouracil&oldid=983527347#During_topical_use: Uncommon (0.1–1% frequency): hyper- or hypopigmentation Scarring They give 2 references ("[9][14]"): [9]: Rossi, S, ed. […]

Categories
User Help

Meaning of D, H, R, A in smbclient file listings

I connect to a Samba drive in terminal (Linux) via smbclient. When I list the directory via command ls, I get for every entry (file or folder) some letters: such as D, H, R, S, A in different combinations DHR, DHS, DR, and so on. As example smb:> ls Start Menu DHS 0 Mon Oct […]

Categories
Mastering Development

Multiprocessing of image processing (EDITED)

I have the following program: daytime_images = os.listdir("D:/TR/Daytime/") number_of_day_images = len(daytime_images) day_value = 27 def find_RGB_day(clouds, red, green, blue): img = Image.open(clouds) img = img.convert(‘RGB’) pixels_single_photo = [] for x in range(img.size[0]): for y in range(img.size[1]): h, s, v, = img.getpixel((x, y)) if h <= red and s <= green and v <= blue: pixels_single_photo.append((x,y)) […]

Categories
Mastering Development

Putting a “in list” into an if statement

I am currently in the process of creating a hangman game. My problem is in the 2nd for loop, for x in wordlist. This for loop is supposed go through the wordlist (in this example [‘H’, ‘E’, ‘L’, ‘L’, ‘O’]) and: if x in newwordlist or x==guessedletter, then x is printed onto the new list […]

Categories
Mastering Development System & Network

FreePBX dropping calls from Twilio for unknown reason

I have a single FreePBX system connected to Twilio’s Elastic Trunk service. Local server IP is 10.0.3.1. Sometimes, when a call is placed, the call comes in, goes through our system, and routes properly. Other times, however, it has issues. I’m not sure what the common denominator is, but I do have a piece of […]

Categories
Mastering Development System & Network

FreePBX dropping calls from Twilio for unknown reason

I have a single FreePBX system connected to Twilio’s Elastic Trunk service. Local server IP is 10.0.3.1. Sometimes, when a call is placed, the call comes in, goes through our system, and routes properly. Other times, however, it has issues. I’m not sure what the common denominator is, but I do have a piece of […]

Categories
Mastering Development

How do I read commands from a file and run them?

I have a commands.txt file that read like this: LIST1 LIST2 LIST3 ASSIGN C6650 SENG101 ADD 1 SENG101 LIST4 1 LIST5 C6650 LIST6 SENG101 LIST7 15 DROP 1 SENG101 LIST4 1 LIST6 SENG101 LIST7 15 I sent this file as an argument to my program. The objective is: Read the commands.txt file and execute commands […]

Categories
Ask Electrical Engineering Engineering

Angle between North and East from magnetometer values

I have a magnetometer from where I get X, Y and Z which point to the direction of the detectable magnetic fields. I’m using these values to get the angle between X and Y using atan2. I am a bit suprised of the result because North is not "aligned" with South. In fact there is […]