convert

How to convert a ResultEvent from amfphp into array collection flex?

Hello friends, how can I convert a source.result from AMFPHP into ArrayCollection? the function I'm trying without success is the following: public function listrecordsmail(source:ResultEvent,arrayDefinitionsargs:Array):void { //listamailsend.dataProvider = source.result; var array:Array = ArrayUtil.toArray(source.result); Se...

Convert from Office Docs / PDFS to HTML

I am currently working on a project where I need to secure access to downloadable files. The solution I want to implement is to have two buttons next to each document. One that says Editable and the other read-only (depending on the users permission they will see one of these or both). The editable will work normally with the browser dia...

How to convert images to pdf using PHP?

Hi peeps, Can anyone have an idea how to convert images to pdf using PHP? Any response will be appreciated. Thanks... ...

Why is this Sql Server CAST(..) rounding a Decimal to a VarChar ?

Hi folks, I'm trying convert some decimals to varchar, but they are getting rounded. Can someone tell me why? declare @UpperLeftLatitude DECIMAL, @UpperLeftLongitude DECIMAL, @BottomRightLatitude DECIMAL, @BottomRightLongitude DECIMAL SET @UpperLeftLatitude = 38.663 SET @UpperLeftLongitude = -122.857 SET @BottomRightLatit...

PHP Convert word to html with COM

Hi, Here is my code: $file='C:/a.doc'; $saveas=__DIR__.'/tmp/a.html'; $word=new COM('word.application'); $document=$word->Documents->Open($file); $document->SaveAs($saveas,8); $word->Quit(); $word=null; echo file_get_contents($saveas); ...

Possible encoding type to convert a byte array to be sent by SMS

I need to send a public key created by RSA by SMS to another phone. I am converting the 148 byte public key to base64 to be sent by SMS. But it increases the 148 bytes to 200 bytes when converted. As byte[] cannot be directly sent by SMS, what are the other possible methods of converting them successfully to strings or equivalent which ...

R.string.value Help android notification

whats the deal with CharSequence contentTitle = R.string.value; Error cannot convert from int to CharSequence. Is there a way around this or am i missing something? i tried String s = R.string.value + ""; CharSequence contentTitle = s; it returns integers values. Any help? ...

convert a JPEG to SWF in Ruby?

Are there any gems / libraries which can be used with Ruby to convert a JPEG into a SWF file with a specific duration? I need to take a list of JPEGs and convert them into a SWF slideshow. ...

How would I go about converting a hexadecimal representation of a private key to a OpenSSL supported format(PEM/DER/?)

The title basically says it all. I have a hexadecimal string representing a private key, and for me to be able to use it with OpenSSL, I need to be able to convert it to some format supported by OpenSSL, be it PEM or whatever. I know that one can read a PEM formatted key and print it out in a format like this: Private-Key: (102...

How to convert animated GIF to static in PHP ?

I need to convert animated GIF to static in PHP. I mean e.g. use its first frame. Any idea how to do that ? ...

Text time to numbers [PHP]

I have multiple rows with time "42 sec" "1 min" "2 h 32 min" Is it possible to convert this to "00:00:42" "00:01:00" "02:32:00" with php? ...

Conversion question

Can someone please tell me how to do this in C#? Convert from Quoted Printable to binary, and then use UTF-8 encoding to decode that binary to text. Here is example of text I need quoted: "Commentaires: Je suis abonn=C3=A9 =C3=A0 la livraison =C3=A0 domicile depuis longtemps." ...

C# Converting a string containing a floating point to an integer

What is the best way to take a string which can be empty or contain "1.2" for example, and convert it to an integer? int.TryParse fails, of course, and I don't want to use float.TryParse and then convert to int. Thanks! ...

Convert ASCII string into Decimal and Hexadecimal Representations

I need to convert an ASCII string like... "hello2" into it's decimal and or hexadecimal representation (a numeric form, the specific kind is irrelevant). So, "hello" would be : 68 65 6c 6c 6f 32 in HEX. How do I do this in C++ without just using a giant if statement? EDIT: Okay so this is the solution I went with: int main() { st...

can MSIL be converted to Java Native Code ?

Dotnet CLR converts the language code to MSIL. While Java Code be converted to Native Code that is platform independent. Can we convert this MSIL to Native Code ? So the Dotnet will automatically become platform independent. ...

Why returns C# Convert.ToDouble(5/100) 0.0 and not 0.05

double variable = Convert.ToDouble(5/100); Will return 0.0 but i expected 0.05 What can / must i change to get 0.05 because the 5 in this example is a variable ...

How do I convert 1024 KB to 1 MB with the output?

I have this /([^\/\|\#\<\(\>\;\s][0-9]*[\s][KB]{2}) in order to be specific i had to use [KB]{2} I get the value needed, but can I convert the final print to MB? Exemple: match= 2000KB = 2MB? Thanks ...

Regex match 1024KB convert to 1MB?

I get the file size from the index of the page, it's 1024KB and I want it to print 1MB stead of 1024KB, what should I do? (completely noob here) I got this: if($row[2]==1) // Rapidshare Check { $index=getpage($row[1]); if(strpos($index,"FILE DOWNLOAD")===false) //check if page contains the word file download if not = bad link {...

Flex 3 to Flex 4 Conversion and Undefined Methods

I have an application I am attempting to convert from a flex 3 air application to a flex 4 air application. I am running into an issue in my main class. When calling the Instance method on the class I am getting an error: Access of possibly undefined property Instance through a reference with static type Class. My main class is pretty...

How to have a bigint hash for a string

We have an alpha numeric string (up to 32 characters) and we want to transform it to an integer (bigint). Now we're looking for an algorithm to do that. Collision isn't bad (therefor we use an bigint to prevent this a little bit), important thing is, that the calculated integers are constantly distributed over bigint range and the calcul...