<platzhirsch>
that's another nightmare with Python
<benzrf>
that one i agree on
<benzrf>
-.-
<benlieb>
is it the same as using 'lambda' ?
<benzrf>
benlieb: p much
<benlieb>
or is it different subtly?
<platzhirsch>
unfortunately
mary5030 has joined #ruby
<MrZYX>
benlieb: yes, the same
Megtastique has quit []
cflat has quit [Ping timeout: 245 seconds]
<platzhirsch>
benzrf: I just miss some very nice subtleties, it's very easy to apply some transformations to your code in Ruby, in Python it's a lot more verbose. What I like about Python, the code is more homogeneous. Ruby is so heterogeneous you can write fucked up code in so many ways
phipes has quit [Remote host closed the connection]
djdarkbeat has joined #ruby
RoryHughes has quit []
ffranz has quit [Quit: Leaving]
<benzrf>
yeah
RoryHughes has joined #ruby
<benzrf>
the thing about python for me is that it just doesn't support FP
<benzrf>
and it's missing some nice core stuff
<platzhirsch>
I just have decided, it's either Python or Ruby and since I am in love with Ruby, I think I can spent some hate on Python :P
endash has quit [Quit: endash]
<benzrf>
i like maybe 70% of things about python more than ruby
<benzrf>
but ruby's functionalness is so nice that i just can't not have it
<havenwood>
benzrf: pip... harumph! gem is much nicer :)
<platzhirsch>
havenwood: Why?
<bnagy>
o_0
<benzrf>
although lately ive been getting really freaking pissed off at how namespaces and imports work
<platzhirsch>
How are they different ^^
<benzrf>
like
<benzrf>
wow
<bnagy>
havenwood: also, ruby's other main strength - speed!
<benzrf>
it's quite possibly the worst system i've ever heard of
<benzrf>
damn
stkowski has joined #ruby
tylersmith has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<benzrf>
I mean
<havenwood>
platzhirsch: gem has `gem update` etc to update all gems, pip has a several year old ticket requesting the feature with pages of +1s
<havenwood>
but nothing happens...
<benzrf>
I can type "require 'foo'\nrequire 'bar'" and have bar overwrite foo
<havenwood>
platzhirsch: and generally, gem is getting better and better - cutting ground on new territory, maintainers are responsive - just a general attitude of doing things rather than waiting ad infinitum and then following someone else's lead
<bnagy>
platzhirsch: I may not have been being serious
nwertman_ has joined #ruby
<platzhirsch>
bnagy: I like that
<DouweM>
benzrf: how else would you want it to work than bar overriding foo?
<platzhirsch>
this can escalate quickly
<platzhirsch>
want to join me and repeat that in #python?
<platzhirsch>
And then we all join in battle royale
<DouweM>
benzrf: ah, right. Ruby doesn't really have an import system like that, just requiring of files
<benzrf>
basically, it execs the file you import in its own namespace, then it collects up the top-level vars in that namespace when the file is done and sticks them into an object
zastern has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
kcombs has joined #ruby
<MrZYX>
I always end up making cycles it can't resolve :P
<DouweM>
how would you extend existing objects / monkeypatch in python?
<DouweM>
s/objects/classes
<benzrf>
DouweM: regular python objects can handle that
jibi has quit [Quit: .]
<benzrf>
but the builtins cant
<platzhirsch>
Is there an alternative to .send if the argument implements to_proc?
<benzrf>
which can be good or bad
<DouweM>
so how would you import a set of extensions?
<DouweM>
seeing as they aren't namespaced but override another import
<benzrf>
the other module could import the same one you're importing and modify it
<benzrf>
the same object is held onto by the system
<benzrf>
if two files import foo, they get the same foo obj
<DouweM>
so import foo; import bar; could still have bar override foo?
<benzrf>
in theory, but you don't monkeypatch in python
<benzrf>
it's bad practice
<DouweM>
right
b00stfr3ak has quit [Ping timeout: 250 seconds]
<benzrf>
you'd have to very manually override
preller has joined #ruby
<benzrf>
whereas it can happen entirely by accident in ruby
<DouweM>
I wouldn't say "entirely by accident", but yeah, it's very easy in Ruby
<DouweM>
which I think is one of its strenghts
<benzrf>
>_>
<DouweM>
as long as you know what you're doing, it's very powerful
<benzrf>
DouweM: did you see the parsing thing I made
spyderman4g63 has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 272 seconds]
reach has joined #ruby
wc- has joined #ruby
g0bl1n has quit [Ping timeout: 264 seconds]
funburn has joined #ruby
preller has quit [Read error: Operation timed out]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
ewnd9 has joined #ruby
cameronbarton has joined #ruby
shedd has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
funburn has quit [Client Quit]
cmedeiros has quit [Ping timeout: 252 seconds]
DrShoggoth has quit [Remote host closed the connection]
lyanchih has joined #ruby
cads has joined #ruby
dseitz has joined #ruby
cads has quit [Read error: Connection reset by peer]
cads has joined #ruby
preller has joined #ruby
subbyyy has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
echevemaster has quit [Quit: Leaving]
mmcdaris has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
kaiza has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
subbyyy has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 260 seconds]
Jdubs has quit [Remote host closed the connection]
Jdubs has joined #ruby
stkowski has quit [Quit: stkowski]
zeropx has joined #ruby
carif has quit [Quit: Ex-Chat]
Jdubs has quit [Remote host closed the connection]
iliketur_ has quit [Read error: Connection reset by peer]
mikepack_ has joined #ruby
mr_snowf1ake has joined #ruby
Konst has joined #ruby
flubba_ has joined #ruby
Xiti has joined #ruby
randomnick_ has quit [Remote host closed the connection]
fgo has joined #ruby
mosscollum has joined #ruby
shime has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
mikepack_ has quit [Ping timeout: 248 seconds]
flubba has quit [Ping timeout: 240 seconds]
s8p3 has quit [Ping timeout: 265 seconds]
cameronbarton has joined #ruby
preller has quit [Read error: Operation timed out]
rjhunter has joined #ruby
kaiza has joined #ruby
DrShoggoth has joined #ruby
jacobsmith has joined #ruby
tharindu has joined #ruby
DrShoggoth has quit [Max SendQ exceeded]
tylersmith has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
kofno has quit [Ping timeout: 248 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
shime has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
N00D is now known as zz_N00D
Hanmac1 has quit [Ping timeout: 252 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
reach has quit [Remote host closed the connection]
freggles has quit [Remote host closed the connection]
maroloccio has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
ewnd9 has quit [Ping timeout: 248 seconds]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
Tamal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CpuID has quit [Quit: This computer has gone to sleep]
havenwood has joined #ruby
culturel_ has joined #ruby
Aryasam has joined #ruby
DrShoggoth has joined #ruby
jkhwan has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
sheap has joined #ruby
DrShoggoth has quit [Max SendQ exceeded]
reach has joined #ruby
jkamenik has joined #ruby
jkamenik has quit [Client Quit]
havenwood has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
jonathanwallace has quit [Ping timeout: 265 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
jkhwan has joined #ruby
cbetta is now known as cbetta_afk
sheap has left #ruby [#ruby]
jkamenik1 has quit [Ping timeout: 250 seconds]
mr_snowf1ake has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Max SendQ exceeded]
kaiza has joined #ruby
lewix has joined #ruby
nfk has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
clamstar has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lethjakman has quit [Ping timeout: 265 seconds]
DrShoggoth has quit [Max SendQ exceeded]
Tamal has joined #ruby
DrShoggoth has joined #ruby
brianpWins has quit [Ping timeout: 248 seconds]
mr_red1 has quit [Remote host closed the connection]
deib97 has quit [Ping timeout: 240 seconds]
deib97 has joined #ruby
lewix has quit [Remote host closed the connection]
deib97 has quit [Client Quit]
anomaly_ has quit [Read error: Connection reset by peer]
deib97 has joined #ruby
anomaly_ has joined #ruby
h0rrorvacui has quit [Remote host closed the connection]
jonr22 has joined #ruby
mr_red has joined #ruby
tkuchiki has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
goleldar_ has quit [Remote host closed the connection]
preller has quit [Ping timeout: 245 seconds]
ckinni has joined #ruby
iliketur_ has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
tharindu has quit [Quit: Leaving...]
yfeldblum has quit [Remote host closed the connection]
gverri has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
bogeyd6 has joined #ruby
primenum has joined #ruby
mwillhite has joined #ruby
<mwillhite>
what are people using for factories these days?
<mwillhite>
I used to like machinist but its looking pretty out of date
gverri has quit [Ping timeout: 240 seconds]
<ddd>
factory girl is my choice. seems to be a more than fairly popular choice for others too
fgo has quit [Remote host closed the connection]
kostine has quit [Quit: kostine]
<reach>
those are both titles of movies
<reach>
so i was confused...
culturel_ has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
kostine has joined #ruby
robbyoconnor has joined #ruby
tharindu has joined #ruby
culturel_ has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
<mwillhite>
thanks ddd…I haven't used it in several years, it was really buggy then but looking good now
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spike|spiegel has quit [Ping timeout: 246 seconds]
dpswireless has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dpswireless>
I'm trying to find a better way to sort with passed in values, right now my query has .order("FIELD(id, #{sorted_group_ids_array.join ', '})")
<ddd>
yeah i've not had problems with the latest couple versions. I let it ride for a bit because of bugs, but its come along quite nicely
krz has joined #ruby
wc- has quit [Quit: wc-]
shedd has quit [Ping timeout: 264 seconds]
<ddd>
mwillhite, don't know if the version you used had build_stubbed() or not, but its quite nice
<mwillhite>
cool thanks for the tip
<ddd>
np
r0bby_ has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Ping timeout: 265 seconds]
w4pm has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
troyready has quit [Ping timeout: 246 seconds]
Jetchisel has joined #ruby
Hanmac1 has joined #ruby
Aryasam has quit [Quit: Bye]
Xaitec has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
tylersmith has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 0.4.2]
tylersmith has joined #ruby
mgberlin has joined #ruby
jamesaanderson has quit [Client Quit]
w4pm has quit [Ping timeout: 240 seconds]
krz has joined #ruby
gja has joined #ruby
kofno has quit [Ping timeout: 265 seconds]
noop has joined #ruby
Parker0 has joined #ruby
kostine is now known as notradescauseshi
notradescauseshi is now known as ibtc[away]
phipes has joined #ruby
mattattaque has quit [Quit: WeeChat 0.4.1]
ibtc[away] is now known as ibtc[home]
tharindu has quit [Quit: Leaving...]
nari has joined #ruby
ibtc[home] is now known as ex-ibtc[home]
havenwood has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
Xaitec has quit [Remote host closed the connection]
ex-ibtc[home] is now known as downrsidown
tylersmith has joined #ruby
downrsidown is now known as mama
mama is now known as Guest76367
Guest76367 is now known as papa
papa is now known as kostine
jamesaanderson has joined #ruby
kostine has quit [Quit: kostine]
kostine has joined #ruby
r0bby_ has quit [Max SendQ exceeded]
clamstar has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
fridim_ has joined #ruby
noop has quit [Ping timeout: 240 seconds]
fridim_ has quit [Max SendQ exceeded]
Konst has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
_Andres has joined #ruby
dpswireless has quit [Remote host closed the connection]
Chanshark has joined #ruby
blaskovicz has quit [Quit: Leaving.]
mwillhite has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alvaro_o has quit [Quit: Ex-Chat]
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tharindu has joined #ruby
charliesome has joined #ruby
xk_id has joined #ruby
cameronbarton has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
araujo has quit [Quit: Leaving]
kofno has joined #ruby
atno has quit [Ping timeout: 248 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
nomenkun has joined #ruby
fridim_ has joined #ruby
mojjojo has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
snath has joined #ruby
browndawg has joined #ruby
Hanmac has joined #ruby
zz_jrhorn424 is now known as jrhorn424
r0bby_ has quit [Excess Flood]
Silent__ has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 265 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
r0bby_ has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
sayan has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
cameronbarton has quit [Quit: cameronbarton]
lethjakman has joined #ruby
tharindu has quit [Quit: Leaving...]
pyon has quit [Quit: usagi usagi... pyon pyon... brb]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has quit [Ping timeout: 245 seconds]
pyon has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
benzrf has joined #ruby
<benzrf>
sup
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
tesuji has quit [Ping timeout: 260 seconds]
<Chanshark>
hi
tkuchiki has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
jkhwan has quit [Remote host closed the connection]
tylersmi_ has joined #ruby
radic has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
tylersmith has quit [Read error: Connection reset by peer]
timonv has joined #ruby
r0bby_ has quit [Read error: No route to host]
Myk267 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
clamstar has joined #ruby
jamesaanderson has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
anomaly_ has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
flame_ has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
<benzrf>
ok so it turns out
<benzrf>
the simple parser lib i made for fun looks a hell of a lot like parslet
<benzrf>
except way slower and generally shittier
flame_ has joined #ruby
Konst has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby
nateberkopec has quit [Quit: Leaving...]
yfeldblum has joined #ruby
tharindu has joined #ruby
kaiza has joined #ruby
<benzrf>
man i wish more things implemented to_proc
fgo has joined #ruby
siwica has joined #ruby
braincrash has quit [Quit: bye bye]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
weeems has joined #ruby
weems has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
digital-ghost has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 0.4.2]
dhruvasagar has joined #ruby
weeems is now known as weems
weems has quit [Changing host]
weems has joined #ruby
xcthulhu has joined #ruby
bedouin has quit [Ping timeout: 245 seconds]
aetaric has quit [Ping timeout: 245 seconds]
R33C3 has quit [Ping timeout: 245 seconds]
Guest49113 has quit [Ping timeout: 245 seconds]
mjmac has quit [Ping timeout: 245 seconds]
JaTochNietDan has quit [Ping timeout: 245 seconds]
bluehavana_ has quit [Ping timeout: 245 seconds]
joshwines has quit [Ping timeout: 245 seconds]
lele has quit [Ping timeout: 245 seconds]
Norrin has quit [Ping timeout: 245 seconds]
artmann_ has joined #ruby
mroth_ has joined #ruby
kapowaz_ has quit [Ping timeout: 245 seconds]
tobiasvl has quit [Ping timeout: 245 seconds]
derf- has quit [Ping timeout: 245 seconds]
ohcibi_ has joined #ruby
bluehavana_ has joined #ruby
kapowaz__ has joined #ruby
joshwines has joined #ruby
justinmcp_ has joined #ruby
taion809_ has joined #ruby
taion809 has quit [Ping timeout: 245 seconds]
caveat- has quit [Ping timeout: 245 seconds]
freakazoid0223 has quit [Ping timeout: 245 seconds]
mroth has quit [Ping timeout: 245 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
TDJACR has quit [Ping timeout: 245 seconds]
antonishen has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 245 seconds]
Nightmare has quit [Ping timeout: 245 seconds]
cusco has quit [Ping timeout: 245 seconds]
grn has quit [Ping timeout: 245 seconds]
DylanJ has quit [Ping timeout: 245 seconds]
mroth_ is now known as mroth
duggiefresh has joined #ruby
bedouin has joined #ruby
JaTochNietDan has joined #ruby
flame_ has quit [Quit: Computer has gone to sleep.]
SegFaultAX has quit [Ping timeout: 245 seconds]
Hien has quit [Ping timeout: 245 seconds]
artmann has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 245 seconds]
ohcibi has quit [Ping timeout: 245 seconds]
justinmcp has quit [Ping timeout: 245 seconds]
jrhorn424 has quit [Ping timeout: 245 seconds]
duggiefresh is now known as Guest26034
R33C3 has joined #ruby
antonishen has joined #ruby
xk_id has quit [Quit:
tylersmi_ has quit [Ping timeout: 265 seconds]
psyl0n has quit [Remote host closed the connection]
dotemacs has joined #ruby
cusco has joined #ruby
matrixise has joined #ruby
Hien has joined #ruby
grn has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lele has joined #ruby
Rollabun_ has joined #ruby
aetaric has joined #ruby
mjmac has joined #ruby
tesuji has joined #ruby
Nightmare has joined #ruby
tesuji has quit [Excess Flood]
Rollabunna has quit [Read error: Connection reset by peer]
derf- has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
kaiza has quit [Read error: Connection reset by peer]
SegFaultAX has joined #ruby
kaiza has joined #ruby
tesuji has joined #ruby
lewix has joined #ruby
Norrin has joined #ruby
atno has joined #ruby
TDJACR has joined #ruby
rjhunter has quit [Remote host closed the connection]
okinomo has joined #ruby
cschneid has joined #ruby
jonr22 has joined #ruby
preller has quit [Ping timeout: 252 seconds]
freakazoid0223 has joined #ruby
Nilium has quit [Read error: Connection reset by peer]
DylanJ has joined #ruby
caveat- has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
jonr22 has quit [Ping timeout: 248 seconds]
nwertman has joined #ruby
benzrf has quit [Quit: leaving]
lyanchih has quit [Quit: lyanchih]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
xk_id has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
braincra- has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
Nilium has joined #ruby
OdNairy has joined #ruby
braincrash has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 265 seconds]
kaiza has quit [Read error: Connection reset by peer]
Nanuq has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
prc has quit [Quit: Leaving.]
r0bby_ has joined #ruby
gja has joined #ruby
mosscollum has quit [Quit: mosscollum]
xk_id has quit [Quit:
jamesaanderson has joined #ruby
reach has quit [Read error: Connection reset by peer]
spike|spiegel has joined #ruby
IceDragon has quit [Quit: Space~~~]
clamstar has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 245 seconds]
ambushsabre has joined #ruby
yacks has joined #ruby
preller has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
cameronbarton has joined #ruby
kaiza has joined #ruby
nateberkopec has joined #ruby
_5kg has joined #ruby
dpswireless has joined #ruby
werdnativ has quit [Ping timeout: 252 seconds]
preller has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
nitish has joined #ruby
DanielRb has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby
ixti has quit [Ping timeout: 250 seconds]
jekt has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
jkhwan has quit [Remote host closed the connection]
dpswireless has quit [Remote host closed the connection]
iliketur_ has joined #ruby
s2013 has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
tharindu has quit [Quit: Leaving...]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
krz has joined #ruby
mary5030 has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mary5030 has joined #ruby
kcombs has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
Beoran_ has quit [Ping timeout: 245 seconds]
colluphid has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Ping timeout: 264 seconds]
nwertman has quit [Ping timeout: 248 seconds]
mmcdaris has joined #ruby
freerobby has quit [Quit: Leaving.]
mgberlin has quit [Quit: mgberlin]
sailias has joined #ruby
ss_ has joined #ruby
sailias has quit [Client Quit]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
culturel_ has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
s2013 has quit [Remote host closed the connection]
culturel_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tamal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cameronbarton has quit [Quit: cameronbarton]
rjhunter has joined #ruby
kofno has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
havenwood has joined #ruby
jamesaanderson has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
rjhunter has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 252 seconds]
tylersmith has quit [Remote host closed the connection]
cflat has joined #ruby
timonv has joined #ruby
nitish has quit [Quit: Bye Bye...]
cflat has quit [Read error: Connection reset by peer]
cflat has joined #ruby
dhruvasagar has joined #ruby
mgberlin has joined #ruby
s2013 has joined #ruby
sickweezle has quit [Quit: leaving]
Hanmac has joined #ruby
wc- has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
tharindu has joined #ruby
crapple has quit [Ping timeout: 240 seconds]
crapple has joined #ruby
krz has quit [Read error: No route to host]
jpablobr has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mary5030 has joined #ruby
krz has joined #ruby
mary5030 has quit [Remote host closed the connection]
colluphid has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 245 seconds]
Deele has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
mary5030 has joined #ruby
Asher has quit [Quit: Leaving.]
jacobsmith has quit [Ping timeout: 264 seconds]
osvico has quit []
Asher has joined #ruby
kostine has quit [Remote host closed the connection]
lyanchih has joined #ruby
kitak has joined #ruby
kostine has joined #ruby
clamstar has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clamstar has quit [Client Quit]
Zespre has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
phipes has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
jonr22 has joined #ruby
Rollabunna has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sayan has quit [Ping timeout: 248 seconds]
DouweM has quit [Read error: Connection reset by peer]
cflat has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
cflat has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
mr_snowf1ake has joined #ruby
anomaly_ has joined #ruby
Ponyo has joined #ruby
<Ponyo>
Hi ther i've been reading about the sequel module, specifically placeholders. I'm wondering if it's possible to pass an array of variables to DB[] ? Example: DB['SELECT * FROM foo WHERE bar = ?', params[:user].to_s]
rootshift has joined #ruby
<Ponyo>
I'm trying to have more than one ? per statement, and i'm trying to dynamically account for a dynamic variable count
havenwood has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
lewix has quit [Remote host closed the connection]
lethjakm1 has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
mr_snowf1ake has quit [Ping timeout: 265 seconds]
dukz has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
primenum has quit [Ping timeout: 260 seconds]
cflat has quit [Remote host closed the connection]
pyon has quit [Remote host closed the connection]
Ponyo has left #ruby [#ruby]
Hanmac1 has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevinykchan has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
sayan has joined #ruby
kevinykchan has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
Megtastique has quit [Client Quit]
sayan has quit [Read error: Connection reset by peer]
yfeldblum has quit [Read error: Connection reset by peer]
rootshift has quit [Quit: rootshift]
kaiza has quit [Ping timeout: 245 seconds]
amritanshu_RnD has joined #ruby
<kostine>
Ponyo: not really safe
<pontiki>
what isn't safe, kostine ?
<kostine>
params > sql
<kostine>
nm, you doing ?
krz has quit [Read error: Operation timed out]
gianlucadv has joined #ruby
lewix has joined #ruby
<kostine>
what are you passing in params?
lewix has quit [Changing host]
lewix has joined #ruby
<pontiki>
ponyo was asking, but they've left already it appears. i didn't know the answer they were asking, but i was unclear what part of what they were doing was unsafe
lewix has quit [Remote host closed the connection]
<kostine>
no part, he was doing ? which is the right way to avoid sql injection
<kostine>
I just didn't pay attention
<pontiki>
ah, ok
nomenkun has joined #ruby
Hanmac has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
mgberlin has quit [Quit: mgberlin]
Hanmac1 has quit [Ping timeout: 245 seconds]
tharindu has quit [Ping timeout: 264 seconds]
<YOURBESTFRIEND>
how can I escape line breaks in a heredoc?
mmcdaris has quit [Quit: mmcdaris]
nomenkun_ has quit [Ping timeout: 240 seconds]
mmcdaris has joined #ruby
<YOURBESTFRIEND>
\ seems to work
hamakn has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
araujo has joined #ruby
timonv has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
araujo has quit [Changing host]
araujo has joined #ruby
mr_blue has joined #ruby
<mr_blue>
hi
mmcdaris has joined #ruby
<kostine>
hi
timonv_ has joined #ruby
<mr_blue>
I need to sort objects against two members. As in the sql expression 'sort by member1, member2 desc'. I know i have to override the <=> operator but don't know how to implement it. Any idea ?
timonv has quit [Ping timeout: 245 seconds]
Konst has quit [Read error: Operation timed out]
<kostine>
you can't have database do it?
Hanmac1 has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
kofno has joined #ruby
Chanshark has quit [Quit: Chanshark]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mr_blue>
well, i have two collections of same objects but from differents databases. So there is two allready sorted collections and i want to merge them.
<kostine>
strings or integers?
erichmenge has quit [Ping timeout: 252 seconds]
x0nic has quit [Ping timeout: 260 seconds]
<mr_blue>
date
<mr_blue>
dates from sql so datetime
LexicalScope has quit [Ping timeout: 248 seconds]
<mr_blue>
there is a good activesupport extensions to manage dates comparison so no problem with that
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
okinomo has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
flubba_ has quit [Remote host closed the connection]
<kostine>
[11/1/2013,4/1/2013] and [11/1/2013, 3/1/2013] you want to merge them and sort them?
nomenkun has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
x0nic has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
okinomo has quit [Ping timeout: 264 seconds]
mr_blue has quit [Ping timeout: 248 seconds]
Shidash has joined #ruby
thirdeye has joined #ruby
mr_blue has joined #ruby
<mr_blue>
yes that's it
<kostine>
what do you want to do with dups?
<mr_blue>
keeping them because differents objects
<mr_blue>
but never mind the order if dates are equals
<kostine>
so are they dates or objects?
<kostine>
dates or other objects rather
tkuchiki has quit [Remote host closed the connection]
<kostine>
rc
<mr_blue>
dates are attributes of objects. A.date1, A.date2
<kostine>
ah i see
<mr_blue>
sorry was no clear
thirdeye has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
<PrincessPonyo>
ty
SHyx0rmZ has joined #ruby
ewnd9 has joined #ruby
<PrincessPonyo>
i think that covers the . and .. better
<Hanmac>
hm but it uses require not require_relative ... i dont know if i like that
marr has joined #ruby
<PrincessPonyo>
wouldn't expand path expand the value to it's absolute path?
fgo has joined #ruby
<Hanmac>
yeah
arquebus has joined #ruby
dangerousdave has joined #ruby
krz has quit [Read error: Connection reset by peer]
preller has joined #ruby
lewix has joined #ruby
<Hanmac>
PS: PrincessPonyo when the files in the subdir or what ever you want to require, needs them self you should need to require_relative them between each other ... just remeber that Dir[] returns files in filesystem-order and you cant deny on that
SteveBenner09 has quit [Ping timeout: 272 seconds]
bakedb has quit [Read error: Connection reset by peer]
wc- has joined #ruby
nomenkun has joined #ruby
krz has joined #ruby
cbetta_afk is now known as cbetta
bakedb has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
threesome has joined #ruby
tvw has joined #ruby
spider-mario has joined #ruby
spider-mario has quit [Remote host closed the connection]
RoryHughes has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
RoryHughes has quit [Client Quit]
timonv has quit [Remote host closed the connection]
jonr22 has joined #ruby
akonny has joined #ruby
wc- has quit [Ping timeout: 265 seconds]
RoryHughes has joined #ruby
carraroj has quit [Read error: Operation timed out]
maroloccio has quit [Quit: WeeChat 0.4.1]
maroloccio has joined #ruby
jonr22 has quit [Ping timeout: 252 seconds]
<PrincessPonyo>
Dir.foreach("api-functions") {|s| require_relative("api-functions/"+s) if(s.match(/^\.|^\.\./).to_a.empty?) } that was what I finally came to that filtered the . and .. from the list. Works good,thank you
olleromo_ has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
<apeiros>
s.match(/^\.|^\.\./).to_a.empty? # is a rather horrible construct IMO
carraroj has joined #ruby
<apeiros>
s !~ /^\.|^\.\./
<apeiros>
which can even be further reduced
<apeiros>
s !~ /^\./ # since ".." matches that too
<apeiros>
but I find the whole rather ugly compared to earlier suggested globbing
<popl>
dotfiles?
olleromo has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
lkba has quit [Read error: Connection reset by peer]
CpuID has quit [Quit: This computer has gone to sleep]
Markvilla has joined #ruby
jonr22 has joined #ruby
sepp2k has joined #ruby
cantonic has joined #ruby
sepp2k has left #ruby [#ruby]
esing has joined #ruby
splstn has quit [Remote host closed the connection]
sepp2k has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
RoryHughes has joined #ruby
siwica has quit [Ping timeout: 248 seconds]
Markvilla has quit [Ping timeout: 240 seconds]
<esing>
Hi, is within the function "initialize" not an end command missing? https://gist.github.com/uriel1998/1791270 I see _4_ if-conditions, 2_ each-do loops, _1_ case-statement and finally _1_ end is necessary for the function itself. So in total the function would need in total _8_ end commands, but there are only _7_? Not sure what I am missing here :S
mojjojo has quit [Quit: mojjojo]
VTLob has joined #ruby
lewix has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
tharindu has quit [Quit: Leaving...]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
RoryHughes has quit []
lewix has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
Well, yes, there is a missing end. Ruby can tell you that though.
nwertman has joined #ruby
mojjojo has joined #ruby
osvico has joined #ruby
<esing>
Thanks for assuring. Weird I run that script with that missing 'end' command on my old system (ubuntu) for months and it worked :S. It still works now (on arch), but no more for firefox sinks.
ss_ has joined #ruby
eldariof has joined #ruby
<Mon_Ouie>
It's just that there's an extra end at the end
RoryHughes has joined #ruby
eldariof has quit [Client Quit]
<Mon_Ouie>
And all the methods except initialize are being defined when initialize is called
<esing>
Oh, and I was wondering if the last end is actually necessary for the instance "p = Pulse.new "... so I can remove the last end too I guess?
<Mon_Ouie>
Yes, that should allow it to work
tonni has joined #ruby
wchun has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
aapzak has quit [Read error: Operation timed out]
preller has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
relix has joined #ruby
aapzak has joined #ruby
esing has quit [Quit: Verlassend]
nwertman has quit [Ping timeout: 265 seconds]
esing has joined #ruby
esing has quit [Changing host]
esing has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
stormbytes has joined #ruby
nari has quit [Read error: Connection reset by peer]
nari has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
browndawg has joined #ruby
colonolGron has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
michael_lee has joined #ruby
charliesome has joined #ruby
mojjojo has quit [Quit: mojjojo]
michael_lee has quit [Max SendQ exceeded]
RoryHughes has quit []
lyanchih has joined #ruby
michael_lee has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
MrZYX is now known as MrZYX|off
_Andres has joined #ruby
s8p3 has quit [Ping timeout: 241 seconds]
ckinni has joined #ruby
<shevy>
esing it is often easier to write small, short methods
<shevy>
the initialize method in that case is very long
<shevy>
esing also notice that the author of that script is not consistent - on line 80 there is an "if", and on line 82 there is the corresponding "end", but it is not aligned properly with the starting if
cbetta_afk is now known as cbetta
<shevy>
in general the author seems to indent inconsistently - on line 109 there is a method definition, but the body of that method has differently indented if/end's
psyl0n has quit [Remote host closed the connection]
<shevy>
does not matter where $foo is defined, it's a big leaker :)
ewnd9 has joined #ruby
RoryHughes has joined #ruby
Rylee has quit [Quit: WeeChat 0.4.3-dev]
mojjojo has quit [Client Quit]
ss_ has quit [Remote host closed the connection]
<esing>
Hm, in Python I'd use def __init__(self): self.longname=0 def example(self): self.longname. Since longname is only used within the class, the global variable seems indeed unnecessary. Is the instance variable with @variable the same as self.variable in python?
mojjojo has joined #ruby
<DouweM>
basically
Rylee has joined #ruby
roadt has joined #ruby
<esing>
Thanks I'll try that
nomenkun has joined #ruby
<shevy>
esing you see @ivars used a lot in ruby classes
<shevy>
if you only work in classes, @ivars are almost always better than $global variables
<shevy>
esing how long have you been doing python?
<DouweM>
like you'd see self.vars used a lot in Python classes, I'd assume. Instance vars a are pretty important part of objects :)
<shevy>
hmm yeah
<shevy>
I forgot that... thought self.foo meant a method call
<shevy>
they must carry explicit self all over the place!
<DouweM>
shevy: I have no idea, I'm just parroting what esing just mentioned about self.longname in Python
<DouweM>
I don't know the first thing about Python
<DouweM>
I knew about the explicit self!
nomenkun has quit [Ping timeout: 245 seconds]
<shevy>
hehe
<shevy>
python has some strange things
<DouweM>
so I guess I know the first thing
<shevy>
like decorators
preller has quit [Ping timeout: 252 seconds]
<esing>
shevy, I am also a beginner in python, doing that since some months and ruby is also good readable like python
<esing>
I find decorators/closure useful :)
d45h has quit []
<esing>
Hm, with self you can access objects within the class, either 'object variables' or 'objects methods' if I understood that correctly
<esing>
(You just need to add the self argument for every method and of course the __init__(self) method within the class)
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coldmethod has joined #ruby
Rylee has quit [Remote host closed the connection]
Rylee has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
Briareos1 has joined #ruby
ixti has joined #ruby
TDJACR has quit [Ping timeout: 264 seconds]
<shevy>
ok but in ruby you rarely need self
<shevy>
and you never have to pass self to a method inside of that class, as self will point to the current class in question usually
lewix has joined #ruby
TDJACR has joined #ruby
brtdv has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<DouweM>
shevy: I'm pretty sure you need self. for setters, so `self.name = "Douwe"`
<DouweM>
and because of that, I also always use `self.` with the respective getters
<shevy>
yeah, that's why I wrote rarely. I desperately wanted to write never, but it would not have been true :(
<Hanmac>
DouweM: this is also another difference, you can call "self.name =" even if "name=" is protected
Czupa has quit [Remote host closed the connection]
<shevy>
Fidelix then just convert the string into an array. .split(), or if you are in control of Settings module, add a method or way to add that
<Fidelix>
shevy: thanks. Will do.
<shevy>
hmm a << method can be defined?
<waxjar_>
yes
<Hanmac>
shevy the C++ samples cant be copies 1-1 into rb files ... because my binding does a bit of magic ... and the samples are also full of "#if wxUSE_**" macros ...
gregoriokusowski has joined #ruby
<waxjar_>
Fidelix: if you plan on doing exec or something similar you might want to look at Shellwords in the stdlib to do escaping and whatnot
okinomo has quit [Ping timeout: 260 seconds]
<Fidelix>
waxjar_: I do plan on invoking the unrar executable. Will look into it, thank you very much.
<DouweM>
shevy: most operators in Ruby are just methods, << included
okinomo has joined #ruby
d45h has joined #ruby
d45h has quit [Read error: Operation timed out]
djdarkbeat has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
zipper_ has joined #ruby
coderhs has joined #ruby
haukur has joined #ruby
PanPan_ has joined #ruby
haukur has quit [Remote host closed the connection]
okinomo has quit [Ping timeout: 240 seconds]
viod has joined #ruby
okinomo has joined #ruby
PanPan has quit [Ping timeout: 260 seconds]
<viod>
Hello! I'm just learning Ruby through a tutorial, but I get into an error when running "ri File.open" : RDoc::Store::MissingFileError. I've tried "gem update rdoc", "rdoc-data --install", "gem rdoc --all --overwrite", but none of these worked. Any idea of what I could do to have the ri doc?
mojjojo has joined #ruby
PanPan has joined #ruby
zkc has joined #ruby
prc has joined #ruby
anomaly_ has quit [Ping timeout: 252 seconds]
wchun has joined #ruby
PanPan_ has quit [Ping timeout: 240 seconds]
zipper_ has quit [Quit: Lost terminal]
<Hanmac>
viod that is your ruby version and what does "gem env" shows you?
Briareos1 has quit [Remote host closed the connection]
jonathanwallace1 has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
claymore has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
PanPan_ has joined #ruby
wallerdev has joined #ruby
RoryHughes has quit []
coderhs has quit [Ping timeout: 248 seconds]
viod1 has joined #ruby
d45h has joined #ruby
coderhs has joined #ruby
PanPan has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
jonathanwallace1 has joined #ruby
shtirlic has joined #ruby
whysosad has joined #ruby
cads has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
wallerdev has quit [Client Quit]
viod has quit [Read error: Operation timed out]
okinomo has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
whysomad has quit [Ping timeout: 245 seconds]
rootshift has quit [Quit: rootshift]
okinomo has joined #ruby
akitada_ has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
aerook has joined #ruby
kofno has joined #ruby
Advocation has joined #ruby
m8 has joined #ruby
sayan has joined #ruby
coderhs has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
jonathanwallace1 has quit [Ping timeout: 252 seconds]
alx- has joined #ruby
alx- has quit [Client Quit]
alx- has joined #ruby
jonathanwallace1 has joined #ruby
alx- has quit [Client Quit]
blergha has quit [Remote host closed the connection]
<shevy>
hmm
nateberkopec has joined #ruby
jonr22 has joined #ruby
<shevy>
how to enable in a ruby script a "read in from piped input"?
<shevy>
so that it can be used like: "cat * | ruby blabla.rb"
<shevy>
but also standalone
pu22l3r has joined #ruby
alx- has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
<aerook>
why not just pass ruby script the args?
EngierkO has joined #ruby
Advocation has quit [Quit: Advocation]
lyanchih has joined #ruby
jonr22 has quit [Ping timeout: 252 seconds]
dik_dak has joined #ruby
<Mon_Ouie>
shevy: piped input is just sent to stdin, so you can read it from there
<viod1>
I've just realised that when I only type "ri File.o", zsh autocompletion proposes me "open" and "owned?". So I really don't know why hte help file can't be found...
jonathanwallace1 has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
rubyracer has joined #ruby
Hanmac1 has joined #ruby
shtirlic has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
mojjojo has quit [Quit: mojjojo]
shtirlic has joined #ruby
<shevy>
hmm
Monie has quit [Read error: Connection reset by peer]
<shevy>
and how do you get stdin from a ruby class?
Hanmac has quit [Ping timeout: 245 seconds]
Monie has joined #ruby
Hanmac has joined #ruby
<waxjar_>
STDIN or $stdin
yfeldblum has joined #ruby
pagios has quit [Max SendQ exceeded]
<canton7>
Kernel#gets reads from stdin too
pagioss has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<shevy>
hmm I always thought it is used only for user input
Hanmac1 has quit [Ping timeout: 240 seconds]
atno has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
<canton7>
stdin can be attached to a keyboard, or it can be attached to another process's stdout. shell pipes do the latter
d45h has quit [Ping timeout: 252 seconds]
shtirlic has quit [Remote host closed the connection]
xcthulhu has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
coderhs has quit [Ping timeout: 260 seconds]
ambushsabre has joined #ruby
atno has joined #ruby
okinomo has joined #ruby
waxjar_ is now known as waxjar
yfeldblum has quit [Ping timeout: 245 seconds]
kofno has quit [Ping timeout: 264 seconds]
anomaly_ has joined #ruby
jamesaanderson has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
kofno has joined #ruby
timonv has joined #ruby
DrShoggoth has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
fedesilva has joined #ruby
rootshift has joined #ruby
mojjojo has joined #ruby
endash has quit [Quit: endash]
coderhs has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
xcthulhu has quit [Quit: xcthulhu]
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
jezen has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
viod1: In ri notation (i.e. in documentation, not in code), Thing.stuff can be either a class or an instance method while Thing::stuff is explicitly a class method
relix has joined #ruby
dangerousdave has joined #ruby
<viod1>
Ok!
<viod1>
thanks!
Astralum has quit [Ping timeout: 252 seconds]
rootshift has joined #ruby
pushpak has joined #ruby
volty has joined #ruby
DrShoggoth has joined #ruby
kits2c22e has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
<kits2c22e>
Is it a robot message?
<shevy>
no
RoryHughes has quit []
<kits2c22e>
sorry, It's my first time to use IRC. Nice to meet you, ~~
lfox has quit [Quit: ZZZzzz…]
ckinni has joined #ruby
Naoe-Kanno has quit [Ping timeout: 265 seconds]
petey has joined #ruby
RoryHughes has joined #ruby
|jemc| has joined #ruby
jmeeuwen_ has joined #ruby
nari has quit [Ping timeout: 252 seconds]
petey has quit [Remote host closed the connection]
xbob_ has joined #ruby
nowthatsamatt_ has joined #ruby
wildharvest_ has joined #ruby
petey has joined #ruby
tsykodukl has joined #ruby
mvangala has joined #ruby
elux has quit [Ping timeout: 265 seconds]
jamesaan_ has joined #ruby
rootshift has quit [Quit: rootshift]
gregoriokusows-1 has joined #ruby
pushpak_ has joined #ruby
shadoi has joined #ruby
justinmcp has joined #ruby
aryaching has joined #ruby
elux has joined #ruby
waxjar_ has joined #ruby
anomaly_ has joined #ruby
Rollabun_ has joined #ruby
yugui_zzz_ has joined #ruby
UForgotten_ has joined #ruby
_5kg_ has joined #ruby
kapowaz_ has joined #ruby
conceal_rs_____1 has joined #ruby
bluehavana__ has joined #ruby
invsblduck_ has joined #ruby
zastern_ has joined #ruby
cub1c_ has joined #ruby
Paradox has quit [Ping timeout: 240 seconds]
wildharvest has quit [Ping timeout: 240 seconds]
nick_h_ has joined #ruby
Guest14042 has quit [Ping timeout: 240 seconds]
zz_tsykoduk has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 240 seconds]
pushpak has quit [Ping timeout: 240 seconds]
nowthatsamatt has quit [Ping timeout: 263 seconds]
shaileshg__ has quit [Ping timeout: 263 seconds]
wildharvest_ is now known as wildharvest
nowthatsamatt_ is now known as nowthatsamatt
kapowaz__ has quit [Ping timeout: 263 seconds]
rezzack has quit [Ping timeout: 263 seconds]
jmeeuwen has quit [Ping timeout: 240 seconds]
ceej has quit [Ping timeout: 263 seconds]
gregoriokusowski has quit [Ping timeout: 240 seconds]
nick_h has quit [Ping timeout: 240 seconds]
Norrin has quit [Ping timeout: 240 seconds]
bluehavana_ has quit [Ping timeout: 240 seconds]
postmodern has quit [Ping timeout: 240 seconds]
ValicekB has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
DarkFoxDK has quit [Ping timeout: 240 seconds]
conceal_rs_____0 has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Ping timeout: 240 seconds]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
esing has quit [Ping timeout: 240 seconds]
threesome has quit [Ping timeout: 240 seconds]
shadoi1 has quit [Ping timeout: 240 seconds]
rurban has quit [Ping timeout: 240 seconds]
DuoSRX has quit [Ping timeout: 240 seconds]
sophomorical has quit [Ping timeout: 240 seconds]
mvangala_ has quit [Ping timeout: 240 seconds]
aspiers has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Ping timeout: 240 seconds]
xbob has quit [Ping timeout: 240 seconds]
gasbakid has quit [Ping timeout: 240 seconds]
freakazoid0223 has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
tharindu_ has quit [Ping timeout: 240 seconds]
aryaching_ has quit [Ping timeout: 240 seconds]
ItSANgo has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
mityaz has quit [Ping timeout: 240 seconds]
blo has quit [Ping timeout: 240 seconds]
zastern has quit [Ping timeout: 240 seconds]
_5kg has quit [Ping timeout: 240 seconds]
Nightmare has quit [Ping timeout: 240 seconds]
aetaric has quit [Ping timeout: 240 seconds]
mjmac has quit [Ping timeout: 240 seconds]
justinmcp_ has quit [Ping timeout: 240 seconds]
anderson has quit [Ping timeout: 240 seconds]
Kruppe has quit [Ping timeout: 240 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
psyprus has quit [Ping timeout: 240 seconds]
Sthebig has quit [Ping timeout: 240 seconds]
invsblduck has quit [Ping timeout: 240 seconds]
SirCmpwn has quit [Ping timeout: 240 seconds]
utkarsh_ has quit [Ping timeout: 240 seconds]
Styles has quit [Ping timeout: 240 seconds]
flagg0204 has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
yugui_zzz has quit [Ping timeout: 240 seconds]
hoelzro has quit [Ping timeout: 240 seconds]
UForgotten has quit [Ping timeout: 240 seconds]
yasu has quit [Ping timeout: 240 seconds]
cub1c has quit [Ping timeout: 240 seconds]
UForgotten_ is now known as UForgotten
ItSANgo_ has joined #ruby
mityaz has joined #ruby
roadt has quit [Ping timeout: 240 seconds]
tharindu_ has joined #ruby
bluehavana__ is now known as bluehavana_
kapowaz_ is now known as kapowaz__
xiphias has joined #ruby
utkarsh has joined #ruby
psyprus has joined #ruby
jrhorn424afk has joined #ruby
blo has joined #ruby
esing has joined #ruby
shaileshg__ has joined #ruby
freakazoid0223 has joined #ruby
Kruppe has joined #ruby
mbff_ has joined #ruby
rurban has joined #ruby
shaileshg__ has joined #ruby
Dwarf has joined #ruby
shaileshg__ has quit [Changing host]
sharms has joined #ruby
prakriti has joined #ruby
DarkFoxDK has joined #ruby
jmeeuwen_ is now known as jmeeuwen
mikepack has quit [Remote host closed the connection]
kenichi has joined #ruby
Sthebig has joined #ruby
yasu has joined #ruby
Norrin has joined #ruby
Emmanuel_Chanel has joined #ruby
hoelzro has joined #ruby
petey has quit [Ping timeout: 240 seconds]
esing has quit [Changing host]
esing has joined #ruby
brunto has quit [Ping timeout: 260 seconds]
Styles has joined #ruby
Nightmare has joined #ruby
aetaric has joined #ruby
ceej has joined #ruby
gasbakid has joined #ruby
postmodern has joined #ruby
Styles is now known as Guest59609
sophomorical has joined #ruby
DuoSRX has joined #ruby
Guest59609 has joined #ruby
Guest59609 has quit [Changing host]
flagg0204 has joined #ruby
postmodern has quit [Changing host]
postmodern has joined #ruby
SirCmpwn has joined #ruby
Nightmare has quit [Changing host]
Nightmare has joined #ruby
mjmac has joined #ruby
mr_snowf1ake has joined #ruby
Kruppe is now known as Guest30076
anderson has joined #ruby
aspiers has joined #ruby
mikepack has joined #ruby
SirCmpwn has quit [Changing host]
SirCmpwn has joined #ruby
Sthebig has quit [Changing host]
Sthebig has joined #ruby
blo has quit [Changing host]
blo has joined #ruby
bedouin has quit [Ping timeout: 264 seconds]
brunto has joined #ruby
brunto has quit [Changing host]
brunto has joined #ruby
carraroj has joined #ruby
bedouin has joined #ruby
<shevy>
kits2c22e hehe
<shevy>
kits2c22e people idle to power on IRC
<shevy>
some since decades
carraroj has quit [Changing host]
carraroj has joined #ruby
cads has joined #ruby
jamesaan_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketur_ has joined #ruby
Brolen has joined #ruby
Brolen has left #ruby [#ruby]
randomnick_ has quit [Quit: Leaving]
ValicekB_ has joined #ruby
zkc has quit [Quit: Leaving]
ValicekB_ is now known as ValicekB
timonv has joined #ruby
mikepack has quit [Remote host closed the connection]
_maes_ has joined #ruby
RoryHughes has quit []
mikepack has joined #ruby
psyl0n has quit [Remote host closed the connection]
threesome has joined #ruby
MrZYX|off is now known as MrZYX
timonv has quit [Ping timeout: 240 seconds]
jhaals has joined #ruby
carraroj has quit [Read error: Operation timed out]
timonv has joined #ruby
iliketu__ has joined #ruby
iliketur_ has quit [Ping timeout: 240 seconds]
kapowaz__ is now known as kapowaz
viod1 has quit [Read error: Operation timed out]
cflat has joined #ruby
psyl0n has joined #ruby
<pontiki>
if we idle, it keeps the IRC going...
psyl0n has quit [Changing host]
psyl0n has joined #ruby
elux has quit [Quit: Bye!]
mojjojo has quit [Quit: mojjojo]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Paradox has joined #ruby
bklane has joined #ruby
Shidash has joined #ruby
RoryHughes has joined #ruby
Brolen has joined #ruby
anomaly_ has quit [Ping timeout: 256 seconds]
intuxicated has joined #ruby
brain_shim has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
intuxicated has quit [Max SendQ exceeded]
intuxicated has joined #ruby
primenum has quit [Ping timeout: 248 seconds]
TIJ has quit [Quit: Konversation terminated!]
s8p3 has joined #ruby
TIJ has joined #ruby
DeProdigy has joined #ruby
brtdv has quit []
Brolen has quit [Remote host closed the connection]
<shevy>
anyone of you uses ruby to generate excel files?
jonathanwallace1 has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
coca_rails has joined #ruby
<shevy>
like, you have data from a cvs file, modify it, then wann store this... all from within ruby easily, without having to open any GUI
kits2c22e has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 252 seconds]
spider-mario has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
timonv has joined #ruby
jamesaanderson has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
_Andres has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
preller has quit [Ping timeout: 248 seconds]
Speed has left #ruby ["WeeChat 0.4.2"]
timonv has quit [Remote host closed the connection]
<snql>
hi, I need to generate random data with zipcode, correct phonecode and building's address. advise me, how to implement it easier
lkba has quit [Ping timeout: 240 seconds]
iliketur_ has joined #ruby
lukec has quit [Quit: lukec]
zipper has joined #ruby
<snql>
there is special gem for task?
<speakingMONEY>
j/join #rubyonrails
<speakingMONEY>
whoops
Megtastique has joined #ruby
speakingMONEY is now known as speakingcode
ohcibi_ is now known as ohcibi
eka has quit [Quit: Computer has gone to sleep.]
anomaly_ has joined #ruby
<DouweM>
siaW: you need that glyphicons-halflings.png in your project
<DouweM>
whoops
Azure has joined #ruby
benlieb has joined #ruby
coca_rails has joined #ruby
<dunckr>
j/join #rubyonrails
<dunckr>
whoops
Megtastique has quit []
phansch has quit [Quit: Leaving]
RoryHughes has quit []
anomaly_ has quit [Ping timeout: 256 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
predator117 has quit [Ping timeout: 252 seconds]
iliketur_ has quit [Ping timeout: 265 seconds]
b00stfr3ak has joined #ruby
trolling_ is now known as trolling
saragojo has joined #ruby
miguelcma has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
miguelcma has left #ruby [#ruby]
saragojo has left #ruby [#ruby]
iliketur_ has joined #ruby
saragojo has joined #ruby
anomaly_ has joined #ruby
marr has joined #ruby
gigetoo has quit [Remote host closed the connection]
lkba has joined #ruby
siwica has joined #ruby
gigetoo has joined #ruby
mmcdaris has joined #ruby
mmcdaris has quit [Client Quit]
lfox has joined #ruby
neonlex has quit [Ping timeout: 264 seconds]
saragojo has quit [Remote host closed the connection]
neonlex has joined #ruby
saragojo has joined #ruby
Tamal has joined #ruby
shredding has joined #ruby
Tamal has quit [Client Quit]
eka has joined #ruby
kofno has joined #ruby
saragojo has quit [Read error: Connection reset by peer]
saragojo has joined #ruby
eka has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 240 seconds]
vt102 has quit [Remote host closed the connection]
predator117 has joined #ruby
saragojo has quit [Read error: No route to host]
lfox has quit [Ping timeout: 240 seconds]
saragojo has joined #ruby
eka has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
anomaly__ has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
volty has joined #ruby
mr_snowf1ake has quit [Ping timeout: 240 seconds]
TripleDES has joined #ruby
Konst has quit [Ping timeout: 240 seconds]
snql has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
Konst has joined #ruby
* coldmethod
sipping coffee with attr_accessors
shredding has quit [Quit: shredding]
preller has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
aerook has quit [Quit: Page closed]
gregoriokusows-1 has quit [Quit: gregoriokusows-1]
jle` has joined #ruby
lukec has joined #ruby
m8 has quit [Quit: Sto andando via]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
peregrine81 has joined #ruby
preller has joined #ruby
dik_dak has quit [Quit: Leaving]
gigetoo has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
scruple has joined #ruby
gigetoo has joined #ruby
claymore has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
Shidash has quit [Ping timeout: 264 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
scruple has quit [Client Quit]
preller has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
mikepack has quit [Remote host closed the connection]
Shidash has joined #ruby
<shevy>
:P
<shevy>
j/join #rubyonrails
anomaly__ has quit [Remote host closed the connection]
shuvarek has joined #ruby
<shevy>
what is Regexp.union
djdarkbeat has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
<DouweM>
shevy: look it up, you should know about ruby-doc.org by now :P
culturel_ has quit [Remote host closed the connection]
<shevy>
what is Regexp.union
<DouweM>
shevy: it takes an array, and turns it into a Regexp that would match for any of the values in the array. Basically joins them with "|", so you get /a|b/ for ["a", "b"]