2017年7月18日 星期二

[ 開箱文 ] CP 值高 推薦 USB 3.0 TCELL 冠元 隨身碟 NEW BLACK & WHITE

[ 開箱文 ]
CP 值高 USB3.0  

TCELL 冠元-USB3.0 隨身碟 NEW BLACK & WHITE

實際測驗 usb 3.0 前主機插口、後主機插口 速度
實際測驗 usb 2.0 前主機插口、後主機插口 速度


空的外包裝

實體usb 有點鐵的重重質感

當 usb 2.0  介面 時 測試速度 (電腦前usb)

當 usb 2.0  介面 時 測試速度 (電腦 後usb)

當 usb 3.0  介面 時 測試速度 (電腦 前usb)

當 usb 3.0  介面 時 測試速度 (電腦 後usb)



2017年7月13日 星期四

[ Visual Studio ] 找不到參考 Microsoft.Office.Interop.Excel office

[ Visual Studio ] 找不到參考   Microsoft.Office.Interop.Excel  出驚嘆號!


Visual Studio Setup 請要勾選 Microsoft Office Developer Tools

但..你記要安裝 Office 才能參考..

Visual Studio Setup 請要勾選  Microsoft Office Developer Tools

這樣就能找到參考

2017年7月12日 星期三

[ Windows Command ] net 指令

[ Windows Command ] net 指令

刪除 連線
net use \\192.168.37.128\C$ /delete

net use xxx.xxx.xxx /delete

顯示目前連線
net use


2017年7月11日 星期二

[ Xamarin 閱讀心得 ] 2017-07-12 心得 台灣真的很少人在用

[ Xamarin ] 2017-07-12 心得  

台灣真的很少人在用

因為一堆 安裝 卡關問題..

都只有國外的人才有在討論...

有 民間開班的課程...都貴俗俗...

力x..或..xxx

好辛苦的路..

大多人還是開發 原生 APP 比較多

但  Xamarin  己經 copy Android  超像了,..

而且..又是用 C#

人生丫...



[ Xamarin ] Xamarin 4.2.2.1 升級 Xamarin 4.5 版 後 問題 說明 Androild 4.4 Designer 無法顯示

Xamarin 先來介紹 下載安裝更新檔 位置  獨立安裝檔

官網下載網址
https://store.xamarin.com/account/my/subscription/downloads

官網新說明網址
https://developer.xamarin.com/releases/android/xamarin.android_7/xamarin.android_7.4/


Visual Stuido 2015 第1版  安裝內容就有可以選  Xamarin v4.2.1 版

msdn 是希望 自行再更新到 Update 3 版,會比較穏定...

重點來了..

如果你己安裝 Xamarin v4.2.1  然後升級 Xamarin 4.5  版 or 更新版本

你會無法再 編譯 Androild 4.4 (API 19 )  , 無顯示 Designer 畫面


Something went wrong

The operation Load failed due to an internal error

java.lang.NullPointerException


若要顯示 只能改 編譯 Androild 5 (API 21 )  以上..

但我還是需要 Android 4.4 版, 最後還是 移除 新版...重新安裝 Xamarin V4.2.1

經測試 Xamarin V4.3 也可以用 , 可自行到官網

相關論壇討論 (最後都是無解) GG
https://bugzilla.xamarin.com/show_bug.cgi?id=52583

https://bugzilla.xamarin.com/show_bug.cgi?id=55228

https://stackoverflow.com/questions/44472136/error-switching-layout-to-api19-android-4-4-2

https://forums.xamarin.com/discussion/92892/designer-suddenly-stops-working-for-one-project

http://kjcoder.tistory.com/26

https://forums.xamarin.com/discussion/63356/the-file-obj-debug-android-bin-packaged-resources-does-not-exist

https://forums.xamarin.com/discussion/92892/designer-suddenly-stops-working-for-one-project

https://forums.xamarin.com/discussion/92726/xamarin-designer-crashes-on-android-api-v19

https://stackoverflow.com/questions/43673931/axml-does-not-load-in-older-compiling-version-in-vs2017

Windows 下載 Xamarin.Android  4.3

Xamarin 4.3.0 版


關於我 \ Xamarin 查詢版本

Xamarin 升級後  編譯 Androild 4.4 打開 MAIN.axml 在 Designer Error 無法顥示 

自行到 新增移除 Xamarin 拿掉..再到 vs2015 .iso 重新安裝 Xamarin 4.2.1 版

2017年7月10日 星期一

[ Xamarin ] UI 出現 The installed android sdk is too old 工具箱 沒出現 控制元件 解決

Xamarin UI Tool  problem 如果問題 出現如下

The installed android sdk is too old

The installed android sdk is too old. version 25.1.3 or newer is required.

或其它 version 版本

UI  工具箱 沒出現 控制元件

