11

winetricks Gentoo 64-bit WINEPREFIX

if you have this message you’are using a 64-bit WINEPREFIX, most of winetricks hasn’t been fixed for win64 yet. rm $HOME/.wine -rf export WINEARCH=win32 export WINEPREFIX=$HOME/.wine/ now, you use wine 32 bit into gentoo (or other distro) 64 bit :D

October 14, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#64bit #gentoo #Script #tips #wine #winetricks
11

mini backup with rsync

#!/bin/bash # Backup file remote/local # By Carlo Bertini [WaYdotNET] # il tutto utilizzando rsync senza scomodare subversion # RSYNC OPTION # -r => ricorsivo # -l => copy symlinks as symlinks # -p => preserve permissions # -v => verbose # -u => update, ignorare i file che sono più nuovi nella destinazione # -a => archive mode # -z => comprime i file durante l invio # -h => rendere leggibile l output # –delete => cancello i file estranei nella destinazione...

July 1, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#backup #linux #rsync #Script #Script #tips
11

Photo Resize from console :D

Qui raccolgo un po di script che mi sono fatto x la vita di tutti i giorni :D Photo resize (photo_resize) piccolo script in ruby che serve per fare delle thumbnails di foto, passando almeno la cartella contenente le foto (strano :D) Require: ruby (test with: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] ||ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux] || jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) 64-Bit Server VM 1....

February 2, 2010 · 2 min · Carlo Bertini [WaYdotNET]
#optiflag #photo #photo resize #resize #rmagick #ruby #Script
11

[SOLVED] log4r 1.1.4 & ruby 1.9.1 => GDC.rb and NDC.rb syntax error, unexpected ':', expecting keyword_then or ';' or 'n'

EDIT: SOLVED , vedere commento :D log4r 1.1.4 & ruby 1.9.1 => GDC.rb and NDC.rb syntax error, unexpected ‘:’, expecting keyword_then or ‘;’ or ’n’ GDC.rb --- GDC.rb Thu Jan 28 17:03:12 2010 +++ GDC.rb.new Thu Jan 28 16:50:37 2010 @@ -13,10 +13,10 @@ private\_class\_method :new def self.check\_thread\_instance() - if ( Thread.main != Thread.current ): + if ( Thread.main != Thread.current ) raise "Can only initialize Global Diagnostic Context from Thread....

January 31, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#linux #log4r #mingw32 #ruby #ruby 1.9.1 #Script
11

[SOLVED] ruby 1.9.1 mingw32 wxruby => undefined reference to 'wxGraphicsRenderer::CreateBitmap'

Hi to all, i’ve compiled wxWidgets with this options: ./configure –enable-optimise –enable-stl –enable-unicode –disable-threads –enable-static –with-opengl –disable-shared –enable-monolithic –disable-debug –with-libjpeg=builtin –with-libpng=builtin –with-zlib=builtin –enable-graphics_ctx –enable-mediactrl –enable-unicode –with-libtiff=builtin –with-expat=builtin –enable-gui -enable-xrc –enable-mdi –enable-gif –enable-pcx –enable-iff –enable-png –enable-xpm and also compiled StyledTextCtrl . My system is : Windows xp sp3 ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] gcc.exe 3.4.5 swig.exe 1.3.38 rake 0.8.7 when compiled wxruby (from svn), i’ve recived this error: c:msysMinGWbin..libgccmingw323.4.5……..mingw32binld.exe: warning: auto-importing has been activated without –enable-auto-import specified on the command line....

January 31, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#mingw32 #ruby #Script #wxruby
11

Prova inserimento codice

Questa è una piaccola prova x inserire del codice module Carlo class Bertini def self.chisono? puts “WaYdotNET” end end end Carlo::Bertini.chisono? => WaYdotNET

January 31, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#csharp #code #ruby #Script