havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrabe has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
vtx has joined #ruby
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamol_ has joined #ruby
fclausen has joined #ruby
QualityAddict has joined #ruby
nopolitica has joined #ruby
<darix> zanoni: just open the file and then write out the content as response
safetypin has quit [Quit: Textual IRC Client: www.textualapp.com]
<darix> is the most stupid way
<darix> but i am sure sinatra has a way for you to set the http headers and then the file as response body
workmad3 has joined #ruby
marr has quit [Ping timeout: 248 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
agent_white has joined #ruby
<zanoni> I'm going to look into nginx
<zanoni> this app is not going to be a real production site anyway, it's for personal at home usage. Mostly using Sinatra because I wanted a nice front end.
dviola has joined #ruby
banisterfiend has joined #ruby
<banisterfiend> anyone know if there exists a helper for rake that logs out each shell command execute and then runs it?
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<banisterfiend> something like: magic_execute("cd ..\nls"). and it'll log out "cd.." and then perform it, etc
guacamol_ has joined #ruby
jphase has quit [Remote host closed the connection]
oetjenj has quit [Ping timeout: 255 seconds]
SeepingN has quit [Remote host closed the connection]
oetjenj has joined #ruby
<elomatreb> banisterfiend: sh "command" outputs the command before running it
jenrzzz has quit [Ping timeout: 248 seconds]
theory4000 has joined #ruby
<banisterfiend> elomatreb it doesn't appear to do that for me, it just runs it (i'm on osx)
jphase has joined #ruby
oetjenj_ has joined #ruby
<havenwood> it prints the command for me (macos too)
<havenwood> hmm
<elomatreb> Looking at the source it checks for verbose mode before outputting it
<banisterfiend> havenwood it does print it for you?
<havenwood> banisterfiend: yup
<banisterfiend> weird not here
<zanoni> darix: why do you say is the most stupid way, would that be slow?
<havenwood> banisterfiend: ruby -rrake -e 'sh "echo 1"'
<havenwood> #=> echo 1; 1
<banisterfiend> oh nice
<banisterfiend> perfect how did you find that?
oetjenj has quit [Ping timeout: 264 seconds]
<havenwood> find what?
<havenwood> just wrote it to check if i see the command output
John___ has quit [Read error: Connection reset by peer]
<darix> zanoni: http://www.sinatrarb.com/intro.html -> "Sending files"
<darix> zanoni: it is right there
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
oetjenj_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamol_ has joined #ruby
Devalo has joined #ruby
<RickHull> banisterfiend: you could always def my_sh(cmd) in your Rakefile. but rake's inbuild `sh` does this, per havenwood
shinnya has quit [Ping timeout: 260 seconds]
<zanoni> I see Roda has a Sinatra plugin for send_file as well
Devalo has quit [Ping timeout: 258 seconds]
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 264 seconds]
selim has quit [Ping timeout: 248 seconds]
vtx has quit [Quit: vtx]
selim has joined #ruby
pilne has joined #ruby
cdg has joined #ruby
guacamol_ has joined #ruby
Asher has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 248 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
van7hu has joined #ruby
<van7hu> I use s.target_host but get empty one :(
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> van7hu: you might try using pry to help debug
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> you can use pry like irb -- have you used irb before?
mikecmpbll has quit [Quit: inabit. zz.]
coderphive has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
vikaton has joined #ruby
milardovich has joined #ruby
yaewa has joined #ruby
guacamole has joined #ruby
govg has quit [Ping timeout: 240 seconds]
moei has quit [Ping timeout: 264 seconds]
guacamole has quit [Client Quit]
milardovich has quit [Ping timeout: 248 seconds]
<van7hu> RickHull, it's inside metasploti, though.
<RickHull> fire up pry, do something like: require 'metasploit-framework/stuff'; s = Blah::Session.new
GodFather has quit [Ping timeout: 240 seconds]
<RickHull> otherwise, check the class of s; something like: $stderr.puts "s is a #{s.class}" or Log.warn "s is a #{s.class}"
<RickHull> does s.target_host return an empty string?
coderphive has quit [Quit: coderphive]
d^sh has quit [Ping timeout: 248 seconds]
<zanoni> send_file works! , all I was missing was a / in front of the path. And that might be related to Chrome.
d^sh has joined #ruby
jordanm has quit [Read error: Connection reset by peer]
jordanm has joined #ruby
Technodrome has joined #ruby
hutch34 has joined #ruby
uZiel has joined #ruby
cdg has joined #ruby
lacour has quit [Read error: Connection reset by peer]
uZiel has quit [Ping timeout: 248 seconds]
lacour has joined #ruby
Asher has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
jphase has quit [Remote host closed the connection]
gizmore|2 has joined #ruby
tastytf has joined #ruby
jokester has quit [Quit: reboot]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prob_dist has joined #ruby
<prob_dist> Hey hi!
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has quit [Ping timeout: 240 seconds]
<prob_dist> I have an app I'm making with rails, this is an app to make exams from a question bank, when a new exam is created I wanna choose the questions from the bank randomly, but weighting more towards the questions that have been used the least
<prob_dist> oh man, thats a long line
jokester has joined #ruby
<prob_dist> I'm thinking of doing it with a probability distribution but don't know if that's the best bet
<prob_dist> anyone can help me with that?
coderphive has joined #ruby
astrobunny has joined #ruby
<prob_dist> well this seems kinda dead
<prob_dist> hello
<RickHull> used less frequently, or longer since last used?
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has joined #ruby
<RickHull> there is such a thing as a LRU cache -- least recently used -- but this wouldn't give you a slight bias from uniform random selection
alnewkirk has quit [Ping timeout: 240 seconds]
<banisterfiend> anyone know how to force ruby to compile as 32bit on a 64bit box?
<RickHull> you're getting into cross compilation there, right? and then selecting the right C stuff to link against?
guacamole has joined #ruby
<banisterfiend> i was hoping it's just a matter of passing the correct flat to ./configure :D
<banisterfiend> flag
<RickHull> setting up for non-native compilation is trickier, i believe
<prob_dist> @RickHull used less frequently, I have a field in the db that says how many times certain question has been used
mitt3ns has joined #ruby
<RickHull> prob_dist: how biased toward less frequent questions should the selection be?
ramfjord has quit [Ping timeout: 240 seconds]
<RickHull> strict adherence? sounds like a priority queue / heap
coderphive has quit [Quit: coderphive]
<prob_dist> I would say that a question that has been used 1 times has double the chance to be chosen than one that has been used 2 times
workmad3 has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
<RickHull> yeah, i'd be tempted to put a bunch of balls in a jar and pick one
lacour has quit [Quit: Leaving]
coderphive has joined #ruby
agent_white has joined #ruby
|ifei5good has joined #ruby
<prob_dist> didn't get ya
<RickHull> i.e. sample from a probability distribution as you said
bmurt has joined #ruby
<RickHull> you can segment a range of integers and sample with Kernel.rand rangemax
mitt3ns has quit [Ping timeout: 255 seconds]
<prob_dist> okok sounds good, will look into that
|ifei5g0_ has joined #ruby
|ifei5g00d has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
|ifei5good has quit [Ping timeout: 258 seconds]
alfiemax has quit [Remote host closed the connection]
jphase has joined #ruby
<prob_dist> thanks @RickHull
porfa has quit [Quit: porfa]
cpallares has quit [Ping timeout: 255 seconds]
Azure has quit [Remote host closed the connection]
Azure has joined #ruby
cpallares has joined #ruby
nertzy has joined #ruby
orbyt_ has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
porfa has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
mjolnird has quit [Quit: Leaving]
Technodrome has joined #ruby
jxv has joined #ruby
__Yiota has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
porfa has quit [Quit: porfa]
hinbody has quit [Quit: leaving]
hinbody has joined #ruby
ogres has joined #ruby
juanca_ has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
<jxv> For a new project, should I use rbenv or rvm?
ap4y has joined #ruby
latemus has quit [Ping timeout: 240 seconds]
<RickHull> I like chruby myself
<havenwood> +1 chruby
<jxv> player 3 has entered
<jxv> thanks
<RickHull> i don't use it to enforce things at the project level -- just to have different rubies easily available on my dev box
juanca_ has quit [Client Quit]
cdg has joined #ruby
porfa has joined #ruby
latemus has joined #ruby
latemus is now known as Guest18932
<RickHull> i generally run 2.4 with chruby and expect to have a few gems installed. I use ruby-install to make more rubies available, with a clean slate as far as installed gems
<RickHull> I don't generally mess with metadata like Gemfiles or gemsets, but those might work better for more rails type dev, not sure
weaksauce has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
<jxv> I'm a newbie with ruby, so all the ecosystem stuff is always a hill to climb. Also, this isn't a rails project and trying not to make it complicated.
<RickHull> i like chruby because it is very simple, conceptually and how it is implemented
<RickHull> the trickiest part is getting your login files updated and making sure they are loaded
<jxv> is it the preference for example projects, if that is even a valid question?
<RickHull> i.e. to activate chruby
<jxv> sounds similar to virtualenv with python
<RickHull> rvm, rbenv, chruby, others -- they are all widely used
<RickHull> and widely unused
<jxv> oh no
<RickHull> it's just a way of specifying the ruby version and environment that executes your code
<RickHull> you can just use your system ruby -- on osx or linux?
<RickHull> windows?
<jxv> on osx
porfa has quit [Quit: porfa]
<RickHull> do you use homebrew?
<RickHull> or whatever the latest package manager thingie is?
<jxv> yes, I installed chruby with brew
<RickHull> oh cool
<RickHull> check out ruby-install too
<jxv> I use linux too, what would be the use there?
<jxv> ruby-install as well?
<RickHull> yes, should not be much different
<RickHull> i am more familiar with the linux side
<RickHull> for ruby-install -- you will need a build environment -- compiler, etc
<RickHull> not sure if Xcode will want to get involved, ugh
<RickHull> probably gcc/clang/llvm will suffice with brew
ozcanesen has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
thomasv314 has joined #ruby
thomasv314 has quit [Client Quit]
cadillac_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
kapil___ has joined #ruby
zanoni has quit [Ping timeout: 248 seconds]
enmchs has joined #ruby
<enmchs> hi
bmurt has joined #ruby
gix has quit [Ping timeout: 240 seconds]
zautomata3 has joined #ruby
alfiemax_ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
uZiel has joined #ruby
gix has joined #ruby
zautomata2 has quit [Ping timeout: 258 seconds]
alfiemax_ has joined #ruby
_whitelogger has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
ap4y has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasv314 has joined #ruby
tastygradient has joined #ruby
enmchs has quit [Remote host closed the connection]
cdg has joined #ruby
LocaMocha has joined #ruby
meadmoon has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 258 seconds]
<Guest18932> can i use a class method within the class
<Guest18932> if so how do i call it
Technodrome has joined #ruby
__Yiota has quit [Remote host closed the connection]
alnewkirk has joined #ruby
guardianx has joined #ruby
__Yiota has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
__Yiota has quit [Remote host closed the connection]
enterprisey has joined #ruby
<RickHull> nakedly or self.meth_name
<RickHull> >> class Example; def self.foo; :called_foo; end; def self.bar; foo; end; end; Example.bar
<ruby[bot]> RickHull: # => :called_foo (https://eval.in/887171)
__Yiota has joined #ruby
<RickHull> at the instance layer, call self.class.foo or Example.foo
raatiniemi has joined #ruby
<elomatreb> The latter is bad if you plan on inheriting from the class at some point
govg has joined #ruby
<RickHull> just released a new gem, looking for feedback: https://github.com/rickhull/compsci
workmad3 has joined #ruby
<RickHull> my Tree bogs down around 2000 items I think. I maintain both parent and children references. I am hoping/pretty sure that my Tree::Node references aren't copying data
<Guest18932> hm. i'm defining a Class which is a Rack app. when i use self.method_name to define a method within the Class, calling it nakedly later on in the class does nothing, and calling it with self.method_name gets me a 500 error
<RickHull> Guest18932: paste it -- gist.github.com or similar
<RickHull> redact or omit sensitive info
<Guest18932> RickHull: okay one sec
workmad3 has quit [Ping timeout: 248 seconds]
<Guest18932> RickHull: http://termbin.com/0puz
<RickHull> inside def call, you are at the instance layer
<RickHull> ok, I see, your def self.reject
<RickHull> you shouldn't be nesting your method definitions here
<RickHull> define self.reject outside of or above def call
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Guest18932> ok RickHull i'll try that, one sec
<RickHull> within def call, you can then do self.class.reject(the_code)
<RickHull> (if that is indeed the thing to do)
hutch34 has joined #ruby
__Yiota has quit [Remote host closed the connection]
cdg has joined #ruby
meadmoon has quit [Quit: I am functioning within established parameters.]
rgr_ has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
theory4000 has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 258 seconds]
<Guest18932> RickHull: i'm still having the same problem; the reject method does nothing
<elomatreb> Those assignments in the reject methods are parsed as local variables, which have no effect afterwards
<elomatreb> If those are supposed to be accessor calls, try self.result = ''
<Guest18932> thanks elomatreb i'll try that.
<RickHull> no, they are locals in the call method
<Guest18932> thats true
exchgr has quit [Ping timeout: 258 seconds]
<RickHull> you shouldn't use another method to manipulate local variables
<RickHull> i think rack comes with an error handler already, that will short circuit normal successful response building
<elomatreb> Setting the variables in the method will not affect the variables in the calling scope
<Guest18932> RickHull: okay. you're probably right, i'll look into that. thank you guys
<RickHull> so check the whitelist for verb, and then call something in the Rack API to respond with 405
<RickHull> you might be trying to do this validation at the "wrong" layer, as well
<Guest18932> the whitelist checking you mean?
<RickHull> yeah, nevermind about that -- play around with it and see what works
<Guest18932> cool. thanks for your help
pwnd_nsfw` has joined #ruby
exchgr has joined #ruby
<Guest18932> elomatreb: yes, i think they're supposed to be accessor calls. i forgot about those for a moment
troys_ is now known as troys
k3rn31_ has joined #ruby
QualityAddict has quit [Quit: Leaving]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
conta has joined #ruby
<banisterfiend> anyone here?
agent_white has joined #ruby
<RickHull> isn't that how a rake file task works? i don't use them often
<banisterfiend> RickHull how so? if the file already exists it's not supposed to run the block, right?
<RickHull> oh, duh, hm
<RickHull> what about the dependency, RUBY_REPO ?
cdg has joined #ruby
<RickHull> i forget how file tasks work :/
<RickHull> > Rake determines that a file task needs to be run if the file doesn’t exist or if any of the prerequisite file tasks are newer.
<banisterfiend> RickHull RUBY_REPO is def. older too
<RickHull> timestamp on RUBY_REPO vs RUBY_INSTALL_FOLDER
<banisterfiend> hmm
<banisterfiend> i'm running a fresh thing though just to make sure
oleo has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 252 seconds]
<RickHull> banisterfiend: check out my tree node impl: https://github.com/rickhull/compsci/blob/master/lib/compsci/tree.rb#L54 -- behind the scenes, this is all by reference, right?
<RickHull> if i set node.parent = other_node
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<banisterfiend> RickHull yea
jxv has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
theory4000 has joined #ruby
guacamole has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
jxv has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
AndBobsYourUncle has joined #ruby
guardianx has quit []
AnoHito_ has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
aupadhye has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
apeiros has joined #ruby
milardovich has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
ramfjord has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
Silthias1 has joined #ruby
aupadhye has joined #ruby
Silthias has quit [Ping timeout: 252 seconds]
Dimik has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
troys has quit [Quit: Bye]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 248 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
ldepandis has joined #ruby
arquebus has joined #ruby
alex`` has joined #ruby
snickers has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
ldepandis has quit [Ping timeout: 248 seconds]
Guest16627 has quit [Remote host closed the connection]
cdg has joined #ruby
dionysus69 has joined #ruby
fclausen_ has joined #ruby
conta has joined #ruby
rabajaj has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
fclausen has quit [Ping timeout: 248 seconds]
theory4000 has quit [Ping timeout: 248 seconds]
Guest25611 has joined #ruby
snickers has quit [Ping timeout: 246 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
Hexafox[I] has joined #ruby
arquebus has quit [Quit: konversation disconnects]
fclausen_ has quit [Ping timeout: 248 seconds]
ozcanesen has quit [Quit: ozcanesen]
Hexafox[I] has quit [Ping timeout: 258 seconds]
Hexafox[I] has joined #ruby
Hexafox[I] has quit [Ping timeout: 258 seconds]
Guest96661 has joined #ruby
Hexafox[I] has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 248 seconds]
ta has joined #ruby
oetjenj has joined #ruby
Hexafox[I] has quit [Ping timeout: 255 seconds]
Hexafox[I] has joined #ruby
andikr has joined #ruby
John___ has joined #ruby
RickHull has quit [Quit: Page closed]
kculpis has quit [Ping timeout: 258 seconds]
<Guest18932> is there a way to unset, or set to nil, Rack::Response.write
<Guest18932> or cause the body to be empty upon any status code except for 200
AndBobsYourUncle has quit [Read error: Connection reset by peer]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FastJack has quit [Ping timeout: 258 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
hs366 has joined #ruby
universa1 has quit [Ping timeout: 252 seconds]
universa1 has joined #ruby
Immune has quit [Ping timeout: 252 seconds]
aufi has joined #ruby
Guest25611 is now known as pax
pax is now known as Guest87078
mjolnird has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
biberu has joined #ruby
claudiuinberlin has joined #ruby
snickers has joined #ruby
enterprisey has joined #ruby
van7hu has quit [Quit: Ex-Chat]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
jxv has quit [Client Quit]
snickers has quit [Client Quit]
John___ has quit [Read error: Connection reset by peer]
fullstack has quit [Ping timeout: 255 seconds]
<banisterfiend> ["a", "b", "c"].grep /a/. how do i write NOT a
mark_66 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
tastygradient has quit [Quit: leaving]
cdg has joined #ruby
Guest96661 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
<aloy> banisterfiend: you can do /[^a]/ but that'll filter anything that starts with an a, ie, doing ["a", "b", "c", "aa", "ba"].grep /[^a]/ will return ["b", "c", "ba"]
fullstack has joined #ruby
claudiuinberlin has quit [Client Quit]
cdg has quit [Ping timeout: 258 seconds]
aphprentice has quit [Quit: Connection closed for inactivity]
<Burgestrand> banisterfiend so much ambiguity, so many options :D
<Burgestrand> >> %w[a b c].grep_v /a/
<ruby[bot]> Burgestrand: # => ["b", "c"] (https://eval.in/887276)
<banisterfiend> Burgestrand wow grep_v
<banisterfiend> that's what i wanted awesome
<Burgestrand> banisterfiend haha, first guess is best guess :p
FastJack has joined #ruby
<Burgestrand> banisterfiend it's rather new if I recall correctly, so don't go putting it in ruby 2.0.0
<banisterfiend> thanks homie i'm on 2.4.2 so no worries
<Burgestrand> \o/
alfiemax_ has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
rgr_ has quit [Quit: rgr_]
<teatime> kkjkbb
<teatime> (sorry)
sagax has quit [Read error: Connection reset by peer]
zautomata3 has quit [Quit: WeeChat 1.7]
zautomata has joined #ruby
marr has joined #ruby
Illianthe has joined #ruby
cdg has joined #ruby
TomyWork has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
milardovich has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has joined #ruby
claudiuinberlin has joined #ruby
workmad3 has joined #ruby
oetjenj has joined #ruby
anisha has joined #ruby
mikecmpbll has joined #ruby
Guest87078 is now known as pax
pax is now known as Guest73806
cdg has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 246 seconds]
<apeiros> banisterfiend: before grep_v I had Regexp#~
<apeiros> so: %w[a b c].grep(~/a/)
<banisterfiend> you wrote ~ ?
<apeiros> (all it did was invert ===, =~ and !~)
<banisterfiend> how did it work? a monkey patch?
huyderman has quit [Ping timeout: 252 seconds]
<apeiros> class NegatedRegexp < Regexp; def =~(*); !super; end; …all other methods…; end; class Regexp; def ~; return NegatedRegexp.new(…<forgot the precise passing of params>…); end; end
<apeiros> not the exact impl. obviously, but should give you the general idea
<apeiros> worked pretty well. of course =~ would no longer return a position, only true/false.
<apeiros> I still like it more than grep_v, it's more versatile. can be used in case/when too e.g.
<apeiros> case foo; when ~/bar/; …
enterprisey has quit [Ping timeout: 248 seconds]
stan has quit [Read error: Connection reset by peer]
stan has joined #ruby
huyderman has joined #ruby
blackmesa has joined #ruby
imode has quit [Ping timeout: 246 seconds]
guille-moe has joined #ruby
oetjenj has joined #ruby
dxlr8r has joined #ruby
ams__ has joined #ruby
lxsameer has joined #ruby
<dxlr8r> have some issues with JSON.parse, I've dummed down the JSON so it should be easy to read :) https://gist.github.com/anonymous/f2c53d0832d910e16584570d11db531b
<elomatreb> dxlr8r: You need to double-escape, you have a literal " in your JSON
<elomatreb> i.e. \\\"
postmodern has quit [Quit: Leaving]
TomyWork has quit [Ping timeout: 240 seconds]
gloscombe has joined #ruby
TomyWork has joined #ruby
<dxlr8r> elomatreb: I don't control the json elomatreb. never any issues with any other parser
<elomatreb> Not an issue with the JSON, but with how Ruby string literals work
<elomatreb> Print the JSON, you'll see it does not contain the backslash you need
<elomatreb> Illustration: https://eval.in/887292
<banisterfiend> Burgestrand do you have much experience compiling ruby?
<banisterfiend> Burgestrand i want to build a version of 2.4.2 binaries that can run on multiple versions of osx, you have any experience with this?
<Burgestrand> banisterfiend not really :o
Beams has joined #ruby
oetjenj has quit [Ping timeout: 248 seconds]
<banisterfiend> hm
<dxlr8r> elomatreb: so the solution is to replace all single escape with a triple escape?
<Burgestrand> banisterfiend https://github.com/phusion/traveling-ruby ?
<elomatreb> Simpler solution would probably be to use single-quoted (') strings
<banisterfiend> Burgestrand nah
<Burgestrand> banisterfiend maybe their build system for osx could help you
<Burgestrand> banisterfiend as in, how they do it
<dxlr8r> elomatreb: the data is out of my control
<elomatreb> In Ruby.
<elomatreb> puts '" no escape necessary'
<elomatreb> >> puts '" no escape necessary'
<ruby[bot]> elomatreb: # => " no escape necessary ...check link for more (https://eval.in/887294)
<Burgestrand> dxlr8r use `<<'JSON'` to avoid escapes
<dxlr8r> nice Burgestrand , thx
<elomatreb> Oh, TIL
ramfjord has quit [Quit: Lost terminal]
Serpent7776 has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
coderphive has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
Lyubo1 has quit [Ping timeout: 240 seconds]
zautomata has quit [Quit: WeeChat 1.7]
raynold has quit [Quit: Connection closed for inactivity]
Hexafox[I] has quit [Ping timeout: 260 seconds]
Guest73806 is now known as pax
pax is now known as Guest12879
cdg has joined #ruby
quobo has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
porfa has joined #ruby
jottr has joined #ruby
oetjenj has joined #ruby
Burgestrand has quit [Quit: Closing time!]
workmad3 has joined #ruby
milardovich has quit [Remote host closed the connection]
Hexafox[I] has joined #ruby
milardovich has joined #ruby
FahmeF_ has joined #ruby
FahmeF has quit [Ping timeout: 252 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
erlend has joined #ruby
drcode has quit [Ping timeout: 248 seconds]
mello has quit [Remote host closed the connection]
FahmeF has joined #ruby
FahmeF_ has quit [Ping timeout: 248 seconds]
oetjenj has quit [Ping timeout: 246 seconds]
InfinityFye has joined #ruby
ajaysingh has joined #ruby
oetjenj has joined #ruby
FahmeF_ has joined #ruby
porfa has quit [Quit: porfa]
alnewkirk has joined #ruby
oetjenj has quit [Client Quit]
tvw has joined #ruby
FahmeF has quit [Ping timeout: 260 seconds]
Hexafox[I] has quit [Ping timeout: 246 seconds]
Hexafox[I] has joined #ruby
FahmeF_ has quit [Ping timeout: 264 seconds]
FahmeF has joined #ruby
astrobunny has quit [Remote host closed the connection]
FahmeF has quit [Read error: Connection reset by peer]
FahmeF has joined #ruby
Hexafox[I] has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
marr has joined #ruby
Hexafox[I] has joined #ruby
zanoni has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
FastJack has quit [Ping timeout: 258 seconds]
uZiel has joined #ruby
camilasan has joined #ruby
alnewkirk has quit [Ping timeout: 264 seconds]
FastJack has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
mim1k has joined #ruby
kies has quit [Ping timeout: 248 seconds]
FahmeF_ has joined #ruby
markzen has joined #ruby
mim1k_ has quit [Ping timeout: 258 seconds]
markzen has left #ruby ["WeeChat 1.9.1"]
ek926m has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
FahmeF has quit [Ping timeout: 260 seconds]
prob_dist has quit [Ping timeout: 260 seconds]
Guest12879 is now known as pax
pax is now known as Guest19037
fullstack has quit [Ping timeout: 255 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
nopolitica has quit [Quit: WeeChat 1.9]
fullstack has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
Guest18932 has quit [Quit: leaving]
milardovich has quit []
jottr has joined #ruby
ek926m has quit [Ping timeout: 246 seconds]
fclausen has joined #ruby
Psybur has joined #ruby
agent_white has quit [Quit: goodnight moon]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
ajaysingh has quit [Remote host closed the connection]
Exagone313 has quit [Quit: see ya!]
jphase has joined #ruby
Exagone313 has joined #ruby
alnewkirk has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
alnewkirk has quit [Ping timeout: 246 seconds]
jaruga has joined #ruby
alnewkirk has joined #ruby
alfiemax has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
porfa has joined #ruby
rabajaj has quit [Remote host closed the connection]
rabajaj has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fclausen has joined #ruby
alnewkirk has quit [Ping timeout: 246 seconds]
TomyWork has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
oetjenj has joined #ruby
Guest19037 is now known as pax
pax is now known as Guest97043
Psybur has quit [Ping timeout: 240 seconds]
latemus has joined #ruby
<latemus> what is the StringIO bytes used by .from_bson(string_io)
<latemus> the bson tutorial is very terse and they do not explain what it is
<latemus> anyone happen to know?
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
frmendes has joined #ruby
alfiemax_ has joined #ruby
zautomata has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
fclausen has quit [Ping timeout: 248 seconds]
Samaritano has joined #ruby
<Samaritano> !list
Samaritano has left #ruby [#ruby]
ferr has quit [Quit: WeeChat 1.9.1]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alfiemax_ has quit [Remote host closed the connection]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vtx has joined #ruby
frmendes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
Lyubo1 has joined #ruby
uZiel has quit [Write error: Connection reset by peer]
_aeris_ has quit [Write error: Connection reset by peer]
tastytf has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
megamos has quit [Ping timeout: 248 seconds]
oetjenj has joined #ruby
synthroid has joined #ruby
Lyubo1 has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
frmendes has joined #ruby
uZiel has joined #ruby
Lyubo1 has joined #ruby
duckpuppy has joined #ruby
__Yiota has joined #ruby
vtx has quit [Ping timeout: 240 seconds]
vtx has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frmendes has quit [Read error: Connection reset by peer]
Siyfion has joined #ruby
tsglove3 has quit [Quit: Leaving]
Guest97043 is now known as pax
vtx has quit [Quit: vtx]
pax is now known as Guest13916
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
mim1k_ is now known as mim1k
jaruga has quit [Remote host closed the connection]
jaruga has joined #ruby
jaruga has quit [Client Quit]
jaruga has joined #ruby
Burgestrand has joined #ruby
oetjenj has joined #ruby
Psybur has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
goyox86_ has joined #ruby
bmurt has joined #ruby
jphase has joined #ruby
claudiuinberlin has joined #ruby
mim1k has joined #ruby
Neptu_ has joined #ruby
goyox86__ has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
stoopidmunkey has joined #ruby
goyox86_ has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 255 seconds]
jrafanie has joined #ruby
shinnya has joined #ruby
gr33n7007h has joined #ruby
Devalo has joined #ruby
apparition has joined #ruby
charliesome has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gr33n7007h is now known as al2o3-cr
cdg has joined #ruby
snickers has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
charliesome_ has joined #ruby
goyox86__ has quit [Quit: goyox86__]
goyox86 has joined #ruby
tsglove has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
goyox86 has quit [Client Quit]
cdg_ has joined #ruby
|ifei5g0_ has quit [Ping timeout: 248 seconds]
goyox86_ has joined #ruby
ShekharReddy has joined #ruby
fullstack has quit [Ping timeout: 248 seconds]
|ifei5g00d has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
fullstack has joined #ruby
quobo has joined #ruby
megamosaren has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
alnewkirk has joined #ruby
Guest13916 is now known as pax
pax is now known as Guest97503
|ifei5good has joined #ruby
|ifei5g00d has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
alan_w has left #ruby ["WeeChat 1.9.1"]
alnewkirk has quit [Ping timeout: 246 seconds]
Defenestrate has quit [Quit: Leaving]
<Hexafox[I]> If you send a block to a function does that block replace yield in the function?
charliesome_ has quit [Ping timeout: 255 seconds]
stoopidmunkey has quit [Quit: Leaving...]
<tobiasvl> Hexafox[I]: it calls the block, yes
<tobiasvl> it doesn't "replace" it any more than a method definition replaces a method call
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hexafox[I]> Ah I see.
alnewkirk has joined #ruby
claudiuinberlin has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
goyox86_ has quit [Quit: goyox86_]
charliesome_ has joined #ruby
<Hexafox[I]> Would taking a block as a parameter make the function a higher order function?
GodFather has joined #ruby
DLSteve_ has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 248 seconds]
fclausen has joined #ruby
<basket> Hexafox[I]: Yes
alnewkirk has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
blackmesa has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
mson has joined #ruby
claudiuinberlin has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
alnewkirk has joined #ruby
charliesome_ has joined #ruby
alnewkirk has quit [Ping timeout: 264 seconds]
Hexafox[I] has quit [Ping timeout: 258 seconds]
charliesome has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
alnewkirk has joined #ruby
selim has quit [Ping timeout: 240 seconds]
cdg_ has quit [Remote host closed the connection]
__Yiota has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
selim has joined #ruby
InfinityFye has quit [Quit: Leaving]
apeiros has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
apeiros has joined #ruby
robnester has quit [Quit: "Wonder what this button does...?"]
charliesome has joined #ruby
charliesome_ has quit [Ping timeout: 246 seconds]
robnester has joined #ruby
Technodrome has joined #ruby
chouhoulis has joined #ruby
k3rn31_ has quit [Quit: WeeChat 1.9.1]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
jphase has quit [Remote host closed the connection]
oleo has joined #ruby
charliesome_ has joined #ruby
Azure has quit [Ping timeout: 248 seconds]
Rapture has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
bmurt has quit [Client Quit]
Guest97503 is now known as pax
pax is now known as Guest46818
dar123 has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
charliesome has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 264 seconds]
anisha has quit [Read error: Connection reset by peer]
fullstack has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
charliesome_ has quit [Ping timeout: 252 seconds]
fullstack has joined #ruby
ResidentBiscuit has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lele has joined #ruby
snickers has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 255 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
Burgestrand has quit [Quit: Closing time!]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
GodFather has quit [Quit: Ex-Chat]
charliesome_ has quit [Ping timeout: 260 seconds]
Immune has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
Technodrome has joined #ruby
goyox86 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goyox86 has quit [Client Quit]
brendan- has joined #ruby
goyox86__ has joined #ruby
tcopeland_ has joined #ruby
hs366 has quit [Read error: Connection reset by peer]
Bish has quit [Ping timeout: 240 seconds]
kculpis has joined #ruby
tcopeland has quit [Ping timeout: 240 seconds]
tcopeland_ is now known as tcopeland
goyox86__ has quit [Client Quit]
goyox86_ has joined #ruby
Bish has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
apparition has quit [Quit: Bye]
jrafanie has joined #ruby
synthroid has quit [Remote host closed the connection]
ahrs has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
ahrs has joined #ruby
cdg has joined #ruby
guacamole has joined #ruby
cschneid_ has joined #ruby
apeiros has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
zautomata has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
mim1k has joined #ruby
aufi has quit [Ping timeout: 255 seconds]
goyox86_ has quit [Quit: goyox86_]
Ltem has joined #ruby
Devalo has joined #ruby
goyox86 has joined #ruby
dkam has quit [Ping timeout: 252 seconds]
mim1k has quit [Ping timeout: 260 seconds]
dkam has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
goyox86 has quit [Client Quit]
nogic has joined #ruby
goyox86_ has joined #ruby
<leah2> there is no "semantic date range" in the stdlib, is there? e.g. to specify "7 days later"
thomasv314 has joined #ruby
polishdub has joined #ruby
ozcanesen has joined #ruby
orbyt_ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
goyox86_ has quit [Quit: goyox86_]
Serpent7776 has quit [Quit: Leaving]
7JTACQWSD has joined #ruby
rippa has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
blackmesa1 has joined #ruby
synthroid has joined #ruby
synthroi_ has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
synthroid has quit [Remote host closed the connection]
JoshL has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
Sambsquanch has joined #ruby
charliesome_ has joined #ruby
JoshL has joined #ruby
7JTACQWSD has quit [Quit: 7JTACQWSD]
uZiel has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 248 seconds]
John___ has joined #ruby
fclausen has joined #ruby
mtkd has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
dinfuehr has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
tcopeland has quit [Quit: tcopeland]
goyox86_ has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome_ has quit [Ping timeout: 255 seconds]
goyox86 has joined #ruby
charliesome_ has joined #ruby
alnewkirk has quit [Ping timeout: 264 seconds]
rabajaj has quit [Quit: Leaving]
kies has joined #ruby
tyil has left #ruby ["WeeChat 1.8"]
alfiemax has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
hurricanehrndz has quit [Quit: Goodbye]
marxarelli|afk has quit [Ping timeout: 248 seconds]
fullstack has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
pmunt__ has joined #ruby
fullstack has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
alfiemax has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga has quit [Quit: jaruga]
<havenwood> leah2: nope
pmunt_ has quit [Ping timeout: 240 seconds]
zehbax has joined #ruby
troys has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
charliesome_ has quit [Ping timeout: 248 seconds]
goyox86 has quit [Quit: goyox86]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
jphase has quit [Remote host closed the connection]
charliesome_ has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 248 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoul_ has joined #ruby
tcopeland has joined #ruby
theory4000 has joined #ruby
Sambsquanch has quit [Quit: Peace, take it easy.]
code_zombie has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
vtx has joined #ruby
hfp_work has quit [Ping timeout: 248 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
alfiemax has joined #ruby
kies has quit [Ping timeout: 248 seconds]
<leah2> yeah, solved it with a trivial implementation of iso8601 durations
Dimik has joined #ruby
charliesome has joined #ruby
uZiel has quit [Remote host closed the connection]
orbyt_ has joined #ruby
jenrzzz has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
conta has joined #ruby
mark_66 has quit [Remote host closed the connection]
ozcanesen has quit [Quit: ozcanesen]
mim1k has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
alfiemax has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
conta has quit [Ping timeout: 255 seconds]
gusrub has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
ozcanesen has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
thinkpad has quit [Ping timeout: 240 seconds]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 255 seconds]
megamosaren has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
ozcanesen has quit [Ping timeout: 255 seconds]
andikr has quit [Remote host closed the connection]
conta2 has joined #ruby
Beams has quit [Quit: .]
porfa has quit [Quit: porfa]
17SAAX3PR has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
uZiel has joined #ruby
dxlr8r has quit [Quit: WeeChat 1.5]
RickHull has joined #ruby
jottr has quit [Quit: WeeChat 1.9.1]
<RickHull> anyone want to discuss tree data structures implementations? I have a generic tree which has a reference to the root node and can be walked from there
mim1k has joined #ruby
vtx has quit [Quit: vtx]
<RickHull> i find that when trying to add a new node, I want to keep the tree balanced / complete, and it's O(n) (I think) to do a breadth first search to find an open parent
<RickHull> each node has references to its children and its parent, so walking the tree can go both up and down
17SAAX3PR has quit [Quit: 17SAAX3PR]
<RickHull> should the tree maybe maintain references to each leaf node somehow?
<RickHull> should I give up in bidirectional links for a generic tree?
teatime has left #ruby [#ruby]
goyox86 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<RickHull> i find there is no easy way to go from a parent which had its last available child, to the next candidate open parent laterally to the right
snickers has joined #ruby
<RickHull> I haven't even gotten to the tree maintaining some property and swapping nodes to achieve it. just building it by adding new nodes without consideration to node values
chouhoul_ has quit [Remote host closed the connection]
<RickHull> I did implement a CompleteBinaryTree with an array, using index math to maintain parent child relationships
<RickHull> and this is very fast to insert and maintain a certain property, namely that of a heap
chouhoulis has joined #ruby
goyox86 has quit [Client Quit]
goyox86 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
nogic has quit [Ping timeout: 255 seconds]
alfiemax has quit [Remote host closed the connection]
goyox86 has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
ledestin has joined #ruby
goyox86 has joined #ruby
shinnya has joined #ruby
goyox86 has quit [Client Quit]
blackmesa1 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
theory4000 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
drcode has joined #ruby
goyox86_ has joined #ruby
SeepingN has joined #ruby
nowhereman has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
kapil___ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
mn3m has joined #ruby
TViernion has joined #ruby
<TViernion> afternoon everyone. I'm trying to install gem rmagick and it fails with "Can't find MagickWand.h.
<RickHull> sounds like a broken gem
<RickHull> maybe try a prior version
<TViernion> The install did say it detect a partiol ImageMagick installation ... version 6.7.8
<RickHull> gem install -v 1.2.3 rmagick # something like that
polishdub has quit [Remote host closed the connection]
kies has joined #ruby
Devalo has quit [Remote host closed the connection]
<RickHull> consider pasting the output of the install, particularly if there are warnings, issues, or concerns like partial install
<baweaver> TViernion: OS?
Devalo has joined #ruby
<TViernion> Centos &
<baweaver> ImageMagick is a particularly annoying gem
<TViernion> 7 even
troys is now known as troys_
<baweaver> One sec, see if I can find that again
porfa has joined #ruby
<baweaver> short version is you need its binary files too
shinnya has quit [Ping timeout: 240 seconds]
<baweaver> Pretty much that, then try again
<baweaver> zenspider came up with that name didn't he?
<RickHull> ha, yup, it's like a decade old IIRC
goyox86_ has quit [Quit: goyox86_]
<RickHull> confirmed, 2006
eckhardt has joined #ruby
alfiemax has quit [Remote host closed the connection]
goyox86_ has joined #ruby
<baweaver> Yeah, gist the errors you're getting
Devalo has quit [Ping timeout: 252 seconds]
<TViernion> https://pastebin.com/nsvXphUS here is the error log
<ruby[bot]> TViernion: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/2a75880a1428a679893d5ecd52f8f85e
<ruby[bot]> TViernion: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<TViernion> didn't know about gist... appologies
marxarelli has joined #ruby
<baweaver> Eh, don't worry about it too much
<baweaver> the bot is a bit happy with that.
<baweaver> That's interesting
guacamole has joined #ruby
<TViernion> yeah.. i am trying to get redmine going ... and this is the first time i've eveery played with ror
goyox86_ has quit [Ping timeout: 240 seconds]
<baweaver> Yeah, gems like ImageMagick are a special brand of hell for the uninitiated
fclausen has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TViernion> yeah.. this morning has definitely been a FML kinda day.
goyox86 has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
<baweaver> I'd probably purge your install of it and see if you can get the latest source.
<TViernion> i have the source for Imagemagick-7.0.7-8
claudiuinberlin has joined #ruby
alfiemax has joined #ruby
<TViernion> so I just did a yum remove ImageMagick and wiped it.. maybe tri the gem install again now?
Guest8380 has joined #ruby
imode has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TViernion> now it's detecting the 7.0.7 but it's still saying magicwand.h not found.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TViernion> RickHull, now i did just try image_science and it seems ti have installed 3 gems
<TViernion> what would be the best way to verify that it did install it?
alnewkirk has joined #ruby
<RickHull> first make sure image_science does what you need it to. it's much more limited in scope than imagemagick
zehbax has quit [Ping timeout: 260 seconds]
tvw has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
mn3m has quit [Changing host]
mn3m has joined #ruby
<TViernion> anyone know the current mysql gem? i'm getting an error with 2.9.1 "undefined reference to 'rb_thread_start_timer'
<darix> TViernion: mysql2
jrafanie has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has joined #ruby
troys_ is now known as troys
gloscombe has quit [Quit: WeeChat 1.9.1]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax_ has joined #ruby
<TViernion> heres the error that i'm getting
ShekharReddy has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 240 seconds]
mson has joined #ruby
Guest8380 has quit []
<TViernion> i'm running gem 2.6.14
remo has joined #ruby
chouhoul_ has joined #ruby
remo has quit [Client Quit]
chouhou__ has joined #ruby
imode has quit [Ping timeout: 258 seconds]
Technodrome has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
brw has joined #ruby
<TViernion> heres a question ... do i need the mysql and mysql2 gems both?
eroux has joined #ruby
<TViernion> also RickHull image_science doesn't build ... fuuuun
chouhoul_ has quit [Ping timeout: 240 seconds]
<RickHull> i haven't messed with it in a long time. what's the issue?
code_zombie_ has joined #ruby
claudiuinberlin has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
__Yiota has joined #ruby
code_zombie has quit [Ping timeout: 255 seconds]
hurricanehrndz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mn3m has quit [Quit: mn3m]
mn3m has joined #ruby
mn3m has quit [Changing host]
mn3m has joined #ruby
reaVer has quit [Remote host closed the connection]
blackmesa1 has joined #ruby
Asher has quit [Quit: Leaving.]
reaVer has joined #ruby
jenrzzz_ has joined #ruby
LocaMocha has quit [Ping timeout: 248 seconds]
zer0python has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zer0python> question, what is a good gem for reading & writing xlsx spreadsheets? (Featureful, pivot table, charts, etc)
orbyt_ has joined #ruby
<zer0python> RubyXL seems buggy and uses way too much memory
jenrzzz has quit [Ping timeout: 246 seconds]
<zer0python> I can't get roo to write anything. (but apparently it doesn't support writing)
<zer0python> and axlsx doesn't seem to support reading
<SeepingN> read with rubyxl, write with axlsx?
<SeepingN> 20 gigs of ram later, you have a product!
<zer0python> lol
<SeepingN> I love ruby as a language but damn, it needs a diet or something
nadir has quit [Quit: Connection closed for inactivity]
blackmesa1 has quit [Ping timeout: 240 seconds]
imode has joined #ruby
cdg_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
jorb has joined #ruby
<apeiros> SeepingN: for the type of language it is, it's actually doing quite well. but it's very very easy to write memory (and CPU) inefficient code :-/
k3rn31 has joined #ruby
<SeepingN> very true
blackmesa1 has joined #ruby
reaVer has quit [Remote host closed the connection]
<SeepingN> also my view is tainted. What I thought was a slowness in loading ruby just to run a 600 line script, turns out mostly to be due to a scan I do near the start. Looking in a directory with 274000 entires for a matching serial number...! Woopsies
cdg has quit [Ping timeout: 248 seconds]
<apeiros> :D
<apeiros> yeah, benchmarking can help figure out what's slow
imode has quit [Ping timeout: 255 seconds]
<SeepingN> I had forgotten it may be becoming an issue. Then I went to manually look for something int hat directoy and an "ls" took minutes
<apeiros> other funny things to do: big_ary.any? { |e| other_big_ary.include?(e) } # looks like a single loop, but whoopsie O(n^2), or rather O(n*m)
cdg has joined #ruby
<SeepingN> oddly, once in a while it would return an ls within seconds.
<apeiros> caching maybe
reaVer has joined #ruby
<SeepingN> yeah. apparnetly we're using XFS so seems possible
jenrzzz_ has quit [Ping timeout: 240 seconds]
<SeepingN> and with more an dmore things writing to that directly, it has less time to cache and use said cache
<apeiros> I got super mario odyssey, why am I not playing? o0
* apeiros will ponder for another few minutes and then vanish to go play :D
Cerbb has joined #ruby
<jorb> so like, i am running `bundle exec` on something, and it has zero verbose logging to help debug even with the -V, is this a typical issue?
blackmesa1 has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
alfiemax_ has quit [Read error: Connection reset by peer]
<apeiros> jorb: that would depend a lot on what you execute.
lanc has joined #ruby
lanc has quit [Client Quit]
alfiemax has joined #ruby
lanc has joined #ruby
<Cerbb> hi...i have silly question...i installed ruby from the repo of debian jessie, then i found out that i was supposed to use rvm to install it. is it correct? in my installation, bundle seems to require sudo access, and I read that it could be because of the way i install it. so the question: is it ok if i remove ruby with 'remove' then install rvm and reinstall ruby with rvm?
cdg has quit [Ping timeout: 255 seconds]
<Cerbb> does any of what i said make sense?
<apeiros> Cerbb: you're not supposed to use rvm.
lanc has left #ruby [#ruby]
<apeiros> but rvm is a good option
<havenwood> Cerbb: It's fine to use the package manager or an installer like RVM, ruby-build or ruby-install
dionysus69 has quit [Client Quit]
<apeiros> if you install it via rvm, install it as a user, not via root. bundler shouldn't need sudo then either.
<Cerbb> the point is that at the moment bundle says:
<Cerbb> Your user account isn't allowed to install to the system RubyGems.
<Cerbb>
<Cerbb> You can cancel this installation and run:
<Cerbb> bundle install --path vendor/bundle
<Cerbb> ops..sorry
<apeiros> yes, so you use bundler with a different user than what you used to install ruby I'd say
<apeiros> (or you have a very funny installation)
<apeiros> also make sure you actually use the bundler for your rvm ruby
<Cerbb> i do not have rvm at the moment
<apeiros> rvm ruby can coexist with system ruby, and if you don't select rvm ruby, you'll run system ruby.
<Cerbb> i was wondering if there is a good way to change the permission without reinstalling it
<havenwood> Cerbb: Yes, you can have your system Ruby install gems to your $HOME directory.
mn3m has quit [Remote host closed the connection]
<havenwood> Cerbb: Some package managers do that by default.
<havenwood> Cerbb: RubyGems has a --user-install flag that will: Install in user's home directory instead of GEM_HOME.
<Cerbb> i see
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Cerbb> so i have to activate this flag
<TViernion> RickHull, i don't know what happened.. but i did a yum install Imagemagick-devel and imageMagick and it freakin worked.. lol
<havenwood> Cerbb: You can create a ~/.gemrc file to remember that flag: gem: "--user-install"
<RickHull> TViernion: ah right, when it complains about missing .h files, you need the -dev packages
<TViernion> yeah
<TViernion> now onward and upwards
<Cerbb> so essentially every time i run some ruby-thing it is the same as running with the flag
<Cerbb> i think i understand
<Cerbb> i will try
vipaca has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
<apeiros> .gemrc is specifically for rubygems
<apeiros> hence the name ;-)
<TViernion> Rickhull well shiiit... now i'm getting a failed to load command rake .. Name Error: uninitialized constant rake... and it's asking "did you mean? RBConfig" where would i change that
<Cerbb> havenwood: i created this .gemrc file with just one line that says ' gem: "--user-install" '. is this what you meant? and now i reinstall bundle with gem install bundler so that it gets installed in the home directory?
<havenwood> Cerbb: yup
<havenwood> Cerbb: then check: gem which bundler
<RickHull> TViernion: "rake" is the executable, on the filesystem
<RickHull> not a proper name in ruby code (i.e. in an .rb file)
<RickHull> i think the module/class is Rake
<havenwood> Cerbb: and check: command -v bundler
<havenwood> Cerbb: err, I mean: command -v bundle
<havenwood> I guess they install a bundler bin too, but that's confusing.
<RickHull> oh, rake was removed from stdlib and is now (2.4.x ?) a gem
dinfuehr has quit [Ping timeout: 240 seconds]
<RickHull> but included by default? not sure
<Cerbb> mmm command -v bundle gives the same thing as before which is /usr/local/bin/bundle
<RickHull> TViernion: NameError: uninitialized constant Rake::AltSystem::Config
<TViernion> shouldn't it be RbConfig?
<TViernion> well that'as what it's saying
<RickHull> what is Rake::AltSystem::Config?
<Cerbb> and indeed it still asks for sudo permission
<RickHull> some gem or something provides that
<RickHull> and you don't have it installed / activated
directhex has joined #ruby
directhex has left #ruby [#ruby]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa1 has joined #ruby
<TViernion> the only portion that i thinki missed now that i think about it is "add the bundler Boot and preinitialiizer code" i need to go back and figure that out.
bruno- has joined #ruby
<Cerbb> havenwood: i think i did something wrong. it still asks for sudo permission
<Cerbb> gem: "--user-install" <- is it like this? quotes are supposed to be there, right?
<havenwood> Cerbb: your new bundle bin probably isn't in your path
<havenwood> Cerbb: what is: gem which bundler
<havenwood> Cerbb: command -v bundle
<havenwood> Cerbb: Does one point to the new path and the other the old?
Technodrome has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<Cerbb> gem which bundler says: /home/fulges/.gem/ruby/2.1.0/gems/bundler-1.15.4/lib/bundler.rb
<Cerbb> which is in my user directory
<havenwood> okay, that's right
<havenwood> so far so good
<Cerbb> command -v bundle says /usr/local/bin/bundle
<havenwood> likely the bin/ folder isn't in your PATH
<Cerbb> which is up there
<Cerbb> where you need sudo
<Cerbb> I guess
<havenwood> yeah, so that's pointing at the bundler which is in your PATH, the system one
jrafanie has joined #ruby
<Cerbb> so I have to add the other path in the bashrc file?
<havenwood> Cerbb: export PATH="/home/fulges/.gem/ruby/2.1.0/bin:$PATH"
<havenwood> Cerbb: then recheck: command -v bundle
<havenwood> all should be well
<Cerbb> yep
<Cerbb> now it is /home/fulges/.gem/ruby/2.1.0/bin/bundle
<havenwood> perfect
<havenwood> you should be good to go
<Cerbb> should I copy export PATH="/home/fulges/.gem/ruby/2.1.0/bin:$PATH" somewhere so that it does that by itself every time?
<havenwood> Cerbb: you said bash? so your .bashrc file
<havenwood> depending
<Cerbb> yes
<Cerbb> there i have other export path commands...i append this one
<Cerbb> right?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Cerbb: Yeah, prepend the RubyGems bin/ to your PATH.
thomasv314 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
<Cerbb> perfect...new terminal and still the right command -v bundle
<Cerbb> now we try to see if it works xD
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve_ has joined #ruby
blackmesa has joined #ruby
anisha_ has joined #ruby
Press10_ has joined #ruby
blackmesa1 has quit [Ping timeout: 258 seconds]
<Cerbb> havenwood: still asks for sudo access :(
<havenwood> Cerbb: try setting: export GEM_HOME="/home/fulges/.gem/ruby/2.1.0"
<Press10_> Hey all. Reading a blog post on 2.5 and trying to understand the difference between yield_self and instance_eval? It seems like the implementation is a little different, but is there any reason to choose one over the other?
goyox86 has quit [Remote host closed the connection]
<havenwood> Cerbb: And: export GEM_PATH="/home/fulges/.gem/ruby/2.1.0:$GEM_PATH"
<havenwood> Cerbb: Putting RubyGems bin/ in PATH, setting GEM_HOME and GEM_PATH, etc is what the chruby Ruby version switcher does: https://github.com/postmodern/chruby
<Cerbb> ok
<Cerbb> now i get a dependency error. but it is fine i guess
<Cerbb> i have to solve that one xD
<havenwood> good luck!
Kasavage has joined #ruby
<Cerbb> i put the updated GEM_HOME and GEM_PATH also in bashrc?
<Kasavage> Anyone know if there is a way to swap out a certain number of spaces for a character? For example if there is 10 spaces replaces those 10 spaces with a comma?
<havenwood> Cerbb: yes
<Cerbb> ok thanks
<havenwood> Kasavage: if you want to do it once, look at #sub, or multiple times look at #gsub
npgm has joined #ruby
<Press10_> Ooo. yield_self is twice as fast in a basic test.
goyox86 has joined #ruby
<Kasavage> I am currently using gsub with /\s+/ etc but how can I define say /\s+10/ for 10 spaces and so forth?
<havenwood> >> ' Kasavage !'.sub /\s{10}/, ','
<ruby[bot]> havenwood: # => " Kasavage, !" (https://eval.in/887922)
<Kasavage> Answers my question, thank you!
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Kasavage: `{10,}` is ten or more
<Kasavage> Thanks for the fast answers as always guys.
<havenwood> Kasavage: `{10,12}` is 10-12
<havenwood> Kasavage: any time!
marxarelli has quit [Ping timeout: 252 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
mtkd has quit [Ping timeout: 240 seconds]
<Cerbb> yay..it worked \o/
mtkd has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
alnewkirk has joined #ruby
jrafanie has joined #ruby
imode has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
Technodrome has joined #ruby
alfiemax has quit [Remote host closed the connection]
ta has joined #ruby
nofxx has joined #ruby
postmodern has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
troys is now known as troys_
claudiuinberlin has joined #ruby
mn3m has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has joined #ruby
nadir has joined #ruby
mn3m has quit [Ping timeout: 246 seconds]
fclausen has joined #ruby
imode has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
oncall-pokemon has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
fclausen has quit [Ping timeout: 248 seconds]
conta2 has quit [Ping timeout: 248 seconds]
Kasavage has quit [Quit: Page closed]
thomasv314 has joined #ruby
drbroiler has joined #ruby
mn3m has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Rapture has joined #ruby
Rapture has quit [Client Quit]
troulouliou_div2 has joined #ruby
Rapture has joined #ruby
orbyt_ has joined #ruby
eckhardt has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
enterprisey has quit [Remote host closed the connection]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
ta has joined #ruby
<jorb> so this bundle exec is running sequel and then getting this fun "key too long" error and there doesn't seem to be a way to get it to kick out what create statement is making that happen
<jorb> any advice?
ldnunes has quit [Quit: Leaving]
enterprisey has joined #ruby
dionysus69 has joined #ruby
Flabbergazta has quit []
Flabbergazta has joined #ruby
<RickHull> paste the command and output
<RickHull> omit or redact any sensitive info
mostlybadfly has joined #ruby
zautomata has joined #ruby
cdg has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rt has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
Psybur has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
ta has quit [Remote host closed the connection]
charliesome has joined #ruby
apeiros has quit [Ping timeout: 258 seconds]
blackmesa1 has quit [Ping timeout: 246 seconds]
sepp2k has quit [Quit: Leaving.]
charliesome_ has joined #ruby
synthroi_ has quit []
hutch34 has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
Press10_ has quit [Quit: Leaving]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 255 seconds]
minimalism has quit [Quit: minimalism]
mn3m has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
thomasv314 has joined #ruby
abi-hto has joined #ruby
abi-hto has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
imode has joined #ruby
goyox86 has quit [Quit: goyox86]
agent_white has joined #ruby
ta has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 258 seconds]
marens has quit [Remote host closed the connection]
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
John___ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
mtkd has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
jphase has quit [Remote host closed the connection]
sagax has joined #ruby
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has joined #ruby
porfa has quit [Quit: porfa]
abi-hto has joined #ruby
fclausen has joined #ruby
kies has quit [Ping timeout: 248 seconds]
nowhereman has quit [Ping timeout: 264 seconds]
fclausen has quit [Ping timeout: 248 seconds]
kies has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<dminuoso> havenwood: This is so ridiculous, I dont even know how to solve problems without function composition anymore. :(
<dminuoso> Just started poking at Elixir, and suddenly thing have gotten really cumbersome...
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<RickHull> dminuoso: got any enhancement ideas for https://github.com/rickhull/compsci ?
nogic has joined #ruby
<dminuoso> RickHull: Actually, yes.
jenrzzz has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
fclausen has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
drbroiler has quit [Ping timeout: 240 seconds]
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drbroiler has joined #ruby
cadillac_ has joined #ruby
<RickHull> banisterfiend: rake's sh outputs the command on $stderr, looks like
<dminuoso> RickHull: Personally I find returns from blocks disgusting.
Azure has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
<RickHull> so break and then return?
<havenwood> RickHull: I think it's worth having paths match namespaces, name-wise.
ap4y has joined #ruby
<RickHull> you mean fib.rb?
<RickHull> tree.rb has a bunch of names
<dminuoso> RickHull: I use lambdas exclusively nowadays for various reasons.
<dminuoso> But that quickly goes into "personal preferences territory"
<RickHull> dminuoso: ooh, can you give an example?
Heph_ has joined #ruby
<havenwood> RickHull: Yeah, I was looking at fib.
<havenwood> RickHull: You should add a matrix fib!
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k3rn31 has quit [Ping timeout: 264 seconds]
Ltem has quit [Quit: Leaving]
<RickHull> ha, ok
Heph_ has left #ruby [#ruby]
__Yiota has joined #ruby
<dminuoso> RickHull: This was some random junk code I wrote to process a file the other day: https://gist.github.com/dminuoso/b9b48f79999292947787b66cea3d4cf3
* RickHull strokes chin
eckhardt has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
<RickHull> great example, will get to it in depth shortly :)
eckhardt has quit [Client Quit]
ap4y1 has joined #ruby
<dminuoso> havenwood: You know what we need?
eckhardt has joined #ruby
<dminuoso> SKI combinators in ruby.
<dminuoso> There's some really lovely things out there
<dminuoso> such as
<dminuoso> -> (f) { -> (x) { x[x] }[-> (x) { f[ -> (y) { x[x][y] }] }] }
alnewkirk has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 240 seconds]
MyMind has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
fullstack has quit [Ping timeout: 246 seconds]
mn3m has quit [Ping timeout: 248 seconds]
fullstack has joined #ruby
spiette has quit [Quit: :qa!]
vipaca has joined #ruby
ycyclist has joined #ruby
ycyclist has left #ruby [#ruby]
ycyclist has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
vee__ has quit [Ping timeout: 260 seconds]
agent_white has quit [Ping timeout: 240 seconds]
blackmesa1 has joined #ruby
alnewkirk has joined #ruby
nowhereman has quit [Remote host closed the connection]
mn3m has joined #ruby
nowhereman has joined #ruby
hotpancakes has joined #ruby
<havenwood> RickHull: Nice! As N gets larger, the matrix version pulls ahead. With `N == 1000` for example:
<havenwood> matrix: 12047.1 i/s
<havenwood> cache_iterative: 3964.4 i/s - 3.04x slower
<havenwood> dynamic: 3784.9 i/s - 3.18x slower
<RickHull> i'm fixing a bug for dynamic(0)
<RickHull> it will get a little slower
<havenwood> With N of 10,000:
<havenwood> matrix: 3919.9 i/s
<havenwood> dynamic: 232.0 i/s - 16.90x slower
<havenwood> cache_iterative: 222.8 i/s - 17.59x slower
<havenwood> And so-on
porfa has joined #ruby
fullstack has quit [Ping timeout: 255 seconds]
<havenwood> At 100k it's 50-100x faster.
fullstack has joined #ruby
troys is now known as troys_
alnewkirk has quit [Ping timeout: 248 seconds]
conta2 has joined #ruby
mikecmpbll has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> dynamic(25) got 1.03x slower
vee__ has joined #ruby
jrm2 has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
<RickHull> havenwood: very interesting :)
jrm has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
jrm2 is now known as jrm
<zanoni> last night i asked about options for getting static files outside public folder in a Sinatra app, got some good help, went with send_file, but not happy with it. Now I'm working on getting rack::reverseproxy , and not sure if my config file is correct, I"m slightly confused about the paths, so in case someone want to look https://gist.github.com/stuartambient/2d757461471db6a1f95e4d1e95931b55
alnewkirk has quit [Ping timeout: 248 seconds]
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
MyMind has quit [Quit: WeeChat 1.6-dev]
mson has joined #ruby
<havenwood> zanoni: Just to rule out some options, what are the files for? Stylesheets and such or other things?
alnewkirk has joined #ruby
<havenwood> zanoni: Just to confirm, you've ruled out using Nginx or Apache as your reverse proxy for static files?
<havenwood> What Rack webserver are you using?
<zanoni> they are audio files , mp3, flac, etc. for previewing
Sembei has joined #ruby
<zanoni> I'm lettting it use Puma at this point
<zanoni> I ruled out Nginx for the time being yes
jorb has left #ruby [#ruby]
alnewkirk has quit [Ping timeout: 248 seconds]
<havenwood> zanoni: Then doing it at the middleware level seems like the right path. I don't know what's going on with your path issue. How does the problem present itself?
hotpancakes has quit [Remote host closed the connection]
<zanoni> it fails
<havenwood> does something start smoking? 404?
<zanoni> no, it goes on to the view , shows me the name of the file which i put in there,
hfp_work has joined #ruby
<zanoni> the error though is error handling request
<RickHull> i believe the status code for smoking all day error day is 420
<zanoni> heh
<havenwood> Enhance Your Calm
<zanoni> maybe that is why it isn't working, i'm just wondering with a route like /files/* and then the actual files, deep in the path if that isn't the problem
vtx has joined #ruby
alnewkirk has joined #ruby
thinkpad has joined #ruby
SeepingN has quit [Ping timeout: 260 seconds]
vtx has quit [Remote host closed the connection]
<zanoni> at the start of the errors in the console is something about 'can't activate activesupport, already activated', not sure why that is in there
<zanoni> skip my last message, i got rid of that one ;)
hotpancakes has joined #ruby
<RickHull> havenwood: matrix beats dynamic under N=500
vee__ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
vtx has joined #ruby
cschneid_ has joined #ruby
gusrub has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
SeepingN has joined #ruby
<zanoni> well my errors are decreasing so i must be on the right track
QualityAddict has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
Psybur has joined #ruby
jphase has quit [Remote host closed the connection]
gusrub has joined #ruby
jphase has joined #ruby
alnewkirk has joined #ruby
goyox86 has joined #ruby
<ycyclist> Anyone know if there is a ruby gem repository for fluentd gems?
<TViernion> guys.. i've installed redmin and i think it should work, plus i ahve all the right ports assigned, and i've run "rails s -p 8080" from within the directory where redmine is located... where could i possibly be going wrong?
<TViernion> this is rails 4.2.4 nd ruby 2.2.2
<ycyclist> I was gonna ask on #fluentd, but nobody seems to be there.
Dimik has quit [Ping timeout: 260 seconds]
drbroiler has quit [Ping timeout: 240 seconds]
<RickHull> TViernion: check #rubyonrails
<TViernion> Ahhh... thanks Rickhull
alnewkirk has quit [Ping timeout: 260 seconds]
<RickHull> dminuoso: what is nthL from your gist?
<RickHull> some user arg?
troys_ is now known as troys
enterprisey has joined #ruby
alnewkirk has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
jphase has quit [Remote host closed the connection]
cschneid_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
<RickHull> from a travis worker: Load: 169.31 181.22 178.13 139/2375 2351
s3nd1v0g1us has quit [Remote host closed the connection]
jphase has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
blackmesa1 has quit [Ping timeout: 240 seconds]
QualityAddict has quit [Remote host closed the connection]
blackmesa1 has joined #ruby
alnewkirk has joined #ruby
oetjenj has joined #ruby
moei has quit [Quit: Leaving...]
alnewkirk has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
nogic has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
hotpancakes has quit [Remote host closed the connection]
pmunt__ has quit [Quit: Leaving]
megamosaren has joined #ruby
vtx has quit [Ping timeout: 248 seconds]
blackmesa1 has quit [Ping timeout: 258 seconds]
chmuri has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
orbyt_ has joined #ruby
abi-hto has quit [Quit: Leaving]
axisys has joined #ruby