EExcel 丞燕快速查詢2

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

android crosswalk new for file upload、camera test

1、build.gradle


repositories {
  maven {
    url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
  }
}

compile 'org.xwalk:xwalk_core_library:18.48.477.13'





2、active_main.xml





<org.xwalk.core.XWalkView android:id="@+id/activity_main"
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
</org.xwalk.core.XWalkView>

3、MainActivity.java
 




mXWalkView = (XWalkView) findViewById(R.id.activity_main);
mXWalkView.load("https://blueimp.github.io/jQuery-File-Upload/", null);


@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  mXWalkView.onActivityResult(requestCode, resultCode, data);

 
4、AndroidManifest.xml



<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />





android:hardwareAccelerated="true"

web app javascript hyper app basic



基本上 codova phonegap都是用webview裡面的addJavascriptInterfac 指定@JavascriptInterface 的java method,間接呼叫 回傳資料,達到和原生溝通


codova phone 等等都是包好,讓使用者方便使用,而且共同開發,讓呼叫 回傳 android 多版本能正常


ionic、titanic、react native 等等 為了在web app上速度更快或是對應呼叫 回傳時,開發速度更快

[轉]Android WebView 与 JavaScript 交互 AND Java

https://codemumbai.wordpress.com/android-webview-image-upload-solved/

http://maurizionapoleoni.de/blog/implementing-a-file-input-with-camera-support-in-android-with-crosswalk/

=====
https://mthli.github.io/Android-WebView-JavaScript


http://stackoverflow.com/questions/11544992/taking-a-picture-from-the-camera-fails-20-of-the-time


http://bluereader.org/article/165908253


http://www.mobile-open.com/2015/65366.html


http://www.flapjacksandcode.com/blog/2015/2/17/android-webviews-getusermedia-putting-it-all-together

http://lookintoandroid.blogspot.tw/2015/11/getting-camera-captured-image-in.html
=====
upload file
http://www.unknownerror.org/opensource/brandonsavage/Upload/q/stackoverflow/5907369/file-upload-in-webview




=====

用CrossWalk包的話,可以肯定是最新的chrome,保證在操作上的正常!但app會非常的肥大~~

再不然就不能事先說明android 5以上才能存取 camera, file upload

[轉]免费空间+便宜VPS和OpenResty,Ngx_lua,Redis搭建系统负载均衡环境

http://www.freehao123.com/vps-openresty-ngx_lua/

免费空间+便宜VPS+OpenResty +Ngx_lua +Redis高效系统负载平衡环境,经过测试,15美金的服务器能支持每天2-3万IP的访问量



免费空间、nginx、ngx_lua、Redis


[轉]网站服务器压力Web性能测试:Apache Bench,Webbench,http_load安装使用


http://www.freehao123.com/apache-bench-webbench/

http://www.freehao123.com/linux-vps-cpu/

website moeny

http://www.cj.com/

https://affiliate-program.amazon.com/

oneinstack 一键安装 lnmp

https://oneinstack.com/install/


=====
可另外裝  oneinstack/shadowsocks.sh install

image resize and fill color



http://deepliquid.com/projects/Jcrop/demos.php?demo=advanced




http://dbwebb.se/opensource/cimage

[轉]怎麼知道 SEO (關鍵字) 成效如何?

https://cola.workxplay.net/how-to-know-seo-is-working/





快查 SEO 成效

– Chrome 請登出 Google 帳號
– 請用無痕模式


你可以在 Google 查詢 site:你的網址
確認你的頁面被 Google 收錄(建立索引 / index)了沒.






(已經被收錄的網址)






[轉]SMO

https://cola.workxplay.net/what-is-smo-metatag/



FaceBook : Open Graph tags
https://developers.facebook.com/docs/sharing/webmasters#markup
最常見的 FB og /社群標籤,直接影響轉貼、分享於 FB 上的內容

小乾貨:有時修改了 og tag 內容,但是 FB 的分享畫面總是出現舊資料,這時可以試試 https://developers.facebook.com/tools/debug/ ,請 FB 重新抓取指定網址的資料。

=====

Twitter card info
https://dev.twitter.com/cards/types/summary個人愛用,雖然近期使用人數大減,但他的好處和優點很難用文字說明 XD ,除了 card info 的標籤官網也指出:我們也吃 og 標籤
https://dev.twitter.com/cards/getting-started#opengraph


=====

Google Plus / Google +
https://developers.google.com/+/web/snippet/你以為 Google plus 沒人用,那就虧大了!Google 的 搜尋結果頁超愛這味的!
上面的網址內也有提供產生器,讓非工程師也能簡單使用。

=====

MicroData JSON-LD
https://developers.google.com/schemas/formats/json-ld?hl=zh-TW這算是比較工程師層面的,把內容丟給你家工程師看吧
由入門的 MicroData (http://schema.org/) 延伸到較進階的 JSON-LD


====================



Google 提供的 https://developers.google.com/structured-data/testing-tool/ ,他能驗證、檢驗你設定的 tag 有沒有生效、正確



強大的 http://smo.knowem.com/ ,他能將所有常用、相關的 tag 分類列出,並且還能告訴你缺少了哪些


較可惜的 https://www.similarweb.com/website/,他可以取得目標網站的各種資料,關鍵字、連入/連出網站等,缺點就是想要更多資訊,就需要升級付費功能

大量email

http://mailchimp.com/pricing/entrepreneur/

https://sendgrid.com/pricing

turnkeylinux bitnami

https://www.turnkeylinux.org

php news records previous next

http://www.sitepoint.com/forums/showthread.php?645467-Retreiving-the-previous-and-next-row-through-PDO&p=4425809&viewfull=1#post4425809


SELECT
i.images_id
,COALESCE(
(SELECT images.images_id FROM images WHERE images.images_id < i.images_id ORDER BY images.images_id DESC LIMIT 1),
(SELECT images.images_id FROM images ORDER BY images.images_id DESC LIMIT 1)
) AS previous_images_id
,COALESCE(
(SELECT images.images_id FROM images WHERE images.images_id > i.images_id ORDER BY images.images_id ASC LIMIT 1),
(SELECT images.images_id FROM images ORDER BY images.images_id ASC LIMIT 1)
) AS next_images_id
FROM
images i
WHERE
i.images_id = 1



==========
for record, not for page

1、 get all new_id in array  (PDO fetchAll(PDO::FETCH_ASSOC) )

$all_news_ids = $crud->sql("select news_id from news");


2、get $now_news_id key for array

$now_news_id_key_id = array_search(array('news_id'=>$now_news_id), $ar_all_news_ids);


3、check $now_news_id_key_id first, if empty

$prive_news_id = empty($now_news_id_key_id)?"":get_record_column('news_id', $all_news_ids, $now_news_id_key_id+1);
$next_news_id = empty($now_news_id_key_id)?"":get_record_column('news_id', $all_news_ids, $now_news_id_key_id-1);



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

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