Romiko Romiko

View s3_website_push_error
1 2 3 4 5 6 7 8 9 10
3_website push
Deploying _site/* to blog.rangerrom.com
Calculating diff //Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/openssl/buffering.rb:174:in `sysread_nonblock': end of file reached (EOFError)
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/openssl/buffering.rb:174:in `read_nonblock'
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:2563:in `read_status_line'
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:2552:in `read_new'
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:1320:in `block in transport_request'
View Controller.cs
1 2 3 4 5 6 7 8 9 10
using System.Security.Permissions;
using System.Web.Mvc;
using MyStory.Logic.Security;
using MyStory.Web.Models;
using MyStory.Web.Models.Clients;
 
namespace MyStory.Web.Areas.Agency.Controllers
{
public partial class ClientController
{
View DeleteReferrals.cs
1 2 3 4 5 6 7 8 9 10
private void DeleteLatestDuplicateReferrals(IList<Node<Referral>> duplicateReferrals)
{
var theReferralsToDelete = from r in duplicateReferrals
group r by r.Data.UniqueId
into g
where g.Count() > 1
select new
{
UniqueId = g.Key,
DateIntiated = (from r in g select r.Data.DateInitiatedUtc).Max(),
View ServiceDefinition.perf.csdef
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0"?>
<sd:ServiceDefinition name="Neo4j.Azure.Server"
xmlns:sd="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"
xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<sd:WebRole name="Web" xdt:Locator="Match(name)">
<sd:Startup>
<sd:Task commandLine="Startup.cmd" xdt:Locator="Match(commandLine)">
<sd:Environment>
<sd:Variable xdt:Transform="Replace" xdt:Locator="Match(name)" name="MYSTORYENV" value="PERF"/>
</sd:Environment>
View AzureStartUptask.xml
1 2 3 4 5 6 7 8 9 10
<WebRole name="Web" vmsize="Medium">
<Runtime executionContext="elevated" />
<Startup>
<Task commandLine="Startup.cmd" executionContext="elevated" taskType="background">
<Environment>
<Variable name="EMULATED">
<RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" />
</Variable>
</Environment>
</Task>
View UndeployAzure.ps1
1 2 3 4 5 6 7 8 9 10
#requires -version 2.0
param (
[parameter(Mandatory=$true)] [string]$AzureServiceName,
[parameter(Mandatory=$true)] [string]$AzureDeploymentSlot,
[parameter(Mandatory=$true)] [string]$AzureSubscriptionId,
[parameter(Mandatory=$true)] [string]$AzureCertificateThumbprint)
 
$ErrorActionPreference = "Stop"
 
if ((Get-PSSnapin -Registered -Name AzureManagementCmdletsSnapIn -ErrorAction SilentlyContinue) -eq $null)
View AzureTraceListener.xml
1 2 3 4 5 6 7 8 9
<system.diagnostics>
<trace>
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
<filter type="" />
</add>
</listeners>
</trace>
</system.diagnostics>
View WindowsDiagnosticsWAKEUP.cs
1 2 3 4 5 6 7 8 9
static void WaitForWindowsAzureDiagnosticsInfrastructureToCatchUp()
{
// According to http://l.tath.am/k6uPrK, the diagnostics infrastructure takes a
// few seconds to start. If a crash occurs during this time, we'd never be
// able to find out why.
// We also need to do this at the /end/ of the role. Even if we explicitly flush
// the trace, it'll still lose the last few messages if we exit too quickly.
Thread.Sleep(TimeSpan.FromSeconds(10));
}
View Neo4jClientDeserializer
1 2 3 4 5 6 7 8 9 10
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using RestSharp;
View ProposedJsonCypherResult.json
1 2 3 4 5 6 7 8 9 10
{'data' : [
[
{
'column1': {
'outgoing_relationships' : 'http://foo/db/data/node/0/relationships/out',
'data' : {
'Bar' : '1',
'Baz' : '11'
},
'traverse' : 'http://foo/db/data/node/0/traverse/{returnType}',
Something went wrong with that request. Please try again.