Full Circle Magazine

Full Circle Magazine

VIRTUALIZATION Full Circle PT5 ISSUE #42 - October 2010 aaddeerrss RRee y SSuurrvveey 2001100 2 ss!! RReessuulltt NNEEWW SSEECCTTIIOONN -- LLiinnuuxx LLaabb 1 contents ^ Full Circle My Opinion p.26 Ubuntu Women p.39 Program In Python Pt16 p.08 Ubuntu Games p.41 Team Interviews p.35 Linux Lab p.20 NEW! Virtualization: Arch p.14 Command & Conquer p.06 Organize Your Photos p.17 Review - MoonOS p.28 Letters p.37 Top 5 p.46 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. 2 contents ^ EEDDIITTOORRIIAALL Welcome to another issue of Full Circle! I'm back! Linux Lab Full Circle Podcast Command & Conquer Hosts: All the best, and keep in touch! 3 contents ^ UBUNTU NEWS Ideas & Writers UBUNTU NEWS Wanted Ubuntu 10.10 Released Ubuntu Studio Source please be specific with your idea! Desktop and Netbook editions Server edition if you can’t get the Kubuntu article written within several weeks (a month at most) that you reopen the question Xubuntu for ideas Edubuntu for writers Mythbuntu 4 contents ^ LLIINNUUXX NNEEWWSS China Has Top UbuntuGamer.com London Stock group’s main stock exchange. The LSE had long been criticised on Supercomputer Exchange Smashes speed and reliability, grappling World Record Trade with trading speeds of several Speed With Linux hundred microseconds. The news comes ahead a major Linux-based switchover in Source twelve days, during which the open source system will replace Microsoft .Net technology on the Full Circle Notifier - Beta Release! Full Circle Notifier Source http://goo.gl/4Ob4 Source 5 contents ^ CCOOMMMMAANNDD && CCOONNQQUUEERR Written by Lucas Westermann vi ls cd alias ping rsync/scp Correction iwconfig/ifconfig cp/mv man cat halt 6 contents ^ COMMAND & CONQUER echo pwd mkdir rm touch su grep locate find ln Lucas 7 contents ^ HHOOWW--TTOO Written by Greg Walters PPrrooggrraamm IInn PPyytthhoonn -- PPaarrtt 1166 PRINT >>> print "This is a test" File "<stdin>", line 1 print "This is a test" ^ SyntaxError: invalid syntax Formatting and >>> print “This is a test” variable substitution >>> print("Hello {0}. I'm glad you are here at {1}".format("Fred","MySite.co m")) Hello Fred. I'm glad you are here at MySite.com >>> print(“this is a test”) >>> months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] Numbers >>> print "You selected month %s" % months[3] You selected month Apr >>> OLD WAY x = 5/2.0 >>> months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] x = 5/2 >>> print("You selected month {0}".format(months[3])) You selected month Apr >>> NEW WAY x = 5/2 8 contents ^ PROGRAM IN PYTHON - PART 16 +======================================+ x = 5//2 | Item 1 3.00 | | Item 2 15.00 | +--------------------------------------+ INPUT | Total 18.00 | +======================================+ Converting older Script terminated. programs to Python 3.x print TopOrBottom('=',40) ^ SyntaxError: invalid syntax response = raw_input('Enter a selection -> ') File "pprint1.py", line 18 #pprint1.py Traceback (most recent call #Example of semi-useful functions last): def TopOrBottom(character,width): File "<stdin>", line 1, in # width is total width of returned line <module> return '%s%s%s' % ('+',(character * (width-2)),'+') NameError: name 'raw_input' def Fmt(val1,leftbit,val2,rightbit): is not defined # prints two values padded with spaces # val1 is thing to print on left, val2 is thing to print on right # leftbit is width of left portion, rightbit is width of right portion part2 = '%.2f' % val2 return '%s%s%s%s' % ('| ',val1.ljust(leftbit-2,' '),part2.rjust(rightbit-2,' '),' |') # Define the prices of each item item1 = 3.00 item2 = 15.00 response = input('Enter a # Now print everything out... selection -> ') print TopOrBottom('=',40) print Fmt('Item 1',30,item1,10) print Fmt('Item 2',30,item2,10) print TopOrBottom('-',40) print Fmt('Total',30,item1+item2,10) Not Equal print TopOrBottom('=',40) 9 contents ^ PROGRAM IN PYTHON - PART 16 Do I switch to 3.x now? cp pprint1.py pprint1v3.py > 2to3 pprint1v3.py > 2to3 -w pprint1v3.py RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: Refactored pprint1v3.py RefactoringTool: Refactored pprint1v3.py --- pprint1v3.py (original) --- pprint1v3.py (original) +++ pprint1v3.py (refactored) +++ pprint1v3.py (refactored) @@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@ item1 = 3.00 item1 = 3.00 item2 = 15.00 item2 = 15.00 # Now print everything out... # Now print everything out... -print TopOrBottom('=',40) -print TopOrBottom('=',40) -print Fmt('Item 1',30,item1,10) -print Fmt('Item 1',30,item1,10) -print Fmt('Item 2',30,item2,10) -print Fmt('Item 2',30,item2,10) -print TopOrBottom('-',40) -print TopOrBottom('-',40) -print Fmt('Total',30,item1+item2,10) -print Fmt('Total',30,item1+item2,10) -print TopOrBottom('=',40) -print TopOrBottom('=',40) +print(TopOrBottom('=',40)) +print(TopOrBottom('=',40)) +print(Fmt('Item 1',30,item1,10)) +print(Fmt('Item 1',30,item1,10)) +print(Fmt('Item 2',30,item2,10)) +print(Fmt('Item 2',30,item2,10)) +print(TopOrBottom('-',40)) +print(TopOrBottom('-',40)) +print(Fmt('Total',30,item1+item2,10)) +print(Fmt('Total',30,item1+item2,10)) +print(TopOrBottom('=',40)) +print(TopOrBottom('=',40)) RefactoringTool: Files that need to be modified: RefactoringTool: Files that were modified: RefactoringTool: pprint1v3.py RefactoringTool: pprint1v3.py 10 contents ^ PROGRAM IN PYTHON - PART 16 #pprint1.py #Example of semi-useful functions def TopOrBottom(character,width): # width is total width of returned line return '%s%s%s' % ('+',(character * (width-2)),'+') def Fmt(val1,leftbit,val2,rightbit): # prints two values padded with spaces # val1 is thing to print on left, val2 is thing to print on right # leftbit is width of left portion, rightbit is width of right portion part2 = '%.2f' % val2 return '%s%s%s%s' % ('| ',val1.ljust(leftbit-2,' '),part2.rjust(rightbit-2,' '),' |') # Define the prices of each item item1 = 3.00 item2 = 15.00 # Now print everything out... print(TopOrBottom('=',40)) print(Fmt('Item 1',30,item1,10)) print(Fmt('Item 2',30,item2,10)) print(TopOrBottom('-',40)) print(Fmt('Total',30,item1+item2,10)) print(TopOrBottom('=',40)) Links Greg Walters 11 contents ^ CCOOMMPPEETTIITTIIOONN Written by Dominik Wagenführ RRiigghhtt22LLiivvee 3. Conditions for participation 2. Engine, AI and GUI 1. The task freiesMagazin 12 contents ^ COMPETITION - RIGHT2LIVE About freiesMagazin: About Dominik Wagenfuehr: Above 13 contents ^ HHOOWW--TTOO VViirrttuuaalliizzaattiioonn PPtt55 -- AArrcchh LLiinnuuxx Tools required: Step 1 Step 2 /arch/setup 14 contents ^ VIRTUALIZATION - PART 5 Step 3 Step 5 dbus-core glib2 inetutils kernel26-headers links mkinitcpio-busybox netcfg openssh Step 6 sudo Step 4 xz gcc fakeroot autoconf automake make patch ca-certificates Step 7 15 contents ^ VIRTUALIZATION - PART 5 Step 8 #<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost 127.0.0.1 Monster.mydomain.com Monster Step 9 Lucas # # /etc/hosts: static lookup table for host names # 16 contents ^ HHOOWW--TTOO OOrrggaanniissee YYoouurr PPhhoottooss Shotwell labrador, dog NOTE 17 contents ^ ORGANISE YOUR PHOTOS 18 contents ^ HHOOWW--TTOO Written by Ronnie Tucker WWrriittee FFoorr FFuullll CCiirrccllee MMaaggaazziinnee Guidelines REVIEWS Games/Applications it must When reviewing games/applications please state clearly: somehow be linked to Ubuntu or one of the many derivatives of Ubuntu PLEASE SPELL AND GRAMMAR CHECK IT! Hardware Writing When reviewing hardware please state clearly: Non-English Writers Images You don't need to be an expert to write an article - write about the games, applications and hardware that you use every day. 19 contents ^ LLIINNUUXX LLAABB Linux Lab PC Specs: 20 contents ^ RReeaaddeerrss SSuurrvveeyy 22001100 RReessuullttss Written by Ronnie Tucker How Did You Find Out About Full Circle? Gender How Old Are You? Do You Keep Your Which Version(s) Of Copies Of Full Circle? Ubuntu Do You Use? Which Desktop Environment(s) Do You How Long Have You Which Operating Use? Been Reading Full System(s) Do You Use? Circle? 21 contents ^ READERS SURVEY RESULTS 2010 My Story My Opinion Letters Down To Business - Please Rate: Where Do You Use Linux? Ubuntu News Reviews Ubuntu Women What Do You Use Linux For? Linux News Interviews Command & Conquer Ubuntu Games 22 contents ^ READERS SURVEY RESULTS 2010 Beginners Q&A Intermediate Other Distros in Full Circle? My Desktop Advanced Top 5 How Do You Rate The Current Design? What Should We Cover More/Less Of? Level Of Articles 23 contents ^ MMYY SSTTOORRYY 24 contents ^ MMYY SSTTOORRYY 25 contents

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    49 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us