Tuesday, January 13, 2015

Configure ELMAH in Plesk

The issues I encountered are

1. Can't access using /elmah.axd, 403 forbidden

Add

 
    ....
   
 

  Thanks to this post

   http://code.google.com/p/elmah/wiki/SecuringErrorLogPages

2. Elmah doesn't log in Plesk

Check permission Elmah logging folder, it is ~/Logs in my case. Make sure IIS user and IIS WP user has write permission




Saturday, September 7, 2013

Office Upload Center - Document Cache Error

Skydrive pro 2013 can't sync with Office 365.  Office upload center shows "Document cache error", click "delete cache" in setting cause upload center to crush. Finally resolve the issue by following steps.

1.  In task manager, kill MSOSYNC.EXE.

2.  Run regedit,  in HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Internet, delete FileStoreCriticalError entry.   The version number 15.0 is for office 2013, 14.0 is Office 2010.

3. In c:\users\[username]\AppData/local\Microsoft\Office\15.0,  delete OfficeFileCache.

4.  In c:\users\[username]\AppData/local\Microsoft\Office\SPW, delete all files.

More details, please refer to http://www.addictivetips.com/windows-tips/office-2010-fix-office-document-cache-error/

Monday, July 9, 2012

A Very Short History of Data Science

A Very Short History of Data Science

  Here is a brief of history of data science. In this post, the author lists the main paper, books and events in different stage of the development of data statistic and big data

http://whatsthebigdata.com/2012/04/26/a-very-short-history-of-data-science/



Wednesday, September 7, 2011

Most influential computer books

Stackflow has a 3 year old post for voting the most important IT books. The vote can be found here

The top 10 books are:



I've read the Refactoring and Design Pattern but not the rest of them. They are really good.  Hope to have to to go through them when I'm free.

Tuesday, September 6, 2011

Resizing partition for HP laptop

Last Sunday, I bought a new HP pavilion dv6 6024TX for my wife. She was quite happy with the new machine. The only flaw is that the whole 750G HDD has only one drive C. (There are 4 partitions but rest of them are for recovery purpose). So I take the responsibility to reorganize the partitions.

I did that before by reinstall the OS. But this time I decided to resize the existing partition without losing exist data and create a new partition on freed space.

I started to try Partition Magic of Symantec since I have used it long time before. Unfortunately, the product has been discontinued by its owner as described in this post.

I have to find another tool. After searching around on net, I found GParted. The tool is open source and powerful. It can be downloaded here.

In order to use GParted, system need to be boot under GParted itself. So a bootable USB is needed. I took the follow steps to setup a bootable USB

USB setup with Windows
  • Download the GParted Live zip file.
  • If you already have a partition of at least 200 MB in size on your USB flash drive formatted with a FAT file system then skip to the next step (3).
    Otherwise create at least a 200 MB partition on your USB flash drive and format it with a FAT16 or FAT32 file system.
  • Extract all the contents of the zip file to FAT16/FAT32 partition on your USB flash drive. Keep the directory architecture, for example, file "COPYING" should be in the USB flash drive's top directory (e.g. G:\COPYING).
  • Browse to your USB flash drive and as an administrator, click the makeboot.bat in the dir utils\win32\. WARNING! Makeboot.bat must be run from your USB flash drive.
  • Follow the on-screen instructions.
    (PS: The above description is modified from: http://www.pendrivelinux.com/2007/01/02/all-in-one-usb-dsl. Thanks to PDLA from http://pendrivelinux.com)
There are also other ways to create bootable USB. Check out this link to find more

After setup the USB, reboot system from USB.  In order to boot from USB, I need to enter BIOS(press F10 to enter BIOS for HP laptop) and change boot order. 

The system will start Debian Linux and eventually enter GParted. It is a X window program looks like this.


Then I can do tasks like resize a partition, create a new partition etc. The whole information about how to use can be found in Help Manual,

It's not end yet. As I tried to create a new partition on freed space I get this error:

You can not have more than 4 primary partitions

This is because there are already 4 there, one is driver C and the other 3 are HP_TOOLS, RECOVERY and SYSTEM. Windows has the limitation that a machine cannot have more than four primary partitions. 

So I have to delete one of them. I backup up the Recovery through HP tool Recovery Manager to 4 DVD. It was pretty straightforward and the instructions can be found here on HP support site.

After all this, I created a new partition and named it D drive.