顯示具有 software 標籤的文章。 顯示所有文章
顯示具有 software 標籤的文章。 顯示所有文章

2026年6月17日 星期三

字幕組都可以收起來了

 最近有一個老美劇找不到中文字幕,

但又不想傳到youtube, 或者任何網路上的服務

於是找到了這個工具, Buzz

方便好用無麻煩

而且蠻快的


我自己選用Small.En的模型

輸出打勾 SRT 格式

如下圖


按下 Run, 等一陣子就可以得到英文逐字稿.SRT了

然後再把這個SRT 丟到 Google translate 或者 translate-subtitles.com 翻譯成中文

就得到中文字幕檔了



我用筆電轉一個45分鐘的美劇大概花十分鐘而已

速度很不錯



時代在進步啊

想當初好多字幕組在競爭

現在這個時代就沒這種事了

2022年7月20日 星期三

Matlab 影片轉音樂+ 裁減

一陣子沒po宅宅文, 來po一個最近玩過的

最近想要把影片的音樂取出然後裁減, 可以做手機鈴聲之類的

在網路上找了一些免費的工具, 看來看去都沒有很合用,

所以就動起來用  Matlab 來搞的想法

其實非常簡單, 很土炮就是


完整程式碼在底下, 自行取用


///

%讀影片檔

[y,Fs] = audioread('filename.MOV');

%畫出來看看, 才能知道要切哪一段, 用Markt 標出來

%這邊的x軸不是時間軸, 但可以自己做一條x時間軸 

plot(y)

% 切這一段

y=y(12345:67890);

% 聽看看

sound(y,Fs)

% 都沒錯就能存檔了

audiowrite(['filename.wav'],y,Fs);



2021年7月10日 星期六

make a nice-looking figure in Matlab for IEEE papers

 make a nice-looking figure in Matlab for IEEE papers

I constantly am asked how to make a good, nice-looking figure in Matlab for IEEE papers. I have my personal taste and own receipt. It looks quite decent from my point of view. FYI. if you have another taste, feel free to share with me.


Here is the receipt:

  • Import your data of course, e.g. variables x and y
  • create a new figure
    • fig=figure(1) 
      • Key point is that DO NOT modify the window size. 
      • Keep the size as default
  • Plot data
    • plot(x,y,'b-','LineWidth',2)
      • Use Linewidth to be 2
      • Linestyle is up to you
  • Export the figure in EPS format which is fully supported by LaTeX
    • you can use "save as.." in the menu of the figure 
    • or use command saveas(fig,'fig.eps')


Simple as that.  

Enjoy plotting figures.


2021年3月15日 星期一

好久不見的M$ windows藍色畫面

 熟悉的 windows 藍色畫面又回來了, 說實在 Windows 10 用到目前為止沒看過幾次,  但是最近因為 10 March 的更新 KB5000802 讓我好回味無限藍色畫面阿

讓我又想起那個爛到不怕癢的Vista, 跟 Windows ME....

M$還是依舊的不可靠, 

網路上也有些人有一樣的問題 [link] [link]

目前M$尚未提出解決辦法...我需要印表機阿

anyway, 目前搜尋到兩種解決方法, 一種是反安裝KB5000802更新, 另一種是解除Driver, 然後重新安裝. 我個人認為除了印表機之外, 還有更深的問題, 例如我開啟 Corel Designer 然後匯入某些格式的檔案也會出現藍畫面, 今天林北看了蘭畫面十次以上. 整個起賭爛

手上有好幾套正版的, 幹譙兩聲總可以吧, 浪費我好多時間




ps. 反安裝
wusa /uninstall /kb:5000802



2021年2月17日 星期三

Chrome 如何修正回在網址欄按空白鍵搜尋

如何修正回在網址欄按空白鍵搜尋

如果你跟小弟一樣 很常使用Chrome 自訂搜尋引擎, 應該會發現最近Chrome 88的更新將本來的空白鍵搜尋改成為 "Tab"鍵搜尋了, 我自己用的很不順手

例如我自訂 gt = 搜尋繁體中文網頁, 我只要打入 "gt 宅宅", 一口氣 不用按 tab


