Creating a module system (dynamic loading) in C

dlopen is the way to go. Here are a few examples: Loading a plugin with dlopen: #include <dlfcn.h> … int main (const int argc, const char *argv[]) { char *plugin_name; char file_name[80]; void *plugin; … plugin = dlopen(file_name, RTLD_NOW); if (!plugin) { fatal(“Cannot load %s: %s”, plugin_name, dlerror ()); } Compiling the above: % cc … Read more

Malformed or corrupted AST file

As requested: What caused this error for me (after getting the new Xcode) was I would try to run a project in simulator (accidentally in simulator, I never use simulator), but I’d forget to select my device or my device would become unplugged without me noticing, and it will try to run in simulator… so … Read more

Searching for a Kohana Beginner’s Tutorial for PHP [closed]

The “Kohana Tutorial” pages are pants. Not so much for their content, but for the fact that they have a pretty damn unorganised wordpress blog and finding useful info isn’t exactly made easy. What they need is a post/page at http://learn.kohanaphp.com that lists the most important tutorials, rather than forcing you to wade through the … Read more

How to add a framework inside another framework (Umbrella Framework)

The temptation to distribute another framework is understandable, but highly discouraged. I’ll try to explain why that is (with arguments), and also provide some great alternatives that will help in your case. Umbrella framework are intended for use, only when you are the distributor of both frameworks, you have full control over them, and they … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)