#instantbird log on 06 03 2013

All times are UTC.

00:02:58 --> wnayes has joined #instantbird
00:07:02 <-- dew has quit (Ping timeout)
00:12:23 --> wuwei`lab has joined #instantbird
00:28:30 --> dew has joined #instantbird
00:33:09 <-- wuwei`lab has quit (Quit: Leaving)
00:42:41 <-- Tonnes has quit (Connection reset by peer)
00:47:05 <-- rosonline has quit (Ping timeout)
00:48:06 --> rosonline has joined #instantbird
00:56:11 --> Tonnes has joined #instantbird
01:17:15 <-- rosonline has quit (Client exited)
01:27:31 <-- mconley has quit (Input/output error)
02:05:18 --> mconley has joined #instantbird
02:31:22 <-- wnayes has quit (Quit: wnayes)
03:09:49 <instant-buildbot> build #873 of linux-nightly-default is complete: Success [build successful]  Build details are at http://buildbot.instantbird.org/builders/linux-nightly-default/builds/873
03:30:25 <instant-buildbot> build #865 of macosx-nightly-default is complete: Success [build successful]  Build details are at http://buildbot.instantbird.org/builders/macosx-nightly-default/builds/865
04:25:27 <-- mconley has quit (Input/output error)
05:33:36 --> clokep_work has joined #instantbird
05:33:36 * ChanServ sets mode +o clokep_work 
05:36:42 <-- clokep_work has quit (Quit: Instantbird 1.5a1pre -- http://www.instantbird.com)
05:49:25 --> wuwei`lab has joined #instantbird
05:50:54 --> jb has joined #instantbird
05:51:27 <instant-buildbot> build #968 of win32-nightly-default is complete: Failure [failed compile]  Build details are at http://buildbot.instantbird.org/builders/win32-nightly-default/builds/968
06:04:41 <-- Optimizer has quit (Ping timeout)
06:07:57 <-- DGMurdockIII has quit (Ping timeout)
06:12:38 --> zen_monkey has joined #instantbird
06:12:42 <-- zen_monkey has left #instantbird (Saliendo)
06:14:23 <-- jb has quit (Ping timeout)
07:00:59 <-- Mook has quit (Ping timeout)
07:02:01 --> Mic has joined #instantbird
07:02:01 * ChanServ sets mode +h Mic 
07:05:14 --> Mook has joined #instantbird
07:31:28 --> FireFly_TB has joined #instantbird
07:33:37 <-- Mic has quit (Quit: Instantbird -- http://www.instantbird.com)
07:33:57 --> Mic has joined #instantbird
07:33:57 * ChanServ sets mode +h Mic 
07:45:43 <-- FireFly_TB has quit (Input/output error)
08:30:26 --> jb has joined #instantbird
08:49:34 --> flo-retina has joined #instantbird
08:49:34 * ChanServ sets mode +qo flo-retina flo-retina 
08:55:32 <-- jb has quit (Quit: jb)
08:59:00 --> jb has joined #instantbird
09:12:06 * wuwei`lab is now known as wuwei|afk
09:16:54 --> aleth has joined #instantbird
09:16:54 * ChanServ sets mode +h aleth 
09:18:45 <-- chrisccoulson has quit (Ping timeout)
09:23:19 --> chrisccoulson has joined #instantbird
09:24:37 <-- gerard-majax_ has quit (Ping timeout)
09:24:49 <aleth> nhnt11: Ping me about context menus
09:33:19 --> novabyte has joined #instantbird
09:37:51 --> nhnt11 has joined #instantbird
09:39:35 <nhnt11> There seems to be some spam on my blog :(
09:46:01 --> Optimizer1 has joined #instantbird
09:54:34 <nhnt11> Mic: The tab code is working :)
09:54:49 <nhnt11> The conversation now injects menu items into the popup menu, and they work :D
09:55:46 <nhnt11> I'm going to have a couple of questions in a minute.
09:56:54 <-- jb has quit (Ping timeout)
10:04:32 --> gerard-majax_ has joined #instantbird
10:05:59 * nhnt11 just realized he forgot to write yesterday's blog post.
10:12:52 <Mic> Very nice :)
10:13:29 <Mic> I'll have lunch in a few minutes and will be away for the afternoon again.
10:13:42 <nhnt11> Mic: Okay.
10:13:47 <nhnt11> Would you like to see my current code?
10:13:56 --> jb has joined #instantbird
10:14:20 <nhnt11> (I just properly set up the injectMenuItems function in conversation and went to bed last night)
10:14:39 <Mic> The next few weeks I'll be away in the afternoons (CEST) but I can come here earlier in the morning if you like
10:15:08 <nhnt11> Mic: I'm not a morning person, will you be available in the evenings? (Night for me I suppose)
10:15:16 <Mic> Yes
10:15:23 <nhnt11> That works then :)
10:16:47 <nhnt11> Mic: Here's the code: http://pastebin.instantbird.com/212512
10:17:29 <nhnt11> There are a couple of issues I have with it now. a) Localization doesn't work (need to research on that) and b) I need to destroy menuitems that are removed in line 125.
10:18:51 <instantbot> florian@instantbird.org granted review for attachment 2473 on bug 1989.
10:18:53 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=1989 min, --, ---, clokep, ASSI, Port |Bug 659788 - Add icons for Windows 7 jumplist taskbar items.|
10:19:04 <Mic> I was just about to ask if things like on line 21 in the diff actually work.
10:19:19 <Mic> You know about string bundles?
10:19:37 <nhnt11> Mic: I've heard of them but that's it. Researching now.
10:20:46 <aleth> nhnt11: There is an easier way than you [tbpersist] flags
10:21:13 <nhnt11> Mic: I'd also like to use something other than parentNode.parentNode.... to get tabbrowser. I tried document.getElementById("conversations"); but that didn't work :/
10:21:21 <nhnt11> aleth: Do tell :)
10:21:25 <aleth> Take a look at http://lxr.instantbird.org/instantbird/source/instantbird/content/instantbird.xul#120
10:21:39 --> qlum has joined #instantbird
10:22:08 <aleth> The idea is you have the default entries in the <content>, and JS code called on popupshowing hides the ones that are not applicable and/or adds tab-specific ones
10:22:37 <aleth> For entries in xml files, you can use the dtd files to localize the strings. For entries added via JS, use the string bundle
10:23:15 <aleth> Note the code in the onpopupshowing handler I linked to makes a new nsContextMenu object every time.
10:25:10 <nhnt11> aleth: I'm a little confused. If it makes a new one every time, won't even the default elements be wiped?
10:25:17 <Mic> I'm not sure how that is easier?
10:25:21 <aleth> No.
10:25:22 <Mic> Or better?
10:25:26 <flo-retina> Mic: things like lines 20 and 21 in that pastebin don't work
10:25:42 <nhnt11> flo-retina: I know they don't, I just... left them there :P
10:25:43 <aleth> It's easier because you don't have to remember the state (tbpersist) for all those items
10:25:44 <Mic> Yes, I would have been surprised if they did
10:25:57 <Mic> It's in a CDATA section..
10:26:28 <flo-retina> nhnt11: ah sorry, I just saw Mic's "I was just about to ask if things like on line 21 in the diff actually work." and missed your previous sentence.
10:26:33 <aleth> nhnt11: Items are never wiped, just hidden.
10:27:02 <Mic> aleth: I don't think that's an advantage when arbitrary tabs can add items to the menu.
10:27:20 <Mic> I really gtg.
10:28:13 <aleth> Maybe I'm missing something, but I don't understand your point.
10:32:39 <aleth> When the popup is hidden, you remove the extra items the tab added
10:32:43 <aleth> like e.g. http://lxr.instantbird.org/instantbird/source/instantbird/content/nsContextMenu.js#35
10:33:42 <nhnt11> aleth: That's kinda what it's doing now, but it's removing the items before showing rather than after hiding
10:33:55 <nhnt11> Though it should probably be moved, yes.
10:34:00 <aleth> I'm not even sure that that is necessary (possibly the entries are removed automatically when the popup closes)
10:34:22 <aleth> nhnt11: I just saw lots of tbpersist=true flags and I suspect you can do without.
10:34:38 <aleth> But if you think it's the cleanest way to do it, fine :)
10:34:51 <nhnt11> aleth: They aren't removed. That's why I added the tbpersist stuff in the first place.
10:35:17 <nhnt11> I was initially adding a "Test" menu item and after a few right clicks ended up with the whole menu full of "Test"s :P
10:35:32 <aleth> OK :)
10:35:53 <aleth> That's why there's a cleanup() function in the link above then ;)
10:36:04 <nhnt11> aleth: Also this way a tab can add it's own persistent menu item (I can't think of any use cases right now, but someone may find use for it in an addon one day :P)
10:36:26 <nhnt11> s/it's/its
10:36:54 <aleth> I thought by "persistent" you meant "present on every tab"?
10:36:59 <nhnt11> aleth: Yes.
10:37:13 <aleth> Add-ons could do that anyway...
10:37:30 <nhnt11> aleth: Good point :P
10:37:49 <aleth> Anyway, I just wanted to point you to that code, to give you another possible approach to choose from ;)
10:38:06 <nhnt11> I'll try that method out too and decide :)
10:40:56 <aleth> Sounds like you're getting close to having it all work anyway :)
10:41:23 <nhnt11> aleth: Do I need to explicitly destroy the removed menu items? Or can I just forget about it and let GC do its thing?
10:41:58 <aleth> nhnt11: I don't understand the question. How do you remove the items?
10:42:26 <nhnt11> aleth: line125 in the diff.
10:42:36 <nhnt11> aPopupMenu.removeChild()
10:42:52 <aleth> That's all you need to do.
10:42:57 <nhnt11> Great.
10:42:59 <-- Mic has quit (Quit: Instantbird -- http://www.instantbird.com)
10:43:11 <aleth> If there is no reference left to the removed item, GC will take it.
10:43:39 <nhnt11> aleth: While I'm at it, shall I change the existing "var"s to "let"s?
10:43:53 <aleth> You might as well, if you are changing most of the surrounding code anyway.
10:43:59 <nhnt11> Right now I've been using "var" in any new code to keep it consistent.
10:44:06 <aleth> And improve variable names which you think are confusing (e.g. too many "convs"
10:44:06 <nhnt11> Okay.
10:44:12 <nhnt11> Sounds good.
10:54:48 <nhnt11> I'll be back in a few hours.
10:54:51 <-- nhnt11 has left #instantbird ()
10:58:37 <-- wuwei|afk has quit (Quit: Leaving)
11:01:32 <-- EionRobb has quit (Ping timeout)
11:06:00 --> clokep_wp8 has joined #instantbird
11:06:53 <clokep_wp8> nhnt11: You might want to do a separate check-in changing all let to var?
11:07:02 <-- clokep_wp8 has quit (Connection reset by peer)
11:08:58 <-- Even has quit (Ping timeout)
11:08:58 <-- flo-retina has quit (Ping timeout)
11:10:07 --> Even has joined #instantbird
11:10:07 * ChanServ sets mode +o Even 
11:10:16 --> flo-retina has joined #instantbird
11:10:17 * ChanServ sets mode +qo flo-retina flo-retina 
11:15:42 --> mpmc has joined #instantbird
11:18:25 <-- jb has quit (Ping timeout)
11:21:57 --> jb has joined #instantbird
11:32:11 --> nhnt11 has joined #instantbird
11:41:18 <-- aleth has quit (Quit: Ciao)
11:41:27 --> aleth has joined #instantbird
11:41:27 * ChanServ sets mode +h aleth 
12:16:37 <nhnt11> I'm writing some code that needs to open a file, but when I run it I get "IO is not defined". I used var IO = Cc["@mozilla.org/io/scriptable-io;1"].getService(); Any pointers?
12:17:50 <nhnt11> Should I try and use Services.io instead?
12:18:05 <nhnt11> No that doesn't seem like what I want.
12:19:09 <-- nhnt11 has quit (Input/output error)
12:19:25 --> nhnt11 has joined #instantbird
12:20:25 <-- nhnt11 has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com)
12:20:36 --> nhnt11 has joined #instantbird
12:22:34 <aleth> nhnt11: Don't you want @mozilla.org/network/file-input-stream to open a file?
12:22:44 <-- jb has quit (Quit: jb)
12:22:48 <aleth> (nsIFileInputStream)
12:23:01 --> jb has joined #instantbird
12:23:16 <-- jb has quit (Input/output error)
12:23:54 <nhnt11> aleth: https://developer.mozilla.org/en-US/docs/FileGuide/FileReading says to use nsIScriptableIO.
12:24:02 <nhnt11> To get the stream to a file.
12:24:07 --> jb has joined #instantbird
12:25:10 <nhnt11> I have worse problems now, I'm getting this when I load the addon.. http://pastebin.instantbird.com/212580
12:25:11 <nhnt11> :(
12:25:13 <aleth> nhnt11: The "important note" on that page suggests nsIScriptableIO never landed, if I understand correctly
12:25:51 <nhnt11> aleth: Hmm. I thought it was one of those things that are available but not "official" or something.
12:26:07 <aleth> The new API is OS.file but I haven't used that myself/
12:26:15 <aleth> (yet)
12:26:16 <aleth> https://developer.mozilla.org/en-US/docs/JavaScript_OS.File
12:26:36 <nhnt11> I'm going through this now: https://developer.mozilla.org/en-US/docs/Code_snippets/File_I_O
12:28:17 <aleth> This works https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIFileInputStream
12:28:56 <aleth> You may want to follow it with https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIConverterInputStream
12:29:52 <nhnt11> Thanks :)
12:31:02 <aleth> But if you end up using OS.File then I can ask you if/when I need to use it ;)
12:31:47 <nhnt11> Heh. I'll decide what to do after I read all this.
12:44:09 --> rosonline has joined #instantbird
12:50:27 <-- nhnt11 has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com)
12:50:35 --> nhnt11 has joined #instantbird
12:52:44 <instantbot> Check-in: http://hg.instantbird.org/instantbird/rev/2b2069c68a86 - Patrick Cloke - Bug 1989 - Port |Bug 659788 - Add icons for Windows 7 jumplist taskbar items|, r=fqueze.
12:53:25 <nhnt11> Yay. I was working on that pastebin addon I mentioned and it works :)
12:53:37 <aleth> Great :)
12:53:53 <aleth> You should put your add-ons on AIO ;)
12:54:02 <nhnt11> aleth: I will after some polishing.
12:54:26 <nhnt11> The addon currently uses the file extension to set the syntax highlighting language :)
12:54:49 <nhnt11> aleth: Now for that "pastebin if >N lines in inputbox" addon..
12:57:37 <nhnt11> aleth: Here's the code I used to read the file.. adapted from stuff I read on various pages. http://pastebin.instantbird.com/212593
12:58:50 <aleth> That looks fine to me for an add-on.
13:00:55 <flo-retina> main thread I/O :-/
13:01:00 <flo-retina> but yeah, fine for an add-on.
13:01:16 <-- Kaishi has quit (Quit: Kaishi)
13:02:00 <nhnt11> flo-retina: I wanted it to be main thread.
13:02:22 <nhnt11> It would be weird if the user did a /paste and then nothing happened for a bit and the UI was free.
13:02:58 <nhnt11> (And I didn't feel like making a progressbar etc)
13:04:07 <instant-buildbot> build #401 of macosx-onCommit is complete: Failure [failed compile]  Build details are at http://buildbot.instantbird.org/builders/macosx-onCommit/builds/401  blamelist: Patrick Cloke <clokep@gmail.com>
13:09:21 <nhnt11> Let's say I have a conversation aConv. How do I get the window that contains aConv? I tried aConv.ownerDocument.defaultView but ownerDocument is undefined.
13:09:56 <aleth> Is aConv the binding or...?
13:10:28 <nhnt11> Yes
13:11:06 <nhnt11> (Passed to the command's run function)
13:11:30 <aleth> Why an't you just use "window"?
13:11:58 <nhnt11> Will that definitely refer to the window that contains aConv?
13:12:41 <-- rosonline has quit (Ping timeout)
13:12:42 <aleth> Depends on from where you are using it of course, but probably yes.
13:13:03 <aleth> Check and find out? ;)
13:13:17 <nhnt11> Hmm okay. I just wanted to do a window.alert() as a crude way of notifying the user of an IO exception
13:13:19 <nhnt11> Okay :)
13:14:39 <nhnt11> Yes I know there's an XPCOM service to show alerts but I wanted to try this anyway.
13:15:00 <aleth> But to answer your specific question, convBinding.ownerDocument.defaultView should give you the conversation window.
13:15:27 <nhnt11> aleth: That's what I thought :(
13:17:18 --> qheaden has joined #instantbird
13:17:48 <nhnt11> aleth: I just tried using "window". window is not defined :P I have to get one using Services.wm but again, how would I know which window to alert in...
13:18:07 <qheaden> Hello everyone!
13:18:11 <aleth> Is this your add-on code?
13:18:21 <nhnt11> aleth: Yes.
13:18:23 <nhnt11> Hi qheaden
13:18:28 <aleth> Where do you get aConv from?
13:18:29 --> rosonline has joined #instantbird
13:18:55 <aleth> "window" is not defined from an add-on of course.
13:19:12 <nhnt11> aleth: It's passed to the command. I register a "/paste" command using Services.cmd and aConv is passed to the command's run() function.
13:19:29 <aleth> That's probably not the conversation binding that is passed.
13:19:47 <aleth> Check and find out?
13:19:58 <qheaden> flo-retina: ping
13:20:17 <nhnt11> aleth: I'm getting confused by what you call a "binding" I think. I can call aConv.sendMsg(), so I thought it was the conversation binding.
13:20:47 <aleth> When I say "conversation binding" I mean the main XBL in conversation.xml
13:21:02 <aleth> The panel.
13:21:04 * nhnt11 hopes to get properly familiar with XBL before the coding period.
13:21:14 <nhnt11> aleth: Yes, that's the one.
13:21:37 <nhnt11> So I'm interpreting it correctly.
13:21:43 <aleth> nhnt11: http://lxr.instantbird.org/instantbird/source/chat/components/public/prplIConversation.idl#45
13:21:49 <flo-retina> qheaden: I'm around
13:22:09 <flo-retina> but may not answer quickly (and it's likely that others would have answers to your questions too :))
13:22:28 <nhnt11> aleth: I don't think that's what is called. What's the best way to check?
13:23:01 <aleth> nhnt11: I'd say look at other command handlers
13:23:43 <aleth> Or dump some identifying properties.
13:24:01 <nhnt11> aleth: I'll try an Object.keys() P
13:24:02 <nhnt11> :P
13:24:31 <qheaden> flo-retina: I know clokep isn't around, but I'm letting you know I won't be back here until around 4 hours from now. Don't want you all to think I'm slacking. :)
13:26:31 <-- rosonline has quit (Ping timeout)
13:26:34 <nhnt11> flo-retina: I'm asking you as a shortcut, is the aConv that is passed to a command's run function the conversation binding?
13:26:45 <flo-retina> qheaden: ok, thanks for the heads up. Btw, I don't think you specifically need to ping someone for this. If you just say something like "I'm going to be away for the new 4 hours or so", whoever is curious will find it by looking for your nick in the log ;)
13:27:26 <flo-retina> nhnt11: can you show a link to the code you are talking about? (my guess is the answer is "no", but it would be easier to be sure if I saw the code :))
13:27:36 <qheaden> flo-retina: Okay, I'll do that next time. :)
13:28:05 <nhnt11> flo-retina: http://pastebin.instantbird.com/212626
13:28:28 <qheaden> See you all later.
13:28:42 <flo-retina> nhnt11: http://lxr.instantbird.org/instantbird/source/chat/components/public/imICommandsService.idl#35
13:28:51 <-- qheaden has quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
13:28:57 <flo-retina> it's a prplIConversation (my guess was right)
13:29:18 <nhnt11> Ah.
13:29:33 <aleth> That was my guess too, that's why I linked to the prplIConversation idl above ;)
13:29:35 <flo-retina> it makes sense as that code was somehow written with the assumption that commands were implemented by prpls
13:29:47 <flo-retina> I can see how that would be annoying for UI add-ons though
13:29:52 <nhnt11> flo-retina: Fair enough.
13:33:16 <aleth> nhnt11: There's probably a Services.conversations method you can call to get to the binding
13:33:35 <nhnt11> aleth: I'll look at that now.
13:35:17 <aleth> Hmm, or maybe that will only give you the imIConversation
13:35:54 <nhnt11> aleth: It's okay, I don't want to spend too much time on this.
13:36:29 <nhnt11> I'm adapting from https://developer.mozilla.org/en-US/docs/Code_snippets/Alerts_and_Notifications
13:36:33 <aleth> One way to get a tour of all the different conversation objects :P
13:36:51 <nhnt11> (There's a snippet under "If you need to display a comparable alert on a platform...")
13:36:52 <aleth> Yeah, for a simple window.alert it's overkill
13:36:54 <nhnt11> Heh
13:37:33 <aleth> Though alerts are usually meant more for debugging than for end-users ;)
13:37:56 <nhnt11> aleth: I need to notify the user that reading the file failed. I can't think of any other way that isn't overkill.
13:38:07 <flo-retina> the only way I can find to get the conv binding is to import imWindows.jsm, and then Conversations._uiConv[Services.conversations.getUIConversation(prplConv).id]
13:38:11 <aleth> Right, for an add-on it's ifine.
13:38:25 <flo-retina> that's ugly, but we could likely live with it for an add-on
13:38:44 <nhnt11> flo-retina: Ew. :P
13:38:54 <nhnt11> But at least there's a way :D
13:39:29 <aleth> nhnt11: Normal IB code isn't supposed to have to do that kind of thing ;)
13:40:31 <flo-retina> if getting to a conv binding from a command is a common use case, some API likely needs to be improved ;)
13:41:10 <nhnt11> flo-retina: I should probably use imNotifications.jsm to display the alert
13:41:15 * nhnt11 wonders why he didn't think about that earlier.
13:41:39 <aleth> Unless you want the alert near the textbox...
13:41:53 <nhnt11> aleth: No no just any alert is fine :S
13:41:58 <nhnt11> (So much ado over this! :D)
13:43:14 --> mconley has joined #instantbird
13:46:17 <nhnt11> I just thought of a much better way. Show a system message (seems obvious...)
13:46:44 <aleth> :)
13:47:34 <nhnt11> I have no idea how to do that :P
13:48:30 <aleth> Services.conversations.getUIConversation(aConv).systemMessage(...) should work
13:49:14 <aleth> http://lxr.instantbird.org/instantbird/source/chat/components/public/imIConversationsService.idl#18
13:50:22 <nhnt11> Thanks.
13:50:48 <nhnt11> It's amazing how helpful people in this channel are :)
13:52:16 <-- nhnt11 has quit (Input/output error)
13:52:27 --> nhnt11 has joined #instantbird
14:03:43 <-- aleth has quit (Quit: Ciao)
14:09:09 <nhnt11> I'll be back after dinner.
14:09:14 * nhnt11 is now known as nhnt11_away
14:30:02 <-- mpmc has quit (Ping timeout)
14:36:56 <-- nhnt11_away has quit (Ping timeout)
14:38:15 --> nhnt11 has joined #instantbird
14:46:38 --> mpmc has joined #instantbird
14:55:10 * Optimizer1 is now known as Optimizer
14:57:11 <-- nhnt11 has quit (Ping timeout)
14:58:59 --> nhnt11 has joined #instantbird
14:59:03 <nhnt11> What's the best way for an add-on to overlay a method in the conversation binding?
15:00:28 <nhnt11> I could only think of overlaying instantbird.xul, and then replace the method I want to override every time a conversation is added.
15:02:47 <-- nhnt11 has quit (Ping timeout)
15:05:45 --> nhnt11 has joined #instantbird
15:08:14 <flo-retina> nhnt11: that's a possible way, yes. We have a few examples of code doing it that way. There are links to sample of code in the wiki.
15:09:34 <-- nhnt11 has quit (Ping timeout)
15:13:07 --> nhnt11 has joined #instantbird
15:13:10 <nhnt11> flo-retina: Okay, thanks
15:15:37 <-- nhnt11 has quit (Input/output error)
15:15:41 --> nhnt11 has joined #instantbird
15:18:11 <-- nhnt11 has quit (Input/output error)
15:18:14 --> nhnt11 has joined #instantbird
15:18:17 <-- mpmc has quit (Client exited)
15:19:23 --> rohandalvi has joined #instantbird
15:19:57 <-- nhnt11 has quit (Ping timeout)
15:20:19 --> nhnt11 has joined #instantbird
15:20:21 <nhnt11> flo-retina: If I wanted to modify a message before it's sent, would it be enough to override sendMsg() in UIConversation? http://lxr.instantbird.org/instantbird/source/chat/components/src/imConversations.js#273
15:21:01 <flo-retina> I don't think an add-on can change that
15:21:43 <nhnt11> Hmm.
15:22:04 <flo-retina> but if it's for local testing and rebuilding is fine, sure
15:22:29 <nhnt11> Perhaps I could add a separate keybinding to do it instead... like Ctrl+Shift+Enter or something.
15:22:49 <-- nhnt11 has quit (Input/output error)
15:22:56 --> nhnt11 has joined #instantbird
15:22:59 <nhnt11> (I want to extend the pastebin addon to pastebin the message in the input box)
15:24:46 <-- nhnt11 has quit (Ping timeout)
15:25:00 --> nhnt11 has joined #instantbird
15:26:52 <-- nhnt11 has quit (Ping timeout)
15:27:03 --> nhnt11 has joined #instantbird
15:27:56 <flo-retina> nhnt11: why isn't that the default behavior?
15:28:47 <-- nhnt11 has quit (Ping timeout)
15:29:06 --> nhnt11 has joined #instantbird
15:30:19 <nhnt11> flo-retina: Sometimes I pipe diffs to files and it's faster for me to pastebin the file directly rather than open it and copy the contents.
15:31:18 <flo-retina> so how do you handle giving the file path to instantbird?
15:31:37 <-- nhnt11 has quit (Input/output error)
15:31:38 <flo-retina> I think Standard8 uses a shell script that just pastebins for him (likely with a pipe too)
15:31:41 --> nhnt11 has joined #instantbird
15:31:46 <flo-retina> and then he copies the URL
15:32:32 <nhnt11> flo-retina: /paste /path/to/file
15:32:47 <flo-retina> without completion on file paths, that sounds tedious ;)
15:33:58 <nhnt11> flo-retina: Something like $hg diff | pastebin.sh would be brilliant. Especially if the script put the link in the clipboard.
15:34:11 <-- nhnt11 has quit (Input/output error)
15:34:14 --> nhnt11 has joined #instantbird
15:34:32 <flo-retina> hg diff |paste
15:34:44 <flo-retina> bin.sh is too much typing (ok, there's completion in the shell :))
15:35:54 <-- nhnt11 has quit (Ping timeout)
15:36:17 --> nhnt11 has joined #instantbird
15:36:22 <nhnt11> flo-retina: Yes well I got the point across :P
15:37:01 <-- Mook has quit (Quit: Mook)
15:37:12 <flo-retina> :)
15:38:03 <-- nhnt11 has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com)
15:38:08 --> nhnt11 has joined #instantbird
15:39:21 <-- jb has quit (Quit: jb)
15:39:28 --> jb has joined #instantbird
15:39:31 <nhnt11> flo-retina: Is there any way to send a message other than the enter key?
15:39:49 <flo-retina> we could add "send" to the context menu :)
15:40:03 <flo-retina> nhnt11: currently, no
15:40:14 <Even> It sure miss a graphic UI element for that.
15:40:31 <Even> Something "discoverable" (discoverable != context menu ^^).
15:40:38 <-- nhnt11 has quit (Input/output error)
15:40:41 --> nhnt11 has joined #instantbird
15:40:58 <flo-retina> Even: what's the use case?
15:41:04 <Even> Good UI.
15:41:35 <Even> I know a lot of people that don't think "enter".
15:41:44 <Even> My mother looked for send and I had to tell her.
15:41:47 <flo-retina> The "use case" is "in which case would you use it?"
15:41:47 <nhnt11> flo-retina: I'm actually happy there's no other way :P
15:41:54 <Even> And she never tried or thought to right click.
15:42:03 <nhnt11> It means I can override the keybinding to effectively override sendMsg :P
15:42:17 <flo-retina> Even: if discoverability is the only issue, taking pixels off everybody's screen isn't the best fix
15:43:02 <Even> Whaterver the best fix is. Right now it means you understand software to use this part of the UI.
15:43:11 <-- nhnt11 has quit (Input/output error)
15:43:12 <flo-retina> Even: for discoverability pursing something like "Input placeholder" seems a good idea to me :).
15:43:24 <Even> ??
15:43:35 <Even> I don't even start to understand either the sentence or the idea.
15:43:43 <Even> I don't know which one :p
15:43:44 <flo-retina> Even: it's also difficult for some people to discover where they need to type text
15:43:56 <Even> Ah.
15:44:06 <flo-retina> Even: "Input placeholder" is the name of an add-on by Mic
15:44:32 <flo-retina> the idea was to put in grey text "Type your message here and press enter to send" inside the textbox when it's empty.
15:44:34 <Even> Well, at least that part is better since the good place is already active when you start a conversation.
15:44:39 <Even> Oh.
15:44:56 <Even> That works too. And is easy to implement.
15:44:56 <flo-retina> Even: you assume people know what a focused element looks like and means. Confused people are unlikely to know that.
15:45:05 <Even> True enough.
15:45:10 <Even> :)
15:45:12 <flo-retina> There was a lot of discussion around what the text should be exactly
15:45:28 <flo-retina> and that's why we created an add-on; so that we can try and tweak easily various texts
15:45:38 <Even> okay
15:46:03 <flo-retina> Even: the use case for wanting something in the context menu is completely different
15:46:18 <Even> I don't see it :)
15:46:23 --> nhnt11 has joined #instantbird
15:46:25 * nhnt11 wonders what on earth is going on with his internet :'(
15:46:30 <Even> (what the use case would be)
15:46:49 <flo-retina> Even: sometimes it's possible to paste something in the input field with only the mouse (either through the keyboard; or through the middle mouse button on Linux), and to need to reach the keyboard to send. That's annoying
15:47:36 <Even> Well, if that's you use case, the "right click then move your mouse then click again" is also useful.
15:47:43 <Even> Enter key will still be nearer.
15:48:01 <Even> useful => horrible
15:48:01 <flo-retina> typically happens to me when I'm in front of my macbook, and want to show to someone the error message that just caused my linux build to fail on the other machine. With a single hand I can reach the mouse. If I need the keyboard, I need to put away my laptop before.
15:48:03 <Even> I'm tired :)
15:48:56 <Even> Well, a Send button would be more discoverable and easier to use. Could appear only when your mouse is over the text area.
15:49:06 <Even> (which you would obviously over to paste)
15:49:06 <flo-retina> Even: a button would work in this case, yes. *But* it's a very rare use case; and I don't think it's worth cluttering the UI all the time, for something that happens less than once a month (builds don't fail that often :-D)
15:49:21 <Even> And disappear if text is entered or mouse unmoved during a set of time.
15:49:37 <flo-retina> Even: I also considered having a "send" button appearing when hovering the textarea, or the right border of the text area.
15:49:42 <flo-retina> that feels more like an add-on though
15:49:58 <Even> Yeah, but the use case of very mouse oriented people does exists.
15:50:05 <Even> Better to have an accessible UI element for that;
15:50:16 <-- nhnt11 has quit (Ping timeout)
15:50:29 <Even> Than a nearly useless context menu entry (I'm pretty confident than aside from the Ib dev, noone will ever find it)
15:50:58 --> nhnt11 has joined #instantbird
15:51:04 <Even> And even me I wouldn't have. The first time I tried to right click this space in Ib was 4 minutes ago to see what it did...
15:52:24 <-- rohandalvi has quit (Client exited)
15:52:24 <Even> I really don't think I tried it before.
15:52:25 <flo-retina> "Than a nearly useless context menu entry" why do you think it never got implemented? ;)
15:52:42 <Even> For good reason :P
15:52:50 <flo-retina> I would accept a patch for it; but not bother writing it myself (and not even filing a bug for it unless someone is interested in implementing it)
15:53:02 <Even> Don't see why.
15:53:07 <Even> That is extension stuff.
15:53:13 <flo-retina> Even: you don't have the spell checker enabled?
15:53:14 <Even> This time truely.
15:53:24 <Even> I do.
15:53:26 <Even> But it does not work :)
15:53:34 <flo-retina> why?
15:53:39 <Even> Dunno.
15:53:45 <Even> Nerver worked on my Linux box.
15:53:55 * flo-retina discovers the context menu when clicking on a word with a red underline
15:54:15 <Even> Don't have any :P Ever.
15:54:46 <flo-retina> Even: also, I think if you use "paste" from the context menu, "send" is then very discoverable
15:54:48 <-- nhnt11 has quit (Ping timeout)
15:54:56 <Even> I don't.
15:55:04 <flo-retina> and if you don't, you don't need that context menu item anyway
15:55:07 <Even> I always use keyboard for this.
15:55:32 <Even> (or middle mouse ^^)
15:55:41 <Even> (that happens too on Linux quite often)
15:57:11 <Even> But I'm part of a sect that says that every action possible in a software should have an UI element for it and that it should not be easy to find without right clicking nor keyboard.
15:57:14 <Even> xD
15:57:41 <Even> changed my sentence half through
15:57:42 <instant-buildbot> build #420 of linux-onCommit is complete: Success [build successful]  Build details are at http://buildbot.instantbird.org/builders/linux-onCommit/builds/420
15:57:44 <Even> should be easy to find
15:57:45 <Even> xD
15:58:10 <flo-retina> Even: what if I'm part of a sect that says sentences should be easy to understand? :-P
15:58:33 * flo-retina thinks we should stop polluting the log with things we have no intention of implementing.
15:58:50 --> nhnt11 has joined #instantbird
15:59:21 <Even> Then you would be right to be part of it xD
15:59:54 <Even> If it has subliminal power to achieve this I would like to be part of it too.
16:00:40 <-- nhnt11 has quit (Ping timeout)
16:00:53 --> nhnt11 has joined #instantbird
16:02:42 <-- nhnt11 has quit (Ping timeout)
16:02:56 --> nhnt11 has joined #instantbird
16:05:26 <-- nhnt11 has quit (Input/output error)
16:05:29 --> nhnt11 has joined #instantbird
16:08:00 <-- nhnt11 has quit (Input/output error)
16:08:02 --> nhnt11 has joined #instantbird
16:09:42 <instant-buildbot> build #407 of win32-onCommit is complete: Success [build successful]  Build details are at http://buildbot.instantbird.org/builders/win32-onCommit/builds/407
16:10:32 <-- nhnt11 has quit (Input/output error)
16:10:36 --> nhnt11 has joined #instantbird
16:12:28 <-- nhnt11 has quit (Ping timeout)
16:12:39 --> nhnt11 has joined #instantbird
16:13:01 <nhnt11> What would be a reasonable number of lines, beyond which a message gets pastebin'd?
16:13:43 <nhnt11> I was thinking 10
16:16:23 <-- nhnt11 has quit (Ping timeout)
16:18:46 <flo-retina> nhnt11: it may be a number of characters.
16:19:04 <flo-retina> especially if the message is too long to be sent as one message
16:20:30 --> nhnt11 has joined #instantbird
16:22:21 <-- nhnt11 has quit (Ping timeout)
16:22:39 --> nhnt11 has joined #instantbird
16:22:54 <nhnt11> flo-retina: Okay I'll try that later.
16:23:10 <nhnt11> Or add it as an extra condition, or something.
16:25:09 <-- nhnt11 has quit (Input/output error)
16:25:12 --> nhnt11 has joined #instantbird
16:25:53 <Even> Yeah, number of chars looks better than number of lines.
16:26:26 <Even> Because they are probably not the same on the recipient's computer for a start (long lines). And that might also depend on the theme used.
16:26:41 <flo-retina> number of lines seems only relevant on IRC where linebreaks are "expensive"
16:27:15 <Even> Yeah.
16:27:42 <-- nhnt11 has quit (Input/output error)
16:27:45 --> nhnt11 has joined #instantbird
16:27:58 <Even> But wouldn't that be too much to make exceptions based on the protocol? Or if not, the right way would be for the protocol to register its exception to the core probably.
16:29:17 <-- jb has quit (Ping timeout)
16:30:05 <Even> Another way to put it is probably, a general set of rules tweakable for each protocol by the protocol :)
16:30:15 <-- nhnt11 has quit (Input/output error)
16:30:18 --> nhnt11 has joined #instantbird
16:32:48 <-- nhnt11 has quit (Input/output error)
16:32:50 --> nhnt11 has joined #instantbird
16:36:35 --> nhnt13 has joined #instantbird
16:37:09 <-- nhnt11 has quit (Ping timeout)
16:39:37 <-- Optimizer has quit (Quit: Instantbird 1.4a1pre -- http://www.instantbird.com)
16:39:46 --> Optimizer has joined #instantbird
16:40:36 --> Mook_as has joined #instantbird
16:51:41 <nhnt13> Finally, it works.
16:52:41 <nhnt13> This is a ten line message.
16:52:41 <nhnt13> line 2
16:52:42 <nhnt13> line 3
16:52:42 <nhnt13> line 4
16:52:42 <nhnt13> line 5
16:52:42 <nhnt13> line 6
16:52:42 <nhnt13> line 7
16:52:42 <nhnt13> line 8
16:52:42 <nhnt13> line 9
16:52:42 <nhnt13> line 10
16:52:53 <nhnt13> Oh no. I'm terribly sorry, it worked in the other channel.
16:54:35 <nhnt13> It worked in every other channel I tried, new and old. I'm too afraid to try again here. :(
16:54:43 * nhnt13 is now known as nhnt11
16:55:01 <nhnt11> http://pastebin.instantbird.com/212766
16:55:03 <nhnt11> http://pastebin.instantbird.com/212767
16:55:05 <-- gerard-majax_ has quit (Ping timeout)
16:55:12 <nhnt11> This is a ten line message.
16:55:13 <nhnt11> line 2
16:55:14 <nhnt11> line 3
16:55:15 <nhnt11> line 4
16:55:16 <nhnt11> line 5
16:55:17 <nhnt11> line 6
16:55:18 <nhnt11> line 7
16:55:19 <nhnt11> line 8
16:55:20 <nhnt11> line 9
16:55:30 <nhnt11> http://pastebin.instantbird.com/212768
16:55:42 <nhnt11> http://pastebin.instantbird.com/212769
16:55:52 <nhnt11> http://pastebin.instantbird.com/212770
16:56:03 <nhnt11> http://pastebin.instantbird.com/212771
16:56:39 <-- nhnt11 has left #instantbird ()
16:57:18 --> nhnt11 has joined #instantbird
16:57:41 <nhnt11> I'm so sorry. I was doing stuff in another channel and stuff got sent here.
16:57:51 <nhnt11> There's something very wrong in my code.
16:58:26 <nhnt11> I should've used my Testing profile, apologies again.
16:58:41 <-- nhnt11 has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com)
16:58:48 --> nhnt11 has joined #instantbird
17:00:56 <Mook_as> good morning to you too! :D
17:03:44 <nhnt11> Good morning Mook_as :)
17:09:22 --> rohandalvi has joined #instantbird
17:11:39 <-- Tonnes has quit (Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803])
17:13:19 <-- rohandalvi has quit (Connection reset by peer)
17:13:30 --> rohandalvi has joined #instantbird
17:14:22 <-- deltafalcon has quit (Connection reset by peer)
17:16:21 --> Tonnes has joined #instantbird
17:20:38 <-- novabyte has quit (Input/output error)
17:36:31 <-- mconley has quit (Connection reset by peer)
17:36:53 --> mconley has joined #instantbird
17:37:17 <-- flo-retina has quit (Quit: Instantbird 1.5a1pre -- http://www.instantbird.com)
17:39:42 <-- mconley has quit (Connection reset by peer)
17:40:02 --> mconley has joined #instantbird
17:44:07 --> gerard-majax_ has joined #instantbird
17:44:26 --> jb has joined #instantbird
17:48:02 <-- Optimizer has quit (Ping timeout)
17:50:33 <-- jb has quit (Ping timeout)
17:51:14 --> Optimizer has joined #instantbird
17:52:43 <-- nhnt11 has left #instantbird ()
17:57:47 --> nhnt11 has joined #instantbird
17:58:17 <nhnt11> Okay, I think my addon is working.
18:03:09 <-- rohandalvi has quit (Client exited)
18:07:16 <-- Even has quit (Input/output error)
18:10:49 --> Even has joined #instantbird
18:10:49 * ChanServ sets mode +o Even 
18:11:53 <nhnt11> If anybody would like to try it, here it is: http://goo.gl/srDUQ
18:13:32 --> flo-retina has joined #instantbird
18:13:32 * ChanServ sets mode +qo flo-retina flo-retina 
18:15:16 --> rohandalvi has joined #instantbird
18:45:45 <-- rohandalvi has quit (Connection reset by peer)
18:45:52 --> rohandalvi has joined #instantbird
18:46:05 <-- chrisccoulson has quit (Quit: OSError: [Errno 130] Owner died)
18:47:32 --> chrisccoulson has joined #instantbird
18:48:06 --> qheaden has joined #instantbird
18:48:18 <qheaden> Okay, I'm back guys.
19:16:50 --> Nirgali has joined #instantbird
19:30:22 <-- Nirgali has quit (Quit: Instantbird 1.5a1pre -- http://www.instantbird.com)
19:30:23 --> Nirgali has joined #instantbird
19:32:05 --> Mic has joined #instantbird
19:32:06 * ChanServ sets mode +h Mic 
19:32:24 <Mic> Hi
19:34:31 <nhnt11> Hello
19:36:07 <nhnt11> Mic: Tonight I want to work on fixing localisation and also take a look at how tooltips are handled.
19:36:54 <Mic> OK, nice.
19:37:37 <Mic> (I haven't finished reading the logs yet by the way, in case there's something in that I could comment on?)
19:38:15 <nhnt11> Mic: Is there anything else you think I should do other than the tabbrowser stuff before coding period starts?
19:38:25 <Mic> flo: http://log.bezut.info/instantbird/130603#m391, we have a "Paste & Send" bug somewhere.
19:39:10 <nhnt11> Because I've been doing quite a bit of general stuff and I'll cut back on that if there's things I need to do other than tabbrowser-fixing.
19:44:06 <Mic> The tabbrowser certainly needs to be in the condition to accept your tab...
19:44:11 <Mic> Do you feel like there are other things that you should do or want to do? 
19:44:41 <nhnt11> Mic: So far I haven't seen anything that could hold up the project other than tabbrowser.
19:49:06 <Mic> What about collecting data on new conversations? Having data to check how good your prediction algorithm is sounds like a good idea to me.
19:49:49 <nhnt11> Mic: That sounds like a good add-on project.
19:50:29 <Mic> I don't think that needs to be done as preparation but maybe you'd like to do that as a diversion? ;)
19:51:17 <nhnt11> Mic: Right. Anything that gets me more familiar with how Ib handles conversations, buddies, messages, etc. is probably worth working on.
19:52:47 <nhnt11> brb.
20:03:37 <-- rohandalvi has quit (Client exited)
20:11:46 <qheaden> Are there any utility classes/functions that let you easily build an HTTP GET url with parameters?
20:13:19 --> nhnt11_phone has joined #instantbird
20:13:33 <nhnt11_phone> qheaden: try xmlhttprequest? 
20:13:38 <nhnt11_phone> Sorry for the bad casing
20:14:33 <qheaden> nhnt11_phone: I'm using doXHRequest to make the request. Are you talking about something else?
20:15:15 <nhnt11_phone> qheaden: I don't know, sorry.
20:15:39 <nhnt11_phone> I was able to build a post request with a XMLHttpRequest pretty easily
20:15:51 <flo-retina> qheaden: which part of it seems difficult to you?
20:16:26 <qheaden> flo-retina: No, nothing seems difficult, but I was just wondering if there was a utility class that can take a list of key-value pairs and automatically create GET URL parameters from them.
20:16:34 <qheaden> I would make it myself, but I don't want to reinvent the wheel.
20:17:05 <flo-retina> it sounds like a .map and a .join on an array of parameters could do
20:17:11 <Mic> flo-retina++
20:17:16 <qheaden> For example a method that can turn {"one":"Hello", "two":"World"} into ?one=Hello&two=World.
20:18:17 <qheaden> flo-retina: I think you are right. It seems that doXHRequest uses map and join to create the POST params.
20:29:01 <nhnt11> I'm back.
20:32:57 --> nhnt11|phone has joined #instantbird
20:33:39 <-- nhnt11|phone has quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
20:34:38 <-- nhnt11_phone has quit (Ping timeout)
20:39:54 <nhnt11> Mic: So this localization stuff will require me to create a new properties file?
20:40:06 <nhnt11> That would mean all translations have to be updated...
20:40:08 * nhnt11 hopes he is wrong
20:41:38 <-- flo-retina has quit (Ping timeout)
20:41:41 --> flo-retina has joined #instantbird
20:41:41 * ChanServ sets mode +qo flo-retina flo-retina 
20:42:39 <flo-retina> nhnt11: any new localizable string in the UI means all translations have to be updated
20:42:59 <nhnt11> flo-retina: There aren't any new strings
20:43:07 <flo-retina> that's why we refrain from adding new localizable strings during the last 10 days or so before each release.
20:43:31 <nhnt11> flo-retina: I'm just using the existing ones in a different place
20:43:54 <nhnt11> There must be a better way to do this...
20:43:57 <qheaden> How do you retrieve the value of a set option on a prpl?
20:44:30 <nhnt11> Maybe implement the menuitems in <content>, keep them disabled, and then use them from code?
20:44:45 <flo-retina> http://lxr.instantbird.org/instantbird/source/chat/modules/jsProtoHelper.jsm#152
20:45:19 <qheaden> flo-retina: Thanks.
20:45:21 <-- Nirgali has quit (Ping timeout)
20:50:26 --> Nirgali has joined #instantbird
20:51:14 <nhnt11> flo-retina, Mic: Do you think creating a properties file with new strings is the best way?
20:51:50 <nhnt11> I'm starting to think that it may be better for future uniformity.
20:52:27 <flo-retina> nhnt11: I'm not completely sure of what you are doing, but don't be afraid of creating a new .properties file if you miss one
20:53:16 <nhnt11> flo-retina: A few menu items are now generated by a function in the conversation binding instead of being stored by tabbrowser.
20:53:40 <nhnt11> They still use the same labels but now are in javascript instead of xul code.
20:54:10 <flo-retina> did you really need to move them out of tabbrowser?
20:55:14 <nhnt11> flo-retina: Yes. They are conversation-specific, and the whole point of what I'm doing is to make tabbrowser transparent to that.
20:55:46 --> DGMurdockIII has joined #instantbird
20:58:38 <flo-retina> nhnt11: weren't you talking about making an extension of the tab binding, specifically for tabs holding a conversation?
20:59:30 <nhnt11> flo-retina: I was making the tabbrowser-tab binding extendable yes, but decided it was a bit overkill and unnecessary.
20:59:31 <-- Nirgali has quit (Ping timeout)
20:59:49 <flo-retina> ok
21:00:08 <flo-retina> how important is the context menu stuff to the thing you are actually doing?
21:00:09 <nhnt11> tabbrowser-tab has very little that is conversation-specific, and I was able to easily make it fully transparent.
21:01:35 <nhnt11> flo-retina: Well the idea is that tabbrowser has a general context menu with new tab, close tab, close other tabs, etc, and the tabPanel associated with a tab injects menuitems specific to it (show logs, hide conv. for e.g if it's a conversation) when the popup is shown.
21:02:20 --> EionRobb has joined #instantbird
21:03:07 <flo-retina> nhnt11: shouldn't these items be part of the conversation binding then?
21:03:15 <nhnt11> flo-retina: They are.
21:03:29 <flo-retina> and the DOM node copied to the tab context menu during the onpopupshowing handler
21:04:34 <nhnt11> flo-retina: That's what I suggested here: http://log.bezut.info/instantbird/today/#m611
21:04:59 <nhnt11> But would that really be better than generating tabs is my question.
21:05:55 <flo-retina> I missed that line :(
21:06:59 <flo-retina> I don't know if it's "better", but it seems good enough :)
21:08:44 <nhnt11> flo-retina: I'll try it out and post a diff.
21:09:08 --> Kaishi has joined #instantbird
21:11:09 --> Nirgali has joined #instantbird
21:15:39 * Mook_as usually just stubs everything out in English with a XXX prefix in the to-be-localized text to get things moving forward... :p
21:17:08 --> clokep_wp8 has joined #instantbird
21:17:27 <clokep_wp8> nhnt11: http://log.bezut.info/instantbird/today/#m136
21:17:45 <nhnt11> clokep_wp8: I did see that.
21:17:53 <nhnt11> Do you think I should do that first?
21:18:05 <Mic> "let to var" or rather "var to let"?
21:18:16 <nhnt11> Mic: I assume var to let ;)
21:18:21 * Mic too.
21:18:59 <clokep_wp8> nhnt11: Also, pastebing a file from IB doesn't seem useful. :-\ Did you see my Komodo macro to do pastebining?
21:19:05 <clokep_wp8> Mic pointed it out to you.
21:19:20 <nhnt11> clokep_wp8: I saw it but was unable to figure out how to add it to komodo.
21:19:23 <clokep_wp8> Can't wait to try the long text addon though!
21:19:42 <clokep_wp8> Var -> let, of course.
21:19:46 <nhnt11> I searched online but I couldn't find any of the mentioned menuitems on Mac.
21:19:49 <nhnt11> clokep_wp8: It works :)
21:20:01 <Mic> nhnt11: I remember that it was a bit complicated to add. I don't remember the exact steps.
21:20:04 <clokep_wp8> nhnt11: Ask in #komodo.
21:20:14 <Mic> Maybe I even created a new macro and pasted the source there ;)
21:20:16 <nhnt11> http://pastebin.instantbird.com/212928
21:20:20 <clokep_wp8> Ot ask Mook_as.
21:20:23 <nhnt11> clokep_wp8: I just pasted that in the inputbox :)
21:20:38 <clokep_wp8> It's really easy. Right click, new macro...
21:21:01 * clokep_wp8 needs to go. :-)
21:21:09 <-- clokep_wp8 has quit (Connection reset by peer)
21:21:14 <nhnt11> I right clicked but don't see "new macro" anywhere :/
21:21:36 <nhnt11> Under tools->macros I only have recording options
21:21:42 <nhnt11> :S
21:21:48 <Mic> I expect he meant in the toolbox (at the right hand side). Let me start it and check.
21:21:50 <nhnt11> I'll ask in #komodo later...
21:22:29 <nhnt11> Ahaaa
21:22:31 <nhnt11> finally
21:22:35 <nhnt11> I found the toolbox
21:23:05 <-- chrisccoulson has quit (Quit: OSError: [Errno 130] Owner died)
21:23:16 --> chrisccoulson has joined #instantbird
21:23:47 <nhnt11> Mic: I got it, don't bother.
21:27:35 --> goofy has joined #instantbird
21:28:06 <goofy> flo-retina: hello
21:28:27 <flo-retina> goofy: hey there! :)
21:28:49 <goofy> one strange thing :
21:28:51 --> novabyte has joined #instantbird
21:29:01 <goofy> when i click on a link on irc 
21:29:16 <goofy> the browser does not respond any longer :s
21:29:39 <flo-retina> you mean Firefox freezes when you click a link in Instantbird?
21:30:38 <goofy> no Firefox is open with 2 or 3 tabs on something else, but no new tab opens (as before) when I click on a link (version 1.4 (20130516225646))
21:31:02 <goofy> Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20130516 Instantbird/1.4
21:31:48 <flo-retina> by "does not respond any longer", do you mean "the application freezes" or "nothing happens"?
21:32:03 <goofy> Can it be a setting on firefox ? (I don't remember having changed anything)
21:32:45 <goofy> I mean nothing happens
21:33:08 <goofy> Firefox is still running on other tabs but nothing new happens
21:33:33 <nhnt11> I think goofy means, links simply don't work?
21:33:56 <goofy> yes that's it :s
21:35:24 <flo-retina> is there an error in the Error Console in Instantbird?
21:35:41 <goofy> mmmh there is strictly nothing in the prefs/applications tab. maybe there should be firefox as default browser ?
21:36:23 <nhnt11> goofy: Try setting firefox as the default browser and check if it works.
21:36:40 <nhnt11> flo-retina: After | let menuitems = document.getElementById("convContextMenu").childNodes; |, I get menuitems.forEach is not a function :S
21:36:41 <goofy> ah this is error console dumping 
21:36:43 <goofy> Horodatage : 03/06/2013 23:24:55
21:36:43 <goofy> Erreur : NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIExternalProtocolService.loadURI]
21:36:43 <goofy> Fichier Source : chrome://instantbird/content/nsContextMenu.js
21:36:43 <goofy> Ligne : 229
21:36:59 <goofy> several times
21:37:05 <flo-retina> nhnt11: forEach only exists for JS Arrays
21:37:11 <flo-retina> childNodes is a NodeList
21:37:49 <flo-retina> Array.forEach.call(menuitems, ...) may work
21:37:51 <Mook_as> with new enough mozilla, for thing of element.childNodes works, IIRC
21:38:27 <flo-retina> goofy: ok. So apparently the default browser isn't set correctly on your system.
21:38:41 <flo-retina> I have no idea of how one sets the default browser on Linux :-/.
21:38:50 <-- Nirgali has quit (Ping timeout)
21:39:21 <goofy> ok I will try and fix it, thanks
21:39:48 <-- mconley has quit (Input/output error)
21:40:14 <nhnt11> goofy: There should be an option in firefox itself.
21:43:51 <Mic> goofy: I'm getting "Firefox is not responding..." messages when clicking links here (on Windows).
21:44:59 <Mook_as> Mic: from windows or from firefox?
21:45:02 <goofy> mmmh and here though my firefox is verified as my default browser for all my sytem, clicking a link on instntbird does not trigger anything
21:45:22 <nhnt11> Interesting
21:45:44 <Mic> Mook_as: Firefox.
21:46:11 <nhnt11> links working fine here.
21:46:14 <Mic> It's saying something like "Firefox is running but not reacting, blablah"
21:46:26 <Mook_as> Mic: so, the sort of thing from having MOZ_NO_REMOTE=1 set but another firefox is running with the default profile?
21:46:29 <nhnt11> Tried from 1.4 and my latest local build.
21:46:45 <goofy> I jsut cleaned the error console, ten tested a clik on a link again and got "Horodatage : 03/06/2013 23:45:59
21:46:45 <goofy> Erreur : NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIExternalProtocolService.loadUrl]
21:46:45 <goofy> Fichier Source : chrome://chat/content/convbrowser.xml
21:46:45 <goofy> Ligne : 1168"
21:47:25 <-- novabyte has quit (Quit: bye bye)
21:47:26 <nhnt11> Apparenlty 0x80004005 is an access denied code? :S
21:48:17 <goofy> no idea. Do you want me to file a bug ?
21:49:02 <Mook_as> NS_ERROR_FAILURE, "something went wrong but I dunno what"
21:49:17 <goofy> :)
21:49:23 <Mic> Mook_as: yes, it could be something with no-remote. I never bothered to check.
21:50:02 <Mic> Clicking links will always open them where I don't want them to be.
21:50:30 <Mic> I'm always dragging links to Fx' tab bar instead.
21:52:01 <Mook_as> yeah, I started writing a shell script on linux that unsets things before running firefox :p (I'd probably do it via python on windows, though I suspect wscript would do the job as well)
21:53:23 <nhnt11> Mic: I'm having a problem with these menuitems
21:53:33 <nhnt11> One sec I'll get a diff.
21:54:17 <nhnt11> http://pastebin.instantbird.com/212972
21:55:41 <nhnt11> Mic: It all works fine the first time. The menu items are added in and they work. But since they're removed next time a menu is called, they can't be added in again.
21:56:27 <nhnt11> Apparently they get destroyed when removeChild is called
21:57:11 * nhnt11 is looking for ways to clone the menuitems before adding...
21:58:07 <nhnt11> Hmm. cloneNode should work.
21:59:39 <nhnt11> Ah, it works.
22:00:10 <nhnt11> So I can check localisation off my todo list :)
22:00:44 <Mic> You just tried that it works?
22:01:13 --> Nirgali has joined #instantbird
22:01:22 <nhnt11> Mic: Yes.
22:02:15 <Mic> Good, I also found cloneNode but I was skeptical about the "what it doesn't copy" remarks.
22:03:10 <nhnt11> Mic: I think this is done. Would you like to review a final diff before I push to my repo?
22:03:58 <nhnt11> (By this I mean moving non-generic context menus out of tabbrowser)
22:05:06 <Mic> Yes, please. Would you be fine with it if I do that tomorrow? I'm about to leave...
22:05:20 <nhnt11> Mic: Sure.
22:06:07 <Mic> OK, great. I'm really tired atm ;)
22:06:13 <Mic> Good night!
22:06:31 <nhnt11> Here's the diff:
22:06:33 <nhnt11> http://pastebin.instantbird.com/212974
22:06:41 * nhnt11 wanted to use his pastebin addon
22:06:49 <nhnt11> Mic: Good night!
22:07:21 --> nhnt12 has joined #instantbird
22:07:46 <-- nhnt12 has left #instantbird ()
22:08:30 <-- Kaishi has quit (Ping timeout)
22:08:37 <flo-retina> I wonder if that link issue would be a 32<->64 bit issue
22:08:49 <flo-retina> goofy: are you using linux 32bit or 64bit?
22:09:03 <goofy> 32
22:09:36 <goofy> Note that up to now links were working seemlessly with same system
22:13:36 --> Kaishi has joined #instantbird
22:13:42 <flo-retina> do you use Thunderbird?
22:13:54 <flo-retina> if so, do links clicked in Thunderbird open correctly?
22:14:00 <-- Mic has quit (Quit: Instantbird -- http://www.instantbird.com)
22:14:10 <goofy> let me try
22:17:36 <nhnt11> I should get some sleep.
22:17:39 <nhnt11> Good night all
22:17:41 <-- nhnt11 has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com)
22:22:45 <goofy> flo-retina: yes links open from irc via thunderbird
22:23:15 <flo-retina> that's really strange
22:24:29 <flo-retina> I'm out of ideas for now :(
22:25:10 <goofy> nevermind :) good night
22:25:17 <-- goofy has quit (Quit: Instantbird 1.4 -- http://www.instantbird.com)
22:37:18 --> mpmc has joined #instantbird
22:40:50 <-- Nirgali has quit (Ping timeout)
22:41:02 --> Nirgali has joined #instantbird
22:49:03 --> novabyte has joined #instantbird
22:56:37 <-- DGMurdockIII has quit (Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803])
23:12:24 --> wnayes has joined #instantbird
23:22:47 <-- qheaden has quit (Quit: Leaving)
23:26:11 --> wuwei`lab has joined #instantbird
23:26:52 * wuwei`lab is now known as wuwei
23:27:54 <-- qlum has quit (Quit: Getting the <censored> out.)
23:37:19 <-- skeledrew has quit (Ping timeout)
23:41:03 <-- Nirgali has quit (Ping timeout)
23:44:37 --> Nirgali has joined #instantbird