[21:57] <thumper> morning folks
[23:20] <thumper> davecheney: hi
[23:21] <thumper> davecheney: I have some go questions for you
[23:21] <thumper> davecheney: got some time?
[23:21] <davecheney> thumper: shoot
[23:22] <thumper> davecheney: I want to run a collection of commands in parallel, and have each of those commands execute another app, however instead of waiting for it to definitely finish, wait for a defined time, and return the combined output if it finished and something else if it didn't
[23:23] <thumper> the Command object doesn't allow a timed wait
[23:23] <thumper> and I want the outer function to gather the results
[23:23] <davecheney> thumper: no, you should spin off a goroutine to do this
[23:23] <davecheney> i *believe* that worker/uniter already does exactly this
[23:23] <thumper> hmm...
[23:24] <thumper> I know that it should be theoretically possible
[23:24] <thumper> but I'm struggling with the go routine structure, and communication using tombs
[23:24] <thumper> since the os/exec package doesn't have a timed wait
[23:24] <thumper> only a definite wait
[23:24] <thumper> so we need more go routines, yes?
[23:24] <davecheney> you
[23:24] <davecheney> yup
[23:25] <davecheney> i think something that sits in select { case <-tomb.Dying: // everything is fine, exit ; case <- timeout: cmd.Kill()
[23:26] <thumper> since I'm wanting to simultaneously run X commands in parallel
[23:26] <thumper> I have a feeling I need multiple tombs
[23:26] <thumper> and can't really do with one
[23:27] <davecheney> this is going to need some scaffolding
[23:27]  * thumper nods
[23:27] <thumper> let me explain what this is for
[23:28] <thumper> I want to have "juju help plugins"
[23:28] <thumper> it will call "juju-<pluginName> --description" for each plugin
[23:28] <thumper> but it only waits 1s (or some value)
[23:28] <thumper> and if the plugin takes too long to return
[23:28] <thumper> it kills it and says "took too long to respond"
[23:29] <thumper> that way we can gather descriptions for all plugins in ~1s
[23:29] <thumper> make sense?
[23:29] <davecheney> yup
[23:29] <davecheney> if you want to wait on multiple goroutines, the common pattern is a fan in via a channel
[23:30] <thumper> I have a method that returns []string for all the plugins it found
[23:30] <thumper> right
[23:30] <thumper> I got that far :)
[23:30] <thumper> it is the timed killing and appropriate waits that I'm struggling with
[23:31] <thumper> I feel that given enough time (like hours this afternoon), I could come up with something hackish
[23:31] <thumper> but was wonering if you had a more concise solution in less time :)
[23:31] <davecheney> gimme a few mins to sketch something out
[23:31] <thumper> ta
[23:32] <thumper> I have a test framework that I can plug the method into already
[23:32] <thumper> yay tests
[23:44] <thumper> davecheney: I'm going to leave shortly for the gym, but will check back in when I return :)
[23:45] <davecheney> thumper: nearly done
[23:45] <davecheney> i have something working
[23:48] <thumper> davecheney: that's awesome!
[23:50] <davecheney> thumper: http://play.golang.org/p/3Avy6eHj4K
[23:50] <davecheney> what I have so far
[23:52] <thumper> ok, I'll plug it in to my testy things and check back after lunch
[23:52] <thumper> just putting gym shoes on
[23:52] <thumper> and thanks


 KDE MASTER RACE
 well, it doesn't matter.  We have our expected behaviour described in the guidelines in the topic.
