Questions tagged [data-conversion]

This tag refers to the process of converting the data type of one piece of information into another type.

1963 questions
0
votes
0 answers

converting xml output to a table in c language

I need to convert the xml output to a tabular format output. The issue is I don't know how to use xml parser in c if that is the only solution. I think there could be some other easier way as the format below is fixed. I hope anyone of you could…
Arjun G S
  • 23
  • 13
0
votes
1 answer

Converting .qgs to .shp

I have a .QGS file which I'm unable to read as QGIS is not my main platform for visualising maps. Our main platform is ArcGIS. Is there any way I can convert from .QGS to .shp or .mxd? I'm trying to use http://www.ogr2gui.ca/ to help me convert but…
MaryLim
  • 13
  • 6
0
votes
1 answer

How to correctly convert timespec to timeval?

I have a struct timespec object I need to convert to struct timeval for use with lutimes(...). I've attempted the following, but lutimes() complains. const struct timespec ts; // originally provided as function parameter from FUSE struct timeval…
Cobra_Fast
  • 15,671
  • 8
  • 57
  • 102
0
votes
0 answers

Dlib binary CIFAR-10 dataset reading, deep learning

I want to classify images in DLIB using example MNIST code: http://dlib.net/dnn_introduction_ex.cpp.html but my dataset will be CIFAR 10, binary one: http://www.cs.toronto.edu/~kriz/cifar.html I don't know how to make it readable and trainable for…
Adios
  • 1
  • 2
0
votes
1 answer

How can I convert a textual representation of a hexadecimal value to a hexadecimal value?

I'm trying to convert a string representing a hexadecimal value, for example "A0F3", into a hexadecimal or byte value. I tryed to do something like this: string text = "A0F3"; char[] chars = text.ToCharArray(); StringBuilder stringBuilder = new…
CodeXtack
  • 111
  • 1
  • 3
  • 11
0
votes
1 answer

Convert/unpack pandas dataframe of tuples into a list to use as column headers without ( ,) syntax

I have trimmed strings within a column to isolate key words and create a dataframe (totalarea_cols) which I can then use to label headers of a second dataframe (totalarea_p). However, it appears that keywords are created as tuples and when used to…
bugguts
  • 33
  • 1
  • 4
0
votes
2 answers

convert multiple values in one string to float

I have a string like this -99.00 -99.00 99.00 9.00 -99.00 and I want to convert all the numbers inside the string to float values and then append them to an array, how could I achieve that? Between the values 99.00 and 9.00 there are 3 white…
i'mlaguiar
  • 21
  • 2
  • 7
0
votes
1 answer

XML to CSV with nested and definite elements in Perl

I need to convert my xml file to csv Format. But I in csv file I need not all Information fron the XML, just 2 elements (IP Address and id from device). #!/usr/bin/perl use strict; use warnings; use Data::Dumper; use XML::Simple; #Elements,…
StayCalm
  • 145
  • 2
  • 13
0
votes
2 answers

Why does my script multiply values by 30.48?

My AutoIt script has users paste text into a field, then click a button to convert the customary units into metric units. It converts not only words, but the numbers preceding them as well. The text below is the input: 1 foot 1 inch 2 feet 2…
DED1
  • 43
  • 6
0
votes
1 answer

Prevent sign-extension during byte array to string conversion

The BYTEMASK flag in the sample code keeps the value from being signed-extended when it's converted to an int. How is this flag preventing the conversion form being sign-extended? private final static int BYTEMASK = 0xFF; private static String…
dcrearer
  • 1,972
  • 4
  • 24
  • 48
0
votes
3 answers

ISO8601 format in java given seconds

How do I get a string in Java in ISO8601 given the number of seconds since the epoch? I'm having trouble finding it anywhere. I want the format to look something like this: 2000-06-31T19:22:15Z Using just Date d = new Date(# of milliseconds from my…
curious4cs
  • 193
  • 1
  • 3
  • 14
0
votes
1 answer

Convert text formatted date DD.MM.YYY HH.MM to standart DD.MM.YYYY date format in Excel

I have a very troublesome date format that I need to convert to standart short date as DD.MM.YYYY. I have tried some formulas as below but I cannot reach the true output. Any help will be appreciated...
BTurkeli
  • 91
  • 1
  • 2
  • 15
0
votes
2 answers

String to datetime with CET/CEST

I am having some difficulties converting a string to datetime in PHP. The string can end with both CEST and CET as timezone, so I guess I have to somehow split before that? I am not looking to store the CET or CEST. I only want the date converted to…
Lee Cheung
  • 101
  • 2
  • 9
0
votes
1 answer

Converting string to datetime in python

I have a simple three line script that converts a string to a datetime in Python. from datetime import datetime mydate='Feb-22-1732' print(datetime.strptime(mydate,'%b-%dd-%Y')) But when I run this code, I get an error saying: ValueError: time…
SwapnilP
  • 3
  • 2
0
votes
1 answer

I am having difficulty in understanding a line in a decimal to binary conversion program

Alright, I know this is a silly question to ask as it is related to reverse for loop but I am struggling to understand this. I even tried to make a separate reverse for loop program to clear the context but I am still in trouble. So here is my…
that_noob
  • 83
  • 1
  • 2
  • 13