The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-02-23

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:06 rem_lex|pivo joined #mojo
00:10 basiliscos joined #mojo
01:06 alnewkirk-xxx joined #mojo
01:11 alnewkir1-xxx joined #mojo
01:21 davido_ joined #mojo
01:31 bpmedley sri: The autogenerated image name is too long.. woopsie
01:40 bpmedley Wide character in syswrite at /opt/perl-5.16.3/lib/5.16.3/x86_64-linux-thread-multi/IO/Handle.pm  <-- Anyone seen this before?
01:43 d4rkie joined #mojo
02:20 grit joined #mojo
02:21 zivester joined #mojo
02:29 Stefan joined #mojo
02:31 klapperl joined #mojo
02:36 bpmedley I believe I fixed the error; this helped: https://github.com/kraih/mojo/wiki/Utf-8-manipulation.
02:40 bpmedley https://dl.dropboxusercontent.com/u/6629983/websocket.png
02:42 D4RK-PH0ENiX joined #mojo
04:04 jberger_ joined #mojo
04:27 howitdo joined #mojo
04:57 good_news_everyone joined #mojo
04:57 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ZHexRQ
04:57 good_news_everyone mojo/master 097650c Sebastian Riedel: test reserved stash values
04:57 good_news_everyone left #mojo
05:29 dotandimet joined #mojo
05:54 Stefan joined #mojo
05:55 Stefan joined #mojo
06:05 Stefan joined #mojo
06:25 sk joined #mojo
06:27 sk one question, I have table in my template HTML with data. I want to unit test it. How I can test only HTML data without going through controller? Is it even possible?
06:30 russum joined #mojo
06:36 KindOne joined #mojo
06:53 mtj joined #mojo
07:05 alnewkirk-xxx joined #mojo
07:12 dod joined #mojo
07:20 alnewkirk-xxx joined #mojo
07:31 Stefan joined #mojo
07:35 Vandal joined #mojo
07:37 dod joined #mojo
07:49 jack joined #mojo
08:03 alnewkir1-xxx joined #mojo
08:54 Andy2 joined #mojo
09:04 dotan joined #mojo
09:10 sh4 joined #mojo
09:10 alnewkirk-xxx joined #mojo
09:16 laouji joined #mojo
10:21 batman stephan48: DBIx::Class or Mandel
10:21 batman imo
10:22 batman but i often just use Mojo::Redis
10:29 rem_lex joined #mojo
11:13 denisboyun joined #mojo
11:13 d4rkie joined #mojo
11:15 stephan48 batman: thanks
11:15 basiliscos joined #mojo
11:17 batman your welcome
11:32 d4rkie joined #mojo
11:44 gnephiak joined #mojo
11:59 ka2u joined #mojo
12:09 jack_ joined #mojo
12:12 basiliscos joined #mojo
12:27 skullbocks joined #mojo
12:28 basiliscos joined #mojo
12:30 alnewkir1-xxx joined #mojo
12:33 Stefan joined #mojo
12:40 voegelas joined #mojo
12:43 batman bpmedley: https://github.com/jhthorsen/liveperl.us <-- i've made some changes. wanna check it out?
12:44 batman i'll be back later. see you around.
12:44 bpmedley Ok, sweet.
12:44 mire_ joined #mojo
12:47 batman :)
12:48 batman btw: you shouldn't run sudo.
12:48 batman the code is full of security holes :(
12:48 batman but it's nice proof of concept
12:48 bpmedley Shit, that sux.  Where?
12:48 batman maybe mot full of... but at least potential root access.
12:48 bpmedley How?
12:48 batman you should avoid "potential"
12:48 batman sudo ...
12:49 bpmedley Can you provide a proof-of-concept?
12:50 batman not now.
13:00 basiliscos joined #mojo
13:07 GabrielV_ joined #mojo
13:30 zivester joined #mojo
13:58 Stefan joined #mojo
14:01 eugen__ joined #mojo
14:10 batman have you had a look bpmedley ?
14:10 batman i've messed up the docker command :(
14:10 batman will fix it soon.
14:11 bpmedley I've been working on a different project; would you provide screenshots for your changes?
14:11 bpmedley May I ask why you changed the template name?
14:14 skullbocks joined #mojo
14:23 Stefan joined #mojo
14:26 batman easier to dispatch when the template has the same name as action
14:28 bpmedley Usually; however, this uses that slightly odd inline with an INCLUDE.  Or, did I miss the change for that?
14:28 Stefan joined #mojo
14:28 Stefan joined #mojo
14:29 batman bpmedley: http://home.thorsen.pm/private/tree/notverysecret/ check out the three "liveperl" screenshots there
14:31 bpmedley Looks nice!
14:32 bpmedley Do you have to initate the pull request so you can get credit?
14:35 skullbocks joined #mojo
14:45 batman i can make a pull request :)
14:46 bpmedley Please, do I need to do anything?
14:47 batman not before i've made the pr. i'll let you know.
14:47 batman need to fix some things first.
14:58 ka2u joined #mojo
15:23 batman bpmedley: how do you get "blurb" from the .json into the template?
15:27 batman and why do you have the code in /docroot/live_perl ?
15:27 batman instead of in the project root
15:42 gryphon joined #mojo
15:47 batman ah!
15:47 batman got it now :)
15:48 batman bpmedley: can i convert the data dir to perl modules instead?
15:52 bpmedley batman: Sure!  That's much better.
15:53 batman cool :)
15:53 bpmedley I created the .json with a script.
15:53 batman ah!
15:53 batman cool :)
16:03 rem_lex joined #mojo
16:31 denis_boyun__ joined #mojo
16:49 maxhq joined #mojo
17:06 batman bpmedley: you got pull request
17:06 bpmedley Yes, thanks
17:07 batman i got another one if you accept that one...
17:07 bpmedley Moment
17:12 batman comments?
17:12 purl comments are lying. next_for_GC *is* the GC marking mechanism right now
17:12 bpmedley You did a *ton* of work.. :)
17:13 batman \o/
17:13 batman you got another one.
17:13 sri pretty
17:14 sri but i see a failraptor
17:14 batman i think the conversion to modules will make it easier to extend it. should also generate the tutorial list from the module list...
17:15 batman i also see a failraptor... what did i do wrong bpmedley ?
17:15 bpmedley Moment
17:15 batman maybe you want to merge pr #2 before checking the error...
17:15 bpmedley Can't open file "./../../data/samples/hello.json": No such file or directory at /opt/liveperl.us/docroot/live_perl/script/../lib/LivePerl/Tutorial.p
17:16 batman ok. merge #2
17:16 batman https://github.com/brianmed/liveperl.us/pull/2
17:16 batman ...if you like it :)
17:17 batman hm... looks like i messed something else up :/
17:18 batman did i mess up the helper bpmedley ?
17:18 bpmedley Moment
17:23 batman sri: the failraptor makes it look good ;)
17:23 batman wonder what gfx we could add to make it prettier...
17:26 batman bpmedley: got a clue what's going on?
17:27 bpmedley We're getting further.
17:27 bpmedley The docker start command got lost in translation.
17:28 batman that's awful :(
17:28 batman sorry
17:29 bpmedley lol
17:30 batman will fix the css
17:30 batman add #output { background: #eee; } to public/css/editor.css
17:30 bpmedley We changed too much; should have broken up the patches - that's my fault.
17:31 batman not really. my pr sucked. too big.
17:31 batman only thing you could have done is to reject it :P
17:32 batman will you change the css bpmedley ?
17:32 bpmedley yes, one sec.
17:32 purl time's up!
17:35 Stefan joined #mojo
17:36 sri really pretty
17:36 * batman is giving liveperl.us cpr
17:36 batman sri: thanks :)
17:37 sri batman++, bpmedley++
17:37 bpmedley I updated the css.
17:37 * batman tries to figure out why http://liveperl.us/tutorial/params doesn't work
17:37 sri but upgrade your mojolicious, i want the new more appropriate error messages when i make a typo that gets saved automatically ;p
17:38 bpmedley sri: Moment
17:38 batman haha
17:38 sri the auto saving actually made me aware of the less than ideal error messages for croak we had before :)
17:39 sri since it saved before i was done typing a helper name
17:39 batman oh. that sucks.
17:39 purl The rock is now off.
17:39 batman wonder how to fix that...
17:40 sri debug log on 500 and 404 pages rocks for the edit in browser use case \o/
17:40 batman :)
17:40 batman but maybe we shouldn't do autosave after all...
17:40 sri it auto saves even if you just move the cursor around btw.
17:40 sri i like auto save
17:41 batman yeah. need to fix that as well
17:41 batman working on it now
17:41 * sri totally wants auto save to stay
17:41 batman ok.
17:42 batman bpmedley: how about making me co-auth on github..?
17:42 bpmedley You definitely need more credit somewhere.   Please give me some time.
17:42 sri think he means a commit bit
17:43 batman yeah. commit bit++
17:45 sri hahahaha
17:45 purl LOLCON 4 reached.
17:45 sri the session example is funny
17:45 bpmedley sri: Mojolicioius is upgraded, please clear session and try again.
17:45 sri it basically counts how often you auto saved
17:45 bpmedley :)
17:46 batman sri:)
17:46 bpmedley I'm thinking of changing that to have sessions work across sections.
17:46 * sri really digs the new layout
17:49 batman can i tweet about this bpmedley ?
17:49 bpmedley batman++
17:50 bpmedley Please give me 10 minutes.  I wonder if there is a bug on initialization.
17:50 batman sure :)
17:56 skullbocks joined #mojo
17:57 batman sri: i can't remember what to fix... only save on real updates and..?
18:00 batman bpmedley: can you push the css changes?
18:08 bpmedley Should be pushed.  Feel free to tweet!
18:08 bpmedley Did I get the github stuff correct?
18:08 bpmedley I'm somewhat new to git.
18:08 batman looks like i can push, so i'm happy
18:09 batman want to fix some minor things before the tweet...
18:09 bpmedley Ok
18:09 russum joined #mojo
18:09 bpmedley be back in 15 mins
18:11 sri http://liveperl.us/tutorial/websockets # does not appear to work
18:13 sri hmm... if i switch between tutorials a bit, things seem to break
18:14 sri looks like i'm stuck with the under example and can
18:14 sri 't switch to anything else
18:16 jack joined #mojo
18:19 hummeleBop joined #mojo
18:28 sujithm joined #mojo
18:31 batman yeah. i just fixed the last bug.
18:31 batman switching tuts
18:32 batman bpmedley: LivePerl or Liveperl?
18:32 batman anyone else with an opinion?
18:33 Stefan joined #mojo
18:33 bpmedley I think LivePerl is better
18:34 batman ok
18:34 batman bpmedley: i've pushed some changes.
18:34 alnewkirk-xxx joined #mojo
18:35 batman can you tell me when you have reloaded the server?
18:38 bpmedley It has been
18:38 batman thanks :)
18:44 alnewkir1-xxx joined #mojo
18:49 bpmedley Websockets work now
18:52 batman just pushed some more fixes. reload?
18:53 batman http://liveperl.us/tutorial/params <-- fixed this sample
18:54 mire__ joined #mojo
18:55 bpmedley Reloaded
18:55 batman i like the "loading" animation :)
18:56 batman (chrome only)
18:57 batman sri: got more bugs?
18:57 batman :)
18:57 sri haha, the loading animation is cool
18:58 sri the waiting for server got a little less pretty
18:58 batman got idea on how to make it more pretty?
18:59 batman and do you have the latest css?
18:59 batman (it should be rendered with terminal font)
18:59 bpmedley The animation is nice
18:59 sri think i do, it's all more grey now
19:00 mattastrophe joined #mojo
19:01 batman ok. so... any idea on how to make it more pretty?
19:01 batman bpmedley:)
19:01 bpmedley Did the background change?
19:02 batman where? the body or #output background?
19:02 bpmedley The body.
19:02 purl somebody said the body was an add-on feature?
19:02 dj_goku batman: should there be an input box for the websockets tutorial?
19:03 batman bpmedley: no. it's the same
19:03 batman dj_goku: no idea.
19:03 dj_goku Is there a github repo?
19:04 dj_goku ahh found it
19:05 sri can i tweet liveperl, or too early?
19:05 bpmedley What do you think batman?
19:05 batman sri: wait some more
19:05 batman need to update footer
19:06 dotandimet joined #mojo
19:06 dj_goku batman: are you going to be pulling in the latest mojo all the time?
19:06 batman dj_goku: it
19:06 batman dj_goku: it's bpmedley's project
19:06 dj_goku oh sorry
19:07 dj_goku bpmedley: ^^
19:07 batman no need to be sorry. it's just that i have no idea :P
19:07 bpmedley dj_goku: No issues.  Mojolicious is in the Dockerfile and has to be manually upgraded, at present.
19:07 bpmedley The container builds faster that way.
19:07 dj_goku ahh
19:09 dj_goku pretty awesome though.
19:09 bpmedley dj_goku: Thanks.
19:12 dj_goku bpmedley: how long have you been working on this?
19:12 bpmedley Three days?  I had some similar code; however, that's all gone now.
19:13 dj_goku ahh nice.
19:13 batman bpmedley: reload?
19:13 purl rumour has it reload is NO! REALOD
19:16 bpmedley Might want to fix the twitter link.
19:17 batman it's not you? :(
19:17 bpmedley No.. :)
19:17 batman haha. can you fix it?
19:17 batman batman--
19:18 bpmedley Fixed
19:19 batman you're not on twitter?
19:19 batman anyhow. you should have your name.
19:19 batman (c) doesn't make much sense without a name
19:19 sri so, it's tweetable now?
19:19 batman sri: if you can't find anything that need fixing now, then go crazy on the tweeting :)
19:20 bpmedley batman: How now?
19:20 purl brown cow
19:20 batman "how now" ?
19:20 bpmedley sri: Tweet at will.. :)
19:20 bpmedley how is the copyright?
19:20 batman ah! bpmedley nice :)
19:20 batman bpmedley: but you're not on twitter?
19:20 bpmedley Not currently, I don't think
19:20 batman ok
19:22 dj_goku I would say if you don't have twitter I would point back to your github page: https://github.com/brianmed
19:24 bpmedley dj_goku: Even with the liveper.us repo reference?
19:24 batman bpmedley: you choose. i think it's fine now.
19:25 bpmedley Yeah, it looks amazing from what I had.. :)
19:26 batman hehe
19:26 batman i'm super happy that you wanted to take my pull request.
19:27 bpmedley You are welcome.
19:30 batman bpmedley: how long does the docker instance last?
19:30 batman do you kill it after some time?
19:30 bpmedley 1 hour .. that may need tweaking
19:31 batman could be. but sounds sane for now.
19:31 batman maybe we need to make an about page where we document things like that...
19:31 * batman starts writing
19:31 bpmedley We are seeing quite a bit of traffic.. :)
19:32 batman oh?
19:32 bpmedley Something like 10 new containers running
19:32 stephan48 bpmedley: maybe make a "I am finished"-button? allowing users to cleanup after them?
19:33 batman stephan48: pretty sure no-one will bother to click that button
19:33 sri "HALP I NEED A NEW CONTAINER"
19:33 bpmedley stephan48: I could do that.  Also, I can check the time on their source code - if over 10 minutes with an edit; then stop the docker container.
19:33 batman bpmedley: we could add a "/close" resource which is called when window.onclose
19:33 bpmedley *without
19:33 stephan48 ye
19:34 batman 10 minutes edit: sounds like a good idea
19:34 stephan48 ye
19:34 stephan48 and if the user changes something show a message that a new container is started for them
19:34 asarch joined #mojo
19:35 bpmedley stephan48: I believe it should.  If a container goes from out from under your feet, then you get a creation message.
19:36 stephan48 ah
19:39 bpmedley Only problem I see right now is that docker doesn't seem to be able to create and delete a container at the same time.
19:40 bpmedley An optimization could be to have one docker container for everyone.
19:49 trone joined #mojo
19:53 sri hmm, my docket image never finishes building
19:53 sri *docker
19:53 bpmedley op - 19:53:37 up 2 days,  3:11,  6 users,  load average: 10.39, 7.98, 4.58
19:53 bpmedley Could be that.. :)
19:54 batman bpmedley: i've added /about. what do you think?
19:55 sri and it finished :o
19:55 bpmedley Sweet
19:55 batman oops! not yet
19:55 batman *merge conflict*
19:55 bpmedley Where?
19:59 batman bpmedley: i pushed now.
19:59 batman the conflict was on my side
19:59 batman can you look at the about page?
20:00 bpmedley I need to goto lunch with my parents, can it wait a while?
20:01 batman you decide :)
20:01 batman i'm going to bed in an hour...
20:03 batman "No more slots" oh.
20:03 bpmedley Yeah, please
20:03 purl totally!
20:04 batman it's too popular.
20:04 dj_goku lol
20:04 klapperl_ joined #mojo
20:04 batman i think we need the about page up and running...
20:04 batman how many slots do you have?
20:04 batman 32?
20:04 purl WOAH - 32 is WAY too many.
20:04 bpmedley Yes, about that
20:05 batman bpmedley: please reload.
20:06 batman with the /about page
20:06 sjn bpmedley: nice demo site :)
20:07 sjn bpmedley: cp liveperl.us try.perl.org   # suggestion :)
20:08 batman sjn: i think you should suggest it to the perl.org people. probably easier to do it the other way around.
20:16 denisboyun joined #mojo
20:32 sjn batman: I think hostmaster@perl.org might be a sane place to send mail to.
20:33 sjn bpmedley: do you want me to do that?
20:33 sri just don't expect an answer... last time i waited for months
20:34 sjn well, better start early then :-P
20:38 lukep joined #mojo
20:41 basiliscos joined #mojo
20:45 alnewkirk-xxx joined #mojo
21:01 jberger__ joined #mojo
21:02 * batman is looking forward to /about
21:04 hummeleBop joined #mojo
21:07 bowtie_ joined #mojo
21:09 batman joined #mojo
21:09 elvis joined #mojo
21:17 paladinn joined #mojo
21:22 denisboyun joined #mojo
21:32 jberger_ joined #mojo
21:33 putolov joined #mojo
21:35 putolov Hi, can I use mojo in eclipse ?
21:39 Ben_Goldberg joined #mojo
21:39 putolov is there someone who can answer my question
21:40 putolov I use windows and perl on eclipse, is it possible to use mojo on eclipse ??
21:42 moritz why wouldn't it?
21:43 moritz you just need a text editr, and I'm pretty sure you can (ab)ue eclipse as a text editor
21:43 moritz and with the EPIC plugin it should have decent Perl support
21:45 putolov moritz: I am fresh in Perl and it works in Eclipse, I am just wondering do I need some additional plug ins for mojo ?
21:46 putolov I have EPIC plugin inside and it works
21:47 putolov so I just need to write use Mojolicious::Lite ?
21:47 moritz putolov: I'm not aware of any mojo-specific eclipse plugins; but being a vim user myself, that doesn't mean much
21:47 putolov ok
21:49 putolov I am fresh ih Perl and I just learning the basics so I am interesting to make websites in perl
21:50 putolov so I have found out mojo, but I don't understand how it works
21:55 moritz that's how it starts :-)
21:55 moritz read the Mojolicious::Lite docs
21:55 moritz and then some other tutorial
21:55 moritz and you'll learn
21:56 putolov thats I am doing now
21:57 putolov I have put some code "hello world" this usual stuff for beginners
21:57 putolov and I get info that I need to install Mojolicious::Lite module
22:06 alnewkirk-xxx joined #mojo
22:11 moritz well yes, you need to install modules before you use them :-)
22:16 putolov I see now that this small piese of code works but I need to install module, but I have no idea how to install it ;)
22:20 moritz then find out
22:20 moritz search engines exist for a reason :-)
22:20 Ben_Goldberg There's this wondeful think called cpanm, which is quite excellent for installing modules.
22:21 moritz ... unless you are on windows, I suppose :-)
22:21 Ben_Goldberg There's also a slightly-less-wonderful program for installing modules called cpan, which you can use for installing cpanm :)
22:21 putolov yes, I use windows 7 and eclipse
22:21 Ben_Goldberg I am on windows, using straberry perl.  cpan works fine.
22:22 moritz Ben_Goldberg: but does cpanm work fine on windows?
22:22 putolov Ben_Goldberg: do you ever tried with eclipse ?
22:22 Ben_Goldberg My computer is old and slow, and eclipse runs very very slowly for me.
22:23 Ben_Goldberg So instead of a 'proper' IDE, I just use notepad++ as my text editor... it's got enough features for my needs.
22:23 putolov OK, I am just wondering how to install module using eclipse
22:24 Ben_Goldberg Eclipse isn't for installing modules.  Use cpan or cpanm for that.
22:24 Ben_Goldberg Or ppm (I think), if you're uinsg activeperl.
22:25 putolov no no, I use Eclipse as my editor and IDE for Perl
22:25 Ben_Goldberg So?
22:25 purl i guess So is Ah, so!
22:25 moritz putolov: but it's not the job of the IDE to install Perl modules
22:26 putolov yes of course, I am trying to get to know how to install module on Eclipse ?
22:27 Ben_Goldberg The job of an idea is for syntax highliting, indentation, refactoring, globally renaming variables, making graphs of your code, etc.
22:27 moritz putolov: by leaving out the "on Eclipse" part
22:27 Ben_Goldberg s/idea/IDE/
22:28 Ben_Goldberg putolov, are you perhaps attempting to ask about installing eclipse plugins, which happen to be meant to be used for perl?
22:28 Ben_Goldberg That would an eclipse question, not a perl question.
22:29 sri putolov: read http://modernperlbooks.com/books/modern_perl/
22:30 skullbocks joined #mojo
22:32 putolov Ben_Goldberg: yes it can be Eclipse question but how to find out among a millions of Eclipse users someone who is Perl developer and use Eclipse ?
22:32 * sri has never met anyone using eclipse for perl development
22:33 putolov I see that now
22:37 Stefan joined #mojo
22:40 putolov Ben_Goldberg: could you tell me how you use Notepad++ and Strawberry ? How to connect them ?
22:50 mudler joined #mojo
22:51 good_news_everyone joined #mojo
22:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/b38ktQ
22:51 good_news_everyone mojo/master 84db5a7 Sebastian Riedel: use transliteration when possible
22:51 good_news_everyone left #mojo
22:52 skullbocks joined #mojo
23:01 rem_lex joined #mojo
23:06 meshl joined #mojo
23:10 jberger_ bpmedley sounds like things are going great for you
23:10 jberger_ I'm looking forward to trying it out
23:10 jberger_ This has been a crazy busy weekend
23:11 jberger_ $work has as code complete deadline on Tuesday
23:11 jberger_ But bpmedley++ all the same
23:12 jberger_ batman++ and sri++ for that matter
23:13 bpmedley sjn: Sure, that would be cool.
23:14 bpmedley batman: If I had known your name was on the about I would have pulled and let my parents wait longer, sorry about that.  Pleaes reload.
23:14 bpmedley jberger_: thanks!
23:29 Stefan joined #mojo
23:41 phillipadsmith joined #mojo
23:43 skullbocks joined #mojo
23:54 skullbocks joined #mojo
23:56 sjn bpmedley: what's your email? (for Cc:)
23:58 memowe_ joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary