Command injection in SuperSocket

Command injection in SuperSocket

SuperSocket uses reflection by default to inject commands into AppServers. Here is a complete sample of how to create your own CommandLoader instead of the default ReflectLoader, adding it to your AppServer without modifying any settings file. We start by creating a custom commandloader class. Then we create a custom AppServer class in which we override (TAppSession specifies your custom AppSession type). Now we have everything in place. When injecting your AppServer you can also inject all commands using your…

Read More Read More

Loading pages into jQuery UI Dialogboxes

Loading pages into jQuery UI Dialogboxes

Here is a method for loading pages into dialog boxes. Since elements in the loaded pages will arrive after DOM it can be needed to reload and reinit some js/jquery functionality when pulling the page. The above function can then be coupled with elements like this:

Extending versioning metadata for RavenDB

Extending versioning metadata for RavenDB

RavenDB:s version bundle enables you to get built in versioning of all objects. These can easily be manipulated just like any other object and in this guide i will show an example on how to add useful metadata tags to the default objects. The version bundle automatically add Version number and the Updated date. We will here add creator, created date, modified by and bring them all together in a base class that all our objects can then inherit. Note:…

Read More Read More

Unit of work setup using Ninject and Ravendb

Unit of work setup using Ninject and Ravendb

This is an example of setting up RavenDb using Ninject, Unit of work style. There are a number of different approaches out there, many using an abstract base controller. But this one is inspired by a castle based solution i stumbled upon wich i liked. The first thing you need to setup is the nuget packages. What you need are the ‘Ninject.MVC3’ and ‘RavenDB.Client.MvcIntegration’ basically (presuming you are using a standalone RavenDB server). When this is taken care of we…

Read More Read More

My first Kooboo 3 site done

My first Kooboo 3 site done

Finished Honeypajs.se recently, a quick project wich is the first that i have built on kooboo 3. This site used a module and, though the learning threshold is higher in v3, i like what the have made to the module development. You can for example import only the content types you need to interact with avoiding using the entire site. Except for the module (that is used to return some json results) everything on the site is standard Kooboo functionality.

Kooboo 3 in Swedish

Kooboo 3 in Swedish

I made a quick translation in swedish for Kooboo 3 (resx used from the 3.0.3 package). Just put the file in the I18N folder and switch locale in the user profile on the admin panel. You can find the file HERE. PS:  If you finds errors or less desirably translated words, let me know so that i may correct it.

Kooboo 3.0.3 released

Kooboo 3.0.3 released

Kooboo released the 3.0.3 version of their CMS today and it looks promising. The first thing one encounters is the ‘Empty site’ template wich elemininating the need of having to clean new sites after creation.  Folder based role management on content is another nice addition. I had some issues with Ravendb on 3.0.2 and i guess i got confirmed that it wasnt just me since the Ravendb support is pulled in 3.0.3. If your in need of a content oriented…

Read More Read More