« first day (795 days earlier)      last day (1368 days later) » 

5:10 AM
6
Q: Apply function to pandas row-row cross product

BBQuercusI have two pandas DataFrames / Series containing one row each. df1 = pd.DataFrame([1, 2, 3, 4]) df2 = pd.DataFrame(['one', 'two', 'three', 'four']) I now want to get all possible combinations into an n*n matrix / DataFrame with values for all cross-products being the output from a custom functio...

 
 
3 hours later…
7:58 AM
4
Q: Noncommutative torus as a von Neumann algebra

truebaranLe $\theta$ be irrational. One can define the noncommutative torus $A_{\theta}$ as a universal algebra generated by two unitaries $u,v$ satisfying the relation $vu=e^{2 \pi i \theta} uv$. This is an abstract defnition: however one can show that this algebra is simple and can be concretely represe...

3
Q: Computer Won't Boot after Updating the BIOS on a Dell Precision 5820

T. LoraxI have an existing Ubuntu 16.04 LTS install on a Dell Precision 5820 tower that has booted without issue for 2 years. After updating the BIOS via the Ubuntu Software Center (to 1.13.0), my computer will only give a black screen. I see lots of folks discussing how BIOS updates bricked their comput...

 
 
6 hours later…
1:40 PM
2
Q: Discrete entropy of the integer part of a random variable

GoulifetLet $X$ be a real valued random variable. Of course, the integer part $\lfloor X \rfloor$ of $X$ is a discrete random variable taking values in $\mathbb{Z}$. We can therefore define its discrete entropy \begin{equation} H(\lfloor X \rfloor) = - \sum_{n\in\mathbb{Z}} \mathbb{P}( \lfloor X \rfloor ...

 
 
1 hour later…
3:10 PM
7
Q: Improve the speed of a JavaScript function

CortolomanI have a task I found on CodeWars and I managed to solve it, however, after submitting is says: Execution timed out: (12000 ms) When I try to test the function is passed, but I guess it is too slow. Before you condemn me for not finding the answer on my own. I don't really care about submitting...

 
 
2 hours later…
4:40 PM
1
Q: how can awk be used to list docker containers?

Nicholas SaundersI'm looking to use tools along the lines of: grep sed awk to work with docker. listing containers: docker container ls | awk '{print $1}' results: CONTAINER 490e3d669259 a44230a617e1 How can I omit the "header"? here's the full output for docker container ls should that prove useful: CONTAINE...

 
 
6 hours later…
10:28 PM
1
Q: Store sha256 hashes into relatives files

PieroI would like to generate sha256 hash for each log file in a folder and store that hash in a file named by the original file name suffixed with ".sha265" int he same folder. For example, I would like to store the hash for /path/file.ext into /path/file.ext.sha256 I succeed in generating the hashes...

 

« first day (795 days earlier)      last day (1368 days later) »