Archive for November 4th, 2007

Olivier’s Challenge : “Rule 30″ in LOGO



||| And now for something completely different :

rule30_large.gif

( Image : Courtesy of Weisstein, Eric W. , “Fibonacci Numbers” - From MathWorld - A Wolfram Web Resource )

rule 30 part

in|ad|ae|qu|at happily accepted Olivier’s challenge from one of his comments on our blog and hired an external consultant/ghostwriter/expert on the topic of Wolframs “A New Kind of Science” . Incidently , the author of this contribution explored the world of Stephen Wolfram’s Theory just recently in the context of algorithmic music generation , as described on the excellent webpage “Wolfram Tones” and the theoretical background page “How Wolfram Tones Work” which - and there we are at the CENTER OF THE TOPIC - , nicely explains the basics of those patterns , and “Rule 30″ in particular . Although Olivier’s Challenge was solved by other contributors much faster , we still want to entertain you with our musings from a dark , cold sunday afternooon . |||

rule 30 part Stephen Wolfram discovered that very complex cell evolution patterns can be derived from rather simple mathematical equations . This can be nicely demonstrated if one accepts three important constraints :

  1. quantize time in discrete steps ( this gives abrupt transitions from one state of a cell to the next )
  2. a cell has only two possible states ( White/Black , or One/Zero , or Foo/Bar , or Apple/Orange )
  3. the next state is dependant on the present state of a cell and it’s immediate neighbours to the left and right in an imaginary horizontal “line” of cells . |||

Wolfram found evidence that “m to the mth to the nth power” of possible results sets exist in a given configuration , for only 2 states and a Sequence of only 3 cells this gives the realistic number 256 . Most of those results are regular , but ” RULE 110 ” and ” RULE 30 ” have become so popular that a special interest was aroused .

Olivier Schmidt-Chevalier was a teacher for the LOGO programming language in a “previous life” , so it was natural for him to ask interested readers for SOLUTIONS TO THE “RULE 30″- pattern in this programming language . |||

rule 30 part Therefore , in|ad|ae|qu|at’s consultant polished up some deeply burried knowledge about PROGRAMMING AND BOOLEAN ALEGBRA , downloaded the FSM LOGO Installer , grabbed a pack of blank paper and a sharp pencil , and started up . ( It is also noteworthy at this point that the programming language CHUCK is very useful for such experiments in the alogrithmic music domain . )

OK , WHAT HAVE WE GOT ? - We know the TRUTH TABLE for the behaviour of individual cells within RULE 30 : The digit in the middle is our target cell , left and right to it there are its neighbours , the combination of those three should give us a SPECIFIC RESULT after the CALCULATION :
000=>0 , 001=>1 , 010=>1 , 011=>1 , 100=>1 , 101=>0 , 110=>0 , 111=>0
The VERBAL DESCRIPTION of THIS LOGIC is :

The next middle cell takes the state of its left neighbour only if the cell itself and its right neighbour are both 0 , otherwise its takes the opposite value of its left neighbour . |||

rule 30 part

NOW COMES THE TRICKY PART : Which BOOLEAN LOGIC can we use to COMBINE those three digits to give the result ? - You might still remember from high school that there are functions like AND , OR and XOR available .

To make it eazy , we NAME the three cells A , B and C , and SPLIT UP THE LOGIC TABLE in TWO parts , first combining B with C , and the result of this calculation is thrown on A . After some trial-and-error and by just staring at the truth tables for 30 minutes we found the SOLUTION :
( B OR C ) XOR A = D ( where D is the new cell ) |||

rule 30 part GREAT ! - HOW do we implement this in LOGO ? - HOW are the variables assigned , functions defined , loops nested … ? - We have never used LOGO before , so it was time for some research , which gave us the following SYNTAX ( sorry : the html format does not give proper TABs for indention and no , &bsp does not work in the Wordpress code editor ) :

to wolf30 :a :b :c
make “d1 bitor :b :c
make “d bitxor :a :d1
end

  • The KEYWORD “to” starts the DEFINITION of a PROCEDURE which we named “wolf30″ .
  • The VARIABLES a , b , c , have to be handed over to this procedure for it to actually work
  • d1 is only used as a TEMPORARY storage for the result of the FIRTST TRUTH TABLE ( the OR between B and C ) ,
  • D is the final result which we can use in our main loop . |||

rule 30 part

NOW WE KNOW HOW TO CALCULATE the NEW STATE of a SINGLE cell , but we STILL NEED a LOOP to calculate one LINE of cells ( - we choose 50 cells as a good value - ) . And we need this loop nested in another loop which gives us 25 rows of actual output !

