<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]]
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.]
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]
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.
<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]
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]
<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]
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>
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]
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....
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]
<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?
<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
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).
<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]
<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
<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]
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]
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"
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"
<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]
<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]
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]
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?
<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]