發表文章

目前顯示的是 11月, 2017的文章

Android Firefox Extension debug

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Developing_WebExtensions_for_Firefox_for_Android https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Debugging_Firefox_for_Android_over_Wifi wifi的場合好像一定要裝他講的那個app,原先已裝QR Droid無效,wifi debug還是不能開? adb的用法 adb tcpip 5555 adb connect device_ip_address $ adb devices List of devices attached device_ip_address:5555 device adb kill-server  (reset and start from adb connect) 好像有奇怪的bug,玩一玩就連不上android了 (WebIDE shift+F8) 也許用usb比較好

MSI HD 6850 Power Edition OC R6850-Cyclone-1GD5-Power-Edition/OC UEFI rom

圖片
MSI HD 6850 Power Edition OC R6850-Cyclone-1GD5-Power-Edition/OC https://drive.google.com/open?id=1WdAlwe9cggPQgZGfaIoM_cefZ2oRTmwY http://www.overclock.net/t/1353325/tutorial-atiwinflash-how-to-flash-the-bios-of-your-ati-cards http://www.overclock.net/t/1389206/do-you-want-uefi-gop-on-your-7950-7970-i-can-add-it-to-your-bios/120#post_20172963 Basically hex edit the bios At the beginning of the bios around 00000220 (every bios different) you will see at the right: PCIR € € AMD ATOMBIOS So in hex the € is 80, change the second €/80 to 00 This toggle makes it see a UEFI Gop partition in the bios, 80 is no gop 00 if gop Then scroll down to 00010000 This is where gop bios starts, copy and paste a gop bios from a working rom into here atiwinflash -f -p 0 "NAME of the BIOS".rom

Win10 +SSD tune

未完成 必要 安裝 DirectX End-User Runtime Web Installer   否則DX10的遊戲/程式會無法執行 效能相關 https://www.howtogeek.com/256859/dont-waste-time-optimizing-your-ssd-windows-knows-what-its-doing/ https://www.howtogeek.com/220033/how-to-make-your-windows-10-pc-boot-faster/ SG TCP Optimizer 像hinet用戶,mtu pppoe要調1492,其他大多數系統會自動開怕改出問題可以不動 How to Completely Uninstall OneDrive in Windows 10 Service IP Helper (沒用ipv6可以關) Distributed Link Tracking Client  大概可以? TabletInputService或Touch Keyboard and Handwriting Panel Service (觸控 手寫) SSD安裝系統可以關 Superfetch Enable “No GUI Boot” in MSConfig 開機不用看windows logo 可能可以關的service 付款與 NFC/SE 管理員  <-PC有NFC嗎?? https://imgur.com/a/MrqyW 如果你想改userprofile的位置 %USERPROFILE% http://moonwulk.blogspot.tw/2010/06/windows-7-userprofile.html http://www.nextofwindows.com/how-to-change-user-profile-default-location-in-windows-7 http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/change-the-default-location-of-userprofile-move/dd5a0720-909

使用者腳本 UserScript (user.js) install 安裝紀錄

關於userscript的介紹和安裝法,可以直接看greasyfork,有多國語言 https://greasyfork.org 基本上userscript manager主要功能都是相同的,只要沒bug應該都能跑 我寫的userscripts https://github.com/craftwar/userscript https://greasyfork.org/users/166015-craftwar 下面懶得更新了 userscript manager (you need install this first before you can install userscript) Greasemonkey http://www.greasespot.net/ Violentmonkey (I use this one) https://violentmonkey.github.io/ Tampermonkey http://tampermonkey.net/ After userscript manager is installed, you can install userscript in different ways. Click install from userscript publish site Ex: https://greasyfork.org , https://openuserjs.org Drag user.js into browser Click Add new script and paste userscript into manager 2017/11/30的狀況 Greasemonkey太陽春不實用 Tampermonkey source code的license不是開放的,不想用 Violentmonkey open source功能看起來也不錯,更新很勤 使用者腳本(userscript)的效能會比直接寫成extension差一點 (可忽略,原因是必需重複檢查權限) 是用eval執行,不是像extension直接inject js進去,debug比較麻煩 沒有extension的background script可以用,每個頁面都要開一個 優點是開發者維護更新上

