tag:blogger.com,1999:blog-68423795863129510622024-02-07T14:05:02.387-08:00artista.frustradoArtista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-6842379586312951062.post-27830803376783664122020-10-30T09:16:00.001-07:002020-10-30T09:16:36.918-07:00Material override - Blender 2.8<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBH454U9X6tKV6xepvpjf8e_Qz90kMQIekw9ofe4ZnGPotTMDtH-90ysRChzHqYsBd3sDPmYiEa-U-SjpDK0rLToObmtO7nzeYJJoe-P3VtnHpJ204AFP-PanoheQ4KhbJwC7slBxoFwBt/s1051/F4QaN.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1051" data-original-width="335" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBH454U9X6tKV6xepvpjf8e_Qz90kMQIekw9ofe4ZnGPotTMDtH-90ysRChzHqYsBd3sDPmYiEa-U-SjpDK0rLToObmtO7nzeYJJoe-P3VtnHpJ204AFP-PanoheQ4KhbJwC7slBxoFwBt/s320/F4QaN.png" /></a></div><br /><p></p>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-73487431356524192542017-12-14T04:23:00.000-08:002017-12-14T04:23:14.383-08:00Video Editing with FFMPEG<br />
I had a task in which I had to edit a documentary. As always, I used Blender as my Video Editor e everything was going fine and fast. Until I had to render, that is. A task that usualy takes 1h, max, was taking almost 7hs. And there was a problem in one of the scenes and I had to replace the scene but I had no time to render the whole project again.<br />
<br />
So I did a web search on how to cut and concatenate videos with FFMPEG. And guess what, it worked.<br />
<br />
First I cut the vídeo, creating 2 files. One with the content before the scene and another with the content after the scene.<br />
<br />
<pre>ffmpeg -i RetratoFalado-720x480.mkv -ss 00:00:00 -t 00:13:53 -async 1 RetratoFalado-720x480-P1.mkv
ffmpeg -i RetratoFalado-720x480.mkv -ss 00:14:09 -t 00:20:00 -async 1 RetratoFalado-720x480-P2.mkv
</pre>
<br />
Then, with the new video file for the scene I concatenated the vídeos<br />
<br />
<pre>ffmpeg -f concat -safe 0 -i c-mergelist.txt -c copy RetratoFaladoFix.mkv
</pre>
<br />
Where the c-mergelist.txt file is a list of vídeos to be concatenated.<br />
<br />
<pre>file './RetratoFalado-720x480-P1.mkv'
file './RetratoFalado-720x480-chorando.mkv
file './RetratoFalado-720x480-P2.mkv'
</pre>
<br />
And, in just a few minutes, I had the documentary fixed.Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-80261421329302153262017-01-22T22:07:00.000-08:002017-01-22T22:07:26.573-08:00FFMPEG - stabilize video<span style="font-family: monospace;"><span style="background-color: white;">ffmpeg -i MVI_0311.MOV -vf deshake /tmp/output.mov</span><br />
</span>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-23018431926516115042016-12-02T06:21:00.002-08:002016-12-02T06:21:45.645-08:00FFMPEG - Convert between framerates<h2>
Conversion with fixed # of frames</h2>
extract the frames as rawvideo<br />
<br />
<pre>ffmpeg -i input.mov -f rawvideo -b 50000000 -pix_fmt yuv420p -vcodec rawvideo -s 1920x1080 -y temp.raw
</pre>
<pre></pre>
recreate the video with new framerate<br />
<br />
<pre>ffmpeg -f rawvideo -b 50000000 -pix_fmt yuv420p -r 24 -s 1920x1080 -i temp.raw -y output.mov
</pre>
<h2>
Conversion with fixed running length</h2>
<pre>ffmpeg -i input.mov -sameq -r 24 -y output.mov
</pre>
Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-21226175926925436122016-11-27T11:37:00.002-08:002016-11-27T11:37:48.030-08:00Increase video volume using FFMPEGTo increase the volume of the first audio track for 10dB use:
<br />
<br />
<pre>ffmpeg -i inputfile -vcodec copy -af "volume=10dB" outputfile
</pre>
Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-92045439244608412872016-09-21T06:53:00.001-07:002016-09-21T06:53:22.627-07:00Reduce PDF sizegs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=output.pdf input.pdfArtista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-1806890335499985212015-01-05T09:57:00.000-08:002015-01-05T09:57:01.183-08:00set okular as systemwide pdf viewer<span style="-webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> xdg-mime default okular.desktop application/pdf</span>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-13279540386597767312014-12-18T08:42:00.002-08:002014-12-18T08:42:08.491-08:00Using FFMPEG to generate a video from a sequence of images and an audio fileffmpeg -i %04d.png -i ../locust.mp3 -c:v libx264 -c:a aac -strict experimental -b:a 192k -shortest out.mp4Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-72642024847091029142013-07-24T14:35:00.002-07:002013-07-24T14:39:30.296-07:00Blender - Rendering from the command line<b>Render an Image:</b><br />
blender -b [directory of file] -o [output] -f [frame number] <br />
<br />
<b>Render a Video:</b><br />
blender -b [directory of file] -o [output] -s [start frame] -e [end frame] -a<br />
<br />
<a href="http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Command_Line">http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Command_Line</a> Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-6038858933310436992013-07-23T14:17:00.001-07:002013-07-23T14:17:14.294-07:00Creating a video using a sequence of images and FFMPEGI've been studying Blender for a while now and have developed a preference of saving the animations as a PNG image sequence instead of video files. Later I can load them in Blender's VSE, o kdenlive, and edit the video.<br />
<br />
But sometimes I would rather just see how the animation is going without having to load the files again and render them into a video file.<br />
<br />
ffmpeg -f image2 -i %04d.png animation.mp4Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-43397628274075438212013-02-21T07:07:00.002-08:002013-02-21T07:07:25.369-08:00Optimize PNG files with PngcrushOne of the problems I face often when working with png files on websites is their size. Gimp, Inkscape, Krita, MyPaint, Blender and many other applications are capable of exporting to PNG but the file is usually quite big.<br /><br />To solve this problem we can use a simple command line program called Pngcrush.<br /><br />Installation in debian based systems are as simples as running,as a super user or using sudo, the following command on console:<br /><br />apt-get install pngcrush<br /><br />To optimize an PNG image file is as simples as <br /><br />pngcrush -brute -e "Opt.png" filename.png<br /><br />-brute - Use force brute. It will be time consuming as it will try 114 different filter/compression methods. The image sice reduction factor is significant using thins option.<br /><br />-e "ext" - Specifi an extension for all output files. In the above example the new file is going to be called filenameOpt.png. This way you are not going to overwrite the original image.<br /><br />To optimize all files in the a directory you can use:<br /><br />pngcrush -brute -d "/home/user/path/to/dir/" *.png<br />Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-22258237182010737062011-09-21T08:41:00.001-07:002011-09-21T08:41:45.732-07:00Changing UI font size in BlenderWhen not actually reading on the computer screen, I like to have the UI as tiny as possible so it won't consume all that precious working space.<br />
<br />
On kde and Gnome applications I do that using their respective theme configuration files (eg. ..gtkrc-2.0).<br />
<br />
One of the biggest annoyances on Blender, for me, was that the UI, especially text, take up too much space and I was unable to resize it to a more comfortable – read small – size.<br />
<br />
Searching the web I found the answer at georgik's blog:
Menu → File → User Preferences.
In the System tab, which is the one that opens by default, change the DPI value at the General settings.Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-88125229339085138292011-06-17T05:17:00.000-07:002011-06-17T05:18:34.935-07:00conditional authentication in apacheJust so I can find it later..<br /><br /><pre><br />AuthType basic<br />AuthName "Sub Domain authentication"<br />AuthUserFile /var/www/virtual/.passwd<br />Require valid-user<br /><br />Satisfy any<br />Order deny,allow<br />Deny from all<br />Allow from 192.168.100.0/24<br /></pre>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-75815779471106114982011-05-25T04:53:00.000-07:002011-05-25T04:59:06.386-07:00ssh port forwardingAt home I have dnated port ssh to my trusty old PC. From time to time, while at work, I need to access services I run on that machine. For a while I used to use a OpenVPN vpn to gain access but lately I've had some forewall issues.<br /><br />So I went back to the good old openssh. To bind port 8080 at my notebook to port 8080 at home I just run the following command:<br /><br /> ssh artista@frustrado.no-ip.org -L 8080:127.0.0.1:8080Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-19950164865277190932011-04-16T18:03:00.000-07:002011-04-16T18:14:59.802-07:00Xorg + Wacom Tablet - configuring dual monitor with tablet working on only oneI must admit: I love my dual display setting, a 2880x900 virtual display composed of 2 19" monitors alamost as much I love sketching with my tablet. If you have seen any recent posts at <a href="http://pincelquebrado.blogspot.com">pincel quebrado (broken brush)</a> you can see how much I've been toying around with my tablets and Gimp and Krita.<br /><br />But dual display and tablet configurations always had one huge problem: the x-server only uses half of the height of the tablet so it can set the right width. It is a pain to use only half of the tablet so for many years I've disabled dual head and lately created a user for only this purpose that I'd start in another x-session.<br /><br />Digging through the piles of senseless info available in the web I finally found the solution to the problem, which now seems stupidly obvious: xsetwacom<br /><br />For setting dual display on my desktop I use:<br /><br /><pre><br /> xrandr --output DVI-0 --right-of VGA-0<br /></pre><br /><br />Which puts my DVI monitor at the right of my VGA monitor. Then use xset wacom to restrict my tablet to my DVI, right, monitor:<br /><br /><pre><br /> xsetwacom set "Wacom Intuos2 9x12 stylus" "MapToOutput" DVI-0<br /> xsetwacom set "Wacom Intuos2 9x12 eraser" "MapToOutput" DVI-0<br /> xsetwacom set "Wacom Intuos2 9x12 cursor" "MapToOutput" DVI-0 <br /></pre>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-39804283370765397542011-03-17T07:32:00.000-07:002011-03-17T07:34:29.301-07:00reset redmine password throught the commmand lineCopied and pasted form http://bitnami.org/forums/forums/redmine/topics/lost-redmine-adminstrator-password<br /><br />$ cd ${installdir}<br />$ ./use_redmine<br />$ cd ${installdir}/apps/redmine<br />$ ruby script/console production<br /><br />>> u = User.first<br />>> u.password = u.password_confirmation = "newpassword"<br />>> u.save<br />>> exitArtista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-9872997641390661232009-10-24T12:06:00.000-07:002009-10-24T12:12:47.424-07:00Compile Scribus from SVNI've made another script for compiling <a href="http://www.scribus.net">Scribus</a> desktop publishing app from it's SVN repository.<br /><br />As all my scripts for compiling stuff, I've published it at my github account.<br /><br />Do clone the git repository <a href="http://github.com/artistafrustrado/scriptsfrustrados">go here</a>. To download the script <a href="http://github.com/artistafrustrado/scriptsfrustrados/raw/master/compile/Scribus-SVN.sh">click here</a>.Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com1tag:blogger.com,1999:blog-6842379586312951062.post-71251127368105879362009-10-24T10:01:00.000-07:002009-10-24T10:14:10.211-07:00Compile cinepaint from CVSCinepaint is a fork of GIMP version 1.0.4 that emerged from the needs of the movie industry which were not being considered by the GIMP developers at the time. It's main purpose is to be a tool for frame-by-frame retouching, dirt removal, wire rig removal, render repair, background plates, and painting 3D model textures .It is widely used in the movie making industry, Hollywood, and has been used by the following companies for their movies:<br /><br /><ul><br /><li>Amalgamated Pixels (Elf, Looney Tunes)</li><br /><li>Computer Cafe (League of Extraordinary Gentlemen)</li><br /><li>Flash Film Works (Duplex, The Last Samurai)</li><br /><li>Hammerhead (Showtime, Blue Crush, 2 Fast, 2 Furious)</li><br /><li>Rhythm & Hues (Harry Potter, Cats & Dogs, Dr. Dolittle 2, Little Nicky, Grinch, Sixth Day, Stuart Little, Planet of the Apes)</li><br /><li>Sony Pictures Imageworks (Stuart Little II, Spider-Man)</li><br /></ul><br /><br />Since there is no version of Cinepaint packaged for Debian anymore, since it used to rely on GTK 1, I've decided to create another script for compiling it. It is based on Robin Rowe's <a href="http://cinepaint.cvs.sourceforge.net/viewvc/*checkout*/cinepaint/cinepain<br />t-project/cinepaint/ubuntu-cvs.sh?content-type=text/plain">ubuntu-cvs.sh</a> script <br /><br />I've published it with my other scripts for compiling Apps at my acount at github.com. To visit the project page at github <a href="http://github.com/artistafrustrado/scriptsfrustrados/">click here</a>. To download the latest version <a href="http://github.com/artistafrustrado/scriptsfrustrados/raw/master/compile/cinepaint-cvs.sh">click here</a>.Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-71235040959733622162009-08-04T06:39:00.000-07:002009-08-04T06:43:28.762-07:00Compiling the GIMP from GITAs the GIMP, as well as all gnome packages, have switched from SVN to GIT I've updated my compiling script to use the GIT sources.<br /><br />You can download the script form <a href="www.frustrado.com.br/download/scripts/Gimp-GIT.sh">here</a><br /><br />Below is the listing of the script <br /><br /><pre><br />#!/bin/bash <br /><br />co_compile_install()<br />{ <br /> DIR=$1 <br /> PARAMS=$2 <br /> COMMAND=$3 <br /> echo "Installing $DIR"<br /><br /> # bash check if directory exists<br /> if [ -d $DIR ]; then <br /> echo "Directory exists - UPDATING"<br /> cd $DIR<br /> #svn update<br /> git pull<br /> else<br /> echo "Directory does not exists - CHECKING OUT"<br /> #svn checkout "http://svn.gnome.org/svn/$DIR/trunk" "$DIR"<br /> git clone git://git.gnome.org/$DIR<br /> cd $DIR<br /> fi<br /><br /> if [ -n $COMMAND ]<br /> then<br /> eval $COMMAND<br /> fi<br /><br /> ./autogen.sh<br /> pwd<br /> ./configure --prefix=/opt/gimp-svn $PARAMS && make && make install<br /> cd ..<br />}<br /><br /># GLIB<br />co_compile_install "glib"<br /><br />export PATH=/opt/gimp-svn/bin:$PATH<br />export LD_LIBRARY_PATH=/opt/gimp-svn/lib<br />export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig<br /><br /># GTK<br />co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc" "sed -r 's#(automake|aclocal)-1.7#\1#g' -i autogen.sh"<br />#co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc"<br /># BABL<br />co_compile_install "babl"<br /># GEGL<br />co_compile_install "gegl" "" "sed -r 's:#include <ffmpeg/avformat.h>:#include <libavformat/avformat.h>:g' -i operations/external/ff-load.c"<br /><br />export PATH=/opt/gimp-svn/bin:$PATH<br />export LD_LIBRARY_PATH=/opt/gimp-svn/lib<br />export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig<br /><br /># GIMP<br />co_compile_install "gimp" "--enable-gimp-remote --prefix=/opt/gimp-svn/ --with-gimpdir=.gimp-svn"<br /></pre>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com1tag:blogger.com,1999:blog-6842379586312951062.post-23861554423273182642009-08-04T06:24:00.000-07:002009-08-04T06:38:51.149-07:00Compiling Sane from GITMy trusty old scanjet 4c just gave up a few months ago and all I was left with was a crappy Scanjet ScanJet G2710, which has a really basic driver. And basic I mean it can only be trusted to scan BW drawings, not even grayscale gets a decent result.<br /><br />But that was not the only problem. Even though I use Debian SID (unstable) in all my workstations the sane backends were not detecting my scanner so I've had to compile from the sources. Being lazy, one of the big virtues of a hacker according to Eric Raymond, I've created a bash script to fetch the sources from CVS, compile and install sane.<br /><br />Now that sane has switched to GIT I've rewrote the script and added a patch to xsane so I would not have to manually declare the SANE_CAP_ALWAYS_SETTABLE constant, which has been removed by sane but is still used by xsane. I seems Oliver Rauch has some problems with the way the sane development is going and is not updating xsane to conform to the changes made to the sane backends.<br /><br />You can download the script form <a href="www.frustrado.com.br/download/scripts/Sane-GIT.sh">here</a><br /><br />Below is the listing of the script <br /><pre><br />#!/bin/bash<br /><br />co_compile_install()<br />{<br /> DIR=$1<br /> PARAMS=$2<br /> COMMAND=$3<br /> if [ -d $DIR ]; then<br /> echo "Directory exists - UPDATING"<br /> cd $DIR<br /> #svn update<br /> git pull<br /> else<br /> echo "Directory does not exists - CHECKING OUT"<br /> git clone git://git.debian.org/sane/$DIR<br /> cd $DIR<br /> fi<br /><br /> if [ -n $COMMAND ]<br /> then<br /> eval $COMMAND<br /> fi<br /><br /> ./autogen.sh<br /> pwd<br /> ./configure --sysconfdir=/etc --prefix=/usr && make && make install<br /> cd ..<br />}<br /><br />co_compile_install sane-backends.git<br />co_compile_install sane-frontends.git<br /><br />wget ftp://ftp.sane-project.org/pub/sane/xsane/xsane-0.996.tar.gz<br />tar -zxvf xsane-0.996.tar.gz<br />cd xsane-0.996<br /><br />rm -f /tmp/xsane-back-gtk.h.diff<br />cat >> /tmp/xsane-back-gtk.h.diff << EOF<br />55a56<br />> #define SANE_CAP_ALWAYS_SETTABLE 7<br />EOF<br />patch src/xsane-back-gtk.h /tmp/xsane-back-gtk.h.diff<br />rm -f /tmp/xsane-back-gtk.h.diff<br /><br />./configure --sysconfdir=/etc --prefix=/usr && make && make install<br /></pre>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-79304760903899014672009-06-01T08:54:00.000-07:002009-06-01T08:57:23.271-07:00TRIP-SL - FISL 10According to Ricardo Soares Guimarães there are only a few spots on the bus. Below is the logo I developed for the trip.<br /><br />For more information about the trip check <a href="http://www.tripsl.com.br">TRIP-SL</a>.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPIVNKtpmUO1rEzE1rHB4M4qROzBccAFSY0M3Zps225HSlTaH9NYg3R2G8g5AHExyAyp6-CbvUNjTd_VVQ5jxYhmAysLPlSgic2UQJurFCZWxKXZZPji8m4NrAdZqJc8G6kNfwQ0LYSHAU/s1600-h/tripsl.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 209px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPIVNKtpmUO1rEzE1rHB4M4qROzBccAFSY0M3Zps225HSlTaH9NYg3R2G8g5AHExyAyp6-CbvUNjTd_VVQ5jxYhmAysLPlSgic2UQJurFCZWxKXZZPji8m4NrAdZqJc8G6kNfwQ0LYSHAU/s320/tripsl.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5342388529917683794" /></a>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-13332262107968632692009-03-15T20:26:00.000-07:002009-03-15T20:34:55.240-07:00Compile Inkscape from svn - packagedAs it my seem obvious to anyone who know me, I do not like to wait for new features to fall into the stable releases of debian, especially when the subject are ilustration and design apps. I've been compiling and running paralell versions of gimp, inkscape and scribus for a quite a few years now. Today, while compiling inkscape into my notebook, 'cause my desktop is "in mantainance" provenient of a font failure, I decided to package the script into a debian package which will install all the dependencies for compiling, check out inkscape from it's SVN repository and compile it with inkboard, python and perl suport.<br /><br />The package is at: <a href="http://www.frustrado.com.br/download/inkscape-frustrado-svn_0.0.1-1_all.deb">inkscape-frustrado-svn_0.0.1-1_all.deb</a><br /><br />To install it run:<br /><pre><br /> wget http://www.frustrado.com.br/download/inkscape-frustrado-svn_0.0.1-1_all.deb<br /> dpkg -i http://www.frustrado.com.br/download/inkscape-frustrado-svn_0.0.1-1_all.deb<br /></pre><br /><br />Be patient. It may take quite a while.Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-76843068351961798122009-03-11T18:41:00.000-07:002009-03-11T18:50:38.920-07:00Installing GIMP from SVNI've been a great fan o the GIMP for many years now. The problem is that I'm not patient enough to wait until the new features apear on he stable versions so I've been running 2 versions of GIMP on my computer: the debian packaged one and one compiled from the project SVN repository.<br /><br />Below is my bash script to install/update. If you want to download the shell script I have uploaded it <a href="http://www.frustrado.com.br/download/Gimp-SVN.sh">here</a>.<br /><br /><br /><pre><br />#!/bin/bash<br /><br />co_compile_install()<br />{<br /> DIR=$1<br /> PARAMS=$2<br /> COMMAND=$3<br /> echo "Installing $DIR"<br /><br /> # bash check if directory exists<br /> if [ -d $DIR ]; then<br /> echo "Directory exists - UPDATING"<br /> cd $DIR<br /> svn update<br /> else <br /> echo "Directory does not exists - CHECKING OUT"<br /> svn checkout "http://svn.gnome.org/svn/$DIR/trunk" "$DIR"<br /> cd $DIR<br /> fi<br /><br /> if [ -n $COMMAND ]<br /> then<br /> eval $COMMAND<br /> fi<br /><br /> ./autogen.sh<br /> ./configure --prefix=/opt/gimp-svn $PARAMS && make && make install<br /> cd ..<br />}<br /><br />apt-get install automake1.7<br /><br /># GLIB<br />co_compile_install "glib" <br /><br />export PATH=/opt/gimp-svn/bin:$PATH<br />export LD_LIBRARY_PATH=/opt/gimp-svn/lib<br />export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig<br /><br /># GTK <br />co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc" "sed -r 's#(automake|aclocal)-1.7#\1#g' -i autogen.sh" <br />co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc"<br /><br /># BABL<br />co_compile_install "babl" <br /><br /># GEGL<br />co_compile_install "gegl" "" "sed -r 's:#include <ffmpeg/avformat.h>:#include <libavformat/avformat.h>:g' -i operations/external/ff-load.c" <br /><br />export PATH=/opt/gimp-svn/bin:$PATH<br />export LD_LIBRARY_PATH=/opt/gimp-svn/lib<br />export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig<br /><br /># GIMP<br />co_compile_install "gimp" "--enable-gimp-remote --prefix=/opt/gimp-svn/ --program-suffix=-svn --with-gimpdir=.gimp-svn" <br /><br /></pre>Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com1tag:blogger.com,1999:blog-6842379586312951062.post-26071134656379540382009-03-09T12:43:00.000-07:002009-03-09T12:46:57.907-07:00Web Services Tutorial<a href="http://www.uzed.com.br">Uzed</a> asked me to write a tutorial about SOAP using languages other than PHP. After much thought I decided to do a <a href="http://www.frustrado.com.br/main/index.php?title=Web_Services">Introduction to Web Services</a> tutorial as I think many of the people he was trying to explain soap do not have a good grasp on the basics of web servrices.<br /><br />OBS: The tutorial is in Portuguese (pt_BR)Artista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0tag:blogger.com,1999:blog-6842379586312951062.post-59478654014275145042009-02-27T09:33:00.000-08:002009-02-27T09:34:07.759-08:00Create ISO images from cd and dvdJust a quick one<br /><br />dd if=/dev/dvd of=dvd.iso # for dvd<br />dd if=/dev/cdrom of=cd.iso # for cdrom<br />dd if=/dev/scd0 of=cd.iso # if cdrom is scsiArtista frustradohttp://www.blogger.com/profile/00939975951036182399noreply@blogger.com0