這裡提供一個方法, 能改回原本的空白鍵搜尋

鍵入底下網址

chrome://flags/#omnibox-keyword-search-button 

然後選擇 "disable" 

重新開啟 chrome

就好了




參考資料:這個 blog 他還提供了另一種方法



希望對你有幫助

2020年12月20日 星期日

[Keysight ADS] Some equations for RF/microwave rectifier design

been designing RF rectifiers for years. Since I myself use these equations quite often, I write them down here and hope this page would help you to speed up. 

Note that rectifiers are large-signal operation meaning "Harmonic Balance" simulation is mostly used.
Firstly, you have to have "harmonic balance" and secondly, you have to set a node at the output of the rectifier as e.g. vout. 
To obtain input impedance, you have to add a note at the input port as e.g. vin as well as a current meter.
We need to calculate input impedance from the impedance definition.

Anyway, seeing figures below are easier than texts. 

Figure of the input part

Figure of the output part



The MeasEqu I set


Anyway, you can copy these equations below and paste into your schematic using MeasEqu as I did or use EQU function in ADS display.




To calculate efficiency:

Poutdc=mag(vout[::,0])**2/RL
eff=100*Poutdc/dbmtow(mpin)


To calculate large-signal input impedance:

zind=vin[1]/I_in.i[1]

You can convert the impedance to Gamma and then plot in Smith chart as:
Gamma=(zind-50)/(zind+50)

Of course, you can plot in dB:

s11indb=20*log10(abs(Gamma))






Have fun of rectifier design. 


2019年11月11日 星期一

Total Commander Tips

新增內容:如何整合 Fastcopy 到 Total Commander



//
我試過很多相關檔案管理的程式, 例如用了一段很長時間的 Q-DIR, 但因為穩定性的問題, 後來還是換成使用 Total Commander, 它算是這一類檔案管理的老前輩了

它有幾個優點

  1. 小巧, 快速, 穩定
  2. 自由度很高, 因此可以調整成自己最適合最順手的使用方式
  3. 支援各種語言, 支援Unicode
  4. 作者有持續更新, 有bug可以跟作者反應
  5. etc. etc...



主要缺點就是它不是免費的, 而且還不便宜 (37歐 2019年價格) , 但是作者也是需要收入的, 話說如此, 你還是可以下載"試用30天", 而且是全功能版本, 印象中超過30天也不會就不讓你用, 就是每次開啟的時候它會友善提醒你註冊就是. 經濟有能力的人可以考慮贊助一下作者, 小弟是現在公司有正版的授權, 不然以前也是"一直試用".

好 總之這篇記錄一些自己常用的tips

  1. 建立捷徑(shortcut) : Ctrl+Shift+F5
  2. 自動調整檔案大小顯示 : Configuration--> Option--> Tabstops--> Size Display-->Dynamic
  3. 底下的 command line 隨時可以打入指令, 例如可以選擇到想要開啟的目錄打入 " cmd ", 就會跳出該目錄的 command window, 不用在 command prompt 視窗裡面一直 cd 來 cd 去的找路徑了, 特別是如果有中文路徑的話
  4. 上一頁, 下一頁: ALT + 左或右鍵 (鍵盤, 不是滑鼠)

//
如何整合 Fastcopy 到 Total Commander:
Fastcopy是一個相當快速的拷貝工具, 對我而言最大的好處是它複製完能自動檢查, 所以我搜尋了一下看有沒有辦法能跟 TC 整合, 真有神人提供解法, 我只是加上了檢查的指令而已

選單Configuration --> button bar --> 新增
然後在 Command上打入底下指令
C:\Users\...\FastCopy\FastCopy.exe /open_window /cmd=update /estimate /verify
parameter: %P%S /to="%T"

紅色的地方要改成你安裝 fastcopy的路徑

然後在icon 選擇你喜歡的icon
例如預設的
""

然後下次只要按這個按鈕就會自動複製加上檢查了


//


陸續增加...



其他快速鍵可以參考這邊: https://shortcutworld.com/Total-Commander/win/Total-Commander_8_Shortcuts