Bug Picture
問題畫面
how to resolve the problem?

解決方法如下

工具

Open 工具\Android\Android SDK Manager...

紅框 23 數字 太舊..透過過 Install 6 packages 按鈕來更新 

點選 Accept License 就會 顥示 Install 變黑...就能按了
連續更新2次 才到 ( Android SDK Tools  Rev 25.2.5 ) 
正常 ok 了


2017年7月9日 星期日

【知識分享】CPU 比較 I7-7700HQ I7-7600U I7-7700

CPU

I7-7700HQ   記憶體速度:DDR4-2400
I7-7600U   記憶體速度:DDR4-2133, LPDDR3-1866, DDR3L-1600
I7-7700      記憶體速度:DDR4-2133/2400, DDR3L-1333/1600

完整內容可參考以下網址
https://ark.intel.com/zh-tw/compare/97185,97466,97128


點我可以放大圖片

2017年7月8日 星期六

[開箱文] 微星 MSI 筆記型電腦 GS43VR 7RE -077TW 小編 個人心得.

續電力差...大概 4小時就沒電純上網
變電器超大...也很重..話說 筆電很輕( 1.8 公斤 )  , 兩個加起 也快 2.5 公斤..

雖然顯示卡有 VR 但沒錢買

好像沒必要買那麼好的顯示卡 1060 6G

事實上大概需求就 codeing 寫 APP or Web

如果你打電玩那個電力一下就噴飛...所以一定要帶個像打火機一樣大的插電變壓器...

不然你就GG了

這台的規格簡單說一下
作業系統>>> 一律 Windows Home
要 升級 PRO 版的話...作業系統帳號 綁EMAIL,然後 [市集] 信用卡刷卡..
買 升級 Win Pro [2990元] 然後會透過網路下載安裝檔

CPU 7700-hq 完整版執行緒
DDR4 16GB 2400

SSD 256 (事實上電腦顯示 237GB )
1TB sata 7200 轉

顥卡  nVIDIA GeForce GTX1060 GDDR5 6GB獨顯

型號
GS43VR 7RE(Phantom Pro)-077TW-
7RE 指 i7 -第7代

電池:4-Cell / 180瓦

型號 ADP-180MB
input  100-240v~2.23A 50-60hz
output 19.5v == 9.23A

我在 pchome 有找到有人賣..實在好貴 1688元
賣場  http://www.pcstore.com.tw/give168/M19823433.htm

話說我好像看不到 電池沒電要怎麼換, 好像只能插電源線.....這真的很GG
所以...未來你的電筆續電力變差...只好拆你的主機換電池...網路上己經有在賣...-,-..


某商場拍賣...
http://www.books.com.tw/products/N011088403

MSI 官網說明
https://tw.msi.com/Laptop/GS43VR-6RE-Phantom-Pro.html#hero-specification

GS43VR 筆電照片 如下
GS43VR 機身



前背板 有包了一層模

HDMI - USB3.1 - Type-C

