Search:

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

Search: Search took 0.08 seconds.

  1. Re: signal handler and struct sigaction { ... sa_flags }

    If your needs are simple, use "signal()" instead of "sigaction()".
    Here is a code fragment that shows how to catch SIGINT:


    #include <signal.h>

    void my_handler (int signum)
    {
    /* do stuff...
  2. Thread: awk and regex

    by ebichete
    Replies
    2
    Views
    322

    Re: awk and regex

    awk -F, 'NF >= 9 {match($9,/[a-zA-Z]+@[a-zA-Z]+\.co+\.uk/); if (RSTART>=0) print $1","$2","$3","$4","$5","$6","$7","$8","substr($9,RSTART,RLENGTH)}' < myfile.csv


    You appear to have 9, not 10,...
  3. Replies
    91
    Views
    6,215

    Re: Without flaming, why Mono favored over Java?

    GTK is written in C which is great for low-level stuff and providing libraries with good multi-language bindings. It is however tedious to write the GLib/GObject boilerplate in C. A few tools were...
  4. Replies
    2
    Views
    563

    Re: check for memory leaks C

    Yes, it is. The relevant line is:

    ==16031== All heap blocks were freed -- no leaks are possible.
  5. Replies
    5
    Views
    495

    [ubuntu] Re: HDD Allocation Order 8.04

    Have you tried using disk labels ? Then you can replace /dev/sd? with LABEL=HOME_1 and LABEL=HOME_2.


    mdadm --create /dev/md0 --level=0 --raid-devices=2 LABEL=HOME_1 LABEL=HOME_2

    I've never...
  6. Replies
    6
    Views
    2,650

    [ubuntu] Re: Where's my built-in webcam?

    Have you tried installing Cheese? It's a simple Gnome webcam application.
  7. Replies
    1
    Views
    319

    [ubuntu] Re: webcam recognized image upgrade 8.10

    What model is your webcam ? (manufacturer name and lspci output)

    Did it work with the Live CD ? Boot from the Live CD and while under the Live CD, install Cheese (simple Gnome webcam application)....
  8. Replies
    3
    Views
    647

    Re: Partition Table Information

    There is a library you can use for this kind of information. It is called libparted.

    Install libparted and libparted-dev (development files). It should give you all the information you want and...
  9. Replies
    77
    Views
    5,964

    Re: [IDEA] Gnome Save Dialog Adaptation

    Don't blame the dialog. That is an application bug. The application is supposed to remember that info (it has a better idea of the context the user is operating in than GTK does) and pass it on to...
Results 1 to 9 of 10