conversion

Converted Web Project from .NET 1.1 to .NET 3.5 problems in code-behind with controls from aspx page

I am converting a .NET 1.1 ASP.NET web project to .NET 3.5 in VS 2008. The conversion ran without any errors. However, when I open up a code-behind file for an aspx page, the lines of code that reference controls on the page are not being recognized as existing. I looked at a brand new .NET 3.5 Web Application and all the aspx files h...

Justified plain text from HTML

I need a plain text representation of an arbitrary HTML file (e.g., a blog post). So far that's not a problem, there are dozens of HTML to txt converters. However, the text in paragraphs (read "p elements") should be justified in the plain text view (to a certain amount of columns) and, if possible, hyphenated to give a better readable r...

PHP UTF-8 to MSDOS command line encoding

Everything is in the question : I have a Php script that is a UTF-8 file. In this script I want to do this : <? echo "âêïû\n"; ?> If I run it in a MSDOS prompt I get this : C:\php>php -c C:\WINDOWS\php.ini -f mysqldump.php ├ó├¬├»├╗ C:\php> I've not been able to find the right conversion scheme. I've tried also this code : $t...

c++ - convert pointer string to integer

I am trying to convert treePtr->item.getInvest() which contains a string to an integer. Is this possible? ...

Convert Subversion repository to Mercurial

I am trying to convert an SVN repository to Mercurial, but I'm having some troubles. These are the steps I've taken: (I am on Windows) Turned on "convert" in the extensions Opened a command window, and typed: hg convert http://myversioncontrorepositoryhere It says it's initializing the destination folder and then asks: Enter use...

Explicit object array type conversions in C# ?

Hi, if I have two classes, and have defined an explicit type conversion between them, should I not be able to convert an array of one to an array of the other ? ie. using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Apple ted = new Apple() { Variety = Ap...

How to add 4 hours to time in PHP/MySQL

I'm working on a blog migration from a custom built blog to Wordpress. One of the fields that Wordpress is looking for in the database is a date/time stamp set to GMT, which is 4 hours ahead of our time. So I basically need to take our date/time stamp (in YYYY-MM-DD HH:MM:SS format), and add four hours to it. I was looking at the MySQL c...

What would the best technology/language choice be for converting MARK IV data manipulation programs?

My office relies on dozens of old MARK IV programs on a mainframe to pull down and manipulate data from a DB2 database into mainframe files (which eventually turn into excel spreadsheets at the moment). I have been tasked with starting the conversion process - understanding these programs and moving the logic over to a modern technology...

Best way to convert HTML to plaintext using Python

I'm working on a project that involves converting a large amount of HTML content to plain/text. I have a custom-written module that does the job OK, but I'm wondering if there's some standard tools to help get the job done. ...

How to convert outlook date to DateTime?

Hello, I'm trying to get the sent date from outlook mails. For external mails I got it already running (see: How do I read the Recieved Date from Outlook MSG files -without- the Outlook API?), but for internal mails I get sth. like "091026132413Z-64" where 091026 is the date 26.10.2009 (in german file format dd-mm-yyyy) and the rest...

Converting an old asp.net 1.0 to newer version, web.config changes?

When convering a asp.net 1.0 app to run with asp.net 3.5 vs.net 2008, do I need to modify the web.config? ...

Convert Cobol copybook to XSD

Does anyone know a tool to convert from Cobol Copybook to XSD? Or XML. ...

C++ const void* conversion

I'm trying to pass three parameters to my write() function: write(fd, "C,1,1\r\n", 7); This works fine. But I would like to take a parameter and pass it to the command portion to make it dynamic: write(fd, N, 4); I'm not familiar with c++ types, but it keeps asking for a type of "const void*" I've been able to convert my variable, ...

Accepted practice for converting an Object to and from a String in Java ?

What is the commonly accepted method for converting arbitrary objects to and from their String representations, assuming that the exact class of the object is known ? In other words, I need to implement some methods similar to the following: public interface Converter { /** * Convert this object to its String representation. ...

Translating LOCs

Hi, Has anybody come across a situation where an existing code-base written (say) in Java and written by (say) French programmers had to be converted to code that English speaking programmers could understand? The problem here is that variable/method/class names, comments etc would all be in that particular language. Is there any any ...

How to conduct arithmetic operations in JQuery?

var price = $('#addprice').val(); var pass = $('#pass').val(); var total = $('#totalprice').attr('value') var left = $('#leftquota').attr('value') var balance = $('#balance').attr('value') var tprice = total + price; // total price var bprice = balance + price; // balance price var unitprice = bprice / left; ...

Conversion from string "" to type 'Integer' is not valid.

When I try to run the following code I get a Conversion from string "" to type 'Integer' is not valid. error. Dim maj = (From c In connect.Courses _ Where c.COTRequired = CBool("True") _ Select c.CourseID, c.CourseName, c.CreditHours).Except _ (From en In connect.Enrollments ...

Assignment to apparently nonexistent variables in VB.NET

I have some VB.NET (which I don't normally deal with) code which must be converted to C# (which I normally do). The code happens to be in a Windows Forms app. I notice a couple of places such as: Public Sub New() ParentWindow = Me where there is no ParentWindow variable defined, and it doesn't seem to be inherited here: Public ...

how to convert programatically powerpoint to xml and back

I need to convert powerpoint file to a text based file such as xml o html programatically and do some proccesses in it and again convert the textbased file top powerpoint. I prefer to do it with java. ...

Free way to convert PDF to XPS with C#

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I'm not opposed to shelling out to a command line tool to do the conversion. Thanks! ...