IRC Log from 2011-12-13

00:00:35 *** agdurrette is now known as agdurrette_znc
00:14:20 *** Thasmo has quit ()
00:31:07 *** agdurrette_znc has quit (Ping timeout: 240 seconds)
00:42:26 *** agdurrette_znc (~agdurrett@static.186.174.47.78.clients.your-server.de) has joined #portableapps
00:42:57 *** agdurrette_znc is now known as agdurrette
01:15:07 *** agdurrette has quit (Ping timeout: 240 seconds)
01:25:07 *** kAlug has quit (Ping timeout: 240 seconds)
01:28:40 *** kAlug (~kalug@187.57.15.20) has joined #portableapps
01:51:27 *** kAlug has quit (Ping timeout: 240 seconds)
02:40:47 *** techfreak243 has quit (Ping timeout: 240 seconds)
04:04:06 *** kAlug (~kalug@187.11.99.14) has joined #portableapps
04:43:45 *** kAlug has quit (Ping timeout: 252 seconds)
05:49:40 *** jason404 has quit (Ping timeout: 240 seconds)
06:10:56 *** jason404 (~jason404@31-222-188-155.static.cloud-ips.co.uk) has joined #portableapps
06:30:35 *** dbdii407 has quit (Quit: ZNC - http://znc.sourceforge.net)
06:54:53 *** PlauSocks is now known as PlauSocks|AFK
08:19:31 *** ChrisMorgan (~ChrisMorg@unaffiliated/chrismorgan) has joined #portableapps
10:54:34 *** techfreak243 (~techfreak@c-68-40-88-129.hsd1.mi.comcast.net) has joined #portableapps
11:13:39 *** kAlug (~kalug@187.74.9.15) has joined #portableapps
11:14:48 <kAlug> howdy ChrisMorgan
11:17:08 <ChrisMorgan> Hey
11:18:20 <kAlug> How you doing?
11:41:27 <ChrisMorgan> Question rejected as semantically nonsensical :P
11:50:54 <kAlug> I spent the last night trying to understand a Houdini variable (an generator expression which was losing its data once assigned).
11:51:46 <kAlug> I finally understood the difference between list comprehensions and generator expressions.
11:53:09 <kAlug> BTW, is this code fine? http://p.kalug.net/7
11:54:52 <ChrisMorgan> I still don't see the point of the trailing __
11:56:48 <ChrisMorgan> I don't have time to look at it properly now, but it seems to me on a cursory overview to be alright. If it's compiling and you think it's right, you may as well commit it.
11:57:40 <ChrisMorgan> The matter of closure is an interesting factor in them. An element where it wasn't properly designed in 2.x. The problem you experienced wouldn't happen on Python 3.
11:58:01 <techfreak243> http://www.examiner.com/comedy-in-omaha/why-you-shouldn-t-mess-with-nerds-photo just a little funny for the morning
11:58:05 <kAlug> Leftover.
11:58:34 <kAlug> I'm using Py3k. I'm sure.
11:59:21 <kAlug> BTW it was being assigned to a instance variable from the constructor.
11:59:26 <ChrisMorgan> OK, then it must be a different problem to what I'm thinking of. What is it?
12:04:19 <kAlug> I was doing self.body = (... for ... in ....). It was being assigned correctly, but when trying to access it again, it had lost all its content (i.e. list(self.body) == []). Solved it by using a list comprehension instead.
12:16:45 *** kAlug has quit (Quit: I'll be back... eventually)
13:36:47 *** techfreak243 has quit (Ping timeout: 240 seconds)
14:10:47 *** ChrisMorgan has quit (Ping timeout: 240 seconds)
14:21:02 *** TPFC-SYSTEM (opera@cs94190.pp.htv.fi) has joined #portableapps
15:10:45 *** pa_7697 (af89a87e@gateway/web/freenode/ip.175.137.168.126) has joined #portableapps
15:18:02 *** Oni-Neoxes (~Oni-Neoxe@unaffiliated/oni-neoxes) has joined #portableapps
15:19:30 *** pa_7697 has quit (Quit: Page closed)
15:56:47 *** TPFC-SYSTEM has quit (Quit: TPFC-SYSTEM)
16:00:43 *** pa_3638 (d90a6fa4@gateway/web/freenode/ip.217.10.111.164) has joined #portableapps
16:00:47 <pa_3638> Hello?
16:01:49 <pa_3638> @Gizmokid2005
16:02:05 <Gizmokid2005> pa_3638: read the topic and follow the rules please.
16:02:25 <pa_3638> ok sorry
16:03:04 *** pa_3638 has quit (Client Quit)
16:18:07 *** Oni-Neoxes has quit ()
16:29:41 *** Oni-Neoxes (~Oni-Neoxe@unaffiliated/oni-neoxes) has joined #portableapps
17:12:47 *** Oni-Neoxes has quit ()
17:41:00 *** Oni-Neoxes (~Oni-Neoxe@unaffiliated/oni-neoxes) has joined #portableapps
17:43:06 *** Oni-Neoxes has quit (Client Quit)
18:02:53 *** Thasmo (~thasmo@d86-33-68-66.cust.tele2.at) has joined #portableapps
18:03:06 *** GizmoBot has quit (Quit: GizmoBot)
18:03:12 *** GizmoBot (~GizmoBot@vps2.gizmokid2005.com) has joined #portableapps
18:03:16 <GizmoBot> GizmoBot is the official bot of #Gizmokid2005 and #PortableApps.
18:20:50 *** Thasmo has quit (Read error: Connection reset by peer)
18:31:47 *** Thasmo (~thasmo@d86-33-68-66.cust.tele2.at) has joined #portableapps
18:35:01 *** ZachThibeau has quit (Read error: Connection reset by peer)
18:46:06 *** Oni-Neoxes (~Oni-Neoxe@unaffiliated/oni-neoxes) has joined #portableapps
19:48:11 *** benedikt93 (~benedikt9@unaffiliated/benedikt93) has joined #portableapps
19:51:56 *** andreasma (~andi@p5B07D011.dip.t-dialin.net) has joined #portableapps
20:07:38 *** Zarggg has quit (Ping timeout: 240 seconds)
20:09:08 *** rcmaehl (~rcmaehl@unaffiliated/why) has joined #portableapps
20:15:56 *** Guest34516 (~ZachThibe@12.204.103.109) has joined #portableapps
20:16:12 *** Guest34516 is now known as ZachThibeau
20:16:14 *** ZachThibeau has quit (Changing host)
20:16:14 *** ZachThibeau (~ZachThibe@unaffiliated/zachthibeau) has joined #portableapps
20:16:18 <GizmoBot> ZachThibeau is the main developer of PChat and is a developer with PortableApps.com
20:17:58 *** ZachThibeau has quit (Client Quit)
20:27:20 *** ZachThibeau (~ZachThibe@unaffiliated/zachthibeau) has joined #portableapps
20:29:29 *** Oni-Neoxes has quit ()
20:53:20 *** sar3th (~sar3th@unaffiliated/sar3th) has joined #portableapps
20:58:57 *** kAlug (bd122981@gateway/web/freenode/ip.189.18.41.129) has joined #portableapps
21:01:02 *** andreasma has quit (Quit: Verlassend)
21:16:08 *** benedikt93 has quit (Quit: Bye ;))
21:21:42 <kAlug> ZachThibeau: ping
21:39:39 <ZachThibeau> kAlug: pong
21:39:44 <ZachThibeau> just finished eating
21:41:01 <kAlug> ZachThibeau: As I forgot what I was going to ask you, did you ever watched Matrix (the first)?
21:41:13 <ZachThibeau> I watched the whole Trilogy
21:42:31 <kAlug> I bought it. So, it seems that some scientists created a way to learn like in the martial arts scene, through MRI.
21:45:00 <kAlug> Found an article in English: http://dvice.com/archives/2011/12/an-mri-machine.php
21:45:40 <ZachThibeau> interesting
21:48:16 <kAlug> Remembered: do you know how do I declare a function pointer in a C struct (something like an anonymous function pointer)?
21:52:58 <ZachThibeau> uhm
21:53:04 <ZachThibeau> I suck at explaining really
21:55:16 <kAlug> I need to build a vtable for selecting PuTTY's storage backend.
21:55:34 <kAlug> I'll show you the code once my notebook finishes recharging.
21:57:59 <ZachThibeau> yeah I work better when I see code
22:07:31 <sar3th> kAlug: declare a regular functionpointer and then use that type in your struct
22:09:12 <sar3th> typedef int(*FunctPtr)(...params...);
22:14:36 <kAlug> There are ~20 functions, each one with a different signature.
22:15:30 <sar3th> you can't call a function without knowing its signature iirc
22:15:54 <kAlug> I know. I just don't want to make one typedef for each one.
22:16:27 <kAlug> Also, I wanted a way do to this: ret name (params) { get_function_table->name(params); }. I can't make a macro for this without passing the parameters twice: one with the types, and other without.
22:17:30 <sar3th> hm, i think you can do this with something i don't recall the name of, printf uses it, i think it's called varargs or something
22:17:58 <sar3th> but that probably won't work the way you intend it to
22:18:59 <kAlug> Yes, it's varargs (variable arguments), and yes, it's not what I want.
22:19:18 <sar3th> then you should speak to some experienced c developer about this
22:19:40 <kAlug> IDK anyone.
22:20:08 <sar3th> i'll ask a friend, see if he can help out on this one
22:33:02 <sar3th> http://pastebin.com/bEJyHvE8
22:33:42 <sar3th> kAlug: what would be the problem with that?
22:36:24 <kAlug> Yeah, I think that will work. Now I just need a way to generate the 20 virtual functions...
22:52:18 <sar3th> #define vtable_call(func, ...) ((vtable.func)(__VA_ARGS__))
22:52:26 <sar3th> might this be what you want?
22:52:59 <sar3th> you could then vtable_call(foo, 3.14159);
23:07:07 *** JohnTHaller (~JohnTHall@cpe-98-14-114-27.nyc.res.rr.com) has joined #portableapps
23:08:16 <ZachThibeau> howdy JohnTHaller
23:09:17 <JohnTHaller> hola ZachThibeau
23:11:11 *** PlauSocks|AFK is now known as PlauSocks
23:12:15 *** techfreak243 (~techfreak@c-68-40-88-129.hsd1.mi.comcast.net) has joined #portableapps
23:16:21 <ZachThibeau> how's things?
23:17:41 *** kAlug has quit (Ping timeout: 258 seconds)
23:21:06 *** kAlug (~kalug@189-18-41-129.dsl.telesp.net.br) has joined #portableapps
23:22:12 <kAlug> howdy JohnTHaller
23:23:55 <JohnTHaller> hola
23:24:02 <JohnTHaller> things are pretty good. how bout with you guys?
23:26:35 <kAlug> Going well. Going to update and test some apps tonight.
23:28:45 <kAlug> Hey John, do you know anything about the C preprocessor?
23:29:40 <JohnTHaller> nope
23:29:51 <kAlug> BTW ZachThibeau, sar3th: http://p.kalug.net/4
23:31:53 <sar3th> kAlug: does it work as you intend it to?
23:32:20 <kAlug> It doesn't even compile. The table is OK, the problem is FUNCTION_POINTER.
23:35:36 *** kAlug has quit (Quit: be back soon)
23:35:36 <sar3th> what exactly is the error message?