Category: Uncategorized


Both are great book read count : 5

2019/03/10 0

I need to learn fast-reading technique

Usually i arrive shatin library 7pm so i got only one hour before close. So better to learn fast-reading technique. These two books are great. I think i need to buy some design sample books. read count : 6

2019/03/06 0


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

2019/01/15 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 “YOUR NAME”git config –global “YOUR EMAIL ADDRESS” read count : 13

2019/01/05 0

Hex/Dec regex generator for continuous number

Decimal number: read count : 14

2019/01/05 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. read count : 22

2018/12/27 0

Netbeans Antlr plugin初步頂到非Conbined grammar

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

2018/12/26 0

bismarck 1 kill 5

read count : 12

2018/12/20 0

Bismarck sunk 4 ships

read count : 10

2018/12/11 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 : 40

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 : 12

2018/11/25 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 : 15

2018/09/30 0

Hyper-V是Type 1的Hypervisor

Hyper-V是Type 1的Hypervisor, 當你安裝完它的時侯, 它會比所在的windows更加底層, Bootloader是會首先加載它然後由它去啓動完先的那一個windows, 所以之後的vm也和那個windows同級, 所以就算那個windows死機了, 其實Hyper-V是沒有死的, 在它上面運行的vm更加不會死. read count : 40

2018/08/14 0


read count : 28

2018/06/05 0

Is is real Buddha photo? He looks like a Chinese

I don’t think Buddha looks like a Chinese instead of an Indian 🙂 read count : 25

2018/05/21 0

The hard part of developing assembler

One of the hardest part of developing assembler is to make your grammar correctly display the error message and pointing to the correct token. read count : 12

2018/04/28 0

Netbeans outline plugin can parse antlr4 and cpp file

Netbeans outline plugin can parse antlr4 and cpp file now. Just press ‘ctrl+p’, it will be popup.   read count : 17

2018/04/15 0

I am better to embed all testing assembly instruction in the antlr listener

I am better to embed all testing assembly instruction in the antlr listener rather than finding a way to embed them into the antlr grammar, because: Using parser of parser skill set to write a parser to parse antlr grammar and extract the testing asm instruction is too risky. One day the antlr grammar will…
Read more

2018/02/28 0

Solved: Error while finding module specification for ‘azure.cli’ (ModuleNotFoundError: No module named ‘azure’)

when you have the follow error when running azure-cli az command: /Users/peter/lib/azure-cli/bin/python: Error while finding module specification for ‘azure.cli’ (ModuleNotFoundError: No module named ‘azure’) Just run directly read count : 43

2017/12/10 0

Display gitlab projects in your wordpress page

It seems there is no plugin to display a project list of your gitlab, so do this Step 1) Install this plugin Step 2) Generate a access token in your gitlab Step 3) Paste the token in to line 4 below Step 4) Paste the these code into your page Step 5) For the…
Read more

2017/11/25 0

I got over 2000 commits to open source projects

My github account is destroyed by a crazy Christian. I got over 2000 commits to open source projects, and 669 commits in last year. These screens are the only prove of my contribution now. read count : 15

2017/11/25 0

Professor Terence Parr replied

Professor Terence Parr (Antlr creator) replied, this is a major different between foreigner professor and Hong Kong professor. Professor from Hong Kong never reply any technical question from public. read count : 14

2017/09/19 0

linux elf dependency graph

linux elf dependency graph read count : 24

2016/05/18 0

Enable peter-swing theme in netbeans

Edit : /Applications/NetBeans/NetBeans Change the line to: read count : 86

2015/09/06 0

Nazi gun tower

read count : 141

2015/07/13 0

Linux view csv command

alias csv=’column -s, -t’ csv your_file read count : 175

2015/06/16 0

objdump 2.24 has bug

objdump 2.24 has bug, but this bug is fixed in 2.25. It dump the wrong address for my 32 bits kernel. read count : 292

2015/05/22 1

Fixed ubuntu vnc keymap problem

ubuntu 12.04 vnc keymap has trouble, D become minimize all windows and S become start menu, run these to fix it. read count : 221

2015/03/19 0

tomcat auto startup script

just save this to /etc/init.d/tomcat and link to /etc/rc5.d/S99tomcat read count : 317

2015/01/21 0

disable gnome “unable to mount…” dialog

gsettings set automount false …and enable it again: gsettings set automount true read count : 214

2015/01/14 0

why i receive zero in my socket

I have two programs, one written in c++, the other is in java. C++ keep sending bytes to java, overtime write out 400KB. Java keep receiving the data using the readBytes function, this function returns an integer which is the number of byte it actually read for the function call. For every send (400kb) in…
Read more

2015/01/08 0

(solved) install .net 3.5 to azure windows 2012

Install the below fix will resolve this issue read count : 220

2014/10/11 0

[solved] usb wireless mouse freeze periodically in ubuntu 12.04 lts

usb wireless mouse freeze periodically in ubuntu 12.04 lts, edit /boot/grub/grub.cfg, add a boot option irqpoll will fix it read count : 850

2014/08/24 1

Add tabIndex to all tag incrementally

in VI, there is a command to add tabIndex to all tag incrementally :let i=200 | g/

2014/08/23 0

We should mix 4K and 4M Page

I was fixing the PSE and PAE page table display for GKD, I found out Linux using 4M page to map large address space and it uses 4K page to map broken space. So advance OS should mix use of 4K and 4M page.   Now GKD supports PSE=1 (4M page) read count : 598

2014/07/27 0

I think i am under dns attack

I think i am under dns attack, in my /var/log/message i keep seeing these. Someone is using over 2000 ip to lookup my dns server. read count : 387

2014/07/12 1