« Back to channel list

#ruby - 22 August 2015

« Back 1 day Forward 1 day »
[00:00:37] bronson: has joined #ruby
[00:01:47] shevy: what is a cpanel?
[00:02:29] bronson: has joined #ruby
[00:02:33] sdothum: has joined #ruby
[00:03:08] barhum2013: has joined #ruby
[00:04:25] bronson: has joined #ruby
[00:04:53] radgeRayden: has joined #ruby
[00:06:03] DelDotB: has joined #ruby
[00:06:16] bronson: has joined #ruby
[00:08:13] bronson: has joined #ruby
[00:08:17] zenguy_pc: has joined #ruby
[00:08:46] sdothum: has joined #ruby
[00:08:53] RegulationD: has joined #ruby
[00:09:03] barhum2013: has joined #ruby
[00:10:11] zenspider: lolsregginyag: you realize nobody can answer such a vague question right? We're not psychic
[00:10:11] bronson: has joined #ruby
[00:10:45] zenspider: !ban bronson !T 1h please fix your connection
[00:10:46] ChanServ: +b bronson!*@*
[00:10:46] ChanServ: ChanServ kicked bronson: please fix your connection
[00:12:36] rrichardsr3: has joined #ruby
[00:12:37] pipework: zenspider: Aww, no ban-forward. :(
[00:12:52] nb_bez___: has joined #ruby
[00:12:57] lolsregginyag: what did bronson do?
[00:13:10] pipework: There's a ##fix-your-connection channel for that.
[00:13:19] pipework: lolsregginyag: Read the message.
[00:14:38] skryking: has joined #ruby
[00:15:18] pipework: zenspider: *poke* ^
[00:15:34] pipework: may wanna read that nick in a mirror.
[00:15:42] zenspider: (defun erc-cmd-FIX (nick)
[00:15:43] zenspider: (erc-send-message (format "!ban %s !T 1h please fix your connection" nick)))
[00:15:46] banjara: has joined #ruby
[00:15:48] NeverDie: has joined #ruby
[00:16:01] shmilan: has joined #ruby
[00:16:22] rrichardsr3: has joined #ruby
[00:17:52] zenspider: ooh... I was JUST kicking you too
[00:18:23] nofxx: How should I write big regexes? I mean, ruby style guide, should be 2, 3 lines
[00:18:32] zenspider: pipework: fix my elisp above pls
[00:18:34] nofxx: there's no mention for regexes on it... just wondering
[00:18:51] zenspider: nofxx: define big
[00:18:56] pipework: zenspider: zenspider needs to include $##fix-your-connection to the ban mask.
[00:19:05] nofxx: zenspider, ~ 120 chars
[00:19:18] skryking: has joined #ruby
[00:19:27] tmtwd: has joined #ruby
[00:19:27] zenspider: nofxx: either use interpolation or /x multiline
[00:19:51] zenspider: pipework: (format "!ban %s$##fix-your-connection !T 1h please fix your connection" nick) ?
[00:19:58] al2o3-cr: >> require 'resolv'; Resolv::IPv4::Regex
[00:19:58] fgo: has joined #ruby
[00:19:59] ruboto: al2o3-cr # => /\A((?x-mi:0 ...check link for more (https://eval.in/420610)
[00:20:18] pipework: zenspider: Yeah, I think so. Assuming %s is the mask you're banning.
[00:20:37] pipework: You might want to remove the timeout though.
[00:20:44] jtdoncas: has joined #ruby
[00:21:02] zenspider: can't afaik. the bot currently requires it or freaks
[00:21:09] zenspider: well.. not freaks... ignores completely
[00:21:21] rickmasta: has joined #ruby
[00:21:54] nofxx: zenspider, oO totally missed this. nice. thank you
[00:21:57] pipework: Oh. Whale, it'll help the people whose clients save channels, but they'll still try to connect after an hour, so maybe just bump that up?
[00:22:06] diegoviola: is #rspec dead or what?
[00:22:25] shevy: I don't think it ever was a big channel, small channels often have a low talk ratio
[00:22:27] nofxx: diegoviola, every gem project is usually dead, ppl gather here
[00:22:30] pipework: diegoviola: It's been mostly quiet for years and years.
[00:23:24] diegoviola: I'm still confused about testing something that requires input (gets)
[00:23:30] andybernard2: has joined #ruby
[00:23:41] zenspider: diegoviola: one can only hope
[00:23:43] pipework: diegoviola: You need to provide your own IO object to substitute $STDIN with.
[00:23:49] diegoviola: zenspider: hope what?
[00:23:57] zenspider: that rspec is dead
[00:24:06] pipework: Or you could extract the input part and inject it instead of using gets
[00:24:28] pipework: zenspider: I test my test tooling with tests, and all of it's written in minitest. :D
[00:24:38] zenspider: def get_some_input io = $stdin
[00:24:45] zenspider: then you can test with a StringIO passed in
[00:24:56] pipework: ^ concise as fuck
[00:25:37] workmad3: has joined #ruby
[00:25:42] nofxx: zenspider, how cool. %r also has the /x modifier
[00:26:34] zenspider: nofxx: yup yup
[00:27:05] zenspider: diegoviola: did that make sense?
[00:27:34] zenspider: daaamn... the _init_ section of rubysdl is 764 lines long :(
[00:27:44] houhoulis: has joined #ruby
[00:27:51] diegoviola: zenspider: yes, thanks
[00:27:58] diegoviola: zenspider: why do you hate rspec btw?
[00:28:12] zenspider: its a slow bloated overcomplicated POS
[00:28:16] pipework: diegoviola: He's the author or minitest.
[00:28:20] diegoviola: pipework: I know
[00:28:56] pipework: I'd imagine someone who goes so far as to make minitest extremely simple and easy would detest the complexity of rspec inherently and emphatically, among other things.
[00:29:04] diegoviola: zenspider: yet lots of rails devs still use it, but yes, I agree minitest seems simpler
[00:31:27] dopamean_: has joined #ruby
[00:32:43] andybernard2: I have never heard of minitest but it looks awesome. I hate rspec.
[00:32:56] keen___________: has joined #ruby
[00:33:09] Randroid: has joined #ruby
[00:33:50] zenspider: andybernard: welcome. you already have minitest. use it and enjoy
[00:34:05] saddad: has joined #ruby
[00:34:07] diegoviola: minitest is kewl, it doens't impose that fucking dsl on you
[00:34:12] andybernard2: has joined #ruby
[00:34:16] zenspider: diegoviola: doesn't matter how many use it. popularity is NOT a metric for quality
[00:34:19] diegoviola: but it has a DSL like rspec too, no?
[00:34:40] diegoviola: zenspider: yeah I know, I wasn't saying that
[00:35:31] skryking: has left #ruby: ("Leaving")
[00:35:38] charliesome: has joined #ruby
[00:35:52] hahuang65: has joined #ruby
[00:36:07] pipework: diegoviola: minitest-spec
[00:36:13] diegoviola: zenspider: perhaps I didn't express myself properly, I was saying it in a way that lots of rails devs prefer to use what's more popular, rspec, activerecord, etc, and yet there are things that are nicer like Sequel but not many people use those
[00:36:18] djbkd_: has joined #ruby
[00:36:59] diegoviola: pipework: yes that one
[00:37:12] pipework: love me some google and the minitest github readme
[00:37:58] shevy: https://github.com/seattlerb/minitest
[00:38:27] jenrzzz_: has joined #ruby
[00:38:37] Cust0sLim3n: has joined #ruby
[00:40:07] diegoviola: I don't care about popularity, I care about a good working system, it's why I've been using linux for 15 years instead of windows
[00:40:22] diegoviola: I'll try to learn minitest instead
[00:40:52] pipework: The hardest thing about minitest is the opinion you got from learning rspec first. :)
[00:42:56] Oog: has joined #ruby
[00:43:56] zenspider: 3800 lines all one file. for some horrible reason, this seems managable
[00:44:11] zenspider: I'd like to package up libsge into homebrew just to make things a bit easier
[00:45:29] baweaver: has joined #ruby
[00:46:02] diegoviola: so unpopular that I remember I was the only person working with Linux/vim at the shop I've worked for... everyone else was using Sublime Text on Windows
[00:46:49] tkuchiki: has joined #ruby
[00:47:36] nofxx: diegoviola, that's a bad shop
[00:48:44] nofxx: zenspider, totally agree. But popularity help to sharpen edges. Problem is when the thing itself is lame.
[00:48:52] nofxx: example: angular
[00:48:56] Contigi: has joined #ruby
[00:50:31] pipework: My example: All the JS frameworks in the last... shit, ever.
[00:50:44] nofxx: pipework, only one I've really liked: vue.js
[00:51:02] pipework: That's not a framework
[00:51:08] nofxx: pipework, exactly!
[00:51:17] pipework: There's a shitton of libraries that are awesome.
[00:52:52] pipework: shevy: vue.js
[00:54:11] dgutierrez1287: has joined #ruby
[00:54:14] nofxx: coffeescript
[00:54:35] nofxx: for me the most nice thing in this JS/npm is phantom
[00:56:12] pipework: I actually really dislike coffeescript, but I love moonscript.
[00:56:52] edtoast_46: has joined #ruby
[00:57:05] zenspider: is that the lua one?
[00:57:34] pipework: I also love lua. :(
[00:57:38] zenspider: haven't played with it in a while. prolly should. I never got over how clunky lua felt for OO
[00:58:03] edtoast_46: hey when you get the chance try out #edtoast .please dont take this as spam
[00:58:07] edtoast_46: has left #ruby: ("Leaving")
[00:58:20] nofxx: pipework, but the alternative is write... JS. So, there's no alternative.
[00:58:26] pipework: zenspider: I value that it's multi-paradigm and doesn't suck up to OO.
[00:58:32] nofxx: lua is nice! the only brazilian language hehe.
[00:58:35] pipework: nofxx: Write Dart! or any transpiler.
[00:59:08] zenspider: bolt-on OO is worse than no OO imo. look at perl. even python feels that way to me
[00:59:31] zenspider: I'd appreciate it more if it were OO from the start, and had bolt-on non-OO
[00:59:36] pipework: zenspider: Yeah. But I'm not all that interested in always OO all day long. I love going prototypal.
[00:59:54] pipework: Give me tables, functions, and like six data types.
[00:59:56] nofxx: pipework, BS?
[01:00:15] linuxboytoo: has joined #ruby
[01:00:17] zenspider: prototypical OO _is_ OO
[01:00:34] pipework: zenspider: Right, but I'm not always interested in having to use it.
[01:00:45] pipework: Or bastardizing the OO system to do things that aren't OO.
[01:01:32] pipework: I'm rather against class-based OO as the only option.
[01:03:10] andybernard: has joined #ruby
[01:04:45] tmtwd: has joined #ruby
[01:05:20] arescorpio: has joined #ruby
[01:05:48] shevy: lua OOP versus javascript OOP
[01:06:42] keen____________: has joined #ruby
[01:09:15] petricore: has joined #ruby
[01:10:44] dh64: has joined #ruby
[01:10:45] ChanServ: -b bronson!*@*
[01:12:21] neilnorthrop: has joined #ruby
[01:12:23] bronson: has joined #ruby
[01:13:15] diegoaguilar: has joined #ruby
[01:13:21] nofxx: nobody chooses JS ... it's sine qua non for webapps
[01:14:15] pipework: shevy: 'oops'
[01:14:17] bronson: has joined #ruby
[01:15:09] j_mcnally: has joined #ruby
[01:15:44] jhass: +b-o *!~bronson@*$#ruby-fix-your-connection jhass
[01:16:23] neilnorthrop: has left #ruby: ()
[01:18:21] bruno-: has joined #ruby
[01:21:03] fgo: has joined #ruby
[01:21:54] Ox0dea: Hm, "prototypical" is way more common than "prototypal", but the situation is reversed for "archetypical" and "archetypal".
[01:21:58] Ox0dea: English a shit confirmed.
[01:22:19] finisherr: has joined #ruby
[01:22:22] pipework: I've always used prototypal, but I've seen prototypical.
[01:22:41] einarj: has joined #ruby
[01:23:25] finisherr: has left #ruby: ()
[01:23:43] shevy: my good old proto pal
[01:23:59] shevy: so typical of him
[01:24:01] Ox0dea: I thought we were sworn enemies?
[01:24:12] shevy: not today
[01:24:21] Ox0dea: Valar morghulis.
[01:26:00] shevy: are you summoning Cthulhu again
[01:26:28] Evans: has joined #ruby
[01:26:41] shevy: which editors are written in ruby by the way? redcar was one I think... any other?
[01:27:45] shevy: reason is, I know of editors such as http://hisham.hm/dit/ and I am wondering how feasible it would be for a simple ncurses editor - in ruby!
[01:29:13] pipework: I haven't found any nice ncurses libraries for ruby yet, but it'd be possible and feasibility seems to depend on your skill with ncurses more than anything.
[01:31:06] shevy: hey pipework since you mentioned lua: http://hisham.hm/2015/04/18/a-small-practical-example-where-luas-behavior-is-better-than-cs/
[01:31:17] roolo: has joined #ruby
[01:32:04] grotewold: has joined #ruby
[01:32:07] shevy: diegoviola var*
[01:32:15] diegoviola: https://github.com/manveru/ver
[01:32:20] diegoviola: it's unmaintained
[01:32:35] shevy: awww ... manveru seems to no longer do a lot of ruby :(
[01:32:56] shevy: an editor
[01:32:56] diegoviola: Pistos also had an editor
[01:32:58] Ox0dea: shevy: That's also how Perl, Python, and Ruby all do modular division.
[01:33:01] renderful: has joined #ruby
[01:33:04] shevy: diegoviola yeah now I remember
[01:33:08] shevy: diakonos right?
[01:33:16] shevy: I forgot that it was written in ruby
[01:33:25] diegoviola: https://github.com/Pistos/diakonos
[01:33:48] shevy: I guess I go with diakonos \o/
[01:34:05] diegoviola: shevy: what do you currently use?
[01:35:14] shevy: I use bluefish
[01:35:28] Ox0dea: There must be dozens of you.
[01:35:28] shevy: but I also need a non-GUI editor
[01:35:57] shevy: Ox0dea more than one shevy is too much for you to handle
[01:36:01] System42: has joined #ruby
[01:36:23] Ox0dea: But I'm not a dualist.
[01:36:58] diegoviola: shevy: try vim or emacs
[01:37:32] jhass: >> -50.upto(100).map {|i| i % 30 }.select {|i| [0, 10, 20].include? i }.map {|i| i / 10 + 1 } # shevy Ruby has the correct modulo implementation too, the C behavior is available as .remainder
[01:37:33] ruboto: jhass # => [2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2] (https://eval.in/420624)
[01:37:42] shevy: diegoviola nah
[01:38:13] devoldmx: has joined #ruby
[01:38:29] Jesse1234: has joined #ruby
[01:39:22] Ox0dea: diegoviola: Does your vending machine accept cats as payment yet?
[01:39:36] shevy: diegoviola diakonos wants https://rubygems.org/gems/curses :D
[01:40:03] shevy: ohhh right, that one is the one that got moved out, I thought it was ncurses
[01:40:11] diegoviola: Ox0dea: no, and probably never will, but patches welcome
[01:40:23] Ox0dea: http://i.imgur.com/bIhHXes.gif
[01:40:30] Ox0dea: It was an American Psycho reference, to clarify.
[01:41:00] petricore: has joined #ruby
[01:41:05] Ox0dea: In any case, the conversion rate between cats and alcoholic beverages has seen little in the way of standardization.
[01:41:16] diegoviola: not sure about that
[01:41:20] Ox0dea: Prove me wrong.
[01:41:30] A124: has joined #ruby
[01:42:55] Ox0dea: I should point out that I would be delighted if you did, mind.
[01:43:07] andybernard: has joined #ruby
[01:43:07] diegoviola: Ox0dea: what are you talking about?
[01:43:21] Ox0dea: What is beer divided by cat?!
[01:43:49] babyarm: has joined #ruby
[01:46:24] jher: has joined #ruby
[01:47:21] shevy: >> "beer" / "cat"
[01:47:22] ruboto: shevy # => undefined method `/' for "beer":String (NoMethodError) ...check link for more (https://eval.in/420625)
[01:47:52] abdulrehman: has joined #ruby
[01:48:48] Ox0dea: >> 0xBEE12 / 0xCA7
[01:48:49] ruboto: Ox0dea # => 241 (https://eval.in/420626)
[01:49:13] weemsledeux: has joined #ruby
[01:49:51] jhass: (24 - 1) = 23, 2 + 3 = 5, it's everywhere
[01:50:43] EminenceHC: has joined #ruby
[01:50:49] reesek: has joined #ruby
[01:51:05] Ox0dea: J(10) - H(8) = 2, ASS = 2 cheeks. Half Life 2 confirmed.
[01:51:13] Azure: has joined #ruby
[01:51:25] Hamled: What is the difference between "require File.dirname(__FILE__) + '/app'" and "require './app'"
[01:51:34] shevy: we could call him jhbutt too!
[01:51:59] jhass: Hamled: the latter depends on the working directory to happen to be correct. Use require_relative "app"
[01:52:11] Hamled: thank you
[01:52:31] Hamled: so it would be an issue if I had done something like ruby ../../my_thing_that_includes_app.rb
[01:53:05] hotpancakes: has joined #ruby
[01:54:27] abdulrehman: has joined #ruby
[01:54:58] busterarm: has joined #ruby
[01:55:44] centrx: has joined #ruby
[01:57:07] bustrarm: has joined #ruby
[01:59:34] CloCkWeRX: has joined #ruby
[01:59:53] choke: has joined #ruby
[02:00:29] tkuchiki: has joined #ruby
[02:01:13] NeverDie: has joined #ruby
[02:03:53] abdulrehman: has joined #ruby
[02:06:26] blue_deref: has joined #ruby
[02:08:28] jonee: has joined #ruby
[02:09:14] shmilan: has joined #ruby
[02:10:30] tobyx: has joined #ruby
[02:10:34] _whitelogger: has joined #ruby
[02:12:42] abdulrehman: has joined #ruby
[02:14:43] Timba-as: has joined #ruby
[02:14:58] choke: has joined #ruby
[02:16:10] amystephen: has joined #ruby
[02:18:57] wprice: has joined #ruby
[02:19:51] NeverDie: has joined #ruby
[02:21:28] NeverDie: has joined #ruby
[02:22:09] fgo: has joined #ruby
[02:22:14] mary5030: has joined #ruby
[02:23:28] abdulrehman: has joined #ruby
[02:23:30] einarj: has joined #ruby
[02:26:43] dimasg: has joined #ruby
[02:26:47] war_pigs: has joined #ruby
[02:28:00] choke: has joined #ruby
[02:28:25] mary5030: has joined #ruby
[02:29:36] jeadre: has joined #ruby
[02:32:30] havenwood: has joined #ruby
[02:32:38] abdulrehman: has joined #ruby
[02:33:05] rails: has joined #ruby
[02:34:03] linuxboytoo: has joined #ruby
[02:35:20] hotpancakes: has joined #ruby
[02:35:30] hmsimha_: has joined #ruby
[02:36:41] tkuchiki: has joined #ruby
[02:39:15] jhack: macbook pro refurbished vs brand new? any opinions?
[02:39:59] jonee: has joined #ruby
[02:40:36] jeadre: has joined #ruby
[02:41:08] miah: refurb is fine, i bought a refurb macbook years back. saved lots of cash. still have it, and its still working.
[02:41:34] pontiki: refurbs are fine
[02:41:36] abdulrehman: has joined #ruby
[02:41:57] pontiki: i haven't noticed a huge price savings on them, particularly
[02:42:59] reesek: I have a question regarding how to import a file containing a string of hashes into a variable that is an array of hashes
[02:43:16] reesek: Instead of polluting the IRC with the detail, I put it in a gist -> https://gist.github.com/ktreese/93b19885fa42606fda90
[02:43:23] Ox0dea: reesek: Bless you.
[02:43:36] reesek: I'm very new to ruby -- thanks :)
[02:43:42] NeverDie: has joined #ruby
[02:44:29] pontiki: reesek: respect
[02:45:38] fgo: has joined #ruby
[02:45:50] stardiviner: has joined #ruby
[02:46:05] reesek: thanks :) I just put my ruby code as a comment in the same gist
[02:46:33] pontiki: you do know you can add files to a gist?
[02:47:00] NeverDie: has joined #ruby
[02:47:03] pontiki: ?gist-usage
[02:47:03] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[02:47:17] reesek: was not aware -- thanks for sharing
[02:48:09] Ox0dea: reesek: Are you forced to use this "string of hashes" representation?
[02:48:20] dopie: has joined #ruby
[02:49:41] rabidwh01e: has joined #ruby
[02:49:52] rabidwh01e: hey guise, I need help
[02:49:59] reesek: Ox0dea: when I hit the puppet console api, I get a hash string back for each classification on a single line. The puppetclassify library seems to require that these be concatenated together, so that's why I'm doing that
[02:50:11] rabidwh01e: I have a ruby script with a require statemnt, and ive installed gem, but it still fails to load
[02:50:14] rabidwh01e: what am i doing wrong
[02:50:29] toretore: reesek: what you have looks like the "inspect" representation of a data structure, which looks like - but is not the same as - ruby code
[02:50:40] abdulrehman: has joined #ruby
[02:50:44] toretore: and it's not meant to be parsed back into said structure
[02:51:03] Ox0dea: toretore: Why not?
[02:51:14] toretore: why not what?
[02:51:36] jeadre: has joined #ruby
[02:51:43] devbug: has joined #ruby
[02:51:44] toretore: reesek: so you should first try and get this in another, parsable, format
[02:52:55] reesek: toretore: I could get it into JSON if that helps
[02:53:07] Ox0dea: reesek: eval "[#{IO.read 'string_of_hashes.txt'}]"
[02:53:08] toretore: yes, that's much better
[02:53:13] tkuchiki: has joined #ruby
[02:53:33] hotpancakes: has joined #ruby
[02:53:36] Ox0dea: But probably don't do that.
[02:53:42] _blizzy_: has joined #ruby
[02:53:42] reesek: would I then be able to convert that into an array of hashes much easier?
[02:54:22] Ox0dea: That would result in an array of hashes.
[02:54:26] toretore: maybe not easier, but more correctly
[02:54:57] toretore: reesek: get it as json, then gist the entire output
[02:55:07] reesek: k -- doing now
[02:56:29] havenwood: has joined #ruby
[02:56:40] davedev24: has joined #ruby
[02:56:45] andybernard2: has joined #ruby
[02:56:48] shevy: is require 'rbconfig' required on modern ruby? aka 2.x.x +
[02:57:33] reesek: toretore: https://gist.github.com/ktreese/d69dcea79665bbe6ad1b
[02:57:40] IrishGringo: has joined #ruby
[02:57:47] Ox0dea: 20>> RbConfig # shevy
[02:57:48] ruboto: Ox0dea # => RbConfig (https://eval.in/420629)
[02:58:03] andybernard2: has joined #ruby
[02:58:23] Ox0dea: reesek: And now you can just JSON.parse that.
[02:58:39] andybernard2: has joined #ruby
[02:59:06] shevy: so I can get rid of that line \o/
[02:59:08] toretore: reesek: ok, then you can do JSON.parse(File.read(filename)) to get the array of hashes
[02:59:22] swills: has joined #ruby
[02:59:36] reesek: great -- I'll give that a shot now. Will let you know how it went :)
[02:59:51] abdulrehman: has joined #ruby
[03:00:15] toretore: puppetclassify.import_hierarchy.import(JSON.parse(File.read('filename'))) probably
[03:03:38] _blizzy_: has joined #ruby
[03:03:48] reesek: You guys RULE
[03:04:03] reesek: it works -- thanks much!
[03:04:37] reesek: toretore: Thank you
[03:04:41] reesek: Ox0dea: to you as well
[03:06:38] rushed: has joined #ruby
[03:07:09] allcentury: has joined #ruby
[03:07:38] n_blownapart: has joined #ruby
[03:08:23] darkf: has joined #ruby
[03:08:57] abdulrehman: has joined #ruby
[03:12:20] braincrash: has joined #ruby
[03:13:10] sevenseacat: has joined #ruby
[03:13:15] xxneolithicxx: has joined #ruby
[03:18:00] abdulrehman: has joined #ruby
[03:18:03] pen: has joined #ruby
[03:19:28] roolo: has joined #ruby
[03:23:54] tmtwd: has joined #ruby
[03:24:31] einarj: has joined #ruby
[03:25:35] devoldmx: has joined #ruby
[03:27:08] abdulrehman: has joined #ruby
[03:30:02] Hanmac: has joined #ruby
[03:31:04] mamercad: has joined #ruby
[03:31:33] baweaver: has joined #ruby
[03:33:46] fullofcaffeine: has joined #ruby
[03:36:16] abdulrehman: has joined #ruby
[03:38:04] jenrzzz: has joined #ruby
[03:39:01] mary5030: has joined #ruby
[03:45:02] edtoast_46: has joined #ruby
[03:45:09] edtoast_46: join #toastirc
[03:45:12] edtoast_46: has left #ruby: ("Leaving")
[03:45:14] abdulrehman: has joined #ruby
[03:48:11] GarethAdams: has joined #ruby
[03:48:41] konsolebox: has joined #ruby
[03:48:58] dgutierrez1287: has joined #ruby
[03:51:09] mary5030: has joined #ruby
[03:51:21] sacarlson1: has joined #ruby
[03:52:16] diego1: has joined #ruby
[03:52:36] diego1: has joined #ruby
[03:52:52] sacarlson1: /home/sacarlson/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/net/http.rb:800:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate request A: dh key too small (OpenSSL::SSL::SSLError)
[03:53:00] war_pigs: has joined #ruby
[03:53:02] djbkd: has joined #ruby
[03:53:36] sacarlson1: is there some global way to change this SSLv23 as I guess that's the problem above
[03:54:24] abdulrehman: has joined #ruby
[03:54:38] sacarlson1: it comes from a line like this: postdat = RestClient.post url, data
[03:56:12] sacarlson1: I was running the same code ok before until I switched to using rbenv instead of ubuntu ruby-full and global gem installs
[03:58:48] beef-wellington: has joined #ruby
[04:00:26] linuxboytoo: has joined #ruby
[04:01:27] fullofca_: has joined #ruby
[04:02:43] ght: Evenin gguys
[04:03:53] abdulrehman: has joined #ruby
[04:05:29] jpfuentes2: has joined #ruby
[04:08:58] diegoaguilar: has joined #ruby
[04:10:53] RegulationD: has joined #ruby
[04:12:49] abdulrehman: has joined #ruby
[04:13:05] fullofcaffeine: has joined #ruby
[04:14:55] Ropeney: has joined #ruby
[04:15:15] fullofcaffeine: has joined #ruby
[04:16:52] hyy1: has joined #ruby
[04:16:57] hyy1: OK I'm at section 8.3
[04:17:44] hyy1: 0x0dea: you up?
[04:19:42] duncannz: has joined #ruby
[04:21:32] hyy1: can you guys teach me how to build and sort an array?
[04:21:44] abdulrehman: has joined #ruby
[04:22:53] mamercad: has joined #ruby
[04:23:03] shevy: array.sort
[04:23:14] hyy1: but how to build the array?
[04:23:15] sacarlson1: I've now also tried this postdat = RestClient::Resource.new(url, :ssl_version => 'TLSv1').post(data) and still get that error state=SSLv3
[04:23:24] shevy: there are methods you can use to push onto an array
[04:23:31] hyy1: if I start out with [], how do I get it to say [Alpha, Omega]?
[04:23:38] hyy1: I guess I just reread the chapter
[04:23:38] shevy: push onto it
[04:23:38] ZeeNoodleyGamer: has joined #ruby
[04:23:56] shevy: >> _ = []; _.push :Alpha; _.push :Omega; _
[04:23:57] ruboto: shevy # => [:Alpha, :Omega] (https://eval.in/420633)
[04:25:21] einarj: has joined #ruby
[04:25:33] hyy1: favorites.push
[04:25:43] hyy1: ok, I just saw where it talked about puts
[04:25:50] hyy1: mean push
[04:27:28] wallerdev: has joined #ruby
[04:29:38] RobertBirnie: has joined #ruby
[04:29:49] war_pigs: has joined #ruby
[04:30:46] hyy1: how do I use the sort method shevy?
[04:31:36] linuxboytoo: has joined #ruby
[04:32:06] Cache_Money: has joined #ruby
[04:33:53] abdulrehman: has joined #ruby
[04:34:42] shevy: hyy_ but you got the example above
[04:35:33] danielpclark: has joined #ruby
[04:37:26] hyy1: shevy: I used sort!
[04:37:36] hyy1: mean arr.sort!
[04:38:26] zenguy_pc: has joined #ruby
[04:40:01] hyy1: how do I write the table of contents program with all the chapter names and page numbers + other particulate info in arrays?
[04:40:33] shevy: simply fill it up in order
[04:40:37] shevy: you can use << too
[04:40:43] jpfuentes2: has joined #ruby
[04:40:47] iamninja: has joined #ruby
[04:40:53] shevy: you can try this in your local irb as well
[04:41:26] Ox0dea: There should be a #shove method for pushing into frozen Arrays.
[04:42:16] hyy1: I want e.g. [(chapter name, page number), (chapter name, page number)]
[04:42:31] hyy1: the first tuple is chapter 1's, the second chapter 2's
[04:42:34] abdulrehman: has joined #ruby
[04:43:17] Ox0dea: hyy_: Ruby doesn't have tuples, per se. You're aware that you can nest Arrays, yes?
[04:43:49] shevy: hyy_ the above is almost valid
[04:43:57] shevy: an array in an array looks like this: [[]]
[04:44:08] Ox0dea: But sometimes [[...]].
[04:44:21] hyy1: but if it sees a nested array with a length that is not 2 it should error
[04:44:24] shevy: array = [[ 'chapter name here', 1], ['chapter name here', 2]]
[04:44:47] hyy1: but how do I access arrays inside arrays?
[04:44:50] shevy: hyy_ you can use a method to add to an array too, inside the method you can check for length 2
[04:44:56] hyy1: arr.each do |neseted_array|
[04:44:58] shevy: the same way, via []
[04:45:07] hyy1: shevy: Whoa!
[04:45:09] shevy: how do you access an array normaly hyy_
[04:45:24] Ox0dea: hyy_: raise "wtf?" unless toc.all? { |tup| tup.size == 2 }
[04:45:25] hyy1: I didn't learn my own methods yet
[04:45:29] shevy: hyy_ array = ['apple','banana','cats'] <--- how to yield cats
[04:45:47] hyy1: mean, how to write my own methods yet
[04:46:11] hyy1: how do you access array normally for me? for me it would be an iterator
[04:46:44] shevy: yield the cats
[04:46:59] hyy1: if you have a nested array you can do this: arr.each do |nested_array| nested_array.each do |item| end end
[04:47:16] shevy: array = ['apple','banana','cats']
[04:47:18] hyy1: that's just bad code there but it proves that I know how to di t
[04:47:23] shevy: what do you do to return the string 'cats'
[04:47:33] grotewold: has joined #ruby
[04:47:34] hyy1: use throw
[04:47:36] shevy: here is the answer http://learnrubythehardway.org/book/ex34.html
[04:47:41] shevy: nah don't guess, better to read
[04:48:15] Ox0dea: >> ['01100011011000010111010001110011'].pack 'B*' # shevy
[04:48:16] ruboto: Ox0dea # => "cats" (https://eval.in/420635)
[04:48:19] Ox0dea: Is that right?
[04:49:14] shevy: why do you have to put cats into binary mode
[04:50:08] Ox0dea: "Put Smarties tubes on cats' legs; make them walk like a robot." https://www.youtube.com/watch?v=m9tWYaujtD4
[04:50:36] lxsameer: has joined #ruby
[04:51:27] hyy1: ok I'm going to bed
[04:51:35] hyy1: this will soak in overnight
[04:51:41] abdulrehman: has joined #ruby
[04:52:16] vijucat: has joined #ruby
[04:52:29] Psi-Jack: Mmmmm... Learning about ruby threads.
[04:52:41] djbkd: has joined #ruby
[04:54:56] shevy: >> ObjectSpace.count_symbols
[04:54:57] ruboto: shevy # => undefined method `count_symbols' for ObjectSpace:Module (NoMethodError) ...check link for more (https://eval.in/420636)
[04:55:36] Meow-J: has joined #ruby
[04:57:23] fullofcaffeine: has joined #ruby
[04:58:39] Ox0dea: >> Symbol.all_symbols.size # shevy
[04:58:40] ruboto: Ox0dea # => 2511 (https://eval.in/420637)
[04:59:57] ElSif: has joined #ruby
[05:00:02] wallerdev: has joined #ruby
[05:00:51] abdulrehman: has joined #ruby
[05:02:13] fgo: has joined #ruby
[05:02:36] jeadre: has joined #ruby
[05:04:09] vdamewood: has joined #ruby
[05:04:18] neilnorthrop: has joined #ruby
[05:05:07] rickmasta: has joined #ruby
[05:07:36] roolo: has joined #ruby
[05:08:01] krz: has joined #ruby
[05:09:07] konsolebox: has joined #ruby
[05:09:57] abdulrehman: has joined #ruby
[05:10:13] riotjones: has joined #ruby
[05:13:19] fullofcaffeine: has joined #ruby
[05:13:56] fullofcaffeine: has joined #ruby
[05:14:56] fullofcaffeine: has joined #ruby
[05:15:11] roolo: has joined #ruby
[05:16:06] fullofcaffeine: has joined #ruby
[05:16:45] dimasg: has joined #ruby
[05:17:12] fullofcaffeine: has joined #ruby
[05:18:15] codecodecode123: has joined #ruby
[05:18:52] RobertBirnie: has joined #ruby
[05:19:02] abdulrehman: has joined #ruby
[05:19:27] ohaibbq: has joined #ruby
[05:19:49] bruno-: has joined #ruby
[05:21:19] UtkarshRay: has joined #ruby
[05:24:36] jeadre: has joined #ruby
[05:26:30] hyy1: has joined #ruby
[05:28:14] khebbie: has joined #ruby
[05:30:23] Ropeney: has joined #ruby
[05:30:57] symm-: has joined #ruby
[05:31:40] flegerCovateam1: has joined #ruby
[05:31:50] flegerCovateam1: has left #ruby: ()
[05:32:00] [k-: double map!
[05:32:31] tercenya: has joined #ruby
[05:32:48] [k-: arr.map(&:map) { |x| ...
[05:33:30] The_Phoenix: has joined #ruby
[05:33:46] The_Phoenix: has joined #ruby
[05:33:53] abdulrehman: has joined #ruby
[05:34:14] Ox0dea: [k-: That's a SyntaxError.
[05:34:25] [k-: whyyyyy
[05:35:09] amystephen: has joined #ruby
[05:35:12] hyy1: 0x0dea: What's a fun programming project if you demonstrate adequate knowledge of conditionals, methods, loops, and method definition [defining your own methods]?
[05:35:20] hyy1: even nested while
[05:35:39] shevy: <hyy_> ok I'm going to bed
[05:35:44] shevy: that was a short sleep
[05:35:49] Ox0dea: He's sleepcoding!
[05:36:05] [k-: an irc bot!
[05:36:18] [k-: wherr ypu can show off your work and impress people
[05:36:24] hyy1: shevy: well heck I went to bed at 7 PM and only slept till 10 PM so I'm wide awake. I'm backwards
[05:36:38] hyy1: I sleep during the day and stay up at night
[05:36:44] Ox0dea: hyy_: How are your understandings of Arrays and Hashes?
[05:37:29] hyy1: 0x0dea: for arrays: I know you can sort them, push pop them, and that they can contain other arrays
[05:37:29] Feyn: has joined #ruby
[05:37:35] hyy1: but I forget how to add to an array
[05:37:46] hyy1: I don't know about hashes
[05:38:10] hyy1: in fact, I know nothing about hashes except they are key:value pairs
[05:38:14] Ox0dea: hyy_: In that case, consider making some sort of "math test".
[05:38:29] Ox0dea: Print simple arithmetic problems for the user to provide answers to, and respond accordingly.
[05:38:51] hyy1: that's not very fun
[05:38:58] [k-: hyy_ you can add to arrays by pushing things to them
[05:39:29] [k-: there are other ways too
[05:39:49] Ox0dea: If all you've got down is conditionals and looping, the best you can do is repeatedly compare things, so...
[05:41:21] hyy1: yes, but now I am studying defining my own methods
[05:41:25] [k-: >> a = []; a[0] = 6; a[1] = [5,4,3,2,1]; a.flatten!
[05:41:25] ruboto: [k- # => [6, 5, 4, 3, 2, 1] (https://eval.in/420644)
[05:41:34] [k-: ^ example of an obscure way
[05:42:00] [k-: that wouldn't work so well in production, though
[05:42:03] greymeister: has joined #ruby
[05:42:14] greymeister: has left #ruby: ()
[05:42:25] Ox0dea: [k-: a[1..-1] would've avoided the need to flatten.
[05:42:37] abdulrehman: has joined #ruby
[05:43:05] jalcine: has joined #ruby
[05:43:51] hyy1: whoa hold on
[05:44:02] hyy1: if I define my own class can I make my own + method?
[05:44:14] Ox0dea: Of course!
[05:44:16] hyy1: or .* or whatever?
[05:44:34] Ox0dea: You can even redefine all the existing ones, if such a thing takes your fancy.
[05:44:36] Ox0dea: But it oughtn't.
[05:44:51] [k-: there is also !
[05:45:12] Ox0dea: >> class Fixnum; def !; (1..self).reduce(1, :*) end end; !5
[05:45:14] ruboto: Ox0dea # => 120 (https://eval.in/420645)
[05:45:21] [k-: (you shouldnt redefine !)
[05:45:27] [k-: factorial!
[05:45:41] Ox0dea: Factorial > boolean coercion.
[05:45:51] shevy: hyy_ got the worst possible combination now
[05:45:57] Ox0dea: Dude's fucked. ^_^
[05:45:58] shevy: Ox0dea and [k-
[05:46:04] [k-: common sense > factorial
[05:46:08] shevy: hyy_ don't let them steal your sanity
[05:46:45] [k-: this would be a omhyfgna moment
[05:47:14] hyy1: does Ruby support polymorphism in functions? How about functional programming?
[05:47:31] Ox0dea: Sort of, on both counts.
[05:47:50] Ox0dea: Much more the latter.
[05:47:52] [k-: duck typing ??? polymorphism
[05:48:11] hyy1: if it was functional, then how do I make it so that variables can never be modified and functions can't be either? first class citizens are functions
[05:48:35] [k-: <obj>.freeze
[05:48:49] hyy1: LOL so cool!
[05:49:12] hyy1: how about method.freeze?
[05:49:34] [k-: method(:method).freeze, i think...
[05:49:41] hyy1: I want to comparse Haskell <-> Ruby
[05:49:51] hyy1: compare*
[05:49:59] [k-: ruby uses regexp, haskell uses parsec
[05:50:00] shevy: ruby is an object oriented programming language
[05:50:38] carglass-rep: has joined #ruby
[05:50:39] hyy1: ok but how is Ruby functional?
[05:51:06] shevy: ruby is an object oriented programming language
[05:51:16] hyy1: I see...thanks
[05:51:29] shevy: I don't think you can easily translate ruby into haskell
[05:51:40] shevy: you can try to do crazy stuff with lambda
[05:51:40] abdulrehman: has joined #ruby
[05:51:50] shevy: this is what Ox0dea has been doing here the last half year
[05:51:57] shevy: please do not lose your sanity hyy_
[05:52:03] [k-: Death to non-believers!
[05:52:04] kies^: has joined #ruby
[05:52:09] hyy1: I have another q, how do you do pointers so that you can modify variables in the calling method?
[05:52:12] carglass-rep: Quick question: I installed some gems via `bundle install`, but now I have updated one of the github repo from where a gem is taken, how do I "update" this gem ?
[05:52:16] Motoservo: has joined #ruby
[05:52:36] shevy: hyy_ if you modify it inside your method, it will be modified alright; you can avoid this by doing a copy via .dup on your object
[05:53:06] hyy1: shevy: example code please
[05:53:14] Ox0dea: hyy_: Ruby is pass-by-value, but collection types are essentially pass-by-reference.
[05:53:28] Ox0dea: >> def foo ary; ary << 42; end; x = []; foo x; x
[05:53:29] ruboto: Ox0dea # => [42] (https://eval.in/420648)
[05:54:05] hyy1: 0x0dea: then it's the same as C and I can't normally do this modify variable in calling method stuff
[05:54:23] Ox0dea: Right, except Ruby is much more powerful and lets you do all sorts of crazy things if you so desire.
[05:54:32] Ox0dea: hyy_: https://aphyr.com/posts/173-monkeypatching-is-for-wimps-use-set-trace-func
[05:54:41] shevy: hyy_ just any method you use. i = [1,2,3]; def foo(arg) arg << 4; end; foo i; i
[05:54:48] Ox0dea: hyy_: That post demonstrates bolting immutability onto Ruby.
[05:54:54] shevy: >> i = [1,2,3]; def foo(arg); arg << 4; end; foo i; i
[05:54:54] Ox0dea: Which is quite a feat, really.
[05:54:54] ruboto: shevy # => [1, 2, 3, 4] (https://eval.in/420649)
[05:55:24] [k-: >> self.freeze; A = Class.new
[05:55:25] ruboto: [k- # => A (https://eval.in/420650)
[05:55:33] AlexRussia_: has joined #ruby
[05:55:33] shevy: hyy_ ruby is santactic sugar over C
[05:55:35] [k-: that isnt supposed to work
[05:55:38] shevy: *syntactic
[05:55:46] shevy: Santa Tactics!
[05:56:33] [k-: santanic*
[05:56:41] Ox0dea: >> self == Object # [k-
[05:56:42] ruboto: Ox0dea # => false (https://eval.in/420651)
[05:57:17] [k-: freeze every class for me Ox0dea, and create a new class afterwards!
[05:58:05] Ox0dea: >> ObjectSpace.each_object(Class, &:freeze); Class.new # [k-
[05:58:06] ruboto: Ox0dea # => #<Class:0x4173684c> (https://eval.in/420652)
[05:58:43] [k-: >> ObjectSpace.each_object(&:freeze); A = Class.new
[05:58:44] ruboto: [k- # => /tmp/execpad-97af77a90c27/source-97af77a90c27:4:in `write': can't modify frozen IO (RuntimeError) ...check link for more (https://eval.in/420653)
[06:01:18] Ox0dea: hyy_: It's almost never The Right Thing to modify somebody else's bindings, but it can be done.
[06:02:30] abdulrehman: has joined #ruby
[06:03:28] [k-: how to destroy a world: redefine Object#!, TrueClass#!, FalseClass#!, NilClass#!
[06:03:44] psye: has joined #ruby
[06:04:12] [k-: im not sure if the last 3 are necessary, but just to be safe and far reaching
[06:04:27] carglass-rep: I did `gem uninstall my_gem` and then `bundle install` again, but I don't think it works
[06:07:28] chipotle: has joined #ruby
[06:07:49] sameerynho: has joined #ruby
[06:08:13] roolo: has joined #ruby
[06:11:37] abdulrehman: has joined #ruby
[06:11:39] EminenceHC: has joined #ruby
[06:11:46] Musashi007: has joined #ruby
[06:13:24] chipotle: has joined #ruby
[06:14:49] flegercovateam: has joined #ruby
[06:17:31] dimasg: has joined #ruby
[06:19:09] carglass-rep: mmh; When doing `gem uninstall my_gem`, `bundle show` still shows it
[06:19:36] jeadre: has joined #ruby
[06:20:06] Ox0dea: carglass-rep: `gem which my_gem`
[06:20:38] abdulrehman: has joined #ruby
[06:20:49] Ox0dea: [k-: How do you feel about this? https://gist.github.com/0x0dea/414d123f3ca119c52dc1
[06:20:55] carglass-rep: Can't find ruby library file or shared library my_gem
[06:21:14] grenierm: has joined #ruby
[06:21:39] chinmay_dd: has joined #ruby
[06:21:39] Ox0dea: carglass-rep: Then you must have it locally installed in your project's directory.
[06:22:15] carglass-rep: Ox0dea: Yes, I have a Gemfile and Gemfile.lock
[06:22:51] rippa: has joined #ruby
[06:22:53] existensil: has joined #ruby
[06:24:24] ohaibbq: has joined #ruby
[06:25:28] [k-: Ox0dea: chaining?
[06:25:47] chipotle: has joined #ruby
[06:25:50] hyy1: ok guys, I've reached chapter 10
[06:26:24] hyy1: can I have some candy?
[06:26:52] hyy1: what do I do now?
[06:27:46] Ox0dea: [k-: I almost went with ProcChain, but thinking of them as groups makes more sense, I think.
[06:27:52] hyy1: 0x0dea: What programming project do you suggest?
[06:28:08] hyy1: anything fun?
[06:28:15] Ox0dea: [k-: There's already https://github.com/raganwald/andand for "chaining".
[06:28:23] Ox0dea: hyy_: Write a brainfuck interpreter.
[06:29:33] hyy1: 0x0dea: how do you do that? Isn't that a little advanced? Problem is, I haven't been able to break the problem down into smaller pieces
[06:29:55] hyy1: I have been doing that but not on paper, I was coding as I designed it
[06:30:13] Ox0dea: It's better not to do that.
[06:30:31] hyy1: Knew that.
[06:30:47] hyy1: but, can I have some practice in program design?
[06:30:49] duoi: has joined #ruby
[06:31:37] Ox0dea: Put things where they belong, leave things as you found them.
[06:32:35] hyy1: I need some help getting started writing a brainfuck interpreter
[06:32:58] hyy1: I need to learn the skills of program design, breaking the pieces down into smaller and smaller pieces
[06:33:13] hyy1: I will research Brainfuck and it's interpreters to star
[06:33:38] Ox0dea: I think a brainfuck interpreter is a pretty good starter project.
[06:33:52] abdulrehman: has joined #ruby
[06:34:09] djbkd: has joined #ruby
[06:34:50] hyy1: but how I don't know computer programming that well yet
[06:35:00] hyy1: I need a mentor
[06:35:00] nux443: has joined #ruby
[06:35:31] [k-: but you Haskell'd!
[06:35:37] relic: There's nothing that you will gain from learning Brainfuck, hyy.
[06:35:43] hyy1: I didn't Haskell
[06:35:47] relic: Ruby is perfectly suited as a new programmer.
[06:35:53] relic: Assuming you're a new programmer.
[06:36:00] hyy1: I simply remember lots of trivia
[06:36:11] hyy1: I read Java books and everything
[06:36:20] relic: That may or may not be useful.
[06:36:22] hyy1: even Haskell and Python books
[06:36:49] relic: Write programs. Reading books alone doesn't a programmer make.
[06:36:53] sevenseacat: wow, this troll has gone on for a while.
[06:37:25] sevenseacat: yesterday it was 'but i dont understand loops' and today its 'but ive read heaps of programming books'
[06:37:55] hyy1: *sigh* I may have read them but I haven't written programs
[06:38:03] tkuchiki: has joined #ruby
[06:38:10] Ox0dea: sevenseacat: "Troll" seems harsh in this case.
[06:38:13] hyy1: reading them doesn't make you understand loops
[06:38:24] sevenseacat: Ox0dea: i dont really think so.
[06:38:58] tmtwd: has joined #ruby
[06:39:01] relic: hyy: Write programs.
[06:39:43] sevenseacat: the books you're reading have exercises attached. do them.
[06:40:39] hyy1: I've done most of those exercises
[06:41:05] Gribo: has joined #ruby
[06:41:06] relic: hyy: Then read another book, and do those.
[06:41:09] djbkd_: has joined #ruby
[06:41:13] hyy1: they want me to write a program that turns a number into Roman Numerals
[06:41:24] sevenseacat: great, do it.
[06:41:35] relic: I wonder if I talked this much when I started out.
[06:41:42] Gribo: Is an IDE like RubyMine worth the money?
[06:41:55] relic: Gribo: I use emacs, so ???
[06:42:30] sevenseacat: Gribo: dunno, but I think they have a free trial so you can check it out for yourself.
[06:42:36] Gribo: I've always used IDEs and it's a bit difficult to switch to something like atom with no code completion.
[06:42:37] jenrzzz: has joined #ruby
[06:42:41] abdulrehman: has joined #ruby
[06:42:53] JoshGlzBrk: has joined #ruby
[06:43:44] allcentury: has joined #ruby
[06:43:49] relic: The only scenario where I'd use an IDE is if I were writing Objective-C or Swift.
[06:44:07] relic: Emacs is otherwise pretty complete.
[06:44:58] carglass-rep: I'm confused, I'm doing it for gitlab. I??*think* the gems are installed in `/home/git/gitlab/vendor/bundle`, so I `gem uninstall my_gem -i this_path`, but it still don't want to reinstall it
[06:47:35] krz: has joined #ruby
[06:47:56] TomyLobo: has joined #ruby
[06:48:55] Jackneill: has joined #ruby
[06:49:05] dgutierrez1287: has joined #ruby
[06:49:28] symm-: has joined #ruby
[06:51:39] abdulrehman: has joined #ruby
[06:52:54] d2dchat: has joined #ruby
[06:53:56] CloCkWeRX: has joined #ruby
[06:54:36] alphaatom: has joined #ruby
[06:55:15] dagda1: has joined #ruby
[06:57:30] zenspider: Gribo: using a language like ruby means that you need code completion a lot less
[06:57:44] zenspider: drop your crutch. it'll make you stronger
[07:00:39] juanpaucar: has joined #ruby
[07:01:23] yardenbar: has joined #ruby
[07:02:14] Gribo: zenspider, I'll do that, testing RubyMine right now and it doesn't seem too over much either
[07:02:25] juanpaucar: has joined #ruby
[07:04:03] zenspider: I also use emacs, but I was doing that looong before I was coding in ruby
[07:04:21] juanpaucar: has joined #ruby
[07:05:54] sevenseacat: happy sublime text/atom user.
[07:05:59] jeanlinux: has joined #ruby
[07:06:37] juanpaucar: has joined #ruby
[07:08:00] dagda1: has joined #ruby
[07:08:17] juanpauc_: has joined #ruby
[07:08:29] abdulrehman: has joined #ruby
[07:08:58] nso95: has joined #ruby
[07:08:58] jeanlinux: has joined #ruby
[07:09:10] relic: I don't like gui clients.
[07:09:21] weemsledeux: has joined #ruby
[07:09:44] nofxx: emacs ftw
[07:09:55] nofxx: or M-x for fun and profit
[07:10:19] juanpauc_: has joined #ruby
[07:11:08] edwinvdgraaf: has joined #ruby
[07:12:02] relic: I feel like my entire life is waiting on Apple to incorporate Skylake processors.
[07:12:16] juanpaucar: has joined #ruby
[07:12:31] CrazyEddy: has joined #ruby
[07:12:50] n008f4g_: has joined #ruby
[07:13:22] zenspider: that's more than a little sad
[07:13:39] relic: Thank you.
[07:14:08] juanpauc_: has joined #ruby
[07:16:02] juanpaucar: has joined #ruby
[07:17:57] juanpaucar: has joined #ruby
[07:18:10] Ox0dea: Are clouds technically skylakes?
[07:19:06] PaulCapestany: has joined #ruby
[07:20:04] juanpaucar: has joined #ruby
[07:20:42] nofxx: what;s new that I missed relic ? skylake
[07:21:10] nofxx: new and so cool
[07:21:25] ndrei: has joined #ruby
[07:21:50] juanpaucar: has joined #ruby
[07:21:51] bnizzle1: has joined #ruby
[07:22:10] nofxx: I was hoping for 8 cores/16 threads or 10nm, or both. But no for both.
[07:23:43] juanpauc_: has joined #ruby
[07:24:09] relic: nofxx: Read about it; it's probably the most significant thing to happen in the microprocessor space since x86 -> x86_64. I just don't want to buy any new hardware until it comes out; where I'm in need of new systems.
[07:25:27] nofxx: relic, I skipped something and was re-reading now. But think I missed. the power efficiency you mean x86_64 iphone?
[07:25:37] juanpaucar: has joined #ruby
[07:25:40] nofxx: yeah, that's new .. hehe
[07:27:32] einarj: has joined #ruby
[07:27:33] juanpaucar: has joined #ruby
[07:29:24] bnizzle: has joined #ruby
[07:29:28] juanpaucar: has joined #ruby
[07:31:25] juanpaucar: has joined #ruby
[07:33:18] juanpauc_: has joined #ruby
[07:34:19] devdazed: has joined #ruby
[07:35:09] tkuchiki: has joined #ruby
[07:35:12] juanpaucar: has joined #ruby
[07:37:08] juanpaucar: has joined #ruby
[07:39:02] juanpaucar: has joined #ruby
[07:40:04] jiada: has joined #ruby
[07:41:01] juanpauc_: has joined #ruby
[07:41:23] mary5030: has joined #ruby
[07:42:52] juanpaucar: has joined #ruby
[07:43:09] khebbie: has joined #ruby
[07:43:21] hotpancakes: has joined #ruby
[07:43:53] nerium: has joined #ruby
[07:44:48] juanpauc_: has joined #ruby
[07:46:21] ecksit: has joined #ruby
[07:46:42] juanpaucar: has joined #ruby
[07:48:37] juanpaucar: has joined #ruby
[07:49:06] whiteline: has joined #ruby
[07:50:45] juanpauc_: has joined #ruby
[07:52:29] juanpauc_: has joined #ruby
[07:53:41] felltir: has joined #ruby
[07:54:26] juanpaucar: has joined #ruby
[07:55:26] rht: has joined #ruby
[07:56:22] juanpaucar: has joined #ruby
[07:58:12] juanpauc_: has joined #ruby
[07:58:33] krz: has joined #ruby
[08:00:26] juanpaucar: has joined #ruby
[08:01:19] _blizzy_: has joined #ruby
[08:02:15] juanpauc_: has joined #ruby
[08:04:23] juanpaucar: has joined #ruby
[08:04:35] tercenya_: has joined #ruby
[08:05:42] carglass-rep: has joined #ruby
[08:06:07] Rubie: has joined #ruby
[08:06:10] juanpaucar: has joined #ruby
[08:08:15] juanpauc_: has joined #ruby
[08:10:16] khebbie: has joined #ruby
[08:10:16] Ox0dea: has joined #ruby
[08:10:18] juanpaucar: has joined #ruby
[08:11:00] riotjones: has joined #ruby
[08:12:03] juanpaucar: has joined #ruby
[08:12:55] sdfgsdfg: has joined #ruby
[08:14:07] juanpauc_: has joined #ruby
[08:16:11] juanpauc_: has joined #ruby
[08:16:11] Soda: has joined #ruby
[08:16:24] rbowlby: has joined #ruby
[08:16:46] michael_mbp: has joined #ruby
[08:16:59] tercenya: has joined #ruby
[08:18:06] juanpaucar: has joined #ruby
[08:19:00] cornerma1: has joined #ruby
[08:19:50] juanpaucar: has joined #ruby
[08:20:25] chipotle: has joined #ruby
[08:22:01] juanpaucar: has joined #ruby
[08:22:58] Thr3d: has joined #ruby
[08:23:16] ecksit: has joined #ruby
[08:23:50] juanpauc_: has joined #ruby
[08:25:58] juanpaucar: has joined #ruby
[08:27:43] juanpaucar: has joined #ruby
[08:28:20] einarj: has joined #ruby
[08:29:08] alphaatom: has joined #ruby
[08:29:44] juanpaucar: has joined #ruby
[08:30:02] iamninja: has joined #ruby
[08:31:37] codecop: has joined #ruby
[08:31:51] juanpauc_: has joined #ruby
[08:32:15] DelDotB: has joined #ruby
[08:33:45] juanpauc_: has joined #ruby
[08:34:01] futilegames: has joined #ruby
[08:34:20] allcentury: has joined #ruby
[08:34:20] carglass-rep: has joined #ruby
[08:34:24] futilegames: has left #ruby: ()
[08:34:46] rolfb: has joined #ruby
[08:35:52] juanpaucar: has joined #ruby
[08:37:36] juanpaucar: has joined #ruby
[08:39:32] juanpauc_: has joined #ruby
[08:41:34] juanpaucar: has joined #ruby
[08:42:47] krz: has joined #ruby
[08:43:30] juanpaucar: has joined #ruby
[08:45:34] juanpauc_: has joined #ruby
[08:47:34] juanpaucar: has joined #ruby
[08:48:53] UtkarshRay: has joined #ruby
[08:49:22] juanpauc_: has joined #ruby
[08:50:28] khebbie: has joined #ruby
[08:51:28] juanpaucar: has joined #ruby
[08:52:02] mary5030: has joined #ruby
[08:53:17] lavros: has joined #ruby
[08:53:23] juanpauc_: has joined #ruby
[08:54:39] psye: has joined #ruby
[08:55:08] juanpaucar: has joined #ruby
[08:57:11] juanpauc_: has joined #ruby
[08:59:21] juanpaucar: has joined #ruby
[09:00:18] dfockler: has joined #ruby
[09:01:07] juanpauc_: has joined #ruby
[09:03:15] juanpaucar: has joined #ruby
[09:05:16] juanpaucar: has joined #ruby
[09:06:10] applesource: has joined #ruby
[09:06:14] marr: has joined #ruby
[09:07:05] juanpaucar: has joined #ruby
[09:08:59] ne1l: has joined #ruby
[09:09:03] juanpauc_: has joined #ruby
[09:10:57] juanpaucar: has joined #ruby
[09:12:52] juanpauc_: has joined #ruby
[09:14:26] Musashi007: has joined #ruby
[09:14:47] juanpaucar: has joined #ruby
[09:14:50] zenspider: !ban juanpaucar$##fix-your-connection !T 1h please fix your connection
[09:14:53] ruboto: zenspider, could not find a matching user for "juanpaucar$##fix-your-connection"
[09:15:15] zenspider: !ban juanpaucar !T 1h please fix your connection
[09:15:16] ChanServ: +b juanpaucar!*@*
[09:15:16] ChanServ: ChanServ kicked juanpaucar: please fix your connection
[09:15:30] jhass: 1h didn't help for bronson either
[09:16:03] dgutierrez1287: has joined #ruby
[09:16:29] jhass: nah, I'll reset it to a forward once it expired
[09:17:34] rbowlby: has joined #ruby
[09:18:00] stardiviner: has joined #ruby
[09:18:26] kamyl_: has joined #ruby
[09:18:40] juanpauc_: has joined #ruby
[09:18:46] ChanServ: +b *!*@181.39.194.178
[09:18:46] ChanServ: ChanServ kicked juanpauc_: please fix your connection
[09:21:18] bruno-: has joined #ruby
[09:22:38] Devils: has joined #ruby
[09:23:08] Devils: hello what was it gem install domain..? dont remember
[09:23:23] certainty: Devils: rubygems.org
[09:24:32] verdoc: has joined #ruby
[09:24:54] certainty: i totally misunderstood
[09:28:25] dionysus69: has joined #ruby
[09:29:08] einarj: has joined #ruby
[09:29:45] Chau: has joined #ruby
[09:30:40] Ox0dea: Devils: Was it domainatrix?
[09:34:06] Devils: and what is difference between a container and vps?
[09:34:36] yfeldblum: has joined #ruby
[09:36:22] vdamewood: has joined #ruby
[09:37:10] yfeldblum: has joined #ruby
[09:38:18] kr3ssh: has joined #ruby
[09:39:40] d2dchat_: has joined #ruby
[09:41:01] certainty: Devils: your favorite search engine will be able to answer that
[09:49:36] chipotle: trying to code on ketamine is not trivial
[09:50:27] Ilyes512: has joined #ruby
[09:50:30] dionysus69: has joined #ruby
[09:51:03] rushed: has joined #ruby
[09:51:28] devoldmx: has joined #ruby
[09:53:26] Ox0dea: chipotle: Enlighten us?
[09:53:41] chipotle: the walls are coming down
[09:53:51] chipotle: i need to move the semicolon key to the a key
[09:53:53] chipotle: i keep presssing
[09:53:56] chipotle: but nothing happens
[09:54:08] krz: has joined #ruby
[09:54:55] Ox0dea: > semicolon
[09:54:56] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[09:56:12] kamyl_: has joined #ruby
[09:58:13] zenspider: I need a longer flexible hyper-sharp knife for butchery. god I'm hungry now. :)
[09:59:49] Ox0dea: zenspider: Have you considered using a tantou?
[10:00:27] zenspider: is that different from a tanto ? regional spelling perhaps
[10:00:34] allcentury: has joined #ruby
[10:00:42] Ox0dea: No, it's the same thing, but Hepburn is best romanization.
[10:01:49] zenspider: ok. yes. if it is anything like the rest of my japanese knives, they're too rigid
[10:02:17] skade: has joined #ruby
[10:03:27] carglass-rep: has joined #ruby
[10:06:15] relic: We have a video of zenspider in action: https://www.youtube.com/watch?v=xlPqdCS2sA0
[10:07:09] zenspider: cinderblock?? I would never do that to my knives
[10:08:12] DLSteve: has joined #ruby
[10:08:26] zenspider: that blade style is what I think of when you say tanto blade. hard, rigid, straight edged
[10:08:36] zenspider: cinderblock? that just makes me sad
[10:10:44] kr3ssh: has joined #ruby
[10:11:56] TomyLobo: does ruby have something like views on hashes?
[10:12:09] TomyLobo: for instance a view of a hash without a certain key
[10:12:29] zenspider: views. on. hashes...
[10:12:39] zenspider: you mean like a db view??
[10:13:04] stardiviner: has joined #ruby
[10:13:33] TomyLobo: the same concept, but on a hash instead of a database table
[10:13:40] zenspider: I suppose you could make an object that delegates to a hash but hides certain k/v pairs... just not sure why you'd want such a thing
[10:13:54] zenspider: short answer is: no, but you're free to make one
[10:14:21] pandaant: has joined #ruby
[10:15:15] ChanServ: -bb juanpaucar!*@* *!*@181.39.194.178
[10:15:48] TomyLobo: makes more sense with immutable stuff or generators
[10:16:08] zenspider: no... can't say that it does
[10:16:36] TomyLobo: well for generators it's the only way to remove elements
[10:17:44] abyss: has joined #ruby
[10:24:09] Moeh: has joined #ruby
[10:24:42] Timba-as: has joined #ruby
[10:25:02] codecodecode123: ACTION slaps jhass around a bit with a large fishbot
[10:25:15] codecodecode123: didn't mean to do that
[10:25:34] Moeh: Hello, is there any library / gem that can pretty print sql for me? Say I have something like "select * from users inner join comments" and I want it capitalized, line breaks etc.
[10:26:29] TomyLobo: Moeh, http://stackoverflow.com/questions/10347727/pretty-print-sql-in-ruby
[10:26:37] TomyLobo: google, first hit :)
[10:27:26] sarkyniin: has joined #ruby
[10:28:05] zenspider: I HAVE PIXELS
[10:28:20] relic: Stop shouting all the time.
[10:28:23] nfk: has joined #ruby
[10:28:28] chipotle: Ox0dea: you are like the worst friend ever
[10:28:42] chipotle: has left #ruby: ("cheerio")
[10:28:45] abyss: has joined #ruby
[10:29:55] einarj: has joined #ruby
[10:32:28] Zackio: has joined #ruby
[10:34:39] allcentury: has joined #ruby
[10:34:53] XF: has joined #ruby
[10:36:46] carglass-rep_: has joined #ruby
[10:37:04] bruno-: has joined #ruby
[10:37:15] zenspider: pixels and lines AND circles. yay!
[10:37:23] zenspider: now to rewrite the whole thing :)
[10:38:26] yxhuvud: zenspider: what are you doing?
[10:38:28] bubbys: has joined #ruby
[10:38:43] relic: Emacsin'.
[10:39:07] zenspider: yxhuvud: I'm testing feasibility of a rewrite of rubysdl
[10:39:19] zenspider: and I think I just flipped to "feasible"
[10:39:25] greg: has joined #ruby
[10:39:35] zenspider: 410 lines of C to get a window up w/ active drawing in it
[10:40:17] zenspider: now I need to nuke that code and clean room it, preferably with a bit more OO design
[10:41:40] [k-: has joined #ruby
[10:47:30] khebbie: has joined #ruby
[10:48:25] ht__: has joined #ruby
[10:50:23] zenguy_pc: has joined #ruby
[10:53:07] XF: has left #ruby: ()
[10:55:41] jenrzzz: has joined #ruby
[10:56:16] ChoiKyuSang: has joined #ruby
[10:57:20] bruno-: has joined #ruby
[10:58:03] banister: has joined #ruby
[10:58:58] kr3ssh: has joined #ruby
[11:00:42] charliesome: has joined #ruby
[11:02:10] relic: What the hell is this garbage. http://www.nationalreview.com/article/422819/racist-microaggression-list
[11:02:42] sevenseacat: seems unrelated to ruby.
[11:03:14] relic: sevenseacat: :)
[11:03:29] ruboto: relic, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[11:03:52] relic: ACTION eyes apeiros.
[11:06:34] djbkd: has joined #ruby
[11:08:28] zenspider: ACTION eyes relic
[11:13:07] user1138: has joined #ruby
[11:19:31] qba73: has joined #ruby
[11:21:04] lkba: has joined #ruby
[11:21:46] skade: has joined #ruby
[11:25:39] nanoz: has joined #ruby
[11:25:52] jenrzzz: has joined #ruby
[11:25:59] d2dchat: has joined #ruby
[11:26:07] rfmind_: has joined #ruby
[11:30:23] zenspider: yay! text and beziers! and the sun hasn't even started coming up!
[11:37:43] renderful: has joined #ruby
[11:39:47] n3il: has joined #ruby
[11:41:32] khebbie: has joined #ruby
[11:43:03] dgutierrez1287: has joined #ruby
[11:43:30] rickmasta: has joined #ruby
[11:44:39] millerti: has joined #ruby
[11:44:40] NeverDie: has joined #ruby
[11:45:43] Mia: has joined #ruby
[11:45:43] Mia: has joined #ruby
[11:49:13] AlexAltea: has joined #ruby
[11:51:05] phutchins: has joined #ruby
[11:53:00] gamename: has joined #ruby
[11:55:28] hotpancakes: has joined #ruby
[11:58:06] IrishGringo: has joined #ruby
[11:58:27] Gnomethrower: has joined #ruby
[11:58:43] Gnomethrower: anyone got good resources for learning Ruby? I'm currently doing Learn Ruby the Hard Way
[11:58:53] Gnomethrower: just wondering if there's anything clearly superior to it
[11:59:32] fgo: has joined #ruby
[12:00:09] flegercovateam: Gnomethrower: read ruby programming (1.9-2.0).Dave Thomas.2013
[12:00:32] sevenseacat: I'd recommend the well-grounded rubyist
[12:02:02] Gnomethrower: flegerCovateam, sevenseacat: Thanks! :)
[12:03:00] yfeldblum: has joined #ruby
[12:05:07] lannonbr_: has joined #ruby
[12:05:38] lannonbr: has joined #ruby
[12:05:45] Mon_Ouie: has joined #ruby
[12:07:32] rbowlby: has joined #ruby
[12:07:35] djbkd: has joined #ruby
[12:08:36] xgley: has joined #ruby
[12:11:12] The_Phoenix: has joined #ruby
[12:13:59] Rubie: has joined #ruby
[12:15:03] AlexAltea: has joined #ruby
[12:17:24] khebbie: has joined #ruby
[12:18:28] The_Phoenix: has joined #ruby
[12:18:46] The_Phoenix: has joined #ruby
[12:20:51] _blizzy_: has joined #ruby
[12:21:02] Axy: has joined #ruby
[12:21:02] Axy: has joined #ruby
[12:21:12] carglass-rep_: In here https://github.com/kestal/omniauth-tequila/blob/master/lib/omniauth/strategies/tequila.rb#L127
[12:22:51] carglass-rep_: I pretty much know nothing about ruby and am trying to log a http request to understand what goes wrong. At first I had a "TypeError (no implicit conversion of Fixnum into String)" and tried surrounding the port number with a `to_s()` but I get another error. Is this not syntactically valid?
[12:25:50] Flowrhent: has joined #ruby
[12:25:53] exadeci: has joined #ruby
[12:25:55] carglass-rep_: oh, it's number.to_s
[12:28:00] houhoulis: has joined #ruby
[12:29:08] _blizzy_: has joined #ruby
[12:30:36] FernandoBasso: has joined #ruby
[12:31:09] Soda: has joined #ruby
[12:31:10] Silox|: has joined #ruby
[12:31:28] einarj: has joined #ruby
[12:33:11] howdoi: has joined #ruby
[12:33:15] kirun: has joined #ruby
[12:33:26] sameerynho: has joined #ruby
[12:35:18] d2dchat: has joined #ruby
[12:37:16] michael_mbp: has joined #ruby
[12:37:23] [k-: has anyone seen Rinzlit lately
[12:38:27] isene: has joined #ruby
[12:38:44] lannonbr: has joined #ruby
[12:39:13] platosha_: has joined #ruby
[12:39:48] phutchins: has joined #ruby
[12:41:38] shmilan: has joined #ruby
[12:42:46] farn: has joined #ruby
[12:42:56] [k-: i was a little worried there
[12:43:20] djbkd: has joined #ruby
[12:43:41] Gribo: has joined #ruby
[12:44:05] Rinzlit: [k- yeah ive just been busy with work pm me
[12:45:35] isene: After hours upon hours of googling, I resort to asking for a hand in debugging my issue (not really looking for The Answer, but more help in debugging). Here goes: I have a script that converts a certain structured text file to a graph. I want to offer the script as an online service (user can upload a file and get the resultant png file on a web page). The script works perfectly on the command line and inside irb (synopsis for my script is: hy
[12:45:37] grenierm: has joined #ruby
[12:46:37] Kallis: has joined #ruby
[12:47:24] isene: btw, "hypergraph" is itself a ruby script
[12:48:22] [k-: (...) synopsis for my script is: hy
[12:48:32] [k-: i believe your text got cut off
[12:49:51] umgrosscol: has joined #ruby
[12:51:28] devoldmx: has joined #ruby
[12:51:28] leafybasil: has joined #ruby
[12:51:37] Papierkorb: Is there by the way a Ruby Editor/IDE, which has a graphical debugger?
[12:51:40] AlexAltea: has joined #ruby
[12:51:50] Papierkorb: If RubyMine has it, good for them, but it has to be free ..
[12:51:54] ndrei: has joined #ruby
[12:52:10] isene: After hours upon hours of googling, I resort to asking for a hand in debugging my issue (not really looking for The Answer, but more help in debugging). Here goes: I have a script that converts a certain structured text file to a graph. I want to offer the script as an online service (user can upload a file and get the resultant png file on a web page). The script works perfectly on the command line and inside irb (synopsis for my script is: hy
[12:52:25] [k-: your text is still cut off
[12:52:26] Papierkorb: isene: your text is still cut off at the end.
[12:52:37] isene: hmmm... wtf?
[12:52:40] lxsameer_: has joined #ruby
[12:52:45] sevenseacat: isene: IRC has a line length limit.
[12:52:46] khebbie: has joined #ruby
[12:52:46] [k-: irc has a limit
[12:52:47] Papierkorb: messages can't be infinite in length.
[12:52:50] [k-: like twitter
[12:52:58] Papierkorb: isene: irssi doesn't seem to do that properly.
[12:52:58] isene: ah, I'll split it
[12:53:07] Papierkorb: Weechat is better anyway
[12:53:19] sevenseacat: Papierkorb: your aversion to paying for software will cost you more than the cost of the software.
[12:53:35] Papierkorb: sevenseacat: This is my hobby. I'm a student.
[12:53:49] [k-: graphical debugger?
[12:53:50] Blaguvest: has joined #ruby
[12:53:53] Papierkorb: Not going to pay for what I push out for free
[12:53:57] isene: ... The script works perfectly on the command line and inside irb (synopsis for my script is: hypergraph [OPTIONS] filename.hl) - but it simply Will Not run fra a cgi script (all else in the cgi script runs nicely). The cgi script takes an uploaded file as input, creates a text file called "hypergraph.hl" (works fine), but running this in the cgi script fails: @a = %x{hypergraph -ol hypergraph.hl}
[12:54:35] sevenseacat: Papierkorb: your loss.
[12:54:44] ndrei: has joined #ruby
[12:54:46] Papierkorb: Any useful reply instead?
[12:55:13] sacarlson: has joined #ruby
[12:55:42] [k-: buuuuuurn sevenseacat
[12:55:45] isene: My message got across fine?
[12:56:38] [k-: is the last word %x{hypergraph -ol hypergraph.hl}
[12:58:01] [k-: yes it got across fine
[12:58:20] [k-: do you want me to run md5 over it to check?
[12:58:28] zenguy_pc: has joined #ruby
[12:58:46] xgley: has joined #ruby
[12:59:04] isene: [k-: Ehm?
[12:59:11] [k-: one problem i can think of is, is it in the same directory?
[12:59:13] Olipro: has joined #ruby
[12:59:28] sevenseacat: knowing what the error is might help.
[12:59:50] [k-: isene: you know, those hashing functions people use to check if a file dwnloaded successfully
[12:59:51] tobacco_joe: has joined #ruby
[13:00:04] mhib: has joined #ruby
[13:00:16] bubbys: has joined #ruby
[13:00:45] fgo: has joined #ruby
[13:00:47] ndrei: has joined #ruby
[13:01:41] isene: I know the file downloads, and the file "hyperlist.hl" is created by my cgi script and filled with the content of the downloaded file, but when I try to run the command "@a = %x{hypergraph -ol hypergraph.hl}" from the cgi script, it fails
[13:02:14] danielpclark: has joined #ruby
[13:02:26] sacarlson: has joined #ruby
[13:02:28] shmilan: has joined #ruby
[13:02:30] [k-: <sevenseacat> knowing what the error is might help.
[13:02:50] isene: But running irb (from the directory of the created file "hyperlist.hl") and issuing the command "@a = %x{hypergraph -ol hypergraph.hl}", it works just nicely.
[13:03:09] sacarlson: how does ruby link into openssl on linux ubuntu? do they compile there own copy or do they link into the system libs?
[13:03:11] isene: The exit code is 1
[13:03:28] [k-: do you have a stack trace or whatever
[13:03:49] sacarlson: as even when I down grade my openssl version I still have this error dh key too small (OpenSSL::SSL::SSLError) for a site that has bad settings that I still need to use
[13:04:00] isene: I'm not sure how to stack trace from the cgi script run from the browser...
[13:04:38] isene: A pointer on how to stack trace this would be most helpful
[13:05:39] [k-: i have no idea too
[13:06:06] [k-: but are you absolutely sure that hypergraph.hl id is in the same directory
[13:06:27] banister: has joined #ruby
[13:07:03] autrilla: has joined #ruby
[13:07:38] isene: yes - I trigger the script from the browser and the file "hyperlist.hl" is created in the correct directory with the correct content - and I can run the command on it from within irb in that directory
[13:08:12] sacarlson: never mind I found my problem still lies in openssl even the old version still has this problem as seen with openssl s_client -connect test.stellar.org:9002
[13:09:20] [k-: and the cgi script is in the same directory?
[13:09:25] isene: Papierkorb: What would be the selling points for weechat over irssi (have never tried weechat, but interested in doing so)?
[13:09:43] sevenseacat: isene: but is your cgi script running from the same directory as the uploaded file?
[13:10:38] banister: has joined #ruby
[13:10:48] leafybasil: has joined #ruby
[13:11:04] [k-: ACTION leaves a note here for sevenseacat: I'm here!
[13:11:16] isene: [k-: Yes, the cgi script is run from the same directory; i.e the cgi-bin directory is where the cgi csript resides, it creates the text file in that directory. The script "hypergraph" is in /usr/bin and thus accessible from anywhere)
[13:12:05] hellerbarde2: has joined #ruby
[13:12:15] sevenseacat: [k-: well you were getting totally ignored so I thought rephrasing the question might help :)
[13:12:38] isene: So, the cgi script fails on running the command "@a = %x{hypergraph -ol hypergraph.hl}", but irb in that same directory runs it just fine. Infuriatingly annoying.
[13:13:24] sameerynho: has joined #ruby
[13:14:00] [k-: can you provide the cgi script?
[13:14:17] mblagden: has joined #ruby
[13:14:28] [k-: you dont have a stack trace either, so im not sure how you determined that that was the problem
[13:15:54] Mia: has joined #ruby
[13:15:54] Mia: has joined #ruby
[13:16:29] jhass: isene: get some debug info, p $? after the %x{}, modify hypergraph to print working directory and what not
[13:18:32] gizmore: has joined #ruby
[13:18:46] gizmore: has joined #ruby
[13:19:06] devdazed: has joined #ruby
[13:20:49] isene: jhass: I have $? output on the resulting web page - and it only says exit code 1 (not very helpful). Modifying hypergraph to print debug info is a good advice. Before I go down that route any other pointers I can try while I'm at the debugging (so that I don't have to go back and forth on this channel much)?
[13:20:56] System42: has joined #ruby
[13:21:16] devoldmx: has joined #ruby
[13:21:17] Chau: has joined #ruby
[13:21:48] sacarlson: has left #ruby: ()
[13:21:49] jher: has joined #ruby
[13:22:02] jhass: the general advice is to list _all_ your assumptions, no matter how trivial, then list ways to verify them, then verify them
[13:22:03] isene: [k-: The important parts of the cgi script is:
[13:22:08] isene: require "cgi"
[13:22:08] isene: require "erb"
[13:22:21] isene: hlfile = File.new("hypergraph.hl", "w")
[13:22:21] isene: hlfile.puts(fObj.read)
[13:22:21] isene: hlfile.close
[13:22:24] jhass: !kick isene Please use https://gist.github.com
[13:22:25] ruboto: ruboto kicked isene: use https://gist.github.com
[13:22:25] ruboto: -o ruboto
[13:23:12] isene: has joined #ruby
[13:24:18] [k-: floodkick!
[13:25:02] victortyau: has joined #ruby
[13:25:26] stardiviner: has joined #ruby
[13:26:22] isene: oh well, just a few lines... pastebin coming up
[13:27:07] [k-: please use gist
[13:27:28] Gnomethrower: has joined #ruby
[13:27:43] isene: [k-: Problems with gist in qutebrowser, here: http://pastebin.com/VWgJdpnt
[13:27:43] ruboto: isene, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7d9047b357c040d8bdde
[13:27:43] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[13:27:54] sevenseacat: I don't think anyone reads the channel rules. ever.
[13:28:55] jhass: gem install gist
[13:29:36] carglass-rep: has joined #ruby
[13:29:40] sevenseacat: so you verified that hypergraph.hl definitely contains what you think it does?
[13:30:02] sevenseacat: we can only run through basic debugging stuff here, that should be pretty obvious
[13:30:32] isene: sevenseacat: Yes, it is identical to the uploaded file - and running the hypergraph command on that resulting file from irb works just fine
[13:31:14] sevenseacat: so where does it start going wrong?
[13:31:22] isene: sevenseacat: I understand. I'm just looking for general pointers (like the "modify your hypergraph script to print out working directory" and such
[13:31:35] sevenseacat: so you dont actually want our help?
[13:31:38] jhass: isene: add 2>&1 to your command
[13:31:49] sevenseacat: I mean that kind of basic stuff you dont need us for, do you?
[13:32:11] isene: sevenseacat: Oh yes, I want your help, but I am not expecting you to actually Solve my problem, just to give me homework ;-)
[13:32:12] Papierkorb: isene: I never got irssi to do what I wanted, but weechat just worked for me. It also does message splitting correctly afaik. In the end, stick with irssi if it works for you, I use graphical IRC clients
[13:32:48] dorei: has joined #ruby
[13:33:26] isene: jhass: Thanks for that pointer
[13:34:19] sevenseacat: I'm glad we spent 45min establishing that
[13:35:12] isene: sevenseacat: It's what I said in my opening message :-)
[13:36:19] jhass: isene: if you want efficient help you should try and report the result of any made suggestion asap, trying to get as much general blabla by restating your current problem over and over again is just wasting time, of your and us
[13:37:45] isene: I get that, but by asking for a bit more homework, I got your very pointer - which made it effective. I just wanted any other simple pointers exhausted
[13:37:56] [k-: why isnt @a being used
[13:38:26] djbkd: has joined #ruby
[13:38:40] isene: [k-: It's only needed for debugging (putting it on the resulting web page)
[13:38:57] Papierkorb: Does anyone know what will be new with Ruby 2.3?
[13:39:33] jhass: debugging is a continuous process of making changes to observe behavior, comparing that to your own assumptions and recalculating your assumptions based on the observed behavior. It is not working through a checklist of the top 100 things people do wrong
[13:39:38] [k-: the changnlogs have tdat info
[13:40:07] hone: has joined #ruby
[13:40:45] isene: jhass: Having debugged since 1991, I get that concept :-)
[13:41:02] jhass: isene: well, you didn't make the impression tbh
[13:41:11] TvL2386: has joined #ruby
[13:41:19] devoldmx: has joined #ruby
[13:42:05] jhack: has joined #ruby
[13:42:49] isene: jhass: It's just when I have tried just about every conceivable angle and googled for more than 10 hours that I resort to asking for help on an IRC channel. And then I would want to be open for all help offered and not run back and forth too much
[13:43:15] sevenseacat: ACTION munches on popcorn
[13:43:27] jhass: isene: you didn't show any of doing that
[13:43:30] sevenseacat: you deign to resort to asking for our advice?
[13:43:36] jhass: your question conveyed 10mins of debugging effort
[13:43:37] sevenseacat: sorry, I'll shut up.
[13:43:39] alphaatom: has joined #ruby
[13:43:54] sevenseacat: ACTION goes back to fiddling eith ecto
[13:44:16] [k-: commaexception
[13:44:22] nsuke: has joined #ruby
[13:44:56] isene: jhass: Having seen the best banging their head for hours on the simplest of comma errors, it can indeed come across like that :-)
[13:44:59] [k-: isene: so im guessing uploaded.html in a directory up is what hypergraph generates?
[13:45:35] r0x0rZ: has joined #ruby
[13:45:39] sevenseacat: isene: wow, you are sounding really arrogant right about now
[13:45:50] bluOxigen: has joined #ruby
[13:45:55] isene: sevenseacat: How so? Or why?
[13:46:52] devdazed_: has joined #ruby
[13:46:59] r0x0rZ: please consider following code -> http://pastebin.com/XwQ6hRGy see line 18. why do i need to return `@total` from the function `calculate_total` since @total is instance variable that has its accessor method set up? shouldn't the code on line 16 be enough?
[13:47:00] ruboto: r0x0rZ, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/80b9e67f3d317961776a
[13:47:00] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[13:47:19] sevenseacat: does NO-ONE read the channel rules anymore?
[13:47:29] isene: sevenseacat: Or maybe you read it as I was portraying myself as among the best? I am certainly not. But I have had the pleasure of working with some really excellent programmers (that run circles around me)
[13:47:32] r0x0rZ: sevenseacat: sorry new here.. will not happen again
[13:48:20] gamename: has joined #ruby
[13:48:25] jhass: r0x0rZ: that's totally up to you
[13:48:47] [k-: r0x0rZ: first thing: dont use for
[13:48:51] sevenseacat: r0x0rZ: enough for what?
[13:48:53] jhass: r0x0rZ: btw nicer way to write it: @contents.inject(0) {|sum, item| sum + item.price }
[13:49:12] r0x0rZ: [k-: what's wrong with for?
[13:49:21] sevenseacat: I wish it would be deleted from ruby
[13:49:29] jhass: it's not idiomatic and actually slower these days
[13:49:51] [k-: and it leaks!
[13:49:58] r0x0rZ: jhass: hmm i find it's common among other langs so i just use it because i'm used to it. you say in ruby it's better to use that shorthand expression?>
[13:50:16] workmad3: has joined #ruby
[13:50:46] [k-: jhass: advocate reduce!
[13:50:49] jhass: r0x0rZ: yes, there are no usecases for for anymore
[13:50:53] ruby-lang583: has joined #ruby
[13:51:14] r0x0rZ: jhass: where can I find more info about that thing? what it's called?
[13:51:25] jhass: r0x0rZ: if you need plain iteration use #each, but for most stuff Enumerable got you covered with something better
[13:51:44] jhass: &ri Enumerable#inject
[13:51:44] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#inject-instance_method
[13:52:16] jhass: @total = @contents.inject... of course in case it wasn't obvious
[13:52:44] jhass: that'll also return @total implicitly because the value of an assignment expression is its rhs
[13:55:00] [k-: isene: so im guessing uploaded.html in a directory up is what hypergraph generates?
[13:55:30] jhass: [k-: give up, they'll not provide any more details
[13:56:20] r0x0rZ: jhass: thanks. i will read up more on this
[13:56:56] hfp: I'm writing an app using a Ruby framework (not Rails, not Sinatra) that doesn't come with a database or models or anything out of the box. I have to add it myself. What is thebest route? Should I reuse some Rails gems like ActiveRcord and a postgres database? Or Sequel? The framework also makes no assumptions about the model. Is ActiveModel the way to go?
[13:57:38] bougyman: hfp: I like my bike sheds to be round and red.
[13:57:42] bhaak: has joined #ruby
[13:57:58] hfp: bougyman: wat?
[13:58:08] decoponio: has joined #ruby
[13:58:22] jhass: hfp: up to you, Sequel, ActiveRecord and I guess ROM are the popular choices
[13:58:27] bougyman: You'll get as many recommendations as there are people with an opinion.
[13:59:01] bougyman: which ruby framework are you using?
[13:59:21] bougyman: some things play better or worse with others.
[13:59:40] hfp: bougyman: I'm using Adhearsion
[14:00:14] bougyman: are you running it on the phone switch or as a separate app over the network?
[14:00:24] bougyman: if it's on the phone switch, you want it as light as possible.
[14:00:48] hfp: I'm running it in a docker container. For now, the app container and the freeswitch instance or in containers on the same machine
[14:00:54] bougyman: if you're already pg, sequel (and sequel_pg) will get you the best performance.
[14:01:12] hfp: I don't have any db yet, it's a rewrite from scratch
[14:01:16] chichou: has joined #ruby
[14:01:36] bougyman: are you doing a pbx or a call center?
[14:01:45] bougyman: i did ruby + freeswitch for 6 years.
[14:01:50] fgo: has joined #ruby
[14:02:05] hfp: I'm doing an app just for myself and family. I want it to be clean but it's not mission critical
[14:02:12] bougyman: i'm glad the adhearsion boys finally got fs support done. I'm assuming it's done, if you're using it.
[14:02:23] bougyman: I wrote freeswitcher back at the time because there was no good ruby + fs lib
[14:02:23] hfp: yes it works fine with fs :)
[14:02:56] hotpancakes: has joined #ruby
[14:03:00] bougyman: if you're doing a simple app you could just use httapi served by roda.
[14:03:02] hotpancakes: has joined #ruby
[14:03:13] bougyman: you wouldn't belive how much you can do with simple httapi and never have to get down in the dirty weeds.
[14:03:15] hfp: I can relate... The original version of this app is written in plain asterisk dialplan... no framework, nothing. it's a spaghetti mess now
[14:03:21] joneshf-laptop: has joined #ruby
[14:03:27] bougyman: hahah, I converted a lot of those.
[14:03:48] alphaatom: has joined #ruby
[14:03:49] hfp: I didnt know any better back then
[14:03:51] bougyman: if the app can be done in an asterisk dialplan, though, it can surely be done in httapi.
[14:04:05] bougyman: much simpler that the work of an adhearsion stack.
[14:04:14] hfp: I'm adding a lot of functionality so I dont think Asterisk dialplan would cut it anymore
[14:04:17] bougyman: and little to no dependencies.
[14:04:24] bougyman: right, but httapi would.
[14:04:33] hfp: let me look it up
[14:04:46] bougyman: you put a line in your fs dialplan and it makes an http call to 'your_web_app' which then gets full control.
[14:04:54] bougyman: I have a couple apps that use it, lemme fine
[14:04:56] skade: has joined #ruby
[14:05:28] ItSANgo: has joined #ruby
[14:05:49] hfp: oh right, I'm not writing the webapp just yet; I'm writing the voice part for now. The prompts, what happens to the calls, how they are connected or disconnected to each other etc
[14:06:08] hfp: and one function is to be able to record a call then upload it to s3 and receive it by email
[14:06:15] bougyman: https://github.com/rubyists/dcid/blob/master/node/lookup.rb
[14:06:16] Contigi777: has joined #ruby
[14:06:22] bougyman: those are two innate routes.
[14:06:29] elton_: has joined #ruby
[14:06:34] hfp: and I think the easiest way to then display this in a future web app would be to store the metadata from the recording into some kind of db
[14:06:38] bougyman: outbound calls go through index() and get their caller id set.
[14:06:47] bougyman: inbound calls hit inbound() and decide where to route.
[14:07:00] bougyman: it's as simple as that.
[14:07:01] astrobun_: has joined #ruby
[14:07:02] hahuang61: has joined #ruby
[14:07:09] bougyman: hfp: hah, you should look at tinycdr.
[14:07:21] bougyman: that does all of what you're looking to do other than the s3 shipping part.
[14:07:31] Gnomethrower: has joined #ruby
[14:07:38] diprotic: has joined #ruby
[14:07:38] diprotic: has joined #ruby
[14:07:41] bougyman: https://github.com/rubyists/tiny_cdr
[14:07:52] bougyman: ignore the doc, it doesn't write to couch anymore
[14:08:06] bougyman: only postgres.
[14:08:13] tobyx_: has joined #ruby
[14:08:17] pizzaops_: has joined #ruby
[14:08:17] rflot_: has joined #ruby
[14:08:18] jmhmccr_: has joined #ruby
[14:08:21] Eleeleth_: has joined #ruby
[14:08:22] zipkid__: has joined #ruby
[14:08:41] _whitelogger_: has joined #ruby
[14:08:53] it_tard: has joined #ruby
[14:09:10] danzilio_: has joined #ruby
[14:09:10] andersh_: has joined #ruby
[14:09:35] ahuman_: has joined #ruby
[14:09:37] rikai_: has joined #ruby
[14:09:51] Vile`: has joined #ruby
[14:10:13] bhaak: has joined #ruby
[14:10:32] wlanboy_: has joined #ruby
[14:10:43] patteh_: has joined #ruby
[14:10:46] unsymbol_: has joined #ruby
[14:10:47] verto_: has joined #ruby
[14:10:50] DanKnox_: has joined #ruby
[14:10:50] destruct1re: has joined #ruby
[14:10:51] txdv_: has joined #ruby
[14:10:53] mblagden1: has joined #ruby
[14:10:55] xsdg_: has joined #ruby
[14:10:59] csaunders_: has joined #ruby
[14:11:00] raddazong: has joined #ruby
[14:11:00] jso: has joined #ruby
[14:11:03] yie_: has joined #ruby
[14:11:09] ec\_: has joined #ruby
[14:11:18] sn0wb1rd: has joined #ruby
[14:11:18] silverdust: has joined #ruby
[14:11:19] zenguy_pc2: has joined #ruby
[14:11:19] scottschecter_: has joined #ruby
[14:11:25] ArnaudM: has joined #ruby
[14:11:27] hfp: I see, thanks
[14:11:34] NeverDie: has joined #ruby
[14:11:36] doublemalt_: has joined #ruby
[14:11:39] hfp: what do you use now to write voip apps bougyman ?
[14:12:07] Scroff: has joined #ruby
[14:12:08] martinbjeldbak: has joined #ruby
[14:12:32] ipstatic: has joined #ruby
[14:12:51] heyimwill: has joined #ruby
[14:13:14] sdfgsdfg: has joined #ruby
[14:13:14] sdfgsdfg: has joined #ruby
[14:13:26] dcarmich: has joined #ruby
[14:13:46] twistedpixels: has joined #ruby
[14:13:55] elektronaut: has joined #ruby
[14:13:59] soloone: has joined #ruby
[14:13:59] Olipro|: has joined #ruby
[14:14:00] tonios57: has joined #ruby
[14:14:05] NeverDie: has joined #ruby
[14:14:20] lele: has joined #ruby
[14:14:21] jhack: has joined #ruby
[14:14:21] SCHAAP137: has joined #ruby
[14:15:03] sdfgsdfg: has joined #ruby
[14:15:03] sdfgsdfg: has joined #ruby
[14:15:56] bougyman: hfp: roda + sequel.
[14:16:12] emma_: has joined #ruby
[14:16:27] bougyman: using the httapi interface. my freeswitch boxes have empty dialplans, they just call out to the roda web app for everything.
[14:17:37] hfp: and then you control fs over http api calls, correct?
[14:18:49] sn0wb1rd: has joined #ruby
[14:18:57] Mia: has joined #ruby
[14:18:57] Mia: has joined #ruby
[14:20:04] Olipro|: has joined #ruby
[14:21:46] sparr: has joined #ruby
[14:22:16] PhilK: has joined #ruby
[14:22:17] colstrom: has joined #ruby
[14:22:20] JohnBat26: has joined #ruby
[14:22:22] ryanMmhmm: has joined #ruby
[14:22:40] joe2: has joined #ruby
[14:27:40] Mon_Ouie: has joined #ruby
[14:28:07] shevy: long live ruby \o/
[14:30:10] allcentury: has joined #ruby
[14:33:09] nofxx: has joined #ruby
[14:33:09] nofxx: has joined #ruby
[14:33:24] ndrei: has joined #ruby
[14:33:57] krasnus: has joined #ruby
[14:36:38] sarkyniin: has joined #ruby
[14:38:04] iateadonut: has joined #ruby
[14:38:52] centrx: has joined #ruby
[14:39:56] amystephen: has joined #ruby
[14:40:14] iamninja: has joined #ruby
[14:42:08] shevy: anyone here uses qtruby?
[14:42:26] _blizzy_: has joined #ruby
[14:42:30] Papierkorb: shevy: I know C++/Qt, but not QtRuby beyond knowing that it exists
[14:43:56] shevy: I tried qtruby a few years ago, I think soon after qt4 + kde4 was first released
[14:44:00] heyimwill: has joined #ruby
[14:44:16] shevy: it looked nice but there was no wiki so one had to look up at the Qt API
[14:44:36] krz: has joined #ruby
[14:45:14] Papierkorb: Well, Qt5 has been out now for .. 2 years or so ;)
[14:47:08] towski_: has joined #ruby
[14:48:27] Papierkorb: I can't really find much on QtRuby. All examples still refer to Qt4 though
[14:48:33] shevy: I am using ruby-gnome usually but it feels as if there is a complete lack of manpower
[14:48:35] alejo_: has joined #ruby
[14:49:11] shevy: I was updating my local ruby-gnome documentation today and upon reaching StatusIcon, I was curious about the official API docu
[14:49:13] Papierkorb: Which might be enough if you only want it to use as gui toolkit for a desktop application. Not too many things have changed for that since the end of Qt4
[14:49:37] shevy: which I found at https://developer.gnome.org/gtk3/stable/GtkStatusIcon.html - and a typical addition is: "GtkStatusIcon has been deprecated in 3.14"
[14:49:47] shevy: so it feels like don quichotte chasing windmills again :(
[14:49:51] grotewold: has joined #ruby
[14:49:51] Papierkorb: But as someone who did some 4 years of dev with C++/Qt, I'd prefer Qt5 wherever possible ..
[14:50:08] _blizzy_: has joined #ruby
[14:51:35] Papierkorb: Impressive. Support for modern UI toolkits is really scarce outside of C/C++.
[14:51:50] banister: has joined #ruby
[14:54:19] war_pigs: has joined #ruby
[14:54:39] davedev24: has joined #ruby
[14:56:59] bhaak: has joined #ruby
[14:57:48] ndrei: has joined #ruby
[14:58:31] [k-: ?cookie shevy
[14:58:31] ruboto: shevy, here's your cookie: ????
[14:59:11] alejo__: has joined #ruby
[14:59:14] Papierkorb: shevy: Also, the communities for the Qt bindings are really small, or at least not vocal. There was like one PySide or PyQt (Python bindings for Qt) question every few weeks. For other bindings, I think I could count the number of questions on a hand after the 4 years. So, if you really want to do GUI dev with ruby, either try QtRuby with Qt4, or look for other solutions. Hate to say it. If you find a viable way of creating a GUI with ruby,
[14:59:16] Papierkorb: please tell me
[14:59:35] Papierkorb: ^ I'm refering to #Qt here on freenode. Also try asking there!
[15:00:19] jhass: the ruby-gir stuff looks interesting
[15:00:20] Papierkorb: If not today, then Tuesday evening (european timezones).
[15:00:49] zenguy_pc2: has joined #ruby
[15:03:00] fgo: has joined #ruby
[15:03:49] shevy: Papierkorb I find that strange because to me it seems as if kde is much bigger than gnome these days, including the community, but especially much so the active devs
[15:04:13] shevy: so I would also assume that the ruby bindings be in a better shape, but instead it seems as if all those toolkits took a massive blow over the last ~6 years or so
[15:04:30] Papierkorb: shevy: yeah, but then, C++ is really popular for those. C++/Qt *is* convenient and nice to work with. For stuff where it is not, they have QML
[15:05:23] Papierkorb: Building and maintaining language bindings is pretty tedious, so if you don't do it or give Digia some money for it, it won't happen
[15:05:39] Papierkorb: See QtJambi, Qt bindings for Java. Stuck at Qt4.7 - which is completely outdated
[15:06:11] khebbie: has joined #ruby
[15:07:02] Rutix: has joined #ruby
[15:07:02] Rutix: has joined #ruby
[15:08:33] nofxx: shevy, really? kde in activity > gnome? So long I don't even hear about kde
[15:08:34] Papierkorb: shevy: What are you trying to do? Just looking for a general way to do it, or something specific?
[15:08:59] nofxx: isn't unity gtkgnome spin off btw?
[15:09:03] Papierkorb: nofxx: are you not using KDE? I constantly hear about KDE and Qt, but haven't heard about gnome in years
[15:09:15] nofxx: really piece of waste of time btw
[15:09:19] nofxx: Papierkorb, gnome on arch
[15:11:01] nofxx: Papierkorb, really, never used it. It's just too ugly.
[15:11:20] Papierkorb: nofxx: I think the same about Gnome and everything that's remotely attached to it :)
[15:12:07] nofxx: Papierkorb, 10 man, 10 colors. Going to check some kde new ss. But do you mean gnome 3? I agree 2 is ugly
[15:12:21] shevy: nofxx yeah, my impression was that qt+kde have more manpower behind these days
[15:12:44] nofxx: also, kde is so windows... that's my issue with it
[15:12:46] shevy: Papierkorb I dunno... it feels that if it's all dying, it's a waste to spend time into oldschool GUIs
[15:12:46] Papierkorb: I don't like Gnome3's workflow. Gtk3 is a mess, constantly ABI/API breaking changes in minor versions, so that's crap too
[15:13:06] nofxx: Papierkorb, have you watched multiplicity with michael keaton? kde is the last clone. The clone from a clone.
[15:13:09] shevy: yeah - see the link about the above deprecation :-)
[15:13:18] nofxx: mac -> windows -> kde / mac -> gnome
[15:13:24] shevy: which is then not only a mess but also wastes the very few devs time who still do bindings
[15:13:31] Papierkorb: nofxx: KDE is super customizable. If you don't like its look, well, change it.
[15:14:12] Papierkorb: Gnome has the browser cancer in that I need a plugin for every basic task I want it to do. That's not going to fly for me
[15:14:18] nofxx: Papierkorb, nope. I'll not waste a sec of my life customizing my OS look. It need to just look good.
[15:14:27] nofxx: mac has 7 colors for highlight, and that's it.
[15:14:32] Papierkorb: Which KDE does :)
[15:14:34] nofxx: customize away
[15:14:40] Papierkorb: If you don't like it, then don't use it. Issue solved?
[15:15:23] nofxx: it still looks like this? https://www.kde.org/announcements/4.2/screenshots/desktop.png
[15:15:37] Papierkorb: That's how old exactly? 7 years or so?
[15:16:10] Papierkorb: And that's already a customized version of KDE
[15:16:17] nofxx: plasma is the new?
[15:16:24] Papierkorb: https://www.kde.org/announcements/plasma5.0/screenshots/desktop.png new default
[15:16:29] Papierkorb: no, actually not
[15:16:33] Papierkorb: that's already customized again
[15:17:02] nofxx: that's way better. But again, I prefer it more clean/minimalist.
[15:17:12] shevy: nofxx you sound as lazy as I am :-)
[15:17:34] Papierkorb: Mh? Gnome has already ten times more crap on its screen by default as that screenshot
[15:17:42] tkuchiki: has joined #ruby
[15:18:13] nofxx: shevy, hehe =D Papierkorb it does not man.
[15:18:52] Papierkorb: Taskbar with tasks, some start menu, and the tray. Takes up some 30px vertically. I don't see wasted space.
[15:19:06] Papierkorb: But then, I don't get these useless wars
[15:19:52] shevy: matz is doing cleanup: https://github.com/mruby/mruby/commit/87e11676b3a49d0dc3758c899deeab820d744b36
[15:19:54] Papierkorb: people like you put so much energy into these complaints that could be better put into just really trying those DEs, and if you don't like them, use what's better for you. These are linux based OSes, we have the choice to use what we want
[15:20:13] shevy: dunno about too much choice
[15:20:24] shevy: gnome without systemd :)
[15:20:42] nofxx: Papierkorb, I wasn't fighting, I was genuinely curious, long time no see.
[15:20:42] shevy: though I think it's only in some login component
[15:21:04] blue_deref: has joined #ruby
[15:21:10] shevy: I also don't understand those weird "online-accounts" thing... we didn't need to have online stuff a couple of years ago...
[15:21:11] chinmay_dd: has joined #ruby
[15:21:45] danzilio: has joined #ruby
[15:21:50] nofxx: Papierkorb, here's a gnome nowdays: http://orig05.deviantart.net/2a72/f/2011/267/1/a/arch_linux_gnome_3_new_2_by_cra1g321-d4au4ff.png
[15:21:58] nofxx: that's actually the hotcorner or alt + f1 screen
[15:22:00] Papierkorb: nofxx: You're on Arch, correct? Just install it, try it, and if you think it sucks, pacman -R it. This isn't ubuntu afterall. But if you want to do yourself a favor, wait another 6 months until Plasma5 gets actually stable. It's stable enough for the most part, but some random bugs are just still annoying and need to go away
[15:22:03] nofxx: there's no desktop
[15:22:04] shevy: I love kde konsole, I have multiple tabs - in one of them, irb is always active (or usually in yakuake)
[15:22:35] nofxx: Papierkorb, thanks for the tip!
[15:22:37] shevy: nofxx oh yeah... the old classical desktop idea sort of died or got changed. I am a sad panda :(
[15:22:45] [k-: ?ot lv1000
[15:22:45] ruboto: lv1000, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[15:23:13] xxneolithicxx: has joined #ruby
[15:23:16] nofxx: Papierkorb, so the actual screen is nothing, heh just the 30px bar and wallpaper
[15:23:25] nofxx: shevy, yeah ^
[15:23:52] nofxx: http://pre06.deviantart.net/cc87/th/pre/f/2011/185/6/b/arch_linux_gnome_3_by_cra1g321-d3kzo79.png
[15:23:54] shevy: [k- ruby bindings!
[15:24:27] [k-: this is a opinion war!
[15:24:56] [k-: (ok, that was overly dramatic)
[15:25:09] warmonk: has joined #ruby
[15:26:33] bhaak: has joined #ruby
[15:26:55] warmonk: has joined #ruby
[15:29:55] warmonk: has joined #ruby
[15:30:10] dimasg: has joined #ruby
[15:32:08] fgo: has joined #ruby
[15:32:43] christiandsg: has joined #ruby
[15:33:46] einarj: has joined #ruby
[15:38:39] warmonk: has joined #ruby
[15:38:40] jgt: has joined #ruby
[15:39:33] sarkyniin: has joined #ruby
[15:40:06] warmonk: has joined #ruby
[15:40:06] prestorium: has joined #ruby
[15:40:09] phutchins: has joined #ruby
[15:40:21] bap1313: has joined #ruby
[15:41:58] hotpancakes: has joined #ruby
[15:42:05] warmonk: has joined #ruby
[15:42:52] wallerdev: has joined #ruby
[15:43:11] rape: has joined #ruby
[15:43:34] rape: what is your favorite stack to use and why?
[15:44:05] jhass: rape: 1min to change your nick http://ruby-community.com/pages/user_rules#rule_2_10
[15:44:08] timonv: has joined #ruby
[15:44:10] apeiros: !ban rape !T 1h bad nick
[15:44:11] ChanServ: +b rape!*@*
[15:44:11] ChanServ: ChanServ kicked rape: bad nick
[15:44:43] wasamasa: if only people could take a hint...
[15:44:46] carglass-rep: has joined #ruby
[15:45:04] apeiros: sorry jhass, read your message after banning
[15:45:35] northfurr: has joined #ruby
[15:45:41] Peteykun: has joined #ruby
[15:47:16] dimasg: has joined #ruby
[15:47:37] Soda: has joined #ruby
[15:49:18] sumark: has joined #ruby
[15:50:13] ekleog: Any hint about how to atomically push *two* elements in a Queue? I wouldn't even mind if it forced all threads to wait, would just prefer to avoir having to recode the entire Queue class :/
[15:50:29] ekleog: s/avoir/avoid/
[15:50:32] face: has joined #ruby
[15:51:01] skade: has joined #ruby
[15:51:21] apeiros: ekleog: just push twice
[15:52:39] dopie: has joined #ruby
[15:55:41] ekleog: apeiros: Hmmm, I was guessing the thread was interrupted between the two pushes, guess I'll have to search for another bug
[15:56:56] dopieee: has joined #ruby
[15:57:33] jhass: ekleog: it might be, but if that's an issue for your code, you have a huge design issue
[15:57:34] houhoulis: has joined #ruby
[15:58:05] christiandsg: has joined #ruby
[15:59:53] ekleog: Well, I'm bringing something down and then up again, but this thing will bring me down with it, so the "go up" message must arrive before I'm brought down
[16:00:20] ekleog: Otherwise I could just add a third message type that says "downup", but I feel it's ugly :/
[16:00:56] jhass: "reboot" isn't ugly at all
[16:01:07] jhass: or "restart" if that fits your domain better
[16:01:59] above: has joined #ruby
[16:02:39] CorySimmons: has joined #ruby
[16:02:39] ekleog: The trick is the thing I'm "restarting" is just a placeholder that serves as a way to express dependencies to other services, so it does not actually do anything, just shutdown every dependent service when going down and start them back again when going up
[16:03:40] shevy: yaml files have a trailing \n ?
[16:03:52] jhass: I'd expect the parser to not care
[16:05:14] liu: has joined #ruby
[16:06:26] Meow-J: has joined #ruby
[16:07:31] khebbie: has joined #ruby
[16:09:02] djbkd: has joined #ruby
[16:10:40] shevy: guess I should read the specification of yaml files one day...
[16:11:15] jhass: why is it even relevant?
[16:11:57] shevy: because YAML.dump makes newlines
[16:12:04] rodfersou: has joined #ruby
[16:12:32] ndrei: has joined #ruby
[16:13:02] ishahnaz: has joined #ruby
[16:14:45] jhass: and you have an aversion against them or...?
[16:14:55] armyriad: has joined #ruby
[16:15:21] shevy: it yields no useful information
[16:15:40] christiandsg: has joined #ruby
[16:16:29] IrishGringo: has joined #ruby
[16:16:34] shevy: I assume that it is done due to the specification though
[16:18:04] apeiros: shevy: it's common to end all text based file formats with a newline
[16:18:23] apeiros: and yes, it's mostly convenience. e.g. for concatenating files or displaying them in the shell.
[16:19:10] shevy: good point
[16:19:25] A124: has joined #ruby
[16:19:37] d10n-work: has joined #ruby
[16:20:55] TomyLobo: can a postfix if have an else clause somehow?
[16:21:04] Hanmac: has joined #ruby
[16:21:44] jhass: maybe you want a ternary?
[16:22:38] chris2: has joined #ruby
[16:22:40] TomyLobo: yeah, ternary works... silly me :)
[16:26:15] krz: has joined #ruby
[16:27:56] jds: has joined #ruby
[16:28:11] towski_: has joined #ruby
[16:29:03] northfurr: has joined #ruby
[16:31:54] EminenceHC: has joined #ruby
[16:34:29] einarj: has joined #ruby
[16:37:28] FernandoBasso: has joined #ruby
[16:38:50] avahey: has joined #ruby
[16:40:44] djbkd: has joined #ruby
[16:40:47] dgutierrez1287: has joined #ruby
[16:44:10] ChanServ: -b rape!*@*
[16:47:28] decoponyo: has joined #ruby
[16:49:18] Rubie: has joined #ruby
[16:49:25] whiteline: has joined #ruby
[16:49:57] r0x0rZ: has joined #ruby
[16:51:21] khebbie: has joined #ruby
[16:51:55] dgutierrez1287: has joined #ruby
[16:53:12] tmtwd: has joined #ruby
[16:53:39] greenbigfrog: I'm always getting: Connection reset by peer!
[16:53:47] greenbigfrog: everything else is written here: https://discuss.dev.twitch.tv/t/connection-reset-by-peer-always-the-same-but-just-for-me/
[16:59:13] xet7_: has joined #ruby
[16:59:21] christiandsg: has joined #ruby
[16:59:47] darkxploit: has joined #ruby
[17:00:44] fullofcaffeine: has joined #ruby
[17:01:11] zenguy_pc2: has joined #ruby
[17:01:13] khebbie_: has joined #ruby
[17:03:12] fantazo: has joined #ruby
[17:06:27] iamninja: has joined #ruby
[17:06:55] Dr_XYZ: has joined #ruby
[17:07:48] Dr_XYZ: has left #ruby: ()
[17:08:38] christiandsg: has joined #ruby
[17:10:00] hotpancakes: has joined #ruby
[17:10:18] pranny: has joined #ruby
[17:11:20] chris2: has joined #ruby
[17:12:25] fedexo: has joined #ruby
[17:13:54] lawiguess: has joined #ruby
[17:16:37] dimasg: has joined #ruby
[17:17:19] IrishGringo: has joined #ruby
[17:17:33] sarkyniin: has joined #ruby
[17:18:47] jpfuentes2: has joined #ruby
[17:19:12] leat: has joined #ruby
[17:19:22] EminenceHC: has joined #ruby
[17:21:13] hotpancakes: has joined #ruby
[17:21:18] leat: has joined #ruby
[17:25:04] fgo: has joined #ruby
[17:25:45] arup_r: has joined #ruby
[17:30:05] blueOxigen: has joined #ruby
[17:33:32] fullofcaffeine: has joined #ruby
[17:36:10] leafybasil: has joined #ruby
[17:36:34] bubbys: has joined #ruby
[17:37:34] blue_deref: has joined #ruby
[17:38:56] maia: has joined #ruby
[17:40:43] maia: hello. anyone familiar with the twitter gem? I???m wondering how I could cache a verified client object and let my worker jobs access it, as I???m currently creating a new client for each worker job and am hitting the api limit for /account/verify_credentials
[17:43:18] maia: or to generalize my question: is there a way to let (threaded) worker jobs (sidekiq/redis) share an object?
[17:43:20] atomical: has joined #ruby
[17:44:40] retornam: has joined #ruby
[17:45:21] einarj: has joined #ruby
[17:45:21] northfurr: has joined #ruby
[17:46:05] leat: has joined #ruby
[17:47:44] Cust0sLim3n: has joined #ruby
[17:47:59] hotpancakes: has joined #ruby
[17:48:06] ndrei: has joined #ruby
[17:49:08] skade: has joined #ruby
[17:50:28] hmsimha_: has joined #ruby
[17:53:16] bruno-: has joined #ruby
[17:53:58] leat: has joined #ruby
[17:54:50] banister: has joined #ruby
[17:57:06] kies: has joined #ruby
[17:57:28] phutchins: has joined #ruby
[17:57:30] kies^: has joined #ruby
[17:57:46] davedev24: has joined #ruby
[17:58:05] Musashi007: has joined #ruby
[18:01:22] Rubie: has joined #ruby
[18:01:56] IrishGringo: has joined #ruby
[18:02:06] armyriad: has joined #ruby
[18:02:31] rushed: has joined #ruby
[18:05:30] willharrison: has joined #ruby
[18:05:55] lucyinthesky: has joined #ruby
[18:07:21] Vile`: has joined #ruby
[18:09:47] michael_mbp: has joined #ruby
[18:11:25] above: has joined #ruby
[18:11:27] northfurr: has joined #ruby
[18:11:49] leat: has joined #ruby
[18:12:55] Vile`: has joined #ruby
[18:13:37] pontiki: persist it in a database
[18:13:54] codecop: has joined #ruby
[18:15:38] maia: pontiki: I???m trying to keep an api connection alive across worker jobs. that???s not something I can persist in a database, can I?
[18:16:16] pontiki: that sounds very different than a client object...
[18:16:54] lucyinthesky: has left #ruby: ("Leaving")
[18:17:14] socialjackie: has joined #ruby
[18:17:41] bl4ckdu5t: has joined #ruby
[18:18:00] christiandsg: has joined #ruby
[18:18:33] Torrieri: has joined #ruby
[18:18:46] Torrieri: has joined #ruby
[18:20:57] einarj: has joined #ruby
[18:21:39] toretore: has joined #ruby
[18:24:50] NeverDie: has joined #ruby
[18:26:23] banister: has joined #ruby
[18:26:59] jraisanen: has joined #ruby
[18:27:18] fgo: has joined #ruby
[18:28:26] lucyinthesky: has joined #ruby
[18:29:58] djbkd: has joined #ruby
[18:30:36] crankharder: has joined #ruby
[18:31:38] baweaver: has joined #ruby
[18:32:13] crankharder: does this mean anything to anyone? can't figure out what lib is missing. trying to bundle on ubuntu w/ ruby 2.1.7, bundler 1.10.6 - thanks!
[18:32:16] crankharder: https://gist.github.com/crankharder/44fa0e42cdcb568a7c98
[18:32:32] Vile`: has joined #ruby
[18:32:47] jhass: crankharder: /usr/bin/ld: cannot find -lgmp
[18:33:03] khebbie: has joined #ruby
[18:33:05] jhass: get gmp-dev or libgmp-dev, don't remember the package name
[18:33:35] jatb: has joined #ruby
[18:34:40] shevy: here would be the source http://ftp.sunet.se/pub/gnu/gmp/gmp-6.0.0a.tar.xz :)
[18:34:45] zxvcd_: has joined #ruby
[18:35:14] dagda1: has joined #ruby
[18:36:10] chipotle: has joined #ruby
[18:36:47] jpfuentes2: has joined #ruby
[18:37:25] jeadre: has joined #ruby
[18:37:40] joneshf-laptop: has joined #ruby
[18:39:05] fantazo: has joined #ruby
[18:39:06] hotpancakes: has joined #ruby
[18:39:47] user1138: has joined #ruby
[18:42:00] havenwood: has joined #ruby
[18:43:08] Azure: has joined #ruby
[18:44:21] dagda1: has joined #ruby
[18:44:40] iamninja: has joined #ruby
[18:44:49] veduardo: has joined #ruby
[18:44:53] Sembei: has joined #ruby
[18:45:13] einarj_: has joined #ruby
[18:46:01] GPrime: has joined #ruby
[18:46:23] nanoz: has joined #ruby
[18:46:37] phutchins: has joined #ruby
[18:46:38] rushed: has joined #ruby
[18:48:47] khebbie: has joined #ruby
[18:49:15] El3ktra_: has joined #ruby
[18:51:57] Coldblackice: has joined #ruby
[18:55:43] b44: has joined #ruby
[18:55:59] shevy: what html generators do we have in ruby? I know the cgi in ruby stdlib can generate html stuff
[18:57:33] dopie: has joined #ruby
[18:58:24] banister: has joined #ruby
[18:58:31] shevy: ohhh havenwood look!
[18:58:38] shevy: "Python has been awarded a TIOBE Programming Language of the Year award twice (in 2007 and 2010), which is given to the language with the greatest growth in popularity over the course of a year, as measured by the TIOBE index.[125]"
[18:59:13] havenwood: shevy: Who won it this year? Cobol?
[18:59:22] Musashi007: has joined #ruby
[19:00:30] havenwood: shevy: Oh look, Assembly Language just passed Ruby on TIOBE...
[19:00:42] havenwood: Maybe startups should consider this technology for web apps.
[19:00:52] einarj: has joined #ruby
[19:02:04] wasamasa: https://2ton.com.au/rwasa/
[19:02:13] havenwood: Must have been a popular news story about an assembly line. And the Style network cancelling the "Ruby" show about southern obesity really hurt Ruby's TIOBE>
[19:02:24] wasamasa: I blame this thing
[19:02:26] shevy: havenwood I was reminded of it because I found the entry above at the wikipedia entry about python. Someone was adding the TIOBE methodology :)
[19:02:47] IrishGringo: has joined #ruby
[19:02:57] havenwood: ?tiobe shevy
[19:02:57] ruboto: shevy, I don't know anything about tiobe
[19:03:16] havenwood: shevy: Oh, the humanity...
[19:03:49] havenwood: wasamasa: hehe
[19:04:39] davedev24: has joined #ruby
[19:04:48] havenwood: ngx_mruby is on my list, i haven't actually played with it and I'd like to: https://github.com/matsumoto-r/ngx_mruby#readme
[19:04:55] dojobo: has joined #ruby
[19:05:03] al2o3-cr: has joined #ruby
[19:05:33] howdoicomputer: has joined #ruby
[19:05:36] hotpancakes: has joined #ruby
[19:05:43] havenwood: shevy: Nothing is coming to mind other than CGI.
[19:06:32] psye: has joined #ruby
[19:06:40] symm-: has joined #ruby
[19:12:30] chare: has joined #ruby
[19:13:19] christiandsg: has joined #ruby
[19:15:35] khebbie: has joined #ruby
[19:16:14] rbowlby: has joined #ruby
[19:16:29] siemprefresco: has joined #ruby
[19:16:54] DLSteve: has joined #ruby
[19:19:01] leafybasil: has joined #ruby
[19:21:13] bigmac: has joined #ruby
[19:21:19] war_pigs: has joined #ruby
[19:26:07] yfeldblum: has joined #ruby
[19:27:28] bruno-: has joined #ruby
[19:27:31] episage: has joined #ruby
[19:27:57] puppeh_: has joined #ruby
[19:28:17] fgo: has joined #ruby
[19:28:32] puppeh_: what's the recommended way to create a mutex in a module? ie. the equivalent of creating a `@mutex = Mutex.new` in a class' initialize method
[19:29:41] jgpawletko: has joined #ruby
[19:29:59] prestorium: has joined #ruby
[19:30:53] yorickpeterse: puppeh_: can you be more specific?
[19:31:04] yfeldblum: has joined #ruby
[19:31:35] Axy: has joined #ruby
[19:31:35] Axy: has joined #ruby
[19:31:46] puppeh_: I want to synchronize all calls to a method defined in a module
[19:31:48] hmsimha_: has joined #ruby
[19:31:52] puppeh_: using a mutex
[19:31:54] gamename: has joined #ruby
[19:32:19] fantazo: has joined #ruby
[19:32:28] puppeh_: if it was a class I would create the mutex in the class' `#initialize`
[19:32:38] puppeh_: but since this is a module, what's the reocmmended way to do it?
[19:37:48] banister: has joined #ruby
[19:38:05] DLSteve: has joined #ruby
[19:38:13] choke: has joined #ruby
[19:38:14] puppeh_: yorickpeterse: does that clarify my question?
[19:38:31] apeiros: puppeh_: I'd probably aim to not have the responsibility of synchronization in the module at all
[19:38:59] christiandsg: has joined #ruby
[19:39:03] puppeh_: where would you have it?
[19:39:05] puppeh_: in the caller?
[19:39:20] apeiros: I do not know enough about what you do to answer that
[19:39:41] puppeh_: ok but why you say you wouldn't have it in the module at all?
[19:39:45] seggy: has joined #ruby
[19:40:01] segmond: has joined #ruby
[19:40:31] renderful: has joined #ruby
[19:40:57] porton: has joined #ruby
[19:41:02] porton: has left #ruby: ("Ex-Chat")
[19:41:47] j_mcnally: has joined #ruby
[19:42:51] shinnya: has joined #ruby
[19:43:11] casadei_: has joined #ruby
[19:43:45] some1else: has joined #ruby
[19:44:38] gizmore: i have written a rake task which is an irc-bot. After a few days, dns seems to stop working... any idea what could cause this?
[19:45:10] dimasg: has joined #ruby
[19:45:11] yorickpeterse: puppeh_: there's no easy way to do it automatically
[19:45:25] yorickpeterse: since there's no #initialize for a Module
[19:45:34] yorickpeterse: though if it's included into a Class you could have the module define #initialize
[19:45:35] qba73: has joined #ruby
[19:45:39] yorickpeterse: but then the Class would have to call super()
[19:45:46] yorickpeterse: much like how MonitorMixin works
[19:45:48] jhass: puppeh_: check MonitorMixin
[19:46:20] puppeh_: my thought would be saving in the mutex like this: `module Foo; FOO_MUTEX = Mutex.new; end`
[19:46:40] jhass: puppeh_: also consider if you can't use composition instead of inheritance here, make your module a class and have your other class delegate to it
[19:46:55] maia: has left #ruby: ()
[19:47:05] Kallis: has joined #ruby
[19:47:06] puppeh_: and everywhere I call `Foo.foobar` I'd do instead `Foo::FOO_MUTEX.synchronize { Foo.foobar }`
[19:47:23] puppeh_: wouuldn't that be fine also?
[19:47:29] jhass: so you actually have a singleton?
[19:47:49] jhass: you don't even include your module anywhere?
[19:48:26] puppeh_: yes I don't
[19:48:30] puppeh_: *no I don't
[19:48:53] puppeh_: I probably should have said that from the beginning..
[19:49:12] banister: has joined #ruby
[19:50:05] dagda1: has joined #ruby
[19:52:36] jeadre: has joined #ruby
[19:52:48] einarj: has joined #ruby
[19:53:20] puppeh_: I've put up a pastie: http://pastie.org/private/zwenohmimdrvwqu6enbvqa
[19:53:32] puppeh_: jhass: what do you think? /cc apeiros yorickpeterse
[19:53:38] puppeh_: does that make sense?
[19:54:08] jhass: no, use a singleton
[19:54:18] jhass: &ri Singleton
[19:54:18] `derpy: http://www.rubydoc.info/stdlib/singleton/Singleton
[19:54:21] puppeh_: let's assume that I can't change the module for some reason
[19:54:34] jhass: I won't unless you give pretty good reason
[19:54:36] Musashi007: has joined #ruby
[19:54:47] puppeh_: it's a veeery breaking change in a very large software
[19:55:17] puppeh_: the module is a top-level namespace of a gem
[19:55:19] jhass: not really, just define delegators on the class level
[19:55:33] puppeh_: it contains a dozen other methods and subclasses etc.
[19:55:40] jhass: extract to a new class and leave the old methods as delegators
[19:55:44] SCHAAP137: has joined #ruby
[19:55:55] puppeh_: what's the advantage of usign a singleton?
[19:56:13] yorickpeterse: puppeh_: using the constant form like that means that every class including the module will use the same mutex
[19:56:18] jhass: you can store and setup state in a sane manner
[19:56:20] bubbys: has joined #ruby
[19:56:20] yorickpeterse: thus it becomes a global lock
[19:56:30] kr3ssh: has joined #ruby
[19:56:37] jhass: yorickpeterse: read up, it's never included
[19:56:43] puppeh_: OK, that's what I want then
[19:56:53] yorickpeterse: Then it's still a global lock
[19:56:54] puppeh_: I want only 1 thing to be running the "foobar" command at a time
[19:57:05] jhass: yorickpeterse: I think that's wanted
[19:57:16] yorickpeterse: Yeah then you can just stuff it in a constant
[19:57:33] jhass: and update all callers, -1
[19:57:50] puppeh_: what about the 2nd solution in my pastie?
[19:57:53] gizmore: my problem are too many filedescriptors due to lots of logfiles ... thanks :)
[19:57:55] puppeh_: that wouldn't require to update anything
[19:58:08] Kallis: has joined #ruby
[19:59:31] axisys: has joined #ruby
[19:59:35] zenguy_pc2: has joined #ruby
[19:59:42] jhass: http://paste.mrzyx.de/ppfan8ais
[20:00:57] symm-: has joined #ruby
[20:01:30] puppeh__: has joined #ruby
[20:01:39] gwl_: has joined #ruby
[20:01:52] gwl_: has left #ruby: ()
[20:02:16] puppeh__: jhass: aha I see
[20:02:23] puppeh__: jhass: will study this, thanks for your time
[20:03:40] nux443: has joined #ruby
[20:05:31] workmad3: has joined #ruby
[20:08:09] tmtwd: has joined #ruby
[20:08:52] bigmac: has joined #ruby
[20:14:17] einarj_: has joined #ruby
[20:14:54] elton: has joined #ruby
[20:17:28] piros: has joined #ruby
[20:18:28] einarj: has joined #ruby
[20:18:53] hmsimha__: has joined #ruby
[20:19:41] nux443: has joined #ruby
[20:20:13] apeiros: hm, ok, pg array support in sequel is nice
[20:20:42] rodfersou: has joined #ruby
[20:21:16] saddad: has joined #ruby
[20:21:37] yorickpeterse: apeiros: yeah, it has really good Pg support
[20:21:41] Musashi007: has joined #ruby
[20:21:43] yorickpeterse: either out of the box or via the various extensions
[20:22:05] xxneolithicxx: has joined #ruby
[20:22:15] apeiros: though, atm fiddling with how to do a query to test whether a value is in the array. also worried about performance (no idea how to properly index that thing :D)
[20:22:42] yorickpeterse: You can use GIN indexes on arrays
[20:22:45] yorickpeterse: works pretty well
[20:25:41] Meow-J: has joined #ruby
[20:26:07] lucyinthesky: has joined #ruby
[20:26:20] davedev24: has joined #ruby
[20:26:23] DLSteve: has joined #ruby
[20:29:31] fgo: has joined #ruby
[20:29:33] nux443: has joined #ruby
[20:33:29] EminenceHC: has joined #ruby
[20:34:08] finisherr: has joined #ruby
[20:34:32] user1138: has joined #ruby
[20:35:18] nux443: has joined #ruby
[20:35:46] devbug: has joined #ruby
[20:35:58] finisherr: has joined #ruby
[20:39:25] jackjackdripper: has joined #ruby
[20:39:54] christiandsg: has joined #ruby
[20:40:09] abyss: has joined #ruby
[20:40:27] jeadre: has joined #ruby
[20:40:33] lucyinthesky: has left #ruby: ("Leaving")
[20:40:40] lucyinthesky: has joined #ruby
[20:42:51] qba73_: has joined #ruby
[20:44:13] malconis: has joined #ruby
[20:45:53] einarj: has joined #ruby
[20:46:02] nux443: has joined #ruby
[20:48:07] davedev24: has joined #ruby
[20:48:15] lucyinthesky: has left #ruby: ("Leaving")
[20:48:42] postmodern: has joined #ruby
[20:48:46] postmodern: has joined #ruby
[20:50:30] cornerma1: has joined #ruby
[20:50:45] al2o3-cr: has joined #ruby
[20:50:56] ta: has joined #ruby
[20:51:17] hotpancakes: has joined #ruby
[20:51:45] nux443: has joined #ruby
[20:52:25] JoshGlzBrk: has joined #ruby
[20:53:18] einarj: has joined #ruby
[20:55:19] michael_mbp: has joined #ruby
[20:56:00] sldkjfsldkjf: has joined #ruby
[20:56:44] saddad: has joined #ruby
[20:57:10] finisherr: has left #ruby: ()
[21:00:54] Frem: has joined #ruby
[21:03:05] vF3hNGxc47h8: has joined #ruby
[21:04:39] decoponio: has joined #ruby
[21:05:43] yeticry: has joined #ruby
[21:05:51] Caius: has joined #ruby
[21:05:51] Caius: has joined #ruby
[21:10:49] rbowlby: has joined #ruby
[21:13:56] einarj: has joined #ruby
[21:15:52] arashb: has joined #ruby
[21:16:14] darwingr: has joined #ruby
[21:18:00] davedev24: has joined #ruby
[21:19:54] matchaw: has joined #ruby
[21:20:39] banister: has joined #ruby
[21:21:44] dimasg: has joined #ruby
[21:23:32] djbkd: has joined #ruby
[21:25:19] atomical: has joined #ruby
[21:26:46] j_mcnally: has joined #ruby
[21:29:48] seggy: has joined #ruby
[21:29:58] dagda1_: has joined #ruby
[21:30:31] fgo: has joined #ruby
[21:31:20] fullofcaffeine: has joined #ruby
[21:32:01] beef-wellington: has joined #ruby
[21:33:54] mrtg9970: has joined #ruby
[21:36:52] xhosae: has joined #ruby
[21:40:27] choke: has joined #ruby
[21:40:43] davedev24: has joined #ruby
[21:41:18] Vile`: has joined #ruby
[21:42:43] christiandsg: has joined #ruby
[21:46:13] davedev24: has joined #ruby
[21:48:57] nettoweb: has joined #ruby
[21:50:33] rickmasta: has joined #ruby
[21:54:36] mrtg9970: has joined #ruby
[21:57:52] mrtg9970: has joined #ruby
[21:59:55] darwingr: has left #ruby: ("bye bye")
[21:59:57] darwingr: has joined #ruby
[22:00:19] einarj: has joined #ruby
[22:02:01] decoponyo: has joined #ruby
[22:03:08] zenguy_pc2: has joined #ruby
[22:03:12] Musashi007: has joined #ruby
[22:03:58] nug: has joined #ruby
[22:05:18] ta: has joined #ruby
[22:06:33] _blizzy_: has joined #ruby
[22:09:31] zenguy_pc: has joined #ruby
[22:11:40] ecksit: has joined #ruby
[22:12:14] noethics: has joined #ruby
[22:12:58] miguelff: has joined #ruby
[22:13:30] miguelff: has left #ruby: ()
[22:14:15] miguelff: has joined #ruby
[22:15:02] _blizzy_: has joined #ruby
[22:16:03] miguelff: has left #ruby: ()
[22:16:53] kith: has joined #ruby
[22:18:31] jgt: has joined #ruby
[22:18:37] Vile`: has joined #ruby
[22:22:42] NeverDie: has joined #ruby
[22:22:58] symm-: has joined #ruby
[22:23:05] Timba-as: has joined #ruby
[22:23:16] xxneolithicxx: has joined #ruby
[22:26:01] doublemalt__: has joined #ruby
[22:30:33] daynaskully: has joined #ruby
[22:31:46] fgo: has joined #ruby
[22:34:45] darix: apeiros: you can also use the jsonb type
[22:34:58] SCHAAP137: has joined #ruby
[22:35:19] apeiros: darix: I know, but that allows for quite a lot of things and I prefer to be narrow.
[22:35:28] apeiros: I could also use hstore or an xml column :)
[22:35:42] dimasg: has joined #ruby
[22:38:45] Musashi007: has joined #ruby
[22:39:07] Motoservo: has joined #ruby
[22:40:24] shevy: yay for XML!
[22:41:11] shevy: https://github.com/markaby/markaby
[22:41:16] shevy: without looking at the implementation
[22:41:21] shevy: div.entry do
[22:41:26] shevy: this becomes
[22:41:27] shevy: <div class="entry">
[22:41:33] shevy: that is done via method_missing() or?
[22:41:49] shevy: if so then I wonder whether that is good or bad... it scares me a little for sure
[22:42:06] mgorbach: has joined #ruby
[22:42:11] Ox0dea: shevy: https://github.com/jimweirich/builder
[22:43:10] Ox0dea: This guy.
[22:43:43] adaedra: <shevy> yay for XML!
[22:43:47] adaedra: <shevy> ewww XML
[22:43:53] adaedra: make up your mind.
[22:44:21] shevy: ewwww adaedra
[22:44:31] adaedra: ?adaedra shevy
[22:44:31] ruboto: shevy, don't be mean to adaedra
[22:44:31] shevy: yay for adaedra!
[22:47:40] shevy: "IDs may be added by the use of bang methods:"
[22:47:46] shevy: div.page! {
[22:47:52] shevy: <div id="page">
[22:47:55] keen___________0: has joined #ruby
[22:49:42] robbyoconnor: has joined #ruby
[22:50:50] EminenceHC: has joined #ruby
[22:50:55] christiandsg: has joined #ruby
[22:50:59] ta: has joined #ruby
[22:52:02] dgutierrez1287: has joined #ruby
[22:53:25] mgorbach: has joined #ruby
[22:55:07] grotewold: has joined #ruby
[22:55:41] Musashi007: has joined #ruby
[23:00:08] dorei: >> x = Object.new ; var = 'x' ; val = eval("#{var}") ; eval("#{var} = #{val}")
[23:00:09] ruboto: dorei # => (eval):1: syntax error, unexpected end-of-input ...check link for more (https://eval.in/420828)
[23:00:37] yqt: has joined #ruby
[23:00:39] dorei: any idea how to fix this?
[23:01:06] jhass: don't eval
[23:01:34] dorei: can I dynamically create local variables without eval?
[23:01:42] jhass: no and you never should
[23:01:44] jhass: use a hash
[23:01:46] apeiros: and you can't with eval either
[23:02:36] Rutix: has joined #ruby
[23:02:37] Rutix: has joined #ruby
[23:02:52] hotpancakes: has joined #ruby
[23:02:58] apeiros: or to be precise: you can only create an lvar if all further code is eval'ed too, and on the same binding instance.
[23:03:18] t0d0r: has joined #ruby
[23:03:19] davedev24: has joined #ruby
[23:03:52] apeiros: the only exception to jhass' "you never should" is IMO template engines.
[23:04:43] t0d0r: has left #ruby: ()
[23:04:44] jhass: and even there I often wish we had a bigger focus on non-evaling ones
[23:06:42] zenguy_pc: has joined #ruby
[23:06:44] einarj_: has joined #ruby
[23:07:20] dorei: >> x = 5 ; out_var = 'x' ; in_var = 'y' ; val = eval("#{out_var}") ; eval("#{in_var} = #{val} ; puts #{in_var}")
[23:07:21] ruboto: dorei # => 5 ...check link for more (https://eval.in/420837)
[23:07:58] dorei: can this be made to work for arbritary x ?
[23:08:45] Ox0dea: dorei: Stahp.
[23:10:00] apeiros: I think talking to walls makes more sense.
[23:10:01] Azure|dc: has joined #ruby
[23:10:21] mgorbach: has joined #ruby
[23:11:10] dorei: u're killing my creativity :(
[23:12:55] apeiros: dorei: I already answered your question, though.
[23:13:00] apeiros: 01:02 apeiros: or to be precise: you can only create an lvar if all further code is eval'ed too, and on the same binding instance.
[23:14:35] dorei: apeiros: yeap, i've followed your advice :)
[23:14:49] choke: has joined #ruby
[23:15:04] shevy: long live eval! I am rooting for dorei!
[23:15:25] dorei: apeiros: you made me totally aware that i cant access it outside the eval string :)
[23:15:27] Vile`: has joined #ruby
[23:15:48] shevy: wouldn't you rather like to be able to access it outside the eval string?
[23:16:02] shevy: perhaps you can do some dark magic with binding
[23:16:20] dorei: shevy: u cant dynamically create local variables :(
[23:16:46] dorei: shevy: apeiros summed it up nicely
[23:17:12] shevy: I am sure they must reside somewhere
[23:17:27] shevy: we once had evil.rb
[23:18:24] apeiros: shevy: any sane language does not internally use the names of lvars
[23:18:29] apeiros: that's way too slow
[23:18:31] Ox0dea: Even binding_of_caller can't introduce new locals.
[23:18:39] monsieur1: has joined #ruby
[23:19:24] Ox0dea: It can modify existing ones virtually anywhere, though.
[23:19:40] shevy: dorei yeah it was awesome: http://www.bradlanders.com/2013/01/23/why-be-evil-rb/ http://caiustheory.com/evil-rb/ https://github.com/yugui/evil-ruby/blob/master/lib/evil.rb
[23:20:05] shevy: look at the beauty
[23:20:09] shevy: T_TRUE = 0x20
[23:20:22] shevy: now we are like 0x0dea
[23:21:11] Ox0dea: >> true.__id__
[23:21:12] ruboto: Ox0dea # => 2 (https://eval.in/420840)
[23:21:30] Psi-Jack: Well, now then.. I understand a basic concept of how to setup a class object to handle running and stopping a thread. :D
[23:21:33] crdpink: has joined #ruby
[23:21:51] Psi-Jack: Without blocking the current running thread. ;)
[23:22:01] The_Phoenix: has joined #ruby
[23:22:24] davedev24: has joined #ruby
[23:23:34] einarj: has joined #ruby
[23:27:24] bruno-: has joined #ruby
[23:32:53] fgo: has joined #ruby
[23:36:22] Feyn: has joined #ruby
[23:36:26] dimasg: has joined #ruby
[23:38:22] choke: has joined #ruby
[23:39:03] lucyinthesky: has joined #ruby
[23:40:27] lucyinthesky: has left #ruby: ()
[23:41:38] EminenceHC: has joined #ruby
[23:42:39] _blizzy_: has joined #ruby
[23:43:36] jeadre: has joined #ruby
[23:46:21] chipotle: has joined #ruby
[23:46:41] jtdoncas: has joined #ruby
[23:47:44] veduardo: has joined #ruby
[23:48:20] dopie: has joined #ruby
[23:48:52] i: has joined #ruby
[23:49:35] devbug: has joined #ruby
[23:50:06] nettoweb: has joined #ruby
[23:50:39] _blizzy_: has joined #ruby
[23:50:54] isene: has left #ruby: ()
[23:53:37] al2o3-cr: has joined #ruby
[23:53:43] christiandsg: has joined #ruby
[23:53:51] ecksit: has joined #ruby
[23:53:55] dopie: has joined #ruby
[23:54:24] lucyinthesky: has joined #ruby
[23:55:50] workmad3: has joined #ruby
[23:56:26] davedev24: has joined #ruby