Category Archives: MSDN Blog

[Sample Of May 19th] VSTO ServerDocument class demo

 

Homepage image
RSS Feed

Sample Download : http://code.msdn.microsoft.com/VBVstoServerDocument-824ea223

The code sample demonstrates how to use the ServerDocument class to extract information from a VSTO customized Word document or Excel Workbook; and also how to programmatically add / remove VSTO customizations.
image

You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.

[Sample Of May 19th] VSTO ServerDocument class demo

 

Homepage image
RSS Feed

Sample Download : http://code.msdn.microsoft.com/VBVstoServerDocument-824ea223

The code sample demonstrates how to use the ServerDocument class to extract information from a VSTO customized Word document or Excel Workbook; and also how to programmatically add / remove VSTO customizations.
image

You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.

SP2010: Troubleshooting ServerID Mismatch (Deleting Components)

In a previous post , I described a scenario where removing/re-joining a SharePoint Server that hosts a Search component will lead to an inconsistency in the ServerID being referenced by the applicable Search component(s) and the SharePoint farm Configuration object for the applicable server. If you identify a ServerID mismatch, the recommendation is to remove (or move to another server) any component with a mismatched ServerID, then (optionally) re-add the component(s) to the original server(s)….(read more)

A short video for training when rolling out Windows 8 for teachers

If you are using Windows 8 for teachers’ laptops, then you might want to make a note of this video, from the Windows team. It’s a great way to explain how to use some of the new features of Windows 8, and the way that you can have both existing Windows software as well as the new Windows 8 apps. It’s good for students too, but I’ve often heard from education customers that making change is often more difficult for staff, so if you are planning to roll out Windows 8 for teachers, then this video is a great start to your staff training day.

In addition to the video above, there’s a whole host of other Windows 8 videos on the WindowsVideos channel on YouTube

How to add local group to AD LDS Readers role using PowerShell

Posting this snippet in case someone needs to add a local group to AD LDS readers role, using PowerShell/ADSI.

 

#Get the SID of a local group

$myGroup = New-Object security.principal.ntaccount(“myGroup2″)

$myGroupSid = $myGroup.Translate([security.principal.securityidentifier])

 

#connect to partition

$readersRole = [adsi]“LDAP://mdt:389/CN=Readers,CN=Roles,DC=myPartition”

 

#Add the group as member to Readers

$memberToAdd = “<SID=$myGroupSid>”

$readersRole.member.Add($memberToAdd)

$readersRole.CommitChanges()

 

 

#connect to partition again, to confirm (or can use adsiedit.msc)

$readersRole = [adsi]“LDAP://mdt:389/CN=Readers,CN=Roles,DC=myPartition”

$readersRole.member

 

 

HOSTING – May Readiness Update

No-cost Exam Preps for Windows Server 2012!
Do you know about the 90 Days to MCSA program? It’s a plan of action with a focus on Windows Server and SQL Server that includes free Exam Preps, a clear roadmap, tools, and community support. Make a commitment to yourself and get started today. Includes training for Exams 70-410, 70-411, and 70-412.

Daniel Cook on 8 Laws of Productivity

Daniel Cook has a great PDF on the 8 Laws of Productivity.  The subtitle is “8 Productivity Experiments You Don’t Need to Repeat.”

It’s the synthesis of Dan’s learnings and research over the years on how to create more productive teams.

Right up front, Dan defines productivity as work accomplished, minus work required to fix defects, and minus work required to fix bad design decisions.   He adds that it’s possible for productivity to be negative when workers end up doing more harm than good.  Dan says, “People commonly measure ‘what was accomplished’, but often this is a poor measure of productivity. It is possible to check in code and design decisions that must be later fixed or removed at great cost. If you only measure work accomplished, you could generate great ‘productivity’ numbers but never ship a working product. The real measure of productivity is valued working code in customer hands.”

Here are the 8 Laws of Productivity according to Cook:

  1. Law #1 – Working more than 40 hours a week leads to decreased productivity
  2. Law #2 – There is Always a Cost to Crunch
  3. Law #3 — Repeat experiments on knowledge workers, not factory workers
  4. Law #4 — Teams on overtime feel like they are doing more, but actually accomplish less
  5. Law #5 — Productivity is maximized in small teams of 4-8 people
  6. Law #6 — Seat People on the Same Team Together in a Closed Team Room
  7. Law #7 — Cross-Functional Teams outperform siloed teams
  8. Law #8 — Scheduling at 80% produces better products

 

Law #1 – Working more than 40 hours a week leads to decreased productivity

What happens if you try to improve productivity by working longer, either through more hours in a week, or more hours in a day?

 

 

