Expression Add Operators https://leetcode.com/problems/expression-add-operators/ Given a string that contains only digits 0-9 and a target value, return all possibilities to add operators +, -, or * between the digits so they evaluate to the target value. Examples: “123”, 6 -> [“1+2+3”, “1*2*3”] “232”, 8 -> [“2*3+2”, “2+3*2”] “00”, 0 -> [“0+0”, “0-0”, “0*0”] “3456237490”, 9191 …
Monthly Archives: September 2015
How to remote access mysql via ssh
You need to let mysql listening on the whole Internet (or the IP address you want to restrict to). By default mysql only allows inbound traffic from localhost. To configure that, first you need to locate the configuration file that mysql takes mysql –help –verbose | more # You will find a paragraph like: Default …
Enable GPU for Theano
1. Install Theano http://deeplearning.net/software/theano/install.html 2. Use the following script to test Theano can work at least in CPU mode: ”’ test whether theano is using cpu or gpu ”’ from theano import function, config, shared, sandbox import theano.tensor as T import numpy import time vlen = 10 * 30 * 768 # 10 x …
You are almost always getting significant p-value in large dataset
Recently, an exploding reproducibility research paper [1] shows that more than half of past published papers in the main psychological journals can’t be replicated to generate significance findings. This makes me dig a little further on how to conduct statistical tests. Let me show you my little experiments in `R` first. # remove(list=ls()) set.seed(19910715) n1 …
Continue reading “You are almost always getting significant p-value in large dataset”