convert

Can I programatically save the data stream sent to the sound card as a WAV file?

In Windows XP, you can configure your sound card properties via the preloaded windows software. In the recording properties, if "stereo mix" or "wave out" (or something similar) is selected as the recording device, programs that can record audio ("Sound Recorder" in windows for example) record a decent quality wave file of the audio str...

Convert PDF book to IPhone App

Hai, Can any one suggest me the best way to convert PDF to IPhone App? Thanks Basanth ...

VB.Net String to double

Why is it that when I convert a string with value "22.882" to double, using Dbl() it loses precision and is converted to 2288.2? I have to use a double since I'm using the constructor of System.Web.UI.WebControls.Unit (see http://msdn.microsoft.com/en-us/library/ctewx7ch.aspx). ...

Convert a SVN repo to a HG repo and discard revision comments

I want to create a HG repository from a SVN repository, but I do not want the HG repository to have any of the commit comments. What would be the easiest way to do this? ...

How to convert this C# code to Visual basic

Im not sure how to convert C# code with delegate into Visual basic code, can you help me? List<XmlUser> matchingUsers = this.Store.Users.FindAll(delegate(XmlUser user) { return user.Email.Equals(emailToMatch, StringComparison.OrdinalIgnoreCase); } ); ...

Python assertion error, converting string to int

Hey, I am trying to rewrite my lib written in PHP into python. It handles all sphinx requests. In the init function, I am trying to set default search and match modes, but I have run into a little problem. I get the modes from a config file. In PHP, you need to use a constant as an input: $this->sphinx->SetMatchMode(constant($this->c...

How to store the timestamp as decimal(17,3) in mysql?

I try to generate a trigger, in the trigger statement I have to set a column of type decimal(17,3) with the actual timestamp or the seconds of unix timestamp, but could not find a solution. ...

Python: Unpack from hex to double

Python: Unpack from hex to double This is the value value = ['\x7f', '\x15', '\xb7', '\xdb', '5', '\x03', '\xc0', '@'] I tried unpack('d', value) but he needs a string for unpacking. It is a list now. But when I change it to a string, the length will change from 8 to 58. But a double needs a value of the length 8. ...

Convert characters in a c string to their escape sequences

Hi, I need a function like string ToLiteral(string input) from this post. Such that char *literal = to_literal("asdf\r\n"); Would yield literal ==> "asdf\\r\\n". I've googled around, but not been able to find anything (guess that I've must be using the wrong terms). However, I assume that a library with this functionality must be out...

Why does the tooltip for Convert.ToDateTime() say that it always throws?

The tooltip displayed for Convert.ToDateTime() says that it always throws System.InvalidCastException. Why? ...

how to tell convert.todatetime that the input is in format dd-mm-yyyy

have written a code, that is supposed to take time and date input from the user and convert it to datetime format add some value to hrs and display it. works fine, when user gives input in the default format. but what is user enters like dd-mm-yyyy instead of mm/dd/yyyy(default) how to tel the convert function to take care of this...

Does anyone know of a script to convert pygtk to tk

I have a fairly large work project that uses pygtk for the GUI and I need reduce the dependencies and convert to tkinter. Does anyone know of a script to convert exisiting pygtk code to tkinter? ...

Best (safest) way to convert from double to int

I'm curious as to the best way to convert a double to an int. Runtime safety is my primary concern here (it doesn't necessarily have to be the fastest method, but that would be my secondary concern). I've left a few options I can come up with below. Can anyone weigh in on which is best practice? Any better ways to accomplish this that...

Convert.ToInt32(float) fails when trying to convert float to Int32

No exception is thrown, function just halts at this statement: int productQuantity = Convert.ToInt32("1.00"); and returns. What am I doing wrong to convert this float to Int32? Note: I am running in a BackgroundWorkerThread. ...

how to convert NSString to NSMutableArray?

hi, i have an NSString that is value in plist format. i download this string from url. but i dont wanna write it to a file. when the string comes Asynchronous, i want to put it to nsmutablearray. how can i convert string (in plist format) to nsmutablearray? there is some methods, initWithContentsOfURL, initWithContentsOfFile. but no inti...

Convert multipage TIFF to PNG .Net

I am able to convert a single page TIFF to a PNG in .Net, however, how would I do this for a multipage TIFF? ...

Converting a Mercurial repository to Bazaar

Is there an easy way of converting an existing Mercurial repository to Bazaar without losing any history? If I convert Mercurial to Subversion to Bazaar will I lose any history? ...

RMagick convert ps to pdf

When I convert a ps file to pdf, it works fine on the local machine, but on the production server, it adds margin to the page, as if I selected Scale to Fit instead of Scale: 100% from the Mac OSX Preview print settings. How do i prevent this? Currently, I'm doing: Magick::ImageList::new('cool.ps').write('cool.pdf') # only works on loca...

How to Convert.ToByte[] sql reader?

I am saving a image into database with byte[] property like this: ProfileModel: private byte[] _imageData; public byte[] ImageData { get { return _imageData; } set { _imageData = value; } } When I am trying to read image i have problem with converting of byte. I dont know how to convert reader...

how to convert some character into numeric in php?

dear i need help for change a character in php. i get some code from web: char dest='a'; int conv=(int)dest; can i use this code for convert character into numeric? or do you have any idea? i'm just want to show result as decimal number: if null == 0 if A == 1 ...