Posts

Showing posts from August, 2015

Takealot - South Africa's best online shop with the WORST searching in the history of searching

South Africa is slowly but surely getting on the online shopping bandwagon, and we have a few big online retailers, but the one I'm going to be talking about in this blog post is Takealot. They used to be called take2, but there was some issue with the name so they changed it. They've also absorbed Kalahari a few months ago, so I think it's safe to say they're the biggest online shop in SA. We buy from them often. Especially because they deliver for free if you order over a certain amount, and they have those damn daily deals which are hard to resist. But, and it saddens me a great deal to say this - their searching SUCKS. Finding an item on Takealot is akin to finding that proverbial needle in the haystack. It's much more difficult than it's supposed to be. So many times I've searched for something on Takealot, then I'm bombarded with irrelevant results. And complaining about this on their social media doesn't do anything. Now, I'm a web...

Unity Tutorial - how to make a Dictionary show up in the editor

Image
I discovered how awesome Dictionaries are this week (yes I haven't been coding in Unity C# that long ok hehe). It's basically a key-value pair fancy array thing :) Here's how you'd use it: Dictionary<string, string> nameOfMyDictionary = new Dictionary<string, string> (); (Remember to include the System.Collections.Generic; namespace at the top of your file, otherwise this won't work...) Then, you can add stuff to it with code using the Add() function, etc. Similar to Lists. Anyway, I discovered that they don't show up the Editor like normal arrays do. And that made me a little sad. So, here's a small workaround I discovered. I'm sure it's not the best way to do it, but it works for me. Firstly, create a struct containing the key-value pair variables , and remember to add System.Serializable to allow them to show up in the editor: [System.Serializable] public struct NameOfStruct { public string  string1UniqueKey; pub...