conversion

Oracle SQL - Parsing a name string and converting it to first initial & last name

Hey.. Does anyone know how to turn this string: "Smith, John R" Into this string: "jsmith" ? I need to lowercase everything with lower() Find where the comma is and track it's integer location value Get the first character after that comma and put it in front of the string Then get the entire last name and stick it after the first init...

.NET Convert Number to TimeZone value

Hi SO! Say I have the value: -5 that represents a TimeZone (GMT-5). How can I convert that into: "Central DST" or something similarly textual using C# and the .NET framework? Thanks! ...

conversion of unicode string in python

I need to convert unicode strings in Python to other types such as unsigned and signed int 8 bits,unsigned and signed int 16 bits,unsigned and signed int 32 bits,unsigned and signed int 64 bits,double,float,string,unsigned and signed 8 bit,unsigned and signed 16 bit, unsigned and signed 32 bit,unsigned and signed 64 bit. I need help fro...

Convert GB2312 to UTF-8

I have a text file that contains localized language strings that is currently encoded in GB2312 (simplified Chinese), but all of my other language files are in UTF-8. I am finding it very difficult to work with this file, as none of my text editors will work properly with it and keep corrupting it. Are there any tools to convert this to ...

TRS to RJ9 conversion for audio in/output

I was wondering if anyone had resources that I could reference for creating a TRS (Tip-Ring-Sleeve) 1/8" audio, to RJ9 Telephony jack conversion kit. Effectively, I'm trying to create a bridge from an audio device (PC/MP3 player) to a telephone connection, allowing audio from the PC/MP3 player to be broadcast into a telephone line. Try...

What resources would you recommend for RPG36 code conversion?

The question really asks it all. We have a bunch of really old S/36 programs that need to be moderized. I am more looking for articles or sites that explain what the old method does and how to convert it to RPGLE. ...

need help - bit-field conversion

I want to convert strings to bit-fields.Also,convert them to binary and then use. Need help with this..help me .. ...

C# How do I convert ticks to minutes?

I have a ticks value of 28000000000 which should be 480 minutes but how can I be sure? How do I convert a ticks value to minutes? Thanks ...

Suggestions for a file format conversion library

conversion from multiple non-graphical document formats to and from HTML (e.g. doc<->HTML, pdf<->html, odt<->html, etc.) command line or API (Java API is preferable) cross-platform commercial or open source Are there any well known solutions that meet/exceed these requirements? ...

What a good strategy or tool to unit test database conversions? (Not unit testing databases, but the conversion)

I am working on a project where we are converted the old system to a brand new system. We are currently converted from the database of the old system to the database of the new system, and a team is working on creating a set of maps and transforms to run at the end of development to convert over the old system. I would like to implemen...

.Net implicit conversion guidelines

What are general guidelines on when user-defined implicit conversion could, should, or should not be defined? I mean things like, for example, "an implicit conversion should never lose information", "an implicit conversion should never throw exceptions", or "an implicit conversion should never instantiate new objects". I am pretty sure ...

SQL Server 2005 varchar loses decimal places converting to a decimal

Declare @BadDecimal varchar(5) Set @BadDecimal = '4.5' Declare @GoodDecimal Decimal Set @GoodDecimal = @BadDecimal Select @GoodDecimal --Outputs 5 Why? ...

Converting a generic argument to an int in java, provided that it is a number.

Here's what I've been trying to do, in a nutshell: class example <T extends Number> { private int function(T number) { int x = (int) number; ... } ... } Basically, I'm trying to make it so that T is a number so I can convert it to an int inside that function. The problem is that I'm getting an "incovert...

Blocks to KB/MB/GB from statfs on iPhone

I am using statfs() which gives me the free blocks available to a non-superuser. I am unsure how to convert this into KB/MB/GB. The values that are returned are: fundamental file system block size: 4096 total data blocks in file system: 3805452 free blocks in fs: 63425 free blocks avail to non-superuser: 63425 total file nodes in file...

Where to do Conversions - Time zones, unit of measure etc.

Where in code should conversions be done? client, server, business, or db? We currently do conversions of timezones and unit of measure in our database and the performance is killing us and would like to move the logic. Where do you think the best location for this is? Thanks ...

VB to C# Translate Event Handler that Implements Interface Event

I was looking at code in WPF which is in VB. I am trying to convert it to C#. Eventhough I used VB .Net to C# converter I cannot figure out the correct syntax for the following code in C#. Any ideas how to write this in C#? VB Code: Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPro...

OS X: creating or extracting preview(.jpg,.png) of .eps file

I'm using a mac and looking to batch convert a large amount of eps files and create jpg previews of each. I'm looking for preferably a command-line utility, or some type of workflow to easily batch a large number of files. Thanks for any ideas or input ...

Convert .pfx to .cer

Is it possible to convert a .pfx (Personal Information Exchange) file to a .cer (Security Certificate) file? Unless I'm mistaken, isn't a .cer somehow embedded inside a .pfx? I'd like some way to extract it, if possible. ...

Date and time conversions xslt

Hi Folks, My problem is that I receive for example a date in a concatenated format: Ex: 20050728 And I have to retrieve it in a readable format through my xslt. Ex. 28 July 2005 I also have a similar question regards time. Ex: 0004 To be displayed as 00:04 How is this done? Thanks for the help! ...

Has anyone tried the trac to fogbugz conversion/import tool?

http://our.fogbugz.com/default.asp?W977 I suspect it will be a simple task, but just thought I would ask before I tried it. If you have used it, how did it go? Any caveats or things to help? Can the changes be undone automatically? Anything you would have done differently or configured in trac beforehand to make it go easier? By th...