thepumpkin has quit [Remote host closed the connection]
alekst has joined #ruby
closer has quit [Ping timeout: 252 seconds]
sergicles has quit [Quit: sergicles]
closer has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
Levin_22 has joined #ruby
tanema has quit [Remote host closed the connection]
marcdel has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
mlpinit has quit [Ping timeout: 264 seconds]
xiphffff1 has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Remote host closed the connection]
hogeo has joined #ruby
tylerkern has joined #ruby
xiphffff1 has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
pjeide` has joined #ruby
ewnd9 has joined #ruby
tomzx_mac has joined #ruby
pjeide has quit [Ping timeout: 246 seconds]
huoxito has joined #ruby
blip99 has quit [Ping timeout: 240 seconds]
pjeide` has quit [Ping timeout: 264 seconds]
closer has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has joined #ruby
closer has joined #ruby
baroquebobcat has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
nfk has quit [Quit: yawn]
jlast has quit [Remote host closed the connection]
tylerkern has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 276 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
<joshu>
hi I've installed the rest-client gem and in the github README the require reads 'rest_client'. However, I've seen 'restclient' and 'rest-client' used as well. In IRB all three return true. Does that mean that all three point to the same gem?
bzitzow has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
prime- has joined #ruby
dallasm has joined #ruby
sepp2k has quit [Quit: Leaving.]
prime has quit [Read error: Connection reset by peer]
prime- is now known as prime
prime has quit [Changing host]
prime has joined #ruby
nitrodex has quit [Ping timeout: 260 seconds]
xcv has quit [Remote host closed the connection]
arya__ has joined #ruby
rupee has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby
Dwarf_ has joined #ruby
mfridh has quit [Read error: Connection reset by peer]
chriskk_ has joined #ruby
stevenrockarts has quit [Quit: stevenrockarts]
chriskk has quit [Ping timeout: 240 seconds]
chriskk_ is now known as chriskk
Kricir has joined #ruby
stuartrexkin has joined #ruby
nadirvar_ has quit [Ping timeout: 260 seconds]
nitrodex has joined #ruby
nitrodex is now known as Guest54726
Senjai has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
s00pcan has quit [Client Quit]
s00pcan has joined #ruby
s00pcan has quit [Client Quit]
s00pcan has joined #ruby
stuartrexking has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
s00pcan has quit [Remote host closed the connection]
byprdct has joined #ruby
ixti has quit [Ping timeout: 264 seconds]
sergicles has joined #ruby
hogeo has quit [Remote host closed the connection]
allinone has quit [Killed (idoru (Spam is off topic on freenode.))]
narcan has joined #ruby
tommyvyo has quit [Quit:]
ehc has quit [Quit: ehc]
joast has quit [Ping timeout: 264 seconds]
zets has joined #ruby
bklane has quit [Remote host closed the connection]
juxovec has joined #ruby
xtavc has quit [Quit: Saindo]
v8energy has joined #ruby
snovak has joined #ruby
jaynewstrom has quit [Read error: Connection reset by peer]
<v8energy>
is there a command to check if a certain line will throw an error? for example throws_an_error(require 'test') <- 'test' doesn't exist so it will return false.
jaynewstrom has joined #ruby
<sevenseacat>
context?
renderful has quit [Remote host closed the connection]
tommyvyo has joined #ruby
juxovec has quit [Ping timeout: 256 seconds]
<v8energy>
is that a method?
stevenrockarts has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
<sevenseacat>
no, context of your problem required
<bnagy>
if you want to do something with them, then map the found objects
<bnagy>
oh.. shit wait find is the first only isn't it
tonini has joined #ruby
<bnagy>
but same answer - find then evaluate
justsee has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Ping timeout: 240 seconds]
Soliah has joined #ruby
druonysuse has quit [Quit: Konversation terminated!]
labrat__ has joined #ruby
druonysuse has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
dodosan has joined #ruby
poga has quit [Remote host closed the connection]
Diranged has joined #ruby
tommyvyo has quit [Quit:]
thetristan has quit [Quit: thetristan]
tagrudev has joined #ruby
benlieb has quit [Quit: benlieb]
intuxicated has joined #ruby
<diegoviola>
nice, chruby looks awesome
amacgregor_ has joined #ruby
relix has joined #ruby
saarinen has quit [Quit: saarinen]
Senjai has quit [Ping timeout: 240 seconds]
yacks has quit [Quit: Leaving]
<zendeavor>
it is pretty awesome
<zendeavor>
dev is responsive too
<diegoviola>
i see
amacgregor has quit [Ping timeout: 246 seconds]
<diegoviola>
never really liked how bloated/complicated rvm was, felt always a little too much
<diegoviola>
and shims in rbenv is not really my thing too
<diegoviola>
let's see how chruby works out
<zendeavor>
rvm is frightening
<zendeavor>
i'm working on an advanced chruby myself
<sevenseacat>
chruby is nice and simple.
<zendeavor>
indeed
v0n has quit [Ping timeout: 264 seconds]
s__dana has quit [Ping timeout: 240 seconds]
juxovec has joined #ruby
<zendeavor>
after some lengthy discussion with dev i came to the conclusion that chruby doesn't actually satisfy the goals he expressed so i'm writing a proof of concept example to demonstrate how to be both simple and complete
mansi has joined #ruby
<sevenseacat>
what goals did he express?
oddalot has joined #ruby
<zendeavor>
more leverageable from automated scripts
<zendeavor>
it's good enough as-is.
<zendeavor>
i think it cuts a few corners unnecessarily
burz has quit [Remote host closed the connection]
<zendeavor>
therefore, PoC
stuartrexking has joined #ruby
juxovec has quit [Ping timeout: 260 seconds]
<sevenseacat>
fair enough
mansi has quit [Ping timeout: 264 seconds]
<zendeavor>
more modularity is my primary concern, and consistent exposure of env vars to reduce wrapper boilerplate
<sevenseacat>
i'm no scripting expert, i was just curious because i thought chruby did what it set out to do, quite well
juxovec has joined #ruby
<zendeavor>
i think the goal mutated a bit
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
<zendeavor>
you can rip the ruby bit apart though
<zendeavor>
at #L48
Diranged has quit [Ping timeout: 276 seconds]
juxovec has quit [Ping timeout: 264 seconds]
kreeves has quit [Ping timeout: 246 seconds]
Demo_of_doom_ has quit [Remote host closed the connection]
<zendeavor>
oh man
<zendeavor>
i think i just realized why the chruby tests kept putting double-quotes in PATH sometimes
iliketurtles has quit [Quit: zzzzz…..]
zombiebit has quit [Remote host closed the connection]
codecop has joined #ruby
iliketurtles has joined #ruby
Matriks has quit [Remote host closed the connection]
noopq has joined #ruby
apeiros has joined #ruby
mneorr has joined #ruby
ananthakumaran has joined #ruby
browndawg has left #ruby [#ruby]
tonni has quit [Remote host closed the connection]
poga has joined #ruby
allsystemsarego has joined #ruby
zoee has joined #ruby
horofox has quit [Quit: Leaving.]
_Andres has joined #ruby
BizarreCake has joined #ruby
jlebrech has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tatsuya_o has joined #ruby
<zendeavor>
\o/
<zendeavor>
that bug confused me for 2 weeks
redmenace has quit [Ping timeout: 256 seconds]
druonysuse has quit [Quit: Konversation terminated!]
codesoda has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
byprdct has joined #ruby
rubyguy has joined #ruby
byprdct has quit [Max SendQ exceeded]
ntus1017 has quit [Remote host closed the connection]
dagobah has joined #ruby
khushildep has joined #ruby
stuartrexking has quit [Quit: Leaving...]
poga has quit [Remote host closed the connection]
Diranged has joined #ruby
iFire has joined #ruby
poga has joined #ruby
ayaz has joined #ruby
whowantstolivefo has joined #ruby
maasdesigner1 has joined #ruby
Lewix has joined #ruby
maasdesigner1 is now known as maasdesigner
v8energy has quit [Ping timeout: 240 seconds]
sayan has quit [Ping timeout: 264 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
echevemaster has quit [Quit: Leaving]
burlyscudd has joined #ruby
thebastl has joined #ruby
kpshek has quit [Ping timeout: 264 seconds]
pranny has quit [Quit: Leaving.]
burlyscudd has quit [Ping timeout: 264 seconds]
tonni has joined #ruby
codesoda has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
poga has joined #ruby
cyong1 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
tatsuya_o has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
relix has quit [Ping timeout: 264 seconds]
spike|spiegel has quit [Quit: WeeChat 0.4.1]
majjoha has joined #ruby
cyong has quit [Ping timeout: 240 seconds]
druonysuse has quit [Ping timeout: 248 seconds]
majjoha has quit [Client Quit]
relix has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby
druonysuse has joined #ruby
Evixion has joined #ruby
kpshek has joined #ruby
mansi has joined #ruby
ffio has joined #ruby
lurch_ has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
pranny has joined #ruby
mneorr has joined #ruby
druonysuse has quit [Remote host closed the connection]
spike|spiegel has joined #ruby
Davey has joined #ruby
dsaravel has quit [Quit: bye]
druonysuse has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
mansi has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Bry8Star{T2 has quit [Remote host closed the connection]
KevinSjoberg has joined #ruby
Davey has quit [Client Quit]
marius has quit [Quit: -]
Kelet has quit [Quit: Leaving]
jarray52 has left #ruby [#ruby]
vlad_starkov has joined #ruby
filipe has joined #ruby
Bry8Star{T2 has joined #ruby
avril14th has joined #ruby
dagobah has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
persand has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
postmodern has joined #ruby
JohnBat26 has joined #ruby
dagobah has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
Shirakawasuna has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Shirakawasuna has quit [Max SendQ exceeded]
cads has quit [Ping timeout: 276 seconds]
thebastl has quit [Remote host closed the connection]
Shirakawasuna has joined #ruby
cyong1 has quit [Quit: Leaving.]
thebastl has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
Shirakawasuna has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
Shirakawasuna has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
Mattias has joined #ruby
Shirakawasuna has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
Diranged has quit [Ping timeout: 276 seconds]
lurch__ has joined #ruby
senayar has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
chxane has quit [Ping timeout: 260 seconds]
Shirakawasuna has joined #ruby
tvw has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
sayan has joined #ruby
pen has joined #ruby
Shirakawasuna has joined #ruby
lurch_ has quit [Ping timeout: 240 seconds]
lurch__ is now known as lurch_
lurch__ has joined #ruby
juxovec has joined #ruby
smathieu has joined #ruby
vlad_starkov has joined #ruby
druonysuse has quit [Read error: Connection reset by peer]
druonysuse has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
Lewix has quit [Remote host closed the connection]
lurch_ has quit [Ping timeout: 256 seconds]
lurch__ is now known as lurch_
dodosan has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 240 seconds]
amacgregor_ has quit [Ping timeout: 248 seconds]
druonysuse has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
Ciscoridze has joined #ruby
druonysuse has joined #ruby
maxmanders has joined #ruby
rshetty has joined #ruby
druonysuse has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redmenace has joined #ruby
druonysuse has joined #ruby
druonysuse has joined #ruby
relix has joined #ruby
<diegoviola>
is there a way to use chruby as a user without installing it, when running ./scripts/setup.sh is there a way to tell not to install jruby, rbx, etc, and instead just install chruby and handle the ruby installs via ruby-install?
threesome has joined #ruby
ghr has joined #ruby
<sevenseacat>
yeah, dont run the setup script.
poga has joined #ruby
<sevenseacat>
then go and install ruby-build and use it.
Matriks has joined #ruby
<postmodern>
diegoviola, PREFIX=/where/to/install/it make install
<diegoviola>
thanks
<diegoviola>
that works
redmenace has quit [Ping timeout: 246 seconds]
ebanoid has joined #ruby
<postmodern>
diegoviola, ruby-install will install into ~/.rubies/ for normal users
aces1up has quit []
<postmodern>
diegoviola, there's also an -i option to control where it installs into
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
mengu has quit [Quit: This computer has gone to sleep]
druonysuse has quit [Read error: Connection reset by peer]
<sevenseacat>
oh derp ruby-install not ruby-build.
druonysuse has joined #ruby
rshetty has quit [Quit: Sleeping]
tricon_ has quit [Ping timeout: 248 seconds]
burlyscudd has joined #ruby
jprovazn has joined #ruby
tatsuya_o has joined #ruby
goleldar has quit [Ping timeout: 260 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
Diranged has joined #ruby
_honning_ has joined #ruby
druonysuse has quit [Ping timeout: 248 seconds]
burlyscudd has quit [Ping timeout: 276 seconds]
saarinen has joined #ruby
Xeago has joined #ruby
parzo_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
randomautomator has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
druonysus has quit [Ping timeout: 240 seconds]
joonty_ has joined #ruby
Diranged has quit [Ping timeout: 276 seconds]
buibex has joined #ruby
joonty has quit [Ping timeout: 248 seconds]
aryaching has quit [Ping timeout: 246 seconds]
Coffers has joined #ruby
i_s has quit [Remote host closed the connection]
mastr has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
pzuraq has quit [Remote host closed the connection]
parzo has joined #ruby
parzo_ has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
mansi has joined #ruby
troessner has joined #ruby
tonni has quit [Remote host closed the connection]
jim0thy_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
parzo has joined #ruby
himsin has quit [Quit: himsin]
stef_204 has joined #ruby
thebastl_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
rclanan has quit [Ping timeout: 246 seconds]
Al_ has joined #ruby
thebastl has quit [Ping timeout: 248 seconds]
chihhsin has joined #ruby
randomautomator has quit [Remote host closed the connection]
usse has joined #ruby
mengu has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
kek has joined #ruby
poga has quit [Remote host closed the connection]
parzo has quit [Remote host closed the connection]
poga has joined #ruby
parzo has joined #ruby
camilasan has joined #ruby
poga has quit [Remote host closed the connection]
marr has joined #ruby
poga has joined #ruby
Lewix has joined #ruby
JohnBat26|2 has joined #ruby
mengu has quit [Client Quit]
shaunbaker has joined #ruby
xpirator has quit [Quit: Leaving...]
sarkis has joined #ruby
xpirator has joined #ruby
barratt has joined #ruby
Gwyxx has joined #ruby
JohnBat26 has quit [Ping timeout: 260 seconds]
thebastl_ has quit [Remote host closed the connection]
noname001 has joined #ruby
Diranged has joined #ruby
thebastl has joined #ruby
Lewix has quit [Ping timeout: 276 seconds]
rshetty has quit [Quit: Sleeping]
parzo_ has joined #ruby
loye1234 has joined #ruby
parzo_ has quit [Remote host closed the connection]
parzo has quit [Read error: Connection reset by peer]
parzo has joined #ruby
tonini has quit [Remote host closed the connection]
Gwyxx has quit [Ping timeout: 240 seconds]
niceguyjames has joined #ruby
tonni has joined #ruby
blaxter_ has joined #ruby
blueOxigen has joined #ruby
himsin has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
Shirakawasuna has quit [Ping timeout: 276 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
ffio has joined #ruby
juxovec has quit [Remote host closed the connection]
pygospa has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
pygospa has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
parzo_ has joined #ruby
elaptics`away is now known as elaptics
lkba has quit [Ping timeout: 246 seconds]
parzo_ has quit [Remote host closed the connection]
xpirator has quit [Remote host closed the connection]
xGeee has joined #ruby
parzo_ has joined #ruby
sjltaylor has joined #ruby
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parzo has quit [Ping timeout: 276 seconds]
ayaz has joined #ruby
<xGeee>
i just installed ruby1.9.2-full, and when i try to install a package with Gem, it says i need ruby >= 1.9.2
adambeynon has joined #ruby
<Xeago>
xGeee: make sure your gem binary is using ruby1.9.2
<xGeee>
with rvm, right?
<Xeago>
don't know what you are using
loye1234 has quit [Quit: loye1234]
BizarreCake has quit [Read error: Connection reset by peer]
<xybre>
Looks like I need to clean up one thing, looking at the output
_veer has quit [Ping timeout: 248 seconds]
<xybre>
For some reason the engine is coming back as an array(?)
<zendeavor>
odd
<xybre>
Oh! an errent comma
<xybre>
Fixed :)
<zendeavor>
haha i see
<zendeavor>
gotta keep it under 80cols now
<zendeavor>
linebreaks are safe in [] aye?
kek has joined #ruby
<zendeavor>
it's too bad this happens in a shell heredoc, can't do any pretty indenting
<xybre>
zendeavor: updated, should be under 80c now
<zendeavor>
clean.
tls is now known as suborbital
banisterfiend has quit [Remote host closed the connection]
<xybre>
You might be better off putting it in its own file, the Ruby interpreter itself starts up so slowly that the additional file overhead should be unnoticable.
<Fractional>
Gow can I pass a value from a class to another class in Ruby? Like, I want to get the value of @health in the Player class and do a calculation with it for my GUI class.
<xybre>
Well, slowly compared to bash.
mklappstuhl has quit [Remote host closed the connection]
<zendeavor>
xybre: chruby already spins up ruby like this
<xybre>
zendeavor: you could always spin up Ruby in the background and communicate with it over pipes ;)
<xybre>
er, Unix sockets, not pipes!
<Fractional>
Xybre and Zendeavor could you help me out? I'm clueless.
jds has quit [Remote host closed the connection]
<zendeavor>
you ever tried that, compatibly between zsh/bash/ksh/mksh xybre ?
<zendeavor>
i'll leave you to ponder on that puzzle ;]
<zendeavor>
protip: don't actually try this
tvw has joined #ruby
<xybre>
zendeavor: sadly, I've looked into it. I can't even believe I did socket programming in bash, but there it is.
<zendeavor>
ouch
epochwol- has joined #ruby
<xybre>
It's easier than it sounds, but its really gnarly.
blaxter is now known as mayoria
chinkung has joined #ruby
<xybre>
Fractional: Sure, hold on
<zendeavor>
oh for sure, not *that* complicated. but then, was it mksh compatible?
mayoria is now known as blaxter
mercwithamouth has quit [Ping timeout: 240 seconds]
<zendeavor>
xybre: @acook is your github?
<suborbital>
DRINKS ARE ON ME FFS
suborbital has left #ruby [#ruby]
kung has quit [Ping timeout: 248 seconds]
jmeeuwen has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
<xybre>
zendeavor: yessir :)
tesuji has joined #ruby
<xybre>
zendeavor: I totally only looked into zsh and bash, only got as far as bash before deciding I was better off not.
yfeldblum has joined #ruby
<xybre>
But, I might look into it again, just for masochistic reasons..
<zendeavor>
yeah i've been rewriting chruby for almost two weeks now, to create it as a sort of ruby-changer library
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zendeavor>
the final touch was getting that shell array in clean way
<Fractional>
Help would be appreciated :- )
<zendeavor>
Fractional: relax, okay. constant reminders are more of a deterrent than anything.
mneorr has quit [Remote host closed the connection]
<Fractional>
I've not been constantly reminding but sure.
<xybre>
I prefer to have both offsets (0..n) and true indexes (1..n) available, but failing that, it should be consistent with the related standards.
<zendeavor>
but that changes a lot of other zsh behaviour in subtle ways, and as chruby is a sourced script it would affect the user's interactive environment
<tobiasvl>
haukur: it sorts officers by comparing their last names
<Dwarf>
Ah apeiros that was exactly what I was looking for. Thanks a bunch
krawchyk has joined #ruby
AlHafoudh has joined #ruby
mneorr_ has quit [Ping timeout: 264 seconds]
hyperboreean has joined #ruby
v0n has joined #ruby
mansi has joined #ruby
mneorr_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr__ has joined #ruby
jds has quit [Remote host closed the connection]
Appineer has joined #ruby
tete_ has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 246 seconds]
Appineer has left #ruby [#ruby]
benlieb has joined #ruby
tonni has quit [Remote host closed the connection]
<tete_>
hi, does someone know the variable i have to set for rake when running something on postgresql? i cant remember, and when i try to install a plugin it complains (redmine) ...
<tete_>
atm i have only RAILS_ENV=production - but it was something with DB=pgsql or such
parus_ is now known as parus
jonathanwallace has joined #ruby
mneorr_ has quit [Ping timeout: 256 seconds]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lebek has joined #ruby
vadelius has quit [Ping timeout: 248 seconds]
tanema has quit [Remote host closed the connection]
Kruppe has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Kruppe has joined #ruby
mansi has quit [Remote host closed the connection]
tealmage has joined #ruby
fantazo has joined #ruby
Guest60457 has quit [Remote host closed the connection]
pentameter has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
djdarkbeat has joined #ruby
Beoran_ has joined #ruby
retnuh has joined #ruby
mneorr has joined #ruby
Tricon has joined #ruby
buibex has quit [Remote host closed the connection]
brennanMKE has joined #ruby
jds has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Ping timeout: 264 seconds]
bricker`1A has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
joshmyers has joined #ruby
AlHafoudh has joined #ruby
yacks has quit [Read error: Operation timed out]
Astralum has quit [Ping timeout: 264 seconds]
julweber has joined #ruby
<joshmyers>
hi guys, I need to use system() to run this command, `echo "stats.#{opts[:deployment]}.apps.deployments 1 $(date +%s)" | nc -w1 statsd 2003`
sambao21 has quit [Quit: Computer has gone to sleep.]
sjltaylor has joined #ruby
Al_ has joined #ruby
fyz1x has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
mrpot4to_ has quit [Remote host closed the connection]
MrPoT4tO has quit [Read error: Connection reset by peer]
shaunbaker has quit [Ping timeout: 245 seconds]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
rhys has joined #ruby
sambao21 has joined #ruby
lebek has joined #ruby
lebek has quit [Client Quit]
fernandoaleman has joined #ruby
fernandoaleman has left #ruby [#ruby]
lebek has joined #ruby
_serial_ has joined #ruby
pkremer has quit [Quit: Leaving]
staafl_alt has joined #ruby
tgunr has joined #ruby
BRMatt has joined #ruby
Diranged has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
bluOxigen has joined #ruby
usse has quit [Remote host closed the connection]
fredjean has joined #ruby
mary5030 has joined #ruby
staafl has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
kreisys has joined #ruby
hopheady has joined #ruby
is_null has quit [Quit: leaving]
zoee has quit [Quit: zoee]
stuartrexking has joined #ruby
BizarreCake has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
Kricir has quit [Remote host closed the connection]
intuxicated has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
gazarsgo has joined #ruby
xcv has joined #ruby
barratt has quit [Ping timeout: 264 seconds]
redmenace has joined #ruby
Kobrakao has joined #ruby
<diegoviola>
is there a way to install chruby without installing any rubies first? the reason i ask this is that rbx is failing for some reason and i'd like to install rubies one by one, i don't want to re-do everything again
mansi has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
<aedorn>
chruby install doesn't require a ruby install. Rubinius 2.0-rc1 requires Ruby 1.9.3 to be installed, though.
sambao21 has quit [Quit: Computer has gone to sleep.]
<diegoviola>
i know
brennanMKE has quit [Remote host closed the connection]
<Kobrakao>
someone know framwork desktop for ruby
<zendeavor>
the chruby readme tells you how to, you know, install chruby
dtcrshr has quit [Read error: Connection reset by peer]
redmenace has quit [Ping timeout: 264 seconds]
Uranio has joined #ruby
devoldmx has joined #ruby
tonni has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
<aedorn>
make install will install without grabbing a Ruby version. setup.sh specifically is for installing chruby and the latest releases of Ruby, JRuby, and Rubinius.
dtcrshr has joined #ruby
dtcrshr has quit [Changing host]
dtcrshr has joined #ruby
devoldmx27 has joined #ruby
thepumpkin has joined #ruby
Astralum has joined #ruby
sambao21 has quit [Ping timeout: 246 seconds]
noopq has quit [Ping timeout: 268 seconds]
kaspergrubbe has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
<diegoviola>
make install gives me only chruby-exec
sambao21 has joined #ruby
devoldmx3 has quit [Ping timeout: 268 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
<zendeavor>
cower -d chruby; cd !$ && makepkg -si
relix has joined #ruby
gazarsgo has joined #ruby
ryannielson has joined #ruby
<maddog_>
I'm beginning to think that today I'm only experiencing weird problems...
zets has quit []
blackmesa has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
JDHankle has joined #ruby
<aedorn>
well yeah, that's what it should do. Then you add the script to your profile. source /usr/local/share/chruby/chruby.sh
ryannielson has quit [Client Quit]
<aedorn>
Then it's installed, without installing any version of Ruby.
JDHankle_ has joined #ruby
ryannielson has joined #ruby
<ryannielson>
I'm looking to pull in stuff from Facebook, and have narrowed it down the the fb_graph and koala gems. Can anyone make any recommendations for either of the two?
mansi has quit [Remote host closed the connection]
<Veejay>
Is there a way to do a recursive slice in Ruby on Hash?
thepumpkin has quit [Remote host closed the connection]
pumper has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
ewnd9 has quit [Remote host closed the connection]
mansi has joined #ruby
thebastl_ has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
thebastl_ has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<diegoviola>
oh nevermind, i got /usr/local/share/chruby/chruby.sh
mercwithamouth has quit [Ping timeout: 256 seconds]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has quit [Ping timeout: 256 seconds]
devoldmx27 has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit:]
zachrab_ has quit [Remote host closed the connection]
tommyvyo has joined #ruby
shredding has joined #ruby
girija has joined #ruby
hiyosi has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
hiyosi has quit [Client Quit]
stonevil has quit [Remote host closed the connection]
hiyosi has joined #ruby
freerobby has quit [Quit: Leaving.]
fantazo has quit [Ping timeout: 245 seconds]
<brbcoding>
ah, I hate to ask stupid questions... But -- just learning Ruby at the moment. This https://gist.github.com/brbcoding/6222130 doesn't feel like a ruby way of doing things... What would be a better way of going about it?
baordog has quit [Read error: Connection reset by peer]
Krajsnick has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<Xeago>
brbcoding: there are other ways to do loops over ranges to do
moos3 has quit [Ping timeout: 264 seconds]
<Xeago>
depending on your situation it might make sense to 'multiply' the ranges together
<Xeago>
and just looping (each) over a single array
alem0lars has quit [Quit: Leaving]
shaunbak_ has quit [Remote host closed the connection]
<Xeago>
Kobrakao: I don't but if I develop to display on a desktop, I fire up an embedded webserver, and use any web framework to handle the requests to my app
<apeiros>
actually, the ? isn't even necessary
<reactormonk>
apeiros, I'll use ^ instead of \A
_veer has quit [Ping timeout: 264 seconds]
<apeiros>
reactormonk: that's not "leading from the string", though
<apeiros>
that's "leading from the line"
Emmy has joined #ruby
moos3 has joined #ruby
yacks has joined #ruby
ahawkins has quit [Client Quit]
<brbcoding>
thanks for the help guys, btw.
tkuchiki has joined #ruby
burlyscudd has joined #ruby
<Xeago>
Kobrakao: I am horrible biased, but gui-frameworks are a MESS
kobain has joined #ruby
<reactormonk>
apeiros, good enough I presume
<reactormonk>
Xeago, so is html
<Xeago>
at least it is separated from the language you will develop in
sambao21 has quit [Quit: Computer has gone to sleep.]
<Kobrakao>
Xeago understand.. then tidesdk is an option ?
BizarreCake has quit [Read error: Connection reset by peer]
<Kobrakao>
ruby, php and python availables..
stuartrexking has joined #ruby
<aedorn>
I still use Qt. I love Qt.. you can make a simple dumb web browser using Qt WebKit in a second if you're just rendering HTML.
<reactormonk>
With PHP *uarg*
vince_prignano has quit [Remote host closed the connection]
sambao21 has joined #ruby
<Xeago>
aedorn: that would be a good portable example yes
<Xeago>
I think Qt might beat HTML
<aedorn>
If hanmac were around he'd say wxWidgets =p
lucazi has joined #ruby
horofox has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<Xeago>
aedorn: everyone has a pet :)
<aedorn>
indeed
lucazi_ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 256 seconds]
Kobrakao has quit [Quit: This computer has gone to sleep]
<clrmg>
I installed rbenv via macports, but I'm missing "rbenv.bash". Any suggestions?
<Xeago>
clrmg: I discourage you to use macports
<clrmg>
Xeago: homebrew?
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sambao21 has quit [Client Quit]
<Xeago>
would be a more up to date alternative yes
<clrmg>
Xeago: thanks
<Xeago>
I have no idea what rbenv.bash does tho
<Xeago>
is it the loader script for rbenv?
<Xeago>
it is probably just named differently over time now
alex__c2022 has joined #ruby
xcv has quit [Remote host closed the connection]
<clrmg>
Xeago: If I run "rbenv init -", the second line generated is 'source "/opt/local/bin/../completions/rbenv.bash"'
baroquebobcat has joined #ruby
Kruppe has quit [Remote host closed the connection]
sambao21 has joined #ruby
YaNakilon has quit [Ping timeout: 264 seconds]
iAreBaboon_ has joined #ruby
Giorgio has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
tjad has joined #ruby
tommyvyo has quit [Quit:]
failshel_ has joined #ruby
rippa has quit [Read error: Connection reset by peer]
acrussell has joined #ruby
neo_ has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
neo_ has quit [Client Quit]
jds has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
maniacal has joined #ruby
blip99 has quit [Ping timeout: 264 seconds]
_veer has joined #ruby
goleldar has joined #ruby
girija has quit [Ping timeout: 268 seconds]
diegoviola has quit [Quit: WeeChat 0.4.1]
failshell has quit [Ping timeout: 256 seconds]
YaNakilon has joined #ruby
_maes_ has joined #ruby
neo_ has joined #ruby
tvw has quit []
<blackmesa>
Hi all. anyone can tell me how ::Time.zone is called? I know that use :: to call a module, but :: without anything in front, what does it mean?
Kricir has quit [Remote host closed the connection]
failshel_ has quit [Remote host closed the connection]
_serial_ has quit [Ping timeout: 256 seconds]
clrmg has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
dweeb_ has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
shredding has quit [Quit: shredding]
smathieu has joined #ruby
tommyvyo has joined #ruby
ananthakumaran has joined #ruby
iAreBaboon_ has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
girija has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
jmccune has joined #ruby
ryannielson has left #ruby [#ruby]
kaldrenon has joined #ruby
burlyscudd has joined #ruby
joshmyers has quit [Remote host closed the connection]
acrussell has joined #ruby
acrussell has left #ruby [#ruby]
dodosan has joined #ruby
Kobrakao has joined #ruby
Zolo has joined #ruby
sevenseacat has quit [Quit: Leaving.]
tjad has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
shadoi has joined #ruby
<slap_stick>
when you have a rubygem and you require rubygems etc, is there a way for me to verbose the search it does to find a specific gem. I can see the gem in the gem.path but yet for some reason i can't laod it as it says it can't find it
senayar_ has quit [Ping timeout: 245 seconds]
<arietis>
hi
dweeb_ has quit [Read error: Connection reset by peer]
Targen_ has joined #ruby
horofox has quit [Quit: Leaving.]
<arietis>
what's better - rails or sinatra?
Lewix has joined #ruby
dodosan has quit [Ping timeout: 256 seconds]
<arietis>
what are + and - ?
Targen has quit [Ping timeout: 260 seconds]
filipe has quit [Remote host closed the connection]
mikepack has joined #ruby
mneorr has joined #ruby
lucazi_ has joined #ruby
RichardBaker has joined #ruby
lucazi has quit [Ping timeout: 268 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
horofox has joined #ruby
<endash>
they're not really comparable
MasterAsia has quit [Read error: Connection reset by peer]
Guest2798 has quit [Ping timeout: 264 seconds]
<endash>
it's like comparing a house and the empire state building
s2013 has joined #ruby
MasterAsia has joined #ruby
<endash>
the commonalities are pretty minimal
<Spooner>
Yeah, it depends what you want to do.
waxjar has quit [Ping timeout: 260 seconds]
pothibo has quit [Quit: pothibo]
tatsuya_o has joined #ruby
BizarreCake has joined #ruby
waxjar has joined #ruby
Adawerk has joined #ruby
<arietis>
i wanna develop prototype of some simple cms
<Spooner>
Rails: Huge system, steep learning curve, very powerful, very prescribed way of doing things. Sinatra: Small system, doesn't force you to do things in particular ways. Most programmers seem to prefer Sinatra, web devs prefer Rails :D
digifiv5e has joined #ruby
sarkis has joined #ruby
<arietis>
my main job is ios development
<arietis>
so ruby is just hobby
digifiv5e is now known as Guest9360
saarinen has quit [Quit: saarinen]
dweeb_ has joined #ruby
g0bl1n has quit [Ping timeout: 256 seconds]
bricker`1A has quit [Quit: leaving]
<endash>
I'd add to Spooner to say that a ruby newbie would be much better served playing with sinatra and not rails
Kruppe has joined #ruby
<linduxed>
arietis: what Spooner said, basically. if ruby is just a hobby you might want to try sinatra, since you'll have an easier time understanding the whole picture
bklane_ has joined #ruby
<endash>
rails has some helpful parts but there's a lot of magic that doesnt follow over into regular ruby, and there's some harmful community driven practices (like fat models)
noname001 has quit [Ping timeout: 260 seconds]
efrainolivares has joined #ruby
nomenkun has quit [Remote host closed the connection]
xcv has joined #ruby
<linduxed>
endash: well, to be fair here, there's a movement to make models slimmer
<gazarsgo>
that's racist
daniel_hinojosa has joined #ruby
bklane has quit [Ping timeout: 245 seconds]
randomautomator has joined #ruby
twoism has joined #ruby
dagobah has quit [Remote host closed the connection]
VTLob has joined #ruby
gemmy has joined #ruby
shadoi has quit [Quit: Leaving.]
zeade has joined #ruby
gemmy has quit [Read error: Connection reset by peer]
ephemerian has quit [Quit: Leaving.]
bklane_ has quit [Remote host closed the connection]
cougarten has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
Spooner has quit [Remote host closed the connection]
Krajsnick has quit [Remote host closed the connection]
dwype has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
gemmy has joined #ruby
cougarten has joined #ruby
<linduxed>
slap_stick: i think it'd be easier to help you if you posted the error message
<linduxed>
slap_stick: along with the code that caused the error
freerobby has quit [Quit: Leaving.]
VTLob has quit [Quit: VTLob]
Spooner has joined #ruby
VTLob has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
orionstein_away is now known as orionstein
redmenace has joined #ruby
VTLob has quit [Client Quit]
warnabas_ has joined #ruby
VTLob has joined #ruby
kjellski has joined #ruby
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kreisys has quit [Quit: Computer has gone to sleep.]
<warnabas_>
hi, should I leave WinOS to programming ruby? I heard that ruby and ror are more linux way designed, but is this totally true?
<gazarsgo>
i try to match my production environment to my dev environment as close as possible… which usually means virtualization
<gazarsgo>
which usually means Vagrant and VirtualBox
redmenace has joined #ruby
Astralum has joined #ruby
thebastl_ has quit [Read error: Operation timed out]
<apeiros>
warnabas_: you can develop ruby/rails on windows. but it's certainly more pain than on linux/osx
ruby_learner12 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pjeide` has joined #ruby
<ruby_learner12>
Hi, how would I go about writing a unit test for the seeds.rb file in a rails project
ldnunes has joined #ruby
rippa has joined #ruby
tk_ has quit [Quit: ばいばい]
invsblduck has left #ruby ["WeeChat 0.4.1"]
<apeiros>
ruby_learner12: as with everything else. stub/mock the interactions with other objects.
mklappst_ has quit [Remote host closed the connection]
banghouse2 has joined #ruby
pjeide has quit [Ping timeout: 246 seconds]
tonini has joined #ruby
<warnabas_>
apeiros, look I have used linux for a while, but is studing ruby and rails very different between these systems? only for learning purposes
virtualize|work has joined #ruby
banghouse2 is now known as banghouse
<apeiros>
warnabas_: I haven't used ruby on windows. I can only report from the "felt" issue count and resolutions here in irc
devoldmx has joined #ruby
jeffreylevesque has quit [Remote host closed the connection]
<apeiros>
and it seems to me that windows users more often face issues related to how windows works which can't be solved by fellow rubyists because they don't use windows
<apeiros>
e.g. silly things like \ vs. / for directory separators. in 99% of all cases it won't matter because higher level windows api's will work fine with /, but the 1% still happens…
<Xeago>
I would recommend to use a vagrant box on windows
<Xeago>
you can take your studying environment everywhere you want then
spider-mario has joined #ruby
<apeiros>
gazarsgo & Xeago certainly have a point in their suggestion
<Xeago>
heck, you can use amazon's free tier to put the box there
<Xeago>
and use just an ssh client
bzitzow has joined #ruby
<bzitzow>
Hi. I am looking for an open source project to contribute to that has low hanging fruit
spider-mario has quit [Read error: Connection reset by peer]
<bzitzow>
I'm learning ruby coming from a classic OOP paradigm background
marcdel has joined #ruby
shaunbaker has joined #ruby
<Spooner>
Well, you are much better off working on a project that you have a use for.
<bzitzow>
I've been reading and studying and would like to participate in an open source project to practice what I've been learning. Anyone like some help?
ghr has quit [Quit: Computer has gone to sleep.]
<Spooner>
Because really, there are 1000s of ongoing projects you could help with.
anay has quit [Remote host closed the connection]
Krajsnick has joined #ruby
stuartrexking has quit [Ping timeout: 268 seconds]
ghr has joined #ruby
moses_m has joined #ruby
mmitchell has quit [Remote host closed the connection]
IceyEC has quit [Read error: Connection reset by peer]
IceyEC has joined #ruby
barratt has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
relix has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
stuartrexking has joined #ruby
shaunbaker has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
iliketurtles has joined #ruby
ruby_learner12 has quit [Quit: Page closed]
noopq has joined #ruby
camilasan has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 264 seconds]
kjellski has quit [Quit: Leaving]
avril14th has quit [Remote host closed the connection]
* arietis
wonders why it takes so long to install sinatra ri docs
havenwood has joined #ruby
pjeide has joined #ruby
Heskie has quit []
Kricir has joined #ruby
clov3r has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
efrainolivares has quit [Quit: efrainolivares]
clov3r has quit [Remote host closed the connection]
tealmage has joined #ruby
efrainolivares has joined #ruby
rupee has joined #ruby
byprdct has joined #ruby
rbento has joined #ruby
devoldmx3 has joined #ruby
pjeide` has quit [Ping timeout: 268 seconds]
<pontiki>
it does take a while, doesn't it
<bzitzow>
Spooner: is there a project you are working on I could help out with?
alekst has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Ping timeout: 245 seconds]
DanKnox_away is now known as DanKnox
chjunior has joined #ruby
burlyscudd has quit [Read error: Operation timed out]
<pontiki>
bzitzow: here's what you do: find a project that looks interesting (FSVO interesting to you); read the outstanding issues list; find something to work on; fork the repo; work on it (write tests, code, run tests, rinse repeat until all green); make sure you've met the project guidelines if there are any; issue PR and update issue
freerobby has joined #ruby
<pontiki>
BAM! you are now contributing
i_s has joined #ruby
devoldmx3 has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
jim0thy_ has quit [Quit: jim0thy_]
Voodoofish430 has joined #ruby
tonini has quit [Remote host closed the connection]
zastern_ has joined #ruby
RedB3ard has joined #ruby
<spike|spiegel>
who suddenly says "PR"s are the way to contribute? :)
apeiros has quit [Remote host closed the connection]
tabolario has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
mlpinit_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
zastern has quit [Ping timeout: 264 seconds]
JZTech101 has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 256 seconds]
dgarstang has joined #ruby
mrsolo has joined #ruby
ntus1017 has joined #ruby
<dgarstang>
I'm using chef... and it's using net:ssh... which seems to ignore my .ssh/config file. Any way to make it do that?
spider-mario has joined #ruby
freerobby has quit [Ping timeout: 268 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
tonini has joined #ruby
anay has joined #ruby
klaut has quit [Remote host closed the connection]
jmeeuwen has quit [Ping timeout: 245 seconds]
troessner has quit [Quit: Leaving]
Senjai has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
RedB3ard has quit []
c0rn has joined #ruby
<Xeago>
May I have your opinion about the following programming test to be used during pre-screening of the recruitment process?
<waxjar>
to me that feels like it's testing my math rather than my ruby
jarray52 has joined #ruby
freerobby has joined #ruby
c0rn has joined #ruby
<havenwood>
Xeago: I'd much prefer the problem simply stating the expected input and desired output. I think that ^ would best judge ability to follow obtuse directions, but I guess it requires the ability to parse.
amacgregor has joined #ruby
<havenwood>
meaningless single-letter variables are confusing
Companion is now known as companion
zeropx has joined #ruby
dodosan has joined #ruby
zeropx has quit [Client Quit]
zeropx has joined #ruby
<Xeago>
it is mostly number theory
Es0teric has quit [Quit: Computer has gone to sleep.]
<Xeago>
I will expand a bit on input and output
<Xeago>
but input and output is mentioned?
_veer has quit [Ping timeout: 276 seconds]
tylersmith has joined #ruby
<Xeago>
would it be better to change the second example to something different?
jds has quit [Ping timeout: 245 seconds]
tonini has quit [Remote host closed the connection]
madumo has joined #ruby
shadoi has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
Niichan has joined #ruby
JZTech101 has joined #ruby
tylersmith has joined #ruby
_honning_ has quit [Ping timeout: 264 seconds]
<havenwood>
Xeago: Actually, they have a number of nice problems. I think the constraints should be optional (only if they matter, because confusing when they are irrelevant).
Al_ has quit [Quit: Al_]
zastern_ has quit [Remote host closed the connection]
seich- has joined #ruby
<Xeago>
thanks will look at them
* Xeago
starts his commute
zombiebit has quit [Remote host closed the connection]
redmenace has quit [Quit: leaving]
huf has joined #ruby
<havenwood>
^ That was a bad example I think, because only one example input/output. Nice to have that aspect highlighted imho.
horofox has quit [Quit: Leaving.]
<huf>
hi guys, what's the recommended "simple install" procedure for ruby? similar to perlbrew for perl
<havenwood>
Nicer to see that someone can think for themselves given realistic problems than follow directions I think.
<huf>
curl someurl | sh and the rest is bootstrapped and lets you have any version you want in your homedir
zastern has joined #ruby
<Xeago>
havenwood: yes, I have already redone that part, more in 35 minutes
Xeago has quit [Remote host closed the connection]
<ryannielson>
I'm using the Instagram Gem: https://github.com/Instagram/instagram-ruby-gem in one of my projects. I'm fairly new to testing, and I'm wondering what the best way to test something like this would be. Currently using rspec and factory girl if that matters.
hamakn has quit [Remote host closed the connection]
<xybre>
They're pretty much the same thing.
thoolihan has joined #ruby
<huf>
any reason to pick one over the other?
<havenwood>
huf: Options include RVM, rbenv/ruby-build and chruby/ruby-install.
khushildep has quit [Quit: khushildep]
<huf>
"does not hook cd"
tjad has joined #ruby
<huf>
i'm sold :D
hamakn has joined #ruby
<havenwood>
hehe
stuartrexking has joined #ruby
<xybre>
RVM was first and is most used, chruby is recent. RVM automatically changes Ruby or Gemsets when you cd into a directory if you tell it to. chruby does not.
devoldmx3 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
cowgarden has joined #ruby
<huf>
hmm, i cant find the way to install chruby without root, is that missing from the docs or am i blind?
anay has quit [Remote host closed the connection]
<xybre>
Oh, and RVM strongly suggests *not* installing as root. Dunno about chruby.
shadoi has quit [Quit: Leaving.]
phantasm66 has joined #ruby
jmeeuwen has joined #ruby
JDHankle_ is now known as JDHankle
hamakn has quit [Ping timeout: 245 seconds]
<xybre>
huf: are you on OSX or Linux?
<huf>
linux
JZTech101 is now known as JZ|Zzz
cougarten has quit [Ping timeout: 264 seconds]
JZ|Zzz is now known as JZTech101
Demo_of_doom has joined #ruby
<xybre>
Seriously, just use RVM. `\curl -L https://get.rvm.io | bash -s stable --ruby`
banister has joined #ruby
<xybre>
If you don't like it, you can just do `rvm implode` and it will be gone.
JZTech101 is now known as JZ|Zzz
devoldmx3 has quit [Read error: Connection reset by peer]
malcolmva has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 248 seconds]
malcolmva has joined #ruby
tealmage has joined #ruby
io_syl has joined #ruby
Mon_Ouie has joined #ruby
Ciscoridze has quit [Quit: WeeChat 0.4.1]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
mmitchell has joined #ruby
sqd has joined #ruby
<ismell>
i feel stupid,c =(DateTime.parse("...") - DateTime.parse("..."))
<ismell>
what is c?
<ismell>
I want to find the number of seconds between two date times
<ziggles>
With regards to processing in parallel, how should I choose when to use forking vs threading?
<apeiros>
ismell: ri DateTime#-
<apeiros>
it tells you that the diff is in days
<apeiros>
ziggles: well, threading in ruby is not parallel for starters. only concurrent.
Giorgio has quit [Ping timeout: 246 seconds]
<apeiros>
unless you use jruby
<ismell>
is it possible to get the diff in seconds?
<apeiros>
ismell: if you know very very basic math, yes.
freerobby has quit [Quit: Leaving.]
<endash>
i always forget the obvious operators
<endash>
and find myself searching for some named method
<xybre>
ismell: c =(DateTime.parse("...").to_i - DateTime.parse("...").to_i)
<xybre>
c == seconds_difference
<ziggles>
apeiros: this is due to the global interpreter lock ?
dankest has joined #ruby
<apeiros>
ziggles: correct
freerobby has joined #ruby
<ziggles>
apeiros: then i must be a victim of a placebo lol... I wrote some code and using threads it was much faster. granted it wasn't benchmarked... but it felt faster.
marius has joined #ruby
<ismell>
don't seem to be a to_i on the result of parse
fmcgeough has joined #ruby
<ismell>
but if i do c*24, that gives me hours
<apeiros>
ziggles: if your problem is IO bound, that effect will happen, yes
<ismell>
thanks,
<apeiros>
ziggles: but that's the difference between concurrent and parallel
<ziggles>
apeiros: AH... would a network request still be considered "IO" ?
adambeynon has joined #ruby
<apeiros>
ziggles: of course
tealmage has quit [Ping timeout: 256 seconds]
<ziggles>
apeiros: makes sense then. i was doing nothing process intensive... just querying some APIs
cowgarden has quit [Read error: Operation timed out]
<apeiros>
yupp, that'd mean code is mostly waiting for the response, which means ruby can schedule other threads.
devoldmx has quit [Read error: Connection reset by peer]
kreisys has joined #ruby
buibex has joined #ruby
<xybre>
ismell: ..parse.to_time.to_i gives the unix timestamp
ziggles has quit [Remote host closed the connection]
horofox has joined #ruby
jonathanwallace has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
interactionjaxsn has joined #ruby
Vivekananda has joined #ruby
shevy2 has joined #ruby
cads has joined #ruby
sambao21 has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
poll876 has joined #ruby
blackmesa has joined #ruby
<theRoUS>
never mind, backing down to an earlier version of yard fixed it :-(
arietis has joined #ruby
devoldmx has joined #ruby
khushildep has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
Xeago has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Read error: Connection reset by peer]
redmenace has joined #ruby
freerobby has quit [Quit: Leaving.]
brennanMKE has joined #ruby
alvaro_o has joined #ruby
freerobby has joined #ruby
jerius_ has joined #ruby
tjbiddle has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
browndawg has quit [Quit: Leaving.]
barratt has joined #ruby
c0rn has quit [Ping timeout: 246 seconds]
pel_daniel has joined #ruby
colonolGron has joined #ruby
c0rn has joined #ruby
shevy2 is now known as shevy
<gazarsgo>
is Nokogiri::Slop really a terrible idea to use ?
barratt has quit [Client Quit]
Arkantos has joined #ruby
Arkantos has left #ruby [""The Cloud" is something idiots call what the rest of us call "The Internet""]
x1337807x has joined #ruby
jonahR has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
RichardBaker has quit [Quit: RichardBaker]
thebastl has joined #ruby
thebastl has quit [Remote host closed the connection]
devoldmx has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
vlad_starkov has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
<epitron>
gazarsgo: what are you trying to do why are you trying to do it
<gazarsgo>
i'm just trying to pull some xml data into a hash
bradhe has joined #ruby
pel_daniel has quit [Ping timeout: 245 seconds]
staafl has quit [Read error: Connection reset by peer]
companion is now known as Companion
huevon has joined #ruby
entelechios has joined #ruby
pel_daniel has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
tjad has quit [Ping timeout: 256 seconds]
mlpinit has joined #ruby
noop has joined #ruby
arietis has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
kirun has joined #ruby
hopheady has quit [Ping timeout: 245 seconds]
snouv_ has joined #ruby
Companion is now known as companion
YaNakilon has quit [Ping timeout: 264 seconds]
nfk has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
saarinen has quit [Quit: saarinen]
companion is now known as Companion
noopq has quit [Ping timeout: 264 seconds]
ukd1 has joined #ruby
fenicks has joined #ruby
workmad3 has joined #ruby
YaNakilon has joined #ruby
hamakn has quit [Ping timeout: 276 seconds]
Diranged has left #ruby [#ruby]
unstable has left #ruby [#ruby]
<gazarsgo>
xml2json was surprisingly light on hits on the interwebs
Kricir has quit [Ping timeout: 276 seconds]
Haya has quit [Read error: Connection reset by peer]
tonini has joined #ruby
horofox has quit [Quit: Leaving.]
cantonic has joined #ruby
Haya has joined #ruby
zastern has quit [Remote host closed the connection]
zastern has joined #ruby
<epitron>
heh.. xml to json is a nasty hack
<epitron>
google's gdata apis uses it
cj3kim has joined #ruby
itcharlie has left #ruby [#ruby]
<epitron>
if you want to turn xml into json, you either have to rethink how you want to structure the data so the json isn't nasty, or do something nasty
efrainolivares has joined #ruby
<epitron>
(unless you're lucky, and all your xml is already structured as json)
<epitron>
the non-nasty restructuring step is a manual xml->json converter
<xybre>
I had a project last year where we built an ETL system that dumped 30 million records into Mongo every morning. Mongo was never a bottleneck. We had mongo clustered and set up read-slaves to scale.
<gazarsgo>
that's cool, how did you test network partitions ?
<xybre>
It's not rocket science. And it took much less work than using Postgres.
<xybre>
What about it? The write-masters would sync up the slaves when the network became available again.
<gazarsgo>
so you didn't test network partitions ?
platzhirsch has joined #ruby
jds_ has quit [Ping timeout: 245 seconds]
<xybre>
Nevermind, jsut use Oracle. That's the best plan.
<platzhirsch>
is there an oracle gem?
fmcgeough has quit [Quit: fmcgeough]
amacgregor has joined #ruby
<Nilium>
I hate you, -0.0 >:|
jds has joined #ruby
nhubbard has joined #ruby
<banister>
platzhirsch: the woman in blue she's asking for revenge the man in white, that's you, says he has no friends...the river's swollen up with rusty cans and the trees are burning in your promised land! (no, there's no gem afaik)
<shevy>
up until 2 days ago, I though basically that... when you compile for x32, it will work on x32 architecture, if you compile for x64 it will work on x64 again (linux)
<shevy>
*thought
<Nilium>
Nope.
<Nilium>
They should fix that too.
<shevy>
but this is not so simple! you also need to take the glibc version into account... :(
<shevy>
my current glibc is 2.11.3, and the glibc I used before was I think 2.17, and the binaries I compiled scream at me saying that my libc version is too old
<shevy>
oh wait sorry
<shevy>
glibc 2.15:
maxmanders has quit [Quit: Computer has gone to sleep.]
<shevy>
./ruby: /lib/libc.so.6: version `GLIBC_2.15' not found (required by ./ruby)
jlast has joined #ruby
jds has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
<Nilium>
≤ and ≥ are easier to see because their bottoms don't collide with the underline, but otherwise it's really bad. At any rate, don't try to weasel your way out of this by arguing that Wikipedia does it, 'cause bad is still bad.
<Xeago>
Nilium: don't really know how to fix it without making the whole page bigger..
<Nilium>
Looks like the monospaced font handles the symbol better.
<iliketurtles>
If i have {:class=>"control-label"} and {:class=>"checkbox"}, how can I merge them to have a resultant hash of {:class=>"control-label checkbox"}
<Xeago>
I think the boldness over the monospace looks odd
<Xeago>
might be my local fonts tho
staafl has quit [Ping timeout: 256 seconds]
cowgarden has joined #ruby
breakingthings has quit [Quit: breakingthings]
<Nilium>
Though there's always the choice of <span style="font-size: 1.4em">⊆</span>
<Xeago>
I am not editing html, it is just an automated output link
<Nilium>
That said, the baseline looks wonky because of that.
<rien>
I need some pry help. How can I basically do what is meant by this (not valid code): (someObj.some_method arg1, arg2).pry ?
brennanMKE has joined #ruby
<rien>
I want to then step through it with the help of pry-byebug
Senjai has joined #ruby
Senjai has joined #ruby
Lewix has joined #ruby
slap_stick has quit [Disconnected by services]
Mon_Ouie has quit [Ping timeout: 245 seconds]
<iliketurtles>
<< {:class=>"control-label"}.merge( {:class=>"checkbox"}){ |key, first, second| first + " " + second }
<rien>
but basically I want to set a breakpoint at the beginning of some call that I'll do in my rails console / irb
<rien>
banister: ping ^
<Nilium>
binding.pry ; your-code-here?
slap_stick has joined #ruby
<rien>
Nilium: my code after it?
efrainolivares has joined #ruby
<Nilium>
Yes. Just break and then step.
lushious has quit [Ping timeout: 240 seconds]
jds has quit [Ping timeout: 276 seconds]
<slap_stick>
hey i am having a weird issue with rubygems, i've installed a gem, i can see it installed in the gem.path , but a gem list doesn't show it and i'm not sure what i should do to debug why that might be?
tonini has quit [Remote host closed the connection]
krawchyk has quit [Remote host closed the connection]
<rien>
Nilium: hmm... ok let me try that. I saw the example on github but for some reason thought it wouldn't work like that in the console / irb
Kricir has joined #ruby
<Nilium>
slap_stick: What's your gem env gempath say?
<Nilium>
Well, more specifically, is it in that path?
<slap_stick>
yep it's i that path
tonini has joined #ruby
<slap_stick>
thats what i used to check
mneorr has quit [Remote host closed the connection]
<slap_stick>
ruby -r rubygems -e "p Gem.path" when i check inside that path, i can see it installed, but for some reason it's just not showing
dodosan has quit [Remote host closed the connection]
<Nilium>
Hm.
<Nilium>
Using rvm?
<slap_stick>
nope
<Nilium>
I got nothing then.
<slap_stick>
yeh me neither, very weird
lushious has joined #ruby
geekbri has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 245 seconds]
tjad has quit [Ping timeout: 264 seconds]
chriskk has joined #ruby
tonini has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
rickruby has quit [Remote host closed the connection]
efrainolivares has quit [Quit: efrainolivares]
maxmanders has quit [Quit: Computer has gone to sleep.]
staafl has joined #ruby
supergiantrobot has joined #ruby
sebastiansier has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
ixti has quit [Ping timeout: 256 seconds]
buibex has quit [Remote host closed the connection]
badquanta has quit [Remote host closed the connection]
jdenen1 has quit [Quit: Leaving.]
ixti has joined #ruby
ebanoid has joined #ruby
<shevy>
what is the better language
<shevy>
ruby or python?
efrainolivares has joined #ruby
Demo_of_doom has quit [Remote host closed the connection]
<apeiros>
scala!
<shevy>
I mean real languages that people really use
jdenen has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<duke_nukem>
Go
twoism has quit [Remote host closed the connection]
<alpha123>
shevy: Twitter uses scala
tonini has joined #ruby
<duke_nukem>
as well as Yammer
<apeiros>
shevy: ok, but then how can we choose any? nobody uses ruby nor python…
twoism has joined #ruby
khushildep has quit [Quit: khushildep]
postmodern has joined #ruby
<alpha123>
shevy: There's no such thing as a "better language". I personally prefer Ruby, because Python tends to shun its functional nature while Ruby embraces it
<shevy>
nah there are many thousand people who use either
<shevy>
didn't twitter use ruby before?
tvw has joined #ruby
<alpha123>
shevy: Twitter uses both Ruby and Scala
<shevy>
hmm
<alpha123>
Scala for the backend, Ruby for the frontend
<jericon>
Yup, that's right
* alpha123
wants to work at Twitter
<jericon>
alpha123: What do you do? Are you looking for a job?
<alpha123>
jericon: I'm a high school student, but yes, I sort of am.
_veer has quit [Ping timeout: 264 seconds]
<jericon>
alpha123: Well... I actually can't speak to that situation, but I know that we do a lot of internships :)
* jericon
<- MySQL DBA at Twitter
<alpha123>
As for what I do, math, programming, occasional art and music, oh and schoolwork. :P
<alpha123>
jericon: cool
<gazarsgo>
jericon: do you know why no status on the oauth/session outage today ?
nucatus has joined #ruby
<duke_nukem>
jericon: that must be rough
<alpha123>
jericon: Unfortunately I'm in Colorado, do you do anything anywhere other than California?
DrCode has quit [Remote host closed the connection]
tacos1de has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
JaTochNietDan has joined #ruby
<jericon>
gazarsgo: nope, though you can maybe look at #twitterapi for more info (Didn't even know there were any issues)
<jericon>
duke_nukem: Keeps me busy
<duke_nukem>
jericon: at least it's not boring!
<gazarsgo>
yeah i'm the only one who's said anything in #twitterapi today
<jericon>
alpha123: We have remote offices all over the world, and we actually have a number of remote employees, even though the main office is here in SF
twoism has quit [Ping timeout: 268 seconds]
Bry8Star{T2 has joined #ruby
<jericon>
Main engineering offices are Seattle, Boston and SF. Most of the rest is sales and marketing.
<alpha123>
jericon: Thanks! I think you guys do really cool stuff over there in languages I like. :)
DrCode has joined #ruby
tonini has quit [Remote host closed the connection]
breakingthings has joined #ruby
jds has joined #ruby
Nisstyre-laptop has joined #ruby
Nisstyre-laptop is now known as nisstyre
end_guy has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
c0rn has quit [Quit: Computer has gone to sleep.]
marius has quit [Ping timeout: 246 seconds]
buibex has joined #ruby
sambao21 has joined #ruby
devoldmx has joined #ruby
tonini has joined #ruby
spider-mario has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
tonini has quit [Remote host closed the connection]
marius has joined #ruby
Vivekananda has joined #ruby
havenwood has quit [Remote host closed the connection]
Kricir has joined #ruby
dodosan has joined #ruby
mark_locklear has quit [Ping timeout: 276 seconds]
Spami has joined #ruby
homelinen has quit [Ping timeout: 256 seconds]
nucatus has quit [Remote host closed the connection]
nucatus has joined #ruby
saarinen has joined #ruby
Companion is now known as companion
brain_shim has quit [Ping timeout: 268 seconds]
homelinen has joined #ruby
rclanan has joined #ruby
tacos1de has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
Bry8Star{T2 has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 276 seconds]
Bry8Star{T2 has joined #ruby
rickruby has joined #ruby
maxmanders has joined #ruby
leonidlm has joined #ruby
_veer has joined #ruby
dtcrshr has quit [Quit: poff]
_veer has quit [Changing host]
_veer has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
nomenkun has joined #ruby
ffranz has quit [Quit: Leaving]
oddalot has quit [Ping timeout: 264 seconds]
IceyEC has quit [Quit: IceyEC]
ixti has quit [Ping timeout: 256 seconds]
brennanMKE has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
moted has quit [Quit: moted]
machuga is now known as machuga|away
moted has joined #ruby
machuga|away is now known as machuga
devoldmx has quit [Read error: Connection reset by peer]
kaldrenon has quit [Remote host closed the connection]
devoldmx has joined #ruby
jdenen has quit [Quit: Leaving.]
rickruby has quit [Ping timeout: 264 seconds]
maniacal has quit [Ping timeout: 264 seconds]
jdenen has joined #ruby
tanema has quit [Remote host closed the connection]
awc737 has quit [Ping timeout: 246 seconds]
Catie has quit [Ping timeout: 246 seconds]
phite has quit [Ping timeout: 246 seconds]
JZTech101 is now known as JZ|Zzz
narcan has joined #ruby
tealmage has joined #ruby
buibex has quit [Remote host closed the connection]
<claymore_>
say I have an existing file object, Dir.foreach("./foo") { |f| ... how do I then read that file? If the file object doesn't exist yet, I can do File.open("filename", "r), but I can't do f.open?
BlueShark has quit [Ping timeout: 256 seconds]
Matriks has quit [Remote host closed the connection]
pcarrier has quit [Ping timeout: 246 seconds]
ixti has joined #ruby
BlueShark has joined #ruby
tommyvyo has quit [Quit:]
ukd1 has joined #ruby
<shevy>
does it have to be that way
mneorr has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 245 seconds]
<shevy>
Dir['./foo/'].each {|file| File.readlines(file) if File.exist? file }
<ccolorado>
shevy: xybre thanks. this is is exactly the information i wanted :)
<xybre>
ccolorado: :D
<shevy>
eh, I meant to do ... X[-1], but you get the idea ...
<ccolorado>
shevy: yup
<ccolorado>
almost always asking the right question is the hard part
<rien>
xybre: pretend this is in all uppercase: thank you so much!
tommyvyo has joined #ruby
<shevy>
it's a bit ugly though to use constants like that
<rien>
xybre: I couldn't find that anywhere
<shevy>
apeiros thinks that constants should be true constants
jlast has quit [Remote host closed the connection]
<shevy>
Math::PI # => 3.141592653589793
<shevy>
Math::PI = 5
<xybre>
rien: I have no idea if its documented, I think I found it by accident
<shevy>
Math::PI # => 5
<xybre>
rien: you're welcome :)
tommyvyo has quit [Client Quit]
<Senjai>
shevy: It's left to the programmer.. You shouldn't be changing them anyway. If you want it to be a true constant, call #freeze on it.
redmenace has quit [Ping timeout: 268 seconds]
<shevy>
Math::PI.freeze
<shevy>
Math::PI = 5
<shevy>
Math::PI # => 5
<shevy>
oh wait
<shevy>
I can free the Math module
<shevy>
I mean, freeze
<shevy>
Math.freeze
<shevy>
Math::PI = 22
gazarsgo has quit [Quit: gazarsgo]
<shevy>
RuntimeError: can't modify frozen Module
<shevy>
cool, don't think I tried that before
<shevy>
icy cold ruby
<rien>
hey shevy do you know a way to step into this block: log(sql, name) { @connection.query(sql) }
<pontiki>
oh good. Math will still work in Kentucky.
<rien>
I want to step over log() and into ...query()
<shevy>
rien, sorry no idea, I don't use pry
<rien>
shevy: oh ok, nvm, thanks :)
<Senjai>
rien: binding.pry before @connection.query,
maxmanders has joined #ruby
pyrac has joined #ruby
<Senjai>
rien: then cd @connection
<rien>
well it's not my source code, Senjai
<shevy>
do people actually use .freeze?
<Xeago>
or just call it on the prompt
<rien>
it's ActiveRecord's
brennanMKE has quit [Remote host closed the connection]
<Xeago>
and then skip over the first next statement
<Xeago>
because the log method is not important for your debugging
failshell has quit [Read error: Operation timed out]
<pontiki>
i've seen it a few places, shevy.
moshee has joined #ruby
<rien>
can you rephrase that? what do you mean by "skip over the first next statement"?
emanu has joined #ruby
<pontiki>
i'm not sure it was necessary in all of them
elux has quit [Quit: Leaving...]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
<Xeago>
if you are about to execute log(sql, name) { @connection.query(sql) } as the next statement
snovak has quit [Remote host closed the connection]
<Xeago>
run @connection.query(sql) on the prompt
s0ber has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
snovak has joined #ruby
<Xeago>
and then use the skip function of the debugger (it has one, I read it somewhere, don't ask me how) to skip over it
<Xeago>
without it being executed twice
BillCriswell has quit [Remote host closed the connection]
denken_ is now known as denken
<shevy>
pontiki ok
Kricir has joined #ruby
s0ber has joined #ruby
tanema has joined #ruby
brennanMKE has joined #ruby
<rien>
Xeago: ok will read up on it, thanks
mando has quit [Remote host closed the connection]
Sammael has joined #ruby
mlpinit has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 256 seconds]
claymore_ has quit [Quit: Leaving]
<shevy>
guys ...
ItSANgo has joined #ruby
<shevy>
why is rails so popular?
tylersmith has quit [Read error: Connection reset by peer]
<Xeago>
because it is highly opinionated
<rien>
shevy: same reason java is popular. it tells you where to put things so you feel safe. I know you're ironically asking it though
tylersmith has joined #ruby
<shevy>
no no
brennanMKE has quit [Remote host closed the connection]
<shevy>
only half ironic
<shevy>
because it is successful after all
evo510 has quit [Quit: Page closed]
<Xeago>
copy-paste coding in rails is easier than c/p coding in java..
gemmy has left #ruby [#ruby]
<shevy>
the local technical university of vienna is using rails for the students/exam part, and it's really great, compared to some older parts which are not in rails
cmyers has left #ruby [#ruby]
<shevy>
you can autogenerate the .pdf files with your current record, that is nifty :D
brennanMKE has joined #ruby
<rien>
shevy: I honestly believe it's because it tells you where to put things.
<shevy>
hmm
codecop has quit [Quit: Išeinu]
<rien>
shevy: however I can never talk about these things in #ror without being immediately labeled a troll
Kricir has quit [Remote host closed the connection]
<shevy>
is that so important to have a framework tell you where to put something?
<shevy>
hehe... well, if I were to use rails, I would not want to stay in #ror anyway :P
Kricir has joined #ruby
brain_shim has quit [Ping timeout: 256 seconds]
xcv has quit [Remote host closed the connection]
<rien>
shevy: it lowers the barrier of entry, it "gets you started" without your having done anything yet, helps remove doubts about what to do next (think TDD)
popl has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<shevy>
makes sense
<rien>
shevy: makes employees fungible because now every rails project is structured the same
<xybre>
shevy: yes. vacansopapurosophobia.
Krajsnick has joined #ruby
interactionjaxsn has joined #ruby
<rien>
shevy: last night at #ror I said I'm planning to go from Rails to Sinatra at work here, and I was accused of being a troll
<shevy>
hehe
ravster has quit [Quit: Leaving.]
<shevy>
well
<rien>
shevy: lol what's your criticism of #ror?
<terrellt>
It has a structure and a methodology to things. There's best practices, a large community, and you can spin up a basic application very quickly. It comes baked with a variety of tools that make spinning up a maintainable application very fast.
<shevy>
sinatra feels a bit too lean
<rien>
terrellt++
<xybre>
I set up my first real Sinatra app last weekend. I'm more than happy with it.
<rien>
shevy: as a foundation :) then we add stuff we need
<Xeago>
"most thinking has already been done for you"
<shevy>
rien dunno really, I was only a few times there, the atmosphere did not seem that great to me back then, but it was like 3 years ago or so
sambao21 has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
Kobrakao has quit [Ping timeout: 264 seconds]
<Xeago>
tbh, I don't like #rubyonrails
<rien>
shevy: I just need Rails to stop telling me where to put my files and structure my code, as I feel it's restraining to the team... it encourages bad structuring
<shevy>
I was on ruby 1.8.7 until perhaps 3 months or so ago, I finally switched successfully (this time for real)
<xybre>
I have it running pretty much like RoR without the cruft. I'm using coffeescript and sass and slim templates behind Unicorn and Nginx.
brennanMKE has quit [Remote host closed the connection]
<rien>
Xeago: can you elaborate? I'm really curious. I might be starting to dislike it.
<Xeago>
I am talking about the channel
<rien>
xybre: it = Sinatra?
i_s_ has joined #ruby
<rien>
xybre: me too
<xybre>
rien: yes, sinatra :)
<shevy>
hmm
<Xeago>
they refuse to read whatever you are saying, if you don't include a gist to "real code"
maniacal has joined #ruby
<Xeago>
even tho my example code that I have clearly written out in 1 or 2 lines for them is complete
Kruppe has quit [Ping timeout: 256 seconds]
<xybre>
Xeago: code is complex, especially with Rails, you need context to debug.
<Xeago>
unambiguous and shows the issue
<shevy>
xybre, that sounds like a lot to learn though... I have heard of sass and slim and unicorn but never used it myself. coffeescript also only very briefly, not much. and I still use apache, learned the most parts in it years ago, now I feel a bit lazy to change
Kricir has quit [Ping timeout: 264 seconds]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago>
xybre: thing is, they do that persistently, even if you give all the context
<Xeago>
no gist, name: !foo
<Xeago>
or !code
<Xeago>
or whatever it is
<xybre>
shevy: You don't need any of those things, you can use ERB and static javascript and css with passenger and Apache, these are just the tools I like :)
i_s has quit [Ping timeout: 246 seconds]
<xybre>
Xeago: I do it too, code helps a lot :)
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<Xeago>
some questions don't mandate code
<Xeago>
or code does not exist
<Xeago>
logs for last tuesday
splittingred_ has joined #ruby
<xybre>
Most do though, if you're doing rails.
jaynewstrom has quit [Read error: Connection reset by peer]
<Xeago>
show me going crazy
threesome has quit [Ping timeout: 276 seconds]
interactionjaxsn has quit [Ping timeout: 264 seconds]
<rien>
agree with all the comments so far :)
<xybre>
Ruby without Rails is different.
jaynewstrom has joined #ruby
<xybre>
Rails essentially extends the language and there's a lot of moving parts.
Guest65584 has quit [Remote host closed the connection]
zombiebit has joined #ruby
<Xeago>
anyways, night
Xeago has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 256 seconds]
<rien>
xybre: we should talk
robscomputer_ has joined #ruby
smathieu has joined #ruby
<xybre>
We are talking!
peregrine81 has quit [Quit: peregrine81]
nomenkun has quit [Remote host closed the connection]
robscomputer has quit [Read error: Connection reset by peer]
splittingred has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
splittingred_ is now known as splittingred
kirun has quit [Quit: Client exiting]
<rien>
xybre: lol don't go away then because I'm having to troubleshoot something hairy now :)
<rien>
xybre: ActiveRecord is truncating my MySql decimal(10,2) into decimal(10,0) <sadface>
vlad_starkov has joined #ruby
<shevy>
hehehe
<shevy>
be happy!
<shevy>
it is doing OPTIMIZATIONS for you man
bklane has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
JDHankle has quit [Remote host closed the connection]