Category Archive News

ByMogens

Tababular

Sometimes it’s nice to be able to work with text, especially when you’re building command-line applications. I usually end up with a bunch of little text formatting helper methods, and recently I made one that could format a JSON array as a nice ASCII table.

I figured that this could be of use to other people as well, so I pulled it out, cleaned it up, added a few nifties, and made it into a NuGet package: Tababular (the code is on GitHub as usual).

First you

Install-Package Tababular -ProjectName YourProject

and then you can do this:

var objects = new[]
{
    new {FirstColumn = "r1", SecondColumn = "hej", ThirdColumn = "hej igen"},
    new {FirstColumn = "r2", SecondColumn = "hej", ThirdColumn = "hej igen"},
};

var text = tableFormatter.FormatObjects(objects);

Console.WriteLine(text);

which will give you something nice to look at:

===============================================
| FirstColumn  | SecondColumn  | ThirdColumn  |
===============================================
| r1           | hej           | hej igen     |
===============================================
| r2           | hej           | hej igen     |
===============================================

and that’s it 🙂

(although there’s a few nice details, like e.g. the ability to properly format multiple lines in cells, etc.)

ByMogens

Rebus FM and open source

It should come as no surprise that we love open source here at Rebus FM – after all, we are building our business around Rebus, which has always had pure open source pumping through its arteries.

We are doing other things too, which we plan to release on the rebus-org organization on GitHub.

If you are working with either Microsoft SQL Server or the excellent PostgreSQL in .NET, you might want to check out our latest addition to the org: Migr8.

Migr8 is a sweet database migration tool that allows for having migrations written as short and sweet scripts, either in C# code or as text files.

It is pretty unique because it supports parallel development of migrations, and thus is the perfect companion if you are working with a git-flow-like workflow where multiple branches are being developed at the same time.

Moreover, Migr8 has now been extended to support PostgreSQL – so, depending on which database you want to use, you can either

Install-Package Migr8 -ProjectName YourProject

or

Install-Package Migr8.Npgsql -ProjectName YourProject

and then start migrating that database.

ByMogens

We have stickers!!

FullSizeRender (4)It’s a funny thing, but it seems laptop stickers are somehow pretty important to software developers… I know, because I am certainly guilty of plastering over several company laptops too – and I don’t want any sticker on my most important tool, I carefully apply only those with which I have a special interest or relation.

It is this realization that led Rebus.fm to order a bunch of Rebus stickers – so we can give them to people who like Rebus enough to want to show it to others.

Please get in touch if you want a sticker – then we’ll figure something out 🙂

 

ByMogens

Opening reception in The Alley

To mark the opening of Alley 87, we are having an opening reception on February the 12th at 14:00. Read More

ByMogens

Office in the alley

To improve focus – and to reduce the risk of me, ending up sitting at home in my underpants with a huge beard Read More

ByMogens

Rebus passed 300 stars on GitHub

I’m not sure this actually qualifies as “news”, but I still think it means something 🙂  Read More

ByMogens

It’s alive!

This is the first day of 2016, and Rebus Fleet Management a.k.a. rebus.fm is alive!

Read More