Browsed by
Category: Uncategorised

Nginx, PHP FPM, try_files and path_info

Nginx, PHP FPM, try_files and path_info

In the post, http://wiki.nginx.org/PHPFcgiExample, the author gives an URL example for testing various parameters, especially PATH_INFO and $fastcgi_path_info. This URL is, http://lemp.test/test.php/foo/bar.php?v=1 (this URL is not a hyperlink and does not work, of course) I was interested to find what Location clause would be necessary to test this on my own server. In my case, I wanted to test in a separate sub-directory, so the test string becomes:- http://mydomain.co.uk/mytest/test.php/foo/bar.php?v=1 (this URL does not work either. It’s intended you construct a…

Read More Read More

DigitalOcean droplet without X running on Console

DigitalOcean droplet without X running on Console

Since my Ubuntu DigitalOcean droplet is for non-serious use I find it useful to have X running so I can use graphical tools to manage it, and I’ve installed LXDE. It works really well. With X2GoServer installed and X2GoClient on my Windows 8.1 laptop, server maintenance is very convenient. Unfortunately, once I installed LXDE, the Console window available via the DigitalOcean web control panel also showed the X server and the lightdm login prompt. This couldn’t be used successful. There…

Read More Read More

A New Hosting Provider since Summer 2013

A New Hosting Provider since Summer 2013

Almost a year without any new posts. How time flies. In the summer last year as my yearly contract with my hosting provider was due for renewal, I noticed that the price for a Virtual Windows Server 2012 had come down considerably. After a month’s trial with Netcetera which went well I decided on AspNetHosting.co.uk. I chose them because they allow me to take up to 5 snapshots of the virtual image, and restore myself on demand. One hosting provider…

Read More Read More

Caliburn.Micro and HelloScreens (WPF and Decoupled)

Caliburn.Micro and HelloScreens (WPF and Decoupled)

Caliburn.Micro has a very useful demo called HelloScreens. The original is available in the samples directory of the sources on CodePlex. Currently it’s a SilverLight 4 xap. Over the years a number of people have made their own versions – there is a Silverlight Decoupled version and two WPF versions. Attached here is a decoupled WPF version. Nothing spectacular, it has separate DLLs for Orders and Customers loaded by MEF and it’s working with Caliburn.Micro 1.4.1 and .Net 4.5. I’ve…

Read More Read More

EventAggregator Comparison Demo

EventAggregator Comparison Demo

Ever since I started using Caliburn.Micro I was puzzled why the EventAggregator used an interface in the ViewModel signature, like this public class ShellViewModel : Screen, IShell, IHandle<YourMessageOne>, IHandle<YourMessageTwo>{} Agreed, the documentation is clear, in that you can Cast to see if the view model supports messaging, and if so automatically subscribe. But is that the only advantage? In the few EventAggregators I describe here it’s the only one using this technique. Anyway, a quick search showed that I was…

Read More Read More

Upgrade to BlogEngine 2.5.0.32 and new Hosting Provider

Upgrade to BlogEngine 2.5.0.32 and new Hosting Provider

This time all went very smoothly. Storage of post attachments is built in, and BlogML worked like a dream…Lets hope the testing goes smoothly too! File attachments via the new File Manager and SQL tables works, but alas the link into the post does not. So you won’t be able to access this file.   It does now because I’ve manually changed the link because urlrewriting is not working. TestTextFile.txt (65.00 bytes) TestTextFile.txt (65.00 bytes)

Quick test post after restoring the database

Quick test post after restoring the database

Am I going to be lucky…..This blog was reporting that the transaction log was full and nothing could be posted. As with anything to do with SQL Server, there is a huge amount of documentation to plough through and Google searches didn’t seem to show up a solution quickly. I couldn’t even backup the database, as that was what was showing me the error message. So I tried the Import and Export Data tool. This is a great tool just…

Read More Read More

Custom EFDAL generator for nHydrate

Custom EFDAL generator for nHydrate

nHydrateis a model first ORM code generator on codeplex, and can be used to generate Entity Framework DAL layer. But unlike the designer in Visual Studio it is text based, but this is not a disadvantage as nHydrate offers greater features such as built in row auditing and incremental database management. As any development team knows version 1 of your application is easy, but version 2 is likely to have database schema changes. The incremental database management keeps a track…

Read More Read More

Entity Framework Starter Kit alternative

Entity Framework Starter Kit alternative

  The Entity Framework 4 has superb  features for custom code generation and there are now quite a few different T4 code generators being released. You can see them easily in VS2010 Extension Manager, and include the ADO.NET C# POCO and C# Web Site POCO Entity Generators and the one I particularly like, Rob Hallett’s method of Unit testing Entity Framework classes, see  http://blogofrab.blogspot.com/2010/08/unit-testing-entity-framework-40.html To start writing your own generator, a Entity Framework Starter Kit is available, as documented here…

Read More Read More