Making Windows 8.1 better to use
The following steps were recorded when I configure my Windows 8.1 64-bit system. For reference only.

1. UAC

  • Settings -> Control Panel -> User Accounts -> Change User Account Control settings
  • Choose "Never notify"

2. DPI

  • Right click on desktop -> Screen resolution -> Make text and other items larger or smaller
  • Choose "Medium - 125%"
  • Check "Let me choose one scaling level for all my displays"
  • Sign out & in
  • Right click on desktop -> View -> Small icons

3. Animate Effects

  • Settings -> Control Panel -> System -> Advanced system settings
  • Advanced -> Performance -> Settings... -> Visual Effects -> Uncheck all animate effects

4. Classic Shell

  • Install Classic Shell (Do not install Classic IE9 and Update) (Download)
  • Config
  • File Explorer -> Hide Classic Explorer Bar

5. 7+ Taskbar Tweak

  • Install 7+ Taskbar Tweak (Download)
  • Config

6. Taskbar and Navigation properties

  • Right click on taskbar -> Properties
  • Taskbar -> Check "Auto-hide the taskbar"
  • Taskbar -> Check "Use small taskbar buttons"
  • Taskbar -> Taskbar buttons: Never combine
  • Jump Lists -> Uncheck "Store and display recently opened items in Jump Lists"

7. Install Drivers

8. Default Font

  • Use Windows 8 Font Changer (Download) to modify the default font to Tahoma
  • Restart
  • Adjust ClearType

9. Region

  • Settings -> Control Panel -> Region
  • Short date: yyyy-M-d
  • First day of week: 星期日

10. Keyboard Shortcuts Underline

  • Settings -> Control Panel -> Ease of Access Center -> Make the keyboard easier to use -> Make it easier to use keyboard shortcuts
  • Check "Underline keyboard shortcuts and access keys"
  • Check "Prevent windows from being automatically arranged when moved to the edge of the screen"

11. AutoPlay

  • Start -> Control Panel -> AutoPlay
  • Uncheck "Use AutoPlay for all media and devices"
  • Each selection remains the default "Choose a default"

  • Run "gpedit.msc"
  • User Configuration -> Administrative Templates -> Windows Components -> AutoPlay Policies -> Turn off AutoPlay -> Enabled on All drives
  • Computer Configuration -> Administrative Templates -> Windows Components -> AutoPlay Policies -> Turn off AutoPlay -> Enabled on All drives

12. Built-in CD Burning

  • Run "gpedit.msc"
  • User Configuration -> Administrative Templates -> Windows Components -> File Explorer -> Remove CD Burning features -> Enabled

13. Temp Folder (optional)

  • Start -> Control Panel -> System -> Advanced system settings
  • Advanced -> Environment Variables...
  • Set TEMP, TMP = F:\Temp
  • Clear original files (%USERPROFILE%\AppData\Local\Temp)

14. Folder Recognition

  • Run Restore_Default_Folder_Templates.bat (Download)
  • Run All_Folders_Use_General_Items_Folder_Template.bat (Same download page as above)

15. Hide Library Folders


16. Set Folder Default View

17. Zip Folder

  • Import Disable_ZIP_Compressed_Folders.reg

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CompressedFolder\CLSID]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\CLSID]

  • Import Disable_CAB_Files.reg

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CABFolder\CLSID]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.cab\CLSID]

18. Compression Software

  • Install WinRAR or 7-zip

19. Configs

  • Config Sounds (Set to no sounds)
  • Config Windows Color
  • Config Quick Launch Bar

20. Install Input Method

21. Language

  • Start -> Control Panel -> Language
  • Advanced Settings -> Switching input methods -> Let me set a different input method for each app window
  • Change language bar hot keys -> Between input languages: Ctrl + Shift
  • Config as the following screenshots:









22. AutoHotkey

  • Install AutoHotkey
  • Edit the startup script as below:

; Ctrl + Shift
^space::^shift

23. WinSAT Scheduled Task

  • Start -> Control Panel -> Administrative Tools -> Task Scheduler
  • Task Scheduler Library -> Microsoft -> Windows -> Maintenance
  • Right click WinSAT, and choose "Disable"

24. Set Power Options
Current language: English · 其他语言: 中文 (简体)
今天才知道 SysWOW64 是什么意思
现在平时很少有机会手动往 System32 目录里复制 dll 文件了。今天把 VC++ 2010 Debug 版的运行时 dll 文件复制到 System32 和 SysWOW64 目录后,运行程序还是报错。用 Dependency Walker 查看,发现这个 32 位的程序加载的是 64 位版本的 dll。

在网上一番搜索才知道,原来在 64 位 Windows 中,System32 目录下存放的都是 64 位的东西,而 SysWOW64 下存放的才是 32 位的东西。为了保持兼容性,System32 的名称就没改,而 SysWOW64 其实也没体现出来 32-bit Windows on 64-bit Windows,所以这两个文件夹的名称现在看着很容易让人糊涂。

