Setup Custom Outlook.com Email Account on iPAD

I host my own domain (minzhang.com) email account on outlook.com. While setting up account on my new iPAD Air, the build-in outlook.com option does not recognize my custom domain.

The workaround is to setup the account as an normal IMAP account, using the settings I found here:

For POP protocol, here are the settings:
Incoming mail server: pop3.live.com
Outgoing mail server (SMTP): smtp.live.com
Incoming server (POP3): port 995
Outgoing server (SMTP): port 587

And here are settings for IMAP:
Incoming mail server: imap-mail.outlook.com
Outgoing mail server (SMTP): smtp-mail.outlook.com
Incoming server (POP3): port 993
Outgoing server (SMTP): port 587

 

Update:

The custom Outlook.com account could be setup as a Microsoft Exchange account on iPad, as long as you specify the server address to m.hotmail.com 

FreeNAS上线

家里的备份用离线存储设备是一个跑着NexentaOS的机器,文件系统用了ZFS,两块2TB的硬盘组成了一个raid1。

机器的配置是一台史前Atom N330双核+2GB DDR2内存,实在是有点落伍了。尤其是内存偏小,对ZFS来说是一个限制,也容易导致稳定性方面的问题。加上NexentaOS也有点儿老旧,ZFS驱动又不是内核态的。

WP_001072

在虚拟机上评估了FreeNAS之后,决定把老机器退役了。需要注意的是,迁移之前要做zpool的export,命令是:

# zpool export -f pool_name

新的机器主板用Asrock H77-ITX,加上一块旧的Inte G530 CPU,内存配了8GB DDR3,对于2TB的容量来说应该足够了。由于CPU的限制,只能跑在1066上,有点浪费。等未来内存价格低一点后,可以考虑换成16GB的。

安装过程很简单,烧一个镜像在U盘上,启动后稍作设置(ip地址,import zpool)就可以顺利地跑起来了。

这次升级基本达到了期望的目的:

  • freenas+ZFS -> 提供足够的基本功能
  • 可靠而性能足够的硬件 -> 稳定不折腾

ZFS毕竟是个可靠的家伙,不是么 🙂

OS X Mavericks的节能技术

Mavericks中包含了几点新的节能技术,配合Intel的新CPU,可以达到很不错的电池续航能力。

基本原则

总的来说,Mavericks节能技术的基本原则是:

  1. 无需改动现有程序即可工作
  2. 尽可能让更多的处理器核心处于闲置状态
  3. 电池供电时,仅仅响应最重要的用户请求

App Nap

App Nap把程序置于一个特别的低能耗状态,以限制程序对CPU、网络和磁盘IO的请求。当程序不可见且没有播放音频时,系统就可以自动把程序至于此状态下。

在这个状态之下,系统对程序进行下列的限制以节省能耗:

  1. 定时器限制,降低程序触发定时器的频率。
  2. IO限制,赋予磁盘和网络I/O的最低优先级,可以到达节能和减少对前台程序的干扰。
  3. 优先级限制,降低程序的Unix进程优先级,以减少CPU时间片的分配。

定时器合并

把定时器自由执行改变为让多个定时器一起执行,减少系统定时器执行的次数,让CPU处于闲置状态的时间更长,被唤醒的次数更少。这样对整个系统来说,由于多个程序的定时器会同时执行,而两次执行的间隙会更长,CPU和系统可以更长时间处于节能状态。

引用

本文内容来自:OS X Mavericks Core Technologies Overview

这篇文章面对开发者,概述了Mavericks的技术特点,推荐阅读。

2000w数据的恢复

1. 先执行RESTORE FILELISTONLY FROM DISK = ‘C:\Users\min\Desktop\2000wbak\shifenzheng.bak’, 得到了备份中的数据文件和日志文件的逻辑名称,分别是linshi和linshi_log。

2. 创建一个新的数据库SFZ,记下新数据库的数据文件和日志文件的物理地址。

3. 然后运行下面的命令,把bak文件恢复到新建的数据库:
RESTORE DATABASE SFZ FROM DISK = ‘C:\Users\min\Desktop\2000wbak\shifenzheng.bak’ with replace, move ‘linshi’ to ‘C:\Users\min\AppData\Local\Microsoft\VisualStudio\SSDT\sfz.mdf’, move ‘linshi_log’ to ‘C:\Users\min\AppData\Local\Microsoft\VisualStudio\SSDT\sfz.ldf’

4. 在姓名和身份证上建立索引:
create index ix_ctfid on cdsgus (ctfid)
create index ix_name on cdsgus (name)

Fixing Windows 8.1 Boot by Create EFI System Partition Manually

I had made a mistake on my laptop OS configuration, which turned out wasted me 3 hours to research and fix the issue.

