FAQ Database Discussion Community


space is shown when selecting the dropsdown option - angularjs

javascript,angularjs,html-select,space,dropdownbox
I have created an application in AngularJS with a drop down with space in option using a filter. The application is working fine with the options in drop down with indentation space before the values but the problem is when a select an option which is having a space, the...

Java Scanner issue with a regex matching a space [closed]

java,regex,space
I want a space between words. I had tried using Pattern.compile("a\\sb") in Java but it fails for a b. This is the code I used: String str; Scanner sc=new Scanner(System.in); System.out.println("Enter String"); str=sc.next(); Pattern pat = Pattern.compile("a\\sb"); Matcher m = pat.matcher(str); if( m.find() ) { System.out.println("Success"); } else { System.out.println("Failed");...

java scanner does not accept two words with space in between

java,runtime-error,java.util.scanner,space
I'm trying to create a simple project that will ask the user true or false and if true then the scanner is gonna keep storing the category name in an arraylist. And it works fine until you enter two words with a space in the category name "first second" for...

Strange behaviour of SQL order by when the string consists space

sql-server,string,sql-order-by,space
SQL Example 1: SELECT TestField FROM (VALUES('Ne'), ('NE')) AS TestTable(TestField) ORDER BY TestField COLLATE Latin1_General_CS_AS Result 1: Ne NE SQL Example 2 (between NE and a there are 2 spaces, while between Ne and a there is only 1): SELECT TestField FROM (VALUES('Ne a'), ('NE a')) AS TestTable(TestField) ORDER BY...

How to remove spaces in printf statement

c,eclipse,printf,space
I am writing a c program in eclipse to receive data from serial device. It receive the data properly and store it in receivebuffer. I am using a printf statement to print only the 4th,3rd and 2nd element of the buffer to console in hex format. Below is the code:...

How to create a column name with space in SQL Server

mysql,sql,space
I want to create a column name in a table with space. In MySQL I just created this using the back ticks. But in SQL Server it was show an error. Is there any possibilities to create a column name with space. I've tried like the following but it doesn't...

How many disk space oracle synonym takes?

oracle,storage,space,disk,synonym
We've a problem at my company because everyone shares the development oracle database. Thus, if a developer wants to modify a procedure or package, for example, other's application will fail, until this first developer ends his work. So I thought it will be great if I could create a User...

R - run system call with space in path on Mac

r,osx,directory,space
I am trying to invoke some system commands on R using system() calls. However, I am having the infamous problem with spaces in the directories. For example, I am trying to use this directory: odir <- '/Volumes/Macintosh HD 2/data/cmip5/historical/clt/models' on this command: system(paste('ls ', odir,sep='')) and I receive the following...

title does not work with decodeURIComponent and space

javascript,title,space,decodeuricomponent
I am trying to write with javasctipt line of code, but decodeURIComponent ignore everything after %20 (space). How to solve this? $(".intome").append($('<img title=' + decodeURIComponent(filename) + ' src=' + dir + ' />')); Instead of: <img title:"some text" src="img.png"> I am geting this: <img title:"some" text src="img.png"> JSFiddle: https://jsfiddle.net/emnLy1t5/9/ I...

Delete spaces and column in csv with powershell

file,powershell,csv,delete,space
I'm trying to convert a downloaded ".txt" file into a goodlooking and useful ".csv" file using powershell. I'm kindly advanced with this task but shortly before the goal I have some problems which I can not manage. It is a list with the OUI-Part of mac-addresses and its names. This...

Looking for a particular substring in SQL string

sql,substring,space,charindex
I'm trying to find some SQL code and having it doesn't seem to be returning my desired output. Here is my create/insert statement CREATE TABLE temp ([screenName] varchar(130), [realName] varchar(57)) ; INSERT INTO temp ([screenName], [realName]) VALUES ('WillyWonka', 'Will Stinson'), ('Barbara Smith', 'Barbara Smith'), ('JoanOfArc', 'JoanArcadia'), ('LisaD', 'Lisa Diddle') ;...

Cannot see the whole information from my database in a text field if i have a space in my text

php,mysql,forms,textfield,space
I have problem in my site, to be more specific in my edit pages and especially in my edit textfields it does not shows the whole information in the textfields. As you can see in the images, in the text fields it does not shows the whole information. I want...

How to fix the space in firefox and chrome?

css,wordpress,google-chrome,firefox,space
The website that I made is good if I open with chrome, but, when I open it with firefox there is a space between the menu and the content. This is the website. Do you know how to fix it? This website is developed on WordPress. So I don't know...

Removing body margin in CSS

html,css,margin,space
I'm new to web development, and met a problem when removing margin of body. There's space between the very top of the browser and "logo" text. And my code is here on jsbin. Is body { margin: 0;} wrong if I'd like to remove the space?...

Show each L,a,b component of L*a*b color space individually in Matlab

matlab,colors,components,space
I want to segment Left ventricle from CT scan RGB Image by fuzzy c means after converting my RGB image in Lab Color Space but not getting required Results. i want to saw L, a and b component of this color space individually in Matlab. Can anybody help me in...

Unix & Shell Programming: the “test” built-in and spaces on the command line

shell,unix,command-line,space
this is my first time asking question in stackoverflow. I just started Unix course in this term, and I got pretty confusing about "Space" key in command line. Here are some examples: % set x1="005" % test "$x1" = 5 % echo $status 1 The second line I got space...

In bash, how do I expand a wildcard while it's inside double quotes?

bash,wildcard,space
I would like to write the following function in bash: go() { cd "~/project/entry ${1}*" } What this would do is to cd into a project subdirectory with prefix entry (note space) and possibly a long suffix. I would only need to give it a partial name and it will...

Removing spaces from astring within a CSV in python

python,csv,space,reader
I have a CSV that is output by a program. The delimiter is a space. One "cell" of the CSV is manually input by a user, the rest is automatically generated. The issue is that the user may have a space within the string they manually input. If I were...

What is the symbol for whitespace in C?

c,whitespace,space
I am trying to figure out how to check if a character is equal to whitespace in C. I know that tabs are '\t' and newlines are '\n', but I want to be able to check for just a regular normal space (from the spacebar) inside of an if statement....

Find svg viewbox that trim whitespace around

svg,space,trim,viewbox
Assuming I have an svg that draws some paths, what tools should I use to find a viewbox that perfectly fits those paths so that all redundant space around is trimmed?

String manipulation with batch scripting

windows,string,batch-file,space
I need to save the variable in %%c temporarily which comes from a for loop. But when I try to do that, the content changes unexpectedly. Some space characters appear at the end of the string. The content of %%c is a.jpg by the way. echo %%ca REM prints a.jpga...

Replace space digit “ ” to another

java,string,replace,space
I am looking for a solution concerning replacing space digits into another, for example: "My Example is interesting".replaceAll(" ", "1"); does NOT return "My1Example1is1interesting", but only "My" I was looking for solutions also on StackOverflow, but usually found "Removing whitespaces from String/URL.." etc. Scanner s = new Scanner(System.in); String in...

How do I escape spaces in a path with Applescript?

path,escaping,applescript,filenames,space
I've written a script so I can quickly get a link to files and folders on my server. The problem is that the string I get does not escape spaces. Can someone tell me how to escape the spaces for '%20' ? tell application "Finder" set sel to (the POSIX...

removing space from string in python

python,string,space
def digits_plus(test): test=0 while (test<=3): print str(test)+"+", test = test+1 return() digits_plus(3) The output is: 0+ 1+ 2+ 3+ However i would like to get: 0+1+2+3+...