34
1 contents ^ Full Circle ISSUE #44 - December 2010 Q Q U U A A K K E E L L I I V V E E - - O O N N E E Y Y E E A A R R O O N N

full circle - cvut.czkfe.fjfi.cvut.cz/~sinor/tmp/edu/aux/docs.2/fullcirclemagazine.org/issue44_en.pdf · the work to the original author in some way (at least a name, email or URL)

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

  • 1 contents ^

    Full CircleISSUE #44 - December 2010

    QQUUAAKKEE LLIIVVEE -- OONNEE YYEEAARR OONN

  • 2 contents ^

    The articles contained in this magazine are released under the Creative Commons Attribution-Share Alike 3.0 Unported license. This means you can adapt, copy, distribute and transmit the articles but only under the following conditions: You must attribute the work to the original author in some way (at least a name, email or URL) and to this magazine by name ('full circle magazine')

    and the URL www.fullcirclemagazine.org (but not attribute the article(s) in any way that suggests that they endorse you or your use of the work). If you alter, transform, or build upon this work, you must distribute the resulting work under the same, similar or a compatible license.

    Full Circle

    Link Shortening p.13

    Write For Full Circle p.14

    Backup With Wubi p.10

    Program In Python Pt1 p.07

    Ubuntu Women p.24

    Ubuntu Games p.25

    Command & Conquer p.05

    Top 5 p.31

    Team Interviews p.21 Linux Lab p.15

    Review - Unetbootin p.20 Letters p.22

    http://creativecommons.org/licenses/by-sa/3.0/

  • 3 contents ^

    EEDDIITTOORRIIAALL

    Welcome to the last issue of Full Circle.

    All the best for 2011, and keep in touch!

    Full Circle Podcast

    Hosts:

    mailto:[email protected]:[email protected]://fullcirclemagazine.orghttp://www.scribus.nethttp://www.gimp.orghttp://www.openoffice.orghttp://creativecommons.org/http://fullcirclemagazine.org

  • 4 contents ^

    Here's the Final Numbers on the Humble Indie Bundle #2

    Source

    LLIINNUUXX NNEEWWSSRussia's latest five-year plan calls for switch to Linux

    Source

    Full Circle Notifier - Beta Release!

    Full Circle Notifier

    http://goo.gl/4Ob4

    http://goo.gl/4Ob4

  • 5 contents ^

    #!/bin/bash

    updateChecker=`apt-get -s upgrade|grep upgraded,|cut --delimiter=" " -f1`

    echo "$updateChecker";

    apt-get -s upgrade

    ${font DejaVuSans:bold:size=8}Updates:$font ${execi 300 /path/to/script}

    chmod +x /path/to/script

    CCOOMMMMAANNDD && CCOONNQQUUEERRWritten by Lucas Westermann

    http://fullcirclemagazine.pastebin.com/jMDg9kzG

  • 6 contents ^

    Lucas

    COMMAND & CONQUER

    Further Scripting

    Full Circle Podcast

    ReviewNews

    Gaming

    mailto:[email protected]://fullcirclemagazine.org/mailto:[email protected]://fullcirclemagazine.pastebin.com/0JzTHjJ1

  • 7 contents ^

    HHOOWW--TTOOWritten by Greg Walters PPrrooggrraamm IInn PPyytthhoonn -- PPaarrtt 1188

    [0][0] | [0][1] | [0][2][1][0] | [1][1] | [1][2][2][0] | [2][1] | [2][2]

    # The next three lines are new...

    self.player = 1

    self.gameboard = [['-','-','-'],['-','-','-'],['-','-','-']]

    self.run()

    if self.processingloop: if cmd == 'Start': self.InitGameBoard() self.PrintGameBoard(1)

    if cmd[:4] == 'Move':print "MOVE COMMAND"position = cmd[5:]if position[0] == 'A': row = 0elif position[0] == 'B': row = 1 elif position[0] == 'C': row = 2else: self.cli.send('Invalid position') returncol = int(position[1])-1

  • 8 contents ^

    PROGRAM IN PYTHON - PART 18

    if row < 0 or row > 2:

    self.cli.send('Invalid position')

    return

    if self.gameboard[row][col] == '-':

    if self.player == 1:

    self.gameboard[row][col] = "X"

    else:

    self.gameboard[row][col] = "O"

    self.PrintGameBoard(0)

    def InitGameBoard(self):

    self.gameboard = [['-','-','-'],['-','-','-'],['-','-','-']]

    def PrintGameBoard(self,firsttime): #Print the header row outp = (' 1 2 3') + chr(13) + chr(10) outp += (" A {0} | {1} | {2}".format(self.gameboard[0][0],self.gameboard[0][1],self.gameboard[0][2])) + chr(13)+chr(10) outp += (' ------------')+ chr(13)+chr(10) outp += (" B {0} | {1} | {2}".format(self.gameboard[1][0],self.gameboard[1][1],self.gameboard[1][2]))+ chr(13)+chr(10) outp += (' ------------')+ chr(13)+chr(10) outp += (" C {0} | {1} | {2}".format(self.gameboard[2][0],self.gameboard[2][1],self.gameboard[2][2]))+ chr(13)+chr(10) outp += (' ------------')+ chr(13)+chr(10)

    if firsttime == 0: if self.player == 1: ret = self.checkwin("X") else: ret = self.checkwin("O") if ret == True: if self.player == 1: outp += "Player 1 WINS!" else: outp += "Player 2 WINS!" else: if self.player == 1: self.player = 2 else: self.player = 1 outp += ('Enter move for player %s' % self.player) self.cli.send(outp)

  • 9 contents ^

    PROGRAM IN PYTHON - PART 18

    Greg Walters

    The Client

    if __name__ == '__main__': conn = CmdLine('localhost') conn.makeConnection() conn.sendCmd('Start') conn.getResults() conn.sendCmd('Move A3') conn.getResults() r = raw_input("Press Enter") conn.sendCmd('Move B2') conn.getResults() r = raw_input("Press Enter")

    Moving Forward

    Next time, we'll modify our server to actually play the other player.

    First, we will check each Row for a horizontal win: def checkwin(self,player): #loop through rows and columns for c in range(0,3): #check for horizontal line if self.gameboard[c][0] == player and self.gameboard[c][1] == player and self.gameboard[c][2] == player: print "*********\n\n%s wins\n\n*********" % player playerwin = True return playerwin

    Next, we check each Column for a win: #check for vertical line elif self.gameboard[0][c] == player and self.gameboard[1][c] == player and self.gameboard[2][c] == player: print "** %s wins **" % player playerwin = True return playerwin

    Now we check for the diagonal win from left to right... #check for diagonal win (left to right) elif self.gameboard[0][0] == player and self.gameboard[1][1] == player and self.gameboard[2][2] == player: print "** %s wins **" % player playerwin = True return playerwin

    Then from right to left... #check for diagonal win (right to left) elif self.gameboard[0][2] == player and self.gameboard[1][1] == player and self.gameboard[2][0] == player: print "** %s wins **" % player playerwin = True return playerwin

    Finally, if there is no win, we return false: else: playerwin = False return playerwin

    http://fullcirclemagazine.pastebin.com/UhquVK4Nhttp://thedesignatedgeek.com

  • 10 contents ^

    HHOOWW--TTOOWritten by Chris Binnie BBaacckkuupp WWiitthh WWuubbii

    Fear not virtualization fans, Lucas's series will continue from next month.

    http://wubi-installer.org

  • 11 contents ^

    BACKUP WITH WUBI

    mount -o loop myloop.disk /mnt

    http://wiki.ubuntu.com/WubiGuide

  • 12 contents ^

    Ideas & Writers Wanted

    please be specific with your idea!

    if you can’t get the article written within several weeks (a month at most) that you reopen the question

    for ideas

    for writers

    BACKUP WITH WUBI

    # Change the filename to today's date and time

    filename="`date +%d.%m.%y-%H.%M`"

    # Mount the second hard drive, and don't give errors if it's already mounted

    sudo mount /dev/sdb2 /media/SECOND > /dev/null 2>&1

    # Copy the ubuntu directory to the second drive

    sudo cp -R /host/ubuntu /media/SECOND/Wubi/ubuntu_$filename

    # Make sure the user chris can drag and drop these files and not just root

    sudo chown -R chris:chris /media/SECOND/Wubi/ubuntu_$filename

    https://launchpad.net/fullcirclehttps://launchpad.net/~fullcircle

  • 13 contents ^

    HHOOWW--TTOOWritten by Robin Catling LLiinnkk SShhoorrtteenniinngg

    Why Link Shortening?

    Phurl Features

    Other Link shorteners are available...

    Trouble is...

  • 14 contents ^

    HHOOWW--TTOOWritten by Ronnie Tucker WWrriittee FFoorr FFuullll CCiirrccllee MMaaggaazziinnee

    Guidelines

    it must somehow be linked to Ubuntu or one of the

    many derivatives of Ubuntu

    PLEASE SPELL AND GRAMMAR CHECK IT!

    Writing

    Images

    Non-English Writers

    REVIEWS

    Games/ApplicationsWhen reviewing games/applications please state clearly:

    HardwareWhen reviewing hardware please state clearly:

    You don't need to be an expert to write an article - write about the games, applications and hardware that you use every day.

    https://wiki.ubuntu.com/UbuntuMagazine/[email protected]

  • 15 contents ^

    LLIINNUUXX LLAABBWritten by Nikos Karagiannakis

    Wireless

    USB Wireless Adapter (TL-WN620G)

    Note

    ConclusionNext Target

    Laptop :Compaq Armada 100S

    Distro :Slitaz 2.0

    slitaz-loram.iso

    http://goo.gl/gl3mUhttp://mirror.slitaz.org/iso/2.0/flavors/http://ftp.nluug.nl/pub/os/Linux/distr/slitaz/packages/cooking/

  • 16 contents ^

    MMYY SSTTOORRYYWritten by Praveen Kumar Singh

    http://www.tricksfind.blogspot.commailto:[email protected]

  • 17 contents ^

    MMYY SSTTOORRYYWritten by Jan Mussche

  • 18 contents ^

    MY STORY

  • 19 contents ^

    http://www.ubuntu-user.com/subscribe-now/

  • 20 contents ^

    RREEVVIIEEWWWritten by Robin Catling

    The good, the bad and the downright ugly

    UUnneettbboooottiinn

  • 21 contents ^

    Age:Location:IRC Nick:

    How long have you used Linux, and what was your first distro?

    How long have you been using Ubuntu?

    When did you get involved with the MOTU team and how?

    What helped you learn packaging and how Ubuntu teams work?

    What’s your favorite part of working with the MOTU?

    Any advice for people wanting to help out MOTU?

    Are you involved with any local Linux/Ubuntu groups?

    What are you going to focus on in Lucid?

    What do you do in your other spare time?

    MMOOTTUU IINNTTEERRVVIIEEWW MMiicchhaałł ZZaajjąąccSupplied by http://behindthecircle.org/

  • 22 contents ^

    LLEETTTTEERRSSEvery month we like to publish some of the emails we receive. If you would like to submit a letter for publication, compliment or complaint, please email it to:

    .

    Correction

    Gerardo Jimenez Delgado

    MORE CLI!

    Jaap Woldringh

    More Backup Ideas, Less Excuses

    mailto:[email protected]

  • 23 contents ^

    John McGinnis

    John Jaarsveld

    Grep Or Not To Grep

    ls | grep .*zip

    ls *.zip

    Gautham Pai

    Business Proposal For You

    Mr. Khaldoon Khalifa

    another

    LETTERS

    http://www.spideroak.com

  • 24 contents ^

    UUBBUUNNTTUU WWOOMMEENNWritten by Silvia Bindelli and Flavia Weisghizzi

    http://www.fsugitalia.org/donne

  • 25 contents ^

    UUBBUUNNTTUU GGAAMMEESSWritten by Edward Hewitt

    News

    BEEPAtom Zombie Smasher

    Braid, Cortex Command, Machinarium, OsmosRevenge Of The Titan

    Trine Trine 2

    QQuuaakkee LLiivvee:: OOnnee YYeeaarr OOnn

  • 26 contents ^

    UBUNTU GAMES

  • 27 contents ^

    QQ&&AACompiled by Gord Campbell

    If you have Ubuntu-related questions, email them to: , and Gord will answer them in a future

    issue.

    Q I have a printer attached to another computer on my network running

    Ubuntu. I've "shared" the printer, but I can't see it over the network.

    Q How can I minimize the number of updates I need to apply after installing Ubuntu?

    Q When the computer wakes up from sleep, I don't want it to ask for a password.

    Q How can I find a wireless-n adapter that works in Ubuntu?

    Q I recently installed 64-bit Ubuntu Maverick. I have been trying to mount my HDX-1000

    media server, but I keep getting

    "mount.nfs access denied by server while mounting ...".

    xeddog

    HDX-Server1:/share /media/HDX-Server1 nfs rw,rsize=8192,wsize=8192,intr,nfsvers=3

    Q I would like to upgrade to Ubuntu 10.10, but the release notes say, "the new Xorg 1.9 available

    in Maverick is not compatible with nVidia based chipsets that use the (nvidia-96) and (nvidia-173) drivers."

    ppa:dajhorn/nvidia-96

    Q I just installed 10.04 on a three-year-old computer to use as a media streamer for a

    new 60" flat panel. It displays nicely but comes up off-center to the left.

    Q Can I close my laptop but still keep it running?

    mailto:[email protected]://linux-wless.passys.nlhttp://cdimage.ubuntu.com/daily/current/

  • 28 contents ^

    Q & A

    Q When I try to adjust the volume on my computer, using the volume control on the

    panel, or the volume buttons on my keyboard, it changes the quality of the sound but not the volume.

    gksudo gedit /etc/modprobe.d/alsa-base

    options snd-hda-intel model=gateway-m4

    Q My webcam worked in 10.04, but, when I upgraded to 10.10, the kernel modules changed

    and the driver no longer worked.

    make

    sudo make install

    Q I have Ubuntu 10.10, but cannot access an XP workgroup or machine. I can ping in both

    directions from Ubuntu to XP and vice versa. When I try to open the Windows Workgroup I get the following error:Unable to mount location.Failed to retrieve share list from server.

    Q I just put 10.10 on my friend's laptop. During the install, I by-passed the bit where one might

    add a log-in password during bootup because I just wanted her to try it out as easily as possible. Now she is loving it, I think it might be sensible to add a log in screen to the boot up. How?

    Q I have an external USB hard disk. I erase several gigabytes from it, but clicking over the

    properties option from the HD, the available space doesn't appear. I did a manual erase from recycle and System Volume Information directories, but the problem is still there.

    Q With Ubuntu 10.10, I can't play DVDs.

    sudo /usr/share/doc/libdvdread4/install-css.sh

    Q How can I play .swf files in Firefox?

    http://moinejf.free.fr/

    https://addons.mozilla.org/en-US/firefox/addon/161939/

  • 29 contents ^

    MMYY DDEESSKKTTOOPP

    Andrew Bida

    Your chance to show the world your desktop or PC. Email your screenshots and photos to: and include a brief paragraph about your desktop, your PC's specs and any other interesting tidbits about your setup.

    Christoph Roesch

    mailto:[email protected]

  • 30 contents ^

    MY DESKTOP

    Arnaud Chen-yen-su

    Athailah

    http://www.gaia10.ushttp://artescritorio.com

  • 31 contents ^

    TTOOPP 55Written by Andrew Min

    Transmission

    transmission

    Deluge

    deluge

    BBiittTToorrrreenntt CClliieennttss

    http://www.transmissionbt.com/http://qbittorrent.sourceforge.net/http://url.fullcirclemagazine.org/f37031

  • 32 contents ^

    TOP 5 - BITTORRENT CLIENTS

    KTorrent

    ktorrent

    qBittorrent

    qbittorrent

    http://ktorrent.org/

    http://qbittorrent.sourceforge.net/

  • 33 contents ^

    TOP 5 - BITTORRENT CLIENTS

    rTorrent

    rtorrent

    is presented by members of the United Kingdom’s Ubuntu Linux community.

    We aim is to provide current, topical information about, and for, Ubuntu Linux users the world over. We cover all aspects of Ubuntu Linux and Free Software, and appeal to everyone from the newest user to the oldest coder, from the command line to the latest GUI.

    Because the show is produced by the Ubuntu UK community, the podcast is covered by the Ubuntu Code of Conduct and is therefore suitable for all ages.

    ,

    http://podcast.ubuntu-uk.org/http://libtorrent.rakshasa.no/

  • 34 contents ^

    HHOOWW TTOO CCOONNTTRRIIBBUUTTEE

    Thorsten Wilms

    Deadline for Issue #45:Sunday 09th January 2011.

    Release date for issue #45:Friday 28th January 2011.FULL CIRCLE NEEDS YOU!

    http://wiki.ubuntu.com/UbuntuMagazinehttp://ubuntuforums.org/forumdisplay.php?f=270mailto:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]