objectiveC, C# and more interesting stuff
Call Us: +31 (0) 84 86 78 130

Archive for the ‘Coding’ Category

Save an UIView to an UIImage in objective-C

For an application I am making, I am making a view where users can configure all kinds of settings, which has direct effect on an UIView I have. I want to grab that UIView and save it as an image. Well there are examples enough about this,

Read more

Note to self: how to convert hex codes in a NSString

I have been working with Freebase lately and they sometimes encode their strings, so that “special” characters are encoded in HEX. For example, sometimes you receive a string like this: Terminator_2$003A_Judgment_Day. I wanted to convert the weird encoding they use, so I wrote a piece of code

Read more

Note to self: how to convert hex codes in a NSString

I have been working with Freebase lately and they sometimes encode their strings, so that “special” characters are encoded in HEX. For example, sometimes you receive a string like this: Terminator_2$003A_Judgment_Day. I wanted to convert the weird encoding they use, so I wrote a piece of code

Read more

Using NLog in your web.config

I have been working on my YourRid.es project a bit lately and one of the things I wanted to put in place, was a good logging system. Most of the time I just use a custom build (read: my own shit) logger, but this time I found

Read more

Using NLog in your web.config

I have been working on my YourRid.es project a bit lately and one of the things I wanted to put in place, was a good logging system. Most of the time I just use a custom build (read: my own shit) logger, but this time I found

Read more

Queueing HTTP requests in objC

For WallPaper I download numerous thumbnails from my webserver at the same time. This is causing slowing speeds (to many threads at once), and too much memory usage (too much image data cached at once). So I looked in queueing the downloads and tried (ofcourse) writing my

Read more

Queueing HTTP requests in objC

For WallPaper I download numerous thumbnails from my webserver at the same time. This is causing slowing speeds (to many threads at once), and too much memory usage (too much image data cached at once). So I looked in queueing the downloads and tried (ofcourse) writing my

Read more

Reading big XML file with C# XmlReader

Today I needed to parse a LARGE (1.9GB) XML file and extract some information from it. Loading it in a XmlDocument (my favorite .NET way of handling XML) wasn’t really a possibility, because that would cause Out of Memory errors the minute I would try it. I

Read more

Reading big XML file with C# XmlReader

Today I needed to parse a LARGE (1.9GB) XML file and extract some information from it. Loading it in a XmlDocument (my favorite .NET way of handling XML) wasn’t really a possibility, because that would cause Out of Memory errors the minute I would try it. I

Read more

Resizing an image in C#

For a project I am working on, I was looking for a good way to resize images in a few different ways. I have done image resizing before, but it really feels that I am re-inventing the wheel every time I do this. So now I decided

Read more

Bad Behavior has blocked access attempts in the last 7 days.