/srv/irclogs.ubuntu.com/2014/09/05/#juju-gui.txt

hatchyes you CAN run haproxy/ghost/mysql on a t2.small :)01:56
hatchoh, and the bootstrap node 01:56
hatchusing 412M of ram :)01:58
hatchoop 45201:58
rick_h_lol01:59
rick_h_woot01:59
rick_h_!01:59
hatchI need to somehow make a ton of requests to see if my mem usage goes up01:59
rick_h_ab or apachebench or whatever02:00
hatchyeah ab it is02:00
rick_h_ab is apache bench sorry, thinking of seige02:00
hatchhmm says invalid url02:02
rick_h_quotes around it?02:02
rick_h_been a while since I ran ab02:02
hatchab -n 1000 -c 10 http://ec2-107-20-7-222.compute-1.amazonaws.com02:02
hatchI'm pretty confident that's correct02:02
rick_h_add a / at the end?02:03
hatchthat was the trick02:03
hatch:)02:03
rick_h_:)02:03
hatch46802:03
hatch468M was the highest usage with a 266ms time per request avg02:04
hatchnot bad - I wonder if I can do this on a micro02:04
hatchdropping to 2 concurrent it only goes down to 219ms per request 02:05
hatchso it's not being pegged :)02:05
hatchtry 2002:05
hatch:)02:05
hatchoh there we go lol02:05
hatch489ms02:06
hatch:)02:06
hatchcpu bound02:06
hatchunfortunately I can't use the GUI, I need port 80 :(02:07
hatchdarn, can't get mysql to run on a micro02:40
hatchheh02:40
hatchwith the bootstrap node, haproxy ghost :)02:41
hatchalthough I think amazon is lying, they say on their site that it's 1GB of ram, htop is only showing 59002:46
=== urulama_afk is now known as urulama
rick_h_yay tgif11:04
urulamarick_h_: indeed :)11:06
* rick_h_ makes some coffee now that email is processed11:25
* rick_h_ is going into a call so completely afk for the next little while14:02
kadams54hatch: I have more questions about state :-)14:04
hatchwell ubuntu vm decided it doesn't want to display anything but black pixels today :/14:04
hatchkadams54 shoot14:05
kadams54hatch: What is metadata generally used for14:05
hatchI don't understand the question14:06
hatchif you look in state.js you can see everywhere it's referenced14:07
hatchit's used to send the data about the state that needs to change14:08
kadams54Any arbitrary data, or is it more limited than that?14:09
hatchwell it's more limited than that because the state system and dispatchers needs to know what to do with the data14:09
hatchwhat are you thinking of putting in there?14:09
jrwren_hatch: mysql can run on a micro. its just a bug in the charm.14:10
jrwren_"just"14:10
kadams54hatch: A flag for showing/hiding the help text14:10
hatchjrwren_ yeah I was poking at it, looked like it intentionally needs too much space14:11
hatch*sadface*14:11
hatchkadams54 hmm14:11
jrwren_hatch: I ran into it often when running on local in a small kvm. I'll propose a fix :)14:11
hatchmetadata is the correct place for that....not sure we want it in there though :)14:12
hatchjrwren_ awesome! 14:12
hatchI really want to run my blog for $5/mo :)14:12
jrwren_hatch: are micros that cheap now?14:12
hatchDO has a $5 droplet14:13
hatchand can handle 10 concurrent rps at about 170ms response time14:13
hatchwhich is more than enough for my blog atm14:13
hatchkadams54 adding it to the model might be quite a bit simpler than adding it into state14:17
hatchplus if it's in state it'll create a routable url14:17
hatchwhich doesn't make much sense in this case :)14:18
hatchyay back from black desktop in vm......stupid parallels 14:18
kadams54hatch: The whole point of going down this rabbit hole was to connect the showing/hiding of the text to a user's actions, rather than the model…14:18
hatchehh it's not that deep of a rabit hole 14:19
kadams54hatch: the problem is that I'm having a hard time locating a good hook to hang this work off of.14:19
hatchthere ever only was one spot to do this :) Now you learnt how this works haha14:19
hatchrick_h_ thoughts on making the hiding of the help text a routable url?14:20
kadams54hatch: I've looked all through topology/service.js but I don't see anything all that different about how the inspector is created when clicking on a service vs. adding a new one.14:20
kadams54hatch: rick_h_ is afk right now for a phone call… which is why you get the question :-)14:21
hatchohh14:22
hatchwell they are different methods which call the changestate14:22
hatchso in those different methods you would do something different to signify that you shouldn't show the help text14:23
hatchthere is a 'flash' storage in the state which allows you to send data not in the url14:23
hatchbut I think it only allows one record of things at a time14:23
hatchhttps://github.com/juju/juju-gui/blob/develop/app/views/topology/service.js#L74014:24
hatchhttps://github.com/juju/juju-gui/blob/develop/app/views/state.js#L46114:26
hatchthen you'll reference metadata.flash.whateveryoucallyourproperty here https://github.com/juju/juju-gui/blob/develop/app/subapps/browser/browser.js#L58614:27
kadams54The _deployLocalCharm… is _deployFromCharmbrowser the other side of that coin?14:29
hatchdeploy local charm is what handles when you drop a zip charm on the canvas14:30
hatchdeploy from charmbrowser fires an event initateDeploy14:31
hatchso you trace that handler down and you'll see where it also fires a changestate event for the ghost inspector14:32
kadams54It sounds like I need to add the flag in two spots: that handler and the _deployLocalCharm, and then extract it again in the renderServiceInspector method.14:33
hatchwhy deploy local charm?14:34
kadams54Don't we want to display the help text for local charms as well?14:34
hatchthat shows a totally different inspector14:35
hatchit should be visible by default and only hidden by the flag - then you only have to hide it in one place14:35
hatchin showServiceDetails 14:36
hatchbrb14:36
kadams54hatch: Hah, my plan was to hide it by default (because the problem right now is that it's shown when we don't want it to show) and then only show it when a service is first added to the canvas.14:37
hatchahh yeah - well there are more places where it's created (where we want it shown) than it's not :)14:47
hatchsurprisingly 14:47
hatchkadams54 have you deployed a local charm in the gui yet?14:47
kadams54hatch: yes14:48
kadams54hatch: Your ghost charm, specifically :-)14:49
hatchwell then!14:50
hatchjujugui call in 1014:50
urulamajujugui: i suggest postponing for 10min, so that rick_h_ finishes the current call14:56
frankbanurulama: +114:56
jrwren_ok14:56
hatchurulama ack14:57
hatchjujugui call in 1314:57
hatch:P14:57
rick_h_off call14:57
rick_h_jujugui call in 414:57
jrwren_lol14:57
hatchlol14:57
urulamarick_h_: sheesh :D14:57
rick_h_jujugui call time wheeee15:00
rick_h_hatch: jcsackett kadams54 ^15:00
jcsackettoops. coming.15:01
hatchjujugui still need those reviews https://github.com/juju/juju-gui/pull/532 plz15:51
rick_h_hatch: you and kadams54 all good?15:54
kadams54We'll know for sure in about 30 minutes :-)15:54
rick_h_kadams54: ok awesome. Let me know how it goes. thanks guys15:55
kadams54But yeah, I'm back to coding again, so that's a step in the right direction.15:55
hatch:)15:57
hatchhazmat hey thanks for the update to the DO plugin, I'll be giving it a try tonight.15:59
hatchoh man this critical card was literally a 6 character fix16:21
hatchit's going to take about 1Mx longer to test than to fix lol16:21
rick_h_hatch: well that's good to hear at least then. 16:22
rick_h_that it's not some fundamental giant of a thing16:22
hatchwell....it sort of is...the charm is broken16:22
rick_h_whoops16:22
hatchbut since the cli handles it correctly the guy should too16:23
hatchgui16:23
hatchrick_h_ https://gist.github.com/hatched/998e31e217c2a577d11216:23
rick_h_hatch: :)16:24
rick_h_jujugui have to run up to the doc office for a little bit. biab. 16:25
hatchenjoy16:25
rick_h_flu shots are in and the wife mandates I get one asap yay me16:25
urulamarick_h_: to actually get a flu, you'll have to leave your desk and computer sometimes ;)16:27
hatchlol!16:27
hatchthat's why I get sick every time I leave the house16:27
urulamahatch: programmers should walk around in one of these http://main.cdn.grabone.com/goimage/440x267/i4a3clx.jpg16:29
urulamahatch: imagine our next sprint! :D16:29
hatchlol16:29
hatchit could be ON a lake16:29
hatchjujugui I'm going to be taken offline (power) in a few for about 30mins 16:39
hatchjujugui still need one more review on #532, qa is already done16:40
frankbanhatch: on it16:42
rick_h_urulama: her thing was "You better get this shot before you get on a plane with 300 sick people17:05
rick_h_"17:05
hatchand power!17:05
rick_h_woot17:06
hatchI no longer have a 100A power line running across my backyard17:07
rick_h_what could possibly go wrong with that?17:07
rick_h_new motox take my money!17:08
rick_h_wish I could get a 360 but I think my wife would kill me17:08
rick_h_hatch: want an LG watch?17:08
rick_h_and I'll get a 360?17:08
hatchhaha no sorry17:09
rick_h_no shippping fee straight to brussels :P17:09
hatchhttps://twitter.com/FromAnEgg/status/50793581952161382517:09
rick_h_hatch: I'm talking watches not phone :P17:09
hatchI know....but saving moneys17:09
rick_h_boo ok good plan17:11
jcsacketthatch: sorry i forgot to look at your PRs. moving charmworld along is surprisingly distracting.17:47
hatchheh np frankban got it17:47
jcsackettcool stuff.17:47
hatchof course my simple fix turned out to not be good enough :/ bleh18:28
hatchtodays pro tip: if you're going to spill a bowl of borscht don't do it over your desk, keyboard cellphone, wallet, dog 18:54
rick_h_ouch18:56
rick_h_time for a new phone! new moto x here we come! :P18:56
rick_h_Makyo: hatch got a sec to chat?18:57
hatchlol18:57
hatchrick_h_ yeah 2 mins just need to reposition stuff now that I don't have an external keyboard lol18:57
rick_h_hatch: all good18:57
rick_h_I'm chilling in today's standup room18:57
jrwren_someone finally fixed python: https://github.com/paradoxxxzero/nocolon19:04
hatchlol no19:06
hatchthat's just wrong19:06
hatchit even says so in the readme haha19:06
rick_h_w...t...f19:07
rick_h_less ruby in my python kthx19:08
hatchhaha +119:08
jrwren_I often forget colons when I Haven't done python in a while.19:09
jrwren_I always wished they were optional :)19:09
hatchnobody is happy19:11
hatchsheesh19:11
hatchI guess tonight I'll be taking apart my keyboard and running it through the dishwasher.....it no longer works so....maybe now is a good time to invest in an expensive one19:12
* rick_h_ holds back19:16
hatchhaha, are you back to using your kinesis?19:20
rick_h_yea, been using it for a while19:20
rick_h_typing too many docs these days :P19:20
rick_h_but I've got a closet of about 7 mechanical keyboards you could try :)19:20
hatchlol I've been eyeing this one.... https://www.trulyergonomic.com/store/index.php 19:22
hatchunfortunately they are all on backorder19:22
hatchI may end up switching to one of my many old keyboards if this one doesn't come back to life19:22
rick_h_no good windows/meta key so :(19:22
hatchthe one in the middle top i think is the meta key19:23
rick_h_yea but typing that easily a lot of times a day is not going to work ou19:23
rick_h_out19:23
hatchyeah true19:23
hatchhttps://www.trulyergonomic.com/store/model-differences--truly-ergonomic-mechanical-keyboard--cherry-mx-brown-red-blue-black-clear-keyswitches#Model-20919:23
hatchhere is one with a split alt key19:23
hatchcould turn one of those into one maybe19:24
rick_h_hmm, perhaps19:24
hatchI've never seen/used this one in person so I really have no idea19:24
rick_h_yea, I've looked a lot at it but keep holding back19:24
hatchhttps://www.kinesis-ergo.com/shop/advantage-lf-for-pc-mac/19:25
rick_h_that's what I use19:25
hatchcoding with browns would suck19:26
hatchfingers would get so sore haha19:26
rick_h_yea, I do wish for blues, but browns get by19:26
rick_h_hah, let me show you my unicomp19:27
rick_h_that one I get sore hands for the first week of use every time19:27
hatchoh you're using browns and not reds?19:27
hatchhttps://d2s7foagexgnc2.cloudfront.net/files/49df782d46968ee719e7/kinesis_and_trackpad.jpg interesting layout....I'd probably do something very similar to this19:27
rick_h_yea, the browns here19:28
rick_h_hah, that's funny19:28
rick_h_jujugui ok I'm out. Everyone have a good weekend. 19:29
hatchenjoy your weekend19:29
hatchcya19:29
rick_h_12 cards left, with 5 people. Should be able to knock em out next week np19:30
rick_h_:)19:30
hatchagreed!19:31
kadams54hatch__: So… it looks like the flash object is being stripped out before it gets down to renderServiceInspector.19:40
hatch__hmm that's odd19:41
=== hatch__ is now known as hatch
hatchlemme pull up the code19:41
hatchkadams54 not sure that's possible - if you look at the renderLocalInspector method it references the flash property19:42
hatchand it's the same method that either calls the renderServiceInspector or renderLocal Inspector19:42
kadams54Hmm. I see the flash property going in, but it's not coming out the other end. Still tracing through all the state code.19:43
hatchkadams54 put a debugger in the _inspectorDispatcher and see if it's available there19:44
hatchbecause that's where it would be passed to the renderLocalInspector if it had it19:44
kadams54> metadata19:45
kadams54Object {id: "7818300$"}19:45
kadams54So nope.19:45
hatchhmm can you put a gist of your diff up19:46
hatchsomething funky is going on19:46
kadams54This is what I see when I inspect the state object in the *:changeState handler, browser.js line 207:19:46
kadams54> state.sectionA.metadata19:46
kadams54Object {id: "7818300$", flash: Object}19:46
kadams54So the flash is there when the changeState event is caught, but gone by the time it hits _inspectorDispatcher19:47
kadams54gist coming up19:47
kadams54https://gist.github.com/kadams54/1b382fca1c2c1d84071c19:48
hatchok put a debugger in state.js on like 46119:50
hatchoh that's the problem19:50
hatchthat can never be hit19:50
hatchmove line 461 to line 46819:51
hatchwell that's a temp fix to see if it works19:51
hatchwill need a bit of a better fix for the long haul19:52
hatchthen I think 126 needs to change from being set to an object to being set to undefine19:53
hatchd19:53
hatchkadams54 is that making sense?20:01
kadams54Sorry, afk, back now20:04
kadams54Not sure why line 126 needs changing, but I follow the rest20:05
kadams54hatch: bam, that works.20:07
hatchit needs to be changed because we don't want it setting the flash metadata on every request20:14
hatchso that should now be if (this.get('flash')) {...} 20:14
hatchand then where it resets it change it to set it to undefined20:14
hatchs20:38
hatchdarn keyboard busted20:38
hatch:/20:38
hatchkadams54 I have to run and buy a new keyboard20:55
hatchI'll likely be back in about 45 if you need some more help20:55
kadams54Friday fun20:55
kadams54I'm all set20:55
hatchyeah the store is closed on the weekends for the kinesis 20:55
kadams54Just working on a test now to make this official20:55
hatchso gota get there before eod20:55
hatchok bbiab20:55
hatchkinesis keyboard with browns equipped22:18
hatchthis will take a while haha22:18

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