Knowledge.ToString()

  • Fixed – WordPress User Role dropdown is blank

    Issue When I try to add a new user in WordPress under Admin > Users > Add New User, it shows blank dropdown. Root Cause I manually tried to change the WordPress prefix after WordPress blog was created. I made change only within wp-config.php and renamed tables but it required change in data as well.…

    |

  • Fixed – Media Library Folders plugin TypeError XYZ is undefined

    Issue When I tried to use Media Library Folders WordPress plugin, it shows following errors Root Cause I manually tried to change the WordPress prefix after WordPress blog was created. I made change only within wp-config.php and renamed tabled but it required change in data as well. This caused the issue. Fix Table PREFIX_options has…

    |

  • FabricJS Image.applyFilters trims image

    Issue When you apply filters to an image, it trims on the right or bottom part. Cause Internally by default image is painted over a tile of 2048×2048. If the height or width of the image is greater than 2048, remaining part of the image will be trimmed. Fix Increase textureSize to 4096 at the…

    |

  • Solved: .Net Core publishes lots of files for framework dependent deployment mode

    Issue I have .Net Core 2.1 SDK installed on the machine. When I publish the application with deployment mode = Framework Dependent for Linux, it outputs lots of dlls including the framework dlls. There is a very minor difference in number of files between the Framework Dependent and Self Contained deployment mode. Solution I had…

    |

  • Webmin: How to change the size of Swap?

    Even after searching on internet, I could not find a way to change the Swap size. Various online tutorials only showed us how to create swap space but did not explicitly address how to change the size of swap space using Webmin. Of course, this tutorial does not use Webmin but instead it uses commands…

    |

  • Mailto Invalid URI: The Hostname Could Not be Parsed.

    If the Uri is “mailto”, the Uri format must be in the following format. I encountered following error It was difficult to find the root cause. Finally I found that I used “&subject” (ampersand) for the first parameter instead of “?subject” (question mark). Once I used “?subject”, everything worked as expected.

    |

  • CsvHelper – Cannot write to a closed TextWriter.

    If you are using CsvHelper and get the error “Cannot write to a closed TextWriter”, here is a solution. You are trying to reuse the same underlying stream to write using CsvWriter Instead, you don’t want to close the underlying stream so change your code to “true” parameter will leave the underlying stream open.

    |

  • Solved: No resource identifier found for attribute ‘configchanges’ in package ‘android’

    I was following the Xamarin forms tutorial to integrate AdMob and following error came up No matter what I did and tried to find on the internet but could not find the fix. Finally I tried to look very closely and found a small mistake. Here is what I copied from the tutorial Instead, it…

    |

  • Fixed: CLANGCOMPILE : error : invalid argument ‘-std=c++11’ not allowed with ‘C/ObjC’

    Issue I am compiling a solution with C++ and C files together. If I compiled only C files, it worked but as soon as I added C++ files, it was complaining about C++11 features. Based on online forums, when I added “-std=c++11” under Visual Studio Project > Properties > Configuration Properties > C/C++ > Command…

    |

  • CPPAN – You have spaces in the storage directory path

    I am using space in my username and when I tried to use CPPAN, it showed following error. Searching online did not yield any result and gradually found this link (https://github.com/cppan/cppan/blob/6412cba134147c5c8a5da424dd72ea62e779e4b1/doc/faq.md) which shows how to change storage directory path. All you have to do is open “C:\Users\[USER NAME]\.cppan\cppan.yml” and change the “storage_dir” value to your…

    |