--- Log opened Tue May 27 00:00:18 2008
--- Day changed Tue May 27 2008
00:13 <+michaellatta> I am trying to update frozen gems, and it keeps trying to recreate them rather than updating them. "rake freeze:gem GEM=git://
github.com/technomage/dm-core.git UPDATE=true" boots merb and dies with Creating submodule for git://
github.com/technomage/dm-core.git ...
00:13 <+michaellatta> 'gems/submodules/dm-core' already exists in the index
00:13 <+michaellatta> ERROR: unable to create submodule for git://
github.com/technomage/dm-core.git - you might want to freeze using MODE=rubygems
00:18 <+michaellatta> hassox: ping
00:18 <+hassox> hi michaellatta
00:19 <+hassox> you finally got me :)
00:19 <+michaellatta> No problem. Is now a good time to discuss freezer?
00:19 <+hassox> I saw your ping last time, but you were gone by the time I got there
00:19 <+hassox> michaellatta: I'm not 100% on the freezer... mattetti is the man to talk to to get info on that
00:19 <+hassox> pm?
01:01 <+gluck> does anybody here use any special library when doing AJAX with merb, or do you just straight code the JS?
01:08 <+mtodd> gluck: jQuery
01:10 <+gluck> mtodd: thanks, I'll look into it
01:57 <+miamoto_musashi> anyone up for a git question
03:16 <+okinoid> anybody here got experience with freezing merb apps?
03:17 <+hassox> okinoid: I just went through it this morning :)
03:17 <+okinoid> using merb-freezer?
03:18 <+hassox> well merb-freezer didn't do a custom gem..
03:18 <+hassox> not that I could find anyway
03:18 <+okinoid> yeah thats the exact problem i'm having
03:18 <+hassox> only wycats main repo
03:18 <+hassox> do you have a fork you need to use?
03:19 <+hassox> you can use a custom fork from github by manually using submodules
03:19 <+okinoid> well the gem is installed locally and it does come up in the 'gem list' list but it can't seem to be able to find it
03:20 <+okinoid> its not in github.
03:20 <+hassox> I'm not sure about doing it as a gem
03:20 <+hassox> it does seem that you could install the gem
03:21 <+hassox> gem path/to/merb-core.gem -i framework
03:21 <+hassox> but I didn't test that one
03:21 <+okinoid> well i tried the "rake freeze:gem GEM=merbful_authentication" syntax but it said it couldn't find it locally or in the repo...
03:21 <+hassox> I believe in gem mode... and I'm sure if it's wrong mattetti will correct me...
03:22 <+hassox> that it's just an install into the framework directory of merb-core
03:22 <+okinoid> i'm assuming this doco is still correct...
http://github.com/wycats/merb-more/tree/master/merb-freezer/README.markdown03:22 <+hassox> I think so
03:22 <+okinoid> ok, right thats where i pulled that example from...
03:25 <+okinoid> i mean if there is a good description somewhere as to what its doing, then i can try and do it manually..
03:25 <+okinoid> i guess that would be a 'read the code' thing though.
03:26 <+hassox> I think it just gets stuff from either wycats repo or from rubyforge :\
03:26 <+hassox> I wanted to ask mattetti but he's not about atm
03:26 <+okinoid> well thanks for the help anyway.
03:27 <+hassox> np
03:27 <+hassox> good luck
03:27 <+okinoid> thanks :)
03:49 <+okinoid> i didn't see anything about it in the doco but is there a way to unfreeze things?
03:50 <+viewlogic> i think yiou can just delete the dirs that are made when you freeze
03:52 <+okinoid> is there some magic file someplace that tracks what you have frozen or is it literally just the dirs in the folders?
03:53 <+viewlogic> its just the dirs, if those dirs exist then it looks in there first
03:53 <+okinoid> thanks
04:04 <+digitaltoad> does anyone here have a preferred way of doing ajax with merb?
04:05 <+digitaltoad> in a rest application
04:10 <+cjmeyer> has anyone used the ruby-openid gem with merb?
04:11 <+cjmeyer> i add it as a dependency in my init.rb file but it causes a failure and merb won't start
05:00 <+jtoy> is there a way from a method that I can render the output of an action to a variable?
05:00 <+foysavas> and 139 in merb
05:00 <+foysavas> ha oops
05:13 <+nanodeath> jtoy: like uh, render to string sorta?
05:30 <+jtoy> nanodeath: yes, but the render would need to be able to have params/request/session passed to it
06:04 <+okinoid> ok i have another freezing question, so i have copied the installed gem into Merb_root/gems/gems/<gem name>. and in my Merb_root/config/init.rb there is the line 'Gem.path.unshift(Merb.root / "gems")'
06:05 <+okinoid> then i moved the original gem location so that it doesn't use that one for a test and it complains that it can't find the gem.
06:06 <+okinoid> does anyone have any idea why that doesn't work?
06:32 <+jackdempsey> okinoid: you want to gem install -i things into your gems/ dir
06:32 <+jackdempsey> not just copy
06:32 <+jackdempsey> (if i follow correctly)
06:33 <+okinoid> right. is there an intrinsic difference?
06:34 <+okinoid> i mean i copied it from a location where is was gem installed into.
06:42 <+nanodeath> if kill PID doesn't kill a process...is there a Super Force Kill command?
06:43 <+jarkko> :-)
06:43 <+jarkko> morning
06:44 <+nanodeath> morning jarkko
06:45 <+jarkko> funny how you await for the morning already when you go to sleep if you have a cool project waiting
06:45 <+nanodeath> I get like that when I start cool projects sometimes...it wears off after a few days though :-/
06:46 <+jarkko> yeah, but it might be good actually, not to think of it all your freetime as well
06:48 <+nanodeath> it's mostly unfortunate for me because usually I'd rather be working on awesome merb stuff instead of silly school projects. fortunately I graduate in a few weeks :P
06:51 <+okinoid> kill -9 PID
06:52 <+nanodeath> thanks okinoid
06:52 <+nanodeath> for kicks I was doing merb -a webrick and that refuses to shutdown apparently
06:58 <+okinoid> just be aware that kill -9 doesn't allow the code to clean up after itself. which i don't think really matters for this instance but it can leave locks around and soforth.
06:59 <+jackdempsey> okinoid: not sure exactly what you copied but underneath gems/ there needs to be another gems/ dir where the actual source is
06:59 <+jackdempsey> gems/ mimics the gems/ system folder on your machine
06:59 <+okinoid> yeah, is that not what i said?
07:00 <+okinoid> ok i have another freezing question, so i have copied the installed gem into Merb_root/gems/gems/<gem name>. and in my Merb_root/config/init.rb there is the line 'Gem.path.unshift(Merb.root / "gems")'
07:00 <+okinoid> i posted that at the start but there was a lot of system chatter since then :)
07:02 <+nanodeath> geh, is there a good catch-all effects library for jQuery? Interface's site is messed up
07:10 <+jackdempsey> okinoid: yea i wasn't sure if thats what you said but what else is in your first gems/ directory
07:10 <+jackdempsey> other dirs?
07:11 <+okinoid> yeah, well i managed to freeze the merb framework ok
07:11 <+okinoid> so all the dependancies are in there
07:12 <+okinoid> its just this one gem i need that doesn't have a repo equivalent.
07:13 <+okinoid> oh, he left...
07:53 <+piclez_> hi okinoid how did u freeze the gems in yr app?
07:54 <+okinoid> piclez_: you mean the merb core or the one i'm having trouble with?
07:54 <+piclez_> the core ;)
07:55 <+piclez_> okinoid: for the one u have that there is no repo, couldn't you download it and manually install in your machine then freeze it?
07:56 <+okinoid> for the core i just followed the example here
http://github.com/wycats/merb-more/tree/master07:57 <+okinoid> sorry wrong link
07:57 <+okinoid>
http://github.com/wycats/merb-more/tree/master/merb-freezer/README.markdown07:58 <+piclez_> oh ok ;)
07:58 <+okinoid> and the gem is installed but the freezing process can't seem to be able to find it locally although it runs fine from the unfrozen location
07:59 <+okinoid> so it is in the 'right' place but the freezing code isn't finding it.
07:59 <+okinoid> so i tried copying it into the location where it ought to be frozen manually
08:00 <+piclez_> i see, and it worked?
08:00 <+okinoid> i also remaned the dir the original one was installed in ( locally) to make sure it is using the frozen one when i get it to work
08:00 <+okinoid> well, not yet.
08:01 <+piclez_> for which version are you freezing to?
08:01 <+okinoid> i have found that the lib directory doesn't make it into the ruby $LOAD_PATH variable at the time when it tries to load the gem. but i'm not 100% sure if thats needed in merb of if there is some other magic that hadles that.
08:03 <+okinoid> adding it manually in debug mode makes it work so all the code is in the right place within the frozen directory.
08:04 <+okinoid> i'm guessing for some reason the 'Gem.path.unshift(Merb.root / "gems")' doesn't work like i think it should or has problems.
08:05 <+okinoid> thats where i'm up to at the moment. sorry for the spam for all those not interested :)
08:07 <+okinoid> piclez_: any ideas?
08:13 <+okinoid> lachie: do you recall this ticket?
http://merb.lighthouseapp.com/projects/7435/tickets/76-added-gem-path-manipulation-to-frozen-merb-template08:14 <+okinoid> it pretty much describes what i'm tyring to do.
08:16 <+GitHub103> merb-core: Fabien Franzen master SHA1-b8d1a00
08:16 <+GitHub103> Merge branch 'master' of g...@github.com:wycats/merb-core
08:16 <+GitHub103>
http://github.com/wycats/merb-core/commit/b8d1a0098a5513caa23a860a8d627f1af87ca09d08:22 <+okinoid> does anyone know what that GitHub103 thing was about?
08:23 <+jeckel> okinoid: it's a commit to github, updating merb-core
08:23 <+jeckel> it's a github bot
08:24 <+okinoid> ok cool.
08:24 <+okinoid> for a second i thought it was in reference to the ticket i posted... that would have been a cool feature... :)
08:25 <+jeckel> heh
08:30 <+piclez_> okinoid: sorry not sure how to help on this freeze
08:31 <+okinoid> well i have a very ugly and horrible hack solution
08:31 <+piclez_> I'm getting this error when I raise NotFound: Merb::ControllerExceptions::NotFound
08:31 <+piclez_> shouldn't the raise call the not_found in Exceptions?
08:32 <+piclez_> haha okinoid well if it works the hack for the moment ;)
09:13 <+jarkko> any reason why have_selector and match_tag don't support block params like have_tag
09:58 <+Blinchik> does anyone know how to implement rails' yield(:sidebar) / content_for :sidebar do ... end?
10:02 <+jeckel> Blinchik: <%= yield :sidebar %> then <% content_for :sidebar do -%> something here <% end -%>
10:03 <+Blinchik> jeckel: merbs!
10:03 <+jeckel> ah
10:03 <+jeckel> lol
10:03 <+jeckel> sorry, very tired here
10:04 <+jeckel> catch_content :sidebar / throw_content :sidebar do ... end
10:05 <+Blinchik> yeah, i get it :-)
10:10 <+taerb> anyone tried using datamapper 0.9 yet?
10:10 <+jeckel> yes, ;)
10:10 <+taerb> lol, jeckel, i got more problems...
10:10 <+taerb> RubyGem version error: data_objects(0.9.0.1 not = 0.9.0)
10:11 <+taerb> when i try and run merb
10:11 <+jeckel> did you have a previous version of data_objects/dm installed
10:12 <+taerb> well i did a gem clean
10:12 <+taerb> so yes i did
10:12 <+jeckel> check and see if they are still there
10:12 <+jeckel> it looks like it's loading the 0.9.0 version instead
10:12 <+jeckel> might need to remove all old versions of do and dm
10:12 <+taerb> should i just recreate my app?
10:13 <+taerb> re-generate that is
10:13 <+jeckel> no, you shouldn't need to
10:13 <+taerb> doesnt look like its not there, all i see is the new stuff
10:13 <+jeckel> I haven't actually tried 0.9.0.1 yet in an app, just using 0.9.0
10:14 <+taerb> all of its 0.9.0.1
10:14 <+jeckel> so let me check on an app I have with 0.9.0
10:16 <+taerb> well just tried creating a new test app and i still get the same error, one thing to check off the lsit
10:17 <+jeckel> yea, you're gonna get the same error regardless
10:17 <+jeckel> I see the problem
10:17 <+jeckel> merb_datamapper needs to be updated with the right version number
10:18 <+jeckel> they were pushing it out late tonight and everyone was really tired from the holiday we had here
10:18 <+taerb> heh, i dont blame ya
10:18 <+taerb> im sure it was pretty crunch, and then a few beers....
10:18 <+jeckel> it'll be fixed in the morning
10:18 <+jeckel> heh, yea
10:18 <+jeckel> as well as the dm-couchdb-adapter issue
10:19 <+jeckel> they'll be fixed in the morning, sorry about that
10:19 <+taerb> no bigs man, thanks for all the help, i really outta sleep anyway
10:19 <+jeckel> np, have a good one
10:19 <+taerb> i have just been waiting for this for a minute, really stoked to get working with it
10:19 <+jeckel> cool, it's really an awesome orm
10:20 <+taerb> yah, after seeing wycats' vid of the presentation from MWconf
10:20 <+taerb> i was blown away
10:21 <+taerb> quick question, you know if anyone is gonna be talking about merb or dm at ruby hoedown?
10:21 <+jeckel> uhm, I'm not sure, but I wouldn't be surprised
10:21 <+taerb> sweet, it will be my first conference
10:21 <+jeckel> cool
10:21 <+taerb> thanks again, laters
10:21 <+jeckel> later
12:12 <+bingoer> hi all
12:13 <+bingoer> any opinions about merb-action-args ?
12:15 <+Frost> haven't tried it, but I like the idea
12:20 <+hassox> bingoer: it's a great thing I think
12:20 <+hassox> doesn't get in the way of your own assingments, but protects from malicious injectsion
12:20 <+hassox> injection
12:21 <+Frost> oh, thats right... I didn't even think about that one
12:21 <+bingoer> hmm
12:22 <+bingoer> also improves readability, someone reading the code won't know what to expect in params, unless he has a look at the view
12:22 <+bingoer> but I wonder - does it work with just GET requests or with POST as well ?
12:24 <+bingoer> hmm, I guess, it makes sense to use it with GET, we wouldn't want to have 20 params for a form
12:25 <+bingoer> but how does it handle params[:id], eh ?
12:50 <+bingoer> hmm, merb-action-args-0.9.4 doesn't seem to work, and neither does any action/controller
12:50 <+bingoer> I just get an empty 0-byte response
12:52 <+Blinchik> is there an alternative to "string_lolcataz".classify => "StringLolccatz" in Merb?
12:53 <+bingoer> ah, silly me, I had to specify merb-action-args to load after_app_loads
14:18 <+Blinchik> does anyone know why merb ignores config directory when i'm running ~$ merb -I ../shared/config/init.rb ?
14:20 <+Blinchik> in my init.rb: Merb::Config.use do { |c| c[:framework] = {:config => "#{Merb.root}/../config"} }
15:46 <+sergiu> hi
15:46 <+sergiu> one question about routing :)
15:46 <+sergiu> if I have in my router file
15:46 <+sergiu> r.match('/login').to(:controller => 'sessions', :action => 'new')
15:46 <+sergiu> how do I use this login url in controllers/views
15:47 <+sergiu> can I do url("/login")?
15:50 <+sergiu> I mean, are there generated any kind of helpers like in rails?
15:50 <+viewlogic> url(:login)
15:51 <+sergiu> right, I found it now on the merbivore wiki
15:51 <+sergiu> thanks :)
15:52 <+sergiu> with the exception that when defining the route, I have to specify the name
15:52 <+sergiu> like
15:52 <+sergiu> r.match('/login').to(:controller => 'sessions', :action => 'new').name(:login)
15:52 <+sergiu> and then I can use url(:login)
15:53 <+sergiu> cool
16:17 <+GitHub63> merb-core: Fabien Franzen master SHA1-b5b270f
16:17 <+GitHub63> Better usage of merb_rake_helper.rb
16:17 <+GitHub63>
http://github.com/wycats/merb-core/commit/b5b270f14c58f832fbfefa2c38775d9c05e872a516:18 <+GitHub79> merb-more: Fabien Franzen master SHA1-42d1c94
16:18 <+GitHub79> Removed merb_rake_helper.rb - moved to merb-core
16:18 <+GitHub58> merb-plugins: Fabien Franzen master SHA1-7d52b0b
16:18 <+GitHub79>
http://github.com/wycats/merb-more/commit/42d1c9400933e4674edf0e198f536881c4aa707c16:18 <+GitHub58> Tiny touchup
16:18 <+GitHub79> merb-more: Fabien Franzen master SHA1-d0ab5df
16:18 <+GitHub58>
http://github.com/wycats/merb-plugins/commit/7d52b0b5f86af3a5dc6085468edc2da5c9bfdcb416:18 <+GitHub79> Tiny doc fixes
16:18 <+GitHub79>
http://github.com/wycats/merb-more/commit/d0ab5dfb516634b4bfde86bc51a6973ba4c77ef816:18 <+GitHub79> merb-more: Fabien Franzen master SHA1-7eac13f
16:18 <+GitHub79> Spring cleaning Rakefiles
16:18 <+GitHub79>
http://github.com/wycats/merb-more/commit/7eac13f6389fe7ae1a70f7eac10e0ffac491a6e116:52 <+senotrusov> I'm looking for ezmobius email address. Can't find it on a website. Can anybody help me?
17:24 <+senotrusov> Is any constantize-like method in merb?
17:26 <+jackdempsey> maybe full_const_get
17:26 <+jackdempsey> look in core_ext/object.rb
17:30 <+senotrusov> jackdempsey: thanks! I was looking for it in class.rb
17:30 <+jackdempsey> cool. hope thats what you need
17:56 <+hot-dog> hi, you know the name of the plugin for create a slice app ?
17:56 <+hot-dog> or the name of gem
17:57 <+jackdempsey> merb-slices
17:58 <+jackdempsey> its in merb-more
18:00 <+hot-dog> ok, i have updated my gem, but i dont have it
18:01 <+jackdempsey> i'm not sure what its status is as far as being in what version of the gems. i'd suggest git cloning the source and looking at it that way
18:02 <+hot-dog> ok y see, thanks
18:03 <+jackdempsey> the sake tasks here are nice if you haven't seen them
18:03 <+jackdempsey>
http://www.gweezlebur.com/2008/3/1/quickie-sake-tasks-for-merb-hackers18:07 <+hot-dog> jackdempsey: very cool
18:09 <+jackdempsey> yep!
18:50 <+bbn_> <3 merb
18:51 <+bbn_> so last night there was a problem at EY, and my slices lost access to their /data directories for about an hour
18:51 <+bbn_> rails apps all started failing immediately
18:51 <+bbn_> merb apps kept running
18:52 <+bbn_> guess they don't access the app directory once they've been running for a while
18:58 <+GMFlash> i think rails < 2.0 checks for updated views but anything after that version loads it all into memory
19:12 <+bbn_> yeah, think I'm still running rails 1.2.x
19:13 <+bbn_> to be honest I actually like running in "developer" mode lots of the time.
19:13 <+nanodeath> hmm, I tried doing a merb:gems:refresh and it exploded on me
19:14 <+nanodeath> ookay, apparently running it twice is the solution. nevermind
20:13 <+elven> hi
20:13 <+elven> How do I share information in a controller for all requests? Setting a class variable does not work as expected
20:14 <+elven> eg, @@assoc_model[self] = Someclass; then later accesssing (from a action-method) @@assoc_model[self.class] does not actually yield Someclass; the class var is not defined
20:14 <+elven> "this used to work in rails"
20:18 <+elven> okay, murphy effect, works now
20:18 <+project_> pastie? that looks like it should work
20:18 <+project_> oh haha
20:19 <+project_> has anyone done anything with slices yet? if i get some time free at work i might toy around later this week
20:19 <+elven> and now not again
20:21 <+elven>
http://aryvandaar.swordcoast.net/~elven/blah.txt20:21 <+elven> This is how it looks
20:23 <+elven> i just changed def associated_model to use self.class as a reference
20:23 <+elven> my log output:
20:23 <+elven> Setting associated model Account for User
20:23 <+elven> {} / Setting associated model for view: User: nil / blah: {}
20:24 <+elven> so apparently @@associated_model gets unset somewhere along the way
20:30 <+elven> okay, I think I know why it fails
20:35 <+elven> perfect, seems to work now
20:37 <+jackdempsey> what was wrong
20:38 <+elven> seems that the class Application gets loaded more than once, and the @@associated_model = Hash.new evaluated at least once AFTER User calls set_assoc..
21:07 <+nanodeath> wycats_afk: I have a problem with the metadata plugin :(
21:22 <+GitHub175> merb-core: Ezra Zygmuntowicz master SHA1-d9af8e9
21:23 <+GitHub175> added DHH copyright notice to conre_ext/class.rb
21:23 <+GitHub175>
http://github.com/wycats/merb-core/commit/d9af8e9aa0fc30af4f563ec2dd26279bb5b19c7121:25 <+ForsakenSoul> hi .. maybe a lot of you guys are tired of hearing these kind of questions but can someone please point out to me in which senario merb is better than rails ... don't get me wrong on this one ... I'm just wondering if merb would do better than rails in developing smaller apps
21:26 <+ForsakenSoul> I'm a newbie web developer ... who spend a lot of time learning ruby and rails ... but I see now that rails is more powerful than I need it in some scenarios can someone just humor me on this one and tell me where merb does best
21:26 <+ForsakenSoul> thank you in advance
21:29 <+GMFlash> if you're building a basic web service or something where speed and low memory footprint are a priority then merb is better for that, and if you want more control in general with your app, offroading if you may, merb is a better choice
21:29 <+GMFlash> for 80% of the people out there rails takes care of their needs though
21:30 <+ForsakenSoul> well GMFlash ... my situation is that I'm a new programmer ... and I and a couple of guys want to start freelancing this summer
21:30 <+foysavas> ForsakenSoul: because merb and rails are so similar, honestly appreciating merb over rails takes a bit more exposure and experience to both ruby and and mvc frameworks
21:30 <+ForsakenSoul> but as I learn more rails I feel it is too powerful and complex for setting up small sites
21:30 <+ForsakenSoul> would merb be easier to set up on a server
21:31 <+GMFlash> i would say if you're still new to programming you'll have an easier time getting started until merb 1.0 is released
21:31 <+GMFlash> the documentation and tutorials are starting to ramp up for a 1.0 release but are still far outnumbered by the rails resources out there
21:31 <+GMFlash> it isn't hard to "switch" if you wanted to later
21:32 <+foysavas> ForsakenSoul: i agree with GMFlash
21:32 <+GMFlash> it's pretty much a matter of copying over your activerecord models and changing the names of some form helpers in your views
21:33 <+ForsakenSoul> well ok that's good news ... I though that switching would be easy because of the simillarity ..
21:33 <+ForsakenSoul> I think I'm not getting my point ... please excuse me ... I'm a bit confused in the moment ...
21:33 <+ForsakenSoul> I'll start with basic question ok ?
21:34 <+ForsakenSoul> is merb easy to set on a server ?
21:34 <+nanodeath> about as easy as rails, I think
21:34 <+GMFlash> yeah pretty much the same as rails for setting up
21:34 <+foysavas> both rails and merb have their challenges in deployment, but for either it's about the same
21:34 <+nanodeath> check out passenger
21:34 <+nanodeath>
http://www.modrails.com/21:35 <+iamaleksey> ForsakenSoul: I believe it would be easier to find a freelance job with rails
21:35 <+GMFlash> i think rails is a skill you should have regardless of what ruby framework you choose
21:35 <+ForsakenSoul> iamaleksey ... yeah but I'm from bulgaria
21:35 <+iamaleksey> ForsakenSoul: and a job in general
21:35 <+ForsakenSoul> and rails is still not that famous here
21:36 <+GMFlash> what is popular in bulgaria? php?
21:36 <+ForsakenSoul> can someone point me to some small lightweight platform ... which is better for small more static apps ... and easier for setting on a server
21:36 <+iamaleksey> ForsakenSoul: I'm from Belarus and working fulltime with rails (:
21:36 <+ForsakenSoul> GMFlash ... yeah ... they are still on php
21:36 <+nanodeath> ForsakenSoul: I like CodeIgniter for php :)
21:37 <+ForsakenSoul> well I'm not that familiar with php and it's frameworks
21:37 <+ForsakenSoul> to be honest ruby is the first language I really learned
21:37 <+GMFlash> ForsakenSoul: if you want a small lightweight ruby platform then i would say merb. sinatra and camping are not as actively developed
21:37 <+ForsakenSoul> and rails is the first framework I'm starting to understand and use
21:38 <+GMFlash> you can make a single-file merb app if you want
21:39 <+ForsakenSoul> ok ... I know this isn't the right place but I would ask before moving on. ... would wuby be a better substitude for building a small site ... without much expences
21:39 <+ForsakenSoul> because I think the expences on deploying a small rails app aren't worth the effort
21:39 <+GMFlash> if it's a small site then just use PHP
21:40 <+GMFlash> PHP was designed for small simple sites. it's when you try to make bigger applications with it things get difficult
21:40 <+elven> PHP sucks regardless of the applications' size
21:41 <+nanodeath> PHP was designed with forethought? :P
21:42 <+GMFlash> heh it isn't as nice to use as ruby but it has its uses
21:42 <+nanodeath> true...I have a php script handling sms messages somewhere. it's fun stuff
21:45 <+nanodeath> wycats: hola
21:52 <+project_> i don't like PHP but i don't believe in outright hating of it
21:52 <+project_> it's really keeping most of the internet rolling, and helps a lot of people get into web dev easily
21:52 <+nanodeath> I don't hate it, I just think it was poorly planned
21:52 <+project_> that's giving it credit for being planned at all ;)
21:53 <+GMFlash> hey it even powers facebook :)
21:53 <+nanodeath> they also memcache the hell out of it
21:53 <+project_> memcache saves lives
21:53 <+project_> a friend had a great twitter a few days ago, "who cares what language or framework you're using? it's just there to fill the memcache anyway"
21:54 <+plaggypig> hehehe
21:54 <+nanodeath> hah, nice
21:54 <+GMFlash> that's like saying "who cares what food you eat? it's just there to provide you with calories"
21:55 <+plaggypig> did microsoft buy zend?
21:55 <+GMFlash> not sure. i know they partnered up though
21:56 <+GMFlash> doesn't look like it
21:56 <+nanodeath> there was an April Fool's that Microsoft bought Zend, heh
21:56 <+GMFlash> i love their web site:
http://framework.zend.com/21:57 <+GMFlash> maybe merbivore can benefit from bits of that design
21:57 <+plaggypig> pretty slick
21:57 <+nanodeath> it's very......3d
21:58 <+sergiu> sorry for interrupting. is there a short tutorial about writing a merb plugin?
21:58 <+sergiu> or maybe a longer one :)
21:58 <+jeckel> drfreeze: ping
21:58 <+nanodeath> sergiu: I haven't seen one. I just went merb-gen plugin blah and emulated another plugin I had installed
21:59 <+sergiu> I have a plugin which works great in rails. though I'm not sure how I make merb load it
21:59 <+sergiu> I want to mixin a module into the views and controllers
22:00 <+drfreeze> jeckel: pong
22:00 <+sergiu> merb-gen plugin generates a new folder in the lib directory. what I can see in the merbivore wiki about plugins, is that they all are gems
22:00 <+nanodeath> sergiu: well like, in my main plugin file I have a Merb::Controller.send(:include, Module::With::My::Plugin) in the before_app_loads thing
22:00 <+jeckel> drfreeze: how's it going? when's a good time to talk conference?
22:01 <+sergiu> nanodeath: let me try that :)
22:01 <+nanodeath> sergiu: you need to run merb-gen in a different place
22:01 <+nanodeath> sergiu: by which I mean not a merb project directory
22:01 <+sergiu> nanodeath: right, I was about to ask that. thanks
22:01 <+nanodeath> sergiu: then you do your thing with the merb plugin, followed by rake install. don't forget to require it in your init.rb of your test app ;)
22:01 <+drfreeze> jeckel: now
22:02 <+sergiu> <b>nanodeath</b>: ok
22:02 <+jeckel> drfreeze: here or another spot?
22:02 <+sergiu> I was trying markup :)
22:03 <+nanodeath> I wonder if some irc clients support that
22:06 <+sergiu> nanodeath: any idea what's the base class for merb views? the correspondend for ActionView::Base in Rails
22:07 <+nanodeath> sergiu: Merb::Controller covers both evidently, in my experience
22:07 <+sergiu> cool, thanks
22:07 <+nanodeath> not really sure how that works, but it seems to :P
22:08 <+iamaleksey> what is the merb analogue for rails' flash? I don't mean the plugin, I mean the corresponding idiom - if there is one
22:09 <+jackdempsey> you know merb_has_flash?
22:09 <+nanodeath> I think he meant besides that
22:09 <+holaway> I don't think there is one besides that
22:10 <+nanodeath> like, what are you supposed to do if you don't want merb_has_flash
22:10 <+jackdempsey> yea not sure what that means....there's no other
22:10 <+jackdempsey> session[:flash] :-)
22:10 <+holaway> you would be storing session data and then clearing it manually
22:10 <+holaway> session[:something] = 'foo' # in action a
22:10 <+holaway> session[:somtehing = '' # in action b
22:10 <+nanodeath> hm
22:11 <+nanodeath> I think that translates as "there isn't one", for iamaleksey
22:11 <+iamaleksey> yeah, that's the closest thing I could come up with. doesn't seem cclean
22:11 <+iamaleksey> * clearing manually
22:11 <+holaway> right
22:11 <+nanodeath> why not use the plugin?
22:12 <+holaway> The other way to handle that is to not do quite so much redirect -> display
22:12 <+holaway> which is how we rolled back in the OG day's before flash
22:14 <+iamaleksey> why not use the plugin? dunno. I think it's ok, just wondered if I somehow missed the merb way of doing this
22:14 <+holaway> iamaleksey: I wondered about that too
22:14 <+holaway> but flash really probably belongs as a plugin
22:14 <+holaway> since it's just a fancy wrapper for some session logic
22:15 <+holaway> and you can build a whole lot of apps that don't need the flash
22:15 <+nanodeath> it seems like there's some overhead to making everything a plugin, but if it's all handled at boot time...it's not really a big deal, I'd think
22:16 <+iamaleksey> holoway: most things are just fancy wrappers around something (:
22:16 <+iamaleksey> holoway: but flash is somewhat really often used
22:16 <+nanodeath> ruby is a fancy wrapper around c :)
22:16 <+iamaleksey> :)
22:19 <+jackdempsey> or if you like rubinius, a fancy wrapper around itself :-D
22:19 * plaggypig head explodes
22:20 <+jackdempsey> hehe
22:20 <+Frost> anyone else had problems with arrays in merb not responding to group_by ?
22:20 <+jackdempsey> um
22:20 <+jackdempsey> thats not a native Array method is it?
22:20 <+Frost> no
22:20 <+nanodeath> jackdempsey: that reminds me of scheme (and ruby too, I think) where the class at the top of the hierarchy is actually a child to one of its children
22:21 <+Frost> jackdempsey: perhaps I'm just thinking too much rails, but I'm quite sure it worked before I upgraded datamapper to 0.9
22:21 <+jackdempsey> hehe yea the hierarchy of whats a class and what object a class is and what class Object and Class are.....and yea, cool stuff
22:21 <+jackdempsey> oh
22:21 <+jackdempsey> maybe it was mixed in by DM then?
22:22 <+Frost> perhaps
22:25 <+Frost> jackdempsey: seems like it. in a fresh merb project, [].respond_to? :group_by => false
22:25 <+Frost> in my existing project on my server however, i get => true
22:25 <+Frost> ...and it's using datamapper 0.3
22:25 <+jackdempsey> ah
22:25 <+Frost> perhaps I just forgot to include something when I tried to upgrade..
23:25 <+piclez> hi guys can I update my merb-freezer folder in merb-more only using git?
23:33 <+midget_nuts> who put the two girls one cup video on the merb wiki?
23:38 <+mattetti> piclez: hi guys can I update my merb-freezer folder in merb-more only using git? <-- what do you mean?
23:41 <+mattetti> for merb-freezer to work, you need to require it in your app
23:41 <+piclez> mattetti: say I don't want to update merb-more to edge, just freezer for now
23:41 <+mattetti> git pull
23:41 <+piclez> so I can install it first them freeze
23:41 <+mattetti> rake install
23:42 <+piclez> but git pull will update the whole tree right?
23:43 <+mattetti> right, but you are doing that outside of your app, right?
23:43 <+piclez> yep
23:44 <+mattetti> so just install the freezer from there
23:45 <+piclez> alrite, I didnt want to have to update all my source but I will clone a new fresh and install from there tks mattetti
23:46 <+mattetti> np
23:46 <+piclez> I need merb_rake_helper?
23:50 <+piclez> mattetti I got no such file to load -- merb-core/tasks/merb_rake_helper maybe I need to update anything else before?
23:50 <+mattetti> you are probably not on the latest version of the code
23:54 <+piclez> which one, merb-core? I'm on 0.9.2 I think
23:56 <+mattetti> you need at least 0.9.3 to run on freezer and you need the latest version of the freezer
23:58 <+piclez> got it tnks mattetti
23:58 <+piclez> so this means I can't freeze an app to 0.9.2 right?
--- Log closed Wed May 28 00:00:28 2008