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
Ask Chemistry

Rank H, H-, H+, He from smallest to greatest (answer in body, don’t understand why)

The correct answer is H+, He, H, H-. I understand why the rank is H+ < H < H- due to the loss or gain of an electron, which would make the H smaller. However, I don’t understand why He is smaller than H. Doesn’t He have 2 electrons and 2 protons? Shouldn’t it be […]

Categories
Mastering Development System & Network

FreeIPA unable to create a replica

I’m trying to create a replica of my single FreeIPA server to aid in migration and move to a clustered environment. I spun up a CentOS host, enrolled it as a client to the ipa server, and added it to the group ipaservers. I then ran ipa-replica-install after running kinit to login as admin. Run […]

Categories
Mastering Development

How to run this tsduck shell command containing quotes with subprocess.run in Python

Here is the command as written in the tsduck manual: tsp -I dvb -a 1 @ts1028.txt \ -P svremove -s AlJazeeraEnglish \ -P merge "tsp -I dvb -a 0 @ts1022.txt -P zap TV5MondeEurope" \ -P analyze -i 30 -o merged.txt \ -O dektec @modulation.txt Here is my version: import sys import subprocess mod_values = { […]

Categories
Mastering Development

Background image for animated gif built in Node.js

I’m very new to working with node.js and packages like express and canvas, so I apologise if there are any glaringly obvious mistakes in my code and if I take a bit to understand any questions or solutions. I’m currently working on customising a version of – https://github.com/Nooshu/node-countdown-gif. A canvas generated countdown timer for use […]

Categories
Mastering Development

How to fix CMD get stuck after running python code

So… as the title said, i have a python script which basically is yolo and finding license plate from given image. and it do it right! perfectly! but the issue is, recently when i call it, as usual, from cmd by typing ‘python yolo.py’ it will run and do the job i want but its […]

Categories
Mastering Development

how to add attributes to ndarrary adjacency matrix in networkx?

Orginally I have a hashtag co-occ network stored in dataframe like this: 0 [‘#A’, ‘#B’, ‘#C’, ‘#D] 1 [‘#A’, ‘#E’] 2 [‘#b’, ‘#c’, ‘#D’] 3 [‘#C’, ‘#D’] Then I converted it into an adjacency matrix like this: ,#A,#B,#C,#D,#E,#F,#G,#H,#I,#J,#K #A,0,1,1,0,1,1,1,1,0,1,0 #B,1,0,0,0,1,1,1,1,0,1,0 #C,1,0,0,0,1,1,1,1,0,1,0 … I want to load the net into networkx in order to do the […]

Categories
Mastering Development

How to make it one-liner? Convert list to a bunch of parameters

I have the following code: from datetime import datetime ds = "2020.10.10.12.30.59" y, M, d, h, m, s = [int(x) for x in ds.split(‘.’)] dt = datetime(y, M, d, h, m, s) print(dt) I would like to make it to one-liner something like this: dt = datetime([int(x) for x in ds.split(‘.’)]) of course this is […]

Categories
Mastering Development

Validate a string of certain characters and numeric of exact length using Regex

Objective:match exact 10 of mixed uppercase characters (except I,O, and space) and numeric from 2 to 9: To be exact, here is the valid set the value must be coming from: {‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ‘A’, ‘B’, ‘C’, ‘D’, ‘E’, ‘F’, ‘G’, ‘H’, ‘J’, ‘K’,’L’, ‘M’, ‘N’, ‘P’, ‘Q’, ‘R’, ‘S’, […]

Categories
Mastering Development

Using TEvent and MsgWaitForMultipleObjects in blocking main thread

I have found this Remy’s interesting code. Delphi : How to create and use Thread locally? Can this be done so I can do multiple threads and wait until they are all finished and then continue with main thread? I tried it like this but no success… procedure Requery(DataList: TStringList); var Event: TEvent; H: THandle; […]