Sorting your C# objects with LINQ

Last modified: 09/01/2012

No Comments

Suppose you create a Box class with some properties.

  1.  
  2. class Box
  3. {
  4.    public string Name
  5.    { get; set; }
  6.  
  7.    public string Color
  8.    { get; set; }
  9.  
  10.    public string Label
  11.    { get; set; }
  12.  
  13.    public DateTime CreatedAt
  14.    { get; set; }
  15.  
  16.    public override string ToString()
  17.    {
  18.      return string.Format("[Name: {0}; Color: {1}; Label: {2}; CreatedAt: {3}]",
  19.                           Name, Color, Label, CreatedAt);
  20.    }
  21. }

More

Rating 3.00 out of 5
[?]

Downsample your images in batch with ImageMagick

Last modified: 29/12/2011

No Comments

Have you ever send some pictures to your friends by email or posted them somewhere on the web? I guess you did!

If these images are of high resolution they will take a lot of bandwidth.
So normally it’s preferable to first downsample those images.

ImageMagick is a very handy commandline tool to do the trick.

More

Rating 3.00 out of 5
[?]

C# value type, reference type, pass by value, pass by reference

Last modified: 04/08/2011

No Comments

I experienced that the terms value type, reference type, pass by value, pass by reference are sometimes confusing for the beginning C# programmer (I include myself to this category).
Therefore I will try to explain this as clearly as possible with some small examples.
More

Rating 3.00 out of 5
[?]

Learning to drum

Last modified: 26/07/2011

No Comments

Intro

It has been a while that I posted on my blog but my motto is “less is more” and in between I moved this site to another host.

500 MB disk space, 2 GB data traffic and 5 MySQL databases for 0,99 euro/month!

Drumming is fun

For all of you who are eager to learn, the Internet is like a candy shop. Not only for programmers but also for music lovers and drummers.

More

Rating 3.00 out of 5
[?]

Uptranslate and context translate with OmniMark

Last modified: 26/01/2012

No Comments

This post will explain some of the unique conversion features of OmniMark, which is uptranslate and context translate (See the conversion scheme to have an overview of the different types of conversion).

An uptranslate makes it possible to create XML (or SGML) starting from structured data. And this structured data doesn’t have to be XML. While creating this XML it is sent to the parser.

A context translate goes even a step further, it’s a combination of an uptranslate followed by a downtranslate.

More

Rating 3.00 out of 5
[?]

Video tutorials learning Joomla

Last modified: 13/02/2011

No Comments

I was searching the Internet to find some free tutorials about Joomla.

Joomla is a content management system to build websites.

More

Rating 3.00 out of 5
[?]

Unicode is not UTF-8

Last modified: 07/11/2010

No Comments

Sometimes I experience that Unicode and UTF-8 are mentioned as if it is the same thing. Although there is a relationship they are not the same.

This post explains shortly this relationship and gives you some references if you are interested in this material (and every programmer should!).

More

Rating 3.00 out of 5
[?]

Solving the streaming paradigm with OmniMark referents

Last modified: 14/10/2010

2 Comments

Unlike XSLT processors, OmniMark uses a streaming model to process XML/SGML.

A streaming model has advantages but it also has disadvantages. The XML flows from top to bottom. You can’t randomly access the XML tree in memory.

So how can you process an XML node in the beginning of a document if it depends on a node that hasn’t streamed yet or maybe never will come?

More

Rating 3.00 out of 5
[?]

Passed LPIC-1 exam 101

Last modified: 14/10/2010

No Comments

Today I passed for my LPIC-1 exam 101!

More

Rating 3.50 out of 5
[?]

Discarding content with the OmniMark suppress operator

Last modified: 14/10/2010

No Comments

Until now I only demonstrated examples where XML content is processed without suppressing the content.

More

Rating 3.00 out of 5
[?]

Older Entries