Author: admin

咪記今次啲Doc幾準,唔錯!

read count : 4


2019/01/15 0

佛教中的鬼與香港人普遍認為的鬼是不同的

雜心論對鬼有比較祥細的描述:1. 鬼有六識:眼意鼻舌身意,中國人普遍認為鬼無肉身,所以無身識2. 六道中各有不同的鬼,人死變人鬼,畜牲死變畜牲鬼,最特別的就是地獄眾生死後變死獄的鬼,由此可見地獄道眾生不是鬼,而餓鬼的眾生也不是鬼,如果不是鬼又怎會死了才變鬼呢3. 鬼經過女性的陰道投胎,而不是飛入個肚到投胎4. 有兩種說法,人道的鬼只能見到人道的鬼,第二種說法是人道的鬼可以見到比人道更低層次(地獄/畜牲/餓鬼)的鬼5. 鬼有時是見不到其它的鬼的,而中國的鬼應該是一定見到其它鬼的6. 鬼入胎後近右手為男,近左手為女,中國的鬼無此說法7. 地獄道的鬼頭向下腳向上而行走,只有天道的鬼才會飛8. 六道中各道的鬼與其道眾生,身型大小相差不遠 read count : 13


2019/01/15 0

Netbeans output window color not accurate

Although fixed the output window color, but the colors are not accurate, refer to https://en.wikipedia.org/wiki/ANSI_escape_code#Colors read count : 47


2019/01/06 0

Assembler encoding test : 16-Bit Addressing Forms with the ModR/M Byte

Code to test “16-Bit Addressing Forms with the ModR/M Byte” // String instruction = “adc byte [ si+0x12], 0x1+0x20x3″; // String instruction = “adc byte [bx+si], 0x1+0x20x3″; // String instruction = “adc byte [bx+di], 0x1+0x20x3″; // String instruction = “adc byte [bp+di], 0x1+0x20x3″; // String instruction = “adc byte [si], 0x1+0x20x3″; // String instruction =…
Read more


2019/01/05 0

Same instruction, two opcode encodings

IA32 instruction “adc al,0x7” has two different opcode encodings. /Users/peter>ndisasm a00000000  80D007            adc al,0x7 /Users/peter>cat a.asmbits 16adc al,0x7 /Users/peter>ndisasm a00000000  1407              adc al,0x7 read count : 2


2019/01/05 0

Change github account in terminal

$git credential-osxkeychain erasehost=github.comprotocol=https[Press Return] To add your new account you can do the following commands:git config –global user.name “YOUR NAME”git config –global user.email “YOUR EMAIL ADDRESS” read count : 3


2019/01/05 0

Hex/Dec regex generator for continuous number

Decimal number:http://gamon.webfactional.com/regexnumericrangegenerator/ Hex number: read count : 5


2019/01/05 0

A workable IIS module to log session to file

https://docs.microsoft.com/en-us/iis/develop/runtime-extensibility/how-to-add-tracing-to-iis-managed-modules read count : 7


2019/01/03 0

Solved – The root cause why Netbeans can’t print colored text using latest Maven

Netbeans has bundled an old Maven, version 3.3.9, it can’t print out colored text to the output window. But when we switch to latest Maven 3.6.0, all color gone. I asked Netbeans guys, maven guys and jansi guys for help, but can’t get a solution. So i try to hack the maven code, i found…
Read more


2018/12/30 0

Netbeans manually change color to green

Even the jansi library that built-in to maven 3.5.0 or above doesn’t work with netbeans, so we can’t output colored-text in Netbeans output window. But the “BUILD SUCCESS” word still in green. The reason is netbeans manually change the color to green. read count : 4


2018/12/29 0

Netbeans outline plugin runs fast

After changed to a new antlr grammar, now is parse java file in 1 second, before need 15 seconds to parse a 1000 lines file. http://plugins.netbeans.org/plugin/73752/?show=true read count : 18


2018/12/27 0

滿意了,我的Antlr插件

read count : 5


2018/12/27 0

Netbeans Antlr plugin初步頂到非Conbined grammar

Netbeans Antlr Plugins可以支持非Combined Grammar了,就是說如果你的Grammar和Lexer Grammar是在不同的文件也能支持 read count : 58


2018/12/26 0

Re-think query language – Linq

Think to develop a new query language for SharePoint to increase my dev speed, studying Linq. read count : 20


2018/12/24 0

SVG學習 – Viewport會自動有offset-x

如果SVG的大小比例和viewport不同,就會自動有一個offset x read count : 4


2018/12/24 0

終於publish左第一個reactjs+typescript的UI component上npmjs

Publish當中最唔明就係點解要自己寫tsconfig同gulp人手張typescript同scss去transpile,呢一點同java好唔同,jar就係jar,唔會理你係邊到行,但nodejs個世界唔同,production同dev版本分別好大。你自己用npx create-react-app去創建新project,的確可以係local行,但就publish唔到上npmjs成功俾人用(可能係typescript同scss太煩)。而家個我個package可以同時俾reactjs同sharepoint spfx去用,可以build UI component library了。 read count : 25


2018/12/24 0

bismarck 1 kill 5

read count : 7


2018/12/20 0

Easy easy to extend c# class

