randv's comments

randv | 4 years ago | on: A regular expression to check for prime numbers (2007)

steps:

- it is turning the number into a string of 1s 3 => 111 4 => 1111 and so on

- then trying to simulate divisibility test by trying to find perfect groups of '11' to simulate division by 2 failing which (that is the backtracking part) and trying find perfect groups of '111' to simulate division by 3 and so on...

Clever but very inefficient

randv | 4 years ago | on: A regular expression to check for prime numbers (2007)

- it is turning the number into a string of 1s 3 => 111 4 => 1111 and so on

- then trying to simulate divisibility test by trying to find perfect groups of '11' to simulate division by 2 failing which (that is the backtracking part) and trying find perfect groups of '111' to simulate division by 3 and so on...

Clever but very inefficient

randv | 4 years ago | on: A regular expression to check for prime numbers (2007)

while compact and looks elegant...

it is basically trying to group by 11 (divide by 2), if there no match (via backtracking) group by 111 (divide by 3) and so on

not very efficient by any stretch esp with string matches.

randv | 12 years ago | on: A glimpse of undefined behavior in C

I observed this when I was back in school using a simpler expression i = 0; i = i++;

the answer will be different in different compilers. I use this as an interview question ever since, not to get the right answer but to understand the candidates thought process in solving the problem and his/her understanding of operator precedence :-)

randv | 13 years ago | on: Math notes to take you from one year of college calculus to grad student level

I dont know your level, for someone like me who studied mathematics years ago but not applied it for years, I found "In pursuit of unknown, 17 equations that changed world" by Ian Stewart very helpful. While it is not a detailed math book, it gave me enough pointers to refresh and prepared me to dive deeper through other material.

randv | 16 years ago | on: Don't give money [that's restricted] to Haiti

I agree with the unrestricted donation part. My money went MSF primarily because they had a staff of more than 700 people before the earth quake struck and knew how to help the country.

randv | 16 years ago | on: The Dark Side of Customer Development and Lean Startups

Good analysis and I agree with you on using custdev as a tool in your tool kit rather than follow it like a religion. Another point, Steve always talks about shortcutting the custdev process if you happen to be the SME on the subject. If you know lot about what customers want in a area because you have experience in then you can skip portions of it.
page 1