Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "AlessandroLosavio/Prove1"
Differenze tra le versioni 23 e 24
Versione 23 del 11/06/2011 14.13.27
Dimensione: 22175
Commento:
Versione 24 del 11/06/2011 17.35.30
Dimensione: 22124
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 82: Linea 82:
Per i computer che erano destinati per la chiesa ho dato il codecs Fluedo (ho comprato una copia per loro) a causa del loro pseudo buisness attività. Per i computer che erano destinati per la chiesa ho dato il codecs Fluedo (ho comprato una copia per loro) a causa del loro pseudo business attività.
Linea 90: Linea 90:
Ora sono solo un hobbista di computer, un microbiologo di lavoro per proteggere l'ambiente.

I imparato su Ubuntu e Linix andando ai forum e nei posto come il vostro magazine.

Non sono veramente sicure su come iniziare un'attività ambientalista.

Cosa intendo per attività ambientalista?
Ora ho solo come hobby il computer e un microbiologo di lavoro, per proteggere l'ambiente.

Ho imparato ad usare Ubuntu e Linux andando ai forum e nei posto come il vostro magazine.

Non sono veramente sicure su come iniziare un business sull'ambiente.

Cosa intendo per business sull'ambiente?
Linea 100: Linea 100:
 * Server che funzionerà come un file server, punto d'entrata per la stampa via internet, database e mail server (con una GUI, per favore).
 * Stampanti e scanner via internet.
