havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Register and Identify with NickServ to talk || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
djbkd has joined #ruby
jschmid has quit [Ping timeout: 250 seconds]
JACEK-BB has joined #ruby
djbkd_ has joined #ruby
JACEK-BB has left #ruby [#ruby]
<riceandbeans> if I have a mysql object and I have a prepared statement and I'm doing the execute and it looks like this....
monsieurp has left #ruby [#ruby]
<riceandbeans> statement.execute(foo, bar, baz, foobar, foobaz) is it possible to make that span multiple lines without breaking?
B1n4r10 has joined #ruby
dfinninger has joined #ruby
s00pcan_ has joined #ruby
Phage is now known as Eru
Eru is now known as Phage
kfpratt has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
graffix222 has joined #ruby
vikas027 has left #ruby [#ruby]
solocshaw has quit [Ping timeout: 260 seconds]
krobzaur has quit [Ping timeout: 246 seconds]
dfinninger has quit [Ping timeout: 265 seconds]
wolffles has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
Renich has quit [Quit: leaving]
houhoulis has joined #ruby
TheNet has joined #ruby
celly has joined #ruby
sanguisdex has quit [Ping timeout: 260 seconds]
hxegon is now known as hxegon_AFK
rvchangue has quit [Ping timeout: 276 seconds]
spider-mario has quit [Remote host closed the connection]
celly has quit [Ping timeout: 240 seconds]
nug has quit [Ping timeout: 276 seconds]
B1n4r10 has quit [Ping timeout: 246 seconds]
rvchangue has joined #ruby
B1n4r10 has joined #ruby
kfpratt has quit [Remote host closed the connection]
nug- has joined #ruby
<shevy> would it be sensible to subclass from class String?
snockerton has quit [Ping timeout: 265 seconds]
jnj has joined #ruby
trwyth has joined #ruby
<jnj> What are some things I should be aware of when deciding to implement data structures and algorithms in ruby? I've used enumerable for my linked list, are there other things I should be aware of that is like that?
mary5030 has joined #ruby
wolffles has left #ruby [#ruby]
wolffles has joined #ruby
<jnj> i.e., what are some things I should know to implement dsa the "ruby way"
tvw has quit [Remote host closed the connection]
kies^ has joined #ruby
Channel6 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
sgambino has joined #ruby
dotix has joined #ruby
baweaver has joined #ruby
s00pcan_ has quit [Ping timeout: 245 seconds]
DLSteve has joined #ruby
s00pcan_ has joined #ruby
dotix has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 240 seconds]
Gnut has quit [Ping timeout: 245 seconds]
<Phage> What regex type should I choose for ruby? Python, PHP or JS?
selfflow has joined #ruby
<bougyman> perlish
<bougyman> pcre-ish, anyway
<Phage> Alright, thanks!
Channel6 has quit [Quit: Leaving]
wolffles has left #ruby [#ruby]
jnj has quit [Quit: Leaving]
selfflow has left #ruby [#ruby]
wolffles has joined #ruby
juddey has quit [Read error: Connection reset by peer]
<shevy> the rubular type! it's my regex god http://rubular.com/
mary5030 has quit [Remote host closed the connection]
hxegon_AFK is now known as hxegon
<hxegon> how does this http data translate to ruby? product_property[property_name]=size
<hxegon> is that { product_property => { property_name => 'size' } }?
devoldmx has joined #ruby
duckpuppy has joined #ruby
Melpaws has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 250 seconds]
s00pcan_ has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
Melpaws has joined #ruby
<wolffles> test.
<wolffles> yay i can talk again
RegulationD has quit [Remote host closed the connection]
<havenwood> wolffles: hellooo
jwinder has joined #ruby
pneuma has joined #ruby
colegatron has quit [Ping timeout: 265 seconds]
<shevy> hxegon the problem is that this is using the method call [] and you can define [] everywhere
<shevy> hxegon however, the most natural would be to assume a hash, where you just store a key->value entry
<shevy> it also depends on what the variable size would be
<shevy> if it is a string, then it would be 'size' but it could be any other object too
lucid_ has joined #ruby
<hxegon> size would be a string in this case
<hxegon> really hate ambiguous docs.
<shevy> hmm what is property_name? in your above code it also must be a variable, or a method call
djbkd_ has joined #ruby
<hxegon> that's quoted from the example in my docs for the spree api
<shevy> hehehe
terminalrecluse has joined #ruby
wolfflez has joined #ruby
paradisaeidae has joined #ruby
wolffles has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
Ishido has quit [Ping timeout: 245 seconds]
gluec has joined #ruby
dfinninger has joined #ruby
djbkd_ has quit [Ping timeout: 265 seconds]
wolfflez has left #ruby [#ruby]
robh71 has joined #ruby
marr has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gluec> hey all. I have a hash where all values are just strings. I want to eliminate the keys where value is nil. I know I can .select{|n,v| v} , but I feel like I'm missing a useful keyword that does it cleaner. Is there one?
moeabdol has quit [Ping timeout: 264 seconds]
<hxegon> or you could just extract {}.delete_if { |_, v| v.nil? }
<Phage> Can anyone help me make it grap until the next TIL only? http://rubular.com/r/VqG3CQD39w
<Phage> The regex works perfectly in regex101, but not in rubular.
s00pcan_ has joined #ruby
<shevy> gluec for arrays one could use .compact! ... not sure if such a thing exists for hashes too
dfinninger has quit [Ping timeout: 255 seconds]
wolfflez has joined #ruby
<hxegon> shevy gluec it doesn't in core, no.
colegatron has joined #ruby
wolfflez has quit [Quit: wolfflez]
<hxegon> Phage not sure what you want vs what is in the link here...
<shevy> Phage what is the = doing
wolffles has joined #ruby
<havenwood> Phage: What do you want different that what it's doing?
<Phage> I want to grap the first TIL
<Phage> It seems to grab way more than that
<shevy> no I mean
<havenwood> ah
<hxegon> shevy it's a negative lookahead AFAIK
<wolffles> k im back, hey havenwood :D
<hxegon> shevy positive, sorry
<gluec> Thanks hxegon, shevy. All clear now :)
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
nunchuck has quit [Ping timeout: 240 seconds]
<hxegon> no prob gluec
<shevy> I see
krobzaur has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
yfeldblum has joined #ruby
TheNet has quit [Remote host closed the connection]
<Phage> I read somewhere that Ruby doesn't support negative and positive look-behind?
<Phage> havenwood: You're a wizard <3
<havenwood> Phage: Or I guess I should have just shown a simpler anchor: http://rubular.com/r/eHVEdAhfhD
<havenwood> Phage: Just to show stuff between TILs: http://rubular.com/r/2jHBhBwENQ
wolffles has quit [Quit: wolffles]
<havenwood> s/show/match
<Phage> That's interesting
<hxegon> is there a version of Hash#delete that returns the pair in a new hash?
Jammy_Work has joined #ruby
wolffles has joined #ruby
radgeRayden has joined #ruby
Hammy_Work has quit [Ping timeout: 250 seconds]
wolffles has quit [Ping timeout: 240 seconds]
<havenwood> >> class Hash; def hxegon_delete k; {k => delete(k)} end end; h = {aim: true, lies: false}; h.hxegon_delete :aim
<ruboto> havenwood # => {:aim=>true} (https://eval.in/494507)
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
stevenxl has joined #ruby
<hxegon> I feel like that should be in core somewhere... thanks havenwood
<stevenxl> Guys - I need help extracting information from a string.
<stevenxl> "\u003cimg alt=\"\" src=\"https://secure.gravatar.com/avatar/b6a99906505214decf1cf8d549cd625c?secure=true\u0026size=38\" width=\"38\" height=\"38\" /\u003e"
<havenwood> hxegon: Well delete returns the value and you've provided the key so don't you have both parts already? Mmm.
<havenwood> stevenxl: That String looks suspiciously like HTML.
<hxegon> I feel a zalgo moment coming along
<stevenxl> havenwood: it is.
<hxegon> stevenxl and your trying to parse it with regex
<stevenxl> I can't insert that string directly because it is escaped, etc, so I just need to get the information out of it.
TheNet has joined #ruby
<stevenxl> hxegon: Yea I tried getting the first part of what I need (the url starting with https) with regex.
<stevenxl> I cant' get the result of that to stop in the correct place
<hxegon> stevenxl learn this lesson now: if you try to use regex on html, your asking the devil to come in and have tea.
<bougyman> only if you don't know your data well.
<bougyman> if you know your data, regex is a viable option for a simple match/extract
<hxegon> bougyman true, but for *very* limited cases that are extremely stable.
<stevenxl> hxegon: I believe you, but what are my options in that case?
<bougyman> agree, hxegon
<bougyman> and that's the other case... sometimes regex is the only option.
<hxegon> stevenxl nokogiri is great
<havenwood> stevenxl: What's the return value you're looking for? A single String? An Array of Strings?
<bougyman> malformed html and such.
<havenwood> stevenxl: Are you familiar with Nokogiri or Oga?
<stevenxl> havenwood: it's a single string. I have a view that uses a view helper called gravatar_image. I pass in a user and it automagically inserts that string in my view.
<havenwood> stevenxl: I mean what do you want out of it.
<havenwood> stevenxl: That's the input, what output do you want.
<stevenxl> But now, I need to take that information and return it as a JSON. So I use that helper (with Active Model Serializer) to get the string, and now i need to break it upt because the JSON is escaped and scary.
<stevenxl> havenwood: I need the src, width, height
<stevenxl> just those 3 things
B1n4r10 has quit [Quit: leaving]
<stevenxl> Then I'm just going to re-create that string from the JSON object in a Handlebars template.
<pabs> stevenxl: use nokogiri or soemthing comparable to parse the html fragment and extract the relevant attributes, then reserialize the result as json
TheNet has quit [Ping timeout: 250 seconds]
<stevenxl> pabs: OK. You're the 2nd to mention that so I'll give that a try.
kirun has quit [Quit: Client exiting]
<pabs> stevenxl: sure, good luck
ico has quit [Remote host closed the connection]
krobzaur has quit [Ping timeout: 240 seconds]
sneakerhax has quit [Quit: Leaving]
andywojo has joined #ruby
slucx has joined #ruby
<havenwood> stevenxl: require 'oga'; Oga.parse_html("\u003cimg alt=\"\" src=\"https://secure.gravatar.com/avatar/b6a99906505214decf1cf8d549cd625c?secure=true\u0026size=38\" width=\"38\" height=\"38\" /\u003e").children.first.attributes.map { |attribute| [attribute.name, attribute.value] }.to_h
robh71 has joined #ruby
<havenwood> stevenxl: Give that ^ a try after a: gem install oga
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.3/20151223140742]]
dingman has joined #ruby
andywojo has quit [Ping timeout: 256 seconds]
houhoulis has quit [Remote host closed the connection]
houhoulis has joined #ruby
<stevenxl> pabs: havenwood thank you, but this is not a personal project; it's an oss project and nokogiri is already installed.
<stevenxl> So I'll try and do this with that (if that doesn't pan out, it'l lmake a compelling case for oga)
nunchuck has joined #ruby
<havenwood> stevenxl: If Nokogiri is already a dep use that!
<stevenxl> pabs: is it a problem that that I'm feeding nokogiri a string instead of an html doc?
<stevenxl> it's missing <!DOCTYPE html>, etc.
ElFerna has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
wolffles has joined #ruby
<Phage> havenwood: I made a few changes to the text, regex broke now :/ http://rubular.com/r/pLfbDjJh6d
colegatron has quit [Ping timeout: 260 seconds]
<Phage> havenwood: I need to catch the "TIL (...)" until the next "TIL" starts.
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s1kx has quit [Quit: bai]
seitensei has joined #ruby
skade has joined #ruby
seitensei has quit [Ping timeout: 255 seconds]
skade has quit [Client Quit]
pawnbox has joined #ruby
<stevenxl> guys
<stevenxl> I still don't know to use nokogiri well, but it's definitely working
<hxegon> stevenxl :)
<stevenxl> just need to read the docs to figure out how to traverse the tree
shakes has joined #ruby
<wolffles> would anyone be interested in helping a brother out by showing me how to do this with ruby methods instead of logically. https://eval.in/494508
<hxegon> stevenxl I think it uses css selectors
RegulationD has joined #ruby
FernandoBasso has quit [Remote host closed the connection]
cashnguns has quit [Remote host closed the connection]
<hxegon> wolffles I'll take a crack @ it
<wolffles> :D tanks
pawnbox has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
axisys has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
shakes has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 240 seconds]
s00pcan_ has quit [Ping timeout: 276 seconds]
djbkd_ has joined #ruby
<shevy> tasty waffles...
<stevenxl> hxegon: yea I was able to use css selectors, then use the attr method, then the value method to get to the actual value of the attribute I wanted
<stevenxl> Intuitive once you get the general concept
<wolffles> shevy do you own a chevy?
<havenwood> wolffles: to_s.each_char.map(&:to_i).slice_when { |*either| either.any? &:odd? }.map(&:join).join '-'
FooMunki has quit [Quit: FooMunki]
<stevenxl> But now I have a different issue - the link is escaped when it is sent to the client:
<stevenxl> the \u0026.
<havenwood> wolffles: Or: to_s.each_char.map(&:to_i).chunk(&:itself).map { |_, v| v.join }.join '-'
FooMunki has joined #ruby
celly has joined #ruby
baweaver has joined #ruby
dfinninger has joined #ruby
<stevenxl> will it not be excaped when I try to render a handlebars template?
djbkd_ has quit [Ping timeout: 260 seconds]
<havenwood> wolffles: The latter is wrong. Forgot the whole odd? bit. >.> Anyways the former.
<wolffles> i get this error with former (dasherize_number': undefined method `slice_when' for [0, 0, 0, 0]:Array (NoMethodError))
<havenwood> wolffles: What version of Ruby?
<wolffles> ohh wait yeah i didnt do string
skcin7 has joined #ruby
<wolffles> yeah no i was wrong again lol, and im using v 2.0.0
<havenwood> 32231.to_s.each_char.map(&:to_i).slice_when { |*either| either.any? &:odd? }.map(&:join).join '-'
<havenwood> >> 32231.to_s.each_char.map(&:to_i).slice_when { |*either| either.any? &:odd? }.map(&:join).join '-'
<ruboto> havenwood # => "3-22-3-1" (https://eval.in/494513)
ElFerna1 has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
ElFerna1 is now known as ElFerna
<hxegon> haven...
<havenwood> wolffles: For #slice_when you'll need a newer Ruby.
<wolffles> ahh i see
<hxegon> I'm like 20 seconds behind you https://eval.in/494512 havenwood
<hxegon> wolffles ^
<havenwood> hxegon: :)
celly has quit [Ping timeout: 240 seconds]
<hxegon> like yours way better havenwood
<wolffles> time i upgrade
dfinninger has quit [Ping timeout: 264 seconds]
<havenwood> wolffles: Yeah, 2.0 is going to be end of life in less than two months!
<havenwood> wolffles: Ruby 2.3 or bust!
jottr_ has joined #ruby
<havenwood> wolffles: (Or at least Ruby 2.2.4.)
baweaver has quit [Ping timeout: 276 seconds]
sanguisdex has joined #ruby
axsuul has joined #ruby
<hxegon> oops... just realized my example only works on palindrome numbers :P
<hxegon> forgot to rereverse
<havenwood> hxegon: Silly people using non-palindrome numbers!
shakes has joined #ruby
<hxegon> its a feature
dingman has quit [Ping timeout: 245 seconds]
Melpaws has quit [Quit: Leaving.]
devoldmx has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kevinquinnyo1 has joined #ruby
zdman135 has quit [Quit: Leaving...]
<wolffles> sorry back was doing laundry
<wolffles> dat free wifi at the mat tho :D
<hxegon> wolffles be sure to use protection ;P
<wolffles> orgy.condom?
axsuul has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 240 seconds]
<hxegon> ruboto: wolffles # => 'VPN'
jonnyro has quit [Remote host closed the connection]
<wolffles> oh yeah hxegon it doesnt seem to fit the tests cuz its returning false D:
<kevinquinnyo1> hey everyone, I'm new to ruby and I'm wondering if my use of rescue is 'idiomatic' or the 'right way' with ruby. Here's a 5 line gist https://gist.github.com/kevinquinnyo/4d265852f80bc1f5246c
<kevinquinnyo1> dangit NickServ, i thought i authenticated as kevinquinnyo
blackgoat has quit [Quit: WeeChat 1.3]
<hxegon> kevinquinnyo1 what are the possible values of row['Processed'] ?
dotix has joined #ruby
<hxegon> kevinquinnyo1 also, if you are using a stdlib CSV::Table, then you can just say row['Processed'] and it will figure it out BTW
charliesome has joined #ruby
<hxegon> if your in fact dealing with a CSV table
arescorpio has joined #ruby
joneshf-laptop has quit [Ping timeout: 240 seconds]
<kevinquinnyo1> hxegon: it's a value in a google spreadsheet right now, (using google_drive gem) -- it's kind of a proof of concept app at this point, but i wanted to validate that the 'Processed' value was actually processed, and since when I update it, I put in a valid Time, I figured the best way to 'validate' that it has been processed is to check if Time.parse() doesn't throw an exception
<hxegon> kevinquinnyo1 I'm guessing that if it isn't processed, then the row doesn't exist?
unreal_ has joined #ruby
dotix has quit [Ping timeout: 260 seconds]
gambl0re has joined #ruby
djbkd has quit [Quit: Leaving...]
<hxegon> !value.nil? would be good if referencing a non-existant row returns nil
yqt has quit [Ping timeout: 240 seconds]
<kevinquinnyo1> hxegon: well it exists, but it's empty, but if you manaually delete the value in google docs, something is left behind, maybe a '/r/n' or something. That's what led to me wanting to validate it in a way that's slightly better than using empty?
unreal has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
<kevinquinnyo1> are there any problems using 'rescue' the way i did there, that i should be aware of?
<hxegon> it could cause weird behavior pretty easily
andywojo has joined #ruby
<hxegon> I would try #inspect on one of those empty rows and find out what it's leaving behind.
tomchapin has joined #ruby
<hxegon> but #empty would be the best way in my opinion.
joneshf-laptop has joined #ruby
<hxegon> kevinquinnyo1 also, I would double check to see if you can reference a column header name with that gem. Using indexes for named columns can be a huge headache.
hahuang61 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<kevinquinnyo1> hxegon: thanks, i will try inspect -- i forgot about inspect. And yes, if i can handle managing the column header names with the gem, it might make my code simple (i have a subroutine / function that handles it for now)
ElFerna has quit [Ping timeout: 260 seconds]
<kevinquinnyo1> hxegon: basically, instead of building an app, i just leveraged google forms + spreadsheets for a prototype
<kevinquinnyo1> because it was easy
<kevinquinnyo1> if you're wondering why i did that
pwnd_nsfw has quit [Ping timeout: 264 seconds]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> you were young and needed the money
<shevy> wolffles aaaah that's always associated with my nick even though it had nothing to do with a chevy!
juddey has joined #ruby
<wolffles> :3
idefine has joined #ruby
jetblack has joined #ruby
duckpuppy has joined #ruby
hxegon has quit [Ping timeout: 272 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 250 seconds]
<wolffles> ah hxegon left already
hectortrope has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
s00pcan_ has joined #ruby
hectortrope has joined #ruby
<wolffles> i did it finally it only took me 40 mins :/
wolffles has quit [Quit: wolffles]
Yzguy_ has quit [Quit: Zzz...]
jetblack has quit [Quit: Updating details, brb]
jetblack has joined #ruby
jetblack has quit [Client Quit]
duckpuppy has quit [Ping timeout: 272 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
pwnd_nsfw has joined #ruby
nug- is now known as nug
dorei has quit []
auzty has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
mkosaki has quit [Quit: Leaving...]
jottr_ has quit [Ping timeout: 240 seconds]
s00pcan_ has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Ping timeout: 256 seconds]
lannonbr has joined #ruby
djbkd has joined #ruby
sankaber has joined #ruby
Yzguy has joined #ruby
jackjackdripper has joined #ruby
sankaber has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
sankaber has joined #ruby
lacuna_ has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
s00pcan_ has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
djbkd has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
tmtwd has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
blackgoat has joined #ruby
blackgoat has quit [Client Quit]
pawnbox has joined #ruby
Melpaws has joined #ruby
blackgoat has joined #ruby
Trynemjoel has joined #ruby
lacuna_ has quit [Remote host closed the connection]
<shevy> hah this is funny
<shevy> Python 2.7.3 or greater (but not Python 3) is required to build. You are running Python 3.5.1.
robbyoconnor has quit [Ping timeout: 265 seconds]
<shevy> firefox source does not like a too new python version for its build
s00pcan_ has quit [Ping timeout: 256 seconds]
Melpaws has left #ruby [#ruby]
rahul_j has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
gokul has joined #ruby
gokul has quit [Client Quit]
gokulnath has joined #ruby
jackjackdripper has quit [Ping timeout: 245 seconds]
<havenwood> shevy: two snakes is too many snakes
jackjackdripper has joined #ruby
tectonic has quit []
Trynemjoel has quit [Ping timeout: 264 seconds]
<shevy> lol
jottr_ has quit [Ping timeout: 245 seconds]
s00pcan_ has joined #ruby
mcmire has joined #ruby
robbyoconnor has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
dfinninger has joined #ruby
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
rahul_j has quit [Quit: rahul_j]
davedev2_ has joined #ruby
troyready has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 264 seconds]
radgeRayden has quit [Read error: Connection reset by peer]
krz has joined #ruby
s00pcan_ has quit [Ping timeout: 260 seconds]
mcmire has quit [Quit: goodbye]
s00pcan_ has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
gambl0re has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
connor_goodwolf has quit [Ping timeout: 245 seconds]
kalopsian has quit [Ping timeout: 260 seconds]
connor_goodwolf has joined #ruby
gokulnath has quit [Quit: Leaving]
wolffles has joined #ruby
krz has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby
amclain has quit [Quit: Leaving]
kalopsian has joined #ruby
celly has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devbug_ has joined #ruby
hightower4 has quit [Remote host closed the connection]
radgeRayden has joined #ruby
hagabaka has joined #ruby
Yzguy has quit [Quit: Zzz...]
celly has quit [Ping timeout: 272 seconds]
devoldmx has quit [Remote host closed the connection]
charliesome has joined #ruby
braincrash has quit [Quit: bye bye]
FooMunki has quit [Quit: FooMunki]
hahuang65 has joined #ruby
rkazak has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yes`r has quit [Ping timeout: 250 seconds]
dfinninger has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
ss_much has joined #ruby
devbug_ has quit [Ping timeout: 240 seconds]
s00pcan_ has quit [Ping timeout: 260 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
JoshGlzBrk has joined #ruby
dotix has joined #ruby
radgeRayden has quit [Quit: Leaving]
pawnbox has joined #ruby
TheNet has joined #ruby
braincras has joined #ruby
TheNet has quit [Client Quit]
dotix has quit [Ping timeout: 260 seconds]
kalopsian has quit [Ping timeout: 255 seconds]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
yes`r has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
devbug_ has joined #ruby
wolffles has quit [Quit: wolffles]
yfeldblum has joined #ruby
rkazak has joined #ruby
kalopsian has joined #ruby
stevenxl has quit [Quit: leaving]
yqt has quit [Ping timeout: 260 seconds]
rkazak has quit [Quit: Sleep.....ing....]
rkazak has joined #ruby
lacuna has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
wolffles has joined #ruby
finisherr has joined #ruby
yes`r has quit [Ping timeout: 260 seconds]
lacuna has joined #ruby
moeabdol has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
jwinder has quit [Ping timeout: 272 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
shakes has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 260 seconds]
robh71 has joined #ruby
robh71 has quit [Max SendQ exceeded]
rkazak has quit [Quit: Sleep.....ing....]
nisstyre_ is now known as nisstyre
the_nick_me has joined #ruby
wolffles has quit [Quit: wolffles]
pneuma has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.39/20151103191810]]
tjbiddle has joined #ruby
duckpuppy has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
lacuna has quit [Remote host closed the connection]
the_nick_me has quit [Read error: Connection reset by peer]
hdmsuckscock has joined #ruby
<hdmsuckscock> NIGGER
gambl0re has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
RegulationD has joined #ruby
gambl0re has joined #ruby
smactive has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
waka has joined #ruby
shanemcd has joined #ruby
jordanm has quit [Quit: Konversation terminated!]
pawnbox has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
smactive has quit [Ping timeout: 245 seconds]
wolffles has joined #ruby
duckpuppy has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
wolffles has quit [Client Quit]
redeeem has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
moei has quit [Read error: Connection reset by peer]
nickjj has joined #ruby
moei has joined #ruby
senayar has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has joined #ruby
freerobby has joined #ruby
arup_r has joined #ruby
devoldmx has joined #ruby
freerobby has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
kevinquinnyo1 has quit [Ping timeout: 276 seconds]
devoldmx has quit [Ping timeout: 276 seconds]
hagabaka has quit [Remote host closed the connection]
hagabaka has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
pawnbox has joined #ruby
baweaver has joined #ruby
andywojo has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
Nexus_x1 has joined #ruby
lacuna has quit [Remote host closed the connection]
moeabdol has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
juddey has quit [Ping timeout: 240 seconds]
<existensil> :-(
yes`r has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hdmsuckscock was kicked from #ruby by Aria [Your behavior is not conducive to the desired environment.]
<Aria> Sorry that took so long
TomyLobo has quit [Ping timeout: 245 seconds]
pabs has quit [Ping timeout: 265 seconds]
redeeem has quit [Ping timeout: 252 seconds]
celly has joined #ruby
Nexus_x1 has quit [Read error: Connection reset by peer]
juddey has joined #ruby
<shevy> \o/
<blub> hi shevy
celly has quit [Ping timeout: 272 seconds]
pabs has joined #ruby
darkf has joined #ruby
Ox0dea has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
<blub> @_@
<Ox0dea> I can hear you silently questioning my judgment.
Nexus_x1 has joined #ruby
pawnbox has joined #ruby
duckpuppy has joined #ruby
<shevy> hey blub
Nexus_x1 has quit [Client Quit]
* baweaver is judging the center tag
bkxd has joined #ruby
cyfr0n has quit [Ping timeout: 265 seconds]
<baweaver> seen it before
<baweaver> I'm biased, I was a designer originally.
<shevy> the perfect retrolook
<Ox0dea> ruboscis is the best possible name for a bot that evaluates Ruby on trunk.
<shevy> not even the marquee tag (if you spell it that way)
pawnbox has quit [Ping timeout: 260 seconds]
<baweaver> trying to do something mildly productive over vacation, failing horribly
duckpuppy has quit [Ping timeout: 256 seconds]
<shevy> Ox0dea damn that brings back the 1990s
<Ox0dea> I have trouble remembering that you're old.
dotix has joined #ruby
<Ox0dea> But yes, nostalgia bombs everywhere.
<shevy> geocities was cool
<Ox0dea> It was great.
devbug_ has quit [Read error: No route to host]
bkxd has quit [Ping timeout: 256 seconds]
<Ox0dea> I find her delightfully awkward, and her obvious passion for the better days is quite endearing.
dotix has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
<shevy> I am too scared to have nostalgia take over if I watch that
dionysus69 has joined #ruby
arup_r has quit [Remote host closed the connection]
wolffles has joined #ruby
<Ox0dea> I would often choose the "dragon" subdomain irrespective of its relevance.
arup_r has joined #ruby
pabs has quit [Ping timeout: 260 seconds]
devbug_ has joined #ruby
duckpuppy has joined #ruby
pabs has joined #ruby
<Ox0dea> Derp. I conflated Geocities with Angelfire.
senayar has joined #ruby
davedev2_ has quit []
dionysus69 has quit [Quit: dionysus69]
<shevy> Angelcities!
tvw has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
<Ox0dea> Geofire -> @geohot -> self-driving cars -> Elon Musk == Soviet spy?
<Ox0dea> Shame he doesn't own (/ hasn't "acquired") the Twitter handle.
senayar has quit [Ping timeout: 255 seconds]
Encapsulation has joined #ruby
dtordable has quit [Ping timeout: 240 seconds]
djbkd has quit []
andywojo has joined #ruby
tildes has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
secret_ is now known as secret
andywojo has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 255 seconds]
hagabaka has quit [Ping timeout: 240 seconds]
Encapsulation has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
dopie has quit [Quit: leaving]
dopie has joined #ruby
govg has quit [Ping timeout: 250 seconds]
govg has joined #ruby
slucx has quit [Remote host closed the connection]
solocshaw has joined #ruby
smactive has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
tmtwd has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
smactive has quit [Ping timeout: 255 seconds]
norc has joined #ruby
domgetter has joined #ruby
govg has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
govg has joined #ruby
lacuna has joined #ruby
Rinalds has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
rkazak has joined #ruby
juddey has quit [Ping timeout: 260 seconds]
axsuul has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
tagrudev has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
solars has joined #ruby
Axy has quit [Read error: Connection reset by peer]
whiteline has quit [Ping timeout: 265 seconds]
dopie has quit [Quit: Lost terminal]
roshanavand has quit [Read error: Connection reset by peer]
roshanav_ has joined #ruby
juddey has joined #ruby
_blizzy_ has quit [Quit: Leaving]
dopie has joined #ruby
senayar has joined #ruby
Ishido has joined #ruby
pneuma has joined #ruby
<wolffles> longest = %w{ cat sheep bear }.inject do |memo,word|
<wolffles> memo.length > word.length ? memo : word … can someone explain what is going on with “? memo :word”
sigurding has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<pneuma> that looks like a ternary operator to me: condition ? block-true : block-false
<norc> >> %w{ cat sheep bear }.max_by(&:length)
<ruboto> norc # => "sheep" (https://eval.in/494579)
<norc> wolffles: That is the Ruby way of doing it by the way. And yes, it is a ternary operator.
rippa has joined #ruby
codecop has joined #ruby
<norc> wolffles: It is a shorthand for "if expr then ... else ..." :)
<wolffles> oh i see
yfeldblum has quit [Ping timeout: 264 seconds]
<SebastianThorn> %w is do handy, tyvm ruby
senayar has quit [Ping timeout: 246 seconds]
<norc> SebastianThorn: %i() is probably even more useful to most people. :)
devoldmx has joined #ruby
<SebastianThorn> never used that one, learn something new every day :)
<Ox0dea> norc: Is not?
<blub> symbols aren't tied to a namespace right
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> >> Symbol.all_symbols.size # blub
<ruboto> Ox0dea # => 2511 (https://eval.in/494581)
<Ox0dea> (Nope.)
<norc> Ox0dea: To me it is, but then again I avoid strings like the pest they are.
<norc> By the way, I think I really need to brush up on my Bison, I cannot figure out why puts(1 if 0) does not parse.
devbug_ has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
roshanav_ has quit [Read error: Connection reset by peer]
<norc> Need to patch this. :)
<Ox0dea> >> as = ObjectSpace.each_object Array; [String, Symbol].map { |c| as.count { |a| a.all? { |e| c === e } } }
<ruboto> Ox0dea # => [111, 73] (https://eval.in/494582)
<Ox0dea> norc: Not that that's much to go on, but still.
<Ox0dea> As an aside, it'd be nice if that could've just been `as.count c`.
<Ox0dea> Er, no, but yes on `as.count { |a| a.all? c }`.
<norc> Ox0dea: Would === make much sense as the default operator for all?
<Ox0dea> Absolutely.
nerium has quit [Quit: nerium]
<norc> Ox0dea: The grep rationale makes a lot of sense.
<norc> Didn't even think about it.
<blub> ruby functions are so stiff
celly has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
<Ox0dea> Are you sure?
moeabdol has joined #ruby
Paedo has joined #ruby
<Paedo> hello everyone :)
<blub> hi paedo
<Ox0dea> I expect trouble.
<Paedo> Ox0dea: what do you mean?
<Ox0dea> Why would you assume I was talking to/about you?
<Paedo> i wasn't
<Ox0dea> (Called it.)
<Paedo> i was just asking what do you mean by expecting trouble
Dimik has quit [Ping timeout: 276 seconds]
<norc> Ox0dea: Until we get complete access to our VM (I really want to dynamically manipulate instructions) methods are really stiff. :-)
celly has quit [Ping timeout: 276 seconds]
symm- has joined #ruby
<Ox0dea> norc: See: Ova.
<baweaver> I've learned to assume if it exists, Ox0dea has an issue on ruby-lang bugs already
<Ox0dea> I take your point, of course.
<Ox0dea> I have, like, four.
<baweaver> or is commenting on it
<Ox0dea> But this one's languishing is really frustrating.
<Ox0dea> There's simply no good reason for the query predicates not to do case equality. :<
scepticulous has joined #ruby
<baweaver> become enough of a C ninja to implement it?
<Ox0dea> I did...
* baweaver is no where close to that
<baweaver> ah
<norc> Ox0dea: Yeah you have shown me already. Though I think with our new load in RubyVM Ova could become a real think.
<norc> Thing even.
<Ox0dea> And then nobu improved it because nobu.
<Ox0dea> norc: "Real" here meaning less brittle?
<Ox0dea> Never mind that it still works on trunk. :P
mary5030 has joined #ruby
<norc> Ox0dea: It is just a black box. Im hoping we will get to see some documentation on the VM soon, when users will begin to use to_binary/load.
<norc> Half the instructions have obscure descriptions in insn.def, if any.
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<Ox0dea> norc: The black box is made of glass. ^_^
QualityAddict has joined #ruby
<norc> Ox0dea: Just browsing through I suddenly noticed we even have an answer instruction. :-)
dotix has joined #ruby
solars has quit [Ping timeout: 240 seconds]
bnizzle has joined #ruby
<norc> This is just an example of what I mean.
bnizzle has left #ruby [#ruby]
<Ox0dea> You don't remember this?
<norc> Oh I do.
colegatron has quit [Ping timeout: 250 seconds]
<Ox0dea> Making it an insn seems perfectly reasonable?
vikas027 has joined #ruby
<Ox0dea> $ ruby -e "p RubyVM::INSTRUCTION_NAMES.join(' ').size"
<Ox0dea> 1000
houhoulis has quit [Remote host closed the connection]
<norc> I just mean the fact that the only hint that this has anything to do with a x.succ() method only comes from the code hint in the japanese comment.
dotix has quit [Ping timeout: 260 seconds]
<norc> Just gives me plain headaches.
Cohedrin has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
<norc> Maybe Im just ranting because I spent too much time debugging a random seg fault I had yesterday through dozens of magical functions I had absolutely no clue what they did or why they are needed..
ss_much has quit [Quit: Connection closed for inactivity]
nerium has joined #ruby
<Ox0dea> Ruby is old and large. I'm not sure what you were expecting to find.
<norc> Dragons.
<Paedo> Ox0dea: you expect to find booty
<Ox0dea> Frozen string debug info gets stashed in secret ivars. :<
yes`r has quit [Read error: Connection reset by peer]
<norc> And the whole code base is documented like that.
duckpuppy has joined #ruby
<norc> Maybe Im just spoiled.
<Ox0dea> No, you're right.
juddey has quit [Ping timeout: 260 seconds]
<Paedo> the best docs are the ones you write yourself
<Ox0dea> Ruby has accumulated an ungodly amount of cruft. :/
<Paedo> cruft?
<Ox0dea> norc: Neoruby?
rasengan has quit [Quit: leaving]
tmtwd has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
SenpaiSilver has quit [Quit: Leaving]
bnizzle has joined #ruby
bnizzle has left #ruby [#ruby]
solars has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
juddey has joined #ruby
lessless has joined #ruby
<shevy> Paedo are you stalking Ox0dea?
<Paedo> no it's the other way around i think
solocshaw has quit [Ping timeout: 256 seconds]
<lessless> folks, how to detect whether string corresponds other string within range of one insertion/deletion or a one character swap?
<lessless> i.e swap = swwap = sap = sawp
roshanavand has quit [Remote host closed the connection]
pabs has quit [Ping timeout: 240 seconds]
pabs has joined #ruby
jhn has joined #ruby
bkxd has joined #ruby
senayar has joined #ruby
<Ox0dea> shevy: What made you ask?
futilegames has joined #ruby
<Ox0dea> lessless: Please clarify. Are you sure you wanted all =s there?
<lessless> all =s? don't understand :)
<Ox0dea> lessless: You want Levenshtein distance.
<Ox0dea> >> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'swap', 'sap'
<ruboto> Ox0dea # => 1 (https://eval.in/494592)
bb010g has quit [Quit: Connection closed for inactivity]
<lessless> Ox0dea, thank you!
cajone is now known as cajone_afk
<Ox0dea> Happy to help. :)
coffeecupp has joined #ruby
<Ox0dea> lessless: Er, you want Damerau-Levenshtein if transposition should only count as one edit.
<Ox0dea> That one's not in the standard library. :<
seitensei has quit [Remote host closed the connection]
<lessless> transposition means character swapping?
<Ox0dea> Right.
* lessless increased IQ by 0.1 point
senayar has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 265 seconds]
<Ox0dea> ++<<
* Paedo farts on lessless's face and the methane causes lessless's IQ to drop by 50 points.
tmtwd has quit [Ping timeout: 260 seconds]
<lessless> lol
<lessless> ++<<
<lessless> how does that work?
<Ox0dea> It doesn't, but it increments you. :)
mark1 has joined #ruby
solocshaw has joined #ruby
<Paedo> what is ++<<
<Ox0dea> << == lessless, to clarify.
andywojo has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
tjbiddle has quit [Ping timeout: 265 seconds]
<lessless> ah, got it :)
techietrash has joined #ruby
techietrash has quit [Changing host]
techietrash has joined #ruby
al2o3-cr has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
QualityAddict has quit [Quit: Leaving]
coffeecupp has quit [Quit: Leaving]
AlphaAtom has joined #ruby
tjbiddle has joined #ruby
coffeecupp has joined #ruby
redeeem has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
andywojo has quit [Ping timeout: 265 seconds]
juddey has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
blt has joined #ruby
<norc> Here is another question, why does Rails advertise CoffeeScript so much?
QualityAddict has joined #ruby
<norc> Im really getting disgusted by these bloated egomaniac controlled frameworks.
Anderson69s_Deb has quit [Remote host closed the connection]
shanemcd has joined #ruby
roshanavand has quit [Remote host closed the connection]
djbkd has joined #ruby
roshanav_ has joined #ruby
<TheBrayn> lol
dionysus69 has joined #ruby
<dionysus69> hey guys
<dionysus69> I need a consulting on game development
SCHAAP137 has joined #ruby
jondot has joined #ruby
<dionysus69> how would ruby handle making of a turn based strategy? and would it be cross platform? anyone here knowledgeable in this field?
underplank has joined #ruby
lacuna has quit []
shanemcd has quit [Ping timeout: 246 seconds]
<TheBrayn> ruby is probably not the right choice for game development
<norc> dionysus69: Just like any other language pretty much. Ruby is fairly cross platform out of the box too.
<dionysus69> so should I go with c++ ? also can anyone explain to me how opengl game engine blender and all those tools fit together? I am confused
sandstrom has joined #ruby
<norc> dionysus69: And since you said turn based, things like the GIL will not give you many headaches. :-)
<dionysus69> GIL?
<TheBrayn> global interpreter lock
<dionysus69> ugh what is that
<norc> The thing preventing you from doing silly multithreading, because it is bad for you.
<TheBrayn> a multithread synchronisation mechanism
al2o3-cr has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<norc> or rather it prevents you from doing any real concurrency in ruby.
<dionysus69> hmm ok never done multithreading in any language
<shevy> Ox0dea it was like tag-teaming, you write something, Paedo responds in ... odd ways
<dionysus69> so what about the tools I listed, you familiar with how those are used together to create a game?
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
<TheBrayn> creating a game is not an easy task
<dionysus69> I know so thats why I start from 0 :D
djbkd has quit [Quit: Leaving...]
<shevy> go with c++
<norc> dionysus69: If you really want to do it yourself, I recommend you start with something simplistic. Say a chess simulator. :-)
krz has joined #ruby
Anderson69s_Deb has joined #ruby
<norc> shevy: And have him study C++ for the next 12 months? Im unsure how that is productive.
solocshaw has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 250 seconds]
<Paedo> shevy: so what if we're tag-teaming it's better that you stay out of it
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
<dionysus69> norc I am familiar with c++ so I could be learning on the wat
<dionysus69> way
<dionysus69> I dont know ruby well either
<norc> dionysus69: Dont pick a game then.
<dionysus69> then ? :D
yfeldblum has quit [Ping timeout: 256 seconds]
<norc> Learn the language first perhaps?
<norc> Then you can maybe get started with some OpenGL, which by itself gives you between months and years just to get comfortable with.
dfinninger has joined #ruby
<shevy> you are so negative norc
<dionysus69> hmm so which one, lets say I go and become a ruby pro, would I be hindered too much in performance if I use opengl libraries (if I can at all)
<norc> dionysus69: There is OpenGL bindings for Ruby.
<TheBrayn> I think that you'll want a game engine
<shevy> this game was on reddit lately https://github.com/spacecamper/miny in C++ !
<TheBrayn> I have heard good things about löve, maybe there are some good tutorials for that
<norc> dionysus69: Let me teach you a first lesson about programming then.
<norc> dionysus69: Write code that works. Write tests for that code. Profile your code. Optimize your code. In that order.
<dionysus69> yes and ?
<norc> dionysus69: Where does your question about "performance" fall in there? ;-)
<norc> If you don't even know these questions, its probably not relevnat to you
yes`r has joined #ruby
mdw has joined #ruby
lucid_ has quit [Ping timeout: 245 seconds]
pawnbox has quit [Ping timeout: 255 seconds]
underplank has quit [Quit: underplank]
bkxd has joined #ruby
webus has joined #ruby
<dionysus69> for example civ 5 performance sucks
<Paedo> and remember that if your code sucks it's because you might be homo
<dionysus69> I am not really aiming to make something like civ 5 in the first shot but I would want to start something that scales later
vdamewood has joined #ruby
timonv has joined #ruby
<dionysus69> so imagine civ 5 is written in ruby using opengl, would it be playable?
<Paedo> no
<Paedo> ruby sucks too much for taht
<Paedo> no optimized code
<Paedo> civ 5 must be written in assembly and c++
blackms has joined #ruby
<Ox0dea> >> RubyVM::INSTRUCTION_NAMES.grep /opt/
<ruboto> Ox0dea # => ["opt_str_freeze", "opt_send_without_block", "opt_case_dispatch", "opt_plus", "opt_minus", "opt_mult ...check link for more (https://eval.in/494618)
<Ox0dea> So many optimize!
<dionysus69> hmm
marr has joined #ruby
<blackms> hello, someone here uses rubymine?
<Ox0dea> dionysus69: This is what happens if you don't start with the fundamentals: https://www.youtube.com/watch?v=TRqGmmCy8aU
tjbiddle has quit [Quit: tjbiddle]
mdw has quit [Quit: Sleeping Zzzzz]
<domgetter> dionysus69: I don't recommend using Ruby to make a performance-sensitive 3D video game.
<domgetter> Now, if you want to make a prototype, then Ruby's perfect
<Paedo> why do that
<Paedo> you'll have to rewrite it
<Paedo> might as well write it in the proper language
<domgetter> time and effort into making something that may never get funded
<domgetter> might as well spend as little time and effort as possible to get off the ground
<Paedo> if it's dog shit i won't get funded
anisha_ has joined #ruby
RegulationD has joined #ruby
BSaboia has joined #ruby
<domgetter> the criteria for "dog shit" in a prototype is not performace or "it's written in C"
<dionysus69> domgetter: roger that ))
<Ox0dea> domgetter: You're feeding, mind.
<Paedo> Ox0dea: okay do we stop tag-teaming now?
solocshaw1 has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
<domgetter> Ox0dea: I don't understand what "I'm feeding, mind" means
<Paedo> Ox0dea: well i don't understand why you tell me to come troll the ruby channel with you and then say that i'm a troll
<Ox0dea> domgetter: Did that help?
<Paedo> Ox0dea: what are you trying to do here? i'm a bit confused
gizless has joined #ruby
<domgetter> what does "mind" mean in that context?
<domgetter> I get the first part, but I'm just trying to parse the statement in it's whole
djbkd has joined #ruby
<domgetter> is it a short version of "mind you"
<Paedo> domgetter: he told me to come troll this channel with him
RegulationD has quit [Ping timeout: 256 seconds]
<domgetter> Paedo: That's an assertion. A claim which may or may not be true.
<Paedo> domgetter: it's all in pms
Hounddog has joined #ruby
<Paedo> i don't care i am doing him a favor
<domgetter> Paedo: that neither proves nor disproves your statements
tjbiddle has joined #ruby
<Paedo> domgetter: he wants to become op of this channel and if he's seen as helpful he'll get that status just don't teoll anyone
iDavid has quit [Ping timeout: 260 seconds]
gizmore has quit [Ping timeout: 256 seconds]
<domgetter> Peedo: You got boring.
tjbiddle has quit [Client Quit]
iDavid has joined #ruby
roshanav_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
edwinvdgraaf has joined #ruby
<adaedra> Hello
blaxter has joined #ruby
<dionysus69> i decided to get a hardcover ruby book, which one should I get? please offer me something that isnt very expensive
tmtwd has joined #ruby
<adaedra> ?links
<adaedra> there are some here
bkxd has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
<ljarvis> hello rubyists
roshanavand has joined #ruby
<adaedra> hi ljarvis
<ljarvis> how was your Christmas, adaedra?
edwinvdgraaf has quit [Read error: Connection reset by peer]
<blub> hi ljarvis
<ljarvis> o/
<adaedra> ljarvis: it was ok.
<adaedra> ljarvis: what about you?
<Paedo> ljarvis: white power brother!
<adaedra> !kick Paedo Good bye.
Paedo was kicked from #ruby by ruboto [Good bye.]
<ljarvis> adaedra: mine was pretty good, I just ate and drank a lot so no complaints!
<dionysus69> wtf just happened
firstdayonthejob has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<adaedra> nothing that matters.
senayar has joined #ruby
Rinalds has joined #ruby
<dionysus69> so still, I got that link adaedra but which book would you recommend? I am bad at choosing from 5 books I know nothing about :\
<adaedra> And this list is not even up to date :p
auzty has quit [Quit: Leaving]
yfeldblum has joined #ruby
devoldmx has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
<dionysus69> so ? :D
<adaedra> here's the up-to-date list
anisha_ has quit [Quit: This computer has gone to sleep]
<adaedra> I didn't learn from a book, so I can't give any advice on that
ziyadb has joined #ruby
celly has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Ping timeout: 264 seconds]
Begi has joined #ruby
redeeem has quit [Quit: Page closed]
cibs has quit [Ping timeout: 272 seconds]
c0m0 has joined #ruby
dfinninger has quit []
devoldmx has quit [Ping timeout: 260 seconds]
cibs has joined #ruby
celly has quit [Ping timeout: 245 seconds]
<dionysus69> ok cool :)
dwfait has joined #ruby
<adaedra> erm.
<adaedra> “This book documents Version 1.6 of Ruby” we may throw that away now.
<adaedra> dionysus69: see, be sure to check the version before buying. Avoid everything <= 1.8.
<dionysus69> I am aiming for 2.0 :)
bkxd has joined #ruby
<shevy> we are at 2.3.0!
<adaedra> Books take time to write.
solocshaw has joined #ruby
<Ox0dea> Prove it.
blt has quit [Ping timeout: 240 seconds]
<domgetter> Writing takes time. Books are written. QED
snarkanoid has quit [Ping timeout: 272 seconds]
<Ox0dea> You demonstratumed the shit outta that quod.
blt has joined #ruby
<Ox0dea> charliesome: 2.3 incoming?
<dionysus69> i am sure there are some books already that cover version 2
<adaedra> Yeah.
<adaedra> I've seen 2.1 in the links provided.
bMalum has joined #ruby
anisha_ has joined #ruby
djbkd has quit [Remote host closed the connection]
underplank has joined #ruby
kase has joined #ruby
<kase> Hi
<adaedra> Hi
skcin7 has joined #ruby
<kase> I tried to install rvm but when I add the gpg key I get a timeout
<kase> gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
spider-mario has joined #ruby
<Ox0dea> Excellent.
<adaedra> I don't remember this step from rvm.
HANJIN has quit [Quit: HANJIN]
<kase> adaedra: It's required
<Ox0dea> kase: Only for signed releases.
<adaedra> I see that.
<adaedra> I haven't installed a rvm in a long time tho.
anisha_ has quit [Quit: Leaving]
anisha_ has joined #ruby
<kase> Ox0dea: right, but all last released are signed
<Ox0dea> kase: Are you sure you want to use RVM?
wolffles has quit [Ping timeout: 246 seconds]
<kase> Ox0dea: do you have a no signed release ?
<kase> Ox0dea: why not ?
<Ox0dea> kase: I use chruby + ruby-install.
<adaedra> +1 for chruby + ruby-install.
<kase> Ox0dea: I don't know chruby
<Ox0dea> kase: Nor RVM (yet). :P
<adaedra> Time to discover it then! \o/
wolffles has joined #ruby
<adaedra> Otherwise, rvm has a channel at #rvm
<kase> Ox0dea: It's like a chroot for ruby ?
Gnut has joined #ruby
<adaedra> Nope, it's a ruby version manager, like rvm, but light.
<norc> chruby + ruby-install is the way to go for the next 12 months. Then we will (again) have a new version manager.
<adaedra> :p
<kase> Ok thanks for all, I'll look at this :)
bkxd has quit [Ping timeout: 260 seconds]
jschmid has joined #ruby
<Ox0dea> Yay! <3
yes`r has quit [Ping timeout: 264 seconds]
<domgetter> I am chroot
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
Gnut has quit [Read error: Connection reset by peer]
redeeem has joined #ruby
startupality has joined #ruby
roshanavand has quit [Remote host closed the connection]
<Ox0dea> Pronounced "Schrute" for keks.
vikas027 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<adaedra> Dammit Jim.
cpup has quit [Ping timeout: 245 seconds]
cpup has joined #ruby
peeja has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
BSaboia has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
Begi has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
peeja has quit [Ping timeout: 256 seconds]
redeeem has quit [Quit: Page closed]
Begi has joined #ruby
Wsewolod has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
jondot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
DoubleMalt has joined #ruby
haraigoshi has quit [Ping timeout: 245 seconds]
lictor36 has joined #ruby
pawnbox has joined #ruby
senayar has joined #ruby
seitensei has joined #ruby
seitensei has joined #ruby
senayar has quit [Ping timeout: 260 seconds]
dotix has joined #ruby
dotix has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 250 seconds]
devbug has quit [Read error: Connection reset by peer]
underplank has quit [Quit: underplank]
smactive has joined #ruby
seitensei has quit [Ping timeout: 256 seconds]
BSaboia has joined #ruby
andywojo has joined #ruby
kase has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
yes`r has joined #ruby
bweston92 has joined #ruby
blackms has quit [Ping timeout: 265 seconds]
smactive has quit [Ping timeout: 255 seconds]
leksster has joined #ruby
andywojo has quit [Ping timeout: 276 seconds]
jschmid has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
jinie_ has joined #ruby
<norc> apeiros: Would you happen to be around?
CloCkWeRX has joined #ruby
jinie_ has quit [Remote host closed the connection]
lessless has quit [Ping timeout: 260 seconds]
blackms has joined #ruby
dwfait has quit [Quit: dwfait]
anisha_ has joined #ruby
gagrio has joined #ruby
sanguisdex has quit [Ping timeout: 264 seconds]
anisha_ has quit [Client Quit]
pawnbox_ has joined #ruby
tvw has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
bkxd has joined #ruby
ElFerna has quit [Client Quit]
ElFerna has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
SenpaiSilver has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has joined #ruby
duckpuppy has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
FernandoBasso has joined #ruby
dotix has joined #ruby
BSaboia has quit [Ping timeout: 265 seconds]
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
celly has joined #ruby
anisha_ has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
celly has quit [Ping timeout: 240 seconds]
roshanav_ has quit [Remote host closed the connection]
anisha_ has quit [Quit: This computer has gone to sleep]
axsuul has quit [Ping timeout: 272 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
terlar has joined #ruby
anisha_ has joined #ruby
coffeecupp has quit [Quit: Leaving]
phredus has joined #ruby
wolffles has quit [Quit: wolffles]
devoldmx has joined #ruby
skade has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
devoldmx has quit [Ping timeout: 256 seconds]
bodgix has joined #ruby
bkxd has joined #ruby
rodfersou has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
Mekkis has joined #ruby
brusora_ has joined #ruby
roshanavand has joined #ruby
brusora has quit [Ping timeout: 250 seconds]
hectortrope has quit [Remote host closed the connection]
tomphp has joined #ruby
skcin7 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
roshanavand has joined #ruby
<dionysus69> can I make GUI with QT and bind it to ruby?
DoubleMalt has quit [Remote host closed the connection]
<adaedra> There are Qt bindings, you can look into that
solocshaw has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
hectortrope has joined #ruby
startupality has quit [Quit: startupality]
hectortrope has quit [Client Quit]
startupality has joined #ruby
kobain has joined #ruby
krz has quit [Quit: WeeChat 1.2]
<norc> dionysus69: I looked into it, it is not worth the hassle unless you really must.
<dionysus69> norc: so what is best( meaning easiest/most feature) approach for gui making ? do you make gui apps yourself?
<norc> Not in Ruby.
<dionysus69> ok I guess ) in java ? :D
<adaedra> If you do things in Qt, C++ ?
jondot has joined #ruby
kobain has quit [Max SendQ exceeded]
<adaedra> Also, it may be possible if you do things well to create a library that implements your GUI parts in C++ and expose a C API your Ruby code could use.
<adaedra> Not the most straightforward, but could be done, I guess.
<dionysus69> I guess, actually not doing QT, just downloaded QT maker and it looked good. I have done only one GUI app so far in java/netbeans which is good enough I just wondered if its worth learning in ruby
<adaedra> It's Qt, not QT.
<dionysus69> haha ok xD
<norc> adaedra: Considering how Qt works with events, I would consider this to be a really nasty business, unless you use some middleware like CORBA
<dionysus69> ok nevermind I am not a guy who would implement all that by myself :D
Begi has quit [Ping timeout: 264 seconds]
<adaedra> I tried GUIing in Ruby, it was not the nicest experience.
<norc> Same.
<dionysus69> same lol
skade has quit [Quit: Computer has gone to sleep.]
<adaedra> I go back to plain C++/Qt when I have to do GUI.
<norc> Best we have done was a seperate GUI application that talked with the application core through CORBA.
startupality has quit [Ping timeout: 272 seconds]
<norc> That was pretty easy. :)
<norc> (With the GUI being developed in Qt/C++)
<dionysus69> ^.^ not that I have to make gui apps, just wondered if I wanted to at some point
<dionysus69> i am agitated to learn something and I dont know where to start from
<dionysus69> life is too short
<dionysus69> fucking primates
<dionysus69> apologies for my censor breaking outburst, aghm
hectortrope has joined #ruby
pandaant has joined #ruby
dwfait has joined #ruby
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Ping timeout: 264 seconds]
Contigi has joined #ruby
dwfait has quit [Client Quit]
al2o3-cr has joined #ruby
JoshL has quit [Ping timeout: 240 seconds]
KervyN has quit [Ping timeout: 256 seconds]
hakat has quit [Ping timeout: 246 seconds]
dukedave has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
Begi has joined #ruby
<phredus> Hello all, I am new to Ruby and programming, Could someone please tell me which versions of Ruby I should have installed on my system please
dukedave has joined #ruby
<Ishido> I would say... The latest you can have ?
prestorium has joined #ruby
weemsledeux has joined #ruby
felltir has joined #ruby
KervyN has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<phredus> yes, nut I've heard that for compatability you should have a couple of the past versions, but I dont know if that is true and best is why I'm asking.
tomphp has joined #ruby
<phredus> *but
<Ishido> Oh, I see.
JoshL has joined #ruby
roshanavand has quit [Remote host closed the connection]
[k- has joined #ruby
roshanavand has joined #ruby
<Ishido> Sorry, I don't know. I suppose someone else could answer your question.
<phredus> So does anyone have the real life truth
[k- has quit [Client Quit]
andywojo has joined #ruby
<phredus> Ishido: thank you I will keep asking till I find someone who knows
<Ishido> No problem.
kedare has joined #ruby
underplank has joined #ruby
senayar has quit [Remote host closed the connection]
<Jamo> phredus: usually everyone keeps on using the latest ruby, so install other/older versions only when you end up in a situtation when you really need it
roshanavand has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
<norc> phredus: Latest is enough. You can install additional rubies when some project has a hard dependency for some reason.
andywojo has quit [Ping timeout: 276 seconds]
hakat has joined #ruby
<norc> So go and enjoy our brand new 2.3. :-)
dlitvak has joined #ruby
yes`r has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 246 seconds]
kotk_ has quit [Quit: Leaving...]
sundhell has joined #ruby
seitensei has joined #ruby
sdothum has joined #ruby
gagrio has quit [Remote host closed the connection]
ajb has joined #ruby
ajb has quit [Changing host]
ajb has joined #ruby
underplank has quit [Quit: underplank]
toretore has joined #ruby
bkxd has joined #ruby
svkurowski has quit [Ping timeout: 260 seconds]
dlitvak has quit [Read error: Connection reset by peer]
seitensei has quit [Ping timeout: 260 seconds]
svkurowski has joined #ruby
dlitvak has joined #ruby
dlitvak_ has joined #ruby
ElFerna has quit [Ping timeout: 245 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
roshanavand has joined #ruby
rodfersou has quit [Quit: leaving]
roshanavand has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
dlitvak_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
whiteline has joined #ruby
<apeiros> norc: it happens that I'm around now. what's up?
Jardayn has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 255 seconds]
<norc> apeiros: I have a rake task that reads an ASCII-8BIT string representing UTF8 to our Oracle database (with NLS_LANG set to English_Germany.WE8MSWIN1252). Now AR blindly assumes the source encoding to be windows-1252, causing a double encoding error.
<norc> *it reads and then writes to the oracle database
<apeiros> oy, not sure I'm awake enough for this kind of question :D
skade has joined #ruby
<norc> Heh.
<apeiros> iirc oracle client and server have an independent encoding setting
<apeiros> and if they differ, they'll translate
<apeiros> on top of that sits AR which I don't know how much transcoding it does, but I'd assume it will translate from String#encoding to client's encoding
jondot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> Thats the thing, the source encoding is ASCII-8BIT - so just based on this it seems a bit bizarre, it would simply force encode this to windows-1252
<apeiros> so now my question is: do you want the ascii-8bit translated, so it's correctly in the database (in win1252), or do you want the string as-is in the same binary code as it is, making it "incorrect" in the sense of characters in the db?
redeeem has joined #ruby
redeeem has quit [Client Quit]
<norc> Well, the fix was easy (I just force encode the input to UTF-8 before passing it to Oracle).
<norc> But that seems more like a hotfix than anything.
shanemcd has joined #ruby
<apeiros> not quite sure what AR makes with binary, don't think I've ever tested that. but I think the assumption would be that it force-encodes to either oracle client's encoding, or to Encoding.default_internal
<apeiros> hm, no, if the data is indeed utf-8, then that's the correct thing to do
<apeiros> best is of course to already read the data with the correct encoding set
<norc> Is there such a thing as "base64 with utf8 inside" encoding ?
underplank has joined #ruby
<norc> apeiros: And yeah, based on my observation the oracle enhanced adapter seems to force-encode to the clients encoding, because Encoding.default_internal is UTF-8.
<apeiros> sure. you can put whatever into base64
DoubleMalt has joined #ruby
<norc> apeiros: Ah! Mail is indeed the culprit then. The mail contains 'Content-Type: text/plain; charset="utf-8"' - so mail.body.decode should assume that to be the encoding, rather than just returning a binary string.
<apeiros> agreed.
sigurding has quit [Quit: sigurding]
<norc> Thanks for your feedback, I shall patch it and submit a pull request. :)
anisha_ has joined #ruby
ruid has quit [Ping timeout: 250 seconds]
anisha_ has quit [Client Quit]
AlphaAtom has joined #ruby
celly has joined #ruby
RegulationD has joined #ruby
morfin60 is now known as morfin
lacrosse has quit [Quit: Connection closed for inactivity]
celly has quit [Ping timeout: 245 seconds]
blackgoat has quit [Quit: WeeChat 1.3]
Guest32 has joined #ruby
Begi has quit [Ping timeout: 276 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
underplank has quit [Quit: underplank]
duckpuppy has joined #ruby
anisha_ has joined #ruby
dwfait has joined #ruby
scripore has joined #ruby
anisha_ has quit [Client Quit]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
underplank has joined #ruby
tomphp has joined #ruby
deuterium has joined #ruby
dotix has quit [Remote host closed the connection]
yes`r has joined #ruby
sigurding has joined #ruby
skade has quit [Ping timeout: 250 seconds]
Jackneill has joined #ruby
underplank has quit [Quit: underplank]
krobzaur has joined #ruby
devoldmx has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
dorei has joined #ruby
Rinalds has quit []
nfk|laptop has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
krobzaur has quit [Ping timeout: 256 seconds]
slugabed has quit [Read error: Connection reset by peer]
webus has quit [Ping timeout: 255 seconds]
dstarh has joined #ruby
sgambino has joined #ruby
anisha_ has joined #ruby
Guest32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha_ has quit [Client Quit]
sp1rs has joined #ruby
ElFerna has joined #ruby
krz has joined #ruby
ceej has quit [Ping timeout: 240 seconds]
constantinexvi has quit [Ping timeout: 240 seconds]
<aep> i'm scared of asking buuut... how do you do opencv stuff on ruby with the GIL? :/
bMalum has quit [Quit: bMalum]
<aep> like, everything's so CPU intensive
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<aep> do people just shove the cpu parts into c++ or something?
Apocalypse has quit [Ping timeout: 272 seconds]
demophoon has quit [Ping timeout: 240 seconds]
cout has quit [Ping timeout: 256 seconds]
GGMethos has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 250 seconds]
rideh has quit [Ping timeout: 250 seconds]
blackms_ has joined #ruby
ruid has quit [Ping timeout: 256 seconds]
AustinMatherne has quit [Ping timeout: 255 seconds]
blackms has quit [Disconnected by services]
bradland has quit [Ping timeout: 265 seconds]
dotix has joined #ruby
Kamilion has quit [Ping timeout: 260 seconds]
epochwolf has quit [Ping timeout: 260 seconds]
blackms_ has quit [Remote host closed the connection]
blackms has joined #ruby
dotix has quit [Remote host closed the connection]
dotix has joined #ruby
FooMunki has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
Begi has joined #ruby
weemsledeux has joined #ruby
sankaber has joined #ruby
dotix has quit [Remote host closed the connection]
haraigoshi has joined #ruby
dlitvak has joined #ruby
anisha_ has joined #ruby
ESpiney has joined #ruby
krobzaur has joined #ruby
TomyLobo has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haraigoshi has quit [Ping timeout: 245 seconds]
ruid has joined #ruby
tomphp has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
AustinMatherne has joined #ruby
<jhass> pretty much
cout has joined #ruby
sp1rs has quit [Ping timeout: 264 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
constantinexvi has joined #ruby
rideh has joined #ruby
cschneid has joined #ruby
epochwolf has joined #ruby
blaxter has quit [Quit: foo]
GGMethos has joined #ruby
ceej has joined #ruby
demophoon has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElFerna has joined #ruby
GinoManWorks has quit [Read error: Connection reset by peer]
underplank has joined #ruby
[k- has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
aegis3121 has joined #ruby
survili has joined #ruby
bradland has joined #ruby
anisha_ has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
anisha_ has quit [Client Quit]
ElFerna has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
underplank has quit [Client Quit]
<survili> Hi all, sometimes when I install a gem, besides being able to use it's classes/api using require, sometimes the gem comes with a binary that I can use from command line. Example when installing rails gem, we also get rails command line executable. I was wondering, when installing some gem how can I know if it also installed some executable I can use ?
Apocalypse has joined #ruby
mary5030 has joined #ruby
Kamilion has joined #ruby
anisha_ has joined #ruby
<apeiros> survili: good question. sadly the best answer I'm aware of is "look at the gem contents". not very user friendly :-|
<apeiros> maybe there's a better way
ElFerna has joined #ruby
anisha_ has quit [Client Quit]
duckpuppy has joined #ruby
<survili> apeiros: when you say to take a look in gem's content, you mean to read the sources or in gemspec it is specified ?
GinoManWorks has joined #ruby
constantinexvi has quit [Ping timeout: 250 seconds]
rideh has quit [Ping timeout: 250 seconds]
<apeiros> survili: sources, take a look at the 'bin' dir. gemspec often only contains a glob.
<apeiros> and while `gem specification X` exists, that looks rather unreadable.
<survili> apeiros: thank you, I will ask this question on SO as well
colegatron has joined #ruby
arup_r has quit [Remote host closed the connection]
Apocalypse has quit [Ping timeout: 260 seconds]
<apeiros> and while `gem specification X` exists, that looks rather unreadable. in case of rails it doesn't even list `rails` under executables
<havenwood> survili: You could guess that the executable is in the idiomatic bin/ dir: gem contents gem_name_here | grep /bin/
<apeiros> aha, because the executable comes via railties gem
TomPeed has joined #ruby
rideh has joined #ruby
constantinexvi has joined #ruby
AustinMatherne has quit [Ping timeout: 246 seconds]
<havenwood> I dunno what the heck bundler is up to these days with exe/ dir... >.>
<apeiros> oh dear, yes, fuck bundler for that.
<apeiros> iirc their reasoning was something along "because we fucked up and used bin differently"
zotherstupidguy has joined #ruby
<adaedra> because bundler, that's why.
AustinMatherne has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
<apeiros> toppling over conventions can be healthy. but "we did it wrong so we fix it by doing wrong more" is stupid IMO.
pandaant has quit [Remote host closed the connection]
Apocalypse has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
<havenwood> a fairy dies every time someone prepends ./bin to PATH
ElFerna has joined #ruby
dwfait has quit [Quit: dwfait]
bgresham has joined #ruby
demophoon has quit [Quit: :wqall!]
<havenwood> I wish they'd stop with that nonsense.
ceej has quit [Ping timeout: 276 seconds]
<havenwood> Not okay!
bgresham has quit [Excess Flood]
<adaedra> path+=(./bin)
<adaedra> :p
FooMunki has quit [Quit: FooMunki]
<havenwood> nooooo
demophoon has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> reminds me that I wanted to think about direnv…
rodfersou has joined #ruby
FooMunki has joined #ruby
<adaedra> I really like zsh's $path.
<apeiros> gut says "oh dear god, no", but then again, I use rvm which does about the same.
<havenwood> adaedra: I really like zsh's preexec function.
demophoon has quit [Excess Flood]
<adaedra> <3
ceej has joined #ruby
demophoon has joined #ruby
<havenwood> Was just looking the other day at: https://github.com/rcaloras/bash-preexec
<adaedra> And precmd, too.
<adaedra> Also, add-zsh-hook to make it a bit more maintainable.
AustinMatherne has quit [Ping timeout: 250 seconds]
AustinMatherne has joined #ruby
sgambino has quit [Ping timeout: 272 seconds]
axsuul has quit [Ping timeout: 276 seconds]
DoubleMalt has quit [Ping timeout: 250 seconds]
<survili> havenwood: great! didn't know there was gem contents flag, thanks a lot
bMalum has joined #ruby
ta0 has joined #ruby
<havenwood> survili: np
ceej has quit [Ping timeout: 245 seconds]
ceej has joined #ruby
seitensei has joined #ruby
AustinMatherne has quit [Ping timeout: 265 seconds]
Begi has quit [Ping timeout: 240 seconds]
AustinMatherne has joined #ruby
ElFerna1 has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
ElFerna1 is now known as ElFerna
DoubleMalt has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
Jackneill has quit [Read error: Connection reset by peer]
sgambino has joined #ruby
seitensei has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
AustinIncognito has joined #ruby
Begi has joined #ruby
AustinMatherne has quit [Ping timeout: 265 seconds]
leksster has quit [Remote host closed the connection]
Jardayn has quit [Ping timeout: 255 seconds]
tagrudev has quit [Remote host closed the connection]
dotix has joined #ruby
AustinIncognito has quit [Ping timeout: 265 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
goose__ has joined #ruby
goose__ has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
goose__ has joined #ruby
Djole has joined #ruby
FernandoBasso has quit [Quit: Leaving]
dotix has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
bMalum has joined #ruby
bensarz has joined #ruby
arup_r has joined #ruby
krobzaur has quit [Ping timeout: 240 seconds]
goose__ has quit []
ruid has quit [Ping timeout: 255 seconds]
AustinMatherne has joined #ruby
roshanav_ has quit [Remote host closed the connection]
whippythellama has joined #ruby
roshanavand has joined #ruby
celly has joined #ruby
jottr_ has quit [Quit: WeeChat 1.3]
roshanavand has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
mdw_ has joined #ruby
sundhell has quit [Quit: WeeChat 1.3]
Yzguy has joined #ruby
dhollinger has joined #ruby
celly has quit [Ping timeout: 260 seconds]
mdw has quit [Ping timeout: 250 seconds]
krobzaur has joined #ruby
Begi2 has joined #ruby
weemsledeux has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
ceej has quit [Ping timeout: 255 seconds]
rideh has quit [Ping timeout: 260 seconds]
GGMethos has quit [Ping timeout: 260 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
Begi has quit [Ping timeout: 276 seconds]
sankaber has joined #ruby
ceej has joined #ruby
cajone_afk is now known as cajone
freerobby has joined #ruby
freerobby has quit [Client Quit]
thesheff17 has quit [Ping timeout: 240 seconds]
rideh has joined #ruby
suffice has quit [Ping timeout: 265 seconds]
nisstyre has quit [Ping timeout: 256 seconds]
hinbody has joined #ruby
suffice has joined #ruby
ElFerna has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
justinweiss has quit [Ping timeout: 240 seconds]
avahey has quit [Ping timeout: 240 seconds]
bttf has quit [Ping timeout: 240 seconds]
sankaber has quit [Remote host closed the connection]
thesheff17 has joined #ruby
blaxter has joined #ruby
justinweiss has joined #ruby
survili has quit [Ping timeout: 252 seconds]
sankaber has joined #ruby
AustinMatherne has quit [Ping timeout: 240 seconds]
bove has quit [Ping timeout: 250 seconds]
avahey has joined #ruby
frankS2 has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
bove has joined #ruby
bcavileer_ has quit [Ping timeout: 250 seconds]
felltir has quit [Remote host closed the connection]
kellabyte has quit [Ping timeout: 240 seconds]
bttf has joined #ruby
shelling__ has quit [Ping timeout: 250 seconds]
AustinMatherne has joined #ruby
Lloyd has quit [Ping timeout: 240 seconds]
jevs has quit [Ping timeout: 240 seconds]
hagabaka has joined #ruby
codecop has quit [Remote host closed the connection]
roshanavand has joined #ruby
kellabyte has joined #ruby
jevs has joined #ruby
stannard has joined #ruby
Lloyd has joined #ruby
shelling__ has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
bcavileer_ has joined #ruby
frankS2 has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
deeprave has quit [Ping timeout: 240 seconds]
futilegames has quit [Quit: futilegames]
GGMethos has joined #ruby
nfk|laptop has quit [Ping timeout: 276 seconds]
zemmihates has quit [Ping timeout: 250 seconds]
deeprave has joined #ruby
kaleido has joined #ruby
zemmihates has joined #ruby
polishdub has joined #ruby
dwfait has joined #ruby
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
akaiiro has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krobzaur has quit [Ping timeout: 276 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.3]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
kmckelvin has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
solars has quit [Ping timeout: 250 seconds]
AlphaAtom has quit [Max SendQ exceeded]
babblebre has joined #ruby
AlphaAtom has joined #ruby
bMalum has joined #ruby
bensarz has quit [Quit: Textual IRC Client: www.textualapp.com]
AlphaAtom has quit [Max SendQ exceeded]
devoldmx has joined #ruby
Encapsulation has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
teoric has joined #ruby
teoric has quit [Client Quit]
teoric has joined #ruby
AlphaAtom has joined #ruby
dwfait has quit [Quit: dwfait]
nisstyre has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<greenhat> direnv is great. ./bin is only in your path when you are in your project directory.
cmckni3 has joined #ruby
idefine has joined #ruby
trwyth has joined #ruby
atomical has joined #ruby
bMalum has quit [Quit: bMalum]
haraigoshi has joined #ruby
tjohnson has joined #ruby
edwinvdgraaf has joined #ruby
teoric has quit [Quit: WeeChat 1.3]
edwinvdgraaf has quit [Client Quit]
norc has quit [Ping timeout: 252 seconds]
idefine has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
haraigoshi has quit [Ping timeout: 256 seconds]
atumzin has quit [Ping timeout: 255 seconds]
Yzguy has quit [Quit: Zzz...]
ElFerna has quit [Ping timeout: 264 seconds]
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
bMalum has joined #ruby
[k- has quit [Quit: Lingo: www.lingoirc.com]
cyfr0n has joined #ruby
aegis3121 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Dimik has joined #ruby
kies^ has joined #ruby
renderf__ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
renderfu_ has quit [Ping timeout: 250 seconds]
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
atomical has quit [Ping timeout: 256 seconds]
solocshaw has joined #ruby
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug has joined #ruby
symm- has joined #ruby
aegis3121 has joined #ruby
atomical has joined #ruby
atumzin has quit [Read error: Connection reset by peer]
TheBrayn has quit [Quit: ZNC - http://znc.in]
RegulationD has joined #ruby
arup_r has quit [Remote host closed the connection]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
ElFerna has joined #ruby
TheBrayn has joined #ruby
idefine has quit [Read error: Connection reset by peer]
TheBrayn has quit [Client Quit]
bithon has joined #ruby
devbug has quit [Ping timeout: 276 seconds]
tomphp has joined #ruby
Jackneill has joined #ruby
TheBrayn has joined #ruby
PsionTheory has joined #ruby
mark1 has quit [Quit: Leaving.]
ElFerna has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
duckpuppy has joined #ruby
arup_r has joined #ruby
SenpaiSilver has quit [Ping timeout: 256 seconds]
jordanm has joined #ruby
cmckni3 has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest38 has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
andywojo has joined #ruby
GGMethos has quit [Ping timeout: 260 seconds]
trwyth has joined #ruby
scepticulous has quit [Ping timeout: 256 seconds]
synthroid has quit [Remote host closed the connection]
GGMethos has joined #ruby
jondot has joined #ruby
hagabaka has quit [Remote host closed the connection]
hagabaka has joined #ruby
idefine has joined #ruby
axsuul has joined #ruby
jondot has quit [Client Quit]
aryaching has joined #ruby
azgil has quit [Read error: Connection reset by peer]
azgil has joined #ruby
andywojo has quit [Ping timeout: 250 seconds]
loincloth has joined #ruby
tvw has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
chouhoulis has joined #ruby
darkxploit has joined #ruby
scripore has joined #ruby
axsuul has quit [Ping timeout: 256 seconds]
hagabaka has quit [Ping timeout: 260 seconds]
snockerton has joined #ruby
ElFerna has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
moeabdol1 has joined #ruby
trwyth has joined #ruby
wrilain has joined #ruby
krobzaur has joined #ruby
seitensei has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
curses has joined #ruby
jinie has quit [Remote host closed the connection]
puria has joined #ruby
jinie has joined #ruby
nertzy has joined #ruby
trwyth has quit [Ping timeout: 240 seconds]
FernandoBasso has joined #ruby
seitensei has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
startupality has joined #ruby
stannard has quit [Remote host closed the connection]
ta0 has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
Jardayn has joined #ruby
<guardian> hello, if I do s = 'the value of x = #{x}'
<guardian> then how do I dynamically evaluate that string and make the interpolation happen?
gregf has quit [Quit: WeeChat 1.3]
<ljarvis> guardian: you don't
<havenwood> guardian: Double quotes.
|ifei5g00d has joined #ruby
<havenwood> guardian: Can't interpolate with single quotes.
<guardian> basically, I weant s to be a template and evaluate it multiple times with different values of x
<aegis3121> Sounds like a function.
<guardian> havenwood: I put simple quotes on purpose
<ljarvis> guardian: use a templating tool?
celly has joined #ruby
<ljarvis> otherwise you'll need to do substitutions
<guardian> no I don't need a full templating lib/tool
<havenwood> guardian: Are you familiar with ERB?
<ljarvis> eh
<ljarvis> you don't need one?
<adaedra> source.map do |n| "the value of x = #{x}" end
<ljarvis> lol
<guardian> yes I am familiar with ERB
<adaedra> err, s/n/x/
<aegis3121> def a_string(val) "the value of x = #{val}"; end
<guardian> well, I admit I'm simplifying in hope we could focus on late string interpolation :)
symm- has quit [Quit: Leaving...]
<guardian> the string s = "x = #{x}" comes from a config file
constantinexvi has quit [Ping timeout: 240 seconds]
<ljarvis> do you control the syntax?
renderf__ has quit [Read error: Connection reset by peer]
renderfu_ has joined #ruby
<guardian> in the config file, which is not Ruby, nor an advanced DSL, the user can swap #{x} for #{y} or #{z} but it's a limited set of choices
rkazak_ has joined #ruby
jinie_ has joined #ruby
<guardian> x, y, z being variables of the program that reads the conf
<guardian> ljarvis: yes
<ljarvis> guardian: then change it to %{}
<ljarvis> guardian: and use string formatting
gregf has joined #ruby
<Ox0dea> This is all missing the point of guardian's question.
<ljarvis> >> "foo %{bar}" % { bar: "baz" } # guardian
<ruboto> ljarvis # => "foo baz" (https://eval.in/494882)
<Ox0dea> They want to do "late binding" in an interpolated string.
celly has quit [Ping timeout: 272 seconds]
constantinexvi has joined #ruby
<guardian> ljarvis: ah nice, that would work, thanks
<ljarvis> np
<Ox0dea> Well, that's what they said they wanted to do, anyway. :P
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Too bad my crystal ball is broken.
<ljarvis> you can't interpret everything literally :)
<Ox0dea> Prove it.
<ljarvis> see above
<guardian> Ox0dea: well with what ljarvis suggested the syntax is a bit different but it achieves of replacing %{bar} after the fact
timonv has joined #ruby
JoshGlzBrk has joined #ruby
bithon has quit [Ping timeout: 245 seconds]
<Ox0dea> guardian: Not quite. It's still just interpolation.
timonv has quit [Client Quit]
jinie has quit [Ping timeout: 250 seconds]
jinie_ is now known as jinie
<havenwood> adaedra: Maybe reimplement it in Crystal.
AlphaAtom has joined #ruby
<adaedra> It's not too late for the joke of the year.
<Ox0dea> guardian: Maybe you just want regular-ol' string formatting?
<Ox0dea> >> '%s %d' % ['foo', 42]
<ruboto> Ox0dea # => "foo 42" (https://eval.in/494885)
JoshGlzBrk has quit [Client Quit]
<Ox0dea> `%{bar}` is also just "regular-ol' string formatting", I suppose.
<guardian> yes
<guardian> which is enough for my current problem
<guardian> I thought about eval because that's what I would do in bash, but with ruby's string interpolation it solves my little problem just fine
<Ox0dea> But... we've just concluded that you want string formatting, not interpolation.
baroquebobcat has quit [Quit: baroquebobcat]
trwyth has joined #ruby
<adaedra> :>
tvw has joined #ruby
<guardian> I want the string s to be = "x is %{foo}" read from a configuration file, and evaluate that and replace %{foo} by its actual value
loinclot_ has joined #ruby
<guardian> which is string formatting, as far as I understand right?
roshanavand has joined #ruby
roshanav_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
Lucky__ has joined #ruby
roshanavand has quit [Remote host closed the connection]
<jhass> guardian: yes, see docs for String#% and Kernel#sprintf
loincloth has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
<guardian> thanks for the help
kies^ has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
Guest37759 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
Petazz_ is now known as Petazz
loren has joined #ruby
cdg has joined #ruby
loren321 has joined #ruby
bithon has joined #ruby
sigurding has quit [Quit: sigurding]
norc has joined #ruby
bMalum has quit [Quit: bMalum]
norc is now known as Guest52714
Guest52714 has quit [Client Quit]
Guest37759 has quit [Quit: AndroidIrc Disconnecting]
loren has quit [Client Quit]
<livcd> cannot load such file -- zlib when i do gem install
<livcd> i have installed zlib1g-dev but that did not help
<Ox0dea> >> require 'zlib' # livcd
<ruboto> Ox0dea # => true (https://eval.in/494896)
<Ox0dea> It's part of the standard library.
BTRE has left #ruby ["Leaving"]
bMalum has joined #ruby
mdw_ has quit [Quit: Sleeping Zzzzz]
<livcd> i compiled ruby from source
bMalum has quit [Client Quit]
nertzy has quit [Quit: This computer has gone to sleep]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> I'm sorry to hear that.
<livcd> oh nvm found the solution
kfpratt has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
jobewan has joined #ruby
bMalum has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
kies^ has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
amclain has joined #ruby
Mia has quit [Ping timeout: 276 seconds]
aryaching has quit []
cdg has quit []
shakes has joined #ruby
s1kx has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TomPeed has joined #ruby
cdg has joined #ruby
roshanavand has quit [Remote host closed the connection]
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
ElFerna has joined #ruby
aryaching has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElFerna has quit [Remote host closed the connection]
ElFerna has joined #ruby
AlphaAtom has joined #ruby
wolffles has joined #ruby
trwyth has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
mdw has joined #ruby
haraigoshi has joined #ruby
loinclot_ has quit [Remote host closed the connection]
loincloth has joined #ruby
devoldmx has joined #ruby
scripore has joined #ruby
kfpratt has quit [Remote host closed the connection]
banister has joined #ruby
moeabdol1 has quit [Ping timeout: 276 seconds]
sigurding has joined #ruby
haraigoshi has quit [Ping timeout: 246 seconds]
skcin7_ has joined #ruby
skcin7 has quit [Read error: Connection reset by peer]
kies^ has quit [Ping timeout: 246 seconds]
yes`r has quit [Ping timeout: 276 seconds]
mdw has quit [Ping timeout: 256 seconds]
sigurding has quit [Client Quit]
devoldmx has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
ElFerna has quit [Ping timeout: 264 seconds]
FooMunki_ has joined #ruby
Rodya_ has quit [Quit: Leaving...]
Jammy_Work has quit [Quit: Leaving]
FooMunki has quit [Ping timeout: 276 seconds]
FooMunki_ is now known as FooMunki
yes`r has joined #ruby
SCHAAP137 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
RegulationD has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wolffles has quit [Quit: wolffles]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
aryaching has quit []
Wompy has joined #ruby
Coldblackice has quit [Ping timeout: 264 seconds]
ta0 has joined #ruby
baweaver has joined #ruby
<shevy> long live ruby \o/
roshanavand has joined #ruby
puria has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 1.2]
AlphaAtom has joined #ruby
smactive has joined #ruby
async_prince has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
kknight has joined #ruby
ico has joined #ruby
async_prince has quit [Client Quit]
async_prince has joined #ruby
smactive has quit [Ping timeout: 265 seconds]
bMalum has quit [Quit: bMalum]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
jackjackdripper has joined #ruby
kstuart has quit [Quit: WeeChat 1.3]
adgtl has joined #ruby
startupality has quit [Quit: startupality]
<adgtl> Guys I have list of input numbers as [30, 40, 20, 20, 30] and I want to select only numbers so that total matches to 120
<adgtl> or closer to 120
<adgtl> is there any way in Ruby to perform this kind of operation?
shanemcd has quit [Remote host closed the connection]
ElFerna has joined #ruby
psy_ has joined #ruby
wrilain has quit [Remote host closed the connection]
<adgtl> Selected list should be [20, 30, 30, 40] as total is 120
<adgtl> instead of [20, 20, 30, 40]
idefine has quit [Ping timeout: 260 seconds]
<Ox0dea> >> [30, 40, 20, 20, 30].combination(4).select { |ns| ns.reduce(:+) == 120 } # adgtl
<ruboto> Ox0dea # => [[30, 40, 20, 30], [30, 40, 20, 30]] (https://eval.in/494921)
<Ox0dea> Something like that.
startupality has joined #ruby
<adgtl> Ox0dea: what is 4 in combincation
<Ox0dea> adgtl: Guess.
<adgtl> combination
plsk has joined #ruby
puria has joined #ruby
ElFerna has quit [Remote host closed the connection]
aegis3121 has joined #ruby
ElFerna has joined #ruby
roshanavand has quit [Remote host closed the connection]
<adgtl> Ox0dea: yeah.. but I can't decide that 4
lucid_ has joined #ruby
<adgtl> basically list can be big one
<adgtl> and instead of 120.. there could be another number
<Ox0dea> adgtl: I picked it at random. https://xkcd.com/221/
<Ox0dea> adgtl: How big?
hxegon has joined #ruby
<adgtl> e.g. [30, 45, 20, 20, 30, 50, 60, 45] and you have to find out best fit of numbers whose total is/near 200
domgetter has joined #ruby
<adgtl> Ox0dea: it doesnt need to be exactly same.. but total should be near (but less than) or equal to 200
<Ox0dea> adgtl: You want #combination and some effort.
shanemcd has joined #ruby
aryaching has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has joined #ruby
loren321 has quit [Quit: Leaving]
ElFerna has quit [Ping timeout: 260 seconds]
felltir has joined #ruby
kirun has joined #ruby
kies^ has joined #ruby
felltir has quit [Client Quit]
demophoon has quit [Quit: :wqall!]
blaxter has quit [Quit: foo]
rkazak_ has quit [Quit: Sleep.....ing....]
demophoon has joined #ruby
stannard has quit [Remote host closed the connection]
rippa has joined #ruby
skcin7_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
baweaver has quit [Remote host closed the connection]
dn` has quit [Quit: dn`]
<havenwood> adgtl: So maybe iterate from one up to the list size and flat map to a combo of the list of that size, selecting combos where sums are between the goal minus the tolerance and the goal plus the tolerance. Then limit it to the unique ones if you want to not have the same combos due to repeated numbers in a list.
camillo has joined #ruby
<adgtl> havenwood: exactly
<adgtl> havenwood: let me implement it and paste it here
andywojo has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
<havenwood> adgtl: sounds good
<Ox0dea> havenwood: Why not #group_by the absolute difference with the target and take the min?
<havenwood> Ox0dea: mmm
sol_ has quit [Ping timeout: 240 seconds]
camillo is now known as sol_
banister has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
lacrosse has joined #ruby
pawnbox has joined #ruby
startupality has quit [Quit: startupality]
dingman has joined #ruby
andywojo has quit [Ping timeout: 256 seconds]
dn5 has joined #ruby
hobodave has joined #ruby
<adgtl> Ox0dea: example?
<adgtl> I will be pasting one with combination
<Ox0dea> adgtl: https://eval.in/494935
<Ox0dea> That looks about right.
pawnbox has quit [Ping timeout: 250 seconds]
moeabdol1 has joined #ruby
<Ox0dea> Please try to break it.
isomorphismes has joined #ruby
kknight has quit [Quit: Leaving]
<Ox0dea> I suspect you're not allowed to go over the goal, so absolute difference isn't sufficient, but that's left as an exercise.
celly has joined #ruby
pen has joined #ruby
pen has quit [Remote host closed the connection]
PsionTheory has quit [Remote host closed the connection]
davedev24 has joined #ruby
rkazak_ has joined #ruby
<Ox0dea> As payment for services rendered, please add !~ to ruby-operators and call it the bangarang.
seitensei has joined #ruby
yxby- has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
moeabdol1 has quit [Ping timeout: 255 seconds]
bMalum has joined #ruby
<Ox0dea> Oh, the #uniq really ought to go right after the #flat_map.
celly has quit [Ping timeout: 260 seconds]
AlphaAtom has joined #ruby
<isomorphismes> I'm still using ruby v1.9.3p0 (Ubuntu's package version). Just trying to make a quickie Sinatra site. Do I need to switch up to v2 ?
<isomorphismes> And if so -- what's a "safe" way to do that?
CloCkWeRX has quit [Quit: Leaving.]
SenpaiSilver has joined #ruby
seitensei has quit [Ping timeout: 265 seconds]
yxby- has left #ruby [#ruby]
<havenwood> isomorphismes: Usually Brightbox maintains up-to-date Ruby packages for Ubuntu but they're on Christmas break so no 2.3 yet: https://www.brightbox.com/docs/ruby/ubuntu/
idefine has quit [Read error: Connection reset by peer]
<havenwood> isomorphismes: But they do have 2.2.4 and will have 2.3.0 soon.
<isomorphismes> havenwood: Thanks. How important is it to get off v1.9.3p0 ?
idefine has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 250 seconds]
<havenwood> isomorphismes: I think it's worth switching to a stable, supported Ruby.
dopie has quit [Quit: Lost terminal]
yxby has joined #ruby
<havenwood> isomorphismes: 2.1.8, 2.2.4 or 2.3.0
<havenwood> (2.0.0-p648 is on its last legs)
arup_r has quit [Remote host closed the connection]
<havenwood> (End-of-life in Feb)
davedev24 has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
Wsewolod has joined #ruby
bMalum has quit [Quit: bMalum]
<isomorphismes> havenwood: Thanks. Do I need to learn new commands> Last time I touched ruby was 2-3 yrs ago
<havenwood> isomorphismes: You might give Roda a look too (like Sinatra but with a routing tree and nifty plugin system): https://github.com/jeremyevans/roda#readme
marcdel has joined #ruby
<isomorphismes> Why is a routing tree better than Sinatra's way?
<havenwood> isomorphismes: There are a handful of new methods and some nice changes under the hood but you should be good.
cajone is now known as cajone_afk
yxby has quit [Remote host closed the connection]
dopie has joined #ruby
yxby has joined #ruby
skcin7 has joined #ruby
yxby has quit [Remote host closed the connection]
bMalum has joined #ruby
<havenwood> isomorphismes: Sinatra runs a Regexp against each route so if you say have thousands it slows down substantially since it has to check each one every time. Typically it doesn't matter but it gives you flexibility.
Begi2 has quit [Ping timeout: 246 seconds]
shanemcd has quit [Remote host closed the connection]
<isomorphismes> lol
<isomorphismes> still getting this error (posted 2011)
shanemcd has joined #ruby
roshanavand has joined #ruby
<isomorphismes> havenwood: cool. thanks
blipz has joined #ruby
<havenwood> isomorphismes: Don't use Ubuntu's RVM package! ;)
yxby has joined #ruby
<havenwood> isomorphismes: Roda's plugin system is really nice. You get to compose your own framework. It's really nicely made.
arup_r has joined #ruby
<havenwood> isomorphismes: Its creator is the maintainer of the Sequel gem so of course they work swimmingly together.
mallu has joined #ruby
<mallu> can someone please tell me how to convert date 8/11/2015 to milliseconds?
<havenwood> isomorphismes: ruby-install 0.6.0 is out now but this is a good writeup on chruby/ruby-install on Ubuntu: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you//
<shevy> mallu you need a time object
<mallu> p DateTime.strptime("08/11/2015" '%Q') ArgumentError: invalid date
blipz has quit [Quit: Mutter: www.mutterirc.com]
<shevy> mallu try Time.parse "08/11/2015" or another parse method; also use valid ruby syntax
<mallu> shevy: ok let me try that
baweaver has joined #ruby
<havenwood> isomorphismes: If you want to use RVM definitely uninstall the system package and install from master: \curl -sSL https://get.rvm.io | bash
<isomorphismes> Is there a way to get offline docs / man pages for ruby?
<havenwood> isomorphismes: Yeah, Ruby ships with rdoc and ri.
roshanavand has quit [Ping timeout: 260 seconds]
<isomorphismes> havenwood: what about rvm head && rvm smile? That was what an SO answer said.
<isomorphismes> havenwood: thanks
Begi has joined #ruby
<havenwood> isomorphismes: If you're using RVM to install: rvm docs generate
<isomorphismes> ok awesome
<shevy> mallu you may have to do require 'date' or require 'time' before some methods are available; it's best to have a look at the official documentation http://ruby-doc.org/stdlib-2.3.0/libdoc/date/rdoc/Date.html
<havenwood> isomorphismes: see: rvm help docs
<Ox0dea> mallu: Milliseconds since the Unix epoch, you mean?
lucid_ has quit [Ping timeout: 260 seconds]
<mallu> Ox0dea: yes
idefine has quit [Read error: Connection reset by peer]
<hxegon> that feeling when after getting fed up with no reply from support your halfway through rolling your own API client and they email you back 2 weeks into it and say "The option to do that only appears for us."
* hxegon starts calmly tearing his hair out
baroquebobcat has joined #ruby
<havenwood> isomorphismes: Yeah, you don't want an apt-get version of RVM around. That's bad.
idefine has joined #ruby
<isomorphismes> ....which points to https://blog.coolaj86.com/articles/installing-ruby-on-ubuntu-12-04.html, which seems to be broken.
<havenwood> isomorphismes: Kill it with fire. Restart your computer and wash your hands. Then reinstall RVM (from master not stable): \curl -sSL https://get.rvm.io | bash
<isomorphismes> Well, it can't seem to find either now.
centrx has joined #ruby
dopie has quit [Quit: Lost terminal]
<isomorphismes> I have the git clone in /opt, I can ust run it from there?
dopie has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
<Ox0dea> >> require 'date'; d = '08/11/2015'; (Date.today - Date.strptime(d, '%m/%d/%Y')).to_i * 86_400_000 # mallu
<ruboto> Ox0dea # => 12096000000 (https://eval.in/494943)
<Ox0dea> But it's unclear why you'd need such a thing.
<mallu> Ox0dea: thank you
jmignault has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: bMalum]
shanemcd has quit [Remote host closed the connection]
axsuul has joined #ruby
ghr has joined #ruby
<havenwood> isomorphismes: I don't quite follow.
nietzschette has joined #ruby
<Ox0dea> mallu: Sorry, that's totally wrong.
RegulationD has joined #ruby
<Ox0dea> That's the number of milliseconds between then and now.
epochwolf has quit [Excess Flood]
<Ox0dea> >> require 'date'; Date.strptime('08/11/2015', '%m/%d/%Y').strftime '%s000'
<ruboto> Ox0dea # => "1439251200000" (https://eval.in/494944)
<Ox0dea> See how wanting it as milliseconds seems a little weird?
epochwolf has joined #ruby
dopie has quit [Client Quit]
idefine has quit [Read error: Connection reset by peer]
<centrx> What is the best project management tool?
<nietzschette> 0x0dea = 3562?
<Ox0dea> >> 0x0dea
<jhass> ?best centrx
<ruboto> centrx, "better" and "best" depend entirely on your context. Try to describe what quality would make one thing better than the other.
<ruboto> Ox0dea # => 3562 (https://eval.in/494946)
<isomorphismes> so I need to do \curl -L https://get.rvm.io | bash -s master --ruby --autolibs=enable --auto-dotfiles ?
<Ox0dea> Please don't.
<isomorphismes> I've never heard of \curl
<Ox0dea> It's to circumvent aliases.
<centrx> Yeah I'm looking for the best one of all time. I have no idea what qualities
<havenwood> isomorphismes: It's just curl. Backslash to avoid aliases.
<centrx> jhass, What project management tool(s) do you use?
<jhass> centrx: mostly Github
<centrx> hmm there's an idea
ChameleonSix has joined #ruby
<jhass> some redmine
kaleido has joined #ruby
<havenwood> isomorphismes: I believe --autolibs=enable and --auto-dotfiles are defaults. I usually install Ruby as a second step rather than all-in-one command.
<havenwood> isomorphismes: I'd just: \curl -sSL https://get.rvm.io | bash
<centrx> jhass, Thank you
Jardayn has quit [Quit: Leaving]
dopie has joined #ruby
Jardayn has joined #ruby
<jhass> trello looks pretty neat for some usecases
dopie has quit [Client Quit]
<ChameleonSix> havenwood
<centrx> Trello was really basic and simple when I tried it
<ChameleonSix> my brother
<ChameleonSix> Im going through koans right now
<hxegon> ?question
<ruboto> I don't know anything about question
dopie has joined #ruby
renderfu_ has quit [Read error: Connection reset by peer]
<hxegon> someone help me out here
dopie has quit [Client Quit]
<ChameleonSix> no questions
baweaver has quit [Remote host closed the connection]
renderfu_ has joined #ruby
<ChameleonSix> why is ruboto on android different than irb on pc
<ChameleonSix> ?
<mallu> Ox0dea: thanks
<Ox0dea> Sure thing.
<nietzschette> when I feed a string literal into my gosu app, it draws just fine. when I read from $stdin, the app draws each character as seperate entries in an array. anybody know what's going on here?
<Ox0dea> hxegon: Hm?
rideh has quit [Ping timeout: 256 seconds]
<isomorphismes> havenwood: Right, when I did that I got message redirecting me to that SO answer, which redirected to https://web.archive.org/web/20140219110850/http://blog.coolaj86.com/articles/installing-ruby-on-ubuntu-12-04.html
<hxegon> Ox0dea isn't there a fact that says something like, don't ask to ask a question?
<Ox0dea> ?ask hxegon
<ruboto> hxegon, Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
rideh has joined #ruby
<ChameleonSix> mr ruboto
<havenwood> isomorphismes: Ah, I missed that part. Gotcha.
<hxegon> ChameleonSix do you mean ruboto the bot in this channel or ruboto the android ruby framework?
<ChameleonSix> ruboto the android...
<isomorphismes> But there's something wrong with stable and I should use master, or no? havenwood 0x0dea
<hxegon> "the password is fourwordsalluppercase"
roshanavand has joined #ruby
<Ox0dea> NO!
<havenwood> isomorphismes: stable is just old and has bugs that are fixed in master
<havenwood> isomorphismes: and doesn't have new rubies
<isomorphismes> ah ok thanks
<shevy> isomorphismes come to the future!
<hxegon> ChameleonSix so what are you trying to compare between the framework and IRB?
<shevy> 2.3.0
<ChameleonSix> gets.chomp
<jhass> and unicode
<isomorphismes> shevy: cool, that's the one I was thinking of getting. thx
<domgetter> nietzschette: can you make a gist of what you mean? https://gist.github.com/
<domgetter> How are you using gosu when you give it a literal, and how are you reading from stdin?
<hxegon> Ox0dea my fav rocketjump in quite a while
hagabaka has joined #ruby
<nietzschette> unfortunatly .chomp doesn't print anything
<isomorphismes> 18:56 < Ox0dea> Please don't. 19:04 < Ox0dea> NO! <---- Was that directed at me getting bash -s master ?
<hxegon> ChameleonSix can you be more specific?
Cohedrin has joined #ruby
ec^ is now known as ELLIOTTCABLE
<ChameleonSix> try it for yourself
<ChameleonSix> and you will see
dopie has joined #ruby
<Ox0dea> isomorphismes: More RVM in general, but I'll stop.
<shevy> ChameleonSix don't be so mean
<ChameleonSix> idk how to explain
<ChameleonSix> ...
haraigoshi has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
<hxegon> ChameleonSix I *can't* help you if the only thing I know is that your trying to see a difference between either ruboto the irc bot or the android framework and irb on pc, and it's 'gets.chomp'
dopie has quit [Client Quit]
<ChameleonSix> it doesnt work on ruboto
<ChameleonSix> idk why
puria has quit [Ping timeout: 276 seconds]
<Ox0dea> ChameleonSix: Why are you even using Ruboto?
<Ox0dea> Tasker + shell scripts, silly.
redeeem has joined #ruby
<adaedra> Hello
<hxegon> adaedra ESCAPE WHILE YOU CAN
redeeem has quit [Client Quit]
<ChameleonSix> hmm
<ChameleonSix> shell scripts
<ChameleonSix> ?
<Ox0dea> nietzschette: You're using #getch, which reads one character at a time.
<isomorphismes> 0x0dea: So what's wrong with RVM?
<adaedra> nietzschette: change the file extension to .rb and get syntax colors!
<adaedra> isomorphismes: it's bloat.
<nietzschette> the problem remains
<havenwood> isomorphismes: It's over ten thousand lines of shell scripting.
<adaedra> hxegon: I'm only watching.
shanemcd has joined #ruby
<isomorphismes> 0x0dea: I'm just trying to do something pretty quick. My only decision criterion is will it work pretty much immediately with as close to 0 as possible effort/research
<domgetter> nietzschette: file extensions make it pretty: https://gist.github.com/domgetter/a4f7aa1f99ed1df07373 :)
<ChameleonSix> brb 20 minsđ
<ChameleonSix> mins*
<hxegon> ChameleonSix I found a super nice link that can explain it all http://goo.gl/MSVUKo
<Ox0dea> isomorphismes: That's a troubling mindset, but okay.
<ChameleonSix> tnx anyway
<hxegon> :|
<nietzschette> that is pretty, thank you dom
<isomorphismes> 0x0dea: I'm not a ruby programmer
haraigoshi has quit [Ping timeout: 250 seconds]
<domgetter> nietzschette: but yea, use gets.chomp
<domgetter> not getch
<Ox0dea> domgetter: That's obviously not what they want to do.
<nietzschette> gets.chomp does not print anything at all
<Ox0dea> This is for a game, where uncooked input is to be desired.
<domgetter> oooh
<domgetter> hmm
<Ox0dea> nietzschette: Could you link the declaration of this BottomFeeder class?
tildes has joined #ruby
cinch has joined #ruby
<havenwood> isomorphismes: The simplest way is the 2.2.4 Brightbox package. The next simplest would probably be `ruby-install --latest --system ruby` for a /usr/local install.
<havenwood> isomorphismes: Do you need more than one Ruby?
dopie has joined #ruby
<havenwood> isomorphismes: If you don't need more than one Ruby you don't need a switcher.
<isomorphismes> havenwood: I don't think so. Just wanted to check that v1.9.3p0 isn't so horribly out of date that it's actually broken.
<domgetter> nietzschette: how about this: until you read a newline character from getch, keep storing the input into a string, and then shove the resulting word into @words
<havenwood> isomorphismes: It's past End-of-Life but the sky won't fall.
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rideh has quit [Ping timeout: 260 seconds]
<domgetter> wait, what the heck is getch?
<havenwood> isomorphismes: I'd say Brightbox package and be done with it.
<adaedra> &ri getch
<hxegon> havenwood is it possible to make a fact that takes a google search query and makes a shortened lmgtfy link?
jondot has joined #ruby
<havenwood> domgetter: Press a key, capture it.
<isomorphismes> havenwood: I already have it with rvm. Should I get rid of that now?
<nietzschette> the bottomfeeder class works fine when I test it using a string litteral "like this". but when I feed it input '["l", "i", "k", "e", " ", "t" , "h" ,"i", "s"]'
<domgetter> NoMethodError: undefined method `getch' for #<IO:<STDIN>>
baweaver has joined #ruby
<adaedra> hxegon: not a fact, a command, but see with apeiros.
<nietzschette> you have to require 'io/console'
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cinch has quit [Remote host closed the connection]
<domgetter> oh
<havenwood> hxegon: what adaedra said - not as a fact but such a command could be added to ruboto
cinch has joined #ruby
<hxegon> thanks adaedra, havenwood
<havenwood> isomorphismes: As long as you have 2.2 or 2.3 you're good.
<nietzschette> here is bottom feeder: it's prolly super confusing https://gist.github.com/anonymous/92e6ab0d55302c4e7a7d
<isomorphismes> havenwood: thanks
<havenwood> isomorphismes: There is more than one way to do it!
<havenwood> isomorphismes: you're welcome
<adaedra> do you even indent?
stannard has joined #ruby
c0m0 has quit [Ping timeout: 276 seconds]
<nietzschette> sorry, i don't usually indent, no
beagles has quit [Ping timeout: 260 seconds]
<adaedra> õ_o
Hounddog has quit [Remote host closed the connection]
<Ox0dea> I can't even tell if that's sadism, masochism, or both.
<havenwood> The humanity!
<nietzschette> I'll leave extra newlines sometimes. But i am a bit of both so ..
baweaver has quit [Ping timeout: 256 seconds]
<Ox0dea> In any case, `@words.in` starts life as a String and becomes an Array, but that can't happen if you're only ever shoveling (<<) into it, so the problem is elsewhere.
<adaedra> indent helps so much with readability
<Ox0dea> Prove it.
<nietzschette> it doesn't help me read it. i'm usually the only one reading it . .
cinch has quit [Remote host closed the connection]
<isomorphismes> Now do I need to sudo gem update ?
<adaedra> ?sudo
<ruboto> I don't know anything about sudo
<adaedra> ?root
<ruboto> general advice in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<domgetter> Ox0dea: huh? in never becomes an array
ferr has joined #ruby
<nietzschette> yeah, it stays a string
devoldmx has joined #ruby
<domgetter> >> a = ''; a << "h"; a.class
<ruboto> domgetter # => String (https://eval.in/494949)
<nietzschette> yet, somehow my characters are all padded with quotes, spereated by commas, and bracketed. it's so weird
puria has joined #ruby
<adaedra> that's an array.
aegis3121 has joined #ruby
<domgetter> nietzschette: pro-tip: use .inspect when you want to see what something really looks like
marius1234 has joined #ruby
<adaedra> Or `p`.
<domgetter> nietzschette: I'm confused about the update method in your BottomFeeder class
<domgetter> what is a
<adaedra> Or `pp`, for clearer output.
aegis3121 has quit [Client Quit]
<nietzschette> a = @in[@pos]
tectonic has joined #ruby
<nietzschette> it's because i'm reading character by character of the string, @in
demophoon has quit [Ping timeout: 264 seconds]
hagabaka has quit [Quit: Communi 3.4.0 - http://communi.github.com]
<domgetter> okay go tit
<domgetter> got it*
<nietzschette> looking for newlines and measuring when to start a new line
mostlybadfly has quit [Quit: Connection closed for inactivity]
<shevy> domgetter go tit!!!
synthroid has quit [Remote host closed the connection]
<Ox0dea> Le tits now.
ChameleonSix has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 272 seconds]
<adaedra> Too hot for that.
aegis3121 has joined #ruby
<nietzschette> how does one tit? i mean as a verb.
<nietzschette> i must see demonstration
hostess has joined #ruby
nickjj has quit [Ping timeout: 265 seconds]
nickjj has joined #ruby
<domgetter> that was seven lines of too much conversation for one typo
Axy has quit [Read error: Connection reset by peer]
demophoon has joined #ruby
mostlybadfly has joined #ruby
<adaedra> that was good.
<nietzschette> freudian slip, not a mere typo i think
lucid_ has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marius1234 has quit [Quit: marius1234]
<Ox0dea> nietzschette: To tit is to be the first to engage in tit-for-tat behavior.
<Ox0dea> > selected_talk_list_size = selected_talk_list.size
<nietzschette> 3562: brilliant
<Ox0dea> Great code.
<Ox0dea> adgtl: You're only ever choosing combinations of one particular size. I'm sure that's not what you want.
<adgtl> Ox0dea: great code :D
<adgtl> I mean.. it's not that clean anyways
<Ox0dea> It's just noise plastered over the proper solution I tried to give you. :<
<adgtl> Ox0dea: yeah
rkazak_ has quit [Quit: Sleep.....ing....]
osiutino_ has joined #ruby
aspiers has joined #ruby
marius1234 has joined #ruby
marius1234 has quit [Client Quit]
hagabaka has joined #ruby
<havenwood> adgtl: 1.upto(list.size).flat_map { |size| list.combination(size).select { |combo| combo.inject(:+).between? goal - tolerance, goal } }
marius1234 has joined #ruby
marius1234 has quit [Client Quit]
marius1234 has joined #ruby
marius1234 has quit [Client Quit]
<adgtl> havenwood: thanks :)
<domgetter> havenwood: okay now lazily. and with transducers
bradleyprice has quit [Remote host closed the connection]
<havenwood> domgetter: ;D
tectonic has quit []
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Quit: WeeChat 1.3]
bradleyprice has joined #ruby
marius1234 has joined #ruby
<bodgix> I can't figure out the syntax to end the exception handling: begin block without ending the code block nested within it. Is that even possible? https://gist.github.com/bodgix/0dfa6308d9747248b5ef
jondot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
curses has quit []
andywojo has joined #ruby
ElFerna has joined #ruby
<nietzschette> you can nest exception blocks just fine
<domgetter> bodgix: Is there a reason you don't want ldap.search in the begin block?
tectonic has joined #ruby
<domgetter> It's not like it's harmful
synthroid has joined #ruby
<bodgix> domgetter: I realized it makes sense to keep it there. But in general would it be possible to leave it out?
<jhass> bodgix: are you sure .search throws the same exception as the one open throws that you want to handle?
shanemcd has quit [Remote host closed the connection]
hahuang65 has joined #ruby
bradleyprice has quit [Ping timeout: 260 seconds]
<bodgix> I believe open doesn't create the actual connection so it shouldn't throw anything
<jhass> then just move the begin inside the block?
<bodgix> but in general, putting LDAP example aside, is it possible to do this?
<jhass> no
c355e3b has joined #ruby
<jhass> you can set a flag and reraise depending on it, but meh
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<bodgix> ok. good point. I could move it inside the block
<domgetter> bodgix: yea, blocks are "atomic" in that sense
<domgetter> you can't have half a block
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bodgix> I guess I could createa proc
lucid_ has quit [Ping timeout: 245 seconds]
<bodgix> hm. meh never mind that wouldn't make any difference…
<havenwood> Mm, curried Procs - I'm hungry...
<domgetter> does Net::LDAP.open return an ldap if you don't pass a block?
ddubs has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
<domgetter> if so, just run it without the block, and then things you want inside a begin block, and other things outside
andywojo has quit [Ping timeout: 246 seconds]
trwyth has joined #ruby
<jhass> plus and ensure; ldap.close if ldap; probably
<jhass> *an
ElFerna has quit [Ping timeout: 245 seconds]
<nietzschette> the LDAP object be destroyed after the do block |ldap| ends?
hxegon is now known as hxegon_AFK
<bodgix> domgetter: afaik it doesn't. It's funny how diffferently an ldap handle behaves when constructed with new or when open is used with a block
<domgetter> nietzschette: if it's anything like passing a block to File.open, then the file is closed after the block is finished
<nietzschette> not in dom's example
shanemcd has joined #ruby
<bodgix> if you use ldap = Net::LDAP.new then it creates a new connection for every search/ add etc. If you use Net::LDAP.open { |ldap| …} it creates a single session for the duration of the whole block
pawnbox has quit [Ping timeout: 256 seconds]
gluec has quit [Ping timeout: 260 seconds]
<domgetter> then I would say you want what new does, since you don't want the features of a block
<bodgix> it's in the docs but it's easy to get bitten by it imo anyway
Cohedrin has joined #ruby
<bodgix> but I don't want the "reconnect and bind" behavior
<domgetter> but you want to use the ldap in a new lexical context
colegatron has quit [Ping timeout: 264 seconds]
kmckelvin has joined #ruby
shanemcd has quit [Remote host closed the connection]
<bodgix> actually I'm fine with the begin block spanning across the whole lifetime of LDAP. it makes sense here. However, this example made me wonder if it was possible to end the begin block in the middle of another block. I thought it wasn't possible since it would require a label or sth but thought I'd ask
shanemcd has joined #ruby
kadoppe has quit [Ping timeout: 264 seconds]
gluec has joined #ruby
<nietzschette> no, but you can begin a new exception handler inside the block
harai has joined #ruby
dopie has quit [Quit: Lost terminal]
<bodgix> nietzschette: thanks that's very interesting
dopie has joined #ruby
<bodgix> it doesn't override the outer block I giess?
<nietzschette> no, it prevents the outer block from recieving the exception
kadoppe has joined #ruby
shanemcd has quit [Remote host closed the connection]
<bodgix> ok got you. this is definitely a way to achieve this kind of fine-grained exception handling
chouhoulis has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
kmckelvin has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
moeabdol1 has joined #ruby
<domgetter> Of course, you can re-raise the exception so that it can bubble up
tectonic has quit []
<domgetter> but I don't know how "best practice" that is
chouhoulis has quit [Remote host closed the connection]
ni291187 has joined #ruby
chouhoulis has joined #ruby
ni291187 has left #ruby [#ruby]
roshanavand has joined #ruby
devbug has joined #ruby
tvw has quit [Remote host closed the connection]
yes`r has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
<bodgix> Since rubocop warns to use raise to re-raise and fail in other situations iirc, it looks like re-raising is a valid technique. exception handlers nesting is what I was looking for. great suggestions, thanks everyone :)
volty has joined #ruby
RobertBirnie has joined #ruby
dopie has quit [Quit: Lost terminal]
roshanavand has quit [Ping timeout: 276 seconds]
idefine has quit [Read error: Connection reset by peer]
dopie has joined #ruby
idefine has joined #ruby
devbug has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
juddey has joined #ruby
colegatron has joined #ruby
Starfoxxes has joined #ruby
duckpuppy has joined #ruby
celly has joined #ruby
hxegon_AFK is now known as hxegon
<nietzschette> https://gist.github.com/anonymous/c594ecaa5896d7570038 <-- example, with indents
SCHAAP137 has quit [Ping timeout: 255 seconds]
ta0 has quit [Ping timeout: 260 seconds]
lucid_ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
osiutino_ has quit [Quit: Ex-Chat]
arup_r has quit []
andywojo has joined #ruby
celly has quit [Ping timeout: 240 seconds]
nfk|laptop has joined #ruby
Wompy has quit [Read error: Connection reset by peer]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
cdg has quit [Remote host closed the connection]
Wompy has joined #ruby
<shevy> what ways do we have to check if a variable consists of only numbers? one obvious is to apply regex... another one may be to use .to_i and compare to non 0 value, but do we have anything such as .is_numeric? or similar? like "033".is_numeric? should in this case yield true, if we are to assume that 033 are valid numbers, aka 0-9 even if it is a String
lucid_ has quit [Ping timeout: 260 seconds]
shakes has quit [Ping timeout: 245 seconds]
<Papierkorb> shevy: Well you could do Integer(the_string), which raises if it did not only consist of numbers
yfeldblum has joined #ruby
dotix has joined #ruby
<Ox0dea> Rather, if Ruby couldn't parse it as a number.
nickjj_ has joined #ruby
DarkBushido has joined #ruby
nickjj has quit [Ping timeout: 256 seconds]
<Ox0dea> >> Integer '-4_2'
<ruboto> Ox0dea # => -42 (https://eval.in/494996)
<nietzschette> tested: client works fine on linux, but not on windows: 'this' becomes : '["","t","h","i","s","\n"]'
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
<Ox0dea> nietzschette: That's not even how Ruby prints arrays, so what the heck is going on?
dotix has quit [Ping timeout: 260 seconds]
<nietzschette> the leading null string, i find, i especially curious
<Ox0dea> As are the spaces missing after the commas.
<nietzschette> I have N0idea, 0dea
<nietzschette> no, there are spaces after the comma
jondot has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ChameleonSix has joined #ruby
davejlong has joined #ruby
<ChameleonSix> If contact is a var and contacts is an array
<ChameleonSix> i add contact to contacts contact.push(contacts)
<ChameleonSix> or contacts.push(contact)
idefine has quit [Read error: Connection reset by peer]
<ChameleonSix> nvm figured it out
seitensei has quit [Ping timeout: 276 seconds]
<nietzschette> the owner of the method is the one modified
steffkes has joined #ruby
idefine has joined #ruby
karapetyan has joined #ruby
shakes has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
mdw has joined #ruby
<yorickpeterse> Any OS X users here? If so, what's the output of: ruby -r socket -e 'p Socket::AF_UNIX'
blackgoat has joined #ruby
tildes has quit [Ping timeout: 276 seconds]
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
<Ox0dea> >> class Object; def push a; a << self end end; 2.push [1]
pawnbox has joined #ruby
<ruboto> Ox0dea # => [1, 2] (https://eval.in/495000)
tildes has joined #ruby
karapetyan has quit [Ping timeout: 276 seconds]
_orangejuice has joined #ruby
<Ox0dea> >> class Object; def >> a; a << self end end; :wtf >> [:lol]
<ruboto> Ox0dea # => [:lol, :wtf] (https://eval.in/495001)
freerobby has quit [Quit: Leaving.]
davejlong has quit [Remote host closed the connection]
freerobby has joined #ruby
<Ox0dea> nietzschette: Not when I'm around. ^_^
<nietzschette> ha!
snarkanoid has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
shanemcd has joined #ruby
nickjj_ has quit [Ping timeout: 256 seconds]
ChameleonSix has quit [Quit: Page closed]
tildes has quit [Ping timeout: 276 seconds]
<nietzschette> okay, i fixed my own problem. it now works. when testing the gosu app I was incrementing through a string litteral, but when I started reading from stdin it SOMEHOW exposed a flaw in my method of appending the display list. I don't understand why the former wouldn't expose the same flaw as the latter, though
nickjj has joined #ruby
ferr has quit [Quit: WeeChat 1.3]
adgtl has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
<RobertBirnie> is there a way to get the epoch time for the current minute (not second)? Time.now.to_i / 10 * 10
<adaedra> Ox0dea: still have your no-letter todo app?
<Ox0dea> adaedra: I do.
<adaedra> Can I have a link?
<adaedra> thank you <3
<Ox0dea> <3
<nietzschette> what the damn am i looking at?
<Ox0dea> It's a Sinatra app. ^_^
DavidDudson has joined #ruby
shanemcd has quit [Ping timeout: 272 seconds]
<RobertBirnie> aha, sorry. Time.now.to_i - Time.now.sec.to_i
axsuul has quit [Ping timeout: 245 seconds]
<Ox0dea> >> t = Time.now.to_i; [t, t - t % 60] # RobertBirnie
<ruboto> Ox0dea # => [1451422011, 1451421960] (https://eval.in/495015)
<Ox0dea> nietzschette: See the LoadError? :P
<nietzschette> is it in the ?/ block?
<Ox0dea> Hm?
<zacts> hello rubyists
cdg has joined #ruby
nfk|laptop has quit [Ping timeout: 250 seconds]
<Ox0dea> nietzschette: That's where the Sinatra route gets drawn, yeah.
<adaedra> yorickpeterse: 1
stannard_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
tildes has joined #ruby
AlphaAtom has joined #ruby
<nietzschette> does this build a string to be eval'd?
cdg has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
<zacts> what is Sinatra?
<nietzschette> ol' blue eyes
davejlong has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
hxegon is now known as hxegon_AFK
<kaleido> zacts, its a web framework
<zacts> oh cool
<adaedra> mmh, I ponder about a &gem
<zacts> how does it compare in terms of what it aims to offer, in comparison to say ruby on rails?
<adaedra> apeiros: thoughts? A &gem command, to search rubygems, a bit like #rust has !cargo
<adaedra> zacts: way lighter.
<adaedra> I'd say the best way to see is to test it yourself.
<nietzschette> could you backquote a gem install command?
jpfuentes2 has joined #ruby
<apeiros> adaedra: wouldn't that spam the channel? or only link perfect matches?
nfk|laptop has joined #ruby
<adaedra> apeiros: perfect matches, of course.
<apeiros> ok, so more show than search :)
<apeiros> sure, why not
<adaedra> yeah
Guest72594 has quit [Changing host]
Guest72594 has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Guest72594 is now known as Affix
gizmore has joined #ruby
ByronJoh1son is now known as ByronJohnson
ByronJohnson is now known as Guest26702
gizmore|2 has joined #ruby
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davejlong has quit [Remote host closed the connection]
ddubs has joined #ruby
sdwrage has joined #ruby
gizless has quit [Ping timeout: 260 seconds]
atomical_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
atomical_ has quit [Client Quit]
gizmore has quit [Ping timeout: 245 seconds]
<mallu> I'm using Net::HTTP::Delete.new(location) to delete some file. How can I get the response to see if it was sucessful?
codecop has quit [Remote host closed the connection]
|ifei5good has joined #ruby
<mallu> resp = Net::HTTP::Delete.new(location) puts resp gives me #<Net::HTTP::Delete:0x007f868500d1c0>
s1kx has quit [Ping timeout: 264 seconds]
Guest26702 is now known as ByronJoh1son
s1kx has joined #ruby
<Ox0dea> nietzschette: No, that would be cheating and lame.
aryaching has joined #ruby
<Ox0dea> It gets hold of #send as a Proc and invokes it all over the place with Proc#[].
gizmore has joined #ruby
|ifei5g00d has quit [Ping timeout: 260 seconds]
atomical has quit [Ping timeout: 256 seconds]
joneshf-laptop has quit [Ping timeout: 272 seconds]
dwfait has joined #ruby
aegis3121 has joined #ruby
volty has left #ruby ["Konversation terminated!"]
<Ox0dea> >> -> &_ {_}[&:send]['101010', 'to_i', 2]
<ruboto> Ox0dea # => 42 (https://eval.in/495022)
idefine has quit [Read error: Connection reset by peer]
<nietzschette> ahhh
Starfoxxes has quit [Quit: Leaving.]
<nietzschette> that clears out a few duds
idefine has joined #ruby
<domgetter> mallu: have you tried checking the response body?
<ericwood_> huh you can use a don't-care in the body of a block?
<domgetter> puts resp.body
<ericwood_> *lambda
gizless has joined #ruby
<Ox0dea> ericwood_: It's not a "don't-care" there.
<domgetter> ericwood_: you can use any destructuring in the body of a lambda
<ericwood_> :D
gizmore|2 has quit [Ping timeout: 276 seconds]
<domgetter> >> ["a"].map.with_index {|(e, i)| {e => i}}
<ericwood_> why the don't-care for the block arg tho
<ruboto> domgetter # => [{"a"=>nil}] (https://eval.in/495027)
ledestin has joined #ruby
<domgetter> >> {a: "a"}.map.with_index {|(e, i)| {e => i}}
<ruboto> domgetter # => [{:a=>"a"}] (https://eval.in/495029)
<ericwood_> why not just -> { _ }
<Ox0dea> ...
<ericwood_> sorry, my ruby is rusty :|
<domgetter> >> {a: "a"}.map.with_index {|(k, v), i| {v => [k,i]}}
<ruboto> domgetter # => [{"a"=>[:a, 0]}] (https://eval.in/495033)
<Ox0dea> ericwood_: I do in fact need the argument.
<mallu> domgetter: resp.body is empty
gizmore|2 has joined #ruby
<Ox0dea> ericwood_: I called it `_` in the actual code because one of the design goals was to contain no alphanumerics. ^_^
<ericwood_> OH
<ericwood_> wtf _ is valid as a var name
<ericwood_> when did that become a thing
gizmore has quit [Ping timeout: 245 seconds]
<Ox0dea> shevy: ^
gizmore|3 has joined #ruby
<nietzschette> since 1.8
<nietzschette> at least
<ericwood_> >.<
<domgetter> ericwood_: Yea, it's used in irb as "the last evaluated value" just like $_ in perl
aryaching has quit []
<domgetter> err, "sort of like"
<ericwood_> right, I use that a lot, I figured it was a builtin
<Ox0dea> ericwood_: Probably since the very beginning.
<ericwood_> well, cool, TIL
<ericwood_> I've always used it as a don't-care
<nietzschette> not like like rust's <_>
spider-mario has quit [Ping timeout: 264 seconds]
<ericwood_> yeah...
gizmore has joined #ruby
<Ox0dea> ericwood_: Personally, I think this is a better use for _: https://eval.in/495041
gizless has quit [Ping timeout: 260 seconds]
<nietzschette> every type in ruby is already an anytype
<domgetter> nietzschette: statically, yes
<ericwood_> Ox0dea: oh interesting
<domgetter> but dynamically (i.e. at runtime), there are different types
<mallu> anyone knows how I can get the response for Net::HTTP::Delete.new(location)
hxegon_AFK is now known as hxegon
synthroid has joined #ruby
gizless has joined #ruby
gizmore|2 has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
<Ox0dea> ericwood_: Note well that '_' is in fact "special" in parameter lists: https://eval.in/495047
gizmore|3 has quit [Ping timeout: 265 seconds]
davejlong has joined #ruby
nfk|laptop has quit [Ping timeout: 264 seconds]
<ericwood_> yeah, I was aware of that one...cool feature
baweaver has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
gizmore|2 has joined #ruby
bollullera has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
gizmore has quit [Ping timeout: 276 seconds]
arooni_______ has joined #ruby
<domgetter> mallu: You need to send the request to a server
mdw has quit [Ping timeout: 276 seconds]
<domgetter> mallu: and then look at the body of the response
<domgetter> when you make a delete request object, it doesn't do anything, it's just sitting there
<mallu> isn't this sending the request to the server? Net::HTTP::Delete.new(location)
bollullera has left #ruby [#ruby]
<mallu> location = https://....
<domgetter> no, that just creates a new object that is called a "delete request"
gizless has quit [Ping timeout: 264 seconds]
<domgetter> you then need to actually "request" the request object you made. (This is part of the reason no one likes nethttp)
<domgetter> (Personally I recommend the HTTParty gem for doing this stuff)
idefine has quit [Read error: Connection reset by peer]
<mallu> domgetter: ok.. that make sense.. thanks
<domgetter> mallu yea it tripped my up when I first learned about nethttp too.
idefine has joined #ruby
<Ox0dea> mallu: Net::HTTP.new('example.com').delete('foo', ...)
<Ox0dea> You don't *have* to switch.
devoldmx has joined #ruby
<mallu> Ox0dea: ok thanls
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> All of the common verbs are available as instance methods.
tildes has quit [Ping timeout: 265 seconds]
rgrmatt has joined #ruby
gizmore has joined #ruby
rgrmatt has quit [Remote host closed the connection]
davejlong has quit [Remote host closed the connection]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
synthroid has quit []
bkxd has quit [Ping timeout: 245 seconds]
devoldmx has quit [Ping timeout: 276 seconds]
gizmore|2 has quit [Ping timeout: 265 seconds]
<isomorphismes> havenwood: how do you get Roda to start a server? that's built into Sinatra
<isomorphismes> havenwood: maybe it's covered in Rack docs?
<kaleido> rackup?
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kaleido> rackup config.ru i think
<kaleido> i prefer cuba but its very similar to roda
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<isomorphismes> kaleido: thanks, that seems close but then /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:146:in `to_app': missing run or map statement (RuntimeError)
hagabaka has quit [Ping timeout: 246 seconds]
<adaedra> kaleido: rackup and friends look for config.ru by default. No need to write it.
bkxd has joined #ruby
<adaedra> isomorphismes: did you make a config.ru?
gizless has joined #ruby
<isomorphismes> adaedra: Yep, I just pasted the example to config.ru and then changed the secret
gizmore|2 has joined #ruby
<adaedra> That's weird there's no run.
<isomorphismes> .ru is short for .rackup ?
<adaedra> yeah.
<isomorphismes> adaedra: well, I just upgraded from stable ruby v1.9.3p0 to 2.3.0
<adaedra> try adding `run App` at the end of the config.ru
rgrmatt has joined #ruby
dotix has joined #ruby
dotix has quit [Client Quit]
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
<isomorphismes> perfect, thanks adaedra !
gizmore has quit [Ping timeout: 260 seconds]
<adaedra> yw
gizmore has joined #ruby
atomical has joined #ruby
Azure has joined #ruby
gizless has quit [Ping timeout: 276 seconds]
<isomorphismes> In Sinatra it seems you can specify layout and formatting at the bottom with @@ layout, @@ style, etc. Is this true in Cuba / Roda?
<adaedra> I'm not sure cuba and roda are much alike, are they?
<kaleido> isomorphismes, i am not sure
gizmore|2 has quit [Ping timeout: 250 seconds]
gizless has joined #ruby
<kaleido> adaedra, theyre similar mostly in how simple they are
<kaleido> not that sinatra is complicated
<isomorphismes> But it does seem Sinatra is no longer being supported as much (last relase mid 2014, and 3 different versions of documentation)
build22 has joined #ruby
<adaedra> an eraser and a pen are both simple objects but with very different behaviors.
<adaedra> kaleido: I didn't look into Cuba or Roda. I tried Rails, I tried Sinatra, then I decided to roll my own on top of Rack :p
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kaleido> cuba just assumes the location of your layouts, etc, unless you specify differently
<kaleido> adaedra, the 3 are pretty similar in my opinion. i dont recall why i landed on cuba.
<isomorphismes> adaedra: right, Rack seems like somehow "the simplest" solution (barest bones)
<adaedra> It is.
<adaedra> And it's awesome to base yourself on.
build22 has left #ruby [#ruby]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
<adaedra> But if you want to develop apps on top of it, having a generic layer is a good idea.
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
niceperl has joined #ruby
kiloreux has joined #ruby
FooMunki has quit [Quit: FooMunki]
bkxd has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
idefine has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
hagabaka has joined #ruby
gizmore|3 has joined #ruby
gizless has quit [Ping timeout: 260 seconds]
icarus has joined #ruby
gizless has joined #ruby
aegis3121 has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
gizmore has quit [Ping timeout: 256 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mallu> can you please tell me why I am getting this error? https://gist.github.com/anonymous/de831a6565c9047a5440
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 255 seconds]
gizmore|3 has quit [Ping timeout: 246 seconds]
cajone_afk is now known as cajone
ledestin has joined #ruby
gizless has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
banister has joined #ruby
ledestin has quit [Client Quit]
lucid_ has joined #ruby
celly has joined #ruby
mdw has joined #ruby
<aegis3121> This seems like an error with the API/request you're making.
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 255 seconds]
<mallu> aegis3121: hmm.. ok
<aegis3121> Not sure, though
roshanavand has quit [Remote host closed the connection]
atomical has joined #ruby
n_blownapart has joined #ruby
Mckomo has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
celly has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
davedev2_ has joined #ruby
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 250 seconds]
aegis3121 has joined #ruby
Wompy has quit [Remote host closed the connection]
akaiiro has quit [Quit: Leaving]
trwyth has joined #ruby
prestorium has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
kiloreux has quit [Quit: Ex-Chat]
freerobby has joined #ruby
freerobby has quit [Client Quit]
djbkd has quit [Quit: Leaving...]
duckpuppy has joined #ruby
hinbody has quit [Quit: leaving]
duckpuppy has quit [Ping timeout: 246 seconds]
nfk|laptop has joined #ruby
lucid_ has quit [Quit: leaving]
Jackneill has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
neanderslob_ has joined #ruby
neanderslob_ has quit [Remote host closed the connection]
atomical_ has joined #ruby
neanderslob has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
davejlong has joined #ruby
atomical has quit [Ping timeout: 240 seconds]
vikas027 has joined #ruby
atomical has joined #ruby
vikas027 has quit [Client Quit]
atomical_ has quit [Ping timeout: 240 seconds]
ICantCook has joined #ruby
ruid has joined #ruby
ruid has joined #ruby
ohaibbq_ has joined #ruby
renderf__ has joined #ruby
steffkes has quit [Ping timeout: 260 seconds]
renderfu_ has quit [Ping timeout: 240 seconds]
shanemcd has joined #ruby
yxby has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shanemcd has quit [Ping timeout: 245 seconds]
idefine has quit [Read error: Connection reset by peer]
davejlong has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
renderfu_ has joined #ruby
idefine has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
polishdub has quit [Quit: Leaving]
_orangejuice has quit [Quit: Connection closed for inactivity]
davedev2_ has quit [Ping timeout: 260 seconds]
harai has quit [Ping timeout: 272 seconds]
kmckelvin has joined #ruby
yfeldblum has joined #ruby
renderf__ has quit [Ping timeout: 260 seconds]
davejlong has joined #ruby
snockerton has quit [Quit: Leaving.]
idefine has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
zenlot4 has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
zquad has joined #ruby
<zquad> I am pulling lots of social media mentions from twitter, facebook etc data and I need to store it locally to analyze and display it, any recommendation on an open source database?
Begi2 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
zenlot3 has quit [Ping timeout: 255 seconds]
zquad has quit [Client Quit]
davejlong has quit [Ping timeout: 260 seconds]
neanderslob has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
yqt has joined #ruby
Begi has quit [Ping timeout: 272 seconds]
zquad has joined #ruby
neanderslob_ has joined #ruby
deuterium has quit [Ping timeout: 276 seconds]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
sdothum has quit [Client Quit]
Begi2 has quit [Ping timeout: 260 seconds]
ruid has quit [Ping timeout: 260 seconds]
LW_Luna is now known as Luna_Moonfang
neanderslob_ has quit [Remote host closed the connection]
neanderslob has joined #ruby
sdothum has joined #ruby
kmckelvin has quit [Ping timeout: 276 seconds]
sdothum has quit [Client Quit]
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
RobertBirnie has quit [Ping timeout: 276 seconds]
jondot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
colegatron has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
lubekpl has joined #ruby
rgrmatt has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
stannard_ has quit [Remote host closed the connection]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zquad has left #ruby [#ruby]
rgrmatt has joined #ruby
hobodave has quit [Ping timeout: 260 seconds]
guest192123 has quit [Quit: I was using a Free IRC Bouncer from http://bnc4free.com (Account Removed)]
Wompy has joined #ruby
n_blownapart has quit []
joneshf-laptop has joined #ruby
BSaboia has quit [Quit: Leaving]
ruid has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
Lucky__ has joined #ruby
kies^ has quit [Ping timeout: 260 seconds]
senayar has quit [Remote host closed the connection]
pawnbox has joined #ruby
Mckomo has quit [Quit: Textual IRC Client: www.textualapp.com]
rgrmatt has quit [Remote host closed the connection]
Guest38 has quit [Quit: Textual IRC Client: www.textualapp.com]
davejlong has joined #ruby
Wompy has quit [Quit: Leaving...]
Guest38 has joined #ruby
neanderslob has quit [Ping timeout: 250 seconds]
harai has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
Yzguy has joined #ruby
devoldmx has joined #ruby
ledestin has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krobzaur has quit [Ping timeout: 256 seconds]
marcdel has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
kmckelvin has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Quit: yawn]
firstdayonthejob has quit [Ping timeout: 246 seconds]
CloCkWeRX has joined #ruby
atomical has quit [Ping timeout: 260 seconds]
ss_much has joined #ruby
dwfait has quit [Quit: dwfait]
TheBloke has quit [Ping timeout: 255 seconds]
TheBloke- has joined #ruby
FooMunki has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
marcdel_ has joined #ruby
celly has joined #ruby
kmckelvin has quit [Ping timeout: 260 seconds]
marcdel has quit [Ping timeout: 264 seconds]
davejlong has quit [Remote host closed the connection]
celly has quit [Ping timeout: 265 seconds]
kalopsian has quit [Ping timeout: 260 seconds]
ohaibbq_ has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
stannard has joined #ruby
amoeba_ has joined #ruby
davejlong has joined #ruby
<zacts> is opal familiar?
<zacts> do people use it, or are there better alternatives?
niceperl has quit [Remote host closed the connection]
scripore has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
davejlong has quit [Client Quit]
bradleyprice has joined #ruby