--- Log opened Tue Jun 28 00:00:48 2011 |
00:01 | | * TheWatcher hates all over PHP with a passion |
00:11 | < gnolam> | TEN DOT... TEN DOT... |
00:12 | | You're now known as TheWatcher[T-2] |
00:15 | | shade_of_cpux is now known as cpux |
00:17 | | You're now known as TheWatcher[zZzZ] |
00:20 | | AnnoDomini [annodomini@Nightstar-36839e0e.adsl.tpnet.pl] has quit [[NS] Quit: Zzz.] |
00:31 | | Vornicus-Latens is now known as Vornicus |
00:58 | | Vash is now known as Vash[Fooding] |
01:04 | | Kindamoody is now known as Kindamoody[zZz] |
01:42 | | Vash[Fooding] is now known as Vash |
01:48 | | Derakon[AFK] is now known as Derakon |
02:00 | | * Derakon drowns his sorrows in looseleaf salad and Freeman's Mind. |
02:00 | < Derakon> | Mischan. |
02:11 | < gnolam> | Derakon: so... you're a headcrab then? |
03:38 | | cpux is now known as shade_of_cpux |
03:41 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code |
04:19 | < McMartin[travels]> | Appsrently one with a taste for salad |
05:35 | | Derakon is now known as Derakon[AFK] |
07:06 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
07:22 | | cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has joined #code |
07:23 | | shade_of_cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
07:23 | | cpux is now known as shade_of_cpux |
07:23 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited] |
07:34 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
08:48 | | Kindamoody[zZz] is now known as Kindamoody |
09:03 | | AnnoDomini [annodomini@Nightstar-aecdd771.adsl.tpnet.pl] has joined #code |
09:06 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
09:09 | | You're now known as TheWatcher |
09:32 | | Kindamoody is now known as Kindamoody|out |
11:37 | | Vash is now known as Vash[Sleeping] |
11:43 | | Vornicus is now known as Vornicus-Latens |
13:01 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
13:16 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code |
14:17 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
14:29 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code |
14:33 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
14:39 | | Attilla [Some.Dude@Nightstar-30054490.threembb.co.uk] has joined #code |
16:54 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
17:04 | | AnnoDomini is now known as Anthonox |
17:35 | | Attilla_ [Some.Dude@Nightstar-411832d9.threembb.co.uk] has joined #code |
17:37 | | Attilla [Some.Dude@Nightstar-30054490.threembb.co.uk] has quit [Ping timeout: 121 seconds] |
18:13 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
18:13 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
18:14 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code |
18:16 | | Attilla_ [Some.Dude@Nightstar-411832d9.threembb.co.uk] has quit [Ping timeout: 121 seconds] |
18:18 | | Attilla_ [Some.Dude@Nightstar-a62a903a.threembb.co.uk] has joined #code |
18:18 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
18:38 | | Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has quit [Client closed the connection] |
18:38 | | Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has joined #code |
18:39 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code |
19:13 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code |
19:15 | | Attilla_ [Some.Dude@Nightstar-a62a903a.threembb.co.uk] has quit [Ping timeout: 121 seconds] |
19:26 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
19:26 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code |
19:30 | | Attilla_ [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code |
19:30 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
19:34 | | Attilla_ [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
19:35 | | Attilla [Some.Dude@Nightstar-cd6a702f.threembb.co.uk] has joined #code |
19:58 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited] |
20:26 | <@froztbyte> | <Vhata> how do you convert 'Africa/Johannesburg' to +2 ? |
20:26 | <@froztbyte> | <asyn1> print '+' + len('Africa/Johannesburg'.split('/')) |
20:26 | <@froztbyte> | hahhhahahahhaaha |
20:27 | <@froztbyte> | (for reference, Africa/Johannesburg is a UTC+2 region) |
20:35 | < Anthonox> | LOL. |
21:10 | | Kindamoody|out is now known as Kindamoody |
21:34 | | Derakon [chriswei@Nightstar-cfae48c3.ca.comcast.net] has joined #code |
21:34 | < Derakon> | Problem: I can't find the IP address for the switch that controls our little internal network. |
21:34 | < Derakon> | Solutions? |
21:34 | < Tamber> | How big's the network? |
21:34 | < Derakon> | Documentation says it should by default be on 192.168.2.10, but putting that into a browser doesn't turn up anything. |
21:35 | < Derakon> | ~10 hosts. |
21:35 | < Alek> | tracert? |
21:35 | < Derakon> | I tried out nmap but had trouble getting it to do a /16 scan; it kept aborting after failing to find a route for 192.168.0.0. |
21:35 | < Tamber> | Funny, it works quite happily doing that for me. o.o |
21:35 | | * Tamber hmms. |
21:36 | < Derakon> | (Our other hosts are on 192.168.12.*, and it finds those fine if I do a scan at 192.168.12.0/24) |
21:36 | < Tamber> | Scan 192.168.2.0/24, see if it's in there somewhere? |
21:38 | < Derakon> | Same error it gave about being unable to reach 192.168.0.0. |
21:38 | | * Tamber headscratches. |
21:38 | < Tamber> | 192.168.2.1-254? |
21:38 | < Derakon> | Can I specify a range like that? |
21:38 | < Tamber> | Yes. |
21:38 | < Derakon> | Righto. |
21:39 | < Derakon> | Failed to determine route to 192.168.2.1; quitting. |
21:40 | < Derakon> | (I.e. same error) |
21:40 | | * Tamber hums. |
21:40 | < Derakon> | I would think if I'd changed the IP address I would have written it down in my notebook, and I see no such note. :\ |
21:40 | < Tamber> | Try adding another IP address to the interface you're using to scan. Something in the 192.168.2.0/24. |
21:40 | < Derakon> | You mean, make there be a machine in that range? |
21:42 | < Tamber> | No, exactly what I said. Give your scanning NIC an IP in that range, then it can actually get a route to it. :) |
21:42 | < Derakon> | Ah. |
21:45 | | Anthonox is now known as AnnoDomini |
21:46 | < Derakon> | Problem being that I'm using remote desktop to connect to a host that's solely behind the switch (as opposed to being connected both to the switch and the outside world). |
21:47 | < Derakon> | If I change that computer's IP address then I have to reconfigure the remote desktop connection, or else haul a monitor and keyboard in there so I can use the comp directly. |
21:47 | < Derakon> | Which I can do, I'd just rather not... |
21:47 | < Derakon> | Any idea *why* nmap gives up after the first failed route? |
21:47 | < Tamber> | You mean you can't just add another address? |
21:47 | < Derakon> | Um, not a networking guru. What exactly do you mean? |
21:47 | < Derakon> | One computer, one IP address, at least as far as Windows networking is concerned. |
21:47 | < Tamber> | ...oh, it's Windows. |
21:47 | < Tamber> | GLHF. |
21:48 | < Derakon> | Gee, thanks. :p |
21:48 | < Tamber> | :p |
21:48 | < Tamber> | Because I was just going to suggest "ifconfig eth0:1 192.168.2.42"~ |
21:51 | <@froztbyte> | euw |
21:52 | <@froztbyte> | ip addr add 192.168.2.24/24 dev eth0 |
21:52 | <@froztbyte> | interface aliases are rancid :P |
21:52 | < Tamber> | Pft. :p |
21:52 | <@froztbyte> | no but really, they are |
21:52 | < Tamber> | That works too, I suppose~ |
21:52 | <@froztbyte> | they're pretty much a hackjob, and you can't use them for much |
21:52 | < Tamber> | Mmh, but for quick and dirty, they do the job. |
21:53 | <@froztbyte> | hell, if you want to use the thing as an incoming/outgoing interface in netfilter you first need to bridge it |
21:54 | <@froztbyte> | Derakon: you may be able to relatively easily add a second IP to the box through "netsh" |
21:54 | <@froztbyte> | google around to see the syntax for your particular flavour of windoesn't |
21:55 | < Derakon> | No ideas on how to just get nmap to try each IP address anyway? |
21:55 | <@froztbyte> | the system has to have a route to get there. so either itself, or the default gw, needs to know how to get there |
21:56 | <@froztbyte> | otherwise the networking stack of the last host to get the routed packet will just return an ICMP UNREACHABLE |
21:56 | <@froztbyte> | err, HOST UNREACHABLE |
21:56 | < Derakon> | But why e.g. is it happy to look at 192.168.12.0 and fail, but it gives up when it fails to reach 192.168.0.0? |
21:56 | <@froztbyte> | what's your current address and subnet? |
21:56 | < Derakon> | 192.168.12.51. |
21:57 | <@froztbyte> | and subnet? |
21:57 | < Derakon> | Don't recall the subnet mask off the top of my head. |
21:57 | < Derakon> | But it's probably 255.255.255.0. |
21:57 | <@froztbyte> | 255.255.255.0 I'm gonna guess |
21:57 | <@froztbyte> | which is a /24 |
21:57 | <@froztbyte> | the reason is: |
21:57 | <@froztbyte> | <spam> |
21:57 | <@froztbyte> | hageshii% ipcalc 192.168.12.0/24 |
21:57 | <@froztbyte> | Address: 192.168.12.0 11000000.10101000.00001100. 00000000 |
21:57 | <@froztbyte> | Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 |
21:57 | <@froztbyte> | Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 |
21:57 | <@froztbyte> | => |
21:57 | <@froztbyte> | Network: 192.168.12.0/24 11000000.10101000.00001100. 00000000 |
21:57 | <@froztbyte> | HostMin: 192.168.12.1 11000000.10101000.00001100. 00000001 |
21:57 | <@froztbyte> | HostMax: 192.168.12.254 11000000.10101000.00001100. 11111110 |
21:57 | <@froztbyte> | Broadcast: 192.168.12.255 11000000.10101000.00001100. 11111111 |
21:57 | <@froztbyte> | Hosts/Net: 254 Class C, Private Internet |
21:57 | <@froztbyte> | </spam> |
21:58 | <@froztbyte> | at a low level, routing happens as an XOR (iirc) on the netmask |
21:59 | <@froztbyte> | the result of that determines whether an IP is inside or outside the current netblock |
21:59 | <@froztbyte> | the above is just a nice syntax output to show you how far that /24 goes |
22:00 | <@froztbyte> | but basically 192.168.0.0/24 is outside of it, thus the networking stack doesn't know how to get a packet to there |
22:00 | <@froztbyte> | so as Tamber suggested, you want to try and get an IP in the .0.0/24 range onto that interface |
22:01 | <@froztbyte> | </short subnetting lesson> |
22:01 | < Derakon> | I'm not entirely certain I followed that, but okay. |
22:01 | < Derakon> | I should really bone up on networking at some point. |
22:01 | <@froztbyte> | (side note: the wikipedia page on subnetting is *fantastic*) |
22:01 | <@froztbyte> | http://en.wikipedia.org/wiki/Subnetwork |
22:02 | <@froztbyte> | oh, AND, not XOR |
22:03 | <@froztbyte> | Derakon: in the paste there, do you see the netmask has the last 8 bits turned off? |
22:03 | < Derakon> | Yeah. |
22:04 | <@froztbyte> | when the box tries to route, some bitwise magic comparison magic happens with that, and that's how it knows whether the current subnet knows about the destination IP or not |
22:04 | < Derakon> | ...hm, y'know, I may never have actually configured the switch. |
22:04 | < Derakon> | In which case according to these docs here it doesn't actually give itself an IP address or subnet mask. |
22:04 | <@froztbyte> | oh, fun |
22:04 | < Derakon> | I'd need a console connection to poke at it. |
22:05 | <@froztbyte> | db9 console, or rj45 console? |
22:05 | <@froztbyte> | I guess if I was closer by I could easily help you out :) |
22:05 | | * froztbyte is part networker |
22:05 | < Derakon> | RJ45. |
22:06 | <@froztbyte> | hmm |
22:06 | < Derakon> | I don't even really know what's meant by "console" here, I have to admit. |
22:06 | <@froztbyte> | you might be able to find one of those at your local 'lectronics shop |
22:06 | <@froztbyte> | Derakon: it's a serial connection, basically |
22:06 | < Derakon> | Just a cable that plugs the switch into some othere computer and enables a mini-network between them? |
22:06 | <@froztbyte> | just a different connector |
22:07 | < Derakon> | s/othere/other/ |
22:07 | <@froztbyte> | http://http.cdnlayer.com/itke/blogs.dir/19/files/2007/10/newerconsolecable.jpg |
22:07 | <@froztbyte> | one of those |
22:07 | <@froztbyte> | usually blue, sometimes grey |
22:07 | < Derakon> | Yes, but what do you plug it into on the other end? |
22:07 | < Derakon> | A computer? |
22:07 | <@froztbyte> | yup |
22:07 | <@froztbyte> | in most cases it's that -> usb-serial convertor -> computer, but the basic idea is the same |
22:08 | < Derakon> | Heh. |
22:08 | <@froztbyte> | my desktop PC still has an actual serial port, it's awesome :D |
22:08 | < Derakon> | Just like the PS/2->USB converters all over the place. |
22:08 | <@froztbyte> | (and what makes it weird is that I have two 16x PCI-E slots, 8GB RAM, etc) |
22:09 | <@froztbyte> | Derakon: yeah, something like that |
22:09 | < Derakon> | (PS/2 needs to DIAF please~) |
22:09 | <@froztbyte> | anyway, when you connect to it it'll likely be 9600 8n1 or 115200 8n1 |
22:09 | <@froztbyte> | but the docs should have more info about that |
22:10 | < Tamber> | Derakon, I'd rather it didn't. |
22:10 | | * Tamber still prefers using the PS/2 connector. |
22:10 | <@froztbyte> | why? |
22:10 | <@froztbyte> | and has windows actually gotten to the point where you can plug and unplug something without it falling into a pit? |
22:11 | < Derakon> | Literally the only advantages PS/2 has over USB are a) the keyboard and mouse connectors are color-coded, and b) it works with PS/2 devices. |
22:11 | < Derakon> | Froztbyte: no, it hasn't. |
22:11 | <@froztbyte> | so what's the appeal then? :( |
22:11 | < Derakon> | Unplugged your mouse? Plug it back in and reboot. |
22:11 | < Tamber> | Leaving aside the simultaneous keypress limit of USB (Which is only vaguely of interest when I'm looking into steno.), this keyboard (at least) seems to lose keypresses when I'm typing fast. |
22:11 | < Tamber> | But doesn't when I'm using PS/2. |
22:12 | <@froztbyte> | can't say I've experienced that myself, possibly related to the keyboard in question? |
22:12 | < Tamber> | Might be. |
22:12 | < Derakon> | I'm inclined to agree with Froztbyte here. |
22:12 | < Derakon> | I've never noticed dropped keypresses on my keyboards. |
22:13 | | * Tamber shrugs. |
22:13 | < Tamber> | Only seems to happen when it's plugged into USB, and I'm typing at the higher end of my speed range. |
22:13 | <@froztbyte> | trying to get all the code out before 2012? ;) |
22:14 | < Tamber> | Of course! How else am I supposed to get paid before my employer goes to hide in the vault? |
22:15 | < jerith> | I prefer PS/2, but only because I have an el cheapo PS/2 KVM that works by intercepting certain magic sequences from the keyboard. |
22:15 | < Derakon> | It is true that USB KVM tends to be expensive. |
22:15 | < jerith> | (I haven't actually used this KVM in a number of years.) |
22:15 | < jerith> | These days the only machine in my flat with a display attached is the laptop. |
22:16 | < jerith> | (I /could/ plug peripherals into one of the others, but why bother?) |
22:16 | < Tamber> | That's what SSH is for. |
22:16 | <@froztbyte> | rtelnet! |
22:16 | <@froztbyte> | (I'm joking) |
22:17 | < Tamber> | :p |
22:18 | < Derakon> | See, I only *have* two computers that I'm using at any time. |
22:18 | < Derakon> | My laptop and my desktop. |
22:24 | <@froztbyte> | heh..before the death and theft of my laptop and eee, I used to regularly access from at least 4 devices |
22:24 | <@froztbyte> | now I'm down to only my desktop and phone |
22:25 | < Tamber> | self.sleep(3600*7); /* Night all! */ |
22:25 | <@froztbyte> | cheers |
22:26 | | * gnolam ponders probabilities. |
22:26 | <@froztbyte> | your sleep function should just accept floats or fuzzy time ;) |
22:27 | < Tamber> | That's on the TODO list for 1.2; don't want to break the API just yet~ |
22:27 | <@froztbyte> | :) |
22:30 | | * TheWatcher bleeeghs at php, hates this language so much |
22:31 | <@froztbyte> | "language" |
22:32 | < TheWatcher> | read "hideous violation of reason and sanity" |
22:33 | < jerith> | All decent sleep() implementations accept floats. |
22:36 | < Derakon> | Whelp, turns out all that mucking with IP addresses was unnecessary anyway. |
22:36 | < Derakon> | The ultimate goal was to find out what address had been assigned to a new device that had been plugged into the switch. |
22:37 | < Derakon> | But it had assigned itself its own address (the typical 169.blah useless cruft). |
22:37 | < Derakon> | So I just looked up the documentation for that device and discovered I could manually assign a static address, and we're good to go now. |
22:37 | < Derakon> | (The device in question is a digital delay generator: it accepts input on one line, and feeds out input on other lines at picosecond precision) |
22:38 | < TheWatcher> | Also? I hate css, too. Yes. |
22:39 | < Derakon> | There, there. |
22:39 | < Derakon> | What're you trying to do? |
22:40 | < TheWatcher> | Write an album organise module for Gallery 3 that itsn't utter shit |
22:40 | < TheWatcher> | *isn't |
22:40 | < Derakon> | Ah. |
22:41 | < TheWatcher> | Not aided by the fact that the G3 devs appear to have been taking meth cut with aviation fuel, and let's not even talk about API documentation... |
22:41 | <@froztbyte> | G3? |
22:41 | < TheWatcher> | Gallery 3. |
22:41 | <@froztbyte> | oh, right |
22:42 | <@froztbyte> | well, welcome to lots of opensource PHP :/ |
22:42 | <@froztbyte> | don't even *look* at cacti |
22:44 | < TheWatcher> | I avoid looking at any php if I can possibly avoid it. |
22:46 | <@froztbyte> | there is some truly truly horrible PHP out there |
22:47 | <@froztbyte> | even by the standards of PHP being a remarkably shit language |
22:51 | <@froztbyte> | but for now one more Sanctuary episode and then bed for me |
22:51 | | * froztbyte & |
22:53 | | celticminstrel is now known as celmin|away |
22:53 | | * TheWatcher manages to get it to actually display the thumbnail grid properly, goes to play R&C 2 to let his bloodpressure recover |
22:54 | | AnnoDomini [annodomini@Nightstar-aecdd771.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.] |
22:54 | < gnolam> | TheWatcher: R&C? |
22:54 | < TheWatcher> | Ratchet & Clank |
23:17 | | * Alek wants that series. XD |
23:56 | | Derakon [chriswei@Nightstar-cfae48c3.ca.comcast.net] has quit [[NS] Quit: leaving] |
--- Log closed Wed Jun 29 00:00:02 2011 |