windows

How can I remove the gap when using a JButton as a ComboBoxEditor in the Windows L&F?

I'm trying to use a JButton as an editor within a JComboBox. On Mac OS X this looks fine, but on Windows using the system look and feel, there is an ugly gap left between the JButton editor and the combo button itself: This is the test code used to produce the dialog: import java.awt.*; import java.awt.event.*; import javax.swing.*;...

Windows resource editor from linux (without using wine)

Is there some resource editor for windows executables I could run from a CentOS box? Something like Resource hacker, that allows to update icon and fileversion. But I don't want to install wine because it's not my server and I want to change much. I would like to run it from a .py script so anything that works from a terminal will do....

Capturing tablet data at constant rate, instead of at frame rate (python, pygame, wintab, cgkit)

First of all, I am not a veteran programmer i any language. But I've been tinkering with python pretty substantially the last couple of months so I wouldn't consider my self completely green either. Some keywords for you: - Windows - Python 2.6 - Pygame, CGKit Okay, so I've got the CGKit module, which contains a WinTab wrapper for capt...

setting a thumbnail image for pdf file when seen in explorer file list

Hi, 1) I'm trying to set the thumbnail image that you see in explorer for a pdf. At the moment, all the thumbnails are just the Abode PDF logo ... I'd like to set it to an image of my choice. I have looked at the Win 7 shell pack api, and cannot find any way to set the image, only ways to extract the (default) image. Can this even be do...

Windows hard restart

Hi! Is it possible to "hard" restart Windows, without waiting for closing applications, etc.? ...

CSQL in memory database in Windows environment

CSQL is available for Linux. Is any has tried to install in Windows environment. ...

Git: How to ignore files on Windows?

I create .gitignore in folder with my repository near .git project --.git --.gitignore --Source ----tmp ----scr But git doesnt see it, wouldnt ignore files in .gitignore My .gitignore file: *.tmp *~ *.pdb *.user *.suo Sources/tmp What`s wrong? Up: I created new repositiry, add .gitignore before init commit - it work! But if I ad...

How can a child browser window change the window's properties?

I'm working with a software package that creates Flash panorama .swf's. The package allows the creation of hotspots in the pano. You can specify the URL and the Target of the hotspot, so if you click on the hotspot it launches the URL in _blank, _self, etc. However, the package doesn't allow you to specify the attributes of the window. ...

Escape input data in SQL queries when using ODBC + Access

I've tried odbc_prepare() + odbc_execute() to update a record in an Access file but I always get an SQL state 07001 error message about incorrect column count (actually, the message is in Spanglish and doesn't make much sense): <?php $items = array(); $items[100] = 'Foo'; $items[200] = 'Bar'; $sql = 'UPDATE street SET name=? WHE...

How to enable CIFS in Alfresco on Windows (dialog pops, credentials not accepted)

I'm trying to make it possible to access/upload documents to Alfresco using shared drive, i.e. CIFS. The server runs on Windows. I'm able to ping the server like ping themachine-a, so I guess the CIFS is up and running in Alfresco. But I'm unable to sign-in at \alfrescomachine\; the dialog window appears but no credentials are 'good eno...

"Write-Error" (write in Powershell, used in C#) works BUT Write-Debug doesn´t work - Why?

Hello, I have written a program with C#, that creates a logfile and fills this by using log4net. This program starts powershell-scripts. The scripts use log4net, too. It works: > C#: > ps.Runspace.SessionStateProxy.SetVariable("myMethod",(Action<Level,string>)myMethod); > ps.AddCommand(System.IO.Path.Combine(pathScripts, testSkript...

Get-ChildItem and registry key access not allowed

I'm trying to do a simple PowerShell script to access the registry and I'm doing it like this: Foreach ($key in Get-Childitem HKLM:\SYSTEM\CurrentControlSet\Control\Class\"{4D36E972-E325-11CE-BFC1-08002BE10318}") { $key.name } There's a bunch of keys that are just digits (the ones I want) but then there's one named "Properties" wh...

How Can I get the Ip address of System

How can I get the IP address of the system. I want the Ip address as I can see after doing ipconfig or /bin/ifconfig ...

SWIG cross platform

My application is using SWIG to communicate between c++ and python on windows. suppose if my interface is "example.h" swig is generating example.py, example_wrap.cxx /* File : example.i */ %module example %{ #include "example.h" %} %include "std_string.i" %include "std_wstring.i" %include "example.h" I am porting my application ...

use multiple CPUs on Django on Windows

I have a Django app running on Windows (via Apache + mod_wsgi) that's CPU-bound. But Apache on Windows only does MPM (multi-thread) workers, not prefork (multi-process workers), and a single Python interpreter won't take advantage of multiple CPUs. I would switch to FastCGI, but that requires Flup, which is not supported on Windows. T...

Recursively create shortcuts in a folder(XP)

1> I have folder inside folders structure. 2> I want to recursively create shortcut to every file. the shortcuts must be place inside the same named folders, that it is at its source. 3> Summary: same folder structure...just shortcuts in place of files Any ideas will be appreciated. ...

How can I store the Output of System function to a string

While I try the following: system( "ifconfig -a | grep inet | " "sed 's/\\([ ]*[^ ]*\\)\\([ ]*[^ ]*\\).*$/\\1 \\2/' " " > address.txt" ) ; I am getting the output in a file. How can I assign the out put to a variable. ...

Little issue with New-ItemProperty in PowerShell

I'm new to PowerShell and I can't seem to find how to fix this after countless Google searches. I know it's probably easy, but here's basically what I want to do and the error that shows: PS C:\Windows\system32> $path = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}" Get-Childitem $path -ErrorActio...

How to either create a filesystem filepath alias/redirect or rename several (xml) files to point to a new path via a programmatic text replace?

Forgive me if this is obvious but- is there any way to set up a filepath alias in Windows? I have a bunch of custom app config files that exist in a certain location and they contain filepath references to paths which I am trying to get rid of. I want to move the files referenced in these configs to a completely different file system pa...

Export Image with pixelformat 16bpp4444

Hi, I'm trying to let the user import an image in my windows application, in any pixelformat, but i need to save the image in 16bpp4444 format, and that is not an option for pixelformat in .Net imaging class. Any ideas on how to do this? Thanks! ...