Processing Java – “WARNING: Could not open/create prefs root node”

How to get rid of the “Could not open/create prefs root node…” warning?

  • Go into your Start Menu and type regedit into the search field
  • Navigate to path HKEY_LOCAL_MACHINE\Software\JavaSoft
    (Windows 10 seems to now have this here: HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft)
  • Right click on the JavaSoft folder and click on New -> Key
  • Name the new Key Prefs and everything should work


Windows – Enabling / Disabling SMB 1.0

How to enable / disable SMB 1.0 on Windows 7?

To prevent ransomware, it’s best to disable SMBv1 (‘WannaCry’ uses a SMBv1 exploit, for instance).
However, if you use older network drives (in my case WD MyBookWorld), they might become unreachable without SMBv1 (which happened to me…)

This applies to: Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012

Note: When you enable or disable SMBv2 in Windows 8 or in Windows Server 2012, SMBv3 is also enabled or disabled. This behavior occurs because these protocols share the same stack.

To disable SMBv1 on the SMB client, run the following commands (in the elevated command prompt):

 sc.exe config lanmanworkstation depend=bowser/mrxsmb20/nsi
 sc.exe config mrxsmb10 start=disabled

To enable SMBv1 on the SMB client, run the following commands:

sc.exe config lanmanworkstation depend=bowser/mrxsmb10/mrxsmb20/nsi
sc.exe config mrxsmb10 start=auto

Resource:
https://support.microsoft.com/en-gb/help/2696547/how-to-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and-windows-server




Windows – Network icon wrong when connected with Windows 7

  1. Right Click on Computer -> Manage
  2. Under the System Tools section, double click on Local Users and Groups
  3. Click Groups -> Right Click on Administrators -> Add to group -> Add -> Advanced -> Find now -> Double Click on Local Service -> Click Ok
  4. Close all the windows reboot the computer and check the status

Resource:
http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/network-icon-wrong-when-connected-with-windows-7/c3ee2c3f-82e5-44c7-8f40-ee7fb7f48c83?auth=1


Windows – Drag and Drop stopped working

Drag and drop suddenly stops working:

“If you’re drag and drop stop working, just click on an object (a mail if it is in Outlook, a file if it is in Explorer, etc.) with left mouse button and maintain it, then strike on your escape key (on keyboard of course) and release them all.”


Processing.js – Invalid XHR status 404

Error: uncaught exception: Processing.js: Unable to load pjs sketch files: test.pde ==> Invalid XHR status 404

Cause:
The server doesn’t support .pde files.

Fix:

  • Rename test.pde to test.js
  • Change the following line in template.html
    <canvas id=”myID” data-processing-sources=”@@sketch@@.pde” width=”@@width@@” height=”@@height@@”>
    to
    <canvas id=”myID” data-processing-sources=”@@sketch@@.js” width=”@@width@@” height=”@@height@@”>
  • Note: you have to rename the .pde file after every export!