conversion

Easiest way or Best tools to convert word text to clean (X)HTML

This might have been asked in another way. I am not doing it on the fly however. Once in a while we get pieces of content in word files that have em dashes, bold, italic text and block quotes. Is there a good tool to convert this into a clean html code. Otherwise what other approaches people take. ...

Date/time conversion: string representation to time_t

What's the best way to convert a date string, formatted as "MM-DD-YY HH:MM:SS", to a time_t value in either C or C++? ...

strptime() equivalent on Windows?

Is there a good equivalent implementation of strptime() available for Windows? Unfortunately, this POSIX function does not appear to be available. Open Group description of strptime - summary: it converts a text string such as "MM-DD-YYYY HH:MM:SS" into a tm struct, the opposite of strftime(). ...

Converting pdf files to txt files with php

There's this program, pdftotext, that can convert a pdf file to a text file. To use it directly on the linux console: pdftotext file.pdf and it will generate a file.txt on the same directory as the pdf file. I was looking for a way to do it from inside a php program, and after some googling i ended with two commands that should work f...

What is the best way to get my avi files into flv format?

I need to embed videos on a client's website and they have given the following guidelines: must be viewable as flash (FLV format) if hosted by outside company (e.g. Youtube) the video can not link back to the outside company's website if hosted by outside company (e.g. Youtube) the video can not have any advertisements of the outside c...

RBuf8 to char* in Symbian C++

Hi, I am downloading a text string from a web service into an RBuf8 using this kind of code (it works..) void CMyApp::BodyReceivedL( const TDesC8& data ) { int newLength = iTextBuffer.Length() + data.Length(); if (iTextBuffer.MaxLength() < newLength) { iTextBuffer.ReAllocL(newLength); } iTextBuffer....

When should static_cast, dynamic_cast and reinterpret_cast be used?

I am reasonably proficient in C++, but I do not have a lot of experience using the cast operators to convert pointers of one type to another. I am familiar with the risks and benefits of pointer casting, as well as the evils of using C-style casts. What I am looking for is a primer on the proper ways to use the various cast operators in ...

Do parameter or return type implicit conversions take priority in C++?

If I have the code: int f(int a) { return a; } double f(double g) { return g; } int main() { int which = f(1.0f); } Which overload of f is called, and why? ...

Free tool or library to convert Tiff files to pdf in .Net

Does any one know of a free tool or library to convert multi page tiffs to pdf in Asp.Net 1.1? ...

What would be more productive? Converting VAX PASCAL into GNU PASCAL or port it to perl or some other language.

I have this legacy code base (Compaq PERL), about 1500 lines of code, that I need to port to windows. I wanted to use gnu PASCAL (which I have installed and have working). I have already got our assembler (HP 64000 8051) off the VAX and on to Windows (KEIL 8051). The director of Software engineering would like to get all products off the...

Pitfalls for converting a .net 1.1 solution to .net 2.0

In this question superwiren asks about the pitfalls for converting a .net 2.0 solution to .net 3.5. What about .net 1.1 to .net 2.0? Is 2.0 fully backwards compatible with 1.1? ...

How can I convert a REG_BINARY value from the registry into a string ? (vb.net)

I have a registry value which is stored as a binary value (REG_BINARY) holding information about a filepath. The value is read out into an byte array. But how can I transform it into a readable string? I have read about system.text.encoding.ASCII.GetString(value) but this does not work. As far as I got to know the registry value is arbi...

Strange problem about conversion between GDI+ to GDI: Bitmap and HBitmap

I want to convert gdi+ Bitmap into gdi object HBitmap. I am using the following method: Bitmap* img = new Bitmap(XXX); // lots of codes... HBITMAP temp; Color color; img->GetHBITMAP(color, &temp); the img object is drawing on a dialog. when this part of method is called, strange thing happens! the img displaying in ...

Convert VB.NET --> C# Projects

Hi Can anyone recommend a good application that could be used to convert VB.NET projects to C#, without having to do too much manual work? We've used Reflector to do small libraries manually, but some of the larger projects will be too slow and complex to do this manually. ...

Convert Float that has period instead of comma?

I have data from a table in a database (string) that contain text and price. I extract the price from the data but my problem is that sometime I can Convert it to float and sometime not. I have noticed that : Convert.ToSingle(m.Groups[1].Value); It works but not always because sometime the period is the problem (it requires a comma)....

Natural Language Unit Conversion in PHP?

I'm looking for a library (preferably in PHP) that can extract weigh / height data from a string. I want my users to input something like "I weigh 80 k and I'm 1.8m tall" or even "220 lb" and "6' 1" and pass it through a function that can extract the quantity and the unit. Anyone know if there's something like that out there? ...

What is the best way to convert an existing php class into Java?

I have been tasked with converting several php classes into java classes, which is quickly becoming a nightmare for me. I understand the basic language structure, it being similar to C. It is all of the function calls and class calls that seem to go nowhere and the fact that a var can be declared in the !middle of an expression! that is ...

MySQL/SQL: Group by date only on a Datetime column.

Having a table with a colum like: mydate DATETIME ... I have a query such as: SELECT SUM(foo), mydate FROM a_table GROUP BY a_table.mydate; This will group by the full datetime, including hours and minutes. I wish to make the group by, only by the date YYYY/MM/DD not by the YYYY/MM/DD/HH/mm. Anyone know how to do this? I can still d...

How to convert C# StructureMap initialization to VB.NET?

I'm about to put my head thru this sliding glass door. I can't figure out how to execute the following code in VB.NET to save my life. private static void InitStructureMap() { ObjectFactory.Initialize(x => { x.AddRegistry(new DataAccessRegistry())...

SQL Server to Oracle10g conversion

I currently have a SQL Server (Express 2005) database to hold some transaction/metadata that I now want to migrate to Oracle 10g express instance. Can you do this programmatically or is there a decent software tool that anyone can recommend? ...