image

Cook summarizes the results:
<40 hours and people aren’t working enough
> 60 hour work week gives a small productivity boost
The boost lasts 3 to 4 weeks and then turns negative

Cook tells us that according to Ford, and 12 years of experimentation, 40 hours was the most effective.  

Interestingly, an early XP practice was 40 Hour Week, before it became Sustainable Pace.  The main idea is that "productivity does not increase with hours worked."

A key point here is that "After a certain tipping point, teams tend to be more destructive than productive." (see InfoQ on Sustainable Pace)

I’ve experience the benefits of a 40 hour work week and wrote about it in 40 Hour Work Week at Microsoft.

An interesting data point is that 6 of the top 10 competitive economies prohibit employees from working over 48 hours/week.  (See MBA on Bring Back the 40 Hour Work Week.)

 

Law #2 – There is Always a Cost to Crunch

What happens if we work harder in bursts?  Can we take advantage of the burst that comes from working overtime?  What happens if we crunch for a week and then ‘only’ 40 hours for another week?  Are there other patterns of scheduling work that might be more efficient?

 

image

Cook summarizes the results:

Anything over 40 hours results in a recovery period, no matter how you split it up.
35 to 40 hour weeks can be divided in a variety of ways, such as four 10-hour days on and three days off.
These ‘compressed work weeks’ can reduce absenteeism and, in some cases, increase productivity 10 to 70%

Law #3 — Repeat experiments on knowledge workers, not factory workers

Do the same rules apply to creativity and problem-solving as manual labor?

Cook summarizes the results:
Studies show that creativity and problem solving decreases faster with fatigue than manual labor.
Grinding out problems by working longer on average result in inferior solutions.
Lack of sleep is particularly damaging.

Law #4 — Teams on overtime feel like they are doing more, but actually accomplish less

If many workers self-report that they are the exception to the rule and can work longer with no ill effects, and overtime workers report they are getting more done, is this true?

Cook summarizes the results of measurements where Team A works overtime and Team B does not:
Team A feels like they are doing much more than Team B.
Yet, Team B produces the better product.

Law #5 — Productivity is maximized in small teams of 4-8 people

Does productivity change for various team sizes and which size team produces the best product?

Cook summarizes the results:
Productivity for small groups is shown to be 30-50% higher than groups over 10
Cost of communication increases dramatically for groups larger than 10
Smaller groups don’t have enough breadth to solve a wide array of problems well

Interestingly, the Navy Seal create super teams with teams of 4.

Law #6 — Seat People on the Same Team Together in a Closed Team Room

What is the most productive physical work environment?  Are cubes, individual offices or team rooms most effective?  Every individual has an opinion, but what is best for the team?

Cook summarizes the results:
Studies show 100% increase in productivity
Being nearby means faster communication and problem-solving
Few external interruptions to the team (not the individual) means higher productivity

Law #7 — Cross-Functional Teams outperform siloed teams

How should workers of different disciplines be organized?  Should teams be composed of a single discipline? For example, all programmers or all artists?  Or should teams be mixed?

Cook summarizes the results:
Cross-functional teams produced more effective solutions in the same time
Cross-functional teams have more likelihood of generating breakthrough solutions
There is some negotiation of norms of front, but this is a short-term loss

Law #8 — Scheduling at 80% produces better products

What percentage of team capacity should be officially scheduled?  110% to promote people to ‘stretch’?  100% because that’s what they can do? 80% because slacking is good?

Cook summarizes the results:
Scheduling people at 100% doesn’t give space to think of creative solutions
Not lost time: Passionate workers keep thinking
The 20% goes into new idea generation and process improvements
Producing 20 great features is usually far more profitable than producing 100 competent features

Dan included some of his research sources:

Crunch in the Game Industry
IGDA – Articles – Why Crunch Mode Doesn’t Work: 6 Lessons – http://www.igda.org/articles/erobinson_crunch.php
InfoQ – Why Crunch Mode Doesn’t Work, by Ben Hughes – http://www.infoq.com/news/2008/01/crunch-mode

Best Team Size
Is Your Team Too Big? Too Small? What’s the Right Number? – http://knowledge.wharton.upenn.edu/articles.cfm?articleid=1501
Team Performance and Team Size – http://www.teambuildingportal.com/articles/systems-approaches/teamperformance-teamsize.php

Sickness and Overtime Correlation
Relationship between self-reported low productivity and overtime working – http://cat.inist.fr/?aModele=afficheN&cpsidt=15461524

Prioritization
First Things First (book) – http:///en.wikipedia.org/wiki/First_Things_First_(book)

