dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
<Gx4>
csmrfx > I already know REST pretty well by doing Angular Apps + Node.js
oo_ has joined #ruby
yubrew has joined #ruby
Nilium_ has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
Nilium_ is now known as Nilium
dangerousdave has quit [Read error: Connection reset by peer]
ecksit has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
brianherman has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
<csmrfx>
Edelwin: you mean http is going to die?
<csmrfx>
I think you have some explaining to do
<csmrfx>
Gx4: ok, well what is it you are looking for?
vim_shim has joined #ruby
<vim_shim>
What's it called when inside of a class you create a class method that instantiates a new instance and then peforms a method?
crazymykl has quit [Remote host closed the connection]
<vim_shim>
So that you can get around calling new from the outside.
dangerousdave has quit [Ping timeout: 244 seconds]
dangerou_ has joined #ruby
wallerdev has joined #ruby
crazymykl has joined #ruby
<vim_shim>
Thumbnailer.new(post).fetch vs Thumbnailer.fetch(post)
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
lyanchih has joined #ruby
lyanchih has quit [Client Quit]
dreamchaser has joined #ruby
noop has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
brianherman has quit [Quit: Leaving]
GriffinHeart has joined #ruby
tesuji has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
senayar has joined #ruby
Nilium has joined #ruby
Nilium has quit [Remote host closed the connection]
rgrinberg has quit [Quit: Leaving.]
toastynerd has joined #ruby
senayar has quit [Ping timeout: 272 seconds]
aspires has quit []
tacos1de has quit [Ping timeout: 264 seconds]
tacos1de has joined #ruby
Nilium has joined #ruby
Nilium_ has joined #ruby
Nilium_ has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
vim_shim has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
mechanicles has quit [Remote host closed the connection]
andrewlio has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
pskosinski has joined #ruby
rgrinberg has joined #ruby
JasmeetQA1 has quit [Quit: Leaving.]
CorpusCallosum has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
yubrew has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
aniM has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
bsutt_ has left #ruby [#ruby]
oo_ has quit [Remote host closed the connection]
yakko has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
Shidash has joined #ruby
aniM has quit [Ping timeout: 240 seconds]
hgl has quit [Ping timeout: 244 seconds]
pmyjavec has joined #ruby
yeticry has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
wildroman2 has joined #ruby
dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dreamchaser has joined #ruby
razrunelord has joined #ruby
vifino has joined #ruby
razrunelord has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
Zebroid has joined #ruby
senayar has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
krz has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
krz has quit [Client Quit]
dreamchaser has quit [Ping timeout: 264 seconds]
ulluh has joined #ruby
carraroj has joined #ruby
shvelo has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
rgrinberg has quit [Quit: Leaving.]
dangerousdave has joined #ruby
Takle has joined #ruby
sigurding has quit [Quit: sigurding]
wildroman2 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Zebroid has quit [Remote host closed the connection]
yubrew has joined #ruby
mechanicles has joined #ruby
lolmaus has joined #ruby
mechanicles has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
mechanicles has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
everett has quit [Ping timeout: 240 seconds]
lolmaus has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
lolmaus has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
postmodern has quit [Quit: Leaving]
SCHAAP137 has quit [Remote host closed the connection]
mijicd has joined #ruby
everett has joined #ruby
ulluh has quit [Quit: Lost terminal]
pacMakaveli has joined #ruby
jarray52 has left #ruby [#ruby]
Deele has joined #ruby
moritzs has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
noop has quit [Ping timeout: 240 seconds]
noop has joined #ruby
davedev24_ has joined #ruby
Hanmac has joined #ruby
thesheff17 has joined #ruby
mechanicles has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 272 seconds]
Gadgetoid has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
andrewlio has quit [Quit: Leaving.]
xcv has joined #ruby
Gadgetoid has joined #ruby
xcv_ has joined #ruby
lele has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
xcv has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
ClarusCogitatio_ has quit [Ping timeout: 240 seconds]
phoo1234567 has joined #ruby
ClarusCogitatio has joined #ruby
Xeago has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
Vivekananda has quit [Quit: Ex-Chat]
GriffinHeart has joined #ruby
Notte has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
pacMakaveli has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
tvw has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
CorpusCallosum has joined #ruby
jottr has joined #ruby
yubrew has joined #ruby
marr has joined #ruby
kilk_ has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
Photism has joined #ruby
mikecmpbll has quit [Quit: ciao.]
timonv has joined #ruby
jwieringa has joined #ruby
senayar has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
Notte has joined #ruby
alem0lars has quit [Quit: Going AFK...]
sepp2k has joined #ruby
jwieringa has left #ruby [#ruby]
andrewlio has joined #ruby
alem0lars has joined #ruby
<bahar>
morning guys. i read in a blog that once you start building more than just small apps and start having to deal with authentication, sinatra outlives its usefulness. is that true? is sinatra suited to more complex apps? would another framework like padrino be better for those types of apps? (i've been learning rails and am looking for something else to learn)
gzl has quit [Ping timeout: 240 seconds]
aniM has joined #ruby
gzl has joined #ruby
Xeago has quit [Remote host closed the connection]
<mozzarella>
yes
hpoydar has joined #ruby
Hobogrammer has joined #ruby
aniM has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
icebourg has quit [Excess Flood]
maximski has quit []
tharindu has quit [Ping timeout: 245 seconds]
icebourg has joined #ruby
tvw has quit []
hpoydar has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
Alina-malina has joined #ruby
lewix has joined #ruby
carraroj has joined #ruby
jottr_ has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
LadyRainicorn has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
tus has joined #ruby
carraroj has quit [Ping timeout: 244 seconds]
prdx has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
ponga has joined #ruby
<ponga>
shevy are you there
lord4163 has quit [Ping timeout: 245 seconds]
tus has quit []
lord4163 has joined #ruby
noop has quit [Ping timeout: 245 seconds]
lw has joined #ruby
Hanmac1 has joined #ruby
mercerist has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
oliver3 has joined #ruby
SCHAAP137 has joined #ruby
lewix has quit [Remote host closed the connection]
prdx has joined #ruby
mityaz has quit [Quit: See ya!]
oo_ has joined #ruby
lxsameer has quit [Quit: Leaving]
suffice has quit [Remote host closed the connection]
chipotle has joined #ruby
Gx4 has quit [Ping timeout: 244 seconds]
SCHAAP137 has quit [Remote host closed the connection]
fantazo has joined #ruby
wildroman2 has quit []
shevy has quit [Ping timeout: 244 seconds]
thisirs has joined #ruby
shevy has joined #ruby
alem0lars has quit [Quit: Going AFK...]
teddyp1cker has joined #ruby
cashnguns has joined #ruby
timonv_ has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
thisirs has quit [Ping timeout: 255 seconds]
Hanmac has joined #ruby
GriffinHeart has joined #ruby
spider-mario has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
zybi1 has joined #ruby
xcv_ has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 264 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
shevy has quit [Ping timeout: 272 seconds]
shevy has joined #ruby
SCHAAP137 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
CorpusCallosum has quit [Quit: Computer has gone to sleep.]
jhass|off is now known as jhass
yubrew has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
eka has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
smogg has joined #ruby
Zamerick has joined #ruby
thisirs has joined #ruby
jhass is now known as jhass|off
jhass|off is now known as jhass
zybi1 has quit [Ping timeout: 272 seconds]
hakunin_ is now known as hakunin
centrx has joined #ruby
shevy has joined #ruby
smogg has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
whitedawg has joined #ruby
smogg has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
<smogg>
Hello. Not sure if that’s a #roby question, but I’m trying to setup a simple contact form on a static, heroku-hosted, Rack app with SendGrid. Here’s my setup for the Mail: http://pastebin.com/pdmhUSD0 - is there something wrong with that?
<centrx>
smogg, Looks okay. What's wrong with it? There might be some Heroku/SendGrid specific things to do with e-mail.
<smogg>
I have no idea what’s wrong… I don’t get any errors. I see a POST request from my form in Loggy, and it redirects to success page without problem
<smogg>
so all is fine, but no email is being sent
<centrx>
etqqkoiflwhb, Looks well in hand..?
<centrx>
smogg, Is there a console in Heroku or SendGrid where you can look to see if those services received it and then tossed it for some reason?
<smogg>
I have no idea. I have access to sengrid account but there’s nothing ther (zero emails sent), there’s nothing on Heroku itself and Loggy says it’s all fine
nfk has quit [Remote host closed the connection]
mijicd has joined #ruby
<etqqkoiflwhb>
centrx: yea, any ideas for removing watchable {}, its an input to the module WatchersToBeNotifiedIf, to pull out recipients such as agents, starrers etc
<ponga>
how do i use multiple values to key for Hash?
<centrx>
ponga, Yes, that works well. @hash[[name, date]]
oo_ has joined #ruby
<etqqkoiflwhb>
centrx: recipients are people to be notified of an event, in this case, creation of a comment
DanielI has joined #ruby
<centrx>
ponga, You can also use a nested hash, which would be accessed like @hash[name][date]
<ponga>
centrx: can i just declare multiple values with => and , in hash , would it create array automatically?
lewix has quit [Remote host closed the connection]
<ponga>
like
<ponga>
:cat => "cute", "smart"
<ponga>
style like this?
lewix has joined #ruby
<centrx>
ponga, That would be in the value, not in the key. You have to use the brackets for an array inside a hash
<etqqkoiflwhb>
centrx: the idea is, anyone in the future, can declared a notification, like CommentModified, with a DSL, leaving it up Action to dispatch notifications
<centrx>
ponga, I think the only place you can avoid the brackets is in assignment statements
<ponga>
ok
<centrx>
etqqkoiflwhb, If the watchable can be attached to the class instance of CommentCreated instead of to the instance variable @comment, then you can put the logic inside the module, and delete the watchable { @comment }
toastynerd has quit [Remote host closed the connection]
sigurding has joined #ruby
<centrx>
etqqkoiflwhb, Otherwise it's needed to specify what/which variable to watch
lewix has quit [Remote host closed the connection]
<ponga>
:cat => ["cute", "smart"]
<centrx>
Yes
<ponga>
thanks
<ponga>
and it is array?
lewix has joined #ruby
senayar has joined #ruby
<centrx>
["cute", "smart"] is an Array
<ponga>
yyes thats what i meant
<ponga>
thank sir
bluenemo has joined #ruby
<centrx>
You are welcome, Mr Ponga
eighthbit has joined #ruby
yfeldblum has joined #ruby
<etqqkoiflwhb>
centrx: users can also give a symbol, watchable: :comment, and define a comment method on CommentCreated, the question if there's a better way to provide WatchersToBeNotifiedIf the inputs it needs, secondly, mostly all watchers share a common blacklist, mentioned_users is an outlier
CorpusCallosum has joined #ruby
<centrx>
etqqkoiflwhb, You can make a method def blacklist in the WatchersToBe module, with the defaults
<centrx>
etqqkoiflwhb, Then any child that uses that module, can override that method to replace it or add to it
<centrx>
like def blacklist; super + [:robots]; end
<centrx>
or def blacklist; [:robots]; end to completely replace it
lewix has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 264 seconds]
<centrx>
etqqkoiflwhb, Mix-ins are like multiple inheritance
lewix has joined #ruby
senayar has quit [Ping timeout: 272 seconds]
DanielI has quit [Changing host]
DanielI has joined #ruby
thisirs has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
zz_tsuyoshi_ is now known as tsuyoshi_
lewix has quit [Remote host closed the connection]
mercerist has joined #ruby
SJr has quit [Ping timeout: 245 seconds]
preller has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
Eyes has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
SJr has joined #ruby
tsuyoshi_ is now known as zz_tsuyoshi_
St_Marx has joined #ruby
lw has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy>
dumdedum
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
AlexRussia has joined #ruby
zz_tsuyoshi_ is now known as tsuyoshi_
senayar has joined #ruby
yubrew has joined #ruby
Shidash1 has joined #ruby
freerobby has quit [Quit: Leaving.]
Shidash has quit [Ping timeout: 245 seconds]
platzhirsch has joined #ruby
timonv has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
smogg has quit [Ping timeout: 240 seconds]
smogg has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
<smogg>
centrx: fyi, the problem with mail was on Heroku side. I found solution on the web: start completely new heroku app…
<centrx>
ruh roh heroku
bradleyprice has joined #ruby
timonv has quit [Remote host closed the connection]
<therealGent>
Mon_Ouie, I'm trying to write code that will be backwards compatible. Originally it accepts a string, but now I want to supply it an array. It would be cool if I could do an each on just a single string and it would return just that one string.
<stian>
nice
<jhass>
>> before = Symbol.all_symbols.size; def a_new_method; end; [before, Symbol.all_symbols.size]
<therealGent>
but then I can just make an if('foo'.respond_to? :each)
lkba has quit [Read error: Connection reset by peer]
<therealGent>
centrx, I don't want to upset anyone here, but I don't believe so. I think the language is most worth picking up for Rails.
<therealGent>
And the state of security on Rails is just unfortunate.
* Hanmac
is writing ruby but i never did care about rails
<centrx>
Many people in here do not use Rails
<therealGent>
From what I'm seeing so far, I actually do like the language/syntax. But I just don't see what value I would receive from learning it if I was not going to do rail dev
<jhass>
therealGent: what languages do you know and what value do you receive for doing so?
<benzrf>
that's like saying
<benzrf>
what advantage do you get from learning py if you arent going to use it for django dev
<benzrf>
whut
<centrx>
I think he's just talking about money
<benzrf>
oh
<benzrf>
ugh
<centrx>
but not quite money even, because you can get a good job in almost any language, if you are good enough
<centrx>
So it must be "gross number of positions available"
<centrx>
In which case, learn Java and go to hell
<stian>
haha
<shevy>
did he actually mention the word money?
danijoo has quit [Read error: Connection reset by peer]
tjr9898 has quit []
danijoo has joined #ruby
mehlah has joined #ruby
<centrx>
"value", it is somewhat unexplained
tacos1de has quit [Ping timeout: 264 seconds]
<therealGent>
But it was nice of all you to jump to conclusions before perhaps asking me what I meant.
<centrx>
If you like the language, and you do programming, why would the only value be in Rails
mikesplain has quit [Ping timeout: 264 seconds]
<therealGent>
centrx, community and support.
<therealGent>
And existing applications
Gabri has joined #ruby
<therealGent>
Frameworks, etc
<stian>
I find the ruby community to be fantastic
zz_tsuyoshi_ is now known as tsuyoshi_
<centrx>
Ruby has a great wealth of libraries and frameworks available, outside of Rails
fantazo has quit [Ping timeout: 260 seconds]
davedev24_ has joined #ruby
<jhass>
therealGent: I did ask you. No answer yet
Royalb15 has joined #ruby
<shevy>
therealGent it all depends on the use case; for instance, would you rather use shell scripts or something else
<jhass>
hell, this channel has twice the amount of users than #rubyonrails
<therealGent>
jhass, java for one with many enterprise ready frameworks like hibernate and spring, and python is a fav of mine due to it being installed by default on practically every linux distro.
rkazak_ has joined #ruby
<shevy>
and so is ruby
<shevy>
therealGent python2 or python3 ;)
<therealGent>
aah you got me there :P
<centrx>
Hibernate is crap
<jhass>
everytime I see "enterprise ready framework" I only read "confusing shit"
<benzrf>
ruby community is a lil bit uh
<benzrf>
frat-y
<shevy>
well the distributions will tend to favour specific versions of a language
<jhass>
but that's just my personal experience I guess
lewix has joined #ruby
Gabri has quit [Client Quit]
<shevy>
ubuntu had like 10 years of ruby1.8
asteve has joined #ruby
fschuindt has joined #ruby
<jhass>
and by "available everywhere" logic you should code your stuff in shellscript
DouweM has joined #ruby
<therealGent>
so i know that arrays in ruby have an interator of sorts, .each, but does it have something like itertools? Where I can say array.next .next over and over and keep rotating over the array?
<shevy>
distributions are so insanely slow, the rise of git and github obsoletes those archaic old models
stytown has quit [Quit: stytown]
<shevy>
therealGent Enumerators in ruby
platzhirsch has quit [Remote host closed the connection]
<shevy>
you can invoke #next
Cache_Money has quit [Quit: Cache_Money]
<jhass>
therealGent: if you don't pass a block to .each you'll get an Enumerator out of it. But the use cases for that are really rare
lw has joined #ruby
<shevy>
x = "cat".each_char
<shevy>
x.next # => "c"
<shevy>
x.next # => "a"
<jhass>
therealGent: > 90% of what you need that for in other languages can be solved with the methods on Array and its included Enumerable
Notte has joined #ruby
<shevy>
yeah, I don't recall having had to use that in real code yet
<shevy>
therealGent and perhaps .cycle too
<therealGent>
it's sort of like a fallback kind of thing. If it doesn't work, try the next one. If not that one, try the next. Keep going
<theRealGentleman>
looks like enumerator's #next is perfect for my use case. Thanks guys
tacos1de has joined #ruby
<jhass>
theRealGentleman: the try until success one?
rgrinberg has joined #ruby
<theRealGentleman>
jhass, no, that one to me seems like something I would do if I was testing values. Calling a tester function on each value, etc.
relix_ has quit [Ping timeout: 245 seconds]
<jhass>
so what's your usecase?
<theRealGentleman>
But mine is sort of a connection fallback thing. In a loop, if it receives a connection error exception, it will call "connect" again but the connect method will make host = hosts.next
<theRealGentleman>
That way minimal code is changed.
<theRealGentleman>
Basically just a line of code in the connect method.
<theRealGentleman>
All I need to do is figure out a way to handle StopIteration so it keeps looping.
<benzrf>
theRealGentleman: just wrap the whole thing in a .each
<benzrf>
and cycle it first
<benzrf>
hosts.cycle.each do |host|
<benzrf>
begin
<benzrf>
do_stuff_with_host
<benzrf>
rescue OhNoError
<benzrf>
next
<benzrf>
end
<benzrf>
end
<csmrfx>
pastie
<csmrfx>
or death
mercwithamouth has joined #ruby
Rainicorn has joined #ruby
mercwith1mouth has quit [Ping timeout: 264 seconds]
<centrx>
That rescue next is a silly pythonic thing too. Using rescue for control flow
<shevy>
man benzrf
<shevy>
you can't let that stand
<AntelopeSalad>
that looks like an on error resume next
yubrew has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
carraroj has joined #ruby
<theRealGentleman>
benzrf, but that will connect to every single host if do_stuff_with_host is non blocking or not a loop
<benzrf>
theRealGentleman: yes, it should be a loop or something shouldnt it
<benzrf>
work until theres an error
<benzrf>
then continue w/ the next host
<theRealGentleman>
Right. Let me confirm with the code here.
LadyRainicorn has quit [Ping timeout: 244 seconds]
<jhass>
you gonna hate me: hosts.each.lazy.map {|host| build_connection host }.find(&:connect)
<benzrf>
oooooooh
<shevy>
not everyone hates you jhass
<shevy>
Hanmac loves you know jhass
Zebroid has joined #ruby
bmurt has quit []
<shevy>
*now
<benzrf>
jhass: thats not just cute
<benzrf>
that's adorable
<benzrf>
hnnng
<jhass>
shevy: that's my fear
<shevy>
hahaha
carraroj has quit [Client Quit]
<jhass>
hosts.each.lazy.map {|host| build_and_try_connection host }.find(&:connected?) even
Royalb15 has quit [Remote host closed the connection]
<benzrf>
ew
dangerousdave has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
mgberlin has quit [Remote host closed the connection]
<centrx>
Bravo
<benzrf>
jhass: you need to put that on /r/aww
<benzrf>
it's just soooooo cute
stytown has joined #ruby
dangerou_ has quit [Ping timeout: 264 seconds]
<shevy>
what's .lazy do
<theRealGentleman>
not much
<jhass>
shevy: Enumerator::Lazy
<theRealGentleman>
x)
<shevy>
does it replace begin rescue?
<jhass>
shevy: nah that happens inside build_and_try_connection
<shevy>
aah ok
prathamesh has quit [Remote host closed the connection]
<shevy>
that makes it much easier to understand
<shevy>
I somehow thought it mysteriously decides to be so lazy that it won't even return any errors
<shevy>
cat.lazy
mercerist has joined #ruby
<theRealGentleman>
benzrf, the code is structured in a weird way. The loop does actual communication, but then there's a rescue that sleeps and then calls connect again. Connect is what does stuff with the host. Host plays no role in this loop.
<theRealGentleman>
which brings me back to why i can only change a line in connect to .next each time its called, and it would be minimal change to structure.
<Hanmac>
shevy look:
<Hanmac>
>> %w{1 2 3}.map {|i| p i; i.to_i}.find {|i| p i; i.even?}
<theRealGentleman>
centrx, it still returns nil though
<jhass>
yes, puts returns nil
<theRealGentleman>
but it's not printing anything for me to stdout
<theRealGentleman>
i would expect that code to print 1, 2, 1, 2 and so on
ta_ has quit [Ping timeout: 240 seconds]
<jhass>
you want test = [1, 2].each
xcv has joined #ruby
<jhass>
er, e = test.each
yfeldblum has quit [Ping timeout: 245 seconds]
<jhass>
or I don't know. You've already been told to use cycle to repeatedly loop through stuff
baroquebobcat has joined #ruby
pencilcheck has quit [Remote host closed the connection]
toastynerd has joined #ruby
<theRealGentleman>
agh, that is totally my bad. From the docs it looks like I needed to call cycle with some sort of block of code.
jmbrown412 has joined #ruby
<theRealGentleman>
but i just played with it in irb and it works exactly as i would like it to. My apologies and thanks
relix has joined #ruby
<shevy>
don't worry
<shevy>
sometimes the brain tries to confuse you
<shevy>
don't trust your brain blindly
zz_tsuyoshi_ is now known as tsuyoshi_
cashnguns has quit [Ping timeout: 272 seconds]
garndt has quit [Quit: Connection closed for inactivity]
farn has quit [Read error: Connection reset by peer]
farn has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
farn is now known as Guest65972
GriffinHeart has joined #ruby
Guest65972 has quit [Client Quit]
kireevco has quit [Quit: Leaving.]
teddyp1cker has quit []
b00stfr3ak has joined #ruby
whitedawg has quit [Quit: Leaving.]
GriffinHeart has quit [Ping timeout: 245 seconds]
tsuyoshi_ is now known as zz_tsuyoshi_
DouweM_ has joined #ruby
IceDragon has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
havenwood has joined #ruby
IceDragon has joined #ruby
yubrew has joined #ruby
DouweM has quit [Ping timeout: 272 seconds]
ferr has quit [Ping timeout: 264 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
wald0 has quit [Ping timeout: 240 seconds]
jshjsh2 has joined #ruby
farn_ has joined #ruby
ta_ has joined #ruby
aniM has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
ta has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 240 seconds]
noob101 has quit [Quit: Page closed]
jshjsh has quit [Ping timeout: 255 seconds]
rgrinberg has joined #ruby
felixjet__ has joined #ruby
dorei has joined #ruby
soulashell has joined #ruby
wald0 has joined #ruby
felixjet has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
<RubyPanther>
Don't trust your brain blindly. Make sure to see what it wants you to see first.
felixjet_ has quit [Ping timeout: 245 seconds]
soulashell has quit [Client Quit]
momomomomo has joined #ruby
soulashell has joined #ruby
felixjet__ has quit [Ping timeout: 255 seconds]
soulashell has quit [Remote host closed the connection]
Mikalv has joined #ruby
GeraldoRamos has joined #ruby
<GeraldoRamos>
Hi everyone, have a basic ruby question. I have a txt file that contains something at each line. How can I convert to an array like ["line1", "line2"] ? Im trying to pass items in this txt file as an argument in a loop, but its not working, so I'm trying to convert to an array to see if it works (creating an array manually and running the loop, works fine, but when loads these arguments from file doesn't)
_2_btchslave has joined #ruby
ta has joined #ruby
wald0 has quit [Ping timeout: 272 seconds]
<jhass>
File.foreach("file.txt") do |line|
<jhass>
or lines = File.readlines("file.txt")
ta_ has quit [Ping timeout: 240 seconds]
_2_btchslave has quit [Remote host closed the connection]
<GeraldoRamos>
I can read the lines, the problem is that when I do something like file.each { |x| run.users(x) } it doesnt work the same as run.users("something")
<shevy>
unlikely
<jhass>
note that both methods include the trailing newline
<GeraldoRamos>
trying something...
razrunelord has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
Blaguvest has quit []
<GeraldoRamos>
This is the code: lines = File.readlines("users.txt")
<kireevco>
Hi all, im requiring winrm gem, calling it but I got an uninitialized constant WinRM::WinRMWebService, seems like it's not finding a class in a gem or something, could anyone give an idea what could be done? Thank you
timonv has joined #ruby
gattuso has joined #ruby
zz_tsuyoshi_ is now known as tsuyoshi_
TheKruex has quit [Ping timeout: 264 seconds]
mr_snowf1ake has joined #ruby
<shevy>
is this the error message you get
<shevy>
or do you describe the error message in your own words ;)
jmbrown412 has quit [Remote host closed the connection]
gattuso has quit [Ping timeout: 260 seconds]
sigurding has quit [Quit: sigurding]
andrewlio has quit [Remote host closed the connection]
yubrew has joined #ruby
gattuso has joined #ruby
<kireevco>
shevy: when I'm doing it in a single file, it works fine, when it is a part of a more complex structure, I got that error. Here's the file, I'm not a pro in ruby for even a second, but it seems like a scope issue.. https://gist.github.com/kireevco/24e6621c561c4c081620
tsuyoshi_ is now known as zz_tsuyoshi_
AlexRussia has quit [Ping timeout: 240 seconds]
<shevy>
I am sorry but I have no real idea what that code does
<shevy>
if it works fine in a single file though then there must be a new issue that that code there brought into it
yubrew has quit [Ping timeout: 255 seconds]
<jhass>
kireevco: so you share the version that works in hope to get help for the version that doesn't?
<shevy>
try to narrow it down to the code that specifically will cause it
<shevy>
kireevco Plan B is to grep for WinRMWebService locally and see how it gets used
<shevy>
you can unpack a gem via: gem unpack *.gem
deens has joined #ruby
<shevy>
all gems reside in the cache/ subdirectory
<shevy>
on windows probably somewhere in c:/ruby/lib ... hmm
<shevy>
lib/ruby/gems/2.1.0/cache/
Channel6 has quit [Quit: Leaving]
AlexRussia has joined #ruby
<kireevco>
jhass: that verison doesn't. shevy, I added a log file
gattuso has quit [Ping timeout: 260 seconds]
<shevy>
eeks
<shevy>
rvm
timonv has quit [Remote host closed the connection]
<kireevco>
shevy: yep, unfortunately I have to do it. winrm doesn't work on system provided ruby
<shevy>
yeah sorry no idea, I use ruby straight from the source, no idea about rvm
gattuso has joined #ruby
<kireevco>
shevy: jhass: should I create WinRM object in some other way maybe?
SCHAAP137 has quit [Remote host closed the connection]
<jhass>
no
<RubyPanther>
kireevco: You should fill out all the fields in your gist, like the filename. You give a log, but the source file you didn't name so it is gistfile1.txt which is obviously not in your log
matti has joined #ruby
<RubyPanther>
it is more work just figuring out what the hell is what than it should take to actually debug it ;)
<RubyPanther>
I doubt I'm the only one that goes over quota and doesn't bother...
<kireevco>
RubyPanther: updated file name
<RubyPanther>
still says gistfile1.txt for me, though I do see some hanging text that might be a filename
Hobogrammer has quit [Ping timeout: 264 seconds]
<kireevco>
refreshed
<RubyPanther>
If the source pays similar attention to detail, then there is not just 1 or 11 bugs
<kireevco>
sorry
<kireevco>
RubyPanther: well, the issue seems to me as something related to RVM environments
theRealGentleman has quit [Ping timeout: 272 seconds]
towbes has joined #ruby
<RubyPanther>
kireevco: Only if you broke your RVM install. If you're on windows use the "one-click" version, and install the "dev-kit" from the same place
<rkazak_>
kireevco: so you can run this with and without the rvm env?
<kireevco>
rkazak_: I can't, since system ruby is 1.8.7
jshjsh2 has quit [Quit: Leaving]
zrl has quit []
Darryl has quit [Quit: Connection closed for inactivity]
ra4king1 has joined #ruby
ra4king1 has quit [Remote host closed the connection]
<jforwiht589th59>
any good articles out there about this? do you use them the same way across the topics??
SCHAAP137 has joined #ruby
<kireevco>
RubyPanther: any advice how can I troubleshoot rvm enviroment ? How can I check that my gem was loaded correctly?
<RubyPanther>
kireevco: what makes you think it is an rvm issue? What did you do to rvm that you think broke it? Have you considered nuking it and re-installing?
yubrew has joined #ruby
Zamerick has joined #ruby
zz_tsuyoshi_ is now known as tsuyoshi_
andrewhl has joined #ruby
Hanmac has joined #ruby
<kireevco>
RubyPanther: hm, good question. When I'm running a simple test script that doesn't have any parents it works fine
<jforwiht589th59>
*** hey i want to know how to use libraries, never learned, never used, may like to use something like http://brandontilley.com/2014/02/24/creating-chrome-extensions-with-react.html - any good articles out there about this? do you use them the same way across the topics?? -- or better place to ask??
yubrew has quit [Ping timeout: 240 seconds]
kireevco has quit [Quit: Leaving.]
kireevco has joined #ruby
Hanmac1 has quit [Ping timeout: 244 seconds]
mikesplain has joined #ruby
<jhass>
jforwiht589th59: what has this to do with ruby?
<jforwiht589th59>
has to do with programming
<jforwiht589th59>
and relates to if it's the same in ruby as in other languages
<jforwiht589th59>
have on idea
<jforwiht589th59>
and it asked for better place to ask
lethjakman has joined #ruby
<jhass>
library management is individual to each language for most of them
<jforwiht589th59>
do you use the same way though, if not, ill ask in specific place
<jforwiht589th59>
similiar*
<jhass>
pick a language and learn it there, then pick another and learn it there. You'll quickly see why your question is confusing
<jforwiht589th59>
huh that doesnt answer teh question
tsuyoshi_ is now known as zz_tsuyoshi_
<jforwiht589th59>
i need to take 2-10 years just to get an answer to this basic question??? no good answers on the Web?
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
<jhass>
okay, let me answer the "do you use them the same way across the topics" part: no
deens has quit []
dangerou_ has quit [Read error: Connection reset by peer]
aniM has joined #ruby
dangerousdave has joined #ruby
blackgoat has joined #ruby
phinfonet has joined #ruby
shvelo has joined #ruby
<RubyPanther>
jforwiht589th59: Yes, advanced technical subjects require years of study before you can even ask useful questions. I'm sure the web can give you layperson explanations, but don't expect that to help with anything other than curiosity.
northfurr has quit [Quit: northfurr]
chipotle has joined #ruby
<jforwiht589th59>
someone answered, finally, sigh at freenode, "There is no way to ‘use libraries’ in general, no. There are language- and implementation-dependent ways to interact with other people's code, and once you can do that there are library-specific ways to use it"
mradmacher has quit [Quit: leaving]
zigomir has quit [Ping timeout: 240 seconds]
<jforwiht589th59>
need a better place or source to ask/read
<jforwiht589th59>
freenode has NEVER been helpful
<RubyPanther>
Right, it was not a useful question and did not have a useful answer
<jforwiht589th59>
with much
<RubyPanther>
solved
AlHafoudh has quit [Ping timeout: 240 seconds]
<jforwiht589th59>
go read quora, see how to answer questions that are 'not useful' or 'not worded properly'
<RubyPanther>
The same thing works with your doctor, just ask something that is nonsense, and then get frustrated that he "won't" explain it to you.
<jforwiht589th59>
can't take any other site but quora, everything sucks
<jforwiht589th59>
bye!
ferr_ has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
ferr has quit [Read error: Connection reset by peer]
<jhass>
bye! thanks for wasting everyone's time
<jforwiht589th59>
and mines most of all
<jforwiht589th59>
come here for what
<jhass>
(including yours)
<jforwiht589th59>
always
* apeiros
seems to have missed a popcorn worthy moment
<jhass>
he still seems responsive, all yours!
ferr_ is now known as ferr
<apeiros>
then again… seeing scarlett play protoss is hard to beat :)
<jforwiht589th59>
a good doctor knows how to answer questions, like anything else that is good.
jforwiht589th59 has left #ruby [#ruby]
<RubyPanther>
if I'm bored enough to be entertained by this guy, I need to go out for some fresh air
AlHafoudh has joined #ruby
techsethi has joined #ruby
pwk has joined #ruby
dmyers has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
<pwk>
hi, what is the correct channel for ruby on rails questions?
<RubyPanther>
#rubyonrails
<apeiros>
*sob*, I'm a mean person. I was tempted to write #django
andrewlio has joined #ruby
blackgoat has joined #ruby
jackneill has quit [Remote host closed the connection]
dmyers has quit [Client Quit]
andrewhl has quit [Quit: andrewhl]
alexju has joined #ruby
timonv has quit [Remote host closed the connection]
ferr has quit [Read error: Connection reset by peer]
aniM has quit [Ping timeout: 264 seconds]
dc has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
<Poky>
hey guys. :) I'm learning ruby and I think I'm going to practice with some simple webapp I've been wanting to make. Is it a good idea to start with something like sinatra rather than jumping to rails? :)
<jhass>
sure
nanoyak has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
razrunelord has joined #ruby
chrstphrhrt has left #ruby [#ruby]
havenwood has quit []
quitobro has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
fgo has joined #ruby
dangerousdave has joined #ruby
razrunelord has quit [Ping timeout: 264 seconds]
dc has quit [Remote host closed the connection]
Hanmac has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
hpoydar has joined #ruby
dangerou_ has joined #ruby
benzrf|offline has quit [Ping timeout: 240 seconds]
mgberlin has joined #ruby
nfk has joined #ruby
boris has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
techsethi has quit [Quit: techsethi]
gr33n7007h has joined #ruby
<shevy>
dumdedum
kyb3r_ has joined #ruby
DouweM_ has quit [Ping timeout: 252 seconds]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
Gadgetoid has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 245 seconds]
mikesplain has joined #ruby
decoponio has quit [Quit: Leaving...]
northfurr has joined #ruby
yubrew has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
DouweM has joined #ruby
Gadgetoid has joined #ruby
einarj has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
SCHAAP137 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
alkimome has joined #ruby
<alkimome>
hello there!
<alkimome>
anyone here ever studied on some boot school?
SCHAAP137 has joined #ruby
<stytown>
a bootcamp?
zz_tsuyoshi_ is now known as tsuyoshi_
<stytown>
currently enrolled in one
<alkimome>
yeah
<alkimome>
Is it worth it?
<alkimome>
I'm considering entering in one
<alkimome>
on san francisco
<alkimome>
appacademy
bmurt has joined #ruby
virtualize has joined #ruby
chrishough has joined #ruby
aniM has joined #ruby
chipotle has quit [Quit: cya]
<alkimome>
and I'm not sure if it's worth it the price
SCHAAP137 has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
<toretore>
alkimome: what are the alternatives?
<alkimome>
Going there, or going to college first
Channel6 has joined #ruby
jheg has joined #ruby
tsuyoshi_ is now known as zz_tsuyoshi_
<alkimome>
I'm just enrolling to the AppAcademy bootcamp
<toretore>
right. so... it's not going to be nearly the same as college
<toretore>
two completely different things
<jheg>
that an online course or in house alkimome ?
<alkimome>
it's presential
<alkimome>
I know it's different
<alkimome>
I just want some perspective of someone who went in, or that know how it works
<jheg>
blimey no win no fee eh?
olivier_bK has quit [Ping timeout: 240 seconds]
<jheg>
I have a placement at Makers Acadmey in the UK next year which works differently to that
<jheg>
and am weighing up if its worth the investment still versus an online solution
<toretore>
alkimome: you probably know they are different, but by posing it as an either-or like this you're pitting one against the other as if they're equal
<jheg>
equal to what? college?
<alkimome>
toretore: just in the sense of getting a job
<alkimome>
and starting developing something on my own after
<alkimome>
not in the way of learning way
<toretore>
the "fuck the system" part of me wants to say go ahead, but i think in reality something like can in no way measure up to a "real" education yet
alem0lars has quit [Quit: alem0lars]
<jheg>
why not toretore?
<alkimome>
yeah, I'm kind of in the same situation here
<toretore>
how long does it last?
Xeago has joined #ruby
<alkimome>
3 months
<toretore>
there you go, that's why
<alkimome>
it's in san francisco
<alkimome>
and got great reviews around the net
<toretore>
3 months vs 3 years
<jheg>
yeah but if its anything like the makers course in the UK its 3 months 8am to 10pm 5 days a week
<toretore>
no way it can be in the same category, even if it's excellent and on topic
<alkimome>
problem is, I saw somewhere that you only would get a job that pays 100k year if you already got a graduation
<jheg>
no disresepect to a college course but i think your days are more packed in these bootcamps than a college ed
<alkimome>
I got to do some tests before they get me in, I had a hard time on some exercices
<toretore>
12 times as packed?
<alkimome>
I didn't understand Rspec very well
tyrion-mx has quit [Quit: Leaving]
<jheg>
Probably not but if it bridges the gap between education and rreal world then its a different solution rather than a case of one or the other
northfurr has quit [Quit: northfurr]
<oliver3>
Just gonna drop this here, having only read the last few messages: No matter how you learn, so long as you're the candidate that shows they can do the job best you'll be the one to get the job.
<toretore>
yes, that's different altogether
<toretore>
neither is going to make you a good programmer either, that comes from real experience
<alkimome>
thanks for the advice toretore
<alkimome>
what about getting an american job visa?
<alkimome>
I'm not from USA, and those bootcamps propositions are that you get a job after you finnish
<toretore>
i doubt they can guarantee that
b00stfr3ak has quit [Ping timeout: 272 seconds]
datafirm____ has joined #ruby
<alkimome>
not a guarantee, but they have high percentages of students getting high paid jobs
mgberlin has quit [Remote host closed the connection]
mgberlin has joined #ruby
Morkel has quit [Quit: Morkel]
codeurge has joined #ruby
charliesome_ has joined #ruby
fgo has joined #ruby
charliesome_ has quit [Read error: Connection reset by peer]
tiguser has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
kirun has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
<Poky>
what are the prerequisites for such bootcamp?
charliesome_ has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
iliketurtles has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jheg>
Poky, for the one I'm doing its an initial interview with some logic tests and a little bit of coding
<alkimome>
what's the name of yours?
<jheg>
I was given some initial material to study ahead of time
<jheg>
Makers Academy
<alkimome>
same here man
<jheg>
When do you start alkimome ?
GriffinHeart has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 240 seconds]
<alkimome>
I finished the learn-ruby list some days ago
<alkimome>
And I'm suppose to make some project now
<alkimome>
the Event manager
<alkimome>
after that
<alkimome>
a new code challenge
<alkimome>
and a interview
<alkimome>
I'm in the application process now
<alkimome>
In the middle of it
<alkimome>
I'm reviewing all the books now
<jheg>
Oh wow thats a lengthy interview process :)
<alkimome>
So I don't get screwed on the interview
<alkimome>
yeah, it's the appacademy one
<alkimome>
seems worth it
Vivekananda has joined #ruby
<Poky>
that is rather lengthy. But the fact that their web advertises H1 with "learn to code in 12 weeks" doesn't really make a good case for high paying jobs.
yubrew has joined #ruby
<alkimome>
it's an intensive course, and they are very picky on who enters there
<alkimome>
I have faith in their system so far
<jheg>
you going to run a blog of your experience?
<alkimome>
If I'm approved?
<alkimome>
Yeah
<jheg>
assuming you are not cooked by the end of each day
<jheg>
ah cool
<alkimome>
I will, I want to apply to University of Chicago if all goes right
<alkimome>
I'm going to create some crazy stuff to put with my application
<alkimome>
including this
<alkimome>
but only if I get myself on appacademy this year
yakko has joined #ruby
<alkimome>
I hope I get in
<jheg>
including this?
einarj has quit [Read error: Connection reset by peer]
tiguser has quit [Ping timeout: 240 seconds]
<alkimome>
the appacademy proccess, I'm making a blog too help in my application
<alkimome>
I will start when the interview day get's closer
datafirm____ has quit [Quit: Computer has gone to sleep.]
yubrew has quit [Ping timeout: 244 seconds]
datafirm____ has joined #ruby
LadyRainicorn has quit [Quit: Bye]
<MindfulMonk>
how is it going to help your interview if it doesn't have any posts and looks like you created it for the sole purpose to pass the interview?
<alkimome>
The blog is for Uchicago
<alkimome>
lol
<alkimome>
not for appacademy
charliesome_ has joined #ruby
kireevco has quit [Quit: Leaving.]
charliesome has quit [Read error: Connection reset by peer]
<alkimome>
Hey
<alkimome>
text = %q{Los Angeles has some of the nicest weather in the country}
<alkimome>
words = text.scan(/\w+/)
<alkimome>
stopwords = %w{the by an on a for of are with just but and to the my in I has some}
ahuman has quit [Quit: No Ping reply in 180 seconds.]
kireevco has quit [Client Quit]
<alkimome>
just add to a new array whatever is filtered on the code block right?
akosednar has quit [Ping timeout: 255 seconds]
<alkimome>
whatever goes true on the boolean, gets pushed on the array, right?
fgo has quit [Ping timeout: 264 seconds]
<MindfulMonk>
whatever is not true goes into keywords
pu22l3r has joined #ruby
justinmcp has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
oddalot has quit [Ping timeout: 245 seconds]
crazysim has quit [Ping timeout: 264 seconds]
<MindfulMonk>
it filters out the stopwords
<MindfulMonk>
from the text
pu22l3r has joined #ruby
n88 has quit [Ping timeout: 245 seconds]
micah` has quit [Ping timeout: 272 seconds]
<MindfulMonk>
just experiment with your code in irb or pry
<alkimome>
thank you MindfulMonk!
timonv has joined #ruby
<alkimome>
I'm playing it now
micah` has joined #ruby
pu22l3r has quit [Remote host closed the connection]
tsuyoshi_ is now known as zz_tsuyoshi_
ahuman has joined #ruby
riotjones has joined #ruby
kireevco has joined #ruby
<alkimome>
I get it now, thanks man!
riotjone_ has quit [Ping timeout: 244 seconds]
quantsini has quit [Remote host closed the connection]
jso has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
quantsini has joined #ruby
akosednar has joined #ruby
crazysim has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
mgberlin has quit [Ping timeout: 240 seconds]
yosafbridge has joined #ruby
adeponte has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
zybi1 has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
n88 has joined #ruby
oddalot has joined #ruby
rgrinberg has quit [Quit: Leaving.]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 244 seconds]
dc has joined #ruby
chrishough has quit [Quit: chrishough]
JBreit has joined #ruby
n_blownapart has joined #ruby
kireevco has quit [Quit: Leaving.]
bubbajones has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby
goleldar has joined #ruby
bubbajones has joined #ruby
razrunelord has joined #ruby
fgo has joined #ruby
<n_blownapart>
hi how do I escape the colon : on a long list in irb / pry (control c gets me to the pry prompt but the console freezes)
<benzrf>
n_blownapart: huh?
<benzrf>
oh
<benzrf>
press q
<benzrf>
you're just in $PAGER
wald0 has joined #ruby
jhass is now known as jhass|off
<benzrf>
which is probably less
Notte has quit [Remote host closed the connection]
<n_blownapart>
benzrf: thanks yeah I had this problem before. what happens is I get the pry prompt but any typing freezes pry and it goes back to the colon after some error messages.
razrunelord has quit [Ping timeout: 240 seconds]
<n_blownapart>
ok thanks benzrf its working now. pax.
Trynemjoel has quit [Ping timeout: 245 seconds]
crazymykl has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<n_blownapart>
everyone I meet tells me if I want to learn how to program learn python.
dc has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
<apeiros>
clearly everyone you know knows nothing. of course if you want to learn to program, you have to learn malbolge.
SCHAAP137 has quit [Remote host closed the connection]
LiquidIn1ect has quit [Ping timeout: 245 seconds]
<apeiros>
it's a programming language specifically targeting newcomers. it's supposed to be easy and intuitive.
ghr has joined #ruby
rbartos has joined #ruby
aniM has joined #ruby
bmurt has quit []
<n_blownapart>
apeiros: that is depressing
<apeiros>
anyway. python certainly is a fine choice too. but personally, I prefer ruby. If you need a coin to make your decision, tell us.
rgrinberg has joined #ruby
bmurt has joined #ruby
wald0 has quit [Ping timeout: 272 seconds]
<n_blownapart>
apeiros: the gist of it is as a learning language python prevails..
<apeiros>
if you think so.
mijicd has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 240 seconds]
<n_blownapart>
apeiros: I don't think that its just what people say when I say I'm learning ruby. I'm in Colombia now and even here someone told me learn python.
ghr has quit [Ping timeout: 255 seconds]
jarray52 has joined #ruby
gigetoo has quit [Remote host closed the connection]
Zebroid has quit [Remote host closed the connection]
bmurt_ has joined #ruby
bmurt has quit [Ping timeout: 245 seconds]
a13x2121 has joined #ruby
a13x212 has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
nfk has quit [Quit: yawn]
bmurt_ has quit [Client Quit]
alexju has quit [Remote host closed the connection]
pencilcheck has quit []
robbyoconnor has quit [Max SendQ exceeded]
rgrinberg has quit [Quit: Leaving.]
bmurt has joined #ruby
robbyoconnor has joined #ruby
Wolland has quit []
dangerou_ has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 244 seconds]
Deele has quit [Ping timeout: 255 seconds]
<n_blownapart>
hey MindfulMonk
Ankhers has quit [Remote host closed the connection]
rgrinberg has joined #ruby
hermanmunster has quit [Remote host closed the connection]
alexju has joined #ruby
hermanmunster has joined #ruby
zz_tsuyoshi_ is now known as tsuyoshi_
Ankhers has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
mgberlin has joined #ruby
hermanmunster has quit [Ping timeout: 255 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
sleepee has joined #ruby
xcv_ has joined #ruby
rbartos has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 264 seconds]
tsuyoshi_ is now known as zz_tsuyoshi_
xcv has quit [Ping timeout: 264 seconds]
etqqkoiflwhb has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
srnty_ has joined #ruby
srnty_ has quit [Client Quit]
stonevil_ has joined #ruby
dilated_dinosaur has joined #ruby
srnty_ has joined #ruby
stonevil_ has quit [Client Quit]
bmurt has quit []
srnty_ has quit [Client Quit]
grieg has quit [Quit: Leaving]
GeraldoRamos has quit [Remote host closed the connection]
Zebroid has joined #ruby
srnty has quit [Quit: srnty]
n_blownapart has quit [Remote host closed the connection]
Zebroid has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
Kryptonical has quit [Read error: Connection reset by peer]
mgberlin has quit [Remote host closed the connection]
jottr_ has joined #ruby
mgberlin has joined #ruby
Poky has quit [Ping timeout: 255 seconds]
zz_tsuyoshi_ is now known as tsuyoshi_
diegovio1 has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
diegovio1 is now known as diegoviola
benzrf is now known as benzrf|offline
GriffinHeart has joined #ruby
n_blownapart has joined #ruby
<n_blownapart>
"x" != "x" why does this return false if these two strings obstensibly have different object_id 's
jottr_ has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
wahben has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
<n_blownapart>
"x" == "x" returns true because the equality is based on textual value. right?
<DouweM>
n_blownapart: == and != are methods implemented to check value equality, not identity equality
robbyoconnor has joined #ruby
<apeiros>
n_blownapart: see Object#equal? for object identity (yes, it's poorly named)
<DouweM>
!= and == evalutating to the opposite makes sense, right
<n_blownapart>
so != is also basing comparison on textual value not internal id ?
<DouweM>
n_blownapart: just like ==
<DouweM>
n_blownapart: why would the one use identity and the other value?
wahben has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<apeiros>
it's generally intended to be a value comparison