Skip to content

Instantly share code, notes, and snippets.

View lite1979's full-sized avatar

Lite lite1979

  • QZ Industries, LLC
  • Buffalo, NY 14216
View GitHub Profile
[DEBUG] 2016-07-12 11:40:02,418 @ qz.ws.PrintSocketClient:?
Message: {"call":"printers.find","promise":{},"params":{"query":"88"},"timestamp":1468338002412,"uid":"kts46o"}
[WARN] 2016-07-12 11:40:02,424 @ qz.ws.PrintSocketClient:?
Bad signature on request
[INFO] 2016-07-12 11:40:03,015 @ qz.common.TrayManager:?
Allowed localhost to access connected printers
[DEBUG] 2016-07-12 11:40:03,016 @ qz.printer.PrintServiceMatcher:?
Searching for PrintService matching 88
[DEBUG] 2016-07-12 11:40:03,017 @ qz.printer.PrintServiceMatcher:?
private void appendStarSlices(ByteArrayBuilder builder) {
/* Loop through and convert format */
int widthBytes = (int)((getWidth() + 7) / 8);
int heightBytes = (int)((getHeight() + 7) / 8);
int x = 0;
int y = 0;
int bit = 0;
int byteVal = 0;
boolean[] imgData = getImageAsBooleanArray();
2016-12-03 19:18:45,135 [INFO] Running in headless mode
2016-12-03 19:18:45,237 [DEBUG] Executing: [uname, -a]
2016-12-03 19:18:45,248 [DEBUG] Executing: [gconftool-2, --get, /desktop/gnome/shell/windows/theme]
2016-12-03 19:18:45,278 [DEBUG] Executing: [grep, dark_bg_color, /usr/share/themes/Ambiance/gtk-3.0/gtk.css]
2016-12-03 19:18:45,285 [DEBUG] Executing: [grep, dark_bg_color, /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css]
2016-12-03 19:18:45,313 [INFO] Main properties file /opt/qz-tray/qz-tray.properties
2016-12-03 19:18:45,315 [DEBUG] Executing: [certutil, -d, sql:/home/lite/.pki/nssdb, -A, -t, TC, -n, QZ Industries, LLC, -i, /opt/qz-tray/auth/qz-tray.crt]
2016-12-03 19:18:45,648 [ERROR] Could not start tray manager
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1321)
2016-12-07 14:17:56,057 [INFO] Connection closed: 1001 - null
2016-12-07 14:17:56,083 [INFO] Closing all communication channels for localhost
2016-12-07 14:17:56,489 [INFO] Connection opened from /0:0:0:0:0:0:0:1:52575 on socket port 8182
2016-12-07 14:17:56,630 [DEBUG] Message: {"certificate":"-----BEGIN CERTIFICATE-----\nMIIFAzCCAuugAwIBAgICEAIwDQYJKoZIhvcNAQEFBQAwgZgxCzAJBgNVBAYTAlVT\nMQswCQYDVQQIDAJOWTEbMBkGA1UECgwSUVogSW5kdXN0cmllcywgTExDMRswGQYD\nVQQLDBJRWiBJbmR1c3RyaWVzLCBMTEMxGTAXBgNVBAMMEHF6aW5kdXN0cmllcy5j\nb20xJzAlBgkqhkiG9w0BCQEWGHN1cHBvcnRAcXppbmR1c3RyaWVzLmNvbTAeFw0x\nNTAzMTkwMjM4NDVaFw0yNTAzMTkwMjM4NDVaMHMxCzAJBgNVBAYTAkFBMRMwEQYD\nVQQIDApTb21lIFN0YXRlMQ0wCwYDVQQKDAREZW1vMQ0wCwYDVQQLDAREZW1vMRIw\nEAYDVQQDDAlsb2NhbGhvc3QxHTAbBgkqhkiG9w0BCQEWDnJvb3RAbG9jYWxob3N0\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtFzbBDRTDHHmlSVQLqjY\naoGax7ql3XgRGdhZlNEJPZDs5482ty34J4sI2ZK2yC8YkZ/x+WCSveUgDQIVJ8oK\nD4jtAPxqHnfSr9RAbvB1GQoiYLxhfxEp/+zfB9dBKDTRZR2nJm/mMsavY2DnSzLp\nt7PJOjt3BdtISRtGMRsWmRHRfy882msBxsYug22
var config = qz.configs.create("Epson TM88V");
// The QR data
var qr = 'https://qz.io';
// The dot size of the QR code
var dots = '\x09';
// Some proprietary size calculation
var size1 = String.fromCharCode(qr.length + 3);
[DEBUG] 2017-06-16 11:07:38,404 @ qz.printer.PrintServiceMatcher:?
Searching for PrintService matching 88
[DEBUG] 2017-06-16 11:07:38,405 @ qz.printer.PrintServiceMatcher:?
Found 9 printers
[DEBUG] 2017-06-16 11:07:38,405 @ qz.printer.PrintServiceMatcher:?
Found match: 88
[TRACE] 2017-06-16 11:07:38,406 @ qz.printer.action.PrintRaw:?
Sending print job to printer
[DEBUG] 2017-06-16 11:07:38,408 @ qz.printer.action.PrintRaw:?
PrintEvent on sun.print.UnixPrintJob@3894f6dc
[DEBUG] 2017-06-16 11:07:33,835 @ qz.printer.PrintServiceMatcher:?
Found match: 88
[DEBUG] 2017-06-16 11:07:37,895 @ qz.ws.PrintSocketClient:?
Message: {"call":"print","promise":{},"params":{"printer":{"name":"88"},"options":{"colorType":"color","copies":"1","density":"","duplex":false,"fallbackDensity":null,"interpolation":"","jobName":"","margins":"0","orientation":"","paperThickness":"","printerTray":"","rasterize":false,"rotation":"0","scaleContent":true,"size":null,"units":"in","altPrinting":false,"encoding":"","endOfDoc":"","perSpool":"1"},"data":[{"data":"\nPRINTED WITH QZ2.1.0-RC1.\n\n\n\n\n\n"}]},"timestamp":1497625657892,"uid":"f07fm5"}
[WARN] 2017-06-16 11:07:37,899 @ qz.ws.PrintSocketClient:?
Bad signature on request
[ERROR] 2017-06-16 11:07:37,906 @ qz.utils.FileUtilities:?
Cannot setup file blocked (Shared)
java.io.IOException: No such file or directory
Fri Jul 21 2017 14:26:42 GMT-0400 (EDT): PAPER_OUT: Level FATAL, StatusCode 16, From HLL2380DW, CUPS string media-needed
Fri Jul 21 2017 14:26:42 GMT-0400 (EDT): UNKNOWN_STATUS: Level FATAL, StatusCode 33554432, From HLL2380DW, CUPS string cups-waiting-for-job-completed
Fri Jul 21 2017 14:26:27 GMT-0400 (EDT): UNKNOWN_STATUS: Level FATAL, StatusCode 33554432, From HLL2380DW, CUPS string cups-waiting-for-job-completed
Fri Jul 21 2017 14:26:25 GMT-0400 (EDT): OK: Level INFO, StatusCode 0, From HLL2380DW, CUPS string none
Fri Jul 21 2017 14:26:25 GMT-0400 (EDT): OK: Level INFO, StatusCode 0, From HLL2380DW, CUPS string none
Fri Jul 21 2017 14:26:24 GMT-0400 (EDT): OK: Level INFO, StatusCode 0, From HLL2380DW, CUPS string none
Fri Jul 21 2017 14:26:24 GMT-0400 (EDT): OK: Level INFO, StatusCode 0, From HLL2380DW, CUPS string none
Fri Jul 21 2017 14:26:23 GMT-0400 (EDT): OK: Level INFO, StatusCode 0, From HLL2380DW, CUPS string none
Fri Jul 21 2017 14:26:23 GMT-0400 (EDT): OK: Level INFO, StatusCode 0, From HLL238
[INFO] 2017-08-24 23:48:18,233 @ qz.common.TrayManager:?
Allowed localhost to listen for printer status
[WARN] 2017-08-24 23:48:18,254 @ qz.printer.status.CupsUtils:?
Ending CUPS subscription #647
[DEBUG] 2017-08-24 23:48:20,631 @ qz.ws.PrintSocketClient:?
Message: {"call":"printers.getStatus","promise":{},"timestamp":1503632900628,"uid":"hayuw2"}
[WARN] 2017-08-24 23:48:20,631 @ qz.ws.PrintSocketClient:?
Bad signature on request
[DEBUG] 2017-08-24 23:48:24,276 @ qz.ws.PrintSocketClient:?
Message: {"call":"printers.getStatus","promise":{},"timestamp":1503632904274,"uid":"34p038"}
@lite1979
lite1979 / zpl.txt
Created September 27, 2017 04:15
ZPL prints 19 times?
"^XA\n",
"^LH215,5\n",
"^CF0,35,25\n",
"^FO15,30^FDHST-B-015^FS\n",
"^FO15,75^FDBLACK^FS\n",
"^FO15,120^FD^FS\n",
"^FO15,155^GB350,1,1^FS\n",
"^CF0,25,20\n",
"^FO15,170^BY1\n",
"^FB350,5,,L\n",