Today's News

28th Aug 2007
27th Aug 2007
26th Aug 2007

Get Linux in South Africa Pretoria on DVD or CD, SUSE, OpenSuse, Fedora, Mandriva, Knoppix, Mandrake, Debian, DamnSmall, DSL, Gentoo, Slackware, SimplyMepis, Monoppix, FreeBSD, Trustix, Comodo, Smoothwall, Gibraltar, IPCop, OpenCD, Ubuntu, Kubuntu, Redhat, CentOS, Whitebox, PCLinuxOS, Xandros, Vector, Scientific, OpenOffice, Vector, Foresight, Asterisk
 
News Alert


Linux and Open Source News for 27th August 2007

Mandriva Download

previous    Distro Watch    next


  popularitypopularitypopularitypopularitypopularitypopularity

Source: LinuxTracker.org

Category: Open Source Software Size: 450.99 MB Status: 36 seeders and 82 leechers Added: 2007-08-27 19:25:55


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: LinuxTracker.org

Category: Linux Live CDs Size: 1.09 GB Status: 6 seeders and 8 leechers Added: 2007-08-27 17:11:40


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: LinuxTracker.org

Category: Open Source Software Size: 41.86 MB Status: 7 seeders and no leecher Added: 2007-08-27 13:58:36


  popularity

Source: LinuxTracker.org

Category: ZoneCD Size: 71.24 MB Status: 1 seeders and 8 leechers Added: 2007-08-27 12:03:17


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: LinuxTracker.org

Category: AliXe Size: 331.38 MB Status: 9 seeders and 1 leechers Added: 2007-08-27 02:29:57


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: damnsmall

Robert Shingledecker has announced the second release candidate for Damn Small Linux 4.0. From the changelog: "New xtar.lua - a new graphical application to view, extract or process as a MyDSL extension various tar files; new netcardconf.lua - a new graphical application to configure network cards; new printing.lua, .


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: weekly

This week in DistroWatch Weekly: Editorial: How popular is a distribution? Statistics: DistroWatch in Europe News: openSUSE package management, Gentoo overlays, Debian with initng, KDE 4 Released last week: SmoothWall Express 3.0, PAIPIX 7.0 Site news: DistroWatch Weekly podcast returns New additions: TinyMe New distributions: BlackRoute, Embun, Lapwing-Linux .



previous    Linux Today News Service    next


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

Ubuntu Geek: "SSH is a great way to remotely administer a server. However, it still has a number of issues when you open it up to the world "


  popularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

HowtoForge: "So, you have an irritatingly loud CPU fan which is making you consider whether or not launching your laptop through the nearest window is a good idea "


  popularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

Linux and Other Rants: "He already knows about Linux because I've had him use it in the past. This time however, he wanted to stick with Vista to try it out "


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

Tuxmachine: "Another developmental release of the upcoming openSUSE 10.3 was released a few days ago with some improvements, some regressions, and some minor eye candy changes "


  popularitypopularitypopularity

Source: Linux Today

Blue GNU: "The *Nixed Report is pushing a grassroots public relations campaign aimed at getting GNU/Linux mentioned on radio talk shows "


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

Linux Journal: "That's why I believe that the final success of Linux, and of free and open source software, will be an economy that values freedom and choice as much as it values scarcity "


  popularitypopularitypopularity

Source: Linux Today

Mad Penguin: "It has long since been my own personal experience that Linux documentation is largely ignored by Linux beginners in exchange for the interactivity of Linux forums "


  popularitypopularity

Source: Linux Today

#open.ended: "He's not exaggerating; the top 25 at CodePlex really do fail to impress "


  popularity

Source: Linux Today

wolfgang.lonien.de: "Since Skype is a proprietary commercial enterprise, it doesn't allow for open source auditing of their code; so they can tell us anything without providing any independent means of verification "


  popularitypopularitypopularity

Source: Linux Today

The Long Tail: "I'm posting this because I feel honestly conflicted about something that's come up "


  popularity

Source: Linux Today

P2P Foundation: "Yochai Benkler describes Open Source as a methodology of commons based peer production. This means work made collaboratively and shared publicly by a community of equals "


  popularitypopularitypopularitypopularity

