troubleshooting

Editing multiple buffers in vim: "((1) of 3)" in status line

When I switch between buffers in vim with ":bn" and ":bp", my status line shows the following handy information: "foo.txt" 43 lines --88%-- ((1) of 3) 38,1 All (I think it's "set showmode" that enables that.) But that "(1)" is always literally "(1)" -- it doesn't change as I change buffers. (The parens a...

Fatal error: Class 'MySQLi' not found

I am doing a tutorial and getting this error: Fatal error: Class 'MySQLi' not found (LONG URL) on line 8 the code on line 8 is: $mysqli = new MySQLi($db_server, $db_user, $db_pass, $db_name) or die(mysqli_error()); I saw online someone said to to see if it was turned on in my Phpinfo() but there wasn't anything listed in there under f...

rsync error: failed to set times on "foo.txt": Operation not permitted

I'm getting a confusing error from rsync and the initial things I'm finding from web searches (as well as all the usual chmod'ing) are not solving it: rsync: failed to set times on "/foo/bar": Operation not permitted (1) rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-35.2/rsync/main.c(992) [sen...

Line-wrapping problems with IPython shell

If I have run a long line in IPython, and try and recall it (using the up-arrow) or backspace beyond the start of the current line, it displays incorrectly (all smushed into one line) For example, in the following session I wrote a long line [1], entered a somewhat-blank line [2], then up-arrowed twice to get the print statement on line...

Cannot get Groovy AST example to work

So, I am trying to learn how to use (and extend) Groovy, and I am following the example from this page. Basically, it shows how to define an annotation for Groovy code that lets you hook in to the compiler process. The example revolves around writing and annotation that will cause lines to be printed before and after method calls. My c...

Troubleshooting a web service's speed

C# .NET 2.0 if that turns out to be applicable. I'm going to start to get to the bottom of why a web service we have is acting slow - this web service jumps over a proxy, into another domain, queries a stored procedure for some data, and then returns a int/string/dataset, depending on what I asked for. I just wrote a console app that qu...

Troubleshoot IE6 + 7 only error message.

Hello again, I have built the site: www.bgarchitect.co.nz which was as much a learning experience in jQuery and CSS/xHTML but is also a real project and as such should work in most browsers (IE6 is still a problem but IE7 should really not have an issue here). Something that bugs me terribly is getting this error: which only happens...

Hints on PHP Problem diagnosis?

I am not an expert in PHP, still learning it. I'd like some hints on how to troubleshoot problems. Recently I installed PHP 5.2.9 on Vista+IIS7 (phpIsapi). I ran a script that did an opendir()/readdir(). This script ran just fine on 5.2.0. On v5.2.9, it failed but I got no indication of the source of the problem. I banged aroun...

What is your FIRST SQL command to run to troubleshoot SQL Server performance?

When the SQL Server (2000/2005/2008) is running sluggish, what is the first command that you run to see where the problem is? The purpose of this question is that, when all the answer is compiled, other users can benefit by running your command of choice to segregate where the problem might be. There are other troubleshooting posts rega...

The referenced component 'System' could not be found. (or any other component for that matter)

The issue was reported as a bug to the VS team here but was closed as not reproducible since the original poster didn't reply I guess. I added my validation to the case, but I still can't find a workaround to fix this. Issue: Just started today, all references to any assembly outside of the solution fails to resolve, with "The referenc...

Troubleshooting remotely

I am attempting to troubleshoot some issues on machines that I don't have access to. The problems are very intermittent and impossible to reproduce locally. I am thinking of asking them to install WinDbg so they can generate a stacktrace/dump of the process. Is this the best way? What approach have you used to get to the bottom of a prob...

mercurial + OSX == fail? hg log abort: Is a directory

$ mkdir foo $ cd foo $ hg init . $ hg log abort: Is a directory $ hg history abort: Is a directory Darwin Host.local 9.6.1 Darwin Kernel Version 9.6.1: Wed Dec 10 10:38:33 PST 2008; root:xnu-1228.9.75~3/RELEASE_I386 i386 $ hg --version Mercurial Distributed SCM (version 1.2.1) $ python --version Python 2.5.4 (all installed via macpo...

Cannot upgrade RubyGems

Why is the following happening, and how can I sort it? On OS X Leopard (v10.5.6): $ ./script/server Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update --system` and try again. $ sudo gem update --system Updating RubyGems Nothing to update ...

How to fix a botched MSI installer that won't uninstall

As a followup to this question and after reading Rob Mensching's blog post that was referred to from this answer, it seems the way I'm trying to do it with msizap is a bad idea and I'm seeing some problems with it in testing. In his post under what he'd do differently, he said: With the data build a solution. I expect that a new M...

What's the easiest to remember publicly pingable IP address?

For frequent network troubleshooting purposes, do you know a publicly pingable host with an easy to remember IP address (such as 1.2.3.4)? ...

Troubleshoot Sql Server 2005 Connection issue

I have a .Net 3.5 App using a SQL Server Express 2005 database that allows connections over TCP/IP. The computer that has the SQL Server installed is part of a domain. The program is installed on 3 computers and share the same database. The connection string is in a file that is shared among all the computers. SQL Server is installed on ...

How do I solve "405 Method Not Allowed" for our subversion setup?

We're serving our source code using VisualSVN running on Windows Server 2003. Recently, we split a portion of a project into a new project in it's own repository, and then linked it back to the original project using svn:externals. Since then, we've been having issues when we try to commit files with Subclipse. The error we're getting i...

Python subprocess "object has no attribute 'fileno'" error

This code generates "AttributeError: 'Popen' object has no attribute 'fileno'" when run with Python 2.5.1 Code: def get_blame(filename): proc = [] proc.append(Popen(['svn', 'blame', shellquote(filename)], stdout=PIPE)) proc.append(Popen(['tr', '-s', r"'\040'"], stdin=proc[-1]), stdout=PIPE) proc.append(Popen(['tr', r"...

Interpreting BEA weblogic thread dumps - helpful documents and/or tools?

I am a neophyte at Weblogic troubleshooting. We have an issue on our production environment. I cannot access the ennvironment directly (our hosting people will do that, but it's some hours until I can ask them things). I have a thread dump from the time the issue was evident on production. I can look through the dump and deduce some th...

Visual Studio 2008 shuts down after converting solutions

VS2008 shuts down right after converting any VS2005 solution. The solution icon is changed from 8 to 9 but if I try to open the solution it tries to convert it again and then it shuts down (and so forth). Anyone seen this? Is a re-install the only way to go here? ...