Archive for August, 2015
Posted by jpluimers on 2015/08/18
Had to investigate some Assembly Loading issues, so I wrote two batch files to enable and disable the .NET Fusion Log:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg add " HKLM\Software\Microsoft\Fusion" /v EnableLog /t REG_DWORD /d 0 /f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg add " HKLM\Software\Microsoft\Fusion" /v EnableLog /t REG_DWORD /d 1 /f
They modify the HKLM\Software\Microsoft\Fusion key REG_DWORD value EnableLog.
A few notes:
It is very important to turn of the Fusion log settings as soon as you are finished investigating. Fusion logs potentially take a lot of resources.
When you have a .NET host like ISS , you have to restart that host (for instance by running iisreset )
There is also Fuslogvw.exe Assembly Binding Log Viewer , but I like logging over viewing as logs are persistent.
There are more values under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion you can configure; see the answer by Gary Kindel on StackOverflow :
DWORD ForceLog set value to 1
DWORD LogFailures set value to 1
DWORD LogResourceBinds set value to 1
String LogPath set value to folder for logs e.g. C:\FusionLog\ (ensure the final backslash is there and the folder exists).
–jeroen
via:
Posted in .NET , .NET 1.x , .NET 2.0 , .NET 3.0 , .NET 3.5 , .NET 4.0 , .NET 4.5 , C# , C# 1.0 , C# 2.0 , C# 3.0 , C# 4.0 , C# 5.0 , C# 6 (Roslyn) , Development , Software Development | Leave a Comment »
Posted by jpluimers on 2015/08/17
I like how MaylorTaylor formulated his question around this topic on superuser :
“USB Deivces Disabled: unplug the device using too much power to re-enable USB devices. “
Basically he regression tested many permutations of devices, cables, ports, rebooting, etc.
I had a similar problem, and found it hard to track down as it was intermittent. In the end it was not 1 but 2 USB cables being not completely reliable .
So the warning can use some improvement:
sometimes it is not a device but a cable
it doesn’t indicate on which USB port this happens
–jeroen
via: mac – USB device Disabled Mavericks – Super User .
Posted in Apple , Mac , Mac OS X / OS X / MacOS , MacBook , MacBook Retina , MacBook-Pro , OS X 10.9 Mavericks , Power User | Leave a Comment »
Posted by jpluimers on 2015/08/14
You can specify the ESXi ciphers used to serve the vSphere Client. You can do this both ways: either extend them (make it less secure, but more compatible, for instance to server vSphere Client on Windows Server 2003 / Windows XP), or restrict them to make it more secure.
VMware recommends the cipherList ALL to make it more compatible: VMware KB: vSphere Client and vSphere PowerCLI may fail to connect to vCenter Server 5.0, 5.1 and 5.5 due to a Handshake failure .
However, ALL is far too wide to be secure. Since cipherList uses the standard cipher list format documented at ciphers – SSL cipher display and cipher list tool .
You can use the cipher lists from Strong SSL Security on nginx – Raymii.org :
Read the rest of this entry »
Posted in ESXi5 , ESXi5.1 , ESXi5.5 , ESXi6 , Power User , PowerCLI , Virtualization , VMware , VMware ESXi | Leave a Comment »
Posted by jpluimers on 2015/08/14
Thanks to Ronnie Bincer , here is my start URL to find back posts and comments I made:
Note that
since my account is named and does not have an ID any more, I had to twiddle that URL a bit
https://plus.google.com/100853746448364695376 is a throw away account for a place that plays HTTPS man-in-the-middle on everyone using their network.
–jeroen
via: How to Easily Find Your Google+ Comments… .
Posted in G+: GooglePlus , Google , Power User , SocialMedia | Leave a Comment »
Posted by jpluimers on 2015/08/13
Besides commit statements from hg or git like this:
hg commit -m “fixes #6 , resolve ticket #5 and see ticket #9 and ticket #5 in the tracker”
The best is to start with the command, then finish the comment (commands in the middle of a comment are far less reliable).
There is a whole bunch of commands for which BitBucket tries to understand conjugations of verbs:
Command
“Verb”
Conjugation(s)
resolve
close
close
closes
closed
closing
resolve
fix
fix
fixed
fixes
fixing
resolve
resolve
resolve
resolves
resolved
resolving
reopen
reopen
reopen
reopens
reopening
hold
hold
hold
holds
holding
wontfix
wontfix
wontfix
invalid
invaldate
invalidate
invalidates
invalidated
invalidating
You can also use the word “issue” in the middle to just link to an issue like this syntax:
links to issue #1
Finally, you can refer from issues to change sets using a cset syntax: <<cset 2f2f8d4cae7da0e37a5ffbc81c527cb67cc56015>> where the hex number is from a URL in your commit list (for instance in https://bitbucket.org/jeroenp/fastmm/commits )
Note that linking from changesets to issues often automatically creates a back-link, but that doesn’t always work, and fixing it has very low priority (like many things on BitBucket): Issues getting linked to commits have the wrong link syntax, they show BB-6232 — Bitbucket .
–jeroen
via:
Posted in BitBucket , Development , DVCS - Distributed Version Control , git , Mercurial/Hg , Source Code Management | Leave a Comment »
Posted by jpluimers on 2015/08/12
Thanks to the answers and comments on stackoverflow, here are my steps to resurrect a closed hg branch:
List all branches (including closed ones)
Switch to a closed branch
hg update my_closed_branch_name
Change anything
For instance by adding a tag , as that is considered a versioned and mergeable change)
hg tag reopened_my_closed_branch
Or making a change to a file, then ommit your changes
hg commit -m "I changed a message"
This works because of what Lazy Badger explained in another answer which summarised is:
A commit on top of a closed head effectively opens the head.
Note: if you while experimenting with this, you want to undo your last change before committing, perform this command to revert back one revision :
hg update -C -r .
The answers and comments (thanks Lóránt Pintér for asking the question ):
Tim Delaney :
You can just hg update to the closed branch then do another hg commit and it will automatically reopen.The closed flag is just used to filter out closed branches from hg branches and hg heads unless you use the --closed option – it doesn’t prevent you from using the branches .
Francis Upton :
The commit won’t do anything unless there is something to actually commit, so you may need to make a gratuitous change to make it happen.
lorddev :
A tag is sufficient to make it commitable.
–jeroen
via: Is it possible to reopen a closed branch in Mercurial? – Stack Overflow .
Posted in Development , DVCS - Distributed Version Control , Mercurial/Hg , Source Code Management | Leave a Comment »
Posted by jpluimers on 2015/08/12
Posted in Fun | Leave a Comment »
Posted by jpluimers on 2015/08/11
I need to give this link from Jonathan Lange which was shared by David Millington some thought:
Embedded in Academia : How to Fuzz an ADT Implementation .
There they add fuzzers to help testing an ADT : in this case an Abstract Data Type in the form of a red-black tree .
And then see if it can be added to DUnit and NUnit or MSTest /VSTest in some way.
In the original post by Jonathan Lange , an important remark was made by Eric Castelijn :
… the downside being that having non deterministic tests means having test failures that are hard to repeat
…
When fuzzing multiple or composite values, the chances that you will hit interesting edge cases semi-reliably will drop dramatically, in my experience
–jeroen
via “This post has two points. First, you should write ADT fuzzers. It is often… .
VIDEO
Posted in .NET , .NET 2.0 , .NET 3.0 , .NET 3.5 , .NET 4.0 , .NET 4.5 , C# , C# 2.0 , C# 3.0 , C# 4.0 , C# 5.0 , C# 6 (Roslyn) , Delphi , Delphi 2007 , Delphi 2009 , Delphi 2010 , Delphi XE , Delphi XE2 , Delphi XE3 , Delphi XE4 , Delphi XE5 , Delphi XE6 , Delphi XE7 , Delphi XE8 , Development , Software Development | 2 Comments »