jamie_ca_ has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 256 seconds]
osvico has quit [Ping timeout: 256 seconds]
<dmiller>
us there a way to convert an integer to a binary string representation of a certain length? For example, I would like 6.to_s(2) => 0110 instead of 110
<dmiller>
*is
miso1337 has joined #ruby
__alpaca has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mootpointer has joined #ruby
rsahae has joined #ruby
one8zero has quit [Ping timeout: 256 seconds]
aedornm has joined #ruby
brianpWins has quit [Quit: brianpWins]
jtdowney has quit [Remote host closed the connection]
Michael__ has quit [Remote host closed the connection]
bricker has joined #ruby
Spooner has quit [Remote host closed the connection]
Michael__ has joined #ruby
Niamkik_ has quit [Read error: Connection reset by peer]
Mekkis has quit [Excess Flood]
__alpaca has quit [Ping timeout: 256 seconds]
Niamkik has joined #ruby
Mekkis has joined #ruby
brennanMKE has joined #ruby
sambao21 has joined #ruby
xoxo has joined #ruby
Xeago has joined #ruby
elektronaut has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
lewix has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
superFluid has joined #ruby
locriani has joined #ruby
tommyvyo has quit [Quit:]
<superFluid>
anyone know how to force ruby to clear cache? I have images not updated, assuming there is a cache somewhere…? :/
baroquebobcat has quit [Ping timeout: 264 seconds]
idkazuma has joined #ruby
davedev24 has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 245 seconds]
_Amaan has joined #ruby
elektronaut has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
banjara has quit [Quit: Leaving.]
supernullset has joined #ruby
xoxo has quit [Quit: leaving]
cyberarm has joined #ruby
elektronaut has quit [Ping timeout: 245 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
jonathanwallace2 has quit [Ping timeout: 245 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
elektronaut has joined #ruby
Palantir has quit [Ping timeout: 252 seconds]
jonathanwallace2 has joined #ruby
lewix has joined #ruby
Xeago has joined #ruby
cloke_ has joined #ruby
huoxito has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
locriani has quit [Remote host closed the connection]
Niamkik has quit [Write error: Broken pipe]
cloke has quit [Ping timeout: 258 seconds]
cloke_ is now known as cloke
Niamkik has joined #ruby
nwertman_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
nwertman_ has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
<rsahae>
superFluid: what are you doing that uses images?
nwertman has joined #ruby
Squarepy has quit [Quit: Leaving]
hogeo has joined #ruby
philcrissman has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
cyong has joined #ruby
Dreamer3 has joined #ruby
tylersmith has quit [Quit: tylersmith]
<superFluid>
just css
wmoxam has joined #ruby
<superFluid>
using haml + css, its pretty simple setup at the moment.
wsterling has joined #ruby
chessguy has joined #ruby
nomenkun has joined #ruby
lewix has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
supernullset has left #ruby [#ruby]
wolcanus has joined #ruby
tds has quit [Quit: tds]
wolcanus has quit [Remote host closed the connection]
mootpointer has quit [Ping timeout: 268 seconds]
araujo has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 258 seconds]
yshh has quit [Remote host closed the connection]
osvico has joined #ruby
araujo has joined #ruby
wsterling has quit [Ping timeout: 240 seconds]
mootpointer has joined #ruby
jokke has quit [Ping timeout: 246 seconds]
jamesaxl has joined #ruby
stkowski has quit [Quit: stkowski]
mootpointer has quit [Client Quit]
Scient has quit [Ping timeout: 252 seconds]
Scient has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
rickmasta has quit [Quit: Leaving...]
nomenkun has quit [Remote host closed the connection]
decentrality has joined #ruby
arya_ has joined #ruby
jetblack has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
_maes_ has joined #ruby
brennanMKE has quit [Remote host closed the connection]
jnoob22 has quit [Remote host closed the connection]
_cheney3 has quit [Read error: Connection reset by peer]
wedgex has joined #ruby
zeade has quit [Quit: Leaving.]
tedstriker has quit [Quit: Anti-Fraping status set.]
nwertman_ has quit [Ping timeout: 264 seconds]
eka has quit [Quit: Computer has gone to sleep.]
decentrality has quit [Quit: decentrality]
Palantir has joined #ruby
Xeago has quit [Remote host closed the connection]
banjara has joined #ruby
jokke has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
Cultofmetatron has joined #ruby
timkohrumel has joined #ruby
wedgex has quit [Remote host closed the connection]
rickmasta has joined #ruby
IceDragon has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
mockra has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
JMcAfreak has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
rburton- has joined #ruby
twoism_ has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
yshh has joined #ruby
ZachBeta has joined #ruby
banjara has quit [Quit: Leaving.]
cloke has quit [Quit: cloke]
threesome has quit [Ping timeout: 256 seconds]
omg|its|otr has joined #ruby
anonymuse has joined #ruby
pcarrier has quit [Ping timeout: 248 seconds]
supergiantrobot_ has quit [Quit: supergiantrobot_]
freeayu has joined #ruby
mrsolo has quit [Quit: Leaving]
dmiller has quit [Remote host closed the connection]
<omg|its|otr>
When I put a stylesheet into an index.html.erb of a controller, all of the styles render fine. But when I move it to an application.html.erb then the css doesn't render at all. Any idea what might be causing this?
rsahae has joined #ruby
chessguy has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 245 seconds]
<rsahae>
superFluid: sorry, I DC'd for a while. Dunno if anyone answered your question but I assume you actually mean that you are using Rails, not just ruby?
jamesaxl has quit [Remote host closed the connection]
__alpaca has quit [Ping timeout: 256 seconds]
d11wtq has joined #ruby
<superFluid>
rsahae: yeah ror
<superFluid>
reading now
chessguy has joined #ruby
haxrbyte_ has joined #ruby
arya_ has quit []
<superFluid>
rsahae: that setting in rb file seems to be there, and I can't seem to run that suggested command to clear the cache
chessguy has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 245 seconds]
hogeo has quit [Remote host closed the connection]
<superFluid>
its really strange, it seems to update randomly. after a long while or if I update an unrelated file it seems to eventually update.
dmiller has joined #ruby
jonathanwallace2 has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
<rsahae>
superFluid: is it not updating in your dev environment, or prod environment?
mercwithamouth has joined #ruby
_Amaan_ has joined #ruby
<superFluid>
everything I have is dev atm, all local
<rsahae>
superFluid: When you say you "can't run that command", what did you try?
sambao21 has joined #ruby
<superFluid>
rsahae: tried terminal and console in my browser. wasn't sure which they were talking about.
<rsahae>
or do you mean that running that command and reloading the page had no effect?
<rsahae>
they probably mean the rails irb console
_Amaan has quit [Ping timeout: 276 seconds]
_Amaan_ is now known as _Amaan
<rsahae>
do you know about the rails console?
rickmasta has quit [Quit: Leaving...]
<superFluid>
nope, trying to read up on it now D:
<rsahae>
yeah, try that
<superFluid>
didn't even realize it was a thing.
<superFluid>
any suggested reading? most of the stuff I am finding doesn't seem to help.
timkohrumel has quit [Remote host closed the connection]
Animawish has joined #ruby
rakl has quit [Quit: sleeping]
timkohrumel has joined #ruby
aytch_ has quit [Remote host closed the connection]
newtonianb has joined #ruby
supergiantrobot has joined #ruby
<rsahae>
well
<rsahae>
the first thing I would do is get the page into the state where you know the image is not correct
<rsahae>
the open the rails console
<superFluid>
actually I just fiddled around in console and found it
<rsahae>
ahh ok great
<rsahae>
did that command help?
<superFluid>
nope :(
tds has joined #ruby
<superFluid>
cleared the cache, but doesn't seem to have done anything.
<rsahae>
Rails.cache.clear
<rsahae>
ahh
<rsahae>
maybe it's not a cache issue then
robbyoconnor has quit [Ping timeout: 260 seconds]
<superFluid>
hmm
statarb3 has quit [Ping timeout: 245 seconds]
<rsahae>
you may have to do some debugging, without knowing what you are doing and why, it's hard for me to help you
<rsahae>
but you could check the app logging, and maybe put some logging of your own around the image fetching
<rsahae>
and see what's going on
tjbiddle_ has joined #ruby
<superFluid>
hmm yeah
<superFluid>
its really weirding me out
kristofers has quit []
jdunck has quit [Ping timeout: 256 seconds]
<superFluid>
if I open the image via css inspector and right click to open in new tab the image is old
chessguy has joined #ruby
<superFluid>
then I refresh and its new
<superFluid>
and the correct one, but when I go back…it is old one again
<superFluid>
that is what is really getting me
peta_ has quit [Quit: peta_]
tjbiddle has quit [Read error: Connection reset by peer]
niceguy1234 has joined #ruby
tjbiddle has joined #ruby
<superFluid>
I'll keep fiddling with it though
<superFluid>
thanks for help
<rsahae>
ok, sorry I couldn't help more, not really my area of expertise
moos3 has quit [Quit: Computer has gone to sleep.]
koddsson has joined #ruby
hekin has joined #ruby
<superFluid>
no problem. it was an attempt at least
nwertman has quit [Remote host closed the connection]
_Amaan has quit [Quit: _Amaan]
tjbiddle_ has quit [Ping timeout: 255 seconds]
moos3 has joined #ruby
jamie_ca_ has joined #ruby
jamie_ca_ has quit [Client Quit]
nomenkun has joined #ruby
hekin has quit [Remote host closed the connection]
banjara has joined #ruby
hekin has joined #ruby
lewix has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
hekin has quit [Client Quit]
tjbiddle_ has joined #ruby
rickmasta has joined #ruby
kofno has joined #ruby
timkohrumel has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
rburton- has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
<awkisopen>
alright, somebody help me understand something
<awkisopen>
PP is part of the standard ruby library
<awkisopen>
however when I put "require 'PP'" into a ruby file, it complains that it can't find a file called pP
<awkisopen>
* PP
nomenkun has quit [Ping timeout: 255 seconds]
v0yager has joined #ruby
Leighton has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
stillEPIK has quit [Ping timeout: 252 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
EPIK has joined #ruby
tjbiddle_ has joined #ruby
<awkisopen>
if I don't require PP, it instead complains that there is no such method pp
mmitchell has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Ping timeout: 260 seconds]
nwertman has joined #ruby
infecto has quit [Ping timeout: 246 seconds]
v0yager has quit [Remote host closed the connection]
Nisstyre has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
infecto has joined #ruby
BrindleFly has quit [Quit: BrindleFly]
Z_Mass has joined #ruby
twoism has joined #ruby
Michael__ has quit [Ping timeout: 258 seconds]
mmitchell has quit [Ping timeout: 245 seconds]
tiripamwe has joined #ruby
wallerdev has joined #ruby
twoism has quit [Remote host closed the connection]
cod3r has quit [Ping timeout: 256 seconds]
twoism has joined #ruby
markisonfire has quit [Quit: markisonfire]
markisonfire has joined #ruby
ZachBeta has joined #ruby
arubin has joined #ruby
Vic has joined #ruby
headius has joined #ruby
Animawish has quit [Quit: Animawish]
GeissT has joined #ruby
cod3r has joined #ruby
markisonfire has left #ruby [#ruby]
bubblehead has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Quit: emmanuelux]
gchristensen has left #ruby ["WeeChat 0.4.0"]
jamie_ca_ has joined #ruby
segv_ has joined #ruby
Nautes has quit [Quit: Leaving]
mockra has joined #ruby
bjeanes- has quit [Quit: quitting]
Z_Mass has quit [Quit: Leaving]
bjeanes has joined #ruby
radic has joined #ruby
radic_ has quit [Ping timeout: 264 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
bubblehead has joined #ruby
segv_ has quit [Ping timeout: 245 seconds]
mockra has quit [Ping timeout: 268 seconds]
robustus has quit [Ping timeout: 255 seconds]
JoshyPHP has joined #ruby
iMadper is now known as iMadper|Coding
reset has quit [Ping timeout: 245 seconds]
tealmage has joined #ruby
robustus has joined #ruby
JoshyPHP has left #ruby [#ruby]
Palantir has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
Vic has left #ruby [#ruby]
moos3 has joined #ruby
wesside has joined #ruby
Kricir has joined #ruby
DrShoggoth has joined #ruby
cooldman224 has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
pcarrier has quit [Ping timeout: 256 seconds]
Dreamer3 has joined #ruby
aytch_ has joined #ruby
pcarrier has joined #ruby
Meeh is now known as Meeh_afk
twoism has quit [Ping timeout: 245 seconds]
agarie has quit [Remote host closed the connection]
cyberarm has quit [Remote host closed the connection]
__alpaca has joined #ruby
nomenkun has joined #ruby
Kricir has quit [Remote host closed the connection]
Ontolog_ has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
Kricir has joined #ruby
Palantir has joined #ruby
mixel has quit [Quit: mixel]
MrPoT4tO has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
__alpaca has quit [Ping timeout: 258 seconds]
momomomomo has quit [Client Quit]
nomenkun has quit [Ping timeout: 256 seconds]
tylersmith has quit [Quit: tylersmith]
kofno has joined #ruby
ebobby has quit [Quit: Lost terminal]
Bry8Star_ has quit [Remote host closed the connection]
brunoro has quit [Ping timeout: 260 seconds]
tomzx_mac_ has joined #ruby
Bry8Star has joined #ruby
chessguy has quit [Remote host closed the connection]
rakl has joined #ruby
tomzx_mac has quit [Ping timeout: 252 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
timkohrumel has joined #ruby
dwoodwoo has joined #ruby
sleetdrop has joined #ruby
Elico1 has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
MistuhKurtz has joined #ruby
timkohrumel has quit [Ping timeout: 256 seconds]
rsahae has quit [Quit: rsahae]
LaPetiteFromage has joined #ruby
freerobby1 has quit [Quit: Leaving.]
tjbiddle has joined #ruby
brennanMKE has joined #ruby
mockra has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<fsckd>
hi, i upgrade from ruby 1.9 to 2. now i get this error and i do not know what is causing it. /usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'unicorn' (>= 0) among 8 total gem(s) (Gem::LoadError)
_Amaan has joined #ruby
Matip has quit [Ping timeout: 255 seconds]
forced_request has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
bubblehead has quit [Remote host closed the connection]
Palantir has quit [Ping timeout: 252 seconds]
<reactormonk>
fsckd, the $GEM_HOME for 1.9 and 2 are different. you'll have to reinstall your dependencies
Matip has joined #ruby
Matip has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
Dreamer3 has quit [Client Quit]
rupee has quit [Quit: Leaving]
tjbiddle_ has joined #ruby
iMadper|Coding has quit [Remote host closed the connection]
nomenkun has joined #ruby
Z_Mass has joined #ruby
freerobby has joined #ruby
banister`sleep has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle_ is now known as tjbiddle
mmitchell has joined #ruby
<fsckd>
i forgot to say, i have set an envar GEM_HOME in 1.9 for installing system wide stuff in a location that doesn't conflict with the main package manager
nomenkun has quit [Ping timeout: 245 seconds]
<fsckd>
in what way does GEM_HOME change between 1.9 and 2.0?
Cultofmetatron has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
ossareh has quit [Ping timeout: 264 seconds]
tomzx_mac_ has quit [Ping timeout: 245 seconds]
djwonk has quit [Quit: djwonk]
tiripamwe has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
nwertman has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 255 seconds]
yannis has quit [Quit: yannis]
Heero has quit [Ping timeout: 246 seconds]
dwoodwoo has quit [Quit: dwoodwoo]
jimg has quit [Remote host closed the connection]
bothra has quit [Read error: Connection reset by peer]
bothra has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
tspike has joined #ruby
Ontolog has joined #ruby
nplusp has joined #ruby
twoism has joined #ruby
jovy88 has joined #ruby
zph has joined #ruby
zph has quit [Excess Flood]
jamesfung14 has quit [Read error: Operation timed out]
AgentWillyWonka has quit [Quit: Leaving...]
twoism_ has joined #ruby
twoism_ has quit [Remote host closed the connection]
dwoodwoo has joined #ruby
dwoodwoo has quit [Client Quit]
twoism_ has joined #ruby
jimg has joined #ruby
twoism has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
davedev24 has joined #ruby
newtonianb has quit [Ping timeout: 252 seconds]
fsckd is now known as kirhp
kirhp is now known as fsckd
nghialv2607 has joined #ruby
r0bby has joined #ruby
vlad_starkov has joined #ruby
BSaboia has joined #ruby
mercwithamouth has quit [Quit: leaving]
mercwithamouth has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
kofno has quit [Remote host closed the connection]
chessguy has joined #ruby
miso1337 has quit [Quit: afk]
cheeto_famine has joined #ruby
vertroa has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
ossareh has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Quit: leaving]
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
mercwithamouth has joined #ruby
AgentWillyWonka has joined #ruby
Matip has joined #ruby
mklappstuhl has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
nghialv2607 has quit [Remote host closed the connection]
<iMadper>
hi, all. I use Rsense for completion in Emacs. But it can't complete the Class which required from other file. For example, after `db = DBM.open('pdfs', 944, DBM::WRCREAT)`, when I input `db.`, the autocomplete return nothing. Should I paste my configures in my `.emacs`?
nghialv2607 has joined #ruby
cyong has quit [Quit: Leaving.]
nplusp has joined #ruby
davedev24 has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 256 seconds]
gstamp has quit [Quit: Computer has gone to sleep.]
SAUCYSALAMANDER has joined #ruby
kofno has quit [Remote host closed the connection]
s2013 has joined #ruby
splittingred has joined #ruby
akashj87 has quit [Ping timeout: 252 seconds]
MeatChicken has quit [Ping timeout: 252 seconds]
r0bby has quit [Ping timeout: 245 seconds]
sunshine_ is now known as daisy
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
daisy is now known as gus
gus has left #ruby [#ruby]
chessguy has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 248 seconds]
nplusp has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
__alpaca has joined #ruby
brain_shim_ has quit [Quit: Leaving]
__alpaca has quit [Read error: Connection reset by peer]
omg|its|otr has quit [Quit: Leaving]
niceguy1234 has quit [Ping timeout: 258 seconds]
__alpaca has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
cooldman224 has quit [Remote host closed the connection]
gstamp has joined #ruby
ariedler has quit [Remote host closed the connection]
vertroa has joined #ruby
scipi0 has joined #ruby
Ontolog has quit [Remote host closed the connection]
ossareh has quit [Ping timeout: 256 seconds]
tonini has joined #ruby
_Amaan has quit [Quit: _Amaan]
v0yager has joined #ruby
Yakko has quit [Read error: Connection reset by peer]
sayan has joined #ruby
vertroa has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
nignaztic has quit [Read error: Connection reset by peer]
nignaztic has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
SegFaultAX has quit [Ping timeout: 258 seconds]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
ahuman_ has joined #ruby
bijumon has joined #ruby
freeayu__ has joined #ruby
arusso has quit [Ping timeout: 258 seconds]
thorncp has quit [Ping timeout: 258 seconds]
<bijumon>
hello, can someone explain the regex "(.*?)" please
Mendel has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
arusso has joined #ruby
SegFaultAX has joined #ruby
splittingred has quit [Quit: splittingred]
thorncp has joined #ruby
lethjakm1 has joined #ruby
<lethjakm1>
hey, is there something like celerity for regular ruby?
<lethjakm1>
I don't understand why this is jruby only.
Mendel has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 272 seconds]
Cultofmetatron has joined #ruby
nomenkun has joined #ruby
freerobby has quit [Quit: Leaving.]
Cultofme_ has joined #ruby
dev__ has joined #ruby
wedgex has joined #ruby
nomenkun has quit [Ping timeout: 255 seconds]
s2013 has quit [Ping timeout: 245 seconds]
Cultofmetatron has quit [Ping timeout: 256 seconds]
wedgex has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
tomku has joined #ruby
jdunck has joined #ruby
vlad_starkov has joined #ruby
robscomputer_ has joined #ruby
<iMadper>
Hi, I use RSense for completion. But it can't complete the class which is "require"ed. For example "db = DBM.open('db') db.(no completion results here)". I checked it with Trouble Shooting Check List `` http://cx4a.org/software/rsense/manual.html#Trouble_Shooting ''. All of these are ok except `Wrapper frontend works well?`.
<shevy>
Hanmac you have become part of matz' brain :D
<shevy>
though he probably does not pay as much attention to old main ruby anymore, now with mruby :(
arturaz has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
baba has joined #ruby
hamed_r has quit [Quit: Leaving]
Cultofme_ has quit [Remote host closed the connection]
cod3r has quit [Ping timeout: 252 seconds]
<bijumon>
is it ok to ask a rspec rails q here?
<bijumon>
i havent much luck at #rails ever
<Hanmac>
bijumon: #rubyonrails
<injekt>
or #rspec
<bijumon>
Hanmac: i'll try there
<shevy>
cool... there is #rails and #rubyonrails?
<injekt>
#rails is for people who dont know there's #rubyonrails
<shevy>
poor souls
* shevy
tries to hide a grin
<injekt>
and #ror forwards there
<lewix>
03:03 <#ruby> injekt: #rails is for people who dont know there's #rubyonrails
<lewix>
what!
<lewix>
all this time i went to rails
<shevy>
though it's all a bit confusing, we have #ruby and there is #ruby-lang as well
<injekt>
just like #ruby is for people who dont know about #ruby-lang
<shevy>
:D
<injekt>
shevy: :P
<shevy>
time for me to lurk on #ruby-lang again
ExxKA has joined #ruby
<lewix>
no wonder
__alpaca has joined #ruby
<shevy>
gah
<shevy>
#ruby-lang :Cannot send to channel
Criztian has quit [Remote host closed the connection]
<injekt>
you haven't registered your nick?
tethra has quit [Changing host]
tethra has joined #ruby
anthonym has joined #ruby
<Hanmac>
ruby-lang is for the developers of ruby itself
<injekt>
no its not
<injekt>
that's ruby-core
<shevy>
injekt I am so lazy :(
<injekt>
ruby-lang was created just like this channel was created, just by 'official' people
HecAtic has quit [Quit: Àá¼ö]
<shevy>
Hanmac why are you not on #ruby-lang ?
<shevy>
yeah, some clever folks are only there and not here, like drbrain
<Hanmac>
hm i prefer bug issues
<injekt>
yeah I only came here like 3 weeks ago, been on #ruby-lang for ~5 years
<shevy>
Hanmac you like bug issues? :P
__alpaca has quit [Ping timeout: 258 seconds]
atno has joined #ruby
vertroa has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
corehook has left #ruby [#ruby]
pskosinski has quit [Ping timeout: 252 seconds]
<Hanmac>
;P
skattyadz has quit [Quit: skattyadz]
__alpaca has joined #ruby
threesome has joined #ruby
__alpaca has quit [Remote host closed the connection]
headius has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jovy88 has quit [Read error: Connection reset by peer]
marr has joined #ruby
jovy88 has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
corehook has joined #ruby
skattyadz has joined #ruby
RomainT1 has joined #ruby
skattyadz has quit [Client Quit]
<RomainT1>
Hi!
whitedawg has quit [Quit: Leaving.]
<bijumon>
damn, lads! #rubyonrails is giving me the silent treatment, and I'm starting to pull me hair out, couldsomeone at least take a look at my gist and tell me to sod off ;) pluease
rickmasta has joined #ruby
<bijumon>
ActionController::RoutingError: No route matches {:id=>"not-here", :controller=>"posts", :action=>"show"}
<bijumon>
I'm trying to test for a scenario where a site exists but a post doesnt
ph^ has joined #ruby
<bijumon>
resouces are nested site -> posts
divout has quit [Quit: Leaving.]
<injekt>
bijumon: dont rescue ActiveRecord::RecordNotFound
peta_ has joined #ruby
<injekt>
bijumon: if you dont want it to raise, use find_by_id instead
<bijumon>
injekt: I was trying to catch scenario where people would enter a wrong url
<injekt>
or catch the exception properly
<injekt>
using rescue_from
vertroa has joined #ruby
foofoobar has joined #ruby
<bijumon>
injekt: ty, googleing
ph^ has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
gommo has joined #ruby
rickmasta has quit [Quit: Leaving...]
d11wtq has joined #ruby
headius has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
BrindleFly has joined #ruby
davesahil has quit [Quit: Leaving]
danslo has quit [Quit: danslo]
Elhu has quit [Quit: Computer has gone to sleep.]
DonRichie has joined #ruby
anthonym has left #ruby [#ruby]
nomenkun has quit [Ping timeout: 240 seconds]
mediko has quit [Ping timeout: 252 seconds]
vertroa has quit [Ping timeout: 258 seconds]
divout has joined #ruby
mixel has joined #ruby
v0yager_ has joined #ruby
ph^ has joined #ruby
headius has joined #ruby
cool has quit [Quit: Connection closed for inactivity]
hogeo has quit [Remote host closed the connection]
backjlack has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
v0yager has quit [Ping timeout: 240 seconds]
mediko has joined #ruby
backjlack has joined #ruby
brujoand has joined #ruby
gommo has quit [Remote host closed the connection]
<brujoand>
hey guys. I have a standard unix config file "variable=value\n" etc.. now, what would be the best way to get to these variables from within a ruby script?
mklappstuhl has joined #ruby
yannis has joined #ruby
GeissT_ has joined #ruby
saiju has quit [Read error: Connection reset by peer]
BrindleFly has quit [Quit: BrindleFly]
jnoob22 has joined #ruby
vertroa has joined #ruby
saiju has joined #ruby
Kricir has joined #ruby
Xeago has joined #ruby
<injekt>
bijumon: read it, split on the "=" and load it into a hash
<injekt>
unless you want to load the variables into your env and use ENV
Astralum has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
Kricir has quit [Ping timeout: 258 seconds]
brujoand has left #ruby [#ruby]
Astralum has joined #ruby
headius has quit [Ping timeout: 256 seconds]
tk_ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
marr has quit [Ping timeout: 252 seconds]
tonini has joined #ruby
headius has joined #ruby
Astral_ has joined #ruby
v0yager_ has quit [Read error: Connection reset by peer]
v0yager has joined #ruby
BrindleFly has joined #ruby
vertroa has quit [Ping timeout: 264 seconds]
tedstriker has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
BrindleFly has quit [Client Quit]
tonini has quit [Ping timeout: 248 seconds]
<peta_>
given I have a functino foo, is there a way to do something like myArr.each (:foo) ?
crodas has quit [Ping timeout: 252 seconds]
<shevy>
peta_ how about .map
<peta_>
So that I can avoid writing a curly braces block only for getting the return vals of foo into the array
<peta_>
shevy: aaa … I mean .map
<shevy>
the curly braces are the block
<peta_>
yes
<peta_>
is there an shorter alternative?
<tedstriker>
add an & eg myArr.map(&:foo)
<injekt>
map(&method(:foo)
<shevy>
the only shortcut I could think of would be to use something like .map(&:strip)
<shevy>
3 people, 3 similar answers :)
<injekt>
mine is totally different ;)
<peta_>
okay, but the tenor is, that "alternatives" aren't neccessarily shorter
echevemaster has quit [Ping timeout: 272 seconds]
<injekt>
peta_: why are you trying to make this shorter?
<peta_>
so I stick at the obvious way :)
<peta_>
because wiritng {|a| foo(a) } loooked kind of too verbose for me … so I wondered if ruby has some syntactic sugareeeee for this
<peta_>
never mid
mklappstuhl has quit [Ping timeout: 245 seconds]
<injekt>
yeah &method(:foo) but curly braces is easier to read
<shevy>
peta_ but it is shorter than {}
mklappstuhl has joined #ruby
<shevy>
.map(&:strip) vs. .map{|x|x.strip}
<shevy>
".map(&:strip)".size # => 13
<shevy>
".map{|x|x.strip}".size # => 16
<injekt>
shevy: that doesn't do the same thing, foo is not a method on those objects
<shevy>
see peta_ ? :D
nkts has joined #ruby
<peta_>
shevy: yes, because the former kicks out all nils
<peta_>
:D
niklasb has quit [Ping timeout: 256 seconds]
<skoovdebo>
Come here to say thanks, ruby installed on my mac successfully, thanks for the help the other day
<peta_>
I am slowly becoming a kung foo rubyist
<shevy>
peta_ are you on some smartphone or something? "sugareeeee" <--- how do you type? :D
<shevy>
I had someone tell me some days ago "I am thumb typing". at first I thought it was a joke
<shevy>
how could people use only the thumb to type anything? it would make me mad...
Hanmac has quit [Quit: Leaving.]
<peta_>
shevy: here in germany we have such rectangular devices with lots of squared pieces on it that can be pressed
<shevy>
hehehe
Hanmac has joined #ruby
<shevy>
yeah, the classic way
<peta_>
the cool thing is however, that we can also keep them pressed
<shevy>
I like that one
<peta_>
:)
ExxKA has quit [Quit: This computer has gone to sleep]
<shevy>
ohh what irc client do you use peta_ ?
<shevy>
when I used irssi, I often mistyped and mispasted
<peta_>
colloquy
<shevy>
ok, don't know that one at all, I use xchat still
<peta_>
best client on earth
<injekt>
irssi > weechat > *
vlad_starkov has joined #ruby
<peta_>
at least for mac os
<peta_>
I'm on mac os
<shevy>
mIRC kind of convinced me that I need a graphical IRC client
<peta_>
(there these rectangular devices are even snow white!)
<peta_>
back in the old days I also used mIRC
RomainT1 has left #ruby [#ruby]
<shevy>
so that you know when you can clean your keyboard :P
<peta_>
I hated the photo of the developer that popped up in the shareware version
<peta_>
at every start
<peta_>
shevy: exactly
<peta_>
the brightness level of my keyboard is a reliable indicator for the hiygenic level of my flat
headius has quit [Ping timeout: 252 seconds]
<peta_>
okay, another one … is there rspec matcher I can use to state that the subject (it is an array) should only consist of e.g. NilClass values?
fermion has quit [Quit: Computer has gone to sleep.]
davedev24 has quit [Ping timeout: 245 seconds]
yalue has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
mark_locklear has joined #ruby
sandGorgon has joined #ruby
yashshah has joined #ruby
tiripamwe has joined #ruby
yacks has quit [Quit: Leaving]
iMadper has quit [Remote host closed the connection]
philcrissman has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
miso1337 has quit [Quit: afk]
bubblehead has joined #ruby
rickmasta has joined #ruby
vertroa has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
headius has quit [Quit: headius]
ferdev has joined #ruby
dr_bob has joined #ruby
Nom- has quit [Ping timeout: 256 seconds]
tonini has quit [Ping timeout: 248 seconds]
BrindleFly has joined #ruby
Nom- has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
tealmage has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
iMadper has joined #ruby
ferdev has joined #ruby
insel has joined #ruby
niceguyjames has joined #ruby
jimg has quit [Remote host closed the connection]
workmad3 has joined #ruby
invisime has joined #ruby
emergion has joined #ruby
ExxKA has joined #ruby
<insel>
hi, what is the better style "in" a ruby-script: write top ->bottom or create a module and call it with p.e. module.main?
Faris9 has joined #ruby
marr has quit [Ping timeout: 256 seconds]
Plumm3R has left #ruby [#ruby]
marr has joined #ruby
jbpros has joined #ruby
__alpaca has joined #ruby
Leighton has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
vertroa has quit [Ping timeout: 276 seconds]
<dr_bob>
Whatever you do your main logic must be invoked after you define all the types you need for the execution. I think it's a matter of taste. I usually define all types I need then start with command line parsing and the rest of the logic. I don't define specific main methods.
v0yager_ has joined #ruby
CyberMaN has quit [Changing host]
CyberMaN has joined #ruby
v0yager__ has joined #ruby
nilg has joined #ruby
RomainT1 has joined #ruby
v0yager has quit [Ping timeout: 256 seconds]
__alpaca has quit [Ping timeout: 256 seconds]
BrindleFly has quit [Quit: BrindleFly]
Nom- has quit [Ping timeout: 252 seconds]
v0yager_ has quit [Ping timeout: 245 seconds]
Nom- has joined #ruby
osvico has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<shevy>
insel I found it best to usually put only one module or one class in one .rb file
jmampost has joined #ruby
BSaboia has joined #ruby
freerobby has joined #ruby
<dr_bob>
shevy, for larger projects certainly. For scripts it depends.
v0yager__ has quit [Ping timeout: 256 seconds]
Nom- has quit [Changing host]
Nom- has joined #ruby
<shevy>
I work in ways as to minimize my poor old brain having to think
<shevy>
at ALL
<shevy>
I become like a zombie, you know?
* dr_bob
loads the silver bullets
Bry8Star_ has quit [Remote host closed the connection]
AndChat| has joined #ruby
<shevy>
ack :(
<shevy>
I am a vegan zombie
<dr_bob>
Dang!
mklappstuhl has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
LaPetiteFromage has joined #ruby
<dr_bob>
You always remind me of Don McLean, shevy.
Banistergalaxy has quit [Ping timeout: 245 seconds]
jmampost has quit [Remote host closed the connection]
BrindleFly has joined #ruby
<shevy>
duncan mcleod? highlander?
* shevy
strikes a really cool pose
<shevy>
I admit it, I like to wear a gown sometimes :-)
vertroa has joined #ruby
moos3 has joined #ruby
fermion has joined #ruby
nari_ has joined #ruby
Kricir has joined #ruby
gauteh has joined #ruby
sayan has joined #ruby
filipe has quit [Read error: Connection reset by peer]
yfeldblum has quit [Quit: Leaving]
<gauteh>
hey.. err.. is there anywhere I could find ruby c api reference?
filipe has joined #ruby
<injekt>
gauteh: not exactly, but README.ext is nice
ferdev has quit [Ping timeout: 252 seconds]
blueOxigen has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
ferdev has joined #ruby
<gauteh>
injekt: ok, im trying to figure out how i should replace rb_select_thread, its apperentely deprecated
RomainT1 has left #ruby [#ruby]
vertroa has quit [Ping timeout: 264 seconds]
<gauteh>
that is rb_thread_select
BizarreCake has quit [Quit: Leaving]
jimg has joined #ruby
iMadper has quit [Remote host closed the connection]
<injekt>
gauteh: possibly rb_thread_fd_select
ZachBeta has quit [Quit: Computer has gone to sleep.]
<gauteh>
injekt: ok thanks
yacks has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
<injekt>
gauteh: if you're doing a lot of c-ext stuff though, #ruby-core is nice (a lot of the core team idle there) so they're used to the c api
tedstriker has joined #ruby
maxmanders has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
<gauteh>
ok, not really.. :) but thanks for the tip
bluOxigen has joined #ruby
Hanmac has joined #ruby
yshh has joined #ruby
dustint has joined #ruby
goganchic has joined #ruby
goganchic has left #ruby [#ruby]
blueOxigen has quit [Ping timeout: 264 seconds]
wedgex has joined #ruby
goganchic has joined #ruby
Hanmac1 has quit [Ping timeout: 256 seconds]
maxmanders has joined #ruby
girija has joined #ruby
blueOxigen has joined #ruby
splittingred has joined #ruby
filipe has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
wedgex has quit [Remote host closed the connection]
<dn>
how does ruby know $filename from ruby script.rb <filename> im confused
_nitti has joined #ruby
alex__c2022 has joined #ruby
Faris9 has joined #ruby
<dn>
oh i see it now, $filename = ARGV[0]
<dn>
:O
lethjakman has joined #ruby
timonv has quit [Remote host closed the connection]
rickmasta has joined #ruby
DonRichie has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
DonRichie has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
<injekt>
yes, now do it without using global variables
LennyLinux has quit [Remote host closed the connection]
gaahrdner has joined #ruby
CyberMaN has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
LennyLinux has joined #ruby
tealmage_ has quit [Remote host closed the connection]
forlin has joined #ruby
machuga is now known as machuga|away
Matip has joined #ruby
tealmage has joined #ruby
PJames has joined #ruby
r0bby has quit [Ping timeout: 256 seconds]
_nitti_ has joined #ruby
_maes_ has joined #ruby
forlin has quit [Read error: Connection reset by peer]
Mattix has quit [Ping timeout: 264 seconds]
johnmilton has joined #ruby
gaahrdner has quit [Ping timeout: 245 seconds]
ephemerian has quit [Quit: Leaving.]
tealmage has quit [Ping timeout: 245 seconds]
wesside has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 258 seconds]
beiter has quit [Quit: beiter]
tjbiddle has joined #ruby
__alpaca has joined #ruby
r0bby has joined #ruby
vertroa has quit [Ping timeout: 258 seconds]
CyberMaN has joined #ruby
PJames has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: Computer has gone to sleep.]
skroon has quit [Ping timeout: 258 seconds]
PJames has joined #ruby
forlin has joined #ruby
CyberMaN has quit [Read error: Connection reset by peer]
angusiguess has quit [Disconnected by services]
<emergion>
If I am assigning variables inside a block ,what is the most elegant way the surrounding code can access them? I find I'm constantly doing this (https://gist.github.com/emergion/5496132) and I don't like it
jtharris has quit [Quit: WeeChat 0.4.0]
monkegjinni has quit [Remote host closed the connection]
<Spooner>
kpwz, Also, it looks better to: TimeLord::Period.new(past_date, DateTime.now) rather than (TimeLord::Period.new past_date, DateTime.now)
superFluid has quit [Quit: Leaving.]
aknewhope has joined #ruby
headius has joined #ruby
Caelum has quit [Quit: leaving]
Caelum has joined #ruby
mahmoudimus has joined #ruby
tealmage has joined #ruby
alanp has joined #ruby
<waxjar>
you can just add and subtract from regular Time objects, i think
marr has quit [Ping timeout: 256 seconds]
saiju has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
<r0bglees0n>
what's TimeLord?
<r0bglees0n>
waxjar: yeah you can.
PJames is now known as CyberMaN
sambao21 has joined #ruby
CyberMaN has quit [Changing host]
CyberMaN has joined #ruby
<waxjar>
timelord is a library to do 2.days.ago kind of stuff
headius has quit [Client Quit]
<Spooner>
waxjar, Yeah, that is what I was suggesting. You just end up with seconds difference. TimeLord makes more sense if you want to convert a time difference to words (e.g. "one minute and 12 seconds ago").
yashshah has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
blazes816 has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
tealmage has joined #ruby
yashshah has joined #ruby
chessguy has joined #ruby
tylersmith has joined #ruby
carlyle has joined #ruby
michaelmartinez has joined #ruby
chessguy has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
stoic_squirrel has joined #ruby
tylersmith has quit [Client Quit]
johnnyfuchs1 has joined #ruby
slainer68 has quit [Remote host closed the connection]
<aedorn>
So many IRC channels, so little time.
rclements has quit [Read error: Connection reset by peer]
<shevy>
yeah, I always try to kill a few
<shevy>
I am at nine right now and that's two too much
graeme has joined #ruby
<aedorn>
I'm on one! I don't have the ADD for more =p
tylersmith has joined #ruby
vlad_starkov has joined #ruby
johnnyfuchs has quit [Ping timeout: 246 seconds]
graeme has quit [Client Quit]
<atmosx>
I don't care if I don't follow, the only channel tha produces a huge amount of entropy is "economics". It's a subject that no-one knows nothign about it by default, so you can't really prove anyone wrong.
<shevy>
hehehehe
maxmanders has joined #ruby
<shevy>
atmosx you are funny :-)
<aedorn>
Knowing about "economics" is a detriment, anyway.
maxmanders has quit [Client Quit]
Nisstyre-laptop has joined #ruby
vlad_sta_ has quit [Ping timeout: 255 seconds]
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
tomsthumb has joined #ruby
jarin has joined #ruby
leonidlm has joined #ruby
_Amaan has quit [Quit: _Amaan]
Xeago has joined #ruby
LennyLinux has joined #ruby
_Amaan has joined #ruby
xibalba has quit [Changing host]
xibalba has joined #ruby
DrShoggoth has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
geekbri has quit [Remote host closed the connection]
adamjleonard has joined #ruby
jerius has quit []
mark_locklear has quit [Ping timeout: 258 seconds]
adamjleonard has quit [Read error: Connection reset by peer]
adamjleonard has joined #ruby
fermion has joined #ruby
<coooooool>
thx shevy :)
<coooooool>
just a other one question
<shevy>
\o/
<coooooool>
this line : puts " " + "_" * (grid[0].length * 2 - 1)
<shevy>
he tries to put lots of _ on the screen
<coooooool>
ok but why puts " " + before ?
<shevy>
really sounds as if he makes a grid layout, like pacman game
<shevy>
dunno, for some reason he wanted an initial padding
<shevy>
___
<shevy>
vs
<shevy>
___
<shevy>
don't ask me why he wanted that :P
<coooooool>
lool
<coooooool>
no problem
<coooooool>
:p
<shevy>
if I want to pad, I usually define a constant
<shevy>
LPAD = ' '
<coooooool>
ok thx you guy
<shevy>
puts LPAD + '=' * 75
alexyz has quit [Read error: Connection reset by peer]
alexyz has joined #ruby
headius has quit [Quit: headius]
Kricir has quit [Remote host closed the connection]
freewizard has joined #ruby
whitedawg has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
Meeh_afk is now known as Meeh
dev__ has quit [Ping timeout: 252 seconds]
dev__ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
sailias has quit [Ping timeout: 245 seconds]
alexyz has quit [Read error: Connection reset by peer]
alexyz has joined #ruby
luckyruby has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 256 seconds]
Cultofme_ has joined #ruby
KRF has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
jerius has joined #ruby
KRF has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
sean_s has quit [Quit: sean_s]
nplusp has quit [Ping timeout: 258 seconds]
maxmanders has joined #ruby
<dinoex>
ruby im TV
bjeanes has quit [Ping timeout: 258 seconds]
<dinoex>
Anime Vivired Operation, Episode 1, as 12:15
<dinoex>
ruby source code on screen ...
monkegji_ has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
mengu has joined #ruby
kobain has quit [Excess Flood]
ejnahc_ has quit [Ping timeout: 245 seconds]
musl_ has quit [Quit: WeeChat 0.4.0]
GhettoCode has quit [Quit: Computer has gone to sleep.]
kobain has joined #ruby
kobain has quit [Excess Flood]
musl has joined #ruby
<aedorn>
hah, so it is.. DRb use even
kobain has joined #ruby
kobain has quit [Excess Flood]
ejnahc_ has joined #ruby
kobain has joined #ruby
kobain has quit [Excess Flood]
Morkel has quit [Quit: Morkel]
kobain has joined #ruby
jbpros has joined #ruby
jnoob22_ has quit [Remote host closed the connection]
kristofers has joined #ruby
workmad3 has joined #ruby
gyre007 has quit [Remote host closed the connection]
cool has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
adamjleonard has joined #ruby
nobitanobi has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
sesam123 has joined #ruby
Heero` has quit [Ping timeout: 245 seconds]
<sesam123>
is lisp created with a parser generator or by hand?
<sesam123>
oops
<sesam123>
i mean ruby
jbpros has quit [Ping timeout: 252 seconds]
<hoelzro>
sesam123: download the source and see =)
freerobby has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
ToApolytoXaos has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<sesam123>
hoelzro: give me the answer!
<hoelzro>
I don't have it, honestly =)
* Mon_Ouie
gives 42 to sesam123
<hoelzro>
but it should be fairly obvious from the source code!
<Mon_Ouie>
The reference implementation uses yacc/bison for parsing
skroon has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
robscomputer_ has joined #ruby
rakl has joined #ruby
sesam123 has left #ruby [#ruby]
robscomputer has quit [Read error: Connection reset by peer]
linguini has joined #ruby
mjb2k has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
_Amaan has quit [Quit: _Amaan]
jonahR has quit [Quit: jonahR]
cgcardona has quit [Ping timeout: 255 seconds]
ner0x has quit [Quit: Leaving]
Umren has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
nahiluhmot has quit [Remote host closed the connection]
dmiller has joined #ruby
wsterling has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
jamesfung14 has quit [Quit: Leaving]
rton has left #ruby [#ruby]
mavcunha has quit [Quit: Computer has gone to sleep.]
locriani has joined #ruby
jbpros has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
jduan1981 has joined #ruby
mavcunha has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
poga has quit [Ping timeout: 256 seconds]
mjb2k has left #ruby [#ruby]
coooooool is now known as Copeiste
tommyvyo has quit [Quit:]
Palantir has joined #ruby
rlb3` has quit [Ping timeout: 276 seconds]
brennanMKE has quit [Remote host closed the connection]
johnnyfuchs1 has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
pasties has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 246 seconds]
beiter has quit [Quit: beiter]
jduan1981 has quit [Remote host closed the connection]
mavcunha has quit [Quit: Computer has gone to sleep.]
<shevy>
hehe
_nitti_ has joined #ruby
slainer68 has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
locriani_ has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani_ is now known as locriani
_nitti has quit [Ping timeout: 264 seconds]
jduan1981 has joined #ruby
Akuma has joined #ruby
whowantstolivef1 has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
dustint has quit [Read error: Operation timed out]
d2dchat has quit [Remote host closed the connection]
<gansbrest>
I'm trying to prepend items to the array defined above which then should be returned to the deb_packages variable
joofsh has quit [Remote host closed the connection]
jerius has quit []
akells` has quit [Remote host closed the connection]
tiripamwe has quit [Quit: Leaving]
<Spooner>
Just use a variable. arr = %w(...); arr << %w(...) if condition; arr
<enthrops>
existing.prepend(*new)
adamjleonard has quit [Quit: Leaving...]
mjb2k has left #ruby [#ruby]
yannis has joined #ruby
thone_ has joined #ruby
<enthrops>
If a module is mixed into a class, would you rather use ivars directly in the module, or would you explicitly pass parameters to module method from your class?
akells` has joined #ruby
workmad3 has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
jlast_ has joined #ruby
Palantir has quit [Ping timeout: 260 seconds]
<gansbrest>
yes, but when I define variable it doesnt get's assigned to the deb_packages variable, unless I'm missing something else
<Mon_Ouie>
Using instance variables directly means any class you mix that module in *must* use instance variables to store those data
interactionjaxsn has quit [Ping timeout: 272 seconds]
<gansbrest>
dep_packages returnes undefined
Davey has joined #ruby
<Spooner>
gansbrest, You need to have it at the end of the when clause, so it is passed back.
jlast has quit [Ping timeout: 245 seconds]
thone has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
<Mon_Ouie>
Which is why I prefer to use a method and require the class that includes the mixin to define it (kind of like #each for Enumerable)
<Spooner>
gansbrest, As it is, if the condition is false, then it returns nil, since it passes back the result of the non-existent else clause.
io_syl has quit [Quit: Computer has gone to sleep.]
<gansbrest>
I see, I'll try it out, thanks Spooner
casheew has quit [Read error: Connection reset by peer]
breakingthings has quit [Remote host closed the connection]
<gansbrest>
yeah, thanks, I think I was missing last packages variable which then gets returned from the scope
<Mon_Ouie>
Then why is it a mixin in the first place? Probably to isolate a certain functionality; but if that bit of functionality relies on implementation details of the rest of the class, then it isn't very isolated.
robscomputer_ has quit [Read error: Connection reset by peer]
<Eiam>
god i just spent an hour chasing down a bug in so many gems & code paths
<Eiam>
i finally slinked to my bosses office and asked for help
ZachBeta has quit [Quit: Computer has gone to sleep.]
rsahae has quit [Quit: rsahae]
<Eiam>
fucking couchdb replication had duplicated the entries in the database, and I was pulling the first (should only be one!) and it was a bad entry =( =( =(
idkazuma has quit [Remote host closed the connection]
cgcardona has quit [Quit: cgcardona]
robscomputer has quit [Remote host closed the connection]
lmadrigal has joined #ruby
coaster has joined #ruby
<Eiam>
on the flip side I became really familiar with some old code I wrote
<Eiam>
and just rewrote like 4 different times to do the same thing
cloke has joined #ruby
cgcardona has joined #ruby
omg|its|otr has joined #ruby
coaster has left #ruby [#ruby]
cloke_ has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
<omg|its|otr>
I have a form_for but it's not generating an authenticitity token (there's just no mention of authenticity in any hidden form fields). This obviously causes problems. Any idea what the cause might be?
benlieb has joined #ruby
nplusp has quit [Ping timeout: 256 seconds]
Kruppe has quit [Ping timeout: 245 seconds]
nari_ has quit [Ping timeout: 256 seconds]
Tricon has quit [Quit: Leaving...]
threesome has quit [Ping timeout: 260 seconds]
enthrops has left #ruby [#ruby]
ZachBeta has joined #ruby
Tricon has joined #ruby
mootpointer has quit [Ping timeout: 264 seconds]
ritek has quit [Ping timeout: 272 seconds]
Faris9 has quit [Ping timeout: 258 seconds]
BSaboia has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
ckrailo has joined #ruby
mootpointer has joined #ruby
mmitchell has joined #ruby
sambao21 has joined #ruby
adamjleonard has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
mootpointer has quit [Client Quit]
Xeago has quit [Ping timeout: 245 seconds]
volte has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
mmitchell has quit [Ping timeout: 252 seconds]
sambao21 has quit [Client Quit]
volte has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
stkowski has quit [Quit: stkowski]
io_syl has joined #ruby
mneorr has joined #ruby
hiroyuki_ has quit [Ping timeout: 245 seconds]
nat2610 has joined #ruby
adamjleonard has quit [Quit: Leaving...]
lethjakman has quit [Ping timeout: 260 seconds]
jillesme has quit [Remote host closed the connection]
jimg has joined #ruby
ritek has joined #ruby
sambao21 has joined #ruby
jwg2s has joined #ruby
mootpointer has joined #ruby
mootpointer has quit [Client Quit]
mneorr has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
Faris9 has joined #ruby
<jwg2s>
If I wanted to scan files and delete lines from those files that matched a certain pattern, how might I go about that? I found this but I need it to be recursive
<nat2610>
I have a string that is quoted that contain escape quotes (ie str => "blabla \"foo bar\" blabla") what is the cleanest way to get to blabla "foo bar" blabla
<nat2610>
ie go 1level down my string
<nat2610>
print str does it but if I can I'd rather have something like str.XXX
generalissimo has joined #ruby
mootpointer has quit [Client Quit]
superFluid has quit [Quit: Leaving.]
wesside has quit [Quit: Computer has gone to sleep.]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
nplusp has quit [Ping timeout: 248 seconds]
mootpointer has joined #ruby
Cultofme_ has quit [Remote host closed the connection]
locriani has joined #ruby
anonymuse has quit [Quit: Leaving...]
fermion has joined #ruby
Cultofmetatron has joined #ruby
krawchyk has quit [Remote host closed the connection]
<Rennex>
it's a good question though, and i don't really have a clean solution at hand
bjeanes has joined #ruby
glacification11 has quit [Ping timeout: 245 seconds]
mootpointer has joined #ruby
<Rennex>
maybe some json parser for example
<nat2610>
I need to do that without external libraries because of how the code will be exported in random places
mikeg has joined #ruby
jimg has joined #ruby
<nat2610>
I feel that gsub will be cleaner than eval print
Cultofmetatron has quit [Remote host closed the connection]
<MrZYX>
nat2610: are you sure your string is 'bla bla \\"bla \\" bla' and you're not just misinterpreting the inspect representation of 'bla bla "bla" bla' ("bla bla \"bla\"bla")?