error

mapping already exists for ^I in vim

I have added the following lines to the vimrc file so that i could use s-tab for indenting map <esc>[Z <s-tab> ounmap <esc>[Z After i have added this , i get the following error. I use SnippetsEmu plugin Error detected while processing function <SNR>15_SnipMapKeys: line 10: E227: mapping already exists for ^I How do i solve this ...

PHP : Function in preg_replace says that the function was already declared

The Function: function doSomething($url){ $url = "<a href=\"{$url}\" target=\"blank\" title=\"{$url}\">{$url}</a>"; return $url; } The replacement $content = preg_replace("#(http:\/\/+[^\s]+)#ie","doSomething('$1')", $content); The Problem: Fatal error: Cannot redeclare doSomething() (previously declared in http:/...

[MiKTeX] The TPM file could not be parsed

Hi all, I'm getting this error when I try to Refresh FNDB, update the packages or manage it. How can I solve it? The log is: MiKTeX Problem Report Message: The TPM file could not be parsed. Data: C:\Program Files\MiKTeX 2.8\tpm\packages\pstricks.tpm Source: Libraries\MiKTeX\PackageManager\TpmParser.cpp Line: 390 MiKTeX: 2.8 OS: Micros...

Unrecognized Selector when Using UITableView in a Subview

Hi everyone, I am building an app that uses a TabBarController to display several other views. In one of these views, I'm using a navigation controller to navigate some tabular data. When the user click's this tab, I load in the NavigationController which in turn loads the TableView that I'm using. The issue is that I get the following ...

How do I use selenium with Ruby?

I made some tests with the Firefox Selenium and then had it exported to Ruby. Although the tests all ran fine in Firefox, I am having trouble running the same suite in Ruby. I tried to run one of the example programs they have and I also get the same connection refused error. Here is the error I got when trying to run their google_tes...

Android: Vibrator doesn't work. Foce Close emulator

hey Guys, I'm still an Android & Java noob, but everything I've seen is telling me this should totally work, but it doesn't! not in the emulator, not on the phone.. I'm trying to use the vibrator using vibrate(500); ..I get an " application stopped unexpectedly " error what am I missing? code below: package com.phys; import androi...

Error of screen resolution using PrimaryMonitorSIze or Caps

Hi, I have serious problems to detect screen resolution under vista64. I have 2 methods using C# to find the resolution backside of a webpage. Client side resolution using javascripting is fine but backside nothing is correct. 1/ int deskWidth = SystemInformation.PrimaryMonitorSize.Width; return 1024. 2/IntPtr hdcSrc = User32.GetDesk...

PHP code errors

Hi! I am new to PHP.. I am updating a couple things for a friend's site. I thought I added the code correctly, but when I click submit from the html form, I basically get all the PHP code displayed. (When working correctly it is redirected to another page). Here is the code that I have: <?php // Website Contact Form Generator // http...

uncaught exception: [CKEDITOR.editor] The instance already exists

I've included the CKEditor on my site. Everything works even though I get this JS error: uncaught exception: [CKEDITOR.editor] The instance "simple_editor" already exists. The code below is contained inside a PHP file which I include where ever I want the editor. I only have one instance of the editor per page. <textarea class='ckedit...

Issues during "Publish Web Site" from Visual Studio

Hi, I'm currently trying to precompile my website as the hosting provider I am using takes a considerable amount of time to compile the site upon the first request after uploading changes. The site compiles fine locally and runs in debug mode without any problems. However, when I "Publish web site" I am constantly receiving a "Object r...

iPad app works on most devices, gets EXC_CRASH (SIGABRT) on some

Hi, I created this awesome iPad game - clean and fun to play, and people that manage to play it more than once love it. In some cases, however, it will not launch for the second time. I can't debug it since it works perfect on my iPad, simulator and on all my friend's iPads. One customer told me that it works on 32GB but not on 64GB iPa...

how can i trigger ajax error callback on success callback?

I'm looking for a way to trigger ajax error in success callback. i have tried to explain my problem code below: $.ajax({ url: requestURL, data: postData, type: 'post', success: function(response){ if(response.Success){ // do something }else{ // request workflow fails in this case, // i have to trigger thi...

Tried to validate my page, I have an error on my <script> tag, missing attribute?

Line 207, Column 50: Required attributes missing on element script. <script type="text/javascript" charset="utf-8"> Element-specific attributes for element script: Global attributes src async defer type charset What is it that I am missing? Thankyou Edit: This is for all of my handwritten code, I don't wa...

doctrine 2 Annotations and Zend Framework underscore convention

I am working through the doctrine 2 (Beta3) sandbox and trying to apply the Zend Framework coding convention of placing a leading underscore to private class members. When I query Address, while its private members are NOT underscored, i retrieve the object as expected. When I add the underscores, regenerate and repopulate the db, and th...

iPhone: error in UIViewController interface declaration (expected '=', ',', ';', 'asm' or '__attribute__' before 'interface')

I have been working on this iPhone app for quite a while and everything has been working fine, but now all of the sudden, I am getting this error in a file I don't remember editing (nor do I remember editing anything relating to it, but it's possible.): /Users/on_fire/BWOC 0.5/Classes/../BrowserViewController.h:29: error: expected '=', ...

Python raw_input("") error

Hello, I am writing a simple commandline script that uses raw_input, but it doesn't seem to work. This code: print "Hello!" raw_input("") Produces this error: Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> raw_input("") TypeError: 'str' object is not callable I have never encountered this error before,...

Rake and MSBuild error - error MSB3021: Unable to copy file

We're using Rake with Albacore for our build & deploy process in TeamCity but my latest solution is causing me problems when I compile. When I run msbuild I get the following error: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets(60,3): error MSB3021: Unable to copy file "bin...

IE8 error with javascript file which has jQuery functions?

I'm getting this error in IE8: Page Error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5;. NET CLR 1.1.4322;. NET CLR 2.0.50727;. NET CLR 3.0.04506.30;. NET CLR 3.0.4506.2152;. NET CLR 3.5.30729;. NET4.0C) Timestamp: Wed, 1 Sep 2010 11:15:04 UTC Message: Object does not support this propert...

SQLState=S1000, NativeError=0

I am trying to use the BCP command to execute the following statement, but I keep getting the following error: Starting copy... SQLState = S1000, NativeError = 0 Error = [Microsoft][SQL Server Native Client 10.0]Unexpected EOF encountered in BCP data-file 0 rows copied. Network packet size (bytes): 4096 Clock Time (ms.) Total : 1 ...

16-bit Assembly on 64-bit Windows?

Hi, I decided to start learning assembly a while ago, and so I started with 16-bit assembly, using FASMW. HOwever, I recently got a really new computer running Windows 7 64-bit, and now none of the compiled .COM files that the program assembles work anymore. they give an error message saying that the .COM is not compatible with 64-bit wi...