Main

January 29, 2008

Backwards Bush

I took this text from a speech by the current President Bush and reversed it in an effort to see if he sounds better talking backwards. You know, he might or at least there's no difference.

.you Thank.

it achieve to can I all doing to committed am I and, goal important that shares leader each know I. year this of end the by, happen can and, happen should agreement peace The. Israel of people the of security the to contribute will it and, region the of stability the enhance will it And. it deserve people Palestinian The. overdue long is Palestine of state the of establishment The.

security s'Israel to commitment steadfast s'America reaffirm I. terror of born be will state Palestinian no and agreement No. fundamental is Security.

walk to chosen have we road the is that but, peace to road the on challenges difficult most the of one be will issue this to solution a finding that understand fully I. concerns religious and political felt deeply have sides Both. issue tough a is Jerusalem know I.

infrastructure terrorist dismantling and terrorists confronting includes that side Palestinian the On. outposts unauthorized removing and expansion settlement ending includes that side Israeli the On. negotiations status final the prejudices or obligations map road contravenes that activity any undertake should party Neither. map road the of implementation to subject is agreement any of implementation that leader each to reaffirm I.

issue refugee the resolve to, compensation including, mechanisms international new and state Palestinian a of establishment the to look to need we believe I. contiguous and viable is state Palestinian the that ensure to and realities current reflect to 1949 of lines armistice the to adjustments agreed mutually require will them between agreement peace any that believe I, decide to parties both for issue an is territory While. sides both by concessions political painful require will agreement an Achieving.

parties both of interests mutual the in are state Palestinian the for viability and Israel for Security. agreement successful a to key is objectives fundamental s'other the satisfying that understands side each that vital is It.

independent and, sovereign, contiguous, viable is Palestine of state the that ensure must they And. borders defensible and, recognized, secure has Israel that ensure must negotiations These. people Jewish the for homeland a is Israel as just, people Palestinian the for homeland a as Palestine establish must agreement The. 1967 in began that occupation the to end an be should There: clear seems vision this realize to negotiations status permanent for departure of point The.

it achieve to solution negotiated a at arrive to determined are and peoples their of interest the in is outcome the that believe leaders these of Both. security and peace in side by side living, Palestine and Israel, states democratic two of vision the leaders two these with share I.

lead will -- convinced am I -- and, must and, can who ones the are they because, meetings summit regular their continue to leaders two the of decision the supported strongly I. now right starting, seriously negotiate teams their sure make to leaders both upon called I. negotiating of business the to down getting are sides both, tracks three these to addition In.

overdue long is that step a, Israel to out reach to countries Arab the upon call I and, initiative peace League Arab the for appreciation my reiterate I, Third. community international the and, region the, Israel of help the need they, that do to And. institutions security and political their and economy their build to need Palestinians the, Second. map road the under commitments their fulfill to need sides both, First. tracks parallel four on made be to needs progress that Abbas President and Olmert Minister Prime both to underscored I.

choices difficult make to time the is now and, meetings good very had We. Land Holy the to here trip my during hospitality their for Abbas President and Olmert Minister Prime thank, first, to like d'I. afternoon Good

Heres the code:

// Reverse Words
// Daniel Shiffman
// Programming from A to Z, Spring 2007

import java.io.*;
import java.nio.*;
import java.nio.channels.*;


public class ReverseWords {
public static void main (String[] args) throws IOException {

// Create an input stream and file channel
// Using first arguemnt as file name to read in
FileInputStream fis = new FileInputStream("Bushy.txt");
FileChannel fc = fis.getChannel();

// Read the contents of a file into a ByteBuffer
ByteBuffer bb = ByteBuffer.allocate((int)fc.size());
fc.read(bb);
fc.close();

// Convert ByteBuffer to one long String
String content = new String(bb.array());

// This line uses a regular expression which we haven't learned yet
// '\\b' means split the text along word boundaries
// We will cover this in more detail next week
String[] words = content.split("\\b");
System.out.println("Read " + words.length + " words from " + "Bushy.txt");
StringBuffer reverse = new StringBuffer();
for (int i = words.length-1; i >= 0; i--) {
String word = words[i];
reverse.append(word);
}

String output = reverse.toString();

// Create an output stream and file channel to write out a report
// (Also print out report to screen)
FileOutputStream fos = new FileOutputStream("BackBushy.txt");
FileChannel outfc = fos.getChannel();

// Convert content String into ByteBuffer and write out to file
bb = ByteBuffer.wrap(output.getBytes());
outfc.write(bb);
outfc.close();

System.out.println("Reversed text written to " + "BackBushy.txt");

}
}