Monday, 2013-06-24

*** github <github!~github@192.30.252.58> has joined #hawtio00:14
github[hawtio] fusesource-ci pushed 1 new commit to gh-pages: http://git.io/amOdWA00:14
githubhawtio/gh-pages fc3ec62 FuseSource CI: Wagon: Deploying sitegen to repository00:14
*** github <github!~github@192.30.252.58> has left #hawtio00:14
*** rhuss <rhuss!~jolokia@p4FE1B936.dip0.t-ipconnect.de> has joined #hawtio04:41
*** kearls <kearls!~textual@von69-1-88-162-9-234.fbx.proxad.net> has joined #hawtio06:12
*** is-mw <is-mw!~is-mw@p50879E6F.dip0.t-ipconnect.de> has joined #hawtio06:38
*** davsclaus <davsclaus!~davsclaus@78-72-73-107-no33.tbcn.telia.com> has joined #hawtio06:41
*** jstrachan <jstrachan!~jstrachan@host86-129-228-131.range86-129.btcentralplus.com> has joined #hawtio07:04
*** dejanb <dejanb!~dejanb@dynamic-78-30-140-100.adsl.eunet.rs> has joined #hawtio07:23
*** vijaykiran <vijaykiran!~user@213.208.206.28> has joined #hawtio07:35
*** rajdavies <rajdavies!~textual@host86-147-149-200.range86-147.btcentralplus.com> has joined #hawtio08:07
*** rhuss1 <rhuss1!~jolokia@p4FE1958F.dip0.t-ipconnect.de> has joined #hawtio09:19
*** rhuss <rhuss!~jolokia@p4FE1B936.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 268 seconds)09:22
*** jstrachan <jstrachan!~jstrachan@host86-129-228-131.range86-129.btcentralplus.com> has quit IRC (Quit: Leaving...)10:53
*** rajdavies <rajdavies!~textual@host86-147-149-200.range86-147.btcentralplus.com> has quit IRC (Quit: Computer has gone to sleep.)11:25
*** is-mw2 <is-mw2!~is-mw@p50879E6F.dip0.t-ipconnect.de> has joined #hawtio11:31
*** is-mw <is-mw!~is-mw@p50879E6F.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 246 seconds)11:32
*** sfosdal <sfosdal!41a70bfe@gateway/web/cgi-irc/kiwiirc.com/ip.65.167.11.254> has joined #hawtio11:43
sfosdalHello.  I am wondering if anyone can point me to an example of how to get hatio working in a standalone java application?  I've tried the examples from http://hawt.io/getstarted/index.html, but the one there (that is a standalone app) doesn't start my spring-dsl route.  Any suggestions?11:45
*** vijaykiran <vijaykiran!~user@213.208.206.28> has quit IRC (Ping timeout: 268 seconds)11:50
*** vijaykiran <vijaykiran!~user@213.208.206.28> has joined #hawtio12:02
*** rhuss <rhuss!~jolokia@p4FE1B32B.dip0.t-ipconnect.de> has joined #hawtio12:17
*** sfosdal <sfosdal!41a70bfe@gateway/web/cgi-irc/kiwiirc.com/ip.65.167.11.254> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)12:19
*** rhuss1 <rhuss1!~jolokia@p4FE1958F.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 276 seconds)12:20
*** is-mw <is-mw!~is-mw@p5087B15E.dip0.t-ipconnect.de> has joined #hawtio12:29
*** is-mw2 <is-mw2!~is-mw@p50879E6F.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 246 seconds)12:30
*** sfosdal <sfosdal!41a70bfe@gateway/web/cgi-irc/kiwiirc.com/ip.65.167.11.254> has joined #hawtio12:35
sfosdalHello, I have a question regarding hawtio.  I'm trying to use it embedded in my standalone java app, but it's not seeing my spring dsl route.  Is there an example anywhere that someone could point me to?  I've looked at http://hawt.io/getstarted/index.html with no success.12:36
* sfosdal slaps sfosdal around a bit with a large trout12:40
*** sfosdal <sfosdal!41a70bfe@gateway/web/cgi-irc/kiwiirc.com/ip.65.167.11.254> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)13:09
*** scranton <scranton!~scranton@c-24-128-50-227.hsd1.ma.comcast.net> has joined #hawtio13:26
*** dbokde <dbokde!~Adium@76-220-59-86.lightspeed.sntcca.sbcglobal.net> has joined #hawtio13:54
*** jstrachan <jstrachan!~jstrachan@37.205.61.203> has joined #hawtio14:43
*** jstrachan <jstrachan!~jstrachan@37.205.61.203> has quit IRC (Quit: Computer has gone to sleep.)14:50
chirinoslewis: yo.. have you seen this error before: [INFO] --- exec-maven-plugin:1.2.1:exec (typescript-compile) @ hawtio-web ---15:30
chirino<FATAL> Unable to find "grunt.js" config file. Do you need any --help? </FATAL>15:30
chirinoyeah.. I need help.15:30
slewischirino: ah, you probably need to update your grunt and typescript versions15:31
chirinok15:31
slewiswe just upgraded to grunt 0.4 and typescript 0.9 last week15:31
chirinok15:31
chirinoso a    npm install -g typescript15:31
slewisso I wound up having to upgrade node here to get typescript 0.9.015:31
slewisyeah, should do, just check what version it installs15:32
slewisif it's 0.8.3 then probably just updating node should do the trick15:32
slewisoh and also I deleted node_modules and let the maven build re-install all of that stuff15:32
slewisso to recap, update node, update typescript, install grunt-cli, delete node_modules and then let mvn re-install stuff from packages.json15:33
chirinolooks better now thx!15:33
slewisawesome!15:33
*** github <github!~github@192.30.252.50> has joined #hawtio15:38
github[hawtio] chirino pushed 1 new commit to master: http://git.io/tkWi3g15:38
githubhawtio/master da9855b Hiram Chirino: Embed apollo in the web jvm for simpler dev of the Apollo hawtio plugin.15:38
*** github <github!~github@192.30.252.50> has left #hawtio15:38
*** github <github!~github@192.30.252.57> has joined #hawtio15:41
github[hawtio] gashcrumb pushed 1 new commit to master: http://git.io/l8VYwA15:41
githubhawtio/master 6ff68a5 Stan Lewis: Add mbean for finding uploaded files for #37415:41
*** github <github!~github@192.30.252.57> has left #hawtio15:41
*** dejanb <dejanb!~dejanb@dynamic-78-30-140-100.adsl.eunet.rs> has quit IRC (Quit: dejanb)15:43
*** vijaykiran <vijaykiran!~user@213.208.206.28> has quit IRC (Ping timeout: 268 seconds)16:25
*** github <github!~github@192.30.252.62> has joined #hawtio16:47
github[hawtio] fusesource-ci pushed 1 new commit to gh-pages: http://git.io/I0DObA16:47
githubhawtio/gh-pages 9b13670 FuseSource CI: Wagon: Deploying sitegen to repository16:47
*** github <github!~github@192.30.252.62> has left #hawtio16:47
*** davsclaus <davsclaus!~davsclaus@78-72-73-107-no33.tbcn.telia.com> has quit IRC (Quit: Textual IRC Client: www.textualapp.com)16:51
slewischirino: anything I need to do to get the console working again?17:37
slewisGetting this error (one sec)17:37
chirinonavigate to /index.html17:37
slewishmm, still nothing17:38
slewisjust getting a 50317:38
slewisbtw, how are you running the console, jetty:run, exec:java, or elsewise?17:38
slewisgetting this btw -> https://gist.github.com/gashcrumb/585196717:39
chirinocrap.17:43
chirinonothing in /home/gashcrumb/Work/Source/hawtio/hawtio-web/target/hawtio-web-1.2-SNAPSHOT-broker17:43
chirino?17:43
slewisone sec, I'll check..17:43
*** kearls <kearls!~textual@von69-1-88-162-9-234.fbx.proxad.net> has quit IRC (Quit: Computer has gone to sleep.)17:44
slewisyup, there's an etc directory in there17:44
slewiswith some config files17:44
chirinoapollo.xml in the etc dir?17:44
slewisnope, just users/groups/log4j properties files17:45
slewislogin.config and black-list.txt17:45
chirinohum.17:45
chirinowtf..17:45
slewismaybe I need a recent local build of apollo?17:46
chirinolet me try a fresh copy17:46
chirinoweird that 1/2 of it got generated ok.17:46
chirinoyeah try a local build.17:46
slewisyeah, can't tell from the logs what it bailed on17:46
slewiscool, yeah will give that a whirl17:47
chirinoFYI: I execute /w mvn test-compile exec:java17:47
slewisah, great, that's exactly how I run it...17:53
*** kearls <kearls!~textual@von69-1-88-162-9-234.fbx.proxad.net> has joined #hawtio18:19
chirinoslewis: I just rebuilt my apollo and it started fine.18:19
chirinonot sure.18:19
chirinotry to re-run /w mvn -U as Iv'e just deployed fresh snapshots18:20
slewisk, just waiting for it to rebuild here, didn't have apollo checked out on this machine18:20
chirinok18:20
*** vijaykiran <vijaykiran!~user@D549B3DC.cm-10-1a.dynamic.ziggo.nl> has joined #hawtio18:21
slewischirino: weird, still didn't work...  Just commented out the apollo stuff from web.xml for now...18:38
slewisback in a few, need to go on an iced coffee run18:38
chirinook.18:38
chirinooh.. try deleting that whole dir18:40
chirinorm -rf /home/gashcrumb/Work/Source/hawtio/hawtio-web/target/hawtio-web-1.2-SNAPSHOT-broker18:41
chirinoit might regenerate correctly if it's not there.18:41
*** rhuss <rhuss!~jolokia@p4FE1B32B.dip0.t-ipconnect.de> has left #hawtio18:57
*** chm007 <chm007!~cmoulliar@LPuteaux-156-15-12-42.w80-14.abo.wanadoo.fr> has joined #hawtio19:00
slewischirino: hmmm, no, still won't come up properly, just regenerates the same files19:05
chirinocrap. crap.19:05
chirinook.  I've just deployed a new apollo-web that avoids failing if the broker instance does not get created right.19:08
chirinorebuild /w -U to pull it down.19:08
chirinoBTW.. is there an easy way to apply a formatter to a value in a template?19:08
chirinoi.e. I want to take a long value and format it as: 100.25 mb19:09
slewisyeah, think you can register filters for that19:09
slewisone sec, let me pull up an example19:09
slewissimple one, used everywhere -> https://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/core/js/corePlugin.ts#L19019:10
slewisthe filter is basically available to all the templates in your module, one sec, can track down an example19:11
slewisthink you just call it to be honest19:11
chirinoso then I can do a {{humanize(value)}} type thing?19:13
chirinonot sure.19:13
slewisyeah, exactly...  at the end of the day it's just a function registered with angular19:14
slewisyou just pass in a value and the result of the function is what's put in your template19:15
slewisnot much point until you want to inject other services in your filter19:15
slewismore info -> http://docs.angularjs.org/api/ng.$filterProvider#register19:15
chirinok19:16
slewisooh, and you can chain them too19:16
slewisso {{value | humanize | someOtherFilter}} I  guess19:17
chirinoyay. thx that worked nice.19:23
slewisyay!19:24
chirinowant me to add a memory filter to the core?19:24
chirinoor just apollo?19:24
slewisyeah, that'd be handy in multiple places...19:24
slewisso yeah, go for it19:25
*** github <github!~github@192.30.252.50> has joined #hawtio19:31
github[hawtio] gashcrumb pushed 1 new commit to master: http://git.io/r1fqlA19:31
githubhawtio/master 15765ab Stan Lewis: Fix uploading to subdirectories19:31
*** github <github!~github@192.30.252.50> has left #hawtio19:31
chirinoslewis: you got any examples of a simple accordion19:33
slewisthere's the expander thingie19:34
chirinoslewis: as in https://www.evernote.com/shard/s13/sh/3300387d-a3e4-4d77-956a-c40b34cc3a92/a04f3dc832792cd92a256d40ffdd0dfc19:34
slewisoh yeah, so yeah, the expander, one sec let me find an example19:34
slewishere you go -> https://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/jmx/html/operations.html#L919:35
slewisso create a div that has class "expandable" and either closed or open19:36
slewisthen whatever you put in the expandable-body div will be the body of the expander19:36
chirinook19:36
chirinothx19:36
chirinoit's a little laggy19:40
chirinothe icon flip19:40
slewismight be the animation causing that19:40
slewisthere's by default a transition that makes the height gradually increase to the content height19:41
chirinomight be better to switch the icon before, doing the transition.19:41
slewisyeah, could be.  first I've noticed it actually!19:42
chirinoyour seeing it too?19:42
slewisyeah, can see it here on the JMX operation page19:42
chirinok19:42
chirinohow do you handle nested tabs in side of tabs?19:43
chirinothe whole routing seems way complicated.19:45
chirinoperhaps I'm just being dense.19:45
slewisno, it really is kinda complicated :-)19:45
slewisfor fabric there's a fabricLayout.html19:46
slewiswhich juse uses a regular bootstrap nav bar19:46
slewisthe visual nesting is then done in CSS really19:46
slewisbut then additional sub-tabs just kinda show up as a toolbar kinda deal19:46
slewiswhich looks meh, but I haven't had a chance to really clean up much yet19:47
slewishere's an example https://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/fabric/html/layoutFabric.html#L219:47
slewisah, it was re-using the core NavBarController angular controller originally19:48
chirinoyeah the whole ng-view seems complicated.19:49
chirinohttps://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/apollo/html/layout-apollo.html19:50
slewisit's magic!19:50
chirinoI just went with a bunch of ng-ifs19:50
chirinoit's just tat of of the nested html parts is gonna have to do something similar again.19:51
slewisah, gotcha...19:51
chirinoso perhaps I should use the ngview stuff afterall19:51
slewisyeah, I think ng-view is supposed to kind of do what you're doing explicitly19:52
slewisbut yeah, when it doesn't work it's kind of a bastard to figure out wtf you did wrong19:52
slewisah, I see19:53
slewisyeah, so really you'd want to set up those routes in the config() of your module19:54
slewisthen ng-view knows what HTML corresponds with which URL19:54
chirinok. but does it handle multiple nested ng-view things?19:55
slewisthink for nested stuff you'd use ng-include19:55
slewisthat'll let you load some arbitrary template19:56
chirinok. so does not seem much better then.19:56
chirinowell i don't load arbitrary views19:56
chirinoI don't have pluggable bits.19:57
slewisah yeah, definitely can't nest ng-views looks like19:57
slewisis it all top-level URLs like that?19:57
chirinohum. will get longer.19:58
chirinofor example might have a #/apollo/virtual-hosts/localhost/queues/FOO19:59
chirinoguess it would be nice if I could build something like a Core.NavBarController19:59
chirinobut that eats up part of the route as it nagivages bits of the template.20:00
slewishmm, or lots of discreet controllers using route params to figure out the broker name and so on...20:01
chirinoya20:02
chirinohow do route params get passed to controelrs?20:02
slewishere's an example -> https://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/fabric/js/profile.ts#L620:03
chirinocoolio20:03
chirinoso just $routeParams20:03
slewisyep, here's how that route is defined -> https://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/fabric/js/fabricPlugin.ts#L1020:03
slewisso yeah, you could have #/apollo/virtual-hosts/:brokerId/:object/:objectId perhaps20:04
chirinok20:04
chirinoand lets hope no one configures a brokerId /w an embedded /20:05
slewismight be possible then to define a common base that your controllers could inherit from to cut down on the copypasta20:05
slewislol, yeah!20:05
slewiscould use the location service instead, but then you have uglier URLs with lots of & in 'em20:05
chirinohow do you change the route from js?20:22
slewis$location.search()...  wait let me double-check20:23
slewisAh, okay you can use $location.url20:24
slewisbut you can also chain calls, like this: -> https://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/fabric/js/fabricView.ts#L72020:24
slewisso this passes ?tab=child&parentId=root at the end of the URL20:24
slewishm, or $location.path() too looks like20:25
chirinok. I'll try that20:25
*** github <github!~github@192.30.252.58> has joined #hawtio20:25
github[hawtio] gashcrumb pushed 1 new commit to master: http://git.io/TzT-RA20:25
githubhawtio/master 20892f2 Stan Lewis: Kick off file upload directive20:25
*** github <github!~github@192.30.252.58> has left #hawtio20:25
*** vijaykiran <vijaykiran!~user@D549B3DC.cm-10-1a.dynamic.ziggo.nl> has quit IRC (Ping timeout: 276 seconds)20:28
chirinois stuff like $routeParams.host available in the template scope?20:31
chirinoor so I have to put it into the scope?20:31
slewisyou'd want to put it in $scope20:32
slewis$scope is what's available to the template20:32
chirinook20:32
slewisso any function you want to call etc.20:32
*** vijaykiran <vijaykiran!~user@D549B3DC.cm-10-1a.dynamic.ziggo.nl> has joined #hawtio20:32
slewishm...  gotta run, see you tomorrow!20:33
chirinocya!20:35
*** cvanball <cvanball!~Adium@a80-101-226-96.adsl.xs4all.nl> has joined #hawtio21:00
*** cvanball <cvanball!~Adium@a80-101-226-96.adsl.xs4all.nl> has left #hawtio21:00
*** vijaykiran <vijaykiran!~user@D549B3DC.cm-10-1a.dynamic.ziggo.nl> has quit IRC (Ping timeout: 255 seconds)21:20
*** chm007 <chm007!~cmoulliar@LPuteaux-156-15-12-42.w80-14.abo.wanadoo.fr> has quit IRC (Quit: Computer has gone to sleep.)21:24
*** chm007 <chm007!~cmoulliar@LPuteaux-156-15-12-42.w80-14.abo.wanadoo.fr> has joined #hawtio21:37
*** chm007 <chm007!~cmoulliar@LPuteaux-156-15-12-42.w80-14.abo.wanadoo.fr> has quit IRC (Client Quit)21:42
*** github <github!~github@192.30.252.55> has joined #hawtio22:02
github[hawtio] fusesource-ci pushed 1 new commit to gh-pages: http://git.io/L_Vsuw22:02
githubhawtio/gh-pages 1a85750 FuseSource CI: Wagon: Deploying sitegen to repository22:02
*** github <github!~github@192.30.252.55> has left #hawtio22:02
*** is-mw2 <is-mw2!~is-mw@p5087B15E.dip0.t-ipconnect.de> has joined #hawtio22:17
*** is-mw <is-mw!~is-mw@p5087B15E.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 276 seconds)22:18
*** jstrachan <jstrachan!~jstrachan@94.250.224.146> has joined #hawtio22:38
*** jstrachan <jstrachan!~jstrachan@94.250.224.146> has quit IRC (Quit: Computer has gone to sleep.)22:53
*** kearls <kearls!~textual@von69-1-88-162-9-234.fbx.proxad.net> has quit IRC (Quit: Computer has gone to sleep.)23:19

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!