Prototyping 5 Feb 2013: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:
Comparing the analog to the digital via [[cadavre exquis]] + [[imagemagick]] and some simple file-sharing with a [[python]] script named [[woof]], [[inkscape]]
Comparing the analog to the digital via [[cadavre exquis]] + [[imagemagick]] and some simple file-sharing with [[netcat]].


== Drawing ==
== Drawing ==


Start by selecting a single imagemagick operation, and test your script until it makes the modification you have in mind. Test your script on an image from your neighbor.
http://www.imagemagick.org/Usage/draw/
 
Start by selecting a single imagemagick operation, and test your script.


== Passing ==
== Passing ==
Line 11: Line 13:


Run the woof script, note the web address it gives. This is a [[URL]] with your (dynamically assigned) IP address (the four numbers) plus a port number (after the colon) which be default is 8080.
Run the woof script, note the web address it gives. This is a [[URL]] with your (dynamically assigned) IP address (the four numbers) plus a port number (after the colon) which be default is 8080.
=== Listen for a file ===
nc -l -p [LocalPort] > [outfile]
Listen on [LocalPort], store results in [outfile]
=== Push a file ===
nc -w3 [TargetIPaddr] [port] < [infile]
Push [infile] to [TargetIPaddr] on [port]

Revision as of 10:17, 5 February 2013

Comparing the analog to the digital via cadavre exquis + imagemagick and some simple file-sharing with netcat.

Drawing

http://www.imagemagick.org/Usage/draw/

Start by selecting a single imagemagick operation, and test your script.

Passing

Passing an image:

  • IP Addresses

Run the woof script, note the web address it gives. This is a URL with your (dynamically assigned) IP address (the four numbers) plus a port number (after the colon) which be default is 8080.

Listen for a file

nc -l -p [LocalPort] > [outfile]

Listen on [LocalPort], store results in [outfile]

Push a file

nc -w3 [TargetIPaddr] [port] < [infile]

Push [infile] to [TargetIPaddr] on [port]