converting

Convert from Oracle VARCHAR2 to MySQL TEXT

How to do correct conversion of data from Oracle VARCHAR2 type to MySQL TEXT type? I want insert it into mysql table in field with TEXT type through DBLink. ...

PHP Regex - text into link

What I'm trying to do is, replacing symbols that would be changed start the string then the last symbol that would close the string - changing both of them into a link then it will be stored into the database, it's something like Wikipedia. I want to have something like this when someone types in the textarea: "This woman was killed by...

How to convert a byte[] into datetime in C#?

I have a field of type TimeStamp in database, which is converted in byte[] in c# code, and i need to convert it to DateTime value. So i want to convert from an array of bytes into DateTime. Already used this code: byte[] byteValue = someValue; long longVar = BitConverter.ToInt64(byteValue); DateTime dateTimeVar = DateTime.FromBinary(lo...

Javascript function error: Converting and Adding input information

I'm try to create a simple form that spits out a measurement. For Example 32 B should be (32+5)=37 I'm not sure whats wrong. Please help~ Thanks so much! <HTML> <HEAD> <TITLE>Bra Size to Chest Size</TITLE> <SCRIPT LANGUAGE="JavaScript"> function CalculateSum(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(this.Cup...

Convert XmlDocument object into an XmlNode object - C#?

How do I convert an XmlDocument to a XmlNode in C#? I need to send the entire XmlDocument object to as an input parameter to a .NET web service. ...

Converting an int to a binary string representation in Java?

What would be the best way (ideally, simplest) to convert an int to a binary string representation in Java? For example, say the int is 156. The binary string representation of this would be "10011100". ...

convertPoint:toView: Doesn't seem to be working.

Hi All, I have a TableView with custom TableCellViews that has UILabels and UIButtons on it. when one of the buttons is taped I want to show a "tooltip" describing the text of the button. Most everything is working except for when I try to convert the center coordinates of the UIButton to the coordinates of the rootView which is a UIV...

Convert UTF-8 bytes to some other encoding in Python

I need to do in Python 2.4 (yes, 2.4 :-( ). I've got a plain string object, which represents some text encoded with UTF-8. It comes from an external library, which can't be modified. So, what I think I need to do, is to create an Unicode object using bytes from that source object, and then convert it to some other encoding (iso-8859-2,...

Convert NSMutableArray to string and back

Hello, in my current project I'm facing the following problem: The app needs to exchange data with my server, which are stored inside a NSMutableArray on the iPhone. The array holds NSString, NSData and CGPoint values. Now, I thought the easiest way to achieve this, was to convert the array into a properly formatted string, send it t...

Convert uploaded video to Silverlight WMV

Can one of you smarties point me to some beginner content for converting an uploaded video to WMV? I've got a file upload, and database entry all done, but I'm finding information / tutorials on Windows Media Encoder 9 scarce. ...

How to convert non-Latin-based encoded text into UTF-8, or make them coexist on same page?

Good day, I have a script that scrapes the title/description of remote pages and prints those values into a corresponding charset=UTF-8 encoded page. Here is the problem, whenever a remote page is encoded with non-Latin characters encoding like (Arabic, Russian, Chinese, Japanese etc.) the imported values print as garbled text. I've tr...

Is it possible to use the Spring MVC on JBoss App server?

Hi. Is it possible to use Spring MVC on JBoss App server? If so, how? Used the Spring MVC with Tomcat Apache server, but now i have to move my project to a JBoss app server. But i'm getting an error, and i'm not sure why. It seems like i can't use my classes. 125 ERROR [Engine] StandardWrapperValve[project]: Servlet.service() for ser...

Alphabet convertion in php

Hi, Is there a way i can change the spanish word which i have typed in the textbox to its english word in php. Is there any way to do this in php. Please help me Thanks ...

Help C++ifying this C style code.

Hey I'm used to developing in C and I would like to use C++ in a project. Can anyone give me an example of how I would translate this C-style code into C++ code. I know it should compile in a c++ complier but I'm talking using c++ techniques(I.e. classes, RAII) typedef struct Solution Solution; struct Solution { double x[30]; ...

How to convert from string to a number, and vice-versa in C++?

DEAR All I'm new to the C++, so maybe someone can say what the proper way to write a function that gets a string char (represents number) and converts it to the integer number. For example : input : Sixty five, output: 65. Maybe it should use by cin.getline() ? Well, vice-versa is little bit simlper... Thanks for advance. Igal ...

CommandConverter - Valid exception or .NET Bug

I'm getting an exception in my C#/.NET application that reads: 'CommandCoverter' is unable to convert 'MyNamespace.MyDerivedFromICommandSubclass' to 'System.String'. What I'm doing is fairly straight forward, as described by the MSDN ICommand documentation: public class MyDerivedFromICommandSubclass : ICommand { // Implement int...

Do i need to convert a sessionvariable to string?

. Session("UserName") = "Sally" Dim userName As String = Session("UserName") Do i need to convert the session variable to string if i wanna follow "good coding practices"? Ex: Session("UserName") = "Sally" Dim userName As String = Convert.ToString(Session("UserName")) ...

Parsing and converting 4Test to Perl

I want to convert 4Test scripts to Perl. I have been using the Parse::RecDescent in Perl, but am still overwhelmed at the task. Here is an example. An example of 4Test is something like: ParseSMSPlans (STRING sDir) { STRING sFile; STRING sDirSMSPlan = sDir + "sms_plans\"; STRING sDirPlan = sDir + "plan\"; STRING sDirDeal = sDir + "deal...

How to convert .po to .mo files on mac?

I have tried using poedit 1.4.6>save as, but .mo is not an option. ...

WPF: EmptyListToVisibilityConverter

Hi, I'm trying to do an "empty list to visibility converter" for WPF. This is an IValueConverter that takes an object ( that should be a list ) and if the list is empty (or if the passed object is null ) it should return Visibility.Collapsed; if the list is not empty it should return Visibility.Visibile; I plan to use this for a datagr...