Updates from May, 2007 Toggle Comment Threads | Keyboard Shortcuts

  • tech0x20 3:19 pm on May 29, 2007 Permalink | Reply  

    Awk to split c functions into multiple files. 

    This, at present, is overly simplistic and makes many stupid assumptions:

    • That the return type is short.
    • That there are no short global variables declared.
    • That everything is well-formatted so that the return type is always first column, and that there is a space between both function name and return type (as in, only spaces–no comments) and function name and open parenthesis of the arg list.


    cat $1 | awk '
    BEGIN {
    functionNameFile="";
    }
    /^short/ {
    /* assumes return type of short */
    /* assumes space between return type, function name, and parm list */
    functionNameFile=$2.".c";
    print $0 > functionNameFile;
    }
    /^}/ {
    print $0 >> functionNameFile;
    functionNameFile="";
    next;
    }
    {
    if(functionNameFile != "") {
    print $0 >> functionNameFile;
    }
    }
    '
     
  • tech0x20 11:52 am on May 29, 2007 Permalink | Reply  

    Windows Vista problems resticting GNU GCC apps to 32MB 

    Disturbing to see this come about:
    Windows Vista problems resticting GNU GCC apps to 32MB

    Buried in the footnotes is a note about a response supposedly coming from a Microsoft representative saying, “now that people are asking for this, we are planning to fix…”

     
  • ThomasPowell 9:05 pm on May 14, 2007 Permalink | Reply  

    Anti-spyware change of heart. 

    Spy Sweeper is my new anti-spyware solution of choice. I started out using Ad-Aware, but I ran across spyware that I was trying to remove that Ad-Aware could not take care of.

    At that time, I stumbled upon both the Microsoft Anti-Spyware Tool and Sunbelt CounterSpy. Both tools did an exceptional job, and went with CounterSpy because it was advertised as the creator of the engine for both products.

    In two years of use, CounterSpy bogged down my 2.8Ghz P4 with Win2k and 1 GB RAM. I also had quite a few false positives in those two years. With a recent update, CounterSpy constantly disabled itself on my Win2k system.

    I decided to switch over to one of the top recommendations from a Consumer Reports article… Webroot Spy Sweeper… as far as I can tell so far, Spy Sweeper is using only 8MB of RAM while not conducting a scan.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
%d bloggers like this: