windows-7

How can I create a self-signed cert for localhost?

谁说胖子不能爱 提交于 2019-12-17 03:22:10
问题 I've gone through the steps detailed in How do you use https / SSL on localhost? but this sets up a self-signed cert for my machine name, and when browsing it via https://localhost I receive the IE warning. Is there a way to create a self-signed cert for "localhost" to avoid this warning? 回答1: Although this post is post is tagged for Windows, it is relevant question on OS X that I have not seen answers for elsewhere. Here are steps to create a self-signed cert for localhost on OS X : # Use

How to get main window handle from process id?

匆匆过客 提交于 2019-12-16 22:22:34
问题 How to get main window handle from process id? I want to bring this window to the front. It works well in "Process Explorer". 回答1: I checked how .NET determines the main window. My finding showed that it also uses EnumWindows() . This code should do it similarly to the .NET way: struct handle_data { unsigned long process_id; HWND window_handle; }; HWND find_main_window(unsigned long process_id) { handle_data data; data.process_id = process_id; data.window_handle = 0; EnumWindows(enum_windows

Rails - WIndows 7 carrierwave, minimagick resize not working

回眸只為那壹抹淺笑 提交于 2019-12-14 04:12:34
问题 I tried to set up for uploading photos with my rails app. However, the carrierwave uploader does not resize the photos being uploaded. When I do not call the resize_to_fill function, the photos are uploaded perfectly. Any advice? When a photo is submitted with resize_to_fill, the error 'failed to be processed' is returned. How can i fix it? I guess I need to 'require' 'carrierwave/processing/mini_magick' for calling resize_to_fill, but i don't know where to put this file. gemfile "carrierwave

rake db:create failing on Win7 x64

佐手、 提交于 2019-12-14 04:01:18
问题 Updated to include trace info I'm setting up a Win7 machine for Ruby on Rails development and seem to have run into an issue with my rake tasks. When I call rake db: create the cmd window sits for a very long time and dumps the following: C:\my\directory\rails>rake db:create --trace (in C:/my/directory/rails) ** Invoke db:create (first_time) ** Invoke db:load_config (first_time) ** Invoke rails_env (first_time) ** Execute rails_env ** Execute db:load_config ** Execute db:create foo already

rapi.dll problem in windows 7 - C#

一世执手 提交于 2019-12-14 03:57:28
问题 i work with OpenNETCF.Desktop.Communication.dll (RAPI) to connect between PC and Windows mobile in my C# program. in Windows xp it work's excellent, but in windows 7 i get this error: Unable to load DLL 'rapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) in windows xp i install ActiveSync but in windows 7 i know that he is build in what can be the problem ? 回答1: Maybe this is a stupid answer, but did you install WMDC (Windows Mobile Device Center) on your

Ensure WPF Taskbar Window Preview is actualized

☆樱花仙子☆ 提交于 2019-12-14 03:39:50
问题 How can I ensure that the hower preview of my WPF application (.net 4) is refreshed when the user places the mouse over the taskbar icon. I have an app that visualizes some status values. If the app window is minimized and the user hovers over the taskbar button, the preview window that is shown shows the last view of the window at which the window was active. However I would like to have an actualized view. Is there a possiblity to achieve that? 回答1: I believe you'd need to customize the

Chinese Characters in Stata

↘锁芯ラ 提交于 2019-12-14 03:29:49
问题 I am working on a data set that contains Chinese characters. Stata displays these as gibberish and I need to be able to read these. I could not find a Chinese language pack for Stata. Does something like this exist? I am using Windows 7 Professional and StataSE 13 (64 bit). 回答1: Go to Control Panel->Language->Advanced Settings . Click into Apply language settings to the welcome screen, system accounts, and new user accounts . In Administrative tab, under language for non-Unicode programs ,

Does Windows 7 hide files from Ruby?

和自甴很熟 提交于 2019-12-14 03:18:50
问题 I am trying to run the program nbtstat.exe(located in c:\windows\system32) from a ruby script. The problem is that it appears that Windows 7(64-bit) is hiding the program from the ruby script(it works fine in Vista). For example, Nbtstat command: "nbtstat" Dir command: dir "C:\Windows\System32\n*.exe" If I run the nbtstat command in just the command line, nbtstat will run fine. If I then run the dir command, nbtstat.exe will show up in the list of files in that directory. However, if I run

WIA 2.0 HP ScanJet 7650 specific problems

怎甘沉沦 提交于 2019-12-14 03:18:47
问题 I'm having WIA 2.0 problems on Windows 7. On windows XP with wia 2.0 (version from Windows 7 everything works ok) One device, HP ScanJet 7650 refuses to have its scanning resolution set to anything above 100. When I try to set either of WIA properties 6147 _ Horizontal Resolution 6148 _ Vertical Resolution to anything above 100 I get: A first chance exception of type 'System.ArgumentException' occurred Value does not fall within the expected range. After that, value of property is 850 (?) and

Buttons reaction on finger's touch in Windows 7

主宰稳场 提交于 2019-12-14 03:13:16
问题 I have Windows 7 with touchscreen attached. My standard Windows Forms Application has several standard buttons. My problem: buttons on form do not show reaction when I click on them using my finger. My form shows that there has been a click on the button but button itself does not react. If I use cursor - everything works fine. If I use Windows XP - everything works fine. Same thing with any standard application like calc.exe 回答1: I performed several experiments and now I believe problem with