havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
saddad has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
trodai has joined #ruby
PaulCape_ has quit [Quit: .]
monod has quit [Quit: Sto andando via]
PaulCapestany has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy2 has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
jaredrhine has quit [Quit: No Ping reply in 180 seconds.]
nertzy has quit [Ping timeout: 264 seconds]
doddok has quit [Quit: Leaving]
blackmes1 has joined #ruby
Igorshp has quit [Remote host closed the connection]
bkulbida has joined #ruby
moeabdol has joined #ruby
davedev2_ has quit []
blackmesa has quit [Ping timeout: 272 seconds]
davedev24 has joined #ruby
Limix has quit [Quit: Limix]
rushed has joined #ruby
perturbation has quit [Quit: Leaving]
mburns has quit [Quit: ZNC - http://znc.in]
tier has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
keen__________11 has joined #ruby
keen__________10 has quit [Ping timeout: 255 seconds]
phutchins has joined #ruby
weemsledeux has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
bkulbida has quit [Ping timeout: 255 seconds]
l_tonz_ has quit [Quit: Leaving...]
Guest82630 has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
mburns has joined #ruby
jaredrhine has joined #ruby
rbowlby has joined #ruby
framling has joined #ruby
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
marr has quit [Ping timeout: 264 seconds]
devbug_ has joined #ruby
ramfjord has joined #ruby
wildlander has quit [Quit: Saliendo]
kayloos has joined #ruby
Mia has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
Oog has joined #ruby
devbug has joined #ruby
KensoDev has quit []
minimalism has joined #ruby
bkulbida has joined #ruby
kalusn has quit [Ping timeout: 268 seconds]
devbug_ has quit [Ping timeout: 240 seconds]
trodai has left #ruby [#ruby]
iamjarvo_ has joined #ruby
yfeldblum has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
blackmes1 has quit [Ping timeout: 268 seconds]
prestorium has joined #ruby
pocketprotector- has joined #ruby
michael_mbp has quit [Excess Flood]
nwhirschfeld has quit [Quit: No Ping reply in 180 seconds.]
bkulbida has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
michael_mbp has joined #ruby
tubbo has quit [Ping timeout: 265 seconds]
tubbo has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
nwhirschfeld has joined #ruby
jdawgaz has joined #ruby
tkuchiki has joined #ruby
Yzguy has joined #ruby
towski_ has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
rushed has quit [Quit: rushed]
rushed has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Azure has joined #ruby
balazs has joined #ruby
mistermocha has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdoherty has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
Yzguy has quit [Quit: Zzz...]
zenguy_pc has quit [Ping timeout: 240 seconds]
pdoherty has quit [Client Quit]
Bellthoven has quit []
bkulbida has joined #ruby
jessemcgilallen has joined #ruby
tier has quit [Remote host closed the connection]
andykingking has quit [Quit: Leaving.]
saddad has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cyther_ has joined #ruby
ledestin has joined #ruby
bkulbida has quit [Ping timeout: 265 seconds]
Cyther has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
Limix has joined #ruby
benlieb has joined #ruby
Motoservo has joined #ruby
tubbo has quit [Ping timeout: 252 seconds]
Oog has quit []
nwhirschfeld has quit [Quit: No Ping reply in 180 seconds.]
user1138 has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
bkulbida has joined #ruby
towski_ has quit [Ping timeout: 250 seconds]
jun has joined #ruby
nwhirschfeld has joined #ruby
tubbo has joined #ruby
bigmac has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 268 seconds]
Rollabunna has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
pocketprotector- has quit [Read error: Connection reset by peer]
pocketprotector- has joined #ruby
framlinqp has joined #ruby
framling has quit [Read error: Connection reset by peer]
casadei has joined #ruby
casadei has quit [Client Quit]
verdoc has quit [Quit: No Ping reply in 180 seconds.]
Rollabunna has quit [Ping timeout: 268 seconds]
benlieb has quit [Quit: benlieb]
oetjenj has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
Limix has quit [Quit: Limix]
htmldrum has joined #ruby
verdoc has joined #ruby
oetjenj has joined #ruby
andywojo has joined #ruby
swgillespie has joined #ruby
oetjenj has quit [Ping timeout: 264 seconds]
oetjenj has joined #ruby
ruurd has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
jun has quit [Remote host closed the connection]
tkuchiki has joined #ruby
baroquebobcat_ has quit [Quit: baroquebobcat_]
bonhoeffer has joined #ruby
glenn_ has joined #ruby
oetjenj has quit [Ping timeout: 250 seconds]
kayloos has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 255 seconds]
dcunit3d has quit [Remote host closed the connection]
A124 has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 255 seconds]
ruurd has quit [Ping timeout: 260 seconds]
glenn_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amystephen has quit [Quit: amystephen]
glenn_ has joined #ruby
charliesome has joined #ruby
simplyianm has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
A124 has joined #ruby
oetjenj has joined #ruby
ruurd has joined #ruby
kalusn has joined #ruby
Kerber0s_ has joined #ruby
ruurd has quit [Ping timeout: 260 seconds]
Kerber0s has quit [Ping timeout: 252 seconds]
dopamean_ has joined #ruby
nettoweb has joined #ruby
dcunit3d has joined #ruby
I has joined #ruby
I is now known as Guest44491
robbyoconnor has joined #ruby
imperator has joined #ruby
ruurd has joined #ruby
andywojo has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
|ifei5g00d has joined #ruby
RobertBirnie has joined #ruby
|ifei5g00d has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
ruurd has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
|ifei5g00d has joined #ruby
yfeldblum has joined #ruby
oetjenj has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
nXqd has joined #ruby
<nXqd> hi guys, I'm looking forward to create a ruby repl that I can use in gitter. Anybody has done it before ? I'm familiar with ruby, but I'm thinking about security and how to interact with api and such
oetjenj has joined #ruby
Bellthoven has joined #ruby
diegoaguilar has joined #ruby
grzegorz has joined #ruby
Sam_Gerber has joined #ruby
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
SamGerber has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
CanTonic has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
Bellthoven has quit []
neurotech has left #ruby ["WeeChat 0.4.2"]
bonhoeffer has quit [Quit: bonhoeffer]
jobewan has quit [Ping timeout: 240 seconds]
orangerobot has joined #ruby
<orangerobot> hi. what (if any) is the difference between jekyll and octopress? I see them mentioned in the same context and it's not very clear to me where they differ
bruno- has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
f1dget has quit [Quit: Leaving]
XxionxX has joined #ruby
oetjenj has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
gener1c has joined #ruby
<nXqd> orangerobot: iirc, octopress is a framework built on top of jekyll
grzegorz has quit [Remote host closed the connection]
<orangerobot> nXqd: hmmm I see. thanks
<nXqd> welcome
ramfjord has quit [Ping timeout: 240 seconds]
gener1c_ has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
nomadic has quit [Ping timeout: 244 seconds]
nomadic has joined #ruby
braincra- has quit [Quit: bye bye]
solocshaw has quit [Ping timeout: 255 seconds]
oetjenj has joined #ruby
dorei has quit []
nerium has quit [Quit: nerium]
Channel6 has joined #ruby
rbowlby_ has joined #ruby
gix has quit [Ping timeout: 240 seconds]
glenn_ has quit [Read error: Connection reset by peer]
glenn_ has joined #ruby
glenn_ has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
glenn_ has joined #ruby
rbowlby has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jun___ has joined #ruby
gix has joined #ruby
saddad has joined #ruby
_blizzy_ has joined #ruby
sdwrage has joined #ruby
Oog has joined #ruby
Oog has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
towski_ has joined #ruby
<imperator> evenin folks
kalusn has joined #ruby
mistermocha has joined #ruby
kalusn has quit [Remote host closed the connection]
tubuliferous has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
jamto11 has quit [Remote host closed the connection]
orangerobot has quit [Quit: Page closed]
favadi has joined #ruby
Kerber0s_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
oetjenj has quit [Ping timeout: 244 seconds]
jun___ has quit [Read error: Connection reset by peer]
jun___ has joined #ruby
Rollabunna has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
dcunit3d has quit [Remote host closed the connection]
oetjenj has joined #ruby
putz54 has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
putz54 has left #ruby [#ruby]
_blizzy_ has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
dagda1_ has quit [Ping timeout: 255 seconds]
dcunit3d has joined #ruby
rushed has quit [Quit: rushed]
dagda1 has joined #ruby
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
jamto11 has quit [Remote host closed the connection]
richard7 has joined #ruby
<richard7> Hello
YourKicks has joined #ruby
riotjones has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has quit [Ping timeout: 255 seconds]
patdohere has joined #ruby
rushed has joined #ruby
prateekp has joined #ruby
<prateekp> i am trying to run rspec test in a thread
<prateekp> but when i do expect, it says no such method
<prateekp> while `should` runs
<prateekp> but with a warning that it is deprecated
<prateekp> how can i use `expect` in thread
<prateekp> ?
riotjones has quit [Ping timeout: 265 seconds]
grenierm has joined #ruby
oetjenj has quit [Ping timeout: 265 seconds]
jpfuente_ has joined #ruby
grzegorz has joined #ruby
<prateekp> undefined method `expect' for thread
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
amystephen has joined #ruby
oetjenj has joined #ruby
Channel6 has joined #ruby
<toretore> prateekp: gist your code
ramfjord has joined #ruby
darkf has joined #ruby
Channel6 has quit [Client Quit]
<prateekp> toretore: ^
YourKicks has quit [Ping timeout: 246 seconds]
amystephen has quit [Ping timeout: 244 seconds]
<EasyCo> Is there a method to list all classes that inherit from a class?
ICantCook has joined #ruby
djbkd has quit [Remote host closed the connection]
moeabdol has joined #ruby
<prateekp> EasyCo: I think MyClass.constants
<prateekp> i may not be right though
<richard7> When is STDOUT.sync = true required
<EasyCo> I ended up using: ObjectSpace.each_object(Class).select { |klass| klass < self }
djbkd has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saddad has quit [Ping timeout: 252 seconds]
<imperator> ObjectSpace.each_object(Numeric.singleton_class).to_a
<imperator> a little nicer i think
RobertBirnie has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
patdohere has joined #ruby
grzegorz has quit []
l_tonz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
l_tonz has quit [Client Quit]
l_tonz has joined #ruby
oetjenj has quit [Ping timeout: 268 seconds]
prateekp has quit [Quit: Page closed]
oetjenj has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
jun___ has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
jun_ has joined #ruby
pawnbox has joined #ruby
iamjarvo_ has quit [Client Quit]
l_tonz has quit [Remote host closed the connection]
pontiki has joined #ruby
tkuchiki has joined #ruby
baweaver has quit [Remote host closed the connection]
lubarch has joined #ruby
lubarch has quit [Client Quit]
lubarch has joined #ruby
scripore has joined #ruby
imperator has quit [Quit: This computer has gone to sleep]
jun_ has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
baweaver has joined #ruby
jun_ has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
l_tonz has joined #ruby
sdwrage has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
[k- has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
l_tonz has quit [Remote host closed the connection]
l_tonz has joined #ruby
patdohere has quit [Ping timeout: 252 seconds]
oetjenj has quit [Ping timeout: 246 seconds]
jarred has joined #ruby
<jarred> Hi! I'm using Nokogiri on some HTML(5), and I believe it's inserting newlines and spaces. This is breaking the layout of some pages. Can I disable that? Ex: https://gist.github.com/Jarred-Sumner/4acc406ad0bcaef5ca78/revisions
RegulationD has quit []
SylarRuby has joined #ruby
l_tonz has quit [Remote host closed the connection]
l_tonz has joined #ruby
johnzorn_ has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
l_tonz has quit [Remote host closed the connection]
jessemcgilallen has quit [Quit: jessemcgilallen]
[k- has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
riotjones has joined #ruby
subscope has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
l_tonz has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
zayaman has joined #ruby
zayaman has quit [Read error: Connection reset by peer]
l_tonz has quit [Remote host closed the connection]
grzegorz has joined #ruby
l_tonz has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
zayaman has joined #ruby
l_tonz has quit [Remote host closed the connection]
chintameyda has joined #ruby
l_tonz has joined #ruby
oetjenj has quit [Ping timeout: 256 seconds]
chintameyda has left #ruby [#ruby]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
mistermocha has joined #ruby
simplyianm has quit [Remote host closed the connection]
armyriad has joined #ruby
simplyianm has joined #ruby
arup_r has joined #ruby
patdohere has joined #ruby
zayaman has quit [Quit: leaving]
oetjenj has joined #ruby
mistermocha has quit [Ping timeout: 268 seconds]
NeverDie has joined #ruby
patdohere has quit [Ping timeout: 264 seconds]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has quit [Ping timeout: 252 seconds]
dhjondoh has joined #ruby
chrissonar has joined #ruby
lubarch has quit [Ping timeout: 272 seconds]
davedev24 has quit [Remote host closed the connection]
pocketprotector- has quit [Ping timeout: 250 seconds]
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peteykun has joined #ruby
stardiviner has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
oetjenj has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
oetjenj has joined #ruby
lxsameer has joined #ruby
arescorpio has quit [Quit: Leaving.]
djbkd has quit [Quit: My people need me...]
favadi has quit [Ping timeout: 260 seconds]
tkuchiki_ has quit [Remote host closed the connection]
noethics has quit [Quit: Leaving]
Oog has joined #ruby
pawnbox has quit [Remote host closed the connection]
Musashi007 has quit [Read error: Connection reset by peer]
jpfuente_ has joined #ruby
jamto11 has quit []
Dopagod has quit [Ping timeout: 244 seconds]
oetjenj has quit [Ping timeout: 264 seconds]
lubarch has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
riotjones has joined #ruby
<Oog> is there a version of Date.cwday that makes Sunday=0 like in javascript or should i just do % 7
riotjones has quit [Read error: Connection reset by peer]
oetjenj has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
<Radar> Date.cwday doesn't exist.
<Radar> >> Date.cwday
<ruboto> Radar # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/448743)
<Radar> >> require 'date';Date.cwday
<ruboto> Radar # => undefined method `cwday' for Date:Class (NoMethodError) ...check link for more (https://eval.in/448744)
<Radar> Oog: ^
tjbiddle has joined #ruby
<Oog> >> Date.new.cwday
<ruboto> Oog # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/448745)
<[k-> he did ask for a version of Date.cwday though
<Oog> >> require 'date';Date.new.cwday
<ruboto> Oog # => 1 (https://eval.in/448747)
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Oog> what is the p in p begin i see at eval.in
timonv has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
zenguy_pc has joined #ruby
DoubleMalt has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
<Radar> Kernel#p
pawnbox_ has joined #ruby
baweaver has quit [Remote host closed the connection]
<Radar> Oog: Time.now.wday
<Radar> Oog: That will return 0 for Sunday
podman has quit [Quit: Connection closed for inactivity]
<Oog> there we go thanks dont know how i missed it
Musashi007 has joined #ruby
zotherstupidguy has joined #ruby
Oog has quit []
trautwein has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
zotherstupidguy has quit [Client Quit]
oetjenj has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
richard7 has quit [Ping timeout: 246 seconds]
pontiki has quit [Ping timeout: 246 seconds]
jun_ has quit []
aganov has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
pawnbox has joined #ruby
baweaver has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
acke has joined #ruby
pawnbox_ has joined #ruby
Chau has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
grzegorz has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
shoutsid has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 240 seconds]
Sam_Gerber has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gnomethrower has joined #ruby
TheWhip has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
Soda has joined #ruby
dcarmich has joined #ruby
lubarch has quit [Ping timeout: 240 seconds]
idosedthekoolaid has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
lubarch has joined #ruby
lubarch has quit [Client Quit]
eGGsha has joined #ruby
tkuchiki has joined #ruby
codecop has quit [Quit: Išeinu]
l_tonz has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
subscope has joined #ruby
bigkevmcd has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
andikr has joined #ruby
grzegorz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
Spami has joined #ruby
Sam_Gerber has joined #ruby
stardiviner has quit [Ping timeout: 272 seconds]
tmtwd has quit [Quit: Leaving]
jpfuente_ has joined #ruby
glenn_ has quit [Quit: Konversation terminated!]
speakingcode has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
speakingcode has joined #ruby
jpfuente_ has quit [Client Quit]
imperator has joined #ruby
imperator has quit [Client Quit]
kwd has joined #ruby
jas02 has joined #ruby
tvw has joined #ruby
grifitih has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
LMity has joined #ruby
grifitih has left #ruby [#ruby]
devbug has quit [Ping timeout: 240 seconds]
zenreich has joined #ruby
speakingcode has joined #ruby
Bugboy1028 has joined #ruby
stardiviner has joined #ruby
eGGsha has quit [Ping timeout: 240 seconds]
Chau has quit [Ping timeout: 252 seconds]
toretore has quit [Quit: This computer has gone to sleep]
justin_pdx has joined #ruby
system64 has quit [Quit: Connection closed for inactivity]
speakingcode has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
skweek has quit [Ping timeout: 264 seconds]
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
eGGsha has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
justin_pdx has quit [Quit: justin_pdx]
kalusn has joined #ruby
jarred has quit [Quit: Connection closed for inactivity]
SCHAAP137 has joined #ruby
towski_ has quit [Ping timeout: 265 seconds]
speakingcode has joined #ruby
skade has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
zotherstupidguy has joined #ruby
<certainty> moin
lxsameer has quit [Ping timeout: 246 seconds]
Chau has joined #ruby
<benlieb> does the OpenSSL use the local openssl, or it's own?
kimegede has joined #ruby
kalusn has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 240 seconds]
zenreich has quit [Quit: Leaving]
tjbiddle has quit [Quit: tjbiddle]
speakingcode has joined #ruby
Davey has quit [Quit: afk]
brunto has joined #ruby
auzty has joined #ruby
XxionxX has quit [Ping timeout: 240 seconds]
ledestin has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: Leaving]
DEA7TH has joined #ruby
lotherk_ has joined #ruby
lotherk_ has quit [Client Quit]
speakingcode has quit [Ping timeout: 260 seconds]
shoutsid has joined #ruby
speakingcode has joined #ruby
firstdayonthejob has quit [Ping timeout: 265 seconds]
peteykun has quit [Ping timeout: 264 seconds]
diegoaguilar has quit [Remote host closed the connection]
mkosaki has quit [Quit: Leaving...]
favadi has joined #ruby
blackmes1 has joined #ruby
ledestin has joined #ruby
nXqd has quit [Ping timeout: 246 seconds]
speakingcode has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 240 seconds]
nfk|laptop has joined #ruby
lxsameer has joined #ruby
joufflu has quit [Read error: Connection reset by peer]
pawnbox_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
blackmes1 has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
speakingcode has joined #ruby
Pupp3tm4st3r has joined #ruby
LMity has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
n008f4g_ has joined #ruby
speakingcode has quit [Remote host closed the connection]
idosedthekoolaid has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
SylarRuby has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 256 seconds]
zenguy_pc has quit [Ping timeout: 265 seconds]
wpp has joined #ruby
dcunit3d has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
speakingcode has quit [Ping timeout: 240 seconds]
dcunit3d has joined #ruby
speakingcode has joined #ruby
waxjar has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
solars has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
speakingcode has joined #ruby
zenguy_pc has joined #ruby
spider-mario has joined #ruby
dtscode has joined #ruby
robbyoconnor has joined #ruby
speakingcode has quit [Ping timeout: 268 seconds]
baweaver has quit [Remote host closed the connection]
mark2 has joined #ruby
phutchins has joined #ruby
speakingcode has joined #ruby
<dtscode> could someone help me with this error? I get http://sprunge.us/RFQa when I try to build https://github.com/busyloop/lolcat using ruby pkg/lolcat-42.0.99.gem
bayed has joined #ruby
rbowlby_ has quit []
pontiki has joined #ruby
<bnagy> you don't run gemfiles
<bnagy> you gem build blah.gemspec then gem install blah.gem
<dtscode> ah ok
<dtscode> thanks
ndrei has joined #ruby
<bnagy> modulo fancy new stuff
<dtscode> sorry, am ruby noob
<bnagy> no worries
G has quit [K-Lined]
SegFaultAX has quit [K-Lined]
sagittarian has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 246 seconds]
norc has joined #ruby
<dtscode> thanks :D worked like a charm
<shevy> the well known blah.gem
pontiki has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
<norc> I would expect this to crash or fail if I read the ruby doc on Class#new http://pastie.org/10476126
G has joined #ruby
SegFaultAX has joined #ruby
<dtscode> oh dear I broke the program
chthon has joined #ruby
tkuchiki has joined #ruby
shmoon_ has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
joufflu has joined #ruby
platzhirsch has joined #ruby
<shevy> norc hey webchat friend
speakingcode has quit [Ping timeout: 264 seconds]
<norc> Hiya
robbyoconnor has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
timonv has joined #ruby
framlinqp has quit [Remote host closed the connection]
khebbie has joined #ruby
speakingcode has joined #ruby
SylarRuby has joined #ruby
whowantstolivefo has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
whowantstolivefo has left #ruby [#ruby]
timonv has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
ruby-lang388 has joined #ruby
SylarRuby has quit [Remote host closed the connection]
ruby-lang388 has quit [Client Quit]
_aeris_ has quit [Remote host closed the connection]
poom has joined #ruby
Gnomethrower is now known as BlacksoxCrypto
zotherstupidguy has quit [Ping timeout: 250 seconds]
<adaedra> Hello rubyists
zotherstupidguy has joined #ruby
<Ropeney> hello adeponte
pawnbox has quit [Ping timeout: 246 seconds]
<Ropeney> hello adaedra
<adaedra> :o)
pawnbox has joined #ruby
ramfjord has joined #ruby
mighub has joined #ruby
beast has quit [Quit: Leaving]
<mighub> Just wanted to know if there is a channel dedicated to minitest. I can't seem to find one.
leafybasil has quit [Remote host closed the connection]
Kendos-Kenlen has joined #ruby
_blizzy_ has joined #ruby
BlacksoxCrypto is now known as PandaCrypto
<poom> Hello. Is there any possibility to detect key duplication in a hash?
<adaedra> what do you mean?
senayar has joined #ruby
<yorickpeterse> morning
joufflu has quit [Quit: Leaving]
odt_ has joined #ruby
<shevy> poom it's like highlander - there can only be one
zotherstupidguy has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 240 seconds]
pawnbox has quit [Read error: Connection reset by peer]
linduxed has quit [Ping timeout: 250 seconds]
<norc> shevy: So what do you think about what I said earlier?
<poom> eg. I have hash ha = {'a' => 'aa', 'b' => 'bb', 'a' => 'cc'} and I want to detect that I have duplicated 'a' i hash and show any info to user
zotherstupidguy has joined #ruby
odt has quit [Ping timeout: 240 seconds]
<norc> poom: Hash will overwrite the key/value pair if you use the same key again.
Outlastsheep has quit [Ping timeout: 246 seconds]
<norc> >> {'a' => 'aa', 'b' => 'bb', 'a' => 'cc'}
<ruboto> norc # => /tmp/execpad-e8946405b4b1/source-e8946405b4b1:2: warning: duplicated key at line 2 ignored: "a" ...check link for more (https://eval.in/448819)
<norc> You get a warning at least.
odt_ is now known as odt
ndrei has joined #ruby
<poom> I'm using puppet and have central hash with env configuration. If someone make duplication I could have huge problem
<norc> poom: Use a custom class or document it then.
Hounddog has joined #ruby
peteykun has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<norc> poom: But in the end, you probably do not want to expose data structures that if modified will screw up your program.
<shevy> norc as I told you before, you are not a ruby user man
<norc> o_o
<norc> That almost hurt.
<shevy> no it did not
<norc> You are right.
<poom> That's what I want - if puppet detect key duplication, it should fail with some information
beauby has joined #ruby
roshanavand has joined #ruby
<adaedra> poom: I think there's a puppet channel somewhere, they can give better advice on puppet.
<adaedra> ?puppet
<ruboto> Please join #puppet for help with it.
<adaedra> Ah, here it is.
Kerber0s has joined #ruby
<shevy> poom you will have to detect if the key is already included
<dtscode> would someone mind telling me why https://github.com/DTSCode/lolcat/branches is making -n set :newline to true and how to fix it?
<norc> shevy: What am I then? Aside from a webchat friend.
<shevy> so much code to see
_blizzy_ has joined #ruby
<norc> (And Im still looking for an icon in webchat to show that you are truly a friend)
<shevy> norc for some reason you attempt to identify random non-problems
<poom> yes I know, but it is mostly a ruby issue, puppet doesn't have any function or mechanism to do what I want, and I have to write my own ruby function
<norc> shevy: This was merely a question about the ruby docs actually.
arup_r has joined #ruby
<norc> shevy: They state Class#new calls #allocate (the source code shows differently).
<shevy> that's a heroic cause to improve the ruby docs
<shevy> isn't allocate defined on the C level only?
<norc> Just something I noticed thats all.
<norc> Yeah.
shredding has joined #ruby
roshanavand has quit [Remote host closed the connection]
<maloik> arup_r: you mentioned me this weekend?
senayar_ has joined #ruby
<norc> shevy: Im using Ruby extensively. Im just spending some time getting to know the internals bit by bit.
<arup_r> hum. May be. but I forgot what I did
mighub has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
senayar has quit [Read error: Connection reset by peer]
stan has joined #ruby
_aeris_ has joined #ruby
<[k-> Ruby under a microscope
herbst has joined #ruby
linduxed has joined #ruby
niko has quit [Ping timeout: 600 seconds]
charliesome has quit [Read error: Connection reset by peer]
blackmes1 has quit [Ping timeout: 268 seconds]
charliesome has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
c0m0 has joined #ruby
Or1on has quit [Quit: gone]
ZucchiniZe is now known as ZucchiniZe-
arup_r has quit [Read error: Connection reset by peer]
PandaCrypto is now known as Gnomethrower
leafybasil has joined #ruby
codecop has joined #ruby
Musashi007 has joined #ruby
blackmes1 has joined #ruby
poom has quit [Quit: Konversation terminated!]
nfk|laptop has quit [Ping timeout: 240 seconds]
Zamyatin has quit [Ping timeout: 244 seconds]
bweston92 has joined #ruby
dcunit3d has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<Ropeney> [k- is that book dated now? looks good
n008f4g_ has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
<[k-> i think there is a second edition
[k-_ has joined #ruby
[k- has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
shevy has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
BTRE has quit [Read error: Connection reset by peer]
async_prince has quit [Quit: WeeChat 1.3]
async_prince has joined #ruby
BTRE has joined #ruby
[k-_ is now known as [k-
leafybasil has quit [Remote host closed the connection]
Zamyatin has joined #ruby
leafybasil has joined #ruby
krisquigley has joined #ruby
Rollabunna has quit [Quit: Leaving...]
solocshaw has joined #ruby
Musashi007 has quit [Quit: Musashi007]
esc8 has joined #ruby
pawnbox has joined #ruby
esc8 has left #ruby [#ruby]
Gnomethrower has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 240 seconds]
triangles2 has quit [Read error: Connection reset by peer]
triangles2 has joined #ruby
Peg-leg has joined #ruby
arup_r has joined #ruby
<shevy> hah
<shevy> as if someone would click-bait it
scripore has joined #ruby
<herbst> i clicked it. but closed it seconds after questioning my whole life
face has joined #ruby
scripore has quit [Max SendQ exceeded]
SenpaiSilver has joined #ruby
faces has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
becks has joined #ruby
dagda1 has quit [Read error: Connection reset by peer]
<becks> ciao
<becks> !list
beauby has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
<adaedra> There's nothing to list.
<adaedra> May we help you?
<shevy> italy is in da house
Trynemjoel has quit [Ping timeout: 264 seconds]
stardiviner has joined #ruby
<herbst> lets create something we could !list. i mean why not?
beauby has joined #ruby
<[k-> your face is why not
<[k-> oooooooooo
<[k-> burnnnnnnnnnnn!
BTRE has quit [Remote host closed the connection]
becks has left #ruby [#ruby]
<adaedra> If you say so...
khebbie has joined #ruby
BTRE has joined #ruby
netmask has joined #ruby
netmask has quit [Client Quit]
<shevy> ruboto could list stuff
zenguy_pc has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
jgt has joined #ruby
SylarRuby has joined #ruby
<adaedra> I'm not sure you can list anything this one wanted ;)
ledestin has quit [Ping timeout: 265 seconds]
Laaw has quit [Ping timeout: 265 seconds]
peteykun has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
<shevy> perhaps he wanted a shopping list
michael_mbp has quit [Excess Flood]
skade has quit [Quit: Computer has gone to sleep.]
michael_mbp has joined #ruby
Laaw has joined #ruby
Porfa has joined #ruby
solocshaw has quit [Ping timeout: 256 seconds]
Gnomethrower has joined #ruby
ZucchiniZe- is now known as ZucchiniZe
SylarRuby has quit [Remote host closed the connection]
<norc> shevy: Im still curious, do you consider toying around and asking about Ruby internals a negative thing in this channel?
greister has quit [Ping timeout: 265 seconds]
greister_ is now known as greister
<adaedra> no it isn't
<odt> how could I use instance_variable_set here? lines 8-11 https://gist.github.com/odtgit/cf87781cbd5cba73ce8b
zenguy_pc has joined #ruby
<shevy> norc not if you are using ruby but are you? ;)
yfeldblum has quit [Remote host closed the connection]
Cyther_ has quit [Read error: Connection reset by peer]
<adaedra> odt: what are you trying to do?
yfeldblum has joined #ruby
<norc> shevy: Plenty. :)
<[k-> Ruby under a microscope!
<[k-> do you not realize the name of this great book that can teach you the world of Ruby and its internals, norc?
<norc> Let me guess, its your book? :-)
<[k-> no it isn't
<[k-> it's a famed book throughout Ruby land
* [k- shakes head
<odt> adaedra: use all available keys in the hashmap without having to prefix them with the name of the hash
<[k-> your inability to tell that i wanted to give you a message is just so :(
<norc> The message to shush and learn by myself?
<norc> Oh I got that one.
<norc> But it seems like a solid book. :)
tkuchiki has joined #ruby
pontiki has joined #ruby
<adaedra> odt: you could transform your sources items into objects, transform your block into a method, and call it in your loop.
<[k-> the message was that all your questions are answered in this book!
<adaedra> so don't answer them here, that's what you say?
<[k-> someone else caught the message even
<[k-> yourlogicalfallacyis.com
<adaedra> [k-: invalid certificate
grenierm has quit [Quit: grenierm]
<shevy> you could perhaps use Struct if you want to arbitrarily store ivar-like content
<[k-> hmm, it worked last tine
<adaedra> instance_variable_set is not the solution here I feel
freezevee has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
<shevy> he wants to use instance_variable_set!
sanjayu has joined #ruby
skade has joined #ruby
<adaedra> So that makes it the right solution magically?
<[k-> shevy, our mission is embodied in ?fake
<[k-> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<odt> well the point is to be able to use the key names in the future without changing anything but the print lines
<[k-> **bring up the best possible solution**
<shevy> adaedra are you to define what is right and what is wrong?
skade has quit [Client Quit]
TheWhip_ has joined #ruby
ramfjord has joined #ruby
<adaedra> no, that's why there is a "I feel" in my message.
<shevy> there are lots of ways in ruby!
Zamyatin has quit [Ping timeout: 256 seconds]
norc has quit [Ping timeout: 246 seconds]
<[k-> **bring up the best possible solution**
<shevy> **we are all waiting for it**
mark2 has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<adaedra> odt: I'd turn them into objects and call a method on them, so I have access to variables directly. That would require to change your code a lot. For dynamism, if you really want it, you can indeed instance_variable_set in your initializer or save the hash and use method_missing.
mark2 has joined #ruby
stardiviner has quit [Ping timeout: 246 seconds]
TheWhip has quit [Ping timeout: 256 seconds]
marr has joined #ruby
<adaedra> Otherwise, in the current shape of code, not much to do.
<adaedra> Minimal changes would be to use OpenStruct and instance_exec, but it's not the prettiest of solutions.
<shevy> that was a nice way of saying that this code is not perfect
khebbie has quit [Ping timeout: 256 seconds]
<adaedra> shevy: No code is perfect.
stamina has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
stardiviner has joined #ruby
scripore has joined #ruby
leafybas_ has joined #ruby
<odt> ok, thanks anyway! dont think ill change anything there right now with my current skill set
Rickmasta has joined #ruby
leafybasil has quit [Ping timeout: 255 seconds]
Couch has joined #ruby
sanjayu has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 252 seconds]
<shevy> \o/
odt_ has joined #ruby
norc has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
roshanavand has joined #ruby
odt has quit [Ping timeout: 246 seconds]
odt_ is now known as odt
skweek has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
scripore has quit [Quit: This computer has gone to sleep]
allcentury has joined #ruby
Coldblackice_ has quit [Ping timeout: 250 seconds]
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dtscode has joined #ruby
dstarh has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
odt_ has joined #ruby
odt has quit [Ping timeout: 252 seconds]
odt_ is now known as odt
dstarh has quit [Client Quit]
nateberkopec has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
herbst has quit [Remote host closed the connection]
f4cl3y has joined #ruby
TheWhip_ has quit [Read error: Connection reset by peer]
senayar_ has quit [Remote host closed the connection]
TheWhip has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
shevy has quit [Remote host closed the connection]
Guest1956 is now known as sts
Rollabunna has joined #ruby
shevy has joined #ruby
bluOxigen has joined #ruby
Porfa has quit [Quit: Porfa]
blueOxigen has quit [Ping timeout: 264 seconds]
mattprelude has joined #ruby
odt_ has joined #ruby
FernandoBasso has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
otacon- has quit [Quit: Lost terminal]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SylarRuby has joined #ruby
odt has quit [Ping timeout: 264 seconds]
odt_ is now known as odt
Chau has quit [Ping timeout: 252 seconds]
`roo` has joined #ruby
_blizzy_ has joined #ruby
`roo` has quit [Client Quit]
raggedjack has joined #ruby
SylarRuby has quit [Remote host closed the connection]
raggedjack has quit [Client Quit]
kalusn has joined #ruby
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
poikon has joined #ruby
poikon has quit [Client Quit]
_blizzy_ has quit [Read error: Connection reset by peer]
kalusn has quit [Remote host closed the connection]
kalusn has joined #ruby
shevy has quit [Quit: ""]
auzty has quit [Quit: Leaving]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
scripore has quit [Quit: This computer has gone to sleep]
Cork has quit [Ping timeout: 264 seconds]
_blizzy_ has joined #ruby
shevy has joined #ruby
roshanavand has joined #ruby
grzegorz has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
SCHAAP137 has quit [Ping timeout: 265 seconds]
TheWhip has quit []
tkuchiki has joined #ruby
PaulCapestany has quit [Ping timeout: 244 seconds]
amystephen has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
wpp has quit [Quit: ZZZzzz…]
FernandoBasso has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
skade has joined #ruby
dionysus69 has joined #ruby
wpp has joined #ruby
ircplususer22993 has joined #ruby
ircplususer22993 has quit [Client Quit]
[k- has quit [Read error: Connection reset by peer]
[k- has joined #ruby
Cork has joined #ruby
devoldmx has quit [Remote host closed the connection]
naftilos76 has joined #ruby
pontiki has joined #ruby
tkuchiki has joined #ruby
pontiki has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 268 seconds]
stardiviner has joined #ruby
grzegorz has joined #ruby
syath has joined #ruby
SCHAAP137 has joined #ruby
SylarRuby has joined #ruby
Steve_Jobs has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
<platzhirsch> Having an array of tuples [t, s], how can I group them by t so that t is only present as a key in a Hash?
<platzhirsch> array.group_by { |e| e[0] } creates a Hash mapping to [[t1, s1],...] when I really want t => [s1, s2,..] if that makes sense
pawnbox has joined #ruby
<shevy> nodehirsch!
<shevy> are you back in the promised ruby land again?
DanKnox has joined #ruby
<platzhirsch> yeah for scripting
<platzhirsch> need to analyze some database logs :D
FernandoBasso has joined #ruby
<platzhirsch> trying to find some correlations
Rollabunna has quit [Ping timeout: 264 seconds]
nanoz has joined #ruby
p0wn3d__ has joined #ruby
<jhass> each_value {|v| v.map!(&:last) } ?
<platzhirsch> jhass: nice one, yeah
pawnbox has quit [Remote host closed the connection]
sdothum has joined #ruby
<platzhirsch> incredible how I lost my Ruby data structure joggling skills
scripore has joined #ruby
pawnbox has joined #ruby
last_staff has joined #ruby
zenguy_pc has quit [Ping timeout: 252 seconds]
sanjayu has joined #ruby
sanjayu has quit [Client Quit]
atmosx has joined #ruby
<atmosx> hello
scripore has quit [Client Quit]
sanjayu has joined #ruby
<atmosx> How can I read HAML and convert to HTML from a ruby script? I want to create an email HTML template using HAML and the 'mail' gem.
beauby has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Soda has quit [Remote host closed the connection]
howdoi has joined #ruby
opal has joined #ruby
herbst has joined #ruby
<adaedra> atmosx: use the haml gem
<atmosx> yeah I am looking into the documentation
root has joined #ruby
grzegorz has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Ping timeout: 240 seconds]
grzegorz has joined #ruby
root is now known as Guest3421
zenguy_pc has joined #ruby
<atmosx> I was looking for this Haml::Engine.new(file).render
<atmosx> nice
some_body has joined #ruby
speakingcode has joined #ruby
Cork has quit [Ping timeout: 246 seconds]
<some_body> hey, i asked yesterday, but I have a .txt file that ruby refuses to read as UTF-8, and gives me invalid byte sequence US ASCII errors anytime I touch it. I have the correct locale on my machine, the correct magic comment in my code, and I even reinstalled ruby 2.1, all to no effect
polycaster has joined #ruby
<atmosx> some_body: can you gist it?
codecop has quit [Quit: Išeinu]
<atmosx> can you paste the journal.txt as well?
<yorickpeterse> some_body: File.open(file, :encoding => Encoding::UTF_8), or use force_encoding('UTF-8') when reading data
<atmosx> not the entire file, just a couple of liens
zotherstupidguy has joined #ruby
<yorickpeterse> alternatively you can open the file using Encoding::BINARY, then use force_encoding to convert it to UTF8
cantaberry has joined #ruby
<yorickpeterse> most likely the input file contains bogus data
<some_body> yorickpeterse: looks like that did the trick. what could be causing my ruby to not use UTF-8 by default. I thought that was a 2.0 thing
beauby has joined #ruby
<yorickpeterse> It does use UTF8 by default
opal_ has joined #ruby
<yorickpeterse> But the file contains invalid character sequences apparently
<some_body> how could I easily strip all valid ascii chars form it and dump that to a new file?
<some_body> could regex do that?
<yorickpeterse> You can't reliably remove invalid sequences without losing input
opal has quit [Ping timeout: 256 seconds]
<yorickpeterse> The only solid way is to convert it to whatever encoding the data is actually saved in, then convert that to UTF8
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> you can use String#scrub to remove invalid sequences, but you might lose data
gagrio has quit [Ping timeout: 264 seconds]
<some_body> so if I forced this file to .open with UTF 8 encoding, and then .scrub, then write to a new file?
<yorickpeterse> Would't make a difference if the data in the file itself is already broken
speakingcode has quit [Ping timeout: 240 seconds]
<yorickpeterse> e.g. I had a case where Amazon S3 would serve data in ASCII, but the documents contained UTF8 sequences
norc has quit [Ping timeout: 246 seconds]
<yorickpeterse> That particular case, if I remember correctly, was fairly easy to solve using force_encoding
speakingcode has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
beauby has quit [Ping timeout: 264 seconds]
Kerber0s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has joined #ruby
Pumukel has joined #ruby
spcmastertim has joined #ruby
xstaz has joined #ruby
mikecmpbll has joined #ruby
BTRE has quit [Quit: Leaving]
crankharder has joined #ruby
cantaberry has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 265 seconds]
cantaberry has joined #ruby
speakingcode has joined #ruby
<ljarvis> I have an array of records that have "timestamp" attributes. I want to group them into arrays where the time difference is more than 12 hours and record the difference between the final time of each group and the first time of the following group. For example: https://gist.github.com/leejarvis/60cdd2b183f8d6022d13 I have a bit of a wild while() and I think I'm probably missing something
blackmes1 has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<ljarvis> (group_by day doesn't work because it's not day, it's every > 12 hours)
acke has quit [Remote host closed the connection]
<yorickpeterse> ljarvis: PostgreSQL?
tier has joined #ruby
<ljarvis> yorickpeterse: plain ruby objects now
<some_body> yorickpeterse: I just wrote the old file to the new file by .scrub! each line and appending it to the new file, and when U do cmp newfile oldfile -b, it tells me that the EOF on the first file is different'
<yorickpeterse> ljarvis: hm
<yorickpeterse> probably the approach is to get the date + hour, floor/ceil it, group per that
momo-reina has joined #ruby
<yorickpeterse> some_body: scrub only works if the input string is in UTF8
<yorickpeterse> if it's ASCII it doesn't do anything
phutchins has joined #ruby
speakingcode has quit [Ping timeout: 244 seconds]
<some_body> so force_encoding is really the only possible solution then
Pupp3tm4st3r has quit [Remote host closed the connection]
chthon has quit [Quit: Ex-Chat]
atmosx has quit [Quit: parting / quiting]
<yorickpeterse> well, normally you'd read/write with encoding explicitly set to UTF8
<yorickpeterse> but to clean it up you'd have to do: read as binary, force encoding to UTF8, write as UTF8
<yorickpeterse> from the top of my head
speakingcode has joined #ruby
Porfa has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
Pupp3tm4st3r has joined #ruby
<yorickpeterse> ljarvis: how many groups do you want per day, only 2?
<yorickpeterse> if so you can do something like (hour.to_f / 12).floor * 12
<yorickpeterse> e.g.
<yorickpeterse> >> (1.0 / 12).floor * 12
<ruboto> yorickpeterse # => 0 (https://eval.in/448956)
<yorickpeterse> >> (13.0 / 12).floor * 12
<ruboto> yorickpeterse # => 12 (https://eval.in/448957)
bruce_lee has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
gagrio has joined #ruby
shinnya has joined #ruby
xstaz has quit [Ping timeout: 246 seconds]
krisquigley has quit [Remote host closed the connection]
<ljarvis> yorickpeterse: the "day" metric is essentially superfluous as it's always relative to the previous timestamp, but yeah if it's per 12 hours then it'll only ever be <=2
prestorium has joined #ruby
<yorickpeterse> alternatively you loop over the timestamps and store them per hour, then reduce them to a set of per 12 hours each
<yorickpeterse> map/reduce yo, gotta use MongoDB for that :D
* yorickpeterse runs
naftilos76 has quit [Quit: Αποχώρησε]
pawnbox has quit [Remote host closed the connection]
Cork has joined #ruby
tomaz_b has joined #ruby
hectortrope has quit [Remote host closed the connection]
sgambino has joined #ruby
opal_ has left #ruby [#ruby]
karapetyan has quit [Remote host closed the connection]
<ljarvis> yeah, i currently have something very naive to ensure it's working with a spec: https://gist.github.com/leejarvis/078c54c458d85d644069 but my head isn't functioning too well today
karapetyan has joined #ruby
<yorickpeterse> awful lot of people getting sick or not feeling well lately
<yorickpeterse> pffft, weaklings
grzegorz has quit [Remote host closed the connection]
<yorickpeterse> ljarvis: oh wait, you have to group it per 12 hour offset relative to the previous entry?
<ljarvis> yezzir
grzegorz has joined #ruby
<yorickpeterse> ugh
<ljarvis> sorry if that wasn't clear
<ljarvis> bad day today
karapetyan has quit [Remote host closed the connection]
<maloik> ljarvis: I just tried it to see what I'd come up with and I have pretty much the exact same thing you do
<yorickpeterse> I think you can only do that using a loop like that tbh
<ljarvis> right, so im not absolutely insane
hectortrope has joined #ruby
karapetyan has joined #ruby
<maloik> I used each_with_object([[]]) to start though
codecop has joined #ruby
<ljarvis> yeah that could be nicer
beauby has quit [Ping timeout: 264 seconds]
<ljarvis> thanks
<tomaz_b> hi, is anybody here using Cequel (http://cequel.github.io/)?
[k-_ has joined #ruby
<tomaz_b> for working with cassandra from ruby?
[k- has quit [Read error: No route to host]
<maloik> and something along the lines of memo_array.last.last < (next_time_object - 12.hours) if that makes sense but your solution might be a bit quicker
beauby has joined #ruby
chrisseaton has quit []
chrisseaton has joined #ruby
<maloik> somewhat related: apparently Array(time_obj) resultsi n an array [date, time, timezone] or something along those lines
ndrei has quit [Ping timeout: 240 seconds]
grzegorz has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
<yorickpeterse> ughhh, GitLab uses LOWER(X) without indexes in so many places
karapetyan has quit [Ping timeout: 250 seconds]
lokson has joined #ruby
devoldmx has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
armyriad has quit [Ping timeout: 246 seconds]
<tomaz_b> anybody?
Pupp3tm4st3r has quit [Remote host closed the connection]
<yorickpeterse> tomaz_b: probably not
devoldmx has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
yes`r has joined #ruby
<darix> tomaz_b: i dont think cassandra is that much used^^
<darix> (user number wise)
Pupp3tm4st3r has joined #ruby
yeshacker has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
wpp has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has quit [Ping timeout: 265 seconds]
<tomaz_b> ok, thanks
armyriad has joined #ruby
chris2 has quit [Quit: trotz alledem!]
chris2 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
prateekp has joined #ruby
<prateekp> JSON.load("1")
Pupp3tm4st3r has quit [Ping timeout: 265 seconds]
<prateekp> throws error
<prateekp> A JSON text must at least contain two octets!
<prateekp> ruby version is 1.9.3
<prateekp> but when i use ruby 2.2.0 it works fine
<prateekp> and give result 1
<prateekp> why is this so?
<yorickpeterse> Perhaps it was fixed in a later version?
peteykun has joined #ruby
yeshacker has joined #ruby
yes`r has quit [Ping timeout: 272 seconds]
sebstrax has joined #ruby
jgt has joined #ruby
Igorshp has quit [Remote host closed the connection]
Zamerick has joined #ruby
pandaant has joined #ruby
sankaber has joined #ruby
kirun has joined #ruby
bandrami has joined #ruby
ericjphillips has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dstarh has joined #ruby
krisquigley has joined #ruby
<prateekp> yorickpeters: is there any other equivalent in 1.9.3
<yorickpeterse> It's just a Gem, you can update it
<prateekp> which does not give error on JSON.load("1")
<yorickpeterse> or install it
<yorickpeterse> gem install json
ericjphillips has quit [Client Quit]
<prateekp> ohh
<prateekp> really
<prateekp> ?
<prateekp> doesnt it already come?
<prateekp> how to update it
<yorickpeterse> ...
<yorickpeterse> gem update?
Pupp3tm4st3r has joined #ruby
codecop has quit [Remote host closed the connection]
jas02 has quit [Ping timeout: 264 seconds]
balazs has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
e1senhorn has joined #ruby
haylon has joined #ruby
jas02 has joined #ruby
shredding has joined #ruby
last_staff has quit [Quit: last_staff]
<prateekp> i did gem install json
<prateekp> but same error
<prateekp> A JSON text must at least contain two octets!
shredding has quit [Client Quit]
<prateekp> which is the stable version of ruby ?
<prateekp> 1.9.3 was stable
<yorickpeterse> add gem 'json', '>= 1.8.3' to your code before the require 'json' call
<[k-_> it's in the topic
<yorickpeterse> and 1.9.3 is already EOL I believe
tomaz_b has quit [Quit: Leaving]
[k-_ is now known as [k-
<havenwood> prateekp: 2.2.3 is the latest stable.
<prateekp> how can i get latest ruby on my machine
<havenwood> prateekp: 2.1 is supported. 2.0 is in maintenance mode until its end-of-life in Feb. 1.9 is past end-of-life.
Igorshp has joined #ruby
<some_body> yorickpeterse: I found my naughty characters..., u2018 and u2019 i think
<havenwood> prateekp: OS/distro?
<havenwood> some_body: naughty!
victortyau has joined #ruby
<prateekp> i am currently having 2.1.5 on my docker linux, and 2.2.0 on my mac
<some_body> yeah they kept me googling for several hours yesterday trying to figure out what was wrong
<prateekp> with 2.2.0, my gem is getting installed
<havenwood> prateekp: Those are both supported, but update to 2.1.7 and 2.2.3.
<prateekp> but not with 2.1.5
Igorshp has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
<prateekp> my gem is c-gem, and it fails when using 2.1.5
max_Q has quit [Ping timeout: 252 seconds]
ericjphillips has joined #ruby
Soda has joined #ruby
<prateekp> it gets installed but there is an undefined symbol error
<prateekp> while on 2.2.0 it works
<havenwood> What's failing?
<havenwood> prateekp: What command is failing and what is the error?
<prateekp> when i do require
<prateekp> it gives
<prateekp> undefined symbol: _ZTVN6icu_5413UnicodeStringE
<prateekp> while on mac, everything works smooth
<havenwood> prateekp: require what? full command and full error?
gagrio has quit [Ping timeout: 268 seconds]
<prateekp> LoadError: /usr/local/lib/x86_64-linux-gnu/site_ruby/v8eval/v8eval.so: undefined symbol: _ZTVN6icu_5413UnicodeStringE
<prateekp> LoaError
Motoservo has quit [Quit: Motoservo]
<prateekp> and the ruby version on this machine is 2.1.5
<prateekp> while on mac, there is no such error, while version is 2.2.0
<prateekp> and the same thing when built with ruby 1.9.3, there is no error but then JSON fails :(
ericjphillips has quit [Quit: Leaving.]
mbeasley has left #ruby ["WeeChat 0.4.2"]
<havenwood> prateekp: Seems your 2.1.5 isn't linked against v8 (???) so when you require (I don't know what) it blows up.
`tim` has joined #ruby
davedev24 has joined #ruby
<prateekp> ahh
<havenwood> prateekp: Upgrade to Ruby 2.1.7 or better yet 2.2.3.
gagrio has joined #ruby
<prateekp> hmm cool ...
<prateekp> i was thinking it was platform(linux or mac) issue
blackmes1 has joined #ruby
<prateekp> but i think u are right, i should upgrade to the latest
codecop has joined #ruby
_blizzy_ has joined #ruby
jdawgaz has joined #ruby
charliesome_ has joined #ruby
whippythellama has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
beauby has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
_blizzy_ has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
_blizzy_ has joined #ruby
bandrami has quit [Quit: bandrami]
Skelz0r has quit [Ping timeout: 240 seconds]
JJM has joined #ruby
kimegede has quit [Quit: Leaving...]
allcentury has joined #ruby
asui has joined #ruby
<asui> Hi everyone, is there any nice way to persistent save a single variable (without writing a file)?
herbst has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
armyriad has quit [Ping timeout: 268 seconds]
tk__ has joined #ruby
armyriad has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tkuchiki has joined #ruby
dorei has joined #ruby
sdothum has joined #ruby
michael_mbp has quit [Excess Flood]
Igorshp has joined #ruby
<canton7> where would it be persisted to, then?
JJM has quit [Quit: Textual IRC Client: www.textualapp.com]
<asui> dunno maybe as environment variable or something similar?
<Aria> And how structured a value in that single variable?
michael_mbp has joined #ruby
<Aria> Environment variables are only inherited downward, so it would only last as long as the process and its children
<adaedra> asui: what for?
aryaching has joined #ruby
<adaedra> what will you do, with this saved variable? When will it be read again?
tkuchiki has quit [Remote host closed the connection]
<asui> It's only a number that's why I won't use a file
nanoz has quit [Ping timeout: 244 seconds]
<adaedra> It's not a problem to use a file for such a small amount of data
dhjondoh has quit [Quit: dhjondoh]
<asui> The script is calles every 30 seconds. And I want to pass the variable from the first run to the second run
LMity has joined #ruby
<yorickpeterse> Either you save it as a file and it persists, or save it in memory and its lost when the script stops
aryaching has quit [Client Quit]
<Aria> Or in a database, which is eventually a file but you get to ignore that fact.
<Aria> Or stuff it into a blockchain and have other people store it in files for you. :)
<adaedra> You could use something like a memcache (careful if invalidation though)
Igorshp has quit [Remote host closed the connection]
roshanavand has joined #ruby
emilkarl has joined #ruby
mxrguspxrt has joined #ruby
<asui> Ok. so the nicest way is to store it in an additional file. Then I'll do this =) Thanks a lot
dopamean_ has quit [Ping timeout: 252 seconds]
<havenwood> asui: Maybe just use a file. See PStore and YAML::Store in the stdlib.
codecop has quit [Quit: Išeinu]
mxrguspxrt has quit [Client Quit]
devoldmx has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
simplyianm has quit [Ping timeout: 240 seconds]
<havenwood> If you even need transactions.
pawnbox has quit [Ping timeout: 240 seconds]
<asui> havenwood: Thank you for that clue. But instead loading the PStore library which it will also store everything in a file, I can do this by myself.
beauby has joined #ruby
newdan has joined #ruby
Igorshp has joined #ruby
<havenwood> asui: You could also consider a UNIXSocket if both are running at the same time.
devoldmx has quit [Ping timeout: 252 seconds]
<asui> havenwood: it's for my statusbar. So theres only one process per time
sankaber has quit [Remote host closed the connection]
<havenwood> asui: Aha
kimegede has joined #ruby
Guest44491 has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
skweek has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
inteq has quit [Remote host closed the connection]
umgrosscol has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
<[k-> or just let the script handle itself
<[k-> sleep(30)
<[k-> (but this will be less easy to debug)
sankaber has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
<asui> That's a great idea.
<adaedra> note that if one occurence of a script take longer, you'll delay all next runs
Guest1234 has joined #ruby
<adaedra> if you count on your script to run exactly every 30s, not counting on run time, this is not the best idea
ksteck has joined #ruby
LiquidInsect has quit [Ping timeout: 265 seconds]
sankaber has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dvarrui has joined #ruby
sankaber has joined #ruby
<asui> hmmm good point.
<[k-> exaxtly every 30s is impossible in any case
<[k-> we all know time is the most difficult thing to handle
mistermocha has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
`tim` has joined #ruby
<[k-> you could spawn a new thread every 30s though, let the main thread have a main loop, which creates a new thread and sleeps 30s
_blizzy_ has quit [Ping timeout: 265 seconds]
allcentury has quit [Quit: WeeChat 1.2]
<asui> then I cant use this :( the script should show stocks points so there shouldn't be to much delay
charliesome has quit [Ping timeout: 250 seconds]
<adaedra> Just add persistance by a file
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> If what stops you is disk writes, mount a tmpfs and write in it
<adaedra> (it's not persistant across reboots tho)
<[k-> there would be a delay spawning a Ruby process each time, and IO takes time too :)
<adaedra> ?
<asui> sounds good. I can use /tmp for that.
ruurd has joined #ruby
<asui> [k-: sure there's always a little delay in everthing. But if I use the non threaded variant I could get some trouble with the http request.
jgt has joined #ruby
Pupp3tm4_ has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
ruurd has quit [Quit: Bye]
bkxd has joined #ruby
ruurd has joined #ruby
<[k-> you could spawn a new thread every 30s though, let the main thread have a main loop, which creates a new thread and sleeps 30s
jessemcgilallen has joined #ruby
zenguy_pc has joined #ruby
<[k-> when the thread finishes, ruby will return the result
<[k-> and you can pass it on to the new thread
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<[k-> (fun fact: the passing of objects from one thing to another is called threading)
basiles has joined #ruby
<asui> I guess I'll code both - the threaded variant and the one using a file. Then I can test both and can learn even more ruby :D
CloCkWeRX has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 268 seconds]
<asui> Thanks everyone,
<adaedra> also, what should happen if a script takes more than 30s to execute?
leafybas_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
freezevee has quit [Remote host closed the connection]
<heftig> [k-: you can get very close to a 30s-interval, though, without any drift
cdg has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
dopamean_ has joined #ruby
<newdan> Say I want all the definitions in an .rb to be part of one module. Is there a way to do that without having the whole thing indented under a "module Foo" line? Maybe something similar to how Java's package keyword works?
<[k-> adaedra: then the runtime passes on the previous successful run
leafybasil has quit [Ping timeout: 244 seconds]
<[k-> (which is what your solution does as well)
bruno- has quit [Ping timeout: 240 seconds]
<adaedra> [k-: "should"
<[k-> what
<[k-> newdan, you don't have to indent in ruby, but you should
Zamyatin has joined #ruby
<[k-> module is only the universally recognised way to do this in ruby
sanjayu has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
some_one has joined #ruby
some_body has quit [Ping timeout: 246 seconds]
Guest1234 has quit [Ping timeout: 246 seconds]
DrCode has quit [Quit: ZNC - http://znc.in]
beauby has quit [Ping timeout: 272 seconds]
jtperreault has quit [Quit: WeeChat 0.4.1]
Emmanuel_Chanel has quit [Quit: Leaving]
Alayde_ has quit [Quit: WeeChat 1.1.1]
to_json has joined #ruby
<to_json> do people really use ruby version managers in production?
<adaedra> [k-: I'm not asking about what the current proposed solutions do, I'm asking about what asui expect it to do
<to_json> like, I'm sure some do, but is that like, a best practice sort of thing?
<adaedra> One like another
<adaedra> Depends on your needs I guess
Rickmasta has joined #ruby
shredding has joined #ruby
<heftig> to_json: i've seen deployment systems that package up ruby, gems and all, together with the project
roshanavand has quit [Remote host closed the connection]
Alayde has joined #ruby
<to_json> heftig: that's roughly what I was leaning towards, but I have devs arguing for rbenv in prod
Pupp3tm4_ has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
<to_json> I'm mostly trying to decide if it's a fight worth having or if I should just cede this one :-/
<adaedra> What are you? Sysadmin?
<heftig> just seems like another state to manage that can go wrong
kyle__ has quit [Ping timeout: 268 seconds]
shredding has quit [Client Quit]
<to_json> platform/'devops'
Pupp3tm4_ has joined #ruby
dravine has quit [Ping timeout: 244 seconds]
<hal_9000> to_json: “best practice” is a matter of opinion. i do think there should be *some* way to ensure/know what version is being used
peteykun has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
banister has joined #ruby
dravine has joined #ruby
Emmanuel_Chanel has joined #ruby
<to_json> trufax hal_9000
<newdan> to_json: I think if you're going to package up the Ruby version anyway then rbenv would be redundant. That said, if you're *not* packaging up Ruby in some kind of .deb or the like, then yes I'd use rbenv
<newdan> In general you want everything to be as locked down/predictable as possible when you deploy
<to_json> they already use project specific .ruby-version files, but that could jsut as easily be used to calculate build-time rpm links
<adaedra> to_json: first of all, do the system-provided ruby is in the right version to deploy the app?
tesuji has joined #ruby
<to_json> adaedra: system ruby is not the right version
<to_json> newdan: we are fulfilling a mandate for all RPMs all the time
<adaedra> so it means you'll have to juggle between versions at some point
Pupp3tm4st3r has quit [Ping timeout: 240 seconds]
banister has quit [Read error: Connection reset by peer]
<to_json> adaedra: We're leaning towards 'immutable(ish) servers, so ideally we'd rebuild instead of juggle. that said, immutable is not a buisiness priority so yeah, we'll have to...
<adaedra> what I mean, is that at minimum you'll have system ruby and project ruby on the machine
<to_json> thanks for talking this through with me btw, folks. This is super helpful
<to_json> adaedra: troof
zotherstupidguy has quit [Ping timeout: 246 seconds]
zotherstupidguy has joined #ruby
Musashi007 has joined #ruby
<hal_9000> to_json: i’m personally not opposed to (e.g.) hardcoding a ruby path in a shell script
<newdan> Eh. If you're writing the deploy script you can just provide an absolute path to the right Ruby
<newdan> I mean I guess an extra rbenv wouldn't hurt but I don't see it as so critical if you're packaging up ruby in your RPM
chrissonar has quit [Remote host closed the connection]
jcoe has joined #ruby
<to_json> newdan: yeah, it's just more code on the server
<hal_9000> and btw you *could* write code to check versions of ruby and/or gems to ensure minimum requirements
<to_json> hal_9000: thats p much exactly what I proposed
n008f4g_ has joined #ruby
<to_json> the shell script pluss reading a .ruby-version file
shinnya has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
<to_json> yeah I think I'ma fight the conservative fight
troulouliou_div2 has joined #ruby
<to_json> thanks again adaedra hal_9000 newdan
beauby has joined #ruby
DrCode has joined #ruby
dravine_ has joined #ruby
<headius> good morning!
dravine has quit [Ping timeout: 264 seconds]
dravine_ is now known as dravine
some_one has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
prestorium has quit [Quit: Konversation terminated!]
bkxd has quit [Ping timeout: 268 seconds]
riotjone_ has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 268 seconds]
skade has joined #ruby
The_Phoenix has joined #ruby
skade has quit [Client Quit]
nertzy2 has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
howdoi has quit [Quit: Connection closed for inactivity]
nertzy has joined #ruby
blackmes1 has joined #ruby
kyle__ has joined #ruby
BTRE has joined #ruby
jayforsythe has joined #ruby
Channel6 has joined #ruby
<jayforsythe> Hi
shmilan has joined #ruby
<jayforsythe> I shmilan
<jayforsythe> Hi*
SenpaiSilver has quit [Quit: Leaving]
<shmilan> Hello, jayforsythe
devoldmx has joined #ruby
emilkarl has quit [Quit: emilkarl]
jayforsythe has quit [Client Quit]
michael_mbp has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
LiquidInsect has joined #ruby
emilkarl has joined #ruby
peteykun has joined #ruby
Kerber0s has joined #ruby
Porfa has quit [Quit: Porfa]
pawnbox has joined #ruby
Kerber0s has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 265 seconds]
grzegorz has joined #ruby
Xiti has quit [Quit: Xiti]
Kerber0s has joined #ruby
jenrzzz has joined #ruby
eminencehc has joined #ruby
emilkarl has quit [Client Quit]
Porfa has joined #ruby
Musashi007 has quit [Quit: Musashi007]
anisha has joined #ruby
I has joined #ruby
Xiti has joined #ruby
Xiti has quit [Client Quit]
I is now known as Guest99531
ndrei has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
jobewan has joined #ruby
axl_ has joined #ruby
sankaber has quit [Remote host closed the connection]
grzegorz has quit [Ping timeout: 268 seconds]
sankaber has joined #ruby
umgrosscol has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
polishdub has joined #ruby
gizmore has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
mary5030 has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
Rollabunna has quit [Remote host closed the connection]
popnfloss has left #ruby [#ruby]
DanKnox is now known as DanKnox[away]
ruurd has quit [Client Quit]
chouhoulis has joined #ruby
DanKnox[away] is now known as DanKnox
vdamewood has joined #ruby
SylarRuby has quit [Remote host closed the connection]
dravine has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
baroquebobcat_ has joined #ruby
dravine has joined #ruby
paulcsmith has joined #ruby
bruno- has joined #ruby
Alayde has left #ruby ["WeeChat 1.1.1"]
cball has quit [Ping timeout: 246 seconds]
jgt has joined #ruby
nanoz has joined #ruby
anisha has quit [Quit: Leaving]
paulcsmith has quit [Client Quit]
gregoriokusowski has joined #ruby
umgrosscol has joined #ruby
paulcsmith has joined #ruby
inteq has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tk__ has quit [Quit: ばいばい]
Pupp3tm4_ has quit [Remote host closed the connection]
ruurd has joined #ruby
UtkarshRay has joined #ruby
cschneid_ has joined #ruby
Zamyatin has quit [Ping timeout: 264 seconds]
<cajone> does anyone have any experience of using rbuic4 ie qt4 xml files -> ruby code, I seem to have an issue that rbuic4 is defaulting to KDE UI bindings?
leafybas_ has quit [Remote host closed the connection]
kwd has quit [Quit: kwd]
mistermocha has joined #ruby
leafybasil has joined #ruby
prateekp has quit [Quit: Page closed]
cball has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
Zamyatin has joined #ruby
krisquigley has quit [Remote host closed the connection]
karapetyan has joined #ruby
rippa has joined #ruby
nfk|laptop has quit [Remote host closed the connection]
Cyther has joined #ruby
eminencehc has quit [Remote host closed the connection]
ishikawa91 has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
eminencehc has joined #ruby
Xiti has joined #ruby
noethics has joined #ruby
Channel6 has quit [Ping timeout: 265 seconds]
Guest99531 has quit [Quit: Leaving]
Jardayn has joined #ruby
dopie has joined #ruby
yeshacker has quit [Ping timeout: 255 seconds]
blackmes1 has quit [Quit: WeeChat 1.3]
Asher has joined #ruby
mistermocha has joined #ruby
skade has joined #ruby
renier has joined #ruby
mistermo_ has joined #ruby
Xiti has quit [Client Quit]
krisquigley has joined #ruby
Xiti has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
dfinninger has joined #ruby
kimegede has quit [Quit: Leaving...]
Xiti has quit [Client Quit]
Motoservo has joined #ruby
riotjones has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
cantaberry has quit [Ping timeout: 260 seconds]
cantaberry has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
blackmesa has joined #ruby
bollullera has joined #ruby
jas02 has quit [Quit: jas02]
cschneid_ has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
bollullera has left #ruby [#ruby]
DexterLB has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 264 seconds]
balazs has quit [Ping timeout: 265 seconds]
aryaching has joined #ruby
rcvalle has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bkulbida has quit [Read error: No route to host]
rcvalle has quit [Client Quit]
DexterLB has joined #ruby
LMity has quit [Ping timeout: 255 seconds]
DoubleMalt has quit [Quit: Leaving]
<izzol> :(
<izzol> I have a problem with some small code.
<izzol> I'm getting undefined method `run'.
<izzol> Not sure why.
<adaedra> Because undefined is not a function.
<adaedra> (Sorry)
RobertBirnie has joined #ruby
jas02 has quit [Quit: jas02]
Hounddog has quit [Read error: Connection reset by peer]
rcvalle has joined #ruby
andikr has quit [Remote host closed the connection]
<adaedra> You're defining Chuj#run (instance method) but are calling Chuj.run (class method). Also, I suspect an end is missing.
Tempesta has quit [Ping timeout: 264 seconds]
<canton7> putting code inline in the class definition like that is probably not what you meant to do
<adaedra> Ah no, my bad
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 268 seconds]
balazs has joined #ruby
<adaedra> All ends are here
pandaant has quit [Quit: Lost terminal]
pandaant has joined #ruby
<adaedra> You need to have an instance of Chuj to call #run. When you write code in the class definition, you're in the scope of the class.
<izzol> hmm, yes you right
Tempesta has joined #ruby
<izzol> I have created def start and added that run inside and it's working now
ipstatic has left #ruby ["Bye"]
momo-reina has quit [Remote host closed the connection]
momo-reina has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
pwnd_nfsw has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
llua has joined #ruby
eminencehc has joined #ruby
<izzol> ehh, ok now I have undefined method `expect' :(
<adaedra> can you show your edits?
jenrzzz has joined #ruby
sepp2k has joined #ruby
eminencehc has quit [Remote host closed the connection]
<wnd> I think newer rspec only has expect, descrive and stufff only in (rspec) DSL and RSpec::method
[k- has quit [Ping timeout: 244 seconds]
balazs has quit [Ping timeout: 265 seconds]
paulcsmith has quit [Quit: Be back later ...]
<izzol> I think it's a problem somewhere else.
dfockler has joined #ruby
<izzol> When I'm executing it manually it works.
<izzol> but when I'm executing it from different file it's not :)
<izzol> hmm.
eminencehc has joined #ruby
paulcsmith has joined #ruby
brunto has quit [Ping timeout: 255 seconds]
Xiti has joined #ruby
dfinning_ has joined #ruby
dfinning_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
dfinning_ has joined #ruby
MrJoshua has joined #ruby
zenguy_pc has joined #ruby
<llua> hey, i have an multi-line string and would like to test if an file contains only that string. how should i go about doing that?
<Aria> Read the file, compare for equality?
michaeldeol has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
basiles has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
armyriad has quit [Quit: Leaving]
armyriad has joined #ruby
eminencehc has quit [Remote host closed the connection]
<llua> Aria: so, IO.readlines('file') == 'string'?
skade has quit [Quit: Computer has gone to sleep.]
<gregf__> >> "foo\nbar" == "foo\nbar"
<ruboto> gregf__ # => true (https://eval.in/449111)
DEA7TH has quit [Quit: DEA7TH]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
<wnd> IO.read(fn, needle.length) == needle ?
<Aria> ^
<Aria> That's a great way.
paulcsmith has quit [Quit: Be back later ...]
<jhass> well, that's "starts with" not "only" though
<wnd> just realised that. just add file size check.
mistermo_ has quit [Remote host closed the connection]
amclain has joined #ruby
<wnd> and mayhaps reuse the fd
justin_pdx has joined #ruby
eminencehc has joined #ruby
max_Q has joined #ruby
eminencehc has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
sanjayu has joined #ruby
mistermocha has joined #ruby
balazs has joined #ruby
eminencehc has joined #ruby
<wnd> File.open(fn, 'r'){|file| bytes = needle.length; file.size == bytes && file.read(bytes) == needle}
shredding has quit [Ping timeout: 255 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
nfk has joined #ruby
tomphp has quit [Ping timeout: 250 seconds]
atmosx has joined #ruby
eminencehc has quit [Remote host closed the connection]
mistermo_ has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
joonty has quit [Quit: joonty]
mistermocha has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
Lucky__ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
skweek has quit [Remote host closed the connection]
ramfjord has joined #ruby
hobodave has joined #ruby
basiles has joined #ruby
lucianosousa has joined #ruby
funkenstrahlen has left #ruby ["WeeChat 1.1.1"]
tkuchiki has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
senayar has quit []
sanjayu has quit [Ping timeout: 255 seconds]
yardenbar has joined #ruby
devoldmx has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
danman has quit [Client Quit]
diegoaguilar has quit [Ping timeout: 255 seconds]
shmilan has joined #ruby
dopamean_ has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
c0m0 has quit [Ping timeout: 264 seconds]
Entropy2 has joined #ruby
<Entropy2> why does everyone say ruby is slow
<Entropy2> also would jRuby be faster thanks to the JVM's JIT
baroquebobcat_ is now known as baroquebobcat
devoldmx has quit [Ping timeout: 240 seconds]
<chrisseaton> Entropy2: Ruby does seem pretty slow compared to implementations of other dynamic languages on common benchmarks
<chrisseaton> but whether that matters to you or not is a different question
woodruffw has quit [Read error: Connection reset by peer]
<Entropy2> chrisseaton, can I compile ruby to a single executable that is statically linked?
symm- has joined #ruby
<chrisseaton> Entropy2: not with any existing implementation I don't think think - except maybe Ruby Motion - but even if you did I don't think that would make it any faster
dvarrui has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 240 seconds]
woodruffw has joined #ruby
<Entropy2> chrisseaton, oh no this is for portability
<reaVer> ruby is mostly there for glueing
<reaVer> if you want performance, you create C modules
shoutsid has quit [Ping timeout: 268 seconds]
<reaVer> and then use those within ruby
<chrisseaton> reaVer: you have to admit it's a shame we have to do that though
Rollabunna has joined #ruby
jgt has joined #ruby
<reaVer> chrisseaton: no it isn't
lubarch has joined #ruby
<reaVer> ruby is a scripting language, making a scripting language perform is basically trying to produce an oxymoron
<reaVer> ruby has the flexibility it needs for high level coding
<Entropy2> reaVer, Javascript
<reaVer> and C has the robustness for low level coding
<Entropy2> V8
Steve_Jobs has joined #ruby
<Entropy2> so it's not a oxymoron
<chrisseaton> but we can't we have both that flexibility and performance?
<eam> Entropy2: v8 is not fast
<Entropy2> google wrote an entire JIT just to rip through javascript like it was ricepaper
shinnya has joined #ruby
<reaVer> chrisseaton: not to the extend the seperation of the two functions gives you
<Entropy2> eam, V8 is stupidly fast
<canton7> and how much did V8 cost to develop, I wonder? :P
diegoviola has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> Entropy2: it's fast "for a scripting language"
<eam> which is still very, very slow
<eam> there's really no comparison
eminencehc has quit [Remote host closed the connection]
<Entropy2> ASM is faster than C
<Entropy2> ;)
last_staff has joined #ruby
<reaVer> Entropy2: no it isn't
riotjone_ has joined #ruby
<Entropy2> reaVer, it is.
<eam> C essentially is an assembly language
<canton7> that's a non-statement. It depends on who wrote it, since there's no optimization with ASM
<reaVer> C translates to assembly, so it's basically the same thing
<Entropy2> no.
<Entropy2> Assembly is a high level language aswell
<reaVer> and while people used to be able to write more optimized code in asm than the c compiler would do, times have changed
<Entropy2> It boils down to OPTCODES
jpfuente_ has joined #ruby
symm- has quit [Client Quit]
<eam> Entropy2: the elements that impact speed are the ability to avoid work - languages with intrinsic abstractions cannot avoid certain types of overhead
<reaVer> oh boy, someone snapped and went full on troll
<canton7> Entropy2, you mean opcodes ;) and assembly is just shorthand for opcodes. It isn't a level above them
<canton7> yeah... troll alarm is wailing with now
<canton7> *right now
PaulCape_ has quit [Quit: .]
<eam> it's true that there are some abstractions tied to C -- for example function call overhead
<adaedra> I smell trolling
<Entropy2> Yea I'm a troll because I pointed out C doesn't boil to ASM
<Entropy2> >.>
<Entropy2> C boils to opcodes (Accidentally added a T last time, shoot me)
PaulCapestany has joined #ruby
<canton7> asm is basically just opcodes though - there's no abstraction
<eam> but the thing is, you can avoid those behaviors in C if you wish
<Entropy2> canton7, there is though
<reaVer> Entropy2: do you know what the difference in low level and high level coding is?
<Entropy2> yes
benlovell has quit [Ping timeout: 246 seconds]
<reaVer> prove it
<Entropy2> When speaking from the CPU's point of view eveyrthing is high level.
<eam> Entropy2: are you under the impression that x86 opcodes are the actual instructions executed by the CPU?
mark2 has quit [Remote host closed the connection]
<canton7> Entropy2, what is the abstraction which assembly gives you? :)
<eam> you know that x86 machine code itself is a high level interpreted language, right?
<Entropy2> Yes I know
<shevy> real programmers speak in machine code
<Entropy2> ASM -> OPCODES -> CPU Microcode
<Entropy2> C -> OPCODES -> CPU microcode
<adaedra> I smell off-topic
<reaVer> no
<shevy> I smell baguette!
Agent001 has joined #ruby
pietr0 has joined #ruby
<Entropy2> adaedra, my original question was about Ruby's performance.
<eam> adaedra: it's kinda on topic, we're talking about the intrinsic limitations of a language
<Entropy2> eam, we're not on topic
<shevy> yes, ruby is slower than C
<reaVer> C -> ASM -> w/e comes after it
<reaVer> and there's several executable formats around
eminencehc has joined #ruby
<Entropy2> shevy, but is the performance hit that bad that anything that needs high speed proccessing can't be done in Ruby?
mikecmpbll has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
<reaVer> C and C++ still compile to assembly and then compile that assembly to object code
<Entropy2> I'm not talking 40k connections a second
<shevy> I have no idea, it was never my complaint about ruby. I find it more annoying that the documentation is awful
riotjone_ has quit [Ping timeout: 250 seconds]
<Entropy2> shevy, I hear gems are amazing
<shevy> big companies who went the ruby-prototyping route, went on to re-write in java or C anyway
<adaedra> eam: it's on the line, I'd say.
<eam> adaedra: granted ;)
krisquigley has quit [Remote host closed the connection]
<reaVer> Entropy2: it's ill advised to build a quake4 engine in ruby for example
paulcsmith has joined #ruby
<Entropy2> shevy, say that in any other channel and see how many people argue java isn't used in enterprise ;)
<Entropy2> reaVer, ok
beauby has quit [Ping timeout: 240 seconds]
<reaVer> yet you could do something as simple as create a main loop that calls C modules that take care of the rendering and what not
<Entropy2> reaVer, that helps a lot
<shevy> well, they'd have to accept numbers and facts; twitter switched to java/scala once they had too high a traffic/response cost
<Entropy2> reaVer, so Ruby should be used more like a Glue code
<reaVer> the difference between low level languages and high level languages is really simple to explain
diegoaguilar has joined #ruby
<eam> twitter is also not in the business of strongly optimizing for efficiency
<Entropy2> shevy, don't worry, I worked a company that used Java for their payrolls and other applications they sold
<Entropy2> eam, Java can be quite efficient
<reaVer> with a high level language you say "Build me a car"
<canton7> or for stuff where speed of writing is more important for speed of importance
<eam> Entropy2: sure it can
<adaedra> shevy: that's exactly the thing: they changed when they hit the line
<canton7> *more important than
<reaVer> and with a low level language you tell it every step of the way how it should build a car
<canton7> ack I can't write
<shevy> they dumped ruby like that ex-girlfriend!
<canton7> or for stuff where speed of writing is more important than speed of performance
<adaedra> reaVer: and in germany, you can say: "Build a car that pass polution tests even if it's over the levels"
<reaVer> so the low level language allows you to optimize better
<Entropy2> ok I started a language war by accident
<reaVer> the high level language allows you to code faster
<shevy> adaedra hey... others cheated too :)
<Entropy2> guys
<reaVer> adaedra: indeed XD
<Entropy2> I just wanted to know how well ruby performs ; - ;
<adaedra> Entropy2: that's why you're tagged "troll"
basiles_ has joined #ruby
<eam> for anything but the largest scale deployments (and twitter isn't large) you'll generally have a bias toward safety and developer speed vs runtime speed
<adaedra> Such questions are often here to... well, this.
<Entropy2> adaedra, It wasn't my intention to start a language war.
<adaedra> Let's say it was.
<Entropy2> can someone answer me this. Ruby is good as a sort a glue code between multiple languages?
<adaedra> wasn't.
<shevy> Entropy2 well, it depends on who makes such a statement. if it is an old blog, it may refer to ruby 1.8.x; ruby past 1.8.x is a bit faster, and once matz is finished with mruby, then now we'll be talking!
<adaedra> How do I english.
<shevy> with french accent please adaedra
<Entropy2> shevy, So ruby is getting a performance boost?
ndrei has joined #ruby
<adaedra> shevy: Énglish.
<reaVer> I'm not trying to make this sound like a language war, Ruby has characteristics that allow you to be really productive at a superficial level
<Entropy2> Can I compile ruby into a single executeable for Linux?
<adaedra> Entropy2: there's more than performance that is important.
<reaVer> and C allows you to create stuff that is fast
tkuchiki has quit [Remote host closed the connection]
<chrisseaton> I really don't think it's true that a low level language always allows you to optimise better. In C you generally get what you ask for. If you call malloc, then heap will always be allocated. In Ruby you can ask it to allocate an Array on the heap, but the implementation can do something else instead - like allocate it on the stack.
<reaVer> the combination of the two essentially makes ruby fast
<shevy> Entropy2 sorta... there will be frozen strings in ruby 3.x era for instance, which will improve speed... also I still don't like that change :P
<Entropy2> reaVer, what about go :p
<Entropy2> frozen strings?
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yeah
benlieb has joined #ruby
<adaedra> String literals will be immutable by default.
<Entropy2> e.e
<Entropy2> So ruby is essentially becoming nim
<shevy> this is an old article http://tmm1.net/ruby21-fstrings/
cwong_on_irc has joined #ruby
<Entropy2> A pretty version of nim without a transpiler
cwong_on_irc has quit [Max SendQ exceeded]
SenpaiSilver has joined #ruby
<Entropy2> the reason I was interested in Ruby is JRuby
cwong_on_irc has joined #ruby
<shevy> and here was one discussion in ruby-core https://bugs.ruby-lang.org/issues/8579
<newdan> Entropy2: JRuby is slower than Java
basiles has quit [Ping timeout: 240 seconds]
<shevy> Java is verbose
zfez has joined #ruby
<shevy> we have all of our arguments ready now!
<adaedra> We're not talking about Java but JRuby
<reaVer> chrisseaton: just think about the fact that the fastest ruby interpreter is written in C, and understand the problem of what you said :p
<Entropy2> guys
<Entropy2> don't fight over java.
<Entropy2> I'm asking about JRuby
<newdan> Yes, I like Ruby more than Java, which is why I'm hanging out in #ruby. But JRuby is still slower than Java. I don't really understand the question I guess
baroquebobcat has quit [Quit: baroquebobcat]
<reaVer> I'm not fighting over java
<adaedra> Entropy2: running on JVM allows to benefit from optimizations in the JVM.
<reaVer> java is best left ignored
<Entropy2> adaedra, :)
<reaVer> in the middle of nowhere
basiles_ has quit [Ping timeout: 240 seconds]
<Entropy2> reaVer, I, i like java ; - ;
<adaedra> (You were asking for JRuby performance)
<newdan> Ruby performance is not great
<adaedra> It's ok
<reaVer> Entropy2: once you learn some real languages you will learn to hate it with a passion :p
<Entropy2> So if I write something with JRuby I can distribute it as a Jar
<headius> reaVer: the fastest ruby interpreter is not written in C
<Entropy2> reaVer, I've learned PHP and Java and beginning to learn C
<newdan> Entropy2: I believe so, check out the Warbler project
<Entropy2> reaVer, I hate all the boiler plates but love the JVM
<eam> reaVer: jruby is faster than mri in many areas
<reaVer> headius: what changed? :p
<eam> (and slower in some others)
<shevy> TIOBE says java is the best
<chrisseaton> reaVer: I think the fastest Ruby interpreter is my one - JRuby+Truffle which is written in Java, but I guess that's not something we can settle on IRC
oetjenj has joined #ruby
baroquebobcat has joined #ruby
<adaedra> Entropy2: also, if you want to compare ruby implementations, you can also look at rubinius.
<chrisseaton> reaVer: the next fastest is Topaz, which is written in Python
<newdan> newdan: In any case you can use JRuby API to write a Java class that starts JRuby, then package your Ruby scripts as JAR assets. But I think Warbler does some of that for you or something
<Entropy2> adaedra, how many implimentations are there
<headius> JRuby proper is usually faster than MRI and like chrisseaton says the truffle stuff is another level beyond that
<adaedra> Entropy2: many
<adaedra> some of them abandonned
beauby has joined #ruby
<adaedra> i.e. IronRuby
<headius> chrisseaton: well, rpython
<reaVer> eam: oh I'm sorry, I did kinda mean without infinite memory bloat :p
<headius> it's not like it's running on top of a python impl at runtime
<shevy> :>
<Entropy2> If you guys want to argue about a language argue about Turin
<Entropy2> Turing*
<Entropy2> and OpenTuring
<adaedra> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<headius> ?gals
<ruboto> I don't know anything about gals
<headius> of course not
<shevy> we shall simply accept the fact that ruby won't be the fastest language on earth
<eam> reaVer: well, the distinction highlights a key perspective: Do you want overall higher throughput while churning through huge piles of unoptimized code? Or do you need to minimize work in a smaller critical section?
<adaedra> it's not meant to
<adaedra> If you want performance, stick to C/C++
jessemcgilallen has joined #ruby
arescorpio has joined #ruby
SylarRuby has joined #ruby
<eam> java and other advanced abstract runtimes excel at the former, but can't really do the latter (where you'd use something like C)
sivsushruth has quit [Ping timeout: 240 seconds]
<adaedra> Ruby has advantages, but it's not speed
<eam> and C isn't good at the former unless you're willing to expend an unreasonable amount of developer time
<Entropy2> there's a GoLang to ruby transpilre.
<Entropy2> why?
<adaedra> Also, performance Ruby provides is often good enough.
sivsushruth has joined #ruby
roshanavand has quit [Remote host closed the connection]
<adaedra> Go ask the author
<Entropy2> I'm currently installing Coffeescript
ruurd has joined #ruby
<Entropy2> It makes Javascript less painful.
<adaedra> I wonder how it does that.
<headius> I'm currently making coffee
<headius> it makes life less painful
<adaedra> uhuh
dopamean_ has joined #ruby
<eam> irish it
shoutsid has joined #ruby
<adaedra> Want a virtual hug, headius?
<headius> I should swedish it and put in a shot of akavit
allcentury has joined #ruby
basiles has joined #ruby
<adaedra> Jaha
<eam> we were out at a mexican place and they had "mexican coffee" which had a shot of tequila -- at which point I reaized that <any ethnicity> coffee generally meant adding booze of some kind
zcreative has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
zcreative has quit [Client Quit]
paulcsmith has quit [Ping timeout: 260 seconds]
<headius> that sounds as bad as putting in akavit
<adaedra> Here coffee is just coffee
Porfa has quit [Quit: Porfa]
paulcsmith has joined #ruby
<eam> it was fantastic actually, they also added cinnamon
<headius> ruby and coffee are good together so I'm not offtopic
roshanavand has joined #ruby
<headius> ?coffee
<ruboto> here's a coffee, you seem to need it: ☕
<headius> ding
ruurd has quit [Client Quit]
<eam> I just drink drip coffee like a philistine
* Entropy2 hugs headius
symm- has joined #ruby
<Entropy2> it gets better
<Entropy2> We can get you a caffine IV
<headius> right next to my beer IV
djbkd has joined #ruby
<Entropy2> I'm drug free except caffine
niko has joined #ruby
<adaedra> Congrats
ruurd has joined #ruby
<adaedra> Personally, my drug is cat pictures
<Entropy2> when someone touches my coffee I will break their fingers.
<adaedra> ?cat
<ruboto> I don't know anything about cat
<Entropy2> ^
<Entropy2> cats
phutchins has joined #ruby
<Entropy2> ?cat
<ruboto> I don't know anything about cat
<Entropy2> ?ror
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<adaedra> Bad ruboto
axl_ has quit [Quit: axl_]
freezevee has joined #ruby
<shevy> havenwood also likes coffee
<pocketprotector> I've watched pretty much all of the videos on lynda regarding ruby. I am looking for projects and was thinking about immersing myself into ruby by rewriting my bash scripts and stopping the use of shell scripting all together.
bkxd has joined #ruby
yeshacker has joined #ruby
<pocketprotector> I'm looking for some more ideas on how to exercise my ruby skillz.
michaeldeol has joined #ruby
<ruurd> ?mew
<ruboto> I don't know anything about mew
<ruurd> ?grumpy
<ruboto> I don't know anything about grumpy
<ruurd> ?stupid ruboto
<ruboto> ruboto, I don't know anything about stupid
Porfa has joined #ruby
benlieb has quit [Quit: benlieb]
<adaedra> See you all, be nice
<shevy> pocketprotector yay \o/ down with shellscripts
rattatmatt has joined #ruby
jpfuente_ has joined #ruby
<shevy> pocketprotector start a logical route; start with methods; transition into classes lateron; then use modules too; then package stuff into gems even if you only want to use them locally
<shevy> the more you write the better you'll become
psy_ has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
psy_ has quit [Max SendQ exceeded]
<pocketprotector> methods are my favorite part of ruby so far
petricore has joined #ruby
psy_ has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
firstdayonthejob has joined #ruby
EllisTAA has joined #ruby
dfinning_ has quit [Remote host closed the connection]
lubarch has quit [Quit: leaving]
benlieb has joined #ruby
lubarch has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
Kendos-Kenlen has joined #ruby
[Butch] has quit [Remote host closed the connection]
stan has quit [Ping timeout: 264 seconds]
freezevee has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
<headius> eam: I drink keurig coffee, so you're a better person than I
<ishikawa91> hey @pocketprotector, check out project euler as well
rewzn has quit [Quit: WeeChat 1.1]
rewzn has joined #ruby
<eam> headius: I'm surprised you'd admit to such a heinous social faux pas
DanKnox is now known as DanKnox[away]
<Sam_Gerber> It will make you wish you had never seen the words "pandigital" and "prime"
shmilan has quit [Ping timeout: 246 seconds]
<headius> eam: I'm permanently on step one of my 12-step keurig addiction program
<eam> acceptance?
DEA7TH has joined #ruby
asui has quit [Quit: Leaving]
<headius> acceptance and admittance that keurig owns me rather than the other way around
kalusn has quit [Remote host closed the connection]
saddad has joined #ruby
<pocketprotector> ha. i am browsing the problems now
<headius> honestly though, I just don't like coffee that much
<headius> not enough to put more than keurig effort into it before fixing bugs in my ruby implementation so I'm not offtopic
<eam> me either, I just want some black bean soaked water to glug down before I need to turn my brain on
roshanavand has quit [Remote host closed the connection]
<headius> yeah, exactly
<eam> I used to swallow whole beans in the morning
hanmac has joined #ruby
<headius> I'd switch to tea if keurig water blasted out at boiling temps
<pocketprotector> you guys dont shoot it up?
<eam> pocketprotector: pack it in my gums like chaw
triangles2 has quit [Quit: Leaving]
<headius> chaw's awesome
<pocketprotector> is that like chaw chank redemption?
<headius> - a hockey-playing nimrod in my 9th grade calc class
Igorshp has quit [Remote host closed the connection]
shadoi has joined #ruby
<eam> I kinda want to buy a turkish coffee set, but I know it'll just take up space in my kitchen after the interest dies off
<pocketprotector> i am very happy with my hario drip set.
<eam> look at this, it's magic https://www.youtube.com/watch?v=Yy4yWPwba4o#t=32s
dionysus69 has joined #ruby
<headius> you peeps are lame, a whole weekend and only one good JRuby bug filed
<headius> I expected more of you
shmilan has joined #ruby
<headius> that's pretty awesome...I want to go to Turkey
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Entropy2 is now known as QuantumEntropy
QuantumEntropy is now known as QuantumGliTch
<Sam_Gerber> now may not be the best time
<eam> the middle east is fantastic, in no small part because they put cardamom in their tea
<shevy> a cardaemon?
<Sam_Gerber> spice
jgt has quit [Ping timeout: 255 seconds]
ruurd has quit [Quit: ZZZzzz…]
tomphp has joined #ruby
eminencehc has quit [Remote host closed the connection]
<Sam_Gerber> oh...i see. nice
<to_json> pocketprotector: http://exercism.io/
<eam> shevy: I bet you put a u in color
ramfjord has quit [Ping timeout: 250 seconds]
QuantumGliTch has left #ruby ["Leaving"]
<to_json> it's like project euler + code reviews
<shevy> eam yeah! british influence here in europe
<to_json> with a focus on being exceedingly pedantic and idomatic
apt-get has joined #ruby
<to_json> which sounds annoying AF but it's a decent wy to get more comfortable with the $LANG way of doing things
<Sam_Gerber> cool!
<pocketprotector> to_json: wow that is freakin cool!
bruno- has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
<headius> Sam_Gerber: yeah :-(
<to_json> here's a talk by the project creator where she talks in depth about why it exists and steps through an example problem (in ruby) to an almost unreasonable depth: https://www.youtube.com/watch?v=qLpvc5r6Bb0
craysiii has joined #ruby
<pocketprotector> i wish my computer had sound
<to_json> oh no!
<pocketprotector> ill have to email it to myself and watch it on my laptop
<to_json> dang, no CC either
Peg-leg has quit [Quit: Leaving.]
<pocketprotector> i can cc you if you want
<pocketprotector> or closed captions
<pocketprotector> =)
<to_json> the latter
<to_json> :)
<to_json> bu worse visuals
<to_json> awkward tradeoff
eminencehc has joined #ruby
<pocketprotector> i'll email it to myself =)
<Sam_Gerber> lol
JDiPierro has joined #ruby
tynamite has joined #ruby
<tynamite> Hi I have a problem
codeurge has joined #ruby
eminencehc has quit [Remote host closed the connection]
baweaver has joined #ruby
JDiPierro has quit [Remote host closed the connection]
bruno- has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
vdamewood has quit [Quit: Life beckons.]
joufflu has joined #ruby
riotjone_ has joined #ruby
`tim` has quit [Read error: Connection reset by peer]
<pocketprotector> yay sound
<ishikawa91> how did people like exercism.io? I have been meaning to try it out
dstarh has quit [Read error: Connection reset by peer]
phutchins has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
shoutsid has quit [Remote host closed the connection]
caliostro has joined #ruby
caliostro_ has joined #ruby
caliostro_ has quit [Read error: Connection reset by peer]
petricore has quit [Read error: Connection reset by peer]
riotjone_ has quit [Ping timeout: 256 seconds]
apt-get has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
ngscheur1 has joined #ruby
kobain has joined #ruby
jenrzzz has joined #ruby
tenderlove has joined #ruby
_aeris_ has quit [Ping timeout: 256 seconds]
pharaoh2 has joined #ruby
_aeris_ has joined #ruby
shoutsid has joined #ruby
[Butch] has joined #ruby
mozzarella has quit [Quit: WeeChat 1.2]
jenrzzz has quit [Ping timeout: 240 seconds]
petricore has joined #ruby
mozzarella has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
pocketprotector- has joined #ruby
ramfjord has joined #ruby
momo-reina has quit [Ping timeout: 244 seconds]
pawnbox has quit []
pawnbox has joined #ruby
saddad has quit [Ping timeout: 255 seconds]
yardenbar has quit [Ping timeout: 264 seconds]
gusTester has joined #ruby
krisquigley has quit [Remote host closed the connection]
gusTester has left #ruby [#ruby]
<pocketprotector> ?!!
<pocketprotector> ill have to figure out what the double !! is all about
zenguy_pc has joined #ruby
andersoldahl has joined #ruby
pandaant has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
axl_ has joined #ruby
andersoldahl has quit [Client Quit]
<hal_9000> pocketprotector: convert to Boolean
djbkd has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
tvw has quit []
basiles has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
basiles has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Client Quit]
zfez has left #ruby [#ruby]
djbkd has joined #ruby
jackjackdripper has joined #ruby
phutchins has joined #ruby
kalusn has joined #ruby
shoutsid has quit [Remote host closed the connection]
niemcu has joined #ruby
Musashi007 has joined #ruby
dfinninger has joined #ruby
Skelz0r has joined #ruby
solars has joined #ruby
yardenbar has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<pocketprotector> ahh!
tynamite has left #ruby [#ruby]
dfinninger has quit [Ping timeout: 256 seconds]
D-unit has joined #ruby
tynamite has joined #ruby
<tynamite> Hi I have a problem
eminencehc has quit [Remote host closed the connection]
<caliostro> what kind?
yardenbar has quit [Ping timeout: 272 seconds]
<tynamite> I'm trying to save the % symbol to the database and I'm getting an error saying it's the bad encoding. My html page is utf-8 and google chrome developer tools cannot interpret the %
<caliostro> maybe because % is a special character in sql
lucianosousa has quit [Quit: lucianosousa]
<caliostro> try to escape it, \%
lucianosousa has joined #ruby
shoutsid has joined #ruby
<tobiasvl> or %%
yeshacker has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
<tobiasvl> that's the way to escape it in actual sql
<tynamite> I'm using Sequel ORM so I expected that to escape it automatically.
<eam> or more importantly, use placeholders instead of string interpolation in your db query
yeshacker has joined #ruby
<tobiasvl> tynamite: not if it needs to be escaped in the sql itself, but it will probably escape the ruby string for you
timonv has joined #ruby
<caliostro> check the documentation of Sequel ORM
baweaver has joined #ruby
D-unit has quit [Quit: leaving]
Motoservo has quit [Ping timeout: 256 seconds]
<tobiasvl> sequel can't know if you actually want a special sql character or if you want a literal %, just like a ruby string can't escape for you
kalusn has quit [Remote host closed the connection]
gusTester has joined #ruby
kalusn has joined #ruby
<tynamite> But I'm saving content to a database, not writing queries.
skweek has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
shoutsid has quit [Remote host closed the connection]
<adaedra> re
jgt has joined #ruby
shoutsid has joined #ruby
<shevy> adaedra is back!
devoldmx has joined #ruby
<adaedra> Prepare for trouble!
mary5030_ has joined #ruby
beast has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
yardenbar has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Motoservo has joined #ruby
<djbender> pocketprotector: exercism is great.
benlieb has quit [Quit: benlieb]
yairgo has joined #ruby
yairgo has quit [Client Quit]
ericjphillips has joined #ruby
yairgo has joined #ruby
Cyther_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
Alina-malina has joined #ruby
baweaver has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
karapetyan has joined #ruby
Cyther has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
cdg has quit [Remote host closed the connection]
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
mary5030_ has joined #ruby
<pocketprotector> djbender: yeah it is!
bklane has joined #ruby
cdg has joined #ruby
riotjone_ has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
skweek has joined #ruby
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjone_ has joined #ruby
riotjone_ has quit [Remote host closed the connection]
riotjone_ has joined #ruby
benlieb has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
llua has left #ruby [#ruby]
mary5030_ has quit [Ping timeout: 256 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
shoutsid has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 264 seconds]
shoutsid has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
brunto has joined #ruby
riotjone_ has quit [Ping timeout: 256 seconds]
chouhoulis has quit []
Azure has joined #ruby
dfinninger has joined #ruby
<atmosx> Is the 'true' keyword needed here: https://gist.github.com/atmosx/7f5cb4d9c423cf4219a1 ?
karapetyan has joined #ruby
<hal_9000> yes
<shevy> I guess only if you need the return value
<jhass> atmosx: unless you want it to return nil that is
shoutsid has quit [Remote host closed the connection]
<atmosx> hm
<hal_9000> that is an implicit return value - without it, nil will be returned if nothing is raised
<atmosx> Nil will suffice I guess.
<hal_9000> it’s a little misleading perhaps
codecop has joined #ruby
shoutsid has joined #ruby
<jhass> something called check? raising at all is quite misleading
grzegorz has joined #ruby
<hal_9000> yes true
<atmosx> jhass: I need to rename the method then
mary5030 has quit [Ping timeout: 260 seconds]
timonv has quit [Ping timeout: 265 seconds]
<atmosx> jhass: or did you mean something else? I should not raise there?
hobodave has quit [Quit: Computer has gone to sleep.]
<jhass> I'd start by getting rid of those modifer-unless'es, way too long line
eikood has joined #ruby
diegoaguilar has quit [Ping timeout: 265 seconds]
<atmosx> I used if's/elses it turns into a 6 line method
<atmosx> I though it was easier to read that way..
tynamite has left #ruby [#ruby]
<atmosx> but that's easy.
<jhass> a better name might be ensure_compatibility or something
<atmosx> ah nice call
ericjphillips has quit [Quit: Leaving.]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<atmosx> and I'll remove the '?' since I don't want this to return 'true'.
<caliostro> i don't like raise exception, just return true/false
<jhass> or ensure_runnable though that's vague, perhaps two, ensure_platform and ensure_setup
ericjphillips has joined #ruby
_blizzy_ has joined #ruby
<atmosx> jhass: ensure_setup is the best probably
<atmosx> caliostro: why? wha tis the difference?
podman has joined #ruby
mary5030 has joined #ruby
<caliostro> raising exception is a side effect, i prefer functional programming
<jhass> this is a CLI tool?
grzegorz has quit [Ping timeout: 255 seconds]
<atmosx> jhass: yes
mary5030 has quit [Read error: Connection reset by peer]
<jhass> I'd go with Kernel#abort then
<atmosx> jhass: I'm rewriting it and I'd like to follow best practices
<atmosx> jhass: Kernel#abort ? hm
<atmosx> jhass: will that work with all unices?
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pocketprotector> meh best practices
sankaber has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<jhass> sure it's just a wrapper around Kernel#exit and Kernel#warn
<atmosx> jhass: cool
sankaber has joined #ruby
pwnd_nsfw has joined #ruby
shoutsid has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
shoutsid has joined #ruby
Agent001 has left #ruby [#ruby]
Kendos-Kenlen has joined #ruby
djbkd has quit [Remote host closed the connection]
darkf has quit [Quit: Leaving]
djbkd has joined #ruby
diegoaguilar has joined #ruby
basiles has joined #ruby
bkxd has joined #ruby
tmtwd has joined #ruby
some_body has joined #ruby
<some_body> .tap is really slow
Kendos-Kenlen has quit [Quit: Konversation terminated!]
Kendos-Kenlen has joined #ruby
Kendos-Kenlen has quit [Client Quit]
bkxd has quit [Ping timeout: 250 seconds]
bungoman has joined #ruby
chouhoulis has joined #ruby
stamina has quit [Ping timeout: 250 seconds]
brunto has quit [Ping timeout: 256 seconds]
brunto has joined #ruby
some_body has left #ruby [#ruby]
tmtwd has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 250 seconds]
fxck has joined #ruby
krisquigley has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> caliostro: You're going to have a fun time with ruby then. Also, your code will be rather confusing for rubyists and anyone who doesn't share your understanding of the meanings of true and false.
ramfjord has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> caliostro right but then you have only "true" and "false", false to indicate error; even in C you have exit with different exit status odes
lubarch has quit [Ping timeout: 250 seconds]
RobertBirnie has joined #ruby
<caliostro> thanks for suggestion
maxmanders_ is now known as maxmanders
yeshacker has quit [Ping timeout: 268 seconds]
platzhirsch has left #ruby [#ruby]
krisquigley has quit [Ping timeout: 264 seconds]
rlv has joined #ruby
<rlv> Why does this return nil instead of "value"? https://eval.in/449169
<caliostro> in bash scripting you don't raise exception, just return exit code, sometimes masked together
<caliostro> but i not an IT specialist
bklane has quit []
<pipework> rlv: pop destructively modifies the array.
<jhass> caliostro: existence is no proof for superiority or idiomatic code
<caliostro> btw if you prefer raise exceptions, good luck
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<eam> well, most people set -e which does cause a non-zero exit code to raise
<eam> in bash
<pipework> caliostro: They're useful if you use them for what they're intended to be used for.
<rlv> pipework: Yes. The array is modified in the hash as well. So both arrays are still essentially the same, but why does it not return "value"?
<caliostro> may be, i came from java, so here comes my dislike for exception programming
<pipework> rlv: 'both' is actually the same array.
<pipework> Sorry, I think I'm reading it wrong.
roshanavand has quit [Remote host closed the connection]
<pipework> I'm in the middle of security bug fixing.
<shevy> pipework you mean you hold a pumpgun in your hand?
<shevy> No pasarán!
<pipework> shevy: I'm not sure what that means, but it seems to indicate that it's of an adult nature, so probably not.
<jhass> rlv: run h.rehash
djbkd has quit [Remote host closed the connection]
<jhass> the pop modifies the array so it modifies its hash value
<rlv> jhass: hash is still the same and the keys are still equal so shouldn't it work
lucianosousa has quit [Quit: lucianosousa]
<rlv> jhass: ?
roshanavand has joined #ruby
<pipework> The object_id is the same for the hash as well.
<jhass> rlv: you recompute the hash of the modified array in both cases, the hash structure still uses the old hash though
<fxck> rlv: the same object is in the hash
<fxck> you need .dup
<jhass> rlv: do you know how hash is implemented?
beauby has quit [Ping timeout: 240 seconds]
<jhass> how the datastructure works?
maletor has joined #ruby
<rlv> jhass: Internally? Not really.
<jhass> rlv: kay, might help if we explain it
kadoppe has quit [Ping timeout: 244 seconds]
<jhass> rlv: a hash works by defining an array buckets, so you have bucket 0, bucket 1, bucket 2...
Kerber0s has quit [Ping timeout: 268 seconds]
<jhass> each bucked is a linked list of hash values
gusTester has quit [Quit: Leaving.]
<jhass> *bucket
Coldblackice_ has joined #ruby
jcoe has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> the bucket is chosen by using the keys hash % number_of_buckets
Osc has joined #ruby
basiles has quit [Ping timeout: 250 seconds]
twistedpixels has quit [Ping timeout: 240 seconds]
<jhass> then on lookup the linked list of that bucket is iterated and eql? is used to find the actual entry
kadoppe has joined #ruby
gusTester has joined #ruby
<Osc> How do I chain a select and each for an array?
<pipework> Osc what have you tried?
<jhass> rlv: so if you do something that changes keys hash, you would be lucky to hit the same bucket again
<pipework> Have you considered #each, and using next in the block?
<Osc> Is that the ruby way? Very new to ruby
<pipework> Osc: If I'm understanding you correctly.
<jhass> rlv: rehash recomputes all key hashes and puts the entries into the right buckets
<Osc> I've tried data[api].paths.select{ |path| path.take(1).take(1).tags.include?(tag.name)}.each do |path|
WizJin has quit [Remote host closed the connection]
<pipework> You have something enumerable, and you want to do something to a subset of the enumerable, right?
<zotherstupidguy> what does this line do? bundle install --path vendor/cache
<Osc> pipework:Yeah
<pipework> zotherstupidguy: did you read the docs or try it?
<zotherstupidguy> pipework nope,
<pipework> Osc: data[api].paths.each { next unless path.take(1).take(1).tags.include?(tag.name); other_part }
<rlv> jhass: What do you mean by hash % number_of_buckets/
<rlv> ?*
<pipework> zotherstupidguy: sounds like something worth investigating
devoldmx has joined #ruby
<jhass> rlv: that's modulo, do you know modulo?
<rlv> jhass: Oh right. Okay.
<Osc> pipework: So no chaining?
<pipework> Osc: None necessary.
pharaoh2 has joined #ruby
<Osc> pipework: Don't I need to name path?
<Osc> in next unless path.
jamesaxl has joined #ruby
<pipework> Osc: data[api].paths.each {|path| next unless path.take(1).take(1).tags.include?(tag.name); other_part }
lucianosousa has joined #ruby
<pipework> sorry, forgot the block variable.
<jhass> I prefer the select variant myself actually
<pipework> You're just #each'ing over all paths and nexting over the ones that don't fit the condition.
<pipework> jhass: Why? Seems like a waste.
<Osc> and other_part would be "do"?
bender_unit has joined #ruby
<jhass> pipework: more expressive, harder to miss
shinnya has quit [Ping timeout: 255 seconds]
twistedpixels has joined #ruby
<pipework> Osc: It'd be what you want to happen to a path that you want to do something with.
<pipework> jhass: I can see how someone would want that, but I'm a fan of matz's style here with preferring loops and next and the such.
<jhass> greater chance of a block being responsible for a single thing
mloy_ has quit [Quit: Leaving]
<Osc> And if I want a block there?
<pipework> It might be that the enumerable object is rather expensive.
Igorshp has joined #ruby
<pipework> Osc: Don't want a block there, just put the contents of what the previous block used to be in there.
mloy has joined #ruby
mloy_ has joined #ruby
rlv has quit [Quit: Page closed]
gregoriokusowski has quit [Quit: gregoriokusowski]
<Osc> pipework: It's in a erb template
stamina has joined #ruby
<pipework> Osc: Can you show me all the relephant code?
mloy_ has quit [Client Quit]
<jhass> Osc: so keep in mind it's just pipework's opinion, choose the style you prefer ;)
rlv has joined #ruby
<pipework> Osc: Keep in mind that the select then the each is unnecessarily expensive just for eye candy.
<rlv> jhass: Are symbols looked up in the hash the same way?
<jhass> Osc: if it's in a template you probably should pass the already filtered list to the template
devoldmx has quit [Ping timeout: 272 seconds]
sebstrax has quit [Quit: Connection closed for inactivity]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> rlv: yes, the trick for symbols is that their .hash is a very cheap operation based on their .object_id which is based on their pointer address internally
codeurge has joined #ruby
<pipework> "my style" is also more in line with the preferences of the language creator, so there's that.
Osc has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jhass> rlv: and eql? being a simple pointer compare
baweaver has joined #ruby
jenrzzz has joined #ruby
yairgo has quit [Quit: yairgo]
kristofferR has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
beauby has joined #ruby
<rlv> jhass: So eql? for symbols just compares the object ids?
<jhass> rlv: basically, yes
atmosx has quit [Quit: computer went to sleep...]
codecop has quit [Remote host closed the connection]
<rlv> jhass: Alright.
dtscode is now known as DeerGod
ndrei has quit [Ping timeout: 255 seconds]
DeerGod is now known as [cpp]DeerGod
roshanavand has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 252 seconds]
phutchins has quit [Ping timeout: 250 seconds]
ericjphillips has quit [Quit: Leaving.]
allcentury has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
aryaching has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
roshanavand has joined #ruby
nateberkopec has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
bender_unit has quit [Ping timeout: 240 seconds]
codeurge has quit [Ping timeout: 252 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
Kendos-Kenlen has joined #ruby
karapetyan has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
dcarmich has joined #ruby
karapetyan has joined #ruby
<pocketprotector> an idea occured to me.
<pipework> Quic, duck and cover!
<pocketprotector> time to sysadmin the hell out of that
<pipework> neat
<pocketprotector> aint it?
<pipework> oh it's not yours?
<pipework> whatcha gonna do with it?
jessemcgilallen has quit [Ping timeout: 256 seconds]
<pocketprotector> going to store src and destinations as hashes
riotjones has quit [Ping timeout: 250 seconds]
<caliostro> Do u need to syncronize remote directory?
<pipework> I would assume he has some interest in it.
<pipework> Or she.
<pocketprotector> its a he
<caliostro> what is the amount of data ?
<pocketprotector> and i totally do =) I want to make one tool instead of scripting it with bash
<pocketprotector> A lot.
<pocketprotector> more than 10TB
<pocketprotector> But I also have some smaller chunks, too
<caliostro> may be rsync is the preferred way
yairgo has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
<pocketprotector> could also modify this bad boy to support rsnapshot with scheduling. ooooo
Kerber0s has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
balazs has quit [Ping timeout: 265 seconds]
<pipework> jhass: I'm aware, I just kept referring to pocketprotector as if they were the author of the library.
* pipework is a native English speaker
<pocketprotector> sorry i didn't make that clear
<pipework> pocketprotector: Not your fault, it was my mistake.
diegoaguilar has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
tmtwd has joined #ruby
roshanavand has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
phutchins has joined #ruby
ndrei has joined #ruby
ruurd has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
basiles has joined #ruby
timonv has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
synthroid has joined #ruby
ruurd has joined #ruby
baweaver has joined #ruby
blue_deref has joined #ruby
tomphp has joined #ruby
axl__ has joined #ruby
pwnd_nsfw has joined #ruby
ruurd has quit [Client Quit]
ruurd has joined #ruby
axl_ has quit [Ping timeout: 246 seconds]
axl__ is now known as axl_
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
solocshaw has joined #ruby
zenguy_pc has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-438-e879203 - http://znc.in]
dcunit3d has joined #ruby
cdg has joined #ruby
synthroid has quit []
diegoaguilar has joined #ruby
p0wn3d__ has quit [Ping timeout: 240 seconds]
twistedpixels has quit [Ping timeout: 252 seconds]
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marsjaninzmarsa has joined #ruby
balazs has joined #ruby
diegoviola has joined #ruby
pharaoh2 has joined #ruby
hobodave has joined #ruby
fxck has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
basiles has quit [Ping timeout: 240 seconds]
[cpp]DeerGod has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
baweaver has quit [Remote host closed the connection]
marsjaninzmarsa has quit [Client Quit]
twistedpixels has joined #ruby
tmtwd has quit [Ping timeout: 268 seconds]
marsjaninzmarsa has joined #ruby
baweaver has joined #ruby
rlv has quit [Quit: Page closed]
mistermocha has joined #ruby
leafybas_ has joined #ruby
basiles has joined #ruby
dfockler has quit [Quit: Leaving]
mistermo_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
spcmastertim has quit [Ping timeout: 252 seconds]
Bellthoven has quit []
eminencehc has joined #ruby
bkxd has joined #ruby
scripore has joined #ruby
djbkd has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
leafybasil has quit [Ping timeout: 256 seconds]
Kerber0s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
leafybas_ has quit [Ping timeout: 268 seconds]
Dopagod has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 240 seconds]
<shevy> code code code
<shevy> hands up who here has a static variant of ruby
<craysiii> i don't even know what that means..
bkxd has quit [Ping timeout: 272 seconds]
petricore has joined #ruby
<shevy> so that the ruby binary won't have linked in dependencies such as libgmp.so.10
speakingcode has joined #ruby
naftilos76 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<craysiii> what is the advantage of that? not having to handle deps?
<craysiii> anything else?
<shevy> not breaking ruby if one of the other components break for instance
<pipework> All the benefits of static linking, I guess.
<pipework> Who here just recompiles if their linked libraries stop working? \o
<shevy> if you can still recompile!
<pipework> Why shouldn't I be able to?
<pipework> I don't use 1.8
<shevy> how do you upgrade?
<shevy> no, your system, not just ruby
<pipework> shevy: install a new ruby.
<shevy> how
`tim` has joined #ruby
<shevy> and not just ruby - your system
<pipework> shevy: brew or apt-get, usually.
<pipework> It's only broken for me that way twice.
phutchins has quit [Ping timeout: 244 seconds]
decoponio has quit [Quit: Leaving...]
<shevy> yeah but I guess you have to wait until e. g. ruby gets packaged
<adaedra> and?
<adaedra> still better than static compiling of everything.
caliostro has quit [Quit: Exit-Chat]
syath has quit [Quit: WeeChat 1.2]
scripore has quit [Quit: This computer has gone to sleep]
<shevy> you have to wait
<shevy> and you don't have to compile "everything" statically, who ever wrote that?
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> otherwise you're still stuck with what seemed to be the problem you want to avoid above.
<shevy> how so
<noethics> how do you contribute to ruby
<jhass> write a patch, submit it
DEA7TH has quit [Quit: DEA7TH]
yfeldblum has joined #ruby
<noethics> is the functionality of .to_json intentional?
<noethics> wonder if they want some coad
<adaedra> what?
<noethics> adaedra, it doesn't introspect the object
northfurr has joined #ruby
ericjphillips has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
pharaoh2 has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
kidoz has joined #ruby
<adaedra> surely to not expose internals by default
Musashi007 has quit [Quit: Musashi007]
<noethics> adaedra, YAML::dump on the other hand does
<adaedra> YAML has support for objects though
<noethics> right..
<noethics> "yaml has support for it" but "json doesn't because it doesn't wanna expose intenrals"?
<adaedra> dunno
<jhass> "because the standard has no way of representing them"
<adaedra> that's only guesses, at this level
<noethics> jhass, hm?
Osc has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
<noethics> jhass, not sure what this is meant to show
<noethics> if there is an all-encompassing json serializer in java i'm pretty sure ruby can make it work
bruno- has joined #ruby
DEA7TH has joined #ruby
<adaedra> there's the "can we" and the "should we"
<noethics> his point was the "can we"
<noethics> i think
<noethics> anyway no biggie i started working on a port of YAML::dump to json, was just looking where i could submit it
<noethics> thanks!
ndrei has joined #ruby
<adaedra> and how will you represent the class names, what jhass showed you?
riotjones has joined #ruby
<noethics> serializing to a lower order format has loss of data, inevitably
diegoviola has quit [Changing host]
diegoviola has joined #ruby
BSaboia has joined #ruby
<adaedra> maybe that's why json encoder tried to avoid
<adaedra> what*
<noethics> maybe, but it's pretty much useless as is
<adaedra> it is?
<noethics> hyperbole obviously :P in terms of marshalling an arbitrary object, yes
<noethics> it is utterly useless
<ramfjord> Hey @here - we have a bizarre practice at my company where we package everything into rpm's. Occasionally I run into issues with dynamically linked .so files being in different places in the production vs. build environment. Does anyone know of a way to perhaps statically link all .so files when installing gems through bundler?
<adaedra> Because JSON is not for marshalling an object
baweaver has quit [Remote host closed the connection]
<noethics> i marshal and unmarshal objects all the time in other languages
<noethics> (via json)
axl_ has quit [Quit: axl_]
<noethics> even if it dumped the object as a hash wold be sufficient
<adaedra> What a great argument, "other languages do it"
<noethics> yeah, that's pretty much the only way to bring context to language features
mary5030 has quit [Remote host closed the connection]
<noethics> ruby isn't special in this regard anyway
riotjones has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
beauby has joined #ruby
scripore has joined #ruby
grzegorz has joined #ruby
finisherr has joined #ruby
Osc has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Osc has joined #ruby
<Osc> Thanks for earlier. Had to rush
Osc has quit [Client Quit]
rakm has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
solars has quit [Ping timeout: 264 seconds]
sankaber has quit [Read error: Connection reset by peer]
grzegorz has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit []
fastAndSlow has joined #ruby
gregoriokusowski has joined #ruby
<jhass> ramfjord: you can't statically link an .so, you need an .a or an .o
khebbie has joined #ruby
<shevy> :)
timonv has quit [Ping timeout: 240 seconds]
tesuji has quit [Ping timeout: 256 seconds]
Igorshp has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Eiam_ has joined #ruby
nanoz] has joined #ruby
Musashi007 has joined #ruby
ericjphillips has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 264 seconds]
ruurd_ has joined #ruby
Igorshp has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
allcentury has quit [Ping timeout: 244 seconds]
nanoz has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
David27 has joined #ruby
niemcu has quit [Ping timeout: 264 seconds]
krisquigley has joined #ruby
ruurd has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shredding has joined #ruby
mistermocha has quit [Remote host closed the connection]
dcunit3d has quit [Remote host closed the connection]
<darix> ramfjord: you are doing something wrong when you run into differences there
dcunit3d has joined #ruby
northfurr has quit [Quit: northfurr]
scripore has quit [Quit: This computer has gone to sleep]
krisquigley has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
zotherstupidguy has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
crdpink has joined #ruby
marsjaninzmarsa has joined #ruby
mistermocha has joined #ruby
scripore has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
mistermocha has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
baweaver has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
leafybasil has joined #ruby
niemcu has joined #ruby
tier has quit [Remote host closed the connection]
cstrahan has quit [Ping timeout: 240 seconds]
gyre007 has quit [Ping timeout: 250 seconds]
avdi has quit [Ping timeout: 250 seconds]
MiracleBlue has quit [Ping timeout: 246 seconds]
lipoqil has quit [Ping timeout: 264 seconds]
vcoinminer has quit [Ping timeout: 264 seconds]
pizzaops has quit [Read error: Connection reset by peer]
tonini has quit [Ping timeout: 240 seconds]
manveru has quit [Read error: Connection reset by peer]
rfv has quit [Ping timeout: 256 seconds]
ELCALOR has quit [Ping timeout: 256 seconds]
cek has quit [Read error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
deimos_ has quit [Read error: Connection reset by peer]
skmp has quit [Ping timeout: 252 seconds]
nyandoge has quit [Ping timeout: 250 seconds]
kellabyte has quit [Ping timeout: 250 seconds]
cardoni has quit [Ping timeout: 256 seconds]
alxndr has quit [Ping timeout: 252 seconds]
halfdan has quit [Ping timeout: 268 seconds]
bb010g has quit [Ping timeout: 264 seconds]
bryancp has quit [Ping timeout: 250 seconds]
bcavileer has quit [Ping timeout: 252 seconds]
zzak has quit [Ping timeout: 246 seconds]
pfg has quit [Ping timeout: 264 seconds]
hellschreiber has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
chrisseaton has quit [Ping timeout: 268 seconds]
charles81 has quit [Ping timeout: 268 seconds]
beauby has quit [Ping timeout: 240 seconds]
tejasmanohar has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
Musashi007 has quit [Quit: Musashi007]
devoldmx has joined #ruby
n1ftyn8_ has quit [Ping timeout: 256 seconds]
bjeanes has quit [Read error: Connection reset by peer]
<BraddPitt> is there anything *wrong* with defining an class method in a module?
scripore has joined #ruby
<havenwood> BraddPitt: It'd be a module method then not a class method. :P
<jhass> ruby even provides a helper for it
yardenbar has quit [Ping timeout: 264 seconds]
<jhass> &ri Module#module_function
ndrei has joined #ruby
<adaedra> BraddPitt: you mean `def self.`? No, totally normal.
* adaedra pets `derpy
adambeynon has quit [Ping timeout: 256 seconds]
* havenwood tries to remember to use derpy in the mysterious future
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<jhass> you mean when the new ruboto replaces it? :P
<BraddPitt> but still calling it like Module.method
<BraddPitt> or should I just create a class inside of it? I'm not sure if what I'm doing in considered proper
chipotle has joined #ruby
<adaedra> jhass: should be some time before that.
<jhass> if you never make an instance a module is preferred even
<BraddPitt> perfect
<adaedra> havenwood: it's okay, it's only here for testing technically.
<jhass> adaedra: I found "mysterious future" quite fitting
<adaedra> it is.
<BraddPitt> also, jhass is #module_function, self.method and extend self essentially doing the same thing? Granted, extend self applies to all methods in the module
ishikawa91 has quit [Ping timeout: 240 seconds]
newdan has quit [Ping timeout: 246 seconds]
<jhass> no
<shevy> BraddPitt there is private versus public difference
VeryBewitching has joined #ruby
<BraddPitt> ah
devoldmx has quit [Ping timeout: 260 seconds]
<EasyCo> Is there any difference between explicitly defining symbol as method params vs not? i.e: def my_method(:param1, :param2) VS def my_method(param1, param2)
Pumukel has joined #ruby
djbender has quit [Ping timeout: 264 seconds]
schaary has quit [Ping timeout: 264 seconds]
<jhass> module_function copies the method to the singleton class and makes the original private, extend self adds the module to the ancestor chain and def self defines it directly in the singleton class
rlv has joined #ruby
Pumukel has quit [Client Quit]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<rlv> Can someone explain this: https://eval.in/449218
<jhass> EasyCo: the former should be a syntax error
<shevy> EasyCo yeah. only one of those two will work
<BraddPitt> rlv `a` only lives in the scope of that first loop
solocshaw has quit [Ping timeout: 240 seconds]
khebbie has quit [Ping timeout: 250 seconds]
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> rlv: there's not much to explain, you found a semantic difference between the two and a reason for why for is discouraged
<rlv> BraddPitt: Then this should apply to the latter case as well.
basiles has joined #ruby
<jhass> rlv: it works as defined
<BraddPitt> rlv closures versus loops
<BraddPitt> in the first, a is in a closure
<EasyCo> jhass, shevy: Gahhh, thanks. I completely misread this code snippet. My bad. Thanks.
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-438-e879203 - http://znc.in]
<BraddPitt> thanks jhass, i'll read up more on all of those approaches
benlieb has quit [Quit: benlieb]
<jhass> BraddPitt: module_function is what core modules like Kernel do
<havenwood> rlf: pretend `for` doesn't exist
<jhass> or Math
hobodave has quit [Quit: Computer has gone to sleep.]
<adaedra> mh, I wonder
benlieb has joined #ruby
<adaedra> &ri Kernel#open Kernel.open
<jhass> havenwood: them tab skills
skweek has quit [Quit: Leaving]
<adaedra> ah
<BraddPitt> I like the idea of copying the method to an eigen class and keeping the original private
<rlv> jhass: But I thought the for..in syntax was just syntactic sugar for the each iterator?
<jhass> rlv: well, not just
<havenwood> jhass: oops!
skweek has joined #ruby
<adaedra> ?coffee havenwood
<ruboto> havenwood, here's a coffee, you seem to need it: ☕
<jhass> rlv: it uses that internally but there's this semantic difference
lea has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
<havenwood> adaedra: Not sure there's any amount of coffee that can wake me today.
sepp2k has quit [Ping timeout: 260 seconds]
<havenwood> rlv: Don't use for.
uber has quit [Ping timeout: 250 seconds]
<EasyCo> Actually what I saw was a class definition like: class MyClass < SomeClass.new(:param1, :param2)
<havenwood> Look, right nick! Can I have a cookie to go with my coffee?
<EasyCo> I've never seen that before, what's the intent there?
<havenwood> EasyCo: Struct
<adaedra> ?cake havenwood
<ruboto> havenwood, here's your cake:
<jhass> EasyCo: that's just passing the symbols to the method .new of SomeClass
paulcsmith has quit [Quit: Be back later ...]
t3rm has joined #ruby
beauby has joined #ruby
<jhass> EasyCo: and in the case of Struct.new an antipattern, use MyClass = Struct.new(:param1, :param2)
basiles has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
sepp2k has joined #ruby
roshanavand has quit [Remote host closed the connection]
<jhass> but it's just a call, not a definition
<rlv> variables defined insided while, until and for are visible outside. why?
marsjaninzmarsa has joined #ruby
<jhass> because. they're defined to not create a new scope and so they don't
<rlv> jhass: So only blocks, classes, and modules create new scopes?
<jhass> and the stabby lambda literal, yes
LMity has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
<jhass> if I had to speculate on the motivation of defining them so, it's because it's quite useful for if and case to not do so and the loops got it for consistency with them
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has quit [Remote host closed the connection]
riotjone_ has joined #ruby
Rickmasta has joined #ruby
phutchins has joined #ruby
dfinninger has quit [Remote host closed the connection]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
inteq has quit [Quit: Leaving]
dfinninger has joined #ruby
chouhoul_ has joined #ruby
baweaver has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
riotjone_ has quit [Ping timeout: 256 seconds]
cornerma1 has joined #ruby
ruurd_ has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
dcunit3d has quit [Remote host closed the connection]
dikaio has joined #ruby
weaksauce has joined #ruby
nateberkopec has joined #ruby
`tim` has joined #ruby
zenguy_pc has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
nateberkopec has quit [Client Quit]
baweaver has quit [Client Quit]
Igorshp has quit [Remote host closed the connection]
ruurd has joined #ruby
Igorshp has joined #ruby
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
Igorshp has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 250 seconds]
dcunit3d has joined #ruby
rlv has quit [Quit: Page closed]
ruurd has quit [Client Quit]
fastAndSlow has quit [Quit: Lost terminal]
patrick_star has quit [Quit: Leaving]
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
mary5030 has joined #ruby
momomomomo_ has joined #ruby
lea has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
richb___ has joined #ruby
Motoservo has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 260 seconds]
pharaoh2 has joined #ruby
Motoservo has joined #ruby
EllisTAA has joined #ruby
chipotle has quit [Quit: cheerio]
<shevy> stabby lambda is for people who like sharp things
Coldblackice_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
JimmyNeutron has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
sepp2k has quit [Read error: Connection reset by peer]
<slash_nick> "why isn't this working?! *stab stab stab*
mary5030 has quit [Ping timeout: 246 seconds]
vcoinminer has joined #ruby
Jackneill has quit [Ping timeout: 272 seconds]
avdi has joined #ruby
jeregrine has joined #ruby
gregf has joined #ruby
uber has joined #ruby
_blizzy_ has joined #ruby
zenguy_pc has joined #ruby
nanoz] has quit [Quit: <3]
<adaedra> shevy: are there stabby lamdas in C#?
victortyau has quit [Quit: Leaving]
<shevy> dunno, I never got far with C#
<adaedra> (because C Sharp)
<shevy> C Raute!
krisquigley has quit [Ping timeout: 250 seconds]
bjeanes has joined #ruby
nateberkopec has joined #ruby
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alxndr has joined #ruby
Kerber0s has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<slash_nick> C Shar-Pei
framlinqp has joined #ruby
<shevy> things become a lot more fun with german pronounciation
Coldblackice has joined #ruby
<BraddPitt> new question, how can I test a private instance method in a module with no constructor?
hellschreiber has joined #ruby
kalusn has quit [Remote host closed the connection]
schaary has joined #ruby
shadoi has joined #ruby
adambeynon has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<jhass> you probably shouldn't
zenguy_pc has quit [Max SendQ exceeded]
<BraddPitt> can I call #instance_method on the module?
<BraddPitt> why is that, jhass
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
zenguy_pc has joined #ruby
<jhass> tests are for public API, the behavior of private methods is part of the public methods who call it
<BraddPitt> hmmm
<BraddPitt> I see your point
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
<shevy> you could include it onto a test class
wildlander has joined #ruby
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
<BraddPitt> I could also just #send, right?
scripore has quit [Quit: This computer has gone to sleep]
<jhass> not to an instance method defined in a module, no
<BraddPitt> ah
<BraddPitt> shame
last_staff has quit [Quit: last_staff]
<shevy> >> module Foo; def hi; puts 'hi'; end; end; Foo.send :hi
<ruboto> shevy # => undefined method `hi' for Foo:Module (NoMethodError) ...check link for more (https://eval.in/449235)
lokson has quit [Ping timeout: 265 seconds]
pizzaops has joined #ruby
beauby has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<shevy> so many bot-downloads on rubygems... I have a gem with a disclaimer "WARNING - DO NOT DOWNLOAD!" and in like 5 minutes, 10 downloads appear
<BraddPitt> yeah
<BraddPitt> ill put a gem on there without telling anyone about it and i get a bunch of DLs
n1ftyn8_ has joined #ruby
<BraddPitt> but my main gem has *almost* 4.5k downloads
<BraddPitt> pretty happy about that
<shevy> 4500 real people?
blackjid has quit [Max SendQ exceeded]
kirun has quit [Remote host closed the connection]
<eam> I'm sure most of mine are CI systems
shredding has quit [Ping timeout: 268 seconds]
justin_pdx has quit [Quit: justin_pdx]
<shevy> what is CI system?
blackjid has joined #ruby
<shevy> I didn't even know you had any gems eam :)
<eam> continuous integration - builds and stuff
_blizzy_ has quit [Read error: Connection reset by peer]
koz_ has joined #ruby
<eam> can you view gems by author on rubygems?
<shevy> hmm
<eam> huh, yeah
<eam> mine aren't too popular
<eam> all niche junk
zenguy_pc has quit [Ping timeout: 264 seconds]
gyre007 has joined #ruby
renderfu_ has joined #ruby
<shevy> it's really hard to assess how popular a gem really is with bot downloads distorting the numbers :(
<koz_> I'm trying to use the ruby version provided by my package manager. When I call 'gem install bundler', I get the following error dump: http://dpaste.com/3R9Q32C
lipoqil has joined #ruby
bb010g has joined #ruby
<koz_> Should I be concerned, and if so, how do I resolve this?
<eam> shevy: my top one is https://rubygems.org/gems/rangeclient, and it's totally just got high numbers because a large number of other projects pull it into their bundles every time they build
<eam> very few actual users
brunto has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
<eam> (and it's the dumbest, most simple rest_client wrapper)
pharaoh2 has joined #ruby
ELCALOR has joined #ruby
<eam> the gem I'd say is the most useful and broadly applicable has the least downloads
_blizzy_ has joined #ruby
dfinninger has quit []
barhum2013 has joined #ruby
bkxd has joined #ruby
<shevy> hmmm
aaeron has joined #ruby
richb___ has left #ruby [#ruby]
<pipework> koz_: You either need to use gem with a local gem home setup, or use sudo with gem, though I suggest using chruby and ruby-install
<aaeron> Hi.
<aaeron> What is the best way of waiting for threads
<aaeron> I use: threads.each(&:join)
simplyianm has joined #ruby
<aaeron> Dint seem to work
<aaeron> Is this better: ThreadsWait.all_waits(*threads)
<aaeron> ??
p0wn3d__ has joined #ruby
bryancp has joined #ruby
<jhass> elaborate?
beauby has quit [Ping timeout: 244 seconds]
<aaeron> I found a case, where one thread failed and it aborted the others too
cek has joined #ruby
jenrzzz_ has joined #ruby
<BraddPitt> hah, I am triumphany re; testing private instance module methods
<aaeron> While using threads.each(&:join)
deimos_ has joined #ruby
<BraddPitt> Class.new.extend(MyModule).send(:method)
<BraddPitt> ugly as sin but whatever
dvarrui has joined #ruby
<eam> shevy: why don't you code review some of my gems
<eam> we can trade
<koz_> pipework: chruby and ruby-install are what, sorry?
<pipework> BraddPitt: The idea is that you shouldn't test private implementation.
<pipework> koz_: google it
<koz_> pipework: Alright, thanks.
<BraddPitt> I know pipework but this method definitely should be tested imo
<pipework> Cheers.
<havenwood> koz_: A tool to install Ruby and a tool to switch between Rubies.
<pipework> BraddPitt: Then it should not be private.
<BraddPitt> but its only used for the public methods in the module :'(
<shevy> eam one thing at a time! right now I have to finish porting my oldest and biggest 1.8.x codebase
<pipework> If you need, make the private method delegate to an object, test that object's public methods.
jenrzzz has quit [Ping timeout: 256 seconds]
yairgo has quit [Quit: yairgo]
<eam> I thought 1.8 was deprecated, surely no one's still using it
beauby has joined #ruby
charles81 has joined #ruby
<shevy> hey I have been there for years when everyone else was on 1.9!
halfdan has joined #ruby
justin_pdx has joined #ruby
bcavileer has joined #ruby
manveru has joined #ruby
ngscheur1 has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
bkxd has quit [Ping timeout: 240 seconds]
<shevy> I am almost finished in total though; after this, it's just 3 small but boring projects... and then my old ruby-gnome collection... which is also no fun to change (from gtk2 to gtk3, and the other things that changed in gnome... )
<koz_> pipework: I just tried doing gem out of sudo - still get the same error dump.
<koz_> Guess I have to try the other approach too.
n008f4g_ has quit [Ping timeout: 268 seconds]
kellabyte has joined #ruby
<eam> shevy: if you were using perl it'd just work on newer versions
<shevy> on perl 6 too?
<eam> what's perl6
rfv has joined #ruby
djbender has joined #ruby
<pipework> eam: One less than perl7
<shevy> larry spoke about it and hobbits in his keynote
skade has joined #ruby
kobain has joined #ruby
<shevy> I have to admit that I recall more about hobbits than about perl from his keynote
[k- has joined #ruby
<eam> same thing tbqh
skmp has joined #ruby
kalusn has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
stamina has quit [Ping timeout: 252 seconds]
shadoi has quit [Quit: Leaving.]
polishdub has quit [Quit: Leaving]
David27 has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
s2013 has joined #ruby
koz_ has left #ruby ["Parting is such sweet sorrow."]
cstrahan has joined #ruby
ishikawa91 has joined #ruby
momomomomo_ has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
MiracleBlue has joined #ruby
devoldmx has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
davedev24 has joined #ruby
chrisseaton has joined #ruby
umgrosscol has quit [Remote host closed the connection]
dvarrui has quit [Ping timeout: 268 seconds]
Asher has quit [Quit: Leaving.]
momomomomo has quit [Client Quit]
caliostro has joined #ruby
sankaber has joined #ruby
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
northfurr has quit [Quit: northfurr]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jdawgaz has joined #ruby
nyandoge has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
pfg has joined #ruby
LMity has quit [Ping timeout: 240 seconds]
thehybridtech has joined #ruby
lokson has joined #ruby
gusTester has left #ruby [#ruby]
Channel6 has joined #ruby
<pipework> rescue nil is try on steroids.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[k- has quit [Ping timeout: 240 seconds]
<shevy> hah
<shevy> I will immortalize this quote
cantaberry has quit [Ping timeout: 260 seconds]
tonini has joined #ruby
paulcsmith has joined #ruby
<shevy> oh... found a jhass quote ... <jhass> the fear of the unknown, we need to have our mind win the fight over our instincts
riotjone_ has joined #ruby
dvarrui has joined #ruby
dopamean_ has quit [Ping timeout: 264 seconds]
eminencehc has joined #ruby
SylarRuby has quit []
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pietr0 has quit [Ping timeout: 240 seconds]
pietr0 has joined #ruby
grzegorz has joined #ruby
riotjone_ has quit [Ping timeout: 272 seconds]
weemsledeux has joined #ruby
cardoni has joined #ruby
blueOxigen has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
zzak has joined #ruby
Kerber0s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 250 seconds]
nk8 has joined #ruby
pietr0 has quit [Ping timeout: 260 seconds]
pietr0_ has joined #ruby
grzegorz has quit [Ping timeout: 255 seconds]
NeverDie has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
dopie has quit [Quit: This computer has gone to sleep]
eminencehc has quit [Remote host closed the connection]
beast has quit [Quit: Leaving]
fastAndSlow has joined #ruby
northfurr has quit [Quit: northfurr]
Channel6 has quit [Ping timeout: 265 seconds]
symm- has joined #ruby
spider-mario has quit [Remote host closed the connection]
eminencehc has joined #ruby
Dopagod has quit [Ping timeout: 264 seconds]
jtperreault has joined #ruby
jtperreault has left #ruby [#ruby]
jtperreault has joined #ruby
dcarmich has joined #ruby
nickfausnight has quit []
rakm has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thehybridtech has quit [Quit: Leaving]
kalusn has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
baweaver has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
t3rm has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
PierreRambaud has quit [Ping timeout: 240 seconds]
PierreRambaud has joined #ruby
bruno- has joined #ruby
weemsledeux has joined #ruby
JimmyNeutron has joined #ruby
Channel6 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Ping timeout: 268 seconds]
JimmyNeutron has left #ruby [#ruby]
jtperreault has quit [Quit: WeeChat 0.4.1]
haylon has quit [Quit: Leaving]
dvarrui has quit [Ping timeout: 272 seconds]
unreal has joined #ruby
Dopagod has joined #ruby
craysiii has quit [Quit: Leaving.]
chipotle has joined #ruby
shoutsid has quit [Remote host closed the connection]
beagles has quit [Ping timeout: 272 seconds]
balazs has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
tejasmanohar has joined #ruby
djbkd has quit [Quit: My people need me...]
<pocketprotector> http://www.rubydoc.info/gems/rsync/1.0.9/Rsync/Change - why do the change flags and methods on this page have # signs
Kerber0s has joined #ruby
eminencehc has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
shmilan has quit [Ping timeout: 240 seconds]
Kerber0s has quit [Client Quit]
JammyHammy has joined #ruby
b3nt_pin has joined #ruby
Igorshp has joined #ruby
dopie has joined #ruby
Limix has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Limix> does anyone know how to properly use the aws ruby sdk to created a presigned_post?
jobewan has quit [Quit: Leaving]
<Limix> is it just me or is the aws documentation really really frustrating and confusing?
<Limix> I’ve posted all over the place, this is my last hope
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BraddPitt> which AWS service are you interacting with Limix
blackmesa has quit [Ping timeout: 240 seconds]
MrJoshua has quit [Quit: MrJoshua]
<Limix> BraddPitt - S3, trying to presign a file so the browser can upload
pharaoh2 has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
<BraddPitt> does that not have the info you need?
Bellthoven has joined #ruby
<Limix> BraddPitt, short answer, no
paulcsmith has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
<BraddPitt> what are you having trouble with
<Limix> When I use their documented method for generating the signed post, the object that is returned just send through the master secret creds.
lokson has quit [Quit: WeeChat 1.0.1]
skweek has quit [Remote host closed the connection]
tomphp has joined #ruby
<Limix> BraddPitt, screw it, I give up for today
<Limix> thanks for trying
<BraddPitt> ok
<Limix> total amazon hate right now
tomphp has quit [Client Quit]
<pocketprotector> amazon is whack
<Limix> thank you
riotjone_ has joined #ruby
paulcsmith has quit [Ping timeout: 250 seconds]
<Limix> what are the alternatives for s3?
<Limix> I’m so ready
riotjone_ has quit [Read error: Connection reset by peer]
<pocketprotector> get off of amazon
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjone_ has joined #ruby
shmilan has joined #ruby
pharaoh2 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
tubuliferous has joined #ruby
mistermocha has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
riotjone_ has quit [Ping timeout: 264 seconds]
Icey has joined #ruby
p0wn3d__ has quit [Ping timeout: 268 seconds]
Eiam_ has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
benlieb has quit [Quit: benlieb]
mattprelude has quit [Ping timeout: 272 seconds]
Bellthoven has quit []
Eiam_ has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
Bellthoven has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby
baweaver has joined #ruby
Bellthoven has quit [Client Quit]
vdamewood has joined #ruby
caliostro has quit [Remote host closed the connection]
eminencehc has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
BSaboia has quit [Quit: Leaving]
jackjackdripper has quit [Quit: Leaving.]
y2k has joined #ruby
Mojo_Nixon has joined #ruby
niemcu has quit [Ping timeout: 268 seconds]
<y2k> When a file is run directly the value of __FILE__ is just the name of the file like "foo.rb" but when it is required by another file, it is an absolute path to foo.rb (path/to/foo.rb). Is this how it works?
mary5030 has joined #ruby
hakunin has joined #ruby