Questions tagged [spaces]

The space character, `U+0020`, used to separate words/tokens in most natural and programming languages.

The space character, U+0020, used to separate words/tokens in most natural and programming languages. Space is a whitespace character.

Spaces are frequently of concern to programmers in the context of languages with significant whitespace (e.g. Python), source code indentation, and separating tokens. Separating tokens correctly is important for shell scripts, URIs, file names/paths, text processing, and string formatting. Questions regarding all of these areas are common on Stack Overflow, as spaces appearing unexpectedly can cause unexpected behavior whose source is not immediately obvious.

"Spaces" may also refer to the virtual desktop functionality of Mac OS X, first referred to as "Spaces" in OS X 10.5.

1024 questions
0
votes
3 answers

How to add space between dynamically created buttons in android

i have dynamically created lot of buttons.How to add spaces between two buttons. please help me. Thanks in advance My code: private LinearLayout LLDynamic; private RelativeLayout.LayoutParams ParaOne; ParaOne = new…
AndroidRaji
  • 907
  • 14
  • 26
0
votes
2 answers

Batch that deletes multiple directories/folders containing spaces

I am trying to write a batch that deletes multiple directories/folders in a directory I am using for /D %f in (*) do rmdir %f /s /q Now this works and deletes folder names that dont contain a space. I recieve this message after running the above…
Phill
  • 11
  • 1
  • 2
0
votes
1 answer

Ignore spaces in Solaris 'find' output

I am trying to remove all empty files that are older than 2 days. Also I am ignoring hidden files, starting with dot. I am doing it with this code: find /u01/ -type f -size 0 -print -mtime +2 | grep -v "/\\." | xargs rm It works fine until there…
erizo
  • 347
  • 1
  • 3
  • 8
0
votes
1 answer

Spaces added in while reading from file...?

I'm trying to read a word and its corresponding code from a file for a project. This is the code I have, and it reads it fine, just for some reason spaces are added after some, but not all, of the codes. I do not understand why it is happening. The…
Jo.P
  • 1,139
  • 4
  • 15
  • 35
0
votes
2 answers

Spaces in system() C++

I've tried with some solutions found in Stackoverflow, but i can't get it to work, i want to start a .LOG (.txt file) from C++, but the path folder containing it might have spaces, so when i try to start it, i get an error saying it cant find the…
0
votes
1 answer

String Trim Spaces doesn't work

I have a problem with a String. The string is like this: string something = " whatever and something else "; Now I'm trying to get rid of the spaces at the beginning and at the end like this: something = something.Trim(); But that didn't work, I…
Philipp Thi
  • 37
  • 2
  • 7
0
votes
2 answers

Navigation bar images have space

I decided to change from my text/links to image links for my navigation bar, but now my images have spaces between them. http://justxp.x10.mx/test/ How can I fix this?
DBS
  • 19
  • 4
0
votes
2 answers

C# RCon - Replace random amount of spaces?

I currently got a problem with RCon. I am basically sending a request to receive a list of all players. The server answers with a list of all players like this: # IP:Port Ping ID Name 0 127.0.0.1 0 3523523 …
user1137183
  • 119
  • 2
  • 11
0
votes
2 answers

Convert list of ticker symbols into list in Python

I need to convert a list of ticker symbols: T GOOG KO PEP as examples in a a text file to a python list: ['T','GOOG','KO',PEP']. However, the current code I'm using keeps adding a space after each symbol yielding: ['T ','GOOG ','KO ',PEP '] instead.…
user1526586
  • 93
  • 1
  • 3
  • 10
0
votes
4 answers

Solr Query : Search for fields containing only white spaces

How do i write a solr query to search for a field with only white spaces in it ? For example { "phone_number":"Airtel", "smstype":1, "phone_status":-1, "user_hash":"52565f64ba3e8df1aa", "contact_name":" ", …
resay
  • 46
  • 3
0
votes
1 answer

Hidden Space in URL

When I go to http://sweatingthebigstuff.com/lending-club-loans-to-avoid/, I get a 404 page. But when I hit backspace twice, it deletes the / but not the d so there's a hidden space there. Once I delete it, it works. How is there a hidden space in my…
Daniel
  • 6,758
  • 6
  • 31
  • 29
0
votes
4 answers

Parsing XML files with Java and spaces in file path

I have files on my file system, on Windows XP. I want to parse them using Java (JRE 1.6). Problem is, I don't understand how Java and Xerces work together when the file path has spaces in it. If the file has no spaces in its path, all works fine. If…
glmxndr
  • 45,516
  • 29
  • 93
  • 118
0
votes
1 answer

Cannot get the uri based on a contact's name

I started building my app for api 13, because I thougth it could be efficient enough for the most users. But i changed it to api 10. Then the following code stopped working ` String empName=data.getStringExtra("name"); …
ASK
  • 117
  • 1
  • 12
0
votes
5 answers

Remove spaces from selected state in option dropdown on change event

In a data query, I get a tree structure: