Thursday, October 8, 2015

starting with method newCanBuildFrom in object SortedSet

I was trying to loop over Scala Enumeration values like this:
  • aEnumeration.values.map(<something>)
And I got all sort of errors that seem to be unrelated to this. So I had to comment line by line to finally found this was causing the problem.

So, to remove this exception you just have to convert Enumeration values into a Scala List:
  • aEnumeration.values.toList.map(<something>)

Exception gone!

Tuesday, October 6, 2015

MAC getting rid of Nielsen NetSight malware

One of my friends got this thing on his Mac; Chrome and other browsers were crashing and eventually his computer restarted by itself.

I was disappointed on Mac response for help, basically they ask you to backup your data and reinstall OS (or upgrade to the next OS version).

Because we were in hurry, we did not want to do backup and reinstall, so we did the following:

  1. Look for a process named "Nielsen" in the Activity monitor, don't try to kill it, it will restart by itself. It seems, at least in my case, it goes under NetSight directories. 
  2. Double click over that process, and then click over "Open Files and Ports"
    • I found something like this " /Library/NetSight/KeyboardMouse.app"
  3. So you can do one of two things, either move it or delete it (if you are not admin then you have to prepend "sudo" without quotes to any of the following instructions):
    • Open a terminal and paste anyone of the following:
      • mv /Library/NetSight/KeyboardMouse.app ~/malware
      • rm -fr /Library/NetSight/KeyboardMouse.app 
  4. Finally remove anything related to that trash (once we did this the little icon on the top disappear after restarting):
    • sudo find / -name NetSight -exec rm -rf {} \;

 In our case we did not lose any data, and Mac is acting normal now; no more Chrome crashing or Mac restarting. Anyways do this under your own risk.