apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
brain_shim is now known as vim_shim
Naoe-Kanno has joined #ruby
clov3r has quit [Remote host closed the connection]
dmiller has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Remote host closed the connection]
SHyx0rmZ has quit [Ping timeout: 268 seconds]
chuckboxx has joined #ruby
thesheff17 has quit [Ping timeout: 264 seconds]
mame0 has quit [Ping timeout: 264 seconds]
RichardBaker has quit [Quit: RichardBaker]
tylersmith has joined #ruby
thesheff17 has joined #ruby
Nenor has quit [Quit: Nenor]
caleon has joined #ruby
kvirani has joined #ruby
Fuzai has quit [Ping timeout: 245 seconds]
brianpWins has quit [Quit: brianpWins]
Quashie has quit [Ping timeout: 260 seconds]
anonymuse has quit [Remote host closed the connection]
aryaching has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
|jemc| has joined #ruby
havenwood has joined #ruby
osvico has joined #ruby
platzhirsch has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
rgbdev has quit [Quit: rgbdev]
vim_shim_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
butblack has joined #ruby
p0wn3d_ has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
p0wn3d_ is now known as p0wn3d
vim_shim has quit [Ping timeout: 268 seconds]
machuga|away is now known as machuga
Xeago has quit [Ping timeout: 268 seconds]
v0n has joined #ruby
T_T has quit [Remote host closed the connection]
Fuzai has joined #ruby
zastern has quit [Remote host closed the connection]
snovak has joined #ruby
vlad_starkov has joined #ruby
T_T has joined #ruby
Nogbit has quit [Quit: Leaving.]
philcrissman has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 260 seconds]
mengu_ has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
aryaching_ has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
philcrissman has quit [Remote host closed the connection]
VictorSK has joined #ruby
VictorSK_ has joined #ruby
leehambley has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
zz_michael_mbp is now known as michael_mbp
VictorSK has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
lukec has quit [Quit: lukec]
harrymoreno has quit [Quit: harrymoreno]
VictorSK_ has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 252 seconds]
michael_mbp is now known as zz_michael_mbp
kilophoton has joined #ruby
i_s has quit [Remote host closed the connection]
mengu__ has joined #ruby
kilophoton has quit [Client Quit]
sarlalian has quit [Ping timeout: 252 seconds]
mengu_ has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
emergion has joined #ruby
emergion has quit [Client Quit]
reset has quit [Quit: Leaving...]
mklappstuhl has joined #ruby
mengu__ has quit [Ping timeout: 248 seconds]
reset has joined #ruby
butblack has quit [Quit: butblack]
maletor has joined #ruby
jakesampson98 has joined #ruby
vim_shim_ has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
dodosan has joined #ruby
<jakesampson98> Good places to find Ruby gem templates?
butblack has joined #ruby
<popl> jakesampson98: The WWW.
<havenwood> jakesampson98: You can create a gem scaffolding pretty easy with `bundle gem you-gem-name-here`. Or check out some popular gems on Github.
mlpinit has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
jellow has joined #ruby
p0wn3d has quit [Remote host closed the connection]
<havenwood> jakesampson98: And of course RubyGems's instructions: http://guides.rubygems.org/make-your-own-gem/
p0wn3d_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
[Rickmasta] has joined #ruby
p0wn3d_ is now known as p0wn3d
leehambley has joined #ruby
rickmasta has quit [Read error: Connection reset by peer]
<jakesampson98> Cheers! Just started learning ruby, and now prefer it over python! :)
Davey has joined #ruby
rgbdev has joined #ruby
dankest has quit [Quit: Peace]
trend has left #ruby [#ruby]
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
soheil has quit [Remote host closed the connection]
jakesampson98 has quit [Quit: Page closed]
bricker`LA has quit [Ping timeout: 256 seconds]
shashin has quit [Quit: shashin]
ephemerian has quit [Quit: Leaving.]
emergion has joined #ruby
dml_ has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Quit: zzzzz…..]
lukec has joined #ruby
mrsolo has joined #ruby
chuckboxx has quit [Ping timeout: 245 seconds]
p0wn3d has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
|jemc| has quit [Quit: WeeChat 0.4.1]
|jemc| has joined #ruby
p0wn3d has joined #ruby
mansi has joined #ruby
habanany has quit [Ping timeout: 245 seconds]
BillCriswell has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
Clooth has quit [Quit: Leaving...]
Fuzai has quit [Ping timeout: 240 seconds]
jb41 has quit [Ping timeout: 264 seconds]
polaco_zZz is now known as polaco
kobain has quit []
<jumpingcloud> Hey, does anyone know a good way to get the indexes of a regex matcher over a nested array?
doritostains has joined #ruby
<jumpingcloud> I've seached and tested out a bunch of code, but nothing's working over the multidimensional array.
p0wn3d has quit [Remote host closed the connection]
<jumpingcloud> p @pool.each_index.select{|i| @pool[i] =~ /T1A/ }
<jumpingcloud> this is what i've been working with, but it's not working on the nested array.
bricker`LA has joined #ruby
<jumpingcloud> does a fine job on an array where the elements are visible on the first level though.
Bry8Star{T2 has quit [Remote host closed the connection]
schaerli has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
apeiros has quit [Remote host closed the connection]
dancardamore has quit [Read error: Operation timed out]
habanany has joined #ruby
Fuzai has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
nari has joined #ruby
schaerli has quit [Ping timeout: 268 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
butblack has quit [Quit: butblack]
tagrudev has joined #ruby
v0n has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
[Rickmasta] has quit [Quit: Leaving...]
rgbdev has quit [Quit: rgbdev]
fourqq has joined #ruby
Bry8Star{T2 has joined #ruby
p0wn3d_ has joined #ruby
p0wn3d_ is now known as p0wn3d
Es0teric has joined #ruby
Fuzai has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
habanany has quit [Ping timeout: 256 seconds]
p0wn3d has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Read error: Operation timed out]
p0wn3d has joined #ruby
sophomorical has joined #ruby
rickmasta has joined #ruby
taternuts has joined #ruby
tagrudev has quit [Remote host closed the connection]
tacit7 has joined #ruby
thepumpkin has quit [Remote host closed the connection]
w3pm has quit [Ping timeout: 264 seconds]
nisstyre has joined #ruby
love_color_text has joined #ruby
T_T has quit [Remote host closed the connection]
advorak has quit [Quit: Leaving]
radic_ has quit [Read error: Connection reset by peer]
ner0x has joined #ruby
kvirani has quit [Remote host closed the connection]
love_color_text has quit [Read error: No route to host]
brianpWins has joined #ruby
kvirani has joined #ruby
T_T has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
cj3kim_ has joined #ruby
User has quit [Ping timeout: 268 seconds]
hamakn has joined #ruby
rgbdev has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
love_color_text has joined #ruby
|jemc| has quit [Ping timeout: 256 seconds]
p0wn3d has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 248 seconds]
reset has quit [Quit: Leaving...]
p0wn3d has joined #ruby
DanKnox is now known as DanKnox_away
kvirani has quit [Ping timeout: 276 seconds]
i_s has joined #ruby
TheMoonMaster has quit [Excess Flood]
|jemc| has joined #ruby
love_color_text has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 245 seconds]
TheMoonMaster has joined #ruby
<xybre> jumpingcloud: does the matrix class let you iterate over everything like that?
soheil has joined #ruby
Nogbit has joined #ruby
habanany has joined #ruby
kobain has joined #ruby
mlpinit has quit [Remote host closed the connection]
hogeo has joined #ruby
p0wn3d has quit [Remote host closed the connection]
p0wn3d_ has joined #ruby
p0wn3d_ is now known as p0wn3d
<jumpingcloud> xybre: Hey, I'll check into it, thanks for the lead!
kobain has quit [Client Quit]
Naoe-Kanno has quit [Ping timeout: 248 seconds]
coderhs has quit [Read error: Operation timed out]
Roa is now known as Roa
cj3kim_ has joined #ruby
osvico has quit [Ping timeout: 268 seconds]
habanany has quit [Ping timeout: 245 seconds]
p0wn3d has quit [Remote host closed the connection]
nari has quit [Ping timeout: 248 seconds]
pwh has joined #ruby
lsoa has joined #ruby
soheil has quit [Ping timeout: 245 seconds]
huoxito has joined #ruby
devoldmx has joined #ruby
p0wn3d has joined #ruby
polaco is now known as polaco_zZz
SHyx0rmZ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
habanany has joined #ruby
twoism has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
rickmasta has quit [Quit: Leaving...]
Kricir has quit [Read error: Connection reset by peer]
p0wn3d has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
coderhs has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cj3kim_ has quit [Remote host closed the connection]
lemonsparrow_ has joined #ruby
mansi has joined #ruby
lemonsparrow_ is now known as lemonsparrow
mrsolo has joined #ruby
p0wn3d has joined #ruby
mansi has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
godd2 has quit [Quit: Page closed]
p0wn3d has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
snovak has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
Targen_ has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
skulker has joined #ruby
doritostains has quit [Quit: Leaving...]
apeiros has joined #ruby
habanany1 has joined #ruby
p0wn3d has joined #ruby
peregrine81 has joined #ruby
habanany has quit [Quit: Leaving.]
snovak has quit [Ping timeout: 252 seconds]
tacit7 has quit [Quit: Leaving.]
eka has quit [Quit: Computer has gone to sleep.]
einarj has joined #ruby
DanKnox is now known as DanKnox_away
vlad_starkov has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
doritostains has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
nari has joined #ruby
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
p0wn3d has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
vlad_sta_ has quit [Ping timeout: 248 seconds]
einarj has quit [Ping timeout: 248 seconds]
brisbin has quit [Quit: WeeChat 0.4.1]
Lewix has joined #ruby
b33pb33p has joined #ruby
ixti has quit [Ping timeout: 268 seconds]
twoism has joined #ruby
brisbin has joined #ruby
s2013 has joined #ruby
rezzack has quit [Quit: Leaving.]
twoism has quit [Remote host closed the connection]
tacit7 has joined #ruby
twoism has joined #ruby
rgbdev has quit [Quit: rgbdev]
habanany1 has quit [Read error: Connection timed out]
p0wn3d has quit [Remote host closed the connection]
habanany has joined #ruby
Kelet has joined #ruby
p0wn3d has joined #ruby
Bira has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
habanany has quit [Max SendQ exceeded]
nerdy has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
b33pb33p has quit [Quit: leaving]
harrymoreno has quit [Ping timeout: 240 seconds]
p0wn3d has quit [Ping timeout: 240 seconds]
vim_shim has joined #ruby
habanany has joined #ruby
Nogbit has quit [Quit: Leaving.]
Nogbit has joined #ruby
harrymoreno has joined #ruby
p0wn3d_ has joined #ruby
p0wn3d_ is now known as p0wn3d
tacit7 has quit [Ping timeout: 260 seconds]
icco has joined #ruby
Bira has quit [Remote host closed the connection]
MJBrune has joined #ruby
b33pb33p has joined #ruby
<MJBrune> hello. I am using ERB and I wanted to create a button that is tied to a function. When you push the button, the function is ran, not before or after the button is pressed.
tkuchiki has joined #ruby
<MJBrune> is this the correct place to inquire?
Bira has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
bradhe has joined #ruby
p0wn3d has joined #ruby
habanany has joined #ruby
krz has joined #ruby
skulker has quit [Remote host closed the connection]
<xybre> MJBrune: HTML? Maybe try the #rubyonrails channel.
Bira has quit [Ping timeout: 240 seconds]
p0wn3d has quit [Client Quit]
skulker has joined #ruby
<MJBrune> xybre: ill try thanks
skulker has quit [Remote host closed the connection]
skulker has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
nerdy has joined #ruby
hamakn has quit [Remote host closed the connection]
browndawg has joined #ruby
<r0bglees0n> MJBrune: you want to setup a click handler for the button. nothing to do with ruby/rails.
<r0bglees0n> MJBrune: it's very easy to do, are you using jquery?
hiyosi has quit [Ping timeout: 268 seconds]
yacks has quit [Ping timeout: 264 seconds]
skulker has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 256 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
<MJBrune> r0bglees0n: I've not yet.
<MJBrune> but I can
cody-- has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
nerdy has joined #ruby
mansi has joined #ruby
<r0bglees0n> MJBrune: if you include jquery you can write something like, $("#the-button").click(function(e) { .. });
<MJBrune> r0bglees0n: do you have an example I can see?
Targen has joined #ruby
choi0hun has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
mansi has quit [Ping timeout: 245 seconds]
cody-- has quit [Ping timeout: 245 seconds]
<MJBrune> r0bglees0n: because I want to run a ruby function from instead of function(e){ .. } and thats what I am getting an issue on
ukd1 has quit [Remote host closed the connection]
<MJBrune> if I do something like function(e) { <% somerubyfunction() %> } it will just populate the function with the output of the ruby function, not actually run it.
<r0bglees0n> MJBrune: you can't run a ruby function in the browser, you need to hit an action on your controller.
sirupsen has joined #ruby
Bira_ has joined #ruby
Spami has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
hackingoff has quit [Read error: Connection reset by peer]
AdmiraI has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
<MJBrune> r0bglees0n: I am not using a MVC setup but I guess I can start
hackingoff has joined #ruby
nhhagen has joined #ruby
mansi has joined #ruby
cody-- has joined #ruby
amacgregor has joined #ruby
nisstyre has quit [Quit: Leaving]
toah has joined #ruby
jmccune has quit [Ping timeout: 248 seconds]
moshee has quit [Ping timeout: 260 seconds]
jmccune has joined #ruby
<r0bglees0n> MJBrune: no you dont need to
<r0bglees0n> MJBrune: you need to make a HTTP request to your web application though
nerdy has quit [Quit: Computer has gone to sleep.]
<r0bglees0n> MJBrune: you could implement the click of the button to hit your server and redirect to another page or use AJAX to do it asynchronously and never reload the page.
vlad_sta_ has joined #ruby
nerdy has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
moshee has joined #ruby
yacks has joined #ruby
browndawg has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
b33pb33p has quit [Quit: Lost terminal]
mikee has quit [Ping timeout: 246 seconds]
toah has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
Soliah has joined #ruby
fuhgeddaboudit has joined #ruby
amacgregor_ has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
amacgregor has quit [Ping timeout: 264 seconds]
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
T_T has quit [Remote host closed the connection]
wesside__ has quit [Read error: Connection reset by peer]
wesside has joined #ruby
<MJBrune> r0bglees0n: ill see what I can do
Columcille has quit [Quit: leaving]
Columcille has joined #ruby
echevemaster has quit [Quit: Leaving]
<jumpingcloud> xybre: looks like that only works with numbers?
<jumpingcloud> <xybre>
<jumpingcloud> `[]': can't convert Array into Integer
fuhgeddaboudit has quit [Read error: No route to host]
alx- has quit [Quit: Leaving...]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
reset has joined #ruby
reset has quit [Client Quit]
Bira_ has quit [Ping timeout: 252 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
hiyosi has joined #ruby
Columcille has quit [Quit: leaving]
BillCriswell has joined #ruby
pwh has quit [Ping timeout: 252 seconds]
fourqq has quit [Ping timeout: 248 seconds]
rafacv has quit [Remote host closed the connection]
vDubG__ has joined #ruby
yacks has quit [Read error: Connection reset by peer]
tomzx_mac has quit [Read error: Connection reset by peer]
yacks has joined #ruby
jaimef has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
tomzx_mac has joined #ruby
peregrine81 has quit [Ping timeout: 264 seconds]
BillCriswell has quit [Remote host closed the connection]
kobain has quit []
Guest42944 has quit [Ping timeout: 248 seconds]
bugsinlights has quit [Ping timeout: 264 seconds]
dualbus has joined #ruby
peregrine81 has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest57921
Nogbit has quit [Quit: Leaving.]
jumpingcloud has quit [Quit: Leaving]
Monie has joined #ruby
fuhgeddaboudit has joined #ruby
jaimef has joined #ruby
cj3kim has joined #ruby
marsLantern has joined #ruby
nari has quit [Ping timeout: 252 seconds]
peregrine81 has quit []
choi0hun has quit [Remote host closed the connection]
cherrypeel has joined #ruby
noop has joined #ruby
cj3kim has quit [Remote host closed the connection]
mrsolo has joined #ruby
Lewix has quit [Remote host closed the connection]
ewnd9 has joined #ruby
DrCode has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
mootpointer has joined #ruby
mootpointer has quit [Client Quit]
w3pm has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
AdmiraI has joined #ruby
thinkclay has joined #ruby
mootpointer has joined #ruby
Nogbit has joined #ruby
krz has quit [Quit: krz]
mmm has quit [Read error: Connection reset by peer]
mmm has joined #ruby
end_guy has quit [Remote host closed the connection]
v0n has joined #ruby
snovak has joined #ruby
aryaching_ has quit []
hamakn has joined #ruby
doritostains has quit [Quit: Linkinus - http://linkinus.com]
Columcille has joined #ruby
hackingoff has quit [Read error: Connection reset by peer]
JimmyNeutron has joined #ruby
overachieving41 has quit [Ping timeout: 245 seconds]
hackingoff has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
thinkclay has quit [Quit: Leaving.]
cads has joined #ruby
overachieving41 has joined #ruby
cads has quit [Read error: Connection reset by peer]
dodosan has quit [Remote host closed the connection]
cads has joined #ruby
fridim__ has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
icco has quit [Ping timeout: 260 seconds]
w3pm has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
taternuts has quit []
vlad_sta_ has quit [Read error: Operation timed out]
mansi has quit [Ping timeout: 245 seconds]
icco has joined #ruby
robonerd has joined #ruby
hackingoff has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
hackingoff has joined #ruby
robonerd has left #ruby [#ruby]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
icco has quit [Ping timeout: 256 seconds]
icco has joined #ruby
abhiror has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
bradhe has joined #ruby
abhiror has left #ruby [#ruby]
mootpointer has quit [Ping timeout: 264 seconds]
cescalante is now known as ce_afk
sirupsen has quit []
jonahR has joined #ruby
pairup has quit [Quit: I'm asleep.]
JimmyNeutron has quit [Quit: Leaving]
mmm has quit []
ce_afk is now known as cescalante
tomsthumb has quit [Ping timeout: 241 seconds]
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noop has quit [Ping timeout: 245 seconds]
pairup has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
nazty has joined #ruby
icco has quit [Ping timeout: 240 seconds]
caleon has quit [Quit: caleon]
DanKnox_away is now known as DanKnox
hamakn_ has joined #ruby
v0n has quit [Read error: Operation timed out]
hamakn has quit [Ping timeout: 260 seconds]
noop has joined #ruby
icco has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
KobraKao has joined #ruby
fuhgeddaboudit has quit [Remote host closed the connection]
murz has joined #ruby
soheil has joined #ruby
bradhe has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
T_T has joined #ruby
DanKnox_away is now known as DanKnox
soheil has quit [Ping timeout: 268 seconds]
mary5030 has joined #ruby
Soda has joined #ruby
DanKnox is now known as DanKnox_away
pwh has quit [Quit: pwh]
browndawg has joined #ruby
Soda has quit [Ping timeout: 264 seconds]
Guest12400 has quit [Ping timeout: 260 seconds]
KobraKao has quit [Quit: Saindo]
pairup has quit [Quit: I'm asleep.]
St_Marx has quit [Remote host closed the connection]
vim_shim_ has joined #ruby
hackingoff has quit [Read error: Connection reset by peer]
hackingoff has joined #ruby
St_Marx has joined #ruby
vim_shim has quit [Ping timeout: 260 seconds]
snovak has joined #ruby
Fuzai has joined #ruby
pwh has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
pwh has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
pwh has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 256 seconds]
sarkis has joined #ruby
vlad_sta_ has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
noop has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Read error: Operation timed out]
sayan has joined #ruby
lukec has quit [Quit: lukec]
dmiller has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
mary5030 has joined #ruby
cescalante is now known as ce_afk
zzyxx has joined #ruby
pwh has quit [Quit: pwh]
ananthakumaran has joined #ruby
Guest79188 has quit [Ping timeout: 240 seconds]
Liothen has quit [Quit: System of a down……]
hamakn_ has quit [Remote host closed the connection]
hamakn has joined #ruby
zzyxx has quit [Quit: Page closed]
AFKGeek has joined #ruby
zz_michael_mbp is now known as michael_mbp
atno has quit [Quit: Leaving]
AFKGeek has quit [Client Quit]
threesome has quit [Ping timeout: 260 seconds]
michael_mbp is now known as zz_michael_mbp
aagdbl has joined #ruby
awarner has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Remote host closed the connection]
awarner has joined #ruby
vlad_starkov has joined #ruby
aagdbl has quit [Client Quit]
waxjar has quit [Ping timeout: 240 seconds]
Kruppe has quit [Ping timeout: 240 seconds]
yuhsien_ has quit [Ping timeout: 240 seconds]
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
cool has quit [Ping timeout: 240 seconds]
strax has quit [Ping timeout: 240 seconds]
justinweiss has quit [Ping timeout: 240 seconds]
brian` has quit [Ping timeout: 240 seconds]
brian` has joined #ruby
waxjar has joined #ruby
justinweiss has joined #ruby
iliketurtles has joined #ruby
huoxito has quit [Quit: Leaving]
Kruppe has joined #ruby
Xuerian has joined #ruby
sarkis has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
noop has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
iliketurtles has quit [Ping timeout: 248 seconds]
<s2013> if i want to do something lik ea coordinate system i have to use a matrix right?
bradhe has joined #ruby
lurch_ has joined #ruby
rrichardsr3 has joined #ruby
Kar- has joined #ruby
[0x1a]_ has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 260 seconds]
rrichardsr3 has quit [Read error: Connection reset by peer]
Evixion has quit [Read error: Connection reset by peer]
akonny has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
browndawg has quit [Ping timeout: 268 seconds]
Evixion has joined #ruby
sayan has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
Kar- has quit [Ping timeout: 260 seconds]
lurch_ has quit [Quit: lurch_]
sayan has quit [Ping timeout: 264 seconds]
lemonsparrow has quit [Quit: Page closed]
snovak has joined #ruby
carraroj has joined #ruby
<jrobeson> ea?
Nogbit has quit [Quit: Leaving.]
sayan has joined #ruby
Nogbit has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
snovak has quit [Ping timeout: 245 seconds]
banghouse2 has joined #ruby
sayan has quit [Excess Flood]
carraroj has quit [Read error: Connection reset by peer]
dash_ has joined #ruby
heftig has joined #ruby
mansi has joined #ruby
sayan has joined #ruby
banghouse2 has quit [Remote host closed the connection]
murz has quit [Quit: Leaving...]
murz has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
amacgregor has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
leehambley has joined #ruby
CalvinnHobbes has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
Quashie has joined #ruby
BizarreCake has joined #ruby
Ox6abe has joined #ruby
Kricir has joined #ruby
coderhs has joined #ruby
cherrypeel has quit [Quit: Leaving]
ce_afk is now known as cescalante
appendonly has joined #ruby
dash_ has quit [Read error: Connection reset by peer]
AdmiraI has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
AdmiraI has quit [Client Quit]
okinomo has joined #ruby
timonv has joined #ruby
dash_ has joined #ruby
kaldrenon has joined #ruby
GeissT has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
coderhs has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
klaut has joined #ruby
banister`sleep has quit [Quit: Computer has gone to sleep.]
Ox6abe has quit [Remote host closed the connection]
RichardBaker has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
Bosox20051 has joined #ruby
RichardBaker has quit [Read error: Connection timed out]
intuxicated has quit [Ping timeout: 260 seconds]
cmarques has quit [Remote host closed the connection]
ayaz has joined #ruby
claymore has joined #ruby
ner0x has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
schaerli has joined #ruby
swordsmanz has quit [Read error: Connection reset by peer]
swordsmanz has joined #ruby
hamakn has quit [Remote host closed the connection]
sayan has joined #ruby
hamakn has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
sayan has quit [Excess Flood]
Mon_Ouie has joined #ruby
s2013 has quit [Quit: Leaving]
intuxicated has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
noop has quit [Ping timeout: 256 seconds]
vim_shim_ has quit [Ping timeout: 240 seconds]
intuxicated has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
threesome has joined #ruby
mansi has joined #ruby
vim_shim has joined #ruby
T_T has quit [Remote host closed the connection]
jduan1981 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
vlad_sta_ has joined #ruby
sevenseacat has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
narcan has joined #ruby
vlad_starkov has quit [Read error: Operation timed out]
jduan1981 has quit [Ping timeout: 256 seconds]
corpuscle has joined #ruby
robbyoconnor has joined #ruby
apeiros has joined #ruby
mrsolo has quit [Quit: Leaving]
okinomo has quit [Ping timeout: 248 seconds]
justsee has joined #ruby
timonv has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
appendonly has left #ruby [#ruby]
mva has left #ruby [#ruby]
browndawg has quit [Ping timeout: 248 seconds]
coderhs has joined #ruby
babinho has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
habanany has quit [Read error: Connection reset by peer]
yuhsien_ has joined #ruby
strax has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
carraroj has joined #ruby
jimeh has joined #ruby
browndawg has joined #ruby
cool has joined #ruby
skulker has joined #ruby
noop has joined #ruby
noop is now known as noopq
zz_michael_mbp is now known as michael_mbp
skulker has quit [Read error: Connection reset by peer]
[0x1a]_ has joined #ruby
atno has joined #ruby
skulker has joined #ruby
wallerdev has quit [Quit: wallerdev]
dmiller has joined #ruby
timonv has quit [Remote host closed the connection]
cliffstah has quit [Read error: Connection reset by peer]
Kar- has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 248 seconds]
browndawg has quit [Read error: Connection reset by peer]
AdmiraI has joined #ruby
workmad3 has joined #ruby
xk_id has quit [Quit:
snovak has joined #ruby
skulker has quit [Remote host closed the connection]
staafl has joined #ruby
skulker has joined #ruby
sarkis has joined #ruby
skulker has quit [Remote host closed the connection]
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snovak has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
mansi has joined #ruby
soheil has joined #ruby
predator217 has joined #ruby
browndawg has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
corpuscle has quit [Quit: WeeChat 0.4.1]
shevy has quit [Read error: Connection reset by peer]
carraroj has quit [Remote host closed the connection]
xk_id has joined #ruby
vlad_starkov has joined #ruby
corpuscle has joined #ruby
carraroj has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
mansi has quit [Ping timeout: 240 seconds]
predator117 has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 260 seconds]
soheil has quit [Ping timeout: 252 seconds]
Nogbit has quit [Quit: Leaving.]
vlad_sta_ has quit [Ping timeout: 264 seconds]
relix has joined #ruby
skulker has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Aryasam has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
Aryasam has joined #ruby
endash has quit [Ping timeout: 240 seconds]
endash_ is now known as endash
adambeynon has joined #ruby
jb41 has joined #ruby
MaGiC_Reloaded has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
spider-mario has joined #ruby
Liothen has joined #ruby
freeayu has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
murz has quit [Quit: Leaving...]
matthieua has joined #ruby
shevy has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
skulker has quit [Remote host closed the connection]
Aryasam has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
klaut has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
coderhs has quit [Quit: Leaving]
claymore has quit [Ping timeout: 260 seconds]
RDash[AW] is now known as RDash
lkba has quit [Ping timeout: 260 seconds]
claymore has joined #ruby
michael_mbp is now known as zz_michael_mbp
jonahR has quit [Quit: jonahR]
atmosx has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
quoin has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 245 seconds]
quoin has joined #ruby
atmosx has joined #ruby
allsystemsarego has joined #ruby
robonerd has joined #ruby
<robonerd> hey all, i've been away from ruby/rails for about 5 years. i'm coming back, with a few web apps & web sites i need to build. when i left i probably would have built them in pure ruby myself, but i know rails has changed a lot in the time. should i use rails? or, how can i know the answer to that question?
quoin has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel_ has joined #ruby
sayan has joined #ruby
Emmanuel_Chanel_ has quit [Client Quit]
Stalkr_ has joined #ruby
dodosan has joined #ruby
<jrobeson> robonerd, whether you would use rails really depends on the sites themselves
<robonerd> go on
<jrobeson> and your own perspective as to what such a framework should do
<jrobeson> that's it..
dmiller has joined #ruby
Nenor has joined #ruby
<sevenseacat> still hating those zombies?
tvw has joined #ruby
jibi has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
<jrobeson> aloha sevenseacat
corpuscle has quit [Quit: corpuscle]
<sevenseacat> afternoon
dmiller has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
quoin has joined #ruby
bricker`LA has joined #ruby
<robonerd> jrobeson well to be honest, i've been in objc/ios land for so long i can't quite remember what solid web app/site architecture looks like
<robonerd> it'll take a few days to swich gears
corpuscle has joined #ruby
<robonerd> i wonder if the best approach would be to start with pure ruby, and when i see a lot of repetitive shit, check out if rails would solve problems?
<jrobeson> oh .. definitely not..
<jrobeson> there's stuff like padrino and such that you should use before doing it manually
zz_michael_mbp is now known as michael_mbp
<jrobeson> i really don't imagine that you'll be want to implement every bit about csrf protection and such
Emmanuel_Chanel has quit [Quit: Leaving]
<robonerd> csrf?
<jrobeson> seems like a waste of your time.. and the clients money
Emmanuel_Chanel has joined #ruby
<jrobeson> cross site request forgery..
<jrobeson> there's like a million ways to hack websites.. and if you're not really careful.. you'll write very vulnerable code
<jrobeson> definitely a lot has developed on that front in the past 5 years for sure
<jrobeson> plus stuff like breach/crime mitigation, and all sorts of other junk
<jrobeson> and the older stuff like xsrf and sql injection
<robonerd> well sql injection is pretty easy to handle, but how is cross site request forgery handled?
<robonerd> what is it even?
<jrobeson> web security is hard.. i wouldn't recommend doing it yourself
MaGiC_Reloaded has quit [Ping timeout: 268 seconds]
<jrobeson> i'm not going to repeat what you can eaisly google
<jrobeson> there are so many people who could say it better htan i could
<robonerd> sec
justsee has joined #ruby
sepp2k has joined #ruby
snovak has joined #ruby
<robonerd> seems odd this can be done by piggy backing fucking IMG tags and shit
<robonerd> seems any external hyperlinks should have required content type specification and matching
vlad_starkov has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
<sevenseacat> well its not new that thats not how things work
<robonerd> yea
<robonerd> so what can a framework do to protect against this stuff?
<sevenseacat> see what jrobeson already said
snovak has quit [Ping timeout: 256 seconds]
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
mansi has joined #ruby
<robonerd> hmm
justsee has quit [Ping timeout: 245 seconds]
<robonerd> sinatra seems even more basic than padrino
<robonerd> i wonder if i'd want to start there then up to padrino after
sayan has quit [Ping timeout: 260 seconds]
ce_afk is now known as cescalante
cescalante is now known as ce_afk
mansi has quit [Ping timeout: 268 seconds]
<robonerd> oh yea, ruby has duck typing. are there any open web programming languages which are strongly typed that have a big ecosystem like ruby has?
<robonerd> i like strong typing now :)
<sevenseacat> java? :)
<jrobeson> yep .. java
elaptics`away is now known as elaptics
<lewellyn> java's typing is almost pathological in strength :)
<robonerd> eh, i'm looking for something a bit more snazzy than long in the tooth java
<jrobeson> scala
<robonerd> like if ruby were tightened up a bit
<jrobeson> then you can still use java libs and such
<robonerd> with a focus on web app/web service/network service development
<jrobeson> like playframework
<robonerd> something that can hook in C very well could be nice too
<jrobeson> java's ecosystem is not stagnant
<robonerd> so hot spots in code could be put out to C
<jrobeson> then there is nothing
<jrobeson> go is the closest, but the ecosystem isn't there
<jrobeson> you want too much
matthieua has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jrobeson> but really.. almost nobody does that until they are scaling to millions
<jrobeson> it's completley unnecessary
<jrobeson> for almost everybody
<robonerd> "does that" <- what specifically?
<jrobeson> worries about moving code to C
<robonerd> ah i mean, i want static typing. not strong typing per se
<robonerd> i just want to know i can grow into that
<robonerd> if the lang has a poor C hook in/FFI, i can't bother getting proficient in it
<jrobeson> you should consider looking at go.. but the ecosystem really ins't there
atno has quit [Remote host closed the connection]
<robonerd> i can't bring myself to support anything google
<robonerd> android, go, whatever
<jrobeson> then you're screwed
<sevenseacat> lolwat
<jrobeson> unless you just write in C
skulker has joined #ruby
<jrobeson> you could use lua i guess
<sevenseacat> are you for real?
<jrobeson> great ffi there
<robonerd> sevenseacat what do you mean
<jrobeson> sevenseacat, i feel that way sometimes too..
<robonerd> do ppl actually build web apps in lua?
<jrobeson> yes
<robonerd> i thought it was for scripting wow UIs
<robonerd> heh
<jrobeson> there are web app frameworks done in lua
<jrobeson> my xmpp server is in lua
<sevenseacat> 'i want everything, i will concede nothing, and i will not use anything that has anything to do with the biggest company on the planet'
<jrobeson> lol
<jrobeson> yeah dude you're crazy
<jrobeson> this conversation is pointless
<sevenseacat> good luck with that :thumbsup"
rgbdev has joined #ruby
<jrobeson> sevenseacat, not everybody sees this icons :)
rgbdev has quit [Client Quit]
<jrobeson> i don't
<robonerd> not trying to be unreasonable here, geez, just putting out what i'm ideally looking for
<jrobeson> there is no such thing
overachieving41 has quit [Ping timeout: 260 seconds]
<robonerd> what i don't get about duck typing is how i can ensure i'm working with the right types of data without testing the class/kind of everything before use
<jrobeson> not with any decent ecosystem anyways
<sevenseacat> why do you need to?
<jrobeson> that's fine.. i think everybody understand why people might not like it
geoffw8__ has quit [Ping timeout: 248 seconds]
<jrobeson> disliking duck typing is one thing.. that's ok
<robonerd> because i don't want to continue on in my code if a number object is given where i'm expecting text
<robonerd> what if my next operations are text object manipulation?
<sevenseacat> then they will error
<robonerd> yea at run time right?
mattlins has quit [Ping timeout: 264 seconds]
karlfreeman has quit [Ping timeout: 248 seconds]
<sevenseacat> yep
Domon_ has quit [Ping timeout: 248 seconds]
<jrobeson> robonerd, you don't have to defend not liking duck typing.. that's not the point
<robonerd> having those errors at compile time eliminates an entire class of problems that can happen at run time, imo
geoffw8__ has joined #ruby
<robonerd> so i'm looking for static typing, right?
<sevenseacat> if you say so
<sevenseacat> why are you here in #ruby again?
<jrobeson> i'm inclined to agree with that
<robonerd> sevenseacat because i love ruby and did thousands of lines of it
<robonerd> geez back off plz
<sevenseacat> i see
<robonerd> it doesn't mean it's the right lang for me anymore
dodosan has quit [Remote host closed the connection]
<jrobeson> so why arey ou asking here for recommendations for another language
ewnd9 has quit [Read error: Connection reset by peer]
overachieving41 has joined #ruby
<jrobeson> i think that is the point of the question
<sevenseacat> ^
jb41 has quit [Ping timeout: 264 seconds]
<robonerd> because we're all still geeks and not religious zealots. right?
<jrobeson> it's not about zealotry
<jrobeson> i'm not zealously attached to ruby
<jrobeson> but.. you have less of a chance of finding good advice on non ruby channel
ewnd9 has joined #ruby
<jrobeson> err on a ruby channel
<jrobeson> for alternatives to ruby :)
pairup has joined #ruby
<robonerd> k then suggest a better channel?
<jrobeson> using a search engine
<jrobeson> but pretty well everybody is gonna tell you what i just asaid
<sevenseacat> there is a lot of language comparison stuff out there
vlad_starkov has joined #ruby
row has joined #ruby
<jrobeson> robonerd, i'm only here because i decided that i wanted to see what the ruby fuss is about after all these years.. i'm personally inclined more towards stronger typing.. but not religiously so
noopq has quit [Ping timeout: 260 seconds]
<robonerd> you guys seen Opa? looks kinda kewl
skulker has quit [Remote host closed the connection]
<sevenseacat> not i
MrZYX|off is now known as MrZYX
<robonerd> lol, i JUST read this on the page: "Static typing [of Opa] helps catch most bugs at compile time rather than a stack trace at run time."
<jrobeson> robonerd, one of your criteria was ecosystem.. so i didn't suggest anything that is small like that
<robonerd> ahh...
apeiros has joined #ruby
<robonerd> ok ignore ecosystem, and replace it with stable/production ready/mature
<robonerd> suggestions now?
dangerousdave has joined #ruby
<sevenseacat> i prefer the much tighter loop of edit code -> reload page (for a web framework)
<jrobeson> well then i'd start in on things like erlang
<jrobeson> oh.. C#.. that's a good choice
<jrobeson> objective C
<jrobeson> why not just use objective C? :) doesn't that have decent typing?
<robonerd> i'd like something that could be dynamic during dev, but compiled for production
<jrobeson> i've honestly never looked at it because i know of nothing
<robonerd> well i could
Guest66735 has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
<robonerd> i wonder how portable its runtime is
<apeiros> there are C interpreters
<robonerd> i prefer freebsd on the server, not os x :)
r0bglees0n has quit [Ping timeout: 264 seconds]
RDash is now known as RDash[AW]
<apeiros> could write a C based webframework and run it on a C interpreter during dev
<jrobeson> robonerd, remember that next is written with objective C, and that is portable
<apeiros> (if anybody finds sarcasm, he/she can keep it)
<jrobeson> but at that point.. i'd prefer to use lua
<sevenseacat> :P
<jrobeson> i like lua .. except the starting at 1 bit for array indices :)
<jrobeson> but it does have a great FFI
<jrobeson> plus.. lua is in all sort sof useful places.. like redis, nginx, postgres, etc
<robonerd> ya true
<robonerd> lua could work
<jrobeson> i haven't looked around for general lua embedding in ruby, but there is strangely a lua embed module for php
User has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
<jrobeson> discarding the jvm as an option takes away alot of interesting options though
yuhsien_ has quit [Ping timeout: 248 seconds]
karnowski has quit [Ping timeout: 248 seconds]
notbrent_ has quit [Ping timeout: 248 seconds]
<jrobeson> like groovy, scala, and clojure
chuk_ has quit [Ping timeout: 240 seconds]
chuk_ has joined #ruby
<jrobeson> oh.. nobody said haskell yet :)
<sevenseacat> lua looks interesting
<sevenseacat> i like haskell
<jrobeson> not sure how the ecosystem is doing there though
<jrobeson> and of course. erlang
<jrobeson> i hate the erlang syntax though :(
Guest66735 has quit [Ping timeout: 256 seconds]
<jrobeson> elixir is a possibility there
<sevenseacat> erlang does indeed have scary syntax
leehambley has joined #ruby
<robonerd> how about Rust?
<jrobeson> my brain wasn't ready for completely functional programming.. and from my understanding ejabberd (at least during the ejabberd 2.x series) is in fact not the best codebase to learn erlang from :)
<robonerd> jrobeson java/jvm feels like it may be bloated and backdoored too easy
<jrobeson> if you say so
<jrobeson> there is nothing ot bakcup that statement though
<robonerd> yea i've considered haskell
<jrobeson> one of the best ways to run ruby is in fact via jruby
<jrobeson> and same for python with jython
Liothen has quit [Quit: System of a down……]
<sevenseacat> 'feels like' isnt something we can work with
<jrobeson> oh rust.. that's something i still haven't looked at .. but some people i like are working on it
ehaliewicz has quit [Ping timeout: 260 seconds]
<jrobeson> sevenseacat, ok.. i feel dumb.. buti 'm having trouble finding a good resource to learn about controller testing via rspect that isn't overly generic.. or doesn't include unnecesssary stuff (for me as of yet) like auth .. or isn't too old
<jrobeson> i'm just looking for a good example for something as simple as the basic resource routes/controllers generated by rails
<sevenseacat> lot of mixed opinions about controller testing in rspec
<jrobeson> well there are mixed opinions on whether.. i know that
<jrobeson> and then there are mixed opinions about using mocks
<jrobeson> antyhing else ?
xcfox has joined #ruby
<sevenseacat> trying to think of how i arrived at how i like testing them, if there were any resources i used
<jrobeson> this way seems basically like the generated one.. but less verbose (although does include auth) https://github.com/svs/painless_controller_tests/blob/master/spec/controllers/items_controller_spec.rb
<sevenseacat> i can link you to a whole pile ive written but i dont know if that would be of any help
matthieua has joined #ruby
<jrobeson> it seems to take the many duplicated ones and for assigns and such and turns them into shared examples
<sevenseacat> well thats a good thing to do, keep things DRY
overachieving41 has quit [Ping timeout: 255 seconds]
goganchic has joined #ruby
<jrobeson> i'm suprised the default specs don't look like that
<jrobeson> and are in fact.. not dry at all
browndawg has joined #ruby
<sevenseacat> i dont make any claims as to the quality of these but have a pile of specs https://github.com/Useful-Inc/big-help-mob-webapp/tree/master/spec/controllers
osvico has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
robonerd has left #ruby ["..."]
dsferreira has joined #ruby
skulker has joined #ruby
radic has joined #ruby
mengu has joined #ruby
shaunbaker has joined #ruby
nari has joined #ruby
row has quit [Quit: Leaving]
pairup has quit [Quit: I'm asleep.]
lkba has joined #ruby
row has joined #ruby
row has quit [Max SendQ exceeded]
row has joined #ruby
skulker has quit [Remote host closed the connection]
decoponio has joined #ruby
skulker has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
quoin has quit [Remote host closed the connection]
quoin has joined #ruby
skulker has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
bricker`LA has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
amacgregor_ has joined #ruby
Clooth has joined #ruby
matthieua has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
amacgregor_ has quit [Ping timeout: 245 seconds]
yacks has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
kirun has joined #ruby
workmad3 has joined #ruby
michael_mbp is now known as zz_michael_mbp
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
interluca has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
interluca has left #ruby [#ruby]
ananthakumaran has quit [Max SendQ exceeded]
vlad_starkov has quit []
skulker has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
skulker has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
Kabaka has joined #ruby
altivec has joined #ruby
ananthakumaran has quit [Client Quit]
bricker`LA has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Client Quit]
vlad_starkov has joined #ruby
dodosan has joined #ruby
robonerd- has joined #ruby
Xeago has joined #ruby
robonerd- is now known as robonerd
robonerd has quit [Changing host]
robonerd has joined #ruby
Stalkr^ has joined #ruby
<Stalkr^> Hey all, how come the first line returns zero mp3 files, the second return all? http://pastie.org/8343799
dodosan has quit [Ping timeout: 260 seconds]
<MrZYX> hm, try without a space after the ,
<Stalkr^> That did it, thanks
<Stalkr^> Seems like it takes ' ' as part of the extension
<MrZYX> yup
<MrZYX> part of the pattern, the {foo,bar} syntax isn't specific to extensions
ewnd9 has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
<MrZYX> /home/{john,bob}/music/**/*
yacks has joined #ruby
<Stalkr^> It's basically this OR this OR this OR.. this, right?
<MrZYX> yup
radic has quit [Ping timeout: 260 seconds]
ravster has joined #ruby
mklappstuhl has joined #ruby
<Stalkr^> m3u doesn't really need yaml, but if I wanted a txt for the user to read with yaml syntax, what would be the easiest way to break / into a new array?
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Stalkr^> If that make sense
<MrZYX> not sure, if you want to turn "foo/bar" into ["foo", "bar"] use the split method
plotcock87 has joined #ruby
<Stalkr^> ['music', ['Artist 1', ['First Song 1', 'Second Song 2'], 'Artist 2', ['First Song 1']]] or something like that
<Stalkr^> Wouldn't split just make it one, long array?
<MrZYX> one per path
<Stalkr^> Sweet, will test
<MrZYX> which you then can use to combine it into that datastructure
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
dmiller has joined #ruby
<MrZYX> if you want to dump it as yaml a hash structure like {'music' => {'Artist' => ['Song1', 'Song2'], 'Artist2' => [...]}} might be handy
<Stalkr^> I don't know how to that though, I have only read about arrays
colonolGron has joined #ruby
Xeago_ has joined #ruby
<Stalkr^> Wasn't as easy as just using ·split() unfortunately http://pastie.org/8343816
<MrZYX> sure, it makes one flat array per file
skulker has joined #ruby
<MrZYX> you'd need to build the nested structure manually from that
<Stalkr^> I see
<Stalkr^> Might be a job for another day, not sure how I would do this now
jibi has quit [Read error: Operation timed out]
dmiller has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
atno has joined #ruby
colonolGron has quit [Read error: Connection reset by peer]
colonolGron has joined #ruby
browndawg has joined #ruby
joshu has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
dash_ has quit [Ping timeout: 241 seconds]
einarj has quit [Remote host closed the connection]
joshu has joined #ruby
mihirrege has joined #ruby
robonerd has left #ruby ["..."]
St_Marx has quit [Ping timeout: 240 seconds]
radic has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Soliah has quit [Quit: Soliah]
Xeago has joined #ruby
dash_ has joined #ruby
elaptics is now known as elaptics`away
jibi has joined #ruby
St_Marx has joined #ruby
elaptics`away is now known as elaptics
atno has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
atno has joined #ruby
Popple has joined #ruby
xk_id has quit [Quit:
mansi has quit [Ping timeout: 240 seconds]
DrCode has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
atno has quit [Ping timeout: 260 seconds]
yacks has quit [Ping timeout: 264 seconds]
atno has joined #ruby
schaerli has joined #ruby
yacks has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
zz_michael_mbp is now known as michael_mbp
skulker has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
karlfreeman has joined #ruby
mattlins has joined #ruby
Domon_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
colonolGron has quit [Quit: Lost terminal]
rgbdev has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
Stalkr^ has quit [Quit: Leaving...]
ananthakumaran has joined #ruby
nari has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
jkamenik1 has left #ruby [#ruby]
schaerli has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 245 seconds]
yuhsien_ has joined #ruby
karnowski has joined #ruby
notbrent_ has joined #ruby
mcdk has joined #ruby
browndawg has joined #ruby
Banistergalaxy has joined #ruby
AndChat- has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
xcfox has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
maycon has quit [Quit: Saindo]
Advocation has joined #ruby
leehambley has joined #ruby
moosya has quit [Quit: moosya]
murz has joined #ruby
mcdk has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
siwica has quit [Ping timeout: 245 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
xcfox has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
Bira has joined #ruby
Evixion has joined #ruby
Bira has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
freeayu__ has joined #ruby
eka has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
DrCode has quit [Remote host closed the connection]
schaerli has joined #ruby
Bira has joined #ruby
fridim__ has joined #ruby
Stalkr^ has joined #ruby
schaerli has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
Lauritz_ has joined #ruby
Stalkr^ has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
alx- has joined #ruby
LMolr has joined #ruby
atmosx has joined #ruby
carraroj has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
Lauritz_ has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
shaunbaker has quit [Remote host closed the connection]
aryaching has joined #ruby
hogeo has joined #ruby
Advocation has quit [Quit: Advocation]
peregrine81 has joined #ruby
ayaz has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
dash_ has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
Guest5762 has joined #ruby
Bira has quit [Remote host closed the connection]
greenrose has quit [Ping timeout: 256 seconds]
mansi has quit [Ping timeout: 248 seconds]
kil0byte has joined #ruby
kofno has joined #ruby
Bira has joined #ruby
Speed has joined #ruby
adambeynon has joined #ruby
cody-- has quit [Quit: derp]
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
hogeo has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
nomadic has quit [Ping timeout: 256 seconds]
dash_ has joined #ruby
okinomo has joined #ruby
LMolr has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Remote host closed the connection]
fantazo has joined #ruby
Beoran__ has joined #ruby
jibi has quit [Quit: .]
nomadic has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
sloucher has joined #ruby
jp- has joined #ruby
robbyoconnor has quit [Ping timeout: 257 seconds]
noop has joined #ruby
mongrelion has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
sr78ger has joined #ruby
<mongrelion> Hi there.
kofno has quit [Ping timeout: 264 seconds]
tvw has quit []
zoee has joined #ruby
einarj has joined #ruby
leehambley has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
row has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
fourqq has joined #ruby
mansi has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
okinomo has quit [Ping timeout: 260 seconds]
row has joined #ruby
okinomo has joined #ruby
leehambley has joined #ruby
mark- has quit [Ping timeout: 260 seconds]
Stalkr^ has joined #ruby
mark- has joined #ruby
staafl has quit [Ping timeout: 248 seconds]
kobain has joined #ruby
Stalkr^ has quit [Ping timeout: 248 seconds]
siwica has joined #ruby
mikecmpbll has joined #ruby
okinomo has quit [Ping timeout: 248 seconds]
aryaching_ has joined #ruby
Xeago_ has joined #ruby
Advocation has joined #ruby
ravster has left #ruby [#ruby]
michalkozminski has quit [Remote host closed the connection]
timonv has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
sailias has quit [Ping timeout: 245 seconds]
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
michael_mbp is now known as zz_michael_mbp
mansi has quit [Ping timeout: 248 seconds]
relix has quit [Ping timeout: 256 seconds]
row has quit [Remote host closed the connection]
row_ has joined #ruby
relix has joined #ruby
freeayu__ has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
mlpinit has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Remote host closed the connection]
zarul has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
corpuscle has quit [Quit: corpuscle]
zarul has joined #ruby
okinomo has joined #ruby
hamakn has joined #ruby
Guest57921 is now known as guyz
IceDragon has joined #ruby
row_ has quit [Quit: Leaving]
guyz is now known as Guest68920
row has joined #ruby
quoin has quit [Remote host closed the connection]
T_T has joined #ruby
quoin has joined #ruby
hamakn has quit [Remote host closed the connection]
Guest5762 has quit [Remote host closed the connection]
snovak has joined #ruby
quoin has quit [Ping timeout: 256 seconds]
|jemc| has joined #ruby
Xeago_ has quit [Ping timeout: 248 seconds]
Bira has joined #ruby
timonv has quit [Remote host closed the connection]
MrSamuel has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Guest56155 has joined #ruby
Emmanuel_Chanel has joined #ruby
ehaliewicz has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
T_T has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
lukec has joined #ruby
<hoelzro> ahoy
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Guest68920 has quit [Changing host]
Guest68920 has joined #ruby
T_T has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Guest68920 is now known as digifiv5e
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
ehaliewicz has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
Emmanuel_Chanel has joined #ruby
siwica has quit [Read error: Operation timed out]
row has quit [Quit: Leaving]
okinomo has quit [Ping timeout: 260 seconds]
okinomo has joined #ruby
row248 has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
mlpinit has quit [Remote host closed the connection]
ericwood has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
Stalkr^ has joined #ruby
row248 has quit [Quit: Leaving]
ravster has joined #ruby
RDash[AW] is now known as RDash
LMolr has joined #ruby
knigitz has joined #ruby
Stalkr^ has quit [Ping timeout: 264 seconds]
kvirani has joined #ruby
predator217 has quit [Ping timeout: 252 seconds]
|jemc| has quit [Ping timeout: 245 seconds]
Nenor has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
nemesit|znc has joined #ruby
niklasb has quit [Read error: Operation timed out]
JimmyNeutron has joined #ruby
mattlins has quit [Quit: Connection closed for inactivity]
quoin has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
nouitfvf has joined #ruby
hanmac has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
Popple has quit [Quit: Computer has gone to sleep.]
okinomo has quit [Ping timeout: 256 seconds]
yves has joined #ruby
yves has quit [Client Quit]
schaerli has joined #ruby
Bira has quit [Ping timeout: 248 seconds]
okinomo has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
Nisstyre-laptop has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
lyanchih has joined #ruby
Nisstyre-laptop is now known as nisstyre
vlad_starkov has quit [Ping timeout: 248 seconds]
Bira has joined #ruby
<hanmac> banisterfiend: you should watch Animaniacs ... i think you are old enough to understand the jokes ;D
xcfox has left #ruby ["Ухожу я от вас (xchat 2.4.5 или старше)"]
heftig has joined #ruby
dsferreira has quit [Quit: This computer has gone to sleep]
<banisterfiend> Hanmac did u watch most recent A.T ?
dmiller has joined #ruby
<hanmac> i did at this time ... watched Earth and Water ... FlamePrincess as King is AWESOME ... i want to see how she kicks Azulas Butt from Avatar ;D
mongrelion has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
<hanmac> yeah ... a sandwich with "Lobster Soul" ;D
shredding has joined #ruby
BizarreCake has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
siwica has joined #ruby
lyanchih has quit [Quit: lyanchih]
peregrine81 has quit []
BillCriswell has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
T_T has quit [Remote host closed the connection]
r0bglees0n has joined #ruby
<LMolr> is there a quick way to convert an integer to a byte string?
nignaztic has joined #ruby
T_T has joined #ruby
nazty has quit [Read error: No route to host]
schaerli has quit [Remote host closed the connection]
<LMolr> for example 255 -> "\xff", 256 -> "\x01\xff"
<LMolr> hmsimha, no. 256 -> "\x01\x00"
Emmanuel_Chanel has quit [Quit: Leaving]
<canton7> >> 255.chr
<eval-in> canton7 => "\xFF" (https://eval.in/49640)
Emmanuel_Chanel has joined #ruby
snovak has joined #ruby
<LMolr> canton7, i need to convert an integer above the byte range
einarj has quit [Ping timeout: 248 seconds]
<canton7> aah gotcha
nomenkun has joined #ruby
lyanchih has joined #ruby
<canton7> [256].pack('n')
<canton7> >> [256].pack('n')
<eval-in> canton7 => "\x01\0" (https://eval.in/49641)
marsLantern has quit [Quit: marsLantern]
<LMolr> canton7, woot thank you :)
<canton7> note that 'n' will *always* output two bytes
<LMolr> oops
okinomo has quit [Ping timeout: 260 seconds]
marsLantern has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
snovak has quit [Ping timeout: 256 seconds]
<apeiros> if you want it arbitrarily sized, you can go via .to_s(2).pack("b*")
<apeiros> >> [[255.to_s(2)].pack("b*"), [256.to_s(2)].pack("b*")]
<eval-in> apeiros => ["\xFF", "\x01\0"] (https://eval.in/49642)
quoin has joined #ruby
mklappstuhl has joined #ruby
marsLantern has quit [Client Quit]
<apeiros> @ LMolr ^
Suit_Of_Sables has left #ruby ["WeeChat 0.4.0"]
<LMolr> apeiros, many thanks, trying it out!
aaronmcadam has joined #ruby
<canton7> nice trick, that
<apeiros> canton7: using it for alpha32 conversions in one of my engines
Suit_Of_Sables has joined #ruby
marsLantern has joined #ruby
shredding has quit [Quit: shredding]
<LMolr> this is absolutely useful
Stalkr^ has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
tomzx_mac has joined #ruby
Stalkr^ has quit [Ping timeout: 248 seconds]
Emmanuel_Chanel has quit [Remote host closed the connection]
schaerli has joined #ruby
kvirani has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kvirani has joined #ruby
ravster has quit [Remote host closed the connection]
Popple has joined #ruby
rehat has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
niklasb has joined #ruby
okinomo has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
Bira has quit [Remote host closed the connection]
timonv has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
Bira has joined #ruby
Bira has quit [Remote host closed the connection]
Stalkr^ has joined #ruby
hamed_r has joined #ruby
blaxter_ has joined #ruby
ehc has joined #ruby
<nouitfvf> >> [34,104,105,32,114,117,98,121,32,112,114,111,103,114,97,109,109,101,114,115,32,94,95,95,95,95,94,34,32,10].pack("\x55\x2a")
<eval-in> nouitfvf => "\"hi ruby programmers ^____^\" \n" (https://eval.in/49643)
<nouitfvf> no, no
<nouitfvf> >> $><<[34,104,105,32,114,117,98,121,32,112,114,111,103,114,97,109,109,101,114,115,32,94,95,95,95,95,94,34,32,10].pack("\x55\x2a")
<eval-in> nouitfvf => "hi ruby programmers ^____^" ... (https://eval.in/49644)
hogeo has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Leaving.]
Bira has joined #ruby
taion809 is now known as zz_taion809
platzhirsch has joined #ruby
hamed_r has quit [Remote host closed the connection]
okinomo has quit [Ping timeout: 260 seconds]
<platzhirsch> I use Sidekiq and provide my own logger formatter. I want to display for each logging statement the id of the current worker. The formatter is a singleton, as is the logger. Any idea how I can persis this information?
<platzhirsch> I thought Process.id works, I mapped the worker id to the Process.id, but apparently that changes as Sidekiq freely schedules the different processes
<MrZYX> Doesn't sidekiqs own formatter do this?
jibi has joined #ruby
row248 has joined #ruby
<platzhirsch> MrZYX: it only prints the context, which shows the class and thread id
<platzhirsch> but my worker are all, of course, from the same class, but with a different id (targets to work on)
<shevy> what is the shortest way to call a method recursively
<shevy> def foo(i); if i.is_a? Array # call itself recursively
okinomo has joined #ruby
<shevy> right now I have it hardcoded
<shevy> but for longer method names, this is quite annoying
timonv has quit [Remote host closed the connection]
<rehat> I'm new to rails and ruby and I need some clarification with this http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/ in the Rating class there is a self.form_cost method with a bunch of conditions with new() where does this new object go
<LMolr> apeiros, why does [2.to_s(2)].pack('b*') yield "\x01" ?
<platzhirsch> UTC Timestamp------- PID-- ThreadID----- LLvl YourKlass- JobID-------- at least a job id
Bira has quit [Remote host closed the connection]
Bira has joined #ruby
<LMolr> apeiros, i was expecting a \x02 :O
Cyrus has quit [Quit: Cyrus.sleep()]
<apeiros> huh? odd…
dankest has joined #ruby
<apeiros> oh
<MrZYX> rehat: it's just returned. It's the result of the if statement and the if statement is the last expression in the method, thus returned
<apeiros> LMolr: you need a leading zero
JimmyNeutron has quit [Quit: Leaving]
wallerdev has joined #ruby
T_T has quit [Remote host closed the connection]
vramana has joined #ruby
cads has quit [Ping timeout: 252 seconds]
vramana has quit [Client Quit]
<r0bglees0n> platzhirsch: sidekiq uses a pool of threads
<LMolr> apeiros, where?
<apeiros> errr
<platzhirsch> r0bglees0n: right
<apeiros> seems still wrong. wtf
greenrose has joined #ruby
browndawg has joined #ruby
<r0bglees0n> there's one process then
<LMolr> this is so puzzling. :(
<hanmac> apeiros hm it seems its not so nice reversable ;P
<rehat> MrZYX: is that def self.form_cost(cost) a constructor? if so what is the def initialize(letter) for?
<MrZYX> rehat: no, it's a class method
nomenkun has quit [Read error: Connection reset by peer]
<rehat> oh
<shevy> I have a method that has 13 lines of code. should I turn this into a class?
Bira has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
<rehat> MrZYX: ok thanks I get it know
rcosta has joined #ruby
<r0bglees0n> shevy: questions like that are impossible to answer with any certainity. post some code.
<platzhirsch> r0bglees0n: no, there are multiple processes. It's a bit flexible
<apeiros> LMolr: hrm, I'd like to investigate it. but I'm at work atm and should finish this.
<r0bglees0n> platzhirsch: you're running multiple clients then?
kvirani has joined #ruby
<platzhirsch> you can check it yourself, start Sidekiq and look at the processes
<platzhirsch> ps -ef | grep "sidekiq"
T_T has joined #ruby
<LMolr> apeiros, no problem. i appreciate your interest :)
<r0bglees0n> okay, so sidekiq can have one process(one client) that distributes work throughout threads, or it can expand to multiple processes
quoin has joined #ruby
<platzhirsch> r0bglees0n: I mean they write on their site that they use one process to handle multiple jobs
<r0bglees0n> it still uses threads in both cases but you get more throughput
<platzhirsch> but I always see multiple processes in my OS
dmiller has joined #ruby
ehc has quit [Quit: ehc]
<platzhirsch> Which does not mean that they don't use a thread pool, I believe that they use one process for multiple threads but could use multiple processes if there are too many jobs. But maybe I just get that wrong
<r0bglees0n> no, sidekiq doesn't auto-scale the clients
<r0bglees0n> you configure that
Guest60186 has joined #ruby
shredding has joined #ruby
goganchic has quit []
snickle has joined #ruby
<r0bglees0n> if what youre saying is true, it has become resque, the thing it wanted to improve
<r0bglees0n> i find it unlikely
shredding has quit [Client Quit]
Popple has quit [Quit: Computer has gone to sleep.]
<platzhirsch> No, I guess I am simply wrong I just grepped again and I see one process
<platzhirsch> sidekiq [6 of 6 busy]
jb41 has joined #ruby
<platzhirsch> I confused it, because htop dispalys multiple processes, why so ever
<MrZYX> htop displays the threads
<MrZYX> try the tree view
<MrZYX> also there an option to highlight threads in a different color
<platzhirsch> ah, thanks :)
butblack has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
<platzhirsch> so my bad for spreading the confusion
lkba has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
nomenkun has quit [Read error: Connection reset by peer]
<r0bglees0n> platzhirsch: no worries.
s2013{Texas} has joined #ruby
mrsolo has joined #ruby
nomenkun_ has joined #ruby
<platzhirsch> anyway, I cannot access anything in the logger formatter that would give me information about what worker has called a log statement
<r0bglees0n> self.class __method__
<r0bglees0n> log that
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has quit [Ping timeout: 264 seconds]
nitish has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
otherj has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
quoin has quit [Ping timeout: 248 seconds]
eka has joined #ruby
eka has quit [Max SendQ exceeded]
leehambley has joined #ruby
eka has joined #ruby
<platzhirsch> or maybe the thread does not change, I tried it again by exploiting the Thread.current hash store, and it seems to work, there I put my id and it gets correctly printed
<platzhirsch> wee :)
<r0bglees0n> it might not
<platzhirsch> but it can?
lyanchih has quit [Quit: lyanchih]
<r0bglees0n> yeah, i believe so
<r0bglees0n> sidekiq is implemented on top of actors/celluloid: https://github.com/celluloid/celluloid
<MrZYX> sidekiq reuses worker threads but lets them crash if the job raises an exception (and spawns a replacement)
<r0bglees0n> it emphaizes concurrency and not neccesarily parallelism/parallel threads
<platzhirsch> ok, but since I add the identifier in perform()
row248 has quit [Remote host closed the connection]
<r0bglees0n> MrZYX: does it try to execute work in parallel or concurrently?
<MrZYX> MRI doesn't allow parallel execution, but I think it just completely delegates that concern to celluloid (which I didn't look into yet)
threesome has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
<r0bglees0n> "Automatic "deadlock-free" synchronization: Celluloid uses a concurrent object model which combines method dispatch and thread synchronization. Each actor is a concurrent object running in its own thread, and every method invocation is wrapped in a fiber that can be suspended whenever it calls out to other actors, and resumed when the response is available."
<r0bglees0n> so if your job called another actor, its concurrent
carraroj has joined #ruby
thinkclay has joined #ruby
thinkclay has quit [Client Quit]
timonv has joined #ruby
anykey_ has joined #ruby
anykey_ is now known as ericwood
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
Dave is now known as Guest48456
okinomo has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Remote host closed the connection]
nomenkun_ has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
mike has joined #ruby
mike is now known as Guest41585
dancardamore has joined #ruby
rehat has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Kricir has joined #ruby
kvirani has joined #ruby
yourmysin has quit [Ping timeout: 260 seconds]
dankest has quit [Quit: dankest]
tylersmith has joined #ruby
codecop has joined #ruby
shredding has joined #ruby
dagnachew has joined #ruby
Kricir has quit [Ping timeout: 263 seconds]
<LMolr> anyone else got a one-liner to convert an integer to bytes?
<LMolr> i won't fall back to loops of divmod s
<platzhirsch> LMolr: integers of arbitraly length?
dankest has joined #ruby
quoin has joined #ruby
Astralum has joined #ruby
<platzhirsch> LMolr: 123.to_s.each_bytes.to_a
Astralum has quit [Client Quit]
mklappstuhl has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
mklappstuhl has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
nitish has quit [Remote host closed the connection]
jb41 has quit [Ping timeout: 264 seconds]
Guest48456 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Ziarkaen has joined #ruby
<Morrolan> Erm. No, a string representation of an integer won't be made of the same bytes as the integer if represented in a binary form.
vlad_sta_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
<Ziarkaen> I want to write a class Foo, similar to the built-in Struct, which yields a class when instantiated (with parameters). So I could write e.g. class MyClass < Foo(a); end.
schaerli has quit [Remote host closed the connection]
blaxter_ has quit [Quit: foo]
cenan has joined #ruby
wallerdev has quit [Quit: wallerdev]
dangerousdave has quit [Read error: Connection reset by peer]
<Banistergalaxy> Ziarkaen it would be a method bb
dangerousdave has joined #ruby
forced_request has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<Ziarkaen> Banistergalaxy: bb?
forced_request has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<r0bglees0n> Ziarkaen: def Foo(a); Class.new(a) {}; end; class A < Foo(StandardError); end
SHyx0rmZ has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
<LMolr> for example. 0 -> "\x00", 1 -> "\x01", ..., 255 -> "\xff", 256 -> "\x01\x00", ... and so on ...
mercwithamouth has quit [Ping timeout: 245 seconds]
<Ziarkaen> r0bglees0n: Thanks.
vaicine has joined #ruby
<platzhirsch> LMolr: ah okay, maybe with Array.pack?
mmccandless has joined #ruby
<LMolr> platzhirsch, i am trying, but getting weird results
snickle has quit [Quit: snickle]
Monie has joined #ruby
RichardBaker has joined #ruby
<LMolr> also, i dont understand why ("\x00".."\xff").length == 58
<LMolr> to me it should be 256
sayan has quit [Ping timeout: 248 seconds]
snath has quit [Ping timeout: 264 seconds]
<LMolr> sorry, ("\x00".."\xff").to_a.length
<platzhirsch> 123.to_s.split('').map(&:to_i).pack("ccc") =>"\x01\x02\x03"
RichardBaker has quit [Client Quit]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Evixion has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
<LMolr> platzhirsch, that should yield "\x7b"
snath has joined #ruby
<platzhirsch> oh right ^^
<platzhirsch> I packed the individual numbers
<platzhirsch> digits
Evixion has joined #ruby
Nogbit has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<mmccandless> I am new to rails and I keep running into an error when downloading the rails gems. "ERROR: faild to build native extension. extconf.rb failed. could not create Makefile..." Is anyone familiar with this. I'm on Windows 8 unfortunately.
BillCriswell has quit [Remote host closed the connection]
<platzhirsch> mmccandless: you are probably missing a native libary
T_T has quit [Remote host closed the connection]
kaldrenon has joined #ruby
<platzhirsch> oh nvm
Nogbit has quit [Quit: Leaving.]
siwica has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
jaimef has quit [Excess Flood]
jaimef has joined #ruby
browndawg has joined #ruby
Nenor has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
kaldrenon has quit [Ping timeout: 268 seconds]
spider-mario has joined #ruby
Nenor has left #ruby [#ruby]
sayan has joined #ruby
dodosan has quit [Ping timeout: 268 seconds]
Guest41585 has quit [Ping timeout: 264 seconds]
browndawg has quit [Client Quit]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
huoxito has joined #ruby
dhruvasagar has joined #ruby
sayan has quit [Excess Flood]
wallerdev has joined #ruby
paulodiniz has joined #ruby
sayan has joined #ruby
sniffingcats has joined #ruby
spider-mario_ has joined #ruby
adambeynon has joined #ruby
spider-mario has quit [Ping timeout: 248 seconds]
paulodiniz has quit [Client Quit]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
paulodiniz_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
rehat has joined #ruby
T_T has joined #ruby
Ox6abe has joined #ruby
T_T has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby
T_T has joined #ruby
dancardamore has quit [Read error: Operation timed out]
spider-mario_ is now known as spider-mario
otherj has quit []
motto has joined #ruby
staafl has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
m8 has quit [Read error: Operation timed out]
Kricir has joined #ruby
vlad_starkov has joined #ruby
mrsolo has joined #ruby
BadQuanta has joined #ruby
snath has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
jibi has quit [Ping timeout: 260 seconds]
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_sta_ has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
<Ziarkaen> Why am I not able to acces my class variable here? https://gist.github.com/beneills/6652551
vlad_starkov has quit [Read error: Operation timed out]
<canton7> Ziarkaen, 'def self.newe'?
<canton7> not entirely sure what you're trying to do with that snippet
maroloccio has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
dankest has quit [Quit: Peace]
<hanmac> Ziarkaen: define RegexpApplication as method not as a class
siwica has joined #ruby
lyanchih has joined #ruby
nism has joined #ruby
corpuscle has joined #ruby
zarul has quit [Read error: Connection reset by peer]
<Ziarkaen> Hanmac: Hanmac. OK, I've changed it to a method, but now I cannot access it from other files in my project (the method is local to the file in which it's defined)
Emmanuel_Chanel has quit [Remote host closed the connection]
quoin has joined #ruby
Emmanuel_Chanel has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
nism has left #ruby ["Leaving"]
LMolr has quit [Ping timeout: 248 seconds]
<Ziarkaen> Actually, something's seriously wrong. def foo; 42; end; puts foo returns error: "undefined method foo"
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
spider-mario has joined #ruby
<canton7> fun. repro?
amacgregor has joined #ruby
mihirrege has quit [Ping timeout: 240 seconds]
Nogbit has joined #ruby
Guest56155 has quit [Remote host closed the connection]
Popple has joined #ruby
ziyadb has joined #ruby
ziyadb has quit [Changing host]
ziyadb has joined #ruby
ziyadb has quit [Changing host]
ziyadb has joined #ruby
Ox6abe has quit [Remote host closed the connection]
spider-mario has quit [Client Quit]
schaerli has joined #ruby
mihirrege has joined #ruby
Nogbit has quit [Client Quit]
popl has joined #ruby
havenwood has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
<shevy> Ziarkaen I do not believe you
dmiller has joined #ruby
hakunin has quit [Ping timeout: 245 seconds]
mmccandless has quit []
schaerli has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 256 seconds]
T_T has quit [Remote host closed the connection]
murz has quit [Quit: Leaving...]
<r0bglees0n> >> def foo; 42; end; puts foo
<eval-in> r0bglees0n => 42 ... (https://eval.in/49649)
dmiller has quit [Ping timeout: 245 seconds]
LMolr has joined #ruby
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
zero7 has quit [Ping timeout: 260 seconds]
twoism has joined #ruby
davidboy has quit [Ping timeout: 246 seconds]
dnyy has quit [Ping timeout: 264 seconds]
denysonique has quit [Ping timeout: 245 seconds]
Evixion has quit []
mattyohe has quit [Ping timeout: 264 seconds]
rndstr has quit [Ping timeout: 260 seconds]
HavokOC has quit [Ping timeout: 245 seconds]
karlfreeman has quit [Ping timeout: 240 seconds]
Guest85414__ has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 261 seconds]
cenan has left #ruby [#ruby]
lectrick has quit [Ping timeout: 245 seconds]
<Mon_Ouie> Ziarkaen: Class.new { … } doesn't affect the scope of class variables
keyvan_ has quit [Ping timeout: 260 seconds]
<Mon_Ouie> (You'd need class_variable_set to set it on the right class)
<davidcelis> class << self; attr_accessor :regexp; end;
Scorchin_ has quit [Ping timeout: 252 seconds]
kapowaz has quit [Ping timeout: 252 seconds]
<Mon_Ouie> That doesn't behave a class variable though
zoee has quit [Ping timeout: 260 seconds]
chuk_ has quit [Ping timeout: 260 seconds]
mihirrege has quit [Remote host closed the connection]
AdmiraI has joined #ruby
mihirrege has joined #ruby
Ox6abe has joined #ruby
mrsolo has quit [Quit: Leaving]
lyanchih has quit [Quit: lyanchih]
maroloccio has joined #ruby
carraroj has joined #ruby
godd2 has joined #ruby
marsLantern has quit [Quit: marsLantern]
fuhgeddaboudit has joined #ruby
snovak has joined #ruby
carraroj has quit [Ping timeout: 264 seconds]
snath has joined #ruby
mansi has joined #ruby
hakunin has joined #ruby
Popple has quit [Quit: Computer has gone to sleep.]
bricker`LA has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
shredding has left #ruby [#ruby]
ewnd9 has quit [Ping timeout: 260 seconds]
schaerli has joined #ruby
Ox6abe has quit [Remote host closed the connection]
zoee has joined #ruby
mary5030 has joined #ruby
endash has quit [Quit: endash]
fourqq has quit [Ping timeout: 260 seconds]
endash has joined #ruby
Bira has joined #ruby
snickle has joined #ruby
schaerli has quit [Remote host closed the connection]
martxel has quit [Quit: WeeChat 0.4.1]
Kricir has joined #ruby
dash_ has quit [Ping timeout: 268 seconds]
AndChat| has quit [Quit: Bye]
lkba has joined #ruby
martxel has joined #ruby
martxel is now known as Guest48577
mklappstuhl has quit [Remote host closed the connection]
dash_ has joined #ruby
schaerli has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
paulodiniz_ has quit [Quit: paulodiniz_]
aryaching_ has quit [Ping timeout: 264 seconds]
denysonique has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
schaerli has quit [Remote host closed the connection]
sayan has joined #ruby
zarubin has joined #ruby
Bira has quit [Ping timeout: 268 seconds]
<shevy> is there a simple way from foo-1.0.xz and foo-1.1.tar.bz2 to determine the associated file type? in this case, it would be ".xz" in the first example and ".tar.bz2" in the second
DanKnox_away is now known as DanKnox
Aryasam has joined #ruby
<canton7> either you split on the first '.' (prone to errors too), or you use a list of extensions
<canton7> (or a list of valid two-segment extensions)
browndawg has quit [Ping timeout: 260 seconds]
goganchic has joined #ruby
LMolr has quit [Ping timeout: 245 seconds]
<Morrolan> The 'file type' of the later is a bzip2-compressed file, there is no such thing as a .tar.bz2 file type. ;)
sayan has quit [Read error: Connection reset by peer]
<Morrolan> But yea, without a list of valid combinations you won't get far.
<hanmac> Morrolan: yes and no
<shevy> .tar is still useless as part of a filename Morrolan
<lupine> not necessarily
<Morrolan> tar.xls containing prices of tar?
<Morrolan> (Silly example, of course)
<shevy> all my input are source tarballs
<Morrolan> But point is, what's a 'nearly-extension', and what a 'filename', is up to the specific use case, hence you'll need a list. :)
<lupine> anyway, base, extension = filename.split(".", 2)
<canton7> people do sometimes put '.' in their filenames. irritating, but hey
<lupine> you can then split extension on . and unwrap
<shevy> hmmmm
<hanmac> Morrolan: my file manager tells me: "application/x-bzip-compressed-tar)" but i think it uses some kind of magic
<shevy> yeah canton7
<canton7> shevy, if you know everything's a tarball, just have an exception for tarballs
<shevy> let me think ...
<Morrolan> Hanmac: It probably just looks whether it ends in .tar.bz2, since it's such a common case.
<shevy> there is ... tar.xz tar.gz tar.xz ...
nisstyre has quit [Quit: Leaving]
<shevy> only .zip
<hanmac> shevy: there is also .txz .tgz .tbz
<Morrolan> Or maybe bzip2 stores the original file's name in its header, somewhere, and it inspects that.
<shevy> hmm .gz .xz bz2 oops... meant tar.bz2
<shevy> yeah
<shevy> but I think that's like 99,999% cases covered
BraddPitt has joined #ruby
<lupine> it probably just uses file
zz_michael_mbp is now known as michael_mbp
<shevy> I think I will simply make an exception for those three then, thanks
<hanmac> file gives me this: "application/x-tar; charset=binary compressed-encoding=application/x-bzip2; charset=binary; charset=binary"
Kar- has quit [Read error: Connection reset by peer]
dagnachew has quit [Quit: WeeChat 0.4.1]
<shevy> hehe
<lupine> file --mime-type <filename> will give you a mime type, and you can then use handlers on them progressively, if you don't fancy rough extension-based stuff
<shevy> double entries Hanmac?
<hanmac> shevy & lupine: file has option for that: "-z, --uncompress try to look inside compressed files"
<canton7> this can probably be done better, but: ^(.*?)(?:\.tar)?\.[^.]+$
<lupine> lots of options, aye
rins has joined #ruby
<Morrolan> Hanmac: Heh, that'd be fun in a file manager. :P
<hanmac> canton7: yeah but it does not cover the short forms
Lewix has joined #ruby
<canton7> Hanmac, hmm?
mihirrege has quit [Ping timeout: 240 seconds]
<hanmac> canton7: for sample this: " .txz .tgz .tbz "
<canton7> Hanmac, I thought he was trying to find the filename, sans extension
<canton7> if the extension is just one 'segment', then it's dead easy to strip - whether it's a tar short form or not
<shevy> yeah
banisterfiend has joined #ruby
<shevy> it's things like .tar.xz that was annoying, but come to think of it, I can really think of only .tar.xz .tar.bz2 and .tar.gz that would not match to a simple .split('.')[-1]
<shevy> so I will just match to three special cases and move on!
nerdy has joined #ruby
<canton7> :)
vim_shim has quit [Ping timeout: 248 seconds]
thesheff17 has joined #ruby
<shevy> a few years ago most tarballs were .tar.bz2, these days .tar.xz seems to be the most popular one
einarj has joined #ruby
<canton7> cos lzma2 is good!
quoin has joined #ruby
<Morrolan> Oh? Most which I see are still .tar.gz.
<shevy> hmm
<Morrolan> Only time I see .tar.xz is with Arch's packages. :P
<shevy> Morrolan gimme some time, I will write a script that collects about 2400 tarballs and then does a statistic page :D
<shevy> ahh I am dumb
<Morrolan> Okay. :D
<shevy> that won't work well, some tarballs are released in several formats :(
browndawg has joined #ruby
dmiller has joined #ruby
Notte has joined #ruby
DanKnox is now known as DanKnox_away
zarubin has quit [Read error: Operation timed out]
<shevy> is there any advantage for people still using .tar.gz? I always thought better compression ratio is almost always better
<Morrolan> Universally supported.
kapowaz has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
<BadQuanta> I absolutely love ruby, but I really miss the ability to inline comments.. Sometimes, when calling functions a little /*aside*/ between parameters can clarify so much.
<Morrolan> Docstring?
siwica has quit [Ping timeout: 245 seconds]
<platzhirsch> The Yajl JSON parser rocks
cooldman224 has joined #ruby
<platzhirsch> shevy: oh, I gunzip all my files, too. What else should one use, bzip2?
<shevy> platzhirsch nah, I found bzip2 to incur a rather heavy toll when extracting, but .tar.xz I find really ok so far
<BadQuanta> Morrolan, Was that in reply to my inline comment comment?
<BraddPitt> hi #ruby
<BadQuanta> "Hi Bradd"
<shevy> "Hi Pitt"
<platzhirsch> so BraddPitt programs Ruby, too? Nice
<shevy> you can't be an actor forever
<shevy> sometimes you need to do something for your brain
<popl> the shunning from World War Z came quickly
dmiller has quit [Ping timeout: 260 seconds]
<BadQuanta> popl, lol
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Morrolan> badquanta: Oh, sorry, yea. Though I misread your question. You want to comment parameters when calling a function, I meant you wanted to comment them when defining one.
<BraddPitt> yes platzhirsch in between filming
<BadQuanta> Morrolan, exactly. ;)
<platzhirsch> :o
fantazo has quit [Ping timeout: 248 seconds]
<Morrolan> badquanta: A cheap way is to split the method call across multiple lines, then you can add comments at the end of the line. ;D
<BadQuanta> Morrolan, if named-parameters were a ruby-default, I don't think I'd miss the functionality.
<BadQuanta> Morrolan, Very very true. But 90% of the time, what I want to say is something simple.. like: /*a*/, /*the*/, /*this*/
<Morrolan> Yea.
<Morrolan> Miss those, too.
<BadQuanta> :) I actually feel better. Thanks for commiserating. I guess that was the whole reason I mentioned it. ;)
Ziarkaen has quit [Remote host closed the connection]
<shevy> hehe
<platzhirsch> I have to define a block, proc or method that is called if the parsing is complete, but all I want is to use the value passed to the block? So do I just define a variable outside and then: = lambda { |ob| outside = obj } that looks silly
<Morrolan> In my earlier programs I've introduced a few subtle bugs by trying to use named parameters.
<Morrolan> (Coming from Python)
mary5030 has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 248 seconds]
<platzhirsch> I think I could use a Proc instead where the return is evaluated in the scope of the method
<BadQuanta> Morrolan, I'm sure there is a reason for its lack of use/standard that I don't understand well.
<Morrolan> I asked ape.iros once. He said that there was one, but that he prefers to forget it. :P
LMolr has joined #ruby
mary5030 has joined #ruby
<Morrolan> i.e. some silly reason which none really understand.
Popple has joined #ruby
quoin has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby
Es0teric has joined #ruby
<lupine> you can always pass a hash if you want a named-parameters-alike
Mon_Ouie has quit [Ping timeout: 264 seconds]
mumblerit is now known as mwlobby
Es0teric has quit [Max SendQ exceeded]
<lupine> the number of times I end up having to convert constructors to hashes, I'm contemplating making it my default behaviour
mwlobby is now known as mumblerit
lyanchih has joined #ruby
mumblerit is now known as mwlobby
mwlobby is now known as mumblerit
schaerli has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
neonlex has joined #ruby
rins has quit [Ping timeout: 248 seconds]
snovak has joined #ruby
<platzhirsch> can yields be nested?
vim_shim has joined #ruby
<platzhirsch> apparently, awesome
<apeiros> depends on how you mean that
<platzhirsch> so, for instance I define inside a method a Proc.new { |obj| yield obj }
<lupine> def a ; yield ; end ;def b ; yield ; end ; a { b { puts "yay" } }
<platzhirsch> and the method gets invoked with a block then it yields through
<hanmac> "yield yield yield yield" is also valid ruby
<apeiros> unless you .call that block, it won't yield
sayan has joined #ruby
neonlex has quit [Client Quit]
kofno has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
browndawg has left #ruby [#ruby]
elux has joined #ruby
kidoz has joined #ruby
snath has quit [Ping timeout: 268 seconds]
<shevy> guys, do you sometimes want to use stuff not only like: def foo; @foo but also def foo?; @foo
mikepack has quit [Remote host closed the connection]
banisterfiend has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
virt|a has quit []
dankest has joined #ruby
sayan has joined #ruby
jumpingcloud has joined #ruby
proxie has joined #ruby
intuxicated has joined #ruby
zarul has joined #ruby
<jumpingcloud> Hey people of the Ruby channel!
proxie has quit [Client Quit]
<jumpingcloud> Can anyone point me in the right direction?
mihirrege has joined #ruby
* hanmac smells a rails user
<popl> fee fi fo fum
Kricir has joined #ruby
<apeiros> jumpingcloud: up up down down left right left right
zarubin has joined #ruby
<jumpingcloud> I'm looking to get the indexes of regex matcher over a nested array.
<jumpingcloud> =D lol
<hanmac> popl yeah like that ... or did you play the first game of the "soul reaver" games?
<platzhirsch> apeiros: yes, the only thing I wasn't sure, if it has to be called inside the method or at any other place, and the latter case works, too
<popl> Hanmac: what?
<platzhirsch> Hanmac: I did that :D
Davey has joined #ruby
<popl> Hanmac: I never played all the way through it. What's that got to do with what I said though? :)
<hanmac> platzhirsch: did you remember the first spirit enemies? when they detect you they say: "i smell" or something similar
<platzhirsch> No, unfortunately not :D
User has quit [Read error: Connection reset by peer]
User_ has joined #ruby
<shevy> huh "pkgng ? pkgng is the new package management tool for FreeBSD"
<jumpingcloud> The closest I came was : p @pool.each_with_index{|i| @pool[i] =~ /T1A/ }
<shevy> and it is supposed to have ruby bindings https://github.com/baloo/libpkg-ruby/
<shevy> now all we need to do is ...
<shevy> ... find anyone using FreeBSD!!!
Kricir has quit [Ping timeout: 252 seconds]
<apeiros> jumpingcloud: do you intend elaborate your question or was that it?
<shevy> jumpingcloud there is some context missing :P
bamdad has joined #ruby
decoponio has quit [Quit: Leaving...]
<jumpingcloud> apeiros: I have a nested array, that contains Question id's and the Questions with the Answers like [[Q1][What is ruby?]],[[Q2][How's the weather]],etc
<jumpingcloud> i want the indexes of the Qid's that match a regex
kidoz has quit [Quit: Ухожу я от вас]
Xeago has quit [Read error: Connection reset by peer]
<jumpingcloud> i found this @pool.each_index.select{|i| @pool[i] =~ /myregex/}
<hanmac> jumpingcloud: what about @pool.grep(regex) ?
Xeago has joined #ruby
<jumpingcloud> but it'll only match things in the first layer of the array, so it returns nothing.
<jumpingcloud> Hanmac: Thanks for the lead, I'll check it out.
Xeago has quit [Read error: Connection reset by peer]
<canton7> it does pretty much what the sample you posted does...
<apeiros> jumpingcloud: since your array is nested, @pool[i] will return an array
Xeago has joined #ruby
<apeiros> you need @pool[i][1] =~ /…/
Bosox20051 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
maletor has joined #ruby
Xeago has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
maletor has quit [Client Quit]
Xeago has quit [Read error: Connection reset by peer]
maletor has joined #ruby
Xeago has joined #ruby
bricker`LA has joined #ruby
lyanchih has quit [Quit: lyanchih]
<jumpingcloud> apeiros: oh! yeah! duh, Thanks, I've been killing myself on this one forever.
maletor has quit [Client Quit]
siwica has joined #ruby
<jumpingcloud> apeiros: Thanks a lot man!
<apeiros> yw
brianpWins has quit [Quit: brianpWins]
robustus has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
goganchic has quit []
sloucher has quit [Quit: sloucher]
dankest has quit [Quit: Peace]
jb41 has joined #ruby
<shevy> I think I may have to start learning rails :(
shogo2040 has joined #ruby
rcosta has quit [Remote host closed the connection]
snath has joined #ruby
<shogo2040> does anyone know of a ruby stack installer which includes ruby/nginx/passenger/mongodb all setup similiar to how php developers have stuff like wamp/mamp/xampp ?
rgbdev has quit [Quit: rgbdev]
rcosta has joined #ruby
Ox6abe has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
* hanmac sprays holy water into shevy's face
michael_mbp is now known as zz_michael_mbp
<shevy> Hanmac who knows...
mary5030 has quit [Remote host closed the connection]
<shevy> Hanmac perhaps I may even have to ... START USING BUNDLER!!!
<shogo2040> ok.. googling... ah.. I'm here... reading at http://bundler.io/
<shogo2040> thanks!
<Morrolan> Bundler isn't a full stack installer, it's a tool to manage Ruby libraries.
ehaliewicz has joined #ruby
<shogo2040> ah.. i see..
Spami has joined #ruby
Spami has joined #ruby
<shogo2040> ok... I don't mind looking into this approach..
<Morrolan> I'm not aware of any full-stack installer. Myself I just use Vagrant + an automation framework.
<Morrolan> Well, if you produce something which does all the heavy lifting for you, then there might be quite some people interested. :)
<shogo2040> i tried the whole rvm/gem thing.. and i utterly failed
elux has quit [Quit: Leaving...]
<Morrolan> Hmm?
<shogo2040> i followed a bunch of tutorials too
<shogo2040> i got my stack almost working.. with Passenger barfing up errors
<shogo2040> then I gave up
<platzhirsch> my gosh my harvesting is harvesting like it has never harvested before, unfortunately it went rampage https://pbs.twimg.com/media/BUp9otuCEAAww-9.jpg:large
<Morrolan> Might be something which passenger's IRC channel can help with.
<shogo2040> yea.. but since I already spent like 16 hours pretending to be a wanna be tech ops... I figure its best to give up and research other approaches
karlfreeman has joined #ruby
<Morrolan> Heh. :)
<shogo2040> my expertise in setting up stacks is limited
rcosta_ has joined #ruby
<shogo2040> i like this bundler thing!
<shogo2040> maybe there is hope for me
<shogo2040> i will try out the bundler approach
dangerousdave has joined #ruby
<shogo2040> thanks so much for the info!
<shogo2040> i was thinking.. if I can get this setup.. I should make like a unix virtual image and just share it
<shogo2040> share it with other noobs
<shogo2040> i mean linux virtual image
Aryasam has quit [Read error: Connection reset by peer]
<Morrolan> Bundler will not help you set up your stack, and shevy wasn't talking to you when he started shouting about bundler. ;)
agent_white has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
Aryasam has joined #ruby
<shogo2040> Morrolan: well.. it doesn't hurt to try.. maybe it helps in contrast to rvm/gem -ing alone
<havenwood> shogo2040: So you're currently using Passenger Nginx module? By the way, there are many Rack web servers other than Passenger like Unicorn, Puma, Thin, Reel-Rack, etc. But yeah, ask Passenger guys for help if you want to go that way.
<shogo2040> i'll give myself 4 hours
<Morrolan> Okay then. :)
<shogo2040> havenwood.. hm.. thanks for the info!
siwica has quit [Ping timeout: 260 seconds]
rcosta has quit [Ping timeout: 260 seconds]
rndstr has joined #ruby
mary5030 has joined #ruby
<apeiros> shogo2040: I think the newest fad is vagrant. if I understood it correctly, you can get completely configured VMs
Emmanuel_Chanel has joined #ruby
mklappstuhl has joined #ruby
<apeiros> I think that's about as easy as it can get
dnyy has joined #ruby
mattyohe has joined #ruby
<Morrolan> apeiros: 'fad'? :o
<shogo2040> apeiros: hmm.. ok.. I will google that
<platzhirsch> oh, vagrant is really hip
<Morrolan> And nice. :)
zero7 has joined #ruby
<platzhirsch> well that's more like an insult, isn't it?
<apeiros> Morrolan: what's the question?
<Morrolan> apeiros: 'fad' sounds a tad snotty. ;D
<apeiros> platzhirsch: hip? depends. in groups of non-hip people, it probably is
<shogo2040> this channel is very helpful.. you guys rock
<havenwood> shogo2040: A Unicorn behind Nginx setup is quite nice.
fourqq has joined #ruby
<apeiros> Morrolan: oh, good. then I used it correctly :D
keyvan_ has joined #ruby
<havenwood> shogo2040: A quick google search turned up this Unicorn/Nginx guide that seems reasonable: https://coderwall.com/p/gmlv_w
<Morrolan> Hah.
<shogo2040> i saw this one cartoon.. The Regular Show.. and unicorns are not to be trusted. hahaha.. but thats just a silly cartoon hehe
HavokOC has joined #ruby
<apeiros> I think it's a good idea in many regards. However, I fear that it too will lead to a lot of people having no f'ing clue about what they're doing.
chuk_ has joined #ruby
<shevy> wow
<apeiros> havenwood: daemonizing unicorns, to be watched by god… only in ruby :)
HavokOC has quit [Changing host]
HavokOC has joined #ruby
HavokOC has quit [Changing host]
HavokOC has joined #ruby
<shevy> "gem install rails" ... 27 gems installed
mklappstuhl has quit [Remote host closed the connection]
Scorchin_ has joined #ruby
quoin has joined #ruby
lectrick has joined #ruby
<shogo2040> i plan on playing with sinatra.. last year I was able to setup my own environment.. I think i got lucky..then unlucky to lose it hahaha..
<havenwood> apeiros: i was working on a project codenamed 'angel' that made the issue even funnier. actually had an angel.god file.
noop has quit [Ping timeout: 264 seconds]
<apeiros> did involve archangels? seraphims? metatrons?
dash_ has quit [Ping timeout: 260 seconds]
<apeiros> I found the wave 'god' made in ruby-talk hilarious
Spami has quit [Quit: This computer has gone to sleep]
rgbdev has joined #ruby
<havenwood> did it? i didn't catch that. what was the general concensus? :O
<havenwood> Ophanim
brianpWins has joined #ruby
<atmosx> helo
<apeiros> ehlo
<hanmac> for all ruby users in germany ... less then 24h until the fdp dies ;P
<havenwood> many-eyed ones
<apeiros> havenwood: oh, poor religious fanatics being very upset.
<havenwood> hahaha
dodosan has joined #ruby
<apeiros> havenwood: I stopped reading when it reached some 150 messages
<shevy> Hanmac lol
dash_ has joined #ruby
<hanmac> apeiros: no its the "archangel" handy network ;P
* atmosx arctic monkeys - do I wanna know
<atmosx> Hanmac: FDP, the party?
<hanmac> atmosx: yeah exaclty
bamdad has quit [Quit: bamdad]
<atmosx> Hanmac: why you think so?
<hanmac> currently the party is in the part of the ruling goverment ... but in less then 24h it will be totally kicked out of the government because in germany there is an 5% mark that parties need to get into the goverment
VTLob has joined #ruby
Spami has joined #ruby
<atmosx> Hanmac: and you think wont pass the threshold
<hanmac> in the current test votings they are under 5%
Guest85414__ has joined #ruby
<atmosx> but doesn't CDU/CSU need a coalition party?
davidboy has joined #ruby
Ox6abe has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Quit: Leaving]
xk_id has joined #ruby
nomenkun has joined #ruby
trinode is now known as trinode_away
<hanmac> atmosx yeah, that means CDU/CSU will get the most but less than 50% so they will be forge a coalition with SPD again (the other big one) ... its also not so optimal ...
rgbdev has quit [Quit: rgbdev]
<hanmac> like in the usa ... you can change the ruling party, but not the corrupt system
snovak has joined #ruby
kvirani has joined #ruby
Emmanuel_Chanel has joined #ruby
<shevy> atmosx the winning party won't have much difficulties finding a slave party to help them :P
Notte has quit [Remote host closed the connection]
<shevy> we have votes in a week but I can't find my passport hmmm
<popl> oh hey let's segue into a political discussion
<popl> :P
quoin has quit [Ping timeout: 240 seconds]
<shevy> ok let's see popl
nomenkun has quit [Ping timeout: 245 seconds]
<shevy> does anyone have a ruby question
<shevy> now!
<shevy> 3
<shevy> 2
<shevy> 1
Spami has quit [Quit: This computer has gone to sleep]
<shevy> OVER!
kofno has quit [Ping timeout: 252 seconds]
<shevy> ruby is so good, people don't have questions
<Morrolan> How are strings and encodings tied together?
<Morrolan> If I have `a = "abc"` is that a sequence of codepoints, or bytes?
ananthakumaran has quit [Quit: Leaving.]
<apeiros> bytes + encoding-meta-datum
<popl> shevy: the annoyance is not with hte non-ruby conversation in general but rather the political nature of the discussion.
<Xeago> Morrolan: depending on your ruby version, your environment, and other stuff
<Xeago> "yes" :)
<CalvinnHobbes> I've got a OOP / rspec question: How do you test a method that pulls together multiple objects and their outputs. E.g. when it feels like stubbing would take forever?
<shevy> popl nah, there are other sensitive topics here on #ruby, I can assure you of that
snovak has quit [Ping timeout: 260 seconds]
<shevy> CalvinnHobbes dunno... chained methods? tied methods? coupled methods?
<shevy> methods galore!
<popl> did you hit your head or something shevy? :P
<CalvinnHobbes> what about when it relies on another Ruby gems object? mock(Gemobject)?
<shevy> popl no
<popl> too much sugar?
plotcock87 has quit [Ping timeout: 264 seconds]
<MrZYX> CalvinnHobbes: maybe https://github.com/technicalpickles/rspec-spies helps you
<shevy> popl no
petey has joined #ruby
<Morrolan> apeiros: Okay, that's one thing cleared up. :)
<popl> shevy: trans-dimensional wormhole opened and we are talking to nega-shevy?
<petey> noob here - can I ask for rbenv installation help?
<CalvinnHobbes> MrZYX: is that like VCR for local objects?
mengu has joined #ruby
<shevy> popl nega? hmm
<petey> can anyone help me with the rbenv installation? I'm supposed to: "Add rbenv init to your shell to enable shims and autocompletion."
<petey> but I have no idea where to add that
plotcock87 has joined #ruby
<CalvinnHobbes> petey: what OS?
<MrZYX> CalvinnHobbes: iirc, its been a while that I did look into it
<petey> OSX calvinhobbes
<petey> mountain lion
<CalvinnHobbes> do you have zsh installed? If you don't know, than probably no
<Xeago> petey: if you install rbenv using brew, it tells you how to add it
<Xeago> you can echo $SHELL for your preferred shell
<Xeago> (defaults to bash on osx)
TheNotary has joined #ruby
<atmosx> do we have any library that passes notifications to OSX?
<Xeago> there is growl
<petey> xeago thats the problem, i have no idea where im supposed to do it
<CalvinnHobbes> petey: I think if you follow this: https://gist.github.com/sstephenson/1120938 and just do lines 8 and 9 it should work
<atmosx> except from growl
<petey> i followed the homebrew installation on here
<atmosx> Xeago: I mean the native one
<CalvinnHobbes> MrZYX: thank you, I will look into it
<Xeago> growl has a backend for the native one iirc
<Xeago> petey: echo $SHELL
<petey> calvinhobbes - just type that into terminal?
<Xeago> should give you your prefereed shells
Guest48577 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
havenwood has quit [Remote host closed the connection]
<atmosx> Xeago: oh really
<CalvinnHobbes> yes
schaerli has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
<petey> cool thanks
<petey> i think i did it! yay
<CalvinnHobbes> then close and re-open
havenwood has joined #ruby
<Xeago> CalvinnHobbes: those are incorrect when using brew's rbenv..
<Xeago> which he is using
<CalvinnHobbes> Xeago: my bad, I use RVM, I was just trying to help
leehambley has joined #ruby
<Xeago> what he should do, is figure out his shell
<Xeago> if he is using zsh, fish or anything else that doesn't read .nbash_profile, that won't work
<petey> xeago - any resources?
<petey> im in the process of a clean dev environment from scratch
<Xeago> additionally, I don't think osx bash reads .bash_profile
<petey> im installing zsh next
<Xeago> petey: resource for what?
<Xeago> petey: then put it in your .zshrc
plotcock87 has quit [Ping timeout: 245 seconds]
<Xeago> better yet, .zshenv
<CalvinnHobbes> Xeago: do you have any strong feelings on RVM v. rbenv?
<petey> alright
<Xeago> CalvinnHobbes: yes, but those are out of the question
<CalvinnHobbes> I meant for me, after he is done
<Xeago> petey: you do know which shell you want to use, should've told that in the first place
mihirrege has quit [Ping timeout: 240 seconds]
<Xeago> I don't like rvm
<Xeago> I don't like rbenv, tho I like it more than rvm
<Xeago> chruby seems better, no experience tho
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<CalvinnHobbes> why is rbenv > rvm?
<Xeago> it doesn't hook your builtins
<Xeago> it doesn't run on systems without /bin/sh being /bin/bash
<Xeago> I have systems that have /bin/sh as /bin/ash
<Xeago> go figure >.<
* lupine hates on ash
<Xeago> additionally, it is quite memory hungry
<Xeago> I don't like ash
<CalvinnHobbes> is it worth it for me to switch from rvm to rbenv?
<lupine> I had to write a web services client in ash-script at one point
<Xeago> CalvinnHobbes: is there a reason to live?
Xaitec has joined #ruby
<lupine> properly evil
Xaitec has quit [Remote host closed the connection]
<Xeago> sorry for to philosophical approach, but I don't think there is
<Xeago> it is what I have on that SoC, lupine, couldn't really choose :)
Kricir has joined #ruby
<lupine> mm
havenwood has quit [Ping timeout: 252 seconds]
<Xeago> I run zsh on a SoC with under 12MB RAM :)
<CalvinnHobbes> well guys at my work use rbenv, but I haven't run up against problems with rvm even when working with their stuff
jonkri has quit [Quit: jonkri]
<lupine> if it's busybox-related, demand source including image builders
<Xeago> lupine: it isn't my SoC :'(
<Xeago> the busybox stuff is baked in
<lupine> doesn't matter, GPL
plotcock87 has joined #ruby
<Xeago> the SoC vendor has the source published
mary5030 has quit [Remote host closed the connection]
<Xeago> it just is baked in on rom
<lupine> ah, I see
<lupine> awkward
w3pm has joined #ruby
w3pm has quit [Client Quit]
Kricir has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
allsystemsarego has quit [Quit: Leaving]
Davey has quit [Quit: Computer has gone to sleep.]
w3pm has joined #ruby
lukec has quit [Quit: lukec]
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
Arreis has joined #ruby
Notte has joined #ruby
Liothen has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
w3pm has quit [Quit: This computer has gone to sleep]
jaimef has quit [Excess Flood]
spider-mario has quit [Remote host closed the connection]
<MJBrune> r0bglees0n: ping
kofno has joined #ruby
mike has joined #ruby
mike is now known as Guest55247
<r0bglees0n> MJBrune: yo
<MJBrune> r0bglees0n: you were saying I could use ajax with sinatra to create a button that sent the an http command to sinatra to dynamically load in content?
RDash is now known as RDash[AW]
jaimef has joined #ruby
<r0bglees0n> sure
Nenor has joined #ruby
sayan has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
rehat has quit [Remote host closed the connection]
Bosox20051 has quit [Quit: Leaving]
<MJBrune> I've never used ajax and I am mostly a C++ game developer so I am a bit out of water here. From my understanding ajax is just javascript and xml is this correct?
<apeiros> originally maybe
kofno has quit [Ping timeout: 260 seconds]
TheNotary has quit [Quit: Leaving]
<apeiros> but nowadays I think xml is rarely ever involved. most often it's json which is transmitted
<MJBrune> ahh I see I was going to say something like json seems better to use.
pskosinski__ has joined #ruby
bobinator60_ has joined #ruby
<MJBrune> http://en.wikipedia.org/wiki/AJAJ found that ajax really just means whatever format you want.
sniffingcats has quit [Disconnected by services]
pskosinski__ is now known as sniffingcats
Speed has joined #ruby
bobinator60_ has quit [Client Quit]
adambeynon has joined #ruby
moosya has joined #ruby
Nenor has quit [Quit: Nenor]
codecop has quit [Remote host closed the connection]
dmiller has joined #ruby
alx- has quit [Quit: Leaving...]
<shevy> MJBrune wheee you are a C++ guy using ruby \o/
Monie has joined #ruby
zoee has quit [Ping timeout: 252 seconds]
<popl> A proper C++ guy? What does that mean?
dmiller has quit [Ping timeout: 245 seconds]
nerdy has joined #ruby
T_T has joined #ruby
petey has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
<r0bglees0n> no one said a 'proper C++ guy'
<MJBrune> I use C++11
pwh has joined #ruby
Monie has quit [Ping timeout: 252 seconds]
jonahR has joined #ruby
<MJBrune> shevy: ruby is really odd, I honestly prefer lua for any game-centered scripting languages but this is for some non-game related stuff.
<lupine> lua's well-established in that space
Aryasam has quit [Ping timeout: 260 seconds]
<MJBrune> it is, but it can be a pain to try to transfer over C++ classes to a language built in C
paulodiniz_ has joined #ruby
<MJBrune> lua was not built with classes in mind at all.
pygospa has quit [Quit: leaving]
<popl> r0bglees0n: I did. o_O
<hanmac> MjBrune so you are building Ruby extensions?
Usse has joined #ruby
<MJBrune> Hanmac: no, I am just trying to build a web based deploy system for a proprietary application meant to transfer and remotely process media files...
Ox6abe has joined #ruby
pygospa has joined #ruby
<hanmac> MJBrune: you should make C++ extensions for Ruby ... its so much fun ;D
<shevy> :>
<shevy> Hanmac wrote wxwidget bindings for ruby
<shevy> but he forgot the documentation
tylersmith has quit [Ping timeout: 264 seconds]
<MJBrune> Hanmac: perhaps I will another time. :)
<hanmac> and ogre ,and cegui and sfml ...
<MJBrune> sfml
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<MJBrune> I love to see that people know what SFML is finally.
<hanmac> MJBrune: there was an rbSFML ... but i dint liked it so i make my own
<hanmac> MJBrune: i used gosu before but it was not cool enough
<MJBrune> Luarent will love to see it.
hogeo has joined #ruby
<MJBrune> I am hoping that we will get android/ios support by the end of the year. I am not sure if it's likely.
<hanmac> yeah i think i showed it, (i also make a forum thead) but i didt get a response yet ... and i am not finish yet with it
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
s0ber has quit [Ping timeout: 245 seconds]
quoin has joined #ruby
<MJBrune> if you get the Thor and SFGUI systems to work in ruby then you should be able to sell a lot of people on it.
soulcake has joined #ruby
snovak has joined #ruby
<hanmac> hm yes and no ... i thy to integrate Thor directly into my sfml gem, but its not so easy possible (because i need 2step constructors and some thor classes has only 1step constructors)
volty has joined #ruby
<hanmac> currently SFGUI is dropped, but i will update my cegui gem, wich would work with sfml
Arreis has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
kvirani has joined #ruby
corpuscle has quit [Quit: WeeChat 0.4.1]
justsee has quit [Ping timeout: 264 seconds]
Notte has quit [Remote host closed the connection]
Nenor has joined #ruby
Bosox20051 has joined #ruby
snovak has quit [Ping timeout: 256 seconds]
dodosan has quit [Remote host closed the connection]
Atrumx has joined #ruby
s2013- has joined #ruby
<s2013-> if i have an array how do i start an each loop byskipping the first one?
quoin has quit [Ping timeout: 245 seconds]
<popl> s2013-: what do you mean?
<s2013-> lets say a = ["apples", "oranges", "mangoes"]
<s2013-> so if i want to print out oranges and mangoes how would i do that?
<apeiros> a[1..-1].each
<popl> ^
<s2013-> ok thanks
yelfathi has joined #ruby
yelfathi has left #ruby [#ruby]
<s2013-> -1 is the last element right?
<s2013-> so its basically saying from second until last element
<apeiros> correct
<s2013-> gotcha. thanks
<MrZYX> what are you doing inside the loop? something like print ", #{item}" ?
soulcake has quit [Ping timeout: 260 seconds]
petey has quit [Remote host closed the connection]
soulcake has joined #ruby
Popple has quit [Quit: Computer has gone to sleep.]
ehc has joined #ruby
<s2013-> MrZYX yeah pretty much. a[1..-1] worked
paulodiniz_ has quit [Quit: paulodiniz_]
<MrZYX> Do you know the join method?
<apeiros> Array#join might then be what you want
petey has joined #ruby
dlisboa has joined #ruby
ehc has quit [Client Quit]
<s2013-> yeah i do. why would it work?
<s2013-> oh
<s2013-> nah not comma separated
<MrZYX> but?
soulcake has quit [Read error: Connection reset by peer]
<s2013-> its inside a rails app. there are bunch of html markups in between..
dlisboa has left #ruby [#ruby]
<s2013-> but [1..-1] worked perfect
<s2013-> i was trying to skip the first element basically
soulcake has joined #ruby
<sophomorical> it saves you the trouble of looping, I think is what they're getting at :p
<apeiros> it also saves him from special casing
<apeiros> s2013-: join accepts arbitrary strings to join your elements
<s2013-> k one sec
LMolr has quit [Ping timeout: 245 seconds]
<apeiros> >> ary = 1,2,3; "<ul><li>"+ary.join('</li><li>')+"</li></ul>"
<eval-in> apeiros => "<ul><li>1</li><li>2</li><li>3</li></ul>" (https://eval.in/49664)
claymore has quit [Quit: Leaving]
zastern has joined #ruby
<zastern> I've got a really dumb ruby question. I've never written anything but short scripts in a single file. If I want to put some code in one file, and use it in another file, should I make it a Module and require 'modulename'?
<zastern> or something like that?
<apeiros> require is file based, that is, require 'filename'
<s2013-> thats what i have
paulodiniz_ has joined #ruby
<apeiros> but usually you'll map module/class names to filenames
<apeiros> other than that, yes zaltekk
<apeiros> gah
<apeiros> yes zastern
<zastern> Thanks!
<s2013-> so id use join on it still?
<apeiros> s2013-: see my example. also iirc your html is invalid (no br tags within ul's)
<s2013-> yeah ill clean up the html. it was just to check if the array was working
<s2013-> there isnt any ul
<zastern> apeiros: your nick is very familiar to me . . . where do you work? feel free not to answer
t0rc has joined #ruby
<s2013-> actually brb
<apeiros> zastern: switzerland
<zastern> apeiros: i didn't mean which location
<zastern> Were you at PuppetConf maybe?
<apeiros> s2013-: d'oh, misread the <i> as <li>
<apeiros> who uses <i> tags anymore? o0
<apeiros> zastern: nope
<zastern> hmm ok
paulodiniz_ has quit [Client Quit]
kirun has quit [Quit: Client exiting]
lukec has joined #ruby
<MrZYX> apeiros: some say it's the new tag for (font) icons ;D
<apeiros> ah, true
echevemaster_ has joined #ruby
Clooth has quit [Quit: Leaving...]
<MrZYX> s2013-: so you're just throwing away the first entry?
<apeiros> so technically it's being abused because of its shortness - and otherwise uselessness
<MrZYX> yes
kvirani has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
kvirani has joined #ruby
<MrZYX> I think I still prefer spans for that usecase
<sophomorical> ^
<zastern> Am I an idiot for just leaving config as a ruby hash . . . rather than using a yaml file or something?
<zastern> It seems pointless to convert to json
<zastern> you dont need to know ruby to edit the hash
<zastern> or to convert to yaml
<hanmac> apeiros: <i> tags are so pre 2000 ;D
<Morrolan> People who have to automate deployment of your application will hate you for using Ruby instead of JSON or YAML.
<Morrolan> All modern languages have parsers for JSON and YAML, very few have a parser for Ruby.
kvirani_ has joined #ruby
<shevy> zastern what I am trying to do in my project is to write a class called Configuration, which by default will generate yaml file for every key-value pair it has
<shevy> when a value is changed, it stores the change into a yaml file
kvirani has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 268 seconds]
<zastern> I guess I don't get why I even need to go that far
dmiller has joined #ruby
<shevy> how many projects do you have with a ruby hash as config?
heftig has quit [Ping timeout: 260 seconds]
<zastern> just the one :D
<zastern> this is actually my first real project
<zastern> im not challenging you
<zastern> its not not clear to me
s2013- has quit [Quit: My (null) has gone to sleep. ZZZzzz…]
LMolr has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
Apocalypse has quit [Ping timeout: 260 seconds]
Apocalypse has joined #ruby
seoNinjaWarrior has joined #ruby
<shevy> no
<shevy> it was a simple question
DanKnox_away is now known as DanKnox
<shevy> I started making use of my Configuration class after about ~20 gems
<shevy> well, the smaller ones did not need configuration, but the larger ones required configuration
<shevy> there may be drawbacks when you choose any one way over the other. for instance, with YAML files you are forced to use UTF-8 or UTF-16
<shevy> and follow it's enforced indent
<MrZYX> both good things :P
<shevy> with ruby syntax, users may need to understand a bit of ruby
<zastern> So, I'm noticing that the path of my requires is relative to where I run ruby from, not where the ruby file is from
<zastern> is located*
<zastern> is there any way around that?
qz has joined #ruby
<zastern> e.g. if i have ./bin and ./config
<zastern> and a root dir
<zastern> when i do ruby bin/somefile
<workmad3> zastern: yeah... don't use '.' in your paths, instead get things on your load path
qhartman has joined #ruby
<zastern> ah. I guess i need to figure out how to do that
<workmad3> zastern: '.' is always '(the processes) current directory'
<zastern> ahh
<workmad3> zastern: and it was removed from the default load-path of ruby in 1.9.2 because it's kinda unstable ;)
<zastern> so what exactly do I want ot add to my load path? the root dir of the project?
relix has joined #ruby
<workmad3> if you're using that as the source-code root, sure
<workmad3> most of the time, you want to put your code in a lib/ directory though, and add that to your load path (which is what rubygems does for you)
<volty> zastern: symlink if you run it from your working dir, otherwise set wd
raphaelivan has joined #ruby
Nenor has quit [Quit: Nenor]
mercwithamouth has joined #ruby
<shevy> zastern I always install my projects like a gem
huoxito has quit [Read error: Operation timed out]
<zastern> shevy: even when you just start?
IceDragon has joined #ruby
<zastern> I don't really know how to make gems yet
<volty> if you want to load that files: 1) be in that directory or 2) insert the dir with your source files in the RUBYLIB ENV 3) change wd from inside
<shevy> zastern for quick hacks, I symlinked from SITE_DIR into my ruby dir where I keep my ruby files, so I then can do like: require 'x/sys/sys_checker.rb', where x is the name of the symlink I use
Popple has joined #ruby
<workmad3> volty: no, no and no
Popple has quit [Client Quit]
<shevy> zastern you can always try to modify the $LOAD_PATH too
<zastern> trololol
<volty> workmad3: why, why, and why?
<atmosx> howdy
<zastern> shevy: I like that idea
<apeiros> +1 @ no, no and no
<zastern> if I symlink to a subdir of something in my load path will that work? or do i need to add that
<workmad3> volty: 1) too constraining, 2) $LOAD_PATH is available for this purpose inside ruby, rather than requiring the user to set an external environment variable, 3) bad manners
<apeiros> use -I, use gem, at worst, use $LOAD_PATH hack in your /bin/* files
<apeiros> wrong order. use gem, use -I, use $LOAD_PATH in your bin/* files
dodosan has joined #ruby
vlad_starkov has joined #ruby
<workmad3> apeiros: :) yeah, let something else handle the load path, rather than hack it manually
<apeiros> latter two should only ever be needed while developing/working on a gem
<platzhirsch> what, political discussion? How did I miss that
<volty> ah, deployment ...
<apeiros> yeah. your libraries knowing *where* stuff is is bad coupling.
<shevy> Hanmac I want to murder the guy who created that
<platzhirsch> oh that was 2h ago
<hanmac> shevy do you mean the orginal or the parody? ;D
<volty> i'm quite fine - for a long time - bad or good
<workmad3> platzhirsch: I was wondering what you were counting as 'political' :)
<volty> those are purist questions
<volty> never mind
<shevy> Hanmac both, but at least I liked friends bloopers (I never saw a single season or part)
<platzhirsch> workmad3: ah the talk was about the German election tomorrow
elux has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
i_s has joined #ruby
<zastern> So If I have / and /config and /bin
<zastern> and I add / to my load path
<zastern> is that enough to require /config/foo.rb
<zastern> or do i need to add /config specifically
Usse has quit [Remote host closed the connection]
<volty> Deutschland über alles - Griechenland unter allen
soulcake has quit [Ping timeout: 260 seconds]
<zastern> (i'm not really putting things in /, it's just an example)
<platzhirsch> troll
<platzhirsch> :P
<apeiros> volty: sure. you can get far with bad code too and just deride writing good code as "purist thing".
<MrZYX> zastern: it's enough to make require 'config/foo' work
robert_ has joined #ruby
<zastern> MrZYX: thanks!
<workmad3> zastern: you'd require 'config/foo', not '/config/foo'
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
Ox6abe has quit [Remote host closed the connection]
<zastern> got it. thanks guys.
i_s has quit [Remote host closed the connection]
s2013- has joined #ruby
<zastern> For the time being I may just $LOAD_PATH.unshift('/Users/myuser/Dropbox/Projects/Personal/zendeath') and figure it out "For real" later.
<workmad3> zastern: is this for a bin/ script?
<volty> apeiros: i'm not deriding. I'm just saying that i'm fine with that, as long as i work locally - I call it abstraction. I need abstraction // could be good or bad - in the end
dodosan has quit [Ping timeout: 268 seconds]
<zastern> workmad3: this is for a command line script im writing, that will at some point just be run as a regular command
Clooth has joined #ruby
<zastern> but this is my first real project so i care more about getting the funcitonality parts right
daniellefebvre has joined #ruby
<zastern> than the load paths, which i can learn how to do "Right" after i get the functionaltiy
shogo2040 has left #ruby [#ruby]
<zastern> But with better spelling :)
<shevy> volty what encoding do you use? I did not see the part before "ber"
<workmad3> zastern: for a command line script, I'd suggest doing '$LOAD_PATH.unshift(__FILE__ + "../..")' as a quicker hack ;)
<zastern> workmad3: AH!
<zastern> that's a good idea.
<zastern> thanks.
<workmad3> zastern: it'll also then be a bit more stable to changes in location :)
<apeiros> $LOAD_PATH << File.expand_path('../..', __FILE__)
<apeiros> that's what I usually use.
<zastern> i didn't realize what __FILE__ was although I've seen it around a lot
<zastern> but after a google
jumpingcloud has quit [Remote host closed the connection]
<zastern> this makes sense
<apeiros> .unshift is nice if you explicitly want to take precedence over system stuff.
<workmad3> apeiros: the expand_path looks neater... I'd still probably unshift rather than << it though
Ox6abe has joined #ruby
<apeiros> I think most of my code still has unshift.
<zastern> So I guess i'm going to need to put this in every file?
<workmad3> apeiros: for my main project src, I'd rather my stuff takes precedence :)
<zastern> or just the one I'm calling from the command line I guess
<workmad3> zastern: just the one
<shevy> zastern no
cads has joined #ruby
<apeiros> workmad3: sure, me too. but this way I notice if I accidentally have a naming collision ;-)
<shevy> zastern just start writing your projects in gem-format, you could even use setup.rb to install things
<workmad3> apeiros: good point :)
<platzhirsch> I think I just work through the night, go to the election and then sleep
<zastern> shevy: I will eventually
<shevy> zastern, this is good old setup.rb http://i.loveruby.net/en/projects/setup/ old but still works, it was there before gems
<moosya> hi. gem download question: it seems that external http requests are blocked (error Net::HTTPServerException) 403 "Forbidden" by the company. I'm trying to perform a "gem install net-ldap"… Are there any other ways to get the gem? perhaps via https?
<workmad3> zastern: as shevy says, it would be nicer if you put your code in a lib/ file, and only add that to your $LOAD_PATH, which is a good step towards being compatible with rubygems ;)
<zastern> I take the same view on that as I take on "learning vim and programming at the same time" - so much time spent learning vim you give up.
<shevy> but it does basically what gem does, except that you dont have to write any .gemspec at all
<zastern> Saying that as somebody who does knwo vi.
<zastern> vim*
<shevy> ah... gem does dependency management... but you wont need that for your own projects
<zastern> I know what it does.
<zastern> I will make it a gem eventually
<shevy> That is the way!
<platzhirsch> !
daniellefebvre has left #ruby [#ruby]
<shevy> atmosx, when you have finished your gene finder for prokaryotes, can you also write one for plants specifically? one that scans through GMO databases please? :P
<workmad3> zastern: yeah, not suggesting you gemify things fully... but in the same way that you might want to use src/main/java in a lot of java projects, even if you're not using maven straight away, you may want to use lib/ as your project-source root even when not writing gems straight away :)
daniellefebvre has joined #ruby
Ox6abe has quit [Remote host closed the connection]
<daniellefebvre> hmmm this client sucks
Atrumx has quit [Quit: Quitting]
<daniellefebvre> can anyone see my posts?
soulcake has joined #ruby
plotcock87 has quit [Ping timeout: 240 seconds]
<platzhirsch> daniellefebvre: absoluetely
<workmad3> zastern: if you're loading configs from yaml, you may also want to do something like 'CONFIG_PATH = File.expand_path("../../config", __FILE__)' so you can stabilise that too
<daniellefebvre> great thanks!
<platzhirsch> you cannot?
<workmad3> zastern: again, set in your bin script :)
paulodiniz has joined #ruby
quoin has joined #ruby
<daniellefebvre> I'm having an install issue on Mac 0$X ... when I unstall rails, is requiring sudo which in tern is either installing rails for the wrong version of ruby, or installing it with the wrong permissions... can anyone help me either set gem to function from my primary account or set the permssion on the installed rails so I can use it?
<workmad3> how did you install ruby?
<daniellefebvre> rvm I think I did it months ago
<zastern> ok so here's something weird
<volty> brrrrrr, osx, I got crazy and gave up
<daniellefebvre> but rvm use ruby-2.0.0 worked a few hours ago
<zastern> Why would this work with 'pry' but not with 'ruby'.
plotcock87 has joined #ruby
<zastern> also
<workmad3> daniellefebvre: try running 'rvm --default use ruby-2.0.0
<zastern> dont click that
<zastern> :P
<workmad3> daniellefebvre: and then run 'gem install rails' (no sudo)
<daniellefebvre> thats what I did
<daniellefebvre> when I try running gem install without sudo I do not have permissions
kvirani_ has quit [Remote host closed the connection]
<workmad3> daniellefebvre: what does 'which gem' give you?
kvirani has joined #ruby
Fuzai_ has joined #ruby
<banisterfiend> zastern ?
<zastern> banisterfiend: I had to delete the screenshot, it exposed an API key
<zastern> :/
<daniellefebvre> "/Users/daniellefebvre/.rvm/rubies/ruby-2.0.0-p247/bin/gem
<banisterfiend> zastern ah
<daniellefebvre> can I just chown those files to my account?
Fuzai has quit [Ping timeout: 268 seconds]
<Liothen> you probably should reset your api_token
<workmad3> daniellefebvre: hmm... try running 'sudo chown -R daniellefebvre ~/.rvm'
<workmad3> daniellefebvre: it sounds like you managed to bork your rvm install at some point with some bad permissions
motto has quit [Quit: Sto andando via]
<zastern> So if I do "$LOAD_PATH << File.expand_path('../..', __FILE__)" then it works with `ruby` but not with `pry`
Kricir has joined #ruby
<zastern> If I do "$LOAD_PATH << File.expand_path('../', __FILE__)" it works with pry but not with ruby.
<volty> daniellefebvre: should first check the current ownership and rights
<workmad3> zastern: ah, stabilise it with File.dirname(__FILE__)
<zastern> instead of expand_path?
<daniellefebvre> that did it you are a rock star thanks :)
<workmad3> zastern: no... File.expand_path("..", File.dirname(__FILE__) )
<zastern> oh i see
baroquebobcat has joined #ruby
<daniellefebvre> workmad3++
<workmad3> daniellefebvre: from now on, you shouldn't need to touch 'sudo' in relation to ruby
jonathanwallace has quit [Read error: Connection reset by peer]
<platzhirsch> Throw me a good field name for the dates of metadata snapshots I have for a repository
<atmosx> workmad3: isn't better to implode and re-install rvm?
<workmad3> platzhirsch: metadata_snapshot_date ?
kvirani has quit [Ping timeout: 276 seconds]
<platzhirsch> workmad3: ^^ longish
<daniellefebvre> yeah I caught that from command... I had thought of running that but not at that level and didn't want to break the whole install
<atmosx> workmad3: messing with perms there fucks up everything, it's allready too complicated code to follow (rvm)
<daniellefebvre> thank you again
<volty> i agree with atmosx - i prefer clean things, especially under osx
<workmad3> atmosx: the entire directory should be owned by the user
<atmosx> workmad3: sure, but why wasn't in the first place?
<zastern> hmm, workmad3, it only works with ruby still.
<zastern> I regret asking to be spoonfed, but also don't really get what's happening
<workmad3> zastern: hmm... what do you mean by 'running in pry' then?
<zastern> I mean pry foo/bar.rb
<zastern> vs ruby foo/bar.rb
<platzhirsch> or maybe I should change the whole DB structure. Repository -> Date -> Metadata
<workmad3> atmosx: true... I probably would implode it and restart :)
jonathanwallace has joined #ruby
<workmad3> banisterfiend: any thoughts on zastern's noticed behaviour?
Kricir has quit [Ping timeout: 256 seconds]
<platzhirsch> summon the banister
<atmosx> the new Arctic Monkeys CD is awesome
<banisterfiend> workmad3 2sleepy
<platzhirsch> atmosx: is it?
<atmosx> I love the Sheffield accent
<workmad3> banisterfiend: bah, pry is your baby :P
<zastern> irb also succeedes
<atmosx> platzhirsch: yes, it's kinda different from all prior albums they did.
<zastern> only pry fails
<zastern> :/
<workmad3> zastern: do a 'puts __FILE__' before the load path manipulation, see how it changes
<platzhirsch> atmosx: AM, wow.. I stopped keeping track of them. But the poster of Whatever People Say I am, That's What I Am Not is still hanging in my apartment :)
<daniellefebvre> now I get bundle successfully install then Bundler:GemfileNotFound
thepumpkin has joined #ruby
<workmad3> daniellefebvre: ok, as atmosx suggested, rvm implode and restart it all
paulodiniz has quit [Quit: paulodiniz]
<workmad3> daniellefebvre: your rvm install got royally borked, best to throw away and start again
<zastern> for pry the puts appears to give me "(pry)"
<zastern> for ruby it gives me what i expect
quoin has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
plotcock87 has quit [Ping timeout: 268 seconds]
<banisterfiend> zastern do this instead
<workmad3> banisterfiend: hmm... by any chance, if you do 'pry filename.rb', does pry read in the code and eval each line? :)
<banisterfiend> zastern pry -r./path/to/your/file
<banisterfiend> workmad3 yes
<banisterfiend> workmad3 it's actually an undocumented feature
<banisterfiend> i never use it
<zastern> that works.
<workmad3> hehe
ravster has joined #ruby
<zastern> interesting.
<daniellefebvre> ok I imploded rvm
einarj has quit [Remote host closed the connection]
mrsolo has joined #ruby
<zastern> daniellefebvre: you just saved yourself a lot of headache :)
<jrobeson> rvm :(
Boohbah has quit [Remote host closed the connection]
dash_ has quit [Quit: dash_]
<zastern> I clearly know nothing about developing ruby, but I load a lot of ruby stuff for utility purposes, and always found rvm to be a huge headache relative to rbenv
t0rc has quit [Quit: WeeChat 0.4.1]
<workmad3> zastern: rbenv :(
<jrobeson> i just can't accept anything that touches my cd
Boohbah has joined #ruby
<daniellefebvre> thanks :) I hope so :)
<platzhirsch> How comes that RVM is a headache? I thought you just install it and then you use it
<jrobeson> lots of poeple like chruby
<workmad3> jrobeson: you can turn that off, you know
<zastern> platzhirsch: the install process isn't simple. and it just broke on me all the time
plotcock87 has joined #ruby
<zastern> rbenv is pretty trivial to get runnin
<zastern> g
Fuzai_ has quit [Ping timeout: 252 seconds]
<volty> that's what i meant when I said i prefer system-wide setup of resource directories ....
<platzhirsch> zastern: that's true. I am always startled when it runs through, bit I never had a fail
<workmad3> jrobeson: or you could use zsh, which provides a hook that chruby and rvm utilise to avoid having to mess around with 'cd' :)
<volty> i suggest rbenv, i installed it 3 days ago and it is simple enough to understand and fix if something goes wrong
<zastern> zsh + oh-my-zsh = win.
<jrobeson> ah no thanks.. i work on too many disparate systems to have to learn another system
zorg24 has joined #ruby
<jrobeson> and i've never seen zsh on a non developers system
staafl has quit [Ping timeout: 248 seconds]
<zastern> jrobeson: zsh is basically compatible with bash - there's no compelling reason not to use it locally.
<workmad3> jrobeson: I've not seen rvm on a non-devs system... :P
<zastern> I'm a sysadmin and all my remote systems are bash and my local machine is zsh.
<zastern> and it's quite useful in that capacity
<jrobeson> hmm.. i didn't think the scripting was compatible completely?
<zastern> jrobeson: it's compatible enough.
<zastern> plus
<workmad3> zastern: I install zsh on my servers :)
<zastern> you can just bash ./yourscript.sh
<workmad3> jrobeson: I write my scripts with #!/bin/bash still
<zastern> its not hard to write bash scripts from zsh at all
baroquebobcat has quit [Quit: baroquebobcat]
<jrobeson> that's a decent way of doing it if you have to
<zastern> workmad3: I don't have the option - the servers aren't mine.
<zastern> I'm effectively a consultant . . . not really . . . but it's a close enough description
<jrobeson> i bet workmad3 can fix their own servers :)
<workmad3> jrobeson: I use zsh + oh-my-zsh mainly for the much nicer (and easier) prompt manipulation :)
<volty> btw: to avoid potential mess one should remove symbolic links of old ruby symlinks (e.g. /usr/bin/ruby etc)
<workmad3> jrobeson: not to mention the tab-complete :)
<volty> IMHO
polaco_zZz is now known as polaco
<jrobeson> ah.. my promt is fine as long as it has a git
<jrobeson> workmad3, what's your local promt like?
<zastern> my favorite thing about ohmyzsh is auto-complete hostnames from ssh known hosts
<jrobeson> zastern, so what you're saying is that most scripts you use say they work with /bin/sh but actually use bashims? :)
<zastern> SO GOD DAMN USEFUL OH MY GOD
<jrobeson> bashisms*
Fuzai has joined #ruby
<zastern> jrobeson: lol. I script against bash not sh.
<jrobeson> zastern, oh.. i have that after installing bash-completions on my system
plotcock87 has quit [Ping timeout: 245 seconds]
<workmad3> jrobeson: http://grab.by/loTk
<jrobeson> that's always worked for me
<zastern> jrobeson: I'm not saying you can't do things with bash...
yuhsien_ has quit [Quit: Connection closed for inactivity]
<zastern> I'm just saying I like zsh.
<zastern> and it's close enough that im not context switching when I ssh to a bash system at all
<jrobeson> so you take up two lines workmad3 ?
<workmad3> zastern: it'll also autocomplete from .ssh/config
<workmad3> jrobeson: yeah, but that's because I don't like shifting my input too far to the right, while I still like having all the info there
<jrobeson> i can't imagine taking up two lines. not enough height in my display for me to be able to handle that
<jrobeson> i just keep only the top level directories
<jrobeson> or the shortname like a/b/c/d/my_dir
<workmad3> jrobeson: it's a theme I hacked together with help from a friend... plenty of zsh themes that don't do that :)
sepp2k1 has joined #ruby
<jrobeson> what's the bit off to the right about
<workmad3> time and battery status
<jrobeson> well i got the itme.. but external didn't say battery to me :)
plotcock87 has joined #ruby
<workmad3> it has a little battery image next to it ;)
<jrobeson> and the owl?
<workmad3> that's a cat (but the symbola unicode font isn't very clear on it)
<jrobeson> kinda.. it's a little too small for me to see
<jrobeson> looks like an owl from here
<jrobeson> oh.. the teeth
<workmad3> but it goes red when the previous exit code was non-zero
vim_shim has quit [Ping timeout: 245 seconds]
<jrobeson> now i see it.. it looked like a belly of an owl.. not a teeth of a cat
<workmad3> yeah, I'm using 12pt inconsolata
sepp2k has quit [Ping timeout: 268 seconds]
<workmad3> which ends up pretty small, but readable for me :)
DanKnox is now known as DanKnox_away
<jrobeson> i'm using inconsolata-dv right now
<jrobeson> from some time ago
banisterfiend is now known as banister`sleep
<workmad3> I used to have a 6-line bash prompt btw
<jrobeson> wtf?
<jrobeson> what was on that???
User_ has quit [Ping timeout: 264 seconds]
<workmad3> pretty much all the same stuff, but I hadn't found the unicode symbols for it all (and bash screwed up *really* badly with utf-8 for me too) so it was all on separate lines
<jrobeson> the resolution on macbook pros are decent.. BUT NOT THAT DECENT
<jrobeson> i'd rather go without the features
<jrobeson> than take up 6 lines
<workmad3> I started it when I was switching between a lot of servers... I really needed that info in order to know where the hell I was
butblack has quit [Quit: butblack]
<apeiros> workmad3: we use a single colored "dot" at the start of the prompt
<atmosx> workmad3: isn't the servername enough?
<atmosx> I use differnet prompt at every server
<apeiros> though, we only distinguish the env through that (dev/acceptance/staging/prod/other)
<atmosx> zsh everywhere though
<atmosx> ah not everywhere, in my freebsd ebox it's bash because zsh is 'too heavy' for that machine
<workmad3> I was happy enough with my prompt
<apeiros> the "dot" is a space with background color set
Speed has quit [Ping timeout: 260 seconds]
<atmosx> workmad3: and then what happened? (you're talking in past tense)
<workmad3> but then I was setting up another dev laptop, decided to try zsh, play around with unicode symbols again...
<workmad3> so I ended up reducing down to the 2 lines
<atmosx> growl doesn't work... I'll write a client-server app and use native osx notifications, blah.
<atmosx> workmad3: show us a screenshot
<workmad3> atmosx: of the old one? I don't have one
<atmosx> new one
daniellefebvre has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
<workmad3> atmosx: http://grab.by/loMs here's a second one (with git prompt in it this time)
<atmosx> hahaha what's with the devil sign
<workmad3> unhappy cat
xjunior has joined #ruby
<workmad3> last command failed :)
soulcake has joined #ruby
<atmosx> did you do this prompt by youself or you find it online?
<workmad3> myself
<workmad3> although as I said, hacked from a friends theme somewhat :)
<sophomorical> that is really cool
<atmosx> awesome, congrats. Although a bit cumbersome imho
<workmad3> yeah, I appreciate that :)
<workmad3> I do tend to prefer prompts with more info in them to clean, minimal ones though
quoin has joined #ruby
<atmosx> I don't pay attention, to the prompt most of the times.
<workmad3> the symbols look a lot nicer using monaco font on Mountain Lion btw (which has nice, full-colour emoji)
dangerousdave has quit [Ping timeout: 245 seconds]
<workmad3> but I'm on snow leopard on this laptop still
Quashie has quit [Ping timeout: 245 seconds]
devoldmx3 has joined #ruby
vim_shim has joined #ruby
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
brianpWins has quit [Quit: brianpWins]
sailias has joined #ruby
workmad3 is now known as wm3|zzz
endash has quit [Quit: endash]
echevemaster_ has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
leehambley has quit [Ping timeout: 260 seconds]
leehambley has joined #ruby
banghouse2 has joined #ruby
elaptics is now known as elaptics`away
niklasb has quit [Ping timeout: 256 seconds]
h4mz1d has joined #ruby
snovak has joined #ruby
Es0teric has joined #ruby
niklasb has joined #ruby
lockweel has joined #ruby
dodosan has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
xjunior has quit [Remote host closed the connection]
skulker has joined #ruby
xjunior has joined #ruby
skulker has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 260 seconds]
skulker has joined #ruby
polaco is now known as polaco_zZz
fourqq has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Boohbah has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
echevemaster_ has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
kazuuu has joined #ruby
Boohbah has joined #ruby
zarubin has quit [Ping timeout: 248 seconds]
Monie has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
skulker has quit [Ping timeout: 260 seconds]
Monie has quit [Client Quit]
IceDragon has quit [Ping timeout: 268 seconds]
leehambley has quit [Ping timeout: 260 seconds]
bobinator60_ has joined #ruby
T_T has quit [Remote host closed the connection]
leehambley has joined #ruby
TDJACR has joined #ruby
mrapple has quit [Ping timeout: 268 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
IceDragon has joined #ruby
T_T has joined #ruby
Quashie has joined #ruby
i_s has joined #ruby
izzy278 has joined #ruby
<izzy278> Hey guys
mrapple has joined #ruby
pwh has quit [Quit: pwh]
<izzy278> You know what? There is too much abstraction in programming these days, like in RAILS.
bobinator60_ has quit [Quit: bobinator60_]
<izzy278> Intepreters suck.
cj3kim_ has joined #ruby
User_ has joined #ruby
<apeiros> izzy278: had a bad day?
<izzy278> Nah just too much abstraction, it makes people do stupid things.
mrsolo has quit [Quit: This computer has gone to sleep]
<izzy278> interpretors are just big hunks of slow abstracted-away code.
raphaelivan has quit [Quit: Leaving.]
Aryasam has joined #ruby
Monie has joined #ruby