--
You received this message because you are subscribed to the Google Groups "codeswarm" group.
To post to this group, send email to code...@googlegroups.com.
To unsubscribe from this group, send email to codeswarm+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/codeswarm?hl=en.
personally i found just doing limited svn log & converting to xml pieces
i need to fully work for me :)
i haven't checked all the emails to list lately, so maybe my biggest
problem with codeswarm has been mentioned already - although probably not.
and that's "developer circles" all gravitating towards the center of the
area and piling on top of each other... has anybody found a way to
specify sort of a minimum distance between developer nodes ?
...
--
Rich
There are also, ShowHistory (histogram), ShowDate (in bottom right
corner), and ShowEdges (draws line between nodes)
Here's my config for a project I'm working on at work:
# This is a sample configuration file for code_swarm (rictic)
# Frame width
Width=1280
#Width=640
#Width=1920
# Frame height
Height=762
#Height=480
#Height=1080
# Input file
InputFile=data/data.xml
#Font Settings
Font=SansSerif
FontSize=10
BoldFont=SansSerif
BoldFontSize=14
# Particle sprite file
ParticleSpriteFile=particle.png
# Project time per frame
#MillisecondsPerFrame=21600000
# Optional Method instead of MillisecondsPerFrame
FramesPerDay=10
MaxThreads=8
# Background in R,G,B
Background=0,0,0
# Color assignment rules
# Keep in order, do not skip numbers. Numbers start
# at 1.
#
# Pattern: "Label", "regex", R,G,B, R,G,B
# Label is optional. If it is omitted, the regex
# will be used.
#
ColorAssign1="Dojo",".*/dojo.*", 226,18,255, 226,18,255
ColorAssign2="Ajax",".*/ajax/.*", 255,0,0, 255,0,0
ColorAssign3="Components",".*/components/.*", 255,121,40, 255,121,40
ColorAssign4="Docs",".*/docs/*", 0,255,0, 0,255,0
ColorAssign5="S1000D",".*/S1000D/.*|.*/s1000d/.*", 255,192,40, 255,192,40
ColorAssign6="2361C",".*/2361C.*|.*/2361c.*", 192,255,240, 192,255,240
ColorAssign7="Sage",".*/sage/.*|.*/sagebundle/.*", 132,255,48, 132,255,48
ColorAssign8="HPUX",".*/hpux/.*", 48,70,255, 48,70,255
ColorAssign9="cgi-bin",".*/cgi-bin/.*", 127,249,255, 127,249,255
ColorAssign10="Data",".*/data/*", 152,127,255, 152,127,255
ColorAssign11="Libs",".*/lib/.*", 141,62,255, 141,62,255
ColorAssign12="Images",".*/icons/.*|.*/img/.*|.*\.gif|.*\.png",
244,255,118, 244,255,118
ColorAssign13="Web",".*/templates/.*|.*/css/.*|.*/wwwroot/.*",
255,118,214, 255,118,214
# Save each frame to an image?
TakeSnapshots=true
# Where to save each frame
SnapshotLocation=frames/frame-#####.png
# Draw names (combinatory) :
# Draw sharp names?
DrawNamesSharp=true
# And draw a glow around names? (Runs slower)
DrawNamesHalos=false
# Draw files (combinatory) :
# Draw sharp files
DrawFilesSharp=false
# Draw fuzzy files
DrawFilesFuzzy=true
# Draw jelly files
DrawFilesJelly=false
# Show the Legend at start
ShowLegend=true
# Show the History at start
ShowHistory=false
# Show the Date at start
ShowDate=true
# Show edges between authors and files, mostly for debug purpose
ShowEdges=false
# Turn on Debug counts.
ShowDebug=false
# Natural distance of files to people
EdgeLength=35
# Amount of life to decrement
EdgeDecrement=-2
FileDecrement=-2
PersonDecrement=-1
#Speeds.
#Optional: NodeSpeed=7.0, If used, FileSpeed and PersonSpeed need not be set.
#
FileSpeed=7.0
PersonSpeed=1.0
#Masses
FileMass=1.0
PersonMass=100.0
# Life of an Edge
EdgeLife=250
# Life of a File
FileLife=225
# Life of a Person
PersonLife=255
# Highlight percent.
# This is the amount of time that the person or
# file will be highlighted.
HighlightPct=5
## Physics engine selection and configuration
# Directory physics engine config files reside in.
PhysicsEngineConfigDir=physics_engine
# Force calculation algorithms ("PhysicsEngineLegacy",
"PhysicsEngineSimple"...) :
#PhysicsEngineSelection=PhysicsEngineMaxwellsDemon
PhysicsEngineSelection=PhysicsEngineOrderly
#Is the input xml sorted by date? It's faster and uses much less
memory if it is
IsInputSorted=true
UseOpenGL=false
GravatarFallback=wavatar
AvatarSize=25
on the commandline for unix timestamp :
date -d@<timestamp>
these also seem to include milliseconds, so for this specific case it
might be :
> date -d@1131165012
Sat Nov 5 06:30:12 EET 2005
note the timezone and dst differences !
> I'm sure there's enough info in this thread now for you to make many
> tests with this!!
>
> Hope it works and don't hesitate to document your experience!
>
> Take care!
>
> bp84
...
--
Rich
Anyway, with plain old bash, say you want to use a variable $cs_time
to store various xml dates to check a few times in the shell via reverse
history search, or to build into a script. The code swarm event
xml uses three extra zeros compared to shell epoch time. This might
be a java or python thing. They probably want to be able to specify
dates later than the year 2286. so that's why the ${xxx:0:10} stuff
is in the following.
(You can also use 'date -f some_file_of_cs_dates' on a bunch at once
instead of 'date-d'.)
$ cs_time=1131165012000
$ #
$ # locale time
$ date -d @${cs_time:0:10}
Fri Nov 4 21:30:12 MST 2005
$ #
$ # universal time
$ date -ud @${cs_time:0:10}
Sat Nov 5 04:30:12 UTC 2005
$ #
$ # You can add formatting too. See man date.
$ #
$ date -ud @${cs_time:0:10} +%F
2005-11-05
$ date -ud @${cs_time:0:10} +'%F %X'
2005-11-05 04:30:12 AM
$ #
$ # current locale epoch time for comparison
$ date +%s
1291189351
Hope that helps. Thanks for sharing your experiences and enthusiasm
about codeswarm in this thread.
--
wmw
note that 'date' is not bash builtin. osx either has some bsd variant of
it, or maybe outdated gnu one (see --version output). but that's a bit
offtopic for this list :)
> Honestly if it wasn't for the fact that I can't enable the UseOpenGL
> option in code_swarm I would be using all of this in WinXP(more on
> openGL later on) because it's my main machine. But only OSX allows me
> to use OpenGL and has the terminal I like to use! I find using command
> prompt in windows to be such a pain really. Unix is so great compared
> to that!
>
> Anyways I digress,
> Thank you guys!
>
> Have a nice day!
...
--
Rich