Source: Linux Today

CNET News: "Applications company SugarCRM intends to file to become a public company within two years, said CEO John Roberts "


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

Linux.com: "In 2004 Daniel Robbins, the founder of Gentoo Linux, walked away from the project after creating the nonprofit Gentoo Foundation to handle its intellectual property "


  popularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

Russell Beattie's Weblog: "I like Jonathan Schwartz a lot, but I think that unless some drastic changes are made to Java, the move to JAVA as Sun's ticker symbol is going to be as relevant as changing it to COBOL "


  popularitypopularitypopularity

Source: Linux Today

Groklaw: "Rob Weir is reporting some very disturbing news about shenanigans in the OOXML ISO process "


  popularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

Africa News: "African Civil Society Organisations may be spoiling for war with the global software giant, Microsoft Corporation, over its bid to have its DIS 29500 'Office Open Extensible Markup Language' endorsed by the International Standard Organisation "


  popularitypopularitypopularity

Source: Linux Today

TechNewsWorld: "The open source model of developing software is making a significant impact, not only in the software development and broader high-tech community, but more generally within corporations "


  popularitypopularitypopularity

Source: Linux Today

KernelTrap: "'The elections for five of the ten members of the Linux Foundation Technical Advisory Board [TAB] are held every year '"


  popularitypopularitypopularity

Source: Linux Today

blogbeebe: "I've been reading lately about how Dell is slated to sell just 20,000 PCs with Linux loaded on them "


  popularity

Source: Linux Today

Tectonic: "Doctor Daniel Mashao, the chief technology officer at Sita (the South African State Information Technology Agency), announced the launch of the government-wide free and open source programme at the GovTech conference on Thursday "


  popularitypopularitypopularity

Source: Linux Today

ConsortiumInfo: "As I had noted in an earlier blog entry, China had been signalling some displeasure with Microsoft and OOXML in recent weeks, via Xinhua, the official government news agency, so this is not totally a surprise "


  popularity

Source: Linux Today

Mandriva Blog: "So it will soon be time to cheer you up with some good news. We have been kind of quiet recently, which does not mean we have not been active "


  popularitypopularitypopularitypopularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

OSWeekly: "I have pointed this out time and again. Like it or not, the patent war is already here "


  popularitypopularitypopularitypopularitypopularity

Source: Linux Today

Computerworld UK: "Red Hat has announced new training and consulting services, including a new two-day course that shows you how to install, configure and manage virtual hosts on Red Hat Enterprise Linux 5 "


  popularitypopularitypopularitypopularitypopularitypopularity

Source: Linux Today

PolishLinux: "There are a lot of free file managers. There is Nautilus in GNOME environment (with GTK libraries), KDE users have Konqueror and Krusader "


  popularitypopularity

Source: Linux Today

Mad Penguin: "But correct me if I'm wrong, is MainActor not the perfect vehicle for moving the MPEG encoder ?"



previous    News for nerds, stuff that matters    next


  popularitypopularitypopularitypopularity

Source: Slashdot: Linux

jammag writes "An article at the site Datamation, entitled Becoming a Linux OEM: A Roadmap, talks about the challenges (and rewards) of selling hardware with Linux pre-installed — most likely a growth market in the years ahead. The interesting part is the description of how some smaller Linux OEMs have made it. The bottom line: surviving as a Linux OEM requires far more than making it as a Windows OEM. In particular, you have to make the systems idiot-proof for users who don't care a whit about what OS they're using."Read more of this story at Slashdot.



previous    News, reviews and commentary on all aspects of Linux and open-source software, including application servers, communications and database servers.    next


  popularity

Source: eWEEK Linux


  popularity

Source: eWEEK Linux

Opinion: Any company that has managed for more than a decade not only to survive within Microsoft's shadow but also to profit from it clearly knows how to run a business.



previous    The O'Reilly Network ONLamp Articles and Weblogs    next


  popularity

Source: ONLamp.com

The optparse module is a modern alternative for command line option parsing that offers several features not available in getopt, including type conversion, option callbacks, and automatic help generation. There are many more features for to optparse than can be covered here, but hopefully this introduction will get you started if you are writing a command line program soon.