Le stampanti via internet dovranno essere un qualcosa tipoXerox Documents Centers (più probabile dal momento che HP è l'unica marca con cui ho avuto più successo, anche se le stampanti che ho utilizzato sono quelli di "piccole" dimensioni.
 * Server che funzionerà come un file server, punto d'entrata, server per la stampa via internet, database e mail server (con una GUI, per favore).
 * Stampanti e scanner via internet. Le stampanti via internet dovranno essere un qualcosa tipo Xerox Documents Centers (più probabile dal momento che HP è l'unica marca con cui ho avuto più successo, anche se le stampanti che ho utilizzato sono quelli di "piccole" dimensioni.
Linea 106: Linea 105:
 * Backup automatizzato (se possibile)

Ho letto l'articolo riguardante l'avvio di un sehttp://wiki.ubuntu-it.org/GruppoPromozione/DiffondiUbuntu/Revisionirver LAMP e ho una moltitudine di libri che parlano dell'argomento, ma non sono stato capace di comprendere come mettere insieme tutto il sistema.

Ritengo che Ubuntu è un buona alternativa per piccole buisness.
 * Backup, (se possibile) automatizzato

Ho letto l'articolo riguardante l'avvio di un server LAMP e ho una moltitudine di libri che parlano dell'argomento, ma non sono stato capace di comprendere come mettere insieme tutto il sistema.

Ritengo che Ubuntu è una buona alternativa per piccoli business.
Linea 114: Linea 113:
Sono stato capace di trovare una soddisfacente contabilità di buisness. Non sono stato capace di trovare una soddisfacente contabile di business.
Linea 122: Linea 121:
Se qualcuno volesse aiutare con informazioni leggendo l'idea di buisnsess di Jenne, per favore inviaci il tuo articolo a articles@fullcirclemagazine.org Se qualcuno volesse aiutare con informazioni leggendo l'idea del business di Jenne, per favore inviaci il tuo articolo a articles@fullcirclemagazine.org

Introduzione

Questa pagina è dedicata per le prove delle traduzioni degli articoli di Full Circle Megazine

Edizione 41

La mia storia

pagina 20

Scritto da Bernd Wetzel

Mia moglie è una fotografa professionista che lavora principalmente nelle scuole.

Visita le scuole per raffigurare le classi od ogni ragazza e ragazzo in una classe.

Ma da quando odia i computer svolge tutti i suoi lavori senza il suo aiuto.

A questo cambiamento è diventato più difficile fare delle foto ugualmente professionali, così finalmente ha deciso di svoltare nella fotografia digitale nell'Aprile di quest'anno.

Avete ragione se pensate che questo non sarebbe possibile senza un computer.

Ma come può un principiante senza computer sapere come gestire rapidamente le seguenti operazioni?

  • Maneggiare centinaia di foto al giorno.
  • Trasferire le foto dalla macchinetta fotografica (solitamente scheda CF "filed" durante la mattina a scuola) al PC
  • Risolvere le immagini da produrre
  • Organizzare e raggruppare tutte le immagini appartenenti ad una classe
  • Ritoccare le immagini, se necessario
  • Trasferire le immagini (formato speciale, creato dal software Windows dal laboratorio di fotografia) a un dispositivo di massa mobile (solitamente pennetta USB perchè è più veloce e facile che scrivere su un VD o DVD), che verrà essere inviato a un laboratorio di fotografia
  • Creare e stampare le richieste per il laboratorio
  • Preparare a pulire le schede CF per le prossime lezioni
  • Mantenere l'archivio fotografico aggiornato (specialmente per future richieste)
  • Effettuare backup delle foto e dei dati delle richieste
  • Avere email di conversazioni con i clienti, scuole e laboratori fotografici

la risposta è: Ubuntu

Per essere più precisi Ubuntu, GIMP, Evolution, qualche applicazione personale e VirtualBox.

So che molti fotografi usano un Mac o un PC Windows insieme Adobe Photoshop, ma da quando ho lavorato per anni nel mio tempo libero con Ubuntu ho deciso di vedere se delle applicazioni avrebbero soddisfatto le richieste fotografiche di mia moglie.

Dopo che abbiamo trovato gli hardware appropriati, ho installato Ubuntu 8.10 senza alcun problema sulla sua nuovo compuetr e ho iniziato a sviluppare alcune applicazioni GTK2 per permettere a mia moglie di focalizzare sulle sue attività principali.

Sotto è un collage grafico delle procedure guidate di nuova costituzione che mia moglie ora usa nel suo lavoro digitale quotidianamente.

Dopo più di metà anno mia moglie è ancora contenta per la nostra decisione di iniziare la sua vita digitale con Ubuntu.

E amo mia moglie di essere felice!

pagina 21

Scritto da Jesse Avilés

Sono passato completamente a Ubuntu circa due anni fa e mezzo.

Ho avuto Ubuntu su un computer vecchio di 8 anni, che è morto due settimane fa e su un sistema Dell che ho regalato un anno fa a mia figlia con Ubuntu pre-installato.

Sin da quel momento ho avuto Ubuntu installato sul computer di mia madre, del mio suocero e su tre di poco costo che sono stati dati a una chiesa e a tre collaboratori.

Tutti loro usano attualmente Ubuntu e i miei collaboratori lo aggiorneranno alla versione 10.04.

Molti di loro hanno cambiato a causa di virus "disattivando" i loro computer anche quando hanno pagato per un antivirus.

Non gli è piaciuto il fatto che hanno pagato per un "software di protezione" che li ha delusi.

Alcuni di loro hanno ricevuto consigli nell'aggiornare i loro hardware e SO (ad una nuova versione recente di Windows), ma a loro non è piaciuto il costo per "l'aggiornamento".

Dopo aver visto che ero capace di salvare i dati del computer di altre persone con un CD Ubuntu Live e che Ubuntu non era molto diverso da Windows e che potrebbe rendere aperti i loro documenti MS Office, hanno deciso ( con una piccola spinta da parte mia) di provare Ubuntu.

Allora sono tornati a casa con i loro "nuovi" computer capaci di fare ciò che loro erano soliti fare dopo aver installato i restricted repositories.

Ho inoltre suggerito che se loro avrebbero deciso di adottare Ubuntu, avrebbero dovuto pensare di acquistare i codecs Fluedo (l'ho fatto).

Uno di loro è tornato indietro su Windows dopo non essere stato capace di aprire un file Publisher (ho installato Scribus e le avevo dato un corso accelerato per l'uso).

Tuttavia il suo computer è ora nelle mie mani per installare Ubuntu dopo che Vista ha deciso di non partire più.

Nonostante faccio installare i restricted repositories, lo faccio per dare a questa gente la possibilità di imparare il sistema e di amarlo.

Per i computer che erano destinati per la chiesa ho dato il codecs Fluedo (ho comprato una copia per loro) a causa del loro pseudo business attività.

Questo mi prende per la mia sfida attuale.

La chiesa vorrebbe aprire un'aula computer per richiamare i ragazzi dalle strade, inoltre offre accesso internet e computer ad alcuni dei loro componenti.

Mi hanno chiesto di aiutarli con questa attività quando l'aula computer è piena.

Ora ho solo come hobby il computer e un microbiologo di lavoro, per proteggere l'ambiente.

Ho imparato ad usare Ubuntu e Linux andando ai forum e nei posto come il vostro magazine.

Non sono veramente sicure su come iniziare un business sull'ambiente.

Cosa intendo per business sull'ambiente?

Ecco qui una lista:

  • Server che funzionerà come un file server, punto d'entrata, server per la stampa via internet, database e mail server (con una GUI, per favore).
  • Stampanti e scanner via internet. Le stampanti via internet dovranno essere un qualcosa tipo Xerox Documents Centers (più probabile dal momento che HP è l'unica marca con cui ho avuto più successo, anche se le stampanti che ho utilizzato sono quelli di "piccole" dimensioni.
  • Fax
  • Desktop con password di protezione per accedere al server
  • Accesso remoto alle email (web mail)
  • Backup, (se possibile) automatizzato

Ho letto l'articolo riguardante l'avvio di un server LAMP e ho una moltitudine di libri che parlano dell'argomento, ma non sono stato capace di comprendere come mettere insieme tutto il sistema.

Ritengo che Ubuntu è una buona alternativa per piccoli business.

Ha un software office (Open Office), un client-email abbastanza capiente (Evolution), un browser affidabile (Firefox), un editor fotografie sofisticato (GIMP), un lettore PDF, un software 2D CAD (QGIS) e un'enorme libreria di software liberi e lavora su nuovi hardware e stampanti nativi dal PDF da ogni programma.

Non sono stato capace di trovare una soddisfacente contabile di business.

So che dovrebbe essere là fuori è solo che non ho trovato qualcuno che mi finanziasse.

Ho usato precedentemente GnuCash e l'ho trovato utile le mie finanze personali.

Note dell'editore:

Se qualcuno volesse aiutare con informazioni leggendo l'idea del business di Jenne, per favore inviaci il tuo articolo a articles@fullcirclemagazine.org

Il mio desktop

pagina 37

Sono stato nel mondo di Ubuntu dalla versione 5.04.

Attualmente uso la 10.04 e mi sento OK con lui anche se il suono e il display non sono veramente buoni!

Amo il desktop semplice con chiari colori.

Ho aggiunto AWN dockbar alla mia Ubuntu 10.04.

È una partita con il mio schermo pulito.

Il mio Ubuntu è in funzione su un Toshiba Satellite, Celeron 1.7 GHz, 1.5 GB di RAM, 80 GB SATA HDD!

Spero che alla gente piaccia i desktop puliti come il mio!

Long Hguyen

Questo è il mio Ubuntu 9.10 Karmic Koala in esecuzione sul mio laptop Dell 1435 Studio.

Ha un sistema in dual boot con Windows Vista, ma amo lavorare col mio Ubuntu - ci sono molte cose che puoi fare con Ubuntu.

Il tema è New Wave e le icone sono Black and White 2 Gloss.

Il processore è un core2duo e il mio disco rigido è di 320 GB BG con 3 GB di RAM.

Lo sfondo è Gnome Transparent.

Ho inoltre incluso gli screenlets: un orologio in fondo con l'icona del cestino e del monitor del sistema.

Ho inoltre modificato il terminale rendendolo più trasparente e luminoso.

Praveen Kumar Singh

pagina 38

Salve, sono un giovane Ubuntero dell'Indonesia e uso Ubuntu Lucid Lynx su un Dell Inspiron 1440.

Vorrei mostrare il mio desktop a tutti i lettori di Full Circle Magazine.

Questa è la configurazione del mio desktop:

Usare uno sfondo nero (nero puro)

Mettere Conky sulla parte destra

Per il Menù Principale uso il Panello di Sistema Ubuntu

Il pannello superiore è Gnome Applet Global Menù

Al fondo dello schermo è Gnome-Do

Le specifiche hardware e software sono:

Pentium Dual-Core CPU - T4300 - @2.10 GHz

1.9 GB di RAM

VGA - Intel Corporetion Mobile 4 Series Chpest Integrated

Graphics Controller (rev 07)

Versione Kernel: 2.6.32-23-generic

Fakhrul Rijal

Ho suato Ubuntu 10.04 al posto di Windows 7 per solo una settimana, ma l'ho trovato facile da usare ed elegante; amo molto Ubuntu.

Il sistema è in escuzione con Docky come anche il tema Elementary e gli sfondi che si possono trovare nel software center di Ubuntu.

Sfortunatamente fino ad ora, non ho trovato un metodo conveniente di input come PinYin Google Input Method (che si può usare solo in ambiente Windows).

Il computer è un laptop Lenovo Y460 con Intel Core i3 M330 CPU (2.13 GHz), 2 GB di RAM, ATI Radeon HD 5650 e Intel GMA HD, 320 DB di HDD e uno schermo a 14".

Tutti gli hardware funzionano molto bene, eccetto il fatto che la grafica non può essere cambiata in Intel GMA HD

wangshuo2008

Programmare in Python - Parte 15

pagina di riferimento

Questo mese andremo ad esplorare Pygame, un set di moduli progettata per scrivere dei giochi. il sito web è http://www.pygame.org/. Una citazione dal Pygame read-me: "Pygame è una libreria multi-piattaforma progettato per rendere facile la scrittura di software multimediali come i giochi in Python. Pygame richiede il linguaggio Python e la libreria multimediale SDL. Si può anche fare uso di diverse altre biblioteche popolari."

Si può installare Pygame attraverso Synaptic come 'python-game'. Fatelo ora in modo che possiamo andare avanti.

In primo luogo importiamo Pygame (vedi sopra a destra). Successivamente impostiamo os.environ per far si che la nostra finestra sia centrata nel nostro schermo. Dopo di che inizializziamo Pygame, poi impostiamo la finestra Pygame a 800x600 pixel e poi la didascalia. Infine visualizzare la schermata e andare in un ciclo di attesa per una sequenza di tasti o di un evento mouse-button-down. Lo schermo è un oggetto che contiene niente di quello che decidiamo di mettere. È chiamato superficie. Pensate come se fosse un pezzo di carta su cui designeremo le cose.

Non molto eccitante, ma è un inizio. Andiamo a fare un qualcosa di meno noioso. Possiamo cambiare il colore dello sfondo come a un qualcosa di meno scuro. Ho trovato un programma di nome "colorname" che puoi installare attraverso l'Ubuntu Software Center. Questo ti permette di usare la "ruota dei colori" per prendere il colore che ti piace e ti darà i valori RGB o Red, Green, Blue di quel colore. Dobbiamo usare i colori RGB se non vogliamo usare i colori predefiniti che Pygame ci offre. Si tratta di un programma accurato di cui si dovrebbe prendere in considerazione l'installazione.

Subito dopo le dichiarazioni di importazione, aggiungere...

Background = 208, 202, 104

Questo imposterà la variabile Background a tanish. Successivamente dopo la linea pygame.display.set_caption, aggiungere le seguenti linee...

screen.fill(Background) pygame.display.update()

Lo screen.fill() method imposterà il colore a tutto ciò su cui passiamo sopra . la prossima linea, pygame.display.update(), attualmente aggiorna i cambiamenti ai nostri schermi.

Salva questo con il nome di pygame1.py e andremo avanti.

Ora mostreremo alcuni testi nella nostra blanda finestra. Di nuovo iniziamo con l'importare le nostri dichiarazioni e la variabile di assegnazione di background del nostro ultimo programma.

importare pygame da pygame.locals import * import os Background = 208, 202, 104

Ora, aggiungi una variabile aggiuntiva per il colre della nostra font di primo piano.

?FontForeground = 255,255,255 # White

Quindi aggiungeremo nella maggior parte del codice dal nostro ultimo programma (mostrato a destra).

se lo si esegue adesso non è cambiato niente visivamente dal momento che tutti abbiamo aggiunto la definizione in primo piano . Ora dopo la linea screen.fill() e prima della parte del loop del nostro codice, inserire le sguenti linee:

font = pygame.font.Font(None,27) text = font.render('Here is some text', True, ?FontForeground, Background) textrect = text.get_rect() screen.blit(text,textrect) pygame.display.update()

Vai avanti, salva il programma con il nome di pygame2.py ed esegulo. Sulla finestra in alto a sinistra, si dovrebbe vedere il testo “Here is some text”.

Andiamo a scrivere alcuni comandi. In primo luogo, chiamiamo il Font method e lo passiamo a due argomenti. Il primo è il nome della font che desideriamo usare e il secondo è la dimensione della font. In questo momento, ci limiteremo a usare 'None' e lasciare che il sitema scelga un tipo di carattere per noi e impostiamo la dimensione del carattere a 27 punti.

Dopo abbiamo il font.render() method. Questo ha quattro argomenti. In ordine, ci sono i testi che desideriamo mostrare se vogliamo usare l'anti-aliasing (True in questo caso), il colore del carattere in primo piano e infine il colore del carattere di sfondo.

La linea successiva (text.get_rect()) assegna un oggetto rettangolare che useremo per inserire il testo sullo schermo. Questa è una cosa importante dal momento che quasi tutto il resto di cui ci occuperemo è con i rettangoli. (Capirai di più in un momento.) Poi abbiamo il blit sullo schermo. E finalmente aggiorniamo lo schermo per mostrare il nostro testo. Cos'è blit e perché diamine dovrei fare qualcosa che suona così strano? Bene il termine risale al lontano 1970, e veniva da Xerox PARC (che è dove dobbiamo molto della tecnologia di oggi). Il termine era precedentemente chiamato BitBLT che significa Bit (or Bitmap) Block Transfer. Che ha cambiato a Blit (probabilmente perchè è più corto). Praticamente stiamo ploppando la nostra immagine o testo sullo schermo.


What if we want the text to be centered in the screen instead of on the top line where it takes a bit of time to see? In between the text.get_rect() line and the screen.blit line, put the following two lines:

textRect.centerx = screen.get_rect().centerx textRect.centery = screen.get_rect().centery

Here we are getting the center of the screen object (remember surface) in x and y pixel positions, and setting our textRect object x and y center points to those values.

Run the program. Now our text is centered within our surface. You can also modify the text by using (in our sample code) font.set_bold(True) and/or font.set_italic(True) right after the pygame.font.Font line.

Remember we discussed very briefly the 'None' option when we set the font to a generic font. Let's say you want to use a fancier font. As I stated before, the pygame.font.Font() method takes two arguments. The first is the path and file name of the font we want to use, and the second is the font size. The problem is multi-fold at this point. How do we know what the actual path and filename of the font we want to use is on any given system? Thankfully, Pygame has a function that takes care of that for us. It's called match_font. Here's a quick program that will print the path and filename of (in this case) the Courier New font.

import pygame from pygame.locals import * import os print pygame.font.match_font('Courier New')

On my system, the returned value is “/usr/share/fonts/truetype/msttcorefonts/cour.ttf”. If, however, the font is not found, the return value is “None”. Assuming that the font IS found, then we can assign the returned value to a variable, and we can then use the following assignment.

courier = pygame.font.match_font('Courier New') font = pygame.font.Font(courier,27)

Change your last version of the program to include these two lines and try it again. The bottom line is, either use a font that you KNOW will be available on the end user's machine, or include it when you distribute your program and hard code the font path and name. There are other ways around this, but I'll leave that to you to figure out so we can move on.

While text is nice, graphics are better. I found a really nice tutorial for Pygame written by Peyton ?McCollugh, and thought I'd take and modify it. For this part, we need to start with a picture that will move around our surface. This picture is known as a sprite. Use GIMP or some other tool and create a stick figure. Nothing fancy, just a generic stick figure. I'll assume that you are using GIMP. Start a new image, set the size to 50 pixels in both height and width, and, under advance options, set the 'Fill With' option to Transparency. Use the pencil tool with a brush of Circle (03). Draw your little figure, and save it as stick.png into the same folder you have been using for the code this time. Here is what mine looks like. I'm sure you can do better.

I know...I'm not an artist. However, for our purposes, that will do. We saved it as a .png file, and set the background to be transparent, so that just the little black lines of our stick figure show up - and not a white or other color background will show.

Let's talk about what we want the program to do. We want to show a Pygame window that has our stick figure drawing in it. We want the figure to move when we press any of the arrow keys up, down, right and left, assuming we aren't at the edge of the screen and cannot move any further. We want the game to quit when we press the “q” key. Now, moving the sprite around might seem easy, and it is, but it is a bit harder than it initially sounds. We start by creating two rectangles. One for the sprite itself and one that is the same size but is blank. We blit the sprite onto the surface to start, then, when the user presses a key, we blit the blank rectangle over the original sprite, figure out the new position, and blit the sprite back onto the surface at its new position. Pretty much what we did with the alphabet game last time. That's about it for this program. It will give us an idea how to actually place a graphic on the screen and move it around.

So, start a new program, and call it pygame4.py. Put in the includes we've been using during this tutorial. This time we'll use a minty green background so those values should be 0, 255, 127 (see above).

Next, we create a class that will handle our graphic or sprite (next page, shown bottom left). Put this right after the imports.

What is all this doing? Let's start with the init routine. We initialize the sprite module of Pygame with the pygame.sprte.Sprite.init line. We then set the surface, and call it screen. This will allow us to check to see if the sprite is going off the screen. We then create and set the position of the blank oldsprite variable, which will keep the old position of our sprite. Now we load our stick figure sprite with the pygame.image.load routine, passing it the filename (and path, if it's not in the program's path). Then we get a reference (self.rect) to the sprite which sets up the width and height of the rectangle automatically, and set the x,y position of that rectangle to the position we pass into the routine.

The update routine basically makes a copy of the sprite, then checks to see if the sprite goes off the screen. If so, it's left where it was, otherwise its position is moved the amount we send into it.

Now, after the screen.fill statement, put the code shown on the following page (right-hand side).

Here we create an instance of our class, calling it character. Then we blit the sprite. We create the blank sprite rectangle, and fill it with the background color. We update the surface and start our loop.

As long as ?DoLoop is equal to 1, we loop through the code. We use pygame.event.get() to get a keyboard character. We then test it against the event type. If it's QUIT, we exit. If it's a pygame KEYDOWN event, we process it. We look at the key value returned, and compare it to constants defined by Pygame. We then call the update routine in our class. Notice here that we simply are passing a list containing the number of pixels on the X and Y axis to move the character. We bump it by 10 pixels (positive for right or down, negative for left or up. If the key value is equal to “q”, we set ?DoLoop to 0, and so will break out of the loop. After all of that, we blit the blank character to the old position, blit the sprite to the new position, and finally update - but in this case, we update only the two rectangles containing the blank sprite and the active sprite. This saves a tremendous amount of time and processing.

As always, the full code is available at www.thedesignatedgeek.com or at http://fullcirclemagazine.pastebin.com/DvSpZbaj.

There's a ton more that Pygame can do. I suggest that you hop over to their website, and look at the reference page (http://www.pygame.org/docs/ref/index.html). In addition, you can take a look at some of the games that others have put up.

Next time, we will be digging deeper into Pygame by creating a game that comes from my past...my very DISTANT past.

CategoryHomepage