Categories
Development System & Network

NATing w/ iptables + OpenVPN without impacting the host

I’m looking to leverage a Linux device as a default gateway, routing off-host traffic over an OpenVPN connection without impacting the hosts route the internet. I don’t want traffic for the host to egress via the VPN, only that traffic that is coming from other devices. I have successfully configured the NATing, have the traffic […]

Categories
Development System & Network

Long delays and slow performance of Server 2K8 R2 VM after upgrade

I used to have a Server 2003 R2 Hyper-V VM instance running on an Server 2012 R2. The performance was very good. THen, I was told that 2003 wasn’t being supported anymore by a software package I use, so I upgraded to 2008 R2, and that’s when all my SMB shares took a nosedive. When […]

Categories
Development Linux Ubuntu

gnome-shell gradually blurs everything in all windows and even the tray, how to fix?

It began 3 days ago, I am not sure what I could have changed. I ran metacity –replace and everything looks correct (but I lose the top tray bar). As soon I run gnome-shell –replace the horrible gradually blurring everything everywhere begins… It seems to start after 00:00h (when “NightLight” is automatically resumed), not fully […]

Categories
Development Linux Ubuntu

Plex Server and NAS OS Suggestions? [closed]

I’m building out a Plex Server and i’m torn on what to do for the OS. I WANT! a GUI for my OS. It makes my life easier and I prefer it. So don’t waste my time with posts about “just learn command line”. That’s not what i’m asking for, nor is it helpful for […]

Categories
Development Linux

Get the device path of USB given device ID

After plugging the USB to the port of my machine, if I do lsusb I see the device I am looking for: Bus 001 Device 004: ID 04f2:b573 Some Manufacturer If I list the devices under /dev/, I can see lots of device paths, such as /dev/tty0, /dev/ttyUSB0… etc. For what I understand, one of […]

Categories
Development Linux

CMAKE missing: X11_EXECUTABLE)

I’m trying to compile a program using CMAKE, but it requires X11 to be installed. I have X11 installed on my system. When I run apt-file find x11.so I get the output: aeolus: /usr/lib/aeolus/aeolus_x11.so banshee: /usr/lib/banshee/Backends/libbnpx11.so baresip-x11: /usr/lib/baresip/modules/x11.so fcitx-module-x11: /usr/lib/x86_64-linux-gnu/fcitx/fcitx-x11.so gmerlin-plugins-base: /usr/lib/x86_64-linux-gnu/gmerlin/plugins/i_x11.so gmerlin-plugins-base: /usr/lib/x86_64-linux-gnu/gmerlin/plugins/ov_x11.so keepassx: /usr/lib/x86_64-linux-gnu/keepassx/libkeepassx-autotype-x11.so kwin-x11: /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so libdirectfb-extra: /usr/lib/x86_64-linux-gnu/directfb-1.7-7/systems/libdirectfb_x11.so libjogl2-jni: /usr/lib/jni/libnativewindow_x11.so libsuil-0-0: /usr/lib/x86_64-linux-gnu/suil-0/libsuil_x11.so libva-dev: […]

Categories
Development Linux

Start forge server on arch linux?

I installed the latest version of minecraft forge server over the AUR. 1 aur/forge-server 1.15.2_31.1.0-1 (+2 0.11%) (Installed) Minecraft Forge server unit files, script and jar I can’t seem to start it tho? I tried to run forge,forge-server and forge-server-1.15.2 – but it tells me command not found? How am I supposed to start the […]

Categories
Development

Why does the colorbar do not appear in my cloropleth map?

I have plotted a cloropleth map. But the colorbar bar does not appear properly. This is the dataframe I am using: This is my code: ax=new_df.plot(figsize=(18,16), column=’count’, cmap=’Blues’, k=5, legend=True) plt.title(“Number of IPs by district – Ontario”) ax.set_axis_off() This is what I have:

Categories
Development

Why don’t my eigenvalues for A*Atranspose and Atranspose*A match?

import numpy as np import matplotlib.pyplot as plt import scipy.linalg as la A = np.array([[-5,-5,-1,0,0,0,500,500,100], [0,0,0,-5,-5,-1,500,500,100], [-150,-5,-1,0,0,0,30000,1000,80], [0,0,0,-150,-5,-1,12000,400,80], [-150,-150,-1,0,0,0,33000,33000,220], [0,0,0,-150,-150,-1,12000,12000,80], [-5,-150,-1,0,0,0,500,15000,100], [0,0,0,-5,-150,-1,1000,30000,200]]) print(“Matrix A is :\n”, A) A_Trans=np.transpose(A) print(“Transpose is:\n”,A_Trans) prod1=np.dot(A,A_Trans) print(prod1) u,v = la.eigh(prod1) print(“Eigen values of AAT are \n”,np.abs(u)) print(“Corresponding eigenvectors of AAT in the columns: \n”,np.abs(v)) prod2=np.dot(A_Trans,A) print(prod2) w,x = la.eigh(prod2) print(“Eigen […]

Categories
Development

Why The Elements of 2 Identical arrays Equal each other

I should mention the purpose of this code is to tackle a leading zero scenario when finding date palindromes in dates in format MMDDYYY. Here is the code. #include <iostream> using namespace std; unsigned numDigits (unsigned num)//this works { if (num < 10) return 1; return 1+ numDigits(num/10); } int main () { unsigned date […]