2013年8月7日星期三

[教程] 安装Microsoft Office 2010 + 激活

又为此折腾了两三天..
我之前下载了不知道什么版本的Office 2010,然后又到TPB下载了不知道什么版本的Office 2010 Pro Plus..
总之悲剧一大堆,搞了那么久,为了少一点人经历“苦难”,于是就有了这部教程..

【工具】
1、当然是Office 2010 的ISO 文件啦:
先到这边:http://www.mirrorcreator.com/files/1PPSHO4Q/_NNM-Club.ru__Microsoft.Office.Professional.Plus.2010.with.SP1.Volume.torrent_links 下载torrent file,然后用uTorrent或者BitTorrent 还是qBitTorrent 来下载(当然你可以加一些Tracker来增加一点点速度,看这边:【分享】【Trackers】【BAT】500个目前可用的Tracker列表
注:里面有很多不同版本的Office 2010 Pro Plus Retail x32/x64 的,只要勾选需要下载的就好了,这里以qBitTorrent 为例子(笔者选English 32 Bit):
image

等着下载完呗..

2、虚拟光驱
用来挂载Office 2010 ISO 的,这里推荐 软媒魔方 的 虚拟光驱
这里下载:MediaFire      MEGA
当然你可以用别的。

3、激活神器——Microsoft ToolKit
这里是官方网站:http://forums.mydigitallife.info/threads/28669-Microsoft-Toolkit-Official-KMS-Solution-for-Microsoft-Products
下载地址:官方Torrent链接     MediaFire     MEGA

【安装】
1、先打开 魔方虚拟光驱,然后加载Office 2010 的 ISO
image

2、选择下载回来的ISO文件
image

3、然后打开My Computer,会看到ISO文件已经被加载成光驱了,点击打开
image

4、然后找到Setup.exe,跟着步骤安装
image

5、
2013-08-08 11_57_07-Microsoft Office Professional Plus 2010

【激活】
1、安装Office 2010 之后,打开Microsoft Toolkit,点击Office 的小图标
2013-08-08 11_58_02-Microsoft Toolkit 2.4.7

2、然后点击Activation 的TAB ,再点击EZ-Activator
2013-08-08 11_58_35-Office Toolkit 2.4.7

3、安装成功
2013-08-08 11_59_06-Office Toolkit 2.4.7

注:这个是KMS激活,所以180天要激活一次,可是Microsoft Toolkit 已经帮我们弄了一个东西叫做AutoKMS,所以不用愁180天要激活了!
2013-08-08 12_00_16-Document1 - Microsoft Word

