Sunday, August 20, 2017

Make keyboard on PC behave like Mac

PC keyboard has Alt key next to Space key while on Mac you have Command key next to it. On Mac you would do Command+Space to change language and Command+C, Command+V for Copy and Paste respectively. The easy and clean way to make PC keyboard having this behaviour is by using the free AutoHotKey tool. With the tool installed, you would create an .ahk file and run it to map the key combinations according to the content in the file. In my case, this is what I put in .ahk file

!c::Send, ^c
!v::Send, ^v
!space UP::Send #{Space}
Return

!c is Alt+C which I will send ^c or Ctrl+C. The # is Windows key

Saturday, July 29, 2017

Yulong D100 MkII Headphone Amp and Line Out Use




First, always use noise-filtered clean power supply. When you connect both line out connector (RCA) to your amp while at the same time plug in the headphone connector, I find that the sound through headphones will be distorted if the amp turned off. If you turn on the amp then the sound will be ok.  Disconnect the line connector from D100 is of course ok. But if you use both then this is a little bit annoying having to turn on the amp while you just want to listen via headphones or having to disconnect the RCA connector.

Thursday, July 6, 2017

HikVision and AIS Port Forwarding

AIS Fiber ต้องลงทะเบียนที่ thddns.net เพื่อทำ Port Forwarding

1. ลงทะเบียน จะได้เลข External Port มา 10 port
2. Config Port Forwarding บน Router ใช้เลข External Port ที่ได้จาก thddns
3. เหมือนได้เฉพาะ TCP/UDP แต่ RTSP ไม่ได้
4. HikVision ไม่มี http stream ต้องใช้ iVMS client connect ผ่าน Server Port ของกล้อง (Port 8000)
5. Forward External Port ไปที่ Port 8000 แล้ว Set iVMS ไปที่ External Port ที่ทำ Forward ไว้

Tuesday, February 28, 2017

เปลี่ยน bluetooth codec บน macOS ให้ใช้ aptX

1. วิธีดู codec ปัจจุบัน ให้กด Option ค้างแล้วกด Bluetooth icon บนเมนูบาร์ แล้วเลื่อนไปที่ device ที่ต้องการเพื่อดู codec ปัจจุบัน (จะเห็นว่าเป็น SBC, aptX, etc..)
2. ถ้าไม่ใช่ aptX แต่อุปกรณ์ Bluetooth ที่ connect อยู่ support aptX ให้ download Bluetooth Explorer ไปที่ Tools/Audio Settings แล้ว Force aptX
3. Disconnect และ Connect Device ใหม่

ขอบคุณที่มา
http://www.theghostbit.com/2015/03/force-mac-os-x-to-use-aptx-with-your.html

Wednesday, December 28, 2016

Quick Apache Setup - Change localhost path on macSierra for Test Only

To quickly change the localhost path from default (/Library/WebServer/Documents) to your path and bypass all the permission problems

  • edit DocumentRoot in /private/etc/apache2/httpd.conf and set it to your path, both "DocumentRoot" and "Directory"
  • add the following lines
Options Indexes FollowSymLinks Multiviews
AllowOverride All

  • change User from _www to



This is for single machine and for test only as it will not be highly secure but it's a quick way for not having to do all the permission change on your test web directory.

Saturday, December 24, 2016

Turn off ipv6 on mac Sierra

Off setting was removed from the network settings for ipv6. To turn it off, need to use terminal command networksetup

1. list hardware port
networksetup -listallhardwareports

2. turn off the port you want
networksetup -setv6off Ethernet (Ethernet is the name of the port to want to turn if off)

3. turn it back to default
networksetup -setv6automatic

Tuesday, July 26, 2016

Update Wordpress Plugins - Could not create directory issue

Put this in wp-config.php

define('FS_METHOD','direct');

and change wp-content folder to 777 temporarily, update and change it back