User:Michael Murtaugh/Notes: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 3: Line 3:
View: Put-That-There
View: Put-That-There


* Declarative vs. Procedural Languages
* Declarative vs. Procedural Languages (Handout!)


An introduction to using lxml to manipulate a structure like SVG?
An introduction to using lxml to manipulate a structure like SVG?
* Graphviz to SVG
* Mapping (OpenStreetMap) to SVG?
(need tips on other sources of SVG)


Source + Tweak...
Python as a tweaking tool
Assignment: To alter an existing SVG, either:
(1) Generated from software
(2) Obtained from online (open clip art, street maps? ...)
(3) Place back online with an appropriate license...


* Code readings
* Code readings

Revision as of 09:27, 12 October 2011

An exercise in Performative Language

View: Put-That-There

  • Declarative vs. Procedural Languages (Handout!)

An introduction to using lxml to manipulate a structure like SVG?

  • Graphviz to SVG
  • Mapping (OpenStreetMap) to SVG?

(need tips on other sources of SVG)

Source + Tweak...

Python as a tweaking tool

Assignment: To alter an existing SVG, either: (1) Generated from software (2) Obtained from online (open clip art, street maps? ...) (3) Place back online with an appropriate license...

  • Code readings
  • Moving up and down the hierarchy ... maybe link to Danny Hillis Pattern in the Stone text / presentation?!

Signicant and non-obvious idea: with free software, one really (can) begin with the code and use the code itself as documentation (it sometimes is the best / only documentation).

  • Performing a script
  • The concept of a "PATH"
    • Creating a "bin" folder, ensuring it's in the path.
    • Creating a "pythonlib" folder and adding it to the PYTHONPATH
  • building a video Sniff / downloader

Claiming the terminal

  • gtypist:
    • Typing
    • GNU
    • Fortune
    • .bashrc

(though... ktouch is better)

Open .bash_aliases in your HOME directory, and add:

export PYTHONPATH=$PYTHONPATH:$HOME/pythonlib

Bash

what is a script?

what is a variable?

what is a loop?

sources of (live) information:

  • date
  • traceroute