20 April 2012

¡ Puzle !

Increiblemente vi en un libro infantil el siguiente angloamericanismo:

Asi que desde ahora seguire escribiendo: Puzle, Manayer y algún otra palabra novedosa aceptada por la RAE.

puzle.
(Del ingl. puzzle).
1. m. rompecabezas (‖ juego).



16 April 2012

WLS extensions: JRF, OWSM, etc.

WebLogic Server 10.3.6 brings bundled JRF, OWSM and other extensions that many times are necessary for integration with other technologies.

Usually was necessary to install the whole Fusion Middleware, now it is much easier for development to obtain those libraries.


15 April 2012

ImageMagick Cheat Sheet

The following commands were taken from the internet, I will give acknowledge when found:

Windows version now uses "magick" as the command:

magick vlcsnap-1280-07-14-21h45m00s867.png -crop 400x360+0+0 i1.png


magick ... # in place of `convert`
magick identify ... # in place of `identify`
magick mogrify ... # in place of `mogrify`
magick compare ... # in place of `compare`
magick compose ... # in place of `compose`


--------------------

create thumbnail:
convert -geometry 100x100 -quality 100 orgfilename.jpg thumbfilename.jpg

rotate an image:
convert orgfilename.jpg -rotate 60 rotated60.jpg

croping an image:
convert orgfilename.jpg -crop 128x128+50+50 cropped.jpg
magick filename.jpg -crop 128x128+50+50 cropped.jpg

croping an image for several files:

for file in *.png; do convert -crop 863x675+227+51 "$file" "x6/$file"; done 

convert a directory of png images to gif:
mogrify -format gif *.png
 
mogrify -format webp *.png 

watermarking with text:
convert orgfilename.jpg -font Arial -pointsize 20 -draw "gravity south fill black text 0,12 'Watermark' fill white text 1,11 'Watermark' " wmark_text_drawn.jpg

convert pdf to png
convert pdffile.pdf -colorspace RGB -resample 72×72 -units PixelsPerInch -quality 90 -resize 500×500 -size 500×500 pngfile.png


Convert jpg to pdf
convert *.jpg output.pdf
 

convert input.png PNG24:output.png

convert i00.png -crop 319x160+8+24 PNG24:r00.png

For several images to a single PDF: (yeah, not magick)

img2pdf --out z2.pdf *.png

 

Compression for PNG:

pngquant *.png

PDF too big (from jpg)
convert -quality 60 *.jpg output.pdf


Resize an image:
convert image.jpg -resize 800 image.png
(porcentaje no me funco bien)

mogrify -path xx -resize 800 *.jpg

cd to the directory where your images are located (temp) after creating a new directory to hold the changed files (say, temp2)
mogrify -path fullpathto/temp2 -resize 60x60% -quality 60 -format jpg *.png

Compare to images:
compare image1 image2 -compose src diff.png
estas imagenes pueden ser en diferente formato inclusive ! 
compare PC-200617-1248-30.pdf PC-270717-1119-53.pdf diff.pdf (pdf)
 
Append two images:

convert image1.jpg image2.jpg -append result.jpg 

To verify ImageMagick is working properly, type the following in a Windows Command Prompt window:

convert logo: logo.gif 
identify logo.gif

imdisplay


To see details of the image: (information) 

identify image.ext

identify dp1.jpg
dp1.jpg JPEG 300x374 300x374+0+0 8-bit sRGB 34082B 0.000u 0:00.009

magick identify image

magick identify -verbose r00.png

Invert colors:
convert input.png -channel RGB -negate output.png 


Black & White colors:

convert input.png -colorspace Gray output.png 

Problems with spaces and hyphens in filenames

find . -name "* *" -type f | rename 's/ /_/g'

 

 

Robocopy

un muy buen copiador para perifericos que esten con problemas

ROBOCOPY source destination /MIR


   /MIR :: Mirror a complete directory tree.


   /R:n :: number of Retries on failed copies: default 1 million.
   /W:n :: Wait time between retries: default is 30 seconds.


   /S :: copy Subdirectories, but not empty ones.
   /E :: copy subdirectories, including Empty ones.

i.e.:

robocopy C:\development F:\backup\development /r:2 /w:2 /s


(este copia recursivo, reintentando solo 2 veces y si se ejecuta de nuevo excluye a los archivos ya copiados ~mirroring).


Un buen resumen aparece al final:
(tambien podria ser mas verboso)


------------------------------------------------------------------------------
                Total    Copied   Skipped  Mismatch    FAILED    Extras
     Dirs :     11882     11881         1         0         0         0
    Files :    105989    105989         0         0         0         0
    Bytes :   1.541 g   1.541 g         0         0         0         0
    Times :   0:50:42   0:48:38                       0:00:00   0:02:03


    Speed :              567158 Bytes/sec.
    Speed :              32.453 MegaBytes/min.


    Ended : Sun Apr 15 19:33:30 2012

hay varias GUI no-oficiales y una oficial para robocopy, entre ellas: http://betterrobocopygui.codeplex.com/



Blog Archive

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.