havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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
cschneid_ has quit [Ping timeout: 260 seconds]
mustmodify has left #ruby [#ruby]
cagomez has quit [Read error: Connection reset by peer]
cagomez_ has joined #ruby
mjora7 has joined #ruby
ledestin has joined #ruby
cagomez_ has quit [Ping timeout: 255 seconds]
friday has quit [Changing host]
friday has joined #ruby
mjuszczak has quit []
blackmes1 has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
mjuszczak has joined #ruby
impermanence has joined #ruby
bsartek has quit [Read error: No route to host]
bsartek has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
impermanence has quit [Client Quit]
chouhoulis has joined #ruby
mjuszczak has quit []
marr has quit [Remote host closed the connection]
tercenya has quit [Remote host closed the connection]
rakm has joined #ruby
tercenya has joined #ruby
oliv_____ has joined #ruby
binaryplease has quit [Ping timeout: 255 seconds]
sunrunner20 has joined #ruby
<sunrunner20> question
<sunrunner20> I'm watchign a pural sight video on ruby from 2013
<sunrunner20> I'm a nub to ruby
oliv_____ has quit [Ping timeout: 260 seconds]
<sunrunner20> is there any paradignm shifts that have occured since then that the video will train me wrong on?
<sunrunner20> *have there been
<sunrunner20> he's using 2.0
<sunrunner20> I see we're on 2.3.4
<sunrunner20> *2.3/4
my123_ has joined #ruby
my123_ has joined #ruby
starmix_ has joined #ruby
armin has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
armin has joined #ruby
jamesaxl has joined #ruby
xenops has quit [Ping timeout: 240 seconds]
jusa has joined #ruby
patr0clus has quit [Quit: WeeChat 1.4]
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Read error: Connection reset by peer]
starmix has quit [Ping timeout: 240 seconds]
xenops has joined #ruby
my123 has quit [Ping timeout: 264 seconds]
soloscshaw has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
skweek has joined #ruby
soloscshaw has quit [Ping timeout: 268 seconds]
jarred_ has quit []
jarred has joined #ruby
nikivi has quit [Ping timeout: 240 seconds]
Doow_ has quit [Remote host closed the connection]
Doow has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
Cohedrin has quit [Ping timeout: 260 seconds]
Cohedri__ has joined #ruby
nikivi has joined #ruby
watersoul_ has joined #ruby
Pierreb|home has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
watersoul has quit [Remote host closed the connection]
KramerC has quit [Ping timeout: 260 seconds]
psmolen_ has quit [Ping timeout: 260 seconds]
discopatrick has quit [Ping timeout: 260 seconds]
gains has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 260 seconds]
brainslug has quit [Ping timeout: 260 seconds]
knight- has quit [Quit: No Ping reply in 180 seconds.]
vircung has quit [Ping timeout: 260 seconds]
Disavowed has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
AKPWD has quit [Quit: じゃね。]
mmasaki has quit [Ping timeout: 260 seconds]
AKPWD has joined #ruby
KramerC has joined #ruby
baweaver has quit [Excess Flood]
bw\ has quit [Ping timeout: 260 seconds]
ozzloy has quit [Ping timeout: 260 seconds]
knight- has joined #ruby
baweaver has joined #ruby
rizonz has quit [Ping timeout: 260 seconds]
discopatrick has joined #ruby
Disavowed has joined #ruby
ozzloy has joined #ruby
bw\ has joined #ruby
psmolen has joined #ruby
rizonz has joined #ruby
cschneid_ has joined #ruby
zenguy_pc has joined #ruby
vircung has joined #ruby
mmasaki has joined #ruby
t-recx has quit [Quit: t-recx]
charliesome has joined #ruby
tris has quit [Excess Flood]
reaVer has quit [Ping timeout: 245 seconds]
brainslug has joined #ruby
gizmore has joined #ruby
tris has joined #ruby
nikivi has quit [Ping timeout: 240 seconds]
gizmore|2 has quit [Ping timeout: 260 seconds]
Disavowed has left #ruby [#ruby]
szulak has quit [Quit: bye!]
<Radar> sunrunner20: Should be OK if it's Ruby 2.0. There aren't too many major differences.
Disavowed has joined #ruby
<Radar> Keyword args is one that I can think of that might surprise you (i.e. you'd think "what the hell is that syntax?")
<sunrunner20> good
<Radar> def thing(this: nil, other_thing:, **args)
<Radar> Where **args would capture any remaining keyword arguments.
<sunrunner20> ah
Channel6 has joined #ruby
<sunrunner20> fimiliar with that
reaVer has joined #ruby
<Radar> good-o
<sunrunner20> c# 4 or 5 has that
<sunrunner20> I forget what its called
jhack has quit [Quit: Leaving]
nikivi has joined #ruby
<sunrunner20> haven't needed it yet
<sunrunner20> odds are if your using it you're doing s omething wrong imho
cschneid_ has quit [Read error: Connection reset by peer]
rcs has quit [Ping timeout: 260 seconds]
ytti_ has joined #ruby
ytti has quit [Ping timeout: 260 seconds]
Nilium has quit [Ping timeout: 260 seconds]
Nilium has joined #ruby
cschneid_ has joined #ruby
Rodya_ has joined #ruby
Channel6 has quit [Client Quit]
SemiNus has joined #ruby
rcs has joined #ruby
<SemiNus> hi all
<SemiNus> is this the right channel to ask when I fail installing a ruby gem?
<SemiNus> this is what happens: https://dpaste.de/k1Sw/raw
<SemiNus> this is what I am trying to do:
bronson has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nikivi has quit [Ping timeout: 260 seconds]
hndk has joined #ruby
Guest96_ has quit [Remote host closed the connection]
moei has joined #ruby
KCmetro has joined #ruby
Hobbyboy has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Ping timeout: 245 seconds]
nikivi has joined #ruby
Guest96 has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
Cohedri__ has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
Cohedrin has joined #ruby
impermanence has joined #ruby
KCmetro has quit [Ping timeout: 252 seconds]
patarr has joined #ruby
justicefries has left #ruby [#ruby]
cagomez has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jameser has joined #ruby
Hobbyboy has joined #ruby
<havenwood> SemiNus: Looks like a system-wide gem installation directory you'd need sudo to install to.
<SemiNus> havenwood, would it then also work for the user zammad?
<havenwood> SemiNus: How'd you install Ruby?
<SemiNus> havenwood, using apt-get I guess
<SemiNus> I am just repeating it as root user
<havenwood> SemiNus: Does `sudo gem install bundler` work?
<SemiNus> perfect
<SemiNus> it worked
<SemiNus> thank you
<havenwood> SemiNus: No prob, any time.
rgtk has joined #ruby
olivi____ has quit [Ping timeout: 252 seconds]
<SemiNus> by the way, the software that I just try to install (zammad.org) is pretty cool
<SemiNus> so if you feel like, check it out - one of the most promising help desks out there
rkazak has joined #ruby
patarr has quit [Ping timeout: 252 seconds]
vedu has quit [Ping timeout: 260 seconds]
marxarelli|afk is now known as marxarelli
mnemon has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
mnemon has joined #ruby
Didac has quit [Ping timeout: 240 seconds]
Didac has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
vedu has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
swills has quit [Ping timeout: 240 seconds]
swills has joined #ruby
soloscshaw has joined #ruby
ikopico has quit [Ping timeout: 260 seconds]
ikopico has joined #ruby
jeffaustin81 has joined #ruby
duderonomy has quit [Ping timeout: 252 seconds]
rfoust has joined #ruby
rgtk has quit [Ping timeout: 245 seconds]
soloscshaw has quit [Ping timeout: 240 seconds]
alamar has quit [Ping timeout: 240 seconds]
<Verity> ty SemiNus, I will
rkazak has quit [Quit: Sleep.....ing....]
crazyphil has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
crazyphil has joined #ruby
patarr has joined #ruby
libastral has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
libastral has joined #ruby
mjuszczak has joined #ruby
mjuszcza_ has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
yorickpeterse has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
brent__ has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
mjuszczak has quit [Ping timeout: 240 seconds]
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meinside has joined #ruby
Rodya_ has joined #ruby
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
szulak has joined #ruby
Rodya_ has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HoierM has quit [Ping timeout: 260 seconds]
<SemiNus> oh my goodness I am working with ruby for the first time, and I cannot get the installation done
skweek has quit [Ping timeout: 240 seconds]
Vile` has quit [Ping timeout: 240 seconds]
<SemiNus> ^ help would be very appreciated, I get error messages that I cannot fix - google did not help so far
<impermanence> I'm kind of surprised to learn that if I have something like: name = 'Jessica' and then do name.chop that name doesn't then become 'Jessica'...but instead name.chop simply *returns* 'Jessica'...which I guess makes sense from a dot operator/OOP perspective...
<impermanence> sorry. returns 'Jessic'
pilne has quit [Quit: Quitting!]
j has joined #ruby
phansch has quit [Ping timeout: 260 seconds]
j is now known as Guest1359
phansch has joined #ruby
raspado has quit [Remote host closed the connection]
PorcoRex has joined #ruby
<gr33n7007h> impermanence: it return 'Jessic' because it chops off the last character
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<impermanence> gr33n7007h: yep. but name isn't updated. for some reason I was expecting name.chop to update name. don't know why. makes sense when I think about it from an OOP perspective.
marxarelli is now known as marxarelli|afk
Channel6 has joined #ruby
<gr33n7007h> impermanence: String#chop! will modify the string
chouhoulis has quit [Remote host closed the connection]
Vile` has joined #ruby
gsilva has quit [Ping timeout: 255 seconds]
jusa has joined #ruby
Channel6 has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 240 seconds]
<mices> should i be able to set attributes from create action after form submit that aren't in the params list and then when the create action reaches respond_to do ... if @object.save those attributes will be set along with whatever's in params list?
soloscshaw has joined #ruby
<mices> @object.name="Tex"
<mices> name isn't in the form
<mices> but other fields are
<PorcoRex> Sounds like a Rails question.
mjuszcza_ has quit []
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
soloscshaw has quit [Ping timeout: 252 seconds]
<Verity> impermanence, does it? it doesnt have to modify internal prop, perhaps all you want is returned copy with the modification. so you have the option. the ! versions of methods modify the obj
<PorcoRex> Ups. wrong channel.
cschneid_ has joined #ruby
bloosi has joined #ruby
duderonomy has joined #ruby
<bloosi> hi
cschneid_ has quit [Read error: Connection reset by peer]
<PorcoRex> bloosi, good evening.
<gr33n7007h> o/
cschneid_ has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
<bloosi> porcorex thx
brent__ has quit [Remote host closed the connection]
adgtl has quit [Quit: bye]
bronson has quit [Ping timeout: 240 seconds]
wc0 has joined #ruby
rakm has joined #ruby
bloosi has quit [Quit: Leaving]
<SemiNus> what could be the reason for this, please?
<SemiNus> ERROR: Error installing json:
<SemiNus> ERROR: Failed to build gem native extension.
milardovich has joined #ruby
gix has quit [Ping timeout: 260 seconds]
<PorcoRex> You need Ruby's source code.
<PorcoRex> Some package named ruby-dev, or the like.
<SemiNus> thank you PorcoRex
<havenwood> SemiNus: +1: sudo apt-get install ruby-dev
<SemiNus> I really need to figure out what ruby feels like... I know what PHP is, how it works, and how it "feels" to program in it.
<SemiNus> however, Ruby is still one of the fields that I never touched
<SemiNus> maybe I should
* baweaver perks up
<baweaver> EEEeeeeeeeeeloquent Ruby
<SemiNus> I've only stumbled upon Ruby every now and then when installing a 3rd party software
wc0 has quit [Ping timeout: 260 seconds]
gix has joined #ruby
<PorcoRex> baweaver, eloquency is something not all of us people developing know how to really do.
<baweaver> SemiNus: see also: channel topic book list
<PorcoRex> :P
<SemiNus> I have a very short question:
<SemiNus> maybe I should google, but I try it. If the answer is too complicated, just tell me and I will google it up
Rodya_ has joined #ruby
<SemiNus> there is Ruby. And then there is Ruby on Rails. And I assume there is also Rails.
<SemiNus> what is what?
<baweaver> Rails is a gem
<baweaver> Ruby is the language
<SemiNus> gem is a ruby package?
<baweaver> yeah
<SemiNus> why is it "on" Rails then?
<SemiNus> that would be like saying: "PHP on Wordpress"
<SemiNus> or "Perl on OTRS"
<baweaver> Rolls off the toungue
<baweaver> tongue
<PorcoRex> Ruby is PHP, Rails is Wordpress.
<SemiNus> json also exists as a gem
<SemiNus> why isn't it "Ruby on json" then?
<SemiNus> I don't get the whole idea
<baweaver> It is though
<baweaver> You mean you don't call it Ruby on JSON?
<SemiNus> yes
<PorcoRex> The full name of the framework is not Rails, but "Ruby on Rails".
<baweaver> We have Ruby on HTTP and Ruby on YAML too
<PorcoRex> baweaver, hahaha.
<SemiNus> so, just to be sure:
<SemiNus> nobody codes "Ruby" ?
<SemiNus> when I want to learn it, I would learn Ruby on Rails?
<baweaver> They code Ruby on Ruby
<SemiNus> what the....
<baweaver> They just program Ruby
<SemiNus> so would I start learning Ruby, or Ruby on Rails?
Rodya_ has quit [Ping timeout: 258 seconds]
<PorcoRex> SemiNus, Ruby is a stand alone language. Ruby on Rails is a framework.
<SemiNus> coming from PHP and Perl
<baweaver> Ruby
<SemiNus> like Javascript compared to jQuery?
<baweaver> yep
<SemiNus> that makes sense!!!
<PorcoRex> Yes.
<baweaver> So go out and learn Ruby on Ruby
<SemiNus> so I first start off by learning Ruby, and once I know how Ruby works, I can learn the Framework Ruby on Rails (expecting it will make my life easier)
<SemiNus> thank you all
<baweaver> yep
<SemiNus> sorry for the question, but since I am here already, I kind of got curious
<baweaver> Oh not a problem
<PorcoRex> I think that's a big problem sometimes. I've interviewed people for a role as RoR developers and they are pretty good, until I try to get them to separate the framework from the language. They get it mixed up many times.
<baweaver> If someone does that in an interview I instantly mark them as Junior at best
<SemiNus> isn't the term Junior and Senior hard to separate?
<baweaver> Depends
<SemiNus> at least here in the german speaking part of Europe, everyone considers themself a Senior
<baweaver> In general an experienced dev can tell
<PorcoRex> Yeah, definitely stumbles to square one. But what I'm getting at is that Rails is so ubiquitous on the market that people forget there's a language behind it.
jeffaustin81 has joined #ruby
raspado has joined #ruby
cschneid_ has quit [Remote host closed the connection]
<PorcoRex> I mean, I don't know how a C++ interviews goes for instance, but in my line of work Ruby interviews are mostly Rails interviews, with Ruby as an optional afterthought.
harfangk has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 53.0/20170414022702]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 53.0/20170414022702]]
KCmetro has joined #ruby
<baweaver> PorcoRex: oh you would hate my interview then
<PorcoRex> How so?
<baweaver> because my sole purpose in that room is to find out how much people know Ruby as a language
<PorcoRex> Hahaha.
<PorcoRex> Well, I can guess how that can become old really fast.
<baweaver> Not really. I enjoy it
<baweaver> can't say some of the candidates do though, but to be fair they don't really know Ruby either
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<PorcoRex> Probably the less they know Ruby the less they enjoy the interview.
<baweaver> Pretty much
<baweaver> I tell them they can ask me any question and I have to answer (as long as it's Ruby)
<baweaver> only had one clever enough to ask me how I would write the problem
esObe_ has joined #ruby
<PorcoRex> You've done an art of it, as far as I can tell. :)
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
jameser_ has joined #ruby
<baweaver> Want to play? :)
KCmetro has quit [Ping timeout: 252 seconds]
<PorcoRex> baweaver, I'm fairly drunk, so I'm up for some public shaming.
<PorcoRex> Let's do it.
<baweaver> Oh good
<baweaver> that's more fun
<baweaver> If you have a text file, `file.txt`, how would you give me a word count of that file?
jameser has quit [Ping timeout: 240 seconds]
<_bet0n> I just woke up and tried to read your conversation on Ruby and Ruby on Rails issue and now I wonder how it ended up with public shaming :D
<baweaver> There can only be one _bet0n
<baweaver> It's a Ruby throwdown
<Nilium> Golf?
<baweaver> sure
<PorcoRex> _bet0n, you will have plenty of time to catch up, because I will be shamed, but fairly slowly.
* Nilium goes to get some popcorn
<Radar> ?popcorn
<ruby[bot]> It's popcorn time! 🍿🍿🍿
<PorcoRex> baweaver, not sure how you intend me to answer? Should I code something and post a link?
<Radar> PorcoRex: yes please ;)
<baweaver> Code on channel :D
esObe_ has quit [Ping timeout: 245 seconds]
<baweaver> or link if it's long
<PorcoRex> baweaver, never tried that.
adgtl has joined #ruby
<PorcoRex> I don't even have Ruby installed. Let me fire up a docker env...
JoshS has joined #ruby
<baweaver> All are free to participate in the madness
soloscshaw has joined #ruby
robnester has quit [Quit: I wonder what this button does...?]
<Disavowed> Alrighty: File.read('sample.txt').split.count
latemus has quit [Quit: leaving]
jameser_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mices has quit [Ping timeout: 240 seconds]
<baweaver> Ah, but you want the count of _each_ word :)
raspado has quit [Quit: Leaving...]
<Radar> Ideal output is this (I think?) {"these"=>1, "are"=>1, "some"=>1, "words"=>1}
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> ding
<_bet0n> dong :D
<Disavowed> Damnit, I thought I was a sure-fire-hire with that one-liner!
robnester has joined #ruby
<_bet0n> Disavowed: looks like mission failed
astrobunny has joined #ruby
<_bet0n> => TRY AGAIN => END GAME
<synstack> Disavowed: Array#inject
<synstack> probably
soloscshaw has quit [Ping timeout: 260 seconds]
esObe_ has joined #ruby
<Radar> inject is so... 2013.
<baweaver> Way to reduce the fun
<synstack> oh
<synstack> my apologies
<baweaver> (it was a pun, relax)
<baweaver> inject is the same as reduce
* synstack melts
<baweaver> &ri Enumerable#reduce
<synstack> Radar is reduce the more idiomatic method?
<Radar> synstack: no
<synstack> o
<baweaver> Na, you're pretty much there
<baweaver> either that or you'd use each_with_object
<baweaver> &ri Enumerable#each_with_object
<Radar> each_with_object has a nicer API imo
<Radar> brb
<baweaver> at least in this case
<Nilium> ruby -e 'puts (h = $stdin.read.split.group_by(&:itself)).each{|k,v|h[k]=v.length}.inspect' I got lazy and didn't bother with useful grouping.
<gr33n7007h> IO.read('file.txt').split.each.with_object(Hash.new { |h, k| h[k] = 0 }) { |w, h| h[w] += 1 }
<synstack> !
robnester has quit [Ping timeout: 258 seconds]
<baweaver> Hash.new(0) works too
<gr33n7007h> ah, yep what was i thinking about
<gr33n7007h> :)
esObe_ has quit [Ping timeout: 240 seconds]
<Nilium> Coffee. Delicious coffee.
<baweaver> File.read('file.txt').split.each_with_object(Hash.new(0)) { |w, a| a[w] += 1 }
<baweaver> so pretty much same deal
<synstack> Ugh, ive been working on learning C++ lately but I am significantly less enthusiastic about it compared to ruby
<baweaver> I just use File over IO for preference
* Nilium misses working in C++, kind of.
<synstack> each_with_object made my spine tingle
<baweaver> though File technically uses IO anyways, so...
<Nilium> Though I think I miss C more.
<gr33n7007h> yeah, true
<baweaver> It just reads a bit more explicit but I doubt I make an issue of it either way
<baweaver> considering I use IO for most oneliners when I'm screwing around
bronson has joined #ruby
<gr33n7007h> me too generally
<baweaver> 99% of the time I end up using reduce though, so I occasionally flip the args for each_with_object
<PorcoRex> File.read("file.txt").strip.split(/\s+/).each_with_object(Hash.new(0)) {|word, accum| accum[word] +=1 }
robnester has joined #ruby
bonhoeffer_ has joined #ruby
<baweaver> Now then, on to the next one
<Disavowed> baweaver: We got there in the end. Does this mean you have to hire all of us?
<PorcoRex> Hahaha.
<_bet0n> Full-stack developer team
<baweaver> You have a `wordlist` and a hand of 7 scrabble tiles(`hand`). Make me the highest scoring word you can from those letters. Scores are accessible though `scores`
hndk has quit [Quit: Leaving]
<PorcoRex> baweaver, I bail... Your interviewees better be sober as stones!
<Nilium> The scrabble one is fun though
<PorcoRex> No, I know. I love these.
<PorcoRex> Should probably organize these in advance, like weekly or something.
milardovich has quit [Remote host closed the connection]
<baweaver> wordlist.select { |w| (w.chars - hand).empty? }.map { |w| [w, w.chars.reduce(0) { |a,c| a + scores[c] }] }.sort_by(&:last).to_h
<baweaver> Array#- is fun :D
<baweaver> technically you could dump all of that into reduce
<Radar> back. What did I miss.
<baweaver> Scrabble
<PorcoRex> baweaver, that's nice.
<Radar> [14:06:52] <PorcoRex>baweaver, I bail... Your interviewees better be sober as stones! <- lol
<baweaver> and these questions do have practical applications :)
<baweaver> the first one for instance is how to get counts of certain objects. Consider getting a collection of AmazonInstances and needing to get the counts of running instances
<baweaver> The second one is intersection conditions and counting, which I've had to do at work before as well
<baweaver> I just try and simplify them to generic problems
<baweaver> that way whenever someone asks me when they'd ever use these at work I switch the names back and smile :D
<baweaver> The really fun one is dot-path explosion, searching, and implosion
<PorcoRex> baweaver, going back to my first answer, I'm not completely satisfied with it simply because I'm getting the whole file into memory when this type of problem could be solved by streaming the file instead.
<Radar> PorcoRex: Good thinking.
<baweaver> Oh that it can
<baweaver> and I do pay attention to people noticing those
Rodya_ has joined #ruby
<PorcoRex> baweaver, so what is dot-path explosion?
<baweaver> Radar :)
bsartek has quit [Quit: This computer has gone to sleep]
<Radar> I don't know what that is either.
<Radar> I might know it by another name?
<baweaver> Say you have a Hash like this: {a: {b: {c: 1}, d: 3}, e: {f: {g: {h: 1}}}}
<baweaver> I want dot paths to all the values, such as: 'a.b.c' => 1
<Radar> Ah :)
jusa has joined #ruby
<baweaver> 'a.d' => 3, 'e.f.g.h' => 1
<baweaver> Oh yes, this one Radar :D
Rodya_ has quit [Ping timeout: 260 seconds]
<baweaver> (RE: relevance - instance.cpu.cores.1.load)
oliv_____ has joined #ruby
<baweaver> and guess what common metric formats OpenTSDB, Grafana, Kairos, and others use :P
<baweaver> The explosion has to do with taking a list of dot paths and making them into a tree
SemiNus has quit [Quit: Leaving]
<baweaver> The search is getting a dot path and returning the value(s) considering you can have a wildcard, '*' at any point in the query string
<PorcoRex> The dot path as a string?
<baweaver> yep
<PorcoRex> Interesting.
<baweaver> This is a harder problem
<baweaver> Very rarely will a Junior get it, Mid levels tend to struggle, Seniors tend to do somewhat decently
<PorcoRex> Well, there are some considerations, can the "*" replace a single word between dots or can it represent several?
<baweaver> single
<baweaver> I'm not _that_ mean
<PorcoRex> Haha.
<PorcoRex> So how does the problem go? Is it a method that takes two strings ans see if they match according to these rules?
<baweaver> because there are times where some of us have had to write library code to do something like that in JS for custom dashboards
<baweaver> Given a dotpath, 'a.b.c', get the value out of the hash {a: {b: {c: 1}}}
<baweaver> and I gradually make it more complicated
<PorcoRex> Ahh, I see.
<PorcoRex> So it is a game of strings, but also hashes.
oleo has quit [Quit: Verlassend]
<baweaver> one of the nastiest ones is the pruning one. Given a dotpath matcher, prune the tree to only contain matching nodes
<baweaver> yep
<baweaver> because nested JSON is an Ops constant nightmare
<PorcoRex> So, kind of related, are you just staring at these people trying to solve the problem or how does all this unfolds in the real world?
soloscshaw has joined #ruby
<gr33n7007h> wl.select { |w| 1.step(7).map { |n| hand.permutation(n).map(&:join) }.flatten.include?(w) }.max.chars.map { |c| [c, scores[c]] }.transpose
<gr33n7007h> thats my shitty attempt :(
oliv_____ has quit [Remote host closed the connection]
renchan has joined #ruby
<baweaver> I stare into their very souls with my cold dead black eyes PorcoRex
Vile` has quit [Ping timeout: 260 seconds]
<baweaver> if they look back I steal their soul
<PorcoRex> baweaver, I get it. It's not like you have a choice. :)
Bock has joined #ruby
mjuszczak has joined #ruby
<baweaver> More of I ask questions and try and guide them about a bit as they need it
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PorcoRex> Yeah, that sounds more like the real you.
jeffaustin81 has joined #ruby
<baweaver> The goal is to find out how much Ruby familiarity they have
<baweaver> If they start using for loops or using each for everything I tend to raise an eyebrow, things like that
xall has joined #ruby
* Nilium should start doing interviews where you can only use jq
<PorcoRex> baweaver, yes, definitely. Someone mentioned the other day here about the new threading in MRI. Did you have a chance to look into it, and if so, what are your thoughts about it?
<baweaver> Not quite
<baweaver> re: jq - I still need to read more into it
<Nilium> It's disturbingly useful.
<baweaver> I know basics at least
<baweaver> and Ruby has bindings for it
<Nilium> I really hate JSON, but it's still pretty good for just general text things that awk can't do as easily
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PorcoRex> baweaver, but wasn't JRuby a fully multithreaded Ruby impl.
<PorcoRex> baweaver, but wasn't JRuby a fully multithreaded Ruby impl.?
<gr33n7007h> o = JSON.parse(h.to_json, object_class: OpenStruct)
<baweaver> Not incredibly familiar with JRuby
<Nilium> Usually when people mention threading in ruby I think of rubinius
<PorcoRex> baweaver, neither am I, but I think they don't have MRI's GIL in place in their implementation.
<gr33n7007h> nah, it runs on the jvm
<PorcoRex> gr33n7007h, right, but I mean, there is no GIL, so the threads are not limited to one running at any given time.
<gr33n7007h> right
jeffaustin81 has joined #ruby
<PorcoRex> So this guy comes in last week with this link: http://olivierlacan.com/posts/concurrency-in-ruby-3-with-guilds/
gusrub has quit [Remote host closed the connection]
<PorcoRex> And am, it's pretty interesting and everything, but I think we will only see an improvement in concurrency way after Ruby3 is out. Like when gems and frameworks adapt for this and everything.
<gr33n7007h> yeah, them guilds looks promising
<gr33n7007h> isn't ruby brilliant
bonhoeffer_ has quit [Ping timeout: 240 seconds]
<gr33n7007h> PorcoRex: i believe you can actually release the GIL using a little Fiddle magic
xall has quit [Ping timeout: 260 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
<PorcoRex> gr33n7007h, really? That's interesting, but a big compromise for non experimental purposes.
<gr33n7007h> of course!
<PorcoRex> So um, threads, what are they good for? They are hard to think about and stuff. I'm sure there's a better solution that makes threads transparent to the naive developer.
<PorcoRex> Is there?
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
mjora7 has joined #ruby
muelleme_ has quit [Ping timeout: 260 seconds]
armyriad has quit [Quit: Leaving]
mim1k has joined #ruby
Rodya_ has joined #ruby
armyriad has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Immune has quit [Quit: ZzzZZZzzzz]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
jameser has joined #ruby
<Radar> what are threads good for? Concurrent processing of data.
anisha has joined #ruby
Fraeon has quit [Ping timeout: 255 seconds]
xall_ has joined #ruby
Fraeon has joined #ruby
lhambley has joined #ruby
cschneid_ has joined #ruby
lhambley has quit [Client Quit]
<PorcoRex> Radar, I know, what I mean is that threads are a low level concept that may be better modeled by something else on a high level language such as Ruby.
<PorcoRex> Something friendlier, less error prone.
lhambley has joined #ruby
lhambley has quit [Client Quit]
xall_ has quit [Ping timeout: 260 seconds]
<Disavowed> Software Transactional Memory!
jameser has quit [Read error: Connection reset by peer]
jameser has joined #ruby
KCmetro has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
nobodyzxc has joined #ruby
<Radar> PorcoRex: Oh you mean like processes in Erlang / Elixir where it's handled by the VM?
KCmetro has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
<PorcoRex> Radar, I don't know.
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Quit: Lost terminal]
Cohedrin has quit [Read error: Connection reset by peer]
esObe_ has joined #ruby
Cohedrin has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
Kug3lis has joined #ruby
Kug3lis has quit [Remote host closed the connection]
Kug3lis has joined #ruby
m1911 has joined #ruby
m1911 has quit [Excess Flood]
brent__ has joined #ruby
m1911 has joined #ruby
m1911 has quit [Excess Flood]
Kug3lis has quit [Remote host closed the connection]
Kug3lis has joined #ruby
jarred has quit [Quit: Connection closed for inactivity]
<foxmask> bonjello
brent__ has quit [Remote host closed the connection]
Kug3lis has quit [Ping timeout: 255 seconds]
muelleme_ has joined #ruby
ferr has joined #ruby
aufi has joined #ruby
bathtub_shark has quit [Quit: WeeChat 1.7.1]
bathtub_shark has joined #ruby
soloscshaw has quit [Ping timeout: 268 seconds]
muelleme_ has quit [Ping timeout: 260 seconds]
esObe_ has joined #ruby
esObe_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
esObe_ has joined #ruby
yogg-saron has joined #ruby
andikr has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
esObe_ has quit [Ping timeout: 260 seconds]
conta has joined #ruby
Lyubo1 has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
ta__ has joined #ruby
PorcoRex has quit [Remote host closed the connection]
andikr has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 260 seconds]
Lyubo1 has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
Cohedrin has joined #ruby
govg has joined #ruby
jusa has quit [Ping timeout: 268 seconds]
Doow has quit [Quit: Leaving]
oliv_____ has quit [Ping timeout: 252 seconds]
jusa has joined #ruby
nhhc has joined #ruby
BTRE has quit [Ping timeout: 258 seconds]
mjora7 has joined #ruby
andikr has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
KnownSyntax has quit [Ping timeout: 255 seconds]
nowhereman has quit [Ping timeout: 252 seconds]
meinside has quit [Quit: Connection closed for inactivity]
Vingador has joined #ruby
Vingador has quit [Remote host closed the connection]
muelleme_ has joined #ruby
jenrzzz has joined #ruby
cagomez has joined #ruby
raul782 has quit []
KnownSyntax has joined #ruby
Fraeon has quit [Ping timeout: 260 seconds]
Fraeon has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has quit [Ping timeout: 260 seconds]
lhambley has joined #ruby
esObe_ has joined #ruby
unpleased has joined #ruby
last_staff has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
andikr has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soloscshaw has joined #ruby
charliesome has joined #ruby
binaryplease has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
maths_nerd has joined #ruby
soloscshaw has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
Rodya_ has joined #ruby
nobodyzxc has quit [Quit: leaving]
nobodyzx1 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
fschuindt has quit [Quit: WeeChat 1.7]
nobodyzx1 has quit [Client Quit]
nobodyzxc has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
nobodyzxc has quit [Client Quit]
Cohedrin has quit [Read error: Connection reset by peer]
nobodyzxc has joined #ruby
Qchmqs has joined #ruby
nobodyzxc has quit [Client Quit]
nobodyzxc has joined #ruby
nobitanobi has joined #ruby
Cohedrin has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
muelleme_ has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
jenrzzz has joined #ruby
nobodyzxc has quit [Quit: leaving]
nobodyzxc has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
Aizuddin has joined #ruby
Aizuddin has left #ruby [#ruby]
jamesaxl has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rhyselsmore has joined #ruby
outreachdan has joined #ruby
mim1k has joined #ruby
unshadow has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 240 seconds]
binaryplease has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
unshadow has joined #ruby
outreachdan has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 255 seconds]
latemus has joined #ruby
patarr has quit [Ping timeout: 252 seconds]
latemus has quit [Quit: leaving]
hurricanehrndz has quit [Quit: Goodbye]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
hurricanehrndz has joined #ruby
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
nowhereman has joined #ruby
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
maattdd has joined #ruby
elsevero has joined #ruby
tvw has joined #ruby
patarr has joined #ruby
mim1k has joined #ruby
nowhereman has quit [Ping timeout: 255 seconds]
mark_66 has joined #ruby
mjora7 has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
soloscshaw has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
soloscshaw has quit [Ping timeout: 245 seconds]
Rodya_ has joined #ruby
ane has joined #ruby
aupadhye has joined #ruby
<ane> what is this idiom/pattern called? I find it ungoogleable https://gist.github.com/ane/d09e83cf287c2af4f548957142181097
Rodya_ has quit [Ping timeout: 245 seconds]
<ane> is it just Proc#call ?
<Burgestrand> ane `.()` calls `call`
<Burgestrand> ane so yes
jameser_ has joined #ruby
<ane> but do classes automatically implement whatever Proc does?
muelleme_ has joined #ruby
<Burgestrand> ana how do you figure?
blackmes1 has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<Burgestrand> ana there's no relationship with Proc in your code, `.(…)` is syntax sugar for `.call(…)`
aupadhye has quit [Ping timeout: 255 seconds]
<ane> right but I can't find the method definition for Class#call
<ane> in the ruby docs
<ane> nor in its parent classes
<Burgestrand> ana why would there be one?
<ane> why... wouldn't there be?
jameser has quit [Ping timeout: 252 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Burgestrand> ana in your code example you've defined call yourself, and then you call it, I don't see the strangeness
mim1k has joined #ruby
<ane> oh right it's just syntax
jsrn_ has joined #ruby
<ane> it doesn't exist
<ane> DUH!
<Burgestrand> ane :)
_bet0n has left #ruby [#ruby]
tomphp has joined #ruby
cschneid_ has joined #ruby
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme_ has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
alxgsv has joined #ruby
zel has joined #ruby
Beams has joined #ruby
zel is now known as Guest5094
<dminuoso> So when you have a method called createCreationCreator.. is that when you should stop with the abstractions?
<dminuoso> This project is about to get renamed to Inception..
jaruga has joined #ruby
<dminuoso> herwin: Heh. Java is truly the master of complicating things to justify ones overly oversized salary.
andrzejku has joined #ruby
aupadhye has joined #ruby
<andrzejku> hello
<dminuoso> In all fairness, when you get into the realm of functional programming higher order functions rarely stay at the first degree.
<dminuoso> And Ruby is almost perfect for FP except for the part its not.
<ineb> dminuoso: what do you mean by staying at the first degree?
flying has joined #ruby
<dminuoso> ineb: Well suddenly you want a function returning a function that returns a function..
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ineb> ah, ok
flopsec has joined #ruby
workmad3 has joined #ruby
lxsameer has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
sylario has joined #ruby
antgel has joined #ruby
schickung has joined #ruby
cfec0b8d has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
marr has joined #ruby
mices has joined #ruby
olivi____ has joined #ruby
dangerousdave has joined #ruby
rgtk has joined #ruby
olivi____ has quit [Read error: Connection reset by peer]
soloscshaw has joined #ruby
bigkevmcd has joined #ruby
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
beauby has quit [Ping timeout: 258 seconds]
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
soloscshaw has quit [Ping timeout: 245 seconds]
<Psy-Q> byebug overrides the variable name 'list' with a command that lists the code around the breakpoint. how can i get to the actual variable called 'list'?
Rodya_ has joined #ruby
<dminuoso> Psy-Q: Prefix the line with ; to disable the pry commands
<dminuoso> This is also documente, you might want to take a look at https://github.com/pry/pry/wiki/Command-system
olivi____ has joined #ruby
<axellj> I'm trying to set up for logstash plugin development but am having terrible environment problems.
<axellj> Part of that comes from being in a terrible environment - windows behind a corporate firewall - but the ruby ecosystem isn't being friendly to me
quobo has quit [Quit: Connection closed for inactivity]
<axellj> I was using jruby 1.7.28 and managed to wrangle various proxy settings to download bundler and the have bundle download the logstash dependencies. The final step there was setting HTTPS_PROXY env variable (in addition to HTTP_PROXY variable) to allow gem to call maven to fetch some java deps
Rodya_ has quit [Ping timeout: 246 seconds]
<axellj> then I had an issue when installing plugins that told me it couldn't cast Nil to string
<axellj> Scouring some blogs suggested this might be caused by having the wrong ruby environment, so I changed to JRuby 9.1.x
<Psy-Q> dminuoso: that might be for pry, but it doesn't seem to be the case for byebug :(
jusa has quit [Ping timeout: 260 seconds]
<axellj> Now setting HTTPS_PROXY doesn't solve the maven problem any more and I'm stuck at trying to get bundler to install the logstash dependencies. I'm at the end of my rope; I've got HTTP_PROXY env variable, HTTPS_PROXY env variable, JRUBY_OPTS with proxy variables, .gemrc also with proxy variables but it just refuses to download from maven
<dminuoso> Psy-Q: Oh. I read byebug and thought pry.
<dminuoso> Funny.
<Psy-Q> should i switch to pry? i just started using byebug because some other project used it, but this is my own, i can use pry instead
<axellj> .... anyone got an idea what I should try ext?
<dminuoso> Psy-Q: Well, the same thing for byebug. Its documented inside here: https://github.com/deivid-rodriguez/byebug/blob/master/GUIDE.md
<dminuoso> Psy-Q: Search for "conflict"
olivi____ has quit [Ping timeout: 260 seconds]
oli______ has joined #ruby
<Psy-Q> ah crap, i didn't see that. thank you
maattdd has quit [Ping timeout: 260 seconds]
oli______ has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
olivi____ has quit [Read error: Connection reset by peer]
oli______ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
nobodyzxc has quit [Quit: leaving]
Znow has joined #ruby
quiqua has joined #ruby
<Znow> Hey guys. Trying to get current time as milliseconds on repl.it and Windows, but both returns: 1493200408519 (0001-01-02​T17:28:40.041Z) - (Time.now.to_f * 1000).to_i ...... But if I do, "Time.now.to_s" I get the time just fine: "2017-04-26 11:54:01 +0200" - how can I convert this time to milliseconds (since epoch)?
dangerousdave has joined #ruby
oli______ has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
jusa has joined #ruby
<toretore> >> Time.now.to_i * 1000 # Znow
<ruby[bot]> toretore: # => 1493201021000 (https://eval.in/783122)
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has joined #ruby
<toretore> whoops
<toretore> >> (Time.now.to_f * 1000).to_i
<ruby[bot]> toretore: # => 1493201099379 (https://eval.in/783123)
<toretore> Znow: explain the problem in more detail
stamina has joined #ruby
charliesome has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
soloscshaw has joined #ruby
KCmetro has joined #ruby
guardianx has joined #ruby
minimalism has quit [Quit: minimalism]
soloscshaw has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
KCmetro has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Chagel has joined #ruby
ane has left #ruby [#ruby]
oliv_____ has joined #ruby
<Znow> toretore: That only returns 0001-01-02 according to http://tickstodatetime.com/
<Znow> I just need to get the current datetime in milliseconds, 18 digits
<Znow> toretore: 0001-01-02​T17:28:40.110Z to exact
<Znow> to be exact*
<toretore> what
<toretore> i think you're confused
AlexRussia has quit [Ping timeout: 260 seconds]
mices has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
<herwin> Znow: your original request included ``since epoch'', but that website you're trying to validate it with doesn't use epoch as base
impermanence has joined #ruby
__urux__ has joined #ruby
lxsameer has joined #ruby
impermanence has quit [Client Quit]
<Znow> toretore: I might be :p
<Znow> herwin: okay :P
<Znow> Ah okay, now it all came together, haha.
oliv_____ has quit [Ping timeout: 260 seconds]
<Znow> herwin/toretore: How can I then get time now in milliseconds, since 0001 ?
mikeiniowa has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
<herwin> probably something like Time.now - Time.new('0000-01-01')
<herwin> or whatever the constructor of Time accepts
<toretore> what do you mean 0001, the time of birth of the lord and savior jesus christ?
<toretore> i think we're dealing with a
<toretore> ?xy Znow
<ruby[bot]> Znow: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
olivi____ has joined #ruby
<Znow> herwin/toretore: Yeah I know, thanks for your time though
unshadow has quit [Ping timeout: 260 seconds]
unshadow has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
Znow has quit [Quit: Page closed]
sepp2k has joined #ruby
dasher^0_o has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 260 seconds]
andikr has quit [Remote host closed the connection]
cseder has quit [Quit: Textual IRC Client: www.textualapp.com]
oliv_____ has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
<Verity> why am I getting uninitialized constant packetfu:capture nameerror
<Verity> line 24
olivi____ has joined #ruby
<Verity> I shouldnt have waited until this morning, crap
rgtk has quit [Ping timeout: 245 seconds]
jackrandom has joined #ruby
<Verity> windows must be the problem
<Verity> erasing it now
blackmesa has quit [Ping timeout: 260 seconds]
soloscshaw has joined #ruby
stan has quit [Read error: Connection reset by peer]
olivi____ has quit [Ping timeout: 268 seconds]
stan has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
beauby has joined #ruby
aglorei has quit [Remote host closed the connection]
aglorei has joined #ruby
soloscshaw has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
nadir has joined #ruby
ldnunes has joined #ruby
andikr has joined #ruby
blackmesa has joined #ruby
nobitanobi has joined #ruby
charliesome has quit [Client Quit]
guardianx has quit [Remote host closed the connection]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has joined #ruby
oliv_____ has joined #ruby
schickung has quit [Quit: schickung]
bernd27 has joined #ruby
unpleased has quit [Quit: This computer has gone to sleep]
unpleased has joined #ruby
unpleased has quit [Client Quit]
jackrandom has quit [Ping timeout: 260 seconds]
petruff has joined #ruby
Pumukel has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Ping timeout: 268 seconds]
kristofferR has joined #ruby
cfec0b8d has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
mices has joined #ruby
bernd9000 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
elsevero has quit [Quit: elsevero]
Silthias1 has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
crazyphil has quit []
bernd27 has quit [Ping timeout: 240 seconds]
bernd27 has joined #ruby
millerti has joined #ruby
bernd9000 has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
oliv_____ has joined #ruby
bkxd has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
nanoz has joined #ruby
charliesome has joined #ruby
Arpanet69 has joined #ruby
Pumukel has quit [Remote host closed the connection]
schickung has joined #ruby
oliv_____ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 255 seconds]
olivi____ has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Arpanet69 has left #ruby [#ruby]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
soloscshaw has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
jenrzzz has joined #ruby
AlexRussia has joined #ruby
gnufied has joined #ruby
JeanCarloMachado has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
TvL2386 has joined #ruby
esObe__ has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
soloscshaw has quit [Ping timeout: 240 seconds]
maths_nerd has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
maths_nerd has joined #ruby
JeanCarloMachado has quit [Client Quit]
Rodya_ has joined #ruby
chouhoulis has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
olivi____ has quit [Remote host closed the connection]
fivmo has joined #ruby
fivmo has left #ruby [#ruby]
olivi____ has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
zapata has quit [Ping timeout: 260 seconds]
pupsicle has joined #ruby
marlinc has quit [Ping timeout: 252 seconds]
bernd27 has quit [Quit: Leaving]
cschneid_ has joined #ruby
last_staff has quit [Quit: last_staff]
olivi____ has quit [Ping timeout: 245 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackrandom has joined #ruby
jackrandom has quit [Remote host closed the connection]
olivi____ has joined #ruby
chouhoulis has joined #ruby
mirwin has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
_ts has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
zapata has joined #ruby
<Psy-Q> is there a json-rpc 2.0 client gem that supports named parameters? it seems jsonrpc-client doesn't
centrx has quit []
psychicist__ has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mirwin has left #ruby ["Leaving"]
antoniobeyah has quit [Quit: Connection closed for inactivity]
Satyajit has quit [Quit: https://fnordserver.eu]
flopsec has quit [Quit: https://fnordserver.eu]
Guest5094 has quit [Quit: https://fnordserver.eu]
alxgsv has quit [Write error: Connection reset by peer]
<Psy-Q> it seems Saorin might be able to handle it, but it doesn't support custom Faraday connections so can't use HTTP basic auth, it seems
olivi____ has quit [Ping timeout: 268 seconds]
elsevero has joined #ruby
andikr has quit [Remote host closed the connection]
tomphp has joined #ruby
vuoto has joined #ruby
Beams has quit [Quit: .]
nobodyzxc has joined #ruby
Beams has joined #ruby
ramortegui has joined #ruby
nobodyzxc has quit [Client Quit]
nobodyzxc has joined #ruby
nobodyzxc has quit [Client Quit]
_ts has left #ruby [#ruby]
nobodyzxc has joined #ruby
mices has quit [Quit: Leaving]
mices has joined #ruby
mices has quit [Changing host]
mices has joined #ruby
Dreamer3 has joined #ruby
Chagel has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
olivi____ has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
elsevero has quit [Quit: elsevero]
bsartek has joined #ruby
millerti has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
oli______ has joined #ruby
soloscshaw has joined #ruby
cdg has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
KCmetro has joined #ruby
soloscshaw has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
dangerousdave has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Quit: Closing time!]
Chagel has quit [Remote host closed the connection]
DLSteve has joined #ruby
charliesome has joined #ruby
vuoto has quit [Remote host closed the connection]
cschneid_ has joined #ruby
Guest49225 has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
Bounga has joined #ruby
rfoust has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
Guest10882 has joined #ruby
cdg_ has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
cdg_ has joined #ruby
tercenya has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 260 seconds]
tercenya has joined #ruby
gsilva has joined #ruby
jrafanie has joined #ruby
<Psy-Q> i just did it from scratch with plain Faraday instead
<Psy-Q> my error handling is shite but it works
mostlybadfly has joined #ruby
shinnya has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oli______ has quit [Remote host closed the connection]
olivi____ has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
jusa has joined #ruby
mustmodify has joined #ruby
HoierM has joined #ruby
Xiti has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 268 seconds]
yokel has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
maths_nerd has quit [Quit: Leaving]
soloscshaw has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
soloscshaw has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
axellj has quit [Ping timeout: 252 seconds]
__Yiota has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
pavelz has quit [Changing host]
pavelz has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
theunraveler has joined #ruby
axel_ has joined #ruby
axel_ is now known as axellj
Guest10882 is now known as CrazEd
patarr has joined #ruby
CrazEd is now known as Guest18683
oleo has joined #ruby
oleo has joined #ruby
oleo has quit [Changing host]
beauby has quit [Ping timeout: 255 seconds]
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
duckpuppy has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
dionysus69 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
marcdel has joined #ruby
unshadow has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
bsartek has joined #ruby
gr33n7007h is now known as al2o3-cr
zzxc_ has quit [Ping timeout: 246 seconds]
kristofferR has joined #ruby
beauby has joined #ruby
centrx has quit []
marcdel has quit [Ping timeout: 260 seconds]
ferr has quit [Quit: WeeChat 1.7]
Roa has quit [Ping timeout: 264 seconds]
stamina has quit [Quit: WeeChat 1.7.1]
schickung has quit [Quit: schickung]
petruff has quit [Ping timeout: 252 seconds]
KCmetro has quit [Remote host closed the connection]
KCmetro has joined #ruby
balazs has quit [Remote host closed the connection]
psychicist__ has quit [Quit: Lost terminal]
xall has joined #ruby
skweek has joined #ruby
KCmetro has quit [Read error: Connection reset by peer]
KCmetro has joined #ruby
Beams has quit [Quit: .]
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
anisha has quit [Quit: Leaving]
<hurricanehrndz> havenwood: Awesome, it's good to hear
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
Roa has joined #ruby
unshadow has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
cbyrda has joined #ruby
Qchmqs is now known as webindz
webindz is now known as indzign
indzign is now known as qchmqs
qchmqs has quit [Quit: Konversation terminated!]
qchmqs has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unshadow has quit [Quit: leaving]
choke has joined #ruby
cfec0b8d has joined #ruby
spectra has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
soloscshaw has joined #ruby
zzxc has joined #ruby
Beams has joined #ruby
soloscshaw has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
spectra has joined #ruby
flying has quit []
patarr_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schickung has joined #ruby
__urux__ has quit [Quit: __urux__]
xall has quit [Ping timeout: 255 seconds]
patarr has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Ping timeout: 260 seconds]
zzxc has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
brent__ has joined #ruby
Guest18683 is now known as CrazEd
zzxc has joined #ruby
CrazEd is now known as Guest13136
conta has quit [Ping timeout: 240 seconds]
yogg-saron has quit [Remote host closed the connection]
theunraveler has quit [Remote host closed the connection]
qchmqs has quit [Ping timeout: 240 seconds]
dcunit3d has joined #ruby
synthroid has joined #ruby
Gran_Mal has joined #ruby
quiqua has quit [Quit: Textual IRC Client: www.textualapp.com]
Pumukel has joined #ruby
nobitanobi has quit [Remote host closed the connection]
mark_66 has quit [Quit: Leaving.]
aufi has quit [Quit: Leaving]
kristofferR has joined #ruby
jrafanie has joined #ruby
xall has joined #ruby
__urux__ has joined #ruby
beauby has joined #ruby
[Butch] has joined #ruby
unshadow has joined #ruby
rippa has joined #ruby
jsrn_ has quit [Quit: Leaving]
amclain has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
__Yiota has joined #ruby
schickung has quit [Quit: schickung]
postmodern has joined #ruby
kristofferR has joined #ruby
kristofferR has quit [Client Quit]
Xiti has joined #ruby
quobo has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has quit [Remote host closed the connection]
theunraveler has joined #ruby
__Yiota has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
skweek has joined #ruby
stupidsenpai has joined #ruby
mdw has joined #ruby
imightbestupid12 has joined #ruby
olivi____ has quit [Remote host closed the connection]
soloscshaw has joined #ruby
Rodya_ has joined #ruby
synthroi_ has joined #ruby
jenrzzz has joined #ruby
cdg has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
faces has quit [Ping timeout: 260 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
harfangk has joined #ruby
mdw has joined #ruby
soloscshaw has quit [Ping timeout: 268 seconds]
mdw has quit [Client Quit]
mdw has joined #ruby
xall has quit [Ping timeout: 245 seconds]
tfitts has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
mdw has quit [Client Quit]
esObe__ has quit [Remote host closed the connection]
esObe_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
patarr_ has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
muelleme_ has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
Guest13136 is now known as CrazEd
CrazEd is now known as Guest17994
BTRE has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pilne has joined #ruby
Beams has quit [Quit: .]
jaruga has quit [Quit: jaruga]
tercenya has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tercenya has joined #ruby
mustmodify has left #ruby [#ruby]
esObe_ has joined #ruby
gusrub has quit []
ResidentBiscuit has quit [Ping timeout: 260 seconds]
binaryplease has joined #ruby
jrafanie has joined #ruby
muelleme_ has quit [Ping timeout: 240 seconds]
jrm has quit [Ping timeout: 260 seconds]
imightbestupid12 has quit [K-Lined]
stupidsenpai has quit [K-Lined]
kristofferR has joined #ruby
mariusm has joined #ruby
gusrub has joined #ruby
jrm has joined #ruby
<al2o3-cr> does anyone know if typhoeus allows use of a socks5 proxy?
mariusm has left #ruby [#ruby]
cdg_ has joined #ruby
<brent__> question
RobertBirnie has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
<brent__> i have a method that returns a hash, and want to override it to add another variable to the hash, can you call def method; super.merge(new_options);end?
<havenwood> brent__: yes
<brent__> the parent method i'm trying to override is in a method i'm including
<havenwood> >> class X; def x; {aim: true} end end; class Y < X; def x; super.merge({indeed: true}) end end; Y.new.x # brent__
<ruby[bot]> havenwood: # => {:aim=>true, :indeed=>true} (https://eval.in/783338)
<brent__> sorry, module
<havenwood> brent__: Show your code in a gist?
<brent__> is super available from a module havenwood
<brent__> or only class hierarchy?
cdg has quit [Ping timeout: 268 seconds]
polishdub has joined #ruby
<baweaver> Well SOCKS4 at least I found al2o3-cr - https://github.com/typhoeus/typhoeus/issues/81#issuecomment-3700585
<baweaver> still seeing if I see 5 show up
_ht has left #ruby [#ruby]
cdg_ has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has joined #ruby
__Yiota has joined #ruby
<Gran_Mal> When creating a suggester, do I need to define all of the suggested terms for the index?
<baweaver> Gran_Mal: clarify that
ResidentBiscuit has joined #ruby
<havenwood> >> module X; def x; {aim: true} end end; class Y; include X; def x; super.merge({indeed: true}) end end; Y.new.x # brent__
<ruby[bot]> havenwood: # => {:aim=>true, :indeed=>true} (https://eval.in/783339)
<al2o3-cr> baweaver: awesome, socks4 will do.
<baweaver> see the end of that thread
<baweaver> I think 5 was mentioned there
<baweaver> might as well try it and see if it behaves
cdg has joined #ruby
<al2o3-cr> yep, just reading that bit, seems to me it does support 5.
<al2o3-cr> i'll give it a shot
<havenwood> >> module X; def x; super.merge({aim: true}) end end; class Y; prepend X; def x; {indeed: true} end end; Y.new.x # brent__ see also #prepend
<ruby[bot]> havenwood: # => {:indeed=>true, :aim=>true} (https://eval.in/783340)
<Gran_Mal> baweaver: Do I need to add a list of words that should be suggested for a specific term, if the user enters the term?
<baweaver> Using what exactly?
<baweaver> Rails, webforms, something else?
<baweaver> and suggestions based on related products, spellings, or something else?
<Gran_Mal> Well, I'm using kibana right now
<baweaver> It's really rather a vague question
<baweaver> You might want to ask in a kibana channel then
<baweaver> because this is probably heavily contextual to their environment
<Gran_Mal> I'm trying to build a completion suggester ... I have a street property in the doc ... It's type: text ... I want to be able to setup an autocomplete. I'm just unsure how the suggesters work
<baweaver> Yeah, I'd ask Kibana
<Gran_Mal> Whoops, wrong channel ... My bad :/
mikecmpbll has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
SeepingN has joined #ruby
soloscshaw has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Guest96_ has joined #ruby
Bounga has joined #ruby
<brent__> thanks havenwood
Guest96 has quit [Remote host closed the connection]
<brent__> trying to refactor this code base
gsilva has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
soloscshaw has quit [Ping timeout: 240 seconds]
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
renchan has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 260 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
Cohedrin has joined #ruby
marxarelli has joined #ruby
cdg has quit [Remote host closed the connection]
Bounga has quit [Ping timeout: 255 seconds]
skweek has quit [Ping timeout: 260 seconds]
Guest17994 is now known as CrazEd
CrazEd is now known as Guest24524
muelleme_ has joined #ruby
riddley has joined #ruby
<riddley> Hi folks, I was wondering if anyone is willing to have an OO design discussion with me in PMs... I have a problem that I'm not sure how to handle and it's likely quite lengthy to type out
patarr has joined #ruby
<SeepingN> uhm wow, sorry, so NOT the right channel
<riddley> risky click of the day
<SeepingN> heh ok it's not THAT bad
binaryplease has quit [Ping timeout: 260 seconds]
nowhereman has joined #ruby
<baweaver> riddley: I'd just ask questions here honestly
<baweaver> you'll get more answers
<baweaver> and it's not the first super drawn out conversation we've had here ;)
aupadhye has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
jackrandom has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
soahccc has joined #ruby
Bock has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
jusa has joined #ruby
__Yiota has joined #ruby
hobodave has joined #ruby
synthroi_ has quit [Ping timeout: 255 seconds]
mjuszczak has quit []
ramortegui has quit [Quit: Ex-Chat]
oliv_____ has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
xall has joined #ruby
mjuszczak has joined #ruby
mustmodify has joined #ruby
RobertBirnie has quit [Ping timeout: 258 seconds]
<mustmodify> If I need to calculate % change, should I put that in Math? Or like ... Math::PercentChange.for(a, b)? What's an appropriate interface? Right now it's in a view helper. Which is fine except it's harder to test.
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
universa1 has quit [Read error: Connection reset by peer]
sepp2k has quit [Client Quit]
Guest96_ has quit [Remote host closed the connection]
universa1 has joined #ruby
Guest96 has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
cdg has joined #ruby
RobertBirnie has joined #ruby
cfec0b8d has joined #ruby
soloscshaw has joined #ruby
cbyrda has quit [Remote host closed the connection]
minimalism has joined #ruby
funnel has quit [Remote host closed the connection]
funnel has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<Verity> I was supposed to use raw byte arrays for the arp packets
<Verity> but I didnt want to, so I used packetfu and ruby
<Verity> this might not fly
<riddley> Ok. here goes. I have an app where I'm reading a subset of columns from a database. Each of the columns is a snapshot of information and each of the rows represents a "heartbeat" for other stuff. Users can select which fields of the heartbeat they want to view and many of the fields have "classifiers" that say good/bad/warning as well as possibly having some derived data that currently ends up in the tooltip.
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
<riddley> The app is currently written in a horrible way (by me) and I'd like to make it more Sandy Metz OO style. I've thought about several ways to approach these fields... each as their own HeartBeat object, but that gets messy fast. How do I know what classifier to use? So then I went down the inheritance route and found problems there too.
ledestin has joined #ruby
lagweezle_away is now known as lagweezle
al2o3-cr is now known as yarb
<riddley> I forgot to mention that currently some of the classification depends upon a change from the previous value or an excessive time between values.
<riddley> there are just under 100 columns
<riddley> so I'm hoping to get some code re-use
yarb is now known as gr33n7007h
quobo has quit [Quit: Connection closed for inactivity]
mices has quit [Ping timeout: 260 seconds]
<Verity> lol
rakm has joined #ruby
gusrub has quit [Ping timeout: 260 seconds]
muelleme_ has quit [Ping timeout: 260 seconds]
muelleme_ has joined #ruby
gusrub has joined #ruby
oliv_____ has quit [Remote host closed the connection]
soloscshaw has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
muelleme_ has quit [Client Quit]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
<hxegon> whoops, thought I was in offtopic
mjuszczak has quit []
futilegames has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
Eiam has joined #ruby
<dionysus69> whats the good place to start playing with what programming AI is
<dionysus69> if its in ruby, great
JoshS has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
<dminuoso> dionysus69, you mean like #lisp or #prolog ?
thisguy123 has joined #ruby
<dionysus69> hmm ok I guess I ll google those :D
<dionysus69> heard of lisp but never knew what it's for
dmtd has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
Didac has quit [Changing host]
Didac has joined #ruby
dcunit3d has joined #ruby
<riddley> ok then :)
mjuszczak has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synthroi_ has joined #ruby
patarr has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
lhambley has joined #ruby
unshadow has quit [Ping timeout: 260 seconds]
VeryBewitching has joined #ruby
bernd27 has joined #ruby
jackrandom has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
xall has quit [Ping timeout: 260 seconds]
nobodyzxc has quit [Quit: leaving]
soloscshaw has joined #ruby
rkellermeyer has joined #ruby
klaas has joined #ruby
<dminuoso> dionysus69, just know that I would only recommend those for the learning experience, not that you would end up writing a better AI with them.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
JoshS has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
pupsicle has quit [Quit: pupsicle]
futilegames has quit [Quit: futilegames]
jenrzzz has quit [Ping timeout: 260 seconds]
umdstu has quit [Remote host closed the connection]
KCmetro_ has joined #ruby
KCmetro has quit [Read error: Connection reset by peer]
mochiyoda has joined #ruby
patteh_ has quit [Remote host closed the connection]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
synthroid has joined #ruby
patteh has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
synthroi_ has quit [Ping timeout: 258 seconds]
JoshS has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
__urux__ has left #ruby [#ruby]
soloscshaw has quit [Ping timeout: 252 seconds]
Bounga has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 260 seconds]
futilegames has joined #ruby
lightstalker has joined #ruby
dc4 has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
dcunit3d has joined #ruby
Bounga has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
dc4 has quit [Ping timeout: 240 seconds]
riddley has left #ruby ["Leaving"]
nobitanobi has joined #ruby
cdg has joined #ruby
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
shinnya has joined #ruby
jusa has quit [Ping timeout: 268 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
gnufied has joined #ruby
futilegames has quit [Quit: futilegames]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has quit []
dcunit3d has joined #ruby
kristofferR has quit [Remote host closed the connection]
maattdd has joined #ruby
ResidentBiscuit has quit [Ping timeout: 260 seconds]
Bounga` has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
oliv_____ has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
oliv_____ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jrafanie has joined #ruby
Bounga` has quit [Ping timeout: 240 seconds]
Bounga` has joined #ruby
lxsameer has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
Bounga` has quit [Ping timeout: 252 seconds]
rkazak has joined #ruby
mim1k has joined #ruby
rkazak has quit [Client Quit]
AndrewIsHere has joined #ruby
gnufied has quit [Quit: Leaving]
pupsicle has joined #ruby
dcunit3d has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
dcunit3d has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
cpaterson has joined #ruby
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soloscshaw has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
soloscshaw has quit [Ping timeout: 258 seconds]
mgorbach has quit [Remote host closed the connection]
synthroi_ has joined #ruby
mim1k has joined #ruby
mices has joined #ruby
synthroid has quit [Ping timeout: 255 seconds]
bernd27 has quit [Remote host closed the connection]
mgorbach has joined #ruby
JoshS has joined #ruby
synthroi_ has quit []
rakm has joined #ruby
t-recx has quit [Ping timeout: 260 seconds]
boombox_ has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
tomphp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
brent__ has quit [Remote host closed the connection]
Fin1te has joined #ruby
lagweezle is now known as lagweezle_away
ForeignBiscuit has joined #ruby
mices has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
duckpuppy has quit [Ping timeout: 268 seconds]
<machty> man, getting by butt kicked
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<machty> I'm using IO.pipe and a separate thread to read chunks from HTTP and write to the pipe, and i'm passing the read side to CSV.new(rd)
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
<machty> but the csv immediately thinks the it has reached eof
cpaterson has quit [Quit: cpaterson]
<machty> and doesn't parse/produce any rows
<machty> rd.gets works just fine
ResidentBiscuit has quit [Ping timeout: 240 seconds]
<machty> each_line and variants work just fine, but CSV is barfing. wtf could be the issue?
gusrub has quit [Remote host closed the connection]
twistedpixels_ has quit [Ping timeout: 240 seconds]
boombox_ has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
oliv_____ has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
oliv_____ has joined #ruby
cdg has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
twistedpixels_ has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
gusrub has joined #ruby
mim1k has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has quit [Ping timeout: 240 seconds]
twistedpixels_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
toretore has quit [Ping timeout: 240 seconds]
<machty> nvm, i'm just not going to use CSV.new but do a piecemeal CSV.parse
<machty> toooooo much magic
twistedpixels_ has joined #ruby
esObe__ has joined #ruby
esObe_ has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 268 seconds]
theunraveler has quit []
workmad3 has joined #ruby
swills has quit [Ping timeout: 260 seconds]
swills has joined #ruby
pupsicle has quit [Quit: pupsicle]
workmad3 has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
twistedpixels_ has quit [Ping timeout: 255 seconds]
jrafanie has quit [Ping timeout: 240 seconds]
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
duderonomy has joined #ruby
soloscshaw has joined #ruby
lagweezle_away is now known as lagweezle
twistedpixels_ has joined #ruby
auv has quit [K-Lined]
mim1k has quit [Ping timeout: 240 seconds]
soloscshaw has quit [Ping timeout: 258 seconds]
millerti has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
jusa has joined #ruby
griff has joined #ruby
esObe__ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
twistedpixels_ has quit [Ping timeout: 252 seconds]
auv has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 260 seconds]
Fin1te has quit [Quit: Later, tater.]
esObe_ has joined #ruby
fschuindt has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<fschuindt> What do I need to do in order to rubydoc.info parse my doc with markdown? It parsered my README.md but not my source files: http://www.rubydoc.info/gems/firebase_id_token/FirebaseIdToken/Certificates
esObe_ has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
cpaterson has joined #ruby
dcunit3d has quit [Ping timeout: 258 seconds]
marlinc has joined #ruby
olivi____ has joined #ruby
twistedpixels_ has joined #ruby
lagweezle is now known as lagweezle_away
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
mices has joined #ruby
biberu has quit []
ForeignBiscuit has quit [Ping timeout: 260 seconds]
dlitvak has quit [Quit: Connection closed for inactivity]
rhyselsmore has joined #ruby
beauby has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
Silthias1 has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Silthias has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
mices has quit [Ping timeout: 268 seconds]
kristofferR has joined #ruby
rgr_ has quit [Ping timeout: 260 seconds]
Klumben has quit [Ping timeout: 246 seconds]
alem0lars has quit [Ping timeout: 246 seconds]
kristofferR has quit [Client Quit]
soloscshaw has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
gsilva has joined #ruby
soloscshaw has quit [Ping timeout: 252 seconds]
Klumben has joined #ruby
KCmetro_ has quit [Remote host closed the connection]
binaryplease has joined #ruby
polishdub has quit [Quit: Leaving]
KCmetro has joined #ruby
esObe_ has joined #ruby
sfdebug has joined #ruby
<sfdebug> hi, does anyone know what does this means?
<sfdebug> root@jenkins-desktop:/var/railselector# thin
<sfdebug> /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find thin (>= 0) amongst [arel-8.0.0, arel-5.0.1.20140414130214, builder-3.2.3, builder-3.2.2, bundler-1.14.6, bundler-unload-1.0.2, cld-0.7.0, coffee-script-source-1.12.2, coffee-script-source-1.7.1, daemons-1.2.4, daemons-1.1.9, did_you_mean-1.1.2, did_you_mean-1.1.0, erubis-2.7.0, eventmachine-1.0.4, execjs-2.2.1, executable-hooks-1.3.2, fast-stemmer-1.0.2, ffi-1.9.18, ffi-1.9.3, gem
<sfdebug> -wrappers-1.2.7, god-0.13.4, hike-1.2.3, i18n-0.6.11, ione-1.2.4, log4r-1.1.10, mime-types-1.25.1, minitest-5.10.1, minitest-5.4.0, multi_json-1.10.1, net-telnet-0.1.1, polyglot-0.3.5, power_assert-0.4.1, rack-1.5.2, rake-12.0.0, rake-10.3.2, ruby-stemmer-0.9.6, ruby-stemmer-0.9.3, rubygems-bundler-1.4.4, rvm-1.11.3.9, sass-3.2.19, simple_uuid-0.4.0, spring-1.1.3, sqlite3-1.3.9, test-unit-3.2.3, thor-0.19.1, thread_safe-0.3.4, thrift-0.8.0, tilt-1.4.1, xmlr
<sfdebug> pc-0.2.1, yajl-ruby-1.3.0, yard-0.9.9, yard-0.8.7.4] (Gem::LoadError)
<sfdebug> from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
rkazak has joined #ruby
<sfdebug> from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
<sfdebug> from /usr/local/bin/thin:22:in `<main>'
<sfdebug> root@jenkins-desktop:/var/railselector#
Rodya_ has quit [Remote host closed the connection]
KCmetro has quit [Read error: Connection reset by peer]
maattdd has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 258 seconds]
xenops has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
cschneid_ has quit [Remote host closed the connection]
<havenwood> sfdebug: Please use a gist and give us a link instead of pasting multiple lines.
gusrub has joined #ruby
<sfdebug> havenwood, sorry
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<havenwood> sfdebug: Is thin in your Gemfile?
<havenwood> sfdebug: If it isn't, add `gem 'thin'` to your Gemfile, run `bundle`, then try?: bundle exec thin
<sfdebug> i dont know, i not a ruby programming, i'm trying to run a program a friend coded here on work..
<havenwood> sfdebug: Is there a file in the project's root directory named?: Gemfile
dionysus69 has quit [Ping timeout: 268 seconds]
akkad has quit [Quit: Emacs must have died]
<sfdebug> yes
<havenwood> sfdebug: Does it have the line?: gem 'thin'
<sfdebug> yep, have it...
<havenwood> sfdebug: Run: bundle
esObe_ has quit [Remote host closed the connection]
<havenwood> sfdebug: If you don't have Bundler installed, first run: gem install bundler
<sfdebug> gave an error...
<havenwood> what error?
<havenwood> sfdebug: If the error is related to Bundler missing: gem install bundler
griff has quit [Quit: Textual IRC Client: www.textualapp.com]
gusrub has quit [Ping timeout: 260 seconds]
<havenwood> sfdebug: That version of the json gem probably isn't compatible with your newer Ruby.
<havenwood> sfdebug: bundle update json
<sfdebug> root@jenkins-desktop:/var/railselector# ruby --version
<sfdebug> ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
<havenwood> sfdebug: you might want to try updating ^ the json gem in your bundle
<sfdebug> gave other error
<havenwood> what's the new error?
<sfdebug> when running `bundle update json`
<havenwood> (this is the fun of getting apps with older deps working on newer rubies)
mices has joined #ruby
<havenwood> sfdebug: What os/distro are you on?
<sfdebug> ubuntu 14.04
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
<havenwood> sfdebug: sudo apt-get install ruby-dev
<havenwood> sfdebug: Make sure you have ruby-dev package so you can build extensions.
<sfdebug> "ruby-dev is already the newest version."
<havenwood> sfdebug: kk
<havenwood> sfdebug: is make installed?
<sfdebug> yes
<havenwood> sfdebug: You might want to try updating sprockets in your bundle as well: bundle update sprockets
<sfdebug> error
<havenwood> sfdebug: Looks like json never got its version bumped
olivi____ has quit [Remote host closed the connection]
mgorbach has quit [Remote host closed the connection]
olivi____ has joined #ruby
choke has joined #ruby
akkad has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
<havenwood> sfdebug: You might want to use a bit older Ruby if you're working with a legacy app whose deps have not been recently updated.
<sfdebug> how do i do that?
<sfdebug> using rvm?
<havenwood> sfdebug: Or prepare to update the gems that need updating.
<havenwood> sfdebug: Sure, that works: rvm install ruby 2.2
choke has quit [Client Quit]
<sfdebug> let me see
mgorbach has joined #ruby
<sfdebug> another thin error
<sfdebug> with other packages..
<sfdebug> less packages than before
cdg has joined #ruby
gusrub has joined #ruby
olivi____ has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
<sfdebug> havenwood, i tried to install the gem packages that were mentioned:
<sfdebug> but when running thin it gives the same error, telling something about that gem packages...
<havenwood> sfdebug: Try: bundle && bundle exec thin
<sfdebug> let me see
pilne has left #ruby ["Leaving!"]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sfdebug> worked
<sfdebug> i have to run thin with bundle exec?
<havenwood> sfdebug: Actually, since you're on RVM you can probably now get away with omitting it, since rubygems-bundler gem will do that for you.
<sfdebug> without gave a big error...
<havenwood> sfdebug: prefixing `bundle exec` run thin in "the context of your bundle", meaning using the exact versions specified in the Gemfile.lock
jhack has joined #ruby
<sfdebug> the program runs but dont work... kakaka
<sfdebug> =~~
cdg has quit [Remote host closed the connection]
olivi____ has joined #ruby
soloscshaw has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
soloscshaw has quit [Ping timeout: 240 seconds]
flying has joined #ruby
Rodya_ has joined #ruby
marr has quit [Remote host closed the connection]
jusa has joined #ruby
alem0lars has joined #ruby
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
<Verity> why not write all the things in ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
jamesaxl has joined #ruby
ruby-lang322 has joined #ruby
ruby-lang322 has quit [Client Quit]