- RavenDB - Image Gallery Project (I)
- RavenDB - Image Gallery Project (II) - Setting Up
- RavenDB - Image Gallery Project (III) - The Application Lifecycle
- RavenDB - Image Gallery Project (IV) - Tracking Documents
- RavenDB - Image Gallery Project (V) - The Structure
- RavenDB - Image Gallery Project (VI) - Entities, Repositories and Commands
- [RavenDB - Image Gallery Project (VII) - User Registrat
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
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Logos.Utility | |
{ | |
/// <summary> | |
/// Helper methods for working with <see cref="Guid"/>. | |
/// </summary> | |
public static class GuidUtility |
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 static void Main(string[] args) | |
{ | |
var projectionsManager = new ProjectionsManager(new ConsoleLogger(), new IPEndPoint(IPAddress.Loopback, 1113)); | |
const string projStr = | |
"fromCategory('12-testentity').foreachStream().whenAny(function(s, e) { linkTo('test-12', e) })"; | |
var credentials = new UserCredentials("admin", "changeit"); | |
projectionsManager.CreateContinuous("$test-12", projStr, credentials); | |
projectionsManager.Enable("$test-12", credentials); |
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
netsh http add urlacl url=http://+:8084/ user=ad-username | |
netsh http add urlacl url=http://127.0.0.1:8083/ user=ad-username |
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
/** | |
* This service is used to serialize asynchronous events. | |
* It uses a buffering solution: http://ricostacruz.com/backbone-patterns/animation-buffer.html | |
* To use it, put your asynchronous actions (animations/ajax) inside an anonymous function | |
* to be passed into add(). | |
* Be sure to trigger next() when done. | |
* | |
* Example: | |
* commandBuffer.add(next => { | |
* somePromise.done(next); |
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
namespace RavenIndexTest | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition.Hosting; | |
using System.Linq; | |
using Newtonsoft.Json; | |
using Raven.Client.Embedded; | |
using Raven.Client.Indexes; |
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
namespace RavenIndexTest | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition.Hosting; | |
using System.Linq; | |
using System.Threading; | |
using Newtonsoft.Json; | |
using Raven.Client.Embedded; | |
using Raven.Client.Indexes; |
This is a project where I am intending to do a large-scale distributed calculation of an opening book for the board game Othello. Positions are stored in a relational database (I have chosen PostgreSQL) using NHibernate object/relational mapper.
The project is still in its infancy, but the goal is to use Edax, a very good Othello engine, to calculate new positions. I am also intending to use a service bus, probably
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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- | |
This file needs to be put in the application directory. Make sure to set | |
'Copy to Output Directory' option in Visual Studio. | |
--> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<targets> | |
<target xsi:type="Console" name="console" layout="${message}" /> | |
<target xsi:type="ColoredConsole" name="console-detailed" layout="${longdate} ${logger} ${level:upperCase=true}: ${message}${newline}(${stacktrace}) ${exception:format=ToString}" /> |
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
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using Infrastructure.Data.Extensions; | |
namespace Infrastructure.Data.Specification | |
{ | |
public class Specification<TEntity> : ISpecification<TEntity> | |
{ | |
public Specification(Expression<Func<TEntity, bool>> predicate) |