Categories
Development System & Network

move windows service into a cloud based solution in azure

I want to move a very old windows service into azure but I don’t azure well enough. The service as it stands spins up a number of threads and each thread queries a database every x minutes and then sends out an email for every record that the db query returns. Is an azure time-based […]

Categories
Development System & Network

How come whenever I connect a monitor via the mini display port, the WiFi signal drops to below 1Mbps? [closed]

I have a client machine (System 76 Gazelle) that is running Pop_Os 19.10 with one monitor connected via HDMI. Every time I connect another monitor via mini displayport, the WiFi speed drops from ~150Mbps to under 1Mbps. Why on earth is this happening?

Categories
Development System & Network

Error while installing Ruby for Mastodon installation. (Error running ‘requirements_centos_libs_install ruby’,)

Trying to install Ruby for a Mastodon installation. But I get this message: Anyone any ideas? Thx! [mastodon@localhost ~]$ rvm install 2.6 Searching for binary rubies, this might take some time. No binary rubies available for: centos/7/x86_64/ruby-2.6.3. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. Checking requirements for […]

Categories
Development System & Network

Postfix: Disable spam filter for outgoing email

My Postfix/SpamAssassin setup is sending out emails with headers from SpamAssassin. How do I stop it? Whitelisting my network/domain doesn’t seem to do the trick. How do I tell postfix, to use the content filter on incoming emails only?

Categories
Development System & Network

CentOS 7 LibVirt/KVM guest NIC limited 100Mbps/100BaseT

Running a KVM CentOS 7 guest on a CentOS 7 host. Everything is swell except the guest NIC seems to be stuck at 100Mbps. From dmesg: [ 17.217541] 8139cp 0000:00:03.0 ens3: link up, 100Mbps, full-duplex, lpa 0x05E1 Settings for ens3: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full The host […]

Categories
Development System & Network

locking down with DKIM and SPF and received email that looks signed by our DKIM

We received this email which is definitely spam/spoofing our stuff(I don’t have DMARC setup just yet and haven’t finished setting up DKIM on one other service sending email for us). I don’t get how they signed their stuff though so gmail thinks it is signed by orderlyhealth.com I did paste the DNS TXT record in […]

Categories
Development

Animate a Plotly map with a sliding date bar

I’m struggling to turn this piece of code I wrote – which constructs a static heatmap – into an animated version with a date slider. import pandas as pd import plotly.graph_objects as go … fig = go.Figure(go.Densitymapbox(lat=df_heat[‘lat’], lon=df_heat[‘lon’], z=df_heat[‘count’], radius=10,)) fig.update_layout(mapbox_style=”carto-positron”, mapbox_zoom=10, mapbox_center = {“lat”: 40.7831, “lon”: -73.9712},) fig.update_layout(margin={“r”:0,”t”:0,”l”:0,”b”:0}) fig.show() In the above code, I […]

Categories
Development

Transfer data from 1 scene to the 2 scene

(I want to make a 2d game with unity) I would like to pass the coin values from the first scene to the second one. I would like to take the coins from the first scene and set them as start point for the second scene, Can someone explain me how it works via serialize? […]

Categories
Development

What does the garbage collector do if only one instance variable of an object is reachable

My question is what the comment says in this code snippet: public class A { int x = 0; } public class B { String text = “a”; A a = new A(); } public class Test { public static void main(String[] args) { A a = null; if (a == null) { B b […]

Categories
Development

How to use OpenCV to overlay an image AND text/shapes?

I ran into a problem regarding OpenCV’s transparent overlays. This is my code so far: import cv2 cap = cv2.VideoCapture(‘Sample_Vid.mp4’) stat_overlay = cv2.imread(‘overlay.png’) fps = 21 if cap.isOpened(): while cap.isOpened(): ret, frame = cap.read() overlay = frame.copy() output = frame.copy() cv2.rectangle(overlay, (0, 0), (730, 50), (0, 0, 0), -1) cv2.putText(overlay, fps, (1230, 20), cv2.FONT_HERSHEY_DUPLEX, 0.5, […]