http://www.ido321.com/1424.html
PDO支持三种异常模式:
默认模式:PDO::ERRMODE_CLIENT
警告模式:PDO::ERRMODE_WARNING
异常模式:PDO::ERRMODE_EXCEPTION(推荐)
[轉]我用爬虫一天时间“偷了”知乎一百万用户,只为证明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
https://github.com/owner888/phpspider
=====
http://blog.chinaunix.net/uid-22414998-id-3774291.html
=====
http://blog.reetsee.com/archives/366
[轉]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;
}
=====
http://www.debugease.com/mysql/278572.html
无法实现!变通的办法,还是直接使用 auto_increment ,然后前面加几个随机数。如果一定要做到,则可以创建一个 8 位数字的表 1,2,3,...,99999999
然后每次任意出其中一个 select * from x order by rand() limit 1取出该数据后删除
=====
http://www.yunii.com/71257.htm
4.使用mysql的 UUID()函數。前面的自增字段(auto_increment)只能生成”表內”的唯一值,且需要搭配使其爲”唯一的主鍵或唯一索引”,它的值是逐步增長的。這裏的UUID産生的是字符串類型值,固定長度爲:36個字符。UUID生成的是在時間、空間上都獨一無二的值,是“隨機+規則”組合而成。
可以看到,多次調用UUID()函數得到的值不相同,它由五部分組成,並且有連字符(-)隔開,一共36個字符。其中:
前3組值是時間戳換算過來的,解決“時間上唯一”;
第4組值是暫時性保持時間戳的唯一性,重啓mysql才會變動;
第5組是mac值轉過來的,有助于解決“空間上的唯一”,同一個機器多實例的一般相同。如果mac值獲取不到,則是一個隨機值。
這些已經可以保證得到的值在時間和空間上的唯一。當然你也可以去掉連字符: select replace(uuid(),'-','')。
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/
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/
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
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
spyder 2 Argyll DisplayCAl dispcalGUI
1、裝 dispcalGUI-0install-Setup
2、裝 Argyll_V1.8.3_win64_exe
3、執行displayCAL -> Tools -> Install Argyll instrument driver
執行後會轉到windows維護畫面,進階,開機選項,重開後選7 禁用驅動認証 (跳出的英文說明是同樣的意思)
4、重覆3步驟
5、執行displayCAL -> Tools ->Enable Spyder 2 Colorimter 選spyd2PLD.bin (要用另一個工具匯出來的sypder 2硬體firemware)
6、插上sypder 2就應該能用了
=====
步驟5匯出工具
http://www.argyllcms.com/doc/instruments.html#spyd2
http://www.argyllcms.com/doc/oeminst.html
具體操作忘了,總之蠻麻煩的,上網查怎麼把spyd2PLD.bin插出來用
訂閱:
文章 (Atom)