decode

wav <> mp3 for flash(as3)

Dear All, I'm wondering about MP3 decoding/encoding, and I was hoping to pull this off in Flash using AS3 I'm sure it'll be a right pain... I have no idea where to start, can anyone offer any pointers? reference material? ----much later--- Thank you all very much for your input... It seems I have a long road ahead of me yet! ...

QR code (2D barcode) coding and decoding algorithms?

Looking for free/opensource code or description of algorithms to code (simple) and decode (hard) the 2D barcode QR code. It doesn't seem like a trivial problem, but it's so popular in Japan that there must be something already available... ...

How do I safely decode a degrees symbol in a wxPython app?

I have a debug app I've been writing which receives data from a C-based process via UDP. One of the strings sent to me contains a '°' character - http://en.wikipedia.org/wiki/Degree_symbol">Unicode U+00B0 (which incidentally breaks the StackOverflow search function!). When my wxPython application tries to append that string to a text box...

Using an Alias in a WHERE clause

I have a query which is meant to show me any rows in table A which have not been updated recently enough. (Each row should be updated within 2 months after "month_no".): SELECT A.identifier , A.name , TO_NUMBER(DECODE( A.month_no , 1, 200803 , 2, 200804 , 3, 200805 , 4, 20...

How do I decode this text?

I have a friend who has code like this in his wordpress files: Blockquote \x66\x75\x6e\x63\x74\x69 Blockquote And so on... How do I decode this? Is there an online tool to do it? G-Man ...

How would you reverse engineer this?

I've got some code that was at the bottom of a php file that is in javascript. It goes through lots of weird contortions like converting hex to ascii then doing regex replacements, executing code and so on... Is there any way to find out what it's executing before it actually does it? The code is here: http://pastebin.ca/1303597 G-M...

Java code or lib to decode a binary-coded decimal (BCD) from a String

I have a string consisting of 1's ('\u0031') and 0's('\u0030') that represents a BCD value. Specifically, the string is 112 characters worth of 1's and 0's and I need to extract either 8 or 16 of these at a time and decode them from BCD to decimal. Ideas? Packages? Libs? Code? Snooty remarks about my sheer fucking laziness? All is welc...

Python: Use the codecs module or use string function decode?

I have a text file that is encoded in UTF-8. I'm reading it in to analyze and plot some data. I would like the file to be read in as ascii. Would it be best to use the codecs module or use the builtin string decode method? Also, the file is divided up as a csv, so could the csv module also be a valid solution? Thanks for your help. ...

AVI texture in direct-x with sound sync

I'm about to add "render AVI to texture" to our engine to get videos into materials, and realised I haven't done any video decoding since the Playstation1 (argh) so would like to know if anyone has any suggestions on how to get an AVI's frames output to a standard memory buffer while also maintaining sync with any Audio that might be pla...

Cause of video artifact/artefact

Hi folks, ![alt text][1] The above screenshot shows some artifacting which is occuring during a software decode of a .DV video file, compliant to SMPTE 314m... The artefacting is believed to be cause by a AC/DC coefficient problem, is this likely? Any information is appreciated. ...

Is there a way to decode html e-mails?

I am writing support software and I figured for highlighting stuff it would be great to have HTML support. Looking at Outlooks "HTML" I want to crawl up into the fetal position and cry! Is there a php class to unscramble HTML emails to support basic HTML? I don't want to display the E-Mails in a frame because I want to work with the da...

Extracting raw audio/waveform from an MP3

Hi all, This question has been in my mind for a few years and I never actually found the answer for this. What I would like to do is extract the actual waveform/PCM of an MP3 file, so that I can play it using the soundcard (of course). Ideally I would be experimenting some DSP effects. My first step was to look into LAME, but I didn'...

decode base64 with dollar sign in ruby 1.8.5

Hello, I have base64-encoded string (with two dollar signs, so it's not a common base64 string) The problem: Base64.decode64 (or .unpack("m")) decodes it just fine on my local machine(ruby 1.8.6), but with ruby 1.8.5 (the version used by Heroku) it doesn't work Any ideas ? edit: I have : $$YTo1OntzOjM6Im1pZCI7czo3OiI3MTE5Njg3IjtzOj...

Reading and decoding PDF-417 barcodes stored in an image or PDF file from within a .NET application

I am looking for a .NET library that is able to decode data from a PDF-417 barcode that is embedded either in an image file or PDF. At this point, I have only been able to find a Java version and a C version. Ideally, this library would be both open-source and free of charge, but I doubt such a decoder exists. I am open to trying out...

Unable to decode unicode string in Python 2.4

This is in python 2.4. Here is my situation. I pull a string from a database, and it contains an umlauted 'o' (\xf6). At this point if I run type(value) it returns str. I then attempt to run .decode('utf-8'), and I get an error ('utf8' codec can't decode bytes in position 1-4). Really my goal here is just to successfully make type(valu...

What's a good way to determine what's in my viewstate?

I have a page that has a really huge viewstate (>300KB). ...Yeah, I know. I've narrowed this anomaly down to one user control, but am having trouble determining what exactly that control is putting in there. I've overridden SavePageStateToPersistenceMedium in the page, but am not great at working with the viewstate object passed in. ...

how can I decode the REG_BINARY value HKLM\Software\Microsoft\Ole\DefaultLaunchPermission to see which users have permission?

Hello, I am trying to find a way to decode the REG_BINARY value for "HKLM\Software\Microsoft\Ole\DefaultLaunchPermission" to see which users have permissions by default, and if possible, a method in which I can also append other users by their username. At work we make use of DCOM and for the most part we always give the same users pe...

Decode base64 String Java 5

Is there a straight forward way to decode a base64 string using ONLY THE JAVA 1.5 LIBRARIES? I have to use Java 1.5 due to cross platform compatibility issues between Windows and Mac OS X (only Mac 10.5 supports Java 1.6, everything lower than 10.5 has Java 1.5 as default). The object "sun.misc.Base64Decoder" exists in Java 6, but not...

Chunked transfer decoder, code snippet for C

I'm making a http server that merely allows access to my folder, download the files in it and also uploading to a folder. So far I have already done most of it, the only thing left is the uploading of the files. Whenever I receive files from a client, they send chunked datas. Which I dont understand to decode. All I need is a function th...

What is CMIString4096 and how can I extract the data within it?

I have this string that I get back from Adobe Presenter 7. It's called suspend_data and is of type CMIString4096 (by the docs) CMIString4096 A set of ASCII characters with a maximum length of 4096 characters. This is the string: aG1111111000000000BB001EC%2EacC%7E%24GS%2AayjHm110BKCBBB0B0EBAB1B1ED%2EicC%7E%24GS%2AlfkHm110BKDBC...