[ Launch: sitecorian ] 770b3d723cb8d80aa9af by sitecorian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Event.Subscribe("item:saved", this.Item_Saved); | |
private void Item_Saved([NotNull] object sender, [NotNull] EventArgs e) | |
{ | |
var changes = Event.ExtractParameter<ItemChanges>(e, 1); | |
if (!changes.IsFieldModified(FieldIDs.Security) && !changes.IsFieldModified(FieldIDs.Workflow) && | |
!changes.IsFieldModified(FieldIDs.WorkflowState)) | |
{ | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = new JetBrains.dotTrace.Api.SaveSnapshotProfilingConfig(@"C:\perflog\publish_profiling\") | |
{ | |
ProfilingControlKind = JetBrains.dotTrace.Api.ProfilingControlKind.API, | |
TempPath = @"C:\perflog\publish_profiling\temp", | |
RedistPath = @"C:\perflog\Redist\JetBrains.dotTrace.ExternalLauncherProcess.exe", | |
SavePath = @"C:\perflog\publish_profiling\", | |
SnapshotFormat = JetBrains.dotTrace.Api.SnapshotFormat.Compressed, | |
CoreLogMask = 6, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Log.Info("*** IndexingProvider.GetHistory(). Starting processing history collection.", new object()); | |
var result = new HistoryEntryCollection(); | |
foreach (HistoryEntry entry in history) | |
{ | |
IEnumerable<HistoryEntry> historyEntries = from historyEntry in history | |
where historyEntry.Action == entry.Action && historyEntry.ItemId == entry.ItemId && | |
historyEntry.ItemLanguage == entry.ItemLanguage && historyEntry.ItemVersion == entry.ItemVersion && historyEntry.Created > entry.Created | |
select historyEntry; | |
if (historyEntries.Count() > 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ManagedPoolThread #4 10:17:51 ERROR Cannot start profiler. The directory name is invalid. | |
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) | |
at System.IO.Directory.SetCurrentDirectory(String path) | |
at JetBrains.dotTrace.Api.SelfAttachImpl.StartSelfAttach(BaseProfilingConfig config, String executablePath, String savePath, UInt16 storageFmt) | |
at JetBrains.dotTrace.Api.SelfAttachImpl.Attach(BaseProfilingConfig config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = new JetBrains.dotTrace.Api.SaveSnapshotProfilingConfig(@"C:\perflog\publish_profiling\") | |
{ | |
ProfilingControlKind = JetBrains.dotTrace.Api.ProfilingControlKind.API, | |
TempPath = @"C:\perflog\publish_profiling\temp", | |
//changed this | |
RedistPath = @"C:\perflog\Redist\", | |
SavePath = @"C:\perflog\publish_profiling\", | |
SnapshotFormat = JetBrains.dotTrace.Api.SnapshotFormat.Compressed, | |
CoreLogMask = 6, | |
}; |
Built with blockbuilder.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var map = function m() { | |
for (var p = 0; p < this.Pages.length; p++) | |
{ | |
if(this.Pages[p].PageEvents){ | |
for (var e = 0; e < this.Pages[p].PageEvents.length; e++){ | |
var key = this.Pages[p].PageEvents[e].Name; | |
var text = this.Pages[p].PageEvents[e].Text; | |
if(text && text.indexOf('=' > -1) && text.indexOf('&' > -1)){ | |
var keys = text.split("&"); | |
if(keys.length > 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.Interactions.aggregate([ | |
{ "$match": { "StartDateTime": { $gte: ISODate("2015-11-01T00:00:00.000Z"), | |
$lt: ISODate("2015-11-01T03:00:00.000Z")}}}, | |
{ $project : { Pages : "$Pages" } }, | |
// Un-wind the array's to access filtering | |
{ "$unwind": "$Pages" }, | |
{ "$unwind": "$Pages.PageEvents" }, | |
// Group results to obtain the matched count per key | |
{ "$group": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private dynamic GetProps() | |
{ | |
dynamic props = new ExpandoObject(); | |
var dataSourceItem = GetDataSourceItem(); | |
foreach (Field field in dataSourceItem.Fields) | |
{ | |
if (field.Name.StartsWith("__")) | |
{ | |
continue; |
OlderNewer