though your ideas and concept and scenarios
Like or Dislike?
ssh “user”@judgeme.info
The authenticity of host ‘judgeme.info (69.163.147.15)’ can’t be established. RSA key fingerprint is 0e:c2:f6:f4:d9:86:9d:4b:c4:3d:77:e7:a4:bb:59:14. Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘judgeme.info,69.163.147.15’ (RSA) to the list of known hosts. “user”@judgeme.info’s password:
Welcome to diamondbacks.dreamhost.com
Any malicious and/or unauthorized activity is strictly forbidden.
All activity may be logged by DreamHost Web Hosting.
[diamondbacks]$ ln -s judgeme.info dev.judgeme.info
[diamondbacks]$ cd judgeme.info
[diamondbacks]$ pwd /home/livarch5/judgeme.info
[diamondbacks]$ chmod 777 sites chmod: cannot access `sites’: No such file or directory
[diamondbacks]$ cd judgeme.info/drupal-6.25 -bash: cd: judgeme.info/drupal-6.25: No such file or directory
[diamondbacks]$ pwd /home/livarch5/judgeme.info
[diamondbacks]$ ls drupal-6.25 favicon.gif favicon.ico quickstart.html
[diamondbacks]$ cd drupal-6.25
[diamondbacks]$ ls CHANGELOG.txt INSTALL.txt cron.php misc scripts xmlrpc.php COPYRIGHT.txt LICENSE.txt includes modules sites INSTALL.mysql.txt MAINTAINERS.txt index.php profiles themes INSTALL.pgsql.txt UPGRADE.txt install.php robots.txt update.php
[diamondbacks]$ chmod 777 sites
[diamondbacks]$ cd sites
[diamondbacks]$ pwd /home/livarch5/judgeme.info/drupal-6.25/sites [diamondbacks]$ chmod 777 default
[diamondbacks]$ chmod 777 dev.judgeme.info
[diamondbacks]$ ls all default dev.judgeme.info
[diamondbacks]$ cd default
[diamondbacks]$ chmod 777 settings.php [diamondbacks]$ ls default.settings.php settings.php
[diamondbacks]$ cd ../
[diamondbacks]$ ls all default dev.judgeme.info
[diamondbacks]$ cd dev.judgeme.info
[diamondbacks]$ ls settings.php
[diamondbacks]$ chmod 777 settings.php
[diamondbacks]$ cd ../
[diamondbacks]$ ls all default dev.judgeme.info
[diamondbacks]$ cd ../
[diamondbacks]$ pwd /home/livarch5/judgeme.info/drupal-6.25
[diamondbacks]$ ls CHANGELOG.txt INSTALL.txt cron.php misc scripts xmlrpc.php COPYRIGHT.txt LICENSE.txt includes modules sites INSTALL.mysql.txt MAINTAINERS.txt index.php profiles themes INSTALL.pgsql.txt UPGRADE.txt install.php robots.txt update.php
[diamondbacks]$ chmod 777 sites
[diamondbacks]$ exit
logout
Connection to judgeme.info closed.
Setting up multiple drupal (v6) sites for judgeme.info
Data Flow
Why Facebook does not have dislike button?
Our Processing Sketch used to extract the (x, y) values for seats in Wood Auditorium
To use this sketch first save the above image for loading into the sketch.
/*—————————
Begin Processing Sketch
—————————*/
//the language for printing out to file found at http://www.learningprocessing.com/tutorials/external-data-into-processing-1/
PrintWriter output;
PImage bg;
int a;
float x;
float y;
void setup() {
size(480, 480);
frameRate(30);
// The background image must be the same size as the parameters
// into the size() method. In this sketch, the size of the plan is 480x480 pxl
bg = loadImage(“Wood Auditorium Plan (1).jpg”);
// Load everything from the file
String[] positions = loadStrings(“seatcoordinates.txt”);
// Create a print writer (will clear the file)
output = createWriter(“data/seatcoordinates.txt”);
// It might be null the first time we run the program if there is no data.txt file!
if (positions != null) {
// Read all the lines from the file and convert to two integers (xy coordinate)
for (int i = 0; i < positions.length; i++) {
int[] xy = int(split(positions[i], “,”));
fill(0);
rectMode(CENTER);
rect(xy[0], xy[1], 16, 16);
// We have to write the data out to the file again
output.println(xy[0] + “,” + xy[1]);
}
}
}
void draw() {
background(bg);
}
void mousePressed() {
// Draw a new ellipse and write it out
fill(0);
ellipseMode(CENTER);
ellipse(mouseX, mouseY, 10, 10);
output.println(mouseX + “,” + mouseY); // Write the coordinate to the file
}
void keyPressed() {
output.flush(); // Flush all the data to the file
output.close(); // Close the file
}
Update of Seat Occupation Code
ArrayList mypoints;
PFont font;
int N = 21;
void setup() {
size(600, 600);
smooth();
mypoints = new ArrayList();
frameRate(5);
rectMode(CENTER);
font = createFont(“Arial”, 14);
textFont(font);
textAlign(CENTER);
}
void draw() {
background(0);
float r = random(0, (N+1));
int a = floor(r);
PVector P = new PVector(frameCount *10, a*100/N);
mypoints.add(P);
for (int j = 0; j<mypoints.size();j++) {
noStroke();
fill(255, 0, 0);
PVector o = (PVector)mypoints.get(j);
rect(o.x+50, height-50-o.y, 5, 5);
}
fill(255);
stroke(255);
line(50, height-50, 50, height-180);
line(50, height-50, width-50, height-50);
text(“Occupation”, 50, height-200);
text(“Time”, width-50, height-30);
text(“Number of Seat Occupied:” + ” “+a, width-150, height/2);
text(“Number of Seat in This Group:” + ” “+N, width-150, height/2-50);
text(“Light Value:” + a*255/N, 100, 50 );
fill(a*255/N);
rect(200, 200, 250, 250);
noFill();
beginShape();
for (int i = 0; i<mypoints.size();i++) {
if (i>1) {
//PVector p = (PVector)mypoints.get(i-2);
PVector p = (PVector)mypoints.get(i-2);
PVector q = (PVector)mypoints.get(i-1);
vertex(p.x+50, height-50-p.y);
vertex(q.x+50, height-50-p.y);
vertex(q.x+50, height-50-q.y);
}
}
endShape();
}
White means this seat is being occupied and black means not.
PFont font;
void setup() {
size(500, 600);
background(0);
smooth();
frameRate(1);
stroke(255);
rectMode(CENTER);
font = createFont(“Arial”, 14);
textFont(font);
textAlign(CENTER);
text(“Occupation”, 50, height-130);
text(“Time”, width-50, height-30);
line(50, height-50, 50, height-110);
line(50, height-50, width-50, height-50);
}
void draw() {
float r = random(0, 2);
int a = floor(r);
fill(a*255);
rect(200, 200, 300, 300);
fill(255, 0, 0);
if (frameCount<40) {
rect(frameCount*10+50, height-50-a*50, 5, 5);
}
}
Divide all seats into 12 groups, the attendance of each group can control the lights in that subregion.