[轉]我用爬虫一天时间“偷了”知乎一百万用户,只为证明PHP是世界上最好的语言

http://www.epooll.com/archives/806/ https://github.com/owner888/phpspider ===== http://blog.chinaunix.net/uid-22414998-id-3774291.html ===== http://blog.reetsee.com/archives/366

2016-03-04 · 1 min · 6 words · Me

[轉]Mysql 集成随机唯一id mysql unique number generation

http://justcode.ikeepstudying.com/2015/05/mysql-%E9%9B%86%E6%88%90%E9%9A%8F%E6%9C%BA%E5%94%AF%E4%B8%80id-mysql-unique-number-generation/ SELECT FLOOR(10000 + RAND() * 89999) AS random_number FROM table1 WHERE “random_number” NOT IN (SELECT unique_id FROM table2) LIMIT 1 function get_unique_username($chance=10,$show_sql=FALSE) { global $conn; // connect db if(!$conn) connect(); $output = FALSE; $rand = rand(1,$chance); $sql = ‘SELECT FLOOR(’.($rand==5?‘10000 + RAND() * 89999’:‘100000 + RAND() * 899999’).’) AS random_number FROM gm_users WHERE “random_number” NOT IN (SELECT unique_id FROM gm_ids) LIMIT 1’; if($show_sql) echo $sql; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); if($row[‘random_number’]) { $output = $row[‘random_number’]; // insert this random_number to table gm_ids insert(‘gm_ids’, array(‘unique_id’=>$output)); } return $output; } ...

2016-03-03 · 1 min · 119 words · Me

[轉]Android最佳性能实践(四)——布局优化技巧

http://blog.csdn.net/guolin_blog/article/details/43376527

2016-03-01 · 1 min · word · Me

nativescript hyper app React Native, Titanium, TabrisJs

https://www.nativescript.org/ https://blog.nraboy.com/2015/11/nativescript-vs-ionic-framework-should-you-switch/ ===== http://fex.baidu.com/blog/2015/05/cross-mobile/ ===== ***** http://fex.baidu.com/blog/2015/05/cross-mobile/ http://waylenw.github.io/android-dev-teacher/ http://blog.csdn.net/lmj623565791 http://blog.csdn.net/guolin_blog http://blog.30sparks.com/tag/android-libraries-recommend/

2016-03-01 · 1 min · 11 words · Me

android development best practices

https://github.com/futurice/android-best-practices http://www.slideshare.net/SeanKatz/android-best-practices-2015?qid=98a113a6-fbfa-4997-bbfd-d3cc8cd9454c&v=&b=&from_search=4 http://www.innofied.com/13-android-development-best-practices/ http://www.slideshare.net/Rapidvaluesolutions/best-practices-for-android-ui-by-rapid-value-solutions?qid=98a113a6-fbfa-4997-bbfd-d3cc8cd9454c&v=&b=&from_search=6 http://www.sitepoint.com/5-resources-for-android-developers/ https://github.com/roboguice/roboguice http://www.tutorialspoint.com/android/android_best_practices.htm ===== http://developer.android.com/training/best-performance.html ===== start begin learn stduying http://www.tutorialspoint.com/android/ http://www.vogella.com/tutorials/android.html =====Libraries https://github.com/JStumpp/awesome-android

2016-03-01 · 1 min · 18 words · Me