My laptop has a 256GB SSD disk on its SATA slot and has Windows 8 OS on it. I decided to install a separate copy of Windows 8.1 on a new 128GB MSATA disk and retire the 256GB SSD. And for make the migration easier, I installed the Windows 8.1 along with Windows 8 OS, which was a big mistake.

The boot loader for the new OS is still on the old 256GB disk. And it can make the dual boot perfectly, so I did not realized there is no boot loader on my new SSD. Then things broken up after I remove the 256GB disk as planned, as there was no boot loader on the 128GB disk and there was no EFI partition on it. The whole disk was assigned to a single primary partition with Windows 8.1 OS installed on it.

I have tried using Windows 8.1 installtion disk to make a auto-fix, but it failed. I guess the reason was simply because no EFI partition found on disk.

According to this article and this article, what I had missed were two special partitions, the System and MSR partition:

The solution came out for my problem is to shrink my Windows partition, create the two system partitions manually, then install EFI boot loader to the system partition.

Steps I have taken:

1. Boot with setup disk and enter rescue command prompt, run diskpart.exe, select disk then select my windows volume. Issue a shrink command as:

shrink desired=600

run ‘list disk’ again, now I can see I have 600MB free space on the disk.

2. Then create  and format the EFI partition:

create partition efi size=260
format quick fs=fat32 label="System"

create partition msr size = 128

3. Finally follow this post, run:

bootrec /fixboot
bcdboot c:\Windows /s b: /f ALL

to fix boot record.

4. Lastly for those who enabled hyper-v, run:

bcdedit /set {default} hypervisorlaunchtype Auto
bcdedit /set {default} nx OptIn

5. Reboot and my Windows 8.1 comes back.

Looking into my partition layout, the System partition (EFI boot partition) is on the tail of the disk. It looks wired but works.

System Partition  -Disk Management

 

To make further configuration to Recovery Image, see references below:

云编程平台nitrous.io

nitrous.io是一个云编程平台,是可以根据需要即时启动一个虚拟机,让用户可以通过console或者web ide编写程序,并编译执行的网络服务。

nitrous.io的编程用虚拟目前使用完全免费。虚拟机的配置由用户帐户拥有的N2O点数越来决定。N2O点数越多,可用的内存和硬盘就越多。N2O的点数越可以通过完成不同的推广任务来提高,另外介绍他人注册nitrous.io的服务也可以得到更多的N2O。

通过简单的界面截图来看看使用nitrous.io的过程吧。

1. 新建一个Box,可以选择Rails、Node.js、django和Go:

NewBox-Nitrous.IO

2. 指定Box的参数,内存和存储容量是需要消耗N2O的,我有230个点,可以创建一个640MB内存,750MB存储的box,再多就不行了:

N2O-Allocation-Nitrous.IO

3. N2O不够的话,可以去做任务充值,我已经都做掉了:

Earn-N2O-Nitrous.IO

4. 配置好Box后启动很快,几十秒到1分钟就可以进入web ide了。左边是文件浏览器;中间是编辑器;右边是多人协作的窗口,这个是nitrous.io的一个特点,可以让多个用户同时协作编辑同一个文件;下方是terminal窗口,可以执行命令:

Initial-WebIDE-Nitrous.IO

5. 写点go代码进去,保存后,文件就出现在左侧的文件浏览器里面了:

Go-Code-Nitrous.IO

6. 在下方terminal窗口里面敲个命令,看看执行结果:

go-run-Nitrous.IO

7.uname -a看看用的什么系统:

Terminal-Nitrous.IO

除了通过web ide访问nitrous.io的box以外,还可以ssh上去操作,基本上是一个免费的vps的感觉了。编写web程序常用的端口都是开放的,可以随时预览网站效果。

试试看nitrous.io,体验一下在网上快速开个虚拟机,随手码两行代码的感觉,点下面的图标注册,顺便帮我充点N2O吧:

Logo-Nitrous.IO

 

最后再提供几个类似的服务,供比较和参考:

https://www.pythonanywhere.com/

http://koding.com

VMWare Workstation 10 UI Freeze, Conflict with Background Updaters

Symptom

VMWare Workstation 10’s first public version (10.0.0 build-1295980) has a known conflict with some background updater applications.

The symptom of this issue is after starting up VMWare Workstation 10 main UI, the UI freezes after about 10-20 seconds.

Diagnostic

From a VMWare Forum post Workstation 10 crashing, I downloaded a test application ‘conflict_test.exe’ and ran it on my system, it detected the conflict is between VMWare Workstation 10 and the Evernote Updater:

Conflict Test VMWare Station 10

Solution

Kill the Evernote process just worked, no VMWare Workstation 10 UI freeze again.

In that post, several users report the VMWare Workstation 10 had conflicts with their smart phone updater application. VMWare staff mentioned they had aware this issue and it will be covered in next release.