windows-7

Could not find gem 'vagrant-triggers;vagrant (>= 0) x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine

百般思念 提交于 2019-12-13 02:30:14
问题 Encountering this issue using Vagrant on Windows 7. Anyone seen this before? 回答1: I got similar error under window10 during a ' vagrant up ' command execution after a ' vagrant init joomlatools/box ' By checking folder %Vagrand install folder%\embedded\gems\gems (for my installation this is C:\Vagrant\embedded\gems\gems ) there were no vagrant-triggers subfolder inside. So I just forced installtion of that plugin manually through command: vagrant plugin install vagrant-triggers It installs

CD command not working inside FOR loop?

橙三吉。 提交于 2019-12-13 02:18:36
问题 I am new to batch programming. The output of the following program: @ECHO OFF cd /d C:%HOMEPATH%\AppData\Roaming\Mozilla\Firefox\Profiles echo %cd% FOR /F %%i IN (temp_list.txt) DO ( echo i is %%i cd folder echo %cd% ) cd folder echo %cd% pause is: C:\Users\arnab\AppData\Roaming\Mozilla\Firefox\Profiles i is e6slask2.default C:\Users\arnab\AppData\Roaming\Mozilla\Firefox\Profiles i is random.default The system cannot find the path specified. C:\Users\arnab\AppData\Roaming\Mozilla\Firefox

Powershell scripts manipulating desktop elements don't work with Scheduler

纵饮孤独 提交于 2019-12-13 01:51:33
问题 I have 2 scripts working, when I start them manually. Moving mouse cursor out of Screen: [system.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | out-null [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(1999,100) If there is a chrome browser open with title HUD, put it to kiosk mode: [void] [System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic") [Microsoft.VisualBasic.Interaction]::AppActivate("Hud - Google Chrome") [void]

Windows 7, VB6, Launcher App and Pinning to the Taskbar

ぐ巨炮叔叔 提交于 2019-12-13 01:26:10
问题 We have an application that has a "launcher" app that sits there with a pretty UI while the main app loads in the background. Both of these apps are written in VB6 (sigh). In Windows 7, if user's pin the launcher program, we get two different icons on the taskbar (one for the main app, and then the pinned icon for the launcher program). This looks very odd. I've tried using the following function: http://msdn.microsoft.com/en-us/library/dd378422%28VS.85%29.aspx to no avail so far. I gave both

Best deployment strategy for local used application in Rails 3.1 on Windows 7?

喜夏-厌秋 提交于 2019-12-13 01:25:05
问题 I am developing 2 applications in Rails 3.1 (will upgrade soon), and have noticed that my current strategy has its drawbacks. What I am doing currently is: Work directly on the development directory, have there version control with Git (which works perfect for me). I have defined the databases like (omitted not interesting parts): development: database: db/dev.db production: database: db/dev.db I have both applications running all the time in production mode, where the ports are defined as

Windows phone 7 takes forever to deploy

心已入冬 提交于 2019-12-13 01:08:14
问题 I'm playing around with windows phone 7 development, when I press F5 Visual studio takes forever to deploy the app, I get Window Phone Emulator is doing complete OS boot. What would be the problem? PS: I'm using windows 7 on Mac with Parallels Desktop 回答1: The emulator isn't supported running inside or side by side other VM's at this stage. It is implemented as a VM itself. VM's running on windows platforms will be detected by the emulator startup and a specific error message provided. I've

BATCH - can't return proper value in a variable from a function

一曲冷凌霜 提交于 2019-12-13 00:56:30
问题 I have read a lot of examples and questions about returning values from batch functions using variables but I can't force Windows 7 x64 cmd.exe to do it for me. ;-) I have already tried a lot of code examples but nothing has worked as I expected. I have written a short batch program to find out how to do it, but it also hasn't worked as I expected. I can't find what I'm doing wrong. @echo off SetLocal EnableDelayedExpansion set x=10 echo x(1) = !x! call :TestFunc !x! echo x(2) = !x! EndLocal

Setting a Bitmap in Windows 7 thumbnail preview

独自空忆成欢 提交于 2019-12-13 00:46:25
问题 I am currently using the Windows 7 API Code pack for an application I am coding in C#. Currently, I understand how to draw part of the Window region or a control into the thumbnail preview: TaskbarManager.Instance.TabbedThumbnail.SetThumbnailClip((new WindowInteropHelper(this)).Handle, new System.Drawing.Rectangle((int)v.X, (int)v.Y, (int)pictureBox1.RenderSize.Width, (int)pictureBox1.RenderSize.Height)); However, I am wanting to draw a Bitmap image into the thumbnail. There is an method for

JavaVM Windows 7 64bit - JFileChooser() not showing dialog box

折月煮酒 提交于 2019-12-13 00:32:00
问题 I am trying to create a simple console based java application, which requires users to select files from their local filesystem. The console prompts the user to select one of the available options and then switches on the input given. public Client() throws UnknownHostException, IOException { printuseroptions(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char userdecision = br.readLine().charAt(0); System.out.println(userdecision); switch(userdecision){ case '1'

Shebang #! unrecognized in Ubuntu, File created in Windows7 | Troubleshoot encoding

大憨熊 提交于 2019-12-13 00:27:52
问题 Basically, the file was broken some where along the way from Windows7 to Ubuntu. How can I look at a binary representation of the file to see what happened? 回答1: PHP command line script still have to have the <?php opener in them. #!/usr/bin/php echo "hi mom!\n"; will not work, it has to be #!/usr/bin/php <?php echo "hi mom!\n"; This is because there's no such thing as a "php script". There are only various text files that have PHP code blocks embedded within them. Even in CLI mode, PHP