Type Khmer Unicode on Microsoft Office Word on MacOS [Macbook]

I have spent a lot of time searching and trying and finally, I got an easy tip for you. It works for me and one friend of mine, so I hope it works for you too.

This is a quick video tutorial in Khmer (for you guy not Khmer, I have written a script where you can pause or just follow along with the movement).

[Fixed] Khmer font in Word on Mac

1. Install Khmer Unicode NiDA keyboard

Download and copy Khmer.keylayout to /Users/YourName/Library/Keyboard Layouts You may follow this guide

If you’re familiar with terminal, issue the following command to copy:

cp Where-You-Extra-To/Khmer.keylayout ~/Library/Keyboard\ Layouts/

Then, open “System Preferences“, search for “keyboard layouts“, click plus sign “+“, scroll down and select “Others“, you will see “NiDA Khmer“, select it and click “Add” and you’ve done!

2. Install more Khmer fonts

Download fonts here and extra it, then open “Font Bookwhere you can find by click on “Lauchpad” and search for “Font Book”, right click and choose “Add Fonts …” , browse to folder where you extracted your fonts to, select all, and click “Open” 


Note that some fonts will not display correctly, some of them I found work well are basically “Khmer OS …” font family. I would recommend you to select font before you start your typing 🙂

That’s it!!! Have fun!!! 🙂

Screen Shot 2018-01-03 at 3.11.51 PM

How to remove page number from Heading 1 in Table of Contents [MS Word]

Here is what you do and come to problem:

1- Make sure you already set all heading for your titles (heading 1, 2 or 3)

2- Now it’s time that you insert your “table of contents”, but you don’t want to show page number on heading 1 (heading 1 for Part I, Part II … as shown in the figure 2 below)

Here is the solution:

  • Insert your table of content
  • Press Alt+F9 to switch between your normal table of content and TOC mode.
  • You should see { TOC \o “1-3” \h \z \u }. 
  • Then change it to { TOC \n “0-1” \h \z \u } to remove page number from heading 1 but NOT for others. (refer to figure 1)

Figure 1: when pressing Alt+F9



Figure 2: your desired table of contents


Figure 3: How you set auto numbering different level


Create hotspot in Windows by CMD

#You must run your cmd as administrator

Check whether your hardware (adapter) supports hotspot or not
netsh wlan show drivers

Create hotspot with ssid Hotspotname and key 12345678
netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=12345678

Start your hotspot so that your wireless devices like laptop or smartphone can connect to it
netsh wlan start hostednetwork

You can also stop your hotspot
netsh wlan stop hostednetwork

You can also show information about your hotspot
netsh wlan show hostednetwork

Microsoft How to use “xcopy” comamnd to copy all data from one volume to another, including hidden and system files

​You can use xcopy to copy all data from one volume to another, including hidden and system files, using the command

xcopy <source volume> <target volume> /s /e /r /c /h /k /o /x /y  

The switches mean:

  • /s—system files
  • /e—copies folders and subfolders, including empty ones
  • /r—overwrites read-only files on destination
  • /c—continue on errors
  • /h—hidden files
  • /k—copy all attributes
  • /o—copy file ownership and ACL information
  • /x—copy file audit settings
  • /y—suppress prompt to overwrite existing file

How to create a bootable USB drive without additional/third-party tool

# How to create a bootable USB drive without additional/third-party tool
# Prerequisite:
# USB (g:) -> disk 2 (in diskpart)
# CD Windows 7 (d:)

# run "diskpart" as administrator
select disk 2
create partition primary
format fs=ntfs quick

# run "cmd" as administrator
cd d:
cd boot
bootsect.exe /nt60 g:
xcopy d:\ g:\ /s /e /r /c /h /k /o /x /y

# Let have fun 🙂

# Note: It would work the same for Windows 8 or 10

Using command “forfiles” in Windows

C:\Users\Vichhaiy>forfiles /?

FORFILES [/P pathname] [/M searchmask] [/S]
[/C command] [/D [+ | -] {MM/dd/yyyy | dd}]

Selects a file (or set of files) and executes a
command on that file. This is helpful for batch jobs.

Parameter List:
/P pathname Indicates the path to start searching.
The default folder is the current working
directory (.).

/M searchmask Searches files according to a searchmask.
The default searchmask is ‘*’ .

/S Instructs forfiles to recurse into
subdirectories. Like "DIR /S".

/C command Indicates the command to execute for each file.
Command strings should be wrapped in double

The default command is "cmd /c echo @file".

The following variables can be used in the
command string:
@file – returns the name of the file.
@fname – returns the file name without
@ext – returns only the extension of the
@path – returns the full path of the file.
@relpath – returns the relative path of the
@isdir – returns "TRUE" if a file type is
a directory, and "FALSE" for files.
@fsize – returns the size of the file in
@fdate – returns the last modified date of the
@ftime – returns the last modified time of the

To include special characters in the command
line, use the hexadecimal code for the character
in 0xHH format (ex. 0x09 for tab). Internal
CMD.exe commands should be preceded with
"cmd /c".

/D date Selects files with a last modified date greater
than or equal to (+), or less than or equal to
(-), the specified date using the
"MM/dd/yyyy" format; or selects files with a
last modified date greater than or equal to (+)
the current date plus "dd" days, or less than or
equal to (-) the current date minus "dd" days. A
valid "dd" number of days can be any number in
the range of 0 – 32768.
"+" is taken as default sign if not specified.

/? Displays this help message.

FORFILES /S /M *.txt /C "cmd /c type @file | more"
FORFILES /P C:\ /S /M *.bat
FORFILES /D -30 /M *.exe
/C "cmd /c echo @path 0x09 was changed 30 days ago"
FORFILES /D 01/01/2001
/C "cmd /c echo @fname is new since Jan 1st 2001"
FORFILES /D +9/3/2015 /C "cmd /c echo @fname is new today"
FORFILES /M *.exe /D +1
FORFILES /S /M *.doc /C "cmd /c echo @fsize"
FORFILES /M *.txt /C "cmd /c if @isdir==FALSE notepad.exe @file"

*Delete files older than 30 days:
forfiles -p "C:\what\ever" -s -m *.* /D -30 /C "cmd /c del @path"