The tool of the trade was using ARRAYS as storage containers for the cell lines .

  • We need an INPUT array for the variables A , B , C which we send to the procedure , and
  • an OUTPUT array to store the results and actually display those .

Do not forget to write back the OUTPUT array to the INPUT array after the calculation , REMEMBER : This is all about self-growing , CIRCULAR , geeky-looking algorithmic BEHAVIOUR ! |||

rule 30 part FIRST , we create the procedure “result” where we define the two arrays and fill them with ZERO , THEN we seed one active cell to the algorithm by setting the middle cell of the input array to ONE . ( Please note we had to create arrays of 52 elements and shift all the calculations around by +1 and -1 , otherwise the leftmost and rightmost cells would not have two neighbours … )

to result
make “input (ARRAY 52)
make “output (ARRAY 52)
repeat 52 [setitem repcount :input 0]
repeat 52 [setitem repcount :output 0]
setitem 26 :input 1
show :input
end

GREAT , we can show off our FIRST ARRAY , the input , just one lonely ONE in all those ZEROs ( click for full size ) :

input1.png

NOW we go for the INNER LOOP , which has to grab three adjacent cells , hand those over to the “wolf30″- PROCEDURE , and store the result value D in the cells of the output array . This loop has to RUN 50 TIMES .

“repcount” is a LOGO- built- in variable which carries the value of the very loop cycle we are in , we have to SHIFT this by +1 and -1 to get the vaules for the adjacent cells , N1 relating to left , N2 to middle , N3 to right . In the NEXT FOUR CODE- LINES we RETRIEVE the cell values from the input array and HAND them OVER to the “wolf30″ procedure via A , B and C :

repeat 50
[make "n repcount+1
make "n1 :n - 1
make "n2 :n
make "n3 :n + 1
make "a item :n1 :input
make "b item :n2 :input
make "c item :n3 :input
wolf30 :a :b :c
setitem :n :output :d
]

rule 30 part The NEXT and FINAL step is to EMBED this per-cell loop for one line INTO an OUTER LOOP which REPEATS this for 25 lines , shows us the RESULT after every calculation , as well as storing it back to the INPUT array for the next line :

repeat 25 [repeat 50 [ make....see above....]
show :output
repeat 52 [make "m item repcount :output
setitem repcount :input :m]
]

NOW we TYPE IN the MAGIC word “RESULT” to start the procedure , and - VOILÀ - we have SOLVED THE CHALLENGE ( click ) :

result.png

For your pleasure , HERE is the COMPLETE CODE right out of the FMSLogo Editor Window .

We humbly apologize that it is not the most elegant and optimized code on earth , but we are quite happy that we produced SOME WORKING CODE AT ALL :

code12.png

||| If you ARE STILL WITH US , THANK you for reading .

rule 30 partThis ENDS our little adventure into the worlds of LOGO , Stephen and Olivier for tonight .

PLEASE drive home safely and do not hesitate to ask Olivier some deep questions about LOGO … |||

Nach diesem HARD CORE wird es höchte Zeit für LETZTE LOCK ( er ) UNGEN : czz meldet sich wieder zu Wort und fordert Sie hiermit höflich auf , sich von Ihren KONSOLEN zu erheben , das Fenster zu öffnen und nach durchknobelter Nacht die frische Brise des Frühmorgens in Ihre erschöpften czz hörempfehlungBronchien strömen zu lassen .

