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
jonahR has quit [Quit: jonahR]
Bira has quit [Remote host closed the connection]
Aryasam has quit [Quit: Bye]
Davey has joined #ruby
lfox has joined #ruby
Stalkr^ has quit [Ping timeout: 256 seconds]
brianpWins has quit [Quit: brianpWins]
cj3kim has quit [Ping timeout: 245 seconds]
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketurtles has quit [Quit: zzzzz…..]
<z_eos> havenwood: weird ... I just have noticed that date was wrong on the box I have the issue ... after ntpdate ruby builds ...
n_blownapart has quit [Remote host closed the connection]
thecodethinker has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
n_blownapart has joined #ruby
<n_blownapart> testtest
goleldar has quit [Ping timeout: 260 seconds]
n_blownapart has quit [Remote host closed the connection]
gallon|w has joined #ruby
goleldar has joined #ruby
axl_ has quit [Quit: axl_]
havenwood has quit [Remote host closed the connection]
harrymoreno has joined #ruby
havenwood has joined #ruby
kevind has quit [Quit: kevind]
p0wn3d has quit [Ping timeout: 240 seconds]
cHarNe2 has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
saarinen has quit [Quit: saarinen]
randomautomator has quit []
randomautomator has joined #ruby
p0wn3d has joined #ruby
fridim__ has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
<cHarNe2> hi guys, im trying to create some simple xml-files with active_support/core_ext, but i cant seem to find how to set the name of the sub-nodes to "person" or something more relevant, any one know how to?
<cHarNe2> puts ([{name: "John", age: "12", gender: "male"}, {name: "Peter", age: "12", gender: "male"}].to_xml(:root => "root"))
cody-- has quit [Quit: derp]
mdaubs has joined #ruby
mdaubs has quit [Remote host closed the connection]
shoepie has quit [Quit: WeeChat 0.4.1]
mwmnj has joined #ruby
T_T has quit [Ping timeout: 256 seconds]
reset has joined #ruby
<bnagy> for active* questions I'd recommend one of the rails channels
<cHarNe2> ohh, ok. ill try there :)
Ripp__ has quit []
rupee has quit [Quit: Leaving]
T_T has joined #ruby
goleldar has quit [Ping timeout: 248 seconds]
goleldar has joined #ruby
Ripp__ has joined #ruby
braincra- has joined #ruby
tkuchiki has quit [Remote host closed the connection]
brain_shim has joined #ruby
MrZYX is now known as MrZYX|off
braincrash has quit [Ping timeout: 256 seconds]
Akuma has quit [Quit: So long sukkas!]
cj3kim_ has joined #ruby
Akuma has joined #ruby
Guest53177 is now known as mephux
mephux has joined #ruby
mephux has quit [Changing host]
T__T has joined #ruby
vise890 has quit [Remote host closed the connection]
cj3kim_ has quit [Remote host closed the connection]
T_T has quit [Ping timeout: 256 seconds]
epta has quit [Ping timeout: 256 seconds]
mikeg has joined #ruby
rads_ has joined #ruby
T__T has quit [Ping timeout: 264 seconds]
Astarte has joined #ruby
Astarte has left #ruby [#ruby]
leehambley has quit [Ping timeout: 246 seconds]
mikeg has quit [Ping timeout: 245 seconds]
RichardBaker has quit [Quit: RichardBaker]
leehambley has joined #ruby
taternuts has joined #ruby
Bira has joined #ruby
kil0byte has joined #ruby
IceyEC has joined #ruby
VTLob has quit [Quit: VTLob]
|jemc| has quit [Ping timeout: 248 seconds]
kil0byte_ has quit [Ping timeout: 245 seconds]
katsrc has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
iliketurtles has joined #ruby
negaduck has quit [Quit: negaduck]
johnnyfuchs has quit [Remote host closed the connection]
dkamioka has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
Bira has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
P1RATEZ has joined #ruby
dkamioka has quit [Ping timeout: 245 seconds]
epta has joined #ruby
axl_ has joined #ruby
IceyEC has quit [Quit: IceyEC]
harrymoreno_ has joined #ruby
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
mwmnj has quit [Quit: Textual IRC Client: www.textualapp.com]
ukd1 has joined #ruby
amsi has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
tacit7 has joined #ruby
negaduck has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
mwmnj has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
tkuchiki has joined #ruby
sarlalia1 has quit [Ping timeout: 245 seconds]
lethjakman has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
bradhe has quit [Remote host closed the connection]
Stalkr^ has joined #ruby
lukec has joined #ruby
Ziarkaen` has quit [Read error: Connection reset by peer]
false_economy has quit [Remote host closed the connection]
snovak has joined #ruby
cody-- has joined #ruby
Paradox has quit [Quit: off to herp the derps]
jeebster has quit [Quit: Leaving.]
DonRichie has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
Stalkr^ has quit [Ping timeout: 252 seconds]
dagnachew has joined #ruby
gallon|w has quit [Ping timeout: 246 seconds]
dankest has quit [Quit: Peace]
ewnd9 has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 256 seconds]
gallon|w has joined #ruby
rkrdo has quit [Remote host closed the connection]
hamakn has joined #ruby
Paradox has joined #ruby
mwmnj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ukd1 has quit [Remote host closed the connection]
tacit7_ has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
ferdev has quit [Ping timeout: 260 seconds]
Beoran_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
tacit7 has quit [Ping timeout: 245 seconds]
tacit7_ is now known as tacit7
DarthGandalf has quit [Ping timeout: 260 seconds]
sevenseacat has joined #ruby
saarinen has joined #ruby
HavokOC has quit [Ping timeout: 240 seconds]
guilleiguaran_ has quit [Ping timeout: 264 seconds]
mwmnj has joined #ruby
axl_ has quit [Quit: axl_]
Scorchin has quit [Ping timeout: 260 seconds]
keyvan_ has quit [Ping timeout: 245 seconds]
bluehavana has quit [Ping timeout: 248 seconds]
chuk has quit [Ping timeout: 264 seconds]
kapowaz has quit [Ping timeout: 246 seconds]
lectrick has quit [Ping timeout: 256 seconds]
mattyohe has quit [Ping timeout: 268 seconds]
axl_ has joined #ruby
denysonique has quit [Ping timeout: 260 seconds]
davidboy has quit [Ping timeout: 260 seconds]
karlfreeman has quit [Ping timeout: 256 seconds]
zero7 has quit [Ping timeout: 256 seconds]
dnyy has quit [Ping timeout: 240 seconds]
Guest85414__ has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
rndstr has quit [Ping timeout: 256 seconds]
ehaliewicz has joined #ruby
chuckboxx has joined #ruby
tommyvyo has quit [Ping timeout: 260 seconds]
dagnachew has quit [Quit: Leaving]
aeontech has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
fdelacruz has joined #ruby
JaTochNietDan has quit [Ping timeout: 264 seconds]
z_eos has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
funburn has quit [Quit: funburn]
dagnachew has joined #ruby
Ripp__ has quit []
JaTochNietDan has joined #ruby
devoldmx has joined #ruby
sloucher has quit [Quit: sloucher]
tacit7_ has joined #ruby
rads_ has quit [Quit: rads_]
tacit7 has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
tacit7_ is now known as tacit7
tjbiddle has quit [Ping timeout: 260 seconds]
parzo has joined #ruby
d34th4ck3r has joined #ruby
Catie is now known as CaptainPone
iliketurtles has quit [Quit: zzzzz…..]
brain_shim has quit [Ping timeout: 246 seconds]
LadyRainicorn has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
negaduck has quit [Quit: negaduck]
cj3kim_ has joined #ruby
tommyvyo has joined #ruby
Levin_22 has quit []
T_T has joined #ruby
fdelacruz has left #ruby [#ruby]
kil0byte has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 245 seconds]
jdeeburke has quit [Quit: Leaving.]
bricker`LA has joined #ruby
cj3kim_ has quit [Ping timeout: 245 seconds]
tabolario has joined #ruby
Fezzler has joined #ruby
T_T has quit [Remote host closed the connection]
P1RATEZ has quit []
LadyRainicorn has quit [Ping timeout: 252 seconds]
reset has quit [Quit: Linkinus - http://linkinus.com]
ckampfe has joined #ruby
Ox6abe has joined #ruby
chuckboxx has quit [Quit: chuckboxx]
Fezzler has quit [Quit: Leaving]
NealJ has joined #ruby
radpanda has joined #ruby
k610 has joined #ruby
T_T has joined #ruby
tacit7 has left #ruby [#ruby]
lfox has quit [Quit: ZZZzzz…]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Newbcake has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 245 seconds]
mwmnj has left #ruby ["Textual IRC Client: www.textualapp.com"]
JumpMast3r has joined #ruby
Quashie has quit [Ping timeout: 245 seconds]
<axl_> is there a good example / article i can read to write good argument overloaded class initializer
mlpinit has joined #ruby
bugsinlights has joined #ruby
Stalkr^ has joined #ruby
harrymoreno has joined #ruby
kvirani has joined #ruby
vDubG__ has quit [Ping timeout: 260 seconds]
T_T has quit [Remote host closed the connection]
guilleiguaran_ has joined #ruby
jonahR has joined #ruby
lethjakman has quit [Quit: WeeChat 0.4.0]
Stalkr^ has quit [Ping timeout: 264 seconds]
<bnagy> what's one of those?
lfox has joined #ruby
headius has joined #ruby
cj3kim_ has joined #ruby
i8igmac has quit [Remote host closed the connection]
AdmiraI has joined #ruby
snovak has joined #ruby
greenrose has quit [Ping timeout: 240 seconds]
soba has joined #ruby
i8igmac has joined #ruby
mmitchell has quit [Remote host closed the connection]
Kelet has quit [Ping timeout: 260 seconds]
dagnachew has quit [Quit: Leaving]
snovak has quit [Ping timeout: 245 seconds]
kobain has quit []
Monie has joined #ruby
greenrose has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
bradhe has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
pothibo has joined #ruby
endash has quit [Quit: endash]
nbouscal has quit [Quit: nbouscal]
bradhe has quit [Ping timeout: 264 seconds]
cody-- has quit [Quit: derp]
Davey_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
cj3kim_ has quit [Remote host closed the connection]
nari has joined #ruby
suisha has joined #ruby
defrag has quit [Ping timeout: 246 seconds]
suisha has quit [Client Quit]
defrag has joined #ruby
cj3kim_ has joined #ruby
Davey has quit [Ping timeout: 246 seconds]
LiquidInsect has quit [Ping timeout: 246 seconds]
aboudreault has quit [Ping timeout: 246 seconds]
skinny_much_ has quit [Ping timeout: 246 seconds]
SecretAgent has quit [Ping timeout: 246 seconds]
nbouscal has joined #ruby
LiquidInsect has joined #ruby
JoeTheGuest has quit [Ping timeout: 246 seconds]
SecretAgent has joined #ruby
skinny_much has joined #ruby
lfox has quit [Quit: ZZZzzz…]
emergion has joined #ruby
zz_michael_mbp is now known as michael_mbp
emergion has quit [Max SendQ exceeded]
justsee has quit [Ping timeout: 260 seconds]
soheil has quit [Remote host closed the connection]
chuckboxx has joined #ruby
okinomo has joined #ruby
aboudreault has joined #ruby
Quashie has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
emergion has joined #ruby
io_syl has quit []
emergion has quit [Max SendQ exceeded]
harrymoreno has quit [Quit: harrymoreno]
thepumpkin has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
T_T has joined #ruby
<xybre> axl_: like this? class Foo; def initialize arg1, arg2; super; stuff_that_does_stuffl end; end
Fezzler has joined #ruby
cHarNe2 has quit [Quit: leaving]
Xiti has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<axl_> xybre: I am wondering if i can clean this up somehow : https://gist.github.com/gaganawhad/f41c96e45c7b9a1c0ec5
emergion has joined #ruby
<axl_> pretend that x, y, z are three axes ( i have abstracted the variable names out to avoid needing any domain knowledge)
Fezzler has quit [Client Quit]
emergion has quit [Max SendQ exceeded]
lfox has joined #ruby
<xybre> axl_: what happens if there's only two arguments?
brain_shim has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<axl_> it should raise an ArgumentError
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
BillCriswell has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
huoxito has joined #ruby
Xiti has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
Ox6abe has quit [Remote host closed the connection]
cj3kim_ has quit [Remote host closed the connection]
kil0byte has joined #ruby
osvico has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
emergion has quit [Max SendQ exceeded]
Xiti has quit [Read error: Connection reset by peer]
thecodethinker has quit [Ping timeout: 240 seconds]
Davey_ is now known as Davey
<xybre> axl_: Well I have no idea what you're trying to acomplish and I just spent like 10 minutes trying to run the code: https://gist.github.com/acook/6ad6cacf94f896353970
funburn has joined #ruby
<xybre> So, I'm kind of over it.
<axl_> xybre: thanks for looking into it
<axl_> I didn't know you were working so hard on it
<axl_> i just want to write a more readable intializer
Stalkr^ has joined #ruby
<xybre> Eh, I get bored and write code for people. :)
krz has joined #ruby
<axl_> xybre: :) thanks
emergion has joined #ruby
<xybre> I often learn stuff. Anyway, I am not able to figure out what the logic *should* do, and pretty much any bit of code is going to seriously domain specific, so its difficult to know how it should look when I don't know what its supposed to DO.
k610 has quit [Ping timeout: 246 seconds]
emergion has quit [Max SendQ exceeded]
Nogbit has quit [Ping timeout: 246 seconds]
dkamioka has joined #ruby
Xiti has joined #ruby
dodosan has joined #ruby
lfox has quit [Ping timeout: 256 seconds]
Stalkr^ has quit [Ping timeout: 264 seconds]
chuckboxx has quit [Quit: chuckboxx]
funburn has quit [Quit: funburn]
chrisja has quit [Quit: leaving]
chuckboxx has joined #ruby
lfox has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Yakko has joined #ruby
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
emergion has quit [Max SendQ exceeded]
Bry8Star{T2 has quit [Remote host closed the connection]
mrsolo has joined #ruby
iamjarvo has joined #ruby
lfox has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
Bry8Star{T2 has joined #ruby
iamjarvo has quit [Client Quit]
ehc has quit [Quit: ehc]
xjiujiu has joined #ruby
nanoxd has quit [Ping timeout: 248 seconds]
alvaro_o has quit [Quit: Ex-Chat]
snovak has joined #ruby
funburn has joined #ruby
nanoxd has joined #ruby
BizarreCake has joined #ruby
Nogbit has joined #ruby
callmeivan has quit [Quit: callmeivan]
devoldmx has quit [Ping timeout: 256 seconds]
snovak has quit [Ping timeout: 246 seconds]
funburn has quit [Client Quit]
yacks has quit [Quit: Leaving]
araujo has quit [Read error: Connection reset by peer]
quoin has quit [Remote host closed the connection]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
yacks has joined #ruby
freerobby has joined #ruby
lfox has joined #ruby
quoin has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
okinomo has quit [Ping timeout: 256 seconds]
dkamioka has quit [Remote host closed the connection]
dancardamore has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
araujo has joined #ruby
adnils has quit [Ping timeout: 246 seconds]
adnils has joined #ruby
funburn has joined #ruby
Quashie_ has joined #ruby
kofno has quit [Quit: leaving]
vlad_starkov has joined #ruby
chuk_ has joined #ruby
heftig has quit [Ping timeout: 264 seconds]
tacit7 has joined #ruby
mattyohe has joined #ruby
Guest85414__ has joined #ruby
|jemc| has joined #ruby
HavokOC has joined #ruby
dnyy has joined #ruby
bluehavana has joined #ruby
karlfreeman has joined #ruby
lectrick has joined #ruby
thecodethinker has joined #ruby
keyvan_ has joined #ruby
heftig has joined #ruby
zero7 has joined #ruby
rndstr has joined #ruby
davidboy has joined #ruby
Scorchin_ has joined #ruby
Quashie has quit [Ping timeout: 248 seconds]
xjiujiu has quit [Ping timeout: 268 seconds]
denysonique has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
soheil has joined #ruby
cescalante is now known as ce_afk
okinomo has joined #ruby
thecodethinker has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
kofno has joined #ruby
ce_afk is now known as cescalante
kapowaz has joined #ruby
okinomo_ has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
mjc_ has quit [Remote host closed the connection]
heftig has joined #ruby
okinomo_ has quit [Client Quit]
tacit7 has left #ruby [#ruby]
okinomo has quit [Remote host closed the connection]
soheil has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
d34th4ck3r has quit [Quit: d34th4ck3r]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
DonRichie has quit [Quit: Verlassend]
Cyrus has joined #ruby
chuk_ has quit [Ping timeout: 241 seconds]
keyvan_ has quit [Ping timeout: 245 seconds]
okinomo has joined #ruby
mattyohe has quit [Read error: Operation timed out]
davidboy has quit [Read error: Operation timed out]
bluehavana has quit [Ping timeout: 256 seconds]
zero7 has quit [Ping timeout: 256 seconds]
thepumpkin has joined #ruby
rndstr has quit [Ping timeout: 240 seconds]
lectrick has quit [Ping timeout: 260 seconds]
Guest85414__ has quit [Ping timeout: 264 seconds]
dnyy has quit [Ping timeout: 245 seconds]
karlfreeman has quit [Ping timeout: 245 seconds]
kapowaz has quit [Ping timeout: 248 seconds]
HavokOC has quit [Ping timeout: 248 seconds]
funburn has quit [Quit: funburn]
Scorchin_ has quit [Ping timeout: 260 seconds]
denysonique has quit [Ping timeout: 264 seconds]
maroloccio has quit [Quit: WeeChat 0.4.0]
justsee has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
rhys_ has joined #ruby
rhys_ has left #ruby ["Leaving"]
fridim__ has quit [Ping timeout: 256 seconds]
Stalkr^ has joined #ruby
parzo has quit [Ping timeout: 240 seconds]
Liothen has joined #ruby
taternuts has quit []
Yakko has quit [Read error: Connection reset by peer]
kevinykchan has quit [Ping timeout: 245 seconds]
mgorbach has quit [Ping timeout: 240 seconds]
harrymoreno has joined #ruby
mary5030 has joined #ruby
<|jemc|> so I've got a library that extends some core classes
Stalkr^ has quit [Ping timeout: 264 seconds]
<|jemc|> however, the methods added are not integral to the functioning of the library
<|jemc|> they are for convenience
<|jemc|> anybody know a good pattern for including them by default, but giving the user some opportunity to 'opt out'?
<|jemc|> I've got a few ideas, but they all seem a little weird
chuckboxx has quit [Quit: chuckboxx]
freeayu has quit [Read error: Connection reset by peer]
<|jemc|> or rather, they all seem to have a problem or two when I think about the consequences or edge cases
kofno has quit [Quit: leaving]
DrCode has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
dsferreira has quit [Quit: This computer has gone to sleep]
twoism has joined #ruby
freerobby has quit [Quit: Leaving.]
huoxito has quit [Quit: Leaving]
brianpWins has joined #ruby
DrCode has joined #ruby
twoism has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
ixti has quit [Ping timeout: 245 seconds]
PaulePanter has quit [Ping timeout: 246 seconds]
MetaCosm has quit [Ping timeout: 246 seconds]
PaulePanter has joined #ruby
<jrobeson> |jemc|, and the ideas are?
<jrobeson> not that i will have a good response, but i think it might help other people get where you're trying to go with this
greenride has joined #ruby
devoldmx has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
Raboo has quit [Ping timeout: 246 seconds]
mgorbach has joined #ruby
<greenride> Using the ruby debugger, is there a way to find a classes name if I have the id number?
saarinen has quit [Quit: saarinen]
Raboo has joined #ruby
mlue has quit [Ping timeout: 246 seconds]
mlue has joined #ruby
Alina-malina has quit [Ping timeout: 276 seconds]
<onewheelskyward> The id number?
<onewheelskyward> What ruby debugger are you using?
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
<greenride> NameError Exception: undefined local variable or method `school_title' for #<#<Class:0x0000000c7fd580>:0x0000000c7f9458>.
<greenride> onewheelskyward: That's my error message. I want to get more information about <Class:0x0000000c7fd580>.
<onewheelskyward> yeah that's not a lot of info at all
<sevenseacat> well if you have a debugger, cant you just reference that variable directly?
<sevenseacat> assuming that object is in a variable
freeayu has joined #ruby
freerobby has joined #ruby
twoism has joined #ruby
MetaCosm has joined #ruby
MetaCosm has joined #ruby
BillCriswell has joined #ruby
<greenride> sevenseacat: I get that error when calling a function.
<greenride> from inside the debugger.
<sevenseacat> and that function is....?
kvirani has quit [Ping timeout: 276 seconds]
<greenride> It's a function in a Rails helper module.
freerobby has quit [Client Quit]
<sevenseacat> youre not helping yourself here
mary5030 has joined #ruby
snovak has joined #ruby
<greenride> If the initial question I asked is not answerable, I need to create a simple piece of code illustrating the problem. I haven't done that.
<sevenseacat> well your error is coming from you calling something like foo.school_title and foo not having the method school_title
<sevenseacat> so just inspect foo and see what it is
ananthakumaran has quit [Quit: Leaving.]
hamakn has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
hogeo has joined #ruby
toastynerd has quit [Remote host closed the connection]
freerobby has joined #ruby
<greenride> I get that error by putting <% debugger %> in my application.html.erb file. Then, when the debugger stops, I call the method school_title. This gives me the error.
<sevenseacat> so you're calling school_title on self
<sevenseacat> inspect self
<greenride> thank you
twoism has quit [Remote host closed the connection]
<|jemc|> jrobeson: well, one of the big decisions is I can't decide whether it is better to prevent the definitions from happening or to undo them later upon request
hamakn_ has joined #ruby
twoism has joined #ruby
<greenride> sevenseacat: That was the answer I wanted. Thanks for figuring out the question and the answer.
freerobby has quit [Client Quit]
<sevenseacat> np
<|jemc|> jrobeson: for example, they could get defined when the user requires 'my_lib' and undefined when they require 'my_lib/clean'
<|jemc|> jrobeson: but this is weird and a little scary
snovak has quit [Ping timeout: 260 seconds]
<|jemc|> jrobeson: even if you take the care to alias existing methods before the define so that you could put them back in place later, it's still weird
BillCriswell has quit [Ping timeout: 245 seconds]
<|jemc|> jrobeson: the other option is that one would just require 'my_lib/clean' to start with, and it would load the 'clean' version of the lib
mrsolo has quit [Quit: This computer has gone to sleep]
<|jemc|> jrobeson: but then what is the defined behavior if later in the code 'my_lib' itself gets required? does it do nothing or does it load the extensions that weren't loaded before?
<jrobeson> let's see.. you could use a factory
hogeo has quit [Read error: Connection reset by peer]
<|jemc|> jrobeson: and what if 'my_lib' is required as a sub-require by some other lib that happens to get loaded before the user requires 'my_lib/clean'?
bricker`LA has quit [Ping timeout: 245 seconds]
<|jemc|> jrobeson: use a factory to only include the extension methods in specific objects created through it?
<jrobeson> well.. really.. without seeing the code. it's kinda hard for me to think it through.. since there are so many options
<|jemc|> that particular approach won't work in this case, and defeats the 'convenience' of the extensions
bricker`LA has joined #ruby
<jrobeson> yeah.. it's pointless to ponder hypotheticals
goleldar has quit [Quit: Leaving]
<jrobeson> make it concrete please
<|jemc|> sure
<jrobeson> because otherwise i'll keep suggesting something.. and you'll say .. no i can't do that because X
havenwood has joined #ruby
freerobby has joined #ruby
<|jemc|> although its a hefty bit of context
quoin has quit [Remote host closed the connection]
noop has joined #ruby
quoin has joined #ruby
<|jemc|> so, I originally had active_support/core_ext as a dependency, because I wanted to use the time syntax sugar they inject into Numeric
<|jemc|> 3.minutes.from_now
<|jemc|> 2.hours.ago
funburn has joined #ruby
s2013 has joined #ruby
<|jemc|> but my lib has nothing to do with rails, and activesupport has a tendency to cause a bunch of other problems when not used in the environment it was created for
randomautomator has quit [Ping timeout: 245 seconds]
<|jemc|> by nature of it being so obtrusive
vlad_starkov has joined #ruby
<|jemc|> (such as breaking use of the std json lib for many use cases)
<onewheelskyward> yep.
polaco is now known as polaco_zZz
<onewheelskyward> I've been running into that, too.
<s2013> ruby sort method uses quicksort right?
<onewheelskyward> I've been recreating the things that activesupport has but only the pieces of it I need.
<|jemc|> and it's pretty difficult to untangle these time functions from the other parts of active_support/core_ext
<|jemc|> yeah, exactly
<onewheelskyward> For instance, titleize
<|jemc|> I basically recreated the time methods in a lightweight way that stands alone
<|jemc|> it's about 45 lines of code that only touches ::Time and ::Numeric
<onewheelskyward> Yeah. Did you gem it?
<|jemc|> no, I didn't
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<|jemc|> I wasn't sure how much demand there would be
quoin has quit [Ping timeout: 248 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<onewheelskyward> You should do it. It's good practice. :)
<onewheelskyward> Plus, should you need it on another project...
<|jemc|> oh, I remember the other reason I didn't
JohnBat26 has joined #ruby
jrobeson has quit [Quit: Leaving]
<|jemc|> I actually built some other things into it that are only relevant to my lib
<onewheelskyward> That's the other thing a gem would keep you from doing.
<onewheelskyward> Build it generic.
<|jemc|> well, if I did that, I'd end up overwriting the methods again for my lib
deckeraa has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
<|jemc|> basically, I made it so that ago/from_now/since/until will all accept an optional proc
<|jemc|> which sends that proc into my event processing framework
<|jemc|> giving syntax like '3.minutes.from_now do something_interesting end'
<onewheelskyward> So make it a block and yield?
<|jemc|> at which layer? and which problem are we trying to solve?
yacks has quit [Quit: Leaving]
quoin has joined #ruby
Nilium has quit [Ping timeout: 256 seconds]
jrobeson has joined #ruby
mklappstuhl has joined #ruby
JoeTheGuest has joined #ruby
<havenwood> Just cherry-picking ActiveSupport's Time freedom patches is still too heavy?: require 'active_support/core_ext/numeric/time'
<|jemc|> havenwood: unfortunately yes
<havenwood> Oh, okay. I read on. >.> JSON breakage, kk.
<|jemc|> even if it didn't, it's a big gem to have in your gemspec
<|jemc|> anyway, my main issue is figuring out the cleanest way for a user to opt out of my core extensions
cj3kim_ has quit [Remote host closed the connection]
<|jemc|> especially because they duplicate (and probably cause problems with) these activesupport extensions
<havenwood> make it a refinement and they can opt-in with `using`?
<|jemc|> well, I'd rather make it an opt-out if possible, but I realize that that is the source of my real problems here
mklappstuhl has quit [Ping timeout: 264 seconds]
<|jemc|> I was hoping there was a common pattern for that sort of thing
Nilium has joined #ruby
<|jemc|> like perhaps setting a 'dont define those methods' flag
<|jemc|> which could be wrapped inside of something like require 'my_lib/dont_touch_my_core'
<|jemc|> then, as long as that's required before the main lib...
<|jemc|> still weird though
Stalkr^ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
iliketurtles has joined #ruby
hogeo has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
Heero has joined #ruby
<|jemc|> havenwood: thanks for the tip about refinements, though. hadn't encountered those yet and is good food for thought
<havenwood> I like the idea of Clojure's `time` function for benchmarking. It evals the expr and prints the time it took, and returns the value of the expr.
<havenwood> Not sure if this is the best way to implement, but here is a stab in Ruby: https://gist.github.com/havenwood/6632658
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xanderby has quit [Ping timeout: 248 seconds]
Xanderby_ has joined #ruby
Stalkr^ has quit [Ping timeout: 245 seconds]
Xanderby_ has quit [Remote host closed the connection]
Heero has quit [Client Quit]
AdmiraI has joined #ruby
sayan has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
dodosan_ has joined #ruby
<havenwood> Is this already available and I'm just missing it? Seems like a nice idea.
beneggett has joined #ruby
jerius has joined #ruby
dhruvasagar has joined #ruby
araujo has quit [Ping timeout: 248 seconds]
dodosan has quit [Ping timeout: 264 seconds]
<onewheelskyward> I feel like it's been solved somewhere but I can't prove it. :)
<havenwood> onewheelskyward: Yeah, it returns the time it took. You can of course print the return value but...
<onewheelskyward> oh, you lose the return of the eval?
<havenwood> yeah
Clooth has joined #ruby
<onewheelskyward> I see.
<havenwood> the part i liked of clojures was being able to print the block execution time but return the value as if you weren't benching
<onewheelskyward> What about ruby profiler? http://ruby-prof.rubyforge.org/
<onewheelskyward> Seems a little dated...
Alina-malina has joined #ruby
<havenwood> well, easy enough to solve in a couples lines of code
jerius has quit []
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<onewheelskyward> Yeah, I see where that would be useful.
<havenwood> but I think i'll keep handy for project euler :P
chairabanta has joined #ruby
<havenwood> `time do` is nice and simple
<onewheelskyward> simple == good
hogeo has quit [Remote host closed the connection]
<havenwood> simple === good
<havenwood> ;P
<|jemc|> wow. refinements are pretty nifty
<onewheelskyward> lol
<havenwood> proposing a fourquals (====) might be a nice April fools for ruby mailing list
<havenwood> or fourquals and fivequals with varying meanings
iliketurtles has quit [Quit: zzzzz…..]
Soda has quit [Remote host closed the connection]
<onewheelskyward> love it
noop has quit [Ping timeout: 245 seconds]
harrymoreno has joined #ruby
butblack has joined #ruby
chuckboxx has joined #ruby
hogeo has joined #ruby
<havenwood> or .. is inclusive range and ... is exclusive range, so proposed .... for overly-inclusve range: 1....2.include? 3 #=> true
<havenwood> hrm, or overly-exclusive: 1....2.include? 0 #=> true
iliketurtles has joined #ruby
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<beneggett> OT: Anyone know how to view the number of Ruby projects on github? I used to know how, but can't find it anymore
brain_shim has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby
lukec has quit [Quit: lukec]
snovak has joined #ruby
Kar- has joined #ruby
chairabanta has quit [Quit: Leaving...]
Kar- has quit [Read error: Operation timed out]
snovak has quit [Ping timeout: 240 seconds]
guiguidoc has quit [Ping timeout: 248 seconds]
ukd1 has joined #ruby
guiguidoc has joined #ruby
NealJ has quit [Quit: :c]
staafl has quit [Ping timeout: 260 seconds]
Heero has joined #ruby
Heero has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
schaerli has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
SeySayux has quit [Ping timeout: 248 seconds]
<havenwood> beneggett: 221,906
BadQuanta has joined #ruby
<beneggett> havenwood: Perfect! Thank you much!
hamakn_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
hamakn has joined #ruby
dodosan_ has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
harrymoreno has joined #ruby
okinomo has quit [Ping timeout: 256 seconds]
<havenwood> beneggett: Oh, oops, >0 means excluding repos with zero stars...
SeySayux has joined #ruby
butblack has quit [Quit: butblack]
shadoi has quit [Quit: Leaving.]
<havenwood> beneggett: 4,077,169
freeayu has quit [Quit: This computer has gone to sleep]
<beneggett> yeah, just noticed the same thing
<havenwood> I was only off by about 18x. >.>
dodosan has joined #ruby
OneMT has quit [Quit: OneMT]
girija has joined #ruby
<beneggett> no, its only: 429,187 for ruby
<beneggett> you're looking at the grand total ;)
<havenwood> oops again
Ripp__ has joined #ruby
<sevenseacat> lol
freerobby has quit [Quit: Leaving.]
<havenwood> hrm, there seem to be four repos that have less than zero stars...
OneMT has joined #ruby
atno has quit [Ping timeout: 268 seconds]
<sevenseacat> yep, -1 lol
vlad_starkov has quit [Ping timeout: 245 seconds]
<beneggett> also note, i just searched like this: stars:>=0
OneMT has quit [Client Quit]
r0bglees0n has joined #ruby
freerobby has joined #ruby
<havenwood> oh, it is PHP - then that makes sense!
haxrbyte has joined #ruby
<havenwood> ?
DarthGandalf has joined #ruby
baroquebobcat has joined #ruby
<beneggett> 2 PHP, one ruby, one random, haha
LMolr has joined #ruby
kevinykchan has joined #ruby
<havenwood> at least nothing lower than -1 stars
<havenwood> here, i starred the Ruby one
Lewix has quit [Remote host closed the connection]
tomsthumb has quit [Ping timeout: 264 seconds]
<havenwood> now tomorrow it'll just be PHP :P
<havenwood> aha, and unstarring it set it to 0
<havenwood> now just three -1 starred repos on Github, my work for tonight is done... muahaha
wallerdev has quit [Quit: wallerdev]
<|jemc|> ha
soheil has joined #ruby
T_T has quit [Remote host closed the connection]
<|jemc|> those poor repos
wallerdev has joined #ruby
jrobeson has quit [Read error: Operation timed out]
soheil has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
Soda has joined #ruby
<havenwood> wonder how it happened?
<havenwood> a mystery...
karlfreeman has joined #ruby
Scorchin_ has joined #ruby
HavokOC has joined #ruby
kapowaz has joined #ruby
mattyohe has joined #ruby
bluehavana has joined #ruby
dnyy has joined #ruby
keyvan_ has joined #ruby
lectrick has joined #ruby
zero7 has joined #ruby
Guest85414__ has joined #ruby
io_syl has quit [Read error: Connection reset by peer]
dancardamore has quit []
davidboy has joined #ruby
denysonique has joined #ruby
codecop has joined #ruby
schaerli has joined #ruby
apeiros has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 248 seconds]
cj3kim_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chuk_ has joined #ruby
rndstr has joined #ruby
freerobby has quit [Quit: Leaving.]
jrobeson has joined #ruby
beneggett has joined #ruby
kevinykchan has quit [Ping timeout: 260 seconds]
cj3kim_ has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 248 seconds]
nextdropping has joined #ruby
headius has quit [Quit: headius]
wallerdev has quit [Quit: wallerdev]
tomzx_mac has quit [Read error: Operation timed out]
Teddy2steper has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
rrichardsr3 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
lfox has quit [Quit: ZZZzzz…]
tvw has joined #ruby
ewnd9 has joined #ruby
AdmiraI has joined #ruby
thepumpkin has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
twoism_ has joined #ruby
twoism has quit [Ping timeout: 264 seconds]
aagdbl has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
wizrad has joined #ruby
browndawg has joined #ruby
wizrad has left #ruby ["Leaving"]
Stalkr^ has joined #ruby
schaerli has quit [Remote host closed the connection]
rjhunter has joined #ruby
funburn has joined #ruby
St_Marx has joined #ruby
Soda has quit [Remote host closed the connection]
Ripp__ has quit []
St_Marx has quit [Remote host closed the connection]
Ripp__ has joined #ruby
funburn has quit [Ping timeout: 260 seconds]
axl_ has quit [Quit: axl_]
snovak has joined #ruby
marsLantern has joined #ruby
GeissT_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peer has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
peer is now known as Guest79188
St_Marx has joined #ruby
yrrrep has quit [Ping timeout: 264 seconds]
sarkis has quit [Ping timeout: 256 seconds]
GeissT_ has quit [Client Quit]
GeissT has quit [Ping timeout: 248 seconds]
snovak has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
freerobby has joined #ruby
ananthakumaran1 has joined #ruby
marsLantern has quit [Quit: marsLantern]
hogeo has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 260 seconds]
okinomo has joined #ruby
<s2013> anyone here?
locriani has quit [Ping timeout: 256 seconds]
<sevenseacat> no.
<onewheelskyward> nope
<s2013> ok cool. im just trying to practice some ruby programming so i was trying to do some math problems. im pasting one of the solutions i did but it looks way too big and inefficient so i was wondering if someone can tell me what i can do to make it better? http://paste.ubuntu.com/6131278/
adambeynon has joined #ruby
aryaching_ has joined #ruby
marsLantern has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
freerobby has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
negaduck has joined #ruby
<jrobeson> s2013, why are you using for?
<jrobeson> i think you sould reread the documention for methods like inject, select, and map
<s2013> what should i use?
<s2013> i mean it works. but im pretty sure its the shittiest way of doiong it
<jrobeson> sounds like pretty well any ruby tutorial :)
<jrobeson> exactly
hardbit has joined #ruby
<jrobeson> when i was picking up ruby myself, almost every tutorial recommended against using for() unless you have an actual reason to use it
ewnd9 has quit [Read error: Operation timed out]
RichardBaker has joined #ruby
<sevenseacat> i dont know why ruby has for tbh
<s2013> yeah i didnt want to use for but im more comfortable with for cause of c++ so i rely back on it if i dont know what else to do
<jrobeson> well if you do definintely want the scope outside of the for() .. then it's a comfortable way to use it
<s2013> where is also while
<s2013> there*
<jrobeson> well go read more docs
lemonsparrow has quit [Quit: Page closed]
<s2013> there is also 1..n-1.each do which i thought of using
<jrobeson> s2013, check out this little one i just googled up http://matthewcarriere.com/2008/06/23/using-select-reject-collect-inject-and-detect/
<jrobeson> generally you should each over for
<s2013> but i had no use for the thing inside |i|
<s2013> let me check
flagg0205 has quit [Quit: leaving]
greenride has left #ruby [#ruby]
<sevenseacat> s2013: how about just n.times then ?
<krz> how do i check if a date's day is a multiple of 3?
apeiros has joined #ruby
Nenor has joined #ruby
<s2013> yeah i forgot about that one. thats the one i was thinking about
<krz> considering some months have 28 days
nism has joined #ruby
<s2013> so n.times do blah blah end right? i dont need to pass the |i| or whatever
<sevenseacat> try it?
<s2013> ok im going to try rewriting it and see how much more ruby like it gets.
andikr has joined #ruby
<sevenseacat> yeah at the moment it isnt much like idiomatic ruby at all
<s2013> as far as the converting summing all the digits, how would i do it different? i converted it to string, put them in an array and then converted them back into an integer. im pretty sure i messed up somewhere
* sevenseacat trying to decide if its worth getting the MEAP of the 2nd ed of The Well-Grounded Rubyist
<radpanda> ruby is the worst language ever
<jrobeson> sevenseacat, so you liked the first one?
<radpanda> what a piece of shit language
<radpanda> >:[
<jrobeson> oh noes.. not radpanda
<jrobeson> he infected one of our other channels
<jrobeson> we hadda ban him
<sevenseacat> jrobeson: by the time i got it it was already out of date
<radpanda> wat
<radpanda> what channel did u ban me in
<jrobeson> who cares
<s2013> jrobeson: do you work as a ruby/rails dev?
<jrobeson> s2013, uhmm.. that's hard to say
<radpanda> i do
<radpanda> that's why i asked
<jrobeson> i am writing a rails app now.. for the first time.. because i got bored
<jrobeson> well i dont'
<radpanda> make sure ur mvc
<radpanda> is appropiated to heroku
<radpanda> and u r using git
Teddy2steper has quit [Remote host closed the connection]
<radpanda> OK BRO
<s2013> oh.. i decided to finally look for a job after like 6 years. only to learn rails/ruby better. i got bunch of interviews which i passed the first round and now i got calls backs for the more technical interview and i have no idea what they will ask
<s2013> i havent looked for a job in 6 years
<s2013> and i forgot most of the basic cs stuff i learned back in college
<jrobeson> s2013, i've worked as a web developer for many years though
<jrobeson> and i've written apps for fun using sinatra
flagg0205 has joined #ruby
cawing01 has quit [Ping timeout: 248 seconds]
<s2013> i have about 5-6 years of experience with c++ and php but had a big gap where i ran my own company and stopped programming
flagg0205 has quit [Client Quit]
<jrobeson> so i'm pretty familiar with reading ruby, and writing ruby.. just not as idiomatic as it could be
flagg0205 has joined #ruby
<radpanda> ur dumb
<jrobeson> yep
<s2013> i had to have a friend refresh some things such as sorting, data structures, etc. that i forgot about
<jrobeson> well php sure does make hashes easy
<s2013> but not sure what knid of questions they will ask. from mye xperience its usually questions that arent practical at all but more theoretical stuff
persand has joined #ruby
flagg0205 has quit [Client Quit]
<jrobeson> s2013, perhaps you should run through the ruby koans
<jrobeson> and rubymonk tutorial thingy
bricker`LA has quit [Ping timeout: 260 seconds]
maasha has joined #ruby
<s2013> yeah i should actualy do ruby koans. i did it partially when i started butnever did the whole thing
<jrobeson> oh.. if you wanna learn about the more fancy stuff.. like seeing more examples lamdas, procs and blocks
<s2013> there is also ruby tapas
cawing01 has joined #ruby
<jrobeson> the codeschool ruby bits are pretty ok
<s2013> yeah i think im going to go through the code school ruby stuff now. i did about half of it
caveat- has quit [Ping timeout: 256 seconds]
<s2013> i met the guy who runs codeschool
<radpanda> what code school ruby stuff?
<sevenseacat> rubytapas is awesome.
<jrobeson> go through part 1 and part 2 of ruby bits for sure s2013
<radpanda> is that like a shitty code academy
<radpanda> ?
<s2013> radpanda: its a bit diff
<s2013> they teach you bits and pieces but some really solid tips
flagg0205 has joined #ruby
<radpanda> just the tips?
<s2013> yes
<maasha> Hey, if I in bash run a command 'script1.rb -e foo | script2rb -e bar' is there any way to catch that command from within script1.rb and script2.rb?
flagg0205 has quit [Client Quit]
lucazi has joined #ruby
<s2013> anyone worked with ruby gtk?
<maasha> One could get it from .bash_history
<maasha> but I dont feel that is robust
caveat- has joined #ruby
<s2013> this company im interviewing for is a hardware company and they used ruby gtk to build the software that runs their hardware or something.
<jrobeson> s2013, if i was doing stuff with gtk.. i wouldn't use ruby.. i'd use python
<jrobeson> really? well tha'ts good to know that somebody is really using it in production
<s2013> yeah he said they are going to switch it over to python as there were some issues
<s2013> they used ruby gtk for their first version of the product
<jrobeson> s2013, glad i wasn't incorrect about that
<maasha> .bash_history is even buffered :o/
sayan has joined #ruby
<s2013> whats pretty cool is that their entire gui is html5/js
<s2013> for the touchscreen attached to their hardware
<jrobeson> s2013, based on what i've seen and heard over the past 9 years when it comes to language bindings for toolkits
<jrobeson> python is the one that is most active when it comes to the interprted languages
<jrobeson> i likely run at least 4 or 5 of them daily that are based on pygtk
<s2013> oh ok
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<jrobeson> it's both actively maintained.. and put through the paces
<s2013> i shouldve learned more python. i just learned enough to do some basic stuff but that was when i was choosing between django/rails
<s2013> django didnt click with me
<sevenseacat> python never clicked with me
<jrobeson> redhat uses python a lot.. they tend to use python gtk for stuff they put in with gnome.. (if not straightt C)
<jrobeson> which means lots of gnome stuff ends up being pygtk based (once again.. if not C)
Xeago has quit [Read error: Connection reset by peer]
<s2013> so someone asked me about scaling a rails app. what are some tips/tricks to do that? would it be like utilizing redis is one of the things to do?
<jrobeson> i'd never personally use gtk myself.. if it wsn't about gnome
<jrobeson> qt is just better
noop has joined #ruby
<jrobeson> if qt wouldn't have been so badly licensed in the beginning.. i bet that gtk wouldn't even exist like it does
<sevenseacat> s2013: you do realize there are entire books on that subject right
corpuscle has joined #ruby
<sevenseacat> its not just a 'heres a cool trick'
kil0byte has quit [Ping timeout: 245 seconds]
<s2013> yeah im sure
<s2013> i didnt say one cool trick woul help scale an entire app. im just asking for some more common basic things
<s2013> if there is any
<sevenseacat> if you walked into an interview and answered the question like that, well
kil0byte has joined #ruby
locriani has joined #ruby
<s2013> and its more a curiosity thing. nah it wasnt part of an interview and i dont think anyone would ask me that.
<jrobeson> there is a rails guide for caching
<jrobeson> iirc
<s2013> since i told everyone im a complete newb
flagg0204_ has joined #ruby
<jrobeson> s2013, if you wanna learn about scaling.. i wouldn't recommend being restricted to rails
<jrobeson> when searching
rrichardsr3 has quit [Quit: -- I'm out --]
<jrobeson> most of the stuff you do applies to all of them
<s2013> true
<jrobeson> then look up the rails way to do it
<s2013> i remember when i had an old site that was slowing down ridiculously. we had to just get more servers to handle the mysql db alone
pvizcay has joined #ruby
aganov has joined #ruby
<jrobeson> page caching, database query caching, memcached, redis, proxies, cdns.. asset caching, esi, the list is pretty huge
<s2013> thanks. thats all i was looking for
<jrobeson> the techniques , and the things you use to implement them.. are quite wide ranging..
<sevenseacat> s2013: please credit jrobeson when you answer that one
<s2013> well i dont think anyone will actually ask me that
<s2013> and if they did ill tell them that they have the wrong person
schaerli has joined #ruby
<jrobeson> s2013, i mixed up implementation stuff with the overall thing.. i wouldn't really consider it a good answer
<s2013> jrobeson: its fine dude. it was more of a curiosity thing than anything else
Deele has joined #ruby
<jrobeson> s2013, just try not to be a rails dev if you can ..
deckeraa has left #ruby [#ruby]
<jrobeson> be a dev that can write rails apps :)
<sevenseacat> nothing wrong with being a rails dev
<s2013> to be honest im mainly learning rails so i can build my own apps for the future
<s2013> i couldve written them in php but meh
locriani has quit [Ping timeout: 252 seconds]
<s2013> or i could get my employees to write it but i rather write stuff on my own
freerobby has joined #ruby
<jrobeson> sevenseacat, i'd prefer to hire somebody who wasn't just a php dev, or a ruby dev.. or a $framework dev .
<jrobeson> just a dev who can do those things
<s2013> yeah i agree jrobeson
<sevenseacat> jrobeson: that doesnt mean thats the only frmaeowkr you can use
<sevenseacat> *framework
<s2013> once you get the basics down rest is just syntaxes and its not too hard to switch to another lang/framework
<sevenseacat> i work as a rails dev
vlad_starkov has joined #ruby
<s2013> does google have a big presence in australia?
<jrobeson> ah i was suggesting that you're a dev who can do rails ..
sayan has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
dagobah has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nism has left #ruby [#ruby]
<jrobeson> s2013, well as you can see.. you can certainly achieve something using the same techniques as in other languages (like using for()) before
<s2013> what i find funny is that some companies who are just startups wants someone with 7+ years of rails experience...
<jrobeson> i want 10000 years rails experience
<sevenseacat> very few people out there have 7+ years of rails experience
<s2013> i think there are a handful of people who have 7+ years of experience
<s2013> yeah
lemonsparrow has joined #ruby
peregrine81 has quit []
ukd1 has quit [Remote host closed the connection]
kevinykchan has joined #ruby
<jrobeson> i think if i hire a pereson to do rails ever.. i'm gonna ask them .. what's your opinion of the mvc architecture in rails
freerobby has quit [Ping timeout: 245 seconds]
<s2013> what is yours?
Elhu has quit [Quit: Computer has gone to sleep.]
<jrobeson> s2013, it works.. but i don't like it :)
<jrobeson> it feels like php apps i wrote back in 2002
dash_ has joined #ruby
<s2013> does it?
<sevenseacat> lolwat
<s2013> well most php frameworks are based off rails
<jrobeson> thinsg like the routing are more advanced obviously
<jrobeson> sevenseacat, i said.. i wrote.. not everybody wrote :)
<jrobeson> well me and my friends anyways
<jrobeson> not what you saw in tutorials :)
<s2013> did you use mysql()?
<jrobeson> no
<s2013> did they have pdo back then?
<s2013> or some other orm
<sevenseacat> you were writing code like rails back when php only had fledgeling and buggy OO support?
<jrobeson> i mean .. we used the lib ..
<jrobeson> but with a wrapper
<s2013> i see
|jemc| has quit [Ping timeout: 248 seconds]
s0ny123 has joined #ruby
<jrobeson> sevenseacat, we only had an actual object for the db wrapper
<jrobeson> it wasn't a proper ORM, but it did handle problems that people still have to deal with today
<sevenseacat> so.. you really werent using anything like mvc at all
haxrbyte has joined #ruby
<jrobeson> sevenseacat, uhmm you can do mvc just fine without classes
<jrobeson> i would say it was OO.. just not with classes..
<jrobeson> in the same way glib is object oriented.. but in C
<sevenseacat> i see
<sam113101> using php structs and function pointers?
DrCode has quit [Ping timeout: 240 seconds]
haxrbyte_ has joined #ruby
<xybre> Ruby is written in C...
DrCode has joined #ruby
<jrobeson> it was very convetnion based.. a single function per file like module/$modName/$apiType/$controllerAction with a function like $modname_$apiType_$action
<jrobeson> quite verbose
<jrobeson> but it did work
filipe has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
<jrobeson> the router would just determine the controller, and module based on query parameters and then call that function (sanitized and cleaned up)
sayan has joined #ruby
<jrobeson> and that would return the view parameters that got passed to the template
<jrobeson> that sounds mvc to me.
toastynerd has joined #ruby
nextdropping_ has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
<jrobeson> if not such function existed, it would render the view as a standalone template if a file existed that followed the functions
<jrobeson> followed that convention*
nextdropping has quit [Ping timeout: 240 seconds]
Xeago has quit [Read error: Connection reset by peer]
flagg0205 has joined #ruby
<jrobeson> sevenseacat, how is that not mvc?
m8 has joined #ruby
Xeago has joined #ruby
<jrobeson> i skipped over the model part.. but it's basically just a table mapper to columns..
<jrobeson> using a hash
<sevenseacat> i didnt say it wasnt, but that also has zero resemblance to rails
_maes_ has joined #ruby
Dreamer3 has quit [Ping timeout: 245 seconds]
lemonsparrow has quit [Ping timeout: 250 seconds]
<jrobeson> i didn't say it did
haxrbyte has joined #ruby
clov3r has quit [Remote host closed the connection]
flagg0205 has quit [Client Quit]
kil0byte has joined #ruby
<sevenseacat> 'mvc in rails feels like php apps i wrote in 2002'
<xybre> Rails isn't actually MVC though
flagg0204_ has quit [Quit: Laters...]
Dreamer3 has joined #ruby
<jrobeson> sevenseacat, on my own.. apps at the time. when learning. i didn't keep such a tight reign on my view parameters
flagg0205 has joined #ruby
<jrobeson> and did something like how the instance variables were send to the controllers.. as rails does
mrsolo has joined #ruby
<jrobeson> err sent from the controllers to the view*
haxrbyte_ has quit [Ping timeout: 240 seconds]
flagg0205 has quit [Client Quit]
flagg0204_ has joined #ruby
<jrobeson> although using actual objects for it is certainly cleaner.. the equivalent without objects in php at the time was using globals with prefixes
snovak has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
zmansiv has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
lemonsparrow has joined #ruby
hogeo has joined #ruby
Morrolan has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 240 seconds]
<Suit_Of_Sables> how are my favorite people this eve... er.. morning?
existensil has quit [Ping timeout: 240 seconds]
flagg0204_ has quit [Remote host closed the connection]
flagg0204_ has joined #ruby
mradmacher has joined #ruby
<r0bglees0n> xybre: its not?
kil0byte has quit [Remote host closed the connection]
kil0byte has joined #ruby
mradmacher has left #ruby [#ruby]
kil0byte has quit [Remote host closed the connection]
mradmacher has joined #ruby
<xybre> r0bglees0n: No. Rails used to call it "web MVC". And I think its an itneresting pattern, but it leaves poor separation of concerns.
toddWork_ has quit [Read error: Operation timed out]
<r0bglees0n> xybre: go on
Nenor has quit [Quit: Nenor]
toddWork_ has joined #ruby
intuxicated_ has joined #ruby
<xybre> What do you want to know?
<r0bglees0n> what part of the mvc pattern does rails break?
toddWork__ has joined #ruby
DanKnox is now known as DanKnox_away
toddWork_ has quit [Read error: Connection reset by peer]
<r0bglees0n> its obviously adjusted to the web
tvw has joined #ruby
<jrobeson> r0bglees0n, i consider the controller instance vars being used in the views by default as broken
intuxicated has quit [Ping timeout: 248 seconds]
<jrobeson> obviously one can go other routes.. as per recent interest in stuff like draper and other presenters
<r0bglees0n> jrobeson: not a requirement, you dont have to do that, you can pass local state
girija has quit [Quit: Ex-Chat]
tvw has quit [Client Quit]
<jrobeson> r0bglees0n, i know the problem is that's not what people do :)
tvw has joined #ruby
cads has quit [Ping timeout: 260 seconds]
<jrobeson> perhaps it's better to say.. broken by default
<r0bglees0n> it probably encourages that pattern, hardly a deal breaker though
jonkri has joined #ruby
Stalkr^ has joined #ruby
akonny has joined #ruby
ssvo has joined #ruby
<jrobeson> it's not a deal breaker.. after all i'm still using rails
okinomo has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 264 seconds]
<jrobeson> but it does breakt he separation of concerns
<jrobeson> r0bglees0n, also the fact that the controller after_filter .. runs after the view
<jrobeson> and there's no render_view filter
<xybre> Well. All of them. Controllers only supposed to handle user input. Views are supposed to be objects that construct the data for user consumption while in Rails they are only templates and we had to start using a new word for the same concept (facade, draper, presenter). The models pack pretty much half a dozen different patterns into a single object that bears little similarity to a model in MVC or in the
<r0bglees0n> the scopes aren't actually shared though
<xybre> standard patterns catalog.
<jrobeson> so it even enforces the brokeness that way
<r0bglees0n> the instance variable state is copied into a view scope
claymore has joined #ruby
<jrobeson> i know i was under the assumption that the controller after filter would in fact run after the controller, but before the view.. boy was i suprised when it didn't :(
<jrobeson> even though it can be fixed by adding your own render_view filter.. it feels more broken that it works that way out of the box
girija has joined #ruby
<jrobeson> after_filter is more appropriately called .. after_view_filter or something
<jrobeson> not good naming obviously there.
<r0bglees0n> xybre: a pattern doesn't have to stay static, a controller is suppose to listen for events, in the context of rails that's a HTTP request. views render data for consumption by a *client*, not a user. you can't not adjust the pattern or expand on it as the world changes. also, it still does all of that, at a more abstract level. "user" is not defined so well. anyway, rails is not perfect, but i dont think its a
<r0bglees0n> fair statement
<xybre> Hey if you like it, thats fine.
<xybre> Its jsut silly to call it MVC when its not.
okinomo has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
cawing01 has quit [Ping timeout: 245 seconds]
<r0bglees0n> i don't like rails that much, but your argument or points are flawed in my mind because your definition is too rigid
existensil has joined #ruby
<jrobeson> i'd still called rails mvc personally.. just not a great one .. since you have to work harder to make it clean
h_kon has joined #ruby
<xybre> You can disagree, but MVC was a well established pattern before Rails ever came along. This guy points out its actually called Model2: http://andrzejonsoftware.blogspot.com/2011/09/rails-is-not-mvc.html
hardbit has quit [Quit: hardbit]
ehaliewicz has quit [Ping timeout: 252 seconds]
<r0bglees0n> i dont disagree that MVC was a well established pattern
Kar- has joined #ruby
<r0bglees0n> but we're discussing your opinion, i could read that article, but then im not talking to you
kevinykchan has quit [Quit: Computer has gone to sleep.]
<xybre> I can redefine black as white if it suits me. If I start calling black white and get enough people to agree then it doesn't matter what people before me said, at least as long as I never talk to anyone outside of my clique.
<xybre> The usefulness of language is having a common reference point.
<r0bglees0n> well, actually, rails does everything you said it doesn't, except "user" is not defined as a person sitting on a chair interacting with a GUI, as MVC was described
<r0bglees0n> so you have to adjust for the context(web)
<xybre> If you think so, than thats fine.
<jrobeson> i think that guys definition is more rigid than is used by any software i've used
ssvo has quit [Ping timeout: 245 seconds]
ddv has left #ruby [#ruby]
s2013 has quit [Ping timeout: 256 seconds]
alup has joined #ruby
<jrobeson> i think common parlance has won out over the strict/original definition here
<xybre> If you ever communicate with people outside of the Ruby world, they will have different definitions for many of the terms you are familiar with.
<xybre> And the Ruby community is wide, but not nearly as wide as all that.
<r0bglees0n> uh, MVC in cocoa is not MVC in Rails is not MVC in Windows Mobile. the contexts are different.
clov3r has joined #ruby
<r0bglees0n> the abstract definitions are sound, though
<xybre> Okay :)
clocKwize_ has joined #ruby
clocKwize_ has quit [Client Quit]
senayar has joined #ruby
aetaric has quit [Ping timeout: 240 seconds]
clocKwize_ has joined #ruby
DanKnox_away is now known as DanKnox
pvizcay has quit [Quit: leaving]
workmad3 has joined #ruby
dangerousdave has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
rickmasta has quit [Quit: Leaving...]
maasha has quit [Ping timeout: 250 seconds]
locriani has joined #ruby
stkowski has quit [Quit: stkowski]
threesome has joined #ruby
iliketurtles has joined #ruby
locriani has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
rjhunter has quit [Remote host closed the connection]
Elhu has joined #ruby
girija has quit [Ping timeout: 240 seconds]
Clooth has quit [Quit: Leaving...]
fastred has joined #ruby
rippa has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
broon has joined #ruby
ephemerian has joined #ruby
broon has left #ruby [#ruby]
browndawg has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
troessner has joined #ruby
einarj has joined #ruby
maroloccio has joined #ruby
toastynerd has quit [Remote host closed the connection]
camilasan has joined #ruby
camilasan has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
camilasan has joined #ruby
senayar has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
s2013 has joined #ruby
Stygia has quit [Ping timeout: 248 seconds]
Kricir_ has joined #ruby
Kricir_ has quit [Remote host closed the connection]
Gooder has joined #ruby
hogeo_ has joined #ruby
browndawg has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
Kricir has quit [Ping timeout: 245 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
jarin has joined #ruby
Ripp__ has quit []
girija has joined #ruby
Minos__ has quit [Ping timeout: 245 seconds]
Coffers has joined #ruby
hogeo_ has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 256 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Minos__ has joined #ruby
snovak has joined #ruby
Xanderby has joined #ruby
timonv has joined #ruby
rickmasta has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
FastestMilkman has quit []
Quashie_ has quit [Ping timeout: 260 seconds]
_maes_ has joined #ruby
persand has quit [Quit: persand]
vlad_starkov has joined #ruby
ckampfe has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
mikee has joined #ruby
wallerdev has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
echevemaster has joined #ruby
mercwithamouth has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
elaptics`away is now known as elaptics
kaspergrubbe has joined #ruby
msuszczy has quit [Ping timeout: 245 seconds]
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
tatsuya_o has joined #ruby
Astralum has joined #ruby
hell-dark78 has joined #ruby
timonv has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 246 seconds]
aryaching_ has quit [Ping timeout: 245 seconds]
avril14th has joined #ruby
KobraKao has joined #ruby
wallerdev has quit [Quit: wallerdev]
Kricir has joined #ruby
staafl has joined #ruby
schaerli has quit [Remote host closed the connection]
geek998 has joined #ruby
<geek998> I'm having some trouble figuring out how to write regex for this http://pastebin.com/z4tqNEWi . I want to grab the email and the phone numbers from this tag
akonny has joined #ruby
lucazi has quit [Quit: lucazi]
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
<YaNakilon> //
<YaNakilon> should match
rickmasta has quit [Quit: Leaving...]
shaunbaker has quit [Read error: Operation timed out]
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
geek998 has quit [Ping timeout: 264 seconds]
Kar- has quit [Ping timeout: 256 seconds]
Maokomioko has joined #ruby
intuxicated_ has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 248 seconds]
intuxicated has joined #ruby
Maokomioko is now known as maoko
noname001 has joined #ruby
locriani has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
mupkoo has joined #ruby
KobraKao has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
Guest27292 is now known as Amnesia
Amnesia has quit [Changing host]
Amnesia has joined #ruby
staafl has quit [Ping timeout: 245 seconds]
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby
locriani has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
allsystemsarego has joined #ruby
chuckboxx has quit [Quit: chuckboxx]
lucazi has joined #ruby
lemonsparrow is now known as Guest7242
harrymoreno has quit [Quit: harrymoreno]
zarubin has joined #ruby
Guest7242 has quit [Ping timeout: 250 seconds]
lurch_ has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
msuszczy has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
geek998 has joined #ruby
predator117 has joined #ruby
tobago has joined #ruby
Zai00 has joined #ruby
persand has joined #ruby
harrymoreno has joined #ruby
predator217 has quit [Ping timeout: 248 seconds]
DrCode has quit [Remote host closed the connection]
Advocation has joined #ruby
St_Marx_ has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
persand has quit [Client Quit]
ayaz has joined #ruby
rdark has joined #ruby
harrymoreno has quit [Client Quit]
St_Marx has quit [Ping timeout: 240 seconds]
hamakn_ has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: leaving]
hamakn has joined #ruby
greengriminal has joined #ruby
DaZ has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
jonahR has quit [Quit: jonahR]
ceverett has joined #ruby
zxq9 has quit [Ping timeout: 264 seconds]
aetaric has joined #ruby
headius has joined #ruby
adambeynon has joined #ruby
ceverett has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 260 seconds]
ayaz has quit [Ping timeout: 246 seconds]
headius has quit [Client Quit]
St_Marx_ is now known as St_Marx
michael_mbp is now known as zz_michael_mbp
Kricir has joined #ruby
zz_michael_mbp is now known as michael_mbp
Kar- has joined #ruby
snovak has joined #ruby
sevenseacat has quit [Quit: Leaving.]
aganov has quit [Ping timeout: 248 seconds]
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
aganov has joined #ruby
snovak has quit [Ping timeout: 252 seconds]
zeropx has quit [Quit: has left the room … Or did he?]
aaronmcadam has joined #ruby
Kar- has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
mengu has joined #ruby
timonv has joined #ruby
ewnd9 has joined #ruby
freerobby has joined #ruby
lessless_ has joined #ruby
[Y|n] has left #ruby [#ruby]
fastred has quit [Quit: fastred]
<lessless_> folks, is it possible to add arrays by summarizing values in the fields: [1000, 200] + [ '12', '12'] => [1012, 212]
<workmad3> lessless_: not like that, no
ckampfe has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
browndawg has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 246 seconds]
ckampfe has quit [Ping timeout: 245 seconds]
ayaz has joined #ruby
Morrolan has joined #ruby
abk has joined #ruby
nimor has joined #ruby
relix has joined #ruby
clocKwize_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jb41 has joined #ruby
browndawg has joined #ruby
colonolGron has joined #ruby
jocke_ has joined #ruby
<havenwood> >> class Array; def + this; zip(this).map { |pair| pair.inject :+ } end end; [1012, 200] + [12, 99]
<eval-in> havenwood => [1024, 299] (https://eval.in/49433)
clocKwize_ has joined #ruby
clov3r has joined #ruby
<havenwood> lessless_: There, monkey patched Array#+ to do what you were thinking. :P
clov3r has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
havenwood has quit [Remote host closed the connection]
clocKwize_ has quit [Client Quit]
clocKwize has joined #ruby
negaduck has quit [Ping timeout: 260 seconds]
locriani has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
nextdropping_ has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
dweeb has joined #ruby
locriani has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
locriani has joined #ruby
ananthakumaran has joined #ruby
<Suit_Of_Sables> do you guys use ruby for almost all of your scripting needs or do any of you still use sh? :x
toah has joined #ruby
nimor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Suit_Of_Sables> shell syntax makes me want to stab my eyes out. But ruby is so purdy
nimor has joined #ruby
<shevy> Suit_Of_Sables I use ruby whenever possible
<shevy> Suit_Of_Sables on a freshly installed linux system, there may not be ruby installed, so I need shell scripts in order to bootstrap ruby with all my modifications, projects etc...
clocKwize has quit [Ping timeout: 260 seconds]
<Suit_Of_Sables> shevy: ever feel the need to use something more low-level like C?
clocKwize has joined #ruby
<shevy> Suit_Of_Sables I think so, in the long run I think one must combine ruby with something else, be it C C++ C# java
<shevy> or perhaps rails :P
nimor has quit [Client Quit]
tiglog has joined #ruby
freerobby has joined #ruby
<Suit_Of_Sables> I'm working on improving my C along with my Ruby. The low-level C stuff is great if for no other reason than to show you how all this crazy stuff is implemented. Though I know most of it is different in ruby
sayan has joined #ruby
nimor has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
geek998 has quit [Ping timeout: 264 seconds]
<Suit_Of_Sables> It seems like so many people dive right into rails without really learning ruby and it's core library. I'd rather get that down first before I put even more stuff on my plate
Elhu has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
Advocation has quit [Quit: Advocation]
<jrhe> I have never really needed anything else for scripting other than ruby after learning it. I don't really want to program in C or C++ again
hmsimha has joined #ruby
Advocation has joined #ruby
chrishough has quit [Quit: chrishough]
freerobby has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
<rdark> Suit_Of_Sables: bash for tiny glue things, ruby for most things, perl for certain edge cases
<rdark> would like to get to know go a little better though
tkuchiki has quit [Remote host closed the connection]
<shevy> when I invoke a method in ruby, can I name this doing a "method call"?
MrZYX|off is now known as MrZYX
<jrhe> Don't bother with bash if you can. zsh is so much more palatable for scripting
Kar- has joined #ruby
tkuchiki has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
<jrhe> shevy: Why not?
<rdark> jrhe: bash v4 has 95% of the stuff that zsh does (associative arrays, more advanced string replacement) but agree that zsh is probably the superior shell
xjiujiu has joined #ruby
<shevy> Suit_Of_Sables yeah, right now I wonder what to do ... C or rails ... or perhaps Java (yuck) ... or C++ .... thing is, with C I could start to help with ruby-gnome bindings, so it would benefit me when I extend my GUI things in ruby
<rdark> but then again if you're doing that stuff in a shell language, you're probably doing it wrong
Xeago has quit [Remote host closed the connection]
<jrhe> rdark: Agreed but bash have kinda hacked it on. Yup, probably doing it wrong.
ananthakumaran has joined #ruby
<shevy> jrhe no, just curious. I am commenting my code, and there are things like: x = main_url ... and it is not instantly obvious that main_url is actually a "method call" main_url(), so I explained that, and why I use it. I just puzzled over my old comment there, that it is a "method call" (if that is the proper wording...)
<workmad3> shevy: sounds like your method is too long, so you can't see what your local vars are :P
<Suit_Of_Sables> shevy: My vote would be for C. I'm enjoying it more than java, and you can always move onto C++ after as it is (mostly) a superset of C.
<shevy> workmad3 both methods have 3 lines content
<workmad3> shevy: so you're in a context that it's instantly obvious has no 'main_url' local variable?
<shevy> no, that is never the case, I always wonder when I see x = y stuff
<shevy> I could use x = y() but that looks ugly
<workmad3> shevy: hmm, I never find myself wondering unless it's a long method
<Suit_Of_Sables> wouldn't just adding the much maligned parens make it obvious it was a method and take up less space then a comment? :p
<jrhe> shevy: Method call is fine. Instances of the Method class have a call method so that wording makes perfect sense to me. The documentation of the Method#call method even uses the word invoke. I'd say they are interchangeable. http://www.ruby-doc.org/core-2.0.0/Method.html#method-i-call
tkuchiki has quit [Ping timeout: 256 seconds]
fastred has joined #ruby
<shevy> workmad3 perhaps you have a much better brain :D
<workmad3> shevy: I wouldn't comment it with # method call though
<workmad3> shevy: as Suit_Of_Sables said, it would be less ugly in that case to just use ()
<shevy> hmmmmm
<workmad3> shevy: especially if you comment it with '# method call main_url()
<shevy> true
geek998 has joined #ruby
<Suit_Of_Sables> sorry to be off topic with the scripting stuff but here is a dumb question for the books: Are bash, zsh, and shell all different languages? or are the first to just implementations of shell?
<Suit_Of_Sables> I always see "oh use sh" but not bash or zsh specifically
tvw has quit []
<geek998> ahoi
<tobiasvl> what's "shell"
<rdark> Suit_Of_Sables: sh is the bourne shell
akonny has quit [Quit: akonny]
<tobiasvl> ah, sh
<geek998> I'm having some trouble figuring out how to write regex for this http://pastebin.com/z4tqNEWi . I want to grab the email and the phone numbers from this tag
<Suit_Of_Sables> rdark: ahh so they are all different languages
<jrhe> Suit_Of_Sables: They have a common subset of features and then implement their own stuff on top.
<rdark> bash and I think zsh has a lineage going back to bourne
<Suit_Of_Sables> jrhe: ah, so they all build off of sh
<tobiasvl> geek998: just from that specific tag? or do you want to be able to pick out any e-mail address
<rdark> or maybe zsh comes from korn?
<tobiasvl> that's not easy
<rdark> but anyway, it's all unix history
<shevy> Suit_Of_Sables I think there are compatible up to a certain degree
<shevy> *they
<jrhe> Suit_Of_Sables: Pretty much, which is why people say write in sh, as its portable
<Suit_Of_Sables> ok, most books I'm seeing on "shell scripting" seem to actually be about bash scripting
<tobiasvl> yes
<jrhe> Suit_Of_Sables: Yup. Or sh using bash…
akonny has joined #ruby
<shevy> geek998 did you try with any regex so far? what you could first do is strip away all those html tags if you dont need them, the other part is to simply match after your keywords
ananthakumaran has quit [Read error: Connection reset by peer]
<Suit_Of_Sables> I know all the super cool people who use, tmux, vim, and tiling windows managers use zsh as their shell. Trouble is most systems have bash built in. but I wanna be cool too....
sr78ger has joined #ruby
<jrhe> Suit_Of_Sables: Then get zsh :p
<jrhe> Suit_Of_Sables: With prezto
<rdark> Suit_Of_Sables: apt-get install zsh?
snovak has joined #ruby
<shevy> geek998, if it is always invariant, this gets Mobile x.scan(/Mobile - (.+) Email/)[0].first # => "+91 324 878 994" I am sure you can build up the other parts too using that regex
<Suit_Of_Sables> all the girls at the bar will ignore me if they find out I use bash!
ananthakumaran has joined #ruby
<shevy> Suit_Of_Sables I use bash
<Suit_Of_Sables> *sob*
browndawg has quit [Ping timeout: 245 seconds]
boycey has joined #ruby
<Suit_Of_Sables> I'm sure they are similar enough that using one gives you more than a head start on learning the other
<Suit_Of_Sables> (bash and zsh that is)
<jrhe> So it seems the standard for shells is part of POSIX http://en.wikipedia.org/wiki/POSIX#POSIX.2
<shevy> Suit_Of_Sables zsh does not seem to be like you need to use it, I use a shell mostly to navigate to directories (but I use my aliases for my own directories), or to invoke ruby scripts/methods anyway
<shevy> Suit_Of_Sables most people start with bash
<jrhe> Suit_Of_Sables: Just grab zsh and don't look back. prezto will get you off to a flying start
<shevy> the lazy ones stay with bash
<geek998> shevy, well the thing is . this string is dynmic
<geek998> its a like description
<jrhe> worth it for the syntax highlighting alone
marcgg has quit [Read error: Connection reset by peer]
maroloccio has quit [Ping timeout: 260 seconds]
marcgg_ has joined #ruby
<jrhe> and if you want sane tmux / vim setups too get get you going, try YADR https://github.com/skwp/dotfiles
decoponio has joined #ruby
<Suit_Of_Sables> someone in my C class the other day asked "Why does the first item in that array have an index of 0?"... I wish there was a lever I could have pulled to drop him into a snake pit.
<rdark> jrhe: pretzo looks interesting - might have to give it a spin
<geek998> what ever in the the tag can be changed . so I want to grab the email and the phone numbers if they are in side the html tag
<shevy> geek998 then you need a better regex I guess, so that you are able to match to all possibilities of the string. that is never too simple, what I would do is write a method, and pass the string through, and inside the method, handle all those corner cases
<shevy> geek998 yep, sounds as if you must use a method
<jrhe> rdark: Its a rewrite of oh-my-zsh but much more performant and better maintained
<geek998> shevy, method is not my problem . my problem is the regex
<Suit_Of_Sables> jrhe: I've already started using vim and it is amazing. but I'm having trouble getting tmux working on.. OSX....
<jrhe> rdark: The plugins it gives you are epic. I wouldn't use anything else now. Although things do get slow sometimes (autocompleting rake on a big rails project for example)
nimor has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> the regex above worked for the input string, I dont see the problem
<jrhe> Suit_Of_Sables: What are your problems?
snovak has quit [Ping timeout: 264 seconds]
skaflem has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
maroloccio has joined #ruby
nimor has joined #ruby
BadQuanta has quit [Ping timeout: 245 seconds]
<geek998> shevy, so far I have this :( http://pastebin.com/dtxJCqLp
<Suit_Of_Sables> jrhe: I use macports to install it and that worked alright. But it crashes right after it starts... Hmm I should look into iTerm2. Looks like it comes with tmux installed....
<jrhe> I have no probs with brew
<geek998> even thats not right
<shevy> geek998 what about my regex above?
<jrhe> Suit_Of_Sables: Nah it doesn't
<shevy> .scan(/Mobile - (.+) Email/)[0].first
s0ny123 has quit [Ping timeout: 248 seconds]
<jrhe> Suit_Of_Sables: It has support for it but I wouldnt recommend using its tmux support
<shevy> geek998 btw
<shevy> geek998 you use .gsub! on an assignment
<Suit_Of_Sables> jrhe: *gasp* than nettuts lied to me!
lkba has joined #ruby
<shevy> geek998 you know that methods with a ! at the end often change the reciever?
akonny has quit [Quit: akonny]
<jrhe> Suit_Of_Sables: Seems stupid for your terminal emulator to be adding to your path too...
<shevy> geek998 you also dont need the trailing ';' character
kaspergrubbe has quit [Remote host closed the connection]
<jrhe> Suit_Of_Sables: This guy kinda has the same feelings as me to the integration
<shevy> >> string = "Contact Us- +91 665 865 753 Mobile - +91 324 878 994 Email - asd@mooman.com"; string.scan(/Mobile - (.+) Email/)[0].first
<eval-in> shevy => "+91 324 878 994" (https://eval.in/49434)
senayar_ has joined #ruby
<geek998> shevy, yes I know that . I can't use your given regex because the content inside the tags are dynamic they change
freerobby has joined #ruby
<jrhe> Suit_Of_Sables: Check out his other posts and his tmux.conf. Very good place to begin.
<geek998> its not in that order
<Suit_Of_Sables> jrhe: Thanks!
camilasan has quit [Remote host closed the connection]
senayar has quit [Read error: Operation timed out]
<jrhe> Suit_Of_Sables: I prefer Brew to macports as well. Seems to be the way to go these days.
<Suit_Of_Sables> jrhe: ah, you're on a mac as well?
camilasan has joined #ruby
dodosan has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
<shevy> geek998 the order isn't important, you can use keywords to match
camilasan has joined #ruby
<shevy> geek998 can't you give a minimal example
<jrhe> Suit_Of_Sables: Yup.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
freerobby has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
<geek998> shevy, yes thats what Im doing now
zarubin has quit [Ping timeout: 245 seconds]
<geek998> shevy, http://pastebin.com/dBBb5qb0 see
<shevy> ok and what results do you need from this?
<geek998> its inside the same html tag but two different order . also there could be more than one email and phone numbers in the discription
<shevy> two I guess?
e-dard has left #ruby [#ruby]
<shevy> eh
sayan has quit [Ping timeout: 256 seconds]
<shevy> you did not include that option in that example ...
rickmasta has joined #ruby
<geek998> shevy, well I wanna get the emails and phone numbers inside the that tag
colonolGron has quit [Ping timeout: 245 seconds]
<geek998> yea fist one I messed up . I should have explain that
<tobiasvl> glhf
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
ssvo has joined #ruby
nari has quit [Ping timeout: 245 seconds]
buibex has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
lurch_ has quit [Quit: lurch_]
vlad_starkov has joined #ruby
ssvo has quit [Ping timeout: 260 seconds]
Speed has joined #ruby
lurch_ has joined #ruby
nimor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jb41 has quit [Ping timeout: 264 seconds]
maroloccio has quit [Quit: WeeChat 0.4.0]
kaspergrubbe has joined #ruby
lucazi is now known as lucazi_away
<geek998> shevy, so far I have this http://pastebin.com/fNLJS84N
browndawg has quit [Ping timeout: 264 seconds]
<geek998> can u help me to make it better
ismlages has joined #ruby
nimor has joined #ruby
senayar_ has joined #ruby
colonolGron has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
<apeiros> geek998: please use gist.github.com instead of pastebin (or any other non-ad-ridden paste service)
senayar has joined #ruby
<shevy> the emails seem correct right geek998 ?
<matti> apeiros: AdBlock ;p
<apeiros> matti: no
<apeiros> if you don't like the ads of a service, don't use it.
freeayu has joined #ruby
<matti> apeiros: I don't like most ads.
<apeiros> then don't use most services.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BrianJ has quit [Quit: Computer has gone to sleep.]
polaco_zZz is now known as polaco
<apeiros> using ad-block is IMO like going to a shop and take stuff without paying. because, you know, you don't like paying.
maroloccio has joined #ruby
<apeiros> or because you don't like most prices. whatever.
<geek998> shevy, yes
<matti> apeiros: Don't waste your time.
<matti> apeiros: I dislike with your opinion.
<apeiros> of course. it's uncomfortable.
<shevy> geek998 ok so your problem is almost solved
<apeiros> you don't want to think that what you do is simply wrong.
camilasan has quit [Read error: Connection reset by peer]
<shevy> geek998 the regex for the phone numbers seems wrong
<matti> apeiros: No. I don't like you.
<matti> apeiros: :)
jonkri has quit [Quit: jonkri]
<apeiros> I can live with that :-p
camilasan has joined #ruby
<matti> apeiros: Same here.
<geek998> shevy, numbers are my problem people type numbers with different ways . some with spaces or without spaces with 00 or +
<shevy> it always takes me too long to process a regex
<shevy> reg = /(?:\+?|\b)[0-9]{10}\b/i
clov3r has joined #ruby
<shevy> no idea what is conveyed here
clov3r has quit [Read error: Connection reset by peer]
<apeiros> geek998: do it in 2 steps
<apeiros> find candidates by a looser regex, and reject those which fail to match a more narrow inspection
vlad_starkov has quit [Remote host closed the connection]
<shevy> I get a result of ["1665865753"] from your regex geek998 but that number is not in the string
Clooth has joined #ruby
<shevy> ah wait
abk has quit [Read error: Operation timed out]
<geek998> he removes +9
<geek998> it *
<shevy> yeah... is that what you want?
browndawg has joined #ruby
<geek998> no I want to remove the numbers . I want to grab the numbers
nimor has quit [Quit: Textual IRC Client: www.textualapp.com]
sayan has joined #ruby
<geek998> shevy, could u help with the regex statement
rickmasta has quit [Quit: Leaving...]
<matti> geek998: Might help http://rubular.com/
<shevy> what
camilasan has quit [Read error: Connection reset by peer]
<shevy> "<geek998> no I want to remove the numbers . I want to grab the numbers"
<shevy> is that like
<matti> shevy: LOL
<shevy> "I want to go left. I want to go right."
camilasan has joined #ruby
<geek998> I ment I dont want to remove the numbers *
<matti> shevy: These are the Schrödinger's Numbers.
<matti> shevy: You both want and don't want them.
<shevy> this is too confusing
sevenseacat has joined #ruby
vlad_starkov has joined #ruby
locriani has joined #ruby
lucazi_away is now known as lucazi
toah has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 245 seconds]
aqabiz has joined #ruby
abdulqabiz has joined #ruby
abdulqabiz has quit [Max SendQ exceeded]
abdulqabiz has joined #ruby
abdulqabiz has quit [Max SendQ exceeded]
vlad_starkov has quit [Ping timeout: 246 seconds]
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
locriani has quit [Ping timeout: 246 seconds]
abdulqabiz has joined #ruby
abdulqabiz has quit [Max SendQ exceeded]
freerobby has joined #ruby
sinkensabe has joined #ruby
BillCriswell has joined #ruby
gr33n7007h has quit [Quit: Where's John Conner]
allanm has quit [Read error: Connection reset by peer]
nextdropping has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
okinomo has quit [Ping timeout: 264 seconds]
obs has joined #ruby
camilasa_ has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
relix has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
LadyRainicorn has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
negaduck has joined #ruby
postmodern has quit [Quit: Leaving]
Kar- has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
dsferreira has joined #ruby
swordsmanz has joined #ruby
mikecmpbll has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rezzack has quit [Quit: Leaving.]
akonny has joined #ruby
Xeago has joined #ruby
haxrbyte has joined #ruby
Afhbl has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
timonv has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Afhbl has left #ruby [#ruby]
ananthakumaran has joined #ruby
BillCriswell has quit [Remote host closed the connection]
jocke_ has quit [Remote host closed the connection]
osvico has joined #ruby
Alina-malina has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
negaduck has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 264 seconds]
butblack has joined #ruby
negaduck has joined #ruby
timonv has joined #ruby
<geek998> https://gist.github.com/anonymous/c24f0d5ec4b5e7ee7e65 last two numbers should be removed from the array . it didn't why is that ?
<geek998> shevy, ?
freerobby has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
clocKwize has quit [Quit: Cya]
<workmad3> geek998: deleting while in a .each is not a good idea
clocKwize has joined #ruby
<workmad3> geek998: use reject! instead
<workmad3> geek998: e.g. ary.reject!{|num| num.length.to_i < num_length}
LadyRainicorn has quit [Ping timeout: 252 seconds]
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> it did not? geek998 the array that results from your code is: ["91665865753", "324", "994"]
<workmad3> geek998: or the non-mutating 'filtered_ary = ary.reject{...}' (block is the same)
forced_request has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<workmad3> shevy: look at the block in .each... he's trying to remove numbers that are < 10 digits in length ;)
allanm has joined #ruby
<shevy> I cant make sense of it anyway
<workmad3> deleting while iterating over an array is tricky
sayan has joined #ruby
<shevy> hmm
<shevy> why does Array have #drop but no #drop!
freerobby has quit [Ping timeout: 248 seconds]
<geek998> it worked workmad3 thanks
<workmad3> shevy: it also has delete but not delete!... and probably for the same reason
freerobby has joined #ruby
cj3kim has joined #ruby
<workmad3> shevy: because if you delete an item from an array, it doesn't really make sense for there to be 2 versions... so there's no need for a 'normal version' and a 'this version does some things differently, be careful' version
ahawkins has quit [Ping timeout: 240 seconds]
s0ny123 has joined #ruby
Kneferilis has quit [Quit: Leaving]
Kneferilis has joined #ruby
butblack has quit [Quit: butblack]
aryaching has joined #ruby
jbpros has joined #ruby
elliptical_ has joined #ruby
jbpros has quit [Client Quit]
freerobby has quit [Client Quit]
cj3kim has quit [Ping timeout: 245 seconds]
shaunbak_ has quit [Remote host closed the connection]
elliptical_ is now known as LadyRainicorn
jerius has joined #ruby
yfeldblum has joined #ruby
mlpinit has joined #ruby
dash_ has quit [Ping timeout: 246 seconds]
aagdbl1 has joined #ruby
dodosan has joined #ruby
girija_ has joined #ruby
dash_ has joined #ruby
aagdbl has quit [Ping timeout: 245 seconds]
IceyEC has joined #ruby
chrisja has joined #ruby
girija has quit [Read error: Connection reset by peer]
eka has joined #ruby
dodosan has quit [Ping timeout: 252 seconds]
IceyEC has quit [Client Quit]
Cork has quit [Quit: .]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
nari has joined #ruby
jerius has quit []
senayar has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
clov3r has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Cork has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
colonolGron has joined #ruby
Kar- has joined #ruby
IceyEC has joined #ruby
<avril14th> it it possible to define a unary operator (such as minus) that takes args?
coaster has quit [Ping timeout: 276 seconds]
girija_ has quit [Ping timeout: 264 seconds]
girija_ has joined #ruby
<tobiasvl> of course. all unary operators take args (that is, ONE argument)
<tobiasvl> otherwise they wouldn't be unary
<avril14th> ahah
dangerousdave has joined #ruby
<avril14th> yeah that is darn right
<avril14th> I meant def -@(val)
<avril14th> ^^
<tobiasvl> aha. a prefix operator
<tobiasvl> :)
ewnd9 has quit [Ping timeout: 246 seconds]
hell-dark78 has quit [Quit: hell-dark78]
<avril14th> so one can do that?
<tobiasvl> yes
jpsirois has joined #ruby
<avril14th> hmm
undenoted23 has joined #ruby
ixti has joined #ruby
locriani has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
kaspergrubbe has quit [Remote host closed the connection]
<tobiasvl> uh
<tobiasvl> okay we obviously misunderstood each other
<avril14th> That must be me :)
<tobiasvl> sorry i didn't see "(val)" in your code example over
<tobiasvl> no, that's not possible; but why do you want that?
<tobiasvl> what exactly do you want to achieve
<tobiasvl> (the unary argument to a prefix operator is the receiver itself)
<avril14th> well, I get this class that describes a move of items to/from an inventory
<avril14th> let's call it move
<avril14th> the idea is to do -move other_inventory
<avril14th> so it just changes the quantity signs and stuffs
<avril14th> and applies the move to another inventory
<avril14th> but it's ok it's just gonna take 2 lines
locriani has quit [Ping timeout: 248 seconds]
lucazi is now known as lucazi_away
<avril14th> (or a method)
<tobiasvl> huh
browndawg has quit [Ping timeout: 240 seconds]
d34th4ck3r has joined #ruby
jpsirois has quit [Quit: Textual IRC Client: www.textualapp.com]
flughafen has quit [Quit: leaving]
tvw has joined #ruby
dhruvasagar has joined #ruby
mklappstuhl has joined #ruby
freeayu__ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jbpros has joined #ruby
schaerli has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
IceyEC has quit [Quit: IceyEC]
<Veejay> Hello everyone, how can I dynamically set a constant? i.e. after YAML.load'in a .yml file I end up with a KEY => value hash, and I'd like to create the constants for all the keys, associated to their values
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
CraftyCoder has joined #ruby
ananthakumaran has joined #ruby
<Veejay> If I do that inside a module, using const_set works just fine and creates the appropriate module constants. I just need to know how to do the same thing without the module part
freeayu__ has quit [Ping timeout: 245 seconds]
<avril14th> anonymous Module then ?
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
senayar has quit [Read error: Connection reset by peer]
<Veejay> avril14th: To be more precise (and maybe I should actually ask that question there) I call that code inside the context of a Rails initializer
senayar has joined #ruby
<CraftyCoder> /join #couchdb
<Veejay> And I'd like the constant to be defined inside the application itself
<CraftyCoder> \join #couchdb
CraftyCoder has quit [Client Quit]
soba has quit [Ping timeout: 245 seconds]
<avril14th> FAIL
CraftyCoder has joined #ruby
twoism_ has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
snovak has joined #ruby
lucazi_away is now known as lucazi
<Sp4rKy> §wg #archlinux-fr
lucazi is now known as lucazi_away
lucazi_away is now known as lucazi
ixti has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
Elhu has joined #ruby
snovak has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
aqabiz has quit [Quit: aqabiz]
dsferreira has quit [Quit: This computer has gone to sleep]
lucazi has quit []
pyx has joined #ruby
pyx has quit [Client Quit]
kaspergrubbe has joined #ruby
pushpak has joined #ruby
freeayu has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
geek998 has quit [Quit: Leaving]
Gooder has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
AndChat- has joined #ruby
girija_ has left #ruby ["Ex-Chat"]
Banistergalaxy has quit [Ping timeout: 260 seconds]
jbpros has quit [Quit: jbpros]
breakingthings has joined #ruby
Stygia has joined #ruby
xjiujiu has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
Cork has quit [Ping timeout: 245 seconds]
snovak has joined #ruby
jbpros has joined #ruby
jbpros has quit [Client Quit]
BadQuanta has joined #ruby
xjiujiu has joined #ruby
mark_locklear has joined #ruby
krawchyk has joined #ruby
Cork has joined #ruby
ahawkins has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
osvico has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
timonv has quit [Remote host closed the connection]
xjiujiu has quit [Client Quit]
momomomomo has joined #ruby
snovak_ has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
snovak has quit [Read error: Operation timed out]
xjiujiu has joined #ruby
yalue has joined #ruby
kil0byte has joined #ruby
cina has joined #ruby
mengu has joined #ruby
billy_ran_away_ has quit [Ping timeout: 276 seconds]
aaronmcadam has quit [Quit: Leaving...]
geekbri has joined #ruby
timonv has joined #ruby
jbrechtel has joined #ruby
banisterfiend has joined #ruby
k610 has joined #ruby
mercwithamouth has quit [Quit: leaving]
clov3r has joined #ruby
kaldrenon has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
clov3r has quit [Read error: Connection reset by peer]
krz has quit [Quit: krz]
brbcoding has joined #ruby
nomadic has quit [Ping timeout: 248 seconds]
mrsolo has joined #ruby
stef_204 has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
brbcolding has joined #ruby
Guest50532 has joined #ruby
locriani has joined #ruby
burlyscudd has joined #ruby
jbrechtel has quit [Remote host closed the connection]
brbcoding has quit [Disconnected by services]
burlyscudd has quit [Client Quit]
brbcolding is now known as brbcoding
brbcoding has quit [Changing host]
brbcoding has joined #ruby
Rydekull has joined #ruby
LadyRainicorn has quit [Ping timeout: 252 seconds]
billy_ran_away has joined #ruby
CraftyCoder has quit [Quit: Bye]
<Rydekull> Hmm, im looking for 'the way' to bundle ruby and required libs together in a nice .exe that I can spread onto other hosts. Any suggestions?
kaspergrubbe has joined #ruby
locriani has quit [Ping timeout: 248 seconds]
nomadic has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
jonathanwallace has quit [Read error: Operation timed out]
xjiujiu has joined #ruby
cina has quit [Ping timeout: 245 seconds]
<Rydekull> is OCRA the way to go, or is there something that is better?
joonty has joined #ruby
jp- has joined #ruby
Zai00 has joined #ruby
cina has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
billy_ran_away has quit [Ping timeout: 248 seconds]
nomadic has quit [Ping timeout: 245 seconds]
k610 has quit [Read error: Connection timed out]
Ox6abe has joined #ruby
sailias has joined #ruby
axl_ has joined #ruby
freeayu has joined #ruby
k611 has joined #ruby
mmitchell has joined #ruby
jbpros has joined #ruby
<avril14th> Veejay: Don't know about that (sorry afaik)
buibex has quit [Remote host closed the connection]
toddWork__ has quit [Quit: toddWork__]
devoldmx3 has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
anonymuse has joined #ruby
shashin has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
kvirani has joined #ruby
khoury_ has joined #ruby
huoxito has joined #ruby
jkamenik has joined #ruby
<negaduck> hi! i'm trying to install ruby 1.9.3 on rhel 5.9 without internet. I don't need rvm. Are ruby gems bundled with ruby?
browndawg1 has joined #ruby
<shevy> negaduck "gem" is a ruby script
cina has quit [Quit: leaving]
<shevy> negaduck since ruby 1.9.x and upwards, it is by default "bundled" with the source tarball
<negaduck> shevy: ok, thanks
<shevy> negaduck so on a sane system, or if you self-compiled from source, "gem" on the commandline will work. some distributions might remove stuff though, so you can never be sure
browndawg has quit [Ping timeout: 264 seconds]
<shevy> but I think, I am quite sure that rhel's ruby will come with gem installed
h_kon has quit [Remote host closed the connection]
Advocation has joined #ruby
<shevy> if it has a live cd, I am sure you can test. "gem install rack" to install i.e. the rack gem should work etc.., good luck!
<negaduck> how to get nokogiri installed? Is there an rpm or should i build it from source?
anonymuse has quit [Read error: Connection reset by peer]
<negaduck> given dependencies (libxml2, libxslt) installed
nomadic has joined #ruby
<sevenseacat> gem install nokogiri? :)
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<negaduck> sevenseacat: i don't have internet connection
<sevenseacat> how are you here then?
<momomomomo> ~~~~~
xjiujiu has joined #ruby
<negaduck> i use mac and connect to the remote machine via ssh
<momomomomo> negaduck: Take a floppy disk - git clone https://github.com/sparklemotion/nokogiri.git
<sevenseacat> download the .gem file and scp it to your remote machine then
<Todd> morning sirs
<Todd> ( and ladies? ) *duck*
cescalante is now known as ce_afk
<momomomomo> git clone locally, and negaduck - scp ./nokogiri user@MYIPADDRESS:~/install/
jaynewst_ has quit [Remote host closed the connection]
* sevenseacat nods at Todd
<negaduck> ok, thanks
jaynewstrom has joined #ruby
<momomomomo> morning Todd
vlad_starkov has joined #ruby
jonathanwallace has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
xjiujiu has quit [Client Quit]
devoldmx has joined #ruby
jbpros has quit [Quit: jbpros]
mlpinit_ has joined #ruby
xjiujiu has joined #ruby
pothibo has joined #ruby
leehambley has quit [Ping timeout: 246 seconds]
k611 has quit [Ping timeout: 245 seconds]
mlpinit has quit [Ping timeout: 256 seconds]
clocKwize has quit [Quit: Cya]
cody-- has joined #ruby
<pontiki> i am not a lady duck
<pontiki> just a lady mouse
devoldmx has quit [Ping timeout: 264 seconds]
jocke_ has joined #ruby
Teddy2steper has joined #ruby
kil0byte_ has joined #ruby
vlad_starkov has quit [Read error: No route to host]
leehambley has joined #ruby
vlad_starkov has joined #ruby
cody-- has quit [Client Quit]
lfox has joined #ruby
<Veejay> avril14th: No worries, I'll probably find a solution, it's probably something trivial anyway
poikon has joined #ruby
wudofyr has quit [Read error: Connection reset by peer]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Ox6abe has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 248 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
lfox has quit [Client Quit]
<pontiki> Veejay: if you want them in the "root", so to speak, you can do self.class.cons_set
<pontiki> self.class should be Object
anonymuse has joined #ruby
<pontiki> although it might be nicer to actually put them in a namespace
cody-- has joined #ruby
<pontiki> MyApp.cons_set, forexample
alx- has joined #ruby
<pontiki> .const_set, sorry
clocKwize has joined #ruby
<Veejay> pontiki: Yeah, that's what I'm doing
browndawg1 has quit [Ping timeout: 252 seconds]
<Veejay> Defining a module Credentials; YAML.load_file(...).each {|k,v| self.const_set(k,v)}; end
<Veejay> And that works fine
<Veejay> But I was wondering if I could get away with not having the module Credentials there
<pontiki> on one project, someone created a class with huge long method names that basically just returned constants loaded from a YAML file -- seemed a bit overwrought
jerius has joined #ruby
<rdark> negaduck: or you could use bundler, if it's a specific thing you want to get working - like: bundle install --path /to/my/gems
mlpinit_ has quit [Read error: Connection reset by peer]
<pontiki> you can use Object, as i said
N4JSW has joined #ruby
mlpinit has joined #ruby
<pontiki> or you can use you application module, which i thought was better
<rdark> (presuming you have a Gemfile to work with)
lfox has joined #ruby
dangerousdave has quit [Quit: Leaving...]
<Veejay> Ah the Application module... Indeed, that seems like a good idea
<momomomomo> rdark: You know negaduck 's issue stemmed from not having an internet connection, right?
nextdropping has quit [Remote host closed the connection]
<momomomomo> bundler could be used, if in the gemfile each gem directs to the local dir
<rdark> momomomomo: I meant on the build machine, then move the libs over once installed to a dir
godd2 has joined #ruby
ehc has joined #ruby
N4JSW has quit [Client Quit]
banisterfiend has quit [Quit: Computer has gone to sleep.]
freeayu has joined #ruby
interactionjaxsn has joined #ruby
sambao21 has joined #ruby
<avril14th> what's the stupidest way to count rub lines in a RoR project folders?
sambao21 has quit [Client Quit]
<sevenseacat> iterate through each of the files in the folder and count the newline characters? >_>
mary5030 has quit [Remote host closed the connection]
banisterfiend has joined #ruby
<hoelzro> ack --ruby -f | xargs wc -l?
dangerousdave has joined #ruby
aagdbl1 has quit [Quit: Leaving.]
freeayu__ has joined #ruby
clov3r has joined #ruby
<godd2> Okay first you hire a psychic.
<sevenseacat> haha
browndawg has joined #ruby
<godd2> THen you commission them to put on an elephant circus
clov3r has quit [Read error: Connection reset by peer]
<godd2> Make sure the elephant watches you code, since they never forget
segfalt1 has joined #ruby
<Veejay> heh
peregrine81 has joined #ruby
johnnyfuchs has joined #ruby
colonolGron has quit [Read error: Operation timed out]
anonymuse has quit [Remote host closed the connection]
quoin_ has joined #ruby
anonymuse has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
locriani has joined #ruby
Bira_ has joined #ruby
freeayu__ has quit [Read error: Connection reset by peer]
phantomcircuit has quit [Ping timeout: 245 seconds]
quoin has quit [Ping timeout: 256 seconds]
aryaching has quit []
<lessless_> will be attr_reader inhereted from the parent class?
aryaching has joined #ruby
fantazo has joined #ruby
endash has joined #ruby
<hoelzro> yes
awarner has joined #ruby
endash_ has joined #ruby
fivethre1o has joined #ruby
quoin_ has quit [Ping timeout: 240 seconds]
crodas has joined #ruby
Stalkr_ has joined #ruby
ndngvr` has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
oz` has joined #ruby
Xeago has quit [Remote host closed the connection]
phantomcircuit has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
cody-- has quit [Quit: derp]
awarner_ has quit [Read error: Connection reset by peer]
Galgorth has quit [Ping timeout: 245 seconds]
rodasc has quit [Quit: Disconnecting from stoned server.]
fivethreeo has quit [Read error: Connection reset by peer]
oz has quit [Ping timeout: 245 seconds]
TheFuzzball has quit [Ping timeout: 245 seconds]
fbernier has quit [Ping timeout: 245 seconds]
ndngvr has quit [Read error: Connection reset by peer]
oz` is now known as oz
sguselnikov has joined #ruby
akonny has quit [Quit: akonny]
TheFuzzball has joined #ruby
xerxas_ has joined #ruby
godd2 has quit [Ping timeout: 250 seconds]
Galgorth has joined #ruby
Anderson has quit [Read error: Connection reset by peer]
browndawg has quit [Read error: Connection reset by peer]
Anderson has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
akonny has joined #ruby
jb41 has joined #ruby
fridim__ has joined #ruby
pushpak has quit [Ping timeout: 248 seconds]
Ox6abe_ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
fbernier has joined #ruby
xjiujiu has joined #ruby
tabolario has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
shashin has quit [Quit: shashin]
mlpinit has joined #ruby
cj3kim has joined #ruby
corpuscle has quit [Quit: WeeChat 0.4.1]
Bira_ has quit [Read error: Connection reset by peer]
tobago has quit [Remote host closed the connection]
Xeago has joined #ruby
OneMT has joined #ruby
dawkirst has quit [Quit: Leaving]
mklappstuhl has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
MrThePlague has joined #ruby
MrThePlague has joined #ruby
cj3kim has quit [Ping timeout: 256 seconds]
freeayu has joined #ruby
fourqq has joined #ruby
shaunbak_ has joined #ruby
jbrechtel has joined #ruby
Ox6abe_ has quit [Ping timeout: 260 seconds]
fridim__ has quit [Ping timeout: 252 seconds]
clov3r has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
relix has joined #ruby
axl_ has quit [Quit: axl_]
ce_afk is now known as cescalante
Minos___ has joined #ruby
jdeeburke has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
jdeeburke has left #ruby [#ruby]
iamjarvo has joined #ruby
xjiujiu has joined #ruby
jbrechtel has quit [Remote host closed the connection]
crunch-choco has joined #ruby
sguselnikov has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Nenor has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
momomomomo_ has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
axl_ has joined #ruby
Minos__ has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
OneMT has left #ruby [#ruby]
rdark has joined #ruby
BillCriswell has joined #ruby
momomomomo has quit [Quit: momomomomo]
momomomomo_ is now known as momomomomo
shashin has joined #ruby
jbrechtel has joined #ruby
Nisstyre-laptop has joined #ruby
lukec has joined #ruby
krz has joined #ruby
theRoUS has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
peregrine81 has quit [Remote host closed the connection]
peregrine81 has joined #ruby
YaNakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
atno has joined #ruby
YaNakilon has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
duggiefresh has joined #ruby
gyzmodo has joined #ruby
alekst has joined #ruby
jbrechtel has quit [Remote host closed the connection]
cfi30 has joined #ruby
Ox6abe has joined #ruby
mklappstuhl has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
cfi30 has quit [Client Quit]
iamjarvo_ has joined #ruby
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
tiglog has quit [Quit: Leaving]
siwica has joined #ruby
dhruvasagar has joined #ruby
iamjarvo_ has quit [Ping timeout: 245 seconds]
rdark has quit [Ping timeout: 264 seconds]
fourqq has quit [Ping timeout: 256 seconds]
jb41 has quit [Ping timeout: 264 seconds]
ewnd9_ has joined #ruby
buibex has joined #ruby
camilasa_ has joined #ruby
rdark has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
noop has quit [Ping timeout: 260 seconds]
Guest50532 has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 252 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
sloucher has joined #ruby
burlyscudd has joined #ruby
sloucher has quit [Client Quit]
colonolGron has joined #ruby
grits has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
<grits> I have a Module 'A' which has a submodule 'a'. I also have a module 'B' which has a submodule 'b'. I'm trying to access 'a' from 'b'. In 'b' I have required 'A::a' and included it as well. I reference it in the code by AA::aa.method However, when it runs I get 'Uninitialized constant AA::aa::BB::bb'. Can anyone help me figure out why it's adding the current name space?
iamjarvo has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
mrsolo has joined #ruby
nbouscal has joined #ruby
nanoxd has joined #ruby
mengu has quit [Quit: Leaving]
<MrZYX> first of all modules should be assigned to constants and constants should start with an upper case character
bookmage has joined #ruby
<MrZYX> then please post a minimal example illustrating your problem to gist.github.com
mordocai has joined #ruby
buibex has quit [Remote host closed the connection]
jbrechtel has joined #ruby
<mordocai> Hello! I am using Open3.popen3 in order to run a system command. I think have a while loop with wait_thread.status as the condition. The issue we are running into is that if command ends up starting a service (debian linux, so an /etc/init.d/ script) then the thread just sleeps forever. It also appears that the loop blocks (i was printing out wait_thread.status every loop iteration and that stopped outputting).
<mordocai> Any idea how to fix this kind of error?
jbrechtel has quit [Remote host closed the connection]
<mordocai> s/I think have/I have/
P1RATEZ has joined #ruby
codezombie has joined #ruby
browndawg has joined #ruby
RDash[AW] is now known as RDash
ehc has quit [Ping timeout: 245 seconds]
enebo has joined #ruby
jbrechtel has joined #ruby
rehat has joined #ruby
fourq_ has joined #ruby
fourq_ is now known as fourqq
sayan has quit [Ping timeout: 260 seconds]
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
Heero has quit [Read error: Connection reset by peer]
P1RATEZ has quit [Ping timeout: 260 seconds]
braoru has quit [Remote host closed the connection]
ixti has joined #ruby
quoin has joined #ruby
akonny has quit [Quit: akonny]
iamjarvo has quit [Ping timeout: 252 seconds]
kobain has joined #ruby
zarubin has joined #ruby
<wuest> mordocai: have you considered making use of SIGCHLD? Unix daemons generally will fork the service and exit.
jdeeburke1 has joined #ruby
jdeeburke1 has left #ruby [#ruby]
sarkis has joined #ruby
failshell has joined #ruby
jdeeburke1 has joined #ruby
jdeeburke1 has left #ruby [#ruby]
rhys has joined #ruby
ehc has joined #ruby
mansi has joined #ruby
aryaching_ has joined #ruby
jbrechtel has quit [Remote host closed the connection]
locriani has joined #ruby
akonny has joined #ruby
aMoniker has joined #ruby
johnnyfuchs has joined #ruby
<aMoniker> When I start up a terminal I see:
<aMoniker> ln: /Users/moniker/.rvm/bin/textmate_irb: File exists
<aMoniker> ln: /Users/moniker/.rvm/bin/textmate_rdoc: File exists
<aMoniker> How can I fix that?
aryaching has quit [Ping timeout: 248 seconds]
huoxito has quit [Quit: Leaving]
Guest29270 has joined #ruby
sayan has joined #ruby
atno has quit [Ping timeout: 260 seconds]
quoin has quit [Ping timeout: 245 seconds]
noname001 has quit [Remote host closed the connection]
akonny has quit [Client Quit]
Kabaka has joined #ruby
locriani has quit [Ping timeout: 245 seconds]
platzhirsch has joined #ruby
<platzhirsch> What's up in the Ruby den
shaunbak_ has quit [Remote host closed the connection]
buibex has joined #ruby
clov3r has quit [Remote host closed the connection]
nbouscal has quit [Quit: nbouscal]
freerobby has joined #ruby
nbouscal_ has joined #ruby
nbouscal has joined #ruby
nbouscal_ has quit [Client Quit]
nbouscal has quit [Remote host closed the connection]
sayan_ has joined #ruby
Astralum has quit [Ping timeout: 256 seconds]
bean has joined #ruby
greengriminal has quit [Quit: Leaving]
colonolGron has quit [Ping timeout: 240 seconds]
cody-- has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
kiri has quit [Quit: Leaving]
sayan has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
boycey_ has joined #ruby
RORgasm has joined #ruby
<mordocai> wuest: I'll look it up, don't remember reading about it.
shaunbaker has joined #ruby
boycey has quit [Ping timeout: 246 seconds]
boycey_ is now known as boycey
shaunbak_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cj3kim has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
nbouscal has joined #ruby
atno has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
s0ny123 has quit [Quit: leaving]
sevenseacat has left #ruby [#ruby]
Kabaka has quit [Remote host closed the connection]
sayan_ has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
jerius has joined #ruby
theRoUS has quit [Read error: Operation timed out]
gianlucadv has quit [Quit: ZNC - http://znc.sourceforge.net]
brain_shim has joined #ruby
mmozuras_ has quit [Ping timeout: 260 seconds]
brain_shim has quit [Max SendQ exceeded]
gianlucadv has joined #ruby
brain_shim has joined #ruby
Alina-malina has joined #ruby
gour has joined #ruby
<gour> hello
<MrZYX> hi
<hoelzro> howdy
<gour> ruby noob here...i'd like to locally install few gems (sass/compass/...), but my 'gem env' show that /var/lib/gems takes precedence ovwer the local ~/.gem/ directory. what is the easiest way to override that without using rvm/rbenv etc.?
<gour> should i set something in ~/.gemrc or just have to set some envars?
<burlyscudd> gour: why are you avoiding RVM?
NealJ has joined #ruby
<segfalt1> honestly, use rvm.
colonolGron has joined #ruby
<segfalt1> unless you have some excellent reason why not to
segfalt1 is now known as segfalt
<platzhirsch> It is an urban myth that RVM is PITA
<gour> burlyscudd: i use debian and there must be reason it's not packaged
<burlyscudd> gour: bwahahahahahahahahahahah
<gour> :-)
<burlyscudd> you have just made my morning w/ your hilarious joke
<gour> i'm glad to make you smile ;)
<burlyscudd> gour: is it the same reason that Debian wouldn't package any Ruby > 1.8.6 for **years**?
<platzhirsch> I heard the debian package requirements are PITA, too. So many just avoid it, but it's an interesting question anyway
<burlyscudd> b/c I've been scratching my head about that for a long time
<segfalt> gour: rvm is managed in your home directory, it's not typically installed system wide.
rins has joined #ruby
<segfalt> also debian.
<gour> honestly, probably no need for many gems...just looking for some simple solution
<burlyscudd> gour: RVM IS a simple solution
<segfalt> rvm *is* a simple solution. rvm install 1.8.7, gem install wtfever
<burlyscudd> install it the normal, per-user way
<burlyscudd> no, fuck 1.8.7
brain_shim has quit [Ping timeout: 260 seconds]
<platzhirsch> I can just recommend it
<burlyscudd> it is EOL and doesn't even have security patches
<segfalt> sorry habit, we run 1.8.7 in our stack :-(
<segfalt> 2.0.0
<segfalt> ;)
<gour> burlyscudd: well, in the past i was using arch, so dunno about debian's ruby packaging and soon will probably move to freebsd :-)
<burlyscudd> gour: install RVM, install Ruby 1.9.3 or 2.0.0
sniffingcats has joined #ruby
clocKwize has quit [Quit: Computer is sleeping]
s2013 has joined #ruby
<burlyscudd> gour: I use OSX or Ubuntu in dev (depending on what I'm doing), but manage **all** ruby installations via RVM
<burlyscudd> in production, we ship a 1.9.3
<gour> ruby-1.9.3 here
<burlyscudd> gour: rvm + gemsets ftw IMO
<burlyscudd> gour: especially if this is a dev machine
<havenwood> chruby ftw :P
<gour> burlyscudd: gem install somegem gives: You don't have write permissions into the /var/lib/gems/1.9.1 directory., so i want to override that system dir with a user one
<havenwood> gour: sudo
dhruvasagar has quit [Ping timeout: 264 seconds]
<gour> havenwood: i want to install gems locally, not system-wide
undenoted23 has quit [Ping timeout: 248 seconds]
byprdct has joined #ruby
<havenwood> gour: Debian disagrees.
<burlyscudd> gour: once again, RVM has you covered...
byprdct has quit [Max SendQ exceeded]
jlast has joined #ruby
<gour> with python i'd just use virtualenv
<segfalt> ...
<segfalt> virtualenv is to python as ____ is to ruby
<havenwood> gour: And with Ruby you'd just use chruby... or RVM... or rbenv...
<gour> you want to say that on debian one can't install gem locally?
colonolGron has quit [Ping timeout: 260 seconds]
boycey has quit [Ping timeout: 264 seconds]
<gour> havenwood: which one is the simplest one? i read some post about rvm --> rbenv...
<segfalt> you can install a gem locally given a tool that sets the environment up properly. if you really feel adventurous you could download and extract the gem and set RUBYLIB
<burlyscudd> gour: rvm is the simplest one
<havenwood> burlyscudd: not really
<burlyscudd> gour: you can install a gem anywhere you want
sayan has joined #ruby
undenoted23 has joined #ruby
snath has quit [Ping timeout: 256 seconds]
<gour> the machine serves for production as well as for dev, so i don't want to create too much mess...on fbsd, 'd simply use jail
Evixion has quit [Read error: Connection reset by peer]
boycey has joined #ruby
khoury_ has quit [Remote host closed the connection]
aMoniker has left #ruby [#ruby]
dangerousdave has quit [Read error: Connection reset by peer]
dancardamore has joined #ruby
<burlyscudd> gour: sounds like, you want something that sequesters the interpreter and the gems to YOUR user, which rvm does for you
<segfalt> I don't know if ancient debian supports it, but check out Docker.
byprdct has joined #ruby
Advocation has quit [Quit: Advocation]
byprdct has quit [Max SendQ exceeded]
<burlyscudd> havenwood: idk chruby — i've tried rbenv when it first came out and didn't see the point, other than that it's 37Signals-originated so we must all fall to our knees and worship
<gour> burlyscudd: well, interpreter is not critical, i can use system one, just to separate gems
<havenwood> gour: RVM is the most feature-full, is friendly for beginners, and is quite a complex behemoth. The simplest is chruby, at ~100 lines of code to read and only doing the Ruby switching. If you ware a shim lover, rbenv.
dangerousdave has joined #ruby
tacit71 has joined #ruby
nisstyre has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
cpruitt has joined #ruby
shmup has joined #ruby
Evixion has joined #ruby
shmup has left #ruby [#ruby]
shmup has joined #ruby
shmup has left #ruby [#ruby]
peregrine81 has quit []
<Ox6abe> Anyone have experience calling leiningen from a rakefile ?
sarkis has quit [Ping timeout: 248 seconds]
leonidlm has quit [Ping timeout: 245 seconds]
false_economy has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
<havenwood> Ox6abe: might try #clojure, maybe more have raked lein there?
<Ox6abe> ok thanks havenwood
sayan has quit [Read error: Connection reset by peer]
evenix has joined #ruby
browndawg has joined #ruby
<havenwood> burlyscudd: hehe, yeah they came it with a lot of dramz with rbenv, then kinda faded away
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jocke_ has quit [Remote host closed the connection]
<havenwood> burlyscudd: I guess rbenv shims are nice if you're using some weird shell outside of the bash/zsh/mksh family.
locriani has joined #ruby
negaduck has quit [Ping timeout: 240 seconds]
gyzmodo has quit [Ping timeout: 252 seconds]
<burlyscudd> havenwood: that whle thing really pissed me off — wayne did a ton of awesome work on RVM and solved a problem that drove lots of people fucking crazy, then a bunch of Rubytards take to the internet to talk about how much RVM sucks…? what a bunch of ingrates.
<havenwood> burlyscudd: There is a mksh branch of chruby, a fish fork, and zsh and bash are supported, so that covers my bases.
<burlyscudd> havenwood: I care more about gemsets than anything else
<burlyscudd> keeping deps sequestered == win for me
* gour uses fish shell
<burlyscudd> i don't use that many rubies, tbh
<havenwood> burlyscudd: Yeah, that was lame. Awesome open source programmer with a much-loved and much-used tool getting flamed is sad.
browndawg has quit [Read error: Connection reset by peer]
mva has joined #ruby
<mva> hello there (again)!
<gour> for now i just used: gem install -i and it did what i need(ed) :-)
<gour> havenwood: thanks...have it opened in my ff tab
<havenwood> gour: (Needed to be forked to port tests to fish.)
<burlyscudd> havenwood: it's a sad thing w/ FOSS in general — a bunch of dbags take to Twitter to rip on a guy that gave something super-useful away for free.
<mva> advice me, please, is it any examples how to migrate from rb_thread_select to rb_thread_fd_select (or whatever it should be)?
<burlyscudd> this pattern happens too often, IMO
<havenwood> burlyscudd: chruby has a really good relationship with RVM btw, heck RVM even support a chruby mini-mode: https://rvm.io/workflow/chruby
habanany has joined #ruby
aryaching_ has quit []
<havenwood> burlyscudd: and we share even a bit of code and brainshare :D
colonolGron has joined #ruby
aryaching has joined #ruby
<gour> havenwood: so, no fish support atm?
stkowski has joined #ruby
platzhirsch has left #ruby [#ruby]
baroquebobcat has joined #ruby
browndawg has joined #ruby
<havenwood> gour: No fish support in chruby. Unfortunately fish is too different from posixy shells to be supported with the same code. The fish fork should support fish though.
jnix_ has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
jnix has quit [Ping timeout: 260 seconds]
<havenwood> gour: Or rbenv or RVM fish-style: http://rvm.io/integration/fish
jnix_ has quit [Changing host]
jnix_ has joined #ruby
jnix_ is now known as jnix
<avril14th> Hmmm. I have a class with a minus defined both as unary operator and binary operator. Things get mixed up, anything I can do ?!
senayar has quit [Remote host closed the connection]
Kabaka has joined #ruby
mradmacher has quit [Quit: leaving]
nachtwandler has joined #ruby
<gour> havenwood: i'm just reading about fish & rvm...today i installed beta of ocaml' package manager which brings fish support, so it's nice to see that fisk is getting used more ;)
<MrZYX> avril14th: minimal example reproducing your problem?
sr78ger has joined #ruby
<avril14th> MrZYX: sure, let me gist
sr78ger has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby
<gour> havenwood: is that 'fish fork' already in progress or just hypothetical?
sr78ger has joined #ruby
sr78ger has quit [Max SendQ exceeded]
RichardBaker has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
habanany has quit [Ping timeout: 256 seconds]
<havenwood> gour: Here's the fork: https://github.com/JeanMertz/chruby-fish
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
sr78ger has joined #ruby
habanany has joined #ruby
<gour> havenwood: ta
ewnd9_ has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
bricker`LA has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
hamakn has quit [Remote host closed the connection]
end_guy has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<havenwood> gour: The mksh branch is pretty much feature-complete too. Now if someone would actually use mksh... I've never actually seen it used!
bean has joined #ruby
<havenwood> Any mksh'ers here?
araujo has quit [Quit: Leaving]
huoxito has joined #ruby
<MrZYX> avril14th: prints "something else" over here
araujo has joined #ruby
dash_ has quit [Ping timeout: 260 seconds]
<avril14th> hmmm
<avril14th> so it's somewhere else
<avril14th> :)
* avril14th crawls back
<avril14th> sorry
<MrZYX> no worries
[zX] has joined #ruby
mordocai has quit [Quit: Page closed]
clov3r has joined #ruby
clov3r has quit [Remote host closed the connection]
<avril14th> okay
clov3r has joined #ruby
<avril14th> it actually crashes right after the raise
|jemc| has joined #ruby
<avril14th> at a res = self.dup line
randomautomator has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
segfalt has quit [Quit: Leaving.]
Tricon has quit [Quit: Bye!]
randomautomator has joined #ruby
Tricon has joined #ruby
tkuchiki has quit [Remote host closed the connection]
msuszczy has quit [Ping timeout: 256 seconds]
false_economy has quit [Remote host closed the connection]
<MrZYX> I'd pursue trying to create a minimal reproducer ;)
quoin has joined #ruby
xerxas_ is now known as xerxas
iamjarvo has joined #ruby
VTLob has joined #ruby
RichardBaker has quit [Ping timeout: 256 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ghr has quit [Quit: Computer has gone to sleep.]
dash_ has joined #ruby
<avril14th> :)
<avril14th> I really don't get where the thing goes wrong
<avril14th> :))
peregrine81 has joined #ruby
<avril14th> cause self.dup crashes for some reason I put somewhere else
momomomomo has quit [Quit: momomomomo]
<avril14th> but where is the question
<avril14th> and it doesn't say
<bean> avril14th: what is the exact error you're getting
moosya has joined #ruby
<avril14th> NoMethodError: super: no superclass method `-' for #<Price:0x00000008a56b50>
quoin has quit [Ping timeout: 252 seconds]
<bean> so that means theres no "-" method in the superclas of Price.
nemesit|znc has quit [Quit: ZNC - http://znc.in]
sr78ger has quit [Ping timeout: 264 seconds]
pel_daniel has joined #ruby
<avril14th> right
<avril14th> but it crashes
<avril14th> on a res = self.dup
<avril14th> where self is a Price class
<avril14th> so what is the relationship with - here?
kaspergrubbe has quit [Read error: Operation timed out]
mrsolo has joined #ruby
<bean> can you pastebin the code
noname001 has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
iamjarvo has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
<avril14th> I'll crawl some more
<avril14th> code is fat
<avril14th> try to narrow it
Monie has joined #ruby
browndawg has joined #ruby
iamjarvo has joined #ruby
tylersmith has joined #ruby
<bean> yeah, i'm not convinced that it's dying where you think it is.
<avril14th> well I breakpoint the .dup
snath has joined #ruby
<moosya> sorry for not posting in the appropriate forum but I'm not getting any responses in "#rvm". Anyway, I just tried to use "rvm install <blah>" and I noticed that it uses rpm and requires write access to /var/lib/rpm. Is it possible to avoid this? The last time I used rvm (approx 1 year ago) it did not seem to do this
<bean> heh
<avril14th> anyway, let me try some more
linduxed has joined #ruby
snath has quit [Read error: Connection reset by peer]
snath has joined #ruby
<linduxed> hey guys, i was wondering if there's a need to add "rescue nil" at the end of lines which might turn out to be nil?
<linduxed> or well, under what circumstances might that be necessary?
<avril14th> bean: I breakpoint the .dup and the next line. it gets to .dup and not to the next line :)
<bean> so, since .dup does a shallow copy it's probably trying to reinstantiate the object.
T_T has joined #ruby
<bean> is there something with - in your constructor
<avril14th> linduxed: "lines" ? what are you trying to do, code returning nil?
zeade has joined #ruby
cj3kim has joined #ruby
<avril14th> bean: I have no constructor defined here. Price is a Mongoid::Document
gour has left #ruby ["WeeChat 0.4.1"]
atno has quit [Ping timeout: 248 seconds]
<avril14th> linduxed: +handling
MrThePlague has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Ping timeout: 264 seconds]
Advocation has joined #ruby
<linduxed> avril14th: i just figured it out on my own. it turns out that this method raises an exception when it returns a nil
<linduxed> so that explains the situation
Martz has quit [Max SendQ exceeded]
<avril14th> well, can it return and raise at the same time?
<avril14th> (!)
corpuscle has joined #ruby
kevinykchan has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
mupkoo has quit [Remote host closed the connection]
<apeiros> a method can't return and raise, no
cody-- has quit [Quit: derp]
* avril14th thought so
cj3kim has quit [Ping timeout: 245 seconds]
Martz has joined #ruby
<apeiros> raise doesn't hand control back to the calling site either.
Martz has left #ruby [#ruby]
<apeiros> so you couldn't "accept" a return value in case of raise anyway
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Fire-Dragon-DoL has joined #ruby
* apeiros goes to commute
apeiros has quit [Remote host closed the connection]
<avril14th> bean: found the bug. I has an object of a wrong type being generated somewhere. Now, I still don't get why the breakpoint fails at .dup :/ but problem solved, thanks a lot it's friday evening, i need it :)
aganov has quit [Remote host closed the connection]
<bean> np.
<linduxed> avril14th: it's basically SomeRailsModel.find(something) rescue nil
<bean> I'm just sitting at StrangeLoop listening to a talk :P
taion809 is now known as zz_taion809
timonv has quit [Remote host closed the connection]
<avril14th> linduxed: this will raise RecordNotFound error
segfalt has joined #ruby
toastynerd has joined #ruby
<avril14th> if rails is configured so and record can't be found
<linduxed> yeah, that's probably the case
wicketn00b has quit [Quit: leaving]
<avril14th> if you want to handle that you can put the find call in a begin / rescue block
<avril14th> or play with a side method such as find_or_create or whatever
<avril14th> depending on your need
sloucher has joined #ruby
<linduxed> ok thx
dweeb has quit [Quit: Computer has gone to sleep.]
johnjohnson has joined #ruby
shashin has quit [Quit: shashin]
fascik has joined #ruby
toah has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
joonty has quit [Quit: WeeChat 0.3.8]
fastred has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 264 seconds]
fascik is now known as fastred
tj`_ has joined #ruby
jacobat has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
aetaric has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: Leaving...]
jacobat has joined #ruby
browndawg has joined #ruby
false_economy has joined #ruby
momomomomo has joined #ruby
tj` has quit [Ping timeout: 240 seconds]
pushpak has joined #ruby
bradhe has joined #ruby
aetaric has joined #ruby
krz has quit [Quit: krz]
atno has joined #ruby
Lewix has joined #ruby
filipe has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
Ripp__ has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
burlyscudd1 has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
momomomomo has left #ruby [#ruby]
momomomomo has joined #ruby
brianpWins has quit [Quit: brianpWins]
godd2 has joined #ruby
wallerdev has joined #ruby
mlpinit has quit [Remote host closed the connection]
sarlalia1 has joined #ruby
noname001 has quit [Remote host closed the connection]
mlpinit has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Guest9012 is now known as RealMarc
mikepack has joined #ruby
snath has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
ahawkins has quit [Quit: leaving]
Voodoofish430 has joined #ruby
buibex has quit [Remote host closed the connection]
grillermo has joined #ruby
dankest has joined #ruby
colonolGron has quit [Ping timeout: 240 seconds]
bean has quit [Quit: Computer has gone to sleep.]
AdmiraI has joined #ruby
roob_noob has joined #ruby
<roob_noob> Hello, guys I hate that I am asking such a simple question, but I cant figure out to how do a negative test. I want to check if params is not of type array... I know how to params.is_a? but cant figure out the syntax for !=
mikepack_ has joined #ruby
poikon has quit [Remote host closed the connection]
<MrZYX> unless params.is_a? Array or if !params.is_a? Array
<momomomomo> if !params.is_a?(Array) roob_noob
buibex has joined #ruby
<roob_noob> so just adding the bang to the front, I feel dumb
<roob_noob> thanks
<MrZYX> or using unless, yeah
<momomomomo> roob_noob: don't feel dumb
<momomomomo> you could also use 'and not'
<momomomomo> gross
krawchyk has quit [Remote host closed the connection]
<segfalt> you can do something nice with unless that makes it very readable:
<segfalt> roob_noob unless params.is_a?(Array)
bradhe has quit [Remote host closed the connection]
<roob_noob> I appreciate the help: I am trying to rewrite a PHP library for an API in Ruby as my first real Ruby Project
rkrdo has joined #ruby
alup has quit [Quit: Leaving]
mikepack_ has quit [Remote host closed the connection]
bradhe has joined #ruby
negaduck has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
bradhe has joined #ruby
mansi has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sayan has joined #ruby
mansi has joined #ruby
dgfdgf has joined #ruby
bradhe has joined #ruby
boycey has quit [Quit: boycey]
zastern_ has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
`MArceLL` has quit [Ping timeout: 240 seconds]
buibex has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
toah has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
pairup has joined #ruby
rickmasta has joined #ruby
[zX]_ has joined #ruby
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
zastern has quit [Read error: Operation timed out]
JumpMast3r has joined #ruby
bradhe has joined #ruby
roob_noob has quit [Quit: irc2go]
sayan has quit [Excess Flood]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
[zX] has quit [Ping timeout: 256 seconds]
Kricir has joined #ruby
sayan_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
shaunbak_ has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
shaunbaker has joined #ruby
havenn has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
momomomomo is now known as momomomomo-away
bradhe has quit [Ping timeout: 245 seconds]
nachtwandler has quit [Ping timeout: 260 seconds]
nachtwandler has joined #ruby
toah has joined #ruby
bradhe has joined #ruby
false_economy has quit [Remote host closed the connection]
spider-mario has joined #ruby
Emmanuel_Chanel has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
axl_ has quit [Quit: axl_]
dagobah has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
boycey has joined #ruby
sayan_ has quit [Ping timeout: 260 seconds]
krawchyk has joined #ruby
Nogbit has quit [Ping timeout: 264 seconds]
quoin has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
rehat has quit [Remote host closed the connection]
JumpMast3r has quit [Quit: JumpMast3r]
jarin has quit [Ping timeout: 260 seconds]
locriani has quit [Remote host closed the connection]
hamakn has joined #ruby
locriani has joined #ruby
segfalt has quit [Quit: Leaving.]
kaspergrubbe has joined #ruby
cody-- has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
jarin has joined #ruby
toah has quit [Ping timeout: 245 seconds]
hamakn has quit [Ping timeout: 252 seconds]
locriani has quit [Ping timeout: 264 seconds]
sr78ger has joined #ruby
lukec has quit [Quit: lukec]
internetbird has joined #ruby
soheil has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
snath has joined #ruby
wudofyr has joined #ruby
tylersmith has joined #ruby
dml_ has joined #ruby
Zai00 has quit [Quit: Zai00]
kaldrenon has quit [Remote host closed the connection]
Nogbit has joined #ruby
kaldrenon has joined #ruby
soheil has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby
Guest29270 has quit [Remote host closed the connection]
browndawg has quit [Read error: Connection reset by peer]
BadQuanta has quit [Ping timeout: 245 seconds]
fastred has quit [Quit: fastred]
lfox has quit [Quit: ZZZzzz…]
[zX]_ has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
iliketurtles has joined #ruby
avril14th has quit [Remote host closed the connection]
iliketurtles has quit [Excess Flood]
kaldrenon has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
zastern_ has quit [Remote host closed the connection]
duggiefresh has joined #ruby
DanKnox is now known as DanKnox_away
zastern has joined #ruby
YaNakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
alex__c2022 has quit [Quit: alex__c2022]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
s2013 has quit [Quit: Leaving]
[zX] has joined #ruby
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
DanKnox_away is now known as DanKnox
JumpMast3r has joined #ruby
hakunin has quit [Remote host closed the connection]
<BraddPitt> anyone have a clean and clear (and concise) resource that explains ruby modules?
duggiefresh has quit [Ping timeout: 245 seconds]
siwica has quit [Quit: siwica]
troessner has quit [Quit: Leaving]
Ox6abe has quit [Ping timeout: 260 seconds]
dodosan has joined #ruby
apeiros has joined #ruby
twoism has joined #ruby
browndawg has joined #ruby
rupee has joined #ruby
Nenor has quit [Quit: Nenor]
l34ch has joined #ruby
Senjai has joined #ruby
segfalt has joined #ruby
staafl has joined #ruby
echevemaster has quit [Ping timeout: 245 seconds]
internetbird has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
iliketurtles has joined #ruby
yacks has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
kaldrenon has joined #ruby
dodosan has quit [Ping timeout: 245 seconds]
Advocation has quit [Quit: Advocation]
jrhe has quit [Ping timeout: 264 seconds]
<|jemc|> I'd just google around a bit; it's what I would do if I were trying to help you find a link. If you have specific questions you can ask them here as well.
dangerousdave has joined #ruby
Nenor has joined #ruby
<BraddPitt> yeah, found a pretty good explanation
Ripp__ has quit []
Mon_Ouie has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
zarubin has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
rehat has joined #ruby
cj3kim_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
p0wn3d has quit [Remote host closed the connection]
LMolr has quit [Quit: Leaving]
momomomomo-away has quit [Quit: momomomomo-away]
chuckboxx has joined #ruby
Kar- has quit [Ping timeout: 264 seconds]
kidoz has joined #ruby
segfalt has quit [Quit: Leaving.]
boycey has quit [Quit: boycey]
<BraddPitt> if i have File A in my top level directory and File B in a subdir, should my require in File A look like ``require `/subdir/File_B'?
T_T has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
peregrine81 has quit []
shadoi has joined #ruby
cj3kim_ has joined #ruby
srji has joined #ruby
<srji> hello
lukec has joined #ruby
Stalkr^ has joined #ruby
iamjarvo has joined #ruby
<srji> https://gist.github.com/visualisierte/6640938 i would like to iterate through a yml file
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<srji> but i only get the first key
T_T has joined #ruby
<MrZYX> BraddPitt: the most common pattern is to have lib as toplevel directory for all code beyond small scripts booting your application, then adding that to the load path. you'd then do require 'app' to load lib/app.rb and require 'app/foo' to load lib/app/foo.rb, regardless where you write the require
AxisOfEval has joined #ruby
<BraddPitt> awesome, thank you MrZYX
burlyscudd1 has quit [Quit: Leaving.]
<MrZYX> srji: data.events.each do |year, data| data.each do |name, race|
<Stalkr^> Hey all, reading through 'Learn to Program' at the moment, great book. I want to get into some web development (sinatra in the beginning or maybe dive straight into RoR). What resources do you recommend after Learn to Program?
<Stalkr^> Continue with Ruby or start web development?
zastern_ has joined #ruby
<MrZYX> sinatra is simple enough to do both at the same time
<MrZYX> the most important thing is to thing of a small project you'd like to solve
<srji> ty MrZYX, i will try it
Nogbit has quit [Ping timeout: 260 seconds]
<MrZYX> Stalkr^: if you have a goal and the basics of the language learn what you need to achieve your goal
echevemaster has joined #ruby
<Stalkr^> MrZYX: I have a simple CRUD idea
<Stalkr^> Could always start with a todo list or something
ananthakumaran has quit [Quit: Leaving.]
zastern has quit [Ping timeout: 240 seconds]
<|jemc|> Stalkr^ is this your first language?
havenwood has joined #ruby
<MrZYX> Stalkr^: sure, ideally something you'd use regularly. if you have some receptive task you find to do often looking into writing a script to automate that at least partially usually yields nice to learn projects too
<Stalkr^> |jemc|: kind of, I have a Java course at school
<Stalkr^> That's my first I guess, but they are both pretty new to me. Less than 2 - 4 weeks
mansi has joined #ruby
ehc has joined #ruby
<|jemc|> my recommendation is to put off web development (or any UI development) until you have a firm grasp on programming for the shell/console
<Stalkr^> So keep doing small Ruby stuff after reading the book?
<srji> MrZYX: when i try data.each do |name, race| i got an "undefined method `each' for nil:NilClass"
soheil has joined #ruby
<havenwood> Stalkr^: I'm late to the convo, but if you're doing Java in class definitely check out JRuby. :)
<|jemc|> if you want to go off an learn rails right now you probably could, but if you lack the fundamentals you would likely depend on rails as a crutch and never really be a "real" programmer
soheil has quit [Remote host closed the connection]
<Stalkr^> havenwood: Even though I dislike Java?
<|jemc|> and that's okay for some people, if they only ever want to do rails
soheil has joined #ruby
<MrZYX> srji: then data.events isn't the yaml structure you presented
<MrZYX> or there are more alternations to it
<Stalkr^> |jemc|: Definitely want to be a developer/programmer/coder etc, doing other stuff than Rails
<havenwood> Stalkr^: Well, you could write your class code in JRuby and make jars to turn in for your Java classes. >.>
axl_ has joined #ruby
<Stalkr^> havenwood: Is JRuby just Ruby that compiles into Java?
<havenwood> Red Bridge is pretty nifty with JRuby too.
<|jemc|> yeah, so ad MrZYX said, try to work on scripts that make your life easier
Xeago has quit [Ping timeout: 264 seconds]
<havenwood> Stalkr^: Ruby that runs on the JVM. Really nice implementation.
Ox6abe has joined #ruby
soheil has quit [Remote host closed the connection]
zastern_ has quit [Remote host closed the connection]
<MrZYX> Stalkr^: |jemc| I see no problem with starting out with something minimalistic such as sinatra, it's more important to be passionate about your project
<|jemc|> something you use often and have a real connection with rather than just 'excercises'
<havenwood> Stalkr^: supports invokedynamic, etc
<|jemc|> s/excer/exer
zastern has joined #ruby
<havenwood> Stalkr^: Clojure could use to follow suit on invokedynamic.
<Stalkr^> havenwood: I haven't touched that stuff yet. Just learned about HashMap, HashSet, TreeSet, ArrayList and such
Kar- has joined #ruby
<Stalkr^> No idea what Clojure and InvokeDynamic is
<havenwood> Stalkr^: Nice. Good stuff. Clojure is a Lisp on the JVM.
mansi has quit [Ping timeout: 268 seconds]
<Stalkr^> o:
<Stalkr^> Sounds advanced
hakunin has joined #ruby
DanKnox is now known as DanKnox_away
<Stalkr^> Do I need to know Java to use JRuby or is Ruby enough?
<havenwood> Stalkr^: Ruby I think actually prepares one pretty well for Clojure! Lots of nice functional paradigms in Ruby.
<havenwood> Stalkr^: Just Ruby.
soheil has joined #ruby
<Stalkr^> We are only doing Java for 6 months, then it's C#, F# and some C
<Stalkr^> So don't want to get too invested into Java, rather want some Ruby knowledg
<Stalkr^> e
<havenwood> Stalkr^: F# is the one like Clojure. Well, Clojure is dynamically typed like Ruby and other nice stuff.
lkba has joined #ruby
<Mon_Ouie> F# is like OCaml
<havenwood> But functional.
rdark has quit [Quit: leaving]
Ripp__ has joined #ruby
<Stalkr^> What is the use for JRuby? I mean, if it just Ruby, why JRuby?
sayan has joined #ruby
<Stalkr^> Runs faster because of compiled code?
<Mon_Ouie> Because it allows you to access Java libraries
havenwood has quit [Remote host closed the connection]
<wuest> Stalkr^: run on top of the JVM. Obviates the GIL, among other things
kaspergrubbe has quit [Remote host closed the connection]
havenwood has joined #ruby
<MrZYX> mainly because people can do it. Like building ruby on top of python. Or python on top of python
<wuest> (Of course, IIRC, you lose fork() as a result of using the JVM)
quoin has joined #ruby
<Stalkr^> Should I start using JRuby or just Ruby?
<Mon_Ouie> And indeed, performance due to the JVM is one reason to choose it too (although nearly all implementations generate bytyecode for their respective VMs)
VictorSK has joined #ruby
<Morrolan> Well, Python on top of Python is quite a bit faster than Python on top of C.
<havenwood> Stalkr^: Also JRuby doesn't have a GVL (global vm lock), so nice for threading.
<Morrolan> Stalkr^: In many cases it's not too hard to make your application work on both implementations.
<havenwood> aka GIL
<Mon_Ouie> It doesn't matter which implementation you're using to learn the language, they all support the same core
<Morrolan> And from the programmer's point of view it's just Ruby, after all. :D
<wuest> Stalkr^: if you depend on forking, JRuby is probably not a great solution. It sounds like you're in a Windows shop, though
Kar- has quit [Ping timeout: 252 seconds]
<havenwood> Stalkr^: Some shops use only one of the other. But gives Ruby access to so many libraries, pick your poison.
cads has joined #ruby
Nisstyre-laptop has joined #ruby
<Stalkr^> wuest: Not sure if you ask if I am on a Windows
<Stalkr^> What does fork do?
<wuest> Stalkr^: then you aren't depending on fork(). :)
<srji> MrZYX: when i do "#{data}" i got the complete hash as output.
<havenwood> Stalkr^: There are other interesting Ruby implementations as well, like Topaz, MagLev, Rubinius, MRuby, etc.
<srji> how can this be nil?
<Stalkr^> D:
<Stalkr^> I shouldn't have asked these questions, not yet
<havenwood> Stalkr^: man fork
<MrZYX> srji: can't tell, I'm not seeing your data
<wuest> Stalkr^ can't man fork, windows :p
<Stalkr^> wuest: I am on OS X if that's what you mean
a1ph4g33k has joined #ruby
<havenwood> Stalkr^: Jesse Storimer has a great blog and some very-much-worthwhile books on the subject that are accessible: http://www.jstorimer.com/
<a1ph4g33k> g'morning all.
<wuest> Oh! Then you can man fork. You might want to man 2 fork specifically (on my local machines an Awk extension called fork is the default hit for man fork)
<hoelzro> I like Beej's guide
<hoelzro> (guides)
quoin has quit [Ping timeout: 240 seconds]
thinkclay has joined #ruby
<wuest> Whoa, I haven't heard the phrase "Beej's Guide" in a looooong time.
blackmesa has joined #ruby
marsLantern has quit [Quit: marsLantern]
i_s has joined #ruby
Nogbit has joined #ruby
iamjarvo has quit [Ping timeout: 268 seconds]
<Stalkr^> What's the general recommendation after reading 'Learn to Program'? Not quite sure if I got it right, I heard 'Well Grounded Rubyist' and 'Programming Ruby 1.9 & 2.0'
EspenA has joined #ruby
Nogbit has quit [Client Quit]
<havenwood> Stalkr^: The Ruby Programming Language
<hoelzro> TRPL++
<hoelzro> great book
* hoelzro whistles
<wuest> _why ^_^
dangerousdave has quit [Read error: Connection reset by peer]
* hoelzro has not read _why's book
AxisOfEval has quit [Quit: Linkinus - http://linkinus.com]
dangerousdave has joined #ruby
Advocation has joined #ruby
<Morrolan> You didn't miss anything.
locriani has joined #ruby
<wuest> They missed chunky bacon.
<havenwood> that is something!
<wuest> And synerg^H^H^H^H^H^Hcartoon foxes.
<zaltekk> i'm reading The Ruby Programming Language right now. it is a good book, but it might be difficult to follow as a beginner
<Morrolan> Well, okay. You missed *something*.
<havenwood> And that book has a great soundtrack...
<Morrolan> But definitely not something worth reading. :P
Advocation has quit [Client Quit]
<zaltekk> since it's a complete walkthrough of the language, not a "lets start programming" book
<hoelzro> zaltekk: indeed
<wuest> I found that it read like a Dave Barry book. I recommend it. :)
<hoelzro> it's not a beginner's book at all
Nogbit has joined #ruby
<onewheelskyward> Dave Barry!
<hoelzro> but it's a great thorough overview
staafl has quit [Ping timeout: 248 seconds]
<Stalkr^> hoelzro: What's TRPL++?
<havenwood> Stalkr^: yup
<hoelzro> "The Ruby Programming Language"
<EspenA> what's an easy way to sort a dataset (with sql or enum) by status (e.q: active, not_verified, expired, cancelled)
<hoelzro> I was just expressing my approval =)
<havenwood> Stalkr^: +1 is a common thing to say to bump someone elses comment :P
<Stalkr^> zaltekk: Even after reading 'Learn to Program'?
<wuest> EspenA: SORT BY status_column in your SQL statement?
sayan has quit [Ping timeout: 252 seconds]
<zaltekk> Stalkr^: i don't know the Learn to Program book
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Stalkr^> havenwood: Who should I bump with +1?
<Mon_Ouie> Or sort_by(&:status) for a generic collection
cj3kim_ has quit [Remote host closed the connection]
<havenwood> Stalkr^: noo, i mean hoelzro's ++'s
<EspenA> wuest: I mean sort by a specific order (like in my previous msg), not sort a-z
<Mon_Ouie> If a status cannot be compared you can, for example, map them to integers
VictorSK_ has joined #ruby
<Stalkr^> havenwood: Oh, The Ruby Programming Language ++.. Thought it was a new book
VictorSK_ has left #ruby [#ruby]
<havenwood> Stalkr^: nvm :P but Learn to Program followed by The Ruby Programming Language sounds like a fantastic plan to me
VictorSK has quit [Remote host closed the connection]
mlpinit_ has joined #ruby
<Stalkr^> Sweet, TRPL got some good ratings too
<Stalkr^> I always like that
<wuest> Stalkr^: it sounds like you have a fair bit of other language experience
<EspenA> Mon_Ouie: yeah that could be a solution
<havenwood> I've heard good things aboud Well Grounded Rubyist but haven't read.
VictorSK_ has joined #ruby
<wuest> Ruby Under a Microscope might be a good book for you. Explores the internals of the VM, so you understand a lot of the "why" behind Ruby's behavior/design.
VictorSK_ has left #ruby [#ruby]
<hoelzro> oooo
* hoelzro wants to read that
sayan has joined #ruby
<wuest> (Disclaimer: I haven't read it yet, but it _DOES_ get raving reviews from everyone who's read it)
<wuest> hoelzro: I'm waiting for deadtree format
<Stalkr^> wuest: I have picked up a little here and there, but never really did any development
<Nogbit> This one is great, plenty of practical examples... http://www.amazon.com/Cookbook-Cookbooks-OReilly-Lucas-Carlson/dp/0596523696
<havenwood> Pat Shaughnessy has an awesome talk that is a much-watch too.
<havenwood> I bet the book is as good as rumored.
<wuest> Oh? Do you have a link?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wuest> Stalkr^: yeah, that's the one.
<wuest> havenwood: thanks!
<wuest> Emailed home for post-work watching
<Stalkr^> Sweet, all added to my 'to check' list
Xeago has joined #ruby
cj3kim has joined #ruby
<wuest> Stalkr^: as an aside, I heartily recommend the Matasano crypto challenges as a fantastic way to learn/become comfortable with a language.
relix has joined #ruby
VictorSK has joined #ruby
<wuest> Not exactly a book, but I tend to learn more effectively if I have tasks, anyway.
<havenwood> i like Project Euler
<wuest> That's the one.
VictorSK has left #ruby [#ruby]
<Stalkr^> I don't like Euler, more about math than programming imo
mlpinit has quit [Ping timeout: 260 seconds]
<Stalkr^> I can't even do the math, let alone program it
undenoted23 has quit [Ping timeout: 256 seconds]
VictorSK has joined #ruby
<srji> when i do data.class i got the following output Thor::CoreExt::HashWithIndifferentAccess
<havenwood> Stalkr^: ends up really being programming, I promise :P
VictorSK has left #ruby [#ruby]
<Stalkr^> havenwood: Only the beginning that's heavy on math?
VictorSK has joined #ruby
* wuest will have to look into Project Euler
VictorSK has quit [Client Quit]
<havenwood> Stalkr^: The math is usually not too insane, just google a bit. The fun is in the algorithms.
<Stalkr^> There is a course on algorithms in a year, think I will take a look at Euler after that
<havenwood> Stalkr^: And once you've done some of the math bits, they are reusable for other problems.
rads_ has joined #ruby
<wuest> On the subject of algorithms, SICP is worth looking into.
tvw has quit []
<wuest> Adapting the solutions to be ruby solutions instead of scheme is a good mental exercise while learning Ruby
<havenwood> Stalkr^: I had fun doing some Euler's in blockly: http://blockly-demo.appspot.com/static/apps/code/index.html
<havenwood> Why don't they teach programming in Blockly?!?
<BraddPitt> the fuck
soheil has quit [Remote host closed the connection]
<BraddPitt> maybe im retarded
<BraddPitt> but i do not understand requires
rads_ has left #ruby [#ruby]
<BraddPitt> for external class files in a subdir
grits has quit [Quit: Textual IRC Client: www.textualapp.com]
<wuest> BraddPitt: p $LOAD_PATH
<wuest> It's possible the needed directory doesn't exist in your load path.
<havenwood> BraddPitt: Maybe you could use `require_relative` in your case, dunno.
soheil has joined #ruby
Bira has joined #ruby
DanKnox_away is now known as DanKnox
<MrZYX> BraddPitt: research ruby's load path
undenoted23 has joined #ruby
<BraddPitt> i am :<
<havenwood> BraddPitt: $LOAD_PATH is a normal Ruby Array.
<havenwood> BraddPitt: Shorthand is `$:` but you see both.
phrog has joined #ruby
fastred has joined #ruby
tylersmi_ has joined #ruby
<MrZYX> I hate the global shortcut vars
tylersmith has quit [Read error: Connection reset by peer]
Nisstyre-laptop has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
<MrZYX> can't memorize them
tjbiddle has joined #ruby
<shevy> me neither
<wuest> $: is about the only one I've ever memorized.
Bosox20051 has quit [Remote host closed the connection]
locriani has quit [Ping timeout: 252 seconds]
advorak has joined #ruby
<havenwood> require 'english'
zarubin has joined #ruby
<shevy> yeah because one often sees $: << 'bla/'
<wuest> Yup
<tjbiddle> Hey guys - I'm trying to find some resources on packaging a rails / rack / sinatra app as a gem. Anyone have anything you could throw my way? :)
<wuest> havenwood: I don't think english is needed since 1.9.x?
<wuest> (For some value of x)
<havenwood> tjbiddle: I like to use bundler to build the gem structure, then edit that, and use gem-release to version bump, tag, and push.
alex__c2022 has joined #ruby
<havenwood> wuest: Very-well may be true, i actually dunno.
mansi has joined #ruby
<havenwood> tjbiddle: bundle gem your_gemname
<wuest> Actually, I just proved myself wrong
<wuest> $$ and $PID differ without english
<havenwood> tjbiddle: gem-release is just a little helper thing, but i think really handy: https://github.com/svenfuchs/gem-release#readme
Ripp__ has quit []
Kar- has joined #ruby
ukd1 has joined #ruby
<havenwood> or you looking for just rack-app packing instructions?
dodosan has joined #ruby
<havenwood> Like frankenjar but for a Gem not a JVM jar.
<havenwood> frankengem
<havenwood> dun think it exists
Ripp__ has joined #ruby
<tjbiddle> havenwood: Yes, being able to package a web app (Rack based is fine) as a gem, so I can include it into my Rails app, and then mount it so I can reach it at my_rails_app/my_rack_app
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<tjbiddle> I found a few examples after searching for rack instead of rails. Haven't done anything outside of rails - can I deploy with a better web server than webrick? Or would it run behind whatever I have the parent rails app running as?
AdmiraI has joined #ruby
<havenwood> Rails does like its plugins.
RDash is now known as RDash[AW]
<MrZYX> tjbiddle: the later
<tjbiddle> MrZYX: Kick ass - So if I had the rails app running as passenger, mounted the rack app in config/routes, then the rack app would run under passenger as well?
<tjbiddle> running under passenger*
<MrZYX> yes
<tjbiddle> MrZYX: Very cool Thanks :-) Thanks for the resources as well havenwood !
<MrZYX> it's really just passing the rack request thingy to your app and the apps response back
<BraddPitt> okay so when i load a separate class file Foo, i call it's methods like Foo.method_name
<BraddPitt> right?
burlyscudd has joined #ruby
senayar has joined #ruby
<havenwood> BraddPitt: if they are class methods
Kar- has quit [Ping timeout: 248 seconds]
<havenwood> BraddPitt: dunno what you mean by 'load a separate' though
<BraddPitt> 1 sec let me diagram this
s2013 has joined #ruby
<MrZYX> BraddPitt: there's no concept of "class files" in ruby, just file. The first time your require a file it's evaluated like you passed it to the ruby command directly
<havenwood> where does concept of 'class file' come from?
<Stalkr^> havenwood: What's blockly?
<havenwood> Stalkr^: A visual programming language by Google.
undenoted23 has quit [Quit: undenoted23]
<s2013> a module is a class right? so is a module basically a collection of classes?
<Stalkr^> Oh, kind of like Scratch?
<havenwood> Stalkr^: Try getting through maze level 10: http://blockly-demo.appspot.com/static/apps/maze/index.html
<shevy> s2013 you can use both a module and a class
<havenwood> Stalkr^: You can write your own blocks. :D
<MrZYX> s2013: a class is a module but a module is not a class. A module can contain modules and classes (any constant really) and methods
<shevy> s2013 class Foo; module Bar ... module Foo; module Bar ... module Foo; class Bar
<s2013> cause Class.class = Class Module.class = Class Module.superclass = Object Class.superclass = Module
Ripp__ has quit [Ping timeout: 260 seconds]
<s2013> so a class's highest ancestor isa module?
mlpinit_ has quit [Read error: Connection reset by peer]
unlogged02 has joined #ruby
<shevy> a module is basically a class from where someone destroyed .new
colonolGron has joined #ruby
<havenwood> s2013: if you aren't instantiating use a module
chrisja has quit [Quit: leaving]
mlpinit has joined #ruby
[zX] has quit [Quit: leaving]
segfalt1 has joined #ruby
<s2013> ok
<BraddPitt> that
<s2013> thanks
<BraddPitt> does that look proper?
<havenwood> BraddPitt: Is Posix-only cause of the hard-coded "/" file separator, but looks right to me.
duggiefresh has joined #ruby
<MrZYX> s2013: Module is class itself but that doesn't make modules (module Foo == Foo = Module.new) classes
<zaltekk> the / should work on windows too
<BraddPitt> i'm getting NoMethodError
Senjai has quit [Remote host closed the connection]
<havenwood> zaltekk: I thought win was \
<havenwood> zaltekk: So you'd need to File.join or use File::Separator.
<BraddPitt> for any methods i use from commands.rb
chuckboxx has quit [Quit: chuckboxx]
<s2013> oh ok
mark_locklear has quit [Ping timeout: 252 seconds]
<MrZYX> BraddPitt: you're still confused as what require does. it just inserts the code inside the file commands.rb at where you place it
<zaltekk> havenwood: well, it is, but / tends to still work
<wuest> BraddPitt: I'd prefer this: File.join(File.expand_path(File.dirname(__FILE__)), 'lib')
<MrZYX> BraddPitt: it doesn't define any class or module or anything
sarlalian has joined #ruby
sarlalia1 has quit [Read error: Connection reset by peer]
<MrZYX> you have to do that inside the file you're loading
<havenwood> wuest: +1
<BraddPitt> MrZYX i have a class defined (with methods) inside of commands.rb
<havenwood> Or on Ruby 2.0+: __dir__
mklappstuhl has quit [Remote host closed the connection]
<MrZYX> it's name surely isn't commands, rather Commands or something
<havenwood> wuest: No need for that File.join though, right?
<havenwood> wuest: Pass File.expand_path two params
kidoz has quit [Quit: Ухожу я от вас]
codecop_ has joined #ruby
<BraddPitt> yeah sorry, Commands is the class name
<wuest> Ooh, nice.
<BraddPitt> but im calling it properly, Commands.foo
<BraddPitt> the filename is commands.rb
<wuest> Yeah, habit to use File.join, for sure. Didn't catch that at all.
<MrZYX> and you defined foo as class method?
<BraddPitt> yes
<BraddPitt> oh
<BraddPitt> man
<BraddPitt> fuck
<BraddPitt> ( ¬‿¬)
<BraddPitt> no i didn't
<BraddPitt> ;_;
<BraddPitt> im an idiot
<s2013> how would you convert an integer 343 into [3,4,3] ? i did something like 343.to_s.split("").map{ |i| i.to_i }
momomomomo has joined #ruby
<s2013> but not sure if there is a different way of doing it
<MrZYX> I'd use .chars.map(&:to_i) but that's about it
Stygia has quit [Remote host closed the connection]
<havenwood> >> 343.to_s.chars.map(&:to_i)
<eval-in> havenwood => [3, 4, 3] (https://eval.in/49536)
<s2013> so basically convert it to string then convert it back to integer?
<MrZYX> yes
usgc has joined #ruby
<s2013> oh ok
<BraddPitt> ty MrZYX, that was really my fault all along
<MrZYX> your conversion is on the presentation level of the number
<BraddPitt> not paying attention to my methods
tylersmi_ has quit [Ping timeout: 240 seconds]
<s2013> is map(&: to_i) same as map{ |i| i.to_i } ?
codecop has quit [Ping timeout: 248 seconds]
<MrZYX> yes
<s2013> its like a shrotcut?
<MrZYX> yes
<havenwood> syntactic sugar
<zaltekk> no space between the : and to_i
<havenwood> to_proc
<s2013> oh ok
<havenwood> s2013: :to_i is a symbol referring to the #to_i method
<s2013> yeah i know to_i
<s2013> i was wondering about the &: but now it makes sense
<zaltekk> it's not &:
<zaltekk> it's &
dgfdgf is now known as `MArceLL`
<havenwood> s2013: & is the to_proc, and :to_i is the symbol
<MrZYX> & passes a proc as a block and class .to_proc on the passed value before hand
<s2013> oh
<s2013> alright
vim_shim has joined #ruby
<MrZYX> Symbol#to_proc returns a handy proc calling the method named self on the first argument passed to it
<s2013> proc is anonymous functions?
<s2013> or is that lambda
breakingthings has quit []
locriani has joined #ruby
a1ph4g33k has quit [Quit: Leaving.]
<havenwood> s2013: proc and lambda just have different arity strictness and return to different places
<MrZYX> in ruby, lambda is a special kind of proc enforcing its parameters
chuckboxx has joined #ruby
<s2013> >> "afsf".chars.map(&:upcase)
<eval-in> s2013 => ["A", "F", "S", "F"] (https://eval.in/49537)
<s2013> ah makes sense now
havenwood has quit [Read error: Connection reset by peer]
<s2013> i read the chapter on procs/lambdas as well as watched videos but it still confuses me to abit. but i guess with due time
havenwood has joined #ruby
<wuest> s2013: Just have to play with them a lot
<usgc> Hello there, I have a question concerning modules and classes. I have a class (Klass) that creates an object of another class (Other). Now I want to extend the object I created from Klass (@obj) with a module that contains a modified version of Other. Is this not possible?
<zaltekk> you'll learn when you use them
<usgc> I have created an example here: https://gist.github.com/anonymous/0836afb218b605305e4a
<s2013> yeah true
colonolGron has quit [Ping timeout: 248 seconds]
jlebrech has quit [Quit: Konversation terminated!]
a1ph4g33k has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
milardovich has joined #ruby
<s2013> i wanted to make something very simple as a way to teach myself ruby.. it would be something like a tracking your rhythm/timing. so you keep pressing a key for 60 seconds and it tells you the bpm
<havenwood> s2013: nice
<endash_> lambdas are "methody"
<s2013> since i play the piano, timing is very important so i figured its a way to see your timing. does that make sense?
kil0byte_ has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
soheil has quit [Read error: Connection timed out]
<MrZYX> usgc: extend doesn't reinitialize an object. You'd normally also don't pass classes to it. Lastly using during the program flow is a performance killer
<s2013> is that something that would be relatively straightforward havenwood ?
senayar has quit [Remote host closed the connection]
chuckboxx has quit [Client Quit]
soheil has joined #ruby
MrThePlague has joined #ruby
<MrZYX> usgc: make a module Other, and a class SpecialOther; include Extension::Other; end; end; if you don't want to change all Other's
senayar has joined #ruby
ehaliewicz has joined #ruby
<wuest> s2013: Nice idea. Be aware that getc doesn't return immediately as you might expect. I'd recommend invoking gets and just expecting someone to hit 'enter' in your loop, for maximum simplicity. Outside of something like curses, I don't know how to achieve an immediate return from getc/etc.
<MrZYX> class SpecialOther < Other; include Extension::Other; end; of course. Then in Klass do SpecialOther.new
locriani has quit [Ping timeout: 268 seconds]
<s2013> wuest: oh ok ill look into it. thanks
<usgc> MrZYX: That wouldn't work in my case. I want to have a class/object within an instance that can be extended by other modules at program launch.
<havenwood> s2013: Not entirely straightforward due to #getc as wuest metnions. Maybe to get you started: require 'io/console'; beat = STDIN.getch
Ox6abe has quit [Remote host closed the connection]
<s2013> oh ok
<usgc> I. e. I want to create an instance of Klass and then add several "Others".
<MrZYX> usgc: the real world use case for that is what?
<wuest> havenwood: isn't io/console Unix-only?
atmosx has joined #ruby
* wuest has no Windows box to test, wasn't certain
<usgc> MrZYX: It is a HTML rendering engine where different modules will provide their own rendering methods. Say I have @renderer, I want to add render_map, render_image, etc.
<atmosx> windows
<atmosx> ouch
<havenwood> wuest: Nobu claimed 'portable' but no clue: https://github.com/nobu/io-console#readme
<havenwood> wuest: Haven't tried or delved into the code, interesting question?
<wuest> Fair enough, I'll trust nobu
<MrZYX> usgc: still not sure why you have to make that decision in the objects lifetime and not beforehand
* wuest assumed that Windows's non-ANSI console mucked things up
<havenwood> wuest: yeah, looks like win compat
<MrZYX> usgc: fact is extend won't rerun an overriden initialize and isn't intended to "convert your objects type"
<havenwood> wuest: when /mswin/, /mingw/, /win32/...
<usgc> MrZYX: Because there can be several "site" instances (they will contain @renderer). Each site can be extended with modules. And thus I also want the modules to be able to extend that @renderer object.
breakingthings has joined #ruby
senayar has quit [Ping timeout: 268 seconds]
<wuest> havenwood: yupyup, nifty
unlogged02 has quit [Quit: unlogged02]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
alvaro_o has joined #ruby
<MrZYX> usgc: module SiteExtension; def renderer_type; BlaRenderer; end; end; class Site; include SiteExtension; def initialize; @renderer = renderer_type.new; end; end;
lfox has joined #ruby
spider-mario has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
peregrine81 has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
<usgc> MrZYX: But the rendering has to take place in its own object. That is why I need the nested class.
ggreer has joined #ruby
dangerousdave has quit [Quit: Leaving...]
<MrZYX> ? how is it now taking place outside BlaRenderer?
St_Marx has quit [Quit: Leaving]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
ggreer has left #ruby [#ruby]
nonministerial68 has joined #ruby
Bira has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
spider-mario has quit [Read error: Operation timed out]
Davey has quit [Quit: Computer has gone to sleep.]
EspenA has quit [Remote host closed the connection]
Davey has joined #ruby
<usgc> MrZYX: Ah sorry, I was confused. But this way, it is still not going to work because not all site objects will need all extensions.
kirun has joined #ruby
<MrZYX> I guess I'm giving up on your class design, sorry
T_T has quit [Remote host closed the connection]
<s2013> man do people even read resumes?
cj3kim has quit [Remote host closed the connection]
<havenwood> s2013: I haven't submitted or read a resume in a looong time. Github.
quoin has joined #ruby
<s2013> i havent looked for a job in 6+ years. i finally decided to get an entry level/junior level job to increase my skills. and they all asked for resume since its a bit more junior
ckampfe has joined #ruby
<s2013> but i have few years of c++ and php experience from years ago but i explicitly mentioned i am junior level when it comes to rails.. but most think i have few years of rails experience
<BraddPitt> fake it till you make it
tacit71 has left #ruby [#ruby]
<s2013> and gets all excited to try to talk to me and when i tell them no i dont have that many years of experience they get sad :(
T_T has joined #ruby
<s2013> tbh id even work for minimum wage. i dont care much about the $. i just want to be able to learn. so no point in faking it to try to get a job where i am stuck with things i dont know about
<shevy> lol s2013
<shevy> s2013 if you can't tell them a good rails story, tell them a good anecdote about C++ or PHP
St_Marx has joined #ruby
<s2013> no its not about that. i want a true junior position where i work in a team with senior devs.
<s2013> and i had a 4-5 year break in between programming
<s2013> so im rusy on a lot of the most basic things
<s2013> they talk about things i learned back in college but hardly remember
<BraddPitt> look for an intern position then
<s2013> i did but its mostly for college students. ive been out o fcollege for a while.
<s2013> they ask me what school am i currently in 99% of the time
shashin has joined #ruby
stkowski has joined #ruby
quoin has quit [Ping timeout: 240 seconds]
<havenwood> s2013: just got to find a place with a good culture that matches what you want. Sure seems to be a lot of demand in LA right now.
spider-mario has joined #ruby
<s2013> yeah i just got a call from a company in LA
<havenwood> i've got more work than i can shake a stick at
nonministerial68 has quit [Ping timeout: 248 seconds]
<s2013> the lady was like "oh you have 5 years of rails experience? thats awesome" and i was thinking "oh God, not this again"
<havenwood> startups here are using PHP because they can't find Rubyists
<havenwood> >.>
<havenwood> insanity...
<s2013> im in nyc, same here
<s2013> most of the places that i did get offers in, they wanted me to be the tech lead cause they cant find anyone else to work
<s2013> and im like that kind of defeats the purpose
<havenwood> aha, yeah NYC seem to be quite busy.
<havenwood> right...
<havenwood> ThoughtBot or something might be ideal.
colonolGron has joined #ruby
KensoDev has joined #ruby
<s2013> i saw a job last night. they wanted someone with 7+ years of rails experience. i was like uhh. thats a handful of people
<BraddPitt> da fuck
<BraddPitt> 7+ years
<havenwood> s2013: Maybe try Shopify? Wanna live in Canada?
<s2013> yeah. for a startup
KensoDev has quit [Remote host closed the connection]
<s2013> havenwood: i rather drive a stake through my eye
KensoDev has joined #ruby
<havenwood> s2013: They were trying to hire me for a developer tools spot, but yeah...
<momomomomo> :O I like Canadia
<havenwood> I was kinda tempted, love the people there.
<momomomomo> I'm in Minnesota ;)
<havenwood> At Shopify, not those silly Canadians.
<momomomomo> haha
skaflem has quit [Quit: This computer has gone to sleep]
<shevy> what is wrong with canada
<shevy> except for the snow
<momomomomo> shevy: Nothing!
dankest has quit [Quit: dankest]
<havenwood> shevy: One nation under Canada!
<s2013> shevy: canada is just like the new jersey of america
fourqq has quit [Ping timeout: 264 seconds]
<godd2> s2013: New Jersey is already in America...
<s2013> onlyplace in canada id consider though is Vancouver
dankest has joined #ruby
<havenwood> As a Cascadian separatist, I look forward to a divided Canada. :P
nari has quit [Ping timeout: 260 seconds]
mansi has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<s2013> yes godd2 thats the point
<s2013> canada is america's new jersey
<s2013> as in new jersey is new yorks canad
<s2013> canada
<s2013> etc
<s2013> aka neighbor no one likes/cares about
<BraddPitt> what is the best/safest way to pass a class variable to a separate class file?
mlpinit has quit [Read error: Connection reset by peer]
<s2013> momomomomo: how are ruby/rails position in MN?
<MrZYX> BraddPitt: what's a class file?
mlpinit has joined #ruby
browndawg has joined #ruby
<s2013> i saw one in montana which was interesting. id love to take that but i didnt get a call back
Notte has joined #ruby
<BraddPitt> zzzz
trend has joined #ruby
<shevy> I guess a class file is a .rb file that has one class in it
<momomomomo> s2013: One of my friends is trying to hire me at the moment, but other than that, there are a few startups. I'm actively looking at the moment, but focusing on the west coast
<BraddPitt> im too used to java :<
mlpinit has quit [Remote host closed the connection]
<s2013> how many years experience you have?
<segfalt1> BraddPitt: I am so sorry.
brbcoding has quit []
<BraddPitt> ;/
<shevy> momomomomo yeah, long live california!!! down with the east coast!
baordog_ has joined #ruby
<segfalt1> shevy: I can afford to buy a house and pay it off in my lifetime.
<s2013> shevy: hush
<BraddPitt> okay let's rephase: safest/best way to pass a class variable to another class in a separate file
<BraddPitt> better?
<momomomomo> shevy: My sister and brother in law are moving out to San Diego, so figured I might like to be with my nieces while they're growing up
<s2013> awwwww uncle momomomomo
<momomomomo> shevy: Also importing my little brother from Sudan soon, so I'd like to see him as well
<shevy> BraddPitt just pass through a method, or store in a second @@class_var
jumpingcloud has joined #ruby
* momomomomo blushes
<BraddPitt> er oops, its an instance variable actually
<shevy> BraddPitt I'd really assign through a method
<s2013> binary hash tree.. how do you deal with thati n ruby?
<BraddPitt> okay
<BraddPitt> ty
<MrZYX> BraddPitt: if the second class should know about the first one, write a getter for it, if only the first class should know about the second pass it as parameter to new/initialize
<BraddPitt> cool, ty guy
<BraddPitt> s
mlpinit has joined #ruby
Emmanuel_Chanel has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
<s2013> is bst and bht same?
<momomomomo> Don't know if that's a good implementation, but it is apparently one
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
<momomomomo> s2013: no
<s2013> oh
<s2013> thanks
<momomomomo> one of the first results on google is a surprisingly timely domain haha
<s2013> this brings me back to my college days
<momomomomo> s2013: I got a D- on my only CS class in college
<s2013> heh. i college level cs classes in hs
<s2013> and in college i got A
<s2013> but i dropped out after couple of semesters
<momomomomo> s2013: It was "Solving computer problems" which had no syllabus, and ended up being us playing with Blender all semester
<momomomomo> :p right on
<s2013> i wanted to get into AI
<shevy> s2013 why did you drop out? didnt like it anymore?
<s2013> and was building games in c++
apeiros has joined #ruby
<s2013> shevy: family issues mostly and then i kind of fell out of it since i didnt like the theory much
segfalt1 is now known as segfalt
<s2013> i switched to a different majro which i found more interesting
<s2013> when i went back to school
<momomomomo> nice - I finished with a business degree, went online and followed harvard's CS50, and a few math courses from University of Colorado Colorado Springs
jonathanwallace has quit [Ping timeout: 248 seconds]
<momomomomo> and lots o books :)
<s2013> but i still programmed at that time to pay the bills. then started my own company and basically managed it past 5 years
<s2013> so that 5 years i didnt program so i kind of forgot all those stuff
Xeago_ has joined #ruby
<s2013> but i kinda missed it so i started learning ruby and rails and ilike it and i figured i should get a job so i can learn faster.
Xeago_ has quit [Remote host closed the connection]
<shevy> hehe
<s2013> momomomomo: thats the beauty of programming. you can be self taught if you are a good learner
<atmosx> s2013: sounds interesting story
<shevy> I always liked ruby but it seems there is no way around rails
<s2013> my school has a very awesome cs program though.
<atmosx> I envy you USA guys jumping in and out of jobs so easily
colonolGron has quit [Ping timeout: 248 seconds]
<s2013> i wish i took advantage of it
<s2013> atmosx: you are in czech republic?
Quashie has joined #ruby
pygospa has quit [Disconnected by services]
Xeago_ has joined #ruby
pygospa has joined #ruby
<momomomomo> atmosx: I had worked at a radio network for 6 years, which gave me an easy intro to the ad agency world
<momomomomo> atmosx: It's still tough to look around, though
Spami has quit [Quit: This computer has gone to sleep]
<s2013> it depends.. but americans switch jobs more often than non americans from my experience
<momomomomo> Maybe I need to build a portfolio or something
<s2013> in other countries you are expected to be loyal to your company for life
Nogbit has quit [Quit: Leaving.]
<atmosx> s2013: yes
<atmosx> s2013: Brno
Xeago_ has quit [Remote host closed the connection]
Guest12400 has joined #ruby
<shevy> s2013 yeah but it works the other way too, you can safely work in a good job until retirement
<Guest12400> opinions... is it ok to just support ODS and CSV, and tell everyone else to piss off
<s2013> yeah it depends
<shevy> at least... 20 years ago :P
<s2013> if you care about money though best thing to do is stay in same industry but switch jobs
<s2013> but im not the kidn of person that can work for anyone. the thought of looking for a job is making me vomit tbh
<shevy> Guest12400 yes but only if you make sure everything else works perfectly well!
<segfalt> I think american culture has shifted on both sides of the business. In Japan, the company CEO and share price would take a hit before they'd consider layoffs due to embarassment.
<s2013> but i gotta do it. and stick with it for atleast few months
<Guest12400> hnm now that is strange, xlsx works in Roo but xls doesn't O_O
BizarreCake has quit [Ping timeout: 252 seconds]
<Guest12400> does anyone have a sample really simple xls sheet?
<Guest12400> made in excel?
<momomomomo> Guest12400: XLS and XLSX are easy to support with http://roo.rubyforge.org/
<s2013> k anywyas nic etalkign to yall. gotta go. take care.
s2013 has quit [Quit: Leaving]
<BraddPitt> puts automatically puts a newline char at the end right?
<Guest12400> i'm already using it
<BraddPitt> unless you #chomp ?
<Guest12400> it appears to be giving me an infinite loop on .xls files, at least those exported from soffice
<ReinH> BraddPitt: chomping won't help
alex__c2022 has quit [Quit: alex__c2022]
<BraddPitt> well
<BraddPitt> the real question is, does puts place a newline char?
<ReinH> BraddPitt: if you don't want the newline, use #print
<ReinH> yes
<BraddPitt> okay, cool
soheil has quit [Read error: Connection timed out]
<BraddPitt> (i do want one)
<MrZYX> unless there already is one
rezzack has joined #ruby
sayan has quit [Remote host closed the connection]
<atmosx> BraddPitt: sure it does
soheil has joined #ruby
<atmosx> you can use printf("This is a line with a newline\n"); if it fits you better
<MrZYX> atmosx: psssst :P
habanany has quit [Ping timeout: 246 seconds]
<atmosx> MrZYX: It's the only question I knew how to answer, it's only fair being an ass :-P
cmarques has joined #ruby
browndawg has joined #ruby
alex__c2022 has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
c0rn has quit [Ping timeout: 264 seconds]
<shevy> sprintf - the ancient way to string print something
<shevy> BraddPitt puts can be odd
<BraddPitt> i'm beginnig to notice
<shevy> puts "5"
<BraddPitt> ( ≖‿≖)
<shevy> puts "5\n"
<wuest> Can it? I haven't found any dark corners of puts.
corpuscle has quit [Quit: WeeChat 0.4.1]
<shevy> ^^^ do you think these two lines are different BraddPitt
<wuest> ...That's a dark corner I've never noticed.
c0rn has joined #ruby
<shevy> well it surprised me when I first saw it, I added one \n programmatically and did not notice a newline
<apeiros> `puts str` is like `print str.sub(/\n?\z/, "\n")`
Nogbit has joined #ruby
<ReinH> puts merely ensures that the last printed char is a newline
<apeiros> that is: it will append a newline unless there already is one
<ReinH> there's nothing tricky about it
tomsthumb has joined #ruby
<apeiros> I agree with ReinH - nothing tricky or odd about it
<apeiros> I also actually like ReinH's way of phrasing it better. "ensures a newline".
<ReinH> apeiros: hi :)
<apeiros> ho ReinH :)
<ReinH> apeiros: I've been doing a lot of FP lately so maybe I'm thinking more declaratively :)
<apeiros> I expect your tail to be optimized then…
<ReinH> where I come from we don't have call stacks ;)
<wuest> Sure you do! It's just a static size of 1. ;)
negaduck has quit [Read error: Connection reset by peer]
<ReinH> no, we literally don't have call stacks
<ReinH> (Haskell does not have a call stack)
negaduck has joined #ruby
<ReinH> so tail calls are not as important as in some other languages
<ReinH> it matters more whether your recursions are productive
<ReinH> aaanyway
<yxhuvud> what does it have instead? magic smoke?
negaduck has left #ruby [#ruby]
<ReinH> a pattern matching stack
<ReinH> or a thunk stack
<ReinH> whatever you want to call it
KensoDev has quit [Remote host closed the connection]
<shevy> a monad stack
lotherk has quit [Ping timeout: 264 seconds]
<yxhuvud> hmm.
<shevy> it's where you put a monad after use
grillermo has quit [Quit: bandtastic.me]
<ReinH> nope
BraddPitt has quit [Quit: Leaving]
srji has quit [Remote host closed the connection]
<atmosx> Haskell
<atmosx> what is it good for?
locriani has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
BraddPitt has joined #ruby
colonolGron has joined #ruby
<hoelzro> it'll change the way you think, man...
soheil has quit [Read error: Connection timed out]
apeiros has quit [Remote host closed the connection]
BraddPitt has quit [Client Quit]
<atmosx> hoelzro: everybody says that for Haskell and Lisp
soheil has joined #ruby
decoponio has quit [Quit: Leaving...]
<MrZYX> I say that for functional programming in general
<ReinH> hackeron_: programming stuff.
<hoelzro> well, it *does* expose you to a completely different way of programming
<hoelzro> even if you don't use them everyday, I think you're better for learning them
krawchyk has quit [Ping timeout: 245 seconds]
locriani has quit [Ping timeout: 241 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
thepumpkin has joined #ruby
apeiros has joined #ruby
harrymoreno has joined #ruby
<shevy> atmosx I think it is like a drug
browndawg has quit [Ping timeout: 260 seconds]
locriani has joined #ruby
locriani has quit [Remote host closed the connection]
colonolGron has quit [Ping timeout: 252 seconds]
locriani has joined #ruby
havv has joined #ruby
locriani has quit [Read error: Connection reset by peer]
<atmosx> shevy: hm
<atmosx> a good one
<atmosx> ?
locriani has joined #ruby
AFKGeek has joined #ruby
locriani has quit [Remote host closed the connection]
schaerli has joined #ruby
<atmosx> shevy: did you knew that small ORFs are finally found to play major role in some cells. I don't remember the exact link now. They produce proteins.
noop has joined #ruby
<shevy> how small is small?
Emmanuel_ChanelX has joined #ruby
<shevy> atmosx and isn't small RNAs the rage these days?
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> shevy: no idea
<atmosx> slicing is fucking everything up immensely
<shevy> hehe
nanoxd has joined #ruby
<shevy> atmosx how far away are you in your studies now?
segfalt has quit [Quit: Leaving.]
<atmosx> shevy: last year, if everything goes well..
<shevy> *far ahead into
<shevy> cool
<atmosx> shevy: I'm taking classes of 3rd and 4th year… it's my actual 3rd year on the univ
<atmosx> my thesis is to build a web framework that will find ORFs for prokaryotes
<atmosx> which is fairly easy, I'm doing it on rails :-P
Gue______ has joined #ruby
Gue______ has quit [Max SendQ exceeded]
<shevy> cooool
<atmosx> yes hehe our molecular biology teacher is awesome
<atmosx> s/teacher/professor
Fuzai has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
philcrissman has joined #ruby
coderhs has joined #ruby
ixti has quit [Read error: No route to host]
Xeago has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
philcrissman has joined #ruby
yalue has quit [Quit: Leaving]
quoin has joined #ruby
<graft> why are oyu building a web framework to find ORFs?
<graft> isn't that something to do with a small shell script?
lurch_ has quit [Quit: lurch_]
anonymuse has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
Kar- has joined #ruby
robustus has joined #ruby
<godd2> To make it interactive?
<graft> why does it need to be interactive?
<godd2> Oh I was just throwin spaggheti at the wall. I don't even know what an ORF is hah
<atmosx> graft: already did that. My professor wants the program, I told him I could deliver any interface
<graft> ORF = open reading frame, basically a gene
KensoDev has joined #ruby
<atmosx> so he doesn't really give a shit about RoR or PHP or anything.
<graft> atmosx: so you're really building a genome browser
<atmosx> graft: it's a good way for me to elarn RoR.
quoin has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
anonymuse has joined #ruby
<shevy> graft we'll get him to generate pdfs from that eventually including excel/openoffice diagrams
<shevy> and all statistics output!
akonny has joined #ruby
schaerli has quit [Remote host closed the connection]
<shevy> all through rails too
<atmosx> graft: kinda… they will load the DNA and then load the protein or perform random searchs for ORFs. Both is easy to implement although I should find an algorythm to do it faster… on hand onthe other hand runs pretty fast for E.Colli and other bacteria because they have small DNA sequences anyway. And at the univ will be using a CUDA so… I get it will be faster even without using the GPU.
aaronmcadam has quit [Quit: Leaving...]
<atmosx> shevy: hmmm that doesn't seem fun, but yes it can be done sure :-P
<graft> atmosx: aha, so it's an interface for people to submit datasets?
<atmosx> graft: exactly
fourqq has joined #ruby
<shevy> will your program search for ORFs on both dsDNA strands and in all 6 reading frames?
<atmosx> graft: it's an interface to 'grep' if you wanna see it that way, with some bells and whistles
<graft> heh
<atmosx> shevy: sure
<atmosx> shevy: is there any *other* way to do it?
colonolGron has joined #ruby
<atmosx> shevy: I think I have the 1st script I wrot ehere wait...
<graft> what are you grepping for?
<atmosx> shevy: https://gist.github.com/atmosx/6642924 graft take a look
Nisstyre-laptop has joined #ruby
<shevy> atmosx dunno, none that is less basic I guess
<Eiam> is there some way to find out the name of the method I'm inside of?
<Eiam> I wanted to print all the parameters passed to me and didn't want to do method(:my_method).parameters (because that requires me to know the method name)
<shevy> Eiam I think __method__
Nogbit has quit [Quit: Leaving.]
<Eiam> __method__.parameters?
* Eiam tries
<shevy> hmmm the params...
<shevy> there was this way to get them...
<shevy> arity? hmmmm
KensoDev has quit [Remote host closed the connection]
JumpMast3r has quit [Quit: JumpMast3r]
<shevy> I forgot what it was
burlyscudd has quit [Quit: Leaving.]
<Eiam> method(__method__).parameters works
<Eiam> a bit confusing
<Eiam> hmm well it doesn't display the value
<Eiam> damn
<Eiam> just the names =p
<shevy> atmosx I recall that AUG and GUG as start codon would be used in bacteria, but TTG as well?
<atmosx> shevy: Yes, I found it at Wikipedia
<shevy> Eiam cool, did not know that works, I will write that down :D
<shevy> atmosx I see
skaflem has joined #ruby
skaflem has left #ruby [#ruby]
<graft> atmosx: oohh, you don't have to worry about introns! man...
<shevy> Eiam I get weird stuff when I use method(__method__).parameters
<shevy> [[:req, :a], [:req, :b], [:req, :c]]
<graft> atmosx: i'd worry about false-positives with those rare start codons
schaerli has joined #ruby
<Eiam> shevy: required parameter :a
<Eiam> required parameter :b
<shevy> atmosx seems as if graft digged through his share of pain as well already
<shevy> Eiam oh I see
<atmosx> graft: well, actually in my program you will be able to define the start codons yourself. Of course the defaul will only atg
<Eiam> its just the names of the parameters and if they are required. trying to figure out how to get their values all in one swoop.
<shevy> :req for required
<Eiam> shevy: yup
senayar has joined #ruby
Nisstyre-laptop is now known as nisstyre
T_T has quit [Remote host closed the connection]
<atmosx> shevy: yeah I figure that out from his initial interest in the conversation
<shevy> foo 3 # => [[:req, :a], [:opt, :b], [:opt, :c]]
<shevy> atmosx I wonder if he is a railser :P
<atmosx> graft: are you?
<shevy> btw
<graft> yeah, i do some rails stuff
<shevy> atmosx from #bioruby there are some other ruby users... one in netherlands, and some like raoul from italy
<graft> i can't believe i haven't been using this Bio-Ruby stuff
T_T has joined #ruby
<shevy> bio-ruby is not easy for my poor old brain to handle
Kar- has quit [Ping timeout: 260 seconds]
l34ch has quit [Ping timeout: 256 seconds]
<graft> is it any good?
habanany has joined #ruby
jb41 has joined #ruby
<shevy> it has some nice tidbits, like rare codon tables of some organisms, and some things like parsers for some deep sequence machines I have never even heard of
<graft> i have a whole bunch of stuff i rolled myself (GTF/Fasta/VCF), i feel like i probably wasted a bunch of time on work other people already did
<shevy> but I just can't get my brain to grasp it :(
<atmosx> graft: I didn't use it, but they have written some rails bindings etc.
<shevy> graft yeah I feel like that too
<shevy> oh yeah there they are atmosx http://www.bioruby.org/ "Naohisa Goto, Pjotr Prins, Mitsuteru Nakao, Raoul Bonnal, Jan Aerts and Toshiaki Katayama"
<atmosx> shevy: I'm subscribed on the mailing list actually :-_P
senayar has quit [Ping timeout: 240 seconds]
<graft> you seem to be using their Sequence class, atmosx
schaerli has quit [Remote host closed the connection]
<shevy> atmosx ah hehe...
<shevy> I can't deal with mailing lists either :(
<shevy> the good thing with IRC is ... I forget everything after like 3 hours
a1ph4g33k has left #ruby [#ruby]
devoldmx has joined #ruby
<atmosx> graft: sure, I trust they are better than me in this. Althugh I'm not sure if they use every possible stop codon
milardovich has quit [Quit: Leaving]
<atmosx> but yes anyway
<atmosx> shevy: lol
<atmosx> graft: what do you do? study or work?
<Eiam> shevy: okay thick I got it hang on lemme write it out
skaflem has joined #ruby
<graft> atmosx: cancer
mlpinit has quit [Remote host closed the connection]
<atmosx> graft: Harvard? wow
<atmosx> and MIT
<atmosx> impressive
<graft> err... that was creepy
skaflem has quit [Client Quit]
<atmosx> molecular lessions that drive tumor?
<atmosx> cool
<graft> where'd you get that from?
<atmosx> graft: NSA
<graft> yeah, lots of analysis of next-gen sequencing from tumors
<atmosx> graft: now, that would be creepy.
Spami has joined #ruby
<graft> oh wait, i have my name on this thing, heh, never mind
iamjarvo has joined #ruby
<atmosx> graft: oh you didn't knew? heh sorry if I scared you.
<atmosx> I just googled your name
evenix has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
tvw has joined #ruby
lessless_ has quit [Ping timeout: 256 seconds]
Nogbit has joined #ruby
mlpinit has joined #ruby
AFKGeek has quit [Quit: Leaving]
havv has quit []
<v0n> why do I get a syntax error with: exit if nil.nil?
<graft> hmm, they don't seem to have an interval-trees type thing in bioruby, shucks
alekst has quit [Quit: Computer has gone to sleep.]
seich- has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 260 seconds]
<graft> v0n: what's the context? works in irb...
<wuest> v0n: what's the syntax error? That's valid; might be something preceding it that's messing up?
<v0n> I'm using pry and it doesn't work
<v0n> works in irb, that's true
<v0n> wuest: unexpected end-of-input, expecting keyword_then or ';' or '\n'
* Eiam shevy: here we go... somewhat lazy. local_variables.inject(method(__method__).parameters.map!{|a,b| b}){ |sum,val|
<Eiam> fffff
<Mon_Ouie> v0n: It seems related to the fact that exit in pry is a command
Apocalypse has quit [Ping timeout: 260 seconds]
<MrZYX> Eiam: why map! ?
<wuest> v0n: what precedes it? Can you give a pastebin dump?
<wuest> Oh, or perhaps if you're using pry apparently...
<graft> pry seems to be busted
seich- has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
<Eiam> shevy : local_variables.inject(method(__method__).parameters.map!{|a,b| b}){ |sum,val|
<Eiam> if sum.include?(val)
<Eiam> sum.push(eval(val.to_s))
<Eiam> end
<Eiam> sum }
<Eiam> shevy: that'll give you an array of parameters and their values
<graft> but only for exit, hmm
<Mon_Ouie> I'm not sure why the exit command does anything with its argument but that's what's happening
<graft> puts :ok if nil.nil? works fine
<Mon_Ouie> If you add a space before the "exit if nil.nil?" you will notice that it evaluates fine
banisterfiend has quit [Read error: Connection reset by peer]
<Eiam> its gross because its just a flat array but I was in a hurry =p. so you'll see [:a, 5] if the value of a was 5
KobraKao has joined #ruby
Apocalypse has joined #ruby
soheil has quit [Read error: Connection timed out]
banisterfiend has joined #ruby
soheil has joined #ruby
soheil has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
chuckboxx has joined #ruby
Kar- has joined #ruby
<Stalkr_> Why doesn't this work? http://pastie.org/8342609 I can't read my out.txt file
nisstyre has quit [Ping timeout: 256 seconds]
atmosx has quit [Quit: Lost in trance]
<Stalkr_> I can write without problem, and I see the text file gets created, then written to
<MrZYX> Stalkr_ because you didn't close the file before you read it, there's no guarantee it's yet written
<MrZYX> use block form or File.write to close it automatically
atmosx has joined #ruby
<Stalkr_> f = File.write(filename, "w") instead?
<Eiam> shevy: I don't quite understand why I have to eval(val.to_s) to get the actual value of the symbol
<graft> f = File.open(filename, "w") do |f| f.whatever; end
<Eiam> i just know it works =p
aaronmcadam has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
<atmosx> you don't need the f = ... hmm
clov3r has quit [Remote host closed the connection]
<Stalkr_> MrZYX: I tried looking in the ruby docs (2.0), but didn't really find what I needed
<MrZYX> I linked you the method
yfeldblum has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Read error: Connection reset by peer]
<atmosx> the fact that I was too bored 6 hours ago to buy corn flakes and millk from the super market, hurts me deeply
aaronmcada has joined #ruby
<atmosx> and I wanted to share
sailias has quit [Quit: Leaving.]
pairup has quit [Quit: I'm asleep.]
geekbri has quit [Remote host closed the connection]
<Stalkr_> It 'puts' the same line, "Hello" to my console, why does this return false? http://pastie.org/8342628
clov3r has joined #ruby
momomomomo has quit [Quit: momomomomo]
spider-mario has quit [Remote host closed the connection]
<MrZYX> you're comparing "out.txt" to "Hello"
<Stalkr_> Oh, right...
<Stalkr_> Thanks :-)
<Stalkr_> My own puts 'out' line confused me there
aaronmcadam has quit [Ping timeout: 258 seconds]
cody-- has quit [Quit: derp]
cescalante is now known as ce_afk
<Eiam> shevy: There has got to be an easier way
<MrZYX> Eiam: what problem are you actually trying to solve here?
<shevy> Eiam huh
<shevy> Eiam I am not quite following
<Eiam> MrZYX: I was debugging a method in pry and I wanted to output the parameters of the method and their values
<Eiam> without actually calling every parameter by name or looking them up manually
mengu has joined #ruby
<Eiam> so I came up with a way to do it (above)
rupee has quit [Quit: Leaving]
mengu has quit [Changing host]
mengu has joined #ruby
<Eiam> its just pretty gross.
fascik has joined #ruby
<MrZYX> oh okay, so just introspection
andikr has quit [Read error: Connection reset by peer]
<Mon_Ouie> Do you have so many variables that ls wouldn't be able to print them?
Nisstyre-laptop has joined #ruby
i_s has quit [Remote host closed the connection]
pairup has joined #ruby
hpekdemir has joined #ruby
<hpekdemir> hi
fastred has quit [Ping timeout: 260 seconds]
fascik is now known as fastred
<hpekdemir> "bundle install" does not work. anyone with the same problem here?
<MrZYX> sure, you just need to to fix it
<hpekdemir> how?
<MrZYX> this way
<hpekdemir> MrZYX: ?
<godd2> hpekdemir: what is the error output? Can you make a gist?
<MrZYX> hpekdemir: exactly
<hpekdemir> godd2: I don't have any output
<apeiros> hpekdemir: if you want specific help, be specific in your question
<godd2> hpekdemir: there must be output to your command prompt/terminal window when you type 'bundle install' and press enter, no?
<apeiros> "does not work" is useless. you can tell that your car mechanic and he'll be happy to charge you by the hour to figure out what you mean.
mlpinit has quit [Remote host closed the connection]
<MrZYX> hpekdemir: that is it doing its job
<hpekdemir> MrZYX: sure? my former "bundle install" process was quite different. with fetching and installing all gems in gemfile
<MrZYX> it does take some time
<hpekdemir> ok
<godd2> if you're finnicky about installs, you can make output whinier by adding --verbose
<hpekdemir> I'm curious about this.
stkowski has quit [Ping timeout: 261 seconds]
<hpekdemir> it is like, as if it can't make a connection to rubygems
<hpekdemir> dot org
<godd2> It might be running around looking for proxies to rubygems
<hpekdemir> ok
fastred has quit [Quit: fastred]
fantazo has quit [Remote host closed the connection]
<MrZYX> their API might be down and it's falling back to the old slow method
<godd2> I had that issue once, but with verbose output, I could actaully see that it was
fourqq has quit [Ping timeout: 248 seconds]
<hpekdemir> I have the same output now with --verbose
<hpekdemir> but ok, I will let it continue now.
<atmosx> good
stkowski has joined #ruby
<hpekdemir> apeiros: I know you btw.
ixti has joined #ruby
colonolGron has joined #ruby
elaptics is now known as elaptics`away
<apeiros> personally?
<atmosx> creepy
<hpekdemir> no. couldn't really figure out from where. but I guess debian or perl land
<shevy> what
<apeiros> hpekdemir: there's an 'apeiron', maybe you mean him
<shevy> he is a mac user!
<hpekdemir> aaah yes.
<hpekdemir> sorry :D
<apeiros> I didn't use irc in my perl days
Es0teric has joined #ruby
<apeiros> and debian… lets just not comment on that.
<shevy> yeah, perl users are not the brightest
wesside__ has joined #ruby
timonv has joined #ruby
<godd2> shots fired!
Nisstyre-laptop is now known as nisstyre
<apeiros> shevy: that's the wrong language starting with 'p'
wesside has quit [Ping timeout: 248 seconds]
<shevy> hpekdemir do you use debian?
<hpekdemir> of course
aaronmcada has quit [Quit: Leaving...]
<atmosx> I like debian
<atmosx> I like apt-get actually
<atmosx> the rest is almost the same everywhere.
pairup has quit [Quit: I'm asleep.]
mlpinit has joined #ruby
clov3r has quit [Remote host closed the connection]
<hpekdemir> yes. it continues :D
<hpekdemir> installing all gems :)
<shevy> ack
Emmanuel_ChanelX has quit [Quit: Leaving]
<shevy> you guys are fearless
Emmanuel_Chanel has joined #ruby
<onewheelskyward> phearless
skulker has joined #ruby
mansi has joined #ruby
stkowski has quit [Quit: stkowski]
quoin has joined #ruby
stkowski has joined #ruby
schaerli has joined #ruby
lfox has quit [Quit: ZZZzzz…]
vlad_starkov has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
Fuzai has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
<ReinH> INSTALL ALL THE GEMS
nonministerial68 has joined #ruby
ckampfe has quit [Ping timeout: 268 seconds]
quoin has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
ce_afk is now known as cescalante
i_s has joined #ruby
<atmosx> I wonder how many GB that would be
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
machuga is now known as machuga|away
T_T has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
schaerli has quit [Remote host closed the connection]
burlyscudd has joined #ruby
pskosinski__ has joined #ruby
schaerli has joined #ruby
T_T has joined #ruby
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
rkrdo has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Quit: Leaving]
sniffingcats has quit [Ping timeout: 256 seconds]
interactionjaxsn has quit [Ping timeout: 268 seconds]
burlyscudd has quit [Ping timeout: 240 seconds]
soheil has joined #ruby
AdmiraI has joined #ruby
Cyrus has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
<hpekdemir> I meant "all gems" in gemfile.
colonolGron has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
relix has joined #ruby
relix has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
pskosinski__ is now known as sniffingcats
relix has joined #ruby
relix has quit [Max SendQ exceeded]
<Stalkr_> Doesn't Ruby like "~" in a string for Dir[]?
jonkri has quit [Quit: jonkri]
<Stalkr_> files = Dir[~/this/folder/*]
relix has joined #ruby
<Stalkr_> for example
cescalante is now known as ce_afk
nachtwandler has quit [Remote host closed the connection]
relix has quit [Max SendQ exceeded]
<Stalkr_> files = Dir['~/this/folder/*'] - forgot the quotes
rkrdo has joined #ruby
skulker has quit [Remote host closed the connection]
<graft> Stalkr_: File.expand_path
kaldrenon has quit [Remote host closed the connection]
relix has joined #ruby
kenneth has joined #ruby
relix has quit [Max SendQ exceeded]
kaldrenon has joined #ruby
<Stalkr_> graft: So I can use "files = Dir.expand_path['~/this/folder/*']" for example?
leehambley has quit [Ping timeout: 246 seconds]
relix has joined #ruby
<Stalkr_> Oh, store it in a string maybe
relix has quit [Max SendQ exceeded]
<graft> Stalkr_: files = Dir[ File.expand_path '~/this/folder/*' ]
breakingthings has quit []
leehambley has joined #ruby
senayar has joined #ruby
timonv has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
Emmanuel_Chanel has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
philcrissman has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
michael_mbp is now known as zz_michael_mbp
philcrissman has joined #ruby
<Stalkr_> graft: Thanks, got it working
<Stalkr_> I guess it's no problem if I choose not to use '~'?
kaldrenon has quit [Ping timeout: 245 seconds]
<Stalkr_> Just /Users/Me/this/folder instead of ~/this/folder?
<apeiros> Stalkr_: correct. ~ is not really a directory name.
<apeiros> your shell expands it
<Stalkr_> Thanks
<apeiros> and in ruby, you need to expand it yourself (using File.expand_path, as graft showed you)
mlpinit has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 252 seconds]
fastred has joined #ruby
fastred has quit [Client Quit]
relix has joined #ruby
relix has quit [Max SendQ exceeded]
T_T has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 245 seconds]
snovak_ has quit [Remote host closed the connection]
popl has joined #ruby
relix has joined #ruby
relix has quit [Max SendQ exceeded]
snovak has joined #ruby
relix has joined #ruby
relix has quit [Max SendQ exceeded]
T_T has joined #ruby
skulker has joined #ruby
BraddPitt has joined #ruby
shashin has quit [Quit: shashin]
T_T has quit [Remote host closed the connection]
relix has joined #ruby
relix has quit [Max SendQ exceeded]
pairup has joined #ruby
alekst has joined #ruby
rehat has quit [Remote host closed the connection]
<Stalkr^> What's the easiest way to execute a Ruby script? First line is '#!/usr/bin/env ruby' so it can execute itself, but is there something like .sh so I can just double-click on it?
<Stalkr^> Compile .rb to .sh, .command or something so it runs directly in Terminal from Finder would be neat
<popl> Stalkr^: What OS?
<Stalkr^> OS X
<MrZYX> at least on linux it doesn't run because it's .sh but because it has the executable bit set and a shebang
Guest____ has joined #ruby
<MrZYX> if you double click on it
banisterfiend is now known as banister
Guest____ has quit [Max SendQ exceeded]
<MrZYX> the .sh is just for the humans
Emmanuel_Chanel has quit [Quit: Leaving]
Guest____ has joined #ruby
robonerd has joined #ruby
<apeiros> Stalkr_: don't forget `chmod 0755 yourscript.rb`
Guest____ has quit [Max SendQ exceeded]
T_T has joined #ruby
BraddPitt has quit [Ping timeout: 260 seconds]
Guest____ has joined #ruby
philcrissman has quit [Remote host closed the connection]
<Stalkr^> apeiros: I just ran a+x on it, read u+x after doing a+x though
<Stalkr^> I found this http://rawr.rubyforge.org/, will make it to an .app or .exe file
relix has joined #ruby
<Stalkr^> Do you think this can be used?
<popl> Stalkr^: This is really an OS X question.
Emmanuel_Chanel has joined #ruby
yfeldblum has joined #ruby
skulker has quit [Remote host closed the connection]
Guest____ has quit [Client Quit]
segfalt has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
<Stalkr^> popl: I know how to run scripts from Terminal, just asking if I can compile .rb into .app, .sh, .command or something else
relix has quit [Max SendQ exceeded]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<popl> well luckily that link is telling you how to run shit from Finder
<popl> try reading it
<popl> :P
relix has joined #ruby
robonerd has left #ruby ["..."]
vlad_starkov has joined #ruby
relix has quit [Max SendQ exceeded]
<Mon_Ouie> Stalkr^: Just ruby file.rb
toastynerd has quit [Remote host closed the connection]
<Stalkr^> I don't think you understand what I am asking for, but thanks for helping
relix has joined #ruby
relix has quit [Max SendQ exceeded]
<apeiros> "compile to .sh" makes no sense
platzhirsch has joined #ruby
<popl> Stalkr^: You want something to run when you double-click on it in Finder.
<popl> Am I missing something?
<Mon_Ouie> Yes, nvm, but the she-bang and the right permissions have already been mentionned
<apeiros> you can just double click a properly chmoded file with a shebang
colonolGron has quit [Quit: Lost terminal]
<apeiros> there's no magic involved
<popl> apeiros++
<Stalkr^> popl: Yeah, but my .rb file just opens a text editor
relix has joined #ruby
segfalt has quit [Client Quit]
<popl> try renaming it to script.command
<apeiros> try dropping the .rb
<apeiros> if that doesn't work, I'd assume your permissions aren't set correctly
<popl> apeiros: does this work for you in OS X?
<Stalkr^> Oh, cool. Thanks, exactly what I needed :-)
nonministerial68 has quit [Quit: nonministerial68]
<Xeago> Stalkr_: you can associate a text editor with your .sh files
<Stalkr^> Both works, -.rb and +.command
<hpekdemir> what could this mean? http://nopaste.info/f3e3bd822b.html
<apeiros> popl: yes, works just fine
<popl> Stalkr^: You could have read the article at that URL when I first suggested it and saved five minutes.
<popl> apeiros: good to know
<MrZYX> hpekdemir: ask #redmine
<apeiros> problem is that *nix and DOS suffix style file handling is retarded
<apeiros> never understood why apple went away from a superior system
<Stalkr^> popl: I skimmed it, but no mention of Ruby, so I didn't thought it was relevant to my question, as I know .command runs from Finder
<Stalkr^> All I needed was .rb to .command is possible, but didn't thought of trying it :-)
kenneth has quit [Quit: kenneth]
mlpinit has joined #ruby
<banister> Mon_Ouie 'alut :)
overachieving41 has joined #ruby
<Mon_Ouie> banister: 'alut
Notte has quit [Remote host closed the connection]
polaco is now known as polaco_zZz
hpekdemir has quit [Quit: leaving]
shashin has joined #ruby
jaynewstrom has quit [Read error: Connection reset by peer]
KobraKao has quit [Ping timeout: 248 seconds]
jaynewstrom has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
dash_ has quit [Quit: dash_]
kevinfagan has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
kevinfagan has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
nitish has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
tomzx_mac has joined #ruby
overachieving41 has quit [Ping timeout: 252 seconds]
jaynewst_ has joined #ruby
peregrine81 has quit []
lfox has joined #ruby
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ehc has quit [Quit: ehc]
Clooth has quit [Quit: Leaving...]
overachieving41 has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
jaynewstrom has quit [Ping timeout: 245 seconds]
lfox has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
quoin has joined #ruby
Xeago has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Anderson has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
vadviktor has quit [Quit: No Ping reply in 180 seconds.]
gustavn has joined #ruby
gustavn has quit [Client Quit]
vadviktor has joined #ruby
Anderson has joined #ruby
vadviktor_ has quit [Quit: No Ping reply in 180 seconds.]
gustavn has joined #ruby
vadviktor_ has joined #ruby
crunch-choco has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 260 seconds]
failshell has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 260 seconds]
alex__c2022 has quit [Quit: alex__c2022]
BillCriswell has quit [Remote host closed the connection]
schaerli has joined #ruby
bookmage has quit [Remote host closed the connection]
JumpMast3r has joined #ruby
fourqq has joined #ruby
AdmiraI has joined #ruby
Ox6abe has joined #ruby
jlast has quit [Remote host closed the connection]
burlyscudd has joined #ruby
Minos___ has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 256 seconds]
rhys has quit [Quit: Leaving]
snovak has quit [Remote host closed the connection]
bluenemo has joined #ruby
snovak has joined #ruby
snovak has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
Kricir has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
RichardBaker has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
vim_shim has quit [Ping timeout: 260 seconds]
<platzhirsch> Refactoring hell, today I will hit the 1,000th GitHub contribution
huoxito has quit [Quit: Leaving]
<popl> platzhirsch: huzzah
Eiam has quit [Ping timeout: 260 seconds]
<platzhirsch> and I will celebrate it with coffee and coke
<popl> cocaine, you mean?
harrymoreno_ has joined #ruby
<platzhirsch> What ever floats your boat :P
agent_white has joined #ruby
<popl> why? you're the one celebrating.
<platzhirsch> oh right
agent_white has quit [Client Quit]
agent_white has joined #ruby
harrymoreno has quit [Ping timeout: 245 seconds]
harrymoreno_ is now known as harrymoreno
bradhe has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
sloucher has quit [Quit: sloucher]
skulker has joined #ruby
Eiam has joined #ruby
tonni_ has joined #ruby
claymore has quit [Quit: Leaving]
theRoUS has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
jerius has quit []
rightisleft has joined #ruby
tonni has quit [Ping timeout: 246 seconds]
MrThePlague has quit [Remote host closed the connection]
Stalkr^ has quit [Quit: Linkinus - http://linkinus.com]
ce_afk is now known as cescalante
bluehavana has quit [Quit: Connection closed for inactivity]
axl_ has quit [Quit: axl_]
gustavn has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has joined #ruby
timonv has joined #ruby
baordog_ has quit [Remote host closed the connection]
usgc has quit [Ping timeout: 250 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
p0wn3d has joined #ruby
skulker has quit [Remote host closed the connection]
rightisleft has quit [Quit: Linkinus - http://linkinus.com]
kenneth has joined #ruby
kenneth has quit [Client Quit]
rightisleft has joined #ruby
SteveBenner9 has joined #ruby
codecop_ has quit [Read error: Connection reset by peer]
sloucher has joined #ruby
sloucher has quit [Client Quit]
<SteveBenner9> is anyone here using CouchRest?
threesome has quit [Ping timeout: 264 seconds]
butblack has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
p0wn3d has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 260 seconds]
p0wn3d has joined #ruby
RORgasm has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
bluenemo has quit [Quit: Verlassend]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rightisleft has quit [Quit: Linkinus - http://linkinus.com]
rightisleft has joined #ruby
cescalante is now known as ce_afk
bradhe has joined #ruby
rightisleft has left #ruby [#ruby]
baroquebobcat has quit [Quit: baroquebobcat]
Mon_Ouie has quit [Ping timeout: 264 seconds]
devdazed has quit [Quit: Bye]
VTLob has quit [Quit: VTLob]
<Lewix> 'a single equals interpolates ruby code'. really?
<onewheelskyward> Really.
anonymuse has quit [Read error: Connection reset by peer]
<Lewix> onewheelskyward: example
NealJ has quit [Quit: :c]
butblack has quit [Quit: butblack]
anonymuse has joined #ruby
mrsolo has joined #ruby
<onewheelskyward> var = function_call()
snovak has joined #ruby
nictuku has joined #ruby
nictuku has left #ruby [#ruby]
baroquebobcat has joined #ruby
<Lewix> onewheelskyward: ah thats what it means...
yourmysin has joined #ruby
jkamenik1 has joined #ruby
<onewheelskyward> Pretty sure, yeah
<Lewix> onewheelskyward: thanks
<onewheelskyward> also if var = function_call
<onewheelskyward> then var is in scope within the if
p0wn3d has quit [Remote host closed the connection]
chuckboxx has quit [Quit: chuckboxx]
ehc has joined #ruby
<MrZYX> it's a method call, not a function call. And no, in ruby if's don't declare a new scope
p0wn3d has joined #ruby
jkamenik has quit [Ping timeout: 252 seconds]
forced_request has quit [Ping timeout: 252 seconds]
Clooth has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
kennym has joined #ruby
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
thesheff17 has joined #ruby
anonymus_ has joined #ruby
shadoi has quit [Quit: Leaving.]
p0wn3d has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0wn3d_ has joined #ruby
p0wn3d_ is now known as p0wn3d
twoism has quit [Remote host closed the connection]
anonymuse has quit [Ping timeout: 245 seconds]
twoism has joined #ruby
bradhe has joined #ruby
enebo has quit [Quit: enebo]
snovak has quit [Ping timeout: 260 seconds]
kvirani has quit [Ping timeout: 276 seconds]
einarj has quit [Remote host closed the connection]
<apeiros> Lewix: are you talking about a template engine? like HAML?
<Lewix> apeiros: right on
<apeiros> Lewix: then what onewheelskyward had nothing to do with your question actually.
<apeiros> it just means that in HAML, you can do `= whateverrubycodeyouwant`
<apeiros> and it'll insert the result of that code there
<apeiros> e.g. `= "oh my god, it's #{Time.now}!".upcase`
<Lewix> apeiros: no. onewheelskyward answer was correct. However, my question was related to haml to some degree
maycon has joined #ruby
<apeiros> um…
nerdy has joined #ruby
mlpinit has quit [Remote host closed the connection]
<apeiros> Lewix: yeah. what I said then.
<Lewix> no
<apeiros> what onewheelskyward said is variable assignment
<apeiros> it has nothing to do with evaluation.
quoin has joined #ruby
<Lewix> apeiros: right
mansi has quit [Remote host closed the connection]
<Lewix> apeiros: I was curious to know what a double equal was in haml. a single equal is a given
anonymuse has joined #ruby
<apeiros> that's not what you asked, and neither is it what onewheelskyward replied to
clov3r has joined #ruby
mansi has joined #ruby
p0wn3d has quit [Remote host closed the connection]
<Lewix> apeiros: anyways...I got my answer. thanks. I asked what I needed to know
<apeiros> your link shows it actually pretty nicely.
<apeiros> *shrug*
sepp2k1 has joined #ruby
<Lewix> apeiros: I don't think you understand what I was trying to understand
sepp2k has quit [Ping timeout: 256 seconds]
mansi has quit [Read error: Connection reset by peer]
quoin has quit [Ping timeout: 260 seconds]
anonymus_ has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
baroquebobcat has quit [Quit: baroquebobcat]
duggiefresh has quit [Remote host closed the connection]
schaerli has joined #ruby
mansi has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
mansi has joined #ruby
rkrdo has quit [Remote host closed the connection]
ckampfe has joined #ruby
ckampfe has quit [Client Quit]
User has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Client Quit]
<apeiros> Lewix: I think you haven't yet understood. But I'm not going to waste my time.
thinkclay has quit [Quit: Leaving.]
<Lewix> apeiros: argh. dude
<Lewix> anyways..
zeade has quit [Quit: Leaving.]
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
schaerli has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 268 seconds]
Bira has joined #ruby
nisstyre has quit [Quit: Leaving]
rgbdev has joined #ruby
<Lewix> apeiros: just read what i asked over and read the link I provided, you'll notice I was quoting that person and I didnt understand what he was saying. It's not about haml. we're wasting time for nothing
Bira_ has joined #ruby
vDubG__ has joined #ruby
cads has quit [Ping timeout: 248 seconds]
sniffingcats has quit [Quit: Til rivido Idisti!]
rins has quit [Ping timeout: 260 seconds]
zarubin has quit [Ping timeout: 245 seconds]
alekst has quit [Quit: Leaving...]
mengu has joined #ruby
akonny has quit [Quit: akonny]
nisstyre has joined #ruby
Bira has quit [Ping timeout: 245 seconds]
ukd1_ has joined #ruby
yfeldblum has joined #ruby
bugsinlights has quit [Ping timeout: 260 seconds]
bugsinlights has joined #ruby
rafacv has joined #ruby
ukd1 has quit [Ping timeout: 245 seconds]
Bira_ has quit [Remote host closed the connection]
<Lewix> apeiros: my fault. I clearly didn't read it myself -) I misread it, for some reason i was reading it like this ' a single equals interpolates ruby code in ruby'. sometimes I should just shut it
* Lewix needs a break
ukd1_ has quit [Remote host closed the connection]
ukd1 has joined #ruby
vDubG__ has quit [Ping timeout: 252 seconds]
ukd1_ has joined #ruby
Bira has joined #ruby
AFKGeek has joined #ruby
Nogbit has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
workmad3 has quit [Ping timeout: 245 seconds]
p0wn3d has joined #ruby
ukd1 has quit [Ping timeout: 260 seconds]
quoin has joined #ruby
rickmasta has quit [Quit: Leaving...]
Monie has joined #ruby
araujo has quit [Read error: Connection reset by peer]
bricker_ has joined #ruby
pel_daniel has left #ruby [#ruby]
Es0teric has quit [Quit: Computer has gone to sleep.]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has quit [Remote host closed the connection]
rickmasta has joined #ruby
AFKGeek has quit [Quit: AFKGeek]
AFKGeek has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
stkowski has quit [Quit: stkowski]
ce_afk is now known as cescalante
cj3kim_ has joined #ruby
emergion has joined #ruby
thepumpkin has quit [Remote host closed the connection]
Bira has joined #ruby
ukd1_ has quit [Remote host closed the connection]
ukd1 has joined #ruby
m8 has quit [Quit: Sto andando via]
iliketurtles has joined #ruby
p0wn3d has quit [Remote host closed the connection]
thepumpkin has joined #ruby
p0wn3d has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
p0wn3d_ has joined #ruby
p0wn3d has quit [Remote host closed the connection]
p0wn3d_ is now known as p0wn3d
zz_taion809 is now known as taion809
AFKGeek has quit [Quit: AFKGeek]
emergion has quit [Quit: Computer has gone to sleep.]
dodosan has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
dankest has quit [Quit: dankest]
ixti has quit [Ping timeout: 245 seconds]
Nogbit has joined #ruby
banister is now known as banister`sleep
|jemc| has quit [Ping timeout: 264 seconds]
fourqq has quit [Ping timeout: 252 seconds]
fridim__ has joined #ruby
ixti has joined #ruby
mm__ has quit [Ping timeout: 252 seconds]
Stalkr_ has quit [Quit: Leaving...]
mmm has joined #ruby
i8igmac has quit [Quit: Leaving]
c0rn has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
nitish has quit [Remote host closed the connection]
cescalante is now known as ce_afk
siwica has joined #ruby
JumpMast3r has joined #ruby
brain_shim has joined #ruby
Ox6abe has quit [Remote host closed the connection]
bricker_ is now known as bricker`worek
bricker`worek is now known as bricker`work
Davey has quit [Quit: Computer has gone to sleep.]
ehc has quit [Quit: ehc]
Davey has joined #ruby
dankest has joined #ruby
r0bglees0n has quit [Read error: Connection reset by peer]
r0bglees0n has joined #ruby
randomautomator has quit [Ping timeout: 252 seconds]
BillCriswell has joined #ruby
emergion has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
nisstyre has quit [Ping timeout: 268 seconds]
mlpinit has joined #ruby