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



Comments:

<0> hello word app?
<0> world*
<1> I have a visual basic question... how do you only allow postive numbers in a txtbox
<2> MJ-12: would you ask a mac user how to fix a pc? (answer: no) so what are you doing here? #visualbasic or #vb or some place
<3> MJ-12: We'll give you a break and ***ume you accidentally joined the wrong channel.
<4> maybe he ***umed C coders are smarter than their VB counterparts
<4> ?
<4> :D
<5> He could have textchange event handler or whatever
<5> Just double click on the text box :-P
<6> gotta love it
<7> no, but i do love two 3.1TB partitions on my bsd server
<7> got around the slicing limit finally
<6> damn, that's some size
<6> using vinum?
<7> no, instead of slicing them i removed all slices from both raid-5 setups. both are 3.1



<7> i just ran newfs on the /dev/da0 and /dev/da1
<7> without slices
<7> the only downfall is they aren't bootable and they aren't compatible with any other os cause there is no partition
<6> hope it's stable ;)
<7> ya, that's what i'm going to find out
<7> it's listed in the handbook, so i'm ***uming it is ;P
<7> just an alternative to getting around the slice limits
<8> is there an efficient way to determine if a variable is divisible by 10 without using %?
<2> no
<9> % is fairly efficient, imo
<9> Given your options.
<8> what about tricks like: x * 6554 >> 16
<10> floating point numbers?
<8> but that odesnt give the remainder :/
<8> no, ints
<10> is this homework? Since the mod operator is fairly easy to mimic arithemtically. Just not to make as efficient
<11> xi_, don't you read the papers, that one's patented
<8> no, im trying to optimize some code
<11> seriously :) don't use that for division
<11> http://digg.com/tech_news/Dividing_by_10_with_multiply_and_shift_(n*6554_16)_Sorry,_it_s_patented!
<11> oh, it's actually a patent *application*
<12> patented versus patent-applied-for
<9> Heh
<9> I just do %
<11> maybe they'll patent it, adding to the "Method for Swinging on a Swing"
<10> can't patent software in europe anyway
<11> what about software written in europe, but exported to the US?
<9> if(locale == US) { return x % 10; } else { return x * 6554 >> 16; }
<11> #ifdef IN_AMERICA
<12> if/else expressions do different things
<10> ack: I think you can safely ***ume both Symmetry- and aedinius know that...
<12> i'll disagree
<8> heh
<9> I was making a smart*** remark. I don't care if it works .
<9> or doesn'tw ork.
<12> ;-)
<9> like oh MY God
<9> </Travolta>
<8> is a 32 bit and operation executed faster than a comparison? like x & 1 vs x == y
<12> don't they have someone else more familiar with profiling and optimization? ;-)
<9> So I plowed someone down in cl*** toeday
<9> today*
<9> I dropped my cup on the floor, so I got and walked around the table to pick it up
<9> The annoying girl in cl*** right behind me (who my friend and I think might like me ...) and I turned around and ****ing PLOWED into her
<9> Didn't even see her
<12> plow has more than one sense ...
<9> So does anything.
<9> I nearly knocked her down
<10> there's only one sense when it involves a girl
<12> and it seems it's not the one he was using
<11> xi_, same speed
<10> ack: now you're just being rational
<12> i have no sense of humor
<9> squeeze: Oh hell no, I can't stand her
<9> She won't shut up
<9> Even the professor is like "OMG NUB STFU"
<9> Or he would be if it wouldn't make her cry.
<12> like totally
<10> perhaps if you plowed her properly she would stfu on command



