Just got a new phone last week, and its one of the new Nexus phones
Migrating Ghost blog to hexo
I recently ported my ghost blog to hexo, and it was pretty easy.
Hosting hexo in azure webapps
If you have read this blog for any length of time, you know I am a fan of Azure. I thought about using github pages with hexo, but github pages only supports 1 doman name. I could start 301 redirecting my other domains, but I really didn't want to do that.
Why I moved from Ghost to Hexo
Blogging right? I can't believe I somehow stuck with it all this time. Even when I took a long break I still kinda blogged. I got started after being convinced inspired by a coworkers passion to start blogging. To say the least he, and I have very similar tastes, and he turned me on to ghost, and the ghostium theme. After a year and a half of Ghost blogging I have left Ghost.
How the ASP.NET team made the web framework I have always wanted
So I know I do a lot of blogging about C#, or JavaScript, but I actually do a lot of nodejs apps as well as other languages. For a very long time I have not found the stack of my dreams. .NET has always been very close but there were multiple things about the app model that I was not a fan of. I think NancyFX has been the closest framework to my dreams in .NET land.
Securing AWS Elasticsearch Service with .NET NEST API (and why I love open source)
Around 6 months ago I started a project, and part of that project was to move us away from an old search tool to use elasticsearch.
Wiring up client side logs into c#/node.js logging frameworks
Around a year ago I joined a new team where I work, and this team was starting to undertake a full rewrite of their code. We were going from a full c#/mvc app to a tiny c# api, and a very big SPA.
Early one one of the huge things to do was to make sure that our JavaScript error logs could land in our Log4Net infrastructure. I started to write something to do just that, and as I was coding I quickly realized this was less trivial that it sounded. We had something internal we could use, but it was tied to a lot of other code that we didn't want to pull in.
I started Bingling around and I stumbled across jsnlog. JSN log lets you quickly wire up your client side logs to your server. I have been able to get PR's into the code base and the guy behind it has been very friendly to me when I have had questions.
Moving from beta 7 to beta 8 in ASP.NET 5 (MVC 6)
So Beta 8 was recently announced, and I thought I'd update DotNetMashups to beta 8.
In case you havn't been paying attention, recently it was announced that helios was no longer a thing. Helios was the loader for ASP.NET 5 in IIS. Instead they are using the http Platform Handler to proxy the connections to kestrel.
So I thought that this was going to be a difficult update. I loaded the announcements repo in my browser and got to work. You can view the Pull request here.
Why I avoid switch statements in c++
So one thing that kills me a lot in c++ is the switch statement. As you all know switch statements look like the following.
auto s = 0;
switch(s)
{
case 0:
doSomething();
break;
case 1:
doSomething1();
break;
}
c++, when should I use the stack or heap?
So I have started learning c++ recently, and as a .NET/Java developer I always want to write the following code.
var s = new myClass()
.
In c++ you have to manage memory yourself, there is no garbage collector.
If you do not use the new keyword var s = myClass()
you will create that class and assign it to on the stack
.
Any stack variables will be cleaned at the end of the block, so in this case s will be cleaned. However if you use var s = new myClass()
s will be allocated onto the heap and must be deleted, otherwise memory leaks will occur.
To clean the variable you must call delete
when you are done with the variable, this will cause the memory in the heap to be cleaned.