troubleshooting

Why does this setTimeout callback give me an error?

I am attempting to collapse a div on request, but my setTimeout function will does not successfully call its callback function. Here is the code below: function newsFeed() { this.delete = function(listingID) { var listing = document.getElementById(listingID); var currHeight = listing.offsetHeight; var confirmDelet...

How to detect when one function is complete from another function?

I have a javascript function that is being built to animate the collapse of a div, and then proceed with other jobs. The code is as follows: function newsFeed() { var self = this; this.collapse = function(listingID,orig_height,curr_height,opacity) { var listing = document.getElementById(listingID); var reduceBy = 5;...

For loop ignoring directories with a space in them?

Currently, my simple batch script looks like this: @echo off for /D /r C:\myprojects\AIS\ %%G in (_svn) do rd /S /Q %%G pause Unfortunately, this skips any directories with a space character in them, such as a directory called "My Projects". How do I get around this and make sure I traverse that directory as well? ...

Ruby Array.inject issue -- Can't see it

I am trying to store values from an array, to a hash (array value is the key, value just 0). Here is my code. Any ideas? [1, 2, 3, 4].inject({}) {|result, e| result[e] = 0} This is the error I am getting. oMethodError: undefined method `[]=' for 0:Fixnum from (irb):1 from (irb):1:in `inject' from (irb):1:in `each' ...

Converting vb.net code to python for educational purposes. Output of a numeric value not occuring.

My day job is mainly coding in vb.net, so I am very familiar with it. While doing my first few dozen project euler problems, I used vb.net just to get the hang of the problem styles. Now I'd like to use project euler to help me learn a new language and have been running a couple in python. However. I've hit a snag. The following code...

"Error while loading manipulator"

I'm continually getting the following error under Eclipse Galileo while trying to install the WTP Web Page Editor plugin: java.lang.IllegalStateException: Error while loading manipulator. at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:54) at org.eclipse.equinox.internal.p2.touchpo...

What can prevent a Postback in ASP.NET?

We have a user who is having problems with a ASP.NET app. The user hasn't been available to gather many details, but at this point our best guess is that the PostBack is not occurring. Something is going wrong between when the user clicks the LinkButton and when the HTTP Request is supposed to be made. (User does have JS enabled) Bey...

Troubleshooting ERROR_NOT_ENOUGH_MEMORY

Our application is failing on one specific user's computer with ERROR_NOT_ENOUGH_MEMORY ("Not enough storage is available to process this command"). The error is apparently being raised somewhere deep within the Delphi VCL framework that we're using, so I'm not sure which Windows API function is responsible. Is memory a problem? A cal...

Accessing an array of vectors trouble

My code looks like this: a = IO.readlines("input.txt").map { |line| Vector.[](line.split) } Now I want to access a single component of the first vector within my a array. I'm writing the following to address a vector: puts a[0] The behavior is pretty much expected - I receive the following: Vector[1.2357, 2.1742, -5.4834, -2.0735...

PowerBuilder 10.5 sample web services client application

I am trying to get the PowerBuilder 10.5.2 sample web services application running. I can open the workspace just fine, and I can see the objects and even run the app but I get a "bad runtime function reference" error when I try to invoke the service. I believe I have installed all the requisite parts: PB 10.5.2 .Net 2.0 SDK Web sea...

jquery + intellisense + vs2008 pro fails to load

i use win7 + VS2008 PRO to edit my blog (php) and i can't seem to get this work. i tried installing the patch (inteli hot fix) but it says no need to install (i have pro sp1) this is the folder structure: js common.js jquery-1.3.2-vsdoc.js jquery-1.3.2.js i working on a blog (not asp or html) so i created a common.js file th...

iPhone Simulator hangs after first touch

The application will stop responding to any touch events after clicking on either button. (Controller#increase / Controller#decrease methods). Here is the output of the console on startup [Session started at 2009-10-04 14:41:20 +0300.] GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009) Copyright 2004 Free S...

MySQL query gone wild!?

Can anyone tell me why the following is happening, and how to fix it? I have a MySQL query with an ORDER BY clause that looks like this.. ORDER BY (did_voteup-did_votedown) DESC, did_voteup DESC So it should order the results by their "effective" rating, as in.. 1st. 10 up - 1 down = 9 effective 2nd. 10 up - 5 down = 5 effective 3rd...

New to Git: git push origin master = "ssh_exchange_identifiction: Connection closed by remote host. Fatal: The remote end hung up unexpectedly"

I'm trying out git for the first time and am trying to follow instructions supplied by github. However, I seem to be failing on the last step. The following steps are provided by github: Global setup: Download and install Git git config --global user.name "Your Name" git config --global user.email Next steps: mkdir SomeFo...

Fastest way check xml well formed, and pinpoint problems for Windows Developer

Just wondering if somebody could suggest the quickest tool for the situations where you know somebody committed some invalid XML and you want to find it really fast. Right now I've been using XML Copy Editor. Any other suggestions? I will eventually put validation commit hooks to prevent people from committing invalid .xml files. Tha...

Why won't my site load from one computer, but it will another?

Pretty vague title, but basically I can only get "my site" to load from one computer. I've purchased hosting and a domain name, set it all up, and there's nothing there yet, but the default directory browser thing shows up when I go to the url on my work computer, but from my home computer and a virtual machine it doesn't... what should ...

Remove Spket Perspective from List in Eclipse

Hi: I uninstalled the Spket plugin from Eclipse, but there is still an "<Spket IDE>" perspective in the Perspective list. How do I get rid of it? I've made sure there are no more Spket directories under eclipse_dir/plugins, eclipse_dir/features and eclipse_dir/dropins. Where does Eclipse keep a list of its perspectives? Cheers ...

C#/.NET - Help, I have only three classes in my System.Web namespace..

I discovered the problem when I got a suggestion to use the System.Web.HttpUtility class for a certain task. Looking at the documentation, I should have about 50 classes in System.Web, but I have only these: AspNetHostingPermission AspNetHostingPermissionAttribute AspNetHostingPermissionLevel I make this assumption since they are th...

ByRef and ByVal in VBScript

I'm facing something weird in VBScript. When writing a procedure where I want the parameter to be passed by reference, the way of calling this procedure changes the way the parameter is passed ! Here is an example : Sub IncrementByRef(ByRef Value) Value = Value + 1 End Sub Sub IncrementByVal(ByVal Value) Value = Value + 1 End Su...

css problem: Absolutely positioned parent and float:right child stretches

In IE6, IE7 and FF2 the .outer div below is stretching out to the right edge of the document. Here is a complete test case: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <style> .outer { position:...