Contact

For geeks

$ echo YWNlQHRvbW15YnV0bGVyLm1lCg== | base64 -d

My GPG key: 0xD63239F056A0DFE3

For other humans

Leave a message in the form below.  It’s confidential, and won’t be published.  I promise.

9 thoughts on “Contact

  1. Michel Jansen

    Hello,

    I am using File::Util but sometimes, regularly, when i print the contact of the retrieved PDF file to a webclient, the pages are empty.

    my $f = File::Util->new();
    my $data = $f->load_file ( $file );
    print $cgi->header( -type => $mimetype, -attachment => $document);
    print $data;

    What am i doing wrong here. Help will be appreciated very much.

    Kind regards,

    Michel Jansen

    Reply
    1. admin Post author

      Michael, sorry for the belated reply. The key to downloads is the CGI header. One more thing that folks miss when they are sending binary content to the browser is that they need to call binmode on STDOUT. Have you added this line yet?

      binmode STDOUT;
      print $data;

      If you have access to an error log, try warning on some of the things you are about to do:

      warn $cgi->header( -type => $mimetype, -attachment => $document);

      You might even try saving the file to make sure you’ve got it in memory correctly.

      $f->write_file( '/tmp/test.pdf', $data );

      At that point just download /tmp/test.pdf and see if you can open it. In all likelihood there will be no problem with that. But it is still good to verify.

      Summary: make sure you’re calling binmode.

      Protop: you can get quick help by logging into the Perl irc server at irc.perl.org. Then you won’t have to wait for help for a long time. Also remember that http://www.perlmonks.org is also a darn good resource for getting help quickly.

      Let me know how things turn out.

      Reply
  2. Thomas Bruno

    If you put in:

    for vm in “${VM_list[@]}”;

    and put quotes around a few of those $vm your autostart vmware virtual machine script will function with virtual machines that have spaces in the names.

    Reply
  3. greg

    On your bullshit generator (which is tremendous, by the way), you’ve left out perhaps one of the most annoying and repulsive pieces of bullshit which is….oh drat! I’ve forgotten. Let me reach out to my friend who will certainly know. I’m sure he’ll reach out to me soon, and I can reach out to you with it.

    (OK, OK…see the pattern? “Reach out” if you do!!! It drives me f****** crazy. Why not just say ‘contact’?)

    Regards,
    Greg

    Reply
  4. Richard Carlson

    may I suggest adding the term “going forward” to your Corporate B.S. Generator. The only time one ever hears the term is from corporate talking heads when they want to say “in the future” or “from here on in”, or even “tomorrow” or such.

    Reply
  5. Wes

    Re: https://github.com/tommybutler/file-util/blob/master/File_Util/lib/File/Util/Manual.pod

    The example showing:
    # Define a subroutine to print the byte size and depth of all files in a
    # directory, designed to be used as a callback function to list_dir()
    sub filesize {
    my ( $selfdir, $subdirs, $files, $depth ) = @_;
    print( “$_ | ” . ( -s $_ ) . ” | $depth levels deep\n” for @$files;
    }# Define a subroutine to print the byte size and depth of all files in a

    …. does not compile due to the ‘print(‘ in the print statement.
    I that line should be:
    print “$_ | ” . ( -s $_ ) . ” | $depth levels deep\n” for @$files;

    Excellent POD anyway! Thanks for that!

    Reply
  6. David Palmer

    I laughed my ass off at your corporate BS generator, that was just sent to me. Awesome! As Chief Engineer for a major Air Force program, I sit through corporate meetings constantly listening to this meaningless dribble about as useful as your generator. I will be sharing this with our engineering team, they will get quite a good laugh!

    Reply
  7. raid3868

    Hi,
    Thank for the “Autostart VMware Virtual Machines at Boot in Linux” script. I very useful for me and i m using now.
    But i cannot make the VM_wait_between to work when i set amount of second it did not work. when os boot
    all my vm start together. Please help tks

    OS = Opensuse 13.1 x64

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *