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
breadthfirst has joined #ruby
_maes_ has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
threesome has quit [Ping timeout: 264 seconds]
_Amaan has joined #ruby
tomkad has quit [Ping timeout: 252 seconds]
mpereira has joined #ruby
RORgasm has joined #ruby
jlast_ has quit [Ping timeout: 252 seconds]
Soliah has joined #ruby
<ariedler> kyle__: no-one! lol
banister`shop has joined #ruby
wxcafe has joined #ruby
<wxcafe> guys
<wxcafe> "undefined method `name'"
<wxcafe> wtf guys?
Mohan__ has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
<banister`shop> wxcafe: your'e not providing nearly enough information to know wtf u're talking about :)
randomlogin has joined #ruby
<wxcafe> banister`shop: just a simple ruby class
<wxcafe> calling self.name
<banister`shop> wxcafe: can you gist some code?
akhet has quit [Remote host closed the connection]
danman has quit [Quit: danman]
akells` has joined #ruby
clevermatt has joined #ruby
<banister`shop> wxcafe: objects dont have names, *classes* do
<wxcafe> hmm
chxane has quit [Quit: Leaving]
<banister`shop> wxcafe: you're asking for the name of the object, what do you expect exactly?
djwonk has quit [Quit: djwonk]
<banister`shop> wxcafe: if you want the object as a string, then call to_s or .inspect
<banister`shop> not 'name' :)
chorkpop has joined #ruby
<wxcafe> i want the class as a name.
<banister`shop> wxcafe: then call self.class.name
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<wxcafe> come on
<wxcafe> seriously?
<banister`shop> your'e being stupid.
<banister`shop> You're in the *object*
<wxcafe> i'm being a newbie
<banister`shop> when you just call .name *on the object* (not the class) - you're asking for the name of the object --- and objects dont have names.
<wxcafe> but okay, i get it
<banister`shop> But i already explained :)
<wxcafe> i just didn't know i could call the parent class using self.class
<banister`shop> there you go :)
<wxcafe> coming from C, it seems a bit magical
threesome has joined #ruby
<banister`shop> sure thing, compared to see everything in ruby is magic hehe
<banister`shop> C*
<wxcafe> agreed
<wxcafe> anyway, thanks then :)
<banister`shop> np
wxcafe has left #ruby [#ruby]
akells` has quit [Ping timeout: 248 seconds]
Soliah has quit [Quit: Soliah]
thone_ has joined #ruby
Alex- has joined #ruby
alx- has quit [Read error: Connection reset by peer]
Nikki_L has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
<Nikki_L> Hi Guys, Can someone send me a link explaining me how to create a 'groups' model & controller? I'm using devise
nouh has quit [Ping timeout: 256 seconds]
nik_-_ has quit [Quit: nik_-_]
`brendan has joined #ruby
rupee has left #ruby ["Leaving"]
thone has quit [Ping timeout: 260 seconds]
Soliah has joined #ruby
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
niklasb has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
niklasb has quit [Read error: Operation timed out]
daniel_-_ has joined #ruby
mootpointer has joined #ruby
daniel_-_ has quit [Client Quit]
breadthfirst has quit [Ping timeout: 248 seconds]
johnrlive has joined #ruby
tomzx_mac has joined #ruby
_seanc_ has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Quit: tjbiddle]
pskosinski has quit [Quit: pskosinski]
hogeo has joined #ruby
daniel_- has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
marr has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
ttt has joined #ruby
bradhe has quit [Remote host closed the connection]
w|t has joined #ruby
yshh has quit [Remote host closed the connection]
bradhe has joined #ruby
nfk has quit [Remote host closed the connection]
kenneth has joined #ruby
cofin has joined #ruby
dik_dak has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
fschuindt has joined #ruby
ffranz has quit [Quit: Leaving]
ldnunes has joined #ruby
wsterling has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 248 seconds]
phipes has joined #ruby
<fschuindt> Somebody have an idea why when I try to install some gems, I got an error saying that I don't have permissions to write in /Users/fschuindt/.rvm/gems/ruby-2.0.0-p195/bin ? I think that this path is mine
<fschuindt> So I need to run sudo gem install instead
Eaven has quit [Remote host closed the connection]
<r0bglees0n> fschuindt: chown fschuindt -R ~/.rvm
enriclluelles has quit [Remote host closed the connection]
<r0bglees0n> sorry
<r0bglees0n> -R comes before your username
<fschuindt> r0bglees0n: hm, nice
miskander has joined #ruby
<fschuindt> r0bglees0n: I was thinking why it happens
falood has quit [Remote host closed the connection]
robert__ has joined #ruby
robert__ has quit [Changing host]
robert__ has joined #ruby
<r0bglees0n> fschuindt: yeah, i could only guess. it shouldn't happen normally.
Guest43213 has quit [Remote host closed the connection]
<fschuindt> r0bglees0n I understand
<r0bglees0n> fschuindt: I've never had issues with RVM installing as another user before
r0bglees0n has quit [Quit: WeeChat 0.3.8]
<fschuindt> yea
r0bgleeson has joined #ruby
robert_ has quit [Ping timeout: 256 seconds]
<fschuindt> r0bgleeson thank you btw, (weechat is also cool hahaha)
wsterling has quit [Ping timeout: 252 seconds]
nazty has quit [Read error: Connection reset by peer]
<r0bgleeson> its lag meter jumped to 20 so i reconnected :)
arubin has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
GeissT has joined #ruby
becom33 has quit [Ping timeout: 256 seconds]
Xeago_ has quit [Remote host closed the connection]
johnrlive has quit [Remote host closed the connection]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arya has joined #ruby
dambler has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tomzx has quit [Disconnected by services]
Proshot has quit [Quit: Leaving]
breadthfirst has joined #ruby
brianpWins has joined #ruby
_solomon has joined #ruby
jokke has quit [Quit: WeeChat 0.4.0]
Nikki_L has quit [Quit: Page closed]
peteyg has quit [Read error: Operation timed out]
BSaboia has joined #ruby
krombr has joined #ruby
johnrlive has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mootpointer has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
tyl has joined #ruby
havenwood has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
becom33 has joined #ruby
clevermatt has quit [Remote host closed the connection]
crystalneth has quit [Quit: crystalneth]
DonRichie has quit [Read error: Operation timed out]
clevermatt has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
clevermatt has quit [Remote host closed the connection]
ArchBeOS has quit [Ping timeout: 252 seconds]
arya has joined #ruby
DonRichie has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
ivanoats has quit [Remote host closed the connection]
c0rn has joined #ruby
johnrlive has quit [Remote host closed the connection]
clevermatt has joined #ruby
cleverma_ has joined #ruby
jokke has joined #ruby
yshh has joined #ruby
plotter has joined #ruby
dik_dak has quit []
cluelesscoder has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
havenwood has quit [Remote host closed the connection]
Fezzler has joined #ruby
clevermatt has quit [Ping timeout: 240 seconds]
ferdev has quit [Ping timeout: 260 seconds]
s2013 has quit []
splittingred has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
crystalneth has joined #ruby
cleverma_ has quit [Ping timeout: 252 seconds]
prk has quit [Ping timeout: 252 seconds]
DanKnox_away is now known as DanKnox
felixjet has quit [Ping timeout: 248 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
kpshek has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
F1skr has quit [Quit: WeeChat 0.4.1]
mfridh has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
agjacome_ has joined #ruby
DanKnox is now known as DanKnox_away
nari_ has joined #ruby
dhruvasagar has joined #ruby
breadthfirst has quit [Remote host closed the connection]
cj3kim has joined #ruby
breadthfirst has joined #ruby
huoxito has joined #ruby
felixjet has joined #ruby
agjacome_ has quit [Client Quit]
miskander has quit [Quit: miskander]
agjacome has quit [Ping timeout: 248 seconds]
ravster has left #ruby [#ruby]
breadthfirst has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
kofno has quit [Remote host closed the connection]
yashshah_ has quit [Read error: Connection reset by peer]
phipes has quit [Quit: phipes]
io_syl has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
dsabanin has joined #ruby
max_ has joined #ruby
nfk has quit [Quit: yawn]
chrishough has quit [Quit: chrishough]
clevermatt has joined #ruby
yashshah has joined #ruby
jimg has joined #ruby
nari_ has quit [Ping timeout: 252 seconds]
ldnunes has quit [Quit: Saindo]
BadQuanta has joined #ruby
arya has quit [Ping timeout: 248 seconds]
HecAtic has joined #ruby
breadthfirst has joined #ruby
druonysuse has quit [Quit: Konversation terminated!]
arya has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
sodalitumpianum_ has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
chriskk_ has joined #ruby
chriskk has quit [Ping timeout: 252 seconds]
chriskk_ is now known as chriskk
_solomon has quit [Quit: _solomon]
ivanoats has joined #ruby
snearch has quit [Quit: Verlassend]
jgrevich has quit [Remote host closed the connection]
kpshek has quit [Ping timeout: 260 seconds]
ttt has joined #ruby
breadthfirst has quit [Remote host closed the connection]
GeissT_ has joined #ruby
breadthfirst has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
akhet has quit [Remote host closed the connection]
namesake has quit [Ping timeout: 250 seconds]
pitzips has quit [Remote host closed the connection]
phipes has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
mocfive has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
tjbiddle_ has joined #ruby
danshultz has quit [Remote host closed the connection]
skulker has joined #ruby
bionhart has quit [Ping timeout: 240 seconds]
ttt has quit [Ping timeout: 256 seconds]
breadthfirst has quit [Ping timeout: 248 seconds]
GeissT_ has quit [Quit: MillBroChat AdIRC User]
Alex- has quit [Quit: Alex-]
Z_Mass has joined #ruby
c0rn has joined #ruby
LucidDreamZzZ has quit [Quit: Leaving]
Domon has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
_cheney4 has quit [Read error: Connection reset by peer]
rads has quit [Quit: rads]
robbyoconnor has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 252 seconds]
LucidDreamZzZ has joined #ruby
max_ has quit [Ping timeout: 245 seconds]
graft has joined #ruby
graft has joined #ruby
alx- has joined #ruby
agent_white has quit [Quit: leaving]
threesome has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
breadthfirst has joined #ruby
_cheney4 has joined #ruby
LucidDreamZzZ has quit [Client Quit]
t_p has joined #ruby
failshell has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
momomomomo has joined #ruby
guiocavalcanti has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
momomomomo has quit [Quit: momomomomo]
JimmyNeutron has joined #ruby
jimg has quit [Remote host closed the connection]
iMadper has joined #ruby
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
palantir has quit [Ping timeout: 248 seconds]
chxane has joined #ruby
_solomon has joined #ruby
thom_____ has quit [Remote host closed the connection]
_solomon has quit [Client Quit]
ttt has joined #ruby
instinkt has quit [Quit: Lost terminal]
Eaven has joined #ruby
breadthfirst has quit [Remote host closed the connection]
nari_ has joined #ruby
max_ has joined #ruby
reset has quit [Read error: Operation timed out]
apalmblad has quit [Quit: apalmblad]
breadthfirst has joined #ruby
twoism has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
crystalneth has quit [Quit: crystalneth]
Eaven has quit [Remote host closed the connection]
Hanmac2 has quit [Ping timeout: 264 seconds]
tbrock has joined #ruby
jtran has joined #ruby
chxane has quit [Quit: Leaving]
breadthfirst has quit [Ping timeout: 248 seconds]
<jtran> hey all. using mysql rubygem i know how to do a select * type of query and modify type of query. however, if i query (select count(*) from table;) , how do i display that result?
max_ has quit [Quit: p33 ba115]
mikepack has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
<jtran> i know i can do a query(select * from table).count but that's not quite the same as what I'm looking for. i only want to send a select count(*) to the db
mikepack has joined #ruby
iMadper has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Fezzler has quit [Quit: Leaving]
robscomp_ has joined #ruby
dsabanin has quit [Quit: Leaving...]
arya has quit [Ping timeout: 252 seconds]
GeissT has joined #ruby
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
zeade has quit [Quit: Leaving.]
RORgasm has joined #ruby
devoldmx has joined #ruby
druonysus has joined #ruby
robscomputer has quit [Ping timeout: 240 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
IceDragon has quit [Quit: Space~~~]
mikepack has quit [Ping timeout: 241 seconds]
machuga|away is now known as machuga
bricker`LA has joined #ruby
kf8a has joined #ruby
Z_Mass has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
brianherman has joined #ruby
<jtran> nm figured it out
<arubin> jtran: I am just guessing, SELECT COUNT(*) AS some_count FROM TABLE.
RORgasm has quit [Ping timeout: 248 seconds]
<jtran> arubin ya i know how to do a select count
<jtran> i was trying to igure out how to display the result
<arubin> jtran: Note the AS some_count.
sodalitumpianum has joined #ruby
<jtran> because techniclly it isn't returning rows, but i found out i display it by print result.fetch_row
<arubin> It does return a row.
<jtran> i guess that's true
<arubin> You have just not given a name to the "column".
kf8a has quit [Ping timeout: 240 seconds]
<arubin> AS does that.
<arubin> At least it does in most sane RDBMS.
<jtran> thanks arubin
<jtran> select count(*) from table is all that's generally necessary
megha has joined #ruby
<jtran> i don't need to do AS generally.
alexgordon has quit [Quit: Computer has gone to sleep.]
<r0bgleeson> how are you executing the SQL?
<jtran> it just returns a # . a count of the number of rows in the table
haxrbyte has quit [Remote host closed the connection]
<jtran> query = 'select count(*) from resource;'
<jtran> result = db.query(query)
haxrbyte has joined #ruby
<jtran> result.fetch_row
<jtran> => ["1696"]
crystalneth has joined #ruby
<jtran> so that's what i was looking for
dankest has joined #ruby
<r0bgleeson> ah mysql gem.
thesheff17 has quit [Ping timeout: 245 seconds]
niklasb has quit [Ping timeout: 264 seconds]
<r0bgleeson> AS foo should return a Hash for that
<r0bgleeson> {count: XXXX}
Davey_ has joined #ruby
<r0bgleeson> {foo: XXX}*
dankest has quit [Client Quit]
guns has joined #ruby
<jtran> r0bgleeson: ooh i see
arya has joined #ruby
momomomomo has joined #ruby
Spooner has quit [Remote host closed the connection]
jurbat has joined #ruby
arya has quit [Ping timeout: 256 seconds]
cyong has joined #ruby
XtraGas has quit [Read error: Connection reset by peer]
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
kil0byte has joined #ruby
Nisstyre has joined #ruby
Guedes0 has quit [Ping timeout: 263 seconds]
vlad_starkov has joined #ruby
phipes has quit [Quit: phipes]
aurum has joined #ruby
falood has joined #ruby
thesheff17 has joined #ruby
ColKurtz has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
crystalneth has quit [Quit: crystalneth]
mootpointer has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
travisjeffery has joined #ruby
kil0byte_ has joined #ruby
chorkpop has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
becom33 has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
shinobi_one_ has quit [Quit: shinobi_one_]
c0rn has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Remote host closed the connection]
gorpon has joined #ruby
cha1tanya has joined #ruby
radic_ has joined #ruby
skulker has quit [Remote host closed the connection]
HecAtic has quit [Ping timeout: 252 seconds]
tyl has quit [Read error: Connection reset by peer]
ixti has quit [Quit: WeeChat 0.4.1]
[[thufir]] has joined #ruby
tyl has joined #ruby
crystalneth has joined #ruby
danman has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
fumbe has quit [Ping timeout: 248 seconds]
danman has quit [Client Quit]
Cultofmetatron has quit [Remote host closed the connection]
codesoda has joined #ruby
radic__ has quit [Ping timeout: 245 seconds]
chriskk has quit [Quit: chriskk]
arya_ has quit [Ping timeout: 248 seconds]
aurum has quit [Quit: Leaving]
jeka-91 has joined #ruby
cj3kim has joined #ruby
arya has joined #ruby
momomomomo has joined #ruby
mootpointer has joined #ruby
mando has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 252 seconds]
becom33 has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
machuga is now known as machuga|away
cj3kim has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
nazty has joined #ruby
krishna_ has joined #ruby
banjara has quit [Quit: Leaving.]
kil0byte_ has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
<krishna_> is there a way to get a ruby stacktrace at a specific syscall?
Davey_ is now known as Davey
sleetdrop has joined #ruby
mikepack has joined #ruby
kil0byte has joined #ruby
megha has quit [Ping timeout: 240 seconds]
granticus has quit [Ping timeout: 248 seconds]
granticus has joined #ruby
banjara has quit [Quit: Leaving.]
osvico has joined #ruby
freeayu has joined #ruby
robscomp_ has quit [Read error: Connection reset by peer]
moos3 has quit [Quit: Computer has gone to sleep.]
robscomputer has joined #ruby
travisjeffery has quit [Quit: Textual IRC Client: www.textualapp.com]
AgentWillyWonka has joined #ruby
arya has joined #ruby
jeka-91 has quit [Ping timeout: 248 seconds]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sleetdrop has quit [Ping timeout: 252 seconds]
crystalneth has quit [Quit:]
Sm3lly has joined #ruby
tymat has quit [Ping timeout: 248 seconds]
wsterling has joined #ruby
bigmac has joined #ruby
robscomputer has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
rads has joined #ruby
jgoss has quit [Ping timeout: 248 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
sleetdrop has joined #ruby
jtran has quit [Quit: jtran]
techsilo has joined #ruby
Shirakawasuna has joined #ruby
reset has joined #ruby
granticus has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 256 seconds]
techsilo has quit [Quit: Leaving]
clevermatt has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
vlad_starkov has joined #ruby
sleetdrop has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
Beoran__ has joined #ruby
clevermatt has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
rezzack has quit [Quit: Leaving.]
wsterling has quit [Remote host closed the connection]
Beoran_ has quit [Ping timeout: 248 seconds]
mando has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
wsterling has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
sleetdrop has joined #ruby
rippa has joined #ruby
graft has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
Takehiro has joined #ruby
dhruvasagar has joined #ruby
cj3kim has joined #ruby
Shirakawasuna has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
guns has quit [Quit: guns]
cha1tanya has quit [Quit: Leaving]
Cultofmetatron has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
clevermatt has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
arya has joined #ruby
[[mandrix]] has joined #ruby
bricker is now known as bricker`work
jlast has quit [Remote host closed the connection]
bricker`work is now known as bricker
guiocavalcanti has quit [Ping timeout: 252 seconds]
danslo has quit [Quit: danslo]
bradhe has joined #ruby
Sm3lly has quit [Ping timeout: 260 seconds]
kenneth has quit [Quit: kenneth]
arya has quit [Ping timeout: 248 seconds]
jbueza has quit [Quit: Leaving.]
chxane has joined #ruby
RORgasm has joined #ruby
eldariof has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
brotatos has joined #ruby
xcv has quit [Remote host closed the connection]
arya has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
brotatos has quit [Client Quit]
shadoi has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
ariedler has quit [Remote host closed the connection]
falood has quit [Remote host closed the connection]
bigmac has quit [Quit: Leaving]
momomomomo has quit [Quit: momomomomo]
arya has joined #ruby
alx- has quit [Quit: alx-]
wallerdev has quit [Quit: wallerdev]
krombr has quit [Remote host closed the connection]
ivanoats has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
Nic13 has joined #ruby
Cultofmetatron has joined #ruby
cofin has quit [Quit: cofin]
rickruby has joined #ruby
jlast has joined #ruby
arya has joined #ruby
Nic13 has quit [Client Quit]
vlad_starkov has joined #ruby
nof13 has joined #ruby
larissa has quit [Quit: Leaving]
Cultofmetatron has quit [Remote host closed the connection]
jbueza has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
mpereira has quit [Remote host closed the connection]
dankest has joined #ruby
devoldmx3 has joined #ruby
jgoss has joined #ruby
devoldmx27 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 240 seconds]
yashshah has quit [Read error: Connection reset by peer]
nari_ has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
yashshah has joined #ruby
devoldmx3 has quit [Ping timeout: 248 seconds]
poga has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
kenneth has joined #ruby
banjara has joined #ruby
jfelchne_ has quit [Quit: zzzzzzzzzzzzz………]
mootpointer has quit [Quit: Computer has gone to sleep.]
elkclone has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
nof13 has quit [Ping timeout: 240 seconds]
tyl has quit [Quit: Computer has gone to sleep.]
wsterling has quit [Remote host closed the connection]
tyl has joined #ruby
nari_ has joined #ruby
brian_000_ has joined #ruby
brianherman has quit [Ping timeout: 252 seconds]
jgrevich has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
tjbiddle has joined #ruby
GeissT has quit [Quit: AdiIRC is updating to v1.9.1 Beta Build (220513-1) 32 Bit]
GeissT has joined #ruby
d2dchat has joined #ruby
splittingred has quit [Quit: splittingred]
ebouchut has joined #ruby
rakl has joined #ruby
chxane has quit [Quit: Leaving]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
mootpointer has joined #ruby
atno__ has quit [Ping timeout: 256 seconds]
cyong has quit [Quit: Leaving.]
spider-mario has quit [Read error: Connection reset by peer]
eldariof has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
palantir has joined #ruby
Cultofmetatron has joined #ruby
palantir has quit [Ping timeout: 248 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
arya has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
tundrax has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
arya has joined #ruby
araujo has quit [Quit: Leaving]
Eaven has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
krz has joined #ruby
bugg has joined #ruby
chorkpop has joined #ruby
ikarius has joined #ruby
ehaliewicz has joined #ruby
<ikarius> sigh. I'm buffaloed.
codecop has joined #ruby
<ikarius> I have an RoR app, and I'm trying to define some classes to use in the controllers
atno__ has joined #ruby
tomzx_mac has quit [Ping timeout: 252 seconds]
<ikarius> if I define the assisting classes in one of my controller files, they work, but sporadically implode my session if I store them in session variables
chorkpop has quit [Read error: Connection reset by peer]
lyanchih has joined #ruby
saarinen has joined #ruby
robbyoconnor has joined #ruby
vlad_starkov has joined #ruby
lyanchih has quit [Client Quit]
<ikarius> I'm trying to move them out to modules, but one of my classes is a child of "Array", and SHOULD be a child of Array. Apparently I cannot define a parent when defining a Module, however
lyanchih has joined #ruby
<ikarius> so, what's the "right way" to do this?
t_p has quit [Quit: Computer has gone to sleep.]
r0bby has joined #ruby
zommi has joined #ruby
jlast has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
ikarius has quit [Quit: ikarius]
monkegjinni has joined #ruby
brian_000_ has quit [Quit: Leaving]
brianherman has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
mocfive has joined #ruby
saarinen has quit [Quit: saarinen]
monkegjinni has quit [Remote host closed the connection]
apalmblad has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
jprovazn has joined #ruby
rakl has quit [Quit: gone]
rakl has joined #ruby
kevinykchan has joined #ruby
slaggy has joined #ruby
<slaggy> rson
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
ioNull has joined #ruby
nof13 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
kil0byte_ has joined #ruby
wsterling has joined #ruby
kil0byte has quit [Ping timeout: 256 seconds]
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
apeiros has quit [Remote host closed the connection]
sleetdrop has joined #ruby
toekutr has joined #ruby
tommyvyo has joined #ruby
atno__ has quit [Ping timeout: 260 seconds]
Eaven has quit [Read error: Connection reset by peer]
andikr has joined #ruby
Eaven has joined #ruby
nof13 has quit [Ping timeout: 260 seconds]
arya has joined #ruby
wsterling has quit [Ping timeout: 252 seconds]
skogis has quit [Ping timeout: 248 seconds]
twoism has quit [Ping timeout: 252 seconds]
ntus1017 has joined #ruby
c0rn has joined #ruby
lurch_ has joined #ruby
nomenkun has joined #ruby
RORgasm has joined #ruby
ananthakumaran has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
RORgasm has quit [Ping timeout: 252 seconds]
kil0byte_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
nomenkun has quit [Remote host closed the connection]
atno__ has joined #ruby
bradhe_ has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 248 seconds]
enriclluelles has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
nomenkun has joined #ruby
bradhe_ has quit [Remote host closed the connection]
ArchBeOS has quit [Ping timeout: 264 seconds]
huoxito has quit [Quit: Leaving]
DonRichie has quit [Quit: Verlassend]
nomenkun has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
_seanc_ has joined #ruby
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
vlad_starkov has joined #ruby
fgro has joined #ruby
bricker is now known as bricker`work
bricker`LA is now known as bricker
JimmyNeutron has quit [Quit: Leaving]
ybart has joined #ruby
_seanc_ has quit [Client Quit]
whitemage has joined #ruby
vlad_starkov has quit [Ping timeout: 241 seconds]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
dmiller has quit [Remote host closed the connection]
F1skr has joined #ruby
arya has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
mando has joined #ruby
Shirakawasuna has joined #ruby
rakl has quit [Quit: gone]
alexmreis has joined #ruby
arya has joined #ruby
advorak has joined #ruby
apalmblad has quit [Quit: apalmblad]
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 252 seconds]
<advorak> I'm having trouble finding this in the Prawn gem -- I want to set inline_format as default so I don't have to specify text('string',inline_format: true) for most every line ... I'm not sure where to look. any clues? :-)
rakl has joined #ruby
<r0bgleeson> advorak: no idea but you can solve it yourself with a wrapper
mando has quit [Ping timeout: 260 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
_Amaan has quit [Quit: _Amaan]
<advorak> r0bgleeson: yes, though I was hoping that somebody knew of some built-in way :-)
<r0bgleeson> i dont sorry, never used it
zeeraw has joined #ruby
greenarrow|2 has joined #ruby
greenarrow|2 has quit [Client Quit]
jlast has quit [Ping timeout: 252 seconds]
ybart has quit [Quit: ybart]
arya has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
threesome has joined #ruby
arya has joined #ruby
enriclluelles has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 248 seconds]
umren has joined #ruby
JohnBat26 has joined #ruby
mafolz has joined #ruby
JohnBat26 has quit [Client Quit]
Cultofmetatron has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 252 seconds]
teclator has quit [Ping timeout: 252 seconds]
dpollen has joined #ruby
dangerousdave has joined #ruby
pduin has joined #ruby
alexmreis has left #ruby [#ruby]
rigindin1 has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 260 seconds]
thebastl has joined #ruby
ephemerian has joined #ruby
dyu has joined #ruby
brtdv has joined #ruby
bradhe has joined #ruby
dpollen has quit [Remote host closed the connection]
dmiller has joined #ruby
slaggy has left #ruby ["Leaving"]
bradhe has quit [Ping timeout: 248 seconds]
skogis has joined #ruby
JohnBat26 has joined #ruby
tjbiddle has joined #ruby
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
bothra has quit [Read error: Connection reset by peer]
jjang has joined #ruby
bothra has joined #ruby
Proshot has joined #ruby
fphilipe has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
fphilipe has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
sideshowcoder has quit [Read error: Operation timed out]
mocfive has quit [Remote host closed the connection]
poga has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
elkclone has quit [Quit: It's never too late to unplug and run.]
elkclone has joined #ruby
elkclone has quit [Client Quit]
senayar has joined #ruby
ferdev has joined #ruby
d2dchat has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 248 seconds]
jgoss has quit [Ping timeout: 248 seconds]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
jjang has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
jjang has joined #ruby
jjang has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
druonysus has quit [Ping timeout: 248 seconds]
sideshowcoder has joined #ruby
dhruvasagar has joined #ruby
Ontolog has quit [Remote host closed the connection]
workmad3 has joined #ruby
rshackleford has joined #ruby
mad_hatter_ has joined #ruby
rshackleford has left #ruby ["WeeChat 0.3.7"]
rickruby has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tiagok has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
ColKurtz has quit [Quit: sleeping]
yashshah has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
fphilipe has joined #ruby
bradhe has joined #ruby
LucidDreamZzZ has joined #ruby
ayaz has joined #ruby
cheese1756 has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
poga has joined #ruby
ayaz has quit [Client Quit]
ayaz has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
filipe has quit [Ping timeout: 256 seconds]
fgro has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 240 seconds]
raz has quit [Ping timeout: 246 seconds]
teclator has joined #ruby
timonv has joined #ruby
raz has joined #ruby
ruissalo has quit [Ping timeout: 264 seconds]
cheese1756 has joined #ruby
MrZYX|off is now known as MrZYX
jlast has joined #ruby
ParanoidSP has joined #ruby
yashshah_ has joined #ruby
monkegjinni has joined #ruby
tiagok has quit [Ping timeout: 248 seconds]
kil0byte has joined #ruby
nomenkun has joined #ruby
dmiller has joined #ruby
marr has joined #ruby
Spami has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
enriclluelles has joined #ruby
yashshah has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
du0 has joined #ruby
whitemage has quit [Quit: Leaving...]
JoeHazzers has quit [Ping timeout: 264 seconds]
monkegji_ has joined #ruby
atno__ has quit [Ping timeout: 248 seconds]
ferdev has quit [Quit: ferdev]
filipe has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
Criztian has joined #ruby
ruissalo has joined #ruby
lyanchih has quit [Ping timeout: 248 seconds]
lyanchih has joined #ruby
troessner has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
danslo has joined #ruby
JoeHazzers has joined #ruby
fphilipe has quit [Remote host closed the connection]
txdv has quit [Ping timeout: 264 seconds]
poga has quit [Read error: Connection reset by peer]
poga has joined #ruby
zeppelin has joined #ruby
poga_ has joined #ruby
gkunno has quit [Excess Flood]
futilegames has joined #ruby
zeppelin has quit [Client Quit]
futilegames has quit [Client Quit]
futilegames has joined #ruby
gkunno has joined #ruby
niceguyjames has joined #ruby
poga has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
DaniG2k has joined #ruby
Coffers has joined #ruby
obs has joined #ruby
skasio has quit [Quit: Leaving]
RORgasm has joined #ruby
reset has quit [Quit: Leaving...]
zmo_ has joined #ruby
buscon has joined #ruby
charliesome has joined #ruby
RORgasm has quit [Ping timeout: 252 seconds]
buscon has quit [Remote host closed the connection]
[[thufir]] has quit [Remote host closed the connection]
advorak has quit [Remote host closed the connection]
ferdev has joined #ruby
nerdman has joined #ruby
ksmth has joined #ruby
enriclluelles has quit [Remote host closed the connection]
Azulinho has joined #ruby
Soliah has quit [Quit: Soliah]
ttt has quit [Read error: Connection reset by peer]
gasbakid has joined #ruby
ttt has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
lyanchih has quit [Ping timeout: 252 seconds]
ybart has joined #ruby
<ayaz> Hi guys. I was wondering: Why does String.hash, for a given fixed string, report a different value for every run when used inside a .rb file, but the same value for every call from within 'irb'?
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<nightfly> hashs are seeded differen't accross different initializations of a process
madb055 has quit [Ping timeout: 248 seconds]
madb055 has joined #ruby
w|t has joined #ruby
<ayaz> nightfly: Um, I see. But, wasn't the 'seeding' introduced in 1.9.x? I'm on 1.8.7
ghr has joined #ruby
ksmth has quit []
tvw has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
<nightfly> I'm seeing the same behavior in the 1.8.7 install I have access too. Maybe the feature was backported?
viszu has joined #ruby
enriclluelles has joined #ruby
lyanchih has joined #ruby
dmiller has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
Azulinho has quit [Ping timeout: 276 seconds]
<ayaz> Even more strangely, while I am seeing this problem on my OS X, there's one Debian Linux system I have on which the String.hash value remains the same, both from within code and irb, as many times as you run the process.
<ayaz> Ruby is 1.8.7 on that.
sayan has joined #ruby
<nightfly> yeah, it was back ported. the debian box probably has an installer older than that patch.
fixl has joined #ruby
<MrZYX> String#hash uses the memory address (https://github.com/ruby/ruby/blob/trunk/string.c#L2243) it's not meant as cryptographic hash function. Don't use it as one
vlad_starkov has joined #ruby
<nightfly> So are strings always interned in ruby then?
slainer68 has joined #ruby
senayar has joined #ruby
du0 has quit [Quit: Leaving]
<nanothief> using rvm, 1.8.6 always gives the same output for ruby -e 'puts "hello".hash', while later versions don't
banjara has quit [Quit: Leaving.]
<Quadlex> All is as for naught: I need to use a pre-release version of psych
bartavelle has left #ruby ["couic"]
<ayaz> nightfly: I see. Yes, the 1.8.7 ruby on my Linux box has the 302 patchlevel, while my OS X has the 358 patch level.
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
monkegji_ has quit [Ping timeout: 260 seconds]
arya_ has quit [Client Quit]
elaptics`away is now known as elaptics
AndChat| has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 248 seconds]
ferdev has quit [Ping timeout: 252 seconds]
ybart has quit [Quit: ybart]
ferdev_ has joined #ruby
ybart has joined #ruby
rickruby has joined #ruby
pi3r has joined #ruby
Kar- has joined #ruby
<apeiros> nightfly: no, strings are not interned. symbols are.
zmo_ has quit [Quit: Leaving]
bugg is now known as _KGBot_
<apeiros> MrZYX: that makes no sense… 2 different string objects with the same content have the same hash…
thone has joined #ruby
zmo_ has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
<Macaveli> can you concatenate strings just like: hello = "hello" + "world"?
<apeiros> Macaveli: yes
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> Macaveli: also: irb
<apeiros> (or pry)
yashshah- has joined #ruby
thone_ has quit [Ping timeout: 248 seconds]
rickruby has quit [Ping timeout: 260 seconds]
jokke_ has joined #ruby
<jokke_> hey
<jokke_> how's good with regexes?
<jokke_> :)
<jokke_> following
<jokke_> %r{\<\s*a((?!href).)+href\s*=\s*(["'])(((?!\1).)+)\1[^\>]*\>(?!((\</\s*a\s*\>)|(\<\s*a\s*\>)).)*\</\s*a\s*\>}
<apeiros> jokke_: who :-p
<jokke_> should match link tags
<jokke_> i know
<apeiros> don't parse html with regexen.
codecop has quit [Remote host closed the connection]
<jokke_> i shouldn't do this. But i have to
<apeiros> use an html parser to parse html. like nokogiri.
<jokke_> i knoiw
<jokke_> i have no choise
<jokke_> it's a homeworkassignment
<jokke_> i _have_ to use regexpes
<jokke_> I KNOW!
<jokke_> :)
<joonty> jokke_: hehe we've finished now
<jokke_> it's stupid, but what can i do :)
DaniG2k1 has joined #ruby
DaniG2k has quit [Read error: No route to host]
yashshah_ has quit [Ping timeout: 264 seconds]
<jokke_> so... i wonder what's wrong with my regexp
<joonty> only God knows now
<jokke_> because it won't match any a tags
<jokke_> joonty: :(
<joonty> it's descended into regex hell, from whence there is no return
<apeiros> jokke_: debuggex.com
<apeiros> and rubbular.com
<jokke_> joonty: :D:D
adambeynon has joined #ruby
<apeiros> joonty: hehe, that answer is sooo awesome
<joonty> apeiros: I know, and I love the comment about chuck norris
jlast has joined #ruby
<apeiros> jokke_: you could start with removing the stuff which is unnecessary and makes the regex hard to read
<jokke_> unnecessary?
<apeiros> e.g.
<apeiros> >> /\</
<eval-in> apeiros => /\</ (http://eval.in/31401)
<apeiros> huh?
<apeiros> I thought ruby would remove unneeded escapes…
<jokke_> wat?
<jokke_> that's not unneeded
<apeiros> well, /\</ == /</
<jokke_> sure?
<jokke_> because (?<=bla). has special meaning.
<jokke_> or was it (<?=bla).
<jokke_> (lookbehind)
monkegjinni has joined #ruby
whitemage has joined #ruby
<apeiros> (?<=
<jokke_> yes
<apeiros> and yes, there it means something special
<apeiros> but *there*.
<jokke_> ah but it understands that
<jokke_> ok
<jokke_> great
b0oh has joined #ruby
poga_ has quit [Remote host closed the connection]
<jokke_> same applies for > i assume
<apeiros> what's the point of the negative lookahead in /a((?!href).)/?
<apeiros> yes
<jokke_> well .* is greedy
<jokke_> no?
<apeiros> yes
<jokke_> so it would match until the last href found
noname001 has joined #ruby
LennyLinux has joined #ruby
<apeiros> but you said "must not be followed by href, but must be followed by href"
<apeiros> which is… somewhat contradictory
madb055 has quit [Ping timeout: 260 seconds]
<apeiros> lookarounds do not consume
madb055 has joined #ruby
<jokke_> ooh
<jokke_> i see
<jokke_> so umm
<jokke_> i can just remove that?
<apeiros> well, if you want to match only the last href, you have to rewrite it. but do you have to match illegal html?
<jokke_> nah
<jokke_> alright
<apeiros> if not, then I'd just drop it indeed
timmow has joined #ruby
<joonty> just as well, as it becomes pretty much impossible if you do
timmow has quit [Read error: Connection reset by peer]
deusAnima has joined #ruby
toekutr has quit [Remote host closed the connection]
<jokke_> yay
<jokke_> now matches
timmow has joined #ruby
<jokke_> how can i "ignore" match groups?
<jokke_> or groups i mean
<apeiros> (?:)
<apeiros> makes non-capturing groups
<jokke_> ah thats right!
<jokke_> thanks
Macaveli has quit [Quit: Page closed]
skattyadz has joined #ruby
<apeiros> jokke_: you can make your job easier by splitting things
jlast has quit [Ping timeout: 248 seconds]
<jokke_> apeiros: please tell me how, this is killing me
<codesoda> include a ?: after the opening bracket
<apeiros> e.g. attribute = /(["'])(((?!\1).)+)\1/; a_tag = /<a href=#{attribute>/
<apeiros> whoops
<apeiros> e.g. attribute = /(["'])(((?!\1).)+)\1/; a_tag = /<a href=#{attribute}>/ # simplified, but you get what I mean
<codesoda> e.g. (?:[a-z]+)
sayan has quit [Read error: Connection reset by peer]
<apeiros> you can then test the individual regexen. which makes finding issues easier too.
<apeiros> i.e., TDD of regexen ;-)
<jokke_> apeiros: ah i see
<jokke_> great
<jokke_> thanks a lot
<apeiros> note that ruby will preserve even the flags when you interpolate a regex into another
<apeiros> >> a = /foo/i; b = /bar#{a}/; [b, b =~ "barFoO"]
<eval-in> apeiros => [/bar(?i-mx:foo)/, 0] (http://eval.in/31402)
mikecmpbll has joined #ruby
<apeiros> (?i-mx:foo) is a non-capturing group (?:foo) with flags i, without flags m and x.
<apeiros> (i-mx)
<jokke_> apeiros: can i backreference non-capturing groups? probably not :P
<apeiros> don't think so
<apeiros> but you can use named groups
<apeiros> not sure how well that works with interpolation, though
<jokke_> named groups? :)
<apeiros> (?!((\</\s*a\s*\>)|(\<\s*a\s*\>)).)*\</\s*a\s*\> <-- could probably just use /.*?#{end_tag}/
whitemage has quit [Ping timeout: 252 seconds]
chrishough has quit [Quit: chrishough]
<apeiros> >> /(?<name>foo)/.match("barfoobar")
<eval-in> apeiros => #<MatchData "foo" name:"foo"> (http://eval.in/31403)
<apeiros> don't remember how to reference those, though :)
ttt has quit [Read error: Connection reset by peer]
ttt_ has joined #ruby
<apeiros> personally I'd rewrite that attribute regex to an or'ed expression anyway
<apeiros> since quotes are not required afaik
<jokke_> not??
<apeiros> attribute = /'[^']*'|"'[^"]*"|\S/
<jokke_> oh god
<apeiros> attribute = /'[^']*'|"'[^"]*"|\S*/
timonv has joined #ruby
noxoc has joined #ruby
<jokke_> are you sure quotes aren't required?
noxoc has left #ruby [#ruby]
<apeiros> welcome to SGML :-p
<apeiros> quite
<apeiros> but feel free to read the standard
<jokke_> fuuuuu
<jokke_> :D
<apeiros> above regex should do fine
bamdad has joined #ruby
dmiller has joined #ruby
<apeiros> "should", not "must be" ;-)
workmad3 has quit [Ping timeout: 252 seconds]
<apeiros> (of course, it's IMO good style to always quote, but that doesn't make it invalid not to quote)
c0rn has quit [Quit: Computer has gone to sleep.]
<MrZYX> I bet most SGML parser have probability algorithms, "okay I guess he meant this, he could've also meant the other or that, but in most cases he meant this"
<jokke_> apeiros: i don't care
<jokke_> apeiros: bad style deserves not to be parsed :D
<apeiros> jokke_: also fun: attributes are not required to be in any particular order
<apeiros> enjoy writing that as a regex :-)
fuleo has quit [Read error: Connection reset by peer]
<apeiros> MrZYX: no
<apeiros> that's a tagsoup parser
w|t has joined #ruby
<apeiros> or at least it is commonly called tagsoup
dmiller has quit [Ping timeout: 260 seconds]
decentrality has joined #ruby
brtdv has quit [Quit: brtdv]
<apeiros> but yes, those attribute for many "hm, might have meant X, because what's standing here makes no sense if taken literally"
filipe has quit [Ping timeout: 252 seconds]
<jokke_> apeiros: i know
<jokke_> i hate this assignment already
alup has joined #ruby
Al_ has joined #ruby
<apeiros> I'd ask how many assumptions you may make
<apeiros> since parsing html in all its glory with regexen makes no sense
<apeiros> i.e., I'd assume no space between < and tagname
<apeiros> I'd assume order of attributes
<apeiros> I'd assume always double quoted
<jokke_> really?
<apeiros> I'd assume well formed
<jokke_> i'm abitioned
<apeiros> and write a regex for that. then you get a half-way sane and readable regex.
<MrZYX> don't you have example input you need to parse?
jamesaxl has joined #ruby
<jokke_> MrZYX: no this will ultimately be a webcrawler
slainer6_ has joined #ruby
<apeiros> and the assignment requires to write a regex to extract links?
<jokke_> yup
<jokke_> and comments
<MrZYX> wtf
<apeiros> and to use *only* the regex?
<jokke_> yup
<apeiros> i.e., you can't use StringScanner with a couple of regexen?
b0oh has left #ruby [#ruby]
<jokke_> uh
slainer68 has quit [Ping timeout: 240 seconds]
<jokke_> never heard of that
<apeiros> well, then I'd really go and ask for which assumptions you're allowed to make. anything else makes little sense IMO.
oxdkis has joined #ruby
<jokke_> apeiros: you're right
ExxKA has joined #ruby
becom33 has quit [Remote host closed the connection]
<apeiros> s/little/no/. since it's *not* possible to parse html with a regex. for that reason it is not possible to cover all cases, not even for a reduced problem like "extract links"
<apeiros> e.g. how do you exclude links in comments?
<apeiros> or how do you deal with illegal html which messes tags up?
<jokke_> apeiros: well i thought of parsing the whole page and using gsub(comment_regex,"")
<jokke_> and then parsing the remaining page
<jokke_> apeiros: i don't care about illegal html
Ontolog has joined #ruby
gyre007 has joined #ruby
workmad3 has joined #ruby
<apeiros> jokke_: and suddenly you're using more than "just a regex" to process the page
<apeiros> hence my question
corehook has joined #ruby
<apeiros> if you can pre/post-process, something like StringScanner might be allowed too. which makes the task infinitely easier.
zigomir has joined #ruby
filipe has joined #ruby
whitemage has joined #ruby
k13n has joined #ruby
vlad_starkov has joined #ruby
nari_ has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
Villadelfia has quit [Read error: Connection reset by peer]
SeySayux has quit [Read error: Connection reset by peer]
jurbat has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
whitemage has quit [Ping timeout: 264 seconds]
txdv has joined #ruby
tockitj has joined #ruby
workmad3 has quit [Read error: Operation timed out]
vlad_starkov has quit [Ping timeout: 252 seconds]
Al_ has quit [Read error: Connection reset by peer]
SeySayux has joined #ruby
noop has quit [Ping timeout: 245 seconds]
Al_ has joined #ruby
<jokke_> YEESS!
Villadelfia has joined #ruby
<jokke_> please read the backlog :P
viszu has quit [Quit: Leaving.]
<canton7> has that come up already? boo. I'm at work and it's quite a long backlog
<jokke_> :)
<jokke_> what about this one:
tomzx_mac has joined #ruby
<jokke_> href = /href\s*=\s*(["'])([^\1]*)\1/
chandankumar has joined #ruby
<apeiros> not sure you can negate backrefs
Azulinho has joined #ruby
<jokke_> link_tag = %r[<\*a.+#{href}.*>[^<]*</\s*a\s*>]
<jokke_> oh
<apeiros> .*?\1
viszu has joined #ruby
<jokke_> you're probably right
<jokke_> .*?\1 ?
machuga|away is now known as machuga
viszu has quit [Client Quit]
<apeiros> match as little as possible until backref
<jokke_> wow!
<jokke_> "match as little as possible?
<jokke_> didn't know that's possible
<MrZYX> also known as non-greedy matching
<apeiros> I think it's not precisely that. but ? turns any quantifier non-greedy.
<jokke_> is this ruby specific?
<MrZYX> no
<apeiros> *?, +?, {a,m}?, ??
<jokke_> oh
<jokke_> cool
<MrZYX> haha, never saw a non-greedy ? in use :D
jgrevich has quit [Remote host closed the connection]
sayan has joined #ruby
banjara has quit [Ping timeout: 276 seconds]
_KGBot_ has quit [Remote host closed the connection]
Al_ has quit [Read error: Connection reset by peer]
ohcibi has joined #ruby
Al_ has joined #ruby
camilasan has joined #ruby
[[mandrix]] has quit [Ping timeout: 248 seconds]
Sm3lly has joined #ruby
ohcibi has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
arya has joined #ruby
noop has joined #ruby
krz has quit [Quit: krz]
corehook has quit [Read error: Connection reset by peer]
krz has joined #ruby
ohcibi has joined #ruby
bricker_ has joined #ruby
codesoda has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
codesoda has joined #ruby
whitemage has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
anderson has joined #ruby
mikewintermute has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
_erroric has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
kil0byte has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 256 seconds]
codesoda has quit [Ping timeout: 240 seconds]
whitemage has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
k610 has joined #ruby
RORgasm has joined #ruby
_KGBot_ has joined #ruby
tibi has quit [Read error: Connection reset by peer]
madb055 has quit [Ping timeout: 252 seconds]
madb055 has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
Al_ has joined #ruby
jokke has quit [Ping timeout: 248 seconds]
swex has joined #ruby
skattyadz has quit [Quit: skattyadz]
chandankumar has quit [Ping timeout: 256 seconds]
RORgasm has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
BonSequitur has quit [Read error: Connection reset by peer]
filipe has quit [Remote host closed the connection]
swex_ has quit [Ping timeout: 276 seconds]
mfridh has joined #ruby
* Quadlex headdesks
<Quadlex> I want to use master of psych
<matti> Quadlex: Not hard enough.
chandankumar has joined #ruby
filipe has joined #ruby
<Quadlex> Which *should* work now I've updated bundler and rubygems to the latest version because they have magic in them to accommodate that
<Quadlex> But doesn't
rippa has joined #ruby
MrZYX is now known as MrZYX|off
pi3r has quit [Ping timeout: 248 seconds]
b0oh has joined #ruby
kil0byte has joined #ruby
Ontolog has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
dhruvasa1ar has joined #ruby
jokke has joined #ruby
Zai00 has joined #ruby
MrZYX|off is now known as MrZYX
UmkaDK has joined #ruby
UmkaDK has left #ruby ["Leaving..."]
breadthfirst has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
chandankumar has quit [Quit: Leaving]
blacktulip has joined #ruby
altamic has quit [Quit: altamic]
blacktulip has quit [Remote host closed the connection]
Squarepy has joined #ruby
tundrax has quit [Remote host closed the connection]
Vert has quit [Ping timeout: 252 seconds]
ctp has quit [Quit: Linkinus - http://linkinus.com]
sayan has quit [Read error: Connection reset by peer]
pi3r has joined #ruby
ParanoidSP has quit [Ping timeout: 256 seconds]
corehook has joined #ruby
DonRichie has joined #ruby
nerdman has quit [Quit: leaving]
jcromartie has joined #ruby
slainer6_ has quit [Remote host closed the connection]
Bry8Star has quit [Ping timeout: 240 seconds]
tomzx_mac has quit [Ping timeout: 276 seconds]
anderson has left #ruby ["Leaving"]
k13n has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
falood has joined #ruby
ArchBeOS has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
guiocavalcanti has joined #ruby
undersc0re97 has joined #ruby
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
sailias has quit [Quit: Leaving.]
Shirakawasuna has quit [Ping timeout: 260 seconds]
Spooner has joined #ruby
Bry8Star has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
skattyadz has joined #ruby
banjara has quit [Ping timeout: 252 seconds]
rads has quit [Quit: rads]
Kar- has quit [Remote host closed the connection]
k13n has joined #ruby
breadthfirst has quit [Ping timeout: 248 seconds]
arya_ is now known as arya
BSaboia has joined #ruby
chandankumar has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
adambeynon has quit [Quit: Computer has gone to sleep.]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
sayan has joined #ruby
jbpros has quit [Quit: jbpros]
rakl has quit [Quit: sleeping]
rajkosto has quit [Read error: Connection reset by peer]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
workmad3 has joined #ruby
tyl has joined #ruby
lurch_ has quit [Quit: lurch_]
b0oh has quit [Quit: Leaving.]
k13n has quit [Ping timeout: 260 seconds]
adambeynon has joined #ruby
jlast has joined #ruby
ParanoidSP has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ohcibi has quit []
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
ohcibi has joined #ruby
evenix_ has joined #ruby
evenix has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
Astral_ has quit [Ping timeout: 256 seconds]
guiocavalcanti has joined #ruby
pagios_ has quit [Quit: Leaving]
lurch_ has joined #ruby
robscomputer has joined #ruby
ohcibi has quit [Client Quit]
ohcibi has joined #ruby
akhet has quit [Remote host closed the connection]
dyu has quit [Quit: Leaving.]
slainer68 has joined #ruby
guiocavalcanti has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
browndawg has quit [Quit: Leaving.]
jlast has quit [Ping timeout: 248 seconds]
ParanoidSP has quit [Ping timeout: 240 seconds]
ArchBeOS has quit [Quit: Leaving]
lkba has joined #ruby
_KGBot_ is now known as bugg
manime has joined #ruby
robscomputer_ has joined #ruby
gasbakid_ has joined #ruby
ohcibi has quit []
mixel has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
mixel has quit [Client Quit]
Domon has quit [Ping timeout: 260 seconds]
ohcibi has joined #ruby
mixel has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ohcibi has quit [Client Quit]
monkegjinni has joined #ruby
robscomputer has quit [Ping timeout: 240 seconds]
<manime> How you can earn up to a day with NO REFERRALS! http://1onedollarperday.blogspot.com/
manime has quit []
manime has joined #ruby
gasbakid has quit [Ping timeout: 260 seconds]
ohcibi has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 264 seconds]
r0bgleeson has joined #ruby
w|t has left #ruby ["Textual IRC Client: www.textualapp.com"]
monkegjinni has joined #ruby
krz has quit [Quit: krz]
ParanoidSP has joined #ruby
fmcgeough has joined #ruby
pi3r has quit [Ping timeout: 260 seconds]
manime has quit [Client Quit]
camilasan has quit [Remote host closed the connection]
viszu has joined #ruby
manime has joined #ruby
gorpon has quit [Ping timeout: 264 seconds]
Takehiro has quit [Remote host closed the connection]
manime has quit [Client Quit]
manime has joined #ruby
binaryplease has joined #ruby
fmcgeough has quit [Client Quit]
ohcibi has quit [Ping timeout: 256 seconds]
ohcibi has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
manime has quit [K-Lined]
lyanchih has quit [Ping timeout: 260 seconds]
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tyl has joined #ruby
moos3 has joined #ruby
robustus has joined #ruby
ldnunes has joined #ruby
<jokke_> hey.. maybe i'm just stupid but i can't figure out why i get this error: uninitialized constant Page::StringScanner
<jokke_> i thought StringScanner is in core
<apeiros> it's stdlib, not core
<apeiros> require 'strscan'
<jokke_> ah ok
<jokke_> thanks
b0oh has joined #ruby
yashshah- has quit [Quit: Konversation terminated!]
yashshah- has joined #ruby
gasbakid_ has quit [Quit: Quitte]
gasbakid has joined #ruby
kofno has joined #ruby
KillerFox has quit [Ping timeout: 248 seconds]
tk has joined #ruby
monkegji_ has joined #ruby
tk is now known as Guest9031
lushious has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
camilasan has joined #ruby
ipalaus has quit [Quit: Computer has gone to sleep.]
machuga is now known as machuga|away
jbpros has joined #ruby
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dustint has joined #ruby
machuga|away is now known as machuga
tyl has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
b0oh has quit [Ping timeout: 252 seconds]
atno has joined #ruby
malkomalko has joined #ruby
r0bby has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
fragmachine has joined #ruby
nari_ has joined #ruby
b0oh has joined #ruby
banjara has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
Takehiro has quit [Remote host closed the connection]
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
b0oh has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 260 seconds]
braoru has joined #ruby
mikecmpbll has joined #ruby
tyl has joined #ruby
jurbat has joined #ruby
banjara has quit [Ping timeout: 264 seconds]
dustint has quit [Quit: Leaving]
yashshah- has quit [Quit: Konversation terminated!]
yashshah- has joined #ruby
tyl has quit [Client Quit]
umren has quit [Ping timeout: 256 seconds]
tyl has joined #ruby
browndawg has joined #ruby
ntus1017 has quit [Remote host closed the connection]
anderson has joined #ruby
enriclluelles has quit [Remote host closed the connection]
niklasb has joined #ruby
slainer68 has joined #ruby
geekbri has joined #ruby
hamakn has quit [Remote host closed the connection]
jetblack has quit [Ping timeout: 252 seconds]
mnemon has quit [Quit: meh]
guiocavalcanti has joined #ruby
mnemon has joined #ruby
thebastl has quit [Ping timeout: 264 seconds]
fermion has joined #ruby
Zai00 has quit [Quit: Zai00]
postmodern has quit [Quit: Leaving]
jetblack has joined #ruby
devoldmx has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
JamesHolmes has joined #ruby
devoldmx27 has quit [Ping timeout: 248 seconds]
bugg has quit [Remote host closed the connection]
jbpros has joined #ruby
RORgasm has joined #ruby
nkr has joined #ruby
jacobbednarz has joined #ruby
Al_ has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit:]
DaniG2k1 has quit [Quit: Leaving.]
robscomputer has joined #ruby
k610 has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 264 seconds]
zigomir has quit [Quit: zigomir]
zigomir has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
anderson has quit [Quit: Leaving]
jlast has quit [Ping timeout: 256 seconds]
backjlack has quit [Read error: Connection reset by peer]
Eaven has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
Squarepy has quit [Remote host closed the connection]
Eaven has joined #ruby
jslowe has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
ntus1017 has joined #ruby
khushildep has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jamesaxl_ has joined #ruby
hogeo has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
Al_ has joined #ruby
carloslopes has joined #ruby
BSaboia has quit [Ping timeout: 248 seconds]
Takehiro has quit [Ping timeout: 248 seconds]
hamed_r has joined #ruby
bugg has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
mnemon has quit [Quit: meh]
devoldmx has joined #ruby
apeiros has quit [Remote host closed the connection]
mnemon has joined #ruby
Takehiro has joined #ruby
backjlack has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
jacobbednarz has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
ttt_ has quit [Remote host closed the connection]
dhruvasa1ar has quit [Quit: leaving]
dhruvasagar has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has quit [Changing host]
platzhirsch1 has joined #ruby
b0oh has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
RiftyMcF3arless has quit [Ping timeout: 260 seconds]
zetaspartan2552 has joined #ruby
zetaspartan2552 has quit [Client Quit]
zetaspartan2552 has joined #ruby
banjara has joined #ruby
Eaven has quit [Remote host closed the connection]
BSaboia has joined #ruby
banjara has quit [Ping timeout: 252 seconds]
xcv has joined #ruby
ariedler has joined #ruby
filipe has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 252 seconds]
futilegames has quit [Quit: futilegames]
kil0byte has quit [Remote host closed the connection]
jlast has joined #ruby
lurch_ has quit [Quit: lurch_]
b0oh has left #ruby [#ruby]
xcv has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
persand has quit [Quit: persand]
pcarrier_ has quit [Ping timeout: 248 seconds]
thesheff17 has joined #ruby
bugg has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
lurch_ has joined #ruby
BizarreCake has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
pcarrier_ has joined #ruby
solidoodlesuppor has joined #ruby
obs has quit [Quit: Konversation terminated!]
dhruvasagar has quit [Read error: Operation timed out]
BryanWB has joined #ruby
ipalaus has joined #ruby
<BryanWB> is there a book for learning fog? or one w/ extensive examples?
anonymuse has joined #ruby
DaniG2k has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
bugg has joined #ruby
noop has quit [Ping timeout: 256 seconds]
breakingthings has joined #ruby
sambao21 has joined #ruby
wolcanus has joined #ruby
xcv has joined #ruby
ParanoidSP has quit [Remote host closed the connection]
csaunders has joined #ruby
hamakn has joined #ruby
<joonty> BryanWB: I take it that the stuff on fog.io isn't enough?
obs has joined #ruby
<BryanWB> joonty: it is pretty good, was wondering if there is anything in addition to that
<BryanWB> like the AWS & python book
<JamesHolmes> hi, zup. So I'm a strong firm fanatic extremist beleiver in solving all your problems intellectually, perhaps with a mind-map. Now, I feel really confused, down, depersonalized, tired, and so forth. I don't feel like I have the power to control my life, performance or my mental state. What intellectual method/approach can I use to define (understand) my problem and to design a solution?
<joonty> there's no book as far as I know
<joonty> hmm
sailias has joined #ruby
codecop has quit [Remote host closed the connection]
Neomex has joined #ruby
thebastl has joined #ruby
Neomex has quit [Client Quit]
_nitti has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
hamakn has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
motto has joined #ruby
JZTech101 has joined #ruby
m8 has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
atno has quit [Ping timeout: 248 seconds]
s0ber has quit [Remote host closed the connection]
s0ber has joined #ruby
devoldmx3 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
csaunders has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<joonty> elaptics: yes, it's me ;-)
cj3kim has quit [Remote host closed the connection]
splittingred has joined #ruby
headius has joined #ruby
wmoxam has joined #ruby
apeiros has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
fuzzyhorns has joined #ruby
Takehiro has quit [Remote host closed the connection]
khushildep has quit [Remote host closed the connection]
noop has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
mmitchell has joined #ruby
Takehiro has joined #ruby
cofin has joined #ruby
renanoronfle has joined #ruby
<jokke_> how can i use shared memory objects with the parallel gem?
<jokke_> or does that happen automagically?
kil0byte has joined #ruby
joonty has left #ruby [#ruby]
joonty has joined #ruby
rickruby has joined #ruby
yalue has joined #ruby
atno has joined #ruby
k13n has joined #ruby
khushildep has joined #ruby
ikarius has joined #ruby
devoldmx has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
retnuh has joined #ruby
pcarrier_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jerius has joined #ruby
chandankumar has quit [Quit: Leaving]
Eaven has joined #ruby
DestinyAwaits has quit [Quit: Leaving]
ctp has joined #ruby
Vert has joined #ruby
b0oh has joined #ruby
rickruby has quit [Remote host closed the connection]
ffranz has joined #ruby
zmo_ has quit [Quit: Leaving]
k610 has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby
jurbat has quit [Ping timeout: 248 seconds]
mmitchell has quit [Ping timeout: 276 seconds]
JamesHolmes has quit [Ping timeout: 240 seconds]
Proshot has quit [Quit: Leaving]
Eaven has quit [Read error: Connection reset by peer]
gaahrdner has joined #ruby
Eaven has joined #ruby
jeka-91 has joined #ruby
banjara has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
teddyp1cker has joined #ruby
workmad3 has joined #ruby
manutter has joined #ruby
sambao21 has joined #ruby
akells` has joined #ruby
bluOxigen has joined #ruby
jurbat has joined #ruby
banjara has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
akells` has quit [Remote host closed the connection]
splittingred has joined #ruby
b0oh has left #ruby [#ruby]
mmitchell has joined #ruby
mastr has joined #ruby
thebastl has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
tomkad has joined #ruby
chandankumar has joined #ruby
johnrlive has joined #ruby
spacebug has quit [Read error: Connection reset by peer]
xcv has quit [Remote host closed the connection]
nezumi has quit [Read error: Operation timed out]
xcv has joined #ruby
dsabanin has joined #ruby
jtharris has joined #ruby
machuga is now known as machuga|away
failshell has joined #ruby
braoru has quit [Remote host closed the connection]
mootpointer has joined #ruby
cek has joined #ruby
<cek> how do I build a relocable gem ext?
pcarrier_ has quit [Quit: Computer has gone to sleep.]
osvico has quit [Ping timeout: 248 seconds]
motto has quit [Changing host]
motto has joined #ruby
spacebug has joined #ruby
MistuhKurtz has joined #ruby
monkegji_ has joined #ruby
ruissalo has quit [Ping timeout: 260 seconds]
MistuhKurtz has quit [Client Quit]
bitri has joined #ruby
bitri has quit [Client Quit]
monkegjinni has quit [Ping timeout: 264 seconds]
devdazed has quit [Ping timeout: 260 seconds]
yshh has quit [Remote host closed the connection]
monkegji_ has quit [Read error: Connection reset by peer]
julytwilight has joined #ruby
platzhirsch1 has quit [Quit: Leaving.]
bugg is now known as dfdf
platzhirsch has joined #ruby
monkegjinni has joined #ruby
ferdev_ has quit [Ping timeout: 252 seconds]
jokke_ has quit [Quit: WeeChat 0.3.6]
atno has quit [Remote host closed the connection]
RORgasm has joined #ruby
akells` has joined #ruby
generalissimo has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
wallerdev has joined #ruby
k610 has joined #ruby
devdazed has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegji_ has joined #ruby
GeissT_ has joined #ruby
Hanmac1 is now known as Hanmac
<esaym153> this line actually executes a command, what the heck? puts retvar = %x[#{kcmdline}]
zph has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<esaym153> what is '%x'
<ericwood> the same as backticks
<joonty> esaym153: it executes a shell command
<ericwood> it executes said command in a shell
<canton7> it, uh, executes a command
<canton7> just like you observed
<waxjar> and returns the result
<ericwood> >> %x[echo hello]
<eval-in> ericwood => (http://eval.in/31412)
<ericwood> lol
<esaym153> seems goofy..
<canton7> just use backticks if you don't like %x
fuzzyhorns has quit [Read error: Connection reset by peer]
GeissT has quit [Ping timeout: 252 seconds]
RORgasm has quit [Ping timeout: 260 seconds]
fuzzyhorns has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
<waxjar> there's also %w (%w[one two three]) to make Arrays, %q for Strings. there are a bunch of others. i forgot what they're called
xcvd`` has joined #ruby
zph has quit [Client Quit]
monkegjinni has quit [Ping timeout: 276 seconds]
motto is now known as m8
<apeiros> %x is a bit special. the rest are literals.
jslowe has quit [Ping timeout: 260 seconds]
enebo has quit [Quit: enebo]
devoldmx3 has joined #ruby
ruissalo has joined #ruby
* apeiros votes to call them litterals, since peope litter their code with them
BizarreCake has quit [Ping timeout: 260 seconds]
<waxjar> lol
k611 has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
<joonty> I believe the official name is "general delimited input"
machuga|away is now known as machuga
lyanchih has joined #ruby
dmiller has joined #ruby
<apeiros> from that link, "There are alternative forms of *literal*…"
<apeiros> that's because they're literals :-p
tvw has quit []
<apeiros> oh, even explicitly a bit later: "All these *literals* start…"
<joonty> it's not a very specific name, though, as integers, binary numbers, etc are also literals
k610 has quit [Ping timeout: 240 seconds]
<apeiros> sure. but I see no value in specifying an additional name for %-prefixed literals.
<joonty> ftw, that's why
Kovensky has quit [Remote host closed the connection]
<joonty> :-p
<apeiros> but ok, if you want a name, general delimited input is fine by me (never heard it before, though)
<joonty> and you probably won't ever hear it again
jprovazn is now known as jprovazn_afk
<joonty> what happens in #ruby stays in #ruby
Kovensky has joined #ruby
k611 has quit [Ping timeout: 256 seconds]
kil0byte has quit [Read error: Connection reset by peer]
johnnyfuchs has joined #ruby
kil0byte has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
kil0byte has quit [Remote host closed the connection]
codecop has joined #ruby
zph has joined #ruby
zph has quit [Client Quit]
rhys has joined #ruby
pygmael has quit [Read error: Operation timed out]
seejohnrun has joined #ruby
forest has joined #ruby
corehook has quit [Ping timeout: 248 seconds]
pcarrier_ has joined #ruby
maycon has joined #ruby
futilegames has joined #ruby
ohcibi has quit [Ping timeout: 256 seconds]
woolite64_ has joined #ruby
mixel has quit [Ping timeout: 240 seconds]
platzhirsch has left #ruby [#ruby]
ioNull has quit [Quit: Computer has gone to sleep.]
k611 has joined #ruby
binaryplease has quit [Read error: Operation timed out]
mixel has joined #ruby
supergiantrobot has joined #ruby
rickruby has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
bluOxigen has joined #ruby
interactionjaxsn has joined #ruby
woolite64__ has quit [Ping timeout: 240 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
<becom33> http://pastebin.com/2e1RTqh4 in this . i got script to kill thread if a thread runing . but it doesnt which back to readline loop . can some one help ?
_Amaan has joined #ruby
<becom33> to use the script
dhruvasagar has joined #ruby
<becom33> type "run" and hit Ctrl+C
ananthakumaran1 has quit [Quit: Leaving.]
brotatos has joined #ruby
BizarreCake has joined #ruby
cj3kim has joined #ruby
<apeiros> becom33: there's no space before punctuation in most western languages.
nari_ has quit [Ping timeout: 248 seconds]
<becom33> apeiros, alright. sorry about that
<apeiros> why do you use threads? avoid them if you don't really really need them.
<apeiros> no need to be sorry. just telling you so you can improve ;-)
tomzx_mac has quit [Ping timeout: 252 seconds]
kf8a has joined #ruby
<becom33> apeiros, oki theen lets say I have loop or somthing runing how can I kill without stop the script and swhich back the readline thread where I was before ?
ruissalo has quit [Ping timeout: 276 seconds]
lyanchih has quit [Quit: lyanchih]
<apeiros> I don't really understand your question. sorry.
Dave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 240 seconds]
Dave is now known as Guest47900
GeissT_ has quit [Ping timeout: 240 seconds]
freeayu__ has quit [Read error: Connection reset by peer]
<becom33> apeiros, gimme a minit I'll show a demo script and then I'll tell u want I want to do
dfdf has quit [Remote host closed the connection]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
zetaspartan2552 has quit [Quit: zetaspartan2552]
umren has joined #ruby
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
rickruby has quit [Ping timeout: 276 seconds]
RORgasm has joined #ruby
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
bean__ has joined #ruby
ohcibi has joined #ruby
ohcibi has quit [Remote host closed the connection]
axl_ has joined #ruby
<becom33> http://pastebin.com/PfbBDJPL apeiros alright when type "run" it starts to loop and now in this script u can hit "Ctrl+c" and exit
undersc0re97 has quit [Read error: Connection reset by peer]
<becom33> now what I want to do apeiros is, when u hit Ctrl+C if there is a loop or some kind of a process runing . kill it without exiting . and if there is nothing runing exit the script
<apeiros> I assume you omitted DemoScript.new.prompt ?
ohcibi has joined #ruby
lyanchih has joined #ruby
atno has joined #ruby
alx- has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
d2dchat has joined #ruby
zetaspartan2552 has joined #ruby
momomomomo has joined #ruby
jbueza has quit [Quit: Leaving.]
<becom33> apeiros, sorry about before
<becom33> run this one http://pastebin.com/AsAaj6fz
bluOxigen has quit [Ping timeout: 258 seconds]
mattsgarrison has quit [Remote host closed the connection]
bluOxigen has joined #ruby
marcdel has joined #ruby
zetaspartan2552 has quit [Client Quit]
banjara has joined #ruby
tommyvyo has joined #ruby
ohcibi has quit [Ping timeout: 256 seconds]
ruissalo has joined #ruby
ayaz has quit [Quit: Bye!]
<becom33> apeiros, it works awseome thanks man
tommyvyo has quit [Client Quit]
brotatos has quit [Ping timeout: 240 seconds]
monkegji_ has quit [Ping timeout: 256 seconds]
ramblex has joined #ruby
seejohnrun has quit [Quit: leaving]
banjara has quit [Ping timeout: 260 seconds]
palantir has joined #ruby
thebastl has joined #ruby
_maes_ has joined #ruby
spider-mario has joined #ruby
acrussell has joined #ruby
acrussell has left #ruby [#ruby]
RiftyMcF3arless has joined #ruby
ioNull has joined #ruby
persand has joined #ruby
brotatos has joined #ruby
stkowski has quit [Quit: stkowski]
Volatile has joined #ruby
tootubular has joined #ruby
ExxKA has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
deusAnima has quit [Read error: Connection reset by peer]
<Volatile> hi. If I do something like (1..VERY_BIG_NUMBER).each{|x| somefunc x}, will this create the humongous 1..VERY_BIG_NUMBER array or do something more resource efficient? (I guess I'm looking for a nice way to write something in the lines of a standard C for loop)
<Hanmac> Volatile: Range#each will not create an big array
<waxjar> 1..x will create a range
devoldmx has joined #ruby
<Xeago> Volatile: for more information look up the #succ methods
<Xeago> a successor to the number is generated each step until <=> VERY_BIG_NUMBER
<Volatile> Ah, nice. Thanks y'all.
devoldmx3 has quit [Ping timeout: 256 seconds]
<Xeago> >> 1.succ
<eval-in> Xeago => 2 (http://eval.in/31413)
<Xeago> like so :)
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pdswan has joined #ruby
tommyvyo has joined #ruby
falood has quit [Remote host closed the connection]
<Hanmac> Xeago: Symbols does succ too :P
pdswan has quit [Client Quit]
<Xeago> nah they don't, strings do :)
Asher has quit [Read error: Connection reset by peer]
<waxjar> >> :x.succ
<eval-in> waxjar => :y (http://eval.in/31414)
<waxjar> heh, cute
monkegjinni has joined #ruby
undersc0re97 has joined #ruby
Asher has joined #ruby
noop has quit [Ping timeout: 260 seconds]
<Volatile> >> :ö.succ
<eval-in> Volatile => :ØØ (http://eval.in/31415)
<Xeago> "!".succ
<Xeago> >> "!".succ
<eval-in> Xeago => "\"" (http://eval.in/31416)
Astralum has joined #ruby
palantir has quit [Ping timeout: 260 seconds]
<Volatile> >> :☃.succ
<eval-in> Volatile => :☄ (http://eval.in/31417)
enebo has joined #ruby
niceguyjames has joined #ruby
<Hanmac> >> :abc.upcase
<eval-in> Hanmac => :ABC (http://eval.in/31418)
kf8a has quit [Ping timeout: 256 seconds]
<ericwood> >> 'é'.upcase
<eval-in> ericwood => "é" (http://eval.in/31419)
<ericwood> BOOOOO
<Volatile> tssk
<Volatile> "ö".upcase
<Volatile> >> "ö".upcase
<eval-in> Volatile => "ö" (http://eval.in/31420)
<ericwood> you forgot the >>
<ericwood> yep, fail
Takehiro has quit [Remote host closed the connection]
<Volatile> yep.
<canton7> >> "ß".upcase
<eval-in> canton7 => "ß" (http://eval.in/31421)
cj3kim has joined #ruby
<canton7> aww, not "ss"
<Volatile> Well, ruby is kinda utf-failish
<Hanmac> >> Encoding.default_external
<eval-in> Hanmac => #<Encoding:UTF-8> (http://eval.in/31422)
<Hanmac> >> "".encoding
<eval-in> Hanmac => #<Encoding:UTF-8> (http://eval.in/31423)
<Volatile> >> ö=3
<eval-in> Volatile => 3 (http://eval.in/31424)
<Volatile> hmm, why can't my ruby do that...
<MrZYX> < 2.0 ?
<Volatile> yep.
* Volatile wants libraries and so on
<MrZYX> add the magic comment and it can
<Volatile> Ah, nice.
<Volatile> Hm. If ruby can't do "ö".upcase, does it still knows that it is lower case (that is, not a constant)?
<MrZYX> it gets funny if you use the various space characters as identifiers
_seanc_ has joined #ruby
<Volatile> MrZYX: haha
cj3kim has quit [Remote host closed the connection]
chrishough has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
<Volatile> Seems to work in 1.9, but not in 1.8. Guess I'll just hope that I'll never just 1.8 libs... ;)
tjbiddle has joined #ruby
bitri has joined #ruby
bitri has quit [Max SendQ exceeded]
kobain has joined #ruby
<MrZYX> you shouldn't
<Volatile> >> class Ö end
<eval-in> Volatile => /tmp/execpad-121101f929e0/source-121101f929e0:2: class/module name must be CONSTANT ... (http://eval.in/31425)
<MrZYX> in a few days 1.8 will see no security updates anymore
<Volatile> fail, fail, fail...
<Volatile> MrZYX: let's hope all lazy bastards everywhere update their code.
sayan has quit [Read error: Connection reset by peer]
JuanMiguel2 has joined #ruby
<MrZYX> >> Ö = Class.new
<eval-in> MrZYX => #<Class:0x4115926c> (http://eval.in/31426)
JuanMiguel2 has left #ruby [#ruby]
<Volatile> MrZYX: I can't create an Ö class, eventhough Ö is upper case.
<MrZYX> you can create the class, you can't assign it that name :P
forest has quit [Quit: Leaving]
<Volatile> Heh. Well, that's not an ugly hack at all, now is it... ;)
<Volatile> >> ☃ = Class.new
<eval-in> Volatile => #<Class:0x409ed258> (http://eval.in/31427)
<MrZYX> :P
_maes_ has quit [Ping timeout: 252 seconds]
Al_ has quit [Quit: Al_]
<Volatile> Meh. At least ruby's ignorance lets me use every sign as a variable name, I guess.
nari_ has joined #ruby
Uranio has joined #ruby
<apeiros> Volatile: constant is not defined as "uppercase" first (even though I use to say that too), it's defined as [A-Z] first
<Dwarf> Is there a way to re-attach to a script after you've daemonized it?
_nitti_ has joined #ruby
<apeiros> and yes, sadly even ruby 2.0 still has no concept of collations/cases (other than ascii)
<Volatile> apeiros: ouch.
yshh has joined #ruby
<apeiros> and personally I'd be very happy if ruby actually limited identifiers to \w
alex__c2022 has joined #ruby
k13n has quit [Ping timeout: 260 seconds]
robscomputer has quit [Ping timeout: 264 seconds]
* Volatile doesn't like arbitrary limitations
cj3kim has joined #ruby
devoldmx3 has joined #ruby
<apeiros> not really arbitrary
jbueza has joined #ruby
<apeiros> \w is a good subset usable by many
<apeiros> I don't think you'd be happy if you'd have to type all kinds of japanese method names instead of latin based ones
<apeiros> I mean… good luck finding the proper symbols…
cj3kim has quit [Remote host closed the connection]
zeeraw has quit [Quit: Computer has gone to sleep.]
aalmenar has joined #ruby
tommyvyo has quit [Quit:]
_nitti has quit [Ping timeout: 248 seconds]
<apeiros> (and remember, ruby is japanese by origin)
<Volatile> apeiros: well, I don't master japanese enough yet. And also, since japanese has no concept of upper/lower case, it's hard to use in this context.
zeeraw has joined #ruby
mafolz has quit [Ping timeout: 248 seconds]
<apeiros> see
cj3kim has joined #ruby
geekbri has quit [Remote host closed the connection]
<Volatile> Haskell defines everything uppercaseable as uppercase, everything downcaseable as downcase, and everything operator like as possible operators. I like this.
<apeiros> there are also languages which have a concept of multiple upper cases for a given character, and/or more cases than just upper and lower. have fun integrating that into rubys existing concept.
tommyvyo has joined #ruby
fschuindt has joined #ruby
wsterling has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
_nitti_ has quit [Remote host closed the connection]
pduin has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
<Volatile> apeiros: could you give me an example of a writing language with multiple upper cases? *interested*
<apeiros> can't, sorry. only heard of it existing when reading discussions of unicode and concepts behind it.
endguy has quit [Remote host closed the connection]
cj3kim has joined #ruby
<ikarius> hmm. any possibility of some help with moving some class definitions out of my rails controller file, and into an external file I can require back in?
nari_ has quit [Ping timeout: 252 seconds]
<ikarius> I can't seem to get anything other than a Module to load via 'require', but one of my classes inherits from the Array class
cj3kim has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
Davey has joined #ruby
wolcanus has quit [Remote host closed the connection]
<apeiros> ikarius: require works with files, not modules/classes
<apeiros> files then contain modules/classes
<ikarius> hmm
<apeiros> rails adds PROJECT/lib to your $LOAD_PATH, so requires relative to that path will work just fine
<hoelzro> Volatile: Greek, I believe
<apeiros> i.e., PROJECT/lib/foo.rb can be required as `require 'foo'`
<hoelzro> well, that has multiple lowercases for sigma
<hoelzro> so simliar, but not the same
ereslibre is now known as ereslibre_work
devoldmx3 has quit [Ping timeout: 256 seconds]
<Volatile> hoelzro: ehm, well, yes, I guess. But that's more like arabic, with a word final form that differs from others.
slainer6_ has joined #ruby
devoldmx has joined #ruby
<hoelzro> hehe, Arabic
endguy has joined #ruby
_erroric has joined #ruby
companion has quit [Quit: Poweroff]
slainer68 has quit [Ping timeout: 248 seconds]
Ontolog has joined #ruby
companion has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
rhys has quit [Quit: Leaving]
sayan has joined #ruby
_nitti has joined #ruby
nezumi has joined #ruby
SparkySparkyBoom has joined #ruby
ckrailo has joined #ruby
ananthakumaran has joined #ruby
SparkySparkyBoom has left #ruby ["WeeChat 0.4.0"]
carloslopes has quit [Remote host closed the connection]
prsimp has joined #ruby
Evixion has joined #ruby
dsabanin has quit [Quit: Leaving...]
zeeraw has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby
LaPetiteFromage has joined #ruby
timonv has quit [Remote host closed the connection]
<ikarius> AHHH. thank you!
thesheff17 has quit [Disconnected by services]
mikepack has joined #ruby
<ikarius> finally. that solved my problem with every code change requiring a rake session clear
baroquebobcat has joined #ruby
thesheff17 has joined #ruby
<apeiros> ikarius: note that as of rails 3, files in lib are neither automatically loaded nor reloaded. they need to be required explicitly and a change requires a server restart (or some other kind of trickery)
<ikarius> … was storing some objects in the session, and every time I updated the code in my controller, rails would start bombing, complaining it couldn't appropriately load the object
<apeiros> you should generally not store complex objects in the session. that is brittle. serialize your data.
rhys has joined #ruby
<ikarius> even though the code changes had nothing to do with altering the objects themselves
Neomex has joined #ruby
prsimp has quit [Quit: prsimp]
<ikarius> apeiros: ahh
gasbakid has quit [Remote host closed the connection]
banjara has joined #ruby
dsabanin has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
hamed_r has quit [Quit: Leaving]
<apeiros> also remember that cookie based sessions are limited by the browsers cookie-size limits. usually 4KB.
<ikarius> not using cookie sessions
<apeiros> additionally, cookies are sent on every request (even assets)
<ikarius> using sqlite3
<apeiros> ok
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ikarius> but now that I've successfully moved the object definitions out to a separate file, I can change my controller code, and rails keeps on being happy
goganchic has joined #ruby
mahmoudimus has joined #ruby
<Hanmac> ikarius: why are you not asking at #rubyonrails ?
<ikarius> Hanmac: hmm. because I didn't know that channel existed ;)
txdv has quit [Ping timeout: 252 seconds]
julytwilight has left #ruby ["Leaving..."]
F1skr has quit [Quit: WeeChat 0.4.1]
pitzips has joined #ruby
hamakn has joined #ruby
<ikarius> … but at this point, I've accomplished what I was hoping to accomplish
akells` has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
MrZYX is now known as MrZYX|off
twoism has joined #ruby
banjara has quit [Ping timeout: 261 seconds]
rhys has quit [Quit: Leaving]
sayan has quit [Ping timeout: 264 seconds]
graft has joined #ruby
alup has quit [Quit: Leaving]
tylersmith has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
momomomomo has quit [Quit: momomomomo]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
Uranio has joined #ruby
rhys has joined #ruby
JMcAfreak has quit [Quit: Leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
JMcAfreak has joined #ruby
altamic has quit [Quit: altamic]
dankest has quit [Quit: Leaving...]
brianpWins has quit [Quit: brianpWins]
larissa has joined #ruby
Shirakawasuna has joined #ruby
l33 has joined #ruby
mahmoudimus has joined #ruby
MrZYX|off is now known as MrZYX
workmad3 has joined #ruby
graft has quit [Ping timeout: 256 seconds]
skattyadz has quit [Quit: skattyadz]
evenix has quit [Remote host closed the connection]
evenix_ has quit [Remote host closed the connection]
skattyadz has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
cek has quit [Quit: жопа диридай диридиридай]
evenix has joined #ruby
DaniG2k has quit [Quit: Leaving.]
jdunck has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
evenix_ has joined #ruby
ybart has quit [Quit: ybart]
wolcanus has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
Uranio has left #ruby ["while you reading this, a kitty dies"]
goganchic has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
<Dwarf> Is there a way to re-attach to a script after you've daemonized it?
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
senayar has quit [Read error: Operation timed out]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
senayar has joined #ruby
skattyadz has quit [Quit: skattyadz]
_nitti has joined #ruby
akells` has quit [Remote host closed the connection]
wolcanus_ has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
wolcanus has quit [Read error: Connection reset by peer]
dankest has joined #ruby
ipalaus has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
momomomomo has joined #ruby
Shirakawasuna has quit [Ping timeout: 256 seconds]
yxhuvud has joined #ruby
kobain has joined #ruby
tvw has joined #ruby
sayan_ has joined #ruby
carloslopes has joined #ruby
senayar has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
akells` has joined #ruby
IrishGringo has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
[[thufir]] has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jbpros has joined #ruby
blaxter has quit [Quit: foo]
chandankumar has quit [Ping timeout: 276 seconds]
robscomputer has joined #ruby
dsabanin has quit [Quit: Linkinus - http://linkinus.com]
MistuhKurtz has joined #ruby
MistuhKurtz has quit [Max SendQ exceeded]
ToApolytoXaos has joined #ruby
enebo has quit [Quit: enebo]
niceguyjames has quit [Quit: Computer has gone to sleep.]
kobain has quit [Ping timeout: 264 seconds]
twoism has quit [Remote host closed the connection]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
twoism has joined #ruby
Voodoofish430 has joined #ruby
carloslopes has quit [Ping timeout: 256 seconds]
cantonic has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
jrajav has joined #ruby
joonty has quit [Quit: leaving]
ryannielson has joined #ruby
bradhe has joined #ruby
cantonic has joined #ruby
cantonic has quit [Client Quit]
Astralum has quit [Ping timeout: 240 seconds]
alex__c2022 has quit [Quit: alex__c2022]
mnemon has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
nof13 has joined #ruby
tommyvyo has quit [Quit:]
krombr has joined #ruby
Astralum has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
MoraaroM has quit [Read error: Connection reset by peer]
kobain has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
[[thufir]] has quit [Remote host closed the connection]
nezumi has quit [Ping timeout: 264 seconds]
aknewhope__ has quit [Quit: Leaving]
druonysus has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
stkowski has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
zeeraw has joined #ruby
tommyvyo has joined #ruby
machuga is now known as machuga|away
devoldmx has joined #ruby
Takehiro has quit [Remote host closed the connection]
fragmachine has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
Takehiro has joined #ruby
jbpros has quit [Quit: jbpros]
Astral_ has joined #ruby
finges has joined #ruby
Astral__ has joined #ruby
stkowski has quit [Client Quit]
akells` has quit [Remote host closed the connection]
stkowski has joined #ruby
noname001 has quit [Ping timeout: 248 seconds]
ruissalo has quit [Quit: Leaving]
wolcanus has joined #ruby
teclator has joined #ruby
ikarius has left #ruby [#ruby]
aalmenar has quit [Changing host]
aalmenar has joined #ruby
Astralum has quit [Ping timeout: 260 seconds]
kpshek has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
choobie has quit [Ping timeout: 240 seconds]
Astralum has joined #ruby
slainer6_ has quit [Remote host closed the connection]
<MrZYX> Dwarf: daemonized in what way?
Astral_ has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby
tootubular has quit [Quit: tootubular]
wolcanus_ has quit [Ping timeout: 256 seconds]
tootubular has joined #ruby
Astral_ has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
thomaslee has joined #ruby
kobain has joined #ruby
futilegames has quit [Quit: futilegames]
kobain has quit [Excess Flood]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
kobain has quit [Excess Flood]
zeeraw has quit [Quit: Computer has gone to sleep.]
Astral__ has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
kobain has quit [Excess Flood]
thebastl has quit [Remote host closed the connection]
kobain has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
kobain has quit [Excess Flood]
thebastl has joined #ruby
kobain has joined #ruby
kobain has quit [Excess Flood]
bamdad has left #ruby [#ruby]
Astralum has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
pitzips has quit [Ping timeout: 276 seconds]
futilegames has joined #ruby
kobain has quit [Excess Flood]
Astralum has joined #ruby
pskosinski has joined #ruby
kobain has joined #ruby
thomaslee has quit [Remote host closed the connection]
Takehiro has joined #ruby
Male55 has joined #ruby
<Male55> hello
shadoi has joined #ruby
wolcanus has quit [Remote host closed the connection]
machuga|away is now known as machuga
Astral_ has quit [Ping timeout: 260 seconds]
ngoldman has joined #ruby
bitcycle has joined #ruby
Astral_ has joined #ruby
wolcanus has joined #ruby
<bitcycle> Hey all. I'm working with some legacy code, and I'm sortof a newbie in ruby-land... what do the @@ symbols mean in this name? @@logger.debug(...)
<banister`shop> bitcycle: do you know about @var yet?
<bitcycle> banister`shop, Well, this one has two @ symbols... is that the same thing as using just one?
colonolGron has joined #ruby
<matti> God. I read your nick as bicycle.
<Volatile> bitcycle: nope
alem0lars_ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<Volatile> bitcycle: @@ means a class variable
colonolGron has quit [Client Quit]
alem0lars_ has quit [Client Quit]
tomkad has quit [Read error: Operation timed out]
alem0lars has joined #ruby
<Volatile> bitcycle: SomeClass.foo is a @@foo, SomeClass.new.foo is a @foo
undersc0re97 has quit [Read error: Operation timed out]
<bitcycle> Volatile, ah, so its like a class that has a static member.
banjara has joined #ruby
mahmoudimus has joined #ruby
mnemon has joined #ruby
<Volatile> bitcycle: yep.
undersc0re97 has joined #ruby
myu is now known as myu_afk
<bitcycle> Volatile, Sweet. Thanks for that helpful explanation!
Astralum has quit [Ping timeout: 240 seconds]
thebastl has quit [Remote host closed the connection]
<Volatile> bitcycle: glad I could help!
<banister`shop> bitcycle: @@var is sort of like @var except it's also access on the class
<bitcycle> Hey all. Can someone point me to a good "best practices" article/tutorial/how-to on logging in ruby? I want to make sure we're doing this right....
<banister`shop> accessible
kenneth has quit [Quit: kenneth]
tylersmith has joined #ruby
Astralum has joined #ruby
jurbat has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
im0b has quit [Read error: Operation timed out]
Male55 has left #ruby [#ruby]
Astral_ has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
twoism_ has joined #ruby
Naeblis|XChat has joined #ruby
heidar has quit [Ping timeout: 240 seconds]
Naeblis|XChat has quit [Read error: Connection reset by peer]
tylersmith has quit [Write error: Broken pipe]
tylersmi_ has joined #ruby
_rgn has quit [Ping timeout: 248 seconds]
[Neurotic] has quit [Ping timeout: 248 seconds]
SeanTAllen has quit [Ping timeout: 240 seconds]
phasma has quit [Ping timeout: 252 seconds]
strax has quit [Ping timeout: 240 seconds]
banjara has quit [Ping timeout: 260 seconds]
pipecloud has quit [Ping timeout: 240 seconds]
Naeblis has quit [Ping timeout: 256 seconds]
notbrent has quit [Ping timeout: 252 seconds]
karnowski has quit [Ping timeout: 252 seconds]
emmanuelux has joined #ruby
Cultofmetatron has joined #ruby
bricker_ has quit [Ping timeout: 264 seconds]
rcsheets has quit [Ping timeout: 252 seconds]
undersc0re97 has quit [Ping timeout: 276 seconds]
twoism has quit [Ping timeout: 246 seconds]
lovclrtxt has quit [Ping timeout: 240 seconds]
machuga is now known as machuga|away
mtlatif__ has quit [Ping timeout: 245 seconds]
yeban has quit [Ping timeout: 256 seconds]
guilleiguaran__ has quit [Ping timeout: 256 seconds]
mroth has quit [Ping timeout: 240 seconds]
Astral_ has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
Volatile has quit [Quit: leaving]
mixel has quit [Quit: mixel]
Neomex has quit [Quit: Neomex]
tjbiddle has joined #ruby
ceckhardt has joined #ruby
ceckhardt has quit [Client Quit]
Astralum has quit [Ping timeout: 241 seconds]
djbkd has joined #ruby
twoism_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
BadQuanta has quit [Quit: Leaving]
jurbat has joined #ruby
lurch_ has quit [Ping timeout: 260 seconds]
LaPetiteFromage has joined #ruby
robscomputer_ has joined #ruby
apalmblad has joined #ruby
momomomomo has quit [Quit: momomomomo]
xcvd`` has quit [Read error: Operation timed out]
jslowe has joined #ruby
cj3kim has joined #ruby
tommyvyo has quit [Quit:]
emmanuelux has quit [Ping timeout: 256 seconds]
jurbat has quit [Client Quit]
arietis has joined #ruby
robscomputer has quit [Ping timeout: 256 seconds]
johnhamelink has joined #ruby
mrsolo has joined #ruby
xardas has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
rupee has joined #ruby
autumn has quit [Ping timeout: 264 seconds]
timmow has quit [Ping timeout: 252 seconds]
Astral_ has quit [Ping timeout: 260 seconds]
krombr has quit [Remote host closed the connection]
xcvd`` has joined #ruby
randomlogin has quit [Quit: randomlogin]
seejohnrun has joined #ruby
Al_ has joined #ruby
mocfive has joined #ruby
viszu has quit [Quit: Leaving.]
Dummies_freelanc has joined #ruby
madb055 has quit [Ping timeout: 256 seconds]
headius has quit [Ping timeout: 276 seconds]
jslowe has quit [Ping timeout: 264 seconds]
fschuindt has quit [Quit: Computer has gone to sleep.]
IrishGringo__ has joined #ruby
<johnhamelink> Hey there, I have probably a dumb question :) I have a class with static methods in it, and I want to use a static method to populate an attribute in a class (I think it's an attribute at least) - what am I doing wrong: https://gist.github.com/johnhamelink/ef5674dacbf8e3c6ee54
hamakn has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
Astralum has joined #ruby
IrishGringo has quit [Ping timeout: 252 seconds]
IrishGringo__ is now known as IrishGringo
pcarrier_ has quit [Quit: Computer has gone to sleep.]
<banister`shop> johnhamelink: those two @brances ivars are differnet, u know?
<banister`shop> one is on the class, the other is on the instance
ngoldman has quit [Read error: Connection reset by peer]
ngoldman has joined #ruby
<johnhamelink> banister`shop: so @branches will always be nil?
<banister`shop> johnhamelink: which @branches are you referring to
<johnhamelink> banister`shop: sorry, line 3 of branch.rb
renanoronfle has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
cj3kim has quit [Remote host closed the connection]
<banister`shop> johnhamelink: yes
<banister`shop> it'll always be nil
workmad3 has joined #ruby
druonysus has joined #ruby
druonysus has joined #ruby
<johnhamelink> banister`shop: ok, to fix it I should turn it into a method, yeah?
apeiros has quit [Read error: Operation timed out]
bmsatierf has joined #ruby
mityaz has joined #ruby
khushildep has quit [Ping timeout: 260 seconds]
<banister`shop> johnhamelink: totally depends on what u're trying to do, which im pretty unsure of. But i suggest you learn about the scope of @ivar before u try anything
<banister`shop> so u dont confuse yourself
<bmsatierf> Hello! What if I wanted "for i in 5..0" instead the default "for i in 0..5", would it work?
bobbyz has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
statarb3 has quit [Quit: Leaving]
Xeago_ has joined #ruby
<johnhamelink> banister`shop: good idea, i will do. The problem i'm referring to though is actually on letmc.rb, lines 31 & 47
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
cj3kim has joined #ruby
<johnhamelink> banister`shop: for some reason when savon tries to read Letmc::Client::wsdl, it doesn't get a string, as far as i can tell
dmiller has joined #ruby
<johnhamelink> banister`shop: it raises ""No such file or directory -"", but if I replace it with a string, it manages to read Letmc::Client::id in the get_branches method
gaahrdner has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
druonysuse has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
Al_ has quit [Quit: Al_]
druonysus has quit [Ping timeout: 256 seconds]
emmanuelux has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
noxoc has joined #ruby
kenneth has joined #ruby
Takehiro has quit [Remote host closed the connection]
Eaven has quit [Read error: Connection reset by peer]
<tockitj> is this valid ruby: " test".slice / t/; puts "should pass"
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<tockitj> because it throws exception on 1.9.3p374 MRI
l33_ has joined #ruby
Eaven has joined #ruby
<tockitj> anyone ?
ariedler has quit [Remote host closed the connection]
zeade has joined #ruby
<seejohnrun> tockitj: you need parenthesis
<seejohnrun> around the regex
daniel_- has quit [Quit: WeeChat 0.4.0]
<tockitj> why?
<seejohnrun> tockitj: because if you don't it'll throw an exception on 1.9.3p374 MRI
apeiros has quit [Ping timeout: 252 seconds]
enebo has joined #ruby
jurbat has joined #ruby
<tockitj> is this ruby bug ?
<seejohnrun> also because that's how it goes - otherwise how could it tell which you wanted division or regex
<seejohnrun> no
<tockitj> it is pretty obvious what it is
druonysuse has quit [Read error: Operation timed out]
<tockitj> regex
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
<tockitj> i see no ambiguity
<seejohnrun> ok then leave it off and let it raise an error
skattyadz has joined #ruby
rads has joined #ruby
sayan_ has quit [Quit: Leaving]
<seejohnrun> ;)
<tockitj> thanks seejohnrun
<tockitj> i wonder if any ruby devs are around
sayan has joined #ruby
dallasm has joined #ruby
<tockitj> seems like a bug to me
c0rn has joined #ruby
l33 has quit [Ping timeout: 256 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
dallasm has quit [Remote host closed the connection]
<seejohnrun> also the error only comes up when you have a space in there - that's the only time it's abiguous
<seejohnrun> ambiguous *
<tockitj> it is not ambiguous
Naeblis has joined #ruby
<seejohnrun> okay
<tockitj> it is a bug
<seejohnrun> ok
<tockitj> -.-
druonysus has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
aeontech has quit [Quit: aeontech]
shinobi_one_ has joined #ruby
mikepack has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
mikepack_ has joined #ruby
Al_ has joined #ruby
twoism has joined #ruby
_maes_ has joined #ruby
lmadrigal has joined #ruby
monkegjinni has joined #ruby
monkegji_ has joined #ruby
<tockitj> seejohnrun, ` slice / 2/i `
<tockitj> this is ambiguous
sayan has joined #ruby
<tockitj> is it a method call with regex param - or expresion 0.5 * slice/i
obs has joined #ruby
ramblex has quit [Remote host closed the connection]
poga has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
skattyadz has quit [Quit: skattyadz]
sayan has quit [Max SendQ exceeded]
Al_ has quit [Client Quit]
<tockitj> hah.. try defining both method #slice & fixnum object slice & i
<tockitj> then remove space from expression up there
<tockitj> there will be no exception
<tockitj> but ambiguity will remain (:
monkegjinni has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
dmiller has quit [Remote host closed the connection]
<tockitj> def slice p; puts p.inspect; end; slice=4; i=1; slice /2/i
monkegji_ has quit [Ping timeout: 256 seconds]
jaredrhine has joined #ruby
Naeblis|XChat has joined #ruby
zigomir has quit [Quit: zigomir]
Ontolog has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
jaredrhine_ has quit [Ping timeout: 245 seconds]
gyre007 has quit [Remote host closed the connection]
Al_ has joined #ruby
zeeraw has joined #ruby
kenneth has quit [Quit: kenneth]
icole has joined #ruby
Al_ has quit [Client Quit]
Takehiro has joined #ruby
johnhamelink has quit [Quit: Page closed]
brotatos has joined #ruby
codecop has quit [Remote host closed the connection]
daniel_- has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: chrishough]
RORgasm_ has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
johnrlive has quit [Remote host closed the connection]
MistuhKurtz has joined #ruby
dangerousdave has joined #ruby
Guest47900 has quit [Read error: Connection reset by peer]
codecop has joined #ruby
icole has quit [Remote host closed the connection]
Ontolog has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby
skattyadz has joined #ruby
skattyadz has quit [Client Quit]
linguini has joined #ruby
mad_hatter_ has quit [Read error: Connection reset by peer]
ariedler has joined #ruby
Takehiro has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
interactionjaxsn has joined #ruby
brunoro has joined #ruby
kil0byte has joined #ruby
skattyadz has joined #ruby
bmsatierf has quit [Read error: Connection reset by peer]
LaPetiteFromage has joined #ruby
finges has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
ia___ has joined #ruby
CodeZombie has joined #ruby
chrishough has joined #ruby
bmsatierf has joined #ruby
bmsatierf has joined #ruby
bmsatierf has quit [Changing host]
zeade1 has joined #ruby
zeade has quit [Ping timeout: 240 seconds]
zeade1 has quit [Client Quit]
tommyvyo has joined #ruby
sepp2k has joined #ruby
interactionjaxsn has quit [Ping timeout: 276 seconds]
jgrevich has joined #ruby
mroth has joined #ruby
kirun has joined #ruby
bmsatierf has quit [Read error: Connection reset by peer]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
robert__ has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
bmsatierf has joined #ruby
bmsatierf has quit [Changing host]
bmsatierf has joined #ruby
miskander has joined #ruby
browndawg has quit [Quit: Leaving.]
sayan has joined #ruby
axl_ has quit [Quit: axl_]
statarb3 is now known as Proshot
suporte85 has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
Ontolog has joined #ruby
sayan has quit [Max SendQ exceeded]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
alvaro_o has joined #ruby
bmsatierf has left #ruby [#ruby]
AndChat| has joined #ruby
jeka-91 has quit [Quit: Leaving]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
eldariof has joined #ruby
Takehiro has joined #ruby
<bitcycle> Hey all. Could someone help me with this undefined method error? https://gist.github.com/seanochoa/0535a364bdf1c715307b
jprovazn_afk has quit [Quit: Odcházím]
ngoldman has quit [Read error: Connection reset by peer]
<MrZYX> ugh, ruby that looks like java
ArchBeOS has quit [Ping timeout: 296 seconds]
skattyadz has quit [Quit: skattyadz]
<MrZYX> anyway, make it a module_function
LaPetiteFromage has quit [Quit: LaPetiteFromage]
<otters> don't use ;
berkes has joined #ruby
evenix has quit [Write error: Broken pipe]
ntus1017 has joined #ruby
<apeiros> use ; to indent your code
<banister`shop> bitcycle: man, where did u learn ruby? :)
troessner has quit [Quit: Leaving]
Banistergalaxy has quit [Ping timeout: 256 seconds]
<bitcycle> banister`shop, On my own, here at work. Thanks for the encouragement.
<apeiros> like this: http://pastie.org/7954238
ngoldman has joined #ruby
<banister`shop> bitcycle: it's primarily the ";" ending every line, they told you to do that at work?
<waxjar> oh god, apeiros
Xeago_ is now known as Xeago
<bitcycle> banister`shop, I've been told that that is good form.
mikepack_ has quit [Remote host closed the connection]
<apeiros> waxjar: yes, I god :)
<waxjar> lol
futilegames has quit [Quit: futilegames]
l33_ has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
<seejohnrun> bitcycle: http://hastebin.com/vakiwaxaho.rb
<banister`shop> bitcycle: really not true, in Ruby. Are you sure they weren't talking about javascript?
l33 has joined #ruby
<apeiros> anybody who still uses spaces and/or tabs to indent code is so pre-millenial
haxrbyte has joined #ruby
<crazysim> Is it me or is the first example reading a file named public_key.pem and it's returning true for public? am i reading this right? http://www.ruby-doc.org/stdlib-2.0/libdoc/openssl/rdoc/OpenSSL.html#label-Loading+a+Key
<apeiros> though, I have some respect for people who mix tabs and spaces.
<crazysim> i mean private_key.pem
<apeiros> seejohnrun: you forgot to remove the .rb in the require
<banister`shop> bitcycle: the only time you should ever use ";" is when you want to put multiple expressions on a single line
<crazysim> anyone else find that example weird and odd?
<apeiros> assuming you wanted to show idiomatic ruby code
<seejohnrun> apeiros: thanks
Artheist has joined #ruby
<bitcycle> seejohnrun, ah, that's perfect. Thanks for showing me how to create that. What would you call something like that? A module-level method?
mad_hatter_ has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<bitcycle> apeiros, do requires not need the .rb file extension?
<apeiros> crazysim: hm, no, seems fine
<crazysim> fine?
<apeiros> it creates a OpenSSL::PKey::RSA instance in both cases
<seejohnrun> bitcycle: nope
<crazysim> a file named private_key.pem is pubic?
<seejohnrun> bitcycle: and don't use them
<crazysim> oh!
<apeiros> in the first it assigns it to key2, in the second to key3
<crazysim> ah i see
<bitcycle> seejohnrun, cool, ok, so I can exclude them.
<seejohnrun> bitcycle: but use them on load
<apeiros> so I can stop my explanation? :)
jhn has joined #ruby
futilegames has joined #ruby
<crazysim> erm, hold on a bit
<crazysim> the first one assigns it to key2
<apeiros> I wonder why they didn't add a convenience method `OpenSSL::PKey::RSA.file(path)`, but then again, the whole OpenSSL ruby module has a horrible API.
<bitcycle> seejohnrun, use '.rb' if I use the load() api?
<crazysim> for public? it returns true
<seejohnrun> bitcycle: yes
<crazysim> even though the file it just read in was named private_key.pem
robscomputer_ has quit [Remote host closed the connection]
<seejohnrun> but don't use it :)
<bitcycle> seejohnrun, sweet. I read about load()... but I haven't had the opportunity to use it, yet. In what situations would you use it, normally?
<apeiros> crazysim: oh, yes, what's odd is 'private_key.pem' --> public? --> yes
<crazysim> yeah
<apeiros> indeed
robscomputer has joined #ruby
<bitcycle> seejohnrun, yeah, I hadn't planned on using load()
<apeiros> that's probably a glitch. you can fix the docs and do a pull request.
haxrbyte has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
haxrbyte_ has joined #ruby
undersc0re97 has joined #ruby
mattbl has joined #ruby
akells` has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Zai00 has quit [Quit: Zai00]
akells` has quit [Remote host closed the connection]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
mixel has joined #ruby
akells` has joined #ruby
kpshek has quit []
stkowski has quit [Quit: stkowski]
workmad3 has quit [Ping timeout: 246 seconds]
<crazysim> apeiros: thanks, i make a pull request. https://github.com/ruby/ruby/pull/317
<crazysim> s/make/made/
joast has joined #ruby
vlad_starkov has joined #ruby
kofno has quit [Remote host closed the connection]
rezzack has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<apeiros> awesome
lmadrigal has quit [Quit: Computer has gone to sleep.]
Artheist has quit [Quit: No Ping reply in 180 seconds.]
Artheist has joined #ruby
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
hamakn has joined #ruby
javos has joined #ruby
anonymuse has quit [Ping timeout: 248 seconds]
DonRichie has quit [Ping timeout: 259 seconds]
HAPPYFUNBALL has joined #ruby
zeade has joined #ruby
<HAPPYFUNBALL> ok bros. I need to learn ruby in like 2 days. how do?
shinobi_one_ has quit [Quit: shinobi_one_]
DonRichie has joined #ruby
browndawg has joined #ruby
<spike|spiegel> magic
akells` has quit [Remote host closed the connection]
lmadrigal has joined #ruby
<apeiros> pixy dust
<apeiros> pixie dust?
<HAPPYFUNBALL> ok
<apeiros> damn, english.
<zeade> tryruby.org is a fun place to start
<HAPPYFUNBALL> pxe dust
<apeiros> pixel dust
<HAPPYFUNBALL> any good?
<zeade> do not taunt happyfunball
<Morrolan> Hope that they'll wake you up from the Matrix pretty soon, and tell them to use the disk containing Ruby docs instead of those containing fighting movies? :)
Apane101 has joined #ruby
Apane101 has left #ruby [#ruby]
Artheist has quit [Excess Flood]
<waxjar> oh shit, it's happyfunball
<HAPPYFUNBALL> zeade ha, I like that. never heard it before
gaahrdner has joined #ruby
Artheist has joined #ruby
slash_nick has quit [Ping timeout: 268 seconds]
BizarreCake has quit [Quit: Leaving]
DanKnox_away is now known as DanKnox
kofno has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
esaym153 has quit [Ping timeout: 256 seconds]
Artheist has quit [Excess Flood]
tangledhelix has joined #ruby
reset has joined #ruby
mocfive has quit [Remote host closed the connection]
akells` has joined #ruby
musl has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
colonolGron has joined #ruby
musl has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rippa has joined #ruby
JamesHolmes has joined #ruby
futilegames has joined #ruby
BoomCow has joined #ruby
twoism has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
twoism has joined #ruby
johnrlive has joined #ruby
thomasle_ has joined #ruby
BoomCow has quit [Read error: Connection reset by peer]
brotatos has joined #ruby
BoomCow has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
kenneth has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
k611 has quit [Ping timeout: 240 seconds]
guilleiguaran_ has joined #ruby
kil0byte has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
robert_ has joined #ruby
lebastard has joined #ruby
<HAPPYFUNBALL> oh so ruby is like simplified php
<HAPPYFUNBALL> that's cool
axl_ has joined #ruby
casheew has quit [Quit: leaving]
chandankumar has joined #ruby
l33 has quit [Remote host closed the connection]
<nightfly> that is so wrong...
<HAPPYFUNBALL> tell me why I'm wrong
kofno has quit [Remote host closed the connection]
<lebastard> Hi everybody! I have an issue with form errors. I want to add a class to a div when an error occurs but I'm finding it hard to achieve my goal. Here is the code with what I intend. Thanks in advance (and I apologise for the rookie question).
axl_ has quit [Client Quit]
<ericwood> #rubyonrails
axl_ has joined #ruby
interactionjaxsn has joined #ruby
berkes_ has joined #ruby
berkes has quit [Quit: Ex-Chat]
pitzips has joined #ruby
<nightfly> Ruby has a more unified design philosophy where as PHP doesn't. And your statement implies that PHP is technologically superior when in practice having a long running PHP process is completely unsustainable where it is a regular occurance with Ruby.
casheew has joined #ruby
chandankumar has quit [Max SendQ exceeded]
ia___ has quit [Remote host closed the connection]
shinobi_one_ has joined #ruby
axl_ has quit [Client Quit]
larissa has quit [Quit: Leaving]
<ericwood> uh oh are we going down this path?
chandankumar has joined #ruby
guns has joined #ruby
* nightfly is done
sambao21 has quit [Quit: Computer has gone to sleep.]
Naeblis|XChat has quit [Quit: Leaving]
slash_nick has joined #ruby
Azulinho has quit [Ping timeout: 252 seconds]
akells` has quit [Remote host closed the connection]
apeiros has joined #ruby
esaym153 has joined #ruby
reset has quit [Read error: Operation timed out]
<pskosinski> php -r 'var_dump("" . TRUE)' => string(1) "1", php -r 'var_dump("" . FALSE)' => string(0) "" <= You won't find in Ruby things like this
chandankumar has quit [Max SendQ exceeded]
carloslopes has quit [Remote host closed the connection]
chandankumar has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
chandankumar has quit [Read error: Connection reset by peer]
akells` has joined #ruby
Artheist has joined #ruby
carloslopes has joined #ruby
<wmoxam> HAPPYFUNBALL: why are you learning Ruby?
<pskosinski> FALSE == NULL => bool(true), FALSE === NULL => bool(false) \o/
<crazysim> apeiros. actually i'm wrong. the #public? and #private? methods check if the key has those things. it would return true on private_key.pem . i tried it in irb.
<HAPPYFUNBALL> wmoxam I have to use chef
<apeiros> hm
<HAPPYFUNBALL> so I really just need to learn ruby in the context of shef
<wmoxam> HAPPYFUNBALL: you probably won't have to write much ruby to use Chef
dmiller has joined #ruby
kf8a has joined #ruby
<HAPPYFUNBALL> but then again, it'd be nice to put RUBY and CHEF on my resume
<HAPPYFUNBALL> right?
<r0bgleeson> you wont learn it in two days thats for sure
* wmoxam shrugs
<r0bgleeson> unless you're happy to get by and produce low quality code
<HAPPYFUNBALL> I have more like a week
<r0bgleeson> week doesnt cut it either
<HAPPYFUNBALL> sure sure
<wmoxam> r0bgleeson: it's for Chef configs
brotatos has quit [Read error: Connection reset by peer]
<HAPPYFUNBALL> I'll continue on with it 4evr
<wmoxam> Chef configs are 'rubyish' at best
* ngoldman taunts the HAPPYFUNBALL
<r0bgleeson> wmoxam: yeah, sure, but if he actually wants to learn ruby properly it's a year-long thing (in my experience anyway)
Davey has quit [Quit: Computer has gone to sleep.]
<wmoxam> sure
<HAPPYFUNBALL> I wonder why people taunt me so much
<r0bgleeson> i wouldnt say youd be even that proficient within a week, but you could be
headius has joined #ruby
<wmoxam> r0bgleeson: depends on previous experience
<HAPPYFUNBALL> many many languages
oxdkis has quit [Remote host closed the connection]
<wmoxam> coming from Perl or Python or even Smalltalk and it's not a big leap
<r0bgleeson> you could throw ruby together like its Perl sure
<r0bgleeson> but thats not writing good ruby
brotatos has joined #ruby
csexton has left #ruby ["Textual IRC Client: www.textualapp.com"]
<r0bgleeson> so again.. back to what i said earlier
<wmoxam> r0bgleeson: in the context of Chef it's fine
Davey has joined #ruby
[Neurotic] has joined #ruby
<wmoxam> :p
headius is now known as jruby_headius
<slash_nick> oh you're that headius :p
<r0bgleeson> ive never used chef
<r0bgleeson> but if its like cap scripts, i get it
phasma has joined #ruby
SeanTAllen has joined #ruby
_rgn has joined #ruby
heidar has joined #ruby
strax has joined #ruby
kf8a has quit [Client Quit]
dmiller has quit [Ping timeout: 240 seconds]
ebouchut has joined #ruby
ryannielson has quit [Quit: ryannielson]
<r0bgleeson> yeah looks dead simple
<r0bgleeson> and much better than some cap scripts ive seen >_>
<wmoxam> heh
<HAPPYFUNBALL> wow
yeban_ has joined #ruby
javos has quit [Quit: Colloquy for iPod touch - http://colloquy.mobi]
Spaceghost|cloud has joined #ruby
im0b has joined #ruby
notbrent_ has joined #ruby
<spike|spiegel> someone doesn't know how to write code
bradhe has quit [Remote host closed the connection]
<wmoxam> Oo
momomomomo has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
johnkary has joined #ruby
<rupee>
<HAPPYFUNBALL> Smotchkkiss is wondering what the dots and brackets mean. I’m going to discuss the various parts of speech next.
Guest9031 has quit [Quit: ばいばい]
Cultofmetatron has joined #ruby
browndawg has left #ruby [#ruby]
momomomomo has quit [Client Quit]
mtlatif__ has joined #ruby
huoxito has joined #ruby
jbueza has quit [Quit: Leaving.]
Zai00 has joined #ruby
bradhe has joined #ruby
jurbat has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Remote host closed the connection]
Ontolog_ has joined #ruby
sayan has joined #ruby
keyvan has joined #ruby
persand has quit [Quit: persand]
thone has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
javos_ has joined #ruby
Ontolog has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
reset has joined #ruby
cj3kim has joined #ruby
shorty has joined #ruby
cj3kim has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
carloslopes has joined #ruby
chrishough has quit [Quit: chrishough]
Desdic has joined #ruby
slainer68 has joined #ruby
akells` has quit [Remote host closed the connection]
ngoldman has quit [Read error: Connection reset by peer]
<Desdic> Hi all .. I have (proberly) a trivial question regarding Ruby. I get "passenger ArgumentError (invalid byte sequence in US-ASCII)" and have found that I should add "Encoding.default_external = 'UTF-8'" to string_encodings.rb but Its puppet and that file I cannot find
ngoldman has joined #ruby
<Desdic> can anyone help me in the right direction ?
akells` has joined #ruby
malkomalko has quit [Remote host closed the connection]
sambao21 has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
pinpin404 has joined #ruby
vlad_starkov has joined #ruby
javos_ has quit [Quit: Colloquy for iPod touch - http://colloquy.mobi]
k611 has joined #ruby
akells` has quit [Remote host closed the connection]
gasbakid has joined #ruby
shinobi_one_ has quit [Quit: shinobi_one_]
ramblex has joined #ruby
vlad_sta_ has joined #ruby
brotatos has quit [Ping timeout: 264 seconds]
twoism_ has joined #ruby
twoism has quit [Read error: Connection reset by peer]
JimmyNeutron has joined #ruby
ybart has joined #ruby
LaPetiteFromage has joined #ruby
miskander has quit [Quit: miskander]
elaptics is now known as elaptics`away
vlad_starkov has quit [Ping timeout: 256 seconds]
Takehiro has quit [Remote host closed the connection]
aeontech has joined #ruby
miskander has joined #ruby
akells` has joined #ruby
vlad_starkov has joined #ruby
monkegjinni has joined #ruby
saarinen has quit [Quit: saarinen]
monkegji_ has joined #ruby
thone has joined #ruby
vlad_sta_ has quit [Ping timeout: 246 seconds]
ner0x has joined #ruby
monkegjinni has quit [Remote host closed the connection]
dmiller has joined #ruby
monkegjinni has joined #ruby
tangledhelix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kobain has quit [Remote host closed the connection]
kobain has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Desdic has quit [Quit: Oh no ...]
jruby_headius is now known as headius
andikr has quit [Remote host closed the connection]
mocfive has joined #ruby
Nuck has quit [Ping timeout: 256 seconds]
zommi has quit [Remote host closed the connection]
Nuck has joined #ruby
monkegji_ has quit [Ping timeout: 256 seconds]
pinpin404 has quit [Read error: Connection reset by peer]
ner0x has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
k610 has joined #ruby
JamesHolmes has quit [Quit: JamesHolmes]
frem has joined #ruby
ZadYree has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
vlad_starkov has quit [Read error: Connection reset by peer]
altamic has quit [Quit: altamic]
<ZadYree> Hello; I started learning ruby few hours ago and would like to know what is the simplest way to check whether a TCP port is open or not. Any nice link?
Dummies_freelanc has quit [Remote host closed the connection]
k611 has quit [Quit: Leaving]
thebastl has joined #ruby
retnuh has joined #ruby
prk has joined #ruby
vlad_starkov has joined #ruby
pinpin404 has joined #ruby
dmiller_ has joined #ruby
mocfive has quit [Remote host closed the connection]
ner0x has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
devoldmx3 has joined #ruby
LaPetiteFromage has joined #ruby
kil0byte has joined #ruby
Criztian has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
Weazy_ has quit [Ping timeout: 245 seconds]
jbueza has joined #ruby
error404 has quit [Ping timeout: 245 seconds]
chiel has quit [Ping timeout: 254 seconds]
altamic has joined #ruby
ramblex has quit [Ping timeout: 252 seconds]
generalissimo has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 276 seconds]
altamic has left #ruby [#ruby]
thebastl has quit [Remote host closed the connection]
seanmccann has joined #ruby
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
breadthfirst has joined #ruby
lebastard has quit [Quit: lebastard]
chrishough has joined #ruby
brotatos has joined #ruby
xardas has quit [Read error: Connection reset by peer]
pitzips has quit [Ping timeout: 264 seconds]
jtharris has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Weazy has joined #ruby
error404 has joined #ruby
c0rn has joined #ruby
vlad_starkov has joined #ruby
chiel has joined #ruby
djwonk has joined #ruby
carloslopes has quit [Remote host closed the connection]
generalissimo has joined #ruby
Takehiro has joined #ruby
atmosx has quit [Quit: leaving]
atmosx has joined #ruby
aeontech has quit [Ping timeout: 256 seconds]
lebastard has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
blamonty has joined #ruby
blamonty is now known as tymat
Xeago has quit [Remote host closed the connection]
mocfive has joined #ruby
wookiehangover is now known as w12r
bluOxigen has quit [Ping timeout: 256 seconds]
<ericwood> depends on the operating system
greenarrow has quit [Read error: Connection reset by peer]
<ericwood> that's not really a ruby thing as much as a calling out to the host operating system thing
<r0bgleeson> it doesn't
<ericwood> you doesn't!
<r0bgleeson> you can use TCPSocket.
<ericwood> oh
<ericwood> >.<
akells` has quit [Remote host closed the connection]
retnuh has quit [Quit: Computer has gone to sleep.]
ntus1017 has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
AgentWillyWonka has joined #ruby
LaPetiteFromage has joined #ruby
jtharris_ has joined #ruby
BoomCow has quit [Read error: Connection reset by peer]
<r0bgleeson> yeah but you're right, it is built on low-level C APIs.
ramblex has joined #ruby
jtharris has quit [Ping timeout: 252 seconds]
BoomCow has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
HAPPYFUNBALL has left #ruby [#ruby]
viszu has joined #ruby
phipes has joined #ruby
bigkevmcd has joined #ruby
kevinykchan has joined #ruby
jtharris_ has quit [Client Quit]
Takehiro has quit [Ping timeout: 252 seconds]
chiel has quit [Ping timeout: 264 seconds]
huoxito has quit [Quit: Leaving]
blandflakes has quit [Quit: Leaving]
Weazy has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
chiel has joined #ruby
Weazy has joined #ruby
_nitti has joined #ruby
stkowski has joined #ruby
miskander has quit [Quit: miskander]
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
shadoi has quit [Quit: Leaving.]
slainer68 has quit [Remote host closed the connection]
bionhart has joined #ruby
prk has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
bluOxigen has joined #ruby
<tvw> Ruby 2.0.0-p195 is out. Does this mean, that the issues with passenger 4.0 are solved, which I read about on http://blog.phusion.nl/2013/02/27/phusion-passenger-4-0-release-candidate-2 ?
<atmosx> for druby simple file transfer of a small list of hashes (100-150 items), should I use YAML or just marshall?
devoldmx has quit [Read error: Connection reset by peer]
<atmosx> tvw: won't be better to ask a passenger #?
<atmosx> or at least rails
akells` has joined #ruby
devoldmx has joined #ruby
Davey has joined #ruby
mikepack has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
predator217 has quit [Ping timeout: 260 seconds]
<tvw> atmosx: no, as far as I understood, they were issues in ruby-2.0.0-p0, which caused the problems.
cj3kim has joined #ruby
<atmosx> tvw: I see
predator117 has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
jerius has quit [Read error: Operation timed out]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
alexmreis has joined #ruby
LaPetiteFromage has joined #ruby
yalue has quit [Quit: Leaving]
johnkary has quit [Quit: @johnkary]
machuga|away is now known as machuga
retnuh has joined #ruby
_nitti has quit [Remote host closed the connection]
graft has quit [Ping timeout: 276 seconds]
vered has joined #ruby
_nitti has joined #ruby
Astralum has joined #ruby
akells` has quit [Remote host closed the connection]
tomsthumb has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
kofno has quit [Remote host closed the connection]
jerius has joined #ruby
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pitzips has joined #ruby
DonRichie has quit [Quit: Verlassend]
akells` has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
lebastard has left #ruby [#ruby]
dmiller_ has quit [Remote host closed the connection]
wolcanus has quit [Remote host closed the connection]
Takehiro has joined #ruby
dmiller has joined #ruby
Shirakawasuna has joined #ruby
akells` has quit [Remote host closed the connection]
snearch has joined #ruby
DonRichie has joined #ruby
browndawg has quit [Quit: Leaving.]
BonSequitur has joined #ruby
alexmreis has quit [Quit: Leaving.]
thone has quit [Ping timeout: 276 seconds]
evenix_ has quit [Remote host closed the connection]
jerius has quit []
evenix has joined #ruby
kofno has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
zodiak has quit [Remote host closed the connection]
miskander has joined #ruby
renanoronfle has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
mattbl has quit [Ping timeout: 240 seconds]
jtharris has joined #ruby
<mroth> How would one programmatically insert unicode characters by ID into a string? E.g., if I have an array of IDs such as "26F3", I want to make strings such as "\u26FE" would produce with normal string interpolation. However I can't seem to insert them via a variable, e.g. e="26F3"; puts "\u#{e}" produces an "invalid Unicode escape"
fschuindt has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
slainer68 has joined #ruby
Azulinho has joined #ruby
wmoxam has joined #ruby
ewag has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<LennyLinux> off the top of my head '\u' + e
evenix has quit [Ping timeout: 252 seconds]
<Morrolan> >> "\u{1234}"
<eval-in> Morrolan => "ሴ" (http://eval.in/31442)
<mroth> .
Cultofmetatron has quit [Ping timeout: 264 seconds]
<mroth> How would one programmatically insert unicode characters by ID into a string? E.g., if I have an array of IDs such as "26F3", I want to make strings such as "\u26FE" would produce with normal string interpolation. However I can't seem to insert them via a variable, e.g. e="26F3"; puts "\u#{e}" produces an "invalid Unicode escape"
<LennyLinux> lol
arubin has joined #ruby
<ngoldman> i think you broke it
ebouchut has left #ruby ["Quitte"]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
brotatos has left #ruby ["WeeChat 0.4.1-dev"]
<apeiros> >> 0x1f4a9.chr('utf-8')
<eval-in> apeiros => " (http://eval.in/31443)
Cultofmetatron has joined #ruby
<apeiros> grmpf, forgot that for some reason I can't see utf-8 output by the bot.
shinobi_one_ has joined #ruby
devoldmx3 has joined #ruby
nik_-_ has joined #ruby
<slash_nick> apeiros: I've noticed... you complained it stripped your ellipsis once, but I saw it plainly
<apeiros> and, did you see the nice turd?
ramblex has quit [Read error: Connection reset by peer]
jerius has joined #ruby
<slash_nick> lol... no, that produced a "
<apeiros> d'oh :)
<apeiros> on osx, that one has a nice smiling face
zodiak has joined #ruby
<slash_nick> that's my new gravitar
bluOxigen has quit [Ping timeout: 240 seconds]
<MrZYX> hm
<LennyLinux> >> 0x1f4a9.chr('utf-8')
<eval-in> LennyLinux => " (http://eval.in/31444)
<MrZYX> I wonder what font I'd need to install...
machuga is now known as machuga|away
druonysuse has quit [Ping timeout: 246 seconds]
jdunck has quit [Ping timeout: 260 seconds]
wolcanus has joined #ruby
jerius_ has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
<apeiros> the osx' font is named 'apple color-emoji'
<slash_nick> would love to see that in full color
icole has joined #ruby
<apeiros> contains the turd in color :D
devoldmx has quit [Ping timeout: 256 seconds]
<MrZYX> symbola has it
<slash_nick> oh that's cute... sure it's not icecream?
<apeiros> sure, "pile of poo" flavored ice cream
monkegjinni has quit [Remote host closed the connection]
<slash_nick> it's so cheery
jerius has quit [Ping timeout: 252 seconds]
jerius_ is now known as jerius
sambao21 has quit [Quit: Computer has gone to sleep.]
pinpin404 has quit [Read error: Connection reset by peer]
jdunck has joined #ruby
akells` has joined #ruby
berkes_ has quit [Ping timeout: 256 seconds]
prk has joined #ruby
guns has quit [Quit: guns]
BoomCow has quit [Quit: This computer has gone to sleep]
wmoxam_ has joined #ruby
w12r is now known as wookiehangover
ner0x has quit [Quit: Leaving]
LaPetiteFromage has left #ruby [#ruby]
visof has quit [Quit: Leaving]
zastaph has joined #ruby
alx- has quit [Quit: alx-]
DanKnox is now known as DanKnox_away
pcarrier_ has joined #ruby
akells` has quit [Read error: Connection reset by peer]
Ontolog_ has quit [Remote host closed the connection]
vered is now known as PolyNOT
sambao21 has joined #ruby
kf8a has joined #ruby
johnrlive has quit [Remote host closed the connection]
rhys has quit [Quit: Leaving]
sailias has quit [Read error: Operation timed out]
sambao21 has quit [Client Quit]
Eaven has quit [Read error: Connection reset by peer]
kf8a has quit [Client Quit]
k610 has quit [Ping timeout: 256 seconds]
Eaven has joined #ruby
dmiller has joined #ruby
chrishough has quit [Quit: chrishough]
prk has quit [Ping timeout: 245 seconds]
rouss has joined #ruby
chile_andes has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
ngoldman has quit [Remote host closed the connection]
Shirakawasuna has quit [Quit: Leaving]
renanoronfle has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
blandflakes has joined #ruby
joast has quit [Quit: Leaving.]
Astral_ has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
huoxito has joined #ruby
codelurker has joined #ruby
DanKnox_away is now known as DanKnox
<zphobic> Any idea what's going on here?
DanKnox is now known as DanKnox_away
Astralum has quit [Ping timeout: 256 seconds]
<terrellt> zphobic: Rbenv rehash maybe?
pitzips has quit [Ping timeout: 256 seconds]
thelames1 has quit [Quit: leaving]
Xeago has joined #ruby
<zphobic> Yeah, opening it in a new tab worked, cheers.
DanKnox_away is now known as DanKnox
alx- has joined #ruby
codecop has quit [Remote host closed the connection]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Proshot has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 248 seconds]
huoxito has quit [Ping timeout: 256 seconds]
tootubular has left #ruby [#ruby]
graydot has joined #ruby
miskander has quit [Quit: miskander]
Mon_Ouie has joined #ruby
saarinen has quit [Quit: saarinen]
futilegames has quit [Quit: futilegames]
Xeago has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
aeontech has joined #ruby
rouss has quit [Quit: Computer has gone to sleep.]
[[thufir]] has joined #ruby
ldnunes has quit [Quit: Saindo]
retnuh has quit [Ping timeout: 252 seconds]
DonRichie has quit [Quit: Verlassend]
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
Xeago has joined #ruby
rangle has quit [Quit: Textual IRC Client: www.textualapp.com]
saarinen has joined #ruby
visof has joined #ruby
brianpWins has joined #ruby
rangle has joined #ruby
saarinen has quit [Client Quit]
finges has joined #ruby
rangle has quit [Client Quit]
thelamest has joined #ruby
tommyvyo has quit [Quit:]
<mroth> How would one programmatically insert unicode characters by ID into a string? E.g., if I have an array of IDs such as "26F3", I want to make strings such as "\u26FE" would produce with normal string interpolation. However I can't seem to insert them via a variable, e.g. e="26F3"; puts "\u#{e}" produces an "invalid Unicode escape"
eldariof has quit [Ping timeout: 264 seconds]
BoomCow has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
jonathanwallace has joined #ruby
<Xeago> mroth: my approach would be to make a mapping: 26F3 => \u26F3
<Xeago> that way you don't have to do fiddling with string internals
<dankest> +1
c0rn has quit [Quit: Computer has gone to sleep.]
<Xeago> puts "key unicode is #{u[key]}"
<Xeago> puts "#{key} unicode is #{u[key]}" is what I meant
visof has quit [Ping timeout: 240 seconds]
<apeiros> mroth: as I said earlier: 0x26f3.to_chr('utf-8')
Eaven has quit [Remote host closed the connection]
gaahrdner has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 246 seconds]
JimmyNeutron has quit [Ping timeout: 252 seconds]
tomsthumb has quit [Quit: Leaving.]
<apeiros> mroth: do you plan on actually interacting or will you just ask again in like 1h?
saarinen has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
mocfive has quit [Remote host closed the connection]
ngoldman has joined #ruby
Markvilla has joined #ruby
rakl has joined #ruby
shorty has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Now with extra fish!]
saarinen has quit [Client Quit]
tommyvyo has joined #ruby
codelurker has quit [Quit: Leaving]
pitzips has joined #ruby
renanoronfle has quit [Quit: Saindo]
alem0lars has quit [Quit: Leaving]
<atmosx> Hello
<apeiros> hi atmosx
<atmosx> I have an 'each' loop, is there any smart/easy way to make it execute it's 'next' iteration in a predetermined numbers of seconds? san sleep(x) where x = rand(11) ?
<atmosx> s/san/say
jacktrick has joined #ruby
<apeiros> why that limitation?
<apeiros> i.e., why no sleep?
<slash_nick> ... poll Time.now?
mstksg has quit [Quit: leaving]
c0rn has joined #ruby
cheese1756 has quit [Ping timeout: 248 seconds]
ToApolytoXaos has quit [Quit: Leaving]
<atmosx> apeiros: there's no limitation
<enebo> each { sleep(rand(11)*1000); # moar }
<atmosx> apeiros: can I use sleep without Threads?
<apeiros> atmosx: "without x" is a limitation
<apeiros> atmosx: of course
huoxito has joined #ruby
<atmosx> aaah
k610 has joined #ruby
huoxito has quit [K-Lined]
* atmosx amazed
<atmosx> thanks! :D
<enebo> Happy that question was easier than we thought it would be :)
k610 has quit [Client Quit]
<apeiros> mroth: you're quite a douchebag. you ask a question, people try to help you and you're off and don't reply for over a quarter of an hour. and you do that even twice.
Vert has quit [Ping timeout: 252 seconds]
jhn has quit [Ping timeout: 240 seconds]
<apeiros> (with the same question even)
<atmosx> rand(11) goes 0-10 iirc?
<apeiros> atmosx: correct
<MrZYX> apeiros: maybe he accidentally /ignore'd the whole chan? :P
<apeiros> MrZYX: that'd make him a douchebag idiot? :)
<atmosx> enebo: I've been a long time in the channel but I'm not proficient with ruby :-P I write mostly scripts for personal use :-)
<enebo> apeiros: I have had people who behave like that because they use irc from a browser and forget about the tab
cheese1756 has joined #ruby
<apeiros> I'm inclined to help the channel ignore him… +q comes to mind.
<apeiros> enebo: that'd be an explanation. still douchebag behavior.
<enebo> atmosx: Sure. I think san sleep confused people even though you corrected it on the next line
<apeiros> -- gateway/web/irccloud.com, that'd actually fit your idea, enebo
<enebo> apeiros: yeah just saying I have noticed that pattern
<enebo> apeiros: I will stay out of the douchey part of it :)
<apeiros> :)
devoldmx3 has quit [Ping timeout: 256 seconds]
JimmyNeutron has joined #ruby
mroth was kicked from #ruby by apeiros [inacceptable behavior. this is not email.]
<atmosx> you put inside-function comments above the line (to explain to urself what you're doing) or on the right?
mocfive has joined #ruby
<apeiros> lets see whether that helps.
d2dchat has quit [Remote host closed the connection]
<atmosx> or maybe if you're from middle east, you put it on the left...
kil0byte has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
fuzzyhorns has quit [Remote host closed the connection]
devoldmx has joined #ruby
wolcanus_ has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
decentrality has quit [Quit: decentrality]
headius has quit [Quit: headius]
f0ster has joined #ruby
wsterling has quit [Read error: Connection reset by peer]
wsterling has joined #ruby
wolcanus has quit [Ping timeout: 248 seconds]
jbueza has quit [Quit: Leaving.]
endguy has quit [Ping timeout: 240 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
cofin has quit [Quit: cofin]
zigomir has joined #ruby
saarinen has joined #ruby
spider-mario has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 276 seconds]
interactionjaxsn has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
MrZYX is now known as MrZYX|off
tylersmi_ has quit [Read error: Connection reset by peer]
_97 has joined #ruby
tylersmith has joined #ruby
Davey has joined #ruby
kofno has quit [Remote host closed the connection]
endguy has joined #ruby
Ortuna has joined #ruby
breakingthings has quit [Quit: breakingthings]
djbkd has quit [Remote host closed the connection]
gasbakid has quit [Read error: Connection reset by peer]
bamdad has joined #ruby
undersc0re97 has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 245 seconds]
interactionjaxsn has quit [Ping timeout: 256 seconds]
Voodoofish430 has quit [Quit: Leaving.]
falood has joined #ruby
davidboy has joined #ruby
freerobby has quit [Quit: Leaving.]
ner0x has joined #ruby
mikepack has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
dmiller has joined #ruby
freerobby has joined #ruby
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
devoldmx3 has joined #ruby
havenwood has quit [Remote host closed the connection]
johnnyfuchs has quit [Read error: Operation timed out]
freerobby has quit [Client Quit]
havenwood has joined #ruby
rcsheets has joined #ruby
freerobby has joined #ruby
ploosh has joined #ruby
visof has joined #ruby
gyre007 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
ngoldman_ has joined #ruby
ploosh has left #ruby [#ruby]
faldridge has joined #ruby
yashshah- has quit [Read error: Connection reset by peer]
<faldridge> Hi. I'm a complete ruby newb using Chef. Does anybody know how I can assign a bash array from an environment variable to a variable in my knife.rb as a Ruby array?
<faldridge> this would be used to pick up my array of cookbook and role repos
saarinen has quit [Quit: saarinen]
havenwood has quit [Ping timeout: 252 seconds]
ngoldman has quit [Ping timeout: 264 seconds]
marcdel_ has joined #ruby
ngoldman_ is now known as ngoldman
ploosh has joined #ruby
rcsheets has quit [Disconnected by services]
michaelboutros has joined #ruby
<michaelboutros> My Google-fu has failed me. What does the ">>" do in Ruby? The usage I'm seeing is "integer >> integer"
mroth_ has joined #ruby
<mroth_> apeiros: apologies.. the client i was using appears to be having problems, it wasnt echoing anything back to me from channel so it looked like it was failing to post
ravster has joined #ruby
<mroth_> think its time to switch back to irssi
radic_ has quit [Quit: Verlassend]
cmarques has quit [Ping timeout: 264 seconds]
<Morrolan> michaelboutros: Bit shifting.
<michaelboutros> Can you elaborate?
radic has joined #ruby
<Morrolan> Are you familiar with the binary system? :)
ariedler has quit [Remote host closed the connection]
enriclluelles has joined #ruby
pcarrier_ has quit [Ping timeout: 252 seconds]
swex has quit [Ping timeout: 248 seconds]
splittingred has quit [Quit: splittingred]
fschuindt has quit [Quit: Computer has gone to sleep.]
JZTech101 has quit [Quit: Hmm... What to do now?]
<michaelboutros> Morrolan: A little bit! I'll read up on it - thanks for pointing me in the right direction. :)
JZTech101 has joined #ruby
<Morrolan> michaelboutros: It's relatively simple. Imagine a number as a series of 1s and 0s. Now a bit shift simply means "shift the numbers to the left / right".
<Morrolan> But to really understand it some understanding of the binary system probably helps. :)
pcarrier_ has joined #ruby
saarinen has joined #ruby
<apeiros> mroth_: apologies accepted. and indeed. the other makes you look like a horrible person :)
arya has quit [Ping timeout: 248 seconds]
kirun has quit [Quit: Client exiting]
<michaelboutros> Morrolan: Okay, thanks :) I'm just surprised because it looks like the previous developer was doing a relatively simple task in a very complex way. Thanks again!
chiel has quit [Quit: leaving]
<Morrolan> michaelboutros: Sure thing. :)
<michaelboutros> Cheers, have a good weekend!
michaelboutros has left #ruby [#ruby]
rdg has joined #ruby
<mroth_> apeiros: yeah, sadly, it used to be a great service, but seems to be horribly broken now. it was quite handy for being on a laptop and staying connected for logs, because screen+irssi doesnt work well when you are on a plane or somewhere else annoying where they block SSH and only allow HTTP/S
slash_nick has quit [Ping timeout: 256 seconds]
jtharris has quit [Quit: WeeChat 0.4.0]
Zai00 has quit [Quit: Zai00]
jkline__ has joined #ruby
<Morrolan> Sounds like the developer in question enjoyed using 'integer << 1' as a replacement for 'integer * 2'. :)
sayan has joined #ruby
faldridge has quit [Quit: faldridge]
tomsthumb has joined #ruby
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
postmodern has joined #ruby
saarinen has quit [Quit: saarinen]
tommyvyo has quit [Quit:]
Qwak has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Silent__ has quit [Ping timeout: 240 seconds]
rads has quit [Ping timeout: 260 seconds]
mad_hatter_ has quit [Ping timeout: 252 seconds]
<jkline__> I am new to Ruby. I want a name space for all the code I write for my company, jklineco. Should I use module JklineCo or class JklineCo ?
mrsolo has quit [Quit: Leaving]
jbueza has joined #ruby
Qwak has quit [Client Quit]
<Morrolan> A module.
solidoodlesuppor has quit [Remote host closed the connection]
<ploosh> jkline__: from my understanding you want a module
<ploosh> but i'm new too
<mroth_> Say for the sake of argument I have a string which I want to search for ~800 different chars (the emoji subset) and get a list of all matches.. whats the most *efficient* way to do that? (since its going to be for processing a realtime stream) It seems like mapping each would result in too many operations
havenwood has joined #ruby
becom33 has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: Leaving...]
faldridge has joined #ruby
cj3kim has joined #ruby
ner0x has quit [Remote host closed the connection]
faldridge has quit [Client Quit]
tylersmith has quit [Remote host closed the connection]
rdg has quit [Quit: ttfn]
krombr has joined #ruby
sekyms has joined #ruby
<sekyms> Is there a way to do this in Ruby?
LucidDreamZzZz has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
F1skr has joined #ruby
tomzx_mac has joined #ruby
<chee> sekyms: i am confused by the question
<sekyms> there are four slots
<sekyms> they can be 1 or 0
<sekyms> i need to print off all possible permutations
bashdy has joined #ruby
Sm3lly has quit [Read error: Connection reset by peer]
<atmosx> sekyms: it can be done in any programming language there is.
<sekyms> is it by using permutation.to_a ?
milestone has joined #ruby
<atmosx> sekyms: you could use arrays yes
<sekyms> is there a method to do it?
<sekyms> I know there is a method to get all permutations of an array
becom33 has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
<milestone> hi i have a class and within it i do an exec call .. but the ruby interpreter exits after i call exec … can i not call exec from a within a class instance?
arya has joined #ruby
Maoz has joined #ruby
devoldmx has joined #ruby
frem has quit [Ping timeout: 264 seconds]
<havenwood> sekyms: [0,0,0,0,1,1,1,1].permutation(4).to_a
lmadrigal has joined #ruby
<Maoz> if I got an array: ary = [['a', 'b', 'c'], ['d', 'e'], ['f']] what would be the best way to add nils like: [['a','b','c'], ['d','e', nil], ['f', nil, nil]]
devoldmx has quit [Read error: Connection reset by peer]
sailias has joined #ruby
ehaliewicz has joined #ruby
johnkary has joined #ruby
bashdy has quit [Quit: bashdy]
milestone has quit [Quit: milestone]
<seejohnrun> arr.each.with_index { |sa, idx| sa.concat! Array.new(idx) }
<seejohnrun> concat! -> concat
decentrality has joined #ruby
<havenwood> Or something like: ary.each_with_index { |e, i| while e.size < 3; ary[i] << nil; end }
bashdy has joined #ruby
<sekyms> havenwood: that doesn't seem to output what i want
<havenwood> sekyms: [["a", "b", "c"], ["d", "e", nil], ["f", nil, nil]]
mocfive has quit [Remote host closed the connection]
<sekyms> I think my gist explained it poorly
<seejohnrun> if you want to do it that way would be: ar.each.with_index { |sa, i| i.times { sa << nil } }
<apeiros> Maoz: ary.each { |a| a.fill(nil, a.size..-3) }
Guedes0 has joined #ruby
<seejohnrun> i like that more
<seejohnrun> less array creation
<apeiros> beware, mutates the arrays
<Maoz> thanks
jacobbednarz has joined #ruby
<sekyms> Four slots, two positions: 0 and 1 all permutations
<sekyms> havenwood ^^^
cj3kim has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
<havenwood> sekyms: Ahhh
finges has quit [Ping timeout: 256 seconds]
<sekyms> sorry if it wasn't clear
cj3kim has joined #ruby
icole has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
viszu has quit [Quit: Leaving.]
<terrellt> sekyms: Could always do .uniq at the end. Pretty inefficient, but meh.
Proshot has joined #ruby
cofin has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
RiftyMcF3arless has quit [Remote host closed the connection]
<terrellt> sekyms: Or [0,1].repeated_permutation(4).to_a
banister`shop has quit [Read error: Connection reset by peer]
<sekyms> is repeated 2.0?
mixel has quit [Quit: mixel]
<havenwood> terrellt: nice
<sekyms> I'm getting undefined method
<terrellt> I just did it in 1.9.3.
theRoUS has quit [Ping timeout: 256 seconds]
ShapeShifter499 has quit [Excess Flood]
talntid has joined #ruby
ShapeShifter499 has joined #ruby
<terrellt> Looks like it's been in since 1.9.2-180?
<sekyms> wonder what version I'm using then
<talntid> rescuing the exception doesn't work - Can someone give me some advice? Very new to ruby
zeade has quit [Quit: Leaving.]
<sekyms> awe shoot
<sekyms> 1.8.7 on my home machine
<talntid> lines 9-12
Artheist has quit [Read error: Connection reset by peer]
<havenwood> sekyms: Definitely update to a modern Ruby! :)
<sekyms> yeah working on it
fschuindt has joined #ruby
<havenwood> sekyms: Using RVM, chruby or rbenv? (Just curious.)
<sekyms> rvm updating now
<sekyms> rvm install 1.9.3 --with-gcc=clang
xcv_ has joined #ruby
m8 has quit [Quit: Sto andando via]
blandflakes has quit [Quit: Leaving]
<havenwood> sekyms: Might as well go to the latest stable release (2.0.0-p195): rvm get latest; rvm install ruby
<bitcycle> Hey all. Is it possible to catch when any attribute is set on a class and log it?
seanmccann has quit [Ping timeout: 260 seconds]
nof13 has quit [Ping timeout: 252 seconds]
<sekyms> haven wood after this finishes ill look into it
ybart has quit [Quit: ybart]
xcv has quit [Read error: Connection reset by peer]
Dummies_freelanc has quit [Read error: Connection reset by peer]
<havenwood> bitcycle: By attribute do you mean instance methods or something else?
seejohnrun has quit [Ping timeout: 256 seconds]
<bitcycle> havenwood, I mean something like this: "attr_accessor :foo"
<havenwood> bitcycle: ah, right
xcvd`` has quit [Read error: Connection reset by peer]
Dummies_freelanc has joined #ruby
Dummies_freelanc has quit [Client Quit]
arya has quit [Ping timeout: 245 seconds]
bashdy has quit [Quit: bashdy]
berkes_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
LennyLinux has quit [Remote host closed the connection]
xcv_ has quit [Remote host closed the connection]
xcv has joined #ruby
wsterling has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
ariedler has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
guiocavalcanti has quit [Remote host closed the connection]
<sekyms> havenwood: shit
<sekyms> havenwood: failed on make
guiocavalcanti has joined #ruby
<havenwood> sekyms: check: rvm requirements
<havenwood> sekyms: make sure you've updated rvm first too: rvm get latest #or rvm get stable
arya has joined #ruby
bionhart has quit [Remote host closed the connection]
locriani has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
bionhart has joined #ruby
Guest85918 has joined #ruby
<Guest85918> Hi
<Guest85918> I am currently trying to get Ruby on my path variable but nothing is working
phipes has quit [Quit: phipes]
<sekyms> havenwood: it never ends
<Guest85918> I have tried editing the bash profile but no luck
<sekyms> now my Xcode version is too old
<Guest85918> I am using the latest Linux Mint 64bit
<Guest85918> So can someone help me
Ontolog has joined #ruby
<havenwood> sekyms: Yeah, that is a pain. Yak shave. Tokaido will make things better for OS X, but till then...
<sekyms> haven wood there are no 2 binaries for 10.7
Guest85918 is now known as lnjdslfjdslg
<lnjdslfjdslg> What I have already used
emmanuelux has quit [Quit: emmanuelux]
<lnjdslfjdslg> Any thoughts?
lnjdslfjdslg has quit [Client Quit]
guiocavalcanti has quit [Ping timeout: 245 seconds]
choobie has joined #ruby
berkes_ has quit [Quit: Ex-Chat]
<sekyms> guess Im spending tonight downloading and installing newer xcode
chipotle_ has quit [Quit: cya]
MeepDude has joined #ruby
<MeepDude> Hi
<ploosh> sekyms: what do you need xcode for?
zastaph has quit []
<MeepDude> I need help getting RVM in my system path and even editing the bash profile won't work
<sekyms> to make ruby
<MeepDude> So I have no clue what to do
<MeepDude> any ideas
seanmccann has joined #ruby
<MeepDude> I have ruby running I just don't want to have to source it every time I load the terminal
MeepDude is now known as Dude1234
Dude1234 has quit [Client Quit]
Eaven has joined #ruby
<ploosh> sekyms: actually.. i think apple distributes a c-compiler that doesn't have all the xcode fluff.
<sekyms> plush that is helpful
<sekyms> oh it says not to install if you already have Xcode installed
ephemerian has quit [Ping timeout: 248 seconds]
Dude1234 has joined #ruby
<Dude1234> Hi
<Dude1234> Can I get some help with ruby on Mint
<ploosh> sekyms: ah, gotcha. didn't realize you already had it.
<sekyms> yeah just haven't updated in a while, haven't done any iOS dev in some time
Dude1234 has quit [Client Quit]
Davey has quit [Quit: Computer has gone to sleep.]
niklasb has joined #ruby
<havenwood> Hoping OS X updates default bash version in 10.9. Guess we'll see soon enough, June 10.
<ploosh> sekyms: makes sense. disregard what i said then :P
<sekyms> I'm hoping for updated MacBook Pros
bobbyz has joined #ruby
<sekyms> and lower solid state prices
<sekyms> ffs
visof has quit [Quit: Leaving]
predator217 has joined #ruby
slainer68 has joined #ruby
freerobby has quit [Quit: Leaving.]
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
brotatos has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
Davey has joined #ruby
Davey has quit [Client Quit]
zigomir has quit [Ping timeout: 246 seconds]
palantir has joined #ruby
<sekyms> thanks for help guys
sekyms has quit [Quit: sekyms]
rburton- has joined #ruby
<r0bgleeson> I'm hoping 1.8.7 gets an upgrade :P
aeontech has quit [Quit: aeontech]
<havenwood> r0bgleeson: +1!
dayepa1 has quit [Quit: dayepa1]
Maoz has quit []
BoomCow has quit [Quit: This computer has gone to sleep]
dayepa1 has joined #ruby
<havenwood> apple: please update system installs of openssl, bash, and ruby
ffranz has quit [Quit: Leaving]
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kevinykchan has joined #ruby
nof13 has joined #ruby
arya has quit [Ping timeout: 252 seconds]
BoomCow has joined #ruby
BoomCow has quit [Remote host closed the connection]
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
guiocavalcanti has joined #ruby
rton has joined #ruby
_bart has joined #ruby
falood has quit [Remote host closed the connection]
nof13 has quit [Quit: Lost terminal]
phipes has joined #ruby
<Xeago> havenwood: not just bash, all shells please
<Xeago> tcsh, zsh, ksh
<Xeago> and please include fish :3
GeissT has joined #ruby