Contest: vinci un fantastico MacBook Pro 13” con Apple Tribù

July 29th, 2010

Avete sempre desiderato vincere un Mac? Ebbene, Apple Tribù, sito di notizie inerenti il mondo Mac, iPhone, iPad, e tanto altro, vi da la possibilità di vincerne uno, semplicemente partecipando al concorso indetto.

Il modello messo in palio è il fantastico MacBook Pro 13 pollici (modello base) con processore Intel Core 2 Duo da 2,4Ghz, 4GB di RAM, Processore grafico NVIDIA GeForce 320M e Hard Disk da 250GB.

Per partecipare ci vogliono appena 5 minuti: vi basterà seguire le semplici istruzioni riportate sulla pagina del concorso, e sperare che siate il fortunato vincitore!

Il concorso è valido fino alle ore 15.00 del 14 Agosto 2010.

In sostanza, partecipate numerosi e grazie ad Apple Tribù!

WaYdotNET Uncategorized

mini backup with rsync

July 1st, 2010
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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
 
# il comando si deve chiamare con:
demo="sync_to_waydotnet [up or down] local_folder remote_folder" 
 
# VARIABILI
base="~/backup"
type=$1
local_folder=$2
remote_folder=$base/$3
host="HOST.EXT"
user="user"
 
if [ $type = "up" ] ; then
	echo "UPLOAD $local ==> $remote"	
	rsync -lrpuazhv --delete -e ssh $local_folder $user@$host:$remote_folder
elif [ $type = "down" ] ; then
	echo "DOWNLOAD ...... $remote ==> $local"
	rsync -lrpuazhv --delete -e ssh  $user@$host:$remote_folder $local_folder
else
	echo -e "la forma corretta da scrivere e' \n $demo'"
fi
echo "Have a nice day :P"

WaYdotNET Script, tips , , ,

how to highlight and bookmarks pdf files on linux

June 28th, 2010

Because i need to highlight and bookmarks pdf file on linux/windows, only solution wich i’ve found is
Foxit Reader 3.3.1 for Windows

[UPDATE]
Foxit Reader 4.0 for Windows link 06/29/10

The linux version is too old and not have these function, but with wine work well (you need also mdac2.8 and jet4.0)

tips 4 me:
create foxit in $HOME/bin

1
2
#!/bin/sh
wine /home/waydotnet/wine_tools/Foxit\ Reader.exe $1

and

1
chmod +x foxit

If you found another solution, please comment :D

Bye

WaYdotNET tips , , ,

My notes

June 14th, 2010

1) compile wxruby 64bit system:

1
export CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=-fPIC

2) Set proxy:

1
export http_proxy="http://user:pass@proxy:port"
1
export ftp_proxy="http://user:pass@proxy:port"

WaYdotNET tips

RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! :D [UPDATE]

February 12th, 2010

RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! :D
Ispirate from :
installing rmagick with mingw and ruby 1.9
and
http://groups.google.com/group/rubyinstaller/browse_thread/thread/c837c4438d91208b
but , on my laptop don’t work….

In my case :
1) Install Ruby 1.9.1 (i386-mingw32) from http://www.rubyinstaller.org/, direct link

2) Install Development Kit (DevKit) from http://www.rubyinstaller.org/addons.html, direct link

3) Install ImageMagick 6.5.6-8-Q8 from http://www.imagemagick.org , direct link with header !!!!

4) Download Rmagick from source : http://github.com/rmagick/rmagick , direct link or git clone git://github.com/rmagick/rmagick.git

5) Replace !ImageMagick Path!\config\type-ghostscript.xml with http://www.imagemagick.org/source/type-windows.xml

6) Set enviroment variable :
set CPATH=!ImageMagick Path!\include
set LIBRARY_PATH=!ImageMagick Path!\lib
set PATH=!ImageMagick Path!
[EDIT]
set PATH = !ruby_path!\bin
set PATH = !ruby_path!\devkit\msys\1.0.11\bin
set PATH = !ruby_path!\devkit\gcc\3.4.5\bin
[EDIT]
7) run “ruby setup.rb” [EDIT] from msys.bat ( !ruby_path!\devkit\msys\1.0.11\msys.bat ) [EDIT]

8) run “ruby setup.rb install” or “gem build *.gemspec” and “gem install *.gem”

9) Enjoy :D

identify –version
Version: ImageMagick 6.5.6-8 2009-10-03 Q8 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

Many thanks to :
Rmagick staff => http://rmagick.rubyforge.org/
rogerdpack => http://betterlogic.com
Alexey Borzenkov => not have link, sorry
Luis Lavena => http://blog.mmediasys.com
RubyInstaller => http://www.rubyinstaller.org
RubyInstaller Group => http://groups.google.com/group/rubyinstaller
puts WaYdotNET => Carlo Bertini

WaYdotNET ruby, tips , , , , ,