@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11



Comments:

<0> to check for the old version which was adding them as tags of type _OP (OPAQUE or USER-DEFINED type)..
<1> this one's prime : 1111111111111111111
<1> 19 1s
<0> because my new version supports a hash type now.. so I don't need to store them as opaque
<2> Jaggy_: you have specific variable name ?
<0> places storing it as opaque still should be updated.. and they also are likely doing bad flag testing.. using my old type-system
<0> Aeon, no..
<2> jeffloc: this is mine!
<2> <+Aeon`> wow i randomly hit the prime! <+Aeon`> 1111111111111111111
<0> hash_table lala=hash_init(); /* add stuff to the lala hash */ tag_add(tagset, "SOMETAG", (void *)lala, V_HASH);
<3> aeon's number
<0> old ones would be V_OP
<2> Jaggy_: maybe you want to search for /(void *)[a-z_0-9]*, V_OP/ ?
<0> so now I grep -B1 V_OP and look through by hand.. but it'd be nice to be able to search only for actual code lines, etc.
<0> sometimes I have a code line starting 30 lines up, ya know?
<0> just figured it'd be a convenient thing



<2> like, a function with 45 arguments ?
<0> more
<0> but yeah
<2> oh momma
<0> add_man_tags(tagset,
<2> refactor it!
<0> "USERNAME", user, V_STR,
<0> "AGE", (void *)age, V_INT,
<2> but that's not quite sane code
<0> "ETC", some_str, V_VSDUP,
<0> NULL);
<0> V_VSDUP means it's a V_STR, but to strdup() it and add it, and set the V_VFREE flag to free it when the hash table is deleted.
<2> : you use vim ?
<0> yeah
<2> learn vim's cross-line pattern matching
<2> the \_ stuff etc
<0> ooh.. they have that now huh?
<2> and you can include \n into matching easily
<2> \(.\|\n\)* or \_s
<2> nevermind that building such regexes will take you longer than converting code by hand
<0> This? \_x Where "x" is any of the characters above: The character cl*** with end-of-line added
<2> aha
<2> \_s is blank or end of line
<2> you probably want \(\n\}[^;]\)
<2> or maybe \_[^;]
<2> oops that was \(\n\|[^;]\)
<0> this is good stuff.. wish there were a cgrep though :)
<0> okay.. your last one makes more sense
<0> \_.* \_.\* everything up to the end of the buffer
<0> yeah, this works:
<0> /function(\_[^;]*;
<0> that's awesome.. and to think I was nearly about to say to myself, "bleh.. I don't want to learn any more vim stuff right now.. I was just commenting on the seemingly large amount of C code, but not many command-line tools which I'd have found convenient over the years"
<0> but then I'd have to consider being intelligent enough to learn other programs like awk, etc.
<0> oh.. so now how do I reference a variable's type? :)
<0> remember, I want to look for a call to a function with a particular parameter being a variable of a specific type :)
<4> sizeof it?
<0> it's okay.. while I hope and figure some tool like this has been written and used, and might even be available.. I'll just grep -B1 for today's situation.
<0> glad to learn about \_
<5> ARGH. FreeBSD + add_pkg = Broken pipe is getting REALLY annoying!
<0> wow.. seems like it took forever to come back here.
<6> hi
<6> the answer is 42. what's the question?
<4> haha
<7> the question is EARTH!
<6> the quiestion is: "what's the ASCII code for *?
<8> 0x2A.
<6> 0x29a, the sign of beast
<5> Supposedly there is some evidence that points to a mistranslation on that...and that the "number of the beast" may actually be 616.
<5> Rather than 666
<9> and in hex?
<9> here's an idea
<8> Teckla: It's about emperor Nero anyway, so the exact number doesn't really matter.
<9> what if 666 really is a BASE
<10> 0x268
<11> What does Buddah say about the number of the beast?
<9> and some huge number in base 666 comes out as something familiar
<9> far out!
<11> And what's the number for? phone? address? weight? height?
<5> ARGH! Broken pipe again!!!



