WordPress database error: [MySQL server has gone away]
UPDATE wp_options SET option_value = '' WHERE option_name = 'cache_vars'
WordPress database error: [MySQL server has gone away]
SELECT * FROM wp_users WHERE ID = '1' LIMIT 1
WordPress database error: [MySQL server has gone away]
SELECT meta_key FROM wp_postmeta WHERE meta_key = 'views' AND post_id = '218'
WordPress database error: [MySQL server has gone away]
SELECT * FROM wp_users WHERE ID = '1' LIMIT 1
That’s what it takes to write an Hello World program in Erlang, after you installed the Erlang system on your machine.
Here’s the program itself:
What does that means? Briefly:
function to the outer world. It means the other modules can call this function. What does the “/0″ means? It means the “hello_world” function with 0 parameters. In Erlang, you can have different functions with the same name and different number of parameters.
To run your program you must start the Erlang shell first:
Try it, and understand it. Next time will be a little bit more complex!
Note: if you guess why by copying and pasting the code you get a lot of errors, that’s because SciTe, the editor I use, exports the code with fancy double quotes. That’s a good reason to not being lazy and write the program by yourself! Writing it’s a nice way of learning!
WordPress database error: [MySQL server has gone away]
SELECT * FROM wp_users WHERE ID = '1' LIMIT 1
WordPress database error: [MySQL server has gone away]
SELECT * FROM wp_comments WHERE comment_post_ID = '218' AND comment_approved = '1' ORDER BY comment_date