This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:afassett:portfolio [2011/04/27 19:30] – [Automated Drawing] afassett | user:afassett:portfolio [2011/05/13 03:38] (current) – [Playstation Linux] afassett | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP round box> | ||
+ | <WRAP centeralign bigger>< | ||
+ | <WRAP muchbigger> | ||
+ | Course Portfolio | ||
+ | </ | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ | </ | ||
+ | =====Projects===== | ||
+ | [[http:// | ||
+ | =====Linux/ | ||
+ | [[http:// | ||
+ | More coming Soon... | ||
+ | =====VmServer===== | ||
+ | [[http:// | ||
+ | =====Creating Virtual Machines===== | ||
+ | [[http:// | ||
+ | =====Automated Drawing===== | ||
+ | ==What is need in-order to run== | ||
+ | | ||
+ | | ||
+ | *xwit | ||
+ | | ||
+ | |||
+ | Throughout and for this entire project: | ||
+ | o Illustrate algorithm and logic decisions in the accomplish of each script | ||
+ | o Make and have functioning backups of each script, NOT just the final product | ||
+ | o display the scripts in-line in your wiki documentation | ||
+ | o adequately document each script to explain what is going on | ||
+ | <cli> | ||
+ | #!/bin/bash #version1.0 | ||
+ | xpaint -24 -size 1024x720 -nomenubar -popped & | ||
+ | sleep 5 | ||
+ | pkill xpaint | ||
+ | </ | ||
+ | + a square in the opposite direction | ||
+ | + “draw” a square | ||
+ | + “draw” another square, within the first, which is in a different color | ||
+ | * Now to make things more interesting | ||
+ | o draw me a circle approximately in the middle of the screen | ||
+ | o “fill” the circle with some color | ||
+ | + on a dual-head system | ||
+ | o draw me a picture/ | ||
+ | o this picture/ | ||
+ | + 3 mathematically significant shapes (circles, ellipses, arcs) | ||
+ | + use some not-made-up-of-purely-90 degree angles (triangle, trapezoid, parallelogram) | ||
+ | + utilize a minimum of 4 different colors (or shades of color) | ||
+ | + uses 3 xpaint functions in the composition (fill, gradient, erase, etc.) | ||
+ | o the picture must have a theme or message or depict something | ||
+ | o test your composition drawing script on: | ||
+ | + 2 different screen dimensions | ||
+ | <cli> | ||
+ | # | ||
+ | pkill xpaint #kills any xpain that was already started# | ||
+ | xpaint -nowarn & | ||
+ | xwininfo -root|grep ' | ||
+ | WIDTH=`cat filea|cut -d ' | ||
+ | HEIGHT=`cat filea|cut -d ' | ||
+ | sleep 3 | ||
+ | echo " | ||
+ | Version=`xwit -all -print| grep -i xpaint | sed -e ' | ||
+ | echo " | ||
+ | pkill xpaint | ||
+ | dVersion=`echo $Version | sed ' | ||
+ | Version=$dVersion | ||
+ | if [ $Version -eq 2813 ] | ||
+ | then | ||
+ | Version=" | ||
+ | else | ||
+ | Version=" | ||
+ | fi | ||
+ | xpaint -24 -size ${WIDTH}x${HEIGHT} -nowarn -nomenubar $Version & #" | ||
+ | sleep 3 | ||
+ | toolID=`xwit -all -print | grep -i xpaint | sed -e ' | ||
+ | winID=`xwit -all -print | grep -i untitled| sed -e ' | ||
+ | focusWin=`xwit -id $winID -focus -raise -move 0 0` | ||
+ | focusTools=`xwit -id $toolID -focus -raise -move 0 0` | ||
+ | echo $toolID | ||
+ | echo $winID | ||
+ | echo "Width is $WIDTH" | ||
+ | echo " | ||
+ | sleep 4 | ||
+ | xpos=`echo $[($RANDOM % $WIDTH)]` | ||
+ | ypos=`echo $[($RANDOM % $HEIGHT)]` | ||
+ | size=`echo $[($RANDOM % 30)]` | ||
+ | echo $xpos | ||
+ | echo $ypos | ||
+ | echo " | ||
+ | shape=`echo $[($RANDOM % 2)]` | ||
+ | echo $shape | ||
+ | if [ $shape -eq 0 ] #Draw a triangle | ||
+ | then | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | fi | ||
+ | if [ $shape -eq 1 ] #Draw a Square | ||
+ | then | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | #xte ' | ||
+ | xte ' | ||
+ | fi | ||
+ | |||
+ | |||
+ | sleep 10 | ||
+ | pkill xpaint #same as before but this time making sure that I've finished | ||
+ | #xwit -lower -raise## | ||
+ | </ | ||
+ | ==References== | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | =====Cluster Construction===== | ||
+ | http:// | ||
+ | |||
+ | =====Server installation===== | ||
+ | Preparing the server and setting it up is most of the work. To start If you want to setup at your house, you will need [[http:// | ||
+ | ===Sources== | ||
+ | https:// | ||
+ | =====Playstation Linux==== | ||
+ | http:// | ||
+ | =====Video Construction Wall===== | ||
+ | http:// |