Regular expressions give you a set of tools to match strings of text, which is often useful for validating user data. Many novice programmers often have trouble with regular expressions. In this article we are going to take a look at the fundamentals. In later articles we will take a look at more advanced regular [...]
Convert text to an image
Inspired by this post, I decided to write a file to bmp converter (because I have nothing better to do with my life). [code lang="c"]//because I can... #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> int main(int argc, char **argv) { if(argc != 3) printf("%s <input-file> <output-file>\n", argv[0]); FILE *input_file, *output_file; long size; char *buffer; [...]
How to change your company name in Xcode 4.0
I probably just spent about 45 minutes searching, and trying to change the default company name Xcode uses. There was a lot of information on how to change the company name for the project, and a lot of useless commands that tried to edit the plist file. To change the default company name, simply change [...]