Create a WP test site with lots of users and posts

Posted on Wed 05 January 2022 in programming, IT, wordpress

The following WP-CLI command will create a lot of test data into a WordPress site: 1000 new users, each with 50 posts. Each post gets a random date in the last year and a random post content of variable length filled using a lorem ipsum generator.

WP_CLI::add_command( 'test', 'create_test_data …

Does C++ delete operator really free memory?

Posted on Wed 20 September 2017 in IT, programming

Well, I have been wondering about this for quite a while now, and I have tried to run some tests to better understand what's going on under the hood. The standard answer is that after you call delete you should not expect anything good from accessing that memory spot. However …

When you start a new project, think big!

Posted on Tue 03 April 2012 in programming

As you may know, I am the happy developer of a Wordpress plugin called Post Pay Counter. I dare say that that has been my first serious coding project, well thought and well written. It taught me a lot, above all the concept that when you start a new project …