Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
942 connectés 

 

Sujet(s) à lire :
    - [Topik Unik] News logiciels
 

 Mot :   Pseudo :  
 
 Page :   1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16
Auteur Sujet :

[important] --== LES LOGICIELS ESSENTIELS SOUS GNU/LINUX ==--

n°833746
petr0
Un ange passe
Posté le 08-08-2006 à 21:10:44  profilanswer
 

Reprise du message précédent :
Petite question:
Est-ce qu'il existe un soft de visu qui soit capable de faire des isosurfaces de valeur (en 3D donc) autre que matlab/scilab ou gnuplot (lecture de fichiers de données binaires) ?  
 Merci, :jap:


---------------
Pas de message subliminal.  Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre do perigo de da merd*
mood
Publicité
Posté le 08-08-2006 à 21:10:44  profilanswer
 

n°833908
tabb
Posté le 09-08-2006 à 16:10:52  profilanswer
 

Avec les 13 pages de posts je n'ai pas tout lu mais il manque :
- qtparted / gparted (aka partition magic sous linux)
- ffmpeg / transcode ! (comment peux t-on vivre sans ses couteaux suisse de la vidéo ^^)


Message édité par tabb le 09-08-2006 à 16:11:04
n°833912
j_c_p
Linux user
Posté le 09-08-2006 à 16:26:49  profilanswer
 

Petr0 : il y a LabPlot par exemple -> http://labplot.sourceforge.net/

Citation :

LabPlot 1.5.1 Features :
 

  • versatile data and function plotting

 * flexible data reading/writing in different formats (including cdf, netcdf, audio, binary, images)
  * reading of images (over 80 image formats) and compressed data
  * extensive parser for creating 2d, 3d functions
  * support for all GNU Scientific Library (GSL) functions and constants
  * creating 2d, 3d, surface, polar, ternary, and pie plots from function and data files
  * flexible 3d plot with rotation
  * multiple plots per worksheet
  * data set operations
  * speed mode for large data sets and data mode for inspecting data points
 

  • easy editing of plots

 * clone graphs and delete/clone plots
  * versatile spreadsheet for data manipulation
  * double click in plot to open detailed dialogs for all settings
  * every object can be dragged by mouse
  * online scaling and shifting of plots
  * LaTeX and richtext label support
  * evaluating expressions and direct editing of data
  * data statistics information
  * drawing objects editing by mouse
  * free or pan zooming, masking of data points and marker
  * "add graph" dialog in graph dialog
  * support for panel plots
 

  • analysis of data and functions

 * average, smooth and prune data
  * compress, periodical and seasonal analysis
  * peak find
  * interpolation (splines, etc.)
  * differences
  * integration
  * histogram
  * regression (up to 10th order)
  * non-linear fit (also any user defined function with up to 9 parameter)
  * fourier, wavelet and hankel transform
  * (de)convolution
  * noise, signal filter and auto-/crosscorrelation
  * capability analysis
  * image manipulation
 

  • LabPlot project files

 * support for different worksheets and spreadsheets using MDI
  * save and open all worksheets and spreadsheet in a project file (*.lpl)
  * editable project information
  * export worksheets as image, ps, svg, eps, pdf and many more formats (using pstoedit or ImageMagick)
  * import/export data from/to PostgreSQL, mySQL, etc. via KexiDB
  * many example project files
  * save settings and update open dialogs
  * import of Origin opj projects
  * optional xml project format (will be used later as standard format)
 

  • KDE look and feel

 * configure default value for plot style and symbols
  * print and embedded print preview
  * drag and drop support
  * KPart for LabPlot projects
  * KDE handbook (english and german)
  * complete scriptable using Qt Script for Applications (QSA)

Message cité 2 fois
Message édité par j_c_p le 09-08-2006 à 16:34:07
n°833918
Splinter's​ DeadPixel
Posté le 09-08-2006 à 17:14:12  profilanswer
 

telechargé, il tombe a pic ce LabPlot :love:

n°833925
petr0
Un ange passe
Posté le 09-08-2006 à 17:18:47  profilanswer
 

j_c_p a écrit :

Petr0 : il y a LabPlot par exemple -> http://labplot.sourceforge.net/


 
 
Toi, tu es mon sauveur.
Merci  :jap:


Message édité par petr0 le 09-08-2006 à 17:19:09

---------------
Pas de message subliminal.  Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre do perigo de da merd*
n°833931
j_c_p
Linux user
Posté le 09-08-2006 à 17:26:30  profilanswer
 

De rien ;).

