7 karma · joined Dec 10, 2017 (8y ago) · 19 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
99% of the time the cause was: you are on PHP 5.2, but we're trying to use PHP 5.3 late static binding ( `static::someMethod()` ).
comment 4y ago · link · parent
comment 4y ago · link · parent
One of the reasons I haven't moved over to NeoVim is because they removed this feature, because supposedly it's not perfect or something. So sure, the NSA may be able to still be able to extract my passwords if they arrest me and take my computer, but the point is that random people won't be able to.
comment 5y ago · link · parent
I'm thinking that if men and women of equally poor background, women have this escort option that men don't (obviously they do, but it pays far less good on average than women).
comment 5y ago · link · parent
comment 5y ago · link · parent
But I must say that this escort is super smart and has a really good sense of business. This article also gave me some newfound respect for escorts for the fact that although on the surface they seem to mostly just use their bodies, they do put in a lot of effort on the business and strategy side which people don't talk about.
comment 5y ago · link · parent
comment 7y ago · link · parent
This algorithm creates an initially empty array of size K with the DB internal ids of what would randomly be selected. Then it goes in order from 0 to the number of rows - 1, and for each one it goes e.g. "What are the chances that number 0 would get randomly picked out of N items if K items need to be picked?" Then, if the #0 passes the "random check", it gets added. Then it would go to 1 and go "What are the chances #1 would be picked out of N-1 items if K-1 items need to be picked?" ...and repeated so on until all K random items have been picked?