apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
<wallerdev> all of the standard parts and keywords of ruby aren't the factory pattern, you have to implement code a certain way for it to be considered the factory pattern
fgo_zzZz has quit [Ping timeout: 256 seconds]
gz_rain has joined #ruby
lkba has joined #ruby
Eiam_ has quit [Read error: Connection reset by peer]
nuck has quit [Quit: Computer has gone to sleep.]
elfuego has left #ruby [#ruby]
gz_rain has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
towski_ has quit [Remote host closed the connection]
shime_ has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
mloveless has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
apeiros_ has joined #ruby
Deepu_ has quit [Ping timeout: 246 seconds]
nuck has joined #ruby
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp has quit [Excess Flood]
duncannz has quit [Remote host closed the connection]
shime has quit [Ping timeout: 245 seconds]
gz_rain has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp has joined #ruby
adamkittelson has quit [Remote host closed the connection]
gz_rain has quit [Read error: Connection reset by peer]
ellisTAA has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
Flcn has joined #ruby
adriancb has quit [Remote host closed the connection]
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
gz_rain has joined #ruby
metadave_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ozialien has quit [Remote host closed the connection]
<epx998> how can I get my counter=0 to not show up in my final conf file here
<wallerdev> use <% counter = 0 %.
<wallerdev> without the =
<wallerdev> the = means output the result
thumpba has quit [Remote host closed the connection]
<wallerdev> <%= outputs, <% doesnt
tcrypt has quit [Remote host closed the connection]
kaspertidemann has quit []
commmmodo has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
EvanFreeman has joined #ruby
<epx998> ok let me try that
nfk has joined #ruby
leonshalimov has joined #ruby
gawd has joined #ruby
Zai00 has quit [Quit: Zai00]
baroquebobcat has quit [Quit: baroquebobcat]
baweaver has joined #ruby
icarus_ has joined #ruby
<epx998> that was it, thanks. new to ruby, as of today :)
nfk has quit [Client Quit]
kl__ has quit [Ping timeout: 245 seconds]
kl has quit [Ping timeout: 245 seconds]
gregf_ has quit [Ping timeout: 252 seconds]
Aova has quit [Read error: Connection reset by peer]
dc has joined #ruby
gregf_ has joined #ruby
icebourg has quit []
leonshalimov has quit [Ping timeout: 252 seconds]
tvw has quit []
beneggett has quit [Ping timeout: 264 seconds]
tokik has quit [Quit: leaving]
<blizzy> with Gemfile, do I need to include default gems, like yaml and json?
tokik has joined #ruby
snath has quit [Ping timeout: 245 seconds]
tokik has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
josephndenton has joined #ruby
deconfigured has joined #ruby
Aova has joined #ruby
ghr has joined #ruby
djbkd has joined #ruby
gz_rain has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
skj3gg has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
dredaW7 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eytanfb has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
gz_rain has joined #ruby
tokik has joined #ruby
gz_rain has quit [Remote host closed the connection]
athan has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 244 seconds]
reinaldob has quit [Remote host closed the connection]
EvanFreeman has quit [Remote host closed the connection]
jfran has quit [Remote host closed the connection]
workmad3 has joined #ruby
shivamib_ has quit [Ping timeout: 240 seconds]
snath has joined #ruby
blackoperat has quit [Remote host closed the connection]
epx998 has quit [Quit: Leaving]
ellisTAA has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
tyfighter has quit [Quit: tyfighter]
icebourg has joined #ruby
tyfighter has joined #ruby
mloveless has joined #ruby
djbkd has quit [Remote host closed the connection]
icebourg_ has joined #ruby
icebourg_ has quit [Max SendQ exceeded]
mloveless has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
icebourg_ has joined #ruby
Xander_ has joined #ruby
<ellisTAA> i’m trying to solve some problems that require me to convert farenheit temperatures to celsius and celsius to fahrenheit. i’m working with options hashes. i’m encountering errors. can anyone offer some advice on which direction i should head https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
kl__ has joined #ruby
kl has joined #ruby
Xander_ has quit [Client Quit]
sevenseacat has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
<ellisTAA> should i create an initialize method that accepts a hash? should the hash include a key and a value - can i do that in a options hash?
ramfjord has joined #ruby
leafybasil has joined #ruby
djbkd has joined #ruby
<waxjar> ellisTAA: your #in_fahrenheit / #to_fahrenheit expect an argument, but you don't give it one in your tests
Flcn has quit [Quit: Be back later ...]
mloveless has joined #ruby
<ellisTAA> i see ty
oo_ has joined #ruby
cphrmky has quit [Read error: Connection reset by peer]
<waxjar> and yeah, you need an initialize method to accept the hash
baweaver has quit [Remote host closed the connection]
seal has joined #ruby
wodla00 has quit [Quit: wodla00 terminated!]
leafybasil has quit [Ping timeout: 245 seconds]
tcrypt has joined #ruby
<ellisTAA> waxjar: could you take a look @ lines 78 to 80 and let me know how i can set scale to the key of the options hash and temperature to the value of the options hash?
mloveless has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 264 seconds]
wodla00 has joined #ruby
icarus_ has quit [Quit: leaving]
<waxjar> are the options required or actually optional?
adriancb has joined #ruby
<ellisTAA> waxjarL they are required i think, or at least the test will always supply them
Hijiri has quit [Ping timeout: 244 seconds]
shime_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
i0n has quit [Quit: snooze]
<waxjar> hmm, could do @scale, @temp = options.first, but it's a bit of a hack :p
<ellisTAA> :P
<ellisTAA> thanks
Hijiri has joined #ruby
Renich has quit [Quit: leaving]
<waxjar> can't think of any other concise way to do it right now, safest way would be to check if the keys exist and then set @scale and @temp
<waxjar> @scale, @temp = options.find { |k,v| k == :c || k == :f } would work i think :)
zorak8 has quit [Ping timeout: 240 seconds]
fgo_zzZz has joined #ruby
<ellisTAA> how do i set up initialize to accept a hash as the argument?
sinkensabe has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
ghostmoth has quit [Quit: ghostmoth]
<wallerdev> def initialize(my_cool_hash)
yourabi has joined #ruby
yourabi has quit [Client Quit]
<ellisTAA> wallerdev: then how do i access the key and value of my_cool_hash?
djbkd has quit [Remote host closed the connection]
<wallerdev> same way as you would any hash
<wallerdev> my_cool_value = my_cool_hash[:my_cool_key]
<wallerdev> lol
<wallerdev> inside initialize
kenneth has joined #ruby
tcrypt has quit [Remote host closed the connection]
<eam> wallerdev: really should put that in module MyCool
yourabi has joined #ruby
zorak8 has joined #ruby
fgo_zzZz has quit [Ping timeout: 252 seconds]
<wallerdev> never a bad idae
mloveless has joined #ruby
ramfjord has joined #ruby
<wallerdev> i saw a javascript example from mozilla today that had a list of ["yo", "whaddup"] and somethin else
sinkensabe has quit [Ping timeout: 264 seconds]
n80_ has quit [Quit: n80_]
CpuID has quit [Read error: Connection reset by peer]
<eam> >> $VERBOSE=nil; Class, Module = Module, Class; module MyCool end; MyCool.class
<eval-in_> eam => Class (https://eval.in/249503)
<waxjar> a hello world that gives you street creds :D
mostlybadfly has quit [Quit: Connection closed for inactivity]
recurrence has joined #ruby
<eam> is there a reason Ruby lets us assign to constants
<recurrence> If B extends A, and A calls a super function in A. How can A access a constant in B? Doesn’t seem to work straight up
ta_ has joined #ruby
<wallerdev> it gives a warning if you overwrite one
<recurrence> Conceptually, it’s really an instance of B. So I thought this would work
<wallerdev> but ruby is very flexible so it doesnt really stop you from doing anything
uptownhr has quit [Quit: uptownhr]
pu22l3r has quit [Remote host closed the connection]
<eam> wallerdev: that ain't true
<recurrence> er sorry, meant o say “and B calls a super function in A"
<wallerdev> what isnt true?
uptownhr has joined #ruby
<eam> ruby lets you do anything
<wallerdev> lol
<wallerdev> okay sorry
jimms has joined #ruby
<wallerdev> ruby is very flexible
<eam> seriously though it's weird that constants are mutable
<recurrence> ruby certainly doesn’t let you do absolutely anything :)
<wallerdev> it's turing complete so technically it does :p
<recurrence> With Perl, you could literally implement Ruby
robustus has quit [Ping timeout: 264 seconds]
<recurrence> I suspect Ruby can’t implement Perl :)
<recurrence> wallerdev: There are plenty of problems turing complete languages can’t solve :)
<eam> like teaching a robot to love
matthewhill has joined #ruby
<eam> or overloading unary minus
pdoherty has joined #ruby
<eam> or defining a new %letter{}
tyfighter has quit [Quit: tyfighter]
hephaestus_rg has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
tonyhb has quit [Quit: peace]
towski_ has joined #ruby
eytanfb has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
matthewhill has quit [Ping timeout: 264 seconds]
TheLRThinker has joined #ruby
<ellisTAA> when i run my tests it is returning nil for everything. anyone got a clue why? https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
pdoherty has quit [Ping timeout: 252 seconds]
bronson has quit [Remote host closed the connection]
<jhass> ellisTAA: btw, you can add multiple files to a single gist
<ellisTAA> oh snap really?
mloveless has quit [Read error: Connection reset by peer]
CynosureKuruma has joined #ruby
<jhass> really
seal has quit [Quit: Ex-Chat]
towski_ has quit [Ping timeout: 276 seconds]
mloveless has joined #ruby
baweaver has joined #ruby
nuck has joined #ruby
leonshalimov has joined #ruby
<ellisTAA> thanks for letting me know
tyfighter has joined #ruby
marr has quit []
<jhass> I see tons of spec failures, not all which i can relate to your code
_ixti_ has quit [Ping timeout: 264 seconds]
<jhass> none that relate to nil though
<jhass> how sure are you the failures you showed relate to the code you showed?
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
Lingo__ has joined #ruby
<ellisTAA> god damnit u r right
<ellisTAA> i forgot to update it
davedev24_ has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
davedev24_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
pietr0 has quit [Quit: pietr0]
i0n has joined #ruby
<jhass> so, the last expression of a method is it's return value
<jhass> let's take in_fahrenheit
<jhass> what's the last expression of that method?
<ellisTAA> currently its correct_temp
<jhass> no
<ellisTAA> so should i use an if else statement?
<jhass> you should understand why your method returns nil first
<ellisTAA> k
<jhass> correct_temp = @temperature if @scale == ":f"
<jhass> that's the last expression of your method
leonshalimov has quit [Ping timeout: 255 seconds]
<ellisTAA> i see
<jhass> let's generalize it, a = b if c
<jhass> now what values can that expression have
<jhass> >> [(foo = :bar if true), (foo = :bar if false)]
<eval-in_> jhass => [:bar, nil] (https://eval.in/249531)
GaryOak_ has quit [Remote host closed the connection]
<jhass> as you can see, if the condition doesn't run, it's false
<ellisTAA> so it can only have a value if c is something?
fwef has joined #ruby
<jhass> the subexpression is an assignment
mbug has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<jhass> and assignment expressions value is always the right hand side
tcrypt has joined #ruby
<fwef> Hi, is it possible to run ruby's open-uri asynchronously? If not, what's the best way to achieve this?
<ellisTAA> ahh so “:f” should be switched with @scale
<jhass> er, if the condition doesn't run it's nil, sorry
<jhass> no, that's not the point I'm trying to make
<ellisTAA> oh damnit
Aova has joined #ruby
mrmargolis has joined #ruby
ghostmoth has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
<ellisTAA> jhass: i appreciate your help
towski_ has joined #ruby
<jhass> did you get it then? :)
patrick99e99 has joined #ruby
<ellisTAA> no lol
ghr has joined #ruby
checkit has quit [Ping timeout: 256 seconds]
<jhass> so, have a look at my example above
<ellisTAA> let me see
mloveless has quit [Remote host closed the connection]
<ellisTAA> so i ended up adding a correct_temp to the last line of the method. that doesn’t work
towski_ has quit [Remote host closed the connection]
<jhass> programmers are precise. "Doesn't work" is not precise
jwingfi has joined #ruby
n80_ has joined #ruby
<ellisTAA> i see
chipotle has quit [Quit: cheerio]
ghostmoth has quit [Client Quit]
eytanfb has quit [Ping timeout: 252 seconds]
greenbagels has joined #ruby
CocoStorm has joined #ruby
<CocoStorm> Hey guys
reinaldob has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
<CocoStorm> I have downloaded aptana and I have cloned an existing Ruby application from git.. Now I've promoted this project and I'm trying to run it... How do I do this?
jwingfi has quit [Client Quit]
CocoStorm has quit [Changing host]
CocoStorm has joined #ruby
wodla00 has quit [Ping timeout: 240 seconds]
danman has quit [Quit: danman]
oleo is now known as Guest16238
oleo__ has joined #ruby
aeontech has quit [Quit: aeontech]
tsnz has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
yeticry has quit [Ping timeout: 256 seconds]
<wallerdev> promoted?
<wallerdev> is it a rails project?
<CocoStorm> I don't think so
Guest16238 has quit [Ping timeout: 245 seconds]
<CocoStorm> Not sure, it's someone's project
<CocoStorm> I'm a java dev
yeticry has joined #ruby
nanoyak_ has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Ping timeout: 245 seconds]
Aesthetikxx has joined #ruby
<wallerdev> is it a website?
ghostmoth has joined #ruby
<CocoStorm> yeah
nanoyak has joined #ruby
recurrence has quit [Quit: recurrence]
<wallerdev> its probably rails then
<wallerdev> try going to the folder on your commandline and typing "rails server"
TinkerTyper has quit [Quit: ZNC restarting...]
deric_skibotn has quit [Ping timeout: 252 seconds]
<wallerdev> should start the server up
tonyhb has joined #ruby
<CocoStorm> it returns Your Ruby version is 2.2.0, but your Gemfile specified 1.9.3
<wallerdev> well thats good
<wallerdev> means its rails
tsnz has quit [Ping timeout: 264 seconds]
<wallerdev> lol
<wallerdev> but sounds like youre gonna run into some issues trying to set things up
<wallerdev> you can edit the file named Gemfile and change the version number to 2.2.0
<wallerdev> but might want to read up on the basics of rails
fgo_zzZz has joined #ruby
<CocoStorm> sweet, I'm "installing missing gems" now
<CocoStorm> what do I do after that?
nuck has quit [Quit: Computer has gone to sleep.]
<wallerdev> run rails server
<wallerdev> lol
<CocoStorm> I get this
<CocoStorm> An error occurred while installing debugger (1.6.8), and Bundler cannot continue.
<CocoStorm> Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.
<wallerdev> are you on windows
<CocoStorm> nope, mac
<wallerdev> run the command it gave you and see what the output is
TinkerTyper has joined #ruby
cashnguns has joined #ruby
baweaver has quit [Remote host closed the connection]
cashnguns has quit [Max SendQ exceeded]
<CocoStorm> ok
uptownhr has quit [Quit: uptownhr]
deconfigured is now known as athan
<ellisTAA> anyone know why my class method isn’t available to other class methods? https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
uptownhr has joined #ruby
<wallerdev> looks like you're not quite sure on the basics
<ellisTAA> :|
pierre1_ has joined #ruby
<wallerdev> maybe start with a book on ruby? haha
<sevenseacat> did you read the error message?
<sevenseacat> your Temperature class has no class methods
<ellisTAA> sorry i meant instance methods
cashnguns has joined #ruby
<sevenseacat> you're not calling any instance methods in your tests
<wallerdev> an instance method is used like class Cow; def moo; puts 'moo'; end end; cow = Cow.new; cow.moo
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<wallerdev> you're saying @temperature = 5; @temperature.moo
<wallerdev> 5 has no moo method
cashnguns has quit [Max SendQ exceeded]
<wallerdev> since 5 is not a Cow
mostlybadfly has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
cashnguns has joined #ruby
<wallerdev> the other issue you have is you need to use == instead of = for comparison
jimms has quit [Remote host closed the connection]
<sevenseacat> correctamundo
<Aesthetikxx> First of, to check if things are equal, use a double = sign, so like 'if @scale == :f'
<ellisTAA> the test uses in_fahrenheit & in_celsisus << in my methods i use other methods c_to_f and f_to_c but its saying thsoe don’t exist
<ellisTAA> yeah i did that but i was getting nul
<wallerdev> in your first example, @temperature gets assigned to 50
<wallerdev> then you call @temperature.f_to_c
<wallerdev> thats the same as calling 50.f_to_c
<ellisTAA> yeah
<wallerdev> 50 is a number
<wallerdev> it has no method f_to_c
cashnguns has quit [Max SendQ exceeded]
<wallerdev> only instances of the Temperature class have that method
<ellisTAA> but i made the method f_to_c
michael_mbp has quit [Excess Flood]
<wallerdev> you made it inside the Temperature class so you can use it on Temperature objects
<wallerdev> if you made it inside the number class, you could use it on numbers
tyfighter has quit [Quit: tyfighter]
<sevenseacat> note: dont add it to Numeric or anything like that
<wallerdev> lol
<ellisTAA> lol
tyfighter has joined #ruby
<ellisTAA> i see
baweaver has joined #ruby
<ellisTAA> so how do i get around this
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> do you understand the problem?
cashnguns has joined #ruby
ta_ has joined #ruby
michael_mbp has joined #ruby
Aesthetikxx has quit [Quit: Lost terminal]
<ellisTAA> i can’t aply f_to_c on @temperature bc @temperature is a number
<wallerdev> yup!!
<wallerdev> so what do you want to apply f_to_c on
ValicekB has quit [Ping timeout: 252 seconds]
techietrash has joined #ruby
<ellisTAA> so i just got rid of those methods & applied the math code to each thing that needed it. but … i had to use the = assignment sign instead of == which makes me worry i’ve done something wrong and what i’m doing is just a hack or something
amclain has joined #ruby
<wallerdev> lol
uptownhr has quit [Quit: uptownhr]
<wallerdev> the reason its not working with == is because you put your symbols in quotes
<wallerdev> >> :abc == ":abc"
<eval-in_> wallerdev => false (https://eval.in/249639)
<wallerdev> >> :abc == :abc
<eval-in_> wallerdev => true (https://eval.in/249640)
DadoCe has quit [Remote host closed the connection]
<CocoStorm> hey guys, so I've got rail s to work now. and the website is running locally.. but how do I actually run it from an iDE so i can change code and see the changes on the fly?
<CocoStorm> I'm using aptana
skj3gg has quit [Quit: ZZZzzz…]
<wallerdev> i think most people dont use IDEs for ruby dev
<wallerdev> but theres a channel #rubyonrails
<wallerdev> and they might be able to help about getting live updates without restarting the server
ta_ has quit [Ping timeout: 276 seconds]
<wallerdev> or maybe someone there uses aptana
<ellisTAA> wallerdev: thank you!
oivoodoo has quit [Remote host closed the connection]
<CocoStorm> wallerdev: so how do they edit code? :S
<sevenseacat> wallerdev: they're already there asking us too :P
<sevenseacat> you open the folder in your IDE
<sevenseacat> and make changes
<sevenseacat> then refresh your browser
Hobogrammer has joined #ruby
<CocoStorm> right
<wallerdev> oh in terms of editing code most people use text editors
<wallerdev> text editors + terminal
<CocoStorm> I see
<wallerdev> ruby is a very dynamic language so static analysis doesnt always work well on it
mbug has quit [Quit: ChatZilla 0.9.91.1 [SeaMonkey 2.32/20150112202541]]
<wallerdev> so things like refactoring might not work as expected like xcode or visual studio
graydot has quit [Quit: graydot]
<CocoStorm> so as long as rail s is running
<CocoStorm> and I edit the code
<CocoStorm> refreshing will refresh from server?
<CocoStorm> *browser
<wallerdev> i think some parts automatically update, some dont
<sevenseacat> config stuff wont
<sevenseacat> everything else will
dc_ has joined #ruby
<wallerdev> ah cool
<wallerdev> yeah i havent used rails in awhile
chu has joined #ruby
<CocoStorm> I see
<CocoStorm> wow, Ruby is strange
chu has quit [Client Quit]
<CocoStorm> I'll have to get used to it
<CocoStorm> :)
<wallerdev> lol
<CocoStorm> thanks guys
<wallerdev> yup
jpstokes has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
chu has joined #ruby
ValicekB has joined #ruby
baltazore has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
michael_mbp has joined #ruby
arescorpio has joined #ruby
pontiki has joined #ruby
skj3gg has joined #ruby
<CocoStorm> thanks wallerdev
DadoCe has joined #ruby
CocoStorm has quit [Quit: CocoStorm]
tcrypt has quit [Remote host closed the connection]
<ellisTAA> wallerdev: i got it to work. but i got this problem with rounding them … you mind taking a look? https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
<sevenseacat> well you are specifically calling `round`
<sevenseacat> why are you doing that if you dont want them rounded
bronson has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
<ellisTAA> bc there were several problems that had decimals so i used round
<ellisTAA> float didn’t work bc it was too long
<ellisTAA> actually i figured it out but i dont understand why round(1) works ...
<sevenseacat> because now you're rounding to one decimal place
<sevenseacat> instead of to whole numbers
<ellisTAA> thanks sevenseacat
<ellisTAA> dinner time
snath has quit [Ping timeout: 256 seconds]
Aova has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
symbol has joined #ruby
IrishGringo has joined #ruby
arup_r has joined #ruby
recurrence has joined #ruby
r0bby_ has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
workmad3 has joined #ruby
fwef has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Remote host closed the connection]
Lingo__ has quit [Quit: (null)]
ramfjord has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
ta_ has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
Aova has joined #ruby
r0bby_ is now known as robbyoconnor
pontiki has quit [Read error: Connection reset by peer]
dorei has joined #ruby
ghr has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
TheLRThinker has quit [Ping timeout: 264 seconds]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
xivusr has quit [Ping timeout: 252 seconds]
fandi has quit [Remote host closed the connection]
lampd1 has quit []
ursooperduper has quit [Ping timeout: 252 seconds]
hephaestus_rg has joined #ruby
tyfighter has quit [Quit: tyfighter]
ghr has quit [Ping timeout: 265 seconds]
x77686d has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
baltazore has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
krz has joined #ruby
scripore has joined #ruby
LWade has joined #ruby
zB0hs has joined #ruby
omosoj has quit [Quit: leaving]
msmith_ has joined #ruby
_maes_ has joined #ruby
djbkd has joined #ruby
wallerdev has quit [Quit: wallerdev]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ARCADIVS has joined #ruby
Joufflu has joined #ruby
withnale_ has joined #ruby
kenneth has joined #ruby
athan has quit [Read error: Connection reset by peer]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
withnale_ has quit [Ping timeout: 256 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
danman has joined #ruby
danman has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
nobitanobi has joined #ruby
kt2 has joined #ruby
Hijiri has joined #ruby
n80_ has quit [Quit: n80_]
matthewhill has joined #ruby
kapil__ has joined #ruby
gawd has quit [Quit: Leaving]
DadoCe has quit [Remote host closed the connection]
LWade has quit [Remote host closed the connection]
LWade has joined #ruby
jenrzzz_ has quit [Ping timeout: 244 seconds]
DadoCe has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DadoCe has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
matthewhill has quit [Ping timeout: 240 seconds]
josephndenton has quit [Ping timeout: 264 seconds]
ddd has quit [Ping timeout: 245 seconds]
<jonmorehouse> Anyone here have experience with eventmachine and postgres?
DadoCe has quit [Ping timeout: 244 seconds]
<jonmorehouse> I'm attempting to listen to a subscription from postgres and for each job, it should be able to access postgres
crueber has joined #ruby
<jonmorehouse> and this should all be done asynchronously within eventmachine
leonshalimov has joined #ruby
try has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
klmlfl has quit [Remote host closed the connection]
recurrence has quit [Quit: recurrence]
baweaver has quit [Remote host closed the connection]
davedev24_ has quit [Read error: Connection reset by peer]
pdoherty has joined #ruby
davedev24_ has joined #ruby
leonshalimov has quit [Ping timeout: 256 seconds]
lmickh has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 256 seconds]
seal has joined #ruby
ozialien has joined #ruby
avahey91 has joined #ruby
bricker has joined #ruby
jenrzzz has joined #ruby
pontiki has joined #ruby
ta_ has joined #ruby
piratepete_ has joined #ruby
veduardo has quit [Ping timeout: 272 seconds]
Hobogrammer has quit [Ping timeout: 244 seconds]
Aova has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
fandi has joined #ruby
xivusr has joined #ruby
pu22l3r has joined #ruby
EvanFreeman has joined #ruby
oivoodoo has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tsnz has joined #ruby
Aova has joined #ruby
longfeet_ has joined #ruby
tmtwd has joined #ruby
longfeet has quit [Ping timeout: 244 seconds]
josephndenton has joined #ruby
ghr has joined #ruby
yfeldblu_ has joined #ruby
sargas has joined #ruby
LWade has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
tsnz has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
LWade has joined #ruby
<sargas> loop is a class method of Kernel... where is while defined?
ramfjord has quit [Ping timeout: 264 seconds]
longfeet_ has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 255 seconds]
dorei has quit []
martinium has quit [Remote host closed the connection]
nanoyak has joined #ruby
tcrypt has joined #ruby
adriancb has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
tonyhb has quit [Quit: peace]
longfeet has joined #ruby
scripore has joined #ruby
nobitanobi has quit [Remote host closed the connection]
oivoodoo has quit [Remote host closed the connection]
<sargas> from what I can find, while built into Ruby, like if, def, class, etc
nobitanobi has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
tyfighter has joined #ruby
kl__ has quit [Ping timeout: 265 seconds]
kl has quit [Ping timeout: 265 seconds]
sargas has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
ajaiswal has joined #ruby
radic has quit [Ping timeout: 245 seconds]
xivusr has quit [Ping timeout: 276 seconds]
radic has joined #ruby
CynosureKuruma has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 245 seconds]
icebourg_ has quit []
nobitanobi has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
nobitanobi has joined #ruby
kenneth has joined #ruby
krz has quit [Ping timeout: 255 seconds]
djbkd has quit [Quit: My people need me...]
athan has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
kyb3r_ has joined #ruby
GeorgeThompson has joined #ruby
nobitanobi has quit [Remote host closed the connection]
bronson has joined #ruby
pontiki has quit [Quit: gnite all]
n008f4g_ has quit [Ping timeout: 272 seconds]
deol has joined #ruby
jaequery has joined #ruby
braincrash has quit [Quit: bye bye]
Fire-Dragon-DoL has quit [Quit: Leaving.]
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
DadoCe has joined #ruby
braincrash has joined #ruby
tus has quit []
bdamos has quit [Remote host closed the connection]
workmad3 has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
symbol has quit [Quit: WeeChat 1.1]
Spami has quit [Quit: This computer has gone to sleep]
ellisTAA has left #ruby [#ruby]
DadoCe has quit [Ping timeout: 244 seconds]
pierre1_ has quit [Quit: Leaving]
JoshGlzBrk has joined #ruby
pavelz has quit [Ping timeout: 246 seconds]
anaeem1 has joined #ruby
jhass has joined #ruby
pavelz has joined #ruby
anaeem1 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
anaeem1_ has joined #ruby
mroach has joined #ruby
bricker has quit [Ping timeout: 276 seconds]
cashnguns has quit [Remote host closed the connection]
Parker0 has joined #ruby
Spami has joined #ruby
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
Aova has quit [Read error: Connection reset by peer]
cyberarm has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
Parker0 has quit [Read error: Connection reset by peer]
msmith_ has quit []
Peter___ has joined #ruby
Aova has joined #ruby
josephndenton has joined #ruby
Darryl___ has joined #ruby
jcdesimp has joined #ruby
ghr has joined #ruby
krz has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
skj3gg has joined #ruby
oo_ has quit [Remote host closed the connection]
uptownhr has joined #ruby
bluOxigen has joined #ruby
adriancb has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
ellisTAA has joined #ruby
<ellisTAA> can someone help me understand what the comments are saying in my specification (i didn’t write them) https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
oivoodoo has joined #ruby
<ellisTAA> it seems like in the from spec i’m supposed to create a class method called from_celsius and somehow make it accessible to my instance methods ...
adriancb has quit [Ping timeout: 245 seconds]
<longfeet> looks like Temperature.from_celsius(50) returns nil
matthewhill has joined #ruby
<ellisTAA> i currently get an error message that says in_fahrenheit method isn’t defined
freerobby has quit [Quit: Leaving.]
xivusr has joined #ruby
musl_ has quit [Quit: WeeChat 1.0.1]
blizzy has quit [Read error: Connection reset by peer]
jcdesimp has quit [Quit: Leaving...]
Megtastique has quit []
jcdesimp has joined #ruby
oivoodoo has quit [Ping timeout: 255 seconds]
matthewhill has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: tyfighter]
VBlizzard has joined #ruby
arup_r has quit [Quit: Leaving.]
tyfighter has joined #ruby
hamakn has joined #ruby
ellisTAA has left #ruby [#ruby]
poguez has quit [Quit: Connection closed for inactivity]
leonshalimov has joined #ruby
VBlizzard is now known as blizzy
josephndenton has quit [Ping timeout: 252 seconds]
martinium has quit [Remote host closed the connection]
EvanFreeman has quit [Remote host closed the connection]
martinium has joined #ruby
Deele has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
astrobunny has joined #ruby
leonshalimov has quit [Ping timeout: 252 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
Mia has quit [Read error: Connection reset by peer]
arescorpio has quit [Excess Flood]
scripore has quit [Quit: This computer has gone to sleep]
lurkmaster has joined #ruby
pdoherty has joined #ruby
commmmodo has quit [Quit: commmmodo]
commmmodo has joined #ruby
Hijiri has joined #ruby
kenneth has joined #ruby
jcdesimp has quit [Quit: Leaving...]
rajeshchawla has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
tsnz has joined #ruby
ddd has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
scripore has quit [Client Quit]
iamninja has quit [Quit: ZZZzzz…]
xivusr has quit [Ping timeout: 245 seconds]
tsnz has quit [Ping timeout: 264 seconds]
LWade has quit [Ping timeout: 264 seconds]
Aova has quit [Read error: Connection reset by peer]
GeorgeThompson has quit [Ping timeout: 244 seconds]
blandflakes has quit [Ping timeout: 246 seconds]
bloudermilk has joined #ruby
ta_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
ivanskie has joined #ruby
Aova has joined #ruby
nobitanobi has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
psy_ has quit [Ping timeout: 264 seconds]
piratepete_ has quit [Quit: piratepete_]
skj3gg has quit [Quit: ZZZzzz…]
Peter___ is now known as PNDPO
krz has quit [Ping timeout: 255 seconds]
omosoj has joined #ruby
ghr has joined #ruby
hmsimha has joined #ruby
oo_ has joined #ruby
<omosoj> i'm working on a rails app and trying to figure out the routes.rb file. it's ~100 lines and has 4 large ~15 line blocks. it is so hard to understand. would you all consider understanding this a difficult task or no?
pu22l3r has quit [Remote host closed the connection]
havenwood has quit []
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rajeshchawla has quit []
<sevenseacat> without seeing it, no idea.
longfeet has quit [Ping timeout: 244 seconds]
PNDPO has quit []
fedexo has joined #ruby
<omosoj> anyone else? ^
ghr has quit [Ping timeout: 245 seconds]
<sevenseacat> lol
<sevenseacat> it depends on so very many things
havenwood has joined #ruby
pu22l3r has joined #ruby
skj3gg has joined #ruby
psy_ has joined #ruby
baltazore has joined #ruby
agrinb has quit [Remote host closed the connection]
Jameser has quit [Read error: Connection reset by peer]
Jameser` has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tokik has quit [Quit: leaving]
tokik has joined #ruby
lurkmaster has quit [Ping timeout: 246 seconds]
jgt2 has joined #ruby
tokik has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
yfeldblu_ has quit [Remote host closed the connection]
dredaW7 has quit [Quit: Wales]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seal has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
tokik has joined #ruby
skj3gg has joined #ruby
<shevy> like the availability of mice
<shevy> if there is a shortage of them, a cat's motivation will just go downhill
josephndenton has joined #ruby
omosoj has quit [Quit: leaving]
tokik has quit [Client Quit]
crueber has quit [Quit: Leaving.]
tokik has joined #ruby
JohnBat26 has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
nuck has joined #ruby
VBlizzard has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
patronus_ has joined #ruby
patronus has quit [Read error: Connection reset by peer]
frog|OFF has quit [Quit: I just got killed...]
skj3gg has joined #ruby
blizzy has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
jschoolcraft has quit [Ping timeout: 264 seconds]
diegoviola has quit [Quit: WeeChat 1.1]
davedev2_ has joined #ruby
bloudermilk has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 255 seconds]
uptownhr has quit [Quit: uptownhr]
williamherry has joined #ruby
mkaesz has joined #ruby
uptownhr has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
baltazore has quit [Remote host closed the connection]
maletor has joined #ruby
frog|OFF has joined #ruby
frog|OFF is now known as green-big-frog
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
LouisRoR has joined #ruby
tmtwd has quit [Remote host closed the connection]
xivusr has joined #ruby
Aova has quit [Read error: Connection reset by peer]
fandi has quit [Ping timeout: 272 seconds]
elabs-developer has joined #ruby
krz has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
Aova has joined #ruby
ta_ has joined #ruby
oleo__ has quit [Quit: Verlassend]
williamherry has left #ruby ["WeeChat 0.4.3"]
d10n-work has quit [Quit: Connection closed for inactivity]
jusmyth has joined #ruby
craigp has joined #ruby
anarang has joined #ruby
ghr has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
LouisRoR has quit [Ping timeout: 244 seconds]
Oberon4278 has joined #ruby
jusmyth has left #ruby [#ruby]
deol has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
jgt2 has quit [Ping timeout: 255 seconds]
matthewhill has joined #ruby
hirzu has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
elimS has joined #ruby
ta_ has joined #ruby
AlexRussia has joined #ruby
vdamewood has joined #ruby
Gadgetoid has joined #ruby
matthewhill has quit [Ping timeout: 272 seconds]
beneggett has joined #ruby
duncan_ has joined #ruby
duncan_ has quit [Remote host closed the connection]
snath has joined #ruby
dseitz has joined #ruby
uptownhr has quit [Quit: uptownhr]
tagrudev has joined #ruby
anarang has quit [Ping timeout: 272 seconds]
duncannz has quit [Remote host closed the connection]
duncannz has joined #ruby
TDJACR has quit [Quit: ZNC - http://znc.in]
ivanskie has joined #ruby
josephcs has joined #ruby
hvxgr has quit [Ping timeout: 246 seconds]
leonshalimov has joined #ruby
elimS has quit [Quit: Lingo: www.lingoirc.com]
Gadgetoid has quit [Ping timeout: 245 seconds]
uptownhr has joined #ruby
fandi has joined #ruby
VBlizzard is now known as blizzy
jgt2 has joined #ruby
ivanskie has quit [Ping timeout: 244 seconds]
echevemaster has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
swgillespie has joined #ruby
oivoodoo has joined #ruby
skj3gg has joined #ruby
speakingcode has joined #ruby
Renich has joined #ruby
kenneth has joined #ruby
mbeasley has quit [Ping timeout: 245 seconds]
oivoodoo has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
Sawbones has quit [Remote host closed the connection]
Xoro__ has quit [Read error: Connection reset by peer]
speaking1ode has quit [Ping timeout: 272 seconds]
Xoro__ has joined #ruby
sssilver has quit [Ping timeout: 240 seconds]
_5kg has quit [Ping timeout: 264 seconds]
sssilver has joined #ruby
mbeasley has joined #ruby
_5kg has joined #ruby
<Ikri> is there a social network gem that's recommended here? socialization looked great, but it's no longer supported. Inkwell similar story.
josephndenton has joined #ruby
apeiros_ has quit [Remote host closed the connection]
fgo_zzZz has quit [Ping timeout: 246 seconds]
havenwood has quit []
last_staff has joined #ruby
apeiros_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
tobago has joined #ruby
noop has joined #ruby
ptrrr has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
xivusr has quit [Ping timeout: 245 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baltazore has joined #ruby
astrobunny has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
astrobunny has joined #ruby
<certainty> moin
apeiros_ has quit [Ping timeout: 272 seconds]
TDJACR has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
tsnz has joined #ruby
astrobunny has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
mikepack has quit [Remote host closed the connection]
beneggett has joined #ruby
hirzu has quit [Ping timeout: 272 seconds]
fedexo has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
hirzu has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
tsnz has quit [Ping timeout: 245 seconds]
<shevy> hey certainty
skj3gg has joined #ruby
<certainty> hey shevy. you called me yesterday?
nobitanobi has quit [Remote host closed the connection]
<shevy> certainty I call you every day!
<certainty> and for good reasons
<shevy> but I have an ultra short memory on IRC
anarang has joined #ruby
<shevy> I couldn't tell you why I would call you yesterday
pdoherty has joined #ruby
<certainty> no problem, i'm here for you
<certainty> same i told to your mom
kl has joined #ruby
kl__ has joined #ruby
ptrrr has quit [Quit: ptrrr]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
arup_r has joined #ruby
LouisRoR has joined #ruby
hvxgr has joined #ruby
recurrence has joined #ruby
anarang has quit [Client Quit]
pdoherty has quit [Ping timeout: 246 seconds]
anarang has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bal has joined #ruby
Sawbones has joined #ruby
fgo_zzZz has joined #ruby
<shevy> certainty yeah, this is what I told your mom as well
<certainty> hehe
<shevy> but to be honest
<shevy> I am getting old
<shevy> I think it's time to stop playing with moms
martinium has quit [Remote host closed the connection]
<certainty> time for grannys?
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> no they are too occupied thinking about the end
skj3gg has quit [Quit: ZZZzzz…]
<shevy> I am preparing for an exam... "IPv6 was initially suggested in 1995"
<certainty> my mom told me the same about you
<shevy> trivia like that
craigp has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<shevy> yeah it is true, I can't deny it. I am almost the oldest here, only pontiki would beat me by a little
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> she does?
x77686d has joined #ruby
Gadgetoid has joined #ruby
jenrzzz has joined #ruby
* Nilium explodes into a thousand technicolor fancy ribbons
towski_ has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby
skj3gg has joined #ruby
nhhagen has joined #ruby
fandi has quit [Ping timeout: 245 seconds]
goganchic has joined #ruby
sinkensabe has joined #ruby
<shevy> certainty yeah
<shevy> old COBOL veteran
<arup_r> shevy: I am now 27. :)
<shevy> that is semi-young still
Aova has joined #ruby
<shevy> though soon you are 30 then you are old as well
<shevy> :-)
<certainty> i didn't know
<shevy> nah I don't think she knows COBOL actually
<certainty> shevy: nah 30 is not old
<shevy> yes it is!
<shevy> it's 12 years past 18!!!
<certainty> hehe
<shevy> and man once you are 30
<shevy> you are going for 40 ...
<eam> 30 years old or 30 years experience
<certainty> 30 years old
p0wn3d_mhs has quit [Remote host closed the connection]
<certainty> i'm 34 so i'm heading straight to the 40s
p0wn3d_mhs has joined #ruby
<eam> you and me both
towski_ has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
patrick99e99 has quit [Remote host closed the connection]
rdark has joined #ruby
patrick99e99 has joined #ruby
fandi has joined #ruby
ghr has joined #ruby
amclain has quit [Quit: Leaving]
codeFiend has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
matthewhill has joined #ruby
skj3gg has joined #ruby
* arup_r likes this phrase - "heading straight to the 40s"
ghr has quit [Ping timeout: 246 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fandi has quit [Excess Flood]
yfeldblum has quit [Ping timeout: 245 seconds]
defrang has quit [Quit: defrang]
<shevy> I think arup_r is making fun of us old farts :(
avahey91 has quit [Quit: Connection closed for inactivity]
<arup_r> No..
<arup_r> Never....
<shevy> arup_r: "hahaha you will reach the 40s much sooner than I will hahaha"
<shevy> ;-)
x77686d has quit [Quit: x77686d]
<shevy> but who wants to be immortal anyway
<arup_r> true
<shevy> imagine having to write ruby for 10000 more years
<arup_r> lol
matthewhill has quit [Ping timeout: 244 seconds]
nuck has joined #ruby
<eam> kill me now
<shevy> lol
<arup_r> The long life you would live.... the long pressure... you need to get. :)
codecop has joined #ruby
lampd1 has joined #ruby
ajaiswal has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
<certainty> i doubt that we have to "write" programs in 10000 years
<blizzy> is there anyway to make a global variable inside a class that can also be accessed in another file?
<certainty> i don't get the question
<shevy> certainty probably not but you always need to suggest an alternative
<shevy> blizzy sure. make a constant. or a @var that you can access with a class method
<shevy> but the term "global" is weird
skj3gg has quit [Quit: ZZZzzz…]
<shevy> because if it resides in a namespace of a class, how can it be really global?
CpuID has quit [Quit: This computer has gone to sleep]
<eam> shevy: namespaces are global?
<eam> global means it can be referenced by name from any scope
<eam> namespace != scope
<shevy> ?
tyfighter has quit [Ping timeout: 245 seconds]
shime has joined #ruby
workmad3 has joined #ruby
Sawbones has quit [Remote host closed the connection]
<eam> >> module Foo; class Bar; end; end; Foo::Bar # Bar is a global variable in the namespace Foo
<eval-in_> eam => Foo::Bar (https://eval.in/250563)
codeFiend has joined #ruby
DrCode has quit [Remote host closed the connection]
<eam> and you can assign to it because hey why not
<certainty> i like the fact that you said variable :)
<eam> well it is frankly
<eam> tired of pretending
<eam> $VERBOSE=nil; warnings be damned
<certainty> but every starter learns about uppercase things being constants :p
<certainty> when they find out that constants seem to be something different in ruby
<eam> >> Module Foo; Bar = 99; end; Foo::Bar
<eval-in_> eam => /tmp/execpad-dc50978dc3d8/source-dc50978dc3d8:3: syntax error, unexpected keyword_rescue, expecting end-of-input ... (https://eval.in/250564)
<eam> >> module Foo; Bar = 99; end; Foo::Bar
<eval-in_> eam => 99 (https://eval.in/250567)
Macaveli has joined #ruby
mkaesz has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
josephndenton has joined #ruby
ozialien has quit [Remote host closed the connection]
<shevy> to me only $foo is global. it leaks in and out onto every namespace. there is no "global" variable in any namespace
_5kg has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
<shellox> what's the recommded method to check the length of an array
<shellox> .length or .count?
<shellox> or .size
<shevy> you could argue that the top namespace is actually global
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> shellox .size; .length is an alias to .size or vice versa, .count is another method
<shevy> .size is shorter!
<shellox> thanks
<shevy> certainty how many different address types are there in IPv6?
<certainty> i bet count uses #length internally (or its implementation) if no argument has been given
Sawbones has joined #ruby
<shevy> I wanna have an argument with you
<certainty> shevy: what's an address type?
<shevy> certainty not sure... reading this from a pdf here
<shevy> the distinction that the guy wanted to make was (1) unicast (2) broadcast (3) multicast (4) anycast, whatever he wanted to convey
<certainty> looks like a reference
jusmyth has joined #ruby
<certainty> i don't know a shit about ipv6
josephndenton has quit [Ping timeout: 245 seconds]
<shevy> me neither... but it's one part of the exam so now I am toast
jusmyth has left #ruby [#ruby]
<shevy> "explain to me the differences between IPv6 and IPv4"
<shevy> "I just use dhcpcd!!!"
<shevy> oh that .pdf is nice, thanks certainty
<sevenseacat> one has many more numbers and some letters
<sevenseacat> and a few :s
<certainty> that's only the address
<shevy> now I know the difference between 0.0.0.0 and 127.0.0.1
<certainty> the entire ipv6 is alot different from ipv4
<shevy> certainty I'll just repeat common truths and hope he won't ask more :)
<certainty> shevy: heh, good. I had hoped you knew that before
<shevy> naaaah
<shevy> I use mostly just ruby really
<shevy> and kde konsole
ta has joined #ruby
DrCode has joined #ruby
greenarrow has joined #ruby
<shevy> gah... multicast
shashin has joined #ruby
<shevy> I feel like a sorcerer
shashin has joined #ruby
shashin has quit [Changing host]
Sawbones has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Renich has quit [Quit: leaving]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
shashin has quit [Read error: Connection reset by peer]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> shevy: a sourcerer? :)
<shevy> no they spell it without u in the UK
kenneth has joined #ruby
<shevy> oh you mean
<shevy> the source
<certainty> shevy: i know. that was on purpose to express a wizard with the source (code)
wallerdev has joined #ruby
<certainty> didn't fire as it seems
<shevy> yeah I get it I get it, it's typical certainty at work :)
green-big-frog has left #ruby [#ruby]
<shevy> obviously you are not having enough work to do right now
<certainty> /ignore shevy
kl has quit [Ping timeout: 244 seconds]
<blizzy> nvm I figured it out, thanks everyone, lol.
kl__ has quit [Ping timeout: 244 seconds]
sigurding has quit [Quit: sigurding]
oo_ has quit [Remote host closed the connection]
livathinos has joined #ruby
mkaesz has joined #ruby
fandi has joined #ruby
oo_ has joined #ruby
jimms has joined #ruby
SparkMasterTape has left #ruby ["Leaving"]
adriancb has joined #ruby
supergiel has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
martinium has joined #ruby
Aova has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
fandi has quit [Ping timeout: 240 seconds]
adriancb has quit [Ping timeout: 244 seconds]
dc_ has quit [Remote host closed the connection]
Joufflu has quit [Quit: Peace]
Spami has quit [Ping timeout: 245 seconds]
fandi has joined #ruby
defrang has joined #ruby
einarj has joined #ruby
Spami has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
Aova has joined #ruby
tesuji has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
craigp has joined #ruby
martinium has quit [Ping timeout: 246 seconds]
hirzu has quit [Quit: This computer has gone to sleep]
patrick99e99 has quit [Ping timeout: 276 seconds]
patrick99e99 has joined #ruby
alex88 has joined #ruby
hirzu has joined #ruby
codeFiend has quit [Quit: codeFiend]
mskaesz has joined #ruby
ta has quit [Remote host closed the connection]
timonv has joined #ruby
recurrence has quit [Quit: recurrence]
trampi has quit [Remote host closed the connection]
mkaesz has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
trampi has joined #ruby
msgodf has joined #ruby
leonshalimov has joined #ruby
<avril14th> morning
olivier_bK has joined #ruby
trampi has quit [Remote host closed the connection]
ajaiswal has joined #ruby
sigurding has joined #ruby
LouisRoR has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
craigp has quit [Remote host closed the connection]
Morkel has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
blizzy has quit [Ping timeout: 256 seconds]
leonshalimov has quit [Ping timeout: 252 seconds]
hirzu has quit [Quit: This computer has gone to sleep]
ahegyi has joined #ruby
hirzu has joined #ruby
_5kg has joined #ruby
trampi has joined #ruby
reinaldob has joined #ruby
einarj_ has joined #ruby
einarj has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 245 seconds]
astrobunny has quit []
willgorman has joined #ruby
patrick99e99 has joined #ruby
green-big-frog has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
dopiee has joined #ruby
frek818 has quit [Quit: frek818]
craigp has joined #ruby
kl__ has joined #ruby
kl has joined #ruby
<green-big-frog> I have this Code here: quote = parsed['quote'].gsub(/[\t\n]/, " ")
<green-big-frog> It's supposed to remove all \t and \n out of the JSON i fetch from this API: http://www.iheartquotes.com/api/v1/random.json
<green-big-frog> But it doesn't work everytime.... What am I doing wrong?
dumdedum has joined #ruby
tpilionis has joined #ruby
Darryl___ has joined #ruby
codeFiend has quit [Quit: codeFiend]
jenrzzz has quit [Quit: Lost terminal]
CynosureKuruma has joined #ruby
dopie has quit [Ping timeout: 252 seconds]
jimms has quit [Read error: Connection reset by peer]
supergiel has quit [Quit: Leaving]
recurrence has joined #ruby
jimms has joined #ruby
craigp has quit [Ping timeout: 255 seconds]
ta has joined #ruby
matthewhill has joined #ruby
kl__ has quit [Ping timeout: 276 seconds]
kl has quit [Ping timeout: 276 seconds]
shredding has joined #ruby
govg has quit [Ping timeout: 244 seconds]
tsnz has joined #ruby
recurrence has quit [Ping timeout: 245 seconds]
hephaestus_rg has quit [Ping timeout: 255 seconds]
<green-big-frog> I have this Code here: quote = parsed['quote'].gsub(/[\t\n]/, " ")
<green-big-frog> It's supposed to remove all \t and \n out of the JSON i fetch from this API: http://www.iheartquotes.com/api/v1/random.json
<green-big-frog> But it doesn't work everytime.... What am I doing wrong?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<krz> i have i have 0.upto(23).to_a. how can i convert those hours into a Time object?
<krz> i dont really care about date
matthewhill has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<ahegyi> green-big-frog: try to add \r as well
tsnz has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
<krz> i guess i could iterate and do a Time.new(1,1,1,i,0,0)
LouisRoR has joined #ruby
<krz> but is there a better way?
<green-big-frog> ahegyi: ty
<green-big-frog> somehow i missed that as I was checking the API
<green-big-frog> ty
green-big-frog has left #ruby [#ruby]
<ahegyi> 0.upto(23).map { |i| Time.new(1,1,1,i,0,0) }
<ahegyi> I don't know better way to do it
einarj_ has quit [Ping timeout: 244 seconds]
johnzz has joined #ruby
einarj has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
<certainty> krz: what are you using that for?
govg has joined #ruby
oivoodoo has joined #ruby
bronson has joined #ruby
CynosureKuruma has quit [Read error: Connection reset by peer]
matthewhill has joined #ruby
ponga has joined #ruby
jaequery has joined #ruby
codeFiend has joined #ruby
mroach has quit [Quit: mroach]
FooMunki_ has joined #ruby
tokik has quit [Ping timeout: 246 seconds]
hirzu has quit [Ping timeout: 245 seconds]
goganchic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bronson has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
pdoherty has joined #ruby
blackmesa has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<krz> certainty: displaying business hours
ta_ has joined #ruby
<certainty> krz: why do you need a time object then?
hirzu has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
Macaveli has quit [Ping timeout: 272 seconds]
<krz> certainty: to make use of strftime
<krz> convenience i guess
marr has joined #ruby
wallerdev has quit [Quit: wallerdev]
<certainty> but you're only displaying the hours, no?
seal has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<krz> yea i guess i could use it as an int object
patrick99e99 has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
matthewhill has quit [Quit: Be back later ...]
lolmaus has joined #ruby
Aova has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
govg has quit [Quit: leaving]
<certainty> krz: sounds good to me
<certainty> then it's just 0..23
ponga has quit [Remote host closed the connection]
<krz> yea thanks for that
<krz> :))
apeiros_ has joined #ruby
ponga has joined #ruby
uptownhr has quit [Quit: uptownhr]
sevenseacat has left #ruby [#ruby]
Macaveli has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
The_Phoenix has joined #ruby
dmolina has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
uptownhr has joined #ruby
Macaveli has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
Macaveli has quit [Client Quit]
frek818 has joined #ruby
Macaveli has joined #ruby
patrick99e99 has joined #ruby
oo_ has quit [Remote host closed the connection]
<krz> certainty: a slight challeng is turning that 24 hour format to a 12 hour forma
frek818 has quit [Client Quit]
<krz> ideally with a time object, it would be more convenient
pwnz0r has joined #ruby
kp666 has joined #ruby
ta_ has joined #ruby
skj3gg has joined #ruby
chthon has joined #ruby
oo_ has joined #ruby
tcrypt has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 245 seconds]
chth0n has joined #ruby
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
yfeldblum has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skj3gg has quit [Quit: ZZZzzz…]
josephndenton has joined #ruby
commmmodo has quit [Quit: commmmodo]
oo_ has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
joast has quit [Ping timeout: 252 seconds]
codeFiend has quit [Quit: codeFiend]
Zai00 has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
arup_r has joined #ruby
recurrence has joined #ruby
bergelmir has joined #ruby
pwnz0r has quit [Remote host closed the connection]
The_Phoenix has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
decoponio has joined #ruby
recurrence has quit [Ping timeout: 240 seconds]
dionysus69_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mskaesz has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus69_ is now known as dionysus69
andikr has joined #ruby
vvivv has joined #ruby
Timgauthier has joined #ruby
workmad3 has joined #ruby
leafybasil has joined #ruby
kalz has quit [Ping timeout: 265 seconds]
mskaesz has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
mercwithamouth has joined #ruby
sudog has joined #ruby
kl__ has joined #ruby
kl___ has joined #ruby
livathin_ has joined #ruby
<arup_r> IRC looks like a fastest clone of twitter... :p
<tobiasvl> ???
<Timgauthier> uhm...
<mercwithamouth> lol
<Timgauthier> you realize IRC is from like 1998 right?
<Timgauthier> likely much before that
<tobiasvl> 1988, you mean
Morkel has quit [Quit: Morkel]
<Timgauthier> thanks tobiasvl :P
<Timgauthier> i started using it in 1998 :P
* Timgauthier is an internet baby
<tobiasvl> lol
patrick99e99 has quit [Ping timeout: 245 seconds]
<tobiasvl> IRC is from 1988, Twitter is from 2006
<shellox> that's like saying html is a faster clone of flash...
mikepack has joined #ruby
<Timgauthier> arup_r is new to the internets
patrick99e99 has joined #ruby
<shellox> i like irc. you can even connect with netcat
<Timgauthier> sure
<Timgauthier> what is netcat?
<Timgauthier> is that one of them wired internet connections?
livathinos has quit [Ping timeout: 245 seconds]
<arup_r> Ok.. reverting -- Twitter is the slowest clone of IRC.. ;)
<Timgauthier> my great grand pappi tells me stories about when they used to have to plug a big fat rope like thing into their iphones to get internet
<arup_r> hahahhaha
<Timgauthier> they're very different in execution arup_r
<certainty> no cat pictures on irc (ignoring DCC)
* arup_r lacks technical knowledge
<Timgauthier> certainty lol
<Timgauthier> why doesn't this video streaming work on firefox :'(
<Timgauthier> fucking firefox and html5 video
<certainty> go do it the old way
<certainty> read a book
<Timgauthier> i can't, its client work
<Timgauthier> i should read my book
<certainty> then you're skrewed
<shellox> twitter is a platform for people who think they're important and for illiterate celebrities
<Timgauthier> its nice, has a black flat cover
<certainty> you have a book?
<Timgauthier> yes i am reading a book
<certainty> i thought you wrote one :)
<Timgauthier> well, i say that like a person posting cat pictures is 'Having a nice evening with the cat"
<Timgauthier> pfft i can barely read
reinaldob has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
jimms has quit [Remote host closed the connection]
<arup_r> shevy: might be changing his all ip4 addresses ti ipv6...
<arup_r> to make his boxes more secured from the internet
<arup_r> :p
bricker has quit [Quit: leaving]
<Timgauthier> sec
_Andres has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
<Timgauthier> yup i have an ip5 address
<vvivv> what is the best theme for Sublime text?
<Timgauthier> vim
<canton7> entirely personal taste :P
hanmac1 has joined #ruby
<arup_r> How??? :(
_Andres has joined #ruby
aswen has joined #ruby
<arup_r> BTW... Why they skipped ip5?
seal has quit [Quit: Ex-Chat]
<vvivv> i like fox.dark
<tobiasvl> arup_r: IPv5 was a completely different thing. became ST2, Internet Stream Protocol v2
ta_ has joined #ruby
kalz has joined #ruby
<Timgauthier> ugh issues with newest version of firefox refusing to play mp4... sooo the customer gets to have fun doing a ton of work :|
<Timgauthier> vvivv then you have the best theme (for you)
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oivoodoo has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
matthewhill has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby
withnale_ has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
<certainty> arup_r: good question. dunno. i mean 6 isn't even a power of 2
matthewhill has quit [Ping timeout: 276 seconds]
troubadour has joined #ruby
mercwithamouth has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 276 seconds]
<Timgauthier> certainty i think arup_r is a troll of the highest order :P
<arup_r> No doubt!
ajaiswal has quit [Quit: Leaving]
<workmad3> a quantum troll... any statement he makes starts in an entangled superposition of 'trolling/not-trolling', and requires the action of multiple observers before the state decoheres into a suitable stable state
Hijiri has quit [Ping timeout: 245 seconds]
<Timgauthier> yea
<Timgauthier> its shevy i'm sure
<Timgauthier> :P
<Timgauthier> naw thats too complicated for shevy's brain maybe
<certainty> i like trolls
yfeldblum has joined #ruby
<Timgauthier> they taste delicious
dukedave has quit []
dukedave has joined #ruby
<workmad3> Timgauthier: they taste of hatred and bitter, unfulfilled dreams
<Timgauthier> thats my mother
<workmad3> Timgauthier: it's like a really strong coffee
<Timgauthier> in a statement
<Timgauthier> i just had super delicious mild coffee
<Timgauthier> with a lot of sugar
<workmad3> heh
<workmad3> I've had 2 decent coffees so far today... just about at a point where consciousness doesn't feel like too much of a chore...
gccostabr has joined #ruby
<Timgauthier> i'm thinking about pushing another one
timonv has joined #ruby
otertore has quit [Quit: This computer has gone to sleep]
tcrypt has joined #ruby
otertore has joined #ruby
<arup_r> Guys,,, can anyone take me to work with you.. (parttime) ... ?
<Timgauthier> sure
<Timgauthier> start now, make me a coffee just the way I like it, and clean my house
<workmad3> arup_r: after that, you can grab a quick flight to my place and do my laundry...
ldnunes has joined #ruby
<Timgauthier> workmad3 work from home is rad!
<workmad3> arup_r: you're ok with this being an unpaid internship of up to 10 years, right?
<Timgauthier> i'll pay you what i may... nothing!!!!!
<arup_r> I didn't get the joke.
Hijiri has joined #ruby
<workmad3> arup_r: the joke is that you asked for work and we immediately came up with ways to exploit your labour services, with an attempt to do so for free
<Timgauthier> thats because you are the joke
<arup_r> Ohh!...
ta_ has quit [Ping timeout: 276 seconds]
tcrypt has quit [Ping timeout: 256 seconds]
jefus__ has joined #ruby
<workmad3> arup_r: and then further abusing your offer by suggesting that you'll be happy taking international flights (at your own expense) merely to do my housework for me :P
* certainty cleans up the troll food
<workmad3> certainty: no, that's arup_r's job now ;)
tsnz has joined #ruby
<certainty> :D
<arup_r> I think... I should now log out.... :(
<workmad3> arup_r: aww... but then I'll have to start being mean to certainty instead... and he takes it far too well
<arup_r> said something... and had been interpreted to something else..
<workmad3> Timgauthier: gah!!!!
<Timgauthier> saints row is awesome :P
<Timgauthier> reddit is too
ta_ has joined #ruby
<workmad3> Timgauthier: I'm now wondering if I can get away with the 'mum or sister?' joke ;)
<Timgauthier> both?
<Timgauthier> :P
<workmad3> Timgauthier: ah, ok... you're from one of *those* places :P
<Timgauthier> north america? yeah
<Timgauthier> oh man, i thought i was going to have to go make more coffee
danjordan has joined #ruby
<Timgauthier> ...
<Timgauthier> i havn't finished my first coffee
<Timgauthier> this is a bad thing
<arup_r> lol
jefus_ has quit [Ping timeout: 245 seconds]
<workmad3> I need to go make more coffee
<arup_r> Timgauthier: lost his mind.. it seems
joonty has quit [Quit: joonty]
<workmad3> arup_r: you're assuming he ever had one...
hgl- has joined #ruby
<arup_r> humm.. so
<arup_r> :)
<arup_r> I trust all but not my words
hgl- has quit [Max SendQ exceeded]
tsnz has quit [Ping timeout: 272 seconds]
<Timgauthier> my mind is an empty canvas
<Timgauthier> that shit isn't even stretched on a frame
hgl- has joined #ruby
baltazor_ has joined #ruby
<workmad3> Timgauthier: ah, so what you really meant was "My mind is a tattered rag, screwed up and thrown in the corner of an artist's studio" but you wanted to dress it up a bit
<Timgauthier> yes
hgl- has quit [Max SendQ exceeded]
oivoodoo has joined #ruby
hgl- has joined #ruby
* arup_r <thumbs up> Bro..
hgl has quit [Ping timeout: 264 seconds]
hgl- is now known as hgl
<arup_r> And also..He is a Bong like me... double proud!!!
<Timgauthier> wtf is a bong
<Timgauthier> he's also actually an american
baltazore has quit [Ping timeout: 240 seconds]
<arup_r> Banerjee... is the mark that he is a Bong.. means bengali...
<Timgauthier> i see
<Timgauthier> also the problem i forsee with his "cheap" printer is the same reason the other ones are expensive... they need to make very sharp points into the paper to be readible and to stay readible, and a cheap machine will not stay sharp long enough
livathin_ has quit [Remote host closed the connection]
<arup_r> may be
bronson has joined #ruby
livathinos has joined #ruby
eka has joined #ruby
rodfersou has quit [Quit: leaving]
ARCADIVS has quit [Quit: ARCADIVS]
hamakn has quit [Remote host closed the connection]
blackmesa has joined #ruby
shashin has joined #ruby
shashin has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
craigp has joined #ruby
oo__ has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
mroth has quit []
mroth has joined #ruby
joonty has joined #ruby
oivoodoo has quit [Ping timeout: 272 seconds]
oo_ has quit [Ping timeout: 255 seconds]
oivoodoo has joined #ruby
mikecmpbll has joined #ruby
livathinos has quit [Remote host closed the connection]
timonv has quit [Quit: WeeChat 1.1]
timonv has joined #ruby
tcrypt has joined #ruby
ponga has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
oo__ has quit [Remote host closed the connection]
MyMind has joined #ruby
ChoiKyuSang has joined #ruby
shredding has quit [Quit: shredding]
oo_ has joined #ruby
shredding has joined #ruby
tcrypt has quit [Ping timeout: 245 seconds]
oivoodoo has quit []
davidhq has joined #ruby
pdoherty has joined #ruby
roshanavand1 has quit [Quit: roshanavand1]
roshanavand has joined #ruby
martinium has joined #ruby
timonv has quit [Quit: WeeChat 1.1]
timonv has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
uptownhr has quit [Quit: uptownhr]
pdoherty has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
ckrailo__ has quit []
nuck has quit [Quit: Computer has gone to sleep.]
ckrailo__ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martinium has quit [Ping timeout: 256 seconds]
<Timgauthier> http://i.imgur.com/gnIHPA4.jpg on os x how do i do? :P
patrick99e99 has quit [Ping timeout: 244 seconds]
_KaszpiR_ has joined #ruby
dmolina has quit [Quit: Leaving.]
patrick99e99 has joined #ruby
ta_ has joined #ruby
<avril14th> ahah, great
roshanavand has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
davedev2_ has quit [Remote host closed the connection]
livathinos has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1]
duncannz has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
Morkel has joined #ruby
timonv has quit [Quit: WeeChat 1.1]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
niik00 has joined #ruby
commmmodo has joined #ruby
kalusn has joined #ruby
<niik00> Hi guys, does anyone here use archlinux and can help me to install nokogiri with bundle ?
josephndenton has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
timonv has joined #ruby
ki0 has joined #ruby
panga has joined #ruby
sevenseacat has joined #ruby
<canton7> niik00, can try...
<canton7> what's going wrong?
blizzy has joined #ruby
<niik00> I can install it when I do gem install nokogiri but bundler is failing
ponga has quit [Ping timeout: 245 seconds]
mbug has joined #ruby
<canton7> failing how?
uptownhr has joined #ruby
baltazor_ has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 240 seconds]
<niik00> saying that libexslt can't be found
<niik00> But I installed libxml2, libxslt, libicov etc
uptownhr has quit [Client Quit]
EvanFreeman has joined #ruby
<niik00> I think I've installed all the dependencies
commmmodo has quit [Ping timeout: 246 seconds]
patrick99e99 has joined #ruby
<canton7> libxslt, you mean?
panga has quit [Ping timeout: 256 seconds]
rodfersou has quit [Quit: leaving]
<niik00> Here's the output : http://pastebin.com/S93VJeGj
<canton7> how did you install it with gem?
blizzy has quit [Ping timeout: 256 seconds]
<canton7> what options did you pass?
<niik00> none. I just typed "gem install nokogiri"
<canton7> any sudo?
<niik00> nope as root (I know it's bad)
<canton7> have you changed /etc/gemrc?
recurrence has joined #ruby
<niik00> mmmm let me check. I have this : gem: --user-install
<canton7> cool, so you havne't changed anything
<canton7> run 'gem install nokogiri' as the same user you're running 'bundle install' as
<canton7> see what that does
ta_ has quit [Ping timeout: 264 seconds]
<canton7> arch, by default, has users install gems into the user's home dir. this means that pacman can be responsible for system-wide gems
<ddv> you need to install libxslt-dev headers
georgesmith_ has joined #ruby
<ddv> or libxml dev headers
<canton7> ddv, it installed fine as root, which is why I assume the headers are installed
<niik00> I can't find them using pacman. They are available in debian's repos but not in arch I think
<niik00> I did a gem install : 1 gem installed
georgesmith has quit [Ping timeout: 245 seconds]
georgesmith_ is now known as georgesmith
<niik00> installed without warning or error
<canton7> ok, so it's some weird bundler issue
<canton7> now try the bundle install?
joonty has quit [Quit: joonty]
shredding has quit [Quit: shredding]
ta_ has joined #ruby
<niik00> Same output that the one pasted above : libexslt is missing. Please locate mkmf.log to investigate how it is failing.
recurrence has quit [Ping timeout: 276 seconds]
fandi has quit [Remote host closed the connection]
joonty has joined #ruby
zwer_q has joined #ruby
<niik00> Well basically, bundle install work but bundle install --path vendor/bundle doesn't
dflnbl has joined #ruby
rfi_ has joined #ruby
<canton7> niik00, you mean libxslt?
odigity has quit [Read error: Connection reset by peer]
St_Marx has quit [Remote host closed the connection]
<niik00> canton7: I just pasted the output nokogiri complains about libexslt
St_Marx has joined #ruby
rfi has quit [Remote host closed the connection]
<canton7> you keep saying "libexslt" instead of "libxslt". I want to know whether that's on purpose :P
zwer has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
baltazore has joined #ruby
codeFiend has quit [Quit: codeFiend]
<niik00> I don't say anything the system does. on my screen it is written libexslt not libxslt I know it's weird
<sevenseacat> gist the full error message?
<canton7> ah I see
Darryl___ has joined #ruby
<canton7> so it looks like a difference between how gem and bundler have set up the environment for building nokogiri
<canton7> does bundler say what version of nokogiri it's trying to install?
matthewhill has joined #ruby
jschoolcraft has joined #ruby
Morkel has quit [Quit: Morkel]
<niik00> 1.6.6.1
jimms has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baltazore has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
fxn has joined #ruby
troubadour has quit [Quit: troubadour]
mbug has quit [Quit: Leaving]
Pip has joined #ruby
juni0r has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
timonv has quit [Quit: WeeChat 1.1]
patrick99e99 has quit [Ping timeout: 265 seconds]
zorak8 has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
timonv_ has joined #ruby
<arup_r> Need a Ruby help -- the doco is very perfect - http://ruby-doc.org/core-2.2.0/Object.html#method-i-dup-label-on+dup+vs+clone .. I didn't understand **dup typically uses the class of the descendant object to create the new instance.** Any light on this please?
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
reinaldo_ has joined #ruby
shime_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
da3m0n22 has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
ta__ has joined #ruby
<niik00> Well I think I'm gonna bundle normally and not in vendor/bundle
shazaum has joined #ruby
<niik00> since it solves the problem
shazaum has joined #ruby
shazaum has quit [Changing host]
ta_ has quit [Ping timeout: 276 seconds]
<da3m0n22> Hello, with (ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]), I cannot (require_relative 'RFC7159/parser'), but path given in error message exists
jefus_ has joined #ruby
<da3m0n22> meaning full path to the file is OK, doesn't work even with appending .ry/.rb in the require_relative command
<da3m0n22> hints anyone?
garethrees has joined #ruby
anaeem1__ has joined #ruby
shime has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
<hanmac1> da3m0n22: where did you try to call require_relative? in a file or in the interpreter like irb?
bronson has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
<da3m0n22> hanmac1: in the file, btw. it's clone of repository https://github.com/shyouhei/RFC7159/
anaeem1_ has quit [Ping timeout: 264 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<da3m0n22> going into lib/ folder and calling `ruby RFC7159.rb`
n1lo has joined #ruby
postmodern has quit [Quit: Leaving]
jefus__ has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
fxn has quit [Quit: bye]
leonshalimov has joined #ruby
<hanmac1> da3m0n22: `ruby -r RFC7159.rb`
<hanmac1> hm ok that does not hlep
bronson has quit [Ping timeout: 264 seconds]
<da3m0n22> oh, btw. i've got case-insensitive hfs+, so that isn't issue, hanmac1 that doesn't work for me either
niik00 has left #ruby [#ruby]
<hanmac1> da3m0n22: the problem is that the " .ry/.rb " file does need to converted first with racc
<da3m0n22> hanmac1: that should be valid only for .ry files, isn't it? running racc on .rb will give out parse error
<hanmac1> yes
<da3m0n22> also racc puts output from {name}.ry in {name}.tab.rb, so the include would be incorrect
leonshalimov has quit [Ping timeout: 264 seconds]
jefus_ is now known as jefus
oo_ has quit [Remote host closed the connection]
<da3m0n22> hanmac1: ok, thank you, got it working, but had to shuffle with requires and compile .ry with racc
da3m0n22 has left #ruby [#ruby]
oo_ has joined #ruby
<avril14th> arup_r: dup will not include the parent modules while clone will
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
blizzy has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
psy_ has joined #ruby
robustus has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
<arup_r> avril14th: That I see from the example.. But what is "descendant object" ?
Lucretia has joined #ruby
<Lucretia> hi, I've been looking but cannot see what this means: if site.layouts.key? 'category_index' ... end
patrick99e99 has joined #ruby
joonty has quit [Quit: joonty]
<avril14th> it means that layouts is a hash and that you check whether 'category_index' is one of its keys
joonty has joined #ruby
Zai00 has joined #ruby
<Lucretia> thanks
<avril14th> >> [:a, :c].map{ |k| { :a => 1, :b => 2 }.key? k }
<eval-in_> avril14th => [true, false] (https://eval.in/251093)
tsnz has joined #ruby
ta__ has quit [Ping timeout: 256 seconds]
fgo_zzZz has joined #ruby
tsnz has quit [Ping timeout: 255 seconds]
baltazore has joined #ruby
bayed has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
bal has quit [Ping timeout: 245 seconds]
georgesmith has quit [Quit: georgesmith]
matthewhill has quit [Quit: Lingo: www.lingoirc.com]
iamninja has joined #ruby
baltazore has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
georgesmith has joined #ruby
softinio has joined #ruby
kp666 has quit [Quit: Leaving]
bal has joined #ruby
sigurding has joined #ruby
nfk has joined #ruby
<softinio> Hey I am an experienced developer and need to write some ruby code for my job asap .... is there a good tutorial that gets me going fast with ruby as I am experienced? So far have been looking at http://www.rubyist.net/~slagell/ruby
baltazore has joined #ruby
<avril14th> softinio: http://ruby.bastardsbook.com/ ?
<avril14th> but still the best is yet to write code :)
Macaveli has quit [Remote host closed the connection]
metadave has joined #ruby
<softinio> Code I will writing for sure straight away :-)
<softinio> hence i need this tutorial to be quick :-)
Macaveli has joined #ruby
<avril14th> what do you need writing?
shashin has quit [Quit: shashin]
<avril14th> (and why ruby then?)
<softinio> For work
<avril14th> what work? an online app? a dark system script?
<softinio> Need to develop something for a part of the system that is written in ruby
<avril14th> k
<avril14th> cool, welcome :)
<softinio> There is a server we have that that provides services through RPC I need to write a ruby app as a client to it so our testers can use to test this server
<softinio> needs to be in ruby as our testers gonna automate their tests and their tests written all in ruby and cucumber
psy_ has quit [Ping timeout: 244 seconds]
<softinio> avril14th: thanks
try has joined #ruby
sambao21 has joined #ruby
i0n has quit [Quit: snooze]
dumdedum has quit [Quit: foo]
tcrypt has joined #ruby
<avril14th> softinio: since you're writing a client, maybe you should check into setting it as a gem so you could use your client around and it will be dead easy to integrate into a ruby test suite
<softinio> good idea opportunity to learn that fast too
<softinio> there is not enough hours in the day
<avril14th> tru dat
<softinio> away from work learning go-lang too
<softinio> too much in too little time
anaeem1__ has quit [Remote host closed the connection]
DaniG2k has joined #ruby
jimms has quit [Remote host closed the connection]
<softinio> as we speak at work writing nodejs code today and java after
<avril14th> that's good for your skill
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150108202552]]
anarang has quit [Ping timeout: 272 seconds]
tcrypt has quit [Ping timeout: 276 seconds]
timonv_ has quit [Remote host closed the connection]
livathin_ has joined #ruby
reinaldo_ is now known as reinaldob
timonv has joined #ruby
oo_ has quit [Remote host closed the connection]
Aova has joined #ruby
aclearman037 has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
<scottstamp> Hmm, I'm trying to build a model but I'm getting an empty migration file -- would that happen if a table already exists in my db?
arya_ching has joined #ruby
oo_ has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
Photism has quit [Quit: Leaving]
mroach has joined #ruby
freerobby has joined #ruby
<avril14th> scottstamp: don't think so
<scottstamp> softinio: isn't it great being a polyglot? ;D
commmmodo has joined #ruby
<scottstamp> avril14th: hm, weird
<avril14th> migrations don't know what's in your db
Flcn has joined #ruby
<avril14th> they know what's in your schema.rb though
<scottstamp> I didn't figure so
<scottstamp> wonder why this is happening then
<avril14th> check your schema.rb
mroach has quit [Read error: Connection reset by peer]
<scottstamp> It's in my schema, but the migration file just has an empty change block
<avril14th> try rails g again, maybe you misspelled :)
<avril14th> oh that!
<avril14th> it probably means you gave no paramter to rails g
danjordan has quit [Quit: danjordan]
<softinio> scottstamp: I like just not enough time to rule the all so I can rule the world ... try my best too though :-)
<avril14th> so just fill the change method yourslff
<scottstamp> def change { create_table :tracks do |t| { ... t.timestamps null: false } }
<avril14th> right, whatever has to be there
<avril14th> :=)
<scottstamp> ... is where I'd expect my definitions but it's just whitespace
<scottstamp> :P
tsnz has joined #ruby
psy_ has joined #ruby
DaniG2k has quit [Quit: leaving]
<scottstamp> it also removed another previously defined schema from schema.rb
<scottstamp> grr
<scottstamp> screw it, I'll just start over, haha
oo_ has quit [Ping timeout: 245 seconds]
brb3 has joined #ruby
AlexRussia has joined #ruby
mskaesz has quit [Quit: Leaving...]
<scottstamp> when in doubt, throw it under a bus. ^_^
ta has quit [Remote host closed the connection]
hirzu has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
ta has joined #ruby
anarang has joined #ruby
pdoherty has joined #ruby
ta_ has joined #ruby
maximski has joined #ruby
rebcabin has joined #ruby
ta has quit [Ping timeout: 245 seconds]
thiagovsk__ has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
thiagovsk__ is now known as thiagovsk
Timgauthier has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
banister has joined #ruby
dblessing has joined #ruby
Aova has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
pu22l3r has joined #ruby
hanmac2 has joined #ruby
hanmac1 has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
Aova has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danjordan has joined #ruby
LWade has joined #ruby
zarubin has quit [Quit: Leaving.]
fgo_zzZz has joined #ruby
recurrence has joined #ruby
Timgauthier is now known as timgauthier_away
ikeike443 has quit [Quit: Leaving...]
ki0 has quit []
hirzu has joined #ruby
ki0 has joined #ruby
recurrence has quit [Ping timeout: 256 seconds]
fgo_zzZz has quit [Ping timeout: 276 seconds]
jpstokes has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Morkel has joined #ruby
bergelmir has quit [Quit: leaving]
tesuji has quit [Ping timeout: 245 seconds]
lxsameer has quit [Quit: Leaving]
timgauthier_away is now known as Timgauthier
dstarh has joined #ruby
i0n has joined #ruby
IrishGringo has joined #ruby
shredding has joined #ruby
freerobby has quit [Quit: Leaving.]
joast has joined #ruby
yfeldblum has joined #ruby
oleo has joined #ruby
livingstn has joined #ruby
tvw has joined #ruby
gregf has joined #ruby
jimms has joined #ruby
wald0_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
LWade has quit [Read error: Connection reset by peer]
<wald0> im not sure if this is a good place to ask this but... i have a question about versioning-release-numbers
einarj has quit [Remote host closed the connection]
KnownSyntax has quit []
<hanmac2> wald0: http://semver.org/
KnownSyntax has joined #ruby
livathin_ has quit [Remote host closed the connection]
Moter8 has joined #ruby
josephcs has quit [Quit: (null)]
livathinos has joined #ruby
<scottstamp> avril14th: turns out the problem was a misplaced --force-plural flag, guess the parser for rails g doesn't like things out of order ;)
<wald0> let's say i did an app which is in version 3.0.0 now, i want to start development for the next beta with releases each week (so i need a version number here for them), but at the same time i want to continue doing releases of the stable version with updates and fixes
jgt2 has quit [Ping timeout: 264 seconds]
pushpak has joined #ruby
<scottstamp> wald0: 3.0.0-b#
LWade has joined #ruby
arya_ching has quit [Ping timeout: 264 seconds]
<scottstamp> or -beta if you want to be terse
<avril14th> scottstamp: k :)
<wald0> so i was thinking about releasing 3.0.1 and 3.0.2 as updates for the stable, so then i can start doing 4.0.x for the betas... but then when the beta would become stable, i cannot name it 4.0.0
<hanmac2> wald0: did you look at my link?
<scottstamp> Semantic versioning is about the only thing Java gets right. ^_^
<wald0> using 3.0.0-b# could make confusing the stable version, mmh...
<wald0> hanmac2: looking at it now
joonty has joined #ruby
deepa has quit [Changing host]
deepa has joined #ruby
deepa is now known as deepy
jherbst has joined #ruby
lektrik has joined #ruby
tus has joined #ruby
<scottstamp> wald0: I would agree it can get confusing when you branch a beta from a stable, but the idea is that versioning tools will take your whole number as precedence over something flagged. I suppose doing it *right* would be 3.1.0-beta (or 4.0.0-beta if it's a major update)
ascarter has joined #ruby
<wald0> mmmh, not very convinced, in fact i dont have "dependency problems", but more how to name the versions, for example there will be 2 independent branches, stable and development, both of them would be updated and would have future updates
<scottstamp> then when you drop your flag, 4.0.0 takes precedence over 4.0.0-beta
xivusr has joined #ruby
Parker0 has joined #ruby
<wald0> scottstamp: yes but, let's say i do 50 release of beta's during the development... i would need something like -beta-49 then ?
<scottstamp> Yup.
arya_ching has joined #ruby
<wald0> hum
FarlaTux has joined #ruby
Dev-Gitter has joined #ruby
<wald0> or maybe i can just start the beta versions from 3.1.x (3.x.x in fact, until released as 4.0.0), and then do updated releases on the stable as 3.0.x
bronson has joined #ruby
jonesthedolphin has joined #ruby
leonshalimov has joined #ruby
<wald0> "stable releases" sounds like for me as in NUM.0.0
PhilK has quit []
PhilK has joined #ruby
anarang has quit [Quit: Leaving]
hirzu has quit [Ping timeout: 264 seconds]
fgo_zzZz has joined #ruby
<workmad3> wald0: please don't invent yet another versioning scheme... just use http://semver.org/ unless you have very good reason not to
i0n has quit [Read error: Connection reset by peer]
<wald0> well, i have some reasons in fact, website download buttons parsers and other tools uses a parsing of values only based in x.x.x
<wald0> dont knows about -stuff-xxx
davidhq has joined #ruby
<scottstamp> then they're doing it wrong. :3
Dev-Gitter has quit [Max SendQ exceeded]
<wald0> probably :)
<wald0> but is a reason lol
FarlaTux has quit [Max SendQ exceeded]
JDiPierro has joined #ruby
<workmad3> wald0: that's not a very good reason though :P
<workmad3> wald0: and that's what I said... not 'any reason you can drum up' but 'a very good reason'
Dev-Gitter has joined #ruby
FarlaTux has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
leonshalimov has quit [Ping timeout: 246 seconds]
<wald0> well, rewrite tools, parser, and web plugins without know php can be a "very good reason" lol
Dev-Gitter has quit [Max SendQ exceeded]
Dev-Gitter has joined #ruby
chrisja has joined #ruby
<Pip> What's the best tutorial for learning Ruby?
ponga has joined #ruby
Parker0 has joined #ruby
FarlaTux has left #ruby [#ruby]
fgo_zzZz has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
Moter8 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
arya_ching has quit []
Dev-Gitter has left #ruby [#ruby]
silkfox has joined #ruby
antgel has joined #ruby
chrisja has quit [Client Quit]
olivier_bK has quit [Quit: Quitte]
olivier_bK has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
chrisja has joined #ruby
<Timgauthier> Why's
arup_r has quit []
Megtastique has joined #ruby
david_ has joined #ruby
jerius has joined #ruby
<Pip> Thanks
joonty has quit [Quit: joonty]
anaeem1_ has joined #ruby
commmmodo has quit [Quit: commmmodo]
martinium has quit [Ping timeout: 276 seconds]
baltazore has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
symbol has joined #ruby
doodlehaus has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
lampd1 has quit [Remote host closed the connection]
n80_ has joined #ruby
banister has joined #ruby
jgt2 has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
it0a has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
leonshalimov has joined #ruby
freerobby has joined #ruby
tonyhb has joined #ruby
baltazore has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
anaeem1_ has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ta has joined #ruby
anaeem1 has joined #ruby
pu22l3r has joined #ruby
jimms has quit [Remote host closed the connection]
ponga has quit [Ping timeout: 264 seconds]
lektricity has joined #ruby
anaeem1 has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
michael_mbp has quit [Excess Flood]
lektrik has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
Aova has joined #ruby
commmmodo has quit [Ping timeout: 252 seconds]
michael_mbp has joined #ruby
<Timgauthier> np
commmmodo has joined #ruby
adriancb has joined #ruby
allcentury has joined #ruby
pu22l3r has quit [Ping timeout: 256 seconds]
whoisjake has joined #ruby
<Pip> Timgauthier, What's that?
piratepete_ has joined #ruby
<Timgauthier> an awesome video everyone should watch and consider
<Timgauthier> because i like to make fiat statements
recurrence has joined #ruby
jgt2 has quit [Read error: Connection reset by peer]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joast has quit [Ping timeout: 256 seconds]
ursooperduper has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jimms has joined #ruby
m0lay has joined #ruby
recurrence has quit [Ping timeout: 245 seconds]
shime_ has quit [Read error: Connection reset by peer]
shime has joined #ruby
freerobby has quit [Quit: Leaving.]
patrick99e99 has quit [Ping timeout: 264 seconds]
emirozer has joined #ruby
patrick99e99 has joined #ruby
tokik has joined #ruby
n80_ has quit [Quit: n80_]
oleo__ has joined #ruby
r0bby_ has quit [Ping timeout: 244 seconds]
davidhq has joined #ruby
commmmodo has quit [Quit: commmmodo]
manzo has joined #ruby
davidhq has quit [Client Quit]
freerobby has joined #ruby
rippa has joined #ruby
paulfm has joined #ruby
josephndenton has joined #ruby
oleo is now known as Guest88544
Guest88544 has quit [Ping timeout: 244 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
FooMunki_ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
freerobby1 has joined #ruby
_maes_ has joined #ruby
pdoherty has joined #ruby
yfeldblum has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tcrypt has joined #ruby
EvanFreeman has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
noop has quit [Ping timeout: 265 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
joonty has quit [Quit: joonty]
scripore has joined #ruby
ta_ has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 255 seconds]
tiwillia has quit [Read error: Connection reset by peer]
tiwillia has joined #ruby
mgorbach has joined #ruby
ta_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
tcrypt has quit [Ping timeout: 245 seconds]
Pip has quit [Remote host closed the connection]
manzo has quit [Ping timeout: 264 seconds]
freerobby1 has quit [Quit: Leaving.]
sevenseacat has quit [Remote host closed the connection]
joonty has joined #ruby
DrShoggoth has joined #ruby
mrmargolis has joined #ruby
r0bby_ has joined #ruby
Tomasso has joined #ruby
nhhagen_ has joined #ruby
rebcabin has quit [Quit: Leaving.]
rbennacer has joined #ruby
<Tomasso> i have a set of files that have ruby code such us, {"myobject"=> "definition"} , it contains one ruby object definition, the question is.. how should I import them so I add each one to a collection?
nateberkopec has joined #ruby
stormbytes has joined #ruby
<stormbytes> morning
<stormbytes> how do i open->read->write->close a file in ruby?
i5um41ru has joined #ruby
n80_ has joined #ruby
booly-yam-4014__ has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
ShadySQL has joined #ruby
<ShadySQL> hey guys
<ShadySQL> I don't so much of a clue about Ruby
booly-yam-7859 has joined #ruby
<ShadySQL> I have an Amazon Linux AMI
<ShadySQL> trying to instal the new relic extension for cloud watch
<stormbytes> i just need this one routine
<ShadySQL> when I hit
<ShadySQL> bundle install
<ShadySQL> I get the error
commmmodo has joined #ruby
nhhagen has quit [Ping timeout: 276 seconds]
<ShadySQL> An error occurred while installing json (1.8.2), and Bundler cannot continue.
<ShadySQL> Make sure that `gem install json -v '1.8.2'` succeeds before bundling.
<ShadySQL> when I try to install that missing gem
fgo_zzZz has joined #ruby
<ShadySQL> it complains to me again
nhhagen_ has quit [Ping timeout: 252 seconds]
<stormbytes> can someone please give me the syntax for open->read->write->close
<ShadySQL> can anyone please pretty please help a brother out
<tobiasvl> stormbytes: I'm sure google can help you here but something like this: File.open(filename, options) {|f| f.write(string_to_write) }
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<stormbytes> i did google it.. but its 1 line of code and multiple actions so figured i'd just ask. Not writing a ruby app just need this one line
OrbitalKitten has joined #ruby
<stormbytes> where's the read?
<tobiasvl> nowhere. what do you want to read?
<hanmac2> hey ruby profis i am looking for a ruby gem for data transportation with load balancing (it does split the data over multible ports)
<stormbytes> the file has a single number on a single line. I need to read/increment/write that number
patrick99e99 has quit [Ping timeout: 255 seconds]
livathinos has joined #ruby
fgo_zzZz has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
kapil__ has quit [Quit: Connection closed for inactivity]
patrick99e99 has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
Photism has joined #ruby
<stormbytes> tobiasvl sweet :)
ixti has joined #ruby
last_staff has joined #ruby
JDiPierro has joined #ruby
Oberon4278 has quit []
<stormbytes> tobiasvl will that work if the file is blank ? er. file.to_s default to 0 ?
<stormbytes> err.. to_i
enebo has joined #ruby
livathinos has quit [Remote host closed the connection]
IrishGringo has joined #ruby
r0bby_ has quit [Ping timeout: 264 seconds]
<tobiasvl> yes, that should work. if you mean file.gets that is. it will return nil, and nil.to_i is 0.
x77686d has joined #ruby
<tobiasvl> but why not just try it and see?
<stormbytes> got it
<tobiasvl> fool around with it and see what you make out of it.
<stormbytes> was going to be my next move :)
scripore has quit [Quit: Leaving]
Megtastique has quit []
ta_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
Timgauthier is now known as timgauthier_away
baltazore has quit [Remote host closed the connection]
dflnbl has quit [Remote host closed the connection]
hirzu has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morkel has joined #ruby
crueber has joined #ruby
tagrudev has quit [Remote host closed the connection]
ahegyi has quit [Quit: Lost terminal]
<scottstamp> grr, wtf. I'm trying to include a gem I built into a rails project but rake --tasks is throwing an error from that gem saying it can't find httparty. http://pastie.org/9854607
rbennacer has quit [Remote host closed the connection]
<scottstamp> I have require 'rubygems' at the top of the file that's requiring httparty already
<stormbytes> tobiasvl if i just want to return the number stored in the file, whats wrong with this: file = File.open("pn.activity", "r")
<stormbytes> file.read.to_s
pwh has joined #ruby
pushpak has quit [Quit: Leaving...]
mgorbach has quit [Quit: ZNC - http://znc.in]
ta has quit [Ping timeout: 264 seconds]
<tobiasvl> stormbytes: is that the entire code? there's no block there
borel has joined #ruby
<stormbytes> oops
<stormbytes> and yeah it is
ShadySQL has quit [Quit: This computer has gone to sleep]
<tobiasvl> File.open("pn.activity", "r") { |file| file.read.to_s }
<stormbytes> hm
<tobiasvl> should work fine
<stormbytes> thx will git that a shot
ponga has joined #ruby
mgorbach has joined #ruby
rbennacer has joined #ruby
Ankhers has joined #ruby
rbennacer has quit [Remote host closed the connection]
ursooperduper has joined #ruby
Aova has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
baltazore has joined #ruby
red_horned_rihno has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
ta has joined #ruby
nhhagen has joined #ruby
metadave_ has joined #ruby
metadave_ has quit [Client Quit]
nhhagen has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
Xeago has joined #ruby
dopiee has quit [Quit: Leaving]
Aova has joined #ruby
aclearman037 has joined #ruby
dopie has joined #ruby
metadave has quit [Ping timeout: 255 seconds]
pontiki has joined #ruby
silkfox has quit [Ping timeout: 276 seconds]
red_horned_rihno has quit [Client Quit]
IrishGringo has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
beneggett has joined #ruby
fryguy9 has joined #ruby
freerobby has joined #ruby
j0n3 has joined #ruby
xivusr has quit [Ping timeout: 245 seconds]
kstuart has quit [Quit: WeeChat 1.1]
patrick99e99 has quit [Ping timeout: 245 seconds]
deol has joined #ruby
metadave has joined #ruby
patrick99e99 has joined #ruby
last_staff has quit [Quit: last_staff]
hirzu has quit [Quit: This computer has gone to sleep]
allcentury has quit [Ping timeout: 264 seconds]
allcentury has joined #ruby
joonty has quit [Quit: joonty]
troubadour has joined #ruby
hanmac2 has quit [Quit: Leaving.]
stormbytes has left #ruby ["Textual IRC Client: www.textualapp.com"]
pdoherty has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
IrishGringo has joined #ruby
n80_ has quit [Quit: n80_]
joonty has joined #ruby
fryguy91 has joined #ruby
hirzu has joined #ruby
Xeago_ has joined #ruby
shazaum_ has joined #ruby
snath has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
fryguy9 has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
tcrypt has joined #ruby
m0lay has quit [Quit: leaving]
pdoherty has joined #ruby
shazaum has quit [Ping timeout: 264 seconds]
nrsk has joined #ruby
bdamos has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
jpstokes_ has joined #ruby
hiyosi has joined #ruby
shime has quit [Read error: Connection reset by peer]
unreal has quit [Ping timeout: 272 seconds]
shime has joined #ruby
n80_ has joined #ruby
hirzu has quit [Quit: This computer has gone to sleep]
tcrypt has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 264 seconds]
piratepete_ has quit [Quit: piratepete_]
tcrypt has joined #ruby
jpstokes has quit [Ping timeout: 252 seconds]
n008f4g_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
joonty has quit [Quit: joonty]
EvanFreeman has quit [Remote host closed the connection]
blandflakes has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo_zzZz has joined #ruby
EvanFreeman has joined #ruby
cphrmky has joined #ruby
amundj has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
shashin has joined #ruby
shashin has joined #ruby
jimms has quit [Remote host closed the connection]
i5um41ru has quit [Quit: leaving]
agrinb has joined #ruby
tcrypt has quit [Remote host closed the connection]
carlesso has joined #ruby
pwh has quit []
fgo_zzZz has quit [Ping timeout: 244 seconds]
tokik has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
sinkensabe has joined #ruby
unreal has joined #ruby
<carlesso> Hy guys! I've a question but I don't really know how to explain but this gives the idea: https://gist.github.com/carlesso/c41e7e1d259081354133
lmickh has joined #ruby
<carlesso> Maybe it does not have much sense anyway, but I'd like to hear from you
rbennacer has quit [Remote host closed the connection]
timgauthier_away is now known as Timgauthier
booly-yam-7859 has quit [Remote host closed the connection]
pwh has joined #ruby
booly-yam-7566 has joined #ruby
booly-yam-7566 has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has quit [Ping timeout: 240 seconds]
booly-yam-7361 has joined #ruby
baltazore has quit [Remote host closed the connection]
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
blackoperat has joined #ruby
rbennacer has joined #ruby
zzzbra has joined #ruby
blandflakes has quit [Disconnected by services]
patrick99e99 has joined #ruby
johnzz has joined #ruby
meth has joined #ruby
blandflakes has joined #ruby
baltazore has joined #ruby
bkulbida has joined #ruby
rbennacer has quit [Remote host closed the connection]
<waxjar> carlesso: doesn't make sense to me. why not something like attr_reader :foo; def foo=(val); do your check; @foo = val; end
<carlesso> waxjar, there are tons of (better) alternatives, was just curious really
adamkittelson has joined #ruby
snath has joined #ruby
bal has quit [Quit: bal]
dumdedum has joined #ruby
<waxjar> the class method stuff is generally refered to as meta-programming or DSL (domain specific language)
neoxquick has joined #ruby
aef has quit [Remote host closed the connection]
dc has joined #ruby
<waxjar> you can use __method__ (i believe) to get the name of the current method, but obviously you'll have to do some processing on it
bkulbida has quit [Client Quit]
<carlesso> but I will be outside the method, in my case
kostitas has joined #ruby
uptownhr has joined #ruby
einarj has joined #ruby
MasterPieceF has joined #ruby
shredding has quit [Quit: shredding]
mikepack has joined #ruby
<waxjar> ah, i see what you mean.
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
<canton7> carlesso, I think in new ruby versions, 'def' returns the method name
rbennacer has joined #ruby
patrick99e99 has quit [Ping timeout: 276 seconds]
<GeorgesLeYeti> Is it possible to make a array from 0 to 10 in 1 line. Like [0..10]
einarj has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
einarj has joined #ruby
<waxjar> carlesso: i think you can just store whatever you pass to key in an instance variable and retrieve it with "what"
alex88 has quit []
dcarmich has joined #ruby
rbennacer has quit [Remote host closed the connection]
ponga has joined #ruby
rbennacer has joined #ruby
shime has quit [Read error: Connection reset by peer]
<waxjar> don't know if it has a name, hto
<workmad3> GeorgesLeYeti: yes
tonyhb has quit [Ping timeout: 255 seconds]
tcrypt has joined #ruby
<workmad3> GeorgesLeYeti: although not quite that syntax
shime has joined #ruby
uptownhr has quit [Quit: uptownhr]
OrbitalKitten has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<waxjar> >> [*0..10]
<eval-in_> waxjar => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/251641)
Aova has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
_bk has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<workmad3> >> (0..10).to_a too
<eval-in_> workmad3 => undefined local variable or method `too' for main:Object (NameError) ... (https://eval.in/251642)
emirozer has quit [Quit: Be back later ...]
<workmad3> >> (0..10).to_a
<eval-in_> workmad3 => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/251643)
<workmad3> heh
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<GeorgesLeYeti> waxjar & workmad3 : ty
swerter has joined #ruby
ponga has quit [Ping timeout: 256 seconds]
joast has joined #ruby
swerter has quit [Client Quit]
Aova has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
meth has left #ruby [#ruby]
DaniG2k has joined #ruby
danman has joined #ruby
tonyhb has joined #ruby
kenneth has joined #ruby
martinium has joined #ruby
tjbiddle has joined #ruby
tobago has quit [Remote host closed the connection]
EvanFreeman has joined #ruby
beneggett has quit [Ping timeout: 265 seconds]
zzzbra has quit [Ping timeout: 276 seconds]
joonty has quit [Quit: joonty]
leonshalimov has quit [Ping timeout: 245 seconds]
davidhq has joined #ruby
yfeldblum has joined #ruby
chrishough has joined #ruby
deric_skibotn has joined #ruby
xivusr has joined #ruby
leonshalimov has joined #ruby
felipecvo has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
copy0401 has joined #ruby
culturelabs has quit []
blackmesa has joined #ruby
patrick99e99 has joined #ruby
culturelabs has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
yfeldblum has quit [Ping timeout: 244 seconds]
vt102 has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
jimms has joined #ruby
DrShoggoth has quit [Quit: Leaving]
tpilionis has quit [Ping timeout: 245 seconds]
fryguy91 has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
bkulbida has joined #ruby
emirozer has joined #ruby
* bkulbida
emirozer has quit [Client Quit]
bluOxigen has joined #ruby
<bkulbida> hi all
deol has joined #ruby
Tomasso has quit [Quit: Page closed]
_bk has quit [Quit: _bk]
copy0401 has quit []
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
bkulbida has quit [Client Quit]
jgt2 has joined #ruby
centrx has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
pancake-breakfas has left #ruby ["Textual IRC Client: www.textualapp.com"]
cjim has joined #ruby
unreal has joined #ruby
jonesthedolphin has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
ptrrr has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
elabs-developer has quit [Quit: elabs-developer]
stunder_mcw has joined #ruby
<dstarh> I've got an external data source that is sending what they call "inline xml" that would look like this I ate <FOOD>Cheese Pizza</FOOD> for <OCCASION>lunch</OCCASION>. does anyone have any thoughts on a gem that might be able to parse those for me? It's "xml like" but certainly not xml
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stunder_mcw has quit [Client Quit]
kaspertidemann has joined #ruby
<leonshalimov> Nokogiri?
DrShoggoth has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
<shevy> just got back
<shevy> certainty the first exam was nice, no question about IPv6 \o/
fgo_zzZz has joined #ruby
blackmesa has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EvanFreeman has quit [Remote host closed the connection]
Tricon has joined #ruby
dfinninger has joined #ruby
danjordan has quit [Quit: danjordan]
mikecmpbll has quit [Quit: ciao.]
gawd has joined #ruby
fryguy9 has quit [Quit: Leaving.]
bronson has joined #ruby
wallerdev has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ellisTAA has joined #ruby
BuGo has joined #ruby
<ellisTAA> can someone give me an example of a factory method in ruby? i thought .new was a factory method but someone said its not
beneggett has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
fgo_zzZz has quit [Ping timeout: 264 seconds]
<BuGo> is there a way to get super method? like you can get method(:some_method).souce_location and in my case it is unbound method that calls super inside of it. How can i get what method gets called with said super?
<apeiros_> ellisTAA: that someone is wrong
<ellisTAA> apeiros_: ty
DaniG2k has joined #ruby
EvanFreeman has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
danjordan has joined #ruby
dfinninger has quit [Remote host closed the connection]
lampd1_ has joined #ruby
tubuliferous has joined #ruby
zzzbra has joined #ruby
sambao21 has joined #ruby
jfran has joined #ruby
<BuGo> with superclass! tnx!
bronson has quit [Ping timeout: 252 seconds]
fryguy9 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ellisTAA> can someone help me figure out what this spec is asking me to do: https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
<apeiros_> BuGo: that will potentially bypass methods from modules
<ellisTAA> it is asking to create something using a factory method but i’m not sure if that means create a method with another method in it?
<BuGo> apeiros_: then what way would not bypass methods from modules?
<apeiros_> BuGo: I'd probably go via self.class.ancestors[1].instance_method(:some_method). there might be a nicer solution.
tcrypt has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 245 seconds]
malcolmva has quit [Ping timeout: 245 seconds]
baltazore has quit [Remote host closed the connection]
agjacome has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CamonZ has joined #ruby
chinmay_dd has joined #ruby
pdoherty has quit [Remote host closed the connection]
zzzbra has quit [Quit: WeeChat 1.1]
fryguy9 has quit [Quit: Leaving.]
blackmesa has quit [Ping timeout: 240 seconds]
zzzbra has joined #ruby
aclearman037 has joined #ruby
bkulbida has joined #ruby
fryguy9 has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 246 seconds]
mrmargolis has quit [Remote host closed the connection]
recurrence has joined #ruby
mynameis has joined #ruby
Zai00 has quit [Quit: Zai00]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
timonv has quit [Ping timeout: 244 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
danjordan has quit [Quit: danjordan]
sigurding has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkulbida has quit [Client Quit]
pietr0 has joined #ruby
mrmargolis has joined #ruby
Dreamer3 has joined #ruby
msgodf has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
AlexRussia has joined #ruby
recurrence has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
LouisRoR has quit [Ping timeout: 255 seconds]
bkulbida has joined #ruby
malcolmva has joined #ruby
Aova has quit [Read error: Connection reset by peer]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<avril14th> weekend!!!
avril14th has quit [Remote host closed the connection]
chthon has quit [Quit: Ex-Chat]
dumdedum has quit [Quit: foo]
<mynameis> There is no weekend for people who punch lines of code.
MasterPieceF has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
brb3 has quit [Quit: ZZZzzz…]
<canton7> there's no weekend for those waiting for a frickin' release to build so it can be tested... again...
PanzerModern has joined #ruby
bkulbida has quit [Client Quit]
ponga has quit [Ping timeout: 244 seconds]
bkulbida has joined #ruby
apeiros_ has joined #ruby
shashin has quit [Quit: shashin]
bricker has joined #ruby
uptownhr has joined #ruby
davidhq has joined #ruby
rbennacer has quit [Remote host closed the connection]
maletor has joined #ruby
jaequery has joined #ruby
Aova has joined #ruby
jaequery has quit [Max SendQ exceeded]
garethrees has quit [Ping timeout: 244 seconds]
Morkel has quit [Quit: Morkel]
chth0n has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
havenwood has quit []
<ellisTAA> if a factory method in ruby is new, then is .new the interface??
nobitanobi has joined #ruby
agjacome has quit [Quit: leaving]
rbennacer has joined #ruby
metadave has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros_ has quit [Ping timeout: 255 seconds]
neoxquick has quit [Ping timeout: 245 seconds]
jaequery has quit [Client Quit]
greenarrow has quit [Quit: 500]
davidhq has quit [Client Quit]
greenarrow has joined #ruby
Dopagod has joined #ruby
jimms has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 245 seconds]
<ellisTAA> i dont get how a factory method differs from an instance method?
brb3 has joined #ruby
rbennacer has quit [Remote host closed the connection]
troubadour has quit [Quit: troubadour]
Hobogrammer has joined #ruby
pushpak has joined #ruby
JimmyNeutron has joined #ruby
blackmesa has joined #ruby
beneggett has joined #ruby
jimms has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
allcentury has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
workmad3_ has joined #ruby
zzzbra has quit [Ping timeout: 245 seconds]
greenarrow has quit [Quit: 500]
omosoj has joined #ruby
jerematic has joined #ruby
defrang has quit [Quit: defrang]
bluOxigen has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
commmmodo has quit [Quit: commmmodo]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
aswen has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
jimms has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
workmad3_ has quit [Ping timeout: 252 seconds]
Dreamer3 has quit [Quit: Leaving...]
<shevy> you use it to create an object ellisTAA
nobitanobi has quit [Remote host closed the connection]
<ellisTAA> and i create a factory method inside of a class?
<centrx> and it's typically a class method not an instance method
mr_rich101 has joined #ruby
<shevy> "The factory method pattern is a creational pattern which uses factory methods to deal with the problem of creating objects without specifying the exact class of object that will be created."
<ellisTAA> but what is the benefit of creating a factory method instead of a instance method
<shevy> so in ruby this would actually translate to Factory.create Class.new something I guess
<ellisTAA> i dont get the last part “without specifying the exact class of object that will be created.””
<centrx> It wouldn't make any sense to create a factory method as an instance method
leonshalimov has quit [Ping timeout: 245 seconds]
<ellisTAA> centrx: i guess that’s the thing i dont get. if the method is just creating a new object why can’t an instance method do that
<centrx> unless the instance method is a factory method
<centrx> in which case there is no comparison between creating a factory method instead of an instance method
Vivex_ has quit [Read error: Connection reset by peer]
<ellisTAA> so is a factory method a class method whose purpose is to create new objects?
<centrx> A factory makes widgets, also called objects
booly-yam-7361_ has joined #ruby
booly-yam-7361 has quit [Ping timeout: 255 seconds]
towski_ has joined #ruby
zenith_ has joined #ruby
<ellisTAA> say we created a class called class Car. what kind of factory method could we create?
LouisRoR has joined #ruby
fryguy9 has quit [Quit: Leaving.]
symbol has quit [Ping timeout: 256 seconds]
<centrx> say you created a class called Vehicle
<ellisTAA> k
<centrx> You might have a factory method that will create either Car or Truck or Bicycle
<centrx> depending on, say, a parameter
<centrx> or a la the Wikipedia example
<ellisTAA> ah i see … so instead of writing class Car << Vehicle … i would write vehicle.create(car)
<ellisTAA> would that create a new car class ^^
<centrx> if you set it up to
borel has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
<centrx> ellisTAA, Here are some examples in Ruby: http://stackoverflow.com/questions/1515577/factory-methods-in-ruby
<ellisTAA> in my example, what would i write to create a new carhttps://gist.github.com/ellisTAA/9d88de28122e1c6a357a
<ellisTAA> ty
leonshalimov has joined #ruby
zenith_ has quit [Client Quit]
zenith_ has joined #ruby
recurrence has joined #ruby
<centrx> ellisTAA, You might want to pass a symbol, like :car or :bike
fryguy9 has joined #ruby
Hijiri has joined #ruby
<centrx> ellisTAA, then you would call Car.new or Bike.new depending on x
rbennacer has joined #ruby
<ellisTAA> so in this example, would the person have 3 classes > class Vehicle, class Car, class Bike. and in the vehicle class have a factory method that can create new instances of the bike and car class?
<centrx> yes
<ellisTAA> ahh ok
<ellisTAA> thanks for walking me through that
<centrx> np
<ellisTAA> sorry last q, so this is right: https://gist.github.com/ellisTAA/9d88de28122e1c6a357a
msgodf has joined #ruby
AlexRussia has joined #ruby
fgo_zzZz has joined #ruby
kalusn has quit [Remote host closed the connection]
bklane has joined #ruby
<centrx> ellisTAA, Usually the Car, Truck, and Bike would inherit from Vehicle
nanoyak has joined #ruby
<ellisTAA> centrx: i see.. ty
jfran has joined #ruby
<ellisTAA> does a factory method always create a subclass? like there’s no point in creating a method right?
bronson has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
<GaryOak_> ellisTAA: it can but the point is that it's polymorphic so it doesn't return a specific type of object
m8 has joined #ruby
mloveless has joined #ruby
ki0 has quit [Ping timeout: 245 seconds]
<ellisTAA> garyoak: that means that a factory method can return anything you want it to? but in this example it is returning a subclass https://gist.github.com/ellisTAA/9d88de28122e1c6a357a
sambao21 has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<GaryOak_> ellisTAA: yeah it's just a method you write, the factory pattern isn't a hard fast structure
wallerdev has joined #ruby
PenguinMan98 has joined #ruby
<GaryOak_> If you know what type of object it's returning then you don't need a factory
fryguy9 has quit [Read error: Connection reset by peer]
<ellisTAA> ok thanks
fryguy9 has joined #ruby
pdoherty has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
dc has quit [Remote host closed the connection]
<PenguinMan98> Hey all I'm trying to install sass. I run 'gem ruby install' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
sambao21 has joined #ruby
<GaryOak_> ellisTAA: You say I need to get across town, and you feed it parameters and it gives you back a vehicle that can fit what you neeed
bronson has quit [Ping timeout: 264 seconds]
_2_lilog has joined #ruby
<PenguinMan98> sorry, 'gem install sass'
KnownSyntax has quit [Quit: Connection closed for inactivity]
<_2_lilog> hi
<ellisTAA> garyoak: ok i think i got it. thank you for clarifying
jenrzzz has joined #ruby
Hijiri has quit [Ping timeout: 255 seconds]
<GaryOak_> ellisTAA: it's kind of a confusing concept unless you have a real use case for it
zenith_ has quit [Ping timeout: 246 seconds]
<ellisTAA> garyoak: is it an oop concept? i’ve been thinking about getting a book about oop
<GaryOak_> ellisTAA: yeah, it's an oop concept, if you are interested in general design patterns there are tons of resources online
<PenguinMan98> If the parameter is 'passengers = 2' then it returns a 'coupe' object. if the passengers = 12 then it returns a 'bus' object. You don't need to know exactly which type of vehicle is returned as long as it has a '.drive() method.
<PenguinMan98> Which you can ensure by making sure all your vehicles extend the 'driveable' interface
<ellisTAA> garyoak: i’m learning ruby/programming. ppl have mentioned design pattners, could u tell me what other concepts i need to learn in order to become a good ruby programmer
<PenguinMan98> implement*
symbol has joined #ruby
dfinninger has joined #ruby
musl has joined #ruby
<GaryOak_> ellisTAA: understanding how objects work in general, and what that actually means in ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
dojobo has quit [Read error: Connection reset by peer]
<ellisTAA> garyoak: ok ill do that
dojobo has joined #ruby
thumpba has joined #ruby
<GaryOak_> ellisTAA: I know it seems huge, but the best way to learn is to build stuff
<PenguinMan98> And you can't succeed until you fail a lot first.
nobitanobi has joined #ruby
<PenguinMan98> Just don't stop.
<PenguinMan98> trying, not failing. !important
n008f4g_ has joined #ruby
perturbation has joined #ruby
_2_lilog has quit [Remote host closed the connection]
<ellisTAA> can anyone help me understand what this spec is asking for. it is related to factory methods https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
zenith_ has joined #ruby
<GaryOak_> ellisTAA: Like I've been learning Rust, and I just went through the tutorial book, and the project at the end was a number guesser, it's simple but I learned a lot
bklane has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
<ellisTAA> garyoak: yeah i’ve been thinking of using exercism.io for practicing
leonshalimov has quit [Ping timeout: 244 seconds]
dc has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
beneggett has quit [Ping timeout: 244 seconds]
phoo1234567 has joined #ruby
bkulbida has quit [Ping timeout: 244 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
<shevy> ack exorcism!
<shevy> the devil!!!
beneggett has joined #ruby
<shevy> call avatar.rb
<shevy> and priest.php
phoo1234567 has quit [Max SendQ exceeded]
<GaryOak_> ellisTAA: hahaha exercism.io seemed pretty cool
<ellisTAA> lol
exadeci has quit [Quit: Connection closed for inactivity]
phoo1234567 has joined #ruby
<dojobo> anybody actually used exercism.io?
<dojobo> i'm still working through some other beginner stuff before i graduate to that
<dojobo> it sounds great but i'm skeptical that it works as advertised, since it's free
<PenguinMan98> Hey all I'm trying to install sass. I run 'gem install sass' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
<dojobo> i.e. having a knowledgeable human you don't know review your code and give you tips sounds too good to be true
chrishough has joined #ruby
zenith_ has quit [Remote host closed the connection]
<dojobo> (for free i mean)
ponga has joined #ruby
perturbation has quit [Quit: Leaving]
yfeldblum has joined #ruby
<waxjar> it works dojobo, sometimes it takes a while before you get any comments
Aova has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
<dojobo> ah cool, good to know
<dojobo> thanks waxjar
Morkel has joined #ruby
<GaryOak_> PenguinMan98: something is looking for an X: directory
<dojobo> i already know the rails app i need to make, but i have to build up the expertise first
<GaryOak_> PenguinMan98: and it's not finding it
rdark has quit [Quit: leaving]
diegoviola has joined #ruby
<ellisTAA> can someone help me understand what lines 75 to 84 in my specification.rb are asking me to do? https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
motto has joined #ruby
blackoperat has quit [Ping timeout: 240 seconds]
<PenguinMan98> GaryOak_: yeah. but what?
motto is now known as Guest17454
<GaryOak_> PenguinMan98: the gem program
wallerdev has joined #ruby
<PenguinMan98> GaryOak_: Yeah. But .. .where to fix? Where to look for fix?
<centrx> ellisTAA, implement factory methods from_celsius and from_fahrenheit
shime has quit [Read error: Connection reset by peer]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<centrx> ellisTAA, In this case, these factory methods simply create an instance of Temperature, in a helpful way
m8 has quit [Ping timeout: 244 seconds]
ponga has quit [Ping timeout: 276 seconds]
<ellisTAA> i see …
yfeldblum has quit [Ping timeout: 276 seconds]
Aova has joined #ruby
<ellisTAA> centrx: so would this be ok def self.from_fahrenheit(x)
<ellisTAA> Temperature.new(x)
<ellisTAA> end
kirun has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tonyhb has quit [Quit: peace]
tcrypt has joined #ruby
commmmodo has joined #ruby
finisherr has joined #ruby
tjbiddle has joined #ruby
<centrx> ellisTAA, That does not look like it would work
<centrx> ellisTAA, the temperature has to be stored with a unit, the initialize method accepts a hash not a number
<ellisTAA> centrx: yeah i was looking @ that and realized “fuck”
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<PenguinMan98> I think the idea is you call Temperature's constructor and give it a tuple(hash) 'Celsius' = 42. After that, calling .the .in_farenheit and in_celsius methods on it to get the temperature back out.
Flcn has quit [Quit: Be back later ...]
<finisherr> Can someone please tell me why this does not print every item in the array then delete them?
<finisherr> it always fails to remove one of the items
dc has quit [Remote host closed the connection]
<ellisTAA> penguinman98: thanks ill check that out
<PenguinMan98> Depending on whether you get a Celsius or Farenheit input, you need to change the implementation of .in_farenheit and .in_celsius.
Tricon` has joined #ruby
<PenguinMan98> So you use a factory to build the object with different implementations based on the constructor input.
Jackneill has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
<finisherr> There are 10 lines of code here, so someone more familiar with Ruby should be able to tell me what’s going on
jherbst has joined #ruby
<centrx> finisherr, What is going?
djbkd has joined #ruby
dc has joined #ruby
<finisherr> centrx: I would expect the block to print each item in the array, then delete it
allcentury has joined #ruby
<finisherr> centrx: but it always seems to miss one of the items
<centrx> finisherr, You're changing the array you're iterating over
<finisherr> yes
bigkevmcd has quit [Quit: Outta here...]
<centrx> finisherr, So in the first iteration it works as expected
<centrx> finisherr, In the second iteration, arr[0] was deleted, but the iterator is at [1] (the second iteration)
<GaryOak_> so the indexes are moving around
<finisherr> should i loop from the back to the front?
nobitanobi has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<finisherr> so the indexes don’t get jacked up
<GaryOak_> you could print the array and then delete the whole thing
<centrx> finisherr, normally you would use #map or something like that instad
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
EvanFreeman has joined #ruby
<centrx> This looks like test/experiment code so it's not clear what the real-world purpose would be
<finisherr> i basically wanna do something like for ((i=len(array); i > 0; i—)) del(a[i])
rbennacer has quit [Remote host closed the connection]
kostitas has quit [Ping timeout: 255 seconds]
<finisherr> in pseudo code
<centrx> right, but that just means "delete the entire array", so just do: array = [] instead
<centrx> or array = nil
<finisherr> GaryOak_: I have to actually do some work with each item before deleting the item
<finisherr> and centrx
<centrx> why does it need to be deleted?
<finisherr> i’m just printing here for the sake of brevity
<finisherr> hmm…that’s a good point. I suppose I don’t have to delete it
<finisherr> I was using the size of the resulted array to make sure it processed everything
<finisherr> but I guess I don’t have to do that
allcentury has quit [Ping timeout: 252 seconds]
<centrx> the each statement will handle that
<centrx> or map or whatever
zzzbra has joined #ruby
Eiam has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
bklane has joined #ruby
sambao21 has joined #ruby
n80_ has quit [Quit: n80_]
fxn has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
Ankhers` has joined #ruby
kaspertidemann has quit []
Tricon has quit [Quit: leaving]
william3 has joined #ruby
jonesthedolphin has joined #ruby
djbkd has quit [Remote host closed the connection]
jonesthedolphin has quit [Remote host closed the connection]
adamkittelson has quit [Remote host closed the connection]
jonesthedolphin has joined #ruby
<shevy> .whatever()
rbennacer has joined #ruby
bkulbida has joined #ruby
function90 has joined #ruby
<ellisTAA> i’ve made some progress. but when my factory methods get called and a new class gets created the argument that gets instantiated isn’t acting like a hash so i get an error message saying undefined method ‘keys’. anyone know why? https://gist.github.com/ellisTAA/186d966ab77dc8c5993e
nobitanobi has joined #ruby
rbennacer has quit [Remote host closed the connection]
<arup_r> shevy: Is this a new method in Ruby? `.whatever()`
<shevy> arup_r lol
<shevy> arup_r.whatever!()
<dojobo> it's part of the ennui gem
blackoperat has joined #ruby
<arup_r> what it modified in my.. What I can see.. I am coughing loudly.. ;)
<arup_r> shevy: ^^
<ellisTAA> nvm
djbkd has joined #ruby
<PenguinMan98> Hey all I'm trying to install sass. I run 'gem ruby install' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
ghr has joined #ruby
<arup_r> shouldn't it be gem install saas ?
<PenguinMan98> arup_r: no
<dojobo> maybe x: is a default value for a parameter you need to specify?
<ellisTAA> yahooo!! figured it out
<PenguinMan98> oh wait
n1lo has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
terlar has quit [Ping timeout: 255 seconds]
<PenguinMan98> yeah, I corrected myself before
<PenguinMan98> then pasted teh old one again
<arup_r> Ohh!.. Never mind I don't use Ruby.. I use PhP ;)
<PenguinMan98> Hey all I'm trying to install sass. I run 'gem install sass' but i get an error 'No such file or directory X:/" I realize this is probably not a ruby question, but I figured I may as well ask anyway.
<ellisTAA> peguinman98: i dont know RoR yet but if no one in here knows, #RubyonRails might be able to help u out
<centrx> ~!~!~&~ YOU SAID THE WORD OF THE DAY ~~@!@~@!
<PenguinMan98> cool
<PenguinMan98> thanks
momomomomo has joined #ruby
_maes_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
michael_mbp has joined #ruby
klmlfl has joined #ruby
william3 has quit []
n1lo has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
bayed has quit [Quit: Connection closed for inactivity]
defrang has joined #ruby
fgo_zzZz has joined #ruby
djbkd has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Tricon` has quit [Ping timeout: 245 seconds]
dojobo has quit [Read error: Connection reset by peer]
dojobo has joined #ruby
govg has joined #ruby
klmlfl has quit [Ping timeout: 256 seconds]
<shevy> PhD or PhP
govg is now known as Guest43057
ExtraSpicy is now known as nine[array]
Guest43057 has quit [Client Quit]
n008f4g_ has quit [Ping timeout: 244 seconds]
govg_ has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
GaryOak_ has quit [Remote host closed the connection]
leonshalimov has joined #ruby
quimrstorres has joined #ruby
fgo_zzZz has quit [Ping timeout: 265 seconds]
porfa has joined #ruby
bitcycle has joined #ruby
bronson has joined #ruby
lamasnik has quit [Ping timeout: 264 seconds]
<bitcycle> Hey all. What debugger should I use with ruby 2.2.0?
leafybasil has quit [Remote host closed the connection]
tvw has quit []
tvw has joined #ruby
athan has quit [Ping timeout: 264 seconds]
<shevy> would you guys think it is obsessive if I split my ruby projects into directories with usually only one file in it?
tvw has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
CountTwo_ has quit [Quit: Page closed]
tvw has joined #ruby
arup_r has quit [Quit: Leaving.]
<centrx> shevy, it's okay as long as each file consists of only one class and each class consists of only one method
<shevy> ah
<shevy> my classes tend to become huge
<shevy> that's why I wanted to split them up into the first place :(
bronson has quit [Ping timeout: 246 seconds]
tvw has quit [Client Quit]
allcentury has joined #ruby
nanoyak has joined #ruby
jfran_ has joined #ruby
codeFiend has joined #ruby
Hijiri has joined #ruby
<shevy> lol
<shevy> I am watching a biochemistry lecture about polyketides... and the girl talking about uses lego analogy... the chemical compounds are built by differently coloured lego bricks
<centrx> dude particles don't even exist
<shevy> now I should write some ruby code that builds up chemical compounds through lego
arup_r has joined #ruby
<shevy> everything is a model!
n1lo has quit [Quit: Leaving]
<shevy> everything is an object!
jfran has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
<waxjar> lego oriented programming
<waxjar> bricks communicate trough pins and holes
<centrx> what about the lego people, are they objects too?
<shevy> yeah waxjar ... we build bricks on bricks just like in an assembly pipe
<shevy> the lego people are kinda cheaters
<shevy> I think they were not there in the very beginning
<eam> OOP is on its way out, AOP is where it's at
checkit has joined #ruby
adamkittelson has joined #ruby
<shevy> is AOP better?
<pipework> Aspect.
icbm has joined #ruby
<pipework> I don't really get it, personally.
<eam> we need a language where everything is an aspect (instead of an object), promote the inter-connectedness of all things
^james^ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
<pipework> Do we though?
obelich has joined #ruby
<obelich> hiyas
<obelich> some one know if i can use a escanner twain in Ruby ? some gem ?
tcrypt has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
ponga has joined #ruby
perturbation has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
davout has quit [Quit: bye]
RDash` has joined #ruby
lkba has joined #ruby
davout has joined #ruby
Flcn has joined #ruby
EvanFreeman has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ursooperduper has joined #ruby
agjacome has joined #ruby
djbkd has joined #ruby
ponga has quit [Ping timeout: 256 seconds]
Aova has joined #ruby
fryguy9 has joined #ruby
olivier_bK has joined #ruby
B1n4r10 has joined #ruby
RDash` has quit [Changing host]
RDash` has joined #ruby
tcrypt has joined #ruby
RDash` is now known as RDash
B1n4r10 has quit [Max SendQ exceeded]
jgt2 has quit [Ping timeout: 272 seconds]
Zai00 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
blackoperat has quit [Remote host closed the connection]
athan has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
cjim_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
reset has joined #ruby
Morkel has quit [Quit: Morkel]
longfeet has joined #ruby
Spami has joined #ruby
adamkittelson has quit [Remote host closed the connection]
jeff-ooh has joined #ruby
cantonic has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
lamasnik has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
MrBeardy has joined #ruby
olivier_bK has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
cjim has quit [Ping timeout: 256 seconds]
ixti has quit [Ping timeout: 240 seconds]
<ellisTAA> can someone tell me what this spec is asking me to do to by code?? its talking about refactoring. is it just asking me to change my method names?? https://gist.github.com/ellisTAA/038c42895bf9a65f9be2
OrbitalKitten has joined #ruby
sigurding has quit [Quit: sigurding]
ramfjord has joined #ruby
<centrx> ellisTAA, ftoc and ctof look like new methods
<centrx> ellisTAA, you don't have anything like them so far
<ellisTAA> centrx: thank you. what does it mean to refactor to call those methods from the rest of the object
<centrx> ellisTAA, So after implementing those methods, then "refactoring" means changing the rest of the code to use them, while keeping the same behavior and functionality
<centrx> ellisTAA, Refactoring means to make changes/improvements to the code base, while keeping the same functionality and behavior, not introducing new features -- or bugs
postmodern has joined #ruby
ki0 has joined #ruby
<ellisTAA> i see…. so does that mean i will keep methods like in_fahrenheit and just have ftoc call it or does it mean i change the name of in_fahrenheit to ftoc?
blackoperat has joined #ruby
kalusn has joined #ruby
havenwood has joined #ruby
mozzarella has quit [Quit: WeeChat 1.0.1]
<centrx> ellisTAA, in_fahreneit is an instance method that returns the value of the given instance in the specified unit
<centrx> fahrenheit
mozzarella has joined #ruby
booly-yam-7361_ has quit [K-Lined]
<centrx> ellisTAA, ftoc and ctof would be utility methods, somewhat independent class methods that act sort of as a toolbox
jenrzzz has joined #ruby
<centrx> ellisTAA, ftoc and ctof do not use any instance of Temperature, they take f as input and output as c, or vice-versa
leafybasil has joined #ruby
andikr has quit [Remote host closed the connection]
<ellisTAA> utility methods? is that the same as factory method?
<centrx> no
<centrx> a utility method does not create anything, a utility method generally doesn't retain any state
tcrypt has quit [Read error: Connection reset by peer]
<centrx> like Math.sqrt
<centrx> that's a utility method, it's basically just a function
tcrypt has joined #ruby
rbennacer has joined #ruby
MasterPieceF has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
<pipework> It's a method that doesn't have state, and it's 'utility' in that it can be used by anything and isn't domain-specific.
<pipework> Just a useful thing.
ixti has joined #ruby
<ellisTAA> is the difference between a factory method and a class method that a factory method creates a new thing and a class method just maintains a state or manipulate the state?
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat_ has joined #ruby
<longfeet> pretty much
rbennacer has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<ellisTAA> cool
MasterPieceF has left #ruby [#ruby]
doodlehaus has joined #ruby
aclearman037 has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
parduse is now known as Guest80456
zenith__ has joined #ruby
pardusf has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith__ has quit [Client Quit]
Guest80456 has quit [Ping timeout: 265 seconds]
zenith_ has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
GaryOak_ has joined #ruby
sigurding has joined #ruby
quimrstorres has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
<porfa> is there any built in function in ruby to output me percentages?
baweaver has joined #ruby
martinium has quit [Remote host closed the connection]
perturbation has quit [Quit: Leaving]
<porfa> i wanna know how much percent discount is from LARGENUM to SMALL NUM i have high prce, and low price, i need percentagem of discount
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
KnownSyntax has joined #ruby
athan has quit [Ping timeout: 272 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
beneggett has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
Morkel has joined #ruby
pietr0 has quit [Quit: pietr0]
fgo_zzZz has joined #ruby
chu has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 255 seconds]
recurrence has quit [Quit: recurrence]
nanoyak has quit [Quit: Computer has gone to sleep.]
Morkel has quit [Client Quit]
<PenguinMan98> Ruby.EXE permission denied?
spider-mario has joined #ruby
ta_ has joined #ruby
bronson has joined #ruby
Hijiri has quit [Ping timeout: 246 seconds]
<shevy> porfa not that I know of - I wrote this and use it http://pastie.org/9855140 - Percentage['123/456'].result # => 26.97
chu has joined #ruby
roshanavand has joined #ruby
<shevy> porfa it should be simple method though no? input -> to float -> * 100 / base
rodfersou has quit [Quit: leaving]
<shevy> PenguinMan98 you use php to call ruby, on windows???
thumpba_ has joined #ruby
<centrx> oh my god
pu22l3r_ has quit [Remote host closed the connection]
<PenguinMan98> shevy: beautiful isnt' it?
<shevy> dunno
<centrx> the horsemen of the apocalypse
<shevy> ruby on windows works ok-ish
jeff-ooh has joined #ruby
<shevy> but to use php on windows to call ruby hmmmm
fgo_zzZz has quit [Ping timeout: 264 seconds]
<PenguinMan98> But lets focus on what might be the error
ellisTAA has quit [Quit: ellisTAA]
pu22l3r has joined #ruby
<shevy> perhaps php runs with insufficient permissions
<shevy> you can run ruby scripts?
<shevy> without php
<centrx> PenguinMan98, Did you fix the X:/ drive error?
mwlang_ has joined #ruby
<PenguinMan98> yeah
<mwlang_> Anyone know how I can get Builder::XmlMarkup to not encode/escape a string when calling the #text! method?
momomomomo has quit [Ping timeout: 264 seconds]
<PenguinMan98> works on non-administrator command line but not on administrator command line
<PenguinMan98> go figure
<mwlang_> I have an already escaped string and the “&” are getting turned into “&amp;” which I don’t need.
antgel has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
baroquebobcat_ has quit [Quit: baroquebobcat_]
<shevy> PenguinMan98 the commandlines are the same?
frek818 has joined #ruby
<shevy> PenguinMan98 perhaps windows has an additional indirect layer
ixti has quit [Ping timeout: 245 seconds]
chu has quit [Ping timeout: 244 seconds]
thumpba_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
zenith_ has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
zenith_ has joined #ruby
zachrab has quit [Client Quit]
arup_r has quit [Quit: Leaving.]
zachrab has joined #ruby
defrang has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
defrang has joined #ruby
Ankhers` is now known as Ankhers
tcrypt has quit [Remote host closed the connection]
johnzz has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
razieliyo has quit [Quit: Saliendo]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chu has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
leonshalimov has quit [Ping timeout: 265 seconds]
jpstokes_ has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
allcentury has joined #ruby
recurrence has joined #ruby
danjordan has joined #ruby
workmad3 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
bitcycle has quit [Ping timeout: 265 seconds]
ixti has joined #ruby
athan has joined #ruby
Aova has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
nanoyak has joined #ruby
ponga has joined #ruby
ta_ has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Quit: Connection closed for inactivity]
nanoyak has joined #ruby
frek818 has quit [Quit: frek818]
softinio has quit [Quit: Connection closed for inactivity]
bdamos has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
<mwlang_> ok, figured out to not escape strings with XmlMarkup: xml.return("xsi:type" => "xsd:string"){ |xml| xml << content }
bitcycle has joined #ruby
shazaum_ has quit [Quit: This computer has gone to sleep]
jgt2 has joined #ruby
athan has quit [Ping timeout: 272 seconds]
athan has joined #ruby
Aova has joined #ruby
adamkittelson has joined #ruby
Eiam_ has joined #ruby
ponga has quit [Ping timeout: 272 seconds]
ki0 has quit [Remote host closed the connection]
danjordan has quit [Quit: danjordan]
ta_ has quit [Ping timeout: 276 seconds]
zachrab has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 240 seconds]
kaspertidemann has joined #ruby
rbennacer has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
St_Marx has quit [Ping timeout: 250 seconds]
jonmorehouse has joined #ruby
tjbiddle has joined #ruby
zachrab has joined #ruby
tcrypt has joined #ruby
kl___ has quit [Ping timeout: 264 seconds]
kl__ has quit [Ping timeout: 264 seconds]
paulfm has quit [Quit: Goodbye]
felipecvo has quit [Quit: Leaving...]
JBreit has left #ruby ["Leaving"]
GaryOak_ has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<bkulbida> \n
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
djbkd has joined #ruby
bascht1 has quit [Quit: WeeChat 0.4.2]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> \n\n\n\n
nanoyak has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
dc has quit [Remote host closed the connection]
lsone has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith__ has joined #ruby
athan has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
djbkd has quit [Ping timeout: 245 seconds]
michael_mbp has joined #ruby
tcrypt has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
enebo has quit [Quit: enebo]
zenith__ has quit [Remote host closed the connection]
athan has joined #ruby
thumpba_ has joined #ruby
zenith_ has joined #ruby
Megtastique has quit []
nobitanobi has joined #ruby
zenith__ has joined #ruby
pdoherty has quit [Remote host closed the connection]
thumpba_ has quit [Remote host closed the connection]
whoisjake has quit []
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frek818 has joined #ruby
codeFiend has quit [Quit: codeFiend]
zachrab has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 256 seconds]
pdoherty has joined #ruby
ta has joined #ruby
dseitz has joined #ruby
bronson has joined #ruby
nanoyak has joined #ruby
deol has joined #ruby
ta has quit [Remote host closed the connection]
<jonmorehouse> I'm looking for a lightweight sql generator for a small daemon I'm building
<jonmorehouse> I like arel, but its not very friendly outside of rails
ta has joined #ruby
commmmodo has quit [Quit: commmmodo]
obelich has quit [Quit: Page closed]
<jonmorehouse> are there any other alternatives, anyone would recommend?
fryguy9 has quit [Read error: Connection reset by peer]
fxn has quit [Quit: bye]
fryguy9 has joined #ruby
fantazo has joined #ruby
mikepack has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
St_Marx has joined #ruby
ghr has joined #ruby
hydrozen has joined #ruby
bklane has quit [Remote host closed the connection]
mikepack has joined #ruby
dling has quit []
pietr0 has joined #ruby
Lingo_ has joined #ruby
beneggett has joined #ruby
fgo_zzZz has joined #ruby
bklane has joined #ruby
martinium has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 276 seconds]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt2 has joined #ruby
fgo_zzZz has quit [Ping timeout: 264 seconds]
zerolith_zzz is now known as zerolith
shime has joined #ruby
sigurding has quit [Quit: sigurding]
djbkd has joined #ruby
baweaver has quit [Remote host closed the connection]
zerolith is now known as zerolith_zzz
xIzIv has joined #ruby
xIzIv has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
spicymagpie has joined #ruby
rbennacer has quit [Remote host closed the connection]
Areessell has joined #ruby
rbennacer has joined #ruby
mikepack has joined #ruby
C1V0 has joined #ruby
<jeregrine> does ruby "freeze" constants?
djbkd has quit [Remote host closed the connection]
maletor has joined #ruby
<yxhuvud> jeregrine: no.
leonshalimov has joined #ruby
<jeregrine> sigh.
zerolith_zzz is now known as zerolith
<yxhuvud> they are constant in that they refer to the same object, not that the object can't be changed.
<yxhuvud> unless you are asking if you can change so that it refer to something totally different. That is possible but you will get a warning (at least for the naive way to do it)
commmmodo has joined #ruby
<jeregrine> worried more about allocating a new string everytime
<jeregrine> as always, seems like my memory grows and grows and grows
<jeregrine> and I am here struggling to figure out why
zerolith has left #ruby [#ruby]
dc has joined #ruby
<yxhuvud> post your code in a pastebin etc.
booly-yam-5895 has joined #ruby
<yxhuvud> preferably a minimal variant that still show the issue.
crueber has quit [Quit: Leaving.]
<jeregrine> ruby 2.2, IF the app is under load it GC works proper and memory goes up and then way down. if the app is under like 1 request per minute, memory grows forever
<jeregrine> untill I need to reboot everything
<jeregrine> saw some of it in 2.1.2 more consistent in 2.2
recurrence has quit [Quit: recurrence]
chrisja has quit [Quit: leaving]
<jeregrine> yxhuvud: pretty big app with lots of deps.
<jeregrine> unfortunately
<spicymagpie> that's odd. what server?
<jeregrine> puma
d10n-work has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
leonshalimov has quit [Ping timeout: 272 seconds]
<ddv> jrdnull, we used to have problems with the generational gc pre 2.2, not in 2.2 anymore
mwlang_ has quit [Quit: mwlang_]
djbkd has joined #ruby
<ddv> jeregrine*
<jeregrine> im not sure where the issue is TBH
<ddv> jeregrine, sounds like a memory leak in one of the gems you're using
<jeregrine> of course :(
<jeregrine> prolly in one of the 3-4 different http client libs that one my gems all use differently
<jeregrine> or json parsers
<jeregrine> or xml parsers
zzzbra has quit [Quit: WeeChat 1.1]
wallerdev has joined #ruby
<ddv> jeregrine, load your app on jruby and use something like visualvm to figure out what's happening
dimaursu16 has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
dimaursu16 has joined #ruby
<jeregrine> ddv: thanks for the tip
rbennacer has joined #ruby
jhc76 has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
keen__________39 has quit [Read error: Connection reset by peer]
mynameis has quit [Quit: Leaving]
<spicymagpie> if it's rails (though I know this channel is not for Rails), you may use sth like rack-miniprofiler
<jeregrine> spicymagpie: API written with roda
mitchellhenke has joined #ruby
Drakevr has quit [Ping timeout: 252 seconds]
johnzz has joined #ruby
ponga has joined #ruby
zerolith has joined #ruby
keen__________39 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Spami has quit [Quit: This computer has gone to sleep]
ellisTAA has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Parker0 has quit [Ping timeout: 245 seconds]
skj3gg has joined #ruby
Spami has quit [Client Quit]
Aova has joined #ruby
Lingo_ has quit [Quit: (null)]
ponga has quit [Ping timeout: 245 seconds]
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
Lingo_ has joined #ruby
crdpink has joined #ruby
crdpink has quit [Client Quit]
crdpink has joined #ruby
monod has joined #ruby
booly-yam-5895 has quit [K-Lined]
IrishGringo has joined #ruby
govg_ has quit [Quit: leaving]
WildBamboo-Josh has joined #ruby
joshbamboo1 has quit [Ping timeout: 245 seconds]
ianfleeton has joined #ruby
bklane has quit [Remote host closed the connection]
russt has joined #ruby
rbennacer has quit [Remote host closed the connection]
frek818 has quit [Quit: frek818]
Jackneill has quit [Remote host closed the connection]
patric100e99 has joined #ruby
<patric100e99> if I have an array of objects that respond to a method and output a value, why cannot I do arr.max(&:method) ?
<patric100e99> i have to do arr.max {|item| item.method }
<patric100e99> just curious why the shorthand syntax doesn't work
nuck has joined #ruby
zachrab has joined #ruby
recurrence has joined #ruby
<havenwood> patric100e99: Check out #max_by: http://ruby-doc.org/core-2.2.0/Enumerable.html#method-i-max_by
ta has quit [Remote host closed the connection]
bklane has joined #ruby
rbennacer has joined #ruby
<patric100e99> havenwood: ahhhh
<patric100e99> cool. thanks
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkulbida has quit [Ping timeout: 276 seconds]
ixti has quit [Ping timeout: 272 seconds]
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crueber has joined #ruby
kl has joined #ruby
kl__ has joined #ruby
GaryOak_ has joined #ruby
decoponio has quit [Quit: Leaving...]
mloveless has quit [Remote host closed the connection]
LouisRoR has quit [Ping timeout: 255 seconds]
brb3 has quit [Quit: ZZZzzz…]
ta has joined #ruby
supergiel has joined #ruby
tmtwd has joined #ruby
<gregf_> ````````````123][2~
<gregf_> [3~~
Hijiri has quit [Quit: WeeChat 1.0.1]
PaulCape_ has joined #ruby
tjbiddle has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
blackoperat has quit [Ping timeout: 256 seconds]
Lingo_ has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mloveless has joined #ruby
PaulCapestany has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
ta has quit [Ping timeout: 276 seconds]
mikepack has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
joshbamboo1 has joined #ruby
bronson has quit [Remote host closed the connection]
aclearman037 has quit [Quit: I'm out!]
ghr has joined #ruby
tcrypt has joined #ruby
lampd1_ is now known as lampd1
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fantazo has quit [Quit: Verlassend]
zachrab has quit [Remote host closed the connection]
ixti has joined #ruby
WildBamboo-Josh has quit [Ping timeout: 244 seconds]
fgo_zzZz has joined #ruby
Hijiri has joined #ruby
pardusf has quit []
ghr has quit [Ping timeout: 245 seconds]
lektricity has quit [Read error: Connection reset by peer]
bascht has joined #ruby
longfeet has quit [Ping timeout: 245 seconds]
parduse has joined #ruby
danman_ has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 276 seconds]
danman_ has quit [Client Quit]
allcentury has quit [Ping timeout: 265 seconds]
oleo__ has quit [Quit: Verlassend]
kostitas has joined #ruby
beneggett has quit [Ping timeout: 276 seconds]
dling has joined #ruby
beneggett has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
werelivinginthef has joined #ruby
danman has quit [Ping timeout: 272 seconds]
kenneth__ has joined #ruby
oleo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Ankhers has quit [Ping timeout: 250 seconds]
zenith__ has quit [Ping timeout: 255 seconds]
kenneth has quit [Ping timeout: 246 seconds]
ruby-lang053 has joined #ruby
dimaursu16 has quit [Ping timeout: 256 seconds]
kalusn has quit [Remote host closed the connection]
dimaursu16 has joined #ruby
cantonic has quit [Quit: cantonic]
skj3gg has quit [Quit: welp, see you later.]
ta has joined #ruby
jfran has joined #ruby
kayloos has joined #ruby
tsnz has quit [Ping timeout: 246 seconds]
zachrab has joined #ruby
josephndenton has joined #ruby
jfran_ has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
Eiam_ has joined #ruby
Dopagod has quit [Ping timeout: 245 seconds]
try has quit [Ping timeout: 252 seconds]
PaulCapestany has joined #ruby
JDiPierro has joined #ruby
ta has quit [Ping timeout: 276 seconds]
Channel6 has joined #ruby
bascht has quit [Quit: WeeChat 1.1]
mostlybadfly has joined #ruby
ruby-lang053 has quit [Quit: Page closed]
PaulCape_ has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Ping timeout: 240 seconds]
bascht has joined #ruby
codeFiend has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
longfeet has joined #ruby
tyfighter has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Boohbah has quit [Ping timeout: 250 seconds]
Boohbah has joined #ruby
frek818 has joined #ruby
adriancb has quit [Remote host closed the connection]
Prometheian has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
ponga has joined #ruby
chrishough has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
nuck has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
robbyoconnor has joined #ruby
recurrence has quit [Quit: recurrence]
tjbiddle has quit [Read error: Connection reset by peer]
maximski has quit []
tjbiddle has joined #ruby
Aova has joined #ruby
Dopagod has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
tjbiddle has quit [Read error: Connection reset by peer]
livingstn has quit []
deric_skibotn has quit [Ping timeout: 245 seconds]
eytanfb has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
nomadic has quit [Ping timeout: 244 seconds]
ianfleeton has quit []
codeFiend has quit [Ping timeout: 252 seconds]
nomadic has joined #ruby
<jonmorehouse> anyone know a good way to generate sql statements with ruby, without using an orm?
codeFiend has joined #ruby
bascht has quit [Remote host closed the connection]
pdoherty has quit [Remote host closed the connection]
bascht has joined #ruby
<pipework> jonmorehouse: I'd suggest the String class.
michael_mbp has quit [Excess Flood]
<pipework> trololol. Maybe sequel? I don't know, most things are about ORM stuff. But ActiveRecord has some neat stuff too.
kaspertidemann has quit []
bascht has quit [Client Quit]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
it0a has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
<bricker> jonmorehouse: You can use Arel
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bascht has joined #ruby
mechanic has joined #ruby
claw___ has quit [Quit: Konversation terminated!]
<pipework> ActiveRecord, which is a bit saner to use than arel directly for most things, has some neat support for returning hash representations of the tables you'd return in SQL.
Rollabunna has joined #ruby
bascht has quit [Client Quit]
bronson has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
bashusr has quit [Ping timeout: 252 seconds]
mechanic has left #ruby ["WeeChat 0.4.3"]
codecop has quit [Remote host closed the connection]
<jonmorehouse> bricker: arel doesn't work without the underlying connection
thiagovsk has quit [Quit: Connection closed for inactivity]
cjim_ has quit [Quit: (null)]
<jonmorehouse> I'm using event machine and the eventmachine postgres client
<jonmorehouse> so it doesn't play as nicely :(
<jonmorehouse> I'm going to try and use active record
bascht has joined #ruby
<pipework> Aww, why using event machine?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmsimha has quit [Ping timeout: 252 seconds]
<pipework> Why not like jruby and any event reactor that'll work on the JVM?
<pipework> If you want a reactor, that is.
<bricker> Just use the Node.js rubygem: https://github.com/rafaelfranca/node
veduardo has joined #ruby
<pipework> lololol
gsd has joined #ruby
kenneth has joined #ruby
<jonmorehouse> mainly, I just wanted to use eventmachine
<jonmorehouse> hadn't used it before, and thought it would be a good foray into the async side of ruby
<jonmorehouse> it seems to be working good so far, I guess
FooMunki_ has quit [Quit: FooMunki_]
lkba has quit [Read error: Connection reset by peer]
<jonmorehouse> mehh, maybe I should just write the sql by hand. Does that sound wreckless?
rapha has left #ruby ["bye!"]
quimrstorres has joined #ruby
<eam> pipework: pretty much every DBI layer has support for returning hash representations of rows
cjim has joined #ruby
<eam> totally unrelated to ORM
<pipework> eam: Yeah, that's why I suggested it.
<bricker> jonmorehouse: no it does not sound reckless
<eam> jonmorehouse: writing your own SQL is fine, just don't interpolate arguments
<pipework> jonmorehouse: Not really. Just another language.
<pipework> Handle input safely.
<eam> if anything, using an ORM is reckless :)
jefus_ has joined #ruby
<jonmorehouse> eam: thank you :)
ta has joined #ruby
<eam> sir I'm going to have to ticket you for gross exhibition of abstraction
<jonmorehouse> I'm totally anti-orm. I like writing ruby code, not active record code
pengin has joined #ruby
<atmosx> jonmorehouse: have tried sequel?
<jonmorehouse> atmosx: mehh
werelivinginthef has joined #ruby
beneggett has joined #ruby
<jonmorehouse> it is cool, but I don't have enough time to dig under the scenes and see how it would work with eventmachine and my postgres pool
<atmosx> okay I'm too old for this.
<atmosx> I'm off to bed bbl
martinium has joined #ruby
martinium has joined #ruby
bronson has quit [Remote host closed the connection]
jefus has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
doodlehaus has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
martinium has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
ziyadb has joined #ruby
nateberkopec has quit [Quit: Leaving...]
werelivinginthef has quit [Remote host closed the connection]
quimrstorres has joined #ruby
deric_skibotn has joined #ruby
scripore has joined #ruby
divi has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
beneggett has quit [Remote host closed the connection]
beneggett has joined #ruby
beneggett has quit [Client Quit]
duncannz has joined #ruby
deol has joined #ruby
ta_ has joined #ruby
ghr has joined #ruby
Hijiri has quit [Ping timeout: 240 seconds]
blandflakes has quit [Quit: Page closed]
fgo_zzZz has joined #ruby
supergiel has quit [Remote host closed the connection]
DadoCe has joined #ruby
codeFiend has quit [Quit: codeFiend]
mikepack has joined #ruby
leonshalimov has joined #ruby
Guest17454 has quit [Quit: Sto andando via]
<ellisTAA> can i create a hash whose key is a variable and value is a variable??
jenrzzz has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 276 seconds]
<tmtwd> ellisTAA: i believe so
<ellisTAA> hmmm
<pipework> Have you tried?
<cphrmky> you can create a hash where the key is whatever the value of a varible is
<tmtwd> you can do a hash with anything
<tmtwd> hashes are kind of supposed to replace most data structures
<pipework> ^what
<tmtwd> so it is super flexible
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doobi-sham-46893 has joined #ruby
<cphrmky> This will work: foo => :my_key; bar = 'my value'; hsh = { foo => bar }
mrmargolis has quit [Remote host closed the connection]
<tmtwd> pipework: they can be stacks, queues, lists etc
<pipework> tmtwd: Arrays are more flexible.
<tmtwd> pipework: you need both
<ellisTAA> when i return the has it returns the variable name and not the variable value
<pipework> Hashes can be inefficient for an array.
<pipework> tmtwd: Sure.
fgo_zzZz has quit [Ping timeout: 272 seconds]
<pipework> Hashes and arrays are good datastructures, by which you can make other neat things.
baweaver has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
roshanavand has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
pontiki has quit [Quit: heading home!]
<ellisTAA> can someone tell me what they think lines 19 - 23 are asking for? it looks like i have to have an add method interact with an entries method but that seems weird .. https://gist.github.com/ellisTAA/038c42895bf9a65f9be2
leonshalimov has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Quit: tjbiddle]
<bricker> ellisTAA: looks like "add" just merges into a hash, and "entries" is the keys for that hash
x77686d has quit [Quit: x77686d]
ta_ has joined #ruby
Rhainur1 has joined #ruby
tyfighter has quit [Quit: tyfighter]
govg has joined #ruby
<ellisTAA> just merges into a hash? i thought it was accepting a hash as an argument? does merge into a hash mean something else?
Rhainur has quit [Ping timeout: 264 seconds]
<bricker> ellisTAA: @d.entries is a hash, and you pass another has to add(), and those two hashes get merged together
<pipework> ellisTAA: It doesn't matter what it actually does, just that you implement the method that adheres to that interface and produces the expected result.
otertore has quit [Read error: Connection reset by peer]
<ellisTAA> how do they merge? through a method like push or is merge a concept i need to go read about
otertore has joined #ruby
_2_tanty has joined #ruby
<_2_tanty> ok:(
<ellisTAA> pipework: what do you mean “interface”
nanoyak has quit [Quit: Computer has gone to sleep.]
scripore has quit [Quit: Leaving]
zachrab has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Ping timeout: 245 seconds]
zachrab has joined #ruby
<pipework> ellisTAA: The method has a signature. It accepts arguments or it doesn't, however many there may be.
<bricker> ellisTAA: merge is like push, kinda
zachrab has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<bricker> ellisTAA: look at the hash documentation for 'merge'
<ellisTAA> k
Hijiri has joined #ruby
symbol has quit [Ping timeout: 245 seconds]
ptrrr has quit [Quit: ptrrr]
skj3gg has joined #ruby
frek818 has quit [Quit: frek818]
_2_tanty has quit [Client Quit]
tcrypt has quit [Remote host closed the connection]
ellisTAA has left #ruby [#ruby]
arescorpio has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
bashusr has joined #ruby
Dopagod has quit [Read error: Connection reset by peer]
Synthead has quit [Quit: Leaving]
Dopagod has joined #ruby
frek818 has joined #ruby
CrazyM4n has joined #ruby
icbm has quit [Ping timeout: 240 seconds]
CrazyM4n_ has joined #ruby
kostitas has quit [Quit: Leaving]
ixti has quit [Quit: WeeChat 1.0.1]
riotjones has joined #ruby
Dopagod has quit [Max SendQ exceeded]
baweaver has joined #ruby
Dopagod has joined #ruby
Lexun has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
Lingo_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
jonmorehouse has quit [Read error: Connection reset by peer]
riotjone_ has quit [Ping timeout: 276 seconds]
jonmorehouse has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
poguez has joined #ruby
CrazyM4n_ has quit [Quit: sleep]
martinium has joined #ruby
ponga has joined #ruby
kirun has quit [Quit: Client exiting]
Drakevr has joined #ruby
jgt2 has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
Aova has joined #ruby
chipotle has joined #ruby
AlexRussia has joined #ruby
RDash has quit [Read error: Connection reset by peer]
danjordan has joined #ruby
doobi-sham-46893 has quit [K-Lined]
RDash` has joined #ruby
ki0 has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
josephndenton has joined #ruby
kenneth has joined #ruby
wallerdev has quit [Quit: wallerdev]
xivusr has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
monod has quit [Quit: Sto andando via]
ki0 has quit [Ping timeout: 244 seconds]
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
tejas-manohar has joined #ruby
cjim has quit [Quit: (null)]
baroquebobcat has quit [Quit: baroquebobcat]
josephndenton has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
ellisTAA has joined #ruby
kenneth__ has joined #ruby
danjordan has quit [Quit: danjordan]
DadoCe has quit [Ping timeout: 276 seconds]
sinkensabe has joined #ruby
function90 has quit [Max SendQ exceeded]
zerolith has left #ruby [#ruby]
bklane has quit [Remote host closed the connection]
zerolith has joined #ruby
kenneth has quit [Ping timeout: 264 seconds]
jerius has quit [Ping timeout: 276 seconds]
jerematic has quit [Remote host closed the connection]
bashusr has quit [Ping timeout: 245 seconds]
PenguinMan98 has quit [Ping timeout: 246 seconds]
function90 has joined #ruby
zerolith has quit [Client Quit]
Lexun has quit [Remote host closed the connection]
jgt2 has joined #ruby
bklane has joined #ruby
martinium has quit [Remote host closed the connection]
<tejas-manohar> ruby getto read stdin in online coding challenges and all
<tejas-manohar> i just use gets right? and maybe gets.chomp to cut the random \n's
vvivv has quit [Ping timeout: 264 seconds]
<tejas-manohar> ruby getto read stdin in online coding challenges and all --> to read stdin in ruby for online coding challenges and all
Loaft has joined #ruby
RailWolf has joined #ruby
Azure has quit [Ping timeout: 244 seconds]
jerematic has joined #ruby
Lexun has joined #ruby
ta has joined #ruby
<mozzarella> what the fuck dude
<mozzarella> ask a proper question
dojobo has quit [Quit: Leaving]
tcrypt has joined #ruby
ascarter_ has joined #ruby
josephndenton has joined #ruby
spider-mario has quit [Remote host closed the connection]
ascarter_ has quit [Max SendQ exceeded]
<chipotle> i'm new to programming and ruby. i've worked with drupal but haven't really had to code anything for several years. what IDE/text editor do you use? i was thinking about sublime text or atom, but atom i hear is very slow? and i don't know how to evaluate IDEs...
<tejas-manohar> ok new question
jonr22 has joined #ruby
function90 has quit [Max SendQ exceeded]
ascarter_ has joined #ruby
<tejas-manohar> i want to read STDIn in online coding challenges for ruby-- do i use gets? do i always use gets.chomp? im looking at multiline things im reading from STDIN
DadoCe has joined #ruby
xivusr has joined #ruby
ascarter has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 245 seconds]
function90 has joined #ruby
<tejas-manohar> mozzarella: ^
bitcycle has quit [Quit: WeeChat 1.0.1]
Azure has joined #ruby
tsnz has joined #ruby
bronson has quit [Remote host closed the connection]
martinium has joined #ruby
martinium has quit [Remote host closed the connection]
hefest has quit [Ping timeout: 252 seconds]
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
Hijiri has quit [Ping timeout: 245 seconds]
defrang has quit [Quit: defrang]
ghr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
cjim has joined #ruby
fgo_zzZz has joined #ruby
tsnz has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby
function90 has quit [Max SendQ exceeded]