A Confused Programmer's Blog

This blog is dedicated to C# and Java programming that I happen to do for living – with accent on curious cases and with sincere intent to make the world of coding a slightly better place as a result

Archive for October, 2011

Enable ‘system standby’ capability of your XP virtual machine

In my recent attempts to set automatic power management of virtual machines I ran into a problem of few virtual machines running XP operating system not supporting standby option: C:\Documents and Settings\Administrator>powercfg /a The following sleep states are not available on this system: Standby (S1) Standby (S2) Standby (S3) Hibernate I solved this issue by updating vmware tools on vm (by the way, we are talking about VMware ESXi 4.1.0). And this is how power capabilities look after vmware tools  [ Read More ]

Continue

Possible reason of System.AccessViolationException when using PInvoke

I this short post I will not dive into details describing why PInvoke is essential to writing Windows based applications. Most people who are referred to this page by search engine already know what it is and have an issue of System.AccessViolationException popping when invoking one of Win32 API functions. In my case, reason for this exception appeared to be trivial – usage of wrong parameter type in the function signature. Namely, I was trying to set power scheme: [DllImport(“powrprof.dll”,  [ Read More ]

Continue

One of the products that I am working with uses MySQL database located at the Ubuntu host remotely connected by .NET based web service. For a long time, web service had been suffering from MySQL long response times. We tried different solutions, like connection pooling, all in vain. Yesterday, the situation worsened and web services started failing with connection timeout. When we tried connect using tools like Toad and Navicat, we saw severe delays in server’s response: Apparently, the problem  [ Read More ]

Continue

Subscribe to email feed

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

REST Assured and une

If you stumbled onto this article, it is safe to ...

Getting rid of Error

Since I upgraded my Windows 8 to Windows 10, I ...

Bypassing EULA step

We are working on automated testing of virtual appliance. This appliance ...

How I got rid of "Ac

OVF is a VMware virtual appliance format which allows you ...

My use-case of Perfo

In my blog I am set on a mission to ...

Twitter updates

RSS not configured