code logs -> 2010 -> Wed, 14 Apr 2010< code.20100413.log - code.20100415.log >
--- Log opened Wed Apr 14 00:00:25 2010
--- Day changed Wed Apr 14 2010
00:00
< Tarinaky>
Don't suppose anyone knows how you get a corpse in Tome?
00:00
<@Derakon>
Increase corpse-preservation skill.
00:00
< Tarinaky>
Tome 3 I should say.
00:00
< Tarinaky>
I don't see such a skill.
00:01
<@Derakon>
Oh, ToME 3.
00:01
<@Derakon>
I don't know about that; last I heard it still wasn't really playable.
00:02
<@Derakon>
In ToME 2.3 your percentage odds of getting a corpse after a kill is 10 + 1.5 * (corpse-preservation skill), maxing at 85%.
00:02
<@Derakon>
http://www.killerbunnies.org/angband/skill-230.html#preserv
00:06 You're now known as TheWatcher[T-2]
00:08 You're now known as TheWatcher[zZzZ]
00:10
< Tarinaky>
Ah. I see corpses now.
00:11
< Tarinaky>
They're the '~'s.
00:11
< gnolam>
You see dead people?
00:11 * gnolam flails vaguely at his conference paper.
00:11 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
00:11
< Tarinaky>
Crap. Got killed :/
00:13
< Tarinaky>
Oh crap, it's midnight.
00:13
< Tarinaky>
Later.
00:43
< Tarinaky>
Can't sleep :/
00:49 Derakon[AFK] is now known as Derakon
02:41 * Reiver pokes Derakon inquisitively
02:43
<@Derakon>
Zuggahey?
02:43 * Reiver pounce.
02:44 * gnolam pats himself on the back.
02:44<~Reiver> So I was poking at my alograthm that I did by hand yesterday
02:44<~Reiver> And realise that I'd cheated by tracking 'how many of each' on each line.
02:44
<@Derakon>
Howso?
02:44
< gnolam>
For once, I have no complaints on how this old code was written. It's... about as readable as it gets!
02:45<~Reiver> Is this a good way to do it (AKA set up the Object so each tuple has a list of all the components within it), or do I need to figure out how to back-calc what goes where?
02:45
<@Derakon>
Gnolam: which is to say, not very? >.>
02:45
<@Derakon>
Reiver: there's probably a way to back-calculate it, but why bother? Storing the sequence with the tuple is easy.
02:46<~Reiver> OK
02:46
<@Derakon>
Figuring out how to back-calculate sounds like a premature optimization; you have no evidence that the extra memory cost of storing your sequences is going to be a bottleneck.
02:47 PinkFreud is now known as PinkHippo
02:47 PinkHippo is now known as PinkFreud
02:57<~Reiver> So how will I be storing the sequence?
02:57
<@Derakon>
What language are you using?
02:57<~Reiver> Java.
02:58
<@Derakon>
Expanding ArrayList where each entry is the number of copies of the device with that index.
02:58 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:58
<@Derakon>
Just remember to make copies of the ArrayList when you make new tuples.
03:08<~Reiver> aha, hm, that works
03:09<~Reiver> Yeah, you'd want to pass into the new tuple the ArrayList, current reliability, current cost, /then/ poke at it for funky things, yes?
03:09
<@Derakon>
A new tuple is made from a previous tuple, a quantity, and a device type, I'd say.
03:11<~Reiver> That would make sense.
03:12<~Reiver> Should I be creating tuples, /then/ checking for validity as part of the tuple creation, or should I be 'check everything out first, then if it's a go shove the tuple on the stack'?
03:13
<@Derakon>
I would say, implement a "getCost" function on tuples that tells you the minimum total cost for that combination (assuming that you buy one each of all the remaining devices) and use that to decide if you should keep the tuple.
03:13
<@Derakon>
But there's plenty of valid ways to do this.
03:21
<@Derakon>
(I note that this approach ends up creating objects that you will then discard, so it's inefficient...)
03:23<~Reiver> hm
03:23 * Reiver starts poking at things.
03:35 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
03:44 * Derakon eyes this article summary on Slashdot, which just used "Y2k38" un-ironically.
03:44
<@Derakon>
Apparently they forgot about the existence of the '0' character.
03:45 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
03:46
<@McMartin>
"epoch" has the same number of characters and many fewer syllables
03:47
<@McMartin>
Also, when things aren't compliant, we can call it...
03:47
<@McMartin>
EPOCH FAIL
03:47
<@Derakon>
My understanding is that "epoch" means the beginning of time, i.e. January 1st 1970.
03:47 Orthia [orthianz@Nightstar-3da45429.xnet.co.nz] has joined #code
03:48
<@McMartin>
Right, and on 32-bit systems, the epoch will instead be 2038
03:48
<@McMartin>
Once it happens.
03:49
<@Derakon>
...
03:49<~Reiver> While an atrocious term, it is one that has an undeniable advantage - it's bootstrapping context from prior events.
03:49<~Reiver> Everyone knew what Y2K was about.
03:49
<@Derakon>
I think it's more that "epoch" means multiple times.
03:49<~Reiver> Y2K38 must be 38 years later!
03:49
<@Derakon>
Reiv: I think "Y2038 problem" is unambiguous.
03:50<~Reiver> Derakon: Yeah, but it's not sneaking in the pop culture reference.
03:50
<@Derakon>
Bah pop culture.
03:50<~Reiver> I prefer 'epoch', myself.
04:40 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
04:46 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
05:30
< cpux>
2,147,483,647 seconds doesn't quite have that ring as a Broadway tune though.
05:35 * Kazriko still recalls when we hit 1 billion seconds. It's quite a memorable date because it's 2 days before another memorable date.
05:39
< Alek>
hm.
05:39
< Alek>
which?
05:41
< Alek>
hrm.
05:42
< Alek>
counting from beginning, it's a MONTH and 2 days away from that other date, looks like.
05:42
< Alek>
1 billion seconds is 31 years, 8 months, 8 days, 1 hour, 46 minutes, 40 seconds
05:42
< Alek>
August 9, 2001.
05:43
< cpux>
Still, that's close. OMG CONSPIRACY! :-P
05:44
< Alek>
and I'm not sure that includes leap years.
05:56<~Reiver> What
05:57
< Alek>
could be off by as much as 8 days. :P
06:01<~Reiver> I have no idea what the Other Significant Date was meant to be.
06:03
< Alek>
9/11. >_>
06:03
< Alek>
xxx: All the normal kids headed off to Kindergarden happily, but I had to be dragged kicking and screaming.
06:03
< Alek>
xxx: All because, when my parents were introducing me to music, they showed me Pink Floyd's "The Wall".
06:05<~Reiver> Oh. OK.
06:05<~Reiver> I was trying to think of one of those Astec Dates or something. :p
06:13 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
06:29 AnnoDomini [annodomini@Nightstar-3e31b747.adsl.tpnet.pl] has joined #code
06:29 mode/#code [+o AnnoDomini] by Reiver
06:34 Derakon is now known as Derakon[AFK]
07:27 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
07:33 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
07:40 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
08:16 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Connection reset by peer]
08:20 Zed_ [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
08:23 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Ping timeout: 121 seconds]
08:53 You're now known as TheWatcher
09:13 AnnoDomini [annodomini@Nightstar-3e31b747.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
09:15 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Client closed the connection]
10:13 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Connection closed]
10:15 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
10:15 mode/#code [+o Kazriko] by Reiver
11:16 Zed_ [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Connection reset by peer]
11:20 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:56 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
13:40 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
15:00 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
15:55 AnnoDomini [annodomini@Nightstar-c384f9e4.adsl.tpnet.pl] has joined #code
15:55 mode/#code [+o AnnoDomini] by Reiver
16:44 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Connection closed]
16:45 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
16:45 mode/#code [+o Kazriko] by Reiver
17:01 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Connection closed]
17:02 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
17:02 mode/#code [+o Kazriko] by Reiver
17:09 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
17:09 mode/#code [+o Derakon] by Reiver
17:09
<@Derakon>
Once again I have come perilously close to typing "/join #coed". ?.?
17:10
< Namegduf>
XD
17:10
< celticminstrel>
?
17:11
<@Kazriko>
tyop.
17:12
<@Kazriko>
:)
17:12
< celticminstrel>
Oh.
17:12
< celticminstrel>
XD
17:15
<@TheWatcher>
Worse, that channel doesn't exist!
17:15
<@TheWatcher>
Woe, and calamity, etc.
17:16 * Derakon ponders an admin-bot that would sit in #coed and teleport people who join it to #code.
17:17
<@Derakon>
Now that would be a cause for disappointment. :p
17:17
< Namegduf>
XD
17:37 * celticminstrel is stumped...
17:38
< celticminstrel>
I can't figure out how I'm getting this error.
17:40
< celticminstrel>
libtool: link: warning: cannot determine absolute directory name of `$MAGICK_HOME/lib'
17:43
<@Derakon>
It sounds like $MAGICK_HOME is being interpreted as a literal string instead of as a variable.
17:43
< celticminstrel>
But I can't understand why...
17:44 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
17:44
< celticminstrel>
And libtool is a generated script called from a generated makefile generated by a generated config script. @_@
17:45
<@ToxicFrog>
libtool ;.;
17:48
< celticminstrel>
There are three points where that error message is printed, but I'm able to pinpoint exactly which one is the culprit due to context (other error messages folowing it).
17:50 * Derakon sighs...
17:50
<@Derakon>
There's this set of Python scripts and libraries that got written awhile back that most of the programs here depend on.
17:50
<@Derakon>
The problem is that every single program seems to depend on a subtly different version of that set of scripts and libraries.
17:51
< celticminstrel>
And of course the string "$MAGICK_HOME" is nowhere to be found in either the makefile or the libtool script. @_@ So how did it get there!?
17:52
<@Derakon>
Search for just MAGICK
17:52
< celticminstrel>
Nowhere to be found in the libtool script.
17:53
< Namegduf>
Oh god, you're looking through libtool?
17:53
< Namegduf>
Run for the hills
17:53
< celticminstrel>
I'm trying to install something.
17:54
< celticminstrel>
The simple method failed at libtool.
17:54
< Namegduf>
Libtool is a, what, 4000 line shell script dynamically generated and varying by program
17:54
< celticminstrel>
Yeah.
17:54
< Namegduf>
Try a more complex way
17:54
< celticminstrel>
And it is invoked by a generated makefile generated by a generated config script.
17:54 * Namegduf had to try to fight that monstrosity once before, and lost
17:55
<@ToxicFrog>
You're trying to install ImageMagick, I'd guess?
17:56
< celticminstrel>
The PHP add-on, yes.
17:56
< celticminstrel>
The command-line and libraries is already installed.
17:56
< celticminstrel>
^are
17:56
<@Derakon>
http://www.php.net/manual/en/imagick.setup.php
17:56
<@Derakon>
You found that?
17:57
<@Derakon>
What OS are you on?
17:57
< celticminstrel>
Mac
17:57
<@Derakon>
Ahh.
17:57
< celticminstrel>
Running "pecl install imagick" created errors, so I downloaded it and tried to do it manually with phpize.
18:00
< celticminstrel>
Yes, I did find that page.
18:01
<@ToxicFrog>
...wouldn't it have been easier to just fix those errors?
18:01
< celticminstrel>
Which errors?
18:03
< celticminstrel>
The first error I got turned out to be an incorrectly set environment variable, but the second error is a failure to locate a file that definitely exists.
18:03
< celticminstrel>
That's the error I posted earlier.
18:12
< celticminstrel>
Ooh, I managed to get around it by hardcoding the proper path into libtool. <_<
18:12
< celticminstrel>
Now it complains that libsqlite3 is of the wrong architecture.
18:12
< celticminstrel>
That seems easier to fix...
18:14
< celticminstrel>
...though, I'm confused why it would need libsqlite3...
18:16
< celticminstrel>
It's not even in the arguments to the compiler... :/
18:23
<@ToxicFrog>
...and? That would likely still be easier to fix than trying to get libtool to work.
18:30
< celticminstrel>
Well... I got libtool to work, I think.
18:31
< celticminstrel>
I hardcoded the correct path into it; apparently that section of code only runs once even though it's in a loop. :/
19:13
< celticminstrel>
Hah! Somehow, deleting libsqlite3.dylib fixed it.
19:13
< celticminstrel>
It was only a symlink anyway.
19:13
< celticminstrel>
I put it back afterwards, of course.
19:15 * Derakon eyes his Mercurial repo, which appears to have forgotten...everything. ;_;
19:15
<@Derakon>
And it's been a bit of a while since I did a push to the remote backup.
19:16
<@Derakon>
Yyyyyep, caused by accidentally writing a new .hg file to the repo. Shit.
19:16
<@Derakon>
s/file/directory.
19:17
<@jerith>
:-(
19:17
<@Derakon>
...and I destroyed the other copy of the repo I had on my USB key. *sigh*
19:18 * celticminstrel heads out for a reboot.
19:19 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *whistles* Did you hear something?]
19:25 * Derakon pulls the remote repo, copies in its .hg directory, and then pastes the update emails he sent to the group list in as one big commit message.
19:25
<@Derakon>
Nowhere near as detailed as my normal commit messages, but it'll have to do.
19:32 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
20:03 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
20:37 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
20:56 Attilla [Attilla@FBC920.482E2D.971EED.6317D6] has joined #code
20:56 mode/#code [+o Attilla] by Reiver
21:08 * Derakon eyes this email he just got.
21:08
<@Derakon>
They're upgrading the UPS which provides emergency backup power for the servers.
21:08
<@Derakon>
This involves replacing bearings on a pair of flywheels?
21:21
<@TheWatcher>
Sure that's a UPS and not a diesel backup generator? I've seen generator systems that use a flywheel to provide power while the generator fires up...
21:22
<@Derakon>
"The UPS which supports the Byers Hall server room and Byers Hall data closets will be undergoing service tomorrow, 4/15/10, to replace the bearings. The UPS consists of two flywheels which operate independently, and are each capable of supporting the entire emergency load."
21:22
<@Derakon>
Strictly speaking, this could be a UPS working in conjunction with a generator.
21:23
<@Derakon>
I'm just curious about why flywheels are used instead of batteries. I guess they're cheaper?
21:25
<@jerith>
More reliable?
21:26
<@Derakon>
Why would a device with high-energy moving parts be more reliable than a battery?
21:28
<@jerith>
Because when a flywheel stops flying, you know about it.
21:29
<@jerith>
When a battery gets stale, on the other hand...
21:29
< gnolam>
That, and they're quite space efficient.
21:29
<@Derakon>
Jerith: yes, because it's punched a hole through your wall.
21:30
<@Derakon>
(Or, I suppose, it's simply spun down)
21:32
<@jerith>
Quite.
21:33
<@jerith>
I've had a UPS that was passing its regular diagnostics fail to provide more than a minute's worth of power when mains went away.
21:34
<@jerith>
That was when we discovered what a bad idea it was to run your DHCP and DNS servers in a VM on a machine that wouldn't bring up the VMs for some reason until it had an IP...
21:34
<@Derakon>
Oh dear.
21:35
< Serah>
Under windowsserver 2003, does anyone know a handy way to copy one file to multiple destinations+
21:35
<@jerith>
Later that month, after the batteries were replaced, one of the caps went bang and blew a big chunk of the HV PCB into itty bitty smithereens.
21:36
<@jerith>
(Well, 240V isn't HV but it's bigger then the battery side of the circuit.)
21:36 * jerith goes to bed.
21:37
<@TheWatcher>
Dera: batteries need replacing far more often than flywheel bearings, basically
21:37
<@Derakon>
Fair enough.
21:37
< celticminstrel>
Okay. What's the easiest way to convert a date to a timestamp in Python or Bash?
21:37
< celticminstrel>
Or is there no way?
21:37
<@Derakon>
http://docs.python.org/library/datetime.html
21:38
<@jerith>
Also, as previously mentioned, flywheels are far more obviously broken when they break.
21:38
<@jerith>
celticminstrel: 'man date'.
21:38
<@TheWatcher>
jerith: quite.
21:38
< celticminstrel>
I checked there, there was no method to convert to the raw timestamp.
21:38
< celticminstrel>
I didn't find anything in man date either, though I wouldn't be surprised if I missed something.
21:39
< gnolam>
jerith: are you asking him out?
21:39 * gnolam hides.
21:39
<@Derakon>
Celticminstrel: datetime.timetuple()?
21:40
<@jerith>
celticminstrel: "%s" as the format string?
21:40
<@jerith>
That's BSD's strftime, but I think it's pretty standard.
21:40
<@Derakon>
No, I guess that's a full time tuple.
21:40
< celticminstrel>
Well, BSD's is probably the one used on the Mac anyway.
21:40
<@jerith>
lantea:~ jerith$ date "+%s"
21:40
<@jerith>
1271277633
21:40
< celticminstrel>
Oh wow.
21:40
<@jerith>
It is, because I'm on a mac.
21:45
<@jerith>
lantea:~ jerith$ date -jf "%Y-%m-%dT%T" "1980-09-02T12:00:00" "+%s"
21:45
<@jerith>
336736800
21:45
<@jerith>
That's converting noon on my date of birth to a timestamp, using ISO-8601 input.
21:46
< celticminstrel>
Thanks.
22:52 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [[NS] Quit: bbs]
23:01 AnnoDomini [annodomini@Nightstar-c384f9e4.adsl.tpnet.pl] has quit [[NS] Quit: Erh.]
23:08 Attilla [Attilla@FBC920.482E2D.971EED.6317D6] has quit [Connection reset by peer]
23:08 Attilla [Attilla@FBC920.482E2D.971EED.6317D6] has joined #code
23:08 mode/#code [+o Attilla] by Reiver
23:30 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
23:31 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
23:33
< celticminstrel>
Windows keeps track of last modified date?
23:36
<@McMartin>
... yes?
23:48 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
--- Log closed Thu Apr 15 00:00:58 2010
code logs -> 2010 -> Wed, 14 Apr 2010< code.20100413.log - code.20100415.log >