apeiros changed the topic of #ruby to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
iteratorP has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<pentanol> no, I want keep both because in another way my old gitlab will not work at all
Wolland has joined #ruby
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar_ has joined #ruby
delianides has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
Wolland_ has joined #ruby
GnuYawk has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
csaunders has quit [Quit: later tater]
csaunders has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 264 seconds]
juanpablo__ has joined #ruby
bronson has joined #ruby
dseitz has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<havenwood> pentanol: gitlab is deprecated. EXTERMINATE!
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Wolland_ has quit [Ping timeout: 264 seconds]
<havenwood> pentanol: sry, went dalek there for a moment
charliesome has joined #ruby
BTRRY has joined #ruby
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
milesmatthias has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<pentanol> # ruby-switch --list
<pentanol> update-alternatives: error: no alternatives for ruby.
juanpablo__ has quit [Ping timeout: 252 seconds]
<havenwood> pentanol: yeah, I don't know why your installs aren't showing up
<havenwood> pentanol: you sure you did apt-get installs?
senayar has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
milesmatthias has joined #ruby
rorra has quit [Quit: rorra]
Sawbones has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 252 seconds]
cpt_yossarian has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Akuma has quit [Quit: So long sukkas!]
senayar has quit [Remote host closed the connection]
NivenHuH has quit [Read error: Connection reset by peer]
startupality has joined #ruby
Sawbones has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
milesmatthias has quit [Ping timeout: 250 seconds]
<pentanol> yes, ruby-switch I've installed today
<pentanol> fiew mitutes ago
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
jgt1 has joined #ruby
jonr22 has quit [Remote host closed the connection]
DavidDudson has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
gkra has quit [Remote host closed the connection]
t_p has quit [Quit: Computer has gone to sleep.]
startupality has quit [Quit: startupality]
nickjj has joined #ruby
oo_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
matchaw has joined #ruby
jottr has joined #ruby
matchaw has quit [Client Quit]
sriehl has joined #ruby
relix has joined #ruby
edwardly has quit [Quit: ??????????]
greenbagels has joined #ruby
<pentanol> anyway http://pastebin.ca/2958256 that says Sidekiq 3.3.0 does not support Ruby 1.9. (RuntimeError)
razieliyo has quit [Quit: Saliendo]
<pentanol> I made all necessary symlinks and anyway ruby 1.9 to run
<havenwood> yeah, Ruby 1.9 is paste end-of-life
<havenwood> past*
nii2361 has joined #ruby
rajeshchawla has joined #ruby
oo_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
<pentanol> what? paste exists: http://pastebin.ca/2958256
jerematic has joined #ruby
crazydiamond has joined #ruby
bim has joined #ruby
DavidDudson has joined #ruby
cpt_yossarian has quit [Ping timeout: 264 seconds]
jeromelanteri has quit [Ping timeout: 240 seconds]
justin_pdx has joined #ruby
oo_ has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
sriehl has quit []
rajeshchawla has quit [Ping timeout: 245 seconds]
DavidDudson has quit [Client Quit]
jenrzzz has joined #ruby
<pentanol> # bundle exec sidekiq
<pentanol> -bash: /usr/local/bin/bundle: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory
<pentanol> I made
<pentanol> -rwxr-xr-x 1 root root 6304 Nov 20 08:41 /usr/bin/ruby1.9.1_
<pentanol> lrwxrwxrwx 1 root root 9 Nov 27 2013 /usr/bin/ruby1.9.3_ -> ruby1.9.1
tier has joined #ruby
<rom1504> ok
bim has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
apeiros_ has quit [Remote host closed the connection]
DavidDudson has joined #ruby
jonr22 has joined #ruby
astrobunny has quit [Remote host closed the connection]
<pentanol> but when I do #!/usr/bin/ruby2.0 in /usr/local/bin/bundle I'm getting the error
apeiros_ has joined #ruby
<rom1504> ok
chipotle has joined #ruby
starless has joined #ruby
charliesome has quit [Quit: zzz]
bigmac has quit [Ping timeout: 256 seconds]
Sid05 has quit [Quit: Sid05]
juanpaucar has joined #ruby
pwnz0r has joined #ruby
<pentanol> how make bundler work with ruby2.0?
pwnz0r has quit [Client Quit]
apeiros_ has quit [Ping timeout: 255 seconds]
sngeth has quit [Ping timeout: 264 seconds]
edwardly has joined #ruby
edwardly has joined #ruby
charliesome has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
Feyn has joined #ruby
jeromelanteri has joined #ruby
iamjarvo has joined #ruby
sevenseacat has joined #ruby
cpt_yossarian has joined #ruby
pwnz0r has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
<pentanol> what If I made /usr/bin/ruby1.9.1 -> /usr/bin/ruby2.0 ?
sngeth has joined #ruby
<pentanol> there not so wrong I made?
ghostpl_ has joined #ruby
Sid05 has joined #ruby
<pentanol> because maby of
<pentanol> /usr/local/bin/rackup:#!/usr/bin/ruby1.9.1
<pentanol> /usr/local/bin/rake:#!/usr/bin/ruby1.9.1
<pentanol> /usr/local/bin/coveralls:#!/usr/bin/ruby1.9.1
<pentanol> /usr/local/bin/nokogiri:#!/usr/bin/ruby1.9.1
hmsimha has joined #ruby
<pentanol> want use ruby1.9.1
lkba_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
tkuchiki has joined #ruby
gregf has joined #ruby
Zai00 has quit [Quit: Zai00]
amclain has quit [Quit: Leaving]
lkba has quit [Ping timeout: 255 seconds]
ATM_London has quit [Ping timeout: 256 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
DavidDudson has joined #ruby
bronson has joined #ruby
ghostpl_ has quit [Ping timeout: 244 seconds]
dfinninger has quit [Remote host closed the connection]
ATM_London has joined #ruby
tubuliferous has joined #ruby
milesmatthias has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
beginner has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 272 seconds]
funburn has joined #ruby
beginner has joined #ruby
beginner has quit [Changing host]
beginner has joined #ruby
oo_ has quit [Remote host closed the connection]
milesmatthias has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
oo_ has joined #ruby
mikepack has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
senayar has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
tier has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
duncannz has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
rorra has joined #ruby
DEA7TH has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
iamninja has quit [Read error: Connection reset by peer]
yourwebdevguy has joined #ruby
iamninja has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar_ has joined #ruby
senayar_ has quit [Client Quit]
funburn has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
delianides has joined #ruby
marr has quit []
exadeci has quit [Quit: Connection closed for inactivity]
funburn has joined #ruby
rajeshchawla has joined #ruby
wldcordeiro has joined #ruby
rajeshchawla has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
AndyBotwin has quit [Quit: Leaving]
millerti has quit [Client Quit]
triangles3 has joined #ruby
astrobunny has joined #ruby
havenwood has quit [Remote host closed the connection]
avahey has joined #ruby
rbennacer has quit [Remote host closed the connection]
narcan has joined #ruby
triangles2 has quit [Ping timeout: 246 seconds]
juanpablo__ has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
bim has joined #ruby
beginner has quit [Ping timeout: 244 seconds]
slash_nick has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
beginner has joined #ruby
rubyquest has joined #ruby
juanpablo__ has quit [Ping timeout: 246 seconds]
nii2361 has quit [Ping timeout: 255 seconds]
Wolland has joined #ruby
bim has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
doodlehaus has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
greenbagels has quit [Read error: Connection reset by peer]
<rubyquest> hello all, can anyone explain NoMethodError?
a5i has quit []
<rubyquest> oh wait lol
<sevenseacat> rubyquest: you're calling a method that doesnt exist.
<rubyquest> yeah its for a nil:NilClass
<rubyquest> the object is nil though? i just checked it with .nil?
<sevenseacat> something is nil that you're not expecting to be nil
Wolland has quit [Ping timeout: 252 seconds]
<rubyquest> if not ( ref.nil? )
<sevenseacat> whats the actual error?
<rubyquest> combine.rb:16:in `<main>': undefined method `value' for nil:NilClass (NoMethodError)
<sevenseacat> so what are you calling value on?
oo_ has quit [Remote host closed the connection]
<rubyquest> arr[0]
<rubyquest> one second: http://pastebin.com/7F9GbNkv
<helpa> Hi rubyquest. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
funburn has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Ping timeout: 252 seconds]
<sevenseacat> Radar: didnt think helpa was supposed to spit that stuff here
<Radar> sevenseacat: According to apeiros it's A-OK
lordkryss has quit [Quit: Connection closed for inactivity]
<sevenseacat> cool
<sevenseacat> he's the boss
Sawbones has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
millerti has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
ATM_London has quit [Remote host closed the connection]
phutchins has joined #ruby
<rubyquest> https://gist.github.com/anonymous/20f9f9ea9a47d5600c5c << Getting That nil error on line 16,after check
DerisiveLogic has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
Beoran_ has joined #ruby
<rubyquest> i check for nil reference, before accessing reference
ghostpl_ has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
oo_ has joined #ruby
DerisiveLogic has joined #ruby
<rubyquest> i get undefined method `value' for nil:NilClass (NoMethodError)\
<rubyquest> ref tested not to be nil
phutchins has quit [Ping timeout: 252 seconds]
ponga has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 245 seconds]
jonr22 has quit [Remote host closed the connection]
charliesome has joined #ruby
ghostpl_ has quit [Ping timeout: 272 seconds]
dfinninger has quit [Ping timeout: 272 seconds]
krz has joined #ruby
<pontiki> evening folks
<rubyquest> http://lukaszwrobel.pl/blog/ruby-is-nil << stil having prblems with nil reference, i check it with an if, what is happening
ponga has joined #ruby
pontiki has quit [Quit: oh well]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
delianides has quit [Remote host closed the connection]
<bradleyprice> rubyquest: You're checking arr[0] for nil, but what about arr[1]?
<rubyquest> yeah
<rubyquest> thanks
<bradleyprice> np
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lentils02 has joined #ruby
lentils02 has left #ruby [#ruby]
juanpaucar has joined #ruby
amystephen has quit [Quit: amystephen]
rubyquest has quit [Quit: Page closed]
Joufflu has joined #ruby
martinbmadsen has quit [Ping timeout: 245 seconds]
zorak8 has joined #ruby
Joufflu has quit [Max SendQ exceeded]
Joufflu has joined #ruby
rajeshchawla has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rajeshchawla has quit [Ping timeout: 244 seconds]
renier has joined #ruby
delianides has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
nii2361 has joined #ruby
_huck5 has quit [Quit: Leaving]
_huck5 has joined #ruby
Soda has quit [Remote host closed the connection]
bronson has joined #ruby
Wolland has joined #ruby
shadoi1 has quit [Quit: Leaving.]
delianides has quit [Remote host closed the connection]
tubuliferous has joined #ruby
milesmatthias has joined #ruby
jerematic has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
pwnz0r has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
jgt1 has quit [Ping timeout: 256 seconds]
pwnz0r has joined #ruby
NivenHuH has joined #ruby
bronson has quit [Remote host closed the connection]
charliesome has joined #ruby
milesmatthias has quit [Ping timeout: 245 seconds]
tubuliferous has quit [Ping timeout: 252 seconds]
_2_Santana_Wilso has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mikepack has joined #ruby
NoNMaDDeN has quit [Ping timeout: 252 seconds]
pwnz0r has quit [Ping timeout: 250 seconds]
justin_pdx has quit [Quit: justin_pdx]
astrobunny has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MyMind has quit [Read error: Connection reset by peer]
Wolland has quit []
MyMind has joined #ruby
triangles2 has joined #ruby
Soda has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
starless has quit [Quit: Leaving]
martinbmadsen has joined #ruby
triangles3 has quit [Ping timeout: 272 seconds]
jgt1 has joined #ruby
lucianosousa has joined #ruby
Katselphrime has joined #ruby
ghostpl_ has joined #ruby
Katselphrime has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 244 seconds]
astrobunny has joined #ruby
Sid05 has left #ruby [#ruby]
_2_Santana_Wilso has quit [Read error: Connection reset by peer]
ghostpl_ has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
_huck5 is now known as huck5
Pupeno has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
zzing has joined #ruby
beginner has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
beginner has joined #ruby
beginner has quit [Changing host]
beginner has joined #ruby
zacts has joined #ruby
iheartkode has joined #ruby
tlarevo has joined #ruby
n_blownapart has joined #ruby
bronson has joined #ruby
rajeshchawla has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
<n_blownapart> \
juanpablo__ has joined #ruby
zorak8 has joined #ruby
oo_ has joined #ruby
pwnz0r has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
ItSANgo_ has joined #ruby
ItSANgo has joined #ruby
ItSANg___ has joined #ruby
ItSANgo__ has joined #ruby
ItSANgo has quit [Client Quit]
iamjarvo has joined #ruby
juanpablo__ has quit [Ping timeout: 264 seconds]
astrobunny has quit [Remote host closed the connection]
ItSANgo__ has quit [Client Quit]
ItSANg___ has quit [Client Quit]
bronson has quit [Remote host closed the connection]
crueber has joined #ruby
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
<iheartkode> /
bruno- has joined #ruby
bigmac has joined #ruby
Soda has quit [Remote host closed the connection]
pwnz0r has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 256 seconds]
nii2361 has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 250 seconds]
tkuchiki_ has joined #ruby
oo__ has joined #ruby
Joufflu has quit [Ping timeout: 265 seconds]
krz has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 252 seconds]
jgrevich has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
Joufflu has joined #ruby
braincrash has quit [Quit: bye bye]
daynaskully has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Ping timeout: 245 seconds]
jgrevich has quit [Quit: jgrevich]
krz has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
braincras has joined #ruby
krz has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
a346 has quit [Quit: a346]
towski_ has quit [Remote host closed the connection]
milesmatthias has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
martinbmadsen has quit [Ping timeout: 252 seconds]
netz has quit [Quit: WeeChat 1.1.1]
iheartkode has quit [Quit: Leaving]
arescorpio has quit [Excess Flood]
martinbmadsen has joined #ruby
juanpaucar has joined #ruby
<jhass> |
PeterTs has joined #ruby
Musashi007 has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest74417
speakingcode has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
PeterTs has quit [Ping timeout: 264 seconds]
<Radar> _
mostlybadfly has quit [Quit: Connection closed for inactivity]
rajeshchawla has quit []
sngeth has quit [Ping timeout: 240 seconds]
<sevenseacat> ~
sngeth has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
<Radar> —
sngeth has quit [Ping timeout: 264 seconds]
Ankhers has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
martinbm1dsen has joined #ruby
agent_white has quit [Quit: nightseeya]
martinbmadsen has quit [Ping timeout: 244 seconds]
mike32 has joined #ruby
martinbmadsen has joined #ruby
tubuliferous has joined #ruby
crueber has quit [Quit: Leaving.]
martinbm1dsen has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
oo__ has quit [Remote host closed the connection]
n_blownapart has quit [Quit: Leaving]
oo_ has joined #ruby
tkuchiki has joined #ruby
rbennacer has joined #ruby
bronson has joined #ruby
tubuliferous has quit [Ping timeout: 272 seconds]
bennyklotz has joined #ruby
tkuchiki_ has quit [Ping timeout: 246 seconds]
mikepack has quit [Remote host closed the connection]
hmnhf has joined #ruby
krz has quit [Ping timeout: 256 seconds]
rbennacer has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
dfinninger has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
martinbmadsen has quit [Ping timeout: 255 seconds]
last_staff has quit [Remote host closed the connection]
pwnz0r has joined #ruby
decoponyo has joined #ruby
ghostpl_ has joined #ruby
justin_pdx has joined #ruby
last_staff has joined #ruby
aytch has joined #ruby
oo_ has joined #ruby
<aytch> Math.sqrt(5)
<aytch> => 2.23606797749979
<aytch> wat
pwnz0r has quit [Remote host closed the connection]
<aytch> oh wait...root. I am an idiot.
spiderbyte has quit [Ping timeout: 245 seconds]
decoponio has quit [Ping timeout: 264 seconds]
milesmatthias has quit [Remote host closed the connection]
astrobunny has joined #ruby
nii2361 has joined #ruby
oo_ has quit [Remote host closed the connection]
Ankhers has joined #ruby
milesmatthias has joined #ruby
Hobogrammer has joined #ruby
havenwood has joined #ruby
oo_ has joined #ruby
ghostpl_ has quit [Ping timeout: 240 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Pupeno has joined #ruby
milesmatthias has quit [Ping timeout: 245 seconds]
Ankhers has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
phutchins has joined #ruby
krz has joined #ruby
Pupeno has quit [Ping timeout: 252 seconds]
<triangles2> Is there a method like Dir.glob that accepts a regex instead of a glob string?
oo_ has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
lucianosousa has quit [Quit: lucianosousa]
dfinninger has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
tubuliferous has joined #ruby
baroquebobcat has joined #ruby
krz has joined #ruby
jenrzzz has joined #ruby
tubuliferous_ has joined #ruby
SegFaultAX has quit [Excess Flood]
Musashi007 has quit [Quit: Musashi007]
hgl has quit [Ping timeout: 256 seconds]
hvxgr has quit [Ping timeout: 256 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
SegFaultAX has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
hgl has joined #ruby
juanpablo__ has joined #ruby
bim has joined #ruby
sngeth has joined #ruby
juanpablo__ has quit [Ping timeout: 244 seconds]
last_staff has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 272 seconds]
bim has quit [Ping timeout: 264 seconds]
sumark has quit [Remote host closed the connection]
sngeth has quit [Ping timeout: 244 seconds]
sumark has joined #ruby
hmsimha has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
anaeem1_ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
zzing has joined #ruby
huck5 has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
pwnz0r has joined #ruby
tubulife- has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
pwnz0r has quit [Remote host closed the connection]
tubulife- has quit [Remote host closed the connection]
pwnz0r has joined #ruby
tubuliferous has joined #ruby
bronson has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
delianides has joined #ruby
pwnz0r has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
delianides has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
hvxgr has joined #ruby
martinbmadsen has joined #ruby
yourwebdevguy has quit [Ping timeout: 246 seconds]
<ProteusX> awesomenuts assemble! + beer = happy me
jonr22 has joined #ruby
krz has joined #ruby
Spami has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
justin_pdx has joined #ruby
iterator_ has joined #ruby
zapata has quit [Quit: leaving]
Channel6 has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 256 seconds]
iteratorP has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
sandelius has joined #ruby
iterator_ has quit [Ping timeout: 246 seconds]
milesmatthias has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
mostlybadfly has joined #ruby
Morkel has joined #ruby
Musashi007 has quit [Quit: Musashi007]
juanpaucar has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
nii2361 has quit [Ping timeout: 255 seconds]
tobago has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
emocakes has joined #ruby
rorra has quit [Quit: rorra]
ramfjord has quit [Ping timeout: 256 seconds]
justin_pdx has quit [Quit: justin_pdx]
relix has joined #ruby
SOLDIERz_ has joined #ruby
jusmyth has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
coderhs has joined #ruby
tubuliferous has quit [Remote host closed the connection]
tubuliferous has joined #ruby
gkra has joined #ruby
NoNMaDDeN has joined #ruby
elaptics is now known as elaptics_away
digitalcake has joined #ruby
<shevy> triangles2 don't think so; but you can use use .reject afterwards
NoNMaDDeN has quit [Ping timeout: 255 seconds]
TheRinger has quit [Quit: Konversation terminated!]
<digitalcake> I was wondering if I'm using the apartment gem and have two AR models in to different schemes can I have a foreign keys with the two?
TheRinger has joined #ruby
Musashi007 has joined #ruby
tagrudev has joined #ruby
TheRinger has quit [Client Quit]
nii2361 has joined #ruby
apeiros_ has joined #ruby
psy_ has quit [Remote host closed the connection]
ptrrr has joined #ruby
<digitalcake> looks like I cant from the way I'm trying. it would look as if I need to make sure it nows to look in the different scheme when looking for the other table.
Dakuan_ has joined #ruby
last_staff has joined #ruby
mike32 is now known as bobitto
<bobitto> wow
lyuben_ has joined #ruby
bronson has joined #ruby
riotjon__ has quit [Quit: Leaving...]
hmnhf has quit [Ping timeout: 265 seconds]
tubuliferous_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
claptor has quit [Quit: this channel is bakas]
nii2361 has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 1.0.1]
apeiros_ has quit [Remote host closed the connection]
agrinb_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Mia has quit [Write error: Connection reset by peer]
agrinb has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
krz has joined #ruby
sameerynho has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
The_Phoenix has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 256 seconds]
relix has joined #ruby
Dakuan_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digitalcake has quit [Quit: Leaving.]
wldcordeiro has joined #ruby
ptrrr has quit [Quit: ptrrr]
hanmac1 has joined #ruby
Macaveli has joined #ruby
milesmatthias has joined #ruby
ki0 has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
ki0_ has joined #ruby
ki0 has quit [Read error: Connection reset by peer]
<flughafen> moin shevy certainty sevenseacat a
<sevenseacat> hallo
jusmyth has quit [Quit: Leaving.]
<flughafen> how was everybodyy's weekdn
<sevenseacat> busy busy busy
<sevenseacat> workin' on mah book
<flughafen> ooh! i know someone famous!
<flughafen> what's your book on ? rails?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> i'm not famous
<sevenseacat> !r4ia
<helpa> Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
milesmatthias has quit [Ping timeout: 265 seconds]
Dakuan_ has joined #ruby
<flughafen> sweet
<flughafen> how far is it?
<sevenseacat> nearly finished
krz has quit [Ping timeout: 252 seconds]
towski_ has joined #ruby
bMalum has joined #ruby
<shevy> yo flughafen - don't take off early, learn from Berlin
<shevy> does the book feature cats?
<flughafen> shevy: what happened?
<shevy> flughafen it has an unfinished flughafen!!!
<flughafen> ah, yeah
* flughafen want s to move back there
<shevy> although I think jhass said Berlin has two airports anyway? Austria does not even have one in town or at the town borders; it has a somewhat nearby airport in Schwechat but that takes about 25-35 minutes or so to reach by train
SouL has joined #ruby
<shevy> sorry, I meant *Vienna
<certainty> moin
<shevy> moin certitty
juanpablo__ has joined #ruby
coderhs has quit [Ping timeout: 256 seconds]
<ineb> To put the discussion back to topic: You can reach most towns in Austria via Rails
towski_ has quit [Ping timeout: 252 seconds]
<flughafen> shevy: there were 3, tegel, some other i can't remember and schonefeld
<flughafen> tegel and shonefeld are still open, but this one is supposed to replace all 3
<shevy> cool, even 3
<shevy> I am beginning to slowly understand how this could be messed up :D
aganov has joined #ruby
<shevy> let's add another airport
<shevy> just like that: http://xkcd.com/927/
<flughafen> where do you live shevy ?
<shevy> vienna
<flughafen> sweet, i have some family in salzburg
last_staff has quit [Ping timeout: 244 seconds]
sngeth has joined #ruby
nfk has joined #ruby
juanpablo__ has quit [Ping timeout: 264 seconds]
bMalum has quit [Quit: bMalum]
krz has joined #ruby
jgt1 has joined #ruby
apeiros_ has joined #ruby
lemur has quit [Remote host closed the connection]
sngeth has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
ayaz has joined #ruby
nii2361 has joined #ruby
ayaz has quit [Max SendQ exceeded]
bal has joined #ruby
emocakes has quit [Ping timeout: 246 seconds]
tubuliferous_ has joined #ruby
hrendalf has joined #ruby
ayaz has joined #ruby
sinkensabe has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
codecop has quit [Quit: Išeinu]
codecop_ has quit [Quit: Išeinu]
hmnhf has joined #ruby
codecop has joined #ruby
pentanol has quit [Quit: leaving]
fabrice31 has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
hs366 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
charliesome has quit [Quit: zzz]
KramerC has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
Dakuan_ has quit [Remote host closed the connection]
freezevee has joined #ruby
<freezevee> Hi guys, I just wanted to share my first Rails-based open source application which is a case/ticket management system I built for my work and decided to release it in public. The github link is https://github.com/chrisvel/ticketbox. I appreciate your opinion so don't bother to tell me !
KramerC has joined #ruby
tubuliferous has quit [Quit: ZNC - http://znc.in]
Pumukel has joined #ruby
jgt1 has quit [Ping timeout: 256 seconds]
<zmyrgel> good morning
<zmyrgel> I'm trying to debug public key login issue using net-ssh
jonr22 has joined #ruby
aiguu has quit [Quit: WeeChat 1.1.1]
<zmyrgel> I have a simple script which logins using pub key and downloads single file from remote server
<zmyrgel> the script works from my local linux laptop but from windows server it needs to run I can't get the pub key login to work
<sandelius> is rubys autoload being depreciated or not?
MatthewsFace has quit [Ping timeout: 246 seconds]
<zmyrgel> I think the pub key permissions should be ok on windows side as using cygwin and openssh client with the pub key works
BTRRY has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
<zmyrgel> whats extra curious about this is that once I fail to login from windows side, the local version can't login for a few tries
<freezevee> I meant don't hesitate to tell me !
plashchynski has joined #ruby
MyMind has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
bronson has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
MyMind has joined #ruby
bMalum has joined #ruby
<zmyrgel> the debug output shows that it tries to auth with public with fingerprint so the script finds the key but for some reason won't authenticate with it
bMalum has quit [Read error: Connection reset by peer]
<bobitto> freezevee , hide password in config file
fabrice31 has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
ptrrr has joined #ruby
<freezevee> bobitto: it's a local one, nothing to be worried about
<freezevee> bobitto: but I am still searching for a way to manage them
dumdedum has quit [Quit: foo]
bMalum has joined #ruby
<shevy> sandelius yeah it is deprecated. look here https://www.ruby-forum.com/topic/3036681
dcarmich has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<sandelius> shevy yeah but last post is 2011 and it's still there. Now it's even thread safe in jruby
dumdedum has joined #ruby
<shevy> I don't see what is contradictory to that if you read what matz wrote
<shevy> main ruby interpreter (MRI) is not jruby by the way
<bobitto> freezevee , YAML::load(File.open('config/database.yml')
mikepack has quit [Ping timeout: 245 seconds]
<sandelius> shevy I hear you, I just really like autoload :)
sinkensabe has quit [Remote host closed the connection]
<shevy> it will remain in the 2.x branch anyway
<freezevee> bobitto: I'm not sure how this would help me
<sandelius> shevy yeah it seems it'll be removed in 3.0. Hope we get something similar
sinkensabe has joined #ruby
<bobitto> hide pass in ENV file
juanpaucar has joined #ruby
<bobitto> db:migrate dont work
MyMind has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
MyMind has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
nii2361 has quit [Read error: No route to host]
charliesome has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Abhijit has joined #ruby
einarj has joined #ruby
jgt1 has joined #ruby
bMalum has quit [Quit: bMalum]
wottam has joined #ruby
alex88 has joined #ruby
narcan has joined #ruby
<apeiros_> shevy: autoload is no longer scheduled for deprecation. they made it thread-safe.
<shevy> ah
ptrrr has quit [Quit: ptrrr]
<apeiros_> sandelius: ^
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has joined #ruby
jgt1 has quit [Ping timeout: 252 seconds]
shay- has joined #ruby
<sandelius> apeiros_ ahh nice. Is there an announcement anywhere?
relix has joined #ruby
<shay-> hi, I have a multilined string, I want to gsub all ips and print them, but if no ip mathces in a line I want to print nothing, how can I do that?
BTRE has joined #ruby
martinbmadsen has quit [Ping timeout: 255 seconds]
exadeci has joined #ruby
bim has joined #ruby
<apeiros_> sandelius: I'd assume it's in NEWS/CHANGELOG in the ruby source. no idea otherwise.
antgel has joined #ruby
Pumukel has quit [Ping timeout: 245 seconds]
hrendalf has quit [Read error: Connection reset by peer]
<apeiros_> shay-: use gsub with a block
byprdct has quit [Ping timeout: 246 seconds]
<shay-> apreios: I am trying to, but how can I check if there war no hit? if match.nil? || match.empty "" else Regexp.last_match[1] end -- seems to be the wrong approach
bim has quit [Ping timeout: 252 seconds]
<apeiros_> shay-: pro-tip: use tab completion for nicks. mine is not apreios
<apeiros_> gsub will only invoke the block when there is a hit
<shay-> apeiros: real pro tip ;) thx haha
<apeiros_> so there's no point in checking whether there was a match
<shay-> apeiros_: ok got it, so I have to sdave it in a diffeent vairable, thx
<apeiros_> if you want to invoke the block even if there's no ip in the line, change your regex
<shay-> apeiros_: thanks works now
riotjones has joined #ruby
danjordan has joined #ruby
ghr has joined #ruby
terlar has joined #ruby
plashchynski has quit [Quit: plashchynski]
marr has joined #ruby
krz has quit [Read error: Connection reset by peer]
danjordan has left #ruby [#ruby]
lyuben_ has quit [Read error: Connection reset by peer]
lyuben_ has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
gfawcettpq has quit [Ping timeout: 240 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
fabrice31 has joined #ruby
hrendalf has joined #ruby
narcan has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
BlackGear has joined #ruby
narcan has quit [Max SendQ exceeded]
arup_r has joined #ruby
BlackGear has quit [Max SendQ exceeded]
codecop has quit [Remote host closed the connection]
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
rkazak_ has left #ruby [#ruby]
ghostpl_ has joined #ruby
BlackGear has joined #ruby
danjordan has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
CustosLimen has joined #ruby
arcsky has joined #ruby
BlackGear has quit [Max SendQ exceeded]
jgt1 has joined #ruby
<arcsky> hey, ruby takes so much resources... how can i see what programs which use .ruby.bin ?
BlackGear has joined #ruby
<triangles2> Quick question: is there a method I can call on methods to let me know what object/class they belong to?
sinkensabe has quit [Remote host closed the connection]
<hanmac1> arcsky: which OS?
_ixti_ has joined #ruby
<arcsky> hanmac1: linux/ubuntu
<tobiasvl> ps ux | grep ruby
<tobiasvl> ?
BlackGear has quit [Max SendQ exceeded]
<tobiasvl> or top
<hanmac1> arcsky: did you look at gnome-system-monitor?
BlackGear has joined #ruby
tesuji has joined #ruby
<arcsky> hanmac1: its server so only cli. ps shows nothing. top shows ruby.bin
beginner has quit [Ping timeout: 265 seconds]
BlackGear has quit [Max SendQ exceeded]
<hanmac1> triangles2: are you inside the method itself or do you have a Method object?
ixti has quit [Ping timeout: 264 seconds]
BlackGear has joined #ruby
ghostpl_ has quit [Ping timeout: 252 seconds]
beginner has joined #ruby
rdark has joined #ruby
bMalum has joined #ruby
<triangles2> hanmac1: I have a Method object
mostlybadfly has quit [Quit: Connection closed for inactivity]
fabrice31_ has joined #ruby
<hanmac1> triangles2:
<hanmac1> >> method(:to_s).owner == self
<eval-in_> hanmac1 => false (https://eval.in/300581)
<hanmac1> hm
<hanmac1> but is the owner method
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hs366> Q: class Foo and Class Foo are the same ?
<hanmac1> triangles2: hm no owner returns the class, you want
<hanmac1> >> method(:to_s).receiver == self
<eval-in_> hanmac1 => true (https://eval.in/300583)
<hanmac1> hs366: no
<hanmac1> "Class Foo" is like "Class(Foo)" which is a method call
<hs366> oh , could you please point me to some article ? should i search method call to read more about it ?
fabrice31 has quit [Ping timeout: 250 seconds]
BlackGea_ has joined #ruby
<hanmac1> hs366: ruby is case-sensitive
araw has joined #ruby
craigp has joined #ruby
BlackGea_ has quit [Max SendQ exceeded]
BlackGea_ has joined #ruby
martianixor has joined #ruby
BlackGea_ has quit [Max SendQ exceeded]
<hs366> hanmac1, thx !
BlackGea_ has joined #ruby
<shevy> hs366 "class" is a keyword
<hs366> i found something to read
<hs366> yap
BlackGea_ has quit [Max SendQ exceeded]
<hs366> i confused all my last weekend whit this keyword lol
<shevy> hs366 an overview of the keywords can be seen here: http://ruby-doc.org/docs/keywords/1.9/
BlackGea_ has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 246 seconds]
BlackGear has quit [Ping timeout: 256 seconds]
<hs366> shevy, thx !!
chthon has joined #ruby
milesmatthias has joined #ruby
BlackGea_ has quit [Max SendQ exceeded]
<shevy> you can also do a:
<shevy> >> def Class(i); p i; end; Class 'yo there'
<eval-in_> shevy => "yo there" ... (https://eval.in/300584)
BlackGear has joined #ruby
<shevy> Integer() is like that
<shevy> >> Integer('5')
<eval-in_> shevy => 5 (https://eval.in/300585)
bweston92 has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<hs366> i c
<apeiros_> proper: module Kernel; module_function def Class …
<apeiros_> that's how Integer()/Float()/Array() etc. are defined
BlackGear has joined #ruby
stef204 has joined #ruby
BlackGear has quit [Max SendQ exceeded]
milesmat_ has joined #ruby
BlackGear has joined #ruby
sevenseacat has quit [Remote host closed the connection]
BlackGear has quit [Max SendQ exceeded]
Rephiax has joined #ruby
BlackGear has joined #ruby
bal has quit [Read error: Connection reset by peer]
marcoecc has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<shevy> cool
BlackGear has quit [Max SendQ exceeded]
milesmatthias has quit [Ping timeout: 255 seconds]
<shevy> did not know Array()
<shevy> >> Array('cat')
<eval-in_> shevy => ["cat"] (https://eval.in/300586)
bal has joined #ruby
<shevy> haha!
<shevy> now I have ... [] Array.new and Array()
<hs366> >> Array()
<eval-in_> hs366 => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/300587)
<hs366> >> Array(123)
<eval-in_> hs366 => [123] (https://eval.in/300588)
<shevy> yeah subtle differences I guess
<shevy> [] works without argument
livathinos has joined #ruby
krisquigley has joined #ruby
<shevy> hs366 you have been using another programming language before ruby right?
<hs366> yeah. c++
<shevy> :)
<shevy> like hanmac
<shevy> he maintains some wxwidget bindings in ruby
jimms has joined #ruby
milesmat_ has quit [Ping timeout: 240 seconds]
<hs366> sometimes i confused between ruby and c++ but most like the same
wldcordeiro has quit [Ping timeout: 256 seconds]
DerisiveLogic has joined #ruby
shredding has joined #ruby
beginner has quit [Ping timeout: 264 seconds]
<arup_r> shevy: o/
beginner has joined #ruby
beginner has quit [Changing host]
beginner has joined #ruby
<shevy> yeah hs366
<shevy> like to use <<
* hanmac1 uses C to glue c++ and ruby together ;P
<shevy> in C++ we have... what was it ... cout << "Hello there" << endl;
<shevy> hmm
<hs366> yah
<shevy> in ruby ... we can also use <<
<shevy> on an Array or String it means append
juanpablo__ has joined #ruby
<shevy> hmm let's see if I can define it
<hs366> yeah ruby is much more simple but takes time to get it
<hs366> another question:
<shevy> >> class Foo; attr_reader :string; def initialize; @string = 'hello '; end; def <<(i); @string << i; end; end; foo = Foo.new; foo << 'world'; foo.string
<eval-in_> shevy => "hello world" (https://eval.in/300589)
jimms has quit [Read error: Connection reset by peer]
<shevy> yay \o/
DerisiveLogic has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
<hs366> I have a list of hashes, [{"Kind"=>0, "Path"=>"/var/log/dpkg.log"}] from Docker API
<undeadaedra> Hello
<hs366> i want to make a if kind = 0 change 0 to "A"
<shevy> yo undeadaedra mon alut
rdark has quit [Ping timeout: 250 seconds]
<hs366> if it's 1 change it to "C"
<shevy> hs366 that looks like an array first though
Dude007 has quit []
<hs366> is it good if i use case statement or if ?
RDash has quit [Ping timeout: 272 seconds]
<shevy> case is good when you have multiple easy conditions
<shevy> >> foo = 'cat'; case foo; when 'cat','dog','mouse'; puts 'These are all animals!'; end
<eval-in_> shevy => These are all animals! ... (https://eval.in/300591)
sngeth has joined #ruby
<apeiros_> hs366: depends on the specific case. if one was always better, we wouldn't have both
<shevy> btw, you probably wanted if kind == 0
<hs366> yes
<shevy> hs366 you can also use hanmac coding style :)
<shevy> it means to use as few characters as possible
juanpablo__ has quit [Ping timeout: 256 seconds]
hrendalf has quit [Remote host closed the connection]
toretore has joined #ruby
<hs366> let me make it first then i can share it in my gist and you correct me if i'm wrong
<hs366> brb
Musashi007 has joined #ruby
sngeth has quit [Ping timeout: 246 seconds]
jimms has joined #ruby
martinbmadsen has joined #ruby
vtunka has joined #ruby
rdark has joined #ruby
jgt2 has joined #ruby
RDash has joined #ruby
duncannz has quit [Remote host closed the connection]
<hanmac1> hs366: you can use something like that: list.each{|h| h['Kind']=["A","C"][h['Kind']] } but that changes the original array and its hash objects
jimms has quit [Remote host closed the connection]
agrinb has joined #ruby
jgt1 has quit [Ping timeout: 250 seconds]
jmhmccr has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 272 seconds]
tubuliferous has joined #ruby
davedev24_ has quit [Remote host closed the connection]
AlexRussia has joined #ruby
bim has joined #ruby
oo_ has quit [Remote host closed the connection]
Zai00 has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
jimms has joined #ruby
Dakuan has joined #ruby
wicope has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
araw has quit [Quit: araw]
bim has quit [Ping timeout: 252 seconds]
bMalum has quit [Quit: bMalum]
senayar has joined #ruby
jimms_ has joined #ruby
jimms has quit [Read error: Connection reset by peer]
vdamewood has joined #ruby
bMalum has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
bobitto is now known as kolorados
yeticry has joined #ruby
wottam has joined #ruby
jonr22 has joined #ruby
wottam has quit [Read error: Connection reset by peer]
elaptics_away is now known as elaptics
plashchynski has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
jimms_ has quit [Ping timeout: 245 seconds]
startupality has joined #ruby
User458764 has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
basiclaser has joined #ruby
bim has joined #ruby
AlexRussia has joined #ruby
bim has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
Hijiri has quit [Ping timeout: 256 seconds]
rdark has quit [Quit: leaving]
juanpaucar has joined #ruby
rdark has joined #ruby
nii2361 has joined #ruby
Hijiri has joined #ruby
PeterTs has joined #ruby
msgodf has joined #ruby
ghostpl_ has joined #ruby
lkba_ has quit [Ping timeout: 246 seconds]
n008f4g_ has joined #ruby
xlogic has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
xlogic has quit [Client Quit]
gfawcettpq has joined #ruby
alex88_ has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
kaleido has quit [Read error: Connection reset by peer]
ghostpl_ has quit [Ping timeout: 264 seconds]
kaleido has joined #ruby
davedev24_ has joined #ruby
alex88 has quit [Ping timeout: 245 seconds]
jsaak has quit [Ping timeout: 246 seconds]
wlanboy has quit [Ping timeout: 244 seconds]
amystephen has joined #ruby
workmad3 has joined #ruby
wlanboy has joined #ruby
last_staff has joined #ruby
User458764 has joined #ruby
reinaldob has joined #ruby
spider-mario has joined #ruby
freezevee has quit []
spiderbyte has joined #ruby
reinaldob has quit [Ping timeout: 252 seconds]
jsaak has joined #ruby
zacts has quit [Quit: leaving]
The_Phoenix has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
davzie has left #ruby ["WeeChat 0.3.0"]
agrinb has joined #ruby
NoNMaDDeN has joined #ruby
codecop has joined #ruby
PeterTs has quit [Quit: return]
oo_ has quit [Remote host closed the connection]
martianixor has quit [Quit: Leaving]
User458764 has quit [Ping timeout: 244 seconds]
bim has joined #ruby
NoNMaDDeN has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
bal has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
User458764 has joined #ruby
bal has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
selu has joined #ruby
lkba has joined #ruby
alex88_ has quit [Read error: Connection reset by peer]
techsethi has joined #ruby
mjuszczak has joined #ruby
rjc_ has joined #ruby
FaresKAl- has joined #ruby
FaresKAlaboud has quit [Read error: Connection reset by peer]
mjuszczak has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
startupality has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
vtunka has quit [Quit: Leaving]
emilkarl has joined #ruby
vtunka has joined #ruby
coderhs has joined #ruby
<emilkarl> Hi, I would like an array of objects with set keys… this is my example, but when I loop it i get an array with both the key and the object. How should this be done correct? http://pastie.org/10029856
c0m0 has joined #ruby
<gregf_> emilkarl: thats a hash of hashes
<apeiros_> emilkarl: {} is Hash, not Array
<emilkarl> but isant bar and foo the keys for each value in the first hash?
<apeiros_> emilkarl: and you can use either of: `hash.each do |key, value|` `hash.each_key do |key|` or `hash.each_value do |value|`
Takle has quit [Remote host closed the connection]
<emilkarl> aah ok
<apeiros_> emilkarl: yes, in the hash assigned to foo, :bar and :boo are the keys
<emilkarl> hash.each do |key, value|
<emilkarl> solved it...
doodlehaus has joined #ruby
<emilkarl> I added each_with_index but that also include and int index.
<emilkarl> thanks!
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
Soda has joined #ruby
tesuji has joined #ruby
<apeiros_> each_with_index puts all arguments each yields into the first argument and the index in the second
<apeiros_> it'd be: `hash.each_with_index do |key_value, index| key, value = *key_value …`
<apeiros_> you can write that simpler by using decomposition:
<apeiros_> `hash.each_with_index do |(key, value), index| `
<apeiros_> but I think index isn't what you want anyway.
arup_r_ has joined #ruby
bronson has joined #ruby
olivier_bK has joined #ruby
arup_r_ has quit [Client Quit]
arup_r has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
<certainty> you can remember that easily from the name. the index comes last in the name
keen_ has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<hs366> I have a hash list that i want to evaluate if the key value is 0 change 0 to A but doesn't work : https://gist.github.com/hs366/aba092754d971d3992b7
ghostpl_ has joined #ruby
havenwood has quit [Remote host closed the connection]
Takle has joined #ruby
milesmatthias has joined #ruby
<apeiros_> hs366: is that real code?
<tobiasvl> puts @myhash = [{"Kind"=>0, "Path"=>"/var/lib/something"},{"Kind"=>1, "Path"=>"/var/log/somelogfile"}]
<apeiros_> because `eslif` is typo
<tobiasvl> what?=
<hs366> ooh
<hs366> sorry
<apeiros_> and `obj.keys == 0` makes no sense (it'll never be true, Hash#keys always returns an array)
<tobiasvl> `diff.myhash.each` doesn't make a lot of sense either
<gregf_> certainty: thats confusing at times cuz with some methods the object comes first. like so, .inject({}){ |hash, str| ... and with each_with_object({}) { |str, hash| ...
<apeiros_> indeed
<kolorados> obj.key
<tobiasvl> hs366: there is a lot of things wrong with that code
<tobiasvl> I doubt it even runs
<apeiros_> I *know* it doesn't run
<tobiasvl> haha yeah wait, eslif
<gregf_> hs366: did you try what hanmac1 suggested?
<tobiasvl> missed that
drawingthesun has joined #ruby
<hs366> hanmac1 ?
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
r3dkinG has joined #ruby
<hanmac1> hs366: list.each{|h| h['Kind']=["A","C"][h['Kind']] }
drawingthesun has quit [Read error: Connection reset by peer]
<hs366> oh i missed that
<hanmac1> hm ok it currently doent check the "D" case, you i can change that: with list.each{|h| h['Kind']=["A","C"][h['Kind']] || "D" }
<gregf_> hs366: arr = [{"Kind"=>0, "Path"=>"/var/lib/something"},{"Kind"=>1, "Path"=>"/var/log/somelogfile"}];p arr.map{ |h| h["Kind"] = %w{A C}[h["Kind"]];h }
<gregf_> ah - nevrmind
milesmatthias has quit [Ping timeout: 252 seconds]
<hs366> apeiros_, tobiasvl gregf_ hanmac1 thx , i'll try it again
tlarevo_ has joined #ruby
* apeiros_ afk
Takle has quit [Remote host closed the connection]
tlarevo has quit [Ping timeout: 245 seconds]
<gregf_> hs366: you can do a check as well, "Kind" may noy always exist.
juanpablo__ has joined #ruby
plashchynski has quit [Quit: plashchynski]
<gregf_> like so, arr.map{ |h| h["Kind"] ? begin;h["Kind"] = %w{A C}[h["Kind"]];h;end : h }
wottam has joined #ruby
alex88 has joined #ruby
Soda has quit [Remote host closed the connection]
coderhs has quit [Quit: Leaving]
alex88 has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
sngeth has joined #ruby
<Diabolik> what are the best books for getting a grasp of intermediate ruby?
juanpablo__ has quit [Ping timeout: 245 seconds]
avril14th has joined #ruby
<avril14th> Hello
<avril14th> just out of curiosity, is there any speed difference between for / while / each ?
<avril14th> *loops
Pupeno has joined #ruby
Pupeno has joined #ruby
Dakuan has quit [Remote host closed the connection]
fabrice31_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 256 seconds]
sngeth has quit [Ping timeout: 264 seconds]
rodfersou has joined #ruby
sngeth has joined #ruby
Sid05 has joined #ruby
agrinb has joined #ruby
oo_ has quit [Remote host closed the connection]
alex88 has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
tubuliferous has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
narcan has joined #ruby
plashchynski has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jsrn> avril14th: IIRC, for loops in ruby are just syntax sugar for .each
<jsrn> The only difference being that for doesn't introduce its own scope
tubuliferous has quit [Ping timeout: 256 seconds]
Sid05 has quit [Quit: Sid05]
<avril14th> k
<gregf_> so a for/while is surely faster than an each ;)
Sid05 has joined #ruby
fabrice31 has joined #ruby
bMalum has joined #ruby
<jsrn> for uses each under the hood, so it's an extra layer if anything, I would have thought
rodfersou has quit [Quit: leaving]
sdothum has joined #ruby
<jsrn> 2.1.3 :005 > for x in nil do puts x end
<jsrn> NoMethodError: undefined method `each' for nil:NilClass
aob has quit [Ping timeout: 252 seconds]
emilkarl has quit [Quit: emilkarl]
aob has joined #ruby
Dakuan has joined #ruby
lanemeyer has quit [Ping timeout: 245 seconds]
<gregf_> avril14th: require "benchmark";Benchmark.bm(10000) { |b| b.report("for") { j = 0; for i in (1..100); j += i;end; }; b.report("each"){ j=0; [*1..100].each{ |i| j+=i }}; b.report("while") { j,i = 1,0; while (i <= 100); j += i;i+=1; end }}
Sid05 has quit [Client Quit]
<gregf_> if that even compiles :/
AlexRussia has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
<gregf_> apparently, while performs the best :(
serivich has joined #ruby
<gregf_> that splat operator performs a loop as well i guess :/
AlexRussia has joined #ruby
ldnunes has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
Guest74417 has quit [Changing host]
Guest74417 has joined #ruby
Guest74417 is now known as daynaskully
sngeth has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
writeco has quit [Quit: Connection closed for inactivity]
Hirzu has joined #ruby
romero has quit [Remote host closed the connection]
dANO_ has joined #ruby
romero has joined #ruby
romero is now known as Guest23042
mjuszczak has quit []
doodlehaus has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
Takle has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 265 seconds]
<gregf_> well, replace that [*1..100] by (1..100) and an each is faster than a for
<gregf_> anyways, i use an each wherever
Takle has joined #ruby
sngeth has joined #ruby
mjuszczak has joined #ruby
xenokiller has quit [Remote host closed the connection]
<canton7> the 'new scope' bit is important though
<canton7> it's worth even paying a small penalty for it
astrobunny has quit [Remote host closed the connection]
<undeadaedra> TIL ’json’ is not in stdlib
astrobunny has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<workmad3> undeadaedra: err... yes it is
alex88 has joined #ruby
<undeadaedra> I just had to install it manually on a 2.1 :x
<workmad3> undeadaedra: http://ruby-doc.org/stdlib-2.0/libdoc/json/rdoc/JSON.html there's your stdlib docs for it
ghostpl_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
sdothum has joined #ruby
zeeraw has joined #ruby
<undeadaedra> ok, that’s strange
<workmad3> gregf_: hmm, playing around, it looks like the performance of .each improved from 2.1 to 2.2
sngeth has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
juanpaucar has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
astrobun_ has quit [Ping timeout: 245 seconds]
<undeadaedra> ”! Unable to load application: LoadError: cannot load such file -- json”
Abhijit has quit [Quit: Bye.]
senayar has joined #ruby
<gregf_> workmad3: hmm, i've started with 1.9.* and now 2.2. but thats nice to know. cheers!
juanpaucar has quit [Ping timeout: 244 seconds]
beginner has quit [Ping timeout: 244 seconds]
jespada has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<hs366> gregf_,
<hs366> regarding this: arr = [{"Kind"=>0, "Path"=>"/var/lib/something"},{"Kind"=>1, "Path"=>"/var/log/somelogfile"}];p arr.map{ |h| h["Kind"] = %w{A C}[h["Kind"]];h
phutchins has joined #ruby
<hs366> can you explain a little bit more in last part : %w{A C}[h["Kind"]];h
<hs366> i don't get it
SouL_ has joined #ruby
<workmad3> undeadaedra: I think the stdlib json relies on native libraries, so it's possible it didn't compile
SouL has quit [Read error: Connection reset by peer]
<gregf_> hs366: its not too difficult. %w{A C} is ["A", "C"]
arup_r has quit [Remote host closed the connection]
<workmad3> undeadaedra: also, if you installed through something like ubuntu packages, it's possible you don't have the complete stdlib there (as package maintainers have a habit of carving up ruby into lots of small, odd packages and making it difficult to get a complete ruby environment)
<hs366> yah but what is the [h["k"]]
<gregf_> and h["Kind"] contains 0, 1, 2 whatever(indexes).btw, it was hanmac1's intelligence ;)
The_Phoenix has joined #ruby
<undeadaedra> workmad3: sounds like that
<undeadaedra> well, it sucks.
<gregf_> >> h["Kind"] = 1; ["A", "C"][h["Kind"]]
<eval-in_> gregf_ => undefined local variable or method `h' for main:Object (NameError) ... (https://eval.in/300693)
beginner has joined #ruby
beginner has quit [Changing host]
beginner has joined #ruby
<gregf_> >> h = { "Kind" => 1 }; ["A", "C"][h["Kind"]]
<eval-in_> gregf_ => "C" (https://eval.in/300694)
<gregf_> hs366: ^^
<workmad3> undeadaedra: most people tend to recommend not using ubuntu packages unless you have a very good reason to do so (such as you're installing a ruby application through the package manager and don't need a dev environment)... the recommendation is generally to use rvm, ruby-build or ruby-install to install, and rvm, rbenv or chruby to set up your ruby environment variables
<undeadaedra> workmad3: that’s Fedora packages actually
<workmad3> undeadaedra: alternatively, I know people who are perfectly happy with the brightbox ruby PPA, so you could investigate that
<undeadaedra> but I just need some basic setup theme
<undeadaedra> there*
<undeadaedra> it’s a test vm
Akuma has joined #ruby
<workmad3> undeadaedra: ah, not used fedora for quite a while... but all those packages are suitable for fedora, afaik
<hs366> but how does it know there is 0,1,2 ?
dANO_ has quit [Read error: Connection reset by peer]
dANO_ has joined #ruby
beginner has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
beginner has joined #ruby
lkba_ has joined #ruby
slackbotgz1 has joined #ruby
arup_r has joined #ruby
<kolorados> nice trick h["Kind"] = %w{A C}[h["Kind"]]
<hs366> yah but so advanced
antgel has quit [Ping timeout: 245 seconds]
<hs366> for me it's like RUBY PHD
<hs366> course
<hs366> lol
nii2361 has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 246 seconds]
sandelius has joined #ruby
rodfersou has joined #ruby
sandelius has quit [Max SendQ exceeded]
antgel has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brandly has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
slackbotgz has quit [Ping timeout: 245 seconds]
<shevy> hs366 why did you pick ruby and not python, considering that you came from C++?
ghostpl_ has joined #ruby
adriancb has joined #ruby
zeeraw has joined #ruby
zeeraw has quit [Remote host closed the connection]
<kolorados> python oldscool
<shevy> kolorados you are like a bird man
aspiers has joined #ruby
<shevy> like that yellow bird tweetie and that black cat sylvester
<shevy> you make the cat angry!
chinmay_dd has quit [Quit: Leaving]
<kolorados> i didn't watch bird mam
<Hirzu> Hi, any ideas on why this line wont catch the call to the method gethostname, but still call is directed to Socket class itself.
<Hirzu> expect_any_instance_of(Socket).to receive(:gethostname).and_return('456')
agrinb has joined #ruby
zeeraw has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
<kolorados> shevy, you think pyth is better then ruby?
aclearman037 has joined #ruby
<shevy> kolorados hmm it's hard to say because I don't use python
brandly has quit [Remote host closed the connection]
<shevy> I'd need to have used both for a longer time 50% 50%
<shevy> python has the better docs
emilkarl has joined #ruby
<kolorados> really?
<shevy> ruby code can be visually more pleasing
<shevy> yeah
rorra has joined #ruby
<kolorados> stackoverflow solves any problem
<shevy> alias e puts; loop { e 'Hello World!'; sleep 2; break if rand(3) == 1 }
<shevy> show the equivalent python code
agrinb has quit [Ping timeout: 265 seconds]
<shevy> stackoverflow works only for most smaller problems
<Hirzu> For the docs :) why is my expect_any_instance_of for Socket class not overriding the method call?
<shevy> your code looks very domain specific Hirzu
<Hirzu> really?
<shevy> yeah
<shevy> expect_any_instance_of()
<shevy> where is that defined
<Hirzu> rspec
certainty has quit [Ping timeout: 276 seconds]
arup_r has quit [Remote host closed the connection]
certainty has joined #ruby
<workmad3> Hirzu: could you gist the entire spec please?
<shevy> ok so the docu
<shevy> p Socket.gethostname
<shevy> returns my hostname here
<shevy> not sure what is '456'
<Hirzu> somethign standard, so it does not matter where it is run
<Hirzu> could be anything
DaniG2k has joined #ruby
<workmad3> Hirzu: also, expect_any_instance_of(Socket) will set up an expectation on instances, not on the class itself
<Hirzu> grrr
<Hirzu> ok
<workmad3> Hirzu: so you probably want just 'expect(Socket).to receive(:gethostname).and_return(456)'
DEA7TH has joined #ruby
<Hirzu> right, thanks :)
<workmad3> Hirzu: which kinda makes sense when you read the line :P
<Hirzu> it does
<hs366> gregf_, Thx it works and now i understand it ! :)
<Hirzu> after doing wrong thing for 15 mins, I got blind to it
<workmad3> Hirzu: I wanted to see the spec just in case you were trying to set up the expectation after you'd called the method btw ;)
<workmad3> Hirzu: which is another common mistake with message expectations and message stubs
<hs366> shevy, it's my MSC project, and it
<Hirzu> I know
<Hirzu> but not in this case
<Hirzu> spec is two lines, and that is the first
<workmad3> Hirzu: btw, if you just want to stub a method and not set up the requirement that it has to be called, there's also 'allow'
<hs366> it's not my choice , but im happy i learning ruby !
<workmad3> Hirzu: :)
<Hirzu> And the test passes, thanks :)
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Dakuan has quit [Remote host closed the connection]
varunwachaspati has joined #ruby
Dakuan has joined #ruby
paulfm has joined #ruby
<shevy> hs366 aha interesting
<hs366> yeah, difficult but i'm happy to take this project
livathin_ has joined #ruby
revoohc has quit [Quit: revoohc]
ghostpl_ has quit [Read error: Connection reset by peer]
SouL_ has quit [Ping timeout: 246 seconds]
sngeth has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
rhllor has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
beginner has quit [Ping timeout: 255 seconds]
beginner has joined #ruby
gfawcettpq has quit [Quit: Leaving.]
Akuma has quit [Quit: So long sukkas!]
sngeth has quit [Ping timeout: 246 seconds]
gfawcettpq has joined #ruby
ghostpl_ has joined #ruby
rkgudboy has joined #ruby
crazydiamond has quit [Ping timeout: 246 seconds]
sameerynho has quit [Ping timeout: 255 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
rikai has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
iamninja has quit [Client Quit]
wolf4ood_ has joined #ruby
iamninja has joined #ruby
mengu has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 255 seconds]
nii2361 has joined #ruby
milesmatthias has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
brb3 has joined #ruby
sambao21 has joined #ruby
shredding has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
rohit has joined #ruby
hmnhf has quit [Read error: Connection reset by peer]
sameerynho has joined #ruby
oo_ has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
tlarevo has joined #ruby
tier has joined #ruby
senayar has quit [Remote host closed the connection]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
dEPy has joined #ruby
milesmatthias has quit [Ping timeout: 255 seconds]
rkgudboy has quit [Ping timeout: 246 seconds]
lanemeyer has joined #ruby
juanpablo__ has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
PhaseCode has quit [Read error: Connection reset by peer]
dEPy has quit [Client Quit]
AlexRussia has joined #ruby
PhaseCode has joined #ruby
Tuxero has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
rkgudboy has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
razieliyo has joined #ruby
razieliyo has joined #ruby
anaeem1 has joined #ruby
rohitkashyap has joined #ruby
withnale_ has joined #ruby
zorak8 has joined #ruby
rohit has quit [Ping timeout: 265 seconds]
juanpablo__ has quit [Ping timeout: 255 seconds]
delianides has joined #ruby
yalue has joined #ruby
delianides has quit [Read error: Connection reset by peer]
delianides has joined #ruby
rkgudboy has quit [Ping timeout: 256 seconds]
max96at|off is now known as max96at
anaeem1 has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
sanguisdex has quit [Quit: Leaving.]
bruno- has joined #ruby
delianides has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has joined #ruby
sankaber has joined #ruby
beginner has quit [Ping timeout: 252 seconds]
charliesome_ has joined #ruby
beginner has joined #ruby
beginner has quit [Changing host]
beginner has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
Hirzu has quit [Ping timeout: 265 seconds]
tesuji has quit [Ping timeout: 265 seconds]
vtunka has quit [Quit: Leaving]
jimms has joined #ruby
Macaveli has joined #ruby
beginner has quit [Max SendQ exceeded]
sanguisdex has joined #ruby
rohitkashyap has quit [Ping timeout: 256 seconds]
sanguisdex has quit [Remote host closed the connection]
beginner has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Quit: WeeChat 1.1.1]
centrx has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
Hirzu has joined #ruby
davedev24_ has quit [Remote host closed the connection]
iamninja has joined #ruby
iamninja has quit [Client Quit]
NoNMaDDeN has joined #ruby
vtunka has joined #ruby
tubuliferous has joined #ruby
iamninja has joined #ruby
beginner has quit [Max SendQ exceeded]
Joufflu has quit [Read error: Connection reset by peer]
beginner has joined #ruby
SouL has joined #ruby
iamninja has quit [Client Quit]
kolorados has quit [Ping timeout: 240 seconds]
werelivinginthef has joined #ruby
iamninja has joined #ruby
bMalum has quit [Remote host closed the connection]
<avril14th> gregf_: thanks :)
tubuliferous has quit [Ping timeout: 246 seconds]
revoohc has joined #ruby
bMalum has joined #ruby
silkfox has joined #ruby
HOrangeJewce has joined #ruby
QualityAddict has quit []
paulfm has quit [Read error: Connection reset by peer]
bMalum has quit [Client Quit]
Takle has joined #ruby
paulfm has joined #ruby
mengu has joined #ruby
delianides has joined #ruby
R1ck has joined #ruby
vt102 has joined #ruby
zenith_ has joined #ruby
oo_ has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
lkba_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<R1ck> heya. I have this 3rd party Ruby app (Ruby/Sinatra/Redis/jQuery) - what would be the best way to host this with high-availability? Heroku or some apache mod_rails setup?
sdothum has joined #ruby
techsethi has quit [Quit: techsethi]
<centrx> neither?
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> start with finding a host that has HA, then see how you can run your stuff there
_dropp` has joined #ruby
jonr22 has joined #ruby
jerius has joined #ruby
tlarevo has quit []
Takle has quit [Remote host closed the connection]
bMalum has joined #ruby
<R1ck> actually, I'd want to implement the HA myself
juanpaucar has joined #ruby
wolf4ood_ has quit [Quit: (null)]
jerematic has joined #ruby
dblessing has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
it0a has joined #ruby
bayed has joined #ruby
_maes_ has joined #ruby
<centrx> That's an interesting concept
banister has joined #ruby
mary5030 has joined #ruby
<jhass> R1ck: then you need to start by defining what that means to you
techsethi has joined #ruby
SOLDIERz_ has joined #ruby
thefynx has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sameerynho has quit [Ping timeout: 272 seconds]
livathin_ has quit [Remote host closed the connection]
livathinos has joined #ruby
jerematic has quit [Remote host closed the connection]
sdothum has joined #ruby
jimms has quit [Remote host closed the connection]
agrinb has joined #ruby
<R1ck> well.. if this app starts up, you can browse it.. if it crashes or the node crashes, I need to have another node/instance that takes over - I could do this with a keepalived setup (if I can find a way to share Redis between nodes)
<jhass> What if Redis crashes?
<R1ck> same, ofcourse.. another instance would have to take over
<jhass> What if it's DDoS'ed?
<DefV> what if there's a split brain
<Nilium> I have had to deal with redis crashing. It is not pretty.
<R1ck> DDoS is a problem for the ISP
<jhass> (or postedd to HN for that matter)
oo_ has joined #ruby
<jhass> nope
<jhass> it might be very possible that your app, not the ISP is the bottleneck
<centrx> R1ck, If you are the only person managing it, it's not high-availability
<jhass> but choosing the right ISP is part of the considerations of setting up HA
<Nilium> Any denial-of-service like attack is something you need to handle. If the ISP handles it ahead of time, so much the better, but they owe you nothing.
<centrx> High-availability doesn't get to say "oh our ISP screwed up"
<centrx> You have two ISPs, three,...
a5i has joined #ruby
<R1ck> this DDoS stuff is a bit out of the scope, this is a hypothetical setup for a client
<R1ck> not a real-world issue (yet)
arup_r has joined #ruby
<jhass> no, DDoS or sudden popularity is not out of scope of HA considerations
Feyn has quit [Quit: Leaving]
<banister> jhass redis never crashes
<R1ck> agreed
<ericwood> redis is awesome
<DefV> redis just quits when it feels like it
<jhass> banister: but the memory of the box it runs on might
werelivinginthef has joined #ruby
<DefV> redis also just clears all data at random sometimes
<DefV> I love redis, but I wouldn't trust it with my data for 1 second
<Nilium> If a write fails, redis will go into read-only mode and then promptly murder itself
<jhass> that's the next consideration, what type of hardware to use
<banister> jhass redis has a direct line to God
<jhass> banister: ah, there's the problem, gotcha
<R1ck> jhass: so if the app itself has no built-in protection against DDoS or sudden popularity, you would protect it how? by setting request limits in apache/nginx or something?
<Nilium> It's somehow less useful than a filesystem consistency error in most Linux distributions, where the filesystem goes readonly
<Nilium> Except in those cases, the OS won't die
<Nilium> It'll just be really hard to shut down
<DefV> it's funny that someone asks about HA and we all go on a nerdrage of our own
<DefV> seems like we've all got stories to tell
<Nilium> I'm too busy thinking of how adorable beanstalkd is
ndrei has quit [Quit: Lost terminal]
<R1ck> I appreciate everyones nerdrage ;)
<Nilium> Which is an odd way to describe a job queue but I'm pretty sure it's appropriate for beanstalkd
emilkarl has quit [Quit: emilkarl]
<jhass> R1ck: that's why I said you need to start by defining what HA means to you, what your worst case scenario you still want to handle looks like
DouweM has joined #ruby
DaniG2k has quit [Ping timeout: 272 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ndrei has joined #ruby
BlackGear has joined #ruby
n008f4g_ has joined #ruby
relix has joined #ruby
sameerynho has joined #ruby
doodlehaus has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
<ericwood> our one true thoughtleader
BlackGea_ has joined #ruby
_dropp` is now known as dropp
BlackGea_ has quit [Max SendQ exceeded]
Rapier- has joined #ruby
emilkarl has joined #ruby
BlackGea_ has joined #ruby
BlackGea_ has quit [Max SendQ exceeded]
BlackGear has quit [Ping timeout: 256 seconds]
BlackGea_ has joined #ruby
BlackGea_ has quit [Max SendQ exceeded]
BlackGear has joined #ruby
razieliyo has quit [Ping timeout: 255 seconds]
sameerynho has quit [Quit: Leaving]
adriancb has joined #ruby
anaeem1 has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
c0m0 has quit [Ping timeout: 252 seconds]
ismaelga has joined #ruby
BlackGear has quit [Max SendQ exceeded]
ych4k3r has joined #ruby
jspdown has joined #ruby
fryguy9 has joined #ruby
bihi has left #ruby [#ruby]
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
zorak8 has quit [Ping timeout: 252 seconds]
uri_ has joined #ruby
BlackGear has quit [Max SendQ exceeded]
ptrrr has joined #ruby
BlackGear has joined #ruby
shredding has joined #ruby
discr33t has joined #ruby
stef204 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
BlackGear has quit [Max SendQ exceeded]
sanguisdex has joined #ruby
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<discr33t> hey guys, kinda new to ruby here and i have a task that i'm not sure how to complete. i have an array of files that have integers as content. i want to add the total of all of the files together as a new variable. . . any ideas
BlackGear has joined #ruby
<jhass> discr33t: no attempt yet?
milesmatthias has joined #ruby
ojacobson has joined #ruby
<centrx> Use the Unix program cat and be done
BlackGear has quit [Max SendQ exceeded]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
sambao21 has joined #ruby
BlackGear has joined #ruby
<jhass> discr33t: have a look at Enumerable#map, File.read, String#to_i and Enumerable#inject
Megtastique has joined #ruby
<discr33t> jhass: so far i've done this http://pastebin.com/iV26CaLg which just gives me the individual disk size in GB
BlackGear has quit [Max SendQ exceeded]
<helpa> Hi discr33t. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
BlackGear has joined #ruby
jspdown has quit []
<discr33t> jhass: now i'm trying to figure out how to iterate over the sizefile to give me total space
BlackGear has quit [Max SendQ exceeded]
ptrrr has quit [Read error: Connection reset by peer]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<jhass> with map and then summing up with inject
BlackGear has joined #ruby
<jhass> on a style note, have a look at File.join
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
oo_ has quit [Remote host closed the connection]
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
uri__ has joined #ruby
enebo has joined #ruby
BlackGear has quit [Max SendQ exceeded]
milesmatthias has quit [Ping timeout: 264 seconds]
<discr33t> jhass: i'm familiar with file.join . . . i've used it other places. i'm assuming you are implying it would be better used than the + ?
juanpablo__ has joined #ruby
<jhass> yes
BlackGear has joined #ruby
<jhass> anything would be better :P
c0m0 has joined #ruby
bim has quit [Remote host closed the connection]
<jhass> at least use "#{string} interpolation"
BlackGear has quit [Max SendQ exceeded]
oo_ has joined #ruby
<undeadaedra> %Q|#{string}| # :>
BlackGear has joined #ruby
<jhass> >> %(#{1+1})
<eval-in_> jhass => "2" (https://eval.in/300740)
kirun has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<jhass> yeah, my memory is right, Q is the default
<undeadaedra> Q is ””, q is ’'
<undeadaedra> without weird unicode replacements, of course.
BlackGear has joined #ruby
<undeadaedra> iirc,
<jhass> yes
<jhass> not the point I was trying to make
BlackGear has quit [Max SendQ exceeded]
<discr33t> jhass: i'll rewrite that part using file.join. for my current task though would i want something like total_size = sizefile.map and go from there?
BlackGear has joined #ruby
<undeadaedra> you just want the total size ? As the sum of all files ?
<hanmac1> jhass: its funny to use spaces for that ;P
vt102 has quit [Remote host closed the connection]
<jhass> discr33t: sizefile is a string, why would you map over it?
bim has joined #ruby
last_staff has quit [Quit: last_staff]
BlackGear has quit [Max SendQ exceeded]
bim has quit [Remote host closed the connection]
BlackGear has joined #ruby
<jhass> >> [1, 2, 3].map {|n| n*2 }
<eval-in_> jhass => [2, 4, 6] (https://eval.in/300741)
<jhass> >> [1, 2, 3].map {|n| n*2 }.inject(:+)
<eval-in_> jhass => 12 (https://eval.in/300742)
bim has joined #ruby
juanpablo__ has quit [Ping timeout: 264 seconds]
vt102 has joined #ruby
BlackGear has quit [Max SendQ exceeded]
bim has quit [Remote host closed the connection]
BlackGear has joined #ruby
Takle has joined #ruby
livingstn has joined #ruby
BlackGear has quit [Max SendQ exceeded]
livingstn has quit [Max SendQ exceeded]
BlackGear has joined #ruby
livingstn has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
jerematic has joined #ruby
BlackGear has quit [Max SendQ exceeded]
DouweM has quit [Quit: Leaving...]
BlackGear has joined #ruby
CustosLimen has quit [Quit: Leaving]
<discr33t> jhass: i would have to turn sizefile into an array to get the sizefile for each device
BlackGear has quit [Max SendQ exceeded]
<hanmac1> jhass: hm for inject when using + or * a default value is allways useful
CustosLimen has joined #ruby
<jhass> discr33t: doesn't Dir.entries do that already?
BlackGear has joined #ruby
spyderman4g63 has joined #ruby
fantazo has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<jhass> hanmac1: hard to imagine a running system without anything that at least pretends to be a blockdevice though
spyderman4g63 has quit [Remote host closed the connection]
<discr33t> yes, Dir.entries is creating an array of all entries in that directory, in this case /sys/block
BlackGear has joined #ruby
* hanmac1 makes fingerquotes at the word "pretends" ;P
bim has joined #ruby
<jhass> how about mapping over that?
spyderman4g63 has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
arup_r has quit [Remote host closed the connection]
<discr33t> jhass: if I map over that, wouldn't i be mapping over everything in the directory and not just the entires that have "/device" and "/size" in them?
BlackGear has quit [Max SendQ exceeded]
<jhass> at least on my system all of them have
BlackGear has joined #ruby
<jhass> but you can use Dir[] to limit that
<jhass> >> Dir["/sys/block/*/size"]
<eval-in_> jhass => (https://eval.in/300748)
<jhass> too bad
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
hannes___ has joined #ruby
havenwood has joined #ruby
codecop has quit [Remote host closed the connection]
BlackGear has quit [Max SendQ exceeded]
<hannes___> hey, does anyone know how I can tell rvm to ignore project specific rvmrcs?
BlackGear has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
techsethi has quit [Quit: techsethi]
BlackGear has quit [Max SendQ exceeded]
<hannes___> oh nvm got it
fuzzyhorns2 has joined #ruby
Limix has joined #ruby
BlackGear has joined #ruby
<fuzzyhorns2> my google is failing me, can anyone recommend good guides for writing gems that use methods of the host app?
DouweM has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<fuzzyhorns2> my use case is i'm writing a gem that needs to take an auth method from the app that is hosting the gem
<fuzzyhorns2> and i'm unsure of the best way to handle that
BlackGear has joined #ruby
<hannes___> fuzzyhorns2: what do you mean 'host'? Like an app that's using the gem?
<fuzzyhorns2> hannes___: yeah, is there another name for that?
bronson has joined #ruby
BlackGear has quit [Max SendQ exceeded]
agrinb has quit [Remote host closed the connection]
BlackGear has joined #ruby
<hannes___> fuzzyhorns2: I don't know if ruby-people actually say it like that, but it strikes me as a rather odd use of 'host'
sambao21 has joined #ruby
n80 has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<undeadaedra> Well gems are libraries, so the application, no ?
hidomel has joined #ruby
BlackGear has joined #ruby
<fuzzyhorns2> sure, the host application
<hannes___> fuzzyhorns2: anyway; How do you intend to invoke the method? Might be as simple as just having a method that takes a proc?
basiclaser has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<fuzzyhorns2> i was considering that, hannes___
rbennacer has joined #ruby
BlackGear has joined #ruby
rbennacer has quit [Remote host closed the connection]
<fuzzyhorns2> but i am unsure it will work
BlackGear has quit [Max SendQ exceeded]
rbennacer has joined #ruby
<fuzzyhorns2> basically the gem needs to borrow the current user id from the host application, which is dynamic based on who is using the app at that time
<fuzzyhorns2> if i have a proc that enters the gem via configuration, idk if it'll have that dynamic current user id in scope
DerisiveLogic has joined #ruby
BlackGear has joined #ruby
<fuzzyhorns2> im prob putting this in a confused way too
BlackGear has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 245 seconds]
BlackGear has joined #ruby
sngeth has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
mengu has quit [Remote host closed the connection]
<jhass> discr33t: http://paste.mrzyx.de/puggcjzmj had some fun
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
paulfm has quit [Quit: Zzzzz...]
BlackGear has quit [Max SendQ exceeded]
hmsimha has quit [Ping timeout: 252 seconds]
banister is now known as banisterfiend
bMalum has quit [Quit: bMalum]
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
BlackGear has quit [Max SendQ exceeded]
sngeth has quit [Ping timeout: 264 seconds]
BlackGear has joined #ruby
<jhass> discr33t: or less defensive http://paste.mrzyx.de/pmnvrf0py
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
agrinb has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
paulfm has joined #ruby
<jhass> fuzzyhorns2: it often helps to drop the abstractions, what's your gem doing, what's your app doing, what's your app doing with your gem and why and when do you need to transport the user id
oo_ has quit [Remote host closed the connection]
BlackGear has quit [Max SendQ exceeded]
stef204 has joined #ruby
BlackGear has joined #ruby
davedev24_ has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<banisterfiend> apeiros can i get your help with something?
craigp has quit [Ping timeout: 264 seconds]
<centrx> don't do it, it's a trap!
BlackGear has joined #ruby
bMalum has joined #ruby
a346 has joined #ruby
bim has quit [Remote host closed the connection]
<jhass> banisterfiend: didn't you learn yet that you ask channels on IRC, not people?
BlackGear has quit [Max SendQ exceeded]
<banisterfiend> jhass my experience with that approach is the signal to noise ration is much too low ;)
BlackGear has joined #ruby
bim has joined #ruby
<banisterfiend> esp on #rubyonrails you get a lot of nonsense, wrong answers all mixed in with a heavy load of condescension and snarkiness
<undeadaedra> banisterfiend: still better than poking randomly people with questions someone else can answer
BlackGear has quit [Max SendQ exceeded]
<jhass> ^
agrinb has quit [Ping timeout: 256 seconds]
<jhass> if you can recognize the none-sense, just filter it out
<banisterfiend> undeadaedra he's more a friend than a random person.
BlackGear has joined #ruby
<undeadaedra> this is IRC, not MSN Messenger
<apeiros_> banisterfiend: busy at work at the moment. if you ask in #rubyonrails, I'll try to take a look.
DaniG2k has joined #ruby
<jhass> or phrase your question in a way that shows that you'll be able to filter the none-sense, keeps it away in the first place in my experience
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
agrinb has joined #ruby
bMalum has quit [Client Quit]
BlackGear has quit [Max SendQ exceeded]
aspiers has quit [Quit: WeeChat 0.4.1]
aspiers has joined #ruby
BlackGear has joined #ruby
oo_ has joined #ruby
BlackGear has quit [Max SendQ exceeded]
juanpablo__ has joined #ruby
bMalum has joined #ruby
BlackGear has joined #ruby
crazydiamond has joined #ruby
BlackGear has quit [Max SendQ exceeded]
ghostpl_ has quit [Read error: Connection reset by peer]
Dakuan has quit [Remote host closed the connection]
BlackGear has joined #ruby
ghostpl_ has joined #ruby
varunwachaspati has quit [Ping timeout: 264 seconds]
aswen has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
<jhass> >> p ()..0
<eval-in_> jhass => /tmp/execpad-54b84347212b/source-54b84347212b: [BUG] Segmentation fault at 0x000000 ... (https://eval.in/300779)
BlackGear has quit [Max SendQ exceeded]
paulfm has quit [Quit: Zzzzz...]
oo_ has quit [Remote host closed the connection]
BlackGear has joined #ruby
selu has joined #ruby
silkfox has quit [Quit: WeeChat 0.4.3]
BlackGear has quit [Max SendQ exceeded]
bim has quit [Remote host closed the connection]
<undeadaedra> :o
<apeiros_> wow
<apeiros_> same here
jerematic has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 256 seconds]
BlackGear has joined #ruby
<jhass> whitequark found it
BlackGear has quit [Client Quit]
<jhass> 21>> p ()..0
<eval-in_> jhass => /tmp/execpad-5546ab6a75c5/source-5546ab6a75c5: [BUG] Segmentation fault at 0x000000 ... (https://eval.in/300782)
<jhass> 20>> p ()..0
<eval-in_> jhass => /tmp/execpad-94b1152da3ce/source-94b1152da3ce: [BUG] Segmentation fault ... (https://eval.in/300783)
Dakuan has joined #ruby
<jhass> 19>> p ()..0
<eval-in_> jhass => /tmp/execpad-335c7db91a42/source-335c7db91a42:2: syntax error, unexpected ')' ... (https://eval.in/300784)
<jhass> 18>> p ()..0
<eval-in_> jhass => /tmp/execpad-4b770176cd5b/source-4b770176cd5b:2: warning: don't put space before argument parentheses ... (https://eval.in/300785)
<undeadaedra> jruby works, rvm not
dfinninger has joined #ruby
<undeadaedra> rbx*
sambao21 has quit [Quit: Computer has gone to sleep.]
discr33t has quit [Quit: Page closed]
silkfox has joined #ruby
discr33t has joined #ruby
Ankhers has joined #ruby
discr33t has quit [Client Quit]
tjbiddle has joined #ruby
discr33t has joined #ruby
iamjarvo has joined #ruby
tubuliferous has joined #ruby
senayar has quit [Remote host closed the connection]
paulfm has joined #ruby
jerematic has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
rhllor has quit [Quit: rhllor]
<discr33t> jhass: i was looking at this http://paste.mrzyx.de/puggcjzmj and line 15 sets the path to /sys/block/$devicename/device/size, is that correct?
uri__ has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
<jhass> discr33t: do you know glob patterns?
zcm has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<discr33t> jhass: i'm familiar with them
<jhass> Dir[] takes glob patterns and I just construct one there
<jhass> /sys/block/{sda,sdb}/size, something like that
<jhass> it returns an array of matching files
tubuliferous has quit [Ping timeout: 245 seconds]
jerematic has quit [Remote host closed the connection]
oo_ has joined #ruby
mikepack has joined #ruby
jimms has joined #ruby
<discr33t> jhass: i understand that. and that is the path i need (/sys/block/{sda,sdb}/size. my question is blockdevices looks like it is being set to /sys/block/{sda, sdb}/device and sizes being set to blockdevices/size which would give the path /sys/block/sda/device/size for example
renegadeandy has joined #ruby
jimms has quit [Remote host closed the connection]
Rephiax has quit [Ping timeout: 256 seconds]
<discr33t> i'm just trying to understand line 15 better
oo_ has quit [Remote host closed the connection]
<jhass> no
mjuszczak has quit []
<jhass> discr33t: do you have pry or irb?
<discr33t> jhass: i have irb
<jhass> run line 6, then copy over line 11-13
<jhass> look at the output
aclearman037 has joined #ruby
DEA7TH has quit [Ping timeout: 246 seconds]
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
crueber has joined #ruby
phale has joined #ruby
tkuchiki has joined #ruby
<discr33t> jhass: ok so that only returns ["sda"] on my test box which only has one hard drive
<phale> discr33t: That is an array.
yourwebdevguy has joined #ruby
yourwebdevguy has joined #ruby
senayar has joined #ruby
<phale> With one element ;)
makerop has joined #ruby
serivich has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 264 seconds]
<undeadaedra> :o
<discr33t> phale: i understand that. . . i just wasn't sure what lines 11-13 were doing
<jhass> >> ["sda", "sdb"].join(",")
<eval-in_> jhass => "sda,sdb" (https://eval.in/300800)
paulfm has quit [Quit: Zzzzz...]
bMalum has joined #ruby
<phale> You have now created a string. The string contains the two elements, concatenated with ","
<jhass> discr33t: discr33t try just the inner Dir on line 15 next
<jhass> sorry
dc has quit [Remote host closed the connection]
snath has joined #ruby
jonr22 has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 252 seconds]
paulfm has joined #ruby
<DEA7TH> I have a function which needs to return two values, the second of which is optional - sometimes it is used, sometimes it isn't. What is the convention for doing that in Ruby? I suppose I could always return [val1, val2] and sometimes just ignore val2, that would work but I'm not sure if that's conventional.
<discr33t> jhass: if i add just the inner Dir the output is now ["/sys/block/sda/size"]
zenith_ has quit [Ping timeout: 244 seconds]
jmhmccr has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
<DEA7TH> Or pass a boolean, if true then return [val1, val2] else return val1
<jhass> discr33t: now do blockdevices.zip(Dir[..])
OrbitalKitten has joined #ruby
<jhass> maybe reassign blockdevices to multiple values manually ;)
<phale> DEA7TH: return value if something
<phale> return whatever == 1 ? something : somethingelse
<phale> depends really
<DEA7TH> phale: pass something as an argument?
<phale> what?
zenith_ has joined #ruby
<discr33t> jhass: that gives me [["sda", "/sts/block/sda/size"]]
<DEA7TH> my function doesn't know whether the caller will need the second value
<phale> oh right
<phale> suppose you could use an optional argument
<phale> def function(blablabla, want_other_value = false) return other_value if want_other_value == true end
<phale> you don't have to type in the second argument, or you can
jonr22 has quit [Ping timeout: 256 seconds]
<DEA7TH> it's more like
<jhass> discr33t: run to_h on it
robustus has quit [Ping timeout: 255 seconds]
<discr33t> jhass: ok, i see what it is doing now. for each device it is creating an array of the device name and the path to the size file for that device
krisquigley has quit [Remote host closed the connection]
<DEA7TH> def function(blablabla, want_other_value = false) if (want_other_value) return [value, other_value] else return value end
krisquigley has joined #ruby
<discr33t> jhass: when i add .to_h i get an undefined method
<phale> oh
zorak8 has joined #ruby
<DEA7TH> or I could always return both values and sometimes ignore the latter
<phale> yeah that should work
<phale> but you can just do
<centrx> discr33t, What version of Ruby are you running?
<phale> return want_other_value ? [value, other_value] : value
<phale> shorter, concise.
zcm has quit [Quit: Bye]
Limix has quit [Quit: Limix]
<discr33t> centrx: 1.8.7 (i now not most recent but all of this is for Puppet)
sigurding has joined #ruby
<centrx> discr33t, Okay in 1.8 you have to do: Hash[*array_of_pairs.flatten]
<phale> DEA7TH: my example should work just fine
<centrx> iirc
<jhass> discr33t: oh, no Ruby 2.1 or 2.2 I gather
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<discr33t> jhass: unfortunately not. . . . haven't done the testing to have puppet run under ruby 2.x yet so we're still on 1.8.7
<jhass> blergh, too much multi-tasking
<centrx> discr33t, Also Ruby 1.8 is ancient and end-of-life
AlexRussia has quit [Ping timeout: 244 seconds]
eighthbit has joined #ruby
<discr33t> centrx: i know, we plan to move up to 1.9.3 and eventually 2.x very soon. we just have to do all of our testing with puppet to make sure it won't break anywhere
<havenwood> Ruby 1.9 is paste End-of-Life and Ruby 2.0 is in maintenance mode. 2.1+!
robustus has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
<havenwood> past*
lmickh has joined #ruby
adamjleonard has joined #ruby
rhllor has joined #ruby
jerematic has joined #ruby
stoddart has joined #ruby
<makerop> has anyone had any trouble with json 1.8+, and ubuntu?
krisquigley has quit [Ping timeout: 264 seconds]
<makerop> I cant get the gem to install/compile
<discr33t> in this line i need to drop the .to_h and replace it with Hash[*array_of_pairs.flatten]? blockdevices.zip(Dir["#{sysfs_block_directory}/{#{blockdevices.join(",")}}/size"]).to_h
<stoddart> hi everybody
<centrx> discr33t, yes, where array_of_pairs is what the zip returns
werelivinginthef has joined #ruby
<apeiros_> 18>> RUBY_VERSION
<eval-in_> apeiros_ => "1.8.7" (https://eval.in/300812)
hs366 has quit [Quit: Leaving]
<apeiros_> 18>> pairs = [[:a, 1],[:b,2]]; Hash[pairs]
<eval-in_> apeiros_ => {:b=>2, :a=>1} (https://eval.in/300813)
<apeiros_> discr33t, centrx: '
<apeiros_> ^
<apeiros_> grah
Rephiax has joined #ruby
* apeiros_ throws away keyboard
* apeiros_ notices that the laptop is attached to the keyboard
<centrx> ~!@#--#@!~
<apeiros_> I'm not _quite_ sure what that emoticon means :D
<gregf_> DEA7TH: does it matter how many values the that you are returning contains? you can always check that in the caller?
<undeadaedra> It means you broke your keyboard
<undeadaedra> And your laptop
justin_pdx has joined #ruby
tjohnson has joined #ruby
<gregf_> something like:
<gregf_> DEA7TH: def foo x; return x ? ["foo"] : ["foo", "bar"];end; [ nil, 1].each { |x| p foo x }
tagrudev has quit [Remote host closed the connection]
<discr33t> centrx: so something like this? size = blockdevices.zip(Dir["#{sysfs_block_directory}/{#{blockdevices.join(",")}}/size"]); Hash[size.flatten]
<DEA7TH> gregf_: I'll give a gist implementation of what I want.....
nii2361 has quit [Ping timeout: 256 seconds]
<gregf_> DEA7TH: sure ;)
bruno- has joined #ruby
* hanmac1 takes his shotgun for the chance when 1.8 does respawn again
tobago has quit [Remote host closed the connection]
<centrx> discr33t, yes, but the * is necessary (splat)
<gregf_> >> RUBY_VERSION
<eval-in_> gregf_ => "2.2.0" (https://eval.in/300816)
tkuchiki has joined #ruby
<undeadaedra> hanmac1: point it towards CentOS and Debian
<discr33t> ahhh ok cool
DaniG2k has quit [Quit: leaving]
<hanmac1> undeadaedra: if you point to CentOS then you can point to Stonehenge too
aswen has quit [Ping timeout: 245 seconds]
Rephiax__ has joined #ruby
<undeadaedra> mmmh?
Rephiax__ has quit [Client Quit]
<hanmac1> hm Stonehenge might be newer than centos ;P
<undeadaedra> The thing with the weird stones?
<jhass> I think it's a clock or something?
<phale> I hate ruby now
<undeadaedra> :(
<phale> ۦ
<centrx> phail
<gregf_> heh
Dakuan has quit [Remote host closed the connection]
<gregf_> i always read it like 'p hale' :/
<phale> that was uncalled for
Rephiax has quit [Ping timeout: 244 seconds]
mleung has joined #ruby
Iniesta8 has joined #ruby
sepp2k has joined #ruby
Dakuan has joined #ruby
vtunka has quit [Quit: Leaving]
Iniesta8 has quit [Client Quit]
<jhass> DEA7TH: y u no syntax highlighting :(
<DEA7TH> jhass: updated with highlighting
<DEA7TH> huh
<DEA7TH> apparently doesn't work
vtunka has joined #ruby
max96at is now known as max96at|off
Hirzu has quit [Ping timeout: 246 seconds]
<jhass> you need to name it something.rb
Dakuan has quit [Remote host closed the connection]
<havenwood> DEA7TH: .rb extension on your filename
<DEA7TH> ok, now it works
Rephiax has joined #ruby
dfinninger has quit [Remote host closed the connection]
<phale> autism
<undeadaedra> :o
<jhass> DEA7TH: in general I would keep return values uniform, no matter the parameters
<jhass> for whether I'd make an exception in your case, well, you didn't show your case ;)
sambao21 has joined #ruby
<DEA7TH> In my case, the method is returning values which might have been missing from the database. If they were missing, it first gathers them from Google maps. Some of the time I also need to know whether missing values were gathered.
phale has left #ruby ["Leaving"]
<DEA7TH> I need that to display a message to the user.
sambao21 has quit [Client Quit]
kaleido has joined #ruby
<jhass> sounds like you want a messenger object as result
paradoja has joined #ruby
yourwebdevguy has left #ruby ["Leaving"]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DEA7TH> jhass: you mean, wrap the value and the message in something? Does Ruby have this in its standard libraries, or do I have to implement it myself?
<jhass> def query; QueryResult.new(data, more_data, fetched_missing?); end; result = query; if result.fetched_missing?; puts "yo, sorry that it took longer"; end;
<jhass> just implement it yourself, Struct comes in handy
speakingcode has joined #ruby
chrishough has joined #ruby
SouL has quit [Ping timeout: 250 seconds]
<jhass> QueryResult = Struct.new(:data, :more_data, :fetched_missing) do; alias_method :fetched_missing?, :fetched_missing; end;
<jhass> something like that
OrbitalKitten has joined #ruby
<discr33t> jhass: since i can't use .to_h and have to use Hash how do i need to restructure lines 15 - 17?
<jhass> could add whatever comes handy in the block
max96at|off is now known as max96at
<discr33t> is it as simple as removing .to_h and adding ; Hash[*sizes.flatten]
sambao21 has joined #ruby
Dakuan has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
Limix has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
mengu has quit [Remote host closed the connection]
<jhass> no need for either splat nor flatten
jerematic has quit [Remote host closed the connection]
claw has joined #ruby
hidomel has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
mjuszczak has joined #ruby
charliesome_ has quit [Quit: zzz]
aclearman037 has joined #ruby
<centrx> jhass, I think they are required for 1.8.7? - http://ruby-doc.org/core-1.8.7/Hash.html#method-c-5B-5D
<jhass> centrx: I think apeiros_ just demonstrated they aren't?
<apeiros_> I did
<apeiros_> 18>> pairs = [[:a, 1],[:b,2]]; [RUBY_VERSION, Hash[pairs]]
<eval-in_> apeiros_ => ["1.8.7", {:b=>2, :a=>1}] (https://eval.in/300833)
<centrx> I think I didn't see that so now I'm the bad guy?
<apeiros_> <=1.8.6 needs it
hanmac1 has quit [Quit: Leaving.]
<centrx> ah
<apeiros_> I PINGED YOU!!!!!1!11!1
* apeiros_ pouts
justin_pdx has quit [Quit: justin_pdx]
<centrx> that was, like, minutes ago
<centrx> ?
<centrx> ok no more dilly-dallying, back to work people!
Rephiax has quit [Ping timeout: 265 seconds]
<undeadaedra> what's "work"? oO
zcm has joined #ruby
zcm has quit [Max SendQ exceeded]
gfawcettpq has quit [Ping timeout: 264 seconds]
bricker has joined #ruby
zcm has joined #ruby
zcm has quit [Max SendQ exceeded]
davidhq has joined #ruby
jerematic has joined #ruby
zcm has joined #ruby
zcm has quit [Max SendQ exceeded]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
tkuchiki has quit [Remote host closed the connection]
zenith__ has joined #ruby
dfinninger has joined #ruby
baroquebobcat has joined #ruby
zenith_ has quit [Ping timeout: 245 seconds]
zachrab_ has joined #ruby
NivenHuH has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has quit [Client Quit]
atomiccc has joined #ruby
kblake has joined #ruby
jottr has joined #ruby
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
shay- has quit [Remote host closed the connection]
Xoro has joined #ruby
rhllor has quit [Quit: rhllor]
zachrab has quit [Ping timeout: 255 seconds]
baroquebobcat has joined #ruby
Wolland has joined #ruby
Rarikon has quit [Ping timeout: 245 seconds]
ryan___ has joined #ruby
Dakuan has quit [Remote host closed the connection]
rhllor has joined #ruby
<shevy> something the french ought to do more!
zenith__ has quit [Ping timeout: 246 seconds]
B1n4r10 has joined #ruby
<avril14th> we can't
shreddor has joined #ruby
<undeadaedra> strike is far more interesting than work
<avril14th> true
ndrei has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<avril14th> cause you can have free beers
Hobogrammer has joined #ruby
<avril14th> and go chasing girls after 10 minutes of yelling and getting bored at it
timonv has joined #ruby
lordkryss has joined #ruby
<undeadaedra> :D
bal has quit [Quit: bal]
sambao21 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
jxpx777 has joined #ruby
apeiros_ has joined #ruby
DouweM has quit [Quit: Leaving...]
<shevy> lol
mengu has joined #ruby
fabrice31 has quit [Remote host closed the connection]
rippa has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> I must relocate to France
<undeadaedra> We may switch, were are you from?
Wolland_ has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
The_Phoenix has joined #ruby
hidomel has joined #ruby
R1ck has left #ruby [#ruby]
ryan___ has quit [Quit: Lost terminal]
<shevy> if we switch
<shevy> I can't come visit you!
Xoro has quit [Ping timeout: 272 seconds]
apeiros_ has quit [Ping timeout: 244 seconds]
senayar has quit [Remote host closed the connection]
bronson has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
aganov has quit [Remote host closed the connection]
<undeadaedra> You could come visit yourself
senayar has joined #ruby
vtunka has quit [Quit: Leaving]
bronson has quit [Ping timeout: 245 seconds]
jobewan has joined #ruby
bim has joined #ruby
hidomel has quit [Remote host closed the connection]
epistrephein has joined #ruby
hidomel has joined #ruby
Wolland_ has quit []
iamjarvo has joined #ruby
emilkarl has quit [Quit: emilkarl]
Wolland has joined #ruby
Morkel has quit [Quit: Morkel]
Xoro has joined #ruby
n80 has quit [Quit: n80]
odin22 has joined #ruby
havenwood has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
lyuben_ has quit [Quit: This computer has gone to sleep]
havenwood has joined #ruby
nii2361 has joined #ruby
DouweM has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
DouweM has quit [Read error: Connection reset by peer]
RandyT has quit [Quit: ZNC - http://znc.in]
justin_pdx has joined #ruby
d10n-work has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
sinkensabe has quit [Remote host closed the connection]
nii2361 has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
krisquigley has joined #ruby
RandyT has joined #ruby
maletor has joined #ruby
MatthewsFace has joined #ruby
Pupeno has quit [Quit: Leaving...]
pietr0 has joined #ruby
zeeraw has joined #ruby
Dakuan has joined #ruby
Rarikon has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hirzu has joined #ruby
workmad3 has joined #ruby
Xoro__ has joined #ruby
Wolland has quit []
Wolland has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
alex88 has quit []
aclearman037 has joined #ruby
Wolland has quit [Client Quit]
craigp has joined #ruby
Xoro has quit [Ping timeout: 256 seconds]
<shevy> but that's notnew
shreddor has quit []
DouweM has joined #ruby
tubuliferous has joined #ruby
iwaffles has joined #ruby
Hirzu_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TinkerTyper has quit [Max SendQ exceeded]
Rarikon has quit [Ping timeout: 252 seconds]
towski_ has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros_ has joined #ruby
TinkerTyper has joined #ruby
OrbitalKitten has joined #ruby
jgt2 has quit [Ping timeout: 252 seconds]
GaryOak_ has quit [Remote host closed the connection]
eat_multi has quit [Ping timeout: 250 seconds]
Hirzu has quit [Ping timeout: 246 seconds]
CpuID has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
hidomel has quit [Remote host closed the connection]
eat_multi has joined #ruby
a346 has quit [Quit: a346]
lemur has joined #ruby
Xoro__ has quit [Ping timeout: 250 seconds]
fantazo has quit [Quit: Verlassend]
mengu has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
GaryOak_ has joined #ruby
Thaxll has quit [Quit: Leaving]
JimmyNeutron has joined #ruby
iamjarvo has quit [Client Quit]
ki0_ has quit [Ping timeout: 245 seconds]
Czupa has joined #ruby
timonv has quit [Read error: Connection reset by peer]
sngeth has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DefV> I want to do a check. if a =~ /a(\d+)/ && b =~ /bcd/
<DefV> and then I want the capture of a(\d+)
timonv has joined #ruby
<DefV> how can I do that with $?
<DefV> $1
workmad3 has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
_hollywood has joined #ruby
<centrx> I would make it explicit, using #match and #captures on the result
sigurding has quit [Quit: sigurding]
beneggett has joined #ruby
Takle has quit [Remote host closed the connection]
<DefV> centrx: this is basically my use case: https://gist.github.com/DefV/a34d8b20a07fb440628f
CustosLimen has quit [Ping timeout: 264 seconds]
sngeth has quit [Ping timeout: 240 seconds]
jimms has joined #ruby
lemur has quit [Remote host closed the connection]
eighthbit has joined #ruby
<centrx> DefV, so what should happen is the first matching regex is captured into the special variables like $1
<centrx> DefV, So in your initial example, as long as you don't want to capture what's in b, you can just use $1 for what's in a
<DefV> well
<DefV> $1 gets reset whenever the 2nd regexp runs
rbennacer has quit [Remote host closed the connection]
<havenwood> >> /a(?<digits_whee>\d+)/ =~ "blaha555stuff"; digits_whee
Willd has joined #ruby
<eval-in_> havenwood => "555" (https://eval.in/300843)
serivich has joined #ruby
<centrx> I see, but if the second regex runs, that means the first regex did not match
mary5030 has quit [Remote host closed the connection]
<centrx> so $1 would be nil anyway
<Willd> Hey, I'm trying to use the gem airstream, but when I try to connect to a client I get the folling https://pastie.se/b93a0694
beginner has quit [Ping timeout: 256 seconds]
<Willd> Did I miss some unknown dep?
odin22 has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
<canton7> no, that's a bug / misuse / etc
<DefV> centrx: well no, it's &&
beginner has joined #ruby
<DefV> it's basically
<canton7> Willd, something that should be non-nil is nil
<Willd> canton7: Could it be OS-related?
renegadeandy has quit [Quit: Page closed]
<DefV> >> "abc" =~ /a(b)/ && "bca" =~ /b/; $1
<eval-in_> DefV => nil (https://eval.in/300844)
<DefV> >> "abc" =~ /a(?<var>b)/ && "bca" =~ /b/; var
<eval-in_> DefV => undefined local variable or method `var' for main:Object (NameError) ... (https://eval.in/300845)
<centrx> oh right
<canton7> Willd, doubt it
craigp has joined #ruby
<canton7> Willd, look at the source. find that variable. try and figure out why it might be nil
<havenwood> >> /a(?<var>b)/ =~ "abc" && "bca" =~ /b/; var
<eval-in_> havenwood => "b" (https://eval.in/300846)
ptrrr has joined #ruby
<DefV> ah
<DefV> interesting
<centrx> DefV, Yeah I don't think there is a way to do it with the $ variables
<DefV> k
<DefV> I figured
<DefV> just thought I'd ask
<centrx> named captures are clearer anyway
<DefV> yeah, but I can't use them because of the case
beginner has quit [Max SendQ exceeded]
kolorados has joined #ruby
beginner has joined #ruby
<shadeslayer> hi
<shadeslayer> I was wondering what's wrong with this call : File.readlines('/tmp/t.txt').map &:include?('Files')
<shadeslayer> I get : SyntaxError: (irb):1: syntax error, unexpected '(', expecting end-of-input
<Willd> canton7: I'm sorry, I know next to nothing about Ruby, care to help me traverse the docs? https://pastie.se/8e0d3adc
<havenwood> shadeslayer: you'll have to do it longhand, no to_proc with args
<shadeslayer> oh I see
<apeiros_> shadeslayer: &:include?('Files') is not valid
<havenwood> shadeslayer: map { |line| line.include?('Files') }
<shadeslayer> roger
<shadeslayer> can't pass arguments to to_proc
DouweM has quit [Read error: Connection reset by peer]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
CpuID has joined #ruby
<canton7> Willd, looks like you don't have any private ipv4 interfaces
<canton7> i.e. Socket.ip_address_list.detect{|intf| intf.ipv4_private?} returns nil
jonr22 has joined #ruby
<Willd> canton7: Private as in a 192.168.
iliketurtles has joined #ruby
<Willd> ?
* canton7 shrugs
<canton7> look at the docs for ipv4_private?
<havenwood> shadeslayer: in crystal-lang on the other hand you could: map &.includes?("Files")
M-Technic has joined #ruby
V_Ve has joined #ruby
<shadeslayer> havenwood: I see
<Willd> canton7: Thanks, that seems to have done it :)
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> shadeslayer, File.readlines('/tmp/t.txt').grep('Files') ?
<centrx> /Files/
<shadeslayer> yeah that works
<shadeslayer> but meh, I just did File.read('/tmp/t.txt').include? 'Files'
relix has joined #ruby
<shadeslayer> since I only needed to check if it contained the keyword Files
<havenwood> shadeslayer: golf: File.read('/tmp/t.txt')['Files']
<shadeslayer> oh fun
<canton7> Willd, what did it? ;)
pothibo has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
<Willd> canton7: Seeing as there was no graceful code to handle if there was no private address, I just changed it t check if it was a ipv4 address instead
<canton7> coolies
<Willd> canton7: You'll have to excuse my ignorance, first time touching actual code in ruby :#
<canton7> it's probably trying to be helpful and only do broadcasty things on interfaces connected to your local network
Hirzu_ has quit [Ping timeout: 265 seconds]
serivich has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
<Willd> canton7: Yeah, I'm ignoring that for the moment, the university wifi can probably handle it :)
<canton7> heh
jerematic has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Takle has joined #ruby
psy has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
psy has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
<claw> anybody knows how i can calculate the bytesize of a string ?
iamjarvo has quit [Max SendQ exceeded]
<claw> as if it was a textfile
IrishGringo has joined #ruby
x1337807x has joined #ruby
psy has joined #ruby
x1337807x has quit [Client Quit]
iamjarvo has joined #ruby
<eam> claw: "string".b.size
<musl> If you've got your encodings setup correctly, slurping the file into a string and ... what eam said.
<jhass> claw: eam there's .bytesize directly
Xoro has joined #ruby
jerematic has joined #ruby
<jhass> >> "abc".bytesize
<eval-in_> jhass => 3 (https://eval.in/300847)
<havenwood> >> 'clas'.bytesize
<eval-in_> havenwood => 4 (https://eval.in/300848)
iamjarvo has quit [Max SendQ exceeded]
wallerdev has quit [Client Quit]
centrx has quit [Remote host closed the connection]
<eam> claw: if it's actually a file and you don't want to read it, you can File.size? "filename"
iamjarvo has joined #ruby
livathinos has quit []
wallerdev has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
wallerdev has quit [Client Quit]
Hobogrammer has quit [Ping timeout: 246 seconds]
ejnahc has quit [Quit: leaving]
Hirzu has joined #ruby
ki0 has joined #ruby
wallerdev has joined #ruby
ejnahc has joined #ruby
toretore has quit [Quit: Leaving]
V_Ve has quit [Quit: Lingo: www.lingoirc.com]
thiagovsk has joined #ruby
benegget_ has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has quit [Ping timeout: 255 seconds]
beneggett has quit [Ping timeout: 256 seconds]
senayar has quit []
anaeem1 has quit [Remote host closed the connection]
jerematic has quit [Remote host closed the connection]
anaeem1 has joined #ruby
strixd has quit [Quit: 500]
ki0 has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
BTRE has quit [Ping timeout: 246 seconds]
einarj has quit [Remote host closed the connection]
yekta has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nii2361 has joined #ruby
Czupa has quit [Quit: Wychodzi]
anaeem1 has quit [Ping timeout: 246 seconds]
Macaveli has quit [Ping timeout: 256 seconds]
Czupa has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Czupa has quit [Client Quit]
catphish has joined #ruby
<catphish> what is the best way to set the working directory when running exec()?
Czupa has joined #ruby
Czupa has quit [Client Quit]
Takle has quit [Remote host closed the connection]
<jhass> pretty sure that's inherited, so just Dir.chdir
Czupa has joined #ruby
bim has quit [Remote host closed the connection]
jenrzzz has joined #ruby
frem_ has joined #ruby
danjordan has quit [Quit: danjordan]
<catphish> i just found an example that uses: Dir.chdir("..") do
terlar has quit [Ping timeout: 246 seconds]
<catphish> that should do the job, thanks
Hirzu has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Remote host closed the connection]
nii2361 has quit [Ping timeout: 246 seconds]
<catphish> just finishing a self-upgrading server that re-execs new versions, keeping sockets open, fun times :)
fryguy9 has quit [Quit: Leaving.]
<catphish> looks like i shouldn't need the block form
<catphish> since that just restored the previous working dir
zacts has joined #ruby
rbennacer has joined #ruby
milesmatthias has joined #ruby
tcrypt has joined #ruby
<jhass> yeah
<catphish> that seems to work, thanks ;)
<catphish> *:)
Czupa has quit [Quit: Wychodzi]
zeeraw has joined #ruby
mhb has joined #ruby
mhb has quit [Read error: Connection reset by peer]
mhib has joined #ruby
msgodf has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 256 seconds]
beneggett has joined #ruby
fryguy9 has joined #ruby
benegget_ has quit [Read error: Connection reset by peer]
benegget_ has joined #ruby
<hanmac> jhass: check that out https://github.com/lhartikk/AstroBuild ;P
antgel has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
Cadillactica has joined #ruby
<jhass> hanmac: lol, I linked that earlier
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
<LiquidInsect> Question of style: Is it ok for a predicate method to change something when called? I'm in a new-to-me codebase and I'm trying to resist the urge to rename every method that ends in a ? but isn't idempotent
<hanmac> yeah i didnt notice
dfinninger has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
<jhass> LiquidInsect: I'd say it's unexpected indeed
doodlehaus has quit [Ping timeout: 244 seconds]
Rarikon has joined #ruby
<hanmac> LiquidInsect: hm imo methods that named "abc?" should be no-op methods imo ... they shouldnt change anything and return only an booleanlike value
byprdct has joined #ruby
a346 has joined #ruby
hidomel has joined #ruby
beneggett has quit [Ping timeout: 244 seconds]
<jhass> relying on truthiness for them is fine with me
<jhass> but side-effects, meh
<LiquidInsect> That's what I thought
<LiquidInsect> yeah... I'm going to have to take an axe to this thing
<catphish> LiquidInsect: it's certainly unusual to have ? methods be anything but simple checks
<LiquidInsect> The rest of it is like someone read metaprogramming ruby and thought how awesome it would be if everything was written that way
lizander has joined #ruby
mhib has quit [Quit: Wychodzi]
taiansu has joined #ruby
<catphish> lol
hib has joined #ruby
brb3 has quit [Quit: <.<]
epistrephein has quit []
Xoro has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brb3 has joined #ruby
<jhass> sounds like my code!
<jhass> except that I never read that book
<LiquidInsect> it's a fantastic book... if you're trying to qwrite a DSL or something
shadeslayer has quit [Ping timeout: 264 seconds]
hib has quit [Client Quit]
<LiquidInsect> not so much if you're just building another rails app
shadeslayer has joined #ruby
hidomel has quit [Ping timeout: 245 seconds]
andikr has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
ghr has quit [Read error: Connection reset by peer]
ereslibre_laptop is now known as ereslibre
werelivinginthef has quit [Remote host closed the connection]
ghr has joined #ruby
OrbitalKitten has quit [Client Quit]
mhib has joined #ruby
mhib has quit [Client Quit]
catphish has quit [Quit: Leaving]
riotjones has quit [Remote host closed the connection]
mhib has joined #ruby
Rarikon has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
bim has joined #ruby
OrbitalKitten has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
dANO_ has quit []
a346 has quit [Read error: Connection reset by peer]
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
c0m0 has quit [Ping timeout: 256 seconds]
bim has quit [Remote host closed the connection]
lyuben_ has joined #ruby
Takle has joined #ruby
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
benlieb has quit [Quit: Leaving]
bim has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
Limix has quit [Quit: Limix]
bronson has joined #ruby
chthon has quit [Ping timeout: 264 seconds]
epistrephein has joined #ruby
eighthbit has joined #ruby
Jackneill has joined #ruby
SouL_ has joined #ruby
rbennacer has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
jerius has quit [Quit: /quit]
bim has quit [Remote host closed the connection]
Xoro has joined #ruby
Takle has joined #ruby
RegulationD has quit [Remote host closed the connection]
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality has quit [Quit: startupality]
Alina-malina has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
baweaver has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
byprdct has quit [Ping timeout: 256 seconds]
ki0 has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 264 seconds]
ki0 has joined #ruby
codecop has joined #ruby
workmad3 has joined #ruby
Dakuan has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 246 seconds]
jerius has joined #ruby
eighthbit has joined #ruby
banister has joined #ruby
psy has quit [Disconnected by services]
psy_ has joined #ruby
withnale_ has quit [Ping timeout: 272 seconds]
pietr0 has quit [Quit: pietr0]
zacts has quit [Quit: leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
baweaver has quit [Remote host closed the connection]
benegget_ has quit [Remote host closed the connection]
ghr has joined #ruby
Alina-malina has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
krisquigley has joined #ruby
jottr_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
OrbitalKitten has joined #ruby
jerematic has joined #ruby
NoNMaDDeN has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
<shevy> hmm
<Senjai> Good morning rubvy
<shevy> is there some way to load something... and lazy-load addons
jxpx777_ has joined #ruby
User458764 has joined #ruby
mjuszczak has quit []
<Senjai> LiquidInsect: It is a good read, as long as you realize you don't need a DSL for everything
dumdedum has quit [Ping timeout: 244 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ghr has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
<hanmac> shevy hm Autoload might load lazy like ... but in some of my stuff i do require inside of functions as some kind of lazy loading
GaryOak_ has quit [Remote host closed the connection]
<shevy> yeah well
<workmad3> hanmac: both that and autoloading are evil, evil ideas and shouldn't be done :P
<shevy> autoload adds on demand or? I kinda want to load like in threads or so but be it on the main program
jerematic has quit [Ping timeout: 250 seconds]
rhllor has quit [Ping timeout: 255 seconds]
jerematic has joined #ruby
<workmad3> shevy: that's exactly the circumstance you shouldn't try lazy loading
rhllor has joined #ruby
jxpx777 has quit [Ping timeout: 264 seconds]
yekta has quit [Quit: yekta]
agarie has joined #ruby
doodlehaus has joined #ruby
stef204 has joined #ruby
pontiki has joined #ruby
<hanmac> workmad3: https://github.com/Hanmac/tmx-ruby/blob/master/lib/tiled_tmx/tilelayer.rb#L67-L76 << thats like i did in one of my older stuff
_hollywood has quit [Ping timeout: 245 seconds]
bim has joined #ruby
werelivinginthef has joined #ruby
IrishGringo has joined #ruby
mjuszczak has joined #ruby
iheartkode has joined #ruby
atomiccc has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
agarie has quit [Remote host closed the connection]
jespada has joined #ruby
jimms has quit []
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<iheartkode> Hello Ruby peeps
rhllor has quit [Ping timeout: 256 seconds]
lolmaus has quit [Quit: Konversation terminated!]
jottr has joined #ruby
dfinninger has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
dfinninger has joined #ruby
Nahra has joined #ruby
blackmesa has joined #ruby
bim has quit [Remote host closed the connection]
baweaver has joined #ruby
rdark has quit [Quit: leaving]
jottr_ has quit [Ping timeout: 245 seconds]
epistrephein has quit []
sngeth has joined #ruby
NoNMaDDeN has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
rgs_ is now known as rgs
elaptics is now known as elaptics_away
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit []
duper has quit [Ping timeout: 265 seconds]
lilVaratep has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
rjc_ has quit [Quit: Konversation terminated!]
_hollywood has joined #ruby
shazaum has joined #ruby
wottam has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
zz_Outlastsheep is now known as Outlastsheep
Olipro is now known as Guest9519
epistrephein has joined #ruby
rhllor has joined #ruby
dropp has quit [Quit: leaving]
ghostpl_ has joined #ruby
riotjone_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
wottam has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
jonr22 has joined #ruby
sivoais has quit [Remote host closed the connection]
sivoais has joined #ruby
sngeth has quit [Quit: leaving]
agarie has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
zeeraw has joined #ruby
bim has joined #ruby
sngeth has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bim has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
riotjone_ has quit [Ping timeout: 264 seconds]
_blizzy_ has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
IrishGringo has quit [Ping timeout: 256 seconds]
ismaelga has joined #ruby
NoNMaDDeN has joined #ruby
jenrzzz has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
Hirzu has joined #ruby
Alina-malina has joined #ruby
Takle has joined #ruby
sivoais has joined #ruby
RegulationD has joined #ruby
User458764 has joined #ruby
ismaelga has quit [Remote host closed the connection]
SOLDIERz_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
Guest23042 has quit [Quit: leaving]
milesmatthias has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
paradoja has quit [Ping timeout: 244 seconds]
IrishGringo has joined #ruby
mitchellhenke has joined #ruby
stef204 has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
iliketur_ has joined #ruby
milesmatthias has joined #ruby
techietrash has joined #ruby
centrx has joined #ruby
sivoais has quit [Ping timeout: 246 seconds]
epistrephein has quit []
n80 has joined #ruby
<arup_r> How to access elements from an array using index in mongo DB ?
claw has quit [Ping timeout: 252 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iliketurtles has quit [Ping timeout: 252 seconds]
claw has joined #ruby
sivoais has joined #ruby
jerius has quit [Quit: /quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
NoNMaDDeN has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
rhllor has quit [Quit: rhllor]
andikr has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
nii2361 has joined #ruby
fryguy9 has quit [Quit: Leaving.]
hidomel has joined #ruby
bronson has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerius has joined #ruby
rhllor has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
starless has joined #ruby
juanpaucar has joined #ruby
Rollabunna has quit [Remote host closed the connection]
elfuego has joined #ruby
Rollabunna has joined #ruby
nii2361 has quit [Ping timeout: 246 seconds]
hidomel has quit [Ping timeout: 246 seconds]
jgt2 has joined #ruby
postmodern has joined #ruby
sivoais has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
phale has joined #ruby
<phale> herees what I say to those who think im having a goof on here (presses button on wristwatch & tiny pair of shades launches onto face) im Not
zzz_Ridley has joined #ruby
<elfuego> how can I fake a ruby class and define the behaviour of the method: http://www.codeshare.io/odvlQ
zzz_Ridley is now known as Ridley5
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
<elfuego> trying to use a double
taiansu has quit [Read error: Connection reset by peer]
<elfuego> but it isn’t working out
Outlastsheep is now known as zz_Outlastsheep
taiansu has joined #ruby
Mives has joined #ruby
<Hirzu> What are you trying to achieve?
NoNMaDDeN has joined #ruby
jerius has quit [Quit: /quit]
<Hirzu> with rspec, you can atleast create stubs rather easily for intances of a class, or modify the existing class for tests.
jerius has joined #ruby
<Hirzu> Not sure how it works in before each, maybe it does.
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> elfuego: I guess the expectation later overrides the stub? try adding .and_return there
<phale> you dont
mengu has quit []
<jhass> elfuego: an actual problem description (like error messages you get) would help though
<phale> error: I am dumb and I can't program properly In Ruby
zorak8 has quit [Read error: Connection reset by peer]
<jhass> phale: ?
<Alina-malina> what secure web framework would you suggestfor ruby, to start developing webapps and services online?
<phale> ;)
zorak8 has joined #ruby
oetjenj has joined #ruby
<jhass> Alina-malina: what insecure do you know?
<jhass> what makes them insecure?
<elfuego> jhass: undefined local variable or method `add_to_mdc'
<Hirzu> stub name should atleast be symbol?
<Alina-malina> i dont know any
<jhass> elfuego: what Hirzu said
sivoais has quit [Ping timeout: 255 seconds]
eighthbit has joined #ruby
<phale> elfuego: I assume add_to_mdc doesn't exist
<jhass> Alina-malina: can you get less abstract about your project then?
<phale> duh
iliketur_ has quit [Quit: zzzzz…..]
mitchellhenke has quit [Ping timeout: 245 seconds]
ghostpl_ has joined #ruby
<Alina-malina> well its an app that works with angularjs and php right now, but i need to replace php with something more serious, i looked only python flask, but i also need to know ruby frameworks as well to compare and decide what to choose
sambao21 has quit [Quit: Computer has gone to sleep.]
caveat- has quit [Ping timeout: 245 seconds]
<jhass> Alina-malina: still too vague to suggest one thing over the other really
sinkensabe has joined #ruby
<phale> jhass: I want to program, oh boy where do I start :D
<jhass> phale: in your mind, searching for an idea
ndrei has joined #ruby
sivoais has joined #ruby
<Alina-malina> jhass, what frameworks do you use to develop website backend?
sambao21 has joined #ruby
eighthbit has quit [Client Quit]
<phale> Okay I got an idea
caveat- has joined #ruby
<jhass> Alina-malina: only rails, sinatra and rack directly so far, but we got many more
<phale> i want to make my own language, and I'll cal it ruby!
zorak8 has quit [Read error: Connection reset by peer]
<baweaver> Alina-malina: This is going to probably get me some flak, but don't replace PHP if you don't really need to
<jhass> phale: nobody stopping you, good luck!
<phale> ruby != Ruby
<phale> so i can't get sued, right?
<baweaver> the 'serious language' conundrum doesn't help your end user
sigurding has joined #ruby
zorak8 has joined #ruby
eighthbit has joined #ruby
<phale> int main(void) { Ruby programming language start program and load everything, but first help me by printing this "hello, world\n", Then return 0. }
SOLDIERz_ has quit [Quit: Be back later ...]
<jhass> Alina-malina: here are two lists, since you seem to want to wade through them yourself: https://www.ruby-toolbox.com/categories/web_app_frameworks and https://github.com/markets/awesome-ruby#web-frameworks
<baweaver> Professional work entails making certain compromises, Facebook being one of the most famous ones out there.
<Alina-malina> hmmmm, well i am tired of php code, i am looking right now into python flask, i have website that works fine on php, but it is kinda website not app, so i want to make an API to serve the app that i am currently working on with angular.js, i dont want php to do the job, so i need some API oriented solution, preferably on ruby
<baweaver> depending on how much you have invested already, starting over may be a very bad idea
<baweaver> the question is what your app is and what your current load is
<baweaver> if it's for fun, sure, burn it all
ghostpl_ has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Ping timeout: 246 seconds]
<arup_r> > "1,4,5,".split(",")
<baweaver> if you already have customers to a significant margin, you're asking for problems
<arup_r> >> "1,4,5,".split(",")
<eval-in_> arup_r => ["1", "4", "5"] (https://eval.in/300868)
chrishough has joined #ruby
Georg3 has joined #ruby
<arup_r> Oh.. they changed internal in ruby 2.2.*
<phale> >> "1,4,5, , , ,".split(",").each {|e| puts e.to_i / 0.0 }
<eval-in_> phale => Infinity ... (https://eval.in/300869)
<phale> ;)
<iheartkode> Angular 2.0 is a total rewrite with no backward compatibility..
<arup_r> they should tell us
<baweaver> that's why it's not 1.5
<baweaver> the question is if they end up pulling a Python on us and split the community
<baweaver> At this point I bet they do.
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meschi has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<elfuego> phale: it exist, but I want to fake the object
milesmatthias has quit [Remote host closed the connection]
<baweaver> Alina-malina: You do realize PHP can do RESTful APIs as well right? There's a thing about Turing Complete languages.
eighthbit has quit [Client Quit]
<centrx> PHP is crap
<phale> elfuego: You can do that.
Tuxero has joined #ruby
<phale> With a text editor.
<baweaver> centrx: irrelevant
<jhass> elfuego: stub and receive takes a symbol, instead you call a non-existing method
<Hirzu> If I was asked, getting away from PHP is never bad idea
<baweaver> Depending on whether or not there's a large user base it's a very bad idea
_maes_ has joined #ruby
sivoais has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
<baweaver> refactoring and rewriting an entire codebase does no good for your customer
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
<baweaver> other than appease some religious zealotry.
<baweaver> The safer way would be to factor out services and do it piece by piece if you're already a large company.
<baweaver> if it's a small audience, early stage, or for fun I would ditch it
<Hirzu> yep, doing it in controlled manner, definately.
<baweaver> now would I ever start with it? Not a chance
<Hirzu> :)
<centrx> Companies refactor and rewrite entire codebases even without changing language
iliketurtles has joined #ruby
<baweaver> but not everyone has the capacity to wantonly replace an entire codebase
<baweaver> change the language and framework and you get more than just code
lkba has quit [Ping timeout: 245 seconds]
<baweaver> you get deployment
<baweaver> server setup
<baweaver> tooling
<baweaver> testing practices
<phale> omg
<phale> I can't program anymore!!!
atomiccc has joined #ruby
altamic has joined #ruby
<baweaver> tons of fun bits that probably never come up until you're up at 2am supporting something you have no idea how it works.
<Hirzu> Depending on size of codebase, it might be a long period of painful hybrid codebase. Not nice.
sivoais has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
<phale> Programmin is for noobs
<phale> ;)
<baweaver> I agree that PHP isn't a good language, but the all at once approach has a higher than average likelihood of screwing something up a lot worse.
<Hirzu> agreed
<baweaver> consider Twitter and Rails
taiansu has quit [Remote host closed the connection]
<phale> I love twatter
<baweaver> they steadily migrated parts to Scala, chunking off into services
<Hirzu> If it has good coverage of automated UI tests, it helps a bit.
<phale> twitter*
<baweaver> It does
<baweaver> still a royal pain though
<phale> baweaver: stop trolling
<phale> goa way
taiansu has joined #ruby
<baweaver> another candidate for my mute list already?
aclearman037 has joined #ruby
adamjleonard has quit [Ping timeout: 246 seconds]
<baweaver> the point is, be pragmatic
shadoi1 has joined #ruby
mjuszczak has joined #ruby
<phale> baweaver: I'm serious
<phale> I'll get apeiros to ban you.
aclearman037 has quit [Client Quit]
<centrx> PHP is siouerus business
<jhass> phale: why don't you go and do something productive?
<baweaver> We're having a discussion. I'm merely stating that dumping an entire codebase 'because PHP' isn't always a good idea.
<baweaver> I don't like PHP, I don't use PHP, I don't intend to.
<phale> I am
aclearman037 has joined #ruby
<baweaver> Problem is you can substitute PHP and Rails with Rails and Scala
<baweaver> or any other combination
<Fraeon> Dumping code because it's PHP is always a good idea
<Fraeon> Just like dumping an employee that's an ISIS supporter
* baweaver facepalms
<centrx> baweaver, PHP is uniquely bad
<baweaver> It is
<phale> baweaver: stop trolling or i'll hack op and ban u
<phale> brb
<baweaver> You notice I don't disagree there
<eam> I'm not sure I'd say "uniquely" bad, but it certainly isn't good
<eam> there's a lot of bad stuff out there
<baweaver> I'm saying for a large company the 'burn it all' approach doesn't work
<phale> since when did this channel go from ruby discussion to shitty web application developing language discussion?
taiansu has quit [Ping timeout: 256 seconds]
<baweaver> even if it's a good idea
<baweaver> bye phale, mute list
<centrx> MUMPS is worse than PHP
<ericwood> lol MUMPS
<phale> >> print "what about the bot, baweaver?"
<eval-in_> phale => what about the bot, baweaver?nil (https://eval.in/300870)
<phale> ;)9
<Fraeon> Well, if it's named after a virus
<ericwood> iirc it was never meant to be written by people
<Fraeon> You'd think people would be wary of using it
sivoais has quit [Ping timeout: 264 seconds]
<ericwood> like there's a gui you use to write it and it's the language that gets spat out for the interpreter
<phale> Come on guys
<phale> This is a ruby channel
<ericwood> but the gui is awful so the pro devs write it by hand
ramfjord has joined #ruby
<phale> Hi guys I want to make a program that iterates over an array. What method is the best to do that?
<centrx> NEW SET,NEW,THEN,IF,KILL,QUIT SET IF="KILL",SET="11",KILL="l1",QUIT="RETURN",THEN="KILL"
iliketurtles has quit [Remote host closed the connection]
<ericwood> phale: Array#each
iliketurtles has joined #ruby
<phale> >> [1, 2].each {|e| print e + e.pack("C*")[0]}
<eval-in_> phale => undefined method `pack' for 1:Fixnum (NoMethodError) ... (https://eval.in/300871)
<phale> the fuck?
<ericwood> phale: pack wants an array
IrishGringo has quit [Ping timeout: 256 seconds]
<Fraeon> But seriously though, if you named your language SARS or AIDS, it's also probably not worth using
<ericwood> >> [1, 2].each {|e| print e + [e].pack("C*")[0]}
<eval-in_> ericwood => String can't be coerced into Fixnum (TypeError) ... (https://eval.in/300872)
<ericwood> lol
<havenwood> phale: The #pack docs hold the answer: http://php.net/manual/en/function.pack.php
<eam> centrx: I'm so sorry, no one should be subjected to that kind of abuse
<ericwood> >> [1, 2].each {|e| print "#{e} #{[e].pack("C*")[0]}"}
<eval-in_> ericwood => 1 2 [1, 2] (https://eval.in/300873)
CpuID has quit [Remote host closed the connection]
enterprisedc has quit [Ping timeout: 246 seconds]
shazaum has quit [Quit: Leaving]
sivoais has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
Soda has joined #ruby
<phale> This is an outrage
<phale> How can ruby exist if it sucks like this I want it to do everything for me
gccostabr has joined #ruby
<phale> Worst language ever!
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Georg3 has quit [Quit: (null)]
riotjone_ has joined #ruby
<arup_r> oO
phale has quit [Remote host closed the connection]
dopiee has joined #ruby
SOLDIERz_ has joined #ruby
ghr has quit [Read error: No route to host]
garethrees has joined #ruby
Hirzu has quit [Remote host closed the connection]
epistrephein has joined #ruby
lanemeyer has quit [Ping timeout: 255 seconds]
ptrrr has quit [Quit: ptrrr]
milesmatthias has joined #ruby
r3dkinG has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
drocsid has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
mjuszcza_ has joined #ruby
<arup_r> Is this a _bug_ ?
bim has joined #ruby
<arup_r> >> "1,4,5,".split(",")
<eval-in_> arup_r => ["1", "4", "5"] (https://eval.in/300874)
<arup_r> cool
<arup_r> but
<arup_r> >> ",1,4,5".split(",")
<eval-in_> arup_r => ["", "1", "4", "5"] (https://eval.in/300875)
AlexRussia has quit [Ping timeout: 252 seconds]
<apeiros_> not a bug. split is one of the most heavily special cased methods.
<apeiros_> >> "1,4,5,".split(",", -1)
<eval-in_> apeiros_ => ["1", "4", "5", ""] (https://eval.in/300876)
mjuszczak has quit [Ping timeout: 252 seconds]
juanpaucar has joined #ruby
<jhass> haha, yeah, -1 is ridiculous
juanpaucar has quit [Read error: Connection reset by peer]
<arup_r> -1 is doing _what_ there ?
juanpaucar has joined #ruby
<eam> perldoc -f split # the reason
juanpaucar has quit [Remote host closed the connection]
<arup_r> I don't have perldoc I think
<eam> what!!?
juanpaucar has joined #ruby
eighthbit has joined #ruby
agarie has quit [Remote host closed the connection]
<arup_r> o there....... yes I hv
sivoais has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jxpx777_ has quit [Quit: Leaving...]
mjuszczak has joined #ruby
<eam> split is one of those "just read the extensive perldoc" methods
<baweaver> eam: can't that be said for most of Perl? ;)
<eam> for most of ruby you mean? :)
<baweaver> really for any language
<baweaver> we're a special breed of masochists I suppose.
agarie has joined #ruby
<eam> ruby's fairly unique in that a lot of stuff is a direct translation
hakunin has joined #ruby
mjuszcza_ has quit [Ping timeout: 264 seconds]
juanpaucar has quit [Ping timeout: 244 seconds]
<baweaver> half perl, half lisp
<hanmac> eam: without testing or looking at the docs, what do you think does "1.2.9".succ does return? ;P
sinkensabe has joined #ruby
mjuszczak has quit [Ping timeout: 256 seconds]
mikepack has quit [Remote host closed the connection]
Macaveli has joined #ruby
_hollywood has quit [Quit: Leaving]
<baweaver> huh, today I learned.
SOLDIERz_ has quit [Quit: Be back later ...]
krisquigley has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
<eam> hanmac: it should return the string with the next chr value of "9", so uh
jerius has quit [Quit: /quit]
<eam> "1.2.:" ?
ismaelga has joined #ruby
<eam> >> "1.2.9".succ
<eval-in_> eam => "1.3.0" (https://eval.in/300881)
<eam> bwahahaha
jerius has joined #ruby
<eam> that is fantastic
paradoja has joined #ruby
<hanmac> eam do you know that symbols does succ too? ;P
<eam> >> ("1.2.9" .. "1.4.0").to_a
<eval-in_> eam => ["1.2.9", "1.3.0", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6", "1.3.7", "1.3.8", "1.3.9", "1.4.0"] (https://eval.in/300882)
bim has quit [Remote host closed the connection]
<eam> I guess that precludes double-digit numbers in version elements
MatthewsFace has quit [Remote host closed the connection]
sivoais has joined #ruby
aclearman037 has quit [Quit: I'm out!]
lyuben_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
<eam> >> :"".succ
<eval-in_> eam => :"" (https://eval.in/300885)
<hanmac> >> :abc.succ
<eval-in_> hanmac => :abd (https://eval.in/300886)
krisquigley has quit [Ping timeout: 272 seconds]
lyuben_ has joined #ruby
ghostpl_ has joined #ruby
<hanmac> eam "1.2.9".succ => "1.3.0" and "1.2.09".succ => "1.2.10" if you that mean with "double-digit numbers"
<eam> guh
<havenwood> >> "a99".next
<eval-in_> havenwood => "b00" (https://eval.in/300887)
Macaveli has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<gr33n7007h> >> "\xff".succ
<eval-in_> gr33n7007h => "\u0001\xFF" (https://eval.in/300888)
rhllor has quit [Quit: rhllor]
<kaleido> >> "b00".next
<eval-in_> kaleido => "b01" (https://eval.in/300889)
bim has joined #ruby
meschi has quit [Remote host closed the connection]
<eam> >> ["a99", "a99".succ, "a99".succ.succ, "a99".succ.succ.succ]
<eval-in_> eam => ["a99", "b00", "b01", "b02"] (https://eval.in/300890)
lyuben_ has quit [Client Quit]
meschi has joined #ruby
<eam> makes sense
sivoais has quit [Ping timeout: 240 seconds]
jxpx777 has joined #ruby
bim has quit [Remote host closed the connection]
last_staff has joined #ruby
yqt has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
<apeiros_> I'm really not a fan of all the special casing in split. I wish they'd cleaned up the interface when porting it from perl.
steve-la has joined #ruby
Macaveli has joined #ruby
ptrrr has joined #ruby
Macaveli has quit [Client Quit]
starless has quit [Quit: Leaving]
sivoais has joined #ruby
mitchellhenke has joined #ruby
Rarikon has joined #ruby
aswen has joined #ruby
wallerdev has joined #ruby
Xoro has quit [Ping timeout: 246 seconds]
starless has joined #ruby
einarj has joined #ruby
Limix has joined #ruby
<makerop> how do I manipulate an array/save it in one call, witout doing an assignement?
zenith_ has joined #ruby
yfeldblum has joined #ruby
<gr33n7007h> makerop: map!
<makerop> it has to by map?
sivoais has quit [Ping timeout: 252 seconds]
<makerop> ie, arr.split(" ")
<makerop> I dont want to do arr = arr.split(" ")
<makerop> er...not split, but you get the idea
<gr33n7007h> ! methods
<jsrn> makerop: arr.map! { |x| do_whatever } ?
MasterPiece has joined #ruby
<makerop> jsrn, that will def work
Cache_Money has joined #ruby
<makerop> it just seems like there should be a better way
<baweaver> careful on ! methods
<jhass> makerop: you can't. Ruby is strongly typed, you can't change the class of an object
<baweaver> better to make a new array most times, less risk
einarj has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jsrn> What are the risks?
<jhass> makerop: thus you can't call String#split and expect your variable to suddenly hold an Array without assigning one
sivoais has joined #ruby
<makerop> yeah, i didnt mean split
<jhass> jsrn: the caller might still hold a reference and not expect change
ghostmoth has joined #ruby
<jsrn> jhass: Good point, thanks
tvw has quit [Read error: Connection reset by peer]
Cust0sLim3n has quit [Remote host closed the connection]
m8 has joined #ruby
<baweaver> unless you have complete control of something (and even then) it's a good idea to avoid mutation
sinkensabe has quit [Remote host closed the connection]
<jsrn> I'm guessing the "even then" is just because, one less thing to worry about?
<baweaver> bingo
<baweaver> the more pure the method, the easier to test and reason about
<baweaver> that and Sidekiq / ActionController::Live require immutable code it seems
sinkensabe has joined #ruby
<baweaver> which was fine for me, but most gem authors aren't concerned with it at all causing them to flip the heck out.
<baweaver> (them referring to Sidekiq and ACL)
plashchynski has joined #ruby
<jsrn> I'll have to keep that in mind
OrbitalKitten has joined #ruby
<jsrn> Haven't gotten as far as playing with either of those yet
garethrees has quit [Read error: No route to host]
<baweaver> gave me nightmares for a few days
decoponyo has quit [Quit: Leaving...]
sivoais has quit [Ping timeout: 255 seconds]
<pontiki> which gems?
ghr has joined #ruby
<baweaver> Angular CSRF token or something like that was one that tried to modify headers
<baweaver> which caused it to flip crap
mikepack has joined #ruby
<pontiki> ouch
<pontiki> thanks, i'm on an ng app now
The_Phoenix has quit [Read error: Connection reset by peer]
mitchellhenke has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
x1337807x has joined #ruby
jespada has quit [Ping timeout: 245 seconds]
x1337807x has quit [Max SendQ exceeded]
<pontiki> it probably won't be an issue for it, but good to be on the lookup
<pontiki> look*out*
<baweaver> looking for the issue
wallerdev has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<baweaver> bingo
sivoais has joined #ruby
<baweaver> pontiki: ^^^
<pontiki> ta
<baweaver> they haven't fixed it yet as far as I can tell.
<baweaver> ActiveJob is also a bit of a hot mess, so fair warning
<pontiki> have already run into an issue with that
<baweaver> learn to kill your workers after every change to job-related code as it tries to cache (with Resque at least)
zenith_ has quit [Ping timeout: 255 seconds]
<pontiki> not related to a gem, but someone else's coding
taiansu has joined #ruby
<pontiki> oh, yes
AlexRussia has joined #ruby
<pontiki> i encountered a problem with a frozen Hash tho
<baweaver> between those two I'm about to hop the NodeJS train for Job/Websockets
mikepack has quit [Ping timeout: 272 seconds]
<pontiki> this project i'm on now wants to use all AWS stuff
jonr22 has quit [Ping timeout: 256 seconds]
<baweaver> Same
<baweaver> AWS has JS clients
wallerdev has joined #ruby
<pontiki> have you looked at SWF for jobs?
* baweaver googles
<pontiki> there's not ActiveJob support for it (yet)
<baweaver> not offhand
jottr_ has joined #ruby
<pontiki> i've only found a few references. there was an issue, but i'm not sure if anyone is working on it.
andikr has quit [Remote host closed the connection]
<baweaver> Most anything new I try and avoid for about a year
sngeth has quit [Ping timeout: 252 seconds]
<baweaver> in production that is
<baweaver> I'll test it but I won't trust the thing
Wolland has joined #ruby
Wolland has quit [Client Quit]
<pontiki> we don't necessarily get that choice
<baweaver> far too error prone in some cases
<baweaver> yeah, sometimes you really don't
<pontiki> client is driving too many implementation choices here
<baweaver> like with ActiveJob
jottr has quit [Ping timeout: 265 seconds]
<baweaver> didn't have a choice on it.
<baweaver> (well, I did, but the options were worse in general)
sambao21 has quit [Quit: Computer has gone to sleep.]
bronson has joined #ruby
<shevy> you got to do what you got to do
<shevy> beavers slay trees
taiansu has quit [Ping timeout: 252 seconds]
sivoais has quit [Ping timeout: 252 seconds]
<baweaver> Wood shevy, wood
bim has joined #ruby
CustosLimen has joined #ruby
* baweaver bows head in shame from poor monday puns
<pontiki> :D
<pontiki> worth it
<baweaver> AC Live I don't intend to touch again, too many headaches.
<baweaver> ActiveJob at least works reasonably after you get over the annoyances of restarting workers all the time.
sinkensabe has quit [Remote host closed the connection]
sambao21 has joined #ruby
<baweaver> (I just have guard set up to slay / spawn them every time I chance app code)
bim has quit [Remote host closed the connection]
<baweaver> change*
dj_zubehoer has joined #ruby
sivoais has joined #ruby
sinkensabe has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
steve-la has quit [Quit: Be back later ...]
paulfm has quit [Quit: Zzzzz...]
baweaver has quit [Remote host closed the connection]
Rapier- has quit [Quit: (null)]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivoais has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
sivoais has quit [Changing host]
sivoais has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
plashchynski has quit [Quit: plashchynski]
xenokiller has joined #ruby
paradoja has quit [Remote host closed the connection]
jobewan has quit [Ping timeout: 252 seconds]
sigurding has quit [Quit: sigurding]
yfeldblum has quit [Read error: Connection reset by peer]
neanderslob has quit [Remote host closed the connection]
<iheartkode> Can someone show me a in the wild example of a proc?
yfeldblum has joined #ruby
MasterPiece has quit [Remote host closed the connection]
<jhass> scope :logged_in_since, ->(time) { where('last_seen > ?', time) }
<jhass> iheartkode: ^
neanderslob has joined #ruby
<jhass> in this case the lambda variant is used
sinkensabe has quit [Remote host closed the connection]
<iheartkode> thx
zorak8 has quit [Read error: Connection reset by peer]
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak8 has joined #ruby
paradoja has joined #ruby
B1n4r10 has joined #ruby
tcrypt has quit [Ping timeout: 265 seconds]
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eighthbit has joined #ruby
nii2361 has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
yfeldblum has quit [Remote host closed the connection]
triangles3 has joined #ruby
nii2361 has quit [Ping timeout: 246 seconds]
OrbitalKitten has joined #ruby
max96at is now known as max96at|off
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
baweaver has joined #ruby
milesmatthias has quit [Remote host closed the connection]
bim has joined #ruby
triangles2 has quit [Ping timeout: 244 seconds]
yalue has quit [Quit: return 0;]
emilkarl has joined #ruby
vdamewood has joined #ruby
iliketurtles has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
mikepack has joined #ruby
duncannz has quit [Max SendQ exceeded]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crazydiamond_ has joined #ruby
crazydiamond_ has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
agarie has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
mois3x has joined #ruby
tskogberg has joined #ruby
lanemeyer has joined #ruby
kadoppe has quit [Ping timeout: 264 seconds]
Sid05 has joined #ruby
NoNMaDDeN has quit [Ping timeout: 256 seconds]
hidomel has joined #ruby
thumpba has joined #ruby
kadoppe has joined #ruby
zachrab_ has quit [Remote host closed the connection]
zachrab has joined #ruby
altamic has quit [Quit: altamic]
fuzzyhorns2 has quit [Ping timeout: 252 seconds]
duncannz has joined #ruby
makerop has quit [Remote host closed the connection]
iheartkode has quit [Quit: Leaving]
sngeth has joined #ruby
baweaver has quit [Remote host closed the connection]
hidomel has quit [Ping timeout: 264 seconds]
delianides has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ldnunes has quit [Quit: Leaving]
duncannz has quit [Ping timeout: 256 seconds]
yoshie902a has joined #ruby
<yoshie902a> If anyone has a recommendation to fix this, please let me know… http://stackoverflow.com/questions/29086626/capybara-no-method-error-with-sub-class
agarie has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
<GaryOak_> yoshie902a: Is that FormEdit class supposed to be embedded in your Bot class?
<yoshie902a> yes
<yoshie902a> I thought so
<yoshie902a> b/c it relates to the bot
momomomomo has joined #ruby
<GaryOak_> Maybe do Bot.find, not sure though
<jhass> yoshie902a: include adds the capybara DSL methods to your instances, self inside a def self. (singleton class method) is not an instance
Sid05 has quit [Quit: Sid05]
zorak8 has quit [Read error: Connection reset by peer]
<GaryOak_> ^ this
<yoshie902a> jhass: so should I make an instance of form? I’d rather the def self. inhert if possible. What would you do?
zorak8 has joined #ruby
yfeldblum has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
Zai00 has joined #ruby
epistrephein has quit []
<jhass> yoshie902a: if you don't want instances of FormEdit, make it a module and extend the capybara dsl methods module
iamjarvo has joined #ruby
<jhass> extend is an include into an objects singleton class
rbennacer has quit [Ping timeout: 250 seconds]
dogweather has joined #ruby
SOLDIERz_ has joined #ruby
elaptics_away is now known as elaptics
sngeth has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
SOLDIERz_ has quit [Client Quit]
<yoshie902a> so change class FormEdit ==> module FormEdit and change include Capybara::DSL under FormEdit to extend Capybara::DSL?
lucianosousa has joined #ruby
sea_local has joined #ruby
x1337807x has joined #ruby
n80 has quit [Quit: n80]
startupality has joined #ruby
jottr_ is now known as jottr
Ankhers has quit [Ping timeout: 250 seconds]
v0n has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
emilkarl has quit [Quit: emilkarl]
NoNMaDDeN has joined #ruby
elfuego has quit [Quit: elfuego]
startupality has quit [Client Quit]
startupality has joined #ruby
sambao21 has joined #ruby
wottam has joined #ruby
wottam has quit [Client Quit]
sngeth has joined #ruby
<jhass> yeah
Hirzu has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ki0 has quit [Remote host closed the connection]
lucianosousa has quit [Quit: lucianosousa]
lucianosousa has joined #ruby
sinkensabe has joined #ruby
sngeth has quit [Ping timeout: 265 seconds]
aswen has quit [Ping timeout: 245 seconds]
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
Hirzu has quit [Ping timeout: 245 seconds]
jgt2 has quit [Ping timeout: 256 seconds]
hannes___ has quit [Quit: Lost terminal]
juanpaucar has joined #ruby
<yoshie902a> jhass: would I also need to remove def self. ?
<jhass> no
centrx has quit [Quit: Shutting down, Please wait...]
it0a has quit [Quit: WeeChat 1.1.1]
frem_ is now known as frem
sinkensabe has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
v0n has joined #ruby
sngeth has joined #ruby
ziyadb has joined #ruby
Sid05 has joined #ruby
dorei has joined #ruby
yfeldblum has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
DouweM has joined #ruby
<yoshie902a> jhass: if you do remove def self. in the module what does the def refer to?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
arescorpio has joined #ruby
<jhass> then it's an instance method and will be available on instances of classes the module is included in
<yoshie902a> got it, thank you
<undeadaedra> it’s annoying having to precise self. before each function name when you are declaring many of them
<undeadaedra> isn’t there an easier way?
nb_bez___ has joined #ruby
<yoshie902a> jhass: It worked, THANK YOU!
mengu has quit []
sevvie has quit [Ping timeout: 252 seconds]
<jhass> undeadaedra: module_function is what Ruby core uses for example for Kernel
<jhass> when it comes to affecting methods it works like private and protected
rorra has quit [Quit: rorra]
<jhass> note that it works a bit differently than def self.
<undeadaedra> I see
graydot has joined #ruby
echevemaster_ has joined #ruby
adriancb has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 245 seconds]
HOrangeJewce has quit [Quit: Leaving.]
elfuego has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
Zamyatin has joined #ruby
spider-mario has quit [Remote host closed the connection]
rhllor has joined #ruby
elfuego has quit [Client Quit]
yoshie902a has left #ruby [#ruby]
magicien has joined #ruby
sevvie has joined #ruby
echevemaster_ has quit [Quit: WeeChat 1.1.1]
echevemaster has joined #ruby
discr33t has quit [Quit: Page closed]
SouL_ has quit [Ping timeout: 265 seconds]
v0n has joined #ruby
x1337807x has joined #ruby
Sid05 has quit [Quit: Sid05]
pontiki has quit [Quit: heading home]
dfinninger has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
brb3 has quit [Quit: ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
FaresKAlaboud has joined #ruby
FaresKAl- has quit [Read error: Connection reset by peer]
x1337807_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jerius has quit [Quit: /quit]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sngeth has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
dfinninger has joined #ruby
jonr22 has joined #ruby
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
dogweather has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 244 seconds]
werelivinginthef has quit [Remote host closed the connection]
Zamyatin has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agarie has quit []
rhllor has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
sngeth has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
Sid05 has joined #ruby
jxpx777 has quit [Quit: Leaving...]
last_staff has quit [Quit: last_staff]
baweaver has joined #ruby
ki0 has joined #ruby
sinkensabe has joined #ruby
arcsky has left #ruby [#ruby]
wicope has quit [Remote host closed the connection]
<GaryOak_> What's the best way to test ruby code that has db & webservice dependencies?
m8 has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
momomomomo has quit [Quit: momomomomo]
<bricker> GaryOak_: "best" is subjective, but VCR is a reasonable solution.
<bricker> GaryOak_: VCR with WebMock integration
<baweaver> fixtures / factories, vcr, mock services
<jhass> for the db you usually just set one up in your test setup
<baweaver> well fixtures / factories for DB
<baweaver> webservices are another matter
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
sgambino has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<GaryOak_> Isn't vcr for webservices?
einarj has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
<baweaver> Heh, I'd toyed with the idea of making RSPEC for upstream services generate mock services for downstreams
sinkensabe has quit [Ping timeout: 264 seconds]
<baweaver> you asked about webservices and databases
<dogweather> baweaver: that's an interesting idea.
<baweaver> they answered part of it
startupality has quit [Quit: startupality]
rbennacer has joined #ruby
<baweaver> If it's RESTful and has good docs, that's all the info you need to make an educated enough guess at autogenerating a mock service.
<dogweather> baweaver: i've made an rspec extension which provides matchers for http services https://github.com/dogweather/rspec-webservice_matchers
snath has quit [Ping timeout: 246 seconds]
<dogweather> could be one piece of a bigger solution
<baweaver> It's on my list of big scary projects for a rainy day at this point.
oetjenj has joined #ruby
elfuego has joined #ruby
codecop has quit [Remote host closed the connection]
brb3 has joined #ruby
mhib has quit [Quit: Leaving]
milesmatthias has joined #ruby
jordsmi has joined #ruby
sinkensabe has joined #ruby
snath has joined #ruby
mistermo_ has joined #ruby
symbol has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
oetjenj has joined #ruby
bronson has joined #ruby
Tuxero has left #ruby [#ruby]
mistermocha has quit [Ping timeout: 246 seconds]
mistermo_ has quit [Ping timeout: 255 seconds]
agrinb has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
jerematic has quit [Remote host closed the connection]
parduse has quit []
Jiyuhen has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
wldcordeiro_ has quit [Quit: Leaving]
gz_rain has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
hiyosi has joined #ruby
crueber has quit [Quit: Leaving.]
agrinb has joined #ruby
Aswebb_ has joined #ruby
patrick99e99 has joined #ruby
parduse has joined #ruby
agrinb has quit [Remote host closed the connection]
stylo has joined #ruby
<stylo> hi
atomi has quit [Quit: restart bbiab]
Sid05 has quit [Quit: Sid05]
<stylo> So the latest ruby releases got all performance improvements?
<stylo> I just want to know
Sid05 has joined #ruby
ojacobson has quit [Quit: Leaving...]
<wallerdev> what do you mean by latest?
<wallerdev> 2.2.1?
<stylo> yes
<wallerdev> compared to 2.2.0?
<wallerdev> or what
<wallerdev> haha
craigp has quit [Remote host closed the connection]
<wallerdev> i dont think there were major performance implications in 2.2.1?
lizander has quit [Quit: lizander]
gz_rain has quit []
bim has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
jespada has joined #ruby
nii2361 has joined #ruby
atomi has joined #ruby
Sid05 has quit [Client Quit]
dfinninger has quit [Remote host closed the connection]
kolorados has quit [Quit: Leaving]
patrick99e99 has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
lucianosousa has joined #ruby
patrick99e99 has joined #ruby
hmsimha has joined #ruby
sngeth has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
nii2361 has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
CustosLimen has quit [Quit: Leaving]
rbennacer has joined #ruby
symbol has quit [Ping timeout: 264 seconds]
jerematic has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
sngeth has joined #ruby
serivich has joined #ruby
Vulcan090 has joined #ruby
milesmatthias has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
mistermocha has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
zachrab has quit [Remote host closed the connection]
bim has joined #ruby
lnr has joined #ruby
dj_zubehoer has quit []
<weaksauce> is there a way to find out where the rake task is actually running?
<weaksauce> the source location
plashchynski has joined #ruby
baweaver has quit [Remote host closed the connection]
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby
Mives has quit [Quit: WeeChat 1.1.1]
BlackMustard has joined #ruby
<jhass> mh, try p caller
<Radar> ^
baroquebobcat has quit [Quit: baroquebobcat]
<stylo> ok
graydot has quit [Quit: graydot]
Takle has joined #ruby
symbol has joined #ruby
n80 has joined #ruby
Takle has quit [Read error: Connection reset by peer]
symbol has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graydot has joined #ruby
ptrrr has quit [Quit: ptrrr]
BlackMustard has quit []
jerematic has quit [Remote host closed the connection]
<zenspider> huh. I'm trying to push something to github and it just HANGS on a particular object
<zenspider> 4795/5122 ... just sits there
BlackMustard has joined #ruby
BlackMustard has quit [Max SendQ exceeded]
Yzguy_ has joined #ruby
HOrangeJewce has joined #ruby
Aswebb_ has quit []
<dogweather> zenspider: is it way freaking big? GitHub has various limits
hidomel has joined #ruby
BlackMustard has joined #ruby
BlackMustard has quit [Max SendQ exceeded]
<zenspider> not that I know of... but *shrug* not my code. I'm just trying to push about 2 years worth of updates + a small branch on my side
BlackMustard has joined #ruby
BlackMustard has quit [Max SendQ exceeded]
BlackMustard has joined #ruby
BlackMustard has quit [Max SendQ exceeded]
<zenspider> wow... it's really just sitting there :(
avahey has joined #ruby
adriancb has joined #ruby
agrinb has joined #ruby
Cache_Money has joined #ruby
<jhass> zenspider: no network activity? (check an external monitor)
hidomel has quit [Ping timeout: 250 seconds]
serivich has quit [Ping timeout: 255 seconds]
Sawbones has joined #ruby
<dogweather> try `du -sh` in the root directory and see how much space it's using
<zenspider> jhass: maybe? I can't tell
<zenspider> too much chatting on my laptop :)
Limix has quit [Quit: Limix]
<zenspider> it's about 87 meg even after running my `git skinny` thingy.
<zenspider> so, not that big really
werelivinginthef has joined #ruby
<jhass> zenspider: probably don't have nethogs available?
<jhass> lists traffic per process/app
<jhass> quite handy
<zenspider> activity monitor def shows SOMETHING going on while it is running, but the actual git processes involved don't register any packets. prolly not talking at the right level for activity monitor
claw has quit [Ping timeout: 250 seconds]
plashchynski has quit [Quit: plashchynski]
<zenspider> apparently not. not even in homebrew
<jhass> yeah, probably uses linux specifc api
<zenspider> welp... it's pushing SOMETHING. the numbers update periodically on total size written... but DAMN ... never seen it this slow
<zenspider> this is worse than svn
nilobject has joined #ruby
<zenspider> and I say that as someone who's run svn in the last week
jottr has quit [Ping timeout: 272 seconds]
<jhass> did you dare to ctrl+c and retry yet?
shtirlic has quit [Ping timeout: 252 seconds]
<jhass> sometimes you just seem to hit a slow box at GH
claw has joined #ruby
juanpablo__ has quit [Quit: (null)]
Phage has quit [Ping timeout: 252 seconds]
Trieste has quit [Ping timeout: 252 seconds]
msimkins has quit [Ping timeout: 252 seconds]
juanpablo__ has joined #ruby
<zenspider> jhass: twice :(
<zenspider> I'm not a patient person
artmann_ has quit [Quit: No Ping reply in 210 seconds.]
<jhass> ah, bummer
artmann has joined #ruby
CustosLimen has joined #ruby
Guest9519 has quit [Ping timeout: 252 seconds]
werelivinginthef has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 252 seconds]
Trieste has joined #ruby
rbennacer has joined #ruby
<jhass> might just delete fork and fork again
shtirlic has joined #ruby
ElderFain has quit [Excess Flood]
<jhass> though I'd let it sit for 20 minutes or so personally
revoohc has quit [Quit: revoohc]
Olipro has joined #ruby
<zenspider> yup. I'm getting paid to push :)
ElderFain has joined #ruby
Sawbones has quit [Remote host closed the connection]
Phage has joined #ruby
<zenspider> oh fuck you github
Hijiri has joined #ruby
<zenspider> wtf does this mean? https://gist.github.com/950fc03c13ade1816b73
juanpablo___ has joined #ruby
revoohc has joined #ruby
<zenspider> how can there be anything 177meg when du -sh says 87 meg ?
plashchynski has joined #ruby
<zenspider> argh
msimkins has joined #ruby
juanpablo__ has quit [Ping timeout: 264 seconds]
<jhass> du -hs .git says that too?
Sawbones has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
rbennacer has quit [Remote host closed the connection]
<zenspider> 76 meg
<jhass> interesting
Cache_Money has quit [Quit: Cache_Money]
revoohc has quit [Client Quit]
fuzzyhorns2 has joined #ruby
eighthbit has joined #ruby
<zenspider> it isn't the submodules... shouldn't be an issue at least
<graft> what about the file in question?
<graft> lib/ruby/1.9/openssl/ext/core - what's that?
juanpaucar has joined #ruby
yfeldblum has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
<zenspider> no such thing
rbennacer has joined #ruby
juanpablo___ has quit [Ping timeout: 272 seconds]
lucianosousa has quit [Ping timeout: 252 seconds]
zorak8 has quit [Ping timeout: 272 seconds]
cpt_yossarian has quit [Ping timeout: 256 seconds]
mitchellhenke has joined #ruby
meschi has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
meschi has joined #ruby
<jhass> git log should show related commits anyhow
<jhass> git log lib/ruby/...
BlackMustard has joined #ruby
mikepack has quit [Remote host closed the connection]
<jhass> er git log -- lib/ruby
serivich has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
oetjenj has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
krisquigley has joined #ruby
<zenspider> git log lib/ruby/1.9/openssl/ext/core
<zenspider> fatal: ambiguous argument 'lib/ruby/1.9/openssl/ext/core': unknown revision or path not in the working tree.
<zenspider> I DO get output with the -- added... hrm. but the commets were from feb 2013 :)
<zenspider> can't I just merge shit on github and then push my differences?
jottr has joined #ruby
charliesome has joined #ruby
<zenspider> ya know... at the very least, I can nuke my fork and re-fork
<zenspider> that'll do just as well I'd think
<jhass> yeah, that's what I meant earlier
BlackMustard has left #ruby [#ruby]
<jhass> you could open a PR from upstream to your fork though
meschi has quit [Remote host closed the connection]
<zenspider> hrm
plashchynski has quit [Quit: plashchynski]
meschi has joined #ruby
<jhass> you basically go to compare view for that choose your fork as base and upstream as the other one
<jhass> but that's about as much work as reforking anyway
patrick99e99 has quit [Quit: leaving]
relix has joined #ruby
iliketurtles has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
graydot has quit [Quit: graydot]
cpt_yossarian has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
nii2361 has joined #ruby
sngeth has quit [Ping timeout: 256 seconds]
<JimmyNeutron> I'm not clear on how this is sorting reverse: Ex. fruits = ["orange", "apple", "banana", "pear", "grapes"] fruits.sort! { |fruit_1, fruit_2| fruit_2 <=> fruit_1 } I understand the <=> does a comparison and returns -1, 0, 1
zorak8 has joined #ruby
<JimmyNeutron> but how does it gets places back into the array?
<zenspider> how? who cares? It just does
<JimmyNeutron> i'm trying to understand it instead of just doing it to get the correct answer. :)
bim has quit [Remote host closed the connection]
<jhass> JimmyNeutron: a, b, if the block returns a negative number, a < b, a is sorted before b, if the block returns a positive number, a > b, b is sorted before a
<Cat_1> What is "orange" < "apple"
Sawbones has quit [Remote host closed the connection]
<zenspider> JimmyNeutron: there's a difference between understanding WHAT sort does vs HOW it does it. implementation detail.
<JimmyNeutron> jhass, So it's automatically put into place base on the return value?
<zenspider> unless you're in a CS course and you're trying to write a sort algorithm... in which case, don't use ruby's sort
<jhass> well, "automatically", the entire point of that method is to sort
lucianosousa has joined #ruby
thumpba has quit [Ping timeout: 246 seconds]
<jhass> the block return values determine which elements are considered bigger than the others
<JimmyNeutron> orange < apple returns 1
<eam> >> "bigger" > "smaller"
<eval-in_> eam => false (https://eval.in/300939)
Sawbones has joined #ruby
<Cat_1> "orange" < "apple" == 1?
<Cat_1> wat
dogweather has quit [Quit: Leaving...]
<jhass> "orange" <=> "apple" returns 1, "orange" < "apple" returns false
<JimmyNeutron> yeah...meant <=> returns 1
delianides has joined #ruby
<eam> <=> needs to distinguish between greater, less or equal
<eam> can't return a boolean
mary5030 has joined #ruby
<zenspider> I had to nuke my fork and re-fork it. nothing was working at all.
<zenspider> I couldn't even do a PR and merge it in. too messy.
RegulationD has quit [Remote host closed the connection]
mastr_bennett[x] has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
senayar has joined #ruby
coderhs has quit [Quit: Leaving]
chrishough has quit [Read error: Connection reset by peer]
kblake has quit [Remote host closed the connection]
VBlizzard has joined #ruby