@# 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 13 14 15 16 17 18 19



Comments:

<0> erm
<0> maybe my wording was wrong. :/
<1> hdparm: are you the hdparm from long ago?
<2> yes, ancker
<1> wow, been a while
<2> more than 2 years
<0> i hope the mail has come already
<2> Fiercestcalm: your wording was fine, dont go chicken now
<0> I got balls of steel, and what, I aint chicken, I ***ure you.
<3> You have no balls.
<0> They're figurative balls ;)
<3> brb, gotta make a run across campus.
<0> I'd HATE to run across my campus.
<2> ancker: i see you are still at uiuc, not graduated yet?
<2> i've never seen anything so counter-intuitive as office 2007
<2> the ribbon thingie is a mess



<0> hehe
<4> hey furrywolf
<3> Fiercestcalm: It's not too bad here at the HS. The college campus is much worse.
<0> ohhh
<0> yes, school i'm at is prety spread out too.
<5> hdparm ! Welcome back!
<0> simmy, :D
<5> hiya, Fiercestcalm
<2> simmy: hi, i was told that the days of dictatorship are over
<0> ooo drama?
<0> :D
<6> AtSquiggs: yes?
<7> :o
<5> hdparm : lacroix is now the channel founder.
<2> simmy: she invited me back
<8> hmmm a microsoft executable in an email attachment should automatically flag the message for a trip to /dev/null
<8> apparently my spam******in is only scoring it 0.1 .. better up that
<8> shouldnt be a reason anyone sends an .exe over email right? heh
<3> I block them all.
<8> i upped the score to 7.00 (goes to /dev/null)
<3> So we're getting a VPN put in for the cops so they can hang out here and still work. :/
<7> there is another way to get over spam...when ever someone emails you who isnt in your addressbook the mailserver sends them a confirmation link if they visit it then the email will be sent to you otherwise it gets deleted :/
<6> cisco: I have a simple policy for those... anyone who runs one doesn't want my email.
<7> why cant we all just get along? :p
<4> furrywolf - sorry I'm back
<4> private message?
<6> AtSquiggs: you need to go read a C book. :)
<4> furrywolf - you remember the question right? I need to output information from that file. I can determine the offset, so do I just open the file and read each byte until I get to that offset, then go 64 from there and write that information into a struct?
<6> as a hint... fopen(), fseek(), fread(), struct whatever foo = *((foo*) buffer pointer)...
<4> where foo is the FILE?
<6> where foo is the data structure provided in the homework ***ignment.
<4> ok, i'll just go buy a book, any recommendations?
<6> dunno. :)
<4> ok, thanks
<9> Start with the K&R.
<6> the first part of the ***ignment (the one due in 2 days or whenever it is) shouldn't be that complicated...
<9> May I see the ***ignment?
<4> yeah I don't think so either. Just need to learn how to use fread and stuff
<4> http://www.cs.drexel.edu/~vp/CS370/***ign2/index.html
<6> he has a filesystem image in some (possibly real) format, that he needs to list the files in...
<10> things like fread are quite well explained in the manuals
<4> opps
<6> AtSquiggs: if you want to be even lazier, you can try mmaping it...
<9> mmap?
<9> Damn, furrywolf.. you beat me to it.
<4> lol. I just google'd it
<9> I'm very lazy.
<6> as long as you're sure your pointer size is greater than your image size, mmap can be useful. :)
<8> well, i'm happy.. IT gave me sudo access to our first and only (so far) linux server... i am gawd
<9> I may have to code this for fun. :)
<5> I love it... directions for a server migration that tell you to sit around and collect dust for 15 minutes.. then check to see if the right stuff happened, yet.
<6> (if your image is larger than the pointer size, then you have to mmap it in parts)
<4> LostFrog, just don't show me :) I'll need to do this if I'm going to do the other parts
<3> G-WiZ-: How limited is your sudo?
<6> since you can be reasonably sure your image size will not be larger than your pointer size, I'd probably just mmap the whole file into memory...
<6> G-WiZ-: yes, what commands can you run?
<4> so what does mmap actually do?
<9> maps a file to memory.
<9> So you can access the file as if you had actually read it into a buffer.



