2016/12/12

AD-超過這個網域允許建立的電腦帳戶數目


 微軟說:
https://support.microsoft.com/zh-tw/kb/243327
根據預設,Windows 2000 會允許已驗證的使用者加入網域中的十個電腦帳戶

所以,可以設定哪些使用者可以加入網域的電腦數量 

http://deanma.blogspot.tw/2011/01/ms-ad.html

MS AD-超過這個網域允許建立的電腦帳戶數目

AD預設可管理的電腦數為10台,
當欲管理電腦數目超過時,可利用下數方式修改。
1.執行 輸入Adsiedit.msc叫出ADSI編輯器
2.點選 執行--連線到 確定
3.展開樹系會看到DC=XXX,DC=XXX
4.按右鍵內容
5.尋找ms-DS-MachineAccountQuota
6.將數值從10修改為需要管理的台數

2016/12/9



http://www.blogjava.net/DLevin/archive/2015/04/30/424799.html

在上面留言之後,發現自己根本沒那個能力分析
還是來簡述一下
1.小封包的PING
2.大封包的PING
3.icmp的PING
4.路徑長短(tracert route)
5.CDN的認識
 6.ICMP、TCP、UDP的優先權
缺少各地PING的資料


不知道何時才能完成此份文章....OTZ

2019/1/30更新:
當時想到的,是在你國裡面,連線的資料一定會被污染
從DNS污染、憑證污染、連線內容污染......等,都是被監控的對象
所以用ICMP來測試速度,並不能代表實際效果
另外,如果是對外服務,要追求使用者回應速度,就要考慮CDN,加快客戶端取用資料的速度
對內,就內部VPN直接對聯就好

WPF呼叫Bartender 檔案出現System.AccessViolationException


1.檢查C:\Windows\assembly裡面有沒有多餘的Barteder版本
2.gacutil /u xxxxxxxx,把沒必要的刪除
//3.sfc /scannow修復mscorlib.dll
4.移除舊版本Bartender
5.安裝新版本Bartender UltraLite
6.移除新版本 Bartender UltraLite
7.安裝舊版本Bartender
6. BarTenderTask.Result.Close(SaveOptions.DoNotSaveChanges);


Clean GAC, open windows explorer and navigate to C:\Windows\Assembly - it should show a 'gac style' file view, order the files by Public Key Token, then find all 109ff779a1b4cbc7 tokens (those are bartender related). Within that set of them you'll see some which are 10.1.. version and some which are 10.0.

PS:問原廠,原廠說:誰叫你要裝兩套不同版本的

2016/11/15

指令更新Microsoft更新包-wusa


Installing Microsoft Update Standalone Packages Silently

http://stealthpuppy.com/installing-microsoft-update-standalone-packages-silently/

START /WAIT WUSA Windows6.0-KB928439-x86.msu /QUIET /NORESTART
or
START /WAIT Windows6.0-KB928439-x86.msu /QUIET /NORESTART
You can run the WUSA command with /? to see a dialog box detailing the complete help text:
wusa </? | /h | /help>
wusa <update> [/quiet] [/norestart]
/?, /h, /help – Display help information.
update – Full path of the MSU file.
/quiet – Quiet mode, no user interaction. reboot as needed
/norestart – When combined with /quiet, installer will NOT initiate reboot. It is ignored if it is used alone

2016/7/25

2016/6/4

C# sealed vs Java final

FROM:http://stackoverflow.com/questions/10170633/c-sharp-sealed-vs-java-final

回答的很精妙:

That's because final in Java means plenty of different things depending on where you use it whereas sealed in C# applies only to classes.
In Java final can be applied to:
  • classes, which means that the class cannot be inherited. This is the equivalent of C#'s sealed.   

  • methods, which means that the method cannot be overridden in a derived class. This is the default in C#, unless you declare a method as virtual and in a derived class this can be prevented for further derived classes with sealed again.

  • fields and variables, which means that they can only be initialized once. For fields the equivalent in C# is readonly.

自己的github


自己做個備忘,也替自己廣告(雖然這裡平常很冷清)
https://github.com/otaku119

Static vs Sealed Class Difference


From:
http://stackoverflow.com/questions/16217313/static-vs-sealed-class-difference

回答的簡單明瞭:
+-------------------------+---+--------+--------+--------+----------+
|       Class Type        |   | normal | static | sealed | abstract |
+-------------------------+---+--------+--------+--------+----------+
| Can be instantiated     | : | YES    | NO     | YES    | NO       |
| Can be inherited        | : | YES    | NO     | NO     | YES      |
| Can inherit from others | : | YES    | NO     | YES    | YES      |
+-------------------------+---+--------+--------+--------+----------+
 

2016/4/20

workflow ERP in linux wine,鼎新WF ERP使用wine



