Search:

User: Bodsda; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.15 seconds.

  1. Replies
    9
    Views
    729

    Re: python script eating processor

    I won't comment on the CPU usage as others have already covered that, but here is my list of issues in that code

    non-descriptive variable names
    pointless variables used once
    reuse of variable...
  2. Replies
    4
    Views
    531

    Re: sql aggregate functions

    The trick to SQL is knowing what it actually returns before writing a 2 or more part query. Try running SELECT COUNT(*) against your tables with certain where clauses and see how it changes, then...
  3. Replies
    8
    Views
    1,823

    Re: Python IRC bot question

    You have some code that does nothing other than check and reply to a PING and to send a short message when you encounter !hello
    What you first need, as others have pointed out, is to identify when...
  4. Replies
    27
    Views
    38,625

    Sticky: Re: Beginners Programming Challenge #29

    Don't worry about it, just a minor delay - we should have #29 up in a week or so, the link will be reposted then.

    EDIT: Back up!
  5. Re: Change text/code/numbers in a file using Python

    It's a string method
    http://docs.python.org/2/library/stdtypes.html#string-methods



    line = "This is foo"
    line.replace("foo", "bar")
  6. Re: Python SSH PPP and F5 VPN - only port 443 forwarding

    We'd need a lot more info, such as how the VPN is configured, what type of traffic it accepts, what you normally use it for. It would also be useful to see your routing table

    Having said that,...
  7. Re: How to convert log file data into sqlite database?

    There is a simple example in the link that was posted.
    I suggest you read that first and then ask for further help if you're still having problems.

    Bodsda
  8. Re: Test if program is ever running (not sleeping) over a time period?

    Assuming the output is delivered line by line, you can pipe to awk to get just the first column


    command | awk '{print $1}'

    Store the output, or run your comparison directly against that in...
  9. Replies
    6
    Views
    797

    Re: Semicolon cannot terminate the statement

    I'm more surprised that it let you enter a NULL value into a primary key column. But hey-ho
  10. Re: Python program to get User and IP out of /var/log/secure

    Judging by your code, I would be asking if regular expressions are a good candidate here.
    I'm not at a linux box at the moment, so can't confirm but I expect you can extract this info with some well...
  11. Replies
    33
    Views
    4,089

    Re: Beginners programming challenge #28

    Morning all, it's great to see people stepping in to keep these challenges going. Now, we haven't had a reply to this thread for quite a while, and I've been unable to get in touch with Bachstelze....
  12. Replies
    30
    Views
    1,663

    Re: Tutorials Section Re-opening

    I personally don't like the idea of community wide editable tutorials. I would prefer to see the old T&T back to how it was, but with mandatory information such as version numbers so that the reader...
  13. Replies
    17
    Views
    16,494

    Re: What is the 'best' IDE for python development?

    Not an IDE, but vim is my choice
  14. Re: charging payment per watch via phone company

    Assuming this is a streaming service and you don't place any pay-per-view payment systems in place then the only charge anyone will incur is the user if they go over their tariff's data usage limit....
  15. Replies
    19
    Views
    1,636

    Re: Run a bash script on Terminal Startup

    Can I suggest that you run some of the code that you have been given, find the one that has the best output for your needs, analyse it and adapt to suit.
    What would you be learning if we write it...
  16. Replies
    25
    Views
    1,501

    Re: Beginning to program

    Except the python interpreter on their site is shocking and relies on people writing reliable test cases; which more often then not, they don't.


    I would start with the sticky in this forum. ...
  17. Replies
    17
    Views
    5,520

    Re: Running Python Script in Terminal

    You should also consider changing your shebang line to use the standard python environment variable.
    This will ensure that you're scripts still work if the python executable location is changed

    ...
  18. Replies
    1
    Views
    252

    [ubuntu] Re: Laptop that hates browsing

    First thing that springs to mind is faulty hardware. Try using the the wireless instead of wired or vice versa.
    You could also try a USB wifi dongle.

    Failing that I would take it apart and...
  19. Replies
    2
    Views
    1,344

    [ubuntu] Re: My Laptop is not dectecting my External Monitor through the HDMI

    Hi,

    Can you paste the output of the following command please.


    lspci | grep -i vga


    This will help us identify which graphics card driver you need and which tools to use to configure the...
  20. Replies
    27
    Views
    38,625

    Sticky: Re: Beginners Team Programming Challenges Index

    Beginners Programming Challenge #28

    Bodsda,
    Ubuntu Beginners Team
  21. Thread: I need an idea

    by Bodsda
    Replies
    5
    Views
    440

    Re: I need an idea

    Write a web browser with just 3 features. URL input, Forward and Backward buttons.

    Bodsda
  22. Replies
    12
    Views
    1,270

    [ubuntu] Re: Format a Removable device?

    The easiest way is probably with a program called 'gparted'
    It may already be installed.

    Gparted gives you a graphical interface to disk partitioning.
    https://help.ubuntu.com/community/GParted...
  23. Replies
    7
    Views
    358

    [ubuntu] Re: script not working..

    Try this
    http://bit.ly/NFJFh8
  24. Replies
    7
    Views
    358

    [ubuntu] Re: script not working..

    On startup or on login?
  25. Replies
    10
    Views
    1,115

    [ubuntu] Re: How to Install Windows 7 on Ubuntu?

    See if this helps.
    https://help.ubuntu.com/community/WindowsDualBoot#Installing_Windows_After_Ubuntu

    Bodsda
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4