--- Log opened Mon Oct 02 00:00:04 2006 |
01:00 | | The-Librarian is now known as The-Librarian-Away |
01:15 | | ReivUni [~82d94c4d@Nightstar-14006.mail.city-net.pl] has joined #Code |
01:38 | | Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: ~] |
03:05 | | The-Librarian-Away [~user@ServicesAdmin.Nightstar.Net] has quit [Quit: Client Exiting] |
03:43 | <@Vornicus> | Yeah! You're all gonna be in this experimental film! |
03:43 | <@Vornicus> | And even though I can't explain it, I already know how it great it is |
03:47 | < ReivUni> | ... |
03:47 | < ReivUni> | ?! |
03:49 | | * Vornicus applies TMBG (and a dose of Homestar Runner) to Reiver. |
03:56 | | ReivUni [~82d94c4d@Nightstar-14006.mail.city-net.pl] has quit [Quit: Class!] |
04:16 | <@Pi> | |
04:54 | | MahalEarning is now known as Mahal |
05:16 | | ChalcyBook is now known as Chalcedon |
05:28 | | McMartin [~mcmartin@Nightstar-9379.dsl.pltn13.pacbell.net] has quit [Quit: brb] |
05:29 | | Thaqui is now known as ThaquiWork |
05:31 | | ReivClass is now known as Reiver |
05:50 | | Mahal is now known as MahalFood |
07:22 | | EvilSLEPLord is now known as EvilDarkLord |
07:22 | | McMartin [~mcmartin@Nightstar-9379.dsl.pltn13.pacbell.net] has joined #code |
07:22 | | mode/#code [+o McMartin] by ChanServ |
08:15 | | Vornicus is now known as Vornicus-Latens |
08:23 | | Reiver is now known as ReivShopping |
08:23 | | MahalFood is now known as Mahal |
08:32 | | Mahal is now known as Sunshine |
08:47 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
08:50 | | Chalcedon is now known as ChalcyGame |
08:51 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
08:52 | | mode/#code [+o ToxicFrog] by ChanServ |
09:04 | | Sunshine is now known as Mahal |
09:24 | | Mahal is now known as MahalZzz |
09:39 | | You're now known as TheWatcher[wr0k] |
10:22 | | ChalcyGame is now known as ChalcyZzz |
10:52 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
10:53 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
10:53 | | mode/#code [+o ToxicFrog] by ChanServ |
10:57 | | ReivShopping is now known as Reiver |
11:18 | | ThaquiWork is now known as Thaqui |
11:27 | <@TheWatcher[wr0k]> | ... eugh |
11:28 | <@TheWatcher[wr0k]> | Why is it that all the bits of moodle that I end up having to work on happen to be the ones with the most hideous code? |
11:28 | <@TheWatcher[wr0k]> | Oh, yes, because they have the most hideous code... |
11:36 | <@Reiver> | Funny how that works ¬¬ |
11:42 | <@TheWatcher[wr0k]> | yeah. no kidding. especially when the table schema they are working on is undocumented and you have to work ou thow it works form the code... |
12:01 | | Pi [~sysop@Nightstar-6915.hsd1.or.comcast.net] has quit [Ping Timeout] |
12:01 | | * TheWatcher[wr0k] bashes his head on the desk |
12:01 | <@TheWatcher[wr0k]> | oh, ffs how much can you overwork doing a simple bloody multiple choice quiz system?! |
13:06 | | EvilDarkLord is now known as Jo}{n |
13:58 | | Pi [~sysop@Nightstar-6915.hsd1.or.comcast.net] has joined #Code |
13:58 | | mode/#code [+o Pi] by ChanServ |
14:12 | | Thaqui is now known as ThaquiSleep |
14:26 | <@TheWatcher[wr0k]> | Anyone know a quick way to dump an array as csv in php? |
14:29 | <@Reiver> | array = null? |
14:29 | <@TheWatcher[wr0k]> | ah-ha |
15:04 | | * Jo}{n succeeds at creating a working string escaper, whoo! |
15:04 | | Jo}{n is now known as EvilDarkLord |
15:09 | | Reiver is now known as ReivZzz |
16:33 | | You're now known as TheWatcher |
16:34 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout] |
16:45 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code |
17:05 | | Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has joined #code |
17:05 | | mode/#code [+o Vornicus] by ChanServ |
17:26 | | You're now known as TheWatcher[afk] |
17:43 | <@Vornicus> | okay. I have three machines that all need backups. To do the backup, I must build a bz2 of the database dumps (easy), send them to a fourth computer (also easy), and burn them to CD (not as easy). |
17:43 | <@Vornicus> | (but still doable) |
17:43 | <@Vornicus> | the problem is that I need to not burn the CD until I get the files, and I need to not send the files until they're done being built. |
17:49 | <@Vornicus> | so either the build-send thing is easy, or the send-burn thing is easy, but... |
17:50 | <@Vornicus> | (where it would actually be fetch-burn...) |
18:24 | | * Vornicus fiddles, decides his best bet is to run the build at midnight and the fetch-burn at 3 am. |
18:30 | | ToxicFrog|Lab [~ToxicFrog@Nightstar-2174.cpe.net.cable.rogers.com] has joined #code |
18:30 | <@Vornicus> | or some such thing. |
18:30 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout] |
18:42 | | MahalWork [~Mahal@Nightstar-4219.worldnet.co.nz] has quit [Ping Timeout] |
18:43 | | MahalWork [~Mahal@Nightstar-4570.worldnet.co.nz] has joined #Code |
18:43 | | mode/#code [+o MahalWork] by ChanServ |
18:43 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code |
18:44 | | MahaLappy [~Mahal@Nightstar-4570.worldnet.co.nz] has joined #Code |
18:44 | | MahalZzz [~Mahal@Nightstar-4219.worldnet.co.nz] has quit [Ping Timeout] |
18:50 | | ChalcyZzz is now known as Chalcedon |
19:02 | | You're now known as TheWatcher |
19:18 | | MahaLappy is now known as Mahal |
20:09 | | aoanla [~sam@Nightstar-14566.range217-42.btcentralplus.com] has joined #code |
20:13 | | aoanla [~sam@Nightstar-14566.range217-42.btcentralplus.com] has quit [Client exited] |
20:18 | | aoanla [~sam@Nightstar-14566.range217-42.btcentralplus.com] has joined #code |
22:11 | | Mahal is now known as MahalNurse |
22:11 | | MahalNurse is now known as MahalOUt |
22:11 | | MahalOUt is now known as MahalOut |
22:17 | <@ToxicFrog> | Vornicus: I'm not seeing the problem here. |
22:18 | <@ToxicFrog> | Especially if the network they're on is reliable. |
22:23 | | Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code |
22:49 | | ThaquiSleep is now known as Thaqui |
22:55 | <@Vornicus> | Meh, the problem I was having was "how do I tell the receiving computer that the transfer is complete?" |
22:56 | <@Vornicus> | but just waiting a while is reasonable |
23:03 | <@ToxicFrog> | Use netcat for the transfer, sleep until all three children return, then burn the CD. |
23:04 | <@Vornicus> | Which moves the problem to the other side - how do I tell the sending computer that the dump&zip is complete? |
23:06 | <@ToxicFrog> | dump foo | bzip2 > dump.bz2 && nc burnserver.network.foo 1234 < dump.bz2 |
23:06 | <@ToxicFrog> | You don't invoke the send until bzip2 returns. |
23:07 | <@ToxicFrog> | And the recieve won't return until something has connected, then dropped the connection. |
23:07 | <@ToxicFrog> | The problem with this is that it kind of breaks if (1) someone else connects to the reciever before the send starts or (2) the connection drops halfway through. |
23:08 | <@ToxicFrog> | The former is yay iptables, I think, and the latter shouldn't be an issue unless someone blows up your network closet or something. |
23:09 | <@Vornicus> | oh oh. |
23:13 | <@ToxicFrog> | This would be easier if they were all running on the same machine, then you just use a pthread_barrier_t |
23:14 | <@Vornicus> | I've actually got 4 machines, in 3 cities. |
23:14 | <@Vornicus> | (and two states.) |
23:15 | <@ToxicFrog> | Oh. |
23:15 | <@ToxicFrog> | So, not a reliable network then. |
23:15 | <@ToxicFrog> | Hmm. |
23:17 | <@Vornicus> | (hell, if this was all in the office I'd just be using smb and a single shell script) |
23:17 | <@ToxicFrog> | What software are you using for the transfers? rsync? |
23:18 | <@Vornicus> | Right now? FTP. |
23:18 | <@Vornicus> | Well, sftp. but. |
23:22 | <@ToxicFrog> | Hmm. |
23:23 | <@ToxicFrog> | You could have each source point upload the bz2, followed by a 0-byte lockfile. |
23:23 | <@ToxicFrog> | When the burn script starts up, sleep until all three lockfiles exist, then do the burn and remove the lockfiles. |
23:25 | <@Vornicus> | that's a good idea. |
23:28 | <@Vornicus> | hokay, let's see here. |
23:28 | <@ToxicFrog> | The code is something like while [ ! ( -f lock.0 -a -f lock.1 -a -f lock.2 ) ]; do sleep 10; done |
23:28 | <@ToxicFrog> | But I haven't actually tested that and I'm rusty on []. |
23:28 | <@Vornicus> | yeah |
23:29 | <@Vornicus> | I'm walking through it now. |
23:30 | <@Vornicus> | yay I think it's all under control. |
23:31 | | You're now known as TheWatcher[T-2] |
23:33 | | You're now known as TheWatcher[zZzZ] |
23:35 | <@Vornicus> | ...oh, I might want to do that. |
23:38 | <@ToxicFrog> | ? |
23:39 | < aoanla> | Sleep? |
23:39 | | aoanla is now known as aoanla[t-2] |
23:39 | < aoanla[t-2]> | Certainly, it seems like a good idea to me. |
23:41 | <@Vornicus> | Date-stamp the files. |
23:43 | < aoanla[t-2]> | Oh. |
23:43 | < aoanla[t-2]> | Well, similar. |
23:43 | | aoanla[t-2] [~sam@Nightstar-14566.range217-42.btcentralplus.com] has quit [Quit: Leaving] |
23:44 | <@Vornicus> | :P |
--- Log closed Tue Oct 03 00:00:04 2006 |