I need to scrape images from Google Image search results for a little project I'm doing. How would I go about doing this? I already tried proHTML, but that didn't return any images even though there were some on the webpage. Right now I'm trying XMLElement with this code, but I'm getting nullpointers at image().
I was creating an app for a while, and suddenly, I get this when I tried to build:
createProject renameTo() failed, resorting to mv/move instead.
java.io.IOException: Cannot run program "mv": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.exec.ProcessHelper.execute(ProcessHelper.java:65)
at processing.mode.android.AndroidBuild.createExportFolder(AndroidBuild.java:218)
at processing.mode.android.AndroidBuild.exportProject(AndroidBuild.java:258)
at processing.mode.android.AndroidEditor$14.run(AndroidEditor.java:390)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 6 more
I am exporting the application and getting it onto my Thrive tablet using Dropbox, so that might be part of it. The first time the error came up was when I tried to use millis() in my code, but after I remove it, it still doesn't work, giving the same error. I am using Processing 1.5.1. Again, it was working fine before this error came up.
I'm working on a little game that uses MSAFluid. Some bug in my code is causing the fluid to not display (but update!) when the mouse is not pressed. I know that the image() method is being reached because my println() statement after it is displaying messages, but the screen appears as a solid black. What am I doing wrong here?
//Some lines that I could prove were not causing the bug are left out
import msafluid.*;
import processing.opengl.*;
final float FLUID_WIDTH = 120;
float invWidth, invHeight; // inverse of screen dimensions
float aspectRatio, aspectRatio2;
MSAFluidSolver2D fluidSolver;
PImage imgFluid;
void setup() {
size(960, 640, OPENGL); // use OPENGL rendering for bilinear filtering on texture
hint( ENABLE_OPENGL_4X_SMOOTH ); // Turn on 4X antialiasing
invWidth = 1.0f/width;
invHeight = 1.0f/height;
aspectRatio = width * invHeight;
aspectRatio2 = aspectRatio * aspectRatio;
// create fluid and set options
fluidSolver = new MSAFluidSolver2D((int)(FLUID_WIDTH), (int)(FLUID_WIDTH * height/width));
I'm trying to use GSVideo to record a video into an ArrayList and delete some of its frames. Recording the video works fine, but when I try to step through the images, the program will only display the last frame.
Really annoyed about this. At the beginning of the LineMaker class, an error comes up that says "unexpected token: (". Is it my code, or is it Processing?
Circle[] circles = new Circle[10];
LineMaker ndraw;
void setup() {
size(500, 500);
background(200);
ndraw = new LineMaker(color(255,100));
for(int i = 0; i < circles.length; i++) {
circles[i] = new Circle(random(width), random(height), 50, color(0));