Azure MFA status

Enabled: The user has been enrolled in MFA but has not completed the registration process. They will be prompted to complete the registration process the next time they sign in.

Enforced: The user has been enrolled and has completed the MFA registration process. Users are automatically switched from enabled to enforced when they register for Azure AD MFA.

Disabled: This is the default state for a new user that has not been enrolled in MFA.

Markdown Cheatsheet

# H1
## H2
### H3
#### H4
##### H5
###### H6
*italics*
**bold**
~~Scratch this.~~
> e.g. The *quick* brown fox, jumped **over** the lazy [dog](https://en.wikipedia.org/wiki/Dog).
1. First ordered list item
2. Another item
* First unordered list item
* Another one
Inline code has back-ticks around it.
“`javascript
var s = “JavaScript syntax highlighting”;
alert(s);
“`
“`
var s = new ClassObject();
alert(s);
“`
Tables – Colons can be used to align columns. note center align and right align
| Tables | Are | Cool |
| ————- |:————-:| —–:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
==Highlight==
The quick brown fox[^1] jumped over the lazy dog[^2].
[^1]: Foxes are red
[^2]: Dogs are usually not red
`back-tick is under tilda`

Sql Query takes too long in stored proc

Found this issue when a stored procedure was taking it too long to execute and the same query inside the proc took fraction of a second. Never seen this before did some searching and found a simple fix. Add option (recompile) at the end of the query and voila problem resolved.

ROWLOCK, XLOCK, HOLDLOCK

Use the combination of three for an exclusive rowlock that is held until the end of the transaction

Perfmon how to identify w3wp#n instance

There has been a few tricks. One of them is to update the registry setting. Add the following key using your registry editor.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance]
“ProcessNameFormat”=dword:00000002

Other small trick is to use a performance counter. There is a counter called \Process\ID Process. That will identify the process id of the “w3wp#N”instance you’re looking at.

You can use on run: c:\Windows\system32\inetsrv\appcmd list wp to get the list of w3wp processes and their relevant process ids.

Hope it helps

 

An ASP.NET 5 Overview Video

All thanks to http://odetocode.com/

This is a very nice 40 minute overview video for ASP.Net 5

Happy Viewing

HabitRPG

Find this new app on google play. A great todo, daily tracker.

here is the app link on google play. From the author of this app. HabitRPG is a habit-building program which treats your life like a Role Playing Game. Level up as you succeed, lose HP as you fail, earn money to buy weapons and armor, compete with your friends.

I am loving it so far. Do try on your smart phones

 

 

Var{i-able;}

Cross post from IRefactor  – http://www.irefactor.net/2009/05/vari-able.html

Here is a scoop; The good software engineer is lazy!
You don’t believe me? Then ask yourself this: If a good software engineer was not lazy why would he:

  • Automate processes?
  • Reuse a function instead of duplicating its code?
  • Explicitly name a function for its behavior instead of naming a function F1 and providing a non descriptive (and possibly long) documentation?

Yet, here is another scoop; The bad software engineer is lazy too!
While this statement clearly isn’t a shock to you, it immediately pop-ups the question:

What is the difference?

The difference is that a good software engineer is lazy in a constructive way (which allows to build reusable software and automated processes) while a bad software engineer is lazy in a destructive way (which destroys any chance for a reusable software and dooms you for long hours of struggling to understand and fix the bad code).

And here is a short example:
The var keyword allows implicitly typed variable declaration.
To tell the truth, it doesn’t allow to be a bad lazy software engineer! 
Why bad? Take a look at the code below:

var database = DatabaseFactory.CreateDatabase();
What is the meaning (meaning = type) of the database object in this context? Do I really need to guess that? Does somebody expect me to go to its definition to find out?

//…
foreach(var observingStore in wareHouse.Stores)
{
//…
}
//…
What is the meaning of the observingStore object in this context? Was it named observingStore due to its implementation of the Observer pattern (which implements IObserver), or is it just an object name of a Store, ObserverStore or even ArgicultureStore class type?

Remember, you want to be lazy in a constructive way; You want to read those lines of code without wondering. You want to immediately grasp the meaning (types) of the objects you are dealing with, without switching the context and jumping to a different location just to refresh your memory.

The var keyword was introduced for one and one purpose only; To allow usage of anonymous types. Therefore, this is the only place you should use it! Unless you are a bad lazy software engineer (which clearly is not the case 🙂 ) you will follow the rule!

7 Things Your Boss Doesn’t Understand About Software Development

original article here

  1. Technical debt slows down a project more than anything else
  2. Estimates are mostly bullshit
  3. It can be done right or fast
  4. Some developers can actually produce less than 0 code
  5. Better equipment is one of the cheapest productivity investments you can make
  6. New technologies are usually not as risky as you think
  7. Business analysts and project managers don’t do shit

Leave a comment to let me know what you think programmers?

Happy coding

CSS Jokes

Hi All,

I came across this at work today. Hilarious collection of css puns and jokes. All credits to the collector and inventors.

CSS Puns

Happy browsing.