文章就是这篇《什么是SysWow64》,推荐阅读一下。
Current language: 中文 (简体)
Notepad++ with enhanced PHP syntax highlighting
During the National Day holiday, I searched for a alternative text editor and intend to use Notepad++. But when I start using it, I found its syntax highlighting feature is a bit weak.

From this article, I knew that the Scintilla editor component using by Notepad++ uses hard-coded method to deal with syntax highlighting. To add a new type of highlighting keywords, you need to modify the C++ source code. As for the problem that keywords and function names are mixed together for PHP, it has been there for 9 years.

I could have put it away and looking for commercial softwares. But I felt the well-known Sublime Text is not good as well after trying it out. So I came back to consider modifying the source code of Notepad++. Through the modification on Oct 5, I had figured it out and commited it to the repository I forked on github:

https://github.com/wudicgi/npp-customized

Today, I merged the code of v6.8.6 to my enhanced branch

This is the PHP syntax highlighting result in original edition:


And below is my enhanced version:


Now, in the Style Configurator, you can specify the PHP keywords (WORD) and function names (FUNCTION) to different colors:

Current language: English · 其他语言: 中文 (简体)
Transform Windows 7 into Windows 8.1
A few days ago, I changed the theme of Win 7 on my office computer to Win 8.1. Now, it looks much better. Through all these years, I still cannot accept the default theme of Win 7.



You can download the Win 8.1 theme for Win 7 here:
http://www.askvg.com/download-windows-8-rtm-theme-for-windows-7/

And if you want to change the start button, login screen and so forth as well, you can refer to this article:
http://www.askvg.com/transform-windows-7-into-windows-8-vnext-without-using-customization-pack/
Current language: English · 其他语言: 中文 (简体)
Wrote a new PHP library: HtmlMinerDocument
During the National Day holiday, I wrote a new PHP library by which you can retrieve DOM elements from HTML using the simple CSS selector syntax.

Now I have commited it to github, at:
https://github.com/wudicgi/html-miner-document

The usage is straightforward. For example, the code below could retrieve the title and link of all headline news from Netease News:
  1. <?php
  2. include_once 'HtmlMinerDocument.php';
  3.  
  4. // Find all elements matching the given CSS selectors
  5.  
  6. $doc = new HtmlMinerDocument(file_get_contents('http://news.163.com/'));
  7.  
  8. $news_list = $doc->findAll('div.ns-wnews h3 a');
  9.  
  10. foreach ($news_list as $news) {
  11.     echo "$news[text] ($news[href])\r\n";
  12. }
  13.  
  14. echo "\r\n";
  15. ?>

And using the code below, you can get all threads from the collection forum of amobbs:
  1. <?php
  2. include_once 'HtmlMinerDocument.php';
  3.  
  4. // Find elements by group
  5.  
  6. $doc = new HtmlMinerDocument(file_get_contents('http://www.amobbs.com/forum-9892-1.html'));
  7.  
  8. $threads = $doc
  9.     ->findFirst('table#threadlisttableid')
  10.     ->findAll('tr')
  11.     ->findAllByGroup(array(
  12.         'title'         => 'th a.s',
  13.         'author'        => 'td.by cite a',
  14.         'last_reply'    => 'td.by em span'
  15.     ));
  16.  
  17. foreach ($threads as $thread) {
  18.     echo $thread['title']['text'];
  19.     echo ' by ' . $thread['author']['text'];
  20.     echo ' (' . $thread['last_reply']['text'] . ')';
  21.     echo "\r\n";
  22. }
  23. ?>
Current language: English · 其他语言: 中文 (简体)
入手 Kindle DXG
今天收到了前两天在淘宝上买的盒装未拆封官翻的 Kindle DXG, 收到后刷了多看。

看扫描版的 PDF, 裁边后和纸质书对比如下:


能看出字号比纸质书还是稍小一些:


整页对比,把 PDF 四周的空白裁掉,9.7 寸屏的显示区域也还是比 16 开纸质书的文字部分小:


上边对比所选的书是《你必须知道的495个C语言问题》,之所以选这本书不是因为近期在看,而是这本书是我以 2 倍定价的价格从 china-pub 买的 POD (按需印刷) 的书。如果当时有 Kindle DXG, 不知道是不是就不会买纸质书收藏了。

不过 Kindle DXG 实际看起书来,字号和分辨率的影响不算大,主要是翻页时的刷新速度比较慢,翻几页后还会黑屏全刷。这应该就是说电子书不适合看技术类书籍的原因了,将来技术类的图书还是要接着买的。

2016-5-22 后记: Kindle DXG 除了看一个规范 (specification) 的 PDF 文档用过几天外,大部分时间都是在吃灰,扫描版的技术类书籍不如看纸质的,其他类型的书自己找电子书也很麻烦。所以后来还是又入手了 Kindle Paperwhite 3, 可以在淘宝上买中亚的充值卡充值,之后用一键下单买书,很方便。买一些非技术类书籍,便宜又不占地。而且 KPW3 有背光确实比较省眼。
Current language: 中文 (简体)
More entries: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... [25]
« Previous page · Next page »