1.winetricks
==>mdac28
==>cmd
2.install GPClientAutoinstall.exe
3.import reg

import Reg file

4.wine ./Conductor/C_dsbin/MainMenu.exe

5.Dispatcher.exe 無解,還需要測試如何設定

2016/2/22

SOGo Groupware

公司資訊服務商告知的:
http://sogo.nu/
OGo is a fully supported and trusted groupware server with a focus on scalability and open standards. SOGo is released under the GNU GPL/LGPL v2 and above.


目前知道能替代excehange,具體內容如何,要再找尋

2016/2/15

正規表示式 Regular Expression


From:
正規表示式 Regular Expression

資料來源:張智星的網站 – 正規表示式
正規表示式 說明及範例 比對不成立之字串
/a/ 含字母 “a” 的字串,例如 “ab”, “bac”, “cba” “xyz”
/a./ 含字母 “a” 以及其後任一個字元的字串,例如 “ab”, “bac”(若要比對.,請使用 \.) “a”, “ba”
/^xy/ 以 “xy” 開始的字串,例如 “xyz”, “xyab”(若要比對 ^,請使用 \^) “axy”, “bxy”
/xy$/ 以 “xy” 結尾的字串,例如 “axy”, “abxy”以 “xy” 結尾的字串,例如 “axy”, “abxy” (若要比對 $,請使用 \$) “xya”, “xyb”
[13579] 包含 “1” 或 “3” 或 “5” 或 “7” 或 “9” 的字串,例如:”a3b”, “1xy” “y2k”
[0-9] 含數字之字串 不含數字之字串
[a-z0-9] 含數字或小寫字母之字串 不含數字及小寫字母之字串
[a-zA-Z0-9] 含數字或字母之字串 不含數字及字母之字串
b[aeiou]t “bat”, “bet”, “bit”, “bot”, “but” “bxt”, “bzt”
[^0-9] 不含數字之字串(若要比對 ^,請使用 \^) 含數字之字串
[^aeiouAEIOU] 不含母音之字串(若要比對 ^,請使用 \^) 含母音之字串
[^\^] 不含 “^” 之字串,例如 “xyz”, “abc” “xy^”, “a^bc”
.
正規表示式的特定字元 說明 等效的正規表示式
\d 數字 [0-9]
\D 非數字 [^0-9]
\w 數字、字母、底線 [a-zA-Z0-9_]
\W 非 \w [^a-zA-Z0-9_]
\s 空白字元 [ \r\t\n\f]
\S 非空白字元 [^ \r\t\n\f]
.
正規表示式 說明
/a?/ 零或一個 a(若要比對? 字元,請使用 \?)
/a+/ 一或多個 a(若要比對+ 字元,請使用 \+)
/a*/ 零或多個 a(若要比對* 字元,請使用 \*)
/a{4}/ 四個 a
/a{5,10}/ 五至十個 a
/a{5,}/ 至少五個 a
/a{,3}/ 至多三個 a
/a.{5}b/ a 和 b中間夾五個(非換行)字元
.
字元 說明 簡單範例
\ 避開特殊字元 /A\*/ 可用於比對 “A*”,其中 * 是一個特殊字元,為避開其特殊意義,所以必須加上 “\”
^ 比對輸入列的啟始位置 /^A/ 可比對 “Abcd” 中的 “A”,但不可比對 “aAb”
$ 比對輸入列的結束位置 /A$/ 可比對 “bcdA” 中的 “A”,但不可比對 “aAb”
* 比對前一個字元零次或更多次 /bo*/ 可比對 “Good boook” 中的 “booo”,亦可比對 “Good bk” 中的 “b”
+ 比對前一個字元一次或更多次,等效於 {1,} /a+/ 可比對 “caaandy” 中的 “aaa”,但不可比對 “cndy”
? 比對前一個字元零次或一次 /e?l/ 可比對 “angel” 中的 “el”,也可以比對 “angle” 中的 “l”
. 比對任何一個字元(但換行符號不算) /.n/ 可比對 “nay, an apple is on the tree” 中的 “an” 和 “on”,但不可比對 “nay”
(x) 比對 x 並將符合的部分存入一個變數 /(a*) and (b*)/ 可比對 “aaa and bb” 中的 “aaa” 和 “bb”,並將這兩個比對得到的字串設定至變數 RegExp.$1 和 RegExp.$2。
xy 比對 x 或 y /a*b*/g 可比對 “aaa and bb” 中的 “aaa” 和 “bb”
{n} 比對前一個字元 n 次,n 為一個正整數 /a{3}/ 可比對 “lllaaalaa” 其中的 “aaa”,但不可比對 “aa”
{n,} 比對前一個字元至少 n 次,n 為一個正整數 /a{3,}/ 可比對 “aa aaa aaaa” 其中的 “aaa” 及 “aaaa”,但不可比對 “aa”
{n,m} 比對前一個字元至少 n 次,至多 m 次,m、n 均為正整數 /a{3,4}/ 可比對 “aa aaa aaaa aaaaa” 其中的 “aaa” 及 “aaaa”,但不可比對 “aa” 及 “aaaaa”
[xyz] 比對中括弧內的任一個字元 /[ecm]/ 可比對 “welcome” 中的 “e” 或 “c” 或 “m”
[^xyz] 比對不在中括弧內出現的任一個字元 /[^ecm]/ 可比對 “welcome” 中的 “w”、”l”、”o”,可見出其與 [xyz] 功能相反。(同時請注意 /^/ 與 [^] 之間功能的不同。)
[\b] 比對退位字元(Backspace character) 可以比對一個 backspace ,也請注意 [\b] 與 \b 之間的差別
\b 比對英文字的邊界,例如空格 例如 /\bn\w/ 可以比對 “noonday” 中的 ‘no’ ;
/\wy\b/ 可比對 “possibly yesterday.” 中的 ‘ly’
\B 比對非「英文字的邊界」 例如, /\w\Bn/ 可以比對 “noonday” 中的 ‘on’ ,
另外 /y\B\w/ 可以比對 “possibly yesterday.” 中的 ‘ye’
\cX 比對控制字元(Control character),其中 X 是一個控制字元 /\cM/ 可以比對 一個字串中的 control-M
\d 比對任一個數字,等效於 [0-9] /[\d]/ 可比對 由 “0” 至 “9” 的任一數字 但其餘如字母等就不可比對
\D 比對任一個非數字,等效於 [^0-9] /[\D]/ 可比對 “w” “a”… 但不可比對如 “7” “1” 等數字
\f 比對 form-feed 若是在文字中有發生 “換頁” 的行為 則可以比對成功
\n 比對換行符號 若是在文字中有發生 “換行” 的行為 則可以比對成功
\r 比對 carriage return
\s 比對任一個空白字元(White space character),等效於 [ \f\n\r\t\v] /\s\w*/ 可比對 “A b” 中的 “b”
\S 比對任一個非空白字元,等效於 [^ \f\n\r\t\v] /\S/\w* 可比對 “A b” 中的 “A”
\t 比對定位字元(Tab)
\v 比對垂直定位字元(Vertical tab)
\w 比對數字字母字元(Alphanumerical characters)或底線字母(”_”),等效於 [A-Za-z0-9_] /\w/ 可比對 “.A _!9” 中的 “A”、”_”、”9″。
\W 比對非「數字字母字元或底線字母」,等效於 [^A-Za-z0-9_] /\W/ 可比對 “.A _!9” 中的 “.”、” “、”!”,可見其功能與 /\w/ 恰好相反。
\ooctal 比對八進位,其中octal是八進位數目 /\oocetal123/ 可比對 與 八進位的ASCII中 “123” 所相對應的字元值。
\xhex 比對十六進位,其中hex是十六進位數目 /\xhex38/ 可比對 與 16進位的ASCII中 “38” 所相對應的字元。

