euglug.org

[작성자:] admin

  • [Eug-lug] Setting up DNS



    Garl GrigsbyMon Aug 23 08:54:43 PDT 2004

    Bob Miller wrote:
    
    >Garl Grigsby wrote:
    >
    >  
    >
    >>DNS request timed out.
    >>   timeout was 2 seconds.
    >>    
    >>
    >
    >That's too short.  Try 10-20 seconds.
    >
    >(Sorry, I don't know how to tune that using BIND.)
    >
    >  
    >
    Sorry, I guess I didn't make it clear, but I think the timeout is on the 
    windows side, which is where people are doing their web browsing.  When 
    I use dig on the server I don't see the timeout, it just takes a while. 
    In fact I don't know if dig will ever time out.
    
    Garl
    
  • [Eug-lug] batch convert



    T. Joseph CARTERMon Aug 23 00:55:53 PDT 2004

    On Sun, Aug 22, 2004 at 09:14:09PM -0700, Bob Miller wrote:
    > FWIW, I rescaled some images last night and today.  I did it the same
    > way I've been doing it for the last 10+ years using pbmplus.
    > 
    >     $ jpegtopnm input.jpg | pnmscale -xsize=512 | ppmtojpeg > output.jpg
    >     jpegtopnm: WRITING PPM FILE
    >     pnmscale: Scaling by 0.320000 horizontally to 512 columns.
    >     pnmscale: Scaling by 0.320000 vertically to 384 rows.
    >     pnmscale: 0.000011 of right column stretched due to arithmetic imprecision
    >     pnmscale: 0.000009 of bottom row stretched due to arithmetic imprecision
    > 
    > You can obviously embed that line in scripts in myriad ways.
    
    Sure, but imagemagick supports far more image formats.  Using convert and
    mogrify, you can get basically the same results.  And although I haven't
    tried, I'm pretty sure that I'd have a lot more control over scale filters
    using mogrify.  I mean, there's more to image scaling than bilinear and
    trilinear these days.
    
    
  • [Eug-lug] batch convert



    Bob MillerSun Aug 22 21:14:09 PDT 2004

    Allen Brown wrote:
    
    > mogrify is a cool command.  I've been using it for many years to
    > make thumbnails automagically.  But there is one thing that
    > annoys me.  There is no way to tell it to make the output filename
    > different from the input file.  So to make a thumbnail I have to
    >   cp ${fullsize}.jpg ${thumbnail}.jpg
    >   mogrify -options ${thumbnail}.jpg
    > 
    > Do you know of a more efficient way to do this?
    
    FWIW, I rescaled some images last night and today.  I did it the same
    way I've been doing it for the last 10+ years using pbmplus.
    
        $ jpegtopnm input.jpg | pnmscale -xsize=512 | ppmtojpeg > output.jpg
        jpegtopnm: WRITING PPM FILE
        pnmscale: Scaling by 0.320000 horizontally to 512 columns.
        pnmscale: Scaling by 0.320000 vertically to 384 rows.
        pnmscale: 0.000011 of right column stretched due to arithmetic imprecision
        pnmscale: 0.000009 of bottom row stretched due to arithmetic imprecision
    
    You can obviously embed that line in scripts in myriad ways.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] batch convert



    Jacob MeuserSun Aug 22 19:15:35 PDT 2004

    On Sun, Aug 22, 2004 at 02:12:25PM -0700, Ken Barber wrote:
    > On Sunday 22 August 2004 12:07 pm, Jacob Meuser wrote:
    > 
    > > There's a lot of overlapping functionality in the IM programs.  You
    > > can use either mogrify or convert to scale images.  However, the
    > > convert manpage says, "Convert converts an input file using one
    > > image format to an output file with a differing image format."
    > > and the mogrify manpage says "Mogrify transforms an image or a
    > > sequence of images.  These transforms include image scaling, ...".
    > >
    > > So, according to the documentation, one would think that mogrify
    > > was the "correct" program for scaling images.
    > 
    > Oh.  Now I see.
    > 
    > As far as I can tell, convert and mogrify do exactly the same things -- I 
    > believe that all of the option switches available in one are also available 
    > in the other.  But I can't say that for certain because I can't remember ever 
    > having used mogrify.
    > 
    > The impression I got from the documentation is that they both do the same job, 
    > but mogrify overwrites the original file while convert preserves it, forcing 
    > the user to choose another filename for the output image.
    > 
    > I have used, and continue to use, convert extensively and I have written 
    > several scripts to automate my tasks.  My only real frustration is that 
    > apparently convert doesn't support putting sRGB and gAMA chunks into PNG 
    > images.  'Tis a pity, because I would like to use tagged images that look the 
    > same whether they're being viewed on a (non-color-managed) PC or a (modern, 
    > color-managed) Mac.  Maybe I'll write a little program in C that will insert 
    > the chunks.
    
    chek this out:
    
    http://www.cit.gu.edu.au/~anthony/graphics/imagick6/
    
    lots of cools tricks
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] batch convert



    Ken BarberSun Aug 22 14:12:25 PDT 2004

    On Sunday 22 August 2004 12:07 pm, Jacob Meuser wrote:
    
    > There's a lot of overlapping functionality in the IM programs.  You
    > can use either mogrify or convert to scale images.  However, the
    > convert manpage says, "Convert converts an input file using one
    > image format to an output file with a differing image format."
    > and the mogrify manpage says "Mogrify transforms an image or a
    > sequence of images.  These transforms include image scaling, ...".
    >
    > So, according to the documentation, one would think that mogrify
    > was the "correct" program for scaling images.
    
    Oh.  Now I see.
    
    As far as I can tell, convert and mogrify do exactly the same things -- I 
    believe that all of the option switches available in one are also available 
    in the other.  But I can't say that for certain because I can't remember ever 
    having used mogrify.
    
    The impression I got from the documentation is that they both do the same job, 
    but mogrify overwrites the original file while convert preserves it, forcing 
    the user to choose another filename for the output image.
    
    I have used, and continue to use, convert extensively and I have written 
    several scripts to automate my tasks.  My only real frustration is that 
    apparently convert doesn't support putting sRGB and gAMA chunks into PNG 
    images.  'Tis a pity, because I would like to use tagged images that look the 
    same whether they're being viewed on a (non-color-managed) PC or a (modern, 
    color-managed) Mac.  Maybe I'll write a little program in C that will insert 
    the chunks.
    
    Ken
    -- 
    "Freedom is a fragile thing and is never more than one generation away from 
    extinction. It is not ours by inheritance; it must be fought for and defended 
    constantly by each generation, for it comes only once to a people.  Those who 
    have known freedom, and then lost it, have never known it again."
     -- Ronald Reagan
    
    
  • [Eug-lug] Setting up DNS



    Jacob MeuserSun Aug 22 12:49:41 PDT 2004

    On Sat, Aug 21, 2004 at 08:02:52PM -0700, Garl Grigsby wrote:
    
    > Aug 21 19:42:01.027 no_references: delete from rbt: 0x9774338 
    > dbru.br.ns.els-gms.att.NET
    > Aug 21 19:42:01.028 no_references: delete from rbt: 0x9774338 
    > dmtu.mt.ns.els-gms.att.NET
    > Aug 21 19:42:01.028 createfetch: blackbox.com A
    > Aug 21 19:42:01.028 createfetch: dbru.br.ns.els-gms.att.net A
    > Aug 21 19:42:01.028 createfetch: dmtu.mt.ns.els-gms.att.net A
    > Aug 21 19:42:01.030 no_references: delete from rbt: 0x9778170 
    > dbru.br.ns.els-gms.att.NET
    > Aug 21 19:42:01.030 no_references: delete from rbt: 0x9778170 
    > dmtu.mt.ns.els-gms.att.NET
    > 
    > This particular failure happened when I tried to resolve 
    > www.blackbox.com. This problem only seems to happen to lesser known 
    > domain names that are not frequently requested. If this happens when 
    > using a web browser I typically just get a site not found message. If I 
    > hit reload then the site shows up. When using nslookup I get the 
    > following behavior:
    > 
    > H:\>nslookup www.blackbox.com
    > Server:  ns1.mydomain.com
    > Address:  10.xxx.xxx.xxx
    > 
    > DNS request timed out.
    >    timeout was 2 seconds.
    > *** Request to ns1.mydomain.com timed-out
    
    Don't use nslookup, use dig.  dig is a lot more informative, and I
    think nslookup is scheduled to be deprecated.
    
    As far as the messages and timeouts, it looks like this comes from a
    situation where bind is trying to write to the cache (a red-black tree),
    but the cache has a lock on writing.  It might go away after some time
    (maybe it's trying to cache too many things at once on startup?).
    
    Check to make sure you're not hitting resource limits.  Possiibly
    named's cache is using swap and can't write/release locks fast
    enough?
    
    Also, I would suggest not using forwarders (although you don't say
    you are, a lot of people do because they think it must be quicker, 
    but in my experience, BIND is quicker without.  after all, this is
    the software that most of the root servers run ... where are they
    going to get info forwarded from?  often ISP nameservers, which would
    seem to be sensible forwarders, are swamped with connections to uh,
    old Windows installs on dialup.)
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] batch convert



    Jacob MeuserSun Aug 22 12:07:18 PDT 2004

    On Sun, Aug 22, 2004 at 09:23:02AM -0700, Ken Barber wrote:
    > On Saturday 21 August 2004 11:59 am, Allen Brown wrote:
    > > mogrify is a cool command.  I've been using it for many years to
    > > make thumbnails automagically.  But there is one thing that
    > > annoys me.  There is no way to tell it to make the output filename
    > > different from the input file.  So to make a thumbnail I have to
    > >   cp ${fullsize}.jpg ${thumbnail}.jpg
    > >   mogrify -options ${thumbnail}.jpg
    > >
    > > Do you know of a more efficient way to do this?
    > 
    > That isn't what mogrify is designed to do.  The command you want is 'convert'.
    
    There's a lot of overlapping functionality in the IM programs.  You
    can use either mogrify or convert to scale images.  However, the
    convert manpage says, "Convert converts an input file using one
    image format to an output file with a differing image format."
    and the mogrify manpage says "Mogrify transforms an image or a
    sequence of images.  These transforms include image scaling, ...".
    
    So, according to the documentation, one would think that mogrify
    was the "correct" program for scaling images.
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] batch convert



    Ken BarberSun Aug 22 09:23:02 PDT 2004

    On Saturday 21 August 2004 11:59 am, Allen Brown wrote:
    > mogrify is a cool command.  I've been using it for many years to
    > make thumbnails automagically.  But there is one thing that
    > annoys me.  There is no way to tell it to make the output filename
    > different from the input file.  So to make a thumbnail I have to
    >   cp ${fullsize}.jpg ${thumbnail}.jpg
    >   mogrify -options ${thumbnail}.jpg
    >
    > Do you know of a more efficient way to do this?
    
    That isn't what mogrify is designed to do.  The command you want is 'convert'.
    
    Ken
    -- 
    "Last week, I left my 2 [Microsoft Windows] XP CDs on my dashboard in plain 
    view. Someone broke into my car and left 2 more."
     -- Anonymous post on Slashdot (www.slashdot.org)
    
    
  • [Eug-lug] batch convert



    Linux Rocks!Sun Aug 22 07:31:04 PDT 2004

    Heh... yeah its what I used to make my webgallery JIST (http://
    wWw.RockSolidNetworks.com/JIST/). mogrify is pretty cool :)
    
    Jamie
    
    On Saturday 21 August 2004 01:57 pm, Jeff_W wrote:
    : Ditto on the ImageMagick: for some quick and EZ examples check out
    : the iGal page and click the Linux Journal article link. Since ImgMgk
    : is full featured at the command line you can integrate it in shell
    : scripts. For example, you could create a preview script to allow
    : flagging of rotated pics, then add additional cropping/resizing
    : steps for those pics (very common need). For large quantities of
    : pics this is a big time saver.
    :
    : iGal:  online Image GALlery generator
    : http://www.stanford.edu/~epop/igal/
    :
    : > Like Cory Said... Imagemagcik...
    : >
    : > : ... but lately somebody on the list mentioned that they
    : > : could not find a graphics program for Linux that does
    : > : batch converts.
    :
    : _______________________________________________
    : EUGLUG mailing list
    : euglug at euglug.org
    : http://www.euglug.org/mailman/listinfo/euglug
    
    -- 
    > Is there any hope for me? Am I just thick? Does anyone remember the
    > Rubiks Cube, it was easier!
    I found that the Rubiks cube and Linux are alike. Looks real confusing
    until you read the right book. :-)
    	-- seen on c.o.l.misc, about the "Linux Learning Curve"
    
    
  • [Eug-lug] Setting up DNS



    Bob MillerSun Aug 22 00:10:07 PDT 2004

    Garl Grigsby wrote:
    
    > DNS request timed out.
    >    timeout was 2 seconds.
    
    That's too short.  Try 10-20 seconds.
    
    (Sorry, I don't know how to tune that using BIND.)
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com