apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<havenwood> jen_: edit it and change 1.8.7 to 2.2.1
commmmodo has quit [Quit: commmmodo]
<havenwood> 2.2.0 rather ;)
thumpba__ has joined #ruby
<havenwood> either
Musashi007 has quit [Quit: Musashi007]
<havenwood> in your case, 2.2.0 since that's what you installed
<jen_> done
<jen_> nice
thumpba has quit [Ping timeout: 252 seconds]
<jen_> hold on
<jhass> now the app will probably break since it was written for 1.8 :P
mjuszczak has quit []
wallerdev has quit [Ping timeout: 265 seconds]
<jen_> shoudl I do bundle install?
rhg135|coding is now known as rhg135
tkuchiki has joined #ruby
<havenwood> ya
wallerdev has joined #ruby
<jen_> no issues there
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba_ has quit [Ping timeout: 255 seconds]
plashchynski has joined #ruby
<jen_> script runs but I get this: Error occured: OpenSSL::SSL::SSLError - hostname "localhost" does not match the server certificate
rushed has joined #ruby
<jen_> OpenSSL issue :(
pietr0 has quit [Quit: pietr0]
<jen_> for this Google API, would they need this site doing the server call to have an SSL cert?
<nickjj> what's the syntax to do something like: arr.collect(&:strip, &:downcase) ?
tkuchiki has quit [Ping timeout: 265 seconds]
<nickjj> am i stuck having to chain .collect?
<jhass> nickjj: no abbreviation possible, do arr.map {|item| item.strip.downcase }
sevvie has quit [Ping timeout: 264 seconds]
<nickjj> jhass, ah good idea. thanks
tkuchiki has joined #ruby
Feyn has joined #ruby
lkba has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
a5i has quit [Quit: Connection closed for inactivity]
lkba has joined #ruby
meatherly has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
red_horned_rihno has quit [Ping timeout: 264 seconds]
<jhass> nickjj: that's the normal syntax &:foo is the shortcut ;)
<jhass> jen_: this one is hard without knowing what you're actually doing
scripore has joined #ruby
<nickjj> jhass, so then i could just use .collect still?
<nickjj> with the non-shortcut variant
<havenwood> nickjj: or `arr.map(&:strip).map(&:downcase)`, can fit two #map in a #collect :P
Motoservo has joined #ruby
<havenwood> if you don't mind the performance hit
<jhass> nickjj: collect and map are aliases
segmond has joined #ruby
<jhass> havenwood: that's actually longer than writing it out :P
<nickjj> the source code is identical?
tkuchiki has quit [Ping timeout: 256 seconds]
<jhass> calling .collect or .map makes no difference
<havenwood> aliases
<jhass> it's the same method, just under different names
<havenwood> nickjj: most folk use map
mjuszczak has joined #ruby
<nickjj> ok, i thought it would have been marked as an alias in the docs
<nickjj> unless i missed it somehow
<jhass> I think it is?
mjuszczak has quit [Client Quit]
<jhass> wow, not really
<jhass> that's dumb
<nickjj> yeah i was looking for a supplemental note
<jen_> jhass and havenwood . This application is suppose to send gclid values back to Google via the Adwords API. Gclid values are passed back to our database after a successful transaction occurs.
freerobby has joined #ruby
<nickjj> it's some blindingly massive yellow box that tells you it's an alias
Pupeno has quit [Remote host closed the connection]
djbkd has joined #ruby
<jhass> jen_: well, you have a rather lowlevel issue, so the what isn't as interesting as the how actually
<havenwood> nickjj: a diff of the source shows Array#map and Array#collect are indeed identical
<jen_> The data is reporting back to us okay, but sending it out back to Google is where we are having issues.
rushed has quit [Quit: rushed]
Pupeno has joined #ruby
<jhass> jen_: like, why it's connecting to localhost via https and why what ever is listening there returns an invalid cert
<nickjj> map wins then, more commonly used and less characters
<jhass> nickjj: totally ;D
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> the .collect'ors are insane people :P
<havenwood> same with Enumerable#map and Enumerable#collect
<havenwood> identical
<centrx> also Set#map and Set#collect
<centrx> identical
<havenwood> map!
Hirzu has joined #ruby
<havenwood> centrx: the non bang ones are Enumerable i think
tunaCanBruh has quit [Ping timeout: 255 seconds]
<havenwood> ha, and Set#map! and Set#collect! explicitly state they're aliases in the docs
<jhass> consistency ftw!
<jhass> I think I'll sneak a deprecation warning for collect into one of my gems
w0rldmaker has quit [Ping timeout: 245 seconds]
<nickjj> jhass, yeah or redefine it to do something else entirely
<jen_> jhass and havenwood These are my files with credentials x’d out: https://www.dropbox.com/s/hnedpf8pkicmh3g/cj.zip?dl=0
Pupeno has quit [Ping timeout: 246 seconds]
<jen_> Readme has description of what the script does
dapz has joined #ruby
swgillespie has joined #ruby
Hirzu has quit [Ping timeout: 240 seconds]
Qladstone has joined #ruby
red_horned_rihno has joined #ruby
mary5030 has joined #ruby
segmond has quit [Ping timeout: 255 seconds]
<jhass> and what command produces the error?
<jhass> bundle exec ruby setup_oauth2.rb ?
<jen_> bundle exec ruby script.rb
Takle has quit [Remote host closed the connection]
mjuszczak has joined #ruby
freerobby has quit [Quit: Leaving.]
mary5030 has quit [Ping timeout: 265 seconds]
RegulationD has quit [Remote host closed the connection]
<emocakes> hallo jhass
rushed has joined #ruby
w0rldmaker has joined #ruby
<jhass> jen_: can you comment out (put # in front) lines 29-33 (but not the end on ine 34), run it again and make a pastie with the full output?
<jhass> of script.rb
n80 has quit [Quit: n80]
Megtastique has quit []
tunaCanBruh has joined #ruby
oo_ has joined #ruby
n80 has joined #ruby
sevvie has joined #ruby
<jhass> ah, mh
<jen_> I have no cert on this domain.
<jen_> does that matter?
RegulationD has joined #ruby
<jen_> mh?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ugh, that script is a bit dumb
neanderslob__ has joined #ruby
<jhass> the issue in the mailer
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<jen_> listening...
<jhass> it connects to localhost by default via smtps or using startssl
<jhass> and it doesn't let you configure that at all
pen has joined #ruby
valkyrka has quit [Ping timeout: 265 seconds]
Sembei has joined #ruby
dapz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jen_> ok, any ideas? jhass
<jen_> not sure why we have a mailer in there.
<jen_> Ruby developer skipped out of town.
<jen_> hence my panic here.
<jen_> can we disable mail?
tnelsond has left #ruby [#ruby]
<jhass> if you don't want to fix it, sure
<jhass> jsut edit lib/notifier.rb
tunaCanBruh has quit [Ping timeout: 246 seconds]
<jhass> send_mail? method, just always return false
dapz has joined #ruby
<dopie> hey guys
tgunr has joined #ruby
<vhlfd> Senjai, are you Steve?
<blackmesa> hi all. Is it possible to create string of this format include AASM
segmond has joined #ruby
<dopie> can i rewrite the if satement like that?
oo_ has quit [Remote host closed the connection]
<jhass> dopie: no. What do you think defined? does?
<jen_> jhass: comment out everything in there?
w0rldmaker has quit [Ping timeout: 245 seconds]
<jen_> notifier.rb
<jhass> jen_: no, just change def send_mail? to always return false
<dopie> check to see if an expression is defined or not
<jhass> and what does defined mean to you?
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> vhlfd: certainly not
<jen_> so replace line 8 with return false ?
<Senjai> :P
<dopie> Check to see if the variable has something in it
<blackmesa> sry. "A1A" to "D6F". all combinations to "D6F", which is the maximum. Ive used [*A..Z] before for generating an array of string "A" to "Z". I wonder if there something for similar
<dopie> hsa a value
<jhass> dopie: when wouldn't it?
<skaag> what's a good way to measure how long an operation takes in ruby?
<skaag> I need to measure it in milliseconds
<dopie> it wouldnt when its nil or empty
<dopie> no?
<jhass> no
<jhass> nil is a value and a variable that has nil assigned is defined
lordkryss has quit [Quit: Connection closed for inactivity]
<jhass> what your definition of empty? is I don't know
sevvie has quit [Ping timeout: 265 seconds]
<jhass> anyway, to suggest a better way to write this, we would need to know what the heck approved contains
oo_ has joined #ruby
plashchynski has quit [Quit: plashchynski]
zachrab has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
<jhass> jen_: uh, that's going into the specifics of the adwords API I think, of which I don't have a clue (and I'm quite happy about that fact)
<jen_> haha
<jen_> ok. I think we made some progress here.
<jen_> i may have to update google-adwords-api gem
<jen_> how do I do that?
tjohnson has quit [Quit: Connection closed for inactivity]
<havenwood> jen_: In your Gemfile, change `source 'http://rubygems.org'` to `source 'https://rubygems.org'`.
Qladston_ has joined #ruby
<jen_> aha
<jen_> ok
FooMunki_ is now known as FooMunki
<jen_> someone told me to put it to http
<jen_> sec
<havenwood> no
<havenwood> https
jonr22 has joined #ruby
<jhass> jen_: to actually answer the question, since your Gemfile has no restrictions on that gem, just bundle update google-adwords-api
<jen_> ok, changing to https
Jetchisel has joined #ruby
<dopie> approved contains either true or false
<jen_> do bundle update .....
odigity has quit [Ping timeout: 256 seconds]
<jhass> dopie: no, the outer one, on which you're able to call each
commmmodo has joined #ruby
<jen_> and then do bundle install again?
<havenwood> jen_: That's update *all* gems possibly, while the command jhass said just updates the one. Doing `bundle update` basically nukes your Gemfile.lock.
Qladstone has quit [Ping timeout: 264 seconds]
<jen_> i just did bundle update google-adwords-api
<havenwood> jen_: then: bundle
<havenwood> or `bundle install` if you like typing extra letters
<jhass> uh, well, bundle update does install already ;)
bayed has quit [Quit: Connection closed for inactivity]
segmond has quit [Ping timeout: 264 seconds]
<havenwood> but henceforth
w0rldmaker has joined #ruby
happyface has joined #ruby
ghostpl_ has joined #ruby
<havenwood> jhass: good point
<ponga> hi guys
<ponga> another good day
<jen_> jhass: havenwood http://pastie.org/9994838
<havenwood> i'm sick, therefore the day is not good. an adequate day.
<jen_> change it back to http?
Macaveli has joined #ruby
tacotaco_ has joined #ruby
sevvie has joined #ruby
<Senjai> havenwood: :(
<Senjai> When your day is bad, my day is bad
centrx has quit [Remote host closed the connection]
<Senjai> get better soon!
<dopie> updated
<havenwood> Senjai: i'm on the mend :)
<dopie> approved = @user.receipts.map {|receipt| [receipt.confirmation?, receipt.is_approved?] }
crueber has quit [Quit: Leaving.]
Sawbones has joined #ruby
<havenwood> jen_: no, fix the OpenSSL issues - don't http
<jhass> jen_: no, that one is unrelated to the Gemfile
<Senjai> dopie: That is painful :(
mudtose has joined #ruby
<dopie> Senjai, I am sorry that is what im trying to improve
<dopie> I am a novice rubyist and have to learn
<jen_> so keep it https
<jen_> do I need an SSL cert on the domain for this script
<Senjai> dopie: For starters, you cannot render more than once per action
<Senjai> unless your looking for the first receipt that is confirmed but not arpproved
<havenwood> jen_: with RVM you can drop the `bundle exec` prefix from commands, it'll automatically prefix it when there's a Gemfile present
<Senjai> but it doesnt mater because you dont change the state at all
<jhass> jen_: well, it might indeed be better to hire a dev who's capable to debug this stuff on the actual environment :/
<Senjai> dopie: You may also want to look at #rubyonrails
<jhass> since guess this remote gets increasingly hard
<jhass> *guessing
<jen_> Senjai: was going to do this with me in 40 min.
yfeldblum has quit [Remote host closed the connection]
<havenwood> jen_: What OS/distro are you on, I don't recall?
ghostpl_ has quit [Ping timeout: 250 seconds]
<jen_> CentOS
<jhass> dopie: is the methods intention really to ever only look at the first receipt?
Macaveli has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> jen_: yum install ca-certificates
<jhass> Senjai: there are ugly and return's in there
<jhass> so it's a convoluted .first for the moment
<jen_> from root havenwood
giuseppesolinas has joined #ruby
<havenwood> jen_: ya
<havenwood> jen_: escalate permissions however you prefer
<havenwood> elevate*
<dopie> jhass, no it looks at all receipts
<havenwood> escalators or elevators?
<jhass> dopie: no
<dopie> err wait
<jhass> dopie: that may be your intention, but it's not what it does
<dopie> yes sorry
<dopie> it looks at the first receipt and see's if its paid
<Senjai> jhass: Yeah, I noticed after reading it the second time
<jhass> and that's the intention still?
<jhass> Senjai: why i hate and/or for control flow :P
<Qladston_> hello
<Qladston_> if I want to access and evaluate the individual characters of a string
<Senjai> dopie: You dont understand the problem correctly. Say aloud, in words what the problem is, and then how you'll fix it
<Qladston_> .split('') is the best way?
<Senjai> you'll note your code does something incredibly more obtuse than the verbal solution
<havenwood> jen_: Also confirm that your .gemrc has https not http: cat ~/.gemrc
<jhass> Qladston_: .each_char/.chars
<havenwood> no http!
<ponga> uh oh
<ponga> i was going to answer but jhass already did so
<ponga> ;)
<Qladston_> does that do the same operation?
<ponga> Qladston_: "Hello world".each_char do |c| your code with c end
<ponga> i believe this is it
<jen_> havenwood: gem: --no-ri --no-rdoc
nii236 has joined #ruby
w0rldmaker has quit [Ping timeout: 240 seconds]
<jhass> Qladston_: .each_char takes a block and yield each character, without a block it returns an Enumerator. .chars returns an array of the characters
<havenwood> Qladston_: #chars returns the same Array, but #each_char returns an Enumerator
tmtwd has joined #ruby
senayar has joined #ruby
rushed has quit [Quit: rushed]
skj3gg has joined #ruby
<jhass> dopie: still waiting for clarification what the methods intention is :)
_maes_ has quit [Ping timeout: 246 seconds]
<havenwood> jen_: these days `--no-ri --no-rdoc` is `--no-document`
<Qladston_> hmm
<jen_> so does this mean that file does not exist?
<havenwood> jen_: but yeah, no problems there
zachrab has joined #ruby
odigity has joined #ruby
<havenwood> jen_: it's fine, try installing a gem after the package install
segmond has joined #ruby
<Qladston_> which is more efficient? if I don't need an array, only if it is a means to examine the characters by referencing to a hash
nii236 has quit [Client Quit]
<Qladston_> the hash has keys which are characters in symbols
<ponga> Qladston_: if not wanting seperate array i'd say each_char is good enough
Spooner_ has quit [Remote host closed the connection]
ujjain has quit [Quit: ZNC - http://znc.in]
<jen_> havenwood: should I do bundle update httpclient
Sawbones has quit [Remote host closed the connection]
pen has quit []
baweaver has joined #ruby
<havenwood> jen_: no, what jhass said a while back, that gem
baroquebobcat has quit [Ping timeout: 255 seconds]
<havenwood> or did i miss a new error?
<Qladston_> nice
<Qladston_> that halved my execution time compared to str.split('')
<jhass> Qladston_: yeah, allocations are expensive ;)
<Qladston_> I have no idea why though
<Qladston_> haha
skj3gg has quit [Quit: ZZZzzz…]
dapz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jen_> havenwood: not sure which gem
<havenwood> scroll back!
<jen_> bundle update google-adwords-api ?
crdpink has joined #ruby
<havenwood> yup
<Qladston_> thanks guys ponga and jhass
<Qladston_> (:
Qladston_ is now known as Qladstone
skj3gg has joined #ruby
jcdesimp has joined #ruby
<dopie> Senjai, jhass the what the method intention is if the 1st receipt has a file and is not approved render :show else render :payment
jcdesimp has quit [Client Quit]
<dopie> rofl the what
j_mcnally has joined #ruby
<jhass> dopie: anyway http://paste.mrzyx.de/pzvqnkklv
scottstamp has quit [Quit: ZNC - http://znc.in]
GaryOak_ has quit [Remote host closed the connection]
esasse has joined #ruby
<jen_> jhass: havenwood I give up....
<jen_> jumping ship
<jhass> dopie: behavior is probably underterministic since you define no order to reliably determine what the first receipt should be
<jen_> thanks for your help.
<jen_> We tried.
<dopie> I c
<dopie> jhass, thank you
eladmeidar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scottstamp has joined #ruby
<jhass> jen_: yeah, as I said I think this needs someone who's able to debug it hands on in the actual environment
adriancb has joined #ruby
<jen_> yep
<jhass> it's a simple enough thing in theory, centos and the involved APIs are just crazy I guess :P
segmond has quit [Ping timeout: 272 seconds]
skj3gg has quit [Client Quit]
scottstamp has quit [Client Quit]
<dopie> man so much simpler how you wrote it
n008f4g_ has quit [Ping timeout: 255 seconds]
<dopie> i was like doing more work for nothing
scottstamp has joined #ruby
jtperreault has quit [Quit: WeeChat 0.4.1]
<dopie> I basically didnt define the first receipt
<jhass> as said, please define an order too to make it robust
<omosoj> i want to use an array defined in another file. i'm using require_relative 'path/from/file', but the array isn't accessible
<jhass> I have no idea what would determine what the first receipt should be in your domain logic, so I couldn't do it
<jhass> omosoj: return it from a method or assign it to a constant
bricker_ has joined #ruby
<jhass> top level scope does not share local variables across files
<omosoj> jhass, i see, awesome, thanks
<dopie> jhass, totally thankful !receipt.is_approved basically checks to see if the receipt isnt approved
<jhass> dopie: that's clear
<jhass> we just don't do the is_ prefix in ruby
<jhass> what .confirmation? says however is completely unclear
Feyn has quit [Quit: Leaving]
<dopie> so in ruby you dont use is_approved use approved, in rails use is_approved and not approved ?
jtperreault has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
<jhass> you don't use is_approved? in rails either I'd say
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass> after all rails is still ruby
mikecmpbll has quit [Quit: ciao.]
scottstamp has quit [Quit: ZNC - http://znc.in]
scottstamp has joined #ruby
<dopie> weird
<miah> approved? > is_approved?
<dopie> ok
sevvie has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
jen_ has quit [Quit: jen_]
bricker_ is now known as bricker
dapz has joined #ruby
sevvie has joined #ruby
<dopie> jhass, for confirmation basically its checking if the the receipt is there
<dopie> receipt.confirmation? i thought would be good
<miah> confirmed?
<jhass> dopie: what does it mean whether or not the confirmation is there?
Musashi007 has joined #ruby
<dopie> basically just check if the receipt is present or not
rbennacer has joined #ruby
segmond has joined #ruby
nii236 has joined #ruby
zacstewart has joined #ruby
marr has quit []
<bricker> It would be a mean trick if you had a method named "confirmed?" that returned a String
<havenwood> String is truthy, checks out.
zachrab has quit [Remote host closed the connection]
<jhass> dopie: I don't follow
<bricker> havenwood: *always* returns a String
<havenwood> bricker: ewwww, madness!!!
<bricker> >:D
<bricker> huehuehuehueuhee
a5i has joined #ruby
fryguy9 has quit [Quit: Leaving.]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<bricker> I am bumped to the second page :(]
<bricker> like a chump
<havenwood> bricker: guess we should chase some stars! (having project have it's own repo kills your popularity!)
mudtose has quit [Ping timeout: 245 seconds]
Megtastique has joined #ruby
<bricker> havenwood: yes :)
<havenwood> bricker: but i'll take it, nice to be on a good list!
rbennacer has quit [Ping timeout: 256 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
adriancb_ has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
segmond has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
<havenwood> not a naughty list. coal. beans. meh.
Limix has quit [Quit: Limix]
<bricker> :P
MatthewsFace has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<jhass> bricker: that's site's very broken
<jhass> claiming I had no Crystal repo
<jhass> lies!
<jhass> well one without stars, in any case, it's wrong
ParmesanCaesar has joined #ruby
mistermo_ has joined #ruby
tunaCanBruh has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
<havenwood> what's a good example of a use case for this?: https://bugs.ruby-lang.org/issues/10883
yoshie902a has joined #ruby
<a5i> because emeralds are too mainstream
<yoshie902a> anyone have experience using Watir with ruby?
mistermocha has quit [Ping timeout: 255 seconds]
<nahtnam> Is it possible to create a 3d game in ruby?
fabrice31 has quit [Ping timeout: 265 seconds]
vhlfd is now known as majeure
mistermo_ has quit [Ping timeout: 246 seconds]
<jhass> havenwood: I think there's none :P
oki has joined #ruby
<havenwood> jhass: but i *want* a use case, i like it!
MissionCritical has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> jhass: i don't like having to break my method chaining to assign a var
<a5i> nahtnam: v ?
Limix has joined #ruby
<jhass> maybe something that involves operators, like "123".to_i.itself {|n| n-3 }.to_s
skj3gg has joined #ruby
jtdowney has joined #ruby
ghr has joined #ruby
tunaCanBruh has quit [Ping timeout: 265 seconds]
<jhass> vs ("123".to_i-3).to_s
segmond has joined #ruby
<jhass> but not sure that would be an improvement still tbh
<nahtnam> a5i: Is it not possible to create a native client?
<havenwood> jhass: i waaant it, but yeah it's hard to find something compelling
<a5i> nahtnam: I dunno, Im a noob to :P
_X_C_V_B_ has joined #ruby
dapz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nahtnam> :P
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mjuszczak has quit []
<jhass> havenwood: I rather want find_itself :P
willharrison has joined #ruby
kaiZen has joined #ruby
_X_C_V_B_ has quit [Read error: Connection reset by peer]
jen_ has joined #ruby
<havenwood> jhass: soul_search
<jhass> aka find_map or whatever a good name would be
blackmesa has quit [Quit: WeeChat 1.1.1]
majeure is now known as vhlfd
<a5i> anyone here know steveklabnik ?
<jhass> .first_truthy
Musashi007 has quit [Quit: Musashi007]
<havenwood> jhass: what would it do?
<havenwood> ahhh
<jhass> return first truthy return value
_5kg has joined #ruby
<havenwood> interesting
dapz has joined #ruby
oki has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 245 seconds]
<jen_> Senjai:
<jen_> are you around now?
mudtose has joined #ruby
JoshGlzBrk has joined #ruby
skj3gg has quit [Client Quit]
RegulationD has joined #ruby
<jhass> havenwood: I also like .max/min/minmax_of that I added to crystal (and got flamed for that it's a bad name)
<jhass> which is an efficient .map().min/max/minmax
Aswebb_ has joined #ruby
vdamewood has joined #ruby
<havenwood> min_max_minmax
centrx has joined #ruby
dapz has quit [Ping timeout: 245 seconds]
sivsushruth has quit [Ping timeout: 255 seconds]
sivsushruth has joined #ruby
baweaver has quit [Remote host closed the connection]
centrx has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 240 seconds]
yoshie902a has quit [Quit: yoshie902a]
zacstewart has joined #ruby
graydot has quit [Remote host closed the connection]
sevvie has joined #ruby
kblake has quit [Remote host closed the connection]
<havenwood> >> 1.upto(3).max { |x| -x }
<eval-in> havenwood => 1 (https://eval.in/295286)
Aswebb_ has quit [Ping timeout: 272 seconds]
<havenwood> jhass: how bout just dropping the `_of` for min/max/minmax?
<jhass> not the same
<jhass> I think
<havenwood> ah, went over my head (my medicine head)
casadei has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
mudtose has quit [Quit: Leaving]
<jhass> >> (1..3).max_by {|x| -x }
<eval-in> jhass => 1 (https://eval.in/295288)
oo_ has quit [Remote host closed the connection]
<jhass> yeah, max with a block is just max_by
<havenwood> >> (1..3).max { |x| -x }
<eval-in> havenwood => 1 (https://eval.in/295289)
<jhass> max_of returns you the -3
bruno- has quit [Ping timeout: 246 seconds]
<havenwood> oooh
<havenwood> just actually read the assert >.>
slawrence00 has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
robustus has joined #ruby
<havenwood> i'm still confused, but it's probably just me.
cjim has joined #ruby
<havenwood> i have a lot of crystal-lang studying to do
<jhass> so it closer to .lazy.map {|x| -3 }.max in ruby
juanpablo_ has joined #ruby
<havenwood> ah
<a5i> How good is Ruby with Cyber security?
<jhass> a5i: just as good as you and Java combined!
<a5i> I know Java
<jhass> how good is Java with Cyber security then?
<a5i> I dont know
<a5i> I never tried
<jhass> and how good are you with Cyber security?
<jhass> or Bash?
<jhass> or C?
tkuchiki has joined #ruby
<jhass> or C++?
<jhass> or Google?
<a5i> Rust :)
<jhass> how good is Rust with Cyber security then?
polysics has quit [Remote host closed the connection]
<mozzarella> rust seems to be popular among rubyists
<a5i> Never tried
<a5i> mozzarella: I went from Rust and now learning Ruby
<jhass> havenwood: another gem we have is Int#to, which automatically picks the right direction, so both 1.to(3) and 3.to(1) work like expected
Qladstone has quit [Remote host closed the connection]
<mozzarella> they're two different languages serving a different purpose
<jhass> a5i: can you answer any of my questions? if so I might be able to answer yours
<havenwood> jhass: i like that, very nice
<jhass> havenwood: yeah, it's especially nice if you don't know the values for one side
<a5i> jhass, I dont know
attamusc has quit [Quit: Connection closed for inactivity]
<jhass> a5i: what is cyber security then?
<a5i> hax
<jhass> what is hax?
juanpablo_ has quit [Ping timeout: 264 seconds]
sivsushruth has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
sankaber has joined #ruby
<a5i> What is life?
<jhass> havenwood: invented it to dry up code into this method :P https://github.com/manastech/crystal/blob/master/samples/2048.cr#L296
<jhass> just in case I didn't tease your med head enough already :P
oo_ has joined #ruby
<jhass> a5i: so you asked a question about qualities of X in Y, without knowing what Y is? :)
<a5i> No
<a5i> :c
<jhass> well, I for one can't make sense out of the question, which is why I try to find out what you're thinking of when you say "cyber security"
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skj3gg has joined #ruby
sivsushruth has joined #ruby
unreal has joined #ruby
starless has joined #ruby
FooMunki has quit [Quit: FooMunki]
bim has quit [Remote host closed the connection]
Pupeno has joined #ruby
bim has joined #ruby
skj3gg has quit [Client Quit]
casadei has quit [Quit: Textual IRC Client: www.textualapp.com]
StoneCypher has quit [Read error: Connection reset by peer]
reinaldob has quit [Ping timeout: 244 seconds]
StoneCypher has joined #ruby
unreal_ has quit [Ping timeout: 265 seconds]
bim has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 265 seconds]
senayar has quit []
davejacobs has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
mois3x has quit [Quit: mois3x]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
MatthewsFace has joined #ruby
abuzze_ has joined #ruby
davejacobs has quit [Ping timeout: 252 seconds]
<a5i> is JRuby Ruby syntax?
<a5i> im kinda confused
<headius> jruby is just ruby on the jvm
wallerdev has quit [Quit: wallerdev]
amclain has joined #ruby
abuzze has quit [Ping timeout: 250 seconds]
<a5i> Oh Okay
thumpba__ has quit [Remote host closed the connection]
<jhass> Ruby the language has several implementations (=programs that interpret and execute it), most popular MRI (aka CRuby, aka the main one), JRuby and Rubinius
sevenseacat has joined #ruby
<a5i> JRuby seems to be the fastest
segmond has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 244 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<headius> we've worked hard to make it so
<vhlfd> ;p
esasse has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<vhlfd> I wonder if there's pyruby.
jaequery has joined #ruby
<jhass> vhlfd: topaz
<miah> there are 2 pyrubies
<a5i> LOL?
<vhlfd> Oh dear.
<headius> topaz is out there but no longer developed
<jhass> miah: what's the other one?
<miah> ah
thumpba has joined #ruby
<miah> wasnt there pyruby and topaz?
<headius> never heard of pyruby
Hijiri has quit [Ping timeout: 252 seconds]
<jhass> oh, interesting
DadoCe has joined #ruby
<ponga> Jruby+Truffle+Graal ftw
<ponga> it really is fast
<jhass> that looks... interesting
<headius> hah
<ponga> interesting
<headius> trolly mctrollerson
<jhass> yeah just noticed :D
<jhass> earns a star from me^^
zachrab has joined #ruby
GnuYawk has joined #ruby
<miah> lol
fella7s has joined #ruby
Hijiri has joined #ruby
skj3gg has joined #ruby
fella6s has quit [Ping timeout: 240 seconds]
krz has joined #ruby
<throstur> I have a ruby script that works on linux, but when I run it on windows I can't find my device (it's on wifi)... what does windows do that could be blocking it?
n80 has quit [Quit: n80]
<jhass> and that's all I can find, miah got any link?
freerobby has joined #ruby
<jhass> throstur: more details!
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<throstur> jhass: erm... ruby gem lifx-console doesn't detect a device when run on Windows 7 Ruby 2.1.5, works Arch Linux Ruby 2.2
<throstur> also this script works on linux not on windows https://github.com/ThrosturX/lifx-ruby
zorak8 has quit [Quit: Leaving]
<throstur> jhass: lifx gem found here https://github.com/LIFX/lifx-gem
skj3gg has quit [Quit: ZZZzzz…]
DadoCe has quit [Remote host closed the connection]
<a5i> Rails itself is pretty low in this round :( https://www.techempower.com/benchmarks/
Limix has quit [Quit: Limix]
DadoCe has joined #ruby
<jhass> okay, that is just a thin wrapper around lifx and pry
omosoj has quit [Ping timeout: 264 seconds]
<throstur> jhass: any idea what could block ruby lifx gem from connecting to devices?
_whitelogger has joined #ruby
deric_skibotn_ is now known as deric_skibotn
Affix has joined #ruby
leslie has quit [Ping timeout: 252 seconds]
<jhass> https://github.com/LIFX/lifx-gem/blob/master/lib/lifx/transport/udp.rb#L34 and that's where my vague ideas of what windows might support and what not end
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
<jhass> but I suspect it could be unsupported
rmoriz has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shtirlic has joined #ruby
Biohazard has joined #ruby
Biohazard is now known as Guest3892
tunaCanBruh has quit [Ping timeout: 245 seconds]
<a5i> Ermegaherd
zacstewart has quit [Remote host closed the connection]
Guest23651 has quit [Ping timeout: 252 seconds]
<jhass> a5i: btw, random benchmarks are usually useless, you can benchmark specific alternative for a specific usecase, but not general "X is better than Y"
tacotaco_ has joined #ruby
hmnhf has joined #ruby
omosoj has quit [Ping timeout: 246 seconds]
n80 has joined #ruby
<a5i> jhass ?
<a5i> not really compiling u
<shevy> I would compile jhass any minute
GnuYawk has quit [Quit: WeeChat 1.0]
<jhass> shevy: I do not compile well without package managers
GnuYawk has joined #ruby
segmond has quit [Ping timeout: 264 seconds]
<shevy> haha
omosoj has joined #ruby
jonr22 has quit [Remote host closed the connection]
<jhass> a5i: like in the json example you linked, that info is not relevant unless you know that your specific application needs fast json handling (note I'm not even saying any JSON handling at all, but whether you need fast one) and it does not say whether the fast alternative fits well into all other aspects you need
<jhass> a5i: there's nothing general we can learn from it
<a5i> what about plain text jhass ?
fryguy9 has joined #ruby
<jhass> it's only helpful when we have a specific usecase and put different factors against each other
<throstur> jhass: playing with sockets in ruby seems to work on windows, I wonder why it won't find the device
symbol_ has joined #ruby
<jhass> throstur: not saying sockets don't work, I'd worry the specific opts used are supported/have any effect or even the same effect
TTilus has quit [Ping timeout: 250 seconds]
mudtose has joined #ruby
<throstur> jhass: I don't know how to make a concrete runnable example but I tried this: http://mysticpaste.com/view/2lae1uxQzr;jsessionid=125vwnpyqd5ndvwzkwfpk0vwr?2
mudtose has quit [Client Quit]
hmnhf has quit [Quit: Konversation terminated!]
threh has joined #ruby
hmnhf has joined #ruby
<jhass> throstur: so you get beacons from your device with that?
TTilus has joined #ruby
thumpba has quit [Remote host closed the connection]
<throstur> jhass: no I just run both on this machine, I don't know how to talk to the device
<a5i> Anyone here know Voltrb ?
<throstur> I don't think the device sends beacons? how do I know if it sends beacons?
<jhass> throstur: if I followed correctly the code listens to the broadcast address
<jhass> and I wouldn't know how it would discover its IP otherwise
bruno- has joined #ruby
<jhass> ah, mmh, actually does send broadcasts (too)
<jhass> does wireshark work on windows? might be worth watching / comparing to the linux box
n80 has quit [Quit: n80]
n80 has joined #ruby
_5kg has quit [Ping timeout: 256 seconds]
<throstur> jhass: I don't have awireless card on the windows computer, it's connected via LAN
claptor has joined #ruby
<jhass> unlikely to make a difference
<jhass> this is TCP/UDP layer stuff
symbol_ has quit [Quit: WeeChat 1.1]
<jhass> difference between wireless/lan is several layers down
_5kg has joined #ruby
ParmesanCaesar has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 264 seconds]
<throstur> Wireshark seems to have a windows version, but I don't really know what I'm oloking for
tus has quit []
juanpablo_ has joined #ruby
<jhass> turn of as much network stuff on your windows box as possible and just watch it for a while
<jhass> be adventurous!
wallerdev has joined #ruby
esasse has joined #ruby
segmond has joined #ruby
<jhass> with network stuff I mean browsers, steam, messengers, stuff that uses the network
<throstur> haha crap
<throstur> I'm sshing into this weechat
deric_skibotn has quit [Ping timeout: 245 seconds]
<jhass> mmh, filtering out ssh should be fine
n80 has quit [Quit: n80]
<jhass> !ssh as filter I think
polysics has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> and actually try filtering to udp traffic
<jhass> and getting rid of dns should reduce it fairly well
juanpablo_ has quit [Ping timeout: 240 seconds]
<jhass> udp && !dns
hmnhf has quit [Ping timeout: 252 seconds]
razieliyo has quit [Ping timeout: 240 seconds]
<zachrab> having trouble parsing a date time
<zachrab> Time.parse "2012-­12-­02T00:30:08.276Z"
<jhass> zachrab: what's the spaces doing there?
<zachrab> jhass: what spaces?
Shazaum has quit [Quit: Leaving]
<jhass> >> require 'time'; Time.parse "2012-­12-­02T00:30:08.276Z"
davzie has quit [Quit: WeeChat 0.3.0]
aamador has quit [Ping timeout: 264 seconds]
<jhass> ah, you're the one with the unicode -
ParmesanCaesar has joined #ruby
nateberkopec has joined #ruby
<jhass> try .tr("-­", "-") on your input to sanitize it I'd say
<zachrab> im getting an argument out of range error
<throstur> jhass: I can only use the 'udp' filter, not !dns or !ssh
<jhass> throstur: huh? why's that?
<throstur> ah I see there's a second filter nevermind
<jhass> throstur: you can literally enter udp && !dns into the text field and press enter (twice)
<jhass> zachrab: use strptime
<shevy> zachrab can you try without the ­ character?
<throstur> jhass: I'm not sure what much of this is, there's a lot of "SSDP" thingies, and some ipv6 addresses
<zachrab> shevy: what character
<jhass> throstur: the ssdp seems to use http atop, you can filter it out with !http
<emocakes> <3 shevy
<shevy> zachrab hmm "­" I can't display it, I am on a non UTF system
StoneCypher has quit [Ping timeout: 246 seconds]
<shevy> emocakes hey
Sawbones has joined #ruby
<jhass> zachrab: you got a U+00AD SOFT HYPHEN after the -
bim has joined #ruby
<jhass> shevy: it's an invisbile character
<shevy> haha
<shevy> what are you guys doing
<shevy> coding with invisible characters
segmond has quit [Ping timeout: 252 seconds]
<throstur> jhass: I don't see any packets with source of the IP that the bulb has
<jhass> throstur: do you see packets when you run the script?
<jhass> should have destination 255.255.255.0 I think
<jhass> er, 255 for the last too
lee_ has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> shevy: it marks a position in the text where it's good for the computer to enter a linebreak
jaequery has joined #ruby
<throstur> jhass: I see a message to .255
bim has quit [Ping timeout: 264 seconds]
<jhass> shevy: with adding a - at the end of line that is
_5kg has quit [Ping timeout: 264 seconds]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
esasse has quit [Quit: Textual IRC Client: www.textualapp.com]
<throstur> jhass: does it help if you see the packet from the light bulb?
zachrab has quit [Read error: Connection reset by peer]
<jhass> shevy: so "foo\u00adbar" says display "foobar" when in the sameline, "foo-\nbar" if you have to break the word
<jhass> throstur: so looks like the script is sending it out, might be a stupid windows firewall thing that filters it out? dunno
<jhass> or that hides the reply to the broadcast
ParmesanCaesar has quit [Ping timeout: 250 seconds]
zachrab has joined #ruby
<jhass> throstur: not sure, I don't work with windows after all
justin_pdx has quit [Quit: justin_pdx]
freerobby has quit [Quit: Leaving.]
fabrice31 has joined #ruby
zachrab_ has joined #ruby
zachrab has quit [Read error: Connection reset by peer]
<throstur> jhass: I'm getting a lot of packets to/from microsoft
<throstur> jhass: any idea how to filter them?
<jhass> depends
<jhass> microsoft is no protocol
zachrab_ has quit [Remote host closed the connection]
<jhass> nor an ip nor a port
nettoweb has joined #ruby
<jhass> so what kind of packets?
<throstur> some kind of ndm-requester packets
swgillespie has joined #ruby
<jhass> a bit vague
zachrab has joined #ruby
<jhass> ndmp seems to be a valid protocol
justin_pdx has joined #ruby
zachrab has quit [Remote host closed the connection]
<throstur> jhass: what info can I give you
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> screenshot of the packet if everything else fails
<jhass> but maybe you can just filter on a common destination ip or port?
zachrab has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segmond has joined #ruby
ParmesanCaesar has joined #ruby
<jhass> udp destination port is udp.dstport, destination ip is ip.dst, you can filter out specific values with simple != 12456 stuff
joshbamboo1 has quit [Quit: Leaving]
<throstur> jhass: looks like windows machine sends packet to 1.255 but doesn't get a reply
<throstur> when I send from linux 192.168.1.255 answers
wldcordeiro has quit [Ping timeout: 256 seconds]
<jhass> yeah, so the question is whether it doesn't get an answer or it just doesn't see it (some firewall filters it out)
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zachrab has quit [Ping timeout: 246 seconds]
<jhass> or rather whether it actually leaves the machine in the first case
<throstur> jhass: windows machine sees the packet that is sent to the laptop, so it should see an identical one sent to itself -- what if firewall is blocking outgoing connection?
shadoi has quit [Quit: Leaving.]
<Rennex> anyone here knowledgeable about testing? it seems to me that rspec, test::unit, minitest, shoulda all have TERRIBLE syntax, and cucumber is just stupidly verbose. Bacon looks usable to me though. But is it stupid to use that these days? Or is there something even better?
<jhass> yeah, that's what I meant, either the outgoing broadcast is filtered or the incoming one
Sawbones has quit [Remote host closed the connection]
<jhass> throstur: did you try general "lifx found from windows" google searches btw?
<jhass> *not found
triple_b has joined #ruby
<jhass> or is there any other windows software for which it works maybe?
<jhass> in the later case comparing the sent packet would be interesting
nateberkopec has quit [Quit: Leaving...]
dfinninger has joined #ruby
Aswebb_ has joined #ruby
vozcelik has joined #ruby
oo_ has quit [Remote host closed the connection]
Sawbones has joined #ruby
<throstur> I can't get the other tools to work either
<throstur> send packets but not found
ParmesanCaesar has quit [Ping timeout: 250 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vozcelik has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> throstur: so your linux lap and your windows box are on the same network (same subnet)? If so, does the linux box see the broadcast packet generated by the windows box? if so does the windows box see the broadcast package generated by the linux box? if so does the linux box see a reply packet to the broadcast package generated by the windows box? or does the windows box see a reply packet to the broadcast
<jhass> package generated by the linux box?
<throstur> ok time to figure out how to use wireshark-cli :p
<jhass> uh, maybe not :P
Soda has quit [Remote host closed the connection]
jaequery has joined #ruby
<jhass> though you had GUI on both :)
<jhass> *thought
Aswebb_ has quit [Ping timeout: 272 seconds]
zyxelthrone has quit [Ping timeout: 272 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<throstur> I can fetch the linux one
ghr has joined #ruby
<jhass> well, GUI-less linux to GUI linux would be easy w/ ssh
zacstewart has joined #ruby
<jhass> you just ssh -X to the GUI less one and can start gui programs
segmond has quit [Ping timeout: 256 seconds]
bofh has joined #ruby
bofh has left #ruby [#ruby]
<jhass> windows makes everything harder :P
LiquidInsect has quit [Quit: leaving]
<shevy> you can play games on windows!!!
LiquidInsect has joined #ruby
LiquidInsect has quit [Client Quit]
<throstur> I don't even know what my wireshark-gtk binary is called
<jhass> shevy: I played through half life on linux. Without using wine
<jhass> just wireshark I think
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
threh has quit [Ping timeout: 246 seconds]
LiquidInsect has joined #ruby
<throstur> yeah should've guessed
<throstur> zsh didn't autocomplete :p
<jhass> rehash ^^
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
elfuego has quit [Quit: elfuego]
ghr has quit [Ping timeout: 255 seconds]
<throstur> jhass: the linux box sees the same packet as the windows box being sent from windows to router
threh has joined #ruby
<jhass> but there's no reply on either?
<throstur> I ran it three times in a row and the light bulb finally replied
<throstur> maybe it just... takes longer?
<jhass> huh
<jhass> mmh, maybe, weird though
<jhass> the lightbulb is wireless too I guess?
<throstur> yes
<jhass> maybe your router is just bad at routing broadcasts lan -> wireless
bigmac_ has quit [Ping timeout: 252 seconds]
<throstur> jhass: is there a way to check that?
<jhass> probably but I don't know
ParmesanCaesar has joined #ruby
<throstur> the destination port is different in the packets
<jhass> oh? mh
<throstur> linux tries 56700 windows tries 56721
<jhass> interesting
<throstur> it's actually connected now but sending to 57621
<throstur> maybe I'm using 56700 already
Hijiri has quit [Quit: WeeChat 1.0.1]
<jhass> mmh
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> it's still pushing all traffic over broadcast?
jen_ has quit [Quit: jen_]
<jhass> (255.255.255.255)
threh has quit [Ping timeout: 246 seconds]
<throstur> jhass: ithe windows client is only sending to 192.168.1.255
<jhass> oh, right, subnet broadcast
MatthewsFace has quit [Ping timeout: 264 seconds]
<jhass> so broadcast vs multicast? mmh might explain the difference
<jhass> also seems to suggest the broadcast sockopt is indeed having no effect on windows :)
<throstur> I think it's the port though
segmond has joined #ruby
<jhass> it's all udp still though, no?
<throstur> the reply from the light bulb is a "STUN" message
<shevy> hmm collections have .first and .last
<jhass> so unless the protocol is somehthing funky, reusing the port should be no problem
<shevy> not .second I suppose?
<jhass> STUN is a layer above I think
<jhass> click the packet to see all layers
<jhass> shevy: rails adds .second iirc
<shevy> jhass does crystal have .second?
<jhass> don't think so
segmond has quit [Max SendQ exceeded]
martinbmadsen has joined #ruby
segmond has joined #ruby
<jhass> throstur: anyway, I kind of doubt port, reusing the port on udp should be no problem unless the protocol is doing something funky, as said, and tcp connections are unique by {srcip, srcport, dstip, dstport}
Vile` has quit [Ping timeout: 264 seconds]
<throstur> jhass: but it's sending to destination port 56721 instead of 56700
Pupeno has joined #ruby
<jhass> yeah, that seems silly
<jhass> but I can't be bothered to dig further into the protocol or gem tbh :P
<shevy> why not!
<shevy> you have a lot of time!!!
<jhass> might even have to do with broadcast vs multicast, I don't know
<jhass> I think the discovery issues come from ^
<jhass> shevy: that I could spend on writing crystal instead!
fryguy9 has quit [Quit: Leaving.]
<jhass> shevy: here's tetris: https://github.com/weskinner/crystal-tetris
<shevy> it works?
adriancb_ has quit [Read error: Connection reset by peer]
<jhass> not polished yet, but yeah
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Qladstone has joined #ruby
adriancb has joined #ruby
qiffp has quit [Ping timeout: 255 seconds]
lemur has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
_5kg has joined #ruby
threh has joined #ruby
<shevy> yay
jenrzzz_ has joined #ruby
reset has joined #ruby
reset has quit [Client Quit]
<ponga> that's cute
JBreit has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<shevy> ponga still coding in crystal?
zacstewart has quit [Ping timeout: 244 seconds]
braincrash has quit [Quit: bye bye]
cjim has joined #ruby
<shevy> man
jenrzzz_ has quit [Ping timeout: 264 seconds]
<shevy> korean font is much simpler than hindi font
<ponga> shevy: kind of, yeah
<ponga> korean letter is line,circle,square
<ponga> you can even make cuty face
<ponga> ㅇㅅㅇ
<ponga> cat face
KC9YDN has quit [Quit: ZNC - http://znc.in]
mary5030 has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
KC9YDN has joined #ruby
bigmac has joined #ruby
cjim has quit [Client Quit]
<shevy> I don't see a thing :)
jtdowney has joined #ruby
<shevy> I wonder if we can have a better language
<shevy> that also is a better programming language
cjim has joined #ruby
segmond has quit [Ping timeout: 245 seconds]
<jhass> ­
<shevy> all the languages that were developed in the past, happened out of natural communication with human beings
<shevy> they aren't really efficient for a computer
<jhass>
<shevy> I don't see what you are typing there either jhass
braincrash has joined #ruby
<jhass> shevy: must be sad to be you then
<shevy> dunno
<shevy> I feel everything is very simple
<ponga> shevy: im doing similar kind
threh has quit [Ping timeout: 246 seconds]
<ponga> better natural language
<throstur> bah, I'll file a bug report, they can report it upstream to ruby if it's not their own issue
<shevy> ponga english is simpler than german :)
<ponga> uh all yorop langs look crap to me anyway
<shevy> well, the pronounciation is a bit strange
<throstur> jhass: do you think I should report a bug to ruby myself?
sevvie has quit [Ping timeout: 264 seconds]
<jhass> throstur: nope
<jhass> :P
<shevy> UK english vs. US english, like "colour" vs. "color"
<throstur> fair enough, it's bed time then and thanks for the help
<ponga> shevy: i think trunk looks more like a trunk than a boot
<ponga> but i say boot
Megtastique has quit []
starless has quit [Quit: Leaving]
^Denis has quit [Remote host closed the connection]
throstur has quit [Quit: WeeChat 1.1.1]
mistermocha has joined #ruby
omosoj has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
flip_digits has quit [Remote host closed the connection]
duncannz has joined #ruby
omosoj has joined #ruby
sivsushruth has joined #ruby
ghr has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
shmoon_ has quit [Remote host closed the connection]
zachrab has joined #ruby
joset has joined #ruby
tunaCanBruh has joined #ruby
Sawbones has quit [Remote host closed the connection]
Megtastique has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has quit [Client Quit]
Cache_Money has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
cjim has quit [Quit: (null)]
bigmac has quit [Ping timeout: 252 seconds]
segmond has joined #ruby
Channel6 has joined #ruby
ParmesanCaesar has quit [Ping timeout: 256 seconds]
zachrab has quit [Ping timeout: 245 seconds]
_5kg has quit [Ping timeout: 250 seconds]
tunaCanBruh has quit [Ping timeout: 246 seconds]
catmanbun has joined #ruby
w0rldmaker has joined #ruby
oo_ has joined #ruby
iamjarvo has joined #ruby
JDiPierro has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<ponga> shevy: do you believe that there can be one better explicit human language
iamjarvo has joined #ruby
<shevy> dunno
<ponga> that could better fit in computer era
<shevy> languages always change by usage
<shevy> but computers also change humans, see smartphones and tablets
havenwood has quit []
jonr22 has joined #ruby
adriancb has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
nevans has quit [Quit: good bye]
bruno- has joined #ruby
swgillespie has joined #ruby
pwnz0r has quit [Ping timeout: 240 seconds]
segmond has quit [Ping timeout: 246 seconds]
davedev24_ has quit []
bigmac has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
<shevy> what is a simple way to go from
<shevy> "foobar-1.0.tar.xz" to "foobar-1.0"?
<shevy> just .gsub?
juanpablo_ has joined #ruby
kyb3r_ has joined #ruby
<shevy> or is there something better
thumpba has joined #ruby
rhg135 is now known as rhg135|XX
RegulationD has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<jhass> shevy: .split on . ?
<jhass> File.basename with second ard?
<jhass> *arg
x1337807x has joined #ruby
krz has quit [Ping timeout: 250 seconds]
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
<shevy> aha
juanpablo_ has quit [Ping timeout: 245 seconds]
shadoi has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
wldcordeiro has joined #ruby
ParmesanCaesar has joined #ruby
mary5030 has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
xploshioon has joined #ruby
<ponga> => ["foobar-1", "0", "tar", "xz"]
<ponga> ;(
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livingstn has quit []
swgillespie has joined #ruby
omosoj has quit [Quit: leaving]
reinaldob has joined #ruby
segmond has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
hmnhf has joined #ruby
<shevy> ponga!
<shevy> too much java in you
reinaldob has quit [Ping timeout: 245 seconds]
bim has joined #ruby
JBreit has joined #ruby
lkba_ has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
<Qladstone> hello friends
<Qladstone> I have a question about binary search trees
<Qladstone> how does a binary search tree perform compared to a regular sorted array? In terms of binary search / insert operations
<Qladstone> I'll be implementing it in Ruby
nii236_ has joined #ruby
bim has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
segmond has quit [Ping timeout: 272 seconds]
tejasmanohar has joined #ruby
<tejasmanohar> anyone here use capybara on an arch linux box
aewffwea has quit [Ping timeout: 252 seconds]
x1337807x has quit [Ping timeout: 244 seconds]
hmnhf has quit [Ping timeout: 245 seconds]
skj3gg has joined #ruby
nii236 has quit [Ping timeout: 272 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hirzu has joined #ruby
x1337807x has joined #ruby
fabrice31 has joined #ruby
charliesome has quit [Quit: zzz]
bigmac has quit [Ping timeout: 246 seconds]
skj3gg has quit [Client Quit]
Wolland has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
martinbm1dsen has joined #ruby
sivsushruth has joined #ruby
martinbmadsen has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 246 seconds]
oki has joined #ruby
_5kg has joined #ruby
<nahtnam> I have this code in my rails mode: https://gist.github.com/nahtnam/1a622c8ebe738e20c619 when I pass something like "https://nahtnam.com", the query and fragment come up as nil. How can I make it so that query and fragment are not included if they are nil without using if statements?
JBreit has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
phutchins has joined #ruby
<nahtnam> *model
Joufflu has joined #ruby
boshhead has quit [Ping timeout: 250 seconds]
JohnBat26 has joined #ruby
<nahtnam> Oh wait
<nahtnam> sorry wrong channel. Its supposed to be on #rubyonrails
arescorpio has quit [Excess Flood]
oki has quit [Ping timeout: 244 seconds]
segmond has joined #ruby
Wolland has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
Wolland has joined #ruby
ghr has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
phutchins has quit [Ping timeout: 272 seconds]
Aswebb_ has joined #ruby
sivsushruth has quit [Ping timeout: 244 seconds]
shadoi has quit [Quit: Leaving.]
Wolland has quit [Ping timeout: 256 seconds]
hmnhf has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
Aswebb_ has quit [Ping timeout: 272 seconds]
justin_pdx has quit [Quit: justin_pdx]
Sawbones has joined #ruby
checkit has joined #ruby
vdamewood has joined #ruby
checkit has quit [Excess Flood]
checkit has joined #ruby
checkit has quit [Excess Flood]
checkit has joined #ruby
checkit has quit [Excess Flood]
hmnhf has quit [Remote host closed the connection]
checkit has joined #ruby
mesamoo has quit [Remote host closed the connection]
bigmac has joined #ruby
oo_ has quit [Remote host closed the connection]
hmnhf has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
mistermocha has joined #ruby
justin_pdx has joined #ruby
oki has joined #ruby
ParmesanCaesar has quit [Ping timeout: 264 seconds]
ParmesanCaesar has joined #ruby
bigmac has quit [Ping timeout: 256 seconds]
_5kg has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 265 seconds]
bigmac has joined #ruby
oki has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
krz has joined #ruby
Xiti` has joined #ruby
xploshioon has quit [Quit: Leaving]
red_horned_rihno has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
bigmac_ has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
red_horned_rihno has joined #ruby
Qladstone has quit [Remote host closed the connection]
red_horned_rihno has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
krz has quit [Ping timeout: 255 seconds]
Sawbones has joined #ruby
davejacobs has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
Wolland has joined #ruby
hmnhf has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland has quit [Read error: No route to host]
davejacobs has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
Wolland has joined #ruby
aewffwea has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
Waheedi has joined #ruby
_5kg has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
lxsameer has joined #ruby
Tinfoilhat_ has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Wolland has quit [Ping timeout: 255 seconds]
giuseppesolinas has joined #ruby
HashNuke has joined #ruby
<HashNuke> hey all ~!
GnuYawk has quit [Quit: WeeChat 1.0]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zachrab has quit [Ping timeout: 256 seconds]
f03lipe has quit [Ping timeout: 250 seconds]
bigmac has joined #ruby
<ParmesanCaesar> hi
<ParmesanCaesar> looking at pictures of cats
Channel6 has quit [Quit: Leaving]
Qladstone has joined #ruby
Morkel has joined #ruby
JoshGlzBrk has joined #ruby
Sawbones has quit [Remote host closed the connection]
checkit has quit [Quit: (null)]
User458764 has joined #ruby
<shevy> lol
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<shevy> let cats code
tunaCanBruh has joined #ruby
anarang has joined #ruby
Hirzu has quit [Remote host closed the connection]
red_horned_rihno has quit [Ping timeout: 245 seconds]
aerth has quit [Ping timeout: 245 seconds]
tobago has joined #ruby
Sawbones has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
aerth has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
tunaCanBruh has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
Hirzu has joined #ruby
justin_pdx has joined #ruby
f03lipe has joined #ruby
arup_r has joined #ruby
jeromelanteri has joined #ruby
dj_zubehoer has joined #ruby
<arup_r> moin
jeromelanteri_ has joined #ruby
jeromelanteri_ has quit [Client Quit]
oo_ has quit [Ping timeout: 240 seconds]
justin_pdx has quit [Client Quit]
systemd0wn_ has joined #ruby
SixiS has joined #ruby
jonr22 has joined #ruby
agent_white has joined #ruby
systemd0wn has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
omosoj has joined #ruby
HoloIRCUser2 has joined #ruby
HoloIRCUser2 has quit [Read error: Connection reset by peer]
lemur_ has joined #ruby
<omosoj> blah = "not blah"; is there a way to get the actual name of that variable (blah) and make it into a string?
lemur has quit [Ping timeout: 252 seconds]
giuseppesolinas has joined #ruby
bigmac has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
sigurding has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
red_horned_rihno has joined #ruby
oo_ has joined #ruby
aewffwea has quit []
ponga has quit [Remote host closed the connection]
mesamoo has joined #ruby
Sawbones has joined #ruby
Shidash has quit [Remote host closed the connection]
<arup_r> you must be in Ruby 2.2.0
giuseppesolinas has quit [Client Quit]
<omosoj> wow, interesting
<momomomomo> you wouldn't want to do that in production I'd bet
<arup_r> little mistake
<arup_r> one moment
aerth has quit [Ping timeout: 246 seconds]
Sawbones has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
juanpablo_ has joined #ruby
RedCrustacean has joined #ruby
Limix has joined #ruby
aerth has joined #ruby
RegulationD has joined #ruby
anaeem1 has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
MatthewsFace has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
Vile` has joined #ruby
x1337807x has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
x1337807x has quit [Max SendQ exceeded]
giuseppesolinas has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
justin_pdx has joined #ruby
x1337807x has quit [Max SendQ exceeded]
oki has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
_5kg has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Xiti` has quit [Quit: Xiti`]
x1337807x has joined #ruby
Limix has quit [Quit: Limix]
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
mistermocha has quit [Remote host closed the connection]
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
x1337807x has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
hvxgr has quit [Ping timeout: 244 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
<certainty> moin guys
justin_pdx has quit [Quit: justin_pdx]
w0rldmaker has quit [Ping timeout: 256 seconds]
<arup_r> certainty: I'm in uncertainty.. o/
<certainty> arup_r: o/
apeiros_ has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
thumpba_ has joined #ruby
_5kg has joined #ruby
Wolland has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
<omosoj> i am writing a bunch of rake tasks... what should i name the file that am storing code that's common to all the tasks? is it a concern or service or what?
<arup_r> >> "string".match(/str/); $&
<eval-in> arup_r => "str" (https://eval.in/295337)
Xiti has joined #ruby
<certainty> arup_r: what are you uncertain about?
<arup_r> $& is giving the matched string
thumpba_ has quit [Remote host closed the connection]
<arup_r> what global will give me the umatched string?
<arup_r> unmacthed **
<arup_r> I knew it exist.. but now I forgot
Xeago has joined #ruby
<certainty> omosoj: i'm not aware of a naming convention for that. i'd probably place it under lib/rake/common.rb or something
wicope has joined #ruby
<apeiros_> arup_r: $` and $'
<apeiros_> arup_r: but don't use the globals.
<arup_r> ahh yes
oki has quit [Ping timeout: 256 seconds]
<apeiros_> .match returns a MatchData object which contains them too
<certainty> i was about to say
<certainty> i try not to use the globals
<arup_r> >> "string".match(/str/); p [$‘, $`]
<certainty> are they thread local?
<omosoj> certainty, k, thanks
<arup_r> >> "string".match(/str/); [$‘, $`]
<apeiros_> certainty: afaik they're even more restricted
<certainty> apeiros_: in what way?
fabrice31 has joined #ruby
<apeiros_> stack frame
Wolland has quit [Ping timeout: 244 seconds]
<certainty> oh nice
<arup_r> this global variables now giving => [nil, ""]
<arup_r> not what I want
<apeiros_> but not sure, as I try not to use them. and it changed over time iirc.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<certainty> alright
<apeiros_> arup_r: because you're typing them wrong.
Xeago has quit [Remote host closed the connection]
<certainty> so i'm not alone in avoiding them
<apeiros_> well, the first one at least.
<apeiros_> $‘ != $'
<apeiros_> and if your font doesn't show that, you should use a better one :-p
<apeiros_> certainty: it's a good principle
<apeiros_> anyway, gotta commute, so bye :)
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
f03lipe has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
HoloIRCUser2 has joined #ruby
<arup_r> well..
OrbitalKitten has joined #ruby
<arup_r> what it should be then ?
<gr33n7007h> >> "string".match(/str/); [$', $&]
<eval-in> gr33n7007h => ["ing", "str"] (https://eval.in/295340)
<certainty> arup_r: $'
Nahra has joined #ruby
<certainty> try to copy it from here if nothing else helps :)
<arup_r> wow
<arup_r> well Rdoc is not copy past able then http://ruby-doc.org/core-2.0.0/doc/globals_rdoc.html
<arup_r> gr33n7007h: THANKS
<arup_r> thanks
_5kg has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Remote host closed the connection]
<certainty> hah, i just realized that i always completed gr33n... to green arrow instead of greentooth in my head
<certainty> arup_r: oh yeah you'r right
<gr33n7007h> lol
<certainty> that's bad
apeiros_ has quit [Ping timeout: 245 seconds]
<certainty> there is another one that wont work with c&p
<certainty> $“
<certainty> >> $"
<eval-in> certainty => ["enumerator.so", "rational.so", "complex.so", "/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/i686-linux/enc/encdb.so", "/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/i686-linux/enc/trans/transdb.s ... (https://eval.in/295341)
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Qladstone has quit [Remote host closed the connection]
bMalum has joined #ruby
aerth has quit [Ping timeout: 246 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
dkoch has quit [Quit: Page closed]
<flughafen> moin
aerth has joined #ruby
ta has joined #ruby
zacstewart has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<certainty> _o/
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
User458764 has joined #ruby
ParmesanCaesar has quit [Ping timeout: 246 seconds]
polysics has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
<arup_r> next shoot
scripore has quit [Ping timeout: 272 seconds]
<arup_r> >> %w(a b c)
<eval-in> arup_r => ["a", "b", "c"] (https://eval.in/295342)
<arup_r> perfect
zacstewart has quit [Ping timeout: 256 seconds]
<certainty> yeah that's handy
<arup_r> but how would I create ["foo bar", "biz baz"] array using %w construct ?
<arup_r> >> %w(foo bar biz baz)
<eval-in> arup_r => ["foo", "bar", "biz", "baz"] (https://eval.in/295343)
<certainty> i think you can't
<arup_r> wouldn't work
<arup_r> I should
f03lipe has joined #ruby
red_horned_rihno has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
<arup_r> >> %w(foo\ bar biz\ baz)
<eval-in> arup_r => ["foo bar", "biz baz"] (https://eval.in/295344)
<arup_r> certainty: ^^
ta has quit [Remote host closed the connection]
lolmaus has joined #ruby
<certainty> arup_r: ah good to know
<certainty> though in that case i'd just use ["foo bar", "biz baz"]
hvxgr has joined #ruby
<arup_r> humm
Aswebb_ has quit [Ping timeout: 272 seconds]
The_Phoenix has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
Takle has quit [Ping timeout: 256 seconds]
QualityAddict has quit [Ping timeout: 264 seconds]
oki has joined #ruby
QualityAddict has joined #ruby
<Fluent> >> %W(#{'foo bar'} #{'biz baz'})
<eval-in> Fluent => ["foo bar", "biz baz"] (https://eval.in/295347)
<arup_r> Guys can you give me a 1 month part time remote job in Ruby ? I need ... :(
QualityAddict has quit [Client Quit]
<arup_r> Fluent: that;s too much work :p
<Fluent> Freelancer
<flughafen> arup_r: those are handy
happyface has quit [Quit: Connection closed for inactivity]
<arup_r> means ?
<arup_r> Fluent: \ is bad.. I know :)
blindsight has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
shredding has joined #ruby
Morkel has quit [Quit: Morkel]
jenrzzz has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xploshioon has joined #ruby
n1x has joined #ruby
n1x has joined #ruby
<certainty> arup_r: sorry, we're not hiring at the moment
selu has joined #ruby
Sawbones has quit [Remote host closed the connection]
<arup_r> certainty: you are from ?
<certainty> germany
cjim has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
<arup_r> Ok... Good amount of Ruby work is there... I heard it :)
bal has joined #ruby
xploshioon has quit [Client Quit]
<arup_r> Good place
<flughafen> we're hiring ;)
ghr has quit [Ping timeout: 252 seconds]
<flughafen> oh arup_r just for 1 month...
* certainty seeks a job in clojure or haskell shop :(
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
red_horned_rihno has joined #ruby
<flughafen> wo wohnnst du?
<certainty> hamburg
<arup_r> flughafen: U are from ?
<flughafen> <- nürnberg
<certainty> the other end
<Fluent> The hell is that o.O
bruno- has joined #ruby
<flughafen> nuremberg? it's south of hamburg
<certainty> Fluent: in south germany
<flughafen> 1,5 hours nw of münchen
<Fluent> Ahhhh
<arup_r> ok
<Fluent> How do German's feel about foreign Americans?
<flughafen> Fluent: they are liked as long as you are nice. but keep in mind it's a lot different here.
<Fluent> I see. I'm trying to think of my backup country. America will not last.
<certainty> Fluent: depends on who you ask :)
<Fluent> I meant via general consensus
cjim has quit [Ping timeout: 256 seconds]
<flughafen> Fluent: are you american?
<certainty> most germans are open to people from other countries
<flughafen> I guess so, sorry ha.
<flughafen> Fluent: we're hiring ;)
<Fluent> Yes, I was born and raised in America. My ancestry is Cherokee Indian and Irish
mistermocha has joined #ruby
<certainty> wild mix
<certainty> interesting though
<Fluent> The white men killed my peoples
<certainty> the white men killed $people
<wasamasa> men killed men
<certainty> #t
<Fluent> Men killed men of specific ethics
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<Fluent> damn, wrong word
<Fluent> ethnicity lol, my brain isn't working.
warprobot has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
<Fluent> So, you German's receiving all the news about ISIS too?
* flughafen doesn't watch tv
adriancb has joined #ruby
* wasamasa doesn't watch tv either
<wasamasa> but sure, it's all over the internet
<Fluent> I don't either, but I hear about it everywhere
warprobot has quit [Remote host closed the connection]
Pupeno has joined #ruby
<certainty> of course you hear about it
xcesariox has joined #ruby
<Fluent> Yeah, my government scares me more than them. I need to go get an AR15 :D
<omosoj> i want to create a hash from 2 fields from an active record query.
fabrice31 has joined #ruby
<certainty> Fluent: your government scares many people. It certainly scares me more than most other
<flughafen> haha
<certainty> other governments that is
<arup_r> omosoj: relation.attributes.only("field_1", "field_2")
<Fluent> as_json
<arup_r> Person.where(status: 'y').attributes.only("name", "email")
<arup_r> omosoj: ^
<Fluent> :D
HoloIRCUser2 has quit [Ping timeout: 246 seconds]
<arup_r> :)
tmtwd has quit [Remote host closed the connection]
<arup_r> Fluent: If you set it as 'n'.. Those will be killed... And you wouldn't be in jail.. because those are killed by DB not by you
<arup_r> :p
<certainty> also Hash[*something.pluck(:field1,:field2)] should probably work ... idk
adriancb has quit [Ping timeout: 264 seconds]
polysics has joined #ruby
<arup_r> +1
sivsushruth has quit [Ping timeout: 265 seconds]
<omosoj> you guys are so sharp
Wolland has joined #ruby
<omosoj> but i'm getting a NoMethodError, for attributes
segmond has joined #ruby
sivsushruth has joined #ruby
<arup_r> Like Knife?
<certainty> then your $thing doesn't respond to attributes
<certainty> <- captain obvious
<arup_r> Person.where(status: 'y').first.attributes.only("name", "email")
<arup_r> omosoj: ^^
<omosoj> it's an active record relation
<arup_r> I know
<omosoj> arup_r, now, NoMethoderror for only
<certainty> omosoj: #attributes is defined on instances of descendents of ActiveRecord::Base
<Fluent> It's a deprecated method anyways <3
<certainty> not on relations
fabrice31 has quit [Remote host closed the connection]
* arup_r CDing into his Rails app
fabrice31 has joined #ruby
<omosoj> yeah arup_r's recommendation hinted at that
<omosoj> no clue how you guys are so quick and good at this. i'm feeling a little bad
<certainty> omosoj: something.each_with_object({}){ |r,h| h[r.field1] = r.field2 } ... still i'd probably pluck it
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31_ has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
<omosoj> i think i reached to stage where i have a good grasp of general programming stuff like thinking in pseudocode and then translating it to ruby, by i need to work on the deeper parts of the lagnauge
<arup_r> omosoj: your rails version ?
<omosoj> mine? it's a sinatra app, ruby 2.1.7
djbkd has quit [Quit: My people need me...]
bigkevmcd has joined #ruby
_5kg has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<shevy> arup_r what are you creating with rails?
<arup_r> e commerce site.. :p
zachrab has joined #ruby
dumdedum has joined #ruby
<arup_r> omosoj: here is the correct syntax Spree::Product.where(description: "").first.attributes.slice("name", "style_code")
<arup_r> I messed up with as_json methods :only option,, sorry
apeiros_ has joined #ruby
Jetchisel has joined #ruby
<certainty> #only used to exist. as well as #except .. both added by activesupport. idk if that's the case anymore
jimms has joined #ruby
<arup_r> but is is still alive with #as_json method
<certainty> hmm maybe #only didn't exist and my memory is failing
<arup_r> shevy: I didn't see any cats today
<arup_r> certainty: Its ok..
<arup_r> I need money madly.. so got mad about work
<shevy> hehe
<arup_r> shevy: Your cat is married ?
andikr has joined #ruby
<omosoj> arup_r, thanks. you are a ruby wizard
<arup_r> what does that mean?
zachrab has quit [Ping timeout: 255 seconds]
<shevy> arup_r nah
hs366 has joined #ruby
Macaveli has joined #ruby
<arup_r> BTW, I got inspired by shevy: to become a wizard omosoj: trust me
Deele has joined #ruby
last_staff has joined #ruby
bMalum has quit [Quit: bMalum]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> shevy: She is beautiful..
krz has joined #ruby
codecop has joined #ruby
<arup_r> I never saw such a cat
mostlybadfly has quit [Quit: Connection closed for inactivity]
<certainty> hah it's warm on there
bMalum has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
<arup_r> You must die after seeing this -- https://www.facebook.com/video.php?v=798756473507265 :p
Aswebb_ has joined #ruby
<arup_r> by laughing ofcourse
<arup_r> hehehe
Macaveli has quit [Ping timeout: 250 seconds]
<shevy> arup_r fat-ass dog
<arup_r> humm
<arup_r> he didn't know that
<omosoj> arup_r, are you serious? lol howso?
Deele has quit [Ping timeout: 256 seconds]
<arup_r> so so so so so
pwnz0r has joined #ruby
ascarter has joined #ruby
Aswebb_ has quit [Client Quit]
vdamewood has joined #ruby
<arup_r> shevy: How was your breakfast with spam ?
ascarter has quit [Max SendQ exceeded]
<shevy> arup_r yeah, animals are kinda like "let's do this and do it quickly"
razieliyo has joined #ruby
<shevy> not many can really think, like when monkeys panic and become dumber
<arup_r> hehehe
<shevy> I had some bread and cheese actually
<arup_r> ok
ascarter has joined #ruby
tunaCanBruh has joined #ruby
bMalum has quit [Quit: bMalum]
pwnz0r has quit [Ping timeout: 265 seconds]
SOLDIERz has joined #ruby
Xiti has quit [Quit: Xiti]
User458764 has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 256 seconds]
_5kg has quit [Ping timeout: 264 seconds]
<arup_r> Anybody would like to give me http://clean-ruby.com/ .. I want to read.. No $ I have
<arup_r> :(
Xiti has joined #ruby
agent_white has quit [Quit: goodnight!]
_5kg has joined #ruby
shredding has quit [Ping timeout: 252 seconds]
ParmesanCaesar has joined #ruby
<sevenseacat> begging for a job, begging for a book...? :/
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Guest99097 has joined #ruby
JohnBat26 has joined #ruby
Hirzu_ has joined #ruby
<arup_r> _begging_ ..yes ... :/
<arup_r> sevenseacat: humm
<Fluent> For a book or a job?
omosoj has quit [Ping timeout: 246 seconds]
jonr22 has joined #ruby
amundj has joined #ruby
dapz has joined #ruby
mkaesz has joined #ruby
Mia has quit [Read error: Connection reset by peer]
terlar has joined #ruby
<arup_r> Fluent: nothing.. :'(
Bounga has joined #ruby
omosoj has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Hirzu has quit [Ping timeout: 245 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
sivsushruth has quit [Ping timeout: 265 seconds]
Deele has joined #ruby
sivsushruth has joined #ruby
jenrzzz has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
sinkensa_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Read error: Connection reset by peer]
_5kg has quit [Ping timeout: 256 seconds]
dj_zubehoer has joined #ruby
lsmola has joined #ruby
einarj has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
strixd has joined #ruby
juanpablo_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
sinkensabe has joined #ruby
danman has quit [Quit: danman]
dj_zubeh_ has joined #ruby
ta has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Takle has joined #ruby
ghr has joined #ruby
<hs366> what optionparser do in simple words
<sevenseacat> parses options.
sinkensabe has joined #ruby
<hs366> ok...
joonty has quit [Quit: joonty]
ki0 has joined #ruby
dj_zubehoer has quit [Ping timeout: 245 seconds]
<arup_r> lol
arup_r has quit [Remote host closed the connection]
lemur_ has quit [Remote host closed the connection]
<hs366> :D
juanpablo_ has quit [Ping timeout: 264 seconds]
<hs366> can you explain a little bit more ?
<apeiros_> surprise!
RegulationD has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
<apeiros_> hs366: when you use a command line app, e.g. `gem install -v 3.2 rails`, then everything after `gem` is an option
<apeiros_> and optionparser parses those
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
<hs366> i usually read from ruby-doc but this "optionparser" i dont' get it yeat after 2 times reading
<apeiros_> though, it actually only parses the option flags, those which start with - and --
ghr has quit [Ping timeout: 255 seconds]
run_kmc has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
run_kmc has quit [Client Quit]
<hs366> i c
Takle has quit [Ping timeout: 264 seconds]
evangeline_ has joined #ruby
Asher has joined #ruby
CustosLimen has quit [Ping timeout: 265 seconds]
danjordan has joined #ruby
duncan_ has joined #ruby
duncannz has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
duncan_ is now known as duncannz
SOLDIERz has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
Kharma has quit [Ping timeout: 252 seconds]
SOLDIERz has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
Kharma has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
ItSANgo has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
5EXAAM0AM has joined #ruby
Beoran_ has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bim has joined #ruby
Beoran__ has quit [Ping timeout: 264 seconds]
odigity has quit [Ping timeout: 265 seconds]
davejacobs has joined #ruby
dapz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
Juanchito has joined #ruby
amclain has quit [Quit: Leaving]
bim has quit [Ping timeout: 264 seconds]
despai has joined #ruby
davejacobs has quit [Ping timeout: 255 seconds]
Guest99097 has quit [Quit: Leaving]
msgodf has joined #ruby
senayar has joined #ruby
sinkensabe has joined #ruby
neanderslob has quit [Remote host closed the connection]
DaniG2k has joined #ruby
neanderslob has joined #ruby
arup_r has joined #ruby
odigity has joined #ruby
ghostpl_ has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
elfuego has joined #ruby
zacstewart has joined #ruby
CustosLimen has joined #ruby
hanmac1 has joined #ruby
neanderslob has joined #ruby
gluten_hell has joined #ruby
rmoriz has quit [Quit: ZNC - http://znc.in]
livathinos has joined #ruby
joonty has joined #ruby
xcesariox has quit [Remote host closed the connection]
_5kg has joined #ruby
multi_io_ has joined #ruby
mistermocha has joined #ruby
pandaant has joined #ruby
ghr has joined #ruby
senayar has quit [Remote host closed the connection]
multi_io has quit [Ping timeout: 245 seconds]
aswen has joined #ruby
thejoecarroll has quit [Quit: ZNC - http://znc.in]
senayar has joined #ruby
thejoecarroll has joined #ruby
Takle has joined #ruby
CustosLimen has quit [Ping timeout: 246 seconds]
ereslibre_laptop has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
kalusn has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
martinbm1dsen has quit [Ping timeout: 245 seconds]
joonty has joined #ruby
iamdoo2 has joined #ruby
jack_rabbit has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
CustosLimen has joined #ruby
bruno- has joined #ruby
ParmesanCaesar has quit [Ping timeout: 255 seconds]
enterprisedc has quit [Quit: enterprisedc]
avril14th has joined #ruby
User458764 has joined #ruby
Dolphi has joined #ruby
CustosLimen has quit [Ping timeout: 252 seconds]
omosoj has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
omosoj has joined #ruby
<Dolphi> I am creating my first text adventure in Ruby. Is there a way to control PowerShell with Ruby script? I want to take input from my user and if they press "1" it will CLEAR PowerShell before continuing the rest of the program.
jimms_ has joined #ruby
jimms_ has quit [Client Quit]
mskaesz has joined #ruby
ereslibre has joined #ruby
mkaesz has quit [Read error: No route to host]
jimms has quit [Read error: Connection reset by peer]
jimms_ has joined #ruby
enterprisedc has joined #ruby
<Dolphi> How would I go about telling PowerShell to execute "CLEAR" with Ruby code?
<tobiasvl> powershell?
<tobiasvl> so clear the terminal, you mean
jack_rabbit has quit [Ping timeout: 245 seconds]
marr has joined #ruby
<tobiasvl> is the command just called clear? system('clear') maybe? I barely know what PowerShell is :P
SouL has joined #ruby
ndrei has quit [Quit: Lost terminal]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<sevenseacat> powershell?
<toretore> powershell?
Hobogrammer has quit [Ping timeout: 264 seconds]
<Dolphi> Yes, clear the terminal
ndrei has joined #ruby
ponga has joined #ruby
<Dolphi> I will give it a try tobiasvl. Will report back with results.
enterprisedc has quit [Remote host closed the connection]
blackmesa has joined #ruby
serivich has joined #ruby
enterprisedc has joined #ruby
Qladstone has joined #ruby
omosoj has quit [Quit: leaving]
<Dolphi> Nothing happened. Time to look up some documentation. :P
rdark has joined #ruby
jimms_ has quit [Ping timeout: 264 seconds]
arup_r_ has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Ping timeout: 245 seconds]
polysics has joined #ruby
piotrj has joined #ruby
rrrutr has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
enterprisedc has quit [Quit: enterprisedc]
sivsushruth has joined #ruby
dj_zubeh_ has quit [Remote host closed the connection]
zachrab has joined #ruby
Guest78583 has joined #ruby
nettoweb has joined #ruby
<Dolphi> I got the desired results by using:
<Dolphi> puts "\e[H\e[2J"
Takle has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
FooMunki_ has joined #ruby
nii236_ has quit [Remote host closed the connection]
Takle has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
zachrab has quit [Ping timeout: 244 seconds]
alex88 has joined #ruby
kyb3r_ has quit [Quit: Leaving]
SouL has quit [Ping timeout: 256 seconds]
piotrj has quit [Remote host closed the connection]
<gr33n7007h> Dolphi: puts "\ec" shorter ;)
w0rldmaker has joined #ruby
godd2 has quit [Ping timeout: 244 seconds]
pontiki has joined #ruby
<Dolphi> gr33n7007h: Would puts "%x{clear}" work as well?
<gr33n7007h> Dolphi: yep, without the quotes
<Dolphi> I've only been messing with Ruby for a few days. This is my first programming language.
piotrj has joined #ruby
<gr33n7007h> Dolphi: cool :)
<Dolphi> gr33n7007h: Thanks for the help!
<gr33n7007h> np
lkba_ has quit [Ping timeout: 265 seconds]
djellemah has joined #ruby
evangeline__ has joined #ruby
Morkel has joined #ruby
tunaCanBruh has joined #ruby
roshanavand has joined #ruby
evangeline_ has quit [Ping timeout: 265 seconds]
w0rldmaker has quit [Ping timeout: 245 seconds]
Vile` has quit [Ping timeout: 245 seconds]
duncannz has quit [Ping timeout: 264 seconds]
sevenseacat has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
Vile` has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
<Dolphi> gr33n7007h: puts "\ec" isn't working for me, neither is puts %x{clear}. I am running Windows.
Guest123 has joined #ruby
<Dolphi> It would seem that puts "e[H\e[2J" is the only working solution.
krz has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
DaniG2k_ has joined #ruby
DaniG2k_ has quit [Client Quit]
<toretore> you should mention you're running windows as the first thing you do
<toretore> nobody expects or assumes that
sinkensabe has joined #ruby
hanmac1 has quit [Ping timeout: 240 seconds]
red_horned_rihno has quit [Ping timeout: 256 seconds]
davzie has joined #ruby
DaniG2k has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
<Dolphi> toretore: I'm sorry for not being specific enough. Do you have another solution to my question?
<toretore> i don't know anything about windows
<gr33n7007h> Dolphi: well, in powershell the clear command is cls
jonr22 has quit [Ping timeout: 265 seconds]
<Dolphi> gr33n7007h: It is? I just type "clear" and press enter to clear it.
<gr33n7007h> Dolphi: what are you running your ruby script from powershell?
<Dolphi> Pardon my newbie-ness :P
polysics has joined #ruby
<Dolphi> Yes
Qladstone has quit [Remote host closed the connection]
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dolphi> Is that bad?
hanmac1 has joined #ruby
<gr33n7007h> do %x(cls) to get the ansi code :)
Takle has quit [Remote host closed the connection]
<gr33n7007h> "\ec" is linux specific
MatthewsFace has quit [Ping timeout: 255 seconds]
<arup_r_> Guys give me some light.. People talk about domain driven development.. domain objects... etc How to identify which objects are domain ?
<arup_r_> Brief me about it
<arup_r_> I'm n00b
<arup_r_> What's the principals and thoughts are behind of it ?
<arup_r_> What are the**
juanpablo_ has joined #ruby
mostlybadfly has joined #ruby
ponga has joined #ruby
RegulationD has joined #ruby
<toretore> domain objects are the things that are important, the stuff you work with
krz has joined #ruby
<toretore> for a bank it's Account, Transfer, AccountHolder, etc
<toretore> String and Integer are also important to your app, but they're not domain objects
codecop has quit [Remote host closed the connection]
<toretore> if you mention the name of a domain object to a non-developer, they'll recognize it
<gr33n7007h> Yep, looks like cls and clear are just aliases to Clear-Host so yeah within powershell "e[H\e[2J" would work
<arup_r_> Well toretore: Can I say the objects which I can map to database tables.. they are domain objects..
<arup_r_> ?
yfeldblum has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
<toretore> arup_r_: don't worry too much about it
<toretore> it's not important
red_horned_rihno has joined #ruby
<arup_r_> ok
RegulationD has quit [Ping timeout: 264 seconds]
<toretore> in the end, everything is bullshit and nothing really matters
<arup_r_> I have too much understanding the issue about OOP ways
<arup_r_> ok
User458764 has quit [Ping timeout: 250 seconds]
<arup_r_> I see toretore
DLSteve has joined #ruby
leafybasil has quit [Remote host closed the connection]
<arup_r_> toretore: I read about private methods : make them private if it is unstable, public those are stable.. Well.. How about the protecteds then ? No I am not asking how it works.. I', saying how should I think about them.. Best way to think about them and use it properly
yfeldblu_ has joined #ruby
WhereIsMySpoon has quit [Disconnected by services]
lxsameer has joined #ruby
<arup_r_> I need to improve my OO understanding.. Otherwise I wouldn't get a good quality jobs.. My code is ugly.. although they are working too.. So I have to work on this ugly part.
WhereIsMySpoon_ has joined #ruby
User458764 has joined #ruby
DLSteve has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
workmad3 has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
gizmore has joined #ruby
Soda has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
swistak35 has joined #ruby
oo_ has quit [Remote host closed the connection]
ujjain has joined #ruby
oo_ has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
wallerdev has quit [Quit: wallerdev]
Grantlyk has joined #ruby
oo_ has quit [Remote host closed the connection]
swistak35 has quit [Quit: ZNC - http://znc.in]
DLSteve has joined #ruby
swistak35 has joined #ruby
lxsameer has left #ruby ["Leaving"]
despai has joined #ruby
fgo has joined #ruby
oo_ has joined #ruby
multi_io_ has quit [Quit: leaving]
jimms_ has joined #ruby
jimms has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
mskaesz has quit [Ping timeout: 246 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
gluten_hell has quit [Ping timeout: 246 seconds]
roshanavand has quit [Ping timeout: 244 seconds]
zacstewart has joined #ruby
sigurding has quit [Quit: sigurding]
Guest123 has joined #ruby
jimms_ has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Takle has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
rodfersou has joined #ruby
oo_ has joined #ruby
sigurding has joined #ruby
pontiki has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 246 seconds]
senayar_ has joined #ruby
roshanavand has joined #ruby
senayar__ has joined #ruby
tvw has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
roshanavand has quit [Ping timeout: 265 seconds]
senayar_ has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
gluten_hell has joined #ruby
sinkensabe has joined #ruby
SouL has joined #ruby
lkba has joined #ruby
nfk has joined #ruby
rdark has quit [Quit: leaving]
catmanbun has quit [Read error: Connection reset by peer]
SOLDIERz has quit [Quit: Be back later ...]
<Dolphi> Should defined variables be stored in a seperate file and called from said seperate file? Wouldn't that make code look much more readable?
<toretore> no
<Dolphi> I'm building a small text adventure and I already feel as if I could make it look nicer if I seperated all of the automated parts.
iamdoo2 has quit [Remote host closed the connection]
<Dolphi> toretore: Would it slow down my program?
<toretore> no
<Dolphi> Thank you for the help.
<toretore> but it sounds like you're trying to write ruby like you would the language you're more familiar with
<Dolphi> Java
<toretore> in general you don't have this "problem" in ruby
withnale__ has joined #ruby
bim has joined #ruby
<Dolphi> I first started off with Java, so that may be why.
<toretore> if you write a program that requires a lot of initialization, then it will go into the excutable file, and everything else is required from there
mkaesz has joined #ruby
<Dolphi> Does this look good so far?
<toretore> it's not very ruby-like
<Dolphi> I mean, it works at least, but I always wonder if I should be writing it more cleanly.
<toretore> if you're just writing to learn it's fine
blackmesa has quit [Ping timeout: 264 seconds]
<Dolphi> I'm just learning right now. This is my first real program in Ruby.
<Dolphi> I've only made a text adventure in Java, and that is as far as my coding experience goes.
<toretore> if i were to write it, i would write separate classes in separate files
<toretore> don't worry too much about it, just have fun writing it
<toretore> then your next program can be "cleaner"
<toretore> don't define methods inside other methods though
bim has quit [Ping timeout: 250 seconds]
<Dolphi> Thank you again for your help toretore. I should probably get ready for work haha. Enjoy your day everybody!
<Dolphi> Did I define a method inside of another?
<toretore> def start_game()
<toretore> def clear_console
gfawcettpq has joined #ruby
<Dolphi> Ah...Where should they be defined?
<toretore> you should put all the method definitions at the top
<Dolphi> The very top of the program?
<toretore> in this case, yes
<Dolphi> Will do
User458764 has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Hirzu_> Well, defining a function inside function is fine IMHO, if you want to have local function not available anywhere else. Doesnt that function then also get handle to the context of the function is is created in?
Soda has quit [Remote host closed the connection]
<toretore> that's not how it works in ruby
<Hirzu_> oh
<toretore> it will accept it, but it's the same as defining them side by side
<Hirzu_> havent really tried it myself, quite rare case when it would be even usefull.
<toretore> methods in ruby aren't functions; they belong to a class and that's it
evangeline__ has quit [Remote host closed the connection]
<toretore> they can't exist outside the context of a class
<toretore> the instance of that class is the scope
paradoja has joined #ruby
evangeline__ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
senayar__ has quit [Remote host closed the connection]
senayar has joined #ruby
<Hirzu_> so, module = class ?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<toretore> no, a module can't be instantiated
serivich has joined #ruby
<toretore> you can't call a method defined in a module
<apeiros_> Hirzu_: other way round: Class < Module
<Dolphi> toretore: If you wouldn't mind, could you edit my gist? I want to see how you would define the things. I don't want you to make new files and classes
<Dolphi> I tried to do it and broke my program lol
<apeiros_> there's only instance methods in ruby. and the only container for instance methods is Module, and by inheritance Class
<toretore> Dolphi: also, don't use tabs, use 2 spaces
<apeiros_> (almost) every object has a singleton_class, which is the mechanism for things like class methods. the rest follows from those facts.
chinmay_dd has joined #ruby
kaiZen- has joined #ruby
<Dolphi> toretore: Alright. Can you help me out please? I want to get this fixed before I head to work
zachrab has joined #ruby
wpp has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
ghostbox has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
TheRinger has quit [Quit: Konversation terminated!]
claw_ has quit [Quit: Konversation terminated!]
claw_ has joined #ruby
doodlehaus has joined #ruby
robustus is now known as robustus|Off
diegoviola has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 256 seconds]
doodlehaus has quit [Remote host closed the connection]
Wolland has quit []
davidhq has joined #ruby
zacstewart has joined #ruby
oo_ has joined #ruby
plashchynski has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
tunaCanBruh has joined #ruby
drawingthesun has joined #ruby
joonty has quit [Quit: joonty]
drawingthesun has quit [Read error: Connection reset by peer]
scripore has joined #ruby
gr33n7007h has joined #ruby
arup_r has joined #ruby
Musashi007 has joined #ruby
gr33n7007h has quit [Client Quit]
Musashi007 has quit [Client Quit]
gr33n7007h has joined #ruby
rmoriz has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
scripore has quit [Client Quit]
doodlehaus has joined #ruby
Grantlyk has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 246 seconds]
LekeFly has joined #ruby
polysics has joined #ruby
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
a5i has joined #ruby
ldnunes has joined #ruby
startupality has joined #ruby
jonr22 has joined #ruby
_Andres has joined #ruby
sigurding has quit [Quit: sigurding]
Qladstone has joined #ruby
isxek has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
elfuego has quit [Quit: elfuego]
wicope has quit [Ping timeout: 255 seconds]
Pumukel has joined #ruby
wicope has joined #ruby
ghostbox has quit [Remote host closed the connection]
otisZart has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
ghostbox has joined #ruby
SOLDIERz has joined #ruby
oo_ has joined #ruby
adamholt has joined #ruby
juanpablo_ has joined #ruby
Dolphi has quit [Ping timeout: 252 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
sivsushruth has joined #ruby
oo_ has quit [Remote host closed the connection]
gheegh has joined #ruby
joset has quit [Read error: Connection reset by peer]
plashchynski has quit [Quit: plashchynski]
charliesome has quit [Quit: zzz]
<avril14th> apeiros_: which objects have no Singleton class?
<apeiros_> immediates and numerics (not sure whether all)
<avril14th> immediates?
juanpablo_ has quit [Ping timeout: 246 seconds]
<apeiros_> immediates are: nil, true, false, fixnum, symbol
<avril14th> ok
* avril14th learnt something
<certainty> http://arxiv.org/abs/1503.00503 interesting read, has just been linked over in #chicken
RegulationD has quit [Ping timeout: 244 seconds]
dj_zubehoer has joined #ruby
plashchynski has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
bruno- has joined #ruby
mkaesz has quit [Ping timeout: 272 seconds]
bruno- is now known as Guest24231
oo_ has joined #ruby
iamdoo2 has joined #ruby
scripore has joined #ruby
charliesome has joined #ruby
despai has joined #ruby
oo_ has quit [Remote host closed the connection]
User458764 has joined #ruby
ParmesanCaesar has joined #ruby
SouL has quit [Ping timeout: 272 seconds]
red_horned_rihno has quit [Ping timeout: 264 seconds]
danjordan has quit [Quit: danjordan]
oo_ has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
davejacobs has joined #ruby
<Mon_Ouie> nil, true and false are sort of weird:
<Mon_Ouie> >> nil.singleton_class == nil.class
<eval-in> Mon_Ouie => true (https://eval.in/295431)
sigurding has joined #ruby
phutchins has joined #ruby
ParmesanCaesar has quit [Ping timeout: 256 seconds]
<certainty> doesn't that make sense? i mean there is only ever one possible instance in those classes so both the singleton class and the class are essentially the same.
Qladstone has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
despai has quit [Quit: This computer has gone to sleep]
senayar has joined #ruby
davejacobs has quit [Ping timeout: 264 seconds]
rce has joined #ruby
oo_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
mkaesz has joined #ruby
<hanmac1> apeiros_ bignum also doesnt want to have a singleton_class
<Mon_Ouie> Yes, it sort of does, but I still find it odd that they're the only objects for which singleton_class returns just the same as class, as opposed to returning a subclass thereof
despai has joined #ruby
<Mon_Ouie> (and to list all exceptions, floats don't allow it either since some version of Ruby — 2.0 I think)
plashchynski has quit [Quit: plashchynski]
scripore has quit [Quit: This computer has gone to sleep]
unshadow has joined #ruby
oo_ has joined #ruby
<hanmac1> Mon_Ouie: i think its about flonum ... which only works with 64bit
<unshadow> My first gem: https://github.com/bararchy/safe-t-rest , what do you guys think ?
<hanmac1> >> (1.2).singleton_class
<eval-in> hanmac1 => can't define singleton (TypeError) ... (https://eval.in/295432)
plashchynski has joined #ruby
<hanmac1> hm ok
doodlehaus has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 250 seconds]
danjordan has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
reinaldob has joined #ruby
<Mon_Ouie> That might be why it changed, I thought it was just to make it so you can't do it with any numerical types since it would behave oddly for integers anyway
red_horned_rihno has joined #ruby
pwnz0r has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
despai has joined #ruby
samfisher has joined #ruby
<avril14th> hanmac1: missing a dot? :)
decoponio has joined #ruby
<samfisher> how can I access browser data (history, form entries) with ruby?
Guest123 has joined #ruby
<wasamasa> firefox saves history in a sqlite3 database
oo_ has quit [Remote host closed the connection]
<wasamasa> and other data in a json file
Zai00 has joined #ruby
<wasamasa> both are present in a profile saved in the user's directory
pwnz0r has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
lkba has quit [Read error: Connection reset by peer]
yeticry has quit [Quit: leaving]
<arup_r> wasamasa: So we can connect to the FireFox Db and query and get whatever data we want
<arup_r> ?
<apeiros_> hanmac1: yes, I said "numerics"
<apeiros_> floats afaik neither
<apeiros_> don't know about complex
<wasamasa> arup_r: sure
<wasamasa> arup_r: how do you think firefox knows the browser history in a session of a certain profile :P
<arup_r> wasamasa: cool
<wasamasa> arup_r: the json data stores state such as the tab history
<arup_r> humm.. I never thought about this
<wasamasa> arup_r: and probably much more
<wasamasa> arup_r: there's plenty stuff out there using sqlite3 which is pretty cool
<arup_r> today I did for you
<wasamasa> arup_r: I've once written a script that extracts a skype conversation log that way
marr has quit [Ping timeout: 265 seconds]
<wasamasa> arup_r: the problem is just figuring out which field means what
freerobby has joined #ruby
<arup_r> So Skype also stores then in Sqllite DB?
<wasamasa> yes
<wasamasa> there's also embedded devices doing it
<arup_r> Ahh!.. Local DB?
<wasamasa> like my ebook reader
despai has quit [Quit: This computer has gone to sleep]
<wasamasa> it stores the last books read there
unshadow has quit [Quit: leaving]
<wasamasa> yes, sqlite3 is a single-file/-user database
oo_ has joined #ruby
<wasamasa> and is excellent for embedding
<arup_r> I thought those are stored in their cloud hosted DB
<arup_r> I see
<workmad3> arup_r: sqlite is a good choice for an embedded DB that acts as a local cache for data
Millsdev has joined #ruby
<gr33n7007h> wasamasa: same for google-chrome?
<wasamasa> gr33n7007h: no idea, but very likely
<jhass> apeiros_: Ruby 2.2.1 ;)
<wasamasa> arup_r: nothing stops the application from mirroring the local cache to something remote
<wasamasa> arup_r: it's just important to have a local cache first
* gr33n7007h is off to investigate
<wasamasa> gr33n7007h: great, report back once you've found out
<arup_r> wasamasa: you opened my eyes today
cpt_yossarian has quit [Quit: And then he took off.]
<wasamasa> arup_r: you're welcome
Takle has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
Pupeno has quit [Quit: Leaving...]
<apeiros_> jhass: thx
Qladstone has joined #ruby
mistermocha has joined #ruby
marr has joined #ruby
strixd has quit [Quit: 500]
krz has quit [Quit: WeeChat 1.0.1]
sivsushruth has quit [Read error: Connection reset by peer]
thiagovsk has joined #ruby
sivsushruth has joined #ruby
<arup_r> jhass: API is not ready in http://ruby-doc.org/
<arup_r> still 2.2.0
mistermocha has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 240 seconds]
<jhass> yeah, they always take a while
claptor has quit [Quit: this channel is bakas]
<jhass> but there should be no API changes anyway
armyriad has joined #ruby
<arup_r> So API is needed
samfisher has quit [Quit: exit error code 434]
<arup_r> jhass: ^
Hirzu_ has quit [Ping timeout: 245 seconds]
polysics has quit [Remote host closed the connection]
slawrence00 has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
<gr33n7007h> seems like history, cookies, etc are sqlite3 :)
strixd has joined #ruby
shum has joined #ruby
<arup_r> hehehe
<arup_r> gr33n7007h: gave the final sign-offf
bim has joined #ruby
* arup_r heading to document these now officially..
danjordan has quit [Quit: danjordan]
gheegh has quit [Ping timeout: 252 seconds]
reinaldo_ has joined #ruby
Shazaum has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
tvon has quit [Quit: leaving]
lele has quit [Ping timeout: 265 seconds]
B1n4r10 has quit [Client Quit]
bim has quit [Ping timeout: 256 seconds]
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
d10n-work has joined #ruby
scripore has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
polysics has joined #ruby
sevenseacat has joined #ruby
Vile` has joined #ruby
joonty has joined #ruby
spyderman4g63 has joined #ruby
jtdowney has joined #ruby
zachrab has joined #ruby
spyderma_ has joined #ruby
arup_r has quit []
elfuego has joined #ruby
spyderman4g63 has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 245 seconds]
danjordan has joined #ruby
anarang has quit [Quit: Leaving]
iamdoo2 has quit [Remote host closed the connection]
anarang has joined #ruby
brb3 has joined #ruby
isxek has quit [Quit: ChatZilla 0.9.91-rdmsoft [XULRunner 32.0.3/20140923175406]]
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kaiZen- has joined #ruby
Takle has joined #ruby
zacstewart has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
User458764 has joined #ruby
serivich has quit [Ping timeout: 252 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
doodlehaus has quit [Remote host closed the connection]
serivich has joined #ruby
robustus|Off is now known as robustus
aclearman037 has joined #ruby
rdark has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 264 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tunaCanBruh has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
SouL has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 244 seconds]
lanemeyer has joined #ruby
User458764 has joined #ruby
jonr22 has joined #ruby
sivsushruth has joined #ruby
nettoweb_ has joined #ruby
marr has joined #ruby
RyanCharles has joined #ruby
RyanCharles has quit [Client Quit]
startupality has quit [Quit: startupality]
startupality has joined #ruby
zacstewart has joined #ruby
nettoweb has quit [Ping timeout: 255 seconds]
startupality has quit [Client Quit]
aryaching has joined #ruby
triple_b has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
tus has joined #ruby
triple_b_ has joined #ruby
dstarh has joined #ruby
sanguisdex has joined #ruby
timonv has joined #ruby
paulfm has joined #ruby
juanpablo_ has joined #ruby
triple_b has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
mbeasley has quit [Quit: WeeChat 0.4.2]
sivsushruth has quit [Ping timeout: 250 seconds]
mbeasley has joined #ruby
Dmr has joined #ruby
freerobby has quit [Quit: Leaving.]
RegulationD has joined #ruby
tus has quit [Read error: Connection reset by peer]
Dmr has quit [Client Quit]
otisZart has joined #ruby
jenrzzz has joined #ruby
tus has joined #ruby
sinkensabe has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
sivsushruth has joined #ruby
pandaant has quit [Quit: Lost terminal]
pandaant has joined #ruby
juanpablo_ has quit [Ping timeout: 264 seconds]
n80 has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
iamjarvo has joined #ruby
wpp has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
anaeem1 has quit [Remote host closed the connection]
wpp has joined #ruby
quazimodo has joined #ruby
anaeem1_ has joined #ruby
wpp has quit [Remote host closed the connection]
sankaber has joined #ruby
Hirzu has joined #ruby
sivsushruth has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Client Quit]
robustus is now known as robustus|Off
Hirzu_ has joined #ruby
last_staff has quit [Quit: last_staff]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has joined #ruby
sinkensabe has joined #ruby
anaeem1_ has quit [Ping timeout: 264 seconds]
Hirzu has quit [Ping timeout: 250 seconds]
philwantsfish1 is now known as philwantsfish
jtdowney has joined #ruby
nisstyre has quit [Remote host closed the connection]
paulfm has quit [Quit: Goodbye]
sgambino has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
enebo has joined #ruby
livingstn has joined #ruby
davejacobs has joined #ruby
rdark has joined #ruby
rdark has quit [Client Quit]
yfeldblu_ has quit [Ping timeout: 265 seconds]
niko has quit [Ping timeout: 615 seconds]
dj_zubehoer has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
zacstewart has quit [Remote host closed the connection]
scripore has joined #ruby
qiffp has joined #ruby
phale has joined #ruby
<phale> how do i convert a character to hex
<phale> i.e
<phale> " "
<phale> 0x20
Takle has quit [Remote host closed the connection]
codecop has joined #ruby
davejacobs has quit [Ping timeout: 264 seconds]
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> >> " ".codepoints.first.to_s(16)
<eval-in> certainty => "20" (https://eval.in/295451)
<certainty> one example
<canton7> ' '.ord.to_s(16)
<canton7> >> ' '.ord.to_s(16)
<eval-in> canton7 => "20" (https://eval.in/295452)
<phale> that's a string
<canton7> 0x20 is a string, yes
<canton7> what did you want? an int?
<phale> but I need to compare hex values
ych4k3r has joined #ruby
<certainty> :)
<certainty> idk what to say
<jhass> phale: hex is the representation of a number, just like decimal is
<jhass> >> 0x0f == 15
<phale> oh
<eval-in> jhass => true (https://eval.in/295455)
<phale> >> "0x20" == 0x20
<eval-in> phale => false (https://eval.in/295457)
<phale> see
<jhass> yes
<jhass> >> 0x20
<eval-in> jhass => 32 (https://eval.in/295458)
<phale> so what do i do
<jhass> >> "0x20".to_i(16) == 0x20
<eval-in> jhass => true (https://eval.in/295459)
Megtastique has joined #ruby
<canton7> we're not sure what you want to do, right now
<jhass> >> "0x20".to_i(16) == 32
<eval-in> jhass => true (https://eval.in/295460)
<phale> ' '.to_hex
<phale> should return 0x20
w0rldmaker has joined #ruby
<phale> not a string
<certainty> that doesn't make sense
<jhass> why can't it return 32?
<jhass> it's the same
<jhass> >> 32 == 0x20
<eval-in> jhass => true (https://eval.in/295463)
<phale> oh koay
<phale> okay*
dblessing has joined #ruby
<phale> thanks
<certainty> >> 0x20.to_s(2)
<eval-in> certainty => "100000" (https://eval.in/295464)
<certainty> >> 32.to_s(2)
<eval-in> certainty => "100000" (https://eval.in/295465)
<certainty> same bit pattern
<phale> strange
<jhass> no
<phale> k
<workmad3> >> ' '.ord == 0x20
hk3380 has joined #ruby
<eval-in> workmad3 => true (https://eval.in/295466)
<jhass> it's the same number, just two representations
<phale> workmad3 ;)
<phale> thanks for that
<jhass> >> ' ' == '\x20'
<eval-in> jhass => false (https://eval.in/295467)
<jhass> er
<jhass> >> ' ' == "\x20"
<eval-in> jhass => true (https://eval.in/295468)
anaeem1_ has joined #ruby
joonty has quit [Quit: joonty]
<jhass> >> ' ' == "\u0020"
<eval-in> jhass => true (https://eval.in/295469)
<workmad3> phale: although you really do need to recognise that different representations of the same value are all equal
<workmad3> phale: i.e. 0x20 == 32 == 040
anaeem1_ has quit [Remote host closed the connection]
<phale> ;)
<phale> really cool
<phale> i should read a tutorial i keep coming on here
ghostpl_ has quit [Remote host closed the connection]
dj_zubehoer has quit [Remote host closed the connection]
danman has joined #ruby
Grantlyk has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<phale> how do i unsplit a string
<certainty> you can use String#join
<phale> okay
joonty has joined #ruby
<jhass> Array#join :P
<jhass> or is it even Enumerable#join?
<phale> i split an array with ""
<phale> not sure how to unsplit it
anaeem1 has joined #ruby
<phale> s/array/string
<certainty> sorry yeah i meant Array#join
jerius has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<phale> i dont use ruby 2
<phale> i use 1.9.3
<ponga> why not
Qladstone has quit [Remote host closed the connection]
<certainty> then upgrade :)
<phale> i dont like parentheses
<ddv> 1.9.3 is EOL, phale
<canton7> this method was in 1.9 too
<certainty> phale: what does that have todo with parens?
aryaching has quit []
<ponga> oh wait
<phale> dunno
<ponga> why am i still on 2.2.0-rc1
<canton7> and parantheses has bugger all to do with it
<ponga> gotta upgrade
anaeem1 has quit [Read error: Connection reset by peer]
anaeem___ has joined #ruby
juanpablo_ has joined #ruby
<certainty> jhass: it's just Array#join i just checked
CustosLimen has joined #ruby
<ddv> i won't upgrade because I don't like commas
adriancb has joined #ruby
<certainty> though it probably made sense in Enumerable too
<jhass> phale: don't .split(""), use .chars/.each_char instead
jhwhite has joined #ruby
tgunr has joined #ruby
<phale> oh that exists
<phale> i've been trying to implement uri encoding and decoding
tunaCanBruh has joined #ruby
<jhass> >> require 'cgi'; CGI.escape("/ /")
<eval-in> jhass => "%2F+%2F" (https://eval.in/295473)
<certainty> jhass is too fast
<phale> well i was trying to implement it myself
geefolk has joined #ruby
<jhass> >> require "uri"; URI.encode "/ /"
<eval-in> jhass => "/%20/" (https://eval.in/295474)
<phale> damn
Takle has joined #ruby
<certainty> oh handy
<certainty> i didn't know it was in URI
geefolk has quit [Remote host closed the connection]
<jhass> note they're different
<jhass> URI.encode tries to be smart
charliesome has quit [Quit: zzz]
User458764 has joined #ruby
<jhass> while CGI.escape encodes everything
<phale> my current code
freerobby has joined #ruby
* certainty consults rfc3986
<jhass> %20 and + is both valid ;)
otisZart has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<jhass> phale: you're aware of net/http I hope?
<phale> jhass: as i was saying
<phale> im trying to implement things on my own as an exercise
jtdowney_ has joined #ruby
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest24231 has quit [Ping timeout: 265 seconds]
zeel has joined #ruby
anaeem___ has quit [Remote host closed the connection]
<wasamasa> lol
tunaCanBruh has quit [Ping timeout: 264 seconds]
<wasamasa> "Let's implement it in a horrible way that teaches me nothing and call it exercise!"
jtdowney has quit [Ping timeout: 272 seconds]
<phale> why is it horrible
gr33n7007h has joined #ruby
gr33n7007h has quit [Client Quit]
* wasamasa looks at the code
<wasamasa> the tabs are horrible!
ghostbox has quit []
<phale> that's vim
Pumukel has joined #ruby
robustus|Off is now known as robustus
<wasamasa> setting the tab width to 2 shouldn't be a problem
anaeem1 has joined #ruby
Spami has quit [Quit: Leaving]
SOLDIERz has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
<wasamasa> the code is unidiomatic in places, such as the many return statements
SOLDIERz has joined #ruby
SOLDIERz has quit [Client Quit]
<phale> well i used C prior to ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
<wasamasa> you should strive for writing ruby, not C in ruby
Spami has joined #ruby
<phale> other than the tabs and the returns
<phale> is it good
Spami has quit [Changing host]
Spami has joined #ruby
Darryl___ has joined #ruby
gr33n7007h has joined #ruby
plashchynski has quit [Quit: plashchynski]
Mives has joined #ruby
<jhass> phale: you duplicated code on lines 23, 25, 28, 31
plashchynski has joined #ruby
<phale> yes
<phale> how do i fix that
<jhass> no idea what the return false on 34 should be doing
<phale> yeah sorry i forgot to remove a lot of things
<jhass> also no need for the self.'s
anaeem1 has quit [Ping timeout: 246 seconds]
<phale> okay
<phale> what about the repitition
scripore has joined #ruby
<jhass> and set_ua should be named user_agent= or just make it a attr_writer
<phale> okay
evangeline__ has quit [Ping timeout: 256 seconds]
<ddv> can't you just in inherit from TCPSocket? and then call send, I don't see a point in this wrapper class
spider-mario has joined #ruby
<jhass> mmh, I do prefer delegation over inheritance
<phale> ..
<ddv> yeah okay
<phale> so how do i fix the repetition
<jhass> look at your logic
<jhass> you do it always
<phale> ok
<phale> does HTTP/1.0 accept
<phale> Host: host
<jhass> the RFC would know
<phale> "HTTP 1.1 has a required Host header by spec. HTTP 1.0 does not officially require a Host header, but it doesn't hurt to add one"
red_horned_rihno has quit [Ping timeout: 246 seconds]
<phale> okay then i don't need the repetition
<phale> what about the user agent
startupality has joined #ruby
n1x has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> the RFC would know
<phale> no i mean in the code
User458764 has joined #ruby
<phale> what if @ua is nil
<jhass> then don't send a user agent
oo_ has joined #ruby
<phale> okay
keen__________75 has quit [Read error: Connection reset by peer]
<jhass> that pastebin is crappy and won't let me get the code copy pasteable without downloading it, else I'd show
jerematic has joined #ruby
foureight84 has joined #ruby
mary5030 has joined #ruby
keen__________75 has joined #ruby
<ponga> use pastie, its minimal and allright
SOLDIERz has joined #ruby
max96at|off is now known as max96at
senayar has quit [Remote host closed the connection]
<ddv> no
<ddv> use gist
senayar has joined #ruby
Limix has joined #ruby
tkuchiki has joined #ruby
<phale> better?
senayar has quit [Remote host closed the connection]
skj3gg has joined #ruby
RegulationD has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<jhass> yes
_Andres has joined #ruby
<jhass> the return keyword on line 14 is still unnecessary
<phale> yeah i saw it and removed it just now
scripore has joined #ruby
gaganjyot has joined #ruby
<jhass> if !foo.nil? -> unless foo.nil? -> if foo
davidhq has joined #ruby
nateberkopec has joined #ruby
<jhass> you don't need .nil? until false is a valid value and you need to differentiate
<tobiasvl> if you don't need to check that foo is specifically nil and not false
jerius has quit [Quit: /quit]
<tobiasvl> hehe
<phale> okay
anaeem1_ has joined #ruby
jerius has joined #ruby
zacstewart has joined #ruby
gfawcettpq has joined #ruby
<jhass> phale: version for your original logic http://paste.mrzyx.de/poct5iar5
RegulationD has quit [Remote host closed the connection]
Regulati_ has joined #ruby
anarang_ has joined #ruby
<phale> jhass: http 1.0 can use host too
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> yes
<jhass> your original didn't send it in that case if I deciphered it correctly
<phale> okay
<jhass> just showing how to write that clearly
<phale> does file need to be URI encoded?
User458764 has joined #ruby
<jhass> path would actually be a better name there and kind of
<jhass> well, actually it's a plain yes
sinkensabe has quit [Read error: Connection reset by peer]
<phale> but it's a file
<jhass> no it's a path
<phale> is a file
<phale>
anaeem1_ has quit [Ping timeout: 252 seconds]
<phale> ugh
<phale> \/ is a file
<phale> s/\///
anarang has quit [Ping timeout: 252 seconds]
<jhass> GET / is a valid request
doodleha_ has joined #ruby
<jhass> / is not a file
<phale> it points to a file
<jhass> no
<phale> yes
doodlehaus has quit [Ping timeout: 246 seconds]
<jhass> no
<Fluent> dir dir
dtordable has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<certainty> phale: ^
<phale> the last time i read a RFC is when i saw ipv6 addresses and ports
<phale> which created ambiguity
senayar has joined #ruby
<certainty> i regularily have to read them. they are valuable resources
bMalum has joined #ruby
<PierreRambaud> certainty, +42
huddy has joined #ruby
<certainty> some of them i should have said :)
<phale> 2001:4860:4801:5::91:8080
<phale> how wouldn't that create ambiguity for example
<jhass> certainty: RFC puzzle: does RFC6698 mandate DNSSEC
<workmad3> certainty: http2 is on my reading list atm :)
<phale> that's what I saw from an official IPV6 RFC
Limix has quit [Ping timeout: 265 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
doodlehaus has joined #ruby
<workmad3> phale: it only creates ambiguity to humans
<PierreRambaud> workmad3, so true
<phale> weird protocol then
sinkensabe has joined #ruby
<jhass> the protocol never uses that presentation internally
red_horned_rihno has joined #ruby
gaganjyot has quit [Ping timeout: 250 seconds]
msgodf has quit [Ping timeout: 250 seconds]
<phale> anyways thanks for the help guys
anaeem1_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
doodleha_ has quit [Ping timeout: 272 seconds]
phale has quit [Quit: leaving]
<workmad3> phale: also, the recommended style is [2001:4860:4801:5::91]:8080
<PierreRambaud> workmad3, I think he rage quit :)
<workmad3> ah, just before I put that in :)
zachrab has joined #ruby
<certainty> jhass: it should. but i don't know if it does. it's on my to-read-list.
<workmad3> I could still tab-complete his name when I started typing ;)
mitchellhenke has joined #ruby
My_Hearing has joined #ruby
My_Hearing has joined #ruby
<jhass> certainty: my stand point is that it falls apart if not, but doesn't explicitly state it ;)
senayar has quit [Read error: Connection reset by peer]
<apeiros_> jhass: my now favorite question for people who want "an integer in hex, but not a string(!)": "what base does 'twelve' have?" because the base of a number is only representational.
Limix has joined #ruby
j_mcnally has joined #ruby
senayar has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<jhass> apeiros_: nice one, I'll try to remember it :D
<certainty> tlsa in theory can exist without dns and thus dnssec but dane explicitly choses to use the domain namespace to store the data
Mon_Ouie has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
<certainty> and to make it usable you better be sure that records are valid
Limix has quit [Client Quit]
anaeem1_ has quit [Ping timeout: 246 seconds]
<jhass> yeah, there's also 4.1 which doesn't work without it
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 256 seconds]
<workmad3> jhass: reading through the introduction, DANE seems to basically be saying "The easiest way to secure your DANE bindings is to use DNSSEC to secure your DNS records... however you may have other ways to secure your records, so we aren't strictly mandating that you use DNSSEC"
<jhass> workmad3: yes, that's what the introduction says. now read 4.1
j_mcnally has quit [Read error: Connection reset by peer]
zachrab has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
<certainty> jhass: in that case case 3 would match, wouldn't it?
dtordable has quit [Quit: • IRcap • 8.72 •]
<certainty> say there is no dnssec then the validation state should be indeterminate
Pumukel has quit [Read error: Connection reset by peer]
<certainty> so yeah it seems to mandate DNSSEC to be usable
<certainty> seem
dtordable has joined #ruby
Pumukel has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
iamjarvo has joined #ruby
<workmad3> jhass: hmm... 4.1 seems to start with "Here is a protocol that uses DNSSEC" so it kinda follows that the description is then dependent on DNSSEC, but I agree that the wording isn't perfectly clear on that front
emocakes has quit [Ping timeout: 256 seconds]
Limix has joined #ruby
scripore has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
loechel has joined #ruby
skj3gg has joined #ruby
loechel is now known as Pumukel
zacstewart has quit [Remote host closed the connection]
<jhass> so, now open RFC6394 :P
jlebrech has joined #ruby
fryguy9 has joined #ruby
werelivinginthef has joined #ruby
<apeiros_> jhass: organizing a digital scavenger hunt?
<jhass> maybe :P
dtordable has quit [Remote host closed the connection]
zacstewart has joined #ruby
dtordable has joined #ruby
xcesariox has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
w0rldmaker has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
hs366 has quit [Quit: Leaving]
dEPy has joined #ruby
<jlebrech> i'm doing group_by on an array and get this output ['my-grouped-key', [...], ...] how do i turn it into ['my-grouped-key' => [...], ...]
mbeasley has quit [Quit: WeeChat 0.4.2]
<jlebrech> array of hashes*
mbeasley has joined #ruby
<apeiros_> group_by does not return an array of arrays
gr33n7007h has quit [Ping timeout: 264 seconds]
OrbitalKitten has joined #ruby
<apeiros_> so you must be doing something else/additional…
<apeiros_> >> [1,2,3,4].group_by(&:odd?)
<eval-in> apeiros_ => {true=>[1, 3], false=>[2, 4]} (https://eval.in/295490)
agarie has joined #ruby
OrbitalKitten has quit [Client Quit]
<apeiros_> also, [key => value] is not a thing, {key => value} is
havenwood has joined #ruby
dtordable has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
<jhass> it is, it's same as [{key => value}] :P
joonty has quit [Quit: joonty]
OrbitalKitten has joined #ruby
<certainty> jhass: that section sounds different
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
SOLDIERz has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
<toretore> associative array
<jlebrech> yeah, i'm getting an associative array
<apeiros_> toretore: careful, associative array does not need to be a hash
sandelius has joined #ruby
ereslibre has quit [Ping timeout: 252 seconds]
boshhead has joined #ruby
<toretore> i'm just making fun of the way php does arrays
<toretore> and call them that
luksaur has joined #ruby
luksaur has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
<certainty> for me one of the interesting ideas with DANE is the possibility to have trust anchors at the level of your desire, thus reducing the need for centralized CAs
<apeiros_> >> [["hi", "there"], ["associative", "array"]].assoc("associative")
<eval-in> apeiros_ => ["associative", "array"] (https://eval.in/295494)
<apeiros_> toretore: ^
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
<toretore> jlebrech: as always, gist your code if anybody's going to be bothered to look at your problem
<apeiros_> jlebrech: I think you're confused or use bad terminology. please clarify.
mjuszczak has joined #ruby
<jhass> certainty: whole point of it to me, sad that mozilla prefers to add a CA to the broken system instead of implementing it
<ponga> isn't pastie not good enough?
tobago has quit [Remote host closed the connection]
<toretore> it is
juanpablo_ has joined #ruby
<toretore> not good enough
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros_> ponga: gist = better paste
<ponga> what the fuck is better paste you bunch of geeks
<ponga> pastie does what it needs
<toretore> gist is better
<toretore> that's just the way it is
<ponga> i understand pastebin sucks but pastie does its job
<apeiros_> paper & pencil does what it needs too
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
<apeiros_> yet, I prefer to use a computer
<havenwood> cyberpen and cyberpaper
<toretore> to see my code, telnet me at port 22684
* apeiros_ fingers toretore
<toretore> hey
mbeasley has quit [Client Quit]
mbeasley has joined #ruby
<apeiros_> what hey? I want to have infos about you before I telnet! safer telnet, uknow?
<certainty> jhass: yeah it's a controversial topic. For us DANE is important to secure communications between our mailers
OrbitalKitten has joined #ruby
kaiZen- has joined #ruby
<toretore> watch out or i'll `touch` your endpoint
rbennacer has joined #ruby
joonty has joined #ruby
* certainty waits for the obligatory: date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep
rbennacer has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<jhass> certainty: I can see that you need to be careful when deploying DNSSEC to bigger systems, but it's still an improvement in every aspect over the CA system and we won't get an alternative in the next 10 years
sambao21 has joined #ruby
rbennacer has joined #ruby
joonty has quit [Client Quit]
Grantlyk has quit [Remote host closed the connection]
jherbst has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
<certainty> jhass: probably not. though a common concern with DNSSEC is that it's still somewhat centralized. in order to verify your chain of trust you go up to the owner of your root zone. which is operated by the government (most likely)
<jhass> and I mean, Dyn does it, Cloudflare is about to launch it to all their customers, ICANN mandates it for all new gTLDs, can't be that bad
tunaCanBruh has joined #ruby
<certainty> yeah it is a good move
JohnBat26 has joined #ruby
<gr33n7007h> arun_p, little example, https://gist.github.com/anonymous/3ce9ee94a23e67e6a99b # and loads more now on to firefox :)
adriancb has joined #ruby
startupality has quit [Quit: startupality]
jerius has quit [Quit: /quit]
senayar has quit [Read error: Connection reset by peer]
startupality has joined #ruby
senayar has joined #ruby
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
<jhass> certainty: monitoring root zone -> TLD for unexpected changes should be easy, could built that into OONI or something and faking DNS replies for specific clients at the authoritative servers for a TLD seems like a difficult task
jerius has joined #ruby
<jhass> and even then at most a single domain is affected, with a root cert you can pretend to be anybody
bruno- has joined #ruby
pwh has joined #ruby
<catsoup> certainty: the owner of your root zone will not be your gov.t
MrMunchie has joined #ruby
startupality has quit [Ping timeout: 252 seconds]
<jhass> well, atm it is operated by verisgin, no?
<catsoup> the chain of trust is a bit broken, frankly
<catsoup> eh, by and large
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<catsoup> the uk is speshul, we have Nominet
<catsoup> which *sort of* is run byt the govt, although not really, except where it is
kachi8 has joined #ruby
tjohnson has joined #ruby
jtdowney has joined #ruby
mkaesz has quit [Ping timeout: 264 seconds]
jtdowney_ has quit [Read error: Connection reset by peer]
<catsoup> but orgs like ICANN have more regulatory control than national gov.ts do
fmcgeough has joined #ruby
oo_ has quit [Remote host closed the connection]
<MrMunchie> hello I am really new to ruby, I still cannot grasp the entire concept of symbols even after a few articles online. I know you cannot assign anything to a symbol with =, but how does a symbol ever reference anything? how do you make a symbol point to anything?
jtdowney_ has joined #ruby
livathin_ has joined #ruby
ParmesanCaesar has joined #ruby
<jhass> you don't, a symbol is a value, like a string or a number is
<catsoup> jhass: if you've faked a response from the root server, how come only one domain will be affected?
joonty has joined #ruby
<jhass> because otherwise people will notice quickly
<jhass> so you would want those attacks very targeted
Axy has joined #ruby
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
crueber has joined #ruby
<jhass> MrMunchie: any other programming languages you know we can relate concepts to?
<MrMunchie> c or java
bruno- has quit [Ping timeout: 252 seconds]
<jhass> MrMunchie: do you know enums in Java?
bruno-_ has joined #ruby
hanmac1 has left #ruby [#ruby]
<MrMunchie> yes, a numbered list with a string identifiers,
jtdowney has quit [Ping timeout: 256 seconds]
<MrMunchie> i hope thats a correct definition
livathinos has quit [Ping timeout: 265 seconds]
fgo has quit [Quit: WeeChat 1.1.1]
<certainty> catsoup: i suspect the ICANN gets a good amount of steering from various sides. I wanted to express that the root zones might be under the control of governments.
<jhass> I'm more relating to the usecases
<jhass> MrMunchie: ^
serivich has quit [Ping timeout: 272 seconds]
<certainty> my head aches. i'll call it a day
<certainty> have fun peeps
<jhass> MrMunchie: so where you would use an enum in Java, or a magic value assigned to a constant, you use a symbol in Ruby
Mives has quit [Quit: WeeChat 1.1.1]
jtdowney has joined #ruby
agarie has quit [Remote host closed the connection]
<MrMunchie> okay, this helps. thank you very much!
Takle has quit [Remote host closed the connection]
ParmesanCaesar has quit [Ping timeout: 264 seconds]
jtdowney_ has quit [Read error: Connection reset by peer]
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
dfinninger has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shmoon has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
piotrj has quit [Remote host closed the connection]
zacstewart has quit [Remote host closed the connection]
bim has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
piotrj has joined #ruby
fryguy9 has quit [Quit: Leaving.]
mitchellhenke has joined #ruby
zotherstupidguy has joined #ruby
anaeem1_ has joined #ruby
rkgudboy has joined #ruby
<zotherstupidguy> is there a ruby(not rails) solution for plural words?
<jhass> activesupport? :
<jhass> :P
<zotherstupidguy> yeah exactly wht i am tryin to avoid lol
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<jlebrech> apeiros_: thanks, i had to figure it out for myself. associative array .first returns ['key', [values]] I wanted .values.first
doodleha_ has joined #ruby
jen_ has joined #ruby
dblessing has joined #ruby
<bhaak> use a language that doesn't have marked plural endings
<jen_> Senjai: hey there.
anaeem1 has quit [Remote host closed the connection]
bim has quit [Ping timeout: 240 seconds]
fryguy9 has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
<jhass> zotherstupidguy: https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=plural seems to have a few
<canton7> it's released under MIT, so just grab the bits you need
<zotherstupidguy> well thanks jhass, canton7, i was really asking for somthing more native, it seems heavy to add a gem for this
<canton7> it's pretty language- and use-case-specific
<canton7> it's highly unlikely you'll find anything like that in a stdlib
<jhass> also why would activesupport implement it if there's something good enoguh in stdlib
* apeiros_ is left wondering what "more native" is supposed to mean
<havenwood> zotherstupidguy: adding a gem is how we add little features that aren't in core or stdlib
<havenwood> zotherstupidguy: octopus -> octopi isn't going to be in stdlib >.>
<havenwood> of any lang that i'm aware?
<zotherstupidguy> http://stackoverflow.com/questions/2446156/is-there-a-pluralize-function-in-ruby-not-rails got a simple solution (2010) i was hoping it is added to stdlib by now somewhere
anaeem1 has joined #ruby
<havenwood> zotherstupidguy: no, probably not in the stdlib of any language, though i'd love to be proved wrong on that - would be interesting to see whose done it
sevvie has joined #ruby
<apeiros_> zotherstupidguy: IMO doesn't make sense to add something like that to stdlib
Takle has joined #ruby
<apeiros_> unless you're willing to go the way of the ignoramus and say "english is enough for stdlib"
<zotherstupidguy> it depends on how it is implemented, is dictionary lists the only way?
<apeiros_> zotherstupidguy: you have literally *no idea* how plurals work in different languages.
<canton7> zotherstupidguy, depends on the language
B1n4r10 has joined #ruby
anaeem1__ has joined #ruby
<canton7> zotherstupidguy, some will have rules that are followed 100%. most will have some ground rules and tons of exceptions
jerius has quit [Quit: /quit]
<canton7> some will just have lists of words and their plurals
<bhaak> apeiros_: well, this is ruby, the standard language would probably be "japanese" :-]
anaeem1 has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
<apeiros_> bhaak: indeed
<canton7> some will have weird and wacky concepts of plurals (one, many, lots)
anaeem1__ has quit [Remote host closed the connection]
<havenwood> hai, dozo!
jtdowney_ has joined #ruby
<zotherstupidguy> @apeiros languages == encodings?
<canton7> no, spoken languages
<apeiros_> zotherstupidguy: no. languages == languages.
<apeiros_> like english, japanese, malay…
jtdowney has quit [Ping timeout: 264 seconds]
<zotherstupidguy> i will take into the gems, see how it is done, cheers :)
systemd0wn_ has quit [Read error: Connection reset by peer]
digifiv5e has quit [Ping timeout: 246 seconds]
w0rldmaker has joined #ruby
phutchins has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
segmond has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
jtdowney_ has quit [Client Quit]
x1337807x has joined #ruby
jerematic has quit [Read error: Connection reset by peer]
GaryOak_ has joined #ruby
oz has quit [Read error: Connection reset by peer]
patronus has quit [Read error: Connection reset by peer]
JBreit has left #ruby ["Leaving"]
jerematic has joined #ruby
patronus has joined #ruby
oz has joined #ruby
cpt_yossarian has joined #ruby
sdrew has joined #ruby
n80 has quit [Quit: n80]
davedev24_ has joined #ruby
Zarthus has quit [Ping timeout: 250 seconds]
JBreit has joined #ruby
fryguy9 has quit [Quit: Leaving.]
anaeem1_ has joined #ruby
rippa has joined #ruby
JBreit has left #ruby [#ruby]
<zotherstupidguy> for english https://github.com/stewart/plural/blob/master/lib/plural.rb this seems to work well via rules!
momomomomo has joined #ruby
rkgudboy has quit [Ping timeout: 244 seconds]
<zotherstupidguy> neat in size too!
bal has quit [Quit: bal]
anarang_ has quit [Ping timeout: 250 seconds]
topolinux has joined #ruby
bim has joined #ruby
piotrj has quit [Remote host closed the connection]
mbeasley has quit [Quit: WeeChat 0.4.2]
speakingcode has quit [Ping timeout: 250 seconds]
mbeasley has joined #ruby
anarang_ has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
speakingcode has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cr3 has joined #ruby
einarj has quit [Remote host closed the connection]
davedev24_ has quit [Read error: Connection reset by peer]
<cr3> how can I get the path to the file that defines a module, given the module?
davedev24_ has joined #ruby
keen__________75 has quit [Ping timeout: 250 seconds]
<avril14th> cr3: class Stb
anaeem1_ has quit [Ping timeout: 245 seconds]
<avril14th> cr3: class Stb; include Module; end; Std.new.method(:some_method_from_module).source_location
<avril14th> maybe there's better though
davedev24_ has quit [Read error: Connection reset by peer]
<jhass> for starters you can skip the include with .instance_method
<cr3> avril14th: I hope so, that's rough :(
davedev24_ has joined #ruby
odigity has quit [Ping timeout: 265 seconds]
Zarthus has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
MrMunchie has quit [Quit: Leaving]
sinkensabe has quit [Remote host closed the connection]
<zotherstupidguy> grep -r "module" *
<zotherstupidguy> grep -r "module MyModule" *
werelivinginthef has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 272 seconds]
davedev24_ has joined #ruby
<apeiros_> cr3: you realize that there's not necessarily a single location, or maybe not even a file, which defines a module?
<zotherstupidguy> apeiros_ yup! :)
<jhass> cr3: why do you need to know? just for debugging? if so, just use pry
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
davedev24_ has quit [Read error: Connection reset by peer]
<cr3> jhass: yes, this is for debugging
keen__________75 has joined #ruby
davedev24_ has joined #ruby
<jhass> cr3: http://pryrepl.org
goshdarnyou has quit [Quit: Connection closed for inactivity]
<jhass> inside, $ MyModule
ych4k3r_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
<jhass> launch it as a debugger: require "pry;" binding.pry
wallerdev has joined #ruby
davedev24_ has joined #ruby
Shazaum has quit [Quit: Leaving]
suffice has quit [Remote host closed the connection]
zorak8 has joined #ruby
thumpba has joined #ruby
jerius has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
kachi8 has quit [Ping timeout: 250 seconds]
w0rldmaker has quit [Ping timeout: 264 seconds]
segmond has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
tohsig has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
x77686d has joined #ruby
doodlehaus has joined #ruby
hysk has joined #ruby
ParmesanCaesar has joined #ruby
livathin_ has quit [Remote host closed the connection]
fryguy9 has joined #ruby
dapz has joined #ruby
thumpba_ has joined #ruby
dapz has quit [Client Quit]
dj_zubehoer has joined #ruby
odigity has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
ParmesanCaesar has quit [Ping timeout: 250 seconds]
Limix has quit [Quit: Limix]
segmond has quit [Ping timeout: 255 seconds]
anarang_ has quit [Quit: Leaving]
amundj has quit [Ping timeout: 245 seconds]
snockerton has joined #ruby
gluten_hell has quit [Quit: Computer has gone to sleep.]
scripore has quit [Quit: This computer has gone to sleep]
w0rldmaker has joined #ruby
Grumelo has joined #ruby
Morkel has quit [Quit: Morkel]
nateberkopec has quit [Ping timeout: 256 seconds]
gluten_hell has joined #ruby
scripore has joined #ruby
arup_r has joined #ruby
zacstewart has joined #ruby
ismaelga has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spyderma_ has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
Hirzu_ has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
thumpba has joined #ruby
doodlehaus has quit [Ping timeout: 255 seconds]
<pmarreck> Is there anything in Ruby that lets me check if a symbol has already been "seen" before I convert a string to one?
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cr3 has left #ruby [#ruby]
<bradland> pmarreck: "seen" is not a term i've heard before.
<pmarreck> I did find this sort of discussion from over a year ago about it https://bugs.ruby-lang.org/issues/7795
lordkryss has joined #ruby
aclearman037 has joined #ruby
<pmarreck> bradland: well, the symbol is defined as soon as the parser sees it.
Grantlyk has joined #ruby
commmmodo has quit [Quit: commmmodo]
<pmarreck> :this_is_a_symbol <= now it's defined
jen_ has left #ruby [#ruby]
doodlehaus has joined #ruby
thumpba_ has quit [Ping timeout: 264 seconds]
<bradland> ah, so defined.
ghostpl_ has joined #ruby
<pmarreck> I ask because I'm investigating Elixir and I see that it has binary_to_existing_atom (binary is a string, atom is like a symbol) which is pretty smart IMHO. Lets you take advantage of symbols/atoms without running into DDoS issues
segmond has joined #ruby
<bradland> i thought you meant something more by "seen"
<bradland> as in, has the value been used in some way
<bradland> have a look at Symbol.all_symbols
<pmarreck> right.
<bradland> that's an array of all defined symbols
einarj has joined #ruby
<bradland> problem is, i'm not sure how you check for a symbol without using the literal... which would constitute defining it
GnuYawk has joined #ruby
<pmarreck> bradland: So you'd have to map Symbol.all_symbols to string, see if your prospective symbol (which is still a string at the time) is in that list, and THEN convert it to a symbol?
jlast has joined #ruby
<pmarreck> Which is silly
ferr has joined #ruby
<bradland> yeah, that's an interesting question. how to check for the presence of a symbol without using the symbol.
<pmarreck> That's the only way I can think of
<bradland> seems expensive to go through and allocate all those strings
<bradland> but yeah, that seems like it would work
<pmarreck> Symbol.all_symbols.map(&:to_s).include?(prospective_symbol)
<pmarreck> yes, which is why I say it is silly
<pmarreck> and you'd also have to run it EVERY time you check... as the global symbol list may have changed in the meantime
lolmaus has quit [Ping timeout: 252 seconds]
mjuszcza_ has joined #ruby
robustus is now known as robustus|Off
<bradland> have you dug in to see what Elixir's implementation is like?
<bradland> if it does something similar, they might have a different idea
reinaldo_ is now known as reinaldob
<pmarreck> bradland: I am pretty sure it calls down into the Erlang definition, but no I haven't looked at what Erlang does yet :)
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> pmarreck: Why are you converting a String to a Symbol?
apeiros_ has quit [Remote host closed the connection]
<pmarreck> I don't imagine Erlang does anything like that, since it is a BIF and is therefore at the compiler level
amystephen has joined #ruby
<bradland> sh, sry. not familiar with Elixir.
<havenwood> pmarreck: What's your concern with doing so?
<pmarreck> havenwood: I want to not mention a Symbol unless it is already defined. The "non-mentioned" Symbol is currently a String which has not yet been converted, or vetted.
apeiros_ has joined #ruby
razieliyo has quit [Read error: Connection reset by peer]
<havenwood> pmarreck: Why not mention it unless it's been defined?
<pmarreck> havenwood: Have you heard of the symbol DDoS?
<bradland> isn't symbol GC possible in recent versions of Ruby?
j_mcnally has joined #ruby
<havenwood> pmarreck: Distributed denial of service?
<jhass> pmarreck: normalize user input to strings, not symbols
<jhass> if you have to mix with user input, use strings, always
<pmarreck> jhass: That is a band-aid solution which forces you to give up the utility of symbols
<havenwood> pmarreck: That doesn't really make sense. But the latest stable Rubies do GC user created Symbols.
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> pmarreck: no, it just limits the usage of symbols to their intention
mjuszczak has quit [Ping timeout: 264 seconds]
<jhass> String#to_sym was a mistake
<havenwood> pmarreck: I think the best thing to look at is how you can not String#to_sym.
<pmarreck> Again, I refer you guys to erlang's binary_to_existing_atom, which if it existed in Ruby would be called something like String#to_existing_sym (which has actually been discussed on the Ruby mailing lists)
ycyclist has quit [Quit: Page closed]
<pmarreck> In fact, that exact name has been discussed, and I only guessed it.
sdrew has joined #ruby
<pmarreck> jhass: No, it was not. NOT having String#to_existing_sym was the mistake.
<pmarreck> You can have a whitelist of symbols.
nettoweb has joined #ruby
<pmarreck> Without forcing everyone to use strings.
<bradland> curious what happens if there is no existing symbol?
<bradland> return nil?
atomiccc has joined #ruby
<jhass> pmarreck: I yet have to see a case whre String#to_sym is used that wouldn't be better solved by using strings at the target instead, so if you have a real world example of that, I'd be highly interested
<pmarreck> bradland: Good question, and really speaks to how to handle errors/fails. I say if it has a bang on the end, throw.
kachi8 has joined #ruby
<pmarreck> I mean raise.
apeiros_ has quit [Ping timeout: 265 seconds]
<pmarreck> jhass: Indexing on a symbol is quite a bit faster than indexing on a string. As is searching for a symbol in a list, etc.
adriancb has quit [Read error: Connection reset by peer]
Soda has joined #ruby
delianides has joined #ruby
<pmarreck> jhass: Strings use way more memory. Strings in Ruby take up a huge amount of the VM space.
<havenwood> pmarreck: So there are strings, frozen strings, dynamic symbols and static symbols. It seems to be static symbols you're concerned about. But you can't create them.
mistermocha has joined #ruby
<pmarreck> jhass: You don't have to deallocate a symbol.
mjuszczak has joined #ruby
<havenwood> pmarreck: The GC will do that for you, as long as you created the Symbol.
<bradland> i don't know that you can do this cleanly in pure ruby
<jhass> pmarreck: sound like academic usecases, got benchmarks of a real world app that prove that was a bottleneck in it?
<havenwood> pmarreck: Now using frozen Strings, that makes sense. There's a frozen String literal: 'example'.freeze
<havenwood> pmarreck: That ^ won't create the unfrozen String, just a lovely frozen one.
gr33n7007h has quit [Ping timeout: 255 seconds]
<pmarreck> jhass: All code that had to convert to using strings instead of symbols is circumstantial evidence. Surely they would have all used strings from the start if symbols weren't merely different.
gr33n7007h has joined #ruby
mjuszcza_ has quit [Ping timeout: 252 seconds]
bricker has joined #ruby
<havenwood> pmarreck: Why do you need a Symbol? Have a code example?
<havenwood> pmarreck: Seems you want a frozen string, no?
<bradland> lots of code that used symbols did so for reasons that weren't related to actual reasons
<jhass> no, fact is people don't grasp the Symbol usecases fully and misuse them
<bradland> just a lot of dogma
<pmarreck> havenwood: I am cool with frozen strings, but I don't know what optimizations exist around that down in the depths.
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BigRonnieRon has joined #ruby
<pmarreck> jhass: Well, that is a reasonable argument, although essentially based on accepting the ignorance of programmers
<bradland> if the core concern is memory overflow DDoS, that's solved by GC of symbols, no?
<havenwood> pmarreck: They are lovely, keep object allocation down.
it0a has joined #ruby
<jhass> people are ignorant yes. Programmers are no exception
<pmarreck> bradland: I suppose. Symbol GC is relatively new.
<havenwood> bradland: the double DD means distributed, so just DoS
gaganjyot has joined #ruby
<bradland> derp
<pmarreck> jhass: I like to keep my standards high and not assume my colleagues are ignorant. ;)
<havenwood> bradland: And yeah, there's no Symbol DoS vector any longer.
<bradland> ATM Machine!
Takle has quit [Remote host closed the connection]
<havenwood> Live in the now, maaan!
<bradland> brah, the evidence supports the cynics in this argument :P
einarj has quit [Remote host closed the connection]
zachrab has joined #ruby
<mistermocha> Hey all, where would be the right place to ask fpm questions?
<pmarreck> Eternal optimist I guess ;)
<bradland> mistermocha: not sure fpm has a specific channel, but you can always ask here.
CustosLimen has quit [Ping timeout: 246 seconds]
<pmarreck> havenwood: There isn't a symbol DoS vector, at least in the standard gems... but there could still be one in your code, if anyone writes code ignorant of the possibility which accepts user input and symbolizes it... although symbol GC probably mitigates that now
<bradland> if it's ruby related, someone can probably help
fryguy91 has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
<mistermocha> bradland: thanks ... it's just making me scratch my head as to why things behave like they do...
adriancb has joined #ruby
mary5030 has joined #ruby
Takle_ has joined #ruby
<mistermocha> so i'm making a shared library, call it foo.dll, that has to go in /usr/local/share/foo
<mistermocha> dpkging it
<havenwood> pmarreck: Dynamic Symbol GC ftw.
andikr has quit [Remote host closed the connection]
agarie has joined #ruby
<mistermocha> On my box, I put down directory foo in /usr/local/share, put foo.dll into it, and ran "fpm -n foo-dll -t deb -s dir /usr/local/share/foo"
<mistermocha> which is what the documentation on fpm hinted at
StoneCypher has joined #ruby
<jhass> isn't .dll a windows thing?
rhg135|XX is now known as rhg135
polysics has quit [Remote host closed the connection]
TripTastic has joined #ruby
<mistermocha> dpkg contents show the file put in ./
fryguy9 has quit [Ping timeout: 256 seconds]
<bradland> holy wow, so fpm has a channel: #fpm
<bradland> amazing
<mistermocha> but the file doesn't end up in /usr/local/share/foo ... it ends up on root
<mistermocha> aw snap ... ok thanks bradland
B1n4r10 has joined #ruby
<bradland> jordan sissel fights for the user, btw
zachrab has quit [Ping timeout: 245 seconds]
* mistermocha facepalms at himself
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> started looking at the docs to see if i could help
<bradland> and saw that
<pmarreck> jhass: look here http://www.sitepoint.com/symbol-gc-ruby-2-2/ The very doc about symbol GC states: "We see that indifferent access hash with a string is about half the speed of a regular hash with symbol keys. We also see that using a symbol to access the value in an indifferent access hash is a whopping 5 times slower than using a regular hash with symbol
<pmarreck> keys."
_2_Suhani has joined #ruby
<pmarreck> There's your data.
<bradland> do not conflate indifferent access with string based hashes
<bradland> that's not the same
<bradland> because indifferent access requires one additional layer of indirection
<pmarreck> HashWithIndifferentAccess stores string keys, however
<pmarreck> internally
j_mcnally has joined #ruby
mjuszcza_ has joined #ruby
<pmarreck> but yes, there is 1 additional layer of indirection. Fair enough. Would that account for a doubling of time?
<jhass> pmarreck: The point is that AS:HWIA is a mistake too, Rails should never have allowed params[:foo] for convenience
x1337807x has joined #ruby
<_2_Suhani> hi aunty how are you
<mistermocha> bradland: you're beyond awesome, thanks
<jhass> _2_Suhani: how's your Ruby going?
ponga has quit [Quit: Leaving...]
hollywood has joined #ruby
<pmarreck> Disclaimer: I think HashWithIndifferentAccess should die in a fire. Here's a quick question: What happens when you do this? hash_with_indifferent_access.merge!({:a => '1', 'a' => '2'})?
<jhass> I guess [:a] and ['a'] both will return '2'
<_2_Suhani> what are you telling
<pmarreck> If you don't know the answer to that (and all its permutations), you should stay far, far away from HWIA.
<jhass> _2_Suhani: what a lovely language Ruby is
mjuszczak has quit [Ping timeout: 265 seconds]
<havenwood> Oh Rails..
JDiPierro has joined #ruby
<bradland> i stay away from HWIA in general
<pmarreck> jhass: You are probably correct. In order to answer that you have to know that HWIA stores strings internally. But a while back I managed to get HWIA to store a symbol key... and that resulted in a nasty, nasty bug
<jhass> pmarreck: there have been numerous attempts to make AS::HWIA the default Hash even, my guess is that Symbol GC is the compromise to silence those
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
hysk has left #ruby [#ruby]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pmarreck> jhass: It's about time, then. Because that "solution" would have sucked
graydot has joined #ruby
sdrew has joined #ruby
<jhass> which should point out that I see Symbol GC as mistake too, it legitimates illegitimate usecases of symbols
sigurding has quit [Quit: sigurding]
<pmarreck> Hopefully this means all the string key business/code will go away... at least once 2.2. is the standard
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<pmarreck> jhass: You can always whitelist your sym... oh wait, no, you still can't. ;)
<jhass> Rails 5 targets 2.2 in order to clean that stuff up
<havenwood> apeiros: Speaking of 2.2, title could use a bump to 2.2.1.
gaganjyot has quit [Remote host closed the connection]
<arup_r> Need help
swgillespie has joined #ruby
* jhass send a rescue dog to arup_r
<arup_r> How to trimmed out white spaces while playing with ERB ? https://gist.github.com/aruprakshit/a4391a32f33324c07d28
<arup_r> and I got too many syntax errors
<arup_r> jhass: hehehehe
Hijiri has joined #ruby
JDiPierro has quit [Remote host closed the connection]
tgunr has joined #ruby
<pmarreck> arup_r: get rid of the space here -%> <%=
<pmarreck> arup_r: that space in between the > <
<pmarreck> oh wait. nah
<arup_r> Is it ?
<arup_r> Let me try
<pmarreck> maybe.
_2_Suhani has quit [Remote host closed the connection]
lemur has joined #ruby
<arup_r> WoWwww!!!
<pmarreck> yeahI thnk that's it
<jhass> arup_r: why don't you just use Array#join ?
<arup_r> But ERB don't know how to handle it ?
<pmarreck> your -%> only slurps up \n's, not \s's ;)
<arup_r> jhass: Experimenting with ERB
<jhass> arup_r: you can call any ruby in erb
<jhass> not saying you should but...
<pmarreck> yeah. now on to how you wrote this... it's ugly. haha
ponga has joined #ruby
<arup_r> jhass: I know..
<ponga> uh oh
agarie has quit [Remote host closed the connection]
<ponga> why does rvm install '2.2.0-preview1' for 'install rvm 2.2.0'
<jhass> ah ih
<pmarreck> arup_r: dude do teams.join(',')
bhegel has joined #ruby
<ponga> isn't 2.2.0 stable
<jhass> ponga: rvm get stable
<ponga> thanks
<arup_r> Yes.. Dude.. I know
coderhs has joined #ruby
<pmarreck> arup_r: don't skip comma on the first using an index, that's silly. that's very java. not very Enumerable. ;)
<arup_r> just cross checking if ERB can handle it or not
<ponga> uh
coderhs has quit [Client Quit]
<ponga> uh oh wrong link
<arup_r> But Railscast tip #1 was buggy I proved
<ponga> arup_r: Unrecognized command line argument: 'stable' ( see: 'rvm usage' )
<ponga> it says its wrong
<jhass> ponga: maybe it's just rvm get these days
<ponga> damn
<jhass> I no longer use it
pietr0 has joined #ruby
<ponga> yeah rvm sucks these days
<arup_r> rvm get stable
<ponga> what other is good?
<arup_r> is the command
<pmarreck> arup_r: an old railscast is likely quite outdated by now, unless they update all of them, which I doubt
<ponga> ok get
Ankhers has joined #ruby
<arup_r> humm
<jhass> ponga: I stopped using it since I started maintaining the other Ruby packages in the AUR :P
<arup_r> pmarreck
<jhass> so I just chruby + those
<havenwood> ponga: `rvm get stable`, not `rvm stable`
timanema has joined #ruby
<pmarreck> arup_r: well glad we figured it out. code on ;)
jlast has left #ruby ["Leaving..."]
dj_zubehoer has quit [Remote host closed the connection]
<ponga> havenwood: it installs rvm, not 2.2.0 ruby
airdeluxe has joined #ruby
airdeluxe has left #ruby [#ruby]
<havenwood> ponga: yeah, then you: rvm install 2.2.1
<jhass> ponga: that's the point
<jhass> the latest rubies are coded in
<jhass> nothing autodiscovered
<ponga> ok
piotrj has joined #ruby
danjordan has quit [Quit: danjordan]
thumpba has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
giuseppesolinas has joined #ruby
Hobogrammer has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
<arup_r> ponga: is nice name
<arup_r> jhass: is a Rubyist ..........
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<arup_r> shevy: loves cat
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<arup_r> apeiros: kicks always "bootys"
<elfuego> does anyone know how to get these items from hashie? <Hashie::Mash count=35367 time=1425340800000>
<ponga> ㅇㅅㅇ cat face in korean letter
rbennacer has quit [Remote host closed the connection]
Cyberheb has joined #ruby
jonr22 has joined #ruby
Cyberheb has quit [Excess Flood]
<jhass> elfuego: .count, [:count] or ['count'], one has to work :P
joonty has quit [Quit: joonty]
<ponga> havenwood: jhass thanks, it worked
blackmesa has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
perturbation has joined #ruby
digitalZombie has joined #ruby
lemur has quit [Remote host closed the connection]
kblake has joined #ruby
perturbation has quit [Client Quit]
strixd has quit [Quit: 500]
n008f4g_ has joined #ruby
<elfuego> not works, jhass I think ruby methods are overriding stuff
jonr22 has quit [Ping timeout: 256 seconds]
<jhass> elfuego: "not works"? care to elaborate?
Waheedi has quit [Quit: Waheedi]
sambao21 has joined #ruby
<elfuego> when I do count on the object it returns 2 instead of the actual value of count
rbennacer has joined #ruby
alex88 has quit []
Waheedi has joined #ruby
Waheedi has quit [Client Quit]
_maes_ has joined #ruby
sambao21 has quit [Client Quit]
Takle_ has quit [Remote host closed the connection]
<jhass> elfuego: maybe you got two of them in an array?
kobain has joined #ruby
<jhass> elfuego: what about the other options? how precisely do they fail?
danjordan has joined #ruby
Guest78583 has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
odin22 has joined #ruby
xiq has joined #ruby
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mistermocha has quit [Remote host closed the connection]
phil has joined #ruby
beneggett has joined #ruby
<bricker> elfuego: use ['count']
phil is now known as Guest47166
<bricker> or
<bricker> 'regular_reader'
<bricker> (they're aliases)
Grantlyk has quit [Remote host closed the connection]
danjordan has quit [Ping timeout: 246 seconds]
beneggett has quit [Client Quit]
coco_ has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
krandi has joined #ruby
polysics has joined #ruby
krandi has quit [Remote host closed the connection]
mistermocha has joined #ruby
coco has joined #ruby
dapz has joined #ruby
baroquebobcat has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justin_pdx has joined #ruby
snockerton has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkgudboy has joined #ruby
mjuszcza_ has quit []
agarie_ has joined #ruby
beneggett has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jen_ has joined #ruby
MatthewsFace has joined #ruby
dj_zubehoer has joined #ruby
digitalZombie has quit [Remote host closed the connection]
senayar has quit []
coco has quit [Ping timeout: 252 seconds]
Pumukel has quit [Ping timeout: 256 seconds]
snockerton has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
<arup_r> Well Why am I getting those blanks... In Rails view ?
gluten_hell has quit [Quit: Computer has gone to sleep.]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phale has joined #ruby
<timanema> arup_r: it might be your link styling and/or it might be your team names have spaces in them
<phale> does cloudflare always block requests
<pipework> arup_r: Try #rubyonrails
<Senjai> phale: If it did, I would probably say it wouldnt be fulfilling its usecase
<pipework> phale: Stop trying to DoS the source. :p
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<phale> pipework im not
j_mcnally has joined #ruby
<phale> i just requested it one time and it tells me that i have tried to access a cf ip or whatever
m8 has joined #ruby
<Senjai> probably a cors issue
ki0 has quit [Ping timeout: 246 seconds]
tvw has quit []
posixpascal has joined #ruby
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
Shazaum has joined #ruby
<phale> so what do i do
<Sp4rKy> 4
Takle has joined #ruby
davejacobs has joined #ruby
spyderman4g63 has joined #ruby
x1337807x has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
phale has quit [Quit: leaving]
<shevy> 42!
mistermocha has quit [Remote host closed the connection]
<jhass> 5!
mistermocha has joined #ruby
oki has quit [Ping timeout: 252 seconds]
<shevy> that is odd
<shevy> we were even before you came jhass!
chrishough has joined #ruby
<jhass> shevy: but don't you know the pentabarf?
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
<jhass> or maybe more importantly the law of five?
kblake has quit [Remote host closed the connection]
davejacobs has quit [Ping timeout: 255 seconds]
sigurding has joined #ruby
deric_skibotn has joined #ruby
zachrab has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
apeiros_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
jlebrech has quit [Remote host closed the connection]
Kricir has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
graydot has quit [Quit: graydot]
kachi8 has quit [Remote host closed the connection]
SixiS has quit [Quit: SixiS]
coco has joined #ruby
dj_zubehoer has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
kblake has joined #ruby
m8 has quit [Quit: Sto andando via]
zeel has quit [Quit: Lost terminal]
m8 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Quit: WeeChat 1.1.1]
scripore has joined #ruby
jenrzzz has joined #ruby
JDiPierro has quit [Remote host closed the connection]
a5i has quit []
bMalum has joined #ruby
devdazed has joined #ruby
graydot has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
dj_zubehoer has quit [Remote host closed the connection]
shevy has joined #ruby
coco has quit [Ping timeout: 256 seconds]
paradoja has quit [Ping timeout: 252 seconds]
Bounga has quit [Quit: Bounga]
w0rldmaker has quit [Ping timeout: 256 seconds]
niko has joined #ruby
Guest47166 has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 255 seconds]
w0rldmaker has joined #ruby
<arup_r> ponga: ^^^
<ponga> why does arup_r like me so much
jobewan has joined #ruby
<arup_r> We don't need to cry anymore
razieliyo has joined #ruby
<ponga> what's this
<arup_r> read the mail ponga :
<ponga> what ..the
<ponga> they love python too much to do this...!
<arup_r> Ruby got selected in GSoF
<ponga> can't believe it
<ponga> is it legit?
<arup_r> yes
<jhass> GSoC is weird this year
<jhass> mozilla got rejected
segmond has quit [Ping timeout: 256 seconds]
<havenwood> Ruby and Clojure! \o/
psy has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ponga> lol they had Jruby BEFORE ruby?
<ponga> that's funny
sdrew has joined #ruby
giuseppesolinas has quit [Ping timeout: 245 seconds]
<workmad3> ponga: google likes java
gfawcettpq has quit [Ping timeout: 256 seconds]
<ponga> ewwww
anaeem1_ has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
freerobby has quit [Quit: Leaving.]
kayloos has joined #ruby
sigurding has quit [Quit: sigurding]
giuseppesolinas has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
niko has quit [Read error: Connection reset by peer]
aarwine has joined #ruby
dapz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aarwine> ruby's string.start_with("will", "accept", "multiple", "options") but if I have a list_of_options=["will", "accept", "multiple", "options"] how can I invoke start_with with the options from the list instead of statically?
fabrice31 has joined #ruby
bradleyprice has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
__main__ has quit [Ping timeout: 250 seconds]
<havenwood> aarwine: string.start_with? *list_of_options
kalusn has quit [Ping timeout: 245 seconds]
<havenwood> aarwine: a splat!
sambao21 has quit [Quit: Computer has gone to sleep.]
Darryl___ has quit [Quit: Connection closed for inactivity]
Zai00 has quit [Quit: Zai00]
kayloos has quit [Ping timeout: 250 seconds]
<arup_r> +1
dfinninger has quit [Remote host closed the connection]
jenrzzz has joined #ruby
razieliyo has quit [Remote host closed the connection]
Hirzu has joined #ruby
razieliyo has joined #ruby
wallerdev has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
psy has quit [Disconnected by services]
psy_ has joined #ruby
Hirzu has quit [Remote host closed the connection]
oki has joined #ruby
segmond has joined #ruby
bluOxigen has joined #ruby
sarkis has joined #ruby
<sarkis> how would i rescue from this exception? Elasticsearch::Transport::Transport::Errors::NotFound: [404]
Crisix has joined #ruby
Hirzu has joined #ruby
<sarkis> is it simply rescue Elasticsearch::Transport::Transport::Errors::NotFound
red_horned_rihno has quit [Ping timeout: 256 seconds]
<sarkis> ah it is - answered my own Q
mleung has joined #ruby
lkba has joined #ruby
SOLDIERz has joined #ruby
godd2 has joined #ruby
w0rldmaker has quit [Ping timeout: 272 seconds]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shevy has quit [Ping timeout: 264 seconds]
freezevee has joined #ruby
ghr has joined #ruby
skj3gg has joined #ruby
<arup_r> lol
qiffp has quit [Ping timeout: 252 seconds]
terlar has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
livathinos has quit [Remote host closed the connection]
posixpascal has quit [Quit: Textual IRC Client: www.textualapp.com]
shevy has joined #ruby
rbennacer has quit [Remote host closed the connection]
snockerton has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<freezevee> can someone tell me how do I require a .rb file in the same folder with my rest of the files ?
niko has joined #ruby
gfawcettpq has joined #ruby
oki has quit [Ping timeout: 246 seconds]
randiman has joined #ruby
oki has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<apeiros_> freezevee: require_relative, or set $LOAD_PATH up to include that directory
<jhass> freezevee: if you don't want to setup load path and have nothing that does for you (like rubygems), require_relative
<freezevee> require_relative works 100%
<freezevee> but I have seen it nowhere so I am trying with require
<freezevee> I've seen this $LOAD_PATH but I am not sure where do I set it up ?
<avril14th> freezevee: using Rails?
<freezevee> avril14th: no just ruby
<avril14th> k
<apeiros_> freezevee: setup of $LOAD_PATH is the responsibility of the executable
<pipework> freezevee: Pathname.glob is pretty cool. Alternately, Dir.glob
__main__ has joined #ruby
nateberkopec has joined #ruby
toretore has joined #ruby
jottr_ has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
<freezevee> so I suppose that If I want to pack the entire project into a gem later I should go with require_relative right ?
sinkensa_ has joined #ruby
Regulati_ has quit [Remote host closed the connection]
<jhass> no
<apeiros_> no
randiman has quit [Ping timeout: 246 seconds]
<apeiros_> you go with having a proper lib dir, called 'lib'
bMalum has quit [Remote host closed the connection]
<freezevee> I have it
<apeiros_> rubygems automatically adds that to $LOAD_PATH for installed gems
<jhass> freezevee: bundler gem template?
tvon has joined #ruby
coco has joined #ruby
<apeiros_> and for local development, use ruby -Ilib
<jhass> or by hand?
<freezevee> hmm by hand
<jhass> then ruby -Ilib
oki has quit [Ping timeout: 264 seconds]
razieliyo has quit [Quit: Saliendo]
<jhass> I also tend to setup load path in the spec/test_helper
<pipework> apeiros_: I'm actually fond of having a file only in development that modifies $LOAD_PATH that doesn't get into the gem.
<pipework> I'm not sure why that'd be a bad thing though.
<apeiros_> jhass: yes, and that's IMO ok, since that's arguably part of the (test) executable
<apeiros_> pipework: other than what jhass said, I have none
<pipework> apeiros_: Gotcha.
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
red_horned_rihno has joined #ruby
<freezevee> jhass: ruby -Ilib does nothing
oki has joined #ruby
niko has quit [Read error: Connection reset by peer]
<jhass> freezevee: on its own, yes
<freezevee> hmm
fryguy91 has quit [Quit: Leaving.]
<jhass> where you did ruby foo.rb, do ruby -Ilib foo.rb
<freezevee> still getting /kernel_require.rb:54:in `require': cannot load such file
randiman has joined #ruby
<freezevee> I suppose I don't need to include 'lib/
<jhass> what are you running from which folder and how does the require look like and where's that file located?
<jhass> ah yes, don't include lib/
<apeiros_> freezevee: you do `require 'lib/…'` now? if so, yes, that's wrong
coco has quit [Ping timeout: 252 seconds]
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> the path given to require is relative to a path in $LOAD_PATH
psy_ has quit [Ping timeout: 246 seconds]
x77686d has joined #ruby
<freezevee> and I suppose also without ".rb"
<apeiros_> yes
<jhass> while it does no harm, it's not needed
<freezevee> jhass: I am running ruby.rb main.rb inside the /lib
<apeiros_> IMO preferred without
mkaesz has joined #ruby
coco has joined #ruby
<freezevee> main.rb has require 'myproject' and it should load a very simple basic class
<apeiros_> freezevee: an executable does not belong into lib
Hirzu has quit [Remote host closed the connection]
<apeiros_> and you pass the path to the lib dir with -I
<apeiros_> so if you're within lib, it's ruby -I.
<jhass> so we recommend to go up one dir, move the executable to bin/ and do ruby -Ilib bin/my_gem
<freezevee> am I doing it completely wrong ?
w0rldmaker has joined #ruby
beneggett has joined #ruby
jhwhite has quit [Ping timeout: 240 seconds]
<freezevee> rather than trying to fix something wrong, should I build it from scratch with bundle gem myproject ?
<apeiros_> not necessarily
<freezevee> jhass: I'll try what you said
<jen_> Senjai:
<jen_> hi
jenrzzz has quit [Ping timeout: 255 seconds]
danjordan has joined #ruby
<freezevee> ok I moved main.rb to /lib
dj_zubehoer has joined #ruby
<jhass> huh?
<jen_> jhass and havenwood with the help of senjai. here in this room, we made some progress with the Ruby script but still getting a nagging SSL issue.
gluten_hell has joined #ruby
<freezevee> jhass: and executed ruby bin/main.rb
<freezevee> is that what you said ?
mkaesz has quit [Ping timeout: 240 seconds]
<jhass> freezevee: almost ruby -Ilib bin/main.rb
<jhass> but don't name your executable main.rb
jhwhite has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
phale has joined #ruby
<phale> can u access the deep web with ruby
<phale> without tor
<jhass> that'll be awkward when your gem is installed and it's in the path
mjuszczak has joined #ruby
<jhass> phale: what's the deep web?
<freezevee> jhass: hmm something's happening
<phale> i have no idea but i can buy weed from it
<phale> so i need it
ki0 has joined #ruby
jenrzzz has joined #ruby
<freezevee> jhass: how do I call the class? simply Myclass.mymethod ?
<jhass> phale: find out, that'll answer your question
<phale> okay
oo_ has joined #ruby
<jhass> freezevee: that seems to lack context :)
<jhass> remember, I do not see what you're doing/have any kind of access to your computer
<freezevee> I love solving problems, am I sick ?
<jhass> no, it's called "programming"
<freezevee> lol
<freezevee> I mean the more problems I see the more I enjoy it
jerius has quit [Quit: /quit]
danjordan has quit [Ping timeout: 252 seconds]
snockerton has joined #ruby
jerius has joined #ruby
<freezevee> jhass: I got a message bin/main.rb:6:in `<main>': uninitialized constant Folderscan (NameError)
fryguy9 has joined #ruby
<jhass> do you require the file that defines it?
<freezevee> Folderscan is my class inside the /lib/folderscan.rb
oki has quit [Ping timeout: 264 seconds]
<freezevee> yeap require 'folderscan'
<jhass> mmh
<jhass> and the require is at the top?
<freezevee> jhass: but I am calling it with new_scan = Folderscan.new("new scan", full_path)
marr has quit []
<freezevee> yes on the top
<jhass> mmh
<jhass> cat lib/folderscan.rb
coco has quit [Ping timeout: 256 seconds]
<jhass> verify it relly defines that class
<jhass> at toplevel namespace
kalusn has joined #ruby
jen_ has left #ruby [#ruby]
<freezevee> it does
<freezevee> does it matter If it's a module or a class? I guess not
ki0 has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
jenrzzz has quit [Ping timeout: 245 seconds]
yeticry has quit [Ping timeout: 256 seconds]
<jhass> for calling .new on it it does matter, but that should give a different error
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> any chance of maybe committing your current state and pushing it to github or something like that?
oo_ has quit [Ping timeout: 264 seconds]
phale has left #ruby [#ruby]
<shevy> guys
<shevy> we must use CamelCase
<jhass> shevy: 2011 is so old...
<freezevee> jhass: I am not so fluent with github
scripore has quit [Quit: This computer has gone to sleep]
yeticry has joined #ruby
wallerdev has joined #ruby
Hirzu has joined #ruby
<freezevee> but I'll try
<shevy> good science lasts forever!
<shevy> actually we are already using camelcase
<shevy> :)
<shevy> class WaterContainer
panga has joined #ruby
Matthews_ has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
oki has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
Matthews_ has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
Matthews_ has joined #ruby
baweaver has joined #ruby
B1n4r10 has quit [Max SendQ exceeded]
MatthewsFace has quit [Ping timeout: 250 seconds]
rkgudboy has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
rdark has joined #ruby
baweaver has quit [Remote host closed the connection]
Grumelo has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgunr has quit [Ping timeout: 256 seconds]
sinkensa_ has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
w0rldmaker has quit [Ping timeout: 245 seconds]
oki has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
mary5030 has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
dj_zubehoer has quit [Remote host closed the connection]
gluten_hell has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<shevy> test
goshdarnyou has joined #ruby
zorak8 has quit [Ping timeout: 246 seconds]
mjuszczak has quit []
shadoi has joined #ruby
agarie_ has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
panga has quit [Quit: Leaving...]
agarie has joined #ruby
sandelius has joined #ruby
segmond has quit [Ping timeout: 250 seconds]
sandelius has quit [Max SendQ exceeded]
sandelius has joined #ruby
unclouded has joined #ruby
Tuxero has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
Nahra has quit [Remote host closed the connection]
gluten_hell has joined #ruby
xpoqp has quit [Ping timeout: 252 seconds]
agarie has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
erichmenge has quit [Ping timeout: 246 seconds]
agarie has joined #ruby
oki has joined #ruby
lolmaus has joined #ruby
xpoqp has joined #ruby
marr has joined #ruby
mjuszczak has joined #ruby
withnale__ has quit [Ping timeout: 245 seconds]
skj3gg has joined #ruby
mikecmpbll has joined #ruby
baweaver has joined #ruby
sambao21 has joined #ruby
godd2 has quit [Remote host closed the connection]
mjuszczak has quit [Client Quit]
aerth has quit [Ping timeout: 264 seconds]
rodferso1 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 240 seconds]
_Andres has joined #ruby
jonr22 has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
kirun has joined #ruby
oki has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
aerth has joined #ruby
sinkensabe has joined #ruby
erichmenge has joined #ruby
oki has joined #ruby
tvon has quit [Quit: leaving]
a5i has joined #ruby
coco has joined #ruby
lektrik has joined #ruby
godd2 has joined #ruby
em0ral has joined #ruby
dfinninger has joined #ruby
w0rldmaker has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
tmtwd has joined #ruby
xpoqp has quit [Changing host]
xpoqp has joined #ruby
patrick99e99 has joined #ruby
segmond has joined #ruby
sevvie has joined #ruby
ponga has joined #ruby
Waheedi has joined #ruby
<patrick99e99> hi ruby buddies... this may be a really dumbo quesiton, but I was wondering-- is there any kind of magical ruby method to override the presence of an object? Kind of like I can say module Foo; def self.nil?; true; end; end; ... Foo.nil? ==> true ... I would also like a way I can do: Foo and get nil.. so I can just do x = Foo; unless x; puts "I want to see this even though x is defined as the Foo module"; end ....
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
it0a has quit [Ping timeout: 252 seconds]
<godd2> I want to believe he typed that without taking a breath
<jhass> Foo = nil
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
agarie has quit [Remote host closed the connection]
valkyrka has joined #ruby
<patrick99e99> jhass no... ? I don't want Foo to be nil...
<patrick99e99> I am trying to implement a null object pattern...
<jhass> so the answer is no ;)
<patrick99e99> and I want an object that can represent a black hole...
w0rldmaker has quit [Ping timeout: 246 seconds]
<patrick99e99> I see..
Grantlyk has joined #ruby
<patrick99e99> I have to do Foo.nil? then... bummer
Hirzu has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tgunr has joined #ruby
tgunr has quit [Max SendQ exceeded]
agarie has joined #ruby
gr33n7007h has joined #ruby
freerobby has quit [Quit: Leaving.]
rdark has quit [Quit: leaving]
<godd2> patrick99e99 null object pattern is for a particular object, not any in general
rbennacer has joined #ruby
iamjarvo has joined #ruby
tgunr has joined #ruby
sigurding has joined #ruby
it0a has joined #ruby
ghr has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
<godd2> So like for a NullUser where you return sensible nullish things for methods. like NullUser#email would return 'no email' or something
sinkensa_ has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
sinkensabe has joined #ruby
niko has joined #ruby
plashchynski has quit [Quit: plashchynski]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
<shevy> a black hole object
<shevy> now you are challenging ruby's object system
<shevy> it can't quite yet simulate the universe
shevy has quit [Excess Flood]
red_horned_rihno has quit [Ping timeout: 246 seconds]
shevy has joined #ruby
coco has quit [Ping timeout: 265 seconds]
graydot has quit [Quit: graydot]
toretore has quit [Quit: This computer has gone to sleep]
bhegel has quit [Quit: bhegel]
replay has joined #ruby
<freezevee> jhass: I made it https://github.com/chrisvel/folderscan
<freezevee> yoohoo !
<jhass> \o/
<jhass> class FolderScan
<jhass> new_scan = Folderscan.new
<jhass> FolderScan != Folderscan
<freezevee> yes I am idiot in case you're going to ask
<freezevee> simply like that
topolinux has quit [Ping timeout: 246 seconds]
Hirzu has joined #ruby
<freezevee> I keep the legend of wrong-case errors alive
<freezevee> thanks a lot
segmond has quit [Ping timeout: 264 seconds]
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n80 has joined #ruby
kaiZen- has joined #ruby
gfawcettpq has quit [Ping timeout: 255 seconds]
ki0 has quit [Remote host closed the connection]
niko has quit [Read error: Connection reset by peer]
lolmaus has quit [Quit: Konversation terminated!]
mistergibson has joined #ruby
ki0 has joined #ruby
<mistergibson> is it wise to do byte-pattern matching with Regex? If so, anyone got a cheetsheet, I suck at regex
<jhass> mistergibson: what do you mean?
bhegel has joined #ruby
<mistergibson> jhass, I was wondering about doing pattern matching to identify file headers
shevy has quit [Ping timeout: 240 seconds]
<patrick99e99> godd2: the idea was in a rails serializer I want to do: def service; @options[:service] || Nullbuddy; end... And then other methods can do: def name; if service; 'omg'; else; 'lol'; end... But I have to do if service.nil?; 'omg'; else 'lol'...
sandelius has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
baroquebobcat has quit [Quit: baroquebobcat]
<mistergibson> I can get the bytes, but I was looking into using regex for quick pattern matching
<patrick99e99> Nullbuddy has def nil?; true; end...
mbeasley has joined #ruby
<patrick99e99> err def self.nil? i mean
pragmatism has joined #ruby
graydot has joined #ruby
<jhass> mistergibson: hard to tell without knowing the possible values you want to match against
Spooner has joined #ruby
<mistergibson> jhass, I'd look those up prior of course
Grantlyk has quit [Remote host closed the connection]
<godd2> patrick99e99 perhaps in this case you should make a class called NullService that wraps nil-like functionality for non-existing services
Pumukel has joined #ruby
<mistergibson> jhass, for instance: file that begins with FEFF0CB1
<godd2> so that service.name will return 'omg' if it's a NullService and 'lol' if it's some genuine service or whatever you want
baroquebobcat has joined #ruby
otisZart has joined #ruby
<jhass> mistergibson: so it's actually no pattern but a static value?
w0rldmaker has joined #ruby
<jhass> .bytes[0, 4] == [0xfe, 0xff, 0x0c, 0xb1]
<mistergibson> jhass, ok - it is a byte pattern on the header of a file. I plan to sample the first 4K of the file and see if I can find the pattern that I already know for that file format - see?
FooMunki_ has quit [Quit: FooMunki_]
chinmay_dd has joined #ruby
<mistergibson> jhass, I just don't know how to do hex matching in regex
shevy has joined #ruby
patrick99e99 has quit [Quit: leaving]
Hirzu has quit [Remote host closed the connection]
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
<mistergibson> jhass, well, I'd rather use regex because I may have to sift though some bytes
ferr has quit [Quit: WeeChat 1.1.1]
mrsolo has quit [Ping timeout: 264 seconds]
jzigmund has quit [Ping timeout: 245 seconds]
lsmola has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
rodferso1 has quit [Quit: leaving]
rodfersou has joined #ruby
randiman has quit [Quit: (null)]
mrsolo has joined #ruby
agent_white has joined #ruby
shadoi has quit [Ping timeout: 252 seconds]
<jhass> mistergibson: still not entirely convinced but make sure to read as binary (ASCII-8bit) and just match against /\xFE\xFF\x0C\xB1/n
djellemah has quit [Quit: Leaving]
sinkensa_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
sinkensabe has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
jzigmund has joined #ruby
^Denis has joined #ruby
segmond has joined #ruby
patrick99e99 has joined #ruby
tgunr has joined #ruby
dEPy has quit [Quit: (null)]
doodleha_ has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Read error: Connection reset by peer]
Grantlyk has joined #ruby
sinkensa_ has quit [Read error: Connection reset by peer]
adriancb has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
doodlehaus has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
doodlehaus has joined #ruby
odin22 has quit [Ping timeout: 245 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
gfawcettpq has joined #ruby
piotrj has quit [Remote host closed the connection]
nisstyre has joined #ruby
blackmesa has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
piotrj has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
plashchynski has joined #ruby
MasterPiece has joined #ruby
martinbmadsen has joined #ruby
meshugga has joined #ruby
davidhq has quit [Quit: Textual IRC Client: www.textualapp.com]
bhegel has quit [Quit: bhegel]
<meshugga> hey gals and guys
zorak8 has joined #ruby
<meshugga> what's the best ruby learning ebook for people who can already program other languages?
mjuszczak has joined #ruby
<meshugga> something to read on a tablet, no fixed size pdfs preferred
<meshugga> ruby 2.0+ ideally
dj_zubehoer has joined #ruby
adriancb has joined #ruby
davidhq has joined #ruby
lsmola has joined #ruby
lolmaus has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
Asher has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
vdamewood has joined #ruby
ki0_ has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
mjuszczak has quit [Client Quit]
fabrice31 has joined #ruby
baweaver has joined #ruby
mjuszczak has joined #ruby
davidhq has quit [Client Quit]
tvon has joined #ruby
HOrangeJewce has joined #ruby
baweaver has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
DerisiveLogic has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<a5i> Hi DerisiveLogic
doodlehaus has joined #ruby
<DerisiveLogic> a5i: Haha, figures.
baroquebobcat has joined #ruby
Millsdev has quit [Quit: Leaving.]
WildBamboo-Josh has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
zacstewart has quit [Remote host closed the connection]
sinkensabe has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
coco has joined #ruby
<HOrangeJewce> Hi, I'm creating a gem but am having problems with my require path, I'm getting an error when attempting to use a file located under lib/[gemname]/ saying the file can't be found even though it's listed in the gemspec. I think I'm missing something obvious.
<HOrangeJewce> any help would be much appreciated
fabrice31 has quit [Ping timeout: 256 seconds]
shadoi has joined #ruby
My_Hearing is now known as Mon_Ouie
qiffp has joined #ruby
<jhass> HOrangeJewce: verify the actually build gem includes the file
WildBamboo-Josh has quit [Client Quit]
<HOrangeJewce> jhass: how can i verify that?
doodleha_ has joined #ruby
<jhass> .gem files are zip files
Waheedi has quit [Quit: Waheedi]
<jhass> or look at the installed location
baroquebobcat has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
<HOrangeJewce> ok i'm looking now
chrishough has quit [Client Quit]
doodlehaus has quit [Ping timeout: 246 seconds]
dj_zubehoer has joined #ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
<HOrangeJewce> jhass: It is in the gem/data.tar.gz
<HOrangeJewce> under lib/sensu-plugins-aws/helpers.rb
mary5030 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce> HOrangeJewce are you sure you want to have lib/sensu-plugins-aws/helpers as the require path
<weaksauce> should just be lib/sensu-plugins-aws
GnuYawk has quit [Ping timeout: 255 seconds]
<HOrangeJewce> weaksauce: I don't, but I tried that and it didn't help
<HOrangeJewce> I will try again though
<Mon_Ouie> Well, it should really just be lib --- indeed, won't solve the issue though
<havenwood> HOrangeJewce: So if 'lib/sensu-plugins-aws', weaksauce beat me to it.
sambao21 has quit [Quit: Computer has gone to sleep.]
Limix has joined #ruby
<HOrangeJewce> yeah having just lib
<HOrangeJewce> allows me to require '
<HOrangeJewce> 'sensu-plugins-aws', but not 'sensu-plugins-aws/helpers'
<Mon_Ouie> I'd also check the files installed in the gem installation directory
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has quit []
mrgrieves has joined #ruby
<Mon_Ouie> <installation dir printed out using gem env>/gems/your-gem-X.Y.Z/lib/
shevy has joined #ruby
<jhass> HOrangeJewce: is the version you pushed to rubygems.org the one you're trying?
<HOrangeJewce> no I'm installing a localbuild
meshugga has quit [Ping timeout: 255 seconds]
WildBamboo-Josh has joined #ruby
<HOrangeJewce> I haven't pushed anything to rubygems
<Mon_Ouie> Yes, and locally the files are installed in that directory
<Mon_Ouie> Oh, didn't read jhass's question, sorry
bhegel has joined #ruby
sambao21 has joined #ruby
<Mon_Ouie> And in that case, make sure you installed your gem file and not the remote gem
mary5030 has quit [Ping timeout: 265 seconds]
keen__________76 has joined #ruby
<HOrangeJewce> I'm not just calling gem install on the gem name I'm explicitly calling it on the local file :)
<jhass> try removing all installed versions
keen__________75 has quit [Ping timeout: 240 seconds]
<HOrangeJewce> the upstream gem was a first effort that is missing a lot of features I've been working on
rodfersou has quit [Quit: leaving]
<jhass> and then install the local file again
JoshGlzBrk has joined #ruby
<HOrangeJewce> there's only the one version I've generated installed but I can try again
scripore has joined #ruby
<HOrangeJewce> bumped the gem version # to be sure
ParmesanCaesar has joined #ruby
jamgood96 has joined #ruby
jamgood96 has left #ruby [#ruby]
Soda has quit [Remote host closed the connection]
<Mon_Ouie> Also possibly use --local to make sure it doesn't check the remote repository
jwang has quit [Ping timeout: 246 seconds]
piotrj has quit [Remote host closed the connection]
<HOrangeJewce> ok ill reinstall with that but since I changed the gem version im quite sure I'm installing the right thing
piotrj has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<shevy> HOrangeJewce I often push new gem updates even just with minor changes
<shevy> you can always remove older gems too so essentially you could use rubygems as a weak version control system
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ismaelga has quit []
JoshGlzBrk has quit [Ping timeout: 245 seconds]
meshugga has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
checkit has joined #ruby
<HOrangeJewce> shevy: Thanks for the tip. Not sure it helps with this problem though :'(
<HOrangeJewce> also the helpers file does exist in my local gem install
AlphaTech has joined #ruby
mjuszczak has joined #ruby
startupality has joined #ruby
zachrab has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jottr_ has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
<jhass> HOrangeJewce: so, quick recap, require 'sensu-plugins-aws' works but require 'sensu-plugins-aws/helpers' throws?
ta has quit [Remote host closed the connection]
<HOrangeJewce> jhass: looks like it actually doesn't work. I guess I misspoke
<HOrangeJewce> so neither are working
anaeem1_ has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
Grantlyk has quit []
<HOrangeJewce> but sensu-plugins-aws/lib is in my LOAD_PATH
<HOrangeJewce> :/
bradleyprice has joined #ruby
<jhass> weird
sinkensabe has joined #ruby
<jhass> gist the tree of the full path to it?
<HOrangeJewce> is rvm screwing me up?
<HOrangeJewce> jhass: Not following. full path to what
paolooo has joined #ruby
<HOrangeJewce> the lib dir?
_Andres has quit [Ping timeout: 252 seconds]
<jhass> yeah, tree /whatever/is/in/your/load/path/sensu-plugins/lib
abuzze_ has quit [Remote host closed the connection]
<jhass> +-aws, you get it
ghr has joined #ruby
skj3gg has joined #ruby
mjuszczak has quit []
dj_zubehoer has quit [Remote host closed the connection]
<HOrangeJewce> I dont' really want to tree my homedir
<HOrangeJewce> is that what you wanted?
<jhass> yes
<jhass> well no
<jhass> that doesn't seem to be the install location of the gem
<HOrangeJewce> oh
<HOrangeJewce> ill tree that
<HOrangeJewce> my bad
odigity has quit [Ping timeout: 265 seconds]
sdrew has joined #ruby
juanpablo_ has quit [Quit: (null)]
ismaelga has joined #ruby
mjuszczak has joined #ruby
w0rldmaker has quit [Ping timeout: 252 seconds]
niko has joined #ruby
aswen has joined #ruby
ismaelga has quit [Remote host closed the connection]
danjordan has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
<HOrangeJewce> commented with the output from rvm list
Zai00 has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
_Andres has joined #ruby
mrgrieves has quit [Quit: Lost terminal]
<jhass> HOrangeJewce: can you maybe upload the .gem somewhere?
sinkensabe has quit [Remote host closed the connection]
<HOrangeJewce> jhass: sure it's opensource, where would you like me to upload it?
<jhass> uh, dunno, I have my ownCloud for such stuff
Asher has joined #ruby
<HOrangeJewce> I can push it to my alpha branch of the github i suppose
<jhass> whatever works for you
danjordan has quit [Ping timeout: 252 seconds]
w0rldmaker has joined #ruby
Dolphi has joined #ruby
niko has quit [Quit: leaving]
patrick99e99 has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: Leaving]
MasterPiece has quit [Quit: Leaving]
<HOrangeJewce> looks like github tosses binaries
ki0_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<HOrangeJewce> had no idea
patrick99e99 has joined #ruby
<HOrangeJewce> oh nvm im a scrub
<HOrangeJewce> you can get the .gem from there
plashchynski has quit [Quit: plashchynski]
phutchins has quit [Ping timeout: 245 seconds]
SixiS has joined #ruby
DerisiveLogic has quit [Ping timeout: 252 seconds]
davejacobs has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
ych4k3r has joined #ruby
diegoviola has joined #ruby
Takle has quit [Remote host closed the connection]
w0rldmaker has quit [Client Quit]
bodge has joined #ruby
martinbmadsen has quit [Ping timeout: 246 seconds]
otisZart has joined #ruby
plashchynski has joined #ruby
segmond has quit [Ping timeout: 265 seconds]
odigity has joined #ruby
Kricir has quit [Remote host closed the connection]
<bodge> Just upgraded 2.2.0 to 2.2.1 and witnessed an avalanche of "Ignoring <gem> because its extensions are not built. Try: gem ....". Am I really going to have to go through all this every time I upgrade to a minor point release?
ych4k3r_ has quit [Ping timeout: 250 seconds]
alkoma has joined #ruby
beneggett has joined #ruby
mattwildig has joined #ruby
qhartman has quit [Quit: Ex-Chat]
valkyrka has quit [Ping timeout: 264 seconds]
davejacobs has quit [Ping timeout: 250 seconds]
valkyrka has joined #ruby
Hirzu has joined #ruby
despai has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
kaiZen- has quit [Quit: Computer has gone to sleep.]
phoo1234567 has joined #ruby
ParmesanCaesar has quit [Ping timeout: 256 seconds]
adriancb has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
despai has quit [Client Quit]
Hirzu has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
<jhass> HOrangeJewce: getting unitialized constant Timeout::Error when loading that file directly, but the require seems working here
<havenwood> bodge: You can rebuild all extensions with: gem pristine --extensions
Zai00 has quit [Quit: Zai00]
sambao21 has joined #ruby
alvaro_o has joined #ruby
kith has quit [Quit: kith]
willharrison has joined #ruby
kith has joined #ruby
<HOrangeJewce> jhass: did you just touch a ruby file and run the include?
<jhass> HOrangeJewce: just fired up pry
<HOrangeJewce> I wonder if my rvm is broke
AlphaTech has quit []
mattwildig has quit []
<jhass> but ruby -r'sensu-plugins-aws/helpers' -e '' does the same
<HOrangeJewce> jhass: that's what happens to me too when I run the require in irb
segmond has joined #ruby
baweaver has joined #ruby
Dolphi has quit [Ping timeout: 272 seconds]
<HOrangeJewce> ill check that out i guess
Morkel has joined #ruby
<jhass> HOrangeJewce: but in a script you get a LoadError?
<HOrangeJewce> jhass: yes
<jhass> how exactly do you run that script?
<havenwood> bodge: Adding --env-shebang to your .gemrc also helps with being able to update without rebuilding. It look like it won't be a default option until RubyGems 2.5, see: https://github.com/rubygems/rubygems/issues/1049
fryguy9 has quit [Quit: Leaving.]
<havenwood> bodge: You can add it to your .gemrc: gem: --env-shebang
<HOrangeJewce> jhass: I run one of the included binaries in the gem
odin22 has joined #ruby
<HOrangeJewce> check-vpc-vpn.rb
<bodge> havenwood: Thanks.
<ton31337> hey
AlexRussia has joined #ruby
<ton31337> what does rb_call and rb_call0 ?
enebo has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
<jhass> HOrangeJewce: oh interesting
<jhass> I wonder if sensu messes somehting up there
<HOrangeJewce> its possible i guess
bodge has quit [Quit: BitchX: No wardrobe malfunctions here!]
shevy has joined #ruby
<jhass> HOrangeJewce: bah, we're both stupid :P
<HOrangeJewce> but if i do a relative require on the file I don't see the problem
<jhass> require 'sensu-pulgins-aws/helpers'
<HOrangeJewce> oh?
patrick99e99 has quit [Ping timeout: 264 seconds]
<jhass> pulgins
andikr has quit [Remote host closed the connection]
hollywood has quit [Quit: Leaving]
<HOrangeJewce> i hate myself
robustus|Off is now known as robustus
<HOrangeJewce> the rage is real
sevvie has joined #ruby
jonr22 has joined #ruby
<jhass> I can understand
sigurding has quit [Quit: sigurding]
mjuszczak has quit []
patrick99e99 has joined #ruby
meschi has joined #ruby
bhegel has quit [Quit: bhegel]
jen_ has joined #ruby
<HOrangeJewce> jhass: thank you so so so much for the help
<HOrangeJewce> <3
<weaksauce> haha
bweston92 has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
EasyCo has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
segmond has quit [Ping timeout: 256 seconds]
piotrj has quit [Remote host closed the connection]
zyxelthrone has joined #ruby
piotrj has joined #ruby
enebo has quit [Ping timeout: 256 seconds]
justin_pdx has quit [Quit: justin_pdx]
omosoj has joined #ruby
AlexRussia has joined #ruby
<miah> ~.
enebo has joined #ruby
mjuszczak has joined #ruby
checkit has quit [Ping timeout: 256 seconds]
bhegel has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
baweaver has quit [Remote host closed the connection]
wallerdev has joined #ruby
ptrrr has joined #ruby
mjuszczak has quit [Client Quit]
<shevy> .~
Zai00 has joined #ruby
<havenwood> ton31337: oops, meant to link this the second time: https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L334-L349
<havenwood> well, and the comments above it
<havenwood> anyways, you get the point
ghostpl_ has joined #ruby
davejacobs has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
justin_pdx has joined #ruby
zerox6A61636B has joined #ruby
<rrrutr> why spree so slow
<havenwood> rrrutr: is it?
<jhass> rrrutr: because you no send PR to make it fast
bweston92 has joined #ruby
<havenwood> rrrutr: in production?
<rrrutr> development
<rrrutr> what is PR?
shum has quit [Quit: WeeChat 1.1.1]
jenrzzz has joined #ruby
<havenwood> Pull Request
<rrrutr> a lot of companies use one
shum has joined #ruby
zerox6A61636B has quit [Quit: leaving]
<rrrutr> spree is not bit app but comare to nopcommerce , whery slow
<rrrutr> *not big
SOLDIERz has quit [Quit: Be back later ...]
beneggett has quit [Ping timeout: 252 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
segmond has joined #ruby
decoponio has quit [Quit: Leaving...]
<rrrutr> could you recommend some tools to investigate perfomance?
sevvie has quit [Ping timeout: 245 seconds]
<havenwood> rrrutr: try running it in production mode.
<rrrutr> ok
AlexRussia has quit [Ping timeout: 264 seconds]
Millsdev has joined #ruby
spyderma_ has joined #ruby
Millsdev has left #ruby [#ruby]
sevvie has joined #ruby
baweaver has joined #ruby
beneggett has joined #ruby
jaequery has joined #ruby
spyderm__ has joined #ruby
zachrab has joined #ruby
ki0 has joined #ruby
spyderman4g63 has quit [Ping timeout: 246 seconds]
sarkis_ has joined #ruby
rushed has joined #ruby
Crisix has quit [Quit: Textual IRC Client: www.textualapp.com]
oki has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
oki has joined #ruby
<jen_> With the help of a developer, we implemented pry. Now, we are running in production and need to remove those binding.pry
<jen_> grep -r binding.py * isn’t helping.
spyderma_ has quit [Ping timeout: 256 seconds]
aswen has quit [Ping timeout: 245 seconds]
skj3gg_ has joined #ruby
<wasamasa> perhaps it helps to spell its name correctly "binding.pry"
sarkis has quit [Ping timeout: 244 seconds]
<jen_> ya ya ya of course
yatish27 has joined #ruby
mkaesz has joined #ruby
<yatish27> I want to parse a simple string like "My name is **NAME**" to "My name is <strong>NAME</strong>"
<yatish27> Hoe can I go ahead with this
Hijiri has quit [Quit: WeeChat 1.0.1]
zachrab has quit [Ping timeout: 264 seconds]
<jhass> yatish27: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
Morkel has quit [Quit: Morkel]
dtordable has joined #ruby
skj3gg has quit [Ping timeout: 244 seconds]
StoneCypher has quit [Ping timeout: 245 seconds]
<yatish27> jhass: Got it Thanks
dtordable has quit [Changing host]
dtordable has joined #ruby
ascarter has joined #ruby
<yatish27> Any heads up on how to go ahead with this ?
<jhass> yatish27: rubular.com if you want to go the regexp route
thumpba has joined #ruby
postmodern has joined #ruby
<yatish27> I tried but didnt get any
<jhass> note that markdown isn't well defined and quite a few edge case hard to handle with a regexp parser
<jhass> yatish27: maybe read through http://www.regular-expressions.info/ then
ascarter_ has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ismaelga has joined #ruby
sarkis_ is now known as sarkis
sarkis has quit [Changing host]
sarkis has joined #ruby
<yatish27> @jhass read didnt help
<yatish27> Still thanks for the info
<yatish27> if you get something tell em
bweston92 has quit [Ping timeout: 250 seconds]
segmond has quit [Ping timeout: 255 seconds]
ascarter has quit [Read error: Connection reset by peer]
shevy has quit [Ping timeout: 245 seconds]
<jhass> yatish27: there's no way you read through that comprehensive site in 2 minutes
<yatish27> I meant I read it before
otisZart has joined #ruby
em0ral has quit [Remote host closed the connection]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
snockert_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
topolinux has joined #ruby
StoneCypher has joined #ruby
Shazaum has quit [Quit: Leaving]
ParmesanCaesar has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
shevy has joined #ruby
jhwhite has quit [Quit: Lost terminal]
<HOrangeJewce> yatish27: you could always shell it out to sed
snockerton has quit [Ping timeout: 240 seconds]
arclitgold has quit [Quit: leaving]
<HOrangeJewce> ofc I'm not sure how a regex doesn't solve your problem
<jen_> Like python, is Ruby sensitive to indentation?
Kricir has quit [Client Quit]
<HOrangeJewce> jen_: no
qhartman has joined #ruby
jenrzzz has joined #ruby
FooMunki_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
skj3gg_ has quit [Quit: welp, see you later.]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segmond has joined #ruby
SixiS has quit [Quit: SixiS]
bweston92 has joined #ruby
maknz has joined #ruby
ismaelga has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
topolinux has quit [Quit: Sto andando via]
shevy has quit [Ping timeout: 255 seconds]
despai has joined #ruby
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
jobewan has quit [Quit: Leaving]
fabrice31 has joined #ruby
x1337807x has joined #ruby
mkaesz has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
agent_white has quit [Quit: bbl]
baroquebobcat has joined #ruby
beneggett has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
Ankhers has quit [Ping timeout: 252 seconds]
Parker0 has joined #ruby
paulfm has quit [Quit: Zzzzz...]
Guest65 has quit [Ping timeout: 246 seconds]
lektrik has quit [Read error: Connection reset by peer]
<ParmesanCaesar> exit
ParmesanCaesar has quit [Quit: leaving]
Soda has joined #ruby
reinaldob has quit [Remote host closed the connection]
apipkin has joined #ruby
<apipkin> Would anyone here be willing to help me debug an issue. It's related to jekyll, but any knowledge of the problem would help tremendously https://gist.github.com/apipkin/17162d82bc677ccdf2e9
JDiPierro has joined #ruby
StoneCypher has quit [Ping timeout: 246 seconds]
panga has joined #ruby
ponga has quit [Read error: No route to host]
<jhass> apipkin: do you have a Gemfile in that directory or any of the parent directories?
<apipkin> jhass: Yes, I have a Gemfile in this directory
<shadoi> apipkin: looks like the latest version of jekyll doesn't have the file lib/jekyll/version.rb
<jhass> apipkin: try bundle exec jekyll
SouL has quit [Remote host closed the connection]
<apipkin> `bundle exec jekyll serve` works, no problem
CorySimmons has joined #ruby
agarie has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 244 seconds]
tmtwd has quit [Remote host closed the connection]
StoneCypher has joined #ruby
enebo has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
<ducklobster> is there a up-to-date resource anyone can recommend for deployment / using bundler for ruby apps (not necessarily rails)
<ducklobster> or is bundler basically the default and i should just read their documentation front to back
aclearman037 has quit [Quit: I'm out!]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
tubuliferous has joined #ruby
shum has joined #ruby
dfinning_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
n80 has joined #ruby
mjuszczak has quit []
fryguy9 has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bhegel has quit [Quit: bhegel]
etdev has quit [Ping timeout: 265 seconds]
brb3 has quit [Quit: <.<]
mrsolo has quit [Quit: Leaving]
<havenwood> ducklobster: Bundler is indeed basically the default, so much so that its features are being incrementally merged into RubyGems, so sometime after Bundler 2 it'll theoretically be deprecated once RubyGems can entirely replace its functionality.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> ducklobster: http://bundler.io/v1.8/deploying.html
segmond has quit [Ping timeout: 245 seconds]
rekky has joined #ruby
mrgrieves has joined #ruby
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
werelivinginthef has quit [Remote host closed the connection]
robustus is now known as robustus|Off
odigity has quit [Ping timeout: 265 seconds]
yatish27 has quit []
<havenwood> a ducklobster isn't nearly as frightening sounding as a lobsterduck for some reason..
loechel has joined #ruby
valkyrka has quit [Ping timeout: 244 seconds]
delianides has quit [Remote host closed the connection]
mrgrieves has quit [Quit: leaving]
Pumukel has quit [Ping timeout: 252 seconds]
<ducklobster> thanks for the links havenwood!
<ducklobster> and for the new avatar ;)
<havenwood> ducklobster: :)
baroquebobcat has quit [Quit: baroquebobcat]
zachrab has quit [Remote host closed the connection]
Sembei has joined #ruby
<apipkin> Thanks jhass & shadoi! I needed to update my gulp task to run bundle exec instead of just jekyll :)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elfuego has quit [Quit: elfuego]
Pumukel has joined #ruby
spyderm__ has quit [Read error: Connection reset by peer]
starless has joined #ruby
m8 has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
lanemeyer has quit [Ping timeout: 265 seconds]
enebo_ has joined #ruby
jerematic has quit [Remote host closed the connection]
loechel has quit [Ping timeout: 252 seconds]
triple_b_ has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
riotjones has joined #ruby
enebo has quit [Ping timeout: 272 seconds]
kaiZen has joined #ruby
elfuego has joined #ruby
Tuxero has quit [Quit: Tuxero]
beneggett has joined #ruby
replay has quit [Ping timeout: 264 seconds]
adriancb_ has joined #ruby
Tuxero has joined #ruby
gmcintire has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
<GaryOak_> automating your automation, nice
ghr has joined #ruby
riotjone_ has quit [Ping timeout: 252 seconds]
rbennacer has quit [Ping timeout: 256 seconds]
jerematic has joined #ruby
segmond has joined #ruby
dandaman has joined #ruby
enebo has joined #ruby
baroquebobcat has joined #ruby
tmtwd has quit [Remote host closed the connection]
enebo_ has quit [Ping timeout: 250 seconds]
<dandaman> I have an array variable I want to be able to add to in a class, I created this method "def standards<<(new_standard)"
Tuxero has left #ruby [#ruby]
<dandaman> is that the correct way to declare that method to add to my @standards array?
elfuego has quit [Client Quit]
odigity has joined #ruby
zacstewart has quit [Remote host closed the connection]
<jhass> dandaman: well, does it work like you expect? ;)
<dandaman> jhass: no, syntax error, unexpected <<, expecting ';' or '\n'
<jhass> dandaman: so, << is special method name, it's allowed in itself, but not combined with other stuff
ghr has quit [Ping timeout: 264 seconds]
<jhass> object << "foo" is syntax sugar for object.<<("foo")
mjuszczak has joined #ruby
<jhass> there for object.accessor << "foo" is syntax sugar for object.accessor.<<("foo")
jerius has quit [Ping timeout: 240 seconds]
<dandaman> I just want to be able to go myClass.standards << my_standard_class
<dandaman> where myClass.standards is an array of standards :\
adriancb_ has quit [Read error: Connection reset by peer]
HOrangeJewce has quit [Quit: Leaving.]
<jhass> I got that
Aswebb_ has joined #ruby
<jhass> I was trying to explain what's happening you understand it
<jhass> does anything I said make any sense to you?
maletor has joined #ruby
mjuszczak has quit [Client Quit]
<dandaman> sorry, I'm doing a coding exercise which i need to have done in an hour, syntax isn't really an important thing for me to get right now
<dandaman> if i had unlimited time i'd take the time to understand it :\
<bradland> oh man
<jhass> sorry, with that attitude you shall fail
shevy has joined #ruby
<jhass> syntax is all there's to solve this
<bradland> i know you're not going to want to hear this, but the notion that you can learn programming by learning some incantations is a path to failure
<dandaman> no, syntax is not the programming exercise, i'm just doing it in ruby to appease them
<bradland> or rather, memorizing incantations
<dandaman> i know what you guys are talking about, i need to understand how ruby works, that is not my goal at the moment
<dandaman> when i have time i will learn that
<jhass> cool, then you didn't come to the right place
<jhass> bye
<havenwood> dandaman: to please who? if you don't want to understand, put parens around everything. >.>
StoneCypher has quit [Ping timeout: 272 seconds]
<shevy> dandaman you need to try to look at things from the ruby parser
<havenwood> shevy: or be one
<shevy> yeah like in order to understand your enemy, you must become the enemy
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> a being with a human head and arms, but the body of a Ruby parser
<wasamasa> lol
mbeasley has quit [Ping timeout: 246 seconds]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has quit []
johnh has joined #ruby
segmond has quit [Ping timeout: 252 seconds]
adriancb has joined #ruby
lele has joined #ruby
<bradland> dandaman: i like to dig around in rubinius source code when trying to figure out how features like foo << bar are implemented
oki has quit [Ping timeout: 245 seconds]
<havenwood> dandaman: When you don't have time to listen or understand, i'd suggest pasting a Gist of the offending code for more concrete answers.
johnh is now known as StoneCypherAW
x1337807x has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has joined #ruby
<havenwood> School assignment? Interview question? Curtsy while you're thinking. It saves time.
baroquebobcat has joined #ruby
ismaelga has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
tohsig has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
* havenwood goes back to being feverish.
havenwood has quit []
jobewan has joined #ruby
ruLBZ has joined #ruby
jonr22 has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
ismaelga has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
segmond has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
snockert_ is now known as snockerton
piotrj has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
piotrj has joined #ruby
it0a has quit [Ping timeout: 244 seconds]
reinaldob has quit [Ping timeout: 246 seconds]
dblessing has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
codecop has quit [Quit: Išeinu]
sgambino has quit [Remote host closed the connection]
freezevee has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
OrbitalKitten has joined #ruby
Dolphi has joined #ruby
jenrzzz has joined #ruby
segmond has quit [Ping timeout: 256 seconds]
commmmodo has joined #ruby
shevy has quit [Ping timeout: 256 seconds]
n80 has joined #ruby
livathin_ has joined #ruby
CorySimmons has quit [Quit: Bye!]
baweaver has joined #ruby
pandaant has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
max96at is now known as max96at|off
shevy has joined #ruby
<Dolphi> If I define my own function, can I call it behind a string: puts "Like this".example
<bradland> if you monkey patch string
<jhass> Dolphi: only if you define your method (it's not a function) inside the String class
<jhass> you should have a good reason to do that for production code though
<Dolphi> Functions and methods arent the same? Lol pardon my ignorance...
sevvie has quit [Ping timeout: 255 seconds]
<bradland> it's a language thing
<jhass> a method is a function that has an object as context, or in other words that's called on an object
<Dolphi> Well, I am using code to wrap the text in my text adventure game so that it looks nice and clean
<bradland> OOP languages use the term method because Objects have methods
mitchellhenke has joined #ruby
<Dolphi> I will have to use that method a lot throughout my program.
ruLBZ has quit [Quit: https://rrrrr.rolbz.ro]
<jhass> Dolphi: as I said I would do it in the output method instead
sevvie has joined #ruby
<jhass> instead of puts "Foo".formatted, do formatted_puts "Foo"
<jhass> and define formatted_puts
<Dolphi> jhass: Thanks buddy. :)
tunaCanBruh has quit [Ping timeout: 265 seconds]
<Dolphi> bradland: You never got around to teaching me Linux man!
zyxelthrone has quit [Ping timeout: 265 seconds]
<bradland> did you end up learning it anyway?
<bradland> :)
otisZart has joined #ruby
elfuego has joined #ruby
graydot has quit [Quit: graydot]
Musashi007 has joined #ruby
StoneCypherAW has quit [Ping timeout: 264 seconds]
<Dolphi> I haven't even got around to touching it actually :P I've been learning a bit of web dev but mostly just working. Six day weeks for the passed month or so.
<Dolphi> I'm still very interested in learning though, and I have Ubuntu Linux installed on VirtualBox. :)
leafybasil has joined #ruby
graydot has joined #ruby
segmond has joined #ruby
tunaCanBruh has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
graydot has quit [Client Quit]
shevy has quit [Ping timeout: 246 seconds]
StoneCypherAW has joined #ruby
wicope has quit [Read error: Connection reset by peer]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
livathin_ has quit []
dtordable has quit [Quit: • IRcap • 8.72 •]
rushed has quit [Quit: rushed]
graydot has joined #ruby
ki0 has quit [Remote host closed the connection]
odin22 has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 272 seconds]
graydot has quit [Client Quit]
adriancb has joined #ruby
Dolphi has quit [Ping timeout: 244 seconds]
Aswebb_ has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
fox_mulder_cp has joined #ruby
Aswebb_ has joined #ruby
beneggett has joined #ruby
<fox_mulder_cp> does anybody help me with RoR select_tag multiselect helper?
commmmodo has quit [Quit: commmmodo]
startupality has quit [Quit: startupality]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
bigmac has joined #ruby
<fox_mulder_cp> i try to pass select_tag collection, which i need select when page render, but it don't selected items, when rendered page, i must select it manually
yfeldblum has joined #ruby
segmond has quit [Ping timeout: 256 seconds]
enebo has quit [Ping timeout: 256 seconds]
shevy has joined #ruby
<apeiros_> fox_mulder_cp: #rubyonrails
Aswebb_ has quit [Ping timeout: 272 seconds]
plashchynski has quit [Quit: plashchynski]
<fox_mulder_cp> thanls
fox_mulder_cp has left #ruby [#ruby]
bricker has joined #ruby
rekky has quit [Remote host closed the connection]
ghr has joined #ruby
funburn has joined #ruby
freerobby has quit [Quit: Leaving.]
mjuszczak has quit []
devdazed has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
ismaelga has joined #ruby
starless has quit [Quit: Leaving]
replay has joined #ruby
paolooo has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 256 seconds]
Tinfoilhat_ has joined #ruby
Dolphi has joined #ruby
plashchynski has joined #ruby
shevy has joined #ruby
bigmac has quit [Ping timeout: 272 seconds]
Zai00 has quit [Quit: Zai00]
StoneCypherAW has quit [Ping timeout: 240 seconds]
RegulationD has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
Hijiri has joined #ruby
segmond has joined #ruby
rekky has joined #ruby
fabrice31 has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 272 seconds]
replay has quit [Ping timeout: 240 seconds]
snockerton has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 256 seconds]
rrrutr has quit [Quit: Leaving]
maknz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shevy has joined #ruby
havenwood has joined #ruby
snockerton has joined #ruby
replay has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
JDiPierro has quit [Remote host closed the connection]
nettoweb has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
segmond has quit [Ping timeout: 252 seconds]
blahwoop has joined #ruby
bruno-_ has quit [Ping timeout: 265 seconds]
dandaman has quit [Quit: Leaving.]
<blahwoop> i wrote a simple guess who game and i'm looking to refactor my code. it's over 200 lines. would anybody mine taking a quick look at it and give some advice? u can leave a comment on it. https://gist.github.com/iRichLau/5143bd87db385cbe5ad0
<blahwoop> thanks
<bradland> blahwoop, eh?
<bradland> HGTTG?
ismaelga has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 240 seconds]
<blahwoop> ?
lordkryss has quit [Quit: Connection closed for inactivity]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
<bradland> i feel like i recognize the name blahwoop from hitchhiker's guide to the galaxy
<blahwoop> haha
omosoj has quit [Ping timeout: 245 seconds]
justin_pdx has quit [Quit: justin_pdx]
<jhass> blahwoop: that extra line numbers are kind of distracting :P
<blahwoop> it's something i made up. been my nick for the past 20 years
sevvie has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
ndrei has joined #ruby
bhegel has joined #ruby
<blahwoop> jhass: ill remove them lol
DEA7TH has joined #ruby
sevvie has joined #ruby
<jhass> blahwoop: overall structure seems fine though
<blahwoop> anyway to make the ask methods less repetitive
<jhass> https://gist.github.com/iRichLau/5143bd87db385cbe5ad0#file-guess_who-rb-L107 isn't doing anything, reject is not self-modifying
Evan_ has quit [Quit: Oh shit the geek died!]
<jhass> .reject! would be
jonr22 has joined #ruby
blizzy is now known as _blizzy_
dandaman has joined #ruby
<blahwoop> woops!
Evan_ has joined #ruby
graydot has joined #ruby
<jhass> yeah, I do wonder if there's a smart way to factor out the game logic from the IO here
shevy has quit [Ping timeout: 255 seconds]
commmmodo has joined #ruby
spyderman4g63 has joined #ruby
<godd2> whoops! It worked!
shevy has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
omosoj has joined #ruby
<godd2> Look at all the things I'm *not* doing
dandaman has quit [Client Quit]
blahwoop has quit [Remote host closed the connection]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
spyderma_ has joined #ruby
<jhass> ...
<weaksauce> ha
<wallerdev> haha oh geeze
<jhass> why did they left now?
<wallerdev> i miss dhh
<wallerdev> i miss the build a blog in 15 minutes rails video
<jhass> back to crystal-tetris then I guess
zachrab has joined #ruby
segmond has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
graydot has quit [Read error: Connection reset by peer]
Feyn has joined #ruby
dandaman has joined #ruby
spyderman4g63 has quit [Ping timeout: 256 seconds]
commmmodo has quit [Quit: commmmodo]
shevy has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
kayloos has joined #ruby
kalusn has quit [Read error: Connection reset by peer]
<a5i> is that written in rails
<jhass> no, crystal
triple_b has joined #ruby
<a5i> dhh-soundboard?
Musashi007 has joined #ruby
mjuszczak has joined #ruby
zacstewart has joined #ruby
<GaryOak_> haha
segmond has quit [Ping timeout: 264 seconds]
timanema has quit [Quit: leaving]
sankaber has joined #ruby
fryguy9 has quit [Quit: Leaving.]
dopie has quit [Remote host closed the connection]
Qladstone has joined #ruby
zyxelthrone has joined #ruby
baroquebobcat has joined #ruby
paolooo has joined #ruby
paolooo has quit [Client Quit]
<pipework> lul, dhh-soundbard was funny two or three weeks ago.
danjordan has joined #ruby
lanemeyer has joined #ruby
dfinning_ has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 265 seconds]