n°834015
zoidberg
Gloire au crapaud Hypno!!
Posté le 09-08-2006 à 22:51:35  profilanswer
 

Ola les gens,
je suis a la recherche d'un soft permettant d'imprimer de maniere correcte des trucs que l'on vient de scanner par exemple (faire des photocopies quoi).
j'utilise shomimg pour visualiser, mais je n'arrive pas a dimensionner l'image comme il faut au moment de l'impression.
a l'epoque ou j'utilisais gwenview j'ai souvenir que ca n'etait pas la panace non plus.
alors si quelqu'un utilise un logiciel qui permet d'imprimer a la taille ou on le souhaite je prends.
Merci.
++
edit du soir: il semblerait que j'ai trouve mon bonheur dans the gimp, on peut tout configurer dans tout les sens!
reedit: ah ben non finallement, une image a4 pleine ca marche bien, mais une plus petite il remplit la page avec :(
y a pas moyen d'avoir l'image a la bonne taille directement, je peux bien sur la redimensionner (mais il faut que calcule la taille du document (pixel/ppp)), mais ca serait plus facile si je pouvais entrer qqpart la resolution (en ppp) du scan, comme ca je pourrais avoir ca a la bonne taille directement.

Message cité 1 fois
Message édité par zoidberg le 10-08-2006 à 00:09:22
n°834202
petr0
Un ange passe
Posté le 10-08-2006 à 17:32:45  profilanswer
 

zoidberg a écrit :

Ola les gens,
je suis a la recherche d'un soft permettant d'imprimer de maniere correcte des trucs que l'on vient de scanner par exemple (faire des photocopies quoi).
j'utilise shomimg pour visualiser, mais je n'arrive pas a dimensionner l'image comme il faut au moment de l'impression.
a l'epoque ou j'utilisais gwenview j'ai souvenir que ca n'etait pas la panace non plus.
alors si quelqu'un utilise un logiciel qui permet d'imprimer a la taille ou on le souhaite je prends.
Merci.
++
edit du soir: il semblerait que j'ai trouve mon bonheur dans the gimp, on peut tout configurer dans tout les sens!
reedit: ah ben non finallement, une image a4 pleine ca marche bien, mais une plus petite il remplit la page avec :(
y a pas moyen d'avoir l'image a la bonne taille directement, je peux bien sur la redimensionner (mais il faut que calcule la taille du document (pixel/ppp)), mais ca serait plus facile si je pouvais entrer qqpart la resolution (en ppp) du scan, comme ca je pourrais avoir ca a la bonne taille directement.


 
T'es sûr que dans les options d'exportation de Gimp, il ne te propose pas un choix ? Ou alors il faut créer un fond a4 et y copier ton timbre peut-être ?
 
PS:Tu peux aller voir sur le forum linuxgraphic, ils sont au point sur Gimp et Sodipodi.
edit: Sinon il y a aussi le logiciel xfig, je suis sure que tu ne peux pas choisir la taille en ppp mais en cm et sur feuille a4 portrait/landscape. je l'utilise pour coller des postscripts/pdf/gif/tout quoi.  


Message édité par petr0 le 10-08-2006 à 17:39:39

---------------
Pas de message subliminal.  Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre do perigo de da merd*
n°834206
Xavier_OM
Monarchiste régicide (fr quoi)
Posté le 10-08-2006 à 17:51:21  profilanswer
 

sinon faut faire un petit shell script à base de "convert"  :hello:


---------------
Il y a autant d'atomes d'oxygène dans une molécule d'eau que d'étoiles dans le système solaire.
n°834268
zoidberg
Gloire au crapaud Hypno!!
Posté le 10-08-2006 à 21:11:28  profilanswer
 

ben euhhh?? convert ca va me permettre de retailler l'image non? pas de lui donner une taille particuliere a l'impression?
je vais aller jeter un oeil sur les forums gimp voir si je trouve ce que je cherche, mais sinon ma methode fonctionne bien, dans gimp on peut entrer la taille de l'image en sortie, il suffit de calculer sa taille, de l'entrer et hop.
merci

mood
Publicité
Posté le 10-08-2006 à 21:11:28  profilanswer
 

n°834349
Xavier_OM
Monarchiste régicide (fr quoi)
Posté le 11-08-2006 à 09:15:37  profilanswer
 

ben en jouant sur la taille des bords + ppp on doit pouvoir arriver à ce que tu cherches... j'ai pas vérifié que convert faisait ca explicitement mais je lui fais confiance :D


---------------
Il y a autant d'atomes d'oxygène dans une molécule d'eau que d'étoiles dans le système solaire.
n°836685
crygor
Posté le 21-08-2006 à 09:43:04  profilanswer
 

Y'a pas thunar ? Moi j'aime bien thunar.

n°854462
petr0
Un ange passe
Posté le 20-10-2006 à 21:49:09  profilanswer
 

j_c_p a écrit :

Petr0 : il y a LabPlot par exemple -> http://labplot.sourceforge.net/


 
Après quelques recherches infructueuses je suis retournée à Matlab (c), je me suis bien faite chier à trouver tout ce dont j'avais besoin.
 Il suffisait d'attendre un peu j'ai un collègue qui m'a montré le logiciel Paraview en open source. Je ne l'ai pas utilisé mais il est très ressemblant  
à Tecplot (c), c'est du 3D réel (par contre pas labplot).
 


---------------
Pas de message subliminal.  Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre do perigo de da merd*
n°854514
j_c_p
Linux user
Posté le 21-10-2006 à 00:02:22  profilanswer
 

Merci de l'info petr0, je vais regarder ce Paraview pour ma part (en test dans portage, cad hard-masked pour le moment, pour ceux qui sont sous Gentoo).

n°878600
Profil sup​primé
Posté le 16-01-2007 à 18:31:49  answer
 

Dans amsn (O.96) je ne vois pas mes émoticons mais que les codes.
J'ai essayé en désactivant le plugin amsn, en mettant deplus, et le plugin emotes mais ca ne marche toujours pas, une idée svp ? :jap:

n°915657
zoidberg
Gloire au crapaud Hypno!!
Posté le 24-05-2007 à 09:01:26  profilanswer
 

[Mode reveillage de vieux tomic]
Je viens de voir que gaim etait passe en v2 stable, et ils ont change de nom pour pidgin.
pas encore teste mais y a l'air d'y avoir pas mal de changements.
[Mode reveillage de vieux tomic OFF]


Message édité par zoidberg le 24-05-2007 à 09:01:48
n°916475
Profil sup​primé
Posté le 27-05-2007 à 16:20:40  answer
 

Hum sympa, merci pour l'info :jap:

n°940298
Jeddo
A nice place to live
Posté le 03-08-2007 à 22:00:32  profilanswer
 

Un logiciel pour éditer les meta-informations d'un pdf ?
Je ne sais pas si pdfedit le fait...


---------------
FREE DATOUNE
n°940302
Sagittariu​s
Posté le 03-08-2007 à 22:15:43  profilanswer
 

Jeddo a écrit :

Un logiciel pour éditer les meta-informations d'un pdf ?
Je ne sais pas si pdfedit le fait...


 
Avec un fichier desktop comme:

[Desktop Entry]
Comment=
Comment[fr]=
Encoding=UTF-8
Exec=/usr/bin/perl '/documents/installation/pdfmeta.pl'
GenericName=Changer les méta-données d'un fichier PDF
GenericName[fr]=Changer les méta-données d'un fichier PDF
Icon=gnome-mime-application-pdf
MimeType=
Name=PDF Metadata
Name[fr]=PDF Metadata
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=


 
et le script perl correspondant:

#!/usr/bin/perl
 
# Program Name:     PDF Metadata Editor
# Program URL:      http://www.arilabs.com/software/pdfmeta/pdfmeta.pl
# Filename:         pdfmeta.pl
# Version:          1.3
# Last Modified:    2005-06-02
# Author:           Brian High <bkh AT arilabs DOT com>
# Copyright:        Analytical Resources, Inc. (2005)
# License:          GNU GPL version 2 or greater.  See LICENSE below.
# Requires:         pdftk version 1.12 or greater, Perl/Tk
#                   pdftk must be in your environment's PATH
# Tested under:     Mandrake 10.1.0 (KDE 3.2.3-99, Perl 5.8.5-3, Perl-Tk  
#                   804.027-2), Debian unstable (Kanotix 2005-01, KDE 3.3.2-1,  
#                   Perl 5.8.4-6, Perl-Tk 800.025-2), Win2K Pro, and  
#                   WinXP Pro (SP2) with ActivePerl 5.8.6.811.
# Known Issues:     (1)  Under Windows XP Pro SP2 and ActivePerl 5.8.6.811,
#                   Windows will not let me drop files onto Perl script icons,
#                   so you can use the drag-and-drop built into the script
#                   to select the PDF file (by dropping the file onto the  
#                   listbox widget) or you can simply run the script
#                   from the command line.  This issue is a function of
#                   how Windows works and may be addressed by some sort
#                   or "registry hack"[1] or "power toy".  Anyway, if you
#                   really want to be able to drop PDFs right onto your
#                   script icon, you can simply create a DOS batch file
#                   or WSH/VBS script which will run pdfmeta.pl.  Example:
#                   Type this one-liner into a file <pdfmeta.bat>:
#                      @perl pdfmeta.pl %1
#                   And save the file in the same folder as pdftk.exe and
#                   pdfmeta.pl.  Then make a shortcut to pdfmeta.bat and
#                   place that shortcut on your desktop.  Modify the shortcut
#                   properties so that the console window it brings up will
#                   be "minimized".  
#                      Right-Click -> Properties -> Run: Minimized
#                   Rename the shortcut: PDF Metadata Editor
#                   (2)  While the drag-and-drop (XDND, remote) works fine
#                   under Mandrake's KDE, it does not under Debian's (Kanotix)  
#                   KDE.  This may have something to do with window manager
#                   settings.  I just get a cursor of a circle with a line
#                   through it.  I will have to look into this...
#                                      
#                   [1] For a discussion of your registry hacking options, see:
#                   http://www.perlmonks.org/?node=122205
 
# This program provides a simple and limited graphical interface for
# pdftk.  It only provides the functionality to modify PDF metadata  
# (document properties) fields.
 
# Usage:    [ perl ] pdfmeta.pl [ <filename> ]
#
# You can either run from the command line, with or without a filename,
# or you can drag a file onto the script icon, if your desktop supports it,
# or you can execute the script by clicking the icon and you will be  
# offered a drag and drop interface.
 
# NOTE:     You must have write permissions for the directory which
#           contains the original PDF file, as well as for the original
#           PDF file itself.
           
# NOTE:     Modify the @fieldnames array to use a different set of document
#           properties (metadata fields).  Use only standard PDF field names:
#           Title, Author, Subject, Keywords, Creator, Producer, CreationDate,
#           ModDate, and Trapped.
 
# PDFTK can be found here: http://www.accesspdf.com/pdftk/
# See also: http://hacks.oreilly.com/pub/h/2422
 
# Here is the pdftk man page section on the update_info feature:
#
#   update_info <info data filename | - | PROMPT>
#     Changes  the  metadata  stored in a single PDF's
#     Info dictionary to match the  input  data  file.
#     The  input data file uses the same syntax as the
#     output from dump_data. This does not change  the
#     metadata  stored  in the PDF's XMP stream, if it
#     has one. For example:
#
#       pdftk in.pdf update_info in.info output out.pdf
 
# Also, the author of pdftk (Sid Steward) has this to say about the  
# XMP stream:
#
#     PDFs store this metadata is two places: the Info dictionary and
#     the XMP (RDF/XML) stream. Pdftk updates only the Info dictionary,  
#     but newer versions of Acrobat/Reader defer to the XMP stream.
#
#     I am currently working on new features for updating both the Info  
#     dictionary and the XMP stream.
#
#     One workaround might be to remove the PDF's XMP stream. You can do  
#     this using pdftk, but it also removes bookmarks and other PDF  
#     features.  Run:
#
#       pdftk mydoc.xmp.pdf cat output mydoc.no_xmp.pdf
#
#     to burn of the XMP stream. Then maybe the viewer will fall back to  
#     the Info dictionary with your updated data.
#  
# ( From: http://www.accesspdf.com/comment.php?mode=view&cid=153 )
 
# ====================================================================
# LICENSE: GNU GPL v2 or greater:  http://www.gnu.org/licenses/gpl.txt
# ====================================================================
 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
 
use strict;
use warnings;
use File::Basename;
use File::Spec::Functions;
use File::Copy;
use POSIX;
use Tk;
use Tk::DropSite;
use constant SUCCESS   => 1;
use constant FAILURE   => 0;
use constant TRUE      => 1;
use constant FALSE     => 0;
use constant PROG_NAME => "PDF Metadata Editor";
use constant PROG_VERS => "1.3";
use constant FILE_SUFF => "-meta";
 
my (%fields, $err_msg, $main);
my ($input_fn, $output_fn, $meta_fn);
 
#----------------------------------------------------------------------
# Configuration
#----------------------------------------------------------------------
 
# PDFTK command to use.  Include explicit path if necessary.
my $pdftk = "pdftk";
 
# You may modify the @fieldnames array to use a different set of document
# properties (metadata fields).  Use only standard PDF field names:
# Title, Author, Subject, Keywords, Creator, Producer, CreationDate,  
# ModDate, and Trapped.  The order of field names in this array is the  
# same as the order of the fields as listed on the user interface.
my @fieldnames = qw( Title Subject Author Keywords );
 
#----------------------------------------------------------------------
# Main Routine
#----------------------------------------------------------------------
 
&create_main_window();
&set_fonts();
&create_field_hash();
&get_input_file();
&MainLoop();
 
#----------------------------------------------------------------------
# Subroutines
#----------------------------------------------------------------------
 
sub create_main_window {
    $main = MainWindow->new();
    $main->title( PROG_NAME . " " . PROG_VERS );
}
 
sub set_fonts {
    my $font_family = 'Helvetica';
    my $large_size = 12;
    my $small_size = 10;
 
    $main->fontCreate( 'title',  
                       -size     => $large_size,  
                       -weight   => 'bold',  
                       -family   => $font_family,
                     );
    $main->fontCreate( 'header',  
                       -size     => $large_size,  
                       -family   => $font_family,
                     );
    $main->fontCreate( 'label',  
                       -size     => $small_size,  
                       -weight   => 'bold',  
                       -family   => $font_family,
                     );
    $main->fontCreate( 'button',  
                       -size     => $small_size,  
                       -family   => $font_family,
                     );
    $main->fontCreate( 'input',  
                       -size     => $small_size,  
                       -family   => $font_family,
                     );
}
 
sub create_field_hash {
    # Create hash to store metadata fields and values
    %fields = ();
    foreach my $field ( @fieldnames ) {
        $fields{$field} = '';
    }
}
 
sub get_input_file {
    # If a filename was given as an argument, use it
    if ( $ARGV[0] ) {
        $input_fn = $ARGV[0];
        &get_metadata() && &complete_gui();
    }
    else {
        # Otherwise offer drag and drop interface
        &create_drop_widgets();
    }
}
 
sub create_drop_widgets {
    my $drop_label = $main->Label (  
                 -text         => "Drag your PDF file into the box below:",  
                 -font         => 'title',
                 )
             ->pack (
                 -ipadx        => 12,  
                 -ipady        => 4,  
                 -padx         => 8,  
                 -pady         => 8,
                 );
 
    # Define a DropSite (source side) for Drag and Drop functionality
    my $drop = $main->Scrolled ( 'Listbox',
          -scrollbars   => "osoe",  
                 -height       => 1,
                 )
      ->pack (
                 -pady         => 8,
                 );
 
    # Tell Tk that $drop should accept drops.
    # When dropping occurs, execute the accept_drop callback.
    $drop->DropSite (
         -dropcommand => [\&accept_drop, $drop],
         -droptypes   => ( $^O eq 'MSWin32' ? 'Win32' : 'XDND' )
    );
}
 
sub accept_drop {
    my( $widget, $selection ) = @_;
    eval {
        $input_fn = $widget->SelectionGet (
         -selection => $selection, 'STRING' );
        $input_fn =~ s/^file:(.*)/$1/;
    };
    if ( defined $input_fn ) {
   $widget->insert( 0, $input_fn );
    }
 
    # After the file is dropped, hide the widgets, and present new widgets
    &clean_gui();  
    &get_metadata() && &complete_gui();
}
 
sub clean_gui {
    # Remove (hide) widgets on the form, if any
    my @w = $main->packSlaves;
    foreach (@w) { $_->packForget; }
}
     
sub complete_gui {
    &clean_gui();
 
    # Finish defining MainWindow attributes and add widgets
    $main->Label (  
                 -justify      => 'left',  
                 -text         => "Filename: \n$input_fn",  
                 -font         => 'label',
                 )
            ->pack (  
                 -anchor       => 'w',  
                 -padx         => 8,  
                 -pady         => 8,
                 );
    foreach my $field ( @fieldnames ) {
        $main->Label (  
                 -justify      => 'left',  
                 -text         => "$field: ",  
                 -font         => 'label',
                 )
            ->pack (  
                 -anchor       => 'w',  
                 -padx         => 8,
                 );
        $main->Entry (  
                 -textvariable => \$fields{$field},  
                 -font         => 'input',
                 )
            ->pack (  
                 -fill         => 'x',  
                 -padx         => 8,
                 );
    }
    $main->Button (  
                 -text         => "Save Changes and Exit",  
                 -font         => 'button',  
                 -command      => sub { &save_and_exit(); },
                 )
            ->pack (  
                 -side         => 'left',  
                 -ipadx        => 12,  
                 -ipady        => 4,  
                 -pady         => 8,  
                 -expand       => TRUE,
                 );
    $main->Button (  
                 -text         => "Close",  
                 -font         => 'button',
                 -command      => sub { exit },
                 )
            ->pack (  
                 -side         => 'right',  
                 -ipadx        => 12,  
                 -ipady        => 4,  
                 -pady         => 8,  
                 -expand       => TRUE,
                 );
}
 
sub get_metadata {
    my ( $input_fn_base, $input_fn_path, $input_fn_type );
    $err_msg = "Input file must be a (single) PDF.  Please try again.";
 
    # If more than one file is selected, then show abort error
    if ( defined( $output_fn ) ) {
 undef $output_fn;    
        &show_msg() && &create_drop_widgets() && return FAILURE;  
    }
 
    # Parse the file path, abort if not a PDF, create new file names
    ($input_fn_base, $input_fn_path, $input_fn_type) =  
        fileparse($input_fn, qr{\.pdf}i);
    $input_fn_type =~ /\.pdf/i || &abort_me() && return FAILURE;
    $output_fn = $input_fn_path . $input_fn_base . FILE_SUFF  
        . $input_fn_type;
    $meta_fn = $input_fn_path . $input_fn_base . '.mta';
 
    # Check to make sure we can read/write to files and directories
    $err_msg = "Cannot read from and/or write to input file!";
    (-r $input_fn && -w $input_fn) || &abort_me() && return FAILURE;
    $err_msg = "Cannot write to $input_fn_path directory!\n\n" .  
        "You must place the original file in a writable directory\n" .
        "before running this program.";
    -w $input_fn_path || &abort_me() && return FAILURE;
 
    # Dump the PDF's metadata to an ASCII text file and check for errors
    &dump_meta_data() || &abort_me() && return FAILURE;
    &check_for_dict() || &abort_me() && return FAILURE;
     
    # Read metadata text file into %fields hash
    $err_msg = "Error opening temporary metadata file for reading!";
    open ( METADATA, "<", $meta_fn )  
        || &abort_me() && return FAILURE;
    while ( <METADATA> ) {  
        foreach my $field ( @fieldnames ) {  
            if ( /^InfoKey: $field$/ ) {
                $_ = <METADATA>;
                chomp;
                s/^InfoValue: (.*)$/$1/;
                $fields{$field} = $_;
            }
        }
    }
    &close_and_delete_metadata_file();
}
 
sub check_for_dict {
    my $no_dict = FALSE;
 
    # Read metadata text file to check for "no dictionary" error
    $err_msg = "Error opening temporary metadata file for reading!";
    open ( METADATA, "<", $meta_fn ) || return FAILURE;
    while ( <METADATA> ) {  
        if ( /no info dictionary found/ ) {
    $no_dict = TRUE;
    last;
        }
    }
    close METADATA;
 
    # If there was no info dictionary, then create one and save metadata
    if ( $no_dict ) {
        # Delete metadata file
        unlink $meta_fn;
 
        # Use PDFTK to add a new info dictionary using the 'cat' feature
        &cat_pdf() || return FAILURE;
 
        # Move repaired file to orig. file, get metadata, then store in file
        my $cmd = "$pdftk \"$input_fn\" dump_data > \"$meta_fn\" 2>&1";  
        $err_msg = "Error running pdftk dump_data command!";
        move ( $output_fn, $input_fn ) && &dump_meta_data() || return FAILURE;
    }
    return SUCCESS;
}
 
sub dump_meta_data {
    my $cmd = "$pdftk \"$input_fn\" dump_data > \"$meta_fn\" 2>&1";  
    $err_msg = "Error running dump_data command!\n\n";
    system ( $cmd ) == 0 || ( &report_metadata_errors() && return FAILURE );
    return SUCCESS
}
 
sub report_metadata_errors {
    open ( METADATA, "<", $meta_fn ) || &abort_me() && return FAILURE;  
    local $/ = undef;
    $err_msg .= <METADATA>;
    &close_and_delete_metadata_file();
}
 
sub close_and_delete_metadata_file {
    close METADATA;
    unlink $meta_fn;
}
 
sub cat_pdf {
    # Get current metadata info from input file and store in text file
    $err_msg = "Error running pdftk cat command!";
    system ( "$pdftk \"$input_fn\" cat output \"$output_fn\" "  
        . "dont_ask 2>&1" ) == 0 || return FAILURE;  
    return SUCCESS;
}
       
sub abort_me {
    &clean_gui();
 
    # Show an error message and an exit button
    $main->Label (  
                 -text         => $err_msg,  
                 -font         => 'header',
                 )
             ->pack (
                 -ipadx        => 12,  
                 -ipady        => 4,  
                 -padx         => 8,  
                 -pady         => 8,
                 );
    $main->Button (  
                 -text         => "Exit",
                 -command      => sub { exit },  
                 -font         => 'button',
                 )
      ->pack (  
                 -ipadx        => 12,  
                 -ipady        => 4,  
                 -padx         => 8,  
                 -pady         => 8,
                 );
}
 
sub show_msg {
    &clean_gui();
 
    # Show an error message and an exit button
    $main->Label (  
                 -text         => $err_msg,  
                 -font         => 'header',
                 )
             ->pack (
                 -ipadx        => 12,  
                 -ipady        => 4,  
                 -padx         => 8,  
                 -pady         => 8,
                 );
}
 
sub save_and_exit {
    # Save new metadata to metadata file
    $err_msg = "Error opening temporary metadata file for writing!";
    open ( METADATA, ">", $meta_fn ) || &abort_me() && return FAILURE;
    foreach my $field ( @fieldnames ) {  
        print METADATA "InfoKey: $field\n";
        print METADATA "InfoValue: $fields{$field}\n";
    }
 
    # Write new metadata into new PDF file
    system ( "$pdftk \"$input_fn\" " .  
             "update_info \"$meta_fn\" " .  
             "output \"$output_fn\" dont_ask" );
 
    # Replace orig. PDF with new one, so that the old one has new metadata
    $err_msg = "Error updating PDF!  Changes are in:\n" . $output_fn;
    move ( $output_fn, $input_fn ) || &abort_me() && return FAILURE;
 
    # Delete metadata file.  (The delete does not work without opening first.)
    $err_msg = "Error opening temporary metadata file for reading!";
    open ( METADATA, "<", $meta_fn ) || &abort_me() && return FAILURE;
    &close_and_delete_metadata_file();
    exit;
}
 
__END__
 


 
ça fonctionne plutôt pas mal.

n°940303
Jeddo
A nice place to live
Posté le 03-08-2007 à 22:19:26  profilanswer
 

C'est pdftk ? (y'a pas  plus simple, genre une interface graphique :whistle:)


---------------
FREE DATOUNE
n°940306
Sagittariu​s
Posté le 03-08-2007 à 22:24:34  profilanswer
 

Oui c'est avec une interface graphique engendrée par le fichier perl.
 
Edit: # Requires:         pdftk version 1.12 or greater, Perl/Tk


Message édité par Sagittarius le 03-08-2007 à 22:29:13
n°940308
Jeddo
A nice place to live
Posté le 03-08-2007 à 22:37:08  profilanswer
 

Arf, pdftk est pas dans les dépôts de ma distro (Arch), et j'ai pas réussi à l'installer l'autre jour :/


---------------
FREE DATOUNE
n°940309
Jeddo
A nice place to live
Posté le 03-08-2007 à 22:38:39  profilanswer
 

Comment tu utilises ce script perl (si des fois j'arrive à installer pdftk) ?


---------------
FREE DATOUNE
n°940312
Sagittariu​s
Posté le 03-08-2007 à 22:56:11  profilanswer
 

Sans pdftk ni tk, tu ne seras guère avancé.
Pour exécuter le script perl, il suffit d'un perl nomduscript.pl

n°940315
Sagittariu​s
Posté le 03-08-2007 à 23:00:34  profilanswer
 

A priori, il est dans le dépot Unsupported et le paquetage est maintenu par Snowman http://aur.archlinux.org/packages.php

n°940318
Jeddo
A nice place to live
Posté le 03-08-2007 à 23:39:29  profilanswer
 

Sagittarius a écrit :

Sans pdftk ni tk, tu ne seras guère avancé.
Pour exécuter le script perl, il suffit d'un perl nomduscript.pl


Ok.
À quoi sert l'entrée Desktop en fait ?

Sagittarius a écrit :

A priori, il est dans le dépot Unsupported et le paquetage est maintenu par Snowman http://aur.archlinux.org/packages.php


Oui mais en fait non : http://bbs.archlinux.org/viewtopic.php?pid=265635
On peut pas le construire [:spamafote]  
Même dirctement avec les sources d'ailleurs, c'est le même problème.


---------------
FREE DATOUNE
n°940323
zecrazytux
Posté le 04-08-2007 à 00:22:23  profilanswer
 

screen ?


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
n°940324
Jeddo
A nice place to live
Posté le 04-08-2007 à 00:31:18  profilanswer
 

Peux-tu développer, je percute pas forcément [:tinostar]


---------------
FREE DATOUNE
n°940401
zecrazytux
Posté le 04-08-2007 à 16:42:10  profilanswer
 

j'ai juste regardé vite fait le premier post, tu ne parle pas de "screen" celon mon ctrl-f sur ff \O/
 
c'est un soft essentiel pourtant !


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
n°941493
blackhawke​r
IWH and almost anywhere
Posté le 08-08-2007 à 21:36:05  profilanswer
 

c'est moi où il n'y a rien sur les logiciels de sauvegarde?
j'utilise rsync et je n'en ai pas testé d'autres
si quelqu'un en connait un mieux pour faire des sauvegardes simples de disque à disque

n°941495
Gf4x3443
Killing perfection
Posté le 08-08-2007 à 21:56:47  profilanswer
 

unison?

n°941618
zoidberg
Gloire au crapaud Hypno!!
Posté le 09-08-2007 à 10:15:37  profilanswer
 

grsync?

n°942568
blackhawke​r
IWH and almost anywhere
Posté le 12-08-2007 à 21:43:41  profilanswer
 

oui j'utilise grsync, c'est l'interface pour rsync

n°951368
regdub
Posté le 08-09-2007 à 13:00:18  profilanswer
 

J'utilise rsync, mais ce que j'aimerais avoir en complément, c'est un soft qui vérifie régulièrement les fichiers, par exemple avec une vérif. de md5.
 
L'idée, ce serait de faire une sorte de rotation sur les fichiers pour pouvoir les vérifier tous en étalant la chose sur plusieurs lancements, genre vérifier 1/12 du disque chaque mois.
 
Ca doit pas être trop compliqué à faire, mais si ça existe déjà...


---------------
Legalize it @HFR
n°951376
multani
Dépressionnisé
Posté le 08-09-2007 à 13:28:54  profilanswer
 

Ya une option à rsync pour vérifier le checksum des fichiers, --checksum.
 
Par contre, pour faire la vérif petit bout par petit bout, à part faire sur des morceaux de ton arborescence rsync-ée, je vois pas trop ...

n°962667
regdub
Posté le 10-10-2007 à 16:52:45  profilanswer
 

Ah bah voilà une piste pour les checksums : http://www.wizy.org/wiki/ZFS_on_FUSE
 
C'est en phase beta, cela dit.


Message édité par regdub le 10-10-2007 à 16:53:41

---------------
Legalize it @HFR
n°1021296
petr0
Un ange passe
Posté le 13-03-2008 à 12:11:05  profilanswer
 

Question: Un logiciel de graphisme CAD 2D ?

n°1021436
mad_oc@wor​k
S=C³A/4ħG ?
Posté le 13-03-2008 à 16:19:49  profilanswer
 
n°1021443
Xavier_OM
Monarchiste régicide (fr quoi)
Posté le 13-03-2008 à 16:28:38  profilanswer
 

http://www.phun.at
 [:pioupiou]


---------------
Il y a autant d'atomes d'oxygène dans une molécule d'eau que d'étoiles dans le système solaire.
n°1021734
petr0
Un ange passe
Posté le 14-03-2008 à 11:44:41  profilanswer
 


 
J'aime bien le :We don't recommend any of these programs, cool  :lol:  
Sinon merci, je crois que j'ai trouvé mon bonheur avec qcad. Je suppose que les softs 3D sont plutôt orientés architecture mais je vais aller voir quand même.

n°1027852
Geddons
HFR old timer ?
Posté le 31-03-2008 à 13:40:38  profilanswer
 


 
P'tain, j'sais pas si c'est le but du projet mais ça ferait un super "simulateur" physique éducatif :jap:.

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16

Aller à :
Ajouter une réponse
 

Sujets relatifs
[ linux fichiers ] un gestionnaire comme nautilus ...Sun Solaris 9 + Windows 2000 + Linux
[humour] 01net teste linuxProblème avec disque dur sous linux :((
gestion de 2000 firewall linux par un offshore[LINUX] comment ajouter une ligne dans un fichier, avec un script
réseau windows<->linuxLogiciels de recuperation de données sous linux
Carte PCMCIA Firewire ou USB2 sous Linux pour HD externe ? 
Plus de sujets relatifs à : [important] --== LES LOGICIELS ESSENTIELS SOUS GNU/LINUX ==--


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR