Categories
Linux Mastering Development

Programs launching on wierd places with KDE Plasma

I just installed KDE Plasma on Manjaro. I set it up like I like it, I have one problem with it that I didn’t find a solution for. Most of the programs launch on “wrong” places on the desktop (not where I want them to). I used xfce until now and got used to it. […]

Categories
Linux Mastering Development

Shell script, get/extract mac address from console output of command after “MAC: “

I’m trying to automatically pull out the mac address of a arduino device using a shell script, and need some help how to do this. This is the output returned by the command: Opening /dev/cu.SLAB_USBtoUART @ 115200… Connecting to ESP32 ROM, attempt 1 of 10… Connecting to ESP32 ROM, attempt 2 of 10… Connected, chip: […]

Categories
Linux Mastering Development

using rsync to distinguish between files that are different on local vs remote vs files that exist on one but not the other

I’m using the following command to compare directories on my local and remote machines rsync -K –delete -n -avrc $cwd/* simon@${othIP}:$cwd > /tmp/output where the macros have the obvious values. I can then parse /tmp/output to find which files would be deleted from the remote if I synced. But I need to distinguish between files […]

Categories
Ask Chemistry

Calculating change in enthalpy

I’ve got an assignment to solve this problem: Calculate the change in Enthalpy when 50cm3 if 0.2moldm-3 NaOH is added to 250cm3 of HCl. The initial temperature is 21.6C and it rose to 32.8C. I tried solving it by doing: ((250*4.18*11.2)/1000)/0.01 But it results in the change in enthalpy being -1170.4kJmol-1 which seems quite high. […]

Categories
CMS Mastering Development Wordpress

Filter out other users comments. Visualize only own comments and editor role users’ comments

I have a similar request as per question but I am totally not into php and would not know where to start to make such edits based on the answer provided. Would be great if anyone could help here. This is for a simple school project where teachers can share assignments with thier students. Students […]

Categories
CMS Magento Mastering Development

Can’t delete block from Magento 2 homepage

I’m working on Magento 2 website that somebody developed before me. The website has Ultimo Theme. I’m trying to remove a block with a slider on the top of the home page. In the Ultime guide that block is referenced as “preface” static block (it’s located below the navbar and right above the page content). […]

Categories
Mastering Development System & Network

Cannot authenticate WPA2 EAP-TLS Freeradius

I’m a student and I need to set up a WPA2 EAP-TLS based architecture. But I’m unable to log in to my access point using my generated certificates. I followed this tutorial to set up my Freeradius server. I generated my certificates from the /etc/freeradius/3.0/certs with make. I have an access point using hostapd configured […]

Categories
Mastering Development System & Network

No package sendmail available

Unfortunately, my server is unable to send email. I found the following tutorial by searching the web: https://pepipost.com/tutorials/install-sendmail-server-centos-7/ But when I enter the sudo yum install sendmail sendmail-cf m4 command, I get the following output [root@server ~]# sudo yum install sendmail sendmail-cf m4 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.checkdomain.de […]

Categories
Ask Mathematics

Error in Fourier Interpolation with Random Design Points

Let $F : [0, 2\pi] \to \mathbf{R}$ be a periodic function, with Fourier expansion $$F ( x ) = \sum_{k \in \mathbf{Z}} f_k e^{ikx}.$$ Fix $N = 2M + 1$ for $M \in \mathbf{N}$, and suppose I perform the following procedure: Sample $x^1, \ldots, x^N \sim^\text{iid} \text{Unif}(0, 2\pi)$. Form the interpolant $\hat{F}$ of $F$ through […]

Categories
Ask Mathematics

Maximizing quadratic forms

Consider the maximization problem $$\text{maximize} \quad Q(x)= \sum_{i<j} \Big(\sum_{k} a_{ik}a_{jk}\Big) x_i x_j \quad \text{subject to} \quad \sum_{i}x_i^2=1,$$ and let $M$ be maximum value obtained by $Q$ under such constraint. Suppose that $a_{ij}=a_{ji}$ for all $i,j$ and that $$ \begin{cases} a_{ij}=0 &\text{if $i+j\equiv 0\mod 2$,} \\ a_{ij}>0 & \text{if $i+j\equiv 1\mod 4$,} \\ a_{ij}<0 & \text{if […]