windows 7 64-bit - can't upgrade upgrade to ruby 2.0 keeps showing 1.9.3 - can't switch to new installation |
Jesse,
Speaking from experience, Pik is a viable solution if you want to run both
versions of Ruby on the same Windows box (at least until RVM 2 is released
with Windows support). It should only require adding the Ruby from the
RailsInstaller installation to Pik so that it is aware. Then, you should be
able to use Pik and install other versions of Ruby.
The other option that is a bit more complicated is using Cygwin. This will
actually allow you to install RVM and run it in a sandboxed Unix
environment on Windows. It's something that I've been meaning to write up
how to do but just haven't gotten around to it.
Cheers,
Evan
|
Socket receive hangs in .NET 4.5 under windows 2012 |
Things to check in order:
Locks on the server side.
Network interruption and timeout.
Responsiveness on the server.
Long-running queries.
|
fixing curl_exec hangs in Windows 8 apache |
Well, I seem to have finally gotten to the root of the problem. It seems
that when you execute a cURL call to the same server as the script that is
doing the calling, and if both the "caller" and the "callee" scripts are
trying to use the same session id, a deadlock occurs, causing both scripts
to wait till the other releases the session. I ended up adding a test to
see if there's already a session id in use, and if so, the calling script
doesn't start a session. If there is no session id, then the caller starts
a session, obtains the session id, then destroys the session, which allows
the "callee" script unfettered access to said session, thus removing the
deadlock situation. Below is the code I used to do this:
$convo_id = (isset ($request_vars['convo_id'])) ? $request_vars['convo_id']
|
HttpClient hangs when timeout is setting (Windows Phone) |
Without going and writing code to check, here are some likely culprits.
1) Your 5 second timeout is not long enough to download the full file
"boo.mp3", so the timeout stops the operation.
2) Your web server is taking too long to respond (unlikely, but possible
over a mobile network)
It might be best to either remove the timeout value altogether, or set it
to a more realistic value.
|
Video.js Build on Windows Hangs on Minify Task |
Well, I never figured out why the build was failing for me. However, as of
video.js version 4.4.2, I am able to build the project without problems.
Maybe it was a configuration problem on my end, or maybe some bugs got
fixed on their end, but this issue is now resolved.
|
System.Timers.Timer hangs the Windows Forms application in c# |
register_Timer.SynchronizingObject = this;
This completely defeats the reason for using System.Timers.Timer. It
prevents the Elapsed event handler from being raised on a threadpool
thread, the property ensures it will run on the UI thread. Which is what
you wanted.
But you still get all the disadvantages of that Timer class. Particularly
its habit for swallowing exceptions without a diagnostic is very ugly. As
well as continuing to raise the Elapsed event after the form is closed,
ensuring this cannot happen is a very difficult problem to solve, there are
two inherent race conditions. .NET 1.0 had some design mistakes related to
threading, this was one of them.
Just don't do this, use a System.Windows.Forms.Timer instead. It will work
exactly like your timer, minus all the d
|
Is there a way to monitor a Windows service and alert people when it hangs/stops? |
The SCM (the component which handles services) has built-in auto-restart
logic that you can take advantage of to restart your service, as necessary.
Additionally and/or alternatively, you can configure 'custom actions' to be
associated with a failure of the service - the custom action can include
launching a program of your own, which could then log the failure, and
perhaps manually restart your service.
You can read more about such custom actions on MSDN by looking at the
documentation of the structure used to configure such actions:
SERVICE_FAILURE_ACTIONS. Once you fill that structure, you notify the SCM
by calling the ChangeServiceConfig2 function.
Please don't ask "well, what happens if my failure handler program crashes"
:)
|
Upgrade Windows Store app which includes SQLite |
I am told that the data will remain intact if you make no changes to the
schema of the db.
Here is the link from a Microsoft forum:
http://social.msdn.microsoft.com/Forums/en-US/f4550181-468a-4902-9ee0-d8554a127f92/upgrade-windows-store-app-do-i-lose-sqlite-data
|
How to make minor upgrade in Windows Installer always overwrite? |
Take a look at the MSDN topic REINSTALLMODE property. The "v" is needed by
the minor upgrade, the "o" tells it to only overwrite older files and the
"a" tells it to reinstall all files regardless of hash or version.
So REINSTALLMODE=vamus should be what you need. However, if the files in
the installer were properly versioned this shouldn't be a problem in the
first place.
|
Why would my samba connection fail after an upgrade to windows 2012? |
Windows Server 2012 includes latest version of SMB protocol 3.0 and it full
of really interesting updates and improvements (details and some relevant
discussion here). As with any serious improvements there is a compromise in
terms of legacy clients support.
Probably there is no support for SMB 3.0 on your Samba client side or some
backward compatibility should be enabled on Server 2012 side.
|
Office Application hangs during document opening on german windows, works on english one |
This error can occur in every Language-Version and depending on the
Word-Version you use, it may not be easy to prevent hidden dialogs. Which
Word-Version do you use?
But first, your parameters are off by one (i think). ReadOnly is the third
parameter and thats why _isVisible my not be working.
I tried to set objWord.Application.Visible to true and it worked for me.
Maybe something else is wrong too?
One quick solution may be setting OpenAndRepair to true. Its the 13.
Parameter, right behind isVisible.
Otherwise have a look at this Link:
How To Dismiss a Dialog Box Displayed by an Office Application with Visual
Basic.
|
upgrade pandas to pandas-0.12.0 on Windows | Error message: 'Unable to find vcvarall.bat' |
Note that you do not need MinGW to run pandas, it's a optional.
But if you like to use it than check this page:
http://wiki.cython.org/InstallingOnWindows
|
Is HTTP status code 426 Upgrade Required only meant signal an upgrade to a secure channel is required? |
Quoting one of my previous answers:
HTTP Upgrade is used to indicate a preference or requirement to
switch to a different version of HTTP or to another protocol, if
possible:
The Upgrade general-header allows the client to specify what
additional communication protocols it supports and would like to use
if the server finds it appropriate to switch protocols. The server
MUST use the Upgrade header field within a 101 (Switching Protocols)
response to indicate which protocol(s) are being switched.
Upgrade = "Upgrade" ":" 1#product
For example,
Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
The Upgrade header field is intended to provide a simple mechanism
for transition from HTTP/1.1 to some other, incompatible protocol.
According to the IANA regist
|
Upgrade rows on app upgrade only |
The typical design pattern for database updates in an app goes something
like the code below and every time you update your application where a
database change is required, you bump the database version used in your
SQLiteOpenHelper-derived class.
This, of course, presumes you used SQLiteOpenHelper to manage getting a
reference to your SQLite DB in your provider:
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
if (oldVersion == 1) {
// DO WORK TO UPGRADE FROM VERSION 1 to 2
oldVersion += 1;
}
if (oldVersion == 2) {
// DO WORK TO UPGRADE FROM VERSION 2 to 3
oldVersion += 1;
}
if (oldVersion == 3) {
// DO WORK TO UPGRADE FROM VERSION 3 to 4
oldV
|
App hangs at __psynch_mutexwait |
This has seen when a related entity in another context (and on another
thread) has been modified but not yet persisted.
The scenario:
A --> B
Due to a bug B had pending changes, in another context, on another thread.
The Bug caused B to hang around instead of saving or rolling it back.
Attempting to save A in the current context/thread will will cause the wait
for the other thread to release the lock on B.
Only successful way to trouble shoot was to list all pending entities and
compare to ones in the blocked thread. Took a while :(
I am still looking for something that list all locks on the database and
entities.
|
MPJ Express hangs |
The current version of MPJ-Express uses Java Service Wrapper binaries to
launch daemons on remote nodes. The current version (v0.38 I assume) does
not have hard/soft float ABIs for ARM. Please wait for the next public
release, I hope they will incorporate ARM support for that.
|
Aptana sh.git.log hangs when run in IDE |
It's a bit late but the log command is probably trying to page results and
is waiting for stdin, try the following to turn off the pager:
git = sh.git.bake("--no-pager", _cwd=cwd)
git.log('-n 1', '--pretty=%H')
|
.NET 4 WebBrowser hangs |
Project + Properties, Debug tab, tick the "Enable native code debugging"
option. Ensure that you've got the Microsoft Symbol server enabled (Tools
+ Options, Debugging, Symbols), I know you do :)
You can now use Debug + Break All and see what's going on inside the
browser. Do so repeatedly to get the lay of the land. You'll see that
Javascript is executing (jscript8.dll) and constantly forcing the layout
engine to recalculate layout, never getting the job done.
Browsers in general are vulnerable to Javascript that's stuck in an endless
loop. A regular browser tends to put up a dialog after several dozen
seconds to allow the user to abort the JS, but WebBrowser doesn't have that
feature. Nor does it have the dev tools so debugging the JS isn't going to
be a great joy either. This is
|
draw9patch just hangs on Mac 10.7.5 |
From the script I can see this comment:
# need to use "java.ext.dirs" because "-jar" causes classpath to be ignored
# might need more memory, e.g. -Xmx128M
but anyway both command work for me:
java -Djava.ext.dirs=. -jar draw9patch.jar
java -jar draw9patch.jar
Probably you have a failing jar. Can you try with mine?
[I'm on a Mac running Mountain Lion 10.8.4 but I had no problem with Lion
10.7.5]
|
gui hangs due to particular code |
You can do this, otherwise your gui thread will have to wait until the
endless while loop finishes; consider adding a break function if the
following thread isn't what you want.
using System.Threading;
Thread th = new Thread(new ThreadStart(delegate
{
//while loop
}));
th.Start();
|
Are Windows-GUI calls (creating visible windows, etc.) allowed in a Windows-Service? |
GUI elements from a Windows Service are shown on Session 0. On Windows XP
& 2003, users were allowed to log in to Session 0 and interact normally
with the windows created by a service, but Microsoft put a knife in the
heart of interactive services in Vista (and beyond) by isolating Session 0.
So, to answer your specific questions:
Is a process running in the context of a Service (the Service itself
or any process it starts) "allowed" to make Windows API calls that
display a visible GUI?
Will most Windows API calls (e.g. creating and showing a window,
using Shell_NotifyIcon, etc.) behave the same in the invisible session
of the service?
Yes, GUI calls are allowed and should succeed as normal. The only notable
exceptions that I know of are those related to tray icons b
|
Go hangs when running tests |
First: Note that go test will create, compile and run a test program which
intercept output from each test so you will not see output from your tests
until the test finishes (in this moment the output is printed).
Two issues with your code:
If you cannot start the tcp server t is not notified, you only do Printf
here and continue as if everything was fine.
You call t.FailNow from a different goroutine than your test runs in. You
must not do this. See http://golang.org/pkg/testing/#T.FailNow
Fixing those might at least show what else goes wrong. Also: Take a look at
how package net/http does it's testing.
|
Socket.IO server hangs up |
Check this issue
Quoting Isaac Schlueter:
The good news is that you're no longer leaking memory. The bad news is
that you do indeed need to add error listeners to your objects.
In most apps, you can usually treat ECONNRESET as roughly the same as
a graceful close. Just make sure that you actually stop using that
socket, since it's now closed. However, it's not a graceful close,
since it's not in any sense "graceful". Prior to v0.8.20, node would
happily buffer all writes to reset sockets, causing memory explosion
death.
|
Python FTP hangs in callback |
If you just try calling update yourself, instead of passing it to
FTP.storbinary, you'll see the problem immediately:
>>> update('')
UnboundLocalError: local variable 'count' referenced before assignment
If you want to update a global variable, you have to mark it global
explicitly:
def update(block):
global count
count += 1
print count
See the FAQ entry Why am I getting an UnboundLocalError when the variable
has a value? and the following question What are the rules for local and
global variables in Python?, and the docs on global, for more details.
A better way to solve this would be to write a class:
class FtpHandler(object):
def __init__(self):
self.count = 0
def update(self, block):
self.count += 1
print self.count
Then, to
|
oracle sql query hangs |
Looks like you may have a cartesian join here.
http://www.orafaq.com/wiki/Cartesian_join
I'm not sure exactly how your database keys are constructed so I just
guessed below, but it may give you an idea of how you need to link your
tables. These are ANSI joins, not Oracle-specific. I recommend you learn
to use these types of joins so your code is more portable. I hope this
helps.
For outer joins use FULL JOIN for inner joins use JOIN or INNER JOIN. For
left/right joins use LEFT JOIN or RIGHT JOIN.
FROM tickets t
JOIN customer_care_tickets cct ON t.ticket_id = cct.ticket_id
JOIN accounts a ON cct.account_id = a.account_id
JOIN orders o ON o.ticket_id = t.ticket_id
WHERE t.owner IN (SELECT cont.contact_id
FROM contacts cont
WHERE ( c
|
Why my selector.select() get Hangs |
Please read the javadocs... it will only have n > 0 if a some OP was
selected. This will happen in your example if a socket is accepted. Just do
a telnet localhost 1234 and you will see it in action.
|
WebClient.DownloadString(url) hangs on second url |
I am editing your code, try this:
WebClient client = new WebClient();
string url = lines[i];
try
{
string downloadString = client.DownloadString(url);
client.Dispose(); //dispose the object because you don't need it
anynmore
findNewListings(downloadString, url);
}
catch (Exception exce)
{
MessageBox.Show("Error downlaoding page:
" + exce.Message);
}
If an object is no longer in use, its better to Dispose it.
|
Eclipse hangs on startup |
I've had exactly the same problem and could solve it using the answer here
http://stackoverflow.com/a/5504530/1275767 which works by moving the
projects out of the workspace and back in again after Eclipse has been
started and stopped.
Starting it with -clean -data started eclipse but whenever I switched the
workspace using the eclipse gui it wouldn't load.
|
2 identical functions, but one hangs |
cat hangs if no input is given -- as well as many other programs. One of
your paths are most probably empty, as you're able to go through the if
statement:
$ if [ -f ]; then echo "foo"; fi
foo
Once you inside the block, you hang on the call cat <empty>. As
pointed by @ruakh, you should get it to work double-quoting the variable.
|
NSTask hangs on readDataToEndOfFile |
It's because you have never actually launched your task. You call
[task launchPath];
That just returns the task's path as a string, it doesn't actually launch
the task. You want
[task launch];
|
Twitter streaming api hangs |
Well it's a streaming API, so it will stream infinitely. Hence if you are
trying to read to the end of stream, it will block forever until you run
out of memory or get disconnected due to network error etc.
You need to process the data while connected to the stream. If I were you
I'd just use a client library (see
https://dev.twitter.com/docs/twitter-libraries).
|
Rvm hangs when installing 'requirements' |
bash-3.2$
?? That looks like the postgres prompt to me. You should be at a prompt
like:
~/rails_projects/my_app$
Try typing:
bash-3.2$ exit
to get back to a prompt you can recognize.
|
Gtk.Image hangs on load |
While I cannot speak to this specifically, what seems to have happened is
that I went home for the night and suspended my computer. When I came into
work this morning and resumed my computer it seems to be working exactly as
expected. I can only assume that the "suspend/resume" is equivalent to a
reboot which has forced a correct reference to the base Gtk libraries. But
this is only a guess. I miss linux :(
|
Program Hangs During IF/Else SQL Statement |
try to debug it. pause the program when it hangs and see where it hangs. if
it hangs on the SQL query you might want to put a timeout on it.
also you shouldn't create the query like this
cmd.CommandText = "SELECT last_name +', '+ first_name +' ('+major_key+') '
from name where id ='" + textBox1.Text.Replace(@"L", "") + "'";
it's open to sql injections.
use parameterized sql or other form of protection:
SqlCommand command = new SqlCommand("SELECT last_name +', '+ first_name +'
('+major_key+') ' from name where id =@Name"
command.Parameters.Add(new SqlParameter("Name", textBox1.Text.Replace(@"L",
"")));
EDIT
if you want to put a timeout on the connection you can look here at MSDN:
you can set the timeout parameter in the connection string or simply
DBConnection.ConnectionTimeo
|
Git push hangs when pushing via ssh |
Easy answer after much head scratching.
Don't use Cygwin for github access. An alternative is to do all your
normal terminal functions in Cygwin and then use Windows Command Line for
git push origin
Be sure to have ssh keys added to your account. Here are steps to add ssh
to github. Also be sure your ssh keys have a passphrase.
|
Regex hangs in Oracle 11g |
Your regex is causing catastrophic backtracking.
Briefly, your regex has terms that can both capture the same part of the
input, but fails to do so. The regex engine must try all combinations
before failing and due to the matching tree created, each extra character
doubles the number of ways the match can be made. Creating and traversing
this tree leads to a geometrically exponential execution time proportional
to 2^n - which you are seeing.
You may find that changing your dual expression to a possessive quantifier
(ie ++ rather than +) stops this behaviour, because with ++ once characters
are consumed, they stay consumed.
Incidentally, this expression
[-a-zA-z0-9_''^&+?:]
may be rewritten as:
[-w''^&+?:]
Because:
inside a character class (almost) all characters lose t
|
GUI hangs until all threads are created |
When you need lots of threads it is better to use thread pool. I found that
there is python binding for that, so definitely you should try this. Here
is similar topic.
Sadly there is no python binding for QtConcurrent. It is nice API but it
uses templates and it is badly documented.
|
Postgres.app: pg_restore hangs |
I think I figured it out.
The command I was running included an extra line break after the user name.
As in, I was trying to execute this
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myusername
-d mydb latest.dump
instead of this
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myusername
-d mydb latest.dump
For some reason that extra linebreak was gumming things up. Once I removed
it pg_restore worked properly.
|
Cypher hangs, how do we fix/redesign? |
So you have |r1| = 50,000 and |r2| = 1,000,000. If you want to compare each
r1 against each r2, you have 50,000 * 1,000,000 = 50,000,000,000. 50
BILLION comparisons you need to make. If each comparison takes 1 ms, it's
still going to take you 50,000,000 (fifty million) seconds to perform this
comparison. This is 578 days.
The only possible way I can see you reducing this complexity would be if
you were to create a r1 and r2 map on node p keyed on SOMEPROPERTY. Then
you would just need to get the list of r1 for SOMEPROPERTY and the list of
r2 by SOMEPROPERTY.
|
Python script hangs |
I think the way the program is written, it's expecting data to be passed in
from stdin:
ms.load(sys.stdin)
so you need:
something | quarqd_messages.py --header > message-headers.h
|