spaces

When are Browsers or W3C going to change Pages to Space?

Ok I have a question? Why are web Browsers still thinking in 2d not 3d... Meaning Why can't we scroll left or up in the negative? Well, not actually scroll but at-least send the user to any negative space. I understand the browser has to have a horizontal and vertical starting point of 0... But why don't they think out side of the box an...

Deleting tabs when using tabs as spaces

I know that the general tabs vs spaces thing is as old as the hills and mostly comes down to personal preference/sticking to the style of your team, I just wanted to ask a practical question about using spaces in Visual Studio. There are certain things about tabs that bug me and I wouldn't mind changing to spaces while we're a small team...

what is the difference between Space-based computing and Cloud computing.

Hello, I am new to the Cloud Computing world. So I yet to learn too many things about cloud computing. Yesterday, I was watching a video pod cast on space-based programming and through out the session, I felt that the whole concept of spaces sounds similar to cloud computing. After the session, I searched the web for understanding the di...

JEditorPane - make tabs spaces

I'm wondering if there's a way to have tabs convert to spaces in a jeditorpane, much like you'd see when working in an IDE. I don't want to set the tab size. I can already do that easily. I want to have tabs replaced with their equivalent in spaces. So for example if my tabs are 5 spaces long, I would want all tabs replaced immediately ...

Linux / C Check if a char contains spaces, the newline character or the tab character

I have a GtkEntry where the user has to enter an IP number or a hostname. When the button is pressed what the user typed into the entry is added to a char. How can I programmatically check if this char contains spaces, the newline character or the tab character? I don't need to remove them, just to know if they exist. Thanks in advance! ...

stringByAddingPercentEscapesUsingEncoding not working with NSStrings with ' 0'

Hi ! I have been having some problem with the stringByAddingPercentEscapesUsingEncoding: method. Here's what happens: When I try to use the method to convert the NSString: "..City=Cl&PostalCode=Rh6 0Nt" I get this this.. "City=Cl&PostalCode=Rh62t" It should be: "..City=Cl&PostalCode=Rh6%200Nt" What can I do about this? Thanks ...

Super CSV (Java) - Read Files with Spaces in Column Names

Hey everyone! I'm working with Super CSV and it looks like an amazing package. My only worry is how to work with columns with spaces in their names. No, I cannot go back and remove the spaces myself. These files will be given to me by the hundreds and I don't have time to go back and fix all 60 columns for each file and I can't trust e...

JDBC url with database containing spaces

I'm trying to connect to a SQL Server database using JDBC, the database I'm trying to connecto to contains a space, and unfortunately I have no control over the name, so I can't change it. The code I'm using is: String jdbcString = "jdbc:sqlserver://" + hostname + ":" + port + ";databaseName=Database Name"; try { connection...

Emacs global configuration of tabs

I'm attempting to switch from Vim to Emacs, but I'm tearing my hair out trying to configure it to treat tabs how I wish. I require: Inserted "tabs" to be expanded into two spaces. Emacs stubbornly sticks to eight, no matter what I do. Tabs (i.e. real \t characters) to be represented on screen by two spaces. Pressing TAB should insert...

How to clean spaces in a NSString

Hi, I would like to reduce the number of spaces between two words in a NSString (Objective-C/iPhone dev) to only one. Do you know some method that could do that ? Exemple : Before cleaning : "Hi,       my   name       is                Tom." After cleaning : "Hi, my name is Tom." Thanks ...

Writing a custom bash-completion rule.

I have directories full of files with the same prefix, which I want to be able to quickly open in vim. For example, I might have: $ ls * bar: bar_10 bar_20 bar_30 foo: foo_10 foo_20 foo_30 What I want is to be able to be in one of these directories and type: $ vim <TAB> and it autocomplete to: $ vim bar_ To achieve this I a...

How to get the received email with spaces in CAKEPHP?

Hi, In my cakephp website i have a controller which handles a simple contact form. But i have a problem! If in the contact_controller.php code i use: $this->Email->send($this->data['Contact']['message']); i receive the email in my mail box with linebreaks like the user wrote the message. But if i use: $this->Email->send(); and cre...

Defining Mac OS X workspaces with macros

When I'm at home I use an external monitor with my MBP; when I'm on the road I don't have access to this. I therefore have two separate workspace setups. Does anyone know of a macro or similar that would set these workspaces up for me? I waste quite a bit of time setting them up by hand. ...

TSQL syntax issue with LTRIM(RTRIM not working correctly

What is wrong with this statement that it is still giving me spaces after the field. This makes me think that the syntax combining the when statements is off. My boss wants them combined in one statement can someone help me understand what I am doing wrong? Case WHEN LTRIM(RTRIM(cSHortName))= '' Then NULL WHEN cShortname is NOT NU...

MYSQL STORED PROCEDURE with OUTFILE with no spaces in txt file

I would like to export a query result in a txt file, but with no field separators like this: field1field2field3field4 if I use the fields terminated by and optionally enclosed by and set them to '', I still get some kind of tabs between fields... How can I get the output right? thanks in advance... ...

DOS:remove spaces

Hi, I am executing the below script, but it is not working as there are spaces in between. Below is the script: move C:\abc\d\System Table\Table Six (Top)\LogFiles*.jpg D:\Archive\ How can we eliminate the spaces in between & make sure the system understands so that it moved all jpg files to D:\Archive Regards, Orbit ...

[Eclipse] - Inserting Spaces Instead of Tabs in ALL Files

Our unit testing setup makes sure you use spaces instead of tabs in all files, including .jsp and jspx. I have set this option for the general editor but the jsp editor does not recognize/see this option and still continues to use tabs instead of spaces. Is there a way to force the jsp editor to insert spaces instead of tabs? :) ...

Regular Expression in Visual Studio Find & Replace - multiple spaces between search terms

I require a regular expression for the Visual Studio Search and Replace funtionality, as follows: Search for the following term: sectorkey in ( There could be multiple spaces between each of the above 3 search terms, or even multiple line breaks/carriage returns. The search term is looking for SQL statements that have hard-coded Secto...

SSMS 2008 converts control characters to spaces when using 'Results to Grid'

I have a table in which one column (type ntext) has data that includes carriage return and linefeeds. (CHAR(13) and CHAR(10)). If I right click the table in SSMS 2008 and choose 'Select Top 1000 rows' and the display mode is set to "Result to Grid" it seems that control characters (like TAB and CRLF) are converted to spaces for display...

CKEditor remove spaces/tabs from between headings

Hello! CKEditor does this whenever I add a heading tag: <h2> Mai 2010</h2> How can I remove the new line and spaces after the h2 starting tag, please? ...