Comments for SomethingAboutCode https://somethingaboutcode.wordpress.com that might be interesting to others Tue, 05 Apr 2016 09:49:06 +0000 hourly 1 http://wordpress.com/ Comment on How to use http compression with Savon by msievers83 https://somethingaboutcode.wordpress.com/2013/01/31/how-to-use-http-compression-with-savon/#comment-145 Tue, 05 Apr 2016 09:49:06 +0000 http://somethingaboutcode.wordpress.com/?p=151#comment-145 In reply to praveen kumar.

Currently I don’t use Savon anymore, so I’m afraid I cannot help with this.

]]>
Comment on How to use http compression with Savon by praveen kumar https://somethingaboutcode.wordpress.com/2013/01/31/how-to-use-http-compression-with-savon/#comment-144 Tue, 05 Apr 2016 09:30:59 +0000 http://somethingaboutcode.wordpress.com/?p=151#comment-144 Any idea on how to enable gzip in Savon 2?

]]>
Comment on Ungroup objects grouped programatically with fabric.js by physiocoder https://somethingaboutcode.wordpress.com/2013/07/24/ungroup-objects-grouped-programatically-with-fabric-js/#comment-56 Tue, 15 Jul 2014 07:53:32 +0000 http://somethingaboutcode.wordpress.com/?p=197#comment-56 This is exactly what I was looking for:

// translate the group-relative coordinates to canvas relative ones
group._restoreObjectsState();

]]>
Comment on Invoking Hyper-V WMI API methods with reference parameters using WS-Management by msievers83 https://somethingaboutcode.wordpress.com/2009/11/09/invoking-hyper-v-wmi-api-methods-with-reference-parameters-using-ws-management/#comment-46 Wed, 26 Mar 2014 15:22:22 +0000 http://somethingaboutcode.wordpress.com/?p=5#comment-46 In reply to Venus.

Hi Venus !

I’m not into WMI anymore since quite some time. I just keep this post for others to build on. So, sadly I cannot help you with your problem.

Good luck anyway !

]]>
Comment on Invoking Hyper-V WMI API methods with reference parameters using WS-Management by Venus https://somethingaboutcode.wordpress.com/2009/11/09/invoking-hyper-v-wmi-api-methods-with-reference-parameters-using-ws-management/#comment-45 Mon, 24 Mar 2014 14:36:42 +0000 http://somethingaboutcode.wordpress.com/?p=5#comment-45 Oops, XML text is getting messed up. Pasting my xml file again.

http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous

http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/CIM_FCPort

CIM_FCPort
10000000AABBCCDD
CIM_ComputerSystem
myHostName

]]>
Comment on Invoking Hyper-V WMI API methods with reference parameters using WS-Management by Venus https://somethingaboutcode.wordpress.com/2009/11/09/invoking-hyper-v-wmi-api-methods-with-reference-parameters-using-ws-management/#comment-44 Mon, 24 Mar 2014 14:25:50 +0000 http://somethingaboutcode.wordpress.com/?p=5#comment-44 At first, these steps looked very helpful, but eventually they are not quite working for me. Thanks for compiling these steps nevertheless. 🙂

I have a similar requirement where I need to pass a single CIM class instance by REF. Following these steps gives me an “Invalid object type” error.

The signature of my CIM method is:
uint32 doSomething(CIM_FCPort REF Target);

The steps I followed are:

C:\>winrm enumerate http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/CIM_FCPort -u:user -p:password -r:myHostIP -auth:basic -returnType:epr -format:pretty


http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous

http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/CIM_FCPort

CIM_FCPort
10000000AABBCCDD
CIM_ComputerSystem
myHostName

C:\>winrm enumerate http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/CIM_SoftwareInstallationService -u:user -p:password -r:myHostIP -auth:basic -returnType:epr

