spaces

bash scripting - selectively handle file names with spaces

I have a directory with the files names as "a b c.jpg", "d e f 0.jpg", "g h i.jpg" I need a script to have all the files ending with "0.jpg" to become "_0.jpg" So, in the above example the second file should become "d e f_0.jpg" ...

CKEditor Compact HTML code

Hello! Is there anyway to tell CKEditor to not indent the code it generates from user input? It would be great if it would just add no extra spaces or tabs. Thank you. ...

How to strip all whitespace from string

How do I strip all the spaces in a python string? For example, I want a string like strip my spaces to be turned into stripmyspaces, but I cannot seem to accomplish that with strip(): >>> 'strip my spaces'.strip() 'strip my spaces' ...

Cocoa OSX: APIs to access to Spaces

I would write an application for Snow Leopard 10.6.x that enumerates all windows open in all Spaces, so I need APIs to detect if Spaces is enabled get Spaces count get a list of windows for single Spaces I was unable to find similar API maybe due to my stupidity, may you help me to move to the right direction? ...

Running an exe using powershell from a directory with spaces in it

I'm trying to run MSTest.exe from C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE. What's more, I'm taking all of the assemblies in my current directory and setting them as separate /testcontainer arguments. I cannot figure out how to do this without Powershell complaining. $CurrentDirectory = [IO.Directory]::GetCurrentD...

How to get rid of extra spacing in LinearLayout ?

I've built a widget that uses a LinearLayout and I've put two TextViews in the layout. The gravity of the layout is "top". The problem is that I get a space between the two TextViews and I can't get rid of it. <TextView android:id="@+id/Text01" android:layout_width="wrap_content" android:layout_height="...

Open new terminal window in current space, regardless of other open terminals in other spaces

When using Spaces on Mac OS X trying to open a new terminal instance results in focus being pulled to whatever space has the most recently accessed terminal window. With Finder I can click on the Desktop and then use Cmd-N to create a new Finder window. What I am looking for is a method for performing the same function for Terminal windo...

Javascript to remove spaces from a textbox value

Hi, I've searched around for this a lot and can't find a specific example of what I'm trying to do. Basically I want to get the value of a textbox, by the name of the text box (not id). Then I want to remove ALL spaces, not just leading or trailing, but spaces in the text too. For example for this html code: <INPUT style="TEXT-ALIGN: r...

Mac and different Spaces: conserving the windows arragement when changing the external monitor

Hi, I use Mac OS X Leopard with 4 different Spaces and an external monitor at workplace, which is located above the laptop. On each Space I work on a different project, with different terminal windows and Xcode and Finder windos. The problem happens when I am at home, then I use an external monitor but now located at left position. When...

How can I fill (not replace) TAB with Spaces in MSWord?

How can I fill (not replace) TAB with Spaces in MS Office Word? In other word, have a look at the following pic: 1 -> 222 -> 3 111 -> 2 -> 333 11 -> 22 -> 33 11 -> 2222 -> 3333 Suppose that -> is indicated one TAB. As you see, each column is justified from left. I need to fill each TAB with Spaces, so that the ju...

printing in java; missing spaces

I'm trying to print a swing component to paper. It's basically an extended JPanel which hosts (among other things) multiple JTextFields. These fields look correct when viewed on the screen, but when printed to paper, the text in the fields is not printed correctly... in some fields, the spaces in between words is quite large, in other fi...

How can I read a string with spaces in it in C?

scanf("%s",str) won't do it. It will stop reading at the first space. gets(str) doesn't work either when the string is large. Any ideas? ...