Changeset 73 in projects
- Timestamp:
- Jul 26, 2013, 11:33:55 AM (11 years ago)
- Location:
- paper-tape-project/trunk
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
paper-tape-project/trunk/documentation/index.php
r72 r73 114 114 'The Paper Tape Project' => array( 115 115 'Start' => $doc.'/paper-tape-project.htm', 116 'In a nutshell' => $doc.'/in-a-nutshell.htm',116 'In a nutshell' => 'in-a-nutshell.htm', 117 117 'Abstract' => array( 118 'Subproject overview' => $doc.'/README.txt',119 'To Do' => $doc.'/TODO.htm',120 'Using Windows' => $doc.'/WINDOWS.txt',118 'Subproject overview' => 'README.txt', 119 'To Do' => 'TODO.htm', 120 'Using Windows' => 'WINDOWS.txt', 121 121 ), 122 'Data' => $doc.'/daten/README.htm',123 'Perl tools' => $doc.'/perl-tools/README.htm',122 'Data' => 'daten/README.htm', 123 'Perl tools' => 'perl-tools/README.htm', 124 124 'Labeling and Fonts' => array( 125 'Generating Labels' => $doc.'/schriften/README.htm',126 'Font Files' => $doc.'/schriften/font_files.htm'125 'Generating Labels' => 'schriften/README.htm', 126 'Font Files' => 'schriften/font_files.htm' 127 127 ), 128 128 'Devices' => array( 129 'Facit Tape Punch' => $doc.'/driver/FACIT-MANUAL.txt',130 'Ghielmetti Tape Reader' => $doc.'/reader/GHIELMETTI-MANUAL.txt'129 'Facit Tape Punch' => 'driver/FACIT-MANUAL.txt', 130 'Ghielmetti Tape Reader' => 'reader/GHIELMETTI-MANUAL.txt' 131 131 ), 132 132 'Driver framework' => array( 133 'Legacy reader documentation' => $doc.'/reader/README.txt',134 'Legacy puncher documentation' => $doc.'/puncher/README.txt',135 'Legacy old puncher documentation' => $doc.'/userspace-driver/README.txt'133 'Legacy reader documentation' => 'reader/README.txt', 134 'Legacy puncher documentation' => 'puncher/README.txt', 135 'Legacy old puncher documentation' => 'userspace-driver/README.txt' 136 136 ), 137 'Visualisation' => $doc.'/visualisator/README.htm',137 'Visualisation' => 'visualisator/README.htm', 138 138 'Web Frontend' => array( 139 'Abstract' => $doc.'/web-frontend/README.htm',140 'Generating Paper Tapes online!' => $doc.'/web-frontend/'139 'Abstract' => 'web-frontend/README.htm', 140 'Generating Paper Tapes online!' => 'web-frontend/' 141 141 ) 142 ), 143 /* 142 ),/* 144 143 'The Punch Card Project' => array( 145 144 'Start' => 'punch-card/README.htm', … … 148 147 'Nixdorf 0377.01' => 'punch-card/driver/nixdorf-0377.01/README.htm' 149 148 ) 150 ), 151 */ 149 ),*/ 152 150 'Various' => array( 153 151 'Using PCI I/O cards' => $doc.'/parallel-port-card.htm' … … 172 170 </div> 173 171 <div id="content"> 172 173 <div class="box" id="outdated" style="background-color: #FEF2E0; border-color: #775E1C; color: #403E3E; font-size: 140%; line-height: 150%; margin-bottom: 40px;"> 174 <h3 style="margin-top: 0; font-size:180%">The Punched Paper Project website has moved.</h3> 175 This website is from 2008 and the information is most likely quite outdated. 176 Please see the <a href="http://labs.technikum29.de/">technikum29 Labs</a> for the new website. 177 You might also want to check the <a href="http://www.technikum29.de">technikum29 Computer Museum main website</a>. 178 <br> -- Sven, July 2013 179 </div> 180 174 181 <?php 175 182 call_user_func($exec_action, $filename);#, $exec_array); … … 184 191 <a href="http://koeppel.homeunix.org">koeppel.homeunix.org</a> 185 192 </div> 193 -
paper-tape-project/trunk/visualisator/Makefile
r20 r73 10 10 11 11 cli: cli.c lochstreifen.o 12 $(CC) $(CAIRO_CFLAGS) $^ $(CAIRO_LIBS) - o $@12 $(CC) $(CAIRO_CFLAGS) $^ $(CAIRO_LIBS) -lm -o $@ 13 13 14 14 gtkpapertape.o: gtkpapertape.cc gtkpapertape.h … … 34 34 35 35 clean: 36 rm - v *.o cli gtk36 rm -fv *.o cli gtk -
paper-tape-project/trunk/visualisator/cli.c
r18 r73 249 249 int x, color; // iterators 250 250 long color_value[4]; // interpreted numbers 251 char *buf= "xy"; // Buffer for strtol <- one color value252 251 char buf[3] = "xy"; // Buffer for strtol <- one color value 252 253 253 // remove a "#" char if present 254 254 if(string[0] == '#') … … 260 260 // copy the current character to buffer, first position 261 261 buf[0] = string[x]; 262 262 263 // if short notation (shorter than AABBCC), dublicate 263 264 // current character to buffer second position, else … … 267 268 color_value[color] = strtol(buf, NULL, 16); 268 269 } 269 270 DPRINTF("Allocating '%s' as #% x%x%x%x\n", string,271 color_value[0], color_value[1], color_value[2], (color == 4) ?color_value[3] : 0xFF);272 270 271 DPRINTF("Allocating '%s' as #%02x%02x%02x%02x\n", string, 272 (unsigned int) color_value[0], (unsigned int) color_value[1], (unsigned int)color_value[2], (color == 4) ? (unsigned int) color_value[3] : 0xFF); 273 273 274 return cairo_pattern_create_rgba( 274 275 (double) color_value[0] / (double) 0xFF, … … 415 416 } 416 417 417 lochstreifen_print_debug(l);418 exit(0);418 if(verbosity!=0) 419 lochstreifen_print_debug(l); 419 420 420 421 // setting up the surface and painting... -
paper-tape-project/trunk/visualisator/lochstreifen.c
r22 r73 940 940 cairo_user_to_device(cr, &x, &y); 941 941 cairo_user_to_device_distance(cr, &width, &height); 942 printf("draw: %i|%i %ix%i ", (int)x, (int)y, (int)width, (int)height);943 } else printf("draw: ");944 printf("row %i->%i track %i->%i\n", row, row_max, track_min, track_max);942 //printf("draw: %i|%i %ix%i ", (int)x, (int)y, (int)width, (int)height); 943 } //else printf("draw: "); 944 //printf("row %i->%i track %i->%i\n", row, row_max, track_min, track_max); 945 945 946 946 // loop all the rows (bytes) … … 998 998 } 999 999 1000 printf("testing byte\n");1000 //printf("testing byte\n"); 1001 1001 if( ((l->data[row] >> track) & 0x01) != 0x01) { 1002 1002 // bit is logical ZERO (0) -
paper-tape-project/trunk/web-frontend/design/formular.js
r1 r73 28 28 29 29 // 2. Submit abänder 30 /* 30 31 var button = document.getElementById("submit-button"); 31 32 button.setAttribute("type", "button"); 32 33 button.setAttribute("onclick", "new POST().submitForm(document.forms[0], getHttpRes);"); 34 */ 35 $(function(){ 36 // 2013: auf jquery umgestiegen von Teleport 37 $("form").submit(function(){ 38 $.post($("form").attr("action"), $("form").serialize(), getHttpRes); 39 return false; // Da per jquery 40 }); 41 }); 33 42 34 43 // 3. und dieses Teleport-Teil starten 35 Init.run('BODY');44 // Init.run('BODY'); 36 45 } 37 46 … … 58 67 59 68 69 /* 60 70 function getHttpRes(msg, state, extra){ 61 71 // Ajax-Antwort kriegen, mit diesem Teleport-Teil 62 72 if(state != __RPC_SUCCESS__) return alert("Konnte nicht zu Server verbinden!"); 73 */ 74 function getHttpRes(data, textStatus, jqXHR) { 75 // Ajax-Antwort kriegen, mit diesem Teleport-Teil 76 //if(state != __RPC_SUCCESS__) return alert("Konnte nicht zu Server verbinden!"); 77 63 78 64 79 // nachricht checken: 65 if( msg== "ok") {80 if(data == "ok") { 66 81 // weitermachen. Formular abschicken! 67 82 document.getElementById('ajax-output').innerHTML = "<div class='big-okay'>Alle Eingaben richtig, Lochstreifen wird erstellt...</div>"; … … 77 92 } else { 78 93 var forword = "<p>Es sind Fehler in den Eingaben aufgetreten, daher kann der Lochstreifen noch nicht erstellt werden. Bitte berichtigen sie diese Fehler und klicken sie dann nochmals auf \"Lochstreifen generieren\"</p>\n"; 79 document.getElementById('ajax-output').innerHTML = forword+ msg;94 document.getElementById('ajax-output').innerHTML = forword+data; 80 95 var button = document.getElementById("submit-button"); 81 96 button.setAttribute("value", "Nochmal probieren & Lochstreifen generieren..."); -
paper-tape-project/trunk/web-frontend/generator.php
r6 r73 30 30 31 31 // Konstanten: 32 $draw_program = "../visualisator/ binary";32 $draw_program = "../visualisator/cli"; 33 33 34 34 // Ausgabeordner (ohne trailing slash) … … 132 132 } 133 133 exit; 134 } 135 136 // Schritt 0: Ausgabeverzeichnis pruefen 137 if(!file_exists($output_dir)) { 138 if(is_writeable($output_dir)) { 139 mkdir($output_dir); 140 } else 141 $errors[] = "Ausgabeverzeichnis <i>$output_dir</i> nicht anlegbar!"; 134 142 } 135 143 -
paper-tape-project/trunk/web-frontend/index.html
r1 r73 1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE html> 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> 1 4 <!-- 2 5 /* … … 27 30 */ 28 31 --> 29 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"30 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">31 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">32 32 <html> 33 33 <head> … … 35 35 <link rel="stylesheet" href="http://dev.technikum29.de/src/private.design/style.css" type="text/css"/> 36 36 <link rel="stylesheet" href="design/formular.css" type="text/css"/> 37 <script type="text/javascript" src="design/teleport_post.js"></script> 37 <!--<script type="text/javascript" src="design/teleport_post.js"></script>--> 38 <script type="text/javascript" src="design/jquery.js"></script> 38 39 <script type="text/javascript" src="design/formular.js"></script> 39 40 <meta name="date.initial" value="02.04.2008"/> … … 94 95 <img src="design/beschriftung.jpg" alt="Echter Lochstreifen mit Beschriftung" style="float:right;" /> 95 96 <strong>Text generieren</strong> 96 <br/>Mit dem Eingeben von Buchstaben wird das entsprechende Bitmuster – wie im Bild gezeigt –generiert.97 <br/>Mit dem Eingeben von Buchstaben wird das entsprechende Bitmuster, wie im Bild gezeigt, generiert. 97 98 </label>: 98 99 <br/><input type="text" maxlength="500" name="data-text" /> … … 351 352 <p>Diese Online-Lochstreifenvisualisierung obliegt gewisser Beschränkungen (maximal 1MB Datenmenge, die 352 353 visualisiert wird). Mit der Offline-Variante gibt es diese Beschänkungen nicht. Und so sieht sie aus:</p> 353 <p style="text-align:center;"><img src="design/screenshot.png" alt="Screenshot des GTK-PRogramms" ></p />354 <p style="text-align:center;"><img src="design/screenshot.png" alt="Screenshot des GTK-PRogramms" /></p> 354 355 <p>Es handelt sich um ein <a href="http://www.gtk.org" target="_blank">GTK-Programm</a>, welches 355 356 genau das gleiche System nutzt, wie diese Onlineversion. Sie vereint alle Möglichkeiten, die das
Note: See TracChangeset
for help on using the changeset viewer.