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.

Reference:

http://www.cnbc.com/2016/11/29/7-habits-of-highly-successful-people-from-a-man-who-spent-5-years-studying-them.html

SQL Server Management Studio Cannot Import Azure Database Backup/Export

Problem:

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’

Solution:

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.

http://cyber-defense.sans.org/blog/2011/10/25/windows-firewall-script-block-addresses-network-ranges

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

Problem:

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

I gets a HTTP 404 error. 

The Requested URL: /CoM1

Cause:

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

Fix:

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

   1: <system.web>

   2:     ...

   3:   

   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>

 

Reference:

http://haacked.com/archive/2010/04/29/allowing-reserved-filenames-in-URLs.aspx/

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.

http://support.kaspersky.com/us/9080#block1

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.