EndpointReference
Address = http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
ReferenceParameters
ResourceURI = http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/CIM_SoftwareInstallationService
SelectorSet
Selector: CreationClassName = CIM_SoftwareInstallationService, Name = CIM_SoftwareInstallationService, SystemCreationClassName = CIM_ComputerSystem, SystemName = myHostName

C:\>winrm invoke doSomething http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/CIM_SoftwareInstallationService?CreationClassName=CIM_SoftwareInstallationService+Name=CIM_SoftwareInstallationService+SystemCreationClassName=CIM_ComputerSystem+SystemName=myHostName -u:user -p:password -r:myHostIP -auth:basic -file:input.xml

WSManFault
Message
ProviderFault
WSManFault
Message = HRESULT = 0x80004005
ExtendedError
__ExtendedStatus
Description = Invalid object type
Operation = InvokeMethod
ParameterInfo = CIM_SoftwareInstallationService.CreationClassName=”CIM_SoftwareInstallationService”,Name=”CIM_SoftwareInstallationService”,SystemCreationClassName=”CIM_ComputerSystem”,SystemName=”myHostName”
ProviderName
StatusCode = 2147500037

Error number: -2147023537 0x8007054F
An internal error occurred.

The input.xml file is:

http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous

http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/CIM_FCPort

CIM_FCPort
10000000AABBCCDD
CIM_ComputerSystem
myHostName

Any idea what am I passing wrong?

Thanks in advance. 🙂

]]>
Comment on Include files from git submodules when building a ruby gem by zurui-sassをzurui-sass-railsとzurui-sass-middlemanで共有するためにgit submoduleを使った | mah365 https://somethingaboutcode.wordpress.com/2012/09/27/include-files-from-git-submodules-when-building-a-ruby-gem/#comment-43 Thu, 13 Mar 2014 02:15:44 +0000 http://somethingaboutcode.wordpress.com/?p=55#comment-43 […] そんなわけで、Include files from git submodules when building a ruby gemという記事で紹介されている以下のコード(gemspec)を参考に、submodule内のコードも読み込まれるようにしておきましょう。 […]

]]>
Comment on Invoking Hyper-V WMI API methods with reference parameters using WS-Management by Emil Gelev https://somethingaboutcode.wordpress.com/2009/11/09/invoking-hyper-v-wmi-api-methods-with-reference-parameters-using-ws-management/#comment-36 Fri, 17 Jan 2014 15:28:05 +0000 http://somethingaboutcode.wordpress.com/?p=5#comment-36 Great example. It helped me a lot. Thank you 🙂 !

]]>
Comment on Ungroup objects grouped programatically with fabric.js by mPolr https://somethingaboutcode.wordpress.com/2013/07/24/ungroup-objects-grouped-programatically-with-fabric-js/#comment-34 Thu, 29 Aug 2013 07:23:49 +0000 http://somethingaboutcode.wordpress.com/?p=197#comment-34 Thanks, you save me 🙂

]]>
Comment on Include files from git submodules when building a ruby gem by mattconnolly https://somethingaboutcode.wordpress.com/2012/09/27/include-files-from-git-submodules-when-building-a-ruby-gem/#comment-30 Thu, 27 Jun 2013 12:21:07 +0000 http://somethingaboutcode.wordpress.com/?p=55#comment-30 You can do it with less code like this:


Gem::Specification.new do |s|
# normal spec stuff above
s.files = `git ls-files`.split("\n")
# get an array of submodule dirs by executing 'pwd' inside each submodule
gem_dir = File.expand_path(File.dirname(__FILE__)) + "/"
`git submodule –quiet foreach pwd`.split($\).each do |submodule_path|
Dir.chdir(submodule_path) do
submodule_relative_path = submodule_path.sub gem_dir, ""
# issue git ls-files in submodule's directory and
# prepend the submodule path to create absolute file paths
`git ls-files`.split($\).each do |filename|
s.files << "#{submodule_relative_path}/#{filename}"
end
end
end
end

Thanks for the great idea!

]]>