Dazu OHREN AUF für musikalischen RELIEF . Aus Bogotà strömen die sachten Klangsachen des Keyborders / Producers Fredy Alvarez ( aka Smetenan aka FUNGITONIC & THE LOBERS auf uns her : Und für einmal ist das Schlagwort ALZHEIMER zu begrüssen . Für EIN MAL , für DIESES Mal . Denn die das scheibar Zart- Versponnene dieser Sounds trügt in zweierlei Weise : Zunächst ist im Verlauf der so zuckersüss Glasharmonisch anhebenden Suite eine allmähliche Aufrauhung zu bemerken . Da schabt und kratzt und rempelt es nicht eben wenig unter dem glatten Firnis der Oberfläche . Zum Andern besitzen Sounddesign und psychoakustische “HARMONIE”- Wirkungen eine - vom Titel indizierte - geradezu unheimliche Schattenseite . Der Eindruck des eigenartig Gedämpften , Wattierten mag durchaus auf jene ABSENT- MINDEDNESS verweisen , wie sie ein korrodierende Gedächtnis hervorbringt . Oder die Einwirkung starker Sedativa . - NICHTS DA also mit Romantik und einsamen Spaziergängen im Nebel : Was das kolumbianische Label SERIES in seiner CREATIVE- COMMONS- NET- ABTEILUNG ( SERIES N - Release 023 ) serviert , mag zwar freundlich klingen , wäre allerdings MITNICHTEN der geeignete MUZAK für Wellness- Tempel oder Artpraxenwartezimmer . THIS IS PSYCHO , pure and simple . Hören Sie zu , atmen Sie die Brise , und begrüssen sie eine weitere , vom Nahgedächtnis ZU VERSCHLINGENDE Woche . CLICK TRACKS TO LISTEN . 01. Sin toldo | 02. 5/4 | 03. Funcional ( reversión ) | 04. Mina Silvia | 05. Ser eso | 06. Despertar ( feat. Lupito ) | 07. Paisaje oriundo |||

Send post as PDF to PDF | PDF Creator | PDF Converter

Blog 4 Burma | New Net- Shutdown



|||

  1. VORBEMERKUNG : BLOG 4 BURMA
  2. SHUTDOWN , RELOADED
  3. ENTLASSUNGEN : ORTSBILDPFLEGE FÜR UN- VERHANDLER GAMBARI ?
  4. PNHEIROS PESSIMISMUS
  5. FORDERUNGEN HUMAN RIGHTS WATCH
  6. SHUTDOWN , REVISITED
  7. LINKS
  8. EXTENDED QUOTES

||| VORBEMERKUNG : BLOG 4 BURMA

czz icon blog4burmaDie Vielzahl der Quellen ( Internationale Medien , unabhängige Quellen , Blog , NGOs , UN- Materialien ) macht - ebenso wie die Abwägung der diversen Meinungen , expliziten wie unausgesprochenen Agenden - die Notwendigkeit einer vernetzten Beobachtung der Lage in Burma bewusst . Wir haben das Unterfangen eines SELBST ORGANISIERENDEN Netzwerks von Blog- “Korrespondenten” in unserem Posting BLOG 4 BURMA | CALL 4 COOPERATION dargelegt .

Wer also Interesse hat , seine Beobachtungen in das Netzwerk EINZUBRINGEN , möge sich bitte bei blog4burma [ at ] gmail [ dot ] com melden und kurz ein Themengebiet , Beobachtungsfeld oder Medien- Genre umreissen , welches er einigermassen kontinuierlich ( alle 10 - 14 Tage ) “bearbeiten” möchte . |||

||| SHUTDOWN , RELOADED

Erneut hat die Junta am 2. 11. - also einen Tag VOR Eintreffen des UN-Sondergesandten Ibrahim Gambari - offenbar die Weiten des WWW auf überschaubare Ausmasse herunter gedimmt : L’accès à Internet de nouveau interrompu en Birmanie , titelt Le Monde nach einem Bericht der AFP . Andres als beim ersten Shutdown Ende September - angeblich einem untererseeischen Kabelbruch geschuldet - , spricht ein Verantwortlicher der staatlichen Telekommunikatinsgesellschaft Myanmar Teleport jetzt von einem defekten Gateway : Seit Donnerstag Vormittag kommen die User lediglich an lokale Seiten heran und man könne nicht sagen , wann die “Panne” behoben sein werde ( 1 ) . |||

||| ENTLASSUNGEN : ORTSBILDPFLEGE FÜR UN- VERHANDLER GAMBARI ?

czz icon blog4burmaIn ihrer charakteristischen Politik der willkürlichen Wechsel zwischen “Peitsche” und “Zuckerbrot” entliess die Regierung Donnerstag Abend 46 Personen ( weitgehend Mitglieder / Sympathisanten der oppositionellen National League for Democracy ) aus den Gefängnissen , zusätzlich zu anderen 120 , im Verlauf der Woche Freigelassenen .

Tabula Rasa und “Ortsbildpflege” , bevor sich mit dem Eintreffen des UN- Gesandten , der Fokus der “Öffentlichkeit” kurzfristig wieder auf Myanmar richtet ? - Immerhin bleibt Ibrahim Gambari bis 8 . November , um über Menschenrechte , Dialogmöglichkeiten und Einbindung der unter Hausarrest stehenden Friedensnobelpreisträgerin Daw Aung San Suu Kyi zu verhandeln . Der NLD bleibt ( laut DVOB , 4. 11. ) derweil lediglich die “Hoffnung” auf ein Treffen .

Inzwischen ist Gambari ( laut IHT , 3. 11. ) in die Junta- Burg Naypyitaw geflogen , ohne freilich davon in Kenntnis gesetzt worden zu sein , wen er dort treffen und sprechen würde ( 2 ) . |||

||| PNHEIROS PESSIMISMUS

Gambaris Aufenthalt soll am 17. November gefolgt werden von einem Besuch des UN- Sonderberichterstatters über Menschenrechte in Burma , Paolo Sergio Pinheiro . Die Informationsseite des Exil- Parlaments ( NCGBUB ) zitiert Pinheiro wie folgt :

“What annoys me is that the repression had not stopped in a single moment, despite the universal appeal by the Human Rights Council, and the statement of the President of the Security Council,” Pinheiro said. He also said he did not believed the motivation for recent protests was political, noting that the initial spur for the monks to get involved was an attack on a monastery for which the government refused to apologise. “I refuse to believe that the march of the monks was a prelude to revolution in Myanmar,” he said. Pinheiro will offer his recommendations to the Human Rights Council on his return.

Also Alles nicht so Schwarz- Weiss , wie es uns angenehm wäre ? - “Safran- Revolution” versus Militär- Junta ?! - Die protestierenden Mönche nicht als pittoreske Avant- Garde einer Revolution , sondern lediglich Verteidiger ihrer Partikularinteressen ? - Aber Achtung : Das sind lediglich Suggestionen , welche die Exil- Demokraten nahelegen . |||

||| FORDERUNGEN HUMAN RIGHTS WATCH

czz icon blog4burmaSeitens Burma Campaign und Soros’ Burma Project gibt es keine weitere Aufklärung , die ASSISTANCE ASSOCIATION FOR POLITICAL PRISONERS IN BURMA ( AAPP ) schweigt , Human Rights Watch Burma fordert Gambari dazu auf , das Regime zur Etablierung “strukturierter Demokratisierungsverhandlungen mit Oppositionsparteien und Vertretern der Zivilgesellschaft” zu bewegen ( 3 ) . Weitere Forderungen :

  • Immediately release all persons detained for exercising their rights to free expression, association and assembly, including during the recent unrest;
  • Promptly begin a genuine process of dialogue with all political parties, representatives of Burma’s many ethnic groups, social and political activists, the Buddhist clergy, and other civil society groups, on political, social and economic conditions in Burma;
  • Cease military attacks targeting ethnic minority populations throughout the country; and,
  • End unnecessary or excessive restrictions on the operations of international humanitarian aid agencies, including UN agencies and international relief organizations. ( Human Rights Watch Burma)

Die Zeichen stehen nicht gerade günstig , da die Junta noch am Vorabend des Gesandtenbesuchs darauf erpicht war , den lokal stationierten UN- Koordinator , Charles Petrie , wegen unlauteren Kritizismus hinaus zu werfen . |||

||| SHUTDOWN , REVISITED

Nachzulesen ist die via OpenNet Initiative lancierte Aanalyse des vorigen Netz- Shutdown in Burma : Pulling The Plug - A Technical Review of the Internet Shutdown in Burma ( Bulletin ) ( pdf ) ( referiert u. a. von Hugo Martin und Netzpolitik ) . Der Beschreibung von Rolle und Funktion der www- Netzwerke bei der ( selbst- ) Organisation von Protest- und Bewegung folgt eine Chronik der offenbaren online Zensur von 29. September bis 13. Oktober .

Vorangegangen war freilich eine fortschreitende Filterung interaktiver Dienste , von Youtube und blogspot bis hin zu den via Netz einsehbaren internationalen und Exil- Medien ( 4 ) . Die entwicklungsökonomisch und strukturbedingte Tatsache , dass eine Vielzahl von Web- Aktivitäten nur via Internet- Cafés vollzogen werden kann , schränkt den Handlungsraum zusätzlich ein .

Zur Erinnerung - und zur geschärften Beobachtung des DIESMALIGEN Shutdown- Ablaufs , reproduzieren hier noch einmal das Schaubild der Chronik des VORANGEGANGENEN .

Burma Web Shutdown 09 29 10 13 opennet init ( OpenNet Initiative ) |||

||| LINKS

Blog4Burma

Quellen

Kontexte | Personen

Organisationen

||| EXTENDED QUOTES

( 1 ) “Les utilisateurs d’Internet ne peuvent accéder qu’à des sites locaux. Pour les sites Web et les e-mails avec l’étranger, l’Internet ne fonctionne pas depuis jeudi matin, a indiqué un responsable des télécommunications d’Etat, Myanmar Teleport. La passerelle de connexion est en panne” et “nous ne savons pas encore quand elle sera rétablie”. ( Le Monde , AFP )

Parallèlement à cette coupure d’Internet, le régime militaire a procédé, jeudi soir, à la libération de 46 personnes, principalement des membres de la Ligue nationale pour la démocratie (LND), le parti du Prix Nobel de la paix Aung San Suu Kyi. Ces personnes avaient été arrêtées en août et en septembre, lors du mouvement de protestation. Au cours de la semaine écoulée, au moins 165 personnes ont été libérées mais, selon Nyan Win, porte-parole de la LND, des dizaines de membres restent emprisonnés. ( L’accès à Internet de nouveau interrompu en Birmanie , Le Monde , AFP , 2. 11. )

( 2 ) Expected to be high on Gambari’s agenda is the junta’s accusation that the U.N. Resident Coordinator Charles Petrie went beyond his duties by criticizing the regime’s failure to meet the economic and humanitarian needs of its people, and by saying this was the cause of September’s mass pro-democracy protests, which were violently put down by the government.

The military has said 10 people were killed in the crackdown, but diplomats and dissidents say the death toll is much higher. Thousands of people were detained. The junta gave foreign diplomats and U.N. representatives a note saying the government did not intend to continue Petrie’s assignment in the country.

A U.N. press release said Gambari, who would “stay in Myanmar as long as necessary to accomplish his mission,” met with Petrie after his arrival. Gambari carried a message of support for Petrie from U.N. Secretary-General Ban-Ki Moon as well as one to junta head Senior Gen. Than Shwe, it said. ( UN envoy seeks talks between Myanmar military and pro-democracy opponents , International Herald Tribune , 3. 11. )

( 3 ) The United Nations special envoy on Burma should demand that the military government commit to the creation of a structured mechanism for negotiations with opposition parties and civil society on a quick transition to civilian rule, Human Rights Watch said today. ( Burma: Fully Cooperate with UN Envoy , Human Rights Watch Burma , 2. 11. )

( 4 ) The Burmese government has near-complete control over broadcast and print media. All domestic radio and television stations are state-owned and controlled. While more than 100 print publications are now privately-owned, the Ministry of Information limits licensing to media outlets that agree to print only approved material and submit to vigorous advance censorship by its Press Scrutiny and Registration Division. The Printers and Publishers Registration Law is prodigious in scope, prohibiting the printing of anything “detrimental” to the state, “any descriptions which though factually correct, are unsuitable because of the time or circumstances of their writing”, and “any criticism of a non-constructive type of the work of government departments.” According to the UN Special Rapporteur on Burma, journalists seeking to write about a government ministry must name their source and obtain a letter of authorization from the ministry concerned before publication.

Within this heavily controlled traditional media environment, the Internet has provided a limited means for free expression. With an upper estimate of just under 300,000 Internet users in 2005, Burma is one of thirty countries that has less than 1 percent Internet penetration. Nonetheless, the Internet had begun to enhance a bi-directional flow information and communication for many Burmese, especially the educated, urban elite. In recent years, Burmese have begun receiving information from overseas via basic Internet services such as blogs, chat, forums, and email. As a relatively cheap communication tool, much of the value of Internet is based on the availability of overseas Web sites and Internet services. These internationally hosted services also offer a means to communicate more securely.

Most users access the Internet at Internet cafés, which have witnessed an “explosion of usage,” especially in Rangoon. Anecdotally, it appears that nearly all Internet cafés have installed foreign-hosted proxy sites or servers and other circumvention tools. The ‘G-lite revolution’, one of the names for the incipient movement of citizen journalists feeding information overseas, is coined after a proxy site for accessing Gmail (glite.sayni.net) that is reportedly ubiquitous in Burmese cyber cafés and “resides” on hundreds of servers inside Burma. Citizen journalists and bloggers were actively uploading images and updates in the approximately 200 Internet cafés still open in the days before the Internet was shut down completely.
The ‘G-lite revolution’ depended on small-scale technologies in order for Burmese to be able to circumvent the firewall and gain access to the most basic of Internet services. ONI confirmed that both Burmese ISPs have blocked many of the more prominent circumvention tools, including Proxify, Guardster, and Anonymizer. Gmail, Yahoo! Mail, Hushmail, and mail2web were blocked by both ISPs, while MPT took the precaution of blocking thirteen additional e-mail sites, including Hotmail and Fastmail. ( For Footnotes - here omitted for tehnical reasons - go to the source : OpenNet Initiative : Bulletin Pulling The Plug - A Technical Review of the Internet Shutdown in Burma )

|||

Send post as PDF to PDF | PDF Creator | PDF Converter