Statistics | Archive | Index |

Log for #rubyonrails, Saturday 17 May 2008

[04:07:33] <dirtyhand> and css
[04:07:30] <dirtyhand> no, Textile filters out some html
[04:07:15] <roller8> dirtyhand: do you mean something like textile?
[04:06:21] <floydg> quit
[04:06:12] <dirtyhand> is there some sort of gem/plugin/trick to let a user input HTML and CSS but filter out any other stuff (like ruby/js)?
[04:06:11] <codafoo> quit
[04:06:02] <dirtyhand> woops
[04:05:52] <dirtyhand> how do I find deploy's primary UNIX group?
[04:03:00] <jcreigh> quit
[04:02:45] <dwhsix> thanks
[04:02:29] <dkam> part
[04:02:26] <Radar> ah ok
[04:02:18] <dwhsix> Radar: works -- although you actually do need the quotes
[04:01:49] <sseago> join
[04:01:25] <sseago> quit
[03:59:55] <dwhsix> it did seem like something ActiveRecord should be able to do... lemme try that
[03:59:40] <dwhsix> cool! much thanks...
[03:59:19] <Radar> For bonus points I think you can even remove the quotes around that.
[03:59:09] <Radar> dwhsix: :class_name => "PropertyValues", not :class_name => "property_values"
[03:58:19] <dwhsix> but maybe I'm going about it the wrong way..
[03:57:45] <pastie> http://pastie.org/198599 by dwhsix.
[03:57:43] <dwhsix> what I tried didn't work
[03:57:38] <dwhsix> is there any way I can have 2 has_many associations defined from the parent to same child table, but with different conditions?
[03:57:33] <Radar> join
[03:57:12] <Radar> quit
[03:56:29] <funburn> join
[03:56:26] <Radar> no problem, I'll brb.
[03:56:18] <maek> Radar: ah, so there are fields in the shows table that are used by only one of the types. sorry for the confusion. thank you.
[03:55:05] <Radar> By just not setting them when you create a tv show.
[03:54:42] <maek> understood. Im still confused as to how you could have extra fields for the radio-show and end up storing them in the shows db. sorry im missing this. thanks for the help.
[03:54:13] <dwhsix> pastie
[03:53:55] <celeretaudax> quit
[03:53:40] <Radar> the radioshow model is linked to the show model which then links it to the shows table the data bein stored in the shows tabl;e
[03:53:33] <maek> or in the show db table do you have certain fields that one or the other dont use?
[03:53:31] <roller8> join
[03:52:55] <maek> Radar: but where would that data get stored because the radio-show model isnt linked to a db table, right?
[03:52:07] <Radar> validations yes, if you had extra fields on a radio-show that you didn't have on a tvshow, the validations for it would go in the radioshow model
[03:51:33] <dwhsix> join
[03:51:24] <maek> Radar: sorry to be a pest, in the TvShow and RadioShow models what kind of unique stuff would go there, validations? if the DB table is all the same why would you need an individual model?
[03:50:48] <celeretaudax> https://login.byu.edu/login/html/login.fcc
[03:50:15] <celeretaudax> break in to this one....
[03:50:10] <celeretaudax> oh brough, I linked the wrong one
[03:49:21] <maek> cyclo|sleep: thanks for the help
[03:48:45] <Mr_Elusive> join
[03:48:03] <brough> '// If not needed, all code below this line may be removed' oh lol.
[03:46:38] <celeretaudax> haha
[03:46:29] <brough> var DELETE_ROOT_FOLDER_ERROR = "You may not delete the root folder of the content area."; js validation ftw.
[03:46:24] <cyclonut> be well.
[03:46:22] <cyclonut> good to see everyone again.
[03:46:18] <cyclonut> yessah
[03:46:14] <celeretaudax> ;)
[03:46:11] <celeretaudax> thanks again
[03:46:08] <celeretaudax> night man
[03:46:08] <jasonfiset> quit
[03:46:07] <cyclonut> g'night folks
[03:46:03] <celeretaudax> can yuh break-in?
[03:46:01] <cyclonut> okay, time for a smoke and then to bed
[03:45:20] <celeretaudax> hahaha, it's awesome
[03:45:17] <jasonfiset_> quit
[03:45:16] <brough> that site wins.
[03:45:07] <brough> wow.
[03:45:05] <jasonfiset_> join
[03:44:22] <maek> Radar: for the most part I think you are right on that.
[03:44:10] <celeretaudax> http://byulearning.pointecast.com/lms/availableCourses/
[03:44:03] <celeretaudax> protip: check js
[03:43:59] <celeretaudax> login
[03:43:54] <Radar> maek: I just assumed the information of the tv shows and radio shows would be similar enough to have just the one table for them.
[03:43:38] <Radar> maek: because they inherit from the show model they will store their information in the shows table.
[03:43:36] <celeretaudax> check this out
[03:43:33] <celeretaudax> but hey you wanna be a BYU student?
[03:43:24] <celeretaudax> haha, I don't know what that means
[03:43:06] <brough> it's *so* bad, I can eval it! I
[03:42:55] <maek> Radar: I understand putting all the shows in one table, but what then would the tv_shows model and radio_shows model be for? these are model with no db table associated with them?
[03:42:26] <celeretaudax> holy shit
[03:41:58] <Radar> maek: I wouldn't do validations like that.
[03:41:54] <cyclonut> so my advice in taht sense is no good, I am learning for myself
[03:41:52] <celeretaudax> oh gotcha
[03:41:45] <brough> celeretaudax: 'View Javascript' in Web Developer toolbar. 8)
[03:41:40] <cyclonut> maek: im a rails polymorphism neophyte, and I've never done it under MVC frameworks before
[03:41:11] <cyclonut> maek: that is correct
[03:41:08] <brough> http://www.bluechipvacations.com/holiday-cottages/newquay/the-harbour-pentire-mews.html?tab=activities
[03:40:44] <maek> cyclonut: you also said I wasnt using _'s right based on this http://pastie.org/198529
[03:40:16] <maek> er, if its an episode for tv it can only be from these shows
[03:40:05] <celeretaudax> brough; what site?
[03:39:59] <Radar> You could share the views if you wanted to, if you wanted different titles or something then just do it in two seperate controllers.
[03:39:58] <maek> would the model be for validations etc etc, like saying if its a tv show it can only be of these types?
[03:39:51] <linoj> join
[03:39:47] <brough> that actually returns a nice chunk of formatted html. nuts how ppl obviously intelligent ppl write entire mini webframeworks as client-side js.
[03:39:44] <rhett> join
[03:39:42] <maek> that would be the controller right?
[03:39:26] <linoj> quit
[03:39:25] <cyclonut> Radar: am I correct in saying that? no, Im not. It wouldnt be different views... hrmmm
[03:38:29] <celeretaudax> hope it's not the guardian site
[03:38:28] <Radar> maek: no, all tv shows and radio shows all go in the same table.
[03:38:25] <cyclonut> maek: i.e. rendering different views
[03:38:15] <cyclonut> maek: redefine the actions that you need specific things for
[03:38:04] <brough> tabs = {};text = html.scan(/tabs.*/);eval text[1];p tabs['summary']
[03:38:02] <brough> you know a webpage is f'd when you can do this in the scrape script
[03:37:36] <maek> Radar: thanks for the pastie for the polymophic, when it says "tv speific" would that be to create a new table?
[03:37:28] <Ryan52> yup.
[03:37:16] <Ryan52> I think I got it. Thanks.
[03:37:04] <floydg> join
[03:36:52] <floydg> quit
[03:36:37] <Radar> Ryan52: you're trying to call it on the class rather than an object of that class.
[03:36:17] <celeretaudax> very cool effect
[03:36:14] <celeretaudax> and i cut around the bottom witha grinder so it looked like it was laying on it
[03:36:06] <Ryan52> I added a public method to my model. When I try to call ModelName.a it fails and says: "undefined method `a' for #<Class:0xb68c67a0>". What did I forget?
[03:36:05] <RainChen> join
[03:36:01] <celeretaudax> well my brother anyway
[03:35:57] <celeretaudax> no we did the chimney
[03:35:40] <celeretaudax> cherry engineered hardwood
[03:35:03] <maek> did you gays make the chimney by hand or is it pre fab?
[03:34:39] <maek> what kind of wood is that?
[03:34:31] <celeretaudax> and all the fucking sod
[03:34:25] <celeretaudax> yeah I laid the floors
[03:34:22] <muriel> join
[03:34:07] <celeretaudax> yeah
[03:34:04] <maek> are you guardian homes?
[03:33:59] <celeretaudax> sweet man, glad to hear it!
[03:33:50] <cyclonut> the living room is beautiful
[03:33:39] <maek> no shit, very nice job.
[03:33:07] <celeretaudax> my brother, myself, and my dad built it
[03:33:06] <maek> bordering on love.
[03:32:59] <celeretaudax> maek: like it?
[03:32:53] <floydg> join
[03:32:51] <maek> that house has some amazing exterior stone work
[03:31:17] <felixflores> is this the same as a polymorphic association in the model level/
[03:31:03] <felixflores> t.references :taggable, :polymorphic => { :default => 'Photo' }
[03:31:02] <felixflores> can anyone point me to any literature regarding this type of migration
[03:30:54] <celeretaudax> they haven't been updated since he moved
[03:30:24] <cyclonut> holy moly, I was JUST out of the top linewriters... I dont know if that means that I press enter too often or what
[03:29:18] <cyclonut> hey cool! I just got invited to a tech conference tomorrow
[03:29:09] <cyclonut> now THOSE are the irc stats I'm used to
[03:28:34] <celeretaudax> the house in question: http://guardiancustomhomes.com/homes/inventories/1/
[03:28:22] <felixflores> join
[03:27:19] <celeretaudax> http://www.tpope.net/pisg/rubyonrails.html
[03:27:08] <viewlogic> join
[03:26:46] <cyclonut> cool!
[03:26:01] <celeretaudax> k one sec
[03:25:56] <celeretaudax> my dad's home he built was just on tv
[03:25:48] <cyclonut> yes please
[03:25:43] <celeretaudax> cyclonut: you want the link to tpope's?
[03:25:28] <cyclonut> Radar: gotcha
[03:25:17] <sikkle> quit
[03:25:12] <Radar> cyclonut: yeah, like celeretaudax already said tpope has that covered. rails.loglibrary.com is just a way to look up what other people have typed
[03:25:06] <celeretaudax> yeah, I had seen that thing a long time ago when i used to google for questions
[03:24:48] <Radar> celeretaudax: yes it's mine.
[03:24:11] <Vicfred> join
[03:23:46] <celeretaudax> lacked vision methinks
[03:23:33] <celeretaudax> yeah
[03:23:26] <brough> I agree the lines where a little distracting
[03:23:01] <brough> ?
[03:22:59] <brough> celeretaudax: the blog comments design
[03:22:50] <celeretaudax> not cool
[03:22:06] <brough> ;P
[03:22:04] <brough> from reality?
[03:21:18] <celeretaudax> am I disconnected?
[03:18:19] <geoffreyd> quit
[03:17:56] <rubydiamond> join
[03:17:04] <floydg> quit
[03:16:03] <sseago> join
[03:15:48] <sseago> quit
[03:15:46] <celeretaudax> haha
[03:15:43] <rrich> join
[03:15:42] <celeretaudax> rsl/
[03:15:38] <celeretaudax> hum
[03:14:56] <qrush> quit
[03:14:54] <workdammit> yeah i can require it from irb now
[03:14:53] <celeretaudax> possible gem update system
[03:14:46] <celeretaudax> are you sure it installed
[03:14:40] <celeretaudax> umm, it has always showed up for me
[03:14:27] <celeretaudax> Bill Gates has asperger?
[03:14:21] <workdammit> celeretaudax: that worked, but the gem still doesn't show up in gem list - do you know of a way to fix that?
[03:12:56] <celeretaudax> hey brough, I'm changing that design by the way
[03:12:01] <celeretaudax> yup
[03:11:58] <workdammit> thx!
[03:11:55] <workdammit> celeretaudax: ah that was the step i forgot
[03:11:48] <dkam> When they have the timestamp, they're not compressed.
[03:11:47] <celeretaudax> then cd to that location and 'ruby install.rb'
[03:11:41] <dkam> But when I manually include the js files directly and without the timestamp, they're compressed.
[03:11:32] <celeretaudax> okay well extract it to your gem files
[03:11:30] <pythonic> oh, right
[03:11:25] <celeretaudax> oh gem, not git
[03:11:08] <dkam> Yeah - I know - it gets appended by "javascript_include_tag" method.
[03:11:06] <cyclonut> workdammit: http://gems.github.com/
[03:11:06] <workdammit> celeretaudax: no
[03:11:00] <celeretaudax> workdammit: do you have git?
[03:10:34] <pythonic> that's a timestamp
[03:10:32] <workdammit> how do i install a gem from github
[03:10:01] <dkam> It's odd because the css files get compressed, but not the js, and both have ?1203324334 appended.
[03:10:00] <cch1> join
[03:09:57] <cyclonut> and blarg = blah with more exasperation
[03:09:53] <barkbarkmeow> quit
[03:09:38] <cyclonut> workdammit: btw, glarb = blarg but with more frustration ;)
[03:09:21] <rorbby> quit
[03:08:11] <celeretaudax> man I'd be on the google
[03:06:13] <dkam> Yep - that's currently where I'm trying to fix it.
[03:05:28] <cyclonut> dkam: aaah, im not sure, tbh. Have you tried running in production mode?
[03:04:51] <dkam> cyclonut: It seems to be the timestamps on the end of the javascript files that stops the gziping - I was wondering if others had had this problem with rails?
[03:04:44] <cyclonut> (i.e. which users should be using API docs/google more)
[03:04:29] <cyclonut> what % of user's lines are answered with a non-pastie link
[03:04:24] <celeretaudax> tpope has got that covered
[03:04:08] <cyclonut> Radar: you should do some more interesting stats, like what % of a user's lines end in question mark
[03:03:28] <theRemix> filter clash
[03:03:19] <theRemix> if i use SslRequirement, i get endless redirect loops
[03:03:04] <celeretaudax> ?
[03:03:00] <celeretaudax> Radar: that's yours
[03:02:48] <theRemix> how can i make links to ssl secured pages without using SslRequirement ?
[03:02:48] <jcreigh> join
[03:02:09] <theRemix> join
[03:01:52] <cyclonut> or the legendary "truf"
[03:01:45] <Radar> can't remember their name. Now that http://rails.loglibrary.com </shameless plug> is back up and running, I could always just look it up.
[03:01:37] <celeretaudax> so it can be true and false of course
[03:01:03] <cyclonut> oh my
[03:01:03] <Radar> checkboxes instead of radio buttons.
[03:01:00] <celeretaudax> haha, who did that?
[03:00:54] <Radar> Whoops, other way around.
[03:00:46] <Radar> I wonder how that guy went last night, the one who was trying to convince his client to use radio buttons instead of two checkboxes that said "true" and "false"
[03:00:41] <cyclonut> ACTION hates design
[03:00:38] <celeretaudax> master of none
[03:00:35] <celeretaudax> jack of all trades
[03:00:32] <celeretaudax> wish i didn't do design and development
[03:00:07] <snailrails> Radar: cool thanks
[03:00:07] <Radar> onCritical
[03:00:04] <Radar> heh.
[03:00:02] <celeretaudax> onFocus, onClick, onChance
[02:59:55] <cyclonut> god does not play dice, but web developers do
[02:59:43] <cyclonut> yep, you trying to say you arent a gambling man? ;)
[02:59:17] <Radar> on chance?
[02:59:08] <cyclonut> errm, the onchance being in there too ;)
[02:58:48] <cyclonut> or better yet, showdiv = "div" + this.value; Element.show(showdiv)
[02:58:36] <celeretaudax> haha, late deliveries I guess
[02:58:13] <Radar> snailrails: onchange=\"if (this.value == 'option1') { Element.show('div') }"
[02:58:11] <cyclonut> I suppose its 11 o clock at night too ;)
[02:57:59] <cyclonut> hahaha
[02:57:57] <celeretaudax> with a very large antenna
[02:57:53] <celeretaudax> just a flower van outside
[02:57:47] <celeretaudax> haha, not yet
[02:57:28] <cyclonut> celeretaudax: still alive? no house burnings?
[02:57:16] <snailrails> Radar: no just for an option select
[02:57:15] <floydg> join
[02:57:08] <celeretaudax> that took forever
[02:57:02] <brough> I'd add that to rorobby (I was going to add something to echo the unreadable pastebin.com pastes to pastie).... it would be trivial but there are bot restrictions on pastie.org.
[02:57:02] <celeretaudax> join
[02:57:00] <Radar> cyclonut: no problem.
[02:56:58] <Radar> snailrails: in a rjs?
[02:56:55] <floydg> quit
[02:56:55] <cyclonut> Radar: I appreciate the pastie, that clarifies things a bit
[02:56:05] <snailrails> how can I update an element on a specific option select ? Like if this.value == option1 show('div')
[02:55:49] <cyclonut> well that makes sense
[02:55:47] <cyclonut> and you add either tv_show or radio_show
[02:55:38] <Radar> yes
[02:55:30] <cyclonut> Radar: I see, so the extra models extend 'show'?
[02:55:06] <cyclonut> glarb. thats right.
[02:54:19] <workdammit> glarb?
[02:54:12] <cyclonut> thanky radar
[02:54:06] <cyclonut> glarb, must do new round of features/fixes/tweaks on my project
[02:54:02] <rrich> join
[02:54:01] <pastie> http://pastie.org/198590 by Radar.
[02:53:26] <workdammit> sup B
[02:53:16] <justinfrench> quit
[02:51:52] <cyclonut> howdy ali
[02:51:46] <justinfrench> join
[02:51:40] <aliapriori> hey dudes
[02:51:31] <aliapriori> join
[02:51:23] <cyclonut> dkam: #apache
[02:51:20] <Radar> you'll see :P
[02:51:06] <cyclonut> Radar: my understanding is that you need an intermediary model for polymorphism to work... that just seems downright dirty to me
[02:50:31] <dkam> Hey guys - how do I convince Apache 2 to deflate my JS files? I'm using the following config line: AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml application/xml application/xhtml+xml text/javascript application/x-javascript
[02:50:04] <celeretaudax> quit
[02:49:27] <workdammit> i give a +1 to that feature request
[02:49:21] <workdammit> that sounds totally awesome
[02:49:14] <jlpeters> join
[02:49:03] <workdammit> pastie could assume anything >5 seconds later is a new message or something...maybe 3s
[02:48:56] <dkam> join
[02:48:31] <workdammit> i think that is reasonable
[02:48:30] <Radar> yes.
[02:48:21] <workdammit> he means in a PM to pastie
[02:48:13] <cyclonut> I suppose, I also suppose it'd be difficult for the paste-bot to know when you were finished with your pastie
[02:47:30] <Radar> heh :P some people would quit due to excess spam
[02:46:44] <cyclonut> does anyone else feel like you should be able to paste whatever you want in the pastie chat window, and have THAT show up as your pastie?
[02:46:13] <Radar> pastie: darling sweetie cake
[02:46:10] <cyclonut> wooo
[02:46:03] <floydg> join
[02:45:56] <Radar> sure cyclonut, I'll do it whilst eating lunchl
[02:45:56] <cliffstah> part
[02:45:35] <floydg> quit
[02:45:23] <cyclonut> maek: good luck
[02:45:17] <cyclonut> ACTION volunteers Radar for substitute tutoring
[02:45:11] <maek> thanks for the help guys
[02:45:08] <maek> blah, of all the times to have to go eat dinner.
[02:45:03] <workdammit> soooo is starling pretty much a dead project?
[02:44:58] <cyclonut> Radar: I'll take a pastie, I was just doing research on that and found no goodd things to go on ;-)
[02:44:31] <Radar> cyclonut: indeed. Which isn't as tricky as people think.
[02:44:29] <cyclonut> steps up the difficulty a bit
[02:44:19] <cyclonut> Radar: then you'd have to do a polymorphic parent, no?
[02:44:02] <Radar> or just episodes :)
[02:43:54] <cyclonut> and tv_episodes
[02:43:52] <cyclonut> perhaps then radio_episodes
[02:43:38] <maek> or, will have
[02:43:34] <maek> Radar: because we have tv show episodes as well
[02:43:22] <Radar> must it be called radio_show_episodes? What's wrong with just episodes?
[02:43:18] <cyclonut> yessir
[02:43:14] <maek> cyclonut: thanks very much.
[02:41:27] <Abemore> quit
[02:41:04] <cyclonut> then you would be doing @r = Radio_show.find(:first); @r.radio_show_episodes.each do |rse| puts rse.title end
[02:40:36] <TK3RULES> quit
[02:40:25] <Fasga> join
[02:40:21] <Fasga> quit
[02:39:25] <cyclonut> and in radio_show_episode: belongs_to :radio_show
[02:39:16] <Vicfred> quit
[02:39:13] <cyclonut> so in radio_show: has_many :radio_show_episodes
[02:38:58] <maek> where?
[02:38:45] <cyclonut> you should use underscores
[02:38:41] <cyclonut> but
[02:38:37] <maek> and re make my db
[02:38:34] <maek> ill update my migrations
[02:38:28] <maek> oh, I dont have to make t.int blah_id anymore, I didnt know this. thank you
[02:38:26] <cyclonut> t.references :radio_show
[02:38:21] <cyclonut> err
[02:38:00] <cyclonut> you could just do "t.references 'radio_show'"
[02:37:49] <maek> cyclonut: how do you mean?
[02:37:37] <cyclonut> maek: also, your migration is defined in old rails ways
[02:37:14] <cyclonut> it shouldnt, but using the underscores is the proper ruby way
[02:37:07] <workdammit> when in doubt, guess!
[02:36:42] <workdammit> i usually put the underscores but i doubt it matters
[02:36:20] <cyclonut> hehe.
[02:36:09] <cyclonut> ACTION knows why workdammit needs to swear at his apps to get them to work ;)
[02:36:00] <VitaRara_> quit
[02:35:48] <workdammit> maek: actually nevermind i'm being retarded
[02:35:23] <workdammit> maek: er the has_many and the belongs_to
[02:35:13] <cyclonut> if you've got your models set up properly
[02:35:11] <workdammit> maek: i think the has_many should include the underscores in :radio_show_episodes and :radio_show
[02:35:00] <cyclonut> if yes, then you should be able to do "show.episodes"
[02:34:49] <cyclonut> show has_many episodes, and episodes belong_to show?
[02:33:56] <maek> show_id is the FK in episode
[02:33:38] <maek> Radar: that part I have, where Im getting the show info from one episode but what I cant figure out is how to get all the episodes when all I have is the show
[02:33:26] <joelmichael> quit
[02:32:09] <maek> Radar: sorry missed the episode.show, I fat fingered a command-w, thanks
[02:32:07] <dirtyhand> join
[02:31:30] <maek> Radar: I have that, http://pastie.org/198529
[02:31:25] <cyclonut> ah, it feels good to be back in #ror.
[02:31:20] <maek> join
[02:31:10] <maek> part
[02:31:10] <maek> join
[02:31:07] <dirtyhand> quit
[02:31:05] <maek> part
[02:31:05] <cyclonut> o
[02:31:02] <cyclonut> that to
[02:31:02] <draft13> join
[02:30:55] <Radar> without the \
[02:30:50] <Radar> and then episode.show\
[02:30:46] <Radar> as belongs_to :show
[02:30:41] <Radar> maek: define a belongs_to on your episode model.
[02:30:35] <cyclonut> show.episodes
[02:30:10] <CodeOfficer> brough: ya those 2 lines of code were a huge hassle :)
[02:29:48] <VitaRara> join
[02:29:39] <celeretaudax> I never do meta tags
[02:29:24] <brough> I think someone may have suggested that it might be relevent on some SEO blog, and then everyone jumped on the bandwagon. I suspect they are as useful as metatags... ie, not very, and not worth the hassle.
[02:29:18] <draft13> part
[02:28:56] <celeretaudax> ACTION ducks from rorbby
[02:28:52] <bronson> join
[02:28:51] <celeretaudax> ACTION punches brough
[02:28:38] <maek> workdammit: thanks.
[02:28:33] <cyclonut> foo.bars.find(:whatever)
[02:28:29] <workdammit> maek: yep. you probably aren't using DataMapper - you'd know if you were
[02:28:28] <brough> experts-exchange are too good at it.
[02:28:27] <CodeOfficer> brough: i said it was relevant is all, LTR
[02:28:26] <cyclonut> maek: it should be pretty self-evident
[02:28:09] <maek> workdammit: thanks. so I would need to read some AR stuff to figure out how to access things in a has_many relationship?
[02:28:03] <brough> I'm not the one suggesting that a string appended to a url improves rankings.
[02:27:58] <workdammit> i search for ruby stuff and all i get is their junk instead
[02:27:52] <draft13> join
[02:27:49] <workdammit> some people are too good at SEO
[02:27:36] <CodeOfficer> *their
[02:27:36] <brough> *over.
[02:27:33] <CodeOfficer> if you think they ranking engine can be simplified to a few small rules you're wrong
[02:27:28] <brough> people spend a lot of time obsessing of urls is all, and justify it with 'SEO' smoke and mirrors.
[02:27:18] <workdammit> maek: AR
[02:27:15] <maek> or is that DataMapper?
[02:27:11] <maek> is AR what lets me do Product.find(:all) ?
[02:27:03] <brough> and they ar enot given much if any weight.
[02:26:53] <CodeOfficer> no one thing is 'it'
[02:26:46] <CodeOfficer> meta is still relevant as well
[02:26:36] <CodeOfficer> i agree to disagree then :)
[02:26:35] <brough> it's no better than a meta tag -- which google ignores.
[02:26:22] <brough> common sense?
[02:26:16] <CodeOfficer> any proof not?
[02:26:11] <brough> any proof of this?
[02:26:09] <arooni-mobile> workdammit, man i dont know.... i saw this as a side project... but i'm getting all these requests for a paid account ;p
[02:25:57] <CodeOfficer> brough: i disagree .. google doesnt ignore it
[02:25:46] <workdammit> arooni-mobile: i was wondering if you had any other tricks up your sleeve
[02:25:35] <workdammit> arooni-mobile: np
[02:25:30] <brough> you could put anything in the url, mor soe with the to_param method that defers to an id, and google knows it.
[02:25:26] <arooni-mobile> havnt updated the call count though... its nearly at 100K
[02:25:21] <CodeOfficer> brough: SEO isnt as simple as 'do this it works'
[02:25:15] <arooni-mobile> workdammit, thanks for your help
[02:25:08] <arooni-mobile> workdammit, yes i think the caching works pretty good: http://www.phonemyphone.com
[02:24:45] <brough> just add an xml sitemap and let google find the context for itself.
[02:24:41] <workdammit> hey arooni-mobile did you ever get your performance up that night you were getting hammered?
[02:24:36] <CodeOfficer> discounts, naw .. weights, yeah
[02:24:31] <cliffstah> join
[02:24:23] <brough> CodeOfficer: it's so open to abuse that I'm sure google discounts it out of hand.
[02:24:21] <Skiz> quit
[02:23:41] <CodeOfficer> when was the last time you memorized a url for a post? heh
[02:23:17] <workdammit> anybody know of a good tutorial on using starling?
[02:22:55] <CodeOfficer> its not so much what 'people need to know' its the +1 for relevant words in your url
[02:22:52] <arooni-mobile> cyclonut, for month of may; 25K visits, 22K absolute unique visitors
[02:22:50] <cliffstah> part
[02:22:37] <workdammit> join
[02:22:19] <cyclonut> brough: I agree - I dont think they are any more friendly than just an ID. people still need to know a random number
[02:21:57] <maek> given this setup http://pastie.org/198529 how do I ask for all the episodes of a given show? I know how to access show info through an episode but not in reverse. thanks
[02:21:39] <brough> for starters, it knows that any url beging number- is faked.
[02:21:29] <CodeOfficer> agreed! :)
[02:21:22] <cyclonut> CodeOfficer: "just working" is always a little unnerving
[02:21:20] <celeretaudax> brough: I keel you!
[02:21:08] <cyclonut> arooni-mobile: of your hits
[02:21:07] <Skiz> join
[02:21:04] <brough> who decided that these where SEO friendly btw? does google give any weight to them whatsoever?
[02:20:59] <CodeOfficer> cyclonut: thx, seems to 'just work' but i wanted to ask as well :)
[02:20:51] <arooni-mobile> cyclonut, what % of what are uniques?
[02:20:38] <cyclonut> CodeOfficer: from what I've read its reasonably safe
[02:20:25] <brough> I wouldn't do it at all, because it's pointless. :P
[02:20:20] <CodeOfficer> is it reasonable safe to depend on that AR to_param hack where you end up with SEO friendly urls ... such that your ID becomes ... 333-wwhatever-else-you-want ?
[02:20:08] <celeretaudax> NewMonarch: it's up to you, I'd do it my way to save code
[02:20:02] <cyclonut> arooni-mobile: what % are uniques?
[02:19:43] <arooni-mobile> cyclonut, i have plentyh of in bound links
[02:19:36] <brough> or they're bots.
[02:19:35] <NewMonarch> celeretaudax: well /admin and /mainframe and both namespaces. /admin is for store owners and /mainframe is for us, the site admins
[02:19:33] <cyclonut> arooni-mobile: on the other hand, it means that nobody is linking to you
[02:19:24] <cyclonut> arooni-mobile: it means people are typing in your address
[02:19:19] <cyclonut> arooni-mobile: I'd say good
[02:19:10] <arooni-mobile> is it GOOD or BAD to see the nearly half of your traffic come from 'NO referring link'?
[02:18:52] <celeretaudax> are they namespaced as well?
[02:18:50] <NewMonarch> cyclonut: I was thinking of rolling my own authentication.
[02:18:49] <Mr_Elusive> quit
[02:18:48] <cyclonut> NewMonarch: i.e. the actions that everyone should be able to use get one filter, the actions that only the admin should use get others
[02:18:22] <cyclonut> NewMonarch: meh, if you use restful authentication, you can place filters on whichever actions
[02:17:36] <NewMonarch> That's some intense nesting going on.
[02:17:26] <NewMonarch> celeretauda1: I've also go /mainframe/stores, /mainframe/stores/:id/products, /mainframe/stores/:id/products/:id/photos, etc. :-)
[02:16:03] <celeretauda1> NewMonarch: I'd do it my way, preference of course, but it would save you some coding :D
[02:15:30] <cyclonut> brough: yeah, I've tried all that I can think of, no dice
[02:15:18] <celeretaudax> quit
[02:15:14] <brough> cyclonut: have you tried encrypting the torrent? not that it seems to do much good.
[02:15:08] <NewMonarch> celeretaudax: I have an /admin namespace with routes like /admin/products /admin/styles /admin/orders, etc. I can see myself needing those before filters for everything. Not sure if I need the controller for anything else though.
[02:15:06] <stevemkk> join
[02:14:54] <celeretauda1> join
[02:12:58] <celeretaudax> bane of my existence right now
[02:12:44] <celeretaudax> gots to learn some more in depth ruby code
[02:12:32] <celeretaudax> ACTION really needs to read The Ruby Way
[02:12:24] <andyatkinson> quit
[02:12:12] <celeretaudax> shit, he just got root
[02:12:03] <celeretaudax> the ability to quit an IRC user
[02:11:57] <brough> I just know I don't need to declare two arrays there, but not sure how to do it with map or &
[02:11:57] <celeretaudax> you've been doing some very complex coding methinks
[02:11:47] <celeretaudax> right
[02:11:29] <cyclonut> It doesnt look that anti-ruby to me, but regex and syntactic sugar just dont mix
[02:11:28] <brough> coincidence I'm sure.... :|
[02:11:17] <brough> lol.
[02:10:45] <celeretaudax> damn you rorbby
[02:10:41] <celeretaudax> what the hell was that
[02:10:37] <giant_sloar> quit
[02:10:33] <celeretaudax> join
[02:10:20] <cyclonut> ACTION would like to throttle comcast... full line throttling instantly upon torrent usage.
[02:10:16] <celeretaudax> quit
[02:10:15] <celeretaudax> brough: but you want that all one li
[02:10:02] <brough> rorbby, kill celeretaudax!
[02:09:51] <brough> he.
[02:09:49] <broken_ladder> quit
[02:09:47] <celeretaudax> foiled again
[02:09:44] <celeretaudax> ha HA
[02:09:44] <cyclonut> thanky again
[02:09:36] <cyclonut> brough: I think celeretaudax just did :)
[02:09:33] <brough> anyone fancy a challange? could do with consolidating this into a single line without declaring superfluous arrays: http://pastie.caboo.se/198585
[02:09:25] <celeretaudax> because it is so nasty
[02:09:23] <brough> cyclonut: sure.
[02:09:21] <cch1> join
[02:09:20] <celeretaudax> regex is nasty looking, which almost makes it pretty
[02:09:18] <brough> I'm open to a ruby way of splitting some butt ugly inline js into date ranges. by all means.
[02:09:09] <fifo> part
[02:09:03] <celeretaudax> I have no idea
[02:08:58] <celeretaudax> http://pastie.caboo.se/198585
[02:08:53] <brough> I mean how can you make that pretty?
[02:08:48] <celeretaudax> I'm still trying to figure out what is going on
[02:08:45] <cyclonut> brough: can you re-pastie so I can peek?
[02:08:42] <brough> that pastie is just a regex though.
[02:08:38] <celeretaudax> yeah
[02:08:33] <brough> hmm. like that pastie?
[02:08:28] <celeretaudax> herro cyclonut
[02:08:22] <celeretaudax> not saying bad, just different style is all
[02:08:15] <celeretaudax> your code looks different than usual ruby coders
[02:08:10] <cyclonut> hello folks, long time no see :)
[02:08:02] <celeretaudax> oh really
[02:07:57] <brough> celeretaudax: no. only really worked with ruby.
[02:07:55] <cyclonut> join
[02:07:52] <celeretaudax> haha, who said that?
[02:07:34] <brough> "this project is a pass. url's aren't pretty enough." not going to happen.
[02:07:23] <celeretaudax> like say perl?
[02:07:13] <celeretaudax> brough: did you used to code in a different language?
[02:06:04] <bronson> quit
[02:05:26] <broken_ladder> join
[02:04:59] <brough> as long as NewMonarch has sound reasons for wanting to use an admin namespace.
[02:04:53] <celeretaudax> I couldn't care less about simple!
[02:04:36] <brough> I couldn't care less about pretty.
[02:04:17] <rubydiamond> join
[02:04:16] <celeretaudax> simple isn't pretty sometimes
[02:04:01] <celeretaudax> brough: exactly
[02:03:40] <celeretaudax> but if you have just one, andyatkinson's is much dryer
[02:03:29] <celeretaudax> but if you had multiple controllers under the admin, then mine makes more sense
[02:03:16] <celeretaudax> post is the only controller that is under admin, so it wouldn't make any sense because it would only be passing down to one controller
[02:02:54] <celeretaudax> like in andyatkinson's example
[02:02:43] <NewMonarch> celeretaudax: Wait, I didn't understand what you just said. one admin namespaced controller?
[02:02:41] <brough> that's probably too simple though. why do simple.
[02:01:49] <celeretaudax> ew
[02:01:47] <snailrails> unf, how do I create many items of the same model in one