- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
You, sir, are the reason why maintainance programmers are simultaneously well-paid, never in danger of being hard up for work - and yet also suicidally depressed.
And let you be the last as well.Admin
That's easy - they're not migrating in the "convert the database" sense - they're migrating in the "let's have someone do stupendous amounts of data entry" sense.
Admin
Although possibly instead you should stamp it on your boss's forehead, since he's TRWTF in this situation, for agreeing to create a schedule before having a spec, for telling you to start working rather than slip the project and wait for the spec, for failing to kick up a fuss in inter-departmental meetings, failing to fight your corner, trying to please everyone and ending up overpromising instead of having the balls and spine to do his damn job and make a decision, and for generally being about as much use as tits on a bicycle.
Admin
I'm sorry, but did you actually read the quote of your text that was quoted? That's what I responded to. I'm not sure what it is you think I said, but it wasn't:
If you bothered to actually read the code at the page I linked it gives you the code to see how many print jobs are left in the queue.
For the sake of hilarity, I'll requote the statement you made that I was replying to:
The code I linked would give you the number of jobs left in the queue, which in turn would tell you exactly what you needed to know.
The reason people are bagging on you is not because of what you did 6 years ago, but because of how you still to this day claim the problem lied with the print drivers, or gremlins, or the position of the stars and there was nothing you could do about it. If there is one thing I've learned is there is ALWAYS another way.
Admin
Usually the printer can be set up ON THE PRINT SERVER to print everything FIFO and not let anyone set the priority for a print job. That's what I was trying to say, not too well.
Admin
Access... VSS...
Thanks, dude. Now the PTSD's back.
Admin
I'm sorry if I haven't made myself clear. The whole problem hinged around the fact that there was not a one-to-one correlation between what the print queue was telling me and what was coming out of the printer. Something was happening between those two points that was confusing the issue considerably. For that reason, the contents of the print queue would NOT tell me what was happening at the printer. I'm not a network/hardware expert, so I couldn't tell you exactly what was going on here, even if I remembered all the details.
It's possible that the code you provided would have worked perfectly. I don't know, since I can't recall all the issues involved. All I can remember is that I tried a lot of different things that should have worked, but for one reason or another did not, and I needed to find a workable solution so I could get back to a not-insubstantial backlog of projects.
Admin
This is default behavior for printers under windows and can be modified. Turn off "Print Spooled Documents First" and turn on "Print directly to the printer" to correct the issue of printing out of order. While it will turn off certain printer optimization features (i.e. it may wait on one job when another is ready to go, so it is considered sub-optimal), that is what was desired anyway, and the printer should still be limited by its own PPM in most cases.
Admin
... and then someone posted it on TDWTF Error'd.
Admin
Tried it. Didn't work.
Admin
Was the computer running the application directly connected to the printer, or was it on the network?
Did you turn on the setting on the print server too?
Admin
I hereby dub these sorts of coding practices "RubeG". It isn't a language, it isn't a coding style ... It's a way of life.
Admin
...'macros to VBA .... agonizingly slow JET database engine'
Access macros were already in vba. Horrible vba generated by the application , but vba nonetheless. Also, Jet wasn't slow.
Admin
I don't see any need for you to defend yourself, John. I think your solution is completely optimal - and so did management.
A programmer's instinct is to fix everything with code, but sometimes the user knows best.
Of course it would have been nice to fix the print queue, and there is a solution someone suggested, which if it works, might have been the right thing to do.... but chances are that when they upgrade/reinstall the printer, the problem would reappear, and noone would remember the solution.
Perhaps there is a better solution, but I haven't read one yet. sleep(), as you point out, isn't it.
Admin
Admin
Admin
This comment was actually first.
Must be a network problem.