Posts

Showing posts with the label tech

I think I found a bug in cmtrace

Image
At work today I was looking through a log file generated by PSADT and noticed something weird. Compare the selected line in blue and the box below. Can you see it? (cmtrace version 5.0.9068.1000, I believe this is the current up to date version) Hint: The folder in ccmcache for the content is named "n".  Now, compare this to an older version of cmtrace where we see the same log file (cmtrace version 5.0.7804.1000, some years old) In case it's not clear: (new/current cmtrace. where is the n folder? For some reason, "\n" is getting removed from the box below in the new version of cmtrace.  My guess why this is happening: \n can be interpretet as a newline character. I believe this is happening, and in addition it strips away newlines. So "\n" just vanishes. The older version does not have this issue. That's all for now, have a great day!

Regex Crossword

So today a colleague told me about  regexcrossword.com I'm done with the beginner levels, I think I'm hooked.  Do you like regex and puzzles? Of course you do, try it out!👍

Automated Grocery Shopping

Image
I want to share a project I worked on a while ago, that I still use from time to time.  Basically all my grocery shopping is done at Kolonial.no, which is a Norwegian online grocery store that has an api for the shopping cart and products.  I am a cheapskate in many fields, including grocery shopping. And how I shop is somewhat robotic, very predictable and some might say boring and uninspired. But the thought process when I select items, can easily be automated, so I did. The code is on my github .  All the docs are there, so I won't bore you with that here.  But the idea and process is quite simple: I need eggs. Eggs are not a product. Eggs are a category of products . So my shopping list in this code is the category ID of eggs at kolonial.no.  On the same line in my shopping list I can also specify words that should or should not appear in the product name. For example "frittgående" should be in the name. (Norwegian for "free range") Next filter is whether or...