These are chat archives for codefellows/vet-alliance

4th
Nov 2014
Sunny Mittal
@sunny-mittal
Nov 04 2014 00:04
@ivanoats it doesn't look like I can use MySQL on cloud 9 so I won't be able to db:migrate
Ronald Porch
@ronaldporch
Nov 04 2014 03:10
I just realized all admin has is a login and that's it.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:20
less work for you! :)
Ronald Porch
@ronaldporch
Nov 04 2014 03:21
I guess. lol. I'm gonna see if Devise plays nicely actually, if that's okay.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:21
also, you sure your network isn't just "Zombies"? Cause I have a great connection to that
and yes, that's totes cool
Ronald Porch
@ronaldporch
Nov 04 2014 03:21
Nah, it's ZombieLAN.
I said the same thing.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:22
ah boo
I don't see that at all
Ronald Porch
@ronaldporch
Nov 04 2014 03:22
I just left from Metro, figured you were still there.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:22
oh I didn't stay there...just got a drink
Ronald Porch
@ronaldporch
Nov 04 2014 03:49
So yeah, I just removed the account controller and installed devise.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:53
and it's workin' alright?
Ronald Porch
@ronaldporch
Nov 04 2014 03:53
Yeah.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:53
hells ya
Ronald Porch
@ronaldporch
Nov 04 2014 03:54
Where ever you have :login_required for your before_filter, be sure to have authenticate_user! instead.
Or whatever devise uses, I can't think right now.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:55
yeah it's authenticate_user
I'm just removing those lines though cause I can't test otherwise
Ronald Porch
@ronaldporch
Nov 04 2014 03:55
True. I'll add them in later if that's cool.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:56
yerp
Ronald Porch
@ronaldporch
Nov 04 2014 03:56
We don't need the sessions controller since we're using devise.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:56
I hate how everything uses double-quotes in this haha
okay
Ronald Porch
@ronaldporch
Nov 04 2014 03:56
For the life of me, I can't break the habit of double-quoting. lol. I used to write a lot so it's a bad habit.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:57
it's taken me quite some time
mainly cause Marco is a nazi about rubocop errors
he'll mark me down 3 points for a double-quote
kinda fuckin' ridiculous but I broke the habit pretty early on
Ronald Porch
@ronaldporch
Nov 04 2014 03:59
Kayla isn't too hard on me for rubocop errors, so I appreciate that. Also, just remind me to check for user_signed_in? changes on your views tomorrow.
Sunny Mittal
@sunny-mittal
Nov 04 2014 03:59
mmks
Ronald Porch
@ronaldporch
Nov 04 2014 03:59
Dunno if any of your views will change because of that but yeah.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:00
I'm just getting started...I can't figure out where some of these methods are coming from :-/
I have this sidebar :searchtips in a few of my methods, but unless that's a rails thing, which I doubt, I can't figure out where they're coming from
there are no helper files so they can't be defined in those
is the params hash a "hash with indifferent access"?
Ronald Porch
@ronaldporch
Nov 04 2014 04:04
So it could be either a symbol or string?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:04
yah
Ronald Porch
@ronaldporch
Nov 04 2014 04:04
Yeah, seems like it. Think I'm looking at the same doc you are.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:04
doc? I'm not lookin at anything
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:05
yeah it looks like the params hash is with indifferent access
Ronald Porch
@ronaldporch
Nov 04 2014 04:06
I didn't know that. Cool.
How did you come across that, btw?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:07
come across what?
the hash with indifferent access?
I think it was mentioned in Hartl's tutorial
Ronald Porch
@ronaldporch
Nov 04 2014 04:07
Ah, it's been so long. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:10
haha yeah...I tried going through it right before the class started but it was quite dense
he's so thorough!
Ronald Porch
@ronaldporch
Nov 04 2014 04:10
His book is even better now. He released the 3rd edition a couple weeks ago and he added some new stuff that I wish I knew then.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:11
oh damn...I better get that
is it updated on the free online version too?
Ronald Porch
@ronaldporch
Nov 04 2014 04:11
Yep.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:11
hells
I'll probably buy it to support him...his is one of the most exhaustive resources I've come across
Ronald Porch
@ronaldporch
Nov 04 2014 04:12
Although I think we may have covered it in class. lol. But it doesn't hurt to support him.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:12
plus I'll forget a lot in the next couple weeks haha
Ronald Porch
@ronaldporch
Nov 04 2014 04:12
BTW, the only thing that seems remotely similar to sidebar ':s'earchtips is a directory and a partial. Don't know if that has anything to do with it.
":s"
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:14
hmm
well they certainly seem to go together...but it seems odd that you can just write sidebar :searchtips and have rails know what you mean...
it's also a .rhtml file
oh that's just the old version of html.erb
Ronald Porch
@ronaldporch
Nov 04 2014 04:15
Thanks Google-san.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:15
haha
yep
Ronald Porch
@ronaldporch
Nov 04 2014 04:16
Once again, dunno if that has anything to do with it, but that's all I found.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:18
it seems odd to be able to do that...I feel like it needs to be render 'sidebar/searchtips'
where do you whitelist parameters in rails 2 again?
Ronald Porch
@ronaldporch
Nov 04 2014 04:21
Good question. I feel like that might be in the model. Think they brought that out into the controller at some point in Rails 4?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:21
yeah it isn't in the model either :( maybe Rails 2 didn't do it at all
Ronald Porch
@ronaldporch
Nov 04 2014 04:22
It looks like it. Ivan!
There's your explanation about the sidebar ':s'earchtips issue.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:31
thanks :) but fuck man...I'm not sure I'll be done with all this by tomorrow :-/ the models have a bunch of methods in them that I have to decipher and rewrite
how do you install a plugin?
Ronald Porch
@ronaldporch
Nov 04 2014 04:33
Searching that now. lol. That was just in his old vendors folder. Along with paperclip stuff. :/
rails plugin install <link to plugin> but I don't think we need/should have to do that mostly?
Could be that at the time, these gems could only be installed as plugins.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:37
oooooh
fair enough :)
Ronald Porch
@ronaldporch
Nov 04 2014 04:37
2009 was such a mysterious time.
BTW, which controller would you not mind me working on?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:38
all of them
jk
umm
Ronald Porch
@ronaldporch
Nov 04 2014 04:38
_>
Damn gitter and their syntax
'>_>
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:38
well I'm doing the dvbes controller right now
along with the models, which are taking some time
weird...I bundle installed but Rails refused to install till I gem install rails'd from the command line
stupid
Ronald Porch
@ronaldporch
Nov 04 2014 04:39
I guess I'll work on one of Pete's. The two models I had were kinda the same/I don't know what responsibilities admin should have.
I'm gonna work on imports in the mean time.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:41
you can help me figure this line out if you want
def self.exactmatch(query)
    if !query.to_s.strip.empty?
      find(:first, :conditions => ["trim(lower(replace(firm_name,'\t',''))) = ?", query.downcase])
    else
      []
    end
  end
