Questions tagged [converter]

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

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

Ref: IValueConverter

3976 questions
1
vote
4 answers

From a Java method, how do I return an entire int converted from a string?

The purpose of this program is to type of a date like "9/7/1994" and return the numbers that are separated by the forward slashes. So it should come out as: 9 7 1994 The problem is that once I enter the date it'll return only 9 7 1 I've thought…
JoshuaP
  • 13
  • 2
1
vote
1 answer

XAML Converter in different namespace

I'm developing a c# Windows Phone 8.1 App in VC2013 and stumbled over an odd issue. To make my Code more 'clean', I decided to put different parts of my App into different folders. There is no problem with calling XAML pages from these folders in…
user3079834
  • 1,461
  • 1
  • 21
  • 46
1
vote
0 answers

Converter doesn't work and not taken by criteria

i'm new here^^ i'm working with a db in which boolean are registered as VARCHAR(3) So i made a converter : import javax.persistence.AttributeConverter; import javax.persistence.Converter; @Converter public class BooleanToStringConverter implements …
Coshi
  • 11
  • 2
1
vote
0 answers

Conversion of standard InChI to InChI with fixed-hydrogen-layer

Good evening, I am trying to convert a standard InChI string to a non-standard InChI string with fixed-hydrogen-layer: Example: Standard inChI for Uracil: InChI=1S/C4H4N2O2/c7-3-1-2-5-4(8)6-3/h1-2H,(H2,5,6,7,8) Desired…
Loddi
  • 55
  • 7
1
vote
1 answer

How can I decode base32 to string in mysql

Im looking for a way to decode a string encrypted in base32 back to original string in mysql. I know there is a SP to do this with base64 but cannot find anything for base32. Is it possible? is there a stored procedure I can use somewhere? What are…
Eytan Avisror
  • 2,175
  • 12
  • 26
1
vote
0 answers

Primefaces Datatable converter with filtering

I have the datatable and selectonemenu inside it. I want to show images in select one menu items.So a have Rating class and converter ratingConverter for Rating class. I have the next problem here: filtering by this column works just once! When I…
1
vote
0 answers

org.ektorp.DbAccessException: java.net.SocketTimeoutException: Read timed out

Hello i have this code and try to export a view from my couchdb which has more that 1.5 million documents, on the server from my university public class main { public static void main( String[] args ) throws MalformedURLException { …
ayhan
  • 23
  • 5
1
vote
0 answers

Convert unknown object to list of custom class

I don't know if it possible, but I try...: I pass from javascript to c# any object. For exapmle: { name:'ser', age:8 } At server-side, I have custom class look like: public class generaly { public string FieldName { get; set; } …
user5260143
  • 936
  • 2
  • 9
  • 29
1
vote
1 answer

BeanUtils Converter custom class with nested objects

I need to copy the properties from one bean to another with same properties names. I found the class BeanUtils and method copyProperties(). The problem is that in my beans there are nested objects. So I tried to create a custom converter…
Giorgio
  • 41
  • 5
1
vote
2 answers

Error in converting Excel data to CSV using C# code

I am using this question to convert Excel data to CSV. static void ConvertExcelToCsv(string excelFilePath, string csvOutputFile, int worksheetNumber = 1) { var cnnStr = String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data…
Code's
  • 208
  • 2
  • 17
1
vote
0 answers

Convert Images to PDF without using any Third Party Converter

Is this possible? Because as what I have researched, most are using converters. How can I convert images to PDF using only PHP (Yii 2.0 framework, specifically) without the help of any converter software? In my web application, user is to fill up a…
kaynewilder
  • 801
  • 4
  • 26
  • 52
1
vote
1 answer

How to transform an .txt file to .csv with Java?

How to transform an .txt file to .csv with Java? I did a Java project where I read a .txt file, and I need to use their data to create a .csv file, how should I split the data in the variable where the text is, and how do I turn it into an Excel…
1
vote
1 answer

a selective dual command binding converter in WPF?

I'll start off and say I am not using the MVVM pattern for my WPF app. Please forgive me. Right now I have a data template with two buttons, each binds to a different command on the CLR object this data template represents. Both use the same command…
Jippers
  • 2,395
  • 4
  • 32
  • 55
1
vote
1 answer

What is the better design approach to convert object A to object B?

I would like to design an Interface which will be used for converting Object A to Object B. Something like below snippet - Interface IConverter { T convertTo(S objectA); } But sometimes more external input parameters are needed to…
Bruso
  • 743
  • 3
  • 11
  • 23
1
vote
3 answers

how convert foxpro(dbf , dbc) file to sql

i want to convert several Table from foxpro (dbf , dbc) file to sql server. how can i do it?
1 2 3
99
100