apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 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
<fraterlaetus> done.
<fraterlaetus> :)
razrunel_ has joined #ruby
NalloK has quit [Max SendQ exceeded]
Beoran has joined #ruby
<shevy> ok now the most important question
<shevy> what is not working?
<shevy> btw
<shevy> I noticed something else
<shevy> hdds = HDDList.new
<shevy> you do that twice
<fraterlaetus> yes
<shevy> is that really what you wanted?
<shevy> you lose the earlier hdds = HDDList.new
flowerpot has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
<fraterlaetus> that's probably why it's only recording the last disk in the loop
<shevy> ruby is like - the less you need to write, the better
hiyosi has joined #ruby
<shevy> hehe well yeah
renderful has joined #ruby
<shevy> you first assign via =
<shevy> then you append via <<
<fraterlaetus> when I ran the code without it in table.each_with_index
<shevy> on next iteration, you remove all again
xeno has quit [Ping timeout: 245 seconds]
<fraterlaetus> It was complaining that hdds was not defined.
andrewhl has quit [Quit: andrewhl]
<fraterlaetus> I must have misunderstood
kobain_ has joined #ruby
<fraterlaetus> translating from a C/bash brain to ruby brain is hard.
joelroa has quit [Ping timeout: 240 seconds]
<fraterlaetus> thank you for not smiting
<fraterlaetus> hehehe
<shevy> hdds should have been defined
<shevy> fraterlaetus, that here works https://gist.github.com/shevegen/9422836
<shevy> so your example of hdds = outside the loop
<shevy> should work fine
kobain has quit [Ping timeout: 244 seconds]
<shevy> btw another thing
<shevy> if parent_hdd = valid_sub_hdd(hdd)
<shevy> are you sure you want to do an assignment and not == comparison?
razrunel_ has quit [Ping timeout: 244 seconds]
<fraterlaetus> yes
<fraterlaetus> in that case
<shevy> hmm
<fraterlaetus> it was intentional
<shevy> i may be wrong but
<shevy> how is the else clause run in that part?
<fraterlaetus> so that valid_sub_hdd should return true if sda and sda1 are both detected
<shevy> only when nil is returned, or?
<shevy> I hate assignments on the same line as if conditionals
<fraterlaetus> and add it to @sib_hdds
chipotle has quit [Quit: cya]
<shevy> can't you move it one line above, and then just check the variable for its boolean value
Waheedi has joined #ruby
hiyosi has quit [Ping timeout: 265 seconds]
<shevy> in ruby, if checks can often be as pretty as:
<shevy> if flag
<shevy> do_this
<shevy> else
<shevy> do_that
<bilbo_swaggins> or even
<bilbo_swaggins> do_this with_this if this
<shevy> yeah
gregf has quit [Quit: WeeChat 0.4.3]
<fraterlaetus> hmm
shadoi1 has joined #ruby
<bilbo_swaggins> see ya later, gangsters
yfeldblum has quit [Read error: Connection reset by peer]
bilbo_swaggins has quit [Remote host closed the connection]
<fraterlaetus> I'll have to research how to do that. I've done a lot of reading today, and it seemed like that was the recommended method.
yfeldblum has joined #ruby
<shevy> to do assignments next to if checks?
mlpinit has joined #ruby
<shevy> well anyway, as long as it works and you understand it
predator217 has joined #ruby
bthesorceror has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
<shevy> so where does the script not work
YamakasY has joined #ruby
bricker_ has quit [Quit: leaving]
<shevy> btw fraterlaetus do you know pp yet?
<fraterlaetus> it doesn't seem to like like 46
<shevy> it pretty prints big complicated data structures in a nicely formatted way
<fraterlaetus> pp
<fraterlaetus> is it like inspect?
<shevy> well
<shevy> yeah but nicer
<shevy> you must do require 'pp' before you can use it though
<shevy> at the top of your script
<fraterlaetus> so I could do table.b
<fraterlaetus> adding to check it out now
<shevy> once you finished debugging, you can remove pp again
<fraterlaetus> :)
<shevy> anyway
<shevy> this line is: hdd_candidate.name.include?(hdd.name)
<shevy> you invoke a method called #name here
<shevy> are you sure that both these objects have such a method defined?
kerframil has quit [Ping timeout: 240 seconds]
arubin has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
<fraterlaetus> checking
mikepack has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 264 seconds]
<fraterlaetus> the hdd class has a name
<fraterlaetus> and I'm passing an hdd to hdd_candidate
gregf has joined #ruby
<shevy> ok so you confirm thatn both hdd_candidate and hdd have a method called #name
YamakasY has quit [Ping timeout: 240 seconds]
james_d_h has joined #ruby
<shevy> what is the specific error message?
srji has joined #ruby
<fraterlaetus> hdd_candidate is just a variable
<fraterlaetus> I'll paste in the gist
<shevy> well yeah but it is an object too, it can do fancy things, in your example you invoke #name on it which is a pretty non-default method, so I trust you have defined it
Saimey has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
<shevy> you can check if an object responds to a metho via .respond_to? :name_of_method_goes_in_here
<shevy> *method
<shevy> :(
<shevy> it's getting late here ... my typing skills get worse and worse
smathieu has joined #ruby
stringoO has quit [Quit: stringoO]
<fraterlaetus> Well, have an old fashioned on me, and get some shut eye man!
<fraterlaetus> thank you for your help!
* fraterlaetus pours you an e-drink
srji_ has quit [Ping timeout: 252 seconds]
Bira has quit []
<shevy> \o/ remember to try and keep the code as simple as possible when possible
evenix has joined #ruby
<fraterlaetus> First I must learn to strike the ball
<fraterlaetus> then I will learn to get on the green with fewer strokes.
<Rober9393> Hi, i want to use dotenv shell command interpolation, but I seems like it does not work in my ubuntu 12.04 vm, where should i look ?
<fraterlaetus> :)
shinobi_one has quit [Quit: shinobi_one]
sparrovv has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
zenojis_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
smathieu has joined #ruby
fgo has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
andrewhl has joined #ruby
smathieu_ has joined #ruby
senj has quit [Quit: Sleep Now]
Sirupsen has joined #ruby
localredhead has joined #ruby
joelroa has joined #ruby
ktosiek has quit [Ping timeout: 252 seconds]
andrewhl has quit [Client Quit]
yubrew has joined #ruby
s2013 has joined #ruby
s2013 has left #ruby ["Leaving"]
smathieu has quit [Ping timeout: 264 seconds]
codeitagile has quit [Quit: Leaving.]
linojon has quit [Quit: linojon]
james_d_h has quit [Ping timeout: 244 seconds]
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
crantron has joined #ruby
aspires has joined #ruby
rootshift_ has joined #ruby
joelroa has quit [Client Quit]
ndrei has quit [Ping timeout: 240 seconds]
smathieu_ has joined #ruby
itadder has joined #ruby
<itadder> what good
vlad_starkov has quit [Remote host closed the connection]
<itadder> hi I am back
yubrew has quit [Ping timeout: 264 seconds]
<itadder> anyone know were I could a birthday pardox ruby version source code
<itadder> I just want to study it
cjsarette has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
Salve has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 240 seconds]
cjsarette has joined #ruby
smathieu_ has quit [Remote host closed the connection]
Salve has joined #ruby
Lewix has quit [Remote host closed the connection]
joelroa has joined #ruby
smathieu has joined #ruby
thiagolc has joined #ruby
robbyoconnor has joined #ruby
Megtastique has joined #ruby
zachallett has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
rbartos has quit [Remote host closed the connection]
Lewix has joined #ruby
lutfidemirci has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
zenojis has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
rbartos has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
ffranz has quit [Quit: Leaving]
smathieu has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
localredhead has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
b00stfr3ak has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
Geniack_ has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
Krajsnick has joined #ruby
Geniack has joined #ruby
<centrx> Ha! It works!
<centrx> I told you it would work!
evenix has quit [Remote host closed the connection]
dweeb_ has joined #ruby
dweeb_ has quit [Client Quit]
momigi has quit [Remote host closed the connection]
evenix has joined #ruby
momigi has joined #ruby
koell has quit [Ping timeout: 265 seconds]
bricker`LA is now known as bricker
Krajsnick has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
pietr0 has quit [Quit: pietr0]
Megtastique has quit []
ndrei has quit [Ping timeout: 264 seconds]
cashnguns has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
lutfidemirci has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
aantix has joined #ruby
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
momigi has quit [Ping timeout: 244 seconds]
mailo has quit [Quit: Leaving...]
bluehavana_ has joined #ruby
mikepack has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Thanatermesis has joined #ruby
rootshift_ has joined #ruby
Wolland has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
dkamioka_ has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
silentpost has joined #ruby
zachallett has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
silentpost has quit [Client Quit]
james_d_h has joined #ruby
renderful has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 252 seconds]
razrunel_ has joined #ruby
renderful has joined #ruby
Salve has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
jzig has quit [Remote host closed the connection]
koell has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Rober9393 has quit [Quit: Lingo - http://www.lingoirc.com]
r0bby has joined #ruby
bradhe has joined #ruby
razrunel_ has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
bluenemo has quit [Remote host closed the connection]
jzig has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Salve has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
pu22l3r has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
Rober9393 has joined #ruby
axsuul has joined #ruby
robustus has joined #ruby
pu22l3r has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 240 seconds]
r0bby has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
rbartos has quit [Remote host closed the connection]
tomshafer has quit [Remote host closed the connection]
tomshafer has joined #ruby
<itadder> wow this hedgefund is great
<itadder> anyone here heard of janestreet capital
blackmesa has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
Oog has joined #ruby
<Oog> I see that isgnal.trap replaces the handler - it doesn't chain them
<Oog> how do i save a reference to the existing trap handler so i can call it?
dkamioka has joined #ruby
fraterlaetus has quit []
rbartos has joined #ruby
yasushi has joined #ruby
itadder has quit [Remote host closed the connection]
itadder has joined #ruby
tylersmith has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
tomshafer has quit [Ping timeout: 265 seconds]
dkamioka_ has quit [Ping timeout: 240 seconds]
momigi has joined #ruby
aantix has quit [Quit: aantix]
tomshafer has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
evenix has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
flowerpot has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aantix has joined #ruby
aantix has quit [Client Quit]
timonv has joined #ruby
Megtastique has quit []
momigi has quit [Ping timeout: 252 seconds]
thiagolc has quit [Remote host closed the connection]
GaryOak_ has quit [Quit: Leaving...]
talntid has quit [Quit: talntid]
dkamioka has quit [Remote host closed the connection]
Megtastique has joined #ruby
Celm has quit [Remote host closed the connection]
Rober9393 has quit [Quit: Lingo - http://www.lingoirc.com]
Rober9393 has joined #ruby
Rober9393 has quit [Client Quit]
jjbohn has joined #ruby
Rober9393 has joined #ruby
pskosinski has joined #ruby
george2 has joined #ruby
Fyyr13_ has joined #ruby
Weird_Trick has joined #ruby
<Weird_Trick> WARNING: Politicians in Washington are secretly plotting to reduce your social security payouts drastically. And they want to do it soon. Meanwhile, food stamp payouts have doubled under the Obama administration. That's shocking. So when we stumbled upon a weird trick, that could add up to $1,000 monthly to your social security checks, we knew we had to share it with you. Go to www.mybenefits511.com for more info.
Weird_Trick has quit [Killed (idoru (Spam is off topic on freenode.))]
fgo has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
<shevy> Oog hmm not sure I have ever seen that
<itadder> what
<itadder> I think you got wrong channel
<itadder> LOL
Rober9393 has quit [Client Quit]
<itadder> shevy: janestreet capital is were I want to work at
<shevy> Oog can you not redefine the signals?
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<itadder> now I got a goal in mind
<shevy> itadder I have no idea what janestreet capital is
<itadder> learn programing,
<itadder> it a hedgefund / tech firm
<shevy> why do you want to learn programming
<itadder> becuase I want to slove problems
<Oog> shevy: redefine signals?
<itadder> I am always think if problems that if I was good at programing I could automate or fix it
marcdel has joined #ruby
<shevy> Oog well the Signal invokes the code block it recieves there
<shevy> so there must be a way to undo this, or to overwrite it
Fyyr13_ has quit [Ping timeout: 252 seconds]
zcreative has joined #ruby
kyle__ has joined #ruby
diegoviola has joined #ruby
<itadder> I downloaded this cool mac app called takeoof it bassicaly a gui manual for any lang Ruby 1.9 and 2.0
<itadder> has a list on the right and you can search for methods and offline get ifnromation
<shevy> go learn how to write such an app itadder
<pskosinski> Anyone knowing "current state" of Ruby GUI libraries? Still GTK+ 2 being the only sane?
Rober9393 has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
<itadder> what aboutmacruby pskosinski
sethen has joined #ruby
<itadder> that uses cocoa
<apeiros> I'm confused - how can politicians in washington reduce my social security payouts?
<apeiros> I don't even live in the US!
<itadder> LOL
<itadder> they are corrupt
<shevy> apeiros they steal the chocolate
<shevy> social unrest will be the result
<atmosx> hello
<shevy> the amount of sick people will increase
<shevy> which costs more money
<atmosx> chocolate hm
<shevy> DO NOT ALLOW THEM TO GET AWAY WITH YOUR CHOCOLATE!
kenneth has joined #ruby
<shevy> atmosx are you still railsing
<shevy> I have to "master" R in about 2 months :(
Fyyr13_ has joined #ruby
<apeiros> that's amazing. mastering something takes 10000 hours
<itadder> the last group I upgraded to 3.7 ghz xeon 12 core with 32 gigs of ram
<itadder> use 64 bit windows version of Rlang
<pskosinski> itadder: Working only with Macruby so even worse than Shoes (working only with JRuby) :(
<apeiros> 2 months is only ~1500h
<atmosx> shevy: not really, I was out for a drink with friends now came back and playing with my RPi (the 4th actually)
binw_ has quit [Read error: Connection reset by peer]
<itadder> I think rlang is a great lang
<shevy> hehe
Rober9393 has quit [Client Quit]
<shevy> itadder what is rlang
<itadder> shevy: out of all the groups that I upgraded, this was my fav and most nicest
<atmosx> why is erlang a great language?
<itadder> R lang is a stats lang
axsuul has quit [Ping timeout: 244 seconds]
<shevy> every group is nice in your eyes itadder :P
<itadder> it great becuase you don't need matlab
tomshafer has quit []
<shevy> well, at the campus people used both R and matlab
<itadder> To purchase matlab, all you need is knowledge of R lang and free tools
<shevy> but I think matlab is closed source
<itadder> yea in college they an afford it
<itadder> Yes
NalloK has joined #ruby
<itadder> R is great to collect stats
<havenwood> itadder: doesn't seem very paradoxical to me :P, but here's some birthday paradox in Ruby: https://gist.github.com/havenwood/9423852
<itadder> anyways they got a power machine 32 gigs of ramn 12 core xeon
NalloK has quit [Max SendQ exceeded]
<itadder> havenwood: ahh thanks
<itadder> you rock
CorySimmons has joined #ruby
<havenwood> itadder: no prob ;)
<shevy> lol
<itadder> I am such a nerd, simple thigns make me happy
<shevy> so this is what havenwood is doing
<shevy> random scripts for people
<itadder> plus the one asian girl who does R all day in her office is pretty nice
meatherly has joined #ruby
<shevy> havenwood write me a script that fills my brain with all knowledge available of R please
renderful has quit [Remote host closed the connection]
<itadder> She calls me directly yesterday, asking about the size of the new monitors.
axl_ has joined #ruby
<itadder> I told her to ask the support team to upgrade her to three 23 inch monitors
<shevy> three monitors
<shevy> does she have like 6 eyes
<itadder> she can't fit more
Fyyr13_ has quit [Ping timeout: 240 seconds]
<itadder> She realy has no need, but the company is upgrading people this quater
<itadder> last chance
<itadder> right now she has two 19 inch screens, this is a upgrade
cashnguns has quit [Remote host closed the connection]
<itadder> anyways she got her own office now, that is so uber cool... She can code all day and answer emails and avoid others :(
<itadder> I wish I could do that
<itadder> shevy: did you matlab in college
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<itadder> When I took calculus 1 and 2, our school required we use matlab for two assigments.
binw has joined #ruby
<itadder> it was part of 101 courses for Math and eng student to take a matlab course
ephemerian has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
troyready has quit [Quit: Leaving]
<itadder> havenwood: again thanks
fgo has quit [Remote host closed the connection]
<itadder> let me run this code and figure out the lgoic
<havenwood> itadder: updated it to remove Rational fail >.>
renderfu_ has joined #ruby
guilleiguaran has quit [Quit: Connection closed for inactivity]
<havenwood> thought for a second a Rational would look nice, then realized how much that won't work :P
NalloK has joined #ruby
<shevy> itadder I never did matlab
bradhe has quit [Remote host closed the connection]
NalloK has quit [Max SendQ exceeded]
itamaryu has quit [Quit: Connection closed for inactivity]
<itadder> oh I had a old school ex navy seal calculus teacher LOL
<itadder> He said just hand in anything and i will say it was done
<itadder> He said I have no clue I am not a programmer. LOL he was civial eng by trade and teacher by night
<atmosx> gonna grab stephenson's quicksilver and crash to bed. Later all :-)
<itadder> my calculus 2 professor was like all over this, and said he would graded carefully.. All they wanted was the source code and a graph, but most people just copied the source code..
toretore has quit [Quit: This computer has gone to sleep]
<itadder> what attr_reader is that attirbute reader
tastycakeman has joined #ruby
<tastycakeman> hello, i have question on how to multiply two arrays and get an array of the products
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tastycakeman> with two arrays of different lengths, wanting to filter based on if keys match
<tastycakeman> ive searched all over and no luck :( i am ruby nooby
<centrx> Your question is not well-defined.
<tastycakeman> [[a, 1], [b, 2]] * [[a,1], [b,4]]
Mongey has joined #ruby
<tastycakeman> returns [1, 8]
<tastycakeman> does that make sense?
devyn has quit [Remote host closed the connection]
<centrx> a and b are ignored?
<tastycakeman> yup
baroquebobcat has joined #ruby
<tastycakeman> but it checks to see if a and b match
<tastycakeman> while traversing through the arrays
pothibo has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
<tastycakeman> basically, it's [[date 1, 1], [date2, 2], [date3, 3]] * [date1, a], [date2, b], [date3, c]] = [1a, 2b, 3c]
<tastycakeman> im not sure if i can use zip
<centrx> Well here's one way to do it
<tastycakeman> does ruby do stuff like this?
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
vt102 has quit [Ping timeout: 244 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
jonathanwallace has quit [Quit: ZNC - http://znc.in]
axsuul has joined #ruby
zorak has joined #ruby
axsuul has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
<centrx> tastycakeman, Yes it should be fairly simple, just have to figure out the best way to do it
<tastycakeman> merge first, and then do the operation?
havenwood has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
razrunel_ has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<centrx> tastycakeman, Hash[array1].merge(Hash[array2]) { |k,o,n| o*n }.keep_if { |k,v| (Set.new(array1) & Set.new(array2)).include?(k) }
<centrx> tastycakeman, That's one way to do it. Of course the variables should be defined ahead of time for performance
<tastycakeman> hmm, ok, let me digest this to see if i understand
axsuul has joined #ruby
<centrx> tastycakeman, Also there is definitely a nicer way with more thinking
axsuul has quit [Max SendQ exceeded]
<tastycakeman> what if speed is the goal?
_reset has quit [Quit: Leaving...]
cashnguns has joined #ruby
NalloK has joined #ruby
Waheedi has quit [Quit: Waheedi]
NalloK has quit [Max SendQ exceeded]
Salve has joined #ruby
<tastycakeman> Hash[@repeat_backers_weekly].merge(Hash[@user_weekly])
<tastycakeman> oops
<tastycakeman> my keys are different
<tastycakeman> hm
havenwood has quit [Ping timeout: 240 seconds]
<tastycakeman> oh wait
<tastycakeman> ok
alvaro_o has quit [Quit: Ex-Chat]
<tastycakeman> twist!
axsuul has joined #ruby
<tastycakeman> what if i want to go starting backwards
<tastycakeman> from the end…
<tastycakeman> .reverse
axsuul has quit [Max SendQ exceeded]
<centrx> How would that change anything?
axsuul has joined #ruby
<tastycakeman> because there are gaps in the keys of each hash
axsuul has quit [Max SendQ exceeded]
razrunel_ has quit [Ping timeout: 264 seconds]
<centrx> tastycakeman, gaps?
<tastycakeman> so technically, what should happen is it comes across date1, and checks the other list until it finds date1?
<tastycakeman> date1 being the shared key
<tastycakeman> but that doesnt seem very practical
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<tastycakeman> so in other words, one is [date1, date2, date5, date8]
<tastycakeman> while another is [date2, date3, date4, date8]
Rober9393 has joined #ruby
axsuul has joined #ruby
<centrx> tastycakeman, So?
<tastycakeman> hmm i guess what i should do here is clean up the data first, and not deal with it while merging
axsuul has quit [Max SendQ exceeded]
zachallett has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Salve has quit [Ping timeout: 264 seconds]
<tastycakeman> oh sweet
<tastycakeman> cool it kind of worked
<tastycakeman> TIL!
<tastycakeman> today i learned about math...
<tastycakeman> woohooo
axsuul has joined #ruby
rbartos has quit [Ping timeout: 244 seconds]
<centrx> multiplication is commutative?
axsuul has quit [Max SendQ exceeded]
jonathanwallace has joined #ruby
axsuul has joined #ruby
browndawg has joined #ruby
<tastycakeman> im actually dividing
<zorak> how can i make a simbol with spaces?
<tastycakeman> thanks centrx woot woot
<zorak> i have this
<zorak> movies = { titanic: 4,
<zorak> superman_2: 2
<zorak> }
YamakasY has joined #ruby
<zorak> but i want superman_2 to be superman 2
<centrx> zorak, Use hash rocket notation for that one item: :"superman 2" => 2
Faris has quit [Quit: Nettalk6 - www.ntalk.de]
zachallett has quit [Ping timeout: 264 seconds]
mehlah has quit [Quit: Leaving...]
kyle__ has quit [Read error: Operation timed out]
<zorak> thanks, its very ugly but work :)
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
yubrew has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
<shevy> hehe
Solnse has joined #ruby
snath has joined #ruby
CorySimmons has quit [Quit: Zzz...]
Es0teric has quit [Ping timeout: 265 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Ping timeout: 240 seconds]
dik_dak has quit [Quit: Leaving]
razrunelord has quit []
yubrew has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
saarinen has quit [Quit: saarinen]
Es0teric has joined #ruby
<Rober9393> Hi, I'm trying to get dotenv to executing interpolated commands in a docker container. The code is pretty straightforward, a cant seems to understrand why it is not working.
Spami has quit [Quit: This computer has gone to sleep]
agjacome has joined #ruby
<Rober9393> any idea ?
Ox6abe has joined #ruby
momigi has joined #ruby
jzig has quit [Remote host closed the connection]
crystal77 has joined #ruby
<Ox6abe> I have a rake file runs 'ruby src/file.rb somefile.txt' but in the script it is not finding the file ... Any ideas?
renderfu_ has quit [Remote host closed the connection]
<Ox6abe> rakefile that runs*
<Ox6abe> in the script ARGV.first is somefile.txt but I am getting a load error when I call File.readlines
<shevy> Ox6abe can you pastie the code
Hanmac has quit [Ping timeout: 252 seconds]
<Ox6abe> sure
<shevy> also I would use: if File.exist? before trying to use File.readlines
<Ox6abe> let me try that
njection has joined #ruby
<shevy> and when the file was not found, display what is instead displayed
momigi has quit [Ping timeout: 264 seconds]
<shevy> it is rarely a good idea to use ARGV.first directly; I would use a method instead, and work on the input given to that method
<shevy> *display what is instead found
dseitz has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
<kennym> given that Ruby 2.x (MRI) provides apparently good support for threads, can you recommend an event library/framework which makes use of those capabilities?
<kennym> EventMachine does not support Ruby 2.x
pu22l3r has joined #ruby
Lewix has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has quit []
mikepack has joined #ruby
fgo has joined #ruby
<platzhirsch> How do I test file objects, I could use StringIO, right?
sarmiena_ has quit [Quit: sarmiena_]
devyn has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
zcreative has joined #ruby
<platzhirsch> shevy: wake up
mercwithamouth has quit [Ping timeout: 240 seconds]
<platzhirsch> Dude, you cannot fall at sleep all the time in front of a computer
<kennym> platzhirsch: test them for what?
<platzhirsch> kennym: mh, just .read
<platzhirsch> yeah I meant that's waht StringIO was built for
<platzhirsch> Built to spill
markisonfire has quit [Quit: markisonfire]
CorySimmons has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
chipotle has joined #ruby
lutfidemirci has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
Oog has quit []
axsuul has joined #ruby
havenwood has joined #ruby
axsuul has quit [Max SendQ exceeded]
Spami has joined #ruby
axsuul has joined #ruby
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
amclain has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy> platzhirsch I have no idea, I never had to test file objects before
<platzhirsch> This is outrageous
* platzhirsch shakes the channel corners
Hanmac has joined #ruby
<shevy> platzhirsch I am rewriting class Extracter right now; there was some bug I added, debugging takes too long and is too painful so I must rewrite
bthesorceror has joined #ruby
axsuul has joined #ruby
<platzhirsch> nice, refactoring
axsuul has quit [Max SendQ exceeded]
Shidash has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
mary5030 has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
<shevy> :(
<shevy> I hate that
<shevy> I need to write code so that I never have to do any kind of refactoring or rewriting again
<centrx> Ask bad questions, get bad answers.
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rankine has joined #ruby
<ceej> I'm trying to understand threads a bit better right now I have https://gist.github.com/45f990ddc7d1e6cdc3d4 (which I know isn't correct) I'm basically trying to get what is in the second thread to run before what's at the button of the outer thread gets run
james_d_h has joined #ruby
ndrei has joined #ruby
<Ox6abe> Fixed it ... Thanks guys
havenwood has quit [Read error: Connection reset by peer]
<Ox6abe> and girls ...
<platzhirsch> shevy: I think rewriting is the core, also in literature or when writing texts
Krajsnick has joined #ruby
<Rober9393> I'm trying to get dotenv to executing interpolated commands in a docker container. dotenv code is pretty straightforward, a cant seems to understrand why it is not working.
havenwood has joined #ruby
sailias has joined #ruby
renderful has joined #ruby
pu22l3r has joined #ruby
mwmnj has joined #ruby
chrisramon has joined #ruby
zacts has joined #ruby
CreativeEmbassy has joined #ruby
Krajsnick has quit [Ping timeout: 240 seconds]
bry4n_ has joined #ruby
Rober9393 has quit [Quit: Computer has gone to sleep.]
mgomezch has quit [Ping timeout: 265 seconds]
griffindy has joined #ruby
senayar_ has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<itadder> oh wow I feel alssep
<itadder> took a small nap
momigi has joined #ruby
<platzhirsch> itadder: woot
<platzhirsch> I nap to, in the morning. First thing I do before I get up
<platzhirsch> too
NalloK has joined #ruby
danshultz has joined #ruby
toastynerd has joined #ruby
bry4n_ has quit [Ping timeout: 264 seconds]
<itadder> so what new
jxf has quit [Ping timeout: 240 seconds]
griffindy has quit [Client Quit]
NalloK has quit [Max SendQ exceeded]
<shevy> is there a way to send a specific signal by code?
senayar has quit [Ping timeout: 240 seconds]
<platzhirsch> itadder: not much, I used IOString to test a class which deals with file objects
<itadder> cool
<platzhirsch> mh, yes I reckon so
<shevy> I know you can trap them like via Signal.trap('SIGINT'), no idea how to invoke a specific signal
michael_lee has joined #ruby
<platzhirsch> shevy: maybe with exit(code) ? :|
alexju has quit [Remote host closed the connection]
<platzhirsch> >> Signal.list
<eval-in> platzhirsch => {"EXIT"=>0, "HUP"=>1, "INT"=>2, "QUIT"=>3, "ILL"=>4, "TRAP"=>5, "ABRT"=>6, "IOT"=>6, "FPE"=>8, "KILL"=>9, "BUS"=>7, "SEGV"=>11, "SYS"=>31, "PIPE"=>13, "ALRM"=>14, "TERM"=>15, "URG"=>23, "STOP"=>19, "TS ... (https://eval.in/115995)
<platzhirsch> Look ma, exit codes
<platzhirsch> shevy: like this, too Process.kill("INT", 0)
<platzhirsch> lol, barf
byprdct has joined #ruby
lutfidemirci has quit [Read error: Connection reset by peer]
axsuul has quit [Read error: Connection reset by peer]
<platzhirsch> so for that I have interrupted my radio stream, not cool
<itadder> sory
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<platzhirsch> hah
NalloK has joined #ruby
axsuul has joined #ruby
NalloK has quit [Max SendQ exceeded]
axl_ has quit [Quit: axl_]
<havenwood> >> Signal.signame(nil.object_id.object_id)
<eval-in> havenwood => "KILL" (https://eval.in/115996)
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
<platzhirsch> darn and I hoped the bot dies
hermanmunster has joined #ruby
axl_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
Salve has joined #ruby
<platzhirsch> eval-in: why you no die?
senayar_ has quit [Remote host closed the connection]
jamto11 has joined #ruby
Megtastique has quit []
tastycakeman has quit [Quit: Leaving.]
<havenwood> platzhirsch: ptrace sandbox
jxf has joined #ruby
<platzhirsch> I thought sandboxing defeats the purpose of using Ruby in the first place
Megtastique has joined #ruby
kyle__ has joined #ruby
yubrew has joined #ruby
<havenwood> platzhirsch: how so?
vlad_starkov has joined #ruby
<platzhirsch> that's what shevy said
achru has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
Salve has quit [Ping timeout: 240 seconds]
hermanmunster has quit [Remote host closed the connection]
Megtastique has quit [Client Quit]
hermanmunster has joined #ruby
sputnik13 has quit [Ping timeout: 265 seconds]
hermanmunster has quit [Read error: No route to host]
hermanmu_ has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
<RubyPanther> I thought the purpose of using Ruby was so that my code is human-oriented instead of machine-oriented
<RubyPanther> how does a sandbox change my orientation?
vlad_starkov has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<centrx> That's a silly question.
<platzhirsch> RubyPanther: this goes pretty much back to Heisenberg principle
thomasxie has left #ruby [#ruby]
<platzhirsch> You cannot judge the actual orientation until you look on it from the outside
fgo has quit [Remote host closed the connection]
<RubyPanther> the cat is an observer
<RubyPanther> Ruby will see what I do, even if I don't
ce_afk is now known as cescalante
fgo has joined #ruby
<platzhirsch> notify()
fgo has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 244 seconds]
jamto11 has quit [Remote host closed the connection]
crystal77 has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
arubin has joined #ruby
cescalante is now known as ce_afk
jjbohn has quit [Quit: Leaving...]
CorySimmons has quit [Quit: Zzz...]
havenwood has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
Zunonia_ has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
Fyyr13_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
joelroa has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
marcdel has joined #ruby
decoponio has joined #ruby
paolooo has joined #ruby
mikepack_ has joined #ruby
Lewix has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
Lewix has joined #ruby
Fyyr13_ has quit [Ping timeout: 244 seconds]
Subsentient has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
keen____ has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
strider24 has joined #ruby
keen___ has quit [Ping timeout: 265 seconds]
r0bby has joined #ruby
achru has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 264 seconds]
bthesorceror has quit [Remote host closed the connection]
Speed has joined #ruby
chrisramon has quit [Quit: chrisramon]
villainous has joined #ruby
rootshift_ has joined #ruby
<zorak> Hi, i have this litte script to learn CRUB (creatu, update...) http://pastebin.com/HL1HkcPB
pskosinski has quit [Ping timeout: 265 seconds]
villainous has left #ruby [#ruby]
<zorak> and want to make the last part of the code come back to the beggining if none of the inputs of the user are valids
rootshift_ is now known as rootshift
pskosinski has joined #ruby
jxf has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
<centrx> zorak, Use a do-while loop (begin..end while)
<arubin> zorak: Wrap the entire thing in a while loop.
mary5030 has joined #ruby
<zorak> thanks! reading about while loops
Zunonia_ has quit [Quit: Computer has gone to sleep.]
radic has quit [Disconnected by services]
radic_ has joined #ruby
Zunonia_ has joined #ruby
<bnagy> I don't like em imho
bluehavana_ has quit [Quit: Connection closed for inactivity]
closures999 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<bnagy> I find infinite loops with break conditions easier to read
<bnagy> also you can have more complex break conditions without cluttering up your loop headline
mary5030 has quit [Ping timeout: 252 seconds]
kyle__ has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 264 seconds]
itadder has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 265 seconds]
Zunonia_ has quit [Ping timeout: 265 seconds]
guilleiguaran has joined #ruby
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
deadlock has quit [Ping timeout: 240 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
pskosinski has joined #ruby
<zorak> or is || right?
<zorak> i add this line
<zorak> while choice != "add" || "display" || "update" || "delete" do
<zorak> but im getting an error
marcdel has joined #ruby
yubrew has joined #ruby
marcdel has quit [Client Quit]
<centrx> "an" error?
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
xjiujiu has joined #ruby
braincrash has quit [Quit: bye bye]
deadlock has joined #ruby
Salve has joined #ruby
<zorak> (ruby):14: warning: string literal in condition
redlines has quit [Ping timeout: 240 seconds]
senseinerd has joined #ruby
deadlock has quit [Max SendQ exceeded]
<zorak> this, in codeacademy
<zorak> 15: warning: string literal in condition
<zorak> this one in irb
deadlock has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
<bnagy> yeah you can't do logic like that
yubrew has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
<zorak> and keel looping even when choice is one of the options
deadlock has quit [Max SendQ exceeded]
cjsarette has quit [Ping timeout: 245 seconds]
<bnagy> yes because you have an infinite loop
<bnagy> that's why it's warning you :)
<arubin> zorak: You must use something like choice != "add" && choice != "display"
<bnagy> rewrite it so your loop looks like until valid_choices.include? choice
njection_ has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
mattmcclure has joined #ruby
<zorak> bnagy: i didn't know valid_choices
cjsarette has joined #ruby
<zacts> for a newbie ruby user, should I use RVM or rbenv? (I'm using this exclusively for an octopress blog).
<bnagy> you will have to create that array, yes
<bnagy> zacts: chruby >= rbenv > rvm
<zorak> with the example of arubin works perfect
<zacts> bnagy: ok, thanks.
<bnagy> zorak: probably, but it's ugly as sin
<zorak> but i find this code a litte reduntant
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<bnagy> in general you should try not to have conditionals with negative conditions ( yes there are a few exceptions )
xjiujiu has joined #ruby
<zorak> thanks arubin
northfurr has quit [Ping timeout: 244 seconds]
njection has quit [Ping timeout: 265 seconds]
<bnagy> and prefer the inverted conditionals ruby gives you - while / until, if / unless
mikepack_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby
mikepack has joined #ruby
NalloK has joined #ruby
marcdel has joined #ruby
NalloK has quit [Max SendQ exceeded]
CaptainJet has quit []
<zorak> and how i mae that at the end of each case return to the begging of the code?
<bnagy> with a loop
iliketurtles has quit [Client Quit]
<RubyPanther> ugg, procedural programming in Ruby :(
mikepack has quit [Ping timeout: 240 seconds]
<RubyPanther> every time you code that way, a unicorn farts a dead kitten instead of a rainbow
<arubin> zorak: Consider: while foo = gets do puts foo end
NalloK has joined #ruby
senseinerd has quit [Quit: Textual IRC Client: www.textualapp.com]
<arubin> RubyPanther: Every time a FP advocate complains about procedural programming without offering any actual advice, no one learns anything, and they continue to write procedural code.
NalloK has quit [Max SendQ exceeded]
Nyyx has quit [Ping timeout: 252 seconds]
<centrx> In this case, it's not even object-oriented code
sparrovv has joined #ruby
<arubin> centrx: Well, I assume that he wants zorak to use a FP construct instead of a while loop.
<zorak> relax, this is juts like mi first hundren lines of code
sepp2k has quit [Read error: Connection reset by peer]
rezzack has quit [Ping timeout: 240 seconds]
<zorak> didn't even now what FP means
<RubyPanther> arubin: luckily in Ruby we use OO not FP
<arubin> RubyPanther: Then perhaps I was mistaken about your complaint.
mlpinit has joined #ruby
<RubyPanther> If you're using Perl, procedural style isn't even bad.
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
zrl__ is now known as zrl
sparrovv has quit [Ping timeout: 265 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
joelroa has joined #ruby
r0bby has quit [Ping timeout: 245 seconds]
xjiujiu has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
brady2600 has joined #ruby
renderful has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
Mongey has quit [Quit: Mongey]
jetblack has joined #ruby
seggy has joined #ruby
ZoanthusR has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
agarie_ has quit [Quit: Leaving...]
axsuul has joined #ruby
<zorak> thans guys and girls, i think im going to bed now
<zorak> cya tomorrow
sindork_ is now known as sindork
sindork has quit [Changing host]
sindork has joined #ruby
mikepack has joined #ruby
mikepack_ has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
Vovko has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
segmond has quit [Ping timeout: 252 seconds]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
segimondu has joined #ruby
zorak has quit [Ping timeout: 269 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
bthesorceror has joined #ruby
xjiujiu has joined #ruby
segimondu has quit [Read error: Connection reset by peer]
segimondu has joined #ruby
strider24 has quit [Ping timeout: 240 seconds]
marcdel_ has joined #ruby
seggy has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 240 seconds]
snuffeluffegus has quit [Quit: Leaving]
<brady2600> what does the average person use ruby for?
<centrx> Cleaning my toenails
Biohazard has quit [Ping timeout: 245 seconds]
marcdel_ has quit [Client Quit]
MrJoshua has quit [Read error: Connection reset by peer]
Biohazard has joined #ruby
<havenwood> brady2600: take a look at some categories of gems, a variety of things: https://www.ruby-toolbox.com/categories/by_name
Krajsnick has joined #ruby
<havenwood> brady2600: nothing specific comes to mind, it is a general purpose programming language
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
<brady2600> is it possible to automate a browser? as if a user is using it, but programmatically?
<brady2600> woops programatically
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
CreativeEmbassy has joined #ruby
MrJoshua has joined #ruby
<havenwood> brady2600: Though it might be mechanize that best suits your task, you'd have to say more: http://mechanize.rubyforge.org/
<arubin> brady2600: Watir is a popular option for that.
Krajsnick has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
<brady2600> nice. thanks for the recommendations on that. Thats something I've been wondering how to do for quite some time. I found a java library that does that but was wondering if there were other options.
<havenwood> brady2600: lots of nice options in Ruby ;)
joelteon has quit [Changing host]
joelteon has joined #ruby
<arubin> brady2600: There are Selenium libraries in most popular languages.
jaimef has quit [Ping timeout: 264 seconds]
<brady2600> I guess ruby is interpreted and not compiled?
<arubin> Oh no.
<arubin> Now you have done it.
NalloK has joined #ruby
pu22l3r has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<brady2600> lol am I unknowingly asking an antagonistic question
NalloK has quit [Max SendQ exceeded]
axl_ has joined #ruby
<RubyPanther> brady2600: No, Ruby is clearly interpreted. Except mRuby it gets blurry with compiled bytecode.
Xuerian has quit [Read error: Operation timed out]
bthesorceror has quit [Remote host closed the connection]
pu22l3r has joined #ruby
shadoi1 has quit [Quit: Leaving.]
bthesorceror has joined #ruby
<brady2600> is there a virtual machine or is that just a java thing?
yubrew has joined #ruby
mwmnj has quit [Ping timeout: 244 seconds]
Nyyx has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
m104 has joined #ruby
<arubin> brady2600: There is.
xjiujiu has joined #ruby
marienz has quit [Ping timeout: 600 seconds]
<arubin> Assuming that you are referring to the MRI implementation.
marienz has joined #ruby
toastynerd has joined #ruby
platzhirsch has left #ruby [#ruby]
<bnagy> all interpreters use a VM afaik
<bnagy> like the major implementations are MRI ( reference ) JRuby, Rubinius
bthesorceror has quit [Ping timeout: 244 seconds]
Jetchisel has joined #ruby
<bnagy> which all include a VM somewhere
<arubin> bnagy: What about MacRuby?
<bnagy> didn't know anybody used it :/
<arubin> Or its cousin, RubyMotion.
yubrew has quit [Ping timeout: 240 seconds]
agjacome has quit [Ping timeout: 265 seconds]
<bnagy> oh, macruby is on LLVM anyway
renderful has quit [Remote host closed the connection]
<bnagy> although llvm is, uh, lower level ( hence the name )
Es0teric has quit [Quit: Computer has gone to sleep.]
<brady2600> well i mean, when you go to a java site, you'll need the vm, but I've never had to install a ruby vm so I was wondering whats up with that. I guess its executed server side?
BackEndCoder has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
timonv has joined #ruby
<bnagy> a VM can be lots of things
<arubin> brady2600: It is not a separate piece in Ruby.
havenwood has joined #ruby
<bnagy> basically it's just a processor abstraction that runs its own instruction set
<bnagy> so "MRI" has a roll-their-own one which runs their own ruby bytecode
<brady2600> i see the qtbindings and wxruby, so I guess you can make whole gui applications with it.
<bnagy> jruby emits for JVM, rubinius emits LLVM which gets compiled to native code
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
<bnagy> you can, but it's not particularly common from what I see ( full ruby gui apps )
Salve has joined #ruby
<brady2600> jruby, pardon me if I sound like an ass but why would somone learn ruby , to in turn, run it in the jvm?
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
timonv has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
<bnagy> you write ruby, how the computer runs it is not usually your primary concern as a programmer
shadoi has quit [Quit: Leaving.]
jaimef has joined #ruby
<arubin> brady2600: In some cases it can provide greater performance. In other cases one might work at a Java shop and wish to use a different language, but still require Java interop.
<bnagy> but ( IN MOST PEOPLE'S OPINION ) the JVM is a much better vm than YARV
Ox6abe has quit [Remote host closed the connection]
Lucky_Red has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
<bnagy> either way exactly the same ruby source should run on all interpreters
Guest9754 has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
toastynerd has quit [Remote host closed the connection]
rezzack has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
decoponio has quit [Quit: Leaving...]
kyle__ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
toastynerd has joined #ruby
axl_ has quit [Quit: axl_]
mgomezch has joined #ruby
kitak has joined #ruby
Xiti has quit [Quit: Leaving]
casheew has quit [Read error: Connection reset by peer]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
casheew has joined #ruby
xjiujiu has joined #ruby
kennym has quit [Quit: Leaving.]
achru has joined #ruby
paulfm has quit []
zcreative has joined #ruby
sigurding has joined #ruby
mlpinit has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
reactormonk has left #ruby ["WeeChat 0.4.1"]
Hanmac1 has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
brady2600 has left #ruby [#ruby]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Hanmac has quit [Ping timeout: 244 seconds]
xjiujiu has joined #ruby
eMBee has joined #ruby
<eMBee> good afternoon
Fyyr13_ has joined #ruby
<eMBee> how do i install a gem that builds bindings for a library in a nonstandard location?
toastynerd has quit [Remote host closed the connection]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
iliketurtles has quit [Quit: zzzzz…..]
Fyyr13_ has quit [Ping timeout: 265 seconds]
aryaching_ has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
joelroa has joined #ruby
xjiujiu has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
<bnagy> most ruby bindings for external libs will either find the first one in the path, or have an ext/ dir in which you can put a copy
<Nyyx> macruby has been dead for quite a time
<bnagy> eg if you want to use a binary lib that's different to the one that's systemwide
NalloK has joined #ruby
philcrissman has quit [Remote host closed the connection]
NalloK has quit [Max SendQ exceeded]
Fyyr13_ has joined #ruby
philcrissman has joined #ruby
joelroa has quit [Ping timeout: 244 seconds]
fgo has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
jaimef has joined #ruby
achru has quit [Remote host closed the connection]
Fyyr13_ has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
kobain_ has quit []
sski has quit [Remote host closed the connection]
larsam has quit [Remote host closed the connection]
sski has joined #ruby
iliketurtles has joined #ruby
marcdel has joined #ruby
MrSamuel has joined #ruby
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
yubrew has joined #ruby
meatherly has quit [Remote host closed the connection]
<MrSamuel> Hi, I'm writing a custom container for file paths which include the root directory from which the paths are relative too, and this container includes Enumerable - is there any way to change the behaviour of the Enumerable mixin to not return arrays, but instances of my custom collection class instead?
meatherly has joined #ruby
longbynight has joined #ruby
sski has quit [Ping timeout: 244 seconds]
Es0teric has joined #ruby
<MrSamuel> basically, I want a custom array type
<centrx> inherit from Array?
<MrSamuel> I want the methods defined in Enumerable to use it
yubrew has quit [Ping timeout: 265 seconds]
meatherly has quit [Ping timeout: 240 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
<centrx> MrSamuel, For every object in your program?
<MrSamuel> I want my_custom_list.collect{...} to return a new instance of CustomContainer not Array.
<centrx> Possibly use Refinements
<pipework> Sounds like you need to make collect not do what it already does. I'd caution you to mind LSP.
koell has quit [Quit: So say we all!]
koell has joined #ruby
<MrSamuel> pipework: Yeah perhaps, I guess if you have a custom container and you do "collect" you'd possibly expect an instance of the custom container back
aryaching_ has quit [Ping timeout: 252 seconds]
<MrSamuel> Probably it can be argued both ways
razrunelord has joined #ruby
larsam has joined #ruby
culturelabs has joined #ruby
<eMBee> bnagy: the problem i have is that i have the library in my home directlry (installed locally without root) so it is not in the path. how do i add to the path?
cover has quit [Ping timeout: 264 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Salve has joined #ruby
xjiujiu has joined #ruby
vlad_starkov has joined #ruby
Hanmac has joined #ruby
longbynight has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 240 seconds]
Salve has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Ping timeout: 244 seconds]
Fyyr13_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
gnephiak has joined #ruby
razrunelord has quit [Remote host closed the connection]
benlieb has joined #ruby
echevemaster has joined #ruby
razrunelord has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
mikepack_ has quit [Remote host closed the connection]
Weems is now known as DrKinsey
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
hermanmu_ has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
xjiujiu has joined #ruby
razrunelord has quit [Ping timeout: 265 seconds]
bthesorceror has joined #ruby
kewubenduben has quit [Ping timeout: 240 seconds]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snuffeluffegus has joined #ruby
mlpinit has joined #ruby
tvw has joined #ruby
DrKinsey is now known as HugoChafez
NalloK has joined #ruby
mlpinit has quit [Ping timeout: 265 seconds]
NalloK has quit [Max SendQ exceeded]
joelroa has joined #ruby
HugoChafez is now known as HillaryCliton
hermanmunster has joined #ruby
HillaryCliton is now known as LeifEriDickson
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
lutfidemirci has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
LeifEriDickson is now known as TheBlackTaint
TheBlackTaint is now known as weems
kate_r has joined #ruby
<RubyPanther> eMBee: normally you would have to go to the unpacked gem directory, and run extconf.rb with some options... depending on the gem. Or, sometimes you can just set the LD_LIBRARY_PATH env variable to your library location: LD_LIBRARY_PATH=/my/lib/dir gem install foo
Hobogrammer has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
zcreative has quit [Quit: Computer has gone to sleep.]
quatron has joined #ruby
yubrew has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
davedev24 has quit [Remote host closed the connection]
xjiujiu has joined #ruby
Krajsnick has joined #ruby
whowantstolivef1 has joined #ruby
craigp has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 265 seconds]
yeticry has quit [Quit: leaving]
Hanmac has joined #ruby
DrCode has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
timonv has joined #ruby
Krajsnick has quit [Ping timeout: 244 seconds]
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
thomasxie has joined #ruby
craigp has joined #ruby
koell has quit [Read error: Connection reset by peer]
thomasxie has left #ruby [#ruby]
mrdtt_ has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Macaveli has joined #ruby
snuffeluffegus has joined #ruby
lolmaus_ has joined #ruby
bthesorceror has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 265 seconds]
amritanshu_RnD has joined #ruby
rezzack has quit [Quit: Leaving.]
frogsy has joined #ruby
amritanshu_RnD is now known as Guest85782
claymore has joined #ruby
ayaz has joined #ruby
ayaz has quit [Max SendQ exceeded]
lmickh has joined #ruby
ayaz has joined #ruby
ayaz has quit [Max SendQ exceeded]
absolutezeroff has joined #ruby
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
ktosiek has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
yasushi has joined #ruby
benlieb has quit [Quit: benlieb]
yasushi has quit [Remote host closed the connection]
Salve has joined #ruby
Hanmac1 has joined #ruby
momigi has quit [Remote host closed the connection]
momigi has joined #ruby
NalloK has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
NalloK has quit [Max SendQ exceeded]
Salve has quit [Ping timeout: 244 seconds]
nari has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
momigi has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 244 seconds]
xjiujiu has joined #ruby
evenix has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
Guest9754 has quit [Quit: Connection closed for inactivity]
achru has joined #ruby
meatherly has joined #ruby
strider24 has joined #ruby
nfk has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
tectonic has joined #ruby
xjiujiu has joined #ruby
markisonfire has joined #ruby
mlpinit has joined #ruby
meatherly has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
klaut_ has joined #ruby
sigurding has quit [Quit: sigurding]
ViciousPlant has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
yarou has quit [Remote host closed the connection]
thomasxie has joined #ruby
strider24 has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
ViciousPlant has quit [Read error: Connection reset by peer]
echevemaster has quit [Quit: Leaving]
evenix has quit [Remote host closed the connection]
achru has quit [Remote host closed the connection]
sarmiena_ has joined #ruby
evenix has joined #ruby
Guest76255 has left #ruby ["Textual IRC Client: www.textualapp.com"]
achru has joined #ruby
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
markisonfire has quit [Quit: markisonfire]
sigurding has joined #ruby
klaut_ has quit [Remote host closed the connection]
strider24 has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
evenix has quit [Ping timeout: 264 seconds]
randomnick_ has joined #ruby
yubrew has joined #ruby
quatron has quit [Ping timeout: 240 seconds]
quatron_ has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
quatron_ is now known as quatron
NalloK has joined #ruby
ayaz has joined #ruby
NalloK has quit [Max SendQ exceeded]
yubrew has quit [Ping timeout: 265 seconds]
yacks has quit [Ping timeout: 244 seconds]
skaflem has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
mostlybadfly has joined #ruby
toastynerd has joined #ruby
Lewix has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
yeticry has joined #ruby
deadlock has joined #ruby
xjiujiu has joined #ruby
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
decoponio has joined #ruby
CorySimmons has joined #ruby
ViciousPlant has joined #ruby
ViciousPlant has quit [Max SendQ exceeded]
m104 has quit [Quit: brb]
ViciousPlant has joined #ruby
ViciousPlant has quit [Max SendQ exceeded]
timonv has joined #ruby
m104 has joined #ruby
amclain_ has joined #ruby
yacks has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
makara has joined #ruby
Es0teric has joined #ruby
CorySimmons has quit [Ping timeout: 240 seconds]
NalloK has joined #ruby
randomnick_ has quit [Quit: Leaving]
NalloK has quit [Max SendQ exceeded]
amclain has quit [Ping timeout: 265 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
m104 has quit [Quit: brb]
meatherly has joined #ruby
xjiujiu has joined #ruby
julian` has quit [Ping timeout: 244 seconds]
Es0teric has quit [Ping timeout: 240 seconds]
mehlah has joined #ruby
marcdel has quit []
Salve has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
amclain_ has quit [Quit: Leaving]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
marcdel has joined #ruby
codezomb has joined #ruby
<codezomb> just wanted to say thanks here in #ruby for ruining me on other languages... I have to work in a c# project, and all I can do is cringe, and overanalyze ways to make the code look better.
timonv has quit [Remote host closed the connection]
blackmesa has joined #ruby
toastynerd has quit [Remote host closed the connection]
yasushi has joined #ruby
makara has quit [Ping timeout: 265 seconds]
Lewix has quit [Remote host closed the connection]
<certainty> codezomb: you're welcome
momigi has joined #ruby
yasushi has quit [Ping timeout: 244 seconds]
Fyyr13_ has quit [Remote host closed the connection]
Fyyr13_ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
momigi has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
User458764 has joined #ruby
mlpinit has joined #ruby
m104 has joined #ruby
User458764 has quit [Client Quit]
<codezomb> :)
mlpinit has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
m104 has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
yubrew has joined #ruby
koell has joined #ruby
Fyyr13__ has joined #ruby
mrdtt_ has quit [Ping timeout: 244 seconds]
oneawayman has joined #ruby
tvw has quit []
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
Fyyr13_ has quit [Ping timeout: 240 seconds]
oneawayman has quit [Client Quit]
Sirupsen has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
<eMBee> RubyPanther: thanks, i had to run extconf.rb manually with the directory as argument
oneawayman has joined #ruby
amritanshu_RnD has joined #ruby
<eMBee> if i run extconf.rb manually, how do i get the gem installed? after i run make install only the .so file is copied, and ruby still can't find the gem
amritanshu_RnD is now known as Guest44262
Macaveli has joined #ruby
guilleiguaran has quit [Quit: Connection closed for inactivity]
tfittsy has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Krajsnick has joined #ruby
Guest85782 has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
eregon has joined #ruby
gsvolt_ has joined #ruby
kalleth_ has joined #ruby
Coolhand has joined #ruby
miah_ has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patteh_ has joined #ruby
gtech_ has joined #ruby
wang_ has joined #ruby
matti_ has joined #ruby
asuka_ has joined #ruby
fudanchi1 has joined #ruby
Freijo has joined #ruby
peteyg has joined #ruby
ada2358_ has joined #ruby
oz` has joined #ruby
[BNC]pagioss has joined #ruby
Krajsnick has quit [Ping timeout: 240 seconds]
phansch has joined #ruby
phansch has quit [Client Quit]
lutfidemirci has quit [Remote host closed the connection]
lutfidemirci has joined #ruby
faulkner- has joined #ruby
cyphactor has joined #ruby
machuga_ has joined #ruby
jokke has quit [*.net *.split]
mnemon has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
Rudde has quit [*.net *.split]
Robbo_ has quit [*.net *.split]
gtech has quit [*.net *.split]
peteyg__ has quit [*.net *.split]
wang has quit [*.net *.split]
asuka has quit [*.net *.split]
fudanchii has quit [*.net *.split]
patteh has quit [*.net *.split]
miah has quit [*.net *.split]
ada2358 has quit [*.net *.split]
malcolmva has quit [*.net *.split]
Jelco has quit [*.net *.split]
zarul has quit [*.net *.split]
eregon_ has quit [*.net *.split]
pagioss has quit [*.net *.split]
gsvolt has quit [*.net *.split]
oz has quit [*.net *.split]
machuga has quit [*.net *.split]
adeponte has quit [*.net *.split]
Fraeon has quit [*.net *.split]
dideler_work has quit [*.net *.split]
Koshian_ has quit [*.net *.split]
faulkner has quit [*.net *.split]
niharvey has quit [*.net *.split]
matti has quit [*.net *.split]
tfitts has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
mbreit has quit [*.net *.split]
kalleth has quit [*.net *.split]
bauruine has quit [*.net *.split]
Macaveli has quit [Ping timeout: 253 seconds]
faulkner- is now known as faulkner
oz` is now known as oz
kitak has quit [Remote host closed the connection]
machuga_ is now known as machuga
zerox_ has joined #ruby
mnemon has joined #ruby
tectonic has quit []
weie has joined #ruby
bauruine has joined #ruby
Jelco has joined #ruby
zerox_ has quit [Client Quit]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Guest44262 has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
Guest44262 has joined #ruby
Vovko has joined #ruby
kennym has joined #ruby
Vovko has quit [Remote host closed the connection]
Vovko has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
malcolmva has joined #ruby
RubyPanther has joined #ruby
xjiujiu has joined #ruby
NalloK has joined #ruby
mbreit has joined #ruby
Robbo_ has joined #ruby
thomasxie has left #ruby [#ruby]
NalloK has quit [Max SendQ exceeded]
jokke has joined #ruby
zarul has joined #ruby
dideler_work has joined #ruby
Koshian_ has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
meatherly has joined #ruby
Umschwung has joined #ruby
jhass|off is now known as jhass
Krajsnick has joined #ruby
<Nilium> Note to self: just because I can write horrifying hacks to use _ to refer to sequential arguments to a block doesn't mean I should.
Salve has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
carraroj has joined #ruby
senayar has quit []
bal has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
Salve has quit [Ping timeout: 265 seconds]
deadlock has quit [Remote host closed the connection]
bal has joined #ruby
codeFiend has joined #ruby
strider24 has quit [Remote host closed the connection]
kevinykc_ has quit [Read error: Connection reset by peer]
codeFiend has quit [Client Quit]
kevinykchan has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
Fyyr13__ has quit [Remote host closed the connection]
mlpinit has joined #ruby
<pipework> Nilium: IRC is my distributed blogging platform, not yours.
timonv has joined #ruby
Macaveli has joined #ruby
<Nilium> Surprise: I am your subconscious.
<Nilium> I know all about the potted plants.
achru has quit [Remote host closed the connection]
achru has joined #ruby
billey has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
mlpinit has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
yubrew has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
achru has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
sputnik13 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
vlad_starkov has joined #ruby
jack_rabbit has joined #ruby
marcdel has quit []
lolmaus has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
<shevy> eMBee does extconf.rb build a gem?
sparrovv has joined #ruby
alexherbo2 has joined #ruby
timonv has quit [Remote host closed the connection]
closures999 has quit [Remote host closed the connection]
Astralum has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
klaut_ has joined #ruby
xjiujiu has joined #ruby
<eMBee> shevy: not that i can see, it builds an .so file and copies it somewhere
koell has quit [Quit: So say we all!]
grzywacz has joined #ruby
Macaveli has joined #ruby
koell has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
xjiujiu has quit [Client Quit]
xjiujiu has joined #ruby
<bnagy> eMBee: gem build blah.gemspec && gem install blah-*.gem
<bnagy> or something
Fyyr13_ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
NalloK has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
NalloK has quit [Max SendQ exceeded]
<shevy> eMBee yeah, I don't think extconf.rb will build a gem
Fyyr13_ has quit [Read error: Connection reset by peer]
<shevy> eMBee that is what confused me because you asked how to get a gem installed, yet use extconf.rb
Fyyr13_ has joined #ruby
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
NalloK has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
NalloK has quit [Max SendQ exceeded]
<sigurding> any openstruct pros here who can tell me, why this recursive openstruct to hash method does not work: https://gist.github.com/jhiemer/c325d668f4cea9c35484 ?
xjiujiu has joined #ruby
Fyyr13__ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
CorySimmons has joined #ruby
<sigurding> found it
<sigurding> object.to_h.each was missing
<sigurding> ..
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Thanatermesis has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
CorySimmons has quit [Ping timeout: 240 seconds]
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
siwica has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
compleatang has quit [Remote host closed the connection]
Macaveli has joined #ruby
<eMBee> i needed to patch extconf.rb
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
meatherly has joined #ruby
Krajsnick has quit [Quit: Leaving...]
xjiujiu has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
blackmesa has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
NalloK has joined #ruby
Salve has joined #ruby
sparrovv has quit [Remote host closed the connection]
Macaveli has quit [Client Quit]
NalloK has quit [Max SendQ exceeded]
relix has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 240 seconds]
Fyyr13_ has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
kitak has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Azulinho has joined #ruby
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
* eMBee needs to spend some more time learning about gems, thanks
Fyyr13__ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
popl has joined #ruby
popl has joined #ruby
philcrissman has joined #ruby
yubrew has joined #ruby
lmickh has quit [Remote host closed the connection]
achru has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mlpinit has joined #ruby
axl_ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
francisfish has joined #ruby
fgo has joined #ruby
monkegjinni has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Fyyr13_ has quit [Read error: Connection reset by peer]
philcrissman has quit [Ping timeout: 240 seconds]
Fyyr13_ has joined #ruby
xjiujiu has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 240 seconds]
<shevy> eMBee if you need a gem, you need a .gemspec file
monkegjinni has quit [Ping timeout: 244 seconds]
Fyyr13_ has joined #ruby
Fyyr13__ has quit [Read error: Connection reset by peer]
shime has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13__ has joined #ruby
msch has joined #ruby
postmodern has quit [Quit: Leaving]
timonv has joined #ruby
Fyyr13_ has joined #ruby
Fyyr13___ has joined #ruby
Fyyr13__ has quit [Ping timeout: 264 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Fyyr13___ has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Ping timeout: 264 seconds]
Fyyr13__ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
closures999 has joined #ruby
Fyyr13_ has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
closures999 has quit [Remote host closed the connection]
yeticry has joined #ruby
workmad3 has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
Fyyr13_ has joined #ruby
ikaros has joined #ruby
grzywacz has quit [Quit: :wq]
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Fyyr13__ has quit [Ping timeout: 264 seconds]
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
twiceaday has quit [Ping timeout: 264 seconds]
twiceaday has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Umschwung has quit []
Fyyr13_ has joined #ruby
timonv has quit [Remote host closed the connection]
roolo has joined #ruby
Fyyr13__ has joined #ruby
Fyyr13___ has joined #ruby
Umschwung has joined #ruby
Fyyr13_ has quit [Ping timeout: 264 seconds]
Fyyr13___ has quit [Read error: Connection reset by peer]
NalloK has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Fyyr13_ has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
xjiujiu has joined #ruby
NalloK has quit [Max SendQ exceeded]
Fyyr13__ has quit [Ping timeout: 264 seconds]
thesheff17_ has joined #ruby
achru has quit [Remote host closed the connection]
mojjojo has joined #ruby
oneawayman has quit [Ping timeout: 240 seconds]
achru has joined #ruby
tesuji has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13_ has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Fyyr13_ has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
Fyyr13_ has joined #ruby
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
Fyyr13__ has quit [Remote host closed the connection]
CorySimmons has joined #ruby
Fyyr13_ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
shevy has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
francisfish has quit [Remote host closed the connection]
achru_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
ndrei has joined #ruby
CorySimmons has quit [Ping timeout: 252 seconds]
achru has quit [Ping timeout: 241 seconds]
shevy has joined #ruby
rootshift has joined #ruby
sigurding has quit [Quit: sigurding]
meatherly has joined #ruby
surtin has joined #ruby
surtin has quit [Client Quit]
Salve has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
surtin has joined #ruby
surtin has quit [Client Quit]
meatherly has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
bluOxigen has joined #ruby
elaptics`away is now known as elaptics
Salve has quit [Ping timeout: 240 seconds]
<Xeago> shevy: how do you download and install many gems easily?
yubrew has joined #ruby
<Xeago> I'm trying to build a portable package of puppet
<Xeago> so I can do the following: 1. have ruby, 2. run gem install *.gem, 3. puppet works
mercwithamouth has joined #ruby
<Xeago> thing is, puppet (the gem) has various dependencies
<Xeago> I don't want to download them manually
james_d_h has joined #ruby
<Xeago> and I don't want to install the gem
<Xeago> I just want the .gem's puppet depends on
phansch has joined #ruby
<Xeago> is there some secret gem command that only downloads the gem (and dependencies)?
achru_ has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
klaut_ has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
NalloK has joined #ruby
xjiujiu has joined #ruby
NalloK has quit [Max SendQ exceeded]
francisfish has joined #ruby
james_d_h has quit [Ping timeout: 265 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
mlpinit has joined #ruby
dseitz has joined #ruby
Advocation has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
compleatang has joined #ruby
<certainty> Xeago: gem fetch can download gems, but i don't think it also fetches all deps
<shevy> Xeago, try: gem fetch - that should work to just fetch the ,gem without installing it
<shevy> and getting the deps via gem dependency --reverse-dependencies
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
Speed has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
<shevy> so probably a simple ruby script that collects all the deps like that should suffice
<shevy> my connection is awful, sorry
<shevy> test
<certainty> now it's your connection :p
<shevy> man
<shevy> I should never have switched ISP provider...
<certainty> inet serivice provider provider
<certainty> is pedantic today
<certainty> but not about his own spelling :/
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
<shevy> hehe
browndawg has joined #ruby
<shevy> shakey old fingers certainty!
monkegjinni has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
monkegjinni has joined #ruby
kitak has joined #ruby
BackEndCoder has joined #ruby
fgo has joined #ruby
montyboy has joined #ruby
<certainty> indeed young shevy
<certainty> shevy: do you have ruby projects online somewhere?
Es0teric has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
monkegjinni has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
ktosiek_ has joined #ruby
emergion has joined #ruby
ktosiek has quit [Read error: Operation timed out]
mcls has joined #ruby
<mozzarella> I think I'm going to write a porn website in ruby
<mozzarella> has it been done before?
relix has joined #ruby
Es0teric has quit [Ping timeout: 240 seconds]
<certainty> mozzarella: it's just a website
relix has quit [Client Quit]
mojjojo has joined #ruby
mcls has quit [Client Quit]
ktosiek_ is now known as ktosiek
<shevy> certainty yeah but the quality is lacking, most lack a lot of docu; I don't recommend you dig into them https://rubygems.org/profiles/shevy
<mozzarella> can someone remind me of WHY you have to do self.+() inside a class instead of simply +()?
kitak has quit [Remote host closed the connection]
<certainty> shevy: those are *all* from you?
<certainty> by you
kitak has joined #ruby
<Xeago> shevy: how do I find the dependencies of the gem when I don't have it installed?
<certainty> mozzarella: wat?
<mozzarella> wat what?
<shevy> certainty yeah, but 95% of these are tiny; the larger projects are cookbook and rbt; https://rubygems.org/gems/cookbooks about 2600 programs are registered, but it does not yet work for others
<certainty> mozzarella: can you rephrase it? What do you mean by 'inside the class'?
<mozzarella> inside the class definition
<mozzarella> in some method for example
<certainty> mozzarella: and that class defines #+?
<shevy> certainty, cookbooks project should then be able to provide data such as through http://oi57.tinypic.com/pqv6.jpg - it was supposed to be usable to generate packages for different distributions too, like a PKGBUILD and so forth
<shevy> the big projects take too much time though :(
<mozzarella> certainty: yes
<shevy> Xeago hmm
Rober9393 has joined #ruby
<shevy> Xeago I dunno why gem dependency --reverse-dependencies does not seem to work...
<shevy> certainty I like tiny gems
<Xeago> "No gems found matching facter (>= 0)"
<shevy> yeah I am confused...
<certainty> >> class Foo; def +(other); 42 + other end; def bar; +(42) end end; Foo.new.bar
<eval-in> certainty => 42 (https://eval.in/116068)
nouitfvf has joined #ruby
<shevy> perhaps "gem dependency" is broken
<Xeago> I believe it only searches installed gems
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<certainty> hmm!
<shevy> ohhhh
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<certainty> shevy: i do too
xjiujiu has joined #ruby
<Xeago> certainty: why doesn't that give 84?
<shevy> I had to rewrite my large projects so many times, it just isn't worth it; the smaller gems can so quickly be rewritten that it is virtually no problem
zxq9 has quit [Quit: Konversation terminated!]
<certainty> Xeago: because of what mozzarella said, you need to explicitly send it on self. I currently don't know why
yfeldblum has joined #ruby
<certainty> shevy: small composable parts and all that
<shevy> yeah
<shevy> and I have to write less docu too :)))
xjiujiu has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 264 seconds]
<shevy> I need to register them all on github eventually...
xjiujiu has joined #ruby
sputnik1_ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<banister> >> hack system.com + mainframe.reboot
<eval-in> banister => wrong number of arguments (0 for 1+) (ArgumentError) ... (https://eval.in/116073)
zxq9 has joined #ruby
<certainty> banister: do you mind to enlighten us?
<banister> certainty just flexing my hacking skills
evenix has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<certainty> >> class Foo; def +(other); 42 + other end; def bar; +(42) end end; Foo.new.bar
<certainty> banister: ^
<certainty> erm, where is eval.in?
<popl> certainty: Yo man, I thought you were black.
sputnik1_ has quit [Client Quit]
<banister> certainty my hack was successful
<certainty> popl:why?
Deele has joined #ruby
Vovko has quit [Remote host closed the connection]
<shevy> >> 5+5
<eval-in> shevy => 10 (https://eval.in/116076)
kitak has quit [Remote host closed the connection]
<shevy> certainty I guess you are on eval-in's banlist
<certainty> :/
<mozzarella> lel
timonv has joined #ruby
<certainty> banister: why doesn't the invocation of #+ work as expected in that example?
<mozzarella> I think +42 is seen as the unary operator, so positive 42
<mozzarella> (not sure, though)
<certainty> mozzarella: makes sense
<mozzarella> >> +(-42)
<eval-in> mozzarella => -42 (https://eval.in/116077)
<shevy> mozzarella why is your nick like a food?
<shevy> it makes me hungry
<certainty> ok gotta run
* certainty &
<Xeago> can bundle install local gems?
<Xeago> or fetch .gem's ?
<banister> certainty i dont know, im not a nerd
sputnik1_ has joined #ruby
evenix has quit [Ping timeout: 244 seconds]
<mozzarella> >> def test; fail 'wut'; end +(test)
<eval-in> mozzarella => wut (RuntimeError) ... (https://eval.in/116079)
yasushi has joined #ruby
<shevy> no idea about bundler, I try to avoid it when possible
<mozzarella> shevy: WHY
ikaros has quit [Quit: Ex-Chat]
shime has quit [Ping timeout: 264 seconds]
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
yubrew has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
shime has joined #ruby
Salve has joined #ruby
<shevy> mozzarella it does not give me anything I need
blackmesa has joined #ruby
<mozzarella> easy setup?
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
siwica has quit [Remote host closed the connection]
klaut_ has joined #ruby
<mozzarella> >> -+-+-+-+-+-+-+-+-8
<eval-in> mozzarella => -8 (https://eval.in/116081)
<shevy> dunno, for generating gemspec files I use my own scripts, the other things I don't need because I always use the latest gems anyway
yubrew has quit [Ping timeout: 240 seconds]
<shevy> who was the guy who used ruby + enlightenment
<shevy> w* something ...
<shevy> not mr w_uest
eka_ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Salve has quit [Ping timeout: 252 seconds]
xjiujiu has joined #ruby
<mozzarella> I use bundle to install the gems in the gemfile
codeitagile has joined #ruby
<mozzarella> don't you also do that?
<mozzarella> I didn't know you could use it to generate a gemspec file
<shevy> you can somehow do that
Advocation has quit [Quit: Advocation]
<gr33n7007h> RubyPanther, you here
<shevy> through the gemspec entry line I think
Aryasam has joined #ruby
<shevy> mozzarella well I use the latest gems usually, and on my own systems they are already installed
<shevy> bundler will be more useful for people who don't have the gems available and need to quickly change
gener1c_ has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
Aryasam has quit [Client Quit]
Zespre has quit [Quit: leaving]
NalloK has joined #ruby
Zespre has joined #ruby
NalloK has quit [Max SendQ exceeded]
mlpinit has joined #ruby
<mozzarella> >> end fail 'wut' begin
<eval-in> mozzarella => /tmp/execpad-2b29757ee31b/source-2b29757ee31b:2: syntax error, unexpected tIDENTIFIER, expecting end-of-input ... (https://eval.in/116087)
<mozzarella> >> end fail 'wut'; begin
<mozzarella> is he still alive
<gr33n7007h> bnagy, you there
<mozzarella> >> 2 + 2
<eval-in> mozzarella => 4 (https://eval.in/116088)
andrewlio has joined #ruby
<mozzarella> >> end 2 + 2; begin
<eval-in> mozzarella => /tmp/execpad-13e6362b6d2b/source-13e6362b6d2b:2: syntax error, unexpected tINTEGER, expecting end-of-input ... (https://eval.in/116089)
<mozzarella> >> end; 2 + 2; begin
<eval-in> mozzarella => nil (https://eval.in/116090)
mojjojo has quit [Quit: mojjojo]
mlpinit has quit [Ping timeout: 265 seconds]
shevy has quit [Ping timeout: 244 seconds]
shevy has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gener1c has joined #ruby
<mozzarella> you can't define the += -= /= |= etc. operators, right?
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
MrSamuel has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
<shevy> yea
Mongey has joined #ruby
<mozzarella> can I have a list of operators I can overload?
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
davedev24 has joined #ruby
<shevy> hmm
<shevy> we can ... overload << ... + I suppose ...
<shevy> []
lkba has joined #ruby
<mozzarella> + - [] << >> * /
<mozzarella> can you overload =?
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
_bart has joined #ruby
<mozzarella> >> class Test; def =(rhs); puts rhs; end; end; Test.new=('wut')
<eval-in> mozzarella => /tmp/execpad-92c261c641fe/source-92c261c641fe:2: syntax error, unexpected '=' ... (https://eval.in/116091)
aryaching has joined #ruby
xjiujiu has joined #ruby
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
<shevy> hmm I am quite sure you can not overload =
kyle__ has quit [Ping timeout: 240 seconds]
<mozzarella> you can overload [] but can you overload []=?
Squarepy has joined #ruby
kyle__ has joined #ruby
Mongey has quit [Quit: Mongey]
<atmosx> Hello
<atmosx> mozzarella I'd love to eat you right now
Mongey has joined #ruby
sigurding has joined #ruby
<shevy> mozzarella hmm definitely [], unsure about []=
<shevy> I think the problem is with = meaning assignment in general in ruby, everywhere
<shevy> though
<shevy> I think you can define []=, let me try
[gmi] has joined #ruby
<shevy> mozzarella ok you can
<shevy> hmm
<shevy> or perhaps not ...
danshultz has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
<shevy> you can
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<shevy> RedefineAssignment.send :[]=, 'yo'
<shevy> atmosx I am so hungry now :(
<shevy> since an hour a mozzarella keeps on writing things
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<atmosx> shevy: I'm waiting for a humberrger and some chicken wings to come :-P at home
* atmosx oders food online most of th etimes
fightback has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
xjiujiu has joined #ruby
<atmosx> actually I eat at the univ almost daily and just a salad at night
<shevy> hehe
<shevy> I am out of food :(
agjacome has joined #ruby
fightbac_ has joined #ruby
<atmosx> shevy: order some
<atmosx> shevy: you're a programmer, write some code for food :-D
fightback has quit [Read error: Connection reset by peer]
<shevy> hmm
mlpinit has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
<shevy> atmosx when you have different archives on your hdd, what do you use to extract them?
<atmosx> shevy: what kind of archives?
xjiujiu has quit [Client Quit]
yfeldblum has joined #ruby
xjiujiu has joined #ruby
ym2ha0 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Vovko has joined #ruby
CorySimmons has joined #ruby
<shevy> atmosx everything: .tar .bz2 and combination, .gem .zip
<shevy> .xz etc..
<atmosx> shevy: just use tha cli for that kind of file I guess. It's mostly .zip and bz2 here
NalloK has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
yubrew has joined #ruby
NalloK has quit [Max SendQ exceeded]
<shevy> atmosx I am not even intermediate :) but I also don't care, I don't aim to become the best in programming by far, I just want to be sufficiently good to do what I want to do without being stopped too easily
<shevy> atmosx hmm ok, so you dont use any script? you memorized the options?
xjiujiu has joined #ruby
Advocation has joined #ruby
NalloK has joined #ruby
cover has joined #ruby
CorySimmons has quit [Ping timeout: 265 seconds]
Vovko has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
m8 has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
francisfish has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 265 seconds]
billey has quit [Remote host closed the connection]
kirun has joined #ruby
Salve has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
koell has quit [Read error: Connection reset by peer]
Mongey has quit [Quit: Mongey]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
SHyx0rmZ has joined #ruby
xjiujiu has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
Aryasam has quit [Quit: Bye]
<kennym> quesion: given that Ruby 2.x (MRI) provides apparently good support for threads, can you recommend an event library/framework which makes use of those capabilities?
james_d_h has joined #ruby
<kennym> given EventMachine does not support Ruby 2.x
Hanmac1 has quit [Quit: Leaving.]
<atmosx> shevy: yeah I'm pretty much accustomed with cli anyway. I work on cli to many hours per day, my editor is on cli, etc.
Hanmac has joined #ruby
<atmosx> shevy: not to mention that I'm on a mac, clicking on anything *just works*
Rober9393 has quit [Ping timeout: 264 seconds]
<shevy> aha
montyboy has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
browndawg has left #ruby [#ruby]
Rober9393 has joined #ruby
timonv has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
timonv_ has joined #ruby
sepp2k has joined #ruby
<gr33n7007h> can anyone confirm that "C" is a unsigned short int?
popl has quit [Ping timeout: 240 seconds]
klaut_ has quit [Remote host closed the connection]
julian` has joined #ruby
<jhass> gr33n7007h: in Ruby?
achru has joined #ruby
jph98 has joined #ruby
monkegjinni has joined #ruby
nowthatsamatt has joined #ruby
<gr33n7007h> jhass, yes
<jhass> there's no such type in Ruby
<jhass> in Ruby "C" is a String
<jhass> >> "C".class
<eval-in> jhass => String (https://eval.in/116110)
<gr33n7007h> jhass, in Array#pack?
<jhass> you didn't mention that this is about Array#pack
monkegji_ has joined #ruby
<gr33n7007h> jhass, sorry about that
monkegjinni has quit [Read error: Connection reset by peer]
phansch has quit [Quit: WeeChat 0.4.2]
<certainty> include MindReadingSkills
<jhass> "C | Integer | 8-bit unsigned (unsigned char)" - http://rubydoc.info/stdlib/core/Array#pack-instance_method
achru_ has joined #ruby
<gr33n7007h> Awesome, so C is what I need then thanks
mourest has joined #ruby
<jhass> Regards, your RTFM as a service
sailias has joined #ruby
sigurding has quit [Quit: sigurding]
<certainty> inc jhass :)
<certainty> on karmabot around
<certainty> erm, no
achru has quit [Ping timeout: 240 seconds]
Mongey has joined #ruby
klaut_ has joined #ruby
monkegji_ has quit [Ping timeout: 240 seconds]
<gr33n7007h> ["00:11:22:33:44:55"].split(/:/).map {|x| x.to_i(16) } <- this is converting to hex?
<certainty> mozzarella: you can also implement the unary versions of +,- etc.
phansch has joined #ruby
jjbohn has joined #ruby
<jhass> gr33n7007h: no this is converting from hexstring to Fixnum
<certainty> >> "0xdeadbeef".to_i(16)
<eval-in> certainty => 3735928559 (https://eval.in/116111)
<gr33n7007h> ah, got it yeah silly me
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
alexju has joined #ruby
xjiujiu has joined #ruby
<mozzarella> certainty: yeah, with +@ and -@ I think
<certainty> yes
<certainty> >> 15.to_s(16)
<eval-in> certainty => "f" (https://eval.in/116112)
_bart has quit []
klaut_ has quit [Ping timeout: 244 seconds]
shime has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
alex88 has joined #ruby
<gr33n7007h> Is it bad practice to to use rescue?
<gr33n7007h> I'm asking beacause I don't know what exception is going to be thrown
toretore has joined #ruby
pfg has joined #ruby
<gr33n7007h> If this doesn't work i'm gonna scream
Sirupsen has joined #ruby
timonv_ has quit [Remote host closed the connection]
mengu has joined #ruby
achru_ has quit []
yacks has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
<shevy> gr33n7007h you use rescue to rescue an exception; if you know what kind of exception you can expect, it is usually best to specify it precisely
<shevy> like: rescue LoadError; end
<shevy> rather than: rescue; end
mengu has quit [Ping timeout: 264 seconds]
ianfleeton has joined #ruby
<shevy> gr33n7007h when I dont know what exception may happen but I know I can find out, I usually do: rescue Exception => error; pp error; pp error.class; end and then I rescue only that error. I did that for the ruby ftp bindings of stdlib
francisfish has joined #ruby
relix has joined #ruby
<gr33n7007h> shevy, ok I'll try now thanks
yacks has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
ym2ha0 has quit [Quit: Konversation terminated!]
xjiujiu has joined #ruby
linojon has joined #ruby
timonv has joined #ruby
cover has quit [Remote host closed the connection]
yfeldblum has joined #ruby
timonv has quit [Remote host closed the connection]
shredding has joined #ruby
arietis has joined #ruby
yubrew has joined #ruby
vlad_starkov has joined #ruby
<shevy> \o/
yfeldblum has quit [Ping timeout: 264 seconds]
cover has joined #ruby
oneawayman has joined #ruby
ctp has quit [Quit: Leaving...]
boboc has joined #ruby
sparrovv has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
shevy has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
frode15243_ has quit []
xjiujiu has joined #ruby
shevy has joined #ruby
frode15243 has joined #ruby
pinage404 has quit [Excess Flood]
dawkirst_ has joined #ruby
UserNameInvalid has joined #ruby
UserNameInvalid has quit [Client Quit]
Salve has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
jamto11 has joined #ruby
xjiujiu has joined #ruby
<gr33n7007h> Is this how you use send/recv how can you tell how many bytes it will receive => http://paste.debian.net/86222/
shevy has joined #ruby
Tranquility_ is now known as Tranquility
Salve has quit [Ping timeout: 265 seconds]
dawkirst_ has quit [Ping timeout: 245 seconds]
pinage404 has joined #ruby
WillAmes has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
kate_r has quit [Ping timeout: 264 seconds]
pinage404 has quit [Excess Flood]
albedoa has joined #ruby
<gr33n7007h> anyone?
perlsyntax has joined #ruby
mengu has joined #ruby
Lewix has quit [Remote host closed the connection]
bluenemo has joined #ruby
xjiujiu has quit [Ping timeout: 240 seconds]
montyboy has quit [Quit: Textual IRC Client: www.textualapp.com]
Mongey has quit [Quit: Mongey]
Xeago_ has joined #ruby
art-solopov has joined #ruby
butblack has joined #ruby
jph98 has quit [Quit: jph98]
mengu has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 264 seconds]
quatron has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
camilasan has joined #ruby
S0da has quit [Read error: Connection reset by peer]
lutfidemirci has quit [Ping timeout: 252 seconds]
butblack has quit [Ping timeout: 240 seconds]
Squarepy has quit [Quit: Leaving]
pinage404 has joined #ruby
Mongey has joined #ruby
eka_ has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has joined #ruby
bluenemo has quit [Ping timeout: 264 seconds]
foredoomed has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Lucky_Red has quit [Quit: Leaving...]
jetblack has quit [Quit: leaving]
jetblack has joined #ruby
CreativeEmbassy has joined #ruby
DouweM has joined #ruby
yubrew has joined #ruby
<shevy> test
<shevy> what was the question
<shevy> I was disconnected
diegoviola has joined #ruby
ianfleeton has quit [Remote host closed the connection]
kennym has quit [Quit: Leaving.]
crystal77 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
ken123 has joined #ruby
yfeldblum has joined #ruby
<ken123> hey....
lxsameer has quit [Quit: Leaving]
<jhass> ken123: if you got a question, just ask ;)
enebo has quit [Quit: enebo]
<ken123> ok..were u from..
<jhass> hm
<jhass> I should've added "about Ruby" :P
bluenemo has joined #ruby
carraroj has joined #ruby
<ken123> jhass were did u from?
yfeldblum has quit [Ping timeout: 240 seconds]
ZoanthusR has joined #ruby
<jhass> why's that important to your quest with Ruby?
<ken123> ders somethin wrong?
CorySimmons has joined #ruby
kennym has joined #ruby
francisfish has quit [Remote host closed the connection]
perlsyntax has left #ruby ["Textual IRC Client: www.textualapp.com"]
<shevy> ken123 he wants to be incognito
monkegjinni has joined #ruby
ken123 has left #ruby [#ruby]
jamto11 has quit [Remote host closed the connection]
fightbac_ has quit [Quit: ZzzzZZzzzzzz]
CorySimmons has quit [Ping timeout: 264 seconds]
jjbohn has quit [Quit: Leaving...]
sigurding has joined #ruby
itadder has joined #ruby
jjbohn has joined #ruby
monkegjinni has quit [Ping timeout: 244 seconds]
Guest44262 has quit [Quit: Leaving]
meatherly has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
closures999 has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
Salve has joined #ruby
Mongey has quit [Quit: Mongey]
zorak has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
poguez has joined #ruby
ZoanthusR has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
james_d_h has joined #ruby
klaut_ has joined #ruby
monkegjinni has joined #ruby
northfurr has joined #ruby
bluenemo_ has joined #ruby
renderful has joined #ruby
james_d_h has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
fridim__ has joined #ruby
monkegjinni has quit [Read error: Operation timed out]
bluenemo has quit [Ping timeout: 265 seconds]
renderful has quit [Remote host closed the connection]
einarj has joined #ruby
jamto11 has joined #ruby
b1nd has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
<b1nd> how do I make a file inside of my rvm project so that I can just type in a list of gems and then it will install them for me?
monkegjinni has joined #ruby
<b1nd> I thought, I just added them to my .gemset file, however, this did not give me the expected results
enebo has joined #ruby
<b1nd> and if I do; gem install sinatra; inside of the rvm project dir, then it installs the gem, but there is not a away to just put all the gems in a file and then when i open the project all is installed!?
<art-solopov> b1nd: I think you're talking about Gemfile...
<art-solopov> b1nd: http://bundler.io/
diegoviola has quit [Quit: WeeChat 0.4.3]
<b1nd> okay thanks
Shidash has joined #ruby
yarou has joined #ruby
duggiefresh has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
Beoran_ has quit [Ping timeout: 264 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
njection_ has quit []
Rober9393 has quit [Quit: Lingo - http://www.lingoirc.com]
njection has joined #ruby
toastynerd has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
njection has quit [Remote host closed the connection]
boboc has quit []
Czupa has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
hoelzro_ is now known as hoelzro
mostlybadfly has joined #ruby
yasushi has quit [Remote host closed the connection]
timonv has joined #ruby
renderful has joined #ruby
Beoran_ has joined #ruby
Beoran has joined #ruby
yubrew has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
mourest has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 265 seconds]
monkegjinni has joined #ruby
montyboy has joined #ruby
toastynerd has quit [Remote host closed the connection]
jjbohn is now known as jjbohn|afk
Emmanuel_Chanel has quit [Ping timeout: 253 seconds]
jjbohn|afk is now known as jjbohn
sski has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
chipotle_ has joined #ruby
aBound has joined #ruby
jzig has joined #ruby
Emmanuel_Chanel has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
chipotle has quit [Ping timeout: 252 seconds]
renderful has quit [Read error: Connection reset by peer]
renderful has joined #ruby
aBound has left #ruby [#ruby]
meatherly has quit [Remote host closed the connection]
redlines has joined #ruby
meatherly has joined #ruby
jamto11 has quit [Remote host closed the connection]
minicomputer has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
mourest has joined #ruby
jzig has quit [Remote host closed the connection]
frogsy has quit [Ping timeout: 265 seconds]
meatherly has quit [Ping timeout: 240 seconds]
julian` has quit [Ping timeout: 240 seconds]
jzig has joined #ruby
NovapaX has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
Xaitec has joined #ruby
jzig has quit [Remote host closed the connection]
toastynerd has joined #ruby
jzig has joined #ruby
Xaitec has left #ruby [#ruby]
vlad_starkov has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<Xeago_> shevy: gem dependency -r gemname works
zarubin has joined #ruby
Mongey has joined #ruby
yasushi has quit [Remote host closed the connection]
Salve has joined #ruby
<shevy> cool
<shevy> you are the man Xeago_
<Xeago_> except that it wildcard matches gemname
jzig has quit [Ping timeout: 265 seconds]
<Xeago_> so tings like Gem puppetdashboardmonitor-0.0.4 match
yasushi has joined #ruby
jeregrine has joined #ruby
jjbohn is now known as jjbohn|afk
Salve has quit [Ping timeout: 240 seconds]
yarou has quit [Changing host]
yarou has joined #ruby
yasushi has quit [Ping timeout: 244 seconds]
mbreit has quit [Quit: WeeChat 0.4.2]
tongcx has joined #ruby
jjbohn|afk is now known as jjbohn
<shevy> I keep on having to lookup the readline documentation
<tongcx> hi guys, i want to implement a very simple authentification, basically just check username and password, on a rack-based app, is the best way to implement a middleware?
<tongcx> i'm using sinatra
chipotle has joined #ruby
<shevy> or perhaps, not the full readline docu, but the readline for tab-completion
chipotle has quit [Client Quit]
renderful has quit [Remote host closed the connection]
chipotle has joined #ruby
chipotle_ has quit [Ping timeout: 252 seconds]
Shidash has quit [Ping timeout: 265 seconds]
<shevy> someone give me moral support :(
diegoviola has joined #ruby
<jhass> tongcx: yeah, though look at what's there (like warden), it's just to easy to get authentication wrong, even for the most basic usecases
Es0teric has joined #ruby
stytown has joined #ruby
stytown has left #ruby [#ruby]
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
francisfish has joined #ruby
vlad_starkov has quit []
maximski has joined #ruby
duggiefresh has quit [Remote host closed the connection]
mojjojo has joined #ruby
jzig has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrSamuel has quit [Quit: MrSamuel]
tgkokk has joined #ruby
mojjojo has quit [Read error: Connection reset by peer]
oneawayman has quit [Ping timeout: 240 seconds]
itadder has quit [Remote host closed the connection]
maximski has quit [Client Quit]
itadder has joined #ruby
mojjojo has joined #ruby
_root has joined #ruby
guilleiguaran has joined #ruby
mojjojo has quit [Client Quit]
_root has quit [Client Quit]
arietis has joined #ruby
browndawg has joined #ruby
yubrew has joined #ruby
ziyadb_ has joined #ruby
<Xeago_> you might as well use authentication at your web server level
<Xeago_> either HTTP-authentication or client side certificates
<Xeago_> s/certificates/keys
gr33n7007h has quit [Quit: Leaving]
Vovko has joined #ruby
echevemaster has joined #ruby
chipotle has quit [Quit: cya]
gr33n7007h has joined #ruby
hamakn has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
zcreative has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
Vivekananda has joined #ruby
einarj has quit [Remote host closed the connection]
Umschwung has quit []
Mongey has quit [Quit: Mongey]
Xeago_ has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
evenix has joined #ruby
<tongcx> so i would like just apply auth to my sinatra app
<tongcx> but it seems the only way is to add rack middleware
<tongcx> i think warden is too heavy for me
Fyyr13_ has quit [Remote host closed the connection]
<tongcx> i will first implement something naive
<tongcx> like just put username and password in cookie
<tongcx> then server just check it again database
angoragoats has joined #ruby
<jhass> see, that's what I mean with too easy to get it wrong
<jhass> worst idea to do it
<tongcx> if i use https
<tongcx> then it's not too bad
Umschwung has joined #ruby
IceDragon has joined #ruby
<tongcx> but later i may implement accesstoken
<tongcx> then i have get into the whole stuff of storing accesstoken on server
hamakn has joined #ruby
yfeldblum has joined #ruby
<tongcx> jhass: actually, i'm curious how does sinatra handle session?
<jhass> no idea
<tongcx> jhass: is there some db behind it that we don't know?
<jhass> btw. did you even google for your issue? first entry for me: https://github.com/maxjustus/sinatra-authentication
kobain has joined #ruby
echevemaster has quit [Quit: Leaving]
<tongcx> jhass: i found plenty of them, but would like to write my own just for learning purpose
<tongcx> jhass: also, i don't like to use things if I'm not sure about their behaviour and assumed resources
<jhass> I hope this is not for a production application then
<jhass> or anything remotely serious
ahmdrefat has joined #ruby
ahmdrefat has quit [Client Quit]
<tongcx> jhass: it could be with https
Mongey has joined #ruby
<tongcx> jhass: but down the road, will use some established stuff
<gr33n7007h> what's the magic encode at top of a ruby file for utf-8 something like # *-endode-*: utf-8 ?
yfeldblum has quit [Ping timeout: 269 seconds]
Celm has joined #ruby
aef has quit [Remote host closed the connection]
CorySimmons has joined #ruby
<shevy> hmm
<shevy> the string can be quite liberal gr33n7007h
<shevy> lol
<shevy> endode?
<shevy> hahaha that is great man :)
CorySimmons has quit [Ping timeout: 240 seconds]
<shevy> endodel! doodledoodendooooo
<shevy> this is what I use gr33n7007h # Encoding: ASCII-8BIT
lkba has joined #ruby
<shevy> so you can probably put utf-8 there
<gr33n7007h> shevy cheers man!
linojon has quit [Quit: linojon]
* apeiros hits shevy with a large trout for the 'ascii-8bit' part
Waheedi has joined #ruby
frem has joined #ruby
<apeiros> you're like the catholic berserks, claiming the world is flat…
alexju has quit [Remote host closed the connection]
chipotle has joined #ruby
<shevy> why
<shevy> I don't need unicode
<art-solopov> gr33n7007h: It's for text editors, as far as I know. Some editors, like Emacs, recognise this part and set encoding correctly.
<apeiros> you live in the past
<art-solopov> tongcx: In a Rails textbook I've read they offered the following approach: the user ID is stored in session. If no user ID is stored, the application just reroutes you to login page.
<apeiros> art-solopov: more importantly, it's for ruby, to know what encoding string literals use.
<art-solopov> apeiros: Didn't actually know it, thanks.
<gr33n7007h> Well I've got this string +CUSD: 2,"Your balance is �36.32.",15 that should be a £ in front of 36.32
jjbohn is now known as jjbohn|afk
<apeiros> art-solopov: as of ruby 2.0, it defaults to utf-8, making things easier.
hamakn has quit [Remote host closed the connection]
<art-solopov> apeiros: Thank Matz. =) I've had a bit of problems with 1.9.1 and Unicode.
<apeiros> gr33n7007h: � is a question mark in a square?
<apeiros> art-solopov: you shouldn't really be using 1.9.1
Salve has joined #ruby
<apeiros> if you use the 1.9 series, at least use 1.9.3
<art-solopov> apeiros: I mean, in the days when all I had was 1.9.1. =)
<apeiros> kk
<tongcx> art-solopov: thanks
<art-solopov> I'm using 2.1.0 via rvm as my main Ruby, but some gems don't seem to work well with it...
<art-solopov> tongcx: No problem. =) Good luck!
e4xit has quit [Ping timeout: 240 seconds]
e4xit has joined #ruby
<gr33n7007h> nm fixed it
leonidlm has quit [Ping timeout: 265 seconds]
hamakn has joined #ruby
BackEndCoder has quit [Ping timeout: 265 seconds]
Salve has quit [Ping timeout: 244 seconds]
smathieu has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
smathieu has joined #ruby
Xiti has joined #ruby
hoelzro has quit [Quit: leaving]
gizmore has quit [Ping timeout: 240 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
arietis has quit [Quit: Computer has gone to sleep.]
roolo has quit [Quit: Leaving...]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m8 has quit [Quit: Sto andando via]
rootshift has joined #ruby
hoelzro has joined #ruby
nisstyre has joined #ruby
hydrajump has joined #ruby
Celm has quit [Remote host closed the connection]
<hydrajump> hi I'm just done a clean install of mavericks 10.9.2 and after installing home-brew I ran `brew install ruby` It install ruby 2.1.1 ,but when I do ruby -v it shows the system version. What have I missed?
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
evenix has quit [Remote host closed the connection]
jjbohn|afk is now known as jjbohn
timonv has joined #ruby
evenix has joined #ruby
yubrew has joined #ruby
thoonai has joined #ruby
<certainty> hydrajump: the ruby that comes first in your PATH will be used. Where is the system ruby and where does homebrew install it?
<hydrajump> hmm. homebrew installs to /usr/local
<hydrajump> system ruby I don't know where it is
nari has quit [Ping timeout: 240 seconds]
<thoonai> heyho, I'm following the gitlab installation guide and on my machine gcc is running for over 20minutes on kgio 2.8.1
smathieu has quit [Remote host closed the connection]
S0da has joined #ruby
<apeiros> hydrajump: `which ruby` tells you where
smathieu has joined #ruby
<certainty> hydrajump: also which -a should tell you all locations
timonv has quit [Ping timeout: 244 seconds]
evenix has quit [Ping timeout: 265 seconds]
<tongcx> hi guys, i'm writing backend with sinatra, i want to check each request's cookie to make sure user is logined, otherwise i want to redirect them to /login, how do i do this?
<thoonai> does it should take so long?
<tongcx> i can write a rack middleware, but then how can it talk to sinatra for redirect?
<jhass> thoonai: unlikely
<tongcx> or is there any injection to sinatra to do, say, before each request check sth?
<hydrajump> ok system ruby is here /usr/bin/ruby and brew ruby...when installed it said the following: "By default, gem installed executables will be placed into:
<hydrajump> /usr/local/opt/ruby/bin"
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nfk has quit [Remote host closed the connection]
<thoonai> jhass: then why it does?
yubrew has quit [Ping timeout: 265 seconds]
<certainty> tongcx: you could also run the check in a before filter, i think
<jhass> because... ah damn my magic 8-ball broke
<thoonai> jhass: ok stupid question. but I did 'gem install libv8' and 'gem install kgio' and it worked
arietis has joined #ruby
sigurding has quit [Quit: sigurding]
<thoonai> now it hangs again at kgio
<certainty> hydrajump: then place /usr/local/opt/ruby/bin into your PATH probably with something like this: export PATH="/usr/local/opt/ruby/bin:${PATH}"
<jhass> thoonai: what about gem install kgio -v 2.8.1 ?
<hydrajump> certainty ok I will try that. Is that change permanent?
<certainty> hydrajump: no, you might want to add that to your shell's rc fille
<certainty> -l
<thoonai> jhass: second I started it
smathieu has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
<certainty> hydrajump: oh wait, we might be misinterpreting the message from brew. It only talks about gem executables
zorak has quit [Ping timeout: 244 seconds]
<thoonai> jhass: Successfully installed kgio-2.8.1
<certainty> hydrajump: still, /usr/local/bin (which i assume brew installed your ruby) comes after /usr/bin .. so just add that to your path
<hydrajump> certainty is it ok not to use chruby, rbenv, rvm and just install one ruby as I've done?
<jhass> thoonai: kill your bundle install (I presume) and run it again
<certainty> hydrajump: sure you can do that. But it's probably not worth it since it's made for multiple rubys
<thoonai> jhass: sudo -u git -H bundle install --deployment --without development test postgres aws
<thoonai> jhass: this is the command
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
<tongcx> certainty: so i would like to do the check with all urls except '/', so before filter is good for that?
fridim__ has quit [Read error: No route to host]
kraljev5 has joined #ruby
<thoonai> jhass: and it hangs again at kgio: Using kgio (2.8.1)
zcreative has quit [Quit: Computer has gone to sleep.]
<jhass> uh, at using? odd
<kraljev5> If I extend ruby Array base class, all inerited methods return Array, instead of that class
<kraljev5> Where can I read more about this?
<thoonai> now I have 100% cpu load for more then 20 minutes
<jhass> thoonai: by what exact process/command?
francisfish has quit [Remote host closed the connection]
<thoonai> see above
<certainty> tongcx: should be doable. You have access to the request and thus you can check the pathinfo
<thoonai> jhass: sudo -u git -H bundle install --deployment --without development test postgres aws
<jhass> thoonai: no, which process consumes all your cpu
ctp has joined #ruby
<thoonai> gcc
jjbohn is now known as jjbohn|afk
poguez has quit [Quit: Connection closed for inactivity]
<jhass> ps aux | grep gcc ?
<thoonai> root@Simmons:~# ps aux | grep gcc
<thoonai> git 16724 100 31.5 93456 80444 pts/2 R+ 18:49 0:06 /usr/lib/gcc/i486-linux-gnu/4.7/cc1plus -quiet -I ../src -imultiarch i386-linux-gnu -MMD /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/v8_base/src/debug.d -MF /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/.deps//home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/v
<thoonai> root 16726 0.0 0.2 3524 712 pts/0 S+ 18:49 0:00 grep gcc
<thoonai> oops :/
mikepack has joined #ruby
<jhass> so it's compiling libv8
<jhass> that'll take some time with a single cpu
<thoonai> I already installed libv8
tgkokk has joined #ruby
<jhass> but probably not the exact version it wants
<thoonai> ...
<thoonai> *facepalm*
<thoonai> jhass: thanks a lot
<thoonai> I'll jsut wait
nfk has joined #ruby
arubin has joined #ruby
jpierre03 has quit [Remote host closed the connection]
itadder has quit []
carraroj has quit [Quit: Konversation terminated!]
<shevy> hmm
Fyyr13_ has joined #ruby
jpierre03 has joined #ruby
tgkokk has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby
Vovko has quit [Remote host closed the connection]
tgkokk has joined #ruby
tgkokk has quit [Client Quit]
Vovko has joined #ruby
jjbohn|afk is now known as jjbohn
yfeldblum has joined #ruby
echevemaster has joined #ruby
tectonic has joined #ruby
chipotle has quit [Quit: cya]
codeitagile has quit [Read error: No route to host]
codeitagile has joined #ruby
lw has quit [Quit: s]
Fyyr13_ has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
codeitagile has quit [Remote host closed the connection]
Vovko has quit [Ping timeout: 240 seconds]
<certainty> kraljev5: steveklabnik and others wrote about that. Personally i don't find it that surprising ... http://words.steveklabnik.com/beware-subclassing-ruby-core-classes
<Waheedi> anyone can help me with this gem conflict error
yfeldblum has quit [Ping timeout: 265 seconds]
<Waheedi> have two ruby ruby apps
<Waheedi> running on the same machine each has its own gems
<kraljev5> certainity: thanks! I have heard this is a ruby implentation glitch, since base classes are written in C
<Waheedi> now this is here `raise_if_conflicts': Unable to activate activemodel-3.2.6, because builder-3.2.2 conflicts with builder (~> 3.0.0), activesupport-3.2.17 conflicts with activesupport (= 3.2.6) (Gem::LoadError)
estebanrules has joined #ruby
<Waheedi> i understand the error message very well. thank god
<jhass> Waheedi: use bundler & bundle exec
<Waheedi> i don't use bundler for that app
<certainty> kraljev5: that's not unique to ruby. Most of those methods create a fresh Array. Whay would they suddenly return an instance of another class
<Waheedi> should i consider using it jhass
<jhass> Waheedi: yes
marcdel has joined #ruby
marcdel has quit [Client Quit]
marcdel has joined #ruby
elaptics is now known as elaptics`away
<kraljev5> certainity: why wouldn't? It would return an instance of a current class.
<kraljev5> self.class.new
Fyyr13_ has joined #ruby
<certainty> kraljev5: they could as well implement it using Array.new, the contract says that it returns an array not an instance of the current class
Vovko has joined #ruby
<kraljev5> This should IMO get fixed in next MAJOR release
<kraljev5> 3.0
<certainty> i don't think it needs a fix, but that's possibly just me
<certainty> s/possib/like/
sparrovv has joined #ruby
Fyyr13_ has quit [Ping timeout: 252 seconds]
Abyss-- has joined #ruby
jjbohn is now known as jjbohn|afk
francisfish has joined #ruby
mojjojo has joined #ruby
Salve has joined #ruby
<hydrajump> certainty sorry for the delay thanks for your help! I googled the path and saw this stack overflow question that suggests that the best way is to edit /etc/paths instead of sourcing the bash file...https://stackoverflow.com/a/10343891/554352
<hydrajump> now ruby -v reports 2.1.1
gregf has quit [Quit: WeeChat 0.4.3]
toastynerd has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has flipped it's lid. Laterrrss]
toastynerd has joined #ruby
datacrusher has joined #ruby
<thoonai> jhass: now its 30 minutes :/
shredding has quit [Quit: shredding]
nowthatsamatt has quit [Quit: nowthatsamatt]
<jhass> thoonai: v8 takes around 10 minutes on my i7
browndawg has left #ruby [#ruby]
Salve has quit [Ping timeout: 240 seconds]
<thoonai> 10 minutes on your i7? o.O what a mighty blob of code does v8 is?
yacks has quit [Ping timeout: 240 seconds]
<jhass> a javascript engine
<thoonai> jhass: single thread or muilti thread?
<thoonai> =i
<jhass> -j7
<thoonai> ok
<thoonai> so its a lot slower in songle thread then
mikepack has quit [Remote host closed the connection]
<jhass> yep
sski has quit [Remote host closed the connection]
<thoonai> probably I'm getting RAM issues due its 244MB/248MB since 15Minutes
sski has joined #ruby
<atmosx> thoonai: what kind of machine does have 248 MB or ram?
<jhass> probably a VPS
amclain has joined #ruby
mojjojo has quit [Quit: mojjojo]
alex88 has quit [Quit: Leaving...]
agarie has joined #ruby
havenwood has joined #ruby
sski has quit [Ping timeout: 252 seconds]
<pipework> The best kind of machine.
sparrovv has quit [Remote host closed the connection]
ecualombian has joined #ruby
yubrew has joined #ruby
nouitfvf_ has joined #ruby
Salve has joined #ruby
pu22l3r has quit [Remote host closed the connection]
jpierre03 has quit [Ping timeout: 244 seconds]
nouitfvf has quit [Ping timeout: 244 seconds]
<thoonai> atmosx: a virtual machine
<thoonai> jhass: whats an VPS?
<jhass> virtual private server
<thoonai> jhass: oh ok
<certainty> hydrajump: that's ok. Normally I don't do this since I want those changes for my user only.
tylersmith has joined #ruby
tectonic has quit []
<thoonai> jhass: Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before
<thoonai> bundling.
yubrew has quit [Ping timeout: 244 seconds]
<thoonai> jhass: this succeeded before o.O
<jhass> thoonai: read the message before that
<jhass> probably out of memory or something
<thoonai> An error occurred while installing libv8 (3.16.14.3), and Bundler
<thoonai> cannot continue.
<thoonai> jhass: I just paste all of it ;)
sepp2k1 has joined #ruby
<jhass> g++: internal compiler error: Killed (program cc1plus)
<jhass> sounds very much like OOM-killer
sepp2k has quit [Ping timeout: 240 seconds]
hobodave has joined #ruby
spider-mario has joined #ruby
jackneill has quit [Quit: WeeChat 0.4.3]
klaut_ has quit [Remote host closed the connection]
deadlock has joined #ruby
hobodave has quit [Client Quit]
jackneill has joined #ruby
Waheedi has quit [Quit: Waheedi]
<hydrajump> certainty so you source the bash or zsh file?
<thoonai> jhass: any idea?
<jhass> there's not much you can do
<jhass> maybe add a swapfile
Waheedi has joined #ruby
<jhass> do the gem install as suggested to cut out one or two processes consuming memory
<thoonai> I stopped the machine, added 1G RAM and started it again
<jhass> or that wa
<jhass> y
<Robbo_> do people here use slim? I'm getting infinite loops with a while loop no matter what I do
jetblack has quit [Quit: leaving]
<thoonai> jhass: libv8 alreaedy succeeded :/
<jhass> thoonai: I fear there's much you can do than retry
craigp has quit []
<thoonai> jhass: ok
<certainty> hydrajump: yepp .zshrc in my case
Mongey has quit [Quit: Mongey]
<certainty> well actually that just sources other files but somewhere in that process i setup my PATH
<Robbo_> that always fininite loops
<jhass> Robbo_: that looks a lot like you're putting logic into the view
<Robbo_> oh it sure is
<Robbo_> this phase has all the rules broken
<jhass> Robbo_: make an example of your real usecase, maybe we can rewrite it without using while
Celm has joined #ruby
<Robbo_> but the syntax is fine right?
nisstyre has quit [Ping timeout: 244 seconds]
<Robbo_> it shouldn't be looping infinitely
nisstyre_ has joined #ruby
<art-solopov> Please explain, what is the difference between adding dependencies in gemspec and adding dependencies in Gemfile.
snuffeluffegus has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
<jhass> Robbo_: haven't used slim enough to tell from just looking. The ruby is sane
pushpak has joined #ruby
<Robbo_> well I run it through slimrb to see the compiled results and that is what it is
<havenwood> art-solopov: A .gemspec is for a gem's dependencies. A Gemspec is for an app's dependencies. http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
<havenwood> Gemfile**
<Robbo_> so I just don't understand how I get an infinite loop unless it is a slim bug
<art-solopov> havenwood: Thanks, I'll read it.
datacrusher has quit [Remote host closed the connection]
kraljev5 has quit [Quit: kraljev5]
<havenwood> art-solopov: Basically a .gemspec is essential to a gem. A gem can also have a Gemfile for convenience but the Gemfile.lock should be git ignored. An app's Gemfile.lock on the other hand should be checked into version control.
echevemaster has quit [Read error: Connection reset by peer]
rankine has quit [Remote host closed the connection]
<havenwood> art-solopov: If you're cutting gems you'll run into .gemspecs, otherwise a Gemfile is the way to go.
jpierre03 has joined #ruby
atno__ has quit [Read error: Operation timed out]
hiyosi has quit [Ping timeout: 252 seconds]
<art-solopov> havenwood: Okay... Please, explain to me the difference between a gem and an app. I mean, you can make an app into a gem, right? And, as far as I know, it's a good practice, right?
klaut_ has joined #ruby
chipotle has joined #ruby
echevemaster has joined #ruby
<shevy> art-solopov a gem is like a .tar.xz archive; you bundle code into it then you can distribute it
atno has joined #ruby
<havenwood> art-solopov: Typically you don't cut an app into a gem. Say if you have a Rack-based app, like a Sinatra or Rails app - it would have a Gemfile that lists the dependencies.
<havenwood> art-solopov: Sinatra and Rails themselves are gems with .gemspecs.
<art-solopov> havenwood: But Rails is an app, right? I mean, it has executable and all.
<havenwood> art-solopov: Rails is a gem, a framework for making apps.
sigurding has joined #ruby
<shevy> art-solopov a .gem can have bin/ directory so it can have "executables" too
<havenwood> art-solopov: app being short here for webapp
<art-solopov> havenwood, shevy: So app is, basically, something that you don't plan to redistribute widely and that isn't meant to have something built on top of it, like redmine, right?
<havenwood> art-solopov: yeah, pretty much. an app you host, a gem you distribute
<art-solopov> havenwood: Thank you very much.
iliketurtles has joined #ruby
<art-solopov> Sorry for the stupid questions. >_<
<havenwood> art-solopov: no prob, not stupid at all
<havenwood> art-solopov: confusing terminology
smathieu has joined #ruby
<havenwood> art-solopov: gems, libraries, apps, executables, etc
lutfidemirci has joined #ruby
<art-solopov> havenwood: Sorta. ^_^ I just decided to do things "right" this time, with "process": testing, dependencies and such...
shadoi has joined #ruby
<havenwood> you might say gems are libraries and executables and apps depend on gems
jjbohn|afk is now known as jjbohn
<havenwood> art-solopov: nice
Findegil has joined #ruby
<havenwood> art-solopov: are you making an app or cutting a gem?
yfeldblum has joined #ruby
<art-solopov> havenwood: An app. Wanna dig into Sinatra.
<havenwood> art-solopov: <3 Sinatra
<shevy> art-solopov app is just a fancy advertizement term. A .gem file is simply ruby's way to distribute something to other gem-users.
mourest has quit [Remote host closed the connection]
reset has joined #ruby
Abyss-- has quit [Read error: Connection reset by peer]
<art-solopov> havenwood: I've looked at Rails somewhat, and I had Dancer at my previous job, and I've done a simple Flask app.
<shevy> you could even put binary data into a .gem file if you want to
<pipework> Are you human, or are you dancer?
<pipework> .gem is just a packaging format.
<pipework> So you can put pretty much anything you can archive within it.
smathieu has quit [Remote host closed the connection]
Abyss-- has joined #ruby
Findegil is now known as Nicholasflamel
<havenwood> art-solopov: Flask was an april fools day clone of Sinatra originally, i think.
smathieu has joined #ruby
proxie has joined #ruby
<havenwood> according to lore at least :P
virtualize has quit [Ping timeout: 252 seconds]
Nicholasflamel is now known as Alchemyst
Alchemyst is now known as NicholasFlamel
Celm has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
* havenwood ponders if all of Python is an April Fools Day joke.
yfeldblum has quit [Ping timeout: 265 seconds]
<art-solopov> havenwood: Wow. It turned out well. =)
<pipework> havenwood: Unfortunately, fools the rest of the year have taken themselves seriously.
<atmosx> pipework: I never quite understood the difference between humans and dancers
<art-solopov> havenwood: There is a legend that C was an April Fool's joke. =3
<havenwood> art-solopov: Yeah, that has to be one of the more successful April Fools Day pranks. :O
amclain_ has joined #ruby
nateberkopec has joined #ruby
<havenwood> atmosx: There is an intersection but not a proper subset.
fightback has joined #ruby
amclain has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Client Quit]
smathieu has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
carif has quit [Quit: Ex-Chat]
amclain_ has quit [Read error: Connection reset by peer]
cjsarette has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
werdnativ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Quit: zzzzz…..]
sarmiena_ has joined #ruby
Squarepy has joined #ruby
sarmiena_ has quit [Client Quit]
<shevy> I am not human but I can dance
smathieu has joined #ruby
Mongey has joined #ruby
<certainty> shevy: we need proof
Symbiosisz2 has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
jeregrine has quit [Quit: Connection closed for inactivity]
<art-solopov> certainty: Of non-humanity or ability to dance?
<certainty> art-solopov: idealy both
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
evenix has joined #ruby
alex88 has joined #ruby
chipotle has quit [Quit: cya]
jhass is now known as jhass|off
sentinal8473 has joined #ruby
<b1nd> Does Sinatra have issues with :sass vs :scss ?
jjbohn is now known as jjbohn|afk
julian` has joined #ruby
james_d_h has joined #ruby
Mongey has quit [Quit: Mongey]
nowthatsamatt has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
frem has quit [Quit: Connection closed for inactivity]
Mongey has joined #ruby
timonv has joined #ruby
yubrew has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
jhass|off is now known as jhass
timonv has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
Jetchisel has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
Mongey has quit [Quit: Mongey]
centrx has joined #ruby
Mongey has joined #ruby
retrograde has joined #ruby
Hobogrammer has joined #ruby
toastynerd has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 244 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
deadlock has quit [Ping timeout: 252 seconds]
evenix has quit [Remote host closed the connection]
<thoonai> jhass: ok I'm puzzled but it worked
<thoonai> :/
francisfish has quit [Remote host closed the connection]
evenix has joined #ruby
nateberkopec has joined #ruby
quatron has joined #ruby
sigurding has quit [Quit: sigurding]
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
saarinen has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
lyubent has joined #ruby
nateberkopec has quit [Client Quit]
YamakasY has joined #ruby
razrunelord has joined #ruby
NalloK has left #ruby [#ruby]
arietis has quit [Quit: Computer has gone to sleep.]
lutfidemirci has quit [Ping timeout: 240 seconds]
Umschwung has quit [Ping timeout: 264 seconds]
bufferloss has joined #ruby
decoponio has quit [Quit: Leaving...]
ecualombian has quit [Remote host closed the connection]
blackmesa has joined #ruby
bthesorceror has quit [Remote host closed the connection]
evenix has joined #ruby
jph98 has joined #ruby
bthesorceror has joined #ruby
S0da has quit [Remote host closed the connection]
momigi has joined #ruby
skaflem has quit [Quit: Leaving]
recurrence has joined #ruby
YamakasY_ has joined #ruby
jjbohn|afk is now known as jjbohn
YamakasY has quit [Ping timeout: 252 seconds]
Symbiosisz2 has quit [Remote host closed the connection]
gnephiak has quit [Quit: Konversation terminated!]
hiyosi has joined #ruby
bthesorceror has quit [Ping timeout: 265 seconds]
lyubent has quit [Quit: Leaving.]
senayar has joined #ruby
oneawayman has joined #ruby
dwgg has joined #ruby
dwgg has left #ruby [#ruby]
axsuul has joined #ruby
angoragoats has quit [Quit: angoragoats]
lyubent has joined #ruby
seksifemale has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
BraddPitt is now known as clindsay107
Celm has joined #ruby
clindsay107 is now known as xBradPittx
angoragoats has joined #ruby
jjbohn is now known as jjbohn|afk
retrograde has quit [Remote host closed the connection]
arietis has joined #ruby
<kennym> does anyone know what Ruby web server is used when deploying Ruby apps to Heroku?
<kennym> default = given your Procfile is non-existent
razrunelord has quit [Remote host closed the connection]
iliketurtles has joined #ruby
angoragoats has quit [Quit: angoragoats]
maximski has joined #ruby
circuit has joined #ruby
lyubent has quit [Quit: Leaving.]
razrunel_ has joined #ruby
jph98 has quit [Quit: jph98]
reset has quit [Quit: Linkinus - http://linkinus.com]
maximski has quit [Client Quit]
`MArceLL` has quit [Remote host closed the connection]
iliketur_ has joined #ruby
`MArceLL` has joined #ruby
iliketurtles has quit [Read error: Connection reset by peer]
<pipework> kennym: I believe it may depend on your stack.
smathieu has joined #ruby
<pipework> Like your stack choice within heroku. I hear there's a few.
<art-solopov> If a gem works under 2.0, what's the probability it'll work under 2.1?
<centrx> art-solopov, 99%
<art-solopov> centrx: Thanks.
<pipework> art-solopov: probable.
gregf has joined #ruby
<art-solopov> Thanks pipework
chrisseaton has joined #ruby
toastynerd has joined #ruby
whomp_ has joined #ruby
YamakasY has joined #ruby
<whomp_> how can i trigger irb every time there's an error
<whomp_> ?
smathieu has quit []
<jhass> whomp_: look at pry-rescue
<whomp_> jhass, perfect thx
carif has joined #ruby
YamakasY_ has quit [Ping timeout: 244 seconds]
carif has quit [Max SendQ exceeded]
<thoonai> /join #gitlab
<thoonai> oops ;)
bthesorceror has joined #ruby
estebanrules has quit [Quit: Textual IRC Client: www.textualapp.com]
IceDragon has quit [Ping timeout: 244 seconds]
Advocation has quit [Quit: Advocation]
jackneill has quit [Quit: WeeChat 0.4.3]
IceDragon has joined #ruby
Rober9393 has joined #ruby
Elico has quit [Ping timeout: 264 seconds]
LinearInterpol has joined #ruby
julian` has quit [Ping timeout: 252 seconds]
snkcld_ is now known as snkcld
YamakasY_ has joined #ruby
whomp_ has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
crystal77 has joined #ruby
ZoanthusR has quit [Quit: Leaving...]
Celm has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
ecualombian has joined #ruby
Xeago has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
ecualombian has quit [Client Quit]
Mongey has quit [Quit: Mongey]
enebo has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
sentinal8473 has quit [Quit: Textual IRC Client: www.textualapp.com]
NicholasFlamel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bbloom has quit [Ping timeout: 240 seconds]
momigi_ has joined #ruby
saarinen has quit [Quit: saarinen]
momigi_ has quit [Read error: Connection reset by peer]
momigi_ has joined #ruby
seksifemale has quit []
seksifemale has joined #ruby
seksifemale has quit [Max SendQ exceeded]
momigi has quit [Ping timeout: 240 seconds]
estebanrules has joined #ruby
momigi_ has quit [Read error: Connection reset by peer]
momigi has joined #ruby
Thanatermesis has quit [Ping timeout: 244 seconds]
jjbohn|afk is now known as jjbohn
markisonfire has joined #ruby
tesuji has joined #ruby
tesuji has quit [Excess Flood]
melmol has joined #ruby
appineer has joined #ruby
lyubent has joined #ruby
YamakasY has joined #ruby
<Dwarf> So...
YamakasY_ has quit [Read error: Connection reset by peer]
<Dwarf> I have a datamapper class
glebm has quit [Remote host closed the connection]
peterhu_ has quit [Quit: tmux update]
glebm has joined #ruby
YamakasY_ has joined #ruby
sparrovv has joined #ruby
<havenwood> So a datamapper class and a activerecord model walk into a bar...
<Dwarf> That'll make more sense I suppose
<pipework> havenwood: One is dead and the other refuses to become an SQL parser?
<pipework> or emitter?
mikepack has joined #ruby
ktosiek has quit [Remote host closed the connection]
<Dwarf> It's odd cause it worked before I restarted the application
<Dwarf> So I dug up the documentation and found this variant, and it gives the same error
appineer has quit [Client Quit]
YamakasY has quit [Ping timeout: 240 seconds]
<havenwood> pipework: haha
peterhu has joined #ruby
<pipework> havenwood: Have you had a moment to pay homage to your lord and savior, rom(http://rom-rb.org/), today?
* havenwood prostrates in reverence.
<havenwood> <3 Axiom
<pipework> rite
closures999 has quit [Remote host closed the connection]
dkamioka has joined #ruby
<art-solopov> havenwood: I used DataMapper once, I think it was pretty cute.
ktosiek has joined #ruby
* pipework says 5 hail-solnics in pure admiration and adolation
<Dwarf> So.. rom vs datamapper, which would you prefer and why?
not_a_guest has joined #ruby
saarinen has joined #ruby
<havenwood> Dwarf: Ruby Object Mapper is the Datamapper folk's effort.
<havenwood> folks'**
<pipework> ^
<havenwood> Dwarf: ROM is the future.
flagg0204 has quit [Ping timeout: 264 seconds]
<havenwood> Dwarf: Datamapper is the past.
<Dwarf> Yea.. the documentation is horrible
<Dwarf> Some parts are outdated
<pipework> Dwarf: one is the successor and the other is dead. Long live the data mapper pattern.
<centrx> Except ROM is basically dead!
<pipework> Virtus is not dead.
Thanatermesis has joined #ruby
Thanatermesis has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<havenwood> centrx: How so?!
<pipework> ROM isn't dead, it's just volatile as fuck.
timonv has joined #ruby
lolmaus has joined #ruby
<pipework> Because, lol I make computer jokes that no one thinks is funny. :(
<Dwarf> As long as it works
<havenwood> pipework: and Datamapper is active record pattern :P
<centrx> It was started three years ago, it only has one developer now
Findegil has joined #ruby
<Dwarf> I mean.. datamapper doesn't, so anything that does is an improvement
ZoanthusR has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<centrx> Basically stopped October 2013, 0 commits in the past month and a half
koell has joined #ruby
<Dwarf> Well, if it works
<centrx> It doesn't
<havenwood> centrx: last commit was a day ago
jjbohn is now known as jjbohn|afk
melmol has quit [Remote host closed the connection]
<havenwood> centrx: and other developers working on other parts
<centrx> Not on rom-rb / rom
<centrx> And why does it take three years when it doesn't even work yet
<havenwood> centrx: it does work!
fluxxed has quit [Ping timeout: 265 seconds]
flagg0204 has joined #ruby
Rober9393 has quit [Quit: Lingo - http://www.lingoirc.com]
<havenwood> centrx: granted there aren't many database adapters
timonv has quit [Ping timeout: 240 seconds]
<toretore> i'm creating a TCPServer and connecting a bunch (256) of clients to it, in the same process, sequentially. is it to be expected that i get an Errno::ECONNRESET on connect?
<Dwarf> As long as it does sqlite3
<centrx> What databases does it support?
<toretore> with a sleep 0.1 between connects it works fine
<havenwood> centrx: in memory, rdbms, and arangodb
<centrx> Dwarf, Apparently it only has read-only support for SQLite
axsuul has quit [Ping timeout: 240 seconds]
<Dwarf> Lame
<havenwood> centrx: i thought that was recently fixed?
<havenwood> hrm
klaut_ has quit [Remote host closed the connection]
<centrx> It was fixed from not working at all with SQLite, to having read-only support for SQLite
<centrx> According to that github issue
<Dwarf> That won't do much good for me then I guess
<centrx> "yeah unfortunately sqlite is not yet supported. The only supported RDBMS atm is postgres."
hydrajump has left #ruby ["Bye."]
<centrx> "It looks like postgres is not supported as well, because I see similar error:"
<Dwarf> Altho the database has almost 10k images atm, but I'd have to disable the likes, which I can do now too
<centrx> "I have the same problem with postgres, the in-memory adapter works well."
<centrx> "I can fix things to make it work with postgres and sqlite but it will be only for reading stuff."
<Dwarf> So.. activerecord?
<centrx> "This is fixed via this commit. Just please note that it's just a very early read-only support for now."
<centrx> "ok, this issue is gone, but I have other problems which I will described in another issue. Thanks."
<centrx> Dwarf, Or Sequel
iliketur_ has quit [Quit: zzzzz…..]
<Dwarf> Hmm, I don't have root access and the server admin did a global RVM install
<havenwood> +1 Sequel
<Dwarf> Any idea on how I would circumvent that to run my own version?
kevinykchan has quit [Read error: Connection reset by peer]
james_d_h has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
kevinykchan has joined #ruby
workmad3 has joined #ruby
timonv has joined #ruby
alex88 has quit [Quit: Leaving...]
bluOxigen has quit [Ping timeout: 252 seconds]
dkamioka has quit [Remote host closed the connection]
axsuul has joined #ruby
Oog has joined #ruby
claymore has joined #ruby
<Oog> regex /[.\r\n]*/ whould be same as /.*/m right?
<havenwood> Dwarf: --user-install Install in user's home directory instead
<Dwarf> Oooh
<Dwarf> Golly
baroquebobcat has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
<art-solopov> havenwood: ROM supports arangodb? Strange that it isn't listed on their webpage...
Packardnode has joined #ruby
<Dwarf> Ehm
<Dwarf> Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.1.1
<havenwood> Oog: nope
<Dwarf> I fear it doesn't quite work
<havenwood> Dwarf: oh, i thought you meant for installing gems
<havenwood> Dwarf: you might try #rvm for RVM's Ruby installation location
<Oog> havenwood: why not... im confused
<Dwarf> I asked there, it's quite dead
<havenwood> >> 'omgwtfbbq'[/[.asfdlkj]*/]
<eval-in> havenwood => "" (https://eval.in/116198)
<Dwarf> But wait, if I can just install gems locally then I suppose it would work too
<Oog> m means dot matches new lines
<art-solopov> havenwood: It's funny, because the same guy who sponsored them is developing his own ArangoDB OGM...
<Oog> so if i istead put new lines in the class it shoudl match it right?
pushpak has quit [Quit: Linkinus - http://linkinus.com]
saarinen has quit [Quit: saarinen]
<havenwood> rcs: chruby!
zcreative has joined #ruby
<rcs> havenwood: Neat! Why do I want that over rbenv?
<Dwarf> Yuck
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Speed has joined #ruby
Vovko has quit [Remote host closed the connection]
<Dwarf> $ gem install --user-install sequel
<Dwarf> Fetching: sequel-4.8.0.gem (100%)
<Dwarf> ERROR: While executing gem ... (Errno::EACCES)
<Dwarf> Just my luck
sentinal8473 has joined #ruby
dkamioka has joined #ruby
<havenwood> rcs: no shims so no need to rehash, smaller tool, allows Rubies to be installed anywhere desired
dkamioka has quit [Remote host closed the connection]
<havenwood> rcs: and pairs nicely with ruby-install, which supports arbitrary versions without even updating the tool
jjbohn|afk is now known as jjbohn
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<rcs> How does it work without shims?
mikepack has quit [Remote host closed the connection]
<havenwood> rcs: by setting the appropriate environment variables
ikaros has joined #ruby
Oog has quit []
<havenwood> rcs: sets up $PATH, $GEM_HOME, $GEM_PATH, $RUBY_VERSION, etc
oneawayman has quit [Ping timeout: 264 seconds]
<havenwood> rcs: these 99 lines do the lifting: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
<rcs> havenwood: If I'm reading chruby.sh right, it does it by constantly prepending things, which seems sub optimal.
<rcs> Ah. chruby reset deletes things from path.
<havenwood> rcs: are you worried about performace?
<rcs> I'm worried about things that modify my PATH willy nilly.
petunkina has joined #ruby
kirun has quit [Quit: Client exiting]
<havenwood> rcs: Using PATH as it is meant to be used.
bbloom has joined #ruby
spider-mario has quit [Remote host closed the connection]
Overlordz has joined #ruby
dkamioka has joined #ruby
<havenwood> rcs: precisely setting up PATH isn't willy nilly :P
francisfish has joined #ruby
perlsyntax has joined #ruby
burgess has joined #ruby
<rcs> havenwood: chruby_reset will remove a path that's been set manually if it ends up being the same as RUBY_ROOT.
nateberkopec has joined #ruby
<havenwood> rcs: yes
jetblack has joined #ruby
<rcs> That's modifying my path willy nilly.
<rcs> It's removing things I set that didn't go through it.
fijimunkii has joined #ruby
<havenwood> well, more like reorder according to what is desired
bluenemo_ has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<havenwood> rcs: the code is clear, the result is simple and effective, i don't quite get what you think is going to happen that is harmful
phansch has quit [Quit: WeeChat 0.4.2]
baroquebobcat has quit [Quit: baroquebobcat]
dkamioka has quit [Ping timeout: 265 seconds]
francisfish has quit [Ping timeout: 244 seconds]
<havenwood> rcs: shims all over the place on the other hand... :P
<RubyPanther> willy nilly may not be a technical term, but it is at least technical enough that we can say that removing things according to a documented pattern doesn't count. Neither does removing duplicates.
<rcs> PATH="fancy-ruby/bin:other-things" in my profile. I end up installing a ruby in fancy-path. I chruby to fancy-path. I chruby to something else. fancy-ruby/bin is no longer in my path.
<havenwood> rcs: pick a Ruby!
<rcs> chruby has now violated the implied contract about my path -- that it will only modify the things that it added.
<rcs> That counts as willy nilly.
<RubyPanther> There is no "implied contract"
<havenwood> rcs: no, it really doesn't
<rcs> havenwood: No it doesn't count as willy nilly?
<rcs> Or no, it doesn't modify my path?
nateberkopec has quit [Ping timeout: 240 seconds]
<RubyPanther> software modifies the environment as needed, and especially, as documented. That is normal.
<rcs> RubyPanther: Where's the modification of my path that's not set by chruby documented?
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> rcs: It is doing the simplest, least intrusive thing that works.
<RubyPanther> "willy nilly" means randomly, or without a reason, or on a whim.
<RubyPanther> So this isn't even a candidate case for "willy nilly"
<rcs> In this case, it means "cheap and lazy".
estebanrules is now known as estebanrules|awa
<RubyPanther> you're just using the wrong term then
<rcs> Fair enough.
<rcs> chruby modifies my path cheaply and lazily.
Findegil is now known as NicholasFlamel
<havenwood> rcs: Silliness.
<centrx> willy-nilly: "c.1600, contraction of will I, nill I, or will he, nill he, or will ye, nill ye, literally 'with or without the will of the person concerned.' See nill + will (v.)."
<rcs> centrx++
<Overlordz> huh.
<shevy> don't inflate centrx, he is already too heavy
<shevy> here, I will set him on a diet again
<shevy> centrx--
<RubyPanther> modifying env vars is not cheap or expensive, it is a really basic and expected operation. lazily, well, I think it actually does it right at the same time as it first checks it, so it isn't lazy either
bbloom has quit [Quit: Computer has gone to sleep.]
<centrx> I AM THE GReAEaEAeAeTEST!
<rcs> RubyPanther: The "cheap and lazy" is in reference to the algorithm used, which doesn't verify that its stripping only path parameters that were added by chruby.
<havenwood> rcs: You are cheaply and lazily using shims because you're apparently afraid of using environment variables as they're meant to be used. :P
Avahey_ has quit [Quit: Connection closed for inactivity]
<RubyPanther> rcs: not verifying that it was the one who added the parameter is not "cheap" nor is it an example of a lazy algorithm
<havenwood> rcs: the idea is to switch between Rubies, not use multiple at once >.>
<shevy> haha
<shevy> I like that as a disclaimer havenwood :)
<pipework> Shims. :(
<RubyPanther> I wouldn't choose chruby, and I wouldn't want it messing with my PATH, but it is not abnormal for an app to change the PATH or other env var. That is just how they are used.
<havenwood> rcs: i jest about cheap and lazy, of course - i don't think any of the Ruby management tools are either
<RubyPanther> It isn't nearly the sort of sin that rvm commits in fiddling cd
<RubyPanther> shims aren't bad either, though not everybody is going to like the taste
<rcs> rvm fiddling cd is much, much worse.
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
toastynerd has quit [Remote host closed the connection]
<pipework> No it isn't.
<havenwood> you make tradeoffs... chruby is the simplest thing that can possibly work. if you're trying to use multiple rubies at once you're doing it wrong.
timonv has quit [Remote host closed the connection]
sarmiena_ has joined #ruby
<pipework> Chruby is just nice path munging.
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<havenwood> MUNGE ALL THE THINGS \o/
dkamioka has joined #ruby
<RubyPanther> I'd rather shims than munging, but they are both normal *nix things
<havenwood> pick your poison
<pipework> Lolwat.
<havenwood> i'll drink the fine nectar of chruby
<pipework> Shims are abortions of empty symlinks.
<RubyPanther> shims are like SysV init scripts, except they only start the program, and they're named the same as the program
saarinen has joined #ruby
<RubyPanther> if symlinks could do the job on their own, without munging, I'd pick symlinks every time
timonv_ has joined #ruby
havenwood is now known as rehash_
jjbohn is now known as jjbohn|afk
bbloom has joined #ruby
<shevy> symlinks can be used for versioning different versions of any installed program
mikepack has joined #ruby
Hanmac1 has joined #ruby
gigetoo has quit [Remote host closed the connection]
<shevy> ruby-2.1.1 here I come
<rehash_> shevy: do eeet
rehash_ has quit []
jjbohn|afk is now known as jjbohn
Hanmac has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
mercwithamouth has joined #ruby
whomp has joined #ruby
havenwood has joined #ruby
koderok has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
razrunel_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
yubrew has joined #ruby
albedoa has joined #ruby
anshin has joined #ruby
chris_thomson has joined #ruby
whomp has quit [Ping timeout: 244 seconds]
andrewlio has quit [Quit: Leaving.]
axl_ has quit [Quit: axl_]
mattmcclure has joined #ruby
timonv_ has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
fightback has quit [Quit: ZzzzZZzzzzzz]
<art-solopov> Bye! Thanks for helpful advice! ^_^
art-solopov has quit [Quit: Konversation terminated!]
sarmiena_ has quit [Quit: sarmiena_]
kate_r has joined #ruby
<Dwarf> So.. I followed your advice
havenwood has quit [Read error: Connection reset by peer]
<Dwarf> I'm now using sequel!
<Dwarf> But now I get this odd error on this line: if like_url.likes.first(:nick => m.user.nick).nil?
<Dwarf> in `first': no implicit conversion of Hash into Integer (TypeError)
Czupa has quit [Ping timeout: 240 seconds]
jjbohn is now known as jjbohn|afk
saarinen has quit [Quit: saarinen]
koderok has quit [Ping timeout: 245 seconds]
marcdel_ has joined #ruby
einarj has joined #ruby
marcdel has quit [Ping timeout: 253 seconds]
fluxxed has joined #ruby
dkamioka has quit [Remote host closed the connection]
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_mtr has joined #ruby
whomp has joined #ruby
glebm has quit [Remote host closed the connection]
glebm has joined #ruby
<RubyPanther> Dwarf: almost everybody uses activerecord as their ORM, that is what is going to have the most support
evenix has joined #ruby
<RubyPanther> You have to be careful with advice on IRC, because most of it is going to fad-oriented
<bnagy> :`(
jjbohn|afk is now known as jjbohn
<Dwarf> Damn hipsters
<RubyPanther> You're much better off using google to find out what the "normal" choice is, and using that unless you have a reason not to
<arubin> FDD
<bnagy> aka web development
lantis has joined #ruby
<RubyPanther> I haven't even owned a FDD since 1999
<Dwarf> I suppose
fightback has joined #ruby
fightback has quit [Max SendQ exceeded]
<RubyPanther> Oh, wait, I do own one in an old case, I just never plugged it into the MB
werdnativ has quit [Quit: werdnativ]
<toretore> so sequel is the latest fad now?
<lantis> hello, could you help me? Is this nicer way to check variable than "if (var1 == 12) || (var1 == 13)" ? it doesn't look good (two times "var1")
<lantis> ?
mikepack has quit [Remote host closed the connection]
<bnagy> >> [12,13].include? 4*3
<eval-in> bnagy => true (https://eval.in/116207)
<shevy> lantis in such a case, using case when may be simpler
<shevy> case var1
<shevy> when 12,13 # or 12..13 I suppose
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<lantis> case has multiple lines unfortunately
<RubyPanther> maybe, maybe not, toretore. Still, most people use ActiveRecord. Maybe 100 AR to 1 Sequel. So for newbs or people that don't have their own reasons the choice is obvious. And a person recommending such a niche tool instead of the main tool, for their own reasons instead of for reasons the user gave, well that is clearly fan-based promotion rather than tool-for-the-job type of advice
lachesis has left #ruby ["Leaving"]
werdnativ has joined #ruby
dkamioka has joined #ruby
morenoh149 has joined #ruby
Speed has joined #ruby
anshin has left #ruby ["WeeChat 0.4.2"]
nateberkopec has joined #ruby
havenwood has joined #ruby
xibalba has joined #ruby
xibalba has joined #ruby
Shidash has joined #ruby
momigi has quit [Remote host closed the connection]
tvw has joined #ruby
momigi has joined #ruby
fijimunkii has quit [Quit: leaving]
jjbohn is now known as jjbohn|afk
<quatron> is there a good ruby data validation gem?
pwh has quit []
koderok has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
jjbohn|afk is now known as jjbohn
momigi has quit [Ping timeout: 244 seconds]
razrunelord has joined #ruby
lw has joined #ruby
werdnativ has quit [Quit: werdnativ]
mercwithamouth has quit [Ping timeout: 252 seconds]
lw has quit [Client Quit]
<centrx> Why is Fedora so obsessed with "friends"
whomp has quit [Ping timeout: 240 seconds]
perlsyntax has left #ruby ["Textual IRC Client: www.textualapp.com"]
razrunelord has quit [Ping timeout: 265 seconds]
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
francisfish has joined #ruby
<shevy> they want you to like them!
devda____ has joined #ruby
_mtr has quit [Quit: Textual IRC Client: www.textualapp.com]
oneawayman has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
Celm_ has joined #ruby
marcdel_ has quit [Ping timeout: 240 seconds]
oneawayman has quit [Read error: Connection reset by peer]
oneawayman has joined #ruby
yubrew has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
Fyyr13_ has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
marcdel has joined #ruby
mikepack has joined #ruby
Waheedi has quit [Quit: Waheedi]
<RubyPanther> friends, what?
<RubyPanther> I run Fedora, but it never talks to me about friends
<RubyPanther> No manual entry for friends
chris_thomson has quit []
atno has quit [Remote host closed the connection]
atno has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Fyyr13_ has quit [Ping timeout: 240 seconds]
chris_thomson has joined #ruby
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
mikepack has quit [Ping timeout: 265 seconds]
lyubent has quit [Quit: Leaving.]
<shevy> you have no friends :(
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
guilleiguaran has quit [Quit: Connection closed for inactivity]
<shevy> on reddit I make friends
mengu has quit [Remote host closed the connection]
<shevy> by pointing out how wrong they are
mengu has joined #ruby
pwh has joined #ruby
nolic has quit [Quit: Lost terminal]
nateberkopec has joined #ruby
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
mengu has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
bluenemo has quit [Read error: Connection reset by peer]
evenix has joined #ruby
morenoh149 has quit [Ping timeout: 244 seconds]
echevemaster has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
<albedoa> https://gist.github.com/albedoa/b29ed5a4575fdcf5c0d5 <— i forgot to put the @ symbol in front of `rank` (line 19), but my to_s method didn't fail. why is that? are we supposed to put the @ symbol there?
chipotle has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<bnagy> albedoa: you have attr_reader defined
markisonfire has quit [Quit: markisonfire]
<bnagy> albedoa: that created an instance method that's a getter for @rank, so that's what you're accessing
<albedoa> bnagy cool, but should we be including the @ symbol to differentiate from methods (status on line 19) and for readability, best practices?
morenoh149 has joined #ruby
<bnagy> it's not a huge deal either way, but IMHO no
<bnagy> I prefer to use methods even internally
ikaros has quit [Quit: Ex-Chat]
<bnagy> sometimes I have to change from a simple attr_reader to a method that does something else, or checks things, and if I use the method then I don't have to rewrite
<albedoa> ty bnagy
james_d_h has joined #ruby
Celm_ has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
markisonfire has joined #ruby
* apeiros prefers the opposite
<apeiros> IMO refactoring an ivar is trivial, should it really be necessary
<apeiros> and all the time you don't need to refactor it, you have less delegation in your code, which makes it easier to read.
<apeiros> and as a little topping, you get better performance.
jetblack has quit [Quit: leaving]
Squarepy has quit [Quit: Leaving]
james_d_h has quit [Ping timeout: 265 seconds]
devda____ has quit [Quit: Bye]
quatron has quit [Ping timeout: 244 seconds]
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oneawayman has quit [Read error: Connection reset by peer]
oneawayman has joined #ruby
LinearInterpol has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
YamakasY has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Shidash has quit [Ping timeout: 244 seconds]
Hanmac has joined #ruby
mikepack has joined #ruby
bluenemo_ has joined #ruby
ryanf has joined #ruby
YamakasY_ has quit [Ping timeout: 265 seconds]
i8igmac has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
jetblack has joined #ruby
einarj has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
mois3x has joined #ruby
echevemaster has joined #ruby
centrx has joined #ruby
hannes3 has joined #ruby
mois3x has quit [Client Quit]
mois3x has joined #ruby
hannes3 has quit [Client Quit]
koderok has quit [Quit: koderok]
jetblack_ has joined #ruby
jetblack has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
i8igmac has joined #ruby
iHaswell has joined #ruby
mlpinit has quit [Remote host closed the connection]
timonv has quit [Read error: Operation timed out]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
YamakasY_ has joined #ruby
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
Xuerian has joined #ruby
YamakasY has quit [Ping timeout: 265 seconds]
bbloom has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
jetblack_ has quit [Quit: leaving]
ktosiek has quit [Ping timeout: 240 seconds]
jetblack has joined #ruby
bluenemo_ has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
momigi has joined #ruby
iHaswell has quit [Ping timeout: 245 seconds]
fridim_ has joined #ruby
yubrew has joined #ruby
lw has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
momigi has quit [Ping timeout: 244 seconds]
Glyphik has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
sski has joined #ruby