跳到主要內容

發表文章

要在淘寶/天貓買東西嗎?請三思

鐵支日的時候在淘寶買了兩張台灣沒上市的網卡 選了超商取貨,沒多久包裹就到了 但是只來了一張, 接著在淘寶網站上開始跟對方店家溝通後 腦血管差點爆裂 一開始是對方窗口的客服一直換 後面的搞不清楚前面做的事 然後答應你會再主動聯絡你的 也沒做到 最後搞清楚狀況後 竟然開始跳針 我的貨物是超商取貨 所以正常流程是對方店家送到轉運站再轉送台灣 但是補寄的貨物,店家竟然只送到轉運站, 有人簽收後就不管了. 店家竟然說他從系統查到 我預設的地址是上海轉運站所以就補寄到那邊, 也不管台灣這邊會不會收到 我在系統上點退款 店家也拒絕,只一直跳針, 說他們補寄了上海也有人簽收了. 跟淘寶的客服反應 客服說這是天貓的訂單 天貓的客服只能用電話聯繫 總之就是一連串的跳針/碰壁和等待.... 已經過了快一個月了, 信用卡款已經被扣了, 系統上的退款申請也只是一直卡在客服介入中 幸好我這次買的東西只是幾百塊台幣的小東西 但是我以後再也不會相信淘寶和天貓了... 雖然網站有很多連結和文字似乎很保障消費者的權益 可是一旦發生問題, 卻很難找到能真正解決問題的管道... 不經一事,不長一智... 那種邏輯無法溝通和求助無門的心情 真的是很糟糕.... 我以後還是多用 Amazon 或者是台灣自己的線上購物平台好了 淘寶便宜有什麼用 完全不能掌控會不會被坑.... 雙 12 快到了,請三思...

vim bracketed paste mode

每次要在 vim 上 copy / paste code 時, 都要先 :set paste 切換成 paste mode 後來就把 toggle paste mode 設定成某個快捷鍵 最近在設定環境的時候又想到這個問題, 原本想去找怎麼把 toggle 設定在 insert 鍵上 結果看到了這個 vim-bracketed-paste-mode 基本上就是讓 terminal 能夠判斷這是 input 還是 paste, 如果是 paste 那麼就會把某些字元替換掉 如果 vim 再打開相對應的設定 一旦偵測到替換掉的特殊字元就自動開啟 paste mode. 這樣就手動去按熱鍵的動作都可以省下來了 目前 OSX 的 terminal / iterm2 還有最新的 putty 都有支援 bracketed paste mode 所以我們只要在 .vimrc 加入以下的設定就好了 if &term =~ "xterm.*" let &t_ti = &t_ti . "\e[?2004h" let &t_te = "\e[?2004l" . &t_te function XTermPasteBegin(ret) set pastetoggle=<Esc>[201~ set paste return a:ret endfunction map <expr> <Esc>[200~ XTermPasteBegin("i") imap <expr> <Esc>[200~ XTermPasteBegin("") cmap <Esc>[200~ <nop> cmap <Esc>[201~ <nop> endif

AWS PHP SDK for New Region eu-central-1

其實在 AWS 對外正式 announce 這個 region 之前, 我們已經有先接到了通知,並且要事先準備好 patch 來支援這個新的 region. 因為覺得很有趣,所以在看到 AWS 正式對外的 announce 後 發現裡面提到新的 region 只支援 "v4" 的 signature, 而我們用的 AWS PHP SDK 版本似乎過舊,所以認證都會失敗... 當晚馬上在測試環境更換2.7.1後,認證過了 可是卻出現 invalid endpoint 之類的錯誤訊息. 原來在 2.7.2 之前, 所有的 endpoint 都是內建在 SDK 的 resource file 裡面 所以即使 AWS 對外 announce 了新的 endpoint , 還是需要上 patch 幫 SDK 加新的 endpoint 隔天睡醒後,同事看到有更新的 2.7.2  而且發現 不需要手動 patch 加 endpoint 就可以 access 新的 eu-central-1 region 看了一下發現原來 2.7.2  以後 SDK 會自動去抓 AWS 最新的 Region & Edpoint List 所以以後有新的 region announce 的話, 就不用再去 patch AWS PHP SDK 啦~

PHP-CS-Fixer

我一直覺得我有個強迫症 要開始修 bug 或者 trace code  之前都要先把  code reindent 一遍... 用了 php-cs-fixer 去做 PSR2 的 auto indent 後, 發現 comma後的空白和 function call 參數的 comma 的分隔不會被修正.. 於是一邊看code又會一邊手賤的加 space... 加到後來就會從從頭到尾加一遍...然後忘記看 code 了..lol... 覺得這樣下去不行,於是送了生平的第一個給 open source project 的 pull request... 希望可以被 merge ...lol... Fix Spaces in method arguments and array values #119

NEXUS 5 D820 CHT LTE Support

中華電信 4G 1800 Band 3 Support North America (D820) Nexus 5 model: LTE: Bands: 1/2/4/5/17/19/25/26/41 Outside North America (D821) Nexus 5 model: LTE: Bands: 1/3/5/7/8/20 台灣 4G(LTE) 頻段 (一) 700 MHz 頻段:  (Band 28) (二) 900 MHz 頻段:  (Band 8) (三) 1800 MHz 頻段:(Band 3) <quote  asianyangman > 3.跑原PO文章的流程從這裡開始 ,手機接上電腦後確定USB Debugging有打勾,MTP跟PTP有取消,開 cmd 並 cd 到開發者工具的 platform tools 目錄,接下來先發 adb devices確定有偵測到手機,接下來再發命令          adb shell    su    setprop sys.usb.config diag,adb 有看到在跑安裝驅動或聽到B聲後,點開裝置管理員(Device Manager),確定有找到LG AndroidNet USB Serial Port(COMXX),COM值無所謂 4.打開 QPST Configuration 選好PORTS 後按add a new port,再來選擇剛剛看到的LG PORT,並輸入COM口在右邊,最後按下OK 5.獲取SPC碼,首先安裝NEXUS5 field test mode,並開啟 cmd 並一樣 cd 到platform-tools的目錄底下,打adb devices確定有連接上後,打adb logcat,等他跑差不多停後,手機打開NEXUS5 field test mode點選右上角的setting--->Setting(view)--->LTE--->Edit,接著停留在此畫面, 並輔以這兩篇文章裡的圖片 http://goo.gl/WYK9I8   &   http://goo.gl/fxOpM...

Spotify Global Hot Key in OSX with Automator Script

Quote from -- modacular Open up the  Automator Application  (Applications/Automator.app)  Create a  new document ( ⌘N)  and choose the  "Service"  type for your document. On the  "Service receives selected"  item in the top side of the window select  "no input"  from the dropdown. Search for  "Run Applescript"  from the searchbar on the left side of the window. Drag  the "Run Applescript" item in the  main window area . Delete  the  (* Your script goes here *)  line and paste this instead: tell  application  "Spotify"  to p laypause Save  your script (File > Save or ⌘S) and give it a meaningful name like Spotify PlayPause :D Go to  System Preferences > Keyboard > Shortcuts  and select  Services  from the left column. Scroll down to the  General  Section and find your  Spotify PlayPause  item. Click the  ad...