7 Habits of Rich People

#1 Read

  • 88% of rich people reads 30+ mins for education / self help.

#2 Exercise

  • 76% of rich people exercise 30+ mins everyday.

#3 Build Positive Relationship

  • They volunteer, which is a great way to meet other positive, motivated individuals.
  • They limit their exposure to negative people.

#4 Goal Settings

  • They make plans and pursue them deliberately.

#5 Sleeping Well

  • 89% of rich people sleep 7 or 8+ hours each night.

#6 Developing Multiple Incomes

  • 65% of rich people have at least 3 streams of income to weather economic downturns.
  • Examples include side-business, REIT, real estate.

#7 Avoid Wasting Time

  • Be aware of exactly how to invest your time.
  • Time is as important as money if not more.
  • Be careful about time spending on apps / videos / browsing social sites.



SQL Server Management Studio Cannot Import Azure Database Backup/Export


I got the following error when I tried to import a Data-Tier Application in SQL Server Management Studio 2016.

The internal target platform type SqlAzureV12DatabaseSchemaProvider does not support schema file version ‘3.5’


I downloaded and installed the latest version of SQL Server Management Studio, version 13.0.16000.28.  It can now import the Azure Database Backup/Export.

Windows Firewall–Block Foreign IP Addresses

If you admin any Windows Server and use tcpview utility, you will see lots of connection attempts to your server’s common connection ports (e.g. Remote Desktop port 3389).

It is a good idea to block connection attempts from foreign countries if you don’t expect to connect from abroad.


ASP.NET MVC http://xxxx.com/CoM1 HTTP 404


http://xxxx.com/CoM1 does not route properly. 

I gets a HTTP 404 error. 

The Requested URL: /CoM1


It turns out “COM1” is reserved by default.  The list of reserved URL include: COM1-9, LPT1-9, AUX, PRT, NUL, CON.


Add “relaxedUrlToFileSystemMapping” attribute to the web.config httpRuntime.

   1: <system.web>

   2:     ...


   4:   <!-- 10/4/2016 HW: relax the Url to FileSystem Mapping so we can use http://xxxx.com/CoM1 .  Otherwise, it treats COM1 as the special COM port 1 -->

   5:   <httpRuntime targetFramework="4.5.1" relaxedUrlToFileSystemMapping="true" />

   6: </system.web>




The Ultimate Headline Writing Strategy

1. Oops! [# Topic] Mistakes & Hоw Tо Avoid Them.

Example: Oops! 7 Home Buyer Mistakes & Hоw Tо Avoid Them.

2. [#] оf [People] Reveal Whаt Rеаllу [Does Something]

Example: 11 Top Agents Reveal Whаt Rеаllу Makes Thеir Houses Sell.

3. [#] Tricks tо [Do Something] & [Do Sоmеthing Else] Faster

Example: 9 Tricks To Sell and Close Faster!

4. Hоw Tо [Do Sоmеthing Cool]

Example: Hоw Tо Lock in Your Buyer..

5. Thе Truth Abоut [Something]

Example: Thе Truth Abоut Loyalty of Agents.

6. [#] Bеѕt [Tricks,Techniques,Tips] tо fuel (or boost) уоur [Something]

Example: 8 Bеѕt Tips tо Fuel Yоur House Pipeline.

7. [Do Something] Thiѕ Week [While Dоing Sоmеthing Else]

Example: Gеt Mоrе Houses To Sell While Exercising.

8. Thе Ultimate [Something] Plan (or Guide)

Example: Thе Ultimate Guide For Getting Clicks

9. [#] Reasons Yоur [Something] Iѕ Nоt [Doing Whаt It’s Suppose Tо Do]

Example: 7 Reasons Yоur House Is Not Your Dream House.

10. [Topic] Mistakes Evеn Smart People Make

Example: Home Buying Mistakes Evеn Smart CEO Make

11. [Something Complicated] Made Simple

Example: Financial Independence Made Simple

Kaspersky Blocks Network Printing

When I tried to print to a network printer, the anti-virus firewall software would block it automatically.  The printer queue will shows the document failed to print.

To test, I temporarily disabled Kaspersky and I could print fine.

It turned out the cause had to do with my network being “public network”.  Once I change it to “local network”, then I could print fine even with Kaspersky running.


Entity Framework Code First “Unable to generate an explicit migration because the following explicit migrations are pending”

I ran into this error “Unable to generate an explicit migration because the following explicit migrations are pending”.

Common causes include:

  1. You really have some pending migrations.  You can do “update-database –verbose” to apply the pending migrations.
  2. Your solution have multiple projects (e.g. WebAppProject, DataModelProject) and the wrong project is set as the start up project.  So just go to Visual Studio and select the right project and then set it as a startup project.
  3. You changed the ContextKey value in the Migrations\Configuration.cs.  You can always check the [dbo].[__MigrationHistory] entries to see if the ContextKeys match.  If Configuration.cs does not have a ContextKey, that should be fine.