Categories
Development

Jupyter notebook shows no cells running but kernel is busy and GPU is working

I am connected through sshonto a GPU and running a CNN keras model training with tensorflow-GPU within a Jupyter Notebook. I left the process running and when I came back ColdTurkey had mistakenly closed the browser window in my laptop (but the process was still running in the Terminal) so I openned a new window […]

Categories
Development

NetLogo (social network): How do you connect nodes based on probability?

I am trying to model an “online forum” where the model starts with 2 connected agents that are of 2 breeds (A-agents and B-agents). With each iteration, an agent of one of the 2 breeds is created. Which breed of node is created; A-agent vs. B-agent is determined by a probability (see code). The newly […]

Categories
Development

Sklearn – Error While Importing using PIP

from sklearn import preprocessing Getting the Follwing output: File “”, line 1, in File “C:\Users\arunr\lib\site-packages\sklearn__init__.py”, line 75, in from .utils._show_versions import show_versions File “C:\Users\arunr\lib\site-packages\sklearn\utils_show_versions.py”, line 12, in from ._openmp_helpers import _openmp_parallelism_enabled ImportError: DLL load failed: The specified module could not be found.

Categories
Development

Why don’t the absolute value functions in C accept const inputs?

In C, the prototype for the absolute value function (that accepts a float) is float fabsf( float ); Why doesn’t this prototype accept a constant value, like this: float fabsf( float const ); fabsf won’t change the value of the input, will it? If I have a function that accepts an input and calls fabsf, […]

Categories
Development

Moment js Date values comparison across time-zones

I am getting 4 dates as inputs mentioned below from an external source. Dates with time element: “InitialDate”: “2019-02-19T12:03:22.129Z”, “updateDate”: “2019-02-28T05:26:57.115Z”, Dates without time element: “startDate”: “2019-02-18”, “endDate”: “2020-02-16”, I am coverting InitialDate and updateDate and creating actualInitDatE out of them using a moment format as below, as they are getting time element also in […]

Categories
Development

Python/gspread – Changing contents of a cell based on contents of another cell

I’m just starting out with Python (v3.8) and am trying to apply it to a real project at work. I used a video tutorial for the Google Sheets API and have been able to manipulate cell data using it. Now, I am trying to use the syntax covered in the video to manipulate cell contents […]

Categories
CMS Development Wordpress

Disable WC Bookings automatic order completion

WooCommerce Bookings has this feature that automatically changes the order status from processing to completed once the payment is confirmed. I’m trying to find a way to disable it, so it can work like it usually do on standard WooCommerce. Searching the code of the plugin, I was able to find this filter: class WC_Booking_Order_Manager […]

Categories
Development Linux Ubuntu

Update Ubuntu 16.04 to 18.04 on Dell PowerEdge R630

I have a PowerEdge R630 on Ubuntu 16.04 LTS and want to update it to ubuntu 18.04. In 16.04. PowerEdge R630 is in support list of ubuntu but in Version 18.04. DELL PE R630 is not listed, should i nevertheless updating to 18.04 or is there a high risk?

Categories
Development Linux Ubuntu

How to install TP-LINK USB Driver from CD

I have the driver of my wireless USB adapter (tp-link TL-WN725N) from CD and currently the machine has no internet. I’d like to install the driver from CD via the command-line to be able to use the wireless capability in the basement. I have no long network cable. Thanks!

Categories
Development Linux Ubuntu

Connect Behringer crave USB MIDI to Ardour

I am trying to sync a Behringer crave over USB midi and control it from Ardour. I can see it in lsusb: Bus 001 Device 005: ID 1397:121e BEHRINGER International GmbH CRAVE But not in amidi -l or arecordmidi -l. output from lsusb -v -d 1397:121e: Couldn’t open device, some information will be missing Device […]