apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
RORgasm has joined #ruby
fermion has joined #ruby
serp` has joined #ruby
Dwarf has joined #ruby
marioBonales has joined #ruby
ehaliewi` has quit [Remote host closed the connection]
ehaliewi` has joined #ruby
sprites has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
dougireton has joined #ruby
RylaiC_ has joined #ruby
KhalilC has joined #ruby
xAFIBx has joined #ruby
alanjc has quit [Ping timeout: 245 seconds]
joelteon has quit [Ping timeout: 240 seconds]
rupee has quit [Quit: Leaving]
tkuchiki has joined #ruby
Dwarf has quit [Ping timeout: 256 seconds]
Deele has quit [Ping timeout: 240 seconds]
Inside has quit [Ping timeout: 256 seconds]
Bosox20051 has joined #ruby
arubin has joined #ruby
_br_ has quit [Ping timeout: 248 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
dougireton has quit [Client Quit]
nari has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
alanjc has joined #ruby
byprdct has joined #ruby
akells` has joined #ruby
ArchBeOS has joined #ruby
ssvo has quit [Ping timeout: 256 seconds]
pipework has quit [Remote host closed the connection]
wmoxam has joined #ruby
dayepa1 has quit [Quit: dayepa1]
alexwh has quit [Ping timeout: 245 seconds]
batman___ has joined #ruby
chile_andes has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
sprites has quit [Quit: Leaving]
dayepa1 has joined #ruby
chriskk has joined #ruby
Bosox20051 has joined #ruby
Aaaarg has quit [Ping timeout: 248 seconds]
joelteon has joined #ruby
marr has quit [Ping timeout: 260 seconds]
RylaiC_ has quit [Quit: SOMETHING BROKE, PANIC!]
RylaiC_ has joined #ruby
zeade has quit [Quit: Leaving.]
zigomir has joined #ruby
Paul-Atreides has joined #ruby
Paul-Atreides has quit [Changing host]
Paul-Atreides has joined #ruby
ArchBeOS has quit [Disconnected by services]
Paul-Atreides is now known as ArchBeOS
tylersmith has quit [Remote host closed the connection]
Godd2 has quit [Quit: Page closed]
Aaaarg has joined #ruby
DanKnox is now known as DanKnox_away
dougireton has joined #ruby
guiocavalcanti has joined #ruby
io_syl has joined #ruby
chrishough has quit [Quit: chrishough]
mikewintermute has quit [Quit: mikewintermute]
ckrailo has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Ping timeout: 268 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmanuelux has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
lyanchih has joined #ruby
RylaiC has quit [Quit: SOMETHING BROKE, PANIC!]
guiocavalcanti has quit [Remote host closed the connection]
srji has quit [Ping timeout: 248 seconds]
xAFIBx has quit [Quit: Leaving]
dougireton has quit [Quit: Leaving.]
ephemerian has left #ruby [#ruby]
timkohrumel has quit [Remote host closed the connection]
kofno has joined #ruby
v0n has joined #ruby
ivanoats has quit [Read error: Operation timed out]
adein has quit [Quit: Bye]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
bionoid has quit [Remote host closed the connection]
hogeo has joined #ruby
EPIK has quit [Ping timeout: 246 seconds]
RylaiC_ is now known as RylaiC
dougireton has joined #ruby
Adys has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Adys has left #ruby ["You will shoot them and they will stick to the wall and they will die"]
F1skr has quit [Quit: WeeChat 0.4.1]
tiripamwe has quit [Ping timeout: 264 seconds]
brennanMKE has joined #ruby
ShellFu_afk has quit [Quit: Leaving]
pyreal has quit [Quit: pyreal]
<Dreamer3> hmmm
<Dreamer3> isn't ?: lookahead?
<Dreamer3> str.gsub(/(?:=0D=0A|=0D|=0A)\r\n/, "\r\n")
<Dreamer3> shy grouping?
vlad_starkov has joined #ruby
dougireton has quit [Quit: Leaving.]
<Dreamer3> not really necessary in this example that i can see, though i suppose it doesn't hurt
brennanMKE has quit [Read error: Connection reset by peer]
Voodoofish430 has quit [Quit: Leaving.]
pontiki has quit [Ping timeout: 240 seconds]
dodosan has quit [Remote host closed the connection]
brennanMKE has joined #ruby
cj3kim has joined #ruby
dodosan has joined #ruby
ner0x has quit [Quit: Leaving]
Kabaka has quit [Remote host closed the connection]
nari has joined #ruby
cj3kim_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
Kabaka has joined #ruby
kofno has quit [Remote host closed the connection]
dodosan has quit [Ping timeout: 255 seconds]
cj3kim has quit [Ping timeout: 276 seconds]
LennyLinux has quit [Remote host closed the connection]
pontiki has joined #ruby
rrecio has joined #ruby
falkoner has joined #ruby
falkoner has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
marioBonales has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 246 seconds]
wmoxam has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
Apane has quit [Ping timeout: 252 seconds]
<r0bgleeson> Dreamer3: ?: doesn't create a capture group.
<Dreamer3> yeah i see now
<Dreamer3> but i don't see where in that example it matters one bit
justsee has joined #ruby
justsee has joined #ruby
athst has quit [Quit: athst]
<r0bgleeson> Dreamer3: it doesn't assign $1, so maybe that's being used close by?
<r0bgleeson> no idea though, it could just be a misunderstanding of what it does
cj3kim_ has quit [Remote host closed the connection]
rrecio has quit [Ping timeout: 264 seconds]
tiripamwe has joined #ruby
Nisstyre has quit [Quit: Leaving]
lyanchih has quit [Quit: lyanchih]
ravster has left #ruby [#ruby]
timkohrumel has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
ssickle has quit [Ping timeout: 240 seconds]
stopbit has quit [Quit: leaving]
eka has quit [Quit: Computer has gone to sleep.]
ericmathison has quit [Ping timeout: 246 seconds]
Meatant has quit [Quit: wat]
rismoney has quit [Remote host closed the connection]
blitz has quit [Quit: This computer has gone to sleep]
rismoney has joined #ruby
richiebkr has quit [Quit: richiebkr]
julian-delphiki has quit [Ping timeout: 255 seconds]
bradhe has quit [Remote host closed the connection]
richiebkr has joined #ruby
richiebkr has quit [Client Quit]
robscomputer has quit [Remote host closed the connection]
bradhe has joined #ruby
robscomputer has joined #ruby
twoism has quit [Remote host closed the connection]
ehaliewi` has quit [Remote host closed the connection]
ArchBeOS has quit [Remote host closed the connection]
ehaliewi` has joined #ruby
alan1 has joined #ruby
wsterling has joined #ruby
alan1 has quit [Client Quit]
busybox42 has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
Apane has joined #ruby
robscomputer has quit [Ping timeout: 276 seconds]
DomKM has quit [Quit: Leaving.]
charliesome has joined #ruby
laitances14 has quit [Ping timeout: 264 seconds]
dougireton has joined #ruby
pkrnj has joined #ruby
cofin has joined #ruby
agent_white has joined #ruby
shime has quit [Ping timeout: 264 seconds]
maroloccio has quit [Quit: WeeChat 0.4.0]
zigomir has quit [Ping timeout: 268 seconds]
dougireton has quit [Client Quit]
Beoran__ has joined #ruby
agent_white has quit [Client Quit]
thams has joined #ruby
cj3kim has joined #ruby
srji has joined #ruby
laitances14 has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
cofin has quit [Quit: cofin]
busybox42 has quit [Quit: WeeChat 0.4.0]
busybox42 has joined #ruby
Beoran_ has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
stopbit has joined #ruby
tylersmith has joined #ruby
wsterling has quit [Remote host closed the connection]
hackeron_ has quit [Ping timeout: 248 seconds]
isaacbw has joined #ruby
dougireton has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
eka has joined #ruby
banisterfiend is now known as banister`sleep
enroxorz has joined #ruby
enroxorz has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 255 seconds]
cj3kim has quit [Remote host closed the connection]
_solomon has joined #ruby
x1337807x has joined #ruby
Matip has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
butblack has joined #ruby
bradhe has joined #ruby
Mattix has quit [Ping timeout: 248 seconds]
adeponte has joined #ruby
wmoxam has joined #ruby
r0bgleeson has quit [Ping timeout: 268 seconds]
dougireton has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 276 seconds]
roadt has joined #ruby
Mars1 has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yacks has quit [Quit: Leaving]
adeponte has quit [Ping timeout: 268 seconds]
r0bgleeson has joined #ruby
fredjean has joined #ruby
dhruvasagar has joined #ruby
niklasb has joined #ruby
nitrodex has quit [Remote host closed the connection]
julweber has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
julweber has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 246 seconds]
julweber has joined #ruby
vlad_starkov has joined #ruby
julweber has quit [Remote host closed the connection]
RORgasm has joined #ruby
julweber has joined #ruby
choobie has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 276 seconds]
butblack has left #ruby [#ruby]
ericmathison has joined #ruby
rrecio has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
danslo has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
mmitchell has quit [Ping timeout: 268 seconds]
julweber has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
julweber has quit [Remote host closed the connection]
rrecio has quit [Ping timeout: 255 seconds]
julweber has joined #ruby
kofno has quit [Remote host closed the connection]
byprdct has quit [Ping timeout: 264 seconds]
luckyruby has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
SoonerBourne has quit [Ping timeout: 246 seconds]
centipedefarmer has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
nomenkun has joined #ruby
Hanmac has joined #ruby
mansi has joined #ruby
niklasb has quit [Ping timeout: 256 seconds]
mansi has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 240 seconds]
gildo has joined #ruby
pipework has joined #ruby
Spooner has quit [Remote host closed the connection]
hamush has quit [Ping timeout: 264 seconds]
Bosox20051 has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
chile_andes has quit [Quit: Textual IRC Client: www.textualapp.com]
umttumt has quit [Remote host closed the connection]
_main_ has joined #ruby
freerobby has joined #ruby
bionoid has joined #ruby
bradhe has quit [Remote host closed the connection]
ntus1017 has joined #ruby
srji has quit [Ping timeout: 248 seconds]
huoxito has joined #ruby
ericmathison has quit [Ping timeout: 240 seconds]
Lemtzas has quit [Remote host closed the connection]
__main__ has quit [Ping timeout: 246 seconds]
matrimi has joined #ruby
afd__ has quit [Ping timeout: 252 seconds]
richiebkr has joined #ruby
<matrimi> Okay so I am learning Ruby and well im confused about some codes. I am learning from "Learn ruby the hard way" What I understand: http://bpaste.net/show/RhKtylrjSlPeTmGiuvFo/ What I don't understand is the %r and %s like how do I know what one to use? It doesn't exactly say how to tell which one to use. Same way with the python one.
_main_ is now known as __main__
diegoviola has joined #ruby
<pontiki> %r builds a regular expression
<pontiki> %s creates symbols
__main__ has quit [Read error: Connection reset by peer]
<pontiki> these are really *really* different things
__main__ has joined #ruby
<matrimi> pontiki: To what?
bionoid has quit [Remote host closed the connection]
<pontiki> actually, forget what i just said
<pontiki> it's not what you're talking about
_solomon has quit [Quit: _solomon]
afd__ has joined #ruby
<pontiki> you want to look at the printf method
<pontiki> (might be sprintf)
richiebkr has quit [Quit: richiebkr]
<arubin> Look there.
Vert has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Operation timed out]
centipedefarmer has joined #ruby
RylaiC has quit [Quit: SOMETHING BROKE, PANIC!]
RylaiC has joined #ruby
<pontiki> ta
* pontiki wonders if anyone can make a decent tablet browser
dhruvasagar has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
paissad_ has quit [Quit: This computer has gone to sleep]
milardovich has joined #ruby
richiebkr has joined #ruby
<arubin> What is wrong with Mobile Safari and Chrome?
GeissT has joined #ruby
t_p has joined #ruby
<pontiki> safari doesn't work on android
tylersmith has joined #ruby
<arubin> So what is wrong with Chrome?
<pontiki> chrome is achingly slow on here
<pontiki> as is firefox
<pontiki> dolphin just crashes
timkohrumel has joined #ruby
paissad has joined #ruby
<pontiki> i actually think it has something to do with the tegra chip set, but i'm not sure
<pontiki> same behaviour on 3 machines that use it tho
<arubin> Which device do you have?
joelteon has quit [Ping timeout: 246 seconds]
<pontiki> and my old droid3 is much faster
<arubin> Many Android tablets are garbage.
<pontiki> acer iconia 500
<pontiki> <-- garbage
<pontiki> but i've tried on a mot zoom tablet and an asus
arya has joined #ruby
gildo has quit [Ping timeout: 276 seconds]
<arubin> I have a Nexus 7 and it is fine.
<pontiki> it is quite odd, tho, as lastpass's built in browser is nearly immediate
tylersmith has quit [Ping timeout: 268 seconds]
<aces1up> if i pass a block to a method, how do i save that block to a var, so i can call yield on it from a different method?
<pontiki> i read recently nexus 7 is the best android experience
<aces1up> like block_saved.yield(x)
jonahR has quit [Quit: jonahR]
<pontiki> pass the block along to the other method
wsterling has joined #ruby
jonahR has joined #ruby
MattDunbar has joined #ruby
<pontiki> via direct call or .send
jonahR has quit [Client Quit]
Retistic has quit [Quit: Retistic]
MattDunbar has quit [Remote host closed the connection]
havenwood has joined #ruby
joelteon has joined #ruby
RylaiC is now known as Rylai
MattDunbar has joined #ruby
wsterling has quit [Ping timeout: 268 seconds]
MattDunbar is now known as Matt123132
Matt123132 is now known as MattDunbar
huoxito_ has joined #ruby
serp` has quit [Quit: serp`]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
huoxito_ has quit [Client Quit]
huoxito__ has joined #ruby
wsterling has joined #ruby
huoxito__ has quit [Remote host closed the connection]
bradhe has joined #ruby
w0rldmaker has joined #ruby
senayar has quit []
yofun has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
richiebkr has quit [Quit: richiebkr]
bradhe has quit [Ping timeout: 246 seconds]
radic_ has joined #ruby
vlad_starkov has joined #ruby
radic has quit [Ping timeout: 246 seconds]
umttumt has joined #ruby
swordsmanz has quit [Remote host closed the connection]
rrecio has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
fixl has joined #ruby
takezawa has quit [Remote host closed the connection]
zeade has joined #ruby
krisfremen has quit [Ping timeout: 256 seconds]
ericmathison has joined #ruby
rrecio has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
swordsmanz has joined #ruby
zeade has quit [Client Quit]
pkrnj has quit [Ping timeout: 240 seconds]
enroxorz has quit [Remote host closed the connection]
swordsmanz has quit [Client Quit]
Levin_22 has quit [Quit: Levin_22]
w0rldmaker has quit [Ping timeout: 264 seconds]
moos3 has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
cgore has quit [Remote host closed the connection]
nomenkun has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
bradhe has quit [Read error: Connection reset by peer]
bradhe_ has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
tiripamwe has quit [Ping timeout: 276 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
eka has quit [Quit: Computer has gone to sleep.]
swordsmanz has joined #ruby
dmiller has joined #ruby
knirhs has joined #ruby
tacos1de has joined #ruby
ryannielson has joined #ruby
Shrink has quit [Ping timeout: 276 seconds]
dmiller has quit [Ping timeout: 246 seconds]
butblack has joined #ruby
<butblack> are ActiveRecord callbacks not called in rails console?
sgupta has joined #ruby
<popl> butblack: What's your actual question? :)
<butblack> common.. it's a question
<butblack> that's my question.
<butblack> so for example if you run before_destroy :method_name
<butblack> and then you run Obj.find(id#).destroy
<butblack> the before destroy isn't called
byprdct has joined #ruby
knirhs has quit [Ping timeout: 246 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
umttumt has quit [Remote host closed the connection]
wsterling has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
<butblack> … ok well I extended ActiveModel::Callbacks
<butblack> now it's similar
Rylai has quit [Quit: *.net *.split]
nitrodex has joined #ruby
nitrodex is now known as Guest1104
dhruvasagar has joined #ruby
dougireton has joined #ruby
luckyruby has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
Matip has quit [Remote host closed the connection]
tylersmith has joined #ruby
jonathanwallace has joined #ruby
tylersmith has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 268 seconds]
ryannielson has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
arya has quit [Ping timeout: 256 seconds]
arya has joined #ruby
RylaiC has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
ehaliewi` has quit [Remote host closed the connection]
syamajala has joined #ruby
ehaliewi` has joined #ruby
takezawa has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
stkowski has joined #ruby
chriskk has quit [Quit: chriskk]
adkron has joined #ruby
sailias has joined #ruby
arya has quit [Ping timeout: 255 seconds]
arya has joined #ruby
ericmathison has quit [Ping timeout: 256 seconds]
DrShoggoth has quit [Quit: Leaving]
RORgasm has joined #ruby
vlad_starkov has joined #ruby
Mars1 has joined #ruby
ellipse has joined #ruby
Jackneill has joined #ruby
chrishough has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
rrecio has joined #ruby
butblack has quit [Quit: butblack]
vlad_starkov has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
marcgg has quit [Read error: No route to host]
butblack has joined #ruby
dodosan has joined #ruby
marcgg has joined #ruby
byprdct has quit [Ping timeout: 255 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
butblack has left #ruby [#ruby]
Guga_ has quit [Quit: ~]
dodosan has quit [Remote host closed the connection]
rrecio has quit [Ping timeout: 255 seconds]
dodosan has joined #ruby
dodosan has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
Mars1 is now known as Mars`
dodosan has joined #ruby
umttumt has joined #ruby
dmiller has joined #ruby
DomKM has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
adeponte has joined #ruby
jonathanwallace has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
tk_ has joined #ruby
tacos1de has joined #ruby
jcp` has joined #ruby
charliesome has joined #ruby
jcp` has quit [Client Quit]
kofno has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
dougireton has quit [Quit: Leaving.]
bradhe_ has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
dhruvasagar has joined #ruby
emanu has quit [Quit: emanu]
fierycatnet has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
adeponte has quit [Remote host closed the connection]
viszu has joined #ruby
robscomputer has joined #ruby
Davey has joined #ruby
bradhe has quit [Remote host closed the connection]
Al__ has joined #ruby
zeromodulus has quit [Remote host closed the connection]
bradhe has joined #ruby
jalcine has joined #ruby
bradhe has quit [Remote host closed the connection]
DomKM has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
tylersmith has joined #ruby
zodiak has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 246 seconds]
adkron has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
brennanMKE has joined #ruby
richiebkr has joined #ruby
Aaaarg has quit [Ping timeout: 248 seconds]
yshh has joined #ruby
momomomomo has joined #ruby
charliesome has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
wsterling has joined #ruby
ntus1017 has quit [Remote host closed the connection]
ElderFain has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
emergion has joined #ruby
Aaaarg has joined #ruby
ananthakumaran has joined #ruby
ElderFain has joined #ruby
wsterling has quit [Ping timeout: 240 seconds]
cofin has joined #ruby
brennanMKE has quit [Ping timeout: 276 seconds]
umttumt has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
syamajala has quit [Quit: leaving]
brennanMKE has joined #ruby
Al__ has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
Al__ has joined #ruby
hackman127 has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
zodiak has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
byprdct has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banghouse has quit [Remote host closed the connection]
marienz has quit [Quit: upgrades!]
ner0x has joined #ruby
sayan has joined #ruby
umttumt has joined #ruby
marienz has joined #ruby
ffio has joined #ruby
awc737 has quit [Ping timeout: 260 seconds]
Aaaarg has quit [Ping timeout: 248 seconds]
s0ber has joined #ruby
Guest66497 is now known as Shubuntu
cj3kim has joined #ruby
rrecio has joined #ruby
awc737 has joined #ruby
timkohrumel has quit [Remote host closed the connection]
bradhe has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
ntus1017 has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
_Andres has joined #ruby
robbyoconnor has joined #ruby
jonathanwallace has joined #ruby
Aaaarg has joined #ruby
byprdct has quit [Ping timeout: 268 seconds]
rrecio has quit [Ping timeout: 276 seconds]
huoxito has quit [Ping timeout: 255 seconds]
pootler__ has quit [Ping timeout: 264 seconds]
pootler_ has quit [Ping timeout: 256 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
viszu has quit [Quit: Leaving.]
_Andres has quit [Client Quit]
_Andres has joined #ruby
sayan has quit [Read error: Connection reset by peer]
ellipse has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
viszu has joined #ruby
ellipse has joined #ruby
byprdct has joined #ruby
stkowski has quit [Quit: stkowski]
umttumt has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
huoxito has joined #ruby
antuirno has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
hydrozen has joined #ruby
hydrozen has quit [Client Quit]
arya has joined #ruby
elliptical has joined #ruby
ellipse has quit [Ping timeout: 268 seconds]
umttumt has joined #ruby
tommyvyo has quit [Quit:]
Al__ has quit [Quit: Al__]
ner0x has quit [Quit: Leaving]
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
sayan has joined #ruby
antuirno has quit [Quit: Leaving]
sayan has quit [Read error: Connection reset by peer]
dmyers has quit [Quit: fBNC - http://bnc4free.com/]
zastern has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 268 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
Davey has joined #ruby
sayan has joined #ruby
brennanMKE has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
ntus1017 has quit [Remote host closed the connection]
charliesome has joined #ruby
jdunck has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
charliesome has quit [Ping timeout: 264 seconds]
elliptical is now known as ellipse
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
atyz has joined #ruby
viszu has quit [Quit: Leaving.]
RORgasm has joined #ruby
pootler_ has joined #ruby
pootler__ has joined #ruby
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
viszu has joined #ruby
tvw has joined #ruby
RORgasm has quit [Ping timeout: 255 seconds]
Lemtzas has joined #ruby
viszu has quit [Client Quit]
rrecio has joined #ruby
viszu has joined #ruby
byprdct has quit [Ping timeout: 264 seconds]
ehaliewi` has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby
dmyers has joined #ruby
cj3kim has quit [Remote host closed the connection]
elliptical has joined #ruby
rrecio has quit [Ping timeout: 246 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmith has joined #ruby
viszu has quit [Client Quit]
viszu has joined #ruby
brennanMKE has joined #ruby
rippa has joined #ruby
jonathanwallace has joined #ruby
ellipse has quit [Ping timeout: 268 seconds]
arya_ has joined #ruby
jblomo has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
arya has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
daniel_hinojosa has quit [Ping timeout: 240 seconds]
<jblomo> is there an easy way to extract the values for a key in a list of hashes? I'd love something like [{:one => 1}].map(:one) returns [1]
Pengoo has joined #ruby
<jblomo> maybe I mean concise instead of easy
roadt has quit [Read error: Connection reset by peer]
timkohrumel has joined #ruby
byprdct has joined #ruby
roadt has joined #ruby
bradhe has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 255 seconds]
dmiller has quit [Ping timeout: 246 seconds]
tomzx_mac has quit [Ping timeout: 246 seconds]
milardovich has quit [Quit: Leaving]
centipedefarmer has quit [Remote host closed the connection]
timkohrumel has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
centipedefarmer has joined #ruby
ellipse has joined #ruby
viszu has quit [Quit: Leaving.]
viszu has joined #ruby
slainer68 has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 256 seconds]
aspiers has joined #ruby
jblomo has quit [Quit: Leaving.]
elliptical has quit [Ping timeout: 256 seconds]
krainbol_ has joined #ruby
viszu has quit [Quit: Leaving.]
centipedefarmer has quit [Ping timeout: 276 seconds]
Patchou has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 264 seconds]
viszu has joined #ruby
nfk has quit [Read error: Operation timed out]
richiebkr has quit [Quit: richiebkr]
cj3kim has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
Tamae has quit [Ping timeout: 264 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
ssvo has joined #ruby
sgupta has quit [Ping timeout: 240 seconds]
multi_io has quit [Remote host closed the connection]
multi_io has joined #ruby
viszu has quit [Quit: Leaving.]
nalaginrut has quit [Ping timeout: 240 seconds]
viszu has joined #ruby
Bry8Star{T2 has joined #ruby
tacos1de has joined #ruby
Kabaka has joined #ruby
viszu has quit [Client Quit]
dodosan has quit [Remote host closed the connection]
viszu has joined #ruby
fierycatnet has quit [Quit: Leaving]
arvindravi has joined #ruby
cofin has quit [Quit: cofin]
Opettaja has joined #ruby
<arvindravi> Hello all, I was wondering how to achieve this in ruby, is there some sort of function that would make my job easier? Basically, say if my input is '4', my output should be '0, 1, 2, 3'
tonini has joined #ruby
<MattDunbar> arvindravi: should be really easy to do with a for loop
umttumt has joined #ruby
w0rldmaker has joined #ruby
chrishough has quit [Quit: chrishough]
jonathanwallace1 has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
<r0bgleeson> >> def foo(x); puts (0...x).join(","); end; foo(4)
<eval-in> r0bgleeson => undefined method `join' for 0...4:Range (NoMethodError) ... (https://eval.in/34500)
<arvindravi> MattDunbar: Yeah, but I was wondering if there was some kind of one-liner to do the same.
<r0bgleeson> >> def foo(x); puts (0...x).to_a.join(","); end; foo(4)
<eval-in> r0bgleeson => 0,1,2,3 ... (https://eval.in/34501)
laitances14 has quit [Ping timeout: 255 seconds]
<MattDunbar> Well, there you go :)
<arvindravi> ha, thanks everyone!
<MattDunbar> is eval-in a bot that parses ruby??
<r0bgleeson> yeah
<MattDunbar> nice :)
<MattDunbar> >> foo(x); puts (0…x).to_a.join(",\n"); end; foo(4)
<eval-in> MattDunbar => /tmp/execpad-d1f967b2618b/source-d1f967b2618b:2: syntax error, unexpected tIDENTIFIER, expecting ')' ... (https://eval.in/34502)
<MattDunbar> >> foo(x); puts (0…x).to_a.join(", n"); end; foo(4)
<eval-in> MattDunbar => /tmp/execpad-2f0261aff6b4/source-2f0261aff6b4:2: syntax error, unexpected tIDENTIFIER, expecting ')' ... (https://eval.in/34503)
<_Andres> >> Kernel.exit!
<eval-in> _Andres => (https://eval.in/34504)
<_Andres> :p
viszu has quit [Quit: Leaving.]
<MattDunbar> >> def foo(x); puts (0…x).to_a.join(",\n"); end; foo(4)
<eval-in> MattDunbar => /tmp/execpad-ac75321dea9e/source-ac75321dea9e:2: syntax error, unexpected tIDENTIFIER, expecting ')' ... (https://eval.in/34505)
<MattDunbar> 'm obviously blind to something right now.
<r0bgleeson> … is not ...
<MattDunbar> damn mac autocorrect :(
<MattDunbar> I didn't catch that.
<MattDunbar> >> def foo(x); puts (0...x).to_a.join(",\n"); end; foo(4)
<eval-in> MattDunbar => 0, ... (https://eval.in/34506)
<arvindravi> >> def bar; puts "Hello World"; end; bar()
<eval-in> arvindravi => Hello World ... (https://eval.in/34507)
<arvindravi> This is pretty cool :P
<MattDunbar> I was wondering how well it was made, if it was going to start sending raw IRC commands for 1, 2 and 3 :)
sayan has joined #ruby
elliptical has joined #ruby
ellipse has quit [Ping timeout: 248 seconds]
sayan has quit [Read error: Connection reset by peer]
sayan has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.1]
elliptical has quit [Ping timeout: 240 seconds]
tonini has quit [Ping timeout: 248 seconds]
ellipse has joined #ruby
Shrink has joined #ruby
jonathanwallace1 has quit [Ping timeout: 264 seconds]
Mars` has quit [Ping timeout: 256 seconds]
laitances14 has joined #ruby
mikepack has joined #ruby
rrecio has joined #ruby
knirhs has joined #ruby
bradhe has joined #ruby
byprdct_ has joined #ruby
huoxito has quit [Quit: Leaving]
byprdct has quit [Ping timeout: 248 seconds]
marcdel has joined #ruby
bradhe_ has joined #ruby
sgupta has joined #ruby
rrecio has quit [Ping timeout: 246 seconds]
Shrink has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe_ has quit [Remote host closed the connection]
knirhs has quit [Ping timeout: 264 seconds]
bionoid has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
krainbol_ has quit [Ping timeout: 246 seconds]
Mars` has joined #ruby
marcdel has quit [Ping timeout: 255 seconds]
marcdel has joined #ruby
hakunin has quit [Remote host closed the connection]
elCycl has joined #ruby
elCycl has quit [Client Quit]
emergion has joined #ruby
danslo has quit [Quit: danslo]
mikepack has quit [Remote host closed the connection]
yacks has joined #ruby
krainboltgreene has joined #ruby
popl has joined #ruby
nomenkun has joined #ruby
mikewintermute has joined #ruby
bionoid has quit [Remote host closed the connection]
Giorgio has joined #ruby
vlad_starkov has joined #ruby
seitensei has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 246 seconds]
Apane has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
tww has joined #ruby
krainboltgreene has quit [Ping timeout: 256 seconds]
Rizzle has quit [Read error: Connection reset by peer]
_whitelogger has joined #ruby
dodosan has joined #ruby
matrimi has quit [Ping timeout: 250 seconds]
Rizzle has joined #ruby
stayarrr has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
redgirl has joined #ruby
wallerdev has quit [Quit: wallerdev]
krainboltgreene has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
elliptical has joined #ruby
gr4yscale has joined #ruby
kofno has joined #ruby
EPIK has joined #ruby
ellipse has quit [Ping timeout: 256 seconds]
w0rldmaker has quit [Ping timeout: 276 seconds]
lushious has joined #ruby
helvete has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
RORgasm has joined #ruby
atyz has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has joined #ruby
alem0lars has joined #ruby
jprovazn has joined #ruby
RORgasm has quit [Ping timeout: 256 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
gr4yscale has quit [Quit: Computer has gone to sleep.]
rrecio has joined #ruby
LennyLinux has joined #ruby
byprdct_ has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
Kar- has joined #ruby
threesome has joined #ruby
devyn has quit [Quit: Lost terminal]
tylersmith has joined #ruby
rrecio has quit [Ping timeout: 255 seconds]
bradhe has quit [Ping timeout: 256 seconds]
Aaaarg has quit [Ping timeout: 248 seconds]
byprdct has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
jprovazn has quit [Quit: Odcházím]
Aaaarg has joined #ruby
marcdel has joined #ruby
hattusili_III has quit [Ping timeout: 268 seconds]
devyn has joined #ruby
hattusili_III has joined #ruby
hackeron has joined #ruby
cj3kim has joined #ruby
Nuck has quit [Quit: Nuck Off]
writesm-away has joined #ruby
eldariof has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
PLejeck has joined #ruby
writesm-away has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
cj3kim has quit [Ping timeout: 240 seconds]
PLejeck has quit [Changing host]
PLejeck has joined #ruby
PLejeck is now known as Nuck
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba has quit [Ping timeout: 241 seconds]
tww has quit [Remote host closed the connection]
lkba has joined #ruby
tww has joined #ruby
vjacob has joined #ruby
swordsmanz has joined #ruby
nalaginrut has joined #ruby
wereHamster has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
teclator has quit [Ping timeout: 255 seconds]
stayarrr has quit [Quit: Leaving...]
tww has quit [Ping timeout: 268 seconds]
browndawg has joined #ruby
heftig has quit [Quit: Quitting]
krisfremen has quit [Read error: Connection reset by peer]
krisfremen has joined #ruby
tww has joined #ruby
lurch_ has joined #ruby
is0m0rph has joined #ruby
luckyruby has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 255 seconds]
EPIK has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
kofno has joined #ruby
luckyruby has joined #ruby
takezawa has quit [Remote host closed the connection]
user12098 has joined #ruby
nomenkun has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 240 seconds]
takezawa has joined #ruby
nomenkun has joined #ruby
adambeynon has joined #ruby
w0rldmaker has joined #ruby
user12098 has left #ruby [#ruby]
_theriffer_ has quit [Quit: _theriffer_]
Retistic has joined #ruby
tww has quit [Quit: tww]
Aaaarg has quit [Ping timeout: 248 seconds]
nomenkun has quit [Ping timeout: 255 seconds]
w0rldmaker has quit [Ping timeout: 246 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
rrecio has joined #ruby
eldariof has quit [Ping timeout: 246 seconds]
byprdct has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
Aaaarg has joined #ruby
Giorgio has quit [Ping timeout: 256 seconds]
Czupa has joined #ruby
tylersmith has joined #ruby
rrecio has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 268 seconds]
hamakn has quit [Remote host closed the connection]
swordsmanz has left #ruby [#ruby]
Neomex has joined #ruby
_br_ has joined #ruby
s00pcan_ has quit [Ping timeout: 240 seconds]
Neomex has quit [Client Quit]
Hanmac1 has joined #ruby
s00pcan has quit [Ping timeout: 252 seconds]
ntus1017 has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
tonini has joined #ruby
Al__ has joined #ruby
brennanMKE has joined #ruby
jalcine is now known as JAlcine
Meatant has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
s00pcan has joined #ruby
Hanmac1 is now known as Hanmac
tonini has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
heftig has joined #ruby
brennanMKE has quit [Ping timeout: 256 seconds]
Astral_ has joined #ruby
bothra13 has joined #ruby
bothra has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 256 seconds]
dodosan has quit [Remote host closed the connection]
Astralum has quit [Ping timeout: 256 seconds]
Hanmac1 has joined #ruby
maroloccio has joined #ruby
franzliedke has joined #ruby
franzliedke has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
MattDunbar has quit [Read error: Connection reset by peer]
MattDunbar has joined #ruby
Aaaarg has quit [Ping timeout: 248 seconds]
zigomir has joined #ruby
MattDunbar has quit [Client Quit]
MattDunbar has joined #ruby
zmike has joined #ruby
<weldan> anyone have any idea why this return 400 bad request? -> https://gist.github.com/anonymous/5840173
Czupa has quit [Ping timeout: 255 seconds]
<weldan> the same restclient command i put on irb return success with short url id
Aaaarg has joined #ruby
bothra13 has quit [Read error: Operation timed out]
bothra has joined #ruby
spider-mario has joined #ruby
jacobw has joined #ruby
pskosinski has joined #ruby
Al__ has quit [Quit: Al__]
luckyruby has quit [Remote host closed the connection]
girija has joined #ruby
luckyruby has joined #ruby
Czupa has joined #ruby
spider-mario_ has joined #ruby
tommyvyo has joined #ruby
Mars` has quit [Ping timeout: 248 seconds]
spider-mario has quit [Ping timeout: 264 seconds]
MattDunbar has quit [Quit: MattDunbar]
Spooner has joined #ruby
tww has joined #ruby
tww has quit [Remote host closed the connection]
Anarch has quit [Ping timeout: 248 seconds]
ffio_ has joined #ruby
tommyvyo has quit [Quit:]
ffio has quit [Ping timeout: 268 seconds]
spider-mario_ has quit [Remote host closed the connection]
AlbireoX has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Connection reset by peer]
tvw has quit []
corehook has joined #ruby
elliptical has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby
slainer68 has joined #ruby
atno has joined #ruby
kzrl has quit [Ping timeout: 256 seconds]
MrZYX is now known as MrZYX|off
Davey has quit [Quit: Computer has gone to sleep.]
MrZYX|off is now known as MrZYX
jds has quit [Ping timeout: 246 seconds]
kzrl has joined #ruby
tonini has joined #ruby
rrecio has joined #ruby
r0bgleeson has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
jgoss has quit [Ping timeout: 256 seconds]
girija has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
umttumt has quit [Remote host closed the connection]
tylersmith has joined #ruby
rrecio has quit [Ping timeout: 248 seconds]
slainer68 has quit [Remote host closed the connection]
jgoss has joined #ruby
kzrl has quit [Ping timeout: 255 seconds]
ellipse has joined #ruby
hawtin has joined #ruby
bionoid has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
hamakn has joined #ruby
jibi has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
kzrl has joined #ruby
daniel-s__ has joined #ruby
arvindravi has left #ruby [#ruby]
brennanMKE has joined #ruby
relix has joined #ruby
MarcWeber has quit [Ping timeout: 256 seconds]
daniel-s_ has quit [Ping timeout: 256 seconds]
brennanMKE has quit [Ping timeout: 268 seconds]
nkts has quit [Quit: -]
marr has joined #ruby
MarcWeber has joined #ruby
Czupa has quit [Remote host closed the connection]
sevenseacat has joined #ruby
Shirakawasuna has quit [Ping timeout: 246 seconds]
jds has joined #ruby
takezawa has quit [Remote host closed the connection]
xeviox has joined #ruby
takezawa has joined #ruby
<xeviox> hi guys, what exactly happens if I declare the same class (same name) in multiple files and include one in another?
<apeiros> xeviox: what do you mean, "include"?
<apeiros> you can't use Module#include with classes.
KhalilC has quit [Ping timeout: 264 seconds]
Aaaarg has quit [Ping timeout: 248 seconds]
<xeviox> apeiros: like this one: http://pastie.org/8069088
<xeviox> sorry
<xeviox> include was the wrong word, I mean require
<apeiros> yeah, terminology matters
<apeiros> classes in ruby are open
<apeiros> that means if you do class X; end; class X; end you're opening the same class twice
<apeiros> class X; def a; end; end; class X; def b; end; end # now class X has both methods, a and b
pyrac has joined #ruby
<xeviox> so if I do this, the class in file2.rb is able to use "some_method()" ?
<xeviox> ah cool
<apeiros> if you define a method of the same name twice, the last one wins
<xeviox> nice
<apeiros> also, `require './file1.rb'` tells me that you haven't understood require
<xeviox> the more I use it, the more I like ruby :D
<apeiros> ./ <-- don't
<apeiros> .rb <-- don't
<apeiros> require is NOT relative to your current directory, and is not supposed to be.
<apeiros> require searches in all directories listed in $LOAD_PATH
<xeviox> ah sorry, I don't use ".rb" but thought its necessary to start with './' for proper loading (I use sinatra)
<sevenseacat> thats what require_relative is for :p
<apeiros> require_relative is also for people who fail to understand how require works IMO :-p
<sevenseacat> true.
<apeiros> for development, it can make sense to add your project's lib dir to $LOAD_PATH.
hekin has joined #ruby
<apeiros> you can do that via the -I (capital i) flag: `ruby -I lib yourscript.rb`
danslo has joined #ruby
<xeviox> hmm
<apeiros> or by manipulating $LOAD_PATH in your executable, like: $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
takezawa has quit [Ping timeout: 255 seconds]
LarsSmit has joined #ruby
<xeviox> so what's the proper way to "require" files in Sinatra? I started with some kind of boilerplate which used the "require('./...')"..
_veer has quit [Ping timeout: 256 seconds]
<apeiros> (assuming your executable is in PROJECT/bin, as it should, and your lib dir is in PROJECT/lib, as it should)
<apeiros> as said, ensure your application sets up $LOAD_PATH properly. have a base directory to require from, add that to $LOAD_PATH, then use requires that go relative from there.
<xeviox> puh, I see there is a lot to learn ^^
<apeiros> your constants should map to file names
<apeiros> e.g. Foo::Bar should be in a file which can be required as 'foo/bar'
<apeiros> wrt constant->file mappings there are 2 conventions. ruby convention is FooBar::Baz --> foobar/baz.rb
<apeiros> rails convention is FooBar::Baz --> foo_bar/baz.rb
<xeviox> so it's common to declare those constants or is there some magic involved that resolve "foo/bar" from "Foo::Bar" ?
Aaaarg has joined #ruby
<apeiros> (I find both stupid, but nowadays tend to the rails convention)
<apeiros> rails uses magic
<apeiros> normal ruby doesn't
<apeiros> I prefer science over magic. I prefer explicit over implicit.
<xeviox> ok, so to clear my layout a bit
<xeviox> my layout looks like "/models/somemodel.rb" and "/routes/someroute.rb"
<apeiros> then you should probably have them Models::SomeModel and Routes::SomeRoute
slash_nick has quit [Ping timeout: 248 seconds]
<apeiros> and require 'routes/someroute'
<xeviox> apeiros: yeah, I also prever things that makes it easy to understand what happens..
ChristianS has quit [Excess Flood]
<apeiros> I'm unaware of sinatras conventions, though
ChristianS has joined #ruby
<xeviox> ok what do you mean by "have them"? Should I change their class names to "Models::SomeModel" etc.?
<xeviox> sorry, as you might have noticed, I'm a complete ruby novice
<apeiros> I assume sinatra has conventions
<apeiros> you should go out and learn them. it's usually a good idea to follow the conventions of the framework you're using.
<apeiros> 12:42 apeiros: then you should probably have them Models::SomeModel and Routes::SomeRoute
<xeviox> as far as I've understand it uses convention over configuration for the filelayout (e. g. were views are stored)
bionoid has quit [Remote host closed the connection]
<apeiros> this is what I would do *without* looking at existing conventions of sinatra
<xeviox> yes, but I didn't understand what you meant by "have them", did you mean "change their name to" ?
<apeiros> yes, it means I'd name them that way
<apeiros> module Models; class SomeModel; … --> Models::SomeModel
<xeviox> that's always a problem with "dynamic" languages.. There is lot of space to do things the wrong way, and you might never see the problem till its to late :(
<xeviox> ok thanks!
<xeviox> :D
<apeiros> s/"dynamic" languages/programming/
<apeiros> thank you :-p
bradhe has joined #ruby
<xeviox> so what do I have to do to get the "loading" correct ?
<xeviox> is there a way to tell the correct path within ruby?
<apeiros> at least in languages like ruby doing something wrong means changing a couple of hundred lines of code instead of a couple of thousands
ChristianS has quit [Excess Flood]
<apeiros> xeviox: as said, $LOAD_PATH is the array which contains all directories in which require looks up files.
ChristianS has joined #ruby
<xeviox> ah sorry
<apeiros> ($: == $LOAD_PATH - again, I prefer explicit there. $: is not very readable)
<xeviox> again terminilogy ^^, I thought you were referring to a environment variable that is used by the ruby interpreter ..
<apeiros> no, $LOAD_PATH is a global used at runtime ;-)
* apeiros off for a bit - saturday duties
<xeviox> nice, so I'll try to change to proper "requiring" :D
<xeviox> thanks again!
<apeiros> yw
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
tomzx_mac has joined #ruby
BarneyRubble has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
Mars` has joined #ruby
<BarneyRubble> I am looking for a reference for doing maths in haml
<MrZYX> ?
<MrZYX> you can just do normal ruby haml
<BarneyRubble> will try that ;)
<MrZYX> but most of the time you have the need to embed complex logic into your views, you're doing it wrong anyway
<sevenseacat> +1
hekin has quit [Quit: hekin]
browndawg has left #ruby [#ruby]
ferdev has quit [Quit: ferdev]
Mars` has quit [Ping timeout: 255 seconds]
<BarneyRubble> not complex logic, just need a math round or floor in one loop to test something
<MrZYX> = 1.1.round
nalaginrut has quit [Ping timeout: 264 seconds]
<MrZYX> for testing stuff, okay, but ideally the data should come ready to display into your view
jacobw has quit [Quit: WeeChat 0.4.0]
Anarch has joined #ruby
hogeo has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 276 seconds]
roadt has left #ruby ["暂离"]
roadt has joined #ruby
sgupta has quit [Ping timeout: 246 seconds]
<weldan> anyone have any idea why this return 400 bad request? -> https://gist.github.com/anonymous/5840173
<weldan> the same restclient command i put on irb return success with short url id
rrecio has joined #ruby
<MrZYX> did you try to print the generated json?
<weldan> yes
<weldan> it looks like restclient command that return an error
<BarneyRubble> so var x = Math.round(y/10) in js would be in ruby/haml : $x = (y/10).round ?
<weldan> but the same codes i put in irb return me a success
<weldan> weird
<MrZYX> weldan: I mean this p {:longUrl => url}.to_json
atno has quit [Remote host closed the connection]
<MrZYX> BarneyRubble: if you need to define variables you're seriously doing it wrong
<MrZYX> and that'd define a global btw
<weldan> MrZYX, yes
<MrZYX> and it looks okay?
<MrZYX> the URI objects correctly serializes?
<weldan> i pasted result variable into irb and it return me a success
<weldan> yes
tylersmith has joined #ruby
rrecio has quit [Ping timeout: 255 seconds]
alexwh has joined #ruby
<BarneyRubble> take your point but is that the correct syntax?
DonRichie has joined #ruby
<MrZYX> weldan: hm, it works for me
<MrZYX> what's the actual value you're trying?
<MrZYX> BarneyRubble: yes
<canton7> BarneyRubble, assuming y is floating-point, yes
<weldan> value for url variable should be a url
<weldan> for example: http://mweldan.com
<BarneyRubble> tx, is there a modulo operator too?
<weldan> i have no idea why it wont work in script but work in irb
<MrZYX> weldan: works for me
<canton7> BarneyRubble, same as in most other languages. there's also .divmod
emergion has joined #ruby
<weldan> this is the error message i got: https://gist.github.com/anonymous/5840510
sgupta has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
<BarneyRubble> tx canton7 & MrZYX
<MrZYX> weldan: why do you require active support? also rubygems is implicit since ruby 1.9
<weldan> i need to use .to_json method
<weldan> you are right
<weldan> comment both that out and it works
<weldan> thank you guys
<weldan> oic. it is in json module
<MrZYX> active support probably redefines it which broke it then
robustus has quit [Ping timeout: 248 seconds]
slainer68 has joined #ruby
_serial_ has joined #ruby
sgupta has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
_serial_ has quit [Client Quit]
kirun has joined #ruby
<weldan> thanks
slainer68 has quit [Ping timeout: 264 seconds]
r4nd0m1 has joined #ruby
emmanuelux has joined #ruby
kofno has joined #ruby
mikewintermute has quit [Ping timeout: 268 seconds]
sgupta has joined #ruby
vlad_starkov has joined #ruby
Xeago has joined #ruby
osvico has joined #ruby
sgupta has quit [Ping timeout: 246 seconds]
ni1501 has joined #ruby
atyz has joined #ruby
ni1501 has left #ruby [#ruby]
kraljev4 has joined #ruby
darrik has quit [Ping timeout: 264 seconds]
<kraljev4> why doesn't ruby have unicode built-in?
<kraljev4> >> "ŠŠ".downcase
<eval-in> kraljev4 => "ŠŠ" (https://eval.in/34510)
<kraljev4> it should be šš
<MrZYX> that's the bots fault
<MrZYX> ruby is fine
<kraljev4> this reminds me of PHP and their mb_* functions
<kraljev4> no, i get uppercase ones
<kraljev4> "üö".upcase
nalaginrut has joined #ruby
<kraljev4> irb(main):003:0> "üö".upcase
<kraljev4> => "üö"
<kraljev4> should be ÜÖ
marr has quit [Ping timeout: 240 seconds]
<MrZYX> ah, yeah, downcase/upcase isn't unicode aware, right
<kraljev4> yeah, even worse than PHP, there you have special mb_strtoupper() function
<sevenseacat> lol worse than php
helvete has quit [Ping timeout: 260 seconds]
<Hanmac1> kraljev4: its also difficult when you have something like "ß".upcase what do you think should it return?
sgupta has joined #ruby
elliptical has joined #ruby
<kraljev4> ß
<kraljev4> ruby should use ICU library
sayan has quit [Read error: Connection reset by peer]
<MrZYX> Hanmac1: theres's an uppercase ß
<Mon_Ouie> You should use the ICU library if you want that behavior
bradhe has joined #ruby
<Mon_Ouie> MrZYX: But German uses 'SS' instead
ellipse has quit [Ping timeout: 256 seconds]
jibi has quit [Quit: .]
<Mon_Ouie> (therefore, changing case might require locale information or even smarter algorithms)
<MrZYX> is there even a word that starts with ß?
<kraljev4> Well, that is not a problem in german, as i have not seen ß at the start of the word
<kraljev4> i guess no
<sevenseacat> just because a word doesnt start with it, doesnt mean you might not want to upcase it
<Hanmac1> MrZYX: what about "ẞ" ?
Hanmac1 is now known as Hanmac
<kraljev4> why would you want uppercase ß, since it can not be a part of acronym
<kraljev4> since as said, no words begin with it
<sevenseacat> if you wanted to display a string in uppercase?
<MrZYX> sevenseacat: if I upcase it for stylistic reasons I'd still use ẞ over SS
<kraljev4> except for people who use CAPS LOCK on forums
<sevenseacat> for presentational reasons?
<Mon_Ouie> Why would you want to upcase 'ü' if no word begins with that letter?
<kraljev4> Übung
dodosan has joined #ruby
<kraljev4> über
<Mon_Ouie> Alright. But still, do you think upcase should only be used for 1-character strings then?
<Hanmac> like when you use Street plates in SmallCaps, then you may need an "ẞ"
ananthakumaran has quit [Ping timeout: 268 seconds]
sayan has joined #ruby
<MrZYX> wasn't there some scripts where upcase/downcase isn't a 1:1 mapping?
<MrZYX> I think that's the real issue here
<kraljev4> So, guess uppercase ß is simply ß
bradhe has quit [Ping timeout: 268 seconds]
<kraljev4> doubt ß is the reason ruby hasn't got inbuilt unicode support
<Mon_Ouie> It's ẞ or SS depending on the context
<kraljev4> unicode manipulation
<sevenseacat> ruby does have inbuilt unicode support
jacobw has joined #ruby
<sevenseacat> what version of ruby are we talking here?
<kraljev4> depends how you define unicode support
<apeiros> MrZYX: greek I think
<kraljev4> 2.0 has it by default
<apeiros> (upper/lower not 1:1)
<MrZYX> sevenseacat: depends how you define that, you can use stuff like nonbreaking spaces just fine as identifiers
<MrZYX> apeiros: thanks
<apeiros> probably more
<apeiros> re "why would you want to" - if you imply you knew all possible applications, then you're being silly
<Mon_Ouie> upcase/downcase purposely only change characters within the ASCII range because everyone can agree on what it should do for that range
<apeiros> I can come up with at least one possible application for why one would want to fully uppercase a string, and if I can come up with one, then there's probably 10 more
dodosan has quit [Ping timeout: 268 seconds]
<apeiros> my use-case: toponym plates. here in switzerland in all train stations, they're all uppercase.
krainboltgreene has quit [Quit: krainboltgreene]
<kraljev4> let me conclude: It is unacceptable to require external library, if you want to upcase an unicode string
<kraljev4> ruby has its downfalls
krainboltgreene has joined #ruby
<sevenseacat> ruby isnt perfect.
<apeiros> kraljev4: agreed on that. ruby should have that in core
<apeiros> it's also missing collation
<kraljev4> even javascript supports that out-of-the-box
<apeiros> and a couple of other character related things
<kraljev4> :)
<apeiros> well, javascripts support for that is rather opaque, though
<kraljev4> sure, glad we agree here
<apeiros> also js otoh only knows binary and utf-8
lucianosousa has joined #ruby
m8 has joined #ruby
darrik has joined #ruby
<apeiros> so, I should stop procrastinating and continue with my saturday duties :)
<sevenseacat> yes, and Javascript does absolutely retarded things with times and dates, so i wouldnt be praising that as an awesome language
<apeiros> sevenseacat: don't forget: no integers
<kraljev4> man, I am procrastinating for two weeks now
<MrZYX> at least ruby roundtrips, unlike python: In [2]: 'ßü'.upper().lower() Out[2]: 'ssü' :P
<kraljev4> oh, that's nasty
MattDunbar has joined #ruby
<r4nd0m1> @kral proc. is fine according to Larry Wall :DDD http://www.youtube.com/watch?v=G49RUPv5-NU
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<kraljev4> haha, gotta watch this (read: procrastinate)
banister_ has joined #ruby
<kraljev4> i should be programming postgres web admin tool
<kraljev4> no progress for a week yet
RORgasm has joined #ruby
swordsmanz has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
_serial_ has joined #ruby
<kraljev4> though, my opinion is that this "layz programmer" thing is just a myth
<kraljev4> wishful thinking
RORgasm has quit [Ping timeout: 276 seconds]
guiocavalcanti has joined #ruby
_serial_ has quit [Client Quit]
darrik has quit [Ping timeout: 246 seconds]
choobie has joined #ruby
rrecio has joined #ruby
Guga_ has joined #ruby
<r4nd0m1> heh idk the ways of the world r sometimes quite intricate
Meatant has quit [Quit: free hat!]
ffio_ has quit [Quit: WeeChat 0.4.1]
tylersmith has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
Astral_ has quit [Ping timeout: 248 seconds]
rrecio has quit [Ping timeout: 256 seconds]
guiocavalcanti has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
dhruvasagar has joined #ruby
gildo has joined #ruby
akashj87 has joined #ruby
guiocavalcanti has quit [Ping timeout: 255 seconds]
takezawa has joined #ruby
Xeago has quit [Remote host closed the connection]
jacobw has quit [Quit: WeeChat 0.4.0]
yacks has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
darrik has joined #ruby
Squarepy has joined #ruby
DestinyAwaits has joined #ruby
krainboltgreene has quit [Ping timeout: 268 seconds]
DestinyAwaits has quit [Read error: Connection reset by peer]
Guga_ has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 268 seconds]
Guga_ has joined #ruby
DestinyAwaits has joined #ruby
yacks has quit [Quit: Leaving]
BarneyRubble has quit [Quit: Leaving]
jetblack has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
PragCypher has joined #ruby
eka has joined #ruby
adkron has joined #ruby
ntus1017 has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
slash_nick has joined #ruby
_br_ has quit [Ping timeout: 246 seconds]
fomatin has joined #ruby
_br_ has joined #ruby
MattDunbar has quit [Quit: MattDunbar]
bradhe has joined #ruby
kofno has quit [Remote host closed the connection]
aloshkarev has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
ntus1017 has joined #ruby
jds has quit [Remote host closed the connection]
Astralum has joined #ruby
jds has joined #ruby
r0bgleeson has joined #ruby
razi has joined #ruby
guiocava_ has joined #ruby
Retistic has quit [Quit: Retistic]
zigomir_ has joined #ruby
guiocavalcanti has quit [Ping timeout: 264 seconds]
Squarepy has quit [Ping timeout: 268 seconds]
_whitelogger has joined #ruby
aloshkarev has quit [Quit: aloshkarev]
aloshkarev has joined #ruby
guiocavalcanti has joined #ruby
bjeanes has quit [Quit: quitting]
postmodern has quit [Quit: Leaving]
guiocava_ has quit [Ping timeout: 268 seconds]
spider-mario has joined #ruby
aloshkarev has left #ruby [#ruby]
serp` has joined #ruby
akashj87_ has joined #ruby
MattDunbar has joined #ruby
MattDunbar has quit [Client Quit]
akashj87 has quit [Read error: Operation timed out]
lurch_ has quit [Quit: lurch_]
Shubuntu has quit [Read error: Connection reset by peer]
lkba has joined #ruby
rrecio has joined #ruby
guiocava_ has joined #ruby
Shubuntu has joined #ruby
Shubuntu is now known as Guest5605
fomatin has quit [Quit: Computer has gone to sleep.]
guiocava_ has quit [Read error: Connection reset by peer]
guiocavalcanti has quit [Ping timeout: 248 seconds]
Guest5605 is now known as Shubuntu
guiocavalcanti has joined #ruby
rrecio has quit [Ping timeout: 246 seconds]
alem0lars has quit [Remote host closed the connection]
tylersmith has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
fomatin has joined #ruby
yacks has joined #ruby
freerobby has joined #ruby
mikewintermute has joined #ruby
lurch_ has joined #ruby
arya_ has joined #ruby
jds has quit [Remote host closed the connection]
corehook has quit [Ping timeout: 246 seconds]
serp` has quit [Quit: serp`]
Giorgio has joined #ruby
michael56 has joined #ruby
sayan is now known as info
<pontiki> 'lazy programmers' will spend days writing a script for a mundane boring task.
_Renegade has joined #ruby
info is now known as sayan
<pontiki> because we know it makes it more fun
io_syl has joined #ruby
<pontiki> and if we have to do it again, we're set
vlad_starkov has joined #ruby
<pontiki> that is the tao of the lazy programmer :)
fomatin has quit [Quit: Computer has gone to sleep.]
JZTech101 has joined #ruby
michael56 has quit [Quit: Page closed]
JZTech101 has quit [Read error: Connection reset by peer]
DestinyAwaits1 has joined #ruby
DestinyAwaits1 has quit [Read error: Connection reset by peer]
vadelius has joined #ruby
DestinyAwaits is now known as Guest89821
decoponio has joined #ruby
DestinyAwaits has joined #ruby
serp` has joined #ruby
Guest89821 has quit [Ping timeout: 276 seconds]
mikewintermute has quit [Quit: mikewintermute]
arya_ has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
corehook has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
nomenkun has joined #ruby
jibi has joined #ruby
adkron has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
aknagi has joined #ruby
<aknagi> Hi guys. I'm installing ruby 2 on a Mac with rbenv / homebrew. I don't know what dependancies I need, but would like to install them all in one shot (like rvm autolibs). Do I need to install them one with 'brew install openssl' etc, or can I get them all somehow?
<aknagi> *one by one
RORgasm has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
serp` has quit [Quit: serp`]
niklasb has joined #ruby
elliptical is now known as ellipse
billiam has quit [Remote host closed the connection]
maroloccio has quit [Read error: Connection reset by peer]
JZTech101 has joined #ruby
JZTech101 has quit [Client Quit]
lurch_ has quit [Quit: lurch_]
tylersmith has joined #ruby
JZTech101 has joined #ruby
maroloccio has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
LarsSmit has quit [Quit: Leaving.]
Shubuntu has quit [Remote host closed the connection]
fomatin has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
lucianosousa has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
maroloccio has quit [Read error: Connection reset by peer]
<aknagi> OK - Ignore my question. It's supposed to 'just work', and there is a open issue with rbenv-build
girija has joined #ruby
ananthakumaran has joined #ruby
diegoviola has joined #ruby
Guga_ has quit [Remote host closed the connection]
cjs226 has joined #ruby
emjaydub has joined #ruby
Guga_ has joined #ruby
maroloccio has joined #ruby
LarsSmit has joined #ruby
aknagi has left #ruby [#ruby]
falkoner has joined #ruby
sweeper has joined #ruby
<sweeper> hey folks
codenapper has joined #ruby
JZTech101 has joined #ruby
aknagi has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<sweeper> I'm using eventmachine + hiredis. I'm performing a redis get, and then interating over the result inside the callback and performing another get, and then in the callback for the inner get I'm running some code. problem is, the iterations run the appropriate number of time but the parameters are all from the first iteration
LarsSmit has quit [Client Quit]
<sweeper> I deduce that the parameters for the inner loops need to get passed somehow....
maroloccio has quit [Ping timeout: 240 seconds]
trautwein has quit [Ping timeout: 240 seconds]
Nisstyre has joined #ruby
wmoxam has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
yim has joined #ruby
emergion has joined #ruby
maroloccio has joined #ruby
LanaDelRey has joined #ruby
kennyvb has quit [Read error: Operation timed out]
kraljev4 has left #ruby [#ruby]
nomenkun has quit [Ping timeout: 256 seconds]
stkowski has joined #ruby
LanaDelRey is now known as DID
stkowski has quit [Client Quit]
DID is now known as DID|Lana
<yim> anyone here host with linode or digitalocean?
GeissT has quit [Quit: MillBroChat AdIRC User]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
bradhe has joined #ruby
zets has joined #ruby
hackman127 has joined #ruby
tatsuya_o has joined #ruby
kennyvb has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
F1skr has joined #ruby
generalissimo has joined #ruby
lyanchih has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
Mattix has joined #ruby
freerobby has quit [Client Quit]
w0rldmaker has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
falkoner has left #ruby [#ruby]
scatman has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
<scatman> i want to get ruby to work
atno has joined #ruby
scatman is now known as eviltt
eviltt is now known as chaoticmarienz
chaoticmarienz is now known as chaoticmarienz_
aknagi has quit [Quit: aknagi]
<slash_nick> yim: why?
chaoticmarienz_ has left #ruby [#ruby]
marcgg has joined #ruby
aknagi has joined #ruby
aknagi has quit [Client Quit]
wallerdev has joined #ruby
wang_ is now known as wang
maroloccio has quit [Ping timeout: 246 seconds]
tatsuya_o has quit [Remote host closed the connection]
thams has quit [Quit: thams]
felixjet has joined #ruby
aknagi has joined #ruby
maroloccio has joined #ruby
JAlcine has quit [Excess Flood]
weldan has quit [Quit: Ex-Chat]
IceDragon has joined #ruby
digitalcake has joined #ruby
zeromodulus has joined #ruby
JAlcine has joined #ruby
sepp2k has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest48797
Giorgio has quit [Ping timeout: 246 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
tonini has joined #ruby
Guest48797 is now known as banghouse
akashj87__ has joined #ruby
jonahR has quit [Quit: jonahR]
atmosx has joined #ruby
akashj87_ has quit [Read error: Connection reset by peer]
arubin has joined #ruby
IceDragon has quit [Ping timeout: 256 seconds]
IceDragon has joined #ruby
atmosx has quit [Quit: And so the story goes…]
JAlcine has quit [Excess Flood]
tk_ has quit [Quit: ばいばい]
decoponio has quit [Quit: Leaving...]
browndawg has joined #ruby
teclator has joined #ruby
DestinyAwaits has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
JAlcine has joined #ruby
bradhe has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
maroloccio has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
dr_bob has joined #ruby
DID|Lana has quit [Quit: Leaving]
atno has quit [Remote host closed the connection]
atno has joined #ruby
kasper has joined #ruby
pootler__ has quit [Ping timeout: 268 seconds]
pootler_ has quit [Ping timeout: 276 seconds]
bradhe has quit [Ping timeout: 276 seconds]
bklane has joined #ruby
yxhuvud2 has joined #ruby
ToApolytoXaos has joined #ruby
yxhuvud has quit [Ping timeout: 260 seconds]
BizarreCake has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cofin has joined #ruby
relix has joined #ruby
sevenseacat has quit [Quit: Leaving.]
RORgasm has joined #ruby
maroloccio has joined #ruby
aknagi has quit [Quit: aknagi]
slyv has joined #ruby
EasyMac_ has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
<EasyMac_> Is there a way to set a child Thread in ruby to be the main Thread?
Giorgio has joined #ruby
swordsmanz has quit [Ping timeout: 246 seconds]
RORgasm has quit [Ping timeout: 276 seconds]
<r0bgleeson> EasyMac_: for what reason
jwang has quit [Read error: Operation timed out]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maroloccio has quit [Ping timeout: 255 seconds]
<apeiros> EasyMac_: there are no child/parent relationship with threads. there's only one special thread which is the main thread, and no, you can't replace that one.
relix has joined #ruby
<r0bgleeson> you shouldnt have any reason to either
<r0bgleeson> if you think you need to do that id love to know why
relix has quit [Client Quit]
<apeiros> curious too
slash_nick has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
tonini has joined #ruby
<EasyMac_> Well, first of all let me thank you for starting out with a very straightforward answer
<EasyMac_> I often experience that IRC folks like to start out with "you're not thinking about it the right way" and "tell me what you want to do" instead of starting with a straightforward answer and THEN exploring other options
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
devoldmx has quit [Remote host closed the connection]
JumpMast3r has joined #ruby
gr4yscale has joined #ruby
<EasyMac_> Anyway, I'm working on a little library that has a thread manager as part of it
tonini has quit [Ping timeout: 248 seconds]
is0m0rph has quit [Changing host]
is0m0rph has joined #ruby
<EasyMac_> Right now, when you require 'mylibrary', part of the code invoked is:
<EasyMac_> $_hub_thread = Thread.new() {Hub.new.run}
DomKM has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<EasyMac_> and then the user code loads up tasks for the Hub
<EasyMac_> and right now, at the end of the user code,
<EasyMac_> I have to call $_hub_thread.join()
wsterling has joined #ruby
<EasyMac_> Otherwise the user code finishesand kills the Hub thread
<r0bgleeson> thats how threads work
<EasyMac_> yes it is
<apeiros> provide a block to Hub#run
<apeiros> if the block is given, make that your thread and join it in #run
<apeiros> no hassle for the user.
Apane has joined #ruby
<xeviox> what is used for GUIs in ruby? (just for interest)
<EasyMac_> well, the user still has to call run, then, right?
<EasyMac_> Right now the run is happening in the library code
<apeiros> oh, you meant that $_hub_thread is part of YOUR code? not the users?
<apeiros> that's… *very* ugly.
<EasyMac_> well, yes, and that's what I'm trying to fix
<EasyMac_> the user shouldn't have to see $_hub_thread at all
<apeiros> well, the part where you use a global is wrong without a relation to main-thread/other threads
<EasyMac_> yes, I don't want the global there either
cofin has quit [Ping timeout: 246 seconds]
<r0bgleeson> why can't you just use at_exit?
<apeiros> and yes, let the user explicitly create the hub. I find "it does magic things behind the scenes" a horrible design choice.
<EasyMac_> is there a non-blocking equivalent of join?
<r0bgleeson> at_exit { $foo.join }
<EasyMac_> ah, at_exit is a thing?
<EasyMac_> great
<EasyMac_> exactly what I needed
<apeiros> :-S
* apeiros shudders
<EasyMac_> provided it iscalled before child threads are killed
<apeiros> well, gotta do more saturday duties. cya.
<EasyMac_> let's find out if it does...
davorb_laptop has joined #ruby
<r0bgleeson> it is called when the main thread exits
<r0bgleeson> or is about to
<EasyMac_> thanks r0bgleeson
<r0bgleeson> anyway, your code has bigger issues, I'd look at celluloid
<EasyMac_> and apeiros
<EasyMac_> I'll check it out
<EasyMac_> but keep in mind this code is aimed at a very specific use case, rather than a general one
<r0bgleeson> i dont really know what your code is doing or why the thread has to be a global
<r0bgleeson> was that for the user to join?
wsterling has quit [Remote host closed the connection]
<EasyMac_> well, the user shouldn't have to join it explicitly
tessi has quit [Remote host closed the connection]
<r0bgleeson> if you're going to do that though, i would trap SIGINT & gracefully exit the thread as well.
<r0bgleeson> incase the user is wondering wtf the terminal is stalled
<EasyMac_> yeah, I'm already using rescue Interrupt in the Hub thread
<EasyMac_> unless there is a better way to do it
timkohrumel has joined #ruby
<r0bgleeson> that should be fine
sayan has quit [Quit: Leaving]
sayan has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
<EasyMac_> but yeah, this library is geared toward specific inexperienced developers who I'm trying to put in a padded room of sorts
fridim_ has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
<EasyMac_> Advanced users will be ableto break out easily and do what they want, but I want to make it as simple as possible for these basic users, who have had no exposure to ruby before
cofin has joined #ruby
<EasyMac_> I was doing this project in python, but it seems now like ruby gives me a lot of extra flexibility to bend the language to my whim
<EasyMac_> while still keeping powerful features intact for users who become advanced
kofno has joined #ruby
redgirl has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
redgirl has joined #ruby
aknagi has joined #ruby
<EasyMac_> So once again, I appreciate the help and suggestions r0bgleeson, and apeiros
<r0bgleeson> sure
_Renegade has quit [Quit: _Renegade]
vlad_starkov has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
timkohrumel has quit [Ping timeout: 276 seconds]
_Renegade has joined #ruby
cofin has quit [Ping timeout: 240 seconds]
EasyMac_ has quit [Quit: EasyMac_]
ffio has joined #ruby
zeromodulus has quit [Remote host closed the connection]
eldariof has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
serp` has joined #ruby
MrITR has joined #ruby
Vert has joined #ruby
fomatin has joined #ruby
kasper has quit [Remote host closed the connection]
jonathanwallace1 has joined #ruby
lurch_ has joined #ruby
brennanMKE has joined #ruby
ericmathison has joined #ruby
bradhe has joined #ruby
maroloccio has joined #ruby
slash_nick has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
relix has joined #ruby
diegoviola has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
nalaginrut has quit [Ping timeout: 256 seconds]
aknagi has quit [Quit: aknagi]
davorb_laptop has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 246 seconds]
_Renegade has quit [Quit: _Renegade]
digitalcake has quit [Quit: Leaving.]
fomatin has quit [Quit: Computer has gone to sleep.]
_Renegade has joined #ruby
aknagi has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
stkowski has joined #ruby
atmosx has joined #ruby
joshu has quit [Ping timeout: 268 seconds]
zigomir_ has quit [Quit: zigomir_]
wallerdev has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
aknagi has left #ruby [#ruby]
jgoss has quit [Ping timeout: 255 seconds]
Hanmac1 has joined #ruby
weeb1e has joined #ruby
arya_ has quit []
bklane has quit [Remote host closed the connection]
arya_ has joined #ruby
Apane has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 268 seconds]
kasper has joined #ruby
luckyruby has quit [Remote host closed the connection]
joshu has joined #ruby
isaacbw has left #ruby [#ruby]
usercheck_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
sambao21 has joined #ruby
<usercheck_> i'm try to using ruby
<usercheck_> how to import modul
browndawg has left #ruby [#ruby]
ferdev has joined #ruby
Dwarf has joined #ruby
sepp2k has quit [Ping timeout: 268 seconds]
Dwarf has left #ruby ["Leaving"]
Dwarf has joined #ruby
ColKurtz has quit [Quit: ps]
kofno has joined #ruby
Mars` has joined #ruby
Trynemjoel has joined #ruby
<Hanmac1> usercheck_: use "require" or "require_relative" to load a file or gem, and then you may use "include" to add the classes of the Module into the main context (last part is not needed)
maycon has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
Hanmac1 is now known as Hanmac
Kabaka has quit [Excess Flood]
joshu has quit [Ping timeout: 246 seconds]
<usercheck_> hanmac1, thx i will try it
joshu has joined #ruby
Kabaka has joined #ruby
jgoss has joined #ruby
<usercheck_> hanmac1 , gem?what is it?
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
<usercheck_> i have try it, but how to know what ruby module that we have in our system?where their folder?
usercheck_ has left #ruby ["Leaving"]
gildo has quit [Ping timeout: 264 seconds]
timkohrumel has joined #ruby
dr_bob has left #ruby [#ruby]
gr4yscale has quit [Quit: Computer has gone to sleep.]
Speed has joined #ruby
vlad_starkov has joined #ruby
sepp2k has joined #ruby
maroloccio has quit [Ping timeout: 255 seconds]
timkohrumel has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Read error: Operation timed out]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Mars` has quit [Ping timeout: 246 seconds]
fomatin has joined #ruby
ffio_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
ffio has quit [Ping timeout: 255 seconds]
mikewintermute has joined #ruby
marcgg has joined #ruby
Opettaja has joined #ruby
Giorgio has quit [Ping timeout: 240 seconds]
<Speed> hi, how does one embed the ruby interpreter these days (2.0)? All of the code samples I could find were 1.8 or 1.9...
gr4yscale has joined #ruby
jamesfung14 has joined #ruby
dhruvasagar has joined #ruby
<apeiros> I think 2.0 is largely the same as 1.9 wrt embedding
<apeiros> there's also mruby
<Speed> I have this
<apeiros> which is specifically for embedding, but isn't "full" ruby
<Speed> the line after ## is a separate file
<Speed> so I have start.rb, that contains 'puts "Hello world!"'
<Speed> and I have that C/C++ file
<Speed> and I'd like to run start.rb
IceDragon has quit [Remote host closed the connection]
<Speed> however I can't get it to run..
tiripamwe has joined #ruby
<Speed> I'd eventually switch to mruby yes, but at the moment all of my code is in ruby and I use quite a few gems.. as far as I understood, mruby doesn't work with gems?
<Speed> so yeah, the code I have now doesn't output anything
<Speed> I tried using that "run_ruby_node" function I found in some samples and can't even find documentation on, but that one gives me a segfault
gr4yscale has quit [Quit: Computer has gone to sleep.]
RORgasm has joined #ruby
ner0x has joined #ruby
roadt has quit [Ping timeout: 276 seconds]
vlad_sta_ has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
m8 has quit [Read error: Connection reset by peer]
RORgasm has quit [Ping timeout: 248 seconds]
marcgg_ has joined #ruby
marcgg has quit [Read error: No route to host]
maycon has quit [Read error: Operation timed out]
ravster has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
DanKnox_away is now known as DanKnox
serp` has quit [Quit: serp`]
brennanMKE has quit [Remote host closed the connection]
pita_ has joined #ruby
pita_ has quit [Client Quit]
<Speed> so if there's any ruby magicians out there that could help me with this, I'd be grateful
BizarreCake has quit [Ping timeout: 246 seconds]
IceDragon has joined #ruby
Shirakawasuna has joined #ruby
_theriffer_ has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
stkowski has quit [Quit: stkowski]
freerobby has joined #ruby
kasper has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
popl has joined #ruby
Maoko has joined #ruby
moebius_eye has joined #ruby
<moebius_eye> Hi
<moebius_eye> I have a problem with bundler
<moebius_eye> I installed it and ran it (inside a directory with a Gemfile, of course) . And Here's what I get: http://ix.io/6jZ
MrITR has quit [Ping timeout: 255 seconds]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<moebius_eye> And the dependencies are not installed after that.
<popl> is # your prompt?
<popl> That's very confusing to read. :)
<moebius_eye> What do you mean # in my prompt?
<MrZYX> I think your paste went wrong
<moebius_eye> No it didnt.
<popl> moebius_eye: I mean I can't tell what is output and what is your input from that paste.
sideshowcoder has quit [Read error: Operation timed out]
<moebius_eye> Everything is output
Davey has joined #ruby
<popl> Where is the command you ran?
<moebius_eye> bundle install
<MrZYX> it doesn't look like ruby or bundler
<popl> I don't believe you.
<popl> moebius_eye: let me show you an example! just a sec.
<moebius_eye> OK. Let's see what I got in the /usr/bin/bundle file...
ravster has quit [Remote host closed the connection]
girija has quit [Ping timeout: 255 seconds]
BizarreCake has joined #ruby
<moebius_eye> Result of the command "cat /usr/bin/bundle" : http://ix.io/6k4
bobbyz has quit [Ping timeout: 255 seconds]
<MrZYX> which bundle ?
<MrZYX> (what's the output of that command)
<MrZYX> also echo $SHELL
<moebius_eye> MrZYX: It seems there is another bundle file in my $PATH
<MrZYX> I thought so
<moebius_eye> using /usr/bin/bundle install , I got it to work.
sayan has joined #ruby
<moebius_eye> That was a big nothing... ^^
gr4yscale has joined #ruby
<popl> https://gist.github.com/anonymous/5842000 # Example of some command and the output of that command
<popl> moebius_eye: ^ that sort of thing is most helpful when you are pasting the output of a command
sambao21 has quit [Quit: Textual IRC Client: www.textualapp.com]
<popl> That way people don't need to take your word for what you did, they can just see what you did.
sayan has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 256 seconds]
sideshowcoder has joined #ruby
Kabaka has joined #ruby
<moebius_eye> I prefer to keep it simple
IceDragon has joined #ruby
<popl> ok, be defensive. :)
ravster has joined #ruby
serp` has joined #ruby
brennanMKE has joined #ruby
erry has quit [Quit: Segmentation fault]
vlad_starkov has joined #ruby
Xeago has joined #ruby
devyn has quit [Remote host closed the connection]
serp` has quit [Client Quit]
r4nd0m1_ has joined #ruby
<ravster> Hey, is anyone else getting a message about jruby-1.7.3's libjffi possibly disabling stackguard?
bobbyz has joined #ruby
r4nd0m1 has quit [Ping timeout: 256 seconds]
erry_ has joined #ruby
devyn has joined #ruby
erry_ is now known as erry
cj3kim has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
lyanchih has quit [Quit: lyanchih]
MattDunbar has joined #ruby
Kabaka has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
bobbyz has quit [Ping timeout: 246 seconds]
pipopopo has quit [Quit: ZNC - http://znc.in]
Kabaka has joined #ruby
stkowski has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
marcdel has joined #ruby
TMM has quit [Ping timeout: 240 seconds]
_Renegade has quit [Quit: _Renegade]
huoxito has joined #ruby
sayan has joined #ruby
cantonic has joined #ruby
razi has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
eldariof has quit [Ping timeout: 240 seconds]
Elico has quit [Ping timeout: 246 seconds]
gr4yscale has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Squarepy has joined #ruby
bobbyz has joined #ruby
Elico has joined #ruby
centipedefarmer has joined #ruby
joshu has quit [Ping timeout: 248 seconds]
freerobby has quit [Quit: Leaving.]
_Renegade has joined #ruby
slash_nick has joined #ruby
pskosinski is now known as idk
idk is now known as pskosinski
elaptics has joined #ruby
Apane has joined #ruby
bobbyz has quit [Ping timeout: 256 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
moebius_eye has quit [Ping timeout: 276 seconds]
sayan has quit [Read error: Connection reset by peer]
bobbyz has joined #ruby
BizarreCake has quit [Ping timeout: 255 seconds]
Levin_22 has joined #ruby
timkohrumel has joined #ruby
wallerdev has quit [Quit: wallerdev]
zz_pinage404 is now known as pinage404
tonini has joined #ruby
Mars` has joined #ruby
bionoid has joined #ruby
zeromodulus has joined #ruby
mityaz has joined #ruby
Jackneill has quit [Ping timeout: 255 seconds]
joshu has joined #ruby
emjaydub has quit [Remote host closed the connection]
bradhe has joined #ruby
moebius_eye has joined #ruby
sayan has joined #ruby
krisfremen has quit [Ping timeout: 256 seconds]
arya_ has quit [Ping timeout: 268 seconds]
w0rldmaker has quit [Ping timeout: 256 seconds]
DanKnox is now known as DanKnox_away
atmosx has quit [Ping timeout: 276 seconds]
bradhe has quit [Remote host closed the connection]
atmosx has joined #ruby
guiocava_ has joined #ruby
arya_ has joined #ruby
bionoid has quit [Remote host closed the connection]
MattDunbar has quit [Quit: MattDunbar]
JumpMast3r has joined #ruby
guiocavalcanti has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 268 seconds]
thesheff17 has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 256 seconds]
thesheff17 has joined #ruby
tessi has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
diegoviola has joined #ruby
cofin has joined #ruby
wallerdev has joined #ruby
IceDragon has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
atmosx has quit [Quit: And so the story goes…]
hawtin has quit [Ping timeout: 276 seconds]
ntus1017 has quit [Remote host closed the connection]
sayan has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
Al__ has joined #ruby
end_guy has joined #ruby
joshu has quit [Ping timeout: 246 seconds]
Bry8Star{T2 has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
joshu has joined #ruby
ybart has joined #ruby
JZTech101 has joined #ruby
Guest1104 is now known as nitrodeex
nitrodeex is now known as nitrodex
sayan has quit [Read error: Connection reset by peer]
AlSquirrel has quit [Read error: Connection reset by peer]
Al__ has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
Al__ has joined #ruby
Al__ has quit [Remote host closed the connection]
kasper has joined #ruby
pootler_ has joined #ruby
pootler__ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Hare has joined #ruby
RORgasm has joined #ruby
<Hare> Can someone offer guidance regarding installing gnome 2 on vista http://pastebin.com/2DAMwQ0J
DanKnox_away is now known as DanKnox
airlok has joined #ruby
kasper has quit [Remote host closed the connection]
milardovich has joined #ruby
stkowski has quit [Quit: stkowski]
Iszak has joined #ruby
thams has joined #ruby
DanKnox is now known as DanKnox_away
pyrac has quit [Quit: pyrac]
RORgasm has quit [Ping timeout: 276 seconds]
JumpMast3r has joined #ruby
hawtin has joined #ruby
guiocavalcanti has joined #ruby
bionoid has joined #ruby
airlok has quit [Remote host closed the connection]
guiocava_ has quit [Ping timeout: 268 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
w0rldmaker has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
marcdel has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
marcdel has quit [Client Quit]
bradhe has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
s00pcan_ has quit [Quit: leaving]
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
tomzx_mac has quit [Ping timeout: 276 seconds]
pygospa has quit [Disconnected by services]
ybart has quit [Quit: ybart]
pygospa has joined #ruby
geekyogi has joined #ruby
krawchyk has joined #ruby
tomzx_mac has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
Hare has quit [Quit: Page closed]
ffio_ has quit [Quit: WeeChat 0.4.1]
akashj87__ has quit [Read error: Connection reset by peer]
akashj87__ has joined #ruby
<Spooner> HAre you also need to install the gem (gtk2)?
zmike has quit [Quit: ~]
pyrac has joined #ruby
ffio has joined #ruby
akashj87__ has quit [Read error: Connection reset by peer]
<Spooner> Hare though another possibility is that ruby-gnome hasnt' been compiled for Ruby 2.0.0
<MrZYX> (22:24:31) Hare left the room (quit: Quit: Page closed).
<Spooner> Oh. I kill those messages, lest I be swamped. Thanks MrZYX
Apane has quit [Ping timeout: 256 seconds]
<MrZYX> just always use the autocomplete ;)
<Spooner> autocomplete causes pain in other ways ;)
jefflyne has joined #ruby
cj3kim has quit [Remote host closed the connection]
zastern has joined #ruby
Levin_22 has quit []
geekyogi has quit [Quit: Leaving.]
thams has quit [Quit: thams]
nezumi has quit [Ping timeout: 246 seconds]
pootler__ has quit [Ping timeout: 268 seconds]
pootler_ has quit [Ping timeout: 268 seconds]
Maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 268 seconds]
helvete has joined #ruby
krisfremen has joined #ruby
atyz has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 248 seconds]
guiocava_ has joined #ruby
lurch_ has quit [Quit: lurch_]
Artheist has joined #ruby
guiocavalcanti has quit [Read error: Operation timed out]
Artheist has quit [Read error: Connection reset by peer]
kasper has joined #ruby
colonolGron has joined #ruby
sam113101 is now known as sam113101_afk
Opettaja has quit [Quit: WeeChat 0.4.1]
pyrac has quit [Quit: pyrac]
agjacome has joined #ruby
agjacome has quit [Client Quit]
agjacome has joined #ruby
pyrac has joined #ruby
marcgg_ has quit [Ping timeout: 246 seconds]
marcgg has joined #ruby
lurch_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
krainboltgreene has joined #ruby
JZTech101 has joined #ruby
KhalilC has joined #ruby
tatsuya_o has joined #ruby
milardovich has joined #ruby
jorge has joined #ruby
cj3kim has joined #ruby
kirun has quit [Quit: Client exiting]
shvelo has joined #ruby
* shvelo is compiling Ruby2.0.0
* popl gives shvelo a cookie. ;P
danslo has quit [Quit: danslo]
sambao21 has joined #ruby
<shvelo> popl, thanks
tommyvyo has quit [Quit:]
<popl> I haven't compile ruby yet. I've compiled perl before.
<popl> that took an hour or so
<shvelo> popl, I've never used PErl
<shvelo> Perl
<shvelo> btw I'm compiling on Intel Atom 1.3ghz shit
<popl> shvelo: I have been using Perl for years and recently started spending time with Ruby.
<popl> shvelo: There are things in Ruby which are very Perlish.
arya_ has quit []
<shvelo> popl, for example?
<arubin> There is syntax that is exactly the same.
<shvelo> wow
<arubin> I believe that Perl was one of Matz's influences.
<popl> Yes I think I remember reading that arubin.
<popl> :)
<popl> shvelo: compare the information at those two links
<Norrin> "perl" and "ruby" are both gems.....
<Norrin> i wonder where the name came from....
<popl> Norrin++
jamesfung14 has quit [Ping timeout: 255 seconds]
banister`sleep has joined #ruby
fierycatnet has joined #ruby
<shvelo> I want to code my business website in Rails, but I guess it will take resources
<shvelo> more than Python
newtonianb has joined #ruby
jorge has quit [Remote host closed the connection]
<newtonianb> how can I force an indent in haml i have an -if ... <li> - else ... <ol> but then below that I have the content, how can I forge that content outside of that condition to be indented inside the above?
bradhe has joined #ruby
pyrac has quit [Quit: pyrac]
swordsmanz has joined #ruby
<shvelo> command not found: utime
<shvelo> wtf
<banister`sleep> newtonianb: /j #rubyonrails
<newtonianb> ok
guiocavalcanti has joined #ruby
elManu has joined #ruby
jamesfung14 has joined #ruby
<shvelo> wait you can /j instead of /join? I feel stupid :D
pootler_ has joined #ruby
<shvelo> like when using rails generate
<shvelo> :D
aces1up has quit []
dhruvasagar has quit [Ping timeout: 255 seconds]
thams has joined #ruby
guiocava_ has quit [Ping timeout: 246 seconds]
arya has joined #ruby
marr has joined #ruby
pootler__ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<vadelius> shvelo you can make your own aliases like /jror for /join #rubyonrails, barely any effort, surely will save you minutes in your lifetime!
dhruvasagar has joined #ruby
tomzx_mac has quit [Ping timeout: 240 seconds]
<shvelo> vadelius, how?
<popl> shvelo: it depends on your irc client
swordsmanz has quit [Quit: swordsmanz]
<popl> shvelo: consult the manual
swordsmanz has joined #ruby
swordsmanz has quit [Client Quit]
JZTech101 has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
niceguyjames has joined #ruby
niceguyjames has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 245 seconds]
sprites has joined #ruby
sprites has quit [Max SendQ exceeded]
<vadelius> shvelo: setting > adv > user commands
MattDunbar has joined #ruby
<vadelius> first box alias 2nd box actual cmd
diegoviola has joined #ruby
<shvelo> got it
swordsmanz has joined #ruby
heftig has joined #ruby
swordsmanz has quit [Client Quit]
thams has quit [Quit: thams]
Noldorin has joined #ruby
<Noldorin> how do i install rvmsudo?
tomzx_mac has joined #ruby
Noldorin has left #ruby ["Textual IRC Client: www.textualapp.com"]
lnemeth has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
byprdct has joined #ruby
sambao21 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Apane has joined #ruby
freerobby has joined #ruby
JZTech101 has joined #ruby
dawkirst has quit [Ping timeout: 276 seconds]
spider-mario has quit [Remote host closed the connection]
MattDunbar has quit [Quit: MattDunbar]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has joined #ruby
Aaaarg has quit [Ping timeout: 248 seconds]
Aaaarg has joined #ruby
lurch_ has quit [Quit: lurch_]
colonolGron has quit [Quit: leaving]
sambao21 has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
kasper has quit [Remote host closed the connection]
kasper has joined #ruby
Meatant has joined #ruby
shawnjgoff has joined #ruby
<shawnjgoff> I'm just getting back into Ruby. I have a Vagrant box with a whole dev environment and several gems installed. How do I find the documentation for those gems?
joshu has quit [Ping timeout: 246 seconds]
Davey has joined #ruby
kasper_ has joined #ruby
kasper has quit [Read error: Connection reset by peer]
joshu has joined #ruby
dawkirst has joined #ruby
mityaz has quit [Quit: See ya!]
xeviox has left #ruby ["Verlassend"]
DanKnox_away is now known as DanKnox
braoru has joined #ruby
Petru has joined #ruby
bradhe has joined #ruby
<Squarepy> shawnjgoff, f.i. at rubygems
RORgasm has joined #ruby
_seanc_ has joined #ruby
joshu has quit [Ping timeout: 246 seconds]
RORgasm has quit [Ping timeout: 264 seconds]
joshu has joined #ruby
<shawnjgoff> Squarepy: thanks. What's f.i. ?
<shawnjgoff> freenode irc?
dawkirst has quit [Ping timeout: 240 seconds]
<Squarepy> for instance
<shawnjgoff> ah.
<Squarepy> also with pry you can inspect the docs of objects
fomatin has quit [Quit: Computer has gone to sleep.]
fomatin has joined #ruby
Kar- has quit []
lnemeth has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 245 seconds]
mikewintermute has quit [Quit: mikewintermute]
_veer has joined #ruby
_veer has joined #ruby
braoru has quit [Remote host closed the connection]
fierycatnet has quit [Quit: Leaving]
<shawnjgoff> I thought that when you install things with gem (as appears to have been done in this env I was given) that rdocs are installed somewhere with them.
alv-r- has joined #ruby
daniel_- has joined #ruby
rrecio has joined #ruby
fomatin has quit [Client Quit]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<alv-r-> Hello, I'm having trouble with a simple thing here. I want to use the gem Typhoeus on a ruby script (that I'll run in command line). I've installed it through "gem install typhoeus" but when I try to "require Typhoeus", it says "uninitalized constant", what should I do?
<alv-r-> (never used a gem outside a framework, so I don't know how to include the gem in my single .rb script, I am having troulbe finding how to do it on the web)
<Squarepy> shawnjgoff, this approach using yard looks good, loads local docs into a web like page
jamesfung14 has quit [Ping timeout: 248 seconds]
r0bby has joined #ruby
<MrZYX> alv-r-: it's require 'typhoeus', you're requiring the file typhoeus.rb not the constant
DanKnox is now known as DanKnox_away
<shawnjgoff> Okay, thanks Squarepy
rrecio has quit [Ping timeout: 248 seconds]
Mars` has quit [Ping timeout: 248 seconds]
jibi has quit [Ping timeout: 264 seconds]
<alv-r-> MrZYX, yeah, that was silly, thanks a lot :)
dawkirst has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
deanclkclk has joined #ruby
<deanclkclk> anyone around?
robbyoconnor has quit [Ping timeout: 256 seconds]
bigmac has joined #ruby
cj3kim has joined #ruby
<zastern> Is there an obvious reason why URI.parse would give me a bad URI on this (valid) URI: https://foo.com/issues.json?key=obfuscated&project_id=1&status_id=closed&updated_on=%3E%3C2012-03-01|2012-03-07
<zastern> I'm sure I'm doing something wrong, but it works fine in my browser
<alv-r-> deanclkclk, you probably need to install the libraries required to build native extensions
<zastern> ah %7c for pipe
jorge has joined #ruby
fomatin has joined #ruby
<deanclkclk> what library would that be?
<deanclkclk> @ alv-r-
cj3kim has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
tiripamwe has quit [Ping timeout: 256 seconds]
deanclkclk has left #ruby [#ruby]
bradhe has joined #ruby
dawkirst has quit [Ping timeout: 248 seconds]
ehaliewicz has joined #ruby
jorge has quit [Ping timeout: 240 seconds]
<pontiki> zastern: URI has pretty strict parsing, much more so that browsers do
<pontiki> than*
<MrZYX> zastern: try to urlencode the |
<zastern> I figured it out, thanks
lusory has joined #ruby
dawkirst has joined #ruby
krainboltgreene has quit [Ping timeout: 276 seconds]
vjt has joined #ruby
cpruitt has quit [Ping timeout: 246 seconds]
mnms_ has joined #ruby
<mnms_> guys I come from .net and Im starting with ruby
<mnms_> and I wonder that I can pass super as parameter to another method where I can later execute it
<mnms_> maybe the question is how I can do that :)
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
freerobby has quit [Quit: Leaving.]
cpruitt has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
Squarepy has quit [Quit: Leaving]
tatsuya_o has joined #ruby
<pontiki> i think the question might more be "what are you hoping to accomplish with that?
<pontiki> coming from another language often causes one to not look for idiomatic solutions
<pontiki> we all do it
bradhe has quit [Remote host closed the connection]
_Renegade_ has joined #ruby
tiripamwe has joined #ruby
sam113101_afk is now known as sam113101
tatsuya_o has quit [Ping timeout: 276 seconds]
_Renegade has quit [Ping timeout: 246 seconds]
_Renegade_ is now known as _Renegade
cpruitt has quit [Quit: cpruitt]
byprdct has joined #ruby
devoldmx3 has joined #ruby
Opettaja has joined #ruby
slash_nick has quit [Quit: what's this do]
araujo has quit [Ping timeout: 240 seconds]
vjt has quit [Quit: leaving]
byprdct has quit [Ping timeout: 240 seconds]
Bosox20051 has joined #ruby
DrCode has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 268 seconds]
DrCode has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
guiocavalcanti has joined #ruby
zastern has quit [Remote host closed the connection]
classix has quit [Ping timeout: 251 seconds]
Myconix has joined #ruby
alv-r- has quit [Quit: Leaving]
DomKM1 has joined #ruby
DomKM has quit [Read error: No route to host]
DomKM1 has quit [Client Quit]
krawchyk has quit [Remote host closed the connection]
havenwood has joined #ruby
Levin_22 has joined #ruby
krainboltgreene has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
Xeago has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 246 seconds]
predator117 has joined #ruby
tatsuya_o has joined #ruby
MattDunbar has joined #ruby
Hanmac1 has joined #ruby
jamesfung14 has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
wallerdev has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
byprdct has joined #ruby
emanu has joined #ruby
mikepack has joined #ruby
Nies has joined #ruby
deanclkclk has joined #ruby
atno has quit [Remote host closed the connection]
<deanclkclk> is anyone around?
<popl> nobody but us chocobos
<popl> waark
<deanclkclk> I am having sine difficult running bundle install on the probject
bionoid has quit [Remote host closed the connection]
<deanclkclk> and when I try to run gem install bcrypt-ruby ..I am getting that error
<deanclkclk> can someone help me plz
tatsuya_o has quit [Ping timeout: 268 seconds]
<deanclkclk> i've been stuck on this shit from this morning
<deanclkclk> and i'm using ruby 1.9.3p194(2012-04-20)
cj3kim has joined #ruby
postmodern has joined #ruby
deanclkclk is now known as mujahadean
cofin has quit [Quit: cofin]
<popl> mujahadean: can you paste the contents of /usr/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-3.0.1/ext/mri/gem_make.out to the pastebin?
<mujahadean> sure
emanu has quit [Quit: emanu]
<popl> There is an error there, though.
<popl> /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require': cannot lo
cj3kim has quit [Read error: Connection reset by peer]
<popl> ad such file -- mkmf (LoadError)
<popl> oops
<popl> sorry about the paste guys
<popl> thought that would be one line
<popl> popl--
<mujahadean> yes but, why?
<mujahadean> I am using rubyonrails
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
<mujahadean> I can't get any help from that irc
<mujahadean> so I tried here
Retistic has joined #ruby
<popl> that is your error
kx has joined #ruby
elManu has quit [Ping timeout: 246 seconds]
_seanc_ has quit [Quit: _seanc_]
kasper_ has quit [Remote host closed the connection]
nanothief has joined #ruby
<mujahadean> popl: I saw this but, why do I need a dev package
<popl> because ubuntu is a piece of shit
<mujahadean> I am already running ->ruby 1.9.3p194(2012-04-20)
<popl> ubuntu split the ruby stuff into different packages
<mujahadean> u sure it's ubuntu and not ruby?
<popl> that's why you need it
<popl> pretty fucking sure
<popl> :)
kasper has joined #ruby
<popl> try installing it and see if it doesn't fix your problem
<mujahadean> fucking piece of ubuntu shit
<popl> other distributions do it too
<mujahadean> so I may need to apt-get purge ruby 1.9.3*
<popl> no
<popl> dude
<popl> you need both packages
<mujahadean> hmm ok
<mujahadean> but, this is 1.9.3 and this wants me to install 1.9.1
<mujahadean> why not just one?
<popl> Install whatever version Ubuntu has. I don't know what specific version.
<popl> look it up in the apt repo
EPIK has joined #ruby
<mujahadean> what OS do u use popl ?
<popl> Slackware
pragmata has joined #ruby
pragmata has quit [Quit: leaving]
r4nd0m1_ has quit []
<sam113101> OpenSUSE now
brennanMKE has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
gr4yscale has joined #ruby
Zelest has quit [Read error: Operation timed out]
Zelest has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LennyLinux has quit [Remote host closed the connection]
dmiller has joined #ruby
DanKnox is now known as DanKnox_away
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
Elico has quit [Ping timeout: 264 seconds]
Inside has joined #ruby
Inside has quit [Changing host]
Inside has joined #ruby
<havenwood> Arch and Gentoo seem nice.