code logs -> 2012 -> Sat, 10 Mar 2012< code.20120309.log - code.20120311.log >
--- Log opened Sat Mar 10 00:00:31 2012
00:15 eckse [eckse@Nightstar-86a236d5.dsl.sentex.ca] has joined #code
00:15 mode/#code [+o eckse] by ChanServ
00:16
< maoranma>
God damn I can never work on anything without Christina wanting to go do something whenever I have time to code
00:16
< maoranma>
affk
00:23 You're now known as TheWatcher[T-2]
00:26 You're now known as TheWatcher[zZzZ]
00:35 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
00:51 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
00:51 mode/#code [+o ToxicFrog] by ChanServ
00:53 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
01:34
< maoranma>
Hmm, some foam for coushoning, and this mini-ironing-board-turned-lapdesk might be a success
01:36 Derakon[AFK] is now known as Derakon
01:39
< maoranma>
I love python dictionaries
01:39
< maoranma>
They are my favorite datatype.
01:40
<&Derakon>
They're pretty handy.
01:40
<&Derakon>
Just make certain you aren't using them when you should be using a class~
01:40
< maoranma>
Well, I'm still working with pyyaml
02:00 Derakon is now known as Derakon[AFK]
02:00
<@himi>
At least python has real classes, not like perl where classes /are/ hashes
02:00 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
02:00 mode/#code [+o Syloqs_AFH] by ChanServ
02:01
< maoranma>
^ Lamer
02:01 Syloqs_AFH is now known as Syloqs-AFH
02:02
< maoranma>
Still lame
02:03 Kindamoody[zZz] is now known as Kindamoody
02:04 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Client closed the connection]
02:08
<@Alek>
still lame, only nobody can see. XD
02:17 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
02:17 mode/#code [+o Syloqs_AFH] by ChanServ
02:18 Syloqs_AFH is now known as Syloqs-AFH
02:26 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
02:26
< maoranma>
Hmm
02:27
< maoranma>
I want to check if a string is in in a list AND not in another list...
02:27
<@Vash>
... 'cause the other list is not as good?
02:28
<~Vornicus>
str in list1 and str not in list2
02:28
< maoranma>
I have to use the second str then?
02:29
<~Vornicus>
Yeah
02:30
< Namegduf>
This is a linear iteration of both lists. If they are long and kept persistently you can consider other data structures to assist.
02:30
< Namegduf>
But yeah.
02:30
< maoranma>
I'm actually iterating through a list of keys and a list of keys in those values for the other keys
02:30
< maoranma>
Nested dictionaries
02:31
<~Vornicus>
whut
02:32
< maoranma>
i know rite
02:32
< maoranma>
for type in damage.keys():
02:32
< maoranma>
for mod in damage.[type].keys():
02:33
< maoranma>
damage[type].keys() rather
02:33
< maoranma>
then at the end, I can just looks at damage[type][mod]
02:34
< maoranma>
This is where you go "wtf Noah"
02:34
< maoranma>
And tell me I'm doing it wrong
02:35
<~Vornicus>
Actually I can't yet tell what you're up to
02:35
< maoranma>
I'll paste bin it once I have something functional.
02:45
<~Vornicus>
I meant more, "what knowledge are you trying to glean, and what data do you have and how is it structured?"
02:46
< maoranma>
I have a yaml file that is a dictionary of damage types, with a dictionary of damage modifiers, in which is a list of types that receive that modification of damage
02:47
< maoranma>
And the function I'm working on will take one or two types, and build a list of weakness based on the dictionary that the yaml makes
02:58
< maoranma>
Vornicus: http://pastebin.starforge.co.uk/510
03:07
< maoranma>
Hmm, there is one thing I need to fix, sometimes a dual type has a weakness and a resistence to the same type, and the return prints those
03:08
< maoranma>
So, just need a way to filter out the keys where the value equals 1.0
03:12
< maoranma>
for type in weakness: if weakness[type] = 1.0 | weakness.pop(type)
03:12
< maoranma>
I believe
03:14
< maoranma>
Well, with the colon, but that throws a syntax error
03:14
< maoranma>
Oh, ==, dur
03:15
< maoranma>
Ooo! A new error!
03:15
< maoranma>
Dictionary changed size during iteration, lol
03:17
<~Vornicus>
Failhammer
03:18
< maoranma>
I'm breaking things in new ways! This is exciting!
03:18
< maoranma>
I think I need to do a list comprehension instead
03:19 Attilla_ [Obsolete@Nightstar-ce4a0443.as43234.net] has joined #code
03:20 Attilla [Obsolete@Nightstar-59955c43.threembb.co.uk] has quit [Ping timeout: 121 seconds]
03:21
< maoranma>
For type in [type for type in weakness.keys() if weakness[type] == 1.0]: weakness.pop(type)
03:21
< maoranma>
Tada!
03:23
< maoranma>
And I suppose getWeakness is inaccurate, since it gets resistences too
03:29 Attilla_ is now known as Attilla
03:42 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
03:42
< maoranma>
That was painless
03:42
< maoranma>
.c 1 + 1
03:42
< NoahBOT>
2
03:44
<~Vornicus>
.c sin(pi/2)
03:44
< NoahBOT>
1
03:44
<~Vornicus>
.c sin(pi/4)
03:44
< NoahBOT>
0.707106781
03:44
<~Vornicus>
Okay.
03:44
< maoranma>
I think that's accurate?
03:45
< maoranma>
lol
03:45
< maoranma>
.c i^2
03:45
< NoahBOT>
-1
03:45
< maoranma>
.c (2+2i)(3+3i^2)
03:45
< NoahBOT>
0
03:45
< maoranma>
.c (2+2i)*(3+3i^2)
03:45
< NoahBOT>
0
03:46
<~Vornicus>
Something went wrong there.
03:46
< maoranma>
lol, it's like no
03:47
< maoranma>
.c 1 foot in inches
03:47
< NoahBOT>
12 inches
03:47 * maoranma digs through the code...
03:47
< celticminstrel>
.c any(1==2,3==4,2==2)
03:47
< NoahBOT>
Sorry, no result.
03:48
< maoranma>
It appears to use a webservice
03:48
< celticminstrel>
Webservice?
03:48
< maoranma>
Google Calculator to be precise
03:49
< maoranma>
.py any(1==2,3==4,2==2)
03:49
< NoahBOT>
TypeError: any() takes exactly one argument (3 given)
03:49
< celticminstrel>
Oh, I just assumed it evaluated Python code. :P
03:49
< maoranma>
Good lord no
03:49
< maoranma>
I didn't write it, so no
03:49
< celticminstrel>
What? That's what my dicebot does!
03:49
< celticminstrel>
Sort of.
03:49
<~Vornicus>
.py any([1==2,3==4,2==2])
03:49
< NoahBOT>
True
03:49
< maoranma>
It's a phrenny bot
03:49
< maoranma>
phenny rather
03:50 * Vornicus decides not to pwn maoranma's computer
03:51
< maoranma>
Oh, I'm sure it's full of security holes
03:52
< maoranma>
Hmm, what's this?
03:52
< maoranma>
.wa hmm
03:52
< NoahBOT>
hexamethylmelamine;formula->C9H18N6, name->hexamethylmelamine, IUPAC name->N2,N2,N4,N4,N6,N6-hexamethyl-1,3,5-triazine-2,4,6-triamine;molecular weight->210.279 g\/mol, phase->solid (at STP), melting point->173 &deg;C, boiling point->301 &deg;C, solubility->insoluble in water;experimental LogP hydrophobicity->1.7, predicted LogP hydrophobicity->2.43, predicted LogS->-1.83;approval status->approved -> small molecule, drug categories->ant
03:52
< maoranma>
Grahhcl~
03:52
< maoranma>
Apparently, a pill lookup service?
03:53 * celticminstrel resisted the urge to try .py sys.exit() :P
03:53
< celticminstrel>
Though that probably wouldn't work anyway.
03:53
< maoranma>
That is also on a webservice
03:53
< maoranma>
.py sys.exit()
03:53
< NoahBOT>
A server error occurred. Please contact the administrator.
03:53
< maoranma>
haha
03:54
<~Vornicus>
Well /something/ happened
03:54
<~Vornicus>
Gah
03:54
< celticminstrel>
What...
03:54
<~Vornicus>
I really really need to figure out how to make video games. Old ideas keep popping up and demanding my attention
03:55
< celticminstrel>
Probably NameError: sys does not exist.
03:55
< maoranma>
Pygame Vornicus
03:55
<~Vornicus>
maoranma: not what I mean
03:55
< maoranma>
define "make"
03:55
< celticminstrel>
Setting up pygame seems to be tantamount to the impossible. At least on a Mac.
03:55
<~Vornicus>
Go from concept to design, really
03:56
< maoranma>
No one games on a map
03:56
< celticminstrel>
For Python 2.7.
03:56
< maoranma>
mac*
03:56
< celticminstrel>
Setting it up for 2.5 worked just fine, I think.
03:56
<~Vornicus>
Once i've got a design the coding is comparatively simple.
03:56
< celticminstrel>
And you're quite wrong about that. :P
03:56
< maoranma>
I know, I just like hearing myself say it
03:56
< celticminstrel>
Heh!
03:57
< maoranma>
.t
03:57
< NoahBOT>
Sat, 10 Mar 2012 03:57:46 GMT
03:57
< maoranma>
.t utc
03:57
< NoahBOT>
2012-03-10T03:57:49Z
03:58
< maoranma>
omg
03:58
< maoranma>
.beats
03:58
< NoahBOT>
@207
03:58
< maoranma>
best bot ever
03:59 Attilla [Obsolete@Nightstar-ce4a0443.as43234.net] has quit [Ping timeout: 121 seconds]
04:01
< maoranma>
.tock
04:01
< NoahBOT>
"Sat, 10 Mar 2012 04:01:39 GMT" - tycho.usno.navy.mil
04:17
< maoranma>
NoahBOT: help head?
04:17
< NoahBOT>
maoranma: Provide HTTP HEAD information.
04:17
< NoahBOT>
e.g. .head http://www.w3.org/
04:17 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
04:20
< maoranma>
NoahBOT: help remind?
04:54
< maoranma>
.weather
04:54
< NoahBOT>
Try .weather London, for example?
04:55
< maoranma>
.wea
04:55
< maoranma>
.weather 37871
04:55
< NoahBOT>
Clear ?, -2?, 1032mb, Light air 1kt (?) - LESA 04:00Z
04:55
< maoranma>
Below freezing?
04:55
< celticminstrel>
.weather Timbuktu
04:55
< NoahBOT>
Clear ?, 22?, 1011mb, Light air 2kt (?) - GATB 03:00Z
04:55
< celticminstrel>
<_<
04:55
< celticminstrel>
Random city. :P
04:56
<@Vash>
.weather 06604
04:57
< NoahBOT>
Clear ?, 35.6? (2?), 30.23in (1020mb), Moderate breeze 13kt (?) - KBDR 04:52Z
04:57
< celticminstrel>
What do these numbers mean.
04:57
< celticminstrel>
Is that supposed to be the degree symbol in the temperature?
04:57
<~Vornicus>
temperature, atmospheric pressure, wind speed
04:57
< celticminstrel>
My Lucida Sans seems to lack the character.
04:58
< celticminstrel>
It says 35.6I
04:58
< celticminstrel>
Or is that what it's supposed to say>
04:58
< celticminstrel>
?
04:58
<~Vornicus>
Sun, degF, degC, and an up arrow, are the four characters seen there
04:58
<~Vornicus>
the four non-basic ascii ones, rather
04:59
< celticminstrel>
Ohh, it's using those characters... that's stupid, it shouldn't use the composed characters. It should use the deg symbol followed by C or F.
04:59 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
04:59
< maoranma>
.weather Kodak, TN
04:59
< NoahBOT>
Clear ?, 44.6? (7?), 30.39in (1026mb), Gentle breeze 9kt (?) - KTYS 04:53Z
05:00
< maoranma>
celticminstrel: get a better font
05:00
< celticminstrel>
But it's Lucida Sans Unicode!
05:00
< celticminstrel>
It's supposed to have all these characters!
05:00
< celticminstrel>
Still, I still say the bot shouldn't use the composed characters.
05:00
< maoranma>
get a better...codepage?
05:01
< celticminstrel>
I'm pretty sure they're Unicode's equivalent of deprecated.
05:01
< celticminstrel>
(I can see the sun and the arrow just fine.)
05:01
< celticminstrel>
(It's only the units I don't see.)
05:01
< celticminstrel>
.weather Italy
05:01
< NoahBOT>
Clear ?, 7?, 1030mb, Moderate breeze 11kt (?) - LIRZ 22:50Z
05:01
< celticminstrel>
...how does it get that.
05:02
< maoranma>
I think it uses NOAA?
05:02
< celticminstrel>
Agh.
05:03
< maoranma>
.location
05:03
< maoranma>
.loc
05:03
< maoranma>
Oh, it uses airport codes
05:03
< maoranma>
.weather TYS
05:04
< NoahBOT>
Cover Unknown, ?, ?mb, (wind unknown) - UUOO 06:30Z
05:04
< maoranma>
r not
05:04
< celticminstrel>
Huhwhat.
05:06
< maoranma>
NoahBOT: help weather?
05:07
< maoranma>
.weather 37914
05:07
< NoahBOT>
Clear ?, 44.6? (7?), 30.39in (1026mb), Gentle breeze 9kt (?) - KTYS 04:53Z
05:07
< maoranma>
KTYS, okay, that's Tyson airport.
05:08
< maoranma>
.weather 37871
05:08
< NoahBOT>
Clear ?, 0?, 1032mb, Calm 0kt (?) - LESA 05:00Z
05:08
< maoranma>
Where the hell is LESA?
05:08
< celticminstrel>
I have no clue about anything with this. What are these numbers you're using?
05:08
< maoranma>
Zipcode
05:09
< celticminstrel>
Oh!
05:09
< maoranma>
.zip
05:09
< maoranma>
Hmm
05:09
< celticminstrel>
Wonder if it can handle...
05:09
< celticminstrel>
.weather h5i2n4
05:09
< NoahBOT>
No ICAO code found, sorry
05:09
< celticminstrel>
.weather h5i 2n4
05:09
< NoahBOT>
No ICAO code found, sorry
05:10
< celticminstrel>
I'm going to take that as a "yes, but that one doesn't exist" <_<
05:10
< celticminstrel>
Though I dunno what ICAO is.
05:11
< maoranma>
Airline codes
05:11
< celticminstrel>
Okay, maybe it's a no then.
05:12
< maoranma>
!weather ktys
05:12
< maoranma>
.weather ktys
05:12
< NoahBOT>
Clear ?, 44.6? (7?), 30.39in (1026mb), Gentle breeze 9kt (?) - KTYS 04:53Z
05:31 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: Kablammo! Celticminstrel is now unavailable for comment.]
06:40 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
06:48 eckse [eckse@Nightstar-86a236d5.dsl.sentex.ca] has quit [Ping timeout: 121 seconds]
06:50 iospace [Alexandria@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
06:51 iospace [Alexandria@Nightstar-635d16fc.org] has joined #code
06:52 Derakon[AFK] is now known as Derakon
07:00 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Client closed the connection]
07:14 Derakon is now known as Derakon[AFK]
07:23 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
08:06 Kindamoody is now known as Kindamoody|food
08:08 eckse [eckse@Nightstar-86a236d5.dsl.sentex.ca] has joined #code
08:09 mode/#code [+o eckse] by ChanServ
08:09 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
08:30 You're now known as TheWatcher
08:48 Kindamoody|food is now known as Kindamoody
08:49 eckse [eckse@Nightstar-86a236d5.dsl.sentex.ca] has quit [Connection reset by peer]
11:01 Attilla [Obsolete@Nightstar-02bcbdd2.as43234.net] has joined #code
11:28 Reiver is now known as Orthia
12:06 * Rhamphoryncus goes in search of this "perf" he saw mentioned
12:10
< Rhamphoryncus>
argh. So searching for perf in ubuntu gave me nothing useful (too much noise), but fortunately I remembered you can just type a command and it'll tell you. That pointed me to linux-base. That got it installed and.. it failed. Because that is apparently just a wrapper for the real command in another package
12:11
<@Tamber>
Ick. :/
12:11 Attilla [Obsolete@Nightstar-02bcbdd2.as43234.net] has quit [[NS] Quit: ]
12:12 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
12:12
< Rhamphoryncus>
ooooo.. kay. Apparently installing the other package has hosed my system
12:12 * Rhamphoryncus closes the "store" that claims his system is hosed so he can see if it really is
12:14
< Rhamphoryncus>
There's an icon on the panel which tells me I should run apt-get to see the error. Of course simply running apt-get tells you nothing.
12:18
< Rhamphoryncus>
There we go. Fortunately I've dealt with debian/ubuntu stupidity many times so I was able to figure out the right set of commands do remove the brokenness
12:21
<@Tamber>
So what was borken?
12:24 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
12:24 mode/#code [+o himi] by ChanServ
12:24 Attilla [Obsolete@Nightstar-02bcbdd2.as43234.net] has joined #code
12:29
< Rhamphoryncus>
linux base and linux-tools-whatever both include a perf command, so they error out on install
12:30
<@Tamber>
Ahh
12:30
< Rhamphoryncus>
I installed linux-base first so it was successful, then when I went to install linux-tools-whatever it died half-installed, and it had a dependency that wasn't installed (putting the system in a broken state), but refused to install it because linux-tools-whatever wouldn't install first
12:32
< Rhamphoryncus>
prof report seems odd. It's labelling a column as overhead when I would expect it to be the cpu consumption
12:41 AnnoDomini is now known as ShellNinja
13:09 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
13:38 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
13:41
< froztbyte>
linux-base?
13:41
< froztbyte>
that doesn't sound like a package name I'm familiar with
13:41
< froztbyte>
I guess ubuntu put some more other random shit in a later release than I have available to poke at
14:00 AnnoDomini [annodomini@A08927.B4421D.B81A91.464BAB] has joined #code
14:00 mode/#code [+o AnnoDomini] by ChanServ
14:23
<@rstamer>
http://www.reddit.com/r/linux/comments/qq8d3/chucked_out_of_starbucks_for_hackin g_wtf/
14:26
< gnolam>
...
14:47
<@Alek>
...
14:49
< RichyB>
For pity's sake, that is so uncivilised.
14:50
< RichyB>
Why are you typing "PERIOD PERIOD PERIOD" when there is a perfectly good "HORIZONTAL ELLIPSIS" character in unicode?
14:50
< RichyB>
0x2026, people.
14:51
<@rstamer>
Sure, what's the command sequence to input unicode symbols in a Qt program?
14:51
<@Tamber>
Compose key, . .
14:51
< RichyB>
No idea. Compose key, . . works everywhere in X11 though.
15:08 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
15:08 mode/#code [+o Syloqs_AFH] by ChanServ
15:09 Syloqs_AFH is now known as Syloqs-AFH
15:12 * maoranma looks for his compose key in windows....
15:13 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Ping timeout: 121 seconds]
15:17
< maoranma>
rstamer: Nice. I've never had an issue at my starbucks, but I don't really go there because it's a starbucks. It's in a Target next to a Pizza Hut Express.
15:18
< maoranma>
"It really pisses me off when companies try to alienate their core customers. In this case, people who like to spend all day taking up a table while only buying one coffee." Hahaa!
15:25
< maoranma>
hi NoahBOT
15:25
< NoahBOT>
Hi maoranma
15:25
< NoahBOT>
Hi maoranma
15:25
< maoranma>
Hmm
15:25
< maoranma>
hi NoahBOT
15:25
< NoahBOT>
Hello maoranma
15:25
< maoranma>
Straaaaange
15:25
< maoranma>
What's this one...
15:25
< maoranma>
.mangle
15:25
< NoahBOT>
AttributeError: 'NoneType' object has no attribute 'encode' (source unknown)
15:26
< maoranma>
.mangle Baconese.
15:26
< NoahBOT>
AttributeError: 'tuple' object has no attribute 'rstrip' (source unknown)
15:26
< maoranma>
Eh, dunno
15:27
< maoranma>
.comp
15:27
< NoahBOT>
maoranma: Nothing to compare.
15:27
< maoranma>
NoahBOT: help comp?
15:28
< maoranma>
.stats
15:28
< NoahBOT>
most used commands: f_weather (12), c (8), doc (4), py (3), t (2), mangle (2), hello (2), wa (1), tock (1), gcs (1)
15:28
< NoahBOT>
power users: maoranma (30), celticminstrel (5), Vornicus (3), Vash (1)
15:28
< NoahBOT>
power channels: #code (37)
15:28
< maoranma>
.duck
15:28
< NoahBOT>
maoranma: .ddg what?
15:28
< maoranma>
Oh, duck duck goose
15:29
<@Alek>
.ddg yourself
15:29
< NoahBOT>
Alek: http://en.wikipedia.org/wiki/Yourself
15:47
< Tarinaky>
yEah well, your mom's a reflexive pronoun.
15:53 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Connection reset by peer]
15:54 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
15:54
< maoranma>
NoahBOT: reload type
15:54
< NoahBOT>
maoranma: type: no such module!
15:55
< maoranma>
NoahBOT: reload type.py
15:55
< NoahBOT>
maoranma: type.py: no such module!
15:55
< maoranma>
gah
15:56
< maoranma>
NoahBOT: reload weather
15:56
< NoahBOT>
maoranma: <module 'weather' from 'C:\Users\Noah\Apps\sbp-phenny-c5fe137\modules\weather.pyc'> (version: 2012-03-10 03:42:32)
15:56
< maoranma>
pfft
16:00 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Client closed the connection]
16:00 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
16:01
< maoranma>
Phenny needs better documentation :\
16:01
< maoranma>
!type test test
16:02 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Client closed the connection]
16:02 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
16:03 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Client closed the connection]
16:14 Derakon[AFK] is now known as Derakon
16:49 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
16:49
< maoranma>
.type ground fire
16:49
< NoahBOT>
For (ground fire): {'steel': 0.5, 'electric': 0.0, 'fire': 0.5, 'poison': 0.5, 'water': 4.0, 'bug': 0.5, 'ground': 2.0}
16:50
<&Derakon>
...do you really need an IRC bot that can help you play Pok?mon~?
16:50
< maoranma>
No
16:52
< maoranma>
It's merely an exercise to see if I could get it working and have it print out valid data, hence why it's printing raw datatypes
16:52
< maoranma>
And be correct, while using yaml to load the information I need
16:53 RichyB [MyCatVerbs@Nightstar-86656b6c.cable.virginmedia.com] has joined #code
16:54
< maoranma>
Now, for fun, I'll clean up the printout into something pretty, like percentages in a Steel (50%), Electric (0%), etc format
16:54
< maoranma>
I guess I need to see if this breaks anything.
16:55
< maoranma>
.type electric fire water
16:55
< NoahBOT>
For (electric fire water): {'steel': 0.25, 'electric': 0.5, 'fire': 0.5, 'flying': 0.5, 'ice': 0.5, 'water': 2.0, 'rock': 2.0, 'grass': 0.5, 'bug': 0.5, 'ground': 2.0}
16:56
< maoranma>
Mostly correct, ground should be 4x, and except for output, it's correctly ignoring superfluous args
16:58
< maoranma>
Typo in the yml file, so let's see if it'll properly update through the bot
16:58
< maoranma>
NoahBOT: reload type
16:58
< NoahBOT>
maoranma: <module 'type' from 'C:\Users\Noah\Apps\sbp-phenny-c5fe137\modules\type.pyc'> (version: 2012-03-10 16:47:38)
16:58
< maoranma>
.type electric fire water
16:58
< NoahBOT>
For (electric fire water): {'steel': 0.25, 'electric': 0.5, 'fire': 0.5, 'flying': 0.5, 'ice': 0.5, 'water': 2.0, 'rock': 2.0, 'grass': 0.5, 'bug': 0.5, 'ground': 2.0}
17:02 NoahBOT [NoahBOT@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Connection reset by peer]
17:08 eckse [eckse@Nightstar-86a236d5.dsl.sentex.ca] has joined #code
17:08 mode/#code [+o eckse] by ChanServ
17:10 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
17:32 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
17:33 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
17:33 Syloqs_AFH is now known as Syloqs-AFH
17:33 mode/#code [+o Syloqs-AFH] by ChanServ
17:39
< maoranma>
Well, phenny broke for whatever reason, stopped seeing the functions in my module.
17:39 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
17:47 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
17:47 mode/#code [+o Syloqs_AFH] by ChanServ
17:48 Syloqs_AFH is now known as Syloqs-AFH
18:12 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
18:13 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
18:13 mode/#code [+o ToxicFrog] by ChanServ
18:14 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
18:48 rstamer is now known as Anna
18:58 EvilDarkLord is now known as Aeron
19:06 AnnoDomini is now known as Jasever
19:26 Kindamoody is now known as Kindamoody[zZz]
19:52
< Tarinaky>
Umm... Who here has experience with Qt Designer?
19:53
<@ToxicFrog>
<-
19:53
<@ToxicFrog>
But not much.
19:53
< Tarinaky>
I'm not, entirely, sure what I'm meant to be doing here.
19:53
< Tarinaky>
I've not really used a form designer before :/
19:53
< Tarinaky>
Sorry, my question is a bit vague/not a question.
20:00
<@ToxicFrog>
Um
20:00
<@ToxicFrog>
The basic idea is "choose a root widget" (ie, the thing that will actually appear as the program window) "and then put other widgets inside it, and configure them, and specify what gets called when they are frobbed"
20:02
< Tarinaky>
frobbed?
20:04
<@ToxicFrog>
Poked. Manipulated. Interacted with.
20:04
< Tarinaky>
Ahah.
20:08
< Tarinaky>
So what would I use for a custom widget?
20:09
< Tarinaky>
Like... something like GDI+ for Windows.
20:11
<@ToxicFrog>
...sorry?
20:11
<@ToxicFrog>
Isn't GDI+ the (old) windows GUI library, not a particular widget?
20:12
< Tarinaky>
Yeah.
20:12
<@ToxicFrog>
Ok, I really don't understand the question then.
20:12
< Tarinaky>
I'm not very good at this and I don't really know what I want.
20:13
< Tarinaky>
What do I use if I want a widget I draw stuff to according to whatever arbitrary rules I have.
20:13
< Tarinaky>
Rather than something that's already a widget.
20:14
<@ToxicFrog>
Depends on how much assistance you want. QGraphicsScene is used for "scenes" of individually drawable objects with parent-child relationships, and QGraphicsView connects to that and is scrollable and zoomable and rotateable and whatnot.
20:14
<@ToxicFrog>
(this is what I'm using for felt)
20:14
<@ToxicFrog>
If you just want a single widget with custom drawing, you can use a QWidget and override its draw() (I think) method.
20:25
< Tarinaky>
I presume you can get clicks for either of them?
20:25
< Tarinaky>
I mean, so you can get like... x/y coordinates of any clicks made.
20:26
< Tarinaky>
Also: What property makes it fill all available space?
20:30
<@ToxicFrog>
Yes, you can, and I don't remember but if you're using a layout manager it should handle that automatically I think (you should be using a layout manager regardless)
20:31
<@ToxicFrog>
And now, science
20:31
< Tarinaky>
Bye.
20:32
< Tarinaky>
o.o but then how do I make the layout fill all available space >.<
21:00 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
21:36 Attilla_ [Obsolete@Nightstar-02bcbdd2.as43234.net] has joined #code
21:38 Attilla [Obsolete@Nightstar-02bcbdd2.as43234.net] has quit [Ping timeout: 121 seconds]
21:38 Attilla_ is now known as Attilla
21:38 eckse [eckse@Nightstar-86a236d5.dsl.sentex.ca] has quit [Client closed the connection]
21:57 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
21:57
< maoranma>
Behold
21:57
< maoranma>
.test
21:57
< Noah{OYOYO}>
Braaaaaainnnsss~
21:57
< maoranma>
It liiiiives~
22:00
< maoranma>
Because phenny was being dumb, decided to make my own using oyoyo
22:00
< maoranma>
Not as easier, but, it works anyway
22:07 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
22:12 Attilla_ [Obsolete@Nightstar-02bcbdd2.as43234.net] has joined #code
22:13 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Client closed the connection]
22:13 Attilla [Obsolete@Nightstar-02bcbdd2.as43234.net] has quit [NickServ (GHOST command used by Attilla_)]
22:13 Attilla_ is now known as Attilla
22:22 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
22:22
< maoranma>
.type fire flying
22:27 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Connection closed]
22:27 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
22:27
< maoranma>
.type fire flying
22:28
< maoranma>
Blah
22:28 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Connection closed]
22:29 * maoranma eyes his code
22:30
< maoranma>
I don't get it, I import the file, so the bot should have the function, but when I try to call the function, it spazzes out
22:32
< maoranma>
oh
22:32
< maoranma>
duh
22:33
< maoranma>
And now I know what phenny's issue was
22:34
<@Tamber>
?
22:34
< maoranma>
Python IRC bots
22:34
<@Tamber>
Yes, I get that. It was "now I know what phenny's issue was" ;)
22:34
<@Tamber>
That is, "What did you break?" :p
22:34
< maoranma>
import somemod
22:35
< maoranma>
and to use a function in somemod
22:35
< maoranma>
it's somemob.functionderp()
22:35
<@Tamber>
Okay, makes sense.
22:36
< maoranma>
Instead, I kept trying to call the dumb function by name alone
22:36
< maoranma>
But, I think I like using oyoyo better, since it's multiserver capable
22:51 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has joined #code
22:51
< maoranma>
.type fire ghost
22:51
< Noah{OYOYO}>
For ('fire', 'ghost'): {'steel': 0.5, 'ghost': 2.0, 'ice': 0.5, 'normal': 0.0, 'fire': 0.5, 'water': 2.0, 'fighting': 0.0, 'dark': 2.0, 'poison': 0.5, 'rock': 2.0, 'grass': 0.5, 'bug': 0.25, 'ground': 2.0}
23:00 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
23:02 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
23:07 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection reset by peer]
23:08
< maoranma>
lamer
23:09 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
23:09 mode/#code [+o Syloqs_AFH] by ChanServ
23:10 Syloqs_AFH is now known as Syloqs-AFH
23:24 Noah{OYOYO} [Noah{OYOYO}@Nightstar-18ea8aaa.pools.spcsdns.net] has quit [Connection closed]
23:36 Jasever is now known as AnnoDomini
23:36 AnnoDomini [annodomini@A08927.B4421D.B81A91.464BAB] has quit [[NS] Quit: leaving]
23:37 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
23:47 Kindamoody[zZz] is now known as Kindamoody
--- Log closed Sun Mar 11 00:00:45 2012
code logs -> 2012 -> Sat, 10 Mar 2012< code.20120309.log - code.20120311.log >

[ Latest log file ]