Mini Display (TB3 
左邉HP 、 右邉 GS43VR 變電器
實在差太大了.....這主要高規顯卡後遺症>>>要多注意

底盤


2017年6月19日 星期一

【Windows API】C# UNC 網路磁碟機 或 網路資料夾 mount 路磁碟機代號

Windows API
UNC 網路磁碟機 或 網路資料夾

今天的教學不使用 net command 指令

教程課程:
Netapi32.dll

其中三種 函式

1.NetUserAdd([MarshalAs(UnmanagedType.LPWStr)] string servername, int level, ref USER_INFO_? buf, int parm_err)
說明:新增一個連線資訊
參數說明:
servername:DNS or NetBIOS name名稱,如果沒有用可以設 null

level:參數有4種 (1.2.3.4 分別USER_INFO_1 - USER_INFO_2 )就是指資料型態是哪種

buf:回傳 USER_INFO_?

parm_err:用於 NetUserSetInfo ,如果沒用可以設 null

2.NetUserDel([MarshalAs(UnmanagedType.LPWStr)] string servername,[MarshalAs(UnmanagedType.LPWStr)] string username);
說明:刪除現有連線資訊

3.NetUserGetInfo([MarshalAs(UnmanagedType.LPWStr)] string servername,[MarshalAs(UnmanagedType.LPWStr)] string username,int level,out IntPtr bufptr);
說明:查詢現有連結資訊,等同反相得到資料
servername:可以null
username:權限帳號
level:同 NetUserAdd
out bufptr:IntPtr 指標  會收到(結果)   -->Marshal.PtrToStructure(bufPtr, typeof(USER_INFO_?))
Marshal:Marshal.PtrToStructure從 Unmanaged 記憶體區塊封送處理資料到新配置的指定類型的 Managed 物件。

USER_INFO_2 (level 資料型態:2)其它1.3.4 都大同小異
MSDN 網址:https://msdn.microsoft.com/zh-tw/library/windows/desktop/aa371337(v=vs.85).aspx

參數:
LPWSTR usri2_name;
LPWSTR usri2_password; --->密碼
DWORD usri2_password_age;
DWORD usri2_priv;
LPWSTR usri2_home_dir;
LPWSTR usri2_comment;
DWORD usri2_flags;
LPWSTR usri2_script_path;
DWORD usri2_auth_flags;
LPWSTR usri2_full_name;
LPWSTR usri2_usr_comment;
LPWSTR usri2_parms;
LPWSTR usri2_workstations;
DWORD usri2_last_logon;
DWORD usri2_last_logoff;
DWORD usri2_acct_expires;
DWORD usri2_max_storage;
DWORD usri2_units_per_week;
PBYTE usri2_logon_hours;
DWORD usri2_bad_pw_count;
DWORD usri2_num_logons;
LPWSTR usri2_logon_server;
DWORD usri2_country_code;
DWORD usri2_code_page;


Msdn C++ 說明及範例:
網址:https://msdn.microsoft.com/zh-tw/library/windows/desktop/aa370654(v=vs.85).aspx

其它網站說明:
NetUserAdd
網址:http://www.pinvoke.net/default.aspx/netapi32/NetUserAdd.html
網址:http://www.securitypronews.com/using-the-network-functions-in-c-part-i-user-functions-2003-06
其它中文網址:http://www.cnblogs.com/tonyqus/archive/2004/12/26/82120.aspx
其它範例 網址:http://www.securitypronews.com/using-the-network-functions-in-c-part-i-user-functions-2003-06

NetUserGetInfo
其它範例 網址:http://www.pinvoke.net/default.aspx/netapi32/NetUserGetInfo.html

Marshal
MSDN網址:https://msdn.microsoft.com/zh-tw/library/system.runtime.interopservices.marshal(v=vs.110).aspx

Marshal.PtrToStructure
MSDN 網址:https://msdn.microsoft.com/zh-tw/library/4ca6d5z7(v=vs.110).aspx

2017年6月17日 星期六

【隨便開箱文】nac nac 紫外線消毒烘乾機 UA-0011 獨家照片

就隨便開

nac nac 紫外線消毒烘乾機 UA-0011

獨家照片




















【早餐】新莊 夯 碳烤吐司 行動餐車 中華路一段

新莊 夯 碳烤土司 行動餐車

店名「夯」

它是一台發財車..

超屌的,因為晚點去你就沒東西可以買了

不到中午就收攤了...因為太美味了!

餐車沒有位置,可以帶到旁邊的新莊公國吃...

風景好、空氣好.吃飽還可以散步

星期日不開店...大家就別跑了

地址: 新莊 中華路 一段182號 就在  (貴族世家新莊體育館店 旁)

官方臉書:https://www.facebook.com/alltheragesalty/

地圖如下:


獨家拍照







好吃到 孕婦都來買

泡菜燒肉


2017年6月12日 星期一

【Linux】編譯 c 語言 利用 gcc 指令來做

linux 上 編譯 c 語言  利用 gcc 指令來做

$ gcc -c helloworld.c
產出export ---> helloworld.o

$ gcc -o hello helloworld.o
產出export ---> hello

執行:
/hello
顯示:Hello World!!

廠商不教不會用的人,意思就是不教...

只好自己學

2017年6月9日 星期五

【API分享】利用 API YAHOO YQL GOOGLE API YQL 爬資料 2017-06-08

YQL select from html ( html table is no longer supported )

2017-06-08

說明:已不提供支援

可以改抓 select from htmlpost  (you use htmlpost )
使用post ,但結果(RESULT) 會多一層   postresult

自己在 call function 在調整

change use htmlpost 


官網:https://developer.yahoo.com/yql/console/?q=select%20*%20from%20csv%20where%20url%3D%27http%3A%2F%2Fsamplecsvs.s3.amazonaws.com%2FSacramentorealestatetransactions.csv%27%0A%20%20%20%20%20%20and%20columns%3D%27street%2Ccity%2Czip%2Cstate%2Cbeds%2Cbaths%2Csq__ft%2Ctype%2Csale_date%2Cprice%2Clatitude%2Clongitude%27&env=store://datatables.org/alltableswithkeys#




【YQL API - From 來源】
股票
yahoo.finance.quotes
天氣
weather.forecast

任何網址
url
說明:https://developer.yahoo.com/weather/
說明:http://www.jianshu.com/p/7ce4b21810e5?nomobile=yes

歷史查詢
yahoo.finance.historicaldata
說明:http://www.itkeyword.com/doc/7472183801132171674/how-to-access-yahoo-finance-yql-query-with-historical-data

新聞
search.news
說明:http://www.jianshu.com/p/b947ecf6cd05
------------------------------------------------------


https://query.yahooapis.com/v1/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22USDHKD%22%2C%20%22USDJPY%22%2C%20%22USDTWD%22)&format=json&diagnostics=true&callback=

XML 美金、香港、日本、台幣
http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in ("HKDTWD", "JPYTWD", "USDTWD")&format=json&env=store://datatables.org/alltableswithkeys
JSON 美金、香港、日本、台幣
http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in ("HKDTWD", "JPYTWD", "USDTWD")&format=json&env=store://datatables.org/alltableswithkeys

查詢港股
http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.quotes where symbol in ("2002.HK")&format=json&env=store://datatables.org/alltableswithkeys

查詢台股
http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.quotes where symbol in ("2002.HK")&format=json&env=store://datatables.org/alltableswithkeys

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22HKDTWD%22,%20%22JPYTWD%22,%20%22USDTWD%22)&format=json&env=store://datatables.org/alltableswithkeys

