`Chris` has quit [Read error: Connection reset by peer]
nari has joined #ruby
vpretzel has quit [Remote host closed the connection]
`Chris` has joined #ruby
judd7 has quit [Quit: judd7]
<pragmatism>
Has anyone gotten Libv8 to compile in Mavericks?
einarj has quit [Ping timeout: 240 seconds]
<pragmatism>
This is driving me up the wall
pitzips has quit [Ping timeout: 256 seconds]
RichardBaker has left #ruby [#ruby]
brennanMKE has joined #ruby
mlpinit_ has joined #ruby
Azulinho has joined #ruby
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gregas has joined #ruby
sergicles has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 248 seconds]
weirdpercent has joined #ruby
mlpinit_ has quit [Ping timeout: 252 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
kurt21 has joined #ruby
kvirani_ has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Quit: Leaving.]
<weirdpercent>
trying to get this regex to work. here's the string": March 23rd 2013Laura, Ark, Belibaste, Perceval, Andromeda, PoB, Ailen, Data, Kniall, Mr. Scott" I want to split the string at the \d\d\d\d
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
pragmatism has joined #ruby
pragmatism has quit [Remote host closed the connection]
kil0byte has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
sparq__ has quit [Ping timeout: 248 seconds]
amacgregor has joined #ruby
VTLob has quit [Quit: VTLob]
timonv has quit [Ping timeout: 272 seconds]
vpretzel has quit [Ping timeout: 260 seconds]
amacgregor_ has joined #ruby
havenwood has quit [Remote host closed the connection]
dcunit3d has quit [Quit: dcunit3d]
amacgregor has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
Domon has joined #ruby
_dma has quit [Remote host closed the connection]
_dma has joined #ruby
d4heyDU has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
_dma has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
sparq__ has joined #ruby
derebos has quit [Quit: Leaving]
amacgregor has joined #ruby
amacgregor__ has joined #ruby
gyre007 has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 256 seconds]
plotter has quit [Quit: Leaving]
gyre007 has joined #ruby
MrPoT4tO has joined #ruby
mrpot4to_ has joined #ruby
ChronocityLC has quit [Ping timeout: 260 seconds]
amacgregor_ has quit [Ping timeout: 260 seconds]
mlpinit has joined #ruby
MrPoT4tO has quit [Client Quit]
cescalante is now known as ce_afk
lembacon has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Client Quit]
MrPoT4tO has joined #ruby
MrPoT4tO has quit [Client Quit]
nfk has quit [Quit: yawn]
Loaft has joined #ruby
amacgregor has quit [Ping timeout: 272 seconds]
itcharlie has left #ruby [#ruby]
_dma has joined #ruby
mvangala_ has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 241 seconds]
snovak has joined #ruby
mvangala has joined #ruby
pen has joined #ruby
brennanMKE has joined #ruby
judd7_ has quit [Quit: judd7_]
julweber has joined #ruby
pen has quit [Remote host closed the connection]
dcunit3d has quit [Quit: dcunit3d]
petey has quit [Remote host closed the connection]
pen has joined #ruby
havenwood has joined #ruby
pencilcheck has joined #ruby
snovak has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
kurt21 has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
brennanMKE has quit [Ping timeout: 252 seconds]
three18ti has quit [Ping timeout: 268 seconds]
rjhunter has joined #ruby
sparq__ has quit [Ping timeout: 248 seconds]
tcgden has quit [Quit: Lost terminal]
three18ti has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
Jeticus has joined #ruby
pen has quit [Ping timeout: 240 seconds]
jmeeuwen has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has joined #ruby
CaptainJet has quit [Ping timeout: 240 seconds]
jmeeuwen has joined #ruby
axl_ has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
lfox has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
Tamal has joined #ruby
Tamal has quit [Client Quit]
My_Hearing has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sevenseacat has joined #ruby
fgo has joined #ruby
bean has joined #ruby
<sam113101>
sevenseacat: do you like angularjs?
<sevenseacat>
i havent used it
Mon_Ouie has quit [Read error: Operation timed out]
<sam113101>
ok
<Senjai>
sam113101: not really a ruby question is it :P
<sam113101>
I know, but she doesn't want people to PM her
KobraKao has joined #ruby
julian-delphiki has quit [Ping timeout: 248 seconds]
Davey_ has joined #ruby
funburn has joined #ruby
mobileblue has joined #ruby
<jrobeson>
it's not just her sam113101
<jrobeson>
nobody wants people they don't know to pm them unless asked for
<bnagy>
except in #bearcave
<sam113101>
jrobeson: I personally don't care
<jrobeson>
it's ok that you don't
<jrobeson>
but people who hang out in tech support chatrooms helping people for hours really do
<sam113101>
I thought people wouldn't care either
lfox has quit [Quit: ZZZzzz…]
<sam113101>
it came to me as a surprise
<jrobeson>
this is normal for most people in tech support channels not to like it. most channels even put it in their rules
Volsus has joined #ruby
maletor has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<jrobeson>
if you want to pm somebody in a tech support channel always ask. it's good etiquette
burlyscudd has joined #ruby
vpretzel has joined #ruby
<jrobeson>
bnagy, i don't even know what that is
jaimef has quit [Excess Flood]
<sam113101>
I find it weird
<jrobeson>
because everybod ythinks they are special enough to get private support
<jrobeson>
it adds up and gets annoying
<jrobeson>
it's not just because you did it, its all the other people who do it
jaimef has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
mobilebl- has quit [Ping timeout: 272 seconds]
<sam113101>
I guess I don't help people often enough
<bnagy>
jrobeson: don't google it
<sam113101>
I do get people PMing me without asking but not too often
ssvo has joined #ruby
Monie has quit [Ping timeout: 252 seconds]
<jrobeson>
and then we get into a situation where people will be like 'but x helped me in a pm' :(
<sam113101>
what kind of situation is that?
vpretzel has quit [Ping timeout: 240 seconds]
<sam113101>
I mean, how is it troublesome
<bnagy>
I feel the same way when I see people giving money to homeless guys. I just run up and abuse them.
<bnagy>
"DUDE UR RUINING IT FOR EVERYONE HE WANTS TO BE POOR"
<jrobeson>
it's not at all similiar.. because nobody has an expecation that the next person is the same as the other.. it's not a closed group
<bnagy>
gets em uppitty
<jrobeson>
it's a city street.
Monie has joined #ruby
<jrobeson>
happens to me all the time in baltimore. but i don't really get annoyed at that.. except for the people who i know are just gonna buy booze for sure
<jrobeson>
at least in portland people will have signs like "i need money for beer"
burlyscudd has quit [Ping timeout: 246 seconds]
<jrobeson>
sam113101, just stick around awhile on a channel for awhile.. you'll see
<bnagy>
you should at least make them dance for it, so they get a work ethic
yvemath has joined #ruby
<sam113101>
jrobeson: I'm on different channels already
<jrobeson>
for how long?
maletor has quit [Quit: Computer has gone to sleep.]
<jrobeson>
this channel is pretty well behaved though
`Chris`_ has joined #ruby
varfoo has joined #ruby
<jrobeson>
ruby is pretty chilled out now
elaptics is now known as elaptics`away
[rust] has quit [Ping timeout: 248 seconds]
<sam113101>
anyway, I messaged her when I was in #rubyonrails I think
<sam113101>
I messaged radar too
<sam113101>
he didn't mind at first but ever since he wrote this book
<sam113101>
he's rude with me
<sam113101>
;_;
|jemc| has joined #ruby
mercwithamouth has joined #ruby
`Chris` has quit [Ping timeout: 272 seconds]
<bnagy>
this is eight screen inches of my life I am never getting back
`Chris`_ has quit [Client Quit]
`Chris` has joined #ruby
<jrobeson>
that is a channel rule in rubyonrails i think
<sam113101>
dropped your monitor on the floor, uh?
JJ_ has quit [Ping timeout: 248 seconds]
<sam113101>
I don't know, I stopped going there
<sam113101>
I don't like it
n_blownapart has joined #ruby
<jrobeson>
yep.. rule #12
tspike has joined #ruby
<sevenseacat>
bnagy: sorry.
_adeponte has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
ehc has quit [Quit: ehc]
<sam113101>
rule #12 best rule
<sam113101>
!rules
<sam113101>
!guidelines
<sevenseacat>
no helpa here.
<bnagy>
we have rules??
<sam113101>
no rules!
<|jemc|>
!conventions
<|jemc|>
!understandings
<|jemc|>
nope, none of those either
<bnagy>
!normative ethical frameworks
<|jemc|>
!chaos
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
<bnagy>
dammit that just gets me the !normative spam
<|jemc|>
!normative
<|jemc|>
also, this might have been amusing had I done it earlier:
<|jemc|>
>> rules
<eval-in>
|jemc| => undefined local variable or method `rules' for main:Object (NameError) ... (https://eval.in/57292)
maletor has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
n_blownapart is now known as crucify_me
gja has quit [Quit: This computer has gone to sleep]
Volsus has quit [Ping timeout: 272 seconds]
<crucify_me>
sevenseacat: hey what's up with the rails channel?
snappy has quit [Ping timeout: 260 seconds]
<sevenseacat>
nothing?
<crucify_me>
hmm , its inoperable for me
<|jemc|>
inoperable?
jcarouth has joined #ruby
<jrobeson>
crucify_me, do you mean you can't join because your nick isn't registered?
ldnunes has quit [Quit: Leaving]
<sevenseacat>
most likely
<|jemc|>
ah
jcarouth has quit [Quit: Coyote finally caught me]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snappy has joined #ruby
snappy has joined #ruby
snappy has quit [Changing host]
<crucify_me>
no it , they are
<sevenseacat>
we had a problem with spammers, so we added +r
<jrobeson>
hmm.. then you'll have to be more specific .. what happens when you try?
axl_ has quit [Quit: axl_]
ce_afk is now known as cescalante
<crucify_me>
just my entries, jrobeson nothing else at all.
<jrobeson>
what exactly are you typing in?
_dma has quit [Remote host closed the connection]
<crucify_me>
just a question about rails with a pastie link . jrobeson
<jrobeson>
no.. i mean to join the room
<sevenseacat>
are you in the right channel?
s3itz has joined #ruby
<jrobeson>
#rails isn't right. #rubyonrails is
johnnyfuchs has joined #ruby
johnnyfuchs has quit [Client Quit]
_dma has joined #ruby
capicue has quit [Quit: Leaving...]
<crucify_me>
yeah its my default channel ..that's how its listed jrobeson
dcunit3d has quit [Quit: dcunit3d]
<jrobeson>
hmm.. not sure what else could be causing it. perhaps Radar would have an idea
<crucify_me>
maybe radar got mad at me or something.
<jrobeson>
well it would tell you if you were banned
<jrobeson>
i didn't think irc had a concept of shadow banning
* sevenseacat
shrugs
<crucify_me>
it just says cannot connect or something. oh well.
<jrobeson>
cannot connect? never seen that before on irc
<crucify_me>
jrobeson: Error(404): #RubyOnRails Cannot send to channel
<jrobeson>
404 ?
julweber has joined #ruby
<sevenseacat>
register your nick, move on.
<crucify_me>
I had them both registered with a command I don't recall now.
<crucify_me>
anyway thanks
_dma has quit [Ping timeout: 248 seconds]
Shidash has quit [Read error: No route to host]
Shidash1 has joined #ruby
axl_ has joined #ruby
mayorga has quit [Ping timeout: 265 seconds]
carif has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has joined #ruby
julweber has quit [Ping timeout: 260 seconds]
capicue has joined #ruby
brennanMKE has joined #ruby
byprdct has joined #ruby
brennanM_ has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
Monie has joined #ruby
fuhgeddaboudit has joined #ruby
<jrobeson>
you made it crucify_me
Radar has joined #ruby
gyre007 has joined #ruby
dhruvasagar has joined #ruby
rezzack has quit [Quit: Leaving.]
smitjel has joined #ruby
ebetancourt has joined #ruby
brennanM_ has quit [Ping timeout: 240 seconds]
byprdct has quit [Ping timeout: 240 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
gyre007 has quit [Ping timeout: 260 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
chickenf_ has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
snakehsu has quit [Ping timeout: 248 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
lukec has joined #ruby
Jake232 has joined #ruby
pr0ggie has quit [Ping timeout: 246 seconds]
pdimitrov has quit [Ping timeout: 272 seconds]
pr0ggie has joined #ruby
ananthakumaran has joined #ruby
Volsus has joined #ruby
crucify_me has quit [Remote host closed the connection]
Akuma has joined #ruby
KobraKao has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
nateberkopec has quit [Quit: Leaving...]
`Chris` has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
`Chris` has joined #ruby
vpretzel has joined #ruby
carif has joined #ruby
smitjel has left #ruby [#ruby]
jeer_ has joined #ruby
halida_ has joined #ruby
pwh has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
nilved has quit [Read error: Operation timed out]
nilved has joined #ruby
<halida_>
Hello, I'm using ruby-2.0.0-p0 in my rails server, should I use 2.0.0-p247? thanks~
petey has joined #ruby
`Chris` has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
<|jemc|>
if you're asking if it will raise any rails-specific issues, try #rubyonrails
pdimitrov has joined #ruby
<|jemc|>
I'm not a rails user but I would guess you won't have any issues
vpretzel has quit [Ping timeout: 272 seconds]
<Radar>
halida_: You can use either version. It's recommended though that you use the latest patch releases that are available, as they do sometimes contain patches for security problems with Ruby.
<jrobeson>
halida_, generally keep up iwth the patch levels
sergicles has joined #ruby
<halida_>
I do concern about security issue, looks like I *should* update it, thanks~
fridim_ has quit [Ping timeout: 240 seconds]
<halida_>
Next release I will do the job, after I finish a regression test.
colonolGron has quit [Quit: leaving]
mary5030 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
cescalante is now known as ce_afk
mrsolo has joined #ruby
thepumpkin has joined #ruby
jcarouth has joined #ruby
nisstyre has joined #ruby
bklane has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 240 seconds]
astrobun_ has joined #ruby
Flashmasterson has joined #ruby
S0da has quit [Read error: Connection reset by peer]
<Radar>
[15:01:19] <Radar> If it still doesn't work, gist that file
<Radar>
Following instructions is hard. Let's go shopping.
<sevenseacat>
you arent defining the methods on the same object you're calling printing things o
<sevenseacat>
on
krz has joined #ruby
<Flashmasterson>
sevenseacat: i'm not sure i understand, you mean it's ticket = Object.new versus ticket.rb ?
sergicles has quit [Quit: sergicles]
<Flashmasterson>
sevenseacat: i'm very new to this stuff
<sevenseacat>
i know.
<sevenseacat>
in one set of code you defined a bunch of methods on an object, and then in the other code you created a new object and expected all those methods to be available.
mary5030 has quit [Remote host closed the connection]
jamblack has joined #ruby
<bnagy>
I would totally pay $5.50 to see Mark Twain
mary5030 has joined #ruby
fenec2 has quit [Ping timeout: 246 seconds]
<|jemc|>
only if he was playing his old stuff
<Radar>
Flashmasterson: show us ticket.rb please.
<Flashmasterson>
sevenseacat: ok i get that, so it's now a matter of me seeing how black is connecting the two in that section of the book
<bnagy>
|jemc|: yeah that shit with skrillex was lame
<Flashmasterson>
Radar: Flashmasterson
<Flashmasterson>
11:54
<Flashmasterson>
returning as This ticket is for: Author's reading, at Town Hall, on 01/02/03.///The performer is Mark Twain.///
<bnagy>
Flashmasterson: you need to read some very, very basic stuff and then come back
krzkrz has quit [Client Quit]
krz has joined #ruby
vpretzel_ has joined #ruby
<bnagy>
I think a lot of the ruby code in Zed Shaw's ruby the hard way is non-idiomatic, but at least it starts you at absolute zero
vpretzel has quit [Disconnected by services]
<bnagy>
or Learn to Program maybe
vpretzel_ is now known as vpretzel
<Flashmasterson>
bnagy: ok well i don't have money for more books right now
<Flashmasterson>
so maybe you can be nice
<bnagy>
both free afaik
<bnagy>
hardway is online
<Flashmasterson>
so what do you do here then?
<bnagy>
help those that help themselves?
<Flashmasterson>
buying this book and spending 10 days on chapter one isn't helping myself?
byprdct has joined #ruby
<bnagy>
for which I receive a handsome stipend and my name in the newpaper, plus an annual parade
<bnagy>
I don't know what book you've got
<bnagy>
but some stuff starts out with too much assumed knowledge
<Flashmasterson>
the well grounded rubyist
<|jemc|>
Flashmasterson: IRC as a whole is a pretty harsh and unforgiving place - the people in this channel are very patient and helpful by comparison. They've given you some good advice, and in exchange you've endured a little sarcasm but please try not to take it personally.
<jrobeson>
that's above your pay grade.
<Flashmasterson>
great. a lot of people from here recommended that i buy it as the best beginners book
<Flashmasterson>
and here i am, trying to take people's advice
<jrobeson>
a beginner who already knows the basics of coding i think
<jrobeson>
that is.. a ruby beginner.
dhruvasagar has quit [Ping timeout: 260 seconds]
peterhu has quit [Quit: leaving]
<byprdct>
Hello all. Question. If run someobject.public_methods and it provides me with a list of available methods to use on that object how do I can I figure out how to use each method for that object? (little documentation online for the methods)
<byprdct>
I*
peterhu has joined #ruby
earthquake has joined #ruby
<bnagy>
byprdct: afaik all you can use is show_source - you can get arity I think, but not really much more
<jrobeson>
byprdct, ri <Class::method> is one way to get the docs
<byprdct>
wow that kind of sucks
<|jemc|>
byprdct: a helpful console tool is ri
<bnagy>
cause we're pretty flexibly typed
carraroj has quit [Ping timeout: 272 seconds]
<byprdct>
ahh perfect thanks jrobeson
<jrobeson>
and on the console with pry you can get the docs IN the console byprdct
<byprdct>
thanks bnagy
<byprdct>
pry? is that like a pretty print?
<jrobeson>
not really
<jrobeson>
it's an irb replacement
kvirani has joined #ruby
<bnagy>
sorry I thought you meant programmatically :/
crucify_me has quit [Remote host closed the connection]
<byprdct>
ok looking into it now - thanks so much guys :)
<jrobeson>
Flashmasterson, it's hard for people to judge what people mean when tehy say they are beginners. when i first learned to code. i didn't just use one resource. i bounced around a lot
<jrobeson>
i think you will still find that book quite useful even if isn't your ONLY resource
tjad has quit [Quit: No Ping reply in 180 seconds.]
tjad has joined #ruby
<Flashmasterson>
alright well it's free so that's cool. thanks
ananthakumaran has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 260 seconds]
<byprdct>
just seen your post |jemc| thank you going to check it out
DanKnox is now known as DanKnox_away
Al_ has joined #ruby
<|jemc|>
yeah ri is basically a console-based browser for the documentation data generated by Rdoc
rahulkmr1 has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 246 seconds]
<bnagy>
gsub
rahulkmr1 has joined #ruby
<bnagy>
zipper: probably you forgot to put it in quotes
<rjhunter>
bnagy: I'd go the other way -- I'd prefer making sure the load path is set up properly (ideally, outside of code) and using plain `require`.
<mark06>
bnagy: sorry, actually regex is for case insensitive, so any way to delete do that?
rahulkmr1 has quit [Client Quit]
rahulkmr2 has joined #ruby
<mark06>
bnagy: gsub(/foo/, "") is so ugly you know :)
<bnagy>
mark06: I would use gsub /oo/i, ''
<rjhunter>
bnagy: I'd be interested to hear your opinion in more depth sometime
WillAmes has quit [Remote host closed the connection]
rahulkmr1 has joined #ruby
rahulkmr2 has quit [Read error: Connection reset by peer]
rahulkmr1 has quit [Read error: Connection reset by peer]
rahulkmr2 has joined #ruby
popl has joined #ruby
popl has joined #ruby
Nogbit has joined #ruby
<bnagy>
rjhunter: modifying an interpreter-wide global instead of using a require_relative, which has been introduced for that _exact reason_ is overkill and dangerous
<bnagy>
although the danger is unlikely to be a real-world issue - ie if they can pollute local dirs you have worse issues
freerobby has joined #ruby
WillAmes has joined #ruby
<bnagy>
and if you're loading relative stuff SO OFTEN then it should probably just be a gem anyway
<mark06>
bnagy: I think I'll give up on lowercase, it's a currency symbol, "R$", I think people don't usually type "r$"
rdark has joined #ruby
<mark06>
bnagy: and the string should not have more than one occurrence, so no problem crashing if so
rahulkmr has quit [Ping timeout: 260 seconds]
user258467 has joined #ruby
inrgnc has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
zeade has joined #ruby
zeade has quit [Client Quit]
rahulkmr2 has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Ping timeout: 272 seconds]
jamblack has quit [Quit: jamblack]
axl_ has quit [Quit: axl_]
tharindu has joined #ruby
ehaliewicz has joined #ruby
justsee has joined #ruby
jhw has joined #ruby
ahawkins has joined #ruby
ahawkins has left #ruby [#ruby]
fightback has joined #ruby
platypine has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
astrobunny has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
Shidash1 has joined #ruby
Shidash has quit [Quit: Leaving.]
<zipper>
Is initialize a private mathod by default?
<popl>
sevenseacat: it's probably ok if you're someone with add
<zipper>
bnagy: ha! I have a very funny thing to tell you.
<popl>
:)
brennanMKE has joined #ruby
<zipper>
You know what Swahili is? It's a language. A language that people speak.
Xeago has joined #ruby
<zipper>
The language has the word bangi which sounds similar to bnagy
fightback has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<popl>
bnagy is Swahili for "curmudgeon"
<zipper>
bnagy: Now ask me what bangi means
alup has joined #ruby
<sevenseacat>
lol popl
Advocation has quit [Quit: Advocation]
<zipper>
popl: do you know swahili
<zipper>
*?
vlad_starkov has quit [Ping timeout: 272 seconds]
snovak has quit [Ping timeout: 272 seconds]
<popl>
zipper: jambo means hello
banisterfiend has joined #ruby
<popl>
Does knowing a few words in Swahili mean that one knows Swahili?
<zipper>
Ok brb to tell you what that guy's name means and probably why he would hardly get through airports in parts of Africa without getting thoroughly searched.
brennanMKE has quit [Ping timeout: 272 seconds]
<zipper>
popl: ever been to Africa?
<zipper>
Where in Africa?
jamblack has joined #ruby
<popl>
I just read a lot about African cultures.
<popl>
I'm a nerd.
Volsus has joined #ruby
Soda has joined #ruby
<zipper>
popl: I'm Kenyan In Kenya All Kenyan.
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
jamblack has quit [Client Quit]
bcd87 has joined #ruby
WickedAtMelb has joined #ruby
<popl>
I had a roommate who was from Côte d'Ivoire.
<zipper>
popl: I doubt they speak Swahili though. It's an east and central african language.
rahulkmr has quit [Ping timeout: 240 seconds]
<zipper>
Anyway bangi means weed and I've been thinking about it ever since I joined this channel.
<popl>
I thought we were talking about our links to Africa. I did not suggest they spoke Swahili. :)
<popl>
They spoke French, really.
<popl>
And English of course.
<popl>
Very good English.
sayan has joined #ruby
<popl>
I knew someone once who spoke Xhosa. That's a neat language.
<zipper>
That is cool.
thesheff17 has joined #ruby
h_kon has quit [Remote host closed the connection]
capicue has joined #ruby
avril14th has joined #ruby
jbpros has joined #ruby
mklappstuhl has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 248 seconds]
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m00nligh_ has quit [Remote host closed the connection]
m00nlight has joined #ruby
jamblack has quit [Client Quit]
thepumpkin has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
jamblack has joined #ruby
freerobby has joined #ruby
Sharetel has joined #ruby
zenon3_ has joined #ruby
<Sharetel>
Hi, while starting Redmine, I am getting this error: /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query': Mysql2::Error: Unknown table engine 'InnoDB': SHOW CREATE TABLE `issue_relations` (ActiveRecord::StatementInvalid). Please can someone help me on this?
ephemerian has joined #ruby
julweber has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has joined #ruby
m00nlight has quit [Remote host closed the connection]
m00nlight has joined #ruby
jamblack has quit [Quit: jamblack]
astrobunny has joined #ruby
jamblack has joined #ruby
jbpros has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
jimmyy has joined #ruby
elaptics`away is now known as elaptics
jamblack has quit [Client Quit]
capicue has joined #ruby
jbpros has quit [Client Quit]
h_kon has quit [Remote host closed the connection]
shredding has joined #ruby
h_kon has joined #ruby
camilasan has joined #ruby
capicue has quit [Ping timeout: 252 seconds]
barratt has joined #ruby
monkegjinni has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
rjhunter has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Shidash has quit [Quit: Leaving.]
BizarreCake has quit [Ping timeout: 246 seconds]
snovak has joined #ruby
adeponte has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 241 seconds]
brennanMKE has joined #ruby
nathanieldavid has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
nathanieldavid has left #ruby [#ruby]
<zipper>
What is the relevance of the inspect method? Why not just use to_s?
<bnagy>
Vaibhav_Rajput: I'd check out grosser/parallel on github, that will do process pools for you
<bnagy>
zipper: they're different
tvw has joined #ruby
<bnagy>
inspect gives you the 'closest to internal' representation
astrobunny has joined #ruby
vpretzel has joined #ruby
* zipper
moves on to learning about fixnum
jhaals has joined #ruby
adambeynon has joined #ruby
brennanMKE has quit [Ping timeout: 265 seconds]
Anticom has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
<Vaibhav_Rajput>
bnagy, How it is efficient to use it?
claymore has joined #ruby
cpruitt has joined #ruby
<bnagy>
uh.. efficient?
helloworld has quit [Ping timeout: 245 seconds]
cpruitt has quit [Client Quit]
tvw has quit []
<Vaibhav_Rajput>
bnagy, for example I wanted to create 100 processes, at a time i can execute only 10 process if any of the processes among 10 complete its work or job is done then only it should create another process
<bnagy>
yeah, that's what the gem does
vpretzel has quit [Ping timeout: 265 seconds]
<bnagy>
you can also do it with threads, if you use jruby or rubinius
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shredding has quit [Quit: shredding]
justsee has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
capicue has joined #ruby
<Vaibhav_Rajput>
bnagy, I am really not getting it. Can you tell me how I can configure it for my problem?
coderhs has joined #ruby
coderhs has quit [Client Quit]
<bnagy>
the docs on the github are pretty clear, dude
<Vaibhav_Rajput>
bnagy, Dude, It is pretty easy. I understood now. Thanks man.
nateberkopec has joined #ruby
justsee has joined #ruby
<Vaibhav_Rajput>
bnagy, I am going with parallel.
<Vaibhav_Rajput>
grosser parallel.
monkegjinni has quit [Remote host closed the connection]
<bnagy>
I have used it a lot, seems to work pretty well.
workmad3 has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
<bnagy>
mainly use native java threadpools now
workmad3 has joined #ruby
hp_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
fightback has joined #ruby
fightback has quit [Max SendQ exceeded]
timonv has quit [Remote host closed the connection]
julweber has joined #ruby
timonv has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: No route to host]
Zai00 has joined #ruby
nomenkun has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
supreme__ has joined #ruby
<zipper>
uh what type is a word that starts with a colon?
<zipper>
e.g. array = [:peanut, :butter, :and, :jelly]
workmad3 has quit [Ping timeout: 265 seconds]
<sevenseacat>
a symbol?
<supreme__>
Hi, can someone help recommend a good and simple algorith for calculating tredning topics? say topic A has 10 hits but they all happend 60 minutes ago and there is topic B which has 8 hits but all happend in last 5 minutes, then topic B is "hotter/trendier"
<Senjai>
zipper: :peanut.class :P
timonv has joined #ruby
<supreme__>
but need to understand the time thing, alternatives and how it effects
shaunbaker has joined #ruby
<supreme__>
but should be simple no overkill
workmad3 has joined #ruby
<zipper>
Senjai: thanks
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zipper>
sevenseacat: thanks
shaunbak_ has joined #ruby
zigomir has joined #ruby
<supreme__>
I get the hits over real time (streaming)
<supreme__>
Senjai: nice book, thanks. but it did not include just this that I requested
<Senjai>
supreme__: Well, we can't exactly sit here and design an algorithm completely for you. Make an attempt, try, show your output, and give us an example of what your output should hope to look like
freerobby has joined #ruby
<Senjai>
popl: Some ebooks can be programmatically read :P
<Senjai>
popl: e.g. text to speech.
<Senjai>
heh
<zipper>
How can I get the index of an element after entering the element of the array? e.g array = [12, 11, 100] How can I enter 100 and get it's index?
shaunbaker has quit [Ping timeout: 260 seconds]
<bnagy>
supreme__: you want to weight recent hits more highly. Recent -> small number of seconds ( miliseconds whatever ) ago
relix has joined #ruby
xk_id has quit [Quit:
<bnagy>
supreme__: so look at ways to make small numbers big and big numbers small, eg 1/x or a_large_number -
<bnagy>
x
fixl has joined #ruby
<bnagy>
or, like a million other ways
<bnagy>
I imagine this is a well covered area on teh googlez
<zipper>
I mean if I didn't know what it's index was
ewnd9 has quit [Remote host closed the connection]
<Senjai>
bnagy: too awesome :P
workmad3 has joined #ruby
<supreme__>
bnagy: exactly. but what is this type of algorith called so I can read up on?
<supreme__>
I understand that I need a "rate"
<bnagy>
'arithmetic'
freerobby has quit [Ping timeout: 240 seconds]
<zipper>
bnagy: on point
<zipper>
bnagy: lol
jbpros has joined #ruby
ewnd9 has joined #ruby
<bnagy>
or like hits_last_minute + hits_last_five / 2 + hits_last_hour / 4 + ...
<bnagy>
I dunno
lembacon has quit [Remote host closed the connection]
<bnagy>
I'm just makin shit up off the top of my head
Alina-malina has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Quit: Leaving]
bluenemo has joined #ruby
jbpros has quit [Client Quit]
Jetchisel has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
<Senjai>
You could even do a weighted proporiton, e.g. 20% of the weight from total hits, 40% of weight from hits in the last hour, 20% from number of commnets, 20% of weights from the last 10 minutes
<Senjai>
and order by the weight :)
Azulinho has joined #ruby
klaut has joined #ruby
<Senjai>
again, making shit up :p
workmad3 has joined #ruby
capicue has joined #ruby
havenwood has quit [Remote host closed the connection]
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
gyre007 has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
gyre007 has joined #ruby
sr78ger has joined #ruby
<supreme__>
Senjai: ye I could just make shit up but I rather use a standard algorith
gyre007 has quit [Read error: Operation timed out]
<supreme__>
m
<Senjai>
supreme__: It's subjective. So there is no "right" answer
sr78ger has quit [Max SendQ exceeded]
<supreme__>
Senjai: I know, the algoriths does not "work" either
<Senjai>
supreme__: huh?
<supreme__>
what I mean is
sr78ger has joined #ruby
<supreme__>
tredning topics can never be correct or wrong as you say
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
decoponio has joined #ruby
<supreme__>
right?
<Senjai>
Supposedly.
<supreme__>
:)
<bnagy>
yeah that weights
snovak has quit [Ping timeout: 256 seconds]
brennanMKE has joined #ruby
<supreme__>
cool
<supreme__>
then I can study that code
<supreme__>
not much code
<supreme__>
that is what I mean with simple
adeponte has quit [Ping timeout: 252 seconds]
<bnagy>
copying something == simple. OK, I understand.
zarubin has joined #ruby
<supreme__>
haha nah nah
<Senjai>
bnagy: Made me lol
<supreme__>
I will use ruby so no copy paste
<supreme__>
but now I can read on wiki about "ma" and "mv"
<Senjai>
supreme__: That is just a moving average calculation, thats not an algorithm for trending topics
<supreme__>
and look at code implementation to understand and write my own
<Senjai>
supreme__: converting that to ruby would take what, a minute?
gyre007 has joined #ruby
<supreme__>
Senjai: what is missing then?
<supreme__>
I got a stream of data coming in for topics
<supreme__>
using this algo
<supreme__>
plotting on a graph
<supreme__>
should be enough for most popular at "time" given a MA value
<bnagy>
right, beerz
byprdct has joined #ruby
<supreme__>
MA uses to "smooth" it out, right?
boxmein has joined #ruby
hp_ has quit [Ping timeout: 246 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
vpretzel has joined #ruby
<Senjai>
supreme__: I feel like you should actually learn what you're talking about. copy and pasting code snippits only go so far, and that will not by itself satiate what would be a modern trending algorithm
<supreme__>
Senjai: who ever said I would copy and paste that code and use it, stop assuming things.
<Senjai>
like you say 'x' is too complicated for me. Well x might be the right solution, the fact you say its complicated just means "I don't get it and I don't want to figure it out"
<supreme__>
neither you or I come up with these algorithms
<supreme__>
probaly some greek guy 300 years ago, my job is to find what ways there is, weight them and use one that is good for my case
<supreme__>
it's not to complicated for ME per se, just for this given situation
<supreme__>
Senjai: I have never said that, you assume that, and it's wrong
<Senjai>
supreme__: Okay, tell me how it is too complicated for this situation
Azulinho has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
<supreme__>
I don't want to use something big like Storm for htis
<supreme__>
I will either use nodejs with websockets or eventmachine
<supreme__>
with websockets aswell..
<supreme__>
and use some algo for smoothen the hits out over time
<supreme__>
and plot on a graphg
<supreme__>
that is my use case
<Senjai>
supreme__: Uhm, you dont need to use storm. You can impliment that in any language.
<supreme__>
setting up a machine using storm etc just for this, is not worth my time to invest etc
<supreme__>
Senjai: storm is a computation system that does 100 things, I want to make 1 thing, why build 99 things I don't need?
Jabberish has quit [Remote host closed the connection]
<zipper>
Ruby has these data structures I never heard of called ranges. This is weird.
<supreme__>
that is not to say it's to difficult, it's just more complex then it needs to be
<supreme__>
for the given situation
vpretzel has quit [Ping timeout: 272 seconds]
<supreme__>
have to eat now :) back later, I appriciate the discussion
boxmein has left #ruby ["[00:12.05] <\m> An into-solid turner"]
_5kg has quit [Read error: Connection reset by peer]
<zipper>
Ruby has these data structures I never heard of called ranges. This is weird.
m00nlight has quit [Remote host closed the connection]
_5kg has joined #ruby
<Senjai>
zipper: Not really. (1..5) is a range from 1 to 5 inclusive
capicue has joined #ruby
<Senjai>
(1..5).to_a produces [1,2,3,4,5]
drumusician has joined #ruby
<zipper>
Senjai: so what's the use of a range?
caveat- has quit [Ping timeout: 264 seconds]
<zipper>
To make it easier for one to come up with an array?
<Senjai>
zipper: (1..5).each {|x| print x},
<Senjai>
or check if a number is within a range
Jabberish has joined #ruby
<zipper>
or with a range of values?
<Senjai>
e.g. if 1 <= x <= 50
dangerousdave has quit [Read error: Connection reset by peer]
jimmyy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dzhulk1 has quit [Ping timeout: 248 seconds]
sevenseacat has joined #ruby
h_kon has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
capicue has quit [Ping timeout: 246 seconds]
weirdpercent has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
amacgregor_ has joined #ruby
xk_id has quit [Quit:
Azulinho_ has joined #ruby
xk_id has joined #ruby
habanany has joined #ruby
snovak has joined #ruby
ChronocityLC has quit [Ping timeout: 252 seconds]
habanany has quit [Client Quit]
osvico has quit [Ping timeout: 256 seconds]
Beoran__ has joined #ruby
Hobogrammer_ has joined #ruby
ItSANg___ has joined #ruby
xk_id has quit [Client Quit]
<weirdpercent>
I have a string "Session Date: March 23rd 2013Lxxxx, Axx, Bxxxxxxxx, Pxxxxxxx, Axxxxxxxx, Pxx, Axxxx, Dxxx, Kxxxxx, Mxxxxxxxx", I want to use a regex to match where 2013 and Lxxxxx meet but I don't know how to phrase it
Azulinho has quit [Ping timeout: 265 seconds]
AlSquire has joined #ruby
ItSANgo_ has quit [Ping timeout: 260 seconds]
helperW has quit [Ping timeout: 240 seconds]
vipjun has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
Hobogrammer has quit [Ping timeout: 260 seconds]
rahulkmr has joined #ruby
xk_id has joined #ruby
snovak has quit [Ping timeout: 252 seconds]
bcd87 has quit [Ping timeout: 250 seconds]
fightback has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
h_kon has joined #ruby
osvico has joined #ruby
ChronocityLC has joined #ruby
pdimitrov has quit [Read error: Operation timed out]
robbyoconnor has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
pdimitrov has joined #ruby
xk_id has quit [Client Quit]
julweber has joined #ruby
asobrasil has joined #ruby
Banistergalaxy has joined #ruby
xk_id has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
ChronocityLC has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
vpretzel has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
osvico has quit [Ping timeout: 272 seconds]
<_br_>
weirdpercent: Not sure what you want to do. You mean this ? /Session Date: .+ [0-9]+[a-z]+ 20[0-9]+/
kreeves has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
bcd87 has joined #ruby
<_br_>
try rubular, helpful for learning a bit about regex.
includex has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`Chris` has quit [Remote host closed the connection]
armanm has joined #ruby
`Chris` has joined #ruby
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
Criztian has quit [Remote host closed the connection]
zipper is now known as a_female_on_the_
a_female_on_the_ is now known as a_female_on_chan
a_female_on_chan is now known as female_on_channe
vpretzel has quit [Ping timeout: 272 seconds]
lanastasov has quit [Quit: Page closed]
female_on_channe is now known as I_am_female
Luka_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 265 seconds]
jbpros has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
platypine has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
aagdbl has quit [Ping timeout: 248 seconds]
xk_id has quit [Quit:
crunchy_crow has quit [Quit: Leaving]
jbpros has joined #ruby
capicue has joined #ruby
mansi has joined #ruby
stringoO has joined #ruby
nateberkopec has joined #ruby
t_p has joined #ruby
asphx has joined #ruby
aagdbl has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
capicue has quit [Ping timeout: 248 seconds]
tharindu has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
kil0byte has joined #ruby
sailias has joined #ruby
<gnul0ver>
hello
hogeo has quit [Ping timeout: 248 seconds]
<gnul0ver>
fellow rubist
<gnul0ver>
rubyist
vlad_starkov has joined #ruby
enebo has quit [Quit: enebo]
<hoelzro>
ahoy
h_kon has quit [Remote host closed the connection]
<gnul0ver>
So does anyone in here make any money with Ruby"
<gnul0ver>
?
lucazi_ has quit [Ping timeout: 260 seconds]
<armanm>
gnul0ver: what up?
jbpros has joined #ruby
<gnul0ver>
sup
Vaibhav_Rajput has quit [Quit: Leaving]
<armanm>
gnul0ver: lots of money to be made. Depends on the idea
<gnul0ver>
facebook
Vaibhav_Rajput has joined #ruby
<gnul0ver>
facebook was on ruby
<gnul0ver>
at one time
lembacon has quit [Remote host closed the connection]
<I_am_female>
gnul0ver: when was that?
<I_am_female>
I think you're lying.
Mothore has quit [Quit: Computer has gone to sleep.]
<_br_>
Facebook? No, php.
<armanm>
I don't think it was ever on Ruby. Ruby wasn't that great then
<armanm>
_br_ agreed
<gnul0ver>
witter is built on Ruby on Rails
<gnul0ver>
facebook uses PHP primarily, but also relies on "C++, Java, Python and Erlang"
<lupine>
facebook was php
<lupine>
twitter was ruby
Mothore has joined #ruby
<gnul0ver>
well there writer component was built on ruby on rails.
freerobby has joined #ruby
adeponte has joined #ruby
<_br_>
Doesn't really matter anyway. Good companies will rely on a variety of languages and tools.
tharindu has quit [Quit: Leaving...]
<weirdpercent>
I have a string "23rd 2013Lxxxx," and I want to insert a newline between the 2013 and Lxxxx, how do I phrase the regex in the gsub?
<gnul0ver>
i think they use Java
<gnul0ver>
now
h_kon has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jbpros has quit [Ping timeout: 240 seconds]
<armanm>
gnul0ver: where are you going with this?
includex has joined #ruby
<_br_>
weirdpercent: I already postet that for you.
<gnul0ver>
i was just wondering what language did facebook used if it was ror
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<_br_>
ror is just a framework.
<gnul0ver>
i know
<gnul0ver>
just like .net
<weirdpercent>
_br_ I saw that regex did match, but HOW do you insert a newline, what is the operator that signifies between \d\d\d\d & \w+?
<maasha>
_br_: thought, I think that since this is small test code a debugger would be overkill. I am failing something mentally
<weirdpercent>
_br_ but the data matches a pattern, maybe what I want to do can't be done with regex. gsub isn't what I need, I need to replace that section of the string with a duplicate containing a newline there
<gnul0ver>
maasha: try to unit test mode
<gnul0ver>
class
armanm has quit [Remote host closed the connection]
pleal has joined #ruby
nvrch has joined #ruby
kil0byte has joined #ruby
pleal has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
<Hanmac>
hm i think Enumerable is one of the most useful ones ;P
<weirdpercent>
Enumerable is bread and butter
pleal has joined #ruby
<gnul0ver>
yup
justsee has quit [Ping timeout: 272 seconds]
d4heyDU has joined #ruby
Soda has joined #ruby
oz has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<_br_>
maasha: I'm not quite sure what this exercise of "Inception" style Mixins is supposed to do, hence my Pry debugger comment.
<gnul0ver>
syntactical sugar.
nilved has quit [Quit: leaving]
nilved has joined #ruby
<cout>
inception-style?
<cout>
(I never saw the movie so I have no clue what that means)
<maasha>
_br_: I have a toolbox of modules and classes that I would like to be able to include with a simple "require 'toolbox'". However, namespace should be provided - and will need to be able to do mixins.
<gnul0ver>
If you use Ruby On Rails there is a technique to prevent crackers from using the sq-injection method on your website.
julweber has quit [Ping timeout: 272 seconds]
jcromartie has joined #ruby
cads has quit [Ping timeout: 260 seconds]
oz has joined #ruby
_HolyCow1 has joined #ruby
<gnul0ver>
_br_: are you talking about Modules ?
<gnul0ver>
Mixing classes with Modules
vjt has quit [Remote host closed the connection]
vjt has joined #ruby
tiglog has joined #ruby
<gnul0ver>
maasha: name your modules with different name spaces to avoid a name space collision.
capicue has joined #ruby
_HolyCow has quit [Ping timeout: 245 seconds]
<gnul0ver>
A.namespace
<gnul0ver>
B.namespace
<_br_>
weirdpercent: You mean something like this ? "Session Date: March 23rd 2013Lxxxx, Axx, Bxxxxxxxx, Pxxxxxxx, Axxxxxxxx, Pxx, Axxxx, Dxxx, Kxxxxx, Mxxxxxxxx".gsub( /Session Date: .+ [0-9]+[a-z]+ 20[0-9]+/ ) { "#{$&} | " }
<maasha>
gnul0ver: so I want one module to be my working namespace. And then a couple of embedded modules for mixins.
xk_id has quit [Quit:
<Hanmac>
there is also some funny parameter for Kernel#load ;D
danshultz has joined #ruby
<gnul0ver>
Yes You should declare the module on the top before you start including class.
<Hanmac>
shevy: did you know the difference between load "path" and load "path", true ? ;P
<weirdpercent>
_br_ yes, that question mark is that part of the line?
Xeago has joined #ruby
tboerger has quit [Read error: Operation timed out]
<_br_>
you confuse me.
<_br_>
Just open irb or pry or whatever and play with it, its not that hard.
<weirdpercent>
"like this ?" that question mark ok thank you very much
<_br_>
Its the old form. Rubyists often jump around with ruby vm's hence env is easier to maintain.
Jabberish has quit [Read error: Connection reset by peer]
<maasha>
:o)
<Hanmac>
I_am_female &maasha: the reason: "#!/usr/bin/ruby" does not work with rvm, rbenv, or self compiled ruby … so when you do "ruby script.rb" and "./script.rb" it runs in different rubies because env uses the $PATH variable
helloworld has joined #ruby
<maasha>
hanmac: exactly
snovak has joined #ruby
justsee has joined #ruby
<d4heyDU>
is there a short way to make [:a, :b, :c], this turns it into a string array
<maasha>
its not a keyword but a method on Object?
ebetancourt has joined #ruby
<maasha>
hm, no?
<Hanmac>
maasha: hm no prepend if defined in module, i think you miss interpret it with extend … (and PS: include is not a keyword, iven if vi thinks that)
bluenemo has quit [Remote host closed the connection]
<maasha>
hanmac: Oh. wow.
sbos99 has joined #ruby
<poseid>
hanmac, cool, thanks
<maasha>
hanmac: thanks. now I can safely say its beer oclock :o)
_HolyCow1 is now known as _HolyCow
maasha has quit [Quit: Page closed]
thesheff17 has joined #ruby
asphx has quit [Quit: leaving]
nilved has joined #ruby
ewnd9 has joined #ruby
ffranz has joined #ruby
jonathanwallace2 has joined #ruby
kvirani has joined #ruby
Guedes has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
SeySayux has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jonathanwallace1 has quit [Ping timeout: 252 seconds]
fredjean has quit [Quit: Computer has gone to sleep.]
IceDragon has joined #ruby
ehc has joined #ruby
Elhu has joined #ruby
vpretzel has joined #ruby
cads has joined #ruby
bcd87 has quit [Quit: Page closed]
Amnesia has joined #ruby
<Hanmac>
good that i didnt tell him how prepend, include, extend works when its done on both the class and the singleton_class of the object of the class ,P
<Amnesia>
does anyone over here know a good source which explains how the ruby interpreter works under the hood?
carif has quit [Quit: Ex-Chat]
<Banistergalaxy>
Amnesia yep
BizarreCake has joined #ruby
<Banistergalaxy>
Google "Ruby under the microscope"
<Amnesia>
Banistergalaxy: ty
Clooth has joined #ruby
<Amnesia>
Banistergalaxy: people keep talking 'bout "the ruby VM" but in my understanding /usr/bin/ruby is just a binary that translated source code to machine code^^
eject_ck has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
<eject_ck>
Hi all
Mothore has joined #ruby
mark_locklear has quit [Quit: Leaving]
robbyoconnor has joined #ruby
jerius has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
<Banistergalaxy>
Amnesia then you need to read that book ;)
julian-delphiki has joined #ruby
svector has joined #ruby
<Amnesia>
hm, 360 pages is quite a lot though:P
inrgnc has quit []
Hanmac has quit [Quit: Leaving.]
KobraKao has joined #ruby
kil0byte has joined #ruby
tomzx_mac has joined #ruby
douglarek_ has joined #ruby
tyleretters has joined #ruby
Mon_Ouie has joined #ruby
douglarek_ has left #ruby [#ruby]
<lupine>
Amnesia, it needs at least that many pages to fix your misconceptions
`Chris` has quit [Read error: Connection reset by peer]
fntzr has quit [Read error: Operation timed out]
delasteve has joined #ruby
`Chris` has joined #ruby
delasteve has quit [Changing host]
delasteve has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<mojjojo>
thanks
soba_ has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
otwieracz has left #ruby [#ruby]
amritanshu_RnD has quit [Quit: Leaving]
KobraKao has quit [Quit: Leaving]
jamblack has quit [Quit: jamblack]
colonolGron has quit [Read error: Connection reset by peer]
_maes_ has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
<_br_>
I have a chain of modals with prev, next and cancel buttons. How can I detect if a modal is just closing because its opening a new modal or closing because the user clicked on the background ? Event wise its always hide, hidden right?
<_br_>
ups wrong channel, sorry
Methylated has quit [Quit: Leaving.]
colonolGron has joined #ruby
Methylated has joined #ruby
<mojjojo>
in ruby class everythin is inherited from superclass including attr_accessors and initialize method?
capncrunch4me has joined #ruby
zz_tsykoduk has joined #ruby
<capncrunch4me>
why would I be getting errors if I run a ruby script from cron vs by hand?
<capncrunch4me>
getting: `require': cannot load such file -- memcached (LoadError)
Clooth has joined #ruby
<sweeper>
mojjojo: yep
<sweeper>
mojjojo: but you can override all the things, as well as call super
<volty>
capncrunch4me: because of the difference of load path
rurban has quit [Read error: Connection reset by peer]
jamblack has joined #ruby
<capncrunch4me>
what is a resolution here?
<sweeper>
capncrunch4me: bundle install most likely
<sweeper>
ohwait, I read back
havenwood has joined #ruby
KobraKao has joined #ruby
jamblack has quit [Client Quit]
<capncrunch4me>
so that isn't the solution?
<sweeper>
if you're running from cron, you maybe be using a different ruby/env
<volty>
solution is to 1) fix root env RUBYLIB 2) explicit path
<mojjojo>
and how do I call the function in the same class defined as def func , is it func() ?
yfeldblum has quit [Remote host closed the connection]
<sweeper>
mojjojo: yes
<capncrunch4me>
how would I tell?
Methylated has quit [Ping timeout: 260 seconds]
<volty>
google for setting env variables with bash
<mojjojo>
thanks
mengu has quit [Remote host closed the connection]
<volty>
(probably /etc/profile, ~/.bash_profile -- or similar
<capncrunch4me>
we used rvm plus the memcached gem
<volty>
first of all you should determine the privileges needed to run that cron
thedonvaughn has quit [Ping timeout: 272 seconds]
<volty>
(not always have to be root -- it depends on what you access, what you run etc etc )
fntzr has joined #ruby
Bira has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
fntzr has joined #ruby
momomomomo has joined #ruby
gustavn has joined #ruby
gustavn has quit [Client Quit]
boxmein has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
Underbyte has joined #ruby
MrZYX|off is now known as MrZYX
thedonvaughn has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
tharindu has joined #ruby
yfeldblum has joined #ruby
soba has joined #ruby
hashpuppy has joined #ruby
axl_ has quit [Quit: axl_]
ghr has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
IceDragon has quit [Read error: Connection reset by peer]
volty has left #ruby ["Konversation terminated!"]
capicue has joined #ruby
alse has joined #ruby
jalcine_ is now known as jalcine
mrsolo has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
endash has joined #ruby
Es0teric has quit [Ping timeout: 252 seconds]
<capncrunch4me>
tried export ruby path
<capncrunch4me>
no dice
maletor has joined #ruby
jprovazn has quit [Quit: Odcházím]
capicue has quit [Ping timeout: 256 seconds]
tylersmith has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
soba has quit [Ping timeout: 272 seconds]
<capncrunch4me>
set path to /usr/local/rvm/gems/ruby-1.9.3-p448 still can't find it
<capncrunch4me>
grr, frustrating
momomomomo has joined #ruby
jonathanwallace3 has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
Banistergalaxy has quit [Ping timeout: 265 seconds]
<havenwood>
jonathancutrell: usually you use backticks (%x) when you care about the result
<jonathancutrell>
havenwood: Makes sense.
<jonathancutrell>
havenwood: Thank you.
<havenwood>
jonathancutrell: guess you could do it manually with exec: pid = fork { exec('osascript', '-e', 'display dialog "Question to get answers from" buttons {"No", "Yes"}') }; Process.wait pid
<havenwood>
jonathancutrell: or maybe look at IO.popen
gregorg has joined #ruby
dash_ has quit [Client Quit]
sailias has joined #ruby
<havenwood>
^ exec is verbose of course, but should work
d2dchat_ has joined #ruby
peregrine81 has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
mansi has joined #ruby
cpruitt has joined #ruby
momomomomo has quit [Quit: momomomomo]
SilverKey has quit [Remote host closed the connection]
ebetancourt has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
mj12albe_ has joined #ruby
nouitfvf_ has quit []
mj12albe_ has quit [Max SendQ exceeded]
mneorr has joined #ruby
alex__c2022 has joined #ruby
bamdad has joined #ruby
threesome has joined #ruby
ph88 has joined #ruby
aspires has joined #ruby
<ph88>
anyone experience with phusion passenger here ?
dhruvasagar has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 246 seconds]
tommylommykins has joined #ruby
fntzr has quit [Ping timeout: 248 seconds]
julweber has quit [Remote host closed the connection]
<micho>
hello. Is there any reason, about which I have no idea, why it: http://pastebin.com/WfB8eucs doesn't work?
<micho>
I use datamapper (on #datamapper I got no reply)
timonv has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
jonathancutrell has left #ruby [#ruby]
tyleretters_ has joined #ruby
apeiros has joined #ruby
camilasan has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
gregorg has joined #ruby
heftig has quit [Quit: Quitting]
CaptainJet has joined #ruby
perplexa has joined #ruby
tyleretters has quit [Ping timeout: 260 seconds]
tyleretters_ is now known as tyleretters
mj12albert has joined #ruby
Banistergalaxy has quit [Quit: Bye]
Jake232 has quit [Ping timeout: 245 seconds]
noname001 has quit [Ping timeout: 260 seconds]
<perplexa>
hi, when i have a class 'x' with 2 dicts 'a' and 'b' and i have a variable 'c' that holds either a or b, can i somehow access x.a or x.b depending on what's in c without using if/else? something like x.eval(c)?
timonv has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
Tuxist has joined #ruby
petey__ has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nik_-_ has quit [Quit: nik_-_]
xk_id has joined #ruby
nari has quit [Ping timeout: 246 seconds]
krz has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 272 seconds]
<apeiros>
perplexa: I assume you mean *object*, not *class* and I assume you mean you have 2 methods, 'a' and 'b'
zeade has joined #ruby
<perplexa>
i have attr_accessors.
<apeiros>
perplexa: if so then see Object#send. c = 'a'; x.send(c)
okinomo has quit [Ping timeout: 265 seconds]
relix has joined #ruby
<apeiros>
attr_accessors are methods
<perplexa>
i know :P
<perplexa>
i just wanted to keep the question short
<apeiros>
then why did you say it?
heftig has joined #ruby
<perplexa>
because you're taking the piss about terminology despite understanding perfectly fine what i'm asking :)
tiglog has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 245 seconds]
<apeiros>
perplexa: ok, next time I'll just ignore you.
<perplexa>
thx tho :P
petey_ has quit [Ping timeout: 260 seconds]
<apeiros>
if it's too much of a bother for you to use correct terminology then I'm not interested in even trying to help you.
<perplexa>
like if i didn't know an object is an instance of a class? ;p
<perplexa>
so i'm not allowed to refer to the class itself? :)
<apeiros>
perplexa: not all objects are classes
<perplexa>
nvm, this is stupid
<apeiros>
your question made no sense the way you asked it.
drumsrgr_ has quit [Ping timeout: 240 seconds]
<perplexa>
but you got it?
mercwithamouth has quit [Ping timeout: 260 seconds]
<perplexa>
pretty sure it could have been worse
<perplexa>
anyways, thanks for helping
<apeiros>
yes, keep orienting yourself towards how you could do it even worse
<apeiros>
seriously, wtf is wrong with you?
mercwithamouth has joined #ruby
<apeiros>
you get told the right terminology, you get help, and you're acting like an ass about it.
gregorg has joined #ruby
<apeiros>
learn the f'ing terminology and use it.
<perplexa>
i said thanks, f*ckwit
<perplexa>
let it be
<perplexa>
ignore me, be done
momomomomo has joined #ruby
<perplexa>
i'll do the same, have a nice evening
jalcine_ is now known as jalcine
brian__ has joined #ruby
micho has quit [Quit: Leaving]
perplexa was kicked from #ruby by apeiros [no insults]
DrShoggoth has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
jbpros has quit [Quit: jbpros]
iamjarvo has quit [Ping timeout: 272 seconds]
Banistergalaxy has joined #ruby
newbiehacker has quit [Ping timeout: 240 seconds]
<apeiros>
what an ass.
bamdad has quit [Quit: bamdad]
whunt has joined #ruby
aganov has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
whunt has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 272 seconds]
petey_ has joined #ruby
wildroman has joined #ruby
gregorg has quit [Ping timeout: 272 seconds]
<havenwood>
ph88: Some, what's your Passenger question?
petey__ has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Remote host closed the connection]
<havenwood>
micho, oh he left
<havenwood>
well, it was of course `user` the method each time being a different instance of User
tylersmith has joined #ruby
_bart has joined #ruby
<sweeper>
obviously a python user
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
petey_ has quit [Read error: Connection reset by peer]
kevinykchan has quit [Quit: Computer has gone to sleep.]
soba_ has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Quit: Leaving.]
barratt has quit [Ping timeout: 260 seconds]
soba__ has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
apeiros has joined #ruby
jrhorn424 is now known as zz_jrhorn424
bnagy has quit [Ping timeout: 240 seconds]
Guest19745 has quit [Remote host closed the connection]
Nogbit has joined #ruby
mercwithamouth has joined #ruby
bamdad has joined #ruby
b00stfr3ak has joined #ruby
Methylated has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 246 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
brtdv has joined #ruby
larissa has joined #ruby
xk_id has quit [Quit:
drumsrgr8forn8 has joined #ruby
pothibo has joined #ruby
Monie has joined #ruby
c0rn has joined #ruby
lucazi has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 248 seconds]
drumsrgr_ has joined #ruby
bamdad has quit [Client Quit]
Hanmac has joined #ruby
jamblack has joined #ruby
heidi has joined #ruby
eject_ck has joined #ruby
lukec has joined #ruby
hiall has quit [Ping timeout: 240 seconds]
drumsrgr8forn8 has quit [Ping timeout: 245 seconds]
jaimef has quit [Excess Flood]
snovak_ has joined #ruby
KobraKao has quit [Quit: Leaving]
tatsuya_o has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
banisterfiend has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
zenon3_ has quit [Ping timeout: 250 seconds]
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
Clooth has quit [Quit: Leaving...]
xk_id has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
petey_ has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
petey_ has joined #ruby
petey_ has quit [Remote host closed the connection]
thepumpkin has joined #ruby
astrobun_ has quit [Ping timeout: 268 seconds]
petey_ has joined #ruby
burlyscudd has joined #ruby
fenec2 has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
jaimef has joined #ruby
lnormous has joined #ruby
fedalto has joined #ruby
peregrine81 has quit []
okinomo has joined #ruby
julweber has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 248 seconds]
astrobunny has joined #ruby
Liquid-- has joined #ruby
theRoUS has joined #ruby
jalcine is now known as jalcine_
mercwithamouth has quit [Ping timeout: 265 seconds]
yvemath has quit [Read error: Connection reset by peer]
yvemath has joined #ruby
saarinen has joined #ruby
zarubin has quit [Ping timeout: 256 seconds]
johnnyfuchs has joined #ruby
Renich has joined #ruby
lsmola has joined #ruby
<Renich>
hello
<MrZYX>
hi
<Renich>
I want to write a little command line tool; to consume an API
<Renich>
that said, I like MVC and I think it could be applicable but I don't want to over complicate
<Renich>
any recommendations?
delasteve has joined #ruby
delasteve has joined #ruby
delasteve has quit [Changing host]
Notte has quit [Remote host closed the connection]
<wuest>
Renich: MVC for a little cli tool? Sounds overcomplicated.
<MrZYX>
mvc is a design pattern, it's just often misused as an architecture pattern
Notte has joined #ruby
<Renich>
wuest: yeah, but I don't want to have a kilometric file; I'd like to have things separated
<wuest>
Separation != mvc
<MrZYX>
^
<Renich>
since there are a ton of possibilities to the API I am to consume.
aspires has quit [Quit: sudo making a sandwich]
<Renich>
wuest: yes; I agree. I just mentioned it to add context.
sbos99 has joined #ruby
<Renich>
any recommendations?
<wuest>
My recommendation, if you're thinking a lot about architecture, layout, &c? Go read Design Patterns in Ruby. It's got lots of information on A: how to think about design patterns from GoF, and B: how that thinking translates in an idiomatic way into the Ruby world
kaspergrubbe has joined #ruby
<wuest>
If purchasing a book isn't in the cards, go look at how other cli applications tend to be laid out. Experiment. Find ways that work and make sense to you.
<Renich>
wuest: thanks, I will
aspires has joined #ruby
capicue has joined #ruby
einarj has quit [Remote host closed the connection]
snovak_ has quit [Remote host closed the connection]
soheil has quit []
Notte has quit [Ping timeout: 252 seconds]
soheil has joined #ruby
snovak has joined #ruby
<Renich>
wuest: is it still relevant; the book? It's 2007
CaptainJet has quit [Read error: Connection reset by peer]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kh019267 has joined #ruby
snovak_ has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
niklasb has quit [Read error: Operation timed out]
pencilcheck has quit [Remote host closed the connection]
ssvo has joined #ruby
Squarepy has quit [Quit: Leaving]
ssvo_ has quit [Ping timeout: 252 seconds]
gja has quit [Client Quit]
Methylated has joined #ruby
okinomo has quit [Ping timeout: 260 seconds]
FukUmist has joined #ruby
failshell has quit [Remote host closed the connection]
<FukUmist>
help?
pushpak has joined #ruby
Zai00 has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
carif has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Remote host closed the connection]
attomos has quit [Quit: leaving]
maletor has quit [Quit: Computer has gone to sleep.]
failshell has joined #ruby
Lewix_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
ebetancourt has joined #ruby
maletor has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
c0rn_ has joined #ruby
zeropx has quit [Quit: zeropx]
c0rn has quit [Ping timeout: 246 seconds]
zeropx has joined #ruby
wildroman has joined #ruby
gyre007 has joined #ruby
Mon_Ouie has joined #ruby
dzhulk has joined #ruby
failshell has quit [Remote host closed the connection]
tharindu has quit [Quit: Leaving...]
choppy has joined #ruby
<havenwood>
FukUmist: Welcome to #ruby. Can i place your order?
weirdpercent has quit [Quit: Leaving]
zeropx has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
iamjarvo has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
burlyscudd has joined #ruby
iamjarvo has joined #ruby
mansi has joined #ruby
whunt has joined #ruby
zeropx has joined #ruby
brtdv has quit []
jamblack has quit [Quit: jamblack]
nisstyre has quit [Ping timeout: 272 seconds]
freerobby has quit [Read error: Connection reset by peer]
<Akuma>
hello, I'm encountering some issues with substrings and encoding. For some reason the encoding of the substring becomes CP850 while the original string is UTF-8
kevinykchan has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
<Akuma>
when I try to encode he substring by doing x = y[0,5].encode('UTF-8') I get an error saying that utf8 and cp850 are not compatible
kevinykchan has quit [Client Quit]
kevinykchan has joined #ruby
jerius_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
jerius has quit [Ping timeout: 248 seconds]
Underbyte has quit [Quit: Leaving...]
theoretick has joined #ruby
arietis has joined #ruby
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
Spami has quit [Read error: Connection timed out]
marcdel has joined #ruby
tharindu has joined #ruby
Spami has joined #ruby
iamjarvo has joined #ruby
mudmaster has quit [Remote host closed the connection]
mudmaster has joined #ruby
freerobby has joined #ruby
carif has joined #ruby
wildroman has quit [Remote host closed the connection]
zeropx has quit [Quit: zeropx]
mercwithamouth has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
gr33n7007h has joined #ruby
choobie has left #ruby [#ruby]
brian__ has quit [Quit: Leaving]
zarul has joined #ruby
Notte has joined #ruby
burlyscudd has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
mneorr has quit [Ping timeout: 268 seconds]
RicFlair has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
gyre007 has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
zeropx has joined #ruby
nadirvardar has joined #ruby
kil0byte has joined #ruby
Al_ has quit [Quit: Al_]
mneorr has joined #ruby
mercwithamouth has joined #ruby
breakingthings has quit []
snovak__ has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
snovak has joined #ruby
asteros has joined #ruby
brennanMKE has joined #ruby
choobie has joined #ruby
niklasb has joined #ruby
kirun has joined #ruby
zipper has joined #ruby
<apeiros>
Akuma: you're saying that y.encoding == Encoding::UTF_8 and y[0,5].encoding != Encoding::UTF_8?
heftig has quit [Quit: Quitting]
Ripp__ has quit []
k610 has joined #ruby
FukUmist has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
rahulkmr has joined #ruby
pdimitrov has quit [Ping timeout: 272 seconds]
pr0ggie has quit [Ping timeout: 272 seconds]
rdark has quit [Quit: leaving]
pr0ggie has joined #ruby
pdimitrov has joined #ruby
Shidash has joined #ruby
_if has joined #ruby
barratt has joined #ruby
carif has quit [Quit: Ex-Chat]
alex__c2022 has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
carif_ has joined #ruby
nsxt has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
kindjal has joined #ruby
yours_truly has quit [Quit: Leaving]
RichardBaker has joined #ruby
mneorr_ has joined #ruby
<nsxt>
are there any libraries for analyzing fluctuations in graph data? i'm not looking to plot anything, rather looking to analyze what _would_ look like a line chart if i plotted a series of values
mark06 has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
kindjal_ has joined #ruby
brennanMKE has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
bean has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
kindjal has quit [Ping timeout: 246 seconds]
kindjal_ is now known as kindjal
mneorr has joined #ruby
kidoz has joined #ruby
kobain has quit [Ping timeout: 272 seconds]
cescalante is now known as ce_afk
ewag has joined #ruby
<Akuma>
aperios: yes
carif_ has quit [Quit: Ex-Chat]
<Akuma>
apeiros:
jkline has joined #ruby
<apeiros>
Akuma: can you provide a short demo code including output?
<apeiros>
or, wait
<Akuma>
sure, gimme a sec
Elhu has joined #ruby
carif__ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Akuma>
line 162 would correspond to this: nln += "#{field};"
aagdbl has joined #ruby
<apeiros>
Akuma: btw., unrelated to your issue - you should use the CSV stdlib library
<MrZYX>
and nicer variable names :P
<apeiros>
makes your code simpler and your output probably more correct ;-)
mneorr_ has quit [Remote host closed the connection]
<Akuma>
default external shows CP850
<Akuma>
Default internal shows nothing
mneorr has joined #ruby
<apeiros>
Akuma: you're probably reading input then and since default_external is CP850, so will be the result of that reading be CP850
<Akuma>
apeiros: good to know, I didn't know there was such a thing, I'll probably use it for my next CSV project, this one is more of a one time conversion use
sayan has joined #ruby
<apeiros>
either change default_external or read with explicit encoding argument. e.g. File.read(path, encoding: 'utf-8')
xk_id has quit [Quit:
peregrine81 has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
<Akuma>
I'm currently doing File.open(filename)
mneorr has joined #ruby
<apeiros>
same argument there. File.open(filename, encoding: 'utf-8')
<Akuma>
let me give that a try
einarj has joined #ruby
peregrine81 has quit [Client Quit]
BizarreCake has quit [Read error: Operation timed out]
rezzack has joined #ruby
Bira has quit [Remote host closed the connection]
<Akuma>
apeiros: the file open argument did the trick
jerius_ has quit []
<Akuma>
Thanks a lot, I greatly appreciate it
fgo has joined #ruby
hashpuppy has joined #ruby
<apeiros>
Akuma: another btw. - foo.each do |x| puts x end --> you can just do `puts foo` instead
srji has joined #ruby
timonv has joined #ruby
ewag has quit [Remote host closed the connection]
<apeiros>
line 94-96 in your pastie --> puts nlst
jibi has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<apeiros>
and line 100-104, just File.write(of, nlst.join(''))
<apeiros>
(might need the encoding argument too btw.)
freezey has joined #ruby
<Akuma>
puts will print on screen?
<apeiros>
puts is almost the same as print
mansi has quit [Remote host closed the connection]
<apeiros>
yes, it prints on screen
larissa has quit [Quit: Leaving]
peregrine81 has joined #ruby
<Akuma>
I see
<Akuma>
still getting acquainted with ruby
<apeiros>
additionally it appends a newline to the output if none is present. and it can print an array of strings directly.
mansi has joined #ruby
tharindu has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
ryanRT has quit [Read error: Connection reset by peer]
brennanMKE has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
brennanMKE has joined #ruby
peregrine81 has quit []
mansi has joined #ruby
stkowski has joined #ruby
tyleretters has quit [Ping timeout: 265 seconds]
okinomo has quit [Ping timeout: 246 seconds]
mansi has quit [Read error: Connection reset by peer]
Scient has joined #ruby
<Hanmac>
apeiros: in my bindings i have helper functions around that ... so you can do that: Type *ptr = wrap<Type*>(Rvalue); (where wrap is a template with specifications)
<markisonfire>
there are tons of awesome resources, though
<mark06>
yeah, programming MF!
<ludar>
thank you
<|jemc|>
ludar: when I came over from python, I found it helpful to pick a somewhat difficult and complex python project I had done and try to port it to ruby, learning each analogous technique as needed
robustus has joined #ruby
freezey has quit [Remote host closed the connection]
<ludar>
sounds great
<ludar>
thank you
<|jemc|>
over time, I also learned ruby idioms to replace my python idioms I was familiar with, changing my mindset as well
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
Volsus has joined #ruby
freezey_ has joined #ruby
freezey has quit [Read error: No route to host]
<shevy>
|jemc| do you still write python?
<shevy>
ludar, I think when it comes down to it, the best is to really just start to write small ruby scripts, and buildup from there. start with simple things, if you used python, try to find to do something similar in ruby, but more OOPish perhaps
<|jemc|>
shevy: basically only for sublime text plugins - I've come to appreciate the ruby way in most projects that don't require python for some other reason
ce_afk is now known as cescalante
okinomo has quit [Ping timeout: 268 seconds]
carif__ has quit [Read error: Operation timed out]
<ludar>
what is the mean diffrent between python and ruby as lang?
Emmanuel_Chanel has joined #ruby
<|jemc|>
other than syntax differences, main conceptual difference is probably monkey-patching
<volty>
google ruby vs python
<|jemc|>
also ruby does nto have multiple inheritance, but has mixins, a slightly different concept
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkamenik has quit [Quit: Leaving.]
<flops>
How can I empty/delete a database I created with ActiveRecord through camping?
<matti>
How does one handle thread safety from C extension? I have a library that is not thread safe.
capicue has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
awarner_ has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
awarner has joined #ruby
superscott[8] has joined #ruby
dcunit3d has joined #ruby
awarner_ has joined #ruby
nkts has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
awarner_ has quit [Read error: Connection reset by peer]
awarner_ has joined #ruby
<Hanmac>
matti i think its complicated ... i mean if the lib is not thread-safe, then the binding cant be easy thread-safe (all my bindings are not thread-safe :/ )
<matti>
RubyPanther: But, now I want to make sure that when people call methonds from the same object using the same underlying C bindings, they will not be corrupted.
dfrank has joined #ruby
Czupa has joined #ruby
xk_id has joined #ruby
<matti>
RubyPanther: I could even use Mutex.new, but I don't know how to add @mutex.synchronize to existing methods from C code on the fly on the Ruby side.
<RubyPanther>
matti: make sure you need it before adding a mutex
breakingthings has quit []
mneorr_ has quit [Remote host closed the connection]
soheil has joined #ruby
timonv has quit [Remote host closed the connection]
srji has joined #ruby
mikepack has quit [Remote host closed the connection]
<|jemc|>
yeah, it can be tempting to throw mutexes all over the place thinking you're creating safety, but its easy to create deadlock that way
timonv has joined #ruby
<RubyPanther>
Hanmac: it's a good reference, but it doesn't give a high level explanation
wildroman has quit [Remote host closed the connection]
<Hanmac>
some day, my bindings will be also good references ;D
wildroman has joined #ruby
m8 has joined #ruby
simoz has joined #ruby
timonv_ has joined #ruby
mneorr has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
timonv has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
niklasb has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
dfrank has quit [Ping timeout: 272 seconds]
barratt has quit [Read error: Connection reset by peer]
barratt has joined #ruby
btanaka has joined #ruby
peregrine81 has quit []
Mothore has quit [Quit: Computer has gone to sleep.]
eichenwald has quit [Quit: WeeChat 0.3.8]
timonv has quit [Ping timeout: 260 seconds]
dfrank has joined #ruby
Mitchellvanw has quit [Quit: Dozing off...]
Mothore has joined #ruby
<dfrank>
hi guys. I'm learning ruby on rails, here's very little example of the ruby model code: pastey.org/view/raw/c9c8b7f1 I can't find explanation of such syntax: "validates :title, uniqueness: true" Is this method call, or ...? I know that ruby allows to omit parentheses, but this case seems not to be a method call. Just in case, I have tested: added parentheses, but it wasn't helped.
breakingthings has joined #ruby
<dfrank>
*it didn't help
<dfrank>
So, could you please point me where can I read about it?
mneorr has quit [Read error: Connection reset by peer]
Jetchisel has joined #ruby
mneorr has joined #ruby
<ShawnMcCool>
i have a folder with 2 subfolders, src/ and test/, in my src/ folder i have a file todo.rb src/todo.rb. if i go to the src folder and do 'irb' and try to require 'todo' it says that it can't infer base path
mneorr has quit [Remote host closed the connection]
<ShawnMcCool>
what should i do?
Monie has joined #ruby
<|jemc|>
require_relative
mneorr has joined #ruby
<apeiros>
ShawnMcCool: irb -Isrc
<|jemc|>
that too
<apeiros>
(that's a capital i, not lowercase L)
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
<ShawnMcCool>
thanks
<apeiros>
ShawnMcCool: common name for the library is 'lib' btw., not 'src'
<apeiros>
cf. rubygems
<Xeago>
mind elaborating on this problem?
vlad_sta_ has joined #ruby
<ShawnMcCool>
so if i'm just creating some domain logic to play with ruby, i'd put my code in lib/ not in src/
<Xeago>
shouldn't irb jsut find it in ./todo.rb?
<Xeago>
not caring in which directory it is in?
jhaals has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<apeiros>
Xeago: require/load is always relative to the dirs in $LOAD_PATH (unless you explicitly use an absolute path or use a './' prefix)
axl_ has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
__main__ has quit [Read error: Connection reset by peer]
aspires has quit [Quit: sudo making a sandwich]
<Xeago>
ok, ty
vlad_starkov has joined #ruby
mneorr_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
srji has quit [Quit: leaving]
markisonfire has left #ruby [#ruby]
tatsuya_o has quit [Remote host closed the connection]
volty has left #ruby ["Konversation terminated!"]
__main__ has joined #ruby
tatsuya_o has joined #ruby
asteros has quit [Quit: asteros]
angusiguess has quit [Ping timeout: 245 seconds]
dfrank has quit [Ping timeout: 260 seconds]
adambeynon has joined #ruby
<atmosx>
%w{01 02 03 04 05 06 07 08 09 10 11 12} <-- can I turn this values into numbers somehow automatically? Instead of text?
<atmosx>
s/numbers/integers
Gooder has joined #ruby
dcunit3d has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Elhu has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
dcunit3d has quit [Client Quit]
<apeiros>
atmosx: map
<apeiros>
atmosx: but since it's a literal, just use []
<lupine>
well, he'd need commas too
<apeiros>
oh noes! :)
__main__ has quit [Read error: Connection reset by peer]
<atmosx>
yeap
tatsuya_o has quit [Ping timeout: 246 seconds]
<lupine>
I'd probably do (1..12).to_a
<atmosx>
lupine: that makes sense heh
_main_ has joined #ruby
<atmosx>
hmm I need 01
pwh has quit []
<atmosx>
not 1
<lupine>
then you don't want fixnums, you want strings
<lupine>
or... something
<Hanmac>
a = *1..12
platypine has joined #ruby
<apeiros>
^
verto has joined #ruby
<atmosx>
okay then I'm ok I guess
diegoviola has joined #ruby
* atmosx
it's an old helper method lol
<lupine>
you can always ensure the fixnum is displayed as "01" in your output logic, of course
<lupine>
but in number terms, 01 and 1 are identicxal
<milardovich>
Hi guys, I'm having problems with a conditional value
<milardovich>
if a == @class.b then works perfectly, but if a <= @class.b then doesn't
<milardovich>
I have no idea what I'm doing wrong
petey_ has quit [Read error: Operation timed out]
ctp has joined #ruby
<|jemc|>
put your code and the output in a pastebin
Liquid-- has quit [Quit: Computer has gone to sleep.]
agustinvinao has quit [Remote host closed the connection]
<ctp>
Howdy. Anyone has an idea how to remove the first element of that array and append a new one at the end _in one expression_. ["S", "S", "F", "F", "S", "S", "F", "S", "S", "F"].shift would remove the first one, ["S", "S", "F", "F", "S", "S", "F", "S", "S", "F"].push("S") would append one. but how to combine both?
kil0byte has quit [Read error: Connection timed out]
baroquebobcat has quit [Quit: baroquebobcat]
<|jemc|>
although your requirement about being in 'one expression' isn't as specific as you think it is
froy has joined #ruby
Soda has quit [Ping timeout: 252 seconds]
swingha has quit [Quit: WeeChat 0.4.2]
agustinvinao has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
einarj has joined #ruby
jkline has quit [Quit: jkline]
<ctp>
ok, got it, a simple foo.push("S").shift does its work :) thanks
Soda has joined #ruby
einarj has quit [Remote host closed the connection]
<Akuma>
hello, if I define an array x=Array.new(10), define some values for this array in a file, (file1.rb) and do a require 'file1' in a file2, will I be able to access the values of the array x in file 2 defined in file1?
<apeiros>
ctp: um, yeah, which is what I said. still I think it's ugly.
einarj has joined #ruby
<ctp>
apeiros: yeah it is :)
Volsus has joined #ruby
Jetchisel has joined #ruby
<apeiros>
Akuma: if you define the variable as `x`, then on. lowercase variables are local variables. the "local" part in the name means what it says ;-)
<|jemc|>
Akuma: locals do not cross files
<|jemc|>
Akuma: you can make it a global with $x, but there is often a better way to do what you want
<apeiros>
you can use constants (start with an uppercase letter) to share objects across files.
* apeiros
hits |jemc| with a stick
<|jemc|>
yeah, constants is often the better way, I was about to refer to
* |jemc|
ducks
<apeiros>
don't use globals. really. it's best to just pretend they don't exist (except for the predefined ones)
terrellt has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
<Akuma>
I see, I'll check how I can work around this
<|jemc|>
well, you have to know about the devil before you can resist his temptations
<Akuma>
Thank you
<havenwood>
Poof, what are these globals you're talking about. Fairy tales I tell ya!
* havenwood
goes merrily about his day.
yfeldblum has joined #ruby
<havenwood>
Friday! :)
colonolGron has quit [Quit: Lost terminal]
<havenwood>
I had to double check to make sure it still was. >.>
dhruvasagar has quit [Ping timeout: 268 seconds]
<|jemc|>
ignorance of bad design patterns doesn't make you subconsciously use good ones
<apeiros>
saturday here
freezey_ has quit [Remote host closed the connection]
ybart has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
<apeiros>
|jemc|: true
<apeiros>
|jemc|: but you suggested using a bad pattern :)
_dma has joined #ruby
<|jemc|>
I was using it as a segue to bring up constants
<|jemc|>
if only I had a higher words per minute!
ybart has quit [Client Quit]
<|jemc|>
:P
<|jemc|>
speaking of devilish globals
timonv has joined #ruby
ShellFu has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<havenwood>
>> password = global_variables.join
<|jemc|>
anyone know if there are any plans to make thread-local versions of the post =~ vars $1, $2, etc?
<havenwood>
|jemc|: mmm, i'll put a #reverse on the end
<havenwood>
dash, now you know my tricks!
QKO has quit [Ping timeout: 256 seconds]
soheil has quit [Remote host closed the connection]
<|jemc|>
but yeah, the fact that Threads exist and $1, $2, $3 exist as standards in the same language just baffles me
<|jemc|>
it's just asking for trouble
vlad_starkov has quit [Read error: Connection reset by peer]
soheil has joined #ruby
d2dchat_ has quit [Remote host closed the connection]
<apeiros>
|jemc|: $1 etc. are not truly globals
kil0byte has joined #ruby
<apeiros>
which makes things in some regards worse…
nutella has joined #ruby
<apeiros>
but they're thread local
mneorr has joined #ruby
<|jemc|>
oh really?
<|jemc|>
I thought I tested it and found otherwise
<|jemc|>
well, good
<apeiros>
they're even stack-frame local iirc
nutella is now known as Guest18054
<apeiros>
whatever they are, their scoping is rather, um, lets say 'uncommon'
<|jemc|>
heh
<ShellFu>
hey all. Im trying to reduce the complexity of a piece of code here. Id like some thoughts >http://pastebin.com/e29h9W3a< Im thinking perhaps a recursive method, but since im not a professional programmer I thought you guys could smack me around a bit :)
<|jemc|>
well, I'm happier that they're a special case than being trou globals
<gr33n7007h>
i = 1.0/0; (1..i).each {|n| puts n}
idoru has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<ShellFu>
It can be copied directly into irb
<ShellFu>
to see the desired result
volty has joined #ruby
<havenwood>
gr33n7007h: 1.upto(Float::INFINITY) { |n| puts n }
<gr33n7007h>
cool ;)
Hanmac has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
mneorr has quit [Ping timeout: 272 seconds]
jibi has quit [Quit: .]
dzhulk has quit [Quit: Leaving.]
_maes_ has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
RORgasm has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
QKO has joined #ruby
kaspergrubbe has joined #ruby
brennanMKE has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
m_3 has quit [Remote host closed the connection]
QKO has quit [Changing host]
QKO has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
sepp2k has quit [Ping timeout: 268 seconds]
m_3 has joined #ruby
beneggett has joined #ruby
ngpestelos has joined #ruby
zeropx has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
mansi_ has quit [Remote host closed the connection]
testr0n has joined #ruby
mansi has joined #ruby
<unstable>
wow, ruby p247 has been around for awhile now
<testr0n>
if i want to write an irc bot in ruby, what is the best way to go about this? use a pure ruby gem, or use a ruby gem which uses a C irc implementation?
Zai00 has quit [Quit: Zai00]
mlpinit has quit [Remote host closed the connection]
<|jemc|>
IRC is not hard to implement
<|jemc|>
so you don't need C
<MrZYX>
I can recommend cinchrb
mlpinit has joined #ruby
<|jemc|>
there are 3 or 4 gems floating around
<MrZYX>
I wouldn't base the choice on the implementation details
nadirvardar has joined #ruby
<testr0n>
fair points
<testr0n>
what would you base the choice on MrZYX ?
<MrZYX>
a nice API
<|jemc|>
or you can have fun with sockets and do it yourself for some nice fun
yvemath has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
<MrZYX>
and maybe the feature set, if you need more esoteric ones
<shevy>
who is good with minitest and can recommend a tutorial for it
kvirani has quit [Remote host closed the connection]
thepumpkin has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 268 seconds]
coderhs has joined #ruby
<|jemc|>
shevy, coming from another testing framework or coming new to TDD?
<shevy>
totally new here
freerobby has joined #ruby
kirun has quit [Quit: Client exiting]
kevind has quit [Quit: kevind]
<shevy>
it's also an area that seemed hard to learn because it is not very exciting :(
SilverKey has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
zastern has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
zastern has joined #ruby
<testr0n>
MrZYX ok reading the docs for cinch. it's plugin system seems odd
<|jemc|>
anyway, just practice writing your tests before you write your actual code
<dominikh>
testr0n: of course there is. DCC initiations are plain PRIVMSGs with escape sequences
jerius has quit []
<|jemc|>
with the tests guiding the feature set as you go
adeponte has quit [Remote host closed the connection]
<dominikh>
(DCC SEND is already implemented in Cinch itself though. CHAT etc are not, but can easily be done as plugins)
<shevy>
|jemc| ok
adeponte has joined #ruby
<testr0n>
dominikh oh interesting
<|jemc|>
the main idea being that it sucks to write tests later - it's pretty boring
<shevy>
|jemc| I always want to head-start with writing code first :(
Shidash has joined #ruby
<shevy>
hahaha yeah... I can see that
<|jemc|>
and, if you think about it
predator217 has quit [Ping timeout: 272 seconds]
<|jemc|>
you're often writing psuedo tests as you go
<|jemc|>
implementing a feature, then running your code to make sure it works
<dominikh>
testr0n: NB that besides "match" there's also listen_to, which can listen to specific events without doing any pattern matching, e.g. to notice all JOINs, or artifical events like :dcc_send, which Cinch emits when it detected an incoming DCC SEND
<|jemc|>
the trick is to have the discipline to make those little tests a permanent fixture that you can run later
<dominikh>
testr0n: but really, Cinch was written to be very flexible in implementing features on top of it
<testr0n>
dominikh thank you, great explanations. it's sounding very strong
<|jemc|>
because if all your features have tests, you can be confident as you move forward that your code won't regress and introduce bugs
<dominikh>
testr0n: and in case it wasn't obvious, I'm the author ;)
<testr0n>
oh, haha
<testr0n>
do you actively maintain it?
<|jemc|>
so for every feature, write a test, and for every bug fix that had no test, write a test
mlpinit_ has joined #ruby
<dominikh>
testr0n: I'm not actively developing any features etc anymore, but I fix bugs that need fixing and coordinate patches that others might contribute
threesome has quit [Ping timeout: 252 seconds]
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<testr0n>
yea, good enough. i just need some basic abstracted hooks to pull on and bugs to be fixed
<testr0n>
don't need continual flow of new features
<|jemc|>
minitest/spec is big on syntax sugar and ease of use to try and make it easier to have the discipline to write tests as you go
<dominikh>
yeah, it's mostly "done" with regard to features
ismlages has quit [Remote host closed the connection]
drumsrgr8forn8 has joined #ruby
<testr0n>
dominikh i've been doing c/objc for 5 years, did ruby before that, but rusty. what's the quickest way from a fresh mac os x terminal i can get cinch installed and a base bot running connected to my freenode dev channel?
volty has left #ruby ["Konversation terminated!"]
<testr0n>
if you don't mind me asking. feel no pressure to hand hold
<|jemc|>
and imo the difference between spec tests and unit tests in this context is really just a syntactical difference - although in its history is a conceptual difference, I use spec tests for 'unit' tests because I like the syntax sugar
<shevy>
In general things must work with "gem install <name>"
Methylated has quit [Quit: Leaving.]
<shevy>
so judging from the name, "gem install cinch" ought to work
Methylated has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<dominikh>
testr0n: gem install cinch; ruby /whereever/the/examples/are/basic/hello.rb ;) I'm not an OSX person.
<|jemc|>
and the more sugarry your tests are, the more they are self documenting, which is a significant thing
<shevy>
|jemc| hmm
osvico has joined #ruby
ChronocityLC has joined #ruby
<unstable>
What is a simple way to find out if a string contains only letters?
<testr0n>
thank you
testr0n is now known as ibot
<|jemc|>
there are probably many who disagree with me about the spec/unit thing though
<|jemc|>
hence the 'imo'
mlpinit has quit [Ping timeout: 268 seconds]
ibot is now known as ib
mlpinit_ has quit [Ping timeout: 268 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
<shevy>
|jemc| I think I will try to rewrite my first game written in ruby and use minitest from the get-go
brennanM_ has joined #ruby
randomnick_ has quit [Quit: Leaving]
julian-delphiki has quit [Read error: Connection reset by peer]
<|jemc|>
yeah, it'll be weird at first but become second nature hopefully
<ib>
hmm, mac os x comes with an old ruby. what's the cleanest way to put latest ruby 2 on os x?
Methylated has quit [Ping timeout: 260 seconds]
<|jemc|>
rvm is what most mac users use
<|jemc|>
installed through brew
<ib>
ugh
<ib>
so long of a process to set up a dev env :P
bean has joined #ruby
<|jemc|>
yeah, especially when apple doesn't give you a package manager...
brennanMKE has quit [Ping timeout: 265 seconds]
<dominikh>
install 1.9 while you're at it; I have no idea if Cinch works with 2 :P – there was some issue once that was due to a bug in Ruby 2 and I have no idea if it's fixed. nobody else reported problems with Cinch on Ruby 2 though, but maybe that's because nobody is using that combination.
soheil has quit [Remote host closed the connection]
<ib>
uh
soheil has joined #ruby
<ib>
lame :/
<shevy>
unstable, perhaps compare the length, and if not the same, you assume that it does not contain only letters, perhaps see:
<testr0n>
i sure hope its dcc functionality works well, i want to set up a file server
Dwarf has quit [Changing host]
Dwarf has joined #ruby
brennanM_ has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
brennanMKE has joined #ruby
johnnyfuchs has quit [Client Quit]
<dominikh>
the DCC SEND works very well (both sending and receiving files, even receiving from clients that implement the "spec" poorly). other DCC features you will need to implement yourself
einarj has quit [Ping timeout: 245 seconds]
<unstable>
shevy: "hello" =~ /[a-z]/ would this work?
<dominikh>
even though I do have to admit that receiving is better tested than sending, so if you discover any bugs, report them.
<testr0n>
what other dcc features would i need to implement for example?
<dominikh>
testr0n: no idea, which ones do you want :)
<testr0n>
do you mean domain specific stuff like handling file selection + serving?
<dominikh>
unstable: that checks that there is at least one letter in the string.
<dominikh>
testr0n: that's not DCC features, that's application logic :) but there's a plethora of DCC features, such as CHAT, WHITEBOARD and some others probably nobody uses