Archive for the ‘Software’ Category

NLua on iOS 11

There have not been a lot of updates on NLua; I am still using it quite a bit and the version in NuGet doesn’t work on iOS 11. So I thought I quickly throw a version up here which works on iOS 11. It fixes the KeraLua issue with system() being removed in iOS 11 (using posix_spawn()) and the transition to VS (from XS).

Download here.

I will update my github and do a pull request when I have some more time later.

Searching for a static site CMS

I am getting fed up with WordPress. There are more reasons than one for that, but it being heavy and needing too many updates are the two major ones. For the first one; WP isn’t really that nimble. It is quite heavy on a server, especially for a blog that gets only a few updates and a few comments per month. There is no reason for all this overhead.

There are multiple blogs running on the server where this one is running, but together they are heavy enough to make a dent in the IO and CPU of that monster sometimes even though none of those sites have a lot of traffic. Some of them daily updates though, but that shouldn’t give that kind of load; a lot of the load is because of bot attempts to guess passwords, try out exploits and trying to post comments. With caching on (which they all have), it is ok, but still, these sites should be running fine on a Rasberry Pi I, all of them. That’s how light they are.

Second point; if I don’t keep updating, it will get cracked/defaced/abused; it is not a matter if it will but when it will. I have been trying out some static CMS software like Jekyll and others but unfortunately I do need some kind of CMS to keep clients and friends who run sites with me happy.

There are a few commercial CMS’s that allow static site generation with an advanced content management system on top of some open source generator. The most popular one in that space seems to be Siteleaf.

Unfortunately I want to be able to fix things myself when they come up, so I need an open source solution.

In my searches, I found a few interesting projects:

First of all, a very interesting tool you can add on top of a simple site generator of your own making, CreateJS. It is interesting because it is quite flexible in it’s configuration. You add RDF notations to your pages and you can start editing; it supports blocks, collections and more. When I have more time, I will certainly check it out again, but looking at the ‘small’ CreatePHP example of usage, I am not sure if I would call this a lightweight solution. Might not be a bad thing, but not now.

Second interesting project I ran into was Directus. A structured editor on top of any database/structure; phpmyadmin on steroids so to say (it is far more advanced). It is a flexible solution for many things I often need, but not this. Definitely something to keep in mind for another project that needs more than just simple content management.

The last one I ran into was RespondCMS. A static, WYSIWYG, bootstrap based CMS. It is very flexible with it’s plugins and content components and, using Javascript or your own API, it can be used to basically create anything you want statically and hybrid without writing too much code. It’s WYSIWYG frontend requires a bit of playing around with before you can use it in production. 

In the coming months I will play around with Respond and see if it works well enough to use (or if it is easy enough to contribute to the things that do not work well enough). Even the combination Directus & Respond for a hybrid static/dynamic system seems compelling. AJAX all the dynamic stuff with simple custom Angular components that go into Respond. 

 

CR95HF.dll won’t load in Windows (8/10) 64-bit – System.BadImageFormatException

This goes for all non-managed DLLs which are 32-bit but have the .NET application loading them compiled with AnyCPU (and not x86).

If this message appears in the Event Viewer : System.BadImageFormatException related to a dll (in this case the CR95HF.dll for NFC) , download the Windows SDK for your Windows version. It will contain CorFlags.exe in \Program Files\Windows SDKs\Windows\v7.1\Bin\.

Simply set the header of the managed .NET .exe to 32bit;

\Program Files\Windows SDKs\Windows\v7.1\Bin\CorFlags.exe /32BIT+ YourApplication.exe

And try to run it again ; it likely will run without any issues!

 

 

 

 

 

Physics Body Editor Java 7 – Mac OS X

Because the downloads and binaries for the Physics Body Editor / Box2D editor do not work on modern versions of Mac OS X / Java 7.x, here is the recompiled binary.

Run with:

java -jar physics-body-editor.jar

 


 

This does not yet work with Java 8 (issue with Java 8 and LibGDK). If you have Java 8 installed, here is a version which includes the Java 6 runtime so it will work always.

 

Using Physics body editor files in actual games; https://github.com/fundead/BodyEditorLoaderXNA