OS X fonts look different on external Monitor

When the Macbook Pro connects to an external LCD monitor, fonts look very strange in some program  (Like Terminal) on the external monitor. It happened on 2015 Macbook Pro w/ OS X El Capitan 10.11.6.  Monitor AOC E2429SWHE.

It appears the fonts on an external monitor are not smoothing because system mistakenly recognizes the monitor as CRT.

To solve: In Terminal

defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

The number 2 here corresponds to Medium – Best for Flat Panel. You may also use 1 for light smoothing, and 3 for strong smoothing, as per the original OS X font smoothing options.

Relaunch the program to take effect.

 

Speed Up Window Resizing Animation Speed in Mac OS X 10.10 El Capitan

OS X 10.10 Full screen resizing animation is annoying.

No way to turn the animation off, only to speed up.

In terminal:

defaults write -g NSWindowResizeTime -float 0.001

To turn off:

defaults delete -g NSWindowResizeTime

 

Extract Windows 10 beautiful spotlight (lock screen) wallpaper

  1. Enable ‘Show hidden files’
  2. Go to This PC > C: > Users > [Your User Name] > AppData > Local > Packages > Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy > LocalState > Assets
  3. Copy out all the files to a new Folder e.g. ‘Foo’
  4. Within foler ‘Foo’, enter into Windows Command line prompt (CMD), bulk rename all files with .jpg extension using this command:  >  ren * *.jpg
  5. View all the jpg files, select the one you want. Done.

OS X 10.10 Yosemite Transfer Old Apps Settings to New Hard drive

Copy files from old hard drive to new. If user name changed, need to change owner for old files.

1. Show hidden files in the Finder
In terminal:
defaults write com.apple.finder AppleShowAllFiles Yes
killall Finder

2. Message App:
1) Open Messages on both Macs and go Preferences > Accounts > iMessage > Sign Out
2) Copy these folders and override from old Mac to new Mac

~/Library/Messages
~/Library/Containers/com.apple.iChat

3) Restart new Mac
4) Open Messages and sign in to iMessages again

3. Dictionary App
~/Library/Dictionaries

4. Mail App
~/Library/Mail
~/Library/Containers/com.apple.mail
~/Library/Containers/com.apple.MailServiceAgent

HP Proliant G7 N54L Freenas 9.3 NAS Build Log

NAS Server build LOG ( It is still improving, many errors)

For my own reference

Start time: Jan 04, 2015

Project completion time: Jan 28, 2015

0.  Introduction

  • Planning:

Pure central storage server

  • Requirements:

Minimum Cost, Reliable Hardware, Data Redundancy, Fast & stable local file sharing, anywhere data accessing; the more storage space, the better.

1. Hardware selections:

1.1 Server:

  • Model: HP Proliant MicroServer G7 744900-001 4-HDD Bay
  • CPU: AMD Turion II Neo N54L CPU, 25W TDP

Similar performance CPU for comparsion -> (Intel Core i5 520M)

  • Build-in RAM: SKhynix 4GB, 1333MHz, PC3-10600E-9, DDR3, dual-rank x8, 1.50V, unbuffered with ECC dual in-line memory module (UDIMM)

Model: HMT351U7EFR8C-H9 T0 AF

Part Number: 500210-171

  • NIC: Broadcom NC107i Gbps
  • Reason: $199, HP Warranty, Hard drive bays, Sever grade hardware & design

Dual core CPU satisfies home NAS requirements

2.2Ghz is good enough for single thread CIFS share

Two slot ECC RAM, expandable to 16G, important for ZFS file system

Direct USB port on the motherboard, convenient for OS USB drive. Continue reading HP Proliant G7 N54L Freenas 9.3 NAS Build Log

Recover Acrobat XI favourite commands settings from offline Windows 8.1 Registry File on external HDD

I backup entire Windows 8.1 partition to an external hard drive and re-installed Windows.

I tried to recover my Acrobat XI common tool settings from backup instead of customizing them again.

Prepare:

I don’t know where Acrobat stores these settings. By google, in windows 8.1, Acrobat puts files in this location:

C:UsersUser_NameAppDataRoamingAdobeAcrobat11.0Preferences

However I didn’t find any useful files related with Common Tools settings. I guess that the settings are in Windows Registry.