4 Day Work Week
Alternative Work Schedules and Work–Family Balance: A Research Note – http://rop.sagepub.com/cgi/reprint/28/2/166

Team Spaces
"Rapid Software Development Through Team Collocation" IEEE Transactions on Software Engineering, Volume 28, No. 7, July 2002

Additional Resources

INFOQ: Does Sustainable Pace Mean a 40 Hour Work Week?

MBA on Bring Back the 40 Hour Work Week (Info Graphic)

40 Hour Week (C2 Wiki)

You Might Also Like

10 Big Ideas from Getting Results the Agile Way

40 Hour Work Week at Microsoft

How I Use Agile Results

Enable Developer Dashboard SharePoint 2010

Enable Developer Dashboard SharePoint 2010

 

Any Activity Can Be Turned into a Game

Any activity can be turned into a game, if it meets the right criteria.  Wise words from Dan Cook:

     “If an activity can be learned…

     If the player’s performance can be measured…

     If the player can be rewarded or punished in a timely fashion…

     Then any activity that meets these criteria can be turned into a game.”

Gamification is hot.  I called it out in my Trends for 2013 roundup.   When all things are equal, fun is a differentiating factor.

You Might Also Like

Microsoft Secret Stuff

The Gamification of Education

Wearable Computing

???? ??? ?????? ?? ?? ?????? 8

 

?????? ????? ? ???? ???? ? ??????

 

?? ?? ????? ????? ??????? ? ?? ?????

 

?????? 8 ????? ?????? ?????? ? ??? ?????? ??? ????? ? ?????

 

?? ??? ???????? ??? ???? ????? ????? ?????? ??????? 8

 

??? ????? ????? ??? ????? ???? ???? ????? ??? ??????? ? ?????? “????? ?????? “2012 ? ?????? “???? ??? ????? ?????? “2012

 

?????? ????? ??? ??????? ?? ???

 

1)

 

2)

 

3)
??? ??? ??????? ???? ???????? ???????

4) 

?? ?????? ????? ???????

5)

??? ?????? ??? ?? ???? ?????? ??? ???????? .???? ??? ?????? ?? ???? ???? ??????? ??? ???????

 

??? ?? ???? ?????? ???????? ???????? ????? ???? ?????? ????????

1)

 

??? ?? ???? ???????

2)

3)

 

??????? ??? ??????. ???? ?? ????? ??? ??????? ?????? ?????????? ??? ?? ???? ?? ??? ?? ???????? ?? ??????? ???????

4)

 

??? ????? ????????? ???? ?? ????? ??????? ???????? ???? ????? ????? ????? ???????. ?? ??? ??? ??????? ?? ????? ??????? ? ?????? ?????? ? ????? ???????. ????? ?????? ???? ???

5)

???? ??? ?????? ?????? ?????? ? ???? ????

 

??? ?? ?????? ????????? ? ?????? ?? ????? ??? ??????? ????? ???????? ? ???? ?? ???? ????. ??? ???? ???????? ???? ??? ?? 5

 

?? ??????? ????? ?? ??? ?????? ? ????? ???? ????? ?????

 

 

??? ?????? ?? ?? ???? ???”????? ?????” ? ???? ??????? ???? ??? ??? ?? ???? ?? ? ?? ????? ????????

 

?????? ?????? ??? ??? ??? ?????? ??? ???? ?????? ??????? ???? ????? ???????? ???? ??? ????? ???? ?? ??? ??????? ?????? ???? ???? ?? ?????? ?????? ?? ?????? ????. ??? ???? ?? ???? ?????? 8 ???????? ? ?? ????? ??? ???????? ???????? ???????? ????? ? ??????? ???? ??? ??????? ?? ????? ????

6)

?? ??? ?????? ??? ?????? ??????? ?????? ????? ????? ???????? ???? ???? ????. ?? ???? ????? ?? ????? ?? ?????? ?? ??????? ?????? ? ?? ?? ???? ???????

7)

?? ??? ?????? ????? ?????? ????????

8)

9)

????? ?? ?????? ????. ??? ???? ???????? ???? ??? “?? 6″. ??? ????? ??? “?? 6″ ?????? ?????? ????? ??? ??? ?????

?????? ?? ???? ?????? ???????? ??? ???? ???????? ???? ??? ?? “??????” ? “0″ ?? ????? ????. ???? ?? ?? ?????? ?? ??????? ??????? ??? ?? ???? ?? ?????? ???????. ?????? ?????? ????? ????

10)

????? ???? ?????? ????? ????????. ?? ??????? ????????? ??????? ??? ???? ????? ????? ?????? ?????? 8

??? ?????? ?? ??? ???????? ?????? ??? ????? ?? ??????