windows-7

How do I make calls to AWS with Python 3 and httplib2 on Windows 7?

隐身守侯 提交于 2020-02-02 02:22:11
问题 I am using httplib2 to make calls to Amazon Web Services (AWS): http = httplib2.Http(cache='.cache') response, content = http.request('https://sdb.amazonaws.com/...') However it fails looking for CAs (I think): File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 1059, in request self.disable_ssl_certificate_validation) File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 772, in __init__ context.load_verify_locations(ca_certs) IOError: [Errno 2] No such file or

How do I make calls to AWS with Python 3 and httplib2 on Windows 7?

强颜欢笑 提交于 2020-02-02 02:22:04
问题 I am using httplib2 to make calls to Amazon Web Services (AWS): http = httplib2.Http(cache='.cache') response, content = http.request('https://sdb.amazonaws.com/...') However it fails looking for CAs (I think): File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 1059, in request self.disable_ssl_certificate_validation) File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 772, in __init__ context.load_verify_locations(ca_certs) IOError: [Errno 2] No such file or

Shell Extension: DragQueryFile returns at most 16 (in Windows 7)

♀尐吖头ヾ 提交于 2020-02-01 05:50:05
问题 I've writtten a shell extension (guided by The Complete Idiot's Guide to Writing Shell Extensions) which worked as it should until I upgraded to Windows 7(32bit). Now, the function DragQueryFile UINT uNumFiles = DragQueryFile(hDrop,0xFFFFFFFF,NULL,0); returns the right number of selected files until the number is above 16. Then always 16 is returned. I've tested it in XP(32) and Vista(32), there it works, in Windows7 (32/64) it doesn't. Any ideas? Thanks. 回答1: The IShellExtInit.Initialize()

How do I control my application's name in the UAC dialog?

偶尔善良 提交于 2020-02-01 02:49:06
问题 I would like to control the name of my application as it appears in the UAC dialog. Right now it shows up as something like "MyCompany.MyApp.exe"; I would prefer something like "MyApp Pro". In other words, I would like a short, friendly phrase instead of the raw EXE file name. I noticed that MMC.EXE appears in the UAC dialog as "Microsoft Management Console", so it seems to be possible. But how? There must be a build setting somewhere that controls this, I just can't seem to find it ... Edit:

SWT Table.setLinesVisible(false) does not seem to work on Windows 7

て烟熏妆下的殇ゞ 提交于 2020-01-29 21:47:50
问题 Our company is trying to move everyone from Window XP to Windows 7, so I'm testing some of the home-grown SWT applications to make sure that they still work on Windows 7. Most of them still do, but there's some weird quirks. I've been able to work out most of them, but the one here I'm having no luck with. SWT Tables always seem to have an ugly black line between columns. I've tried calling setLinesVisible(false), but to no avail. I know this doesn't seem like an important difference, but our

Change printer default paper size

a 夏天 提交于 2020-01-29 02:32:20
问题 I have several custom paper sizes defined on a printer(the printer is set as default). I need to be able to select one of these formats as the default one. A programmatic(C#) solution would be ideal, but a command line one would be ok too. Right now, I am able to get the list of paper sizes(name/dimensions) defined on the printer, and I can find out which one is the default. In order to select another format as default, the only solution I have so far is by changing the dmPaperSize field on

Change printer default paper size

五迷三道 提交于 2020-01-29 02:32:05
问题 I have several custom paper sizes defined on a printer(the printer is set as default). I need to be able to select one of these formats as the default one. A programmatic(C#) solution would be ideal, but a command line one would be ok too. Right now, I am able to get the list of paper sizes(name/dimensions) defined on the printer, and I can find out which one is the default. In order to select another format as default, the only solution I have so far is by changing the dmPaperSize field on

C# Windows Forms + Windows 7 + System.Data.SQLite v.1.0.66.0 = crash?

夙愿已清 提交于 2020-01-26 03:24:48
问题 Hey guys, I'm currently experiencing a very strange crash in Windows 7 in a C# Windows Forms application developed in Visual Studio 2008. The app - which works great in both XP and Vista - never really opens; instead, a "this application has caused an error and has stopped working". I made a dummy application with the following source-code: using System; using System.Windows.Forms; using System.Data.Common; using System.Data.SQLite; namespace TesteWin7 { public partial class Form1 : Form {

C# Windows Forms + Windows 7 + System.Data.SQLite v.1.0.66.0 = crash?

南笙酒味 提交于 2020-01-26 03:24:12
问题 Hey guys, I'm currently experiencing a very strange crash in Windows 7 in a C# Windows Forms application developed in Visual Studio 2008. The app - which works great in both XP and Vista - never really opens; instead, a "this application has caused an error and has stopped working". I made a dummy application with the following source-code: using System; using System.Windows.Forms; using System.Data.Common; using System.Data.SQLite; namespace TesteWin7 { public partial class Form1 : Form {

MSMQ on Win2008 R2 won’t receive messages from older clients

你。 提交于 2020-01-24 08:24:27
问题 I'm battling a really weird problem here. I have a Windows 2008 R2 server with Message Queueing installed. On another machine, running Windows 2003 is a service that is set up to send messages to a public queue on the 2008 server. However, messages never show up on the server. I've written a small console app that just sends a "Hello World" message to a test queue on the 2008 machine. Running this app on XP or 2003 results in absolutely nothing. However, when I try running the app on my