Questions tagged [converters]

Converters can change data from one type to another, translate data based on cultural information, or modify other aspects of presentation.

Value converters are culture-aware. Both the Convert and ConvertBack methods have a culture parameter that indicates the cultural information.

Ref: IValueConverter

5697 questions
1
vote
2 answers

Converting XML to JSON in JS

I just recently started learning js and trying to solve the problem of converting xml source file 1 2
1
vote
2 answers

Convert image file into base64 image in Flutter Web

I am using the flutter camera plugin to take pictures from my app using the camera device and send them as base64 images on the server. When I want to convert the generated image into a base 64 image I can perfectly do it from my android emulator…
JS1
  • 631
  • 2
  • 7
  • 23
1
vote
1 answer

Reading excel values as seconds and convert to minutes

I am currently writing a lager script to ease my life. Right now I am reading raw values from cells from an excel. So far so good. These numbers need to be interpreted as seconds and then converted into minutes. I tried my best with datetime but no…
Sabri_1
  • 36
  • 3
1
vote
1 answer

How to convert Date and Time from GMT to IST in Node JS?

I have str mydate = 'Tue, 08 Feb 2022 09:17:16 GMT ' and I want to convert it to IST in a fomat like this: str date = 'Tue, 08 Feb 2022 12:18:16 IST' How can I do that? in node js?
monica
  • 11
  • 1
1
vote
1 answer

Is there a base converter, for bases higher than 36, for PHP?

php only have 36 base converter, i need more than that, i found the code but it in js, can anyone help me translate it to php? thanks. function baseConverter (number,ob,nb) { // Created 1997 by Brian Risk. http://brianrisk.com …
deval
  • 97
  • 13
1
vote
1 answer

pdf2image wrong font and crop text

I am converting my PDF into an image in Python with convert_from_path from pdf2image library. This is the original PDF : This is the generated image : As you can see, the issue here is that the font in the image is not the good one and also that…
LCMa
  • 445
  • 3
  • 13
1
vote
1 answer

Handle NaN values (zero value) in datetime.strptime in a converter used in pd.read_fwf

I have a source file which is length-delimited. My file looks as follows: 00;12345678;03122019 01;12345678;00000000 My code so far is as follows: import pandas as pd from datetime import datetime col_lengths = {'Column1': range(0, 2), …
PSt
  • 97
  • 11
1
vote
1 answer

Why do I get "ValueError: need more than 1 value to unpack" when using spaCy convert on my conllu data?

I am trying to convert my training data for spaCy train using spaCy convert. My data looks (after some preprocessing with pandas) like this: 1 Hii hii PRON _ NounClass=9|Num=Sing _ _ _ _ 2 si si VERB _ _ _ _ _ _ 3 …
Ruusu
  • 15
  • 2
1
vote
2 answers

Convert .mp4 to .mpeg4 using Converter

I have an MP4 file, which I would like to convert into an MPEG4 file. TO do this, I have found the PythonVideoConvert package. On the PyPI page, the following code is given: from converter import Converter conv = Converter() info =…
Emil
  • 1,531
  • 3
  • 22
  • 47
1
vote
0 answers

Normal AZW converters doesnt work. Amazon's AZW format book to PDF

I have a amazon kindle book (.azw format) in my kindle app of my windows system. Normal AZW to pdf converters doesnt take this format. Can I convert azw to PDF?
1
vote
3 answers

User based encoding/convert with its interaction in pandas

I have this dataframe which looks like this: user_id : Represents user question_id : Represent question number user_answer : which option user has opted for the specific question from (A,B,C,D) correct_answer: What is correct answer for that…
Haseeb Sultan
  • 91
  • 3
  • 14
1
vote
3 answers

Convert string to INT in C# (When String is 'E0305' To convert INT is not Work

I want to convert string to int but some time is not working. Here is my code: public static int ToInt(String pStr) { return Convert.ToInt32(Microsoft.VisualBasic.Conversion.Val(pStr)); } Int i = ToInt("F0005"); Output is 0 - it works…
1
vote
0 answers

How to convert file to base64 format in flutter web?

In the flutter web dart:io library is not supporting for conversion. Do we have any other way to convert the File to Base64 format in Flutter Web.
Rahul Kavati
  • 3,800
  • 3
  • 7
  • 15
1
vote
4 answers

C# convert object to json string with property name as string value of class

I have the following class structure: public class JsonModel { public string PropertyName { get; set; } public string PropertyValue { get; set; } } And I have an instance of this class as follows: var entry = new JsonModel { PropertyName =…
Alex
  • 3,730
  • 9
  • 43
  • 94
1
vote
2 answers

Converting .dat File to Image File in C#

I'm trying to get windows user profile picture from C:\ProgramData\Microsoft\User Account Pictures\{UserName}.dat by this code: public static Image GetUserimage() { if (File.Exists(@"C:\ProgramData\Microsoft\User Account Pictures\" +…
1 2 3
99
100