>On 14/11/2012 23:21, Max Muir wrote:
>> On Wednesday, November 14, 2012 2:32:11 PM UTC-8, DVH wrote:
>>> On 14/11/2012 22:06, Max Muir wrote:
>>>
>>>> On Tuesday, November 13, 2012 11:45:08 AM UTC-8, DVH wrote:
>>>
>>>>> Stuff is really moving fast now.
>>>
>>>>> What will we tell the children?
>>>
>>>>
>>>
>>>> I told mine how to programme.
>>>
>>>
>>>
>>> I do think that's much of the answer.
>>
>> I hope so.
>
>Here they have code clubs attached to schools. It's non-complex stuff
>(they usually run something called Scratch) but it seems to teach
>sensible basics.
I've been doing that here; amazing. I started with Alice to introduce
the idea of programming, then moved the Java. I did a stint at Wintriss
Technical School in Del Mar - the kids were intimidatingly intelligent
and helpfully pointed out all my mistakes as I went along.
There is an annual robot competition here, with simple races, a maze-
running trial and finally a random obstacle course. The kids
programmed various algorithms to make Roomba robots tootle around
these courses.
http://iaroc.org/
>Gove has uprooted the curriculum and schools are now offering a real
>computer science GCSE.
>
>> As you say, everything is changing!
>>
>>> That and lots of experiences.
>>
>> Maybe European robots will compete with Asian robots for jobs.
>>
>> "Blinking sinobots staying over there and taking all are jobs".
>
>They ought to unionise and lobby the EU.
Yes, and programmers will become the new Masters
(evil laughter).
>>> <snipped>
>>>
>>>
>>>
>>>> There's a Singularity fillum coming out next year.
>>>
>>>>
>>>
>>>>
http://www.youtube.com/watch?v=j1p0_R8ZLB0
>>>
>>>
>>>
>>> 01010100011010000110000101110100001000000110110001
>>>
>>> 10111101101111011010110111001100100000011101100110
>>>
>>> 01010111001001111001001000000110010101111000011000
>>>
>>> 11011010010111010001101001011011100110011100100000
>>>
>>> 001110100010110100101001
>>
>> 010010010111010000100000011001000110111101100101011100110010000100100000001000000101011101101111011011100110010001100101011100100010000001101001011001100010000001000100011010010111001001101011001000000110010001000010001000000111011101101111011101010110110001100100001000000110110001101001011010110110010100100000011010010111010000101110001000000010000001010111011000010111001101101110001001110111010000100000011010000110010100100000011010010110111001110100011011110010000001110100011010000110000101110100001000000111001101101111011100100111010000100000011011110110011000100000011101000110100001101001011011100110011100111111
>
>Dirk disappeared, which is a shame.
>
>I think he felt he could be more influential commenting on newspaper sites.
>
>I still occasionally notice him around the place getting plenty of
>upvotes. We trained him well...
Yes; smart guy that. He was at
newscientist.com for a while.
>>>> Perhaps it will eclipse my disappointment of PROMETHEUS with a
>>>
>>>> greater disappointment. I mean; how did that octopus thing get so
>>>
>>>> large in 30 minutes?
>>>
>>>>
>>>
>>>> 010000100110010101110011011101000010000001110111
>>>
>>>> 011010010111001101101000011001010111001100101100
>>>
>>>> 0010000001001101011000010111100000101110
>>
>> 01010100011000010110101101100101011100110010000001100001001000000110110001101111011101000010000001101111011001100010000000110001011100110010000001100001011011100110010000100000001100000111001100100000011101000110111100100000011100110110000101111001001000000110000101101110011110010111010001101000011010010110111001100111001000000110010001101111011001010111001101101110001001110111010000100000011010010111010000111111
>>
>
>002201011022001012010200010202011020011022010121010220011002011000011111001012010201011010010202011021001122001012010122011100011022001012011022010202011020011002010121011020011111001012011001010121010222010202011021001012010220011022001012010121001012011000010220011022011022011000010202001012011001011010011020010202001012010202010200011010011002011010011001010220010200010121011000001020
>
21021021210201012101210011110021012210121110001012111002102001020210201101211022102021102011002101211102011111102010121012100021020210202110011102110121012111011110111102011010110111102010220101211102210202101210210110101102010121110011011110011012201112001112
package uk.politics.misc;
public class DVH {
final static int BLOCKSIZE = 6;
final static int RADIX = 3;
public static void main( String[] args ) {
DVH dvh = new DVH();
String data = "002112010012002200";
String z = dvh.ternaryToText( data );
System.out.println( z );
System.out.println( dvh.textToTernary( z ) );
}
public String textToTernary( String text ) {
StringBuffer sb = new StringBuffer();
for ( int i = 0; i < text.length(); i++ ) {
char ch = text.charAt( i );
sb.append( Integer.toString( ch, RADIX ) );
}
return sb.toString();
}
public String ternaryToText( String data ) {
StringBuffer sb = new StringBuffer();
for ( int i = 0; i < data.length(); i++ ) {
int m = i * BLOCKSIZE;
int n = (i + 1) * BLOCKSIZE;
if ( n >= data.length() ) {
n = data.length();
}
String block = data.substring( m, n );
if ( block.length() == 0 ) {
break;
}
int z = Integer.parseInt( block, RADIX );
sb.append( (char) z );
}
return sb.toString();
}
}