GOMADWarrior has quit [Read error: Connection timed out]
GOMADWarrior has joined #ruby
hesco has joined #ruby
marr has quit [Ping timeout: 256 seconds]
<sam113101>
so ruby 2.0 is faster than jruby, if I understand correctly?
johnnyfuchs has joined #ruby
<sam113101>
or only sometimes
<JesseH>
Benchmarks benchmarks benchmarks
<hesco>
I'm getting: /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError); checking for libxml/parser.h... no
mercwithamouth has joined #ruby
<hesco>
my ruby seems to have been installed using rvm a year ago.
<hesco>
Can rvm now be used to install this missing dependency? And if so, how?
randomau_ has quit [Read error: Connection reset by peer]
wyhaines has quit [Remote host closed the connection]
randomautomator has joined #ruby
GOMADWarrior has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
slainer6_ has joined #ruby
nickbender has joined #ruby
nickbend1r has joined #ruby
randomautomator has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
randomautomator has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
randomautomator has joined #ruby
himsin has quit [Ping timeout: 260 seconds]
Nahra has joined #ruby
Davey has joined #ruby
randomautomator has quit [Remote host closed the connection]
nickbend1r has quit [Ping timeout: 264 seconds]
nickbender has quit [Ping timeout: 264 seconds]
idletom has quit []
chessguy_ has quit [Remote host closed the connection]
randomautomator has joined #ruby
idkazuma has quit [Remote host closed the connection]
pioz has joined #ruby
brennanM_ has joined #ruby
huoxito has quit [Ping timeout: 258 seconds]
randomautomator has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
bradhe has quit [Remote host closed the connection]
randomautomator has quit [Read error: Connection reset by peer]
Proshot has quit [Quit: Leaving]
randomautomator has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
peta_ has quit [Quit: peta_]
dhruvasagar has joined #ruby
jonathanwallace has quit [Ping timeout: 255 seconds]
sambio has joined #ruby
randomautomator has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
randomautomator has quit [Read error: Connection reset by peer]
davetherat1 has joined #ruby
bradleyprice has joined #ruby
randomautomator has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
idkazuma has joined #ruby
chipotle_ has joined #ruby
randomautomator has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
randomautomator has quit [Remote host closed the connection]
huoxito has joined #ruby
chessguy has joined #ruby
kofno has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
nomenkun has joined #ruby
mneorr has quit [Remote host closed the connection]
baphled_ has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
Nisstyre-laptop has quit [Remote host closed the connection]
r0bby has joined #ruby
aki1 has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
mneorr has quit [Ping timeout: 240 seconds]
dougireton has joined #ruby
<aki1>
hi everyone, is there a way to programmatically create function argument lists? say i had a function foo(*args) and i wanted to generate foo(one, two, three). is there any way to go about that, or am i limited to passing in an array or hash?
Heero has quit [Ping timeout: 252 seconds]
<wintermu1e>
aki1: I'm not sure I'm understanding, what are you trying to acheive?
<banister`sleep>
aki1: not sure what u mean
<aki1>
say i've got a string "abcdef" and i split("") into a,b,c,d,e,f
danneu has quit [Ping timeout: 264 seconds]
<aki1>
is there any way to call a function foo(a,b,c,d,e,f), rather than foo([a,b,c,d,e,f]) ?
danneu has joined #ruby
<banister`sleep>
aki1: splat it
<banister`sleep>
aki1: foo(*array)
wedgex has joined #ruby
kofno has joined #ruby
<banister`sleep>
aki1: i.e array = [1,2,3]; foo(*array) is the same as doing foo(1, 2, 3)
<aki1>
wow perfect
<aki1>
thanks a bunch!
<banister`sleep>
np
nminus1 has quit [Ping timeout: 256 seconds]
nminus1 has joined #ruby
huoxito has quit [Remote host closed the connection]
eddiezane has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
indyrl has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
adamjleonard has joined #ruby
mercwithamouth has joined #ruby
huoxito has joined #ruby
linusoleander has quit [Quit: linusoleander]
wedgex has quit [Remote host closed the connection]
heliumsocket has joined #ruby
wallerdev has joined #ruby
wedgex has joined #ruby
<eddiezane>
Anyone ever have a problem with sinatra and class variables working locally but not on heroku?
AlSquirikou has quit [Quit: This computer has gone to sleep]
AlSquire has joined #ruby
chandankumar has joined #ruby
Hobogrammer has joined #ruby
adamjleonard has quit [Quit: Leaving...]
wintermu1e has quit [Ping timeout: 252 seconds]
wedgex has quit [Ping timeout: 256 seconds]
Hanmac1 has joined #ruby
miso1337 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Bry8Star_ has quit [Ping timeout: 276 seconds]
Bry8Star has joined #ruby
et09 has joined #ruby
<et09>
how do i pipe a string into a process opened with IO.popen?
<et09>
it's not good enough to use the pipe in the open call
<et09>
i.e. IO.popen("echo sdgsdg | dzen2")
idkazuma has quit [Remote host closed the connection]
mneorr has joined #ruby
dougireton has quit [Quit: Leaving.]
heliumsocket has quit [Quit: heliumsocket]
chrishunt has quit [Quit: ZzZzZz...]
pandawarrior has quit [Quit: Leaving.]
chrishunt has joined #ruby
eddiezane has left #ruby ["WeeChat 0.4.0"]
pandawarrior has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
reset has joined #ruby
pandawarrior has quit [Client Quit]
mneorr has quit [Ping timeout: 252 seconds]
wintermu1e has joined #ruby
tylersmith has joined #ruby
chipotle_ has quit [Quit: cya]
<hesco>
Trying this question again after nearly two hours. I don't use ruby much, just a handful of tools that are built on it. running this: `vagrant plugin install vagrant-rackspace ` gets me this: /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError); checking for libxml/parser.h... no my ruby seems to have bee
splittingred has joined #ruby
kofno has quit [Remote host closed the connection]
wreckimnaked has quit [Ping timeout: 276 seconds]
SCommette has joined #ruby
nickbend1r has joined #ruby
nickbender has joined #ruby
pbertain has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
emmanuelux has quit [Quit: emmanuelux]
xkickflip_ has quit [Quit: h..hi]
momomomomo has quit [Quit: momomomomo]
Faris9 has quit [Ping timeout: 276 seconds]
johnnyfuchs has quit [Remote host closed the connection]
hiyakashi has quit [Quit: お前は知りすぎた]
dhruvasagar has quit [Ping timeout: 264 seconds]
love_color_text has joined #ruby
<bnagy>
et09: look up popen3
<bnagy>
basically blah.popen3 {|in,out,err| in.write "hi"} more or less
security has joined #ruby
kofno has joined #ruby
megha has quit [Ping timeout: 240 seconds]
kofno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
sayan has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
jonathanwallace has joined #ruby
hogeo has joined #ruby
GreenPlastik has joined #ruby
Regis__ has joined #ruby
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
GOMADWarrior has quit [Ping timeout: 255 seconds]
GOMADWarrior has joined #ruby
johnkary has quit [Quit: @johnkary]
iamvery has joined #ruby
r0bby is now known as robbyoconnor
iamvery has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 276 seconds]
Regis__ has quit [Ping timeout: 256 seconds]
kofno has quit [Ping timeout: 258 seconds]
xkickflip_ has joined #ruby
benlieb has quit [Quit: benlieb]
shevy has joined #ruby
jhn has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
et09 has quit [Quit: Lost terminal]
SCommette has quit [Quit: SCommette]
r0bby has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 258 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
F1skr has quit [Quit: WeeChat 0.4.0]
dhruvasagar has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
chrishough has joined #ruby
heftig has joined #ruby
chandankumar has quit [Quit: Leaving]
mneorr has joined #ruby
robottin1 has quit [Quit: WeeChat 0.4.0]
kofno has joined #ruby
momomomomo has joined #ruby
sayan has joined #ruby
chandankumar has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
security is now known as megha
miso1337 has quit [Quit: afk]
mneorr has quit [Ping timeout: 264 seconds]
dougireton has joined #ruby
brennanM_ has quit [Remote host closed the connection]
miso1337 has joined #ruby
kofno has quit [Ping timeout: 258 seconds]
momomomomo has quit [Quit: brb]
miso1337 has quit [Client Quit]
aapzak has quit [Ping timeout: 255 seconds]
miso1337 has joined #ruby
GreenPlastik has quit [Remote host closed the connection]
aapzak has joined #ruby
dougireton has quit [Ping timeout: 252 seconds]
Heero has quit [Read error: Connection reset by peer]
tk_ has joined #ruby
wintermu1e has quit [Remote host closed the connection]
r0bby is now known as robbyoconnor
niceguy1234 has quit [Read error: Operation timed out]
slainer6_ has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
GOMADWarrior has quit [Ping timeout: 252 seconds]
arubin has joined #ruby
sayan has quit [Ping timeout: 258 seconds]
etcetera has joined #ruby
dougireton has joined #ruby
<hesco>
found it: rvm pkg install libxml2 --verify-downloads 1
r0bby has joined #ruby
bradleyp_ has joined #ruby
okinomo has joined #ruby
GreenPlastik has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
bradleyprice has quit [Ping timeout: 276 seconds]
ikea_meatballs has left #ruby [#ruby]
postmodern has joined #ruby
akashj87 has joined #ruby
beneggett has joined #ruby
lethjakman has joined #ruby
josh_ has joined #ruby
josh_ is now known as rethunk
centiped_ has joined #ruby
kuzushi__ has quit [Quit: Leaving]
miso1337 has quit [Quit: afk]
centipedefarmer has quit [Read error: Connection reset by peer]
<rickruby>
how do you display the rows of a matrix on separate lines ? for example, I use: m = Matrix.build(2) to create a 2x2 matrix
roadt has joined #ruby
<rickruby>
so I'd like to display something like
<rickruby>
0 0
<rickruby>
0 0
<rickruby>
but haven't been able to figure out how..
freakazoid0223 has quit [Ping timeout: 258 seconds]
nomenkun has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
heliumsocket has joined #ruby
sambio has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 260 seconds]
love_color_text has joined #ruby
bhaarat has joined #ruby
r0bby_ has joined #ruby
banister`sleep has quit [Remote host closed the connection]
r0bby has quit [Ping timeout: 252 seconds]
xcv has quit [Remote host closed the connection]
freeayu has joined #ruby
zaiste has joined #ruby
zaiste has left #ruby [#ruby]
GreenPlastik has quit [Remote host closed the connection]
r0bby_ is now known as robbyoconnor
mahmoudimus has joined #ruby
kunday has joined #ruby
love_color_text has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
love_color_text has joined #ruby
d11wtq has quit [Ping timeout: 256 seconds]
hemanth has joined #ruby
d11wtq has joined #ruby
slainer68 has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
huoxito has quit [Ping timeout: 258 seconds]
jeremywrowe has quit [Quit: leaving]
johnnyfuchs has joined #ruby
sambio is now known as cero
mahmoudimus has quit [Quit: Computer has gone to sleep.]
shevy has quit [Ping timeout: 248 seconds]
chrishunt has joined #ruby
<hesco>
Can I get some guidance on how to resolve this please? I'm seeing ERRORS when I run `rvm pkg install libxml2 --verify-downloads 1`, which I posted here: https://gist.github.com/anonymous/5428480
gorgor has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 258 seconds]
alex__c2022 has joined #ruby
nminus1 has quit [Ping timeout: 260 seconds]
dougireton has joined #ruby
Pochacco has joined #ruby
dougireton has left #ruby [#ruby]
celinedior has joined #ruby
alex__c2022 has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
centiped_ has quit [Remote host closed the connection]
miso1337 has joined #ruby
droppedonmyhead has quit [Ping timeout: 264 seconds]
droppedonmyhead_ has joined #ruby
nminus1 has joined #ruby
kunday has quit [Quit: Leaving...]
nickbend1r has quit [Ping timeout: 276 seconds]
nickbender has quit [Ping timeout: 276 seconds]
agarie has joined #ruby
nomenkun has quit [Ping timeout: 255 seconds]
sayan has joined #ruby
<hesco>
I think I may be dealing with missing kernel headers, testing now
shevy has joined #ruby
cero is now known as himnoNacionalArg
moos3 has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
mercwithamouth has quit [Ping timeout: 245 seconds]
splittingred has quit [Quit: splittingred]
sayan has quit [Quit: Leaving]
jamesfung14 has joined #ruby
hiyakashi has joined #ruby
himnoNacionalArg is now known as sambio
danneu has quit [Ping timeout: 252 seconds]
tevio has joined #ruby
osvico has quit [Ping timeout: 256 seconds]
etcetera has quit []
danneu has joined #ruby
buibex has joined #ruby
nadirvardar has joined #ruby
mockra has joined #ruby
ioNull has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
guiambros has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
jovy88 has joined #ruby
ttt has joined #ruby
ttt_ has joined #ruby
ttt_ has quit [Remote host closed the connection]
ttt has quit [Ping timeout: 276 seconds]
thone has joined #ruby
lethjakm1 has joined #ruby
lethjakman has quit [Ping timeout: 264 seconds]
r0bby has joined #ruby
thone_ has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
robbyoconnor has quit [Ping timeout: 252 seconds]
r0bby_ has joined #ruby
hemanth has joined #ruby
SCommette has quit [Quit: SCommette]
akashj87 has quit [Ping timeout: 240 seconds]
r0bby_ is now known as robbyoconnor
r0bby has quit [Ping timeout: 252 seconds]
zmanfx has quit [Ping timeout: 245 seconds]
nickbend1r has joined #ruby
nickbender has joined #ruby
generali_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
zmanfx has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
nickbend1r has quit [Ping timeout: 264 seconds]
nickbender has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
teh_gh0d has joined #ruby
<unstable>
I keep getting this cannot load such file -- rest-client, I have "require 'rest-client'" in the top of the controller.. why won't it load?
Hanmac1 has quit [Ping timeout: 258 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
bradleyprice has joined #ruby
<unstable>
I have done gem install rest-client
<unstable>
If I just do require 'rest-client' in a file.rb, it works file.
WarlockoftheWeb has joined #ruby
aytch has joined #ruby
zmanfx has quit [Read error: Connection reset by peer]
r0bby has joined #ruby
nickbend1r has joined #ruby
nickbender has joined #ruby
robbyoconnor has quit [Ping timeout: 258 seconds]
mockra has joined #ruby
zmanfx has joined #ruby
charliesome has joined #ruby
nickbend1r has quit [Ping timeout: 260 seconds]
nickbender has quit [Ping timeout: 260 seconds]
mockra has quit [Ping timeout: 264 seconds]
buibex has quit [Remote host closed the connection]
h4mz1d has joined #ruby
chrishunt has quit [Read error: Connection reset by peer]
nbjahan has joined #ruby
sayan has joined #ruby
bhaarat has quit [Quit: bhaarat]
wael has joined #ruby
agarie has quit [Ping timeout: 276 seconds]
nari has joined #ruby
chrishunt has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
kunday has joined #ruby
browndawg has joined #ruby
ananthakumaran has joined #ruby
browndawg has left #ruby [#ruby]
nbjahan_ has joined #ruby
jamesfung14 has quit [Ping timeout: 258 seconds]
nbjahan has quit [Ping timeout: 252 seconds]
nbjahan_ is now known as nbjahan
nbjahan has quit [Remote host closed the connection]
agarie has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
akashj87 has joined #ruby
brianpWins has joined #ruby
heathjs has joined #ruby
yamez has quit [Remote host closed the connection]
heath has quit [Ping timeout: 245 seconds]
mantovani has quit [Ping timeout: 258 seconds]
Hanmac1 has joined #ruby
mantovani has joined #ruby
bradleyprice has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 258 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
heathjs is now known as heath
acriax has joined #ruby
kunday has quit [Read error: Connection reset by peer]
<hesco>
This seems to have resolved that issue: ~/.rvm/usr/include$ ln -s /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm asm ; only to leave me with the next one.
<acriax>
Hi, is it possible to set irb up so it always runs a command, like "require 'awesome_print'" each time you start it?
<otters>
~/.irbrc
<acriax>
thanks otters
hiyakashi has quit [Ping timeout: 258 seconds]
jamesfung14 has joined #ruby
momomomomo has joined #ruby
shock_one has joined #ruby
viuo has quit [Read error: Operation timed out]
ashka` is now known as ashka
ashka has quit [Changing host]
ashka has joined #ruby
s2013 has quit []
<charliesome>
acriax: use pry
chrishunt has quit [Quit: ZzZzZz...]
SCommette has joined #ruby
Hanmac has joined #ruby
viuo has joined #ruby
Hanmac1 has quit [Ping timeout: 256 seconds]
shock_one has quit [Read error: Connection reset by peer]
kunday has joined #ruby
agarie_ has joined #ruby
wael has quit [Quit: wael]
ttt has joined #ruby
agarie has quit [Ping timeout: 276 seconds]
yashshah has joined #ruby
ehaliewicz has quit [Read error: No route to host]
havenwood has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
hamed_r has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
angusiguess has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
V8Energy has quit [Ping timeout: 260 seconds]
nickbender has joined #ruby
nickbend1r has joined #ruby
kunday has quit [Read error: No route to host]
browndawg has joined #ruby
happydude has joined #ruby
mockra has joined #ruby
nomenkun has joined #ruby
roadt has quit [Ping timeout: 258 seconds]
nickbend1r has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
happydude has quit [Client Quit]
happydude has joined #ruby
nickbender has quit [Ping timeout: 256 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
nadirvardar has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 276 seconds]
akashj87 has quit [Ping timeout: 240 seconds]
araujo has quit [Quit: Leaving]
schiang has joined #ruby
akashj87 has joined #ruby
idkazuma has joined #ruby
akashj87 has quit [Read error: Connection reset by peer]
mockra has quit [Ping timeout: 260 seconds]
hemanth has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
SCommette has quit [Quit: SCommette]
akashj87 has joined #ruby
danneu1 has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
happydude has quit [Quit: Leaving]
Proshot has joined #ruby
danneu1 has quit [Client Quit]
lahwran is now known as lahwran-
lahwran- is now known as lahwran
danneu has quit [Ping timeout: 276 seconds]
WarlockoftheWeb has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
momomomomo has quit [Quit: momomomomo]
<rickruby>
i've been working on a multiplication table program for hours.... can't figure this out
idkazuma has quit [Remote host closed the connection]
peta_ has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
baphled has joined #ruby
arya__ is now known as arya
niceguyjames has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 255 seconds]
girija has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
kofno has quit [Remote host closed the connection]
<rton>
Guys, Eloquent Ruby good book for beginner?
emergion has joined #ruby
idkazuma has joined #ruby
mneorr has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Faris9 has quit [Ping timeout: 258 seconds]
<pagios>
how can i add a small authentication before sending commands to sinattra?
browndawg has joined #ruby
Bry8Star_ has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
WarlockoftheWeb has quit [Read error: Connection reset by peer]
WarlockoftheWeb has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
arya has joined #ruby
heftig has joined #ruby
sayan has quit [Quit: Leaving]
emmanuelux has joined #ruby
thone has joined #ruby
rton has left #ruby [#ruby]
pioz has quit [Quit: This computer has gone to sleep]
k610 has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
bhaarat has joined #ruby
emmanuelux has quit [Max SendQ exceeded]
kofno has joined #ruby
nkts has quit [Quit: -]
bhaarat has quit [Client Quit]
BizarreCake has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
chandankumar_ has quit [Quit: Leaving]
swex has quit [Remote host closed the connection]
waxjar_ has quit [Read error: Connection reset by peer]
progbyperm has joined #ruby
workmad3 has joined #ruby
swex has joined #ruby
kofno has quit [Remote host closed the connection]
tevio has quit [Remote host closed the connection]
Faris9 has joined #ruby
workmad3 has quit [Read error: Operation timed out]
tevio has joined #ruby
niceguyjames has joined #ruby
waxjar has joined #ruby
Hien has quit [Quit: leaving]
Kudos has quit [Ping timeout: 248 seconds]
vikhyat_ has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Operation timed out]
niceguyjames has quit [Client Quit]
dhruvasagar has joined #ruby
codenapper has quit [Quit: Leaving...]
Hien has joined #ruby
vlad_starkov has joined #ruby
penzur has joined #ruby
kelabot has quit [Remote host closed the connection]
happydude has quit [Remote host closed the connection]
codenapper has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
thone has quit [Ping timeout: 264 seconds]
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has joined #ruby
jonathanwallace has joined #ruby
teddyp1cker has joined #ruby
arya has quit [Ping timeout: 248 seconds]
skattyadz has joined #ruby
vlad_starkov has joined #ruby
<pandawarrior>
hey all. my sql is pretty iffy any recommendations for a good solid book?
vlad_starkov has quit [Remote host closed the connection]
<pandawarrior>
they are loads out there but would like you opinion
<pandawarrior>
cheers
vlad_starkov has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
gyre008 has joined #ruby
monkegjinni has joined #ruby
psyprus has joined #ruby
angusiguess has joined #ruby
arya has joined #ruby
codenapper has quit [Quit: Leaving...]
kofno has joined #ruby
teddyp1cker has left #ruby ["Konversation terminated!"]
Hanmac1 has joined #ruby
gyre007 has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
<Spooner>
pandawarrior, Don't bother. Use an ORM instead :D
angusiguess has quit [Ping timeout: 256 seconds]
mockra has joined #ruby
<pandawarrior>
Spooner: I was thinking that but before i learn orms shouldn't i get a good grounding in sql?
<pandawarrior>
also sometimes the orm can't do what i want so, then i have to do the sql by hand
<pandawarrior>
and i super suck at that :S
idkazuma has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
akashj87_ has joined #ruby
osvico has joined #ruby
<Spooner>
pandawarrior, This is true. A lot of people say you should learn SQL before you use an ORM (or avoid them entirely because they prove you aren't leet enough :D).
mockra has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
<pandawarrior>
exactly it's just another thing to put on the ever expanding list of things to learn!
psyprus has quit [Remote host closed the connection]
<gerep>
MrZYX I'm gonna try that =)
trautwein has joined #ruby
<charliesome>
or ^.+?\t
<charliesome>
which will also match "Super game\t"
<hesco>
Can I get some guidance on how to resolve this please? I'm seeing ERRORS when I run `rvm pkg install libxml2 --verify-downloads 1`, which I posted here: https://gist.github.com/anonymous/5428480
<charliesome>
gerep: ^
<gerep>
charliesome: thanks
<MrZYX>
hesco: sounds like a missing include or something like that, you might wanna try asking in #rvm
<hesco>
Thanks MrZYX: will try that.
goganchic has joined #ruby
arya has quit [Ping timeout: 248 seconds]
vlad_sta_ has joined #ruby
gaahrdner has joined #ruby
javos has joined #ruby
chandankumar has quit [Quit: Leaving]
<MisterPostIT>
hi all. anyone know any must have books on ruby?
arya has joined #ruby
thone has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
huttan has quit [Ping timeout: 245 seconds]
freeayu has quit [Read error: Connection reset by peer]
<MisterPostIT>
okay - i'll look into then. thanks a lot!
<pandawarrior>
after that there's also eloquent ruby, design pattens in ruby and the 'poodr' book
girija has joined #ruby
Hanmac1 has joined #ruby
Faris9 has quit [Ping timeout: 252 seconds]
<pandawarrior>
but the pickaxe book is a good grounding book
<Spooner>
I like the pickaxe a lot, but a lot of the stdlib documentation in it is very easily available online.
centipedefarmer has joined #ruby
<Spooner>
Or from something like pry on the command line.
<pagios>
anyone familiar with sinatra authentication?
<AndChat|>
Imo "the Ruby programming language" is better than pickaxe
Hanmac has quit [Ping timeout: 256 seconds]
<pagios>
i am trying to prompt the browser for some user/pass to authenticate on sinatra: http://pastie.org/7681981
<pagios>
for some reason i am not getting the prompt in the browser
<MisterPostIT>
okay, yeah - thats what I'm looking for at the moment… I'll read that and then go from there. thanks Spooner - i just really prefer to have a good book handy at all times - especially in the beginning. later on the sources you point out will do just fine i am sure.
psyprus has joined #ruby
<MisterPostIT>
thanks AndChat| - i'll check that out as well
project2501b has quit [Quit: Leaving...]
martinklepsch has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
<pandawarrior>
<randomness_alert> if anyone enjoys listening to trance, dance etc whilst coding. georgefm.nz has a really good online live station </randomness_alert>
monkegjinni has quit [Remote host closed the connection]
megha has quit [Quit: WeeChat 0.4.0]
survili has joined #ruby
baba has joined #ruby
<survili>
hi, I was wondering why ruby(mri) has not intermiddiate state, where after parsing it's saved in a bytecode format so when it's ran next time, it will be faster(skipping parsing)
rton has left #ruby [#ruby]
monkegjinni has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
wargasm1 has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<Spooner>
survili, Because parsing to bytecode doesn't really take that long (I believe the Python parser, for example, is really slow). The main advantage of being able to create .rbc files would be the ability to not ship source. If you want bytecode, use jruby or one of the other implementations.
visof has quit [Ping timeout: 256 seconds]
<Spooner>
And bytecode is easy to reverse engineer anyway (just lose comments really).
<survili>
Spooner, yes but for sure it would be faster than parsing. also yes, it would make file smaller and you won't reveal the source code. so it's weird to me there is no such option for MRI
GOMADWarrior has joined #ruby
<Spooner>
I don't know really why it isn't available yet though, since YARV uses bytecode internally. I guess other things have been more important (like mruby).
philcrissman has quit [Remote host closed the connection]
<survili>
Spooner, mruby is cool although i found it useless for now, as I can't do IO with it. I was considering using it inside our C# project so I could do some stuff in ruby. And although people were skeptical here, I managed to run mruby on windowz :)
<Spooner>
survili, Apparently, Ruby 2.0 has the ability to cache bytecode, but it isn't enabled. It might get enabled in 2.1 or later then, when they have the problems ironed out? *shrugs*
rippa has joined #ruby
<Spooner>
survili, People here are skeptical that you can boot windows successfully ;)
<havenwood>
Spooner: haha
<survili>
lol
<Hanmac1>
"*weeh* someone could read my code *weeh*" if thats your only problem than you choice the wrong programming language and maybe the wrong OS too
wesside has joined #ruby
Hanmac1 is now known as Hanmac
jhn has joined #ruby
survili has quit [Quit: Leaving]
<Spooner>
I find that most people seeking to obfuscate their code is because they are embarrassed by it, not because they know it is going to get stolen :D
vlad_starkov has joined #ruby
* havenwood
rushes off to bytecode compile all his Github projects!
<Hanmac>
when i want to obfuscate i programm in evil-mode ;P
<MrZYX>
dinoex: $sum makes me suspicious, you should really really really rarely need global variables
Hanmac has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
adambeynon has joined #ruby
xcv has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
kofno has quit [Remote host closed the connection]
RagingDave has joined #ruby
<dinoex>
Well, some counters are spread opver different classes
Davey has joined #ruby
vlad_sta_ has quit [Ping timeout: 272 seconds]
<MrZYX>
I guess I'd still prefer a singleton or a static class personally
Amfy has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
baba has quit [Ping timeout: 240 seconds]
<Amfy>
How to exec i.e git, whatever shell command in subfolder? Open3 isn't working as I expect
Mattix has joined #ruby
mneorr_ has joined #ruby
<dinoex>
Spooner, it fails. in `count_device': undefined method `+' for nil:NilClass (NoMethodError)
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
pioz has joined #ruby
gaahrdner has joined #ruby
solidoodlesuppor has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
pioz has quit [Client Quit]
browndawg has quit [Ping timeout: 272 seconds]
baba has joined #ruby
danslo has quit [Quit: danslo]
Gabri has joined #ruby
<dinoex>
should i set sum.default = 0 ?#
sayan has quit [Max SendQ exceeded]
gaahrdner has quit [Ping timeout: 252 seconds]
ariedler has joined #ruby
browndawg has joined #ruby
alexwh has quit [Quit: Quitting]
angusiguess has joined #ruby
<havenwood>
dinoex: Or: Hash.new { 0 }
alexwh has joined #ruby
thone has quit [Read error: Operation timed out]
<havenwood>
dinoex: Oh, nvm. I didn't realize hash arg and block both set default.
alexdoom has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
alexdoom has joined #ruby
Scriptor has joined #ruby
alexwh has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 256 seconds]
alexwh has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
<dinoex>
havenwood, thanks it works.
monkegjinni has quit [Remote host closed the connection]
kleinerdrache has quit [Ping timeout: 276 seconds]
gyre007 has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
mercwithamouth has joined #ruby
braoru has quit [Ping timeout: 252 seconds]
gyre007 has quit [Ping timeout: 256 seconds]
k610 has quit [Ping timeout: 246 seconds]
tk_ has quit [Quit: ばいばい]
arya has quit [Ping timeout: 248 seconds]
nminus1 has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
hogeo has quit [Remote host closed the connection]
nadirvardar has joined #ruby
wallerdev has quit [Quit: wallerdev]
TheHermit has joined #ruby
monkegjinni has joined #ruby
newUser1234 has joined #ruby
arya has joined #ruby
kleinerdrache has joined #ruby
luckyruby has joined #ruby
arya has quit [Ping timeout: 248 seconds]
guiambros has quit [Quit: Leaving]
Proshot has quit [Quit: Leaving]
love_color_text has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Remote host closed the connection]
arya has joined #ruby
codenapper has joined #ruby
wreckimnaked has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
r0bgleeson has joined #ruby
<Spooner>
havenwood, dinoex Hash.new(0) and Hash.new {|k, v| k[v]=0 } are equivalent, but the former doesn't work well with mutable objects (e.g. Arrays).
guiambros has joined #ruby
<Spooner>
dinoex, h = Hash.new(0); h[:f] += 1; h #=> { f: 1 }
trautwein has quit [Ping timeout: 252 seconds]
codenapper has quit [Read error: Connection reset by peer]
rton has joined #ruby
newUser1234 has joined #ruby
mockra has joined #ruby
bradhe has joined #ruby
<Hanmac1>
but the second one does not work with marshal
Hanmac1 is now known as Hanmac
vlad_sta_ has joined #ruby
bothra has quit [Read error: Connection reset by peer]
bothra has joined #ruby
rton has left #ruby [#ruby]
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
mockra has quit [Ping timeout: 264 seconds]
bhaarat has quit [Quit: bhaarat]
sambao21 has joined #ruby
swex_ has joined #ruby
Bry8Star has joined #ruby
swex has quit [Ping timeout: 258 seconds]
newUser1234 has quit [Remote host closed the connection]
Bry8Star_ has quit [Ping timeout: 276 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
thone has joined #ruby
bhaarat has joined #ruby
mercwithamouth has joined #ruby
bhaarat has quit [Client Quit]
alexdoom has quit [Changing host]
alexdoom has joined #ruby
newUser1234 has joined #ruby
guiambros has quit [Quit: Leaving]
thone has quit [Read error: Operation timed out]
rton has joined #ruby
<unstable>
In file.rb, if I require 'addressable/uri' then use that gem... it works fine. Though if I do require 'addressable/uri' at the top of a controller.. it says cannot load such file -- addressable/uri. Even if I put gem 'addressable' in the Gemfile and bundle install.
generalissimo has joined #ruby
ariedler has quit [Remote host closed the connection]
forlin has joined #ruby
hiyakashi has quit [Quit: お前は知りすぎた]
thone has joined #ruby
guiambros has joined #ruby
subbyyy has joined #ruby
wallerdev has joined #ruby
<Spooner>
unstable, You maybe need to put: gem "addressable", require: "addressable/uri"
<Spooner>
Sounds like a Rails-specific problem though.
<unstable>
Spooner: That's what I've done.
adamjleonard has joined #ruby
<Spooner>
unstable, You only need to specify the :require option if you are using Bundler.require :default though.
h8R has quit [Ping timeout: 258 seconds]
* Spooner
shrugs.
<Spooner>
The way Rails manages stuff is nothing short of black magic :D
zz_Inoperable has joined #ruby
adamjleonard has quit [Client Quit]
forlin has quit [Remote host closed the connection]
chandankumar has joined #ruby
vlad_sta_ has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
marr has joined #ruby
Regis__ has joined #ruby
mave_fnet has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby
newUser1234 has quit [Remote host closed the connection]
arya has joined #ruby
tommyvyo has joined #ruby
cherrypeel has joined #ruby
GOMADWarrior has quit [Ping timeout: 272 seconds]
newUser1234 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
newUser1234 has quit [Remote host closed the connection]
chrishunt has joined #ruby
<spike|spiegel>
no way
johnnyfuchs has joined #ruby
newUser1234 has joined #ruby
<unstable>
spike|spiegel: Now way what?
wreckimnaked has quit [Ping timeout: 240 seconds]
<spike|spiegel>
no way it's "black magic"
pcarrier has quit [Ping timeout: 255 seconds]
<unstable>
I can require 'rest-client' at the top of the controller, and that works fine.
<Hanmac>
spike|spiegel is right, compared to what i write is rails like butterfly and flower stuff ;P
newUser1234 has quit [Remote host closed the connection]
progbyperm has quit [Read error: Connection reset by peer]
pcarrier has joined #ruby
AndChat| has quit [Ping timeout: 246 seconds]
wesside has joined #ruby
<havenwood>
unstable: Addressable doesn't have a lib/addressable.rb but, like most gems, rest-client does have a lib/rest-client.rb.
kelabot has quit [Remote host closed the connection]
<havenwood>
unstable: Curious if Rails loading (i know nothing about it) is choking on that for some reason? Anyone in #RubyOnRails run into it?
<unstable>
havenwood: I see. So rails looks in /home/john/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/rest-client.rb, so that loads fine. For addressable there is this file: /home/john/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/addressable-2.3.4/lib/addressable/uri.rb
teh_gh0d has quit [Quit: Leaving]
ariedler has quit [Remote host closed the connection]
<unstable>
havenwood: ahh, #rubyonrails, I went to #rails which has a tiny fraction of the people and there has been barely any activity for a day.
<unstable>
That's a helpful tip. heh
tbrock_ has joined #ruby
wreckimnaked has joined #ruby
rethunk has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
<r0bgleeson>
unstable: there's also another ruby channel called #ruby-lang just to be super confusing :p
lkba has quit [Ping timeout: 260 seconds]
<r0bgleeson>
(it's the official channel)
binaryplease has quit [Quit: WeeChat 0.4.0]
ariedler has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
<r0bgleeson>
unstable: bundler should handle the require for you. why are you trying to require it yourself?
sepp2k has joined #ruby
arubin has joined #ruby
nveselinov has joined #ruby
<unstable>
r0bgleeson: Well if I do gem 'oauth' in Gemfile, then do bundle install; Then I load my rails page for the controller, it says uninitialized constant TacosController::OAuth
pilojo has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
<pilojo>
Uno.rb:20:in `join': undefined method `include?' for nil:NilClass (NoMethodError)
<pilojo>
i declared the array, but it won't let me use the functions for arrays
<r0bgleeson>
unstable: huh, that's super weird.
Mon_Ouie has joined #ruby
<r0bgleeson>
unstable: how do you require oauth?
<unstable>
r0bgleeson: Well in file.rb, it works fine. I can just do require 'oauth'. For rails, I have gem 'oauth' in my assets, then I bundle install
penzur has joined #ruby
penzur has left #ruby [#ruby]
<r0bgleeson>
in your assets?
<r0bgleeson>
why?
alexwh has left #ruby [#ruby]
<unstable>
r0bgleeson: Where should it be? If I do gem 'oauth' globally at the top of Gemfile, I get the same thing.
<unstable>
pilojo: You're passing nil somewhere.
<unstable>
pilojo: Try doing puts nick and puts @joinlist
ariedler has quit [Remote host closed the connection]
<canton7>
pilojo, I suspect you cut down your sample a lot for the purpose of that pastie, and lost what was actually wrong in the process
wreckimnaked has quit [Ping timeout: 256 seconds]
<pilojo>
canton7: yes, i wasn't about to paste a few hundred lines.
johnmilton has joined #ruby
<canton7>
aye, it's a balance. people do pastie that much
AlSquirrel has joined #ruby
<canton7>
as it stands, though, your pastie is too little :P
vikhyat has quit [Remote host closed the connection]
<pilojo>
there's nothing else that -SHOULD- affect it, though
<pilojo>
that's the ONLY place those variables exist
<LennyLinux>
like that, @joinlist should be a class instance variable... Not accessible from object instance methods
<LennyLinux>
Am i right?
aces23up has quit [Ping timeout: 245 seconds]
carlsednaoui has joined #ruby
user__ has quit [Ping timeout: 272 seconds]
<LennyLinux>
If you make @@joinlist then it'll be accessible
<pilojo>
i only ever have one instance up at a time, so i don't see why it should be @@
<LennyLinux>
Because like that it'll be accessible...
AlSquire has quit [Ping timeout: 252 seconds]
markalanevans has quit [Quit: markalanevans]
aces1up has joined #ruby
h8R has joined #ruby
markalanevans has joined #ruby
marr has quit [Ping timeout: 264 seconds]
markalanevans has quit [Client Quit]
<MrZYX>
pilojo: LennyLinux is right, self outside and inside a method definition is different, so is the @joinlist outside not the same @joinlist inside, use the initialize function to bootstrap your instance variables instead
<MrZYX>
eh, method, not function ;P
rethunk has joined #ruby
chandankumar has quit [Ping timeout: 264 seconds]
three18ti has quit [Ping timeout: 240 seconds]
AlSquirikou has joined #ruby
kofno has joined #ruby
Morkel has joined #ruby
<pilojo>
well, changing joinlist to a class instance variable did nothing
<mose>
heya boys and girls
AlSquirrel has quit [Ping timeout: 272 seconds]
carlsednaoui has quit [Remote host closed the connection]
<LennyLinux>
pilojo: @var <- this is a class instance variable, @@var this is a class variable...
luckyruby has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<LennyLinux>
But, you should do what MrZYX has said
<Mon_Ouie>
MrZYX: My guess is that people on #ruby will tell him he won't get a proper answer there!
<Spooner>
That is so NSFW!
LongLiveBacon has joined #ruby
<Mon_Ouie>
And same on #python
robottinosino has quit [Quit: WeeChat 0.4.0]
<MrZYX>
maybe he should ask in #php or #java?
robottinosino has joined #ruby
<Hanmac1>
mose i have seen topaz ... an ruby interpreter in python ;P
Hanmac1 is now known as Hanmac
<Spooner>
Can the people in #php read a complex question like that? :D
nadirvardar has joined #ruby
GOMADWarrior has quit [Ping timeout: 252 seconds]
<MrZYX>
Spooner: shall we try?
<Spooner>
MrZYX, Er, no.
<Mon_Ouie>
I hope so. How could they understand PHP inconsistencies otherwise? ;)
<Spooner>
True. Anyone who can write PHP is a better coder than I am.
<Spooner>
*good PHP
* dross
still does PHP coding
AlSquire has joined #ruby
<dross>
for a nominal fee
<dross>
:)
<dross>
if it's PHP, I mark up the price
<dross>
;D
<Spooner>
I'd do it for $400/hour. No problem/
AlSquirrel has quit [Ping timeout: 240 seconds]
blacktulip has quit [Remote host closed the connection]
blacktulip has joined #ruby
jamesfung14 has joined #ruby
robottinosino has quit [Client Quit]
pothibo has joined #ruby
bklane has quit [Ping timeout: 248 seconds]
AlSquirrel has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
marcdel has quit [Quit: marcdel]
matchaw_ has joined #ruby
AlSquire has quit [Ping timeout: 248 seconds]
AlSquirrel has quit [Client Quit]
matchaw has quit [Ping timeout: 272 seconds]
yshh_ has quit [Read error: Connection reset by peer]
matchaw_ has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
akashj87__ has joined #ruby
fryguy has quit [Read error: Connection reset by peer]
yshh has joined #ruby
adambeynon has joined #ruby
fryguy has joined #ruby
momomomomo_ has joined #ruby
corentin has joined #ruby
<corentin>
hi
<corentin>
hi
<jacklk>
corentin: hi
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
<jacklk>
corentin: hi
<corentin>
is it appropriate to ask questions about building ruby?
guillehorno has joined #ruby
akashj87 has quit [Ping timeout: 240 seconds]
braoru has joined #ruby
guillehorno has quit [Quit: guillehorno]
<corentin>
i'm trying to cross-compile ruby 1.9.3 for arm, but compilation fails with this error message: ./ext/extmk.rb:202:in `extmake': undefined method `prepend' for "Failed to configure fiddle. It will not be installed.\n":String (NoMethodError)
tylersmith has joined #ruby
matchaw has joined #ruby
akashj87_ has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
predator217 has quit [Ping timeout: 260 seconds]
matchaw has quit [Remote host closed the connection]
akashj87_ has quit [Client Quit]
predator117 has joined #ruby
workmad3 has joined #ruby
luckyruby has joined #ruby
bnagy has joined #ruby
akashj87__ has quit [Ping timeout: 272 seconds]
akashj87 has joined #ruby
generalissimo has quit [Remote host closed the connection]
<Hanmac>
corentin: prepend is a 2.0 method ... so you need 2.0 first before you can cross compile
classix has quit [Ping timeout: 240 seconds]
jamesfung14 has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
ariedler has joined #ruby
skattyadz has quit [Quit: skattyadz]
tylersmith has quit [Quit: tylersmith]
mneorr_ has quit [Remote host closed the connection]
matchaw has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
predator117 has joined #ruby
momomomomo has quit [Quit: momomomomo]
mockra has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
SCommette has joined #ruby
xlab has joined #ruby
nilobject has quit [Quit: nilobject]
whowantstolivefo has quit [Ping timeout: 252 seconds]
sub35 has quit [Quit: sub35]
Faris9 has joined #ruby
carlsednaoui has joined #ruby
carlsednaoui has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<pagios>
hello, i have a ruby script running on port 4567, the script doesnt support authentication so i decided to throw the authentication on apache server using htaccess, now my question is can i configure the ruby script to accept only requests from the apache server? the client with ip1 getting redirected to the script url will hit the script with its ip or the apache ip address?
davetherat has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
<MrZYX>
one more time: just run it with passenger
davetherat has joined #ruby
T|ASK has joined #ruby
davetherat has quit [Remote host closed the connection]
Davey has joined #ruby
davetherat has joined #ruby
xlab_ has joined #ruby
<T|ASK>
Hi, do you know a webpage where the most Ruby coders meet? I'm searching for as many European Rails or Ruby coders as possible.
<Mon_Ouie>
Guys, meeting on google's home page in two minutes!
Caius has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
<pagios>
MrZYX: standalone version?
<MrZYX>
no
havenwood has quit [Ping timeout: 276 seconds]
<Hanmac>
Tjask wrong channel
xlab has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
<MrZYX>
pagios: you want to benefit from apache's basic auth feature, don't you?
<T|ASK>
Hanmac: wrong channel? to meet Ruby coders?
ryanh has quit [Quit: Computer has gone to sleep.]
<pagios>
yes but i mean the standalone version does allow nginx authentication too i think
<Hanmac>
T|ASK: #rubyonrails is the right channel
<MrZYX>
pagios: but you already got apache running? why the overhead?
<T|ASK>
Hanmac: I'm looking for Ruby coders in the first place later on Rails is important
elaptics`away is now known as elaptics
johnnyfuchs has quit [Remote host closed the connection]
chrishough has joined #ruby
jamesfung14 has joined #ruby
<Mon_Ouie>
You should ask your question directly, rather than where to find Ruby programmers (unless, of course, your end goal is just to find Ruby programmers…)
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
tds has joined #ruby
kylebt has joined #ruby
wsterling has quit [Remote host closed the connection]
GOMADWarrior has joined #ruby
mneorr has quit [Remote host closed the connection]
<T|ASK>
Mon_Ouie: Indeed, it's really that I want to find Ruby Coders which live in Europe first. I want to meet some of them if they like this summer. Yet I'm unsure how to find them easily.
<pagios>
i will but i need to know the highlevel design i need to follow
canton7 has quit [Remote host closed the connection]
<MrZYX>
I'm sure you get it once you got it working
canton7 has joined #ruby
Gabri has quit [Remote host closed the connection]
<pagios>
ok cool
nomenkun has joined #ruby
<T|ASK>
Mon_Ouie: No, not for now. It's a good idea to meet them in person. I will think of this. I should create a webpage first, where I describe my plan in more detail.
bhaarat has quit [Quit: bhaarat]
<dominikh>
yeah, I'm wondering why anyone would be willing to meet you.
<pagios>
is passenger lightweight?
<Xeago>
pagios: in my opinion, no
<MrZYX>
won't be heavier than reverse proxying to a standalone appserver
cooler has joined #ruby
wmoxam has joined #ruby
SCommette has quit [Quit: SCommette]
<Xeago>
I prefer unicorn
<MrZYX>
yeah, but for his small purpose passenger is just easier IMO
<Xeago>
maybe even stuff like thin
<pagios>
the idea is that the apache server and ruby script are running on a very limited resource STB box
<pagios>
RPI
<unstable>
https://gist.github.com/JohnTheodore/5430816 .. I am querying the yelp api and getting some data. I'm sending this data to phones.. so I want to throw out any data I don't need. My code is getting a bit ugly/confusing since I need to dig deep into several nests to keep what I want.
cooler has quit [Client Quit]
<pagios>
what i was thinking of is to do some apache vritual server with htaccess and redirect accordingly to the ruby script, ruby script running sinatra will only accept incoming requests from apache IP address
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
<pagios>
do you think that would be a good workaround?
weeb1e has joined #ruby
<MrZYX>
that's what we call a reverse proxy
<pagios>
ah ok
<MrZYX>
as said, it won't be lighter on resources
wesside has quit [Quit: Computer has gone to sleep.]
sthetz has left #ruby [#ruby]
kevdev has joined #ruby
<kevdev>
anyone know if CarrierWave has a channel I could ask a question in?
wmoxam has quit [Ping timeout: 246 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
<T|ASK>
dominikh: Good question, I should write down everything first for myself and publish it if I think it's still worth it.
ryanh has joined #ruby
mneorr has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
luckyruby has quit [Remote host closed the connection]
weeb1e has joined #ruby
<gerep>
If I do this: user = `git config --global github.user` p user I get the correct value printed but I don't need it printed, I need it to be saved in a variable, how can I do that?
dougireton has joined #ruby
wesside has joined #ruby
Caius has quit [Quit: ""]
zmanfx has joined #ruby
gerep has quit [Remote host closed the connection]
Caius has joined #ruby
anderse has quit [Quit: anderse]
etcetera has joined #ruby
<canton7>
erm, it's already stored in the 'user' variable?
axl_ has joined #ruby
<canton7>
ah, he quit
<MrZYX>
I think he wants var=$(....)
<axl_>
is there a way I can create a new time object knowing day, month and year, in the CST (timezone) without having to pass hour, min and seconds ?
<kevdev>
Well maybe someone is watching that is familiar with CarrierWave so i'll just ask here, I'm using Rails 2.3.6 and the CarrierWave plugin w/s3 and I'm using the nested_form gem, im receiving undefined method `reflect_on_association' for NilClass:Class on my new page, when I remove form.link_to_add the error goes away, any ideas? I've Googled my brains out and came up with nothing =\
<canton7>
MrZYX, that looked like ruby to me
<axl_>
i am hoping not to do this: Time.new(2002, 10, 31, 2, 2, 2, "+02:00") #=> 2002-10-31 02:02:02 -0200
<MrZYX>
canton7: oh, right
<axl_>
don't want to pass the hour, min and sec if i can
nadirvardar has quit [Ping timeout: 260 seconds]
weeb1e_ has joined #ruby
<MrZYX>
axl_: then don't?
<axl_>
how do i specify the timezone without passing them in ?
<axl_>
my system is in UTC and i want to create time in CST
weeb1e has quit [Ping timeout: 252 seconds]
nadirvardar has joined #ruby
mneorr has quit [Remote host closed the connection]
<canton7>
explicitely pass in nil's?
<Morrolan>
keyword arguments?
mockra has quit [Remote host closed the connection]
<canton7>
ruby2, yeah
Xuerian has joined #ruby
<axl_>
Morrolan: are you recommending that to me ?
kevdev has quit [Quit: Page closed]
<Morrolan>
Yep. :)
dougireton has quit [Ping timeout: 264 seconds]
<axl_>
what are keyword arguments? you mean passing a hash ? Don't see that documented, could you give an example ?
shevy2 has joined #ruby
shevy2 is now known as shevy
EPIK has joined #ruby
Lamp_ has joined #ruby
T|ASK has left #ruby [#ruby]
braoru has quit [Ping timeout: 272 seconds]
<shevy>
yo guys
visof has quit [Changing host]
visof has joined #ruby
<tommylommykins>
hmmm
sthetz has joined #ruby
<tommylommykins>
I guess I'm getting something wrong somewhere
Davey has quit [Quit: Computer has gone to sleep.]
<tommylommykins>
I want to do a reduce, but break early to get the memo value
<shevy>
wat
<tommylommykins>
the thing is, the value of break is nil
<tommylommykins>
so the memo value becomes nil
<sthetz>
When I use variable with *, like `method *some_array`, what is it called?
<sthetz>
Does this syntax have some special name?
<elaptics>
sthetz: splat
<sthetz>
K thanks
<tommylommykins>
foo.reduce(1) {|memo, curr| break if done_yet? curr}
<tommylommykins>
...but that returns nil D:
tomsthumb has quit [Quit: Leaving.]
<shevy>
sthetz it's always hard to google that without knowing the name :D
<sthetz>
yeah
momomomomo_ has joined #ruby
jacktrick has joined #ruby
<Morrolan>
axl_: Something along the lines of Time.new(2012,01,01, utc_offset = "+02:00")
<Morrolan>
axl_: As has been mentioned, however, this feature was only introduced in Ruby 2.0.
<axl_>
hhmm… k. i am using 2.0
brianpWins has quit [Quit: brianpWins]
<Morrolan>
axl_: If you use this on a previous version of Ruby, it will actually treat it as a positional argument and, in this case, set the hour to '02:00'.
tjbiddle has quit [Quit: tjbiddle]
nomenkun has joined #ruby
<spider-mario>
I find it a pity not to have kept the old “fake named args” syntax
<sthetz>
elaptics: I was trying to make a module with constants that are available only in test environment (with rspec), so I tried `config.include My::Test::Constants` and it didn't work. Anyway, I just included this module outside of rspec config, and it works perfectly.
<sthetz>
Though I'm not sure that this is the right way to do it
havenwood has joined #ruby
sambio has quit [Remote host closed the connection]
Abr2l has joined #ruby
codecop has quit [Remote host closed the connection]
weeb1e_ has quit [Quit: No Ping reply in 180 seconds.]
mockra has joined #ruby
weeb1e has joined #ruby
Abr2l has left #ruby [#ruby]
nomenkun has joined #ruby
bhaarat has joined #ruby
sailias has joined #ruby
dawkirst has joined #ruby
<elaptics>
sthetz: where do you want the constants to be available? Just within the example groups?
<sthetz>
elaptics: yes.
sambio_ has quit [Ping timeout: 252 seconds]
<sthetz>
But it seems like I have no choice but to include them globally in test environment
shirokuro11 has joined #ruby
El_Diablo has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 240 seconds]
shirokuro11 has quit [Remote host closed the connection]
<elaptics>
sthetz: hmm well I don't quite know what the rspec.include is doing, must be a little more magic so maybe constants won't work…or maybe the reference to them is different
shirokuro11 has joined #ruby
marcdel has joined #ruby
<sthetz>
elaptics: this works with methods
<sthetz>
but for some reason not with constants
jarin has quit [Quit: WeeChat 0.4.0]
dawkirst has quit [Ping timeout: 264 seconds]
oneirophren has joined #ruby
Es0teric has joined #ruby
baphled_1 has joined #ruby
Abr1I_ has joined #ruby
SCommette has joined #ruby
JeanMertz has quit [Quit: JeanMertz]
Abr1I_ has quit [Client Quit]
Opettaja has quit [Quit: WeeChat 0.4.0]
sambio_ has joined #ruby
baphled_ has quit [Ping timeout: 264 seconds]
SCommette has quit [Client Quit]
k610 has quit [Ping timeout: 252 seconds]
pioz has quit [Quit: This computer has gone to sleep]
<elaptics>
yeah, I suspect rspec does something special since it has this as a config thing
swex_ has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 240 seconds]
sambio has quit [Ping timeout: 264 seconds]
TheHermit has quit [Read error: No route to host]
pandawarrior has quit [Quit: Leaving.]
rodacato has joined #ruby
limadita has joined #ruby
sambio_ has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Remote host closed the connection]
dawkirst has joined #ruby
sambio has joined #ruby
limadita has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
sambio_ has joined #ruby
arya has joined #ruby
SCommette has joined #ruby
sambio has quit [Ping timeout: 240 seconds]
generalissimo has joined #ruby
workmad3 has joined #ruby
lewix has quit [Remote host closed the connection]
ryanh has quit [Quit: Computer has gone to sleep.]
sambio_ is now known as sambio
sambio has quit [Changing host]
sambio has joined #ruby
arya has quit [Ping timeout: 248 seconds]
SCommette has quit [Client Quit]
danslo has joined #ruby
sambao21 has joined #ruby
sailias has quit [Quit: Leaving.]
Regis__ has joined #ruby
GOMADWarrior has quit [Ping timeout: 248 seconds]
dawkirst has quit [Ping timeout: 256 seconds]
Regis__ has quit [Max SendQ exceeded]
cableray has joined #ruby
nateberkopec has joined #ruby
arya has joined #ruby
mockra has joined #ruby
ariedler has joined #ruby
<droppedonmyhead_>
hi. can someone explain default blocks to me?
etcetera has joined #ruby
danslo has quit [Quit: danslo]
love_color_text has joined #ruby
<droppedonmyhead_>
i'm trying to write a method to pass a spec that says "reverses each word in the string returned by the default block"
ph^ has joined #ruby
<droppedonmyhead_>
does anyone have a good reference for this? i haven't found anything good on stack overflow and i'm not sure where to look in the docs
MisterPostIT has quit []
Regis__ has joined #ruby
ariedler has quit [Ping timeout: 252 seconds]
ryanh has joined #ruby
whitedawg has quit [Quit: Leaving.]
unstable has quit [Changing host]
unstable has joined #ruby
etcetera has quit []
chrishough has quit [Quit: chrishough]
<elaptics>
droppedonmyhead_: what is this spec you're trying to code against? the only thing that springs to mind that default block means anything to me is that I know that hashes can have a default proc specified to be used on failed key lookups…otherwise I can't say I've heard that expression used much
ph^ has quit [Ping timeout: 256 seconds]
luckyruby has quit [Remote host closed the connection]
timmow has quit [Remote host closed the connection]
Faris9 has quit [Ping timeout: 252 seconds]
dawkirst has joined #ruby
scrogson has quit [Ping timeout: 245 seconds]
jamesfung14 has quit [Ping timeout: 272 seconds]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has joined #ruby
adamjleonard has quit [Quit: Leaving...]
chrishough has joined #ruby
havenwood has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
oneirophren has quit [Ping timeout: 256 seconds]
scrogson has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
jamesfung14 has joined #ruby
AlSquire has joined #ruby
Opettaja has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
chipotle_ has joined #ruby
lewix has joined #ruby
camt has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
camt has joined #ruby
Faris9 has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
baphled_1 has quit [Ping timeout: 246 seconds]
Opettaja has quit [Client Quit]
workmad3 has quit [Ping timeout: 248 seconds]
f0ster has joined #ruby
weeb1e has quit [Ping timeout: 272 seconds]
Squarepy has joined #ruby
Opettaja has joined #ruby
Astral_ has quit [Quit: Leaving]
mercwithamouth has joined #ruby
love_color_text has quit [Ping timeout: 252 seconds]