|
Daniel Pfeffer wrote: the only documentation is the source code. No comments, no nothing. C'mon, it's the challenge that makes it fun, no?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Oh, sure. It's the programming equivalent of building a bridge with no data on the thickness of the iron bars, the quality of the cement, etc. Great fun - until it all collapses.
/s
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
What, your first guess isn't spot on every time? Jeeze, what on earth is wrong with you?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
It only looks incomprehensible because you got your hands on the abbreviated document
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Isn't that something the driver should take care of? Wait - are you writing the driver? First step: Get an assembler, a C compiler and a webcam. The webcam is for your followers who will not want to miss a thing, especially all heart attacks and strokes you are going to suffer. I'll get the popcorn...
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Here's a much better way to print Sander Rossel:
++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>---.+++++++++++++.----------.+.+++++++++++++.<<++.>-.>---.++++..--------------.+++++++.
BrainElephant
|
|
|
|
|
When I tried it, I got an error...
Uncaught SyntaxError: expected expression, got '++'
Edit...
Oh that's not JavaScript.
|
|
|
|
|
Have done a few Zebra labels. Watch out for firmware levels. I ones created a nice label, different fonts, different barcodes, different orientation etc. On my test printer looked nice, on all others not.
Had to upgrade the firmware on all other printers (same model, old firmware) to get the same result.
Make sure the documentation fits the firmware.
|
|
|
|
|
Labelary have a pretty decent online viewer[^] and a web service[^] to generate an image from a ZPL string, if it helps.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
These printers usually support printing an image: compose a visual in WPF and send that.
That's how you print shipping labels from postal carriers (you retrieve an image from them via an account).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Gerry Schmitz wrote: These printers usually support printing an image: compose a visual in WPF and send that.
I've done similar with other label printers in UWP, and receipt printers in WPF. OTOH I've also had to print to receipt printers that were pure text only line printers; those you I did need to insert magic characters into the string sequence to make some things work. That was one part of the project I absolutely don't miss.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Doesn't look so hard. I have no idea about Zebra, but by my educated guessing I'd say ^XA and ^XZ enclose the document to be printed, and ^FD and ^FS enclose a single string to be printed. The rest probably indicates stuff like the font to be used and it's properties, such as size and style.
I've seen worse. *shrug*
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
:yawn:
How about programming for DEC LA-120 printers? And storing the codes in the SYSDEVCTL library?
|
|
|
|
|
Don't they have drivers? That's why the concept of a printer driver was invented - so you don't have to send a different set of bytes to each device to get it to output text for you.
This is a rhetorical question. Obviously they don't or you wouldn't have this headache.
However, you might find that someone has written some code to simplify this. I don't even want to start down that rabbit hole. I have enough weirdness going on.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Never had a problem with Zebra Printer. Simply installed it on windows and used the standard printer forms to print the labels
It does not solve my Problem, but it answers my question
Chemists have exactly one rule: there are only exceptions
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Sander Rossel wrote: I don't think I'm prepared for this Because you didn't read Don Quixote.
|
|
|
|
|
I think the last time I worked on a Zebra printer (or something that looks similar to what you posted) was around the 1980's when I was writing a custom print routine on a Commodore 64!
|
|
|
|
|
I had to print to these beasts for a while. What a pain.
|
|
|
|
|
Label printers are the bane of our existence. Every manufacturer has their own proprietary printer language.
You would think that in today's world they'd all be using Postscript.
There's a lot of off the shelf software that will take a label design and generate the correct instructions for the label printer.
What are you trying to do that requires you to dive into the coding of the label?
|
|
|
|
|
MFW I devote a huge amount of effort to create a developer tool that is poorly understood and not really used despite being very useful for what they were designed to do. 😔
I've tried to simplify my project, and simplify describing that project but it's like trying to simplify Roslyn. There's just too much there to be able to make it simple.
Oh well, I guess. I use it in my own code generation projects and it makes them heckin cool.
Do you ever write non-trivial tools that you swear by, but only you will probably ever use?
Real programmers use butterflies
|
|
|
|
|
Nah, I just write broken trivial tools thant no one will ever use.
|
|
|
|
|
I said non-trivial because I think most people have written little one-offs to accomplish a specific task
Real programmers use butterflies
|
|
|
|
|
yeah going to up vote that
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Oh yeah!
I have them too... Code generators, page designers, data randomizers... All for in-house use only...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
See, you're smarter than me because you're doing it for money.
Real programmers use butterflies
|
|
|
|