jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
aryaching has joined #ruby
hotpancakes has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arooni-mobile has quit [Ping timeout: 256 seconds]
gusrub has quit [Quit: Leaving]
mleung has quit [Quit: mleung]
axsuul has joined #ruby
j4cknewt has quit [Remote host closed the connection]
bkparso has joined #ruby
bkparso has left #ruby [#ruby]
hardlin3r has quit [Ping timeout: 265 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
rbowlby has quit [Remote host closed the connection]
rdavila has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmisenas has quit [Ping timeout: 256 seconds]
rdavila has quit [Client Quit]
NeverDie has joined #ruby
Agoldfish has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
yoongkang has quit [Remote host closed the connection]
cndiv has quit []
yoongkang has joined #ruby
baweaver has joined #ruby
Casty has joined #ruby
mujou has quit [Quit: Leaving...]
aphprentice has joined #ruby
royg59 has joined #ruby
allcentury has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
rhllor has quit [Quit: rhllor]
cmisenas has joined #ruby
arturmartins has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
dorei has quit []
Eiam has joined #ruby
ascarter has joined #ruby
<royg59> what's the right way to do polymorphism in Ruby?
<royg59> pipework, thanks
cmisenas has quit [Ping timeout: 252 seconds]
DLSteve has quit [Ping timeout: 264 seconds]
krisquigley has joined #ruby
royg59 has quit [Quit: Leaving]
sinkensabe has joined #ruby
failshell has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
bootstrappm has quit [Quit: bootstrappm]
<Casty> hey guys i'm learning ruby/rails. i'm making a calculator to train and made a method that can parse a string like "5 + 6 * 2" and compute it. i made a simple javascript front but can't figure out how to pass the value of the text box to my method. is this hard to do?
cmisenas has joined #ruby
rcvalle has quit [Quit: rcvalle]
<jhass> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Casty> ah ok thanks
<RickHull> Casty: your text box is a form input. when you hit submit, it sends a POST request to the webserver (rails)
x1337807x has quit [Ping timeout: 264 seconds]
<RickHull> rails will then, based on routing rules and such, call the correct method to handle it
<Ox0dea> jhass: Bit heavy for a calculator, no?
<RickHull> calculator is an exercise to learn rails, here
<Ox0dea> I derped pretty hard there.
<Casty> oh well actually i'm not posting the form. but i guess that makes sense. until i would the value is still just client side. thanks
krisquigley has quit [Ping timeout: 276 seconds]
<havenwood> >> require 'scanf'; "5 + 6 * 2".scanf '%d%s%d'
bruno- has quit [Ping timeout: 244 seconds]
<ruboto> havenwood # => [5, "+", 6] (https://eval.in/380873)
failshell has quit [Ping timeout: 265 seconds]
pepelui has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby
unshadow has quit [Ping timeout: 276 seconds]
commondream has quit [Remote host closed the connection]
Marsupermammal has joined #ruby
keen_____ has joined #ruby
Rickmasta has joined #ruby
fedexo has joined #ruby
keen____ has quit [Ping timeout: 264 seconds]
casadei has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
casadei has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei has joined #ruby
sinkensabe has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
Azure has quit [Excess Flood]
Azure has joined #ruby
robustus|Off has joined #ruby
mc_fail has joined #ruby
robustus|Off is now known as robustus
jackjackdripper has quit [Client Quit]
sdothum has quit [Read error: Connection reset by peer]
jgt3 has joined #ruby
rdavila has joined #ruby
tkuchiki has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jenrzzz has quit [Ping timeout: 246 seconds]
jesterfraud has quit [Quit: Leaving]
sdothum has joined #ruby
jenrzzz has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
bmurt has joined #ruby
bronson has quit [Remote host closed the connection]
drewo has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
Xoro has joined #ruby
jphenow has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbowlby has quit [Remote host closed the connection]
th_masv has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
dstarh has joined #ruby
ascarter has quit [Max SendQ exceeded]
bgmarx has joined #ruby
ascarter has joined #ruby
jenrzzz has joined #ruby
dgutierrez1287 has joined #ruby
bronson has joined #ruby
dstarh has quit [Client Quit]
Yiota has joined #ruby
jacaballero has joined #ruby
bgmarx has quit [Ping timeout: 264 seconds]
serivich has joined #ruby
mleung has joined #ruby
arescorpio has joined #ruby
DLSteve has joined #ruby
towski__ has quit [Remote host closed the connection]
jgt4 has joined #ruby
jgt3 has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
kappy has quit [Remote host closed the connection]
<Ox0dea> >> '5 + 6 * 2'.split.map { |t| Integer t rescue t }.reduce { |a, b| a.method b rescue a[b] }
<ruboto> Ox0dea # => 22 (https://eval.in/380876)
aryaching has quit []
bronson has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
starfox_sf has quit [Ping timeout: 245 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
ascarter has quit [Ping timeout: 265 seconds]
mrmargolis has joined #ruby
ferr1 has joined #ruby
pen has quit [Remote host closed the connection]
pen has joined #ruby
balazs has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
Ox0dea has quit [Read error: Connection reset by peer]
JDiPierro has quit [Remote host closed the connection]
pereba has joined #ruby
balazs has quit [Ping timeout: 244 seconds]
ferr1 has quit [Quit: WeeChat 1.2]
pen has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
dgutierrez1287 has joined #ruby
bootstrappm has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
bootstrappm has left #ruby [#ruby]
michael_mbp has quit [Excess Flood]
mleung has quit [Quit: mleung]
wallerdev has quit [Quit: wallerdev]
dgutierrez1287 has quit [Remote host closed the connection]
mleung has joined #ruby
weaksauce has quit [Ping timeout: 276 seconds]
bmurt has quit []
symm- has quit [Ping timeout: 265 seconds]
bin_005_i has joined #ruby
michael_mbp has joined #ruby
bin_005 has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
ferr1 has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
mleung has quit [Client Quit]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has joined #ruby
Filete has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
alexherbo2 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: WeeChat 1.2]
ferr1 has left #ruby ["WeeChat 1.2"]
funnel has joined #ruby
ferr has joined #ruby
commondream has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mc_fail has quit [Ping timeout: 276 seconds]
bin_005_i has quit [Ping timeout: 240 seconds]
RegulationD has quit [Remote host closed the connection]
CyborgCygnus has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
commondream has quit [Ping timeout: 265 seconds]
Renich has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Renich has quit [Client Quit]
dfockler has joined #ruby
pen has joined #ruby
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
mcclurmc_ has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
mary5030 has joined #ruby
dfockler has quit [Ping timeout: 265 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
ixti has quit [Read error: Connection reset by peer]
bgmarx has joined #ruby
yoongkang has quit [Remote host closed the connection]
<shevy> should I learn rails or C
pereba has quit [Excess Flood]
axsuul has joined #ruby
cosmicfires has joined #ruby
<cosmicfires> I'm trying to use tee with a ruby program that writes with puts; it doesn't work. what do I need to do to make it work?
bentanweihao has joined #ruby
weaksauce has joined #ruby
senayar has quit [Remote host closed the connection]
pereba has joined #ruby
nym has quit [Quit: Connection closed for inactivity]
<RickHull> cosmicfires: verify puts is writing to STDOUT
wookiehangover has quit [Ping timeout: 256 seconds]
<RickHull> you can say $stdout.puts to be explicit
<cosmicfires> that appears to be the problem
<cosmicfires> thanks
chouhoulis has joined #ruby
djbkd has joined #ruby
jphenow has quit [Quit: Be back later ...]
ruby-lang087 has joined #ruby
<cosmicfires> $stdout.puts doesn't work either, other ideas?
jeramy_s has joined #ruby
<RickHull> did you verify it is writing to STDOUT?
<ruby-lang087> Hope noob questions are good here. Someone tell me how/why I am wrong? http://pastebin.com/3gRAJ20v
<RickHull> leave tee out of it for a moment
<ruboto> ruby-lang087, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/103040bdc7f74a69f75a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ruby-lang087> want to take a list of IPs/hostnames in a file and use net::ssh to execute a command
<ruby-lang087> aoutput the result
<ruby-lang087> and output the result**
<RickHull> net/ssh is pretty tricky
djbkd has quit [Client Quit]
_seanc_ has quit [Quit: _seanc_]
baweaver has joined #ruby
<ruby-lang087> lol why the hell do you hate pastebin?
<cosmicfires> I can redirect the output with >
<ruby-lang087> weird
<RickHull> ruby-lang087: quote: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ruby-lang087> Alrighty, will keep in mind :)
wookiehangover has joined #ruby
<RickHull> if you want people to read what you write, it helps to read what they write ;)
aaeron has quit [Quit: Leaving.]
<RickHull> cosmicfires: ok, so take something you know works, like `ls`
<RickHull> and try using it with tee
<shevy> ruby-lang087 the more convenient you make it for other people to read it, the more likely it will be that they (a) can help and (b) will want to help
<cosmicfires> that works
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy> that code looks like dynamic constant assignment, are you sure it works?
<RickHull> cosmicfires: ok, so show your example where your program redirects STDOUT to a file
<RickHull> i.e. just the cmdline session
<RickHull> e.g. my_script.rb > /tmp/output; cat output
<ruby-lang087> I am trying to cut my programming teeth on ruby
<ruby-lang087> so what I am doing might be really bad
<cosmicfires> ls | tee net.status.log
<ruby-lang087> I know not what I do
<cosmicfires> that works
<shevy> yeah
<ruby-lang087> but trying to know
<RickHull> cosmicfires: use gist.github.com
<shevy> your code does not seem to make any sense to me
<shevy> you essentially try to do two things here:
<cosmicfires> you want the whole program?
<shevy> - handle ARGV input given to your script
<shevy> - send data based on ARGV into a Net::SSH.start() call
<shevy> right?
<RickHull> cosmicfires: just your CLI sessions
<shevy> oh wait
<ruby-lang087> yes, namely the line item contents of a file
<shevy> you actually try to read in a file
<ruby-lang087> say, hosts.txt
<RickHull> where you demonstrate that file redirection works
<shevy> ruby-lang087 ok, first suggestion: put this into a method
allcentury has quit [Ping timeout: 256 seconds]
<shevy> in the method, default to 'hosts.txt'
<shevy> thus if you omit ARGV, it will use that name
jenrzzz has joined #ruby
<shevy> inside that method, process the data until you can send it into Net::SSH.start()
ramfjord has quit [Ping timeout: 256 seconds]
umgrosscol has joined #ruby
houhoulis has joined #ruby
<RickHull> ruby-lang087: use lowercase for variables you want to assign to
<RickHull> uppercase denotes a constant, which is not what you want here
<RickHull> e.g. host, user rather than HOST, USER
<RickHull> i would then do something like: host = i.chomp; puts host
<RickHull> note that puts automatically adds a newline, whereas print does not. you almost certainly want puts
<shevy> ruby-lang087 here is the first rewrite; it is incomplete though https://gist.github.com/shevegen/ea621fa56c667470bc74 I'd have to know the format of hosts.txt
<cosmicfires> there's the program that doesn't work
kinduff has joined #ruby
<RickHull> cosmicfires: yeah, i don't need to see the program
<RickHull> just the command line session, where you demonstrate that you can redirect the output you want to a file
<RickHull> secondarily, i see you too are using print rather than puts
<RickHull> which is fine if you don't want a newline
<cosmicfires> I changed it from puts to see if that would make it work
<cosmicfires> this works
<RickHull> but you may just want to call: puts "foo blah" rather than: print "foo blah\n"
<cosmicfires> $ ./net_status.rb > net.status.log
CyborgCygnus has quit [Quit: I hath quit]
<RickHull> cosmicfires: ok, so:
<RickHull> copy and paste your shell session into the gist
CyborgCygnus has joined #ruby
<cosmicfires> this doesn't work
<cosmicfires> $ ./net_status.rb | tee net.status.log
<RickHull> e.g. ./net_status.rb > net.status.log; cat net.status.log
<cosmicfires> nothing in net.status.long
<RickHull> lol
Palmer11 has quit [Quit: Palmer11]
<RickHull> so yeah, you're not actually outputting anything
<ruby-lang087> Thanks to you both
<ruby-lang087> I found a way that works
<ruby-lang087> and maybe there is a future for me yet where I don't totally suck
<cosmicfires> $ ./net_status.rb > net.status.log puts output in net.status.log
nobitanobi has joined #ruby
<RickHull> cosmicfires: uh, i think you're barking up the wrong tree there
<RickHull> your code a logic error where your output statements are not executing
<RickHull> *has
<cosmicfires> I get output if I don't redirect
<RickHull> cosmicfires: hang on
axsuul has quit [Ping timeout: 272 seconds]
<RickHull> is there content in net.status.log?
nobitanobi has quit [Remote host closed the connection]
<cosmicfires> can redirection output change the program's execution? not that I'm aware of unless I look to see if it's writing to a file
<cosmicfires> there is nothing in net.status.log when I use tee
krisquigley has joined #ruby
<RickHull> cosmicfires: something like this: https://gist.github.com/rickhull/ed5ccad6c4c8ca478332
Hongo has joined #ruby
Hongo has left #ruby [#ruby]
<RickHull> except where I have `ls`, use your script
<ruby-lang087> https://gist.github.com/Toggie/1dc6f84dbcb5c6a64896 here is how I fixed it
<cosmicfires> ok
failshell has joined #ruby
<cosmicfires> I wrote a test script and it works as expected so something strange is going on
<RickHull> ruby-lang087: you don't need the outer set of parens: https://gist.github.com/Toggie/1dc6f84dbcb5c6a64896#file-check-uptime-L5
<RickHull> and you should only call chomp once, per my suggestion
kinduff has quit [Ping timeout: 256 seconds]
<RickHull> and you should look into shevy's version as well
<RickHull> for calling chomp once, in this newer version: host = i.chomp; print "#{host}: "
<cosmicfires> oh I think I figured it out stand by
<shevy> ruby-lang087 this is quite fragile
<shevy> what if you omit an ARGV position
<shevy> what if the file does not exist
<RickHull> what if the earth is struck by a gigantic asteroid after bruce willis has died?
<ruby-lang087> outer set of parens?
<cosmicfires> the problem is I stopped the program with ^C before the output buffer got flushed because it has a loop in it
<RickHull> (my apologies)
krisquigley has quit [Ping timeout: 256 seconds]
<shevy> well
<RickHull> cosmicfires: try $stdout.sync = true
<shevy> if an asteroid strikes then that is another level of problems :)
<RickHull> but my boss said we have to be HA with a DR strategy
<cosmicfires> there
<cosmicfires> there's the output RickHull
<shevy> if one can manage a certain level of disaster
dgarstang has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
<shevy> imagine yourself at a beach... for 4 weeks... without a computer... you could not even code!
<RickHull> cosmicfires: hard to follow...
<RickHull> i could code using sticks and sand
<cosmicfires> RickHull $stdout.sync = true fixes the problem
<cosmicfires> thank you
<RickHull> \o/
<cosmicfires> I got beer and the problem got solved :)
CyborgCygnus has quit [Quit: I hath quit]
<RickHull> that is a common pattern
sdothum has quit [Read error: Connection reset by peer]
<RickHull> pattern of enterprise application architecture
<cosmicfires> yes it's all obvious now
<RickHull> step 1: apply beer
CyborgCygnus has joined #ruby
<RickHull> step 2: don't plug it in!
<cosmicfires> thanks again for the help
umgrosscol has quit [Remote host closed the connection]
<ruby-lang087> https://gist.github.com/Toggie/1dc6f84dbcb5c6a64896 OK I got rid of the second chomp statement
<ruby-lang087> but the outer parens that aren't necessary
<ruby-lang087> not sure where
Rickmasta has joined #ruby
bgmarx has quit [Remote host closed the connection]
kinduff has joined #ruby
<shevy> what outer parens
<shevy> you mean "(File.open(ARGV[0]))." ?
deric_skibotn has quit [Ping timeout: 245 seconds]
<shevy> File.open(ARGV[0]). should suffice
<RickHull> yes, thanks
<RickHull> that is what i meant
<shevy> it's sometimes hard to understand newcomers to ruby :)
<shevy> he seems to use tab or 4 spaces as indent
<RickHull> the other way around, in this case, i think
<shevy> that too! hehehehe
<RickHull> i introduced the removal_of_outer_parens concept ;)
<RickHull> ruby-lang087: looking better!
<RickHull> now, let's address shevy's concerns
<RickHull> we should make sure ARGV has what we want, or think it should have
<ruby-lang087> ah right, didn't even notice that
<ruby-lang087> ok, fixed
<RickHull> so it looks like you assume that there will be 3 args passed: a filename, a user, and a pass
<ruby-lang087> yeah
<RickHull> you could consider using an option parser at this point
<RickHull> generally if you take more than one arg, maybe two
<RickHull> you should consider an option parser
<RickHull> but hold that thought for now...
<ruby-lang087> I'll expand on that as an exercise
baweaver has quit [Remote host closed the connection]
<RickHull> ruby-lang087: ^
<RickHull> note that Array#shift consumes (and returns) the first element
<RickHull> also, yes, per shevy, see if you can set your indent to 2 spaces
rgb-one has joined #ruby
<RickHull> what editor are you using?
havenwood has quit [Ping timeout: 252 seconds]
<rgb-one> Hello
yqt has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: Leaving]
n3vtelen has joined #ruby
<rgb-one> What does yield_content :head helper do in middleman?
<n3vtelen> is there a hashtag for ruby on twitter?
<RickHull> rgb-one: got a link?
bronson has joined #ruby
<RickHull> n3vtelen: e.g. #ruby ?
<n3vtelen> #rubylang? #Ruby?
<RickHull> n3vtelen: i don't think Matz has blessed anything in particular
<RickHull> it's total anarchy out there
caseypatrickdris has joined #ruby
* RickHull not a twitter user
vdamewood has quit [Quit: Life beckons.]
duderonomy has joined #ruby
<rgb-one> I think my lack of understanding may stem from my lack of understanding of what yield means.
<RickHull> yield itself is pretty tricky in ruby
<RickHull> that said, i think in this case it is fairly straightforward
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<RickHull> yield X typically says "I am going to pass execution to X"
<shevy> rgb-one yield just brings in a block given to a method
<RickHull> sometimes X is implicit
francois_ has joined #ruby
kinduff has quit [Quit: leaving]
<shevy> actually in your example you don't even use yield
Eiam has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<shevy> you use a method called yield_content()
<RickHull> shevy: i think in this case it just tosses in some blob of content
<shevy> hehe
RegulationD has joined #ruby
<RickHull> but it may actually be yielding
<RickHull> such that the content is generated
<shevy> am I the only one to find erb code really ugly?
<RickHull> not just looked up or referenced
<shevy> that so reminds me of php spaghetti code I had used +10 years ago
<RickHull> shevy: my biggest erb complaint is that I can't make a simple template
<shevy> lol
<RickHull> and populate it with a few args to `erb`
<shevy> that's a pretty harsh complaint ;)
<RickHull> for example
<shevy> "hey, template system... why can't I use simple templates!!!"
<RickHull> <some><deep><xml><structure><foo>$value</foo></structure></xml></deep></some>
hotpancakes has quit [Remote host closed the connection]
<RickHull> stick that in xml.erb file
<RickHull> then call erb --value=bar xml.erb
<RickHull> NOPE
djbkd has joined #ruby
<RickHull> technically it would be <%= value %> or w/e
<RickHull> i mean, wouldn't that be the most basic use case?
pontiki has joined #ruby
<RickHull> that is, if i didn't give a shit about ruby and only cared about templating
serivich has quit [Ping timeout: 255 seconds]
<rgb-one> RickHull: Ah. I actually do have an understanding of yield after using it in the main layout.haml file to retrieve content from index.haml. I suppose yield partials as well.
<RickHull> the problem is, erb assumes you have an entire ruby ecosystem generating template values, and it will hook into that
francois_ has quit [Ping timeout: 256 seconds]
n3vtelen has quit [Ping timeout: 244 seconds]
<RickHull> rgb-one: cool, still got a question?
<rgb-one> Yea I will clarify in a bit.
<pontiki> hi o/
RegulationD has quit [Ping timeout: 264 seconds]
<RickHull> pontiki: is that like contiki pon da floor?
mary5030 has quit [Remote host closed the connection]
<pontiki> no
<RickHull> :(
torpig has joined #ruby
<shevy> it's more like pocahontas RickHull
<RickHull> oh no, i'm ineligible for contiki in 2 weeks
<ruby-lang087> all great stuff, you guys have been most helpful
<shevy> there used to be ponbiki here as well
<RickHull> more like poke-a-hotness amirite?
<shevy> poke anything anyway
<ruby-lang087> I've always liked tabs for indentation for some reason
* RickHull poke
<ruby-lang087> but I guess they are overkill
<RickHull> ruby-lang087: nothing wrong with the TAB key
<RickHull> but don't put TAB chars in source control
<RickHull> make your editor convert TAB key to 2 spaces
jhooker has quit [Ping timeout: 252 seconds]
<RickHull> or do auto-indent to 2 spaces
micmus has quit [Ping timeout: 252 seconds]
<shevy> ruby-lang087 I used to be a tabster as well
<shevy> until I started to align comments
<shevy> then it no longer worked
<shevy> then I wondered why I was using tabs anyway
CalvinnHobbes has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
<RickHull> ruby-lang087: what editor are you using?
dalafa has joined #ruby
<pontiki> why not just let the editor do it, as RickHull says
<RickHull> well, when you're just getting started with a new lang, it's hard to know which editor to use or how to do the right thing for you language
<pontiki> it is?
<RickHull> yes, and beyond that, it's hard to know how much the editor *can* do for your lang
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> i don't switch editors for new languages...
<pontiki> i didn't know people did that, even
<RickHull> i'm guessing if you went from C# to ruby
<RickHull> you might switch editors
<pontiki> it's be the other way if i did, but i'd probably still use emacs
<RickHull> emacs is the One True Editor
<shevy> it's also a good OS
<RickHull> but still, ruby-lang087 is new to ruby
<shevy> he uses notepad
<RickHull> and we don't know his background
<RickHull> (or her)
<shevy> ((or it))
<RickHull> notebad > visual studio, so that's a start
yoongkang has joined #ruby
<pontiki> plain old windows notepad?
<pontiki> not notepad++
<pontiki> ?
<rgb-one> With the `= yield` statement I have come across so far, the content of external files is loaded. For example, The content of an index.haml file is yielded from a `layout.haml` file to produce resulting html file with both of the content integrated when compiled. In the context shown above (= yield_content :head), what exactly does yield_content do?
<RickHull> i'd rather teach a newbie starting from notepad than VS
<pontiki> i admit i've never developed on windows
lampd1 has joined #ruby
<lampd1> hey all; so, I'm drawing a blank... how would one cast the current browser window width/height from a sinatra frontend into the ruby app running it?
<shevy> rgb-one you must look up the API docu for that method
<pontiki> so i don't know what VS would be like. my sense is it's like xcode and eclipse, though
<shevy> it is a custom method after all
<RickHull> pontiki: close enough
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> rgb-one: yeah, consult the docs. there are many forms
<RickHull> but almost always there will be API/reference docs
<RickHull> that cover classes and methods
_seanc_ has joined #ruby
daveg_ has joined #ruby
jamesaxl has quit [Remote host closed the connection]
bogdanteleaga has quit [Ping timeout: 256 seconds]
<lampd1> oh doi; just ajax that junk in there
* lampd1 is a doofus
<lampd1> been a long day; and i spent most of it writing C#
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> lampd1: using what editor?
<lampd1> monodevelop
<RickHull> use it for ruby too?
aspiers has quit [Ping timeout: 255 seconds]
<lampd1> nah
<lampd1> vim
<lampd1> and cant stand mono without vim
<RickHull> cool, just checking :)
<lampd1> mod
<lampd1> e*
<lampd1> jeez
x1337807x has joined #ruby
<lampd1> i'd use VS but i'm writing C# on a mac :P
cmisenas has quit [Quit: cmisenas]
<RickHull> lolz
micmus has joined #ruby
<RickHull> is this because of the new .NET open source push?
hotpancakes has joined #ruby
<lampd1> unity3d :)
bogdanteleaga has joined #ruby
<lampd1> i aint doin web in C# that's cray talk
<lampd1> :D
ScriptGeek has joined #ruby
<lampd1> working on a sidekiq/sinatra/rmagic image processor to embed in a unity game haha
<ScriptGeek> how to check if a character is equal to the ESC key character?
<rgb-one> :) Thanks, the docs were helpful.
<ScriptGeek> if character == '\e'
daveg_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-lang087> RickHull: Would you shame me too greatly if I said textwrangler? ;p
<ScriptGeek> is that supposed to work?
<pontiki> textwrangler is a damn fine editor on the mac
jcaho has quit [Read error: Connection reset by peer]
pereba has quit [Quit: A clean quit, because my messages are already in your mind.]
jcaho has joined #ruby
<ruby-lang087> I'm new to programming in general, I mean I've done some bash one-liners and I can do markup like crazy and I've done some pretty mundane stuff that took form inputs and made consistent ebay listings and whatnot
<ruby-lang087> but with ruby I am trying to actually learn to program
<ScriptGeek> ruby is pretty cool
someword has joined #ruby
<lampd1> ruby-lang087: play with some async job processing
<lampd1> it's fun to do functional stuff w/ it
<lampd1> :)
braincra- has quit [Quit: bye bye]
<lampd1> i.e. sidekiq/resque
Forgetful_Lion has joined #ruby
<lampd1> then add some shit on top of that
<lampd1> *bam*
<lampd1> you got a cool async functional processing setup
someword has quit [Client Quit]
<al2o3-cr> >> 27.chr
<ruboto> al2o3-cr # => "\e" (https://eval.in/380877)
<lampd1> or generate static sites
aspiers has joined #ruby
<lampd1> whatever floats your boat ruby-lang087
<ScriptGeek> thanks al2o3-cr, I figured it out just before you posted it =p
<al2o3-cr> ScriptGeek: ok, cool :)
<ruby-lang087> My eventual goal is to make information systems / database apps, probably in rails
<ruby-lang087> I'm not going to touch rails until I have a strong ruby foundation
<shevy> :(
<shevy> we are losing you to #rubyonrails !
<ruby-lang087> though I know people who do, somehow
<ruby-lang087> we'll see, I might freaking hate rails
<ScriptGeek> al2o3-cr: apparently there's a difference between '\e' and "\e" when comparing characters
<ruby-lang087> it just sounds appealing for building rapid internet crap
michael_mbp has quit [Excess Flood]
<lampd1> ruby-lang087: i'm not a huge fan of rails; but i <3 ruby
<ScriptGeek> double quotes worked
<shevy> ruby-lang087 in general, when you can program in ruby, you can program in {php,perl,python,lua} - the patterns are very similar
<shevy> and vice versa of course
braincrash has joined #ruby
<lampd1> that being said; i haven't really given rails a chance
<lampd1> i get paid $$ to work on php web shiznit
<shevy> so it does not really matter where you start, as long as you start in any of them. they are the "scripting family" family
<lampd1> u left out C# shevy :'(
<shevy> well C# is a different family
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lampd1> its not _that_ different
<lampd1> well in terms of rails
<lampd1> idk im talking out of my butt
<shevy> well you have to compile C# or?
<lampd1> slash giving you a hard time
<ruby-lang087> is it common for people to build websites in ruby outside of rails?
<shevy> I mean it is somewhat arbitrary where to draw the line
<lampd1> yeah; i use middleman a lot ruby-lang087
<shevy> nim is rather similar to python but is compiled
<lampd1> and sinatra
commondream has joined #ruby
<shevy> ruby-lang087 I still use ruby .cgi :)
<shevy> though actually
<shevy> I don't use the ruby stdlib cgi part
MVPhelp has quit [Remote host closed the connection]
michael_mbp has joined #ruby
bruno- has joined #ruby
<al2o3-cr> ScriptGeek: yeah, double quotes support escape sequences
yoongkang has quit [Remote host closed the connection]
<RickHull> ruby-lang087: yes, just do a google search for ruby web frameworks
<al2o3-cr> for single quotes use double backslash
yoongkang has joined #ruby
havenwood has joined #ruby
<al2o3-cr> if you want the literal \e
bantic has joined #ruby
baweaver has joined #ruby
<lampd1> ruby-lang087: if you want to make websites quick check out https://middlemanapp.com
<al2o3-cr> hrm, double even my god
<lampd1> that's a static site generator
<lampd1> and probably a good place to start in terms of ruby web
<lampd1> can make a website, get familiar with ruby; and then look @ rails and decide if you want to invest time in it or not
<pontiki> i did my resume site in middleman
<pontiki> quite nice working with it, really
<lampd1> yeah; i like it
<lampd1> esp tying it into APIs
<lampd1> to make lightweight webapps
bruno- has quit [Ping timeout: 256 seconds]
<lampd1> having a backend on a webapp = technical debt
<lampd1> :P
<pontiki> anything you create accrues technical debt
<lampd1> yeah; but storage of data is the most concerning
<lampd1> and offloading that piece is nice
<lampd1> at least imo
<lampd1> but then you have to worry about the API going *poof* :P
<ScriptGeek> al2o3-cr: awesome, thanks for the tip!
<lampd1> since it aint under your control
yeticry has quit [Ping timeout: 276 seconds]
<RickHull> eh, just use gh-pages for resume, etc
<al2o3-cr> ScriptGeek: :)
<Obfuscate> lampd1: The main problem with a static site frontend that loads all its content with javascript/ajax is that your SEO now sucks.
<pontiki> unless your app needs no persistence, you're always going to need a backend somewhere, even if it's local storage
baweaver has quit [Ping timeout: 246 seconds]
<lampd1> API == backend
<lampd1> like a web API
<RickHull> Obfuscate: i am confuse. a static site should be more SEO friendly than dynamic site
<lampd1> contentful; etc
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> what static site "loads all its content with javascript" ?
<pontiki> i don't understand your previous statement then, lampd1
<lampd1> I'm not talking a single page app Obfuscate ; static sites simply mean js/html/css
<lampd1> which one
<lampd1> there were many
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> [22:19:14] <lampd1>having a backend on a webapp = technical debt
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> that one
<lampd1> like... say you want to build a site that plays music
<pontiki> that seems quite meaningless
<lampd1> instead of uploading songs to your server; figuring out how to be able to curate them and manage your page; you could offload the curation and storage process to soundcloud
<lampd1> *for free*
<lampd1> with high availability; and quick load times
<Obfuscate> RickHull: Consider it in the context of what middleman does: the goal is to serve purely static html/js/css on the frontend, and rely on js to fetch your dynamic content from somewhere else.
<pontiki> how does that alleviate technical debt?
<lampd1> and then simple interface with a JS/HTML API
<RickHull> Obfuscate: ah, i think i'm lacking that context
<lampd1> because you're using javascript and css....
<lampd1> and html
<lampd1> and not an additional language; nor having to worry nearly as much about _Security_
<pontiki> your contention is there's no technical debt in developing in those technologies?
axsuul has joined #ruby
<lampd1> no; I'm saying there's less
<lampd1> less technical debt by owning less of the technologies behind what you're building
<lampd1> it's like 1/2 SaaS
<lampd1> :P
ramfjord has joined #ruby
<RickHull> pontiki: generally, most people talk about technical debt in terms of, i'll do this quickly now and pay it back later
<lampd1> I call it AaaS
<RickHull> not in terms of, if i build it now, i have to support it later
<pontiki> that's what causes technical debt to increase, RickHull
gix has quit [Ping timeout: 264 seconds]
<RickHull> pontiki: your perspective seems to be, whatever you build, you have to support. and that's technical debt
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lampd1> what would you call it RickHull ?
<pontiki> so you are just agreeing with me?
<RickHull> but my perspective says, things built properly incur no technical debt
CloCkWeRX has joined #ruby
<RickHull> technical debt is only when you've taken the quick'n'dirty route
<RickHull> gimme the money now, i'll pay it back later
<lampd1> pretty much nothing is built 100% properly tho
<pontiki> RickHull: then you throw that away when you needs change, you understand more, you learn more?
CloCkWeRX has left #ruby [#ruby]
caseypatrickdris has quit [Ping timeout: 256 seconds]
<lampd1> and using someone elses curation/data storage/db patterns can have its uses
<RickHull> i would say that as you build stuff, your technical load increases
<lampd1> esp. if it's already proven to host a prominent webservice
<RickHull> but that's not necessarily technical debt
<RickHull> debit is only "easy money"
<RickHull> *debt
<pontiki> i think that's rather naive
<Obfuscate> RickHull: You're leaning against web technologies; there's no such thing as "properly".
<RickHull> where you sacrifice the long-term in favor of the short-term
umgrosscol has joined #ruby
<RickHull> Obfuscate: you're misreading me. i am saying you only incur "debt" when you consciously choose the quick'n'dirty route
yoongkang has quit [Remote host closed the connection]
<RickHull> choosing fast X over proper Y
<lampd1> I'm simply advocating the centralization/specialization of data storage by type
<pontiki> you seem to be claiming you'll always have perfect knowledge and perfect technologies to implement what you want
<Obfuscate> RickHull: I'm saying you incur debt the second you touch javascript.
<RickHull> Obfuscate: i don't disagree ;)
<lampd1> like; why reinvent the song storage/library wheel when someone lets you use their wheel that's been time proven
balazs has joined #ruby
<pontiki> you're also sounding like a one-trick pony, lampd1
<lampd1> haha
<RickHull> pontiki: not assuming perfect info. just that incurring debit is a conscious *choice*
<lampd1> pontiki: if that's what you think then your vision isn't what you think it is
<pontiki> if that's all then yes
<RickHull> whatever you build, it will be a load. it's only a debt if you chose the quick'n'dirty route explicitly
<lampd1> so you're saying Obfuscate that more languages/more complication in a stack = less technical debt?
<lampd1> and that you can use ruby to build a perfectly capable webapp and _never_ touch JS?
<shevy> just use PHP already
<RickHull> if you didn't have an alternative, if this is the only route ("web technologies"), it's hard to say you incurred a debt
<pontiki> lampd1: so you say that someone else will always have the back end for the application you're building, and every app you make is going to use someone else's data store? who's limited?
<lampd1> pontiki: i qualified that early on
<lampd1> having to worry about your storage going *poff*
<lampd1> s/*poff*/*poof*/
yoongkang has joined #ruby
<Obfuscate> lampd1: No. I'm not sure how you arrived there from my statements.
<RickHull> or the API, or the service provider
<pontiki> or not existing at all?
gix has joined #ruby
<lampd1> read the tos; think about your project; think about the API/services' promininence
<pontiki> sure, of course, if someone provides an api for you to use, use it
<lampd1> decide if it's worth it to build your own or use it
<pontiki> but that's not saying much of anything
<lampd1> heh
<RickHull> well who's saying much of anything anyway?
Spami has quit [Quit: This computer has gone to sleep]
<pontiki> but it seems worth saying anyway?
<RickHull> i'm saying: 1. building X does not imply that X necessarily incurs technical debt. there is a support load, but not necessarily debt
justintv90 has joined #ruby
<RickHull> if you build X, X will have a support load. i think we can all agree. the question is whether load === debt
<lampd1> i'm saying that you can build X with less support load; and have someone else to point a finger at if you do so; by simply generating static sites with middleman using JS APIs to build fairly content rich sites
<pontiki> and i'm saying without perfect knowledge, perfect understanding, all the time in the world, you will practically have to make tradeoffs
<lampd1> and that ruby is more fun to do functional programming ;)
<lampd1> i'm not saying it's better
<lampd1> i'm saying it's _way_ easier
<RickHull> i just want to say that i like how we're all saying stuff xD
<pontiki> lampd1: that's something i very much agree with
<pontiki> it's just not a world i work in and get paid for
<pontiki> shall we switch positions and talk from each other's point of view?
<RickHull> pontiki: engineering is certainly a world without certainty other than the certainty of making tradeoffs :)
<RickHull> pontiki: i'll take that turing test :)
<pontiki> more like a Greek test
<lampd1> pontiki: do you do rails dev?
commondream has quit [Remote host closed the connection]
<pontiki> i do
<lampd1> you have any suggestions for free rails courses?
<pontiki> and angular and plain ruby, perl
<lampd1> I've only really done rails for zombies
<lampd1> and only once
<pontiki> hartl's is free online
<pontiki> i haven't seen rails for zombies, but i've heard it's good
<shevy> are you a zombie
* RickHull zombie
* shevy readies shotgun
<pontiki> no, i've got my circket bat, right here, tho
* RickHull looks down the barrel
<pontiki> cricket*
<pontiki> i don't know if i like angular, tho
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> but it might just be this project
<lampd1> ng-something
<lampd1> ng-somethingelse
* lampd1 has never used angular
<lampd1> but if you ask me about prototypejs I got that shit
<lampd1> ;)
<pontiki> i'm several months in, and i'm still not getting the hang of things
<pontiki> i wrote a fair bit of backbone and knockout, i totally get that shit
<pontiki> and i really really really want to work in react
umgrosscol has quit [Remote host closed the connection]
<lampd1> i'm messing with some phantomjs stuff atm
<lampd1> 8)
<lampd1> kind of a funky stack for processing images of websites
<lampd1> pontiki: do you know much about bundler?
<lampd1> i.e. is there a simple way to run your whole app stack off of locally cached gems
<pontiki> not much of the internals at all
<pontiki> i just use it
commondream has joined #ruby
phat4life has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<lampd1> or locally _stored_
<pontiki> sure
<lampd1> --standalone ?
<pontiki> well maybe i should ask what you really mean by that
<pontiki> you want bundler to install the gems locally rather than in the $GEM_PATH ?
<lampd1> yeah
<lampd1> like within the project dir
<pontiki> --path
arescorpio has quit [Read error: Connection reset by peer]
<zotherstupidguy> ?fubar
<ruboto> I don't know anything about fubar
<pontiki> typically people use --path=vendor/bundle
<lampd1> word; thx dude :)
<pontiki> something i do for production deploys, sometimes
<pontiki> forex, my middleman resume site is like that
<lampd1> yeah; i'm just thinking this stack has some kind of crazy dependencies
stalcott has joined #ruby
<lampd1> one of its dependencies even uses clive
<lampd1> and checks a cli dependency
<lampd1> or two
<lampd1> lol
<lampd1> trying to think of the best way to lock it all down
<pontiki> it's really best to do both --path and --standalone if you want to really isolate an app from the rest of the libraries; avoid collisions
<stalcott> is it possible to do anonymous recursion in Ruby? to invoke the caller without having named it and passed it in? as demonstrated in Perl and Javascript here: https://en.wikipedia.org/wiki/Anonymous_recursion
gix has quit [Ping timeout: 264 seconds]
<pontiki> the --deployment flag does a bunch of those things
micmus has quit [Quit: Leaving]
Eiam has joined #ruby
<lampd1> coolio
_phwelo has joined #ruby
gix has joined #ruby
dgarstang has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
bantic has quit [Quit: bantic]
mary5030 has quit [Ping timeout: 240 seconds]
dgutierrez1287 has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
<toretore> >> def rec(n=1); if n < 5; __send__(__method__, n+1); else; n; end; end; rec
<ruboto> toretore # => 5 (https://eval.in/380878)
<toretore> stalcott: ^
byprdct has joined #ruby
darkf has joined #ruby
<stalcott> toretore: interesting... I will see if this works for procs/stabby lambdas
krisquigley has joined #ruby
<toretore> it doesn't
dgutierrez1287 has quit [Ping timeout: 252 seconds]
ferr has quit [Quit: WeeChat 1.2]
<toretore> >> def rec(n=1); if n < 5; __send__(__callee__, n+1); else; n; end; end; rec
<ruboto> toretore # => 5 (https://eval.in/380879)
<toretore> probably better
<stalcott> oooh
havenwood has quit [Ping timeout: 244 seconds]
<pontiki> i wouldn't call that anonymous though
psy_ has quit [Ping timeout: 250 seconds]
<pontiki> it might be as close as you get with ruby, though
<al2o3-cr> stalcott: http://rosettacode.org/wiki/Anonymous_recursion#Ruby # some examples
DLSteve has quit [Ping timeout: 250 seconds]
psy_ has joined #ruby
x1337807x has joined #ruby
ghostz has joined #ruby
<stalcott> -> (n) { n < 5 ? __send__(__callee__, n+1) : n }.call(0) # <--- doesn't work
krisquigley has quit [Ping timeout: 256 seconds]
Notte has quit []
dgarstang has joined #ruby
jgt4 has quit [Ping timeout: 252 seconds]
davedev2_ has quit [Ping timeout: 252 seconds]
bantic has joined #ruby
_phwelo has quit [Quit: ZNC - 1.6.0 - http://znc.in]
davedev2_ has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> stalcott: I think you'd enjoy this: https://www.youtube.com/watch?v=FITJMJjASUs
_phwelo has joined #ruby
<stalcott> I was there. I remember this talk
<Ox0dea> Ruby is applicative, so we can't have a "real" Y combinator, but the Z combinator is generally an acceptable facsimile.
Spami has joined #ruby
Musashi007 has joined #ruby
<stalcott> Right, well I am deep in the rabbit hole of code that writes code that writes code
yeticry has joined #ruby
<stalcott> wait I missed this talk. thanks
<Ox0dea> Heh, sure thing.
<Ox0dea> It's really fascinating.
lysw123 has joined #ruby
<Ox0dea> As is Tom Stuart's "Programming with Nothing".
freerobby has quit [Quit: Leaving.]
idiocash has joined #ruby
idiocash has quit [Client Quit]
idiocash has joined #ruby
joneshf-laptop has quit [Remote host closed the connection]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
idiocash has quit [Client Quit]
byprdct has joined #ruby
yoongkang has quit [Remote host closed the connection]
idiocrash has joined #ruby
byprdct has quit [Max SendQ exceeded]
joneshf-laptop has joined #ruby
yoongkang has joined #ruby
idiocrash has quit [Client Quit]
byprdct has joined #ruby
mleung has joined #ruby
byprdct has quit [Max SendQ exceeded]
havenwood has joined #ruby
bentanweihao has quit [Remote host closed the connection]
<phat4life> does ruby pass Objects by value or by refernece?
<phat4life> like Array for example
Yzguy has joined #ruby
<lampd1> phat4life: peep pry
Lector has quit [Ping timeout: 265 seconds]
<lampd1> i found it very helpful in understanding ruby basics
Lector has joined #ruby
RegulationD has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
daveg_ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
mleung has quit [Quit: mleung]
davedev24_ has joined #ruby
_phwelo has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mleung has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
_phwelo has joined #ruby
daveg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev2_ has quit [Ping timeout: 265 seconds]
bantic has quit [Quit: bantic]
dseitz has joined #ruby
RegulationD has joined #ruby
_phwelo has quit [Client Quit]
ta has joined #ruby
_phwelo has joined #ruby
Rickmasta has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
mleung has quit [Quit: mleung]
Channel6 has quit [Quit: Leaving]
riotjones has joined #ruby
binxiao has joined #ruby
lysw123 has quit [Remote host closed the connection]
_seanc_ has quit [Quit: _seanc_]
AbinoamJr has joined #ruby
RickHull has left #ruby [#ruby]
joaomdmoura has joined #ruby
commondream has quit [Remote host closed the connection]
bentanweihao has joined #ruby
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has quit [Ping timeout: 276 seconds]
joaomdmoura has quit [Client Quit]
jenrzzz has joined #ruby
<hanmac> phat4life: "by object" ... means you can do def add(obj); obj << data; end; but you cant def add(obj); obj += data; end; in the first one obj itself is changed, in the second one a new obj is created
<phat4life> so using def (a = []) is bad in a reursive function then, assuming i am modifying a in every recursive call
bronson has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Ox0dea> phat4life: Stateful recursion is pretty unpleasant, but it's sometimes what you want.
<noethics> does ruby have TcO
<noethics> TCO
<Ox0dea> Sort of.
<phat4life> Ox0dea: im used to recursion in C, where you can just pass a pointer
<phat4life> er, c++
<Ox0dea> Recursion is the same everywhere.
<noethics> nah lol
<noethics> TCO in c++ is really good
<noethics> recursion is essentially free if done properly
<phat4life> rigtht, but is every resuricve call creating a new object
<noethics> yes, plus depending on TCO you might end up with a huge stack
<noethics> recursion is generally bad in high level languages
<noethics> but idk how ruby does TCO
<Ox0dea> It's a compile-time feature, but you can finagle the RubyVM module into using it regardless.
senayar has joined #ruby
rgb-one has quit [Remote host closed the connection]
<Ox0dea> It has to be applied to individual InstructionSequence containers, though.
<noethics> yeahhh i would avoid recursion
<phat4life> that makes me sad
<Ox0dea> Are you using Ruby to do Big Data?
<noethics> phat4life, very few languages do good TCO
<noethics> like, almost none
<Ox0dea> How deep a stack do you really need?
<noethics> except C/C++
<phat4life> no i am just review algorihims, and i don't feel like writing c++ right now
_phwelo has quit [Quit: ZNC]
<Ox0dea> You typically want to use recursion to walk trees irrespective of the language you're using.
<noethics> ye but you can still optimize that
bentanweihao has quit [Remote host closed the connection]
<noethics> ie. run a loop and recurse the branches
<noethics> instead of the whole tree
<Ox0dea> What?
<Ox0dea> How do you tell the loop when to stop?
<noethics> depends on the implementation
DLSteve has joined #ruby
<Ox0dea> Depends on whether or not you understand recursion. ^_^
<noethics> not really
<noethics> what lo
<phat4life> its much easier to do tree traveral just puerly recursively
<phat4life> from a programming standpoint
<noethics> easier yeh
swgillespie has joined #ruby
<Ox0dea> Natural, even.
<noethics> but if the tree is huge or you have a lot of control flowy stuff in your tree
<noethics> it's inefficient
<Ox0dea> Using explicit iteration to walk a tree involves maintaining your own stack, so what's the point?
<phat4life> how would that make a difference
<phat4life> every recusive solution can be converted directly to iterative
<Ox0dea> And vice versa.
senayar has quit [Ping timeout: 265 seconds]
<phat4life> i don't see how it would be different other that from the difference because iteration/recursive stack
<noethics> the difference is you renew the stack every iteration
<phat4life> with renew meaning what exactly?
<noethics> you can do it with recursion too by unwrapping the stack
<noethics> but you have to know what youre doing
<noethics> ie. when you exit the stack just disappears
<noethics> you dont have to worry about the stack
<Ox0dea> ...
<noethics> what Ox0dea
zotherstupidguy has quit [Ping timeout: 265 seconds]
<Ox0dea> You have to maintain all the state that a recursive approach would.
<noethics> no you dont
AbinoamJr has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0/20150511103303]]
<Ox0dea> Not all at once, if that's the point you're meaning to make.
_phwelo has joined #ruby
<noethics> any state you need is some high level abstracted data
bruno- has joined #ruby
<noethics> you dont have all of the state associated with stack frames
<noethics> and yes, not all at once
<noethics> because the stack unwraps itself
<noethics> when you exit
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Changing host]
zotherstupidguy has joined #ruby
<Ox0dea> But that's essentially what the recursion would do anyway.
<noethics> yeah if you do it properly as i said
<noethics> but it's completely avoided using iterative approach
<phat4life> noethics: are you talking about tail recursion?
<noethics> yes
<phat4life> ok you could have just said that lol
<noethics> tail recursion is bad
<noethics> what do you think i meant by TcO
CalvinnHobbes has joined #ruby
<phat4life> i thought tail recursion was good
<Ox0dea> noethics: Tail recursion is the good kind.
<Ox0dea> It's essentially mathematically equivalent to iteration.
Mia has joined #ruby
<Ox0dea> Except with the added bonus of letting the computer decide when to stop rather than supplying some sort of explicit stopping condition.
<noethics> with TCO yes
<Ox0dea> That was worded poorly, but I suspect you took my meaning.
<noethics> i understand
<noethics> but TCO is ecessary
<noethics> anyway i gotta go do work D:
Guest123 has joined #ruby
<noethics> glhf
<Ox0dea> I'm adding named Unicode literals to Ruby...
<Ox0dea> Hyphens, BEGIN/END, IO, and TRUE are ruining my night.
mdz_ has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Guest123 has quit [Client Quit]
lysw123 has joined #ruby
Behi has joined #ruby
agent_white has joined #ruby
<agent_white> Evenin' folks
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgarstang has quit [Quit: WeeChat 0.4.3]
yfeldblum has quit [Ping timeout: 265 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yoongkang has quit [Remote host closed the connection]
xxneolithicxx has quit [Ping timeout: 255 seconds]
CalvinnHobbes has quit [Remote host closed the connection]
CalvinnHobbes has joined #ruby
_seanc_ has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs has quit [Remote host closed the connection]
Lucky__ has joined #ruby
yoongkang has joined #ruby
ferr has joined #ruby
<ScriptGeek> hmm
<ScriptGeek> Random.rand(0..10)
robbyoconnor has joined #ruby
bentanweihao has joined #ruby
<Ox0dea> ScriptGeek: What about it?
<ScriptGeek> if I wanted to write my own class to do SomeClass.yadda(0..10) what would the syntax look like?
bentanweihao has quit [Remote host closed the connection]
<Ox0dea> You're not being very clear.
<Ox0dea> >> (0..10).class
<ruboto> Ox0dea # => Range (https://eval.in/380884)
bentanweihao has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
<ScriptGeek> no, not range.
<ScriptGeek> that was just for some parameter... it was an example
<ScriptGeek> class SomeClass ...
<ScriptGeek> end
<ScriptGeek> add a method in there somewhere
<ScriptGeek> call it derp
<ScriptGeek> then call the derp method like this
frem has quit [Quit: Connection closed for inactivity]
<ScriptGeek> SomeClass.derp
houhoulis has quit [Remote host closed the connection]
mleung has joined #ruby
<ScriptGeek> without instantiating the object
<ScriptGeek> like Random.rand does it
<Ox0dea> Those are called singleton methods.
bronson has quit [Remote host closed the connection]
<ScriptGeek> oh I see
<Ox0dea> class SomeClass; def self.derp; :derp end end; def SomeClass.yadda; :yadda end; [SomeClass.derp, SomeClass.yadda]
<Ox0dea> >> class SomeClass; def self.derp; :derp end end; def SomeClass.yadda; :yadda end; [SomeClass.derp, SomeClass.yadda]
<ruboto> Ox0dea # => [:derp, :yadda] (https://eval.in/380885)
someword has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> class SomeClass; end; SomeClass.define_singleton_method(:foo) { :bar }; SomeClass.foo
<ruboto> Ox0dea # => :bar (https://eval.in/380886)
Xiti has quit [Quit: Xiti]
<Ox0dea> There are a few more, but those are the standard approaches.
<ruby-lang087> shevy: https://gist.github.com/Toggie/1dc6f84dbcb5c6a64896 Does this look more respectable now?
jeramy_s has joined #ruby
Xiti has joined #ruby
<Ox0dea> ruby-lang087: Are you being nefarious?
<ruby-lang087> 0x0dea: absolutely not
<Ox0dea> Promise?
<ruby-lang087> Promise. :)
<noethics> let's just hope the target machine has ruby!
yeticry has joined #ruby
<noethics> skid level 0 ;o
<Ox0dea> noethics: Why would that be a necessary condition?
<ruby-lang087> I'm learning programming and thought a concurrent ssh system might be a functional practice
<ruby-lang087> ruby is my first language
<ScriptGeek> Ox0dea: what does the self.derp method syntax mean?
x1337807x has joined #ruby
someword has quit [Client Quit]
<noethics> Ox0dea, if he manages to get that shell on a server and it doesnt have ruby hes gonna have a bad time ;o
Yzguy has quit [Read error: Connection reset by peer]
<lampd1> unless he uses clive
<lampd1> 8)
<lampd1> o wait
<lampd1> clive needs ruby
<lampd1> haha
<ScriptGeek> ruby is my ... uhh... idk language
<Ox0dea> It's clearly your first object-oriented language. :P
<ScriptGeek> no
<ScriptGeek> i know that self refers the the current object
<lampd1> uhhh
<ScriptGeek> but I was asking about the syntax
<Ox0dea> It's just syntax, mate.
sevvie has quit [Quit: Lost terminal]
<ScriptGeek> I'm not sure how it works like a static method in C# works
joaomdmoura has joined #ruby
sevvie has joined #ruby
<lampd1> why are you worrying about GC in ruby?
<lampd1> :P
yeticry has quit [Ping timeout: 250 seconds]
<ScriptGeek> in C# a static class and static methods are defined and can be refered to without refering to an object
lxsameer has joined #ruby
lxsameer has joined #ruby
yeticry has joined #ruby
<Ox0dea> Classes are objects in Ruby.
<ScriptGeek> A singleton implies an object is instantiated
<lampd1> does that answer your Q?
<lampd1> ScriptGeek: a singleton implies _only one_ of said object is instantiated
<ScriptGeek> not sure yet, i'll check it out
<Ox0dea> >> class Foo; end; [Foo.class, Foo.class.class.class.class]
<ruboto> Ox0dea # => [Class, Class] (https://eval.in/380888)
<ScriptGeek> yeah, that's why I said "an", but I suppose I could be more specific
<lampd1> an could be one or more imo ;)
<lampd1> but that's just how i read it
ferr has quit [Quit: WeeChat 1.2]
jenrzzz has quit [Ping timeout: 255 seconds]
<ScriptGeek> it's all good
<Ox0dea> ScriptGeek: You can't call a method on something that doesn't exist.
bentanweihao has quit [Remote host closed the connection]
bentanweihao has joined #ruby
bentanweihao has quit [Remote host closed the connection]
<lampd1> ruby is pretty different from C#
robbyoconnor has quit [Quit: Konversation terminated!]
<ScriptGeek> I started learning ruby 3 weeks ago
<Ox0dea> > learning
<lampd1> I started learning C# 3 weeks ago :P
bentanweihao has joined #ruby
<lampd1> well, re-learning
<ScriptGeek> nice
<Ox0dea> ScriptGeek: What're you using to learn Ruby?
<ScriptGeek> I'm using Treehouse
<ScriptGeek> haha, I got the same message when I was asking about C# questions a few months ago... I used C# to develop an app back in 2008
jacaballero_ has joined #ruby
<lampd1> one of the absolute best free programming books I've ever stumbled across
jacaballero has quit [Ping timeout: 250 seconds]
<ScriptGeek> I had a hard time following due to the humor
<lampd1> ;)
<lampd1> a lot of ruby projects are well documented
<ScriptGeek> maybe i need to upgrade my L2 cache to improve my reading comprehension
<lampd1> haha
<lampd1> i learned a lot by poking around stuff w/ pry
zotherstupidguy has left #ruby ["WeeChat 1.2"]
<lampd1> pull down a project - browse through; set a few pry breakpoints and get to grokking
<lampd1> :P
zotherstupidguy has joined #ruby
RobertBirnie has joined #ruby
<ScriptGeek> does it have code completion and method/property lookup?
<lampd1> #1 i believe so #2 most definitely
<lampd1> i find it a bit more intuitive than IRB
<ScriptGeek> that would make it so much easier
<lampd1> you can navigate app state using unix navigation cmds
<lampd1> i.e. you can `ls` objects/classes
<lampd1> and `cd` into them
<Ox0dea> ScriptGeek: Which distro are you using?
<ScriptGeek> I'm using IRB right off the Treehouse website... it doesn't do anything but syntax highlighting
Gaelan has joined #ruby
<lampd1> well; i dont think it will necessarily do "code completion"
<lampd1> but i think it can complete methods if you begin with a class
<lampd1> not 100%
<ScriptGeek> having the lookup would be nice
<ScriptGeek> Ox0dea: what distro?
<Ox0dea> ScriptGeek: Never mind.
<Ox0dea> For what it's worth, Ruby has introspection baked right in.
<Ox0dea> >> 1.methods.grep(/to_/)
<ruboto> Ox0dea # => [:to_s, :to_f, :to_i, :to_int, :to_r, :to_c, :to_enum] (https://eval.in/380889)
otherj has joined #ruby
<ScriptGeek> to_enum... that's a new one
otherj has quit [Client Quit]
<lampd1> yeah; but you have to write and run the introspection
<lampd1> instead of writing while running
commondream has joined #ruby
<ScriptGeek> I didn't think ruby had enums
yfeldblum has joined #ruby
krisquigley has joined #ruby
<ScriptGeek> I've been using hashes and arrays for all kinds of stuff
<lampd1> it does indeed; they're kinda funky at first but pretty powerful when it clicks
<Ox0dea> "enum" means Enumerator here.
RobertBirnie has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
<Ox0dea> >> x = [1, 2, 3].to_enum; [x.next, x.next]
<ruboto> Ox0dea # => [1, 2] (https://eval.in/380890)
<shevy> I seem to have collected a lot of weird ruby code from other people
<shevy> begin; while not(@done) do
<ScriptGeek> weird indeed
failshell has joined #ruby
<lampd1> oh yeah, not a coroutine like an ienumerable
<ScriptGeek> lampd1: are you using Unity with C#?
<lampd1> yeah
<ScriptGeek> nice
jeramy_s has quit [Quit: Peace out!]
<ScriptGeek> I'm working with Unity on another project
RobertBirnie has joined #ruby
<lampd1> coolio :) unity is fun stuff
<ScriptGeek> yeah, I love it
<ScriptGeek> it's more fun than ruby :p
<lampd1> haha; ruby is super fun once a few key pieces click
ramfjord has quit [Ping timeout: 246 seconds]
<lampd1> just takes a little getting used to thinking the "ruby way"
<ScriptGeek> it's alright... I wanted to make a "small" project as part of the Team Treehouse course requirements, but this ruby project is taking much longer than I thought it would
<lampd1> what's the project goal?
krisquigley has quit [Ping timeout: 256 seconds]
<ScriptGeek> It's just a Dope Wars clone, running in the text console
<ScriptGeek> I got the menu system working correctly today
JamesDH has joined #ruby
ItSANgo has quit [Quit: Leaving...]
<lampd1> huh; cool - dont rly know what dope wars is - is it like a turn based text rpg?
<ScriptGeek> sooner or later I'll dive back in and create a better solution
senayar has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
<ScriptGeek> yeah, it's sorta like that... here, lemme find a link
<ScriptGeek> well, i was hoping to find a nice image, but here: https://en.wikipedia.org/wiki/Drugwars
<ScriptGeek> it's a super simple game
metallicrwr_ has joined #ruby
<ScriptGeek> buy drugs from one city, sell them in another for a profit, try not to get hassled by the police or mugged by a thug
<Ox0dea> Mawds!
<ScriptGeek> I've never made a Dope Wars game before
<ruby-lang087> I only ever played the TI-83 calculator version ;p
<ScriptGeek> it's a nice game to play to stave off boredom
<shevy> what code do you guys tend to use for finding out the base-directory of a given ruby gem foobar (that you wrote)
senayar has quit [Ping timeout: 264 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
j4cknewt has joined #ruby
<Ox0dea> const_set const_set(:IO_, IO).to_s, 'IO'
<Ox0dea> I think I'm in the bad part of Ruby.
<ScriptGeek> eventually I'll finish this project
<ScriptGeek> 4 more features to implement
<ScriptGeek> and I should probably refactor the code to make it look presentable
<ScriptGeek> children might see it someday
<ScriptGeek> don't want it to be too scary
francoi__ has joined #ruby
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest80523 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as silverdust
francoi__ has quit [Ping timeout: 276 seconds]
casadei has quit [Remote host closed the connection]
ylla has joined #ruby
LicHacker has quit [Ping timeout: 240 seconds]
<ScriptGeek> anyways, thanks for the ruby help, lampd1 and Ox0dea
commondream has quit [Remote host closed the connection]
ScriptGeek has quit [Quit: Leaving.]
commondream has joined #ruby
gianlucadv has joined #ruby
bronson has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Jarboe has quit []
commondream has quit [Ping timeout: 256 seconds]
ghostz_ has joined #ruby
ghostz_ has quit [Max SendQ exceeded]
ghostz_ has joined #ruby
ghostz has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 276 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has joined #ruby
Gaelan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
niemcu has joined #ruby
yoongkang has quit [Remote host closed the connection]
keen_____ has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
keen_____ has joined #ruby
CalvinnHobbes has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
ivicaveric has joined #ruby
<ivicaveric> Hey guys, I have a question for the rails guys here :), I am doing .where('user.id in ?', [7,9,10,11,14])
ItSANgo has joined #ruby
lessless has joined #ruby
ivicaveric has quit [Client Quit]
bruno- has joined #ruby
micmus has joined #ruby
AussieDownUnder has joined #ruby
ylla has quit [Read error: Connection reset by peer]
ylla has joined #ruby
Log1x has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
CyborgCygnus has quit [Ping timeout: 265 seconds]
chussenot has joined #ruby
senayar has joined #ruby
dgutierrez1287 has joined #ruby
Forgetful_Lion has quit [Remote host closed the connection]
hubcaps has joined #ruby
stan has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
DoubleMalt has joined #ruby
bkxd has joined #ruby
yfeldblum has joined #ruby
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
_ht has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Ping timeout: 272 seconds]
x44x45x41x4E has joined #ruby
GPrime has joined #ruby
akkad has quit [Max SendQ exceeded]
akkad has joined #ruby
wookiehangover has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 256 seconds]
chinmay_dd has joined #ruby
niemcu has quit [Ping timeout: 252 seconds]
skade has joined #ruby
chinmay__ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
chinmay_dd has quit [Ping timeout: 276 seconds]
Dreamer3 has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
_seanc_ has quit [Quit: _seanc_]
rubie has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
RegulationD has joined #ruby
hanmac has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 252 seconds]
hardlin3r has joined #ruby
aapole has joined #ruby
CalvinnHobbes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
yoongkang has joined #ruby
mdz_ has quit [Remote host closed the connection]
krisquigley has joined #ruby
ta has quit [Remote host closed the connection]
failshell has joined #ruby
Guest6 has joined #ruby
Guest6 has quit [Client Quit]
krisquigley has quit [Ping timeout: 256 seconds]
failshell has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
hardlin3r has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dseitz has quit [Quit: g'nite]
attlasbot has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
mdz_ has joined #ruby
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
sandstrom has joined #ruby
lysw123 has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has joined #ruby
<wnd> #rubyonrails might help
chinmay__ is now known as chinmay_dd
Cache_Money has joined #ruby
senayar has joined #ruby
oo_ has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
senayar has quit [Ping timeout: 240 seconds]
DLSteve has quit [Ping timeout: 272 seconds]
Rollabunna has joined #ruby
Scroff has joined #ruby
edwinvdgraaf has joined #ruby
mdz_ has quit [Remote host closed the connection]
kraljev11 has joined #ruby
mdz_ has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
ndrei has joined #ruby
djellemah has joined #ruby
michael_mbp has quit [Excess Flood]
pepperbreath has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
skade has quit [Quit: Computer has gone to sleep.]
mdz_ has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
kraljev11 has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
neanderslob has quit [Remote host closed the connection]
chussenot has joined #ruby
metallicrwr_ has quit [Quit: brb]
michael_mbp has joined #ruby
metallicrwr_ has joined #ruby
kraljev11 has joined #ruby
pepperbreath1 has joined #ruby
skade has joined #ruby
pepperbreath has quit [Ping timeout: 276 seconds]
neanderslob has joined #ruby
justintv90 has quit [Ping timeout: 255 seconds]
ghostz has joined #ruby
Nahra has joined #ruby
edwinvdgraaf has joined #ruby
ruby-lang087 has quit [Quit: Page closed]
ghostz_ has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
ghostz_ has joined #ruby
lkba has joined #ruby
ghostz has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
neanderslob has joined #ruby
Kovensky has joined #ruby
lkba_ has quit [Ping timeout: 245 seconds]
banister has joined #ruby
chussenot has joined #ruby
banister has quit [Max SendQ exceeded]
lkba has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
greenbagels has joined #ruby
jenrzzz has joined #ruby
dekz has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
blue_deref has quit [Quit: bbn]
rubie has quit [Ping timeout: 265 seconds]
chussenot has quit [Quit: chussenot]
RegulationD has joined #ruby
k3asd` has joined #ruby
Scroff has quit [Remote host closed the connection]
dekz has left #ruby [#ruby]
wildroman2 has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
wildroman2 has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
ta has joined #ruby
pepperbreath has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
jcaho has joined #ruby
armyriad has quit [Quit: Leaving]
pepperbreath1 has quit [Ping timeout: 276 seconds]
munen has joined #ruby
Scroff has joined #ruby
munen has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 276 seconds]
sinkensabe has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
rdark has quit [Quit: leaving]
jgt4 has joined #ruby
Scroff has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
senayar has joined #ruby
ramfjord has joined #ruby
DLSteve has joined #ruby
Jackneill has joined #ruby
sinkensabe has joined #ruby
Migger has joined #ruby
jacaballero_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 265 seconds]
n008f4g_ has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
<shevy> guys
<shevy> say something funny
spider-mario has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
<jhass> no
Ox0dea has joined #ruby
<Ox0dea> shevy: I added named Unicode "literals" to Ruby.
<Ox0dea> I think that's kinda funny.
Migger has quit [Remote host closed the connection]
<Ox0dea> >> TRUE # Is this just a compatibility thing?
<ruboto> Ox0dea # => true (https://eval.in/380962)
ramfjord has quit [Ping timeout: 272 seconds]
<jhass> I guess?
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea> Well, it caused me to have to special-case the Unicode character "TRUE", about which I am slightly cross.
<jhass> idk, anybody who uses it and your gem deserves the headache IMO
<Ox0dea> What?!
<Ox0dea> Who wants to have to remember all those codepoints?
<jhass> I'm saying both together
mister_solo has joined #ruby
<Ox0dea> But "#{PILE OF POO}"!
<jhass> I'm curious, how much memory does that consume?
chinmay__ has joined #ruby
chinmay_dd has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
sinkensabe has quit [Remote host closed the connection]
nikhgupta` has joined #ruby
<Ox0dea> jhass: Sorry, totally spaced and forgot memsize_of needs to be required in.
<Ox0dea> The map from name to character is 1109480 bytes, but I also create an inverted one for disambiguating.
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
ndrei has joined #ruby
<jhass> so about a MB bloat :P
<Ox0dea> Yessir.
<Ox0dea> Do you think it'd be better to lazily fetch characters as needed?
<Ox0dea> Perhaps from the Internet?
Ropeney has joined #ruby
casadei has joined #ruby
<jhass> nah
Ropeney has quit [Client Quit]
<Ox0dea> Fine.
<Ox0dea> Is there some clever, non-eval way to test this?
<jhass> const_get ?
Ropeney has joined #ruby
<Ox0dea> It's only constant resolution for the last word, then it's method_missing calls until a valid character is known.
<Ox0dea> Even then, valid characters can end up being passed to further method_missings for disambiguation.
<Ox0dea> "#{SNOWMAN} #{BLACK SNOWMAN} #{SNOWMAN WITHOUT SNOW}", for instance.
multi_io has quit [Read error: Connection reset by peer]
allomov has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
allomov has quit [Read error: Connection reset by peer]
casadei has quit [Ping timeout: 265 seconds]
allomov has joined #ruby
tskogberg has quit [Ping timeout: 244 seconds]
chussenot has joined #ruby
multi_io has joined #ruby
arturmartins has joined #ruby
chussenot has quit [Client Quit]
<jhass> "\u{SNOWMAN}" could be a fun language feature actually
krisquigley has joined #ruby
mister_solo has quit [Ping timeout: 246 seconds]
<Ox0dea> Perl has it.
<Ox0dea> They use \N, though.
failshell has joined #ruby
<Ox0dea> Has Crystal taken your fancy, then?
aapole has quit [Ping timeout: 245 seconds]
<jhass> I guess
justintv90 has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
Nigel_ has joined #ruby
mister_solo has joined #ruby
alex88 has joined #ruby
Cybergeek has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
G has quit [Disconnected by services]
Nigel_ is now known as G
failshell has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Remote host closed the connection]
nikhgupta` has quit [Remote host closed the connection]
nikhgupta` has joined #ruby
A205B064 has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
wildroman2 has joined #ruby
hakunin has quit [Remote host closed the connection]
<shevy> ack
<shevy> you use method_missing
<Ox0dea> shevy: Only in a module intended to be extended from, so the damage is localized.
ta has joined #ruby
alex88 has quit [Remote host closed the connection]
riotjones has joined #ruby
<Ox0dea> How often do you get to use a gem to help write its gemspec description?
nikhgupta` has quit [Ping timeout: 265 seconds]
<shevy> don't think I ever needed that
axsuul has quit [Ping timeout: 240 seconds]
<shevy> writing gemspecs is very boring
hotpancakes has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
<shevy> it would be nice if rubygems could sort of automatically pick a gemspec up from a key class or something like that
mister_solo has quit [Ping timeout: 252 seconds]
<jhass> write a generator
ruurd has quit [Quit: Zzzzz z zz ...]
MMoris has joined #ruby
bosma has quit [Quit: Leaving]
ta has quit [Ping timeout: 252 seconds]
zotherstupidguy has quit [Ping timeout: 276 seconds]
zotherstupidguy has joined #ruby
ylla has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
francois_ has joined #ruby
ylla has joined #ruby
<shevy> I hope you could write one for me jhass :)
<jhass> nah, I'm fine with bundler's
tskogberg has joined #ruby
sinkensabe has quit [Remote host closed the connection]
francois_ has quit [Ping timeout: 276 seconds]
FernandoBasso has joined #ruby
Miphix has joined #ruby
attlasbot has quit [Quit: Leaving]
<Ox0dea> Named threads just dropped in trunk. What's the utility?
k3asd` has quit [Ping timeout: 244 seconds]
<Ox0dea> I mean, isn't it kind of redundant?
senayar has joined #ruby
whoami_ has joined #ruby
<jhass> huh? "dropped" as in removed?
<jhass> and why redundant?
m8 has joined #ruby
ylla has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
senayar has quit [Ping timeout: 250 seconds]
aapole has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
<jhass> oh weird, I thought we had them already
<Ox0dea> Well, they already have to be stored in some kind of variable, and thus they already have "names".
<Ox0dea> Why not named arrays and hashes too?
<Ox0dea> On a related note, why Class#name?
alex88 has joined #ruby
Cork has quit [Ping timeout: 264 seconds]
<shevy> because it gives you the name?
govg has joined #ruby
<jhass> Ox0dea: I'd expect thread names to be about phtread_setname_np
govg has quit [Client Quit]
<jhass> so that's incredibly useful
UnnamedUser has joined #ruby
kraljev11 has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
<apeiros> for debugging, I suppose?
jgt4 has quit [Quit: WeeChat 1.1.1]
wildroman2 has quit [Ping timeout: 265 seconds]
<Ox0dea> At the C level?
pandaant has joined #ruby
sdothum has joined #ruby
<Ox0dea> When would you not be able to determine which thread you were dealing with from Ruby land?
nohminn has joined #ruby
stalcott has quit []
Marsupermammal has joined #ruby
wildroman2 has joined #ruby
<jhass> one ruby thread maps one pthread
rubie has joined #ruby
<jhass> apeiros: or simply knowing which of my threads died by looking at htop
<jhass> or think autoscaling stuff, simply seeing how many of what kind of thread are running
<apeiros> jhass: right, so: debugging ;-)
<apeiros> oh, wait… are there tools to measure cpu time per pthread?
riotjones has quit [Ping timeout: 250 seconds]
<jhass> mmh, wouldn't be surprised but I never checked
flak has joined #ruby
UnnamedUser has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
alex88 has quit []
rubie has quit [Ping timeout: 265 seconds]
mc_fail has joined #ruby
RegulationD has joined #ruby
rippa has quit [Ping timeout: 255 seconds]
ta has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
otherj has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
wildroman3 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
tonytr has joined #ruby
<tonytr> Newbie query: for the following code "array1.length do i" how do i modify it so that the do loop iterates only the array "length-1". when i put "array1.(length-1) do i" i get an error
<shevy> is that really a loop?
<jhass> tonytr: (array.size-1).times do |i|
ziprar is now known as zipace
edwinvdgraaf has quit [Remote host closed the connection]
<tonytr> hi - is it possible without using the size method?
edwinvdgraaf has joined #ruby
<jhass> size and length are the same
<tonytr> so (array1.length-1).times do |i| - should work?
<jhass> yes
platzhirsch has joined #ruby
<tonytr> thanks
platzhirsch has quit [Client Quit]
DEA7TH has joined #ruby
OrbitalKitten has joined #ruby
valeri_ufo has joined #ruby
edwinvdg_ has joined #ruby
<Ox0dea> tonytr: I feel compelled to ask: how come you don't need the last element?
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
<Ox0dea> There are any number of good reasons, of course.
senayar has joined #ruby
<tonytr> Ox0dea, just specific to the program I'm writing - the last element isn't relevant. Interesting that "array1.length do |i|" would work but if you you need a different number you have to use ".times"
x44x45x41x4E has quit [Remote host closed the connection]
ninja_python has joined #ruby
<Ox0dea> tonytr: You'll have to define "work" there.
<Ox0dea> >> n = 0; [1, 2, 3].length { n += 1 }; n
<ruboto> Ox0dea # => 0 (https://eval.in/380976)
<Ox0dea> Every method accepts an implicit block, but Enumerable#length doesn't do anything with it.
otherj has quit [Quit: .]
<Ox0dea> You could use Enumerable#count if you absolutely must avoid calling #times, but I can't imagine why that'd be the case.
startupality has joined #ruby
pontiki has joined #ruby
aapole has quit [Ping timeout: 265 seconds]
nhhagen has joined #ruby
serivich has joined #ruby
otherj has joined #ruby
Rollabunna has quit [Remote host closed the connection]
qwertme has joined #ruby
startupality has quit [Quit: startupality]
roshanavand has joined #ruby
wookiehangover has joined #ruby
thelastinuit has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<livcd> any sass guy around ? i'd like to ask if i can change the selector type with mixins ? eg .selector { @include mixin; } can compile to .selector::before { color: blue; }
centrx has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdg_ has joined #ruby
<jhass> livcd: hey livcd, welcome to the Ruby programming language channel where you can ask all your Ruby questions
kraljev11 has joined #ruby
<livcd> jhass: :3
<jhass> livcd: in other words /msg alis help
<livcd> who is alis ?
nhhagen has quit [Remote host closed the connection]
ht__ has joined #ruby
FernandoBasso has quit [Ping timeout: 245 seconds]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
startupality has joined #ruby
FernandoBasso has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<tonytr> im wondering is "1.upto(array1.length-1) do |i|" the same as (array1.length-1).times do |i|? It seems they should be but I get different results for both
Miphix has quit [Quit: Leaving]
<jhass> tonytr: no times is 0-indexed
<jhass> so it's the same as 0.upto(array.length-2) do |i|
<tonytr> ah i see...
nhhagen_ has joined #ruby
chinmay__ is now known as chinmay_dd
dgutierrez1287 has joined #ruby
<tonytr> so going back to that original code, how can I change it so that it starts from 0. I don't wish to use the upto method. Using length and times is ok
<tonytr> starts from 1*
<jhass> what's wrong with upto?
ule has joined #ruby
<jhass> I'd argue its the most idiomatic version in fact
<tonytr> I'm trying to solve a problem in a book. Upto hasn't been covered yet
<ule> hi there
<jhass> so what?
<centrx> times is okay
<jhass> tonytr: that book won't cover all Ruby has to offer in the standard library anyway
<ule> Is there any way to check if a website is using ruby?
AussieDownUnder has quit [Quit: I hath quit]
nhhagen_ has quit [Remote host closed the connection]
wildroman3 has quit [Ping timeout: 265 seconds]
CyborgCygnus has joined #ruby
<tonytr> ok jhass
<otherj> builtwith is decent at detecting rails, but otherwise you may be out of luck
<jhass> tonytr: that said, you'll also see (1..(array.size-1).each do |i| and (1...array.size).each do |i| often too, but throw away that useless arbitrary restriction you thought of and use upto, everything else is just severely damaging your mindset
<dreinull75> anybody here responsible for slim2html?
CyborgCygnus has quit [Remote host closed the connection]
pepperbreath1 has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
<otherj> hot as balls here today :-/
jenrzzz has quit [Ping timeout: 276 seconds]
nhhagen has joined #ruby
ule has left #ruby [#ruby]
<tonytr> I could do that jhass but technically failed at solving the problem. I guess I could use "(array.length-2).times do |i|" and just add 1 to i at the beginning of the loop?
OrbitalKitten has joined #ruby
<jhass> technically yes
<jhass> is that a nice way, nope
adac has joined #ruby
pepperbreath has quit [Ping timeout: 264 seconds]
duncannz has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
bronson has joined #ruby
mutuma has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
sameerynho has joined #ruby
krisquigley has joined #ruby
nhhagen has joined #ruby
jenrzzz has joined #ruby
nhhagen has quit [Remote host closed the connection]
lessless has quit [Ping timeout: 244 seconds]
_blizzy_ has joined #ruby
Rickmasta has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 265 seconds]
mutuma has quit [Ping timeout: 265 seconds]
nohminn has quit [Remote host closed the connection]
mutuma has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
woodruffw has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
troulouliou_dev has joined #ruby
lxsameer_ has joined #ruby
gix has joined #ruby
hedgecore has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 265 seconds]
commondream has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
yaw has joined #ruby
qwertme has joined #ruby
lxsameer_ has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
ttilley has quit [Quit: Linkinus - http://linkinus.com]
chipotle has quit [Quit: cheerio]
troulouliou_dev has quit [Quit: Leaving]
unshadow has joined #ruby
qwertme has quit [Client Quit]
commondream has quit [Ping timeout: 264 seconds]
mutuma has quit [Quit: leaving]
chinmay_dd has joined #ruby
MMoris has quit [Ping timeout: 246 seconds]
aapole has joined #ruby
krisquigley has joined #ruby
binxiao has left #ruby [#ruby]
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
lkba has joined #ruby
symbol has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FernandoBasso has quit [Quit: WeeChat 1.2]
symbol has quit [Client Quit]
symbol has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
CloCkWeRX has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
yaw has joined #ruby
sarkyniin has joined #ruby
lxsameer has quit [Quit: Leaving]
whoami_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A205B064 has joined #ruby
MasterPiece has joined #ruby
krisquigley has quit []
ItSANgo has quit [Read error: Connection reset by peer]
DLSteve_ has joined #ruby
ItSANgo__ has joined #ruby
niemcu has joined #ruby
krisquigley has joined #ruby
nhhagen has joined #ruby
qwertme has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
millerti has joined #ruby
nhhagen has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
Ox0dea has left #ruby ["WeeChat 1.3-dev"]
roolo_ has joined #ruby
millerti has quit [Client Quit]
roolo has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
nhhagen has joined #ruby
bentanweihao has quit [Remote host closed the connection]
bentanweihao has joined #ruby
DLSteve has quit [Ping timeout: 265 seconds]
nohminn has joined #ruby
nohminn has quit [Remote host closed the connection]
jenrzzz has joined #ruby
senayar has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
Pupeno has joined #ruby
failshell has joined #ruby
yqt has joined #ruby
nhhagen has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hubcaps has quit [Quit: Lost terminal]
Pupeno has quit [Remote host closed the connection]
whoami has joined #ruby
whoami is now known as Guest84400
Pupeno has joined #ruby
scripore has joined #ruby
failshell has quit [Ping timeout: 255 seconds]
rdark has joined #ruby
aapole has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ninja_python has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
<flughafen> shevy: flughafen is displeased
Guest84400 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
mandarinkin has joined #ruby
DLSteve_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jmhmccr has joined #ruby
* otherj shoes telekom in the pills
mdz_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
unshadow has quit [Ping timeout: 252 seconds]
krisquigley has joined #ruby
sinkensabe has joined #ruby
symbol has quit [Ping timeout: 252 seconds]
bentanweihao has quit []
centrx has quit [Ping timeout: 265 seconds]
ferr has joined #ruby
mdz_ has quit [Ping timeout: 245 seconds]
symbol has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
symbol has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
pen has quit []
bruno- has joined #ruby
nhhagen has quit [Remote host closed the connection]
jcaho has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Remote host closed the connection]
jcaho has joined #ruby
symm- has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
symm- has joined #ruby
<cina> I have a method that creates a large array does something with it, and then exits and returns 0. After calling that method ram usage goes up about 150MB! I'm doing this on a server, so the ram usage is going up indefinitely! I have to restart the server every hour... I'm running ruby-2.1.5
CustosLimen has quit [Max SendQ exceeded]
<cina> >> def test; a = (1..10_000_000).to_a; 0; end
<ruboto> cina # => :test (https://eval.in/380988)
Rollabunna has quit [Ping timeout: 264 seconds]
nohminn has joined #ruby
roshanavand has quit [Quit: Leaving]
nhhagen has quit [Remote host closed the connection]
CustosLimen has joined #ruby
adude has joined #ruby
adude has quit [Client Quit]
<cina> compare the ram usage before and after calling that method
adude has joined #ruby
adude has quit [Client Quit]
nhhagen has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
<apeiros> sounds like you're retaining a reference to the array somewhere
sinkensabe has quit [Remote host closed the connection]
<apeiros> else the memory will be reused by ruby (but not given back to the OS - the OS may swap it out, though)
A124 has quit [Remote host closed the connection]
nohminn has quit [Remote host closed the connection]
A124 has joined #ruby
mdw has joined #ruby
akkad has quit [Excess Flood]
<cina> thank you, interesting...
nhhagen has quit [Remote host closed the connection]
yaw has joined #ruby
<apeiros> cina: feel free to gist your code for inspection
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkad has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
davedev24_ has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<cina> it's a large multi-file worker, I first thought it might have something to do ruby 2.1, I'm not retaining a reference to the array, but it could also be an issue with the gem I am using (Sidekiq), I will check that as well
<cina> apeiros: I can't share the code sorry about that
<cina> the code belongs to the company I work for :(
xcesariox has joined #ruby
x0f has quit [Ping timeout: 272 seconds]
<cina> sorry about that
<apeiros> cina: no need to be sorry. you're the one missing free code inspection ;-)
rubie has joined #ruby
<apeiros> I'd clear that with my company if I were you. most companies don't care about source code which is not in the domain of their core competences.
AbinoamJr has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
xcesariox has quit [Client Quit]
dgutierrez1287 has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
wildroman3 has joined #ruby
banister has joined #ruby
x0f has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
wildroman2 has quit [Ping timeout: 240 seconds]
nohminn has joined #ruby
pandaant has quit [Remote host closed the connection]
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Narzew has joined #ruby
hotpancakes has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
nohminn has quit [Remote host closed the connection]
banister has joined #ruby
jpfuentes2 has joined #ruby
MasterPiece has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
terminal_fee has joined #ruby
<terminal_fee> Any purpose FREE storagewith PHP5 + MySQL, Script Testing, Personal, and more! at https://www.criosphinx.net/free/
<terminal_fee> Any purpose FREE storagewith PHP5 + MySQL, Script Testing, Personal, and more! at https://www.criosphinx.net/free/
lolmaus has quit [Read error: Connection reset by peer]
<terminal_fee> Any purpose FREE storagewith PHP5 + MySQL, Script Testing, Personal, and more! at https://www.criosphinx.net/free/
terminal_fee has quit [Client Quit]
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
ghostz_ has quit [Ping timeout: 276 seconds]
atomical has joined #ruby
francois_ has joined #ruby
ghostz has joined #ruby
ghostz has quit [Max SendQ exceeded]
fertapric has joined #ruby
weemsledeux has joined #ruby
ziprar has joined #ruby
ziprar has joined #ruby
francois_ has quit [Ping timeout: 264 seconds]
greenbagels_ has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
zipace has quit [Ping timeout: 255 seconds]
commondream has joined #ruby
greenbagels has quit [Ping timeout: 264 seconds]
endash has quit [Quit: endash]
dalafa has quit [Ping timeout: 255 seconds]
commondream has quit [Ping timeout: 264 seconds]
wildroman3 has quit [Remote host closed the connection]
woodennails has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
lolmaus has joined #ruby
aryaching has joined #ruby
A1F4 has joined #ruby
gheegh has quit [Ping timeout: 264 seconds]
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
<A1F4> Hey which one is best django or ruby on rails?
lordkryss has joined #ruby
<apeiros> A1F4: that's a pointless question
ruv has joined #ruby
<apeiros> also #rubyonrails
<dreinull75> A1F4 Photoshop, for sure
krisquigley has joined #ruby
niemcu has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
acke has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
krisquigley has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
djellemah has quit [Ping timeout: 264 seconds]
Yzguy has joined #ruby
nhhagen has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
hanmac has quit [Ping timeout: 256 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
someword has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fertapric has quit [Quit: Textual IRC Client: www.textualapp.com]
autrilla_ has joined #ruby
JDiPierro has joined #ruby
autrilla_ is now known as autrilla
autrilla has quit [Changing host]
autrilla has joined #ruby
autrilla has joined #ruby
mrmargolis has quit [Remote host closed the connection]
Narzew has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
phutchins has joined #ruby
endash has joined #ruby
fertapric has joined #ruby
davedev24_ has joined #ruby
Narzew has joined #ruby
benlovell has joined #ruby
Musashi007 has joined #ruby
nohminn has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
nohminn has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
justintv90 has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Ping timeout: 265 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<woodennails> Hey guys
<woodennails> Just gotten a new job and its likely that im going to be coding using either Ruby w/ sinatra/rails or Javascript using EmberJS so just wanted to say hey :)
arup_r has joined #ruby
allomov_ has joined #ruby
hotpancakes has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Guest6 has joined #ruby
fertapric has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> woodennails: Grats on the job and welcome.
Pupeno has quit [Read error: Connection reset by peer]
Guest6 is now known as Casty
A1F4 has quit [Quit: Bye]
Pupeno has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
Musashi007 has quit [Quit: Musashi007]
casadei has joined #ruby
justintv90 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
vickleton has joined #ruby
nohminn has joined #ruby
byprdct has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
byprdct has quit [Max SendQ exceeded]
arup_r has quit [Quit: Leaving.]
mdz_ has joined #ruby
kstuart has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
Pupeno has joined #ruby
frog0909_ has joined #ruby
byprdct has quit [Max SendQ exceeded]
ebbflowgo_ has joined #ruby
byprdct has joined #ruby
hal_9000 has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
ebbflowgo has quit [Ping timeout: 256 seconds]
hfp has quit [Ping timeout: 256 seconds]
ebbflowgo_ is now known as ebbflowgo
<jhass> woodennails: cool, Rails folk live in #RubyOnRails ;)
jhass has quit [Excess Flood]
byprdct has quit [Max SendQ exceeded]
jhass has joined #ruby
mdz_ has quit [Remote host closed the connection]
scripore has quit [Max SendQ exceeded]
Matadoer has quit [Ping timeout: 256 seconds]
unshadow has joined #ruby
byprdct has joined #ruby
kstuart_ has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
scripore has quit [Max SendQ exceeded]
byprdct has quit [Max SendQ exceeded]
hal_9000_ has quit [Ping timeout: 264 seconds]
frog0909 has quit [Ping timeout: 256 seconds]
byprdct has joined #ruby
houhoulis has joined #ruby
Matadoer has joined #ruby
pepperbreath1 has quit [Ping timeout: 252 seconds]
hfp has joined #ruby
byprdct has quit [Max SendQ exceeded]
ndrei_ has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
Yzguy has quit [Quit: I'm sleeping, go away.]
someword has quit [Quit: Leaving.]
byprdct has joined #ruby
sharpmachine has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
unshadow has quit [Ping timeout: 252 seconds]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
justintv90 has quit [Ping timeout: 264 seconds]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
<dreinull75> the sinatra folks live forever (and everywhere)
byprdct has joined #ruby
pepperbreath has joined #ruby
byprdct has quit [Max SendQ exceeded]
patrick_star has joined #ruby
j_mcnally has joined #ruby
byprdct has joined #ruby
woodruffw has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdz_ has joined #ruby
byprdct has quit [Max SendQ exceeded]
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
chussenot has joined #ruby
byprdct has joined #ruby
Alina-malina has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
kraljev11 has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
kraljev11 has joined #ruby
bb010g has joined #ruby
byprdct has quit [Max SendQ exceeded]
Cork has joined #ruby
omgs has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
<mandarinkin> ruby sucks , go ru;ez
unshadow has joined #ruby
<jhass> mandarinkin: I think you hit the wrong channel, head over to #go
byprdct has quit [Max SendQ exceeded]
allomov_ has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 265 seconds]
byprdct has joined #ruby
<mandarinkin> i like ruby but ruby really school level for devs
ndrei has joined #ruby
mdz_ has quit [Remote host closed the connection]
<jhass> did you read it?
<mandarinkin> y
<jhass> it doesn't sound like you did
psy_ has quit [Ping timeout: 272 seconds]
byprdct has quit [Max SendQ exceeded]
mdz_ has joined #ruby
justintv90 has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
byprdct has joined #ruby
<patrick_star> Go is bad thing.
byprdct has quit [Max SendQ exceeded]
<jhass> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
byprdct has joined #ruby
mcclurmc has joined #ruby
byprdct has quit [Max SendQ exceeded]
casadei has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
paulcsmith has joined #ruby
yoongkang has joined #ruby
byprdct has joined #ruby
paulcsmith has quit [Client Quit]
ndrei has quit [Ping timeout: 244 seconds]
byprdct has quit [Max SendQ exceeded]
wildroman2 has joined #ruby
symbol has joined #ruby
byprdct has joined #ruby
ndrei has joined #ruby
<mandarinkin> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
sharpmachine has quit [Remote host closed the connection]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
allcentury has joined #ruby
byprdct has quit [Max SendQ exceeded]
j4cknewt has quit [Remote host closed the connection]
byprdct has joined #ruby
patrick_star has quit [Quit: Leaving]
patrick_star has joined #ruby
unshadow has quit [Ping timeout: 252 seconds]
byprdct has quit [Max SendQ exceeded]
nohminn has quit [Remote host closed the connection]
patrick_star has quit [Client Quit]
byprdct has joined #ruby
acke has quit [Remote host closed the connection]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
micmus has quit [Ping timeout: 272 seconds]
patrick_star has joined #ruby
Blaguvest has joined #ruby
byprdct has joined #ruby
j4cknewt has joined #ruby
patrick_star has quit [Client Quit]
patrick_star has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
al2o3-cr has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
codecop has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
k3asd` has joined #ruby
byprdct has joined #ruby
LicHacker has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
skade has joined #ruby
yaw has joined #ruby
byprdct has quit [Max SendQ exceeded]
allcentury has quit [Ping timeout: 264 seconds]
Eddieh_ has joined #ruby
byprdct has joined #ruby
tonytr has quit [Quit: Leaving]
byprdct has quit [Max SendQ exceeded]
acke_ has joined #ruby
Eddieh_ has quit [Remote host closed the connection]
byprdct has joined #ruby
lxsameer has joined #ruby
byprdct has quit [Max SendQ exceeded]
rubie has joined #ruby
j4cknewt has quit [Remote host closed the connection]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
hotpancakes has joined #ruby
micmus has joined #ruby
nohminn has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
endash has quit [Quit: endash]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
lxsameer has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
NeverDie has joined #ruby
byprdct has quit [Max SendQ exceeded]
tubuliferous_ has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
adac has quit [Ping timeout: 265 seconds]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
<mandarinkin> ?h
<ruboto> I don't know anything about h
<mandarinkin> ?help
<ruboto> Public commands are !ops and ?<fact> (see https://gist.github.com/apeiros/5668fd04029f2d30799f ). Ops check the topic in #ruby-ops please.
byprdct has joined #ruby
<mandarinkin> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, Havenn, jhass, Radar, zzak, Coraline, sevenseacat, miah, workmad3, drbrain, zenspider, Aria, rubyhacker1, ljarvis, slyphon
<jhass> mandarinkin: what's the matter?
byprdct has quit [Max SendQ exceeded]
<mandarinkin> i am testing
byprdct has joined #ruby
<mandarinkin> dont worry
<jhass> well, please don't
<jhass> the bot is not for playing
byprdct has quit [Max SendQ exceeded]
<mandarinkin> restrict access only for ops
byprdct has joined #ruby
<jhass> there are quite a few commands that are
Yiota has joined #ruby
RegulationD has joined #ruby
byprdct has quit [Max SendQ exceeded]
symbol has quit [Ping timeout: 276 seconds]
Yiota has quit [Client Quit]
hotpancakes has quit [Remote host closed the connection]
tsvenson has quit [Quit: Leaving]
tsvenson has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
casadei has joined #ruby
Marsupermammal has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
chussenot has quit [Quit: chussenot]
yoongkang has quit [Remote host closed the connection]
revath has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
allomov has joined #ruby
wildroman2 has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
yoongkang has joined #ruby
commondream has joined #ruby
krisquigley has joined #ruby
arup_r has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
Gaelan has joined #ruby
acke_ has quit [Remote host closed the connection]
joaomdmoura has joined #ruby
mdw has joined #ruby
mdw has quit [Client Quit]
ScriptGeek has joined #ruby
futilegames has joined #ruby
nhhagen has joined #ruby
marr has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
nhhagen_ has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
nhhagen_ has quit [Remote host closed the connection]
mandarinkin has left #ruby ["Leaving"]
mandarinkin has joined #ruby
dgutierrez1287 has joined #ruby
allomov has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 276 seconds]
Flowrhent has joined #ruby
pepelui has joined #ruby
commondream has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 255 seconds]
_seanc_ has joined #ruby
revath has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
dgutierrez1287 has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
casadei has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 276 seconds]
failshell has quit [Ping timeout: 276 seconds]
niemcu has joined #ruby
aspiers has joined #ruby
whoami has joined #ruby
whoami is now known as Guest78268
howdoi is now known as Guest24987
Guest78268 is now known as howdoi
hotpancakes has joined #ruby
sharpmachine has joined #ruby
al2o3-cr has quit [Ping timeout: 252 seconds]
endash has joined #ruby
Exuma has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
al2o3-cr has joined #ruby
Exuma has quit [Client Quit]
Spami has joined #ruby
justintv90 has quit [Ping timeout: 264 seconds]
sharpmachine has quit [Remote host closed the connection]
qwertme has joined #ruby
revath has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skandi has joined #ruby
_seanc_ has quit [Quit: _seanc_]
drewo has joined #ruby
kraljev11 has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
sharpmachine has joined #ruby
sharpmachine has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 265 seconds]
yqt has joined #ruby
skade has joined #ruby
eggoez has joined #ruby
Marsupermammal has joined #ruby
otherj has quit [Quit: .]
j_mcnally has joined #ruby
tubuliferous_ has joined #ruby
dfockler has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby
towski_ has joined #ruby
tubuliferous_ has quit [Client Quit]
skade has quit [Quit: Computer has gone to sleep.]
Marsupermammal has quit [Ping timeout: 250 seconds]
mdz_ has quit [Remote host closed the connection]
Behi has quit [Ping timeout: 265 seconds]
wmoxam has joined #ruby
justintv90 has joined #ruby
j4cknewt has quit [Ping timeout: 265 seconds]
Narzew has quit [Remote host closed the connection]
yaw has quit [Ping timeout: 264 seconds]
mdz_ has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
rubie has quit [Remote host closed the connection]
benlovell has joined #ruby
revath has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
hotpancakes has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 252 seconds]
stoogenmeyer has joined #ruby
skade has joined #ruby
Azure has joined #ruby
revath has joined #ruby
pontiki has joined #ruby
woodennails has joined #ruby
Encapsulation has quit [Remote host closed the connection]
allcentury has joined #ruby
codecop has quit [Remote host closed the connection]
simplyianm has joined #ruby
hotpancakes has joined #ruby
acke has joined #ruby
ferr has quit [Remote host closed the connection]
Jeff__ has joined #ruby
<Jeff__> anyone know how i can implement 2 or more puppet manifest files from my Vagrantfile?
Limix has joined #ruby
simplyianm has quit [Remote host closed the connection]
kirun has joined #ruby
<jhass> sounds like a question for the respective channels
<Jeff__> :(
Scroff has joined #ruby
revath has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
phutchins has quit [Ping timeout: 240 seconds]
simplyianm has joined #ruby
jenrzzz has joined #ruby
towski_ has quit [Remote host closed the connection]
acke has quit [Ping timeout: 256 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
niemc2 has joined #ruby
Cache_Money has joined #ruby
Yiota has joined #ruby
banister has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
commondream has joined #ruby
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 240 seconds]
arup_r has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Ping timeout: 250 seconds]
benlovell has quit [Ping timeout: 272 seconds]
Agoldfish has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
futilegames has quit [Quit: futilegames]
TheHodge has quit [Quit: Connection closed for inactivity]
CalvinnHobbes has quit [Ping timeout: 255 seconds]
stevednd has joined #ruby
lkba_ has joined #ruby
sinkensabe has joined #ruby
commondream has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
zenguy_pc has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 252 seconds]
ferr has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
jcaho has joined #ruby
zenguy_pc has joined #ruby
towski_ has joined #ruby
scripore has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
francoi__ has joined #ruby
howdoi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
arup_r has joined #ruby
<certainty> flughafen: we're going to give saltstack a try. Thanks for pointing me to it
arup_r has quit [Client Quit]
Flowrhent has quit [Quit: Remote host closed the connection.]
allcentury has quit [Ping timeout: 244 seconds]
aapole has joined #ruby
blackmesa has joined #ruby
balazs has joined #ruby
scripore has quit [Client Quit]
scripore has joined #ruby
CalvinnHobbes has joined #ruby
slackbotgz has quit [Remote host closed the connection]
justintv90 has quit [Ping timeout: 255 seconds]
francoi__ has quit [Ping timeout: 252 seconds]
slackbotgz has joined #ruby
mdz_ has quit [Remote host closed the connection]
scripore has quit [Client Quit]
mdz_ has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
baweaver has joined #ruby
A124 has quit [Remote host closed the connection]
timonv has quit [Quit: WeeChat 1.2]
kraljev11 has joined #ruby
eggoez has joined #ruby
<sarkyniin> do the "do .. while" blocks still work in ruby?
scripore has quit [Client Quit]
blackmesa has quit [Quit: WeeChat 1.2]
scripore has joined #ruby
RazorX has quit [Ping timeout: 276 seconds]
RazorX_ has joined #ruby
A124 has joined #ruby
RegulationD has joined #ruby
aapole has quit [Ping timeout: 250 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<banister> sarkyniin of course
<banister> wait
<banister> no, they never did
<banister> you mean: begin; end while
<sarkyniin> oh it's that
mdz_ has quit [Ping timeout: 265 seconds]
<jhass> matz suggests loop do; ...; break if condition; end, just saying
j4cknewt has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
<apeiros> I concur with matz that `begin; …; end while cond` is bad. but his `loop do; … break if cond; end` is even worse
Cache_Money has quit [Quit: Cache_Money]
Scroff has quit [Remote host closed the connection]
Scroff has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
Encapsulation has joined #ruby
<pontiki> what's your alternative for a test-at-bottom loop, then?
atm0sphere has joined #ruby
yoongkang has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Jeff__ has left #ruby [#ruby]
bruno- has joined #ruby
justintv90 has joined #ruby
<pipework> apeiros: I don't mind it, but enumerables are nice.
allcentury has joined #ruby
<shevy> I love loop {}
<apeiros> pontiki: I still use begin; end while
<pontiki> ah ok, i misread then. i thought there was another way to do it
Scroff has quit [Ping timeout: 276 seconds]
Limix has quit [Quit: Limix]
rubie has joined #ruby
rubie has quit [Remote host closed the connection]
stoogenmeyer has quit [Ping timeout: 245 seconds]
blue_deref has joined #ruby
rubie has joined #ruby
krisquigley has joined #ruby
yoongkang has quit [Remote host closed the connection]
Ox0dea has joined #ruby
<Ox0dea> while x = (x ||= -> { -> { <cond> } })[]
CustosLimen has quit [Ping timeout: 256 seconds]
<Ox0dea> I puked.
<redlegion> Looks good to me
CustosLimen has joined #ruby
<redlegion> XD
<sarkyniin> is it allowed to call FooClass#initialize inside the class?
<Ox0dea> sarkyniin: Are you sure you want/need to?
<sarkyniin> not for me
<sarkyniin> checking code on exercism
zz_Outlastsheep is now known as Outlastsheep
<Ox0dea> It's pretty bad form, but I'm sure somebody's needed it at some point.
krisquigley has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Cache_Money has joined #ruby
<apeiros> pontiki: no. I just agree on the current syntax being bad :)
yqt has quit [Ping timeout: 252 seconds]
<Ox0dea> apeiros: I just showed another way to do it? :P
<apeiros> Ox0dea: weeeeeelll…
<Ox0dea> Hm?
<Ox0dea> Sure, it'd be nice if it were completely anonymous, but it does essentially implement do/while.
<apeiros> I concur with your "I puked" :-p
<Ox0dea> ^_^
aspiers has joined #ruby
Scroff has joined #ruby
Narzew has joined #ruby
joaomdmoura has joined #ruby
failshell has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
andikr has joined #ruby
rubie has quit [Remote host closed the connection]
balazs has quit [Remote host closed the connection]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aspiers has quit [Ping timeout: 276 seconds]
<pontiki> yeah, i guess i meant a way that isn't trying implement Haskell in Ruby
failshell has quit [Ping timeout: 272 seconds]
benlovell has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
drewo has quit [Ping timeout: 264 seconds]
spider-mario has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
metallicrwr_ has quit [Ping timeout: 276 seconds]
pikos has joined #ruby
Scroff has quit [Remote host closed the connection]
alol___ has quit [Quit: Connection closed for inactivity]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
jenrzzz has joined #ruby
nertzy has joined #ruby
cytoskeletor has joined #ruby
devdazed has joined #ruby
<shevy> no big deal
<shevy> the ->->->-> code will contradict the rest of the ruby code
mrmargolis has joined #ruby
Channel6 has joined #ruby
<shevy> Is there a way to change the default rdoc behaviour? For instance I hate the +word+ components
_seanc_ has joined #ruby
platzhirsch has joined #ruby
swgillespie has joined #ruby
_seanc_ has quit [Client Quit]
j4cknewt has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Scroff has joined #ruby
drewo has joined #ruby
Cache_Money has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
Scroff has quit [Remote host closed the connection]
ruurd has joined #ruby
lkba has joined #ruby
rubie has joined #ruby
j4cknewt has quit [Ping timeout: 265 seconds]
Scroff has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
lkba_ has quit [Ping timeout: 252 seconds]
xxneolithicxx has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xxneolithicxx has quit [Max SendQ exceeded]
justintv90 has quit [Remote host closed the connection]
mdz_ has joined #ruby
axsuul has joined #ruby
phizzbuzz has quit [Read error: Connection reset by peer]
Scroff has quit [Ping timeout: 245 seconds]
hotpancakes has quit [Remote host closed the connection]
CloCkWeRX has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 265 seconds]
ruby850 has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
ruurd has quit [Quit: Zzzzz z zz ...]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webguynow has joined #ruby
skandi has quit [Quit: Connection closed for inactivity]
ruby850 has quit [Ping timeout: 246 seconds]
ruv has quit [Ping timeout: 252 seconds]
Scroff has joined #ruby
BlueProtoman has joined #ruby
RegulationD has joined #ruby
ItSANgo__ has quit [Quit: Leaving...]
mleung has joined #ruby
mleung has quit [Client Quit]
Blaguvest has quit []
pepelui has quit [Ping timeout: 256 seconds]
dagda1__ has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
<BlueProtoman> How do I declare a function that can take arbitrarily many parameters?
drewo has quit [Quit: WeeChat 1.2]
dagda1 has quit [Ping timeout: 276 seconds]
_seanc_ has joined #ruby
_seanc_ has quit [Client Quit]
<Ox0dea> BlueProtoman: Ruby doesn't have functions.
<BlueProtoman> Ox0dea: Methods, then. (I'm very new to Ruby, and I just need to write a quick Jekyll filter)
<Ox0dea> >> def foo *args; args.map(&:succ) end; foo 1, 2, 3, 4
<ruboto> Ox0dea # => [2, 3, 4, 5] (https://eval.in/381053)
_seanc_ has joined #ruby
<Ox0dea> >> def foo first, *mid, last; mid end; foo 1, 2, 3, 4, 5
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/381054)
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 264 seconds]
rob_ has joined #ruby
<rob_> whats the best way to time something like an http request..?
<Ox0dea> rob_: Will the request always complete?
<rob_> just: start = Time.now; http_request; Time.now - start?
<Ox0dea> Looks good to me?
AlexRussia has joined #ruby
<Ox0dea> rob_: Do you perceive any shortcomings in that approach?
armyriad has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
benlovell has quit [Ping timeout: 245 seconds]
yoongkang has joined #ruby
<BlueProtoman> Ox0dea: Do you know anything about Jekyll or Liquid, per chance?
LicHacker_ has joined #ruby
pikos has quit [Quit: ...]
mdz_ has quit [Remote host closed the connection]
scripore has joined #ruby
LicHacker_ has quit [Client Quit]
bruno- has quit [Ping timeout: 252 seconds]
LicHacker__ has joined #ruby
j4cknewt has joined #ruby
<jhass> rob_: well, the perfect time would be to use a monotonic clock via Process.clock_gettime
LicHacker__ has quit [Remote host closed the connection]
mdz_ has joined #ruby
<jhass> *perfect way
axsuul has quit [Ping timeout: 252 seconds]
Narzew has quit [Ping timeout: 276 seconds]
<jhass> not that it's likely that your benchmark crosses a leap second
<Ox0dea> jhass: Still, there's the potential for http_request to get a shell on BlueProtoman's box and monkey-patch Process before the request completes.
<BlueProtoman> Ox0dea: ???
ruurd has joined #ruby
<Ox0dea> Huh, what? Nothing.
kobain has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
Outlastsheep is now known as zz_Outlastsheep
<Ox0dea> I still get a kick out of this: https://gist.github.com/0x0dea/cf3b434458bd92c31583
m8 has quit [Quit: Sto andando via]
mary5030 has joined #ruby
Guest6 has joined #ruby
Musashi007 has joined #ruby
j4cknewt has quit [Remote host closed the connection]
stevednd has quit [Quit: Leaving]
seanstickle has joined #ruby
Eiam has joined #ruby
symm- has joined #ruby
Scroff has quit [Remote host closed the connection]
<jhass> ?nope
<ruboto> I don't know anything about nope
Scroff has joined #ruby
cytoskeletor has joined #ruby
Scroff has quit [Remote host closed the connection]
hakunin has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> It is indeed perfectly useless.
<Ox0dea> At least I hope.
<jhass> you know evil.rb?
mrmargolis has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
<Ox0dea> I skimmed through a while back.
Rollabunna has joined #ruby
<Ox0dea> I vaguely recall a lot of it stopped working on account of some API changes in DL/Fiddle.
<jhass> well and MRI itself, it was geared towards 1.8 iirc
toretore has joined #ruby
<shevy> :(
jenrzzz has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
<Ox0dea> >> require 'fiddle'; def thaw(o) Fiddle::Pointer.new(o.__id__ * 2)[1] ^= 8 end x = 'foo'.freeze; f = x.frozen?; thaw x; p [f, x.frozen?]
<ruboto> Ox0dea # => /tmp/execpad-6dbee33d4591/source-6dbee33d4591:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/381063)
commondream has joined #ruby
<Ox0dea> >> require 'fiddle'; def thaw(o) Fiddle::Pointer.new(o.__id__ * 2)[1] ^= 8 end; x = 'foo'.freeze; f = x.frozen?; thaw x; p [f, x.frozen?]
<ruboto> Ox0dea # => [true, false] ...check link for more (https://eval.in/381064)
ruurd has quit [Quit: Zzzzz z zz ...]
<Ox0dea> Haven't figured out how to thaw Symbols yet.
devdazed has quit [Quit: Computer has gone to sleep.]
yqt has joined #ruby
dagda1__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commondream has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
<shevy> I guess once frozen
<shevy> things will remain in the eternal ice
<shevy> why is there .object_id and .__id__ ?
<seanstickle> That sounds like a Lovecraftian turn of phrase
<Ox0dea> shevy: Why is there #send and #__send__?
dgutierrez1287 has joined #ruby
LJT has joined #ruby
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
Scroff has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<jhass> why's there #size and #length?
Scroff has quit [Remote host closed the connection]
<Ox0dea> Because programmer happiness.
<BlueProtoman> Is there a way I can define implicit conversions on built-in types? (I.e. I want to convert strings to ints in the usual way, except if the conversion is not valid I want to just return nil)
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
joaomdmoura has joined #ruby
Xeth has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
<jhass> example?
<Ox0dea> >> Integer('1')
<ruboto> Ox0dea # => 1 (https://eval.in/381074)
<Ox0dea> >> Integer('foo')
<ruboto> Ox0dea # => invalid value for Integer(): "foo" (ArgumentError) ...check link for more (https://eval.in/381075)
<Ox0dea> >> %w[1 foo 3].map { |i| Integer(i) rescue nil }
<ruboto> Ox0dea # => [1, nil, 3] (https://eval.in/381076)
<jhass> meh
<Ox0dea> It's not great.
zz_Outlastsheep is now known as Outlastsheep
<jhass> BlueProtoman: what do you mean? got some examples?
<Ox0dea> `cat *.c | grep -c define_alias` is only 18 in trunk. Doesn't that seem low?
<BlueProtoman> jhass: Let me explain my use case, that might clear it up. You know Jekyll?
Xeth has left #ruby [#ruby]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> not really, only invested into middleman so far
<seanstickle> I know Jekyll
<seanstickle> Though, jhass, middleman is more interesting
<BlueProtoman> jhass: Actually, that doesn't even matter. I just want to use format, except instead of throwing TypeErrors on invalid types (e.g. "f" to a %d) or ArgumentErrors for too few arguments, I just want to return some default values
<jhass> well, invested, played around and made my very basic site with it
<jhass> BlueProtoman: write a simple wrapper that does that?
ReK2 has joined #ruby
<BlueProtoman> jhass: That does what, exactly? (Bear in mind, I know literally no Ruby.)
<jhass> .scan out the % and map them to argument || default
swgillespie has joined #ruby
nohminn has quit [Remote host closed the connection]
maletor has joined #ruby
nohminn has joined #ruby
nohminn has quit [Client Quit]
krisquigley has joined #ruby
joaomdmoura has joined #ruby
<BlueProtoman> jhass: Sorry, I don't follow
<jhass> def my_format(format, *args); replacements = format.scan(/%\S*(\w)/).map.with_index {|placeholder, i| args[i].is_a?(TYPES[placeholder]) ? args[i] : DEFAULTS[placeholder] }; format % replacements; end;
<jhass> something like that, idk
joaomdmoura has quit [Client Quit]
<BlueProtoman> jhass: And what does that do, exactly?
<jhass> well, you gotta invest at least somewhat into your Ruby skills if you want to do that
<jhass> else I'd recommend you to change your stuff not to require it
<jhass> which would be better anyhow
<BlueProtoman> jhass: All I need is literally a single Liquid tag, if you're familiar with that. I'm primarily doing a site in Jekyll
<seanstickle> For $20, I’ll sell you that tag
krisquigley has quit [Ping timeout: 276 seconds]
<jhass> ^ good offer
<BlueProtoman> seanstickle: I already wrote it! Now I'm just trying to polish it
<Ox0dea> BlueProtoman: I'd take that deal, mate.
benlovell has joined #ruby
<BlueProtoman> Thank you, but no.
<seanstickle> Fair ‘nuff
* seanstickle puts Big Book o’ Tags back on the shelf
<Ox0dea> seanstickle: To be fair, you didn't actually name your price.
AlphaAtom has joined #ruby
I has joined #ruby
<Ox0dea> English is weird.
I has quit [Client Quit]
<BlueProtoman> Actually, he did
<Ox0dea> No, he said, essentially, that if you gave him twenty bucks, he'd sell the tag to you, but not how much you'd have to pay for the tag.
<BlueProtoman> I suppose taken literally, yes, but...arrrrgh
<seanstickle> Fortunately, my customers typically speak idiomatic English
<seanstickle> Not English as interpreted by a Lojban speaker
<seanstickle> ;)
<Ox0dea> "For x, I'll y" isn't all that idiomatic, really.
baweaver has quit [Remote host closed the connection]
<Ox0dea> "I'll x for y" is substantially more common.
<seanstickle> A Google search turns up a lot of matches for my format as well
<seanstickle> From a corpus search basis, I’d say mine works fine
<Ox0dea> I didn't say it didn't.
aapole has joined #ruby
<seanstickle> Common use is pretty much the working definition of idiom
<Ox0dea> But commoner is more idiomaticer.
<seanstickle> Ha :D
meph has joined #ruby
<Ox0dea> ^_^
bruno- has joined #ruby
failshell has joined #ruby
AlphaAtom has quit [Ping timeout: 252 seconds]
I has joined #ruby
I is now known as Guest18432
Guest18432 has quit [Client Quit]
joaomdmoura has joined #ruby
devdazed has joined #ruby
dopie has joined #ruby
aspiers has joined #ruby
simplyianm has quit [Remote host closed the connection]
vdamewood has joined #ruby
simplyianm has joined #ruby
phutchins has joined #ruby
simplyia_ has joined #ruby
failshell has quit [Ping timeout: 265 seconds]
simplyianm has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 252 seconds]
dagda1 has joined #ruby
Scroff has joined #ruby
acke has joined #ruby
gkra has quit [Remote host closed the connection]
simplyianm has joined #ruby
Guest6 is now known as Casty
BlueProtoman has quit [Quit: Leaving]
casadei has joined #ruby
chussenot has joined #ruby
simplyia_ has quit [Ping timeout: 255 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<nickjj> i have a fun OT saturday question for you guys
<nickjj> my friend has a mac (yosemite 10.10.4) and he swears that title html attributes do not show up for him on any browser
<seanstickle> nickjj: I have answers about operator calculus
<nickjj> i do not have a mac to test it myself, am i getting trolled?
simplyianm has quit [Ping timeout: 272 seconds]
akkad has quit [Remote host closed the connection]
<nickjj> a popular site that uses title= is xkcd.com (hover over any comic image) , can someone with that mac ver test it?
<jhass> I think there's an os x channel
j4cknewt has joined #ruby
gkra has joined #ruby
<jhass> #MacOSX
<seanstickle> nickjj: I assure you, the title attr works on Macs finfe
<nickjj> k, i'll try there. thanks
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nickjj> seanstickle, he tried multiple browsers which is what boggles my mind
<seanstickle> I used to do tech support professionall
<seanstickle> What people say they do is not necessarily what they actually did
<seanstickle> Nor are their interpretations regularly accurate
<seanstickle> Many is the time I walk into a room and the problem magically disappeared
startupality has joined #ruby
<seanstickle> Because they become conscious of what they’re doing, and stop doing it wrong by accident
<nickjj> hah yeah
gkra_ has joined #ruby
EllisTAA has joined #ruby
gkra has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Ping timeout: 256 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
dopie has quit [Quit: This computer has gone to sleep]
aspiers has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
akkad has joined #ruby
gkra_ has quit [Ping timeout: 256 seconds]
seanstickle has quit [Quit: seanstickle]
arooni-mobile has joined #ruby
dagda1 has quit [Read error: No route to host]
dagda1 has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
<Ox0dea> What'd be a good channel for discussing Unicode's copyright agreement?
gkra has joined #ruby
gkra has quit [Remote host closed the connection]
<jhass> there's 11 people in #unicode
<Ox0dea> That doesn't bode well.
<jhass> 4 in #cldr
<jhass> and that seems to be about it
mdz_ has quit [Remote host closed the connection]
<Ox0dea> #ruby it is!
simplyianm has joined #ruby
mdz_ has joined #ruby
kraljev11 has quit [Ping timeout: 252 seconds]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
<bhaak> what problems do you have with the unicode's terms of use?
nertzy has quit [Quit: This computer has gone to sleep]
DLSteve has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
<Ox0dea> I wonder whether or not they apply in the case of grabbing and parsing their name list.
DLSteve has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Quit: WeeChat 1.2]
DLSteve has joined #ruby
<Ox0dea> The document never exists in full on disk, and even after parsing it's been transformed and exists only in RAM.
startupality has quit [Quit: startupality]
allomov has joined #ruby
<Ox0dea> "(a) this copyright and permission notice appear with all copies of the Data Files or Software"
<Ox0dea> In my case, what copy?
matugm has quit [Ping timeout: 276 seconds]
balazs has joined #ruby
allcentury has joined #ruby
sarkyniin has quit [Remote host closed the connection]
futilegames has joined #ruby
<jhass> do you think anybody will enforce anything about that anywhere?
<bhaak> if you put the names list in your code repository, you should somewhere point out that its under the unicode license agreement
balazs has quit [Remote host closed the connection]
futilegames has quit [Client Quit]
rkazak has joined #ruby
startupality has joined #ruby
<bhaak> if it's just a webservice, it should suffice to say somewhere "this software is (among other stuff) using unicode data files blabla link to http://www.unicode.org/copyright.html"
chinmay_dd has quit [Remote host closed the connection]
startupality has quit [Client Quit]
mary5030 has joined #ruby
eggoez has quit [Ping timeout: 265 seconds]
rubie has quit [Remote host closed the connection]
EllisTAA has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
dopie has joined #ruby
jphenow has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
LicHacker has quit [Ping timeout: 276 seconds]
eggoez has joined #ruby
vdamewood has quit [Ping timeout: 250 seconds]
<Ox0dea> bhaak: The list will not exist in the repository proper, but the data will essentially be present on a user's machine, just not in a form the license appears to cover.
ItSANgo has joined #ruby
Narzew has joined #ruby
Rollabunna has joined #ruby
j4cknewt has joined #ruby
yfeldblum has joined #ruby
<diegoviola> https://www.youtube.com/watch?v=IVpOyKCNZYw <-- Linus to nvidia
mleung has joined #ruby
k3asd` has joined #ruby
<jhass> diegoviola: 17.06.2012 ... also #ruby-offtopic ;)
<Ox0dea> Is it possible to determine that we're being required?
<diegoviola> jhass: ok
<Ox0dea> $LOADED_FEATURES doesn't pick us up until the whole file has been evaluated.
jphenow has quit [Quit: Be back later ...]
<jhass> well, being required opposed to... ?
<Ox0dea> Huh?
bruno- has joined #ruby
<jhass> what do you want to differentiate against? ruby foo.rb ?
<Ox0dea> This is gonna sound nuts, but...
<Ox0dea> Ideally, I'd like to remove foo.rb from $LOADED_FEATURES from within foo.rb...
Channel6 has quit [Quit: Leaving]
<Ox0dea> That doesn't seem to be possible, so what are the alternatives?
<jhass> do I want to know?
<Ox0dea> I'd imagine not.
Scroff has quit [Remote host closed the connection]
scripore has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
FernandoBasso has joined #ruby
allomov has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
<Ox0dea> vm->loading_table used to be a global. :/
hotpancakes has joined #ruby
jenrzzz has joined #ruby
yardenbar has quit [Quit: Leaving]
NeverDie has joined #ruby
<jhass> are you writing "Ruby under a electron-scan microscope" or something?
atm0sphere has quit [Ping timeout: 246 seconds]
dopie has quit [Quit: This computer has gone to sleep]
balazs has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kraljev11 has joined #ruby
francois_ has joined #ruby
chussenot has quit [Quit: chussenot]
blue_deref has quit [Quit: bbn]
bronson has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
Lucky__ has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
balazs has joined #ruby
francois_ has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
niemc2 has quit [Ping timeout: 264 seconds]
phat4life has quit [Quit: ZNC - 1.6.0 - http://znc.in]
timonv has joined #ruby
dagda1 has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
mleung has quit [Quit: mleung]
dopie has joined #ruby
futilegames has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
vdamewood has joined #ruby
xxneolithicxx has joined #ruby
f3lp has joined #ruby
balazs has quit [Remote host closed the connection]
awwaiid has quit [Quit: leaving]
woodruffw has joined #ruby
Cache_Money has joined #ruby
ebbflowgo has joined #ruby
Levvy has joined #ruby
acke has quit [Remote host closed the connection]
futilegames has quit [Client Quit]
ebbflowgo has left #ruby [#ruby]
atomical has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
<Levvy> Hello. Is anyone active?
swgillespie has quit [Max SendQ exceeded]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has joined #ruby
swgillespie has joined #ruby
commondream has joined #ruby
Gaelan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Levvy> I wann execute this line of Ruby in Java but also got this error: org.jruby.embed.ParseFailedException: (SyntaxError) <script>:1: syntax error, unexpected tUMINUS rvpacker -V -f -d P:\temp-workspace\RPGTestProject1 -t ace -a unpack
<jhass> Levvy: "this line"?
<Levvy> sry ;) it's: rvpacker -V -f -d P:\temp-workspace\RPGTestProject1 -t ace -a unpack
<jhass> that doesn't look like ruby at all
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> what makes you think it's valid ruby?
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass> so what?
<jhass> do you embed C when you want to run, say, the ls command?
failshell has quit [Ping timeout: 246 seconds]
pontiki has joined #ruby
<Levvy> when I run this command in cmd it works fine
DLSteve has quit [Quit: Leaving]
<jhass> yes
<jhass> because your cmd is not a ruby interpreter
cytoskeletor has joined #ruby
commondream has quit [Ping timeout: 265 seconds]
krisquigley has joined #ruby
_ht has quit [Quit: Konversation terminated!]
<Levvy> so I cannot exec this code from ruby?
Rollabunna has quit [Remote host closed the connection]
<jhass> sure you can, but why not just invoke the command from java directly?
<jhass> if you're going to shellout anyhow?
A205B064 has quit [Ping timeout: 240 seconds]
<Levvy> cause I got Cannot run program "rvpacker": CreateProcess error=2, The system cannot find the file specified
<jhass> well, then fix the path
allomov has quit [Remote host closed the connection]
jcaho has quit [Read error: Connection reset by peer]
kraljev11 has quit [Quit: kraljev11]
jcaho has joined #ruby
kraljev11 has joined #ruby
kraljev11 has quit [Client Quit]
kraljev11 has joined #ruby
<Levvy> in cmd it works well so path is ok
<jhass> not it java apparently
<jhass> but this ain't #java nor #windows, so there's that
<jhass> all I can assure you that going through jruby is a quite insane idea
<Levvy> ok so I will go there and thanks for help
krisquigley has quit [Ping timeout: 276 seconds]
platzhirsch has left #ruby [#ruby]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
j4cknewt has quit [Remote host closed the connection]
malconis has joined #ruby
someword has joined #ruby
rubie has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
sarkyniin has joined #ruby
mdz_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
rgb-one has joined #ruby
schy has joined #ruby
platzhirsch has joined #ruby
hedgecore has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
millerti has joined #ruby
dgutierrez1287 has joined #ruby
MatthewsFace has joined #ruby
DEA7TH has quit [Ping timeout: 276 seconds]
eggoez has quit [Ping timeout: 265 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
mleung has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
gianlucadv has quit [Ping timeout: 264 seconds]
dagda1 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
dgutierrez1287 has joined #ruby
havenwood has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruv has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.2]
Musashi007 has quit [Quit: Musashi007]
dopie has joined #ruby
Musashi007 has joined #ruby
kraljev11 has quit [Quit: kraljev11]
kraljev11 has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
x1337807x has joined #ruby
Levvy has quit [Quit: Page closed]
platzhirsch has left #ruby [#ruby]
MatthewsFace has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
hololeap has joined #ruby
<hololeap> i've got another question about coding best practices. what do you guys think about "if some_var" vs "unless some_var.nil?". i've seen the latter and wondered why bother, but it does seem more readable in a way
<pontiki> readability is what it's all about
dgutierrez1287 has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
<pontiki> there are some general feeling that if you have an 'else' clause, you should use the 'if' form (no elses with unlesses)
JamesDH has joined #ruby
Rickmasta has joined #ruby
<pontiki> more specifically to your exact question, unless some_var.nil? is running two comparisons
mleung has joined #ruby
<hololeap> would there ever be a time when you would need to differentiate between nil and false on a returned value?
<pontiki> and for me, if some_var is way more readable in that situation
Scroff has joined #ruby
<pontiki> i've seen people do that, that somehow a tri-state boolean is being used
<pontiki> there probably is a use case for tri-state logic
<hololeap> good grief. i feel like people return nil too much as it is
<pontiki> i don't disagree
<pontiki> there are times when using a null object would be a much better choice
finisherr has joined #ruby
RegulationD has joined #ruby
kraljev11 has quit [Quit: kraljev11]
kraljev11 has joined #ruby
<hololeap> is there a reason why so many methods in ruby avoid raising an exception and return nil instead?
wildroman2 has joined #ruby
balazs has joined #ruby
<pontiki> idk
workmad3 has joined #ruby
<pontiki> there is an oft-spoken phrase "don't use exceptions for flow control". i can't disagree with that either
MatthewsFace has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Quit: Musashi007]
mleung has quit [Quit: mleung]
acke has joined #ruby
<pontiki> using exceptions that way is essentially doing a GOTO
<bhaak> i hate unless with a passion. it's so often runs into double negatives.
<hololeap> hmm... ruby is so flexible sometimes i have a hard time wrapping my head around which way is "better"
<pontiki> "better" isn't an absolute
Ox0dea has joined #ruby
<Ox0dea> hololeap: "A puppet is free so long as he loves his strings."
Pupeno has quit [Remote host closed the connection]
<pontiki> and it's a matter also of practicing and getting feedback
<bhaak> and you can't ever be sure the programmer was sane enough to choose if or unless according to how likely it returns true
<Ox0dea> bhaak: Is that "sanity" or premature optimization?
RegulationD has quit [Ping timeout: 264 seconds]
balazs has quit [Ping timeout: 265 seconds]
<pontiki> over the years, i've seen 2 schools of thought. one is get all the error conditions out of the way up at the top. the other is do the main thing the method is responsible for at the top
acke has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
<pontiki> i don't know that i have a specific preference in that regard. i want to be able to write a method so it's apparent what's going on
<Ox0dea> I prefer the former, but I probably couldn't articulate exactly why.
<bhaak> Ox0dea: it can't be premature optimization as the condition to the if/unless has to be evaluated anyway :)
<hololeap> are there any good gems for basic type checking (like if there is only one parameter and it should only accept one type of object)
<Ox0dea> pontiki: I like that it frees mental space for focusing on the happy path rather than dreading how things might be about to go wrong.
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponyo has quit [Read error: Connection reset by peer]
<pontiki> hololeap: i hope not
<Ox0dea> hololeap: Contracts is very nice.
qwertme has joined #ruby
mleung has joined #ruby
commondream has joined #ruby
<hololeap> i just end up writitng "raise ArgumentError, 'Argument must be a X' unless arg.is_a? X" too much
<Ox0dea> You might also try my attempt: https://gist.github.com/0x0dea/ff92b5bc4887d1d04f3a
cytoskeletor has joined #ruby
matled has quit [Remote host closed the connection]
<Ox0dea> You really should step back and reconsider if you find yourself defining a method like "def bar a, b = String, c = [Numeric], d = :to_h | Hash | :keys, e", but it's nice to know you could.
kraljev11 has quit [Read error: Connection reset by peer]
kraljev11 has joined #ruby
<Ox0dea> All that said, you really ought to embrace duck typing.
weszlem has joined #ruby
<hololeap> yeah, i probably tend to do more type checking than is necessary
<hololeap> isn't there going to be some kind of loose type checking for methods in the next ruby version?
weszlem has quit [Client Quit]
weszlem has joined #ruby
<Ox0dea> It's all going to be JavaScript by then.
weszlem has quit [Client Quit]
<hololeap> what do you mean?
<bhaak> if that were true, I guess 80% of all programmers shoot themselves
<Ox0dea> hololeap: Native is dying.
commondream has quit [Ping timeout: 252 seconds]
<Ox0dea> Glacially, to be sure, but it's happening.
<pontiki> Ox0dea: you mean native as in mobile apps?
<hololeap> i'm still confused. what is "native"?
<Ox0dea> pontiki: I'm using "native" to mean "non-Web" here.
<pontiki> oh, sure
decoponio has joined #ruby
<Ox0dea> JavaScript is permanently rooted as the language for the browser, and it's just going to keep getting faster.
<pontiki> indeed
<pontiki> they're into deep voodoo mad science now
<bhaak> until it hurts so much that it will be changed
<hololeap> i doubt i will ever ditch having a desktop or a hard drive
<pontiki> it's only going to get better, or worse, depending on your pov on such things
ta has quit [Quit: Leaving...]
<Ox0dea> hololeap: You would have asked for faster horses.
havenn has joined #ruby
<pontiki> the browser is becoming the desktop, is becoming the OS
autrilla has quit [Quit: Connection closed for inactivity]
<Ox0dea> That's about the size of it, yep.
<shevy> javascript will kill everything
matled has joined #ruby
finisherr has quit [Quit: finisherr]
<pontiki> wouldn't you say it's on the same trajectory as the guy who said "the network is the operating system"
havenwood has quit [Ping timeout: 265 seconds]
<pontiki> sorry, brain farting on him
<Ox0dea> Engelbart, maybe?
<pontiki> and his company that got bought out by oracle
<pontiki> well, he probably said it too
<pontiki> sun
ta has joined #ruby
<pontiki> mcnealy
allcentury has quit [Ping timeout: 250 seconds]
weszlem has joined #ruby
Scroff has quit [Remote host closed the connection]
<hololeap> so are web servers going to be run on javascript too?
havenn has quit [Ping timeout: 245 seconds]
vifino has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
wt has joined #ruby
<pontiki> probably not entirely, but it will be more and more
wt is now known as Guest6422
j4cknewt has joined #ruby
<pontiki> even so, a lot of that is dependent on developers
<pontiki> java is still like 40% of web software
Guest6422 has quit [Remote host closed the connection]
<adaedra> <Ox0dea:#ruby> I blame adaedra: https://github.com/adaedra/unicode-snowman
<adaedra> what's to blame?
<Ox0dea> adaedra: I'm nearly done with my gem that lets you write "#{SNOWMAN} #{BLACK SNOWMAN} #{SNOWMAN WITHOUT SNOW}".
<jhass> just because nobody pointed it out, one thing to keep in mind is that if foo and unless foo.nil? are only equivalent if false is not valid value
maletor has joined #ruby
<pontiki> OMG I NEED THAT!!!
idafyaid has left #ruby [#ruby]
bronson has joined #ruby
wt_ has joined #ruby
Scroff has joined #ruby
mdz_ has joined #ruby
wt_ has quit [Read error: Connection reset by peer]
<Ox0dea> adaedra: It's the good kind of blame.
bb010g has joined #ruby
<adaedra> oh ok
<Ox0dea> I managed to work around IO and TRUE, but these damned hyphens are mucking things up.
<pontiki> the kind that means "i'm giving credit for my work to.."
bruno- has joined #ruby
<pontiki> definitely starring that
skade has joined #ruby
aapole has quit [Ping timeout: 252 seconds]
j4cknewt has quit [Ping timeout: 256 seconds]
<Ox0dea> Most of the time the hyphens create syntax errors, but there's a hack to handle them if they occur in the last word.
<Ox0dea> For the sake of consistency, I decided to replace all the hyphens with underscores.
someword has quit [Quit: Leaving.]
<Ox0dea> But now the hyphen-prefixed final words become locals instead of negated constants. :(
<pontiki> that's the usual inflection, isn't it?
<Ox0dea> pontiki: Well, Python, Perl, and even LOLCODE all support named unicode literals as the spec defines them. :/
<Ox0dea> On the plus (?) side, ours don't actually have to be interpolated.
<Ox0dea> `bad = PILE OF POO` will work just fine.
bronson has quit [Ping timeout: 276 seconds]
<Ox0dea> Has anybody ever needed unary minus on Symbol?
Maxed has joined #ruby
mdz_ has quit [Ping timeout: 255 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 265 seconds]
<pontiki> not deliberately that i recall
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
<adaedra> Wait
Maxed has quit [Client Quit]
<adaedra> Why do I have 93 gem downloads for a gem just providing UNICODE_SNOWMAN
<Ox0dea> Why wouldn't you?
bruno- has joined #ruby
x1337807x has joined #ruby
<jhass> bots
<shevy> :)
<adaedra> It's late, let's stop trying to understand the internet
<shevy> 95% of the downloads are scripted!
Scroff has quit [Remote host closed the connection]
<shevy> I have had two people write emails to me about my gems; one complained that my gems lack documentation (he was right), the other reported a bug
balazs has joined #ruby
<shevy> so there are real people out there too
<Ox0dea> > real people
Azure has quit [Quit: Oops.]
<adaedra> I'll have to add this gem to my résumé then
<Ox0dea> Erm... should I release this as version 8.0.0 in accordance with the current Unicode standard?
allcentury has joined #ruby
<Ox0dea> Rather, the upcoming standard, but that's the one whose characters I've included.
kraljev11_ has joined #ruby
kraljev11 has quit [Read error: Connection reset by peer]
<shevy> adaedra perhaps someone wants to make a gem out of it...
<hololeap> bots can complain too
<shevy> "The Revenge of the Snowman" [splatter]
Azure has joined #ruby
<shevy> I meant
<bhaak> don't bind the version of your code to an external body
<shevy> *game
<bhaak> if you need to update it while the unicode standard hasn't been update, you would desync anyway
<Ox0dea> bhaak: Fair point.
f3lp has quit [Ping timeout: 265 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
jenrzzz has joined #ruby
triangles has quit [Quit: Leaving]
malconis has joined #ruby
<shevy> adaedra you can try to trick the bots and reach a million downloads
bosma has joined #ruby
ogpastaling has joined #ruby
<adaedra> What would I do with a million downloads
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
<shevy> get rich
mrmargolis has joined #ruby
<jhass> reminds me, I should update the gems wordlist for the hangman bot
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
diegoviola has joined #ruby
mleung has joined #ruby
<adaedra> shevy: give me a million euros then
<jhass> I just counted, I get ~65k then
<shevy> adaedra I didn't download anything!
<adaedra> jhass: you don't use /etc/words?
<jhass> no
jenrzzz has quit [Ping timeout: 276 seconds]
<adaedra> shevy: you don't have to
<Ox0dea> My `wc -l /usr/share/dict/words` is 662952...
nertzy has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
<adaedra> mmh, I don't find a dictionnary on this machine
<jhass> 98105 gem_names
<jhass> 5947 ruby
<jhass> 1524 wordlist
<shevy> huh
<shevy> we have only 100.000 different gems?
starfox_sf has joined #ruby
<Ox0dea> Seems reasonable enough?
andikr has quit [Remote host closed the connection]
<shevy> if there are 1 million ruby users worldwide
<shevy> only every 10 will have one gem
<adaedra> 102,914 according to rubygems.org
failshell has joined #ruby
<jhass> yeah I should update it, now remember how I got it...
mrmargolis has quit [Remote host closed the connection]
blue_deref has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
hardlin3r has joined #ruby
wildroman2 has joined #ruby
<Ox0dea> `gem search | wc -l` is 101628 for me.
failshell has quit [Ping timeout: 256 seconds]
<jhass> latest_specs.4.8.gz has 102666
chouhoulis has joined #ruby
mrmargolis has joined #ruby
ebbflowgo has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Scroff has joined #ruby
krisquigley has joined #ruby
sabayonuser2 has joined #ruby
ramfjord has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
EllisTAA has joined #ruby
sabayonuser2 has quit [Client Quit]
rubie has joined #ruby
Scroff has quit [Remote host closed the connection]
qwertme has joined #ruby
weszlem has quit [Quit: weszlem]
<Ox0dea> My kingdom for anybody who can work out the significance of the name.
krisquigley has quit [Ping timeout: 276 seconds]
sandstrom has joined #ruby
dseitz has joined #ruby
mrmargolis has quit [Remote host closed the connection]
weszlem has joined #ruby
whoami has joined #ruby
whoami is now known as Guest10032
<meph> Ox0dea: lovely repo
<Ox0dea> meph: Feel better?
pengin has joined #ruby
starfox_sf has quit [Quit: Lost terminal]
balazs has quit [Remote host closed the connection]
centrx has joined #ruby
Musashi007 has joined #ruby
Rollabunna has joined #ruby
endash has quit [Quit: endash]
<meph> love that literal way
marr has quit []
x1337807x has joined #ruby
ReK2 has quit [Ping timeout: 265 seconds]
kraljev11_ has quit [Quit: kraljev11_]
kraljev11 has joined #ruby
kraljev11 is now known as kraljev11_
Scroff has joined #ruby
platzhirsch has joined #ruby
Takasm has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
towski_ has joined #ruby
roolo_ has quit [Remote host closed the connection]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takasm has quit [Client Quit]
pengin has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 244 seconds]
jonr22 has joined #ruby
ferr has quit [Quit: WeeChat 1.2]
CustosLimen has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Remote host closed the connection]
bzb has joined #ruby
bzb has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
CustosLimen has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dented42 has joined #ruby
dfockler has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
platzhirsch has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
jphenow has joined #ruby
Scroff has quit [Remote host closed the connection]
symbol has joined #ruby
Nahra` has joined #ruby
bhaak_ has joined #ruby
jpfuentes2 has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
rgb-one has quit [Ping timeout: 264 seconds]
Nahra has quit [Ping timeout: 264 seconds]
bhaak has quit [Ping timeout: 264 seconds]
bihi has quit [Ping timeout: 264 seconds]
stylus has quit [Ping timeout: 264 seconds]
A124 has quit [Ping timeout: 264 seconds]
aep has quit [Ping timeout: 264 seconds]
gagrio has quit [Ping timeout: 264 seconds]
Liothen has quit [Ping timeout: 264 seconds]
bjornar has quit [Ping timeout: 264 seconds]
Affix has quit [Ping timeout: 264 seconds]
quarcu has quit [Ping timeout: 264 seconds]
M-Technic has quit [Ping timeout: 264 seconds]
patrick_star has quit [Ping timeout: 255 seconds]
quarcu_ has joined #ruby
dfockler has quit [Ping timeout: 265 seconds]
dudedudeman has quit [Ping timeout: 264 seconds]
rgb-one has joined #ruby
kraljev11_ has quit [Ping timeout: 246 seconds]
Liothen has joined #ruby
A124 has joined #ruby
bjornar has joined #ruby
bihi has joined #ruby
stylus has joined #ruby
aep has joined #ruby
Affix has joined #ruby
M-Technic has joined #ruby
gagrio has joined #ruby
michael_mbp has quit [Excess Flood]
Affix is now known as Guest80919
dudedudeman has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
sarkyniin has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
starfox_sf has joined #ruby
bhaak_ is now known as bhaak
<starfox_sf> I am trying to connecto to a SMTP server using the net/smtp library but I am getting a Net::OpenTimeout every time... here is what I'm doing -> https://gist.github.com/5c3d062eb4fb28ca22e8
ebbflowgo has joined #ruby
michael_mbp has joined #ruby
symbol has quit [Ping timeout: 246 seconds]
<meph> starfox_sf: not your codes fault...
schy has left #ruby ["WeeChat 1.2"]
<meph> the server uses google mx
<meph> wrong link :/
<meph> mxtoolbox.com/SuperTool.aspx?action=mx%3aproducthunt.com&run=toolpage#
<shevy> would this here work
symbol has joined #ruby
<shevy> def foo; 'foo'; end unless false
<jhass> ?try
<ruboto> Why don't you try it and see for yourself?
<starfox_sf> meph: but so why does google mx timeout? there should be a way to connect to the MTA no?
Scroff has joined #ruby
<meph> starfox_sf: 25 doesn't work on google, as far as I know
<meph> only 587 and with auth
ebbflowgo has left #ruby [#ruby]
k3asd` has quit [Remote host closed the connection]
<starfox_sf> I see
<jhass> sorry but bullshit
<Ox0dea> shevy: It seems the only way to delay method definition is to wrap it in a Proc.
simplyianm has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
<jhass> 587 with auth if the target is not gmail
<jhass> if the target is gmail of course you can connect over 25 without auth
<jhass> starfox_sf: from the same machine, netcat works?
simplyianm has joined #ruby
symbol has quit [Ping timeout: 264 seconds]
vickleton has quit [Quit: Ex-Chat]
<shevy> RubyKaigi is gone?
RegulationD has joined #ruby
meph has quit [Quit: Leaving.]
davedev2_ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphenow has quit [Quit: Be back later ...]
<starfox_sf> jhass: I was thinking of trying that. Looking up how to use netcat
workmad3 has joined #ruby
jonr22 has joined #ruby
<jhass> starfox_sf: just nc target port
<jhass> like telnet except it's actually raw TCP and not the telnet protocol
davedev24_ has quit [Ping timeout: 240 seconds]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Narzew has quit [Remote host closed the connection]
<starfox_sf> jhass: yeah, it's hanging on port 25
<jhass> "hanging"?
patrick_star has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
<starfox_sf> well, I ran nc -z ASPMX.L.GOOGLE.com 25 and it has not returned
<jhass> that's normal
<jhass> oh wait, -z ?
<starfox_sf> yeah, if I run nc -z google.com 80 I get Connection to GOOGLE.com port 80 [tcp/http] succeeded!
<jhass> hm, indeed returns immediately here
havenn has joined #ruby
<jhass> what IP does it resolve to for you?
workmad3 has quit [Ping timeout: 265 seconds]
<starfox_sf> 74.125.28.27
jonr22 has quit [Ping timeout: 265 seconds]
<jhass> respond shere
<jhass> do you have v6?
<starfox_sf> ipv6? not sure what you mean. It should be active. I'm running this on my local machine
havenwood has quit [Ping timeout: 256 seconds]
<jhass> whether you have public IPv6 connectivity, yes
<jhass> like does nc 74.125.28.27 25 make a difference to nc result of dig AAAA ... 25 make a difference
<jhass> s/make a difference//
FernandoBasso has quit [Ping timeout: 240 seconds]
AbinoamJr has joined #ruby
bmurt has joined #ruby
platzhirsch has joined #ruby
chouhoulis has joined #ruby
<starfox_sf> so I got the ipv6 address (2001:4860:400b:c01::1b) and ran nc -z IPv6_address 25. I'm getting the same thing as before
<jhass> what about the v4?
FernandoBasso has joined #ruby
kirun has quit [Remote host closed the connection]
<starfox_sf> nc -z 74.125.28.27 25 this does not work either
djbkd_ has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
<jhass> can you ping either?