processing

Analyzing Sounds

I was wondering if anyone could provide guidance on audio analysis. Analyzing waveforms or pitches and speech is what I'm looking at. I am pretty much open to using any C-based language (C++,C#,Java), and if that's not possible than maybe a new language. Does anyone have any tips on where I should start? ...

Android Strip Audio From Video

Hello, In my program, it gets MP4 video in, and I want it to output a MP3 (without any server-side stuff.) Since Android (and my app) needs to run on many different hardware configurations, this means I probably cannot use FFMPEG :( I know this may be very battery and processing power intensive, especially for a mobile phone, but I need ...

Remove lines from file

Hey Guys, I am doing some text processing on a unix system. I have access to the command line on this machine and it has Python, Perl and the default text processing progams installed, awk etc. I have a text file that looks like below: 2029754527851451717 2029754527851451717 2029754527851451717 2029754527851451717 202975452785145...

Is there a way to manipulate code generated by Processing.js via Javascript?

I would like to call some functions or alter some variables after the Processing.js code has been parsed. Right now the only way to do this is to manipulate the source code, and then reload the source into Processing. ...

Using JSON from Processing-JS

OKay, I'm a bit of a javascript n00b, so forgive me if this seems like an obvious question. I want to write an application using processing-JS, and I'd like to be able to load it with server-side data. I haven't written the server side yet so I can use anything, but it seems the obvious AJAX thing would be to use JSON to upload the d...

How can I put a lot of data from XML into my database quickly?

I am using .NET to parse an XML file with about 20 million lines (1.56 GB), building LINQ objects out of the data, then inserting it into a SQL database. It is taking a really long time. To improve performance I am considering asking for a pipe delimited file. I was also wondering if Perl might be any faster. Does anyone have sugge...

help me convert Processing code to C#

I am trying to convert this code from java to C# (located here) I have some winform experience but not a lot with the drawing of pixels on a winform applications. I feel fairly confident I can convert over most of the sub methods im just unclear on how i would draw indiviual pixels on the screen any help or tools for converting over j...

How to use some text processing(awk etc..) to put some character in a text file at certain lines

Hello, I have a text file which has hex values, one value on one separate line. A file has many such values one below another. I need to do some analysis of the values for which i need to but some kind of delimiter/marker say a '#' in this file before line numbers 32,47,62,77... difference between two line numbers in this patterin is 1...

Javascript PHPBB-like URL tag processing

Hi all! I'm working on a php dynamic web page that has a element that let user write and their text is show in "real time" just javascript-processing the text & tags on a element. I change the "b","u", and tags between brackets (like phpbb style) to its html equivalent like "strong" ,"u", and so using javascript regexps. Problem occ...

Emulate processing with python?

I'm looking for a basic programmatic animation framework similar to processing except in python. That is, something that allows pixel manipulation, has basic drawing/color primitives, and is geared towards animation. Is pygame pretty much the best bet or are there other options? ...

Recording from microphone from within the browser using flex or processing

A groups of friends are working on a little game that would listen to the microphone as part of the interaction. We've tinkered with processing and flex. What we'd like to know is if anyone has succeeded in: recording from the microphone using a web app performing an FFT on this microphone data In the case of flex, according to the d...

Multi-threading & db record locks

Need help big time .... I need to create a .net application that will perform some bulk operations on , say around 2,000,000 records, in a table. There is a window of opportunity in which the application should run and try to process as many rows as it can. I am thinking that if I can have multiple threads of the app take 2000 records...

Processing / .NET interop?

I'd like to call into a .NET assembly for some data and library functions from a Processing user interface. What's the best way to achieve this? Expose a web service? A RESTful API? Some godforsaken processing/Silverlight monstrosity? Good ideas are welcome. ...

Java / .NET Tasks Processing Library

I'm looking for some good library for processing tasks (or 'operations' as we call them in our domain model) for Java or .NET. We save each operation to perform in db and then we need some mechanism for fetching unprocessed tasks from db, process them and update db record with proper status ('processed OK' / 'process error'). The trick ...

Find spaces in anchor links

We've got a large amount of static that HTML has links like e.g. <a href="link.html#glossary">Link</a> However some of them contain spaces in the anchor e.g. <a href="link.html#this is the glossary">Link</a> Any ideas on what kind of regular expression I'd need to use to find the Spaces after the # and replace them with a - or _ ...

How Should I Move A File On Exception?

The requirement: On an error (thrown exception), the file being processed should be moved to the folder for files with errors (app.config setting). The problem: The only way that I can of handling this is to have a nested Try/Catch inside of the main Try/Catch to try to move the file, that way if the move fails, another exception is...

HTML5 canvas with Processing vs. Pure Javascript

I have some data visualization animations I want to do in a webapp I have and am considering different alternatives I have. It will basically just be moving around text strings in a pretty way. I am using the Mootools framework and the Mootools FX library basically have the stuff i want, but I want to manipulate around 100 text strings,...

Is there an equivilent of C# Anonymous Delegates in Java?

In C#, you can define small pieces of code called delegates anonymously (even though they are nothing more than syntactic sugar). So, or example, I can do this: public string DoSomething(Func<string, string> someDelegate) { // Do something involving someDelegate(string s) } DoSomething(delegate(string s){ return s += "asd"; }); D...

PHP loading xml feeds quickly

Hi, I am building a comparison shopping site that takes in multiple xml feeds and displays the best deals. I use PHP Simplexml and then sort them using php when the page loads. I use a library like this: http://www.developertutorials.com/blog/php/parallel-web-scraping-in-php-curl-multi-functions-375/ to process the feeds in parallel...

Java math expression parser that can take complex numbers as a variable?

I am writing a program in Processing that transforms complex numbers. However, I want to have a method of taking an input string and calculating the transformation using a complex variable. For example: 1/(z+1) (z^2)/(z/2) where z is a complex number. Now, I've looked at JEP and some examples, but I cannot work out if it would allow y...