Wednesday, December 21, 2011

On VC++ 2005 Express intellisense

When working with a large codebase in VC++ 2005 Express SP1, the IDE might crash when updating intellisense.
It looks like there are a couple of hotfixes for this problem: KB913377 and KB947315.
After installing, the IDE did not crush anymore (tested on Webkit).

Wednesday, December 14, 2011

My "JSBSim Applications to UAV Flight Dynamics Models" article published

One of my latest articles "JSBSim Applications to UAV Flight Dynamics Models" was published in Scientific Bulletin of "POLITEHNICA" University of Timisoara (Vol 56 (70), No. 3 / Sept. 2011).

Monday, October 3, 2011

How to execute a remote command in IronRuby


def execute_remote_command(command, machine_name, username, password)
 begin
 require "System"
 windir = System::Environment.GetFolderPath(System::Environment::SpecialFolder.Windows)
 Dir.chdir "#{windir}\\Microsoft.NET\\Framework\\v4.0.30319\\"
 require 'System.Management'
        
 options = System::Management::ConnectionOptions.new()
 options.Username = username
 options.Password = password


 path = System::Management::ManagementPath.new("\\\\#{machine_name}\\root\\cimv2:Win32_Process")
 scope = System::Management::ManagementScope.new(path, options)


 scope.Connect()


 opt = System::Management::ObjectGetOptions.new()
 class_instance = System::Management::ManagementClass.new(scope, path, opt)


 in_params = class_instance.GetMethodParameters("Create")
 in_params["CommandLine"] = command


 # Execute the method and obtain the return values.
 out_params = class_instance.InvokeMethod("Create", in_params, nil)
 return out_params["returnValue"]
rescue Exception => ex
 puts ex.ToString()
 return "-1"
 end
# Return values:
# 0 Successful completion 
# 2 Access denied 
# 3 Insufficient privilege 
# 8 Unknown failure 
# 9 Path not found 
# 21 Invalid parameter
# -1 Other exception
end

Wednesday, July 20, 2011

Debug the undebugable in SD 4.2

Hey,
Last week I've integrated the ILSpy debugger capabilities in SharpDevelop 4.2 debugger.
Below, you can see a little video with the feature and you can read more on my SD blog.
Unable to display content. Adobe Flash is required.

Have fun!

Sunday, May 8, 2011

ILSpy Debugger preview - 2

Hey,
This week I put together a new preview of ILSpy debugger. You can find the bits on the build server.
There's also a blog entry about this preview on my SharpDevelop blog.