@# 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



Comments:

<0> poorboy: with spectacles ?
<1> AndroMish, you need a monitor first
<0> OT: no , with a printer, you don't need monitor
<0> but then again, you need paper
<2> *whew* I was able to guess the p***
<2> why don't this code compile? it says "left operand must be l-value" http://pastebin.us/932
<3> you can't ***ign to arrays
<2> oh
<2> do i have to use strcpy, then?
<4> yea
<4> or
<4> array[0] = '0';
<4> array[0] = '1';
<3> just don't use an array there
<2> I know I can just use a char but I am testing something with my php script + sql table
<4> char variable = '1';



<3> oh, and strcpy wouldn't work
<4> " is used for \0 terminated strings
<4> a simple char is used between ', or just using an ascii value,
<2> what's the best way to make my prog call a function every 60 seconds?
<5> while(1) { f(); sleep(60); }
<2> excellent
<6> whats the identical function of CreateThread() in *nix environment ?
<7> pthread_create()
<7> on solaris: thr_create()
<7> pthreads also work on solaris, but it has it's own thread implementation (thr_*())
<6> t\hanks
<8> hm.
<8> Go away
<3> damn, how do I mix python and asm?
<9> Use cat to merge the compilers.
<6> lo
<6> l
<6> that would probably be a bad idea
<3> I want a file that is valid in python and gnu as
<10> mauke: Via C.
<3> C and python is easy
<10> Oh, right.
<10> The poly.*
<3> latest version: http://mauke.ath.cx/stuff/poly.poly
<3> now with javascript and perl6
<7> is anyone familiar with anything like chkpnt()/restart() system calls that UNICOS has to let you restart the image of a running process's core?
<7> and the analogous /usr/bin/chkpnt and /usr/bin/restart utilities
<7> chkpnt is really cool.. $ chkpnt -p pid -f restartfile $ restart restartfile
<7> I'm surprised I've only seen this on Cray UNICOS.. It's really useful
<10> Exactly what does it do?
<10> Something like cryopid?
<10> There's http://www.checkpointing.org/too.
<10> + an extra space.
<11> anyone know why poll() stops recv() from getting a socket disconnection?
<7> it restores a process to be running from a special core file
<7> it's smart too.. it knows if any files that it had open have changed, etc.
<8> Gah, I hate configure.
<8> autoconf should die.
<12> configure != autoconf
<8> whatever
<8> configure ****s.
<8> I thought autoconf generated configure?
<12> depends on the configure ;-)
<8> It's like, we'll test for GL/gl.h, but we bother with -I
<12> 'cuz GL/gl.h can't be in /usr/include?
<12> or /usr/local/include, etc?
<8> Because it's a part of X11R6
<8> err, it's in /usr/X11R6/
<8> configure is aware of X11R6
<13> mmmm
<13> from schuabs at stanford
<13> i recommend it for all the valley-goers
<14> valley goers?
<15> Hey guys, is Compilers (the dragon book) still 'The' compiler design book?
<16> Is the Bible still the book for Christianity?
<15> I'll take that sarcastic rhetoric as a yes :)
<6> why would that guy run 4 clones of his name



<12> he's a kreep
<17> heh, xchat got me confused
<17> I wasn't paying attention, and didn't realize you could have multiple servers in one window, so it kept adding a new one rather than reconnecting
<18> I have an issue: I am trying to add some sort of restrictions to p***words in courierp***d (mail server p***word changing program).
<18> I hate to limit it via PHP
<18> id rather hit the source, but, im not a C guru, just have good programming conventions.
<18> good learnbility, just need some mano e mano
<19> if you'r elimiting via PHP then use a PCRE
<19> preg_match() in PHP
<20> strings are pointers to character arrays, correct?
<12> strings are pointers to a sequence of nul-terminated characters
<21> and it's read-only ; "pointers" wouldn't be quite accurate since the address isn't actually stored in any variable, it's a compilation-time symbol
<12> depends on whether in char *ptr = "hello"; you'd consider ptr a string. i do
<12> you're perhaps thinking literal string
<12> or string literal... whatever ;-)
<21> That's what I ***umed he meant
<20> hmmm, maybe... it's been years since i took C, trying to refresh
<1> well they are all pointers. some are stored in the bss, some in data section and sometimes they are hardcoded in the instruction sequence (text section).
<1> not to make this more confusing than it already is:)
<21> I would rather consider pointers to be variables actually holding an address, otherwise it's just a compilation time symbol
<20> heh, yeah i wish that helped ;) i recall something about constants being involved here?
<12> the "string" in char ptr[4] = "string" isn't stored anywhere ;-)
<21> Technically it is, but whatever :)
<12> no. the first four characters are stored, and it's not nul-terminated so it's not a string
<21> Right it isn't a string, but I meant it sure is stored somewhere somehow
<20> the last 2 characters aren't written to the memory outside what is allotted for ptr?
<12> 3 sir. there are 7 characters in "string"
<2> lol. I just spent 30 minutes of troubleshooting trying to figure out my sleep() function wouldn't work. I realized i didn't capitalize the 'S'
<2> :S
<12> eww, windows
<21> sleep() has no capital 'S'?
<2> on my machine it does
<2> Visual C++ 2005
<21> Ah... Okay, I wouldn't know a thing about windows
<12> lucky Maloeran
<2> heh
<20> ah, double quotes includes a null?
<12> nul, yes
<21> It includes a trailling '0'
<12> '\0'
<1> i can make double quotes not include a null. but i'm tricky.
<1> char foo[8] = "abcdefgh";
<12> already demonstrated
<1> oh. i was afk
<1> my cat is very clingy today. he usually doesn't interact with anyone. but now he's just rolling around on my lap. standing on my shoulders and smacking his head into my head(ouch). i don't know what makes cats behave so randomly.
<22> whats a good beginners tutorial?
<23> for?
<22> C
<24> for life, the universe and
<23> k&r2.
<24> samuri, kernighan & ritchie's "C programming language", 2nd edition, that is
<22> Sorry ment project
<22> I can do the usual I just learned off a decent web tutorial things...Id like to get better though
<25> hullo
<25> is a TV hanging 2 inches over either side of a tv stand a bad thing?
<26> MarkT, Dunno, is it wobbly?
<19> there's nothing gorilla glue can't fix
<19> or get some jb weld
<25> gambit: I don't know yet... I'm just comparing a particular TV to the tv stand we already happen to have.
<27> How would I go about comparing an unsigned char to a hexadecimal value? printf("%x",variable); prints the hex, but how would I do a comparison using hex?
<23> uh, with ==, of course.
<23> data in a variable has a radix of 2, but the compiler is prepared to take constants in many forms which it then converts to binary.
<27> oh wait
<27> I'd have to do 0xVALUE?
<27> for hex?
<27> or is there a way to differentiate that from a string?
<23> uh.
<27> I'm a bit new/rusty. =)
<23> i can't say it looks to me like "..." and 0x123 are even slightly similar.
<27> ... oh yeah, quotes around strings =)
<23> uh-huh, rusty.
<27> shup.
<23> well, the only thing i can see that google video shows is that they can't detect duplicates for ****.


Name:

Comments:

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






Return to #c
or
Go to some related logs:

niggeras
configure LVM in Redhat as4
#tcl
SOAP REQUEST + Subscript out of range
#politics
#beginner
Thermal take w0014 fuse
aqweya
#computers
#politics



Home  |  disclaimer  |  contact  |  submit quotes