Chrome developer tools is a suite of tools that helps every web developer to develop, test and debug web sites and applications directly from the Google Chrome browser. Some might argue that it comes only in “White”, however there is a hidden feature that can change the color so as to personalize it based on your preferences. ZeroDarkMatrix is a very nice option for developers who prefer dark…
What is AutoMapper? AutoMapper is a simple little library built to solve a deceptively complex problem – getting rid of code that mapped one object to another. This can be very useful when you want to map your Model to ViewModel and vice versa, without writing and maintaining property mapping between those objects. How to Install it AutoMapper is available through Nuget, so…
In cases you want to display a more personalized avatar for a user that hasn’t uploaded any image to his profile, Canvas might help you through its toDataURI() function. So, let’s see what this method is all about. The HTMLCanvasElement.toDataURL() method returns a data URIs containing a representation of the image in the format specified by the type parameter (defaults to…
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:
1 2 3 4 | mkdir empty_dir robocopy empty_dir dir_to_delete /s /mir rmdir empty_dir rmdir dir_to_delete |
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:
1 | sudo chown -R www-data:www-data /var/www/wordpress-site |
This will set up the ownership properties, recursively, to…