hatch summary
authorBill Erickson <berickxx@gmail.com>
Mon, 23 Apr 2018 19:47:11 +0000 (15:47 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 23 Apr 2018 19:47:11 +0000 (15:47 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
hatch-summary.adoc [new file with mode: 0644]
images/Hatch_Flow_Diagram.png [new file with mode: 0644]
images/hatch_print_config.png [new file with mode: 0644]

diff --git a/hatch-summary.adoc b/hatch-summary.adoc
new file mode 100644 (file)
index 0000000..cbfe8ef
--- /dev/null
@@ -0,0 +1,89 @@
+= Hatch Review
+:author: Bill Erickson, Software Development Engineer, King County Library System
+:email: berickxx@gmail.com
+:date: Evergreen Conference, 2018
+:duration: 10 
+:backend: deckjs
+:max-width: 45em
+:deckjs_theme: web-2.0
+
+== What Problem Does Hatch Solve?
+
+[source,js]
+---------------------------------------------------------------------------
+window.print();
+---------------------------------------------------------------------------
+
+== Hatch Architecture
+
+. Browser AngularJS Service egHatch (JavaScript)
+. Browser Extension (JavaScript)
+. Native Application (Java)
+
+== Hatch Message Flow
+
+image:images/Hatch_Flow_Diagram.png[Hatch Diagram]
+
+== JS Objects and JSON All The Way Down
+
+[source,js]
+---------------------------------------------------------------------------
+{
+    "action":"print",                 
+    "content":"<b>Hello, World!</b>", 
+    "contentType":"text/html",        
+    "showDialog":true,                
+    "msgid":10,                        
+    "from":"page",                     
+    "clientid":5319,                   // set by extension
+    "origin":"https://eg.example.org", // set by extension
+    "settings":{"context":"default","printer":"HP-Deskjet-5100", ...}
+}
+---------------------------------------------------------------------------
+
+== HatchInstaller.exe
+
+* Copies Hatch files into place (e.g. C:\Program Files (x86)\Hatch)
+* Creates Windows registry keys telling the browser how to find the files.
+* Installs the Chrome extension.
+
+== Verifying the Java Install
+
+[source,sh]
+---------------------------------------------------------------------------
+# Linux
+% ./hatch.sh test
+
+# Windows
+C:\Program Files (x86)\Hatch> hatch.bat test
+
+2017-03-29 13:52:21 FINEST MessageWriter sending: {"clientid":1,"origin":"https://test.hatch...
+2017-03-29 13:52:21 INFO   Using data directory: /home/berick/.evergreen
+2017-03-29 13:52:21 FINEST MessageReader read: {"clientid":1,"origin":"https://test.hatch....
+2017-03-29 13:52:21 INFO   Received message id=1 action=keys
+2017-03-29 13:52:21 FINEST MessageWriter sending: {"clientid":1,"msgid":1,"message":"OK",...
+2017-03-29 13:52:21 FINEST MessageReader read: {"clientid":1,"msgid":1,"message":"OK",...
+2017-03-29 13:52:21 INFO   TestJSON:doReceive(): {"clientid":1,"msgid":1,"message":"OK",...
+2017-03-29 13:52:22 FINEST MessageWriter sending: {"clientid":1,"origin":"https://test.hatch...
+...
+---------------------------------------------------------------------------
+
+== Hatch UI Recap
+
+ * Enable Hatch for Printing
+ * Configure Printers
+
+== Hatch Printing UI
+
+Administration => Workstation => Printer Settings
+
+image:images/hatch_print_config.png[Hatch Print Config]
+
+== What's Next?
+
+ * Firefox Support
+ * Using Hatch for printer negotiation only.
+ * Alternate Native Application Implementations
+  ** Render HTML
+  ** Communicate with printers
+
diff --git a/images/Hatch_Flow_Diagram.png b/images/Hatch_Flow_Diagram.png
new file mode 100644 (file)
index 0000000..fc0ff6c
Binary files /dev/null and b/images/Hatch_Flow_Diagram.png differ
diff --git a/images/hatch_print_config.png b/images/hatch_print_config.png
new file mode 100644 (file)
index 0000000..4bfe1a0
Binary files /dev/null and b/images/hatch_print_config.png differ