2016/1/4

是時候考慮 新自然輸入法--going10 的存廢

從自然輸入法8開始,我就是一直他的愛好者,推出10,我當然也更新、升級、購買
升級之後,一直有個功能,頗多抱怨,就是輸出碼,何時能只要選擇「簡/正」,其他對我來說,都是不必要的功能

甚至,10推出的免費版,只有「簡/正」輸出,但是專業版,完全沒有更新
從2013年,我就發信詢問:
回覆是:
A.我們已將此建議提供給相關單位,並考慮列出未來改進的項目之中
B.自然輸入9版與自然輸入程式架構不同




甚至前段時間,發生了AVG將自然輸入法判斷為病毒,造成整個WINDOWS完全沒有回應
關鍵字:「自然輸入法 AVG」
6/21發生此問題,官網留言還會出現磁碟空間不足
win8+avg2015,今天一直把自然輸入法當作病毒,不移除自然輸入法還會讓所有程式無法回應
到貴公司官網留言,還竟然丟出.net錯誤:磁碟空間不足
難道貴公司的軟體確定被攻擊當作木馬了?


最近,再度發信詢問,到今天(2016/1/4)為止,自然輸入法還沒有回應



結論:能換就換,實在沒必要再去花錢支持這家廠商
http://hyperrate.com/?eid=215  gcin
https://github.com/chewing/windows-chewing-tsf/ 酷音輸入法

2017/03/02更新:
原本手機就有使用超注音,現在也推出windows版本,可以推薦:
超注音電腦版出爐---超注音-for-windows

JPA+complex key+custom Query

  來源: https://www.cnblogs.com/520playboy/p/6512592.html   整個來說,就是有複合主鍵 然後要使用  public interface XxXXxx DAO extends CrudRepository<Tc...