processing

Explain the TexturedSphere example in Processing

The Processing project website has an example of implementing a 3D textured sphere with rotational capabilities. I'm trying to understand the code, but I'm having trouble comprehending many of the code blocks since I don't have a background in graphics. Any higher-level explanation of what each block is trying to accomplish, perhaps re...

Vector Quantization in Speech Processing Explanation

Hi all, I'm having trouble determining from this research paper exactly how I can reproduce the Standard Vector Quantization algorithm to determine the language of an unidentified speech input, based on a training set of data. Here's some basic info: Abstract info Language recognition (e.g. Japanese, English, German, etc) using acoustic...

How to dynamically construct 3d object by adding paths? (Java; OpenGL)

So I have some path generator which now works like this http://www.openprocessing.org/visuals/?visualID=2615 (There is source; WQRNING - JAVA APPLET) I want to create some 3D object using paths I generated so it locked in one of perspectives similar to what I get now in 2D. So how do I dynamically construct 3D object by adding paths...

How to paint fully transparent pixels/points in P2D mode?

According to the Processing Reference, stroke(gray, alpha) allows to set the color and opacity of the stroke. With the default color mode, an alpha value of 255 denotes full opacity, while a value of 0 should correspond to complete transparency. While this works with the (default) JAVA2D renderer, I can't seem to paint fully transparent ...

How is 'processing credit card data' defined (PCI)?

If i have a web application and i receive credit card data transmitted via a POST request by a web browser over HTTPS and instantly open a socket (SSL) to a remote PCI compilant card processor to forward the data and wait for a response, am i allowed to do that? or is this receiving the data with my application and forwarding it already ...

Using R in Processing through rJava/JRI?

Hi guys, Is it possible to run R in Processing through rJava/JRI? If I deployed a Processing app on the web, would the client need R on their system? I'm looking to create an interactive information dashboard that I can deploy on the web. It seems that Processing is probably my best bet for the interactive/web part of things. Unfortun...

How to ensure MapReduce tasks are independent from each other?

I'm curious, but how does MapReduce, Hadoop, etc., break a chunk of data into independently operated tasks? I'm having a hard time imagining how that can be, considering it is common to have data that is quite interelated, with state conditions between tasks, etc. Thanks. ...

Create a Sin wave line with Processing

Hey everybody, first post here, and probably an easy one. I've got the code from Processing's reference site: float a = 0.0; float inc = TWO_PI/25.0; for(int i=0; i<100; i=i+4) { line(i, 50, i, 50+sin(a)*40.0); a = a + inc; } http://processing.org/reference/sin_.html However, what I need is a line that follows the curve of a Si...

Best way to remove an object from an array in Processing

I really wish Processing had push and pop methods for working with Arrays, but since it does not I'm left trying to figure out the best way to remove an object at a specific position in an array. I'm sure this is as basic as it gets for many people, but I could use some help with it, and I haven't been able to figure much out by browsing...

How to serialize data from processing.js to rails application ?

Hi I am creating a simple canvas using processing.js , how to pass values from rails application to Processing.js void drawBox(int bx, int by, int bs, int bs){ strokeWeight(3); stroke(50,50,50); // Test if the cursor is over the box if (mouseX > bx-bs && mouseX < bx+bs && mouseY > by-bs && mouseY <...

What pattern to follow to make application behave w.r.t. the meta-data supplied and which orchestration tool to use to generate meta-data?

Hello. I would like my application to pick up meta-data from a store and use it during the runtime to emit desired behavior (as defined in the meta-data). Next, in order to generate this meta-data, I would like to build (or extend) an orchestration tool. So first, it there a generic framework / pattern / guideline available (mine is .Ne...

SSIS process files from folder

Background: I've a folder that gets pumped with files continuously. My SSIS package needs to process the files and delete them. The SSIS package is scheduled to run once every minute. I'm picking up the files in ascending order of file creation time. I'm building an array of files and then processing-deleting them one at a time. Proble...

Processing XML file with Huge data

Hi,be m I am working on an application which has below requiements - 1. Download a ZIP file from a server. 2. Uncompress the ZIP file, get the content (which is in XML format) from this file into a String. 3. Pass this content into another method for parsing and further processing. Now, my concerns here is the XML file may be of Huge si...

Automatic e-mail processing

I'd like to write a .NET application in F# to automate some of the processing of my e-mails. For example, when an order comes in my program might compute a new htpasswd from the e-mail's contents, upload it to our web server and reply to the customer with login details. How do people do this? I've tried Outlook 2007 automation but it ju...

Proving Transaction Processing in Azure

Since I am writing a seminar work on "Transaction Processing in MS Azure" for my university I wanted to launch a bank-transfer simulation. I already have implemented a getting-started thingy to get familiar with Azure: http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/48/Default.aspx . Question: What is the most easy way (using SQL ...

Background Activity for Map in Android started again if phone orientation is changed

Hi, i've developed an android app that's fetches an xml file and displays this data via several markers on the map. This works fine so far. The problem right now is that when i switch the orientation of the phone (portrait->landscape or vice versa) the markers disappear for a small moment, the xml processing is started again and then ...

How to search for duplicate values in a huge text file having around Half Million records

I have an input txt file which has data in the form of records (each row is a record and represents more or less like a DB table) and I need to find for duplicate values. For example: Rec1: ACCOUNT_NBR_1*NAME_1*VALUE_1 Rec2: ACCOUNT_NBR_2*NAME_2*VALUE_2 Rec3: ACCOUNT_NBR_1*NAME_3*VALUE_3 In the above set, the Rec1 and Rec2 are conside...

How to generate irregular ball shapes?

What kind of algorithms would generate random "goo balls" like those in World of Goo. I'm using Proccesing, but any generic algorithm would do. I guess it boils down to how to "randomly" make balls that are kind of round, but not perfectly round, and still looking realistic? Thanks in advance! ...

Processing: Why is setup() running multiple times?

I'm working on a visualisation app with Processing. All appears to be going well, but I've noticed that in the console, I'm seeing any println() statements from the setup() method in triplicate. This doesn't appear to be the case for similar statements inside the draw() loop. I thought this might just be an output thing, but I'm now se...

Can we count Processing as Environment for Mathematical Modelling and Programming?

Can we count Processing as Environment for Mathematical Modelling and Programming? And If yes can we do the same for Eclipse (Java)? ...