Skip to content

Instantly share code, notes, and snippets.

View lambidu's full-sized avatar

Roman Popovici lambidu

View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSecondsInSystemClock"=dword:00000001
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSecondsInSystemClock"=dword:00000001

Steps to Install ImageMagick for Windows

  1. Open PHPInfo and check: Architecture = x86 or x64, Thread Safety = yes or no;
  2. Download ImageMagick from: http://windows.php.net/downloads/pecl/deps;
  3. Unzip and copy all dlls from the bin subfolder to the Apache bin directory; It's a bunch of CORE_RL_*.dll and IM_MOD_RL_*.dll plus a few other dlls;
  4. Goto: http://pecl.php.net/package/imagick and download latest version;
  5. Unzip and copy php_imagick.dll to the php extension folder;
  6. Edit php.ini and add at the very end: extension=php_imagick.dll;
  7. Restart Apache

MySQL utils

Disable ONLY_FULL_GROUP_BY

SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode, 'ONLY_FULL_GROUP_BY', ''));

An error such as "@angular/compiler is not in the npm registry" suggests that Visual Studio 2015 is using an older version of npm.

Update to the latest installed version of npm:

  1. Tools > Options > Projects and Solutions > External Web Tools.
  2. On the right, move the $(PATH) entry above the $(DevEnvDir) entries.
  3. Restart Visual Studio for this change to take effect.

Compiler errors such as "Property 'map' does not exist on type 'Observable'" and "Observable cannot be found" indicate an old release of Visual Studio.

Exit Visual Studio and follow the instructions here

You'll be asked to replace the file c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript.typescriptServices.js This operation requires admin privileges.