Questions tagged [quotes]

Computer programming languages' facility for embedding text in source code, also known as String literals

In plain English: String literals can be enclosed in matching single quotes (') or double quotes (").

References:

2134 questions
0
votes
1 answer

Format the parsed csv file in Python

I have a csv file with the following format 21/10/2017 0:00;123,85;88,8 and i use the command to parse it with open('parseme.csv') as csv_file: reader = csv.reader(csv_file) So I get the values as ['21/10/2017 0:00;123', '85;88', '8'] The problem…
Cheetara
  • 165
  • 1
  • 5
  • 14
0
votes
1 answer

Extracting quotes between apostrophes in Python

I'm working on a regex to capture the text in quotes. It works, however the plain text which is the source file, has converted single smart quotes to apostrophes. For the regex I have: r("[\"|\'|\`].+[\"|\'|\`]") The regex works fine but also grabs…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
0
votes
0 answers

Strange quotes appearing during TCP connection, QT

I'm sending strings over TCP in my client/server app. On client side, getting strings looks like: void MainWindow::on_btn_login_clicked() { QByteArray login = (ui->login_input->text()).toUtf8(); QByteArray password =…
0
votes
1 answer

Preserving (reconstructing?) single quotes in Bash arguments to script commands

I wrote a shell script that lets me grep through a directory tree and preserve the path in the grep output. It started out like this: #!/bin/bash # findjs.sh # Given a word or argument, greps javascript files from one dir down to the 8th dir…
Mouse Food
  • 231
  • 3
  • 9
0
votes
1 answer

Sage 50 Accounting SDK Creating Sales Quotes with many Items

I'm using the SAGE 50 Accounting SDK C# and I need to create Sales Quotes with Items. I already achieve to create the Sales Quote record and only 1 item, but if I want to add more than 1 item, seems like SAGE is creating one sales quote record with…
Edgar
  • 194
  • 1
  • 12
0
votes
1 answer

How to import multiple csvfiles to mysql

I have 3000 csv files that are " delimited and , separated. Each is named after the server the data was collected from. I need to import them into a database to allow me to work with the data. For an individual file I've tried : mysql -uuser…
Curious User
  • 39
  • 1
  • 6
0
votes
1 answer

ERROR 1054 (42S22): Unknown column '“CompanyA”' in 'field list'

I'm not sure why im getting this error. ERROR 1054 (42S22): Unknown column '“CompanyA”' in 'field list'. DROP TABLE IF EXISTS `company`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8…
Jonathan
  • 1
  • 1
  • 2
0
votes
1 answer

Pyspark DataFrame does not quote data at save

I am trying to save a file to hdfs using com.databricks.spark.csv package, but it does not quote my data, although i define it. What i am doing wrong? df.write.format('com.databricks.spark.csv').mode('overwrite').option("header",…
clairvoyant
  • 195
  • 1
  • 11
0
votes
1 answer

Trouble passing JS function as parameter

JS Newbie here: I am trying to use JS to append some HTML to a form fieldset when a checkbox is clicked: First, I added the event onchange to the checkbox, and set it to my function:
Manual…
Axxel
  • 45
  • 1
  • 10
0
votes
3 answers

I dont know why this random quote generator shows undefined most often

Why does the following code show undefined most of the time? var fragOne = ["From morning until night", "Most pastors in church", "Hollywood movies in the 21st century", "Never disrespect anyone unless"]; var fragTwo = ["start after the weekend",…
0
votes
2 answers

Add quotes around alpha characters in alphanumeric strings using T-SQL?

I want to add quotes around alphabets in an alphanumeric string. For eg: If my string is 8AB8973, the output expected is 8'AB'8973. There is no specific pattern in which the numbers and characters will occur. I tried to run the following piece of…
0
votes
2 answers

How can I escape doublequotes when using SCP with JSch?

On a Windows system is SSH installed and keys are exchanged with a remote host (Linux). I want to run a JAR on the windows machine to SCP files to the Linux machine. Doing this on the command line with "C:/Program Files (X86)/ICW/bin/SCP.exe" -i…
du-it
  • 2,561
  • 8
  • 42
  • 80
0
votes
2 answers

Add double quotes to text file

I have a text file delimited by semi-colon with multiple rows with a header possibly. I have to add double quotes to each of the columns in the text file. I have tried to get the individual pieces work using sed. however when combined they don't…
Pallavi
  • 63
  • 10
0
votes
2 answers

sed replace every word with single quotes with double quotes

I'm trying to parse a file with single quotes, and want to change it to double quotes. Sample data : {'data': ['my', 'my_other', 'my_other', 'my_other', 'This could 'happen' <- and this ones i want to keep', ], 'name': 'MyName'}, 'data2':…
0
votes
1 answer

Finance data from alphavantage using jQuery

I am using jQuery to call the AlphaVantage finance API for stock quotes in an HTML file on the local machine. However, the .get or .ajax calls are failing. I have tried using crossdomain and jsonp, but still the call fails in the error handler. …
1 2 3
99
100