code logs -> 2012 -> Wed, 21 Mar 2012< code.20120320.log - code.20120322.log >
--- Log opened Wed Mar 21 00:00:40 2012
01:14 Kindamoody[zZz] is now known as Kindamoody
01:16 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has joined #code
01:16 mode/#code [+o Vash] by ChanServ
01:27 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
01:27 mode/#code [+o himi] by ChanServ
01:32 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Client closed the connection]
01:40 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
01:40 mode/#code [+o Syloqs_AFH] by ChanServ
01:41 Syloqs_AFH is now known as Syloqs-AFH
02:30 Attilla [Obsolete@Nightstar-aa0083ba.threembb.co.uk] has quit [Ping timeout: 121 seconds]
02:36 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection closed]
02:43 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
02:43 mode/#code [+o Syloqs_AFH] by ChanServ
02:44 Syloqs_AFH is now known as Syloqs-AFH
03:01 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Client closed the connection]
03:08 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
03:08 mode/#code [+o Syloqs_AFH] by ChanServ
03:09 Syloqs_AFH is now known as Syloqs-AFH
03:15
< Eri>
Hmm, grand
03:15
< Eri>
Trying to learn how to write stuff for a GNU Radio application.
03:15
< Eri>
I can't even figure out how to get the examples in the documentation to run
03:17
< Eri>
Doesn't help that I don't know how to program in pythin, but I guess that's going to change pretty fast
03:17
< Eri>
*python
03:18
<&McMartin>
Python's pretty easy to get off the ground in
03:19
< Eri>
Yeah, I poked around with it a couple years back, but I didn't really have the time to pick it up.
03:19
<&McMartin>
The tutorials at python.org are still very solid
03:20 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
03:28 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Ping timeout: 121 seconds]
03:34
<~Vornicus>
McM: your choice of words amuses.
03:34
<~Vornicus>
http://xkcd.com/353/ thus
03:35
<&McMartin>
Hee
03:35
<&McMartin>
Yeah, screw perl
03:35
<&McMartin>
/Everybody stand back/ aside
03:41 * Vornicus is wearing his Everybody Stand Back shirt today actually
03:42
<&McMartin>
re.match("Everybody stand back") doesn't quite have the same ring to it
03:55
< celticminstrel>
That's one of the things I like about JavaScript.
03:58
<~Vornicus>
regex literals are nice when you're working in a situation where there's ridiculous amounts of text processing - JS falls naturally into that a lot.
03:59
<&Derakon>
Perl was pretty much designed for text processing.
04:03
<~Vornicus>
that said I cannot for the life of me figure out how a grammar with regex literals actually works
04:05
<~Vornicus>
(I had this same issue with POV-Ray, where there's vector literals like <3,4,5>
04:06
< Eri>
Hmm. What's the difference between export PATH=${PATH}:~/foo and export PATH =~/foo:$PATH ? Aside from the obvious "One's on the left, one's on the right"
04:06
< Eri>
Are they functionally identical?
04:06
< Eri>
I'm not seeing a lot in the help file
04:07
< Eri>
Oh, hey, there's an info file for it
04:07
<~Vornicus>
Search order
04:07
<&Derakon>
Yeah, the list is in priority order.
04:07
<&Derakon>
So in the former, ~/foo will be searched last and thus things in it won't pre-empty executables with the same name located elsewhere in $PATH.
04:07
<&Derakon>
Er, pre-empt.
04:08
<&Derakon>
Stupid fingers auto-completing common patterns.
04:08
<~Vornicus>
Thus if you have PATH being ...:/usr/bin:/usr/share/bin:... and you have /usr/bin/python and /usr/share/bin/python, the first one will be the result of which python, and thus the one used by default.
04:08
<~Vornicus>
(yes this bit me in the ass)
04:09
<&Derakon>
This is why the "which" program is your friend.
04:09
<&Derakon>
"which python" will give you the path of the python you are actually running.
04:10
< Eri>
Oh
04:10
< Eri>
That's bad
04:10
< Eri>
I'm using usr/bin/python, when I just set PYTHONPATH to /usr/local/lib.python2.7/something or other
04:11 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
04:11
< Eri>
That was a slash there, after lib.
04:11 * Eri hmms.
04:12
< Eri>
Maybe I'll just gloss over this step, for now
04:12
< Eri>
Actually, wait, that makes sense, I think
04:12
< Eri>
Python itself is a binary located in usr/bin
04:13
< Eri>
The working directory for python would be at $PYTHONPATH, which is what I supplied up there
04:24 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
04:24 mode/#code [+o himi] by ChanServ
04:31 Kindamoody is now known as Kindamoody|afk
04:36 * ShellNinja has found a bug in the Backtrack USB installation, which causes CORE DUMPED when trying to install some packages.
04:37
< ShellNinja>
I am displeased. It is reproducible.
04:48 eckse [eckse@Nightstar-4300ba27.dsl.sentex.ca] has quit [Client closed the connection]
04:49 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
04:53
< Eri>
Ffff, trying to figure out what I was doing for the past hour or so. Missed one line at the very top of this tutorial where the guy mentioned he's got a tarball with all the files I need
04:53
< Eri>
I was wondering just where these makefiles were supposed to be coming from
04:58 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
05:03 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:11 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
05:11 mode/#code [+o himi] by ChanServ
05:13 Kindamoody|afk is now known as Kindamoody
05:43 Derakon is now known as Derakon[AFK]
05:45
< Eri>
Well, I guess I learned something today
05:45
< Eri>
There's not a lot of point in trying to use make, when you haven't used ./configure
06:48 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
07:01 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
07:01 mode/#code [+o himi] by ChanServ
07:40 Kindamoody is now known as Kindamoody|afk
07:56 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
08:10 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
08:10 mode/#code [+o himi] by ChanServ
08:17 * TheWatcher eyes students
08:18
<@TheWatcher>
... "PHP Warning: include_once(mailSettings.php): failed to open stream: No such file or directory in ....." "Any idea what could cause this?"
08:19 * TheWatcher resists the urge to reply with "Obviously, the fairies stole the mailSettings.php file, because you obviously wouldn't be dumb enough to have not followed the instructions and thus fail to have created the mailSettings.php file."
08:29 Attilla [Obsolete@Nightstar-76beb3a3.as43234.net] has joined #code
08:34 Attilla [Obsolete@Nightstar-76beb3a3.as43234.net] has quit [Ping timeout: 121 seconds]
08:37
<@jerith>
My standard response to that kind of thing is to ask them to read it aloud, slowly, and listen carefully while they do it.
09:01 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
09:12 Kindamoody|afk is now known as Kindamoody
09:14 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
09:14 mode/#code [+o himi] by ChanServ
09:15 Attilla [Obsolete@Nightstar-76beb3a3.as43234.net] has joined #code
09:21 Kindamoody is now known as Kindamoody|out
09:40 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
09:54 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
09:54 mode/#code [+o himi] by ChanServ
10:05
<@TheWatcher>
Gods damn, now I hate dealing with applets without breaking strict
10:07 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
11:05 Attilla_ [Obsolete@Nightstar-c1dcd40d.threembb.co.uk] has joined #code
11:06 Reiver is now known as Orthia
11:06 Attilla [Obsolete@Nightstar-76beb3a3.as43234.net] has quit [Ping timeout: 121 seconds]
11:35 * TheWatcher arghs, hairpulls at trying to get applets to work with <object>
11:36
<@TheWatcher>
Usless fucking browsers, incompetent sodding coders, fucking ridiculous mess.
11:38
< RichyB>
Are you -deliberately- rediscovering why the entire world ditched Java applets in favour of using JavaScript on its own, or is something forcing you to do that?
11:38
<@TheWatcher>
If I had any choice whatsoever in the matter, I'd have java thrown into a black hole.
11:39
<@TheWatcher>
As it is, I don't - this java course has java applets in it to demonstrate stuff
11:39
< RichyB>
:(
11:39
< RichyB>
Can you target only one browser?
11:40
<@TheWatcher>
And I fucking refuse to stoop to <applet>, and javascript solutions to replace markers are less than suboptimal because of other things in the way the pages work.
11:41
<@TheWatcher>
No. I can say "Sod off if you're using IE <8", but otherwise I need at least Firefox, IE, Opera, and possibly Safari.
11:43
<@TheWatcher>
I can get it to work using pure <object>s, provided that it has simple classes or a jar file containing classes that are not packaged, but if the classes in the jar are in a package it doesn't seem to be able to find the main class.
11:48
<@TheWatcher>
... or maybe it doesn't work in firefox
11:48
<@TheWatcher>
gods fucking damnit
12:07
<@TheWatcher>
I.. what
12:07
<@TheWatcher>
So, i get it to work. Bu closing the browser, killing the jvm, and starting it again
12:09 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Operation timed out]
12:13 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
12:18 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
12:25
< Tarinaky>
Today's wisdom from those doing robot/hardware based diss projects:
12:25
< Tarinaky>
"Gravitational filing systems are not a defacto standard."
12:27
< RichyB>
They darn tootin' well are.
12:28
< RichyB>
Conduct a survey of random teenagers' bedrooms if you need to confirm that.
12:28
< RichyB>
The floor is a good enough place for everything!
12:28
< Tarinaky>
The broken dev kits and pcbs speak otherwise.
12:28 Attilla [Obsolete@Nightstar-76beb3a3.as43234.net] has joined #code
12:30 Attilla_ [Obsolete@Nightstar-c1dcd40d.threembb.co.uk] has quit [Ping timeout: 121 seconds]
12:32
<@TheWatcher>
Tarinaky: ... woops
12:36
< Tarinaky>
Exactly.
12:36
< Tarinaky>
They're all sitting around Facebook sharing stories of how they've fucked up.
12:37
< Tarinaky>
Stories about broken PCBs and reversed polarity abound.
12:40
<@jerith>
This is why I always use a variable-input power regulator on all the devices I build.
13:00
< Tarinaky>
This still requires you to not fuck up :p
13:01
<@jerith>
Yes, but it means that once I've built it correctly, I don't need to double-check every time I plug the power in.
13:02
< Tarinaky>
Yeah. The issue, I believe, is that he stuffed up his design.
13:03
< Tarinaky>
I'm kindof sad to hear about Game going under.
13:03
< Tarinaky>
I have fond memories of buying the 3 for ?10 games. That's how I got hooked on SMAC.
13:04 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
13:09
<@jerith>
Game going under?
13:13
< Tarinaky>
They're a chain of stores.
13:13
< Tarinaky>
They bought EB when EB went under iirc.
13:26
< Tarinaky>
I should note: They've only gone into administration. They haven't -actually- closed.
13:26
< Tarinaky>
But that's not good for the brand.
13:26
< Tarinaky>
Even if the stores remain.
13:31 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
13:32
<@TheWatcher>
They can't really compete with play.com and amazon :/
13:33
< Tarinaky>
Or ASDA/Sainsburys.
13:33
< Tarinaky>
It's an artifact of an older, simpler, time.
13:33
< Tarinaky>
:p
13:34
< Tarinaky>
How does it feel to have your youth slide into obsolesence!
13:34 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
13:42 * TheWatcher pokes at github, wonders why it isn't picking up his tags
13:45 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
13:45 mode/#code [+o himi] by ChanServ
13:49 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
13:56 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:09 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
14:09 mode/#code [+o himi] by ChanServ
14:10
<@ToxicFrog>
TheWatcher: you may have to push them explicitly
14:11
<@ToxicFrog>
Tarinaky: GAME is finally going under? Yess
14:11
<@TheWatcher>
I know, it wasn't working. Deleted the repo, tried again and it worked
14:11
<@TheWatcher>
I blame the phase of the moon.
14:14
< celticminstrel>
GAME?
14:14
<@ToxicFrog>
UK video game retailer.
14:17
< Eri>
...That's something strange. The bottom of the top of this header for a file talks about how I should have gotten a copy of the GNU General Public License with the program
14:17
<@ToxicFrog>
Noteworthy for fighting tooth and nail against digital distribution; rumoured (with some basis) to be behind a number of games either not appearing on UK Steam, or doing so well after the release date elsewhere.
14:18
< Eri>
What's strange is that it requests that you mail the free software foundation if you didn't
14:18
< Eri>
Mail
14:18
<@ToxicFrog>
How old is this program?
14:18
< Eri>
Like, through the post. It's got, like, an address and everything
14:18
< Eri>
2004
14:18
<@ToxicFrog>
As in "first written 2004" or as in "last updated 2004"?
14:19
< Eri>
Probably first written. That's the earliest date in the copyright notice
14:19 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:19
< Eri>
It also talks about GPL2
14:19
< Eri>
So, not too old
14:19
<@TheWatcher>
I notes that GPLv2 has the physical address in the license, GPLv3 introduced the URL
14:20
<@TheWatcher>
-s
14:20
< Eri>
That would do it. Still strange that they would include it
14:20
<@TheWatcher>
So /anything/ under GPLv2 is likely to have the physical address in there, if they just copied the guidelines
14:21
< Eri>
I guess GPLv2 was, like, early 90's, so it makes sense, sort of
14:21
<@TheWatcher>
June 91, so yeah.
14:32 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
14:32 mode/#code [+o himi] by ChanServ
14:37 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:37 maoranma [maoranma@Nightstar-333d981b.pools.spcsdns.net] has joined #code
14:50 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
14:50 mode/#code [+o himi] by ChanServ
15:11 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has joined #code
15:11 mode/#code [+o Vash] by ChanServ
16:14 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:23 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
16:28 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:28 mode/#code [+o himi] by ChanServ
16:46
< Tarinaky>
I'm not sure if I should be concerned that my only unit test right now is "Does ipython2 load it without throwing an exception?"
16:47 * TheWatcher finally gets this applet extension to work in opera, firefox, IE8+, and safari, deems that Enough Damnit
16:47
< celticminstrel>
What about Chrome? :P
16:48 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:50
< Tarinaky>
What about Lynx in a screen session connected to by ssh on a bbs?
16:50 * Tarinaky ducks
16:51
< Tarinaky>
Oh, with a modem hooked up to a commadore 64.
16:51 * Tarinaky ducks again
16:54
<@TheWatcher>
celticminstrel: yeah, I guess I should test that, too...
16:55
< celticminstrel>
XD
16:55
<@TheWatcher>
Yep!
16:55
<@TheWatcher>
Works there, too
16:56
< RichyB>
I wonder if you could hack together a VNC client for a c64
16:57
< celticminstrel>
Why "hack"?
17:00
<@ToxicFrog>
...that's really the only verb that's appropriate for something like this.
17:01
<@TheWatcher>
uVNC works on the c64
17:02 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
17:02 mode/#code [+o himi] by ChanServ
17:03
< RichyB>
Makes sense. You build an ethernet cartridge, use uIP for a TCP/IP stack and you implement a VNC client displaying to the C64's monitor.
17:03
< RichyB>
Connect to a 386 running Firefox and, rejoice. You now have a web browser displaying on a C64.
17:04
< RichyB>
Maybe you could even hide a Raspberry Pi inside a custom C64 cartridge and run webkit on that.
17:04
< RichyB>
"It's not a network client, it's an expansion board with a html accelerator!" :)
17:17 Attilla_ [Obsolete@Nightstar-76beb3a3.as43234.net] has joined #code
17:18 Attilla [Obsolete@Nightstar-76beb3a3.as43234.net] has quit [Ping timeout: 121 seconds]
17:33
< maoranma>
RichyB: My head hurts reading what
17:34
< RichyB>
maoranma, the C64 cartridges can have arbitrary electronic bunk in them, and they get mapped into the C64's address space somwhere.
17:35
< RichyB>
So you could hide a computer inside a C64 cartridge and write a program that blits from a framebuffer in some memory that you expose from the cartridge onto the C64's screen.
17:36
< celticminstrel>
Kinda like [S]NES cartridges, eh?
17:37
< RichyB>
Yeah. Pretty much all cartridges worked that way.
17:37 maoranma [maoranma@Nightstar-333d981b.pools.spcsdns.net] has quit [Ping timeout: 121 seconds]
17:37
< RichyB>
One gameboy game even had a rumble in it, I think.
17:40
< Tarinaky>
I'm not sure I should be more concerned with the fact that my only unit-test is "Does it compile"
17:40
< Tarinaky>
Or the fact that it's actually working out so far.
17:43
< celticminstrel>
Since when is "does it compile" a unit-test, anyway?
17:44
< Tarinaky>
Well, it's an automated test.
17:44
< Tarinaky>
Strictly speaking I'm not -actually- compiling.
17:44
< Tarinaky>
Since it's Python.
17:45
< RichyB>
No, you do have a compiler in Python.
17:45
< RichyB>
When you import a module in the Python interpreter, it's compiled to bytecode.
17:45
< RichyB>
You can even print (or introspect, if you're evil) Python bytecode by using the "dis" module.
17:46
< Tarinaky>
Yes, but it's not the act of compilation that finds the bugs.
17:46
< Tarinaky>
It's the execution.
17:46
< RichyB>
Yes. Your test is "does my module import cleanly?"
17:47
< Tarinaky>
"Does the corpus of my code not throw an exception when I invoke it?"
17:47
< Tarinaky>
s/throw/cause/
17:48 Attilla_ is now known as Attilla
17:58
< celticminstrel>
What's wrong with throw? :P
18:01 Kindamoody|out is now known as Kindamoody
18:04
<@ToxicFrog>
celticminstrel: "throw" implies that the code itself is raising the exception. "cause" can include exceptions raised by the runtime as a result of things the code is doing.
18:05
< celticminstrel>
Um... okay...
18:12
< Tarinaky>
Particularly since the exceptions we're talking about are mostly AttributeErrors.
18:12
< Tarinaky>
And stuff like that.
18:19 Vornucopia [NSwebIRC@C888DE.7F9621.4A1301.BBBE7B] has joined #code
18:26
<&McMartin>
TF: I'm not personally familiar with that terminology - I think it may vary by language.
18:26
<&McMartin>
Java and C++, in particular, you'll hear "if you try to access a vector out of bounds, it'll throw"
18:27
< Tarinaky>
I don't think there's a strict terminology difference.
18:28
< Tarinaky>
But since python is running through an interpretter there's a sense that it's the interpretter that's throwing the exception; not my code.
18:28
< Vornucopia>
What's the eror?
18:29
< Tarinaky>
Although I guess you can make the same argument about C++ and standard libraries.
18:29
< Tarinaky>
What error?
18:29
< Vornucopia>
"it's the interpretter that's throwing the exception"
18:29
< Vornucopia>
what excepion?
18:30
< Tarinaky>
Oh. We were talking hypothetically.
18:30
< Tarinaky>
Arguing about the distinction between 'throwing' an exception and 'causing' one.
18:31
< Tarinaky>
*causing one (to be thrown)
18:31 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
18:33
< Vornucopia>
Aha.
18:34 * Tarinaky is thinking hard about how to, sensibly, implement 'submenus'.
18:35
< Tarinaky>
Working on a three click rule. Building something is right click on builder, hilight build, left click the thing you want to build.
18:35
< Vornucopia>
submnus in what?
18:36
<@ToxicFrog>
McMartin: it's not a term of art, just a connotation.
18:36 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection closed]
18:36 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
18:37
< Tarinaky>
Vornucopia: Handrolled GUI in Pygame
18:37
< Tarinaky>
I think I've obtained a good model while walking to the toilet and back.
18:37
< Vornucopia>
Okay, so you're looking at
18:37
< Vornucopia>
You rightclick your builder, and a menu springs out of it
18:37 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection]
18:37
< Tarinaky>
Yes.
18:37 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
18:37
< Vornucopia>
and then you have several different choices in that menu, several of which have sub-choices that must be dealt with
18:38
< Vornucopia>
(be it "build" or "move" with a bunch of options or...)
18:38
< Vornucopia>
And then you choose say "build" and then another menu pops out that you pick your building out of.
18:39
< Vornucopia>
Okay, so: you need to be able to do it fast; you need to be able to do it unambiguously.
18:39
< Tarinaky>
Turn based game. It's an uncommon action rather than a common one.
18:39 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection closed]
18:39
< Tarinaky>
Because of how the mechanics work out
18:39
< Vornucopia>
Still.
18:40
< Vornucopia>
Waiting more than a half second before acting is bad.
18:40
< Vornucopia>
This is true pretty much everywhere.
18:40
< Tarinaky>
Oh, I thought you meant the act of the player.
18:40 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
18:40 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection closed]
18:40 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
18:41
< Vornucopia>
Nope. UI response times, and "hover" actions. Which by the way kind of suck. Anyway - consider the Windows start menu; when you hover over a thing, it relatively quickly opens the submenu... and then if you move diaonally into the submenu, over other choices, that submenu still has to stay open.
18:42
< Tarinaky>
Speed so far has been a non-issue.
18:42
< Vornucopia>
(the, uh, pre-vista start menu, apparently the one in vista and 7 work differently.)
18:42
< Tarinaky>
Pygame is good at that.
18:43
< Tarinaky>
Ah.
18:43
< Tarinaky>
I was going to go with when your mouse is within the collision rectangle for 'build' or the submenu the menu is open.
18:44
< Vornucopia>
Don't do that
18:44
< Tarinaky>
If the mouse is outside the build rectangle and the submenu rectangle it's closed.
18:44
< Tarinaky>
Why~
18:44 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
18:44 mode/#code [+o himi] by ChanServ
18:44
< Vornucopia>
Because if you do that, and your build button and build submenu don't together form a convex polygon, you'll get people accidentally going outside it and having the menu close.
18:45
< Tarinaky>
They will form a convex polygon.
18:45
< Tarinaky>
Why wouldn't they?
18:45
< Vornucopia>
Better would be to accept "mouse stopped" as a soft click that opens the submenu.
18:45
< Vornucopia>
Well, among other things, submenus in most GUIs don't.
18:46
< Tarinaky>
Trouble is... I don't get 'mouse stopped' events.
18:46
< Tarinaky>
I could probably implement a delay before openning/closing menus since I have a timer.
18:46
< Vornucopia>
Then you may have to generate them yourself.
18:48
< Vornucopia>
(if ou want them. you may not. Dammit this keyboard sucks)
18:49
< Vornucopia>
(but your goal here is to make sure that you cannot accidentally close the submenu while trying to get to it, under reasonable conditions.)
18:50
< Vornucopia>
(because that is The Annoyotron)
18:50
< Tarinaky>
So convex polygon and a short timer.
18:51
< Vornucopia>
Sensible - and if you click outside, ignore the timer and close the submenu anyway.
18:51
< Vornucopia>
(timer length may take some usability tuning, but somewhere in the 1/2 to 1 second range should be decent)
18:52
< Tarinaky>
1 second is far too much.
18:52
< Tarinaky>
I was thinking 500ms
18:53
< Vornucopia>
Try It Out of course. Start at 1/2s and see how it plays.
18:54
< Vornucopia>
Your timer of course triggers the moment you /leave/ the button-submenu polygon.
18:55
< Tarinaky>
Of course.
18:56
< Tarinaky>
I am undecided whether I should construct a pygame timer or just use the global one and an accumulator.
18:56
< Tarinaky>
*construct another pygame timer
18:56
< Tarinaky>
I don't think it matters.
18:57
< Vornucopia>
Pygame timers I think are built "correctly" in that two don't really take up any more actual resources than one.
18:59
< ShellNinja>
Does anyone have the link to that talk about email on youtube?
18:59
< Tarinaky>
Well, from what I remember of SDL they're just an accumulator wrapped around an assembly call to the timer on an x86
18:59
< ShellNinja>
The one where the opening is that the guy giving the talk hates email?
18:59
< Tarinaky>
*debug timer
19:00
< ShellNinja>
And then produces a whole shitload of funky business with the specification?
19:00
< gnolam>
Sure, hold on
19:00
< gnolam>
ShellNinja: http://www.youtube.com/watch?v=JENdgiAPD6c
19:00
< gnolam>
Not an easily googled title. ;)
19:00
< ShellNinja>
Thank you, comrade.
19:05 Kindamoody is now known as Kindamoody[zZz]
19:14
< froztbyte>
http://s.ynchrono.us/
19:15
< Vornucopia>
a... progress bar?
19:16
<@jerith>
Vornucopia: http://as.ynchrono.us/ is exarkun's blog.
19:16
<@jerith>
He's one of the core Twisted devs.
19:17
< Vornucopia>
I think I missed a joke here.
19:18
<@jerith>
Vornucopia: Twisted is an async evented I/O framework.
19:18
< Vornucopia>
Right, I got that
19:18
<@jerith>
He doesn't like sync blocking code.
19:19
< Vornucopia>
But I don't see what that has to do with a progress bar gif
19:19
<@jerith>
Whatever hasn't loaded yet is obviously written synchronously. ^.^
19:20
< RichyB>
FWIW, I would like to personally register a certain level of dissatisfaction with Twisted.
19:20
< froztbyte>
(I have recommended that perhaps exarkun add a nice big question mark at the bottom which can take you to a page which explains things a bit)
19:20
< froztbyte>
(for those who don't get it)
19:20
< froztbyte>
RichyB: how so?
19:20
< Vornucopia>
(I mean hell, don't you need some async stuff to have a progress bar at all, really? :P)
19:21
< RichyB>
It's designed to do URL dispatch by recursive object traversal, which sort of makes me retch.
19:21 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has left #code ["Leaving"]
19:21 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
19:21
< RichyB>
Wrong key.
19:21
<@jerith>
RichyB: twisted.web makes everyone sad.
19:22
< RichyB>
Big annoyance that's been doing my head in now is that twisted web doesn't provide a means of getting the filename for file objects in multipart-mime POST bodies
19:22
< RichyB>
I mean seriously people what the fuck it's right there in the request
19:22
< RichyB>
did y'all never have to write a thing that interacted with *files* or something?
19:23
<@jerith>
RichyB: See above about twisted.web making everyone sad.
19:24
< froztbyte>
fwiw there's a whole lot of work being done on t.w
19:24
< froztbyte>
for reasons such as the one you indicated
19:24
< froztbyte>
because there's t.w, t.w2, and some other related sadness bits
19:24
< froztbyte>
but the usual problems of manpower and time ... :)
19:26
< RichyB>
Yeah, but I don't really give a muntz. It's a pain in the arse *now*. :/
19:26
< froztbyte>
hehe
19:26
< froztbyte>
very few things aren't a bit awful /somewhere/
19:29 * Vornucopia is reminded that he wanted to make more math drills. and also to find that old list of math things you should be able to do in your head.
19:40 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
19:41
< Vornucopia>
bored.
19:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
19:53 mode/#code [+o himi] by ChanServ
20:05
< Tarinaky>
http://deviq.com/Media/Default/Article/spaghetti-code/SpaghettiCode.jpg << How I feel about my code right now.
20:05
< Tarinaky>
I know my event handling stuff is so inconsistant about what it compares the mouse cursor with :/
20:05
< Tarinaky>
And where rectangles are defined.
20:05 * Tarinaky sighs.
20:05
< Vornucopia>
I want my christmas lights to be internet capable.
20:05
<@jerith>
Vornucopia: Arduino!
20:06
< Vornucopia>
I love how there's a pat answer for that, too
20:12
<@jerith>
:-)
20:24
< Tarinaky>
Can I have a "wtf, what were you even thinking" at: https://github.com/Tarinaky/DuelFieldStars/blob/master/duelfieldstars/ui/planetd etails.py
20:24 * Tarinaky facepalms.
20:25
< Vornucopia>
What were you aiming to do in this file?
20:26
< Tarinaky>
It's just a wall of text.
20:26
< Tarinaky>
The wtf is that I'm constructing widget objects for the text.
20:26
< Tarinaky>
Instead of just, you know... just rendering it.
20:26
< Tarinaky>
This means I have a list of nested widgets.
20:26
< Vornucopia>
That is a biiig init. You should probably build these things into individual functions.
20:27
< Tarinaky>
And every thing in my code screams that it can't handle nested widgets.
20:28
< Tarinaky>
(It can't handle nested widgets because event logic needs your rectangle to coincide with your position on the screen - and draw logic needs your rectangle to coincide with your position on the parent texture - these two only coincide when the parent is the window)
20:28 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Client closed the connection]
20:28
< Tarinaky>
s/window/root/
20:28
< Tarinaky>
But yeah.
20:29
< Tarinaky>
I am a grade 1 listed muppet sometimes.
20:29 * Tarinaky sighs.
20:29
< Tarinaky>
The only thing in my defence is it works.
20:29 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
20:30
< celticminstrel>
That's always a good thing. <_<
20:35
< Tarinaky>
Also: -Why- did I add NOFACTION?
20:35
< Tarinaky>
What the merry fuck was ever wrong with None?
20:36 * Tarinaky goes calm down before he timetravels and takes an axe to past-me.
20:36
< celticminstrel>
XD
20:36
< Tarinaky>
I can see its use for suppressing errors.
20:37
< Tarinaky>
Which would be fine except failing fast is my only method of testing.
20:51 Vornucopia [NSwebIRC@C888DE.7F9621.4A1301.BBBE7B] has quit [Ping timeout: 121 seconds]
21:05 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
21:12 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
21:13 * Derakon remote desktops from computer A onto computer B, where he uses scp to transfer files to computer C, so he can then download them to computer A.
21:13
< Derakon>
Hooray.
21:13
< Derakon>
Probably a better way to do that but I can't be arsed to figure out Windows' fileshare peculiarities.
21:14 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds]
21:18 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
21:18 mode/#code [+o himi] by ChanServ
21:21
< Tarinaky>
Using email would have killed more kittens.
21:22 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
21:23
< Derakon>
And taken a lot longer, especially since I'm transferring 23MB.
21:26
< Tarinaky>
Base64 encode it, then print the string.
21:26
< Tarinaky>
Type the string in at the destination machine and decode it.
21:26
< Tarinaky>
:p
21:35 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
21:35 mode/#code [+o himi] by ChanServ
21:42 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has joined #code
21:42 mode/#code [+o Vash] by ChanServ
21:49 * Tamber peers at Tarinaky, base64s a 51MB ISO. Chuckles at 69MB of output starting with mostly AAAAAAAAAAAA.
21:51
< Tarinaky>
:)
21:53
<@Tamber>
...as I think I would, if I had to type 69MB of base64. :p
21:53
< Derakon>
Print it out, use OCR.
21:54
<@Tamber>
Fax it to the receiver (Because Legal says fax is legally equivalent to the original) in inverted colours, make *them* type it out.
21:57
< Derakon>
The receiver was me.
21:57
< Derakon>
I just wanted to get data from computer 1 to computer 2.
21:57
< Tarinaky>
And we just wanted to be dicks about it :)
22:02 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
22:03 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
22:09 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection]
22:09 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
22:58
<&McMartin>
!
22:58
<&McMartin>
Apparently there's a typeclass extension to OCaml
23:00 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
23:21 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Client closed the connection]
23:22
< Tarinaky>
https://github.com/Tarinaky/DuelFieldStars/commit/611e9fb97e72d00c5bae63fe2f641c e21a2824c2#diff-0 << Pennance for my sins.
23:24 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
23:26
<&McMartin>
I'm... not sure what's being penanced here?
23:36
< Tarinaky>
Rewriting most of an entire class to make it less of a fuck up.
23:36
< Tarinaky>
Even if slightly less so.
23:37 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
23:37 mode/#code [+o himi] by ChanServ
23:39 Derakon[AFK] is now known as Derakon
23:50 * McMartin pokes at pefile
23:54
< Eri>
Man, this is confusing. Unless i missed something, there's no useable documentation for any of the signal processing blocks for Gnu Radio
23:55
< Eri>
Which means I'm given an FFT filter, told it takes a float input and that it has a float output and float taps
23:57
<&McMartin>
Ha
23:57
<&McMartin>
http://en.wikipedia.org/wiki/Embarrassingly_parallel
23:58
<&Derakon>
You'd not heard that term before?
23:59
<&McMartin>
I had not!
23:59
<&McMartin>
Compiler technology tends to be one gigantic data hazard.
23:59
<&McMartin>
And Embarassingly Parallel problems are more or less definitionally the ones that don't need compiler technology to work~
23:59 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
--- Log closed Thu Mar 22 00:00:29 2012
code logs -> 2012 -> Wed, 21 Mar 2012< code.20120320.log - code.20120322.log >

[ Latest log file ]