Extract offline registry from my backup external hard drive

1. The Tool I am using: RegFileExport v1.06 

http://www.nirsoft.net/utils/registry_file_offline_export.html

2.Windows put registry file here since Vista:

Current User Settings:

1
Users%username%NTUSER.DAT

Computer Settings:

1
WindowsSystem32Config

3. Extract: In windows command line (cmd):

RegFileExport “J:UsersMyNameNTUSER.DAT” “E:OldReg.txt”

4.  Export my current Acrobat registry at “[HKEY_CURRENT_USERSoftwareAdobeAdobe Acrobat11.0” to temp.reg

5. Comparing content in OldReg.txt and temp.reg using Notepad++ and compare plugin, I found that Acrobat puts settings related to Common Tools at

“[HKEY_CURRENT_USERSoftwareAdobeAdobe Acrobat11.0AVGeneralcFavoritesCommandsDesktop]”

6.Extract these settings from my old registry and import in the current registry. Success!

7. Here is my example settings – AdobeCommon.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSoftwareAdobeAdobe Acrobat11.0AVGeneralcFavoritesCommandsDesktop]
"a0"="Text"
"a1"="Highlight"
"a2"="RotatePages"
"a3"="TouchUpEditPDFTool"
"a4"="FreeTextTypewriter"
"a5"="Ink"
"a6"="EraseInk"

Acer Aspire V5-473P-5602 风扇调速

换了个本儿,写一个Log:

Acer Aspire V5-473P-5602 i5-4200U,无独立显卡, 使用起来感觉风扇略吵. 找不到现成可用的风扇调速软件.

使用RWEverything (http://rweverything.com/) 读取系统Embedded Controller (EC)试图找到控制风扇方法.

473P拆机后发现,设计时的双风扇在此机器上只有一个(假如键盘向上,这个风扇在右边), 473PG独显版本才有两个风扇. 感觉这单个风扇不足安静的将CPU温度控制在合理范围.

使用上述软件读取EC Register后发现,貌似这台机器的设计不同于一般笔记本, 似乎没法直接控制风扇的转速,只能按照档位调节,貌似只有少数笔记本这么设计,比如Asus Zenbook和Thinkpad x些列12寸的个别机器.

EC Register 上, 目前研究下来,可能的分配是:

Hex地址: (对应值均为Hex)

55 -> 控制风扇档位 -> :  00 风扇关闭; 01-04 由低到高的4个风扇档位,05貌似这时候风扇速度已经最大了,虽然数字还可以调高,但是没啥变化了; 1F 这时候风扇是最大转速而且系统不会更具CPU温度自动降档位了. 在其他数值,系统会更具温度很快的降下档位

56-> CPU图形核心温度

58->CPU Package温度

5C->风扇转速 -> 目前发现数值大约是以下规律: 00 风扇关闭 09 最低转速 1B最高转速. 听风扇声音, 和实际转速的对应关系可能是 Decimal数值 x 100, 也是就900RPM 到 2700 RPM

5D->数值变化没规律,但是是紧接着5C,怀疑是未安装的那个风扇的转速读数 Continue reading Acer Aspire V5-473P-5602 风扇调速

List of common decompress & compress tools in unix

For my future reference:  (整理自互联网)

check folder size:

du -sh *

————

1. 7-zip:  (.7z file)

官网下载地址:http://www.7-zip.org/download.html
源文件项目地址:http://sourceforge.net/projects/p7zip/,目前最新版为9.20.1。
执行以下命令下载安装:

wget http://nchc.dl.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2
tar -jxvf p7zip_9.20.1_src_all.tar.bz2
cd p7zip_9.20.1
make
make install

使用7zip的命令是7za。
安装完成后的使用方法:
7za {a|d|l|e|u|x} 压缩包文件名 {文件列表或目录,可选}

a 向压缩包里添加文件或创建压缩包,如向001.7z添加001.jpg,执行:7za a 001.7z 001.jpg;将001目录打包执行:7za a 001.7z 001;
d 从压缩里删除文件,如将001.7z里的001.jpg删除,执行:7za d 001.7z 001.jpg
l 列出压缩包里的文件,如列出001.7z里的文件,执行:7za l 001.7z
e 解压到当前目录,目录结构会被破坏,如001.rar内有如下目录及文件123/456/789.html,
执行:7za e 001.rar,目录123和456及文件789.html都会存放在当前目录下。
x 以完整路径解压。

zip文件解压中文文件乱码问题,由于zip文件中没有声明其编码,所以在Linux上使用unzip解压以默认编码解压,中文文件名会出现乱码。

————–

2. tar:  (decompress)

  1. Type at the command prompt
    tar xvzf file-1.0.tar.gz – to uncompress a gzip tar file (.tgz or .tar.gz)
    tar xvjf file-1.0.tar.bz2 – to uncompress a bzip2 tar file (.tbz or .tar.bz2)
    tar xvf file-1.0.tar – to uncompressed tar file (.tar)
    • x = eXtract, this indicated an extraction c = create to create )
    • v = verbose (optional) the files with relative locations will be displayed.
    • z = gzip-ped; j = bzip2-zipped
    • f = from/to file … (what is next after the f is the archive file)
  2. The files will be extracted in the current folder (most of the times in a folder with the name ‘file-1.0’).

