windows-7

Git “unable to determine absolute path of git directory”

≯℡__Kan透↙ 提交于 2019-12-29 07:22:40
问题 I'm a git newbie and am having problems trying to get the latest version of a remote project: S:\dev\prj\myprj [master]> git pull /usr/libexec/git-core/git-sh-setup: line 266: cd: .git: No such file or directory Unable to determine absolute path of git directory It was working fine until today and strangely I don't think I've changed anything since it last worked fine. This is on Windows 7. My project is on an encrypted drive (S:) and git is on C: S:\dev\prj\myprj [master]> git --exec-path C:

Pin *.lnk file to Windows 7 Taskbar using C#

a 夏天 提交于 2019-12-29 03:40:28
问题 Even the programmatic pinning of icons in Windows 7 seems it's not permitted (like it says here: http://msdn.microsoft.com/en-us/library/dd378460(v=VS.85).aspx), there are some methods for doing this by using some VB scripts. Someone found a way of doing this in C# like this: private static void PinUnpinTaskBar(string filePath, bool pin) { if (!File.Exists(filePath)) throw new FileNotFoundException(filePath); // create the shell application object dynamic shellApplication = Activator

Windows 7 64-bit: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/

亡梦爱人 提交于 2019-12-29 03:11:33
问题 I cannot install compass. I want to install compass on my project so when I try to update, I get this: c:\wamp\www\danjasnowski.com>gem install compass ERROR: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz) Also.. my current version. c:\wamp\www\danjasnowski.com>gem --version 2.4.1 and irb(main)

Windows 7 64-bit: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/

心不动则不痛 提交于 2019-12-29 03:11:04
问题 I cannot install compass. I want to install compass on my project so when I try to update, I get this: c:\wamp\www\danjasnowski.com>gem install compass ERROR: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz) Also.. my current version. c:\wamp\www\danjasnowski.com>gem --version 2.4.1 and irb(main)

Local SMTP server that can be used for testing and development - won't actually deliver mail [closed]

佐手、 提交于 2019-12-29 02:34:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . When I'm developing something that sends email, I sometimes don't want to actually send any email, but I do want to see what email would be sent using live data. However, there's not an easy way to do this, as I haven't found a local SMTP server that will receive my mail and then just hold it for me in a queue

PyInstaller fails on Windows 7: “Can't find a usable init.tcl”

无人久伴 提交于 2019-12-29 01:51:11
问题 I have a basic Python script which uses Tkinter. from Tkinter import Tk from tkFileDialog import askdirectory Tk().withdraw() print askdirectory() After compiling my script with PyInstaller, I tried to run my program on Windows 7 (64-bit) computer which didn't have Python installed. It raised this error: Can't find a usable init.tcl in the following directories: [list of directories] This probably means that Tcl wasn't installed properly Why does my script fail to find init.tcl after

How to start `powercfg.exe -energy` from a .NET app?

不羁的心 提交于 2019-12-29 01:50:05
问题 When I using (var process = new Process { StartInfo = new ProcessStartInfo { FileName = "powercfg.exe", Arguments = "-energy", RedirectStandardOutput = true, UseShellExecute = false, } }) { process.Start(); process.WaitForExit(); } It outputs: A biblioteca de Diagnóstico de Eficiência de Consumo de Energia (energy.dll) não pôde ser carregada. Translated to English: The Energy Consumption Efficiency Diagnostic library (energy.dll) couldn't be loaded. Even when running as admin. 回答1: I'm afraid

java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind (JBOSS)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-28 12:16:08
问题 I'm using JBoss 4.0.5 GA on Windows 7 with Java version 1.5 (I have to use older java version and a JBoss because I'm working with a legacy system). And when I'm starting the server I get the following error: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind And I believe this causes many other exceptions: 11:09:26,925 WARN [ServiceController] Problem starting servicejboss.cache:service=TomcatClustering Cache java.lang.NullPointerException at org.jgroups.protocols.FD

running bash script in cygwin on windows 7 [duplicate]

核能气质少年 提交于 2019-12-28 05:45:06
问题 This question already has answers here : Are shell scripts sensitive to encoding and line endings? (5 answers) Closed 8 months ago . I am trying to run the below bash script in cygwin on windows 7 REPEATTIMES="$1" if [ $# = 0 ]; then echo "Usage: fetch topN repeatTimes" exit 1 fi for (( i=1; i<=$REPEATTIMES; i++ )) do echo "ITERATION: $i" echo "GENERATING" log=thelogs/log bin/nutch generate crawl/segment -topN 10 > $log batchId=`sed -n 's|.*batch id: \(.*\)|\1|p' < $log` echo "batch id:

PowerShell on Windows 7: Set-ExecutionPolicy for regular users

有些话、适合烂在心里 提交于 2019-12-28 04:52:06
问题 I want to run PowerShell scripts on Windows 7 as a regular user. Whenever I try, I get the following error: File C:\Users\danv\Documents\WindowsPowerShell\profile.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details. At line:1 char:2 + . <<<< 'C:\Users\danv\Documents\WindowsPowerShell\profile.ps1' + CategoryInfo : NotSpecified: (:) [], PSSecurityException + FullyQualifiedErrorId : RuntimeException Attempting to