<12> fer shure
<9> squeeze: I couldn't disgrace my **** like that.
<10> you afraid it couldn't look at itself in the mirror thereafter?
<9> It might try suicide.
<8> why is this channel +k
<9> xi, bot floods.
<8> oic
<11> what does +k do?
<9> key
<11> ah duh
<12> i think you can safely ***ume both xi_ and aedinius know that ...
<10> lol
<11> the weirdest thing happened
<11> the input box in hydraIrc became centered
<11> and only for #C
<11> hydra is a piece of ****
<12> #C is the centre of your universe
<11> yes, the pinnacle of my existence
<0> what's the centre of yours, ack?
<12> soft and squishy and warm
<9> Alright. Let's do this.
<0> rotten fermented tomatos?
<13> morning samy
<5> hey SgtUnix
<5> Sorry about earlier, I got carried away with the script.
<5> SgtUnix, you down now?
<14> I installed a 2nd HD, installed ubuntu on it. grub was a sweetheart and everything was groovy. until I tried booting back into windows.
<14> then windows hung for-ever- during the boot process. I thought it was just completely locked up. after much fiddling and cursing and gnashing of teeth, I realized it was because windows was trying to find a fat32/ntfs file system on the new drive.
<14> it did eventually boot up, but took forever to do so. and even then, every time I tried to bring up a file-explorer window, it would sit there and stare at me like I was some wild-haired lunatic expecting free handouts.
<14> once I told windows to just ignore that drive (disabled it in the hardware wizard thing), windows became much more well behaved
<14> so there. I just had to share my pain.
<15> That reminds me of how windows used to stall, always trying to access the floppy drive... on win95 ( I'm a bit outdated on windows )
<9> I liked how win95 "solved" the problems of win3.1 and floppies
<9> The driver was pre-emptive they said, didn't have the problems of the disk access like that.
<9> Of course, it still ****ed horribly.
<14> heh
<15> I actually unplug my drivers the rare times I boot windows, that's how badly I don't trust that OS
<9> Hehe.
<15> my drives
<14> oh, I almost forgot... when windows did finally finish inspecting the new HD, it wanted to run a file consistency check on it.
<14> happily, it asked for confirmation from me before attempting to do so
<9> "Your files are inconsistent. They will be deleted."
<15> You should have let it "repair" your new ntfs file system!
<14> Maloeran: woe would be me! ;)
<16> i have a struct containing a 'char *' into which i need to copy a string of an unknown length.. is it safe to malloc(sizeof(theStructName)) or do i need to know the length of the string i will set?
<16> even with knowing the length (and allocating a dynamic number of bytes), it seems to segfault when i malloc over 32 bytes
<16> memcpy crashes it
<16> memcpy(newNode->data, str, strlen(str) + 1);
<15> If your struct only has a pointer, then your malloc is allocating sizeof(char *) bytes
<15> And the pointer isn't pointing anywhere either
<16> it also has a pointer
<15> In fact, I'm not sure this makes sense at all
<15> You can't allocate a chunk of memory of unknown size if this is what you are asking
<9> So anyone here care to explain: http://igotallthe.info/~drew/scaleup.jpg
<16> i guess i don't clearly understand the 'char *'
<16> oh
<16> 'char *' is 4 bytes because it's a pointer, right?
<15> Might be 4 bytes, depends of the architecture
<16> but i'll need to allocate as many bytes as i need to store something and have the pointer point to it
<16> seems to crash when i allocate >32 bytes
<16> Allocating 8 bytes of memory.
<16> Node created at address 0x21a08 with data moo
<16> Allocating 36 bytes of memory.
<16> Segmentation Fault
<15> calc paste
<17> Please paste your code (or a complete example that demonstrates your problem) here: http://rafb.net/paste/
<16> Maloeran: http://rafb.net/paste/results/VFP6sy63.html
<15> val is not pointing anywhere valid, and you write at that address
<16> ah
<16> hm
<16> wonder why it worked for less than 32 byte strings
<16> it works :)


Name:

Comments:

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






Return to #c
or
Go to some related logs:

#netbsd
#nhl
#stocks
#politics
#beginner
#stocks
Package requirements (dbus-glib-1 >= 0.60) were not met
#cisco
#politics
#firebird



Home  |  disclaimer  |  contact  |  submit quotes