Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.20 seconds.

  1. Replies
    13
    Views
    1,580

    [SOLVED] Re: SQL Database (phpmyadmin)

    Your looping back to your initial question ... yes, phpmyadmin, but as I said I don't use it, but I can tell you how to do it via the command line [:loop:]

    best ... khay
  2. Replies
    13
    Views
    1,580

    [SOLVED] Re: SQL Database (phpmyadmin)

    No prob ... I should have explained however that the "mysql>" is the MySQL prompt. So, you would first need to login to mysqld (the mysql service)


    % mysql -u root -p
    mysql> drop database <name>...
  3. Re: Are event driven programs suitable for creating non-graphical applications?

    .. and perhaps the most obvious example ...

    Welcome to Linux
    localhost login:

    best ... khay
  4. Replies
    3
    Views
    720

    [ubuntu] Re: Unable to scrolle gnome-terminal

    This might not sound like a helpful answer but to me this idea of "scrolling" a terminal is just completely alien. A terminal provides everything needed for its output to be managed, you have paging,...
  5. Replies
    36
    Views
    3,026

    Re: Thoughtless OPs discourage responses

    Seiji, et al ...

    I hadn't paid any attention to the Community Discussion forums until yesterday, I generally only read/post in General Help and Programming Talk, so I was pleased to have done so,...
  6. Re: p0rnview - Software Centre NEEDS some form of governance

    No, I don't find it odd. Please understand that I am not saying what is 'right' or 'wrong' here. I'm trying to point out to people that mass use of Ubuntu in state organisations means that Ubuntu...
  7. Re: p0rnview - Software Centre NEEDS some form of governance

    I was responding to your question, you asked: "so you think discussing porn with an 8 year old is appropriate?" A question which I took to be loaded, now your in agreement, and we've switched to...
  8. Replies
    13
    Views
    21,912

    Re: Reverse DNS in BASH script

    Habitual ...

    reverse DNS is the other way round ...


    host xxx.xxx.xxx.xxx | awk '{print $NF}'

    best ... khay
  9. Replies
    13
    Views
    1,580

    [SOLVED] Re: SQL Database (phpmyadmin)

    mysql> drop database <name>

    Where <name> is the name of the database ...

    best ... khay
  10. Replies
    20
    Views
    1,277

    Re: Diff file with the hole folder cotent

    hmmmm ... well, how? You see, true/false has to have whats called a 'return value', so an 'if [[ such and such ]]; then' doesn't get to the "then" unless the test returns true. This same principle...
  11. Replies
    41
    Views
    10,490

    [ubuntu] Re: External hard drive keeps unmounting

    Correct, the "image" is much like an ".iso" (CD image). The only issue you need to be aware of it the size of the image and the amount of available disk space.

    best ... khay
  12. Replies
    13
    Views
    1,580

    [SOLVED] Re: SQL Database (phpmyadmin)

    Your welcome ... everything that is echo'ed into user-sql-data is MySQL commands, its just quicker to script, two seconds and the database is created. Note that mostly its abount granting/denying...
  13. Re: p0rnview - Software Centre NEEDS some form of governance

    So you think discussing porn with an 8 year old is appropriate? Kids that age are already hearing things at school, so it wouldn't surprise me for him to already at least have an idea of what porn...
  14. Replies
    13
    Views
    1,580

    [SOLVED] Re: SQL Database (phpmyadmin)

    OK ... so I have it pretty much scripted as I need to do this often for users/projects.


    #!/bin/sh
    # new-db.sh

    # You can add the root mysql password here (for convenience), but keep
    # this...
  15. Replies
    20
    Views
    1,277

    Re: Diff file with the hole folder cotent

    Well, you have an if statement that simply runs the diff ... I don't know what you expect to happen. If statements have to test the truth of something. Its really hard to see what your trying to do...
  16. Replies
    13
    Views
    1,580

    [SOLVED] Re: SQL Database (phpmyadmin)

    Yes, leave the default mysql database and create a new database for each project. I don't use phpmyadmin and so I'm not going to be much help in that regard, I'm sure its a just click away.

    I...
  17. Replies
    5
    Views
    418

    [ubuntu] Re: Automatic scheduled FTP to website.

    For cron you would do something like the following:


    */5 * * * * /path/to/script.sh

    "script.sh" could then be a simple oneliner to scp/sftp you image to your webserver.

    best ... khay
  18. Replies
    20
    Views
    1,277

    Re: Diff file with the hole folder cotent

    No, your right, diff will do basic comparison on jpegs, and this is probably all you require. I use diff for text comparison, and in that regard its output is often verbose.

    PIL is a library with...
  19. Re: p0rnview - Software Centre NEEDS some form of governance

    winh8r ... I did write "If there are legal constaints then, however arbitrary, they should be followed", and I framed my point as having more to do with arbitraryness than any concern about religion,...
  20. Replies
    20
    Views
    1,277

    Re: Diff file with the hole folder cotent

    BTW, if your comparing jpegs then you should really use something like PIL, Python Image Library, 'diff' will only provide you with string comparison (and thats not what you want).

    Or, if you're...
  21. Replies
    20
    Views
    1,277

    Re: Diff file with the hole folder cotent

    Each ${file}.txt will be different, one for each diff ... reading diffs is hard enough without appending them all to the same file. Anyhow, I was just illustrating the method, the madness has to be...
  22. Replies
    20
    Views
    1,277

    Re: Diff file with the hole folder cotent

    Note there are three items on that line 1). the file, this is, the file you are comparing all the other files to 2). ${file} the files to be compared against, and 3). "> ${file}.txt" where the output...
  23. Replies
    20
    Views
    1,277

    Re: Diff file with the hole folder cotent

    ${i} is the variable of the "for" loop. It could be written:


    for file in files/* ; do
    diff file ${file} > ${file}.txt
    done

    But that would be ... ummm ... confusing :)

    best ... khay
  24. Re: p0rnview - Software Centre NEEDS some form of governance

    Keith ... do you not find it odd that where "mass use" is concerned we wish to prevent persons being exposed to the word "p0rn" but that these same persons can be exposed to language that describes...
  25. [kubuntu] Re: ksh running terminal: hash (#) exits the shell

    It was a longshot on my part. I'm not a ksh user and so it was advice given without being able to even attempt to reproduce.

    The beers are on me ... cheers! ... khay
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4