Jay Parikh, vice president of Engineering at Facebook, gives an interesting talk at Scale conference about challenges their network engineers face due to the increased user generated content and their approach to improve end-user experience through planning, iteration and performance principles. The most interesting part appears to be their approach on making uploaded video content instantly available through distributed encoding and how they…
Let’s assume you have the following model with a non-required string property. While you are trying to save this object in your Db using Entity Framework you may see that the string property in your record will not be Null but (empty string). To overcome this you need to override SaveChages, SaveChangesAsync method in your DbContext indicating that all string properties with empty values should…
When you want to completely delete a directory and it has files with long names in it you can use ROBOCOPY Let’s assume you want to delete a folder under the name dir_to_delete from a command line you can do the following:
robocopy empty_dir dir_to_delete /s /mir
This can happen when developing with NodeJS and node_modules folder contains a very deep file structure.
When setting up a new wordpress site there might be some things that you can forget, so let’s write them down as a problem-solution. WordPress requests FTP credentials to install any new theme, plugin. You might have forgotten to set permissions on your site folder, so you need this command:
sudo chown -R www-data:www-data /var/www/wordpress-site
This will set up the ownership properties, recursively, to…