<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
<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
<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>
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
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.
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]
<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
<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?
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-02T17: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)?
<Znow>
I just need to get the current datetime in milliseconds, 18 digits
<Znow>
toretore: 0001-01-02T17: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]
__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__
<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]
<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
<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]
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]