code logs -> 2012 -> Fri, 24 Feb 2012< code.20120223.log - code.20120225.log >
--- Log opened Fri Feb 24 00:00:13 2012
00:02 You're now known as TheWatcher[zZzZ]
01:28 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [[NS] Quit: ]
02:10 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
02:15 Kindamoody[zZz] is now known as Kindamoody
02:16 Attilla [Obsolete@Nightstar-7627bdfe.as43234.net] has quit [Ping timeout: 121 seconds]
02:20 * ToxicFrog implements game boxes, and very basic Go support
02:35 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
02:35 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
02:35 mode/#code [+ao Derakon Derakon] by ChanServ
02:39 Janus [NSwebIRC@Nightstar-27138e8c.res.rr.com] has joined #code
02:41 * Janus comes to know trivial success! http://dl.dropbox.com/u/3108480/vectorfieldminorprogressIguess.png
02:42
< Janus>
Now I just need to figure out a way to let the wind drain out of the sides. It kinda does a weird... ripple into the edge, then ripples right back. Like it's in a box
02:42
<@Alek>
whoa.
02:42
<@Alek>
a png isn't supposed to be animated.
02:43
<~Vornicus>
Holy shit, Janus
02:43
<&McMartin>
What are you viewing it with? I get no animation here.
02:43
< Janus>
Howdy!
02:44
< Janus>
It shouldn't be animated. If it is, I'd like to see it
02:44
< Namegduf>
It's causing an optical illusion for me.
02:44
< Namegduf>
If I state at the centre, it starts rippling.
02:45
<@Alek>
yup, optical illusion.
02:46
<@Alek>
and a 3d-ish effect if you unfocus.
02:47
<~Vornicus>
Janus: is the magnitude of the vectors being considered there?
02:48 * Janus takes off glasses. Oh hey it looks like a ... well, 3D thing!
02:49
< Janus>
I thought it was. I might be wrong though. The four sides all have their own vector, which doesn't change. It let's me bleed in wind from one side, but that might not be a good way to do it I'm guessing.
02:51
< Janus>
Every pass, a vector has it's four neighbors (or three and the one side if it's on the edge, or two neighbors, two edges if it's a corner) added onto it, and then it's divided by the combined magnitude.
02:52
< Janus>
And that's... all it is. Definitely isn't how wind works but it seems convincing somehow
02:55
< Janus>
*whoops, not the combined magnitude. Just... just the number 5. Pfft!
02:58 Kindamoody is now known as Kindamoody|afk
03:19
< Janus>
Okay, this time it actually does move! http://dl.dropbox.com/u/3108480/greenwindything.gif
03:20
<&McMartin>
That is pretty cool
03:21
< Janus>
Thanks! Now I just need to convince it that there's no box around it
03:22
<&McMartin>
I'm wondering if you're actually modelling not wind but a spring
03:24 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has quit [Connection closed]
03:29
< Janus>
I might be! The only rule they abide by, is taking a group of 5 vectors, and averaging them together over time. The only difference between the wall, and a vector in the middle, is that the wall's doesn't change from 0, 0. ... maybe that's it. ... that IS it.
03:35
<~Vornicus>
Yeah, that would do it - if you're reading from the wall then it's a "still air" input
03:39 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
04:08 * Derakon eyes the scipy dudes, wonders why there's no 64-bit scipy for OSX that doesn't use the built-in Python.
04:15 * Janus read "spicy dudes". Never quite recovered
04:16 * Vornicus pokes vaguely at MS Access. Want to build a form that lets him select things by name instead of ID.
04:19 * Derakon tries to figure out the proper way in Python to generate the sequence (0, 0), (0, 1), (0, 2), ..., (1, 0), (1, 1), (1, 2), ...
04:19
<&Derakon>
I mean, I could use a doubly-nested loop, but bah.
04:21
<@ToxicFrog>
[(x,y) for x in range(0,3) for y in range(0,3)] ?
04:21
<&Derakon>
Basically the same as nested loops, except you can't use xrange.
04:22
<@ToxicFrog>
Ok, in that case I don't understand what your underlying objection is
04:22
<&Derakon>
I want a one-liner generator function to spit out the sequence.
04:22
<~Vornicus>
TF gave you one.
04:23
<&Derakon>
It's not a generator -- it'd make all the points first and then iterate through them.
04:23
<~Vornicus>
OKay fine, ((x,y) for x in range(3) for y in range(3))
04:23
<&Derakon>
That's purely a stylistic problem for the scale I'm operating on at the moment, mind you.
04:24
<&Derakon>
Hunh, okay.
04:24
<&Derakon>
Thanks.
04:24
<~Vornicus>
You can multiloop in genexps and other comprehensions like that.
04:44
<&McMartin>
Holy shit when did Python add generator comprehensions
04:44 * McMartin actually is the :black101: emoticon right now
04:46
<~Vornicus>
A teeth-gritting ax-waver?
04:46
<&McMartin>
Yes.
04:46
<~Vornicus>
McM: um
04:47
<~Vornicus>
2.1 I think?
04:47
<&McMartin>
Man, I've been missing out
04:47
<&McMartin>
That is zorking jenth.
04:47 * McMartin is a fan of lazy evaluation and list comprehension abuse!
04:47
<~Vornicus>
Yeah, use () instead of [] and you get an iterator instead of a list
04:48
<&Derakon>
Okay, that's about 45 minutes from start to implementing a simple program that shows 100 varicolored squares flying around a black field.
04:48
<~Vornicus>
in 2.7 and py3 use {} instead and you get a set or dict
04:48
<&McMartin>
Yeah, I knew dict comprehensions were new
04:48
<&McMartin>
(and also zorking jenth)
04:48
<~Vornicus>
and python.org is down so I can't actually check version history
04:48
<&Derakon>
Now to try to make them repel each other.
04:49
<~Vornicus>
it was 2.1 or 2.2 though, and I've been using them forever
04:49
<&McMartin>
This means you should be able to do the horrifying Haskell tricks where you define a recurrence in terms of two infinite lists that refer to one another
04:49 * Derakon tries to think of the best way to write "sum of vectors from this point to all other points in this array".
04:50
<~Vornicus>
McM: though I don't think you can index into a standard genexp.
04:50
<&McMartin>
they're easy to force though
04:51
<&McMartin>
[x for x in genexp]
04:51
<&McMartin>
Do not attempt on infinite generators
04:51
<&Derakon>
Heh.
04:51
<~Vornicus>
Der: {a: sum(b - a for b in points) for a in points}
04:51
<&McMartin>
Professional software developer, closed form, lazy evaluation
04:52
<~Vornicus>
GIves you a dictionary of points to summed distances.
04:52
<&McMartin>
Oh wait
04:52
<&Derakon>
That works, Vorn.
04:52
<&McMartin>
The genexps won't have automemoization.
04:53
<~Vornicus>
No they won't.
04:53
<&McMartin>
That means that you won't get the dynamic programming answer, but the exptime one.
04:53
<&Derakon>
Though I'm in 2.6 so I can't actually use a comprehension like that.
04:53
<&McMartin>
Boo.
04:53
<~Vornicus>
dict((a, sum(b - a for b in points)) for a in points)
04:53
<&Derakon>
Heh.
04:54
<~Vornicus>
No problem~
04:55
<&Derakon>
Actually what I want is numpy.sum(b - a, axis = 0) for b in points, I think.
04:55
<~Vornicus>
I should really figure out what I'm doing with numpy
04:56
<&Derakon>
It's handy.
04:56
<~Vornicus>
I suspect so!
04:56
<~Vornicus>
I've been building my numerical tools by hand, but I almost have the chops to do that.
04:58
<&Derakon>
...right, this function appears to actually be "everything gets attracted/repelled from the y = x line". Whups~
04:58
<&Derakon>
Also, to work properly I need to handle the fact that the universe is toroidal.
04:58
<~Vornicus>
Whups
05:00
<&Derakon>
And wow is there a big difference when I do a nested loop over all points in Python.
05:00
<&Derakon>
Goes from perfectly smooth to chugging along.
05:06 iospace [Alexandria@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
05:13 iospace [Alexandria@Nightstar-635d16fc.org] has joined #code
05:14 * Vornicus gets the first half of his access trick working. Well, less than half, the second one is a little crazy.
05:25 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:25 * Vornicus then gets ADD, discovers http://oeis.org/A050216
05:34
<~Vornicus>
also, hahaha
05:35
<~Vornicus>
I googled "define jenth" and apparently it recognizes someone's Gostak notes as a dictionary
05:36 mode/#code [+o iospace] by ChanServ
05:48 Kindamoody|afk is now known as Kindamoody
06:10
< Eri>
Yup. Installed Ubuntu 11, with the Unity interface.
06:10
< Eri>
Half an hour later, and I'm installing something else
06:18
< maoranma>
Or just disable the Unity interface
06:19
< maoranma>
I have a Linux class next quarter, using Fedora and Red Hat
06:29
< froztbyte>
that's....erf.
06:29
< froztbyte>
maoranma: good luck.
06:30
<&McMartin>
Arghbargle
06:30
<&McMartin>
My desktop keeps overheating.
06:30
<&McMartin>
Gonna have to go get it fixed this weekend.
06:30
<&McMartin>
WIth luck I can get it up running enough first to copy off all my tax info. >_<
06:30 eckse [eckse@Nightstar-086443b9.dsl.sentex.ca] has quit [Client closed the connection]
06:41 Derakon is now known as Derakon[AFK]
07:00 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
07:01 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
07:08 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
07:09 iospace is now known as iosleep
07:12 Kindamoody is now known as Kindamoody|breakfast
07:17 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
07:34 Kindamoody|breakfast is now known as Kindamoody
08:28 Janus [NSwebIRC@Nightstar-27138e8c.res.rr.com] has quit [[NS] Quit: Page closed]
08:33 You're now known as TheWatcher
08:53 Kindamoody is now known as Kindamoody|out
09:01 Attilla [Obsolete@Nightstar-7627bdfe.as43234.net] has joined #code
09:13 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Client closed the connection]
09:37 Lowpass is now known as Tarinaky
09:39 * thalass eyes python
09:40
< thalass>
ok. I have two copies of my little python thingy. The main .py file imports some info from guts.py. On my phone this works fine. On my computer it throws up 'cannot import name B'.
09:47 * thalass facepalm
09:48
< thalass>
i'm an idiot. An empty folder named the same as the .py file i want seems to cause confusion. >.<
09:52 You're now known as TheWatcher[afk]
10:20
<@jerith>
Yeah, that would do it.
10:43 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
12:11 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
12:24 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
12:36 Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds]
12:38 Tamber [tamber@furryhelix.co.uk] has joined #code
12:38 mode/#code [+o Tamber] by ChanServ
14:21
<~Vornicus>
yeah. python import can treat folders as packages; it's probably going "oh a folder! it's a package! let's... uh... no this isn't right, um, I give up."
14:48 Kindamoody|out is now known as Kindamoody
15:00
<~Vornicus>
There. Access database made.
15:00
<~Vornicus>
That was actually a lot easier than I though. Thank you, Combo Box Wizard!
15:06
<@jerith>
It's only a package if the directory contains __init__.py.
15:06
<@jerith>
But it's probably finding the dir, looking for __init__.py, not finding it, going hom.
15:06
<@jerith>
*home
15:08
<~Vornicus>
That.
15:54
< Tarinaky>
Fuck the group project.
15:57
< gnolam>
?
15:59
< Tarinaky>
First year group project.
16:00
< Tarinaky>
I hold contempt for my group.
16:45 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
16:54
<@jerith>
Tarinaky: This is a common complaint.
16:54
<@jerith>
What, exactly, elicits this contempt in your case?
17:00
< gnolam>
When you're not being plagued by its geometry bugs, Sketchup is a really nice program to work with.
17:02
< Tarinaky>
People complaining about my code style/method names instead of actually writing some god damn code.
17:03
< Tarinaky>
And I mean fully unironically complaining about me instinctively defaulting to foo_bar() style method names instead of the more Java-ish fooBar()
17:03
< Tarinaky>
Also complaining that I abbreviated link to lnk in the names for a family of methods.
17:03
< Tarinaky>
General small minded losing sight of the point >.>
17:04
< Tarinaky>
I'd mind less if they were actually committing/contributing.
17:04
< Tarinaky>
Instead of just complaining.
17:06
< Tarinaky>
But if all they're going to contribute to the project is telling me that I need to change things that don't -really- need changing then they can fuck off.
17:07
< Tarinaky>
Tell me I'm wrong?
17:09 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
17:09 mode/#code [+o Syloqs_AFH] by ChanServ
17:10 Syloqs_AFH is now known as Syloqs-AFH
17:15
<@ToxicFrog>
Tarinaky: you're wrong WRT to code style (disemvoweling your names is a stupid idea that should have died once variable name limits were no longer a thing, and in general you should adopt the code style of the project/course/language you're working in unless you have a compelling reason not to)
17:15
<@ToxicFrog>
That said, if all they're doing is complaining about your code style and not actually doing anything useful, they can fuck right off.
17:16
<@ToxicFrog>
If they care that much about it they can write some properly styled code as a counterpoint.
17:17
< Tarinaky>
I intended to talk and settle on a code style at the first meeting.
17:17
< Tarinaky>
But nobody showed up.,
17:21
<@ToxicFrog>
Document this thouroughly so that their laziness and incompetence doesn't hurt your grade, press onwards.
17:22
< Tarinaky>
Ofc.
17:34 Attilla_ [Obsolete@FBC920.8C10FA.E7FDC7.D69C73] has joined #code
17:34 Attilla [Obsolete@Nightstar-7627bdfe.as43234.net] has quit [Ping timeout: 121 seconds]
17:47 * Tarinaky blinks.
17:48
< Tarinaky>
Eclipse is giving me permission errors (on Windows) when I try to update or reinstall it.
17:49
< Tarinaky>
Also: Something seems to have decided to queue up lots of disk activity.
18:00
< Tarinaky>
Any idea how I can see what process is trying to read or write to disk?
18:00 maoranma [maoranma@D5CC77.617194.D31872.BA8A50] has quit [Ping timeout: 121 seconds]
18:01 Attilla_ is now known as Attilla
18:07 Kindamoody is now known as Kindamoody[zZz]
18:35
<@ToxicFrog>
Tarinaky: open task manager, enable the various "disk read/write/other (bytes)" columns, see which ones are changing quickly.
18:39
< Tarinaky>
How do I enable columns?
18:39
< Tarinaky>
Oh wait
18:39
< Tarinaky>
Derp
18:40
< Tarinaky>
There's IO but not Disk
18:42
< Tarinaky>
agent.exe
18:42
< Tarinaky>
It won't let me kill it.
18:57
<@ToxicFrog>
What is agent.exe? what's the full path to it?
19:13 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has joined #code
19:13 mode/#code [+o Vash] by ChanServ
19:17
<~Vornicus>
Oh. THe tab order is even more sensible than that. Yay!
19:31 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
19:45 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
19:48 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
19:48 mode/#code [+o himi] by ChanServ
19:54 maoranma [maoranma@D5CC77.617194.D31872.BA8A50] has joined #code
19:56
< maoranma>
GGRRRRR
19:56
< maoranma>
DUUUUSST
19:56
< maoranma>
UNDER SCREEEN GRRAAAH
19:56
< maoranma>
I don't even know how it got where it is
19:57
< maoranma>
I opened the panel, and there's this white plastic defuser thingie, and it's behind that against the screen
19:57 * maoranma gibbers madly
20:53 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
21:02 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
21:04
< ShellNinja>
maoranma: Once, I got insects under the screen.
21:29 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
21:44 maoranma [maoranma@D5CC77.617194.D31872.BA8A50] has quit [Ping timeout: 121 seconds]
21:58 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
22:25 eckse [eckse@Nightstar-086443b9.dsl.sentex.ca] has joined #code
22:25 mode/#code [+o eckse] by ChanServ
22:44 You're now known as TheWatcher
22:53 * Vornicus pokes at database queries, tries to figure out how to make this one.
22:55 * TheWatcher thinks it is a shame that SQL uses * for wildcard column selection, it means you can't do "SELECT ALL THE THINGS FROM ..."
22:55
<~Vornicus>
I've got, well, I've got Spiral Knights crafting: you take some materials, and you craft a weapon. Then you can take that weapon and more materials and craft a better weapon. What I want to know is, how much materials, all told, do you need to craft that better weapon?
--- Log closed Sat Feb 25 00:00:42 2012
code logs -> 2012 -> Fri, 24 Feb 2012< code.20120223.log - code.20120225.log >

[ Latest log file ]