Google API JSON 匯率
來源網址 http://sya.idv.tw/archives/1131
https://www.google.com/finance/info?q=CURRENCY:TWDJPY,TWDUSD
https://www.google.com/finance/info?q=CURRENCY:TWDUSD
https://www.google.com/finance/info?q=CURRENCY:USDTWD

要顯示多筆可以逗號分開
//取2002即時股價 JSON
http://finance.google.com/finance/info?client=ig&q=TAIEX:2002
http://finance.google.com/finance/info?client=ig&q=TAIEX:2002,1101

//香港 2002 股價 JSON
http://finance.google.com/finance/info?client=ig&q=HKG:2002

//美國 蘋果股 JSON
http://finance.google.com/finance/info?client=ig&q=AAPL,YHOO

來源網址:
http://lovecoding.logdown.com/posts/257928-use-yahoo-api-to-obtain-historical-stock-price-data

http://blog.asper.tw/2015/05/json.html
http://asper-bot-rates.appspot.com/currency.json

https://tw.rter.info/capi.php


https://www.google.com/finance/getprices?q=2002&x=TPE&i=86400&p=3d&f=d,c,h,l,o,v

yahoo api CSV 檔案
http://download.finance.yahoo.com/d/quotes.csv?s=AUDUSD=X&f=nl1d1t1
http://download.finance.yahoo.com/d/quotes.csv?s=USDTWD=x,TWDJPY=x&f=nl1d1t1

UI
https://finance.yahoo.com/quote/2002.TW/history?ltr=1

http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

UI
https://www.google.com/finance/converter?a=1&from=TWD&to=JPY

UI
https://www.google.com/finance?q=JPYUSD

來源網址:http://myskilltree.blogspot.tw/2016/03/yahoo-api.html
http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json

XML
https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote
https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json

//yahoo API 說明
http://wiki.dreamrunner.org/public_html/Misc/Trade/FinanceAPI.html
http://wern-ancheta.com/blog/2015/04/05/getting-started-with-the-yahoo-finance-api/


https://query.yahooapis.com/v1/public/yql?q=use%20%22http%3A%2F%2Fyqlblog.net%2Fsamples%2Fhelloworld.xml%22%3Bselect%20*%20from%20helloworld%20where%20a%3D%22cat%22%20and%20b%3D%22dog%22%3B%0A&diagnostics=true

https://blog.ccjeng.com/2016/03/Yahoo-Finance-API.html

來源網址:
https://sya.idv.tw/archives/1131


https://query.yahooapis.com/v1/public/yql?q=select * from html where url='http://en.wikipedia.org/wiki/Yahoo' and xpath='//table/*[contains(.,"Founder")]//a'
select * from html where url='http://en.wikipedia.org/wiki/Yahoo' and xpath='//table/*[contains(.,"Founder")]//a'


https://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.quotes where symbol in ('2628.HK')&format=json&diagnostics=true



function getData() {
    var url = 'http://query.yahooapis.com/v1/public/yql';
    var symbol = $("#symbol").val();
    var data = encodeURIComponent("select * from yahoo.finance.quotes where symbol in ('" + symbol + "')");

    $.getJSON(url, 'q=' + data + "&format=json&diagnostics=true&env=http://datatables.org/alltables.env")
        .done(function (data) {
            $('#result').text("Price: " + data.query.results.quote.LastTradePriceOnly);
        })
        .fail(function (jqxhr, textStatus, error) {
            var err = textStatus + ", " + error;
            console.log('Request failed: ' + err);
        });
}

http://www.itkeyword.com/doc/3970460632658567818/localhost-jsonp-ajax

【Yahoo YQL】html table is no longer supported

2017-06-08

YQL select from html ( html table is no longer supported )

說明:已不提供支援

可以改抓 select from htmlpost  (you use htmlpost )
使用post ,但結果(RESULT) 會多一層   postresult

請在 call function 調整 讀取資料

change use htmlpost