- Links are named. Must be unique per container. <A,B,).
- Link (by name) can only be attached to one connection at a time. Subsequent connection can steal link. It is deatched on first connection with error.
- Need to define semantics of a container.
- The container needs to be able to managed the state of links based on the link key (see tuple above). The link state includes the state and the attached session/connection if attached.
- Link handles are managed by the session. This can simply be an expandable array (i.e. a list) of links. When detached, null the handle so it can be reused.
- Can we assume that transfer + message are the only thing sent over the wire in transmission?!
- Looking a bit more at amqpnetlite, I've determined that they've implemented a single threaded "Frame Pump" between the underlying socket and the AMQP "connection". In a loop they look for the the frame size UInt. Then they read that amount of data into memory as a buffer. That buffer, a single frame, is passed
This file contains hidden or 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
public QueueEntry Enqueue(object item) | |
{ | |
var entry = new QueueEntry(item); | |
while (true) | |
{ | |
var prevTail = this.tail; | |
var prevTailNext = prevTail.Next; | |
if (prevTail == this.tail) | |
{ | |
if (prevTailNext == null) |
This file contains hidden or 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.Expressions; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using ExpressionHelper = Microsoft.Web.Mvc.Internal.ExpressionHelper; | |
namespace MyProject | |
{ | |
public static class UrlExtensions | |
{ |
This file contains hidden or 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.Web.Caching; | |
using System.Web.Mvc; | |
namespace MyWebApplication | |
{ | |
public class ViewModelSpecifiedViewEngine : RazorViewEngine | |
{ | |
public override ViewEngineResult FindPartialView(ControllerContext controllerContext, string partialViewName, bool useCache) | |
{ |
- Tenants of CI and deployment. Build once, promote and publish artifacts. Test against release build (i.e. published artifacts). Compare TeamCity to TFS.
This file contains hidden or 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
Names: | |
HortonDB | |
API Inspiration: | |
https://github.com/JasperFx/Marten | |
https://github.com/ravendb/ravendb |
This file contains hidden or 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
# History of version control | |
* http://ericsink.com/vcbe/html/history_of_version_control.html | |
* http://www.catb.org/~esr/writings/version-control/version-control.html | |
* http://blog.podrezo.com/git-introduction-for-cvssvntfs-users/ | |
Comparison: | |
https://www.google.com/trends/explore#q=%2Fm%2F05vqwg%2C%20%2Fm%2F08441_%2C%20%2Fm%2F02rvgkm%2C%20%2Fm%2F012ct9%2C%20%2Fm%2F09d6g&cmpt=q&tz=Etc%2FGMT%2B4 | |
https://www.google.com/trends/explore#q=%2Fm%2F05vqwg%2C%20%2Fm%2F08441_%2C%20%2Fm%2F02rvgkm%2C%20%2Fm%2F012ct9%2C%20%2Fm%2F08w6d6&cmpt=q&tz=Etc%2FGMT%2B4 |
This file contains hidden or 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
SELECT nspname || '.' || relname AS "relation", | |
pg_size_pretty(pg_total_relation_size(C.oid)) AS "total_size" | |
, SUBSTRING(relname FROM '[0-9]+') | |
, d.* | |
, ch.name | |
FROM pg_class C | |
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace) | |
LEFT JOIN d_channels d ON cast(d.local_channel_id as varchar(5)) = SUBSTRING(relname FROM '[0-9]+') | |
LEFT JOIN channel ch ON ch.id = d.channel_id | |
WHERE nspname NOT IN ('pg_catalog', 'information_schema') |
This file contains hidden or 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
Get-ChildItem -file -Recurse -Filter *.cs | foreach {unix2dos.exe $_.FullName} |
This file contains hidden or 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
-- CREATE TABLE [dbo].[Counter]( | |
-- [id] [bigint] IDENTITY(1,1) NOT NULL, | |
-- [date] [date] NOT NULL, | |
-- [key] [varchar](100) NOT NULL, | |
-- [count] [int] NOT NULL, | |
-- CONSTRAINT [PK_Counter] PRIMARY KEY CLUSTERED ([id] ASC) | |
-- ); | |
BEGIN TRAN | |
MERGE dbo.[Counter] as t |