windows

"list index out of range"

Below I have the following code that is supposed to get the CPU temperature. import wmi w = wmi.WMI() print w.Win32_TemperatureProbe()[0].CurrentReading When I run it I get the following warning however: Traceback (most recent call last): File "<string>", line 244, in run_nodebug File "<module1>", line 3, in <module> IndexError:...

Using PHP doctrine CLI easily in windows

in windows, to use doctrine CLI from any directory i need to use something like php D:\full\path\to\doctrine\bin\doctrine.php --variables here is there anyway i can shorten this so that it becomes something like php doctrine.php --variables here or even doctrine --variables here ...

How to get MAC address in windows7?

Possible Duplicates: Getting Machines MAC Address Good Solution? How do I get the MAC address of a network card using Delphi? I am using MAC address as hardware id for protection(ofcourse I have encrypted this data) I am using below code to get MAC address on user computer function MacAddress: string; var Lib: Cardinal; F...

Schedule php script in xampp

I am using xampp on windows vista. I want to run a php script once every x minutes. Is there anyway in xampp that can help facilitate this?, or is using the windows task scheduler the only way. ...

Call back for network connection present or not in windows mobile sdk?

Hi, I use NetworkInterface.GetIsNetworkAvailable in windows to check if internet access is avaiulable. But in case of Windows Mobile development, this class is not available, Please tell, how can i check if internet access is there or not. Thanks, Mrinal Jaiswal ...

In resources of a executable file, how does one find the default icon?

Hi all, i need to find the default icon of a windows executable (PE file = dll, exe, com..) programatically. I do know how to walk throught the resources and identify what is an icon, what a cursor etc, but as far as i know none of the icons is in any way marked as the default one. So, does somebody know, how to find the default icon? M...

How to get program's position on the taskbar?

Because I disabled the default windows style in my application, I don't have the default(Vista/7) minimize effect when the application is minimized/restored. I made up that effect, but I don't know program's position on the taskbar, and therefore the window fades in the bottom center. How do I get my application's position on the taskba...

Transition of images in Windows Forms Picture box

Hi, I'm new to Windows Forms, in my project, i need to change the image in the picture box at runtime. I'm able to do that with the help of a timer. The picture just gets changed. Is it possible to do some transitions when image changes, for example fade in, fade out, blur etc.. If possible could some one please let me know how to do it...

How to judge a window exsits?

could return boolean? I want to new a JFrame if the JFrame not exsits,but not to new if exsits. I creat a Map to save JFrame's name. ...

How to: python script + imagemagic = windows application ?

Hi guys. I have a small problem. I have a script in python, which uses imagemagic. It works fine on my Mac, or Linux. But I need to give it to the client, and he uses Windows. Actually the question: how can I build applications for it, and on what to do Gui. (Perhaps you know the finished product is open source, who knows how to resize i...

Can I install Python windows packages into virtualenvs?

Virtualenv is great: it lets me keep a number of distinct Python installations so that different projects' dependencies aren't all thrown together into a common pile. But if I want to install a package on Windows that's packaged as a .exe installer, how can I direct it to install into the virtualenv? For example, I have pycuda-0.94rc.w...

AD / Forms authentication

Hi, I am developing an application that will mainly be used internally and want to know how i can automatically authenticate users against Active Directory without prompting them to login. However, when a user is not automatically authenticated (i.e. they have connected via the internet) I want to display a form that will authenticate...

Linking with -R and -rpath switches on Windows

I,m using gcc compiler(MinGW) on Windows XP.I created a .dll library libdir.dll than I tried to build a program that is using that library. I don't want to put that .dll file into System or System32 folder nor to set path to it in PATH variable, what i want is to give that information to the program itself. I know there is a -R and -rpat...

Why doesn't Graphics::DrawImage stretch images as expected?

I'm making an overloaded TableLayoutPanel which draws some fancy borders, but for some reason the call to Graphics::DrawImage isn't working as expected. It seems to fade out my 1x10 pixel source image when I stretch it: This is the function which does the rendering: void GTableLayoutPanel::RenderSides(Graphics^ g, array<Drawing::Imag...

How to change rubygems platform from x86-mingw32 to x86-mswin32-60 on windows

Hi I am doing some ruby scripting in windows, which involves opening and closing a browser. To that end I needed some special gems to interface to the native windows system calls. But when I tried > gem install sys-proctable , it yielded ERROR: Could not find a valid gem ´sys-proctable´ (>= 0), here is why: Found sys-proc...

OpenGL SDK on Windows

I'm trying to write an OpenGL application so I installed the Windows 7 SDK. However, it appears that it is OpenGL 1.1... #define GL_VERSION_1_1 1 How can I find which version of OpenGL I have installed(*.dll) and where can I find the newer *.lib/*.h files? ...

Ubuntu Subversion with Windows Client

I installed subversion on my Ubuntu server and I can use subclipse (1.6) in Eclipse Helios on Ubuntu and it works fine. However when I try and use Subclipse (1.6) in Eclipse Helios on Windows, it doesn't work and I get errors. In Windows when I use http://serverAddress/svn, I get an error saying folder doesn't exist and an error in the ...

JavaHL not loading (NoClassDefError)

I've reinstalled Windows and unzipped a fresh copy of Eclipse. Despite this, I've been unable access an ssh repository via Subclipse. The issue seems to be with JavaHL and the tests from the Tigris web site give NoClassDefError. Although this could be considered as a software issue I hope someone has come accross this before. Is there a ...

which dlls are being used?

please forgive my windows ignorance, Is there an application which can show me which dlls an executable is attempting to use (name, path) I'm assuming this can be done via static analysis of executable and/or when the executable is running by examining system calls ...

Windows Service with WPF management tool

hi, i'm trying to create a windows service with C# in .net that runs before the user is logged on... then when a user is logged on a symbol should appear in the system tray (next to the clock) to show the user that the service is running.. by double clicking that symbol a configuration utility (written in wpf) should be shown to the u...