Difference between revisions of "User:ThorstenStaerk"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk m (Reverted edits by 188.143.234.155 (talk) to last revision by ThorstenStaerk) |
||
(23 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
This is the user page of Thorsten. Nothing [http://www.linuxintro.org/index.php?title=User:ThorstenStaerk here]. Better go [http://www.staerk.de/thorsten there]. | This is the user page of Thorsten. Nothing [http://www.linuxintro.org/index.php?title=User:ThorstenStaerk here]. Better go [http://www.staerk.de/thorsten there]. | ||
− | == | + | = Lego Cybermaster = |
+ | I have a Lego Cybermaster. It is not Lego Mindstorms. The software delivered for it does not work on wine. | ||
− | + | == Disclaimer == | |
+ | Here are my notes for writing an article on Lego Mindstorm, err, Cybermaster: | ||
− | == wiki2mindmap | + | According to http://tldp.org/HOWTO/Lego/intro.html#AEN28 Lego asks for keeping some policies [http://www.lego.com/info/fair.asp here] but I cannot find any. |
+ | |||
+ | == Links == | ||
+ | * http://linux.softpedia.com/progDownload/LEGO-RCX-Download-46173.html | ||
+ | * http://tldp.org/HOWTO/Lego/index.html | ||
+ | * http://bricxcc.sourceforge.net/nqc/ | ||
+ | * http://smallsystems.isn-oldenburg.de/smallrobots/cyb-rcx.html | ||
+ | * http://comet.lehman.cuny.edu/stjohn/teaching/legos/lab1.html | ||
+ | * http://smallsystems.isn-oldenburg.de/smallrobots/rcx_prog.html | ||
+ | |||
+ | == Log == | ||
+ | nqc -1 -S/dev/ttyS0 -firmware firm0309.lgo | ||
+ | Downloading firmware: | ||
+ | Problem talking to IR device | ||
+ | linux-qgla:~ # nqc -TCM -S/dev/ttyS0 -firmware firm0309.lgo | ||
+ | Downloading firmware: | ||
+ | No reply from CyberMaster | ||
+ | |||
+ | = wiki2mindmap = | ||
<pre> | <pre> | ||
− | #!/bin/bash | + | #!/bin/bash |
− | wget http://www.linuxintro.org/wiki/Special:Allpages | + | wget http://www.linuxintro.org/wiki/Special:Allpages |
− | cat >spider<<EOF | + | cat >spider<<EOF |
− | #!/usr/bin/perl | + | #!/usr/bin/perl |
− | require HTML::LinkExtor; | + | require HTML::LinkExtor; |
− | \$p = HTML::LinkExtor->new(\&parse, ""); | + | \$p = HTML::LinkExtor->new(\&parse, ""); |
− | sub parse { | + | sub parse { |
− | my(\$tag, %links) = @_; | + | my(\$tag, %links) = @_; |
− | my (\$att, \$url) = @{[%links]}; | + | my (\$att, \$url) = @{[%links]}; |
print "\$url\ | print "\$url\ | ||
− | "; | + | "; |
− | } | + | } |
− | \$p->parse_file(\$ARGV[0]); | + | \$p->parse_file(\$ARGV[0]); |
− | EOF | + | EOF |
− | chmod 777 spider | + | chmod 777 spider |
./spider Special\:Allpages | \ | ./spider Special\:Allpages | \ | ||
− | grep "^/" | \ | + | grep "^/" | \ |
− | grep -v ":" | \ | + | grep -v ":" | \ |
− | grep -v "?" | \ | + | grep -v "?" | \ |
while read a | while read a | ||
do wget "http://www.linuxintro.org/$a" | do wget "http://www.linuxintro.org/$a" | ||
Line 37: | Line 57: | ||
grep -v "?" | \ | grep -v "?" | \ | ||
grep -v "Main_Page" | \ | grep -v "Main_Page" | \ | ||
− | grep -v " | + | grep -v "Feedback" | \ |
grep -v "/Contribute$" | \ | grep -v "/Contribute$" | \ | ||
grep -v "^/Projects$" | \ | grep -v "^/Projects$" | \ | ||
Line 52: | Line 72: | ||
sed "s;^/.*/;;" | \ | sed "s;^/.*/;;" | \ | ||
while read file2 | while read file2 | ||
− | do echo "\"$file\" -> \"$file2\"" | + | do if [ x"$file" != x"$file2" ]; then echo "\"$file\" -> \"$file2\"" ; fi |
done | done | ||
done >datei | done >datei | ||
Line 62: | Line 82: | ||
dot -Tps -o graph.ps graph.dot | dot -Tps -o graph.ps graph.dot | ||
+ | convert graph.ps graph.jpg | ||
</pre> | </pre> |
Latest revision as of 19:05, 24 November 2015
This is the user page of Thorsten. Nothing here. Better go there.
Lego Cybermaster
I have a Lego Cybermaster. It is not Lego Mindstorms. The software delivered for it does not work on wine.
Disclaimer
Here are my notes for writing an article on Lego Mindstorm, err, Cybermaster:
According to http://tldp.org/HOWTO/Lego/intro.html#AEN28 Lego asks for keeping some policies here but I cannot find any.
Links
- http://linux.softpedia.com/progDownload/LEGO-RCX-Download-46173.html
- http://tldp.org/HOWTO/Lego/index.html
- http://bricxcc.sourceforge.net/nqc/
- http://smallsystems.isn-oldenburg.de/smallrobots/cyb-rcx.html
- http://comet.lehman.cuny.edu/stjohn/teaching/legos/lab1.html
- http://smallsystems.isn-oldenburg.de/smallrobots/rcx_prog.html
Log
nqc -1 -S/dev/ttyS0 -firmware firm0309.lgo Downloading firmware: Problem talking to IR device linux-qgla:~ # nqc -TCM -S/dev/ttyS0 -firmware firm0309.lgo Downloading firmware: No reply from CyberMaster
wiki2mindmap
#!/bin/bash wget http://www.linuxintro.org/wiki/Special:Allpages cat >spider<<EOF #!/usr/bin/perl require HTML::LinkExtor; \$p = HTML::LinkExtor->new(\&parse, ""); sub parse { my(\$tag, %links) = @_; my (\$att, \$url) = @{[%links]}; print "\$url\ "; } \$p->parse_file(\$ARGV[0]); EOF chmod 777 spider ./spider Special\:Allpages | \ grep "^/" | \ grep -v ":" | \ grep -v "?" | \ while read a do wget "http://www.linuxintro.org/$a" done for file in $(ls --ignore="*:*") do ./spider $file | \ grep "^/" | \ grep -v ":" | \ grep -v "?" | \ grep -v "Main_Page" | \ grep -v "Feedback" | \ grep -v "/Contribute$" | \ grep -v "^/Projects$" | \ grep -v "^/Development$" | \ grep -v "^/Policies$" | \ grep -v "^/Projects$" | \ grep -v "^/Projects/NamingTheWiki$" | \ grep -v "^/Schedules$" | \ grep -v "^/favicon.ico$" | \ grep -v "/opensearch_desc.php$" | \ grep -v "^/$" | \ grep -v ".png$" | \ grep -v "^/Development/Tutorials$" | \ sed "s;^/.*/;;" | \ while read file2 do if [ x"$file" != x"$file2" ]; then echo "\"$file\" -> \"$file2\"" ; fi done done >datei echo "# to create a ps file use 'dot -Tps -o graph.ps graph.dot' (dot it part of the graphviz package)" > graph.dot echo "digraph \"Wikimap\" { " >> graph.dot cat datei >>graph.dot echo "}" >> graph.dot dot -Tps -o graph.ps graph.dot convert graph.ps graph.jpg