Archive for the ‘ Development ’ Category
My assumption going into this was that creating a tree-like relationship within one of my models would be fairly straightforward with Cake’s model relationships. As it turns out, I was absolutely correct. Let’s say we want to create a model called “Category”, and each category can belong to a parent category. In other words, we [ READ MORE ]
10. get_browser() This function comes in handy when collecting information about a user’s browser to determine the content capabilities for that user. It returns an associative array containing information such as the browser type, version, whether or not it is capable of handling frames, cookies, and javascript, and the platform on which the browser is [ READ MORE ]
I ran into a strange bug this week in the code to the C project I’ve been working on. Seemingly randomly, I was encountering a segfault in a call to malloc() while allocating memory for a new struct. The problem had me completely baffled, and web searches turned up no useful information, since most people [ READ MORE ]