euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] ninja explanation of net neutrality



    Ben BarrettSat Feb 3 09:08:40 PST 2007

    http://www.youtube.com/watch?v=3DH69eCYcDcuQ
    That crazy ninja!  I hadn't seen the "Ask a Ninja" series before,
    funny and offbeat, but this episode quirkily promotes
    http://savetheinternet.com
    
    ben
    
    ps - I guess this is the official version:
    http://askaninja.com/news/2006/05/11/ask-a-ninja-special-delivery-4-net-neu=
    trality
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070203/5c31fc7d/attac=
    hment.htm
    
  • [Eug-lug] this week’s meeting



    Mr OFri Feb 2 21:27:16 PST 2007

    Was not the fuel a collaboration of Mr. Parker and Mr. Price? To
    both I say thank you (except for the olives). Looks as though
    the weather is warming up with the return of the rain. Next week
    we may overflow into the garage. 
    
    That be all,
    Mr O.
    
    
    --- Alan <euglug at thebucks.net> wrote:
    
    > 
    > Thanks to Mr. O. for letting us use his garage for the
    > meeting, and 
    > thanks to Mr. Price for supplying fuel for the meeting.
    > 
    > -ajb
    > 
    
    
    
     
    ____________________________________________________________________________________
    We won't tell. Get more on shows you hate to love 
    (and love to hate): Yahoo! TV's Guilty Pleasures list.
    http://tv.yahoo.com/collections/265 
    
  • [Eug-lug] is that a genuine copy of linux?



    Mr OFri Feb 2 21:22:44 PST 2007

    That is funny! Mainly because I have to deal with product
    activation all day long. Click on 'Download' and you actually
    get a download!
    
    
    --- larry price <laprice at gmail.com> wrote:
    
    > http://www.linuxgenuineadvantage.org/
    > 
    > According to an independent study conducted by some
    > scientists, many
    > users of Linux are running non-Genuine versions of their
    > operating
    > system.
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
    
    
     
    ____________________________________________________________________________________
    Do you Yahoo!?
    Everyone is raving about the all-new Yahoo! Mail beta.
    http://new.mail.yahoo.com
    
  • [Eug-lug] USB memory stick/U3 support



    silverlining2007 at gmail.comFri Feb 2 17:41:36 PST 2007

    Very Interesting article:
    http://www.infoworld.com/article/07/02/02/HNfrenchstudentsopensource_1.html
    
    "French authorities will give out 175,000 USB memory sticks loaded with
    open-source software to Parisian high-school students at the start of the
    next school year... The sticks will probably contain the Firefox 2 Web
    browser, Thunderbird e-mail client, an office productivity suite such as
    OpenOffice.org 2, an audio and video player, and software for instant
    messaging..."
    
    Maybe local schools here will employ similar idea?
    
    The topic leads into my question...  how well are USB memory sticks/flash
    drives supported in Linux?
    
    I just picked up a 1GB Memorex Mini Travel Drive U3 USB Flash Drive from
    Best Buy for $19.99. Package says "Linux 2.4 or higher" is supported.
    
    Moreover the Flash Drive is "U3 Smart" and Thunderbird comes preinstalled
    (along with Migo Synchronize tool and USafe password protection, which I
    don't know anything about). However package says "U3 software requirements:
    W2K SP4 or WinXP". No Linux is listed.
    
    Anyone have idea if any Linux distros support U3 on this drive (or any
    others). www.u3.com.
    
    
    
    
    
  • [Python] syntax check for python?



    horstFri Feb 2 12:09:32 PST 2007

    > Date: Fri, 2 Feb 2007 11:48:16 -0800 (PST)
    > From: horst <horsu at freeshell.org>
    ...>
    > c) Some IDEs have indentation checks that give warnings if a .py contains 
    > mixed TAB and whitespace indentation. Such things happen when you work in a
    
    Actually, running 'python -h' I noticed we also have a -t option:
    """
      -t     : issue warnings about inconsistent tab usage (-tt: issue errors)
    """
    
    I haven't used it yet...................... Horst
    
  • [Python] syntax check for python?



    horstFri Feb 2 11:48:16 PST 2007

    > Date: Fri, 2 Feb 2007 09:31:17 -0800
    > From: Bob Miller <kbob at jogger-egg.com>
    > 
    > Rob Hudson wrote:
    >
    >> Is there a way to syntax check a .py file without actually running it?
    ...>>
    >> What does Python have?
    >
    >    $ python -c 'import myfile'
    >
    
    That's what I use. A few comments:
    
      a) It's of course 'myfile' and not myfile.py
    
      b) If it's for a web application, or other networked application that are 
    ultimately run under a diffent userID than yours, you want to remove the 
    .pyc file that was created by the import statement, and let the apache 
    user recreate the .pyc file under that ownership. That way, whenever you 
    change the .py file apache can recompile an updated .pyc because it ownes 
    it. Otherwise it will be recompiled in memory everytime it's getting 
    imported. It's only a minor performance issue; but it also makes 
    diagnostic easier when you need to inspect access times (ls -lu) for 
    trouble shooting.
    
      c) Some IDEs have indentation checks that give warnings if a .py contains 
    mixed TAB and whitespace indentation. Such things happen when you work in 
    a mixed environment where some developpers work strictly in vi using TABs 
    and autoindent, and others just clip & paste (does TAB->space conversion 
    on some terminals)-:
      Those IDEs, i think, use the tabnanny module... (see python docs)
    
      - Horst
    
    
  • [Eug-lug] CD/DVD burning from Knoppix ?



    horstFri Feb 2 11:12:41 PST 2007

    Bob and Ben --thanks for feedback :-)
    
    Yes, I had found K3b later on (not sure if I should blame it on the new 
    'progresive' lenses I am supposed to wear all the time, or the fact that 
    that I had forgotten to start knoppix with fromhd=/dev/... )-:
    
    BTW, K3b also has a Verify option, and it works: the only file that failed 
    verification was my persistent home-directory-image --which obviously 
    changed between writing CD and re-reading :-)
    
    But I do like the idea of putting the command line stuff in a script 
    --though cdrecord has a pretty good documentation, preserving and 
    documenting what leaned once makes sense. Pretty slick how you merged 
    options in the script with cmd-line arguments !
    
      - Horst
    
    > Date: Fri, 2 Feb 2007 08:22:11 -0800
    > From: Bob Miller <kbob at jogger-egg.com>
    > Reply-To: Eugene Unix and Gnu/Linux User Group <euglug at euglug.org>
    > To: euglug at euglug.org
    > Subject: Re: [Eug-lug] CD/DVD burning from Knoppix ?
    > 
    > horst wrote:
    >
    >> I need to burn data to a CD from Knoppix(most recent Knoppix version
    >> avail.  --or older version if needed for whatever reason)
    >>  I realize, I never had to fiddled with CD/DVD burning from the command
    >> line ...Or maybe I just don't see what I should be looking for in the
    >> Knoppix/KDE dropdown... (silly)
    >
    > Look for K3B in the Multimedia menu.  That seems to be the
    > KDE-standard burning app.
    >
    > But that's not what I use.  I use this script to copy .iso files to
    > CD-RW.  It burns the CD, then reads it back and compares it to the
    > original.
    >
    >    ~> cat bin/burncd
    >    #!/bin/sh -e
    >
    >    case "$#-$1" in
    >      1-*.iso) ;;
    >      *) echo "usage: $0 file.iso" >&2; exit 1;;
    >    esac
    >
    >    bytes="`stat --format=%s \"$1\"`"
    >    sectors="`expr $bytes / 2048`"
    >    eject -t
    >    sudo cdrecord -tao "$1"
    >    readcd f=- sectors=0-$sectors | cmp - "$1"
    >    eject
    >
    > Feel free to adapt it to your needs. (-:
    >
    > You can edit /etc/default/cdrecord to specify the default drive(s) to
    > use, record speed, etc., or you can pass them in on the command line.
    >
    >    # cdrecord dev=ATAPI:0,0,0 speed=40 ...
    >
    > -- 
    > Bob Miller                              K<bob>
    >                                        kbob at jogger-egg.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
  • [Eug-lug] is that a genuine copy of linux?



    larry priceFri Feb 2 09:56:09 PST 2007

    http://www.linuxgenuineadvantage.org/
    
    According to an independent study conducted by some scientists, many
    users of Linux are running non-Genuine versions of their operating
    system.
    
  • [Python] syntax check for python?



    larry priceFri Feb 2 09:36:07 PST 2007

    http://pychecker.sourceforge.net/
    
    you can turn on warnings in the interpreter, but I don't think you can
    use the interpreter to check the code without running it
    
    
    
    On 2/2/07, Rob Hudson <rob at euglug.net> wrote:
    > Is there a way to syntax check a .py file without actually running it?
    >
    > I know Perl has perl -c.
    > I know PHP has php -l.
    >
    > What does Python have?
    >
    > Thanks,
    > Rob
    > _______________________________________________
    > Python mailing list
    > Python at euglug.org
    > http://www.euglug.org/mailman/listinfo/python
    >
    
  • [Python] syntax check for python?



    Bob MillerFri Feb 2 09:31:17 PST 2007

    Rob Hudson wrote:
    
    > Is there a way to syntax check a .py file without actually running it?
    > 
    > I know Perl has perl -c.
    > I know PHP has php -l.
    > 
    > What does Python have?
    
        $ python -c 'import myfile'
    
    Of course, if myfile contains executable statements, as opposed to
    class and function definitions, those statements will be executed.
    
    That's why you wrapped your executable statements in one of these.
    
        if __name__ == '__main__':
            # ...
    
    There's probably  a safer option using the parser module.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com