<6> mmap makes a file on disk look like a big string/array in memory, so you can access it randomly just like any other array...
<6> i.e. if you mmaped your image to foo, foo[2000] would be the 2001st byte of the file.
<4> so I could access it like arr[2688] and then go up to arr[2752]
<6> and you could do struct inode bar = *((struct inode *)(foo + 2000)) to get the inode starting there...
<6> you wouldn't have to do any file i/o beyond opening and closing the file.
<11> hi to all
<4> very cool
<9> I'm lazy.. I hate seeking and keeping track of file position.
<6> by the way, I just gave you, dunno, 50% or so of the ***ignment there, since the macros for the offset and provided in the .h file... :P
<4> furrywolf - where do they define the inode struct? or whatever its called if its not inode
<11> plz solve my problem in linux server
<6> morefire: no.
<11> any one help me
<6> AtSquiggs: dunno. this is YOUR homework. :P
<4> yeah the offset was easy
<5> morefire : It's impossible to help you if you don't ask specific questions.
<4> furrywolf - really thanks alot. I need to just get in there and figure it out so I can learn the basic
<11> my problem is ( neighbour table overflow ) how to slove
<6> hrmm, he provides you with the superblock, but I don't see an inode struct...
<6> although it looks like you don't need it for this ***ignment.
<6> you need to display the values, but it doesn't say you need to display them in human-readable form. :)
<4> when he displays di_mode = 0x81b6, that is just the raw file output right? so its 6 bytes?
<6> 2 bytes
<6> 0x81 and 0xb6
<11> plz solve my problem
<11> plzzzzzzzz
<4> oh, ok. so di_a[00] is 3, right? 00, 00, 24?
<6> each entry is 4 bytes
<6> look at the hex dump below it
<6> don't you have a TA you can pester? :)
<4> lol, yes. I don't want to abuse your knowledge so just let me know when I've asked to many questions
<6> a lot of these questions would be easier answered by the ta, as he/she would already know the ***ignment, rather than myself, who has to look at it and figure out everything you ask. :P
<4> what is the 000a80?
<4> sorry
<6> where?
<6> oh, at the start of the hex dump... that's the offset into the file.
<6> morefire: do not message people.
<11> koi pakistani hay is channel par
<11> helloooooooooooooo
<11> koi indian hay is chanel par
<4> does 000a80 = 2688?
<6> morefire: this channel is for english only.
<2> try #linux.pk
<6> AtSquiggs: what do I look like, a calculator?
<4> yeah a pretty pink one
<4> :)
<3> hmm
<6> ibase=16
<6> A80
<6> 2688
<6> yes.
<6> you're starting to reach your question quota... anything more complicated and I'd have to figure the ***ignment out for you. :P
<4> ok, I'll leave you alone now
<4> thank you so much though. it really has helped
<6> paypal me $100, and I'll write it myself to tell you how. :P
<12> what are you trying to do?
<4> i was thinking 50 for you to answer any questions I have and to help me understand what needs to happen
<6> lacroix: he has a homework ***ignment, where he needs to display the contents of inodes from some old hp filesystem...
<13> i want to start doing c++ in linux, what is the comman line entry to compile and run a file say "test.cpp"?
<13> command**
<4> gcc -o test test.cpp && ./test
<9> g++ -o <filename> test.cpp
<6> his first ***ignment is pretty simple... given an inode number, display the block and offset of that inode within the supplied disk image, and debug-display (hex is fine) some of the header contents.
<13> thanks, i used to have to use ssh when i want to wpi, but since trnasferring, i forgot
<6> AtSquiggs: gcc, with no other options, doesn't like c++. g++ does. :)
<14> Syntax error: Bad Substitution, nice. Really descriptive there...
<13> now how do errors pop up when its compiled?
<6> lacroix: the teacher supplied macros to give the position in the file, so the first ***ignment is basic i/o really. :)
<4> wow, I think I turned this into a programming channel
<6> seavy: they will be displayed when you compile it. not sure what you're asking...
<13> furrywolf: that was exactly what i was asking
<13> i wanted to double check


Name:

Comments:

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






Return to #linux
or
Go to some related logs:

#netcafe
#chat-world
#php
#india
#chat-world
#allnitecafe
#chat-world
#india
#allnitecafe
#worldchat



Home  |  disclaimer  |  contact  |  submit quotes