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 NHibernate.Tool.hbm2ddl; | |
using NHibernate.Mapping.Attributes; | |
using NHibernate.Cfg; | |
using NHibernate; | |
using log4net; | |
using System.Reflection; | |
using System.Web; | |
using System.CodeDom.Compiler; | |
using Microsoft.CSharp; |
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
/// <summary> | |
/// Make the new nHibernate Manager Object | |
/// </summary> | |
public Manager() | |
{ | |
// Setup Logging | |
log4net.Appender.FileAppender appender = new log4net.Appender.FileAppender(); | |
appender.File = @".\logs\data-manager.log"; | |
appender.LockingModel = new log4net.Appender.FileAppender.MinimalLock(); | |
appender.ImmediateFlush = true; |
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
org 0x0 ; offset to 0, we will set segments later | |
bits 16 | |
jmp main ; Jump to main | |
main: | |
;Dont know whats in the segment registers so lets just reload them anyway :) | |
xor ax, ax | |
mov ds, ax |
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
var server = tcp.createServer(function (stream) { | |
stream.setEncoding('utf8'); | |
stream.setTimeout(0); | |
var user = new User(stream); | |
Users.push(user); | |
stream.addListener('connect', function () { | |
debug("Connection " + stream.remoteAddress); | |
user.OnConnect(); | |
}); | |
stream.addListener('data', function (data) { |
NewerOlder