Module: optparsePurpose: Command line option parser to replace getopt.Python Version: 2.3Creating an OptionParser:There are two phases to parsing options with optparse. First, the OptionParser instance is constructed and configured with the expected options. Then a sequence of options is fed in and processed. import optparseparser = optparse.OptionParser()Usually, once the parser has been created, each option is added to the parser explicitly, with information about what to do when the option is encountered on the command line. It is also possible to pass a list of options to the OptionParser constructor, but that form does not seem to be used as frequently.Defining Options:Options can be added one at a time using the add_option() method. Any un-named string arguments at the beginning of the argument list are treated as option names. To create aliases for an option, for example to have a short and long form of the same option, simply pass both names.Unlike getopt, which only parses the options, optparse is a full option processing library. Options can be handled with different actions, specified by the action argument to add_option(). Supported actions include storing the argument (singly, or as part of a list), storing a constant value when the option is encountered (including special handling for true/false values for boolean switches), counting the number of times an option is seen, and calling a callback. The default action is to store the argument to the option. In this case, if a type is provided, the argument value is converted to that type before it is stored. If the dest argument is provided, the option value is saved to an attribute of that name on the options object returned when the command line arguments are parsed.Parsing a Command Line:Once all of the options are defined, the command line is parsed by passing a sequence of argument strings to parse_args(). By default, the arguments are taken from sys.argv[1:], but you can also pass your own list. The options are processed using the GNU/POSIX syntax, so option and argument values can be mixed in the sequence.The return value from parse_args() is a two-part tuple containing an optparse.Values instance and the list of arguments to the command that were not interpreted as options. The Values instance holds the option values as attributes, so if your option dest is “myoption”, you access the value as: options.myoption.Simple Examples:Here is a simple example with 3 different options: a boolean option (-a), a simple string option (-b), and an integer option (-c).import optparseparser = optparse.OptionParser()parser.add_option('-a', action="store_true", default=False)parser.add_option('-b', action="store", dest="b")parser.add_option('-c', action="store", dest="c", type="int")print parser.parse_args(['-a', '-bval', '-c', '3'])The options on the command line are parsed with the same rules that getopt.gnu_getopt() uses, so there are two ways to pass values to single character options. The example above uses both forms, -bval and -c val.$ python optparse_short.py (, [])Notice that the type of the value associated with 'c' in the output is an integer, since the OptionParser was told to convert the argument before storing it.Unlike with getopt, “long” option names are not handled any differently by optparse:parser = optparse.OptionParser()parser.add_option('--noarg', action="store_true", default=False)parser.add_option('--witharg', action="store", dest="witharg")parser.add_option('--witharg2', action="store", dest="witharg2", type="int")print parser.parse_args([ '--noarg', '--witharg', 'val', '--witharg2=3' ])And the results are similar:$ python optparse_long.py(, [])Comparing with getopt:Here is an implementation of the same example program used in the discussion of getopt:import optparseimport sysprint 'ARGV :', sys.argv[1:]parser = optparse.OptionParser()parser.add_option('-o', '--output', dest="output_filename", default="default.out", )parser.add_option('-v', '--verbose', dest="verbose", default=False, action="store_true", )parser.add_option('--version', dest="version", default=1.0, type="float", )options, remainder = parser.parse_args()print 'VERSION :', options.versionprint 'VERBOSE :', options.verboseprint 'OUTPUT :', options.output_filenameprint 'REMAINING :', remainderNotice how the options -o and –output are aliased by being added at the same time. Either option can be used on the command line:$ python optparse_getoptcomparison.py -o output.txtARGV : ['-o', 'output.txt']VERSION : 1.0VERBOSE : FalseOUTPUT : output.txtREMAINING : []$ python optparse_getoptcomparison.py --output output.txtARGV : ['--output', 'output.txt']VERSION : 1.0VERBOSE : FalseOUTPUT : output.txtREMAINING : []And, any unique prefix of the long option can also be used:$ python optparse_getoptcomparison.py --out output.txtARGV : ['--out', 'output.txt']VERSION : 1.0VERBOSE : FalseOUTPUT : output.txtREMAINING : []Option Callbacks:Beside saving the arguments for options directly, it is possible to define callback functions to be invoked when the option is encountered on the command line. Callbacks for options take 4 arguments: the optparse.Option instance causing the callback, the option string from the command line, any argument value associated with the option, and the optparse.OptionParser instance doing the parsing work.import optparsedef flag_callback(option, opt_str, value, parser): print 'flag_callback:' print '\toption:', repr(option) print '\topt_str:', opt_str print '\tvalue:', value print '\tparser:', parser returndef with_callback(option, opt_str, value, parser): print 'with_callback:' print '\toption:', repr(option) print '\topt_str:', opt_str print '\tvalue:', value print '\tparser:', parser returnparser = optparse.OptionParser()parser.add_option('--flag', action="callback", callback=flag_callback)parser.add_option('--with', action="callback", callback=with_callback, type="string", help="Include optional feature")parser.parse_args(['--with', 'foo', '--flag'])In this example, the –with option is configured to take a string argument (other types are support as well, of course).$ python optparse_callback.pywith_callback: option: opt_str: --with value: foo parser: flag_callback: option: opt_str: --flag value: None parser: Help Messages:The OptionParser automatically includes a help option to all option sets, so the user can pass –help on the command line to see instructions for running the program. The help message includes all of the options an indication of whether or not they take an argument. It is also possible to pass help text to add_option() to give a more verbose description of an option.parser = optparse.OptionParser()parser.add_option('--no-foo', action="store_true", default=False, dest="foo", help="Turn off foo", )parser.add_option('--with', action="store", help="Include optional feature")parser.parse_args()The options are listed in alphabetical order, with aliases included on the same line. When the option takes an argument, the dest value is included as an argument name in the help output. The help text is printed in the right column.$ python optparse_help.py --helpUsage: optparse_help.py [options]Options: -h, --help show this help message and exit --no-foo Turn off foo --with=WITH Include optional featureCallbacks can be configured to take multiple arguments using the nargs option.def with_callback(option, opt_str, value, parser): print 'with_callback:' print '\toption:', repr(option) print '\topt_str:', opt_str print '\tvalue:', value print '\tparser:', parser returnparser = optparse.OptionParser()parser.add_option('--with', action="callback", callback=with_callback, type="string", nargs=2, help="Include optional feature")parser.parse_args(['--with', 'foo', 'bar'])In this case, the arguments are passed to the callback function as a tuple via the value argument.$ python optparse_callback_nargs.py with_callback: option: opt_str: --with value: ('foo', 'bar') parser: References:Python Module of the Week HomeDownload Sample CodeTechnorati Tags:python, PyMOTW


  popularitypopularitypopularity

