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



Comments:

<0> libevent: a BSD licensed library for dealing with event notification on windows and *nix. Uses select, poll, kqueue, epoll, devpoll, etc. http://www.monkey.org/~provos/libevent/
<1> mhm
<2> there are alternatives (listed there) that are faster than select. select is just very portable.
<1> mhm
<2> and honestly if you can't figure out select then you'll have an even harder time with anything else
<1> OrngeTide I understand select, just forgot about +1, or if you mean semantics i. ex. about portablility - then I'm tottaly green
<2> yea. the whole +1 thing in select kinda throws people off. :)
<1> OrngeTide so you advice to use value of 1024?
<1> hmm
<1> well then
<1> but
<2> fd_set is actually a bitmask. and the int n is the number of bits to check, starting from 0. so if you have just fd 0 in there, you would give it n to check 1 bit (the 0 bit).
<2> I_v0, my advice is to use 1024 if you're having trouble/bugs and you don't want to have problems with it.
<2> the right way would be to track the biggest fd.
<1> I question, becouse actually I maybe will open more than 100 connections, maybe someday someone using it will open over 1024 connections
<2> i usually don't bother trying to make the biggest fd number smaller (like when you close if(biggest_fd==fd) biggest_fd--; )



<2> I_v0, yea. you could use sysconf to fetch the most fds you can have open in a process.
<1> many new thing to explore at one moment ;)
<1> things*
<2> static int max_fds; int main() { max_fds=sysconf(_SC_OPEN_MAX); ... }
<2> but if you're going to go to that effort might as well actually track the biggest open fd :)
<1> then in max_fds I'll have then maximum number of fd's that I can open?
<1> ok then
<2> yea. it's a combination of what your kernel can have open and what your process limits are set to.
<1> OrngeTide and when you are here, I would use some other advice, but now as a man page or some tutorial even better - How to open a connection through non-default route ?
<2> beyond about 10,000 connections select() becomes totally useless.
<1> let's say I have many routes to internet
<2> I_v0, you connect to an IP that has a route entry for it.
<1> and want to use one of them insted of default
<2> like when you connect to 127.0.0.1 that actually is routed because there is an interface on that network.
<2> after it tries every network if the IP doesn't match any of them, then it uses the default route
<2> you have to route them by IP if you have many routes to the internet
<2> and modify your routing tables accordingly. it's transparent to the applications
<1> so I'll need to use raw sockets?
<2> no
<1> hm
<1> so what shoud I do?
<3> I_v0:: i'm sending a HTTP GET request, however, i want to do this anonymously..
<3> Any idea how i'd connect to or use a proxy ?
<1> I have 10 routes to google.com
<1> one is the default (there must be some default)
<2> I_v0, you want to sent data from a certain service/port to arbtrary addresses through a particular interface?
<2> I_v0, you can use a firewall rule for that.
<1> OrngeTide I see
<2> time to crack open the book to your OSes firewall configuration. it's generally pretty complicated.
<3> OrageTide:: do you have any ideas?
<1> OrngeTide I actually know now how to do this with iptables
<2> but you can like send everything with a particular tcp/udp sort port to some alternate interface. (you can't really have two default routes)
<1> just before I though about the way from program inside
<1> OrngeTide I'll have these hosts on one interface most propably
<1> this routes
<2> yea. you wouldn't want to attempt doing it inside the program. although if it's listening to a port you might want to consider opening the listening socket on a particular address (the ip of the interface you are interested in) instead of the 0.0.0.0 address which means listen on all interfaces.
<2> Dr4g, about what?
<2> Dr4g, what's wrong with curl itself?
<2> iirc curl can go through a socks proxy
<3> OrageTide:: curl was giving me problems..
<3> Isnt there anything else ?
<2> i don't know of any. i'm sure there are a hundred different http client libraries out there. but i haven't used any of them
<2> it's not like it's hard to write your own simple one.
<3> I know, its just i want the anonymity
<3> and Tor is excellent for that
<2> i never heard of Tor.
<4> it's a good idea but unfortunately the main users of it that I have noticed are trolls and wikipedia vandals
<4> and GNAA and bantown
<5> i don't have a huge problem with wikipedia vandals, actually.
<5> i feel that hey contribute more to wikipedia than the countless people who wish they were bureaucrats but are too pathetic to be actual bureaucrats who spend all day on wikipedia, frothing at the mouth, shouting obscure acronyms like "WP:NPOV!!!!!!!!!!!!!11!!!11!!!" at each other.
<6> how can you be *too* pathetic to be a bureaucrat?
<5> ack: have you ever been to university?
<6> yeah
<5> ack: look at the student government.
<5> that's exactly the kind of people who edit wikipedia.
<4> I edit it, but only when I have something useful to say
<4> like a correction to an article or an addition
<4> none of that stupid discussion bull****
<5> so you've encountered the pricks i'm talking about.
<4> nope
<5> strange.



<4> I don't stick around for the aftermath of my edits
<4> I make my change, make sure I'm not pushing some pet theory of mine, and then leave
<4> if they don't like it, well, they can kill it
<4> no skin off my back
<7> limbo programming
<7> that's reduntant
<2> hi dmi
<7> hey ot :)
<2> what's new?
<8> http://www.sonjaswette.com/index_en.html
<2> clerks II, rawr!
<9> Is it out yet?
<2> end of july.
<9> Oh.
<2> i just saw an ad for it on tv. i didn't know it was even being made. ehhe
<9> Oh, there are trailers and stuff.
<9> I wanted to watch Clerks (I) recently again, after watching one of those... and realized the CD is scratched. Got to re-download it.
<9> Bleh, that makes me think of floppies.
<9> Why can't we have indestructable media?!
<9> (And where's Mark to lecture me about the immorality of pirating movies?)
<2> yea. you're supposed to re-buy stuff when you damage the media.
<2> you break a laptop you don't get to steal a replacement:P
<9> Ah, if only I bought the original to begin with. :)
<2> ahahah
<2> i usually buy dvds. they are generally cheaper than music cds. funny because they cost a lot more to produce.
<9> Yeah, but it's a secondary market.
<2> what do you mean?
<2> iirc dvds grossed more than cds last year.
<9> Well, when a movie gets to DVD, it has already recouped some of its costs.
<2> yea. but they don't turn a profit till they hit dvd.
<9> But it still allows them to sell at lower margins, I think.
<2> bands recoups costs from concerts.
<2> actually bands usually make most of their money from the concerts. it's the record companies that make money off the CDs.
<9> Yup.
<10> in theory one helps sell the other.
<11> you mean it's the publishing monopolies
<2> i think the safest way for a band to think about CDs is as a loss leader. this is why several bands tell their fans to just download the music if they don't want to buy the whole CD.
<2> jeffloc, yes. the record companies.
<11> not just them
<2> oh. you mean publishers like Sony, BMI, etc?
<9> The big 5... or however much there are of them.
<10> i think it is 3.
<9> I have the feeling it's 5. But I'm not sure.
<2> whatever they are, they are not what any normal person would call a legitimate business.
<2> more of a "consortium"
<11> more of a cartel
<9> It's big four.
<12> Would someone check to see if they can establish an ssh connection with me?
<9> Universal, Sony, Warner and EMI.
<12> OrngeTide: busy?
<10> kawfee: depends, do you have an open orifice?
<12> not that I know of
<12> what is that?
<12> I just need to see if you can get a login prompt over ssh.
<13> kawfee, what ip?
<10> sigh, give a freakin' name or address or something.
<2> kawfee, i'm a bit sleepy
<2> EMI? .. oh BMI is that thing the doctor does to tell you that you're fat.
<12> Gambit-: 71.15.121.11
<13> kawfee, yeah, i'm busy brute forcing your root p***word.
<12> Gambit-: so you got a login?
<13> yup
<12> great, thanks
<2> Gambit-, how goes it?
<13> OrngeTide, oh much better with a nights sleep behind me :) Yourself?
<12> OrngeTide: I thought you were sleepy or where you just whining?
<12> s/where/were
<2> ~.
<14> q!
<2> Gambit-, i'm fine. just fighting my net connection :P
<15> hi ot, gambit :)
<2> hi jaggy


Name:

Comments:

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






Return to #c
or
Go to some related logs:

kicking people in the nuts
#dsl
#computers
jmandon
#windows
#politics
#sex
#sex
#politics
#stocks



Home  |  disclaimer  |  contact  |  submit quotes