apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
BraddPitt has quit [Read error: Connection reset by peer]
BraddPitt has joined #ruby
<lethjakman> Dovid: you're missing libpq-fe.h
dpswireless has quit [Remote host closed the connection]
ddv has joined #ruby
hgl has joined #ruby
mostlybadfly_ has joined #ruby
<Dovid> lethjakman: I thougt the issue is tht it was looking for pg_config in the "default" place and mine is in /usr/pgsql-9.1/bin/pg_config
BraddPitt has quit [Client Quit]
<Dovid> gona look for libpq-fe.h
<lethjakman> you need to install the development stuff.
<lethjakman> varies from distro to distro
<lethjakman> /OS
pu22l3r_ has quit [Remote host closed the connection]
aiguu has quit [Ping timeout: 265 seconds]
<Dovid> Do you know what it is for CentOS6 or RHEL6?
lagweezle has joined #ruby
<havenwood> lethjakman: define_method 'my_test', ->{ send('puts', 'HELLO') }
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mg^^ is now known as mg^afk
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
<havenwood> stabby stab stab
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<Dovid> lethjakman: It still says that it does not exist but it does here: /usr/pgsql-9.1/include/libpq-fe.h
saarinen has joined #ruby
vise890 has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
<shevy> do you guys start to write pseudo code in your todo list?
omosoj_ has joined #ruby
<shevy> like ruby code that is not totally valid but kinda hints towards where it should go
oo_ has joined #ruby
BraddPitt has joined #ruby
b00stfr3ak has quit [Ping timeout: 258 seconds]
testcore has quit [Quit: [BX] Hanson uses BitchX. Mommy, can we dress like boys again?]
<Lutece> shevy: its kind of each to his or hers own, I usually go for a top down design and make a structure out of all the function i will need then fill it in
reset has quit [Quit: Leaving...]
pietr0 has quit [Quit: pietr0]
mansi has quit [Ping timeout: 252 seconds]
reset has joined #ruby
<Lutece> but pseudo code works fine
saarinen has quit [Client Quit]
subbyyy has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
silkfox has joined #ruby
<shevy> well
oo_ has quit [Remote host closed the connection]
<shevy> Lutece I mean specifically if you have a very large project
<shevy> and you want to change or tweak existing functionality
omosoj has quit [Ping timeout: 276 seconds]
<shevy> but may have to edit several .rb files before you can finish that
oo_ has joined #ruby
<shevy> I have like a 1000 lines of todo file for one project here
<shevy> and now I even start to write up pseudocode into it haha
<shevy> in hope that I can easier translate this lateron when I have more time and motivation to add this or fix some bugs etc...
<Lutece> Yeah for that psudocode would probably be the best option, although I would make it part of a "plan" document that is sperate from the code, rather than making a mess of the source
RaptorJesus has joined #ruby
Shidash has quit [Read error: Connection timed out]
reset has quit [Ping timeout: 245 seconds]
dpswireless has joined #ruby
<Lutece> Also if you got 1000 lines of TODO then you may be going into too much detail depending on how much source you have to edit.
bijan07077 has joined #ruby
i_s has quit [Remote host closed the connection]
kotk has joined #ruby
<shevy> yeah, the todo file is separate from the real source
oo_ has quit [Ping timeout: 276 seconds]
Solnse has quit [Quit: Leaving.]
<Lutece> Hmmm
<Lutece> well i would keep it seprate if i where you from the todo list
<gjvc> were
<Lutece> perhaps put a note in the ToDO as implement psudo function x
<gjvc> not where
havenwood has quit [Ping timeout: 272 seconds]
<Lutece> sorry, it's late
kotk_ has quit [Ping timeout: 252 seconds]
<gjvc> ok
BraddPitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
binaryhat has quit [Quit: Leaving]
zorak8 has quit [Ping timeout: 276 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
replay has joined #ruby
replay_ has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 240 seconds]
zz_karupa is now known as karupa
upsell5 has quit [Quit: upsell5]
musashi1 has joined #ruby
rostam has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
Lightning has joined #ruby
Lightning has left #ruby ["Leaving"]
phoo1234567 has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
lolmaus has joined #ruby
jamto11 has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BWStearns has quit [Ping timeout: 258 seconds]
kitak has joined #ruby
aspires has quit []
salt_ has joined #ruby
<salt_> sorry, totally not ruby talk, but does anyone know where i can go to get php help?
<RubyPanther> salt_: I don't know, but the hookers and blow are on 7th Ave
livcd has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<shevy> lol
<shevy> salt_ join ##php
<salt_> hookers and blow sounds way better
<shevy> salt_ or drop php and use ruby
<salt_> still think ill have to come back to this php issue though
<shevy> you have my pities man
<salt_> thanks
mikecmpbll has quit [Quit: i've nodded off.]
combusean has quit [Ping timeout: 258 seconds]
<shevy> compiling webkitgtk takes so long :( started it like 3 hours ago, it is still going
jlast has joined #ruby
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
EasyCo has joined #ruby
livcd has quit [Ping timeout: 252 seconds]
<RubyPanther> shevy: scale vertically
salt_ has left #ruby [#ruby]
aspires has joined #ruby
diegoviola has joined #ruby
Bira has joined #ruby
marcdel has quit []
simono has joined #ruby
alpha123 has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
combusean has joined #ruby
Dovid has quit [Ping timeout: 252 seconds]
Steve21 has joined #ruby
ktun has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
gregf_ has joined #ruby
dpswireless has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
meatherly has quit [Remote host closed the connection]
chipotle has joined #ruby
subbyyy has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
subbyyy has quit [Ping timeout: 252 seconds]
sevenseacat has joined #ruby
upsell5 has joined #ruby
mercwithamouth has quit [Ping timeout: 258 seconds]
subbyyy has joined #ruby
sgu has quit [Ping timeout: 252 seconds]
bin_sh has left #ruby ["proprium humani ingenii est odisse quem laeseris"]
jrhorn424 is now known as zz_jrhorn424
redondos has quit [Excess Flood]
nathancahill has quit [Quit: nathancahill]
redondos has joined #ruby
KAO has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
oo_ has joined #ruby
Lutece has quit [Quit: WeeChat 0.4.3]
mansi has joined #ruby
tcstar has quit [Ping timeout: 276 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjsmith2 has joined #ruby
mercwithamouth has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
yubrew has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
deric_skibotn has quit [Ping timeout: 265 seconds]
rundll32 has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
<rundll32> what is the best book for learning ruby for begginers?
r_rios has quit [Quit: No Ping reply in 180 seconds.]
thomasxie has joined #ruby
<havenwood> rundll32: Learn to Program by Chris Pine seems to be well liked.
<Retroid> rundll32, someone suggested this to me yesterday http://mislav.uniqpath.com/poignant-guide/
<Retroid> I also am going to be borrowing from the library The Ruby Programming Language which looks good
<havenwood> _why's poignant guide is a classic, and does have a soundtrack to go with...
<sevenseacat> why's guide is not a good introduction to ruby
<havenwood> but yeah, dated
<Retroid> yeah, I figured
<Retroid> but its funny
r_rios has joined #ruby
<havenwood> Retroid: indeed, worth the time! check out the soundtrack if you haven't
nathancahill has joined #ruby
<havenwood> this book is made of rabbits and marmalade...!
yubrew has quit [Ping timeout: 240 seconds]
thomasxie has quit [Read error: Connection reset by peer]
<rundll32> btw i know c and c++ concepts very clearly.
<rundll32> i also 8086 assembly language.
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
eighthbit has joined #ruby
Melpaws has joined #ruby
dayepa has quit [Ping timeout: 265 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has joined #ruby
<GlenK> rundll32: koans is kinda cool. I tend to favor why's guide as books go, just because it's so cool. there are probably better books if you're simply after learning.
codeFiend has quit [Quit: codeFiend]
<sevenseacat> i dont remember how i learnt... i think i just jumped right in
<GlenK> don't know if dietel and dietel is a thing for ruby, but if so then those are really good
<sevenseacat> went okay, `rails new`, let's go >_>
timonv has joined #ruby
<GlenK> probably wouldn't be a bad route to go with given the guy knows C already
afex has quit []
<sevenseacat> i was an experienced PHP dev beforehand though (whether thats a good or bad thing, ill let you decide)
<omosoj_> Anyone here into fiction? have any suggestions? something sci fi or computer related, maybe with a little social/political commentary?
Bira has quit [Remote host closed the connection]
<arrubin> omosoj_: Anything by Heinlein.
badhatter has joined #ruby
Shidash has joined #ruby
<GlenK> omosoj_: cant go wrong with neuromancer and snow crash
chipotle has quit [Quit: cya]
<GlenK> I'm of course addicted to a song of fire and ice these days
<GlenK> dune, ender's game, foundation. haha, I could do this all day. better stop while I'm ahead and not getting kicked
<omosoj_> GlenK, I've read In the beginning... :)
<GlenK> oh, one more. the little prince
mweshi has joined #ruby
<GlenK> just marvelous
<GlenK> it's a kids book though
pietr0 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<omosoj_> GlenK, and snow crash seems interesting.
timonv has quit [Ping timeout: 255 seconds]
<omosoj_> Yeah I wouldn't call it a masterpiece of literature heh
<omosoj_> arrubin, do you suggest anything in particular? I read a few PKD shorts a while ago and liked them. Maybe I'll start with a collection of his shorts
<arrubin> omosoj_: Stranger in a Strange Land or The Moon is a Harsh Mistress.
Spami has joined #ruby
<arrubin> Or even Starship Troopers (quite different from the movie).
sambao21 has joined #ruby
<GlenK> hienlien definitely has the political/social commentary
Spami has quit [Client Quit]
<GlenK> argh. I read "notes from underground" not so long ago and it pretty much went over my head. like 10 miles over my head.
dayepa has quit [Ping timeout: 240 seconds]
boycey has quit [Quit: boycey]
<omosoj_> GlenK, really? I loved Notes from Underground.
charliesome has joined #ruby
<GlenK> usually, I read a book, and I have to slog through it for a bit, then a few chapters in I get a flow and it's all good. not so with that book.
<omosoj_> I related to it (maybe too much, lol!)
<GlenK> maybe it was a bad translation? I dunno.
rundll32 has quit [Ping timeout: 252 seconds]
beef-wellington has joined #ruby
<omosoj_> I think I read an excerpt, actually.
dayepa has joined #ruby
s00pcan has quit [Ping timeout: 276 seconds]
livcd has joined #ruby
xcesariox has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
lw has quit [Quit: s]
s00pcan has joined #ruby
<omosoj_> Think I'm gonna start with Snow Crash and a collection of Heinlein's shorts. Thanks guys
Melpaws has quit [Quit: Leaving.]
sambao21 has quit [Ping timeout: 258 seconds]
Hanmac has quit [Ping timeout: 258 seconds]
mercwithamouth has quit [Ping timeout: 276 seconds]
Martxel has quit [Ping timeout: 252 seconds]
Abyss__ has joined #ruby
xcesariox has quit [Ping timeout: 252 seconds]
livcd has quit [Ping timeout: 276 seconds]
raspberryfan has joined #ruby
hamakn has quit [Remote host closed the connection]
musashi1 has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has joined #ruby
momomomomo has quit [Quit: momomomomo]
jhulten_ has quit [Remote host closed the connection]
dyreshark has quit [Quit: I just dont know what went wrong!]
dyreshark has joined #ruby
wallerdev has quit [Quit: wallerdev]
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
tyll_ has joined #ruby
<jenrzzz> hmmm. i just realized that my prototypical solution to the frobenius mcnuggets problem that i’ve been asking in interviews is wrong
hermanmunster has quit [Remote host closed the connection]
<sevenseacat> lol oops
<jenrzzz> i had a candidate realize that and was impressed. not sure if i should change it
<jenrzzz> it’s “write a function to determine if it’s possible to order n chicken mcnuggets, given that they come in 6, 9, and 20-piece orders”
Rahul_Roy has joined #ruby
dseitz has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
<jenrzzz> and i try to guide people to a recursive greedy algorithm, like making change. but it’s not the same because 6, 9, and 20 are not all multiples of each other, unlike coins (1, 5, 10, 25, etc.)
<sevenseacat> ... i would have to really sit and think about how to do that
hermanmunster has joined #ruby
tyll has quit [Ping timeout: 258 seconds]
Bira has joined #ruby
<sevenseacat> this is going to occupy my brain now
marcdel has joined #ruby
braincra- has joined #ruby
EthanHuntAgain has joined #ruby
marcdel_ has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
<jenrzzz> i think i’ll use the making change problem for greedy/recursive algorithm ability
<jenrzzz> that one is prima facie tricky
<jenrzzz> the mcnuggets one i mean
braincrash has quit [Ping timeout: 258 seconds]
<arrubin> jenrzzz: Do you think that this is a useful interview question?
sevenseacat has quit [Ping timeout: 252 seconds]
<jenrzzz> yeah
mweshi has quit [Quit: mweshi]
<jenrzzz> i definitely don’t expect to just ask it and sit there in silence until they come up with a solution
<jenrzzz> but i can find out a lot about a candidate by talking through the problem with them
marcdel has quit [Ping timeout: 276 seconds]
hamakn has joined #ruby
alexju has joined #ruby
krzkrz has quit [Quit: WeeChat 0.4.3]
silkfox has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Steve21 has quit [Quit: Steve21]
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wallerdev has joined #ruby
<GlenK> ha, me. I'm never going to get a job programming apparently. because I'd be like leave me the hell alone whilst I come up with my solution
jlast has quit [Remote host closed the connection]
chipotle has joined #ruby
jlast has joined #ruby
mostlybadfly_ has quit [Quit: Connection closed for inactivity]
funburn has quit [Quit: funburn]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
hermanmunster has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 255 seconds]
<agent_white> For N? Wouldn't it just be the LCD of the three numbers?
<agent_white> erm, Least common multiple?
<arrubin> agent_white: Can you buy 7 nuggets? 12?
<agent_white> Or rather greatest common factor?
hermanmunster has joined #ruby
<arrubin> It is a knapsack type problem.
jeregrine has joined #ruby
dpswireless has joined #ruby
<agent_white> arrubin: What does that mean?
i_s has joined #ruby
<agent_white> arrubin: Oh wow, didn't think it was a wiki-friendly thing :P
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sevenseacat has joined #ruby
Steve21 has joined #ruby
<Steve21> I am trying to install a gem locally to overright a existing gem. I ran the Rake build and then a gem build and gem install, but still does not seem to be updating
<Steve21> is there something i am likely missing?
<centrx> You can only overwrite or upright a gem, never overright
sensen has joined #ruby
<Steve21> ha ha. thanks
<Steve21> I am trying to install a gem locally to overwrite a existing gem. I ran the Rake build and then a gem build and gem install, but still does not seem to be updating
radic has quit [Ping timeout: 276 seconds]
hakunin_ has quit []
<Steve21> ideas?
<agent_white> Steve21: If you are overwriting it, why just remove it?
bijan07077 has quit [Quit: bijan07077]
<agent_white> jenrzzz: I'm curious about your question and looking at your code :) So if this is a 'knapsack' problem, is there price involved for each "mcnugget-set"?
radic has joined #ruby
<Steve21> just tried. still not working. thinking the build is not working
<Steve21> build says success, but clearly not so much
<jenrzzz> agent_white: it’s not a knapsack problem, just linear combination
bijan07077 has joined #ruby
<agent_white> Steve21: gist what you did, and your full error. Then I bet someone can help.
freerobby has quit [Quit: Leaving.]
<Steve21> getting no errors. that sthe prob
<Steve21> builds are all good. but likely missing a step
<agent_white> Steve21: Run each command with the verbose flags on.
EthanHuntAgain has quit [Quit: Lingo - http://lingoirc.com]
<agent_white> jenrzzz: Ahhh. Checking your link now :) I am going to be applying for junior dev positions soon, so I need some practice!
rOOb has quit [Ping timeout: 255 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
thesheff17 has quit [Ping timeout: 255 seconds]
eighthbit has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> i figured there was a formula for working it out, i just didnt know what it was
<arrubin> agent_white: You would have to be familar with a very wide range of CS topics to deal with the style of interview that jenrzzz seems to perform.
pu22l3r has quit [Remote host closed the connection]
rOOb has joined #ruby
antonishen has quit [Ping timeout: 245 seconds]
Striki has quit [Ping timeout: 240 seconds]
<arrubin> agent_white: Many companies these days are moving to work examples, meaning they have you perform a small bit of work that is actually similar to what you would do on the job.
hakunin has joined #ruby
mroth has quit [Ping timeout: 252 seconds]
<arrubin> agent_white: And a large number of companies are bad at interviewing and the technical portion is trivial.
dioms_ has quit [Ping timeout: 240 seconds]
yacks has quit [Ping timeout: 265 seconds]
machty has quit [Ping timeout: 252 seconds]
thesheff17 has joined #ruby
<agent_white> arrubin: Ah I figured... at least I've _heard_ that in junior dev positions they expect you to not know much at all, eh?
<arrubin> agent_white: Depends on the company.
EasyCo has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
<arrubin> agent_white: Some companies feel like they are being rigorous if they test your memory of CS concepts.
Rahul_Roy has quit [Ping timeout: 245 seconds]
jeffreybaird has quit [Ping timeout: 245 seconds]
pipework has quit [Ping timeout: 265 seconds]
<arrubin> agent_white: Most Rails shops, for instance, are going to be far more interested in your ability to write Rails code.
<agent_white> arrubin: I would hope they wouldn't, I'm currently on an extended break from college, so I haven't had practice with more CS-related stuff in a couple years :P
machty has joined #ruby
antonishen has joined #ruby
<agent_white> arrubin: Yeah that's what I'm looking for, actually! My aim is for a Rails shop, but otherwise in the web-dev arena.
aiguu has joined #ruby
mroth has joined #ruby
EasyCo has joined #ruby
<agent_white> elsewhere in the web-dev arena**
Striki has joined #ruby
dioms_ has joined #ruby
Rahul_Roy has joined #ruby
pipework has joined #ruby
<arrubin> Fortunately most companies have moved on from the lame puzzles.
jamto11 has quit [Ping timeout: 240 seconds]
jeffreybaird has joined #ruby
ffranz has quit [Quit: Leaving]
aspires has quit []
hakunin has quit []
<agent_white> Good to hear :). I'm going to be riding on my enthusiasm to win interviews... definitely don't lack it ;P
BraddPitt has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
<jenrzzz> arrubin, agent_white that’s just one question in my repertoire. i don’t expect the solution right away, it’s just a tool for determing what people do and do not know
<jenrzzz> not knowing the answer doesn’t count against you
BraddPitt has quit [Client Quit]
<arrubin> jenrzzz: What kind of work does the actual job entail?
maestrojed has quit [Quit: Computer has gone to sleep.]
Steve21 has quit [Quit: Steve21]
<arrubin> jenrzzz: Also, are you aware of a text that covers dynamic programming other than CLRS?
<agent_white> jenrzzz: So if you don't mind me picking your brain... what would you like to see in a candidate that did not know the solution?
Radar is now known as notradar
notradar is now known as Radar
mjsmith2 has quit [Remote host closed the connection]
AlSquirrel has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 252 seconds]
<jenrzzz> arrubin: i used the dasgupta book in school
circ-user-lDwNg has joined #ruby
circ-user-lDwNg has quit [Remote host closed the connection]
circ-user-6PoLT has joined #ruby
MatthewsFace has joined #ruby
<jenrzzz> arrubin: i’ve interviewed for a few different positions. they are kind of atypical cause my team is so small. we do internal rails apps and build tools for hardware validation and stuff like that
<jenrzzz> generally we just look for ways to make things better for the hardware team we our integrated with
lw has joined #ruby
<jenrzzz> and try to keep the electrical engineers from perpetuating shitty code
oo_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<jenrzzz> agent_white: i usually talk it through with them, give them hints. if they completely blank and don’t even know where to start, i’d probably ask how they would go about acquiring the knowledge they need to solve the problem
Es0teric has joined #ruby
<jenrzzz> agent_white: depends on the candidate and position, though
dideler has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
circ-user-6PoLT has quit [Remote host closed the connection]
<agent_white> jenrzzz: Ahhh I see.
jack_rabbit has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
lotec has joined #ruby
bijan07077 has quit [Read error: Connection reset by peer]
lotec has left #ruby [#ruby]
dideler has joined #ruby
jack_rabbit has joined #ruby
Dovid has joined #ruby
aniM has joined #ruby
yacks has joined #ruby
marcdel_ has quit [Ping timeout: 255 seconds]
bijan07077 has joined #ruby
<agent_white> jenrzzz: So sometimes, not knowing is not a problem rather than going about learning what you don't know?
<agent_white> jenrzzz: At least, my last boss seemed to it when he said "Hey agent_white, do you know Rails?" and I said "No, but I can learn it."
r_rios has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
zz_jrhorn424 is now known as jrhorn424
marcdel has joined #ruby
bijan07077 has quit [Ping timeout: 252 seconds]
<jenrzzz> agent_white: i think technical inteview questions should be more topics for conversation than right/wrong
<arrubin> A giant buzzer should go off when the candidate is wrong.
<jenrzzz> i usually put a trapdoor in front of the whiteboard
<arrubin> Just to keep him on his toes.
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
braincra- has quit [Quit: bye bye]
<wallerdev> yeah
<wallerdev> i couldnt figure out one of the questions in an interview for my current job
<wallerdev> but the guy stisll wanted to hire me because of how i approached the problem and talked about it with him
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
Megtastique has quit []
i_s has joined #ruby
<sevenseacat> ive had the opposite problem in interviews 'yes you figured out the problem and got the right answer, but we didnt like how you approached it'
braincrash has joined #ruby
pu22l3r has joined #ruby
marcdel has quit [Ping timeout: 245 seconds]
dmitrykorotkov has joined #ruby
yubrew has joined #ruby
freerobby1 has quit [Ping timeout: 258 seconds]
rm_ has quit [Disconnected by services]
<wallerdev> haha ive had that too
marcdel has joined #ruby
<wallerdev> it was a problem where i already knew the answer though so i just solved it
<wallerdev> and they were like okay thanks bye
pietr0 has quit [Quit: pietr0]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
<MatthewsFace> They obviously didn't want experience
<MatthewsFace> haha
mansi has joined #ruby
krz has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
Valesk has joined #ruby
oo_ has quit [Remote host closed the connection]
eka has joined #ruby
oo_ has joined #ruby
timonv has joined #ruby
phinfonet has quit []
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
alvaro_o has quit [Quit: Ex-Chat]
timonv has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Vivekananda has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aniM has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
Es0teric has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
sensen has quit [Ping timeout: 240 seconds]
jrhorn424 is now known as zz_jrhorn424
sensen has joined #ruby
zcreative has joined #ruby
gregf_ has quit [Ping timeout: 240 seconds]
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
rOOb has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
SCommette has joined #ruby
rOOb has joined #ruby
s2013 has joined #ruby
andrewjanssen has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
_sambao21 has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
andrewjanssen has quit [Client Quit]
SCommette has quit [Client Quit]
livcd has joined #ruby
<agent_white> sevenseacat: No shit? Would approaching it from a 'different angle' make that much of a difference?
<sevenseacat> apparently so
<dseitz> Not enough diagram, needs more diagram
<sevenseacat> kinda like the high school maths classes 'show your working out'
sski has joined #ruby
i_s has quit [Remote host closed the connection]
pietr0 has joined #ruby
ce_afk is now known as cescalante
gregf_ has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
ebwise has joined #ruby
echevemaster has quit [Quit: WeeChat 0.4.3]
tcstar has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omosoj_ has quit [Ping timeout: 258 seconds]
musashi1 has joined #ruby
adamnbowen has joined #ruby
jeregrine has quit [Ping timeout: 240 seconds]
cjsarette has quit [Max SendQ exceeded]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<ebwise> is there a way to start an http server from the cli? an equivalent to 'python -m SimpleHTTPServer'
cjsarette has joined #ruby
cjsarette has quit [Max SendQ exceeded]
Dovid has quit [Ping timeout: 276 seconds]
s2013 has quit [Ping timeout: 240 seconds]
hugg has joined #ruby
<agent_white> sevenseacat: That's wierd. I guess you dodged a bullet though, eh?
wallerdev has quit [Quit: wallerdev]
<sevenseacat> agent_white: i do wish i'd gotten the job but hey, not meant to be eh
cjsarette has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
adamnbowen has quit [Client Quit]
<agent_white> sevenseacat: I mean, if the interviewer brought that up, maybe you did avoid some possible potholes down the road? :)
mrnugget has joined #ruby
maestrojed has joined #ruby
apeiros has joined #ruby
racaille has joined #ruby
<sevenseacat> true
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
Steve21 has joined #ruby
yubrew has joined #ruby
oo_ has quit [Remote host closed the connection]
hugg1 has joined #ruby
mxd has quit [Ping timeout: 265 seconds]
hugg has quit [Disconnected by services]
hugg1 is now known as hugg
<pontiki> did they offer what they didn't like about your approach?
freerobby has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 276 seconds]
rm___ has joined #ruby
rm___ is now known as Guest93900
gigetoo has joined #ruby
hugg has quit [Ping timeout: 240 seconds]
<zastern> Why does the a.wurr_u_at work in this code: https://gist.github.com/zacharyalexstern/045316f8ddf0c03b491b
<zastern> I'm not clear on why x and y are even defined inside of wurr_u_at, I guess. It's not trying to get at the isntance variables, right?
freerobby has quit [Ping timeout: 276 seconds]
<zastern> since there's no @
upsell5 has quit [Quit: upsell5]
JumpMast3r has joined #ruby
hugg has joined #ruby
chipotle has quit [Quit: cya]
s2013 has joined #ruby
omosoj_ has joined #ruby
<Steve21> are gems or anyone on OSX stored in memory?
dmitrykorotkov has quit [Remote host closed the connection]
<Steve21> I make a change to a gem. reinstall it but it does not always see the change
cescalante is now known as ce_afk
ce_afk is now known as cescalante
Burgestrand has joined #ruby
<sevenseacat> well if you reinstall it, you're probably overwriting your changes
<Steve21> installing locally
adurity has joined #ruby
<sevenseacat> what exactly are you doing?
<Steve21> just seems like something is being caught in memory
<Steve21> install it locally
<musashi1> Does anyone know if there is a chat room for media? specifically videos?
<Steve21> go into lib>qless>job.rb
<Steve21> comment out lines 198 to 217
Dysruption has joined #ruby
<Steve21> rebuild the gem and install the gem
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve21> then go back and uncomment the lines, rebuild, and reinstall the gem
<sevenseacat> and how are you rebuilding and installing the gem
_sambao21 has quit [Quit: Computer has gone to sleep.]
<Steve21> running: bundle exec rake core:build, and then Gem build and gem install on the local gemfile
tcstar has quit [Remote host closed the connection]
<sevenseacat> it would be much easier and a lot less ambiguous if you just like copied and pasted your terminal to show what you were doing
<Steve21> literally in term, I am running ‘bundle exec rake core:build’. After tha I run ‘gem build [gemspec path]’, followed by ‘gem install [.gem path]’
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<sevenseacat> right, thats different than what you said before
b00stfr3ak has joined #ruby
<Steve21> i wrote: “running: bundle exec rake core:build, and then Gem build and gem install on the local gemfile”, hows that different?
<sevenseacat> because your actual commands have no reference to a 'local Gemfile'
<Steve21> Okay, fair enought. Sorry i thought that was clear when i added “on the local gemfile”
funburn has joined #ruby
<Steve21> So is there something i am missing?
<Steve21> I thinking i am following the right process. Or am i missing something obvious
<zastern> Is it just that if I use a local variable inside a class method, when an instasnce var of the same name is defined, but the local var isn't, that ruby uses the instance var value?
pu22l3r has quit [Remote host closed the connection]
mdmcaf has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
KAO has joined #ruby
connor_goodwolf_ has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
Cache_Money has joined #ruby
oo_ has joined #ruby
adam_ is now known as adam
adam is now known as Guest52266
ClarusCogitatio has quit [Ping timeout: 240 seconds]
HashNuke has joined #ruby
Steve21 has quit [Quit: Steve21]
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
maestrojed has quit [Quit: Computer has gone to sleep.]
davedev24 has joined #ruby
jamto11 has joined #ruby
nari has joined #ruby
silkfox has joined #ruby
ktun has joined #ruby
b00stfr3ak has quit [Remote host closed the connection]
Steve21 has joined #ruby
ClarusCogitatio has joined #ruby
jimbauds has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
brian___ has quit [Quit: brian___]
wolf__ has joined #ruby
davedev24 has quit [Ping timeout: 245 seconds]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Burgestrand]
silkfox has quit [Ping timeout: 252 seconds]
livcd has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
i_s has joined #ruby
tectonic has joined #ruby
oo_ has joined #ruby
andrewjf has quit [Remote host closed the connection]
livcd has quit [Ping timeout: 255 seconds]
connor_goodwolf_ has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
Steve21 has quit [Quit: Steve21]
adurity has quit [Quit: Leaving...]
i_s has quit [Ping timeout: 265 seconds]
ClarusCogitatio has joined #ruby
RohanRNS has quit [Quit: Connection closed for inactivity]
Dysruption has quit [Quit: Dysruption]
davedev24 has joined #ruby
maestrojed has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
centrx has quit [Quit: All this computer hacking is making me thirsty]
aiguu has quit [Ping timeout: 276 seconds]
aganov has joined #ruby
davedev24 has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
ffranz has joined #ruby
jottr has joined #ruby
ebwise has quit [Quit: Leaving]
rezzack has quit [Quit: Leaving.]
yubrew has quit [Ping timeout: 240 seconds]
raspberryfan has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 276 seconds]
raspberryfan has joined #ruby
JacobHayes has joined #ruby
Darryl has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
yfeldblu_ has joined #ruby
mrnugget_ has joined #ruby
kitak has quit [Remote host closed the connection]
lw has quit [Quit: s]
alexju has quit [Remote host closed the connection]
davedev24 has joined #ruby
kitak has joined #ruby
mrnugget has quit [Ping timeout: 276 seconds]
mrnugget_ is now known as mrnugget
timonv has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
raspberryfan has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 258 seconds]
Morkel has joined #ruby
matthieua has joined #ruby
matthieua has quit [Client Quit]
timonv has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
i_s has joined #ruby
LexicalScope has joined #ruby
LexicalScope` has joined #ruby
LexicalScope has joined #ruby
mansi has joined #ruby
andrewlio has joined #ruby
voodoofish has left #ruby [#ruby]
mansi has quit [Ping timeout: 245 seconds]
St_Marx has quit [Quit: Ex-Chat]
brunops has quit [Quit: leaving]
_1_eduardo has joined #ruby
wldcordeiro|2 has joined #ruby
<_1_eduardo> hola
<_1_eduardo> como satsa
<_1_eduardo> ;)
badhatter has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Ping timeout: 245 seconds]
_1_eduardo has quit [Remote host closed the connection]
Valesk has joined #ruby
kitak_ has joined #ruby
krz has quit [Ping timeout: 258 seconds]
oo_ has quit [Quit: Leaving...]
fgo has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
Macaveli has joined #ruby
ffranz has quit [Quit: Leaving]
Bumptious has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
JasmeetQA has joined #ruby
oo_ has joined #ruby
ascarter has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
matthieua has joined #ruby
<agent_white> hola
mengu has joined #ruby
mengu has joined #ruby
<hugg> Does anyone have opinions about the nokogiri gem for HTML scraping?
<agent_white> hugg: It's a de-facto standard. MANY people use it.
<pontiki> use it alla time, from within Mechanize
sgu has joined #ruby
myfriend has joined #ruby
<myfriend> hello my friends
<myfriend> what happened to _why ?
cescalante is now known as ce_afk
<hugg> pontiki: could you give me an example of what you use Mechanize for?
matthieua has quit [Read error: Connection reset by peer]
george2 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<Hanmac> myfriend: he doesnt need to find a reason anymore, now he is searching for himself, so he became _who
<hugg> pontiki: awesome!!! thanks
<pontiki> nw
<myfriend> Hanmac, I see. His ruby book inspired me and affected me in a very powerful way
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
_justin has joined #ruby
brunops has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
sgu has quit [Read error: Connection reset by peer]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sgu has joined #ruby
<Hanmac> myfriend: he even is on wikipedia: http://en.wikipedia.org/wiki/Why_the_lucky_stiff
yfeldblum has joined #ruby
livcd has joined #ruby
<Hanmac> myfriend: quote: until a 2012 article in Slate magazine quoted a statement from a fellow programmer saying, "Jonathan is _why, he is fine, and he just wants to be left alone."
AlSquire has joined #ruby
<pontiki> the one person i knew personally with a wiki page no longer has one :(
<omosoj_> Say I have a website I want to grab a few paragraphs off. how do i do this? /[<beginstring>(..)<endstring>].match(website)
Valesk has joined #ruby
<pontiki> omosoj_: see immediately prior mention of nokogiri (and maybe mechanize)
i_s_ has joined #ruby
sdwrage has joined #ruby
sgu has quit [Ping timeout: 240 seconds]
<omosoj_> hm. search my irc log?
<pontiki> it's like 12 lines up
sgu has joined #ruby
<omosoj_> woops lol.
<pontiki> if you do just want to use a Regexp, you can do that as well
<apeiros> omosoj_: I'd start at the beginning of your log :-p
<pontiki> pfft :P
livcd has quit [Ping timeout: 255 seconds]
Deele has quit [Ping timeout: 255 seconds]
<pontiki> but folks generally prefer parsing html
<myfriend> Hanmac, cool, I wish all the best for him.
<omosoj_> i was searching for nokogirl. lazy eyes...
_justin has quit [Ping timeout: 258 seconds]
yubrew has joined #ruby
i_s_ has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
LACP has quit [Ping timeout: 240 seconds]
<omosoj_> pontiki, hm, ok.
geopet has quit []
mrnugget has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
bal has joined #ruby
rkazak_ has joined #ruby
kate_r has joined #ruby
<omosoj_> whoa mechanize is crazy. awesome
KAO has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
kate_r has quit [Client Quit]
mrnugget has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
brunops has quit [Quit: leaving]
mrnugget has quit [Read error: Connection reset by peer]
livcd has joined #ruby
ndrei has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mrnugget has joined #ruby
mrnugget has quit [Client Quit]
raspberryfan has joined #ruby
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
LACP has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
bMalum___ has joined #ruby
Deele has joined #ruby
<omosoj_> pontiki, you use scrapers instead of nokogiri?
i_s has quit [Quit: i_s]
tectonic has quit []
freerobby has joined #ruby
<pontiki> i wrote scrapers
<pontiki> it mainly uses mechanize, which uses nokogiri
<pontiki> but there's a little nokogiri in there, IIRC
subraminion has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
<pontiki> so i use nokogiri a *lot*, but not necessarily directly
freerobby has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj_> ok, what other functionalities are in scrapper?
<rkazak_> postmorden: u in ?
<jimbauds> good to know i'm not alo9ne
<bricker`LA> For those using chef, what do you name your nodes/VMs? The previous dev here started the convention "web001", but I don't understand the numbers
mansi has joined #ruby
<hugg> pontiki: (scrapers is really an awesome awesome example btw) thanks again.
tobago has joined #ruby
aiguu has joined #ruby
frogssgy has joined #ruby
mansi has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
oo_ has joined #ruby
frosgy has quit [Ping timeout: 255 seconds]
maestrojed has quit [Read error: Connection reset by peer]
<pontiki> nw, hugg
maestroj_ has joined #ruby
maestroj_ has quit [Client Quit]
funburn has quit [Quit: funburn]
kitak_ has quit [Remote host closed the connection]
nari has quit [Ping timeout: 265 seconds]
AlSquirrel has joined #ruby
mary5030 has joined #ruby
bal has quit [Quit: bal]
ce_afk is now known as cescalante
bal has joined #ruby
AlSquire has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
timonv has joined #ruby
claymore has joined #ruby
AlSquirrel has quit [Ping timeout: 276 seconds]
maestrojed has joined #ruby
anarang has joined #ruby
amclain has quit [Quit: Leaving]
Hanmac1 has joined #ruby
codeFiend has joined #ruby
sputnik13 has joined #ruby
arturaz has joined #ruby
kitak has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
sputnik13 has quit [Client Quit]
hugg has quit [Quit: quitting time]
cescalante is now known as ce_afk
jprovazn has joined #ruby
jamto11 has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
claymore has quit [Ping timeout: 255 seconds]
<robert_> so I'm having this really "interesting" issue where I'm trying to run a scheduler inside of a daemonized process, HOWEVER the scheduler only wants to run when app I'm working on isn't daemonized. :/
Mon_Ouie has quit [Ping timeout: 240 seconds]
relix has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
nari has joined #ruby
Squarepy has joined #ruby
yubrew has joined #ruby
claymore has joined #ruby
<rkazak_> robert_: have you reduced your test case?
Jnco has left #ruby [#ruby]
<rkazak_> robert_:can you share the code?
i_s has joined #ruby
<robert_> not the code I'm working on, but I can throw together a sample.
ndrei has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
rshetty has joined #ruby
irrci has joined #ruby
<rkazak_> robert_:maybe thats the place to start reduce everything to the bare minimum
andikr has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
pietr0 has quit [Quit: pietr0]
i_s has quit [Ping timeout: 240 seconds]
<robert_> weird.. that works.
vekfautles has joined #ruby
<robert_> Yeah.
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has joined #ruby
sooik has joined #ruby
<rkazak_> ok, so selectively styart to replace....
yfeldblu_ has joined #ruby
<rkazak_> robert_:the removed code...
timonv has quit [Remote host closed the connection]
sinkensa_ has joined #ruby
ktun has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 276 seconds]
<robert_> ah, there we go. it stops working when I move the job out to a required file.
sinkensabe has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
funburn has quit [Client Quit]
kiri has joined #ruby
ktun has joined #ruby
<robert_> rkazak_: http://codepad.org/cJNMbF9U
mary5030 has quit [Remote host closed the connection]
subraminion has quit [Quit: Computer has gone to sleep.]
sooik has quit [Ping timeout: 255 seconds]
krz has joined #ruby
freerobby has joined #ruby
zigomir has joined #ruby
LexicalScope has quit [Ping timeout: 265 seconds]
LexicalScope` has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 252 seconds]
subraminion has joined #ruby
lolmaus has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
WishBoy has quit [Ping timeout: 255 seconds]
arturaz has quit [Remote host closed the connection]
skaflem has joined #ruby
kies has quit [Ping timeout: 265 seconds]
tectonic has joined #ruby
mansi has joined #ruby
grzywacz has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has joined #ruby
rkazak_ has left #ruby [#ruby]
hermanmunster has quit [Remote host closed the connection]
tectonic has quit [Client Quit]
hermanmunster has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
omosoj_ has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 255 seconds]
anaeem1_ has joined #ruby
robbyoconnor has joined #ruby
hermanmunster has quit [Ping timeout: 265 seconds]
vjt_ has joined #ruby
JacobHayes has quit [Remote host closed the connection]
klaut has joined #ruby
Fraeon has quit [Ping timeout: 252 seconds]
tvw has quit [Client Quit]
tvw has joined #ruby
vjt has quit [Ping timeout: 245 seconds]
Igneous has joined #ruby
Fraeon has joined #ruby
timonv has joined #ruby
kies has joined #ruby
livcd has quit [Ping timeout: 255 seconds]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ce_afk is now known as cescalante
timonv has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
blackmes1 has joined #ruby
<tobago> how to get the inheritants of a class? or how to get the sibling classes of one class?
sk87 has joined #ruby
apeiros has joined #ruby
oo_ has joined #ruby
<Igneous> I if I'm doing something like @tmpdir = Dir.mktmpdir in my class initialize method, and wanted all of the subsequent class methods to execute their block within Dir.chdir(@tmpdir), what would be the most DRY way to do that?
<Igneous> super?
Atrumx has quit [Quit: Exit]
saarinen has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
JasmeetQA1 has joined #ruby
Martxel has joined #ruby
WishBoy has joined #ruby
setra has joined #ruby
<robert_> rkazak_: also, ignore the language I selected. It's ruby, I'm just too spaced out for my own good, right now.
<Igneous> tobago: As far as I know, there's no built-in method that's the antithesis of .ancestors or .superclass, but you iterate on classes in the objectspace and test if the parent is a subclass of self.
JasmeetQA has quit [Ping timeout: 258 seconds]
alem0lars has joined #ruby
rdark has joined #ruby
<tobago> Igneous, o.k. I already know that approach. just thought there might be a quicker one. but thank.
<tobago> Igneous, touching the entire ObjectSpace is some kind of bloated for my needs.
ce_afk is now known as cescalante
i_s has joined #ruby
Martxel has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 276 seconds]
heftig has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
i_s has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
tesuji has joined #ruby
fgo has quit [Remote host closed the connection]
chipotle_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
chipotle has quit [Ping timeout: 258 seconds]
Ardenzi has joined #ruby
kitak has quit [Remote host closed the connection]
livcd has joined #ruby
nvrch has joined #ruby
dsdeiz_ has joined #ruby
mikecmpbll has joined #ruby
timonv has joined #ruby
dsdeiz has quit [Ping timeout: 265 seconds]
magicien has joined #ruby
kitak has joined #ruby
ghr has joined #ruby
yacks has quit [Ping timeout: 265 seconds]
blackmes1 has joined #ruby
ikaros has joined #ruby
freerobby has joined #ruby
shredding has joined #ruby
yacks has joined #ruby
rshetty has quit [Remote host closed the connection]
dsdeiz_ has quit [Ping timeout: 245 seconds]
sgu has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
dsdeiz has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has joined #ruby
relix has joined #ruby
jhass|off is now known as jhass
freerobby has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 240 seconds]
AnoGen has joined #ruby
oo_ has quit [Remote host closed the connection]
Dude007_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mary5030 has joined #ruby
marr has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
saarinen has quit [Quit: saarinen]
livcd has quit [Ping timeout: 258 seconds]
agent_white has joined #ruby
agent_white is now known as mitt3ns
zigomir has quit [Remote host closed the connection]
mitt3ns has left #ruby [#ruby]
mansi has joined #ruby
zigomir_ has joined #ruby
olivier_bK has joined #ruby
JasmeetQA1 has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 252 seconds]
JasmeetQA has joined #ruby
dapz has joined #ruby
einarj has joined #ruby
sooik has joined #ruby
chipotle_ has quit [Quit: cya]
mansi has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
blackmes1 has quit [Ping timeout: 252 seconds]
zigomir_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 255 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
zigomir has joined #ruby
dapz has quit [Client Quit]
LekeFly has joined #ruby
_justin has quit [Quit: _justin]
Xeroa has quit [Quit: Ex-Chat]
timonv has quit [Remote host closed the connection]
yubrew has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 252 seconds]
sandelius has joined #ruby
<sandelius> how can i include a module and make its method available both for instance and class methods?
Bumptious has quit [Remote host closed the connection]
Wolland has joined #ruby
Bumptious has joined #ruby
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
Squarepy has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 252 seconds]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
frobrob has joined #ruby
dapz has joined #ruby
yacks has joined #ruby
jamto11 has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
jonno11 has joined #ruby
DaniG2k has joined #ruby
heftig has joined #ruby
<DaniG2k> hey guys has anyone installed Ruby 2.1.2 with RVM?
vise890 has joined #ruby
<DaniG2k> i am trying with rvm get stable but it tells me there's nothing to download
Wolland has quit []
jottr has joined #ruby
<sevenseacat> doesnt that get an rvm update?
<DaniG2k> sevenseacat: let me check
<DaniG2k> thought it updated
<DaniG2k> ruby
Xeroa has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
<DaniG2k> sevenseacat: nope, RVM only has 2.1.2
<DaniG2k> i mean
<DaniG2k> 2.1.1
sdwrage has quit [Quit: This computer has gone to sleep]
<DaniG2k> oh well
jamto11 has quit [Ping timeout: 245 seconds]
<sevenseacat> not in stable though
<DaniG2k> oh ok
<DaniG2k> will wait it out then
<DaniG2k> not a big deal
claymore has joined #ruby
VTLob has joined #ruby
fgo has joined #ruby
ce_afk is now known as cescalante
i_s has joined #ruby
subbyyy has joined #ruby
subbyyy_ has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
i_s has quit [Ping timeout: 240 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
charliesome has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
banister has joined #ruby
mclee has quit [Quit: WeeChat 0.4.1]
workmad3 has joined #ruby
dapz has joined #ruby
mclee has joined #ruby
timonv has joined #ruby
charliesome has quit [Client Quit]
cescalante is now known as ce_afk
armyriad has quit [Ping timeout: 252 seconds]
AnoGen has quit []
i_s has joined #ruby
nopolitica has joined #ruby
kitak has quit [Remote host closed the connection]
subraminion has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dude007 has joined #ruby
14WACW4PD has joined #ruby
14WACW4PD has quit [Client Quit]
sensen has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
Dude007 has quit [Remote host closed the connection]
sensen has joined #ruby
kitak has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
i_s has quit [Ping timeout: 265 seconds]
VictorBjelkholm has quit [Quit: Leaving]
canton7-mac has joined #ruby
freerobby has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
rshetty has joined #ruby
banisterone has quit [Quit: Bye]
banisterone has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 255 seconds]
armyriad has joined #ruby
pen has joined #ruby
irrci has quit [Quit: Page closed]
livcd has joined #ruby
einarj_ has joined #ruby
blassin has joined #ruby
<blassin> hello
jonasac has quit [Quit: Coyote finally caught me]
<blassin> need some help with metaprogramming
<blassin> I have a paste up at http://pastebin.com/aBh92JFs
<blassin> I would like to improve this code, to be able to drop the constant, and not rely on method_missing all the time (just the first time, then use define_method to not hit method_missing on the 2nd invocation)
<blassin> help?
banister has joined #ruby
Dude007 has joined #ruby
<jhass> why don't you define the methods in possible_returns already?
livcd has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 276 seconds]
<blassin> the idea is to have the gateway be self-contained, so the only thing you should write would be possible_returns [:a,:b,:c] and the a_response, b_response, etc methods
nvrch has quit [Quit: nvrch]
<blassin> all else should be on a shared module
mansi has joined #ruby
<jhass> that doesn't mean you can't define them there already
<blassin> hmm yes that makes sense :D
<blassin> but doing it there makes them class methods, right?
<jhass> no
<jhass> define_method defines instance methods
Es0teric has quit [Quit: Computer has gone to sleep.]
<jhass> define_singleton_method would create "class methods" (instance methods on the Class object)
bMalum___ has quit [Quit: Computer has gone to sleep.]
bMalum___ has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
krandi has joined #ruby
myfriend has quit [Quit: Leaving]
andikr has quit [Ping timeout: 276 seconds]
mengu has quit [Remote host closed the connection]
<blassin> ok, this http://pastebin.com/RjFsgNYz doesn’t work
<blassin> payments.rb:10:in `block (2 levels) in possible_returns': no block given (yield) (LocalJumpError)
bMalum___ has quit [Ping timeout: 240 seconds]
certainty has joined #ruby
nvrch has joined #ruby
<jhass> yes, you need to capture the block and call it explicitly
RaptorJesus has quit [Ping timeout: 272 seconds]
<jhass> define_method :foo do |&block| block.call(self) end
maximski has joined #ruby
nfk has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
zwerg has joined #ruby
<zwerg> Hey there.
charliesome has joined #ruby
<blassin> final version: http://pastebin.com/3mhs2CM8 thanks for all your help, jhass!!
sooik has quit [Ping timeout: 240 seconds]
sooik has joined #ruby
subbyyy_ has quit [Ping timeout: 276 seconds]
maximski has quit [Client Quit]
wald0 has quit [Quit: Lost terminal]
oo_ has quit [Remote host closed the connection]
blassin has quit [Quit: blassin]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subraminion has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
RaptorJesus has joined #ruby
Es0teric has joined #ruby
sandelius has joined #ruby
JhonD has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
noop has joined #ruby
troulouliou_dev has joined #ruby
fgo has joined #ruby
ce_afk is now known as cescalante
fgo has quit [Ping timeout: 255 seconds]
subraminion has joined #ruby
banisterone has quit [Quit: Bye]
banisterone has joined #ruby
nari has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
ndrei has joined #ruby
cescalante is now known as ce_afk
tvw has quit []
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
blackmes1 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Es0teric has quit [Quit: Computer has gone to sleep.]
Guest70926 has quit [Changing host]
Guest70926 has joined #ruby
Guest70926 is now known as deepy
mengu has quit [Ping timeout: 252 seconds]
AndChat|102836 has joined #ruby
freerobby has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
sandelius has joined #ruby
AlexRussia has joined #ruby
sevenseacat has quit [Quit: Leaving.]
banisterone has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
livcd has joined #ruby
jimbauds has quit [Ping timeout: 258 seconds]
jhass has quit [Ping timeout: 240 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
mengu has joined #ruby
_justin has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
shemerey has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
mercerist has joined #ruby
tjbiddle has joined #ruby
ktun has joined #ruby
banisterone has joined #ruby
yubrew has joined #ruby
AndChat|102836 has quit [Read error: Connection reset by peer]
jhass|off has joined #ruby
jhass|off is now known as jhass
AndChat|102836 has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
nvrch has quit [Quit: nvrch]
yubrew has quit [Ping timeout: 240 seconds]
alem0lars has quit [Quit: alem0lars]
happytux_ has joined #ruby
happytux has quit [Ping timeout: 240 seconds]
banister has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
Bira has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
AndChat|102836 has quit [Read error: Connection reset by peer]
banisterone has joined #ruby
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
mbuf has joined #ruby
sski has quit [Ping timeout: 252 seconds]
troulouliou_dev has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
davedev2_ has joined #ruby
LekeFly_ has joined #ruby
Es0teric has joined #ruby
vise890 has quit [Quit: AtomicIRC: The nuclear option.]
davedev24 has quit [Ping timeout: 240 seconds]
LekeFly has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
subraminion has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
subraminion has joined #ruby
troulouliou_dev has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
AlexRussia has quit [Ping timeout: 258 seconds]
maximski has joined #ruby
JacobHayes has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
cjsarette has quit [Max SendQ exceeded]
OffTheRails has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
senayar has joined #ruby
ce_afk is now known as cescalante
phutchins has joined #ruby
hiall has joined #ruby
cjsarette has joined #ruby
OffTheRails has quit [Ping timeout: 265 seconds]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndChat|102836 has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
karupa is now known as zz_karupa
brandonjmckay has joined #ruby
sski has joined #ruby
cescalante is now known as ce_afk
shemerey has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dumdedum has quit [Quit: foo]
sensen has quit [Quit: leaving]
brandonjmckay has quit [Ping timeout: 258 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Abyss__ has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Abyss__ has joined #ruby
AlexRussia has joined #ruby
AndChat|102836 has quit [Read error: Connection reset by peer]
banisterone has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty_ has joined #ruby
bricker has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
jonno11 has joined #ruby
bluenemo has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
livcd has joined #ruby
blackmes1 has quit [Quit: WeeChat 0.4.3]
ndrei has quit [Ping timeout: 258 seconds]
kiri has quit [Ping timeout: 258 seconds]
jonno11 has quit [Ping timeout: 258 seconds]
kitak has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
Sol has joined #ruby
Sol is now known as Guest49558
Guest49558 has quit [Client Quit]
sambao21 has joined #ruby
livcd has quit [Ping timeout: 252 seconds]
grzywacz has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
Martxel has joined #ruby
RaptorJesus has quit [Ping timeout: 272 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
sandelius has joined #ruby
banister has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
mostlybadfly_ has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
dangerousdave has joined #ruby
andrewlio has quit [Quit: Leaving.]
askldjuio2 has joined #ruby
asdklji2 has joined #ruby
majoh has quit [Quit: bam bam bam bam]
asdklji2 is now known as Baked
Baked has quit [Client Quit]
askldjuio2 has quit [Client Quit]
senayar has joined #ruby
askldjuio2 has joined #ruby
askldjuio2 is now known as Loaft
zorak has joined #ruby
majoh has joined #ruby
mercerist has joined #ruby
sarandosklikizos has joined #ruby
senayar_ has joined #ruby
mostlybadfly_ is now known as mostlybadfly
DaniG2k has quit [Quit: leaving]
senayar has quit [Ping timeout: 240 seconds]
mbuf has quit [Quit: Leaving]
kies has quit [Ping timeout: 252 seconds]
LekeFly_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
tkuchiki_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
sski has quit [Remote host closed the connection]
DaniG2k has joined #ruby
sski has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
lw has joined #ruby
tkuchiki_ has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
Burgestrand has joined #ruby
einarj_ has quit [Remote host closed the connection]
kevinykchan has quit [Read error: Connection reset by peer]
sski has quit [Ping timeout: 258 seconds]
oo_ has joined #ruby
kevinykchan has joined #ruby
subraminion_ has joined #ruby
ce_afk is now known as cescalante
Bumptious has quit [Remote host closed the connection]
sarandosklikizos has quit []
Bumptious has joined #ruby
simono has joined #ruby
_justin has quit [Quit: _justin]
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
sooik has quit [Ping timeout: 252 seconds]
subraminion has quit [Read error: Connection reset by peer]
raspberryfan has quit []
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
ben2 has joined #ruby
sooik has joined #ruby
phoo1234567 has joined #ruby
cibs has quit [Quit: leaving]
LekeFly has joined #ruby
oo_ has quit [Remote host closed the connection]
AlexRussia has joined #ruby
oo_ has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
sambao21 has joined #ruby
sooik has quit [Ping timeout: 265 seconds]
cescalante is now known as ce_afk
jespada has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
bluenemo has quit [Ping timeout: 245 seconds]
_justin has joined #ruby
sk87 has joined #ruby
kpshek has joined #ruby
tvw has joined #ruby
ikaros has quit [Quit: Ex-Chat]
ikaros has joined #ruby
freerobby has joined #ruby
subraminion__ has joined #ruby
subraminion_ has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
subraminion___ has joined #ruby
sski has joined #ruby
contradictioned_ is now known as contradictioned
freerobby has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
m8 has joined #ruby
nvrch has joined #ruby
centrx has joined #ruby
<centrx> >> $ruby.is_a?(Object){|oriented| language}
<eval-in__> centrx => true (https://eval.in/152097)
subraminion__ has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 0.4.3]
garbagecollectio has joined #ruby
<garbagecollectio> can someone tell me how this works
<garbagecollectio> http://pastebin.com/EdUaF5R5
<garbagecollectio> its reversing a linked list in rails
<garbagecollectio> i don't get how the reversal is working
<garbagecollectio> err in ruby
aiguu has quit [Ping timeout: 240 seconds]
subraminion___ has quit [Remote host closed the connection]
livcd has joined #ruby
adasw has left #ruby ["WeeChat 0.3.7"]
<jhass> it sets a.n to head, head to a and a to a.n
subraminion___ has joined #ruby
<jhass> as long as a.n doesn't return nil
vt102 has joined #ruby
<garbagecollectio> first how do they get a.n though
<garbagecollectio> a.n = head
mark_locklear has joined #ruby
<garbagecollectio> also is head= even a true linked list
yubrew has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
<jhass> sure, a linked list is just a node pointing to another node pointing to another ....
lemonsparrow has joined #ruby
<jhass> I'm not sure what you mean with "how they get a.n"
<garbagecollectio> like how is the .n accessible to a
tkuchiki has joined #ruby
danshult_ has joined #ruby
<jhass> attr_accessor :i, :n defines four methods, i, i=, n and n=
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dangerousdave has quit [Ping timeout: 276 seconds]
<jhass> each just delegating to the respective instance variable (@i, @n)
VTLob has quit [Quit: VTLob]
livcd has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
markmarkmark has quit [Ping timeout: 276 seconds]
markmarkmark has joined #ruby
oo_ has joined #ruby
danshultz has quit [Ping timeout: 276 seconds]
Bira has joined #ruby
narendraj9_ has joined #ruby
narendraj9_ has quit [Client Quit]
vpretzel has joined #ruby
narendraj9_ has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
timonv has quit [Remote host closed the connection]
ndrei has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
timonv has joined #ruby
dangerousdave has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
narendraj9_ has quit [Client Quit]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narendraj9_ has joined #ruby
mjsmith2 has joined #ruby
oo_ has joined #ruby
mr_snowf1ake has joined #ruby
shredding has joined #ruby
JensOfSw_ has joined #ruby
ktun has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
Melpaws has joined #ruby
purdey has joined #ruby
narendraj9_ is now known as narendra
mjsmith2 has quit [Ping timeout: 240 seconds]
Melpaws has quit [Client Quit]
timonv has joined #ruby
JensOfSweden has quit [Ping timeout: 265 seconds]
JensOfSw_ has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
Melpaws has joined #ruby
Morkel has quit [Quit: Morkel]
rshetty_ has quit [Remote host closed the connection]
rshetty has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> ack
<shevy> what is $ruby ?
troulouliou_dev has quit [Remote host closed the connection]
<shevy> it's nil!
kiri has joined #ruby
alexju has quit [Remote host closed the connection]
workmad3 is now known as wm3|away
purdey has left #ruby ["Leaving"]
sooik has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Quit: tjbiddle]
tjbiddle has joined #ruby
sunya7a has joined #ruby
zB0hs has joined #ruby
kaspergrubbe has joined #ruby
jamto11 has joined #ruby
narendra has quit []
sk87 has joined #ruby
narendraj9_ has joined #ruby
paulfm has joined #ruby
JacobHayes has quit [Remote host closed the connection]
narendraj9_ has quit [Client Quit]
shemerey has joined #ruby
shemerey has quit [Max SendQ exceeded]
garndt has joined #ruby
<Bira> shevy: That's a global variable.
shemerey has joined #ruby
shemerey has quit [Max SendQ exceeded]
<Bira> Like instance variables, they're nil if you haven't defined them.
alexju has joined #ruby
shemerey has joined #ruby
julian-delphiki has joined #ruby
<Bira> They're available anywhere in your program, but using them isn't usually considered a good practice.
jamto11 has quit [Ping timeout: 240 seconds]
<Bira> Bugs related to global variables are very easy to generate and very hard to track down :).
Rahul_Roy has joined #ruby
narendraj9_ has joined #ruby
bean_ has quit [Ping timeout: 252 seconds]
meinside has quit [Quit: Connection closed for inactivity]
gregf has joined #ruby
chrisseaton has joined #ruby
ce_afk is now known as cescalante
oo_ has quit [Remote host closed the connection]
Dovid has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 264 seconds]
bluenemo has joined #ruby
<garbagecollectio> does anyone know what the complexity of this is
<garbagecollectio> http://pastebin.com/EdUaF5R5
<garbagecollectio> in terms of time and space
rshetty has joined #ruby
nemesit|znc has joined #ruby
<garbagecollectio> O(n)
<garbagecollectio> ?
lemonsparrow has quit [Quit: Page closed]
bluenemo has quit [Read error: Connection reset by peer]
banister has joined #ruby
freerobby has joined #ruby
rshetty has quit [Client Quit]
Guest93900 has quit [Remote host closed the connection]
cescalante is now known as ce_afk
upsell5 has joined #ruby
hiall has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
hiall has joined #ruby
frobrob has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
qwyeth has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
dangerousdave has joined #ruby
lw has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
aiguu has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has joined #ruby
rshetty has joined #ruby
mrmargolis has joined #ruby
mercerist has joined #ruby
livcd has joined #ruby
doodlehaus has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
aiguu has quit [Ping timeout: 240 seconds]
garbagecollectio has quit [Quit: garbagecollectio]
kevinykchan has quit [Quit: Computer has gone to sleep.]
noop has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
noop has joined #ruby
livcd has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
sailias has joined #ruby
rm___ has joined #ruby
rm___ is now known as Guest94908
troulouliou_dev has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
freerobby has joined #ruby
Maple__ has quit [Quit: bbl]
bluOxigen has quit [Ping timeout: 240 seconds]
mjsmith2 has joined #ruby
einarj has joined #ruby
Megtastique has joined #ruby
Maple__ has joined #ruby
bMalum___ has joined #ruby
mansi has joined #ruby
connor_goodwolf_ has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
Guest94908 has quit [Remote host closed the connection]
xaxisx has joined #ruby
plato has joined #ruby
<plato> good morning folks! i am setting a class instance variable before my initialize method; but the variable is nil inside an instance method - can I only access class instance variables through class methods? (e.g. def self.method)
<tobiasvl> class instance variable … do you mean an @var in a class, or an @@var?
<tobiasvl> plato: also helps to show us your code at http://gist.github.com
<plato> tobiasvl: @var in a class. pasting...
AlexRussia has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
<jhass> yes, you can only access them through (with class << self; attr_accessor :foo; end;) self.class.foo or self.class.instance_variable_get
xaxisx has left #ruby [#ruby]
<plato> error is in line 56 at https://gist.github.com/therealplato/2425e096e1eb5b49c534 robot.rb:56:in `walk': undefined method `push' for nil:NilClass (NoMethodError)
<jhass> you could just make them constants for example
shredding has joined #ruby
mansi has quit [Remote host closed the connection]
<plato> so, I want to have my single Robot instance walk a number of paths, keeping track of both the current state (instance bariables on lines 40-42) and global path history (@goodPaths, @badPaths)
<plato> what's a good strategy to keep track of both of these?
sooik has quit [Ping timeout: 252 seconds]
<jhass> as said, you could just make them constants
mansi has joined #ruby
<plato> isn't it kind of smelly to modify constants?
JasmeetQA has joined #ruby
connor_goodwolf_ has joined #ruby
<jhass> you don't modify the constant, you modify the contants value
Shidash has joined #ruby
omosoj has joined #ruby
xaxisx has joined #ruby
<jhass> the other thing would be @@class variables which are equally smelly
<jhass> or as said going though self.class.accessor all the time
wm3|away is now known as wm3|busy
<plato> would defining attr_accessor :goodPaths at the top of the class let me call self.goodPaths ?
shvelo has joined #ruby
<jhass> no, it would need to be class << self; attr_accessor :goodPaths; end; as I wrote before
AlexRussia has joined #ruby
subraminion___ has quit [Quit: Computer has gone to sleep.]
kevind has joined #ruby
<plato> jhass: thanks! could you explain where to put that and what it's doing?
yfeldblum has joined #ruby
<jhass> at the class level. It opens up the singleton class of the Class instance you're currently defining (self)
mansi has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
<jhass> then just defines the attr_accessors there
subraminion___ has joined #ruby
<plato> great. do I need to put @goodPaths = [] inside that block?
<benzrf> plato: why not @good_paths
<benzrf> camelcase is the inferior choice of java coders
<benzrf> D:
<benzrf> and... also haskell uses camelcase for some ungodly rason
<benzrf> :I
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
duggiefresh has joined #ruby
<plato> i'm a node.js coder :)
kevind has quit [Client Quit]
paulfm has quit []
yubrew has joined #ruby
<tobiasvl> hail satan
<lagweezle> <3 tobiasvl very nice hehe
<jhass> plato: no
<jhass> while(true) -> loop do, we leave off empty parens for method calls,
<jhass> a few style notes if you don't mind: we tend to leave of the return at the end of a method, it's implicit.
<jhass> @rows = Array.new(4) { Array.new(4, false) }; @rows[0][0] = true;
<jhass> puts calls #to_s for you, most people leave of the thens on if statements,
<jhass> we use snake_case for variable names, if(something == true) then -> if something,
<jhass> throw/catch is something different than the exception mechanism, use raise/rescue,
zz_jrhorn424 is now known as jrhorn424
<jhass> if !expr -> unless expr, "foo "+bar -> "foo #{bar}", @history[-1] -> @history.last
<benzrf> plato: js is a dumb cruddy language and u should feel bad
yfeldblum has quit [Ping timeout: 240 seconds]
Sigma00 has quit [*.net *.split]
pgmcgee has quit [*.net *.split]
joast has quit [*.net *.split]
sumark has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
xxi has quit [*.net *.split]
graft_ has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
saltsa has quit [*.net *.split]
Akuma has quit [*.net *.split]
mistergibson has quit [*.net *.split]
XenoWolf has quit [*.net *.split]
jaimef has quit [*.net *.split]
s_e has quit [*.net *.split]
jpierre03 has quit [*.net *.split]
GGMethos has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
mduk has quit [*.net *.split]
DanKnox has quit [*.net *.split]
mozzarella has quit [*.net *.split]
error404_ has quit [*.net *.split]
stylus has quit [*.net *.split]
FL1SK has quit [*.net *.split]
ocher has quit [*.net *.split]
sindork_ has quit [*.net *.split]
tskogber1 has quit [*.net *.split]
jericon has quit [*.net *.split]
TTilus has quit [*.net *.split]
chihhsin1wego has quit [*.net *.split]
JoeJulian has quit [*.net *.split]
philtr_ has quit [*.net *.split]
kloeri has quit [*.net *.split]
oddmunds has quit [*.net *.split]
preller has quit [*.net *.split]
machuga has quit [*.net *.split]
gogiel_ has quit [*.net *.split]
jcarouth has quit [*.net *.split]
chihhsin_wego has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
ocher has joined #ruby
jericon has joined #ruby
tskogberg has joined #ruby
philtr has joined #ruby
Sigma00 has joined #ruby
saltsa has joined #ruby
XenoWolf has joined #ruby
ixx has joined #ruby
TTilus has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
gogiel has joined #ruby
cjk101010 has joined #ruby
DanKnox has joined #ruby
s_e has joined #ruby
sn0wb1rd has joined #ruby
JoeJulian has joined #ruby
bMalum___ has quit [Read error: Connection reset by peer]
sumark has joined #ruby
jeregrine has joined #ruby
FL1SK has joined #ruby
mduk has joined #ruby
mistergibson has joined #ruby
Akuma has joined #ruby
<tobiasvl> poor plato
error404 has joined #ruby
Soulcutter has joined #ruby
kloeri has joined #ruby
GGMethos has joined #ruby
pgmcgee has joined #ruby
ixx is now known as Guest13053
YourBestFriend has joined #ruby
oddmunds has joined #ruby
sindork has joined #ruby
_justin has quit [Quit: _justin]
<plato> i'm still getting the noMethodError regardless of whether I put the @goodPaths = [] declaration inside or outside of class << self
bMalum___ has joined #ruby
machuga has joined #ruby
jaimef has joined #ruby
jpierre03 has joined #ruby
freerobby has quit [Quit: Leaving.]
grzywacz has joined #ruby
<plato> it is at least trying to call it on a Robot instance instead of on nil now
tjbiddle has quit [Quit: tjbiddle]
duggiefresh has quit [Remote host closed the connection]
paulfm has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
MrWharfsnort has joined #ruby
<plato> @rows = Array.new(4) { Array.new(4, false) }; @rows[0][0] = true; <<<< so you can pass a block to the array.new and whatever the block yields is the thing to populate the array with?
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sooik has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
<apeiros> plato: correct
<txdv> How do I retrieve the information of a query like this: Table.select('COUNT(*)/SUM(column)') ?
<plato> apeiros: pretty sexy :)
<apeiros> txdv: Errno::TooLittleContext
Ankhers has joined #ruby
<apeiros> plato: yupp :)
<apeiros> plato: important to remember that you should use block-form for mutable values
r_s_h has left #ruby [#ruby]
<apeiros> >> ary = Array.new(4, "hi"); ary[0].upcase!; ary
<eval-in__> apeiros => ["HI", "HI", "HI", "HI"] (https://eval.in/152159)
<apeiros> vs:
<apeiros> >> ary = Array.new(4) { "hi" }; ary[0].upcase!; ary
<eval-in__> apeiros => ["HI", "hi", "hi", "hi"] (https://eval.in/152160)
chrisseaton has quit []
jeregrine has quit [Remote host closed the connection]
<plato> o.O
ce_afk is now known as cescalante
<apeiros> the first has *the same* string object in every slot of the array
jeregrine has joined #ruby
<apeiros> the latter has a different string object
<plato> thanks for the caveat ha
<txdv> All I get is a Table object and i cant access the returned value
<apeiros> txdv: we have *absolutely no idea* what you're talking about
<apeiros> Table is not ruby core. you must provide context.
<tobiasvl> txdv: paste code in http://gist.github.com
<plato> im a ruby noob but maybe look through Table.methods?
<txdv> I'm using ACtiveRecord
<txdv> yeah i thought this would be a given with table and coulmn, sorry
kevind has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
<banister> apeiros ping
<apeiros> txdv: dude, AR is just one way to query databases. and you didn't even tell that you were talking about DBs :-p
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<plato> Ah I think I see my problem, I am calling self.goodPaths.push(@Path) from within an instance method, so self is referring to the instance not the class, so the class method .goodPaths defined by the attr_accessor is out of scope
MissionCritical has joined #ruby
Melpaws has quit [Quit: Leaving.]
maximski has quit []
<plato> self.class.goodPaths works \m/
zB0hs has joined #ruby
<txdv> im not dude, im txdv
<apeiros> txdv: Table.select('COUNT(*)/SUM(column) mysum').all.map { |table| table.mysum } # I think that worked, might be it no longer does
yekta has joined #ruby
bMalum___ has quit [Quit: Computer has gone to sleep.]
<txdv> Table.select('COUNT(*)/SUM(column) as count')[0]['count']
bMalum___ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
replay_ has joined #ruby
nateberkopec has joined #ruby
vekfautles has quit [Ping timeout: 240 seconds]
ampharmex has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<ampharmex> <ampharmex> here is a challenge I devised: given 7 9 8 7 6 5 4 3 2 5 6 7 3 4 2 4 5 8 7 = 476 Goal: find out what mathematical operators (minus, multiply, divide, add) satisfy that solution (476)
<ampharmex> <ampharmex> Order of operation is variable.
<ampharmex> <ampharmex> 4^18 * 18! is a non optimal approach.
<ampharmex> <ampharmex> (7 + (9 + (8 + (7 + (6 + (5 + (4 + (3 + (2 + (5 + (6 + (7 + (3 - (4 + (2 * (4 * (5 - (8 * 7)))))))))))))))))) = 476
<ampharmex> <ampharmex> Some example output:
<ampharmex> <ampharmex> A dynamic programming approach may suffice.
<ampharmex> <ampharmex> e.g dp[i][j][k] = Can I make the number k using the numbers a[i ... j].
Macaveli has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
replay has quit [Ping timeout: 258 seconds]
kevind has quit [Quit: kevind]
adamnbowen has joined #ruby
bMalum___ has quit [Client Quit]
wm3|busy is now known as workmad3
bMalum___ has joined #ruby
lmickh has joined #ruby
<canton7-mac> ampharmex, *relatively* easy to do with reverse polish notation
<canton7-mac> (as you don't need to muck about with brackets being matching pairs)
<ampharmex> canton7, If I want to make X with the numbers A[i ... j], then I find a position v such that A[i ... v - 1] can make Y, A[v ... j] can make Y', and either Y + Y', Y * Y', Y - Y', or Y / Y' is equal to X.
pu22l3r has joined #ruby
<jhass> plato: http://paste.mrzyx.de/pce476e94/ don't make ruby look like java pls ;P
<ampharmex> That is how you compute A[i][j][X].
<ampharmex> If you want to find some sequence that does, then in A[i][j][X] you store the position at which you split (v) and the operator you chose.
<ampharmex> _Every_ expression that you can form using the numbers in A[i ... j] is of the form (Y) op (Y'), where Y is an expression obtained from A[i ... v - 1], Y' is an expression obtained from A[v ... j], and op is either +, -, *, or /.
echevemaster has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
<ampharmex> If I'm trying to find several, I'll store the several v, but that (since the number of answers is already exponential) will be exponential in space and time. :)
aniM has joined #ruby
<ampharmex> The code is the usual dynamic programming solution, with a range of [-500, 1000]
skysploit has joined #ruby
freerobby has joined #ruby
Dude007 has joined #ruby
timonv has quit [Remote host closed the connection]
<canton7-mac> ampharmex, I'm trying to work out why you're telling me this
<ampharmex> canton7, It is the dynamic programming approach.
<canton7-mac> and?
<ampharmex> canton7, How were you going about it? Naive bruteforce?
freerobby has quit [Client Quit]
<canton7-mac> I've never done it
<canton7-mac> I don't care particularly
pen has quit [Ping timeout: 245 seconds]
<ampharmex> <canton7-mac> ampharmex, *relatively* easy to do with reverse polish notation
<ampharmex> <canton7-mac> (as you don't need to muck about with brackets being matching pairs)
oo_ has quit [Remote host closed the connection]
<canton7-mac> figuring out an easy-to-program solution and actually being bothered to write it are two separate things
jamto11 has joined #ruby
aganov has quit [Remote host closed the connection]
bMalum___ has quit [Ping timeout: 276 seconds]
sgu has joined #ruby
sinkensabe has joined #ruby
<canton7-mac> also where did your notation A[i][j][X] come from?
<canton7-mac> "here's a challenge I devised..... here's my answer!" kinda ruins the challenge ;) also this is the classic countdown problem, no?
marr has quit [Ping timeout: 240 seconds]
brandonjmckay has joined #ruby
baweaver has joined #ruby
rizzatti has joined #ruby
ce_afk is now known as cescalante
anaeem1 has joined #ruby
<canton7-mac> actually, the countdown problem looks a bit harder? since you need to find the closest result - it isn't necessarily exact
maximski has joined #ruby
timonv_ has joined #ruby
ben2 has quit [Ping timeout: 245 seconds]
dik_dak has joined #ruby
maestrojed has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
s2013 has joined #ruby
livcd has joined #ruby
MrWharfsnort has quit [Ping timeout: 255 seconds]
<ampharmex> canton7-mac, It is a classic dynamic programming problem.
momomomomo has joined #ruby
<ampharmex> (can also be solved with naive bruteforce - less interesting)
cjsarette has quit [Max SendQ exceeded]
<canton7-mac> so it isn't a challenge you created at all? ;)
<ampharmex> canton7-mac, I made it up.
<ampharmex> But how you solve it.
joast has joined #ruby
rm___ has joined #ruby
<ampharmex> <ampharmex> The code is the usual dynamic programming solution, with a range of [-500, 1000]
<canton7-mac> so you made up a classic dynamic programming problem?
<ampharmex> Yes.
rm___ is now known as Guest27723
<canton7-mac> I'm mainly just bemused that you stated the problem, then immediately starting giving to detailed solution to no-one in particular
<ampharmex> I am sure there would be variants/similar problems.
<canton7-mac> *giving a
Guest27723 has quit [Remote host closed the connection]
<ampharmex> It's not fully detailed.
<ampharmex> Just the process.
<ampharmex> Basically explaining dynamic programming.
<canton7-mac> still, my bemusement still stands :P
<canton7-mac> anyway, back to work!
<canton7-mac> enjoy your dynamic programming
rkazak_ has joined #ruby
livcd has quit [Ping timeout: 245 seconds]
stef_204 has joined #ruby
duggiefresh has joined #ruby
sambao21 has joined #ruby
rkazak_ has left #ruby [#ruby]
tobago has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ndrei has quit [Ping timeout: 258 seconds]
workmad3 is now known as wm3|busy
sooik has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
tagrudev has quit [Remote host closed the connection]
banister is now known as banisterfiend
heftig has quit [Quit: Quitting]
ringaring has joined #ruby
mary5030 has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
Loaft has quit [Remote host closed the connection]
meatherly has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<banisterfiend> does update_attributes() save everything? even things that were changed before the call to update_attributes? i.e: bar.foo = 5; bar.update_attributes(hello: 5) will bar.foo = 5 be persisted ?
danijoo has joined #ruby
JasmeetQA has quit [Ping timeout: 255 seconds]
mengu has quit []
michaelchum has joined #ruby
sooik has joined #ruby
xaxisx has quit [Quit: xaxisx]
<banisterfiend> nm
cjsarette has joined #ruby
treehug88 has joined #ruby
s2013 has quit [Remote host closed the connection]
brandonjmckay has joined #ruby
upsell5 has quit [Quit: upsell5]
ndrei has joined #ruby
lw has quit [Quit: s]
mrmargolis has quit []
subraminion___ has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
mansi has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
mansi has joined #ruby
xaxisx has joined #ruby
pu22l3r has quit [Remote host closed the connection]
wm3|busy has quit [Ping timeout: 276 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
geggam has joined #ruby
_pingu has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
eka has joined #ruby
yfeldblum has joined #ruby
freezey has joined #ruby
sk87 has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
dstynchula has joined #ruby
dstynchula has quit [Remote host closed the connection]
sambao21 has joined #ruby
ringaring has quit [Quit: Leaving]
sambao21 has quit [Client Quit]
ffranz has joined #ruby
troulouliou_dev has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
xaxisx has quit [Quit: xaxisx]
xaxisx has joined #ruby
Zenigor has joined #ruby
s2013 has joined #ruby
<_pingu> http://pastebin.com/CDLfSt06 cucumber-chef does not work, after install with bundle. what can i do?
kevinykchan has joined #ruby
mgomezch has joined #ruby
eka has quit [Ping timeout: 255 seconds]
ffranz has quit [Client Quit]
sooik has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
mikepack has joined #ruby
apeiros has quit [Remote host closed the connection]
Sirupsen has joined #ruby
apeiros has joined #ruby
freezey has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
ffranz has joined #ruby
xaxisx has quit [Quit: xaxisx]
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
zcreative has joined #ruby
eka has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xaxisx has joined #ruby
cpruitt has joined #ruby
setra has quit [Ping timeout: 255 seconds]
kitak has joined #ruby
setra has joined #ruby
<_pingu> ztk is installed in version 2.1.0 and 1.19.2
kitak_ has joined #ruby
freezey has joined #ruby
bal has quit [Quit: bal]
<_pingu> no one?
sinkensabe has joined #ruby
senayar_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
ascarter_ has joined #ruby
ascarter_ has quit [Client Quit]
aiguu has joined #ruby
ascarter_ has joined #ruby
ascarter_ has quit [Max SendQ exceeded]
kitak has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
WillAmes has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
sinkensabe has quit [Remote host closed the connection]
brandonjmckay has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
shvelo has quit [Ping timeout: 252 seconds]
shtirlic has quit [Ping timeout: 276 seconds]
kevinykchan has joined #ruby
aiguu has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
sooik has joined #ruby
codeurge has joined #ruby
larissa has joined #ruby
shtirlic has joined #ruby
_pingu has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0/20140428193838]]
jai has joined #ruby
tacos1de has quit [Remote host closed the connection]
Ankhers has quit [Write error: Connection reset by peer]
mark_locklear has quit [Ping timeout: 240 seconds]
freezey has quit [Remote host closed the connection]
tacos1de has joined #ruby
sooik has quit [Ping timeout: 276 seconds]
dsdeiz has quit [Ping timeout: 258 seconds]
Ankhers has joined #ruby
danman has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
ce_afk is now known as cescalante
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
wm3|busy has joined #ruby
DaniG2k has quit [Quit: Lost terminal]
xaxisx has quit [Quit: xaxisx]
codeurge has quit [Quit: Quit.]
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
livcd has joined #ruby
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
nari has joined #ruby
chrisseaton has joined #ruby
cpruitt has quit [Quit: cpruitt]
mikepack has quit [Remote host closed the connection]
<lagweezle> Cucumber Chef? Interesting.
zybi1 has joined #ruby
mikepack has joined #ruby
endash has joined #ruby
aiguu has joined #ruby
livcd has quit [Ping timeout: 258 seconds]
codeurge has joined #ruby
devdazed has quit [Quit: Bye]
lw has joined #ruby
cescalante is now known as ce_afk
mikepack has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
VTLob has joined #ruby
toastynerd has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
brandonjmckay has joined #ruby
Bumptious has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noop has quit [Ping timeout: 240 seconds]
brandonjmckay has quit [Client Quit]
ce_afk is now known as cescalante
ktun has joined #ruby
andrewjanssen has joined #ruby
meatherly has quit [Remote host closed the connection]
paulfm has quit []
ktun has quit [Client Quit]
Morkel has joined #ruby
ktun has joined #ruby
ktun has quit [Client Quit]
ktun has joined #ruby
toastynerd has quit [Ping timeout: 258 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
nvrch has quit [Quit: nvrch]
lw has quit [Quit: b]
cpruitt has joined #ruby
freerobby has quit [Quit: Leaving.]
narendraj9_ has quit [Quit: Connection closed for inactivity]
timonv_ has quit [Remote host closed the connection]
paulfm has joined #ruby
ValicekB_ has joined #ruby
Jnco has joined #ruby
freerobby has joined #ruby
<Takumo> Hi all, anyone know much about working with rugged? I want to have a rake task with bumps the version number, creates a commit and tags it
ktun has quit [Ping timeout: 245 seconds]
ValicekB_ is now known as ValicekB
rm___ has joined #ruby
upsell5 has joined #ruby
rm___ is now known as Guest410
sambao21 has quit [Quit: Computer has gone to sleep.]
upsell5 has quit [Remote host closed the connection]
<havenwood> Takumo: The create a commit and tag it seems easier than bumping the version number.
<havenwood> Takumo: Presuming you want the version bump to be flexible.
upsell5 has joined #ruby
<havenwood> Takumo: Reminds me a bit of the gem-release gem's version bump: https://github.com/svenfuchs/gem-release/blob/master/lib/gem_release/version_file.rb
freezey has joined #ruby
<Takumo> havenwood: I've got the version bump working (it just does PATCH level bumps)
<Takumo> it puts the version in a package.yml file
<havenwood> Takumo: aha, nice - that is simpler
<Takumo> now I want to have rake commit the package.yml file, and create a tag on that commit
binaryhat has joined #ruby
felixjet has joined #ruby
<Takumo> the docs are a little unclear
<Takumo> I'm guessing I have to create an index, add the file to it, create a tree from that and a commit from it?
yami has joined #ruby
<yami> Hi
<havenwood> Takumo: Are you creating the repo in the first place with Rugged or just adding a file and committing to an exisiting repo with Rugged?
<havenwood> yami: g'morning
duggiefresh has quit [Remote host closed the connection]
aniM has quit [Ping timeout: 240 seconds]
geggam has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Burgestrand]
<Takumo> havenwood: the latter, the repo exists, I just want to create a new commit, where the current head is the parent
magicien has quit [Quit: leaving]
<Takumo> nice and simple :)
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yami_ has joined #ruby
<yami_> havenwood: Not exactly the morning here but thanks
kate_r has joined #ruby
yami has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Quit: Leaving]
<Hanmac1> havenwood: current or last DoctorWho Episode?
Hanmac1 is now known as Hanmac
benzrf|offline is now known as benzrf
geggam has joined #ruby
<yami_> Say, I was looking to create a new Ruby object into c++ code. I found this function online : rb_class_new_instance(). But it isn't defined in my ruby lib. Did it change?
_tpavel has joined #ruby
Dude007 has quit [Remote host closed the connection]
<havenwood> Hanmac: half way through s4e15, this weekend i'll prefail
<havenwood> prevail* (though prefail may be more accurate)
<_tpavel> URGENT: I'm in a competition and I need help using a gemset in RVM
<_tpavel> I'm trying to use rmagick
<havenwood> _tpavel: ask in #rvm too
<Hanmac> havenwood: s4e15 that was "End of Time" right?
<havenwood> Hanmac: two before that
<havenwood> Hanmac: The Next Doctor
<Hanmac> ahh ok
<_tpavel> and when I put require 'rubygems' and require 'rmagick' it says it can't find rmagick. It's installed in the current gemset
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
sunya7a has quit [Ping timeout: 240 seconds]
<Hanmac> havenwood: something to say about "Davros Reality bomb"? like "a little bit overpowerd"? ;P
Shidash has quit [Ping timeout: 265 seconds]
<_tpavel> I'm really on the clock with this one
<havenwood> _tpavel: What do you get for?: ruby -v
<havenwood> _tpavel: gem -v
<havenwood> _tpavel: rvm current
kitak_ has quit [Read error: Connection reset by peer]
<Hanmac> _tpavel: and "gem env"
Diranged1 has joined #ruby
<_tpavel> ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
<havenwood> _tpavel: Gist gem env
<_tpavel> 2.2.2
<_tpavel> ruby-2.1.1@ccc
<Diranged1> Whats the best method in ruby for caching objects out to disk? Historically we've used the FileCache gem, but that hasnt been touched in a long time and it has some issues..
Diranged1 is now known as Diranged
terrell_t has joined #ruby
binaryhat has quit [Quit: Leaving]
<_tpavel> and I'm using it like this: https://gist.github.com/tudorpavel/2ddd6db0d1bce4e134a9
<_tpavel> with running "ruby blabla.rb"
<havenwood> _tpavel: no need to `require 'rubygems'` with 1.9+
binaryhat has joined #ruby
<havenwood> _tpavel: Check where rmagick is installed?: gem list rmagick -d
<havenwood> _tpavel: lets switch to #rvm channel
<baweaver> *sigh* you do realize that RMagick requires ImageMagick right?
<havenwood> _tpavel: maintainer of RVM is trying to assist you there
<baweaver> which needs a binary install
<baweaver> they're horrible about DOC'ing that one
hgl has quit [Ping timeout: 252 seconds]
<havenwood> _tpavel: what OS/distro?
<_tpavel> Ubuntu 14.04
<havenwood> baweaver: aha, good point...
<baweaver> sudo apt-get install imagemagick I think
<baweaver> just a sec
toastynerd has joined #ruby
<baweaver> finding it again
sski has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 276 seconds]
<baweaver> bingo
<baweaver> yep
<baweaver> that gem gave me more headaches....
terrellt has joined #ruby
sski has joined #ruby
RandyT has quit [Ping timeout: 265 seconds]
lethjakman has joined #ruby
timonv has joined #ruby
terrell_t has quit [Ping timeout: 276 seconds]
<Takumo> anyway, anyone here a rugged expert? :)
mercerist has quit [Quit: Computer has gone to sleep.]
rbennacer has joined #ruby
<rbennacer> hey guys
<baweaver> depends on what's meant by rugged
<Takumo> baweaver: the libgit2 gem
Solnse has joined #ruby
<Takumo> Trying to do something quite simple, create a new commit which is a child of HEAD and tag it
<Takumo> which commits a specific file
RandyT has joined #ruby
<rbennacer> i am tryign to read an srt file to extract information and i am getting this!! http://pastebin.com/WBXFbKEG
<rbennacer> how can i convert this to someting i can use regex on?
<havenwood> Takumo: index = Rugged::Index.new(path); index.add('/path/to/package.yml'); (the tag and commit, however one does that..)
freezey has quit [Remote host closed the connection]
rippa has joined #ruby
<baweaver> add returns self doesn't it?
<baweaver> (* it should if it doesn't...)
mikecmpbll has quit [Quit: ciao.]
meatherly has joined #ruby
<baweaver> Rugged::Index.new(path).add('path')
<Takumo> havenwood: Index.new(repo_path) ? Not repo.index?
<baweaver> can't say I've ever used it though
<baweaver> might have to tweak with it later for amusement though
<havenwood> Takumo: i dunno, conference call be back in a bit
sski has quit [Ping timeout: 252 seconds]
_tpavel has quit [Quit: Leaving]
anaeem1 has quit [Ping timeout: 276 seconds]
shredding has quit [Quit: shredding]
ValicekB has quit [Ping timeout: 255 seconds]
<Takumo> how odd, "Rugged::OSError: invalid file stat for <repo_path>/.git/"
BWStearns has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
lw has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
pietr0 has joined #ruby
dblessing has joined #ruby
jxf has joined #ruby
Cache_Money has joined #ruby
anaeem1_ has joined #ruby
jhulten has joined #ruby
mven has joined #ruby
Oxddf has joined #ruby
skysploit has quit [Remote host closed the connection]
Cache_Money has quit [Client Quit]
<rbennacer> any ideas guys?
Oxddf has quit [Client Quit]
timonv_ has joined #ruby
grzywacz has quit [Quit: :wq]
mansi has quit [Ping timeout: 258 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
timonv has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> rbennacer: each_byte.map(&:chr).each_slice(2).map(&:last).join
<havenwood> rbennacer: => "8 --> 00:29:55,084\r\nPistorius says he believes that\r\n\r\n762\r\n00:29:55,218 --> 00:29:57,153\r\nhe was shotting an intruder.\r\n\r\n\x00"
<rbennacer> what deos it do exactly
<rbennacer> ?
<havenwood> rbennacer: i'd imagine there's a nicer way... :O
mansi has joined #ruby
sinkensabe has joined #ruby
<havenwood> rbennacer: i'm supposed to be on a call, sec and i'll take a better look!
thumpba has quit [Read error: Connection reset by peer]
<havenwood> if nobody beats me toit
<rbennacer> oh nice :)
<rbennacer> i am standing by
<Hanmac> rbennacer: are you sure you read the file with the right encoding?
<rbennacer> mmm
<rbennacer> what do you mean
<rbennacer> i am reading it as a text file
mansi has quit [Read error: Connection reset by peer]
mercerist has joined #ruby
mansi has joined #ruby
thumpba has joined #ruby
<Hanmac> rbennacer: you need to open the file with :encoding => "UTF-16BE"
<rbennacer> mmmm
Soda has joined #ruby
<rbennacer> something like this? File.read(path,:encoding=>"UTF-16BE")
<rbennacer> ?
JacobHayes has joined #ruby
Jrz has joined #ruby
<Hanmac> ep
Rahul_Roy has quit [Quit: Connection closed for inactivity]
aiguu has quit [Ping timeout: 240 seconds]
phinfonet has joined #ruby
maximski has quit []
thumpba_ has joined #ruby
sunya7a has joined #ruby
marr has joined #ruby
mansi has quit [Remote host closed the connection]
maletor has joined #ruby
dsdeiz has joined #ruby
mansi has joined #ruby
anarang has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mansi_ has joined #ruby
livcd has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
zigomir has quit [Remote host closed the connection]
<havenwood> rbennacer: get it sorted?
sunya7a has quit [Ping timeout: 245 seconds]
JensOfSweden has joined #ruby
<yami_> Does somebody know how to do a 'MyClass.new' in C++ with the ruby bindings?
mansi has quit [Ping timeout: 240 seconds]
Dysruption has joined #ruby
soulisson has joined #ruby
cpruitt has quit [Quit: cpruitt]
<havenwood> rbennacer: Hanmac's realization of the actual encoding is indeed nicer than byte munging. :)
<rbennacer> hehe
<havenwood> rbennacer: force_encoding('UTF-16BE') #=> "8 --> 00:29:55,084\r\nPistorius says he believes that\r\n\r\n762\r\n00:29:55,218 --> 00:29:57,153\r\nhe was shotting an intruder.\r\n\r\n\x00"
livcd has quit [Ping timeout: 240 seconds]
<rbennacer> nice
<havenwood> shotted >.>
<rbennacer> i am gonna try it out
<soulisson> Hi, i would like to use the Date::Delta class, i tried: require 'date/delta', however all i get is 'cannot load such file -- date/delta', any idea how to solve this problem ?
Karpuragauram has joined #ruby
<Hanmac> yami_: rb_class_new_instance ?
Karpuragauram has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<Hanmac> soulisson: Date::Delta only exist(ed) in ruby 1.9.2 not newer, not older it seems
<havenwood> This class is deprecated or moved on the latest stable version.
<yami_> havenwood: Oh yeah right thanks!
<soulisson> Hanmac, thanks, is there something similar i can use for dates comparisons ?
yekta has quit [Quit: yekta]
sski has joined #ruby
<havenwood> Hanmac: I stole another of your "thanks", muahahaha!
<Hanmac> xD
<phoo1234567> Hi All, I have a really crappy CSV file with no control over its creation that I'm trying to include multiline columns in.
<phoo1234567> Are there any tricks I can use?
<phoo1234567> My google-fu seems weak today.
<csmrfx> so, did you use a gem?
lethjakman has quit [Ping timeout: 265 seconds]
<phoo1234567> I've tried CSV and FasterCSV.
timonv_ has quit [Remote host closed the connection]
Vivekananda has quit [Remote host closed the connection]
<phoo1234567> I keep getting malformed CSV errors.
<rbennacer> havenwood, i still cant split it
<phoo1234567> But I can't seem to find a regex to match all of the corner cases.
<csmrfx> phoo1234567: from your mom?
nopolitica has quit [Remote host closed the connection]
<csmrfx> or where?
<havenwood> rbennacer: whatcha trying to match?
<rbennacer> srt_cleaner.rb:10:in `split': incompatible encoding regexp match (US-ASCII regexp with UTF-16BE string) (Encoding::CompatibilityError)
<rbennacer> file_contents = file_contents.split(/\n\n\d+\n/)
<rbennacer> so basically each part of the subtitles
einarj has quit [Remote host closed the connection]
tcstar has joined #ruby
Vivekananda has joined #ruby
zcreative has joined #ruby
mmoretti has joined #ruby
<csmrfx> phoo1234567: I'm still confused by your problem description
<phoo1234567> Oh, sorry.
mmoretti has quit [Remote host closed the connection]
<csmrfx> you say you get errors from core CSV lib, but used several CSV gems
<phoo1234567> I think I'll just have to parse the CSV file prior acutually using CSV to parse it.
sski has quit [Ping timeout: 252 seconds]
<csmrfx> that sounds crazy too
<phoo1234567> yes, require 'csv' and can't figure out how to use a regex as the row_sep.
canton7-mac has quit [Remote host closed the connection]
tvw has quit []
Dysruption has quit [Quit: Dysruption]
<Hanmac> rbennacer: did you try my File.read(path,:encoding=>"UTF-16BE") or his force_encoding('UTF-16BE') ?
<phoo1234567> Oh. Yes, I suppose it does...
<havenwood> rbennacer: do Hanmac's version, get the correct encoding right off!
<phoo1234567> I will pre-massage the file prior to using the CSV lib on it.
<phoo1234567> It will be very fragile.
<rbennacer> i am reading then enforcing
<phoo1234567> Thanks, csmrfx.
noop has joined #ruby
<havenwood> rbennacer: if you just read it in correctly, does it look right?
<phoo1234567> I was hoping there was a link describing multiline matching.
<havenwood> rbennacer: split /\r\n\r\n\d+\r\n/ #=> ["8 --> 00:29:55,084\r\nPistorius says he believes that", "00:29:55,218 --> 00:29:57,153\r\nhe was shotting an intruder.\r\n\r\n\u0000"]
<csmrfx> phoo1234567: are you certain that :row_sep can be something other than a string?
<phoo1234567> I can't seem to find one.
<csmrfx> did you check/search SO
Diranged has quit [Ping timeout: 245 seconds]
<csmrfx> anyway
<havenwood> rbennacer: don't force_encoding, use what Hanmac showed
<phoo1234567> Umm. I _thought_ it could contain newlines.
<havenwood> rbennacer: i just meant to show the encoding is indeed what Hanmac said
<phoo1234567> SO?
deric_skibotn has joined #ruby
<csmrfx> phoo1234567: again, you mentioned "regex", and now you say "newlines"
<phoo1234567> Yes, "\n".
<havenwood> rbennacer: though 1.9 style hashes! :P File.read(path, encoding: "UTF-16BE")
<phoo1234567> Am I confused somehow?
<csmrfx> phoo1234567: your problem description is impossible to solve. Generally, it is best to post a link to the actual error message, input and code
<rbennacer> i tried i still can't split it
JensOfSweden has quit [Quit: Leaving...]
Diranged has joined #ruby
<phoo1234567> csmrfx, Thanks. Just looking for a google link on common row_sep handling.
<phoo1234567> Thanks, though.
<csmrfx> .g stackoverflow parsing csv
<havenwood> rbennacer: ohh encoding... using my byte splitting method it works >.> hem, why does encoding not work for you...
carraroj has joined #ruby
<rbennacer> i will try byte splitting
<havenwood> rbennacer: maybe it wants the #split arg to be same encoding
michaeldeol has joined #ruby
MindfulMonk has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
lethjakman has joined #ruby
jimbauds has joined #ruby
<rbennacer> mmmm maybe
<rbennacer> let me try
yubrew has quit []
yubrew has joined #ruby
saarinen has joined #ruby
mikepack has joined #ruby
<phoo1234567> Yes, I saw that.
brandonjmckay has joined #ruby
freezey has joined #ruby
<phoo1234567> Unfortunately, some of my "columns" have newlines contained in them.
yokel has quit [Ping timeout: 240 seconds]
<csmrfx> and thus what happens? error?
<phoo1234567> I'm just trying to find the right regexp to "create" a new row_sep.
<phoo1234567> I'll find it soon engouh.
<phoo1234567> It will be very fragile, though.
<Hanmac> rbennacer try this: File.read(path,:encoding=>"UTF-16BE:UTF-8")
<plato> thanks jhass for the style pass! i don't like dropping the parens on function declarations though, that seems like i'm losing the contextual information of what's what
<phoo1234567> Oooh.. Mabe .flatten.
<rbennacer> Hanmac, tryign ti
<jhass> plato: sure, that's preference. Just wanted to show how far you can go
<phoo1234567> Nah.
<csmrfx> phoo1234567: I think, trying to "create" a new row_sep might be wrong
ndrei has quit [Ping timeout: 245 seconds]
<csmrfx> in the ydiw way
RaptorJesus has joined #ruby
aiguu has joined #ruby
<phoo1234567> Something's not right, for sure.
<phoo1234567> I maybe need a break.
<csmrfx> yes, and until you break it down to logical pieces you will never be able to solve this
sinkensabe has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
<phoo1234567> Thanks for listening, csmrfx.
<csmrfx> you have malformed CSV? you're probably going to fix it by hand, or try loading it in office app and saving again
<phoo1234567> I have no control over the creation of the source.
<csmrfx> so, you are certain it is malformed?
<certainty> no
nobitanobi has joined #ruby
<phoo1234567> I'm just trying to come up with a magic regex to match the _real_ boundaries.
<phoo1234567> Clearly not _sanctioned_ CSV.
mattmcclure has joined #ruby
<csmrfx> why, dont you have 3 ready libraries to choose from?
<phoo1234567> newlines and Windows contained in one of the fields.
<phoo1234567> I just know of CSV and FasterCSV.
<phoo1234567> What's the third?
<certainty> EvenFasterCSV
sinkensabe has quit [Read error: Connection reset by peer]
<phoo1234567> Oh, let me google.
<nobitanobi> How can I define private methods in a module, so they can just be called from within the module? https://gist.github.com/novito/f91f14d8dd4a1af24a40
<csmrfx> "Windows contained in one the fields", wow thats huge
ktun has joined #ruby
<phoo1234567> (Windows newlines)
ktun has quit [Read error: Connection reset by peer]
<csmrfx> ok, sounds like you need 10 minute nap
<phoo1234567> Thanks.,
<Diranged> Can anyone recommend a module for temporarily caching data locally on a host in ruby?
<csmrfx> its good for you, like a brief swim for the brain
<csmrfx> Diranged: marshall?
jeregrine has left #ruby [#ruby]
<Diranged> csmrfx: reading...
<csmrfx> let me correct, Marshal
<Hanmac> nobitanobi: class << self; private; def private_met; end; end
eka has quit [Read error: Connection reset by peer]
<Diranged> hmm ok marshal looks similar to pythons pickle modules..
eka has joined #ruby
<csmrfx> technically it just serializes objects, you could then use the filesystem to store as text files
<nobitanobi> Hanmac: great! Why is it needed to do the class << self ?
<csmrfx> then again, json and yml both might work fine with more temp data caching
<Hanmac> nobitanobi: it seems that private only works on instance methods
<nobitanobi> interesting.
<nobitanobi> thank you!
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> Diranged: Might be worth looking at PStore if you're going the Marshal route
brandonjmckay has quit [Quit: Leaving.]
i_s has joined #ruby
zigomir has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<havenwood> Diranged: Or the equivalent for YAML, YAML::Store
<Diranged> ok looking
<Diranged> thanks
<havenwood> oops
jackneill has joined #ruby
sdwrage has joined #ruby
MindfulMonk has joined #ruby
ascarter has joined #ruby
<havenwood> Diranged: Or live a little and persist em to redis! :P https://github.com/havenwood/bindi#readme
sdwrage has quit [Client Quit]
<havenwood> </shameless-self-promotion>
dblessing has quit [Quit: dblessing]
ndrei has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Remote host closed the connection]
jwang has quit [Quit: Leaving]
<Diranged> :P
mercerist has quit [Quit: Computer has gone to sleep.]
yokel has joined #ruby
bMalum___ has joined #ruby
Guedes has left #ruby ["Saindo"]
sunya7a has joined #ruby
mark_locklear has joined #ruby
<csmrfx> ya, redis, or couchdb... or the good old sqlite that firefox uses
mikepack has joined #ruby
mansi_ has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 258 seconds]
mansi has joined #ruby
jottr_ has joined #ruby
eka has quit [Read error: Connection reset by peer]
eka_ has joined #ruby
setra has quit [Ping timeout: 252 seconds]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
_pingu has joined #ruby
codeFiend has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
ClarusCogitatio has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxf has quit [Ping timeout: 265 seconds]
sunya7a has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
devdazed has joined #ruby
<_pingu> search the pty gem for win 7 with ruby 1.9.3. tried rubysl-pty 1.0.0, but that does not compile and 2.0.2 needs ruby > 2.
hamakn has quit [Remote host closed the connection]
maximski has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
lethjakman has joined #ruby
jottr_ is now known as jottr
ktun has joined #ruby
kilk_ has joined #ruby
Es0teric has joined #ruby
pothibo has joined #ruby
combusean has joined #ruby
saarinen has quit [Quit: saarinen]
p8952 has quit [Quit: Leaving]
alex88 has quit [Quit: Leaving...]
ktun_ has joined #ruby
jespada has quit [Ping timeout: 252 seconds]
mansi has quit [Remote host closed the connection]
ktun has quit [Read error: Connection reset by peer]
Lutece has joined #ruby
JacobHayes has quit [Remote host closed the connection]
_pingu has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0/20140428193838]]
mansi has joined #ruby
kilk_ has quit [Client Quit]
Xeroa has quit [Quit: Ex-Chat]
saarinen has joined #ruby
i_s has quit []
<pothibo> I have a gem I'm building and I would like to have it in the load path without installing it. Any ideas?
kilk_ has joined #ruby
ktun_ has quit [Client Quit]
jespada has joined #ruby
michaeldeol has left #ruby ["Textual IRC Client: www.textualapp.com"]
Spami has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
mansi has quit [Ping timeout: 252 seconds]
musashi1 has joined #ruby
alpha123 has joined #ruby
rostam has joined #ruby
Dude007 has joined #ruby
jamto11 has joined #ruby
bMalum___ has quit [Quit: Computer has gone to sleep.]
HashNuke has quit [Quit: Connection closed for inactivity]
bMalum___ has joined #ruby
shemerey has joined #ruby
Valesk has joined #ruby
<nobitanobi> j #git
<nobitanobi> oh boy
enricostn has quit [Remote host closed the connection]
bMalum___ has quit [Ping timeout: 245 seconds]
dpswireless has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 258 seconds]
Bira has quit [Remote host closed the connection]
dblessing has joined #ruby
razrunelord has joined #ruby
ktun has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
JacobHayes has joined #ruby
combusean has quit [Quit: Leaving]
eka_ has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
combusean has joined #ruby
saarinen has quit [Quit: saarinen]
eka has joined #ruby
noop has joined #ruby
saarinen has joined #ruby
nanoyak has joined #ruby
RohanRNS has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
garndt has quit [Quit: Connection closed for inactivity]
sunya7a has joined #ruby
mikesplain has joined #ruby
mikesplain_ has joined #ruby
alem0lars has joined #ruby
jlast has quit [Remote host closed the connection]
mdmcaf has joined #ruby
omosoj has quit [Ping timeout: 258 seconds]
jlast has joined #ruby
wchun has joined #ruby
goleldar has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
sdwrage has joined #ruby
hamakn has joined #ruby
dblessing has quit [Quit: dblessing]
<yami_> Ciao :3
yami_ has quit [Quit: Page closed]
kilk_ has quit [Quit: kilk_]
pliniker has joined #ruby
Jrz has quit [Quit: Computer has gone to sleep.]
<RubyPanther> Hanmac: I'll take the answer from the traffic engineers at the DMV and say the cat should just be programmed to do the "right" thing, which is to stay in its lane and try to stop, and NOT swerve out of its lane trying to avoid somebody
Diranged has quit [Ping timeout: 276 seconds]
<centrx> Programmable cats roaming the streets...
<RubyPanther> the reality is that a well-programmed robot car is going to anticipate the increased danger and slow down
<Hanmac> ... the cat? ;P
<RubyPanther> sorry, "car"
jlast has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
dpswireless has joined #ruby
Dude007 has quit [Ping timeout: 252 seconds]
dpswireless has quit [Remote host closed the connection]
silky__ has quit [Quit: Leaving]
SegFaultAX has quit [Excess Flood]
yekta has joined #ruby
malcolmva has joined #ruby
malcolmva has quit [Read error: Connection reset by peer]
subbyyy_ has joined #ruby
i_s has joined #ruby
mikesplain_ is now known as mikesplain
SegFaultAX has joined #ruby
JhonD has quit [Quit: Leaving]
banisterone has quit [Read error: Connection reset by peer]
hiall has quit [Quit: hiall]
AndChat|102836 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
mercerist has joined #ruby
terrellt has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
bbloom has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
garbagecollectio has joined #ruby
danijoo has joined #ruby
terrellt has joined #ruby
subbyyy has joined #ruby
apeiros has joined #ruby
subbyyy_ has quit [Ping timeout: 265 seconds]
Guest410 has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
rm___ has joined #ruby
rm___ is now known as Guest25463
zigomir has quit [Remote host closed the connection]
xcesariox has joined #ruby
pu22l3r_ has joined #ruby
zigomir has joined #ruby
livcd has joined #ruby
dsdeiz has quit [Ping timeout: 255 seconds]
<Jnco> when I type ruby -version I get my old ruby version listed, is that because of an environment variable in my system?
ktun has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
Guest25463 has quit [Ping timeout: 265 seconds]
meatherly has quit [Remote host closed the connection]
atraylen has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
livcd has quit [Ping timeout: 245 seconds]
Dovid has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ktun has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
noop has quit [Ping timeout: 245 seconds]
malcolmva has joined #ruby
heftig has joined #ruby
KanKava has joined #ruby
soulisson has quit [Quit: Quitte]
mengu has joined #ruby
meatherl_ has joined #ruby
zigomir has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
livcd has joined #ruby
freezey has quit [Remote host closed the connection]
kevinykchan has joined #ruby
tvw has joined #ruby
sk87 has joined #ruby
setra has joined #ruby
lxsameer has joined #ruby
beneggett has joined #ruby
subbyyy_ has joined #ruby
r_s_h has joined #ruby
rdark has quit [Quit: leaving]
AndChat|102836 has quit [Read error: Connection reset by peer]
banisterone has joined #ruby
kaspergrubbe has joined #ruby
echevemaster has joined #ruby
sk87 has quit [Client Quit]
duggiefresh has joined #ruby
subbyyy has quit [Ping timeout: 265 seconds]
andrewjanssen has joined #ruby
<lethjakman> hmmm...I can't seem to puts inside of a meta method...why is that?
b00stfr3ak has joined #ruby
<jhass> lethjakman: what's a meta method?
livcd has quit [Remote host closed the connection]
papercode has joined #ruby
<r_s_h> Hey guys, does anyone know a reliable way to convert a string to a method name? E.g., I have a method called a_method(x). I built a string “a_method” that I want to convert to a method name.
jxf has joined #ruby
<atmosx> shiit
<centrx> r_s_h, Use send/public_send
<lxsameer> hey guys, does any one knows about web application of ruby5 podcast ? is it open source ?
<lethjakman> jhass: define_method :name, block
<jhass> r_s_h: and by convert you mean you want to call it?
<centrx> r_s_h, my_object.send(:my_method_name)
<jhass> >> define_method :foo do puts "foo"; end; foo
<eval-in__> jhass => foo ... (https://eval.in/152289)
<jhass> lethjakman: ^ works fine
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
upsell5 has quit [Quit: upsell5]
omosoj has joined #ruby
<r_s_h> my_method_name is the string?
<centrx> r_s_h, Yes, send accepts a string or symbol
<jhass> r_s_h: it can be a string or a symbol
Zolo has joined #ruby
jfoy has joined #ruby
agent_white has joined #ruby
yekta has quit [Quit: yekta]
saarinen has quit [Quit: saarinen]
razrunelord has quit [Remote host closed the connection]
<r_s_h> OK, I’ll give it a shot. Thanks.
<lethjakman> weird....I can't seem to get mine to work.
<lethjakman> any chance you see any issues with that?
Zolo has quit [Client Quit]
franzip has joined #ruby
ktun has joined #ruby
ktun has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<Lutece> You getting an error from it?
pen has joined #ruby
<lethjakman> Lutece: me?
jwang has joined #ruby
wm3|busy has quit [Ping timeout: 276 seconds]
<lethjakman> no error...the puts and send just aren't getting executed
Soda has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
<lethjakman> however running it does set the variable.
Hobogrammer has joined #ruby
Nogbit has joined #ruby
<jhass> lethjakman: use self.foo = bar
<jhass> foo = bar _always_ creates a local var
<lethjakman> oooooo
<lethjakman> it needs self
skaflem has quit [Quit: This computer has gone to sleep]
<lethjakman> I literally just figured that out as you told me.
<lethjakman> thank you!
tvw has quit []
baweaver has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
jobewan has joined #ruby
reset has joined #ruby
chrisseaton has quit []
sambao21 has quit [Ping timeout: 240 seconds]
<lethjakman> jhass: how does it work if you create foo = bar AND have a def foo?
<hoelzro> I think that within a block, foo can refer to an outer foo, unless you tell the block otherwise with |param; foo|
linojon has joined #ruby
<jhass> lethjakman: if a local exists, it wins
<lethjakman> ahhh ok.
<hoelzro> don't you *have* to invoke attr= methods via self.attr = value? for that ambiguity reason?
<lethjakman> one more quick thing....with what you showed me up above.
<lethjakman> >> define_method :foo do puts "foo"; end; foo
<hoelzro> right?
<lethjakman> is there a way to use {}?
<jhass> so you have to use self.foo or foo() to get to the method
Shidash has joined #ruby
frosgy has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> lethjakman: sure, just capture the block: define_method :foo do |&block| block.call; end;
g0bl1n has joined #ruby
g0bl1n has quit [Client Quit]
g0bl1n has joined #ruby
<lethjakman> I think I"m confused on how is {} different from do end?
dfinly has joined #ruby
sambao21 has joined #ruby
<lethjakman> I've seen them used similarly. but I haven't quite got it down yet..
<jhass> oh you mean to define
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<jhass> they're the same thing, just with a different precedence
echevemaster has quit [Quit: Leaving]
mduk has quit [Quit: Leaving]
cpruitt has quit [Quit: cpruitt]
<jhass> method_a method_b { foo } vs method_a method_b do foo end; first block goes to method_b, second goes to method_a
eka has joined #ruby
<lethjakman> >> define_method :foo { puts "foo"; } foo
<eval-in__> lethjakman => /tmp/execpad-73bfff9b18b5/source-73bfff9b18b5:2: syntax error, unexpected '{', expecting keyword_end ... (https://eval.in/152298)
<lethjakman> >> define_method :foo, { puts "foo"; } foo
<eval-in__> lethjakman => /tmp/execpad-03e586f634aa/source-03e586f634aa:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/152299)
<lethjakman> >> define_method :foo, { puts "foo"; }; foo
<jhass> >> define_method(:foo) { puts "foo" }; foo
<eval-in__> lethjakman => /tmp/execpad-2b521b584f9f/source-2b521b584f9f:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/152300)
<eval-in__> jhass => foo ... (https://eval.in/152301)
frogssgy has quit [Ping timeout: 245 seconds]
<lethjakman> >> define_method(:foo) { puts "foo"; }; foo
<eval-in__> lethjakman => foo ... (https://eval.in/152302)
<lethjakman> ahhh ok.
<lethjakman> so the issue is that I didn't use ()
<jhass> yes, since :foo is not a method call and thus can't receive a block
sdwrage has joined #ruby
<lethjakman> I kinda thought it'd just need a , after :foo, no?
<lethjakman> since &block is a parameter.
dsdeiz has joined #ruby
<jhass> no, &block captures the implicit block argument every method has, converts the block to a Proc object and assigns it to the explicit parameter
<jhass> block is just the parameter name, &foobar works as well
ktun has joined #ruby
Macaveli has joined #ruby
<lethjakman> ahhhhh
<lethjakman> that makes perfect sense!
<lethjakman> are there any other arguments like that?
Mon_Ouie has joined #ruby
<pothibo> Is it possible to tell ruby gems to load a specific gem from a specific folder ?
JacobHayes has quit [Remote host closed the connection]
mercerist has quit [Read error: Connection reset by peer]
<jhass> pothibo: bundler makes it easy, but if you just want to add a folder to the load path, modify GEM_PATH (check the output of gem env) or use the gem method to lock to a version
mercerist has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
<pothibo> ok
chrisseaton has joined #ruby
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
Ardenzi has quit [Remote host closed the connection]
<jhass> ruby also takes the -I parameter to add a folder to the load path on invocation or you can modify the $LOAD_PATH inside ruby
SHyx0rmZ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
danshultz has joined #ruby
razrunelord has joined #ruby
skaflem has joined #ruby
sampriti has joined #ruby
<havenwood> Jnco: figure it out?
AlexRussia has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
j00l has joined #ruby
cbill has joined #ruby
sampriti has quit [Client Quit]
<rbennacer> i am still having some issues with reading the text of an srt file with ruby http://pastebin.com/cpmnyczU
<rbennacer> it seems like it doesn't like the encoding
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> are you sure that file is in UTF-8?
<havenwood> rbennacer: so it isn't utf-8?
mengu__ has joined #ruby
musashi1 has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Max SendQ exceeded]
yacks has quit [Ping timeout: 255 seconds]
<havenwood> utf-16
mikecmpbll has joined #ruby
danman has quit [Ping timeout: 255 seconds]
<rbennacer> i tried utf-16
<rbennacer> srt_cleaner.rb:3:in `read': ASCII incompatible encoding needs binmode (ArgumentError)
<rbennacer> how can i know what encoding this srt file is?
mengu has quit [Ping timeout: 252 seconds]
<lxsameer> is there any gem for interprocess communication ?
<jhass> lxsameer: maybe look into Drb
<lxsameer> jhass: thanks
<havenwood> ^ Unix socket or Redis
<jhass> rbennacer: read the error message, try opening the file with File.read(file, 'rb', encoding: 'UTF-16')
mven has quit [Quit: Leaving]
mven has joined #ruby
<havenwood> DRb with Rinda::TupleSpace!
vpretzel has joined #ruby
chipotle has joined #ruby
<rbennacer> jhass, it is an srt file
<havenwood> lxsameer: or Celluloid::DCell
<jhass> rbennacer: doesn't matter
<rbennacer> ok
rm_ has joined #ruby
vpretzel has quit [Client Quit]
<rbennacer> jhass, it is the same error message
<lxsameer> havenwood: redis is cool
<Hanmac> rbennacer: didnt i said to youthat you might need "UTF-16BE" ?
dpswireless has joined #ruby
<havenwood> Hanmac: you did indeed
<centrx> People need to standardize on ASCII
<centrx> If it was good enough for the Romans...
<havenwood> Hanmac: how'd you know?
<Hanmac> havenwood: i tested it?
<havenwood> Hanmac: fancy!!
<Hanmac> havenwood: if i got one cent, each time i am right and people are not listening, i would be rich!
bigkevmcd has quit [Quit: Ex-Chat]
<havenwood> Hanmac: though this time just utf-16 i think
<havenwood> the facts on the ground are in flux!
larissa has quit [Quit: Leaving]
<Hanmac> hm i tested it with force encoding, and utf-16 alone didnt do what i want
<rbennacer> hammac i still get th error
<rbennacer> can you test to read it on your machine?
<Hanmac> rbennacer: what excaclty is the current error?
<havenwood> UTF-16LE worked for me
<havenwood> dunno
<rbennacer> srt_cleaner.rb:3:in `read': ASCII incompatible encoding needs binmode (ArgumentError)
<Hanmac> oh File.read(file, 'rb:UTF-16:UTF-8')
gondalier has joined #ruby
dpswireless has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
rm_ has quit [Remote host closed the connection]
nevans has quit [Ping timeout: 258 seconds]
<rbennacer> let me try
mansi has joined #ruby
<rbennacer> Hanmac, i ge tthis with your code srt_cleaner.rb:4:in `read': can't convert String into Integer (TypeError)
mengu__ has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
<Hanmac> ar dam
<Hanmac> its File.read(file, :mode => 'rb:UTF-16:UTF-8')
<rbennacer> do you think it trying to read it as a binary file?
mansi_ has joined #ruby
zigomir has quit [Remote host closed the connection]
<r_s_h> centrix/jhass: send worked like a charm. Initially I was calling it on a hash object (what I wanted to pass in to the method), but was getting NoMethodError (obviously). So I just called send(method_name, hash_parameter) and it worked like a charm. Thanks again!
<rbennacer> Hanmac, that last line worked
r_s_h has left #ruby [#ruby]
r_s_h has joined #ruby
ValicekB has joined #ruby
maestrojed has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
ktun has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
razrunelord has quit [Remote host closed the connection]
Bira has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
danshultz has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
meatherl_ has quit [Remote host closed the connection]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
meatherl_ has joined #ruby
meatherl_ has quit [Remote host closed the connection]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
meatherl_ has joined #ruby
subbyyy_ has quit [Ping timeout: 255 seconds]
combusean has quit [Ping timeout: 240 seconds]
eka has joined #ruby
dfinly has quit [Ping timeout: 240 seconds]
Bira has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
meatherl_ has quit [Remote host closed the connection]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
cpruitt has joined #ruby
jimbauds has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
rm_ has joined #ruby
subbyyy_ has joined #ruby
duggiefresh has quit [Remote host closed the connection]
baweaver has joined #ruby
Abyss__ has quit [Read error: Connection reset by peer]
danshultz has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
freezey has joined #ruby
keystonelemur has joined #ruby
sambao21 has joined #ruby
tobago has joined #ruby
mansi_ has quit [Quit: Leaving...]
statbot has joined #ruby
alvaro_o has joined #ruby
mary5030_ has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 258 seconds]
mary5030 has quit [Ping timeout: 258 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
carraroj has quit [Ping timeout: 245 seconds]
upsell5 has joined #ruby
wallerdev has quit [Quit: wallerdev]
alem0lars has quit [Quit: Going AFK...]
baweaver has quit [Ping timeout: 276 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
rkj has quit [Remote host closed the connection]
skysploit has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
keystonelemur has quit [Remote host closed the connection]
iasj has joined #ruby
skyspl0it has joined #ruby
skyspl0it has quit [Remote host closed the connection]
danman has joined #ruby
skyspl0it has joined #ruby
alem0lars has joined #ruby
skyspl0it has quit [Remote host closed the connection]
mdmcaf has quit [Remote host closed the connection]
chrisseaton has quit []
skysploit has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 276 seconds]
skysploit has joined #ruby
skysploit has quit [Remote host closed the connection]
sdwrage has joined #ruby
benzrf is now known as benzrf|offline
skysploit has joined #ruby
skysploit has quit [Read error: Connection reset by peer]
skysploit has joined #ruby
mansi has joined #ruby
wallerdev has quit [Quit: wallerdev]
ascarter has joined #ruby
mary5030_ has quit [Remote host closed the connection]
aspires has quit []
mary5030 has joined #ruby
setra has quit [Ping timeout: 258 seconds]
toastynerd has quit [Read error: Connection reset by peer]
skysploit has quit [Read error: Connection reset by peer]
mengu__ has joined #ruby
toastynerd has joined #ruby
skysploit has joined #ruby
apeiros has quit [Remote host closed the connection]
skysploit has quit [Remote host closed the connection]
alex88 has joined #ruby
lxsameer has quit [Quit: Leaving]
skysploit has joined #ruby
apeiros has joined #ruby
skysploit has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
Zenigor has quit []
jlast has joined #ruby
wallerdev has quit [Client Quit]
jfoy has quit [Quit: jfoy]
bbloom has quit [Ping timeout: 252 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
saarinen has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
andikr has joined #ruby
krandi has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: Leaving]
jprovazn has quit [Quit: Odcházím]
wallerdev has joined #ruby
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jlast has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
treehug88 has quit []
chipotle has quit [Quit: cya]
jlast has joined #ruby
havenwood has quit []
ItSANgo has quit [Read error: Connection reset by peer]
ItSANgo has joined #ruby
asteros has joined #ruby
benzrf|offline is now known as benzrf
meatherly has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
shemerey has joined #ruby
marcdel has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
sdwrage has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Zenigor has joined #ruby
Deele has quit [Quit: User excited]
sepp2k has joined #ruby
dpswireless has joined #ruby
marcdel has quit [Ping timeout: 276 seconds]
dsdeiz has quit [Ping timeout: 276 seconds]
endash has quit [Quit: endash]
Burgestrand has joined #ruby
chrisseaton has joined #ruby
bline79 has joined #ruby
sambao21 has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
mary5030_ has joined #ruby
jfoy has joined #ruby
<bline79> https://gist.github.com/bline79/a638bf0e8cedbe01f0d3 any idea why this is stopping at the first element in the array? I know it's something that it doesn't like about the exec statement.. If I change the exec to a puts it is fine
decoponio has quit [Quit: Leaving...]
mary5030_ has quit [Remote host closed the connection]
dpswireless has quit [Ping timeout: 276 seconds]
mary5030_ has joined #ruby
Melpaws has joined #ruby
<arrubin> Why are you using exec for that?
mary5030 has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 252 seconds]
Symbiosisz has joined #ruby
<Symbiosisz> Is there any way to map a specific path to multiple controllers usign rackup, and it'll keep going through controllers until its path matches one? e.g. map('/') { run staticcontroller }, map ('/') { run otherpagecontroller}. If no route in staticcontroller matches, it tries on otherpage controller?
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
dfinly has joined #ruby
<arrubin> I would guess that you need another \n at the end of your exec string.
dfinly has quit [Max SendQ exceeded]
marcdel has joined #ruby
<arrubin> But I have no idea why you would use exec to write to a file.
LiohAu has quit [Quit: LiohAu]
<jhass> bline79: exec replaces the process
<jhass> bline79: and as arrubin said just use Ruby primitives to write to files, File.write for example
michaelchum has quit [Quit: Connection closed for inactivity]
<bline79> replacing it with system did it
<jhass> bline79: that's still bad practice though, you start like 3 or 4 new processes for something that can be done with 3 syscalls from the current process
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> File.write("/config/resolv.conf.#{i}", $resolv)
saarinen has quit [Quit: saarinen]
<jhass> also i is a bad variable name, how about host?
yfeldblum has joined #ruby
<bline79> of course, my code sucks :)
<bline79> I'm aware
<bline79> got it working, and will get better with the next script
<arrubin> If you want to write a shell script, then write a shell script.
<arrubin> And then just use scp.
<jhass> finally avoid globals, a file write is reasonably fast, just move it inside the block and use a local
sdwrage has quit [Quit: This computer has gone to sleep]
mikepack has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
saarinen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
razrunelord has joined #ruby
cbill has quit [Ping timeout: 265 seconds]
hrs has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
postmodern has joined #ruby
mikesplain_ has joined #ruby
skaflem has quit [Quit: Leaving]
mikepack has joined #ruby
sambao21 has joined #ruby
Squarepy has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 255 seconds]
mikesplain_ is now known as mikesplain
mengu__ has quit [Ping timeout: 265 seconds]
wm3|busy has joined #ruby
omosoj has joined #ruby
razrunelord has quit [Ping timeout: 258 seconds]
wm3|busy is now known as workmad3
wallerdev has quit [Quit: wallerdev]
havenwood has joined #ruby
jmaya has joined #ruby
<banisterfiend> how do i know if one hash includes all the key/value pairs from another one?
Guest4165 has quit [Changing host]
Guest4165 has joined #ruby
apeiros has joined #ruby
Guest4165 is now known as guyz
<arrubin> >> {a: 1, b: 2} == {a: 1, b: 2}
<eval-in__> arrubin => true (https://eval.in/152318)
<bricker> banisterfiend: ==
cbill has joined #ruby
<bricker> ops
apeiros has quit [Read error: Connection reset by peer]
<banisterfiend> arrubin not quite what i was asking for :)
<workmad3> >> {a: 1} == {a: 1, b: 2}
<eval-in__> workmad3 => false (https://eval.in/152319)
<workmad3> ^^ that'll be what's wanted
apeiros has joined #ruby
binaryhat has quit [Quit: Leaving]
Bumptious has quit [Remote host closed the connection]
<bricker> I could have sworn has defined intersection/union operators
<bricker> hash*
marcdel has quit []
jmaya has quit [Remote host closed the connection]
<workmad3> banisterfiend: in plain ruby, the best I can think of is 'source.all?{|k,v| target[k] == v}'
_justin has joined #ruby
<banisterfiend> workmad3 nice thx
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
combusean has joined #ruby
Bumptious has joined #ruby
_1_Fitness has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<workmad3> banisterfiend: you could monkeypatch that onto Hash as 'subset_of?' and then 'a.subset_of?(b)' ;)
vekfautles has joined #ruby
<havenwood> >> require 'set'; {a: 1, b: 2}.to_set.subset?({a: 1}.to_set)
<eval-in__> havenwood => false (https://eval.in/152320)
_1_Fitness has left #ruby [#ruby]
jherbst has joined #ruby
leslie has quit [Quit: ZNC - http://znc.in]
BWStearns has quit [Read error: Connection reset by peer]
cjsarette has quit [Max SendQ exceeded]
meatherly has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
BWStearns has joined #ruby
<kaleido> >> a = a
<eval-in__> kaleido => nil (https://eval.in/152321)
<kaleido> damn, so much for my advanced programming degree
mansi has quit [Ping timeout: 265 seconds]
jenskarlsen has quit [Quit: jenskarlsen]
<workmad3> kaleido: so, what did you expect to happen? :)
mansi has joined #ruby
cjsarette has joined #ruby
beneggett has quit [Ping timeout: 245 seconds]
mikepack_ has joined #ruby
<havenwood> >> x = nil if false; x
<eval-in__> havenwood => nil (https://eval.in/152328)
<benzrf> kaleido: ruby is weird and dumb
leslie has joined #ruby
<benzrf> kaleido: what happens is that the rhs of the first assgnmt of a var can see the var itself as nil
<benzrf> that lets you do things like
<benzrf> v = v ? 0 : v + 1
<benzrf> or something
<benzrf> ^will work even if v doesnt exist on runn
<benzrf> *run
Rahul_Roy has joined #ruby
rbennacer has left #ruby ["Leaving"]
<workmad3> benzrf: it's what lets you do 'a ||= "value"' :)
apeiros has quit [Remote host closed the connection]
dpswireless has joined #ruby
<benzrf> whats REALLY weird is that vars created in untaken execution branches will be created
<benzrf> but set to nil
ktun has joined #ruby
mark_locklear has quit [Quit: Leaving]
<havenwood> benzrf: \o/
apeiros has joined #ruby
<benzrf> ...i think its so that locals can be differentiated from method calls at parsetime
<havenwood> Freya's Day!
sambao21 has quit [Quit: Computer has gone to sleep.]
nathancahill has quit [Quit: nathancahill]
<centrx> kaleido, benzrf is weird and dumb
momomomomo has joined #ruby
<Hanmac> >> a, b = b, a
<eval-in__> Hanmac => [nil, nil] (https://eval.in/152330)
<benzrf> am not :[
<centrx> only as much as ruby is
<centrx> and ruby is awesome
fantazo has joined #ruby
musashi1 has joined #ruby
<havenwood> >> a, b = b.object_id, a.object_id
<eval-in__> havenwood => [4, 4] (https://eval.in/152331)
maletor has joined #ruby
mikepack_ has quit [Ping timeout: 265 seconds]
<benzrf> ruby is pretty dumb
<havenwood> s/dumb/elegant beast!
<centrx> Ruby is the best language ever
g0bl1n has quit [Ping timeout: 240 seconds]
statbot has quit [Remote host closed the connection]
<centrx> Once it gets a complete and faster compiler it will take over the world.
racaille has quit [Quit: Leaving]
<lagweezle> Can hope!
ktun has quit [Client Quit]
aspires has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
<workmad3> centrx: we don't need a compiler... we just need a hardware processor that works on the bytecode VM from MRI
<workmad3> centrx: so we can just run it on-chip after generating bytecode :)
<benzrf> workmad3: they tried that with lisp
mikepack has quit [Remote host closed the connection]
<benzrf> it didnt worj out so hot
<workmad3> benzrf: ;)
<benzrf> *work
mikepack has joined #ruby
meatherly has joined #ruby
Zenigor has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
omosoj has quit [Ping timeout: 255 seconds]
zorak_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
<benzrf> i-is it time to go on a rant about tech
<benzrf> *haskell
<benzrf> not tech
_justin has joined #ruby
Jake232 has joined #ruby
<katlogic> lisp machines were awesome tho
alpha123 has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
zybi1 has quit [Remote host closed the connection]
jfoy has quit [Quit: jfoy]
yalue has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
meatherly has quit [Remote host closed the connection]
jfoy has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
codeFiend has quit [Quit: codeFiend]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rizzatti has quit [Quit: Leaving...]
wallerdev has joined #ruby
beneggett has quit [Client Quit]
Hobogrammer has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
hrs has joined #ruby
p8952 has joined #ruby
p8952 has joined #ruby
p8952 has quit [Changing host]
sunya7a has quit [Ping timeout: 240 seconds]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r_s_h has quit [Quit: r_s_h]
anaeem1_ has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
shemerey has joined #ruby
danshultz has quit [Remote host closed the connection]
IceDragon has joined #ruby
danshultz has joined #ruby
dpswireless has quit [Ping timeout: 255 seconds]
txdv has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby
txdv has joined #ruby
shemerey has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
nevans has joined #ruby
Melpaws has quit [Quit: Leaving.]
havenwood has joined #ruby
dpswireless has joined #ruby
lw has quit [Quit: b]
danshultz has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
sputnik13 has joined #ruby
RaptorJesus_ has joined #ruby
mikesplain_ has joined #ruby
rizzatti has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
mikesplain_ is now known as mikesplain
andrewjanssen has quit [Quit: Leaving...]
einarj has joined #ruby
paulfm has quit []
DrShoggoth has joined #ruby
carraroj has joined #ruby
treehug88 has joined #ruby
ikawnoclast has quit [Remote host closed the connection]
RaptorJesus has quit [Ping timeout: 272 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Hobogrammer has joined #ruby
rezzack has joined #ruby
alexju has joined #ruby
omosoj has quit [Quit: Leaving]
omosoj has joined #ruby
nwertman has quit [Quit: leaving]
Jake232 has joined #ruby
linojon has quit [Quit: linojon]
testcore has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
linojon has joined #ruby
Squarepy has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
geggam has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblu_ has joined #ruby
codeurge has quit [Quit: Quit.]
Asher1 is now known as Asher
RaptorJesus_ is now known as RaptorJesus
nanoyak has quit [Quit: Computer has gone to sleep.]
alem0lars has quit [Quit: alem0lars]
codeurge has joined #ruby
nevans has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
shvelo has joined #ruby
phansch has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
sambao21 has joined #ruby
aspires has quit []
jmurray has quit [Quit: jmurray]
sinkensabe has joined #ruby
gondalier has quit [Quit: gondalier]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
shashin has joined #ruby
sambao21 has quit [Client Quit]
kpshek has quit []
jespada has quit [Quit: Leaving]
ndrei has joined #ruby
aspires has joined #ruby
kwerle has joined #ruby
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kwerle> I’ve forgotten how to do something easy in ruby. I want to create a trivial one-off instance of an object with a single attribute. some_object=thing_i_forgot(:attr => ‘some value’) so that I can do some_object.attr and get ‘some value’. What is the constructor I’m looking for?
tyll_ has left #ruby [#ruby]
agjacome has quit [Ping timeout: 276 seconds]
<slash_nick> kwerle: require 'ostruct'
phansch has quit [Quit: WeeChat 0.3.8]
<kwerle> I’m there. Pretty sure there is another way (isn’t there always…).
phansch has joined #ruby
<slash_nick> well, what are you after?
sambao21 has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
<slash_nick> some_object = OpenStruct.new(attr: 'some value'); some_object.attr #=> 'some value'
<kwerle> Yeah - I coulda sworn there was another way. I don’t remember reading about ostruct.
<slash_nick> kwerle: well there's also struct... it's more rigid - http://www.ruby-doc.org/core-2.1.1/Struct.html
<kwerle> Nope - ostruct looks like it’ll do what I want. Thanks.
bitri has joined #ruby
<slash_nick> no problem
mikecmpbll has quit [Quit: ciao.]
<kwerle> Yup - there’s the ref I vaguely recalled: http://devblog.avdi.org/2010/05/12/quickie-objects-in-ruby/ . I just forgot it was ostruct.
apeiros has joined #ruby
mary5030_ has quit [Ping timeout: 258 seconds]
<slash_nick> cool, now I won't wonder what it was you -thought- you were thinking of :)
treehug8_ has joined #ruby
phansch has quit [Quit: WeeChat 0.3.8]
mikesplain_ has joined #ruby
phansch has joined #ruby
nanoyak has joined #ruby
nari has quit [Ping timeout: 252 seconds]
Diranged has joined #ruby
mikesplain has quit [Ping timeout: 276 seconds]
mikesplain_ is now known as mikesplain
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
treehug88 has quit [Ping timeout: 276 seconds]
Loaft has joined #ruby
codeFiend has joined #ruby
endash has joined #ruby
mengu__ has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
endash has quit [Client Quit]
claymore has quit [Quit: Leaving]
Diranged has quit [Read error: Connection reset by peer]
Diranged has joined #ruby
Squarepy has joined #ruby
combusean has quit [Ping timeout: 245 seconds]
Dysruption has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
mercerist has joined #ruby
dayepa has joined #ruby
aeontech has joined #ruby
mikesplain has quit [Quit: mikesplain]
codeFiend has quit [Ping timeout: 276 seconds]
aeontech is now known as codeFiend
phansch has quit [Quit: WeeChat 0.4.3]
Morkel has quit [Quit: Morkel]
phansch has joined #ruby
maximski has quit []
bitri has quit [Quit: Textual IRC Client: www.textualapp.com]
Diranged1 has joined #ruby
cpruitt has quit [Quit: cpruitt]
atraylen has quit [Ping timeout: 240 seconds]
Lucky_ has joined #ruby
benlieb has quit [Quit: benlieb]
Diranged has quit [Ping timeout: 276 seconds]
combusean has joined #ruby
devdazed has quit [Quit: Bye]
shenk has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
codeFiend has quit [Quit: codeFiend]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
shenk is now known as shenkz
AlexRussia has joined #ruby
freezey has quit [Remote host closed the connection]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
dayepa has quit [Ping timeout: 258 seconds]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
nathancahill has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
hiall has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
razrunelord has quit [Remote host closed the connection]
IceDragon has joined #ruby
papercode has quit [Remote host closed the connection]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
hiall has quit [Client Quit]
andikr has quit [Ping timeout: 252 seconds]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
adamnbowen has quit [Ping timeout: 252 seconds]
funburn has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
iasj has quit [Remote host closed the connection]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
<agent_white> Good afternoon all
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
razrunelord has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
IceDragon has quit [Ping timeout: 276 seconds]
Jrz has joined #ruby
relix has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
qwyeth has quit [Ping timeout: 245 seconds]
danman has quit [Quit: danman]
freezey has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
nowthatsamatt has joined #ruby
tvw has joined #ruby
momomomomo has quit [Quit: momomomomo]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
kwerle has quit [Quit: kwerle]
papercode has joined #ruby
rizzatti has quit [Quit: Leaving...]
andrewjanssen has joined #ruby
sinkensabe has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 276 seconds]
bilbo_swaggins has joined #ruby
dayepa has joined #ruby
marcdel has joined #ruby
alex88 has quit [Quit: Leaving...]
bilbo_swaggins has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
rm_ has quit [Remote host closed the connection]
IceDragon has joined #ruby
mikepack_ has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
vekfautles has quit [Ping timeout: 240 seconds]
bbloom has joined #ruby
kwerle has joined #ruby
marcdel has joined #ruby
mengu has joined #ruby
mikepack_ has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 258 seconds]
dayepa has quit [Ping timeout: 258 seconds]
dayepa has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
<lagweezle> Not yet. When I get home from work, then it will be... but hopefully yours is good, agent_white. :)
mengu__ has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
andrewjanssen has quit [Ping timeout: 276 seconds]
tanema has joined #ruby
tanema has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
Es0teric has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
fukuyamaken has quit [Read error: Connection reset by peer]
marcdel has quit [Client Quit]
dayepa has quit [Read error: Connection reset by peer]
mercerist has joined #ruby
dayepa has joined #ruby
fukuyamaken has joined #ruby
razrunelord has joined #ruby
Diranged1 has left #ruby [#ruby]
sambao21 has joined #ruby
Tricon has joined #ruby
kwerle has quit [Quit: kwerle]
zorak_ has quit [Quit: Saliendo]
einarj_ has joined #ruby
benlieb has joined #ruby
rOOb has quit [Ping timeout: 252 seconds]
mansi has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
mansi has joined #ruby
fukuyamaken has quit []
Dysruption has quit [Quit: Dysruption]
kwerle has joined #ruby
rOOb has joined #ruby
testcore has quit [Quit: [BX] He-Man uses BitchX. *HE HAS THE POOWWEEEEEEEEEERRRRRRRR!!!!!*]
skysploit has joined #ruby
benlieb has quit [Client Quit]
andrewjanssen has joined #ruby
binaryhat has joined #ruby
Squarepy has quit [Quit: Leaving]
mansi has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
benzrf|offline is now known as benzrf
DrShoggoth has quit [Quit: Leaving]
yfeldblu_ has quit [*.net *.split]
Rahul_Roy has quit [*.net *.split]
postmodern has quit [*.net *.split]
LACP has quit [*.net *.split]
dyreshark has quit [*.net *.split]
pagioss has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
Adran has quit [*.net *.split]
ws2k3 has quit [*.net *.split]
zenojis has quit [*.net *.split]
Norrin has quit [*.net *.split]
kartouch has quit [*.net *.split]
Hien has quit [*.net *.split]
epochwolf has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
imkmf has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
rurban_ has quit [*.net *.split]
lfox has quit [*.net *.split]
aetaric has quit [*.net *.split]
Nightmare has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
juni0r has quit [*.net *.split]
Kamilion has quit [*.net *.split]
intnsity has quit [*.net *.split]
vali has quit [*.net *.split]
sfr^ has quit [*.net *.split]
hostess has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
Klumben has quit [*.net *.split]
bedouin has quit [*.net *.split]
mjc_ has quit [*.net *.split]
Tranquility has quit [*.net *.split]
Tritania has quit [*.net *.split]
Senjai has quit [*.net *.split]
Radar has quit [*.net *.split]
headius has quit [*.net *.split]
rotor has quit [*.net *.split]
micah`_ has quit [*.net *.split]
ahuman has quit [*.net *.split]
_izz_ has quit [*.net *.split]
teejar has quit [*.net *.split]
joelteon has quit [*.net *.split]
thoraxe has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
bauruine has quit [*.net *.split]
PhilK has quit [*.net *.split]
dmarr has quit [*.net *.split]
seich has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
emdub_ has quit [*.net *.split]
_5kg has quit [*.net *.split]
wwalker has quit [*.net *.split]
billiam has quit [*.net *.split]
shwouchk has quit [*.net *.split]
stopbit has quit [*.net *.split]
paul_k has quit [*.net *.split]
testol has quit [*.net *.split]
moshee has quit [*.net *.split]
Roa has quit [*.net *.split]
Jelco has quit [*.net *.split]
_blackjid has quit [*.net *.split]
prdx has quit [*.net *.split]
n88 has quit [*.net *.split]
Snickers has quit [*.net *.split]
flori has quit [*.net *.split]
SJr has quit [*.net *.split]
mist has quit [*.net *.split]
Liothen has quit [*.net *.split]
kenichi has quit [*.net *.split]
oz has quit [*.net *.split]
mjmac has quit [*.net *.split]
manacit has quit [*.net *.split]
Bumptious has quit [*.net *.split]
rixius has quit [*.net *.split]
renier has quit [*.net *.split]
mg^afk has quit [*.net *.split]
Companion has quit [*.net *.split]
three18ti has quit [*.net *.split]
madhatter has quit [*.net *.split]
Morrolan has quit [*.net *.split]
ker2x has quit [*.net *.split]
trhodes_ has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
cwc has quit [*.net *.split]
helpa has quit [*.net *.split]
axisys has quit [*.net *.split]
contradictioned has quit [*.net *.split]
linduxed has quit [*.net *.split]
edwardly has quit [*.net *.split]
nuck has quit [*.net *.split]
Tamae has quit [*.net *.split]
Doppp has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
gsvolt has quit [*.net *.split]
stnly has quit [*.net *.split]
camilasann has quit [*.net *.split]
rodasc has quit [*.net *.split]
drizz has quit [*.net *.split]
gwb3 has quit [*.net *.split]
oso|away has quit [*.net *.split]
jeekl has quit [*.net *.split]
daed has quit [*.net *.split]
dpaulus has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
minecoins has quit [*.net *.split]
sente has quit [*.net *.split]
Elfix has quit [*.net *.split]
nopc0de has quit [*.net *.split]
brunto has quit [*.net *.split]
dazeddev has quit [*.net *.split]
asuka has quit [*.net *.split]
ji0n has quit [*.net *.split]
diegok has quit [*.net *.split]
sfiggins has quit [*.net *.split]
rs0 has quit [*.net *.split]
Gate has quit [*.net *.split]
Drakevr has quit [*.net *.split]
dandrade has quit [*.net *.split]
Kovensky has quit [*.net *.split]
ponyfleisch has quit [*.net *.split]
yfeldblu_ has joined #ruby
Norrin has joined #ruby
rurban_ has joined #ruby
Hien has joined #ruby
ws2k3 has joined #ruby
Nightmare has joined #ruby
Rahul_Roy has joined #ruby
aetaric has joined #ruby
DarkFoxDK has joined #ruby
kartouch has joined #ruby
jenrzzz has joined #ruby
Adran has joined #ruby
lfox has joined #ruby
intnsity has joined #ruby
LACP has joined #ruby
SJr has joined #ruby
zenojis has joined #ruby
Kamilion has joined #ruby
postmodern has joined #ruby
dyreshark has joined #ruby
imkmf has joined #ruby
pagioss has joined #ruby
juni0r has joined #ruby
bpgoldsb has joined #ruby
sfr^ has joined #ruby
zz_jrhorn424 has joined #ruby
vali has joined #ruby
thoraxe has joined #ruby
teejar has joined #ruby
artgoeshere has joined #ruby
bedouin has joined #ruby
epochwolf has joined #ruby
mjc_ has joined #ruby
Tranquility has joined #ruby
joelteon has joined #ruby
hostess has joined #ruby
Radar has joined #ruby
Tritania has joined #ruby
headius has joined #ruby
Senjai has joined #ruby
n88 has joined #ruby
_blackjid has joined #ruby
Snickers has joined #ruby
prdx has joined #ruby
mist has joined #ruby
bauruine has joined #ruby
oz has joined #ruby
kenichi has joined #ruby
rotor has joined #ruby
ahuman has joined #ruby
Liothen has joined #ruby
mjmac has joined #ruby
thejoecarroll has joined #ruby
seich has joined #ruby
paul_k has joined #ruby
micah`_ has joined #ruby
flori has joined #ruby
Jelco has joined #ruby
Roa has joined #ruby
wwalker has joined #ruby
johnhamelink has joined #ruby
testol has joined #ruby
emdub_ has joined #ruby
billiam has joined #ruby
manacit has joined #ruby
stopbit has joined #ruby
_5kg has joined #ruby
PhilK has joined #ruby
_izz_ has joined #ruby
shwouchk has joined #ruby
moshee has joined #ruby
yosafbridge has joined #ruby
dmarr has joined #ruby
Bumptious has joined #ruby
ker2x has joined #ruby
rixius has joined #ruby
cwc has joined #ruby
three18ti has joined #ruby
axisys has joined #ruby
Morrolan has joined #ruby
mg^afk has joined #ruby
Companion has joined #ruby
helpa has joined #ruby
contradictioned has joined #ruby
madhatter has joined #ruby
renier has joined #ruby
Doppp has joined #ruby
linduxed has joined #ruby
trhodes_ has joined #ruby
rodasc has joined #ruby
avelldiroll has joined #ruby
nuck has joined #ruby
Tamae has joined #ruby
gsvolt has joined #ruby
stnly has joined #ruby
daed has joined #ruby
edwardly has joined #ruby
kaichanvong has joined #ruby
jeekl has joined #ruby
jonathanwallace has joined #ruby
oso|away has joined #ruby
gwb3 has joined #ruby
Sp4rKy has joined #ruby
minecoins has joined #ruby
drizz has joined #ruby
brunto has joined #ruby
nopc0de has joined #ruby
ponyfleisch has joined #ruby
sente has joined #ruby
Elfix has joined #ruby
diegok has joined #ruby
dazeddev has joined #ruby
ji0n has joined #ruby
dpaulus has joined #ruby
camilasann has joined #ruby
asuka has joined #ruby
rs0 has joined #ruby
Gate has joined #ruby
sfiggins has joined #ruby
Drakevr has joined #ruby
dandrade has joined #ruby
Kovensky has joined #ruby
Kamilion has quit [Max SendQ exceeded]
Adran has quit [Max SendQ exceeded]
yosafbridge has quit [Max SendQ exceeded]
avelldiroll has quit [Max SendQ exceeded]
Kamilion has joined #ruby
yosafbridge has joined #ruby
Klumben has joined #ruby
jcarouth has joined #ruby
avelldiroll has joined #ruby
mengu has quit [Remote host closed the connection]
Adran has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
lmickh has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
freerobby has quit [Quit: Leaving.]
kirun has quit [Quit: Client exiting]
nowthatsamatt has quit [Quit: nowthatsamatt]
sski has joined #ruby
aiguu has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Ping timeout: 276 seconds]
andrewjanssen has joined #ruby
pothibo has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
ValicekB has joined #ruby
IceDragon has joined #ruby
kilk_ has joined #ruby
gondalier has joined #ruby
<pothibo> Let's say I have a gem I'm developing in ~/Develop/my_gem and want to use that place to load my_gem through rubygems
<pothibo> Can I do it
linojon has quit [Quit: linojon]
dik_dak has quit [Quit: Leaving]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
maximski has joined #ruby
linojon has joined #ruby
Bumptious has quit [Remote host closed the connection]
KAO has joined #ruby
funburn has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
klaut has quit [Remote host closed the connection]
kwerle has quit [Quit: kwerle]
kilk_ has quit [Quit: kilk_]
maximski has quit [Client Quit]
kitak_ has joined #ruby
Asher has quit [Remote host closed the connection]
Asher has joined #ruby
benlieb has joined #ruby
cescalante is now known as ce_afk
upsell5 has quit [Quit: upsell5]
joelbrewer has joined #ruby
<joelbrewer> hey folks. does anyone know about a ruby library I could use to determine the length of audio files?
cjsarette has quit [Max SendQ exceeded]
iceden has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
einarj has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
einarj_ has quit [Ping timeout: 276 seconds]
<joelbrewer> hmm, I found taglib: http://robinst.github.io/taglib-ruby/
Bira has joined #ruby
b00stfr3ak has quit [Ping timeout: 265 seconds]
cjsarette has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
IceDragon has joined #ruby
sski has quit [Remote host closed the connection]
rm_ has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
x1337807_ has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
Bira has quit [Remote host closed the connection]
<shevy> joelbrewer you could use ffmpeg
IceDragon has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Remote host closed the connection]
IceDragon has joined #ruby
kwerle has joined #ruby
kwerle has quit [Client Quit]
freerobby has joined #ruby
cjsarette has quit [Max SendQ exceeded]
pu22l3r_ has joined #ruby
musashi1 has joined #ruby
cjsarette has joined #ruby
aiguu has joined #ruby
cjsarette has quit [Max SendQ exceeded]
rm_ has quit [Ping timeout: 255 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nevans has joined #ruby
cjsarette has joined #ruby
iceden has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
freezey has quit [Remote host closed the connection]
redondos has quit [Excess Flood]
Bira has joined #ruby
toastynerd has quit [Remote host closed the connection]
redondos has joined #ruby
cjsarette has quit [Max SendQ exceeded]
razrunelord has quit []
pu22l3r_ has quit [Remote host closed the connection]
iceden has quit [Client Quit]
SegFaultAX has quit [Excess Flood]
cbill has quit [Quit: WeeChat 0.4.3]
cjsarette has joined #ruby
ta_ has joined #ruby
SegFaultAX has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
phoo1234567 has quit [Quit: Leaving]
freerobby has quit [Ping timeout: 276 seconds]
ktun has joined #ruby
gondalier has quit [Quit: gondalier]
ta has quit [Ping timeout: 265 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
cjsarette has quit [Max SendQ exceeded]
nanoyak has quit [Quit: Computer has gone to sleep.]
mikepack_ has joined #ruby
tvw has quit []
Bira has quit [Remote host closed the connection]
ktun has quit [Client Quit]
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
alpha123 has joined #ruby
moted has quit [Quit: moted]
baweaver has joined #ruby
mikepack has quit [Ping timeout: 258 seconds]
Jrz has quit [Quit: Computer has gone to sleep.]
<joelbrewer> Todd: hmm. have you used that gem? It seems to be pretty inactive.
<joelbrewer> I'm also looking for something that will work with Heroku..
mikepack_ has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
<Todd> I have not. I use Ruby mostly for automating acceptance tests for web apps.
hrs has quit [Quit: Textual IRC Client: www.textualapp.com]
<Todd> Though I've been thinking about branching out.
einarj has quit [Remote host closed the connection]
nanoyak has joined #ruby
Bira has quit [Remote host closed the connection]
JokesOnYou77 has joined #ruby
<joelbrewer> Todd: gotcha. What language(s) do you write your web apps in?
ktun has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
<Todd> joelbrewer: We have some rails apps that provide API's, a huge legacy Perl CMS and a new Java CMS we work with.
Xaitec has joined #ruby
freezey has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
Mattx has joined #ruby
pen has quit []
subbyyy_ has quit [Ping timeout: 255 seconds]
omosoj has quit [Ping timeout: 258 seconds]
moted has joined #ruby
<Mattx> so does anybody have experience with paypal? I'm almost done with paypal express but the url to which I should redirect the user doesn't seem to work: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-16E484475J748182Y
<Mattx> any idea is appreciated
dayepa has joined #ruby
Xaitec has quit [Remote host closed the connection]
predator217 has joined #ruby
<joelbrewer> Todd: nice!
freezey has quit []
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Todd> joelbrewer: Perl is Ruby's backwards little brother and I've yet to learn Java. For many years I said the only statically typed language I want to use is the one that compiles my Ruby interpreter.
pietr0 has quit [Quit: pietr0]
cjsarette has joined #ruby
<Todd> joelbrewer: I've since changed my tune a bit as, well, Java is in high demand where I am these days.
MrWharfsnort has joined #ruby
banisterone has quit [Quit: Bye]
banisterone has joined #ruby
predator117 has quit [Ping timeout: 265 seconds]
omosoj has joined #ruby
VTLob has quit [Quit: VTLob]
nanoyak has quit [Quit: Computer has gone to sleep.]
alpha123 has quit [Ping timeout: 252 seconds]
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
pu22l3r has joined #ruby
george2 has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
eka has quit [Client Quit]
AlSquire has joined #ruby
AlSquire has quit [Client Quit]
asteros has quit [Quit: asteros]
nanoyak has joined #ruby
fwaokda has joined #ruby
<fwaokda> i have a folder at that i run "ruby -v" and I get "ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]" then I go to another folder and run "ruby -v" and it acts like it's not installed. Anyone know why this is?
toastynerd has joined #ruby
ascarter has joined #ruby
linojon has quit [Quit: linojon]
codeFiend has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> fwaokda: what do you get for?: which ruby
jhass is now known as jhass|off
linojon has joined #ruby
<fwaokda> havenwood, in one folder nothing, the next i get /home/fwaokda/.rvm/rubies/ruby-2.1.1/bin/ruby
codeFiend has quit [Client Quit]
<havenwood> fwaokda: Aha, so RVM. Might ask in RVM but I'd imagine you do not have a default set and the switching is due to a .ruby-version or .rvmrc file, or something of that sort.
<havenwood> fwaokda: in #rvm
<havenwood> i mean
<fwaokda> ok, what would i even ask though?
<havenwood> fwaokda: but maybe first try?: rvm --default use ruby-2.1.1
jlast has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
<fwaokda> havenwood, nope didn't work -- it did something but wont let me access ruby still in the other folder
combusean has quit [Ping timeout: 252 seconds]
<havenwood> fwaokda: we should go to #rvm, someone there will likely spot the issue before me
<havenwood> fwaokda: try reloading the shell after having set the default?
jamto11 has quit [Remote host closed the connection]
combusean has joined #ruby
<fwaokda> havenwood, ok i asked in there thanks for all the help!
<havenwood> fwaokda: i'm sure #rvm will sort you out :)
mikepack has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
jxf has quit [Ping timeout: 276 seconds]