The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,824 other followers

Archive for November, 2009

Generating EAN-13 barcode EPS files for your article numbers

Posted by jpluimers on 2009/11/30

Recently, I needed a bunch of EPS files for EAN-13 barcodes (that’s the kind of barcodes European companies put on their products).

Terry  Burton wrote a great barcode writer in pure PostScript for this, with a simple web front end to generate a barcode one at a time.

Actually, his tool can:

  • Generate all kinds of 1D and 2D barcodes (EAN-5, -8, -13, Code 128, Code 39, Code 93, Data Matrix, GS1, ISBN and many may more)
  • Generate the check digits where needed

Since most DTP packages favour EPS over PS, and I needed more than just a few of them, I went a bit beyond the one-at-a-time simple web front end.

In fact, the EPS file generated by Terry Burton’s web front end has just one variable: the article number.

Basically, there are two ways go generate a whole bunch of the barcode EPS files:

  1. Grab one EPS file from his site and search/replace the article number in it (do! it’s easy, read on)
  2. Encode the parameters in the URL on his web-site, and extract the link to the (random location of the) EPS file, then download the EPS file (don’t! costs a lot of time and burdens his web-server)

Let’s see how easy 1. is… Read the rest of this entry »

Posted in Development, EPS/PostScript | 5 Comments »

GMail + TIFF = ? « Scientia potentia est

Posted by jpluimers on 2009/11/25

Ever wondered why since a couple of weeks you cannot preview TIFF attachments (like FAX images) in GMail any more?

It’s because GMail has (hopefully soon had!) a bug handling little-endian TIFF images: the preview of your attachment might reveal someone else’s!

While fixing it, GMail seems to have disabled the preview for all TIFF images.

Jaffar Rumith found about the bug more than a year ago, then rereported it, and blogged about it (GMail + TIFF = ? « Scientia potentia est).
Soon after his blog post got published, the bug got acknowledged (hopefully that is not cause and effect).

Viewing TIFF attachments didn’t work for a while either, but now works again.
Hopefully they will fix the preview TIFF issue soon…

–jeroen

Posted in GMail, Google | 1 Comment »

IIS Error 404 2 1260

Posted by jpluimers on 2009/11/09

This just had this happen on a Windows 2003 server with a client’s client.

Any .asmx page would return a 404 error like this IIS log line shows:

2009-11-06 09:46:05 127.0.0.1 GET /MyVirtualDirectory/MyWebService.asmx – 80 – 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 404 2 1260

Searching for “iis 404 2 1260 asp.net” found this top from Marc Valk, that solved the issue: ASP.NET v2.0.5727 was prohibited to run.
Which means that none of the ASP.NET bound extensions would work: they all returned 404 errors.

(Note: if you are wondering where your IIS log files are, this post shows you).

–jeroen

Posted in .NET, ASP.NET, Development, IIS, SOAP/WebServices, Software Development, Web Development | Leave a Comment »

 
%d bloggers like this: