code logs -> 2013 -> Sun, 10 Feb 2013< code.20130209.log - code.20130211.log >
--- Log opened Sun Feb 10 00:00:57 2013
00:03
<~Vornicus>
I find that the hardest part of testing is getting the system ready to test at all.
00:04
<~Vornicus>
Once I get it so /a/ test works, the rest is quite straightforward.
00:06
<~Vornicus>
But testing frameworks are a lot bigger and more complex than most programs I write, and getting them working is often a big challenge.
00:09 You're now known as TheWatcher[T-2]
00:12 You're now known as TheWatcher[zZzZ]
01:16 * Thalass fiddles about with Learn Python The Hard Way
01:16
< Thalass>
whee
01:17
<~Vornicus>
I've not heard really good things about that
01:36
<@RobinStamer>
How are the Ruby and/or Lua ones?
01:46 Thalass [thalass@Nightstar-b95c25b4.bigpond.net.au] has quit [[NS] Quit: reboot!]
01:48 syksleep is now known as Syk
02:14 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Client closed the connection]
02:20 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
02:20 mode/#code [+o Courage] by ChanServ
02:22
<@celticminstrel>
Whyyy do some websites go crazy if you don't have cookies enabled.
02:22
<@celticminstrel>
By which I mean they refuse to even load.
02:22
<&Derakon>
I could see redirecting you to some "entry" page if there's no cookie, so they can establish a new session.
02:23
<@celticminstrel>
If they did that, at least I'd see the "entry" page. :/
02:23
<@celticminstrel>
At least, I think I would.
02:24
<@celticminstrel>
In any case, they should be able to respond reasonably if the cookie is not accepted.
02:25
<@celticminstrel>
"Reasonably" usually means "showing you the stuff anyway", not "showing you a notice saying that you need to have cookies enabled to view the site" when it's a lie.
02:25
<@celticminstrel>
ie when no login is required to view the site.
02:25 Kindamoody[zZz] is now known as Kindamoody
02:26
<&Derakon>
Well, there's a difference between needing you to login and wanting to track you from one page to the next.
02:26
<&Derakon>
But I agree that the site should fail more gracefully.
02:27
<@RobinStamer>
celticminstrel: Because, like all proper bussiness oriented programmers, one must internalize one truth. Users beg to be hated, to be spited, denied even the smallest sliver of sanity. To do anything other than that is the highest form of cruelty.
02:29 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has joined #code
02:29
<@celticminstrel>
The site that triggered this could not even be viewed via Google cache.
02:33 * celticminstrel wonders whether Azash will appear again today.
02:40
<@RobinStamer>
http://i.imgur.com/V5vHUBf.png
02:43
<@celticminstrel>
.....
02:45
<~Vornicus>
RobinStamer: that's terrible
02:52 Xon [Xon@Nightstar-362effcc.highway1.net.au] has quit [[NS] Quit: ]
02:53 Xon [Xon@Nightstar-362effcc.highway1.net.au] has joined #code
03:03 Attilla [Attilla@Nightstar-aced750e.range86-184.btcentralplus.com] has quit [Ping timeout: 121 seconds]
04:12 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
05:28 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has quit [Connection closed]
05:45 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
05:57 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has joined #code
06:00 Nemu [NeophoxProd@Nightstar-4fcd609b.asahi-net.or.jp] has joined #code
06:02 Kindamoody is now known as Kindamoody|afk
06:51 Derakon is now known as Derakon[AFK]
07:57 ErikMesoy|sleep is now known as ErikMesoy
08:09
< Nemu>
Well, that's not cool. Got a new netbook. Went to boot from USB, no option for that in the BIOS
08:10
< Nemu>
There's no option for anything other than HDD
08:11
<~Vornicus>
no fun.
08:11
< Nemu>
Yeah. I got it sort of working, now. It lets you boot from the E-SATA drive, but only if you mash ESC to override the default boot order
08:20 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has quit [Connection closed]
08:29 Kindamoody|afk is now known as Kindamoody
08:46 * Azash damns celticminstrel's temporary presence
08:49 Xires is now known as ^Xires
10:29 You're now known as TheWatcher
10:51 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
10:52 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
10:52 mode/#code [+o Courage] by ChanServ
10:56 Attilla [Attilla@Nightstar-aced750e.range86-184.btcentralplus.com] has joined #code
11:57 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
12:27 thalass [thalass@Nightstar-b95c25b4.bigpond.net.au] has joined #code
12:28
< Syk>
I forgot who it was
12:28
< Syk>
that had a Dell XPS 12
12:28
< Syk>
and EFI problems
12:28
< Syk>
but have a look at this http://www.linuxnewshere.com/index.php/linux-foundation-secure-boot-system-relea sed
12:29 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
12:43 thalass_ [thalass@Nightstar-b95c25b4.bigpond.net.au] has joined #code
12:45 thalass [thalass@Nightstar-b95c25b4.bigpond.net.au] has quit [Ping timeout: 121 seconds]
14:00 Kindamoody is now known as Kindamoody|out
14:02 Nemu [NeophoxProd@Nightstar-4fcd609b.asahi-net.or.jp] has quit [Client closed the connection]
14:02 Nemu [NeophoxProd@Nightstar-ff705a95.asahi-net.or.jp] has joined #code
15:27 Omega [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
15:28 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Ping timeout: 121 seconds]
15:49 Syk is now known as syksleep
16:04 thalass_ is now known as Thalasleep
16:04 Thalasleep [thalass@Nightstar-b95c25b4.bigpond.net.au] has quit [[NS] Quit: acshully. shutdown. ]
16:37 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Connection reset by peer]
16:37 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
16:40
<@RobinStamer>
syksleep: thanks
16:47 Derakon[AFK] is now known as Derakon
18:01 RobinStamer is now known as Vasi
18:53 Kindamoody|out is now known as Kindamoody
19:02
< ErikMesoy>
What should I read on Label vs. Value of a text field? (specifically, wx.TextCtrl) They seem to be functioning identically at the moment, but the docs are poor
19:13 ^Xires is now known as Xires
19:15
<&ToxicFrog>
Without looking at the docs, I would have assumed that "label" is, well, a label automatically placed outside the field, and Value is the contents.
19:15
<&Derakon>
IIRC, Label is a more generic property for controls in general, while Value is always the user-input value.
19:15
<&Derakon>
I can't recall if TextCtrls can have separate attached labels or if you have to do that manually.
19:20
< ErikMesoy>
Right now I'm calling the same wx.TextCtrl in separate functions with SetValue("foo") and SetValue("bar") tied to different buttons. They appear to be operating on the same thing.
19:21
< ErikMesoy>
Either button will replace the text shown.
19:21
< ErikMesoy>
err, SetLabel("bar")
19:22
< ErikMesoy>
Both leave it user-editable after setting it.
19:47 Kindamoody is now known as Kindamoody[zZz]
19:50 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
19:53 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
19:53 mode/#code [+o Courage] by ChanServ
20:32 Omega is now known as Alek
20:32 mode/#code [+o Alek] by ChanServ
20:32 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
20:32 mode/#code [+o celticminstrel] by ChanServ
21:27 Reiv [NSwebIRC@A3BDC3.5BE3EC.B8847E.5ADB9D] has quit [Ping timeout: 121 seconds]
21:30
<@Azash>
celticminstrel: There you are~
21:30
<@Azash>
My suggestion was just having a basic user system to allow for persistent sessions
21:32
<@celticminstrel>
Like a way to save your progress?
21:33
< ErikMesoy>
Oh, THAT'S why it wasn't working. I had the button, and I had the method, and I had the correct parameters, and I'd forgotten to associate the button with the method.
21:34
<@Azash>
Yeah
21:34
< ErikMesoy>
celticminstrel: still rogueliking?
21:34
<@celticminstrel>
Yeah, unfortunately.
21:34
<@celticminstrel>
(Unfortunate because it's being done in place of homework. >_> )
21:34
< ErikMesoy>
Curse homework
21:34 * Azash pats; knows the feeling
21:35
< ErikMesoy>
Rent others to do homework for you :p
21:35
<@celticminstrel>
So the reason I don't yet have saving is because I couldn't simply save JSON to local storage.
21:35
<@celticminstrel>
Which in turn is because of functions.
21:36
<@celticminstrel>
Functions are not JSON-able, so what I have to do (and have been working on a bit already) is eliminate any dynamic assignment of functions.
21:36
<@celticminstrel>
If possible, anyway.
21:37
<@Azash>
Ah
21:37
<@Azash>
Hmhmhm
21:37
<@celticminstrel>
I've dealt with the ones on items, and AI is probably the next to examine. I may not be able to eliminate those though.
21:37
<@celticminstrel>
(There's also a self-referential structure that JSON cannot handle, but I think that would be relatively simple to deal with.)
21:38 * Azash nods
21:38 * ErikMesoy evades the problem of Value vs. Label in his text area by instead using AppendText() and Clear(), so that he doesn't have to know which is which. :D
21:38
<@Azash>
Glad to see my idea was already thought of :P
21:38
<@Azash>
ErikMesoy: With no idea about context, I'd imagine label is the ID and value is the, well, value associated with it
21:38
< ErikMesoy>
celticminstrel: can you go via intermediate variables?
21:38
<@celticminstrel>
I would've done it much earlier if I hadn't already had these function issues. :P
21:38
<@celticminstrel>
ErikMesoy: Hm?
21:39
< ErikMesoy>
Azash: the funny thing is, Value and Label appear to edit the *same thing* in wx.TextCtrl
21:39
< ErikMesoy>
celticminstrel: use dynamic assignment of some kind of "key" instead of functions
21:39
< ErikMesoy>
use lookup table of keys to functions
21:39
<@celticminstrel>
Ah.
21:39
<@celticminstrel>
That could almost solve it.
21:40
<@celticminstrel>
However some of the AIs rely on closures.
21:40
<@celticminstrel>
Like the confused AI.
21:40
<@celticminstrel>
It might be easy to get around that; not sure.
21:40 * Azash rolls into bed
21:40
<@Azash>
Oh and celtic
21:41
<@celticminstrel>
Yeah?
21:41
<@Azash>
If you want you can get a user on my box for IRC and so
21:41
< ErikMesoy>
closures are where the function comes with some local variables, right?
21:41
<@celticminstrel>
?
21:41
<@celticminstrel>
ErikMesoy: Yes.
21:41
<@celticminstrel>
Local variables from the enclosing scope.
21:41
< ErikMesoy>
Use an array?
21:42
<@celticminstrel>
Depends on how I used the closure... let me check quickly...
21:42
< ErikMesoy>
Instead of assigning a function, assign an array; the first element in the array is a key for the lookup table, the rest of the array is local variables for use by the function
21:42
< ErikMesoy>
Then pass the array around and get/put stuff in it
21:42
< ErikMesoy>
(This is starting to sound like a kludge >_>)
21:42
<@celticminstrel>
Oh, the only thing needed from the closure is the AI to revert back to when the confusion wears off.
21:42
<@celticminstrel>
Azash: I'm not sure what you meant there.
21:44
<@celticminstrel>
What I have is a function that returns the function to be used as the AI.
21:44
<@celticminstrel>
And the closure is just the parameters to that outer function.
21:45
<@celticminstrel>
The enlightened AI requires a few more things to be saved. (Enlightened means they can cast low-level spells for a short time.)
21:46
<@celticminstrel>
The only other one is distracted, which is almost the same as confused.
21:46 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
21:46 mode/#code [+qo Vornicus Vornicus] by ChanServ
21:47
<@celticminstrel>
And apart from these status effects, the only time AI is changed is when a missile monster runs out of missiles.
21:47 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
21:48
<@celticminstrel>
Hm, I suppose the array idea would work...
21:50
<~Vornicus>
When you say "the AI is changed" what do you mean?
21:50
<@celticminstrel>
I mean the function called for the creature to take a turn is replaced with a different function.
21:52
<@celticminstrel>
ie, "this.takeTurn = newAI"
21:52
<@celticminstrel>
Well, not necessarily "this", but anyway.
21:54
<~Vornicus>
aha
21:54
<@celticminstrel>
This makes saving into JSON a nontrivial task.
21:54
<~Vornicus>
Idunno, seems weird to me; if an archer enemy walks over his own arrows he should start shooting again?
21:55
<~Vornicus>
celmin: then make an object full of AI functions and just name the AI he's got
21:56
<@celticminstrel>
That's true. However, no monsters currently pick up items. And yes, I was going to do something along those lines, just as soon as I decide how to deal with the AIs that need to save certain data to be restored when the status effect wears off.
22:20
< ErikMesoy>
clearly the archer enemy is firing returning arrows
22:21 ErikMesoy is now known as ErikMesoy|sleep
22:22
<@celticminstrel>
Heh, nah.
22:23
<@celticminstrel>
Actually there are no archers.
22:23
<@celticminstrel>
Only thrown weapons like darts and rocks and shuriken and stuff.
22:27 Vasi is now known as RobinStamer
22:29 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [Connection reset by peer]
22:30 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
22:30 mode/#code [+o celticminstrel] by ChanServ
23:18 himi [fow035@D741F1.243F35.CADC30.81D435] has joined #code
23:18 mode/#code [+o himi] by ChanServ
23:54 Reiv [NSwebIRC@A3BDC3.5BE3EC.B8847E.5ADB9D] has joined #code
23:54 mode/#code [+o Reiv] by ChanServ
--- Log closed Mon Feb 11 00:00:12 2013
code logs -> 2013 -> Sun, 10 Feb 2013< code.20130209.log - code.20130211.log >

[ Latest log file ]