This tag refers to the process of converting the data type of one piece of information into another type.
Questions tagged [data-conversion]
1963 questions
0
votes
1 answer
How to convert fraction numeric value to string "as it is"?
I have a float value like this : 0.60000002384185791
I want to convert this value to string like this : 0.60000002384185791 (Exactly same - No scientific notations or clipping off precision)
But whenever I try to convert this value to string, it…

Bharat Mori
- 363
- 1
- 5
- 14
0
votes
0 answers
How convert mail body from iso-8859-2 into utf-8
I'm using JavaMail to handle mail from my mailbox, and I have a following problem.
The content type of a mail is: Content-Type: text/plain; charset=iso-8859-2 (that's only in this case, I have to handle various mails with cp-1250 and many…

Piotr Olaszewski
- 6,017
- 5
- 38
- 65
0
votes
1 answer
How to convert a string into binary data (EDID) in python
I currently writing a EDID Script to be able to choose custom resolutions in my Fedora25
I found this assembly script to generate the different solutions. I was able to use this as a "template" and my python script works fine generating the CEA…

Nico
- 323
- 4
- 14
0
votes
1 answer
Apache Configuration add object instead of String
I have a problem with apache Configuration. Is it possible to add objects and not the string representation of them?
For example, I would like to save the whole 'SiteNode' and not the "toString()" variant:
public void persistSiteTree(Context…

CookieAndPizza
- 71
- 3
- 15
0
votes
1 answer
Convert table using columns as rows in r
> data
timestamps diff time date
1 2017-09-01 00:00:00 0.000 00:00:00 01
2 2017-09-01 01:00:00 0.000 01:00:00 01
3 2017-09-01 02:00:00 0.000 02:00:00 01
4 2017-09-01 03:00:00 0.000 03:00:00 01
5 …

Jonreyan
- 131
- 2
- 3
- 14
0
votes
1 answer
Invalid characters passed with Process.StandardInput.WriteLine
I'm trying to execute a netsh command using System.Process passing an argument and I'm getting a "The parameter is incorrect." return.
The parameter informed is:
http add sslcert ipport=0.0.0.0:{port} certhash={certificateHash}…

geanito
- 1
- 2
0
votes
1 answer
Stata14 "proper" case conversion issue
I am using Stata14. The command:
replace name = proper(name)
turns "james" into "James". However, the command does not work correctly when the name has a special accented character: the first letter is correctly capitalized but the letter following…

Elixterra
- 281
- 1
- 3
- 11
0
votes
2 answers
Plain text to Hexadecimal manually
How to manually convert a plain text to hexadecimal ?
Eg Hexadecimal form of Hello
P.S I do not need code but the manual way to convert.

Sivagami Nambi
- 332
- 4
- 9
0
votes
0 answers
Matrices conversion Octave <-> OpenCV
Is there a simple way to convert Octave matrices to/from OpenCV matrices?
There are several relatively complicated answers related to converting matlab matrices to openCV matrices, (including yamlmatlab project that unfortunately requires matlab,…

Nir
- 1,618
- 16
- 24
0
votes
0 answers
Import .csv file into SQL Server and convert varchar to decimal or money data types
I have imported a data set from a .csv file into SQL Server using the DTS import wizard. All the data imported is in VARCHAR data type in the SQL Server table.
I need the columns containing money values (now in the varchar data type columns in the…

BarkingPuppy
- 1
- 1
0
votes
4 answers
Date and time conversion
I am working on a news app and I get the date and time from the json response in this pattern (2017-09-23T14:22:28Z).
How can I convert this date and time into something like that (5 seconds ago, 10 minutes ago, 3 hours ago, etc)?
And after 24 hours…

mani
- 27
- 8
0
votes
2 answers
0 is converted to 128
I am trying to do SNMP Set from host Linux to target system. But, instead of correct values, wrong values are getting set. After a bit of research, I made this table:
Hex representation of decimal value in Linux snmp
0 - 0x80 - 1000 0000 - 0 is…

misswordsworth
- 13
- 1
0
votes
2 answers
How to convert "21 marzo 2017" to Unix timestamp?
I have a string representing a date: 21 marzo 2017. I want to convert it to a Unix timestamp.
echo strtotime('21 march 2017'); works because the month is in English.
echo strtotime('21 maggio 2017'); doesn't work because the month is in…

andrea
- 396
- 2
- 12
0
votes
4 answers
how to check the if condition with string and integer
I want to get result of a value with if condition.
i have get some value in xml file.
now what I want is
if I have a variable "a" here i have assigned some values by using dataset.
and i have another variable "b" is assigned value from xml…

Vinoth
- 972
- 1
- 16
- 47
0
votes
1 answer
What is a proper way to convert a Doctrine Entity to array/JSON/XML?
I'm migrating the Zend\Db driven DBAL of a Zend Framework 3 application to Doctrine. Everything is working fine, but now I got a problem with the export of data.
Before the migration it was working as follows:
There is a more or less complex data…

automatix
- 14,018
- 26
- 105
- 230