data-conversion Questions

4

Solved

I'm working with an ODS file in LibreOffice, and every now and then I want to convert it to CSV from the command line. I have found two tools for this: libreoffice --headless --convert-to csv and u...
Disparage asked 29/10, 2020 at 10:21

6

I have a few XML files containing data for a research project which I need to run some statistics on. The amount of data is close to 100GB. The structure is not so complex (could be mapped to perh...
Tarazi asked 30/11, 2012 at 11:20

12

Solved

So I have this function: function toAlpha($data){ $alphabet = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'); $alpha_flip = array_f...
Outlier asked 5/10, 2011 at 15:52

33

Solved

How do I convert a string to an integer in JavaScript?
Big asked 15/7, 2009 at 20:22

28

Solved

How can I convert all numbers that are more than 3 digits down to a 4 digit or less number? This is exactly what I mean: 10345 = 10.3k 10012 = 10k 123546 = 123.5k 4384324 = 4.3m Rounding is not...
Jacklighter asked 16/8, 2013 at 6:37

3

I have used "HasConversion" in my DBContext to define a JSonArray (Language/Value) and save it as a Text field for ages and It works like a charm, I added a new project to my solution, nothing chan...

24

Solved

There is this example code, but then it starts talking about millisecond / nanosecond problems. The same question is on MSDN, Seconds since the Unix epoch in C#. This is what I've got so far: pu...
Erlindaerline asked 30/10, 2008 at 10:30

3

Solved

I have a float64 containing a duration in seconds. I'm looking for a way to convert this value to a time.Duration. I'm able to perform this conversion, but I'm wondering if there is not a more eleg...
Massive asked 27/5, 2021 at 16:23

5

Solved

I have a two levels factor in my data that I want to convert to logical a <- str(df$y) a Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 1 1 1 ... I use as.logical(df$y) to convert them into logica...
Poisonous asked 26/7, 2017 at 14:43

5

This is my code. var xhr = new XMLHttpRequest(); xhr.open('GET',window.location.href, true); xhr.responseType = "arraybuffer"; xhr.onload = function(event) { debugger; console.log(" coverting ar...
Chickie asked 18/7, 2016 at 9:4

6

Solved

I'm running a simple PDF to image conversion using Python PDF2Image library. I can certainly understand that the max memory threshold is being crossed by this library to arrive at this error. But, ...
Labdanum asked 6/6, 2019 at 6:8

4

My data is extracted from an application and it has a text that looks like a date/time in excel. How do I actually convert "3/24/2016 11:22:07 PM" (in text) to a real date/time conversion? I've tri...
Ronnie asked 28/3, 2016 at 9:59

9

Solved

I came across this problem that has Ternary expression (a?b:c) and needs the ternary expression to be converted into a Binary tree structure. a?b:c a / \ b c a?b?c:d:e a / \ b e / \ ...
Metropolitan asked 12/2, 2015 at 21:10

13

Solved

I've copied certain files from a Windows machine to a Linux machine. All the files encoded with Windows-1252 need to be converted to UTF-8. The files which are already in UTF-8 should not b...
Goodtempered asked 6/1, 2010 at 15:39

5

Solved

I am not very familiar with iseries/DB2. However, I work on a website that uses it as its primary database. A new column was recently added to an existing table. When I view it via AS400, I see th...
Decemvir asked 25/10, 2012 at 19:13

6

Solved

I'd like to convert result table to JSON array in MySQL using preferably only plain MySQL commands. For example with query SELECT name, phone FROM person; | name | phone | | Jack | 12345 | | John...
Sweven asked 20/1, 2017 at 8:10

4

Solved

I have a tuple of characters like such: ('a', 'b', 'c', 'd', 'g', 'x', 'r', 'e') How do I convert it to a string so that it is like: 'abcdgxre'
Bertrambertrand asked 28/10, 2013 at 17:45

3

I'm trying to convert heic file in jpeg importing also all metadata (like gps info and other stuff), unfurtunately with the code below the conversion is ok but no metadata are stored on the jpeg fi...
Ruttger asked 28/11, 2020 at 1:44

8

Solved

I have a list of dictionaries that looks something like this: toCSV = [{'name':'bob','age':25,'weight':200},{'name':'jim','age':31,'weight':180}] What should I do to convert this to a csv file t...
Demobilize asked 21/6, 2010 at 17:36

2

Solved

I have found 3 methods to convert Uint8Array to BigInt and all of them give different results for some reason. Could you please tell me which one is correct and which one should I use? Using bigin...
Voroshilov asked 31/7, 2022 at 6:42

4

In Amazon Redshift tables, I have a string column from which I need to extract numbers only out. For this currently I use translate(stringfield, '0123456789'||stringfield, '0123456789') I was t...
Chiropractor asked 22/3, 2014 at 5:27

5

Solved

I know this question has been asked many times. I tried several solutions but I couldn't solve my problem. I have a large nested JSON file (1.4GB) and I would like to make it flat and then convert...
Zobe asked 16/12, 2016 at 9:20

10

Solved

I have a byte array of the form [4,-101,122,-41,-30,23,-28,3,..] which I want to convert in the form 6d69f597b217fa333246c2c8 I'm using below function function toHexString(bytes) { return bytes.m...
Endodontics asked 16/12, 2015 at 10:49

3

Solved

I have a matrix which I want to convert to one with binary output (0 vs 1). The matrix to be converted contains four rows of rankings (1 to 4): mat1.data <- c(4, 3, 3, 3, 3, 2, 2, 1, 1, 1, 3, 4...
Syck asked 16/7, 2022 at 14:3

4

Solved

In C I will do this to convert float representation of number into DWORD. Take the value from the address and cast the content to DWORD. dwordVal = *(DWORD*)&floatVal; So for example 44.54321 ...
Temper asked 15/2, 2014 at 17:42

© 2022 - 2024 — McMap. All rights reserved.