Source: ONLamp.com

A couple of years ago I was offered a job by a state department of higher education to build an online data capturing service that was able to compute multivariate statistics. Although I didn’t take the position, the solution would have been a fairly straightforward implementation of open source tools.
The goal of the project was to provide a web based system complete with registration, login and password management, and simple data entry, all through a friendly and accessible interface. Further, data was to be generated in such a way that users should be able to initially compute some basic statistics such as mean, median, variance, frequency, cross tabulation, and standard deviation. The system was also supposed to be designed for additional growth.
The vision I had for the project was simple. Develop the content management part of the system in PHP and MySQL, design a fast and intuitive interface, and throw in some nested conditionals for error management. Statistics would be calculated using basic mathematical operators, line or bar graphs would be generated from arrays of recent data, and more complicated charts would be built using an outside visualization package.
I ended up building most of the system for fun over the course of a month, and was surprised by its elegance and simplicity. If popular demand is a measure of utility (think Beautiful Code), then many people recognize that optimization occurs by way of clarity and concision. I think the same idea applies to the overarching design of a project, which includes not only programming languages and databases but also system architecture. But there has always seemed to be an overriding problem.
Is the simple and elegant solution a luxury of time and resources, or should it really be incorporated within the product lifecycle?



Updated: Tue Aug 28 23:55:04 2007


OrderWeb Software CC
Contact Us