2020年7月1日 星期三

[C#]WPF 簡單的切換多個視窗功能


學一下:
http://akitosun.blogspot.com/2019/03/wpf.html

2020年5月13日 星期三

[C#] WPF UI 設計

不知是蛇東西看起來不錯


PanuonUI.Silver中文手册
https://github.com/Panuon/Panuon.Documents/blob/master/Documents/PanuonUI.Silver/zh-cn.md#step-1-%E5%B0%86panuonuisilver%E5%BC%95%E5%85%A5%E5%88%B0%E4%BD%A0%E7%9A%84%E9%A1%B9%E7%9B%AE%E4%B8%AD

开源C# WPF控件库《Panuon.UI.Silver》
https://dotnet9.com/2285.html#p200

不太會用,下面感覺比較好用.......

WPF MaterialDesign 開源免費UI組件的介紹和簡單使用https://www.twblogs.net/a/5d5f3e96bd9eee5327fdf47f

C# WPF抽屉效果实现(C# WPF Material Design UI: Navigation Drawer & PopUp Menu)https://blog.csdn.net/HenryMoore/article/details/103603291


學習中...
WPF MaterialDesignInXaml PopupBox更改圖標
http://hk.uwenku.com/question/p-gwznqvwi-dh.html

2020年1月16日 星期四

[raspberry]開機自動執行程式

來試試,學習學習......



樹莓派程序開機自啓動方法總結
https://www.twblogs.net/a/5b8078342b71772165a7c9d8

Run a Program On Your Raspberry Pi At Startup
https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/


Debian/Ubuntu 的 update-rc.d 使用教學https://blog.wu-boy.com/2017/04/update-rc-in-debian-or-ubuntu/

update-rc.d和invoke-rc.d
http://ruby-notebook.blogspot.com/2015/03/update-rcdinvoke-rcd.html

2019年12月13日 星期五

[stm32]timer and interrupts.


玩玩看,圖形化介面設定 STM32Cube 及 IDE 功能...

不錯的文章:
https://microtechnics.ru/en/stm32cube-timer-and-interrupts/

2019年12月11日 星期三

[C#] StringBuilder



String 物件不可變.每次您使用 System.String 類別的其中一個方法時,就會在記憶體中建立新的字串物件,這需要為該新物件配置新的空間.在您需要重複修改字串的情況下,與建立新 String 物件相關聯的額外負荷可能成本高昂.當您想要修改字串,而不建立新物件時,可以使用 System.Text.StringBuilder 類別. 例如,在迴圈中將許多字串串連在一起時,可以使用 StringBuilder 類別來提升效能.




不錯的文張:

在 .NET 中使用 StringBuilder 類別
https://docs.microsoft.com/zh-tw/dotnet/standard/base-types/stringbuilder

Day20-C#-StringBuilder

2019年12月6日 星期五

照著書本打

練習一下...

import requests
import re

url='http://www.mcut.edu.tw'
htmlfile=requests.get(url)
if htmlfile.status_code == requests.codes.ok:
    print("ok")
    print("html size=",len(htmlfile.text))

    pattern=input("search pattern:")
    if pattern in htmlfile.text:
        print("search %s ok" %pattern)
    else:
        print("search %s fail" %pattern)

    name=re.findall(pattern,htmlfile.text)
    if name !=None:
        print("%s find %d" %(pattern,len(name)))
    else:
        print("%s find 0" % pattern)

else:
    print("ng")