From high.res.mike at gmail.com Thu May 10 14:12:51 2007 From: high.res.mike at gmail.com (Mike Pfaiffer) Date: Thu, 10 May 2007 13:12:51 -0500 Subject: [Python Wpg] I want to try an experiment Message-ID: <464360A3.2020806@gmail.com> I was given a Canon S400 printer this winter. My father bought a new Epson and noticed I didn't have a toner cartridge for my HP IIIp or print head for my Canon BJC4400 so I got his old machine. Anyhow after setting up the printer I did a bit of reading on Google. Apparently this is not one of the more intelligent printers. Even under Windows there are problems with the drivers. The printer assumes a native dpi of 360x360. Although the printer is capable of much higher resolution on one level it still behaves as though it only has the lower resolution mode. Under Linux the first page is wasted after the printer is turned on. If the job is deleted and another one is run the printer behaves and the resolution is fine. What I'd like to do is to have a one line piece of code/program to send a form feed to the printer with the assumption this would qualify and reset the resolution to the proper value. The reasons I'm asking here are: 1) It would be educational to see how Python does direct printing. 2) I just became slightly busy with three computers arriving here within the last month (also a KVM switch with a defective cable). 3) I'm going to get more busy in the next week. 4) I don't want to forget about this idea. 5) If someone knows what they are doing it will take 10 seconds. 6) It'll generate some traffic on the mailing list. Please and Thanks.... Later Mike From jason at peaceworks.ca Thu May 10 15:58:16 2007 From: jason at peaceworks.ca (Jason Hildebrand) Date: Thu, 10 May 2007 15:58:16 -0400 (EDT) Subject: [Python Wpg] I want to try an experiment In-Reply-To: <464360A3.2020806@gmail.com> Message-ID: <28355518.36741178827096645.JavaMail.root@zimbra> Hi Mike, This seems to work on my printer: >>> printer = file('/dev/lp0', 'w') >>> printer.write('\x0c') # hex 0x0c is a line feed >>> printer.close() >>> Hope this helps, Jason -- Jason Hildebrand PeaceWorks Computer Consulting #2 - 396 Assiniboine Ave, Winnipeg 204 480 0314 --or-- 519 725 7875, ext 620. ----- "Mike Pfaiffer" wrote: > I was given a Canon S400 printer this winter. My father bought a new > Epson and noticed I didn't have a toner cartridge for my HP IIIp or > print head for my Canon BJC4400 so I got his old machine. Anyhow after > > setting up the printer I did a bit of reading on Google. Apparently > this > is not one of the more intelligent printers. Even under Windows there > > are problems with the drivers. The printer assumes a native dpi of > 360x360. Although the printer is capable of much higher resolution on > > one level it still behaves as though it only has the lower resolution > > mode. Under Linux the first page is wasted after the printer is turned > > on. If the job is deleted and another one is run the printer behaves > and > the resolution is fine. > > What I'd like to do is to have a one line piece of code/program to > send > a form feed to the printer with the assumption this would qualify and > > reset the resolution to the proper value. > > The reasons I'm asking here are: 1) It would be educational to see > how > Python does direct printing. 2) I just became slightly busy with three > > computers arriving here within the last month (also a KVM switch with > a > defective cable). 3) I'm going to get more busy in the next week. 4) I > > don't want to forget about this idea. 5) If someone knows what they > are > doing it will take 10 seconds. 6) It'll generate some traffic on the > mailing list. > > Please and Thanks.... > > Later > Mike > > _______________________________________________ > Winnipeg mailing list > Winnipeg at python.org > http://mail.python.org/mailman/listinfo/winnipeg From stuartw at mts.net Tue May 22 22:31:43 2007 From: stuartw at mts.net (Stuart Williams) Date: Tue, 22 May 2007 21:31:43 -0500 Subject: [Python Wpg] Meeting this week Message-ID: <18003.42895.982631.679505@gavel.swilliams.ca> Don't forget our meeting this week. I'm looking forward to Scott's bound-to-be-interesting presentation on Python for System Administrators. Details of meeting time and location on the wiki at http://winnipug.ca Stuart. From syd at plug.ca Thu May 24 16:06:40 2007 From: syd at plug.ca (Sydney Weidman) Date: Thu, 24 May 2007 15:06:40 -0500 Subject: [Python Wpg] Presenter sign up for June 27th meeting Message-ID: <1180037201.3277.8.camel@localhost.localdomain> As discussed, the presentation topic for next month (June 27th) will be "Batteries Included: A Tour of the Python Standard Library". Anyone interested in presenting on some feature/module/package of the library, please feel free to sign up at: http://wiki.python.org/moin/PresenterSignUp Just edit the page and add your name and topic to the list. - Syd From high.res.mike at gmail.com Thu May 24 19:25:34 2007 From: high.res.mike at gmail.com (Mike Pfaiffer) Date: Thu, 24 May 2007 18:25:34 -0500 Subject: [Python Wpg] Presenter sign up for June 27th meeting In-Reply-To: <1180037201.3277.8.camel@localhost.localdomain> References: <1180037201.3277.8.camel@localhost.localdomain> Message-ID: <46561EEE.6070305@gmail.com> Sydney Weidman wrote: > As discussed, the presentation topic for next month (June 27th) will be > "Batteries Included: A Tour of the Python Standard Library". Anyone > interested in presenting on some feature/module/package of the library, > please feel free to sign up at: > > http://wiki.python.org/moin/PresenterSignUp > > Just edit the page and add your name and topic to the list. > > - Syd Sorry to jam out on everybody. I've been so busy I haven't had a chance to do much programming lately. Plus two minutes ago I found I have a three 3 - 5 page review on Parallels (sort of a VMWare for the Mac) to do in a week. On the up side Python works just as well on the Mac as it does in Linux. The terminal window can be accessed by going to the hard drive --> Applications --> Utilities --> Terminal. I suggest doing a drag and drop onto the dock. From there the usual methods apply. Later Mike