Love this book, a very easy way call “extension methods” can let you easily inject new method to existing classes (even you don’t have its source code). I tested it in windows with .net framework and mac .net core, both work correctly. read count : 16


2018/12/16 0

Bismarck sunk 4 ships

read count : 9


2018/12/11 0

Proved ASP.net can call class in GAC

Nothing special, it works. read count : 10


2018/12/02 0

SharePoint終極大爆炸

SharePoint 2016爆到連啲default column type都死埋,SharePoint真係少啲經驗都必炒無疑 read count : 5


2018/12/01 0

Godaddy cheap VPS之經驗

係Godaddy起左隻最Cheap VPS, $160蚊個月, 得一粒vcore同1GB Ram, 行ubuntu + mysql + apache + wordpress. 正常黎講要兩三個星期restart一次mysql因為out of memory. 行wordpres兩年之後response time趑黎越慢, 有成十秒先load到個page. 裝左W3 Total Cache之後快左好多, 一兩秒就load到, 建議大家一定要裝. read count : 33


2018/11/28 0

Russian ship destoryed level 9 destroyer by torpedo

Russian ship destoryed level 9 destroyer by torpedo is miracle, uaually you are unable to get so close to send out the torpedo, level 9 destroyer has just too many canons. read count : 4


2018/11/25 0

[Real] Typescript has no type

If i pass an integer to the function’s parameter “from”, it will become integer and say it doesn’t has “includes” function, since it is belong to class string. This code is tested in SharePoint online with reactjs and typescript.   Below is my tsconfig.json   read count : 34


2018/11/23 0

Office 365 outlook有webhook

Office 365 outlook有webhook,以後要sync email去SharePoint又唔想用Microsoft Flow嘅話可以唔洗寫Polling了 read count : 3


2018/11/15 0

Microsoft嘅SharePoint Online係會disable上左production嘅feature

Microsoft嘅SharePoint Online原來個feature就算上左production都會因為有問題而中途被disable返 read count : 10


2018/11/10 0

Unexplainable : Typescript compiler has bug

Unexplainable : Typescript compiler has bug, if i add anything above {this.toDoList}, a html tag or just a string, the variable become nothing, nothing is shown on the screen. I am not sure it is reactjs bug or typescript bug, or may be chrome bug. I am using latest spfx 1.7.0 with SharePoint Online for…
Read more


2018/11/09 0

Solved : central admin new web application button is disabled

When you login to central admin and found out your “new web application” button is disabled. Just run SharePoint configuration Wizard, logout and login admin your windows. Everything will be fine. !!! If still failed, try to login to windows via non-administrator account. Then start central admin by “run as administrator” read count : 4


2018/11/01 0

Simplest c# sample to call azure storage api

Finally called the azure storage api, stucked for one hour in library. There is a / in + “/{0}/\ncomp:list”, Account); Remember two things: 1. If you are calling to azure management api, you need a cert. Read https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-certs-create and https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-configure-ssl-certificate-portal 2. If you are calling azure storage api, you just need a key, no cert…
Read more


2018/10/27 1

Excel Addins行得比Outlook前

Excel Addins行得比Outlook前, 雖然而家大家都係NodeJS+React, 但係Outlook到而家連Attach debugger都, 要告靠print段估 read count : 6


2018/10/23 0

JDK 11 problem

JDK11網上好多人都有我呢個問題,就係11 refactor左好多class,如果用嘅library係jdk8到compiler就會有呢個問題。Netbeans進度太慢,最新嘅netbeans 9.0只支持jdk10仲要好多plugin都用唔到,原因係netbeans.org呢個domain仲未貢獻俾apache基金會。所以原先netbeans plugin啲lib用緊package org.netbeans仲未可以移到俾apache,呢單野唔知搞幾耐。 read count : 9


2018/09/30 0

dotnet core will produce two exe

dotnet core will produce two exe if you make it self contained. One in win-x64\ and one in win-x64\publish\ . The different between it is referencing two different coreclr.dll. See the arrow in the below image. read count : 8


2018/09/22 0

Command to tail SharePoint Log

If in SharePoint 2013, change your path to C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\13\logs\ read count : 21


2018/09/20 0

咪記唔將成套.net搞到portable其中一個原因可能係CLR

咪記唔將成套.net搞到portable其中一個原因可能係CLR係用com server寫,com一引用DLL根本係好難移值 read count : 8


2018/09/19 0

Useful AD command about AD user

get user properties get-aduser -filter {name -eq ‘administrator’} -property * get-aduser -filter {name -eq ‘administrator’} -property *|select mobile,city read count : 7


2018/09/15 0

主題分享 – 走進 .NET Core 的世界

dotnet core pptx [slideshare id=114651142&doc=dotnetcore-180915070504&w=650&h=500] read count : 14


2018/09/15 0

Cityu AppsLab – Assembly programming course lesson 2

Powerpoint : Lesson 1 : assembly-programming Lesson 2 : assembly-programming Lesson 2 [slideshare id=112511457&doc=assembly-programminglesson2-180901042113&w=650&h=500 ] read count : 9


2018/09/01 0

Azure Recovery Services vaults根本就backup唔到

Azure Recovery Services vaults根本就backup唔到仲要無得delete個backup job,而家除左等唔知可以點!? read count : 4


2018/08/26 0