Raising Exceptions

Programming Journey Blog

Check me out on GitHub


Jekyll Static Blog with Github Pages

28 Nov 2018 | web-development

For the past couple weeks I’ve been looking for a new host for my websites. My hosting plan with NameCheap expired last week so I’ve been shopping around to find a better host. Initially I considered renewing the hosting plan again since it’s only $38.88 per year, plus $8.88 for the SSL certificate, and $13.16 for the domain name. But I decided against it because if I just renew my hosting plan, I would just end up using WordPress again. There’s nothing wrong with using WordPress but I would not learn anything new from it.

Read more →

Identity and Craftsmanship

27 Oct 2018 | rants

A thought came to me in such a force that I felt the need to express it. There were times before when I had an idea in my mind, only to push it back because it was not a good time for me to put it down. These first few lines I put down are just reminder to myself of the thought before I fail to catch the tail end of it.

Read more →

Make a Chatbot with IBM Watson Part 2

23 Oct 2018 | technology


Here is the link to part 1: Part 1

Now that we finished with defining the intents for our chatbot, let’s move on to entities and dialogs. In general, entities are specific details about what the user wants. In the previous part, I mentioned that a user who wants to find RPG games is different from a user who wants to get a shooter game. The details about their games are different. This is where entities come in. They allow us to hone in specifically on the details and deliver customized responses to our users.

Read more →

Make a Chatbot with IBM Watson Part 1

08 Oct 2018 | technology


Here is the link to part 2: Part 2

I recently had an opportunity to play around with Watson Assistant on IBM Cloud. It was pretty fun to implement a simple chatbot from the user’s perspective. I didn’t really need to code anything to get the chatbot up and running. That would be something I want to do in the future. Once I get my feet wet with Machine Learning and Natural Language Processing libraries available on Python.

Read more →

Managing Attention Leaks

27 Sep 2018 | rants

If I need memory for something I don’t know the size of in C, I have to dynamically allocate it. malloc does this by allocating memory from the heap. Then I use a pointer to point to this block of memory. But there is no garbage collection in C. That means after I finish with it, I have to call free to deallocate the memory so it can be used for something else.

What happens when I just keep asking for memory without freeing it? Memory leaks. Over time, the program will hog all the memory until the system runs out of memory. When this happens, the whole program will crash.

Read more →