Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
 
(38 intermediate revisions by the same user not shown)
Line 52: Line 52:
* [[File:Slideruletute.pdf]] tutorial
* [[File:Slideruletute.pdf]] tutorial


== Software Freedom Day Melbourne 2010 ==
== Presentations - Software Freedom Day Melbourne ==
[[File:Softwarefreedomday10.pdf]] presentation
[[File:Softwarefreedomday10.pdf]] presentation


http://luv.asn.au/sfd2010/ photos
http://luv.asn.au/sfd2010/ photos
[[File:Olpc-rotary.odp]]
[[File:Ictev11.odp]]


== Sea Surface Temperature Mapping ==
== Sea Surface Temperature Mapping ==
Line 164: Line 168:


  chmod 777 ~/Activities
  chmod 777 ~/Activities
chmod 777 ~/Activities -r    #contents too?


unprotects the directory but it is still hidden, in the file manager <i>nautilus</i> check show hidden files
unprotects the directory but it is still hidden, in the file manager <i>nautilus</i> check show hidden files
To automate this every time Gnome starts, add the following 2 commands to System, Preferences, Startup applications
  rm .hidden
  chmod 777 Activities


==Enabling debug output==
==Enabling debug output==
Line 175: Line 186:
  echo gnome > /home/olpc/.olpc-active-desktop
  echo gnome > /home/olpc/.olpc-active-desktop
and restart
and restart
==Setting the clock==
From firmware, using the internet, networkname is your modem/router eg DLINK
ok  essid networkname
ok  ntp-set-clock pool.ntp.org
ok  .clock
Worked despite timeout message
or http://wiki.laptop.org/go/Fix_Clock#Reprogram_the_time.2Fdate


==Text dungeon==
==Text dungeon==
A text dungeon game for literacy and numeracy
A text dungeon game for literacy and numeracy
Most of this page transferred to [[Activities/Textdungeon]] , just the command line version here


[[File:Text dungeon.jpg|300px]]
[[File:Text dungeon.jpg|300px]]


(Will transfer this page to Activities/Textdungeon if it gets to a working version.)
The dungeon [[File:Sampledungeon.doc | description file]]
 
[[File:Textdungeon.doc | the program]] is a version of the program's Python code which works from the command line
 
[[File:Textdungeon1.xo]] is a Sugarised install bundle, works Sugar 0.88 - 0.92
 
[[File:Textdungeon2.xo]] Sugar compliant icon, do not load sample file if resuming, backspace supported, journal entry saves progress)
 
 
===Keyboard commands===
h - help
 
f - forward
 
r - right
 
l - left
 
b - list backpack contents


The dungeon [[File:Sampledungeon.doc | description file]] description file is plain text and can be edited with the Write Activity. It is purposefully unencrypted and easily edited. 'Cheating' by reading or altering the dungeon is encouraged.
p item - pick up item


[[File:Textdungeon.doc | the program]] the program's Python code works from the command line
d item - drop item


[[File:Textdungeon1.xo]] is a Sugarised install bundle, works Sugar 0.88 - 0.92
u item - use item
 
q - quit
 
 
==1.75 accelerometer ==
[[File:Screenshot of sugar-activity 3 axis.png|300px]]
 
The vertical axis is raw reading/4 so 1G=250
 
[[File:Turtle Art Activity 3 axis.ta]]
 
 
==Screenshots in Sugar==
===Simple screenshot===
To take screenshots press Alt 1
 
This will capture the screen but not the mouse cursor
 
===Screenshot with cursor===
To also capture the mouse cursor, install gnome-screenshot. Type the following in Terminal:


The intention is that children would both play and create dungeons to develop math, literacy and problem solving skills:
sudo yum install gnome-utils


Playing the game
You can then start the interactive version of gnome-screenshot:
gnome-screenshot --interactive


* visualise 2D spaces (could extend to 3D or even 4D)
[[File:Gnome-screenshot.png|350px]]
* navigate compass directions N E S W and relationship to right, left
* text literacy
* can include subject related content
* problem solving


Making/editing/reading a dungeon file
Check that you have the right options selected and that 'Include pointer' is selected, then click Take Screenshot. Do not navigate away to the screen you want the screenshot of because you will be unable to navigate back to the utility. At this point we are just checking that the options are correct.


* all the above plus
[[File:Gnome-screensh-2.png|350px]]
* Cartesian coordinates
* variables
* word processing skills
* programming like skills
* create in any language


===Dungeon file format===
Select a suitable save location such as 'Documents' and click Save.
[l,room x,room y] your location


[i, item, item ....] your inventory
Now you are ready to take a screenshot. Start gnome-screenshot from Terminal with a suitable delay, eg. 2 seconds


[u,room x, room y, item, room x, .....] location of items
gnome-screenshot -d 2


[d,room x, room y, direction, locked, room x, .....] status of wall/door segments, unlisted segments are locked, doors can be asymmetric
Immediately go to the screen you wish to capture, position the cursor where you want it, get the menus etc. as you want them and wait for the dialog box. Click Save. (Later versions of Sugar allow you to access the saved file in Documents but the folder contents are not updated, you may need to switch between Journal and Documents to see the updated file listing.)


[r,room x,room y,direction,item which unlocks,open text,closed text,text when opening]  one entry for each unlockable door
==Miscellaneous_Technical_Notes==
http://wiki.laptop.org/go/User:Kevgor/Miscellaneous_Technical_Notes


[[File:Sampledungonmap.jpg]]
==GIT and patches==
===GIT local repository===
sudo install git


For example, the Sampledungeon represented above is described by these strings
clone the git of the Turtle, in a terminal, make:
[u,0,0,lamp,0,1,key,1,1,sword,1,0,princess] #key in room 0,1 , sword in room 1,1 ,princess room 1,0


[d,0,0,0,0,0,1,2,0,0,1,1,1,1,1,2,1,1,1,3,0,1,0,0,0] #room 0,0 north door open, room 0,1 east door locked etc
git clone  git://git.sugarlabs.org/turtleart/mainline.git


===Keyboard commands===
In the mainline folder there are all turtle's files..
h - help


f - forward
===Patch===
sudo yum install patch
or
sudo yum install patch --nogpg


r - right
Should be a "raw patch" link (eg. 2b4ecb0cc7095f47fc944c54512e055c21537ab5.patch)


l - left
1. Save that page as a file into ~/Activities/TurtleArt.activity  (eg patching Turtle Art)


b - list backpack contents
2. From terminal run the patch command as follows:


p item - pick up item
patch -p1 < 2b4ecb0cc7095f47fc944c54512e055c21537ab5.patch


d item - drop item
That is it. (Note, you should be able to use autocomplete when typing
the command line by hitting tab after typing the first few letters of
the patch file name.)


u item - use item


q - quit
[[Activities/Butialo]]
[[Features/Parental_controls]]