[06:43] <neo_> There ya - it was my natural response.
[06:43] <neo_> there ya go
[06:43] <neo_> Blame him, not me.
[06:44] <elky> well you're the controller of your own behaviour
[06:44] <rww> as you are a human and not a lower-order animal, we expect you to keep your natural responses in check here
[06:44] <neo_> Why are you being self-righteous?
[06:44] <elky> and i'd appreciate you promising to not post porn again in our channels, no matter what someone asks for
[06:44] <rww> if you are in fact a dog or something, I'll need a note from your owner
[06:45] <neo_> I don't post porn in any channel. That guy was asking for it. But, okay, for the sake of your own self-righteousness  - I will not post porn URLs again.
[06:45] <rww> even if someone else asks for it?
[06:45] <neo_> Ban him before it happens.
[06:46] <neo_> Is that hard to do?
[06:46] <rww> He got kicked before you responded, so...
[06:46] <elky> neo_: we can't predict the future.
[06:46] <neo_> Good.
[06:46] <neo_> Now we understand eachother.
[06:46] <rww> Are you going to post porn if someone else asks for it?
[06:46] <neo_> No.
[06:47] <elky> ok, then since you're not banned, are you done here?
[06:47] <rww> elky: they're +q
[06:47] <elky> i am technically correct :P
[06:48] <neo_> How long are you planning to censor me?
[06:48] <rww> elky: missing the point though, since they're trying to resolve their +q :P
[06:49] <neo_> White-washed pharisees.
[06:49] <elky> neo_: you should probably read the guidelines linked from the topic to avoid future issues first
[06:49] <neo_> There was no guideline when I first joined in.
[06:50] <elky> although, if you're going to start throwing in namecalling, we can wait a few days
[06:50] <rww> ChanServ sent a link to them to you. If you didn't get that, you should probably fix your IRC client too.
[06:50] <neo_> There ya go.
[06:50] <neo_> I will read the guideline and adhere to the policy.
[06:50] <neo_> Ok? Happy now?
[06:51] <elky> i will be when you've read it.
[06:52] <neo_> hrm
[06:52] <neo_> i didn't get it
[06:52] <elky> !guidelines
[06:52] <neo_> I didn't know.
[06:52] <elky> though if you can't see topics of channels, you are going to have issues in other places
[06:52] <rww> 06:50:31 -ChanServ(ChanServ@services.)- Entrymsg   : Welcome to #ubuntu! Please read the channel topic. This channel is logged. Use of this channel implies acceptance of terms at  https://wiki.ubuntu.com/IRC/TermsOfService
[06:52] <neo_> See? How am I held accountable for my own action if I didn't know about it in the first place?
[06:53] <neo_> I didn't see it in off-topic channel as well
[06:53] <rww> You got sent that. The ToS links to the guidelines, as does the channel topic.
[06:53] <neo_> Depending on which IRC client you use.
[06:53] <rww> Probably better if we just get this over with and say "okay" rather than prolonging it.
[06:53] <rww> If your IRC client is broken, that's your problem. You're still responsible for it.
[06:53] <neo_> Blaming people huh?
[06:53] <neo_> Wow.
[06:54] <neo_> Customer service you are.
[06:54] <rww> For posting porn in #ubuntu because they didn't read channel guidelines? Yep.
[06:54] <elky> customers give money...
[06:54] <elky> you don't.
[06:54] <rww> Now, are you going to play nice, or keep arguing about this?
[06:54] <neo_> That's not for you to decide. For your sake: I will play nice.
[06:54] <neo_> bye
[06:54] <rww> Good. Go read guidelines and tell elky you have and that you'll follow them, and then we can all quit with this... or that.
[06:55] <rww> @mark #ubuntu-ops neo_ attempted ban resolution, failed because user is not good at responsibility
[07:17] <bazhang> honestly ikonia
[07:17] <ikonia> ?
[07:18] <bazhang> you'd think I know nothing about ubuntu or linux
[07:18] <ikonia> ???
[07:18] <ikonia> what ?
[07:18] <bazhang> "it's a directory"
[07:18] <ikonia> you just told a guy "cat would work on a directory"
[07:18] <bazhang> JHC
[07:19] <ikonia> JHC ?
[07:19] <elky> blasphemy
[07:19] <ikonia> (sorry I don't know all the phrases)
[07:19] <bazhang> telling someone to "get on with it"
[07:19] <ikonia> because he's messing around telling stories
[07:19] <ikonia> just type what you're told to type
[07:19] <bazhang> not everyone is tech savvy
[07:19] <ikonia> exactly
[07:20] <ikonia> so type what you're told to type
[07:20] <ikonia> rather than tell a story
[07:20] <bazhang> and require a bit of patience
[07:20] <ikonia> I am patient
[07:20] <bazhang> hehehehehe
[07:20] <bazhang> the very model of it
[07:20] <ikonia> no idea if you're being sarcastic or not
[07:21] <bazhang> "get on with it" and patient dont often collide
[07:21] <ikonia> there is nothing wrong with telling someone to get on with it
[07:21] <ikonia> that doesn't mean you are not patient
[07:21] <ikonia> that means I'm not interested in your story - type the command
[07:21] <ikonia> that's nothing to do with patience
[07:22] <ikonia> I'm patient and will hand hold people through problems without an issue
[07:22] <ikonia> I however have no interest in this guys stories or waffle
[07:22] <ikonia> he wants help - he's in a help channel, take the help
[07:53] <jussi> bazhang: joke wasnt funny. :/
[07:57] <bazhang> they cant all be gems!
[07:59] <bazhang> so it was arm
[08:00] <ikonia> an excellent spot
[08:00] <ikonia> but also begs the question what distro he was running
[08:00] <ikonia> as it was not ubuntu
[08:01] <bazhang> chrubuntu
[08:01] <ikonia> he was asked that and specfically said "no"
[08:01] <bazhang> I saw that somewhere in the backscroll


[07:49] <qwebirc36884> Why does it seem like all the image viewer apps aren't able to set a pic as wallpaper? Do any of them work?
[07:50] <diogenes_> qwebirc36884, try with desktop settings
[07:53] <qwebirc36884> Ok, Thanks.
[07:53] <diogenes_> yw
[07:57] <qwebirc36884> One other question, I have always liked the "always on top" feature built into the OS but I've found you can set kb shortcuts for almost everything except toggling always on top, is there a simple way or a app worth looking at that maybe expands the ability of adding custom kb shortcuts?
[08:03] <diogenes_> qwebirc36884, add a shortcut with: sh -c "wmctrl -r :ACTIVE: -b toggle,above"
[08:04] <diogenes_> and once you open a window that you want to stay on top, just hit the desired key combination
[08:05] <qwebirc36884> Ah, easy enough, thank you, diogenes_ . I knew you could add shortcuts via command line but thought you could only make shortcuts for inside terminal, not system wide shortcuts.
[08:06] <diogenes_> qwebirc36884, yes system wide via settings > keyboard > application shorctuts > add
[08:07] <qwebirc36884> I'm guessing the same shortcut will disable it as well or do I need to create a different shortcut for disabling it?
[08:08] <diogenes_> yes, same shorcut to on/off
[08:09] <qwebirc36884> Ok, thanks. I appreciate it, I just recently walked away from Windows finally and went full Linux, I'm still learning my way around and got lots to read and brush up on.
[08:09] <diogenes_> qwebirc36884, welcome to linux community, the most opened and kind community in the world :)
[08:11] <qwebirc36884> I'm loving it! Been playing with Linux for a long time but never decided to use it as my daily goto OS. So trying to learn still the ins and outs of what can be done and customized.
[08:13] <diogenes_> ohh, when we say linux we mean endless possibilities to modify and make it work exactly the way you want, i'd also advice you to take notes of the commands and the "howto" workarounds that helped you to solve your issues.
[08:16] <qwebirc36884> Will do for sure.
[08:17] <qwebirc36884> You wouldn't by chance have a suggestion for a dock app that's worth using would you? I looked at Cairo Dock, it's slick but seems to have a lot of things that aren't working so I got rid of that one.
[08:20] <diogenes_> there are is: Plank, Docky, DockbarX, GNOME Do, Avant Window Navigator
[08:20] <diogenes_> start with Plank and Docky
[08:21] <diogenes_> also you could make a dock like look using the usual xfce panel
[08:21] <qwebirc36884> Ok
[08:22] <diogenes_> this is how you do it:
[08:22] <diogenes_> 1. add a new panel
[08:22] <diogenes_> 2. add windows buttons plugin to that panel
[08:22] <diogenes_> 3. go to window buttons settings
[08:23] <diogenes_> 4. uncheck show button labels
[08:23] <diogenes_> 5. check "show flat button"
[08:23] <diogenes_> that's it
[08:24] <diogenes_> also add any shortcuts you like to it
[08:24] <qwebirc36884> Easy enough.
[08:25] <qwebirc36884> When you make your own panel like that, is there a way to create a folder that will hold sub-folders and expand when clicked? Sort of a shortcut folder.
[08:28] <diogenes_> there is a directory plugin that will show you the folders and there is a launcher plugin in which you can add as many applications shorcuts you like and once you click on it, it shows you the list of your applications, like a self created menu
[08:28] <qwebirc36884> Nice, I really appreciate your time and help.
[08:29] <diogenes_> no problem
[17:14] <rebab> How can I install Nvidia drivers on xubuntu?
[17:15] <diogenes_> rebab, open driver manager
[17:16] <rebab> via command prompt?
[17:17] <rebab> diogenes_: there are 3 drivers on the screen which one should I install? (properietary, tested) or (properietary) (open source)
[17:18] <diogenes_> rebab, i'd go with tested