Ronald Porch
@ronaldporch
Nov 04 2014 04:41
Wait what
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:41
I'm having a hard time figuring out this method
mostly the conditions part
Ronald Porch
@ronaldporch
Nov 04 2014 04:41
If the query is not empty, cool, got that. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:42
I wonder if those are sql commands
which, if they are, they might be specific to mysql
Ronald Porch
@ronaldporch
Nov 04 2014 04:42
That looks like mysql at least.
Wait... think I have something.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:44
shit I just ordered a Rails book from 2008...probably a dumb move haha
it was a penny plus shipping though...so hopefully I can get something out of it
Ronald Porch
@ronaldporch
Nov 04 2014 04:44
Lol. It's always nice to know history I guess.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:45
it's a book of essential rails plugins...if nothing else, there may be some that are still active
Ronald Porch
@ronaldporch
Nov 04 2014 04:45
How'd you find this for a penny?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:45
amazon
Ronald Porch
@ronaldporch
Nov 04 2014 04:45
You're right though, it's SQL fragments.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:46
it's probably just a clearance item since it's so outdated
I get this in a rails console
Dvbe.find(:first, conditions: ["trim(lower(replace(firm_name, '\t', ''))) = ?", "SeArch TermS".downcase])
  Dvbe Load (0.5ms)  SELECT "dvbes".* FROM "dvbes" WHERE "dvbes"."id" IN (NULL, NULL)
