Search:

Type: Posts; User: wrightee; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    7,861

    [SOLVED] Re: tar question - include only *.py files

    find . -name \*.py|xargs tar cvfz osp.tar.gz

    That worked.
  2. Replies
    3
    Views
    7,861

    Re: tar question - include only *.py files

    That half worked.. though I need to go down into the directory tree and find all the *.py's there too; this restricts to current directory.. how can I make it descend? Thanks for your help so far.
  3. Replies
    3
    Views
    7,861

    tar question - include only *.py files

    Hi - sorry, this isn't really programming talk but I couldn't figure out where else to put it.. I have a bit of a crisis going on and need to tar up all files that match a pattern in a directory...
  4. [ubuntu] Re: Hardy refusing to keep nvidia drivers or monitor settings

    That didn't help me - I did an upgrade first and completely hosed my machine. Then did a clean install wiping everything and can only get low graphics.. except for those moments immediately after...
  5. [ubuntu] Re: Hardy refusing to keep nvidia drivers or monitor settings

    Sorry Jay, no fix from me - just chiming in with a "me too".

    I followed the instructions posted at LucioAlbenga.com which *worked* - when I got back in (without a reboot) I had the full 1920x1200...
  6. MySQL - Lots of tables, lots of databases or lots of rows.. ?

    I always wonder this when about to start a new project involving more than a few clients on a project, so I thought I'd ask the opinion of those who might know...

    We're going to have numerous...
  7. Replies
    0
    Views
    189

    Help with a JOIN query needed mysql 4.1

    Hi - I'm sure this can be done with one query but it's driving me nuts! I have something like this:

    tbl_people:
    - id, name

    tbl_comments:
    - id,people_id,comment,dated

    I want to select all...
  8. Replies
    10
    Views
    498

    Re: javascript is confusing...

    The simple answer to all pita problems with javascript is Jquery!


    $('#courseSelect').bind("change",function(){resetMyText()});

    function resetMyText(){
    $('#texfield1').val("");
    ..etc
    }
  9. Replies
    4
    Views
    471

    Re: [PHP] Calling .sh files

    I don't run it as a cgi - when I set it up I remember all the challenge was in the sudoers edit part - I only ran mine as sudo since the script did a few tricky things that needed big permissions so...
  10. Replies
    4
    Views
    471

    Re: [PHP] Calling .sh files

    Make sure the .sh is executable, edit sudoers accordingly (sorry, don't have ref to hand and out of battery in 4 mins) and run thus:



    $output = shell_exec('sudo /var/www/blah.sh');
    #echo...
  11. Re: How did your path begin? Having a hard time here

    I started when I was 9 by reading a book called "Fred Learns About Computers" that besides having lots of uninteresting stuff about vats of mercury had a few chapters about control flow, variables...
  12. Re: Help: Getting QT up and running to develop with?

    I'm not sure about the install part, all seemed to be already there for me.. I use kdevelop scripting for QT programming with PyQT, depending on whether you want to hand code interfaces or visually...
  13. Thread: Adobe Air

    by wrightee
    Replies
    3
    Views
    399

    Re: Adobe Air

    I don't 'get' prism either - it seems completely pointless to me - just a "convenient" way of making a link to a website on your desktop / app menus with browser chrome removed at the moment as far...
  14. Thread: Adobe Air

    by wrightee
    Replies
    3
    Views
    399

    Adobe Air

    Hello fellow developers .. I'm reading about Air now it's come to Linux - am I right in thinking it's basically just a way of packaging your html/js/flex/flash code into an installer / desktop app ?...
  15. Replies
    6
    Views
    409

    Re: Looking for Code Repository Solution

    We use a wiki for code snippets, and subversion for everything else. Some of the developers have their own secret code dbs for those embarrassing / competitive bits they like to hang on to :)
  16. Thread: Backup Script

    by wrightee
    Replies
    8
    Views
    425

    Re: Backup Script

    #! /usr/bin/env python
    import os
    m="WD"
    stat=os.system("mount | grep "+m)
    if stat==0:
    os.system("rsync -avh --exclude=vmware /home/wrightee /media/WD*/bak --delete")
    else:
    print "Drive not...
  17. Replies
    296
    Views
    73,623

    Re: "Hello Ubuntu" in every programming language

    At least I can sleep now knowing that the loop is complete..
  18. Replies
    296
    Views
    73,623

    Re: "Hello Ubuntu" in every programming language

    ZX Spectrum

    This is from 25 ish year old memories...


    10 INPUT ("Hi, what's your name?");name
    20 PRINT "Hi ";name;", welcome to Ubuntu!"
  19. Replies
    12
    Views
    573

    Re: Regular Expression Help

    Use \b in your regex for word boundary:

    /\bwolf\b/

    will match "my wolf" but not "wolfwolf"

    I'm not sure how to accommodate hyphens etc, probably with escaping them.

    Remember with a pure...
  20. Replies
    296
    Views
    73,623

    Re: "Hello Ubuntu" in every programming language

    JQuery
    Won't win you any accessibility prizes or W3C badges, but shows how easy peasy this DOM stuff can be :)



    <html>
    <head>
    <script type="text/javascript"...
  21. Replies
    2
    Views
    1,150

    Re: ajax and nested

    I'm not completely sure I understand the question - but for me the answer is always to use jquery :)

    $("#target_div").load("/source_page.htm #source_div")

    ..will get #source_div from...
  22. Replies
    12
    Views
    573

    Re: Regular Expression Help

    That might break something - it doesn't account for text inside of angle brackets, text that's already inside of hyperlinks or partial words. Your code would replace all the following instances of...
  23. Replies
    6
    Views
    323

    Re: mysql update problem...

    'on' is a mysql keyword - as in 'left join x on..', so it doesn't make sense. If you have a column called 'on' and you can't change it, try wrapping in backticks `on`

    C
  24. Replies
    0
    Views
    1,167

    PyQT / QDate / QTableWidget

    Hi, new at PyQT but not coding.. I'm stumbling with QDate and
    QTableWidget using PyQT and would appreciate some guidance:

    My server gives me a string y[0]: "20080327", which I convert to a...
  25. Replies
    4
    Views
    2,316

    Re: Book recommendations for Python/GTK+ needed

    I thought my google-fu was broken... Thanks for the link.
Results 1 to 25 of 32
Page 1 of 2 1 2