b4r7 blocco note 2.0

13lug/080

xampp su ubuntu

per quanto riguarda XAMPP è più semplice di quanto pensassi:
http://ubuntuforums.org/showthread.php?t=223410
This is a how-to for setting up a web development environment easily. This guide will install the XAMPP lampp stack into /opt, setup an easy way to start it up and shut it down, and link a folder in your home directory to the webserver.

WARNING
This guide is aimed at a development environment only and should not be used as a public webserver. To setup a public webserver follow the directions on the Ubuntu wiki https://help.ubuntu.com/community/ApacheMySQLPHP

As this is Ubuntu, all the major parts of a typical web server are included (in the main repo, or on the Ubuntu Server CD) and this is a great way to setup a server. The ubuntu developers have prepared a great web server and have made the process as seemless as possible.

But what if even the official way is still to complicated? What if you just want a quick web server for development?

Fortunately there is the XAMPP project: http://www.apachefriends.org/en/xampp.html. The XAMPP project bundles Apache, PHP4 & 5, Perl, mySQL, and a bunch of other utilities/applications into an simple package for Mac OSX, Windows, Solaris, and Linux. Obviously this HOWTO only deals with the linux version.

For those of you with already existing Apache/mySQL/php installations it installs everything into /opt so it doesn't conflict with any other installation, and it is completely setup and ready to run.