ActiveRecord::RecordNotFound: Couldn't find all Dvbes with 'id': (first, {:conditions=>["trim(lower(replace(firm_name, '\t', ''))) = ?", "search terms"]}) (found 0 results, but was looking for 2)
clearly it isn't searching properly
I dunno how to convert that over to something compatible with sqlite or postgres though
Ronald Porch
@ronaldporch
Nov 04 2014 04:48
Firm_name is a field in the database, right?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:48
yeah
so we replace tabs with nothing...then lowercase it...then trim any additional whitespace
(I'm guessing)
Ronald Porch
@ronaldporch
Nov 04 2014 04:49
Does the character before the t show us as a backslash for you? Lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:49
haha yeah...it's an escaped tab character
I bet using one of the fuzzy searching plugins would be better
but I dunno how to use them
Ronald Porch
@ronaldporch
Nov 04 2014 04:50
Yeah. I could ask Philip how he got it working. It was a plugin with PG pretty sure.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:51
cause then I could just do a "find_by_firm_name"
yeah I don't think it's even a plugin...I think it's built in to postgres
like Rails' inflector sorta
well shit...the commands up there aren't fuzzy searching...just replacing characters
I wonder if I could just process the query before that line and do a "find_by_firm_name"
Ronald Porch
@ronaldporch
Nov 04 2014 04:52
So it's doing all those commands on the firm_name itself, right?
Not the query? All that' sdoing on the query is downcasing it?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:53
yeah...basically, the firm_name as entered in the DB could have tabs or extra whitespace
so it's gettin rid of that
but now that I type that...my plan won't work
cause it affects the query, not the DB entry
Ronald Porch
@ronaldporch
Nov 04 2014 04:54
Right.
But you could process the information as it gets added to the DB, right?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:54
yeah...
blerg
but we'd have to do it for every field
I think easier might be to do something like firm_names = Dvbe.all and then perform something on that
but I'll have to look into it
Ronald Porch
@ronaldporch
Nov 04 2014 04:58
So is there an exact_match and another method also?
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:58
yeah..."simple search"
and then "zip search", whatever that is
this would be some excess processing, but I wonder if I can do this
Ronald Porch
@ronaldporch
Nov 04 2014 04:58
Searching ZIP codes...? lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 04:58
oh haha
duh
Ronald Porch
@ronaldporch
Nov 04 2014 04:59
I need to see how it's set up, but it seems like would could just have one search searching different fields instead of having separate searches.
Unless it actually does produce a different set of results.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:00
firms = Dvbe.all
firms.map! { |firm| firm.firm_name.trim.gsub(/\t/, '') }
<query here>
how does that look?
Ronald Porch
@ronaldporch
Nov 04 2014 05:01
Do you need to lowercase the mapping or not?
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:03
oh yeah, I would....those methods aren't accurate. Trim isn't a ruby function
it'd be
Ronald Porch
@ronaldporch
Nov 04 2014 05:04
Oh, I gotcha. Lol. I know they have something that removed left and right white space but I forgot.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:05
firm.firm_name.strip.gsub(/\t/, '').downcase
Ronald Porch
@ronaldporch
Nov 04 2014 05:05
Thanks, yeah.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:05
actually, instead of doing firms = Dvbe.all, is it possible to do a query that only returns the firm name?
Ronald Porch
@ronaldporch
Nov 04 2014 05:06
Yeah, I've done something that just returns one field. I'd have to go look at an old project.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:06
if you could that'd be dope
damn...the Dvbe.all returns an ActiveRecord::Relation
not an array
so I can't use that map function
Look at 4 on that list.
4 Selecting Specific Fields
Pete Mitchell
@petemmitchell
Nov 04 2014 05:09
damn you guys talk a lot
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:09
oh duh...it's just sql so you can select specific fields :)
:)
Pete Mitchell
@petemmitchell
Nov 04 2014 05:09
haha
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:09
thanks pete
Pete Mitchell
@petemmitchell
Nov 04 2014 05:09
it's a lot to take in all at once
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:10
sorrrrrrrry
Ronald Porch
@ronaldporch
Nov 04 2014 05:10
How was your dinner?
Pete Mitchell
@petemmitchell
Nov 04 2014 05:10
late
fuck man, traffic was horrendeous
i didn't make it home until after 7
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:10
but ron...if I do Dvbe.select('firm_name') i get only like 4 results. That can't be right :-/
Pete, how far do you live?
Pete Mitchell
@petemmitchell
Nov 04 2014 05:11
just northgate
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:11
gotta drive before 4 or after 7...that's what I've learned
Ronald Porch
@ronaldporch
Nov 04 2014 05:11
Let me check that out.
Pete Mitchell
@petemmitchell
Nov 04 2014 05:11
it's usually not too bad heading north, especially on the express lanes. but it was backed up pretty bad tonight.
Ronald Porch
@ronaldporch
Nov 04 2014 05:11
Hmm, you're right. I'm getting that too.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:12
shit I hope my migrations didn't fuck up the CSV
or rather, the processing of the csv
can you use your sqlite browser and see if records tend to have a firm_name?
Ronald Porch
@ronaldporch
Nov 04 2014 05:13
I'm doing that now.
Pete Mitchell
@petemmitchell
Nov 04 2014 05:13
also sunny, my import controller has references to fastercsv
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:13
anywhere you see FasterCSV just replace with CSV
Ronald Porch
@ronaldporch
Nov 04 2014 05:14
Oh wait...
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:14
and if you have a require 'fastercsv' anywhere, replace it with just require 'csv'
Pete Mitchell
@petemmitchell
Nov 04 2014 05:14
done
Ronald Porch
@ronaldporch
Nov 04 2014 05:14
try doing Dvbe.select('firm_name').size and see what you get.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:14
848
wtf
Ronald Porch
@ronaldporch
Nov 04 2014 05:14
Word!
Pete Mitchell
@petemmitchell
Nov 04 2014 05:14
did you 2 have to change much in your controllers? this stuff seems up to standard
Ronald Porch
@ronaldporch
Nov 04 2014 05:14
There are ellipses there.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:14
oh right...there's the ...
@petemmitchell I'm still working on it
Ronald Porch
@ronaldporch
Nov 04 2014 05:15
I installed devise, that eliminated my two controllers.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:15
I didn't have to change much in the controller, but the model methods are a little much
dammit I wanna watch the new Who!
but I have to get this done :(
Ronald Porch
@ronaldporch
Nov 04 2014 05:15
login_required needs to be replaced by authenticate_user!
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:16
but that'll fail for us right now, so just comment it out
us = Pete and myself
Pete Mitchell
@petemmitchell
Nov 04 2014 05:16
new who was magnificent
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:16
I bet
sad that it's almost over though
Pete Mitchell
@petemmitchell
Nov 04 2014 05:16
me too
but seriously
Ronald Porch
@ronaldporch
Nov 04 2014 05:16
Yes please, comment. I actually haven't watched more than one episode of Who.
Pete Mitchell
@petemmitchell
Nov 04 2014 05:16
this episode really pulls the season together
Ronald Porch
@ronaldporch
Nov 04 2014 05:16
But that episode was an Angel episode so yeah.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:16
one thing I hate about BBC shows...they have the shortest fuckin seasons...like Sherlock
@ronaldporch the reboot of Who is amazing
Pete Mitchell
@petemmitchell
Nov 04 2014 05:17
agreed
Ronald Porch
@ronaldporch
Nov 04 2014 05:17
Yeah, there was this show Utopia that I loved on BBC, but it only has 6 episode seasons.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:17
I love how Peter Capaldi is a perfect blend of the last 3 doctors
Sherlock has 3 episode seasons!
they're like 120 minutes each...but still
sucks that you have to wait at least a year after 3 weeks of entertainment
rather, 3 days
Pete Mitchell
@petemmitchell
Nov 04 2014 05:18
sometimes 2 years, because both actors have blown up and are in everything
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:19
yeah...I think Sherlock had a 3 year gap between 2 and 3
because of the hobbit
Pete Mitchell
@petemmitchell
Nov 04 2014 05:19
but man did season 3 pay off
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:19
yes sir
I really hope they start up in Jan/Feb
Ronald Porch
@ronaldporch
Nov 04 2014 05:20
Oh snap Benedict Cumberbatch is gonna be in the Jungle Book? Cool stuff.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:20
whaaaaaaa
I didn't even know they were remaking that
is he gonna be Baloo (sp?)
Ronald Porch
@ronaldporch
Nov 04 2014 05:20
Shere Khan. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:20
niceeeee
tiger right?
Ronald Porch
@ronaldporch
Nov 04 2014 05:20
From what I remember, yeah. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:20
it's been a while haha
Ronald Porch
@ronaldporch
Nov 04 2014 05:21
So what idea did you have for just having the firm_name query?
If that == whatever, then show that firm?
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:21
well...to make the query faster, I thought of doing this:
firm_names = Dvbe.select('firm_name').to_a # (needs to be an array)
firm_names.map! { |name| name.firm_name.downcase.strip.gsub(/\t/, '') if name.firm_name }
firm_names.compact!
then searching the array for search term, rather than querying the database
and if it's present, THEN query the database for just that value
oh but shit...in the database it won't be downcased, stripped, or gsubbed
:(
dammit I dunno how to do this
Ronald Porch
@ronaldporch
Nov 04 2014 05:24
Oh, when you do the query, right.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:25
dammit...we just need to figure out how to turn these MySQL queries into Postgres or SQLite queries
Ronald Porch
@ronaldporch
Nov 04 2014 05:25
So it's definitely going to be Something.find(blahblah).first at least.
I mean, Something.where(blahblahb).first
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:27
I'm starting to think it'd be better to pre-process before they're added to the databas
I'm starting to think it'd be better to pre-process before they're added to the database
Ronald Porch
@ronaldporch
Nov 04 2014 05:28
So I don't know exactly how this would work, but you need to do the commands on the query, so it'd be Client.where(first_name: stuff(to(do(@query)))).first
Yeah, because that ^ doesn't look too clean
Oh wait, that wouldn't work, we're not doing that on the database, it's on the query. lol.
Pete Mitchell
@petemmitchell
Nov 04 2014 05:34
holy shit i just changed a lot of hash rockets to the new notation
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:34
sucks huh?
Pete Mitchell
@petemmitchell
Nov 04 2014 05:34
man, my controllers were FULL of 'em
Ronald Porch
@ronaldporch
Nov 04 2014 05:39
Try this.
Dvbe.where("trim(lower(replace(firm_name, '\t', ''))) = ?", "THOMAS DEE ENGINEERING CO INC DBA DEE COMPANY INC".downcase)
Pete Mitchell
@petemmitchell
Nov 04 2014 05:43
did i see you guys say you were renaming .rhtml to html.erb?
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:43
well I googled it, and it said they're basically the same thing
I haven't renamed anything yet, but I will
Ronald Porch
@ronaldporch
Nov 04 2014 05:44
Did that query work for you? Dunno if you still wanna go that route.
Pete Mitchell
@petemmitchell
Nov 04 2014 05:44
what is it that you guys are working to solve?
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:44
a query issue...but no I haven't tried it yet. was on the phone with my mommy
I might need to run to metro quickly too
Ronald Porch
@ronaldporch
Nov 04 2014 05:45
You got 15.
I'm going too.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:45
haha okay!
see you in a sec
Pete Mitchell
@petemmitchell
Nov 04 2014 05:45
i'll see you ther.....awwww
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:45
:(
booooo
Pete Mitchell
@petemmitchell
Nov 04 2014 05:45
haha
Ronald Porch
@ronaldporch
Nov 04 2014 05:45
lol
Pete Mitchell
@petemmitchell
Nov 04 2014 05:45
sunny, i'm sleeping on your couch for the rest of the week!
Ronald Porch
@ronaldporch
Nov 04 2014 05:53
At least Sunny has a couch. I've been sleeping on the floor for two months. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:53
haha my couch is also my bed!
you guys use sublime right?
Ronald Porch
@ronaldporch
Nov 04 2014 05:55
Oh, still in that case fun times at sunny's! Yeah.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:56
haha
Pete Mitchell
@petemmitchell
Nov 04 2014 05:56
yeah, sublime 2
i keep meaning to upgrade to 3 now that it's out
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:56
if you ever have a file with old-school hash shit, check this out
Pete Mitchell
@petemmitchell
Nov 04 2014 05:56
but i'm surprisingly busy with class and stuff
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:56
ctrl + h brings up a find and replace dialog
make sure the box on the far left with the .* is selected
type this in the search box:
:(\w*)\s=>
and this in the replace box
$1:
it'll replace all your old hashes with new ones :)
I kinda feel like a genius right now
regexes FTW
Ronald Porch
@ronaldporch
Nov 04 2014 05:57
You mad genius you.
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:58
i love regexes...super lame but they're so bad ass!
Pete Mitchell
@petemmitchell
Nov 04 2014 05:59
but does it remove the leading : from symbols?
Sunny Mittal
@sunny-mittal
Nov 04 2014 05:59
yep
Pete Mitchell
@petemmitchell
Nov 04 2014 05:59
whoa
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:00
and @ronaldporch your query is brilliant
works perfectly :)
Ronald Porch
@ronaldporch
Nov 04 2014 06:01
Good to hear! :shipit:
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:01
SHIP IT
Pete Mitchell
@petemmitchell
Nov 04 2014 06:01
i'm gonna give your regex a shot
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:01
dude, my regex is champ of champs
Ronald Porch
@ronaldporch
Nov 04 2014 06:01
Why exactly does that mean ship it anyway?
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:01
just make sure that .* box is selected
not sure...I think ship the code?
like...ship the product?
no idea
Ronald Porch
@ronaldporch
Nov 04 2014 06:02
Ship it = Chip it = Chipmunk?
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:02
most likely
how do you invite someone to a room?
oh!
"add"
haha
Ronald Porch
@ronaldporch
Nov 04 2014 06:03
Lol. Who's joining in?
Oh. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:03
shit I added the wrong person haha
:shipit:
NO! he's not working :(
Pete Mitchell
@petemmitchell
Nov 04 2014 06:04
erikbot?
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:04
yeah
Pete Mitchell
@petemmitchell
Nov 04 2014 06:04
the server has to be reset
when i asked erik to add him to a different room, that's what he had to do
inviting him was correct
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:05
:)
Pete Mitchell
@petemmitchell
Nov 04 2014 06:05
just message erik and ask him to when he gets a chance
erikbot ping
yeah
Ronald Porch
@ronaldporch
Nov 04 2014 06:05
I wish there was a way to post an email I got. Can't tell if fake or not.
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:06
just copy and paste it
Pete Mitchell
@petemmitchell
Nov 04 2014 06:06
yeah
Ronald Porch
@ronaldporch
Nov 04 2014 06:06
Psh.

Ronald,

My name is Brian from Rylem Consulting in Seattle. I came across your resume online and saw that you had great experience at Printing Tech. This role just went live and I wanted to extend the opportunity to you. Let me know what you think and hope to connect with you soon!

Java Developer (Seattle)

Position Responsibilities:

Design and develop the Michelangelo Application.

Responsible for the design, build, unit testing, validation and verification, installing, configuration of various Michelangelo components.

Maintain and evolve the Michelangelo application while coding product to meet architectural direction, project scope, quality, and timeline.

Requirements:

Degree in Computer Science, IT, Math, or equivalent Experience/Education.

2 years relevant software development experience.

2 years of rapid web and application development (preferably with Java, HTML, JavaScript, JQuery, CSS, and T-SQL).

Java and Java based Technologies (Java, J2EE, JavaScript).

OOP, Design Patterns, Data Structures, Enterprise level Web and/or Windows applications.

Google Cloud Platform, App Engine, Data Store and Big Query is nice to have.

Desired:

Experience in developing and deploying applications on to Cloud platforms (Windows Azure, Google Cloud Platform, Amazon EC2)

Relational database design, use and management (MySQL or MSSQL or Oracle)

Map Reduce Technologies like Hadoop, Solr, Elastic Search.

Dealing with large volume of Data, integration and developing enterprise scale applications.

Data Experience/Knowledge in dealing with structured and un-structured data.

Pete Mitchell
@petemmitchell
Nov 04 2014 06:06
or save it as .html or .txt and you can drop it in chat i think
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:06
in the real world...do you think taking two days to port an app from Rails 2 to Rails 4 is acceptable?
Ronald Porch
@ronaldporch
Nov 04 2014 06:06
Printing Tech = my last graphic design job.
My friend right now has been doing the same for about a week.
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:07
hmm...do you know Java?
Ronald Porch
@ronaldporch
Nov 04 2014 06:07
Not two years worth. lol. I used to make simple games in it.
Pete Mitchell
@petemmitchell
Nov 04 2014 06:07
@sunny-mittal, i kind of think so
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:07
okay good :)
and @ronaldporch I say you go for it
Pete Mitchell
@petemmitchell
Nov 04 2014 06:07
when we told ryan it was 7 models, he was like "yeah, thats fairly sizeable"
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:07
anything that doesn't ask for money is worth an investment
Pete Mitchell
@petemmitchell
Nov 04 2014 06:07
bingo
sunny your regex is awesome
with one exception
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:08
right?
Ronald Porch
@ronaldporch
Nov 04 2014 06:08
Hmm, sure, why not. Thanks.
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:08
oh...
Ronald Porch
@ronaldporch
Nov 04 2014 06:08
lol
Pete Mitchell
@petemmitchell
Nov 04 2014 06:08
can we do an either/or on the space in front of the rocket?
ivan didn't always leave a space
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:08
yep!
one sec, lemme test it first
Pete Mitchell
@petemmitchell
Nov 04 2014 06:08
i'm impressed how fast you learned that
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:08
drop this in for your search:
:(\w+)\s?=>
Pete Mitchell
@petemmitchell
Nov 04 2014 06:09
i really like nell's presentation, but haven't used it since
fuck yeah
good work
Ronald Porch
@ronaldporch
Nov 04 2014 06:10
Ever since trying to work with Rails 2, I've had to Bundle Install rails over and over again.
Ronald Porch
@ronaldporch
Nov 04 2014 06:10
Oh, so that's a developer thing? Ship-it squirrel?
Pete Mitchell
@petemmitchell
Nov 04 2014 06:10
it started with github i think
but yeah, it's everywhere
gotta be careful with that regex
certain places you have to use hash rocket
Ronald Porch
@ronaldporch
Nov 04 2014 06:13
Ah, so you're just replacing one at a time right?
Gonna take a 30-minute break. bbl
Pete Mitchell
@petemmitchell
Nov 04 2014 06:14
haha, now i am
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:16
where do you have to use the old style?
Pete Mitchell
@petemmitchell
Nov 04 2014 06:16
with paperclip
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:16
FUCK
well, exceptions are beyond the power of regexes I think
but one at a time isn't terrible...
Ronald Porch
@ronaldporch
Nov 04 2014 06:17
Speaking of, yeah, we're gonna have to install that gem. Forgot.
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:17
paperclizzle?
Pete Mitchell
@petemmitchell
Nov 04 2014 06:17
specifically the :html => {:multipart => true} thing
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:17
html: { multipart: true } doesn't work?
I'm pretty sure it does...
Ronald Porch
@ronaldporch
Nov 04 2014 06:18
I remember somewhere seeing it had to be the way Pete said, but I haven't tried it in a while.
Pete Mitchell
@petemmitchell
Nov 04 2014 06:18
i feel like that was specific instructions in the paperclip thingy
i'd have to go back
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:18
but the ruby interpreter doesn't know which version you use
they are interpreted the same way...so it shouldn't matter
have you guys seen this logger.info in some places?
can it be done away with? I'm pretty sure logger is deprecated
I know debugger is
also, I have this line in one of my files: conditions: ["zip like ? ","#{zip}%"]
I feel like that percent sign is extraneous...
Ronald Porch
@ronaldporch
Nov 04 2014 06:21
Yeah, dpn
words
don't think you'd need it
Pete Mitchell
@petemmitchell
Nov 04 2014 06:22
is it a terrible idea to run rubocop at this point?
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:22
I already have
Ronald Porch
@ronaldporch
Nov 04 2014 06:22
How'd that turn out?
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:23
297 offenses haha
but Marco marks me off for this shit, so I gotta fix them all
well, 273 were automatically corrected
but now there are more offenses...
85 left after that
Pete Mitchell
@petemmitchell
Nov 04 2014 06:24
i've got 97
which files did you ignore?
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:24
none
now I have 34 when I ignore "top level class blah blah blah"
fuck I need to write a regex for "line is too long" errors
shouldn't be too hard
Pete Mitchell
@petemmitchell
Nov 04 2014 06:25
that'd be amazing
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:25
since they're almost always comments
Pete Mitchell
@petemmitchell
Nov 04 2014 06:25
you don't think a quick google might find one?
Ronald Porch
@ronaldporch
Nov 04 2014 06:25
he wants to be clever, of course.
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:26
might...
I'll try write one quickly
haha, this is what I get: Rubular suspects this regex will take forever to parse. Regexes of this sort make Rubular sad. Adjust the regex or else wait a few minutes and try again.
Pete Mitchell
@petemmitchell
Nov 04 2014 06:30
hahaha
created a pull request for what i've got so far: codefellows/vet-alliance#3
doesn't necessarily need to be merged, i just wanted to get something pushed
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:37
okie dokes
and here's your regexes for comments...test it out, if you don't mind, and let me know...it should replace any multi-line comments up to 240 chars-ish
(this'll go in your "find" field for sublime)
^\s+#(.{80})(.{0,80})(.{0,80})
and then this in your replace field
#$1\n#$2\n#$3
Pete Mitchell
@petemmitchell
Nov 04 2014 06:47
ok, first file i tried
it left a single character past the line
and didn't find a second one that was over
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:47
noooooooooooooooooo
really?
Pete Mitchell
@petemmitchell
Nov 04 2014 06:48
it's like it broke it at 81
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:48
is the file in our project? if not, can you copy and paste the line that fucked up?
Pete Mitchell
@petemmitchell
Nov 04 2014 06:48
config/environments/development.rb
give it a try
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:49
eek okay...is this for comments?
Pete Mitchell
@petemmitchell
Nov 04 2014 06:49
line 2 it fucked up, line 32 it didn't find
yes
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:49
mmk
lemme check
hmmm I see
wait
mine only finds one match
Pete Mitchell
@petemmitchell
Nov 04 2014 06:51
exactly
it doesn't match line 32 right?
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:52
no, but line 32 isn't a comment...
Pete Mitchell
@petemmitchell
Nov 04 2014 06:52
?
i have # Asset digests allow you to set far-future HTTP expiration dates on all assets,
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:52
oh I have that on line 30
Pete Mitchell
@petemmitchell
Nov 04 2014 06:53
oh, well that's because your regex moved my line 2 haha
Sunny Mittal
@sunny-mittal
Nov 04 2014 06:53
ooooh word
yeah it didn't quite work the way I planned :(
Pete Mitchell
@petemmitchell
Nov 04 2014 07:03
guys, i think my brain is at capacity
Ronald Porch
@ronaldporch
Nov 04 2014 07:03
It's 11. Go to sleep. lol.
Pete Mitchell
@petemmitchell
Nov 04 2014 07:03
i think it might be time
9?

9am?!

Ronald Porch
@ronaldporch
Nov 04 2014 07:05

9am!

9am

Pete Mitchell
@petemmitchell
Nov 04 2014 07:05
fuck that
haha
i'll be there
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:08
###########9 am
boo
I'll be thereish
I feel like I might be working on this for a couple more hours
Pete Mitchell
@petemmitchell
Nov 04 2014 07:08
we can make it 10
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:08
so if I'm late...just know that I'm not bein a slacker
Pete Mitchell
@petemmitchell
Nov 04 2014 07:09
cool
Ronald Porch
@ronaldporch
Nov 04 2014 07:09
Let's do 10.
Pete Mitchell
@petemmitchell
Nov 04 2014 07:09
done
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:15
thanks :) I think we've scrapped mysql though for now
Ivan Storck
@ivanoats
Nov 04 2014 07:16
ok
I’ll be more away tomorrow
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:16
but I'm curious about the rails logger....I know Brook mentioned it in class one day, but is it now obsolete?
Ivan Storck
@ivanoats
Nov 04 2014 07:16
*awake. — case in point
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:16
haha
we all will be
(hopefully)
Ivan Storck
@ivanoats
Nov 04 2014 07:16
not sure … why would it be obsolete?
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:17
not sure...I think maybe it was just obsolete in the context that Brook used it (rails console, to output the SQL that was being executed)
I don't really know what it does
by the looks of it, it just outputs to the console, right?
but if that's the case, I don't see why puts couldn't be used as a substitute
unless I'm missing something...but I don't see the Logger class being instantiated anywhere, so I'm not sure what to make of logger.info('stuff')
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:20
I have that open...but it seems to require instantiating the class
otherwise logger doesn't reference anything
Ivan Storck
@ivanoats
Nov 04 2014 07:21
you’re not totally sure where your puts will end up so better to use a logger i think
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:22
that makes sense...but logger still doesn't seem to reference an existing variable
and per the rails guide, it seems that it needs to be assigned to a new Logger somewhere
it’s definitely part of rails still
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:23
right...but don't I need some type of declaration similar to this:
logger = Logger.new
Ivan Storck
@ivanoats
Nov 04 2014 07:24
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:24
?
in every example I've seen, there's been some reference to the Logger class...but in these files we're porting to 4.2, there is no such reference
ah ha! it's because self is implied
and <class>.logger IS defined
Ivan Storck
@ivanoats
Nov 04 2014 07:26
looks like activesupport uses the stdlib logger class: http://www.ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:26
yeah it's an ActiveSupport class
Ivan Storck
@ivanoats
Nov 04 2014 07:26
good luck, don’t stay up too late ¡hasta mañana amigo!
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:27
take care! I'm stubborn so I'll be awake till I figure this shit out :)
Ronald Porch
@ronaldporch
Nov 04 2014 07:27
No one speaks cuban in here!
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:27
I'll be back with questions tomorrow
@ronaldporch any ideas how I can test this one controller without setting up my routes file or any of that jazz?
command line?
Ronald Porch
@ronaldporch
Nov 04 2014 07:28
Nah, unfortunately I'd normally have my stuff set up beforehand. :/.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:29
booooooooo
Ronald Porch
@ronaldporch
Nov 04 2014 07:29
Come to think of it, it's just a ruby file. Couldn't you just open it in irb?
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:29
it won't know how to communicate with rails then
but maybe in a rails console
Ronald Porch
@ronaldporch
Nov 04 2014 07:29
true. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:29
lemme try
Ronald Porch
@ronaldporch
Nov 04 2014 07:30
yeah.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:30
still not sure how to run a controller method though
I mean, I could use <ControllerName>.method
but I'm not sure if I should make anything out of the results
Ronald Porch
@ronaldporch
Nov 04 2014 07:31
Yeah, was gonna type that, but I have a game controller in my hand. lol. Yeah, because it might not be accurate to the intended result?
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:32
actually, it doesn't work straight up
NoMethodError: undefined method "variant" for nil:NilClass
boo
Ronald Porch
@ronaldporch
Nov 04 2014 07:35
Even looking online I'm not seeing anything; plus searching "Test" will just bring up BDD stuff.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:35
yeah...I'm just gonna work on the views and see if maybe it works
so @ronaldporch did you change the user model?
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:40
b/c of devise
Ronald Porch
@ronaldporch
Nov 04 2014 07:40
Yeah, you can get rid of that. I had to make a new one.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:42
blerg...then I can test my shit :-/
man this project is gonna be a whole...thing
Ronald Porch
@ronaldporch
Nov 04 2014 07:54
Gonna be heading out for the night. Don't stay up too long.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:55
I'm stubborn though!...
I have a hard time sleeping when work goes undone
which sucks when you don't know what the work really is
but...
Ronald Porch
@ronaldporch
Nov 04 2014 07:56
Yeah true. Sometimes a nap comes with a sudden realization.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:57
haha yeah
well sadly, I'm a night owl
you know, as opposed to a day owl (?)
snowy owl
Ronald Porch
@ronaldporch
Nov 04 2014 07:57
I'm more of a night beast... kinda like a night chupacabra.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:58
well I'm glad I got out when I did, then
Ronald Porch
@ronaldporch
Nov 04 2014 07:58
I don't think they eat owls. Only sheep and livestock, right? lol. Anyway yeah, see you whenever you get there.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:58
I don't want my blood sucked...or whatever it is that a chupadillo does
sounds like a tasty treat, honestly
"I'd like a chupadillo please" hands me a yummy desert treat
Ronald Porch
@ronaldporch
Nov 04 2014 07:59
I could probably go for a goat smoothie right now.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:59
is that what it sounds like?
cause....
Ronald Porch
@ronaldporch
Nov 04 2014 07:59
Oh, you mean that. Yeah, kinda sounds like a churro.
Sunny Mittal
@sunny-mittal
Nov 04 2014 07:59
mmm
churro
churrodillo
alright...g'night! dream about rails code, please...
shit...before you go...
have you figured out how to turn rails 2 routes into rails 4?
I'm guessing, from the looks of it, that map.connect is analogous to get
but I could be wrong
Ronald Porch
@ronaldporch
Nov 04 2014 08:01
That's what it looks like. One sec and I'll see if there's anything else for it.
Oh, it's match.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:04
i think that's only if you are using dynamic paths
Ronald Porch
@ronaldporch
Nov 04 2014 08:04
Ah. So yeah, you can just use get otherwise.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:04
:)
man this is shitty haha
maybe I need to write a regex for this
shit...what does collection mean/
Ronald Porch
@ronaldporch
Nov 04 2014 08:05
I saw that and have no idea. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:05
and map.search
and basically the rest of this routes file
well, the simple root 'dvbes#index' fails
so that's lovely
Ronald Porch
@ronaldporch
Nov 04 2014 08:07
What's the error?
Oh, that's a custom route... how to make those.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:08
we're sorry, but something went wrong
Ronald Porch
@ronaldporch
Nov 04 2014 08:08
lmao!
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:08
thanks rails, for that hella insightful tip
FUCK
hmmmmmmmmmmmmmmmmmmmmmmmmmmmm
I feel like there's an infinite loop in this:
def listall
    @results = Dvbe.all.order(firm_name: :asc)

    respond_to do |format|
      format.html { render action: 'listall' }
      format.csv do
        headers['Content-Disposition'] = "filename=\'dvbe_member_firms.csv\'"
        render text: Dvbe.generate_csv(@results)
      end
    end
  end
