Slashdot Mirror


User: Just+Some+Guy

Just+Some+Guy's activity in the archive.

Stories
0
Comments
11,329
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 11,329

  1. Multipage images? on The Definitive Guide to ImageMagick · · Score: 1
    We use ImageMagick to convert multi-page TIFFs that our customers send to us into our internal layout (i.e. correct size, depth, etc.). I'd like to try netpbm, but it doesn't seem to widely support multipage images:
    $ tifftopnm < foo.tif | pamscale -xyfit 640 480 > bar.tif
    tifftopnm: writing PBM file
    pamscale: promoting from PBM to PGM
    tifftopnm: writing PBM file
    $ identify foo.tif
    foo.tif[0] TIFF 995x1375 995x1375+0+0 DirectClass 2e+02kb
    foo.tif[1] TIFF 950x1375 950x1375+0+0 DirectClass 2e+02kb
    foo.tif[2] TIFF 949x1375 949x1375+0+0 DirectClass 2e+02kb
    foo.tif[3] TIFF 981x1375 981x1375+0+0 DirectClass 2e+02kb
    foo.tif[4] TIFF 981x1375 981x1375+0+0 DirectClass 2e+02kb
    foo.tif[5] TIFF 995x1375 995x1375+0+0 DirectClass 2e+02kb
    foo.tif[6] TIFF 994x1375 994x1375+0+0 DirectClass 2e+02kb
    $ identify bar.tif
    bar.tif PNM 347x480 347x480+0+0 PseudoClass 256c 2e+02kb

    If it weren't for the fact that it discards 86% of the input data, it'd be pretty useful. Seriously, though, I'd love to find out that I'm wrong. It seems much faster than ImageMagick for certain operations and I'd like to give it a real test.

  2. Re:"you should fix it" is elitist bullshit on Root Password Readable in Clear Text with Ubuntu · · Score: 1
    That's interesting, and something I hadn't been aware of.

    AFAICT, you can't even just ignore the GUI and configure the printers through CUPS directly.

    I don't think there's anything keeping you from hacking at /etc/cups/printers.conf or similar. Also, the CUPS web interface is running on port 631 on our machine - have you tried using that instead of the GUI configurator?

  3. Re:"you should fix it" is elitist bullshit on Root Password Readable in Clear Text with Ubuntu · · Score: 1
    just *try* to get it to deliver postscript to a remote print server.

    As far as I know, I do that every day. My wife's iMac prints correctly to the HP LaserJet 1200 attached to my FreeBSD server via CUPS. Did I miss part of your point?

  4. Re:ACID2 Test != crap on Opera 9.0 Fully Passes ACID2 Test · · Score: 1
    Encourage developers to support invalid coding by designers.

    You misspelled "ignore".

  5. Your definitions are lacking on Opera 9.0 Fully Passes ACID2 Test · · Score: 1
    If opera mis-renders this site

    Erm, no. A browser misrenders a site by accepting valid input and generating out-of-spec output, such as by failing the Acid2 test. However, if the input is not deterministically parseable then all bets are off.

    If you want to add 2 plus 2, but enter "2+3" into your calculator, would you get mad at it for giving an answer you didn't expect? Even if one brand of calculator often guesses that you really meant "2+2" and silently gives you that answer instead, I fail to see how you could expect another to do the same (and then claim that it "miscalculates" because it doesn't apply the same random guesswork as the first).

  6. Re:No way! on Clinton, Lieberman Propose CDC Investigate Games · · Score: 1

    Thank you. It's always nice to feel appreciated. :-)

  7. Re:Studying Violence in Games? on Clinton, Lieberman Propose CDC Investigate Games · · Score: 1
    Really? The whole demestic spying thing isn't very liberal.

    What does Bush have to do with conservatism? News flash: an increasing number of us are becoming loudly dissatisfied with the Republican leadership, which hasn't been conservative at all for quite some time.

    Liberal comes from liberty; conservative comes from conserve.

    No. Liberal and liberty share a common root: liber. Neither derive from the other.

    One's clearly about getting more liberty, when the others about maintaining the level of liberty we had 200 years ago.

    See, the funny thing is that conservatives believe that they are the group who desires more liberty. They (generally) believe that liberals are pro-society at the expense of individual liberty. Go and ask to one sometime; we're not nearly as scary as we're made out to be.

    Again: neither liberals nor conservatives "own" freedom. Both of them desire it, but have different ideas about what it actually means.

  8. No way! on Clinton, Lieberman Propose CDC Investigate Games · · Score: 1
    No, you're wrong! ${my_issue} is much more important and urgent than ${your_issue}. In fact, Congress's lack of action on ${my_issue} is leading to the ${bad_thing} of hundreds of ${decimal_unit}s of ${country}'s citizens. Those who do not take immediate action on ${my_issue} while ignoring everything else (including ${your_issue}) are baby-eating murderers!

    Sincerely,
    ${someone}

  9. Re:Studying Violence in Games? on Clinton, Lieberman Propose CDC Investigate Games · · Score: 1
    Why am I a liberal? I like the whole liberty thing.

    I'm a conservative for the same reason.

    Actually, the truth is that we're both pro-liberty, regardless of our other political leanings. Neither liberals nor conservatives "own" freedom.

  10. Re:brain research on Clinton, Lieberman Propose CDC Investigate Games · · Score: 1
    I'm not sure why there is such resistance here on /. (other than the fact that most /.'ers are possibly adolecent gamers) to the idea that activities you engage in for a large percentage of your time can have an impact on brain development and function.

    Because the conclusion is always that the activities we /.ers grew up loving will surely turn you into a disconnected, emotionless, killing robot.

  11. Re:One Gods on GPL 3 As Bonfire of the Vanities · · Score: 1
    GPL 3 is the "Last Revelation"

    So we have to decide whether RMS is more like Joseph Smith or L. Rob Hubbard? I'll be a Free Software Mormon if you expand that polygamy thing a little bit. Oh, and also allow beer.

  12. Re:There's no energy production here, move along.. on Lab Produces 3.6 Billion Degree Gas · · Score: 2, Insightful
    Thus, the bottom line here is, unfortunately, that what happened in this experiment was that one component of the total energy input, magnetic energy, which normally is not converted into heat, was converted into heat by a new mechanism.

    Rats - no fusion. Instead, all we got is a previously unknown energy conversion that could possibly be useful in future creations. What's the point in getting a new energy conversion mechanism if it's not fusion?

  13. Re:OSX security on Slashback: OSX Security, DoD Filtering, Anonymous Posting · · Score: 1
    Scratch that. I was shooting for "Informative", but ended up with "Should Have Read Further Down First".

    Now back to your regularly scheduled programming...

  14. Re:OSX security on Slashback: OSX Security, DoD Filtering, Anonymous Posting · · Score: 1
    Not just bandwidth, but if you were the head admin of their network, how thrilled would you be that somebody hung a big sign on your campus saying "please attack us"?

    Sufficiently so, apparently:

    And yes, this challenge is sanctioned. I'm glad that the University of Wisconsin supports the genuine interests of its faculty, staff, and students, and encourages individual thought, research, discovery, and exploration. That's why it's a great place to be!
  15. SON OF A BITCH! on Hidden Treasures in OpenOffice 2.0's Chart Tool · · Score: 3, Interesting
    Yeah, because I like needing eight gigs of free hard drive to compile it with the options I use just so I can build in unknown shit like this. If I somehow accidentally found that on my own, I'd probably figure my machine was pwn3d and reinstall to bare metal. It wasn't funny when MS did it, and it's no more funny when OOo does it.

    Grow up, folks. Stupid stunts like this hurt far more than they help. From now on, whenever people bitch about how slow OOo is, MS fanboys will have legitimate reasons to point and laugh. For that matter, I probably will too. Is it slow because it's complex and powerful, or slow because there are 300 other Easter eggs hiding out in there?

    Seriously, yank this crap out and forget it never existed.

  16. Re:Anyone else Railed-out? on Exploring Active Record · · Score: 1
    Database programmers seem to hate that approach because it shifts the center of gravity away from the database and toward the web app.

    Even though I'm hardly a DBA, I hate that approach for the exact same reason. In my company, we don't have the privilege of rolling out a database that supports only one application. Instead, we have a huge legacy application written in Visual FoxPro, the web stuff that I've written in Python, and some lightweight apps (like custom image viewers) written in various .NET languages. We're moving more and more logic into the database - PostgreSQL on a beefy server - because that's the only component common to all these systems, and because that's were a lot of it belongs.

  17. Re:Bad idea- compilers on Is Visual Basic a Good Beginner's Language? · · Score: 1
    All the languages I was told were going to be useful "in real life" have turned out to be mostly worthless

    Man up, nancy. The real world uses real tools for real work.

    Oh, I get it! You were going for "+5: Ironic".

  18. Re:Bad idea on Is Visual Basic a Good Beginner's Language? · · Score: 1
    I'm assuming that you forgot to flip the xsize and the ysize in the second example. I also assume you trying to make a point that writing across memory is quicker then writing once every xsize*pixelsize bytes

    Correct on both counts.

    but surely than depends on the method of screen memory mapping?

    Yes, but as I mentioned in another poster, images are almost always stored as an adjacent list of the values of one row, immediately followed by the list of values of the next row, etc. In other words, pixel[x,y] is most commonly at pixelarray[y*width+x], and iterating across that list in linear order will usually be the optimal algorithm.

  19. Re:Bad idea on Is Visual Basic a Good Beginner's Language? · · Score: 1
    I know what you mean in that code (tho it may contain mistakes) - it does NOT take assembly experience to see the cache benefit - granted I know 6502 and x86

    But that's the thing: I don't know a single person who doesn't know assembler who understands the tricks you do. That was my point. I've gotten a lot of replies from people who understand CPU architecture who think the cache miss thing is obvious, but not one from a HLL-only programmer who saw the problem.

    The two are not mutually exclusive - there's no inherent reason why you can't learn about low-level stuff when learning high-level programming - but that seems to be only a theoretical possibility. Again, I've never actually seen it in real life.

  20. Re:Bad idea on Is Visual Basic a Good Beginner's Language? · · Score: 1
    No, it's fairly obvious that one will run faster than the other. For a non-square pixel area, one will no-op for a range of pixels, or quite possibly crash before running to completion. But I'm guessing that you mistyped your example.

    Bzzzt - wrong answer. Yes, that was a typo, but no, that's not why one would be faster than the other. Given that almost all images are stored with x-adjacent pixels being stored in consecutive memory locations (or nearly interleaved, with other data between them), the first example stands a much better chance of minimizing cache misses. For large images, the second example nearly guarantees an extremely high miss rate.

    But that they don't usually teach that stuff in VB 101. It's not that they inherently couldn't, but that they just don't. Your typical ASM class, though, will coerce you into learning more about what your silicon is actually doing than you might want to know. That's good stuff to know, even if you don't ever plan to program in ASM again.

  21. Re:Bad idea on Is Visual Basic a Good Beginner's Language? · · Score: 5, Informative
    OK, that's just mean.

    I totally disagree. Difficult? Complicated? Sure, but not mean. People who have learned assembler are the ones who understand why

    for(int y=0; y<ysize; y++) {
    for(int x=0; x<xsize; x++) {
    do_something_to_pixel(x,y);
    }
    }
    will usually run faster than
    for(int x=0; x<ysize; x++) {
    for(int y=0; y<xsize; y++) {
    do_something_to_pixel(x,y);
    }
    }
    even though both are conceptually identical. There are many things that seem perfectly reasonable in high-level languages that turn out to be a really bad idea once you learn what's going on in the hardware. I'm sure it's possible to learn that stuff without hitting the metal a few times, but I've never, not one single time, ever met someone who's done so.
  22. Re:A Different Test on U of Wisconsin's Mac OS X Security Challenge · · Score: 4, Interesting
    all of the "best practice" measures were taken to harden the box

    No, they weren't. If all the filesystems that customers have write access to are mounted "noexec", then self-compiled binaries don't present a lot of exposure.

    I'm not saying that it's not a good idea to remove GCC, just that its presence isn't an automatic compromise.

  23. Re:Scary yes... but... on Legal Issues of Opening Up Proprietary Standards? · · Score: 2, Funny
    So in the end, from one legal dispute, three lawsuits emerge, and two of those suits were at best frivolous, taking advantage of the cost of a lawsuit as a tool to try to extract concessions.

    Perhaps your friend and his friends should have turned that into a legal dispute, three lawsuits, and a hospitalization. Remember, never cost someone more than they'd have to pay to have you killed.

  24. Re:Check it out on KOffice GUI Competition Winner · · Score: 1
    It's a pity the real poor coverage KOffice gets in the web compared to OpenOffice, being a really cool suite with great programs.

    There is exactly one reason I don't use KOffice over OpenOffice.org: printed fonts look absolutely horrible. Specifically, the kerning is so awful that the results are sometimes unreadable. I'm not some hyper-nitpicky font fan, but an average user who wants his output to look nice - and KWord can't do it. There is absolutely no way I'd submit a resume or other important document printed from it.

    This is apparently a common problem, and my understanding is that it's rooted in the QT libraries. In other words, it's not directly KWord's fault. Be that as it may, the end result still isn't usable for me.

    Here's to hoping that the eventual QT4 version will look good and print nicely. If that happens, I'll drop OpenOffice.org like a hot potato. Until that, OOo is the only option I see for high quality output.

    Well, maybe not the only option. I haven't tried AbiWord in ages, but I'm not eager to try to integrate a Gnome app into my KDE desktop. It's not that I dislike Gnome, but that its programs doesn't really blend in with all the other apps I use.

  25. Re:One central mistake these people make... on RFID, Sign of the (End) Times? · · Score: 1
    the "mark of the beast" means that you have to recant your faith to recieve the mark.

    What if your faith involves not blindly ceding total control of your life to the government, e.g. by ingesting a universal tracking device? I'm not sure that recanting one's faith need be as straightforward as saying "God is dead, now tag me!"