convert

How can I convert a DTD to a Schema as part of a Maven or ANT build?

How can I convert a DTD to a Schema as part of a Maven build? Specifically, I am looking for a Maven plugin to which I can give the URL to a DTD and it will generate an XML Schema Definition file. Failing a good Maven plugin, perhaps I can embed an ANT task into my Maven build ...

How to get the function name as string in Python?

In Python, How do I get the function name as a string without calling the function? def my_function(): . . . print get_function_name_as_string(my_function) # my_function is not in quotes output => "my_function" is this available in python? if not, any idea how to write get_function_name_as_string in python? ...

How to convert a string "yyyy-MM-ddZ" to a date time with .net?

I am having problems converting a string in the format "yyyy-MM-ddZ" using VB.net. For example I have the string "2007-10-21Z". Using CDate or TryParse it comes out to 10/20/2007 instead of 10/21/2007. I'm not understanding how the Z affects the date string so that when it is parsed it results in the day before. From what I understan...

Convert Sandcastle Help File Builder Output (Web site) to MediaWiki format

I need to convert my Sandcastle Help File Builder (SHFB) output that is a Web site (HTML) to Media wiki format Find a way to transfer/include the converted pages directly into the MediaWiki we have set up. Any ideas? we have over 1000 pages of HTML files inthe Website (output of SHFB). I thought of using a html2wiki converter ....

programatically convert word docx to doc without using ole automation

i'm looking for a way to programatically convert word documents in docx format to doc format without using ole automation. i already have a windows service that does this but it means installing office on a server and it is a little unreliable and not supported. i am aware of the aspose.words product, and i will try it out, but has any...

Seeking a compact format for HTML ebooks for offline reading under Linux

I have a netbook running Linux and a large collection of computer books and reference material as HTML. I'd like some compact way of storing these books which can be browed without unpacking them first. This would save space and reduce wear on my small SSD. If there was some way to convince Firefox to browse files contained in ZIP file,...

How can I convert a string to a number in Perl?

How would I convert a string holding a number into an integer in Perl? ...

Opening a VS 2003 C++ project in VS 2008

Found some old code, circa VS 2003. Now I have just VS 2008 (SP1) installed. When I try opening the *.sln file, it tries converting the projects. The report notifies me it was done successfully, but the solution is empty, marked with "project file was unloaded". VS 2008 doesn't even include opening a *.vcproj file. Does anyone have any ...

SQL to LINQ Tool

Is there a tool out there which can convert SQL syntax to LINQ syntax? I just want to rewrite basic queries with join, etc, to LINQ. It would save me a lot of time. Cheers! ...

What is the best way of converting a Microsoft Word document into XHTML?

I would like to programatically convert a Microsoft Word document into XHTML. The language of choice is PHP, so I would appreciate any suggestions with PHP. The initial idea is trying to convert the doc file into odt, and then use the Odt2Xhtml PHP class to get it into XHTML format. Any better way to do this? ...

How do you convert Byte Array to Hexadecimal String, and vice versa, in C#?

This is probably a common question over the Internet, but I couldn't find an answer that neatly explains how you can convert a byte array to a hexadecimal string, and vice versa. Any takers? ...

Convert hex string to byte array

As indicated in the answers, this is a duplicate of "How do you convert Byte Array to Hexadecimal String, and vice versa, in C#?" Hi, Can we converting a hex string to a byte array using a built-in function in C# or I have to make a custom method for this? ...

How do I convert a double into a string in C++?

I need to store a double as a string. I know I can use printf if I wanted to display it, but I just want to store it in a string variable so that I can store it in a map later. ...

lptstr to char*

Would anyone hapen to know how to convert a LPTSTR to a char* in c++? Thanks in advance, workinprogress. ...

Convert std::string to const char* or char*

How can I convert an std::string to a char* or a const char*? ...

Convert SQL server datetime fields to compare date parts only, with indexed lookups

I've been doing a convert(varchar,datefield,112) on each date field that I'm using in 'between' queries in SQL server to ensure that I'm only accounting for dates and not missing any based on the time part of datetime fields. Now, I'm hearing that the converts aren't indexable and that there are better methods, in SQL Server 2005, to co...

Preferred library and/or method of converting CMYK to RGB

Each month I get new CMYK and RGB images that shall be used on the web. I had a script using a patched up ImageMagick doing this, but it got deleted. So I need to do it again, but it was hard last time. How do you easily and quickly convert CMYK image files to RGB? ...

Is there any java library for converting document from pdf to html?

Open source implementation will be preferred. ...

Convert String from ASCII to EBCDIC in Java?

Hello, I need to write a 'simple' util to convert from ASCII to EBCDIC? The Ascii is coming from Java, Web and going to an AS400. I've had a google around, can't seem to find a easy solution (maybe coz there isn't one :( ). I was hoping for an opensource util or paid for util that has already been written. Like this maybe? Con...

Convert haskell Int with leading zero to String

Suppose I have a variable of type Int = 08, how can I convert this to String keeping the leading zero? For instance: v :: Int v = 08 show v Output: 8 I want the output to be "08". Is this possible? ...