Page 1 of 6 123 ... LastLast
Results 1 to 10 of 60

Thread: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

  1. #1
    Join Date
    Sep 2007
    Beans
    400
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    > Sorry for the screenshot; but it's finally DONE!
    Major design changes happened, and modVedu is a standalone command-line app now, but here it is!!!

    ##########################
    Vedu-BETA (pre 2.0) is finally DONE!#
    ##########################

    Hey, I'm writing a program in Python that aims to make Linux easier, and cross all distribution boundaries. I don't really care if Automatix or EasyUbutnu has already done this, or already done that, since I tried both, and both resulted in me needing clean installs of Ubuntu.

    As the thread title implies, feel free to do w/e to me on this thread (laugh, boo, etc.) but really I started it to get some constructive feedback and help. I'm going to finish this project, so don't tell me to stop or "Why are you doing this at all?". Also, I respectfully ask you to keep "Automatix [or EasyUbuntu] rules!" or "Nobody need this!" type comments to a minimum. Thank you.

    Seeing as this thread is so long, if you have a suggestion, please just email or PM me (vminch@gmail.com).

    Supported Package Managers;
    Apt; debian, ubuntu, mint, pclinuxos
    portage; Gentoo, Sabayon
    Netpkg; Zenwalk
    (base) RPM; pretty much all linuxes
    Zypper; SUSE
    YUM; Fedoras
    URPMI; Mandriva

    want another one on this (short) list? Name it, and I'll look into it!!!


    NOTICE: This file is now far behind the severely unstable version of my code. It is still pretty unstable. It is still in wx (bleeding is in GTK) and this one has bugs in over 60% of its features.
    Um, you cant mess with the GUI code (well, go ahead, but im moving to GTK), but the module code is undergoing enough structural changes so feel free to mess with it.
    Attached Files Attached Files
    Last edited by 1337455 10534; February 12th, 2008 at 05:23 AM. Reason: Major Updates

  2. #2
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    I don't think it is wise to import in a loop, do it at the beginning. Also, don't use "input", use raw_input and then convert the result to an integer, and use Python's exception handling. It might be better to use a GUI, like wxPython.
    Last edited by LaRoza; October 23rd, 2007 at 03:30 AM.

  3. #3
    Join Date
    Sep 2007
    Beans
    400
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    Jan 27, 2008 UPDATE;
    The code has made humongous leaps since I first made this thread, it is now ready for heavy use and testing.
    v1.3 is out.
    Last edited by 1337455 10534; January 27th, 2008 at 08:11 PM.

  4. #4
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    <posting problem>

  5. #5
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    http://linuxgazette.net/issue83/evans.html


    PHP Code:
    raw_input("What is your choice?[0,1-5]: ")
    try:
        if 
    int(a) == 1:
            print 
    "A is 1"
        
    elif int(a) == 2:
            print 
    "A is 2"
        
    elif 
            
    #etc
    except(StandardError):
        print 
    "Input not valid" 
    Another possibility is just comparing strings, because it doesn't look like you are perform math on the input. I think that would be better.
    Last edited by LaRoza; October 23rd, 2007 at 04:09 AM.

  6. #6
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    I suggest the criticism of automatix for things to NOT do.
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  7. #7
    Join Date
    Sep 2007
    Beans
    400
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    Jan 3, 2008 UPDATE;
    The code has made humongous leaps since I first made this thread, it is now ready for heavy use and testing.
    v1.0 is out.
    Last edited by 1337455 10534; January 4th, 2008 at 12:20 AM.

  8. #8
    Join Date
    Sep 2007
    Beans
    400
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    Nvm: hitting enter during an "input" only kills teh script becuse there is no "elif [enter_number]" arguements..
    How do you check if the user entered: "Enter"??
    Code:
    a = input("BLAH!: ")
    # The User accidentally hit enter!
    # My script assigns the value X to a
    Anybody feel like solving for X ?

  9. #9
    Join Date
    Oct 2006
    Location
    Austin, Texas
    Beans
    2,715

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    I'm a pretty big Python advocate, but with all these system calls, why not just use a BASH script?

  10. #10
    Join Date
    Feb 2007
    Beans
    314
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Smart Linux: Yes/No, Help Me/Hate Me, Ideas/Criticism

    I dont think there is anything wrong with system calls. BTW Try using:

    Code:
    print '''
    stuff you want to print
    '''
    Instead of multiple print statements

    EDIT: when you hit enter to raw_input it returns ''. I think GUI should be your TOP priorities (besides from getting it to work), without GUI it won't do for its intended userbase.
    Last edited by Acglaphotis; October 24th, 2007 at 01:41 AM.
    <plexr> do you know std c++ ?
    <plexr> or is a weak understanding of VB your only strength
    <ahorse_> oohhhhh he just said the equivalent of *yo momma*
    www.acgla.net <--- My webpage : )

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •