Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.23 seconds.

  1. Re: Setting SSH key-based certificate logon without knowing password

    Actually just a matter of getting that id allowed to be logged on via SSH.
  2. Setting SSH key-based certificate logon without knowing password

    For automation purposes, I need to set a key-based login on an id for which I don't know the password.

    - I have the password to a personal id on the same system
    - I can sudo to assume that target...
  3. Replies
    6
    Views
    521

    Re: Doubt with declarations of arrays in C

    None.... int array[a] imples that the value of "a" is known at compile time which isn't the case. You have to allocate the array dynamically (see malloc()/calloc() functions).
  4. Re: Should I develop in C for solaris at Oracle?

    C is mostly C++ without objects.
  5. Simultaneous usage of local and pserver CVS

    So, I'll be scripting some somewhat large CVS checkouts for semi-automated builds. These builds will run on the very same machine that holds the CVS repository, so this machine also runs a CVS...
  6. Replies
    1
    Views
    412

    Re: String Assigment Issue

    I don't really understand what your problem is. Can you pare down your code to the smallest necessary to reproduce your problem?
  7. Re: Broadcasting program output to connected sessions via wall

    If "node" doesn't terminate then there may be some ouput buffering somewhere (4K buffers usually) which prevents the data to be forwarded in the pipes (until a buffer fills up or the process...
  8. Re: Bash text permission auto checker and modder.

    You shouldn't because in practical use sudo-ing is fairly rare, especially to edit files. And if the files are read-only it is usually for some good reason. If you need sudo that often you aren't...
  9. Re: How can I stop a function which works in C?

    The attributes name, surname, and number of your struct aren't pointers since the arrays are allocated in the struct. Your test isn't valid to indicate that the user doesn't exist.

    Plenty of...
  10. Replies
    8
    Views
    617

    [SOLVED] Re: Trying to learn bash programming

    From your original post, I wonder if you are looking at the right language. Bash is not meant for general programming but for scripting. You aren't going to deal about individual employees with it....
  11. Replies
    4
    Views
    592

    Re: Setup random baud rate in Ubuntu 14.04

    Tried this? http://stackoverflow.com/questions/12646324/how-to-set-a-custom-baud-rate-on-linux
  12. Replies
    4
    Views
    392

    Re: Rainman-like question on 'date' output

    I don't see where what I wrote can make you think that I would expect different formats to yield different time values. There is a precise second in time, counted as seconds since the epoch, which...
  13. Replies
    4
    Views
    392

    Re: Rainman-like question on 'date' output

    '-d' gives a date to display (otherwise you get the current time).

    My point is: "date -d 00:00:00 +%s" returns the number of seconds between the Epoch and today at 00:00:00 (1436392800). If I...
  14. Replies
    4
    Views
    392

    Rainman-like question on 'date' output

    If I do:


    $date -d 00:00:00 +%s
    1436392800


    (ie show me the seconds since the Epoch of today at midnight) the answer is currently an integer multiple of 3600, in other words, an integer...
  15. Re: Simplest way to connect to MySQL from Android?

    Not going through a sever would be a very bad design. This would also direct access to the DB by other apps, and also require your DB server to be directly facing the Internet...
  16. Replies
    3
    Views
    398

    [all variants] Re: Size in blocks v.s. size in bytes in Ext4

    I asked here because it wasn't really useful (unless I spend a whole afternoon unravelling it).
  17. Replies
    3
    Views
    398

    [all variants] Size in blocks v.s. size in bytes in Ext4

    On an ext4 partition, stat reports:



    stat -c '%b %B %s %n' *
    204800 512 104851585 file1
    178584 512 91431059 file2

    The block group is 4K so eight blocks.
  18. Replies
    3
    Views
    440

    [SOLVED] Re: Help with Classes in Python

    http://www.python-forum.org/viewtopic.php?f=6&t=16125
  19. Replies
    5
    Views
    563

    Re: Image type in AppIndicator

    I would expect it to work with both, but using a relative path requires confidence that no other part of the process is going to change the working directory.
  20. Replies
    5
    Views
    563

    Re: Image type in AppIndicator

    First, "~a/really/long/absolute/path/to/icon.png" is not an absolute path, it's a relative path that starts with a directory named "~a" in your current directory. "~" substitution is done by the...
  21. [SOLVED] Re: Bash scripting - Where should I put shells file other than main in the filesystem

    Some directory of yours in /usr/lib seems to be the way to do it.
  22. Replies
    2
    Views
    450

    ) Re: is C really platform dependent?

    "Platform" is ill-defined. There are several things (aka "abstraction layers") to consider:



    CPU architecture/instruction set (for instance, x86 v.s. PowerPC or even x86 v.s. AMD64 on current...
  23. Thread: Anchor text?

    by ofnuts
    Replies
    9
    Views
    623

    Re: Anchor text?

    The target page must have an anchor tag with a name:


    <a name="some_name">

    And you provide a URL with that name in the page that refers to it:


    <a...
  24. Replies
    3
    Views
    516

    Re: how to create objects in Java?

    Make that


    class Sniper
    {
    public Sniper() // Don't forget the parenthese, even if you have no parameters
    {
    // TODO: Add initialization code here
    }
    }
  25. Replies
    3
    Views
    516

    Re: how to create objects in Java?

    If you are not in the Sniper class, you must import Sniper (import some.package.path.Sniper). Furthermore to create a Sniper, you are calling one of the constructors so you need parentheses (new...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4