Monday, February 1, 2021

Software for semantic triple / RDF triple / triple

 The following are my favorite semantic triple software tools:

Tuesday, January 26, 2021

Neovim Setup

A very nice tutorial for neovim setup we found in medium.com:

https://medium.com/better-programming/setting-up-neovim-for-web-development-in-2020-d800de3efacd

There is something more about the setting:

  1. Run 'nvim +PlugInstall' if you added new plugin in ~/config/nvim/init.vim
  2. Run 'nvim +PlugClean' after you remove plugin in  ~/config/nvim/init.vi
  3. Avoid using plugin 'ryanoasis/vim-devicons' if you see strange characters in NERDTree

Sunday, November 8, 2020

Using icacls.exe command to change the permission of a folder

Use following command to change the permission of a folder:

 C:\folder> icacls FOLDER_NAME /grant user_id:(OI)(CI)(F)


Reference: https://stackoverflow.com/questions/38725364/icacls-permissions-not-applying-as-i-expect


F - Full Access

OI - Inherit file

CI - Inherit sub-folder


Saturday, October 24, 2020

Ubuntu WiFi device disappear with dual boot Windows 10

 When your device is dual boot with Ubuntu and Windows 10, you'll got a chance to lose the WiFi device in Ubuntu.


To fix this issues, try to disable the "Fast Startup" feature in Windows 10.


It solves the problem for me, hope this work for you too.


Sunday, October 11, 2020

Ubuntu apt-get update with NO_PUBKEY error

 In Ubuntu, I'd encountered the following error when doing a apt-get update:

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F7E06F06199EF2F2

This key belongs to the repository https://qgis.org/ubuntu. To add the key, I did the following:

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 F7E06F06199EF2F2

By default, the command above will called gpg which uses port 11371. I had to force command   to use port 80 instead. Also, please also pay attention that the protocol is called "hkp://"

Ref: https://askubuntu.com/questions/1119727/gpg-keyserver-receive-failed-connection-timed-out



Thursday, September 3, 2020

Stop / hide up pcieport error in Ubuntu / Linux

 Number of ways  to try in grub:

  • pci=nomsi
  • pci=noaer
  • pcie_aspm=off

Actual steps:
  1. sudo vi /etc/default/grub
  2. Edit line:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"
  3. sudo update-grub
  4. Reboot machine

Restart / Reboot Linux


To restart Linux anytime: Hold Alt-SysRq (i.e. PrtSc) and type R E I S U B


Reference:

http://blog.kember.net/articles/reisub-the-gentle-linux-restart/

Friday, August 7, 2020

Console log freezes / hangs in Eclipse

Sometimes your Eclipse console log becomes very jerky, freezes or even hang up.

It's very likely that your console log got something which is very long without word warp. It can even causes Windows itself becomes freezing too!

So make your console "Word wrap". Or set a width limit on the console in Eclipse preference. The problem will be solved.

SQL Developer installation in Windows 10

 Quick suggestion for getting the SQL Developer to work in Windows 10:

  1. Get the SQL Developer (with JRE) edition. I got bad experience when getting SQL Developer to work with my own JDK 1.8 installation in Windows 10. No matter where I copy the MSVCR100.DLL (It always said JAVA_HOME\jre\bin\msvcr100.dll cannot be launched, crazy). So, just get the "with JRE" version.

  2. The font size are crazily small on a high DPI screen. So get a larger font, right-click on the "sqldeveloper.exe", choose "Compatibility > Change high DPI settings > High DPI scaling override > System (Enhanced)"
    (Reference: https://christian-gohmann.de/2018/10/25/running-sql-developer-on-high-dpi-screens/)

Friday, July 24, 2020

Command line to stop Windows 10 updates

To stop Windows 10 updates:

> net stop wuauserv
> net stop bits
> net stop dosvc

Resume it:

> net start wuauserv
> net start bits
> net start dosvc

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...