tag:blogger.com,1999:blog-78341248436229188192024-03-13T06:35:37.427-07:00Rama Charan's BlogAbout technology and more..Unknownnoreply@blogger.comBlogger97125tag:blogger.com,1999:blog-7834124843622918819.post-37450371217438915652021-03-04T22:17:00.007-08:002021-03-04T22:17:49.151-08:00Devops links<p> </p><h1 class="fs df ft av cu fu fv fw fx fy fz ga gb gc gd ge gf gg gh gi gj gk gl gm gn go gp" id="4779" style="background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.011em; line-height: 56px; margin: 0.6em 0px -0.27em;"><a href="https://ychetankumarsarma.medium.com/build-versioning-in-azure-devops-pipelines-94b5a79f80a0"><span style="font-size: small;">Build Versioning in Azure DevOps Pipelines </span></a></h1><p><br /></p><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-69482154594982812662020-11-07T18:23:00.002-08:002020-11-07T18:27:08.537-08:00Sql Query titbits<p><br /></p><h2 style="text-align: left;">Generate Dates and hour between Date Range</h2><div><br /></div><div><div> DECLARE </div><div> @start DateTime = getdate() -1, </div><div> @end DateTime = getdate();</div><div><br /></div><div>;</div><div>WITH Dates_CTE</div><div> AS (SELECT @start AS Dates</div><div> UNION ALL</div><div> SELECT Dateadd(hh, 1, Dates)</div><div> FROM Dates_CTE</div><div> WHERE Dates < @end)</div><div>SELECT DAY(dates),DATEPART(hour,Dates)</div><div>FROM Dates_CTE</div><div>OPTION (MAXRECURSION 0) </div></div><div><br /></div><div><br /></div><div><br /></div><div>Got better queries? .. Add in comment .. Thanks</div><div><br /></div><div><br /></div><div><br /></div><h2 style="text-align: left;"><br /></h2>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-87445316804273447442020-07-08T19:12:00.001-07:002020-07-08T19:12:26.570-07:00ef core tips <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<b> Debug code-first Entity Framework migration codes</b><br />
<pre class="default prettyprint prettyprinted" style="border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> Place this piece of code right above the migration you want to debug:</span></code></pre>
<pre class="default prettyprint prettyprinted" style="border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">if</span><span class="pln" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(!</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">System</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Diagnostics</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Debugger</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">IsAttached</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">System</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Diagnostics</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Debugger</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; box-sizing: inherit; color: #2b91af; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Launch</span><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">();</span></code></pre>
<pre class="default prettyprint prettyprinted" style="border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pun" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">More details / Ref : https://stackoverflow.com/a/52700520/193061</span></code></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-23628480937306659752020-07-02T19:40:00.001-07:002020-07-02T19:40:19.701-07:00Powershell TitBits<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
Replace all file names in a folder<br />
<br />
<blockquote class="tr_bq">
Get-ChildItem -Filter “*ModelMap*” -Recurse | Rename-Item -NewName {$_.name -replace ‘ModelMap’ ,’ModelMapping’ }</blockquote>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-864767380743077162020-06-04T22:00:00.005-07:002020-06-04T22:00:52.566-07:00Java To C# mapping<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
<br />
<b><u> Java </u><span style="white-space: pre;"> </span> <u> C#</u></b><br />
<br />
Map<span style="white-space: pre;"> </span> Dictionary<br />
Set<span style="white-space: pre;"> </span> HashSet<br />
Pair <span style="white-space: pre;"> </span> KeyValuePair <br />
.map .Select <br />
.collect<span style="white-space: pre;"> </span> .ToList()<br />
.stream .AsEnumerable <br />
LinkedHashSet <Need custom impl ><br />
flatMap() SelectMany<br />
format()<span style="white-space: pre;"> </span> String.format()<br />
zip(<span style="white-space: pre;"> </span> .Zip(<br />
joining()<span style="white-space: pre;"> </span> String.Join(<br />
InstStream(1,100) Enumerable.Range(1, 100)<br />
Function<span style="white-space: pre;"> </span> Func <br />
.apply( .Invoke(<br />
.isEmpty()<span style="white-space: pre;"> </span> .Any()<span style="white-space: pre;"> </span><br />
.size()<span style="white-space: pre;"> </span> .Count<br />
.filter( .Where(<br />
BiFunction<span style="white-space: pre;"> </span> Func<span style="white-space: pre;"> </span><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-239778996229545592020-01-06T18:28:00.001-08:002020-01-15T21:48:41.055-08:00Addins for Software tools<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
SQL management addins<br />
<br />
<br />
<br />
VS Code Addins<br />
<br />
<ul style="text-align: left;">
<li>Javascript/ Typescript </li>
<ul>
<li>Prettier </li>
</ul>
<li>using powershell</li>
<ul>
<li><a href="https://4sysops.com/archives/make-visual-studio-code-look-and-behave-like-powershell-ise/">https://4sysops.com/archives/make-visual-studio-code-look-and-behave-like-powershell-ise/</a> </li>
</ul>
<li>d</li>
<li><br /></li>
<li><br /></li>
</ul>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-68948736184099827462020-01-03T01:04:00.002-08:002020-01-03T01:04:40.785-08:00RxJs Excellent posts <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
RxJs Excellent posts<br />
<br />
RxJS Operators for Dummies: forkJoin, zip, combineLatest, withLatestFrom<br />
<a href="https://scotch.io/tutorials/rxjs-operators-for-dummies-forkjoin-zip-combinelatest-withlatestfrom">https://scotch.io/tutorials/rxjs-operators-for-dummies-forkjoin-zip-combinelatest-withlatestfrom</a>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-63046335374533549092017-08-09T23:33:00.004-07:002017-08-09T23:33:47.412-07:00using Linq methods with caution - E.g FirstorDefault()<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Don't use FirstorDefault() unless you are sure its valid/ verified in the business scenario. else you are going to introduce bugs in the code.<br />
<br />
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-59448057818242655512017-04-15T06:39:00.001-07:002017-09-01T07:12:32.497-07:00Git tips<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<a href="https://help.github.com/articles/set-up-git/">Set up Git</a><br />
<br />
<a class="question-hyperlink" href="http://stackoverflow.com/questions/5037480/removing-non-repository-files-with-git" style="border: 0px; color: #242729; cursor: pointer; font-family: arial, "helvetica neue", helvetica, sans-serif; line-height: 1.35; margin: 0px 0px 0.5em; padding: 0px;"><span style="font-size: x-small;">Removing non-repository files with git?</span></a><br />
<div style="text-align: left;">
<br />
<a href="https://help.github.com/articles/syncing-a-fork/" target="_blank">Keep your fork synced</a></div>
<div style="text-align: left;">
<br />
--------------------------------------------------------------------------------------------------------------<br />
<h1 itemprop="name" style="background-color: white; border: 0px; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 22px; font-stretch: inherit; font-variant-numeric: inherit; font-weight: inherit; line-height: 1.3; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline;">
<a class="question-hyperlink" href="https://stackoverflow.com/questions/52704/how-do-i-discard-unstaged-changes-in-git" style="border: 0px; color: #242729; cursor: pointer; font-family: inherit; font-size: 24px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.35; margin: 0px 0px 0.5em; padding: 0px; text-decoration-line: none; vertical-align: baseline;">How do I discard unstaged changes in Git?</a></h1>
<div>
Ans: </div>
<div>
<span style="background-color: white; color: #242729; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 15px;">a)For a specific file use:</span></div>
<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">git checkout path/to/file/to/revert
</code></pre>
<div style="background-color: white; border: 0px; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
b)For all unstaged files use:</div>
<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">git checkout -- .
</code></pre>
<div style="background-color: white; border: 0px; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
Make sure to include the period at the end.</div>
c)To check out specific files<br />
<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">git checkout -- cats.html index.html
</code></pre>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
git branch -a -- lists all branches<br />
git push origin :branchnamehere -- to delete the remote branch(note semicolin before branchname)<br />
<br />
git remote show origin -- checks for stale branches tracking origin<br />
git remote prune origin -- to clean up deleted remote branches<br />
<br />
git tag -- list all tags<br />
git tag -a v0.1.2.3 -m "versioncomments" -- add a new tag<br />
git push --tags -- to push new tags<br />
<br />
<br />
---------------------------------------------------------------------------------------------------------------------<br />
<div>
git fetch -- pulls down the history but does not merge<br />
<span style="background-color: white; color: #222222; font-family: source-sans-pro, sans-serif; font-size: x-small;"><br /></span>
<span style="background-color: white; color: #222222; font-family: source-sans-pro, sans-serif; font-size: x-small;">rebase vs Merge</span><br />
<span style="background-color: white; color: #222222; font-family: source-sans-pro, sans-serif; font-size: x-small;">Rule of thumb:</span><br />
<span style="background-color: white; color: #222222; font-family: source-sans-pro, sans-serif; font-size: x-small;">1. When pulling changes from origin/develop onto your local develop
use rebase.</span><br />
<span style="background-color: white; color: #222222; font-family: source-sans-pro, sans-serif; font-size: x-small;"> git pull --rebase</span><br />
<span style="background-color: white; color: #222222; font-family: source-sans-pro, sans-serif; font-size: x-small;"><br /></span>
<span style="background-color: white; color: #222222; font-family: source-sans-pro, sans-serif; font-size: x-small;">2. When finishing a feature branch merge the changes back to
develop.</span></div>
<div>
<h3 id="rule-of-thumb" style="background-color: white; box-sizing: border-box; color: #222222; font-family: source-sans-pro, sans-serif; line-height: 1.71429; margin-bottom: 1.5rem; text-rendering: optimizeLegibility;">
<div class="MsoNormal">
<o:p></o:p></div>
</h3>
</div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
---------------------------------------------------------------------------------------------------------------------</div>
</div>
<div>
<br /></div>
<br /></div>
<div>
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-45554885676020548582017-04-15T06:25:00.000-07:002017-04-15T06:25:39.009-07:00Getting up to speed with StructureMap<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
<br />
<br />
<h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #333333; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 22px; font-stretch: normal; font-weight: normal; line-height: normal; margin: 0.75em 0px 0px; position: relative;">
<a href="http://mscodingblog.blogspot.com.au/2015/11/making-setup-phase-of-unit-testing.html" target="_blank">Making the Setup phase of Unit testing easier with StructureMap and FakeItEasy</a></h3>
<div>
<br /></div>
<div>
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-50561755593398415632017-04-15T01:47:00.002-07:002017-04-15T01:59:17.553-07:00Developer Basics<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
https://jeremydmiller.com/2014/11/07/strong_typed_configuration/<br />
<br />
<br />
<br />
--------------------------------------------------------------------------------------<br />
<br />
<div style="background: rgb(252, 252, 252); border: 0px; color: #444444; font-family: Georgia, "Bitstream Charter", serif; font-size: 16px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
TDD rules : - </div>
<ol style="background: rgb(252, 252, 252); border: 0px; color: #444444; font-family: Georgia, "Bitstream Charter", serif; font-size: 16px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 1.5em; padding: 0px; vertical-align: baseline;">
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><a href="http://codebetter.com/blogs/jeremy.miller/archive/2005/10/20/133437.aspx" style="background: transparent; border: 0px; color: #2e9bd2; margin: 0px; padding: 0px; vertical-align: baseline;">Isolate the Ugly Stuff</a></li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Push, Don’t Pull (this post)</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Test small before testing big</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Avoid a long tail</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Favor composition over inheritance</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Go declarative whenever possible</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Don’t treat testing code like a second class citizen</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Isolate your unit tests, or suffer the consequences!</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">The unit tests will break someday</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Unit tests shall be easy to setup</li>
</ol>
<span style="background-color: #fcfcfc; color: #444444; font-family: "georgia" , "bitstream charter" , serif; font-size: 16px;">And the overriding “Zeroeth Law” is “If code is hard to test, change it.”</span><br />
<span style="background-color: #fcfcfc; color: #444444; font-family: "georgia" , "bitstream charter" , serif; font-size: 16px;">ref: </span><span style="color: #444444; font-family: "georgia" , "bitstream charter" , serif;">http://codebetter.com/jeremymiller/2006/03/09/jeremys-second-law-of-tdd-push-dont-pull/ </span><br />
<span style="color: #444444; font-family: "georgia" , "bitstream charter" , serif;"><br /></span>
--------------------------------------------------------------------------------------</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-36232261317857780532017-04-12T00:34:00.004-07:002020-11-12T17:18:10.508-08:00WebApi Notes<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<h1 style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", Calibri, Candara, Arial, sans-serif; font-size: 36px; font-weight: 300; line-height: 1.1; margin: 21px 0px 10.5px;">
In ASP.NET Web API 2 </h1>
<div style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", Calibri, Candara, Arial, sans-serif; font-size: 16px; line-height: 28.8px; margin-bottom: 10.5px;">
To return a custom response you can use new helper methods exposed through ApiController such as:</div>
<ul style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", Calibri, Candara, Arial, sans-serif; font-size: 16px; line-height: 28.8px; margin: 0px 0px 10.5px;">
<li style="box-sizing: border-box;">Ok</li>
<li style="box-sizing: border-box;">NotFound</li>
<li style="box-sizing: border-box;">Exception</li>
<li style="box-sizing: border-box;">Unauthorized</li>
<li style="box-sizing: border-box;">BadRequest</li>
<li style="box-sizing: border-box;">Conflict</li>
<li style="box-sizing: border-box;">Redirect</li>
<li style="box-sizing: border-box;">InvalidModelState</li>
</ul>
<div>
<span face=""open sans" , "calibri" , "candara" , "arial" , sans-serif" style="color: #333333;"><span style="line-height: 28.8px;"><br /></span></span></div>
<div>
<span face=""open sans" , "calibri" , "candara" , "arial" , sans-serif" style="color: #333333;"><span style="line-height: 28.8px;">---------------------</span></span></div>
<div>
<span face=""open sans" , "calibri" , "candara" , "arial" , sans-serif" style="color: #333333;"><span style="line-height: 28.8px;">13/11/2020 SignalR 2 (.net framework) Tip</span></span></div><div><span face=""open sans" , "calibri" , "candara" , "arial" , sans-serif" style="color: #333333;"><span style="line-height: 28.8px;">You would be unable to connect to signalr 2 (.net version) running on your visual studio/localhost if the visual studio is not running as Admin.</span></span></div><div><span face=""open sans" , "calibri" , "candara" , "arial" , sans-serif" style="color: #333333;"><span style="line-height: 28.8px;"><br /></span></span></div><div><span face=""open sans" , "calibri" , "candara" , "arial" , sans-serif" style="color: #333333;"><span style="line-height: 28.8px;"><br /></span></span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-11588634670740678022017-04-03T05:05:00.002-07:002017-04-04T07:08:18.361-07:00Angular 2 on Azure<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<u>A Good post to publish on to a Azure </u><br />
http://abusanad.net/2016/07/24/publish-angular-2-app-from-visual-studio-to-azure/#comment-8701<br />
<br />
<span style="background-color: white; color: #333333; font-family: "lato" , sans-serif; font-size: 14px;">An important change to note is</span><br />
<span style="background-color: white; color: #333333; font-family: "lato" , sans-serif; font-size: 14px;">Node is present on webapp server but it would not return version number with the command.</span><br />
<span style="background-color: white; color: #333333; font-family: "lato" , sans-serif; font-size: 14px;">but the good news is npm install command works well.</span><br />
<span style="background-color: white; color: #333333; font-family: "lato" , sans-serif; font-size: 14px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: "lato" , sans-serif; font-size: 14px;">Ref: </span><span style="color: #333333; font-family: "lato" , sans-serif;"><span style="font-size: 14px;">https://blogs.msdn.microsoft.com/azureossds/2016/04/20/nodejs-and-npm-versions-on-azure-app-services/</span></span><br />
<span style="color: #333333; font-family: "lato" , sans-serif;"><span style="font-size: 14px;"><br /></span></span>
<br />
<br />
Issue 1: 404 errors in the site<br />
Situation: providing access to api data folders on azure.<br />
Solution : Ref: https://blogs.msdn.microsoft.com/benjaminperkins/2014/09/01/the-webpage-cannot-be-found-404-when-accessing-a-file-on-azure-websites/<br />
<br />
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-44631867119227247692016-08-06T00:11:00.000-07:002016-08-19T21:40:20.569-07:00Setting up Angular 2..<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
You may head to Angular official guide to getting started but some things might be missing there which I covered here.<br />
https://angular.io/docs/ts/latest/quickstart.html<br />
<br />
<br />
Q: Latest Node installed but not the latest npm.<br />
A: npm updates itself to latest<br />
If windows use<br />
<span style="background-color: white; color: #4c4c4c; font-family: monospace; font-size: 15px; line-height: 24px;"> npm install npm -g</span><br />
<span style="background-color: white; color: #4c4c4c; font-family: monospace; font-size: 15px; line-height: 24px;">Other use </span><br />
<span style="background-color: white; color: #4c4c4c; font-family: monospace; font-size: 15px; line-height: 24px;"> sudo npm install npm -g</span><br />
<br />
Ref: http://blog.npmjs.org/post/85484771375/how-to-install-npm<br />
<br />
<br />
Q:install typing error<br />
A: make sure you run npm as administrator and run below commands<br />
<ul style="background-color: white; border: 0px; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px 0px 1em 30px; padding: 0px;">
<li style="border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;">Typings: <code style="background-color: #eff0f1; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">npm install -g typings</code></li>
<li style="border: 0px; margin: 0px; padding: 0px; word-wrap: break-word;">Tsd: <code style="background-color: #eff0f1; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">npm install -g tsd</code></li>
</ul>
and then use<br />
<pre class="prettyprint undefined lang-sh ng-scope prettyprinted" style="background: rgb(245, 246, 247); border-radius: 4px; color: #5c707a; font-family: monaco, "lucida console", monospace; font-size: 13px; line-height: 24px; overflow: auto; padding: 16px 32px; position: relative; white-space: pre-wrap; width: auto;"><code ng-non-bindable="" style="background: none; border-radius: 2px; color: #253238; font-family: monaco, "lucida console", monospace; padding: 0px;"><span class="pln" style="color: #5c707a;">npm run typings install</span></code></pre>
and below command in case your previous npm install failed<br />
<pre class="prettyprint undefined lang-sh ng-scope prettyprinted" style="background: rgb(245, 246, 247); border-radius: 4px; color: #5c707a; font-family: monaco, "lucida console", monospace; font-size: 13px; line-height: 24px; overflow: auto; padding: 16px 32px; position: relative; white-space: pre-wrap; width: auto;"><span style="background-color: initial;">npm install</span></pre>
Ref:<span style="font-family: inherit;"> <span style="color: #5c707a; line-height: 24px; white-space: pre-wrap;">http://stackoverflow.com/questions/35449005/npm-start-is-not-working-for-angular-2-quickstart </span></span><br />
<br />
Q:unable to compile typescript code in Visual studio code<br />
A: <span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;">The TypeScript compiler does have to be manually installed using </span><code style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">npm install -g typescript</code><span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;">.</span><br />
<br />
Ref: http://stackoverflow.com/questions/31189875/does-vs-code-install-typescript-and-if-so-where<br />
<br />
Q:<br />
<br />
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-4286126099760369352016-07-17T00:44:00.001-07:002016-07-31T23:30:42.484-07:00SQL Hacks<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
1) make self admin sql express script. Just download and run the below script<br />
https://gist.github.com/wadewegner/1677788<br />
<br />
<br />
2)SSRS Deployment Script<br />
http://www.sqlblogspot.com/2014/03/ssrs-deploymentcomplete-automation2012.html<br />
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-76035978104831899872016-03-18T20:45:00.001-07:002016-03-18T20:48:37.458-07:00Angular 2 posts<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
1. The following are examples for the core fundamentals of Angular 2. Click the button to view each sample in a plunker. - from John Papa<div>
http://a2-first-look.azurewebsites.net/ (http://jpapa.me/a2firstlook)</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-83310778739281414342015-12-26T22:21:00.000-08:002017-05-30T18:57:49.367-07:00Grunt / Bower / NPM for Visual Studio <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b><span style="font-family: "georgia" , serif; font-size: 10pt;"><br />
What is Grunt/ Gulp / NPM?<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">You may refer "</span><b><i><span style="background: white; color: #333333; font-family: "georgia" , serif; font-size: 10.0pt;">An Introduction to Bower, Grunt and Gulp" </span></i></b><span style="background: white; color: #333333; font-family: "georgia" , serif; font-size: 10.0pt;">Section at <a href="http://www.dotnetcurry.com/visualstudio/1096/using-grunt-gulp-bower-visual-studio-2013-2015">this</a>
article</span><span style="font-family: "georgia" , serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">NPM (Node package manager) is useful to manage UI
packages.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<b><span style="font-family: "georgia" , serif; font-size: 10pt;">How
do i install them <o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">Follow the Steps in <a href="http://www.hanselman.com/blog/IntroducingGulpGruntBowerAndNpmSupportForVisualStudio.aspx">here</a><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<b><span style="font-family: "georgia" , serif; font-size: 10pt;">Opps!
I don't see gulp working <o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">If you get the below error<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<i><span style="font-family: "georgia" , serif; font-size: 10pt;">"Error:Failed to load
<your project location>\gulpfile.js"...</span></i><span style="font-family: "georgia" , serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">'gulp' is not recognized as an internal or external command, operable
program or batch file."<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">Solution: We need to install gulp --> which needs npm ( node
package manger)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">Step 1: Download & Install <a href="https://nodejs.org/en/">node.js</a>
in your the system. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">Step 2: Next Goto All Programs -> Node.js -> nodejs Command promt<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "georgia" , serif; font-size: 10pt;">Step 3: run the below command to
install gulp<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><i><span style="background: #f5f8f9; color: #565a5f; font-family: "consolas"; font-size: 10.5pt;">npm
install gulp -g</span></i></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
Note: you might face issues trying to install using npm if behind a proxy for which you may <a href="http://superuser.com/a/514263/137471" target="_blank">these </a>solutions<br />
<br /></div>
<div class="MsoNormal">
<b><span style="font-family: "georgia" , serif; font-size: 10pt;">Can
I integrate it with my Online hosted Builds <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span style="font-family: "georgia" , serif; font-size: 10.0pt; line-height: 107%;"><br /></span>
<span style="font-family: "georgia" , serif; font-size: 10.0pt; line-height: 107%;">Oh! Yes Have a look at <a href="http://www.davepaquette.com/archive/2015/04/08/integrating-gulp-and-bower-with-visual-studio-online-hosted-builds.aspx">here</a><o:p></o:p></span></div>
<div class="MsoNormal">
<br />
<b>Cant find .npmsrc</b><br />
<span style="background-color: white; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;">I ran </span><code style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">npm config set <option> <value></code><span style="background-color: white; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;">, the file </span><code style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">~/.npmrc</code><span style="background-color: white; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;"> seemed to be created automatically, with the option & its value as the only non-commented-out line.</span><br />
<span style="background-color: white; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;">ref:</span><span style="color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;"><span style="font-size: 15px; line-height: 19.5px;">https://stackoverflow.com/questions/15536872/nodejs-npm-global-config-missing-on-windows </span></span><br />
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "georgia" , serif; font-size: 10.0pt; line-height: 107%;">Thanks for visiting the post. </span><br />
<span style="font-family: "georgia" , serif; font-size: 10.0pt; line-height: 107%;"><br /></span>
<span style="font-family: "georgia" , serif; font-size: 10.0pt; line-height: 107%;">Hope this helps you!<o:p></o:p></span></div>
</div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7834124843622918819.post-36685691152719212952013-08-08T06:39:00.002-07:002013-08-08T06:39:34.786-07:00HTML Tips<div dir="ltr" style="text-align: left;" trbidi="on">
1. <a class="question-hyperlink" href="http://stackoverflow.com/questions/9067892/how-to-align-two-elements-on-the-same-line-without-changing-html" style="border: 0px; color: black; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">How to align two elements on the same line without changing HTML</a><br />
<br />
<div style="background-color: white; border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
Using <code style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline;">display:inline-block</code></div>
<pre class="default prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">#element1 {display:inline-block;margin-right:10px;} </span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">#element2 {display:inline-block;} </span></code></pre>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
2.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-11394163454801092302013-07-22T07:22:00.001-07:002013-07-22T07:22:18.427-07:00Various options to store your SharePoint Solution’s Configuration Data.<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
The various options are : -<br />
<ol>
<li>Code</li>
<li>web.config</li>
<li>SharePoint List</li>
<li>External Data Source</li>
<li><b>Property Bag - </b></li>
<li><b>Hierarchical Object Store</b></li>
</ol>
<br />
<br />
Ref:<br />
1. <a href="http://blogs.msdn.com/b/zwsong/archive/2012/03/27/where-should-you-store-your-sharepoint-solution-s-configuration-data.aspx">http://blogs.msdn.com/b/zwsong/archive/2012/03/27/where-should-you-store-your-sharepoint-solution-s-configuration-data.aspx</a> - Good one with comparison. Do read the comments.<br />
<br />
2. <span style="color: #666666; font-family: Georgia, Garamond, Baskerville, 'Times New Roman', Times, serif; font-size: 12px; line-height: 18px;"><a href="http://www.chaholl.com/archive/2011/01/30/the-skinny-on-sppersistedobject-and-the-hierarchical-object-store-in.aspx" target="_blank">Hierarchical Object Store in SharePoint 2010</a> - more info on how to use the same.</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-13640439901408894322013-07-03T07:14:00.000-07:002013-07-03T07:14:07.719-07:00Sharepoint 2010 Events<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<u>New
Events in SharePoint Foundation 2010<o:p></o:p></u></div>
<div class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";">Two new </span><b><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">Add</span></b><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"> events have been provided for SharePoint lists – that is,
for <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPList</span></a> objects:<o:p></o:p></span></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal" style="color: #2a2a2a; line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisteventreceiver.listadding.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">ListAdding(SPListEventProperties)</span></a> <o:p></o:p></span></li>
<li class="MsoNormal" style="color: #2a2a2a; line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisteventreceiver.listadded.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">ListAdded(SPListEventProperties)</span></a><o:p></o:p></span></li>
</ul>
<div class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">In
addition to these<span class="apple-converted-space"> </span><span class="input"><b>Add</b></span><span class="apple-converted-space"> </span>events,
two<span class="apple-converted-space"> </span><span class="input"><b>Delete</b></span><span class="apple-converted-space"> </span>events have also been added to
SharePoint lists:<o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 8.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisteventreceiver.listdeleting.aspx"><span style="color: #03697a; text-decoration: none; text-underline: none;">ListDeleting(SPListEventProperties)</span></a><o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 8.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisteventreceiver.listdeleted.aspx"><span style="color: #03697a; text-decoration: none; text-underline: none;">ListDeleted(SPListEventProperties)</span></a><o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">New
events</span> on Sharepoint Sites<o:p></o:p></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l2 level1 lfo3; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 8.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebeventreceiver.webadding.aspx"><span style="color: #03697a;">WebAdding(SPWebEventProperties)</span></a><o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l2 level1 lfo3; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #2a2a2a; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 8.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebeventreceiver.webprovisioned.aspx"><span style="color: #03697a;">WebProvisioned(SPWebEventProperties)</span></a><o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">New Synchronous
After Events <o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in; text-indent: .5in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">The
default synchronization behavior is synchronous for<span class="apple-converted-space"> </span></span><span class="input"><b>before</b></span><span class="apple-converted-space"> events and asynchronous for<span class="apple-converted-space"> </span></span><span class="input"><b>after</b></span><span class="apple-converted-space"> events.</span> Also available is a
new property on the<span class="apple-converted-space"> </span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverdefinition.aspx"><span style="color: #03697a;">SPEventReceiverDefinition</span></a><span class="apple-converted-space"> base
class called<span class="apple-converted-space"> </span></span><span class="input"><b>Synchronization</b></span>. This property has<span class="apple-converted-space"> </span><span class="input"><b>get</b></span><span class="apple-converted-space"> and<span class="apple-converted-space"> </span></span><span class="input"><b>set</b></span><span class="apple-converted-space"> methods
to retrieve and set the<span class="apple-converted-space"> </span></span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiversynchronization.aspx"><span style="color: #03697a;">SPEventReceiverSynchronization</span></a><span class="apple-converted-space"> enumeration
value. This enumeration provides a value called<span class="apple-converted-space"> </span></span><span class="input"><b>Default</b></span><span class="apple-converted-space"> to support backward compatibility.</span>
<o:p></o:p></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in; text-indent: .5in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in; text-indent: .5in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<u><span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">New Event Binding Functionality in SharePoint
Foundation 2010<o:p></o:p></span></u></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">The
ability to bind events at the scope of the site collection (</span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.aspx"><span style="color: #03697a;">SPSite</span></a>), as well as giving you the ability to bind XML
event receivers that are scoped to the individual site (<a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.aspx"><span style="color: #03697a;">SPWeb</span></a>).<o:p></o:p></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin: 0in;">
SPSite-Level
Binding</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"> SharePoint
Foundation 2010 supports an</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPSite</span></a>-level event receivers collection. Like other event
receiver collections, this one accepts bindings from <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebeventreceiver.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPWebEventReceiver</span></a>,</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisteventreceiver.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPListEventReceiver</span></a>, and</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPItemEventReceiver</span></a></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";">objects. All of these event types can be scoped to the site
collection level (that is,</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPSite</span></a>). However, an</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spemaileventreceiver.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPEmailEventReceiver</span></a></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";">object does not work at the site collection level because the
way that this object is implemented.</span></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin: 0in;">
<a href="" title="Collapse">XML Event Receiver Binding</a></div>
<div class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";">SharePoint Foundation 2010 supports binding
XML event receivers at the scopes of both <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.aspx"><span style="color: #03697a; text-decoration: none; text-underline: none;">SPWeb</span></a> and <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.aspx"><span style="color: #03697a; text-decoration: none; text-underline: none;">SPSite</span></a> instances
by using the </span><span style="color: darkgreen; font-family: Consolas; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><Receivers></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"> tag. When a SharePoint Feature is scoped
to the site collection level, a </span><span style="color: darkgreen; font-family: Consolas; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><Receivers></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"> tag is potentially ambiguous. The tag
can indicate either site-wide event binding or event binding for the top-level
site. Note, however, that the <b>default</b> behavior is to scope to
the site level. Therefore, when you scope a Feature to the site collection level,
use the attribute named <b>Scope</b> to specify the intended scope.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin: 0in;">
<a href="" title="Collapse">Event Binding by List Template</a></div>
<div class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";">SharePoint Foundation 2010 supports event
binding based on the</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">SPItemEventReceiver</span></a></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";">event receiver by using semantics of the</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.featuremenutemplate.listtemplateid.aspx"><span style="color: #03697a; mso-bidi-font-size: 11.0pt; text-decoration: none; text-underline: none;">ListTemplateId</span></a></span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";"> </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";">property. This
approach creates an event receiver definition that is scoped to the list as the
list is created. SP </span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">supports event binding that is based on the<span class="apple-converted-space"> </span></span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.aspx"><span style="color: #03697a;">SPItemEventReceiver</span></a><span class="apple-converted-space"> object
in the XML of a specified content type.</span><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<u><span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"><a href="http://msdn.microsoft.com/en-us/library/ff408187.aspx"><span style="color: windowtext;">Event Impersonation in SharePoint Foundation 2010</span></a><o:p></o:p></span></u></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">SP provide
the identity (ID) of the originating user and then let the event receiver
implementer respond as appropriate.<o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">SharePoint
Foundation 2010 also <b>introduces a new
property</b> called<span class="apple-converted-space"> </span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventpropertiesbase.originatingusertoken.aspx"><span style="color: #03697a;">OriginatingUserToken</span></a><span class="apple-converted-space"> </span>on the<span class="apple-converted-space"> </span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventpropertiesbase.aspx"><span style="color: #03697a;">SPEventPropertiesBase</span></a><span class="apple-converted-space"> </span>class that <o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">returns
the ID of the originating user.<o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;"> Event code should check for this user by ID,
and, optionally, perform behaviors that can potentially cause unexpected
effects by using an impersonated site collection with the token of that
originating user.<br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></span></div>
<div style="line-height: 11.25pt; margin-bottom: .0001pt; margin: 0in;">
<span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">In
some scenarios, for example, when an active workflow has code that is running
with elevated privileges, the code runs in the context of the system account.
But in this scenario, when event receiver code needs to run with the
credentials of the originating user, SharePoint Foundation 2010 allows you to
undo the reversion using the above feature.</span><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<h1 style="margin-bottom: .0001pt; margin: 0in;">
<u><span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; font-weight: normal; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-font-kerning: 0pt; mso-hansi-theme-font: minor-latin;">Redirect to URL in SharePoint
Foundation 2010<o:p></o:p></span></u></h1>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div>
<pre style="line-height: 11.6pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 412.2pt 445.5pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">Microsoft SharePoint Foundation 2010 now allows event receivers to provide a redirection URL to provide custom messages through the user interface (UI).</span> The redirect URL feature <b>works with all pre-event receiver types</b> (such as<span class="apple-converted-space"> </span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebeventreceiver.aspx"><span style="color: #03697a;">SPWebEventReceiver</span></a>,<span class="apple-converted-space"> </span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisteventreceiver.aspx"><span style="color: #03697a;">SPListEventReceiver</span></a>, and<span class="apple-converted-space"> </span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.aspx"><span style="color: #03697a;">SPItemEventReceiver</span></a>) in cases where the action is being cancelled. To support the new user interfaces, SharePoint Foundation 2010 <b>added the<span class="apple-converted-space"> </span></b><span class="code"><b><span style="color: darkgreen; font-family: Consolas; font-size: 8.0pt;">CancelWithRedirectUrl</span></b></span><span class="apple-converted-space"><b><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;"> </span></b></span><b><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;">field</span></b><span style="color: #2a2a2a; font-family: "Segoe UI","sans-serif"; font-size: 8.0pt;"> to values in the<span class="apple-converted-space"> </span></span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverstatus.aspx"><span style="color: #03697a;">SPEventReceiverStatus</span></a><span class="apple-converted-space"> enumeration (values -CancelNoError, CancelWithError, CancelWithRedirectUrl, Continue ).</span><span class="Heading1Char"><span style="font-family: 'Segoe UI', sans-serif;"> </span></span><span class="input"><b>CancelWithRedirectUrl</b></span><span class="apple-converted-space"> allows you to specify a redirect URL for a Web browser UI. Use the URL that is specified by the<span class="apple-converted-space"> </span></span><span class="input"><b>RedirectUrl</b></span><span class="apple-converted-space"> property of the<span class="apple-converted-space"> </span></span><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventpropertiesbase.aspx"><span style="color: #03697a;">SPEventPropertiesBase</span></a><span class="apple-converted-space"> object to navigate to alternate pages. This URL should be a server-relative URL, and cannot contain ECMAScript (JavaScript, JScript).</span><o:p></o:p></pre>
<pre style="line-height: 11.6pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 412.2pt 445.5pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span class="apple-converted-space">
</span></pre>
<pre style="line-height: 11.6pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 412.2pt 445.5pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span class="apple-converted-space">
</span></pre>
<pre style="line-height: 11.6pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 412.2pt 445.5pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span class="apple-converted-space">
</span></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-44760857125098341692013-06-15T07:33:00.002-07:002013-06-15T07:39:20.396-07:00Good Sharepoint Links<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<span style="font-family: Calibri, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Calibri, sans-serif;">1)Hands on labs <a href="http://msdn.microsoft.com/en-us/library/gg132914(v=office.14).aspx">http://msdn.microsoft.com/en-us/library/gg132914(v=office.14).aspx</a></span></div>
<div style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
2) Video links </div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraph" style="text-align: left; text-indent: -0.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman';">
</span></span><!--[endif]-->Sharepoint videos -<a href="http://msdn.microsoft.com/en-us/sharepoint/hh298298.aspx" style="text-indent: -0.25in;">http://msdn.microsoft.com/en-us/sharepoint/hh298298.aspx</a></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-16592570211653141352013-06-14T06:21:00.003-07:002013-06-14T06:21:28.349-07:00How to: Install Visual Studio 2012 Update 3 Offline<div dir="ltr" style="text-align: left;" trbidi="on">
Follow same process mentioned at<br />
<br />
<a href="http://blogs.msdn.com/b/robcaron/archive/2013/04/04/how-to-install-visual-studio-2012-update-2-offline.aspx?CommentPosted=true#commentmessage">http://blogs.msdn.com/b/robcaron/archive/2013/04/04/how-to-install-visual-studio-2012-update-2-offline.aspx?CommentPosted=true#commentmessage</a></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-87294262754972766682013-06-11T07:41:00.001-07:002013-06-11T07:42:52.303-07:00Configure email on windows2008 server r2<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
Nice link : <a href="http://www.vsysad.com/2012/04/setup-and-configure-smtp-server-on-windows-server-2008-r2/">http://www.vsysad.com/2012/04/setup-and-configure-smtp-server-on-windows-server-2008-r2/</a></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-17355947042501543652013-06-04T05:23:00.002-07:002013-06-04T06:59:52.864-07:00Sharepoint Governance<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<h1 bi:title="item" style="color: #4f4f4f; display: table-cell; font-family: 'Segoe UI Light', 'Segoe UI', Arial, Verdana, Tahoma, sans-serif; font-size: 30px; font-weight: normal; line-height: 1.13em; margin: 0px 10px 0px 0px; padding: 0px 0px 0px 15px; vertical-align: middle;">
Governance model for SharePoint Server 2010</h1>
<a href="http://www.microsoft.com/en-in/download/details.aspx?id=13594">http://www.microsoft.com/en-in/download/details.aspx?id=13594</a><br />
<br />
<br />
google for Governance model<br />
<a href="https://www.google.co.in/search?q=what+is+sharepoint+governance+model&oq=what+is+sharepoint+gove&aqs=chrome.3.57j0l3j62l2.5233j0&sourceid=chrome&ie=UTF-8">https://www.google.co.in/search?q=what+is+sharepoint+governance+model&oq=what+is+sharepoint+gove&aqs=chrome.3.57j0l3j62l2.5233j0&sourceid=chrome&ie=UTF-8</a><br />
<br />
what is sp governance<br />
<a href="http://www.sharepointgeoff.com/governance/">http://www.sharepointgeoff.com/governance/</a><br />
<br />
A White pater<br />
<a href="http://i.zdnet.com/whitepapers/Quest_WPA_Five_Pillars_SharePoint_Gov_US_KS_v2_Final_1.pdf">http://i.zdnet.com/whitepapers/Quest_WPA_Five_Pillars_SharePoint_Gov_US_KS_v2_Final_1.pdf</a><br />
<br />
steps in sharepoint implementation<br />
<a href="http://social.technet.microsoft.com/wiki/contents/articles/6575.ten-steps-to-a-successful-sharepoint-implementation.aspx">http://social.technet.microsoft.com/wiki/contents/articles/6575.ten-steps-to-a-successful-sharepoint-implementation.aspx</a></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7834124843622918819.post-22375344293235373742013-05-27T23:43:00.001-07:002013-05-27T23:43:13.878-07:00How to have a Fresh Morning everyday<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
1) Must try doing the items at <a href="http://www.thedailymind.com/how-to/17-ways-to-wake-up-feeling-fresh-in-the-morning/">http://www.thedailymind.com/how-to/17-ways-to-wake-up-feeling-fresh-in-the-morning/</a><br />
<br />
Todo:check out more at <a href="https://www.google.co.in/search?q=best+things+to+do+in+life&oq=best+things+to+do&aqs=chrome.1.57j0l3j62l2.4593j0&sourceid=chrome&ie=UTF-8#sclient=psy-ab&q=best+things+to+do+in+morning&oq=best+things+to+do+in+morning&gs_l=serp.3..0l2j0i22i30l2.110549.111412.0.112323.7.4.0.3.3.0.129.438.1j3.4.0...0.0.0..1c.1.12.psy-ab.cJ11TLw6GLo&pbx=1&bav=on.2,or.r_qf.&bvm=bv.47008514,d.bmk&fp=cadf19d8fb080ed5&biw=1600&bih=775" target="_blank">google</a><br />
<br />
<br />
<h1 class="title" itemprop="title" style="background-color: white; box-sizing: border-box; color: #222222; direction: ltr; font-family: FCKaiserCond, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 0.9em !important; margin: 0px 0px 16px; padding: 0px 20px 0px 0px; text-rendering: optimizelegibility; text-transform: uppercase; word-spacing: 2px;">
<span style="font-size: x-small;">2)<a href="http://www.fastcompany.com/1839987/what-most-successful-people-do-breakfast" target="_blank">WHAT THE MOST SUCCESSFUL PEOPLE DO BEFORE BREAKFAST</a></span></h1>
</div>
Unknownnoreply@blogger.com0