Full Circle Magazine
Total Page:16
File Type:pdf, Size:1020Kb
Full Circle LINUX LABS : ISSUE #46 - February 2011 NEW IES! SER NNEEWW SSEERRIIEESS -- LLIIBBRREEOOFFFFIICCEE 1 contents ^ Full Circle Linux News p.04 Ubuntu Women p.28 Program In Python Pt20 p.07 Ubuntu Games p.29 NEW SERIES! Write For Full Circle p.19 Linux Lab p.20 LibreOffice Pt1 p.12 Command & Conquer p.05 Installing Mythbuntu p.15 Review - Boxee Box p.24 Letters p.27 Top 5 p.34 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! big Full Circle Podcast long Hosts: All the best, and keep in touch. 3 contents ^ LLIINNUUXX NNEEWWSS Hello Linux Open- Wearable, Atom-powered Computer Canonical To Donate Xchange 25% Ubuntu One Revenues To Gnome Foundation Source Full Circle Notifier - Beta Release! Full Circle Notifier For more info, see the Source Source FCN Google Group: http://goo.gl/4Ob4 4 contents ^ CCOOMMMMAANNDD && CCOONNQQUUEERR To-Do List Written by Lucas Westermann To-Do List #!/usr/bin/env python import os home=os.path.expanduser("~") for root, dirs, files in os.walk(os.path.join(home,"Reminders")): for infile in [f for f in files]: if(infile.endswith("~")!=True): fh=open(os.path.abspath(os.path.join(root,infile))) for line in fh: print("- "+line, end=' ') fh.close() createToDo.sh: #!/bin/bash file=~/ToDo.txt toDo=~/toDo.txt To-Do List if [[ -e $toDo ]]; then `rm "$toDo"` fi while read line; do date=`date -d"$(echo "$line"|sed 's/\(.\) -.*$/\1/g')" +%s`; echo "$(echo "$line"|sed -e s/".*-"/"$date -"/g)" >> "$toDo"; done < "$file" if [[ -e "$toDo" ]]; then temp=`sort -n "$toDo"` echo "$temp" > "$toDo" fi 5 contents ^ COMMAND & CONQUER printToDo.sh: #!/bin/bash toDo=~/toDo.txt zenity --error --text “An while read line; do error occurred!” if [[ "$line" != "" ]]; then date=`date -d@"$(echo "$line"|sed -e s/"-[^-]*$"//g)" +"%a %b %d %H:%M"` echo "$(echo "$line"|sed -e s/".*-"/"$date -"/g)"; zenity - fi -questio done < "$toDo" n -- test “Question ?”; echo $? <command>|zenity --text-info --width <size in pixels> <command>| tee > (zenity -- progress --pulsate) >file input=$(zenity --entry -- text "How are you?" --entry- Lucas text "enter text here"); Zenity echo $input 6 contents ^ HHOOWW--TTOO Written by Greg Walters PPrrooggrraamm IInn PPyytthhoonn -- PPaarrtt 2200 # simple.py import pygtk pygtk.require('2.0') import gtk class Simple: def __init__(self): self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.show() def main(self): gtk.main() if __name__ == "__main__": simple = Simple() simple.main() self.window.connect("delete_e vent", self.delete_event) def delete_event(self, widget, event, data=None): gtk.main_quit() return False self.window.set_position(gtk. WIN_POS_CENTER) 7 contents ^ PROGRAM IN PYTHON - PART 20 self.button = gtk.Button("Close Me") Ideas & Writers self.button.connect("clicked" Wanted ,self.btn1Clicked,None) self.window.add(self.button) self.button.show() self.box1 = gtk.HBox(False,0) please be specific with your idea! self.window.add(self.box1) self.button = gtk.Button("Button 1") self.button.connect("clicked" ,self.btn1Clicked,None) self.box1.pack_start(self.but ton,True,True,0) self.button.show() if you can’t get the article written within several weeks (a month at most) that you reopen the question def btn1Clicked(self,widget,data= for ideas None): HBox = gtk.HBox(homogeneous=False, for writers print "Button 1 clicked" spacing=0) gtk.main_quit() 8 contents ^ PROGRAM IN PYTHON - PART 20 gtk.main_quit() self.button2 = gtk.Button("Button 2") self.button2.connect("clicked ",self.btn2Clicked,None) self.box1.pack_start(self.but ton2,True,True,0) self.button2.show() self.box1.show() 0 1 2 0+-----------+-----------+ | | | box.pack_start(widget,expand= 1+-----------+-----------+ True, fill=True, padding=0) | | | 2+-----------+-----------+ def btn2Clicked(self,widget,data= None): print "Button 2 clicked" 9 contents ^ PROGRAM IN PYTHON - PART 20 0 1 2 self.window.set_size_ 0+-----------+-----------+ request(250, 100) button1.show() | Button 1 | Button 2 | 1+-----------+-----------+ self.window.connect(" | Button 3 | delete_event", 2+-----------+-----------+ table.attach(buttonx,0,1,0,1) self.delete_event) button2 = gtk.Button("Button 2") button2.connect("clicked",sel f.callback,"button 2") table.attach(button2,1,2,0,1) Table = table.attach(buttonx,1,2,0,1) button2.show() gtk.Table(rows=1,columns=1,ho mogeneous=True) # table1.py import pygtk pygtk.require('2.0') import gtk table = gtk.Table(2, 2, class Table: True) # Create a 2x2 grid def __init__(self): self.window.add(table) self.window = gtk.Window(gtk.WINDOW_TOPLEVE L) button3 = gtk.Button("Quit") table.attach(widget,left self.window.set_posit point,right point,top ion(gtk.WIN_POS_CENTER) point,bottom button3.connect("clicked",sel point,xoptions=EXPAND|FILL,yo f.ExitApp,"button 3") self.window.set_title button1 = gtk.Button("Button ptions=EXPAND|FILL, ("Table Test 1") 1") xpadding=0,ypadding=0) table.attach(button3,0,2,1,2) self.window.set_borde button1.connect("clicked",sel button3.show() r_width(20) f.callback,"button 1") table.attach(button1,0,1,0,1) 10 contents ^ PROGRAM IN PYTHON - PART 20 table.show() self.window.show() def main(self): gtk.main() def delete_event(self, widget, event, data=None): def ExitApp(self, widget, event, data=None): gtk.main_quit() print "Quit button was Full Circle Podcast return False pressed" gtk.main_quit() Review if __name__ == "__main__": News table = Table() def Gaming callback(self,widget,data=Non table.main() e): print "%s was pressed" % data Greg Walters 11 contents ^ HHOOWW--TTOO Written by Elmer Perry LLiibbrree OOffffiiccee -- PPaarrtt 11 NEW SERIES! sudo add-apt-repository ppa:libreoffice/ppa sudo apt-get update sudo apt-get install libreoffice 12 contents ^ LIBRE OFFICE - PART 1 13 contents ^ LIBRE OFFICE - PART 1 14 contents ^ HHOOWW--TTOO Written by Dogphlap IInnssttaalllliinngg MMyytthhbbuunnttuu 1100..1100 TV Tuner Cards 15 contents ^ HOWTO - INSTALLING MYTHUBUNTU 10.10 Frontends And Backends Navigating The Setup Pages 16 contents ^ HOWTO - INSTALLING MYTHUBUNTU 10.10 Idiosyncrasies Of Input Connections Frontend Setup Video sources: Capture Cards: Idiosyncrasies Of Backend Setup General: 17 contents ^ HOWTO - INSTALLING MYTHUBUNTU 10.10 Useful keys: Esc backs out of everything/anywhere, one step per key press. Enter selects a highlighted menu item. f allows left/right arrow keys to control volume level. \ mutes the sound. a allows left/right arrow keys to slow or speed up playback. End move fwd 24hrs in program guide (Shift-End for -24hrs). Rt arrow move 30secs fwd in playback and live TV (if possible). Lt arrow moves 10 seconds back during playback and live TV. p pauses playback (hit it again to resume). Numeric select channel when watching live TV (Enter selects*). Up/Down keys: browse channels in order when watching live TV (Enter selects*). Up/Down keys: move 10mins back/forward when watching recording. * if Enter is required depends on setup. The Magic Of The Letter 'd' 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 Written by Robin Catling FFiillee SSyysstteemmss PPaarrtt 11 -- HHoommee AAddvvaannttaaggee Dear Diary... Ext Family Rise and Fall 20 contents ^ LINUX LAB - FILE SYSTEMS PART 1 SWAP Shop No Country for Old File- Best of the Rest systems Better and Better 21 contents ^ MMYY SSTTOORRYY Written by Célio Ricardo Quaio Goetten 22 contents ^ 23 contents ^ RREEVVIIEEWW Written by Greg Walters BBooxxeeee BBooxx The Remote The Hardware 24 contents ^ REVIEW: BOXEE BOX In Use The Good The Bad 25 contents ^ REVIEW: BOXEE BOX The Bottom Line Greg Walters 26 contents ^ Every 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: LLEETTTTEERRSS . Missing Info OSX > Ubuntu Join us on: A PLEA ON BEHALF OF THE PODCAST PARTY Chris Warren Comments and audio may be edited for length. Please remember this is a family-friendly show. Igor Barinov Robin 27 contents ^ UUBBUUNNTTUU WWOOMMEENN Written by Elizabeth Krumbach Elizabeth Krumbach Valorie Zimmerman 28 contents ^ UUBBUUNNTTUU GGAAMMEESS Written by Ed Hewitt BBrraaiidd Score: 9/10 Good Bad 29 contents ^ If you have Ubuntu-related questions, email them to: QQ&&AA , and Gord will answer them in a future Compiled by Gord Campbell issue. I want to install the I was installing Ubuntu Gimp help 10.10, and got to the Q documentation locally. I Q screen when it asks, installed the gimp-help- "who are you." I filled in common package, but this did all the fields, but the "forward" not enable the help function in Does anyone know how button was still not available. the program itself. to get this video to Q display in Ubuntu? Link: gimp-help-en http://www.cbsnews.com/video/w atch/?id=7166315n When I try to install Ubuntu, it gets part All I get is a black empty box Q way, then just stops both in Firefox and Chromium.