Getting jzebra to print using sample files on ESC/P printer - epson

I need some assistance trying to execute a demo print from jzebra to an ESC/P printer (epson tm88iv). I don't believe I am using the correct methods, but am wondering if anyone has sample text/data to use for the sample2.html file?

You will likely need to use esc/p formatted commands. Hit up the jzebra mailing list jzebra-users#googlegroups.com. Or download the proper programmers guide from the epson website.

Related

How can I write the code to open an app without entering a specific username

How can I write os.getlogin to open an app like zoom using the code given below
subprocess.Popen('C:\\Users\\srini\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe')
I first tried this
subprocess.Popen('C:\\Users\\', os.getlogin, '\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe')
The code is running but the app is not being opened by python
I had imported subprocess and os
I tried this code too just to see that if it works
os.path.join(os.path.expandvars("%userprofile%"),"AppData", "Roaming", "Zoom", "bin", "Zoom.exe")
But it's still the same
Is there any way to open and app without writing the path or a way that makes this task easier?
👆👆👆👆👆👆👆
I want to write this code for almost all apps on my laptop so are there any codes that can help me in the way mentioned in the above question
BTW I am a beginner and I know few codes, so plz help me understand this.
I think you are on the right track using os.getlogin(). You can also use getlogin.getuser() or os.getenv('username').
Look at this method to create your path.
path = os.path.join("c:\\Users",os.getlogin(), "AppData", "Roaming", "Zoom", "bin", "Zoom.exe")
subprocess.Popen(path)
or in one line with f-strings
subprocess.Popen(f"c:\\Users\\{os.getlogin()}\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe")

Need specifications for .olm file format

Does anybody know where I can get technical specifications for the .olm file produced by Outlook for Mac? I know there are conversion utilities but I need to write my own code for this.

Building a Character Generator

I'm looking to build a character generator for 5th edition dungeons and dragons, just as a side project. However what i don't know is which language to use. so far Ive narrowed down that i need a language that can successfully export out to a PDF, so that variables submitted to the program get passed and the character sheet can be print. any suggestions?
many languages should be able to handle this for you. the first question i would ask yourself is what language are you most fluent in?
for me that would be php so i would end up doing this project in a combination of html/js/php.
i have used fpdf for generating pdf that either output to the browser, save to the server, or trigger a download. ( http://www.fpdf.org/ )
fpdf was pretty easy to pick up following the examples.

Which encryption tool is creating file extension .$#!

I want to ask you whether you know which encryption tool is creating file extension $#! I encrypted few years ago some files which I need now, but I do not know which tool I used :-( Unfortunatelly google did not help. Therefore I am here.
Thanks for your help in advance!
Cryptext. (as seen here and here)

Saving PDF files with Chickenfoot

I'm writing a web-crawler using Chickenfoot and need to save PDF files. I can either click the link on the page or grab the PDF's URL and use
go("http://www.whatever.com/file.pdf")
and I get the firefox "Opening file.pdf" dialog box, but can't click the "OK" button to actually save the file.
I've tried using other means to download the files (wget, python's urllib2, twill), but the PDF files are gated so none of those will work.
Any help is appreciated.
This example of how to save a target in the Mozilla developer documents looks like it should do exactly what you want. I've tested a Chickenfoot example that is very similar that gets the temp environment variable, and that worked well for me in Chickenfoot.
https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIWebBrowserPersist#Example
You might have to play with the application associations in Tools, Options, Applications to make sure the action is set to Save File, but those settings might not apply to these functions.
End Answer, begin related grumblings...
I sure wish someone would fix the many bugs in Chickenfoot, and write a nice Cookbook programming guide. I've been using it for years, and there are still many basic things I've not been able to figure out how to do. I finally broke down and subscribed to the mailing list, as the archives have some decent script examples. It takes a lot of searching through the pdf references, blogs, etc. as the web API reference is very sparse.
I love how simple Chickenfoot can make automating some tasks, but it takes me days of searching javascript, DOM, and Firefox documents to find ways to do some of the things it can't, since I'm not really a web programmer. The goal of Chickenfoot seems to be that I shouldn't have to be, but unfortunately few are refining the proof of concept, as MIT has dropped the project.
I tried to do this several ways using only Chickenfoot commands and confirmed they don't work with the latest Firefox 3 and Chickenfoot 1.0.7.
I hope this helps! Good luck. Sorry I only ran across your question yesterday, but found it too interesting to leave alone.
You won't be able to click on Firefox dialogs for the sake of security.
The best way to download the content of a URL is to read then write the content of the URL.
// Chickenfoot 1.0.7 Javascript Code to download the content of a url.
include( "fileio.js" ); // enables the write function.
var url = "http://google.com",
saveFileTo = "c://chickenfoot-google.com";
write( saveFileTo, read( url ) );
You might find it helpful to use jquery with chickenfoot.
http://groups.csail.mit.edu/uid/chickenfoot/scripts/index.php?title=Using_jQuery,_jQuery_UI_and_similar_libraries
This has worked for me to save Excel files from NCES portal.
http://muaz-khan.blogspot.com/2012/10/save-files-on-disk-using-javascript-or.html
I was using Firefox 3.0 and the "old syntax" version of the code. I also stripped code intended for IE and "(window.URL || window.webkitURL).revokeObjectURL(save.href);" which generated an error.

Resources