Browsed by
Author: johnr

Teamviewer 11 for Ubuntu Server 15.10 running in Virtualbox

Teamviewer 11 for Ubuntu Server 15.10 running in Virtualbox

In Teamviewer 11 a feature to manage a headless server has been introduced. The trouble is that Teamviewer’s FAQ leaves out a crucial piece of information on how to get this going. The following instructions are for Ubuntu Server 15.10 running on Virtualbox 5.0.14, using Teamview 11.0.53254 1. Install Ubuntu Server 64bit as per normal. 2. Log in with the account you created during the install. 3. sudo to root $sudo -i 4. Activate the root account with passwd #passwd…

Read More Read More

X2go Server on Ubuntu 15.04

X2go Server on Ubuntu 15.04

X2go is a great way of remotely connecting to a headless Ubuntu server (assuming you’re the type of person that wants to manage Ubuntu graphically). In my case my headless Ubuntu is just a hobbyist’s server and I think it’s cheaper to have one hosted for me, than to pay for the electricity and with the added fire risk of hosting a physical server myself. (Except for disk space considerations).I’ve been using DigitalOcean droplets and I think their control panel…

Read More Read More

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

Caliburn.Micro and SimpleContainer

Caliburn.Micro and SimpleContainer

If you don’t want to use a fully fledged IoC container, then you can use the simple one Caliburn.Micro contains. It’s needed to support the Windows Phone development, but works with WPF, which is my interest.  It’s a source release, and you can get from Nuget, as Caliburn.Micro.Container. Of course, Caliburn.Micro has it’s own direct access to any IoC, like this in a ViewModel ctor:- public ShellViewModel() { windowsmgr = Caliburn.Micro.IoC.Get<IWindowManager>(); } But it makes testing difficult and this direct…

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

AvalonDock v2 and Caliburn Micro

AvalonDock v2 and Caliburn Micro

 AvalonDockCaliburnMicro.zip (2.16 mb) A new version of AvalonDock is due to be released early March. See  http://avalondock.codeplex.com/. I thought I would attempt to integrate with Caliburn Micro, which should be easier now, as v2 of AvalonDock is MVVM compatible. To integrate there are two ways that I know of, (a.) to create a Custom Attached Property or Behaviour as suggested by Felice Pollano, http//www.felicepollano.com/Trackback.aspx?guid=9dcc8717-eb83-45b5-ac89-2f0d0cf05bde (b.) to create a Custom Convention along the lines that Valeriu Caraulean has done for Telerik…

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