StackOverflow user graham added a reference to a third-party DLL
called ServiceProvider.dll, but couldn't figure out which using directive to use to
access the types made available in that DLL.
Most times, the DLL is named after the default namespace, which would suggest that a simple using ServiceProvider; should
help, but that didn't work. When using closed-source SDKs that you purchase licenses for from some company, it is pretty common
to find that their namespaces are named after the company itself. In this case, the root of the namespace hierarchy was Avaya,
after the company.
When you double-click the reference in the Solution Explorer, the Object Browser opens up with the double-clicked referenced assembly
pre-selected. All you have to do then is to expand the selected row to see all namespaces included in the dll file.
One of the remnants of early PC computers is the Num Lock key. For most people, like
me, it is just a nuisance. I mostly use my laptop with a dock connected to a standard
102 key keyboard, so when I use the numpad, I want numbers to appear – I don't want
the cursor to move semi-randomly across my document. When I sometimes hit the Num
Lock key by accident, I'm always in for a few seconds of feeling annoyed.
If you have the same problem, try importing this file in Regedit(run as administrator):
; numlock.regWindows Registry Editor Version 5.00[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]"InitialKeyboardIndicators"="2147483650"[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,45,00,00,00,00,00
This will fix two things:
The first setting makes Num Lock turned on by default at reboot
The second setting disables the Num Lock key (key code 45) completely so that its signals don't reach the operating system correctly
Use this tip on your own risk. Don't forget to backup your registry before doing this. Changing things
in RegEdit is always risky and in no event will I be liable for any loss or damage arising from the use of this information.
Yesterday Microsoft held Build 2015 and
presented lots of nice things to the developer community. I have always loved Microsoft's developer tools,
and started using Visual Studio back in 1997,
hacking away with Visual Basic and Visual C++.
Now I still use Visual Studio at work, but for my personal projects, I mostly do web development in PHP and
sometimes ASP.NET MVC. For the PHP projects, I have been
using Komodo Edit for a while now, and am happy with it.
Visual Studio Code
After a quick download and a smooth installation, Visual Studio Code booted. I opened a folder full of
found a rookie mistake for me...
A couple of HTML IntelliSense suggestions
Allowed attribute values should be suggested, like when typing <link rel=", I would like a popdown
list to suggest things like stylesheet and so on.
Element suggestion should only include elements that make sense in the context. Directly inside an <ul> element, there is no point in suggesting a <blockquote>. Only <li>, <script> and <template> elements make any sense.
What will make me switch
The editor is really nice to work with, it feels snappy and does things well. Changing personal settings is
done in JSON, which is cool, because JSON... Until PHP IntelliSense is added, and some improvements are made
in HTML editing, I will stick to Komodo Edit, but I will probably switch to Visual Studio Code eventually.