Categories
Linux Mastering Development

Bluetooth keeps changing from A2dp to headset and loses connection on Debian Buster with JBL 4 Speaker

since over a year I am having trouble with the bluetooth connection to my JBL 4 speaker. It looses connection again and again. I created a script according to what I found on the internet to reconnect via keyboard short cut. Sometimes it is connected with it within a view seconds sometimes I had to […]

Categories
Mastering Development

How to get contacts from Azure Ad graph api

I am trying to get contacts list using Azure AD Graph API but don’t know how to give permission for application to read contacts. Azure AD Graph API provides operation for these objects only “Application, Device, Directory, Domain, Member, Policy” Please let me know how to give permissions for app to read contacts.

Categories
Development System & Network

XenServer bad network config during initial Pool Creation

I believe I made a terrible mistake. I had a XEN8.0 (Citrix Hypervisor) for tests running on a local machine here in the office. It has a local IP adress. Classic. Then I wanted to move my VM guests to a dedicated server in the cloud. XEN installed, configured, cool. Then, the transfer with in/export […]

Categories
Development

xml parser problem in alexa using javascript

var xml = require(‘XML-Parser-master’); const fs = require(‘fs’); var responseString = ‘html string’; var finalString=””; var xmlDoc = new xml.DOM(xml.parse(responseString)); const items =xmlDoc.document.getElementsByTagName(“item”); for (var i = 0; i < items.length ; i++) { const item = items[i]; var name = (item.getElementsByTagName(“name”)[0]), status = (item.getElementsByTagName(‘status’)[0]), device = (item.getElementsByTagName(‘device’)[0]), probe = (item.getElementsByTagName(‘probe’)[0]), message_raw = (item.getElementsByTagName(‘message_raw’)[0]); finalString […]

Categories
Development

Unnesting values in records in MongoDB

I have been tasked to unnest records in MongoDB, but I have no MongoDB skills, unfortunately. I have records in the following format: { “_id” : ObjectId(“Some ID”), “reason” : “Parameter: (artifact_id) is mandatory”, “timestamp_utc” : ISODate(“2019-09-20T14:30:41.943Z”), “timestamp” : ISODate(“2019-09-20T07:30:41.943Z”), “eventType” : “Some_Event”, “clientID” : “24839961”, “time_bucket” : [ “2019-year”, “2019-09-month”, “2019-37-week”, “2019-09-20-day”, “2019-09-20 07-hour” […]

Categories
Development Linux

What does mknod do?

So the mknod command, what does that do? /dev/random$ mknod -m 666 random c 1 8 I understand that -m specifies permissions, and that mknod overall create an inode in the filesystem which can be a file, directory, device, fifo, etc…but I really don’t understand what the last 3 arguments there do.

Categories
Development

Flutter run on Xcode but don’t on VSCode

I’m trying tu run my app in a real iOS device within VScode but I’am having an error about provisioning profile, I already set my provisioning profile to automatic and also set my development team, everything works in Xcode but not in VScode. Here is the error: No Provisioning Profile was found for your project’s […]

Categories
Development

How to write regex for python so that it pulls out a term and its definition?

I have tried multiple regex expressions with limited success. I can get the term in one group, but not the term with its multi-line definition. I am using a testing website. https://pythex.org/ This is one of my closest expressions. ^(.+)\” refers to (.+) It just does not get all lines of the definition. Definitions can […]

Categories
Development

PyTorch and TensorFlow object detection – evaluate – object of type

I’m attempting to get this PyTorch person detection example running: https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html I’m using Ubuntu 18.04. Here is a summary of the steps I’ve performed: 1) Stock Ubuntu 18.04 install on a Lenovo ThinkPad X1 Extreme Gen 2 with a GTX 1650 GPU. 2) Perform a standard CUDA 10.0 / cuDNN 7.4 install. I’d rather not […]

Categories
Development

How to close thread and start thread appropriate ways?

I need to run and close thread with input. Here, it uses input function to handle input. If input is start. then, run recv method as thread else input is close set second argument to False. False value to indicate loop inside recv to stop. But, My console keep open. It should close console. Cause […]