Categories

## ggplot – Centralize facet_grid title and appear only once

I’ve created a graph in ggplot with two variables inside facet_grid. I want the title of each facet to repeat only once and in the center of the facet. For example, the zeros and ones in the first raw (upper facet), will appear only once and in the middle. Sample data: df <- head(mtcars, 5) […]

Categories

capabilities(7) are a great way for not giving all root privileges to a process and AFAIK can be used instead of setuid(2). According to this and many others, “Unfortunately, still many binaries have the setuid bit set, while they should be replaced with capabilities instead.” As a simple example, on Ubuntu, $ls -l `which […] Categories ## How to create add an array to a multidimensional array I’m trying to merge an array into another. If a business is a child of it’s sector. My aim is to create a array that looks like this: [0] => Array ( [sector] => 198 [business] => Array ( [0] => 201 ) ) [1] => Array ( [sector] => 178 [business] => Array ( […] Categories ## Is it possible to setup CORS Anywhere on localhost? I am building a web scraper as a small project (using CodeIgniter). Due to CORS policy, I am not allowed to get data from some sites. To bypass that, I am using Rob Wu’s CORS Anywhere. I’m prepending the cors_url to the URL I’m scraping data off of. Everything works fine until I hit the […] Categories ## If$0\leq x\leq \frac{2π}{9}$, prove that$\sin^{\sin(x)}(x)

If $0\leq x\leq \frac{2\pi}{9}$, prove that $\sin^{\sin(x)}(x)<\cos(x)$.

Categories

## General way to compute the orthogonal random measure in the stochastic integral

We know that for a centered wide-sense stationary process $X_{t}$, it has a spectral representation that $$X_{t}=\int_{\mathbb{R}}e^{i\lambda t}Z(d\lambda),$$ where $Z$ is an orthogonal random measure with structure measure $\rho$ that is the spectral density measure corresponding to the covariance function in Bochner Thoerem I have no problem with how to compute $\rho$: you only need […]

Categories