Showing posts from February, 2020

Removing adware from Chrome

Removing and so on. If your Google search results are filled with useless thumbnails and links are redirected through your Google Chrome is infected with a malicious javascript which probably came attached with one of the Chrome Extension.   Problem : Google Search results have thumbnails in front of them and links are redirected  through or In some case, you are redirected to an entirely different page. Google search results are modified with affiliate links. Solution : Remove any/all Chrome extensions that help with downloads. Example: Downloader for Instagram, Video Downloader, Free Download Manager. How? There are very detailed insights on being malware or not  here . Needless to say, there's indeed some undesired behaviour. Is malware? Removal of i

Work around for Broadcast receiver not working in Chinese mobiles

If you're having trouble with your Android app not responding to certain events in Mi, Oppo, Vivo or Letv devices it's not your fault. This could include and is not limited to, service app not working properly, push notifications not working properly, application not opening up when intended.  It is because of the extensive battery saver and the so-called saving the user from apps spamming their activity. Here's the funniest part about it We wrote to someone very senior at Xiaomi. He reverted that they manually whitelist a few apps, and the rest are by default disallowed from accessing the notifications folder. This was the response. "This usually happens because of whitelisting of apps that can access notifications folder. This is a feature to ensure the user is protected from spam and also helps to ensure RAM/battery usage optimization." We asked what the process was to get an app whitelisted, and did not get a response.    This is coming from a

How to Convert a String to Date in Java

How to Convert a String to Date in Java Converting a string to a date in Java (or any programming language) is a fundamental skill and is useful to know when working on projects. Sometimes, it is easier to work with a string to represent a date, and then convert it to a date object for further use. Date   API The Date / Time API in Java works by default with the ISO 8601 format, which is (yyyy-MM-dd).By default all dates follow this format, and all strings that are converted should follow this if they are using the default formatter. parse() The date-time API provides parse () methods to parse a string that contains date information. To convert string objects to LocalDateTime objects, the string must represent a valid date or time according to ISO_LOCAL_DATE Example, let's convert a String to a java.time . LocalDate : LocalDate date = LocalDate.parse("2018-05-05"); Parse API with a Custom Formate This format specifies three character