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 howdy ChrisMorgan 11:17:08 Hey 11:18:20 How you doing? 11:41:27 Question rejected as semantically nonsensical :P 11:50:54 I spent the last night trying to understand a Houdini variable (an generator expression which was losing its data once assigned). 11:51:46 I finally understood the difference between list comprehensions and generator expressions. 11:53:09 BTW, is this code fine? http://p.kalug.net/7 11:54:52 I still don't see the point of the trailing __ 11:56:48 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 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 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 Leftover. 11:58:34 I'm using Py3k. I'm sure. 11:59:21 BTW it was being assigned to a instance variable from the constructor. 11:59:26 OK, then it must be a different problem to what I'm thinking of. What is it? 12:04:19 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 Hello? 16:01:49 @Gizmokid2005 16:02:05 pa_3638: read the topic and follow the rules please. 16:02:25 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 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 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 ZachThibeau: ping 21:39:39 kAlug: pong 21:39:44 just finished eating 21:41:01 ZachThibeau: As I forgot what I was going to ask you, did you ever watched Matrix (the first)? 21:41:13 I watched the whole Trilogy 21:42:31 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 Found an article in English: http://dvice.com/archives/2011/12/an-mri-machine.php 21:45:40 interesting 21:48:16 Remembered: do you know how do I declare a function pointer in a C struct (something like an anonymous function pointer)? 21:52:58 uhm 21:53:04 I suck at explaining really 21:55:16 I need to build a vtable for selecting PuTTY's storage backend. 21:55:34 I'll show you the code once my notebook finishes recharging. 21:57:59 yeah I work better when I see code 22:07:31 kAlug: declare a regular functionpointer and then use that type in your struct 22:09:12 typedef int(*FunctPtr)(...params...); 22:14:36 There are ~20 functions, each one with a different signature. 22:15:30 you can't call a function without knowing its signature iirc 22:15:54 I know. I just don't want to make one typedef for each one. 22:16:27 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 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 but that probably won't work the way you intend it to 22:18:59 Yes, it's varargs (variable arguments), and yes, it's not what I want. 22:19:18 then you should speak to some experienced c developer about this 22:19:40 IDK anyone. 22:20:08 i'll ask a friend, see if he can help out on this one 22:33:02 http://pastebin.com/bEJyHvE8 22:33:42 kAlug: what would be the problem with that? 22:36:24 Yeah, I think that will work. Now I just need a way to generate the 20 virtual functions... 22:52:18 #define vtable_call(func, ...) ((vtable.func)(__VA_ARGS__)) 22:52:26 might this be what you want? 22:52:59 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 howdy JohnTHaller 23:09:17 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 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 howdy JohnTHaller 23:23:55 hola 23:24:02 things are pretty good. how bout with you guys? 23:26:35 Going well. Going to update and test some apps tonight. 23:28:45 Hey John, do you know anything about the C preprocessor? 23:29:40 nope 23:29:51 BTW ZachThibeau, sar3th: http://p.kalug.net/4 23:31:53 kAlug: does it work as you intend it to? 23:32:20 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 what exactly is the error message?