開始功能表的目錄位置

全使用者 C:\ProgramData\Microsoft\Windows\Start Menu   個人 %appdata%\Microsoft\Windows\Start Menu win10不能右鍵開啟,去執行(win+r)打入上面路徑即可

Userscript toturial: I am over 18

圖片
I am over 18 (Automatically agrees the "I'm over 18" declaration.) https://github.com/tsaiid/gm-i-am-over-18 use getchu as example inspect element to get the target It's a "<a> element" $('a:contains("[は い]")')[0].click(); It return all <a> elements containing "[は い]", add [0] to pick the first one. The easier way, just test .click() and [0].click(). One of them will work.

github e-mail設定

https://github.com/blog/2346-private-emails-now-more-private git e-mail要這樣設,才能關連帳號又不顯示出來 $ git config --global user.email "username@users.noreply.github.com" username@users.noreply.github.com

Firefox/Chrome extension: Youtube audio_only 只放聲音(supoort NightBot)

圖片
Firefox Chrome (2018/01/25 11-12的發票中了 200,兌現承諾上傳Chrome) Edge不會有,除非有人要donate我買開發者帳號 (想用得自己用開發者功能裝) github https://github.com/craftwar/youtube-audio 讓youtube只接收音樂的部份,沒影片省流量省資源省電 (save resource, cpu, gpu and battery) 點歌功能只要是從youtube放的都適用  (ex: NightBot的autoDJ) 用法很簡單,點圖示切換狀態,黑白為關閉狀態 我是用多個瀏覽器,一個固定打開,只想放音樂時用那個開 配合autoplay無限放當電台用? 如果不需用youtube的autoplay,可以用foobar2000播 需要裝這個component https://fy.3dyd.com/ (不是我寫的,也沒opensource,風險自行負責) 贊助連結 https://payment.allpay.com.tw/Broadcaster/Donate/83D029B697E779BF68E3243D8830CB97 基於 Youtube audio 改寫的 Firefox版的也是改別人的(而且只改文字描述部分),放上源頭 https://github.com/Ashish-Bansal/audio-only-youtube 本來只是想加nightbot支援,後來發現code太濫,忍不住就重寫了 改寫太多,變成我的code比較多,乾脆發佈成自己的作品了 順便做些個人偏好的調整 完全是根據原作品改寫,所以我很多東西不知道 和原版程式碼相比,減少一半行數 Edge支援 M$的開發者帳號更貴阿要$19 (本來想發edge的好貴就算了,兩張發票都買不起) about:flags 中打開也能load https://docs.microsoft.com/en-us/microsoft-edge/extensions/guides/adding-and-removing-extensions ==== dev note 簡單講原理就是youtube裡面本來就有audio only的r

Ren'Py render mode, OBS + Doki Doki Literature Club crash fix

https://www.renpy.org/doc/html/problems.html DDLC的情況有兩個解法 1) use OBS Classic 2) 按住shift啟動遊戲,選DirectX後重開 press shift when starting game, pick DirectX mode. Restart game wiki

Discord bots (music, administration...etc)

圖片
play music大部份bot都有,差異主要在奇怪功能抓資訊之類的 自用不太適合,比較適合分享播放給多數人聽或是想保留playlist 流程: bot去下載,encode後上傳到discord,你再從discord接收播放 多一次破壞性壓縮,增加網路不穩定因素影響 可以用NightBot + 我寫的 Youtube audio_only 達到更好的效果 (不會多一道encode損失) NightBot只幫你選歌,接收是你自己去youtube播放 discord bot會受運行地區限制,不一定能播你點的歌 FlareBot SSRC 3 FredBoat SSRC 5,5比較好? 支援tracklist ;;split     Takes a YouTube track and splits the track based on the tracklist.    ;;split https://www.youtube.com/watch?v=8EdW28B-In4 Lopez https://bots.ondiscord.xyz/bots/86920406476292096 可以把實況中的使用者加上role提到最上面 remove read messages permission bot won't appear in that room