How to terminate a program when it crashes? (which should just fail a unit test instead of getting stuck forever)

A summary from the answers by jdehaan and Eric Brown, as well as this question (see also this question): N.B. These solutions may affect other error reporting as well, e.g. failure to load a DLL or open a file. Option 1: Disable globally Works globally on the entire user account or machine, which can be … Read more

How to install RVM on Windows 7

No RVM for you! From RVM’s FAQ: Does RVM work on windows? Will it in the future? NO. If you would like to manage multiple versions of ruby on windows please use pik which is an excellent tool by Gordon Thiesfeld. You can find it on GitHub. There are plans to include windows support in … Read more

Access virtual host from another machine over LAN

In addition to danp’s answer, you can access the virtual host without having to change the client machine’s etc/hosts file by assigning a port to the virtual host. This is ideal if you want to access the server with a mobile or tablet device: Edit server’s httpd.conf file at: \wamp\bin\apache\apache2.2.x\conf\httpd.conf Search for “Listen” (around line … Read more

Create a function with optional call variables

Powershell provides a lot of built-in support for common parameter scenarios, including mandatory parameters, optional parameters, “switch” (aka flag) parameters, and “parameter sets.” By default, all parameters are optional. The most basic approach is to simply check each one for $null, then implement whatever logic you want from there. This is basically what you have … Read more

Visual Studio 2015 does not start

I had the same problem recently after I upgraded one of the packages. I tried “everything” and the only option that worked was the /Setup switch (I was logged in as Administrator, but don’t think that’s required). c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>devenv.exe /Setup c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>devenv.exe https://msdn.microsoft.com/en-us/library/ex6a2fad.aspx

Do Windows 8 Store Apps (Metro) run in Windows 7 or XP?

What new things needed to run Metro Apps in Windows XP or Windows 7 A virtual machine of Windows 8. Metro apps currently don’t run on Windows 7, and definitely don’t on Windows XP. According to this thread, it’s difficult but might happen eventually: Keep your eyes out on future Channel 9 videos and on … Read more

Java user.home is being set to %userprofile% and not being resolved

The majority of the registry keys located at: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders began with %userprofile%. I updated all of the registry keys that began with %userprofile% to begin with C:\Users\myusername. I verified on Windows XP that the paths are in fact hard coded and that %userprofile% is not used. The IT guys mentioned that the registry keys … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)