Parse Strings from a JSON and create Objects

Friends and I are about to get started in entrepreneurial things. Our customer has a large database of products (mostly beverages) which are mainly just stored as Name:Description pairs. One of our duties is to actually draw as much information as possible from the given descriptions and save them as csv or whatever-table.

Now, doing this by hand is kind of tedious because there are about 2200 products to check. This would take quite a while to do manually, so I sat down and wrote a tiny parser for that!

After specifying a dictionary in form of JSON and defining some classes, the program is able to parse a string to an object, which then can be used for whatever usage there is. Nifty, as this really can save quite some time and is easy to maintain for even non-programmers (“program it for your customer and he is happy for a day, but teach your customer to fill a JSON and he’ll make himself happy. All day, every day.”).

Full code and detailed documentation is as always available at this github repository!

Tex File Creation Scripts

The new semester has started and I am hearing some lectures where you have to hand in assignments every week. We computer scientists are not that pretty ourselves in most cases, so at least our submissions should not look like the stereotypical .doc submission of other students. And logic is pretty, and $latex \LaTeX$ is like so logic, you actually have to program your text.

So over the past semesters, I have, just like most of my fellow students, created a bunch of \newcommands (“macros”) tailored to my needs when TEXing. They are kind of default to my submissions so these macros should be present in every tex file I create. Continue reading “Tex File Creation Scripts”