havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<adaedra> Rohanezio: That sounds HTML-related.
eminencehc has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: i've nodded off.]
dome22xl has quit [Ping timeout: 246 seconds]
<Rohanezio> the code for the scoreboard is ruby related, but yes it's also made of HTML
<adaedra> Display issues sounds really HTML
<adaedra> Also, if it's rails, you may want to talk with the folks of #RubyOnRails
<Rohanezio> so should I ask these questions there?
gustav__ has quit [Remote host closed the connection]
crdpink has joined #ruby
<adaedra> Well, they're the rails experts
bb010g has quit [Quit: Connection closed for inactivity]
crdpink2 has quit [Ping timeout: 246 seconds]
lele has quit [Ping timeout: 240 seconds]
<Rohanezio> of course :) Thanks for your help
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brixen has quit [Ping timeout: 246 seconds]
vdamewood has quit [Ping timeout: 264 seconds]
renderful has quit [Remote host closed the connection]
cjbottaro has joined #ruby
eminencehc has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zenguy_pc has quit [Read error: Connection timed out]
sepp2k has joined #ruby
zenguy_pc has joined #ruby
icmax has joined #ruby
<icmax> Hi. I want to learn networking. What's a good beginner's book?
lele has joined #ruby
Rohanezio has quit [Remote host closed the connection]
joufflu has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
Rohanezio has joined #ruby
bmurt has quit []
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lipoqil has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
eminencehc has quit [Remote host closed the connection]
dan_ has joined #ruby
p0wn3d has quit [Ping timeout: 252 seconds]
eminencehc has joined #ruby
dan_ is now known as Guest59711
saddad has joined #ruby
roxtrongo has joined #ruby
ledestin has joined #ruby
icmax has left #ruby [#ruby]
<Porfa> hello, anyone around to gimme a help? hopefully my code is cleaner.. https://gist.github.com/anonymous/008b0215cd68e78c92e3
<Porfa> my problem is in the file as a coment, just over 10 lines of code..
<Porfa> shevy: my code is looking bettah
neanderslob has quit [Remote host closed the connection]
<shevy> I dunno
tjbiddle has joined #ruby
<shevy> I think you may need more practice... we check on your style in a week from now on
baweaver has joined #ruby
marr has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
<Porfa> haha ok
arturmartins has quit [Quit: Leaving...]
roxtrong_ has joined #ruby
<Porfa> i can understand, but that's not what i read on the subscription
rushed has quit [Quit: rushed]
<Porfa> when i payed for the ir service and free node usage
neanderslob has joined #ruby
brixen has joined #ruby
<BraddPitt> Porfa what are you expecting that code to do?
<Porfa> i want it to send the lines that it is outputting, into the interpreter
biesiad has quit [Quit: biesiad]
roxtrongo has quit [Ping timeout: 256 seconds]
<Porfa> BraddPitt: impossible?
<postmodern> wish there was a shortcut for Hash[collection.map { |i| [i.foo, i.bar] }]
<BraddPitt> well you are turning them into a string, Porfa
biesiad has joined #ruby
biesiad has quit [Client Quit]
platzhirsch has left #ruby [#ruby]
snockerton has quit [Quit: Leaving.]
<zenspider> Porfa: the real question is WHY you are turning them into a string
eminencehc has quit [Remote host closed the connection]
<zenspider> answer that and the rest should fall out
neanderslob has quit [Remote host closed the connection]
<Porfa> i can't see other way to achieve what i want, I turned them into string so i could build the whole string with the correct data
<zenspider> "can't see any other way"... work on that
Rohanezio has quit [Ping timeout: 265 seconds]
<zenspider> I don't see anything in there that limits you
<zenspider> but magically hoping that a string will run, out of the blue? doesn't make sense
neanderslob has joined #ruby
<Porfa> but how can i pass that string to the interpreter?
<zenspider> stop thinking about strings
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
Guest59711 has quit [Ping timeout: 246 seconds]
<zenspider> why are those strings and not just code?
iamninja_ has quit [Ping timeout: 265 seconds]
bklane has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
_djbkd has joined #ruby
bigbadbear has quit [Ping timeout: 240 seconds]
<zenspider> wow... ok
cjbottaro has quit [Ping timeout: 240 seconds]
roxtrong_ has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
bklane has joined #ruby
bklane has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
axiomatic_345 has joined #ruby
baweaver has joined #ruby
<baweaver> postmodern: to_h
tkuchiki has quit [Ping timeout: 264 seconds]
<baweaver> >> (1..10).map { |v| [v, v ** 2] }.to_h
<ruboto> baweaver # => {1=>1, 2=>4, 3=>9, 4=>16, 5=>25, 6=>36, 7=>49, 8=>64, 9=>81, 10=>100} (https://eval.in/441912)
pwnd_nsfw has joined #ruby
<postmodern> baweaver, ah forgot about to_h, although i still dislike constantly typing .map { [foo, bar] }
<baweaver> If only the language allowed you to implement such a thing in the hash class itself.
<baweaver> reduce is a powerhouse that can be used to reimplement map, select, and a lot of other enumerable functions
tuxero has quit [Quit: tuxero]
saddad has quit [Quit: WeeChat 1.4-dev]
<baweaver> and could probably be used there
maletor has quit []
eminencehc has quit [Remote host closed the connection]
bmurt has quit []
eminencehc has joined #ruby
roxtrongo has joined #ruby
theery has joined #ruby
rushed has joined #ruby
chandlerbing has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
<pipework> baweaver: Could just #zip if the keys can be determined outside of the value stuff.
eminencehc has quit [Ping timeout: 272 seconds]
solocshaw has joined #ruby
<baweaver> yeah, granted.
<baweaver> though vague issues are vague
theery has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
<pipework> At least they're not vogue.
<pipework> I'm more of a gameinformer kind of guy.
NeverDie has quit [Quit: http://radiux.io/]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
axiomatic_345 has quit [Ping timeout: 264 seconds]
towski_ has quit [Remote host closed the connection]
cassioscabral has joined #ruby
barhum2013 has quit [Quit: barhum2013]
towski_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
barhum2013 has joined #ruby
roxtrong_ has joined #ruby
<shevy> is this a good thing?
lampshades has joined #ruby
dikaio has joined #ruby
rushed has quit [Quit: rushed]
roxtrongo has quit [Ping timeout: 268 seconds]
allcentury has joined #ruby
NeverDie has joined #ruby
doddok has quit [Quit: Leaving]
blackmesa has joined #ruby
drewvans1one has quit [Ping timeout: 246 seconds]
dikaio has quit [Quit: ........]
drewvanstone has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
barhum2013 has quit [Quit: barhum2013]
chipotle has joined #ruby
rushed has joined #ruby
chipotle has quit [Client Quit]
swgillespie has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
dikaio has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
mrmargolis has joined #ruby
krz has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
drewvanstone has quit [Ping timeout: 244 seconds]
dravine_ has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
banjara has quit [Quit: Leaving.]
havenwood has joined #ruby
dravine has quit [Ping timeout: 264 seconds]
dravine_ is now known as dravine
devoldmx has joined #ruby
Azure has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
Porfa has quit [Quit: Porfa]
chandlerbing has quit []
FrankD has joined #ruby
FrankD has quit [Changing host]
FrankD has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
rushed has quit [Quit: rushed]
towski_ has quit [Remote host closed the connection]
Rohanezio has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrmargolis has quit []
allcentury has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
jerrrrrr has joined #ruby
maikowblue_ has quit [Quit: .]
wallerdev has quit [Ping timeout: 240 seconds]
lampshades has quit [Ping timeout: 265 seconds]
cih has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
cih has quit [Remote host closed the connection]
lampshades has joined #ruby
RegulationD has joined #ruby
rushed has joined #ruby
jgpawletko has joined #ruby
roxtrongo has joined #ruby
paulcsmith_ has joined #ruby
paulcsmith_ has quit [Client Quit]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
Paradox is now known as Paradox460
Paradox460 is now known as Paradox_detached
Paradox_detached is now known as trollface
trollface is now known as trolldad
trolldad is now known as Paradox
roxtrong_ has quit [Ping timeout: 250 seconds]
bb010g has joined #ruby
havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
saddad has joined #ruby
saddad has quit [Client Quit]
NeverDie has quit [Quit: http://radiux.io/]
Rickmasta has joined #ruby
andyrs has joined #ruby
roxtrong_ has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
rushed has quit [Quit: rushed]
rushed has joined #ruby
ledestin has quit [Max SendQ exceeded]
roxtrongo has quit [Ping timeout: 265 seconds]
jerrrrrr has quit [Quit: WeeChat 1.3]
bklane has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
roxtrong_ has quit [Ping timeout: 250 seconds]
Guest46541 has joined #ruby
bklane has quit [Remote host closed the connection]
NeverDie has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
NeverDie has quit [Max SendQ exceeded]
renderfu_ has joined #ruby
casadei has joined #ruby
NeverDie has joined #ruby
haraoka has joined #ruby
moss_ is now known as moss
tawaffan has joined #ruby
renderfu_ has quit [Ping timeout: 246 seconds]
bklane has joined #ruby
pwnd_nsfw has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jackjackdripper has quit [Quit: Leaving.]
poguez_ has quit [Quit: Connection closed for inactivity]
EllisTAA has joined #ruby
roxtrongo has quit [Remote host closed the connection]
EllisTAA has quit [Client Quit]
havenwood has quit [Ping timeout: 250 seconds]
_djbkd has quit [Remote host closed the connection]
rismoney1 has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
aaeron has quit [Quit: Leaving.]
obx has left #ruby [#ruby]
FrankD has quit [Ping timeout: 244 seconds]
arescorpio has joined #ruby
ramfjord has joined #ruby
Rohanezio has quit [Ping timeout: 260 seconds]
amystephen has quit [Quit: amystephen]
InternetFriend has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja_ has joined #ruby
robh71 has joined #ruby
Rohanezio has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
aerozeppelin has joined #ruby
iamninja_ has quit [Ping timeout: 268 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
ryanMmhmm has joined #ruby
duoi has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Client Quit]
crdpink has quit [Ping timeout: 246 seconds]
rushed has quit [Quit: rushed]
bmurt has quit []
crdpink has joined #ruby
eminencehc has quit [Remote host closed the connection]
crdpink2 has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
Rohanezio has quit [Ping timeout: 260 seconds]
wldcordeiro has joined #ruby
karapetyan has joined #ruby
cirenyc has quit [Quit: Leaving...]
symm- has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
tkuchiki has joined #ruby
ericjphillips has quit [Quit: Leaving.]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 244 seconds]
joshyjosh has quit [Remote host closed the connection]
aerozeppelin has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
drewvanstone has joined #ruby
aerozeppelin has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
<hays> why does a=a return nil and not NameError?
aerozeppelin has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rhg135 has quit [Quit: WeeChat 1.3]
dopie has joined #ruby
jun_ has joined #ruby
roxtrongo has joined #ruby
tmtwd has joined #ruby
rushed has joined #ruby
gener1c_ has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme_ has joined #ruby
favadi has joined #ruby
devbug has joined #ruby
<Coraline> Because a gets created at the left side of the equal sign.
baweaver has joined #ruby
duoi has joined #ruby
roxtrong_ has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest40241
gener1c has quit [Ping timeout: 260 seconds]
bklane has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
roxtrongo has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
bklane has joined #ruby
ElSif has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
darkf has joined #ruby
braincrash has joined #ruby
drefined has joined #ruby
rismoney1_ has joined #ruby
rismoney1 has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
Soda has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
drefined has quit [Quit: Textual IRC Client: www.textualapp.com]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elton has joined #ruby
ElSif has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
aaeron has joined #ruby
YankNYC has quit [Quit: Connection closed for inactivity]
<hays> Coraline: hm. i guess that makes some sense
michaeldeol has joined #ruby
rushed has quit [Quit: rushed]
casadei has quit [Remote host closed the connection]
gix has quit [Ping timeout: 255 seconds]
theery has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
gix has joined #ruby
Soda has quit [Remote host closed the connection]
eminencehc has joined #ruby
finisherr has quit [Quit: finisherr]
psy_ has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
houhoulis has joined #ruby
drewvanstone has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
biesiad has joined #ruby
biesiad has left #ruby [#ruby]
jun_ has quit [Remote host closed the connection]
Xeago has joined #ruby
Spami has joined #ruby
jun_ has joined #ruby
pyon has quit [Quit: Seasons will pass you byyy... I get uuup... I get dooown...]
rushed has joined #ruby
closer has quit [Ping timeout: 272 seconds]
ob_ has joined #ruby
SylarRuby has joined #ruby
closer has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
opensource_ninja has quit [Quit: opensource_ninja]
baegle has joined #ruby
pyon has joined #ruby
<baegle> In rails, there's a global variables called ENV but I'm struggling to find a comprehensive list of all such predefined global variables. Can someone point me in the right direction?
maletor has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
arup_r has joined #ruby
neanderslob has quit [Ping timeout: 255 seconds]
wldcordeiro has joined #ruby
tcopeland has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 246 seconds]
<havenwood> baegle: ENV is a constant in Ruby proper. In irb or pry check `ENV` or: ruby -e "p ENV"
<havenwood> baegle: Check other constants in irb or pry with: Module.constants
renderfu_ has joined #ruby
neanderslob has joined #ruby
<havenwood> >> global_variables
<ruboto> havenwood # => [:$;, :$-F, :$@, :$!, :$SAFE, :$~, :$&, :$`, :$', :$+, :$=, :$KCODE, :$-K, :$,, :$/, :$-0, :$\, :$_, ...check link for more (https://eval.in/441942)
<baegle> havenwood: Thank you. At first attempt, I found a constant called Rails, I attempted to puts Rails.inspect and it just gave me back "Rails"
wldcordeiro_ has joined #ruby
<havenwood> ?pry baegle
<ruboto> baegle, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
Xeago has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Ping timeout: 250 seconds]
bigkevmcd has quit [Read error: Connection reset by peer]
renderfu_ has quit [Ping timeout: 244 seconds]
<baegle> thanks
bigkevmcd has joined #ruby
neanderslob has quit [Ping timeout: 240 seconds]
<havenwood> baegle: Pry is nice for exploring Ruby in general. You might also want to ask in the Rails-specific #RubyOnRails channel regarding the Rails console and related gems.
reset has joined #ruby
<baegle> havenwood: Thanks. I'm struggling with debugging the source of unroutable requests of running a rails app under a subdirectory, so I guess that's the right place to start
<havenwood> baegle: Yeah, I'd suggest asking in the #RubyOnRails channel.
<havenwood> baegle: I'd suggest asking there with a gist of the code involved and error output.
<havenwood> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> baegle: You just need to register your nick to talk in Rails. Although I'm not sure if they have that enforced at the moment.
amystephen has joined #ruby
<baegle> my nick is registered
<havenwood> Aye, I should have just checked. :)
<baegle> :) No worries. Most people who need help aren't registered
ob_ has quit [Ping timeout: 250 seconds]
sanjayu has joined #ruby
neanderslob has joined #ruby
Eiam_ has joined #ruby
amystephen has quit [Ping timeout: 255 seconds]
ob_ has joined #ruby
bvthanh has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<havenwood> baegle: export env vars that you want to be visible to subprocesses
sanjayu has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
bklane has joined #ruby
Ademan has joined #ruby
Cork has quit [Ping timeout: 244 seconds]
Oka has quit [Quit: o/]
arooni has quit [Ping timeout: 246 seconds]
poguez_ has joined #ruby
iamninja_ has joined #ruby
<Ademan> is there a "most idiomatic" way to iterate over every item in an array, but skipping the first N elements? in python I might iterate over a slice arr[n:]. I can similarly slice arr[n..arr.length] but what's idiomatic here?
jenrzzz has joined #ruby
Guest46541 has quit [Ping timeout: 264 seconds]
<drbrain> Ademan: Array#drop
cih has joined #ruby
Cork has joined #ruby
ob_ has quit [Quit: Leaving]
iamninja_ has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
chipotle has joined #ruby
finisherr has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<Ademan> drbrain: thanks
lampshades has quit [Ping timeout: 252 seconds]
theery has quit [Remote host closed the connection]
sanjayu has joined #ruby
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
Spami has joined #ruby
kp666 has joined #ruby
cih has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Quit: tjbiddle]
rismoney1_ has quit [Ping timeout: 255 seconds]
drewvanstone has joined #ruby
psy_ has joined #ruby
Musashi007 has joined #ruby
psy_ has quit [Max SendQ exceeded]
arescorpio has quit [Quit: Leaving.]
psy_ has joined #ruby
agent_white has joined #ruby
nerium has joined #ruby
nerium has left #ruby [#ruby]
<agent_white> Evenin'
drewvanstone has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
arup_r has quit [Quit: Leaving]
sanjayu has quit [Remote host closed the connection]
<otacon-> hey guys, i smell something funky here but i'm not sure how to fix it -> https://gist.github.com/brdrgz/128c8816bca94c3ebe26
devoldmx has quit [Remote host closed the connection]
<otacon-> ActivityFeedDate seems trivial, but i'm not sure if it's a good idea to move the intializer to ValidRenderable?
lampshades has joined #ruby
swgillespie has joined #ruby
jackjackdripper has joined #ruby
yfeldblum has joined #ruby
Radar_ is now known as Radar
jackjackdripper has quit [Client Quit]
bl0ndie has joined #ruby
Deviad has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
skade has quit [Client Quit]
guilherme has joined #ruby
guilherme is now known as Guest70352
devoldmx has joined #ruby
bl0ndie has quit [Ping timeout: 246 seconds]
bklane has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
agent_white has quit [Read error: Connection reset by peer]
Guest70352 has quit [Ping timeout: 240 seconds]
joufflu has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 256 seconds]
agent_white has joined #ruby
theery has joined #ruby
psy_ has quit [Ping timeout: 255 seconds]
theery has quit [Read error: Connection reset by peer]
workmad3_ has quit [Read error: Connection reset by peer]
TomyLobo has joined #ruby
bvthanh has quit [Remote host closed the connection]
pawnbox has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cih has joined #ruby
roxtrongo has joined #ruby
cih has quit [Remote host closed the connection]
michaeldeol has joined #ruby
Xeago has quit [Remote host closed the connection]
workmad3_ has joined #ruby
rismoney1 has joined #ruby
TheRinger has quit [Quit: Konversation terminated!]
Xeago has joined #ruby
guilherme_ has joined #ruby
rezzack has joined #ruby
jun_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
rezzack has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
tejasmanohar has quit [Ping timeout: 264 seconds]
tejasmanohar has joined #ruby
sanjayu has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Anti-Pizza has joined #ruby
jun_ has joined #ruby
riotjones has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
guilherme_ has quit [Ping timeout: 246 seconds]
rismoney1 has quit [Ping timeout: 265 seconds]
bklane has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 252 seconds]
CpuID has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 244 seconds]
tagrudev has joined #ruby
dhjondoh has joined #ruby
lkba has joined #ruby
lsmola has joined #ruby
yardenbar has joined #ruby
allomov has joined #ruby
Deviad has quit [Ping timeout: 255 seconds]
rushed has quit [Quit: rushed]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jun_ has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
rbowlby has joined #ruby
last_staff has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
bklane has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
dionysus69 has joined #ruby
cih has joined #ruby
arup_r has joined #ruby
cih has quit [Read error: Connection reset by peer]
cih has joined #ruby
lampshad_ has joined #ruby
symm- has joined #ruby
ruby-lang630 has joined #ruby
lampshades has quit [Ping timeout: 265 seconds]
ruby-lang134 has joined #ruby
<ruby-lang134> how do i add a method to the integer class, like factorial, so i can do n.fact?
yfeldblum has joined #ruby
riotjones has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
Pisuke has joined #ruby
krz has joined #ruby
ruby-lang630 has quit [Ping timeout: 246 seconds]
<havenwood> >> class Integer; def fact?; self == 42 end end; 42.fact?
<ruboto> havenwood # => true (https://eval.in/441980)
eGGsha has joined #ruby
MyMind has quit [Ping timeout: 250 seconds]
tmtwd has quit [Quit: Leaving]
ryanMmhmm has quit [Quit: Connection closed for inactivity]
<havenwood> ruby-lang134: I know that's ^ not the fact? you're doing but you can use `self` inside the method like that.
ruby-lang134 has quit [Ping timeout: 246 seconds]
wookiehangover has joined #ruby
emilkarl has joined #ruby
reset has quit [Quit: Leaving...]
jxv has quit [Quit: Leaving]
astrobunny has joined #ruby
[k- has joined #ruby
allomov has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Outta here...]
drewvanstone has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
<baweaver> hm, they be offline
krz has quit [Quit: WeeChat 1.2]
jun_ has joined #ruby
<baweaver> >> class Integer; def fact; self < 2 ? self : (1..self).reduce(:*) end end; 42.fact
<ruboto> baweaver # => 1405006117752879898543142606244511569936384000000000 (https://eval.in/441985)
<[k-> now make the factorial notation possible in ruby
devoldmx has quit [Remote host closed the connection]
<baweaver> >> 4!
<ruboto> baweaver # => /tmp/execpad-9ded4d2a82d8/source-9ded4d2a82d8:2: syntax error, unexpected '!', expecting keyword_end ...check link for more (https://eval.in/441988)
cih has quit [Remote host closed the connection]
aaeron has joined #ruby
amclain has quit [Quit: Leaving]
firstdayonthejob has joined #ruby
<baweaver> module Kernel; define_method(:!) do |n| (1..n).reduce(:*) end end
<baweaver> that'll break all types of fun things though
last_staff has quit [Quit: last_staff]
jun_ has quit [Ping timeout: 246 seconds]
<baweaver> >> class Integer; define_method(:!) do (1..self).reduce(:*) end end; 5.!
<ruboto> baweaver # => 120 (https://eval.in/441999)
<baweaver> yeah, don't redefine !
devoldmx has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<baweaver> it makes pry sad
<havenwood> >> class Integer; def !; 1.upto(self).inject :* end end; !5
<ruboto> havenwood # => 120 (https://eval.in/442002)
<baweaver> very sad
akkad has quit [Excess Flood]
sanjayu has quit [Ping timeout: 244 seconds]
iamninja_ has joined #ruby
aaeron has quit [Quit: Leaving.]
karapetyan has joined #ruby
<havenwood> I since zero factorial is one: 1.upto(self).inject 1, :*
<havenwood> I guess since*
Xeago has quit [Remote host closed the connection]
<havenwood> One and only one way to do an empty set.
iamninja_ has quit [Ping timeout: 252 seconds]
akkad has joined #ruby
sanjayu has joined #ruby
dionysus69 has quit [Remote host closed the connection]
<otacon-> at what point is a module too small to make sense for sharing behavior?
blackmesa has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
BrazenBraden has quit [Quit: Leaving]
symm- has quit [Ping timeout: 268 seconds]
devoldmx has quit [Remote host closed the connection]
<[k-> which fruit is considered the lowliest of the low among all the fruits?
<havenwood> otacon-: Empty would be too small to make sense. Hem.
solars has joined #ruby
guilherme has joined #ruby
codecop has joined #ruby
guilherme is now known as Guest305
<otacon-> havenwood: proper usage, or no? https://gist.github.com/brdrgz/128c8816bca94c3ebe26
<havenwood> otacon-: looking
blackmesa has quit [Ping timeout: 246 seconds]
<[k-> you should have given the gist first
lampshades has joined #ruby
<otacon-> [k-: separate questions, i think.
lampshad_ has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
bigbadbear has joined #ruby
trautwein has joined #ruby
araujo_ has quit [Quit: Leaving]
psy_ has joined #ruby
eminencehc has quit [Remote host closed the connection]
TheWhip has joined #ruby
psy_ has quit [Max SendQ exceeded]
gambl0re has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
gambl0re has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Deviad has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
bigbadbear has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
rbowlby has quit []
bigkevmcd has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
arup_r has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
nfk|laptop has joined #ruby
arup_r_ has joined #ruby
drewvanstone has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
FrankD has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
Ilyes512 has joined #ruby
piotrj has joined #ruby
_djbkd has quit [Quit: My people need me...]
arturmartins has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Pathfinder has joined #ruby
agent_white has quit [Quit: happy_birf_darkf]
arturmartins has quit [Client Quit]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
trautwei_ has joined #ruby
<otacon-> havenwood: anything particularly foul there?
beast has joined #ruby
jun_ has joined #ruby
trautwein has quit [Ping timeout: 246 seconds]
<havenwood> otacon-: Where do the dates come from, I'm curious? Why does a single date have an end date?
ndrei has joined #ruby
darkf_ has joined #ruby
ndrei_ has joined #ruby
DoubleMalt has joined #ruby
casadei has joined #ruby
darkf has quit [Ping timeout: 240 seconds]
<havenwood> otacon-: I don't think extracting a module for those two methods is a particularly good idea. I'd be curious to see what they both looked like if you made them entirely separately. You might try asking for suggestions for refactoring from that vantage.
piotrj has quit [Remote host closed the connection]
TheWhip has quit [Remote host closed the connection]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 268 seconds]
<otacon-> do you mean having two modules, Validatable and Renderable, or would it be a better idea to move those to ActivityFeedDate?
<otacon-> and do away with the module(s) entirely
jimbow has joined #ruby
atomical has joined #ruby
<otacon-> let me add the exhibit methods for context
psy_ has quit [Ping timeout: 260 seconds]
casadei has quit [Ping timeout: 264 seconds]
jun_ has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
<havenwood> !ban jimbow !P
<otacon-> havenwood: updated
jimbow was banned on #ruby by ChanServ [jimbow!*@*]
jimbow was kicked from #ruby by ChanServ [User is banned from this channel]
<arup_r_> one more kick.. yay!
beast has quit [Quit: Leaving]
varunwachaspati has quit [Quit: Connection closed for inactivity]
rdark has joined #ruby
dawkirst has joined #ruby
freezevee has joined #ruby
<havenwood> otacon-: I just meant to show a separate ActivityFeedDateRange and ActivityFeedSingleDate with no inheritance or mixins but both fully functional. I thought that might be a nice exercise to see where exactly the differences are and might get you better suggestions on refactoring.
SCHAAP137 has joined #ruby
Lildirt has quit [Ping timeout: 255 seconds]
firstdayonthejob has quit [Ping timeout: 246 seconds]
dawkirst has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
ta has quit [Remote host closed the connection]
davedev2_ has quit []
PlasmaStar has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
Lildirt has joined #ruby
moeabdol3 has joined #ruby
moeabdol2 has quit [Ping timeout: 252 seconds]
Porfa has joined #ruby
PlasmaStar has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
devoldmx has joined #ruby
Porfa has quit [Quit: Porfa]
alexUaN has quit [Quit: alexUaN]
krz has quit [Quit: WeeChat 1.2]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
felixr has joined #ruby
psy_ has joined #ruby
cih has joined #ruby
futilegames has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Deviad has quit [Ping timeout: 265 seconds]
otacon- has quit [Quit: Lost terminal]
houhoulis has quit [Remote host closed the connection]
drptbl has joined #ruby
drptbl has quit [Client Quit]
RegulationD has joined #ruby
anisha has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
anisha has quit [Changing host]
Hounddog has joined #ruby
lipoqil has joined #ruby
Macaveli has joined #ruby
dawkirst has joined #ruby
platzhirsch has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
futilegames has quit [Ping timeout: 240 seconds]
tawaffan has quit []
havenwood has quit [Ping timeout: 264 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
futilegames has joined #ruby
qba73 has joined #ruby
platzhirsch has left #ruby [#ruby]
mikecmpbll has joined #ruby
piotrj has joined #ruby
aganov has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ilyes512 has joined #ruby
skade has joined #ruby
drptbl has joined #ruby
joonty has joined #ruby
charliesome has joined #ruby
tiredcat is now known as straycat
lampshades has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Timba-as has joined #ruby
renderful has joined #ruby
charliesome has quit [Client Quit]
chthon has joined #ruby
mhib has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
dawkirst has quit [Quit: Leaving...]
Gnomethrower has quit [Ping timeout: 256 seconds]
renderful has quit [Ping timeout: 244 seconds]
<adaedra> Hi
dikaio has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
herbst has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
tuor has quit [Quit: WeeChat 1.1.1]
<[k-> hello
Musashi007 has quit [Quit: Musashi007]
sbhatore has joined #ruby
wookiehangover has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
Kendos-Kenlen has joined #ruby
Musashi007 has quit [Client Quit]
Spami has joined #ruby
stardiviner has joined #ruby
Musashi007 has joined #ruby
chthon has quit [Quit: Ex-Chat]
mhib has quit [Remote host closed the connection]
lxsameer has joined #ruby
Anti-Pizza has quit [Read error: Connection reset by peer]
straycat is now known as tiredcat
zotherstupidguy has joined #ruby
futilegames_ has joined #ruby
charliesome has joined #ruby
Burgestrand has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
tuor has joined #ruby
futilegames has quit [Ping timeout: 256 seconds]
futilegames_ is now known as futilegames
devbug has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
dmolina has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
peteykun has joined #ruby
c0m0 has joined #ruby
Pupeno has joined #ruby
qiukun has joined #ruby
grassdog has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja_ has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Ping timeout: 240 seconds]
UtkarshRay has joined #ruby
Xeago has joined #ruby
mondayrain has joined #ruby
iamninja_ has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
sanjayu has quit [Ping timeout: 246 seconds]
ta has joined #ruby
grassdog has quit [Quit: Lingo: www.lingoirc.com]
<certainty> ho
avelldiroll is now known as plantigrade
blackmesa has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plantigrade is now known as avelldiroll
devoldmx has joined #ruby
Zai00 has joined #ruby
gustav__ has joined #ruby
davidhq has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Siyfion has joined #ruby
Sigma00 has quit [Quit: ZNC - http://znc.in]
sbhatore has quit [Ping timeout: 240 seconds]
mxrguspxrt has joined #ruby
mxrguspxrt has quit [Client Quit]
soloone has quit [Changing host]
soloone has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
sbhatore has joined #ruby
leafybasil has joined #ruby
Macaveli has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
gustav__ has quit [Remote host closed the connection]
sanjayu has joined #ruby
blackmesa has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
newbieruby has joined #ruby
Zai00 has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<newbieruby> Hey guys, I'm running ruby code through console and something is going wrong. Luckily it's logging to STDOUT but i don't know how to read or acces the log. How does stdout work? how do i check the error log?
<jhass> newbieruby: stdout, unless you redirect it, is connected to your terminal, it's right displayed
Anti-Pizza has joined #ruby
piotrj has quit [Remote host closed the connection]
eminencehc has quit [Ping timeout: 260 seconds]
<newbieruby> I'm running it through windows command promt, i have no additional terminals etc where there could be output and it's not displayed in the windows console. just the message "logging to STDOUT initialized with level INFO"
marwinism has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
<yorickpeterse> morning
piotrj has joined #ruby
futilegames has quit [Ping timeout: 264 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 264 seconds]
PaulCape_ has joined #ruby
htmldrum has quit [Ping timeout: 268 seconds]
shredding has joined #ruby
casadei has joined #ruby
PaulCapestany has quit [Ping timeout: 265 seconds]
<jhass> newbieruby: probably there just aren't any log messages?
timonv has joined #ruby
jenrzzz has joined #ruby
postmodern has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
<newbieruby> jhass: Maybe not, but the code stops midway with the message logging to stdout. So I thought there might be answers there
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
htmldrum has joined #ruby
blaxter has joined #ruby
casadei has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
arturmartins has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Zai00 has joined #ruby
SylarRuby has quit []
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has joined #ruby
beast has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
arup_r_ has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 264 seconds]
stamina has joined #ruby
Ilyes512 has joined #ruby
Macaveli has joined #ruby
Pathfinder has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
beauby has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
gustav__ has joined #ruby
dravine_ has joined #ruby
Burgestrand has quit []
bvthanh has joined #ruby
Macaveli has quit [Remote host closed the connection]
dravine has quit [Ping timeout: 265 seconds]
dravine_ is now known as dravine
<livcd> what are some of the upcoming ruby 3 features ?
PaulCapestany has joined #ruby
<certainty> who knows
gustav__ has quit [Remote host closed the connection]
<jhass> the future knows
<adaedra> But I'm tired of waiting for the future!
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
<adaedra> Ah want it now!
Kendos-Kenlen has quit [Quit: Konversation terminated!]
PaulCape_ has quit [Ping timeout: 272 seconds]
Kendos-Kenlen has joined #ruby
Xeago has quit [Remote host closed the connection]
nettoweb has joined #ruby
<gregf_> i want patience and i want it now!
<gregf_> is ruby3 going to be faster than php?
<certainty> we'll see
dravine_ has joined #ruby
Flyy7 has joined #ruby
neanderslob has quit [Remote host closed the connection]
dravine has quit [Ping timeout: 250 seconds]
dravine_ is now known as dravine
ob_ has joined #ruby
<livcd> i though ruby is generally faster than php
<livcd> thought*
astrobunny has quit [Remote host closed the connection]
<livcd> and python as well
<adaedra> They all have different performance in different situations and different use cases
TvL2386 has joined #ruby
arup_r has joined #ruby
<certainty> there are rumors though about things that might or might not come. Matz' talked about them. (last year i believe)
Voker57 has joined #ruby
Anti-Pizza has quit [Read error: Connection reset by peer]
drptbl has joined #ruby
jenrzzz has joined #ruby
felixr has quit [Ping timeout: 268 seconds]
peteykun has quit [Ping timeout: 240 seconds]
tfitts has quit [Read error: Connection reset by peer]
TheWhip has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
newbieruby has quit [Quit: Page closed]
eminencehc has joined #ruby
ledestin has joined #ruby
PaulCape_ has joined #ruby
krz has joined #ruby
marr has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
eminencehc has quit [Ping timeout: 250 seconds]
tuor has quit [Quit: WeeChat 1.1.1]
nfk|laptop has joined #ruby
tuor has joined #ruby
mondayrain has quit [Ping timeout: 264 seconds]
K1MOS has joined #ruby
tagrudev has quit [Remote host closed the connection]
tagrudev has joined #ruby
tvw has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Pupeno has quit [Remote host closed the connection]
apt-get has joined #ruby
emilkarl has quit [Ping timeout: 240 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
TheWhip has quit [Remote host closed the connection]
Pupeno has joined #ruby
giuseppesolinas has joined #ruby
drewvanstone has joined #ruby
giuseppesolinas_ has joined #ruby
Rickmasta has joined #ruby
bvthanh has quit [Quit: Textual IRC Client: www.textualapp.com]
TheWhip has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
PaulCapestany has joined #ruby
TheWhip_ has joined #ruby
PaulCape_ has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
drewvanstone has quit [Ping timeout: 250 seconds]
beauby has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Ping timeout: 250 seconds]
tuor has quit [Remote host closed the connection]
tuor has joined #ruby
diegobiavati has joined #ruby
TheWhip has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
rodfersou has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
msb_ has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
tuor has quit [Client Quit]
tuor has joined #ruby
pawnbox has joined #ruby
pawnbox_ has joined #ruby
tuor has quit [Client Quit]
tuor has joined #ruby
michael_mbp has joined #ruby
PaulCapestany has quit [Max SendQ exceeded]
howdoi has joined #ruby
tuor has quit [Client Quit]
tuor has joined #ruby
dhjondoh has joined #ruby
PaulCapestany has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
msb_ has joined #ruby
dhjondoh has quit [Client Quit]
iamninja_ has joined #ruby
subshad has joined #ruby
Porfa has joined #ruby
iamninja_ has quit [Ping timeout: 246 seconds]
qiukun has quit [Quit: qiukun]
glenn_ has quit [Quit: Konversation terminated!]
ramfjord has joined #ruby
Ilyes512 has joined #ruby
ericjphillips has joined #ruby
piotrj has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
piotrj has joined #ruby
Anti-Pizza has joined #ruby
jenrzzz has joined #ruby
dhjondoh has joined #ruby
tuor has quit [Quit: WeeChat 1.1.1]
tuor has joined #ruby
darkf_ is now known as darkf
pawnbox_ has quit [Remote host closed the connection]
riotjones has quit [Quit: Leaving...]
haraoka has quit [Ping timeout: 250 seconds]
Azure has quit [Quit: Oops.]
tuor has quit [Client Quit]
tuor has joined #ruby
PaulCape_ has joined #ruby
Azure has joined #ruby
Flyy7 has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
sbhatore has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheWhip_ has quit [Remote host closed the connection]
PaulCapestany has quit [Ping timeout: 272 seconds]
diegobiavati_ has joined #ruby
tuor has quit [Client Quit]
apt-get has quit [Read error: Connection reset by peer]
tuor has joined #ruby
apt-get has joined #ruby
diegobiavati has quit [Ping timeout: 252 seconds]
casadei has joined #ruby
keen___________0 has quit [Read error: Connection reset by peer]
parduse has quit [Ping timeout: 268 seconds]
tuor has quit [Client Quit]
JaRe_Ax has joined #ruby
parduse has joined #ruby
keen___________0 has joined #ruby
Flying_Squirrel has joined #ruby
casadei has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
JaReAx has quit [Ping timeout: 252 seconds]
JaRe_Ax is now known as JaReAx
jokester has joined #ruby
<shevy> what might come
freerobby has joined #ruby
<shevy> tell me
tuor has joined #ruby
tuor has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
SylarRuby has joined #ruby
phutchins1 has joined #ruby
Pathfinder has joined #ruby
axiomatic_345 has joined #ruby
platzhirsch has joined #ruby
shredding has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
TheWhip has joined #ruby
Pupeno has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
bigkevmcd has joined #ruby
solocshaw has joined #ruby
krz has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
<shevy> certainty teeeeelll of the future!
TheWhip_ has joined #ruby
tsujp has joined #ruby
charliesome has joined #ruby
Pupeno has quit [Client Quit]
PaulCapestany has joined #ruby
Flying_Squirrel has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
<jhass> Telling the future, with certainty
blackmesa has joined #ruby
PaulCape_ has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
TheWhip has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
Xeago has joined #ruby
krz has joined #ruby
jenrzzz has joined #ruby
decoponyo has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
decoponio has quit [Ping timeout: 246 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Balzrael has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
ericjphillips has quit [Quit: Leaving.]
davedev24 has joined #ruby
TheWhip_ has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
TheWhip has joined #ruby
iamninja_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
qiukun has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 240 seconds]
but3k4 has joined #ruby
Ilyes512 has joined #ruby
dhjondoh has joined #ruby
apt-get has quit [Read error: No route to host]
ldnunes has joined #ruby
apt-get has joined #ruby
Coldblackice has quit [Ping timeout: 255 seconds]
syath has joined #ruby
<Porfa> hello, good morning
cirenyc has joined #ruby
TheWhip has quit [Ping timeout: 260 seconds]
TheWhip has joined #ruby
arup_r_ has joined #ruby
cirenyc has quit [Client Quit]
TvL2386 has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
karapetyan has joined #ruby
cirenyc has joined #ruby
apt-get has quit [Client Quit]
TheWhip_ has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
beauby has joined #ruby
<Porfa> how can i send a a string to the interpreter i built out of other data inside vars?
<Xeago> Porfa: unsure what you mean.
<Xeago> >> a='Hello'; "Sentence: #{a} World"
<ruboto> Xeago # => "Sentence: Hello World" (https://eval.in/442224)
Ryzokuken has quit [Quit: Connection closed for inactivity]
<Porfa> hmm i have var1, var2, var3. var1 and 3 are static, var2.to_s is a random number obtained from an array, final = var1 + var2 +var3
<Porfa> and that outputs the command i want to send to the console, but it prints it on screen
gustav__ has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
<Xeago> Porfa: if you want it run, don't make it a string?
Deviad has joined #ruby
<Porfa> but is there a way to do the opposite?
TheWhip has quit [Ping timeout: 264 seconds]
krz has quit [Ping timeout: 264 seconds]
<Xeago> well, you eval it :|
xcesariox has joined #ruby
<Xeago> but what I think you want is to bind the execution at that point in time
<Burgestrand> Porfa: why do you have it in quotes?
Anti-Pizza has quit [Read error: Connection reset by peer]
<Xeago> Try something like foo = ary.map {|e| lambda{ driver(e) }; foo.each {|f| f.call }
cirenyc has quit [Quit: Leaving...]
sepp2k has joined #ruby
<Xeago> So rather then making a array of strings, you'll make an array of lambda's
charliesome has joined #ruby
jcromartie has joined #ruby
vondruch has quit [Quit: Ex-Chat]
_el_fer_ has joined #ruby
jenrzzz has joined #ruby
TheWhip_ has quit [Remote host closed the connection]
minimalism has quit [Quit: leaving]
_mak has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
hagabaka has quit [Quit: No Ping reply in 180 seconds.]
karapetyan has joined #ruby
skade has joined #ruby
InternetFriend has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
PaulCape_ has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
TvL2386 has joined #ruby
fella5s has quit [Quit: Leaving]
psy_ has joined #ruby
dhjondoh1 has joined #ruby
PaulCapestany has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
dhjondoh has quit [Ping timeout: 250 seconds]
dhjondoh1 is now known as dhjondoh
araujo has quit [Ping timeout: 250 seconds]
<_el_fer_> hey ruby, good morning at least for me
yfeldblum has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has quit [Read error: Connection reset by peer]
<Porfa> Xeago: i can't get my way around it
Kendos-Kenlen has joined #ruby
<Xeago> Porfa: if you want to run it, just don't make it a string?
araujo has joined #ruby
Kendos-Kenlen has quit [Read error: Connection reset by peer]
qiukun has quit [Quit: qiukun]
<Porfa> but how can i make it not a string and still craft my command from the variables?
<Xeago> If you want to run it at a later time, bind it using a lambda (you'll get an object returned) which you can #call later to invoke the code.
<Porfa> i have to learn lambda, I'm really new and these are the first times I'm using arrays and loops
Kendos-Kenlen has joined #ruby
<shevy> man
<shevy> you don't have to learn lambda
<shevy> you have to improve on what you currently know
vondruch has joined #ruby
blackmesa has joined #ruby
araujo has quit [Max SendQ exceeded]
dhjondoh1 has joined #ruby
allcentury has joined #ruby
gustav__ has quit [Remote host closed the connection]
<Porfa> hey shevy whats up?
<Porfa> :)
dhjondoh has quit [Ping timeout: 244 seconds]
dhjondoh1 is now known as dhjondoh
<certainty> shevy: your future is dark
<certainty> xD
<certainty> shevy softtypes was one of the things i believe
<shevy> hmm
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
jcromartie has joined #ruby
Rollabunna has joined #ruby
<Porfa> if someone could crack that crap for me i would look into it and learn, that's what i do when i can't do soothing here, after reading the code i understand and i can handle the problem myself when i encounter it again
<Porfa> but i guess everyone has their own method of doing things
RealMarc has quit [Ping timeout: 256 seconds]
<shevy> no you don't just listen
<Porfa> so shevy, do you understand what i am trying to do with that script? (bad denting aside)
<shevy> you don't even want to indent properly
<Porfa> and can you tell me what i do specifically need to learn so i can do it?
<Porfa> no one taught me to indent, i don't get indention at all, for me i'd use tabs but i understand ruby prefers twospaces
araujo has joined #ruby
araujo has joined #ruby
<shevy> this is not a question of tabs versus spaces
<shevy> you simply indent incorrectly
<shevy> it's a problem that begins even before the tabs versus spaces situation!
<Porfa> i know that
araujo has quit [Max SendQ exceeded]
<shevy> this is "chaotic indenting"
<shevy> its ultimate aim is to drive people who look at it nuts
RegulationD has quit [Ping timeout: 244 seconds]
<Porfa> but the first things i've done, when i came here, someone hit my ears because i was using tabs
<shevy> yes
<shevy> don't use tabs
<Porfa> i feel bad for that
<shevy> 2 spaces
<Porfa> why the hell is that hell?
araujo has joined #ruby
gustav__ has joined #ruby
<Porfa> can you indent it for me then?
<tobiasvl> what fresh hell is this
<shevy> yeah
<Porfa> hahahaha
<Porfa> (fresh hell )
hagabaka has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Porfa> hmmm
Guest305 has quit [Ping timeout: 264 seconds]
krisquigley has quit [Remote host closed the connection]
minimalism has joined #ruby
<shevy> what is ALQDETALHESPB
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
IceyEC_ has quit [Remote host closed the connection]
araujo has quit [Max SendQ exceeded]
<Porfa> ALQDETALHESPB is the name of the array, and it's that name because it's the same name in the database field I'm putting that data into.
<shevy> so it is an array
<shevy> does this code work 100%:
<shevy> driver.find_element(:id, "f04_0002").send_keys(ALQDETALHESPB[1])
araujo has joined #ruby
<Porfa> yes
iceyec has joined #ruby
prestorium has joined #ruby
<shevy> and this command does what? does it return a string? does it print a string?
p0wn3d has joined #ruby
_mak has joined #ruby
<shevy> oh
<shevy> Porfa, add this to the requires:
<shevy> require 'pp'
<shevy> then do, before the last puts - pp foo
<shevy> and run the script again
<Porfa> that command clicks on the f04_0002 element of the page I'm using, and writes the string that it's on ALQDETALHESPB, position 2
<Porfa> ok
<shevy> yeah ok so you can just iterate over your array
avril14th has joined #ruby
<shevy> you already store all the information you require in your foo array
gustav__ has quit [Remote host closed the connection]
* avril14th waves hi
<shevy> foo = numbers.each_with_index.map do |number, idx|
<shevy> ^^^ there you have the number on the first slot, and the index on the second slot
gustav__ has joined #ruby
<shevy> and please call your index index and not idx or fancy_pants
Burgestrand has quit []
casadei has joined #ruby
Flyy7 has joined #ruby
renderful has joined #ruby
<Porfa> my require 'pp' returns false and i can't find corresponding gem name on google
<jhass> it's in stdlib
PaulCapestany has joined #ruby
<jhass> false means its already loaded
blackmesa has quit [Ping timeout: 250 seconds]
PaulCape_ has quit [Ping timeout: 240 seconds]
gustav__ has quit [Ping timeout: 264 seconds]
<shevy> Porfa: here is pp http://ruby-doc.org/stdlib-2.2.3/libdoc/pp/rdoc/PP.html it's worth to have a look at this page once, you'll happily use pp whenever you get confused about your data structures, when you have big arrays and big hashes
wldcordeiro_ has quit [Quit: Konversation terminated!]
bankair has quit [Ping timeout: 256 seconds]
casadei has quit [Ping timeout: 260 seconds]
bankair has joined #ruby
<Porfa> shevy: the html element starts count at 1 and the array at 0, that's why it's ilke that
sbhatore has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
dirtyonekanobi has joined #ruby
<gregf_> avril14th: long time no see
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
<shevy> Porfa won't matter, you have a number
beauby has quit [Ping timeout: 264 seconds]
<shevy> if you need to use array-formats, you deduct 1 from your index number
Flyy7 has quit [Quit: leaving]
<avril14th> gregf_: indeed. way busy ^^
<shevy> you said that driver.find_element(:id, "f04_0002").send_keys(ALQDETALHESPB[1]) is correct and works, and you got all the information you require already in your array, so all you have to do is iterate over it
<Porfa> still, if it sends a number instead of the text that correspondent number holds, I'm happy.
JoL1hAHN is now known as nrk
segfalt has quit [Quit: segfalt]
krisquigley has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
atomical has joined #ruby
karapetyan has joined #ruby
<Porfa> OH I GET IT
<shevy> did you use pp?
<Porfa> yes, but that's not it, I'm just printing the contents of the array the "way" i want, but I'm not interested in printing them i guess, I just need to iterate
julieeharshaw has quit [Ping timeout: 256 seconds]
iszak has quit [Ping timeout: 256 seconds]
iszak has joined #ruby
julieeharshaw has joined #ruby
ericjphillips has joined #ruby
<shevy> pp isn't when you want to print them
<shevy> it is when you want to look at it
<shevy> so you know where you are at in your code
TheWhip has joined #ruby
Motoservo has joined #ruby
<shevy> that way it'll be easier for you to iterate over it and extract what you need where you want it
<[k-> pp stands for pretty print though
<Porfa> pp is in ruby 2.2.1 ? because the site you sent me is ruby 2.2.3
<Porfa> and i did install something called "awesome print" and pp became avaiable
beauby has joined #ruby
Joshua__ has joined #ruby
<Joshua__> hello
<jhass> awesome_print provides ap, not pp
cirenyc has joined #ruby
<jhass> pp is in stdlib since like forever
<Porfa> ok
<Joshua__> I have an important question
<yorickpeterse> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
towski_ has joined #ruby
<Joshua__> Okay! One moment, its going to seem very amateur because, well I am an amateur at ruby.
cirenyc has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulCape_ has joined #ruby
charliesome has joined #ruby
<shevy> Porfa awesome print is annoying, pp is in stdlib
<shevy> the colours kill me in awesome print
futilegames has joined #ruby
Xeago has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Joshua__> So I'm wonder what tools I will need to be able to build an web-app that can take your information you provide and match it with other people on the website, thats pretty much it. At the moment im learning Ruby on Codeschool.com. Will i need anything else to make such an app??
futilegames has quit [Client Quit]
<_el_fer_> anything else other than what Joshua__ ?
<Joshua__> I'm not trying to make this app at the moment, i need experience im just wondering what else i will need to do something like this? Like i've heard about "server-side" things
<shevy> my happy webchatter friend
<_el_fer_> oh I see, yes you will need a server to make a "web-app" and a couple of pages read about it absolutely :)
asxbr has joined #ruby
<Joshua__> Are those the only tools?
<_el_fer_> maybe learning ruby language it's not the best to make first steps, IMHO
<jhass> Joshua__: what do you know already?
<Joshua__> Ive learned HTML/CSS
<Joshua__> Im diving into HTML5 and CSS3
<Joshua__> But to make an app like this im sure ill need something else? Or atleast KNOW something else
<jhass> you'll need a server side component, yes
<Joshua__> i just dont wanna spend ALL my time learning ruby if something else is gonna be important later down the road.
zenguy_pc has quit [Read error: No route to host]
edwardly has quit [Ping timeout: 268 seconds]
<jhass> to make a nice and responsive site you'll also need Javascript
<_el_fer_> any language would be okay, but you do need a backend or 'server side'
msb_ has quit [Ping timeout: 256 seconds]
Pathfinder has quit [Remote host closed the connection]
<jhass> but that can be added later
<Joshua__> I dont know much about server-side components, is there specific ones that are better ? is it like a language?
<jhass> Joshua__: going through https://pine.fm/LearnToProgram/ would be well invested time at this point
<_el_fer_> servers can be coded in any programming language
<jhass> then dabble a bit with http://sinatrarb.com/ to get a feeling how a web app and its backend interact
minimalism has quit [Quit: leaving]
andyrs has joined #ruby
msb_ has joined #ruby
<Joshua__> oh so you CODE a server?
<Joshua__> And thank you guys for the help, very much appreciated!!
<jhass> code is a general term, so say one code's HTML & CSS too
livathinos has quit [Remote host closed the connection]
<jhass> *some say
eGGsha has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
<Joshua__> Okay, im sorry ill rephrase that
leafybas_ has joined #ruby
<jhass> but you'll need to know a programming language, HTML & CSS are so called markup languages
<_el_fer_> you write code that runs in servers
<Joshua__> so basically, you can program a server with a language such as ruby?
<_el_fer_> to be precise
<jhass> basically
<_el_fer_> yes you do
<Joshua__> okay
iamninja_ has quit [Read error: Connection reset by peer]
<Joshua__> I'm gonna be an annoying person on her asking many questions if im stuck on a part in my current course haha
<Joshua__> are you guys on her alot?
iamninja_ has joined #ruby
<jhass> great
<Joshua__> here**
<jhass> usually there's someone around
<jhass> don't focus on people so much, just ask the channel
<jhass> also
<jhass> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<Joshua__> How much experience do you guys have or most people on here other than noobies
amystephen has joined #ruby
<_el_fer_> I guess people here are newcomers like me, others have a wide expertise
<jhass> from your level to experienced seniors with dozens of years of experience, you meet all levels here
leafybas_ has quit [Remote host closed the connection]
<Joshua__> Okay awesome
leafybas_ has joined #ruby
<Joshua__> Thank you for the help
<Joshua__> Have any of you created web apps i can see? id like to check one out if you have it published online or something
TheWhip has quit [Remote host closed the connection]
<Joshua__> Just for fun, if not its okay.
leafybasil has quit [Read error: Connection reset by peer]
<jhass> mmh, I contribute to diaspora*, though the code quality over there is still kinda meh
<Joshua__> diaspora?
Burgestrand has joined #ruby
<jhass> you should be able to google it
<jhass> (which you should do in general btw, show you did your research on a particular problem)
jcromartie has joined #ruby
minimalism has joined #ruby
<Porfa> i don't get this, i already know how to set up my data into an array the way i want it, but i can't seem to get it out into the interpreter, fouesaihfxiufur
<jhass> Porfa: current code?
<Porfa> just onto the screen, this might look the most simple thing to you, sure but this is driving me nuts, i missing a very simple piece in this
<Porfa> jhass: gisting
umgrosscol has joined #ruby
<Burgestrand> Still at it I see!
drewvanstone has joined #ruby
krz has joined #ruby
baegle has quit [Ping timeout: 272 seconds]
prestorium has quit [Quit: Leaving]
<jhass> Burgestrand: you know Porfa, it'll go on for a couple of days :P
<Burgestrand> Slightly cleaner now!
<Burgestrand> I still don't get it why you surround it with "-quotes and puts it.
anisha has quit [Ping timeout: 264 seconds]
<Porfa> because if i take them out, i can't print the string on the screen
<jhass> "the string" ?
<Porfa> because of the "'s
<Burgestrand> Porfa: Why do you want to print the string on the screen?
<Porfa> i don't want to print the string on the string, i want to send the output strings as commands into the interpreter.
<Porfa> screen*
<jhass> then back to step one, why do you add "?
ndrei has joined #ruby
dstarh has joined #ruby
<Joshua__> do you guys recommend any books i can buy to help me learn ruby on top of codeschool?
<Burgestrand> Maybe it wants both?
<jhass> Joshua__: I already linked you one
<Burgestrand> Joshua__: are you a new programmer, or coming from another language?
<Joshua__> For some reason id prefer a physical book
<Joshua__> i feel like itd be easier for me
<jhass> Joshua__: you can buy it
<Porfa> I'm using the data on the array to know how many lines of ( driver.find_element(:id, "f04_000$$").send_keys(ALQDETALHESPB[$$]) ) i must do
<jhass> I think there are physical copies
<shevy> lol
towski_ has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 268 seconds]
<shevy> Porfa did not read anything what was written before :)
<Burgestrand> :(
<shevy> and where from did $$ come ...
<Porfa> shevy: i did, and i don't understand what you mean "iterate over it"
<jhass> Porfa: just loop
<jhass> you don't need to generate source code
Anti-Pizza has joined #ruby
baegle has joined #ruby
<Joshua__> jhass:is it the "pine" that i can buy?
<Burgestrand> It's already looping, but for some reason it is surrounding it's code in "-quotes.
<shevy> Porfa you already iterate in your own code!!!! .each <--- this is an iteration
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
ob_ has left #ruby ["Leaving"]
<Burgestrand> Learn to Program by Chris Pine. Ah yes. :)
<jhass> pragmatism: get away from the idea of generating source code as far as possible. Transform arrays into other arrays, do actions for each item of an array
gorodetsky has joined #ruby
<jhass> bah, Porfa ^, sorry
<shevy> hey
<shevy> the sentence works anyway
<shevy> :)
<jhass> Burgestrand: "they" ;)
eGGsha has joined #ruby
sanjayu has quit [Quit: Leaving]
<gorodetsky> Hey folks!
prestorium has joined #ruby
<Burgestrand> jhass: is a person a they?
<Burgestrand> jhass: and not an it?
<Porfa> i don't get it
<Porfa> sorry guys
<Burgestrand> Cool, TIL!
<shevy> yes you don't get it
<Porfa> thank you shevy really
<Porfa> I'm killing myself for two days on how to create this crap :p
<Burgestrand> Porfa: remove your "-quotes.
<Burgestrand> The outer ones.
<Burgestrand> And the puts.
<shevy> hehe
<jhass> great, my FF stopped loading anything
<shevy> it's on strike
<Burgestrand> Is an FF sentient enough to be a they?
<Porfa> Burgestrand: because of the stuff inside the quotes the command doesn't get passed into the interpreter
<Porfa> :022?>
<jhass> Burgestrand: I have no evidence against that at this point
<Porfa> i can't escape some of the characters in it
<shevy> Porfa - you should work on simpler problems :)
malconis has joined #ruby
Xeago has joined #ruby
<Burgestrand> Porfa: stuff inside " is generally not sent to the interpreter, unless you're doing special things inside the "-stuff.
<jhass> Porfa: show the version without quotes and the error it's giving you
<Burgestrand> >> "2 + 1"
<ruboto> Burgestrand # => "2 + 1" (https://eval.in/442265)
malconis has quit [Remote host closed the connection]
kp666 has quit [Remote host closed the connection]
<Porfa> jhass: ok
ndrei has quit [Ping timeout: 252 seconds]
malconis has joined #ruby
tsujp has joined #ruby
<Burgestrand> I've never thought that telling an expression from a string could be tricky.
Motoservo has quit [Quit: Over & out.]
ndrei has joined #ruby
<Burgestrand> But I guess it's just one of those things you have to learn, like numbers are different from text or what not.
nug has joined #ruby
Guest305 has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
<jhass> Porfa: so, where do you define driver?
<shevy> if you only would have used pp foo ...
nug is now known as cfouts
<Porfa> jhass: it's not at the moment, but i think i should get "NameError: undefined local variable or method `driver' for main:Object" and I'm not even getting there
Xeago has quit [Remote host closed the connection]
corpsicle has quit [Ping timeout: 264 seconds]
corpsicle has joined #ruby
andyrs has joined #ruby
<jhass> Porfa: get your things straight, you should be getting that error or no output at all with that code
arup_r_ has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
<jhass> you didn't run the code you showed for the behavior you described
<shevy> mystery code
andyrs has quit [Client Quit]
<Porfa> the line is driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB[#{index+0}])
<jhass> actually you should've gotten a syntax error with those \"
<jhass> that's not what you pasted into irb
subshad has quit [Ping timeout: 260 seconds]
<jhass> we don't see your screen so we can't magically know what you're doing, but what you've shown doesn't go together
unshadow has joined #ruby
lkba_ has joined #ruby
anisha has joined #ruby
<Porfa> ok i will try again.
subshad has joined #ruby
Joshua__ has quit [Quit: Page closed]
sanguisdex has joined #ruby
<Porfa> it is the same :| irb just stands there with a question mark
j____ has joined #ruby
<shevy> yeah
<shevy> #{index+0}
bkxd has joined #ruby
<shevy> please stop all of this
<shevy> break it down into variables
<shevy> then use those variables
andyrs has joined #ruby
_el_fer_ has quit [Quit: Leaving]
prestorium has quit [Quit: Leaving]
<jhass> Porfa: stop pasting it into irb for a moment
<jhass> save it to a file and do ruby that_file.rb
<shevy> :)
lkba has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
<Porfa> gist.rb:22: syntax error, unexpected keyword_end, expecting ']'
<Porfa> heh
<jhass> there you go
<jhass> fix that
blackmesa has joined #ruby
andyrs has quit [Client Quit]
<jhass> and adding quotes somewhere doesn't count as fi
<jhass> *fix
freerobby has joined #ruby
skweek has quit [Remote host closed the connection]
bmurt has joined #ruby
<j____> dasdsadwuiruwijajiJijdiewjijwiadieu
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
<jhass> j____: how's your cat?
<j____> fine
prestorium has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
`tim` has joined #ruby
<adaedra> adieu
devoldmx has quit [Ping timeout: 260 seconds]
bigbadbear has joined #ruby
avi has joined #ruby
Psi-Jack has joined #ruby
sankaber has joined #ruby
Ilyes512 has joined #ruby
ruurd has joined #ruby
avi has quit [Client Quit]
prestorium has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
j____ has quit [Quit: Lost terminal]
xet7 has quit [Quit: Leaving]
prestorium has joined #ruby
system64 has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
rubybeginner has joined #ruby
<rubybeginner> umm, hey guys, is this is chat for ruby language?
InternetFriend has joined #ruby
<jhass> yes
<ruurd> yep
<ruurd> welcom
<ruurd> e
<rubybeginner> nice, then i got on the right place.
skweek has joined #ruby
JDiPierro has joined #ruby
<Burgestrand> ?guys rubybeginner
<ruboto> rubybeginner, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<Porfa> yeah welcome, and don't talk with me, you will learn nothing! but these guys are great
<rubybeginner> thanks! How are you guys? Hope you're having a good day.
leafybasil has joined #ruby
<rubybeginner> Right...
<adaedra> õ_o
<Burgestrand> :)
sanguisdex has quit [Quit: Leaving.]
<rubybeginner> i feel stupid :D
beauby has quit [Ping timeout: 272 seconds]
<ruurd> we all are
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Burgestrand> It's normal, it'll pass!
<jhass> I'm sure we can help you over the current urge though, where are you stuck?
<Burgestrand> Then it'll come back again.
<ruurd> so Burgestrand most languages use plural male for mixed groups.
<Burgestrand> It's like a wave.
<jhass> ?guys2 ruurd
<ruboto> ruurd, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
<rubybeginner> jhass I actually want to start programing.
<Burgestrand> This bot has everything!
<rubybeginner> If i can say so...
<jhass> rubybeginner: that's great
<Burgestrand> ?cookies
<ruboto> I don't know anything about cookies
<jhass> ?cookie Burgestrand
<ruboto> Burgestrand, here's your cookie:
<Burgestrand> See.
joufflu has joined #ruby
<Burgestrand> Everything, except plural cookies.
bigbadbear has quit [Ping timeout: 256 seconds]
<rubybeginner> so, i know a little about html and css, i know those arent languages
<ruurd> bah. newspeak.
<jhass> rubybeginner: https://pine.fm/LearnToProgram/ here's a generally recommended beginner book using Ruby
<rubybeginner> and i want to step forward into ruby world
<system64> Hello guys, I'm calling to_json() on a tree node with many children. How can I control level of depth?
<jhass> ruurd: as said please join #ruby-offtopic if you want to discuss that
leafybas_ has quit [Ping timeout: 264 seconds]
<rubybeginner> jhass: thanks a lot!
<Burgestrand> system64: I believe there's a "max_nesting" parameter.
casadei has joined #ruby
<rubybeginner> My friend is working in a company and he suggested me to watch lyndacom videos about ruby
<system64> Burgestrand: That just throws error, if depth exceeds
<Burgestrand> system64: what do you want instead of an error?
<system64> I want to stop printing children attribute after a certain depth
<jhass> system64: http://devdocs.io/ruby/json#method-i-generate you can pass the parameters mentioned there to to_json too
sanguisdex has joined #ruby
<jhass> as Burgestrand already pointed out max_nesting in particular
<Burgestrand> I wonder if there's a way to control what happens when max_nesting condition is reached…
sgambino has joined #ruby
<jhass> ah, I guess not
<system64> jhass: Are those options passed recursively to every object that needs to be converted to json?
<Porfa> yeah my array woerkd
<jhass> system64: probably easiest to have a function that returns a new tree limited to the desired depth
<jhass> I think so, yeah
iateadonut has joined #ruby
<Porfa> but the last bit doesn't pass the index, it's a syntax error i have no idea how to properly put the index inside the [ ] 's
<system64> I'll try it again, got some error last time I tried with options
<Burgestrand> No way to control it in the ruby stdlib at least.
<Burgestrand> Sorry, ruby core, bah.
<Burgestrand> … maybe, stdlib.
<Burgestrand> Pft.
<system64> but building a tree of certain depth, is something I didn't think of :D
<jhass> json is stdlib, yeah ;)
<Porfa> how do i properly call the index+1 in here? --> .send_keys(ALQDETALHESPB[#{index+1}])
<Burgestrand> Porfa: remove your #{}-thingies.
beauby has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whippythellama has joined #ruby
<rubybeginner> wow, u guys are soo smart allready.
<Burgestrand> Porfa: what text editor do yo uuse?
<Porfa> coda
allcentury has joined #ruby
<Burgestrand> Porfa: it should grey out all text after the #-sign.
<Porfa> it does
<Burgestrand> Good. That tells you that the code after the #-sign does not run. :)
PaulCapestany has joined #ruby
<ruurd> Porfa coda? The Panic Coda?
<Burgestrand> (it starts a comment)
<Porfa> (yes the panic coda)
<Porfa> yes Burgestrand , but in the whole line i have a # in there and it doesn't start a comment
<Porfa> whole line driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB[#index+1])
<Porfa> the first index gets passed
<Porfa> the second doesn't
<jhass> Porfa: foo("#{bar}") is different from foo(#{bar})
<Porfa> i see
<jhass> outside " it's just a comment
<system64> jhass: The options are not being passed recursively
<system64> I tried printing options in to_json()
<ruurd> Porfa any particular reason why?
PaulCape_ has quit [Ping timeout: 265 seconds]
apt-get has joined #ruby
<system64> For the first object, I get the options I passed - but for remaining I get JSON State object
<Burgestrand> Porfa: aye, but it's inside "-signs isn't it?
<Porfa> ruurd: yes, i have a database browser, sftp/ftp real time file preview, upload, etc etc.. i tried sublime text before, but some things don't work as i want
<jhass> system64: bummer
<Burgestrand> rubybeginner: already?
<jhass> so I stand with making a copy of the tree is probably the easiest way, unless the tree is exorbitantly large that is
<ruurd> Porfa but not a debugger. You could have a look at RubyMine...
<Porfa> ok
<system64> jhass: The tree is actually large
<Porfa> ill look into that thank yo
<Porfa> jet brains ruby mine, jet brains remind me of some fallout NPC burnout
<jhass> system64: well or rather if you want to copy out to a high depth I guess
bigkevmcd has quit [Quit: Outta here...]
dhjondoh has quit [Quit: dhjondoh]
InternetFriend has joined #ruby
_el_fer_ has joined #ruby
devdazed has joined #ruby
sanguisdex has left #ruby [#ruby]
JaRe_Ax has joined #ruby
<system64> jhass: Interesting, let me try using it
<system64> jhass: thanks :)
charliesome has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Read error: Connection reset by peer]
JaReAx has quit [Ping timeout: 250 seconds]
JaRe_Ax is now known as JaReAx
pawnbox has joined #ruby
spcmastertim has joined #ruby
krz has quit [Ping timeout: 268 seconds]
pyon has quit [Quit: fix config]
bigkevmcd has joined #ruby
ksteck has joined #ruby
pyon has joined #ruby
ericjphillips has quit [Quit: Leaving.]
joufflu has quit [Ping timeout: 244 seconds]
piotrj has quit [Remote host closed the connection]
jenrzzz has joined #ruby
piotrj has joined #ruby
workmad3_ is now known as workmad3
lkba has joined #ruby
victortyau has joined #ruby
<ruurd> Porfa these guys also sell IntelliJ which is a very well regarded Java IDE and they really know their stuff.
j____ has joined #ruby
dhollinger has joined #ruby
[k- has left #ruby [#ruby]
[k- has joined #ruby
<ruurd> Oops. people. people.
<certainty> hehe
codecop has quit [Remote host closed the connection]
lkba_ has quit [Ping timeout: 264 seconds]
platzhirsch has quit [Read error: Connection reset by peer]
krz has joined #ruby
vbatts|work has left #ruby ["found the other side of the rainbow"]
platzhirsch has joined #ruby
Flying_Squirrel has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
atomical_ has joined #ruby
PaulCape_ has joined #ruby
Jardayn has joined #ruby
dhollinger has quit [Client Quit]
atomical has quit [Ping timeout: 255 seconds]
luksaur has joined #ruby
PaulCapestany has quit [Ping timeout: 272 seconds]
platzhirsch has left #ruby [#ruby]
atomical has joined #ruby
EXID123 has joined #ruby
dorei has joined #ruby
jas02 has joined #ruby
platzhirsch has joined #ruby
<Porfa> hello again, driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB["#{index+1}"])
atomical_ has quit [Ping timeout: 255 seconds]
<Porfa> why do i get f04_0001 but no ALQDEALHESPB[1] ?
atomical_ has joined #ruby
rubybeginner has quit [Ping timeout: 255 seconds]
dhollinger has joined #ruby
<Burgestrand> Porfa: you get ALQDEALHESPB["1"]
<Porfa> hmmmm
<Burgestrand> Porfa: why did you add "-quotes again, considering I suggested you should remove the #{}-thing around `index + 1` in the ALQDEALHESPB?
eminencehc has joined #ruby
<Porfa> how can i get ALQDEALHESPB[1] then? because if i remove the quotes, the line becomes a comment
atomical has quit [Ping timeout: 255 seconds]
<Porfa> ok
bkxd has joined #ruby
diegoviola has joined #ruby
Guest305 has quit [Ping timeout: 252 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> this is an infinite loop with Porfa :)
<Porfa> hahaha
<Porfa> break break its done!
<shevy> Porfa you need INTEGERS for your array. if you have a string as number, convert it into a number. variable.to_i
<shevy> did I not tell you to use variables...
Siyfion has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
PaulCapestany has joined #ruby
tuor has joined #ruby
PaulCape_ has quit [Ping timeout: 260 seconds]
hydrozen has joined #ruby
eminencehc has quit [Ping timeout: 260 seconds]
Rollabunna has quit [Quit: Leaving...]
tkuchiki has quit [Remote host closed the connection]
<shevy> did we ever find out where driver comes from?
<Burgestrand> Porfa: why did you add "-quotes again, considering I suggested you should remove the #{}-thing around `index + 1` in the ALQDEALHESPB?
ZenDuck has joined #ruby
<Burgestrand> …
<Burgestrand> Porfa: ignore that, sorry.
<shevy> haha
<shevy> we are all stuck in a loop now!
<Porfa> shevy: lol driver is the selenium instance
<Burgestrand> I think my computer is sentient.
dravine has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
<shevy> Porfa it sounds as if selenium may be too complicated for you!
<Porfa> and everything is working now as expected
<shevy> [TIME STAMP]
<Porfa> LOL
<shevy> I'll remind you later again ;)
bkxd has quit [Ping timeout: 240 seconds]
<ZenDuck> Hi, I am using linuxbrew on a cluster (which uses ruby), and I have the following problem when trying to install something: Error: Input/output error @ rb_file_flock , thought this had something to do with flock so installed a new version (2.27) still happening...anybody know what is going on?
<tuor> jhass, so I tried to improve my code: https://gist.github.com/nod0n/d01024a5b6aecab2b1c7
gustav__ has joined #ruby
lkba_ has joined #ruby
<ZenDuck> ruby version: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
apt-get_ has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
AndChat-43764 has joined #ruby
<shevy> ZenDuck isn't this a file lock problem? perhaps some other process uses it?
dravine has joined #ruby
apt-get has quit [Ping timeout: 264 seconds]
freezevee has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
TvL2386 has quit [Ping timeout: 252 seconds]
<tuor> For all the people which help me a time ago to improve my code, here is a new version of my class: https://gist.github.com/nod0n/d01024a5b6aecab2b1c7
<ZenDuck> I think it is a file lock problem, but for the life of me I can figure out how to solve it. dont know how to determine if another process is using the file...
tsujp has quit [Quit: tsujp is snoozing]
<certainty> ZenDuck: lsof
<ZenDuck> the whole error is: Error: Input/output error @ rb_file_flock - /home/jq2/.cache/Homebrew/Formula/curl.brewing
Rickmasta has joined #ruby
<tuor> I tried to improve some stuff, but I know error handling is mostly missing and it's still not logging. Apart from this, what would you improve/change?
lkba_ has quit [Ping timeout: 264 seconds]
Kendos-Kenlen has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<ZenDuck> It is a cache directory, which I have recreated. Though this error is not specific to any brew formula, it fails with all brew formulas. lsof shows nothing :(
ndrei has quit [Ping timeout: 240 seconds]
Kendos-Kenlen has joined #ruby
<certainty> tuor: without having looked too close. this really looks like you want more objects
<ZenDuck> unless the brew ruby script has multiple processes somewhere that causes a lock...is that possible?
rubybeginner has joined #ruby
hal_9000_ has joined #ruby
<tuor> certainty, why? (what would be the benefit?)
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
gustav__ has quit [Remote host closed the connection]
<certainty> tuor: this class is huge. As i said, i haven't looked closely, but that's an indicator that it's doing too much
Xeago has joined #ruby
InternetFriend has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
<ZenDuck> has anyone here worked with brew formulas before (btw I know nothing of ruby...as in only know the name, and found this IRC)
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty> tuor: simple game. Summarize the responsibilities of that object.
<tuor> export or import templates from a zabbix server.
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
<certainty> so you have two responsiblities at least
<certainty> and it's either or
<certainty> so no need to have them together
Cyther has joined #ruby
<tuor> The thing is, it's using a gem for using the zabbix api. This class should give the missing possibility of the ZabbixApi gem.
symbol has joined #ruby
<tuor> certainty, ok. I'll think about how to separate them. But when they need the same code (some methods) what do I do then?
PlasmaStar has joined #ruby
based_pdev has joined #ruby
<certainty> tuor: find a way to share those common concerns
<tuor> ok. Then i should make one class for the shared stuff, and one for each function (import | export).
<certainty> tuor: i believe that all the actions are related to the import/export tasks, but if you look at the method prefixes you might notice that you already grouped them
<certainty> this is a good place to start and try to make them proper objects
<tuor> ok.
<certainty> or infixes rather
<certainty> the *_templates_* stuff for example
<certainty> then the import_*
<certainty> also looking at the top of the file
<certainty> you probably want a class to encapsulate the rules
wldcordeiro has joined #ruby
<certainty> that's how i'd start
tkuchiki has quit [Remote host closed the connection]
<tuor> ok. I'll think about it (and try).
Xeago has quit [Remote host closed the connection]
TvL2386 has joined #ruby
Xeago has joined #ruby
Meow-J has joined #ruby
pontiki has joined #ruby
Ilyes512 has joined #ruby
wldcordeiro_ has joined #ruby
nfk|laptop has quit [Quit: yawn]
cassioscabral has quit [Quit: cassioscabral]
Ilyes512 has quit [Client Quit]
dravine has quit [Ping timeout: 240 seconds]
tuor has quit [Remote host closed the connection]
tuor has joined #ruby
rubybeginner has quit [Ping timeout: 264 seconds]
Ilyes512 has joined #ruby
dravine has joined #ruby
Xeago has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
leafybasil has joined #ruby
dirtyonekanobi has quit [Quit: Connection closed for inactivity]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moparisthebest has left #ruby ["Leaving"]
rismoney1 has joined #ruby
jxv has joined #ruby
bigbadbear has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
bklane has joined #ruby
tuor has quit [Remote host closed the connection]
tuor has joined #ruby
bigbadbear has quit [Client Quit]
tomchapin has joined #ruby
prestorium_ has joined #ruby
mallu has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
twohlix has quit [Ping timeout: 264 seconds]
beauby has quit [Ping timeout: 244 seconds]
_el_fer_ has quit [Quit: Leaving]
avril14th has quit [Read error: Connection reset by peer]
InternetFriend has joined #ruby
rubybeginner has joined #ruby
Burgestrand has quit []
twohlix has joined #ruby
p0wn3d has quit [Ping timeout: 252 seconds]
tuor has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 240 seconds]
tuor has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
TPBallbag has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
fifo_ has joined #ruby
ruurd has joined #ruby
dome22xl has joined #ruby
prestorium_ is now known as prestorium
NeverDie has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
krisquigley has quit [Remote host closed the connection]
ZenDuck has quit [Quit: Page closed]
Encapsulation has quit [Quit: Leaving]
dopamean_ has joined #ruby
felixr has joined #ruby
krisquigley has joined #ruby
InternetFriend has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby
frmendes has joined #ruby
RegulationD has joined #ruby
nanoz has joined #ruby
Flying_Squirrel has quit [Ping timeout: 240 seconds]
Ilyes512 has joined #ruby
anisha has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
blackmesa has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
trautwei_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuor has quit [Remote host closed the connection]
tuor has joined #ruby
tkuchiki has quit [Remote host closed the connection]
arup_r has joined #ruby
<rubybeginner> umm
<rubybeginner> does anyone have a minute for a private chat?
AndChat-43764 has quit [Quit: Bye]
lkba has joined #ruby
<TPBallbag> hi rubybeginner, feel free to PM
jas02 has quit [Quit: jas02]
finisherr has joined #ruby
jgpawletko has joined #ruby
solars has quit [Ping timeout: 272 seconds]
cornerma1 has joined #ruby
mary5030 has joined #ruby
Ilyes512_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
p0wn3d has joined #ruby
Ilyes512 has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
blackmesa has quit [Ping timeout: 255 seconds]
fifo_ has left #ruby [#ruby]
nsuke has quit [Remote host closed the connection]
SylarRuby has quit [Remote host closed the connection]
felixr has quit [Ping timeout: 250 seconds]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
PaulCape_ has joined #ruby
andyrs has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
Ilyes512_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
PaulCapestany has quit [Ping timeout: 264 seconds]
cajone has left #ruby [#ruby]
rippa has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
drewvanstone has joined #ruby
pawnbox has joined #ruby
ruby-lang329 has joined #ruby
tuor has quit [Changing host]
tuor has joined #ruby
moeabdol3 has quit [Quit: WeeChat 1.3]
SylarRuby has joined #ruby
Xiti has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
cajone has joined #ruby
qba73_ has joined #ruby
evanjs has joined #ruby
havenwood has joined #ruby
skade has joined #ruby
Kendos-Kenlen_ has joined #ruby
drewvanstone has quit [Ping timeout: 250 seconds]
qba73__ has joined #ruby
Nego_Fua has joined #ruby
Kendos-Kenlen has quit [Read error: Connection reset by peer]
I has joined #ruby
SylarRuby has quit [Ping timeout: 264 seconds]
qba73 has quit [Read error: Connection reset by peer]
I is now known as Guest52475
aaeron has joined #ruby
qba73__ has quit [Client Quit]
huddy has joined #ruby
yardenbar has quit [Ping timeout: 265 seconds]
<Nego_Fua> Hello Rubyists!
n008f4g_ has joined #ruby
bklane has joined #ruby
delianides has joined #ruby
qba73_ has quit [Ping timeout: 250 seconds]
aaeron has quit [Client Quit]
maletor has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
rushed has joined #ruby
niftylettuce has joined #ruby
dfockler has joined #ruby
Xeago has joined #ruby
diegobiavati_ has quit [Ping timeout: 260 seconds]
[k-_ has joined #ruby
shmilan has joined #ruby
towski_ has joined #ruby
OmiKrOn has joined #ruby
<OmiKrOn> greetings
leafybas_ has joined #ruby
skweek has quit [Remote host closed the connection]
<OmiKrOn> is there possible to specify a range of ruby versions within a Gemfile?
[k- has quit [Ping timeout: 256 seconds]
shmoon_ has joined #ruby
<shmoon_> hi I've a question regarding CSV.generate, the `csv` variable accessible in the block, how can I access a particular array of that object or set ?
<shmoon_> csv[0] = arr # throws error
pontiki has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
<shmoon_> I can't find any method to do that here - http://ruby-doc.org/stdlib-2.0.0/libdoc/csv/rdoc/CSV.html#method-i-3C-3C
<shmoon_> sad :(
jschoolcraft has joined #ruby
blackmesa has joined #ruby
moeabdol has joined #ruby
<shevy> what the hell are you doing
<shevy> where from does arr come
<shevy> why don't you show code
leafybasil has quit [Ping timeout: 252 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
<shmoon_> so I'm generating array on the go by enumerating over a collection
arup_r has quit [Ping timeout: 256 seconds]
<shmoon_> I'm doing csv << arr inside that, but in the end I want to re-set the columns
SylarRuby has joined #ruby
<shevy> no
eminencehc has joined #ruby
segfalt has joined #ruby
<OmiKrOn> again...is there possible to specify a range of ruby versions within a Gemfile?
<shmoon_> i wonder why they didn't allow this
chipotle has quit [Quit: cheerio]
dionysus69 has quit [Ping timeout: 240 seconds]
<shevy> gateway is taking over #ruby
ruurd has joined #ruby
PaulCapestany has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
jeffreylevesque has joined #ruby
<jeffreylevesque> is there a npm package that can check links?
rismoney1 has quit [Remote host closed the connection]
drewvanstone has joined #ruby
PaulCape_ has quit [Ping timeout: 272 seconds]
<shevy> isn't npm javascript?
<dorei> yeap
<dorei> javascript eventloop
blackmes1 has joined #ruby
eminencehc has quit [Ping timeout: 252 seconds]
SylarRuby has quit [Ping timeout: 260 seconds]
<jeffreylevesque> or gem
staticat_works has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<shevy> a gem for javasript?
<jeffreylevesque> any package
<shevy> lol
<jeffreylevesque> that can check links on webpages
<shevy> ah
demophoon is now known as bgresham
<shevy> well, there are some ways
blackmesa has quit [Ping timeout: 265 seconds]
<shevy> in default ruby via open(), you get the page as a string, then can apply a regex; or you use nokogiri; or mechanize if you need to interact with a webpage in a scripted manner
Alayde has quit [Ping timeout: 256 seconds]
<dorei> jeffreylevesque: bing for webmasters offer this "service", and i'm pretty sure other sites offer this "service"
AlexRussia has joined #ruby
<dorei> shevy: or phantomjs via poltergeist and capybara if u want a "live" dom
treehug88 has joined #ruby
based_pdev has quit [Quit: Leaving]
<shevy> I don't want anything :)
apt-get_ has quit [Remote host closed the connection]
<shevy> steve klabnik wrote an interesting article, it could well fit to early ruby too http://words.steveklabnik.com/the-language-strangeness-budget
diego3 has joined #ruby
ReK2 has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
diego3 is now known as diegoviola
Cyther has quit [Quit: Leaving]
<shevy> The basics of rust... already 250 pages long as .pdf ... that's quite a lot.
eminencehc has joined #ruby
<shevy> perhaps we should do this in ruby too, to build a .pdf that can be auto-expanded
skweek has joined #ruby
freerobby has quit [Quit: Leaving.]
drptbl has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
<shevy> "I'm primarily a programming language researcher, so the fact that Haskell has up to now been used for just university types has been ideal"
<shevy> :)
krisquigley has quit [Remote host closed the connection]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
finisherr has quit [Quit: finisherr]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
piotrj has quit [Remote host closed the connection]
rubytor has joined #ruby
psy_ has joined #ruby
PaulCape_ has joined #ruby
InternetFriend has joined #ruby
baegle has quit [Remote host closed the connection]
blackmesa has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
rcvalle has joined #ruby
arup_r has joined #ruby
bgresham is now known as demophoon
<rubytor> Hello, how can I make a datetime difference with miliseconds include??? I need time_finish - time_start..... This is the pattern 2015-09-04T09:20:41.522+02:00
neektza has quit [Quit: Connection closed for inactivity]
bricker has joined #ruby
rcvalle has quit [Client Quit]
rcvalle has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
cassioscabral has joined #ruby
jschmid has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
cih has quit [Ping timeout: 240 seconds]
Axy has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<shevy> those gateways
herbst has quit [Remote host closed the connection]
<treehug88> rubytor: I did this, I forget how. The trick was to use a conversion from DateTime to epoch that preserved the fractional seconds
aaeron has joined #ruby
michaeldeol has joined #ruby
diegobiavati has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
freerobby has quit [Quit: Leaving.]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
PaulCapestany has joined #ruby
freerobby has joined #ruby
DenSchub has quit [Read error: Connection reset by peer]
diego3 has joined #ruby
DenSchub has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
Soda has joined #ruby
Flying_Squirrel has joined #ruby
andyrs has joined #ruby
PaulCape_ has quit [Ping timeout: 260 seconds]
<rubytor> treehug88:thanks I'll check!!
diegoviola is now known as Guest23061
diego3 is now known as diegoviola
darkf has quit [Quit: Leaving]
Guest23061 has quit [Ping timeout: 255 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
FrankD has joined #ruby
mallu has joined #ruby
rushed has quit [Quit: rushed]
blackmes1 has joined #ruby
diegoviola has quit [Client Quit]
mallu has quit [Client Quit]
diego3 has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
mallu has joined #ruby
diego3 is now known as diegoviola
`tim` has joined #ruby
<Ademan> Pry looks interesting, for those of you who frequently use a REPL, which ruby REPL do you prefer?
Kendos-Kenlen_ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
mwlang has joined #ruby
<oddmunds> Ademan: pry
symm- has joined #ruby
amclain has joined #ruby
<apeiros> rubytor: simply use Time#- (or DateTime#-)
<apeiros> both give you a difference which includes sub-second fractions
joonty has quit [Quit: joonty]
Xeago has quit [Ping timeout: 240 seconds]
drewvanstone has quit [Ping timeout: 240 seconds]
PaulCape_ has joined #ruby
Timba-as has quit [Quit: Be back later ...]
djcp has quit [Read error: Connection reset by peer]
ivanskie has joined #ruby
aaeron has quit [Quit: Leaving.]
Trynemjoel has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Ping timeout: 246 seconds]
rodfersou is now known as rodfersou|lunch
renderful has joined #ruby
rushed has joined #ruby
gizmore has joined #ruby
djcp has joined #ruby
tvw has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
finisherr has joined #ruby
bklane has quit [Remote host closed the connection]
<rubytor> apeiros: is it correct?? Time.parse(event['finishServ_Timestamp']).to_f - Time.parse(event['startServ_Timestamp']).to_f
ruby-lang771 has joined #ruby
<apeiros> no need for .to_f
Prominent has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> also IMO don't use parse. either use strptime, or use a specific parser (like iso8601 if it's in that format)
<rubytor> Time.parse(event['finishServ_Timestamp']) - Time.parse(event['startServ_Timestamp'])
<Ademan> oddmunds: thanks
renderful has quit [Ping timeout: 260 seconds]
bklane has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
RobertBirnie has joined #ruby
dome22xl has quit [Ping timeout: 265 seconds]
YankNYC has joined #ruby
mcullum has joined #ruby
Prominent has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
bl0ndie has joined #ruby
Alayde has joined #ruby
BrazenBraden has joined #ruby
OmiKrOn has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Pupeno has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
mcullum has quit [Client Quit]
p0wn3d has quit [Ping timeout: 246 seconds]
ivanskie has quit [Quit: Leaving]
ruby-lang771 has left #ruby [#ruby]
mcullum has joined #ruby
ivanskie has joined #ruby
FrankD has quit [Changing host]
FrankD has joined #ruby
Xeago has joined #ruby
ruurd has joined #ruby
K1MOS is now known as moos3
mcullum_ has joined #ruby
mcullum has quit [Client Quit]
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pathfinder has joined #ruby
skweek has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 255 seconds]
kenpoint has joined #ruby
JDiPierro has quit [Remote host closed the connection]
mondayrain has joined #ruby
jpfuentes2 has joined #ruby
p0wn3d has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
gizmore has quit [Ping timeout: 272 seconds]
arturmartins has quit [Quit: Leaving...]
shmilan has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
PaulCapestany has joined #ruby
podman has joined #ruby
PaulCape_ has quit [Ping timeout: 240 seconds]
inteq has quit [Remote host closed the connection]
i8igmac has joined #ruby
ksteck has quit [Ping timeout: 246 seconds]
mwlang has quit [Quit: mwlang]
<i8igmac> is there a ruby module that can move the mouse to x,y location on the screen
<i8igmac> or send key strokes on the keyboard
shadoi has joined #ruby
Pathfinder has quit [Ping timeout: 264 seconds]
leafybas_ has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
leafybasil has joined #ruby
saddad has joined #ruby
delianides has quit []
Flying_Squirrel has quit [Ping timeout: 244 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
gorodetsky has quit [Quit: Connection closed for inactivity]
last_staff has joined #ruby
JDiPierro has joined #ruby
PaulCape_ has joined #ruby
mondayrain has quit [Quit: Leaving]
mondayrain has joined #ruby
gizmore has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
DrCode has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 250 seconds]
shmilan has joined #ruby
SCHAAP137 has joined #ruby
<ruurd> i8igmac what is the problem?
pontiki has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<ruurd> that is: tell us what you want to achieve instead of telling us your solution
Siyfion has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sbhatore has quit [Remote host closed the connection]
sbhatore has joined #ruby
lsmola has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
imperator has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
barhum2013 has joined #ruby
zotherstupidguy has joined #ruby
bklane has quit [Remote host closed the connection]
dmolina has quit [Quit: Leaving.]
InternetFriend has joined #ruby
symbol_ has joined #ruby
Flying_Squirrel has joined #ruby
drptbl has joined #ruby
<i8igmac> is there a ruby module thtat exist for linux that can move a mouse to a location and click
Ilyes512 has joined #ruby
InternetFriend has quit [Client Quit]
banjara has joined #ruby
<i8igmac> mouse_left_click(x,y)
symbol has quit [Ping timeout: 246 seconds]
<noethics> if jruby is an option you can use the robot class in java
<ruurd> You're STILL not telling us what you want.
karapetyan has joined #ruby
<noethics> but dunno, you will prolly need some ffi or external lib otherwise
<i8igmac> I want to automate a mouse lol
InternetFriend has joined #ruby
<i8igmac> lol
<noethics> you will probably have more control with an x11 lib, and sending mouse events to a specific window
<noethics> or gtk
eminencehc has quit [Remote host closed the connection]
<i8igmac> ill look into x11 libs... thanks
<i8igmac> ruurd lol
banjara has quit [Read error: Connection reset by peer]
banjara has joined #ruby
sbhatore has quit [Ping timeout: 264 seconds]
psy_ has quit [Read error: Connection reset by peer]
codecop has joined #ruby
arturmartins has joined #ruby
TPBallbag has quit []
ericjphillips has joined #ruby
psy has joined #ruby
PaulCapestany has joined #ruby
arturmartins has quit [Client Quit]
krisquigley has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
allomov has joined #ruby
joonty has joined #ruby
PaulCape_ has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
<ruurd> Pfff you're all a bunch of fools.
<ruurd> i8igmac is this for a web app?
maletor has quit [Quit: Computer has gone to sleep.]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubytor has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
<treehug88> i8igmac yeah I wonder what you're trying to accomplish
platzhirsch has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has quit [Remote host closed the connection]
DrCode has joined #ruby
jenrzzz has joined #ruby
<i8igmac> if you have ever played with autoit...
krisquigley has quit [Ping timeout: 250 seconds]
<i8igmac> I made a aimbot for a game, by scanning the screen for colors and clicking on those locations
<ruurd> Oh f**k that's DE specific
<pipework> i8igmac: If you're trying to automate a browser, there's stuff for that. If you're trying to drive a graphical desktop, then that's different.
benlieb has joined #ruby
eminencehc has joined #ruby
<treehug88> I've never used autoit, but it looks like it'll do what you're asking about directly
gusTester has left #ruby [#ruby]
sbhatore has joined #ruby
Sammitch has joined #ruby
piotrj has joined #ruby
eminencehc has quit [Remote host closed the connection]
thejamespinto has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
gusTester has joined #ruby
maletor has quit [Client Quit]
benlieb has quit [Quit: benlieb]
joonty has quit [Quit: joonty]
cjbottaro has joined #ruby
bklane has joined #ruby
ramfjord has joined #ruby
Limix has joined #ruby
karapetyan has quit [Remote host closed the connection]
krisquigley has joined #ruby
devoldmx has joined #ruby
karapetyan has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
diegobiavati has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheRinger has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
leafybas_ has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
Porfa has quit [Quit: Porfa]
karapetyan has quit [Ping timeout: 246 seconds]
rodfersou|lunch is now known as rodfersou
cirenyc has joined #ruby
skweek has quit [Remote host closed the connection]
barhum2013 has quit [Quit: barhum2013]
eminencehc has joined #ruby
KC9YDN has joined #ruby
KC9YDN has joined #ruby
barhum2013 has joined #ruby
KC9YDN has quit [Client Quit]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
leafybasil has quit [Ping timeout: 260 seconds]
_djbkd has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
PaulCape_ has joined #ruby
drewvanstone has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Ping timeout: 260 seconds]
skade has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
hanmac has joined #ruby
ruurd has quit [Ping timeout: 272 seconds]
bl0ndie has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
catcher has joined #ruby
based_pdev has joined #ruby
p0wn3d has quit [Ping timeout: 264 seconds]
<catcher> I'm aware this Q isn't quite appropriate for this channel, but hoping someone knows. In Rubymine, is it possible to use a console during a debug / breakpoint stop? Basically looking for a way to eval without popping out the eval window.
benlieb has joined #ruby
benlieb has quit [Client Quit]
Guest52475 has quit [Quit: Leaving]
michaeldeol has joined #ruby
petricore has joined #ruby
freerobby has quit [Quit: Leaving.]
lxsameer has joined #ruby
VeryBewitching has joined #ruby
freerobby has joined #ruby
Ilyes512_ has joined #ruby
PaulCapestany has joined #ruby
DoubleMalt has joined #ruby
Porfa has joined #ruby
PaulCape_ has quit [Ping timeout: 240 seconds]
Ilyes512 has quit [Ping timeout: 244 seconds]
<shevy> not sure if it is appropriate or not as it being a proper question or not - the problem is, there are barely any users of rubymine here really
jamesaxl has joined #ruby
p0wn3d has joined #ruby
<adaedra> catcher: aren't you dropped in a console during a stop for immediate evalutation by default?
<adaedra> shevy: now, how are you sure of this fact?
mondayrain has quit [Ping timeout: 252 seconds]
<catcher> adaedra: yes, until I hit a breakpoint. Console is unresponsive until I continue execution
<shevy> adaedra what do you use
<adaedra> catcher: let me check
<adaedra> shevy: depends
<shevy> vim :)
drewvanstone has quit [Ping timeout: 264 seconds]
<shevy> jhass uses sublime
<shevy> havenwood uses atom
gizmore has joined #ruby
symm- has joined #ruby
<adaedra> that's 3 users out of 1000+
<shevy> nono
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy> 950 are inactive
<dfockler> I use sublime at home and vim in the sheets
<adaedra> catcher: I just tested, on a pause, the console tab let me evaluate things
c0m0 has quit [Ping timeout: 252 seconds]
leafybasil has joined #ruby
<catcher> adaedra: weird! Wonder what's up with my case
<adaedra> I have a 0> and can type things here
ware has joined #ruby
moos3 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
<ware> noob here - i cloned a git repo and they say to 'install ruby, then bundle install at the root of expo'
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<catcher> adaedra:
<ware> i cant seem to figure out how / what that is
<catcher> adaedra: sorry - I have >>, but even puts has no response
apt-get has joined #ruby
shmilan has joined #ruby
<catcher> adaedra: you're debugging and hitting a breakpoint?
<adaedra> ware: once you cloned the repository, you have to install ruby, i.e. from your system's package manager, then install bundler (gem install bumder), then run `bundle install` from the repository root.
<adaedra> catcher: yes
K1MOS has joined #ruby
<ware> boom - ty!
<catcher> adaedra: in the console tab, which is independent from the debugger tab but next to it?
spider-mario has joined #ruby
<adaedra> In the debugger pane, I have two tabs, Debugger and Console. The Console tab let me inspect.
<adaedra> Let me show you.
<catcher> hrm
ht__ has joined #ruby
freerobby has quit [Quit: Leaving.]
lkba has joined #ruby
postmodern has joined #ruby
<catcher> adaedra: thanks for confirming. Maybe something with my debug config.
<adaedra> This is default setup. Are the gems RubyMine require installed correctly, in the right ruby environment?
<adaedra> ruby-debug-ide, iirc
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Xeago has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
freerobby has joined #ruby
duoi has quit [Ping timeout: 240 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
mallu has joined #ruby
tejasmanohar has joined #ruby
poguez_ has joined #ruby
<catcher> adaedra: yes, but a good thing to double-check. Also maybe a debug gem conflict in Gemfile
<adaedra> possibly.
<adaedra> You could also try with a JRuby, as RubyMine may be more comfortable with it, if it doesn't require changes to your project.
iamdevnul is now known as badadvicedevnul
InternetFriend has joined #ruby
banjara has quit [Quit: Leaving.]
nateberkopec has joined #ruby
banjara has joined #ruby
ericjphillips has quit [Quit: Leaving.]
Ilyes512_ has quit [Read error: Connection reset by peer]
mallu has quit [Client Quit]
ruurd has joined #ruby
`tim` has joined #ruby
Ilyes512 has joined #ruby
piotrj has quit [Remote host closed the connection]
davidhq has joined #ruby
aaeron has joined #ruby
PaulCape_ has joined #ruby
aaeron has quit [Client Quit]
mallu has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
PaulCapestany has quit [Ping timeout: 260 seconds]
<catcher> adaedra: are you debugging rails console or irb console?
<adaedra> none of them
<adaedra> you're debugging from a Console setup?
mallu has quit [Client Quit]
<shevy> is there a pure ruby library to write mails, without sendmail or similar?
<catcher> my available configurations are IRB Console, Rails, Rspec, Rake, Ruby, Defaults
The_Phoenix has quit [Read error: Connection reset by peer]
<catcher> adaedra: I misspoke when I said "rails console", should have been just "rails"
Limix has quit [Quit: Limix]
eminencehc has quit [Remote host closed the connection]
<adaedra> catcher: it's not a rails project, so no.
rdark has quit [Ping timeout: 240 seconds]
<adaedra> I'm trying with an IRC console.
inteq has joined #ruby
eminencehc has joined #ruby
ruurd_ has joined #ruby
ndrei has joined #ruby
<Deviad> Hello everyone, why do we use ":" next to to_s in this case: "strings_array = numbers_array.map(&:to_s)"?
havenwood has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
ruurd has quit [Ping timeout: 240 seconds]
<shevy> I assume because it will require a Symbol
baweaver has joined #ruby
helpa has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
helpa has joined #ruby
<adaedra> catcher: it indeed breaks from an IRB setup.
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> Deviad: &:to_s is calling #to_proc on :to_s. :to_s is a symbol.
PaulCape_ has quit [Max SendQ exceeded]
<workmad3> Deviad: as shevy said, that's the symbol `:to_s`. The & in the call then informs the ruby runtime to call `to_proc` on that argument and pass the result as the block argument to the `map` method
<catcher> adaedra: breaks as in breakpoint, or breaks as in no console?
<ware> adaedra: dist-upgrade cuz wheezy doesnt want to install this unicode ruby package lol
OmiKrOn has joined #ruby
benlieb has joined #ruby
<adaedra> Deviad: if you do &to_s, you're referring to a local variable.
<adaedra> ware: wat
<ware> i will give you one internet when i get this working though
<workmad3> adaedra: or the result of calling `to_s` on self ;)
<adaedra> catcher: breaks as the console tab does nothing.
<adaedra> workmad3: indeed.
Oka has joined #ruby
<catcher> adaedra: thanks for the sanity check. If you happen on a way to make it work, please lmk!
<adaedra> catcher: if you want to debug from a rails/irb console, look at pry and pry-byebug. Great tools.
PaulCapestany has joined #ruby
<adaedra> (They are not fully compatible with RubyMine though, so better run them from the terminal panel.)
OmiKrOn has quit [Client Quit]
banjara has joined #ruby
ruurd has joined #ruby
ruurd_ has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
allomov has quit [Remote host closed the connection]
Sammitch has left #ruby [#ruby]
firstdayonthejob has joined #ruby
baweaver has quit [Remote host closed the connection]
bluOxigen has joined #ruby
jackjackdripper has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Anti-Pizza has quit [Quit: Quit]
symm- has quit [Ping timeout: 240 seconds]
K1MOS has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Max SendQ exceeded]
ksteck has joined #ruby
eminencehc has quit [Remote host closed the connection]
neanderslob has joined #ruby
eminencehc has joined #ruby
bb010g has joined #ruby
jackjackdripper has quit [Client Quit]
banjara has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
PaulCapestany has joined #ruby
eminencehc has quit [Remote host closed the connection]
UtkarshRay has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
banjara has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banjara1 has joined #ruby
mwlang has joined #ruby
ruby-lang329 has quit [Ping timeout: 246 seconds]
hydrozen has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
piotrj has joined #ruby
Nego_Fua has quit [Ping timeout: 256 seconds]
banjara has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
andyrs has joined #ruby
PaulCapestany has quit [Quit: .]
eminencehc has quit [Ping timeout: 244 seconds]
agentmeerkat has joined #ruby
PaulCapestany has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<Deviad> adaedra, thanks
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
snockerton has joined #ruby
skweek has joined #ruby
<shevy> so adaedra is a RubyMine user. I am surprised
tsujp has joined #ruby
<adaedra> I use different tools at different times
giuseppesolinas has joined #ruby
duoi has joined #ruby
giuseppesolinas_ has joined #ruby
n008f4g_ has joined #ruby
Pupeno has joined #ruby
mxrguspxrt has joined #ruby
duoi has quit [Remote host closed the connection]
arup_r has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
Pupeno has quit [Ping timeout: 255 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
K1MOS has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
based_pdev_ has joined #ruby
mikecmpbll has joined #ruby
cirenyc has quit [Quit: Leaving...]
EllisTAA has joined #ruby
EllisTAA has quit [Client Quit]
SimplySeth has joined #ruby
iateadonut has quit [Quit: Leaving.]
<SimplySeth> is there an alternative to gsub()?
ghanima has joined #ruby
EllisTAA has joined #ruby
renanoronfle has quit [Remote host closed the connection]
<pipework> SimplySeth: what would you want out of an alternative?
<pipework> What's wrong with gsub?
based_pdev has quit [Ping timeout: 264 seconds]
finisherr has quit [Quit: finisherr]
<SimplySeth> This doesn't seem to be working: http://goo.gl/hfKRuF
EllisTAA has quit [Client Quit]
<SimplySeth> woops
PaulCape_ has joined #ruby
yqt has joined #ruby
andyrs has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
<SimplySeth> it doesn't give an error but it doesn't strip out the 'https://' either
eminencehc has joined #ruby
EllisTAA has joined #ruby
finisherr has joined #ruby
benlieb has quit [Quit: benlieb]
<apeiros> SimplySeth: it does. but you throw the result away.
PaulCapestany has quit [Ping timeout: 260 seconds]
<apeiros> gsub returns a new string
<apeiros> gsub! modifies the string
symm- has joined #ruby
<SimplySeth> apeiros: ahhhhhhh
codecop has quit [Remote host closed the connection]
<ghanima> was wondering if someone could point me in a direction... I have a website that is making use of this autocomplete function for my site https://github.com/seatgeek/soulmate the problem is that I am trying to measure from a browser standpoint how long it takes for the content to render and display.... was wondering if anyone is familiar of you to monitor the dom and any changes to it and how long it takes to render
ware has quit [Quit: yolo]
<apeiros> ah, the inner loop is actually .map, which would work. but your outer is .each, which returns the receiver
centrx has joined #ruby
dramagods has joined #ruby
<SimplySeth> apeiros: gsub! ... works! ... thanks
gustav_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<apeiros> SimplySeth: alternatively replace the .each with .map
<SimplySeth> apeiros: hmmm okay
<SimplySeth> apeiros: yes ... that works as well ... thanks
finisherr has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
Xeago has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
bubbys has quit [Ping timeout: 240 seconds]
PaulCape_ has quit [Quit: .]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
martin_work has joined #ruby
PaulCapestany has joined #ruby
bubbys has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
finisherr has joined #ruby
andyrs has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
yqt has joined #ruby
atomical has joined #ruby
andyrs has quit [Ping timeout: 240 seconds]
Flying_Squirrel has quit [Ping timeout: 268 seconds]
Xeago has quit [Ping timeout: 244 seconds]
popsikle has joined #ruby
popsikle has left #ruby [#ruby]
popsikle has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni has joined #ruby
blaxter has quit [Quit: foo]
yardenbar has quit [Ping timeout: 256 seconds]
DoubleMalt has quit [Ping timeout: 264 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j____ has quit [Ping timeout: 244 seconds]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
PaulCape_ has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
psy has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
barhum2013 has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Ping timeout: 255 seconds]
ta has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
baweaver has joined #ruby
iooner has quit [Ping timeout: 246 seconds]
Starthunder has left #ruby [#ruby]
barhum2013 has joined #ruby
havenn has joined #ruby
piotrj has quit [Remote host closed the connection]
Xeago has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
piotrj has joined #ruby
iooner has joined #ruby
but3k4 has joined #ruby
sbhatore has quit [Quit: sbhatore]
mcullum_ has quit [Quit: Page closed]
Xeago has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 256 seconds]
SimplySeth has quit []
InternetFriend has joined #ruby
Xeago has joined #ruby
gusTester1 has joined #ruby
gustav_ has quit [Remote host closed the connection]
gusTester has quit [Read error: Connection reset by peer]
wldcordeiro_ has quit [Ping timeout: 272 seconds]
noethics has quit [Quit: Leaving]
DoubleMalt has joined #ruby
yardenbar has joined #ruby
mondayrain has joined #ruby
PaulCapestany has joined #ruby
krisquigley has joined #ruby
baweaver has quit [Remote host closed the connection]
devoldmx has joined #ruby
karapetyan has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
PaulCape_ has quit [Ping timeout: 260 seconds]
InternetFriend has quit [Client Quit]
piotrj has quit [Remote host closed the connection]
gustav_ has joined #ruby
drewvanstone has joined #ruby
krz has quit [Quit: WeeChat 1.2]
psy has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
psy has quit [Max SendQ exceeded]
araujo has quit [Ping timeout: 252 seconds]
piotrj has joined #ruby
InternetFriend has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
psy has joined #ruby
ramfjord has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 272 seconds]
araujo has joined #ruby
mondayrain has quit [Ping timeout: 255 seconds]
dhollinger has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
firstdayonthejob has joined #ruby
jenrzzz has joined #ruby
barhum2013 has quit [Quit: barhum2013]
evanjs has quit [Remote host closed the connection]
barhum2013 has joined #ruby
failshell has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
psy has quit [Ping timeout: 246 seconds]
tsujp has quit [Quit: tsujp is snoozing]
karapetyan has joined #ruby
cschneid_ has joined #ruby
drewvanstone has quit [Ping timeout: 240 seconds]
beast has quit [Disconnected by services]
beast_ has joined #ruby
agentmeerkat has joined #ruby
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
DoubleMalt has quit [Ping timeout: 265 seconds]
mbff has joined #ruby
<mbff> Hello! I am using the mina deploy tool that creates a bundle install in shared/bundle. How can I use these gems when I call bundle exec?
maletor has joined #ruby
piotrj has quit [Remote host closed the connection]
Sigma00 has joined #ruby
dhollinger has joined #ruby
barhum2013 has quit [Quit: barhum2013]
baweaver has joined #ruby
<Pro|> require 'whatyouwanttouse'
<havenn> mbff: If I recall correctly `bundle install --deployment` will set that as the expected directory and is a "remembered" command so once set it'll remember it in the bundler config.
nertzy has joined #ruby
`based_pdev` has joined #ruby
workmad3 has joined #ruby
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mwlang has quit [Quit: mwlang]
eminencehc has quit [Remote host closed the connection]
<mbff> havenn, hmmm... not the case here? deploy@king:/sites/fargobikesharebackend/current$ bundle exec mina unicorn:restart
loc22 has joined #ruby
<mbff> bundler: command not found: mina Install missing gem executables with `bundle install`
Flying_Squirrel has joined #ruby
<havenn> mbff: gem install bundler
Porfa has quit [Quit: Porfa]
moeabdol has quit [Quit: WeeChat 1.3]
based_pdev_ has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
tvw has joined #ruby
finisherr has quit [Quit: finisherr]
gustav_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
dmolina1 has joined #ruby
justin2 has quit [Ping timeout: 260 seconds]
petricore has joined #ruby
mbff has quit [Quit: Leaving]
dfockler has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 240 seconds]
axiomatic_345 has quit [Ping timeout: 246 seconds]
jt__ has joined #ruby
Giordano has joined #ruby
dfockler has joined #ruby
Timba-as has joined #ruby
hyperbolist has joined #ruby
dopamean_ has quit [Ping timeout: 272 seconds]
<Giordano> hey guys, can I set a default value for a property without using a constructor/initialize method? Something like Java: class A { int value = 1; }
baweaver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Xiti has quit [Quit: Xiti]
<shevy> Giordano hey old webchat-friend
opensource_ninja has joined #ruby
AbdulRehman has joined #ruby
finisherr has joined #ruby
AbdulRehman has quit [Client Quit]
<Giordano> sevy: Hello friend
sanguisdex has joined #ruby
krisquigley has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
s2013 has joined #ruby
hyperbolist has left #ruby ["WeeChat 1.0.1"]
Soda has quit [Remote host closed the connection]
baweaver has joined #ruby
loc22 has quit [Quit: Be back later ...]
Meow-J has quit [Quit: Connection closed for inactivity]
howdoicomputer has quit [Ping timeout: 256 seconds]
shmoon_ has quit [Quit: Connection closed for inactivity]
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
roxtrong_ has joined #ruby
howdoicomputer has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
skade has quit [Quit: Computer has gone to sleep.]
dopie has joined #ruby
axiomatic_345 has joined #ruby
piotrj has joined #ruby
kidoz has joined #ruby
psy has joined #ruby
roxtrongo has quit [Ping timeout: 250 seconds]
Xiti has joined #ruby
Jackneill has joined #ruby
matp has quit [Quit: Bye!]
Coldblackice has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
glowcoil has joined #ruby
blackmes1 has joined #ruby
Rickmasta has joined #ruby
kenpoint has quit []
PaulCape_ has joined #ruby
jacksonmills has joined #ruby
tomaz_b has joined #ruby
PaulCapestany has quit [Ping timeout: 264 seconds]
shmilan has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
arup_r has quit [Quit: Leaving]
maletor has joined #ruby
psy has quit [Ping timeout: 250 seconds]
shmilan has joined #ruby
martin_work has quit [Ping timeout: 255 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loc22 has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
wldcordeiro_ has joined #ruby
finisherr has quit [Quit: finisherr]
moeabdol has joined #ruby
i8igmac has quit [Quit: Bye]
but3k4 has joined #ruby
gregf has quit [Read error: Connection reset by peer]
leo19 has joined #ruby
i8igmac has joined #ruby
howdoicomputer has quit [Ping timeout: 260 seconds]
shakes has joined #ruby
PaulCapestany has joined #ruby
martin_work has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
hydrozen has joined #ruby
PaulCape_ has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
otacon- has joined #ruby
gregf has joined #ruby
loincloth has joined #ruby
<loincloth> heyo... anyone using Timecop?
iamninja_ has quit [Read error: Connection reset by peer]
<BrazenBraden> i am trying to get a rails container app up and running and am stuck behind the error "/app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg.rb:4:in `require': libruby.so.2.2: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg_ext.so (LoadError)" which i believe has something to do with ruby missing some libraries or something. any clues?
howdoicomputer has joined #ruby
tomaz_b has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Client Quit]
iamninja_ has joined #ruby
renderful has joined #ruby
gustav_ has joined #ruby
<loincloth> @BrazenBraden looks like search results for "pg_ext.so (LoadError)" are a decent start
<rubybeginner> Anyone have spare minute for private chat?
dramagods has quit [Remote host closed the connection]
staticat_works has quit [Read error: Connection reset by peer]
<BrazenBraden> loincloth, if i remove the pg gem, it then fails on another gem. always libruby.so cant read file
<loincloth> re: Timecop, i am trying to test some code which polls another resource using loop { ...; sleep interval; } and it seems like sleep() behaves like normal even if, say, time is frozen
p0wn3d has quit [Ping timeout: 246 seconds]
<loincloth> so at the moment i'm not sure how best to proceed testing such code
<loincloth> i could move the "..." behavior there into a method and test that and then just assume loop and sleep work as expected
pandaant has quit [Remote host closed the connection]
moeabdol has quit [Quit: WeeChat 1.3]
<loincloth> but i got comfy with the fake clock via sinon.js in a JavaScript context, which seems to adjust how sleep() behaves intuitively, so i'm hoping to be able to rock something like that
<BrazenBraden> loincloth, dont know if this will help clarify what im working on but hey.. : https://gist.github.com/brazenbraden/b4ef6839ac81fdd42a4a
baweaver has quit [Remote host closed the connection]
<loincloth> basically want to be able to tick time ahead under my control and have sleep react accordingly, if that makes sense
renderful has quit [Ping timeout: 246 seconds]
<loincloth> i am close to monkey patching sleep() but feel i'd rather not if i can help it
Cyther has joined #ruby
spcmastertim has quit [Ping timeout: 268 seconds]
<loincloth> @dfockler yeah i read over that... possibly i don't get it, but i'm not sure it ultimately helps me
<loincloth> as i said, if i freeze time with Timecop and then call, say, sleep(30) it still hangs for 30 secs
<loincloth> what i would like is that it hangs indefinitely because time is frozen and proceeds only when i step ahead in time with an explicit Timecop call
<dfockler> it's still going to sleep shouldn't change based on the time
<loincloth> well, given the assumptions in play, i don't agree
<loincloth> sleep is based on time progressing
I3igmac has joined #ruby
imperator has left #ruby ["Leaving"]
<loincloth> if time is frozen, it seems counter intuitive to sleep for some duration of time then
<dfockler> in the example Timecop.freeze keeps the same time regardless of how long you sleep
anisha has quit [Quit: Leaving]
davidhq has quit [Read error: No route to host]
saddad has quit [Quit: WeeChat 1.4-dev]
moeabdol has joined #ruby
davidhq has joined #ruby
<loincloth> i feel i'm not getting at some important detail here
_djbkd has quit [Remote host closed the connection]
<loincloth> not explaining something because as i said i read that and i see what's happening
<dfockler> It's probably me not understanding exactly what you are looking for
ownfocus has joined #ruby
<loincloth> yeah it's ok
zendrix has joined #ruby
<dfockler> I'm guessing you don't want the sleep call to actually happen?
<dfockler> but just be skipped over?
wldcordeiro_ has quit [Ping timeout: 256 seconds]
i8igmac has quit [Ping timeout: 240 seconds]
<loincloth> not quite... i can do that pretty easily using a rspec stub or such
<loincloth> i think i want it to hang there indefinitely
I3igmac has quit [Client Quit]
<dfockler> oh ok
<loincloth> like it can't do anything because time is frozen
i8igmac has joined #ruby
<loincloth> so say i have sleep(30.seconds) and the test hits that... and then i say Timecop.travel 20.seconds... it should still be hung
<dfockler> That's not quite the purpose of Timecop
<loincloth> but the second we travel past 30 seconds, things resume
<loincloth> yeah, i'm getting that :D
<loincloth> this is behavior i am trying to translate from other experiences in JavaScript land which might be part of the issue
<loincloth> something with how clocks and sleep work there compared to Ruby perhaps
_djbkd has joined #ruby
PaulCape_ has joined #ruby
Pathfinder has joined #ruby
nettoweb has joined #ruby
<loincloth> but i was able to do what i want here using sinon.js and its fake timer
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
tenderlo_ has quit [Quit: Leaving...]
cassioscabral has joined #ruby
orbitalo has joined #ruby
I3igmac has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<loincloth> this was still helpful, tho... i think i just need to approach the situation differently
decoponyo has quit [Quit: Leaving...]
<dfockler> JS doesn't have a 'sleep' function so to speak
michael_mbp has quit [Excess Flood]
<loincloth> yeah sorry, i'm confusing things more
<loincloth> but it's a similar algorithm i guess, at least in my mind
PaulCapestany has quit [Ping timeout: 255 seconds]
<loincloth> setTimeout(fn, interval) vs. loop { fn; sleep interval; } or some such
<dfockler> Ruby just stops the thread from executing
<dfockler> when you call sleep
i8igmac has quit [Ping timeout: 246 seconds]
Giordano has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<loincloth> yeah... this has been a helpful convo for shedding some light on my assumptions and drawing my attention to some of these important details
<loincloth> so thx :D
<loincloth> i think for now i might move the behavior for the loop to a method and just test that
<dfockler> sure :D I'm not sure I even understand how JS does timeouts
i8igmac has joined #ruby
bklane has quit [Remote host closed the connection]
<loincloth> yeah i don't know the nitty gritty either
baweaver has joined #ruby
drptbl_ has joined #ruby
drptbl has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
_djbkd has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
I3igmac has quit [Ping timeout: 268 seconds]
axiomatic_345 has quit [Ping timeout: 240 seconds]
AbdulRehman has joined #ruby
_djbkd has joined #ruby
cjbottaro has quit [Ping timeout: 265 seconds]
dfockler has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
AbdulRehman has quit [Client Quit]
stamina has quit [Quit: WeeChat 1.3]
fullofcaffeine has quit [Read error: Connection reset by peer]
dhollinger has quit [Quit: Leaving]
fullofcaffeine has joined #ruby
<shevy> nobody here does!
benlieb has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
skullcrasher_ has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
skullcrasher_ has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
vF3hNGxc47h8 has joined #ruby
EllisTAA has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
duoi has joined #ruby
evanjs has joined #ruby
skullcrasher_ has joined #ruby
dagda1 has joined #ruby
<cschneid_> If I have an increasing array: [1,4,7,12], and an input, 6, how can I find the 4 element? I can certainly inject and track previous and current value, and break w/ previous when I find a current that's too big. But is there a cleaner way?
jenrzzz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
skullcrasher has quit [Quit: quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
orbitalo has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 272 seconds]
Pathfinder has quit [Remote host closed the connection]
cassioscabral has quit [Quit: cassioscabral]
bklane has joined #ruby
skullcrasher has joined #ruby
bklane has quit [Remote host closed the connection]
parduse has quit []
skullcrasher_ has quit [Client Quit]
bmurt has quit []
<apeiros> cschneid_: how are the input and the 4 (fourth? or the value 4, index 1?) element related?
axiomatic_345 has joined #ruby
<cschneid_> apeiros: value 4 sorry. "Find me the index of the largest value that's smaller than my input" is what I want.
<cschneid_> bsearch actually may do it huh
beast_ has quit [Quit: Leaving]
martin_work has quit [Quit: martin_work]
<apeiros> mhm, iirc it has a mode to find closest
martin_work has joined #ruby
skweek has joined #ruby
freerobby has quit [Quit: Leaving.]
<cschneid_> well, maybe not
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
martin_work has quit [Client Quit]
freerobby has joined #ruby
jpfuente_ has joined #ruby
kadoppe has quit [Ping timeout: 246 seconds]
bklane has joined #ruby
banister has joined #ruby
bklane has quit [Remote host closed the connection]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
jpfuentes2 has quit [Ping timeout: 244 seconds]
yfeldblu_ has joined #ruby
workmad3 has joined #ruby
kadoppe has joined #ruby
PaulCape_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has quit [Ping timeout: 265 seconds]
vF3hNGxc47h8 has quit [Ping timeout: 246 seconds]
PaulCapestany has quit [Ping timeout: 265 seconds]
mondayrain has joined #ruby
martin_work has joined #ruby
snockerton has joined #ruby
mondayrain has quit [Client Quit]
otacon-_ has joined #ruby
skade has joined #ruby
maletor has joined #ruby
shakes has quit [Quit: Leaving]
rodfersou is now known as rodfersou|off
yfeldblum has quit [Ping timeout: 246 seconds]
JDiPierro has quit [Remote host closed the connection]
roxtrong_ has quit [Remote host closed the connection]
otacon- has quit [Ping timeout: 268 seconds]
baweaver has quit [Remote host closed the connection]
bklane has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
solocshaw has joined #ruby
catcher has quit [Quit: catcher]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tomchapin has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
bklane has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
syath has quit [Quit: WeeChat 1.2]
iceyec has quit [Quit: Leaving]
TomyLobo has joined #ruby
apt-get has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 264 seconds]
dravine has quit [Ping timeout: 255 seconds]
n_blownapart has joined #ruby
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Eiam_ has joined #ruby
blackmes1 has joined #ruby
speakingcode has joined #ruby
dikaio has joined #ruby
scripore has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
jpfuentes2 has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
symbol_ has quit [Ping timeout: 264 seconds]
PaulCapestany has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
mbff has joined #ruby
bklane has joined #ruby
gustav_ has quit []
dravine has joined #ruby
jpfuente_ has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
<mbff> Hello! I am using rbenv, mina, and bundler as apart of my deployments. I cannot get bundler exec to see vendor/bundle in my-app/current/vendor/bundle. Any ideas?
PaulCape_ has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 246 seconds]
Eiam_ has quit [Ping timeout: 265 seconds]
jeffreylevesque has quit [Ping timeout: 268 seconds]
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
tenderlove has joined #ruby
<havenn> mbff: I'd expect it to *just work* but I don't use rbenv. Hem. Have you checked out the Mina Bundler options?: https://github.com/mina-deploy/mina/blob/master/lib/mina/bundler.rb#L14-L20
sepp2k has quit [Quit: Leaving.]
jenrzzz has joined #ruby
<havenn> mbff: Earlier in the error you showed it seemed like the Bundler gem wasn't installed rather than that it couldn't find vendor/bundle.
chipotle has joined #ruby
<mbff> havenn, yes I have gone through alot of the mina code and defaults over the last 2 hours.
eminencehc has quit [Remote host closed the connection]
<havenn> mbff: What's the latest error?
mary5030 has quit [Remote host closed the connection]
<mbff> same error. Let me check the bundler path again
mary5030 has joined #ruby
<havenn> mbff: Usually with rbenv the answer is something about shims and rehash. :P
axiomatic_345 has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Quit: WeeChat 1.3]
popsikle has quit [Remote host closed the connection]
tenderlo_ has joined #ruby
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
tenderlove has quit [Ping timeout: 264 seconds]
<mbff> Part of the confusion probably revolves the fact that bundler was install as a normal gem via gem install bundler while the app gems are installed via bundler --deployment
nwhirschfeld has joined #ruby
<mbff> havenn, sounds about right.
system64 has quit [Quit: Connection closed for inactivity]
loc22 has quit [Ping timeout: 256 seconds]
PaulCape_ has joined #ruby
workmad3 has joined #ruby
mrsolow has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
<mbff> also just running "/home/$USER/.rbenv/shims/bundle" via ssh works/finds the bundle binary. So bundler exists
prestorium has quit [Quit: Leaving]
PaulCapestany has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 250 seconds]
Voker57 has quit [Remote host closed the connection]
Ilyes512 has joined #ruby
<havenn> mbff: Here's an example of configuring Mina with rbenv if you haven't looked at this one yet:
n_blownapart has quit [Remote host closed the connection]
<havenn> I don't use a Ruby version switcher in production since I just use one Ruby in production.
martin_work has quit [Ping timeout: 252 seconds]
tenderlo_ has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<mbff> havenn, hmmm.... i should seriously consider that option
justin2 has joined #ruby
<havenn> mbff: If it's not Rails you could probably even ditch Bundler and resolve dependencies and create your Gemfile.lock by setting `export RUBYGEMS_GEMDEPS="$GEMFILE_LOCATION_HERE"` and running: gem install -g "$GEMFILE_LOCATION_HERE"
eminencehc has joined #ruby
tenderlove has joined #ruby
jpfuentes2 has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<mbff> havenn, thanks for the idea. That might work as a last resort but I am trying to stay away from "hacks" especially for deployment. I trust the dev of mina to know the best way to deploy. haha
baweaver has joined #ruby
Limix has joined #ruby
InternetFriend has joined #ruby
tenderlove has joined #ruby
zendrix has quit []
eminencehc has joined #ruby
PaulCapestany has joined #ruby
hal_9000_ has quit [Quit: hal_9000_]
baroquebobcat has joined #ruby
michael_mbp has quit [Excess Flood]
michaeldeol has joined #ruby
PaulCape_ has quit [Ping timeout: 264 seconds]
Limix has quit [Quit: Limix]
jobewan has joined #ruby
michael_mbp has joined #ruby
Flying_Squirrel has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Max SendQ exceeded]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
arooni has quit [Quit: Leaving]
arooni has joined #ruby
slawrence00 has joined #ruby
eminencehc has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
havenwood has joined #ruby
buck_ has joined #ruby
<buck_> Hi. I know what a mutex is theoretically but I don't know how to use it in ruby code. Can someone explain how a mutex object works?
atomical has quit [Ping timeout: 255 seconds]
havenn has quit [Ping timeout: 264 seconds]
Rickmasta has joined #ruby
eminencehc has joined #ruby
tenderlove has quit [Ping timeout: 250 seconds]
buck_ has left #ruby [#ruby]
gmci has quit [Quit: 73]
<havenwood> lock = Mutex.new; lock.synchronize { :do_the_things_here }
Porfa has joined #ruby
<shevy> that scared him off
scripore has quit [Quit: This computer has gone to sleep]
mbff has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby
bklane has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
bklane has joined #ruby
tvw has quit []
tvw has joined #ruby
eminencehc has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subshad has quit [Remote host closed the connection]
gmci has joined #ruby
gmci is now known as Guest42003
evanjs has quit [Remote host closed the connection]
<havenwood> shevy: Left right before I posted it. Me thinking of posting it scared em off.
bklane has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 255 seconds]
bklane has joined #ruby
<havenwood> shevy: I didn't even get to wax poetic on the differences between Mutex and Monitor.
<havenwood> shevy: Or go into MonitorMixin or at least ConditionVariable.
scripore has joined #ruby
i8igmac has quit [Quit: Bye]
glowcoil has quit [Quit: Connection closed for inactivity]
kidoz has quit [Quit: Ухожу я от вас]
i8igmac has joined #ruby
atomical has joined #ruby
Azure has quit [Quit: Oops.]
aerozepplin has joined #ruby
xaxisx has joined #ruby
hfp_work has quit [Ping timeout: 252 seconds]
<pipework> havenwood: I hear waxing can lessen friction though. :p
bkxd has joined #ruby
NeverDie has joined #ruby
mondayrain has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
dfockler has quit [Remote host closed the connection]
tenderlove has joined #ruby
atomical_ has joined #ruby
dopamean_ has joined #ruby
victortyau has quit [Quit: Leaving]
dfockler has joined #ruby
Ox0dea has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Ping timeout: 255 seconds]
I3igmac has joined #ruby
umgrosscol has quit [Ping timeout: 240 seconds]
i8igmac has quit [Ping timeout: 240 seconds]
cek has joined #ruby
Porfa has quit [Quit: Porfa]
dramagods has joined #ruby
<cek> i'm trying to match a string with regexp , but it doesn't work.
PaulCape_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
scripore has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
<cek> User-Agent: Mac OS X/10.1.1 (123123); ExchangeWebServices/1.0.1 (158); Mail/1.2 with %r{Mac OS X/([\d\.]+)\b.+(?:Mail/([\d\.]+)\b)?} . It doesn't catch second match
hfp_work has joined #ruby
<cek> essentially, want to match on first match and if second doesn't exist, that's okay. But if exists, want to match it too.
aerozepplin has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 264 seconds]
aerozepplin has joined #ruby
I3igmac has quit [Ping timeout: 240 seconds]
volongato has joined #ruby
Jackneill has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Jardayn has quit [Quit: Leaving]
<Ox0dea> cschneid_: I trust you ended up discovering #bsearch_index?
hfp__work has joined #ruby
_jimc has joined #ruby
<cschneid_> Ox0dea: no, just implemented it w/ a while loop....
<Ox0dea> cschneid_: Gross.
<cschneid_> also backing off the refactor that required this in the first place
bkxd has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
<cschneid_> needs to be done, but not right now
dramagods has quit [Ping timeout: 264 seconds]
<shevy> havenwood oh I see. I don't see leavers and joiners and have no time stamps :)
<Ox0dea> Huh, #bsearch_index is 2.3, anyway.
devoldmx has joined #ruby
<Ox0dea> cschneid_: Well, here's my take on #insert_keep_sorted for when you need it: https://eval.in/442520
<cschneid_> Ox0dea: I have a lookup table w/ breakpoints which was my use
<cschneid_> but cool :)
hfp_work has quit [Ping timeout: 272 seconds]
<pipework> Wow, never seen anyone actually use the return value of a method definition, let alone like that.
dravine has quit [Quit: salut!]
tvon has joined #ruby
blackmesa has joined #ruby
inteq has quit [Remote host closed the connection]
<cek> 'first second'.match /(first).+(second)?$/ -- second not captured
hfp__work has quit [Ping timeout: 260 seconds]
<cek> 'first junk second junk'.match /(first).+(second)?/ not working :/
<shevy> Ox0dea where have you been
<shevy> [k- was missing you
whippythellama has quit [Quit: WeeChat 1.3]
devoldmx has quit [Ping timeout: 246 seconds]
PaulCapestany has joined #ruby
ericjphillips has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
hfp_work has joined #ruby
failshell has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
PaulCape_ has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
snockerton has quit [Quit: Leaving.]
jeffreylevesque has joined #ruby
tenderlove has joined #ruby
parduse has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
bklane has quit [Remote host closed the connection]
baweaver has joined #ruby
_jimc has quit [Quit: Textual IRC Client: www.textualapp.com]
noethics has joined #ruby
bklane has joined #ruby
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
hfp_work has joined #ruby
rodfersou|off is now known as rodfersou
Xeago has quit [Remote host closed the connection]
charliesome has joined #ruby
devdazed has quit [Ping timeout: 272 seconds]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
charliesome has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
dionysus69 has quit [Quit: dionysus69]
maikowblue has joined #ruby
drocsid has joined #ruby
polishdub has quit [Quit: Leaving]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_underscore_ has joined #ruby
odigity2 has quit [Remote host closed the connection]
_underscore_ has quit [Client Quit]
tvon has quit [Quit: leaving]
lxsameer has quit [Quit: Leaving]
hfp_work has quit [Ping timeout: 264 seconds]
<havenwood> cek: Your matcher got greedy.
shinnya has joined #ruby
<havenwood> cek: /(first).+?(second)?$/
<havenwood> cek: +? <- non-greedy
<cek> I can't on $ , theres additional data
allcentury has quit [Ping timeout: 268 seconds]
SenpaiSilver has joined #ruby
Pupeno has joined #ruby
Timba-as has quit [Quit: Be back later ...]
<havenwood> cek: Just change `.+` to `.+?` and nothing else.
<cek> 'first junk second junk'.match /(first).+?(second)?/ => #<MatchData "first " 1:"first" 2:nil>
xaxisx has left #ruby [#ruby]
<havenwood> cek: Show a full example?
chipotle has quit [Quit: cheerio]
<havenwood> Or a couple?
<cek> that's the full example. I need to capture both groups.
mary5030 has joined #ruby
<cek> or capture first if second is not present.
<drocsid> I'm having trouble with my script, can somebody have a look? Think it's something simple but not finding it.
Xeago has joined #ruby
hfp_work has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
[k-_ has quit [Ping timeout: 246 seconds]
<Ox0dea> shevy: I did the Hajj.
badpanda has joined #ruby
badpanda has quit [Client Quit]
<Ox0dea> Saudi Arabian infrastructure leaves something to be desired.
parduse has quit []
<Coraline> drocsid: what kind of trouble?
hfp__work has joined #ruby
<Ox0dea> Coraline: nil trouble.
parduse has joined #ruby
<Coraline> Why is COUNT a string?
wldcordeiro has quit [Quit: Konversation terminated!]
mary5030 has quit [Ping timeout: 246 seconds]
<Ox0dea> >> ['foo bar', 'foo baz'].map { |s| s.match /(foo).+?(bar)?$/ } # cek
<ruboto> Ox0dea # => [#<MatchData "foo bar" 1:"foo" 2:"bar">, #<MatchData "foo baz" 1:"foo" 2:nil>] (https://eval.in/442545)
hfp_work| has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
n008f4g_ has quit [Ping timeout: 246 seconds]
patchedmonkey has joined #ruby
<Ox0dea> cek: You have to anchor the second match or it gets caught by `.+?` by dint of its being optional.
PaulCape_ has joined #ruby
<cek> yeah, sadly i don't see appropriate solution
<drocsid> COUNT isn't a string
<drocsid> I mean
<drocsid> it is
<drocsid> I should gix that
hfp_work has quit [Ping timeout: 264 seconds]
<Ox0dea> cek: I've just shown you one?
atomical_ has quit [Ping timeout: 255 seconds]
<drocsid> but look at the bottom
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<drocsid> sp_wh_runner.rb:29:in `block in <main>': undefined method `[]' for nil:NilClass (NoMethodError)
<cek> there's unknown junk around second item
<drocsid> bottom of my fist, that's the issue
hfp_work has joined #ruby
<Ox0dea> drocsid: app_data["apps"] is nil, which has no #[] method.
hfp__work has quit [Ping timeout: 264 seconds]
<Coraline> drocsid: I would inspect app_data via pry
patchedmonkey has quit [Client Quit]
atomical_ has joined #ruby
patchedmonkey has joined #ruby
PaulCapestany has quit [Ping timeout: 268 seconds]
Xeago has quit [Remote host closed the connection]
hfp_work| has quit [Ping timeout: 246 seconds]
kirun has quit [Quit: Client exiting]
<Ox0dea> cek: You can just use another `.+` to eat the junk before anchoring, no?
<drocsid> hmm I can just check the script with irb.. Thanks I will fix errors and see if there are more issues
ivanskie has quit [Quit: Leaving]
opensource_ninja has quit [Ping timeout: 260 seconds]
hfp_work has quit [Ping timeout: 240 seconds]
Pupeno has quit [Remote host closed the connection]
hfp_work has joined #ruby
tenderlove has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
Xeago has joined #ruby
tenderlove has joined #ruby
shinnya has joined #ruby
charliesome has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 246 seconds]
ownfocus has quit [Quit: Leaving]
mondayrain has quit [Ping timeout: 246 seconds]
skade has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
PaulCapestany has joined #ruby
jacksonmills has quit [Quit: Leaving]
PaulCape_ has quit [Ping timeout: 264 seconds]
cirenyc has joined #ruby
ksteck has quit [Ping timeout: 260 seconds]
htmldrum has joined #ruby
stardiviner has joined #ruby
Porfa has joined #ruby
Porfa has quit [Client Quit]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
shmilan has joined #ruby
jenrzzz has joined #ruby
spider-mario has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 264 seconds]
leo19 has quit [Quit: Leaving]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCape_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
aerozepplin has quit [Read error: Connection reset by peer]
Royalb15 has joined #ruby
aerozepplin has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
PaulCapestany has quit [Ping timeout: 260 seconds]
dfockler has quit [Remote host closed the connection]
aerozepplin has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
aerozepplin has joined #ruby
michael_mbp has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
ramfjord has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
Deviad has quit [Quit: Leaving]
<Ox0dea> >> Numeric.new # What's this for?
<ruboto> Ox0dea # => #<Numeric:0x40df4400> (https://eval.in/442559)
workmad3 has joined #ruby
rodfersou has quit [Quit: leaving]
dramagods has joined #ruby
volongato has quit [Ping timeout: 240 seconds]
funnel has quit [Quit: leaving]
Ropeney has joined #ruby
Alayde has quit [Ping timeout: 255 seconds]
<eam> Ox0dea: in case the ones you've got get old
funnel has joined #ruby
banjara1 has quit [Quit: Leaving.]
roxtrongo has joined #ruby
<Ox0dea> It's got a bunch of methods that don't actually work on account of not having the methods on which those methods it does have rely.
<Ox0dea> >> Numeric.new.to_c # but at least this works
<ruboto> Ox0dea # => (#<Numeric:0x4072037c>+0i) (https://eval.in/442560)
<eam> yeah I'm playing with it; amusing
<eam> >> Numeric.new % Numeric.new
failshell has joined #ruby
<ruboto> eam # => undefined method `/' for #<Numeric:0x41624350> (NoMethodError) ...check link for more (https://eval.in/442561)
<eam> >> Numeric.new.real?
<ruboto> eam # => true (https://eval.in/442562)
<Ox0dea> It's a sort of "placeholder" class, so some of this makes sense, but most of it doesn't.
dramagods has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
<Ox0dea> >> [+Numeric.new, [-Numeric.new rescue $!)]
<eam> >> Numeric.new.integer?
<ruboto> Ox0dea # => /tmp/execpad-bded2022df09/source-bded2022df09:2: syntax error, unexpected modifier_rescue, expecting ...check link for more (https://eval.in/442563)
<ruboto> eam # => false (https://eval.in/442564)
<Ox0dea> >> [+Numeric.new, (-Numeric.new rescue $!)] # Whoops.
<ruboto> Ox0dea # => [#<Numeric:0x41cfd08c>, #<TypeError: Numeric can't be coerced into Fixnum>] (https://eval.in/442565)
<Ox0dea> Why does unary negation try to convert to Fixnum? :/
<eam> is it weird that ruby has unary +
<eam> what's that for
roxtrong_ has joined #ruby
bklane has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
<Ox0dea> That is, you can define a :+@ method on things for lulz.
Illusioneer has joined #ruby
barhum2013 has joined #ruby
piotrj has joined #ruby
Alayde has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
bklane has joined #ruby
Royalb15 has quit [Quit: Leaving]
giuseppesolinas_ has joined #ruby
tenderlove has quit [Ping timeout: 264 seconds]
PaulCapestany has joined #ruby
robbyoconnor has joined #ruby
roxtrongo has quit [Ping timeout: 255 seconds]
failshell has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<Ox0dea> That's actually pretty sexy.
<Ox0dea> Watered-down superators == practical?
axiomatic_345 has joined #ruby
<eam> both amazing answers
<eam> now let's add unary /
bklane has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 268 seconds]
luksaur has quit [Quit: gone]
shmilan has quit [Ping timeout: 246 seconds]
Illusioneer has left #ruby ["PING 1443655669"]
tenderlove has joined #ruby
Lycanii has joined #ruby
shoerain has left #ruby ["WeeChat 1.1.1"]
workmad3 has quit [Ping timeout: 265 seconds]
arooni has quit [Ping timeout: 246 seconds]
bklane has joined #ruby
benlieb has quit [Quit: benlieb]
jobewan has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
rcvalle has quit [Quit: rcvalle]
ericjphillips has quit [Quit: Leaving.]
genpaku has joined #ruby
PaulCape_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 260 seconds]
mghaig has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
otacon-_ has quit [Ping timeout: 252 seconds]
mrsolow has joined #ruby
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
lampshades has joined #ruby
skade has joined #ruby
baweaver has quit [Remote host closed the connection]
arooni has joined #ruby
PaulCape_ has quit [Quit: .]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
jhn has joined #ruby
barhum2013 has quit [Ping timeout: 256 seconds]
tenderlo_ has joined #ruby
mghaig has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
barhum2013 has joined #ruby
`tim` has joined #ruby
mary5030 has quit [Remote host closed the connection]
opensource_ninja has joined #ruby
catcher has joined #ruby
catcher has quit [Client Quit]
mary5030 has joined #ruby
failshell has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has quit [Client Quit]
`tim` has quit [Client Quit]
eminencehc has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 264 seconds]
`tim` has joined #ruby
BrazenBraden has quit [Ping timeout: 268 seconds]
drizz has quit [Quit: leaving]
Azure has joined #ruby
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
GeissT has joined #ruby
tenderlo_ has quit [Read error: Connection reset by peer]