Continue reading List of common decompress & compress tools in unix

Using Stanford Phoenix++ MapReduce to count the most frequent words in Wikipedia Database

Log of a quick and fun afternoon project.

1. Download Wikipedia English-language Database:

http://en.wikipedia.org/wiki/Wikipedia:Database_download

Download pages-articles.xml.bz2

Uncompress it ro pages-articles.xml (around 45GB)

2. Download Phoenix++:

http://mapreduce.stanford.edu/

http://mapreduce.stanford.edu/plus/phoenix++-1.0.tar.gz

make binary file and then find ‘word_count’ in ‘tests’ folder

3. copy wordcount and pages-articles.xml to the same folder

./word_count pages-articles.xml 1000 >wikiwords.txt

Using wordcount program to count top 1000 popular words from wiki database

4. Result: (Using 8 Xeon E5 server, 128 processing cores) Continue reading Using Stanford Phoenix++ MapReduce to count the most frequent words in Wikipedia Database

Windows 8.1 Event 10016 Fix: The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {D63B10C5-BB46-4990-A94F-E40B9D520160}

A year ago, I had such error message in the event viewer on the first day of fresh installation of Windows 8. I believed it was also the reason that I had a blue screen: MEMORY_MANAGEMENT error. It was caused by ntoskrnl.exe upon inspecting Windows Mini Dump, by a tool named BlueScreenView.  Now a year later, after I recently updated to Windows 8.1 Update 1, the problem came back again. I decide to log it here.

After inspecting Windows Event Viewer, the error is the same as before, which is:

Event 10016, DistributedCOM

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{D63B10C5-BB46-4990-A94F-E40B9D520160}
and APPID
{9CA88EE3-ACB7-47C8-AFC4-AB702511C276}
to the user NT AUTHORITYSYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.

Here is a way I found to fix it:

1.Go to Component Service: dcomcnfg  (in Windows 8.1, you may hit ‘Win’ + Q and enter dcomcnfg, and launch it by Admin)

At the left panel, go to ‘Component Service->Computers->My Computer->DCOM Config’, then at the right panel, find by name: ‘RunTimeBroker’ (This is {D63B10C5-BB46-4990-A94F-E40B9D520160})

Right click it, choose ‘Property’ -> ‘Security’.   Then I found everything was grey and unable to edit.

2. To enable editing ‘Security’, launch regedit (‘Win’ + Q and enter regedit, open the application by Admin)

Browse to Hkey_classes_rootAppID{9CA88EE3-ACB7-47C8-AFC4-AB702511C276}, Right click it

Choose ‘Permissions’, -> Choose ‘Advanced‘ -> Change Owner to ‘Administrators’ of your PC -> Apply the change

Then change ‘SYSTEM’ and ‘Administrators’ ‘s permission to ‘Full Control’ under ‘Permission’ -> Apply the change

3. Go back to Component Service dcomcnfg

Now the Security section is able to edit.

In ‘Launch and Activation Permissions’, Add ‘SYSTEM’ and give it permission ‘Full Control’

4. DONE!

Continue reading Windows 8.1 Event 10016 Fix: The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {D63B10C5-BB46-4990-A94F-E40B9D520160}