convert

Convert String to DateTime?

How can I convert this string, 12:00 AM, into a DateTime? ...

convert integer to array, c++

I would like to convert an integer into an array, so that it looks like the following: int number = 123456 ; int array[7] ; with the result: array[0] = 1 array[1] = 2 ... array[6] = 6 ...

NSDate - Convert Date to GMT

Hello, I need the ability to convert a NSDate value to a GMT Date. How can I go about converting a NSDate value to a GMT formatted NSDate value, independent of what ever date locale settings the iphone is using. Kind Regards ...

How can I convert an Image to byte array in J2ME?

My requirement is like this. I need to read a file from the Mobile phone using a file connection, create a thumbnail of that image and post to the server. I am able to read the image using the FileConnection API, and also able to create the thumbnail. After creating the thumbnail, I am not able find a method to convert back that image t...

How to display code in plain text?

What previous result you are referencing:(Optional) function getSize() { var myFSO = new ActiveXObject("Scripting.FileSystemObject"); var filepath = document.upload.file.value; var thefile = myFSO.getFile(filepath); var size = thefile.size; alert(size + " bytes"); } A user input some Javascript code, but the code can not be...

Convert hex string to long

Are there any Cocoa classes that will help me convert a hex value in a NSString like 0x12FA to a long or NSNumber? It doesn't look like any of the classes like NSNumberFormatter support hex numbers. Thanks, Hua-Ying ...

<input /> type conversion (jQuery)

I have this: <input type="text" value="Enter Password" class="password" /> ... onclick/onfocus, I'd like to change the input type to 'password' and value removed, like so: <input type="password" value="" class="password" /> This doesn't seem to work: $('input.password').click(function () { $(this).attr('type', 'password'); ...

Sybase: converting string to datetime

How would you convert a string like '2008-01-01 11:09:11' to a datetime ? The string is from outside of Sybase and I want to know how to insert it as a datetime ...

convert xml to excel with multiple worksheet.

Hi.. if I export the below xml to excel 2007...i am able to get the excel sheet correctly. <Workbook> <Worksheet > <MyXml> <New A="111" B="222" /> </MyXml> <MyXml> <New A="111" B="222" /> </MyXml> </Worksheet> </Workbook> But I need a workbook with more than one worksheet...How do i specify the xml in this case ? ...

Convert PDF pages to images with COCOA

Hi, I am having problem with PDF conversion to images. I would like to create an image file for every page in PDF document. This is the code I am using and works fine. Every page gets converted into the image, but I have problem with image resolution. I don't know how to set the resolution of the output images. Can someone help me out?...

WPF reading Style from ResourceDictionary to Control in C# code

I have code looks like below: ResourceDictionary res = (ResourceDictionary)Application.LoadComponent(new Uri("Style.xaml", UriKind.Relative)); Style style = new Style(); style.Resources = (Style)res["ComboBoxTextBox"]; VS2008 retuns error: style.Resources = (Style)res["ComboBoxTextBox"]; Cannot implicitly convert type 'System.Windo...

GSEventSetBacklightLevel from a plist value iPhone

I'm trying to set the backlight display from a plist value, but I keep getting an error! So I guess my question is how can I convert a plist value to a float value so I can set the backlight form the plist entry? The Code: float customBacklight = (float)[[plistDict floatForKey:@"Backlight Level"] floatValue]; GSEventSetBacklightLevel(c...

How can I convert flv file to a mp3 file by using php?

How can I convert flv file to a mp3 file by using php? ...

Where to put the converter functionality?

The question is pretty simple actually. I have a module in my system containing classes that describe some measurement results. I also have a module containing classes used for a visualization. These two modules are not really related to each other and I prefer to not let them know each other. Now I want to visualize the results using ...

Migrant from VS 2003 .Net1.1 to VS 2008 .Net 2.0

Hi I converted my app that was implemented in VS 2003 to .net 2.0 VS 2008 afterward my app became slow about 4 times than previous version! is it normal or not ? Best regards ...

Convert integer into byte array (Java)

Hi, since Java doesn't provide a default way to do this, what's a fast way to convert an Integer into a Byte Array? e.g. 0xAABBCCDD => {AA, BB, CC, DD} ...

VS2008: No option to convert Win32 C++ project to x64?

I am running VS Team System 2008 on WinXP. I make a new Win32 C++ project (Empty project). I go to Build Configuration to add a configuration for x64. The only options I have are: - Pocket PC 2003 (ARMV4) - Smartphone 2003 (ARMV4) I have no option for x64 (or Itanium). However, if I make a C# project within the same solution, I can cre...

Convert Database Rows into Columns

I need to convert Database rows into columns and show the result in Gridview. My DB is as follows: ID Hotel cDate Price ----------------------------------------------- 1 Hotel1 12/22/2009 12:00:00 AM 15.0000 2 Hotel2 12/22/2009 12:00:00 AM 25.0000 3 Hotel3 12/22/2009 12:00:00 AM 60.0000 4 Hotel4 12/22...

Convert A to 1 B to 2 ... Z to 26 and then AA to 27 AB to 28 ...

Does any one have algorithm or logic to Convert A to 1 ,B to 2, ... ,Z to 26 and then ,AA to 27, AB to 28 etc. ...

PHP convert decimal into fraction and back?

I want the user to be able to type in a fraction like: 1/2 2 1/4 3 And convert it into its corresponding decimal, to be saved in MySQL, that way I can order by it and do other comparisons to it. But I need to be able to convert the decimal back to a fraction when showing to the user so basically i need a function that will conver...