[教程][C#] Dynamic Views Blogger 安装使用SyntaxHighlighter + 其HTML Code Generator

折腾了那么久,发现之前发过的【教程】【VS插件】Visual Studio Copy Code As HTML 又不能用了,于是花了整个下午来研究研究。
刚开始我突然想到了Google Code Prettify (http://code.google.com/p/google-code-prettify/),但是Blogger Dynamic Views(动态视图)咋搞都装不上,过后在StackOverflow看到了一片文章,里面提到了SyntaxHighlighter (http://alexgorbatchev.com/SyntaxHighlighter/),之前试过了,还是不能…
但是我灰常喜欢SyntaxHighlighter的高亮着色,又花了我N小时,终于找到了适合Blogger 动态视图的代码:
首先先到Blogger 管理面板 >  模板 > 点击 修改HTML (以前不能修改,现在能了)
image

然后在<head> 之后的空白部分加入以下代码:
<link href='http://alexgorbatchev.com/pub/sh/2.1.364/styles/shCore.css' rel='stylesheet' type='text/css'/> 
<link href='http://alexgorbatchev.com/pub/sh/2.1.364/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shCore.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCpp.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCSharp.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCss.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushJava.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushJScript.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushPhp.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushPython.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushRuby.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushSql.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushVb.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushXml.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushPerl.js' type='text/javascript'></script>
<script language='javascript'>
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.1.364/scripts/clipboard.swf';
SyntaxHighlighter.all();
</script>



 
当然你可以去除一些没有用到的css

image



然后点击保存模板!



如果你要贴代码,在Blogger 的帖子编辑器哪儿,选择HTML

先把代码HTML Encode 先(这边)

贴以下代码:

<pre class="brush: 这边是语言">
YOUR CODE HERE << 这边放代码
</pre>


语言种类看这边:http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

当然如果你用的是Blogger动态模板的话,你还要加入这个:


<script type="text/javascript">
SyntaxHighlighter.highlight();
</script>




就可以了!

另外,如果你懒惰一直找代码来贴的话,你可以下载我写的C# 程序:

image



*需要.net 2.0 才能运行*



这边是源代码(VS2010 C#):Dropbox   MEGA   Mediafire

这里是exe:Dropbox  MEGA  MediaFire

2013年7月22日星期一

[Windows主题] Windows 7 Style Builder 下载地址 + 一些有用的WSB路径

搞了一整天出来的结果。

Windows 7 Style Builder 下载地址:MediaFire   MEGA
有用的论坛资源:
Windows 7 美化论坛
Visual Style Builder 官方论坛

一些有用的路径

Start Menu - Right Panel & JumpList
[Glowing]
Start Menu > Menus > Aero > PlaceList:ListView
Start Menu - Right Panel
[Text]
{Normal}
Start Menu > Panels > Aero > Top > ProgramsList
{Extended}
Start Menu > Panels > Aero > Top > ProgramsListExtended

Taskbar Preview Panel
[Title]
{Text & Glow}
Taskbar & System Tray > TaskBand > Aero > TaskBandExtendedUI > Horizontal > Thumbnails & Controls > Title

DWM Windows
[Glow] - Change Opacity
Windows and Caption Buttons > Aero > Dwm Window > Frames > Normal > Top

What to add for Glowing properties:
TEXTGLOW:BOOL
GLOWINTENSITY:INT
TEXTGLOWSIZE:INT
GLOWCOLOR:COLOR

2013年7月19日星期五

[VS] 如何修改Visual Studio 启动画面的版权信息

找了很久才找到的
特此在这儿分享。

32位 修改一下注册表:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Registration\UserName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization

如果还是没有更改的话
切换到VS的目录
打开CMD
输入devenv.exe /setup

2013年6月28日星期五

[原创][教程] VMware 内下载+安装Windows 8.1 Preview

Windows 8 正式版发出有好一段时间了(这里有USB内安装试玩Windows 8 正式版、还有激活Windows 8 正式版的方法)。
但是Windows 8 正式版本的发布却遭到了很多负面的评论:比如去除了传统的Start Menu啦、增加了Metro Start Screen 啦等等等等。。。
不到一年后的6月26日,Microsoft 正式推出了Windows 8.1 的 Preview 版本(可以说是Windows Blue,但是肯定不叫Windows 9!所以别混淆了!),开放给大众下载测试:
1、ISO下载,安装时需要序列号
2、Windows Store 直接下载,自动化升级。
但是为了保险起见,我们还是一如往常的使用虚拟机试玩Windows 8.1 Preview(一下简称Windows 8.1 Pre)!

【工具】
1、俗语说,“工欲善其事,必先利其器”,欲玩Win 8.1 Pre,需装虚拟机。(怎么搞起语文来了?),这里笔者选者了VMWare Workstation 作为虚拟机的工具。
VMware Workstation
下载地址:https://my.vmware.com/web/vmware/info/slug/desktop_end_user_computing/vmware_workstation/9_0?rct=j&q=vmware%20workstation%209&source=web&cd=1&ved=0CCkQFjAA&url=http://www.vmware.com/go/downloadworkstation&ei=DqLNUYe7N4uIrgeom4DAAg&usg=AFQjCNEVKbKEcEsfY7NjAaBQZbrtZtXttg&bvm=bv.48572450,d.bmk&cad=rja
(需注册帐号方能下载)

序列号(任选一):
image

2、试玩当然不能少了主角——Windows 8.1 Pre 的ISO 文件!
Microsoft 开放了Windows 8.1 Pre 的 ISO安装文件给大众,所以可以根据自己的喜好来下载试玩特定的Win 8.1 版本!
Windows 8.1 Preview ISO
下载官方页面:http://windows.microsoft.com/en-us/windows-8/preview-iso

序列号:NTTX3-RV7VB-T7X7F-WQYYY-9Y92F

不同语言下载大全:
English 64-bit (x64)
http://iso.esd.microsoft.com/W81RPI/8FBC5B738CFD9D29D6956B5DA9DF2DFD4F6C1D8AF/WindowsBlue-ClientwithApps-64bit-English-X1899605.iso
3.8GB
SHA-1: 0xD8076E029292FBC933792D215793045031255FF6
 
English 32-bit (x86)
http://iso.esd.microsoft.com/W81RPI/8FBC5B738CFD9D29D6956B5DA9DF2DFD4F6C1D8AF/WindowsBlue-ClientwithApps-32bit-English-X1899604.iso
2.8GB
SHA-1: 0x447CCD24EB3DC6CFD9A42E62A5F6418B578E3CBF
 
Chinese (Simplified) 64-bit (x64)
http://iso.esd.microsoft.com/W81RPI/8FBC5B738CFD9D29D6956B5DA9DF2DFD4F6C1D8AF/WindowsBlue-ClientwithApps-64bit-ChineseSimplified-X1899611.iso
3.9 GB
SHA-1: 0xA34B8F71DCE39303F81402E2B44DA17117BB8970  
Chinese (Simplified) 32-bit (x86)
http://iso.esd.microsoft.com/W81RPI/8FBC5B738CFD9D29D6956B5DA9DF2DFD4F6C1D8AF/WindowsBlue-ClientwithApps-32bit-ChineseSimplified-X1899610.iso
2.9 GB
SHA-1: 0xF394D21EB655867E455B2DCAAEC37A4160F6F812
















笔者选择了Windows 8.1 Preview English x86 2.8GB
Windows 8.1 Preview 安装需求
处理器:1GHz 或更高
RAM: 1GB (x86) 或 2GB(x64)
硬盘空间: 16GB(x86) 或 20GB(x64)
显示卡:DirectX9

【安装步骤】
1、打开VMware Workstation
2、点击Create a New Virtual Machine
image
3、点击Custom(advanced)
image

4、点击Next
image

4、点击I will install the operating system later
image

5、Guest Operating System 选择Microsoft Windows,Version 选择Windows 8,点击Next
image
6、为虚拟机取名,点击Next
image

7、笔者电脑双核心,所以选者2个core,也可以选择1个
image

8、Memory调到大概1024MB或以上 (32bit),点击Next
image

9、点击Next
image

10、点击Next
image

11、点击Next
image

12、点击Next
image

13、点击Next
image

14、点击Next
image

15、点击Finish
image

16、回到主页,点击Edit virtual machine settings
image

17、点击CD/DVD(IDE),勾选Use ISO image file,然后点击Browse… 来选择下载回来的Windows 8.1 Preview ISO 文件
image
image

18、点击OK
image

19、返回主页,点击Power on this virtual machine
image
20、你可以点击这个按钮进入全屏模式
image

21、点击Next
image

22、点击Install Now
image

23、Setup Is Starting
image

24、输入Product Key: NTTX3-RV7VB-T7X7F-WQYYY-9Y92F,点击Next
image

25、点击I accept the license terms,点击Next
image

26、选择Custom: Install Windows Only (advanced)
image

27、选择Drive 0,点击Next
image

28、开始安装
image

29、安装完毕之后就是重启
30、跳过重启、重启、再重启,就是设置画面了

【设置】
1、变得更加仔细的Personalize 画面
image

2、点击use express settings,然后就是setup account
image
image

3、填入帐号和密码
image

4、Connecting
image

5、帐号验证
image

6、深度整合SkyDrive
image

7、然后是重启
image

8、
image

9、Installing Apps
image

10、Getting Your Apps Ready
image

11、Getting Your PC Ready
image

12、Almost Ready
image

13、好了!
image

[教程][C#] 关闭显示器的API + 用法

1、Using
using System.Runtime.InteropServices;
2、引用API
[DllImport("user32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
const int MONITOR_OFF = 2;
const int SC_MONITORPOWER = 0xF170;
const int WM_SYSCOMMAND = 0x0112;
3、调用
SendMessage((IntPtr)0xffff, (uint)WM_SYSCOMMAND, (IntPtr)SC_MONITORPOWER, (IntPtr)MONITOR_OFF);


*使用任何情况(包括没有句柄(handle)的程序(console 等等))