Category: Uncategorized

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


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 https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html Step 3) Paste the token in to line 4 below Step 4) Paste the these code https://gitlab.com/snippets/1686114 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.


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.


2017/09/19 0

linux elf dependency graph

linux elf dependency graph


2016/05/18 0

Enable peter-swing theme in netbeans

Edit : /Applications/NetBeans/NetBeans 8.0.2.app/Contents/Resources/NetBeans/etc/netbeans.conf Change the line to:


2015/09/06 0

Nazi gun tower


2015/07/13 0

Linux view csv command

alias csv=’column -s, -t’ csv your_file


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.


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.


2015/03/19 0

tomcat auto startup script

just save this to /etc/init.d/tomcat and link to /etc/rc5.d/S99tomcat


2015/01/21 0

disable gnome “unable to mount…” dialog

gsettings set org.gnome.desktop.media-handling automount false …and enable it again: gsettings set org.gnome.desktop.media-handling automount true


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 http://support2.microsoft.com/kb/3005628


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


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)


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.


2014/07/12 1

a good free usenet server

a good free usenet server news.aioe.org


2014/06/30 0