All times are UTC.
00:01:40 <-- dionisos has quit (Ping timeout) 00:29:58 <-- Suiseiseki has quit (Ping timeout) 00:36:58 <-- unghost has quit (Quit: Ð£Ñ Ð¾Ð¶Ñ Ñ Ð¾Ñ Ð²Ð°Ñ (xchat 2.4.5 или ÑÑаÑÑе)) 00:49:34 --> Suiseiseki has joined #instantbird 02:14:28 --> DGMurdockIII has joined #instantbird 03:03:27 <instant-buildbot> build #901 of linux-nightly-default is complete: Success [build successful] Build details are at http://buildbot.instantbird.org/builders/linux-nightly-default/builds/901 03:37:52 <instant-buildbot> build #893 of macosx-nightly-default is complete: Success [build successful] Build details are at http://buildbot.instantbird.org/builders/macosx-nightly-default/builds/893 05:15:00 <-- Optimizer has quit (Ping timeout) 05:15:23 --> Optimizer has joined #instantbird 05:26:12 <-- Optimizer has quit (Ping timeout) 05:26:38 --> Optimizer has joined #instantbird 05:50:45 <instant-buildbot> build #996 of win32-nightly-default is complete: Success [build successful] Build details are at http://buildbot.instantbird.org/builders/win32-nightly-default/builds/996 06:43:28 <-- Optimizer has quit (Ping timeout) 06:53:52 --> Optimizer has joined #instantbird 07:07:53 --> jb has joined #instantbird 07:08:47 <-- jb has quit (Input/output error) 07:12:31 --> jb has joined #instantbird 07:27:47 --> mpmc has joined #instantbird 07:29:28 <-- jb has quit (Ping timeout) 07:48:18 --> jb has joined #instantbird 07:48:46 <-- jb has quit (Input/output error) 07:49:49 --> jb has joined #instantbird 08:17:19 <-- jb has quit (Ping timeout) 08:28:19 <-- Optimizer has quit (Ping timeout) 08:52:58 --> dionisos has joined #instantbird 08:57:10 --> Mic has joined #instantbird 08:57:10 * ChanServ sets mode +h Mic 09:03:29 <-- gerard-majax_ has quit (Ping timeout) 09:34:15 <-- Mic has quit (Quit: Instantbird -- http://www.instantbird.com) 09:34:22 --> Mic has joined #instantbird 09:34:22 * ChanServ sets mode +h Mic 09:37:50 --> Hronom has joined #instantbird 09:38:48 <Mic> Hi! 09:40:02 <Mic> nhnt11, atuljangra, qheaden: you are remembering to do your weekly blog posting by the way? 09:55:25 --> atuljangra has joined #instantbird 09:55:51 <atuljangra> mic ping :) 09:56:04 <Mic> Hi atuljangra! 09:56:16 <atuljangra> Hey, how are you? 09:56:17 <Mic> I'm currently commenting on your pastebin from yesterday! 09:56:26 <Mic> I'm fine, thanks! How are you? 09:56:32 <atuljangra> Awesome :) I pinged for the same. 09:56:39 <Mic> atuljangra: I assume you trying to access encodedData after the call OS.File.open(..).then(...); call? 09:56:46 <Mic> Literally after, not in it. 09:57:11 <atuljangra> yes. Later I try to send this data in iq stanza. 09:57:21 <Mic> Here's what I'd try: http://pastebin.instantbird.com/239543 09:57:41 <Mic> I forgot to highlight line #42 by the way. 09:58:36 <Mic> I've got to say that I never really used promises though ;) 09:58:39 <atuljangra> No pbm. :) I'm trying this. 09:58:42 <Mic> I just expect it to work this way. 09:58:55 <atuljangra> Oh okay. :) Lemme try this. :) 09:58:57 --> qlum has joined #instantbird 09:59:15 <atuljangra> And I need to send the stanza in the success() func in #42? 09:59:28 <Mic> Yes. 09:59:46 <Mic> You can only do that once the encodedData promise successfully resolved. 10:00:24 <atuljangra> Okay. :) Thanks. Trying. 10:00:35 * Mic really wants to do something with promises now ;) 10:00:44 * atuljangra jumps to his another machine and try this. 10:00:47 <atuljangra> haha ;) 10:12:08 --> atuljangra_ has joined #instantbird 10:15:08 <-- atuljangra has quit (Quit: http://www.mibbit.com ajax IRC Client) 10:16:11 * atuljangra_ is now known as atuljangra 10:19:57 <-- dionisos has quit (Ping timeout) 10:30:23 <Mic> atuljangra: let me know when you've figured out your problem (or when you still have problems). 10:31:34 <atuljangra> Mic: Sure :-) Trying the same. Do i need to recompile the whole trunk when we add a new resource? 10:31:52 <Mic> What do you mean by a "new resource"? 10:31:53 <atuljangra> Somehow it is not able to find the Promise.jsm 10:32:28 <atuljangra> Cu.import("../../../Promise.jsm"); 10:32:32 <Mic> Strange, I would have expected /gre/* things to be there. 10:32:38 <Mic> Maybe it's not there for use yet? 10:32:44 <Mic> I'll check BMO. 10:32:53 <atuljangra> Maybe. 10:33:00 <atuljangra> Okay Thanks :) 10:33:17 <Mic> It's also not there for me by the way. 10:33:37 <atuljangra> okay. But it should be, right? 10:36:48 <Mic> Try Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js", this); 10:36:59 <atuljangra> Okay :) 10:37:32 <Mic> That's the path I extracted from the OS.File modules from my Instantbird nightly. 10:37:38 --> dionisos has joined #instantbird 10:37:52 <atuljangra> Oh okay. 10:38:56 <Mic> Promise.jsm is coming with Moz25 according to MDN. 10:39:07 <Mic> https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm 10:39:37 --> jb has joined #instantbird 10:39:49 <atuljangra> Hmm yes. :) 10:46:29 <-- jb has quit (Ping timeout) 10:46:51 <atuljangra> Mic: No success. :( 10:46:59 <atuljangra> Same file not found thing 10:48:51 <atuljangra> http://mxr.mozilla.org/mozilla-central/source/services/metrics/storage.jsm#22 10:49:17 <atuljangra> It is being used in TB/Fx I guess. 10:49:47 <Mic> What's not been found? 10:51:05 <atuljangra> NS_ERROR_FILE_NOT_FOUND [nsIXPXXomponents_Utils.import]" 10:51:43 <atuljangra> while doing Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js", this); 10:52:05 <Mic> That's strange, I can import that from my error console. 10:52:19 <Mic> You can leave "this" away by the way. 10:52:44 <atuljangra> Oh okay. How do I do this from error console? I haven't used error console much. 10:54:11 <atuljangra> ah sorry, my mistake. I worte .jsm instead of .js. Working now. Thanks :) 10:54:14 <Mic> Just copy and paste it to the error console. 10:54:44 <atuljangra> okay :) 10:54:56 <Mic> I can't find "then" in my promises... :S 10:55:31 <atuljangra> Same here :-/ 10:58:19 <atuljangra> encodedData.then is not a function :-/ 11:00:45 <atuljangra> defer() returns a deferred object. I guess I need to do |encodedData.promise.then|. Trying 11:02:14 <Mic> That didn't work the first time I tried. Now it does for some reason. 11:03:07 <atuljangra> what? encodedData.promise.then or encodedData.then| 11:03:22 <Mic> I've got a working example, lmpbtfy 11:03:32 <atuljangra> awesome :) 11:04:38 <Mic> http://pastebin.instantbird.com/239566 11:05:04 <atuljangra> Thanks Mic :) 11:05:18 <Mic> You can copy everything to the error console, the linebreaks will automatically be removed. 11:05:58 <atuljangra> okay. :) 11:07:21 <-- Even has quit (Ping timeout) 11:07:32 --> Even has joined #instantbird 11:07:32 * ChanServ sets mode +o Even 11:22:40 <Mic> That's interesting: "<field>"s seem to have lazy getters by default according to MDN. 11:23:09 <Mic> *to be 11:24:55 <-- dionisos has quit (Ping timeout) 11:30:46 <Mic> Did it work using promise.js instead? 11:31:15 <atuljangra> Yes. But I'm still having problem while reading from the file. 11:31:20 <atuljangra> lmpbtfy 11:33:38 <atuljangra> Mic: http://pastebin.instantbird.com/239567 11:34:10 <atuljangra> Somehow encodedData is never resolved. 11:34:25 <atuljangra> Maybe file is taking to long to read, or any other such error. 11:34:58 <atuljangra> Size of file which I am testing with is 32 bytes only 11:37:15 <atuljangra> Mic I need to go somewhere right now. But please look at it. A different eye on code is always helpful :) 11:37:17 <atuljangra> Thanks :) 11:37:23 <Mic> OK 11:37:28 <atuljangra> I'll be back in an hour or so. 11:37:30 <atuljangra> Thanks :) 11:37:46 * atuljangra is now known as atul_away 11:37:48 <Mic> I'll be away for the afternoon then but I'll let you know if I find a problem. 11:38:08 <atul_away> Mic: okay :-) Thanks. 11:40:05 <Mic> atul_away: wait a moment. 11:40:16 <atul_away> oh okay 11:40:20 <Mic> Are you sure "this" is what you expect in your callbacks? 11:41:16 <atul_away> oh, so how do I refer to the current instance of xmppFileTransferPrototype 11:41:18 <-- Hronom has quit (Client exited) 11:42:07 <atul_away> And if "this" was not referring to xmppFileTransferPrototype, shouldn't it give error? 11:46:41 <Mic> I'd use "Component.utils.reportError()" for testing, to make sure I actually see anything on the console that I want to print (taking this.conv.LOG out of the equation). 11:47:41 <atul_away> Okay, but "this" is being used otherwise also, like for sending stanzas, how do I handle those? 11:49:31 <Mic> I'll try some things and post the results here. 11:49:41 <Mic> You can still read them in an hour ;) 11:49:46 <atul_away> Okay. :) 11:49:54 <atul_away> Heh Thanks :P 11:50:08 <atul_away> I'll be back :) Thanks :D 11:50:18 <-- DGMurdockIII has quit (Quit: ChatZilla 0.9.90 [Firefox 23.0/20130703181823]) 12:05:45 <Mic> atul_away: it seems you don't see errors thrown in the callbacks of promises :( 12:09:43 <Mic> And "this" isn't either what you'd want it to be. 12:13:06 <Mic> atul_away: http://pastebin.instantbird.com/239580 12:15:00 <Mic> Calling |bind(obj)| on a function will set |this| to |obj| in this function. I've done that for all of the callbacks for you. Try if that works and make sure that you're catching and reporting errors on your own. You'll never know that an error was thrown otherwise. 12:16:26 <Mic> Obviously I didn't ;) Here's an update: http://pastebin.instantbird.com/239581 12:18:43 <Mic> The arrow notation coming with Moz22 should hopefully help here, as it won't change the value of "this" when defining a function this way. 12:20:30 <Mic> Just ignore that if you don't know about that yet;) 12:50:55 <Mic> Bye! 12:51:26 <-- Mic has quit (Quit: Instantbird -- http://www.instantbird.com) 13:17:28 --> rosonline has joined #instantbird 13:31:00 <-- rosonline has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com) 14:27:50 --> DGMurdockIII has joined #instantbird 15:35:57 --> rosonline has joined #instantbird 15:42:50 <-- rosonline has quit (Client exited) 15:43:57 --> rosonline has joined #instantbird 15:45:50 <-- rosonline has quit (Ping timeout) 15:49:30 --> rosonline has joined #instantbird 15:51:26 <-- rosonline has quit (Client exited) 15:59:54 --> rosonline has joined #instantbird 16:51:23 <-- DGMurdockIII has quit (Ping timeout) 16:51:46 --> DGMurdockIII has joined #instantbird 17:01:48 --> aleth has joined #instantbird 17:01:48 * ChanServ sets mode +h aleth 17:13:12 <-- mpmc has quit (Connection reset by peer) 17:26:40 <instantbot> New Core - General bug 2032 filed by aleth@instantbird.org. 17:26:45 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=2032 nor, --, ---, nobody, NEW, Update to Mozilla 23 17:27:11 <instantbot> New Core - General bug 2033 filed by aleth@instantbird.org. 17:27:14 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=2033 nor, --, ---, nobody, NEW, Update to Mozilla 24 17:28:01 <instantbot> New Core - General bug 2034 filed by aleth@instantbird.org. 17:28:04 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=2034 nor, --, ---, nobody, NEW, Update to Mozilla 25 17:38:54 <-- rosonline has quit (Client exited) 17:40:30 --> rosonline has joined #instantbird 18:07:41 <-- atul_away has quit (Quit: http://www.mibbit.com ajax IRC Client) 18:23:59 --> Mic has joined #instantbird 18:24:00 * ChanServ sets mode +h Mic 18:24:21 <Mic> Good evening 18:48:20 <aleth> Hi Mic :) 19:06:18 <instantbot> aleth@instantbird.org denied review for attachment 2555 on bug 2015. 19:06:21 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=2015 enh, --, ---, nhnt11, NEW, Display buddy list in a tab. 19:07:29 * aleth doesn't think push/popContactElement are terrible names at all ;) 19:09:07 <aleth> nhnt11: If you have a reason for wanting to keep that delayedFilter method the way it is, let me know. I did hesitate to r- just because of that one issue. 19:23:10 <-- DGMurdockIII has quit (Connection reset by peer) 19:26:51 <Mic> I'll have to r- the patch anyways.. 19:29:07 <aleth> Hopefully it can be ready to land on Monday 19:36:15 * Mic needs to figure out again where to apply the latest patch. 19:36:38 <Mic> It's not pushed, so I can't just pull but need to apply it myself :S 19:43:39 --> mikk_s has joined #instantbird 19:43:48 <-- mikk_s has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com) 19:54:16 <-- aleth has quit (Quit: Ciao) 20:09:12 --> Optimizer has joined #instantbird 20:14:18 --> DGMurdockIII has joined #instantbird 20:41:23 --> Optimizer1 has joined #instantbird 20:42:19 <-- Optimizer has quit (Ping timeout) 20:56:00 * Optimizer1 is now known as Optimizer 20:56:02 --> Hronom has joined #instantbird 21:03:53 <-- Mic has quit (Quit: Instantbird -- http://www.instantbird.com) 21:46:45 <-- Hronom has quit (Ping timeout) 21:48:43 <-- rosonline has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com) 22:03:51 <-- DGMurdockIII has quit (Ping timeout) 22:04:26 --> DGMurdockIII has joined #instantbird 22:04:30 <-- DGMurdockIII has quit (Quit: DGMurdockIII) 23:27:52 --> DGMurdockIII has joined #instantbird 23:52:55 <-- qlum has quit (Connection reset by peer)