Questions tagged [converters]
Converters can change data from one type to another, translate data based on cultural information, or modify other aspects of presentation.
1,733
questions
0
votes
0
answers
19
views
Simple html to pdf conversion commandline tool for automated file creation
I have a system that automatically creates and saves documents as html. For further storage they ought to be pdfs though.
I want to avoid having to do it manually so my preferred solution would be a ...
0
votes
0
answers
22
views
Converting several Markdown files a folder into docx
I have a folder called Project:
Project:
img
docs
README
The README is written in Markdown and looks like this:
document 1
document 1.1
document 2
document 2.1
document 2.1.1
The ...
0
votes
0
answers
21
views
Kotlin Retrofit: Need to convert Empty Array to Null
I'm new to Retrofit2. I have a legacy backend that's swapping a data object values with an empty array when the value is empty.
Scenario #1 Normal data response:
{data:{"name","john&...
-1
votes
0
answers
8
views
Images to video slideshow using php
I want to create plugin that convert images into a video using PHP but I could not the way to make it.
I have a task to create a plugin that convert images into a video
0
votes
1
answer
60
views
convert list with keys & values to json format( python)
code i am using
show_config = self.show_task(ha_task)
show_config = show_ha_config["tasks"][0]["task-details"][0][
"output"
]
# need to decode into base64
...
1
vote
3
answers
69
views
How to loop multiple extensions with upper and lower case letters using for command
I am trying to loop a set of jpg images in a folder. The problem is some of the images have the extension in all lower case letters (.jpg) and others have all capital letters (.JPG).
I am trying to ...
-6
votes
0
answers
40
views
How do I convert a FixedDocument into a Stream or byte[]? [closed]
I'm trying to convert a XPS/FixedDocument into a PDF file. In order to do that I need to use a library.
I tried using Syncfusion and Spire, but their convert methods do not take "FixedDocument&...
-4
votes
0
answers
57
views
how can i convert that assembly code to c language [closed]
ORG 0
JMP MAIN
LOOKUP_TABLE:
DB 01h,03h,05h,06h,0bh,0ch,0eh,01h,03h,05h,06h,0bh,0ch,0eh,01h,03h,05h,06h,0bh,0ch
MAIN:
MOV R0, #20
MOV R1, #0
MOV R2, #0
LOOP:
MOV R3, SBUF ;...
0
votes
0
answers
31
views
Convert sheet row open close to multiple row
hi have a sheet with open and close trading order like this:
Direction - Open Time - Close Time - Profit
Short 1/21/2023 10:19:14 1/24/2023 13:41:40 114.01%
Short 1/12/2023 12:28:13 1/24/2023 ...
-3
votes
1
answer
42
views
Asking for a help. How do I fix this? [closed]
`static void Main(string[] args)
{
double celsius, Fahrenheit;
Convert.ToDouble(Console.ReadLine());
Console.Write("Enter Fahrenheit temperature : ");
...
-4
votes
0
answers
33
views
With Swift How Can I Convert String To Double one-to-one [duplicate]
While converting the string to double, I cannot do exactly the same. how can i fix this
StringValue = "0.00001174"...DoubleValue = Double(StringValue)...
print(DoubleValue) ->"0....
0
votes
0
answers
28
views
What is the reason for an IllegalStateException when attempting to configure a convertor for my controller?
In order to automatically convert incoming objects to enums in my Spring ReST controller, I tried writing a converter and wiring it with a WebMvcConfigurer. I have done this before and it worked fine; ...
1
vote
1
answer
19
views
So I have a folder which contains around 300 png files and I want to convert all of them to jpg files
i have a access to a Ubuntu server and a macOS installation
I’ve searched only but haven’t found anything
0
votes
1
answer
68
views
How convert LPCWSTR to wchar_t*?
I require to convert a LPCWSTR data to wchar_t*. I tried a bunch of methods, and some work, but when I try to get their code page, they are showing different values.
Code overview:
std::string ...
-3
votes
0
answers
16
views
How to solve if else to Ternary [closed]
$result = (($num<0) ? "negative" : ($num < -10)) ? "value is below -10" : "its zero";
0
votes
1
answer
21
views
Convert Text(Date in ISO 8601 format) to DateTime - Data Studio
I need to convert a text that is in ISO 8601 Date format, to DateTime in DataStudio. When the text comes with the hour and timezone parts having non-zero values, it works normally.
Code to convert: ...
0
votes
1
answer
41
views
In WPF XAML, is it possible to bind a ViewModel property to a DependencyProperty defined in a Converter without using `x:Name`? [duplicate]
In the following xaml sample source, I am trying to bind the A property in the SampleViewModel to the B property, which is a DependencyProperty in the SampleConverter.
However, when I do this, I get a ...
0
votes
1
answer
55
views
Converting quarters, dimes, and pennies to dollars and cents in Haskell
I'm trying to convert quarters, dimes, and pennies to dollars and cents, but I can't seem to get the code to run.
I tried this code:
-- Declaration
toCents :: Int -> Int -> Int -> Int
...
-1
votes
0
answers
38
views
How do I convert a PDF file to DOCX and then back to PDF? [closed]
I have PDF files containing text that needs to be replaced. Specifically, the text needs to be translated and replaced with the translated version. It is important that the rest of the PDF structure ...
0
votes
0
answers
53
views
error C2440: 'initializing': cannot convert from 'initializer list' to 'int'
So I'm trying to initialize QCoreApplication without any arguments (within my test), and I just could get rid of error C2440: 'initializing': cannot convert from 'initializer list' to 'int'
I'm trying ...
0
votes
0
answers
59
views
Convert comma-separated fields to concat() function
I have a table_product that contains comma-separated strings;
id | products
-----------
1 | tv,phone,tablet
2 | computer,tv
3 | printer,tablet,radio
To avoid manual concatenation, like concat(tv,',...
1
vote
1
answer
49
views
How to load a view with a converter in another assembly [MAUI.NET]
I have a converter
using System.Globalization;
namespace WidgetsForRuntimeInjection.Converters
{
public class SampleBooleanConverter : IValueConverter
{
public object Convert(object ...
0
votes
1
answer
102
views
Convert PDF to Excel in Python
I convert pdf files to excel, using Python. However, some rows in my pdf file are larger than others, i.e., names of variables are longer and go into the next row.
When I convert pdfs, these longer ...
-1
votes
0
answers
22
views
Convert GSM to Wav c#
Does anyone know how to convert GSM audio into PCM WAV in C#? I have tried to find a viable solution but still seems not available. I need to convert gsm file to text but Azure speech service accepts ...
0
votes
1
answer
53
views
How can i convert string to int list with python?
stringIds = "948274432, 948364892, 943224012"
I have such a string. How can I transfer the ids here into a list by converting them to int?
intList = []
for x in stringIds:
intList....
0
votes
0
answers
27
views
MAUI - entry converter with two values
I have model with two properties:
UInt32 Quantity (the number of decimal places depends on the unit)
UnitType Unit
I would like to create converter for Entry which can convert data from/to decimal ...
0
votes
0
answers
25
views
Implementation into HTML a JavaScript auto-dect color function
I would like to implement a JS function that could autodetect an input value and depending on the format of this value it would convert an RGB code to HEX or HEX to RGB. I would like to have an input ...
0
votes
1
answer
71
views
Multibinding with converter on one of the bindings in .net MAUI
My issue is that when I use a converter on one of the multibinding's binding. It doesn't send the right thing to the converter. As per the DOC(https://learn.microsoft.com/en-us/dotnet/maui/...
0
votes
0
answers
17
views
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip cause there is no registered converter for this op
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip cause there is no registered converter for this op
WARNING:tensorflow:Using a while_loop for converting Bitcast cause there is no ...
0
votes
0
answers
42
views
Convert html to Pdf with with very big data
I have implemented html to pdf conversion using openhtmltopdf and I use it in Struts 2 action and it works very well. However, in the case of very large data, e.g. the html data is > 3Mb (pdf file ~...
0
votes
1
answer
27
views
Calling a program in C# Program using VisualStudio
I made a CMD program that can convert the photos from Png to SVG format.
how can I call this program in a C# program?
the Photo Path is:
`var path = @"C:\Users\";
var sourcePath = ...
0
votes
0
answers
32
views
How to create an array with the number of elements that increases with conditions?
I want to create an array whose number of elements starts with one and is incremented by one when a certain condition is met, but when running I find that when the number of elements increases to 8, ...
-1
votes
0
answers
48
views
How to Concat String URL in Python
I need to convert some part of VB.Net application since I'm still learning Python so I need this code from VB.Net to convert in Python request.
VB.Net Code to Convert in Python:
req.AddHeader("...
0
votes
0
answers
36
views
GhostScript: Ps2Pdf comes out blank
I'm trying to convert a .ps file to .pdf.
In my code I'm creating a rectangle with "Python" write inside of it.
If I run .ps in a window (tkinter window) it comes great but when I convert to ...
-1
votes
0
answers
30
views
WPF DataGrid Image Column - path from database
I've made datagrid that is populate by data from database. I have DataGrid Image column and some strange behavior.
Eg. path from db object looks like "/resources/images/XYZ/XYZ_productPhoto.JPG&...
0
votes
1
answer
107
views
ModuleNotFoundError: No module named 'forex_python'
As I was trying to practice building a Currency Converter python program, guided by one of the open resources, I installed forex-python and ensured it was installed:
$ pip freeze
certifi==2022.12.7
...
0
votes
3
answers
43
views
Turning two 2-Dimensional Arrays into one 2-Dimensional Array with different length of Arrays and different length of Arrays inside 2D Array
Hello,
how can i turn two 2D Arrays into one 2D Array. The Array length is different from the Other. And inside a 2D Array the Arrays also can have a different length.
Example:
int[][] ary2DFirst = ...
0
votes
1
answer
28
views
How to Convert Figma API response to FIGMA Design Code?
I am using Figma API to get a document. The response is in JSON Object. I want to convert that JSON Object, so that I can copy it into Figma UI or Convert the response to a compatible import file for ...
0
votes
0
answers
32
views
Efficient way to loop through large amount of files, convert them to webp and save the timestamp
I have a folder with about 750'000 images. Some images will change over time and new images will also be added every now and then. The folder-structure is about 4-5 levels deep with a maximum of 70'...
1
vote
1
answer
53
views
How do I make animation made with ImageMagick play on my python Jupyter Notebook?
How do I make an animation made with ImageMagick play on my python Jupyter Notebook?
I'm new to animations on Python, so I'm studying how to make one. So far, I copied the code from DevelopPaper but ...
-1
votes
0
answers
23
views
Is there a way to convert a string into an arithmetic operator? [duplicate]
I want python to evaluate two numbers a user inputs based on the arithmetic function they input (+,-,*,/). Is there a way to do that by converting the user's input of an arithmetic function, like &...
0
votes
1
answer
55
views
Problems creating a BGR555 color converter (VB.NET)
I've been trying to create a function for VB.NET, capable of converting Hexadecimal Color to BGR555 format.
As far as I've looked, there's only one function that does this on the internet, but it's ...
0
votes
0
answers
31
views
Vertical images change to horizontal when converted to PDF Python Pillow
i want to print all picures in a folder into a PDF.
I take pictures with my phone and need to convert them into a PDF that i can send to other people.
Because the both Windows and Adobe Print to PDF ...
0
votes
0
answers
47
views
java.lang.ExceptionInInitializerError while running mvn clean install
While running mvn clean install I am getting these errors:
java.lang.ExceptionInInitializerError
at abcConverterTest.setup(abcConverterTest.java:33)
Caused by: org.apache.kafka.common....
1
vote
2
answers
139
views
Convert input string into Morse Code with Clojure
I am trying to develop a converter that takes an input string and converts it into morse code through a Morse Library map, while also respecting functional programming rules. Sorry for any ...
0
votes
2
answers
44
views
Convert array of strings into array of objects grouped by same substring [duplicate]
whats the best way to convert an array of strings and group them together into objects if they have same substring,
const parameters = ["product_groups", "product_filters", "...
0
votes
2
answers
30
views
Data couldn't change to date format
I am a beginner making formula. I have pull some data from several google sheet using QUERY+IMPORTRANGE which few column contain date. I can easily change the date to date using formatting feature. ...
0
votes
0
answers
17
views
Converting MS Access file i.e., .mdb or .accdb file to excel using python which is placed on s3 bucket [duplicate]
I have a use case where I need to read .mdb or .accdb file from s3 bucket and convert it to Excel file and again upload it to s3 bucket.
I am able to find solution using the library pyodbc and then ...
0
votes
0
answers
22
views
Is there a way to connect a high quality mic to qwiic connector
I am developing an microcontroller project which requires recording audio the only ports free are QWIIC and MCP3008 ADC is there any way to integrate the mic into the system so that the os recognises ...
-1
votes
1
answer
26
views
Using a neural network to convert numeral systems
For starters. I know a neural network is overkill for this but I'm doing it that way for the meme value. With that out of the way.
I'm trying to use a neural network on either Tensorflow or Keras to ...