« Back to channel list

#ruby - 23 August 2015

« Back 1 day Forward 1 day »
[00:00:49] jalnt: has joined #ruby
[00:02:43] zenguy_pc: has joined #ruby
[00:03:34] willharrison: has joined #ruby
[00:03:52] christiandsg: has joined #ruby
[00:06:13] hmsimha__: has joined #ruby
[00:07:27] dimasg: has joined #ruby
[00:07:53] robh71: has joined #ruby
[00:09:15] towski_: has joined #ruby
[00:10:36] ejimz: has joined #ruby
[00:11:12] Synthbread: has joined #ruby
[00:11:18] yeticry: has joined #ruby
[00:14:11] GPrime: has joined #ruby
[00:15:12] user1138_: has joined #ruby
[00:20:38] dimasg: has joined #ruby
[00:23:56] iamninja: has joined #ruby
[00:24:04] hmsimha__: has joined #ruby
[00:25:06] Nirgali42: has joined #ruby
[00:25:21] rehat: has joined #ruby
[00:26:13] adamholt: has joined #ruby
[00:26:31] wmoxam: has joined #ruby
[00:26:47] zenguy_pc: has joined #ruby
[00:26:52] Morrolan: has joined #ruby
[00:27:10] GnuYawk: has joined #ruby
[00:27:22] ozzloy: has joined #ruby
[00:29:46] devbug_: has joined #ruby
[00:30:47] stef204: has joined #ruby
[00:30:53] lucyinthesky: has joined #ruby
[00:33:55] fgo: has joined #ruby
[00:34:20] Musashi007: has joined #ruby
[00:37:22] finisherr: has joined #ruby
[00:38:48] JulioPapel: has joined #ruby
[00:43:36] stardiviner: has joined #ruby
[00:45:11] Rinzlit: has joined #ruby
[00:46:55] EminenceHC: has joined #ruby
[00:51:37] user1138: has joined #ruby
[00:52:11] user1138__: has joined #ruby
[00:55:31] [k-: has joined #ruby
[00:55:46] jiada: has joined #ruby
[00:56:33] Motoservo: has joined #ruby
[00:57:26] jiada: has joined #ruby
[00:59:43] hydrozen: has joined #ruby
[01:00:43] sarkyniin: has joined #ruby
[01:02:24] Spami: has joined #ruby
[01:03:24] charliesome: has joined #ruby
[01:06:42] einarj: has joined #ruby
[01:06:51] diegoviola: has joined #ruby
[01:08:10] Ox0dea: has joined #ruby
[01:13:46] christiandsg: has joined #ruby
[01:16:46] nux443: has joined #ruby
[01:18:01] RandyT_: has joined #ruby
[01:18:45] dgutierrez1287: has joined #ruby
[01:22:03] NeverDie: has joined #ruby
[01:24:21] bffff_: has joined #ruby
[01:28:27] Maletor: has joined #ruby
[01:28:46] Psi-Jack: Hmmm, interesting though. I shove 10 items into the direct queue, add a sleep to the consumer, and my main process sleeps while the thread is running, but it only consumes 5 out of 10 items that were published. Heh.. I'm kinda consumed with confusion. LOL
[01:33:29] Rinzlit1: has joined #ruby
[01:34:19] sooo: has joined #ruby
[01:34:46] EminenceHC: has joined #ruby
[01:34:51] choke: has joined #ruby
[01:35:03] fgo: has joined #ruby
[01:37:02] postmodern: has joined #ruby
[01:38:19] rehat: how to I properly set a constant in my class def. Every I create a new instance I get a warning 'already initialized constant ...'
[01:39:01] rehat: oh wait I use ||= this right
[01:39:12] Ox0dea: rehat: Don't define constants in methods.
[01:39:17] Musashi007: has joined #ruby
[01:39:26] [k-: Ox0dea!
[01:39:33] bruno-: has joined #ruby
[01:39:40] rehat: its right under my class def not in a method
[01:40:15] Ox0dea: rehat: Nope.
[01:40:27] [k-: it wouldnt do that if it's it the class body
[01:41:08] [k-: does ruby give line numbers for warnings? :o
[01:41:31] Ox0dea: Sometimes.
[01:41:47] rehat: https://gist.github.com/rehat/9531ba644d97331e16dc
[01:41:49] rehat: is this bad
[01:42:09] Ox0dea: rehat: Yes, it's terrible. You're using hard tabs.
[01:42:18] rickmasta: has joined #ruby
[01:42:36] rehat: haha man I have sublime text set to 2 spaces for tabs
[01:42:44] rehat: maybe I suck at copy pasta
[01:43:56] [k-: you do not need to use ||= to assign the constant
[01:44:02] Ox0dea: rehat: You want "translate_tabs_to_spaces": true.
[01:44:05] christiandsg: has joined #ruby
[01:44:20] [k-: or don't even use tabs at all
[01:49:07] dr3w: has joined #ruby
[01:50:21] tjohnson: has joined #ruby
[01:50:37] stardiviner: has joined #ruby
[01:51:08] rehat: hmm I think should avoid Edit->Line->Reindent option. Is there a sublime text setting to use spaces instead of tabs for that option?
[01:51:59] rehat: nvm found it
[01:54:16] NeverDie_: has joined #ruby
[01:56:00] Ox0dea: has joined #ruby
[01:56:19] lucyinthesky: has left #ruby: ("Leaving")
[01:58:49] howdoicomputer: has joined #ruby
[01:59:47] christiandsg: has joined #ruby
[02:02:01] rehat: oh should I ignore that warning if I am loading the script in irb more than once to reload it when I make changes?
[02:02:44] [k-: psssssssssssh
[02:03:00] [k-: yes ignore it
[02:03:07] rehat: haha ok sorry
[02:04:18] cscheib: are there any particularly good gems that implement a wrapper for a site's REST API? need some really good examples before I can conceptualize how I should write one for one of my storage devices
[02:05:56] finisherr: has joined #ruby
[02:07:17] BraddPitt: cscheib choose any popular service
[02:07:24] BraddPitt: twitter, stripe, etc
[02:07:37] user1138: has joined #ruby
[02:07:51] einarj: has joined #ruby
[02:07:59] cscheib: yes yes, just wasn't sure if there were any particular well-known shining examples.
[02:08:28] EminenceHC: has joined #ruby
[02:08:40] cscheib: just cause it exists and works doesn't mean it's good, well thought out code :P
[02:09:06] shevy: are you describing one of my projects!!!
[02:09:23] cscheib: shevy: nope, mine
[02:09:33] shevy: these days I try to opt for functionality first, then cleaniness
[02:10:17] Guest80999: has joined #ruby
[02:10:58] nux443: has joined #ruby
[02:11:44] cscheib: I barely even define methods in most of my code... definitely not very modular yet. trying to get there
[02:12:44] d2dchat: has joined #ruby
[02:12:55] [k-: do you copy paste a lot
[02:13:26] cscheib: I come from a mostly shell scripting background... so everything's very linear and single task based
[02:14:01] cscheib: trying to swap my mindset to writing some more reusable code (and sane code), another reason I was asking for good API examples, heh
[02:16:54] Ox0dea: [k-: http://quasimal.com/images/funsh/funsh.png
[02:19:00] Ox0dea: Yikes: https://github.com/mikeplus64/fun.sh/blob/master/fun.sh#L66-L95
[02:21:40] nux443: has joined #ruby
[02:22:07] [k-: readable code!
[02:22:12] davedev24: has joined #ruby
[02:24:51] iamninja: has joined #ruby
[02:25:02] Motoservo: has joined #ruby
[02:25:04] shevy: cscheib using methods is always useful, you can bind the logic into the methods and just use them
[02:25:06] shevy: def cleanup
[02:25:06] zenguy_pc: has joined #ruby
[02:25:12] shevy: def create_directories
[02:25:36] Ropeney: has joined #ruby
[02:26:14] cscheib: shevy: oh, I'm aware of your utility, it's mostly changing my habits and way of thinking into actually use them
[02:26:19] cscheib: s/your/their/
[02:27:32] ngscheurich: has joined #ruby
[02:28:08] war_pigs: has joined #ruby
[02:33:29] bazbing80: has joined #ruby
[02:34:16] bazbing80: How do I give an error class a default message? Shouldn't this be working? class SpecificError < StandardError; def message; "hello I am a specific error"; end; end
[02:34:19] bazbing80: => :message
[02:34:22] bazbing80: 2.2.1 :002 > raise SpecificError
[02:34:24] bazbing80: SpecificError: SpecificError
[02:35:06] anibara: has joined #ruby
[02:35:15] bazbing80: sorry, didn't think my irc client would send all 4 lines..regardless, can you see my error? SpecificError: SpecificError rather than SpecificError: "hello I am a specific error"
[02:35:26] bazbing80: can you see my problem
[02:35:59] NeverDie: has joined #ruby
[02:36:08] fgo: has joined #ruby
[02:37:38] Ox0dea: bazbing80: ruby -v?
[02:38:19] Ox0dea: Eh, it won't matter; your example works as expected here all the way back to 1.8.7.
[02:38:53] ericwood: has joined #ruby
[02:39:43] bazbing80: Ox0dea that is so odd..2.2.1 btw...the above has been pasted straight from irb :/ any ideas?
[02:40:20] Ox0dea: bazbing80: https://eval.in/420847
[02:41:16] nettoweb: has joined #ruby
[02:41:17] Ox0dea: You're right that it doesn't quite work in irb, but irb != ruby.
[02:41:47] [k-: it heavily modifies ruby
[02:42:49] bazbing80: Ox0dea: I did not know that! I've been experimenting with irb and it turns out it's heavily modified...although this is the only weirdness I've encountered
[02:43:09] dagda1: has joined #ruby
[02:43:37] nux443: has joined #ruby
[02:43:51] charliesome: has joined #ruby
[02:47:31] charliesome: has joined #ruby
[02:48:06] zenspider: bazbing80: the problem with your approach is that it overrides a custom message
[02:48:22] zenspider: raise SpecificError, "something even more specific"
[02:49:16] nux443: has joined #ruby
[02:49:30] jenrzzz: has joined #ruby
[02:50:09] Ox0dea: zenspider: But then whence E2MM?
[02:50:26] Ox0dea: That is, isn't it reasonable to give Exceptions default messages?
[02:50:36] jeadre: has joined #ruby
[02:51:44] sacarlson: has joined #ruby
[02:51:57] [k-: ACTION checks the Exception class
[02:52:00] zenspider: sure it is.
[02:52:24] zenspider: from ri: Exception.new(msg = nil)
[02:52:41] zenspider: so you subclass, override initalize, and give it a default message
[02:52:49] sp4rrow: has joined #ruby
[02:53:35] [k-: based on what i could gather: @mesg ||= (...)
[02:54:07] sacarlson: there seems to be some conflict when I have two versions of ruby installed on Linux Mint 17 (same as Ubuntu 14.04) when I have installed ruby-full and gems as global with apt-get and sudo gem install ... when I now try to use bundler
[02:54:40] sacarlson: is there some method to have both bundler and global apt-get installs not effect each other?
[02:55:02] zenspider: ACTION sighs "affect"
[02:55:44] sacarlson: sorry it is with rbenv install 2.1.1
[02:56:09] sacarlson: linking shared-object openssl.so
[02:56:09] sacarlson: make[2]: Leaving directory `/tmp/ruby-build.20150819120012.22500/ruby-2.1.1/ext/openssl'
[02:56:44] [k-: i present: https://eval.in/420851
[02:57:05] sacarlson: I tried a few other versions of install some have different errors, but seem when I do a complete delete of all ruby-full and all global install gems the problem goes away
[02:57:16] [k-: (it doesnt work)
[02:57:22] zenspider: [k-: so... it doesn't work. :P
[02:57:24] zenspider: try it my way above
[02:57:29] zenspider: (don't forget super)
[02:57:51] sacarlson: eval I'll take a look
[02:58:24] sacarlson: oh that's not for me
[02:58:32] zenspider: sacarlson: are you asking a question?
[02:58:52] UtkarshRay: has joined #ruby
[02:59:05] zenspider: I see a lot of muddled words... I don't see a coherently described problem and/or question
[02:59:06] chipotle: has joined #ruby
[02:59:17] sacarlson: sorry zenspider I went to look at the link above thinking it was a posible solution to my question above
[02:59:51] Miyeah: has joined #ruby
[03:00:14] nux443: has joined #ruby
[03:00:39] zenspider: ACTION sighs
[03:01:04] Miyeah: has joined #ruby
[03:01:09] sacarlson: zenspider yes I looking at putting together a more detailed package of my problem to try to make it more clear
[03:01:15] [k-: I present: https://eval.in/420854
[03:01:41] zenspider: [k-: why the trinary?
[03:02:17] j_mcnally: has joined #ruby
[03:02:18] ObiWanCannobe: has joined #ruby
[03:02:28] christiandsg: has joined #ruby
[03:02:33] [k-: what do you suggest instead o.O
[03:02:40] Ox0dea: [k-: msg || 'foo'
[03:02:56] zenguy_pc: has joined #ruby
[03:02:57] [k-: i think i should set the default as mymessage
[03:03:10] lucyinthesky: has joined #ruby
[03:03:51] [k-: version 3! https://eval.in/420855
[03:03:57] zenspider: (also, pls don't normally subclass Exception)
[03:04:08] ObiWanCannobe: has left #ruby: ("Leaving")
[03:04:18] zenspider: [k-: THAT ONE
[03:04:24] zenspider: that's the one I want
[03:04:41] [k-: no it isnt, it subclasses Exception
[03:05:31] zenspider: well... meh. that's ok for this example
[03:05:42] zenspider: sacarlson: we don't need a "package", we just need to understand you. you suck at asking clear questions. just try to be clear. We're smart, but we're not psychic.
[03:05:43] sacarlson: rather than provide too little I think this document I already have has too much but it's all I have https://drive.google.com/file/d/0B4pSHwxHXW9STDJmRFRYdU1KOGc/view?usp=sharing
[03:05:49] nux443: has joined #ruby
[03:06:13] zenspider: gah. I'm not reading that w/o sending you a bill.
[03:06:36] sacarlson: ok yes that's what I thought but that's what I had
[03:07:19] ObiWanCannobe: has joined #ruby
[03:07:29] AlexAltea: has joined #ruby
[03:07:32] ObiWanCannobe: has left #ruby: ("Leaving")
[03:07:32] sacarlson: the point being there must be some conflict with apt-get install and rbenv install as it seems I have to uninstall the apt-get version to get rbenv version to install and work
[03:08:14] shevy: possibly the apt-get one comes first in your $PATH
[03:08:30] sacarlson: shevy: ah very good posibility
[03:08:50] einarj: has joined #ruby
[03:09:17] sacarlson: I'm new to this rbenv and bundler world so I must have missed a step
[03:09:32] Azure: has joined #ruby
[03:09:39] braincras: has joined #ruby
[03:10:10] shevy: I am not sure what you are doing there
[03:10:16] shevy: rbenv can be used without bundler right?
[03:10:48] zenspider: they have nothing to do with each other
[03:11:03] sacarlson: I think in my procedure it only gets as far as attempting to do the version install in most cases
[03:11:16] nux443: has joined #ruby
[03:12:15] shevy: I don't know, you seem to fail even before bundler
[03:12:44] shevy: I can not copy/paste from the link you gave!
[03:12:59] sacarlson: yes even after I get it to install on other versions I later have problems with bundler
[03:13:03] zenspider: NOPE. aren't google apps WONDERFUL?
[03:13:28] sacarlson: oh ya that sucks want me to pastebin it?
[03:13:39] shevy: that was a weird moment... I tried to paste the error part here... and I only could paste the URL to that site...
[03:13:48] shevy: try pastebin and see what happens ;)
[03:14:05] sacarlson: it's very big with all the error output
[03:14:15] sacarlson: I kept everything
[03:15:14] sacarlson: http://pastebin.com/pmbBgKBL
[03:15:15] ruboto: sacarlson, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/0860c4b0b2d4f824bfee
[03:15:15] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[03:15:50] sacarlson: oh ok he did it for me
[03:16:08] davedev24: has joined #ruby
[03:17:13] shevy: the problem is that the error is not on the site
[03:17:15] shevy: BUILD FAILED (LinuxMint 17 using ruby-build 20150818)
[03:17:18] shevy: that doesn't say much at all
[03:17:19] sacarlson: in the end I did get this bundler app to work but not without killing my other apps that were setup using the old apt-get ruby-full method. so I'm looking for a way for them to work together
[03:17:46] sacarlson: oh ya the tmp file? you me to post that
[03:17:50] shevy: that is pretty madness
[03:17:55] shevy: incompatible library version - /home/sacarlson/.bundle/gems/ffi-1.9.10/lib/ffi_c.so (LoadError)
[03:18:18] shevy: isn't that superold?
[03:18:45] nux443: has joined #ruby
[03:18:49] sacarlson: so it pulls the old global gems I think and puts them into the .bundle file I guess
[03:19:09] sacarlson: ya I run some old ruby stuf that is installed global
[03:19:42] sacarlson: only way around it that I could find was to remove all global installs
[03:20:03] ledestin: has joined #ruby
[03:20:27] shevy: hmm I would assume that there must exist some way to ignore other installs, that is the whole point of installing all those things into the home dir, for users who would not have control over /usr hierarchy
[03:21:21] sacarlson: yes I would think so but so far failed to find a solution
[03:22:18] dimasg: has joined #ruby
[03:23:09] sacarlson: or maybe I'm wrong and the global install has nothing to do with the problem and just reinstall just some how magicly fixed it
[03:23:40] fedexo: has joined #ruby
[03:23:55] sacarlson: does anyone here run both global and rbenv version installs at the same time?
[03:27:20] fgo: has joined #ruby
[03:27:22] choke: has joined #ruby
[03:28:13] darkf: has joined #ruby
[03:28:29] nux443: has joined #ruby
[03:30:03] sdfgsdfg: has joined #ruby
[03:30:03] sdfgsdfg: has joined #ruby
[03:30:10] djbkd: has joined #ruby
[03:30:27] sdfgsdfg: has joined #ruby
[03:30:27] sdfgsdfg: has joined #ruby
[03:31:06] towski_: has joined #ruby
[03:33:51] Musashi007: has joined #ruby
[03:33:54] rickmasta: has joined #ruby
[03:38:54] saddad: has joined #ruby
[03:40:50] luckyno7: has joined #ruby
[03:42:56] sacarlson: oh and by global I mean installed with apt-get install ruby-full on top of running rbenv
[03:45:44] dgutierrez1287: has joined #ruby
[03:47:40] dimasg: has joined #ruby
[03:50:38] Musashi007: has joined #ruby
[03:55:15] war_pigs: has joined #ruby
[03:55:37] jeadre: has joined #ruby
[03:56:48] towski_: has joined #ruby
[03:57:04] rushed: has joined #ruby
[03:57:48] houhoulis: has joined #ruby
[03:57:55] lkba: has joined #ruby
[04:01:44] zenguy_pc: has joined #ruby
[04:05:36] christiandsg: has joined #ruby
[04:06:47] ta: has joined #ruby
[04:07:12] charliesome: has joined #ruby
[04:08:34] clarkenciel: has joined #ruby
[04:09:40] hmsimha__: has joined #ruby
[04:11:20] charliesome: has joined #ruby
[04:16:51] Psi-Jack: Anyone here ever work with Ruby and RabbitMQ and could provide me some insight? This example code I wrote https://gist.github.com/erenfro/9a3cbe4ac4b1407afd5d puts in 10 items into a rabbitmq queue into a direct exchange. However, it does not get more than 5 items back and when checking RabbitMQ after the run completes, there's no items in queue, only 5 of which were consumed and displayed in the Consumer#run.
[04:17:11] shevy: sacarlson guess not many opt for that combination. I myself limit myself to one ruby version these days
[04:17:39] pranny_: has joined #ruby
[04:18:20] sacarlson: yes seems so but I have apt-get packages that have dependances on ruby-full that is causeing conflicts at this time.
[04:18:29] tubulife-: has joined #ruby
[04:18:58] sacarlson: mini-isp being one of them
[04:21:26] shevy: is mini-isp a regular gem?
[04:21:44] sacarlson: no mini-isp is an apt-get package
[04:21:59] sacarlson: that forces install of ruby-full
[04:22:04] tubulife-: has joined #ruby
[04:22:17] towski_: has joined #ruby
[04:22:31] arescorpio: has joined #ruby
[04:22:39] shevy: what do they mean with ruby-full?
[04:22:42] sacarlson: but I'm sure it's not the only package that includes dependancies on ruby-full
[04:22:55] sacarlson: ruby-full is the apt-get package to install ruby
[04:23:48] davedev24: has joined #ruby
[04:23:59] finisherr: has joined #ruby
[04:24:09] IrishGringo: has joined #ruby
[04:24:34] finisherr: has left #ruby: ()
[04:25:01] shevy: it includes mkmf?
[04:25:20] shevy: you can try in irb; by starting the apt-get irb and trying require 'mkmf'
[04:25:42] iamninja: has joined #ruby
[04:25:47] tmtwd: has joined #ruby
[04:25:56] tubulife-: has joined #ruby
[04:26:58] sacarlson: mkmf? I'll have to look that up
[04:27:03] n_blownapart: has joined #ruby
[04:28:29] towski_: has joined #ruby
[04:28:36] jeadre: has joined #ruby
[04:28:47] n_blownapart: hi two things. does this block return a hash anywhere and if so , how ? also what is the long number returned by line 6 ? http://pastie.org/10369721
[04:29:30] ivanf: has joined #ruby
[04:30:16] charliesome: has joined #ruby
[04:30:52] Ox0dea: n_blownapart: The expression on Lines 2-5 evaluates to an empty Hash.
[04:31:20] Ox0dea: Block-local variables do not "leak" into the outer scope, so the value of `hash` is not the Hash from #each_with_object.
[04:31:30] Ox0dea: It is, in fact, a method call on `self`, which is `main` at the top level.
[04:31:32] Ox0dea: >> [self, hash]
[04:31:33] ruboto: Ox0dea # => [main, -984769333] (https://eval.in/420879)
[04:32:04] nanoz: has joined #ruby
[04:32:52] n_blownapart: thanks Ox0dea one sec..
[04:35:42] sacarlson: shevy as far as I can tell this mkmf is some kind of make creator, not sure what I'm suposed to do with it or how it will prevent the conflict
[04:35:48] hashrocket: has joined #ruby
[04:37:42] n_blownapart: Ox0dea, ok thanks, so the block does not in fact create a hash with a key/value pair from the indices and the array elements.
[04:39:36] jeadre: has joined #ruby
[04:39:44] charliesome: has joined #ruby
[04:40:24] shevy: sacarlson not sure whether you said that it works or not
[04:41:12] sacarlson: mini-isp works find for years. but being installed with this new app scc that runs under rbenv it conflicts I think
[04:41:32] shevy: no, I meant mkmf
[04:42:10] sacarlson: NameError: undefined local variable or method `mkmf' for main:Object
[04:42:11] sacarlson: from (irb):1
[04:42:11] sacarlson: from /home/sacarlson/.rbenv/versions/1.9.3-p484/bin/irb:12:in `<main>'
[04:42:14] havenwood: has joined #ruby
[04:42:43] Ox0dea: n_blownapart: Indeed not. You could use `hash[index] = element` within the block if that is the desired result.
[04:42:52] Ox0dea: And just `foo.each_with_index.to_h` if the debug output isn't crucial.
[04:43:04] shevy: sacarlson do you now know ruby? :)
[04:43:24] shevy: sacarlson require 'mkmf' - but you tried with the .rbenv, I wanted to know about your ruby-full irb
[04:43:33] sacarlson: that's debateable ha ha, I think not
[04:43:54] n_blownapart: Ox0dea, thank you I'm working on it.
[04:44:09] davedev24: has joined #ruby
[04:44:13] shevy: I am quite sure that the .rbenv one will have mkmf, it is debian that typically removes mkmf from their system ruby
[04:44:16] yashinbasement: has joined #ruby
[04:44:19] sacarlson: oh I no longer have it installed as I said it conflicts so I could reinstall ruby-full now and see what happens is what you ask
[04:44:29] shevy: I am confused
[04:44:45] yashinbasement: can anyone can help me what
[04:44:50] Ox0dea: ?anyone yashinbasement
[04:44:50] ruboto: yashinbasement, Just ask your question, if anyone has or can, they will respond.
[04:44:53] shevy: I thought the problem came from the system ruby
[04:45:14] bmcginty: has joined #ruby
[04:45:33] shevy: and why do you have 1.9.3 in .rbenv, didn't you have 2.1
[04:45:35] sacarlson: the problem happens as it seems if I already have ruby-full installed and I try to install an app requiring rbenv
[04:46:24] sacarlson: 1.9.3 is the version that ruby-full installs so I guess I have global set to it?
[04:46:25] shevy: you used apt to uninstall ruby-full?
[04:46:35] shevy: ruby-full is the apt variant
[04:46:38] shevy: how can it be in .rbenv?
[04:46:42] yashinbasement: can anyone explain what's happening the block of code https://gist.github.com/ynarwal/374e24cf902b92229e4e
[04:47:02] yashinbasement: like I am confused how join make a string
[04:47:09] sacarlson: in just installed the same version to allow compatibility in .rbenv
[04:47:56] lxsameer: has joined #ruby
[04:47:59] Ox0dea: yashinbasement: Array#join calls #to_s on each element of the Array and mushes them together with the (optional) separator.
[04:48:03] sacarlson: yes ruby-full is the apt variant
[04:48:22] Ox0dea: >> class Foo; def to_s; 'bar'; end end; [Foo.new, Foo.new].join # yashinbasement
[04:48:23] ruboto: Ox0dea # => "barbar" (https://eval.in/420880)
[04:49:05] sacarlson: at present ruby-full is NOT installed
[04:49:58] davedev24: has joined #ruby
[04:51:23] yashinbasement: so .join will be called in the end
[04:52:05] n_blownapart: Ox0dea, I understand #each_with_index, but when you pass a hash : each_with_object({}) , you would think that the block would somehow convert the array into a hash that could be returned. I don't see what the chained methods do in this case.
[04:52:44] yashinbasement: {|a,b| a.casecmp(b) } like what it does it just returns -1, 0 or 1 right ?
[04:53:17] dagda1: has joined #ruby
[04:53:25] Ox0dea: n_blownapart: You're not doing anything with the Hash in the block you pass to #each_with_object.
[04:54:06] Ox0dea: #each_with_object yields the receiver and the specified object to the block; it's on you to do the appropriate thing with them.
[04:55:07] Maletor: has joined #ruby
[04:55:31] yashinbasement: I was confusing myself , did not think that sort gives an array and then .join just mesh it up into string
[04:55:39] ponga: has joined #ruby
[04:55:45] Ox0dea: yashinbasement: Why wouldn't #sort return an Array?
[04:56:04] n_blownapart: Ox0dea, yields the receiver to the block?
[04:56:22] Ox0dea: n_blownapart: Just like with regular #each.
[04:56:41] Motoservo: has joined #ruby
[04:57:10] mblagden: has joined #ruby
[04:57:41] n_blownapart: Ox0dea, if you have the time and since you mention each : I understand what map does, but I never understood each since it doesn't modify an array and return anything . so I'm having the same trouble getting this as well.
[04:58:05] pabs: has joined #ruby
[04:58:19] Ox0dea: n_blownapart: In a nutshell, #each is #map for side effects.
[04:58:33] Ox0dea: #map is for when you intend to transform each element in some way.
[04:58:41] Ox0dea: #each is for when you just want to "do something" with each element.
[04:58:53] zenspider: n_blownapart: _everything_ returns _something_
[04:59:04] Ox0dea: zenspider: Not failed backquotes.
[04:59:34] amystephen: has joined #ruby
[04:59:54] zenspider: Yes. It raises an exception.
[05:00:08] Ox0dea: That's a return value?
[05:00:40] zenspider: I love it when you talk just to hear yourself. it really helps everyone here.
[05:01:01] Ox0dea: Well, that got ad hominem remarkably quickly.
[05:01:43] zenspider: hopefully it'll shut you down just a bit quicker so I don't have to deal with you anymore tonight
[05:02:19] Ox0dea: No worries.
[05:02:26] Ox0dea: n_blownapart: Did that explanation of #each help clarify anything?
[05:05:09] n_blownapart: It must be quite simple, but each just returns an identical array after, say, some math is done in the block. say it is a simple sum. the block goes through the elements, does an operation, nothing is returned except the original array. would you kindly explain '#each is #map for side effects'? Ox0dea
[05:05:50] Cache_Money: has joined #ruby
[05:06:43] _blizzy_: has joined #ruby
[05:07:12] Ox0dea: n_blownapart: If you wanted, for instance, to create some files based on the elements of an Array, you would use #each: filenames.each { |fname| File.write fname, 'foo' }
[05:07:30] Ox0dea: You *could* just do that within a call to #map, but it wouldn't be as semantically correct.
[05:08:33] Ox0dea: It wouldn't be your intention to transform the filenames into File objects, so #map would be inappropriate.
[05:10:07] einarj: has joined #ruby
[05:10:11] diegoaguilar: has joined #ruby
[05:10:20] diegoaguilar: Hello, is it advised to install ruby with a ppa
[05:10:24] devbug: has joined #ruby
[05:10:36] diegoaguilar: whats best way to install it for dev
[05:10:40] diegoaguilar: and for production
[05:11:07] rickmasta: has joined #ruby
[05:11:11] Ox0dea: chruby + ruby-install is pretty nice.
[05:11:38] n_blownapart: I think I used rvm / homebrew
[05:11:44] riotjones: has joined #ruby
[05:12:17] diegoaguilar: whats confident source to read how to install rvm
[05:12:30] diegoaguilar: and get a complete and working ruby environment in my laptop
[05:12:49] n_blownapart: ok OxOdea I really appreciate your time. I'm going to read up on it . thanks and no bickering !
[05:12:56] iateadonut: has joined #ruby
[05:14:17] n_blownapart: what OS diegoaguilar ?
[05:14:44] howdoicomputer: has joined #ruby
[05:16:30] n_blownapart: use rvm it is well developed for mac / unix / linux diegoaguilar
[05:17:53] n_blownapart: diegoaguilar, try this , this man is a respected author on ruby : http://railsapps.github.io/installrubyonrails-ubuntu.html
[05:18:16] diegoaguilar: \curl -sSL https://get.rvm.io | bash -s stable --ruby
[05:19:38] deavid: has joined #ruby
[05:20:11] n_blownapart: yeah follow that tutorial . if I can install rvm anyone can diegoaguilar
[05:20:48] devbug_: has joined #ruby
[05:21:02] Ox0dea: zenspider: Would you be so kind as to clarify how "everything returns something" is any more educational than pointing out when it doesn't hold?
[05:22:13] n_blownapart: Ox0dea, maybe zenspider meant at the level that I am struggling at. don't worry about it.
[05:23:04] psye: has joined #ruby
[05:23:05] pranny: has joined #ruby
[05:23:11] Cache_Money: has joined #ruby
[05:27:07] sacarlson: shevy what I have learned from a bit more research is that there is a apt-get deb package for rbenv and it is shows in the dependancies that the apt-get deb packages of ruby and ruby-full are noted as :break rbenv so are not allowed to install at the same time
[05:29:42] CorySimmons: has joined #ruby
[05:29:49] shevy: oh my god
[05:29:52] bluOxigen: has joined #ruby
[05:29:57] keen___________1: has joined #ruby
[05:30:00] sacarlson: why is that bad?
[05:30:08] shevy: you are in a prison
[05:30:40] djbkd: has joined #ruby
[05:31:07] Maletor: has joined #ruby
[05:31:37] Ox0dea: sacarlson: You wouldn't have this problem on LFS. :P
[05:31:54] shevy: on any sane OS
[05:32:08] shevy: that's reaching the point where windows would be simpler
[05:33:44] Psi-Jack: Aha! I needed my rabbitmq subscriber to not auto-acknowledge everything.
[05:33:50] Psi-Jack: Which I didn't know it was doing... heh
[05:35:32] Dopagod: has joined #ruby
[05:37:15] sacarlson: other wierd thing is rails deb package installs the ruby deb package so makes rails conflict with rbenv as must be why my searches for my error see some commonality
[05:37:32] ta: has joined #ruby
[05:41:02] bruno-: has joined #ruby
[05:41:36] deavid: has joined #ruby
[05:44:24] mleung: has joined #ruby
[05:44:48] renderful: has joined #ruby
[05:44:49] clarkenciel: has joined #ruby
[05:47:30] AlexRussia_: has joined #ruby
[05:55:54] yardenbar: has joined #ruby
[06:03:57] zenguy_pc: has joined #ruby
[06:04:16] tkuchiki: has joined #ruby
[06:04:56] meow: has joined #ruby
[06:05:29] towski_: has joined #ruby
[06:06:12] xeslana: has joined #ruby
[06:07:23] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Havenn, Radar, sevenseacat, jhass, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
[06:08:14] christiandsg: has joined #ruby
[06:08:32] nsuke: has joined #ruby
[06:09:59] m3ow1504_x: has joined #ruby
[06:10:44] m3ow1504_x: has joined #ruby
[06:11:06] pabs: has joined #ruby
[06:11:53] Maletor: has joined #ruby
[06:12:56] relic: Why are you harassing op members?
[06:13:11] Ox0dea: >> 'xeslana'.reverse # relic
[06:13:12] ruboto: Ox0dea # => "analsex" (https://eval.in/420882)
[06:13:22] xeslana: who wants to pair program?
[06:13:32] Ox0dea: relic: I expect this person is up to no good.
[06:16:18] khebbie: has joined #ruby
[06:17:21] xeslana: wouldn't it be better to see how the person behaves before harassing ops Ox0dea?
[06:17:44] Ox0dea: Some books can be judged by their covers.
[06:17:51] dimasg: has joined #ruby
[06:18:20] Dolo: has joined #ruby
[06:18:28] Dolo: has left #ruby: ()
[06:19:10] xeslana: minimodding does not get anyone anywhere
[06:19:12] Hanmac: maybe his/her parents where cruel while nameing him/her? ;P
[06:19:23] Ox0dea: xeslana: Perhaps being called out as a potential troll will cause you not to act out so as to spite me, in which case some good has still been done.
[06:19:25] xeslana: xes is the company i work at and lana is my name
[06:20:00] Ox0dea: Is XES an acronym or an initialism?
[06:20:16] xeslana: Ox0dea: can you please leave this channel and stop accusing people of being potentially disruptive when in fact it is you who's disrupting this channel by relentlessly harassing ops for trivial matters
[06:20:23] xeslana: proxes is a company
[06:21:12] xeslana: http://www.proxes-group.com/index.php?id=10092
[06:21:41] xeslana: Ox0dea: you're doing nothing but minimodding and disrupting this channel please leave
[06:24:07] m3ow1504_x: has joined #ruby
[06:24:38] jiada_: has joined #ruby
[06:25:00] carglass-rep: has joined #ruby
[06:26:31] iamninja: has joined #ruby
[06:27:00] Meow-J: has joined #ruby
[06:30:26] sameerynho: has joined #ruby
[06:31:12] christiandsg: has joined #ruby
[06:31:58] shinnya: has joined #ruby
[06:32:03] pranny: has joined #ruby
[06:32:18] EminenceHC: has joined #ruby
[06:33:06] warmonk: has joined #ruby
[06:33:25] devbug: has joined #ruby
[06:34:34] hydrozen: has joined #ruby
[06:36:24] lxsameer_: has joined #ruby
[06:38:31] ta: has joined #ruby
[06:40:14] rippa: has joined #ruby
[06:40:28] RTG`: has joined #ruby
[06:41:22] towski_: has joined #ruby
[06:42:33] fantazo: has joined #ruby
[06:42:59] UtkarshRay: has joined #ruby
[06:51:53] christiandsg: has joined #ruby
[06:53:51] michael_mbp: has joined #ruby
[06:54:49] yashinbasement: has joined #ruby
[06:55:35] JohnBat26: has joined #ruby
[06:57:42] hydrozen: has joined #ruby
[07:01:25] Jackneill: has joined #ruby
[07:03:06] Zarthus: has joined #ruby
[07:05:24] carglass-rep: has joined #ruby
[07:05:58] roolo: has joined #ruby
[07:07:37] baweaver: has joined #ruby
[07:09:57] yfeldblum: has joined #ruby
[07:11:39] einarj: has joined #ruby
[07:14:45] lxsameer_: folks, is Array#index insufficient ?
[07:14:55] fullofcaffeine: has joined #ruby
[07:17:36] [k-: insufficient for what!
[07:18:02] lxsameer_: [k-: in case a big Array is it a good idea to use Array#index ?
[07:18:22] [k-: how big is big
[07:23:24] arooni-mobile: has joined #ruby
[07:23:26] pranny: has joined #ruby
[07:25:35] ta: has joined #ruby
[07:29:45] Maletor: has joined #ruby
[07:30:23] djbkd: has joined #ruby
[07:31:00] xgley: has joined #ruby
[07:34:59] fgo: has joined #ruby
[07:39:09] Blaguvest: has joined #ruby
[07:45:21] Motoservo: has joined #ruby
[07:45:45] alphaatom: has joined #ruby
[07:53:12] christiandsg: has joined #ruby
[07:57:48] carglass-rep: has joined #ruby
[07:59:45] carglass-rep_: has left #ruby: ()
[08:00:39] dionysus69: has joined #ruby
[08:04:15] zenguy_pc: has joined #ruby
[08:04:58] ElSif: has joined #ruby
[08:05:28] davedev24: has joined #ruby
[08:07:14] whiteline: has joined #ruby
[08:09:28] zenguy_pc: has joined #ruby
[08:10:24] SCHAAP137: has joined #ruby
[08:12:25] einarj: has joined #ruby
[08:12:28] riotjones: has joined #ruby
[08:15:52] Rubie: has joined #ruby
[08:16:49] glennt: has joined #ruby
[08:24:26] bstrarm: has joined #ruby
[08:26:28] khebbie: has joined #ruby
[08:27:24] iamninja: has joined #ruby
[08:36:06] fgo: has joined #ruby
[08:36:38] Kallis: has joined #ruby
[08:38:40] ruby-lang838: has joined #ruby
[08:38:56] ruby-lang838: i have one problem is anybody can help me
[08:39:30] Mia: has joined #ruby
[08:39:30] Mia: has joined #ruby
[08:44:05] TomyLobo: has joined #ruby
[08:44:32] miguelff: has joined #ruby
[08:45:06] rushed: ruby-lang838: you might consider gisting your issue
[08:46:49] fantasticsid: has joined #ruby
[08:47:03] Motoservo: has joined #ruby
[08:47:28] nanoz: has joined #ruby
[08:48:22] ruby-lang838: https://gist.github.com/saroar/de78f4d7060103bf2bdf
[08:48:55] Kallis: has joined #ruby
[08:49:05] ruby-lang838: hello here is my code would you like to check please
[08:49:07] ruby-lang838: https://gist.github.com/saroar/de78f4d7060103bf2bdf
[08:49:32] rushed: ruby-lang838: rails? what are you using for auth?
[08:50:02] ruby-lang838: from scratch didnt use any gem
[08:50:25] arup_r: has joined #ruby
[08:50:33] ruby-lang838: its book https://www.railstutorial.or
[08:50:34] Ox0dea: [k-: I suspect Array#bsearch was the answer to that homework question.
[08:52:37] jeadre: has joined #ruby
[08:53:12] cornerma1: has joined #ruby
[08:54:24] banister: has joined #ruby
[09:02:15] pranny: has joined #ruby
[09:02:29] dfockler: has joined #ruby
[09:02:40] mhib: has joined #ruby
[09:03:36] Polysics: has joined #ruby
[09:04:07] pranny: has joined #ruby
[09:04:13] jraisanen: has joined #ruby
[09:06:44] jamesaxl: has joined #ruby
[09:07:45] catoblepa: has joined #ruby
[09:08:14] miguelff: has joined #ruby
[09:13:11] einarj: has joined #ruby
[09:13:50] djbkd: has joined #ruby
[09:14:44] sameerynho: has joined #ruby
[09:18:01] iamninja: has joined #ruby
[09:19:04] JoL1hAHN: has joined #ruby
[09:21:11] lxsameer_: has joined #ruby
[09:24:12] NeverDie: has joined #ruby
[09:26:11] araujo: has joined #ruby
[09:27:33] sameerynho: has joined #ruby
[09:27:39] araujo: has joined #ruby
[09:29:21] [k-: ruby-lang838: you might start with telling us what is wrong
[09:31:53] apeiros: thanks Ox0dea
[09:31:55] apeiros: (re !ops earlier)
[09:32:51] tubulife-: has joined #ruby
[09:32:57] Ox0dea: apeiros: No worries. Optimism tells me it worked as a preventative measure.
[09:33:19] marcoecc: has joined #ruby
[09:34:28] marcoecc: has joined #ruby
[09:34:43] apeiros: I think so too
[09:36:00] mikelodeon: has joined #ruby
[09:36:10] marcoecc: has joined #ruby
[09:37:10] rht: has joined #ruby
[09:37:11] urd7: has joined #ruby
[09:37:13] fgo: has joined #ruby
[09:38:51] arup_r: has joined #ruby
[09:40:44] jgt: has joined #ruby
[09:42:36] bruno-: has joined #ruby
[09:43:37] tethra: has joined #ruby
[09:46:26] pgatt: has joined #ruby
[09:47:58] roolo_: has joined #ruby
[09:55:37] Ox0dea: has joined #ruby
[09:57:36] christiandsg: has joined #ruby
[10:06:08] yfeldblum: has joined #ruby
[10:11:04] leat: has joined #ruby
[10:13:58] einarj: has joined #ruby
[10:15:18] Mon_Ouie: has joined #ruby
[10:15:43] kr3ssh: has joined #ruby
[10:21:16] _blizzy_: has joined #ruby
[10:23:57] moredhel: has joined #ruby
[10:23:59] symm-: has joined #ruby
[10:24:54] leat: has joined #ruby
[10:29:20] bruno-: has joined #ruby
[10:29:50] _blizzy_: has joined #ruby
[10:33:17] fgo: has joined #ruby
[10:33:52] stef204: has joined #ruby
[10:36:51] khebbie: has joined #ruby
[10:38:29] JulioPapel: has joined #ruby
[10:40:03] stamina: has joined #ruby
[10:42:27] sysx1000: has joined #ruby
[10:42:45] towski_: has joined #ruby
[10:44:05] sysx1000: Hi friends! Probably, not a Ruby question. Is there any kind of software, which acts as a local caching proxy server for gems? I'd like to keep some gems locally, not to fetch them each time from net.
[10:45:03] chris2: you can pass a cache dir somehow
[10:46:02] moredhel: has joined #ruby
[10:47:00] darix: sysx1000: you can run your own gem server and point your apps to that.
[10:49:04] sysx1000: will gem server acts like a caching proxy for gems?
[10:52:09] abdulrehman: has joined #ruby
[10:52:20] sevenseacat: has joined #ruby
[10:53:20] sysx1000: I think I found that I need: yarp
[10:55:08] m3ow1504_x: has joined #ruby
[10:55:10] catoblepa: has joined #ruby
[10:55:34] pranny: has joined #ruby
[10:56:29] moredhel: has joined #ruby
[10:57:23] moredhel: has joined #ruby
[10:57:51] apeiros: sysx1000: I think guides.rubygems.org has something on that
[10:58:13] Papierkorb: http://guides.rubygems.org/run-your-own-gem-server/ Gemirro
[10:58:25] sysx1000: yeah, thanks
[10:58:47] christiandsg: has joined #ruby
[11:00:56] ruby-lang838: hello is anybody can checkout my code please
[11:01:00] ruby-lang838: i have little bug
[11:01:18] ruby-lang838: https://gist.github.com/saroar/de78f4d7060103bf2bdf
[11:01:22] zenguy_pc: has joined #ruby
[11:01:26] ruby-lang838: thanks advance
[11:02:26] pontiki: did you know you can have multiple files in a gist? it's what the "Add File" button is for the left of the "Create" buttons
[11:09:06] soahccc: Can you lock a mutex in one thread and pass the reference to that mutex in a second thread and unlock it again? I have multiple threads running in parallel while they shouldn't :S
[11:09:28] robertjpayne: has joined #ruby
[11:11:16] robertjpayne: Is there any major difference between doing: method("id.in" => ["1"]) or method(:id.in => ["1"]) or method("id.in": ["1"])? The library I'm using works with the first two but not the third.
[11:11:37] robertjpayne: I'm guessing the last one the kwargs are being passed as a opts hash with string keys rather than symbol?
[11:11:56] sacarlson: has left #ruby: ()
[11:12:39] soahccc: robertjpayne: all three do the same just different syntax... I'm pretty sure that v2 and v3 only works in recent ruby versions
[11:12:46] Trieste: has joined #ruby
[11:12:53] apeiros: soahccc: nope
[11:13:15] soahccc: apeiros: string as key with new hash syntax, no?
[11:13:17] apeiros: robertjpayne: "id.in" is a String. :id.in is the method "in" called on the symbol :id
[11:13:19] UtkarshRay: has joined #ruby
[11:13:28] apeiros: and "id.in": is the symbol :"id.in"
[11:13:40] robertjpayne: that would explain a lot
[11:14:02] apeiros: and presumably your library will convert a String and perform :id.in, but it won't do that with a symbol
[11:14:40] robertjpayne: yea makes sense
[11:14:41] usrnix: has joined #ruby
[11:14:49] robertjpayne: shucks, was hoping I didn't have to use fat arrow
[11:14:49] einarj: has joined #ruby
[11:15:01] apeiros: ruby-lang838: splitting the gists on multiple files with syntax highlighting on would help. let me see???
[11:15:30] apeiros: ruby-lang838: oh, you omitted the file which contains the actual test?
[11:16:00] apeiros: ruby-lang838: also that VALID_EMAIL_REGEX is broken. it won't allow tons of valid email addresses.
[11:16:10] apeiros: all IDN email addresses for example.
[11:16:24] howdoicomputer: has joined #ruby
[11:16:34] Azure: has joined #ruby
[11:16:43] ruby-lang838: whats your advice sir
[11:17:29] apeiros: with regards to your test issue? update the gist :) add the file which contains the test
[11:17:55] Cysioland: has joined #ruby
[11:17:59] apeiros: with regards to email validation? use one of the mail validation gems. not sure about their quality, but presumably better than that regex.
[11:18:08] Aww: has joined #ruby
[11:18:18] ruby-lang838: sure 1 sec sir
[11:18:34] apeiros: no need to call me "sir" btw.
[11:19:51] Cysioland: I have a bizarre problem: on my local host, string with utf-8 characters is sent to IRC normally, but on the remote server it's send as "\uXXXX"
[11:20:48] darix: Cysioland: locale
[11:21:23] apeiros: ruby-lang838: btw., if you want to use a regex to test for valid email addresses - https://gist.github.com/apeiros/e7410e2d1b4a099d9ed3 is what I use (AddrSpec). it still disallows some (per spec) valid email addresses, though
[11:21:29] soahccc: So heres my code with the mutex problem... any idea? https://gist.github.com/2called-chaos/16aaab2aa6533fb2360b
[11:22:05] soahccc: wait_for_workers appears to work, aquire_deferred_lock doesn't care
[11:22:32] ruby-lang838: apeiros: i update my gist
[11:22:43] Cysioland: darix, I now matched the locales wth my local machine, and still fails
[11:22:48] Aww: has left #ruby: ("Leaving")
[11:24:32] iooner: has joined #ruby
[11:27:23] apeiros: ruby-lang838: ok, so to understand your expectation - you expect current_user to return nil because the remember_token changed?
[11:28:35] ruby-lang838: my test should me pass but its show error i don't know why i check everything
[11:29:37] northfurr: has joined #ruby
[11:32:44] etqqkoiflwhb: has joined #ruby
[11:32:55] FernandoBasso: has joined #ruby
[11:35:36] stef_204: has joined #ruby
[11:36:09] pranny: has joined #ruby
[11:37:23] etqqkoiflwhb: has joined #ruby
[11:37:38] above: has joined #ruby
[11:38:16] bluenemo: has joined #ruby
[11:38:44] bluenemo: hi guys. Sry for long post - I've got this old UMTS/3g WWAN Stick and discovered it can send sms / receive too. I wrote a little python around gammu (some sms thingy) and can now send mails to foo@bar.com and my py will fetch that, parse it and send it via sms to my mobile. What I want next is to have like "plugins", which have a function to send a message and to fetch messages. This for sms, jabber, emails, and so on (generic). Is there something
[11:38:44] bluenemo: like this out there yet? Preferably in py or ruby. An example config for my idea: http://paste.debian.net/303967/ (very basic, but you might catch my drift). the example means fetch mails from the "fetch" email account, look in the message body on how to use them (or set overridable defaults in config) and send that via jabber.
[11:39:31] apeiros: ruby-lang838: I try to understand what you expect and why. without understanding, I can't help.
[11:39:40] bmalum: has joined #ruby
[11:40:54] ruby-lang838: apeiros: what i expected --- expected +++ actual @@ -1 +1 @@ -#<User id: 357369365, name: "Alina Example", email: "alina@example.com", created_at: "2015-08-23 11:39:04", updated_at: "2015-08-23 11:39:04", password_digest: "$2a$04$AXY0sTy6scNKLW.fca.nsuPfxwQrAqeiq6PcHyjBblX...", remember_digest: nil> +nil test/helpers/sessions_helper_test.rb:11:in `block in <class:SessionsHelperTest>'
[11:41:16] eladmeidar: has joined #ruby
[11:45:13] soahccc: Okay now it's getting bizarre here as well... Multiple threads lock the mutex and just continue but when I actually try to unlock them they deadlock against each other... I must have misunderstood something :S
[11:46:19] max_Q: has joined #ruby
[11:47:21] Gnomethrower: has joined #ruby
[11:47:30] apeiros: soahccc: your thread crashes
[11:47:31] Gnomethrower: has joined #ruby
[11:47:37] apeiros: you can't return in that loop
[11:47:43] apeiros: from where to where would it return?
[11:48:15] apeiros: I think due to threading I can't even use ruboto to show the crash, but let me try:
[11:48:38] apeiros: >> def x; Thread.new do return 123 end end; tx = x; sleep(0.1); tx.value
[11:48:39] ruboto: apeiros # => (https://eval.in/420937)
[11:48:51] soahccc: apeiros: oh you mean in wait_for_workers?
[11:49:07] apeiros: no work in ruboto :(
[11:49:14] apeiros: it results in: LocalJumpError: unexpected return
[11:49:22] apeiros: soahccc: yes
[11:49:48] soahccc: apeiros: well wait_for_workers coincidentally works since I wait for the thread to end and yeah it ends xD
[11:49:59] soahccc: but thanks for pointing that out
[11:50:47] soahccc: the problem I have is that the mutex locking doesn't work like I expect it to do I'm afraid
[11:52:30] soahccc: I basically want the threads to wait for each other in a specific spot but they don't. I thought a single mutex all workers must lock to should do the trick
[11:52:40] fgo: has joined #ruby
[11:52:50] bmalum: Anyone a good solution to export a View to ???xls??? or open document with ruby?
[11:53:30] apeiros: soahccc: it sounds to me like you were reinventing existing thread primitives
[11:53:47] apeiros: "only one thread should do importing at any given time" - Mutex#synchronize
[11:54:04] platzhirsch: has joined #ruby
[11:54:07] soahccc: apeiros: exactly just that I want to lock and unlock instead of using block syntax
[11:54:13] apeiros: bMalum: there are excel reading gems, like spreadsheet and roo
[11:54:36] apeiros: soahccc: that's prone to error. why do you want that?
[11:56:01] charliesome: has joined #ruby
[11:56:08] soahccc: apeiros: due to the display rendering. I mean I understand what you mean (forget to unlock) but the issue is that they all get a lock at the same time
[11:56:33] apeiros: "they"? and why's that an issue?
[11:57:14] apeiros: I don't see how "display rendering" is a reason to not use Mutex with block-form synchronize
[11:58:34] i: has joined #ruby
[11:59:44] soahccc: apeiros: "they" are the workers. So lock-dosomething-unlock is not the same as synchronize{dosomething} ?
[12:00:28] Mon_Ouie: If dosomething raises an exception, then no, they're not
[12:01:19] bruno-: has joined #ruby
[12:01:28] ferhaty: has joined #ruby
[12:01:40] soahccc: well the unlock is in an ensure. the point is that all workers (at the same time) execute "dosomething" and then hang forever at unlock
[12:01:40] apeiros: soahccc: synchronize is essentially `def synchronize; lock; yield; ensure; unlock; end`, yes
[12:01:41] etqqkoiflwhb: has joined #ruby
[12:02:02] allcentury: has joined #ruby
[12:02:24] etqqkoiflwhb: has joined #ruby
[12:02:29] soahccc: and according do doc it should do "Releases the lock. Raises ThreadError if mutex wasn't locked by the current thread."
[12:02:57] soahccc: and theres the problem I guess. I passing the lock _across_ threads
[12:03:07] apeiros: you mean they exhibit that behavior with your code?
[12:03:44] apeiros: "pass the lock" - you mean the mutex?
[12:04:28] davedev24: has joined #ruby
[12:04:39] apeiros: why do you reinvent Mutex#lock? (your try_lock + loop)
[12:05:15] bigkevmcd: has joined #ruby
[12:05:42] apeiros: and why do you do that in a thread which is unrelated to the thread which wants to acquire the lock?
[12:05:54] apeiros: again, you're reinventing thread primitives and I see no good reason.
[12:06:10] apeiros: thread primitives seem simple. they are not.
[12:06:26] finisherr: has joined #ruby
[12:06:43] m3ow1504_x: has joined #ruby
[12:07:17] soahccc: apeiros: I guess my problem is that the worker can't block getting the lock since the worker is responsible for the progress display
[12:07:44] rodfersou: has joined #ruby
[12:07:56] apeiros: so your problem is broken design
[12:08:09] apeiros: have a single thread responsible for display
[12:08:17] apeiros: provide a queue to push updates to it
[12:08:36] leat: has joined #ruby
[12:09:11] soahccc: yeah I guess. though it's not the actual display but ticking of internal state and ssh loop
[12:09:14] apeiros: use standard locking (i.e. Mutex#synchronize) for your resource access
[12:09:17] bigkevmcd: has joined #ruby
[12:09:42] etqqkoiflwhb: has joined #ruby
[12:11:35] Cysioland: has joined #ruby
[12:13:59] siaW: has joined #ruby
[12:15:26] einarj: has joined #ruby
[12:15:42] TaxtacalJackl: has joined #ruby
[12:16:12] Soda: has joined #ruby
[12:17:04] leat: has joined #ruby
[12:18:47] eladmeidar: has joined #ruby
[12:19:23] charliesome: has joined #ruby
[12:20:41] Rinzlit2: has joined #ruby
[12:23:14] soahccc: apeiros: Thanks. I didn't want to rework everything so I solved it now by letting the worker synchronize after spawning a thread before which is doing background stuff until it locked
[12:23:42] havenwood: has joined #ruby
[12:23:54] blackjid: has joined #ruby
[12:26:35] ruby-lang838: apeiros: did u check it already
[12:27:49] dgutierrez1287: has joined #ruby
[12:27:49] leat: has joined #ruby
[12:31:37] Gnomethrower: has joined #ruby
[12:31:55] Gnomethrower: has joined #ruby
[12:34:58] apeiros: ruby-lang838: no. we're still at "if you can't explain your expectation, I can't help you"
[12:36:14] ruby-lang838: apeiros: i think it should not be nil remember_digest: nil
[12:36:17] iamninja: has joined #ruby
[12:37:33] ruby-lang838: apeiros: current_user_returns_right_user_when_session_is_nil but its not
[12:38:14] howdoi: has joined #ruby
[12:38:47] khebbie: has joined #ruby
[12:40:50] phutchins: has joined #ruby
[12:42:49] mary5030: has joined #ruby
[12:46:15] catoblepa: has joined #ruby
[12:47:20] DexterLB: has joined #ruby
[12:49:37] mary5030: has joined #ruby
[12:51:00] _blizzy_: has joined #ruby
[12:51:48] pranny: has joined #ruby
[12:52:25] cashnguns: has joined #ruby
[12:52:32] rippa: has joined #ruby
[12:53:11] amystephen: has joined #ruby
[12:54:02] pranny: has joined #ruby
[12:54:19] Rutix: has joined #ruby
[12:54:19] Rutix: has joined #ruby
[12:55:54] phutchins: has joined #ruby
[12:57:57] charliesome: has joined #ruby
[12:59:02] matp: has joined #ruby
[12:59:40] _blizzy_: has joined #ruby
[13:00:39] zenguy_pc: has joined #ruby
[13:01:19] mary5030: has joined #ruby
[13:01:39] christiandsg: has joined #ruby
[13:01:57] JulioPapel: has joined #ruby
[13:03:52] jnor: has joined #ruby
[13:04:20] sdothum: has joined #ruby
[13:05:16] AlexAltea: has joined #ruby
[13:11:54] jamesaxl|2: has joined #ruby
[13:12:12] shinnya: has joined #ruby
[13:12:21] mary5030: has joined #ruby
[13:12:31] fgo: has joined #ruby
[13:15:20] stardiviner: has joined #ruby
[13:18:28] jgt: has joined #ruby
[13:20:22] michael_mbp: has joined #ruby
[13:21:12] charliesome: has joined #ruby
[13:21:40] alphaatom: has joined #ruby
[13:22:10] catoblepa: has joined #ruby
[13:22:55] hmsimha__: has joined #ruby
[13:23:30] yqt: has joined #ruby
[13:24:51] m3ow1504_x: has joined #ruby
[13:26:15] jhack: has joined #ruby
[13:27:17] arup_r: has joined #ruby
[13:27:19] willharrison: has joined #ruby
[13:27:30] m3ow1504_x: has joined #ruby
[13:29:57] m3ow1504_x: has joined #ruby
[13:30:11] rfmind: has joined #ruby
[13:31:30] gabord: has joined #ruby
[13:31:30] m3ow1504_x: has joined #ruby
[13:31:31] phutchins: has joined #ruby
[13:31:56] gabord: Hi. Why is passenger a better choice to run web applications than the simple webrick server?
[13:32:15] Gnomethrower: gabord: because the webrick server is not built for efficiency or scale
[13:32:20] Gnomethrower: it's "toy" code, in effect
[13:32:25] atomical: has joined #ruby
[13:32:25] Gnomethrower: whereas Passenger is well optimized
[13:32:38] Gnomethrower: other options are Puma, Unicorn, etc
[13:32:44] m3ow1504_x: has joined #ruby
[13:32:44] Gnomethrower: but WEBrick is terrible slow
[13:33:03] gabord: Gnomethrower: And what about security?
[13:33:10] Mon_Ouie: has joined #ruby
[13:33:47] Gnomethrower: gabord: Off the top of my head there's not a huge security risk
[13:33:59] Gnomethrower: but think about it like this: WEBrick is the toy that developers use on their own machines
[13:34:15] Gnomethrower: and Passenger is what hundreds, thousands or tens of thousands use for hosting actual web sites
[13:34:34] Gnomethrower: as such Passenger is a lot more.... battle-tested security wise
[13:34:37] Gnomethrower: does that make sense?
[13:34:50] gabord: Gnomethrower: Yes, i understand it, thanks.
[13:34:57] Gnomethrower: like, WEBrick isn't *necessarily* less secure, but it's not used in production by anyone with sense
[13:35:15] Gnomethrower: so it's not very well tested security-wise and may have weird/subtle/unknown security vulns
[13:35:20] Gnomethrower: :) Glad I could help
[13:35:51] kirun: has joined #ruby
[13:37:24] shevy: http://learn.onemonth.com/ruby-vs-python
[13:37:33] shevy: "Ruby: More Magical"
[13:38:02] Gnomethrower: shevy: obligatory http://www.catb.org/jargon/html/magic-story.html
[13:38:33] shevy: cats.org?
[13:39:05] shevy: more magic
[13:39:06] warmonk: has joined #ruby
[13:39:09] gabord: I dont know anything about ruby, but it does sound magical. ruby, unicorn,
[13:39:21] Gnomethrower: gabord: it totally is magical
[13:39:25] robh71: has joined #ruby
[13:39:25] Gnomethrower: that's actually one of the secrets
[13:39:27] gabord: and ive seen a gem name or something like that as COCAIN
[13:39:43] Gnomethrower: that's very irresponsible for the website to be revealing that though
[13:39:50] Gnomethrower: ruby's magic is only strong when few people know about it
[13:39:52] vikaton: has joined #ruby
[13:39:56] Gnomethrower: they're going to ruin everything
[13:40:15] jgpawletko: has joined #ruby
[13:40:29] shevy: gabord well people pick odd names for their project
[13:41:09] alphaatom: has joined #ruby
[13:41:13] shevy: gabord there is a gem called god too. apparently it does mighty things https://rubygems.org/gems/god
[13:41:27] bruno-: has joined #ruby
[13:41:43] shevy: gabord there also is a gem called butler. as the name implies it ... is an IRC bot :-) https://rubygems.org/gems/butler
[13:42:00] Gnomethrower: shevy: God, written by Tom Preston-Warner
[13:42:04] shevy: gabord yeah, people just wanna hog up the namespace there
[13:42:04] Gnomethrower: *of course it is* :P
[13:42:19] shevy: I mean take the name "prawn"
[13:42:28] shevy: who would have thought that it can be used to generate .pdf files via ruby?
[13:42:50] war_pigs: has joined #ruby
[13:42:50] gabord: Maybe i should learn ruby. Is it hard if i know other object oriented languages well?
[13:42:56] leafybasil: has joined #ruby
[13:43:06] shevy: aha... we also have a fairy apparently... https://rubygems.org/gems/fairy
[13:43:13] Gnomethrower: gabord: shouldn't be
[13:43:18] Gnomethrower: Ruby is meant to be a fairly easy language
[13:43:22] shevy: gabord ruby can be both hard and very simply
[13:43:44] shevy: like when a newcomer comes across ->
[13:43:48] gabord: Also, is there a way to compile my programs, and others cant really decompile it?
[13:44:01] lordkryss: has joined #ruby
[13:44:03] shevy: gabord not really since it is interpreted and not compiled
[13:44:07] gabord: And i also need a good support to create webserver like applications.
[13:44:09] Gnomethrower: gabord: Technically, yes, but don't do that.
[13:44:26] gabord: Thats bad. I know for example there are compilers for python.
[13:44:28] Gnomethrower: 'cause DRM is lame, hard to maintain, ultimately pointless and mostly completely useless.
[13:44:34] gabord: Well, then i dont really need it.
[13:44:43] lordkryss: has left #ruby: ()
[13:44:51] Gnomethrower: DRM is a bug, not a feature ;)
[13:44:57] gabord: Gnomethrower: Not useless if you try to make commercial products.
[13:45:09] Gnomethrower: gabord: just as useless there.
[13:45:26] Gnomethrower: it will ALWAYS be cracked if your product is even the slightest bit popular
[13:45:37] gabord: But if its not that popular!
[13:45:47] Gnomethrower: I would use Steam as an example - they don't update their DRM that frequently despite it being broken 95% of the time
[13:46:08] armyriad: has joined #ruby
[13:46:12] gabord: Are there good libraries for creating web applications in ruby?
[13:46:25] Gnomethrower: gabord: yes. Ruby on Rails is the most popular one
[13:46:30] gabord: Oh. Im stupid!
[13:46:31] Gnomethrower: sometimes just called "rails"
[13:46:40] gabord: Ive just asked about it.
[13:46:49] gabord: Im trying to use one now. :D
[13:46:59] gabord: Sorry, my mistake.
[13:47:30] davedev24: has joined #ruby
[13:47:35] rfmind: has joined #ruby
[13:47:41] bmalum: has joined #ruby
[13:47:45] Gnomethrower: gabord: Never apologize for that which you do not know ;)
[13:48:01] Gnomethrower: gabord: https://xkcd.com/1053/
[13:48:13] Pupp3tm4st3r: has joined #ruby
[13:49:07] gabord: Well, yes, but i kind of did know, just didnt really realized. I asked about the passenger because im trying to install a ruby webapp.
[13:49:15] gabord: Just didnt realize.
[13:50:41] Papierkorb: gabord: you could write something custom which bundles the .rb files with ruby itself and then runs through it. Can get quite complex. Better focus on making something that's worthy of a crack.
[13:50:47] jgt: has joined #ruby
[13:50:52] gabord: Gnomethrower: thats a good xkcd comic.
[13:52:23] leat: has joined #ruby
[13:53:11] alphaatom: has joined #ruby
[13:53:32] gabord: Papierkorb: Well, yes, probably not worth doing it. Maybe i will try to make it very differently.
[13:55:53] SCHAAP137: has joined #ruby
[13:55:53] SCHAAP137: has joined #ruby
[13:56:16] davedev24: has joined #ruby
[13:56:26] charliesome: has joined #ruby
[13:57:04] jhack: has joined #ruby
[14:00:52] rushed: has joined #ruby
[14:01:35] lessless: has joined #ruby
[14:02:00] havenwood: good mornin'
[14:03:39] monsieur1: has joined #ruby
[14:03:50] monsieur2: has joined #ruby
[14:04:28] christiandsg: has joined #ruby
[14:06:50] NeedRubyhelp: has joined #ruby
[14:08:59] jhass: NeedRubyhelp: hi, do you need help with Ruby?
[14:09:47] Gnomethrower: jhass: what tipped you off? :P
[14:09:58] NeedRubyhelp: Yeah I have a code here that I am trying to execute however, I can't seem to get it to do what I'm expecting it to do
[14:10:00] finisherr: has joined #ruby
[14:10:10] NeedRubyhelp: haha I couldn't think of another name
[14:10:32] shevy: NeedRubyhelp can you put up the code into a pastie and say where it fails
[14:10:54] havenwood: ?gist NeedRubyhelp
[14:10:54] ruboto: NeedRubyhelp, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[14:11:15] fgo: has joined #ruby
[14:11:18] hackeron_: has joined #ruby
[14:11:31] monsieur2: has joined #ruby
[14:11:39] NeedRubyhelp: https://gist.github.com/anonymous/4c1a58cc2d80f7713d4b
[14:12:02] NeedRubyhelp: I've never used ruby but from the research I've done, I have install sinatra
[14:12:08] jhass: some syntax highlighting would've been great ;P
[14:12:25] havenwood: NeedRubyhelp: Edit the gist and save with a .rb
[14:12:26] NeedRubyhelp: oh sorry ahhaha
[14:12:28] nanoz: has joined #ruby
[14:12:50] teleporting_kat: has joined #ruby
[14:13:12] jhass: NeedRubyhelp: so, what's the issue?
[14:13:18] NeedRubyhelp: sorry here you go
[14:13:19] NeedRubyhelp: https://gist.github.com/anonymous/19e97cd4209dd1182804
[14:13:52] NeedRubyhelp: the issue I think i am having is that when i run it in terminal with ruby it just displays "success" so I think it's worked but nothing happened
[14:14:10] NeedRubyhelp: I don't know if it's produced a file or what
[14:14:59] NeedRubyhelp: I tried reading the code. But with my limited knowledge it prints "success" so i dont know what running it is meant to do
[14:15:19] lele: has joined #ruby
[14:15:38] jhass: well, there's a lot of code called that's not shipped with Ruby but apparently inside your local project
[14:16:02] jhass: so you didn't write all that stuff?
[14:16:10] beef-wellington: has joined #ruby
[14:16:14] jhass: it's rather unidiomatic code :/
[14:16:39] NeedRubyhelp: No I didn't write this code so unfortunately thats why im not exactly sure what the outcome was meant to be
[14:16:40] exadeci: has joined #ruby
[14:16:46] havenwood: NeedRubyhelp: Where did the headlessCamelCase code come from?
[14:16:47] jhass: what's your goal in running this code?
[14:16:50] einarj: has joined #ruby
[14:17:04] NeedRubyhelp: If it help, the code was from here
[14:17:05] NeedRubyhelp: https://github.com/Nate711/propscript
[14:17:33] NeedRubyhelp: well I was hoping it would produce a solidwork file or something to import to solidworks
[14:18:20] jhass: I think it generates the files such as https://github.com/Nate711/propscript/blob/master/TMotor1861.txt
[14:18:32] jhass: https://github.com/Nate711/propscript/blob/master/TMotor155.txt
[14:18:34] jhass: and so on
[14:18:39] jhass: basically all the .txt's
[14:18:57] dorei: has joined #ruby
[14:19:09] havenwood: NeedRubyhelp: Try the fresh repo and note the changes in `TMotor155.txt` and `TMotor1861.txt` after running the script.
[14:19:41] zxvcd: has joined #ruby
[14:19:56] NeedRubyhelp: @jhass so basically it's just producing the .txt files?
[14:20:10] NeedRubyhelp: @havenwood, what's a fresh repo sorry :)
[14:20:25] havenwood: NeedRubyhelp: git clone https://github.com/Nate711/propscript.git
[14:20:35] m3ow1504_x: has joined #ruby
[14:21:58] NeedRubyhelp: okay I got fresh repo
[14:22:20] havenwood: NeedRubyhelp: And check that it's unmodified: git status
[14:22:50] havenwood: NeedRubyhelp: Run script and check the changes: git diff
[14:22:57] mary5030: has joined #ruby
[14:23:27] NeedRubyhelp: the difference in the .txt files?
[14:23:58] havenwood: NeedRubyhelp: If there are any. I'm seeing some float rounding differences only it looks like. (Without having changed any config files in a fresh VM.)
[14:24:18] pontiki: or contact the author
[14:25:02] NeedRubyhelp: I've tried contacting the author but not much luck in that department
[14:25:14] NeedRubyhelp: doesn't look like there is any difference
[14:25:55] shevy: his ruby code is weird
[14:26:18] shevy: @keyRadii.each do |radius|
[14:26:20] pontiki: looks like just a quick hack to get what he wanted
[14:26:33] NeedRubyhelp: I thought so as well. I mean even though I don't know ruby, after a lot of googling, couldn't find many things that were similar
[14:26:34] havenwood: shevy: headlessCamels are frightening, no doubt
[14:26:39] shevy: looks very C++-ish
[14:27:32] NeedRubyhelp: I've been at this for about a week to see what it was meant to do and thought I would see if there was a ruby channel I could ask
[14:28:42] pontiki: it would seem to have an extremely narrow use
[14:29:03] Polysics: has joined #ruby
[14:29:04] pontiki: not sure how many people need to build propeller cross sections for 3D modeling
[14:29:16] NeedRubyhelp: I was hoping it would generate some sort of coordinate system
[14:29:25] NeedRubyhelp: but doesn't seem to do anything by the looks of it
[14:29:57] NeedRubyhelp: or some sort of macro file for solidworks
[14:29:57] pontiki: i would say it doesn't do anything that isn't already in the repo
[14:30:33] shevy: I did not need a 3D propeller yet :)
[14:30:35] daynaskully: has joined #ruby
[14:30:46] NeedRubyhelp: what do you mean pontiki?
[14:30:57] shevy: although I did want to generate every 3D object possible via scripting since I can't model for .... in blender
[14:30:57] NeedRubyhelp: haha you never know when you might shevy
[14:31:02] pontiki: he saved the output from his program in the repo
[14:31:27] NeedRubyhelp: what is a repo?
[14:31:33] pontiki: that thing on github
[14:31:36] pontiki: a repository
[14:31:50] NeedRubyhelp: basically the files?
[14:32:08] pontiki: with a history mechanism
[14:32:19] NeedRubyhelp: oh fair enough
[14:32:38] NeedRubyhelp: I saw the read me and it said to just run the script on ruby so i thought okay easy enough
[14:32:46] NeedRubyhelp: and well a week later here I am with nothing to show haha
[14:32:47] christiandsg: has joined #ruby
[14:33:25] pontiki: ever read "Alice in Wonderland" ?
[14:34:19] pontiki: this is your version of "Eat Me" only it didn't provide anywhere near as interesting an adventure
[14:34:20] rbennacer: has joined #ruby
[14:34:25] shevy: you could always learn ruby and take over that project to improve on it
[14:34:52] shevy: and then you could generate the perfect propellor
[14:34:55] NeedRubyhelp: haha that is essentially it
[14:35:33] Gnomethrower: has joined #ruby
[14:35:45] NeedRubyhelp: haha as much I would really love to do that to avoid this again, this is a time sensitive thing I'm working on which wouldn't allow me to learn ruby and fix the code before this needs to be done ahaha
[14:35:52] stardiviner: has joined #ruby
[14:36:16] pontiki: hrmmm... you need better time-boxing. you spent a week on it?
[14:36:28] Gnomethrower: has joined #ruby
[14:37:18] NeedRubyhelp: cause its being used for an assignment at university
[14:37:26] NeedRubyhelp: so naturally it's been on off
[14:37:46] pontiki: doing stuff like this for a living is no different
[14:38:06] pontiki: but being in uni, this is where you get to learn stuff like this.
[14:38:14] leafybasil: has joined #ruby
[14:38:30] pontiki: if you pick up something, don't understand it, can't figure out why, and you have a limited amount of time to get something done, drop it
[14:38:39] NeedRubyhelp: yeah but the degree isn't IT so I have no clue about ruby haha
[14:38:47] pontiki: even more reason to drop it
[14:38:55] NeedRubyhelp: trust me nothing sounds more pleasing to drop it
[14:39:04] pontiki: but you can't for some reason??
[14:39:07] NeedRubyhelp: but this isn't related to the degree and I have 8 weeks left
[14:39:22] NeedRubyhelp: not gonna drop my entire degree cause of a ruby script haha
[14:39:26] pontiki: i'm talking about dropping this particular bit of software
[14:39:31] NeedRubyhelp: oh right haha
[14:39:41] rbennacer: has joined #ruby
[14:40:07] NeedRubyhelp: i might have to
[14:40:57] timonv: has joined #ruby
[14:41:08] NeedRubyhelp: either way everyone, I would like to say thank you very much for the insight :)
[14:41:34] rbennacer: has joined #ruby
[14:43:48] rickmasta: has joined #ruby
[14:44:44] lannonbr: has joined #ruby
[14:44:52] bmalum: has joined #ruby
[14:45:04] monsieurp: has joined #ruby
[14:47:14] catoblepa: has joined #ruby
[14:47:37] bruno-: has joined #ruby
[14:48:33] lannonbr: has joined #ruby
[14:48:35] ruby-lang442: has joined #ruby
[14:51:48] Thai_: has joined #ruby
[14:53:07] tkuchiki: has joined #ruby
[14:53:31] tkuchiki: has joined #ruby
[15:02:40] zenguy_pc: has joined #ruby
[15:03:37] ne1l: has joined #ruby
[15:05:57] blue_deref: has joined #ruby
[15:06:34] Asher: has joined #ruby
[15:06:41] monsieurp: has joined #ruby
[15:10:32] iamninja: has joined #ruby
[15:10:55] ne1l: has left #ruby: ("suerte es que les digo!")
[15:13:36] m3ow1504_x: has joined #ruby
[15:16:48] SenpaiSilver: has joined #ruby
[15:17:42] einarj: has joined #ruby
[15:18:19] usrnix: has joined #ruby
[15:18:50] c_nick: has joined #ruby
[15:20:16] c_nick: I tried opts.on("--test-names x y", x y, "Test Names") do |test_names| {} this works for --test-names name1,name2 but not for --test-names name1 name2 can you tell me how i can get it to work for space separated values too
[15:21:39] [k-_: has joined #ruby
[15:24:46] RaeCar: has joined #ruby
[15:26:46] Asher: has joined #ruby
[15:28:44] RaeCarruth: I hate niggers
[15:29:06] jhass: !ban RaeCarruth !P troll
[15:29:06] ChanServ: +b RaeCarruth!*@*
[15:29:06] ChanServ: ChanServ kicked RaeCarruth: troll
[15:30:25] analsexisgood: has joined #ruby
[15:30:25] ChanServ: +b *!*@172.56.39.43
[15:30:25] ChanServ: ChanServ kicked analsexisgood: troll
[15:31:56] iloverubynoob: has joined #ruby
[15:32:34] m3ow1504_x: has joined #ruby
[15:33:47] m3ow1504_x: has joined #ruby
[15:33:55] AncientAmateur: has joined #ruby
[15:35:31] nofxx: has joined #ruby
[15:35:31] nofxx: has joined #ruby
[15:38:42] dailite: has joined #ruby
[15:40:15] dh64: has joined #ruby
[15:40:30] jtdoncas: has joined #ruby
[15:40:42] rbennacer: has joined #ruby
[15:42:08] IrishGringo: has joined #ruby
[15:42:57] m3ow1504_x: has joined #ruby
[15:46:05] sarkyniin: has joined #ruby
[15:46:10] hyy1: has joined #ruby
[15:46:19] hyy1: what's the syntax for do ... while in Ruby?
[15:46:48] jhass: hyy1: loop do; # body; break if condition; end
[15:47:07] jhass: hyy1: but show your problem, usually there's a better way
[15:47:09] etqqkoiflwhb: has joined #ruby
[15:47:30] etqqkoiflwhb: has joined #ruby
[15:47:31] hyy1: input = nil
[15:47:35] christiandsg: has joined #ruby
[15:47:35] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[15:49:33] hyy1: https://gist.github.com/anonymous/a9781f11733704897e1e
[15:50:21] jraisanen: has left #ruby: ()
[15:50:27] Mon_Ouie: Just initialize input as an empty string and you can use a regular while loop
[15:50:28] hyy1: jhass: basically I want to loop until the user enters something as input
[15:50:44] shevy: hyy1 yeah initialize it outside the loop
[15:51:07] shevy: your loop looks weird
[15:51:13] dgutierrez1287: has joined #ruby
[15:51:16] shevy: where did you get that do; while ?
[15:51:27] phutchins1: has joined #ruby
[15:51:51] hyy1: shevy: C/Java lul
[15:52:07] shevy: hyy1 a call to gets will block btw, it will wait for user input right there
[15:52:13] clarkenciel: has joined #ruby
[15:52:15] jhass: hyy1: http://paste.mrzyx.de/pb7lzdffp recursive method works too (and is what I usually end up with)
[15:52:20] catoblepa: has joined #ruby
[15:52:20] catoblepa: has joined #ruby
[15:52:57] Gnomethrower: has joined #ruby
[15:54:25] rbennacer: has joined #ruby
[15:55:23] madhatter: has joined #ruby
[15:56:35] RobertBirnie: has joined #ruby
[15:56:47] banister: has joined #ruby
[15:57:12] hyy1: can you show me unless? break unless input == ""
[15:57:17] hyy1: what does that do?
[15:58:17] hyy1: does it do this? break if input != ""
[15:59:17] pontiki: hyy1: exactly that
[15:59:49] tjohnson: has joined #ruby
[15:59:57] pontiki: more generally: if (expr) is the same as unless ! (expr)
[16:01:18] linuxboytoo: has joined #ruby
[16:01:20] lucyinthesky: has joined #ruby
[16:01:27] BTRE: has joined #ruby
[16:02:18] Maletor: has joined #ruby
[16:02:38] rfmind: has joined #ruby
[16:02:51] linuxboytoo: has joined #ruby
[16:03:09] RobertBirnie: has joined #ruby
[16:03:38] rbennacer: has joined #ruby
[16:03:46] cornerma1: has joined #ruby
[16:04:57] saddad: has joined #ruby
[16:05:54] m3ow1504_x: has joined #ruby
[16:07:59] marcoecc: has joined #ruby
[16:08:41] codecop: has joined #ruby
[16:10:38] Cache_Money: has joined #ruby
[16:11:22] Ludo-: has left #ruby: ()
[16:13:33] yeticry: has joined #ruby
[16:14:40] bruno-: has joined #ruby
[16:14:46] m8: has joined #ruby
[16:14:49] kr3ssh: has joined #ruby
[16:16:19] banjara: has joined #ruby
[16:17:42] nitenq: has joined #ruby
[16:18:33] einarj: has joined #ruby
[16:18:37] mgorbach: has joined #ruby
[16:19:54] joneshf-laptop: has joined #ruby
[16:20:14] rbennacer: has joined #ruby
[16:20:59] Hanmac: has joined #ruby
[16:29:12] RobertBirnie: has joined #ruby
[16:29:35] ollie314: has joined #ruby
[16:29:59] workmad3: has joined #ruby
[16:32:12] chinmay_dd: has joined #ruby
[16:33:51] EminenceHC: has joined #ruby
[16:36:34] rbennacer: has joined #ruby
[16:38:24] dgutierrez1287: has joined #ruby
[16:38:24] above: has joined #ruby
[16:43:14] codecodecode123: has joined #ruby
[16:44:06] RobertBirnie: has joined #ruby
[16:44:21] Novice201y: has joined #ruby
[16:45:21] Novice201y: Hello. Do you recommend any open source online integrated development enviroment for Ruby?
[16:46:25] apeiros: ACTION actually recommends to not use an IDE for ruby
[16:46:40] apeiros: a good text editor > IDE IMO.
[16:48:00] ndrei: has joined #ruby
[16:48:01] codecodecode123: Hi, I am trying to make a card game, but I have run into a problem. I want the :ai_cards to only be attr_readable to instance methods of AI, and not readable to the player. How do I achieve this?
[16:48:46] christiandsg: has joined #ruby
[16:49:26] shevy: haven't you been at that for the last 5 years codecodecode123
[16:49:45] shevy: a card game
[16:50:01] codecodecode123: what are you talking about?
[16:50:01] shevy: you can make a class instance method call ai_cards
[16:50:23] shevy: there is some other guy then who is doing a card game
[16:50:42] yardenbar: has joined #ruby
[16:51:34] shevy: attr_readable does not exist, perhaps you meant attr_reader
[16:52:02] codecodecode123: yes, I transformed it to a verb
[16:52:20] codecodecode123: of course I know it's attr_reader
[16:52:29] [k-_: of course, of course
[16:52:49] [k-_: dont make a method
[16:52:56] [k-_: just use the instance variable
[16:53:02] shevy: you should publish the code you have so far
[16:53:03] [k-_: and not use attr_reader or that
[16:54:21] codecodecode123: here is existing code: https://gist.github.com/nolcay/a47f7469a890a61770d0
[16:56:29] shevy: hmm no :ai_cards so far? in which class would it reside, in class AI?
[16:56:33] chinmay_dd: has joined #ruby
[16:56:50] codecodecode123: i said ai_cards for clarity
[16:58:40] [k-_: look shevy, it's partially functional
[16:59:09] [k-_: 1. please leave lines where appropriate
[16:59:17] gam3: has joined #ruby
[16:59:44] rbennacer: has joined #ruby
[17:00:10] [k-_: thats the only one o_O
[17:01:01] codecodecode123: can I please get my answer?
[17:01:02] christiandsg: has joined #ruby
[17:01:41] [k-_: you can't, unless you do some reflection of some sort
[17:02:00] [k-_: you have to get the caller and check the class
[17:02:04] codecodecode123: I want the player's cards to not be attr_reader-able by the instance/class methods of AI
[17:02:07] fullofca_: has joined #ruby
[17:02:21] [k-_: oh, in that case, protected
[17:02:34] [k-_: http://tenderlovemaking.com/2012/09/07/protected-methods-and-ruby-2-0.html
[17:02:51] tno: has joined #ruby
[17:03:10] [k-_: but you don't have to use attr_reader, just use @instance_var and the class will be able to use it
[17:03:29] codecodecode123: but private attr_writer
[17:04:02] codecodecode123: if i just do @instance_var it will be writable from outside
[17:04:23] Kallis: has joined #ruby
[17:04:51] [k-_: >> class Foo; def initialize; @foo = "bar" end; def hello; @foo end end; a = Foo.new; p a.hello; a.foo = true rescue "Error"
[17:04:53] ruboto: [k-_ # => "bar" ...check link for more (https://eval.in/420990)
[17:05:18] [k-_: look, you cant access foo
[17:05:27] hydrozen: has joined #ruby
[17:05:39] apeiros: @foo. foo and @foo are two different things.
[17:06:11] Cust0sLim3n: has joined #ruby
[17:06:32] [k-_: you also cant access Foo#foo or Foo#foo=
[17:06:59] [k-_: those two methods are made available by attr_reader and attr_writer (or attr_accessor) respectively
[17:07:00] apeiros: I'd also distinguish between "can't access" and "don't exist"
[17:07:04] codecodecode123: i want Foo#foo accessible
[17:07:23] [k-_: can you make up your mind >.>
[17:07:31] apeiros: Foo#foo and #foo= don't exist in the above example. of course something which does not exist is inaccessible
[17:07:57] [k-_: ACTION nods
[17:09:07] codecodecode123: terms: Foo#foo exists, accessible by Bar (another class), but inaccessible by any other class
[17:09:40] [k-_: this would be easy if Bar < Foo
[17:09:45] [k-_: but difficult otherwise
[17:10:11] RobertBirnie: has joined #ruby
[17:10:36] codecodecode123: doesn't Bar < Foo add all Foo methods to Bar? If so, I do not want that to happen
[17:10:41] IrishGringo: has joined #ruby
[17:11:27] apeiros: codecodecode123: is there an actual good reason you want the accessibility that way?
[17:11:55] [k-_: what you are attempting to do is silly unless you have very good reasons
[17:12:10] codecodecode123: I want this card game script to be integratable into other scripts
[17:12:12] apeiros: you know, all those visibility declarations are merely "a hint". they can be bypassed in ruby easily???
[17:12:32] sarkyniin: has joined #ruby
[17:12:45] apeiros: so if the idea is to "prohibit a plugin from *hacking*", or similar, then you'll fail with this approach
[17:13:10] [k-_: especially with instance_eval and all that
[17:13:23] michael_mbp: has joined #ruby
[17:13:44] codecodecode123: no, I want to resist a "destroying the script" hack, a "cheating in game" hack
[17:13:45] rbennacer: has joined #ruby
[17:13:56] apeiros: won't work
[17:13:58] [k-_: if you want it to be integratable, not making things accessible and coupling would make it insanely difficult
[17:14:02] codecodecode123: *do not want to resist a "destroying the script" hack
[17:14:22] apeiros: if you have foreign code running in your code's context, you can consider all parts accessible.
[17:14:26] siaW: has joined #ruby
[17:14:58] houhoulis: has joined #ruby
[17:14:58] apeiros: try and see whether there's an up-to-date and working sandbox gem
[17:15:16] apeiros: alternatively: run the stuff in separate processes and use IPC
[17:15:49] codecodecode123: whatever, nvm this question
[17:16:37] jeadre: has joined #ruby
[17:16:53] apeiros: that's a not-so unexpected outcome :)
[17:17:10] [k-_: yes, give up!
[17:17:29] fantazo: has joined #ruby
[17:18:26] dr3w: has joined #ruby
[17:19:18] einarj: has joined #ruby
[17:20:13] Motoservo: has joined #ruby
[17:20:37] symm-: has joined #ruby
[17:21:27] nofxx: codecodecode123, http://www.artmoney.ru/
[17:22:23] workmad3: has joined #ruby
[17:22:37] [k-_: yes, everything can be hacked!
[17:22:50] Rubie: has joined #ruby
[17:23:10] blackmesa: has joined #ruby
[17:24:28] mary5030: has joined #ruby
[17:24:33] j_mcnally: has joined #ruby
[17:25:47] khebbie: has joined #ruby
[17:27:42] mgorbach: has joined #ruby
[17:29:49] blueOxigen: has joined #ruby
[17:29:54] finisherr: has joined #ruby
[17:29:57] nug: has joined #ruby
[17:33:57] christiandsg: has joined #ruby
[17:33:59] rickmasta: has joined #ruby
[17:34:03] rbennacer: has joined #ruby
[17:35:57] AlexRussia_: has joined #ruby
[17:37:07] above: has joined #ruby
[17:38:11] yeticry: has joined #ruby
[17:43:01] xet7_: has joined #ruby
[17:44:17] rbennacer: has joined #ruby
[17:47:04] alphaatom: has joined #ruby
[17:48:03] banjara: has joined #ruby
[17:48:55] iamninja: has joined #ruby
[17:49:12] DLSteve: has joined #ruby
[17:51:18] phutchins1: has joined #ruby
[17:52:45] blackmesa: has joined #ruby
[17:58:05] EminenceHC: has joined #ruby
[17:58:36] Coldblackice: has joined #ruby
[17:59:32] fedexo: has joined #ruby
[18:01:23] djbkd: has joined #ruby
[18:03:12] catos: has joined #ruby
[18:03:13] catos: has joined #ruby
[18:04:47] toretore: has joined #ruby
[18:05:25] c_nick: I want to capture everything after --names cmd line parameter on my cmd link .. i tried with opts.on as an Array but it works for comma separated values and not space
[18:09:57] Porcpdio: has joined #ruby
[18:10:03] chipotle: has joined #ruby
[18:10:12] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:12] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:12] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:12] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:12] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:12] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:12] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:13] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:13] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:14] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:14] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:15] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:19] Psi-Jack: Oh, lovely.
[18:10:25] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
[18:10:28] j_mcnally: has joined #ruby
[18:10:29] hololeap: has joined #ruby
[18:10:40] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:40] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:40] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:40] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:40] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:41] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:41] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:42] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:42] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:43] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:43] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () (
[18:10:44] Porcpdio: ) () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:44] Porcpdio: () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () ()
[18:10:48] jhass: !mute Porcpdio
[18:10:48] ruboto: +q Porcpdio!*@*
[18:10:48] Mon_Ouie: !ban Porcpdio !T 1d
[18:10:49] ruboto: -o ruboto
[18:10:51] ChanServ: +b Porcpdio!*@*
[18:10:51] ChanServ: ChanServ kicked Porcpdio: is banned from this channel
[18:11:16] Aria: Thanks, jhass. Faster than I!
[18:11:17] Psi-Jack: Most expediant ops. :)
[18:11:23] jhass: Psi-Jack: thanks
[18:11:23] inteq: has joined #ruby
[18:11:26] ftj: has joined #ruby
[18:11:33] Psi-Jack: No sir, thank you! :)
[18:13:20] FernandoBasso: has joined #ruby
[18:13:24] Frem: has joined #ruby
[18:13:27] j_mcnally: has joined #ruby
[18:13:51] apeiros: lovely indeed
[18:15:17] bruno-: has joined #ruby
[18:15:53] jhass: they must like lisp
[18:16:38] c_nick: can someone help me out with the command line query? i hope i was articulate enough. I understad that opts.on actually alters argv array and removes whatever is registered with it but for a space deliminated list of names not sure how would be the best way to handle the same
[18:17:18] apeiros: weapons, from a more civilized age
[18:17:28] yqt: has joined #ruby
[18:17:55] willharrison: has joined #ruby
[18:18:01] nofxx: going op and kick is power, but !mute is authoritah
[18:18:28] apeiros: can't wait for crowd based mute
[18:18:50] apeiros: less work for ops, more happiness for users, more frustration for assholes like porcpdio
[18:19:33] nofxx: apeiros, do we get first login/hours logged for users? that might be some weight in vote
[18:19:45] ndrei: has joined #ruby
[18:19:52] hololeap: where can i find any official documentation on the ? before a character?
[18:19:59] ruboto: hololeap # => "e" (https://eval.in/421003)
[18:19:59] apeiros: nofxx: there are requirements for people to use it, yes
[18:20:04] apeiros: sockpuppets won't do
[18:20:08] einarj: has joined #ruby
[18:20:19] apeiros: s/are/will be/
[18:20:47] apeiros: hololeap: no idea, might be buried in `man ruby`
[18:21:20] Mon_Ouie: It's not in the syntax RDOC documents it seems
[18:21:21] hololeap: i guess it doesn't have to be official, just up to date and complete
[18:21:28] Cust0sLim3n: has joined #ruby
[18:21:31] apeiros: ?quickref hololeap
[18:21:31] ruboto: hololeap, http://www.zenspider.com/Languages/Ruby/QuickRef.html
[18:21:44] apeiros: ^ check that one. it covers (most likely) all of ruby's syntax
[18:21:47] Musashi007: has joined #ruby
[18:22:17] Mon_Ouie: Those are just??1-character string literals now though
[18:22:31] apeiros: not just 1-char
[18:22:36] ruboto: apeiros # => /tmp/execpad-dfcc3f788159/source-dfcc3f788159:2: syntax error, unexpected $undefined ...check link for more (https://eval.in/421004)
[18:22:43] ruboto: apeiros # => "\u0003" (https://eval.in/421005)
[18:22:52] bestbrents: has joined #ruby
[18:22:54] apeiros: should not forget the main character in that literal :D
[18:23:23] rbennacer: has joined #ruby
[18:23:47] Mon_Ouie: I mean the string represented by ?\C-c is only 1-character long (as would be other types of escape sequences)
[18:24:42] vickleton: has joined #ruby
[18:25:33] rehat: has joined #ruby
[18:25:38] bestbrents: what is #ruby's favorite text editor/IDE? I just got handed a ruby project and I'm going to be working in a linux environment for the first time. I'm used to visual studio if that matters.
[18:25:39] Soda: has joined #ruby
[18:26:01] bestbrents: i'm going to be doing development in ubuntu probably
[18:26:14] apeiros: ACTION prefers sublime text 3
[18:26:20] apeiros: emacs and vim are often used too
[18:26:30] apeiros: wrt IDEs, rubymine is probably the most prominent
[18:26:32] apeiros: @ bestbrents
[18:27:04] jpfuentes2: has joined #ruby
[18:27:09] rehat: does anyone know if there is a gem that does this kind of terminal output? http://imgur.com/XqCxi7G
[18:27:19] bestbrents: i'm test driving rubymine but I'm not sure if its the best fit
[18:27:32] Psi-Jack: Hmmm. Lately I'm using Sublime Text, coming from using vim. :)
[18:27:44] bestbrents: i was considering vim but its going to be a pain to pick up ruby and vim at the same time
[18:27:49] apeiros: rehat: core's Kernel#sprintf
[18:27:54] apeiros: err, Kernel#printf
[18:28:00] apeiros: all that you need for that
[18:28:17] apeiros: and some ansi escape sequence to reposition the cursor :)
[18:28:40] rehat: oh well mainly the downloading stats
[18:29:34] bestbrents: i'll give sublime text a shot after i mess with rubymine a bit more. Thanks
[18:30:19] apeiros: rehat: print "\e[3A" will move the cursor up by 3 lines
[18:31:00] chazubell: has joined #ruby
[18:31:45] rehat: apeiros: I meant the download output information. Like the current speed, data recieved ..
[18:32:28] apeiros: rehat: to print those values you have to have them first???
[18:32:44] doosy: has joined #ruby
[18:32:46] apeiros: I thought you were asking for formatting output like that and updating the output
[18:33:31] rehat: so I made a script that downloads a video file but not sure how to get that data from open-uri
[18:34:18] veduardo: has joined #ruby
[18:34:29] apeiros: rehat: not sure if open-uri can be used in a streaming way
[18:34:45] apeiros: the way you'd do it is by reading the content-size header and compare how much you've read to that value
[18:35:12] choke: has joined #ruby
[18:35:36] apeiros: and all the rest is "just maths"???
[18:35:47] rehat: ok I'll look into it more thanks
[18:36:21] chazubell: has joined #ruby
[18:37:11] pranny: has joined #ruby
[18:40:15] c_nick: guys option params ?
[18:40:49] barhum2013: has joined #ruby
[18:41:01] apeiros: guys are option params?
[18:41:47] last_staff: has joined #ruby
[18:42:46] apeiros: I think you accidentally a word
[18:42:53] cabreraM516: has joined #ruby
[18:43:19] shevy: you think forgot word he has
[18:43:25] shevy: this is #yoda!!!
[18:43:48] jhass: this #yoda is, please
[18:44:56] c_nick: lol .. it was more of a question :) -> my cmd line is --names girl1 girl2 girl3 --age 23 24 25 i want this info to be captured in two arrays -> names and age
[18:44:56] towski_: has joined #ruby
[18:45:00] choke: has joined #ruby
[18:45:28] jhass: you know, option parser is written in ruby, you could've just read its code by now
[18:46:14] apeiros: c_nick: that's not a common way to process command line args
[18:46:19] bruno-: has joined #ruby
[18:46:23] yardenbar: has joined #ruby
[18:46:44] apeiros: there's plenty of common line argument parsers for ruby, though. maybe one of them supports this pattern
[18:46:47] ruboto: I don't know anything about toolbox
[18:46:58] last_staff: has joined #ruby
[18:47:01] Mon_Ouie: And probably partly because of how that breaks for arguments that start with '-'
[18:47:19] apeiros: !fact add toolbox https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
[18:47:19] ruboto: apeiros, I will remember that toolbox is https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
[18:47:23] c_nick: hmm .. yeah i could read the whole source code of it didnt click me. i tried with opts.on("--names NAMES", Array, "Names") but it just picks comma separated vaues
[18:47:25] apeiros: ?toolbox c_nick
[18:47:25] ruboto: c_nick, https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
[18:47:33] catos: has joined #ruby
[18:47:33] catos: has joined #ruby
[18:47:50] rbennacer: has joined #ruby
[18:48:07] apeiros: c_nick: alternatively, manually process the ARGV array which contains all arguments passed to your script
[18:48:23] apeiros: and now that we provided you some support:
[18:48:26] apeiros: ?guys c_nick
[18:48:27] ruboto: c_nick, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:49:32] shevy: c_nick another possibility is that optionparser sucks
[18:49:50] System42: has joined #ruby
[18:50:07] greenbigfrog: I've probably found a jruby bug: https://discuss.dev.twitch.tv/t/connection-reset-by-peer-always-the-same-but-just-for-me/ Any ideas on how to fix it?
[18:50:49] System42: Unit testing question: How should I test that a function puts/prints out specific text? Should I be redirecting stdout or is there a more elegant way?
[18:50:51] toretore: optparse can parse into arrays just fine
[18:51:01] barhum2013: has joined #ruby
[18:51:19] toretore: why is it printing to stdout in the first place?
[18:51:23] toretore: System42: ^
[18:51:52] c_nick: apeiros: ARGV will have names and ages and i can go is this an integer or something but there should be a better way to do it
[18:51:52] toretore: ususally when you find yourself testing side effects it's a smell
[18:51:57] apeiros: System42: minitest has assert_output (or similarly named)
[18:52:14] swgillespie: has joined #ruby
[18:52:20] apeiros: c_nick: yes, argv parsing would mean you'd have to do it all by hand yourself.
[18:53:09] apeiros: toretore: yeah, they complain about it wanting the list coma separated
[18:53:30] System42: Yeah, I feel like it's a code smell to be testing printed output. I suppose the better was to do that would be to test that a function returns a given string and not that it prints it out?
[18:53:33] apeiros: toretore: they want like `--foo a b c` all arguments are attributed to --foo
[18:53:40] shevy: c_nick it should be trivial, the order is preserved in ARGV
[18:53:50] apeiros: toretore: oh, btw., semacode-ruby19 still considered stable?
[18:54:22] miguelff: has joined #ruby
[18:54:36] toretore: c_nick: opts.on( '-s', '--sub URI[,URI]', Array, "List of ZMQ URIs to connect SUB to" ){|l| options[:sub_uris] = l }
[18:54:41] twistedpixels: has joined #ruby
[18:54:57] toretore: this works with --arg val1,val2 afaicr
[18:55:21] apeiros: ACTION wonders whether he's on toretore's ignore
[18:55:33] toretore: apeiros: yes, afaiac it's stable
[18:55:40] toretore: apeiros: why? :P
[18:55:44] apeiros: yay, not on ignore! :D
[18:55:46] mary5030: has joined #ruby
[18:56:10] apeiros: we're using it in production. and one of my co-devs meant he'd heard something about it being broken/unstable.
[18:56:51] alphaatom: has joined #ruby
[18:57:13] pranny: has joined #ruby
[18:57:50] workmad3: has joined #ruby
[18:58:26] shevy: fancy emote
[18:58:58] toretore: apeiros: there's this https://github.com/toretore/semacode/issues/2
[18:59:21] toretore: tbh, i have no idea about the functionality of the library, i only made it work with 1.9+
[18:59:36] IrishGringo: has joined #ruby
[19:00:23] c_nick: toretore: doesn't work
[19:00:56] apeiros: toretore: uh, interesting
[19:01:08] toretore: apeiros: there's also https://github.com/srijan/ruby-dmtx which someone linked to from that issue
[19:01:22] toretore: c_nick: bummer
[19:01:28] einarj: has joined #ruby
[19:01:42] apeiros: yupp, seen
[19:02:01] c_nick: will have to read up more else have to process argv last resort
[19:02:06] toretore: c_nick: did you properly initialize the continuum transfunctioner?
[19:02:38] c_nick: toretore: it was abot opt.ons :)
[19:02:38] apeiros: toretore: as said, c_nick wants space as separator, not comma
[19:02:48] Rubie: has joined #ruby
[19:03:00] shevy: c_nick just handle ARGV rather than searching for hours :)
[19:03:22] zenguy_pc: has joined #ruby
[19:03:41] c_nick: because i want the user to have the flexibility to input comma or space separated values .. they are more readable that way
[19:03:45] c_nick: :D dont kill me
[19:04:00] toretore: *kills c_nick*
[19:04:28] toretore: user flexibility is the killer of stability
[19:04:46] toretore: have one, well defined interface
[19:05:17] c_nick: shevy: yeah probably that way it can get done faster.. i know a project where the invocation works like that i will read that code when i reach work tomorrow.
[19:05:38] barhum2013: has joined #ruby
[19:05:46] c_nick: has left #ruby: ()
[19:06:55] Synthbread: has joined #ruby
[19:09:43] Narzew: has joined #ruby
[19:11:03] lkba: has joined #ruby
[19:12:33] jgt: has joined #ruby
[19:13:18] tmtwd: has joined #ruby
[19:16:29] SCHAAP137: has joined #ruby
[19:16:48] JoL1hAHN: has joined #ruby
[19:17:45] allcentury: has joined #ruby
[19:19:12] mary5030: has joined #ruby
[19:19:20] matp: has joined #ruby
[19:22:02] khebbie: has joined #ruby
[19:22:47] khebbie: has joined #ruby
[19:22:50] einarj_: has joined #ruby
[19:23:02] noethics: has joined #ruby
[19:24:36] above: has joined #ruby
[19:25:02] allcentury: has joined #ruby
[19:25:53] rushed: has joined #ruby
[19:26:29] Narzew: has left #ruby: ("Leaving")
[19:26:35] Narzew: has joined #ruby
[19:26:46] JoshGlzBrk: has joined #ruby
[19:30:23] AlexAltea: has joined #ruby
[19:30:25] mary5030: has joined #ruby
[19:30:33] daynaskully: has joined #ruby
[19:31:23] arup_r: sorry.. wrong window
[19:33:08] christiandsg: has joined #ruby
[19:34:22] banister: has joined #ruby
[19:34:52] atmosx: anyone remembers a tool that let you create a reverse tunnel so that you could share your rack server with the internet? It created temporary tunnels IIRC.
[19:34:59] atmosx: then it came out as a gem too.
[19:35:08] Maletor: has joined #ruby
[19:35:30] jhass: yes, I remember. Now let me also remember the name :D
[19:36:03] marr: has joined #ruby
[19:37:06] centrx: has joined #ruby
[19:37:29] jhass: atmosx: https://ngrok.com/ ?
[19:37:40] sarkyniin: has joined #ruby
[19:38:11] atmosx: jhass: yes thanks, but I've found the error so I don't need to bother ppl at #css, I'll bookmark it though.
[19:40:01] platzhirsch: has joined #ruby
[19:40:33] platzhirsch: has joined #ruby
[19:41:51] sinkensa_: has joined #ruby
[19:41:54] dseitz: has joined #ruby
[19:44:39] last_staff: has joined #ruby
[19:46:50] einarj: has joined #ruby
[19:48:46] cochise: has joined #ruby
[19:49:24] ftj: has joined #ruby
[19:49:32] iamninja: has joined #ruby
[19:54:11] A124: has joined #ruby
[19:54:22] willharrison: has joined #ruby
[19:55:00] ruby-lang489: has joined #ruby
[19:56:39] djbkd: has joined #ruby
[19:57:25] EminenceHC: has joined #ruby
[19:57:39] einarj: has joined #ruby
[19:58:07] kr3ssh: has joined #ruby
[19:58:32] doosy: has joined #ruby
[19:59:42] rbennacer: has joined #ruby
[20:01:12] above: has joined #ruby
[20:02:00] bruno-: has joined #ruby
[20:05:47] platzhirsch: has joined #ruby
[20:06:57] willharrison: has joined #ruby
[20:07:07] pranny: has joined #ruby
[20:07:26] IrishGringo: has joined #ruby
[20:08:57] JulioPapel: has joined #ruby
[20:09:38] benlovell: has joined #ruby
[20:11:15] m3ow1504_x: has joined #ruby
[20:17:23] David27: has joined #ruby
[20:17:31] ishahnaz: has joined #ruby
[20:17:59] einarj_: has joined #ruby
[20:18:29] SCHAAP137: has joined #ruby
[20:18:46] SCHAAP137: has joined #ruby
[20:19:48] swistak35: has joined #ruby
[20:20:01] atmosx: shevy: how's life?
[20:20:34] gdd229: has joined #ruby
[20:21:14] saddad: has joined #ruby
[20:22:09] gdd229: has left #ruby: ()
[20:22:12] shevy: dunno... studying a lot. Also trying to dig through C but it's so boring compared to ruby
[20:23:47] atmosx: I can imagine
[20:23:55] atmosx: I'll start studying after 10th Set.
[20:24:19] atmosx: hopefully would be the last time in my life I'll go through all the chemistry shit. I'll have forgotten everything in about a year or two I guess.
[20:24:24] atmosx: ACTION can't wait
[20:25:25] shevy: I thought you were finished with the exams and only waiting for your degree
[20:26:21] zeroDivisible: has joined #ruby
[20:26:48] atmosx: shevy: I have the state exams
[20:27:15] atmosx: theoretically the most difficult exam, becuase it's like having 5 exams all together. But you have 300 questions on 5 subjects basically.
[20:27:39] atmosx: It's pharmacognosy, pharmacology, biopharmacy, social pharmacy and medicinal chemistry (that's the killer one).
[20:29:13] chinmay_dd: has joined #ruby
[20:29:32] atmosx: I get 5 profs, who ask me questions on the same topic, e.g. opiods... structures, derivatives, pharmacology, where can be found, whre they come from (papaverum somniferum etc.) effects, possible preparation (although I don't thin she'll ask me how to prepare heroin)... for sure you'll get ask diff between morphine and heroin, etc.
[20:29:47] atmosx: of course, no one is lucky enough to get opiods but anyway.
[20:29:52] atmosx: youg et the picure.
[20:29:59] choke: has joined #ruby
[20:32:00] ereslibre: has joined #ruby
[20:32:00] ereslibre: has joined #ruby
[20:32:09] opensource_ninja: has joined #ruby
[20:32:55] Antiarc: has joined #ruby
[20:33:33] atmosx: I'm off to bed, night all
[20:33:49] dgutierrez1287: has joined #ruby
[20:38:57] arup_r: bye shevy
[20:44:52] barhum2013: has joined #ruby
[20:45:52] blackmesa: has joined #ruby
[20:49:14] bruno-_: has joined #ruby
[20:50:49] Rodya_: has joined #ruby
[20:55:14] alphaatom: has joined #ruby
[20:58:26] Synthbread: has joined #ruby
[20:58:55] rbennacer: has joined #ruby
[20:59:39] dimasg: has joined #ruby
[21:01:06] ruurd: has joined #ruby
[21:02:10] opensource_ninja: has joined #ruby
[21:02:56] willharrison: has joined #ruby
[21:03:41] zenguy_pc: has joined #ruby
[21:04:14] System42: What is the best way to unit test a class attribute?
[21:04:43] arian0n: has joined #ruby
[21:04:45] banister: has joined #ruby
[21:06:02] yeticry: has joined #ruby
[21:07:59] jhass: System42: expect(Foo.bar).to eq something ? not sure what you're asking really
[21:08:42] snath: has joined #ruby
[21:08:56] snath: has left #ruby: ()
[21:09:13] System42: jhass: essentially that, yes. I'm from the Python world where there is no such thing as a private instance attribute, and if I want to keep it private, I can really unit test it. catch-22 really.
[21:09:37] jhass: you should unit test the behavior of your class
[21:09:47] jhass: not that is implemented in a certain way
[21:10:26] jhass: if the instance variable (assuming that's what you actually mean) is not exposed in any public API, your tests shouldn't care about it at all
[21:10:26] hmsimha__: has joined #ruby
[21:10:52] kr3ssh: has joined #ruby
[21:11:01] jhass: if its value affects the behavior of some method, trigger whatever changes it to that value and then that the behavior of that method is correct
[21:11:19] System42: Okay, that makes sense. I'm pretty new to unit testing.
[21:11:21] jhass: but I'm still much shooting into the dark here since you've been rather vague
[21:13:07] hyy1: has joined #ruby
[21:18:47] Maletor: has joined #ruby
[21:20:09] chinmay_dd: Hello all :) .Can I host a ruby program which is a TCPServer on a port using socat? I basically want to access the program using nc
[21:20:45] ndrei: has joined #ruby
[21:22:11] jhass: not sure how socat comes into play here
[21:22:45] chinmay_dd: I see. I wanted to pipe the STDIN and STDOUT
[21:23:41] dgutierrez1287: has joined #ruby
[21:23:41] ruboto: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[21:23:47] Rodya_: has joined #ruby
[21:24:30] jeadre: has joined #ruby
[21:25:08] einarj: has joined #ruby
[21:25:55] allcentury: has joined #ruby
[21:26:12] chinmay_dd: Hmm, ok. So I want to host a TCPServer on a port to which there will be multiple incoming connections from various other TCPSockets. There is a client-server communication between them. Rather than sending data via the sockets, i wanted to print it to STDIN and STDOUT.
[21:26:42] chinmay_dd: Sorry, take input from STDIN and print output to STDOUT
[21:27:01] jhass: just do that then?
[21:27:40] jhass: starting a TCPServer doesn't prevent you from using stdin or stdout
[21:27:58] chinmay_dd: I want to transfer the STDIN and STDOUT data via sockets
[21:28:09] iamninja: has joined #ruby
[21:28:30] chinmay_dd: so basically i want to use 'puts' instead of 'sock.send' :D
[21:28:34] jhass: if you got concurrency the tricky part is just having a message format that doesn't mess up or a global lock around writing a single message or a writer thread and a queue to it
[21:28:52] jhass: why? that seems rather arbitrary
[21:29:19] einarj_: has joined #ruby
[21:29:27] chinmay_dd: There is no specific reason to it.. I wanted to know if it is possible to do it.
[21:29:59] jhass: sure you can just override the method
[21:30:13] jhass: or define one inside your class which is reached before Kernel#puts
[21:30:41] jhass: not saying it's a good idea though
[21:31:05] chinmay_dd: Correct. Fiddling around with puts is not really a good idea i guess
[21:31:17] chinmay_dd: Thanks a lot jhass :)
[21:33:07] apeiros: can't you just reopen stdin/stdout with the socket?
[21:33:07] Mon_Ouie: You wouldn't need to override anything by the way. You could just have $stdout = some_socket and same with $stdin
[21:33:10] apeiros: should be possible
[21:33:13] einarj: has joined #ruby
[21:33:22] jhass: hf with multiple clients though
[21:33:33] apeiros: and yeah, if you don't need to deal with stuff which doesn't properly use $stdin/$stdout, you can just reassign as Mon_Ouie says
[21:34:06] yqt: has joined #ruby
[21:34:18] apeiros: what? one stdout should feed N sockets?
[21:34:47] chinmay_dd: apeiros: Yes. That is why i wanted to know if fork-exec socat will do the trick
[21:35:01] apeiros: no idea what socat even is
[21:35:02] chinmay_dd: But then there are multiple server spawns
[21:35:32] chinmay_dd: I guess the question was a little vague. Sorry for the trouble :)
[21:37:37] einarj_: has joined #ruby
[21:37:53] yardenbar: has joined #ruby
[21:38:36] baweaver: has joined #ruby
[21:39:30] dented42: has joined #ruby
[21:45:27] khebbie: has joined #ruby
[21:45:35] nitenq: has joined #ruby
[21:46:11] dimasg: has joined #ruby
[21:47:26] fullofcaffeine: has joined #ruby
[21:48:00] northfurr: has joined #ruby
[21:48:36] IrishGringo: has joined #ruby
[21:51:29] renderful: has joined #ruby
[21:51:58] rbennacer: has joined #ruby
[21:52:01] ftj: has joined #ruby
[21:55:20] rickmasta: has joined #ruby
[21:58:06] shazaum: has joined #ruby
[21:59:33] einarj: has joined #ruby
[21:59:49] shevy: socat... the sophomore cat
[22:03:46] mary5030: has joined #ruby
[22:05:17] kidoz: has joined #ruby
[22:05:26] northfurr: has joined #ruby
[22:05:42] VanWeyden: has joined #ruby
[22:06:36] armin: has joined #ruby
[22:06:42] otisZart: has joined #ruby
[22:06:44] rlreis: has joined #ruby
[22:07:12] northfurr: has joined #ruby
[22:07:15] bruno-: has joined #ruby
[22:09:50] [H]unt3r: has joined #ruby
[22:13:16] rlreis: has left #ruby: ()
[22:13:22] jtdoncas: has joined #ruby
[22:16:07] pragmatism: has joined #ruby
[22:19:31] jancel_: has joined #ruby
[22:26:08] doublemalt_: has joined #ruby
[22:28:40] Rodya_: has joined #ruby
[22:32:57] nahtnam: has joined #ruby
[22:32:58] Kallis: has joined #ruby
[22:36:47] devbug: has joined #ruby
[22:37:48] ex0ns: has joined #ruby
[22:38:58] ftj: has joined #ruby
[22:39:37] Axsuul: has joined #ruby
[22:40:03] voker57: has joined #ruby
[22:40:12] Musashi007: has joined #ruby
[22:46:10] Mojo_Nixon: has joined #ruby
[22:47:31] phutchins1: has joined #ruby
[22:48:33] [H]unt3r: has joined #ruby
[22:49:42] choke: has joined #ruby
[22:50:11] postmodern: has joined #ruby
[22:51:34] sgambino: has joined #ruby
[22:52:50] mary5030: has joined #ruby
[22:54:00] phutchins2: has joined #ruby
[22:55:48] cajone: has joined #ruby
[22:56:05] fullofcaffeine: has joined #ruby
[22:57:11] kent\n: has joined #ruby
[22:58:00] Kallis: has joined #ruby
[23:00:41] Maletor: has joined #ruby
[23:01:58] dgutierrez1287: has joined #ruby
[23:02:08] genuine: has joined #ruby
[23:03:57] zenguy_pc: has joined #ruby
[23:05:40] einarj: has joined #ruby
[23:07:34] clarkenciel: has joined #ruby
[23:10:12] rodfersou: has joined #ruby
[23:11:26] bruno-: has joined #ruby
[23:12:19] tmtwd: has joined #ruby
[23:14:41] Torrieri: has joined #ruby
[23:15:15] rodferso1: has joined #ruby
[23:18:00] ohaibbq: has joined #ruby
[23:19:33] porfa: has joined #ruby
[23:19:39] porfa: yellow guys
[23:19:46] porfa: i mean, hello guys!
[23:20:39] phutchins: has joined #ruby
[23:22:14] PlasmaStar: has joined #ruby
[23:22:40] Rubie: has joined #ruby
[23:23:39] porfa: after login in with mechanize, how can i jump to an address?
[23:23:47] jancel: has joined #ruby
[23:24:04] porfa: (i have an address i want to parse using nokogiri, but it needs a login??? so i used mechanize to login.. now I'm lost :) )
[23:25:36] jeadre: has joined #ruby
[23:25:55] saddad: has joined #ruby
[23:28:00] toretore: never used mechanize, but it looks to me like you'd just do `agent.get_post_whatever url` after and that the Mechanize instance tracks the cookie/session state
[23:28:32] phutchins1: has joined #ruby
[23:28:51] Ropeney: has joined #ruby
[23:29:19] toretore: (keeping the state being most of the purpose behind its existence, afaict)
[23:29:56] Ox0dea: toretore: Mechanize is much more than a "cookie jar".
[23:31:10] jhass: mmmh, cookies
[23:31:36] toretore: is what i'm eating right now
[23:33:19] rodfersou: has joined #ruby
[23:33:29] phutchins2: has joined #ruby
[23:33:45] veduardo: has joined #ruby
[23:34:48] kr3ssh: has joined #ruby
[23:38:04] RandyT_: has joined #ruby
[23:39:16] phutchins2: has joined #ruby
[23:41:34] phutchins: has joined #ruby
[23:42:17] Kallis: has joined #ruby
[23:42:26] charliesome: has joined #ruby
[23:45:48] dgutierrez1287: has joined #ruby
[23:45:58] roolo: has joined #ruby
[23:47:17] war_pigs: has joined #ruby
[23:47:46] dimasg: has joined #ruby
[23:48:06] Torrieri: has joined #ruby
[23:48:06] Torrieri: has joined #ruby
[23:51:27] czsr: has joined #ruby
[23:54:28] shevy: mmmh, cats
[23:59:47] kent\n: has joined #ruby