Categories
Ask Electrical Engineering Engineering

Again about four-terminal MOSFETs and relays

First of all, I’m a real noob at this, I was driven by a need I’ll explain afterwards, but I’d like to start with the general question. This is exactly what was done in previous question (MOSFET with *actual pin* for body), but the answers don’t really address my issue (or I cannot understand them). […]

Categories
Ask Electrical Engineering Engineering

TRIAC confusion

First for some quick background: You might be aware of my other threads in which I pose a problem with micro-controller to WiFi-command an existing coffee machine which had (as happens with a lot of home appliances) NON-isolated Power Supply. I’ve already gathered both the components and, more or less, the basic understanding for this […]

Categories
Arduino Ask Engineering

Can AccelStepper accelerate non-linearly?

I am running a Nema 23 motor with an Arduino Uno and a microstepper driver. I am making a torsional vibration demo, which uses a series of springs connected to the motor driveshaft to spin gears. These gears, as changes in shaft speed occur, should begin to weave in- and out-of-phase with one another. In […]

Categories
Ask Chemistry

How to plot correlation between two spectra given that the signal is measured per each wn?

So, here is an example of the correlation plot that seems valid, but I don’t know how to arrive at it: It looks like they have plotted one spectral data against the other, the imp/s axis indicates this. I need to plot the correlation graph between two spectra, the only difference here is that the […]

Categories
Mastering Development

Why is Glew not finding OpenGL headers in MacOS Catalina?

Upgrading to Catalina has broken my build and three days of searching has not solved the problem. The code worked fine pre-Catalina. The specific error I’m getting is /usr/local/include/GL/glew.h:1217:14: fatal error: ‘OpenGL/glu.h’ file not found # include <OpenGL/glu.h> ^~~~~~~~~~~~~~ /usr/local/include/GL/glew.h:1217:14: note: did not find header ‘glu.h’ in framework ‘OpenGL’ (loaded from ‘/System/Library/Frameworks’) My glew is […]

Categories
Mastering Development

XPC call retry mechanism

My installer load XPC service and XPC client that attempt to call remote xpc method on that service. However, the service my be loaded arbitrarily and the client may get invalid connection since the service hasn’t loaded yet. So far I haven’t found any way get service-load indication, so I’m calling the retry method recursively […]

Categories
Mastering Development

Job arrays and shell script with only some parallel steps

I am working with the following .sh script which I submit using sbatch. Pairwise_3_P_a.do and Pairwise_3_P_c.do are linear steps that should be run only once, but Pairwise_3_P_b.do uses an array. I am having problems with Pairwise_3_P_c.do being run before the array is done. Is there a way to fix this script using –wait or the […]

Categories
Mastering Development

Chrome Extension Admin Install – Change State to Enabled

I’m administratively installing an extension for my end-users by adding a registry entry to my machines to install a Chrome extension. For the installation mode I’m using normal_installed mode. HKLM:\Software\Policies\Google\Chrome\ExtensionSettings<Extension ID>\ installation_mode – normal_installed So when you do this the extension is installed but it is disabled by default. Is there a way to enable […]

Categories
Mastering Development

ArrayList

I am new to android sqlite Database. I have data fetched from my sqlite database in ArrayList<HashMap<String,String>> Now I want to convert each object of the above to String[] How do I do this? Any help would be much appreciated!

Categories
Mastering Development

JOIN query from scripts in SQL / Impala

I’d like to create somewhat complicated queries for different projects. These have a base structure but then add their own specifics. For the most convenience, I’d like to save a base query script that does depend on a few parameters, but isn’t stored as a view. And then I’d like to use that base query, […]