code logs -> 2012 -> Fri, 06 Jan 2012< code.20120105.log - code.20120107.log >
--- Log opened Fri Jan 06 00:00:05 2012
00:15 Derakon[AFK] is now known as Derakon
00:19 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has quit [[NS] Quit: Time for bed.]
00:25 Lowpass is now known as Tarinaky
00:30 You're now known as TheWatcher[t-2]
00:32 You're now known as TheWatcher[zZzZ]
00:44 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
00:57 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
01:05 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
01:10 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
01:12 macdjord [macdjord@Nightstar-727abe5d.dsl.teksavvy.com] has joined #code
01:16 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
01:22 * macdjord once again pokes about for anyone who knows batch scripting.
01:23<~Vornicus> Just Ask The Question
01:24 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
01:25
< macdjord>
Need a batch script that will create a folder named YYYY-MM-DD-## based on the date, where ## is the smallest nonnegative integer such that no such folder already exists, then copy two files from another, fixed location.
01:29 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
01:30 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
01:31
< gnolam>
To get the current date, use date /t.
01:32
< gnolam>
To see if a directory exists, "IF EXIST foo".
01:33
< macdjord>
gnolam: In what format does 'date /t' return the date? And how do I convert it to 'YYYY-MM-DD'?
01:33
< gnolam>
The rest... I don't remember. Haven't really used batch files since the DOS days.
01:34
< gnolam>
Dunno.
01:34
< gnolam>
I always use YYYY-MM-DD, so... :P
01:34
< gnolam>
(Like any sane person would)
01:35
< macdjord>
Same.
01:35
< gnolam>
Does it /really/ have to be a batch file, though?
01:37
< macdjord>
Well, I'm on Windows. I'd prefer to use the native scripting option. I could do it myself in Python, but the currently-installed interperator doesn't seem to like executing .py files using 'Open with'.
01:39
<@Derakon>
C:\Python27\Python.exe script.py
01:41
< macdjord>
Derakon: No C:\Python* folder.
01:43<~Vornicus> Where's python installed then?
01:44 * macdjord checks
01:44
< macdjord>
C:\Program Files\Python26
01:47<~Vornicus> okay, so "C:\Program Files\Python26\python.exe script.py
01:54
< celticminstrel>
macdjord: Just type date \t at the command-line to see how it returns it?
01:57
<@Alek>
well, you CAN echo the output of date /t to a file, then parse it to grab the 3 different variables and rearrange to taste. XD
01:58
<@Alek>
(it's apparently default DAY DD/MM/YYYY in w7)
02:00
< gnolam>
Then it's whatever your locale is.
02:00 * gnolam slaps Alek for not using ISO 8601.
02:01
<@Alek>
wat
02:01
<@Alek>
don't blame me, that's the format w7 gave me D:
02:02
< gnolam>
Then forward that slap to whoever sets your national standards.
02:02
<@Alek>
lol
02:02
<@McMartin>
Does *any* nation actually use ISO 8601 as a standard?
02:02
< gnolam>
Yes.
02:02
<@Alek>
this. is. AMERICA! *kicks gnolam off the web*
02:02
<@McMartin>
Dude, America doesn't use DDMMYYYY either.
02:02
< gnolam>
(But you still deserve the slap, since unlike most Linux distros, setting a custom locale is easy.)
02:02
<@McMartin>
We use either MMDDYYYY or ISO 8601
02:02
<@Alek>
hm.
02:02
< gnolam>
+in Windows
02:02
<@Alek>
wait.
02:02 * Alek facepalms.
02:03
<@Alek>
I'm tired.
02:03
<@Alek>
you're right, it was DAY MM/DD/YYYY
02:03
<@McMartin>
You're making filenames here, idly, so you *want* ISO 8601 because that way it sorts properly.
02:03 * Alek had a LONG day at work.
02:04
<@McMartin>
gnolam: Incidentally, I found my in-game chat for a Windows game wasn't working right the other day
02:04
<@McMartin>
I had somehow hit some hotkeys that had switched me to Greek QWERTY. -_-
02:04
<@McMartin>
That would be awesome if I knew how to do that *on purpose*
02:06 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:07
< celticminstrel>
I keep doing that.
02:07
< celticminstrel>
Apparently Cmd-Space is a very easy combination to hit accidentally.
02:08
<@McMartin>
Is that what it is?
02:08
< celticminstrel>
On Mac, yes.
02:08
< celticminstrel>
I wish I could set a different key combination for switching keyboard layouts, but no, I have the choice of Cmd-Space, or nothing.
02:09
< celticminstrel>
...wait.
02:09
<@McMartin>
I was on Windows here
02:09
< celticminstrel>
Apparently it does let me customize. o.O Why did I never think to look at the Keyboard preference pane!?
02:11 Attilla_ [Obsolete@Nightstar-b639c71f.as43234.net] has joined #code
02:12 Attilla [Obsolete@Nightstar-b639c71f.as43234.net] has quit [Ping timeout: 121 seconds]
02:15 Attilla_ [Obsolete@Nightstar-b639c71f.as43234.net] has quit [Ping timeout: 121 seconds]
02:23
<@Alek>
McM: on windows, it defaults to left alt-shift.
02:23
<@Alek>
but it will only switch between enabled layouts. why did you have a greek layout enabled? >_>
02:24
< celticminstrel>
Which is even stupider than Cmd-Space.
02:24
<@Alek>
eh, works for me. XD
02:24
< celticminstrel>
...why wouldn't you have a Greek layout enabled?
02:24
<@Alek>
?_?
02:24
< celticminstrel>
:P
02:24 * Alek has Russian enabled on most of the PCs in the house.
02:24
<@McMartin>
Because I needed to test Unicode compliance
02:24
<@Alek>
ah.
02:24
<@Alek>
cool.
02:24
<@McMartin>
And because Greek is in fact QWERTY which means I can actually type things in it.
02:25
<@McMartin>
No diacriticals for quoting Homer or Plato, though. ;-)
02:25 * Alek may enable greek and hebrew some time. just for the lulz. XD
02:25
< celticminstrel>
The two non-US layouts I use most are Greek and Japanese... not that that's saying much, since I use neither of them with any sort of frequency.
02:31 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
02:39 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
02:51 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
02:53 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
02:57 Kindamoody[zZz] is now known as Kindamoody
03:06 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
03:37 macdjord is now known as macdjord|shower
03:54 DrStalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds]
04:03 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection closed]
04:14 DrStalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
04:47 macdjord|shower is now known as macdjord|slep
06:48 Derakon is now known as Derakon[AFK]
07:23 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has quit [[NS] Quit: I<3craft Vorn!]
07:26 Janus [NSwebIRC@Nightstar-27138e8c.res.rr.com] has joined #code
07:33 AnnoDomini [annodomini@Nightstar-4ea39ceb.212.getinternet.no] has joined #code
07:33 mode/#code [+o AnnoDomini] by ChanServ
07:35 * Janus drew two ladies snogging. And my math teacher said I would never amount to anything... hah!
07:39 Kindamoody is now known as Kindamoody|gaming
07:48
<@Tarinaky>
Janus: If you'd paid attention in Maths you'd know bigger numbers than 2.
07:49
< Janus>
You don't need a number bigger than two in the /real/ world
07:50
<@Tarinaky>
What, you're going to tell me you wouldn't prefer more ladies with less clothes?
07:52
< Janus>
If I were a mathmatician though, more than two ladies would still confuse me, if only for another reason.
07:54
<@Tarinaky>
Nah
07:54
<@Tarinaky>
But the number of women would be complex
07:54
<@Tarinaky>
They'd have pi breasts each
07:54
<@Tarinaky>
And you'd obsess about making those breasts conform to the golden ratio.
07:55
< Janus>
If you use tau though, it's a simple matter of a turn each
07:56
<@Tarinaky>
Oh, and their legs are exponential.
08:00 AnnoDomini [annodomini@Nightstar-4ea39ceb.212.getinternet.no] has quit [Ping timeout: 121 seconds]
08:02 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has joined #code
08:02 mode/#code [+o AnnoDomini] by ChanServ
08:21 eckse [eckse@Nightstar-02874d0c.dsl.sentex.ca] has quit [Connection reset by peer]
08:26 maoranma [maoranma@Nightstar-539fe0ca.pools.spcsdns.net] has quit [Client closed the connection]
08:26 maoranma [maoranma@Nightstar-539fe0ca.pools.spcsdns.net] has joined #code
08:58 Attilla [Obsolete@Nightstar-b639c71f.as43234.net] has joined #code
09:24 * Janus finishes colouring the lady snogging. Which is sfw. ... actually snogging might be the wrong word
09:25 * Janus shows the coding room. Because this is definitely the right room for this. http://dl.dropbox.com/u/3108480/rightintheeye.png
09:26
<@Tamber>
:o
09:33
<@AnnoDomini>
Every room is the right room. That's what I've been saying all along.
09:34 Kindamoody|gaming is now known as Kindamoody|afk
09:34
<@Tamber>
hehehe
09:38
< Janus>
*throws water bottle* Oh hi Mark.
09:40 Kindamoody|afk is now known as Kindamoody
09:51 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
10:04 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
10:22 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
10:32 You're now known as TheWatcher
10:47 Janus [NSwebIRC@Nightstar-27138e8c.res.rr.com] has quit [[NS] Quit: Page closed]
11:34 * TheWatcher adds a configuration variable "Log:all_the_things" to this system
11:35
<@AnnoDomini>
:D
11:35
<@McMartin>
SUCCESS
11:51
< gnolam>
Heh
12:00 macdjord|slep is now known as macdjord|CantSlep
12:03 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has quit [[NS] Quit: Movan.]
12:53 Kindamoody is now known as Kindamoody|out
13:31 * Tamber vaguely beats File::Path::Collapse about the head.
13:33
<@Tamber>
" Returns - the collapsed path or undef if undef was passed as argument." What I /actually/ get is an array consisting of: a string containing what I expected, the collapsed path; two arrays containing the exact same data (the path, broken at each /)
13:37
<@TheWatcher>
Well, looking at the source, the seocn and third returned values are not quite the same depending on the stuff you feed in... but yeah, that's shit documentation right there
13:52 macdjord|CantSlep is now known as macdjord|Class
14:13
< maoranma>
Oh goody, I found a USB autorun utility for Windows 7
14:16
< ToxicFrog>
...it does that already, though?
14:16
< maoranma>
Nope
14:16
< maoranma>
They removed it from Windows 7
14:16
< maoranma>
You get autoplay, but if it's a USB device, it ignored OPEN or ACTION in the autorun.inf
14:23 * Tamber steps through the time vortex and punches past self in the head for not documenting this code better.
14:23
<@Tamber>
....Oh, wait... Now I remember why I didn't document this code better; I was interrupted by some idiot punching me in the head.
14:25
< maoranma>
Tamber: http://goo.gl/TrHgW
14:31
< gnolam>
Goatse?
14:47 Kindamoody|out is now known as Kindamoody
14:49 Attilla_ [Obsolete@Nightstar-b639c71f.as43234.net] has joined #code
14:50 ioblargh is now known as io
14:50 Attilla [Obsolete@Nightstar-b639c71f.as43234.net] has quit [Ping timeout: 121 seconds]
15:06 * TheWatcher stabs adobe in the head
15:06
<@TheWatcher>
Fuckingshitflashcrapargh
15:11
< gnolam>
As a friend put it the other day, "Flash on Linux eats cycles like a fat kid eats potato chips".
15:27 Attilla_ is now known as Attilla
15:52 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
15:55 * Tamber sighs, headdesks. <<Collapses the path by removing '.' and '..' from it. Trailing '/' is also removed.>> Nowhere does it say that, if I pass it a path like "/home/tamber/klomp/source/", the collapsed path will actually be "home" (Note, also, the lack of preceding slash.), not "/home/tamber/klomp/source"
15:56
<@Tamber>
I /think/ I see where that's coming from, but it really shouldn't.
16:11
<@TheWatcher>
... I get the feeling you should be using File::Spec::canonpath() or rel2abs()
16:12
<@Tamber>
The only reason I was using it was so it would properly remove trailing separators without me having to bodge together my own little set of crap.
16:13
<@Tamber>
Which I'm going to have to do /anyway/, because this guy's a fucking idiot.
16:13
<@Tamber>
Why not 3 functions to return the different sets of info? Oh, wait, no, that would make too much sense.
16:16
< celticminstrel>
I have no idea what's going on here.
16:17
<@Tamber>
I'm using a module with a function to collapse paths, (So "a/path/../elsewhere/" would get munged to "a/elsewhere", etc.) for consistency. The guy who wrote this module, rather than having a function to return the stringified version of the collapsed path, split version of collapsed and split version of uncollapsed... just returns all three.
16:18
<@Tamber>
return($collapsed_path, \@uncollapsed_components, \@collapsed_components) ;
16:18
< ToxicFrog>
Ok, so
16:18
< ToxicFrog>
This is Perl, of "there's more than one way to do it" fame
16:18
<@Tamber>
"including the truly bizarre, because why not!"
16:18
< ToxicFrog>
Aren't there already like three or four builtin libraries that do this properly?
16:18
<@Tamber>
Not a clue.
16:18
<@Tamber>
This was the one I found.
16:19
<@Tamber>
(Note, I don't want to turn them into absolute paths at everywhere I'm using the collapse-path function.)
16:20
<@Tamber>
And I though that just slapping it with a regex would be clumsy and possibly cause problems in cases I didn't think of. (Reinventing the wheel, badly, etc.)
16:21
< gnolam>
Don't you mean "Now you have two problems, etc."
16:21
< gnolam>
+?
16:21
<@Tamber>
Silly me, I just thought "I know, someone will have solved this problem already! There'll be a library for it."
16:22
<@Tamber>
That too.
16:22
<@Tamber>
Sod it, I'll just use a regex. (*doom*)
16:24
<@Tamber>
(or file::spec->canonpath, if that does what I want without the bits I don't.)
16:29
<@Tamber>
Which it appears it does! Hooray.
16:51 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
16:53 Netsplit *.net <-> *.split quits: Attilla, @Ling, @Vornicus, @froztbyte, @PinkFreud, @Reiver, @Taki^, @cpux, @Tarinaky, celticminstrel, (+14 more, use /NETSPLIT to show all of them)
16:53 Derakon[AFK] [Derakon@Nightstar-f68d7eb4.ca.comcast.net] has quit [Client closed the connection]
16:53 EvilDarkLord [jjlehto3@Nightstar-a5db08cc.org.aalto.fi] has quit [Client closed the connection]
16:54 Derakon [Derakon@Nightstar-f68d7eb4.ca.comcast.net] has joined #code
16:54 Netsplit over, joins: PinkFreud, ToxicFrog, jerith, Tamber, macdjord|Class, froztbyte, Vornicus, gnolam, McMartin, io (+14 more)
16:54 459AACNR6 [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:54 ServerMode/#code [+oooooooooooqoooooooo Tarinaky cpux Taki^ Ling PinkFreud froztbyte Kazriko jerith Kindamoody Tamber Vornicus Vornicus sshine McMartin Namegduf Alek io Reiver Syloqs-AFH 459AACNR6] by *.Nightstar.Net
16:56 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:58 EvilDarkLord [jjlehto3@Nightstar-a5db08cc.org.aalto.fi] has joined #code
17:04 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
17:39 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
17:57 macdjord|Class is now known as macdjord|nap
18:37
<@io>
i hate documentation
18:37
<@io>
more so after the fact -_-
18:37
<@jerith>
Documentation is like sex.
18:37
<@io>
...
18:37 * io eyes jerith
18:37
<@jerith>
When it's good, it's very good. When it's bad, it's still usually better than nothing.
18:37
<@io>
hun
18:38
<@io>
let me put it like this
18:38 * jerith offers io some lube.
18:38
<@io>
"Ported this code and I don't undertand the comments either."
18:38
<@io>
that's not documentation
18:39
<@jerith>
You now know that the code was ported and that the comments are confusing. Win.
18:39
<@io>
...
18:39
<@io>
-_-
18:39 * io kicks jerith in the shins, pouts
18:39
<@Tamber>
Well, it is helpful in a way.
18:40
<@Tamber>
It tells you not to even /think/ of wasting time trying to understand the comments.
18:41
<@TheWatcher>
"Don't get suckered in by the comments - they can be terribly misleading. Debug only code." -- Dave Storer
18:41
<@jerith>
Indeed.
18:41
<@jerith>
Strive to write comments that explain why rather than what or how.
18:42
<@jerith>
Like so:
18:42
<@jerith>
if not self.is_sms():
18:42
<@jerith>
# We have to do some trickery to get a suitable message here.
18:42
<@jerith>
sms_msg = msg.copy()
18:42
<@jerith>
sms_msg.variants['http'] = sms_msg.variants['default']
18:42
<@jerith>
self.reply(sms_msg % voucher.data,
19:02 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Operation timed out]
19:18 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
19:37 Kindamoody is now known as Kindamoody[zZz]
20:50
<@Tarinaky>
http://i.imgur.com/MQ7e1.jpg << I feel like this a lot of the time.
21:05 DrStalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
21:23 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has joined #code
21:23 mode/#code [+o Vash] by ChanServ
21:31 * Vornicus should bet back to poking at his thingythingy
21:31
< gnolam>
You'll go blind if you keep that up.
21:31
<@Tamber>
*chuckle*
21:32<~Vornicus> I should probably switch to light on dark at some point, honestly, but
21:50 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Operation timed out]
21:55
< ToxicFrog>
Halo: Reach up next, supposedly Cody is a death machine at this
21:57<~Vornicus> Reminds me, I should play something haloish at some point
21:57
< ToxicFrog>
I haven't played the later ones, but I strongly disrecommend the original.
21:57
< ToxicFrog>
Although playing the very first level repeatedly on Legendary can be pretty fun~
22:00
< gnolam>
Vornicus: you can safely skip it.
22:00 DrStalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
22:00<~Vornicus> Skip haloish stuff, or skip halo 1?
22:01 eckse [eckse@Nightstar-02874d0c.dsl.sentex.ca] has joined #code
22:01
< ToxicFrog>
(I wish I could recommend it, because FPSes that aren't grey-brown military simulators with boring guns are thin on the ground these days, but the level design is so amazingly bad that I really can't)
22:02<~Vornicus> Does it have a spank ray?
22:02 Red_Queen [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
22:03 DrStalker [Z@2C3C9C.B2A300.F245DE.859909] has quit [Connection reset by peer]
22:04 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
22:04
< ToxicFrog>
The SPNKr makes a return, yes.
22:04<~Vornicus> :D
22:04
< ToxicFrog>
(also, unless you have a 360 there's no percentage in playing them anyways; the third game is 360 only)
22:05<~Vornicus> (I do, but we're waiting for Vash's parents to finally get around to sending the cables, jeez)
22:07
< gnolam>
Halo 1 is the only one I've fully played through.
22:07
< gnolam>
But from what I've played of the others, there doesn't seem to be that big a difference between them.
22:20 Derakon is now known as Derakon[AFK]
22:20 Derakon[AFK] is now known as Derakon
22:20 mode/#code [+ao Derakon Derakon] by ChanServ
22:31 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
22:35 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
22:45 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
22:51 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
22:51 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:29
<@Alek>
Reach is also 360-only.
23:29
<@Alek>
I wonder if Anniversary redid the levels or if they're the same. >_>
23:50<~Vornicus> Gnarg. It really doesn't help that I don't know the file format of the actual thing I'm working from.
23:57
<@jerith>
Vornicus: DROD?
23:57<~Vornicus> Yeah.
23:57<~Vornicus> They've got source, so I can go diving.
23:58<~Vornicus> But right now my "get more data to try this on" method is "manually rewrite the data for a room with the features I want"
23:59
<@jerith>
Ah.
23:59 * jerith is tempted to rewrite some of the libraries he's using.
23:59
<@jerith>
Specifically, bdflib is a pain to install.
--- Log closed Sat Jan 07 00:00:10 2012
code logs -> 2012 -> Fri, 06 Jan 2012< code.20120105.log - code.20120107.log >

[ Latest log file ]