<8> Call MacGyver.
<5> Why do you taunt me so oh broken pipe?
<12> because you aren't filling it with the right materials? :)
<13> m xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<14> :D
<0> I think the devil is your stupidities and desires. The one who will guide with love and knowledge is one who will hide the devilish portion, if you are in submission to that one and can recognize and follow the guidance. The portion will be clearly hidden because the complete 6666 is not considered bad, and therefore one 6 would still be evident and it is, in truth, the representation of the reality of enlightenment and a sign for believ
<11> It's been a while since I've done that.
<0> and scientists too.. since it is what actually exists.
<5> Hokey. Posted to the freebsd usenet group.
<5> Hopefully someone there will know about my "Broken pipe" problem.
<1> the devil is your best friend
<15> hey
<2> Jaggy: you there ?
<0> yeah.. off and on
<2> Jaggy_: are you employee, or is it your business you're doing ?
<0> the later
<2> one-man business ?
<0> no.. my wife's idea.
<2> you and your wife ?
<0> are you being nosy, caring, or do you want to do programming on messageboard/communities?
<2> nosy & caring
<0> heh
<2> no, don't want to do programming on mbc
<2> it's more than one people business ?
<0> who are you??
<2> i m from IRS
<1> International Rectum Stabbers
<2> Looks like is doing some illegal business
<2> a/is/Jaggy is/
<0> Earlier I found you more respectable :)
<0> no, we're not doing any illegal business.
<16> You're not?
<16> Slackers.
<0> Aeon, is that what it looks like?
<17> Yay! I finally got a person!!!
<17> (sort of)
<17> (email)
<2> and ?
<11> MarkT: so now all you have to do is jump through 7 flaming hoops?
<2> Jaggy_: why you don't share back with the communicty what community shares with you ?
<0> for (rc=0; rc<sizeof(fl); rc++) { printf(" %u", *(((char *)&fl)+rc)); }
<0> Aeon, ?
<0> I'm not too clear on what the community shares with me
<0> I don't know how to print a char
<0> a char's numerical value: for (rc=0; rc<sizeof(fl); rc++) { printf(" %hu", (char) (*(((char *)&fl)+rc))); }
<18> %c
<0> I thought %d but even with the (char) cast it's displaying a large number
<0> Flocking: 1 0 0 0 4294967176 1 0 0 1 0 0 0 0 0 0 0
<0> then with %hu it prints: 65416 as the 4th number
<14> What the **** is (char)(*(((char*)&fl)+rc))) supposed to mean
<0> struct flock fl
<14> And rc?
<0> I wanted to print out each byte
<19> printf ((const unsigned char *)&fl)[rc]
<18> a char is 1 byte
<0> okay, cool.. so what was my thing doing that the (char) wasn't catching?
<19> "catching"?
<18> numeric value of a char: printf("%d\n",'c');
<18> printing a char: printf("%c\n", 'c');
<0> that's what I was doing first..
<0> oh n/m.. screw it.. next step is to figure out why perl's not flocking (fcntl) my files properly
<0> my C code is doing it okay.. but in perl I have to do some messed up pack() thing...
<0> 1 0 0 0 136 1 0 0 1 0 0 0 0 0 0 0 those are the bytes, for message board 98, of the struct flock fl;
<18> ok
<0> they look like they're setting the proper structs.. but the flocks are conflicting
<0> This is from the perl's unpack("C*") 1 0 0 0 136 1 0 0 1 0 0 0 0 0 0 0
<0> close enough to the C output :)
<0> (ie. exact)
<0> I'm so tired.. :(
<0> basically, this locks some resource on this system.. I use individual bytes in a file for the resource locking
<0> some site says it's fast..
<0> seems kind of okay so far.
<0> and it works in C.. locking the resources shared or exclusive, and different resources work fine without conflicting..
<0> but in perl, if I lock one resource, then lock another -- the second shouldn't block on the first, being that they are different bytes in the file.. but it is. It's as if the same byte is being locked


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c
or
Go to some related logs:

#stocks
#windows
#politics
#beginner
edishoun
#tcl
#microsoft
62 percent of Oscar winners can be genealogically traced to a common great grand
#mirc
#nhl



Home  |  disclaimer  |  contact  |  submit quotes