How to stream music from your router to your android devices

Fitzbox NASThese days you will get faced with the term “cloud” everywhere. I am, for my part, not really a fan of cloud streaming because nearly every solution that I tried did not work without complications.
But in recent weeks, I got friend with a streaming solution within my appartment’s walls. And this solution is what I want to introduce to you today.
At first some information concerning the initial situation. I confess that I am a passionate fan of audio dramas. (I’m really addicted to “The three Investigators”. Some of my friends blaspheme, that I were too old for it, but take it from me, you’re never too old for The Three Investigator because it’s cult!)
However, normally I like to listen to another episode every evening. But to copy every evening another tape to my phone is […]

How to create video files in C# (from single images)

create videos in csharpToday there is again a bit of C# code. I’m writing about how you can create video files in C # from individual images or bitmaps. Using the AForge library, which I have used in the already in the C# webcam tutorial, this is going to be relatively simple.
Preparations
For the following tutorial you need the AForge.Video.FFMPEG.dll library and its FFMPEG libraries. Both can be found by clicking the below link. On the downloadpage you have to select that .zip-file, which contains “(libs only)” in it’s filename.

AForge Libs Download

Now open your Visual Studio or an alternative program, that you want to use to write your program. (For the following tutorial I’m using Visual Studio.)
Create a project
Next you create a new project, I decided on a WinForms project, and wait until […]

Performance test: rotate images in C# – Bitmap.RotateFlip vs.Graphics-Object

During my search for a function to rotate images in C#, I came across the following post on dotnet-snippets.de: rotate images with C #.
Besides the method presented in the article there were 2 other approaches presented in the comments and so the question was: which method is the fastest of them.
Since this also awakened my interest, I wrote a small test application which checks every of those functions for their performance.
After a few test runs, it became clear that the original solution from the above mentioned post was not suitable because it created a new bitmap every run, what eats tons of memory. Thus, the following function has been excluded from the tests.

public Bitmap rotateImage(Bitmap bitmap, float angle)
{
Bitmap returnBitmap = new Bitmap(bitmap.Width, bitmap.Height);
Graphics graphics = Graphics.FromImage(returnBitmap);
graphics.TranslateTransform((float)bitmap.Width / 2, (float)bitmap.Height / 2);
[…]

“A regular crossword” – a crossword puzzle for coders

How about a crossword puzzle for programmers? One in which the searched words are not described by reference words, but by regular expressions. That’s what I call a crossword. And so I got immediately enthusiastic about the regular expression crossword from this years MIT Mystery Hunt when a friend pointed it to me. (The Mystery Hunt is a competition that is arranged for more than 30 years, held every year at MIT and in which it comes to solve a whole bunch of puzzles.)
One part of this year’s MIT Mystery Hunt is the just mentioned crossword which is titled “A regular Crossword”. Contrary to classical crosswords there are three descriptive directions. The horizontal and two diagonal. Each direction is described by a regular expression.
And now to the puzzle. You can download it as PDF file on the MIT Coinheist page. Alternatively, I’ve saved a copy on my server.