« Back to channel list

#ruby - 25 September 2015

« Back 1 day Forward 1 day »
[00:00:03] segmond: has joined #ruby
[00:00:08] pwnd_nsfw: has joined #ruby
[00:00:12] arian0n: has joined #ruby
[00:01:00] tkuchiki: has joined #ruby
[00:01:08] craysiii: has joined #ruby
[00:01:32] amitchellbullard: has joined #ruby
[00:01:35] akahn: has joined #ruby
[00:01:48] Voxxit: has joined #ruby
[00:01:52] petems: has joined #ruby
[00:01:53] spastorino: has joined #ruby
[00:01:53] culturelabs: has joined #ruby
[00:02:02] PhilK: has joined #ruby
[00:02:42] jgpawletko: has joined #ruby
[00:02:55] catbusters: has joined #ruby
[00:02:59] RegulationD: has joined #ruby
[00:03:36] jmhmccr: has joined #ruby
[00:03:40] frankS2: has joined #ruby
[00:03:54] twodayslate: has joined #ruby
[00:04:12] lolmaus_: has joined #ruby
[00:04:49] zrl: has joined #ruby
[00:04:53] quazimodo: has joined #ruby
[00:05:26] prosodyC: has joined #ruby
[00:06:46] machty: has joined #ruby
[00:07:54] sp4rrow_: has joined #ruby
[00:08:20] Kamilion: has joined #ruby
[00:08:35] bruno-: has joined #ruby
[00:11:07] aaeron: has joined #ruby
[00:11:41] tawaffan: has joined #ruby
[00:11:51] ericjphillips: has joined #ruby
[00:11:52] Gustavo: has joined #ruby
[00:12:18] j4cknewt: has joined #ruby
[00:13:05] nofxx: has joined #ruby
[00:13:06] nofxx: has joined #ruby
[00:15:12] allcentury: has joined #ruby
[00:18:39] jenrzzz: has joined #ruby
[00:19:56] radgeRayden: has joined #ruby
[00:22:22] luckyme: has joined #ruby
[00:22:46] Musashi007: has joined #ruby
[00:23:55] NeverDie: has joined #ruby
[00:24:55] iamninja: has joined #ruby
[00:27:07] s00pcan: has joined #ruby
[00:27:24] RobertBirnie: has joined #ruby
[00:27:56] swgillespie: has joined #ruby
[00:28:13] rickmasta: has joined #ruby
[00:28:40] Yzguy: has joined #ruby
[00:29:30] sp4rrow: has joined #ruby
[00:29:44] blue_deref: has joined #ruby
[00:31:07] tsujp: has joined #ruby
[00:34:54] quazimodo: has joined #ruby
[00:37:06] Scripore: has joined #ruby
[00:40:15] psye: has joined #ruby
[00:42:23] duggiefresh: has joined #ruby
[00:43:26] sp4rrow: has joined #ruby
[00:46:26] Kitsunitchi: has joined #ruby
[00:46:36] rrichardsr3: has joined #ruby
[00:46:43] Kallis: has joined #ruby
[00:47:22] freerobby: has joined #ruby
[00:49:20] hydrozen: has joined #ruby
[00:49:50] nettoweb: has joined #ruby
[00:50:52] sp4rrow: has joined #ruby
[00:51:38] stardiviner: has joined #ruby
[00:53:04] Kitsunitchi: has left #ruby: ()
[00:53:30] ragingcake: has joined #ruby
[00:54:54] apt-get: has joined #ruby
[00:55:07] pontiki: has joined #ruby
[00:58:56] pontiki_: has joined #ruby
[01:00:46] havenwood: has joined #ruby
[01:00:50] bb010g: has joined #ruby
[01:05:44] yfeldblum: has joined #ruby
[01:07:06] yfeldblum: has joined #ruby
[01:08:37] rrichard_: has joined #ruby
[01:09:28] ngscheurich: has joined #ruby
[01:09:48] weemsledeux: has joined #ruby
[01:10:26] redondo: has joined #ruby
[01:11:20] rrichardsr3: has joined #ruby
[01:12:07] NeverDie: has joined #ruby
[01:12:20] pwnd_nsfw: has joined #ruby
[01:12:29] ebragaparah: has joined #ruby
[01:12:36] maikowblue: has joined #ruby
[01:12:44] wookiehangover: has joined #ruby
[01:13:30] rrichardsr3: has joined #ruby
[01:14:35] devoldmx: has joined #ruby
[01:16:01] allcentury: has joined #ruby
[01:23:22] crdpink2: has joined #ruby
[01:23:45] flavouredfags: has joined #ruby
[01:27:07] Gustavo: has joined #ruby
[01:30:29] bkulbida: has joined #ruby
[01:35:42] bluntman: has joined #ruby
[01:36:26] ddarkpassenger: has joined #ruby
[01:38:45] Rodya_: has joined #ruby
[01:40:37] sp4rrow: has joined #ruby
[01:41:14] liquidmetal: has joined #ruby
[01:41:36] liquidmetal: http://pastebin.com/PMwjRdir - running into errors when running rake. I'm trying to build Sass from scratch - any help would be appreciated :)
[01:41:36] ruboto: liquidmetal, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[01:42:23] v4n: has joined #ruby
[01:42:34] liquidmetal: http://pastie.org/10442589 - pastie as requested
[01:42:42] yfeldblum: has joined #ruby
[01:43:40] vdamewood: has joined #ruby
[01:46:20] tkuchiki: has joined #ruby
[01:49:15] nettoweb: has joined #ruby
[01:49:25] casadei: has joined #ruby
[01:55:24] Xeago: has joined #ruby
[01:56:27] Swappticon: has joined #ruby
[01:58:19] Swappticon: has joined #ruby
[02:00:00] Swappticon: has joined #ruby
[02:01:47] frog0909_: has joined #ruby
[02:03:23] bnagy: I thought helpa got muted?
[02:04:27] RegulationD: has joined #ruby
[02:05:14] A124: has joined #ruby
[02:07:20] Pathfinder: has joined #ruby
[02:07:48] hahuang65: has joined #ruby
[02:08:44] alakra: has joined #ruby
[02:10:15] leat: has joined #ruby
[02:12:45] tejasmanohar: has joined #ruby
[02:18:51] pontiki: has joined #ruby
[02:19:10] stardiviner: has joined #ruby
[02:19:12] Feyn: has joined #ruby
[02:20:37] bentanweihao: has joined #ruby
[02:21:42] Kallis: has joined #ruby
[02:22:12] Pathfinder: has joined #ruby
[02:23:04] Kallis: has joined #ruby
[02:25:01] bffff_: has joined #ruby
[02:25:21] ddarkpassenger: has joined #ruby
[02:25:35] bronson: has joined #ruby
[02:25:40] liquidmetal: how do I update ruby gem on ubuntu?
[02:25:45] iamninja: has joined #ruby
[02:28:35] sdwrage: has joined #ruby
[02:28:47] sdothum: has joined #ruby
[02:30:45] JoL1hAHN: has joined #ruby
[02:31:23] ddarkpassenger: has joined #ruby
[02:32:47] favadi: has joined #ruby
[02:33:38] karapetyan: has joined #ruby
[02:34:10] beauby: has joined #ruby
[02:34:12] xcesariox: has joined #ruby
[02:35:19] darkxploit: has joined #ruby
[02:35:29] rickmasta: has joined #ruby
[02:37:04] NeverDie: has joined #ruby
[02:39:10] roxtrongo: has joined #ruby
[02:40:16] nisstyre: has joined #ruby
[02:40:19] bruno-: has joined #ruby
[02:40:41] roxtrongo: has joined #ruby
[02:41:03] aaeron: has joined #ruby
[02:42:44] ebragaparah: has joined #ruby
[02:42:47] aaeron1: has joined #ruby
[02:43:10] liquidmetal: Anyone? How do I go about building Sass from source?
[02:48:45] michael_mbp: has joined #ruby
[02:48:52] baweaver: has joined #ruby
[02:51:11] r0bby_: has joined #ruby
[02:53:25] pontiki: do you mean compass?
[02:53:55] pontiki: or do you mean generating a compressed css file from a collection of .sass files?
[02:56:48] Xeago: has joined #ruby
[02:59:41] Beoran: has joined #ruby
[03:00:04] brendan-: has joined #ruby
[03:00:19] devoldmx: has joined #ruby
[03:00:43] mrtomme: has joined #ruby
[03:00:54] gener1c: has joined #ruby
[03:02:33] darkxploit: has joined #ruby
[03:05:02] RobertBirnie: has joined #ruby
[03:05:24] Musashi007: has joined #ruby
[03:07:54] bmurt: has joined #ruby
[03:09:02] braincrash: has joined #ruby
[03:11:21] redondo: has joined #ruby
[03:13:25] Contigi: has joined #ruby
[03:13:42] otacon-: has joined #ruby
[03:14:38] elton: has joined #ruby
[03:14:42] drewvanstone: has joined #ruby
[03:14:57] AccordLTN: has joined #ruby
[03:15:05] hod0r: has joined #ruby
[03:16:06] banjara: has joined #ruby
[03:16:14] Ebok: Thanks for earlier Hanmak. Seeing differing results for those methods helps to showcase that they in fact do different things. Although I'm not quite read up enough to tell why yet. I'll look into it more.
[03:18:14] rrichardsr3: has joined #ruby
[03:18:28] casadei: has joined #ruby
[03:19:17] renderful: has joined #ruby
[03:20:15] liquidmetal: pontiki, I think compass
[03:20:21] darkf: has joined #ruby
[03:21:39] EXID123: has joined #ruby
[03:23:00] devbug: has joined #ruby
[03:29:46] chipotle: has joined #ruby
[03:29:56] EXID123: has joined #ruby
[03:32:47] EXID123: has joined #ruby
[03:35:05] ramfjord: has joined #ruby
[03:35:13] gix: has joined #ruby
[03:36:46] drewvanstone: has joined #ruby
[03:38:42] arescorpio: has joined #ruby
[03:39:52] kellabyte: has joined #ruby
[03:40:14] EXID123: has joined #ruby
[03:40:44] kellabyte: bundle isn't picking up a gem for some reason, $GEM_HOME doesn't match what "bundle show <package>" reports, aren't those supposed to match?
[03:40:55] phutchins: has joined #ruby
[03:41:16] EXID123: has joined #ruby
[03:46:15] EXID123: has joined #ruby
[03:48:44] liquidmetal: Is the #ruby channel usually this slow?
[03:49:22] go|dfish: liquidmetal: yes
[03:49:34] liquidmetal: go|dfish, where do rubyists congregate?
[03:49:37] Ebok: It helps when people do have questions.
[03:49:51] SOLDIERz: has joined #ruby
[03:49:52] Ebok: Because lots read the chatter, less respond
[03:50:03] liquidmetal: Ebok, suuuuure
[03:50:22] Ebok: I've never had a question go unheeded, but that could be luck
[03:50:33] go|dfish: liquidmetal: starbucks
[03:50:34] nofxx: liquidmetal, if you like to go fast try ##motorcycle
[03:50:55] EXID123: has joined #ruby
[03:50:57] liquidmetal: go|dfish, haha
[03:51:05] weemsledeux: has joined #ruby
[03:51:11] liquidmetal: nofxx, try #spacex
[03:52:53] nofxx: liquidmetal, that's also nice. There's #ruby-offtopic too.
[03:55:23] havenwood: has joined #ruby
[03:57:28] baweaver: We pay attention
[03:57:31] Xeago: has joined #ruby
[03:57:37] baweaver: kellabyte: what's your setup like?
[03:57:40] EXID123: has joined #ruby
[03:57:46] baweaver: RVM, RBEnv, etc
[03:58:29] baweaver: might be something with RVM hotwiring cd to check for a .ruby-version in certain directories or something to that note.
[03:58:49] stardiviner: has joined #ruby
[04:00:40] havenwood: kellabyte: Are you using Bundler's --path option? How is it different?
[04:01:14] EXID123: has joined #ruby
[04:02:00] drewvanstone: has joined #ruby
[04:02:03] kp666: has joined #ruby
[04:02:53] aaeron: has joined #ruby
[04:03:24] EXID123: has joined #ruby
[04:05:17] kellabyte: havenwood: no not setting anything, it's weird, if I do bundle install in this project, this dependency ends up in .bundler/ instead of .rvm/ and that deps deps don't get picked up
[04:05:25] kellabyte: but why is this one gem going somewhere else? its weird
[04:06:50] kellabyte: does bundler use $GEM_ENV?
[04:06:52] jenrzzz: has joined #ruby
[04:07:36] zapata: has joined #ruby
[04:09:18] havenwood: kellabyte: The Bundler default is supposedly to install gems to $GEM_HOME. Or ./vendor/bundle if you use --deployoment.
[04:10:05] havenwood: kellabyte: If it's not a Rails app you might consider resolving your Gemfile dependencies and creating a Gemfile.lock with: gem install -g
[04:11:57] havenwood: kellabyte: Maybe check that no wonky settings got "remembered": bundle config
[04:12:18] Azure|dc: has joined #ruby
[04:12:46] grekko: has joined #ruby
[04:13:33] EXID123: has joined #ruby
[04:13:36] havenwood: kellabyte: Is it a Rails app?
[04:14:14] grekko: has joined #ruby
[04:14:30] fedexo: has joined #ruby
[04:15:59] kellabyte: havenwood: no not rails
[04:16:04] devoldmx: has joined #ruby
[04:16:21] havenwood: has joined #ruby
[04:16:24] kellabyte: havenwood: its weird, if I do bundle show X then I cd to X and do bundle show rest-client, it comes from an entirely different place than X does
[04:16:34] kellabyte: you'd think both dependencies would be from the same location
[04:16:56] kellabyte: rest-client won't be picked up by the root application though that's using X which uses rest-client
[04:16:58] icarus: has joined #ruby
[04:18:35] EXID123: has joined #ruby
[04:20:18] havenwood: kellabyte: You can just use RubyGems if you prefer. Run `gem i -g` to resolve dependencies and create a Gemfile.lock and set RUBYGEMS_GEMDEPS environment variable to the location of the Gemfile you'd like to use. Or for automatic discovery of the current dir: RUBYGEMS_GEMDEPS=~
[04:20:37] tmtwd: has joined #ruby
[04:20:45] Joufflu: has joined #ruby
[04:20:56] havenwood: Oops, I meant: RUBYGEMS_GEMDEPS=-
[04:21:17] aaeron: has joined #ruby
[04:21:28] havenwood: "Use - as the path to autodetect (current and parent directories are searched)."
[04:22:03] havenwood: kellabyte: RubyGems has supported gem dependency resolution for a while now. Works well these days.
[04:22:19] kellabyte: I don't want to change how someone elses project is working
[04:22:38] havenwood: kellabyte: Check that you don't have per-project Bundler-remembered settings then.
[04:22:52] havenwood: kellabyte: You might ask the #bundler channel.
[04:23:18] kellabyte: but something is seriously screwy if you cd projA bundle install which installs projB into ~/.bundler but then you cd ~/.bundler/blahblah/projB and do a bundle show rest-client and its in ~/.rvm
[04:23:25] kellabyte: like nothing is matching or something
[04:23:38] kellabyte: how do per-project bundler work? does it store something in the projects directory?
[04:23:39] havenwood: kellabyte: Like I've mentioned, Bundler remembers settings.
[04:23:47] kellabyte: where does it remember settings?
[04:24:00] havenwood: kellabyte: Like I suggested, check: bundle config
[04:24:08] kellabyte: bundle config outputs nothing
[04:24:50] kellabyte: cd projA bundle config nothing
[04:24:51] youngbaks: has joined #ruby
[04:24:54] havenwood: kellabyte: You've got bundler problems!
[04:24:56] kellabyte: cd projB bundle config some stuff
[04:25:56] bronson: has joined #ruby
[04:26:20] dopamean_: has joined #ruby
[04:26:34] iamninja: has joined #ruby
[04:26:59] EXID123: has joined #ruby
[04:30:02] havenwood: kellabyte: Did that lead you to the Bundler config file with the issue?
[04:32:26] kellabyte: well I'm not sure which is the issue, projA or projB
[04:33:20] baweaver: Is it possible bundler is out of date, or the ruby version is old?
[04:33:45] krz: has joined #ruby
[04:36:09] [k-: has joined #ruby
[04:36:39] EXID123_: has joined #ruby
[04:37:30] bentanweihao: has joined #ruby
[04:38:02] breadmonster: has joined #ruby
[04:39:49] luckyme: has joined #ruby
[04:40:04] BTRE: has joined #ruby
[04:40:13] havenwood: breadmonster: good evenin
[04:40:17] jenrzzz: has joined #ruby
[04:40:25] breadmonster: I'm trying to pick up Ruby.
[04:40:57] kellabyte: baweaver: I don't see why that would be putting this 1 dependency in an entirely different place?
[04:41:13] breadmonster: It's not easy, because my only experience has been with functional programming.
[04:41:15] baweaver: yeah, me either honestly.
[04:41:26] baweaver: trying to think of why it would and not thinking of anything
[04:41:40] baweaver: sorry, back and forth, tutoring another person on ruby through skype.
[04:41:51] kellabyte: no problem, thanks for the help, much appreciated
[04:42:11] kellabyte: I just wanted to write some ruby but I've spent 5 hours with bundler not resolving this dependency lol
[04:42:48] havenwood: kellabyte: Does it just work if you `gem i -g` and set?: RUBYGEMS_GEMDEPS=-
[04:42:51] davedev24: has joined #ruby
[04:44:21] havenwood: kellabyte: Try backing up and removing any Bundler config files if you're dead-set on using the Bundler gem.
[04:44:41] kellabyte: havenwood: where are bundler config files stored?
[04:44:49] havenwood: kellabyte: Using the latest Bundler would hopefully result in the fewest bugs.
[04:45:15] havenwood: kellabyte: The `bundle config` command didn't tell you?
[04:45:31] havenwood: kellabyte: You might ask in the #bundler channel if you haven't already.
[04:46:47] darkxploit: has joined #ruby
[04:46:50] kellabyte: bundle config reports nothing
[04:46:58] kellabyte: like absolutely nothing lol
[04:47:04] havenwood: kellabyte: And does that app install gems to $GEM_HOME?
[04:47:16] kellabyte: bundler version 1.10.6
[04:47:59] kellabyte: yeah $GEM_HOME matches other bundle show depC
[04:48:12] kellabyte: but bundle show depB is in an entirely different location than depC
[04:48:16] kellabyte: depC works depB does not
[04:48:42] failshell: has joined #ruby
[04:48:52] Wolland: has joined #ruby
[04:48:55] kellabyte: maybe I should rm -rf ~/.bundler or something
[04:49:04] kellabyte: nuke all caches all configs? lol
[04:52:10] allcentury: has joined #ruby
[04:52:58] kellabyte: nope that didn't work either, it still put depB into ~/.bundler/ all by itself
[04:54:14] havenwood: Betcha `gem i -g` installs to $GEM_HOME. :P
[04:56:17] havenwood: breadmonster: Exploring in the REPL is an interesting way to learn some Ruby.
[04:56:22] ruboto: Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
[04:57:34] havenwood: breadmonster: The irb REPl ships with Ruby but the Pry gem is an alternative REPL that is quite popular and good for exploring.
[04:57:45] breadmonster: havenwood: What's a gem?
[04:58:10] havenwood: breadmonster: It's a Ruby package. They're often just libraries but can also have executables.
[04:58:17] kellabyte: havenwood: I'm not sure what you mean, what do I do with gem i -g?
[04:58:35] havenwood: breadmonster: Ruby ships with RubyGems, which includes the `gem` executable for installing packages like: gem install roda
[04:58:54] Xeago: has joined #ruby
[04:58:57] havenwood: kellabyte: It's a RubyGem command. Like in a directory where there's a Gemfile: gem install -g
[04:59:10] vjdhama: has joined #ruby
[04:59:21] havenwood: breadmonster: You can cut a gem and push it to RubyGems to share with the world or just install it locally.
[04:59:26] kellabyte: havenwood: oh, that installs from the local path you mean?
[04:59:30] havenwood: breadmonster: http://guides.rubygems.org/rubygems-basics/
[04:59:39] breadmonster: I know nothing of ruby.
[04:59:45] breadmonster: Where would be a good place to begin?
[05:00:01] havenwood: kellabyte: -g, --file [FILE] Read from a gem dependencies API file and install the listed gems
[05:00:47] havenwood: ?links breadmonster
[05:00:47] ruboto: breadmonster, http://ruby-community.com/pages/links
[05:01:06] karapetyan: has joined #ruby
[05:01:19] kellabyte: oh crap, I think I found the problem
[05:01:22] kellabyte: no clue why its a problem
[05:01:26] rickmasta: has joined #ruby
[05:01:28] kellabyte: verifying..
[05:01:41] karapetyan: has joined #ruby
[05:02:03] havenwood: breadmonster: tryruby.org is very basic but is a fun run-through. rubykoans.com is an interesting introduction to testing in Ruby. excersim.io has fun exercises and is a good way to get peer review of basic code.
[05:02:32] breadmonster: havenwood: Umm, the other thing is that I don't have any OOP experience, will that hold me back?
[05:02:33] havenwood: breadmonster: The Well-Grounded Rubyist, Second Edition is a good book to get up to speed quickly.
[05:03:27] havenwood: breadmonster: The Ruby object model can be a bit confusing: https://www.gliffy.com/go/publish/5152080
[05:03:49] breadmonster: havenwood: Yeah, I don't get OOP, the only language I know is Haskell.
[05:04:01] breadmonster: someone told me Ruby has a really nice OOP design.
[05:04:08] havenwood: breadmonster: That's probably a good way to approach Ruby. :)
[05:04:12] breadmonster: Like, better than Java or anything else, so I should start with that.
[05:04:12] Gnomethrower: has joined #ruby
[05:04:15] Gnomethrower: has joined #ruby
[05:04:43] havenwood: breadmonster: Here's a good quickref: http://www.zenspider.com/Languages/Ruby/QuickRef.html
[05:04:59] breadmonster: I'll read the Well-Grounded Rubyist.
[05:05:14] breadmonster: Does it assume any experience?
[05:05:25] nofxx: breadmonster, I second that. I could only understand java OO after coding ruby
[05:05:40] nofxx: that applies to every lang actually. Even those with fake OO like JS.
[05:06:44] havenwood: breadmonster: Its targeted at someone who knows some other language. It doesn't assume any pre-knowledge you wouldn't already have.
[05:06:51] nofxx: it's just clean, and very well taught
[05:07:00] breadmonster: Okay, fantastic, thank you so much!
[05:07:30] havenwood: breadmonster: No prob, you're welcome!
[05:08:45] krzkrz: has joined #ruby
[05:09:45] UtkarshRay: has joined #ruby
[05:10:29] tkuchiki: has joined #ruby
[05:13:04] aaeron: has joined #ruby
[05:16:57] SOLDIERz: has joined #ruby
[05:17:27] Soda: has joined #ruby
[05:18:52] dhjondoh: has joined #ruby
[05:19:20] dionysus69: has joined #ruby
[05:19:48] tjbiddle: has joined #ruby
[05:20:52] ndrei: has joined #ruby
[05:22:21] Anti-Pizza: has joined #ruby
[05:26:48] bronson: has joined #ruby
[05:27:58] banjara: has joined #ruby
[05:33:19] behrz: has joined #ruby
[05:33:54] codenapper: has joined #ruby
[05:34:23] aganov: has joined #ruby
[05:34:36] Macaveli: has joined #ruby
[05:34:57] Scripore: has joined #ruby
[05:36:20] dcarmich: has joined #ruby
[05:37:05] Musashi007: has joined #ruby
[05:37:09] karapetyan: has joined #ruby
[05:37:41] roxtrongo: has joined #ruby
[05:40:06] j4cknewt: has joined #ruby
[05:43:38] behrz: has joined #ruby
[05:44:56] phutchins: has joined #ruby
[05:46:50] devoldmx: has joined #ruby
[05:55:11] TomyLobo: has joined #ruby
[05:55:38] QoQOoO: has joined #ruby
[05:56:00] QoQOoO: has joined #ruby
[05:56:08] shlomo: has joined #ruby
[05:57:08] shlomo: What hash function should I use for storing passwords?
[05:57:42] bnagy: how long is a piece of string
[05:57:54] bnagy: bcrypt or scrypt, probably
[05:57:55] certainty: shlomo: scrypt
[05:58:02] havenwood: +1 bcrypt or scrypt
[05:59:08] havenwood: Votes thus far: scrypt: 3, bcrypt: 2, pbkdf2: 0
[05:59:33] shlomo: ok thanks all
[05:59:43] bnagy: http://security.stackexchange.com/a/26253
[06:00:02] bnagy: I don't have a strong religious position on bcrypt vs scrypt. I use scrypt personally.
[06:00:15] Xeago: has joined #ruby
[06:01:41] certainty: ACTION too
[06:02:13] certainty: though my crypto expert collegue fellow, says older and still practically unbroken is bettern, than younger and practically unbroken :)
[06:02:29] noethics: http://blog.ircmaxell.com/2014/03/why-i-dont-recommend-scrypt.html
[06:02:30] certainty: ACTION needs a coffee
[06:04:24] lsmola: has joined #ruby
[06:05:28] bnagy: http://www.unlimitednovelty.com/2012/03/dont-use-bcrypt.html
[06:05:41] certainty: round 1 ... fight!
[06:05:44] RegulationD: has joined #ruby
[06:05:57] havenwood: Does NIST get a vote?: pbkdf2: 1
[06:06:10] bnagy: well that blog starts of with PBKDF2 sooo.....
[06:06:17] baweaver: >> %w(scrypt bcrypt).sample
[06:06:18] havenwood: http://csrc.nist.gov/publications/nistpubs/800-132/nist-sp800-132.pdf
[06:06:18] ruboto: baweaver # => "scrypt" (https://eval.in/439286)
[06:07:06] havenwood: baweaver: Question is whether to bcrypt before scrypt or scrypt before bcyrpt. Best use both to be sure but still need a coin toss.
[06:07:46] baweaver: ACTION sighs
[06:07:52] baweaver: >> %w(scrypt bcrypt).shuffle
[06:07:53] ruboto: baweaver # => ["scrypt", "bcrypt"] (https://eval.in/439287)
[06:07:58] baweaver: there ya go
[06:08:03] bnagy: just do an AshMad and use some crazy bcrypt strength but then also use the same passwords for some dunky MD5 tokens
[06:08:08] havenwood: bcrypt, scrypt, bcrypt, random, scrypt, bcrypt, random
[06:08:15] havenwood: 0xF6, 0x00, 0xFF, random, 0x00, 0xFF, random
[06:08:34] baweaver: Something something security something obscurity
[06:08:46] noethics: you wanna go m8
[06:08:49] havenwood: bnagy: indeed...
[06:09:03] baweaver: oo, a fight?
[06:09:07] baweaver: ACTION grabs popcorn
[06:09:08] certainty: something something cookies?
[06:09:19] ruboto: here's your cookie: ????
[06:09:25] weemsledeux: has joined #ruby
[06:09:31] baweaver: it looks like a sad 3-eyed cookie
[06:09:36] noethics: the point of the article is basically summarized in the second paragraph
[06:10:09] sanjayu: has joined #ruby
[06:10:25] Stan: has joined #ruby
[06:10:34] eGGsha: has joined #ruby
[06:10:54] certainty: well doesn't matter anyway since the user/customer will likely tell his password to whoever wants to know
[06:11:10] certainty: and chances are that it's sex, password or p4ssw0rd
[06:11:15] noethics: l0l bnagy that's pretty funny though, you see the author of the first comment in that SOF link you posted
[06:11:28] noethics: CiC is everywhere
[06:11:48] roxtrongo: has joined #ruby
[06:11:54] baweaver: *cues music* Some.... where.... over the rainbow tables! Pass... words.... break.
[06:13:45] rushed: has joined #ruby
[06:14:38] Pathfinder_: has joined #ruby
[06:20:24] vjdhama: has joined #ruby
[06:21:11] shevy: a singing beaver
[06:21:24] baweaver: Wood you believe it?
[06:21:43] baweaver: It's a dam good show
[06:22:02] icarus: has joined #ruby
[06:27:35] iamninja: has joined #ruby
[06:28:02] bronson: has joined #ruby
[06:29:05] araujo_: has joined #ruby
[06:29:07] bigkevmcd: has joined #ruby
[06:29:36] DoYouKnow: has joined #ruby
[06:31:01] emilkarl: has joined #ruby
[06:32:46] firstdayonthejob: has joined #ruby
[06:34:27] bentanweihao: has joined #ruby
[06:35:41] arup_r: has joined #ruby
[06:35:42] skade: has joined #ruby
[06:37:23] armyriad: has joined #ruby
[06:38:54] Macaveli: has joined #ruby
[06:38:55] anisha: has joined #ruby
[06:40:15] Pumukel: has joined #ruby
[06:40:29] codecop: has joined #ruby
[06:41:28] gurix: has joined #ruby
[06:41:46] bruno-: has joined #ruby
[06:45:41] timonv: has joined #ruby
[06:46:46] eam: just store the password in case you need it later
[06:48:24] amystephen: has joined #ruby
[06:53:20] nfk|laptop: has joined #ruby
[06:54:30] robbyoconnor: has joined #ruby
[06:57:33] psk17_: has joined #ruby
[06:57:57] lemur: has joined #ruby
[06:58:01] j4cknewt_: has joined #ruby
[06:58:02] darkf_: has joined #ruby
[06:58:50] banjara: has joined #ruby
[07:00:17] crdpink: has joined #ruby
[07:01:02] Xeago: has joined #ruby
[07:01:28] soc42: has joined #ruby
[07:03:09] CrazyEddy: has joined #ruby
[07:04:21] dseitz: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[07:04:41] Feyn: has joined #ruby
[07:05:30] last_staff: has joined #ruby
[07:05:49] vjdhama: has joined #ruby
[07:05:59] karapetyan: has joined #ruby
[07:06:25] vjdhama: has joined #ruby
[07:07:04] Kamilion: has joined #ruby
[07:07:12] Wolland: has joined #ruby
[07:11:31] vjdhama: has joined #ruby
[07:12:39] UtkarshRay: has joined #ruby
[07:12:40] cball: has joined #ruby
[07:12:45] segmond: has joined #ruby
[07:13:04] ArchRogem: has joined #ruby
[07:13:05] adambeynon: has joined #ruby
[07:13:20] pwnd_nsfw: has joined #ruby
[07:14:48] craysiii: has joined #ruby
[07:19:01] j4cknewt: has joined #ruby
[07:19:02] mondayrain: has joined #ruby
[07:19:07] charliesome: has joined #ruby
[07:22:36] Shoutsid: has joined #ruby
[07:28:57] bronson: has joined #ruby
[07:29:26] allomov: has joined #ruby
[07:29:30] tjbiddle: has joined #ruby
[07:30:08] astrobunny: has joined #ruby
[07:32:40] quiez: has joined #ruby
[07:33:02] iamninja: has joined #ruby
[07:33:13] terlar: has joined #ruby
[07:34:30] SOLDIERz: has joined #ruby
[07:36:37] vjdhama_: has joined #ruby
[07:36:38] tagrudev: has joined #ruby
[07:37:09] howdoi: has joined #ruby
[07:38:52] shoutsid06: has joined #ruby
[07:39:20] jgt2: has joined #ruby
[07:39:21] yfeldblum: has joined #ruby
[07:39:53] keen________: has joined #ruby
[07:40:24] anisha: has joined #ruby
[07:40:41] yfeldblum: has joined #ruby
[07:41:06] DoubleMalt: has joined #ruby
[07:41:13] slayerjain: has joined #ruby
[07:41:21] beast: has joined #ruby
[07:41:21] Shoutsid: has joined #ruby
[07:42:31] bruno-: has joined #ruby
[07:44:08] BaroMeter: has joined #ruby
[07:44:33] jenrzzz: has joined #ruby
[07:45:01] [k-: haha dam
[07:45:12] [k-: i see what you did there
[07:45:19] [k-: (one hour later)
[07:45:31] grekko: has joined #ruby
[07:46:18] burgestrand: has joined #ruby
[07:46:50] icarus: has joined #ruby
[07:47:36] devoldmx: has joined #ruby
[07:47:42] favadi: has joined #ruby
[07:47:43] leafybasil: has joined #ruby
[07:48:50] [k-: haha wood
[07:48:57] [k-: i see what you did there
[07:49:27] SCHAAP137: has joined #ruby
[07:50:04] theRoUS: has joined #ruby
[07:50:33] vjdhama: has joined #ruby
[07:54:03] Antiarc: has joined #ruby
[07:54:28] vjdhama_: has joined #ruby
[07:54:37] j4cknewt: has joined #ruby
[07:55:39] Xeago: has joined #ruby
[07:56:00] c0m0: has joined #ruby
[07:56:12] slucx: has joined #ruby
[07:56:26] slucx: has left #ruby: ()
[07:57:23] startupality: has joined #ruby
[07:58:00] amystephen: has joined #ruby
[07:58:16] tesuji: has joined #ruby
[07:58:52] PlasmaStar: has joined #ruby
[08:03:44] krisquigley: has joined #ruby
[08:04:57] gurix: has joined #ruby
[08:05:35] arup_r: One topic I got today to discuss here - I was reading Proxy Pattern, and it seems like it basically used to implemen lazy loading like we do using ||= in Ruby. Is my understanding correct ? ( ref - http://www.tutorialspoint.com/design_pattern/proxy_pattern.htm )
[08:05:43] Spami_: has joined #ruby
[08:06:42] RegulationD: has joined #ruby
[08:07:19] Anti-Pizza: has joined #ruby
[08:11:36] burgestrand: has joined #ruby
[08:12:39] ruurd: has joined #ruby
[08:13:19] nopc0de: has joined #ruby
[08:13:49] nami: has joined #ruby
[08:16:44] Antiarc: has joined #ruby
[08:17:06] nolic: has joined #ruby
[08:21:44] Zackio: has joined #ruby
[08:21:47] felixr: has joined #ruby
[08:22:33] Kendos-Kenlen: has joined #ruby
[08:22:44] jgt3: has joined #ruby
[08:23:03] certainty: arup_r: that's the specifics of the proxy given there
[08:23:23] certainty: it needs not to be that way
[08:23:56] certainty: the point is that you have a thing that implements the same interface (or parts of it) as the real thing
[08:23:59] certainty: but is not the real thing
[08:24:36] herbst: has joined #ruby
[08:25:22] Gustavo: has joined #ruby
[08:25:47] casadei: has joined #ruby
[08:27:08] youngbaks: has joined #ruby
[08:28:40] araujo: has joined #ruby
[08:28:50] arup_r: certainty: thanks. I think i got it ..
[08:28:58] tockitj: has joined #ruby
[08:29:02] reprazent: has joined #ruby
[08:29:34] certainty: arup_r: of course it differs from the real thing in it's implementation. Otherwise there would be no point in having a proxy :)
[08:29:40] certainty: but i guess that was clear from the context
[08:29:55] bronson: has joined #ruby
[08:30:29] arup_r: Basically Proxy is helping the Real one not to get get instantiated for every requests from the same client, rather re using the first created real object..
[08:30:58] dmolina: has joined #ruby
[08:32:13] ndrei: has joined #ruby
[08:33:45] vjdhama: has joined #ruby
[08:34:35] favadi: has joined #ruby
[08:35:30] dionysus69: has joined #ruby
[08:36:59] Stan: has joined #ruby
[08:38:52] Peteykun: has joined #ruby
[08:40:51] certainty: arup_r: as i said, that's true only for that example. There are other examples where proxies do something else. But what stays the same is that they're used instead of the real thing, because they use the service of the real thing but want others to present a slightly different implementation
[08:41:11] certainty: in the example you linked it's the loading of the image that's expensive
[08:41:12] marr: has joined #ruby
[08:41:28] certainty: and a proxy is used to mitigate that
[08:41:42] arup_r: humm... true
[08:42:04] Voxxit: has joined #ruby
[08:43:58] CloCkWeRX: has joined #ruby
[08:44:36] maloik: ljarvis: if someone replies to someone and says "lmao. have a word" what does that even mean?
[08:44:43] maloik: I'm pretty sure it's not "we need to have a chat" in this case
[08:45:00] maloik: (asking cause I think it's a british thing to say?)
[08:45:37] yitsushi: has joined #ruby
[08:47:36] maloik: context: https://twitter.com/nslater/status/647164309450170368
[08:48:29] allomov: has joined #ruby
[08:49:01] Kendos-Kenlen: has joined #ruby
[08:49:14] canton7: "have a word" == "have a chat", but sometimes more serious. to have a word with someone might mean telling them off
[08:51:37] drptbl: has joined #ruby
[08:51:41] maloik: much confuse
[08:52:19] drewvanstone: has joined #ruby
[08:52:33] einarj: has joined #ruby
[08:53:26] Antiarc: has joined #ruby
[08:54:01] slayerja_: has joined #ruby
[08:54:42] Hounddog: has joined #ruby
[08:59:04] absklb: has joined #ruby
[08:59:16] absklb: there is bundler in my /usr/local/bin/bundler how do i uninstall it so that i can install one required?
[09:00:37] pontiki: has joined #ruby
[09:01:11] felixrsmith: has joined #ruby
[09:01:23] UtkarshRay: has joined #ruby
[09:02:07] reprazent: has joined #ruby
[09:02:19] maloik: is updating it not an option?
[09:02:21] CloCkWeRX: has joined #ruby
[09:02:29] maloik: otherwise, I'd look at tools like chruby, rbenv, rvm
[09:02:51] konsolebox: has joined #ruby
[09:03:23] devoldmx: has joined #ruby
[09:03:35] konsolebox: has joined #ruby
[09:05:27] Kendos-Kenlen: has joined #ruby
[09:07:52] absklb: there are conflict of diffferent versions. how update will solve it? maloik
[09:11:05] maloik: you mention that you want to uninstall "it", that implies only one has been installed
[09:11:13] maloik: what do you mean by conflict of different versions
[09:11:25] maloik: either way, again, look at chruby, rbenv or rvm
[09:11:58] favadi: has joined #ruby
[09:12:44] absklb: maloik: i have it in rvm also and installed by apt-get also and in local vendor/bundel lso
[09:13:04] absklb: maloik: how can i get rid of all and every bundler so that it will be like i never installed any ruby thing at all
[09:13:11] decoponio: has joined #ruby
[09:13:20] Igorshp: has joined #ruby
[09:13:26] Xeago: has joined #ruby
[09:14:28] Musashi007: has joined #ruby
[09:14:31] maloik: "gem uninstall bundler" should work
[09:15:11] absklb: maloik: that removed it from my ~/.rvm but its still there is bundler: /usr/local/bin/bundler
[09:15:43] Scripore: has joined #ruby
[09:15:58] maloik: I'm honestly not all that good resolving issues like this, but if `which bundler` points you to /usr/local/bin/bundler then there's probably an issue with your $PATH
[09:16:13] maloik: and then you need to check out the rvm readme to get it set up the way it should be
[09:16:17] absklb: whereis bundler gives me this path
[09:16:48] absklb: maloik: why user local bin should not be in path?
[09:16:59] Gustavo: has joined #ruby
[09:17:45] maloik: it should be, but it's supposed to use the rvm one first before looking there
[09:18:18] absklb: maloik: shall manually rm that bundler?
[09:18:43] maloik: not sure, sorry
[09:22:10] renderful: has joined #ruby
[09:22:23] vjdhama: has joined #ruby
[09:23:37] arup_r: has joined #ruby
[09:25:12] dhjondoh: has joined #ruby
[09:26:29] Antiarc: has joined #ruby
[09:26:34] solocshaw: has joined #ruby
[09:26:42] drptbl: has joined #ruby
[09:28:46] slayerjain: has joined #ruby
[09:30:26] absklb: maloik: now i have onlly one bundler 1.7.10 and still my Canvas LMS script complainss that i dont have 1.7.10 and something else
[09:30:33] absklb: how can i chheck which version is tis gem?
[09:30:42] absklb: but i just did gem install bundler -v 1.7.10
[09:30:50] bronson: has joined #ruby
[09:34:08] quazimodo: has joined #ruby
[09:34:42] TheWhip: has joined #ruby
[09:36:39] lsmola: has joined #ruby
[09:37:00] ndrei: has joined #ruby
[09:38:26] reprazent: has joined #ruby
[09:39:59] TheWhip: has joined #ruby
[09:40:33] leafybasil: has joined #ruby
[09:41:48] casadei: has joined #ruby
[09:42:15] TheWhip: Hey wattsup!!
[09:43:02] leafybasil: has joined #ruby
[09:43:21] bruno-: has joined #ruby
[09:43:26] absklb: errors....
[09:43:55] shredding: has joined #ruby
[09:45:42] Worf: has joined #ruby
[09:49:37] favadi: has joined #ruby
[09:50:45] charliesome: has joined #ruby
[09:50:59] reprazent: has joined #ruby
[09:51:01] jhass: absklb: what's the exact error message? what exact command does produce it? what's your output to gem env? put everything into a gist, help people to help you
[09:51:10] jhass: *of gem env
[09:51:49] diegoviola: has joined #ruby
[09:51:51] Worf: is this a place where someone without rubly knowledge may ask for help debugging some ruby app? :) I try to use saml auhtentication for a webservice. i identified the problem being some attributes not being matched. i think this is the file in question: https://github.com/PracticallyGreen/omniauth-saml/blob/master/lib/omniauth/strategies/saml.rb (near the end, where name, email, ... get matched). how could i dump the whole attributes structure to some
[09:51:53] Worf: log or so, so i see what is wrong?
[09:53:04] maloik: Worf: look at the remote-pry gem, and just open the pry console right where you think the problem is so you can inspect the attributes
[09:53:16] maloik: that is, if you can reproduce the problem in development as well
[09:53:21] maloik: wouldnt recommend doing this in production ;)
[09:54:36] platzhirsch: has joined #ruby
[09:54:36] reprazent: has joined #ruby
[09:58:44] Worf: maloik: that sounds impressive, but i fear that is way above me
[09:58:53] lxsameer: has joined #ruby
[09:59:05] maloik: ...what? what part is "impressive"?
[10:00:05] Worf: well, the workflow you described .. pry, etc ...
[10:00:32] maloik: have you looked at the readme?
[10:01:02] ramfjord: has joined #ruby
[10:01:11] drptbl: has joined #ruby
[10:01:26] maloik: there's nothing impressive about it... you add the gem, add `binding.remote_pry` or whatever it is to your code, then run `pry-remote` in your terminal
[10:01:31] tkuchiki: has joined #ruby
[10:01:34] maloik: anyway, lunch time
[10:02:58] jas02: has joined #ruby
[10:03:35] Kendos-Kenlen: has joined #ruby
[10:03:57] davedev24: has joined #ruby
[10:04:07] devoldmx: has joined #ruby
[10:04:43] [k-: ha! another lunchtime added to my list
[10:05:21] [k-: apeiros - maloik -------- adaedra
[10:06:04] [k-: key: one - represents 15 min
[10:06:18] absklb: jhass: ok
[10:06:47] blaxter: has joined #ruby
[10:07:30] RegulationD: has joined #ruby
[10:07:34] bougyman: anyone have a better way to get the default: stanza from http://sprunge.us/aMDN than File.read("sample.txt").match(/^default:.*\n\n/m)?
[10:07:43] bougyman: it's _almost_ ymlish
[10:07:50] bougyman: but not yml enough.
[10:08:44] RobertBirnie: has joined #ruby
[10:09:27] darix: bougyman: isnt it kinda late for you? o.O
[10:09:48] bougyman: darix: no, early.
[10:09:49] Antiarc: has joined #ruby
[10:09:57] bougyman: 6 a.m. on the east coast.
[10:10:35] darix: good morning then^^
[10:11:13] allezbluez: has joined #ruby
[10:11:23] musicmatze: Can someone of you have a quick look at https://github.com/matthiasbeyer/jekyll-toc-generator/blob/master/jekyll-toc-generator.gemspec and tell me what is wrong with my gemspec? When installing with bundler (with git: <url>) it is not available afterwards...
[10:11:28] musicmatze: and I don't know wgy
[10:12:08] karapetyan: has joined #ruby
[10:12:24] adaedra: what do you mean, not available?
[10:12:34] adaedra: do you run your things with `bundle exec`?
[10:13:20] musicmatze: well, when browsing the vendor/bundle directory I installed it to, it is in vendor/bundle/ruby/2.2.0/bundler/gems/jekyll-toc-generator but when doing bundle exec irb and then require it I get an error because it cannot be found
[10:13:34] musicmatze: yes, I use bundle exec.
[10:13:53] rodfersou: has joined #ruby
[10:14:37] TheWhip: has joined #ruby
[10:15:09] astrobunny: has joined #ruby
[10:15:26] linc01n: has joined #ruby
[10:15:35] blackjid: has joined #ruby
[10:16:07] wookiehangover: has joined #ruby
[10:16:08] waxjar: has joined #ruby
[10:16:15] bf4: has joined #ruby
[10:18:51] [k-: hi adaedra
[10:19:03] [k-: did you like the ping?
[10:19:16] bougyman: i feel so dirty: stanza_data = Hash[default_stanza[0].each_line.map { |n| var,val = n.split(/\s*=\s*/); [var.strip,val.strip] if val }.compact]
[10:19:25] bougyman: times like this i wish ruby had an embedded awk
[10:20:18] rickmasta: has joined #ruby
[10:21:08] rodfersou: has joined #ruby
[10:21:08] tkiel_: has joined #ruby
[10:23:27] rodfersou: has joined #ruby
[10:23:48] voker57: has joined #ruby
[10:25:45] nfk|laptop: has joined #ruby
[10:26:11] darkf: has joined #ruby
[10:27:42] darix: bougyman: why awk?
[10:27:59] TheWhip: has joined #ruby
[10:28:10] bougyman: darix: because awk is built for this.
[10:28:19] darix: bougyman: how would you write it in awk?
[10:28:31] tockitj: has joined #ruby
[10:28:42] Pathfinder_: has joined #ruby
[10:29:11] Balzrael: has joined #ruby
[10:29:27] vjdhama: has joined #ruby
[10:29:55] psycho_one: has joined #ruby
[10:30:16] codenapper: has joined #ruby
[10:30:25] reprazent: has joined #ruby
[10:31:05] bougyman: awk '/^default:/{defstanza=1}/^$/{defstanza=0}defstanza==1{vars[$1] = $3}END{stuff with vars}'
[10:31:23] bougyman: they key there is the auto field splitting.
[10:31:24] tkiel_: has joined #ruby
[10:31:29] bougyman: which I know ruby _can_ do.
[10:31:40] bougyman: but it's ugly with $F (iirc?)
[10:31:44] bronson: has joined #ruby
[10:31:57] phutchins: has joined #ruby
[10:31:58] darix: $IF probably
[10:32:06] darix: $IFS i mean
[10:32:14] decoponio: has joined #ruby
[10:32:26] dhjondoh: has joined #ruby
[10:32:33] darix: ah you mean ruby -a
[10:32:33] bougyman: I mean you can run ruby in 'awk mode'
[10:32:51] bougyman: and you get this $F array of the fields.
[10:32:53] darix: but the only thing is ... it does $F = $_.split
[10:33:03] darix: and the stuff it splits on should be set with IFS
[10:33:15] stamina: has joined #ruby
[10:33:27] darix: google IFS is useless
[10:34:02] bougyman: you even get BEGIN and END blocks in ruby in that mode
[10:34:08] bougyman: not just field splitting
[10:34:33] bougyman: what's lacking, though is the pattern { action } thing that makes awk purpose built for this stuff.
[10:36:47] faces: has joined #ruby
[10:37:28] Worf: has left #ruby: ("Konversation terminated!")
[10:37:59] j4cknewt: has joined #ruby
[10:38:43] apt-get: has joined #ruby
[10:42:06] bw: has joined #ruby
[10:43:19] sanjayu: has joined #ruby
[10:44:07] bruno-: has joined #ruby
[10:44:12] gregf_: arup_r: https://gist.github.com/anonymous/dd7ddb6e301ba18caa1a <= this is a kind of a proxy :/
[10:44:30] gregf_: oops. was wondering where my chat disappeared :/
[10:44:55] dhjondoh: has joined #ruby
[10:45:15] akemrir: has joined #ruby
[10:45:33] akemrir: hi, is there possibility to talk to hid devices from ruby?
[10:45:34] slackbotgz: has joined #ruby
[10:46:29] tkiel_: has joined #ruby
[10:47:02] arup_r: gregf_: thanks :)
[10:48:37] pontiki: has joined #ruby
[10:48:59] dhjondoh: has joined #ruby
[10:49:07] pandaant: has joined #ruby
[10:49:47] bentanweihao: has joined #ruby
[10:52:01] zapata: has joined #ruby
[10:52:55] apt-get: has joined #ruby
[10:54:00] linc01n: has joined #ruby
[10:54:56] wookiehangover: has joined #ruby
[10:55:03] waxjar: has joined #ruby
[10:55:07] blackjid: has joined #ruby
[10:55:18] bf4: has joined #ruby
[10:55:29] emilkarl: has joined #ruby
[10:56:24] jmignault: has joined #ruby
[10:56:57] bentanweihao: has joined #ruby
[10:57:38] Xeago: has joined #ruby
[10:57:59] certainty: [k-: you're counting lunchtimes?
[10:59:47] skade: has joined #ruby
[11:00:23] tkiel_: has joined #ruby
[11:02:17] tvw: has joined #ruby
[11:04:06] joncol: has joined #ruby
[11:05:01] joncol: Hi, I've created a minimal test app using Sinatra, and a Rakefile. A call to "development?" returns true. How can I change to "production" mode?
[11:05:04] Kendos-Kenlen: has joined #ruby
[11:06:51] allezbluez: has joined #ruby
[11:06:52] Xeago: has joined #ruby
[11:08:19] allezbluez: has joined #ruby
[11:08:40] phutchins: has joined #ruby
[11:09:18] rodfersou: has joined #ruby
[11:10:55] canton7: joncol, how are you starting sinatra?
[11:12:29] drptbl: has joined #ruby
[11:12:45] arup_r: has joined #ruby
[11:13:29] ghr: joncol http://www.sinatrarb.com/configuration.html#environment---configurationdeployment-environment ?
[11:14:42] iateadonut: has joined #ruby
[11:15:43] vjdhama: has joined #ruby
[11:16:05] sdothum: has joined #ruby
[11:19:18] drewvanstone: has joined #ruby
[11:19:31] iamninja: has joined #ruby
[11:20:04] slackbotgz: has joined #ruby
[11:21:12] DexterLB: has joined #ruby
[11:21:17] rodfersou: has joined #ruby
[11:25:55] rodfersou: has joined #ruby
[11:26:16] reprazent: has joined #ruby
[11:27:11] slayerja_: has joined #ruby
[11:27:28] tomphp: has joined #ruby
[11:28:33] suchness: has joined #ruby
[11:29:16] suchness: I have a method, :restrictions, and I want to create a variable in there called :restrictions, I feel like somewhere I saw a weird variable prefix that made the difference clear, does anyone know what I am talking about?
[11:30:22] casadei: has joined #ruby
[11:32:38] bronson: has joined #ruby
[11:33:35] suchness: I am not sure I know what I am talking about either.
[11:33:36] freezevee: has joined #ruby
[11:33:41] jhass: local_variable_or_method, @instance_variable, @@class_variable, $global_or_pseudo_global_variable, Constant
[11:33:53] jhass: :symbol, that's a value and not an identifier
[11:35:14] Spami: has joined #ruby
[11:36:19] syath: has joined #ruby
[11:36:34] roxtrongo: has joined #ruby
[11:36:42] linduxed: has joined #ruby
[11:36:44] suchness: jhass: http://pastie.org/private/jybmj0ljc054nvropbygg
[11:37:25] jgt3: has joined #ruby
[11:37:40] suchness: That restrictions method returns an array, the items are stored in a database, but they have an object representation in the code. I am just wondering how to remain clear, without prepending a '_' to the restrictions variable because I think that's ugly.
[11:38:05] felixrsmith: has joined #ruby
[11:38:24] suchness: Additionally, :restrictions= is also a setter in the class, so this restrictions variable makes it all the more confusing.
[11:39:02] encoded73: has joined #ruby
[11:39:05] joncol: ghr, thanks for the link
[11:39:17] jhass: suchness: that's a quite horrible approach tbh
[11:39:23] quazimodo: has joined #ruby
[11:39:25] suchness: http://pastie.org/private/0dkbr2tnuoqkygms7ixt7w
[11:39:29] suchness: I think so too.
[11:39:36] gurix: has joined #ruby
[11:39:39] suchness: But I am not really sure how to improve it.
[11:39:43] suchness: Actually, I am sure.
[11:39:44] jhass: it bursts method caches all the time
[11:39:53] suchness: How do you mean?
[11:40:01] encoded73: has left #ruby: ()
[11:40:35] jhass: suchness: ruby caches method lookup, that is looking up on which item of the ancestor chain a method is defined
[11:40:49] jhass: defining a new method voids those caches
[11:40:59] jhass: so doing it at program runtime is a bad idea
[11:41:04] suchness: jhass: I am very open to improving how I am doing this. Any idea?
[11:41:34] jhass: can't these just go into whatever class restriction is?
[11:41:56] jhass: I don't know why you would define them for each instance
[11:42:24] suchness: Well. super is essentially nothing more than a plain array.
[11:42:32] jhass: if you don't own the code use SimpleDelegator or some other wrapper class
[11:43:36] TheWhip: has joined #ruby
[11:44:07] suchness: jhass: Each object in the array is {:class => SomeRestrictionClass, :parameters => {:some => :build, :para => :meters}}
[11:44:45] jhass: so just push new keys?
[11:44:52] jhass: why do you need to define methods on them?
[11:45:22] jhass: or as said do a wrapper class
[11:45:33] mary5030: has joined #ruby
[11:45:34] suchness: This array of restrictions lives in an "Offer" class.
[11:45:44] nami: has left #ruby: ("Leaving...")
[11:45:54] jhass: how does that change anything?
[11:46:03] suchness: I want to be able to do offer.restrictions.objects, and have each representation of a restriction object build itself based on its class.
[11:46:10] jhass: so do a wrapper class
[11:46:24] moeabdol: has joined #ruby
[11:46:44] jhass: Restrictions.new super.map {|restriction| Restriction.new(restriction) }
[11:47:28] suchness: I see what you mean.
[11:47:56] suchness: The issue with that is, I don't want this to occur every time I access restrictions
[11:48:48] Igorshp: has joined #ruby
[11:49:05] suchness: The object representation is really only for the views, basically restrictions.objects.first.message == "You may not accept this because user3 did'
[11:49:18] suchness: The rest of the code relys on the raw representation with no objects.
[11:49:49] mary5030: has joined #ruby
[11:49:59] devoldmx: has joined #ruby
[11:50:06] suchness: But I see what you are getting at, I will have to look it over again and see how I can improve it with your concerns in mind.
[11:50:17] krisquigley: has joined #ruby
[11:51:49] burgestrand: has joined #ruby
[11:51:55] mary5030_: has joined #ruby
[11:52:07] yitsushi: has joined #ruby
[11:52:48] suchness: I suppose I could just write a new restriction_objects method. But it seems redundant somehow.
[11:54:28] UtkarshRay: has joined #ruby
[11:54:28] Timba-as: has joined #ruby
[11:54:31] maloik: [k-: lunchtime list? wat?
[11:55:25] suchness: Or just create a presenter for the views...
[11:55:51] ldnunes: has joined #ruby
[11:58:39] Xeago: has joined #ruby
[11:59:29] jhass: suchness: check the presenter pattern
[11:59:29] bentanweihao: has joined #ruby
[11:59:38] jhass: oh, too slow :D
[11:59:41] kraljev11: has joined #ruby
[11:59:45] jhass: didn't fully read up, sorry
[12:00:09] suchness: haha, no worries!
[12:02:09] tomphp: has joined #ruby
[12:02:11] izzol: I have a simply sinatra API, so far only something like '/all' (GET) which is calling my method. I have a result in json but it's in one line. I mean there is no new line there so it's hard to see the output.
[12:02:33] izzol: There is a simply way to have the output with new lines?
[12:02:36] jhass: izzol: there are browser plugins to prettify it
[12:02:39] izzol: maybe I'm doing something wrong
[12:02:55] jhass: no, you should keep it that way, get a better viewer
[12:02:59] izzol: jhass: I was thinking to just use curl
[12:03:00] lolmaus_: has joined #ruby
[12:03:19] jhass: pipe it to json_pp or whatever then
[12:03:24] jhass: or get httpie
[12:03:38] beauby: has joined #ruby
[12:05:23] izzol: works fine with JSON.pretty_generate() :-)
[12:05:48] Anti-Pizza: has left #ruby: ("Leaving")
[12:07:08] jhass: but don't do it
[12:07:15] jhass: you waste bytes
[12:07:40] jhass: besides the conceptual issues of caring about visual presentation in an API route, ugh
[12:08:15] RegulationD: has joined #ruby
[12:08:48] nzst: has joined #ruby
[12:09:10] sgambino: has joined #ruby
[12:09:35] A124: has joined #ruby
[12:12:34] charliesome: has joined #ruby
[12:14:12] charliesome: has joined #ruby
[12:15:23] awk: bougyman: you called?
[12:16:52] _el_fer_: has joined #ruby
[12:17:38] gregf_: and now.. we have a bot for awk :|
[12:20:22] subshad: has joined #ruby
[12:22:46] sepp2k: has joined #ruby
[12:23:17] asxbr: has joined #ruby
[12:25:04] memnon34: has joined #ruby
[12:26:04] atomical: has joined #ruby
[12:26:16] Scripore: has joined #ruby
[12:26:28] gurix: has joined #ruby
[12:26:55] Kallis: has joined #ruby
[12:28:38] mdih: has joined #ruby
[12:29:30] arup_r: has joined #ruby
[12:30:19] memnon34: has joined #ruby
[12:30:34] prestorium: has joined #ruby
[12:30:44] jas02: has joined #ruby
[12:31:02] jenrzzz: has joined #ruby
[12:31:05] arup_r1: has joined #ruby
[12:31:19] casadei: has joined #ruby
[12:32:14] Silox|: has joined #ruby
[12:32:52] Mon_Ouie: has joined #ruby
[12:33:41] vjdhama: has joined #ruby
[12:34:14] andyrs: has joined #ruby
[12:34:45] tkuchiki: has joined #ruby
[12:35:28] rickmasta: has joined #ruby
[12:36:10] krisquigley: has joined #ruby
[12:36:45] bkulbida: has joined #ruby
[12:37:19] mary5030: has joined #ruby
[12:37:44] p0wn3d__: has joined #ruby
[12:37:58] DrCode: has joined #ruby
[12:38:21] jcromartie: has joined #ruby
[12:39:57] howdoi: has joined #ruby
[12:41:19] jmignault: has joined #ruby
[12:41:26] drptbl_: has joined #ruby
[12:44:59] ericjphillips: has joined #ruby
[12:45:10] startupality: has joined #ruby
[12:45:23] ejnahc: has joined #ruby
[12:45:48] drptbl: has joined #ruby
[12:46:38] zlogan: has joined #ruby
[12:46:55] michael_mbp: has joined #ruby
[12:47:03] Mon_Ouie: has joined #ruby
[12:48:14] tkuchiki: has joined #ruby
[12:48:29] dstarh: has joined #ruby
[12:48:47] jmignault: has joined #ruby
[12:48:50] Thib: has joined #ruby
[12:48:53] aswen: has joined #ruby
[12:51:16] michael_mbp: has joined #ruby
[12:52:44] to_json: has joined #ruby
[12:52:59] yottanami: has joined #ruby
[12:53:40] yottanami: Here is a sample XML http://dpaste.com/0T91JYF and I need to parse it to find the result of messageId and I used this code https://gist.github.com/yottanami/d4c691fab494c6c5a61e but it can not find
[12:53:58] yottanami: How can I do it?
[12:56:06] treehug88: has joined #ruby
[12:56:07] bmurt: has joined #ruby
[12:56:09] victortyau: has joined #ruby
[12:57:58] cornerma1: has joined #ruby
[12:57:59] rocknrollMarc: has joined #ruby
[12:59:08] rocknrollMarc: has joined #ruby
[12:59:37] hahuang65: has joined #ruby
[13:00:48] syath: has joined #ruby
[13:01:14] jenrzzz: has joined #ruby
[13:01:27] zlogan: has joined #ruby
[13:02:55] dravine: has joined #ruby
[13:03:15] Kendos-Kenlen: has joined #ruby
[13:03:23] eosinx: has joined #ruby
[13:03:37] rbennacer: has joined #ruby
[13:04:55] yottanami: Is any tools to find a tag in a xml?
[13:05:05] rbennacer: has joined #ruby
[13:05:17] gurix: has joined #ruby
[13:05:43] beast: has joined #ruby
[13:07:07] JDiPierro: has joined #ruby
[13:07:09] arup_r1: yottanami: nokogiri gem
[13:07:36] jordanm: has joined #ruby
[13:08:24] suchness: I have a a proc that accepts an argument. Is it possible to do the map(&MY_PROC) ?
[13:08:37] startupality: has joined #ruby
[13:09:05] suchness: Oh wait that calls to proc on the receiver
[13:09:09] gusTester: has joined #ruby
[13:09:19] jhass: yottanami: the path is soapenv:Envelope/soapenv:Body/soapenv:Fault/detail/ns1:ServiceException/messageId, properly formatting the XML would help seeing that
[13:10:45] jhass: yottanami: what's XML?
[13:11:20] yottanami: jhass, I found it tnx
[13:11:27] yottanami: my problem solved using message = content.find_first('//messageId')
[13:11:31] jhass: (the module/class)
[13:11:32] yottanami: I just add another /
[13:11:55] CloCkWeRX: has joined #ruby
[13:13:16] drptbl_: has joined #ruby
[13:13:22] evanjs: has joined #ruby
[13:14:05] tomphp: has joined #ruby
[13:14:26] quazimodo: has joined #ruby
[13:15:16] tomphp: has joined #ruby
[13:15:20] ejnahc: has joined #ruby
[13:15:22] whippythellama: has joined #ruby
[13:15:51] jgpawletko: has joined #ruby
[13:17:57] startupality: has joined #ruby
[13:18:00] charliesome: has joined #ruby
[13:18:19] j416: if I've a gem that has rake tasks, but I need the gem to be configured before use, what would be a good way to go about it?
[13:18:58] j416: it's merely a collection of methods on a module, the only state is configuration
[13:19:02] `tim`: has joined #ruby
[13:19:51] jhass: I'd still extract the task contents into classes so that they become task :foo do; FooTask.new; end,
[13:19:56] j4cknewt: has joined #ruby
[13:20:10] jhass: then the initialize can do MyGem.check_configured! or whatever
[13:20:34] tomphp: has joined #ruby
[13:20:41] gizmore: has joined #ruby
[13:21:14] yitsushi: has joined #ruby
[13:21:18] JoshL: j416: Make it generate the tasks a la RSpec
[13:21:28] j416: JoshL: that's interesting
[13:21:34] j416: JoshL: will investigate
[13:21:43] jhass: Rake::TestTask might be worth looking into too
[13:21:55] jmignault: has joined #ruby
[13:21:56] JoshL: j416: https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/rake_task.rb
[13:22:39] eosinx: For Test/Unit assertions, do I always have to write classes?
[13:22:43] moeabdol: has joined #ruby
[13:23:01] jhass: minitest has a spec DSL too
[13:23:59] eosinx: by the way, when my parent (MDArray) class doesn't have Foo.new(), how do I initialize @instance variables?
[13:24:20] jmignault: has joined #ruby
[13:24:21] jhass: you don't?
[13:24:33] jhass: I don't think I fully follow the question
[13:24:47] eosinx: situation is this:
[13:25:12] eosinx: I'd like to define some self.methods to MDArray
[13:25:38] eosinx: But initialization starts with MDMatrix.float(yaddadahaa)
[13:25:58] ruboto: We can't help you without your code, please post it to https://gist.github.com
[13:26:06] The_Phoenix: has joined #ruby
[13:26:45] rickmasta: has joined #ruby
[13:27:18] j416: thanks jhass, JoshL. Will figure something out.
[13:27:37] eosinx: ruboto: oh, you're the writer of MDArray, right?
[13:27:50] ruboto: I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[13:28:10] JoshL: j416: https://gist.github.com/jlindsey/b8ffbd2d899fcbe7ec9e is what a Rakefile would look like btw, if you've never used the RSpec task (or one like it) before
[13:28:14] jmignault: has joined #ruby
[13:29:07] j416: JoshL: thanks. Not very helpful in this case I think; I want all tasks predefined
[13:29:46] jhass: j416: following https://github.com/bundler/bundler/blob/master/lib/bundler/gem_tasks.rb might give some inspiration too
[13:30:35] stamina: has joined #ruby
[13:30:42] malconis: has joined #ruby
[13:30:56] eosinx: ruboto: here you go https://gist.github.com/anonymous/ae065a6054668e3fb9ae
[13:31:03] jhass: ?justabot
[13:31:03] ruboto: I'm just a bot. You don't need to address me.
[13:31:31] jhass: eosinx: why would you subclass anything?
[13:32:04] eosinx: jhass: I actually like to learn how to write unit tests with shoulda ...
[13:32:06] memnon34: has joined #ruby
[13:32:24] jhass: creating a class does not demand creating a subclass of code you're calling currently
[13:32:35] jhass: just wrap it in a class
[13:33:13] jgpawletko: has left #ruby: ()
[13:33:38] eosinx: but how would I test pieces and steps in the proceduer?
[13:33:51] jhass: by extracting them to methods on your class
[13:34:02] vjdhama_: has joined #ruby
[13:34:23] jhass: class PageRank; def initialize; setup_ivars; end; def pagerank; compute_a; compute_b; compute_c; return_pagerank; end; end;
[13:34:28] bronson: has joined #ruby
[13:34:58] jgpawletko: has joined #ruby
[13:35:31] eosinx: arr, then I don't udnerstand test-driven dev...
[13:35:36] jhass: also unit tests shouldn't test a particular implementation, they should test that there's a specific outcome given some input parameters
[13:36:07] eosinx: jhass: line 9 to 14 are input parameters
[13:36:21] eosinx: so I would put these into the unit tests, rght?
[13:36:34] einarj: has joined #ruby
[13:36:43] jhass: pagerank = PageRank.new(data); expect(pagerank.rank).to eq 23
[13:36:55] jhass: pagerank = PageRank.new(other_data); expect(pagerank.rank).to eq 42
[13:37:08] chthon: has joined #ruby
[13:37:10] jhass: think about the edge cases for your algorithm and 2-3 usual cases
[13:37:26] jhass: get verified correct results for those input parameters and write tests expecting them
[13:37:48] vjdhama: has joined #ruby
[13:38:26] allcentury: has joined #ruby
[13:38:46] eosinx: isn't it possible to solely test, say, compute_a, first?
[13:39:13] jhass: possible, yes, does it make sense if it's not part of the outcome a user of your library would care about? no
[13:39:56] nettoweb: has joined #ruby
[13:40:02] jhass: the unit in unit tests is the public API of an isolated component
[13:40:51] jgt3: has joined #ruby
[13:40:54] eosinx: I thought these tests serve to check step-by-step development of parts, like compute_a, compute_b etc.
[13:41:04] slayerjain: has joined #ruby
[13:41:09] jhass: "test that the class with these conditions exposes this behavior" opposed to "test that the parts of this component/system achieve X when working together" for a integration test
[13:41:32] casadei: has joined #ruby
[13:41:47] jhass: yes, many people get too small units in their unit tests
[13:41:50] lkba: has joined #ruby
[13:41:53] TheWhip: has joined #ruby
[13:42:00] jhass: you don't care about how something is achieved, you care that it is achieved
[13:42:43] vjdhama: has joined #ruby
[13:43:02] jhass: in your tests take the perspective of the user of your library/algorithm, that is the evil user that knows your code and the code paths that lead to wrong behavior
[13:43:05] slayerjain: has joined #ruby
[13:43:29] jhass: make sure those code paths are hit, but don't hit them explicitly, just with what a regular user has at hand too
[13:43:53] freerobby: has joined #ruby
[13:44:18] eosinx: so, simply plugin a variety of input data, and pretend that the sausage machine is a black box ...
[13:44:21] jhass: expect { PageRank.new(-1) }.to raise_error ArgumentError, /invalid data/
[13:44:41] jhass: you can be very knowledgeable about those parameters, but yes
[13:44:58] slayerjain: has joined #ruby
[13:45:00] nofal: has joined #ruby
[13:45:20] RobertBirnie: has joined #ruby
[13:45:37] eosinx: okay, sounds lazy, but what the better source to the many ways to write assertions and expectations
[13:45:54] jhass: what you want to ensure with tests is that if you change your class, like say you find a more efficient, or cleaner code wise, way to do things, the users of your library don't have to care, they can continue using your stuff as is
[13:45:56] nofal: has left #ruby: ()
[13:46:23] jhass: TDD simply takes that verification step to the point before you have any actual implementation
[13:46:24] drewvanstone: has joined #ruby
[13:46:35] jhass: basically taking the role of a user that wishes for a certain API
[13:46:38] eosinx: okay, same input, same output, regardless of implementation
[13:46:52] jcromartie: has joined #ruby
[13:46:55] CloCkWeRX: has joined #ruby
[13:47:07] shevy: I love you people!
[13:47:08] eosinx: sounds like reproducable science
[13:47:15] jhass: pretty much
[13:47:41] jhass: as said choosing inputs that are hard to handle for your algorithm is fine, you can be knowledable about that aspect in your test
[13:48:00] tomphp: has joined #ruby
[13:48:42] sgambino: has joined #ruby
[13:48:45] eosinx: okay, recap: line 9-14 becomes the def initialize, the rest could be wrapped in one big method, right?
[13:49:24] kobain: has joined #ruby
[13:50:00] jhass: that can be a start, yes
[13:50:06] jhass: then write tests
[13:50:07] burgestrand: has joined #ruby
[13:50:20] jhass: then start rearranging the code, extracting small private methods etc
[13:50:33] eosinx: wait wait, what you mean?
[13:50:41] eosinx: by private methods
[13:51:20] jhass: >> class Foo; def foo; @foo ||= compute_foo; end; private; def compute_foo; 42*23; end; end; Foo.new.foo
[13:51:22] ruboto: jhass # => 966 (https://eval.in/439482)
[13:51:26] jhass: >> class Foo; def foo; @foo ||= compute_foo; end; private; def compute_foo; 42*23; end; end; Foo.new.compute_foo
[13:51:27] ruboto: jhass # => private method `compute_foo' called for #<Foo:0x41e57e50> (NoMethodError) ...check link for more (https://eval.in/439483)
[13:51:36] aswen: has joined #ruby
[13:51:40] voltalio: has joined #ruby
[13:51:43] jhass: foo is the public interface, what you care about in your tests
[13:51:49] duggiefresh: has joined #ruby
[13:52:13] jhass: that doesn't mean you shouldn't keep your methods small & on the same level of abstraction
[13:53:21] freerobby: has joined #ruby
[13:53:37] jhass: >> 6.times do |i| print i; end; puts
[13:53:38] ruboto: jhass # => 012345 ...check link for more (https://eval.in/439484)
[13:54:03] ndrei: has joined #ruby
[13:54:21] charliesome: has joined #ruby
[13:54:50] nfk|laptop: has joined #ruby
[13:55:21] eosinx: you mean I should replace the counter at the bottom
[13:55:33] jhass: yeah, times does it for you
[13:56:02] eosinx: okay, however the actual code will run until some measure is smaller than an epsilon number
[13:56:10] jhass: also consider longer variable names
[13:56:23] eosinx: 6.times do is just there to check whether it runs the first few meters
[13:56:24] devoldmx: has joined #ruby
[13:56:52] eosinx: I mean line 32 is the actual thing
[13:57:18] rippa: has joined #ruby
[13:57:41] eosinx: if you want to dig into the pagerank, I can give you a (free dl) chapter that explains everything
[13:57:49] ehth77: has joined #ruby
[13:58:47] ebragapa_: has joined #ruby
[13:58:51] jhass: SEO is largely clairvoyance ;P
[13:59:02] youngbaks: has joined #ruby
[13:59:23] eosinx: uhm I don't do that for SEO
[13:59:44] jhass: so it's not supposed to be Google's pagerank?
[14:00:24] eosinx: it actually is, but once you plugin other data than web link, it's no longer about SEO
[14:00:34] eosinx: or search ranks, alltogether.]
[14:00:50] jhass: see and I'm sure Google long changed it before any details about any version can get any sort of public
[14:00:50] karapetyan: has joined #ruby
[14:01:39] NeverDie: has joined #ruby
[14:01:52] eosinx: this is the version from the publicished science journal article and it's been taught in CS classes
[14:02:05] eosinx: so I got that from the wizzards of Stanford uni
[14:02:13] jhass: so probably the 2004 or 2002 version ;P
[14:02:30] ramfjord: has joined #ruby
[14:02:34] freerobby: has joined #ruby
[14:02:53] eosinx: that's right, it's not the complete seaarch algorithm, it's only the RANKing of results
[14:02:59] memnon34: has joined #ruby
[14:03:08] jhass: yes, I'm talking only about that part
[14:03:43] eosinx: well yes, I find it academically very interesting, because there are other ways to get a rank order, too
[14:04:20] eosinx: so having two, three ways to tackle this ranking problem gives you options .. (once the code is running and tested :)
[14:04:47] eosinx: I haven't plowed the literature on updates and changes
[14:05:08] vjdhama: has joined #ruby
[14:05:20] eosinx: I'm sure there were some smart folks making this algo even smarter
[14:06:09] eosinx: depending on the actual problem, you always need to customize parts of it, I heard some folks used it in epidemiology
[14:06:27] dhollinger: has joined #ruby
[14:06:44] prestorium_: has joined #ruby
[14:07:03] eosinx: and if you want to start SEO ... I guess your prob is not about knowing how the ranking wors, but getting the actual hyperlinks to you
[14:07:32] bigkevmcd: has joined #ruby
[14:09:00] eosinx: jhass: okay, thanks you made my day, actually ... will write the test code later the day ... will see what happens (if MDArray doesn't break again ... )
[14:09:05] jhass: I just find those people thinking they know everything about it, uhm, amusing ;)
[14:09:32] zlogan85: has joined #ruby
[14:09:37] eosinx: are you a regular here, then I can report back, if you're interested
[14:10:33] jhass: kinda, not too interested on the algorithm, but if you want some codereview sure come back ;)
[14:11:03] hinbody: has joined #ruby
[14:11:52] eosinx: you're such a good guy ... who knew the IRC is such a helpful place
[14:16:14] Igorshp: has joined #ruby
[14:16:21] vjdhama: has joined #ruby
[14:16:54] _el_fer_: has joined #ruby
[14:17:13] ebragaparah: has joined #ruby
[14:18:01] anaeem1: has joined #ruby
[14:19:13] youngbaks: has joined #ruby
[14:20:32] charliesome: has joined #ruby
[14:20:58] bentanweihao: has joined #ruby
[14:23:23] AntonioPls: has joined #ruby
[14:24:32] bentanwe_: has joined #ruby
[14:24:49] DrCode: has joined #ruby
[14:25:09] izzol: ehh, I was thinking I almost done it, and now I see I need to rewrite it. :<
[14:25:11] jobewan: has joined #ruby
[14:26:32] prestorium__: has joined #ruby
[14:26:51] TheWhip: has joined #ruby
[14:27:06] My_Hearing: has joined #ruby
[14:28:10] karapetyan: has joined #ruby
[14:28:16] aaeron: has joined #ruby
[14:28:46] gplex: has joined #ruby
[14:28:54] burgestrand: has joined #ruby
[14:29:23] gplex: Inside a ruby class, self is the class... but then when we define methods inside the class why do they become instance methods and not class methods?
[14:30:03] aaeron1: has joined #ruby
[14:30:06] Sou|cutter: gplex: how else would you want to define instance methods?
[14:30:35] platzhirsch: has joined #ruby
[14:30:44] gplex: Sou|cutter: Technically speaking, inside a class 'self' is the class itself so the methods defined there should be defined on self?
[14:30:45] pandaant: has joined #ruby
[14:30:55] burgestrand: gplex: because that's how def behaves.
[14:31:03] Sou|cutter: gplex: that doesn't answer my question
[14:31:19] Sou|cutter: it's because those method definitions need a place to go
[14:31:22] burgestrand: gplex: if you change to the singleton class using "class << self" you'll get class methods instead, which again is consistent with how def behaves.
[14:31:32] arup_r: has joined #ruby
[14:31:39] charliesome: has joined #ruby
[14:31:41] karapetyan: has joined #ruby
[14:31:47] gplex: Well how does def behave then?
[14:32:11] RegulationD: has joined #ruby
[14:32:48] Sou|cutter: gplex: it sounds like you know how def behaves
[14:33:08] shevy: our old webchatter friend
[14:33:30] Sou|cutter: but maybe you're thinking it's like calling self.def which it isn't. It's a ruby keyword with a well-defined behavior
[14:34:02] gplex: Sou|cutter: Yeah that was what I was thinking...how does it behave then?
[14:35:13] Sou|cutter: it defines an instance method on the receiver
[14:35:22] bronson: has joined #ruby
[14:36:13] chouhoul_: has joined #ruby
[14:36:22] Sou|cutter: and the 'why' is something of a tautology. If that's not what it did, then how would you do that?
[14:36:27] dmolina1: has joined #ruby
[14:36:43] dopamean_: has joined #ruby
[14:36:52] gplex: Sou|cutter: But isn't the reciver self inside the class, which is the class itself?
[14:37:45] vjdhama: has joined #ruby
[14:37:59] ebragaparah: has joined #ruby
[14:38:04] meatherly: has joined #ruby
[14:38:06] [k-: def defines a method on the instances of the class
[14:38:13] Sou|cutter: defines an _instance_ method on the receiver
[14:38:15] dopie: has joined #ruby
[14:38:27] blackmesa: has joined #ruby
[14:38:54] charliesome: has joined #ruby
[14:39:27] [k-: there is no class methods, those are class instance methods
[14:39:32] ljarvis: has joined #ruby
[14:39:43] yitsushi: has joined #ruby
[14:39:54] gplex: So def self.method inside a class defines a method inside the singleton class of the class?
[14:40:04] rethi: has joined #ruby
[14:41:03] code1o6: has joined #ruby
[14:41:05] Fire1o6: has joined #ruby
[14:41:42] drewvanstone: has joined #ruby
[14:41:45] pontiki: has joined #ruby
[14:42:27] gplex: And when we include a module inside the class, does that define an "i class" whose methods table points to the methods table of the module?
[14:43:01] gregf_: [k-: isnt a class method and class instance method one and the same? o_O
[14:43:14] rismoney1: has joined #ruby
[14:43:37] rismoney1: I have an array of arrays: [["100", "group1"], ["200", "group1"], ["200", "group2"]] . I would like to consolidate it to [["100", "group1"], ["200", "group1,group2"]]. How can I do this?
[14:43:48] gregf_: [k-: cuz you're not calling the method on an instance?
[14:43:49] jobewan: has joined #ruby
[14:44:02] shevy: well one problem
[14:44:08] shevy: @@foo is called class variable right
[14:44:13] gregf_: >> class Foo; def self.bar; puts "Bar!";end;end; Foo.bar
[14:44:14] ruboto: gregf_ # => Bar! ...check link for more (https://eval.in/439572)
[14:44:38] memnon34: has joined #ruby
[14:44:53] shevy: so we settled that class Foo; @foo = 42; end should be a class instance variable... or an instance variable residing on the class level
[14:44:56] freerobby: has joined #ruby
[14:44:59] gregf_: or is there a difference between Foo::bar and Foo.bar?
[14:45:03] shevy: but yeah I'd call the self.bar a class method
[14:45:04] burgestrand: >> [["100", "group1"], ["200", "group1"], ["200", "group2"]].group_by(&:first).values
[14:45:05] ruboto: Burgestrand # => [[["100", "group1"]], [["200", "group1"], ["200", "group2"]]] (https://eval.in/439575)
[14:45:07] gplex: is a class variable same as an instance method of the class or are these two different things?
[14:45:18] shevy: no Foo::bar and Foo.bar is the same, the Foo::bar() is the older way to call stuff
[14:45:23] gplex: an instance variable*
[14:45:24] burgestrand: rismoney1: You'll have to take care of extracting the values by yourself, but that'll group your arrays by the first value.
[14:45:26] speaking1ode: has joined #ruby
[14:45:29] karapetyan: has joined #ruby
[14:45:42] gurix: has joined #ruby
[14:45:46] shevy: gplex how can a variable be the same as a method?
[14:45:53] gplex: typo, sorry.
[14:45:59] burgestrand: rismoney1: You could build a hash from this instead if you'd rather have that, I guess.
[14:46:14] gregf_: shevy: thanks
[14:46:43] gplex: class variable == class instance variable?
[14:46:52] rismoney1: Burgestrand I tried that initially, but i think i lost values due to dupe keys
[14:47:00] Igorshp: has joined #ruby
[14:47:01] shevy: I used to store things in CONSTANTS until I realized I could use @foo like in class Foo; @foo; end
[14:48:20] Kallis: has joined #ruby
[14:49:22] jenrzzz: has joined #ruby
[14:49:32] poguez_: has joined #ruby
[14:49:36] burgestrand: rismoney1: You don't do it using the solution I provided.
[14:49:59] shevy: my colour-related module uses this for like Foo.disable_colours when I want output without colours (well, usually just ansi escape sequences... but you can use RGB values for kde konsole, which I like) http://shevegen.square7.ch/screenshot.png
[14:51:10] rismoney1: burgestrand your solution looks like it only wrapped things in another array.
[14:51:21] Anti-Pizza: has joined #ruby
[14:51:48] shevy: wrapped in a burger
[14:51:49] burgestrand: rismoney1: Yes, grouped by your criteria.
[14:52:34] [k-: who called me?
[14:52:42] ElvanorMoscow: has joined #ruby
[14:52:50] [k-: apeiros: you called?
[14:53:15] ElvanorMoscow: Hello, I know next to nothing to Ruby. I installed gitlab accidentally while running sudo -u git -H bundle install --deployment --without development test mysql aws kerberos
[14:53:26] [k-: yesh, class methods and class instance methods are the same
[14:53:30] shevy: gregf_ called [k- in a letter of love!
[14:53:34] ElvanorMoscow: whereas I need mysql. How can I tell bundler to remove the information about mysql?
[14:53:39] ElvanorMoscow: Now it won'"t install the mysql gem
[14:53:49] gregf_: >> [["100", "group1"], ["200", "group1"], ["200", "group2"]].inject(Hash.new){ |h,a| h.key?(a[0]) ? h[a[0]].push(a[1]) : h[a[0]] = [a[1]];h }
[14:53:50] ruboto: gregf_ # => {"100"=>["group1"], "200"=>["group1", "group2"]} (https://eval.in/439580)
[14:53:59] gregf_: rismoney1: ^^ ;)
[14:54:00] burgestrand: >> [["100", "group1"], ["200", "group1"], ["200", "group2"]].each_with_object(Hash.new { |h, k| h[k] = [] }) { |(group, value), m| m[group].push(value) }
[14:54:01] ruboto: Burgestrand # => {"100"=>["group1"], "200"=>["group1", "group2"]} (https://eval.in/439581)
[14:54:05] gregf_: shevy: heh!
[14:54:07] burgestrand: There's many ways to skin a cat!
[14:54:08] freezevee: has joined #ruby
[14:54:13] [k-: what ugly code
[14:54:21] yorickpeterse: STOP TYPING, I'm trying to copy text darn it
[14:54:24] [k-: many lines pluleaseeee
[14:54:28] yorickpeterse: stupid terminal IRC clients
[14:54:30] burgestrand: ElvanorMoscow: open .bundle/config, remove whatever you like :)
[14:54:30] ElvanorMoscow: Where is stored that information?
[14:54:34] ElvanorMoscow: Burgestrand: thanks
[14:54:36] beast: [["100", "group1"], ["200", "group1"], ["200", "group2"]].group_by{|x| x[0]}.map{|a,b| b.join(',').split(',').uniq }
[14:54:46] [k-: type type type
[14:54:50] yorickpeterse: ElvanorMoscow: rm Gemfile.lock
[14:54:53] Kallis: has joined #ruby
[14:54:56] yorickpeterse: ElvanorMoscow: then sudo -u git -H bundle install --deployment --without development test aws kerberos
[14:55:01] bruno-: has joined #ruby
[14:55:06] gregf_: [k-: i'm sure that can be done in just one loop ;)
[14:55:21] [k-: look at beast's elegant solution
[14:55:27] TheWhip: has joined #ruby
[14:55:27] [k-: you all failed except him!
[14:55:51] gregf_: beast? you dont mean yorickpeterse surely
[14:56:02] beast: the Beast has arisen...
[14:56:33] gregf_: ah - sorry saw h?(im|er) now :/
[14:56:47] mary5030: has joined #ruby
[14:56:55] yorickpeterse: yeah you can also just type him/her, saves you the regex :P
[14:56:59] gregf_: yorickpeterse: sorry, just know you 'always' write the best code. so a guess ;)
[14:57:10] yorickpeterse: gregf_: I have no idea what you're referring to
[14:57:22] gregf_: yeah, my bad. ignore me :/
[14:57:43] Kallis: has joined #ruby
[14:57:51] mary5030: has joined #ruby
[14:58:00] [k-: >> [["100", "group1"], ["200", "group1"], ["200", "group2"]].map { |a| Hash[a] }.reduce { |h, o| h.merge(o) { |k, v1, v2| [v1,v2] } }
[14:58:01] ruboto: [k- # => /tmp/execpad-9fca2d8e3241/source-9fca2d8e3241:2: warning: wrong element type String at 0 (expected a ...check link for more (https://eval.in/439582)
[14:58:55] [k-: hmm, i triggered how many warnings?
[14:59:00] gregf_: [k-: you have let us all down :/... badly
[14:59:17] burgestrand: Ha, I like this.
[14:59:23] burgestrand: [["100", "group1"], ["200", "group1"], ["200", "group2"]].reduce({}) { |m, (group, value)| m.merge(group => value) { |k, o, n| o << "," << n } }
[14:59:30] burgestrand: Must have a shovel.
[14:59:32] burgestrand: >> [["100", "group1"], ["200", "group1"], ["200", "group2"]].reduce({}) { |m, (group, value)| m.merge(group => value) { |k, o, n| o << "," << n } }
[14:59:33] ruboto: Burgestrand # => {"100"=>"group1", "200"=>"group1,group2"} (https://eval.in/439585)
[14:59:44] burgestrand: [k-: I like the merge-block angle. :)
[15:00:13] dionysus69: has joined #ruby
[15:00:42] beast: It is fun typing in code here, but I prefer to learn on Codewars
[15:01:24] shevy: I type in code everywhere
[15:01:26] shevy: even on my cat
[15:01:28] [k-: such condense
[15:01:33] [k-: very wow
[15:01:45] prefixed: has joined #ruby
[15:01:56] rbennacer: has joined #ruby
[15:02:22] ElvanorMoscow: NameError: uninitialized constant Grack::Bundle
[15:02:25] ElvanorMoscow: I now have that
[15:02:37] ebragaparah: has joined #ruby
[15:02:45] rismoney1: burgestrand your last one consolidates the second element exactly how i need it (though its syntactically tough to read ;)
[15:02:49] [k-: i triggered 16 warnings!
[15:03:00] [k-: beat that, shevy!
[15:03:02] platzhirsch: observation, people in #node.js are also very friendly, answering every question
[15:03:05] Sou|cutter: Burgestrand: did you ever take a look at Representable ?
[15:03:11] burgestrand: rismoney1: Split it over multiple lines, use better variable names, and don't give your homework to IRC ;)
[15:03:58] [k-: people use h for hash, not m for map!
[15:04:08] rismoney1: its not my homework- its a simplified example from a more complex data set i am parsing from script output
[15:04:18] burgestrand: Sou|cutter: I did! It's an order (or two) of magnitude bigger than Serial, and has a slightly different angle since it also does object -> text (JSON/XML etc), and parsing, so it's a slightly different use-case but quite similar!
[15:04:41] babysnoop: has joined #ruby
[15:04:59] burgestrand: Either way, got to go, got a 6-hour drive ahead of me.
[15:05:43] Sou|cutter: every time I chat with Burgestrand he leaves! Swedes...
[15:05:47] yitsushi: has joined #ruby
[15:06:33] [k-: i call this the shevy syndrome
[15:07:01] [k-: somehow shevy can code on his cat too
[15:07:06] [k-: i wonder how he does that
[15:07:21] Sou|cutter: cat = computer application terminal
[15:07:25] wildlander: has joined #ruby
[15:07:27] vjdhama: has joined #ruby
[15:07:52] [k-: shevy has an actual cat though
[15:08:27] Gustavo: has joined #ruby
[15:08:40] [k-: the other day he tried triggering something similar to the knee-jerk effect on his cat
[15:08:45] startupality: has joined #ruby
[15:08:45] [k-: it didnt work though
[15:10:55] ElvanorMoscow: Can someone help me with NameError: uninitialized constant Grack::Bundle ?
[15:10:59] ElvanorMoscow: I am stucj on this
[15:11:05] babysnoop: hi, im looking for a secure captcha gem, i see recaptcha is by far the most popular but it requires an google account (a company i dont trust). does anyone know of any non-google thats secure yet user friendly? thank you
[15:11:39] p0wn3d__: has joined #ruby
[15:11:50] gregf_: ofcourse ox0dea would write it better:
[15:11:52] gregf_: >> t = Hash.new { |h,v| h.key?(v[0]) ? h[v[0]].push(v[1]) : h[v[0]] = [v[1]] }; [["100", "group1"], ["200", "group1"], ["200", "group2"]].each{ |v| t[v] }; p t
[15:11:53] ruboto: gregf_ # => {"100"=>["group1"], "200"=>["group1", "group2"]} ...check link for more (https://eval.in/439599)
[15:11:58] [k-: ElvanorMoscow: provide full error log
[15:12:24] [k-: Ox0dea wouldn't use each
[15:12:30] [k-: so rudimentary
[15:12:34] jgt3: has joined #ruby
[15:12:46] [k-: use higher level methods like map
[15:13:14] Anti-Pizza: has left #ruby: ("Leaving")
[15:14:09] ElvanorMoscow: https://gist.github.com/anonymous/aeb420d19c556a8d062e
[15:16:14] centrx: has joined #ruby
[15:16:29] [k-: i have no idea what command you are running, but are you sure the gitlab-shell install task is running before gitlab?
[15:16:29] blackmesa: has joined #ruby
[15:16:46] felixr: has joined #ruby
[15:16:54] jamesaxl: has joined #ruby
[15:16:59] haroldwu: has joined #ruby
[15:18:55] iamninja: has joined #ruby
[15:19:24] Peteykun: has joined #ruby
[15:20:08] circ-user-w9RZD: has joined #ruby
[15:20:23] banister: has joined #ruby
[15:20:31] NeverDie: has joined #ruby
[15:20:55] michaeldeol: has joined #ruby
[15:21:35] shevy: Sou|cutter [k- what he meant is that he showed a video of a cat where you pull on one leg, then let go, and the leg kicks the chin of the cat multiple times
[15:22:10] yfeldblum: has joined #ruby
[15:23:12] yottanami: has joined #ruby
[15:25:29] deject3d: has joined #ruby
[15:26:19] ngscheurich: has joined #ruby
[15:26:30] theRoUS: has joined #ruby
[15:26:59] gurix: has joined #ruby
[15:27:24] krz: has joined #ruby
[15:27:32] [k-: no, what you described is animal cruelty
[15:28:28] ElvanorMoscow: [k-: what do you mean?
[15:28:40] ElvanorMoscow: I have to install gitlab-shell
[15:28:47] ElvanorMoscow: also now I am doing sudo -u git -H bundle install --deployment --without development test postgres aws kerberos
[15:28:54] ElvanorMoscow: and it says Could not locate Gemfile
[15:29:00] ElvanorMoscow: but there is a Gemfile in the current dir
[15:29:27] jhass: ElvanorMoscow: looks like a gitlab bug, ensure you're on the latest version and contact their support
[15:29:44] [Butch]: has joined #ruby
[15:30:01] [k-: the cat's leg is pulled down abit
[15:30:10] jhass: ElvanorMoscow: can the git user read that file?
[15:30:25] cmisenas_: has joined #ruby
[15:30:36] cmisenas_: has left #ruby: ()
[15:30:36] [k-: and the cat's other leg involutarily rises up and hits its cheeks
[15:30:41] jhass: ElvanorMoscow: actually -H sets the cwd to -u's home apparently
[15:30:42] aaeron: has joined #ruby
[15:31:17] [k-: the cat eventually got very annoyed and tried to hit the person doing it, but it just sat there
[15:31:31] drptbl: has joined #ruby
[15:31:37] tomphp: has joined #ruby
[15:31:56] ruboto: [k-, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[15:32:43] ducklobster: has joined #ruby
[15:32:53] ruboto: [k-, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[15:33:04] ruboto: here's your cookie: ????
[15:33:28] j4cknewt: has joined #ruby
[15:34:27] [k-: your face is ot!
[15:35:21] treehug88: has joined #ruby
[15:35:36] prefixed: has joined #ruby
[15:36:17] bronson: has joined #ruby
[15:37:25] ElvanorMoscow: jhass: I saw the problem, indeed, git user could not read the file
[15:37:40] ElvanorMoscow: jhass: but for the Grack::Bundle, yes looks like a gitlab bug
[15:37:49] ElvanorMoscow: strange, because I am just building exactly how they say
[15:37:50] giuseppesolinas: has joined #ruby
[15:38:20] jhass: gitlab is a complex project build on Ruby, you're asking #php for help with wordpress ;)
[15:38:35] jhass: or ##c for help with Gnome
[15:39:05] casadei: has joined #ruby
[15:39:37] ElvanorMoscow: jhass: yeah, I see, but at this point I am not sure if it is indeed a bug in gitlab or my lack of knowledge of Ruby causing the problem
[15:40:01] [k-: Sou|cutter the video was shared on ot just now
[15:40:11] vjdhama: has joined #ruby
[15:40:14] jhass: if they require you to know the ins and outs of Ruby in order to maintain it, I'd say the bug is at very least poor documentation
[15:41:03] Scripore: has joined #ruby
[15:41:09] i: has joined #ruby
[15:42:02] RTG`: has joined #ruby
[15:42:46] j4cknewt: has joined #ruby
[15:43:22] dopie: has joined #ruby
[15:43:36] gplex: has joined #ruby
[15:43:45] dfinninger: has joined #ruby
[15:46:06] Musashi007: has joined #ruby
[15:48:11] Soda: has joined #ruby
[15:48:54] nfk: has joined #ruby
[15:49:43] michaeldeol: has joined #ruby
[15:50:41] yottanami: has joined #ruby
[15:52:12] gurix: has joined #ruby
[15:53:03] skade: has joined #ruby
[15:53:19] maasha: has joined #ruby
[15:53:31] centrx: has joined #ruby
[15:53:55] tarpits: has joined #ruby
[15:54:33] prestorium: has joined #ruby
[15:55:12] maasha: I am experiencing what looks like a giant memory leak in ruby 2.2.3p173 - something leaks will querying a largish Hash a lot of times.
[15:55:41] mjuszczak: has joined #ruby
[15:56:32] Mattickbot: has joined #ruby
[15:56:34] marr: has joined #ruby
[15:56:57] bu7ch: has joined #ruby
[15:57:08] devoldmx: has joined #ruby
[15:57:31] Jardayn: has joined #ruby
[15:58:20] cisco: has joined #ruby
[15:59:14] tarpits: has joined #ruby
[16:00:21] rcvalle: has joined #ruby
[16:00:50] BaroMeter: has joined #ruby
[16:01:44] TomyLobo: has joined #ruby
[16:02:00] dmolina: has joined #ruby
[16:02:24] bluOxigen: has joined #ruby
[16:02:54] dfockler: has joined #ruby
[16:03:58] Igorshp: has joined #ruby
[16:06:10] vjdhama: has joined #ruby
[16:07:27] startupality: has joined #ruby
[16:07:40] noethics: has joined #ruby
[16:07:41] bazbing80: has joined #ruby
[16:07:49] Igorshp: has joined #ruby
[16:07:52] nzst: Hi, does anyone know how to setup a `rackup config.ru` as a service on debian?
[16:08:18] MVPhelp: has joined #ruby
[16:08:41] eosinx: has left #ruby: ()
[16:09:00] amclain: has joined #ruby
[16:09:09] jhass: nzst: systemd?
[16:09:22] nzst: jhass: yes, i'm not sure how to do that
[16:09:29] jhass: how did you install ruby & rack?
[16:09:56] RobertBirnie: has joined #ruby
[16:10:29] nzst: jhass: a global ruby and a gem install of geminabox for rack
[16:11:09] jhass: nzst: so which rackup is /usr/local/bin/rackup ?
[16:11:20] jhass: do you have a Gemfile?
[16:12:17] nzst: jhass: no Gemfile, this is my rackup http://hastebin.com/viriwapaba.rb
[16:12:23] moeabdol: has joined #ruby
[16:12:23] renderful: has joined #ruby
[16:12:27] spider-mario: has joined #ruby
[16:13:00] bricker: has joined #ruby
[16:13:03] jhass: nzst: could you answer my question about the location?
[16:13:14] jhass: which rackup returns what?
[16:13:50] nzst: i'm sorry, I don't follow
[16:14:07] jhass: run `which rackup` or `command -v rackup`
[16:14:23] nzst: /usr/local/bin/rackup
[16:14:37] jhass: nzst: http://paste.mrzyx.de/psd5uhhf8
[16:15:37] nzst: interesting, let me give it a go
[16:15:38] Dreamer3: has joined #ruby
[16:16:28] momomomomo: has joined #ruby
[16:16:29] treehug88: has joined #ruby
[16:16:36] lulzmachine: has joined #ruby
[16:17:43] rbennacer: has joined #ruby
[16:17:52] tomchapin: has joined #ruby
[16:18:31] bazbing80: Hi, there are sgr discrepencies between terminals according to wikipedia. sgr 21 can either mean Bold: off or Underline: Double, for example. Vastly different. How can my ruby program determine what terminal it's running in so as to employ the correct SGR codes? Is ENV['TERM'] sufficient? Because that gives me 'xterm' for my gnome terminal...I was hoping for 'gnome'...or are all terminals based on xterm (such as gnome) all the same as far as sgr co
[16:18:54] hal_9000__: has joined #ruby
[16:19:19] jhass: bazbing80: ENV['TERM'] should be enough, and yes something that reports xterm should behave like it
[16:19:29] jhass: I think in practice it's all like xterm these days
[16:19:35] adaedra: You should let this task to termcaps library though
[16:20:25] bazbing80: jhass: thanksies
[16:20:36] bazbing80: adaedra: termcaps?
[16:21:05] adaedra: A system libraries that knows what terminals are able to do what and how.
[16:21:19] startupality: has joined #ruby
[16:21:33] yfeldblum: has joined #ruby
[16:21:38] nzst: jhass: I get 'unrecognized service' when trying to use that, i must have missed a step to register it
[16:22:05] jhass: nzst: mmh no, as long as you used the right location the filename determines it
[16:22:07] bazbing80: adaedra: yes im a-googling...is it not a gem?
[16:22:17] jhass: nzst: make sure to put it into /etc/systemd/system/
[16:22:43] ekain: has joined #ruby
[16:22:56] bazbing80: adaedra: or is it something lower level that needs to be installed in the OS?
[16:22:59] jhass: so /etc/systemd/system/foo.service is controlled via systemctl start foo for example
[16:23:00] adaedra: bazbing80: it's a bit of a lower level. But yeah, looking for a gem to manipulate the terminal for you can be a good idea, instead of just inputting code.
[16:23:28] jxv: has joined #ruby
[16:23:37] bazbing80: has joined #ruby
[16:23:37] ndrei: has joined #ruby
[16:23:54] Rollabunna: has joined #ruby
[16:24:21] xcesariox: has joined #ruby
[16:24:47] yfeldblum: has joined #ruby
[16:24:50] jhass: nzst: you can also describe what you did exactly, for example by pasting your terminal scrollback to a gist and I can look if I see a mistake
[16:25:16] Jackneill: has joined #ruby
[16:25:43] nzst: jhass: cool, thanks, here's the relevant info http://hastebin.com/uyowahugak.rb
[16:26:35] jhass: nzst: are you sure you're using systemd? it'd be sudo systemctl start geminabox if so
[16:27:02] jhass: not sudo service
[16:27:04] momomomomo_: has joined #ruby
[16:29:35] nzst: systemctl: command not found
[16:29:52] jhass: interesting that you have that directory still
[16:30:08] jhass: but yeah, your debian is not configured to systemd then I guess
[16:30:24] lxsameer: has joined #ruby
[16:30:24] lxsameer: has joined #ruby
[16:30:27] nzst: ok, i'll have to dig a bit deeper than
[16:31:36] Kallis: has joined #ruby
[16:31:51] n008f4g_: has joined #ruby
[16:32:54] Maletor: has joined #ruby
[16:33:11] mondayrain: has joined #ruby
[16:33:56] dfinninger: has joined #ruby
[16:35:01] djbkd: has joined #ruby
[16:35:44] Igorshp: has joined #ruby
[16:36:06] Kendos-Kenlen: has joined #ruby
[16:37:16] bronson: has joined #ruby
[16:37:30] codecop: has joined #ruby
[16:38:39] wldcordeiro: has joined #ruby
[16:38:52] ruby-lang046: has joined #ruby
[16:39:04] DanielI: has joined #ruby
[16:39:14] karapetyan: has joined #ruby
[16:39:34] silenc3r: has joined #ruby
[16:39:36] Papierkorb: /quit - get money
[16:39:37] silenc3r: has left #ruby: ("Leaving")
[16:39:41] Papierkorb: /part - find awesome people
[16:39:49] shevy: webchatter!
[16:39:58] shevy: hey... are these magic commands Papierkorb?
[16:40:23] jhass: shevy: try'em
[16:41:32] adaedra: ACTION has quit IRC ( - get money)
[16:41:52] krisquigley: has joined #ruby
[16:42:11] skweek: has joined #ruby
[16:42:15] yfeldblum: has joined #ruby
[16:42:55] [k-: >> abort
[16:42:56] ruboto: [k- # => exit (SystemExit) (https://eval.in/439690)
[16:43:26] [k-: :o abort returns an exception!
[16:43:48] adaedra: ruby-lang046: stuck on the IRC?
[16:43:48] dfockler: Is there a way to get Date.today in UTC instead of local time?
[16:43:56] adaedra: Date.today.utc
[16:44:15] [k-: so intuitive!
[16:44:25] dfockler: Undefined method unfortunately
[16:44:28] shinnya: has joined #ruby
[16:44:42] adaedra: &ri Time#utc, DateTime#utc, Date#utc
[16:44:42] `derpy: http://www.rubydoc.info/stdlib/core/Time#utc-instance_method
[16:44:49] dfockler: You can do Time.now.utc
[16:44:58] adaedra: Well, you can't UTC a Date
[16:45:03] [k-: date is stdlib, no?
[16:45:10] dfockler: Hmmm maybe I can turn my Time into a Date
[16:45:11] tomphp: has joined #ruby
[16:45:15] [k-: &ri Set
[16:45:15] `derpy: http://www.rubydoc.info/stdlib/set/Set
[16:45:19] adaedra: All are stdlib, [k-
[16:45:23] [k-: hm, such surprise
[16:45:28] aaeron: has joined #ruby
[16:45:41] Igorshp: has joined #ruby
[16:45:49] Alina-malina: has joined #ruby
[16:47:37] drptbl: has joined #ruby
[16:47:40] tomphp: has joined #ruby
[16:48:53] michaeldeol: has joined #ruby
[16:49:46] matty1234: has joined #ruby
[16:50:00] dfockler: Looks like it'll be Date.parse(Time.now.utc.to_s) :P
[16:50:40] dlando: has joined #ruby
[16:50:51] casadei: has joined #ruby
[16:50:55] nettoweb: has joined #ruby
[16:51:10] frmendes: has joined #ruby
[16:52:01] dionysus69: has joined #ruby
[16:52:03] jenrzzz: has joined #ruby
[16:52:11] adaedra: &ri Time#to_date
[16:52:11] `derpy: http://www.rubydoc.info/stdlib/date/Time#to_date-instance_method
[16:52:19] Igorshp: has joined #ruby
[16:52:54] adaedra: Grmbl, the doc has derped
[16:53:15] dfockler: I must be using an old version of ruby, I think #to_date is only in ActiveSupport
[16:53:21] ruby-lang654: has joined #ruby
[16:53:27] adaedra: No it's not
[16:53:43] adaedra: But you need to require 'date'
[16:54:01] tejasmanohar: has joined #ruby
[16:54:29] [k-: >> require 'date'; Date.instance_methods(false).grep /utc/
[16:54:30] ruboto: [k- # => [] (https://eval.in/439701)
[16:54:53] [k-: i don't believe there isn't any utc function!
[16:55:16] dfockler: I think they wanted to keep it cleanly a date
[16:55:18] lxsameer: has joined #ruby
[16:55:19] decoponio: has joined #ruby
[16:55:28] dfockler: And dates don't have timezones
[16:55:48] dfockler: Otherwise you should be using Time
[16:56:02] [k-: dates shouldnt have time then
[16:56:08] dfockler: or DateTime
[16:56:13] adaedra: Date don't have time
[16:56:22] tarpits_: has joined #ruby
[16:57:53] devoldmx: has joined #ruby
[16:57:54] yqt: has joined #ruby
[16:58:13] [k-: i dont deal with time anyway
[16:58:30] craysiii: time deals with you
[16:58:59] [k-: in soviet Russia, time deals you
[16:59:34] duggiefresh: has joined #ruby
[17:01:12] voltalio: has joined #ruby
[17:01:18] j4cknewt: has joined #ruby
[17:01:54] nik_-_: has joined #ruby
[17:02:02] petricore: has joined #ruby
[17:02:50] duggiefr_: has joined #ruby
[17:03:05] charliesome: has joined #ruby
[17:04:02] rbennacer: has joined #ruby
[17:04:04] giuseppesolinas: has joined #ruby
[17:04:13] giuseppesolinas_: has joined #ruby
[17:07:35] soosfarm: has joined #ruby
[17:07:38] Macaveli: has joined #ruby
[17:08:37] Musashi007: has joined #ruby
[17:10:21] pauly_oc: has joined #ruby
[17:10:35] startupality: has joined #ruby
[17:11:03] gusTester: has left #ruby: ()
[17:11:29] Kallis: has joined #ruby
[17:12:08] ndrei: has joined #ruby
[17:12:40] banister: has joined #ruby
[17:14:44] RegulationD: has joined #ruby
[17:14:44] vjdhama_: has joined #ruby
[17:15:27] last_staff: has joined #ruby
[17:16:22] aerozeppelin: has joined #ruby
[17:16:35] dfockler: has joined #ruby
[17:16:50] banjara: has joined #ruby
[17:17:12] PhantomSpank: has joined #ruby
[17:17:42] ebragaparah: has joined #ruby
[17:19:03] ramfjord: has joined #ruby
[17:19:38] tkuchiki: has joined #ruby
[17:20:08] Hanmac: has joined #ruby
[17:20:18] Timba-as: has joined #ruby
[17:21:36] JDiPierro: has joined #ruby
[17:21:40] SCHAAP137: has joined #ruby
[17:22:18] bf4: has joined #ruby
[17:22:39] _blizzy_: has joined #ruby
[17:22:51] wookiehangover: has joined #ruby
[17:22:53] waxjar: has joined #ruby
[17:23:02] shevy: I want ruby as fast as C!
[17:23:15] pipework: shevy: rbx?
[17:23:32] catbusters: has joined #ruby
[17:23:33] pipework: Just write your program in C and expose it through ruby?
[17:24:25] wmoxam: shevy: Crystal
[17:26:50] malconis: has joined #ruby
[17:26:54] shevy: crystal needs aliases
[17:26:56] blackjid: has joined #ruby
[17:27:22] jhass: shevy: just write a macro that does them if you need them so badly
[17:27:35] craysiii: ok im calling crystal sapphire now, alias problem solved :)
[17:27:45] scoot: has joined #ruby
[17:27:45] chino_: has joined #ruby
[17:28:02] mary5030: has joined #ruby
[17:28:23] jgt3: has joined #ruby
[17:28:29] jhass: I don't know what for, but well...
[17:28:45] chino_: from looking at docs for String#== http://ruby-doc.org/core-2.2.3/String.html#method-i-3D-3D it appears that .to_s should be called on the RHS then why doesn't things like "x"==:x or n=Time.now; n.to_s==n return true?
[17:28:51] shevy: jhass nope, won't be the same
[17:28:59] jhass: shevy: why not?
[17:29:17] shevy: jhass because then it's a modification I need to carry with in all projects distributed
[17:29:26] otacon-: has joined #ruby
[17:29:49] jhass: chino_: to_s != to_str
[17:30:04] shevy: wmoxam it's the same reason I don't monkey patch stuff and distribute it via gems
[17:30:15] JDiPierro: has joined #ruby
[17:30:24] jhass: >>> "x" === :x
[17:30:25] ruboto: jhass # => /tmp/execpad-dd5d31cbf3e0/source-dd5d31cbf3e0:2: syntax error, unexpected '>' ...check link for more (https://eval.in/439753)
[17:30:25] chino_: oh dam read it wrong
[17:30:30] jhass: >> "x" === :x
[17:30:31] ruboto: jhass # => false (https://eval.in/439754)
[17:30:42] _blizzy_: has joined #ruby
[17:30:58] craysiii: who decided to call << shovel
[17:31:22] pipework: Maybe it's similar to 'chevron'.
[17:31:36] craysiii: genuinely curious
[17:31:38] shevy: it looks a bit like an unfinished shovel
[17:31:47] shevy: should be more like <<---- or so
[17:31:53] prefixed: is this valid syntax? return changed_count > 0 ? true : false
[17:32:08] paulcsmith: has joined #ruby
[17:32:44] jhass: prefixed: looks like it, pointless though, > already returns true or false
[17:32:45] adaedra: but it's useless
[17:33:19] craysiii: if this was C++ you could just say return changed_count and cast as a bool :)
[17:33:27] chino_: what's the point of calling .to_str what does that even really do? docs says it just returns the receiver... rather confused... why #== call to_str but #eql? does not?
[17:33:49] prefixed: so then this
[17:33:50] prefixed: return changed_count > 0
[17:34:13] jhass: chino_: dunno, so you can do a fake string I guess. I doubt it's widely used in practice
[17:34:31] adaedra: prefixed: also, if it's the last line of your method, return is useless.
[17:34:33] craysiii: i don't think you need an explicit return
[17:34:50] jhass: prefixed: but yes
[17:36:20] UtkarshRay: has joined #ruby
[17:36:29] vjdhama: has joined #ruby
[17:36:33] leafybas_: has joined #ruby
[17:37:10] bruno-: has joined #ruby
[17:38:05] bronson: has joined #ruby
[17:39:10] andyrs: has joined #ruby
[17:39:42] prefixed: adaedra i feel like we spoke about this yesterday
[17:39:54] prefixed: isn't the whole purpose of ruby to be easier to understand?
[17:40:11] prefixed: an explict return is more expressive than an implicit one
[17:40:32] prefixed: hey man. it's true
[17:40:33] adaedra: ruby always return the last value calculated
[17:40:36] banjara1: has joined #ruby
[17:40:36] craysiii: ruby implicitly returns the last line of a method / whatever
[17:40:48] prefixed: sure, but isn't the whole point of ruby to be expressive?
[17:40:50] adaedra: so you know that the last line is the result
[17:41:01] araujo_: has joined #ruby
[17:41:45] adaedra: `return` is here to indicate an early exit from a method
[17:42:18] jenrzzz: has joined #ruby
[17:42:29] dfockler: prefixed: ruby is meant to be expressive, what you are describing is explicit
[17:42:45] prefixed: that's great
[17:43:16] dfockler: Python is a language you would probably like better if you like explicitness
[17:43:31] prefixed: why don't you tell me what the difference between expressiveness and explictness is
[17:43:57] treehug88: they're orthogonal
[17:44:23] zmax: has joined #ruby
[17:44:31] zmax: How do I download binary files using ruby?
[17:44:36] prefixed: this is so funny. why don't you tell me why they're orthoganl
[17:44:55] atinjosan: has joined #ruby
[17:44:57] eam: prefixed: type coersion is an example of explicit vs expressive
[17:45:15] jhass: zmax: solely for the purpose of saving them on disk? big files?
[17:45:23] treehug88: because they're measuring things in different dimensions - the def of orthogonal. They're independent concepts
[17:45:48] eam: for example, in ocaml you would have to say: 1.0 +. 1.0 -- because floating point types have their own addition operator "+." as opposed to "+" for integer numeric types
[17:45:49] zmax: jhass: Yeah just to save them on disk. Files of sizes ranging from 50mb to 100mb
[17:46:06] jhass: zmax: tbh the easiest might be to shell out to wget or curl for that
[17:46:12] eam: that's very explicit -- but not necessarily more expressive (measuring in terms of how easy a human can understand the program's function)
[17:46:20] zmax: jhass: Yeah, but I want to write a script for something...
[17:46:41] treehug88: zmax: I consider shelling out to a command line tool
[17:46:42] jhass: zmax: shell out means start from a ruby script
[17:46:58] eam: prefixed: expressive often means making concessions in terms of brevity, to focus more carefully on what a human needs to understand about a program
[17:47:10] zmax: jhass: What happens if a file is missing? Does the script break?
[17:47:32] havenwood: has joined #ruby
[17:47:37] jhass: zmax: wget/curl would exit nonzero I think, you could test for that
[17:47:48] eam: prefixed: control over object lifecycles - having a GC - also an example of a feature that allows a focus on expressive code but is less explicit about execution behavior
[17:47:54] _el_fer_: has joined #ruby
[17:48:05] eam: python is ref counted so you can be explict about when an object is freed. Not so in ruby
[17:48:53] jhass: zmax: mmh, at least wget appears to do so, for curl you could check if the file exists after it exited
[17:48:57] zmax: jhass: Can I not download binary files using the open method?
[17:49:23] jhass: zmax: you can with open-uri, it's just not wise since you'd read them into memory completely I think
[17:49:31] hippyphysicist: has joined #ruby
[17:50:48] ua: has joined #ruby
[17:51:09] zmax: jhass: Do we open a file in "w" mode even for binary files?
[17:51:18] zmax: jhass: or is there a different mode for binary?
[17:51:40] ua: has left #ruby: ("Leaving")
[17:51:51] Scripore: has joined #ruby
[17:51:51] jhass: depends on whether you're on windows or not. in any case using "wb" doesn't harm
[17:52:08] jhass: but you're ignoring my advice now, don't you?
[17:52:12] zmax: jhass: I'm on Linux.
[17:52:35] krisquigley: has joined #ruby
[17:52:47] shevy: long live linux!
[17:54:57] achamian: has joined #ruby
[17:55:18] platzhirsch: has left #ruby: ()
[17:55:31] jefus: has joined #ruby
[17:55:48] jefus: has left #ruby: ()
[17:56:20] jamesaxl|2: has joined #ruby
[17:56:54] eam: where did prefixed go
[17:57:05] jas02: has joined #ruby
[17:58:06] prefixed: off to write code
[17:58:38] eam: don't you want to talk about expressive vs explicit any more?
[17:58:45] jhn: has joined #ruby
[17:59:37] bruno-: has joined #ruby
[17:59:46] prefixed: nah. i decided it was orthogonal to the task at hand
[18:00:21] baweaver: has joined #ruby
[18:00:24] eam: bummer, super interesting subject imo
[18:01:05] yfeldblum: has joined #ruby
[18:01:23] vjdhama: has joined #ruby
[18:01:50] chino_: could class A::B < A; end cause some kind of circular issue or is it fine?
[18:02:08] prefixed: what is the point of "MatchData"
[18:02:10] Outlastsheep: has joined #ruby
[18:02:15] prefixed: why not convert to a string
[18:02:17] yfeldblum: has joined #ruby
[18:02:23] nzst: jhass: was chatting to you earlier about making a rack systemd service, switched over to a debian LTS instead of an ubuntu LTS and it had the proper dependencies for a systemd service. The example you provided me worked great, thanks !
[18:03:01] jhass: ?try chino_
[18:03:01] ruboto: chino_, Why don't you try it and see for yourself?
[18:03:29] jhass: chino_: one thing it'll do is make A::B::B::B::B::B::B valid
[18:04:11] chino_: heh... yea it's one of those things that you could try and it works but you don't really know if it can lead to something strange like that
[18:04:11] jhass: but Object::Object::Object::Kernel::Object::Object is already valid, so...
[18:04:42] eam: prefixed: matches match more than a single string
[18:04:58] ericjphillips: has joined #ruby
[18:05:06] slawrence00: has joined #ruby
[18:05:08] blackmesa: has joined #ruby
[18:05:46] eam: >> "a b c" =~ /(:?(\w+) )+/; $~.inspect
[18:05:47] ruboto: eam # => "#<MatchData \"a b \" 1:\"b \" 2:\"b\">" (https://eval.in/439767)
[18:06:02] dfinninger: has joined #ruby
[18:07:06] ramfjord: has joined #ruby
[18:08:28] frmendes: has joined #ruby
[18:08:55] lolmaus_: has joined #ruby
[18:10:04] stamina: has joined #ruby
[18:11:15] Scripore: has joined #ruby
[18:11:30] maasha: has joined #ruby
[18:12:43] maasha: There appear to be a nasty memory leak in ruby 2.2.3p173 connected to Hash/Symbols ?
[18:12:48] tlolczyk_: has joined #ruby
[18:12:59] Jardayn_two: has joined #ruby
[18:13:37] Kallis: has joined #ruby
[18:14:42] voltalio: has joined #ruby
[18:14:59] tlolczyk_: has joined #ruby
[18:16:41] banjara: has joined #ruby
[18:16:55] Xeago: has joined #ruby
[18:18:14] shortdudey123: has joined #ruby
[18:18:53] fmcgeough: has joined #ruby
[18:18:55] eam: uhhhh, `` appears to continually retry the fork/exec in a loop if it gets EAGAIN
[18:19:01] eam: that's almost certainly undesirable
[18:19:31] scoot: has joined #ruby
[18:19:53] Blizzy: has joined #ruby
[18:20:16] sp4rrow: has joined #ruby
[18:20:18] kjcwncsdr: has joined #ruby
[18:20:33] rbennacer: has joined #ruby
[18:21:10] baweaver: has joined #ruby
[18:21:58] otacon-_: has joined #ruby
[18:22:03] momomomomo: has joined #ruby
[18:22:36] shevy: eam finds the rare bugs
[18:23:02] davedev24: has joined #ruby
[18:23:52] Blizzy: has joined #ruby
[18:24:15] sepp2k: has joined #ruby
[18:25:45] urrr: has joined #ruby
[18:25:56] dfockler: has joined #ruby
[18:26:07] amoeba: has joined #ruby
[18:26:55] shadoi: has joined #ruby
[18:26:59] djbkd: has joined #ruby
[18:27:00] last_staff: has joined #ruby
[18:27:18] crunk_bear: has joined #ruby
[18:28:47] Hanmac: shevy: in australia "someone 'unfriending' does count as 'bullying'" http://www.telegraph.co.uk/news/worldnews/australiaandthepacific/australia/11890275/fnord.html
[18:29:17] momomomomo_: has joined #ruby
[18:30:11] dfinninger: has joined #ruby
[18:30:23] nzst: and then you can read to the end of the article and find the title is just linkbait
[18:30:31] nzst: "What the Fair Work Commission did find is that a pattern of unreasonable behaviour, hostile behaviour, belittling behaviour over about a two-year period, which featured a range of different behaviours including berating, excluding and so on, constituted a workplace bullying."
[18:31:48] jenrzzz: has joined #ruby
[18:31:51] Alayde: Anyone got a moment to lend me a hand? Bundler is kicking my ass. I'm trying to get the master branch of the 'rspec-puppet' gem installed (rvm), and with my Gemfile as it is now I end up with "Using rspec-puppet 2.2.1.pre from https://github.com/rodjek/rspec-puppet.git (at master)" when I bundle
[18:32:14] shevy: nzst good point
[18:32:19] Alayde: however, a 'gem list | grep rspec-puppet' gives me: rspec-puppet (2.2.0)
[18:32:30] havenwood: Alayde: What's the exact line in your Gemfile?
[18:32:41] Alayde: havenwood: gem 'rspec-puppet', :git => 'https://github.com/rodjek/rspec-puppet.git', :ref => 'master'
[18:32:42] tlolczyk_: has joined #ruby
[18:33:47] hoylemd: hey, is literal number `0` supposed to be truthy?
[18:33:52] dionysus69: has joined #ruby
[18:33:54] rushed: has joined #ruby
[18:34:04] havenwood: hoylemd: Everything but `false` and `nil` is truthy.
[18:34:07] vjdhama: has joined #ruby
[18:34:40] havenwood: Alayde: That looks to be the version in the master branch: https://github.com/rodjek/rspec-puppet/blob/master/rspec-puppet.gemspec#L3
[18:34:42] shevy: hoylemd you can use a lot of true things in ruby!
[18:34:53] ruboto: havenwood # => true (https://eval.in/439780)
[18:35:05] mosez: has joined #ruby
[18:35:05] sdothum: has joined #ruby
[18:35:23] ruboto: havenwood # => false (https://eval.in/439781)
[18:35:29] Hanmac: hm i dont trust true
[18:35:29] Hanmac: >> true.untrust
[18:35:30] ruboto: hanmac # => true (https://eval.in/439782)
[18:35:37] mondayrain: has joined #ruby
[18:35:44] havenwood: hanmac: Truly untrusted that true!
[18:36:03] Alayde: havenwood: mayhaps I'm misunderstanding something here, but when I look at the master branch of rspec-puppet on github I see a spec directory in the root of the project but when I look at the gem on my filesystem I only see a 'bin' and 'lib
[18:36:09] Alayde: damn it. 'lib' directory
[18:37:11] Alayde: and I'm a wee bit confused why a "gem list | grep rspec-puppet" only shows 2.2.0 installed rather than 2.2.1.pre
[18:38:36] tsujp: has joined #ruby
[18:39:02] bronson: has joined #ruby
[18:39:09] mary5030: has joined #ruby
[18:40:27] sdothum: has joined #ruby
[18:40:30] jfreitasdutra: has joined #ruby
[18:40:38] mjuszczak: has joined #ruby
[18:40:58] Coldblackice: has joined #ruby
[18:40:59] redondo: has joined #ruby
[18:41:01] hectortrope: has joined #ruby
[18:41:07] hoylemd: Huh. TIL. I guess I've been spolied by eerything else :p
[18:41:16] kraljev11: has joined #ruby
[18:41:50] agent_meerkat: has joined #ruby
[18:47:27] amclain_: has joined #ruby
[18:47:58] Alayde: havenwood: I just said fuck it, removed the gemset and created another one. Things are working now. tl;dr I can't computer, apparently
[18:48:17] Xeago: has joined #ruby
[18:48:25] havenwood: Alayde: If turning it off and back on again doesn't work nuking it from orbit is a sure bet! ;)
[18:48:26] freerobby1: has joined #ruby
[18:48:39] oz`: has joined #ruby
[18:49:12] macq: has joined #ruby
[18:49:35] SirFunk: has joined #ruby
[18:49:50] shevy: bundler drives people to madness!
[18:49:53] r0bby_: has joined #ruby
[18:50:03] shevy: I am turning into centrx 2.0
[18:50:11] blackmesa: has joined #ruby
[18:50:22] sakozdqqhytuagqn: has joined #ruby
[18:50:29] neanderslob: has joined #ruby
[18:51:04] karapetyan: has joined #ruby
[18:51:53] abyss: has joined #ruby
[18:52:04] giuseppesolinas: has joined #ruby
[18:52:09] giuseppesolinas_: has joined #ruby
[18:52:28] shoutsid06: has joined #ruby
[18:52:54] jhass: ACTION slaps ruboto
[18:52:59] syath_: has joined #ruby
[18:53:18] C0deMaver1ck: has joined #ruby
[18:53:19] ujjain-: has joined #ruby
[18:53:19] chinmay_dd_: has joined #ruby
[18:53:25] ruboto: Nowhere on planet earth! http://i.imgur.com/8vcBhYZ.gif
[18:53:25] agent_meerkat: jhass.reduce(:concat)
[18:53:52] ujjain: has joined #ruby
[18:53:53] ujjain: has joined #ruby
[18:54:18] swgillespie: has joined #ruby
[18:54:26] r0bby_: has joined #ruby
[18:54:31] toretore: has joined #ruby
[18:56:56] scoot: has joined #ruby
[18:57:43] jackjackdripper: has joined #ruby
[18:58:40] devoldmx: has joined #ruby
[18:59:12] yqt: has joined #ruby
[18:59:48] Rollabunna: has joined #ruby
[18:59:55] atin: has joined #ruby
[19:00:16] mjuszczak: has joined #ruby
[19:01:14] leafybasil: has joined #ruby
[19:03:56] vjdhama_: has joined #ruby
[19:04:34] jenrzzz: has joined #ruby
[19:06:21] Soda: has joined #ruby
[19:07:40] tsujp: has joined #ruby
[19:07:52] circ-user-AqHyN: has joined #ruby
[19:10:06] NeverDie: has joined #ruby
[19:10:22] momomomomo: has joined #ruby
[19:11:16] nym: has joined #ruby
[19:11:29] mengu: has joined #ruby
[19:11:29] mengu: has joined #ruby
[19:11:52] ericjphillips: has joined #ruby
[19:11:54] jackjackdripper: has joined #ruby
[19:15:45] youngbaks: has joined #ruby
[19:16:12] jas02: has joined #ruby
[19:16:52] karapetyan: has joined #ruby
[19:17:27] Stalkr_: has joined #ruby
[19:17:29] startupality: has joined #ruby
[19:18:08] jenrzzz: has joined #ruby
[19:18:54] memnon34: has joined #ruby
[19:19:03] TheWhip: has joined #ruby
[19:19:54] cvtsx: has joined #ruby
[19:20:09] einarj: has joined #ruby
[19:21:03] vjdhama: has joined #ruby
[19:21:34] einarj_: has joined #ruby
[19:21:56] jmaya: has joined #ruby
[19:22:19] lxsameer: has joined #ruby
[19:22:46] startupality: has joined #ruby
[19:22:56] baweaver: has joined #ruby
[19:24:47] einarj: has joined #ruby
[19:25:14] p0wn3d__: has joined #ruby
[19:25:49] bazbing80: has joined #ruby
[19:26:00] frmendes: has joined #ruby
[19:27:00] Pumukel: has joined #ruby
[19:27:50] Wolland: has joined #ruby
[19:28:01] atmosx_laptop: has joined #ruby
[19:28:40] izzol: def [](name)
[19:28:46] bazbing80: Is there an IO version of File.new ?
[19:28:47] izzol: Why there is such a name in definition?
[19:28:55] firstdayonthejob: has joined #ruby
[19:29:19] bazbing80: *equivalent
[19:29:59] ItSANgo_: has joined #ruby
[19:30:47] izzol: what do you mean equivalent?
[19:30:51] jhass: izzol: it provides foo[x]
[19:30:55] araujo: has joined #ruby
[19:31:41] aaeron: has joined #ruby
[19:31:50] jmaya: has joined #ruby
[19:32:17] podman: has joined #ruby
[19:32:28] izzol: jhass: but why to use it? it's just a name?
[19:32:44] jhass: because it looks nice?
[19:32:52] dorei: has joined #ruby
[19:33:07] izzol: it looks like an array ;-)
[19:33:09] ekain: has joined #ruby
[19:33:19] craysiii: whats ||= called
[19:33:20] adaedra: that's the idea
[19:33:43] jhass: craysiii: or equals? we don't really have an official name
[19:33:52] adaedra: syntaxic sugar
[19:33:57] jhass: izzol: or a hash ;)
[19:34:22] deject3d: has joined #ruby
[19:34:29] adaedra: izzol: you have [] and []=, so you can create your own collection-like classes
[19:34:56] adaedra: bazbing80: What do you mean
[19:34:57] whippythellama: has joined #ruby
[19:35:01] adaedra: What would it do
[19:35:03] j4cknewt: has joined #ruby
[19:35:47] baweaver: has joined #ruby
[19:35:52] bazbing80: adaedra: good question, just create a file in memory, that can be appended and then created on disk with IO.write ...worth noting this is my first dabble with i/o
[19:36:02] bazbing80: *appended to
[19:36:11] jhass: bazbing80: StringIO ?
[19:36:12] adaedra: bazbing80: you may want to look at StringIO
[19:36:28] Lingo: has joined #ruby
[19:36:38] bazbing80: you two are like a hive mind...a helpful hivemind :P
[19:36:50] shevy: two lovers
[19:37:42] kraljev11: has joined #ruby
[19:38:14] platzhirsch: has joined #ruby
[19:39:07] BackEndCoder: has joined #ruby
[19:39:56] bronson: has joined #ruby
[19:40:14] ramfjord: has joined #ruby
[19:40:40] andyrs: has joined #ruby
[19:42:41] ruurd: has joined #ruby
[19:44:04] bronson: has joined #ruby
[19:46:49] memnon34: has joined #ruby
[19:47:17] youngbaks: has joined #ruby
[19:48:06] arooni: has joined #ruby
[19:48:07] mooe: has joined #ruby
[19:48:15] ricer2: has joined #ruby
[19:48:35] arooni: has joined #ruby
[19:49:28] jcromartie: has joined #ruby
[19:49:45] Maletor: has joined #ruby
[19:49:49] bronson: has joined #ruby
[19:51:38] bronson: has joined #ruby
[19:52:12] startupality: has joined #ruby
[19:52:18] stamina: has joined #ruby
[19:52:31] Xeago: has joined #ruby
[19:52:40] avahey: has joined #ruby
[19:53:29] krisquigley: has joined #ruby
[19:53:39] vjdhama: has joined #ruby
[19:55:01] kadoppe: has joined #ruby
[19:55:14] Coldblackice: has joined #ruby
[19:59:27] vjdhama: has joined #ruby
[20:02:14] kies^: has joined #ruby
[20:02:27] Marsupermammal: has joined #ruby
[20:03:14] Scripore: has joined #ruby
[20:04:15] k3asd`: has joined #ruby
[20:05:08] shevy: yo atmosx
[20:06:28] duggiefr_: has left #ruby: ()
[20:06:48] craysiii: does ruby not have C style enums?
[20:07:34] craysiii: i guess a hash is close enough
[20:08:32] adaedra: Ruby uses symbols for that
[20:09:16] aaeron: has joined #ruby
[20:09:53] adaedra: Or constants, if you want it for the value
[20:10:12] youngbaks: has joined #ruby
[20:10:37] sharpmachine: has joined #ruby
[20:11:17] shinnya: has joined #ruby
[20:13:10] harumph: has joined #ruby
[20:13:11] k3asd`: has joined #ruby
[20:13:19] harumph: has left #ruby: ()
[20:13:36] GnuYawk: has joined #ruby
[20:14:04] jfreitasdutra: craysii: u can use my_enum = [:constatnt1, :constant2....] for store, and create a variable like v = :constant1
[20:14:43] jfreitasdutra: depends of your goal
[20:15:13] KensoDev: has joined #ruby
[20:15:32] Xeago: has joined #ruby
[20:17:36] apt-get: has joined #ruby
[20:18:49] crdpink2: has joined #ruby
[20:19:52] dvlcloud: has joined #ruby
[20:19:53] jenrzzz_: has joined #ruby
[20:20:56] momomomomo: has joined #ruby
[20:23:19] parduse: has joined #ruby
[20:23:21] allomov: has joined #ruby
[20:23:29] shevy: will you borrow me your enum?
[20:24:17] radgeRayden: has joined #ruby
[20:24:31] craysiii: get your own!
[20:25:11] sharpmachine: has joined #ruby
[20:25:19] uris: has joined #ruby
[20:26:39] achamian: has joined #ruby
[20:27:26] vjdhama: has joined #ruby
[20:27:28] shevy: what happened to share & profit!
[20:27:30] aaeron: has joined #ruby
[20:28:55] aaeron: has joined #ruby
[20:29:09] arup_r: shevy: where is your cat ?
[20:30:06] atmosx: does shevy have a cat?
[20:30:19] atmosx: I bought 2 TVs today
[20:31:27] arup_r: atmosx: I will buy a laptop.. but when no idea :( I am sooooooooo confused!
[20:31:30] guacjack: has joined #ruby
[20:31:43] atmosx: arup_r: yeah, life is a bitch.
[20:32:04] Polysics: has joined #ruby
[20:32:13] atmosx: craysiii: I have the iPad for the bathroom and DLNA server (which doesn't stream subs though...)
[20:32:53] guacjack: hey folks, just wanted to ask a question, i've joined a new job and in my team they force us to use an ubuntu vm with IntelliJ Idea to do development on, we pair program all of our tasks and using the host mac with IntelliJ is out of the question. We mainly program Ruby... is it just me or is this unreasonable? I am just asking to be able to use IntelliJ on the mac rather than the VM
[20:33:35] guacjack: This is not a business decision this is literally the other developers who are saying im going to be the odd one out if im using the mac rather than the vm
[20:33:53] momomomomo: has joined #ruby
[20:34:42] tangentstorm: you should definitely quit and tell them to hire me instead. :)
[20:34:44] gener1c_: has joined #ruby
[20:34:55] eam: gener1c_: it's pretty normal if it mirrors your prod environment
[20:35:04] eam: guacjack: ^^
[20:35:14] eam: do you run ubuntu in prod?
[20:35:30] guacjack: it seems that every other team in the business are able to use whichever IDE they like, yet in my team theyre making every dev use a VM with IntelliJ on there
[20:35:39] VeryBewitching: has joined #ruby
[20:35:46] guacjack: im not sure, but even so, why am i not able to use Vim on the VM or sublime if i were that way inclined?
[20:36:22] eam: seems like it's enforced so you can pair program on a common platform? That seems a bit odd, but not completely crazy
[20:36:32] atmosx: guacjack: do you know the person who came up with this setup?
[20:36:46] arup_r: atmosx: Why ? :D
[20:36:52] atmosx: eam: IntelliJ? seriously?
[20:36:53] guacjack: yeah that is the reason its enforced, no but it seems like the developer whos enforcing it now is thinking hes 'the boss' when he isnt
[20:37:00] asxbr: has joined #ruby
[20:37:06] eam: atmosx: intellij for ruby is kinda crazy
[20:37:09] youngbaks: has joined #ruby
[20:37:14] atmosx: eam: exactly
[20:37:15] guacjack: its enforced so we're all on a common dev environment when pairing
[20:37:24] eam: atmosx: but enforcing one env for all devs + pair programming isn't crazy
[20:37:32] atmosx: eam: it's the IDE of choice for Java but that's about it
[20:37:33] Pisuke: has joined #ruby
[20:37:47] atmosx: guacjack: doesn't pair programming stall development?
[20:37:49] guacjack: all i've said is that im more comfortable with using Vim or Sublime
[20:38:01] jenrzzz: has joined #ruby
[20:38:14] guacjack: and the literal response i got today was 'well you'll be the odd one out and no one will want to pair with you
[20:38:14] shevy: arup_r she is sleeping again
[20:38:25] `tim`: has joined #ruby
[20:38:40] guacjack: as far as i know, no other team in this business has these rules enforced on them
[20:39:22] atmosx: guacjack: you sure it's ruby?
[20:39:23] guacjack: the business is fantastic but the team im in... im not sure why im being forced to use this IDE within this VM
[20:39:27] atmosx: guacjack: sounds too much like java
[20:39:33] guacjack: we use sinatra
[20:39:36] arup_r: shevy: don't give her then milk again.
[20:39:49] atmosx: guacjack: are you sure the guy you talked about can tell a mouse from a computer screen, because doesn't sound like he can.
[20:40:02] guacjack: im considering asking if i can move teams
[20:40:26] jobewan: has joined #ruby
[20:40:26] atmosx: guacjack: and does inteliJ have syntax highlighting for sinatra?!
[20:40:29] guacjack: cause of all the other teams this doesnt seem to be the problem, and the other teams which pair, they meet a middle ground
[20:40:45] guacjack: the other teams, if one guy uses vim and one guy uses intellij, they find a common ground
[20:40:52] atmosx: guacjack: can you show me a screenshot?
[20:41:02] guacjack: not right now, not on the works pc
[20:41:14] guacjack: i just came here to see really if this was normal
[20:41:23] agent_meerkat: has joined #ruby
[20:41:25] towski_: has joined #ruby
[20:41:37] atmosx: on a more serious note, go with IntelliJ and get over with. The choice is stupid though, doesn't make sense.
[20:41:43] bruno-: has joined #ruby
[20:41:48] guacjack: i just feel im being frowned upon cause im a little reluctant to learn an IDE, when mu current one has been fine for me for ages
[20:42:02] atmosx: Since the pay you...
[20:42:04] atmosx: learn the IDE.
[20:42:22] atmosx: you might end up writing Java one day (and then start wondering what's wrong with OO programming).
[20:42:25] guacjack: yeh i will do, seems a bit silly that the other x amount of teams are able to use what they want and im not
[20:42:30] krisquigley: has joined #ruby
[20:42:36] guacjack: there must be like 10 more teams, and they use what the ywant
[20:42:55] atmosx: guacjack: not a big deal, in 30 days or so you'll be fine I'm sure.
[20:43:06] guacjack: its the principle really
[20:43:15] guacjack: one guy thinking he's the boss
[20:43:29] guacjack: meh im just pissed off
[20:43:33] nfk: has joined #ruby
[20:43:36] ruurd: has joined #ruby
[20:43:36] workmad3: guacjack: I'd personally be heavily resistant to a to a team that attempted to force a choice of editor on me, unless it was for pretty good reasons (e.g. the command line tools for a particular build chain are stupidly complex and the IDE manages it all nicely)
[20:43:56] workmad3: code style? fair enough. editor? GTFO
[20:43:57] guacjack: other teams work on the same stuff and use whatever they want
[20:44:10] guacjack: im not asking to change any code style, any slower output or anything just to use an Editor i wnat
[20:44:35] guacjack: but i am being told i'm going to be the odd one out and no one will work with me if i do so
[20:44:44] guacjack: so seems kinda shitty
[20:44:49] tangentstorm: so just work by yourself
[20:44:52] guacjack: but dont want to complain cause dont want to seem liek a moaner
[20:44:59] guacjack: i cant, the team enforces 100% pair programming
[20:45:28] tangentstorm: i dunno man. this seems like a pretty minor thing to draw a line in the sand about.
[20:45:31] atmosx: workmad3: IMHO if the entire team uses an IDE, then you shouldn't be off-tune, for many reasons. Especially when you're the new kid on the bloc (step by step, ooh baby...)
[20:45:45] tangentstorm: you've got a job. you get to do pair programming and write ruby code. sounds pretty awesome to me.
[20:45:53] atmosx: +1 tangentstorm
[20:45:57] guacjack: we're all new though
[20:46:02] guacjack: but i agree
[20:46:04] guacjack: i am pretty lucky
[20:46:22] atmosx: You have to learn the rules of the game. And then you have to play better than anyone else. - Albert Einstein
[20:46:29] guacjack: so i probs shouldnt complain
[20:46:33] guacjack: thanks brahs
[20:47:49] workmad3: atmosx: editor/machine setup is something I think is personal choice that you need to customise for comfort, unless there's a truly compelling reason to go against the editor/setup that you've tuned to your needs, have spent lots and lots of hours learning and practicing in and that you don't need to think about, I'd basically ignore a mandate to use a specific IDE
[20:48:05] parduse: has joined #ruby
[20:48:39] RTG`: has joined #ruby
[20:49:02] guacjack: atmosx has a good point, im employed, i get to pair on everything so maybe i should just chill
[20:49:30] workmad3: atmosx: that's not to say you can't try to convince someone to try something else... I'd be open to discussions and suggestions to try something, especially if the person could show specific improvements in approaches to common editing tasks... but I would be heavily resistant to a top-down dictate to use it with no discussion
[20:49:49] solocshaw: has joined #ruby
[20:50:24] Musashi007: has joined #ruby
[20:50:58] workmad3: admittedly, I'm the sort of oddity that has actually used vim with the eclim plugin to work on java code, rather than learn eclipse and lose vim proficiency...
[20:51:06] atmosx: workmad3: reverse the situation, say you're a team leader. How would you react if junior, new entry came up with a him-IDE vs your-IDE discussions after you already made clear that you need everybody on the team to use the same tool.
[20:51:50] workmad3: atmosx: I wouldn't ever dictate everyone on the team use the same tool
[20:51:59] aaeron: has joined #ruby
[20:52:04] sharpmachine: has joined #ruby
[20:52:04] audiodude: has joined #ruby
[20:52:46] atmosx: workmad3: you would dictate some policies though. Because using IntelliJ sounds much like ap olicy to me.
[20:53:12] shevy: it makes you more intelligent! the name is a dead give away!!!
[20:53:58] guacjack: the thing is, this guy isnt the team leader
[20:53:58] j4cknewt: has joined #ruby
[20:54:00] guacjack: hes a mid level developer
[20:54:06] shevy: if the entire team goes to work without clothes then so should you
[20:54:27] craysiii: if the entire team jumps of a building would you?
[20:54:34] eam: generally, if you're not super happy with your team and your career trajectory you're gonna want to move
[20:54:36] p0wn3d__: has joined #ruby
[20:54:42] workmad3: craysiii: probably... I work with intelligent people, they're probably jumping for a good reason
[20:54:50] craysiii: good answer :)
[20:54:53] platzhirsch: yorickpeterse: ??\_(???)_/??
[20:55:06] eam: this isn't exactly a field lacking an abundance of opportunity
[20:55:08] platzhirsch: so Ruby 3 is going to have immutable strings
[20:55:12] platzhirsch: ga..me changer
[20:55:32] workmad3: craysiii: that said, I work remotely... I may not notice them jumping, it would just go silent on the team slack channel :)
[20:55:45] shevy: this will be the big split like in python \o/
[20:55:47] adaedra: platzhirsch: there's already immutable strings. They're giving it a short syntax.
[20:56:23] shevy: how short
[20:56:45] platzhirsch: I thought they'll become immutable by default
[20:56:49] ta: has joined #ruby
[20:56:58] workmad3: platzhirsch: string literals will be frozen by default
[20:57:03] platzhirsch: https://bugs.ruby-lang.org/issues/11473
[20:57:20] shevy: >> ?f+?o+?o
[20:57:22] ruboto: shevy # => "foo" (https://eval.in/439853)
[20:57:26] Xeago: has joined #ruby
[20:57:33] workmad3: that's different from a) introducing a new concept of immutable strings and b) all strings being immutable :)
[20:57:57] shevy: ice lies in the future
[20:58:06] platzhirsch: Winter's coming
[20:58:27] paulcsmith: has joined #ruby
[20:58:37] dfinninger: has joined #ruby
[20:59:22] blackmesa: has joined #ruby
[20:59:42] otacon-: has joined #ruby
[21:00:20] dopie: has joined #ruby
[21:00:25] apt-get: has joined #ruby
[21:00:38] shevy: does '# -*- immutable: string -*-' already work on 2.2.3?
[21:01:30] Rodya_: has joined #ruby
[21:01:31] yfeldblum: has joined #ruby
[21:01:35] momomomomo: has joined #ruby
[21:01:35] mwlang: has joined #ruby
[21:02:15] shevy: http://tmm1.net/ruby21-fstrings/
[21:02:28] shevy: https://gist.github.com/ColinDKelley/8156708
[21:02:43] redondo: has joined #ruby
[21:03:44] shevy: platzhirsch.freeze!
[21:04:05] yfeldblum: has joined #ruby
[21:04:16] aaeron: has joined #ruby
[21:04:25] Igorshp: has joined #ruby
[21:04:29] crdpink: has joined #ruby
[21:04:47] platzhirsch: RuntimeError: can't freeze le platzhirsch.
[21:05:34] platzhirsch: >> raise Interrupt
[21:05:36] ruboto: platzhirsch # => Interrupt (Interrupt) ...check link for more (https://eval.in/439854)
[21:06:43] Xeago: has joined #ruby
[21:06:44] platzhirsch: >> def x; raise Interrupt; rescue Interrupt; retry; end; x
[21:06:47] ruboto: platzhirsch # => (https://eval.in/439857)
[21:07:10] vdamewood: has joined #ruby
[21:08:11] vjdhama: has joined #ruby
[21:09:46] sanjayu: has joined #ruby
[21:12:32] dfockler: has joined #ruby
[21:13:55] Xeago: has joined #ruby
[21:17:25] shevy: time for hirschboto
[21:17:27] mdih: has joined #ruby
[21:17:28] freerobby: has joined #ruby
[21:18:53] baweaver: has joined #ruby
[21:19:07] Puffball: has joined #ruby
[21:20:12] FrankD: has joined #ruby
[21:21:04] tkuchiki: has joined #ruby
[21:24:57] aaeron: has joined #ruby
[21:25:07] iamninja: has joined #ruby
[21:27:23] achamian: has joined #ruby
[21:30:29] gurix: has joined #ruby
[21:30:50] FernandoBasso: has joined #ruby
[21:32:36] nyandoge: has joined #ruby
[21:32:38] isakovic: has joined #ruby
[21:33:20] momomomomo_: has joined #ruby
[21:33:24] isakovic: has left #ruby: ()
[21:34:00] abra0: has joined #ruby
[21:34:20] Khunthead: has joined #ruby
[21:34:41] Gustavo: has joined #ruby
[21:35:20] Khunthead: why are there black rubyists? isn't that immoral?
[21:35:41] abra0: has joined #ruby
[21:36:02] havenwood: !ban Khunthead !P racist troll
[21:36:03] ChanServ: +b Khunthead!*@*
[21:36:03] ChanServ: ChanServ kicked Khunthead: racist troll
[21:36:11] snockerton: has joined #ruby
[21:40:23] karapetyan: has joined #ruby
[21:40:36] workmad3: has joined #ruby
[21:44:45] Scripore: has joined #ruby
[21:45:12] zlogan: has joined #ruby
[21:45:35] roxtrongo: has joined #ruby
[21:49:17] araujo_: has joined #ruby
[21:49:25] aaeron: has joined #ruby
[21:50:59] jmaya: has joined #ruby
[21:53:39] bitri: has joined #ruby
[21:54:23] j4cknewt_: has joined #ruby
[21:54:33] subshad: has joined #ruby
[21:54:35] bronson: has joined #ruby
[21:56:10] _hanz: has joined #ruby
[21:56:38] _hanz: Is there anywhere I can find documentation for Nokogiri other than nokogiri.org?
[21:58:59] baweaver: has joined #ruby
[21:59:01] luckyme: has joined #ruby
[22:01:14] dopie: has joined #ruby
[22:01:59] dopamean_: has joined #ruby
[22:02:49] adaedra: There's the code documentation, i.e. http://www.rubydoc.info/gems/nokogiri/
[22:02:56] apt-get: has joined #ruby
[22:03:04] adaedra: Wait, gone already
[22:03:53] jdawgaz: has joined #ruby
[22:04:15] craysiii: XML is like violence - if it doesn???t solve your problems, you are not using enough of it.
[22:04:33] diegoviola: has joined #ruby
[22:04:41] craysiii: wonder how that got in there
[22:05:33] mondayrain: has joined #ruby
[22:05:42] n_blownapart: has joined #ruby
[22:06:23] allcentury: has joined #ruby
[22:08:17] sepp2k: has joined #ruby
[22:08:18] stamina: has joined #ruby
[22:08:30] dfockler: craysiii: hasn't that always been in there?
[22:09:12] craysiii: thats my first time going to that page, im just surprised it IS there considering the crusades some are willing to go on regarding language
[22:10:14] diego2: has joined #ruby
[22:10:26] baweaver: has joined #ruby
[22:10:28] diego2: has joined #ruby
[22:10:42] rbennacer: has joined #ruby
[22:10:44] momomomomo_: has joined #ruby
[22:11:11] jas02: has joined #ruby
[22:12:40] deavid: has joined #ruby
[22:13:10] Musashi007: has joined #ruby
[22:14:22] solocshaw: has joined #ruby
[22:15:04] solocshaw: has joined #ruby
[22:15:05] chipotle: has joined #ruby
[22:15:13] shevy: XML was a strong hipstermovement in the early 2000s
[22:15:27] devoldmx: has joined #ruby
[22:16:58] shevy: it gave rise to ingenius inventions such as this: http://ant.apache.org/ivy/history/latest-milestone/settings.html
[22:17:07] bruno-: has joined #ruby
[22:17:14] noethics: i still use ant
[22:17:19] platzhirsch: Hipster movement
[22:17:20] iamninja: has joined #ruby
[22:17:20] shevy: Does this not leave a warm fuzzy feeling:
[22:17:23] shevy: <properties file="${ivy.settings.dir}/ivysettings-file.properties" />
[22:17:25] platzhirsch: There were no hipsters in 2000
[22:17:27] shevy: almost like ruby <3
[22:17:37] frmendes: has joined #ruby
[22:17:39] platzhirsch: ant? For what?
[22:17:40] shevy: platzhirsch yeah they had other names
[22:17:51] platzhirsch: XSLT was da shit!
[22:17:58] diegoviola: hipsters are annoying
[22:18:02] noethics: pretty sure everyone and their mothers switched to gradle
[22:18:05] shevy: I actually don't remember all the old names... how did you call those people with black clothes and heavy metal music
[22:18:18] noethics: nah i don't use ant, except for this old relic codebase i have to maintain
[22:18:22] platzhirsch: noethics: Gradle is a lot better than that deadly Maven/Ant combo
[22:18:27] noethics: and the build file is like 10k lines
[22:18:28] mary5030: has joined #ruby
[22:18:47] noethics: gradle is nice
[22:18:53] platzhirsch: shevy: Gruffti
[22:19:09] noethics: btw platzhirsch
[22:19:13] noethics: XSLT is super powerful
[22:19:17] noethics: like super duper!
[22:19:17] shevy: I didn't know that word was in germany as well
[22:19:21] noethics: i wish it was used more
[22:19:29] platzhirsch: noethics: it's really really fast
[22:19:34] platzhirsch: can support amazing data streams
[22:19:35] baweaver: has joined #ruby
[22:19:47] noethics: you are being sarcastic
[22:20:02] noethics: but you are able to model data to the same extent as a relational database, essentially.
[22:20:12] startupality: has joined #ruby
[22:20:18] noethics: it's perfect for schemas and porting schemaless data to various schemas
[22:20:18] shevy: <noethics> i still use ant
[22:20:21] shevy: who is sarcastic!!!
[22:20:41] shevy: in the game wesnoth, they use XML for programming
[22:20:49] noethics: that's super gangster
[22:20:50] shevy: they call it wesnoth WML...
[22:21:00] grotewold: has joined #ruby
[22:21:08] noethics: i wrote a java bytecode instrumentator thingy
[22:21:14] noethics: it uses xml for scripting functionality
[22:21:16] noethics: it's so bad
[22:21:18] platzhirsch: still feels like JSON took it over
[22:21:30] shevy: cuz javascript conquers the world
[22:21:48] noethics: schemaless design is so like.. barbaric though
[22:22:03] noethics: we need more msgpack
[22:22:41] platzhirsch: I am so fed up, this weekend I'll spend diving into the NodeJS stack. I really wanted to avoid that hipster scheme
[22:22:53] platzhirsch: ACTION drinks the kool aid
[22:23:10] noethics: node is undeniably powerful ;/
[22:23:49] platzhirsch: Where did Ox0dea go?
[22:24:31] shevy: rescuing a unicode snowman
[22:25:44] BraddPitt: don't worry platzhirsch, I'm doing the exact same
[22:26:04] platzhirsch: BraddPitt: I feel suddenly better
[22:26:07] platzhirsch: why, what's up
[22:26:08] bruno-: has joined #ruby
[22:27:45] Papierkorb: is there a ruby equivalent to the 'file' utility?
[22:28:09] achamian: has joined #ruby
[22:29:23] platzhirsch: file utility?
[22:29:47] minimalism: has joined #ruby
[22:29:58] Papierkorb: platzhirsch: $ file /bin/bash # Detect what file type '/bin/bash' is
[22:30:27] platzhirsch: shell out dude
[22:31:20] toretore: Papierkorb: the lib that file uses is called libmagic
[22:31:20] platzhirsch: Papierkorb: the library is called libmagic
[22:31:23] toretore: there's a gem
[22:31:26] platzhirsch: I believe this gem does it https://rubygems.org/gems/magic/versions/0.2.9
[22:31:26] frege: has joined #ruby
[22:31:27] startupality: has joined #ruby
[22:32:01] c0ncealed: has joined #ruby
[22:32:56] platzhirsch: #ruby, solving your problems concurrently and twice
[22:33:44] casadei: has joined #ruby
[22:35:54] weemsledeux: has joined #ruby
[22:36:21] scoot: has joined #ruby
[22:36:44] apt-get: has joined #ruby
[22:37:56] segfalt: has joined #ruby
[22:38:08] EminenceHC: has joined #ruby
[22:38:48] Coldblackice: has joined #ruby
[22:38:52] djbkd: has joined #ruby
[22:41:29] rbennacer: has joined #ruby
[22:42:17] chouhoulis: has joined #ruby
[22:42:52] rbennacer: has joined #ruby
[22:44:22] evanjs: has joined #ruby
[22:45:49] drewvanstone: has joined #ruby
[22:47:29] towski_: has joined #ruby
[22:49:00] arashb: has joined #ruby
[22:49:05] voltalio: has joined #ruby
[22:49:39] quazimodo: has joined #ruby
[22:50:15] bruno-: has joined #ruby
[22:52:30] jdawgaz: has joined #ruby
[22:55:03] shevy: platzhirsch, ab in den Papierkorb mit dir!
[22:55:30] platzhirsch: shaddup Robret
[22:56:40] sanjayu: has joined #ruby
[22:56:46] Kallis: has joined #ruby
[22:57:26] Azure: has joined #ruby
[22:58:22] zlast: has joined #ruby
[22:58:33] zlast: What is the class of a Module?
[22:58:53] platzhirsch: >> Module.class
[22:58:54] ruboto: platzhirsch # => Class (https://eval.in/439875)
[23:00:00] startupality: has joined #ruby
[23:00:01] zlast: https://eval.in/439876
[23:00:09] tomphp: has joined #ruby
[23:01:09] grotewold: has joined #ruby
[23:01:17] sharkman: has joined #ruby
[23:02:01] zlast: so a module is an instance of Module?
[23:04:11] zlast: Does someone know of a good tutorial for Nokogiri? The documentation on nokogiri.org sucks apparently.
[23:04:58] platzhirsch: try to work your way with it in pry-debugger, that helped me alot
[23:05:28] EminenceHC: has joined #ruby
[23:05:37] dfockler: has joined #ruby
[23:07:18] zlast: has left #ruby: ()
[23:07:28] nofxx: has joined #ruby
[23:08:45] yorickpeterse: platzhirsch: ?
[23:08:55] platzhirsch: good morning jorick
[23:09:03] j4cknewt: has joined #ruby
[23:09:47] yorickpeterse: good morning blatzhirsch
[23:10:29] voltalio: has joined #ruby
[23:10:37] platzhirsch: It's 00:10 in my local time
[23:10:59] RegulationD: has joined #ruby
[23:11:12] ruboto: it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
[23:12:03] EminenceHC: has joined #ruby
[23:13:26] platzhirsch: okay then, kill all smalltalk
[23:14:23] adaedra: ??????????????????????????
[23:14:29] grotewold: has joined #ruby
[23:15:11] shevy: who has finally written a bot that writes ruby code
[23:15:44] ddrmanxbxfr: has joined #ruby
[23:15:51] baweaver: has joined #ruby
[23:16:07] jas02: has joined #ruby
[23:16:36] djbkd: has joined #ruby
[23:16:51] slawrence00: has joined #ruby
[23:16:54] weemsledeux: has joined #ruby
[23:20:47] ekain: has joined #ruby
[23:21:10] mattprelude: has joined #ruby
[23:22:18] jas02: has joined #ruby
[23:22:27] FrankD: has joined #ruby
[23:22:36] FrankD: has joined #ruby
[23:23:19] TheGoldenAngel: has joined #ruby
[23:25:59] TheGoldenAngel: has left #ruby: ()
[23:26:25] achamian: has joined #ruby
[23:26:38] platzhirsch: Try genetic algorithms
[23:27:10] d10n-work: has joined #ruby
[23:31:03] startupality: has joined #ruby
[23:34:17] skade: has joined #ruby
[23:39:17] TheGoldenAngel: has joined #ruby
[23:39:18] TheGoldenAngel: SUBSCRIBE My Official CAM GIRL Channel with skype contact : https://www.youtube.com/channel/UCpW7RV72BJzs7OTSgBEmZCQ/videos
[23:39:20] TheGoldenAngel: has left #ruby: ()
[23:39:41] arashb: has joined #ruby
[23:41:45] shevy: what options do we have available to document our ruby code
[23:41:49] shevy: rdoc and yard only?
[23:44:24] rismoney1: has joined #ruby
[23:45:09] frmendes: has joined #ruby
[23:48:28] icole: has joined #ruby
[23:50:28] skade: has joined #ruby
[23:51:48] ruby-lang843: has joined #ruby
[23:52:18] voltalio: has joined #ruby
[23:52:21] ellisTAA: has joined #ruby
[23:52:56] dopamean_: has joined #ruby
[23:52:57] ellisTAA: has anyone here interviewed someone for software engineer role?
[23:54:49] bronson: has joined #ruby
[23:56:08] dorei: has joined #ruby
[23:56:53] [k-: has joined #ruby
[23:57:14] ellisTAA: what is your go to technical interview question?
[23:58:25] ellisTAA: by technical interview i mean white boarding question
[23:58:30] shevy: what is the purpose of a class
[23:58:43] jenrzzz: has joined #ruby
[23:58:45] startupality: has joined #ruby
[23:59:51] rismoney1: has joined #ruby