Install XAMPP
Two easy steps:
- Download the most recent version of XAMPP: (at time of writing 1.6.7)
http://prdownloads.sourceforge.net/xampp/xampp-linux-1.6.7.tar.gz?download
(Source URL: http://www.apachefriends.org/it/xampp-linux.html#374)
- Extract the archive to /opt using sudo: (make sure you are in the directory that you downloaded the archive to)

sudo tar xvfz xampp-linux-1.6.7.tar.gz -C /opt

Start XAMPP
To start it up, open a terminal and type this:

sudo /opt/lampp/lampp start

Stop XAMPP
To stop it, open a terminal and type this:

sudo /opt/lampp/lampp stop

Additional XAMPP commands
To see additional commands, open a terminal and type this:

sudo /opt/lampp/lampp

Sweet XAMPP Control Panel

img108.imageshack.us/img108/5647/screenshotxamppcontrolpanelfj6.png

To use the sweet gtk/python control panel:
Run in a terminal:

gedit ~/.local/share/applications/xampp-control-panel.desktop

Paste the following into the open file and save and exit.

[Desktop Entry]
Comment=Start/Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"
Icon[en_CA]=/usr/share/icons/Tango/scalable/devices/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start/Stop XAMPP
Type=Application
Icon=/usr/share/icons/Tango/scalable/devices/network-wired.svg

"XAMPP Control Panel" will show up in your applications menu under Internet. Use the Alacarte Menu Editor to move it around.

Test to see if XAMPP is running
Once XAMPP is up and running open firefox and go to: http://localhost/

You should see the XAMPP test page:
static.apachefriends.org/images/380.jpg

Location of files and uploading
XAMPP by default uses /opt/lampp/htdocs as the root web directory. The easiest way to start working on files is to link a folder in your home directory into this directory.
My user name is peter so I have /home/peter/public_html linked to /opt/lampp/htdocs/peter. So if I navigate to http://localhost/peter/ I get a listing of all the files/folders in that directory. (As long is there isn't a index.php/html/etc file)
To set this up, run in a terminal:
- Make public_html directory in home directory:

mkdir ~/public_html

- Link to /opt/lampp/htdocs

sudo ln -s ~/public_html /opt/lampp/htdocs/$USER

Now any files and folders you place in ~/public_html will be published to your personal webserver.
Bookmark http://localhost/username to make this easy to access.

WARNING - SECURITY
http://www.apachefriends.org/en/xampp-linux.html#381

Open holes:
- The MySQL administrator (root) has no password.
- The MySQL daemon is accessible via network.
- ProFTPD uses the password "lampp" for user "nobody".
- PhpMyAdmin is accessible via network.
- Examples are accessible via network.
- MySQL and Apache running under the same user (nobody).

This doesn't leave your whole system wide open, but someone could hack your XAMPP installation, so be wary.
To fix most of the security weaknesses open a terminal and run:

sudo /opt/lampp/lampp security

Feedback
Please read this post.

---- EDIT - July 28, 2006 ----
Minor Edits
---- EDIT - August 1, 2006 ----
Re-did xampp control panel shortcut to make it easier.
---- EDIT - August 16, 2006 ----
Added warning for public web servers and edited intro to make it more accurate.
---- EDIT - September 1, 2006 ----
Added sudo to security command.

Inserito in: piccì, siti, tips Nessun commento
1lug/080

Rimuovere collegamenti ipertestuale in Word

Word
avete appena fatto copia-incolla da wikipedia a MS Word, ma tutti i richiami ai vari lemma vi rompono le balle? si danno fastidio anche a me, viva google e viva DonNetHell:

Se avete un documento di Word pieno di collegamenti ipertestuali, ma volete rimuoverli lasciando inalterato il testo che conteneva il link:
- Selezionate la parola o tutto il testo
- Premete CTRL-SHIFT-F9
Ed ecco il vostro testo senza collegamenti

fonte: http://blogs.dotnethell.it/

30giu/080

stampare file pdf protetti da password

acrobat reader

Hai un file pdf protetto da password e che può essere letto ma non stampato?
Eccome come sbloccare il file:
Prima di tutto hai bisogno di due programmi:
Ghostscript: http://pages.cs.wisc.edu/~ghost/
GSView: http://pages.cs.wisc.edu/~ghost/
A questo punto apri "Start -> Programmi -> Ghostgum -> GSView". E apri e stampa il file protetto.
Puoi salvare una versione non protetta del file con GSView cliccando "File -> Converti -> OK" e salvandolo con un altro nome (new.pdf).

fonte: http://www.giornale.fm/

30mag/081

zen micro su vista

zen micro
Avete installato il cd per il vostro lettore Creative Zen Micro, ma il Vista non ve lo riconosce ancora?
Seguite questa breve procedura (solo per Windows Vista):
1. Scarica il driver per XP dal portale della Creative: QUI (link corretto 6-giu-2009: qui - 13-ott-2009, link diretto: qui)
2. Salvalo dove ti pare (perché non sul Desktop!?)
3. Tasto destro del mouse -> Proprietà
4. Selezionare la scheda "Compatibilità"
5. Nel label "Modalità compatibilità" attivare l'opzione "Esegui il programma in modalità compatibile per" e selezionare "Windows XP (Service Pack 2)"
6. Nel label "Livello di privilegio" spuntare "Esegui questo programma come amministratore"
7. Dare l'ok ed eseguire, si avvierà la procedura di installazione.
[oppure: 6b. Dare l'ok, click destro -> "Esegui come amministratore"]
8. Dovrebbe essere tutto a posto, collegate il lettore via USB ed il gioco è fatto, perlomeno a me è andata bene!

VISTA ONLY!
1. Download the XP driver software from the Creative site (US Version: HERE, Click ZEN and Jukebox driver)
2. Save it to desktop.
3. Right click, properties.
4. Go to "Compatibility" tab.
5. Check the box and run as compatible for XP SP2.
6. Run the program. It SHOULD run as Administrator, if not right click, run as Admin
7. Complete the prompts. The installer may take a while, but if it gets to 65% (and past the driver install dialog), then your drivers will have installed. If it hangs (mine did), end the task from the task manager.
8. Disconnect and Reconnect Zen.
9. It should recognize the player, so now update to the latest firmware.

fonte: http://techinhiding.blogspot.com

Inserito in: piccì, siti 1 commento
8mag/080

a caccia di suoni

soundsnapnon mi sento creativo... viva il copia e incolla!

Ecco un ottimo sito dove potete trovare ben 49.386 effetti sonori suddivisi in 16 categorie scaricabili gratuitamente da aggiungere ai vostri video, amatoriali e non. Si parla di suoni quindi e non di canzoni in formato mp3 da mettere in background, ma nella categoria "music loop" ad esempio potete trovare qualche pezzo che ne faccia le veci.

http://www.soundsnap.com