apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
benzocoumaran35 has joined #ruby
gwb3 has quit [Remote host closed the connection]
Lewix has joined #ruby
banghouse2 is now known as banghouse
phantasm66 has quit [Quit: *poof*]
JesseH has quit [Quit: github.com/jessehorne]
<AdmiraI> Anyone knowledgable about spawning new processes in ruby?
<volty> g0th: i tell you another good point: i do not use 'i' because I use it when doing each_with_index where 'i' stays for index, i use el. or obj, or o
<pontiki> AdmiraI: somewhat?
<volty> ... for the elements, depending on context
<g0th> ok
<pontiki> i haven't written a lot of concurrent stuff in ruby
<g0th> I just started using ruby this week
<g0th> so I am always happy for feedback
<pontiki> and nothing complicated
<AdmiraI> pontiki: This isn't quite concurrent.
<pontiki> g0th: i am impressed that you're using inject already!
<bnagy> AdmiraI: you really need to google around
brupeb has quit [Remote host closed the connection]
<volty> go with this density of ruby, logic be with you !
<bnagy> there are a LOT of ways to do it and they're all subtly different
<AdmiraI> bnagy: That's what this whole day has been.
<pontiki> AdmiraI: what is the actual question
<bnagy> sadly :/
<g0th> I had trouble understanding the &obj thingy
<AdmiraI> I've got a long-running external command that sometimes hangs the system.
<g0th> but
<AdmiraI> To prevent that, I want to launch it in ruby and kill it after some period of time.
<g0th> it's ok now, I don't use it anyway
<bnagy> g0th: so basically you're brute forcing to find out the odds of 3d4 + 4 < 9 or whatever?
<AdmiraI> I also want to collect the stdout and stderr of the external command.
<pontiki> so what's the problem with implementing that, AdmiraI ?
<bnagy> AdmiraI: sounds like Open3
<AdmiraI> Well, after spawning the process, and killing it when it hangs, it never transfers control back to the parent.
<pontiki> ^bnagy
<g0th> bnagy: yes
<bnagy> popen3 for example gives you the pipes and also the thread obj
<g0th> bnagy: but in an intelligent way
<g0th> bnagy: only brute force where necessary
<pontiki> AdmiraI: look at Open3#popen3
<g0th> bnagy: e.g. the line above would not be done with brute force
benzocoumaran35 has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
<volty> AdmiraI: which control? what do you mean by 'control'?
bobinator60_ has quit [Quit: bobinator60_]
ewnd9 has joined #ruby
<AdmiraI> volty: As in, I kill the process after the timeout occurs, but then the rest of the script doesn't execute.
quoin has joined #ruby
tvw has quit []
<volty> of course, you are (probably) killing the same process
<volty> you have to spawn another process for that to work
b00stfr3ak has quit [Ping timeout: 240 seconds]
<bnagy> g0th: cool. There's a product method somewhere
<volty> and would be nicer if you kill the child process from inside your parent processs
<AdmiraI> volty: Are you saying I'm killing the parent process?
<bnagy> >> [1,2,3].product([1,2]).map {|a| a.inject(:+)}
<eval-in> bnagy => [2, 3, 3, 4, 4, 5] (https://eval.in/50720)
sectionme has joined #ruby
<volty> AdmiraI: to me it seems yes
<volty> check
benzocoumaran35 has joined #ruby
<bnagy> gives you all the outcomes of d3 + d2
<AdmiraI> volty: Let me try popen2e and see if that works any better.
<g0th> bnagy: what do you mean?
Gooder has joined #ruby
<bnagy> um, say you want 3d4 == 6
<g0th> bnagy: it is slightly more complicated than that
<pontiki> that's most likely true, AdmiraI , unless you specifically told your current process to either detach or wait
<g0th> bnagy: I don't have uniform dices
<AdmiraI> pontiki: Yes, I specifically told the parent to wait.
<pontiki> popen* wraps the spawn call in a nice way
<czhang_______> dice
<bnagy> g0th: well not for the ones you can enumerate
<g0th> I have dice densities
anonymuse has joined #ruby
cj3kim_ has joined #ruby
Bosox20051 has joined #ruby
kayloos has joined #ruby
<bnagy> anyway, just saying, cartesian product + #count is pretty elegant
brum has quit [Remote host closed the connection]
<bnagy> if memory intensive :P
<g0th> bnagy: yes
<g0th> but I have weighted probabilities
<g0th> for the thing you mentioned I have a much faster algorithm anyway
<bnagy> oh no doubt
<g0th> only in rare circumstances I have to use brute force
<bnagy> this is slow as balls, it's just super easy to code
<g0th> maybe it is possible to do it faster
<g0th> but that's something
Nogbit has joined #ruby
<g0th> you could probably publish papers for such results
<g0th> if you get a precise formula
tgraham|away is now known as tgraham
<g0th> e.g. toss a d20, if 20 comes, don't count it but toss two d20, keep going with that
justsee has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
<volty> AdmiraI: you have to tell us what is happening
cj3kim_ has quit [Remote host closed the connection]
sectionme has quit [Ping timeout: 246 seconds]
<g0th> at the end drop the 10 smallest rolls
<g0th> and sum it
<bnagy> g0th: yeah I did some of that crap in excel, was a pain
<g0th> what's the probability to get a 87?
<AdmiraI> volty: With regards to my gist?
<volty> btw check if the process got effectively killed
<bnagy> really need a DSL at that point
zastern has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 246 seconds]
<bnagy> if you don't _really_ care about exact precision you could just model your rules and do monte-carlo
<volty> and you have also to check if Process.wait works this way (not really returning )
ssvo has quit [Ping timeout: 248 seconds]
<bnagy> also very easy to code, but also crazy slow
<AdmiraI> volty: So far the processes haven't actually been killed.
jrobeson has quit [Ping timeout: 256 seconds]
<AdmiraI> Because the kill command under OS X is stupid.
<volty> you've checked outside, from the command line?
<AdmiraI> They aren't zombies, but they're thrown into a "Trying to exit" state.
<AdmiraI> volty: yes.
<bnagy> basically you make a statemachine and walk it stochastically n times, recording the results
tabolario has joined #ruby
<g0th> bnagy: ok I solved it
dodosan has joined #ruby
hadees has joined #ruby
<g0th> bnagy: it was just a wrong choice of shift/drop/sort order
<volty> try another one, 'TERM'
Nogbit has quit [Client Quit]
<bnagy> also, give jruby a shot
heidi has joined #ruby
<AdmiraI> volty: Same behavior.
<bnagy> some of my unreated Set based stuff is MANY times faster on jruby than mri
czhang_______ has quit [Quit: Leaving.]
<bnagy> *unrelated
lukec_ has joined #ruby
<volty> or whatever else, try to kill it with a utility, you have to find why the OS cannot kill it
bobinator60_ has joined #ruby
<AdmiraI> According to the man page for ps, that process is in a "Trying to exit" state. Looking around online, it seems the only way to get rid of these processes is a reboot.
lukec has quit [Ping timeout: 268 seconds]
lukec_ is now known as lukec
|jemc| has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
julian-delphiki has joined #ruby
<volty> what command you are running ?
<AdmiraI> It's a buggy CLI application at work.
roflmaus has quit [Read error: Connection reset by peer]
<volty> AdmiraI: make sure to set 'past year' when searching with google
<volty> because the os's got 'stronger' meanwhile
lolmaus has joined #ruby
quoin has quit [Ping timeout: 252 seconds]
jb41 has quit [Ping timeout: 260 seconds]
<AdmiraI> volty: Yes, many old results around for process management in Ruby.
bean has quit [Ping timeout: 248 seconds]
Nogbit has joined #ruby
<volty> i'm talking about bash, ps, kill, signal etc
<volty> long time since I couldn't kill a process
<volty> try with sudo
IceyEC has quit [Quit: IceyEC]
<g0th> everything is working now. :) Thanks for the help
felipec has quit [Quit: Leaving]
<volty> try SIGKILL (-9)
staafl has quit [Ping timeout: 248 seconds]
jaimef has quit [Excess Flood]
<AdmiraI> volty: Even -9 doesn't work.
dodosan has quit [Remote host closed the connection]
<volty> ah, you are on saint's os
<AdmiraI> kill -9 is different between linux and OS X.
<volty> sudo kill (and try various) - the last resort
dankest has quit [Quit: dankest]
senayar has joined #ruby
<AdmiraI> Like they said in that serverfault link, the only way is to reboot.
<volty> (because the os could have took the ownership of the execution out of you - for some reason)
<volty> sorry for you, then :(
<AdmiraI> volty: I'll give sudo a shot, but I doubt it will work.
<AdmiraI> Eh, it's okay.
<AdmiraI> I just wish this application wasn't so damn buggy.
<MrZYX> is it even still consuming cycles?
bobinator60_ has quit [Quit: bobinator60_]
<MrZYX> if not, who cares about another entry in the table...
<AdmiraI> MrZYX: I'm not exactly sure if it is or not.
<volty> AdmiraI: try to see the ownership ...
<AdmiraI> It's owned by me.
bean has joined #ruby
lukec has quit [Ping timeout: 248 seconds]
xk_id has quit [Quit:
Lewix has quit [Remote host closed the connection]
<volty> MrZYX: not that easy, the app could have locked some resources -- you never know with that buggy old stuff, you cannot be sure that a new instance could run cleanly if there's another one, 'hanging around'
lukec has joined #ruby
<AdmiraI> And no, in this case it's not a big deal to leave a few entries in the table, but I'll eventually be running this app over 500 times.
<volty> AdmiraI: i mean the process, not the executable
r0bglees0n has quit [Ping timeout: 245 seconds]
<AdmiraI> Yes, the process is owned by me.
<AdmiraI> It wasn't handed off to the OS.
<volty> but the os isn't owned by you :)
SkuliOskarsson has quit [Quit: Leaving.]
estebanrules has joined #ruby
visof has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
devoldmx has joined #ruby
tgraham is now known as tgraham|away
MrZYX is now known as MrZYX|off
BillCriswell has joined #ruby
julian-delphiki has quit [Ping timeout: 260 seconds]
senayar has quit [Ping timeout: 245 seconds]
jaimef has joined #ruby
<pontiki> hum
<volty> and from the os x menu? (the famous eaten apple)
GeissT has joined #ruby
tgraham|away is now known as tgraham
<pontiki> AdmiraI: you're gist does seem to work, more-or-less.
<AdmiraI> pontiki: What command did you run it with?
devoldmx3 has quit [Ping timeout: 251 seconds]
<AdmiraI> This problem may be a result of the application I'm executing.
<pontiki> kinda hacky-kludge, but demonstrated: https://gist.github.com/tamouse/6708213
<pontiki> 'yes'
<pontiki> which just outputs "yes" continuously
gcds has quit [Quit: gcds]
DonRichie has quit [Quit: Verlassend]
<AdmiraI> Hmm.
<volty> pontiki: he has an old buggy application to run, and his os is buggy, cannot kill that process
pleal has quit [Remote host closed the connection]
<AdmiraI> OS isn't buggy, that's how they documented it.
<pontiki> hum
<AdmiraI> But it sucks that kill -9 doesn't kill like it should.
<AdmiraI> More and more I'm thinking it's this application.
<AdmiraI> I tried using the native timeout feature of the open4 gem, and the application did *not* like that at all.
<volty> no no, you can google, an os is buggy when it cannot kill a process
dmerrick has quit [Remote host closed the connection]
<pontiki> well, the *right* thing to do is fix the long-running app that hangs the system, really, innit?
<pontiki> what OS?
<AdmiraI> pontiki: Yes, of course, but I'm writing a test system for said app so that we can make it better :P
<AdmiraI> pontiki: OS X.
<pontiki> OS/X can certainly be buggy about things like that; eating up all the VRAM is kind of interesting to do
<volty> AdmiraI: you can spawn your buggy app separately, redirecting its output in a file, and reading that file from ruby -- if you think it is ruby that makes problems
<pontiki> as is opening and closing lots and lots of files
zeade has quit [Quit: Leaving.]
<pontiki> and filling the disk the swap is on :)
<AdmiraI> pontiki: I have a feeling that's what i just did (the VRAM, that is).
kayloos has quit [Remote host closed the connection]
<pontiki> i've broken my OS lots of times :>
<bnagy> process monitoring is nontrivial, which is why there are so many frameworks for it
lfox has quit [Quit: ZZZzzz…]
<AdmiraI> pontiki: Ahh, I do not miss days like that.
havenwood has quit [Remote host closed the connection]
<pontiki> it can be dangerous
nari has joined #ruby
DanKnox is now known as DanKnox_away
<AdmiraI> Well, open4 seemed to work.
angoragoats has joined #ruby
havenwood has joined #ruby
<pontiki> sorta like my ex-f-i-l said "sinking your boat can ruin your whole day" - blowing apart your OS can too
<AdmiraI> Minus making my display kind of wonky
<AdmiraI> (this buggy application does some interested things with the graphics subsystem)
bklane_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
<pontiki> is this some inhouse proprietary thing?
brupeb has joined #ruby
<AdmiraI> pontiki: Yep.
seanmccann has quit [Quit: Computer has gone to sleep.]
brum has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
<pontiki> is anyone there who initially wrote it?
narcan has joined #ruby
<AdmiraI> My company doesn't own the code, it was developed by another company.
<pontiki> ah ha
<AdmiraI> And another guy on my team said we can basically forget about getting any updates to it.
Atrumx has joined #ruby
<pontiki> not supported any more?
<pontiki> about the same thing, really
<pontiki> do you have the source?
<volty> AdmiraI: could that app wait for input ?
<AdmiraI> pontiki: Nope, just a binary.
<pontiki> crushing
<AdmiraI> volty: What do you mean?
<AdmiraI> As in, does it take input? No, it's all passed via flags.
<volty> i see in your code that you are just accumulating output that comes from that app
axl_ has joined #ruby
<volty> i'm asking if that app could, at some time, ask for some input
<pontiki> which would make it hang
<AdmiraI> volty: I'm not sure if that's the right way to accumulate input.
<AdmiraI> No, the app doesn't ask for input.
<pontiki> hum
havenwood has quit [Ping timeout: 240 seconds]
<pontiki> up for a tiny experiment?
<AdmiraI> I was wanting to get input as it was generated, because this app can fail for a variety of reasons. Any output would be helpful.
<AdmiraI> pontiki: sure.
osvico has joined #ruby
<pontiki> redirect /dev/null to input for that app when you run it
Lewix has joined #ruby
<volty> if that app doesn't send newline you'll never get a string
i_s has quit [Remote host closed the connection]
<banisterfiend> pontiki what is "ex-f-i-l " ?
devoldmx has quit [Ping timeout: 264 seconds]
<pontiki> since you're working on a complete black box here, AdmiraI, could be something strange like that going on, too
<pontiki> banisterfiend: ex Father-in-Law
jonathanwallace has joined #ruby
<banisterfiend> ah:) thx
brum has quit [Ping timeout: 264 seconds]
<AdmiraI> pontiki: I'll give it a shot after this initial test with open4.
<AdmiraI> In my small test script open4 killed it successfully.
i_s has joined #ruby
<pontiki> also, volty is right in that using gets means it needs to get a newline
<pontiki> you might just do reads
<pontiki> binreads, maybe?
c0rn has quit [Quit: Computer has gone to sleep.]
<volty> much better with binreads, or even getting single data as soon as ready
<pontiki> nod
<AdmiraI> I was thinking of using pty as well.
<AdmiraI> To get output as soon as it's generated.
<volty> but above all, if i were him I would make a log of commands so that when it hangs the next time he can run it from bash and redirect output to a file, and see how it behaves
snovak has joined #ruby
<pontiki> yeah
sniffingcats has joined #ruby
devoldmx has joined #ruby
<AdmiraI> volty: I've done so. It simply hangs the entire system.
<volty> with bash?
<AdmiraI> Or rather, it hangs the main UI because (I think) the graphics system resources have been used up completely.
<AdmiraI> volty: yep.
<volty> no popen can help you then
<AdmiraI> I was afraid of that :(
<pontiki> if you really cannot kill this thing, nothing is
<AdmiraI> I have to run this application around 540 times (all different input).
iliketurtles has quit [Quit: zzzzz…..]
<pontiki> what??
<pontiki> i thought it was long-running
<AdmiraI> Relatively long-running compared to most other commands.
<AdmiraI> A few minutes I'd say.
<AdmiraI> It depends on the input.
<pontiki> holy cow
<pontiki> that is NOT long running
<AdmiraI> long-running was perhaps a poor choice.
<volty> could you give us an example of the parameters?
* bnagy waits patiently for the halting problem jokes
<pontiki> httpd is a long-running process
<volty> the input is by parameters or by file / script ?
<pontiki> a few minutes is "it just takes a little longer"
<pontiki> hehehe
<AdmiraI> volty: file.
<pontiki> however, the system hang and non-killable is the main problem
<pontiki> what in the world does this thing *do* ?
<AdmiraI> Video decoding.
<pontiki> oh fun!!
<pontiki> yes that is definitely a way to crash your system ;)
<AdmiraI> I don't actually know much about what it does, but I was told to run it with several inputs.
<AdmiraI> Hence the fun graphical bugs.
<volty> i would be nice to have a VM running that app, but the saint's os doesn't allow for a VM
<bnagy> AdmiraI: get hold of radamsa
iliketurtles has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
bricker`LA has joined #ruby
<pontiki> especially if you are using a mac with a bad graphics controller! or a bad SMC!
<bnagy> volty: you can virtualise OSX
<volty> bnagy: from when ?
<pontiki> virtualbox can
estebanrules has quit [Quit: Leaving]
<bnagy> ages
<volty> i checked a few months ago
<bnagy> just only legally on mac hardware
<onewheelskyward> So can parallels.
<bnagy> it also works on kvm (intel only) but requires pretty nasty hackery
<pontiki> if you want to do it on non-mac hardware, you need some kernel mods
benzocoumaran35 has quit [Ping timeout: 264 seconds]
<volty> i have installed virtualbox and running windows and linux on a mac but couldn't find a way to run os x
<bnagy> anyway all the major products support it, just only on mac
<bnagy> pontiki: no you don't
<sniffingcats> anything for geoip in ruby? I want to look for countries using IPs
<volty> mah! i'll check again
<bnagy> you need a patched bios and a patched qemu, but you can run unmodified kernel
<onewheelskyward> sniffingcats https://github.com/cjheath/geoip
<pontiki> without kexts?
<bnagy> you can also do it hackintosh style
<volty> naaaa
<AdmiraI> You can virtualize OS X.
iliketurtles has quit [Client Quit]
<onewheelskyward> I've never used it but google had tons of results
<volty> nothing tricky
<AdmiraI> With what I'm eventually going to do though, virtualization doesn't work.
<sniffingcats> onewheelskyward: It takes domain, not IP…
<pontiki> anyway, interesting diversion
<onewheelskyward> "GeoIP searches a GeoIP database for a given host or IP address, and returns information about the country where the IP address is allocated, and the city, ISP and other information, if you have that database version."
chxane has quit [Quit: Leaving]
brianpWins has quit [Quit: brianpWins]
<AdmiraI> So it seems that my script just keeps waiting on the process to end.
<AdmiraI> But this application doesn't want to give up control.
<pontiki> AdmiraI: did you look at the gist i posted? you have your Process.wait in the wrong place
<g0th> attr_accessor :foo, :bar
<g0th> if I add this to a class
blischalk has joined #ruby
benzocoumaran35 has joined #ruby
<AdmiraI> pontiki: I've switched to using open4.spawn
amsi has quit [Quit: Leaving]
<g0th> then I should be able to do z.foo for instances of that class, no?
<g0th> somehow I get an error
<AdmiraI> But looking at the backtrace after I killed my script, it's stopping in a Thread.wait
lfox has joined #ruby
<bnagy> g0th: yes
d2dchat has quit [Remote host closed the connection]
sarlalian has quit [Ping timeout: 256 seconds]
<g0th> but it doesn't work :(
<pontiki> please show error?
nhhagen has quit [Read error: Connection reset by peer]
<pontiki> or are you asking for help?
<bnagy> >> class Foo; attr_accessor :thing; end; f=Foo.new; f.thing=4; f.thing
<eval-in> bnagy => 4 (https://eval.in/50736)
nhhagen has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
<AdmiraI> volty: For the record, sudo kill -9 <pid> doesn't kill that hung process either.
chxane has joined #ruby
mercwithamouth has joined #ruby
<bnagy> sounds like kernel bugz
gwb3 has joined #ruby
mlpinit has joined #ruby
<AdmiraI> bnagy: It's something with the kill command. kill -9 is fundamentally broken under OS X.
blarghmatey_ has quit [Quit: No Ping reply in 180 seconds.]
blarghmatey_ has joined #ruby
matchaw_ has joined #ruby
<bnagy> can you attach to it with gdb and kill it that way?
<volty> AdmiraI: it is a kernel problem, otherwise that would have already fixed it, kill is too old for that
tylersmith has quit [Remote host closed the connection]
prismate has quit [Ping timeout: 260 seconds]
matchaw has quit [Ping timeout: 264 seconds]
<g0th> line 19
<g0th> oh
<g0th> is that reserved?
tylersmith has joined #ruby
<volty> kill is asking the kernel to kill a process, 'kill' isn't a bounty killer :)
<g0th> in `+': undefined method `uniform' for {0=>(1/1)}:Hash (NoMethodError)
<AdmiraI> volty: Ahh, okay. Then yes, likely a kernel error. But I think one that's been around for awhile.
diegoviola has quit [Ping timeout: 264 seconds]
<g0th> hash?
<g0th> it should be Density
sevenseacat has joined #ruby
<bnagy> g0th: um fail is a method in Kernel I think
hashpuppy has joined #ruby
jlebrech has quit [Ping timeout: 240 seconds]
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
<g0th> but the error is about uniform
gazarsgo has joined #ruby
dankest has joined #ruby
<bnagy> but it's OK you can still define it
jonr22 has joined #ruby
<g0th> I renamed it and it still fails
<AdmiraI> Well, I think it's time to call it a day for me. I fought with this all day, I get to do the same tomorrow.
<AdmiraI> Thank you all for your help.
<g0th> why does it say Hash?
<bnagy> undefined method tells you what you're calling it on
<bnagy> you are sending the method uniform to a Hash instance
mrsolo has quit [Quit: This computer has gone to sleep]
AdmiraI has left #ruby ["Textual IRC Client: www.textualapp.com"]
<bnagy> so probably your assignments just got messed up somewhere
devoldmx has quit [Ping timeout: 260 seconds]
<volty> when you see a hash you call it a hash ---- that's why
julweber_ has joined #ruby
<g0th> check line 19
ewnd9 has quit [Ping timeout: 252 seconds]
<bnagy> make sure everything is returning what you think it is
<g0th> that defines a Density?
<g0th> I mean z is a Density
<bnagy> *shrug* guess it's not. inspect it
tylersmith has quit [Ping timeout: 256 seconds]
<g0th> p z.class
<g0th> z.uniform=@d.uniform
<g0th> p "ok"
<g0th> returns "Density" and no "ok"
<volty> z.uniform = @d[num].uniform (but you lost num)
julweber has quit [Ping timeout: 246 seconds]
<volty> ah no
dhruvasagar has joined #ruby
<g0th> oh
<g0th> (@d) ?
<bnagy> yeah @d is a Hash
axl_ has quit [Quit: axl_]
<g0th> oh silly me
<g0th> of course
<g0th> thanks solved
gwb3 has quit [Ping timeout: 245 seconds]
volty has quit [Quit: Konversation terminated!]
enriclluelles has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 248 seconds]
<tjbiddle> Anyone have any idea how much disk space a mirror of rubygems.org would take?
<sevenseacat> a lot.
mary5030 has quit [Remote host closed the connection]
brum has joined #ruby
<tjbiddle> sevenseacat: I have plenty - Just need to prepare ahead of time.
lukec has quit [Quit: lukec]
<pontiki> there's probably some way of asking the people who manage it
jlebrech has joined #ruby
failshell has joined #ruby
lukec has joined #ruby
brum has quit [Ping timeout: 245 seconds]
quoin has joined #ruby
lukec has quit [Client Quit]
nari has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
adeponte has quit [Remote host closed the connection]
devoldmx has joined #ruby
mac_ has joined #ruby
Nogbit has quit [Quit: Leaving.]
T_T has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
jp- has quit [Quit: OK... I believe you but my tommy gun don't!]
nari has joined #ruby
Ripp__ has quit []
idiocrash has quit [Remote host closed the connection]
axl_ has joined #ruby
jp- has joined #ruby
cj3kim_ has joined #ruby
mlpinit has quit [Remote host closed the connection]
diego1 has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
axl_ has quit [Client Quit]
brum has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Atrumx has quit [Quit: Quitting]
kizzx2 has joined #ruby
brianpWins has joined #ruby
jefflyne1 has quit [Ping timeout: 268 seconds]
IceyEC has joined #ruby
failshell has quit [Remote host closed the connection]
dinbot has joined #ruby
cj3kim_ has quit [Ping timeout: 264 seconds]
diego1 is now known as diegoviola
nari has quit [Ping timeout: 240 seconds]
<tjbiddle> pontiki: Yup - Bothering them on twitter now :p
<tjbiddle> Cheers everyone!
tjbiddle has quit [Quit: tjbiddle]
quoin has quit [Ping timeout: 256 seconds]
mac_ has quit [Remote host closed the connection]
IceyEC has quit [Client Quit]
dhruvasagar has joined #ruby
Brando753 has quit [Ping timeout: 264 seconds]
gazarsgo has quit [Quit: gazarsgo]
PragCypher has joined #ruby
IceyEC has joined #ruby
Brando753 has joined #ruby
BillCriswell has quit [Remote host closed the connection]
iliketurtles has joined #ruby
axl_ has joined #ruby
chrisja has quit [Quit: leaving]
whunt has quit [Quit: Computer has gone to sleep.]
devoldmx3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
heidi has quit [Quit: Leaving.]
devoldmx3 has quit [Read error: Connection reset by peer]
mac_ has joined #ruby
devoldmx has joined #ruby
funburn has quit [Ping timeout: 240 seconds]
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
io_syl has quit []
mrsolo has joined #ruby
endash has joined #ruby
amacgregor_ has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
lukec has joined #ruby
Behi has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
<pontiki> good golly, someone took my advice!
<sevenseacat> :o
tkuchiki has joined #ruby
funburn has joined #ruby
adkron has joined #ruby
mlpinit has joined #ruby
snovak has joined #ruby
Targen has quit [Ping timeout: 268 seconds]
Spami has quit [Quit: This computer has gone to sleep]
reset has joined #ruby
angoragoats has quit [Quit: angoragoats]
angoragoats has joined #ruby
jp- has quit [Quit: OK... I believe you but my tommy gun don't!]
robbyoconnor has quit [Excess Flood]
nisstyre has joined #ruby
scottstamp is now known as zz_scottstamp
Domon has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
blarghmatey_ has quit [Ping timeout: 245 seconds]
fourq_ has joined #ruby
Atrumx has joined #ruby
jp- has joined #ruby
Michael has joined #ruby
Michael is now known as Guest29660
jrobeson has joined #ruby
Kricir has quit [Remote host closed the connection]
ru has quit [Quit: leaving]
KobraKao has joined #ruby
mlpinit has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
mlpinit has joined #ruby
seanmccann has joined #ruby
_Minos_ has joined #ruby
jonr22 has quit [Ping timeout: 260 seconds]
_Minos_ has quit [Read error: Connection reset by peer]
Guest29660 has quit [Remote host closed the connection]
ehc has joined #ruby
vim_shim has joined #ruby
vim_shim_ has joined #ruby
kazuuu has joined #ruby
vim_shim has quit [Max SendQ exceeded]
vim_shim_ has quit [Max SendQ exceeded]
akim has joined #ruby
vim_shim_ has joined #ruby
vim_shim has joined #ruby
<akim> hey guys
IceyEC has quit [Quit: IceyEC]
<akim> had a general question about ruby
mlpinit has quit [Ping timeout: 245 seconds]
vim_shim has quit [Max SendQ exceeded]
<akim> why would a person use ruby over python
vim_shim_ has quit [Max SendQ exceeded]
<akim> and how is ruby relevant in today's world of abundant scripting languages
vim_shim has joined #ruby
mac_ has quit [Remote host closed the connection]
<|jemc|> a bit of a loaded question but I can tell you why I personally stopped using python for ruby
johnnymoo_logsta has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
<akim> |jemc|: please!
petey has quit [Remote host closed the connection]
<akim> ive done quite a bit in python, though not an expert
<|jemc|> perhaps the biggest reason: blocks/Procs
brupeb has quit [Remote host closed the connection]
<akim> i see
petey has joined #ruby
<|jemc|> python has nothing like it, except for possibly its generators
<|jemc|> although they are not as full featured
brupeb has joined #ruby
<akim> interesting
<|jemc|> blocks can carry with them their scope
<|jemc|> for example
mary5030 has joined #ruby
fourq_ has quit [Ping timeout: 246 seconds]
fourq__ is now known as fourq_
<|jemc|> I can define a method with local variables
Kricir has joined #ruby
<|jemc|> and within that method I can define a Proc, which executes a block of code
petey has quit [Remote host closed the connection]
<|jemc|> and I can return that Proc or pass it as an arg to another method
<akim> ah so basically, ruby provides closures
petey has joined #ruby
<akim> i do quite a bit of ecmascript :)
petey has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
<|jemc|> and it has access to the values of the local variables in the original method
<|jemc|> yeah, closures
<akim> interesting!
petey has joined #ruby
<akim> basically, i dont think python really has anything like that
<|jemc|> wasn't sure what your familiarity with that concept was
Popple has joined #ruby
<|jemc|> but yeah, I don't think so either
<akim> gotcha, well thanks man!
<|jemc|> so that's a big one for me, because I use it heavily
<|jemc|> also, to be general
<akim> yeah, i can see why that's really helpful
<|jemc|> ruby is much more open and malleable than python
<akim> right, i do sorta see that
<|jemc|> you can remake the language in your own image, essentially
<bnagy> the closure stuff isn't really a super common pattern though
<|jemc|> open up core classes and monkey patch things around
<bnagy> onluess you're writing callbacky code
* bnagy eyes fingers
<akim> do you think the code can be difficult to read though? like perl? i know python is super easy to read because they force indentation
zz_scottstamp is now known as scottstamp
<akim> bnagy: yeah, callbacks can get real messy :P
<|jemc|> it's as easy to read as you make it
<akim> hmm, i see
freerobby has joined #ruby
<|jemc|> bnagy: I'm working on an async event-driven framework, so it's got lots of "callbacks", if you want to call them that
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dash_ has joined #ruby
<bnagy> yeah I used to write a lot of eventmachine, it's very common in that pattern
<akim> ah
blarghmatey has joined #ruby
<akim> that rly opened my eyes up to ruby, thx a bunch
narcan has joined #ruby
<|jemc|> well as bnagy mentioned, it's only my personal take
<bnagy> ruby has a very strong and consistent OO model
<bnagy> which pleases many people
<|jemc|> but I think that's one of the great things about ruby: it's got the flexibility to make lots of people happy in different ways
<bnagy> also very good introspection, which freaks some people out
<bnagy> but pleases most
<akim> i see :)
<|jemc|> and DSLs are able to be much more concise and simple than in python
<|jemc|> because you don't have prescriptive forced syntax style weighing you down
<akim> hmm, i see
hackeron_ has quit [Ping timeout: 245 seconds]
johnnymoo_logsta has quit [Remote host closed the connection]
<|jemc|> bnagy: we were having a discussion the other day about MonitorMixin#new_cond
Jdubs has joined #ruby
benzocoumaran35 has quit [Ping timeout: 256 seconds]
<|jemc|> bnagy: and I told you I'd post the link to my code that used it so that you could grimace in person about it
<bnagy> yeah
mac_ has joined #ruby
<|jemc|> it's still not well documented yet, but the usage did make it into my code for the project
<|jemc|> relevant class starts at line 85
<|jemc|> like I said, I find it to be an elegant solution but I know you expect to feel otherwise
brianpWins has quit [Quit: brianpWins]
benzocoumaran35 has joined #ruby
seanmccann has quit [Ping timeout: 252 seconds]
Atrumx has quit [Quit: Quitting]
<|jemc|> also, don't groan about the type checking at line 16, that'll be duck typed soon
<|jemc|> :)
nari has joined #ruby
blarghmatey has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
<bnagy> I think I would have to write it myself to see why you'd do it this way :/
johnnymoo_logsta has joined #ruby
<|jemc|> the big idea is to avoid busywaiting entirely
<|jemc|> so that the TimeScheduler thread is not polling at all, but can stay updated when new events come in
<|jemc|> and wake up just in time to execute them
Jdubs has quit [Remote host closed the connection]
Tearan has joined #ruby
<bnagy> what breaks if you just use a Mutex?
hackeron has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
afei has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
<|jemc|> notice that the "sleep" needs to happen inside the lock
<|jemc|> because there can be no chance of interruption between the decision to sleep and the sleep itself
<|jemc|> but if the sleeping thread holds the lock, no other thread can acquire it
gwb3 has joined #ruby
<|jemc|> the only solution is to have a 'sleep' that is 'integrated' into the lock itself
<|jemc|> so that the two can be aware of eachother and be seemless
brianpWins has joined #ruby
<|jemc|> anything else holds a risk of an unbounded sleep (ie timeout==nil)
<|jemc|> when in reality there is an upcoming event to execute
anonymuse has quit [Ping timeout: 246 seconds]
<bnagy> hmmmmm
krz has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<|jemc|> if you can think of another pure-ruby solution that solves it I'd be happy to hear it
quoin has joined #ruby
interactionjaxsn has joined #ruby
<|jemc|> I'm not so closeminded as to ignore it :)
nextdropping has joined #ruby
<bnagy> I doubt I would approach this with threads at all
<bnagy> so it won't really be all that useful :)
<|jemc|> yeah, any of the event handling threads that are in play need to be able to add events to the TimeScheduler on demand
Nogbit has joined #ruby
mlpinit has joined #ruby
huoxito_ has quit [Quit: Leaving]
adeponte has joined #ruby
<bnagy> you could just spin a thread for every future
raphaelivan has joined #ruby
<bnagy> that would 'work' but threads aren't free
quoin has quit [Ping timeout: 240 seconds]
interactionjaxsn has quit [Ping timeout: 246 seconds]
<|jemc|> yeah, I'm trying to keep the number under control
funburn has quit [Ping timeout: 240 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
tgraham has quit [Quit: Leaving...]
nextdropping has quit [Ping timeout: 264 seconds]
Ripp__ has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
qhartman has quit [Quit: Leaving]
seanmccann has joined #ruby
yacks has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
dash_ has quit [Ping timeout: 252 seconds]
Kricir has quit [Remote host closed the connection]
Nogbit has quit [Ping timeout: 264 seconds]
varfoo has joined #ruby
brianpWins has quit [Quit: brianpWins]
Kricir has joined #ruby
Nightmare has quit [K-Lined]
LBRapid has quit [K-Lined]
justinmcp has quit [K-Lined]
derf- has quit [K-Lined]
hoelzro has quit [K-Lined]
SirFunk has quit [K-Lined]
io_syl has joined #ruby
reset has quit [Quit: Leaving...]
funburn has joined #ruby
brianpWins has joined #ruby
justinmcp has joined #ruby
LBRapid has joined #ruby
SirFunk has joined #ruby
Nightmare has joined #ruby
derf- has joined #ruby
hogeo_ has joined #ruby
tgraham has joined #ruby
brum has quit [Remote host closed the connection]
Domon__ has joined #ruby
Domon__ has quit [Remote host closed the connection]
havenwood has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
hashpuppy has joined #ruby
scmaccal has joined #ruby
machuga is now known as machuga|away
hogeo has quit [Ping timeout: 240 seconds]
Domon__ has joined #ruby
raphaelivan has quit [Ping timeout: 240 seconds]
hashpuppy has quit [Client Quit]
Domon has quit [Ping timeout: 252 seconds]
akim has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
dankest has quit [Quit: Peace]
freerobby has joined #ruby
Kelet has quit [Quit: bbl]
snovak has joined #ruby
scmaccal has quit [Remote host closed the connection]
hadees has quit [Read error: Connection reset by peer]
VictorSK has joined #ruby
blischalk has quit [Ping timeout: 248 seconds]
Monie has joined #ruby
okinomo has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Domon__ has quit [Remote host closed the connection]
n_blownapart has joined #ruby
ehc has quit [Quit: ehc]
Domon has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
gwb3 has quit [Remote host closed the connection]
adeponte has joined #ruby
Domon has quit [Ping timeout: 246 seconds]
VictorSK has quit [Quit: VictorSK]
soba has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has left #ruby [#ruby]
Gooder` has joined #ruby
Domon has joined #ruby
mlpinit has joined #ruby
michael_mbp is now known as zz_michael_mbp
kvirani has joined #ruby
tkuchiki has quit [Remote host closed the connection]
v0n has joined #ruby
Senjai has joined #ruby
Gooder has quit [Ping timeout: 245 seconds]
funburn has quit [Ping timeout: 245 seconds]
tgraham has quit [Quit: Leaving...]
funburn has joined #ruby
brianpWins has quit [Quit: brianpWins]
cads has joined #ruby
mlpinit has quit [Remote host closed the connection]
nanoxd has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
robbyoconnor has joined #ruby
tsykoduk is now known as zz_tsykoduk
popl has joined #ruby
nanoxd has joined #ruby
brianpWins has quit [Quit: brianpWins]
mac___ has joined #ruby
ttt has joined #ruby
brum has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
dross has quit [Ping timeout: 268 seconds]
quoin has joined #ruby
zz_michael_mbp is now known as michael_mbp
mac_ has quit [Ping timeout: 248 seconds]
kobain has quit []
brum_ has joined #ruby
brum has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
brum_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
dross has joined #ruby
justsee has quit [Client Quit]
justsee has joined #ruby
banghouse has quit [Remote host closed the connection]
n_blownapart has quit [Remote host closed the connection]
Popple has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
Domon has quit [Read error: Connection reset by peer]
iliketurtles has quit [Quit: zzzzz…..]
Domon has joined #ruby
Gooder` has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
<sevenseacat> byebug is frustrating me - how can i see where a method is defined
zz_tsykoduk is now known as tsykoduk
dhruvasagar has quit [Ping timeout: 252 seconds]
tsykoduk is now known as zz_tsykoduk
Gooder` has joined #ruby
endash has quit [Quit: endash]
freerobby has quit [Quit: Leaving.]
zz_tsykoduk is now known as tsykoduk
amacgregor_ has quit [Read error: Connection reset by peer]
v0n has quit [Read error: Connection reset by peer]
bklane_ has quit [Remote host closed the connection]
bklane has joined #ruby
sectionme has joined #ruby
<ryanf> sevenseacat: can't you do like eval "method(:methodname).source_location"
<ryanf> or whatever
<ryanf> or use pry
<sevenseacat> ah that worked without the eval
<sevenseacat> sweet
<ryanf> oh, ok
seanmccann has quit [Quit: Computer has gone to sleep.]
bklane has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
bklane has joined #ruby
sectionme has quit [Ping timeout: 260 seconds]
Michael has joined #ruby
snovak has joined #ruby
Michael is now known as Guest78632
bklane has quit [Remote host closed the connection]
Senjai has quit [Remote host closed the connection]
Guest78632 has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
zets has joined #ruby
tkuchiki has quit [Remote host closed the connection]
seanmccann has joined #ruby
sayan has joined #ruby
freezey has joined #ruby
Gooder`` has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
ry4nn_ has joined #ruby
nextdropping has joined #ruby
Gooder` has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
San1ty has quit [Read error: Connection reset by peer]
San1ty has joined #ruby
araujo has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Read error: Operation timed out]
brupeb has quit [Remote host closed the connection]
KobraKao has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
byprdct has joined #ruby
dinbot has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
kvirani has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 264 seconds]
kvirani has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
polaco is now known as polaco_zZz
hamakn has joined #ruby
tylersmith has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
gwb3 has joined #ruby
hamakn has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
kvirani has quit [Ping timeout: 248 seconds]
aetaric has quit [Ping timeout: 245 seconds]
gwb3 has quit [Ping timeout: 245 seconds]
adeponte has quit [Remote host closed the connection]
aetaric has joined #ruby
yekta has quit [Quit: yekta]
rbennacer has joined #ruby
yacks has quit [Quit: Leaving]
justsee has joined #ruby
araujo has joined #ruby
Targen has joined #ruby
prophile has quit [Changing host]
prophile has joined #ruby
devoldmx has quit [Remote host closed the connection]
kizzx2 has quit [Quit: Leaving.]
araujo has quit [Excess Flood]
hashpuppy has joined #ruby
araujo has joined #ruby
nextdropping has quit [Ping timeout: 248 seconds]
toastynerd has joined #ruby
brianpWins has quit [Quit: brianpWins]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quoin has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
gr33n7007h has joined #ruby
brum has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
quoin has quit [Ping timeout: 260 seconds]
OdNairy has joined #ruby
katherinem13 has quit [Quit: Changing server]
katherinem13 has joined #ruby
brum has quit [Ping timeout: 260 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Quit: axl_]
wyclif has quit [Ping timeout: 248 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nextdropping has joined #ruby
wyclif has joined #ruby
Behi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guyz has quit [Quit: quit]
browndawg has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
snovak has joined #ruby
Domon has quit [Ping timeout: 264 seconds]
Behi has joined #ruby
Behi has quit [Max SendQ exceeded]
schaerli has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
k610 has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
okinomo has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
b00stfr3ak has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
brum has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
dzhulk has joined #ruby
dhruvasagar has joined #ruby
schaerli has quit [Remote host closed the connection]
iliketurtles has joined #ruby
petey has quit [Remote host closed the connection]
brum has quit [Ping timeout: 260 seconds]
girija has joined #ruby
girija has left #ruby [#ruby]
zerun0 has quit [Ping timeout: 240 seconds]
Jdubs has joined #ruby
zerun0 has joined #ruby
i_s has quit [Remote host closed the connection]
T_T has joined #ruby
narcan has joined #ruby
Bosox20051 has quit [Quit: Leaving]
IcyDragon has quit [Quit: Space~~~]
BizarreCake has joined #ruby
saarinen has quit [Quit: saarinen]
aryaching has quit [Ping timeout: 264 seconds]
aagdbl has joined #ruby
larissa has quit [Quit: Leaving]
_maes_ has joined #ruby
T_T has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
aagdbl has quit [Quit: Leaving.]
aagdbl has joined #ruby
tsykoduk is now known as zz_tsykoduk
michael_mbp is now known as zz_michael_mbp
vim_shim has quit [Ping timeout: 248 seconds]
schaerli has joined #ruby
DanKnox_away is now known as DanKnox
adeponte has joined #ruby
Lewix has quit [Remote host closed the connection]
quoin has joined #ruby
JohnBat26 has joined #ruby
aagdbl1 has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
jefflyne1 has joined #ruby
OdNairy has joined #ruby
mercwithamouth has joined #ruby
sectionme has joined #ruby
brum has joined #ruby
relix has joined #ruby
aagdbl has quit [Ping timeout: 256 seconds]
T_T has joined #ruby
Monie has joined #ruby
tagrudev has joined #ruby
|jemc| has quit [Ping timeout: 264 seconds]
aagdbl1 is now known as aagdbl
sectionme has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
brum has quit [Ping timeout: 260 seconds]
cads has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
quoin has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
amacgregor has joined #ruby
dzhulk has quit [Quit: Leaving.]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
mac___ has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
T_T has quit [Remote host closed the connection]
jefflyne1 has quit [Ping timeout: 248 seconds]
chairabanta has joined #ruby
snovak has joined #ruby
i_s has quit [Ping timeout: 248 seconds]
kizzx2 has joined #ruby
cads has joined #ruby
apeiros has joined #ruby
vborja has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
Domon has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lurch_ has joined #ruby
zoee has joined #ruby
jaimef has quit [Excess Flood]
nextdropping has quit [Ping timeout: 246 seconds]
mac_ has joined #ruby
zz_michael_mbp is now known as michael_mbp
toah has joined #ruby
jaimef has joined #ruby
chairabanta has quit [Quit: Leaving...]
nextdropping has joined #ruby
relix has joined #ruby
brum has joined #ruby
kil0byte has joined #ruby
pwh has quit [Quit: pwh]
Kricir has quit [Remote host closed the connection]
ehaliewicz has quit [Ping timeout: 264 seconds]
i_s has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Schuy13r has quit [Ping timeout: 245 seconds]
Schuy13r has joined #ruby
brum has quit [Ping timeout: 240 seconds]
maveonair has joined #ruby
browndawg has joined #ruby
mac_ has quit [Remote host closed the connection]
digifiv5e has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
maveonair has quit [Read error: Connection reset by peer]
svector has joined #ruby
Elhu has joined #ruby
ry4nn_ has quit [Remote host closed the connection]
raar has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hanoi has quit [Quit: bye]
cj3kim_ has joined #ruby
deavidsedice has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
ged_ has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
raar has joined #ruby
deavid has quit [Read error: Connection reset by peer]
gener1c has quit [Ping timeout: 264 seconds]
filipe__ has quit [Ping timeout: 264 seconds]
ujjain has quit [Ping timeout: 264 seconds]
ged has quit [Ping timeout: 264 seconds]
ujjain has joined #ruby
gener1c has joined #ruby
raar is now known as Guest33827
dzhulk has joined #ruby
mercwithamouth has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aboudreault has quit [Ping timeout: 264 seconds]
filipe__ has joined #ruby
DrCode has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
relix has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
coderhs has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
tatsuya_o has joined #ruby
aboudreault has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kil0byte has quit [Remote host closed the connection]
bricker`LA has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.1]
nextdropping has quit [Ping timeout: 240 seconds]
osvico has joined #ruby
bubbajones has quit [Ping timeout: 245 seconds]
i_s has quit [Remote host closed the connection]
r0bglees0n has joined #ruby
bubbajones has joined #ruby
svector has quit [Read error: Connection timed out]
amacgregor_ has joined #ruby
nisstyre has quit [Quit: Leaving]
prophile has quit [Ping timeout: 264 seconds]
Jetchisel has joined #ruby
dash_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
amacgregor has quit [Ping timeout: 248 seconds]
brum has joined #ruby
Kricir has joined #ruby
aganov has joined #ruby
quoin has joined #ruby
svector has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
brum has quit [Ping timeout: 260 seconds]
noop has joined #ruby
lfox has quit [Quit: ZZZzzz…]
Takehiro has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
michael_mbp is now known as zz_michael_mbp
tsykoduk is now known as zz_tsykoduk
atno|AFK is now known as atno
wyclif has quit [Ping timeout: 248 seconds]
himsin has joined #ruby
wyclif has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
OdNairy has joined #ruby
funburn has quit [Quit: funburn]
thinkclay has joined #ruby
persand has joined #ruby
<thinkclay> does rails follow a cascading pattern for the asset pipeline?
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<popl> I don't know, thinkclay, but there is a #rubyonrails channel specifically for rails
<popl> they might know
sectionme has joined #ruby
<thinkclay> okay, thanks!
* sevenseacat doesnt know
snovak has joined #ruby
evelyette_ has quit [Read error: Connection reset by peer]
evelyette_ has joined #ruby
freezey has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
swordsmanz has quit [Read error: Connection reset by peer]
swordsmanz has joined #ruby
sr78ger has joined #ruby
tommyvyo has quit [Ping timeout: 246 seconds]
snovak has quit [Read error: Operation timed out]
denysonique has quit [Ping timeout: 260 seconds]
Zai00 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
nextdropping has joined #ruby
Es0teric has joined #ruby
narcan has joined #ruby
OdNairy has quit [Ping timeout: 260 seconds]
osvico has quit [Ping timeout: 252 seconds]
Es0teric has quit [Max SendQ exceeded]
brum has joined #ruby
narcan has quit [Client Quit]
narcan has joined #ruby
kazuuu has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
rezzack has quit [Ping timeout: 245 seconds]
Deele has quit [Ping timeout: 260 seconds]
bartocc has joined #ruby
brum has quit [Ping timeout: 240 seconds]
svector has quit [Read error: Connection timed out]
svector has joined #ruby
mengu has joined #ruby
h_kon has joined #ruby
siwica has joined #ruby
end_guy has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 245 seconds]
scottstamp is now known as zz_scottstamp
araujo has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
jprovazn has joined #ruby
kaspergrubbe has joined #ruby
epta has quit [Ping timeout: 264 seconds]
epta has joined #ruby
trq has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
<trq> I just have a very quick question. Can someone please just point me to some docs or tell me the name of these things so that I can look them up myself.
<trq> I see a lot of function arguments defined as (:foo, :bar)
<trq> What are these things?
<trq> Kinda like constants
Hanmac has joined #ruby
<trq> ?
razi has joined #ruby
JPascal has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
razi has quit [Remote host closed the connection]
<jrobeson> trq, they are symbols
timonv has joined #ruby
<trq> 3Thanks man.. thats enough for me to start a search
<popl> trq: you should check out http://rubykoans.com
JPascal has joined #ruby
vborja has quit [Ping timeout: 256 seconds]
epta has quit [Remote host closed the connection]
ericmathison has joined #ruby
epta has joined #ruby
Deele has joined #ruby
ghr has joined #ruby
timonv has quit [Remote host closed the connection]
nextdropping has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
alup has joined #ruby
timonv has quit [Read error: Operation timed out]
boxmein has joined #ruby
* boxmein becomes idler
epta has quit [Ping timeout: 256 seconds]
De`off has joined #ruby
Macaveli has joined #ruby
vishal has joined #ruby
iliketurtles has joined #ruby
Advocation has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
mrsolo has joined #ruby
atno has quit [Read error: No route to host]
atno has joined #ruby
atno has quit [Remote host closed the connection]
vishal has quit [Read error: Connection reset by peer]
atno has joined #ruby
vishal has joined #ruby
i_s has joined #ruby
De`off has quit [Ping timeout: 260 seconds]
epta has joined #ruby
dangerousdave has joined #ruby
evelyette_ has quit [Remote host closed the connection]
Takehiro_ has joined #ruby
evelyette_ has joined #ruby
marius has quit [Quit: x]
brum has joined #ruby
allsystemsarego has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
ahawkins has joined #ruby
Deele has joined #ruby
tonni has joined #ruby
persand has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
brum has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
siwica has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 246 seconds]
Bosox20051 has joined #ruby
io_syl has quit []
Kar- has joined #ruby
svector has quit [Read error: Connection timed out]
ewnd9 has joined #ruby
svector has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
araujo has joined #ruby
wallerdev has joined #ruby
siwica has joined #ruby
atno has quit [Remote host closed the connection]
benzocoumaran35 has quit [Ping timeout: 248 seconds]
atno has joined #ruby
quoin has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
rahulkmr has joined #ruby
emergion has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
b00stfr3ak has quit [Ping timeout: 256 seconds]
jefflyne1 has joined #ruby
avril14th has joined #ruby
benzocoumaran35 has joined #ruby
_maes_ has quit [Read error: Connection timed out]
jibi has joined #ruby
Advocation has quit [Quit: Advocation]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
adeponte has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
quoin has quit [Ping timeout: 256 seconds]
funburn has joined #ruby
brandon has quit [Ping timeout: 240 seconds]
greengriminal has joined #ruby
relix has joined #ruby
snovak has joined #ruby
shaunbaker has joined #ruby
Deele has joined #ruby
shaunbak_ has joined #ruby
xk_id has joined #ruby
timonv has joined #ruby
tesuji has joined #ruby
ayaz has joined #ruby
gr33n7007h has quit [Ping timeout: 248 seconds]
gcds has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
pranny has joined #ruby
shaunbaker has quit [Ping timeout: 259 seconds]
snovak has quit [Ping timeout: 264 seconds]
adambeynon has joined #ruby
jonahR has quit [Quit: jonahR]
Deele has quit [Ping timeout: 260 seconds]
obs has joined #ruby
marcgg_ has joined #ruby
tonni has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
jbpros has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
araujo has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
sectionme has quit [Ping timeout: 240 seconds]
rahulkmr has joined #ruby
hoelzro has joined #ruby
mengu has quit [Remote host closed the connection]
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
marcgg has quit [Ping timeout: 240 seconds]
sectionme has joined #ruby
tonni has quit [Read error: Connection reset by peer]
brum has joined #ruby
petey has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
araujo has quit [Ping timeout: 246 seconds]
shaunbak_ has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
Advocation has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
araujo has joined #ruby
rahulkmr1 has joined #ruby
senayar has joined #ruby
rahulkmr has quit [Ping timeout: 245 seconds]
brum has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
araujo has quit [Max SendQ exceeded]
nikeita has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Olipro has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
gr33n7007h has joined #ruby
_maes_ has joined #ruby
SkuliOskarsson has joined #ruby
svector has quit [Read error: Connection timed out]
SkuliOskarsson has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
svector has joined #ruby
SkuliOskarsson has joined #ruby
tonni has joined #ruby
maoko has joined #ruby
cj3kim_ has quit [Ping timeout: 256 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
AndChat| has joined #ruby
BraddBitt has quit [Ping timeout: 245 seconds]
araujo has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 248 seconds]
SkuliOskarsson has quit [Client Quit]
AndChat- has joined #ruby
OdNairy has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
AndChat| has quit [Read error: Connection reset by peer]
araujo has joined #ruby
Deele has joined #ruby
<lessless> folks, somtimes number is 12.2343243 4 and I want to round up it to the second number after the point - .round(2), but sometimes number is 123 and I want it to have a zero after the rounding, i.e. 123.0. How to put this logic in single expression?
toah has quit [Read error: Operation timed out]
<Hanmac> lessless: 123.round(2) already returns 123.0
varfoo has quit [Read error: Connection reset by peer]
<lessless> yeah, but I want to drop zero in this case
<lessless> just 123
nextdropping has joined #ruby
<lessless> 123.12312 => 123.12 and 123.000001 => 123
Olipro has joined #ruby
Olipro has quit [Read error: Connection reset by peer]
<sevenseacat> you just said you wanted a 0 after the rounding
<sevenseacat> then you said you didnt
<lessless> I really promise to improve my english 8))
<sevenseacat> pick one
geggam has quit [Ping timeout: 248 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
AndChat- has quit [Ping timeout: 264 seconds]
<lessless> sevenseacat, there is two different cases: if there is valuable numbers after the point they must stay, but if there is not, like number.round(2) => 123.00001, I want to display integer, not a float
Deele has quit [Ping timeout: 260 seconds]
<sevenseacat> 0 is a valuable number
mengu has joined #ruby
zz_scottstamp is now known as scottstamp
<Hanmac> lessless: round(2) can not return what what you shows to us .. (as far as i know)
<Hanmac> >> i = 123.001; (n = i.round(2)) == i.to_i ? i.to_i : n
<eval-in> Hanmac => 123 (https://eval.in/50778)
ephemerian has joined #ruby
<lessless> hanmac, cool, thank you :)
<lessless> exactly what was needed
camilasan has joined #ruby
swordsmanz has quit [Read error: Connection reset by peer]
SkuliOskarsson has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
swordsmanz has joined #ruby
<Hanmac> >> i = 123.001; [i.to_i,i.round(2)].max
<eval-in> Hanmac => 123 (https://eval.in/50779)
<Hanmac> >> i = 123.01; [i.to_i,i.round(2)].max
<eval-in> Hanmac => 123.01 (https://eval.in/50780)
<lessless> wow, this is really eloquent
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
enriclluelles has joined #ruby
xk_id has quit [Quit:
cads has quit [Ping timeout: 248 seconds]
Deele has joined #ruby
xk_id has joined #ruby
scottstamp is now known as zz_scottstamp
himsin has quit [Quit: himsin]
svector has quit [Read error: Connection timed out]
himsin has joined #ruby
DonRichie has joined #ruby
svector has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
brum has joined #ruby
Kricir has joined #ruby
timonv has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
xk_id has quit [Quit:
varfoo has joined #ruby
workmad3 has joined #ruby
tonni has quit [Read error: Connection reset by peer]
ry4nn_ has joined #ruby
brum has quit [Ping timeout: 248 seconds]
Kricir has quit [Ping timeout: 240 seconds]
quoin has joined #ruby
ry4nn has quit [Ping timeout: 268 seconds]
OdNairy has quit [Ping timeout: 248 seconds]
Deele has joined #ruby
pranny has quit [Quit: Leaving.]
atno has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 260 seconds]
aspiers has joined #ruby
<jlebrech> i think foreman needs a menu, or either zsh should have a plugin to select Procfile lines
prophile has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
predator217 has joined #ruby
tonni has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
tonni has quit [Remote host closed the connection]
senayar has joined #ruby
cads has joined #ruby
<jlebrech> can you do a coalesce with blank strings? ie. nil_object || blank_string || "nothing to see here"
__userna1 has quit [Ping timeout: 240 seconds]
atno has joined #ruby
<jlebrech> obviously not with ||, i wouldn't be asking here otherwise :P
noname001 has joined #ruby
<tobiasvl> irb
tommyvyo has joined #ruby
jefflyne1 has quit [Ping timeout: 264 seconds]
<jlebrech> is there a way to convert "" to nil?
<tobiasvl> you mean false, don't you
<tobiasvl> or "falsey"
<Hanmac> jlebrech: check with !str.empty?
<jlebrech> ok, will have a look
denysonique has joined #ruby
<Hanmac> tobiasvl: i think the currect pronouncing is "fals-ey" ;P
Sammael has quit [Ping timeout: 246 seconds]
snovak has joined #ruby
tatsuya_o has joined #ruby
<jlebrech> hanmac: oh, || checks falseyness not nillyness :P
<jlebrech> i'd need a method which returns false or value
<tobiasvl> jlebrech: yes, hence my question ;) nil is falsey, "" is not
emergion has joined #ruby
Xeago has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
adeponte has joined #ruby
<Hanmac> ruby is way more consequent in checking "falsey" than php … in ruby everything is true, except for false and nil (but for more fun you can manipulate the "not" operator ;P )
<jlebrech> i know :) but i wanna to wrap my variables in a method that returns the value if it's not empty but false if it is
<jlebrech> mhh
Darshan has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
<jlebrech> how come empty? return true or false when the original value would be truthy if not false
svector has quit [Read error: Connection timed out]
timonv has joined #ruby
svector has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<tobiasvl> jlebrech: what do you mean?
<jlebrech> found a better way: .select{|i| !i.empty? && !i.nil? }
_maes_ has joined #ruby
chinkung has joined #ruby
<Hanmac> i think you should switch it … check for nil first
adeponte has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
xk_id has joined #ruby
mikecmpbll has joined #ruby
mercwithamouth has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
brum has joined #ruby
kung has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
kofno has joined #ruby
<canton7> is this for checking for an empty/nil string? you can be a bit dirty and to string.to_s.empty? as well :P
gr33n7007h has joined #ruby
kreantos has joined #ruby
_maes_ has quit [Ping timeout: 252 seconds]
tonni has joined #ruby
tobago has joined #ruby
dawkirst has joined #ruby
brum has quit [Ping timeout: 260 seconds]
aryaching_ has joined #ruby
nbrosnahan has joined #ruby
sevenseacat has quit [Quit: Leaving.]
<Hanmac> or use [nil,"","a","bc"].grep /./ #=> ["a", "bc"]
<kreantos> hi having a activemodel class XY: "XY.new nil" what is the nil parameter for
aryaching has quit [Ping timeout: 248 seconds]
<tobiasvl> argument for the constructor
<tobiasvl> XY.new(nil)
<tobiasvl> is the same
<Hanmac> kreantos look at #rubyonrails … the amount of help you get, that is nil
skaflem has joined #ruby
gilesw_ has quit [Ping timeout: 245 seconds]
nbrosnahan has quit [Read error: Connection reset by peer]
<kreantos> yes, i have an app where the specs are ok under 1.9.2 but failing on 1.9.3
dawkirst has quit [Ping timeout: 240 seconds]
nbrosnahan has joined #ruby
priyam_ has quit [Ping timeout: 264 seconds]
kizzx2 has quit [Ping timeout: 252 seconds]
kizzx2 has joined #ruby
aryaching_ has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
brunto_ has joined #ruby
<brunto_> Hi
senayar has joined #ruby
<Hanmac> kreantos: you need to make a gist of the code … otherwise only psychics lvl 5+ can help you … and my crystalball tells me that you used "super" in your code?
<brunto_> I'd like to know if there is a short way to do this : string.scan(/(?<=\{\{)[^\{\{\}\}]+(?=\}\})/)
<tobiasvl> brunto_: lol. what is "this"? what does that regex actually do?
<tobiasvl> or do you expect us to parse that :P
siwica has quit [Quit: siwica]
SkuliOskarsson has quit [Quit: Leaving.]
<workmad3> brunto_: finding stuff that's between {{ and }} ?
<brunto_> tobiasvl: sorry I want to parse a string like "Something {{replace me}} and {{replace that}}"
SkuliOskarsson has joined #ruby
<brunto_> .scan() give me an array and then I want to replace {{something}} with .sub()
<brunto_> Do you want a gist to see my code ?
binw_ has joined #ruby
filipe__ has quit [Read error: Operation timed out]
Ripp__ has quit []
<Hanmac> brunto_: why not use gsub directly?
nomenkun has quit [Remote host closed the connection]
SkuliOskarsson has quit [Client Quit]
nomenkun has joined #ruby
<brunto_> hanmac: because I'd like to do different things if it's "replace me" or "replace that"
funburn has joined #ruby
claymore has joined #ruby
yacks has joined #ruby
RubyPanther has quit [Ping timeout: 248 seconds]
<brunto_> [^\{\{\}\}] must be [^\{\}] I don't know why I repeat { and }
juni0r has joined #ruby
<Hanmac> brunto_: string.gsub(/{{(.+)}}/){$1.downcase}
thinkclay has quit [Quit: Leaving.]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
binw has quit [Ping timeout: 245 seconds]
<kreantos> hanmac, line 16 is ok in ruby 1.9.2 but failing on 1.9.3
<Hanmac> kreantos: i dont know about this, as i sayd try in #rubyonrails
ewnd9 has quit [Ping timeout: 248 seconds]
dawkirst has joined #ruby
SkuliOskarsson has joined #ruby
<Hanmac> the line should not fail in 1.9.3 specialy, or what excactly is the error message?
arturaz has joined #ruby
svector has quit [Ping timeout: 256 seconds]
<brunto_> hanmac: Fine but (.+) include { and } so "Something {{replace me}} and {{replace that}}".gsub(/{{(.+)}}/){$1.downcase} doesn't work
<brunto_> .gsub(/{{([^\{\}]+)}}/){$1.upcase}
<brunto_> hanmac: thx you now I can get my daughter to school. :)
nbrosnahan has quit [Quit: Textual IRC Client: www.textualapp.com]
ttt has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
<Hanmac> brunto_: this works too: /{{(.+?)}}/ used ? for ungreedy
<brunto_> Ok I'll try after
chickenf_ has joined #ruby
tvw has joined #ruby
dash_ has quit [Quit: dash_]
ttt has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
dash_ has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
RubyPanther has joined #ruby
filipe__ has joined #ruby
Kricir has joined #ruby
<Hanmac> kreantos: line 17 − 25 can maybe replaced with json_hash.each {|k,v| contact.send("#{k}=",v) if !v.blank? && contact.respond_to?("#{k}=") }
brum has joined #ruby
Sammael has joined #ruby
Darshan has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
staafl has joined #ruby
arturaz has quit [Remote host closed the connection]
emergion has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
brum has quit [Ping timeout: 245 seconds]
dawkirst has joined #ruby
user258467 has quit [Remote host closed the connection]
SteveBenner9 has joined #ruby
donove has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
mklappstuhl has joined #ruby
nfk has quit [Quit: yawn]
jb41 has joined #ruby
snovak has joined #ruby
TheRealPygo is now known as pygospa
lta has joined #ruby
Darshan has joined #ruby
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
camilasan has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 246 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
dash_ has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
JPascal has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
JPascal has joined #ruby
<pranny> what is a good Graph Library for RUby? I am looking at rgl and gatr and both of them seem to miss the "weighted edges"
sayan has quit [Quit: Leaving]
emergion has quit [Quit: Computer has gone to sleep.]
<pranny> I have a directed, weighted graph that I need to plot an image of
platzhirsch has joined #ruby
OdNairy has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
<g0th> hi
camilasan has joined #ruby
<g0th> how do I go through a hash in a "fixed" order?
<g0th> can I use hash1.each?
mklappstuhl has joined #ruby
<g0th> I don't care about the order
<g0th> but it is extremely important that in each case it is the same
senayar_ has joined #ruby
rahulkmr1 has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
<platzhirsch> g0th: it stays the same
<platzhirsch> the order is the insertion order
brum has joined #ruby
<g0th> ok
Darshan has quit [Ping timeout: 245 seconds]
row has joined #ruby
<workmad3> g0th: that's true on 1.9+ anyway
row has quit [Client Quit]
senayar has quit [Ping timeout: 260 seconds]
kitak has quit [Remote host closed the connection]
<g0th> hash1.to_a is the same order right?
<g0th> and I could get an ordered array by calling sort on that
<g0th> is there a sort option for sorting by key/value?
filipe__ has quit [Ping timeout: 260 seconds]
<g0th> I guess one has to do it manually
Macaveli has quit [Read error: Connection reset by peer]
quoin has quit [Remote host closed the connection]
<g0th> key -> auto, value -> manually
<tobiasvl> hashes are sorted after insertion order
<tobiasvl> in 1.9
brum has quit [Ping timeout: 264 seconds]
<tobiasvl> oh yeah they already said that
jennie has joined #ruby
Anticom has joined #ruby
jennie has left #ruby [#ruby]
dawkirst has joined #ruby
r0bgl33s0n has joined #ruby
row has joined #ruby
r0bglees0n has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
rahulkmr has joined #ruby
stoffus has joined #ruby
apfelbox has joined #ruby
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
zeel has joined #ruby
apfelbox has quit [Remote host closed the connection]
kizzx2 has quit [Quit: Leaving.]
row has quit [Client Quit]
row has joined #ruby
row has quit [Read error: Connection reset by peer]
row has joined #ruby
sayan has joined #ruby
dawkirst has quit [Ping timeout: 256 seconds]
Hanmac has quit [Quit: Leaving.]
<g0th> clone preserves this order?
Michael has joined #ruby
Guest95440 has joined #ruby
Michael is now known as Guest60673
larissa has joined #ruby
<platzhirsch> g0th: I would guess so, if that's very important write some unit tests :)
row has quit [Client Quit]
bartocc has quit [Ping timeout: 240 seconds]
bartocc has joined #ruby
<pranny> how do I represent a directed, weighted graph structure in an image format?
chickenf_ has quit [Quit: Computer has gone to sleep.]
row has joined #ruby
<pranny> I am looking at RGL and GRATR and they dont seem to have weights
ttt has quit [Remote host closed the connection]
<workmad3> pranny: you might be able to do something with graphviz
siwica has joined #ruby
donove has left #ruby ["Quitte"]
<lta> PragCypher, workmad3, i would have recommanded the same
sjltaylor has joined #ruby
havenwood has quit [Remote host closed the connection]
browndawg has joined #ruby
angoragoats has quit [Quit: angoragoats]
filipe__ has joined #ruby
havenwood has joined #ruby
bartocc_ has joined #ruby
<g0th> I have a hash with ordered values (according to the hash order)
afei has quit [Remote host closed the connection]
<g0th> I have a given value
bartocc has quit [Ping timeout: 245 seconds]
bartocc_ is now known as bartocc
<g0th> I would like to find the "last" hash key for which value < value
<g0th> I would like to find the "last" hash key for which hash value < value
<g0th> performance is important
<g0th> is there some implemented division algorithm?
schaerli has joined #ruby
nari has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Remote host closed the connection]
ismlages has joined #ruby
camilasa_ has joined #ruby
chairabanta has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
hmsimha has quit [Quit: Leaving]
Jdubs_ has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
nikeita has quit [Quit: sleep]
ttt has joined #ruby
dawkirst has joined #ruby
<apeiros> g0th: if performance is important, then Hash is the wrong datastructure for that kind of query.
Jdubs has quit [Ping timeout: 260 seconds]
<g0th> so I should store a copy of the hash as an array?
<lupine> you mighjt want SortedSet
<g0th> why sorted?
<apeiros> lupine: sorted != ordered
<g0th> I don't need sorted
_maes_ has joined #ruby
<apeiros> though…
BizarreCake has quit [Quit: Leaving]
<g0th> oh I do
<g0th> damn
<g0th> when I search
<lupine> if they are sorted in order, then sorted == ordered
<apeiros> since it isn't sorted, I don't see how you could speed it up
<g0th> well it is
<g0th> according to the insertion order
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> lupine: nooot really, no
<lupine> then maybe we're speaking different languages
<apeiros> sorted implies it is ordered by value comparison, e.g. 1,2,3
<g0th> it is sorted by value according to insertion order
<apeiros> ordered means it has a specific order which does not need to depend on the value
<g0th> that it is
Kricir has joined #ruby
Lewix has joined #ruby
<g0th> it is sorted by value
<g0th> what I did was:
<g0th> hash2=hash1.clone
<apeiros> g0th: ok, if it is sorted, then you can use binary search
<apeiros> as of ruby 2, that's part of core
<g0th> then I set each value in hash2 += the previous value
<g0th> so I get something ordered by value
brum has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
<g0th> hmm, I need an array in any case it seems
Guest60673 has quit [Remote host closed the connection]
benzocoumaran35 has quit [Ping timeout: 246 seconds]
<apeiros> hm, seems Array#bsearch is only useful for precise matches, not for finding closest neighboring index
siwica has quit [Quit: siwica]
dawkirst has quit [Ping timeout: 264 seconds]
<apeiros> but should be good enough
siwica has joined #ruby
<apeiros> ah, I'm wrong
<g0th> what?
<apeiros> "You can use this method in two use cases: a find-minimum mode and a find-any mode"
<apeiros> so it has a mode to find closest neighbor
benzocoumaran35 has joined #ruby
siwica has quit [Client Quit]
siwica has joined #ruby
nari has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 256 seconds]
<lessless> how to sort an array of associated arrays? [ ['foo', 1], ['baz', 3], ['bar', 2]] => [ ['foo', 1], ['bar', 2], ['baz', 3]]
geggam has joined #ruby
BraddPitt has joined #ruby
brum has quit [Ping timeout: 245 seconds]
dawkirst has joined #ruby
<workmad3> lessless: ary.sort_by{|a| a[1]}
<lessless> cool :D
<workmad3> lessless: or ary.sort{|l, r| l[1] <=> r[1]}
sectionme has quit [Ping timeout: 264 seconds]
<g0th> if I do hash1.to_a I can use binary search on that right?
<g0th> it does compare by the value?
<g0th> hmm or not
<g0th> damn it
<workmad3> g0th: no
<workmad3> g0th: you're confusing ordered with sorted
<g0th> well my hash is sorted
mengu has joined #ruby
<g0th> but only array has this binary search option
<g0th> and if I make the hash an array
<g0th> then I get an array of arrays
<workmad3> yes
<g0th> how are arrays compared
<g0th> NOT by their second entry :)
<workmad3> no :)
<workmad3> so you want to do a binary search on the values in the hash?
<g0th> sigh
<g0th> yes
<workmad3> did you consider just getting the hash's values? ;)
<g0th> what do you mean?
<g0th> go through it?
<g0th> that's O(n) though
<workmad3> >> a = {a: "hi"}; a.values
<eval-in> workmad3 => ["hi"] (https://eval.in/50796)
<g0th> hmm
<g0th> right!
<g0th> I can recover the key from that
<g0th> a bit complicated but possible
kaspergrubbe has joined #ruby
<g0th> hash.to_array[k][0]
nextdropping has quit [Ping timeout: 248 seconds]
<g0th> ?
<g0th> where k is the result of binary search on a.values
<workmad3> probably
mikemac has quit [Ping timeout: 268 seconds]
<g0th> so I have to keep a copy of hash.to_a and hash.values
<g0th> because I don't want to keep calling those two ^^
<g0th> :(
<workmad3> you could always just keep hash.keys and hash.values
<g0th> a lot of space just for beeing able to find something
chickenf_ has joined #ruby
<workmad3> well, you're wanting to use a hash in something un-hashlike
<g0th> I think I might just go through the hash
<g0th> I use hash because I very often do operations on keys that are not set yet
claymore has quit [Read error: Operation timed out]
<g0th> and the keys can be big but their number small
jefflyne1 has joined #ruby
<g0th> also I need the number of set keys sometimes
nouitfvf has quit []
mikemac has joined #ruby
chickenf_ has quit [Client Quit]
mengu has quit [Ping timeout: 240 seconds]
chickenf_ has joined #ruby
KobraKao has joined #ruby
chairabanta has quit [Quit: Leaving...]
funburn has quit [Quit: funburn]
Kar- has quit [Ping timeout: 240 seconds]
buibex has joined #ruby
cads has quit [Ping timeout: 264 seconds]
parus has quit [Ping timeout: 240 seconds]
evelyette_ has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Hanmac has joined #ruby
evelyette_ has joined #ruby
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
maasha has joined #ruby
hamakn has quit [Remote host closed the connection]
sheerun has joined #ruby
hamakn has joined #ruby
tacos1de has joined #ruby
<maasha> Hey, I get a invalid byte sequence in US-ASCII (ArgumentError) from reading a gzipped file with Zlib::GzipReader
decoponio has joined #ruby
<maasha> I think the reason is that the file was zipped on NTFS?
xk_id has quit [Quit:
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Domon has quit [Ping timeout: 252 seconds]
siwica has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
hackeron has quit [Remote host closed the connection]
chairabanta has joined #ruby
parus has joined #ruby
kil0byte has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
sniffingcats has quit [Remote host closed the connection]
<maasha> The file in question is a binary file with ascii chars outside the printable ones.
hackeron has joined #ruby
nikeita has joined #ruby
brum has joined #ruby
pontiki has joined #ruby
<g0th> hmm, how to go through an array and change each entry?
<g0th> hmm, inject I guess
senayar_ has quit [Remote host closed the connection]
<g0th> or what?
<pontiki> map!
<g0th> ah!
<g0th> "!"
<pontiki> assuming you want to change the existing array and not create a new one
dash_ has joined #ruby
<g0th> yes
bartocc has quit [Quit: bartocc]
svector has joined #ruby
<g0th> thanks
siwica has joined #ruby
senayar has joined #ruby
persand has joined #ruby
brum has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
Popple has joined #ruby
parus has quit [Ping timeout: 246 seconds]
<shevy> maasha encoding will forevermore suck
gilesw_ has joined #ruby
priyam__ has joined #ruby
angoragoats has joined #ruby
nikeita has quit [Ping timeout: 260 seconds]
Speed has joined #ruby
mengu has joined #ruby
kaspergrubbe has joined #ruby
maasha has quit [Ping timeout: 250 seconds]
emergion has joined #ruby
<g0th> how to check if Array has bsearch?
<g0th> [].bsearch.nil?
<g0th> hmm or what?
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> g0bl1n, when does an array not have #bsearch?
<workmad3> g0th: respond_to?
<g0th> [].respond_to? bsearch
<g0th> ?
<canton7> always always returns true? I'm failing to see the point
<g0th> I don't have ruby 2.0
<g0th> some might have
Lewix has quit [Remote host closed the connection]
<canton7> ahagotcha
<canton7> Array.respond_to?(:bsearch)
chairabanta has quit [Quit: Leaving...]
<g0th> thx
parus has joined #ruby
Kar- has joined #ruby
<Hanmac> wrong its [].respond_to?
<workmad3> ^^
<workmad3> or Array.instance_methods.include?(:bsearch)
<Hanmac> workmad3: hm better: Array.method_defined?(:bsearch)
quazimodo has joined #ruby
<canton7> oops, good catch
saysjonathan has joined #ruby
MrZYX|off is now known as MrZYX
pehlert has joined #ruby
senayar has quit [Remote host closed the connection]
sectionme has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ghr has quit [Quit: Computer has gone to sleep.]
RAMPKORV has joined #ruby
siwica has quit [Quit: siwica]
<shevy> wow
<shevy> I never saw method_defined? before
jkamenik has joined #ruby
<shevy> no wait, sorry
* Hanmac is now named as "Finder of the hidden methods"
<shevy> I just could not remember, but I saw it before. It's written down in my knowledge base
<shevy> class Foo;def test;end;end;Foo.method_defined? :test
ghr has joined #ruby
<Hanmac> hm there is also an "singleton_class?" method … but i dont know if its new or not ;P
<shevy> give example how to use it
<workmad3> hanmac: doesn't seem to exist in 2.0.0
<workmad3> >> [].singleton_class?
<eval-in> workmad3 => undefined method `singleton_class?' for []:Array (NoMethodError) ... (https://eval.in/50815)
<Hanmac> yeah its new
jbpros has quit [Quit: jbpros]
<Hanmac> >> [].singleton_class.singleton_class?
<eval-in> Hanmac => undefined method `singleton_class?' for #<Class:#<Array:0x40ecd2a0>> (NoMethodError) ... (https://eval.in/50816)
<workmad3> I'm guessing it lets you introspect slightly into the ruby VM, see if it's created a singleton class for an object?
OdNairy has left #ruby [#ruby]
<workmad3> ah, it lets you tell if X is a class or a singleton class? :)
WillAmes has quit [Remote host closed the connection]
<g0th> hmm, is there a way to access the "k'th" hash element?
<Hanmac> workmad3: hm no its a method of a class that says if a class is a singleton_class
<MrZYX> g0th: yes, use an array :P
<workmad3> g0th: once again, using a hash in a non-hashlike manner :)
<g0th> yep
<Hanmac> g0th: use array inside hash
<g0th> I have good reasons for that
<g0th> if I can access the k'th hash element
<MrZYX> what would you consider the k'th element?
<g0th> I can save space
WillAmes has joined #ruby
<shevy> hehe
<g0th> the k'th inserted one
<avril14th> g0th: hash[hash.keys[k]]
<g0th> i.e. if I do hash.each -> the k'th one
<shevy> well ruby hashes now preserve the order
nikeita has joined #ruby
<g0th> sigh
<g0th> can't do that avril14th
<g0th> so I have to save a copy of the hash as an array
ldnunes has joined #ruby
<MrZYX> g0th: why can't you do that?
<g0th> because it's slow
<shevy> g0th you somehow need to store the information somewhere anyway
<g0th> it creates an array
<MrZYX> you want to know in what iteration you are when doing hash.each ?
<shevy> .each_pair_with_index
<g0th> I use hash.values and find an index
<g0th> then I want the hash key correpsponding to that
<g0th> performance is a big issue
<shevy> hey
<shevy> wait a moment
<g0th> I want O(log n)
<shevy> hash.values returns an array
<g0th> yeah I store that
<shevy> so why can you use hash.values but not hash.keys?
<avril14th> each_with_indexes or each_with_values?
<g0th> because I just want to store "one" thing
<shevy> is the plural of index really indexes?
soba has quit [Ping timeout: 240 seconds]
<g0th> indices?
<Hanmac> shevy in ruby you cant untrust objects anymore ;P
<g0th> anyway, I have to store a copy, ok
<shevy> hanmac I never trust any object
<shevy> they are all potentially riddled with bugs
dhruvasa1ar has joined #ruby
amacgregor_ has quit [Ping timeout: 252 seconds]
<workmad3> g0th: in all honesty, it sounds like you need to stop using a hash
<Hanmac> shevy yeah, but now you cant untrust anymore "object.untrust? makes a warning"
ananthakumaran1 has joined #ruby
claymore has joined #ruby
<g0th> workmad3: I need
mmozuras has quit [Quit: Lost terminal]
<g0th> workmad3: the number of set values, I often work with unset values, I have biig keys but not necessarely many
<kke> is there some way to make bundler only get the files defined in .gemspec file list?
<kke> from git
<workmad3> g0th: right... so it sounds like you really should be making your own data structure that provides the features you want
<g0th> workmad3: and I have no idea how big the array is gonna get
<g0th> anyway thanks for the help
<g0th> I just store a copy
nikeita has quit [Quit: sleep]
ananthakumaran has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
Elhu has joined #ruby
ncopa has joined #ruby
<ncopa> hi, i am trying to package ruby and ruby-gems in different packages for my distro
<ncopa> this is the error i get: https://dpaste.de/DKWVB/
brum has joined #ruby
<ncopa> i wonder what that internal:gem_prelude is?
joshwines has quit [Remote host closed the connection]
PragCypher has quit [Quit: Leaving]
<shevy> ncopa what ruby version and what distribution is that?
<ncopa> it is ruby-2.0.0
<ncopa> and alpine linux
<shevy> hmm
cj3kim has joined #ruby
<shevy> I am on ruby 1.9.3p448
<shevy> my gem version is 2.0.7
<timmow> what is a best practice for sharing rake tasks across different projects?
<ncopa> im trying to resolve: http://bugs.alpinelinux.org/issues/2261
<shevy> ncopa you can run "gem version" ?
<shevy> sorry
<shevy> gem --version
Kricir has quit [Ping timeout: 240 seconds]
<ncopa> well, what i am trying to do is make ruby run without gems
chickenf_ has quit [Quit: Computer has gone to sleep.]
<ncopa> it looks like they package ruby without gems on fedora
dhruvasa1ar has quit [Ping timeout: 252 seconds]
<ncopa> if i install gem the error disapears
chickenf_ has joined #ruby
<shevy> not sure if there is a simple way to remove gem
<ncopa> that was the question basically..
<shevy> the "gem" file in bin/ is one that has to go
<ncopa> is it possible at all
<shevy> sure
<ncopa> yes i moved /usb/bin/gem
brum has quit [Ping timeout: 260 seconds]
<shevy> but you need to find out where it is all used
<shevy> the SITE_DIR/lib/ruby/gems* also has to go
timonv has quit [Remote host closed the connection]
<shevy> and the file rubygems.rb has to go
<ncopa> ah
<shevy> well
<shevy> this alone is not enough
<shevy> other files like:
<shevy> irb/locale.rb: redo if defined?(Gem) and Gem.try_activate(lc_path)
<shevy> also have references to Gem
nikeita has joined #ruby
<ncopa> i do have some usr/lib/ruby/gems dir there
<shevy> rubygems/ directory has to go as well
<ncopa> i have moved out /usr/bin/gems, and the rubygems/ dir
<ncopa> and rubygems.rb
<ncopa> and thats it
<shevy> and "ruby" binary no longer works?
<ncopa> thats my issue, yes
<shevy> hmm
<ncopa> the error message: https://dpaste.de/DKWVB/
<shevy> I think your best hope is to file a bug or feature request at official tracker
<shevy> perhaps at the least they can tell you how fedora does that
allanm has quit [Read error: Connection reset by peer]
<ncopa> fedora has a bunch of patches
allanm has joined #ruby
<shevy> well, just file a feature request
<shevy> "make it more easy to remove gem"
<shevy> *easier
<ncopa> they have some patching done so various different ruby implementations can share gems
benzocoumaran35 has quit [Ping timeout: 240 seconds]
<ncopa> maybe i should look closer what that does...
buibex has quit [Remote host closed the connection]
hashpuppy has joined #ruby
mmozuras has joined #ruby
senayar has joined #ruby
<ncopa> i suppose the other option is to just ship gems with ruby package
Popple has quit [Quit: Computer has gone to sleep.]
xk_id has joined #ruby
timonv has joined #ruby
benzocoumaran35 has joined #ruby
platzhirsch has left #ruby [#ruby]
ferdev has joined #ruby
tgraham has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
Popple has joined #ruby
chickenf_ has quit [Quit: Computer has gone to sleep.]
varfoo has quit [Quit: WeeChat 0.4.0]
Popple has quit [Client Quit]
snovak has joined #ruby
jefflyne1 has quit [Ping timeout: 252 seconds]
winny_ has joined #ruby
quoin has joined #ruby
ravster has joined #ruby
ferdev has quit [Read error: No route to host]
ericmathison has quit [Ping timeout: 248 seconds]
zeel_ has joined #ruby
zeel has quit [Read error: Connection reset by peer]
ewnd9 has quit [Ping timeout: 260 seconds]
IceyEC has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
hackeron has quit [Remote host closed the connection]
arturaz has joined #ruby
bartocc has joined #ruby
luisalima has joined #ruby
hackeron has joined #ruby
dawkirst has joined #ruby
saysjonathan has quit [Quit: leaving]
saysjonathan has joined #ruby
k610 has joined #ruby
svector has quit [Ping timeout: 240 seconds]
row has quit [Remote host closed the connection]
eka has joined #ruby
saysjonathan has quit [Client Quit]
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
atno__ has joined #ruby
arturas_ has joined #ruby
arturaz has quit [Quit: Leaving]
arturaz has joined #ruby
arturas_ has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
saysjonathan has joined #ruby
pskrz has joined #ruby
brum has joined #ruby
atno__ has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
buibex has joined #ruby
atno has joined #ruby
Olipro has joined #ruby
ferdev has joined #ruby
shaunbaker has joined #ruby
saysjonathan has joined #ruby
hamakn has joined #ruby
<brunto_> hanmac: Could you explain me the ? in /{{(.+?)}}
lkba has quit [Ping timeout: 264 seconds]
brum has quit [Ping timeout: 240 seconds]
zeel_ has quit [Quit: grimman]
enriclluelles has quit [Remote host closed the connection]
breakingthings has joined #ruby
ferdev has quit [Read error: Connection reset by peer]
pranny has quit [Quit: Leaving.]
hamakn has quit [Ping timeout: 248 seconds]
winny_ has quit [Quit: Page closed]
<brunto_> hanmac: ooooooo wonderfull thx
tgraham is now known as tgraham|away
cody-- has joined #ruby
ekarlso has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
<lupine> doesn't matter :p
<lupine> whoops
SkuliOskarsson has quit [Quit: Leaving.]
greengriminal has quit [Remote host closed the connection]
felixjet__ has joined #ruby
tgraham|away is now known as tgraham
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
NinjaPenguin has joined #ruby
nouitfvf has joined #ruby
felixjet_ has quit [Ping timeout: 264 seconds]
row has joined #ruby
row has quit [Client Quit]
lkba has joined #ruby
row248 has joined #ruby
sethetter has joined #ruby
shaunbaker has quit [Remote host closed the connection]
felixjet_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ncopa has left #ruby ["Leaving"]
sr78ger has quit [Ping timeout: 248 seconds]
felixjet__ has quit [Ping timeout: 264 seconds]
chickenf_ has joined #ruby
agrrrr has joined #ruby
hackeron has quit [Remote host closed the connection]
SkuliOskarsson has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
hackeron has joined #ruby
kaldrenon has joined #ruby
Kricir has joined #ruby
[St_Marx] has quit [Quit: Konversation terminated!]
krawchyk has joined #ruby
brum has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
dash_ has quit [Quit: dash_]
jbpros has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
girija has joined #ruby
girija has left #ruby [#ruby]
ldnunes has quit [Ping timeout: 245 seconds]
ravster has quit [Quit: Leaving.]
luisalima has quit [Ping timeout: 264 seconds]
mlpinit has joined #ruby
larissa has quit [Quit: Leaving]
brum has quit [Ping timeout: 264 seconds]
BizarreCake has joined #ruby
dukz has joined #ruby
adkron has joined #ruby
brupeb has joined #ruby
brum has joined #ruby
chickenf_ has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
clocKwize has joined #ruby
nikeita has quit [Quit: sleep]
claymore has quit [Ping timeout: 240 seconds]
polaco_zZz is now known as polaco
mengu has quit [Remote host closed the connection]
sloucher has joined #ruby
bean__ has joined #ruby
fmcgeough has joined #ruby
agrrrr has quit [Quit: agrrrr]
snovak has joined #ruby
Xeago has quit [Remote host closed the connection]
brupeb has quit []
bean__ has quit [Client Quit]
Xeago has joined #ruby
brupeb has joined #ruby
<dukz> Hi Guys, I need help on converting a C# 3DES encryption/decryption method to ruby, but I can't get it to work. Anybody has experience on it?
nhhagen has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 240 seconds]
maroloccio has quit [Quit: WeeChat 0.4.0]
<dukz> C# gist is here: https://gist.github.com/dukz/7cc5121f04371bb4d9ee if anybodys willing to help.
Boohbah has quit [Remote host closed the connection]
bean__ has joined #ruby
SkuliOskarsson has quit [Quit: Leaving.]
krz has quit [Quit: krz]
Boohbah has joined #ruby
asobrasil has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 245 seconds]
adkron has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
nikeita has joined #ruby
cody-- has quit [Quit: derp]
kazuuu has joined #ruby
enriclluelles has joined #ruby
adkron has joined #ruby
dash_ has joined #ruby
Kar- has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yacks has quit [Quit: Leaving]
sevenseacat has joined #ruby
ehc has joined #ruby
KobraKao has quit [Quit: Saindo]
mikecmpbll has joined #ruby
ij has joined #ruby
mlpinit has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
crunch-choco has joined #ruby
vim_shim has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
Jetchisel has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
cody-- has joined #ruby
<dukz> hanmac: Yeah, I've looked through all that. I'm having trouble with the key length whenever I set it using cipher.key = enc_key
user258467 has joined #ruby
<dukz> but I'm getting OpenSSL::Cipher::CipherError: key length too short on ruby.
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
robbyoconnor has quit [Ping timeout: 264 seconds]
aagdbl has quit [Quit: Leaving.]
sambao21 has joined #ruby
obs has joined #ruby
camilasa_ has quit [Remote host closed the connection]
ravster has joined #ruby
seanmccann has quit [Ping timeout: 248 seconds]
bwwrd has joined #ruby
Elhu has joined #ruby
allanm has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 240 seconds]
<Hanmac> "Triple DES requires a 24-byte key, with Ruby this means a string with 24 characters."
vim_shim has quit [Ping timeout: 240 seconds]
geggam has quit [Quit: Leaving]
<dukz> hanmac: The given key is 16 characters, and i'm trying to figure out what that C# code is doing that makes it work. :(
<crunch-choco> it's a bit out of topic but can rails 4 be installed in any kind of server?
amacgregor has joined #ruby
<Hanmac> crunch-choco: #rubyonrails
<crunch-choco> yes :p
WoodsDog has quit []
mlpinit has joined #ruby
<wuest> dukz: check out the API they're using. It might be null-padding, or it might repeat the key, then only use the first 24 bytes. I've seen both of those strategies.
angusiguess has joined #ruby
duggiefresh has joined #ruby
user258467 has quit [Remote host closed the connection]
<dukz> wuest: They are using PKCS7 padding, i've read on it earlier, and am now trying to figure out how to put it into code in ruby.
<dukz> Thanks.
<wuest> Good luck! :)
Guest52560 has quit [Ping timeout: 246 seconds]
<Advocation> this is probably a really stupid issue, but I can't install any gems without using sudo.. Any ideas what I'm doing wrong?
jonathanwallace has quit [Ping timeout: 246 seconds]
<Hanmac> Advocation: it depends who your ruby is installed … if your ruby is installed into your system, you can only install gems into your system
jpun has quit [Ping timeout: 246 seconds]
Amnesia has joined #ruby
<Advocation> hanmac: I'm using rbenv to manage it
Amnesia is now known as Guest72338
jpun has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
<Hanmac> then maybe "gem" points to the wrong file
kaspergrubbe has joined #ruby
<Advocation> that's my gem environment
SkuliOskarsson has joined #ruby
tkuchiki has joined #ruby
kevinykc_ has joined #ruby
Xeago has joined #ruby
<Hanmac> what happend excactly when you try to install without sudo? make a pastie about
snovak has joined #ruby
wmoxam_ has joined #ruby
xjiujiu has joined #ruby
devoldmx has joined #ruby
kevinykchan has quit [Ping timeout: 256 seconds]
<Advocation> hanmac: paste doesn't seem to work - Permission denied - /Users/harry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/heroku-2.41.0/README.md
<Advocation> that's the error I'm getting when trying to install the heroku gem
theRoUS has joined #ruby
vishal has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<Hanmac> look if the folder exists
wmoxam_ has quit [Client Quit]
Kar- has joined #ruby
<Hanmac> i am not an rbenv user but i think something went wrong ...
marcgg_ has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
krawchyk has quit [Ping timeout: 248 seconds]
devoldmx has quit [Ping timeout: 248 seconds]
<Advocation> weird, it's therre
zoee has quit [Quit: zoee]
<Advocation> *there
sayan has quit [Quit: Leaving]
<Advocation> and gem list | grep heroku returns 2.41.0, which is correct..
<Hanmac> check the permissions of the folder and subfolder
<Advocation> but if I try to use the command heroku, it's saying command not found
<bean__> likely a path problem
<bean__> is the "heroku" command in your path?
<Advocation> hanmac: -rw-r--r-- 1 root staff 2269 26 Sep 12:59 README.md
flughafen has joined #ruby
<bean__> in general having stuff inside your homedir that is owned by root is bad news.
<Advocation> bean__: no, it's not, but nothing else that I use commands for is in there either :/
joofsh has joined #ruby
<Hanmac> yeah its the file and maybe it sub dirs are "root" … so as i said somethnig went wrong
Kricir has joined #ruby
sloucher has quit [Quit: sloucher]
<bean__> what is the owner of ~/.rbenv/
<Advocation> bean__: how do I check that?
browndawg has quit [Quit: Leaving.]
* bean__ just uses standard ruby installed w/ homebrew on his mac.
andynu has quit [Quit: Lost terminal]
<bean__> Advocation: ls -la ~/.rbenv/
larissa has joined #ruby
<bean__> did you by chance do like "sudo gem install herkou"
<Hanmac> or make a chown -r on the dir
<Advocation> drwxr-xr-x 5 harry staff 170 15 Aug 11:47 .
petey has joined #ruby
<Advocation> bean__: yeah I did, because it wasn't allowing me to do it without sudo..
<bean__> yeah i'd do "chown -R harry:staff ~/.rbenv/"
<Advocation> I'm assuming the -R will do it down the tree?
cj3kim has joined #ruby
hashpuppy has joined #ruby
<Advocation> also, I guess I'll need to do that as sudo?
Anticom2 has joined #ruby
<Advocation> just got loads of "Operation not permitted" without
petey has quit [Remote host closed the connection]
bwwrd has quit [Read error: Connection reset by peer]
pushpak has joined #ruby
<bean__> yeah
<bean__> you do
<bean__> sorry.
<bean__> and yep, "-R" is "recursive"
hashpuppy has quit [Client Quit]
<flughafen> does /wc
<flughafen> err
flughafen has left #ruby [#ruby]
kaspergrubbe has quit [Remote host closed the connection]
bluenemo has joined #ruby
ttt has quit [Remote host closed the connection]
<Advocation> bean__: thanks. I'm fairly new to this stuff :)
<bean__> np.
<bean__> learning some basic *nix utils is a good idea :)
<Advocation> yeah, I think I might have to!
Kricir has quit [Ping timeout: 260 seconds]
<sweeper> Advocation: learn about ack, you will wub it
<Advocation> I'm sill getting 'command not found' when trying to use heroku..
Anticom has quit [Ping timeout: 248 seconds]
<Hanmac> on a mac, be happy that you can install ruby ,P
burlyscudd has joined #ruby
<bean__> Advocation: yep, because it's not on your path :)
mlpinit has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
<Advocation> so how come I can run jekyll even though that's not on my path?
mlpinit has joined #ruby
* Hanmac sings "follow the yellow brick path"
<bean__> because it is in your path.
riginding has quit [Quit: Lost terminal]
<bean__> your CLI has no knowledge of things it can run outside of your $PATH
<Advocation> ok, but this is my $PATH - /Users/harry/.rbenv/shims:/Users/harry/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
snyp has joined #ruby
hogeo_ has quit [Remote host closed the connection]
<tobiasvl> which jekyll
<Advocation> no jekyll in there.. or is it in a sub directory of it
<bean__> Advocation: yeah, "which jekyll"
nikeita has quit [Quit: bye bye]
<Advocation> ahh
<tobiasvl> Advocation: jekyll is probably located in one of those directories
jerius has joined #ruby
<Advocation> yeah, it is
<tobiasvl> jekyll doesn't need to be there specifically
<tobiasvl> yeah'
<Advocation> hah
<Advocation> ok, that makes sense
<tobiasvl> the PATH is just where the CLI looks for programs
<bean__> so, herkou likely isn't.
allsystemsarego has quit [Read error: Connection reset by peer]
<Advocation> ok, perfect
<Advocation> so I need to do which heroku, and then add that path to my $PATH?
<bean__> maybe "gem install heroku" now
<workmad3> Advocation: no
persand has quit [Ping timeout: 245 seconds]
<bean__> nope, `which` looks at your path.
<bean__> :)
<Advocation> hah ok
<Advocation> I'm doing gem install heroku
Mon_Ouie has joined #ruby
<bean__> I'd try reinstalling the herkou gem and seeing if it magically appears.
<workmad3> Advocation: you need to find where the heroku toolbelt is installed to and add that to you path
Bry8Star{T2 has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
<Advocation> workmad3: ah shoot, I didn't install that
<Advocation> that explains a lot
dangerousdave has joined #ruby
joofsh has quit [Remote host closed the connection]
allanm has joined #ruby
<workmad3> Advocation: yeah, heroku stopped distributing updates to the toolbelt as gems, they have their own installer now
<Advocation> perfect, I installed the toolbelt and it's all working fine now :)
<Advocation> thanks you guys!
<Hanmac> its own installer, with own NSA backdoor? ;P
amacgregor has quit [Ping timeout: 240 seconds]
obs has quit [Quit: Konversation terminated!]
burlyscudd has quit [Quit: Leaving.]
Phobos has joined #ruby
<Phobos> Hello guys
dkamioka has joined #ruby
drizz has quit [Read error: Connection reset by peer]
ananthakumaran1 has quit [Quit: Leaving.]
obs has joined #ruby
himsin has quit [Quit: himsin]
<ravster> hello
petey has joined #ruby
jefflyne1 has joined #ruby
wallerdev has joined #ruby
<Phobos> I am really struggling in achieving something basic in ruby.. All I wanted to do is this simple inheritance use case.. I have a class vehicle with name attribute, and a child class that inherite the name parent attribute so sometimes it override it sometimes it doesn't
<Phobos> My problem is that I can't do something like : car = Car.new
<hoelzro> Phobos: would you mind pasting some code on a pastebin and sending us a link?
persand has joined #ruby
<Phobos> car.name #default value of the parent
<Phobos> hoelzro, OK sir.. even it's so simple use case:)
<Phobos> ok
pushpak has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
deception has joined #ruby
SkuliOskarsson has quit [Ping timeout: 264 seconds]
gwb3 has joined #ruby
codecop has quit [Remote host closed the connection]
nbrosnahan has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
cody-- has quit [Quit: derp]
bartocc has quit [Read error: Connection reset by peer]
<Phobos> hoelzro, tobiasvl this is my use case https://gist.github.com/anonymous/8401a9485ac2b9d7b65b
axl_ has joined #ruby
<hoelzro> ok
<hoelzro> so here's what you're doing wrong
RORgasm has joined #ruby
<hoelzro> you're assigning to @name in the class body
<hoelzro> which is legal, and has its uses
<Phobos> all I wanted to do is to access the default name attributes of the parent class when I dont set the subclass attribute
yfeldblum has joined #ruby
<hoelzro> but it's assigning to the instance variable of a different self than you'd expect
<bean__> yeah, you need to assign the @name in the initialize method
gcds has quit [Quit: gcds]
<hoelzro> you should probably define initialize and set @name there
<hoelzro> er, what bean__ said =)
senayar has quit [Remote host closed the connection]
rbennacer has left #ruby ["Leaving"]
cody-- has joined #ruby
kvirani has joined #ruby
obs has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
<Phobos> so to assign default values to attributes we need to always do that initialize method ?
elux has joined #ruby
<hoelzro> that's not the only way to do it
BillCriswell has joined #ruby
<hoelzro> but that's pretty typical
<waxjar> or any other instance method
jlast has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
snyp has quit [Quit: leaving]
<waxjar> (you'll have to call it first, tho)
<bean__> pretty typical, though
<Phobos> thnx bean__
obs has joined #ruby
<bean__> whenever you instantiate a new class, it calls the "initialize" method
momomomomo has joined #ruby
phantasm66 has joined #ruby
bartocc has joined #ruby
<Phobos> bean__, but this just a super class maybe it's never instanciated explicitly so why using initialize ?
<bean__> Phobos: because it /is/ getting called
<bean__> as it is the super class.
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
huoxito has joined #ruby
<waxjar> the class method "new" initializes an object, calls initialize on it, then returns the instance
<Phobos> hhh ok now we are talking with Ruby philosophy :)
<bean__> Phobos: https://gist.github.com/daniellockard/a9ce49f55f1e3aba279c if you wanted to both call something in the superclass and also do something new in the child class.
<Phobos> bean__, ok thanks
<bean__> np.
iamjarvo has joined #ruby
flughafen has joined #ruby
joonty_ has joined #ruby
SHyx0rmZ has joined #ruby
senayar has joined #ruby
randomnick_ has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
gazarsgo has joined #ruby
sjltaylo_ has joined #ruby
fgo has quit [Remote host closed the connection]
anonymuse has joined #ruby
mengu has joined #ruby
<aganov> Hi all, I have implemented multithreaded TcpSever (with short-living connections) but my main process memory is very hight, 200 MB, I've also noticed that there are many TIME_WAIT connections?
noop has quit [Ping timeout: 264 seconds]
<aganov> Is there any way i can reduce memory usage/ TIME_WAIT connections?
cads has joined #ruby
ccooke is now known as ccooke_
dash_ has quit [Quit: dash_]
jbpros has quit [Quit: jbpros]
<bean__> aganov: so, TIME_WAIT is actually OS specific. Once you close the TCP connection the OS leaves the socket connection open for a certain amount of time.
ahawkins has quit [Quit: leaving]
<bean__> This is apparently done to prevent packet colission
<Phobos> bean__, I have a last question sorry.. I heard that in ruby there is something called class instance variables which is the best solution for our current use case.. Is that true ? and how to implement that in object context rather than class context ?
burlyscudd has joined #ruby
<bean__> Phobos: everything (well, nearly everything) in ruby is an object
<Phobos> And what's about module mixing ? Can I use that instead of inheritance ?
<bean__> I can't say i've used modules much
<bean__> short of my cute little colors.rb module
<bean__> to add colored output to all of the things.
ccooke_ is now known as ccooke
<Phobos> bean__, OK ! but here to access for exemple class instance variable.. we call the Class directly for example : Car.name instead of Car.new etc...
Catie has quit [Ping timeout: 248 seconds]
<bean__> mind explaining why you want to do that?
<Phobos> bean__, OK because I've found those information in Eloquent ruby book
<Phobos> I think it's a famous one
* bean__ hasn't read any ruby books.
<bean__> not a big fan of reading books to learn programming
rhys has joined #ruby
Catie has joined #ruby
<Phobos> bean__, To acheive the same thing as we said but in "RUBY WAY"
obs has quit [Quit: Konversation terminated!]
balboah has joined #ruby
<aganov> bean__, ok about TIME_WAIT, any idea why ruby process is allocating that much memory
<bean__> Phobos: I'd say what I showed you is a completely valid "ruby way"
balboah has left #ruby [#ruby]
<bean__> aganov: not without seeing code :)
<Phobos> bean__, OK friend :)
<Phobos> bean__, thank you so much
obs has joined #ruby
<bean__> Phobos: I'd only ever use a class variable is for things that you'd want to be constant for every class, and never change. I rarely use them though.
xk_id has quit [Quit:
mlpinit_ has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
<Phobos> bean__, because here in the examples that I have found in that book is a very similar use case to the one we discussed earlier.. And the author used class instance variables to solve that
dhruvasagar has joined #ruby
jefflyne1 has quit [Ping timeout: 252 seconds]
snyp has joined #ruby
lfox has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
evenix has joined #ruby
ananthakumaran has joined #ruby
coderhs has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
vim_shim has joined #ruby
mary5030 has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
<Phobos> bean__, OK I will adapt authors ideas for the same use case... And we will share and discuss that together...
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
burlyscudd has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
<bean__> sure, i'll look at it if i get time
xjiujiu has quit [Read error: Connection reset by peer]
petey_ has joined #ruby
<bean__> aganov: odd. I'm going to try and reproduce it locally here.
tagrudev has quit [Quit: Me = Awesome]
<Phobos> bean__, Of course friend take your time.. All I need is your precious advices :)
petey has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
<aganov> bean__, https://gist.github.com/aganov/d2dcaeff66350bc7a560#file-test-rb this is what i'm using for tests
krz has joined #ruby
<bean__> aganov: what OS is this?
freerobby has joined #ruby
<aganov> freebsd
<aganov> bean__, production is freebds, i'm testing locally on ubuntu
<bean__> ah, i see.
<bean__> yeah, i'm not able to reproduce reliably on mac
<bean__> what ruby version are you on
mrsolo has joined #ruby
<aganov> bean__, 1.9.3
<aganov> maybe i need to give a try to 2.0
<aganov> on*
snyp has left #ruby [#ruby]
<bean__> naw
kaspergrubbe has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
tonni has quit [Ping timeout: 245 seconds]
RDash[AW] is now known as RDash
Kricir has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
browndawg has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
chickenf_ has joined #ruby
sjltaylo_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maycon has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
jibi has quit [Quit: .]
leehambley has quit [Ping timeout: 248 seconds]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jibi has joined #ruby
angoragoats has left #ruby [#ruby]
fgo has joined #ruby
stoffus has quit [Quit: leaving]
lysw123 has joined #ruby
leehambley has joined #ruby
lysw123 has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
<aganov> bean__, same on 2.0. btw, i've forgot to put require "net/telnet" in the test.rb file, if you've made some tests...
cauffe has joined #ruby
<bean__> ah, yeah
<bean__> i was wondering why it was just not doing anything
<bean__> lol
<aganov> :D sorry
* bean__ is not nearly caffeinated enough.
banisterfiend has joined #ruby
rins has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
amarraja has joined #ruby
kpshek has joined #ruby
<bean__> aganov: i'm seeing VirtualMemory grow pretty big, but not seeing any sort of 'real" memory usage
duggiefr_ has joined #ruby
maycon has quit [Ping timeout: 264 seconds]
ttt has joined #ruby
VTLob has joined #ruby
fgo has quit [Ping timeout: 248 seconds]
tobago has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
<aganov> bean__, maybe this is happening only on freebsd, there is real memory allocated, thank you i'll try to find out what is happening
mmitchell has joined #ruby
duggiefresh has quit [Ping timeout: 248 seconds]
kristiandelay has quit [Remote host closed the connection]
burlyscudd has joined #ruby
ttt has quit [Ping timeout: 252 seconds]
dash_ has joined #ruby
chicken__ has joined #ruby
forrest has joined #ruby
brum has quit [Remote host closed the connection]
rahulkmr has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Quit: Leaving...]
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
chickenf_ has quit [Ping timeout: 260 seconds]
alex__c2022 has joined #ruby
fudanchii has joined #ruby
tkuchiki has quit [Remote host closed the connection]
anonymus_ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
anonymuse has quit [Read error: Operation timed out]
RAMPKORV has quit [Remote host closed the connection]
camilasan has joined #ruby
tabolario has joined #ruby
v0n has joined #ruby
arturaz has quit [Read error: Operation timed out]
MrThePlague has joined #ruby
bluenemo has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
Gooder`` has quit [Ping timeout: 256 seconds]
camilasan has quit [Remote host closed the connection]
chicken__ has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
coderhs has quit [Quit: Leaving]
mercwithamouth has joined #ruby
chickenf_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
camilasan has joined #ruby
vishal has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
petey_ has quit [Ping timeout: 240 seconds]
Bira_ has joined #ruby
rippa has joined #ruby
dangerousdave has joined #ruby
krawchyk has joined #ruby
xk_id has joined #ruby
codecop has joined #ruby
hogeo has joined #ruby
cads has quit [Ping timeout: 264 seconds]
mac_ has joined #ruby
wallerdev has joined #ruby
krawchyk has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
rahulkmr has joined #ruby
iamjarvo_ has joined #ruby
xk_id has quit [Ping timeout: 246 seconds]
iamjarvo_ has quit [Remote host closed the connection]
persand has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
timonv has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
jlast_ has joined #ruby
quoin has quit [Remote host closed the connection]
claymore has joined #ruby
duggiefr_ has quit [Ping timeout: 256 seconds]
alup has quit [Quit: Leaving]
quoin has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
persand has joined #ruby
sevenseacat has quit [Quit: Leaving.]
GeissT has quit [Read error: Connection reset by peer]
baordog_ has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 245 seconds]
<Hanmac> shevy: look at this cake: https://i.chzbgr.com/maxW500/7819639808/h81E3A1B8/
pwh has joined #ruby
petey has joined #ruby
drizz has joined #ruby
krz has quit [Quit: krz]
krawchyk has joined #ruby
quoin has quit [Ping timeout: 240 seconds]
mgorbach has joined #ruby
ephemerian has quit [Quit: Leaving.]
JumpMast3r has quit [Quit: JumpMast3r]
nari has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
anonymus_ has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
anonymuse has joined #ruby
dallasm_ has joined #ruby
mrsolo has joined #ruby
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
Nogbit has joined #ruby
aryaching has joined #ruby
aganov has quit [Read error: Connection reset by peer]
jefflyne1 has joined #ruby
senayar has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
dallasm_ has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Monie has joined #ruby
jlast_ has quit [Remote host closed the connection]
sectionme has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
bluenemo has quit [Ping timeout: 260 seconds]
chickenf_ has quit [Ping timeout: 245 seconds]
sheerun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching_ has joined #ruby
__userna1 has joined #ruby
Kricir has joined #ruby
sheerun has joined #ruby
mercwithamouth has joined #ruby
sheerun has quit [Remote host closed the connection]
emergion has joined #ruby
peregrine81 has joined #ruby
emergion has quit [Client Quit]
aryaching has quit [Ping timeout: 245 seconds]
GoldenGiant___ has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
dash_ has quit [Quit: dash_]
krawchyk has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 245 seconds]
araujo has quit [Quit: Leaving]
Alina-malina has joined #ruby
bdnchr has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Soda has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nfk has joined #ruby
bdnchr_ has joined #ruby
rahulkmr has quit [Ping timeout: 246 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cauffe has quit [Ping timeout: 260 seconds]
zz_tsykoduk is now known as tsykoduk
S0da has joined #ruby
JumpMast3r has joined #ruby
ij has quit [Ping timeout: 260 seconds]
JumpMast3r has quit [Client Quit]
Uranio has joined #ruby
leonidlm has joined #ruby
row248 has quit [Read error: Operation timed out]
kazuuu has quit [Remote host closed the connection]
nbrosnahan has joined #ruby
bricker`1A has joined #ruby
bdnchr has quit [Ping timeout: 268 seconds]
bricker`LA has quit [Ping timeout: 248 seconds]
bdnchr_ has quit [Ping timeout: 240 seconds]
kreantos has quit [Remote host closed the connection]
bluenemo has joined #ruby
Soda has quit [Ping timeout: 256 seconds]
Anticom2 is now known as Anticom
krawchyk has joined #ruby
krawchyk has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
kobain has joined #ruby
freezey has joined #ruby
TMM has joined #ruby
noop has joined #ruby
ssvo has joined #ruby
decoponyo has joined #ruby
Gooder`` has joined #ruby
krawchyk has joined #ruby
tkuchiki has quit [Remote host closed the connection]
decoponio has quit [Ping timeout: 248 seconds]
Guest71488 is now known as riku
iamjarvo has joined #ruby
pwh has quit [Quit: pwh]
riku is now known as Guest55008
lurch_ has quit [Quit: lurch_]
kaspergrubbe has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Remote host closed the connection]
rhys has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
rhys has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
dzhulk has quit [Quit: Leaving.]
iamjarvo has joined #ruby
__username__ has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
baggypants has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
iamjarvo_ has quit [Ping timeout: 256 seconds]
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
maletor has joined #ruby
__userna1 has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
einarj has quit [Remote host closed the connection]
sarlalian has joined #ruby
maycon has quit [Ping timeout: 264 seconds]
sarlalian has quit [Client Quit]
sarlalian has joined #ruby
peregrine81 has quit []
johnnymoo_logsta has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Kar- has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby
Nogbit has left #ruby [#ruby]
AdmiraI has joined #ruby
mlpinit_ has quit [Ping timeout: 240 seconds]
forrest has quit [Quit: Leaving]
dawkirst_ has joined #ruby
Anticom has quit [Ping timeout: 248 seconds]
johnnymoo_logsta has joined #ruby
johnnymoo_logsta has quit [Remote host closed the connection]
johnnymoo_logsta has joined #ruby
mmitchell has quit [Read error: Connection reset by peer]
tgraham has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
tgraham has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
gener1c has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has quit [Quit: Advocation]
iamjarvo_ has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
dawkirst_ has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 245 seconds]
amarraja has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd has joined #ruby
evelyette_ has quit [Read error: Connection reset by peer]
iamjarvo has quit [Ping timeout: 264 seconds]
existensil has quit [Ping timeout: 264 seconds]
evelyette_ has joined #ruby
Kricir has joined #ruby
Phobos has quit [Quit: Leaving]
taion809 is now known as zz_taion809
krawchyk has quit [Remote host closed the connection]
existensil has joined #ruby
failshell has joined #ruby
iamjarvo has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
iamjarvo has quit [Remote host closed the connection]
KobraKao has joined #ruby
iamjarvo has joined #ruby
schaerli has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 268 seconds]
cj3kim has quit [Ping timeout: 245 seconds]
cody-- has quit [Quit: derp]
cj3kim_ has joined #ruby
haxrbyte has joined #ruby
popl has joined #ruby
mercwithamouth has joined #ruby
heidi has joined #ruby
filipe__ has quit [Ping timeout: 260 seconds]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
pleal has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
Monie has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
kazuuu has joined #ruby
RORgasm has joined #ruby
krawchyk has joined #ruby
Gooder`` has quit [Read error: Connection reset by peer]
pleal has quit [Remote host closed the connection]
raphaelivan has joined #ruby
browndawg has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
Voodoofish430 has joined #ruby
pwh has joined #ruby
pleal has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
buibex has quit [Remote host closed the connection]
dzhulk has joined #ruby
chrisja has joined #ruby
xk_id has joined #ruby
quoin has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
raphaelivan has quit [Quit: Leaving.]
Isaac__ has joined #ruby
noname001 has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
maletor has quit [Quit: Computer has gone to sleep.]
mgorbach has quit [Quit: ZNC - http://znc.in]
pleal has quit [Read error: Connection reset by peer]
haxrbyte_ has quit [Ping timeout: 248 seconds]
pleal has joined #ruby
quoin has quit [Ping timeout: 260 seconds]
cpruitt has joined #ruby
dash_ has joined #ruby
test-fxos has joined #ruby
test-fxos has quit [Remote host closed the connection]
rahulkmr has joined #ruby
apeiros has quit [Remote host closed the connection]
mgorbach has joined #ruby
pleal has quit [Read error: Connection reset by peer]
jb41 has quit [Ping timeout: 260 seconds]
T_T has joined #ruby
pleal has joined #ruby
wang has quit [Ping timeout: 268 seconds]
baggypants has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wang has joined #ruby
benlieb has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
chairabanta has joined #ruby
elaptics is now known as elaptics`away
amacgregor has joined #ruby
dankest has joined #ruby
raphaelivan has joined #ruby
maletor has joined #ruby
Isaac__ has quit [Quit: leaving]
shaunbaker has joined #ruby
haxrbyte has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
k610 has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
haxrbyte_ has joined #ruby
enriclluelles has quit [Remote host closed the connection]
iliketurtles has joined #ruby
dkamioka has quit [Read error: Connection reset by peer]
raphaelivan has quit [Client Quit]
Hanmac has quit [Quit: Leaving.]
dkamioka has joined #ruby
GoldenGiant___ has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
AdmiraI has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
havenwood has joined #ruby
Nogbit has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
pwh has quit [Quit: pwh]
haxrbyte has joined #ruby
shaunbaker has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
Hanmac has joined #ruby
freezey has quit [Remote host closed the connection]
failshell has joined #ruby
freezey has joined #ruby
coderhs has joined #ruby
bartocc has quit [Quit: bartocc]
<Eiam> html2haml down for anyone ?
endash has joined #ruby
DanKnox_away is now known as DanKnox
petey has quit [Remote host closed the connection]
<Eiam> damn
haxrbyte has quit [Ping timeout: 260 seconds]
Nogbit has quit [Quit: Leaving.]
Nogbit has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
Ripp__ has joined #ruby
browndawg has joined #ruby
obs has quit [Quit: Konversation terminated!]
KobraKao has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby
tacos1de has quit [Remote host closed the connection]
quoin has joined #ruby
saarinen has joined #ruby
<deception> I have a client who will be sending purchase orders via CSV and our order entry software only accepts XML. Would using an Object Relational Mapper be the best way to accomplish the conversion?
testtst has joined #ruby
tacos1de has joined #ruby
Nogbit has quit [Quit: Leaving.]
adeponte has joined #ruby
Nogbit has joined #ruby
mlpinit has joined #ruby
lukec has quit [Quit: lukec]
camilasan has quit [Remote host closed the connection]
testtst is now known as testtst2
<duke_nukem> ORMs don't have much to do with data conversion. You probably want to add a step in somewhere that converts the CSV to XML
pwh has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
cody-- has joined #ruby
kevinykc_ has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
<deception> duke_nukem, What is the best tool or library to do the conversion or would I just parse the CSV and write the output logic myself?
kirun has joined #ruby
<canton7> yeah, there are some nice libraries for writing xml
shaunbaker has joined #ruby
<duke_nukem> deception: well parsing the CSV would be pretty easy since there's a native gem for that, I haven't done any XML stuff in ruby yet so someone else could surely direct you there
testtst2 has quit [Ping timeout: 240 seconds]
<duke_nukem> shouldn't be very hard at all really
Nogbit has quit [Quit: Leaving.]
Nogbit has joined #ruby
quoin has quit [Ping timeout: 256 seconds]
<canton7> nokogiri has a nice xml writer imo
enriclluelles has joined #ruby
dodosan has joined #ruby
<deception> I already have the rows parsed and imported into an array. I'll take a look at nokogiri and see if I can build the XML file the way I need it to be. Thanks!
Falcore has joined #ruby
<duke_nukem> nokogiri is pretty sweet
<Hanmac> shevy !! the found something like "Photonic molecules" … do you know that what means? ;D
kaldrenon has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
MrThePlague has quit [Remote host closed the connection]
raphaelivan has joined #ruby
kaspergrubbe has joined #ruby
kaldrenon has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0rn has joined #ruby
Guest55008 is now known as riku
riku is now known as Guest22892
apeiros has joined #ruby
Nogbit has quit [Client Quit]
larissa has quit [Quit: Leaving]
Nogbit has joined #ruby
burlyscudd has joined #ruby
octoberry has joined #ruby
nomenkun has quit [Remote host closed the connection]
Blue_Ice_ is now known as Blue_Ice
kaldrenon has quit [Ping timeout: 260 seconds]
c0rn has quit [Ping timeout: 248 seconds]
rupee has joined #ruby
i_s has joined #ruby
whunt has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
kaldrenon has joined #ruby
smigg has joined #ruby
__username__ has quit [Ping timeout: 245 seconds]
Nogbit has quit [Quit: Leaving.]
c0rn has joined #ruby
Nogbit has joined #ruby
toastynerd has quit [Remote host closed the connection]
Nenor has joined #ruby
lfox has quit [Quit: ZZZzzz…]
bean__ has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
thinkclay has joined #ruby
rahulkmr1 has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
Nogbit has quit [Client Quit]
Nogbit has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
rahulkmr has quit [Ping timeout: 240 seconds]
interactionjaxsn has joined #ruby
evelyette_ has quit [Remote host closed the connection]
Tamae has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
evelyette_ has joined #ruby
blaxter has quit [Quit: foo]
KobraKao has joined #ruby
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__username__ has joined #ruby
lukec has joined #ruby
relix has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 245 seconds]
iravan has joined #ruby
JumpMast3r has joined #ruby
SkuliOskarsson has joined #ruby
SkuliOskarsson has quit [Client Quit]
lsoa has joined #ruby
haxrbyte has joined #ruby
baggypants has joined #ruby
jaimef has quit [Excess Flood]
pskrz has quit [Read error: Connection reset by peer]
mac_ has quit [Remote host closed the connection]
lsoa has quit [Client Quit]
jaimef has joined #ruby
lsoa has joined #ruby
baggypants has quit [Read error: Operation timed out]
Elhu has joined #ruby
dsferreira has joined #ruby
sailias has joined #ruby
lsoa has quit [Quit: WeeChat 0.4.1]
jefflyne1 has quit [Quit: WeeChat 0.4.1]
rupee has quit [Quit: Leaving]
SkuliOskarsson has joined #ruby
deception_ has joined #ruby
deception_ has quit [Read error: Connection reset by peer]
deception has quit [Quit: Goodbye]
Guest95440 has quit [Remote host closed the connection]
jb41 has joined #ruby
ukd1 has joined #ruby
lsoa has joined #ruby
Xeago has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
gazarsgo has quit [Quit: gazarsgo]
kaspergrubbe has quit [Remote host closed the connection]
julweber_ has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
lsoa has quit [Client Quit]
jefflyne has joined #ruby
lsoa has joined #ruby
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
kleinerdrache has joined #ruby
lewis has joined #ruby
lewis has quit [Changing host]
lewis has joined #ruby
lfox has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
zeade has joined #ruby
Guest22892 is now known as riku-
kvirani has quit [Ping timeout: 248 seconds]
gazarsgo has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Poir0t has joined #ruby
Poir0t has left #ruby [#ruby]
ryandeussing has joined #ruby
digifiv5e has quit [Read error: Operation timed out]
vishal has quit [Remote host closed the connection]
jumbo-jamba has joined #ruby
<jumbo-jamba> ruby is shit
<canton7> this week seems to be troll week
brennanMKE has joined #ruby
<Morrolan> Every language is shit. Some more than others.
<apeiros> indeed
<Morrolan> Generally we try to stick to those which are the least shit.
<onewheelskyward>
* canton7 waves goodbye
jumbo-jamba was kicked from #ruby by apeiros [good bye troll]
RichardBaker has joined #ruby
brupeb has quit [Remote host closed the connection]
shaunbaker has quit [Ping timeout: 260 seconds]
kvirani has joined #ruby
adeponte has quit [Remote host closed the connection]
travisjeffery has joined #ruby
RichardBaker has quit [Client Quit]
digifiv5e has joined #ruby
digifiv5e is now known as Guest41596
anonymus_ has joined #ruby
bean__ has joined #ruby
shaunbaker has joined #ruby
RichardBaker has joined #ruby
klrr_ has joined #ruby
cj3kim_ has quit [Ping timeout: 252 seconds]
<klrr_> hai, ruby has types?
tatsuya_o has quit [Remote host closed the connection]
<cout> does the world have oceans?
adeponte has joined #ruby
<MrZYX> mmh
<MrZYX> sometimes?
julweber has joined #ruby
freezey has joined #ruby
<klrr_> does it have type level simply typed lambda calculus?
stkowski has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
<klrr_> does it offer build in support for safety+
_adeponte has joined #ruby
<klrr_> ?
travisjeffery has quit [Client Quit]
anonymuse has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Quit: Leaving.]
<lectrick> is it troll day on #ruby or something?
<canton7> it is strongly typed, but doesn't have type hinting
<klrr_> canton7: okey thanks
GoldenGiant has joined #ruby
<canton7> (preferring duck typing instead, e.g. some_random_object.respond_to?(:method_i_want_to_call)
<klrr_> duck typing=weakly typed polymorphism?
Boohbah has quit [Ping timeout: 240 seconds]
<canton7> I sometimes wish ruby supported some sort of implicit interfaces. so 'check that this object implements all of these methods'
mercwithamouth has quit [Ping timeout: 256 seconds]
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> klrr_: $SAFE is set to 0 by default but is adjustable. You can taint objects.
<klrr_> okey cool
<havenwood> seldom-used but there
<klrr_> i will learn basics of ruby in a course
Boohbah has joined #ruby
<klrr_> i will also learn some OOP i hope
<Morrolan> canton7: Pft, if it blows up, blame the caller. ;)
petey has joined #ruby
<canton7> Morrolan, I'd rather control where it blows up. I'm still blaming the caller :)
quoin has joined #ruby
awkisopen has quit [Quit: ZNC - http://znc.in]
amacgregor has quit [Ping timeout: 245 seconds]
klrr_ has left #ruby [#ruby]
fgo has quit [Remote host closed the connection]
TMM has quit [Quit: Ex-Chat]
<havenwood> My quadcopter shipped but still 3 business days from arriving. :O
<apeiros> canton7: easy to do
klrr_ has joined #ruby
<klrr_> what did Morrolan do?
larissa has joined #ruby
<canton7> apeiros, I'm sure. I keep meaning to have a crack at it
<klrr_> canton7: what did uyo do?
chickenf_ has joined #ruby
<apeiros> class Object; def implements?(module); module.public_instance_methods(false).all? { |meth| respond_to?(meth) }; end
<klrr_> 20:07 Morrolan [Morrolan@morrolan.ch] requested CTCP VERSION from klrr_:
k610 has quit [Ping timeout: 256 seconds]
AdmiraI has joined #ruby
<apeiros> oh, +end
<canton7> nice
<havenwood> Artoo looks like a neat gem for controlling Ar.Drone with Jim Weirich argus: https://github.com/hybridgroup/artoo#readme
<Morrolan> CTCP is a protocol which IRC clients use to request information from each other.
<havenwood> but clojure lib looks more complete
<canton7> be nice to have argument checking on that too, maybe? dunno, it starts to get more complicated
awkisopen has joined #ruby
klrr_ has left #ruby [#ruby]
quoin has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
GoldenGiant has quit [Ping timeout: 264 seconds]
<apeiros> class ImplementationMismatchError < ArgumentError; end; def implement!(module, message=nil); raise ImplementationMismatchError, (message || "#{inspect} was expected to implement #{module} but does not"); end
<apeiros> def flubbydoo(arg); arg.implement! MyProtocol; …
<apeiros> or assert_implements!
<apeiros> I wrote something like that ~7y ago. never used it because I'm too much of a performance fetishist.
d45h has joined #ruby
dodosan has quit [Remote host closed the connection]
dodosan has joined #ruby
carraroj has joined #ruby
interactionjaxsn has joined #ruby
<apeiros> btw. Morrolan - your website works! :)
browndawg has left #ruby [#ruby]
Ripp__ has quit []
mityaz has joined #ruby
Desert_eagle has quit [Quit: Leaving]
dodosan has quit [Read error: Connection reset by peer]
Monie has joined #ruby
OdNairy has quit [Ping timeout: 264 seconds]
octoberry has quit [Ping timeout: 264 seconds]
alex__c2022 has joined #ruby
ghost2060 has joined #ruby
dodosan has joined #ruby
shaunbaker has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
GoldenGiant has joined #ruby
rupee has joined #ruby
yacks has joined #ruby
tvw has quit [Read error: Connection reset by peer]
saysjonathan has quit [Quit: leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allaire has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
pwh has quit [Quit: pwh]
burlyscudd has joined #ruby
saysjonathan has joined #ruby
julweber has quit [Remote host closed the connection]
mrsolo has joined #ruby
twoism has joined #ruby
Falcore has quit [Quit: Falcore]
Elhu has quit [Quit: Computer has gone to sleep.]
saysjonathan has quit [Client Quit]
ColKurtz has joined #ruby
shadoi has joined #ruby
cj3kim_ has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
saysjonathan has joined #ruby
snyp has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
Kruppe has joined #ruby
<Morrolan> apeiros: Hah. :)
snyp has left #ruby [#ruby]
pwh has joined #ruby
Ripp__ has joined #ruby
gwb3 has quit [Remote host closed the connection]
gwb3 has joined #ruby
asobrasil has quit [Quit: Leaving.]
chickenf_ has quit [Quit: Computer has gone to sleep.]
gwb3 has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 240 seconds]
<Uranio> there is any camping (a ruby web framework) user here?
petey has quit [Remote host closed the connection]
Xeago has joined #ruby
Elhu has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
skaflem has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
mklappst_ has joined #ruby
dangerousdave has joined #ruby
iravan has quit [Ping timeout: 260 seconds]
Tearan has joined #ruby
netQT_ has joined #ruby
_adeponte has quit [Remote host closed the connection]
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest41596 has quit [Ping timeout: 264 seconds]
relix has joined #ruby
digifiv5e has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
digifiv5e is now known as Guest64730
jerrad has joined #ruby
rezzack has joined #ruby
Guest64730 has quit [Changing host]
Guest64730 has joined #ruby
Guest64730 is now known as guyz
Michael has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
netQT_ has quit [Remote host closed the connection]
Michael is now known as Guest29237
Fernandos has joined #ruby
<Fernandos> hi
DrCode has quit [Ping timeout: 240 seconds]
crunch-choco has left #ruby [#ruby]
<Fernandos> I haven't used the irb for years.. but need to create a test account and running this command fails: AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password') if direction == :up
<Fernandos> I'm getting: NameError: undefined local variable or method `direction' for main:Object
joesavage has joined #ruby
<Fernandos> NameError: uninitialized constant AdminUser (without if direction)
zacts has quit [Quit: leaving]
tgraham is now known as tgraham|away
petey has joined #ruby
<canton7> Fernandos, have you require'd the files which define those classes and variables?
Xeago_ has joined #ruby
joofsh has quit [Read error: No route to host]
joofsh has joined #ruby
DrCode has joined #ruby
<Fernandos> hmm no.. do I need to do that, which files should I require?
Bry8Star{T2 has joined #ruby
tatsuya_o has joined #ruby
<Fernandos> would irb -I repo/ work?
Guest72338 is now known as Amnesia
Amnesia has quit [Changing host]
Amnesia has joined #ruby
zeade has quit [Quit: Leaving.]
burlyscudd has quit [Ping timeout: 246 seconds]
<canton7> you'd still need to require the files you need. irb doesn't magically include all files in a particular dir
ebobby has joined #ruby
zeade has joined #ruby
jlast_ has joined #ruby
BizarreCake has quit [Quit: Leaving]
allaire has quit []
<sweeper> Fernandos: if this is a rails app, go into the repo and type rails c
<Fernandos> ok
<sweeper> that WILL magically include everything :)
m8 has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
ehaliewicz has joined #ruby
kil0byte has quit [Remote host closed the connection]
<Fernandos> nice, will try that
jlast has quit [Ping timeout: 264 seconds]
kil0byte has joined #ruby
RichardBaker has joined #ruby
<joesavage> I'm trying to accomplish some really basic async functionality out of some synchronous methods I've written using SSLSocket.syswrite -- people seem to be recommending stuff like EventMachine, but it seems really overkill and complicated for this situation. Any suggestions?
kil0byte has quit [Remote host closed the connection]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
ebobby has left #ruby [#ruby]
i_s has quit [Remote host closed the connection]
burlyscudd has joined #ruby
chairabanta has quit [Quit: Leaving...]
SkuliOskarsson has quit [Quit: Leaving.]
ij has joined #ruby
quoin has joined #ruby
Kricir has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
petey has quit [Remote host closed the connection]
anonymus_ has quit [Remote host closed the connection]
anonymuse has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
<Fernandos> sweeper: thank you it almost worked. I could successfully add: AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')
Bry8Star{T2 has quit [Remote host closed the connection]
Falcore has joined #ruby
<Fernandos> sweeper: but I cannot login with that user and password.. any ideas? It keeps telling me that the password/username is wrong
tgraham|away is now known as tgraham
sailias has quit [Ping timeout: 248 seconds]
zets has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 248 seconds]
spyderma_ has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
rudisimo has joined #ruby
dash_ has quit [Ping timeout: 245 seconds]
amacgregor has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
RichardBaker has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
keee has quit [Ping timeout: 245 seconds]
johnnyfuchs has joined #ruby
martxel has quit [Ping timeout: 245 seconds]
pwh has quit [Quit: pwh]
ehaliewicz has quit [Read error: Connection reset by peer]
benlieb has quit [Ping timeout: 260 seconds]
zarubin has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ehaliewicz has joined #ruby
SkuliOskarsson has joined #ruby
i_s has joined #ruby
keee has joined #ruby
gcds has joined #ruby
petey has joined #ruby
<sweeper> Fernandos: that's going to depend on your application, and how it saves passwords, wtc
<sweeper> *etc
mdst_ has joined #ruby
k610 has joined #ruby
alvaro_o_ has joined #ruby
sailias has joined #ruby
mist has quit [Remote host closed the connection]
Guest29237 has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
relix has joined #ruby
Dave is now known as Guest95708
schaerli has joined #ruby
snearch has joined #ruby
jb41 has quit [Quit: leaving]
tgraham is now known as tgraham|away
noop has quit [Ping timeout: 268 seconds]
dash_ has joined #ruby
quoin has joined #ruby
sanderj_ has joined #ruby
Kar- has joined #ruby
snyp has joined #ruby
schaerli has quit [Remote host closed the connection]
KobraKao has quit [Ping timeout: 246 seconds]
Sander^work has quit [Ping timeout: 251 seconds]
mrmist has joined #ruby
decoponyo has quit [Quit: Leaving...]
cpruitt has quit [Ping timeout: 268 seconds]
julweber has joined #ruby
<snyp> Classes in ruby can be called 'object makers' (bear with me) and these object-makers have the class type 'Class'. The objects made with these classes (object makers) have their .class = objectmakername. right?
mansi has joined #ruby
<fryguy> snyp: yah that's generally right
<snyp> aha
mrmist is now known as mist
<Hanmac> snyp Classes in ruby are also objects made by the class "Class" ;P
quoin has quit [Ping timeout: 246 seconds]
<sweeper> did you run the migrations?
martxel has joined #ruby
martxel has quit [Changing host]
martxel has joined #ruby
Targen has joined #ruby
<snyp> i see.. this is really confusing..
<snyp> though it's easy to visualise
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
petey has quit [Remote host closed the connection]
harmaz has joined #ruby
petey has joined #ruby
MrPoT4tO has joined #ruby
<banisterfiend> hanmac have you seen love games?
<banisterfiend> hanmac (the new A.T episode)
<snyp> These 'class'es in ruby are sort of loosely implemented using Module's functionalities
julweber has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
SkuliOskarsson has quit [Quit: Leaving.]
araujo has joined #ruby
araujo has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
<Hanmac> snyp: classes are objects of Class, modules are object of Module, Class inherit from Module … but Module itself is also a class so its Module.class #=> Class
mlpinit has joined #ruby
chairabanta has joined #ruby
chairabanta has quit [Client Quit]
ghost2060 has quit [Ping timeout: 245 seconds]
<harmaz> what do people use for checking ruby 1.9+ for memory leaks?
chairabanta has joined #ruby
Kricir has quit [Remote host closed the connection]
chairabanta has quit [Client Quit]
<apeiros> snyp: the speciality of the class Class is Class#allocate (the "object maker" facility)
ghost2060 has joined #ruby
Kricir has joined #ruby
<snyp> i see
<banisterfiend> hanmac answer bb
<apeiros> snyp: and don't mind too much that rubys root level is somewhat circular (Class subclassing Module while Module is a Class, Object being a Class while Class is an Object etc.)
<apeiros> they cheat, to achieve that :)
cody-- has quit [Quit: derp]
<Hanmac> harmaz: i use "divining rods" for this ;P
<snyp> apeiros: yeah, Class.class is Class
Kruppe has quit [Quit: ZNC - http://znc.in]
<apeiros> snyp: but Class.is_a?(Object) # => true
<apeiros> and: Object.is_a?(Class) # => true
robustus has quit [Ping timeout: 245 seconds]
<snyp> good god. lol
ylluminate has joined #ruby
Kruppe has joined #ruby
<fryguy> snyp: i'd highly recommend the metaprogramming ruby book
jmccune has quit [Ping timeout: 252 seconds]
* Hanmac waves the hand: "everything you can see, is an object in ruby" ;P
pel_daniel has joined #ruby
adeponte has joined #ruby
<snyp> subclassing is just copy-pasting the methods of a class into another class, right?
fmcgeough has quit [Quit: fmcgeough]
<apeiros> wrong
<snyp> hmm
<apeiros> subclassing means that method lookup is chained
robustus has joined #ruby
rahulkmr1 has quit [Ping timeout: 248 seconds]
<apeiros> obj.foo --> look up in obj.singleton_class, then obj.class, then obj.class.ancestors
<apeiros> when that's through, go through it again, looking for :method_missing instead of :foo
<Fernandos> sweeper: yes I ran the migrations, that's why I'm confused, I created another test user, but I cannot login with that user also.
<apeiros> and after all of that - raise a NoMethodError
jmccune has joined #ruby
<snyp> apeiros: i see...
sambao21 has quit [Quit: Computer has gone to sleep.]
<snyp> fryguy: thanks for recommending
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<fryguy> apeiros: actually you missed Kernel, which is where method_missing is defined to actually raise that error
<apeiros> fryguy: I did not
<apeiros> you missed the point about .ancestors
SloggerKhan has joined #ruby
<apeiros> but: are you sure it's Kernel?
<fryguy> apeiros: you represented it like NoMethodError was some core ruby behavior, which it's not
gwb3 has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Michael has joined #ruby
cody-- has joined #ruby
<apeiros> fryguy: anything to back that up?
Michael is now known as Guest72063
<Fernandos> sweeper: that was exactly the file I had my eyes on and it's pretty easy to understand, but it's weird that admin@exampl.com and password doesn't allow me to login
pwh has joined #ruby
<snyp> What's the difference between a class and a module?
Speed has quit [Ping timeout: 260 seconds]
<apeiros> snyp: a module can't allocate
<snyp> you cannot instantiate moduele?
<apeiros> snyp: and a class can't be used with Module#include or Object#extend
<snyp> ah
<apeiros> not directly, no
<snyp> so modules are like code copy-pasting purposes?
<apeiros> code-sharing
<apeiros> they also provide namespaces
<apeiros> module X; class String; end; X::String != ::String
<apeiros> +end 0:-)
<snyp> hmm hmm
petey has quit [Remote host closed the connection]
gwb3 has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
starship has quit [Ping timeout: 264 seconds]
<SloggerKhan> Anybody use OmniAuth with rails? Is it a good choice?
guyz has quit [Ping timeout: 264 seconds]
<apeiros> fryguy: I seriously doubt your claim that NoMethodError stems from Kernel. E.g. BasicObject doesn't include Kernel. I also doubt it's even implemented in terms of plain ruby.
<Fernandos> SloggerKhan: I used it 1-2y ago, wasn't mature at that time, but maybe it's now :) sorry, that I can't help more. It was quite easy to setup though.
<snyp> ok thanks a lot for helping, apeiros. i will carry on learning ruby.
digifiv5e has joined #ruby
snyp has quit [Quit: "bbl"]
digifiv5e is now known as Guest26180
starship has joined #ruby
mikeg has joined #ruby
jibi has quit [Read error: Connection reset by peer]
jibi has joined #ruby
starship is now known as Guest76549
<SloggerKhan> Fernandos: Thanks!
<ylluminate> i have a huge number of product descriptions from some vendors that i need to list, but i have to uniquify them so that google doesn't discount them since they'd match a lot of other vendors who use these same product descriptions. i've got a few hundred thousand items to do this for, so i really need to automate this.
Emmanuel_Chanel has joined #ruby
<ylluminate> i was thinking about using https://github.com/ged/ruby-wordnet, but i wanted to see if anyone else might have some suggestions on working with synonym replacement for words and phrases in ruby
pwh has quit [Quit: pwh]
<shevy> hanmac what are "photonic molecules"?
havenwood has quit [Remote host closed the connection]
maniacal_ has joined #ruby
tyfighter has joined #ruby
adeponte has quit [Remote host closed the connection]
havenwood has joined #ruby
OdNairy has joined #ruby
jlast_ has quit [Remote host closed the connection]
jlast has joined #ruby
Es0teric has joined #ruby
RORgasm_ has joined #ruby
mikeg has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 260 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
jonahR has joined #ruby
jbpros has joined #ruby
havenwood has joined #ruby
RORgasm has quit [Ping timeout: 268 seconds]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
claymore has joined #ruby
ekarlso has joined #ruby
krawchyk has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
<shevy> cool
Xeago has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Ping timeout: 248 seconds]
AdmiraI has joined #ruby
siwica has joined #ruby
hamakn has quit [Remote host closed the connection]
lewis is now known as Lewix
juni0r has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
hamakn has joined #ruby
heidi has joined #ruby
juni0r has joined #ruby
Xeago_ has quit [Remote host closed the connection]
AdmiraI has quit [Client Quit]
adeponte has joined #ruby
RDash is now known as RDash[AW]
Bira_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
dash_ has quit [Quit: Leaving]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bry8Star{T2 has joined #ruby
boxmein has joined #ruby
hamakn has quit [Ping timeout: 248 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mlpinit> Here it is! :D
jb41 has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
Naoe-Kanno has joined #ruby
Bira has joined #ruby
burlyscudd has quit [Quit: Leaving.]
SHyx0rmZ has quit [Ping timeout: 246 seconds]
Falcore has quit [Quit: Falcore]
cj3kim_ has quit [Remote host closed the connection]
<apeiros> fryguy: ?
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<BraddPitt> can i put a method as a hash value?
b00stfr3ak has quit [Ping timeout: 245 seconds]
<BraddPitt> and then call that method using the corresponding key?
<apeiros> BraddPitt: "put a method"?
<apeiros> store?
<BraddPitt> yeah, sorry
<apeiros> you can store a Symbol, or a Method
RichardBaker has joined #ruby
<apeiros> with a Symbol you can call a method by name
<apeiros> and a Method object you get via Object#method
<BraddPitt> okay i will research that, thank you
Uranio has quit [Quit: while you reading this, a kitty dies]
juni0r has quit [Quit: on ne devrait jamais quitter Montauban]
simoz has joined #ruby
<apeiros> >> meth = 1.method(:succ); h = {wee: meth}; h[:wee].call
<eval-in> apeiros => 2 (https://eval.in/50908)
evenix has quit [Remote host closed the connection]
simoz has quit [Read error: Connection reset by peer]
relix has joined #ruby
juni0r has joined #ruby
<apeiros> >> h = {wee: :succ}; 1.send(h[:wee])
<eval-in> apeiros => 2 (https://eval.in/50910)
<apeiros> send/__send__ also accepts a string
xk_id has quit [Quit:
simoz has joined #ruby
bobinator60_ has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
joofsh_ has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Ping timeout: 248 seconds]
quoin has joined #ruby
raphaelivan has quit [Quit: Leaving.]
pel_daniel1 has joined #ruby
mayorga has joined #ruby
adambeynon has joined #ruby
Dreamer3 has joined #ruby
pel_daniel has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
nhmood_ has joined #ruby
robbyoconnor has joined #ruby
funburn has joined #ruby
freezey has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 252 seconds]
Guest95708 has quit [Quit: Leaving...]
mlpinit has quit [Ping timeout: 246 seconds]
jibi has quit [Quit: .]
Guest72063 has quit [Remote host closed the connection]
Fernandos has left #ruby ["PART #rails :PONG :ZNC"]
xk_id has joined #ruby
<nhmood_> Is there a way to use a method from a different class (in the same module) without explicitly scoping it with the Module::Class.method? (http://paste.kde.org/pd4abaa30/)
jibi has joined #ruby
atno has quit [Quit: Leaving]
kleinerdrache has quit [Quit: Ex-Chat]
heidi has quit [Quit: Leaving.]
Michael has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
Michael is now known as Guest61315
<Eiam> whats wrong with specifying the scope?
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
AdmiraI has joined #ruby
<Eiam> you could try include Priner
<Eiam> include Printer
Kricir has quit [Remote host closed the connection]
<fryguy> apeiros: yah i guess i was wrong, been looking through the ruby source. must have misread something a while ago
<nhmood_> I plan on using the debug_print call semi-often and that is a lot of extra code to write :-/
<Eiam> nhmood_: make it a method in the module?
cj3kim_ has joined #ruby
AdmiraI has quit [Client Quit]
<Eiam> Project.dp = project.debug print =p
crus` has joined #ruby
crus has quit [Ping timeout: 260 seconds]
<nhmood_> Eiam, do you mean use module_method?
freezey has joined #ruby
<nhmood_> Also, what is the .dp method you were referring to?
<BraddPitt> apeiros is this ``okay'' to do? http://pastie.org/8358373
jibi has quit [Client Quit]
peregrine81 has joined #ruby
<nhmood_> I tried doing the include method but I get the following error: 'uninitialized constant Project::Help::Printer (NameError) '
<Eiam> nhmood_: define the method name as "dp" so its shorter to type!
mlpinit has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
<nhmood_> Eiam: Ohh I see haha, that is valid but it breaks the rule of having descriptive method/var names!
dzhulk has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 248 seconds]
<Eiam> its for debugging =)
<nhmood_> Good point :P
ciziar has joined #ruby
gcds has quit [Quit: gcds]
<nhmood_> However, for future reference, should the include way work?
rupee has quit [Quit: Leaving]
<nhmood_> Or do I need to inherit the other class into the current class in order to use the same namespace/scope
<AntelopeSalad> is there a non-messy way to convert 0 to nil?
crus` has quit [Ping timeout: 264 seconds]
crus has joined #ruby
<workmad3> AntelopeSalad: what do you class as 'messy'?
sailias has quit [Quit: Leaving.]
<AntelopeSalad> workmad3: checking the variable if it's 0, then setting a new variable to nil, then working with the new variable
<sweeper> foo == 0 ? nil : foo
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<workmad3> AntelopeSalad: 'foo = nil if foo.zero?'
gcds has joined #ruby
<AntelopeSalad> do you know offhand if rail's params are mutable?
<workmad3> AntelopeSalad: that said, I would tend to prefer to leave such a variable as 0
<sweeper> workmad3: bar = foo.zero? ? nil : foo
<AntelopeSalad> workmad3: i noticed an inconsistency in how rails treats an empty select box
<AntelopeSalad> sometimes it reports back 0 and other times it reports nil
<AntelopeSalad> and i'm adding the result as a FK to a db, so i'd rather they all be the same (nil)
gcds has quit [Client Quit]
<sweeper> err to wrong person
<workmad3> AntelopeSalad: 'select box'? I take it you mean a check box?
<sweeper> AntelopeSalad: try to_b
<AntelopeSalad> no, a select drop down box
<sweeper> oh that
VTLob has quit [Quit: VTLob]
<sweeper> that is freaking bizzare
nhmood_ has quit [Quit: Page closed]
<AntelopeSalad> if i make a new resource or edit a resource an empty drop down box value is nil
S0da has quit [Read error: Connection reset by peer]
nhmood has joined #ruby
<sweeper> sure you're not setting 0 as the empty value?
AdmiraI has joined #ruby
<AntelopeSalad> if i do a bulk update with update_all then it sets it as 0
<AntelopeSalad> 100% sure
<sweeper> no default?
bean__ has quit [Quit: Computer has gone to sleep.]
aryaching_ has quit [Ping timeout: 264 seconds]
<AntelopeSalad> i didn't set a default
<AntelopeSalad> what's interesting though is a FK is an integer but the value is nil when i create a new resource with no FK
<AntelopeSalad> i'm not a db wizard though so i'm not sure if that is standard, it might be
nomenkun has joined #ruby
smigg has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
<workmad3> AntelopeSalad: if it's plain activerecord, they're just integer fields without constraints anyway (unless you added a non-null constraint to them, which it sounds like you wouldn't want anyway)
Soda has joined #ruby
<AntelopeSalad> workmad3: yep, correct on both accounts
SkuliOskarsson has joined #ruby
<AntelopeSalad> i want to allow a nil FK in this case, i just found it odd that update_all will zero out empty values rather than just use nil
mlpinit_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
bean__ has joined #ruby
bean__ has quit [Client Quit]
funburn has quit [Quit: funburn]
interactionjaxsn has quit [Remote host closed the connection]
<workmad3> AntelopeSalad: odd... sounds like something else is going on there
<AntelopeSalad> workmad3: do you think that's something i should open a bug for? it seems like unexpected behavior to me
<AntelopeSalad> *bug ticket
coderhs has quit [Ping timeout: 256 seconds]
<workmad3> AntelopeSalad: would need to see the code first
interactionjaxsn has joined #ruby
iamjarvo_ has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
<workmad3> AntelopeSalad: most likely, something else is affecting it and causing that behaviour
zz_scottstamp is now known as scottstamp
mlpinit has quit [Ping timeout: 256 seconds]
Guest26180 has quit [Changing host]
Guest26180 has joined #ruby
Guest26180 is now known as guyz
<AntelopeSalad> workmad3: http://pastie.org/8358404
iamjarvo_ has joined #ruby
IceyEC has quit [Quit: IceyEC]
swistak35 is now known as swistak36
BillCriswell has quit [Remote host closed the connection]
<AntelopeSalad> that is with the new fixed implementation although i didn't test it yet
<AntelopeSalad> i actually see a bug but ignore it :D
<workmad3> AntelopeSalad: would want to see the original, along with the model code and schema.rb
robbyoconnor has quit [Excess Flood]
<AntelopeSalad> ok give me a sec, let me make sure the fixed ver works
robbyoconnor has joined #ruby
<AntelopeSalad> and i'll gist everything that's relevant
mlpinit_ has quit [Ping timeout: 245 seconds]
swistak36 is now known as swistak35
brennanMKE has quit [Remote host closed the connection]
<workmad3> AntelopeSalad: if you can also gist the log output of the SQL that's executed with the bug in place, that would be great :)
iamjarvo has quit [Ping timeout: 245 seconds]
<AntelopeSalad> hmm i'm actually getting an undefined method zero?
gcds has joined #ruby
<sweeper> are you getting "0" or 0 ?
<AntelopeSalad> 0
<AntelopeSalad> and the value is coming from params[:category][:id]
<workmad3> AntelopeSalad: sounds like you're really getting "0"
joesavage has quit [Quit: joesavage]
<AntelopeSalad> workmad3: yeah i think you're right, since it's coming from an http request it has to be a string?
<AntelopeSalad> it just happens to store 0
Kricir has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
interactionjaxsn has quit [Ping timeout: 268 seconds]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
awarner has quit [Remote host closed the connection]
<workmad3> AntelopeSalad: right, the rails code knows to map the string params onto integers
|jemc|_ has joined #ruby
dkamioka has quit [Remote host closed the connection]
<workmad3> AntelopeSalad: when appropriate (such as assigning them to an integer field)
platzhirsch1 has joined #ruby
breakingthings has quit []
<platzhirsch1> Darn, how do you think should I split words in a sentence? With /\w+/ alphanumeric characters or /\s+/ whitespace?
<AntelopeSalad> i'm getting hung up on all sorts of method not founds atm or i would have gisted it sooner
i_s has quit [Remote host closed the connection]
<AntelopeSalad> even .defined? isn't there
<platzhirsch1> Because "8.3".split /\w+/ gives me [8.3]
lsoa has quit [Ping timeout: 245 seconds]
petey has joined #ruby
<AntelopeSalad> nm i got it working now, i just had to check if it's == to nil -- incoming gist in ~2min
iamjarvo_ has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
it_tard has joined #ruby
iamjarvo has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
|jemc|_ is now known as |jemc|
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> workmad3: what aspect of the model do you need to see? it's very uncomplicated right now
<AntelopeSalad> it's just a couple of scopes/validations and one instance method
colonolGron has joined #ruby
kirun has quit [Quit: Client exiting]
<sn0wb1rd> How do I mock a class method in rspec?
bluenemo has quit [Ping timeout: 248 seconds]
<sn0wb1rd> This is what I want to mock:
<sn0wb1rd> class Chef
<sn0wb1rd> class Log
<sn0wb1rd> def self.warn(str); end
<sn0wb1rd> end
<workmad3> AntelopeSalad: just gist the entire thing, the log output from hitting it, the controller code, the schema.rb and maybe the view that's generating the select box
<sn0wb1rd> end
ewnd9 has joined #ruby
<workmad3> sn0wb1rd: http://gist.github.com
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox6abe has joined #ruby
<sn0wb1rd> workmad3: sure
<AntelopeSalad> workmad3: ok, this is also my first real project with ruby/rails so feel free to rip into the code and call me a retard, i'd love constructive critism
ldnunes has quit [Quit: Leaving]
relix has joined #ruby
Nenor has quit [Remote host closed the connection]
araujo has quit [Read error: Connection reset by peer]
d45h has quit [Quit: d45h]
<workmad3> AntelopeSalad: also feel free to jump into #rubyonrails for more focussed rails help ;)
Nenor has joined #ruby
brianpWins has quit [Quit: brianpWins]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
dzhulk has joined #ruby
<AntelopeSalad> workmad3: yeah, this one started as a basic ruby question
awarner has joined #ruby
xk_id has quit [Quit:
Kricir has quit [Remote host closed the connection]
IceyEC has joined #ruby
codecop has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
maniacal_ has quit [Remote host closed the connection]
bolted has joined #ruby
jonahR has quit [Quit: jonahR]
vlad_starkov has joined #ruby
tgraham|away is now known as tgraham
mikeg has joined #ruby
SkuliOskarsson has quit [Quit: Leaving.]
i_s has joined #ruby
<eka> when using minitest/spec how to do a global before?
Xeago has joined #ruby
<bolted> I'm on ruby 2.0 and for some reason kernel#open isn't opening urls. https://gist.github.com/bolted/6720745
IceyEC has quit [Quit: IceyEC]
MrPoT4tO has quit [Read error: Connection reset by peer]
<bolted> Can anyone direct me to a probable cause?
<AntelopeSalad> workmad3: http://pastie.org/8358448
MrPoT4tO has joined #ruby
rudisimo has quit [Quit: Leaving.]
<AntelopeSalad> seems like the insert gets the empty value as "" but the ORM is smart enough to omit it from the SQL so it really is null?
<bolted> It looks like it's not being parsed by OpenURI::Meta, instead being parsed by the original "open" method
burlyscudd has joined #ruby
jonathanwallace has joined #ruby
Stalkr^ has joined #ruby
heidi has joined #ruby
duggiefresh has quit [Remote host closed the connection]
PragCypher has joined #ruby
<workmad3> AntelopeSalad: yeah, that all looks like correct output to me
<workmad3> AntelopeSalad: I thought you'd said you had observed it setting the category id to 0?
<AntelopeSalad> i wonder if update_all is just not as smart as save? that is the only thing that makes sense to me
sarkis has joined #ruby
<AntelopeSalad> workmad3: yeah in the broken version of the controller code it does set it to 0
<bolted> Nevermind, I didn't realize I had to manually require open-uri
Xeago has quit [Ping timeout: 256 seconds]
bolted has quit [Quit: Page closed]
<AntelopeSalad> but it never sets it as 0 if i create a new post with .save
<workmad3> AntelopeSalad: it would help your case if you had the SQL from that run
<AntelopeSalad> i did include it
sarkis has quit [Client Quit]
<workmad3> AntelopeSalad: no, what you included showed it being set to NULL
<AntelopeSalad> the sql uses '' as the value
paul123 has joined #ruby
<AntelopeSalad> i included both versions of the action
<AntelopeSalad> the fixed and not fixed
sarkis has joined #ruby
<AntelopeSalad> actually you're right, i didn't copy the other one correctly
<workmad3> AntelopeSalad: right, but the SQL for the 'not fixed' doesn't track what you say you observed
<AntelopeSalad> it's "" instead of NULL
<workmad3> :)
endash has quit [Quit: endash]
<AntelopeSalad> for the broken one
paul123 has quit [Client Quit]
mikeg has quit [Remote host closed the connection]
<AntelopeSalad> workmad3: UPDATE "posts" SET "category_id" = '' WHERE "posts"."id" IN (18)
<workmad3> AntelopeSalad: right... so yeah, update_all doesn't do the same sort of processing that a normal instance achieves
<AntelopeSalad> that is the broken one's sql
scottstamp has quit [Quit: ZNC - http://znc.in]
<workmad3> AntelopeSalad: that's pretty well known... update_all is closer to 'raw' sql
Liothen has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
<AntelopeSalad> ok, so it's unexpected behavior until you read the docs? heh
bluenemo has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
cj3kim_ has quit [Remote host closed the connection]
<AntelopeSalad> update_all didn't run any validations too, so it being closer to raw sql does make sense
<workmad3> AntelopeSalad: I doubt this specific behaviour is documented ;) but yeah, I wouldn't exactly expect update_all to do quite the right thing when I pass it '' for an integer valued field
<workmad3> the most I'd expect is for .to_i to be called on it (and ''.to_i == 0)
<workmad3> >>''.to_i
<eval-in> workmad3 => 0 (https://eval.in/50974)
<apeiros> BraddPitt: got your question answered?
<BraddPitt> well i realized that will only call the method at the time of creation of the hash
<AntelopeSalad> workmad3: are you a rails committer?
Kricir has joined #ruby
<BraddPitt> so i still have the same problem, but im reading up on Symbols now, but i still don't quite get it
<workmad3> AntelopeSalad: nope... just a long-time user
scottstamp has joined #ruby
<workmad3> AntelopeSalad: well... I do have 4 commits into the rails codebase... from back in the 3.0 beta days, a minor fix to the new command migrator
<AntelopeSalad> ah, thanks for confirming it tho
<apeiros> BraddPitt: unrelated to your problem but: Test.stuff uses puts, and you do puts Test.stuff. that makes little sense. let the method just return the string.
<apeiros> BraddPitt: you could do either of these:
ghost2060 has quit [Quit: leaving]
<apeiros> a) hashy = {:a => proc { Test.stuff("just a test") } }; puts hash[:a].call
<AntelopeSalad> workmad3: i guess i won't open a ticket if it's semi-expected behavior by someone who is used to rails
<apeiros> b) hashy = {:a => Test.method(:stuff)}; puts hash[:a].call("just a test")
<AntelopeSalad> i've read a couple of dhh's posts though and the work around for it seems like it would be something that would make him flip out tho
<BraddPitt> but won't that call Test.method when the hash is create/initialized?
<apeiros> c) hashy = {:a => :stuff}; puts Test.send(hashy[:a], "just a test")
<apeiros> BraddPitt: yes. and Test.method returns a Method instance.
<BraddPitt> ;/
osvico has joined #ruby
<apeiros> which you can later call. Method knows two things: the receiver and the name of the method to call. it does not have/know arguments.
<workmad3> AntelopeSalad: I wouldn't base too many decisions on whether they'd make DHH flip out or not :P
<BraddPitt> The problem is that I need to create this hash of callable methods WITHOUT having them called when I create the hash
<AntelopeSalad> is my "fix" as clean as it could be?
<BraddPitt> is such a thing possibel?
<BraddPitt> possible*
<apeiros> BraddPitt: it does NOT call the method "stuff"
<apeiros> BraddPitt: also, take another look at example a)
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
quoin has joined #ruby
<apeiros> Foo.method(:bar) # <-- this does NOT call :bar on Foo
SHyx0rmZ has joined #ruby
<apeiros> Foo.method(:bar).call # <-- this does. the `.call` part.
<BraddPitt> ah ok
<shevy> BraddPitt .method() gives you the associated method
<apeiros> :bar # this does NOT call :bar on anything
<apeiros> Foo.send(:bar) # this does. the `.send` part.
<apeiros> proc { Foo.bar } # <-- this does NOT call .bar on Foo
<apeiros> proc { Foo.bar }.call # <-- this does. the `.call` part
dhruvasagar has quit [Ping timeout: 240 seconds]
<apeiros> hth
<workmad3> AntelopeSalad: checking the params, does the id ever actually come in as 0? or does it only come in as '', which ends up as 0 in the db due to some SQL mischief?
<workmad3> AntelopeSalad: because if it's the latter, you can just do 'category_id = params[:category][:id].presence'
<BraddPitt> thank you apeiros, I appreciate it
<AntelopeSalad> it could in theory come in as 0 if someone edited the select drop down box in chrome before submitting
<AntelopeSalad> and ideally i would want that blocked
<workmad3> AntelopeSalad: right, but you could also in-theory have an ID of 0 for a category
quoin has quit [Ping timeout: 245 seconds]
<workmad3> AntelopeSalad: that one would be solved by your code to just check if the category exists
<AntelopeSalad> i thought mysql/postgres start with 1?
k610 has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> wait you're getting me worked up for no reason now i think haha
<AntelopeSalad> Category.exists?(category_id) is doing that check
<workmad3> AntelopeSalad: right
<AntelopeSalad> that is what i added in to make sure no one did any funny business with the form before submitting
kaldrenon has quit [Remote host closed the connection]
jibi has joined #ruby
SkuliOskarsson has joined #ruby
<workmad3> AntelopeSalad: so yeah, I'd probably do 'category_id = params[:category][:id].presence; if category_id.nil? || Category.exists(category_id)'
kaldrenon has joined #ruby
Speed has joined #ruby
<AntelopeSalad> so that will allow 0 if it exists but my version does not?
<workmad3> AntelopeSalad: pretty much
<workmad3> AntelopeSalad: it'll also not bother checking if a category exists with a null id ;)
soheil has quit [Read error: Connection timed out]
dodosan has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<AntelopeSalad> workmad3: you're right, i just dropped in a 0
<workmad3> AntelopeSalad: and a .presence call looks a lot nicer in your controller than a ternary :)
<AntelopeSalad> and it passed right through
bluenemo has quit [Quit: Verlassend]
soheil has joined #ruby
<AntelopeSalad> a category can't exist with a null id but it's good to know that
<AntelopeSalad> your implementation is so much nicer
<workmad3> AntelopeSalad: yeah, I know that too :) which is why it doesn't make sense to hit the database for the .exists? check before checking if category_id is nil ;)
<AntelopeSalad> it reads 100x better and is less complicated
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> and is not buggy haha
duggiefresh has joined #ruby
<BraddPitt> ah works perfectly apeiros, thank you again!
<BraddPitt> I see the beauty of procs now ;)
<AntelopeSalad> workmad3: wait tho, it actually failed
<workmad3> AntelopeSalad: don't exagerate... it's not that much cleaner, it's just a small bit of re-ordering
<workmad3> AntelopeSalad: what failed?
<shevy> it is the cleanest code that was ever written
<AntelopeSalad> nm, i copied it as is
<AntelopeSalad> you forgot the ? after exists
<shevy> AntelopeSalad just discovered that
<workmad3> AntelopeSalad: hehe :)
<shevy> damn, workmad3 you noob!!!
amsi has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<workmad3> AntelopeSalad: I like to leave typos in as exercises to the copy-paster :P
kaldrenon has quit [Ping timeout: 245 seconds]
<shevy> you forced AntelopeSalad to think ...
brennanMKE has joined #ruby
<workmad3> (also, I'm typing code directly into IRC at almost 11pm... but lets go with the first explanation)
<shevy> luckily for him he succeeded
<shevy> else he might have to go and use php now
kpshek has quit []
<AntelopeSalad> yeah, shame on you for making me use my brain
ryandeussing has quit [Read error: Connection reset by peer]
ryandeussing has joined #ruby
<workmad3> shevy: ssh, don't mention PHP... this wouldn't be a problem there! because "0" == false
<shevy> haha
Jetchisel has joined #ruby
<AntelopeSalad> btw i'm fairly new to tdd/testing too, is it reasonable to have tests setup to check empty/0/valid categories?
<AntelopeSalad> it's really annoying to manually do it every time i change the code
<workmad3> AntelopeSalad: if it's annoying you doing it manually, automate it
<workmad3> AntelopeSalad: that's really the golden rule of almost anything to do with development :)
kaspergrubbe has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
mityaz has quit [Quit: See ya!]
<AntelopeSalad> i just did the empty/0/valid test manually and your version passed (it blocked 0)
failshell has quit [Ping timeout: 245 seconds]
<shevy> I need chinese hackers to code for me
<AntelopeSalad> i figured i would do this project, and then write all the tests later
<AntelopeSalad> seemed like too much to take in ruby/rails/tdd at once
RichardBaker has joined #ruby
<workmad3> AntelopeSalad: I'd probably have started with ruby + tdd
<workmad3> AntelopeSalad: test-last too quickly becomes test-never
<colonolGron> i know this is a dumb question. i am doing some googling already, but want to ask here still: should i learn rails or sinatra?
<workmad3> AntelopeSalad: especially if you're not used to the style of testable code... my past experience of pre-tdd code was that I'd end up writing stuff that I now see would be almost impossible to write automatic tests :)
<AntelopeSalad> workmad3: this project i'm working on is mainly for myself, i went down the path of winging it already for a long time in other languages
theRoUS has quit [Ping timeout: 260 seconds]
<AntelopeSalad> with no deadlines i think i can control myself to stop adding features and just start writing tests, because it's something i want to do
it_tard has quit [Quit: yawn]
kpshek has joined #ruby
<AntelopeSalad> but as for testing philosophies, i've always been in the camp that you should only test things that are meaningful to your app, it's a waste to go crazy and start testing framework code (imo)
peregrine81 has quit []
<workmad3> AntelopeSalad: sure :) but that doesn't prevent you from ending up with untestable code
joofsh_ has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
<AntelopeSalad> workmad3: i think this controller method might be untestable
<AntelopeSalad> unless i did full integration test i guess?
<AntelopeSalad> *a
<AntelopeSalad> since it depends on params[] that automatically makes it annoying to test
justsee has joined #ruby
it_tard has joined #ruby
it_tard has quit [Changing host]
it_tard has joined #ruby
snovak has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
jerius has quit [Ping timeout: 240 seconds]
snovak has joined #ruby
snovak has quit [Remote host closed the connection]
petey has joined #ruby
nisstyre has joined #ruby
<scottstamp> I've been curious, I notice a lot of projects "require" all their gems and dependencies from one file and all the files that file refers to automagically have those dependencies loaded. How is that done? My attempts to do it have been futile at best.
mklappst_ has quit [Remote host closed the connection]
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has quit [Ping timeout: 268 seconds]
kevinykchan has joined #ruby
blischalk has joined #ruby
cody-- has quit [Quit: derp]
v0n has joined #ruby
freezey has quit [Remote host closed the connection]
<atmosx> scottstamp: you mean Gemfile?
mrsolo has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
workmad3 is now known as wm3|zZz
havenwood has joined #ruby
Bira has joined #ruby
nomenkun has quit [Remote host closed the connection]
jerrad has quit [Quit: Linkinus - http://linkinus.com]
claymore has quit [Quit: Leaving]
kpshek has quit []
snearch has quit [Quit: Verlassend]
iamjarvo has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 256 seconds]
kaspergrubbe has quit [Remote host closed the connection]
baordog_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
evenix has joined #ruby
jerrad has joined #ruby
elux has quit [Quit: Bye!]
Nenor has quit [Quit: Nenor]
dsferreira has quit [Quit: This computer has gone to sleep]
buibex has joined #ruby
Falcore has joined #ruby
<scottstamp> atmosx, not quite, I know how to use a Gemfile to include my dependencies, I mean how do I go about not having to require whatever lib / gem my class file depends on in each class file.
<zeade> scottstamp: (obviously) the required gems need to be installed, if you're using bundler then you may need to also run your app with bundle exec (for example if you have any git-based gems), if you're requiring files (not gems) via their path they should be discoverable at runtime. these are just guesses, tho
<zeade> even if you create a "master manifest" file, that has to be required somewhere
freezey has joined #ruby
<scottstamp> I think a Master Manifest file I what I'm looking for. Do you know any tutorials?
<scottstamp> I'm kind of new to Ruby.
<zeade> e.g. require 'lib/all_the_things'
cj3kim_ has joined #ruby
vim_shim has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Ping timeout: 248 seconds]
cj3kim_ has quit [Remote host closed the connection]
<bnagy> that sounds like it would make things pretty annoying to test
<scottstamp> will lib/* classes automatically have access to dependencies outlined in their caller? (The file containing require 'lib/all_the_things')
evenix has quit [Ping timeout: 252 seconds]
<bnagy> yes
<scottstamp> okay, cool. That's what I was looking for.
<bnagy> but then those individual lib files are broken, as individuals
colonolGron has quit [Quit: Lost terminal]
rhys has quit [Quit: Leaving]
<bnagy> which sounds dumb
sniffingcats has joined #ruby
xk_id has joined #ruby
<bnagy> I'm all in favour of a require 'easyprojectname' style loader file that loads up assorted of your own libfiles
<bnagy> but dubious about loading all dependencies in that file
<scottstamp> I'm only really loading a few dependencies, it's just a caching library.
<banisterfiend> bnagy sup nagg-dogg
adkron has quit [Ping timeout: 252 seconds]
<bnagy> nm, went out for drinks last night, and to watch the sumo at the bar
apeiros has joined #ruby
<bnagy> oh, my last day of official employment today, that's pretty frickin sweeeet
bobinator60_ has quit [Quit: bobinator60_]
<scottstamp> I hear that. I ragequit my job not too long ago after my boss kept fucking me over.
simoz has quit [Ping timeout: 256 seconds]
zz_taion809 is now known as taion809
mrsolo has joined #ruby
endash has joined #ruby
Ox6abe has quit [Remote host closed the connection]
xk_id has quit [Quit:
wallerdev has quit [Quit: wallerdev]
KobraKao has joined #ruby
ldnunes has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
leonidlm has quit [Ping timeout: 248 seconds]
blischalk has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
Nogbit has quit [Ping timeout: 260 seconds]
weems has joined #ruby
harmaz has quit [Quit: Page closed]
mansi has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
mansi has joined #ruby
anonymus_ has joined #ruby
kvirani has joined #ruby
mansi has quit [Read error: Connection reset by peer]
sniffingcats has quit [Quit: Til rivido Idisti!]
mansi has joined #ruby
fuhgeddaboudit has joined #ruby
Guest61315 has quit [Remote host closed the connection]
anonymu__ has joined #ruby
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
anonymuse has quit [Ping timeout: 268 seconds]
petey has quit [Remote host closed the connection]
snovak has joined #ruby
jlast has quit [Remote host closed the connection]
visof has quit [Quit: Leaving]
kvirani has quit [Ping timeout: 248 seconds]
it_tard has quit [Quit: yawn]
brennanMKE has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
staafl has quit [Ping timeout: 260 seconds]
anonymus_ has quit [Ping timeout: 245 seconds]
|jemc| has quit [Ping timeout: 240 seconds]
ericmathison has joined #ruby
mansi has quit [Remote host closed the connection]
Stalkr^ has quit [Quit: Leaving...]
sloucher has joined #ruby
anonymu__ has quit [Read error: Operation timed out]
mansi has joined #ruby
heidi has quit [Quit: Leaving.]
tgraham is now known as tgraham|away
Ripp__ has quit []
Ripp__ has joined #ruby
nari has joined #ruby
quoin has joined #ruby
Mon_Ouie has joined #ruby
buibex has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
rupee has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
tgraham|away is now known as tgraham
platzhirsch1 has left #ruby [#ruby]
lolmaus has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 245 seconds]
mxweas has joined #ruby
AdmiraI has joined #ruby
AdmiraI has quit [Client Quit]
quoin has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
lolmaus has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
Nogbit has joined #ruby
ColKurtz has joined #ruby
<Eiam> nhmood: I don't know, try it out? I don't use include/extend much/ever
lolmaus has quit [Read error: Connection reset by peer]
heidi has joined #ruby
proxie is now known as virtualentity
Kricir has quit [Remote host closed the connection]
GoldenGiant has quit [Quit: Computer has gone to sleep.]
lukec has quit [Ping timeout: 248 seconds]
ScaredWeems has joined #ruby
lolmaus has joined #ruby
Nogbit has quit [Client Quit]
iamjarvo has joined #ruby
lukec has joined #ruby
rupee has quit [Quit: Leaving]
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
cj3kim_ has joined #ruby
weems has quit [Ping timeout: 248 seconds]
platzhirsch1 has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
platzhirsch1 has left #ruby [#ruby]
boboc has joined #ruby
KobraKao has quit [Ping timeout: 256 seconds]
<boboc> hello
<bnagy> GREETINGS HUMAN
raphaelivan has joined #ruby
<boboc> guys i would like to learn the Ruby language, can you recommend a good book?
sloucher has quit [Quit: sloucher]
m8 has quit [Quit: Sto andando via]
<bnagy> people seem to speak highly of Programming Ruby
<bnagy> I don't read programming books.
<Eiam> I used "The Ruby Programming Language"
<Eiam> and this channel =)
<Eiam> (this channel is better)
<havenwood> boboc: Coming from other languages or new to programming?
<boboc> i'm not new to programming, i have 3+ years experience with ios
Kricir has joined #ruby
<havenwood> boboc: The Ruby Programming Language is a great book.
<boboc> havenwood: yes, objective c
v0n has quit [Ping timeout: 240 seconds]
RORgasm_ has quit [Remote host closed the connection]
<havenwood> boboc: If you didn't already know Obj-C I'd have said Learn to Program by Chris Pine.
Popple has joined #ruby
staafl has joined #ruby
<havenwood> boboc: The former starts off a bit quicker but is a fantastic book and will take you a long ways.
sepp2k1 has joined #ruby
<gcds> how to call JSON.generate inside module? I getting uninitialized constant Beefeater::Worker::JSON
<boboc> havenwood: are there any major syntax changes between ruby 1.9 and 2.0?
<boboc> almost all books i've seen are for 1.9
Zai00 has quit [Quit: Zai00]
Michael has joined #ruby
<atmosx> gcds: require 'json'?
<havenwood> boboc: 1.9 is fine, small differences that are easy to catch up on
Michael is now known as Guest23568
<havenwood> boboc: 2.0 is largely compatible with 1.9
sepp2k has quit [Ping timeout: 240 seconds]
<atmosx> gcds: actually gist your code and the output you want to get
<havenwood> boboc: and 2.1 around the corner
RDash[AW] has quit [Quit: Poweroff]
<Eiam> boboc: 2.0 has named parameters
<Eiam> fairly minor
<havenwood> Eiam: i like the option for mandatory named params in 2.1
<Eiam> did 2.0 have the new hash format or was that 1.9?
tgraham is now known as tgraham|away
<havenwood> Eiam: 1.9
<boboc> the hash still has the key=>value syntax?
<havenwood> boboc: yes
<Eiam> boboc: you can do { key: value} too
<havenwood> boboc: indeed
cody-- has joined #ruby
<boboc> Eiam: great
<atmosx> I like key: 'value'
<havenwood> boboc: the latter only for keys that are symbols
<havenwood> boboc: the former for anything else as a key
<Eiam> havenwood: I'm a fan of named parameters mostly from obj-c days, I like when things are a bit more explicit in what they expect
Nogbit has joined #ruby
<boboc> a symbol is an immutable string in ruby?
<havenwood> boboc: an interned string
<atmosx> string.to_sym
<havenwood> boboc: actually an immutable string syntax is a new feature of 2.1: "i'm an immutable string"f
KobraKao has joined #ruby
<atmosx> good night
<havenwood> or the alias of string.to_sym: string.intern
Guest23568 has quit [Remote host closed the connection]
benzocoumaran35 has quit [Ping timeout: 248 seconds]
<Eiam> havenwood: I'm not sure i see the different
awarner has quit [Remote host closed the connection]
<Eiam> interned strings are immutable
<havenwood> semantics
<havenwood> Eiam: well, and other charactaristics
<havenwood> Eiam: not simply an immutable string
<Eiam> you mean attributes like access cost
<Eiam> vs creation cost
pel_daniel1 has left #ruby [#ruby]
benzocoumaran35 has joined #ruby
awarner has joined #ruby
ij has quit [Quit: WeeChat 0.4.1]
<bnagy> >> ['a'.intern.object_id, 'a'.intern.object_id, 'a'.freeze.object_id, 'a'.freeze.object_id]
<eval-in> bnagy => [175928, 175928, 545179780, 545179770] (https://eval.in/50982)
sarkis has quit [Ping timeout: 248 seconds]
staafl has quit [Ping timeout: 246 seconds]
<havenwood> Eiam: with named params you trade connaissance of position for name, i think
<Eiam> position is more fragile anyway
<Eiam> name is a better anchor
<Eiam> (imo)
awarner has quit [Remote host closed the connection]
Vivekananda has joined #ruby
heidi has quit [Quit: Leaving.]
awarner has joined #ruby
johnnyfuchs has joined #ruby
tgraham|away is now known as tgraham
kay__ has quit [Remote host closed the connection]
c0rn has quit [Ping timeout: 264 seconds]
wm3|zZz has quit [Ping timeout: 248 seconds]
gadgetoid has quit [Ping timeout: 260 seconds]
zets has joined #ruby
lfox has quit [Quit: ZZZzzz…]
mayorga has quit [Ping timeout: 256 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
kpshek has joined #ruby
wm3|zZz has joined #ruby
ericmathison has quit [Quit: leaving]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
gadgetoid has joined #ruby
ryandeussing has quit [Remote host closed the connection]
c0rn has joined #ruby
boboc has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
justsee has joined #ruby
boboc has joined #ruby
boboc has quit [Remote host closed the connection]
boboc has joined #ruby
simoz has joined #ruby
kay__ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
boboc has quit [Remote host closed the connection]
boboc has joined #ruby
<g0th> hi
mklappstuhl has joined #ruby
kitak has joined #ruby
gcds has quit [Quit: gcds]
<g0th> in a class initialize() I do stuff, at the end I would like to multiply "myself" by a number
<g0th> how do I do that?
blarghmatey has joined #ruby
<g0th> I can calculate the result
heidi has joined #ruby
<g0th> but somehow I can't do self=result
<havenwood> g0th: You want??: YourClass.new(5) #=> 25
<g0th> what?
<havenwood> g0th: i can't tell what you want
<g0th> class A
<g0th> def initialize()
<havenwood> g0th: can you give an example of calling the method and what'd be returned?
<g0th> it's the initialize method
mansi has joined #ruby
<g0th> I want to setup the class
jerrad has quit [Quit: Leaving...]
Davey has quit [Quit: Computer has gone to sleep.]
<g0th> the *() operator is a binary operator
dallasm has joined #ruby
<g0th> hmm
<g0th> oh
<havenwood> g0th: So presume your class is already setup. You want to do something. What would that look like in terms of what you'd type and what the result would be.
<g0th> how do I set myclass to itself times 10?
iamjarvo has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 252 seconds]
Stalkr^ has joined #ruby
<g0th> (my_class*10)
mklappstuhl has quit [Ping timeout: 248 seconds]
<g0th> ([my_class]*10).inject(:+) to be precise
iamjarvo has joined #ruby
<g0th> do I have to introduce an extra class for that?
nomenkun has joined #ruby
<g0th> class A and class ATimes10 ?
huoxito has quit [Ping timeout: 248 seconds]
<havenwood> g0th: What you're doing presumable has a way to be called. How?? Do you want, for example: 10.your_method(2) #=> 20
joshwines has joined #ruby
<g0th> called?
<havenwood> g0th: I don't get what you want. But how you want it to look in its final form might be quite informative.
<g0th> yes, the class is used/instanciated
<boboc> g0th: what is that parameter? (:+) ?
<g0th> havenwood: in general I want to build a certain class
<g0th> in initialize I have to setup values
kaspergrubbe has joined #ruby
freerobby has quit [Quit: Leaving.]
Stalkr^ has quit [Ping timeout: 245 seconds]
<havenwood> g0th: sure, you call #new on that class and pass it args
iamjarvo has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<g0th> the values should be as if I did: z=[SomeBaseClass.new()]*10.inject(:+);
siwica1 has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
<g0th> so like copying all properties of the right hand side to self
t0rc has joined #ruby
evelyette_ has quit [Ping timeout: 245 seconds]
<g0th> ok I show it to you as an example
siwica has quit [Ping timeout: 240 seconds]
<bnagy> don't use empty parens in ruby btw
momomomomo has joined #ruby
<bnagy> ok you can't assign self like that
dallasm has quit []
<g0th> yeah that's my problem
<g0th> what I started with if you go back
kvirani has joined #ruby
<g0th> so how should I accomplish what I want
<havenwood> g0th: just condense those two lines, the final will be the return value anyways
wmoxam has quit [Ping timeout: 260 seconds]
<g0th> return value of new?
Bira has quit [Remote host closed the connection]
jb41 has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 246 seconds]
<bnagy> what's z?
funburn has joined #ruby
<g0th> yeah yeah
<havenwood> g0th: okay, so you want to setup an instance variable to hold this map of z?
<g0th> originally I did z=Density.new()
<g0th> etc
<havenwood> g0th: no empty parens!
<g0th> then I changed it to: super()
<havenwood> :P
<g0th> ok
kaspergrubbe has quit [Ping timeout: 264 seconds]
boboc has quit [Remote host closed the connection]
<g0th> changed
<havenwood> amg, so then you use parens in the one place that they can be legitimately used, super, ha!
<g0th> what about rand()?
<havenwood> no
<g0th> r=rand?
|jemc| has joined #ruby
<bnagy> basically, any time you find yourself trying to assign to self or overloading Klass.new you're on the path to madness
<g0th> doesn't that give ton of name conflicts
<g0th> bnagy: so what do I do?
<bnagy> well it's unclear how your code is supposed to work
<g0th> I construct a density
<bnagy> but try and do things with @instance_variables
<g0th> I have a base class for simple densities
<havenwood> g0th: think about how one might interact with an instance of the ExplodingDieNumberDensity class.
huoxito has joined #ruby
<g0th> and classes that inherit from it with more complex ones
apok has joined #ruby
<g0th> I know how
<g0th> it is used as a density
<havenwood> g0th: show how
<g0th> sigh
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> and what does a Density look like, fundamentally?
<bnagy> is it a number, or an array of stuff, or a snatch of birdsong or what?
endash has quit [Quit: endash]
<havenwood> g0th: you're going to type something to have this work, show us what that might be, cause i can't imagine it yet
burlyscudd has quit [Quit: Leaving.]
narcan has joined #ruby
i_s has quit [Remote host closed the connection]
narcan has quit [Client Quit]
<g0th> first one is how it is applied
Alina-malina has quit [Ping timeout: 248 seconds]
<g0th> second one is the Density class
rupee has joined #ruby
<bnagy> ok, so all subclasses of Density have a d method which returns a hash of rationals?
<bnagy> if so, just build that in your subclass
<havenwood> g0th: on the first one, ln2 put a space between `is_a?` and `Density`; ln 3 drop the `return` for an idiomatic implicit return; ln 5 drop #to_a as it is already an enumerable
tgraham is now known as tgraham|away
gazarsgo has quit [Quit: gazarsgo]
brennanMKE has joined #ruby
freezey has quit [Remote host closed the connection]
jonr22 has joined #ruby
freezey has joined #ruby
snovak has joined #ruby
<havenwood> g0th: oh, sry the #to_a should just be an #each or #to_enum not dropped
<havenwood> g0th: you're starting with a range not an enum, my bad
<g0th> if I drop the return
<g0th> will it return?
<havenwood> yup
adeponte has quit [Remote host closed the connection]
<havenwood> implicitly the last line of the method will be the return value
<havenwood> always drop return unless returning early in flow control
<g0th> it is not the last line
cody-- has joined #ruby
<g0th> it is the first one
failshell has joined #ruby
<g0th> so I put a return
<g0th> to return early
<havenwood> oops! again... i'm on a negative roll
<g0th> sigh
<havenwood> but line 30
quoin has joined #ruby
<g0th> one after another
<havenwood> is the thing i was initially looking at
<havenwood> so still relevant
<g0th> to.a gives an array
<g0th> I want an array
Kricir has quit [Read error: Connection reset by peer]
<g0th> not a hash
<g0th> if I drop .to_a I get a hash
<bnagy> also you either don't want Forwardable, or you don't want attr_accessor on :d
adeponte has joined #ruby
<g0th> I dont want an accessor
<g0th> but at some point I needed it
adeponte has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
<g0th> delete_if
mary5030 has joined #ruby
<bnagy> imho, though, just have attr_reader on your @d hash, Forwardable is lame
<g0th> that doesn't work
brennanMKE has quit [Ping timeout: 260 seconds]
<g0th> I thought about that
<g0th> anyway
<g0th> that was not my question
<g0th> but thanks
<bnagy> it gives the impression that you're creating a restricted API, which you just can't do with ruby tbh
sepp2k1 has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
benzocoumaran35 has quit [Ping timeout: 246 seconds]
<g0th> can I do self*=?
<havenwood> no
<bnagy> you can't assign to self
snovak has quit [Ping timeout: 256 seconds]
<g0th> so how do I do what I want?
<g0th> I want to initialize something
<bnagy> it sounds like you just want to set up your @d thing
<g0th> yes
<bnagy> so do that
<g0th> how?
<bnagy> @d = something
<havenwood> it is an instance variable
<havenwood> set it
<g0th> then I have to essentially copy all methods of Density
<g0th> in particular the *() method
<havenwood> no empty parens
petey has joined #ruby
<g0th> here it is emphasise
quoin has quit [Ping timeout: 246 seconds]
<g0th> I want to put something in ()
<g0th> but saying *(v) method looks stupid
<g0th> because that is not a method that is the returned value
emergion has quit [Quit: Computer has gone to sleep.]
<g0th> ok I should say :* method
<g0th> anyway
<g0th> so I just can't do it?
<havenwood> g0th: yeah, that totally makes sense - because its an instance method the norm is #*
Vivekananda has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
<havenwood> :* makes sense**
failshell has quit [Remote host closed the connection]
benzocoumaran35 has joined #ruby
c0rn has joined #ruby
<bnagy> you can't assign to self
pwh has joined #ruby
aryaching has joined #ruby
<ccooke> g0th: the key thing here is that, in ruby, there's no value for self. Everything is a method call, everywhere.
<havenwood> g0th: you can set the #inspect
<g0th> hey ccooke
freerobby has quit [Ping timeout: 248 seconds]
<ccooke> g0th: what you want to do is make sure that the method calls you use will function *as if* you multiplied the putative value by X
benzocoumaran35 has quit [Client Quit]
<g0th> I would have liked to have a density subclass that returns a certain density
<ccooke> g0th: assigning a value to an object instance is, I think, a holdover from languages with incomplete object models - in essence, the class is a framework around a "real" value. Ruby isn't like that.
<g0th> one which is constructed using *
AdmiraI has joined #ruby
seejohnrun has joined #ruby
<ccooke> g0th: so the question you need to answer is, how would it return a certain density?
<g0th> I could just copy the whole Density *() body
Michael has joined #ruby
<g0th> that might work
<ccooke> g0th: what would you do to get the density?
<g0th> density=SubDensity.new()
Michael is now known as Guest10465
<havenwood> g0th: yeah, you can set the #inspect that may return when viewing the object - but if you want a return value set an instance variable and a corresponding method to be called
<ccooke> because objects simply don't have any implicit value.
<ccooke> g0th: when you print an object, what actually happens is that the object's to_s method is called and that value is used.
Spami has joined #ruby
<g0th> I don't care about printing
<g0th> havenwood: brought this up
<g0th> -:
<g0th> anyway
<g0th> I want a method that gives me a certain density
<ccooke> g0th: no, you care about the math. What you need to do is make sure that the mathematical operators work in the way you want
<g0th> I thought about making a class for that
<havenwood> g0th: can only access values from within the object by creating a method to expose it, create that method
<g0th> but it seems I can't
<havenwood> g0th: expose the ivar with the method, done
<g0th> I'm just trying to find a solution
tvw has joined #ruby
<g0th> so the solution is to make the class a constructor class?
<ccooke> g0th: you seem to have a misconception about how things work
<g0th> i.e. keep it basic but add some method that constructs what I want?
<ccooke> no, every class should implement the functionality it requires.
unlikable43 has joined #ruby
<g0th> so I initialize it with super(0)
<g0th> then I do several modifications to the values
<g0th> and then I would like to modify the values as if I applied the *(10).inject(:+) operator
<g0th> I "could" theoretically write down exactly what I want
<g0th> without ever using "self"
<g0th> but that would in essence just copy a whole chunk from Density
<g0th> my question is: what is the correct/elegant way to approach this?
Stalkr^ has joined #ruby
<bnagy> if you had an array of 10 Density objects and did inject(:+) what would that return?
<pontiki> write it in C
<bnagy> a Density?
<g0th> a Density object
<bnagy> ok, and is the "guts" of a Density that @d thing?
<g0th> yes
<g0th> well
<g0th> the methods
<bnagy> ok so @d = [blah].inject(:+).d
<g0th> nope
<g0th> that doesn't work
<g0th> oh
<bnagy> elaborate
felixjet_ has quit [Quit: felixjet_]
<g0th> maybe it does
<g0th> *g*
endash has joined #ruby
felixjet has joined #ruby
* g0th hides in a corner
<g0th> that works
visof has joined #ruby
gwb3 has joined #ruby
<g0th> I overlooked the .d
<g0th> sigh, all solved
<bnagy> it's ok, you're just thinking in another language, I think, so rubyish stuff is going to clash
Vivekananda has joined #ruby
SkuliOskarsson has quit [Quit: Leaving.]
<g0th> well I knew it didn't make sense
<g0th> (what I wrote)
<g0th> that's why I came to the channel to ask for a solution
tvw has quit [Ping timeout: 264 seconds]
<g0th> anyway, thanks a lot
<bnagy> np
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
tatsuya_o has quit [Remote host closed the connection]
Stalkr^ has quit [Ping timeout: 256 seconds]
cody-- has quit [Quit: derp]
T_T has quit [Ping timeout: 252 seconds]
jibi has quit [Quit: .]
raphaelivan has quit [Ping timeout: 268 seconds]
i_s has joined #ruby
hogeo has quit [Remote host closed the connection]
RDash[AW] has joined #ruby