tools: create files and operate
generate_file_list () { for ((i=0; $i<10; i++)); do echo file_out$i.out; done;};
for word in $(generate_file_list); do echo "$word"; done;
Edit:
for ((i=0; $i<10; i++)); do convert $(printf 'foo-%02d\n' $i); done
generate_file_list () { for ((i=0; $i<10; i++)); do echo file_out$i.out; done;};
for word in $(generate_file_list); do echo "$word"; done;
Edit:
for ((i=0; $i<10; i++)); do convert $(printf 'foo-%02d\n' $i); done
After watching the two newest released episodes of Dollhouse, I'm even more devastated that the show got cancelled.
There are a number of things I learned as a child which don't make much sense to me now. Among them, the scientific method, color theory and the six simple machines:
http://atlantis.coe.uh.edu/archive/science/science_lessons/scienceles1/finalhome.htm The six simple machines are: lever, inclined plane, wheel and axle, screw, wedge and pulley.In both cases, I wonder what the rational was in creating this particular generalization. Perhaps it is helpful in teaching concepts. However, in hindsight, the generalizations don't really make much sense. That said, is there perhaps a more up-to-date generalization for "six" simple machines that will one day, too, look a bit unintelligible. For all intensive purposes, it could be: for, if, else, while ... hm that's only four.Or, it could be: union, intersect, concatenation ... hm that's only threeOr, it could be: insert, delete, sort ... hm that's only three and none of these feel truly unified.I mean, seriously, generalizing tools only makes sense if one has an idea for a machine model in the first place.
Who would have thought that tabs are one of the best types of tools? :p
http://www.tabsgenerator.com/
cake mix: 99-cent Jiffy generic chocolate cake mix w/ two eggs
random frosting recipe: non-fat yogurt, a bit of half-n-half leftover, one chocolate bar stolen from a hotel, raspberry filling from another box, powdered sugar ... (basically random stuff in the fridge + sugar).
I had this conversation with Inna a while ago about researching technology for special needs. To be completely honest, I've never been really interested in delving into this area. However, she made a strong point that often times, designing for the extreme cases gives strong insight into designing for the average user.
We thought along these lines and there seems to be several examples of this. For example, reading devices for the blind might lead to low-power haptic displays. However, none of them seemed particularly compelling only because I hadn't did any of this type of work myself. Anyway, yesterday, I was shown Dasher, which is an inference-based text input device. http://www.inference.phy.cam.ac.uk/dasher/This is really neat! It not only has a strong underlying modeled principle, but also a strong case for using it with people with disabilities. Further, as I can already see, this has really neat implications for working with non-traditional displays like public-signage or PDA input. Anyway, cool stuff!
From Sipser, Theory of Computation, page 218:
1) Living things are machinesMy python example: child.py,
mom = """print 'mom = ""'+'"'+mom+'""'+'"'
print mom"""
print 'mom = ""'+'"'+mom+'""'+'"'
print mom
... Try ...
python < child.py | python | python | python
... child.py yields ...