spaces

spaces in my wix source path

hi in my .wxs file the File tag Source attribute, the path has a spaces in it. <File Id="_uploads.UserImport.EDS_UserImport.xls" Name="EDS_UserImport.xls" Source="C:\**Documents and Settings**\kle\Desktop\OspreyMSIGenerator\OspreyMSIGenerator\Published\EDSContainer\uploads\UserImport\EDS_UserImport.xls"></File> i get this error candle...

C# - Easiest way to parse filename with spaces eg. "C:\Test\File with spaces.txt"

I am trying to pass a full file path to FFMPEG. C:\TestFolder\Input\Friends - Season 6 - Gag Reel.avi and it's obviously not liking the fact the path has spaces in it, erroring like so: C:\TestFolder\Input\Friends: no such file or directory So what's the easiest way to use filenames with spaces in them? Should I just replace all ...

LINQ puts unwanted trailing spaces on strings

Hi I have a very annoying problem with LINQ and MS SQL Server. Im currently making some software in WPF C# and use LINQ to generate classes from the data in the database. However, when i update a nvarchar or varchar field in the DB from my program, LINQ adds trailing spaces to the string! I have a field in a table defined like this: ...

How to use spaces in the URL path in mod_alias’ Redirect directive?

Following on from link text, I've also got problems with file paths that contain spaces. I was told to simply enclose the full path in quotes, and that should work, but I keep getting this page marked up in my Webmaster Tools error log as not being found: redirect 301 /"News/Press Releases/Press_Release_Update_Oct_2006.pdf" /index.html...

TOpenDialog And Spaces

I have a project on Lazarus that I want to compile a source using gcc, for this I have a TOpenDialog called OpenDialog1 and a TProcess called AProcess. I call gcc with this code: procedure TFormMain.btCompileClick(Sender: TObject); begin if OpenDialog1.Execute then begin AProcess := TProcess.Create(nil); try AProcess....

How to display tabs as 4 spaces in gnome-terminal

Actually gnome-terminal display tabs as 8 spaces, and this is very annoying when you cat files or view diffs, is there some way to change this permanently? ...

Python's interpretation of tabs and spaces to indent

I decided, that I learn a bit of Python. The first introduction says that it uses indentation to group statements. While the best habit is clearly to use just one of these what happens if I interchange them? How many spaces will be considered equal to one tab? Or will it fail to work at all if tabs and spaces are mixed? ...

Cocoa Accessibility API and Spaces?

I'm facing a problem for an application I'm writing (http://code.google.com/p/blazingstars/issues/detail?id=25), where my program is a menulet (menu bar) application that uses the Accessibility API to interact with and control another program. I do the usual things like registering for the API notifications and getting the window list t...

How to strip all spaces out of a string in php?

How can i strip / remove all spaces of a string in PHP? Say i have a string like $string = "this is my string"; the output should be like "thisismystring" How can i do that? ...

Can you make valid Makefiles without tab characters?

target: dependencies command1 command2 On my system (Mac OS X), make seems to require that that Makefiles have a tab character preceding the the content of each command line, or it throws a syntax error. This is an annoyance when creating or editing Makefiles because I have my editor set up to be all-spaces-all-the-time. Can ...

how to minimize the effect of space or newline in HTML?

First of all, my question may be unclear. I will try to explain it. this is my html <div class="left"><?php print $search_box; ?><?php if (!empty($logo)): ?><a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" width="243" height="62"...

Can I use WSGI with a URI that has spaces?

I wrote a small WSGI App: def foo(environ, start_response): bar = 'Your request is %s' % environ['PATH_INFO'] status = '200 OK' response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(bar)))] start_response(status, response_headers) return [bar] ...

Save and open later space configuration in Mac OS X

Hi, let's say that I am working using several spaces. In one of them I ahve 20 applications opened with its respective files. Computer crashes and I have to open everything again, or just, I want to save this configuration, so later, I open this config, and inmediately, all these 20 apps open with those files, and even better, in the sa...

using mdfind how can I append an mv command to the result and escape spaces?

Using apple os 10.5.x I am trying to hunt down font files and move them on client workstations. So far I have: mv $(mdfind -onlyin ~/Desktop/fontRm/ "kMDItemContentType == '*ont*'" | sed -e 's/ /\\ /g') /Users/chrihopk/Desktop/target/ I'm struggling with getting the sed command to escape the spaces before the mv command executes. Tha...

Empty character in Objective-C

I'm creating some code that will find a space between characters, and use the characters before the space and the ones after it. These characters are stored in a NSString. Here is what I have so far, however, it's not seeing the empty character. NSString *tempTitle = self.title; unsigned int indexOfSpace; // Holds the index of the c...

How can I programatically move one Terminal.app window to another space?

If I have several OS-X Terminal.app windows open, how can I move one Terminal window to another space? I'm happy to use any scripting or programming language to achieve this, but would prefer AppleScript or calls to standard frameworks. (Note this is to move only one window of an application not all windows.) ...

Add spaces to the end of some Bash autocomplete options, but not to others?

I'm trying to create a Bash completion script for a Java program. A typical invocation of that program might look like this: $ javaProgram -Dproperty=foo option1 option2 Part of my script will be to suggest the various Java properties that are available for this program (i.e., when the user types "-D", the script would suggest, say, ...

what is the kind of spaces in java?

what is difference of below operators for spaces? \t, \n, \x0B, \f and \r. ...

Enforce "spaces" or "tabs" only in python files ?

In Python, is there a mean to enforce the use of spaces or tabs indentation with a per file basis ? Well, perhaps "enforce" is too strong, more like a "recommendation". I keep receiving patch files with mixed indentation and this is annoying... (to say the least) Python itself can tell when there is a problem, but I am searching somet...

simplest way to check for just spaces in ruby

So I know in ruby that x.nil? will test if x is null. What is the simplest way to test if x equals ' ', or ' '(two spaces), or ' '(three spaces), etc? Basically, I'm wondering what the best way to test if a variable is all whitespace? ...