Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    918

    [ubuntu] Re: Frostwire not connecting

    Are you sure you have an open port in the firewall for it? IIRC, Frostwire randomly decides which port to use when it's first started up, so it may not be using the same port as it was in the...
  2. [SOLVED] Re: (Bash) Script to randomize the order of names

    This looks suspiciously like a homework problem, which we generally won't just provide code for. If you have something that sorta works, you can post that, and we'll be happy to point out any...
  3. Re: Bash Scripts for movies theatre booking system

    Looks suspiciously like a homework problem...

    A hint - while Bash doesn't support two dimensional arrays, you can emulate one using a single dimension array and offsets. For example, "A" would be...
  4. Replies
    8
    Views
    475

    Re: IRC and IP addresses

    Frankly, you are, in my opinion, worrying about the wrong thing. The fact that someone can know what IP address you're connecting from doesn't give them a whole lot of information about you - at...
  5. Replies
    1
    Views
    4,150

    [ubuntu] Re: sdl-config error when compiling DOSbox 0.70

    Take a look at this link - it contains decent instructions for setting up to develop stuff using SDL.

    Lloyd B.
  6. [ubuntu] Re: echo $JAVA_HOME from command line shows nothing

    Not sure if this is a typo or not - there's a space between JAVA_HOME and the =, which is *not* allowed for scripting

    JAVA_HOME =/usr/lib/jvm/java-1.6.0-openjdkshould be...
  7. [SOLVED] Re: How to? get the size of a file referenced via a symbolic link

    Use the "-L" option of 'stat' - this tells 'stat' to "dereference" the symbolic link (reporting the information on the file pointed to by the link, rather than the information on the link itself)....
  8. Replies
    13
    Views
    930

    [other] Re: Strange Incoming Probes

    What it looks like is that a previous user of that IP address was part of a P2P network such as Gnutella (used by Limewire and others). While they held that address, the IP/port combination they...
  9. Re: Copyright, piracy, codec n sourcecode... [how it works?]

    You're confusing copyright with patents. File formats can't be copyrighted - the specification document can, and the *contents* of a particular file (such as the mp3 of a particular song) can be,...
  10. Replies
    1
    Views
    471

    [ubuntu] Re: su -p -c not preserving env

    First off, it should *never* have worked the way you are expecting. From the su man page:
    -m, -p, --preserve-environment
    Preserve the current environment, except for:

    ...
  11. Replies
    4
    Views
    635

    [ubuntu] Re: Adding text with sed - not working

    sed's default behavior is to make the changes, and then send the output to "STDOUT" (the terminal, unless you've redirected it.

    Two ways to change this:

    1. Use the "-i" option of sed. This...
  12. Replies
    3
    Views
    855

    [SOLVED] Re: [B]Segmentation Fault Code 139?[/B]

    I'm not sure "shrinkage" is in fact shrinkage - rand() returns a value between 1 and MAX_INT (which on most machines is 4,294,967,296). With this calculation
    shrinkage = 0.5 + rand()*0.0000030518;...
  13. Replies
    3
    Views
    168

    [ubuntu] Re: delete hard returns with sed???

    (FYI - Unix-type systems like Linux don't use the CR (carriage return) character to indicate the end of a line. Instead, they use a "newline" character ('^J'). But I'd recommend using '\n', as...
  14. Replies
    53
    Views
    14,434

    Re: Forums News: Forums Spam IP Ban List

    The problem with this is that many spammers create a new username, drop a load of spam on the forums, and then never use that username again. They *expect* to be banned, and are hoping that their...
  15. Replies
    5
    Views
    234

    [SOLVED] Re: Help with a shell script

    First off, no shell script is required for this - you can accomplish the same thing just by using the options of the 'fortune' command:
    fortune -sn 140will give you a "short" fortune, with short...
  16. [SOLVED] Re: Need Command to Bulk Edit Text Files (Remove 1st 2 Lines from Each .url File)

    The easiest way to handle all files in subdirectories is to use 'find' as a front end for the sed command:
    find /home/user -name "*.url" -exec sed -i "1,2 d" {} \;will search for *.url files in...
  17. Replies
    8
    Views
    908

    [ubuntu] Re: Complex command does not run from crontab

    It probably is a dash vs bash issue, but I don't like your solution...

    This might solve this particular problem, but it has the potential to create a lot of problems elsewhere in the system - if a...
  18. Re: Question for those who know NASM assembly...

    It's a matter of "alignment". In this case, your prof wants everything aligned to a 32 bit boundary (i.e. all data addresses will be an even multiple of 4), which is reasonable for almost all modern...
  19. Replies
    4
    Views
    692

    [SOLVED] Re: how do thumbnails get their names

    The filename is the md5 hash of the URI (Uniform Resource Identifier) for the file. Basically the file name with full path, in the form:
    file:///home/user/image.jpgYou can generate these from the...
  20. [SOLVED] Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    That does *not* look good. You still have plenty of reserve (it's using close to 2Gb for buffers and such), but usage shouldn't have climbed from around 3Gb to 5Gb over that period of time.
    ...
  21. Replies
    8
    Views
    443

    [SOLVED] Re: if statement reading a text file

    Cool - haven't seen that construct before. Thanks for the new trick to add to my collection. :)

    Lloyd B.
  22. Replies
    8
    Views
    443

    [SOLVED] Re: if statement reading a text file

    First off, let me state some assumptions (sorry, but you aren't completely clear on some things).

    1. The file "/home/ubuntu/file" contains XML data, containing pairs of "key" and "value"...
  23. [SOLVED] Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Based on those numbers, you were actually using 3Gb of memory for programs at the time that was run. Which is higher than I've ever seen on typical desktop machines, but not too outrageous for some...
  24. [ubuntu] Re: Error running executable. Syntax error: "(" unexpected

    You're probably right about it wanting a different shell.

    Could you post the contents of /opt/caplin/apps/caplin/Liberator/bin/rttpd so we can see what it's doing? It may be expecting csh or ksh,...
  25. Replies
    2
    Views
    802

    Re: Bash scripting menu help!

    You're getting that error message because there's no "do" to match to that "done".

    Are you trying to have that thing loop? If so, you want something like:

    while true; do
    echo "1. Do...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4