if format is html, it renders itself (as an action)
so...wtf
Ronald Porch
@ronaldporch
Nov 04 2014 08:12
Whaaaat. You're right. Not that bad, but something similar occurs with the users controllers. I think the action they use to login is the same action for viewing the login screen.
Maybe it's a Rails 2 thing?
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:13
when I put a puts 'html' in the html block, it outputs 'html', so it's getting run...but hmmmm
I wonder if the render action: 'listall' is defunct
I think it's the render action bullshit
Ronald Porch
@ronaldporch
Nov 04 2014 08:15
Right, you don't have to do that.
Because it's going to render regardless, right?
As long as there's an action with that name. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:17
I think the problem is in the view actually...cause I deleted most of it and it worked
Ronald Porch
@ronaldporch
Nov 04 2014 08:17
Could be listall_format_url?
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:18
it's definitely something in the view
<h1>Download all DVBEs</h1>
<%=link_to '<img src="/images/page_white_excel.png" border="0" /> download as CSV file for use in Microsoft Excel, Apple Numbers, or OpenOffice',
listall_format_url(:format=>:csv) %>
<p>Depending on your browser, you may need to right-click and choose <code>Save As&hellip;</code></p>
the link_to tag looks like a huge bummer
Ronald Porch
@ronaldporch
Nov 04 2014 08:20
Oh what the fuck, I just noticed that image stuff.
Try using link_to image_tag?
I don't see format_url anywhere in the internet
Oh, except I see listall_format in the routes.
That might be the issue.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:33
probably...I think we'll need to spend some solid time figuring out the routes tomorrow
Ronald Porch
@ronaldporch
Nov 04 2014 08:35
Oh, I see what's going on. So it takes the format of it (csv) and from there, it passes it into the listall function. Doesn't it respond to csv or something? Seems like there should be a better way to handle that.
Or... not call for listall_format at all and just respond to it.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:35
...
that sounds like a thing for a sober mind
more sober*
shall we call it a night?
Ronald Porch
@ronaldporch
Nov 04 2014 08:36
Lol. Yeah. We should try to simplify the routes definitely.
Tomorrow/today.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:37
I started to...but it wasn't pretty
Ronald Porch
@ronaldporch
Nov 04 2014 08:37
Yeah, we're gonna have to change the functions that call those routes, since he has custom ones set up.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:37
shit I erased the routes file, it seem
s
I guess I could just check it out
Ronald Porch
@ronaldporch
Nov 04 2014 08:38
But anyway, we'll work on it tomorrow. Nothing searching/replacing can't fix. Sweet. lol.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:38
hmm...that didn't work either :(
alright....tomorrow
we made good-ish progress today
Ronald Porch
@ronaldporch
Nov 04 2014 08:39
Yeah, if we didn't try to upgrade earlier, we probably could have seen what the app actually was today. lol.
But we'll pull all the branches together and get a better idea tomorrow.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:39
definitely
see you in the morning, then!
Ronald Porch
@ronaldporch
Nov 04 2014 08:40
The plugin folder is gonna drive me insane though!
See you at 10 or later!
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:40
I wanna be there by 9
so yeah, 10 :)
Ronald Porch
@ronaldporch
Nov 04 2014 08:40
Oh right, I forgot we said 9. 9 it is! lol.
See ya man.
Sunny Mittal
@sunny-mittal
Nov 04 2014 08:41
have a good night
dream about rails! maybe it'll make sense in the morning
Sunny Mittal
@sunny-mittal
Nov 04 2014 09:08
what's curious is that typing in a route that clearly doesn't match any routes doesn't give a routing error, it just gives a "we're sorry, something went wrong" page
Ronald Porch
@ronaldporch
Nov 04 2014 17:28
Btw, I'm on the first floor.
Ronald Porch
@ronaldporch
Nov 04 2014 18:04
Pete Mitchell
@petemmitchell
Nov 04 2014 19:05
@sunny-mittal
erikbot ping
Sunny Mittal
@sunny-mittal
Nov 04 2014 19:16
hey guys :) apparently I can't get started early :( I should be there by noon though
Erik Nilsen
@enilsen16
Nov 04 2014 20:13
erikbot ping
Erikbot
@Erikbot1
Nov 04 2014 20:13
PONG
Erik Nilsen
@enilsen16
Nov 04 2014 20:13
your welcome :)
Pete Mitchell
@petemmitchell
Nov 04 2014 20:13
hell ya
erikbot animate ruby party
Erik Nilsen
@enilsen16
Nov 04 2014 20:13
ha
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:21
erikbot animate me a burrito
Pete Mitchell
@petemmitchell
Nov 04 2014 20:22
who rolled that tiny burrito for that hamster?
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:22
I dunno but they deserve a medal
I just realized I haven't eaten at that food truck even once...I need to break that streak today
Pete Mitchell
@petemmitchell
Nov 04 2014 20:23
well, it's there every day. the awesome indian truck is here today too
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:24
does the mexican one take cards?
Pete Mitchell
@petemmitchell
Nov 04 2014 20:24
they both do
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:24
nice
I'll have to make a pit stop on my way in...sorry it's taking me forever, I have to wait for a delivery
Pete Mitchell
@petemmitchell
Nov 04 2014 20:25
do you want to push your changes?
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:25
sure, I can...it's not complete yet because I was having a hard time with the views
Pete Mitchell
@petemmitchell
Nov 04 2014 20:26
don't worry about it then, no rush
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:26
unfortunately my controller had a shit ton of views that all need to play nice together
Pete Mitchell
@petemmitchell
Nov 04 2014 20:26
the dvbes?
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:26
yeah
looks like your sdvobs did too
Pete Mitchell
@petemmitchell
Nov 04 2014 20:26
yeah
they're basically identical
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:27
yeah I noticed that...did you get them working?
Pete Mitchell
@petemmitchell
Nov 04 2014 20:27
except we actually have dvbe seed data, no sdvobs exist currently
no, going to attempt to now
Sunny Mittal
@sunny-mittal
Nov 04 2014 20:28
alrighty...I'll be in asap and we can work on them together
Pete Mitchell
@petemmitchell
Nov 04 2014 20:30
if you're going to grab lunch from one of these trucks, come get me first. i'll go with
Pete Mitchell
@petemmitchell
Nov 04 2014 21:18
@ivanoats is there a reason there are no SDVOBs, only DVBEs?
Ivan Storck
@ivanoats
Nov 04 2014 22:05
@petemmitchell yes there was never budget for that feature
Ronald Porch
@ronaldporch
Nov 04 2014 22:05
Would you like us to keep it in? We could just put some filler info in there in the mean time.
Because what we're thinking about is just having one page where you can search for both SDVOB and DVBEs, just selecting which you'd like to search for.
Ivan Storck
@ivanoats
Nov 04 2014 22:06
it’s a low prioirity but that sounds kinda useful
i see - yeah I think I mentioned that to the client a long time ago.
Ronald Porch
@ronaldporch
Nov 04 2014 22:08
Would you like an individual show page for each one or is a modal with the business's information good enough?
Ivan Storck
@ivanoats
Nov 04 2014 22:11
it has to work on ie8
Ronald Porch
@ronaldporch
Nov 04 2014 22:11
Bro... we didn't ask for this.
Ivan Storck
@ivanoats
Nov 04 2014 22:13
should be fine as long as you’re using angular 1.2
you can check with brook - but given the user profile of the site, I’d recommend IE8 compatibility
Pete Mitchell
@petemmitchell
Nov 04 2014 23:07
IMG_0044.JPG