EExcel 丞燕快速查詢2

EExcel 丞燕快速查詢2
EExcel 丞燕快速查詢2 https://sandk.ffbizs.com/

PDO array Undefined offset Undefined index fetchAll(PDO::FETCH_ASSOC) fetch(PDO::FETCH_ASSOC)

When you use PDO, try to get

 fetchAll(PDO::FETCH_ASSOC)

 fetch(PDO::FETCH_ASSOC)

return is Array. This Array have rows, it's mean :

array[0] = array["field1", "field2", "field3"]
array[1] = array["field1", "field2", "field3"]
......
array[10] = array["field1", "field2", "field3"]


So get array index or row maybe not exist, when you try to get value, get error code.


You can try to make two function:

function ar_get($val, $ar){
return array_key_exists($val, $ar)?$ar[$val]:"";
}

  function crud_ar_get($val, $ar, $rec_arrow=0){
return (isset($ar[$rec_arrow]))?ar_get($val, $ar[$rec_arrow]) : "";
  }

Example 1:

ar_get for array get value

$prduct = array("product_name"=>"a", "product_price=>"100");

ar_get("product_name", $product);
ar_get("product_price", $product);

If no index, just return ""


Example 2:

crud_ar_get for array get value

$prduct[0] =  array("product_name"=>"a", "product_price=>"100");
$prduct[1] =  array("product_name"=>"b", "product_price=>"200");

crud_ar_get("product_name", $product);  // a
crud_ar_get("product_price", $product);  // 100

crud_ar_get("product_name", $product, 1);  // b
crud_ar_get("product_price", $product, 1);  // 200

If no offset, just return ""


This way can avoid  Warning Message.  For small website.


BUT performace...... maybe no good..

Dell Latitude E6230 E6220

淘寶上有,最便宜大概五千,不要ram和hdd情況下,但12吋螢幕

http://www.mobile01.com/topicdetail.php?f=236&t=4740398

Mockup mockflow

https://mockflow.com/apps/wireframepro/


https://www.mockflow.com/samples/

重點是有免費試用~~~

acer cb5-571 windows 10 -- Installation Guide Acer C740, C910, CB5-571

https://docs.google.com/document/d/1nFZmoRzQ03btPCGVSa4ku6JPQik-SxD__zOd1CoB2yg/edit


https://coolstar.org/chromebook/windows-install.html

=====
Tips for maximizing storage space for 16/32GB SSDs with Windows 10.
https://www.reddit.com/r/chrultrabook/comments/493619/maximizing_storage_space_on_1632gb_ssds_windows_10/



How to remove all bundled apps in Windows 10
http://winaero.com/blog/how-to-remove-all-bundled-apps-in-windows-10/



[轉]PDO学习笔记

http://www.ido321.com/1424.html

PDO支持三种异常模式:
默认模式:PDO::ERRMODE_CLIENT
警告模式:PDO::ERRMODE_WARNING
异常模式:PDO::ERRMODE_EXCEPTION(推荐)

[轉]【译】PHP:40+开发工具推荐

http://www.ido321.com/1546.html



=====
good
http://phpdebugbar.com/

[轉]我用爬虫一天时间“偷了”知乎一百万用户,只为证明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

[轉]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(),'-','')。

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

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

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/

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




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插出來用


Navigation Drawer

http://www.coderzheaven.com/2013/06/28/navigation-drawer-android/

http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html

recat

http://blog.kdchang.cc/2015/10/reactjs-notes-intro.html

[轉]Facebook Like Chat Application using React JS, PHP and jQuery

http://www.codedodle.com/2015/04/facebook-like-chat-application-react-js.html

windows 10 uwf



http://www.xp933.com/win10/win10xueyuan/6469.html



如何提高win10系统性能?开启UWF能大幅度提高硬盘的运行速度

[轉]Whatever happened with react-canvas? Why hasn’t it taken off?



@cheapsteak, I'd love to use React Canvas for my entire app. Its so much more performant, especially for swiping and animations. But the reason I decided not to use it is

 (1) accessibility and 
(2) inputs.

 You can't select/highlight text or copy/paste. 

You can't tab through input fields. 

You can't access the camera. 

Browsers are designed with all kind of quirks. You can't pull up the camera on mobile without an <input type="file" capture/> element, and you can't put HTML elements inside a canvas.

I didn't want to spend so much time building input fields and dealing with another layer of browser quirks so I gave up on the fantasy

[轉] 顯卡 性價比 CP

https://docs.google.com/spreadsheets/d/1TlKlApATuDJVcg94KdPE3CbunrpKKG8U0mx25Bybsls/edit#gid=543148382