Questions tagged [data-formats]

50 questions
41
votes
6 answers

What is the spec for formatting data in QR codes? I can not find it anywhere

I'm specifically asking if, and what, is the specification for formatting the text inside a QR code - not how to generate a code (which I can do). I need to put hCard data into a QR code, however I don't know how to mark the QR code as VCF data…
Jonathan Vanasco
  • 15,111
  • 10
  • 48
  • 72
34
votes
20 answers

When and Why is XML preferable to CSV?

sometimes it feels like XML has been used just because it was fashionable.
Nick
  • 3,573
  • 12
  • 38
  • 43
19
votes
5 answers

How to represent date and/or time information in JSON?

JSON text (RFC 4627) has unambigious representation of objects, arrays, strings, numbers, Boolean values (literally true or false) and null. However, it has nothing defined for representing time information like date and time of day, which is very…
Atif Aziz
  • 36,108
  • 16
  • 64
  • 74
12
votes
8 answers

Most efficient format for transferring data to and from embedded devices

I'm having hard time to choose the format on which my server and my end points will communicate with. I am considering: JSON YAML Too hard to parse CSV Google Protobufs Binary packing/unpacking (with no use of casting/memset/memcpy to enable…
the_drow
  • 18,571
  • 25
  • 126
  • 193
11
votes
3 answers

ITL (iTunes Library) Format

I´m developing a Java solution for manage an iTunes Library (ITL file). The ITL format is a propietary one. I'm looking for an implementation or a documentation about ITL format but Google can't find anything useful. Does anyone have experience…
CHiRo79
  • 700
  • 1
  • 5
  • 17
10
votes
7 answers

What data formats can AJAX transfer?

I'm new to AJAX, but as an overview I'd like to know what formats you can upload and download. Is it limited to JSON or XML or can you even send binary types like MP3 or UTF-8 HTML. And finally, do you have full control over the data, byte for byte…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
9
votes
1 answer

Is it possible to read and write Parquet using Java without a dependency on Hadoop and HDFS?

I've been hunting around for a solution to this question. It appears to me that there is no way to embed reading and writing Parquet format in a Java program without pulling in dependencies on HDFS and Hadoop. Is this correct? I want to read and…
Jesse
  • 346
  • 4
  • 10
9
votes
1 answer

What is the best format in which to save data frames to disc in R for storage?

What is the best format to persist simple data frames to disc in R for storage while limiting semantic loss? I ask because I'm archiving a data set. In an ideal world, my data format would have the follow characteristics: Stability - the storage…
fmark
  • 57,259
  • 27
  • 100
  • 107
6
votes
1 answer

Keras correct input shape for multilayer perceptron

I'm trying to make a basic MLP example in keras. My input data has the shape train_data.shape = (2000,75,75) and my testing data has the shape test_data.shape = (500,75,75). 2000 and 500 are the numbers of samples of training and test data (in other…
20XX
  • 147
  • 1
  • 5
6
votes
6 answers

How can someone handle default datetime

I have DAL where I convert database null value to their equivalent representation in C#. For example: NULL for Numeric = 0 NULL for String = String.Empty NULL for DateTime = "1/1/0001" (i.e. DateTime.MinValue) The problem, for date, lies in the…
codingbiz
  • 26,179
  • 8
  • 59
  • 96
5
votes
0 answers

Javascript conversion/ETL library?

I'm considering creating a new Open Source library in Javascript to handle common data format conversions, but I would love to avoid re-inventing the wheel if possible. Is there an existing library that has the following features? Modular loaders…
nrabinowitz
  • 55,314
  • 10
  • 149
  • 165
5
votes
5 answers

If I have three separate values that could all fit into 32 bits, does it make sense to use a uint to store them?

What I mean is, say I have a struct to represent some data and it looks like this: struct LilStruct { public readonly short A; public readonly byte B; public readonly byte C; public LilStruct(short a, byte b, byte c) { A…
Dan Tao
  • 125,917
  • 54
  • 300
  • 447
4
votes
1 answer

JavaScript-friendly binary-safe data format design (not JSON or XML)

First and foremost: JSON and XML are not an option in this specific case, please don't suggest them. If this makes it easier to accept that fact, imagine that I intend to reinvent the wheel for self-education. Back to the point: I need to design a…
Alexander Gladysh
  • 39,865
  • 32
  • 103
  • 160
4
votes
2 answers

socket.io with strange timestamp format (?)

I see requests to socket.io containing parameter t to be like LZywzeV, LZz5lk7 and similar. All examples that i found so far used second- or millisecond-based UNIX timestamps. Has anyone ever seen a timestamp format like this? (It is not…
AsconX
  • 161
  • 1
  • 15
4
votes
1 answer

Parquet API doesn't have the concept of Keys?

Ok so after getting exceptions about not being able to write keys into a parquet file via spark I looked into the API and found only this. public class ParquetOutputFormat extends FileOutputFormat {.... (My assumption could be wrong…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
1
2 3 4