« Back to channel list

#ruby - 10 June 2015

« Back 1 day Forward 1 day »
[00:00:05] grp066: has joined #ruby
[00:01:22] asteros: has joined #ruby
[00:01:37] rodfersou: has joined #ruby
[00:01:40] attlasbot: has joined #ruby
[00:02:58] kotk: has joined #ruby
[00:03:00] sevenseacat: has joined #ruby
[00:05:21] a1fa: what is better, build an array and then write to csv file or write as you go?
[00:05:45] vassy: has joined #ruby
[00:06:31] fabrice31: has joined #ruby
[00:07:10] volty: no need for an array if you write it at the end // but at the same time, the array could permit you to debug, sort, filter etc etc //
[00:08:00] volty: (make it easier to debug, etc)
[00:08:05] vassy: Hi I am implementing a program to read facebook posts from timeline using Koala
[00:08:15] eam: does the dataset fit in memory :)
[00:08:15] nateberkopec: has joined #ruby
[00:08:29] vassy: Some code can be found here - https://gist.github.com/svassy/af7693173844aaddc613
[00:08:37] volty: the memory will let him know that :)
[00:09:41] CloCkWeRX: has left #ruby: ()
[00:10:06] vassy: Facebook is grouping related posts and then giving the response
[00:10:17] vassy: Is there a way to read individual responses?
[00:10:52] charliesome: has joined #ruby
[00:12:55] LicHacker: has joined #ruby
[00:13:06] Yzguy: has joined #ruby
[00:13:56] fmcgeough: has joined #ruby
[00:13:58] jesterfraud: has joined #ruby
[00:14:14] jesterfraud: OH: "Yeah, I assumed the build would break" - guy who pushed the code that broke the build
[00:14:17] GPrime: has joined #ruby
[00:14:46] jesterfraud: it failed because a test on his branch got autogenerated and wasn't right... which means he didn't run tests
[00:14:55] Radar: That's a paddlin'
[00:16:19] commondream: has joined #ruby
[00:17:57] Yiota: has joined #ruby
[00:18:05] commondream: has joined #ruby
[00:18:52] fgo: has joined #ruby
[00:19:03] prereflect: has joined #ruby
[00:19:08] bruno-: has joined #ruby
[00:19:30] iml_: has joined #ruby
[00:19:57] _blizzy_: has joined #ruby
[00:20:46] porfa: has joined #ruby
[00:22:31] bkxd: has joined #ruby
[00:24:28] astrobunny: has joined #ruby
[00:26:53] fgo: has joined #ruby
[00:27:13] Scripore: has joined #ruby
[00:27:59] CloCkWeRX: has joined #ruby
[00:30:14] ur5us: has joined #ruby
[00:30:24] penzur: has joined #ruby
[00:33:33] justintv90: has joined #ruby
[00:33:49] al2o3-cr: ????????????
[00:34:20] dgutierrez1287: has joined #ruby
[00:35:44] al2o3-cr: Jag beh??ver en hamburgare
[00:37:03] al2o3-cr: eller master regex
[00:37:26] arooni-mobile: has joined #ruby
[00:37:29] malconis: has joined #ruby
[00:37:39] yxhuvud: has joined #ruby
[00:39:02] robustus: has joined #ruby
[00:40:11] hotpancakes: has joined #ruby
[00:40:37] wallerdev: has joined #ruby
[00:41:22] KillerFox: has joined #ruby
[00:43:14] jenrzzz: has joined #ruby
[00:43:19] centrx: has joined #ruby
[00:43:58] duggiefresh: has joined #ruby
[00:44:20] al2o3-cr: kanske sova o/
[00:45:03] greenbagels_: has joined #ruby
[00:45:31] Scroff: has joined #ruby
[00:46:01] babykosh: has joined #ruby
[00:48:18] araujo_: has joined #ruby
[00:48:44] davedev24: has joined #ruby
[00:49:36] auzty: has joined #ruby
[00:49:45] fujimura: has joined #ruby
[00:52:31] premera: has joined #ruby
[00:53:46] kies: has joined #ruby
[00:53:55] auzty: has joined #ruby
[00:53:55] pothibo: has joined #ruby
[00:54:17] mello: has joined #ruby
[00:54:17] mello: has joined #ruby
[00:54:40] aspiers: has joined #ruby
[00:55:04] centrx: has joined #ruby
[00:57:57] kinduff: has joined #ruby
[00:57:57] kinduff: has joined #ruby
[00:58:58] jgt2: has joined #ruby
[01:01:28] auzty: has joined #ruby
[01:01:51] eggoez: has joined #ruby
[01:02:25] soasme: has joined #ruby
[01:02:52] dgutierrez1287: has joined #ruby
[01:03:22] discord: has joined #ruby
[01:05:39] centrx: has joined #ruby
[01:07:38] attlasbot: has joined #ruby
[01:08:06] soasme: has joined #ruby
[01:09:29] discord: has joined #ruby
[01:13:35] mrsolo: has joined #ruby
[01:18:29] auzty: has joined #ruby
[01:19:02] amclain: has joined #ruby
[01:20:28] pothibo: I???m having issue trying to get 2 gems that I work on locally to get included in a Gemfile in a Docker, anyone knows something about that ?
[01:21:30] Radar: pothibo: No info?
[01:21:48] pothibo: Radar: I can provide for sure, just didn???t want to print a wall of text for no reason
[01:22:06] Radar: It's generally a good idea to explain what you've tried and how it's not worked for you.
[01:22:41] commondream: has joined #ruby
[01:23:35] tubuliferous_: has joined #ruby
[01:23:48] penzur: has joined #ruby
[01:25:16] astrobunny: has joined #ruby
[01:25:27] araujo_: has joined #ruby
[01:26:09] jaycee: has joined #ruby
[01:26:39] lokulin: has joined #ruby
[01:27:19] Diabolik: how can i do the maths on this better
[01:27:21] Diabolik: https://bitbucket.org/askl56/checkout/src
[01:27:29] Diabolik: in rules.rb
[01:27:31] kwatz: has joined #ruby
[01:27:42] TinkerTyper: has joined #ruby
[01:28:23] araujo_: has joined #ruby
[01:28:27] avdi: define "better"?
[01:28:28] pothibo: https://gist.github.com/pothibo/c318deedd3d850c146cf this is a basic project where I???m trying to run bundle install and be able to install the bundle including a gem that I am developing in sync
[01:28:39] pothibo: I don???t know if that makes sense, but the Gemfile should give an idea
[01:28:57] prereflect: has joined #ruby
[01:29:34] j4cknewt: has joined #ruby
[01:29:43] dopie: has joined #ruby
[01:30:26] remendo: has joined #ruby
[01:31:21] araujo_: has joined #ruby
[01:31:23] JoshGlzBrk: has joined #ruby
[01:32:51] CalvinnHobbes: has joined #ruby
[01:34:32] serivichi: has joined #ruby
[01:34:38] yfeldblum: has joined #ruby
[01:35:03] iml_: has joined #ruby
[01:35:15] sandstrom: has joined #ruby
[01:37:41] centrx: has joined #ruby
[01:37:44] mary5030: has joined #ruby
[01:37:55] j4cknewt: has joined #ruby
[01:38:01] weaksauce: Diabolik well for starters the magic numbers are magic
[01:39:38] unreal: has joined #ruby
[01:41:21] Diabolik: weaksauce what do you mean
[01:41:52] weaksauce: what is 3.11?
[01:42:10] weaksauce: would you know what 3.11 meant 6months down the line?
[01:42:39] penzur: has joined #ruby
[01:42:57] weaksauce: count is an unidiomatic way to do things.
[01:43:39] Diabolik: weaksauce what is a better way?
[01:43:41] penzur: has joined #ruby
[01:43:47] weaksauce: >> [:sr1,sr2,:sr1].count { |x| x == :sr1}
[01:43:48] ruboto: weaksauce # => undefined local variable or method `sr2' for main:Object (NameError) ...check link for more (https://eval.in/378689)
[01:43:56] weaksauce: >> [:sr1,:sr2,:sr1].count { |x| x == :sr1}
[01:43:56] avahey: has joined #ruby
[01:43:57] ruboto: weaksauce # => 2 (https://eval.in/378690)
[01:47:43] tubuliferous_: has joined #ruby
[01:47:47] gusrub: has joined #ruby
[01:48:43] dfockler: has joined #ruby
[01:50:31] fujimura: has joined #ruby
[01:50:51] araujo__: has joined #ruby
[01:51:35] Ox0dea: has joined #ruby
[01:51:47] Ox0dea: >> [:sr1, :sr2, :sr1].count(:sr1)
[01:51:48] ruboto: Ox0dea # => 2 (https://eval.in/378691)
[01:52:01] Ox0dea: weaksauce: Do you even?
[01:52:27] Diabolik: weaksauce what would be a better way/
[01:52:38] weaksauce: showing the generic so it could be used with a property Ox0dea
[01:52:56] weaksauce: like in the original problem
[01:53:49] arooni-mobile: has joined #ruby
[01:54:50] pengin: has joined #ruby
[01:57:17] ellisTAA: has joined #ruby
[01:57:31] centrx: has joined #ruby
[02:00:53] ReinH: has left #ruby: ("WeeChat 1.0.1")
[02:02:07] ur5us: has joined #ruby
[02:04:43] charliesome: has joined #ruby
[02:05:24] ellisTAA: how do i update ruby version? i have rbenv installed
[02:06:54] Ox0dea: EllisTAA: Do you enjoy projecting an air of helplessness?
[02:07:40] fgo: has joined #ruby
[02:10:56] baweaver: has joined #ruby
[02:11:01] Zamerick: has joined #ruby
[02:12:25] gusrub: has joined #ruby
[02:14:23] gusrub: has joined #ruby
[02:15:39] asteros: has joined #ruby
[02:15:58] sdothum: has joined #ruby
[02:16:36] atomical: has joined #ruby
[02:17:25] nateberkopec: has joined #ruby
[02:17:45] djbkd: has joined #ruby
[02:17:53] centrx: has joined #ruby
[02:18:25] ellisTAA: i enjoy not wasting time ???
[02:18:42] sevenseacat: you've just wasted fifteen minutes
[02:19:04] sevenseacat: by not googling it and updating ruby
[02:19:09] ellisTAA: i did google it
[02:19:12] ellisTAA: shit didn???t come up
[02:19:40] ellisTAA: how to update my ruby version
[02:19:59] monsieur1: has joined #ruby
[02:20:01] ellisTAA: everything that was returned was related to rvm
[02:20:05] sevenseacat: ACTION googles "rbenv update ruby" and looks at the dozens of results
[02:20:36] remendo: EllisTAA: then get rvm
[02:20:38] sevenseacat: you need to improve your google skills.
[02:20:53] Fooster: has joined #ruby
[02:20:59] ellisTAA: ok first result, sstephenson/rbenv, i looked and i didn???t see the command
[02:21:19] RegulationD: has joined #ruby
[02:22:40] sevenseacat: Ox0dea: I guess that's a yes.
[02:23:03] ruby384: has joined #ruby
[02:23:29] ruby384: i had a question, im ahving this issue http://stackoverflow.com/questions/30726848/why-do-i-keep-getting-these-errors-after-running-gem-pristine-all
[02:24:07] chishiki: has joined #ruby
[02:24:23] sevenseacat: ruby384: sounds like you used sudo somewhere along the line where you shouldnt have
[02:24:37] remendo: sevenseacat: Do you see Elixir as a replacement for Ruby in the future?
[02:24:39] ruby384: how can i fix this
[02:24:51] remendo: sevenseacat: For your case.
[02:25:09] sevenseacat: remendo: well, my case is I'm a web developer, and it's definitely possible.
[02:25:21] sevenseacat: ruby384: by undoing whatever you did with sudo
[02:25:45] ruby384: what if i dont know what i did. is there a way to uninstall everything?
[02:25:58] havenwood: ruby384: What OS/distro are you on?
[02:25:59] astrobunny: has joined #ruby
[02:26:16] havenwood: ruby384: ruby -v
[02:26:24] havenwood: ruby384: which ruby
[02:26:58] havenwood: ruby384: command -v ruby
[02:27:10] ellisTAA: boom figured it ou
[02:27:19] sevenseacat: EllisTAA: good job :)
[02:27:31] ruby384: that outputs: /Users/FarhanSyed/.rbenv/shims/ruby
[02:27:36] chishiki: has joined #ruby
[02:28:31] havenwood: ruby384: whoami
[02:28:47] ruby384: gives FarhanSyed
[02:28:48] ylla: has joined #ruby
[02:28:50] hubcaps: has joined #ruby
[02:28:50] hubcaps: has joined #ruby
[02:29:08] bogdanteleaga: has joined #ruby
[02:30:52] havenwood: ruby384: And it's saying?: Permission denied
[02:32:33] havenwood: ruby384: Is that stackoverflow your exact output or just similar?
[02:32:39] CalvinnHobbes: has joined #ruby
[02:33:26] remendo: sevenseacat: What book did you use for Elixir/Phoenix?
[02:33:40] sevenseacat: programming elixir, by dave thomas, for getting started with elixir.
[02:33:52] remendo: sevenseacat: Ok great, thanks.
[02:33:54] sevenseacat: phoenix, making shit up as I go along, poking through the source, reading the guides.
[02:34:22] remendo: sevenseacat: Are we going to see something from you soon? :)
[02:34:30] sevenseacat: remendo: maaaaaybe.
[02:35:00] remendo: sevenseacat: Why I have the feeling that you planned to write a book later with Radar?
[02:35:43] Radar: TIL sevenseacat and I are writing an Elixir book
[02:35:43] hakunin: has joined #ruby
[02:36:35] matti: has joined #ruby
[02:36:54] qsuscs: has joined #ruby
[02:37:18] remendo: Radar: planned :o
[02:37:27] GPrime: has joined #ruby
[02:37:28] Radar: I am teh n00b at Elixir
[02:37:37] Radar: and I haven't even started on Phoenix yet
[02:37:51] centrx: has joined #ruby
[02:38:00] sevenseacat: ACTION also a noob
[02:38:10] remendo: ACTION the noobiest
[02:38:21] Aeyrix: I'm not learning Elixir, dammit.
[02:38:32] remendo: ACTION not the noobiest anymore
[02:38:56] ellisTAA: how did u choose elixir over the many other languages?
[02:39:08] Radar: EllisTAA: Jose Valim came to me in a dream and told me that I had to start learning Elixir.
[02:39:18] Aeyrix: That's why I picked up Go.
[02:39:31] Aeyrix: Except it was Graydon Hoare.
[02:39:32] Zamerick: has joined #ruby
[02:39:32] Radar: Aeyrix: Contrarian ;)
[02:39:39] Aeyrix: Wait fuck
[02:39:41] Aeyrix: I meant Rust, not Go.
[02:39:52] Aeyrix: I'm clearly having a bad day.
[02:39:52] remendo: Radar: He came to many dreams. Concurrent dreams ^^
[02:39:53] Radar: Welp, time to go back to writing the inferior language now that my lunch break is over.
[02:39:57] ruby384: i try to do gem pristine --all and some of the gems get restored but eventually said permission denied
[02:40:00] Radar: remendo: Yes, exactly :D
[02:40:01] Aeyrix: Radar: Inferior/
[02:40:08] Radar: Aeyrix: You heard me.
[02:40:09] Aeyrix: Since when are you writing Python? :^)
[02:40:23] Aeyrix: You actually prefer Elixir over Ruby? o_O
[02:40:42] Aeyrix: I have flashbacks to the time I looked at Elixir's syntax.
[02:40:54] sevenseacat: the syntax is pretty ruby-esque.
[02:41:04] zenspider: ruby384: prolly because some of them were installed via sudo
[02:41:09] Aeyrix: It's like someone spilled Go's syntax.
[02:41:36] Oog: has joined #ruby
[02:41:37] ruby384: how do i fix it?
[02:41:42] sevenseacat: Aeyrix: https://github.com/sevenseacat/ticketee-phoenix/blob/master/web/models/project.ex tell me thats not ruby-eqsue.
[02:42:06] Aeyrix: Why are you drawing a sail?
[02:42:14] sevenseacat: ok, it has one different operator.
[02:42:14] commondream: has joined #ruby
[02:42:19] Radar: Aeyrix: Haters gonna hate hate hate
[02:42:21] Aeyrix: What operator is that?
[02:42:28] sevenseacat: the pipe operator
[02:42:29] remendo: Aeyrix: Think about it, it comes from Unix | operator.
[02:42:30] Radar: Aeyrix: Yes, I prefer Elixir's syntax to Ruby.
[02:42:37] Aeyrix: What the hell is double whack?
[02:42:40] revath: has joined #ruby
[02:42:47] Radar: default params
[02:42:53] Aeyrix: What was wrong with =?
[02:42:55] Radar: I think of it as "sideways equals"
[02:43:02] mello: has joined #ruby
[02:43:02] Radar: = is pattern matching, which is reserved for other things
[02:43:05] Aeyrix: I think of it as incorrect.
[02:43:22] fujimura: has joined #ruby
[02:43:36] remendo: Aeyrix: An example from the book about the |>, "$ grep Elixir *.pml | wc -l" in Unix.
[02:43:43] sevenseacat: anyway, this is #ruby, #elixir-lang is over there ->
[02:43:48] Radar: Aeyrix: y u no come to Church of Elixir / Railscamp so we can bring you into the Church? :)
[02:43:51] jpfuentes2: has joined #ruby
[02:43:53] remendo: sevenseacat: Oh yea :o
[02:43:54] ponga: has joined #ruby
[02:43:56] Aeyrix: Radar: I can't come to RailsCamp.
[02:44:00] Aeyrix: B> Proximity to spiders
[02:44:07] Axsuul: has joined #ruby
[02:44:09] Radar: Aeyrix: Whore yourself out like the rest of us do.
[02:44:11] zamerick_: has joined #ruby
[02:44:17] Radar: Alt. work for a company who pays for it
[02:44:24] remendo: Aeyrix: Click here #elixir-lang
[02:44:25] sevenseacat: i'm not a whore, i'm a consulting escort.
[02:44:27] Aeyrix: I work in security, not programming.
[02:44:33] Radar: B> Spiders won't hurt you if you don't hurt them.
[02:44:38] Aeyrix: Doesn't matter.
[02:44:39] msnyon: has joined #ruby
[02:44:49] remendo: +1 to arachnophobia
[02:44:57] Yiota: has joined #ruby
[02:45:24] sevenseacat: B> Spiders wont hurt you if you have a really big goddamn shoe to squish them with.
[02:45:33] ruby384: is there a way to reverse the issue?
[02:45:39] remendo: sevenseacat: And what if they are inside your shoe?
[02:45:55] sevenseacat: remendo: shake them out. then squish them.
[02:45:56] remendo: sevenseacat: *Australia*
[02:46:11] sevenseacat: I'm aware of Australia.
[02:46:43] Radar: ruby384: Yeah: install Ruby using chruby+ruby-install
[02:46:48] sevenseacat: ACTION has lived there for over thirty years oh christ
[02:46:57] Radar: still alive
[02:46:59] Radar: that's quite a feat
[02:47:15] remendo: ACTION age revealed
[02:48:07] Aeyrix: I've lived here for 12 years. :^)
[02:48:15] Aeyrix: AGE NOT REVEALED
[02:49:13] Radar: Aeyrix: Everyone knows you're 17 its ok
[02:49:21] sevenseacat: I revealed nothing.
[02:50:29] Aeyrix: Radar: Next meetup when?
[02:50:37] Radar: Aeyrix: 2 weeks from now
[02:50:48] Aeyrix: So glad I have a human calendar.
[02:51:07] remendo: Aeyrix: http://a-z-animals.com/media/animals/images/original/red_knee_tarantula.jpg
[02:51:13] remendo: Why do they look so evil?
[02:51:31] remendo: Aeyrix: I was shaking the whole time looking for a picture..
[02:52:33] Aeyrix: Radar: I'll come to that one.
[02:52:36] ruby384: what is chruby
[02:52:37] Aeyrix: I'm not sick now. :D
[02:52:45] Aeyrix: ruby384: Basically containerised environments for Ruby apps.
[02:52:52] havenwood: ruby384: https://github.com/postmodern/chruby#readme
[02:52:57] Aeyrix: It means your gems for one app don't affect your gems for another app.
[02:52:59] Radar: ruby384: What OS are you on?
[02:53:32] Aeyrix: Anyone not using a separate user per Ruby app
[02:53:37] Aeyrix: is upsetting me.
[02:53:50] Radar: ruby384: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[02:53:57] sevenseacat: Aeyrix: not sure you know what chruby is
[02:54:04] Radar: ruby384: Follow that. That should help you get setup.
[02:54:05] Aeyrix: sevenseacat: I mean in general.
[02:54:20] sevenseacat: its got nothing to do with gems, or containerization
[02:54:22] Aeyrix: sevenseacat: chruby is for ruby versions amirite?
[02:54:25] sevenseacat: its a ruby switcher
[02:54:27] Aeyrix: Yeah that's rubyevv
[02:54:34] Aeyrix: I got confused.
[02:54:49] sevenseacat: ruby-install is an installer, and chruby is a switcher. thats it.
[02:54:51] Aeyrix: Wait so is chruby preferred over rvm now?
[02:55:00] sevenseacat: I haven't used rvm in many years
[02:55:04] Radar: it has been that way for at least two years now
[02:55:06] Aeyrix: What was wrong with rvm?
[02:55:29] sevenseacat: well for me, it was the fact that every time a new version of ruby came out, you had to upgrade rvm and get all the new bugs
[02:55:32] Aeyrix: ACTION just uses latest stable Ruby tbh.
[02:56:00] sevenseacat: then for one project I needed jruby, and installing it made my shell completely unusable
[02:56:01] Radar: Aeyrix: See the bottom of my blog post. It explains my feelings towards RVM :)
[02:56:20] remendo: Ubuntu latest version for Ruy iiiiiiiiis, 1.9...
[02:56:26] sevenseacat: remendo: no, 2.0.
[02:56:29] Aeyrix: "Even if you don't want to use Bundler (i.e. you're crazy)"
[02:56:29] havenwood: Just for fun, here's a quick little Ruby implementation of Elixir's Stream.unfold/2: https://gist.github.com/havenwood/e1b65e004ce716f428b0
[02:56:38] remendo: sevenseacat: They updated? Must be recently.
[02:56:46] Radar: havenwood: woah
[02:56:50] Aeyrix: remendo: Depends entirely on what repository you use.
[02:56:53] Aeyrix: I have 2.1 on Debian.
[02:57:00] sevenseacat: remendo: if by recently you mean when 2.0 came out, sure.
[02:57:14] minmax: has joined #ruby
[02:57:17] tkuchiki: has joined #ruby
[02:57:28] sevenseacat: i dont think they have 2.1 in the repos yet, but not sure on that.
[02:57:42] remendo: Aeyrix: I have a laptop with the standard ubuntu installation, it was 1.9 :o
[02:57:51] sevenseacat: remendo: then you installed the wrong package
[02:57:52] Aeyrix: remendo: I use apt pinning.
[02:58:10] Radar: lol if you're using Ruby from apt
[02:58:21] remendo: sevenseacat: No idea I just checked. Don't use that lappy tho, just for surfing.
[02:58:27] Aeyrix: Radar: Depends on my install tbh.
[02:58:36] Radar: apt-get ruby is bad for your health
[02:58:38] Radar: like smoking
[02:58:38] Aeyrix: No, really, it does.
[02:58:43] Aeyrix: I hear that so much
[02:58:46] Aeyrix: no real justification ever
[02:58:50] Aeyrix: from Python people at least
[02:58:55] Aeyrix: "muh 3.4 install"
[02:59:05] Radar: Aeyrix: It pretends to install a version of Ruby that it doesn't really install.
[02:59:14] Radar: apt-get install ruby1.9 -> Ruby 2.0 gets installed
[02:59:15] remendo: havenwood: lool :D
[02:59:18] sevenseacat: it them requires sudo for *everything*
[02:59:22] Aeyrix: can confirm absolutely otherwise
[02:59:25] Aeyrix: as of about this morning
[02:59:30] sevenseacat: ruby1.9 isnt ruby 2.
[02:59:31] sdothum: has joined #ruby
[02:59:34] Radar: Oh they fixed that :)
[02:59:37] Aeyrix: ruby2 is ruby 2.0
[02:59:41] Aeyrix: ruby2.2 is ruby 2.2
[02:59:44] Aeyrix: it works properly now
[02:59:47] sevenseacat: oh they have a ruby 2.2 package now?
[02:59:53] Aeyrix: In testing, yes.
[02:59:57] Radar: Aeyrix: And how are you switching between Ruby versions?
[02:59:59] Aeyrix: I installed it about a week ago on a VM.
[03:00:08] Aeyrix: Radar: Why would I switch between versions when it's my own projects?
[03:00:10] Radar: And do they have a 2.2.2 release yet?
[03:00:17] duggiefresh: has joined #ruby
[03:00:20] sevenseacat: if you have projects that arent all on the same version?
[03:00:21] Radar: Aeyrix: Because you contribute to OSS and you want to test the project on 2.0, 2.1 and 2.2.
[03:00:23] Aeyrix: I maintain and test that they work with the latest on one box, then update.
[03:00:33] sevenseacat: you don't work in a team do you >_>
[03:00:36] Aeyrix: Active/standby mirrors. :^)
[03:00:39] Aeyrix: Not for my Ruby projects, no.
[03:00:42] Radar: (admittedly there isn't really many differences between 2.0, 2.1 and 2.2, but still!)
[03:00:52] Aeyrix: If it was between 1.9 and 2.0
[03:00:56] Aeyrix: I'd understand
[03:00:57] Aeyrix: but it isn't.
[03:01:03] sevenseacat: cant just upgrade a project when all the other team members and all the server config is for the other version
[03:01:05] Aeyrix: And if it was there's other underlying issues at this point.
[03:01:15] sdothum: has joined #ruby
[03:01:18] Aeyrix: sevenseacat: Hence staging/production
[03:01:29] sevenseacat: whats that got to do with anything?
[03:01:42] Aeyrix: I have two boxes that are identical right now. When a new version of nginx or Ruby comes out, my test box updates and I, well, test.
[03:01:51] Aeyrix: Or postgres, or Python.
[03:01:57] sevenseacat: your server auto-updates itself?
[03:02:03] Aeyrix: I update it.
[03:02:14] Aeyrix: >auto updates on anything that isn't a desktop machine
[03:02:20] sevenseacat: and your infrastructure that builds these systems?
[03:02:21] Diabolik: weaksauce is there an easy way of fixing the messiness in this code
[03:02:21] Diabolik: https://gist.github.com/askl56/1a453828bae1aa5988e2
[03:02:27] Aeyrix: sevenseacat: ?
[03:02:31] Aeyrix: KVM VMs hosted by my old work.
[03:02:44] sevenseacat: we're not just talking about one server sitting in a corner here
[03:02:53] Radar: Diabolik: Why direct your message at weaksauce?
[03:03:08] Aeyrix: I don't really understand what your point is.
[03:03:12] Diabolik: because i was talking to him about it earlier?
[03:03:25] Aeyrix: My point is I test versions in a nonpublic environment before I update it elsewhere.
[03:03:27] Diabolik: i've been refactoring code on his suggestion
[03:03:37] Aeyrix: Just like you, you know, should be doing.
[03:03:41] Aeyrix: Anywhere.
[03:03:45] zenspider: ruby384: how do you know it is broken? gem pristine --all is a last-ditch effort
[03:03:48] sevenseacat: I'm not an ops person.
[03:03:48] Aeyrix: OS updates, software updates, anything.
[03:03:54] sevenseacat: I have an ops team for that.
[03:04:03] zenspider: you probably can't say for sure that you're addressing your problem with it
[03:04:10] CloCkWeRX1: has joined #ruby
[03:04:11] sevenseacat: for them, just changing a version of ruby is not a trivial task
[03:04:12] Aeyrix: But given my "team" size is 1-3 people, it's not really an issue.
[03:04:26] Aeyrix: I made sure that it would be a trivial task when I set up the env.
[03:04:39] sevenseacat: again, you only have one env
[03:04:48] Aeyrix: Because I made it so easy.
[03:04:51] sevenseacat: the ops team here manages a *lot* of envs.
[03:05:08] nofxx: There was a gem to gdb/find memory leaks.. anyone remember the name?
[03:05:10] Aeyrix: I don't manage my work's env fwiw.
[03:05:30] sevenseacat: yeah we're talking about different scales then
[03:05:35] Aeyrix: sevenseacat: ofc
[03:06:01] sevenseacat: at one point in my last job I had projects on six different versions/patch levels of ruby
[03:06:10] Aeyrix: That's just an accident waiting to happen.
[03:06:22] sevenseacat: what makes you say that
[03:06:38] Aeyrix: Depends on the version disparity I guess.
[03:06:45] havenwood: Updated gist with Elixir/Ruby examples: https://gist.github.com/havenwood/e1b65e004ce716f428b0
[03:06:46] Aeyrix: And also how often you're flitting between environments.
[03:06:51] sevenseacat: this is why upgrades are not always trivial :P
[03:06:58] Aeyrix: This is why they should be. :(
[03:07:12] helpa: http://i.imgur.com/tyViD.gif
[03:07:29] sevenseacat: Aeyrix: your non-programmer is starting to show, just a little.
[03:07:41] Aeyrix: Yeah this is where we'll deviate.
[03:08:46] Radar: "should be"
[03:08:48] Radar: ACTION giggles
[03:08:56] Radar: ACTION pats Aeyrix
[03:09:01] Radar: You'll become old + bitter soon.
[03:09:05] Aeyrix: wtf are you going on about now
[03:09:09] Aeyrix: No I won't.
[03:09:11] hahuang65: has joined #ruby
[03:09:12] Aeyrix: I'm not a programmer. :^)
[03:09:32] fgo: has joined #ruby
[03:09:50] mase-chatter: has joined #ruby
[03:10:34] sevenseacat: ACTION remembers fondly upgrading one app from ruby 1.9 to 2.2, testing it happily everywhere she could, then waiting for devops to push out the change to staging... anywhere.... gave up waiting
[03:10:38] baweaver: Yeah, you're in OpSec. If you cross to Ops you're worse
[03:10:52] braincrash: has joined #ruby
[03:11:14] sevenseacat: I knew a devops guy that refused to install the latest version of anything, anywhere. he 'wanted other people to find the bugs and security holes'
[03:11:16] baweaver: We just deploy a new box for everything. Problem solved
[03:11:29] baweaver: sevenseacat: I can appreciate that sentiment to a degree
[03:11:38] bin_005: has joined #ruby
[03:11:42] sevenseacat: so can I, but we were permanently a major version behind on everything
[03:11:46] tubulife-: has joined #ruby
[03:11:56] baweaver: It afforded me a lot of laughs at Mavericks upgraders a while back
[03:12:02] sevenseacat: it was really, really frustrating
[03:12:18] sevenseacat: and I do mean a *major* version
[03:12:21] baweaver: sevenseacat: then stay far far away from Java shops
[03:12:27] baweaver: They're normally 3-4 behind :D
[03:13:11] jacobdam_: has joined #ruby
[03:13:22] sevenseacat: on the other hand, I once knew a CEO that is probably already running el capitan on his work machine
[03:13:41] sevenseacat: I'd be very very surprised if he isn't
[03:13:50] ruby384: im doing the guide to installation and im on the Rails section
[03:14:02] baweaver: ruby384: #RubyOnRails
[03:14:12] ruby384: says to run this: gem install rails -v 4.2.2 --no-rdoc --no-ri
[03:14:22] ruby384: but i get this :Could not find a valid gem 'rails' (= 4.2.2) in any repository
[03:14:22] swgillespie: has joined #ruby
[03:14:34] sevenseacat: eh? 4.2.1 is the latest
[03:14:45] havenwood: ruby384: Just run: gem install rails
[03:14:48] sevenseacat: Radar: what silly did you do
[03:15:03] xcesariox: has joined #ruby
[03:15:13] Radar: sorry ruby384, install 4.2.1. I'll fix the guide.
[03:15:28] ruby384: no worries!
[03:15:31] havenwood: ruby384: `--no-document` for a quicker install if you don't want rdoc and ri docs
[03:15:52] CloCkWeRX: has joined #ruby
[03:16:05] Radar: <3 Jekyll
[03:16:10] exceion: has joined #ruby
[03:16:14] sevenseacat: jekyll is indeed the shit.
[03:16:28] Radar: I'd like to automate that deployment process but it's not too painful right now
[03:16:31] sevenseacat: it used to be such a pain to set up and get going, but now it's really good.
[03:16:49] sevenseacat: you mean, you don't just use github pages like the rest of us?
[03:16:49] Aeyrix: You're using Jekyll?
[03:17:03] Radar: sevenseacat: correct I don't use GitHub Pages like the rest of you.
[03:17:07] Aeyrix: You're not using the blog platform you wrote for your first rails app?
[03:17:13] Aeyrix: Come on m8
[03:17:28] Radar: sorry bro that thing was old school
[03:17:34] sevenseacat: I use jekyll for http://sevenseacat.net and it's hosted by github.
[03:17:39] Aeyrix: I use Tumblr lmao
[03:17:51] Radar: If I used RoR it would serve like 20 req/s
[03:17:58] Radar: and you know my blog is ultra popular because I am famous
[03:18:03] Radar: it needs to serve way more than that
[03:18:04] willharr_: has joined #ruby
[03:18:06] Radar: at least 40 req/s
[03:18:37] CloCkWeRX: has joined #ruby
[03:18:37] remendo: It smells something
[03:18:56] rbowlby: has joined #ruby
[03:19:04] Aeyrix: Philistine?
[03:19:40] commondream: has joined #ruby
[03:20:48] mdz_: has joined #ruby
[03:22:17] zotherstupidguy: has joined #ruby
[03:22:31] apofis: has joined #ruby
[03:22:32] Aeyrix: @Radar: I wanted to have a career as a programmer once
[03:22:46] Aeyrix: Then I realised I was jaded enough because I'm British, and didn't need to be any more so.
[03:22:48] remendo: Aeyrix: What you working as?
[03:22:54] zenspider: bah. jekyll.
[03:23:00] Aeyrix: I'm a security consultant.
[03:23:48] duderonomy: has joined #ruby
[03:24:34] Ioyrie: has joined #ruby
[03:24:38] Ioyrie: has left #ruby: ()
[03:25:00] michael_mbp: has joined #ruby
[03:25:28] someword: has joined #ruby
[03:25:53] Aeyrix: Job description: Break things and tell people how.
[03:25:55] Aeyrix: Good fun.
[03:26:17] adefa: has joined #ruby
[03:26:22] baweaver: I'm DevOps. Break things and don't tell people how
[03:26:45] astrobunny: has joined #ruby
[03:26:56] rickmasta: has joined #ruby
[03:27:06] Aeyrix: I heard other people broke your things baweaver. ;)
[03:27:23] baweaver: Ah that's right. Always blame the devs
[03:27:31] baweaver: they probably have a bug somewhere anyways you can blame
[03:28:08] Yiota: has joined #ruby
[03:28:47] Aeyrix: Or Chinese hackers are the current fbi flavour of the month
[03:29:33] baweaver: Korea is still a bit of a sore subject around certain sister companies
[03:29:37] ruby384: im still getting the issue
[03:29:59] ReK2: has joined #ruby
[03:30:05] havenwood: ruby384: Which one?
[03:30:37] havenwood: ruby384: What's the error?
[03:30:41] ruby384: so i followed the guide for installing ruby churby etc. and basically i get this : http://stackoverflow.com/questions/30726848/why-do-i-keep-getting-these-errors-after-running-gem-pristine-all
[03:30:44] baweaver_: has joined #ruby
[03:30:58] havenwood: ruby384: Why are you running?: gem pristine --all
[03:31:20] ruby384: i do that and then i get this :ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /Users/FarhanSyed/.rvm/rubies/ruby-2.2.1/lib/ruby/gems/2.2.0/gems/mini_portile-0.6.2/History.txt
[03:31:49] havenwood: ruby384: So you have rbenv, RVM and chruby installed?
[03:31:58] chrisgeorge: has joined #ruby
[03:32:09] chrisgeorge: I'm pretty new to Ruby, and I'm having trouble understanding what something like this does: https://gist.github.com/chrisgeo/6bb4ff596d94d021961c what I gather is when I do Bar::new or b.foo = new_db.dup.returns_some_foo is that it will run some_func
[03:32:11] baweaver: bet you it's a path issue as well
[03:32:55] stoogenmeyer__: has joined #ruby
[03:33:10] remendo: chrisgeorge: What is it that you don't understand?
[03:33:49] havenwood: ruby384: I haven't been following what you're doing but that sounds complicated. ;) RVM has an `rvm fix-permissions` command to fix user and group permissions.
[03:34:03] chrisgeorge: remendo: I guess it seems like magic that you're calling a function within an attribute AND that it's automatically run with you assign it a value?
[03:34:10] remendo: chmod 777 :d
[03:34:21] Radar: ruby384: rm -rf ~/.rvm ~/.rbenv
[03:34:25] Radar: problem fixed
[03:34:29] Radar: next question please
[03:35:14] Aeyrix: Why do so many people do that in this channel?
[03:35:15] mark[oz]: has joined #ruby
[03:35:32] Spami: has joined #ruby
[03:35:38] Radar: With time, you will do it too.
[03:35:45] Aeyrix: I doubt it.
[03:35:46] bkxd: has joined #ruby
[03:35:51] Radar: RVm and rbenv are getting in the way. Eliminating them willf ix the problem.
[03:36:09] Aeyrix: Yes, but "next question please" makes you sound like the idea of helping others bores the shit out of you.
[03:36:22] Aeyrix: Very discouraging for new users.
[03:36:22] havenwood: Or questions are exciting and we want more!
[03:36:26] remendo: chrisgeorge: By using = you are calling that method.
[03:36:28] Radar: What havenwood said
[03:36:32] Radar: I gorge on questions.
[03:36:42] Radar: If I found it boring, would you think that I would be here for 8+ years?
[03:36:47] chrisgeorge: Thanks remendo, I guess I need to get used to the translation in my brain :)
[03:36:55] Aeyrix: You know I mean it's the way you're wording it.
[03:37:11] Radar: Aeyrix: Are you attacking the tone of the statement rather than the statement itself?
[03:37:13] Radar: Logical fallacy much?
[03:37:14] Aeyrix: I've seen you use !next before as well.
[03:37:18] anekos: has joined #ruby
[03:37:20] remendo: chrisgeorge: Another example could be, foo + 1. What you actually do is calling the + method, so it's syntax sugar for foo.+(1).
[03:37:22] Radar: !next doesn't work in this channel
[03:37:22] helpa: Next question, please!
[03:37:24] Aeyrix: Which is your bot screaming NEXT!
[03:37:27] Aeyrix: Works in #ror.
[03:37:37] Yiota: has joined #ruby
[03:37:39] chrisgeorge: Ah, good example remendo, thank you
[03:37:51] Radar: Aeyrix: I don't see newbies complaining about it when I answer their questions correctly.
[03:38:11] Aeyrix: I can certainly see how you trivializing their problems by acting like a Coles cashier would be discouraging.
[03:38:12] Radar: You are the first person to complain about it in 3 years.
[03:38:13] Aeyrix: You can't?
[03:38:57] Aeyrix: Am I wrong?
[03:38:59] Radar: Here comes the fun police
[03:39:01] Radar: Whoop whoop
[03:39:05] Radar: ACTION puts hands out for the cuffs
[03:39:07] Radar: ACTION is hauled away
[03:39:16] willharr_: has joined #ruby
[03:39:17] havenwood: Aeyrix: The #ruby-community channel is the perfect place to discuss how to make this channels automated messages friendlier and more helpful. The #rubyonrails channel for what happens there.
[03:39:30] Aeyrix: havenwood: what are you even talking about
[03:40:33] Radar: Aeyrix: I do it to indicate that I'm ready to answer someone else's question.
[03:40:33] havenwood: Aeyrix: The #RubyOnRails channel bot is off-topic here. The best place to discuss it is #RubyOnRails.
[03:40:43] Aeyrix: havenwood: Please stop.
[03:40:54] Radar: (And yes, I was a Coles cashier in a previous life, but that's not why I do it)
[03:40:56] havenwood: Aeyrix: You asked what I was talking about. I was trying to answer.
[03:41:11] Aeyrix: havenwood: Okay, thank you for clarifying. My request stands. Please stop.
[03:41:13] sevenseacat: once a console operator, always a console operator.
[03:41:27] havenwood: Aeyrix: If it's about this channel, #ruby-community is the best place to discuss but please don't bring up #RubyOnRails stuff here.
[03:41:54] havenwood: Aeyrix: Please be nice.
[03:42:00] Aeyrix: Is havenwood a bot?
[03:42:00] sevenseacat: where's mah popcorn
[03:42:01] Aeyrix: I can't tell.
[03:42:05] remendo: sevenseacat: Did you finish the book? (Elixir)
[03:42:09] sevenseacat: remendo: not yet.
[03:42:19] Aeyrix: Radar: Okay, so you're saying you can only answer one question at a time?
[03:42:21] Aeyrix: It still seems rude.
[03:42:30] Radar: Aeyrix: I have been known to help 5 people at a time.
[03:42:34] remendo: sevenseacat: Does this seem accurate to you? ""But this power comes at a price. You???re going to have to unlearn a whole lot of what you know about programming. Many of your instincts will be wrong. And this will be frustrating, because you???re going to feel like a total n00b. "
[03:42:37] Aeyrix: Then when do you scream "next"?
[03:42:44] Aeyrix: After all five or after each one?
[03:42:46] sevenseacat: remendo: if you have questions about elixir, #elixir-lang is likely the best place
[03:42:51] Radar: Aeyrix: Are you willingly going to continue to waste my time or can I go back to work now?
[03:42:59] sevenseacat: but yes, that's true if you're new to functional programming.
[03:42:59] Radar: Aeyrix: This discussion is petty and useless and will not change my behaviour.
[03:43:02] Aeyrix: You have never indicated I was wrong.
[03:43:25] willharrison: any opinions on this? https://upcase.com/test-driven-rails
[03:43:32] baweaver: remendo: Ruby is a good stepping stone at least towards it making it less of a pain
[03:43:53] Scripore: has joined #ruby
[03:43:55] baweaver: willharrison: Thoughtbot puts up good stuff
[03:44:00] baweaver: (makers of Upcase)
[03:44:04] willharrison: baweaver k cool, thanks
[03:44:06] baweaver: So probably fairly good
[03:44:45] revath: has left #ruby: ()
[03:45:05] darkf: has joined #ruby
[03:47:11] iamninja: has joined #ruby
[03:47:16] pepperbreath: has joined #ruby
[03:48:22] Exuma: has joined #ruby
[03:50:50] zotherstupidguy: has joined #ruby
[03:52:14] freerobby: has joined #ruby
[03:52:19] mrsolo: has joined #ruby
[03:53:14] gix: has joined #ruby
[03:53:20] davedev24_: has joined #ruby
[03:53:26] balazs: has joined #ruby
[03:53:41] _seanc_: has joined #ruby
[03:54:51] towski_: has joined #ruby
[03:54:59] eggoez: has joined #ruby
[03:56:30] choke: has joined #ruby
[03:59:37] fgo: has joined #ruby
[04:00:24] Jandre: has joined #ruby
[04:01:42] RegulationD: has joined #ruby
[04:02:14] jacobdam_: has left #ruby: ()
[04:03:39] Scripore: has joined #ruby
[04:04:56] ellisTAA: has joined #ruby
[04:07:35] agent_white: has joined #ruby
[04:09:14] agent_white: has joined #ruby
[04:09:55] agent_white: has joined #ruby
[04:11:01] skade: has joined #ruby
[04:13:15] agent_white: has joined #ruby
[04:14:02] agent_white: has joined #ruby
[04:14:23] shock_one: has joined #ruby
[04:18:46] GGMethos: has joined #ruby
[04:18:52] ellisTAA: has joined #ruby
[04:19:48] ur5us: has joined #ruby
[04:20:32] eggoez: has joined #ruby
[04:20:45] Maletor: has joined #ruby
[04:22:50] Scroff: has joined #ruby
[04:23:16] Zen-Zen: has joined #ruby
[04:24:28] mdw: has joined #ruby
[04:27:32] astrobunny: has joined #ruby
[04:29:05] rhg331: has joined #ruby
[04:30:23] dgutierrez1287: has joined #ruby
[04:31:08] Randroid: has joined #ruby
[04:31:47] JamesBrink: has joined #ruby
[04:31:53] mello: has joined #ruby
[04:31:53] mello: has joined #ruby
[04:33:02] towski_: has joined #ruby
[04:34:29] Matrix9180: has joined #ruby
[04:35:11] revath: has joined #ruby
[04:39:59] jack_rabbit: has joined #ruby
[04:40:30] revath: has left #ruby: ()
[04:42:40] shevy: once a beaver always a beaver
[04:43:05] baweaver: hi to you too
[04:43:14] baweaver: ACTION has a watch on the word beaver now
[04:43:48] jwaldrip: has joined #ruby
[04:44:48] djbkd: has joined #ruby
[04:51:06] mdz_: has joined #ruby
[04:51:21] shevy: hmm what kind of package managers do we have written in ruby? we have ... rubygems ... and macosx homebrew. Anyone knows of another one?
[04:51:29] krz: has joined #ruby
[04:52:07] drizz: has joined #ruby
[04:53:26] bb010g: has joined #ruby
[04:57:52] jenksy: has joined #ruby
[04:58:02] nwhirschfeld: has joined #ruby
[04:58:28] aaeron: has joined #ruby
[04:59:26] aaeron_: has joined #ruby
[04:59:55] tubulife-: has joined #ruby
[05:00:02] Ox0dea: has joined #ruby
[05:00:10] bronson: has joined #ruby
[05:00:10] Ox0dea: shevy: CocoaPods.
[05:00:26] rikai: has joined #ruby
[05:01:01] shevy: funny name
[05:01:28] shevy: ah so also related to OSX or?
[05:01:29] shevy: "CocoaPods is the dependency manager for Swift and Objective-C Cocoa projects."
[05:01:41] shevy: curious how there are so many things in ruby for mac osx users
[05:01:49] Ox0dea: You must be new. ^_^
[05:02:35] shevy: dunno, the osx landscape is unknown to me
[05:02:54] shevy: I do look at what gets changed at https://github.com/Homebrew/homebrew/commits/master/Library/Formula though
[05:04:05] Ox0dea: How come?
[05:04:08] aaeron: has joined #ruby
[05:04:11] rht: has joined #ruby
[05:04:26] shevy: it's like a news feed :)
[05:04:30] Ox0dea: https://www.archlinux.org/packages/?sort=-last_update
[05:04:36] arooni-mobile: has joined #ruby
[05:05:02] shevy: awww they use internal versioning
[05:05:39] cubicme: has joined #ruby
[05:06:38] Ox0dea: Arch patches if and when appropriate, so that makes good sense.
[05:07:33] allomov: has joined #ruby
[05:08:06] jenksy: has joined #ruby
[05:11:11] sinkensabe: has joined #ruby
[05:11:24] nwhirschfeld: has joined #ruby
[05:13:03] casadei: has joined #ruby
[05:13:09] bosma: has joined #ruby
[05:13:41] mdw: has joined #ruby
[05:14:03] starfox_sf: is there any Gem that attempts to verify the existence of an email by actually connecting to the SMTP server and ask it if the email address is valid?
[05:14:25] starfox_sf: I'm looking for something more than just verifying that a domain exists
[05:14:28] mrsolo: has joined #ruby
[05:15:29] Ox0dea: starfox_sf: That seems to be something of a fool's errand.
[05:15:38] sevenseacat: sounds like a security hole if its possible
[05:15:45] yfeldblum: has joined #ruby
[05:16:29] hololeap: has joined #ruby
[05:16:35] astrobunny: has joined #ruby
[05:16:37] Ox0dea: It's certainly possible, but any modern SMTP server is likely to have checks in place to prevent such an approach being viable for very long.
[05:17:08] sevenseacat: this is usually why people do confirmation emails - to verify that emails are actually valid.
[05:17:37] wjimenez5271: has joined #ruby
[05:18:05] mcpierce: has joined #ruby
[05:18:08] lxsameer: has joined #ruby
[05:18:08] lxsameer: has joined #ruby
[05:18:12] sevenseacat: if you get a hard bounce, well, then its not. :)
[05:18:22] tvw: has joined #ruby
[05:18:29] shock_one: has joined #ruby
[05:18:31] hololeap: has left #ruby: ()
[05:18:40] starfox_sf: Ox0dea: I'm not entirely sure of that. There are a few sites that allow you to do similar things http://gb-emailvalidator.azurewebsites.net/
[05:18:54] starfox_sf: sevenseacat: I know that for some cases the only solution is to actually send an email
[05:18:57] Aeyrix: starfox_sf: Just because you can, doesn't at all mean you should.
[05:19:00] Aeyrix: It is a bad idea.
[05:19:18] yardenbar: has joined #ruby
[05:19:24] hololeap: has joined #ruby
[05:19:25] firehots: has joined #ruby
[05:19:38] Aeyrix: The intention behind the email-based challenge-response is to not only verify the domain's correct, but also that the user owns that inbox.
[05:19:43] starfox_sf: Aeyrix: well, I need to do it. no evil reason behind it.
[05:19:46] Aeyrix: It's a bunch of checks in one.
[05:19:55] Aeyrix: I'd venture your design is wrong, if you need to do that.
[05:20:56] shock_one: has joined #ruby
[05:20:57] krz: has joined #ruby
[05:21:03] yfeldblum: has joined #ruby
[05:22:48] aaeron: has joined #ruby
[05:25:00] shevy: he needs to do it
[05:25:17] Aeyrix: Did they state reasoning ever or?
[05:25:30] Aeyrix: Hm, nope.
[05:25:34] shevy: Do they have to?
[05:25:36] shevy: Hm, nope.
[05:25:58] Aeyrix: Not at all, but I'm not keen on assisting people making bad decisions.
[05:26:04] sevenseacat: thats okay, they dont have to, but we dont have to help people that are doing something wrong.
[05:26:08] Aeyrix: FWIW the "Hm, nope" was actually me checking.
[05:26:12] Aeyrix: It wasn't me being a twat.
[05:26:23] Aeyrix: I have a lot of windows to pay attention to.
[05:26:39] rikai: has joined #ruby
[05:26:43] firehots: has left #ruby: ()
[05:26:50] shevy: no prob Aeryix, I wouldn't know the answer to his question myself anyway so it's not as if I can contribute anything meaningful myself :)
[05:27:44] starfox_sf: this is for a university project, at some point we have a long list of names and we are trying to figure out their emails
[05:28:04] Aeyrix: starfox_sf: What course?
[05:28:06] starfox_sf: I think what they are doing here https://github.com/Gradberry/Email-Permutator/blob/master/smtp_validateEmail.class.php is precisely what I was looking for
[05:28:07] Aeyrix: Programming or security?
[05:28:30] shevy: ack... php got the answers
[05:28:38] starfox_sf: they basically send the RCPT TO:<email you want to test>
[05:28:43] Aeyrix: shevy: It's about ten lines of Ruby.
[05:28:52] Aeyrix: I could write a gem and package it in a half hour.
[05:28:53] shevy: At least that php file is extensively documented.
[05:28:54] starfox_sf: and then they send a RSET command
[05:29:11] sinkensabe: has joined #ruby
[05:29:19] Aeyrix: starfox_sf: That doesn't always work.
[05:29:26] shevy: Aeyrix yeah, I don't understand why php is that verbose
[05:29:40] shevy: $parts = explode('@', $email); $domain = array_pop($parts); $user= implode('@', $parts);
[05:29:46] starfox_sf: just need it to work often enough
[05:29:48] shevy: that's .join and .split right?
[05:29:56] starfox_sf: shevy: I found that syntax funny too
[05:29:57] shevy: ah, one .pop
[05:30:00] Aeyrix: implode =~ join
[05:30:07] Ox0dea: >> require 'net/smtp'; Net::SMTP.method_defined?(:rcptto)
[05:30:09] ruboto: Ox0dea # => true (https://eval.in/378697)
[05:30:15] Ox0dea: starfox_sf: Fancy that.
[05:30:35] aganov: has joined #ruby
[05:30:44] tagrudev: has joined #ruby
[05:31:13] Ox0dea: I feel like require should evaluate to the major "namespace" it introduces.
[05:31:31] meshugga: if i do a bundle install on one host and ship the resulting directory/app to another, is it necessary that it is executed in the same path or are the gems ok with living relative to each other?
[05:31:49] meshugga: or put differently, do absolute paths play a role in bundle installed gems?
[05:32:16] Oog: has joined #ruby
[05:32:26] finisherr: has joined #ruby
[05:34:45] lavros: has joined #ruby
[05:35:31] starfox_sf: Ox0dea: can you give me some resource to learn a bit more about $,$! and the like? I have seen people using those but I don't quite understand it yet
[05:36:11] Ox0dea: starfox_sf: You're asking for information about Ruby's "dollar variables"?
[05:36:21] Aeyrix: About $3.50.
[05:36:35] Ox0dea: $3.85 with rice.
[05:36:53] Aeyrix: I like rice.
[05:37:19] ferr1: has joined #ruby
[05:37:34] bkxd: has joined #ruby
[05:37:36] Aeyrix: Ox0dea: http://i.imgur.com/ueHJ2S7.png
[05:37:49] starfox_sf: I need to spend more time here. I feel like there is always some inside joke I have no clue about
[05:38:13] Aeyrix: starfox_sf: That's not even from here, it's garbage from reddit.com.
[05:38:35] starfox_sf: the hole is always deeper than I expect
[05:39:02] starfox_sf: *rabbit hole
[05:39:04] starfox_sf: that sounded weird
[05:39:39] chinmay_dd: has joined #ruby
[05:40:01] rbowlby: has joined #ruby
[05:40:02] Fooster: has joined #ruby
[05:40:37] duncannz: has joined #ruby
[05:41:53] pwnz0r: has joined #ruby
[05:42:20] bnagy: starfox_sf: http://www.zenspider.com/Languages/Ruby/QuickRef.html
[05:42:42] rbowlby_: has joined #ruby
[05:43:03] rikai: has joined #ruby
[05:43:20] starfox_sf: bnagy: thanks! that looks good.
[05:44:13] bnagy: btw your email testing idea is bad and you should feel bad
[05:44:41] Aeyrix: It's official because bnagy agrees with me.
[05:45:36] rbowlby__: has joined #ruby
[05:45:41] Ox0dea: >> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<$___+__*(_+@_)<<@__+_*$_<<$-_+__*$_+$__<<@__+__*@_<<@__+_*$_<<(''<<$-_+_*(_+@_))*__
[05:45:42] ruboto: Ox0dea # => "Uh-oh..." (https://eval.in/378698)
[05:45:54] Aeyrix: Ox0dea: please go.
[05:45:58] Ox0dea: has left #ruby: ("WeeChat 1.3-dev")
[05:46:33] bootstrappm: has joined #ruby
[05:47:03] bootstrappm: has left #ruby: ()
[05:47:57] starfox_sf: bnagy: I felt bad way before that idea. And I still need to do it
[05:48:22] aaeron: has left #ruby: ()
[05:48:32] khebbie: has joined #ruby
[05:48:38] Aeyrix: spotify:track:0cwEvwz7syhgHKXX1z4puc
[05:49:01] starfox_sf: Ox0dea: what in the heck...
[05:49:20] baweaver: http://blog.circleci.com/its-the-future/ - the pain
[05:49:45] apofis: has joined #ruby
[05:49:51] Aeyrix: >and Gluecon
[05:49:54] bmalum: has joined #ruby
[05:50:19] shevy: "I need a fleet now?"
[05:50:31] Aeyrix: No, it???s called rkt now. Totally different.
[05:50:34] baweaver: That's DevOps, I swear on it
[05:50:48] sevenseacat: they lost me about three lines in
[05:50:54] shevy: "Uh, OK. And he wrote that Katy Perry song?"
[05:51:20] lessless: has joined #ruby
[05:52:13] Aeyrix: "It???s San Francisco. Everyone???s into distributed systems and BDSM."
[05:52:25] Aeyrix: s/San Francisco/Ruby/
[05:52:53] baweaver: Aeyrix: Fly in around August and I can show you the Folsom St Fair
[05:53:11] Aeyrix: baweaver: If this was last year I'd have been around lel.
[05:53:16] Aeyrix: Well, I'd have been in ATL, but I could've come up.
[05:53:22] baweaver: protip: HUGE NSFW
[05:53:51] baweaver: Folsom St Fair is the huge BDSM parade here, walked in on it once by accident last year
[05:54:14] Aeyrix: >BDSM parade
[05:54:29] baweaver: More like San Francisco
[05:54:39] baweaver: Most of the time you just shrug and keep walking
[05:54:57] Aeyrix: CAVS IN SIX
[05:55:03] Aeyrix: I know I'm an hour late.
[05:55:29] Aeyrix: CLE 2 - 1 GSW
[05:55:38] baweaver: You think I watch sports
[05:55:41] baweaver: that's funny
[05:55:52] shevy: the beaver olympics
[05:56:04] baweaver: shevy: that's where we give a dam
[05:56:13] Aeyrix: I had something for that.
[05:56:36] sandstrom: has joined #ruby
[05:56:50] baweaver: I'm an amalogous blob of puns and programming knowledge.
[05:57:48] Axilla: has joined #ruby
[05:58:02] baweaver: Well, bed for me. 'night
[06:00:01] sandelius: has joined #ruby
[06:01:50] Guest34113: has joined #ruby
[06:01:58] roolo: has joined #ruby
[06:03:01] IanVorn: has joined #ruby
[06:03:37] platzhirsch: has joined #ruby
[06:04:54] Guest34113: Help needed on our new genuinevBulletin forum software (it is not nulled) please visit https://www.criosphinx.net for more information (we're able to install vBulletin 5 Connect
[06:06:28] aaeron: has joined #ruby
[06:07:52] fgo: has joined #ruby
[06:09:25] joneshf-laptop: has joined #ruby
[06:10:29] remendo: Aeyrix: https://www.youtube.com/watch?v=rRbY3TMUcgQ
[06:11:03] revath: has joined #ruby
[06:13:14] astrobunny: has joined #ruby
[06:14:58] dseitz: has joined #ruby
[06:15:47] Aeyrix: I don't really know what was being asked for by that vB guy.
[06:15:57] andikr: has joined #ruby
[06:17:35] kerunaru: has joined #ruby
[06:17:36] jmhmccr: has joined #ruby
[06:18:17] jgt2: has joined #ruby
[06:18:39] Aeyrix: ???The evaluation of reinforcement learning has analyzed RAID, and current trends suggest that the emulation of linked lists will soon emerge.???
[06:19:14] certainty: "I want to hear what the little girl has to say"... hilarious
[06:20:33] mello: has joined #ruby
[06:21:30] commondream: has joined #ruby
[06:22:16] allomov: has joined #ruby
[06:22:56] datanoise: has joined #ruby
[06:25:21] unshadow: has joined #ruby
[06:25:29] shevy: yaml files must have a trailing newline?
[06:26:20] certainty: the linter says so
[06:27:29] lsmola: has joined #ruby
[06:27:41] codecop_: has joined #ruby
[06:28:34] platzhirsch: has left #ruby: ()
[06:28:48] Iskarlar: has joined #ruby
[06:29:34] axilla_: has joined #ruby
[06:31:00] michael_mbp: has joined #ruby
[06:32:11] Pathfinder: has joined #ruby
[06:32:35] allomov: has joined #ruby
[06:33:19] DoubleMalt: has joined #ruby
[06:34:20] irctc241: has joined #ruby
[06:35:01] TinkerTyper: has joined #ruby
[06:35:43] shevy: yeah I was wondering
[06:35:44] Axilla: has joined #ruby
[06:35:47] shevy: simple yaml files very like:
[06:35:50] shevy: "--- true\n"
[06:36:31] apofis: has joined #ruby
[06:37:43] irctc241: so i followed the instructions on the guide on http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/ and i try to run "gem install rails -v 4.2.1" and once it installs i try to run "rails new app" and it says to install rails
[06:38:00] irctc241: it wants me to use sudo
[06:38:15] irctc241: but the guide says not to use sudo
[06:38:17] sevenseacat: what was the output when you ran `gem install rails -v 4.2.1` ?
[06:38:34] irctc241: it installs fully
[06:38:40] sevenseacat: thats not what I asked
[06:38:45] sevenseacat: can you please gist the output
[06:38:53] Zai00: has joined #ruby
[06:39:06] kwd: has joined #ruby
[06:39:37] irctc241: what do you mean output? it installs all the necessary things and at the end it says Done installing documentation for thread_safe, tzinfo, i18n, activesupport, rails-deprecated_sanitizer, mini_portile, nokogiri, rails-dom-testing, loofah, rails-html-sanitizer, erubis, builder, actionview, rack, rack-test, actionpack, sprockets, sprockets-rails, bundler, thor, railties, globalid, activejob, mime-types, mail, actionmailer, arel, activem
[06:39:54] thesheff17: has joined #ruby
[06:40:12] sevenseacat: I sense this is going to be a slow process.
[06:40:20] Aeyrix: irctc241:
[06:40:24] Aeyrix: Run this:
[06:40:24] sevenseacat: ACTION shrugs and goes back to work
[06:40:47] Aeyrix: Wait actually, don't, you've already got it installed. Never mind, it will be a slow process!
[06:41:10] Aeyrix: I notice 'rails' isn't in the list of things that had documentation installed.
[06:41:32] sevenseacat: i did ask to see the output, but nooooo.
[06:41:44] irctc241: all of the output?
[06:41:49] sevenseacat: yes, please gist it.
[06:41:53] Radar: irctc241: https://gist.github.com
[06:41:53] Aeyrix: http://gist.github.com/
[06:42:05] Aeyrix: Get outspeeded, Radar.
[06:42:42] Radar: irctc241: It would also be helpful to us to know what 'gem env' outputs for you
[06:42:56] irctc241: https://gist.github.com/anonymous/43822c709befea9d4303
[06:43:23] Aeyrix: Fetching: rails-4.2.1.gem (100%)
[06:43:23] Aeyrix: Successfully installed rails-4.2.1
[06:43:33] irctc241: https://gist.github.com/anonymous/999a222784e6e81d5e65
[06:44:06] MVPhelp: has joined #ruby
[06:44:16] sevenseacat: brew ruby, and rbenv and rvm still in path
[06:44:25] Radar: brew uninstall ruby
[06:44:30] Radar: rm -rf ~/.rbenv ~/.rvm
[06:44:30] stoogenmeyer__: has joined #ruby
[06:45:02] irctc241: wait u both said to do something..
[06:45:08] Radar: we said the same thing
[06:45:12] sevenseacat: I didnt say to do anything, I was pointing out problems
[06:45:14] bluOxigen: has joined #ruby
[06:45:19] Radar: you need to uninstall the 3 OTHER versions of Ruby that you have installed.
[06:45:32] MVPhelp: has joined #ruby
[06:45:50] chinmay_dd: has joined #ruby
[06:45:50] bosma: has joined #ruby
[06:46:08] mrsolo: has joined #ruby
[06:46:21] irctc241: how do i uninstall the 3 other versions?
[06:46:26] pcfreak30: has joined #ruby
[06:46:34] Radar: irctc241: brew uninstall ruby
[06:46:37] Radar: That's the first one.
[06:46:41] Radar: Let me know when you have run that command.
[06:46:50] phizzbuzz: has joined #ruby
[06:47:29] Radar: irctc241: The command is "brew uninstall ruby"
[06:47:41] pyon: has joined #ruby
[06:47:43] Pathfinder: has joined #ruby
[06:47:49] irctc241: okay ran it
[06:48:00] Radar: now run "rm -rf ~/.rbenv ~/.rvm"
[06:48:05] tubuliferous_: has joined #ruby
[06:48:26] Radar: Show us "gem env" output again please
[06:48:47] commondream: has joined #ruby
[06:50:11] astrobunny: has joined #ruby
[06:50:22] allenn: has joined #ruby
[06:51:10] troulouliou_dev: has joined #ruby
[06:51:35] RegulationD: has joined #ruby
[06:51:49] irctc241: https://gist.github.com/anonymous/1d8d27d3238d8ed223a7
[06:52:05] Radar: Can you run that one more time in a new terminal window?
[06:52:28] Radar: And show us the output from that too
[06:52:54] irctc241: https://gist.github.com/anonymous/84253978f9e4c21b990a
[06:53:08] pwnz0r: has joined #ruby
[06:53:24] Radar: Looks better. Shell path still seems weird, but that is just a $PATH thing which you can fix up later.
[06:53:30] Radar: Can you run chruby ruby 2.2.2?
[06:53:38] Radar: And then tell us what ruby -v shows?
[06:54:57] adefa: has joined #ruby
[06:55:05] irctc241: chruby ruby 2.2.2 comes back as -bash: chruby: command not found
[06:55:32] irctc241: and ruby -v comes back as : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
[06:55:42] Radar: Ok, so you didn't install chruby yet. Keep following the guide.
[06:56:16] fabrice31: has joined #ruby
[06:56:21] hubcaps: has joined #ruby
[06:57:03] astrobunny: has joined #ruby
[06:57:06] browsestoics: has joined #ruby
[06:58:51] agent_white: has joined #ruby
[07:00:34] agent_white: has joined #ruby
[07:01:59] shevy: do you guys tend to follow the "one class per .rb file" guideline?
[07:02:36] strixd: has joined #ruby
[07:02:38] certainty: on rare occasions i have nested classes in the same file
[07:03:15] timonv: has joined #ruby
[07:03:49] strixd: has joined #ruby
[07:04:06] irctc241: im confused on waht to do
[07:04:07] irctc241: https://gist.github.com/anonymous/d067127045b645ddb957
[07:04:36] Radar: irctc241: after running those commands does "chruby" work?
[07:04:44] Radar: If so, what does "ruby-install" do
[07:05:14] j4cknewt: has joined #ruby
[07:05:15] irctc241: churby doesnt work
[07:05:20] irctc241: but ruby-install does
[07:05:59] Radar: what does "chruby" say when you try it?
[07:06:01] irctc241: https://gist.github.com/anonymous/1b08b399745e13640c09
[07:06:08] irctc241: lemme check
[07:06:17] irctc241: -bash: chruby: command not found
[07:06:44] Radar: I don't know how that's possible. It looks like it's installing it successfully there.
[07:06:50] Radar: Opening a new tab still doesn't fix it?
[07:06:53] Radar: What is your $PATH?
[07:06:55] Radar: echo $PATH
[07:07:31] solars: has joined #ruby
[07:07:34] irctc241: https://gist.github.com/anonymous/66bc5772d20499e53f10
[07:08:23] Radar: Seems alright save for the .rvm things leftover in there
[07:08:27] Radar: I don't know what's going wrong here, sorry.
[07:08:40] dhjondoh: has joined #ruby
[07:08:53] sevenseacat: didnt actually load chruby in your .bashrc ?
[07:09:02] plashchynski: has joined #ruby
[07:09:02] Radar: oh right it needs to be loaded
[07:09:14] sevenseacat: it was probably part of your guide.
[07:09:19] irctc241: is there a way to uninstall completely everything? and start over
[07:09:21] Radar: "After this has been installed, we'll need to load chruby automatically, which we can do by adding these lines to ~/.bashrc:"
[07:09:32] fabrice31: has joined #ruby
[07:09:33] Radar: irctc241: You're missing that part of my guide ^
[07:09:39] Radar: Please keep reading from that part that I just quoted
[07:09:51] irctc241: kk ill read it
[07:10:15] ylla: has joined #ruby
[07:10:37] irctc241: chruby outputs back ruby 2.2.2
[07:10:48] Radar: Keep reading the guide and you should be alright now.
[07:10:55] pepperbreath: has left #ruby: ()
[07:11:22] irctc241: where shoiuld i put the file that needs to be created?
[07:11:40] Radar: Which file?
[07:11:58] irctc241: "Now we need to make that Ruby the default Ruby for our system, which we can do by creating a new file called ~/.ruby-version with this content:"
[07:12:10] shevy: ~/ means base home dir of your user account
[07:12:10] Radar: vim ~/.ruby-version
[07:12:28] shevy: so if you are on linux and your name is joe, it would be /home/joe/
[07:12:28] irctc241: so just whatever it is on when i open terminal?
[07:13:02] shevy: ~/ should work always irctc241 just as Radar's example showed
[07:13:13] shevy: you could use nano rather than vim :P
[07:14:58] Darkwater: nothing will go wrong I swear
[07:15:00] Polysics: has joined #ruby
[07:15:46] shevy: I guess osx uses /Users/name_here/
[07:15:51] irctc241: i saved it where on OSX the applications folder is, downloads etc
[07:16:13] irctc241: and when i run 'ruby -v' ruby 2.0.0 comes, not ruby 2.2.2
[07:16:13] shevy: lots of osx users use ruby
[07:16:48] Iskarlar: has joined #ruby
[07:16:48] ddv: somes i'm ashamed of my osx brothers
[07:16:51] ddv: sometimes*
[07:17:16] shevy: I just compile from source on linux; wget ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
[07:17:42] flughafen: sevenseacat: which video are you on now?
[07:18:05] Radar: irctc241: run "cat ~/.ruby-version" for me and tell me what that outputs
[07:18:25] irctc241: no such file or directory
[07:18:31] Radar: So you didn't create it there.
[07:18:41] Radar: irctc241: Do you know how to use Vim or Nano?/
[07:19:06] irctc241: found the issue. i stupidly added the "~/. " in the file name
[07:19:13] ayaz: has joined #ruby
[07:19:20] sevenseacat: well the . is part of the filename
[07:19:28] sevenseacat: and the ~/ is the path
[07:19:35] ta: has joined #ruby
[07:19:39] bosma: has joined #ruby
[07:20:29] shevy: so he would have ~/.~/.ruby-version
[07:20:30] irctc241: doesnt let me save it with a dot. says its reserved for system
[07:20:34] chussenot: has joined #ruby
[07:20:46] Radar: irctc241: Override it.
[07:20:57] irctc241: how can i do that
[07:21:01] ddv: irctc241: why are you not installing a ruby version manager?
[07:21:03] shevy: ddv you should be ashamed indeed ^^^^
[07:21:08] sevenseacat: ddv: they did
[07:21:11] revath: has left #ruby: ()
[07:21:21] sevenseacat: now theyre trying to configure it but instructions are hard.
[07:21:30] Radar: ddv: He is and we're trying to help.
[07:21:40] irctc241: newbie here sorry guys
[07:22:17] shevy: you will manage!
[07:22:33] plashchynski: has joined #ruby
[07:22:34] shevy: listen to Radar
[07:22:42] irctc241: okay so how can i override it so i can put a dot in front of the file
[07:22:49] Radar: irctc241: vim ~/.ruby-version
[07:22:52] fgo: has joined #ruby
[07:24:16] ddv: you just type the dot
[07:24:22] CustosLimen: has joined #ruby
[07:24:39] hahuang65: has joined #ruby
[07:24:42] shevy: irctc241 did you try what Radar showed you in your terminal yet
[07:25:05] irctc241: yeah i typed the file in terminal but how do i save it
[07:25:15] irctc241: its just stuck on the insert
[07:25:38] Radar: escape, then :wq
[07:25:52] ddv: irctc241: you can use any text editor tho
[07:26:37] shevy: irctc241 if vim confuses you, use "nano"
[07:27:12] dumdedum: has joined #ruby
[07:27:16] Hanmac: has joined #ruby
[07:28:22] irctc241: yeah nano alot easier
[07:29:46] vdamewood: has joined #ruby
[07:30:07] irctc241: when i save it, doesnt show in the dir
[07:30:35] shevy: leading . means hidden
[07:30:42] shevy: you can show hidden files and dirs too
[07:30:58] irctc241: so i ran cat ~/.ruby-version and i get back ruby-2.2.2
[07:31:08] flughafen: holy crap, it looks like for the 2nd day in a row the package isn't being delivered! grrrrrrr
[07:31:12] gagrio: has joined #ruby
[07:31:20] shevy: irctc241, in your home dir try: "ls -l --almost-all", I hope this works on osx
[07:31:37] shevy: flughafen still trouble in Berlin?
[07:31:45] certainty: double trouble
[07:31:54] shevy: airport not build, packages not delivered... time to move to other parts of the world man
[07:31:59] irctc241: says illegal option
[07:32:18] flughafen: shevy's jokes are an illegal option
[07:32:23] shevy: works on linux!
[07:32:25] certainty: -la will do
[07:32:49] flughafen: ls -lalallala
[07:34:02] DEA7TH: has joined #ruby
[07:34:13] livathinos: has joined #ruby
[07:34:14] irctc241: so i ran ruby -v now and it says ruby 2.2.2
[07:34:30] sevenseacat: yay, ruby is installed.
[07:35:03] shevy: you are such a motivational cat
[07:35:34] GnuYawk: has joined #ruby
[07:36:07] irctc241: ill just follow the rest of the guide now
[07:37:11] Hounddog: has joined #ruby
[07:37:35] sandstrom: has joined #ruby
[07:38:30] ki0: has joined #ruby
[07:38:30] pardusf: has joined #ruby
[07:40:09] GnuYawk: has joined #ruby
[07:40:09] GnuYawk: has joined #ruby
[07:40:26] Soda: has joined #ruby
[07:41:39] ndrei: has joined #ruby
[07:41:39] shevy: is it common to define to_s in any given class?
[07:42:07] aapole: has joined #ruby
[07:43:40] monsieurp: has joined #ruby
[07:44:36] jenrzzz: has joined #ruby
[07:44:40] irctc241: thanks everyone for helping me out.
[07:46:06] Xeago: has joined #ruby
[07:46:45] msgodf: has joined #ruby
[07:47:21] anisha: has joined #ruby
[07:49:17] astrobunny: has joined #ruby
[07:50:20] bronson: has joined #ruby
[07:50:35] MVPhelp: has joined #ruby
[07:50:41] Yiota: has joined #ruby
[07:50:49] davidhq: has joined #ruby
[07:51:01] irctc239: has joined #ruby
[07:51:26] commondream: has joined #ruby
[07:52:11] j4cknewt: has joined #ruby
[07:52:17] irctc239: so i finished the guide. everything seems to run fine. but when i quit terminal. Rails commands dont work, and now it says ruby is version 2.0.0
[07:53:04] baweaver: has joined #ruby
[07:54:47] bog: has joined #ruby
[07:55:10] bog: could someone help me to understand a ruby concept ?
[07:55:16] c0m0: has joined #ruby
[07:55:16] bog: What is a tLabel ?
[07:55:38] cajone: has left #ruby: ()
[07:55:40] bog: I don't really understand what variables like var: means
[07:55:59] JamesBrink: has joined #ruby
[07:56:12] meph: has joined #ruby
[07:57:14] Scroff: has joined #ruby
[07:58:05] bog: I tried to find some information on the web but I have not found any tutorial about that
[07:58:20] bog: Is there a link with hashtable ?
[07:58:33] apeiros: bog: can you provide a bit more code?
[07:58:54] apeiros: tLabel itself doesn't tell me anything. I guess that's how the tokenizer calls it???
[07:59:08] apeiros: moin ljarvis
[07:59:53] bog: apeiros, what is the "tokenizer" ?
[08:00:08] ljarvis: bog: what ruby version are you using? `ruby --version`
[08:00:24] IanVorn: has joined #ruby
[08:00:25] apeiros: bog: something irrelevant to your question. it's part of how code is usually evaluated. the first step is tokenizing the blob of text.
[08:00:36] bog: ljarvis, 2.1.6
[08:00:49] ljarvis: bog: ok, please paste your code on gist.github.com
[08:01:13] ljarvis: tLabel is used for 1.9 style hash keys in the lexer (I think)
[08:01:30] IanVorn: has joined #ruby
[08:01:33] ljarvis: i should really start just calling them hashes and not 1.9 style hases
[08:01:48] apeiros: ljarvis: that's what I'd assume too. but I don't want to guess, hence waiting for actual code by bog.
[08:01:49] ljarvis: ACTION reminises
[08:01:55] ljarvis: yep good call
[08:02:04] ljarvis: reminisces*
[08:02:08] ljarvis: today is not a good spelling day
[08:02:24] bog: I want to learn ruby on rails. Before that, I try to learn ruby
[08:02:38] ljarvis: bog: again, if you want help we're going to need to see code
[08:02:44] IanVorn: has joined #ruby
[08:02:49] glcx: has joined #ruby
[08:03:14] bog: ljarvis, I don't understand this line of code : @article = Article.new(params.require(:article).permit(:title, :text))
[08:03:22] chthon: has joined #ruby
[08:03:30] bog: because I don't know what is :var
[08:03:36] apeiros: bog: it's not var
[08:03:38] apeiros: it's a value
[08:03:50] apeiros: like "var" is a literal string, :var is a literal symbol
[08:03:54] IanVorn: has joined #ruby
[08:03:59] bog: is that a kind of pointer ?
[08:04:08] apeiros: it's kind of a number combined with a string
[08:04:26] apeiros: for the programmer, the string aspect of it is the important part, for the machine it's the number which is important
[08:05:17] bog: humm.. I don't really understand what is a symbol
[08:05:24] ljarvis: bog: do you know any other programming languages?
[08:05:26] apeiros: at this point, you can just think about it as a string (just with a different class than String). in most cases that's how it behaves.
[08:05:38] bog: ljarvis, I know python, java, c and c++
[08:06:01] CloCkWeRX1: has joined #ruby
[08:06:01] psye: has joined #ruby
[08:06:04] flughafen: ah, it makes sense now, i guess dhl along with deutschepost is on strike
[08:06:10] chthon: has joined #ruby
[08:06:25] Darkwater: hopefully not in nl
[08:06:32] apeiros: flughafen: germany seems to be in strike mood??? first DB, now Post??? what's next? :)
[08:06:35] bog: when I do var = 42, the value of var is 42, and the value of :var is "var" ?
[08:06:35] Darkwater: they need to pick up my phone for repairs
[08:06:45] apeiros: bog: again, it's not :var
[08:06:46] TvL: has joined #ruby
[08:06:51] apeiros: var = :value
[08:06:54] apeiros: var = "value"
[08:07:03] apeiros: and yes, with `var = :value`, the value of var is :value
[08:07:08] flughafen: apeiros: ruby developers!
[08:07:14] apeiros: just like with `var = "value"`, the value of var is "value"
[08:07:25] Darkwater: :value.to_s == 'value'
[08:07:27] ndrei: has joined #ruby
[08:07:34] apeiros: but repeat with me: symbols are not variables.
[08:07:41] IanVorn: has joined #ruby
[08:07:42] Darkwater: 'value'.to_sym == :value
[08:08:02] bog: ohh ? Symbols are not variables ?
[08:08:05] apeiros: you can't assign a value to a symbol. i.e., `:symbol = "value"` is NOT valid. because symbols are not variables, they're values.
[08:08:14] bog: Symbol are object ?
[08:08:24] apeiros: yes. as I said from the start :-p
[08:08:27] bog: *A symbol is an object ?
[08:08:38] Zai00: has joined #ruby
[08:08:52] bog: And what is the semantic of this object ?
[08:08:57] bruno-: has joined #ruby
[08:09:02] Darkwater: 5, 'five', [ 5, 5 ], :five, true, nil
[08:09:06] Darkwater: those are all valies
[08:09:16] apeiros: bog: again, you can treat them like strings at this point
[08:09:21] mello: has joined #ruby
[08:09:21] mello: has joined #ruby
[08:09:30] irctc239: why is it when i quit terminal, and reopen it my ruby version is back to 2.0.0 but when before it said 2.2.2
[08:09:38] apeiros: bog: the main difference is that a symbol with the same value will always be an identical object.
[08:09:38] irctc239: i followed Radars guide
[08:09:47] Darkwater: irctc239: did you change your PATH?
[08:09:47] apeiros: >> [:foo.object_id, :foo.object_id]
[08:09:48] ruboto: apeiros # => [417458, 417458] (https://eval.in/378826)
[08:09:54] apeiros: bog: ^ same object
[08:10:00] irctc239: i dont think so? what should it be
[08:10:03] apeiros: >> ["foo".object_id, "foo".object_id]
[08:10:04] ruboto: apeiros # => [552387320, 552387600] (https://eval.in/378828)
[08:10:09] krz: has joined #ruby
[08:10:13] apeiros: bog: ^ while strings allocate new objects
[08:10:21] wald0: has joined #ruby
[08:10:32] Darkwater: irctc239: did anything else that may change the environment?
[08:10:39] bog: apeiros, in `var = 42`, what :var means ? Does :var allow us to identify the variable var ?
[08:10:42] IanVorn: has joined #ruby
[08:10:43] Darkwater: iow, what have you done to get to 2.2.2?
[08:10:48] shevy: no bog, :var is not var
[08:10:51] apeiros: bog: in `var = 42`, there IS NO :var
[08:11:18] apeiros: you're still for some reason stuck believing that symbols have something to do with variables. they do not.
[08:11:22] Darkwater: just like var = 42 doesn't do anything to 'var'
[08:11:27] shevy: his brain needs a bit longer :)
[08:11:41] bog: I didn't said that var and :var was equivalent
[08:11:45] krisquigley: has joined #ruby
[08:11:46] kadoppe: has joined #ruby
[08:11:50] IanVorn: has joined #ruby
[08:11:56] shevy: but you wrote :var
[08:12:03] shevy: there was no :var
[08:12:05] Darkwater: >> puts :"hello world"
[08:12:06] ruboto: Darkwater # => hello world ...check link for more (https://eval.in/378832)
[08:12:16] Darkwater: >> puts :"hello"
[08:12:16] ruboto: Darkwater # => hello ...check link for more (https://eval.in/378833)
[08:12:21] Darkwater: >> puts :hello
[08:12:22] ruboto: Darkwater # => hello ...check link for more (https://eval.in/378834)
[08:12:44] irctc239: when i run "source /usr/local/share/chruby/chruby.sh & source /usr/local/share/chruby/auto.sh & . ~/.bashrc" everything works
[08:12:51] shevy: the output of ruboto confuses me more than eval-in did
[08:13:13] bog: What does `var = :var2` ?
[08:13:15] ljarvis: irctc239: you need to add that to your .bashrc or .zshrc, then (so it's executed every time your shell starts)
[08:13:27] sevenseacat: irctc239: adding those lines to your .bashrc was part of the directions.
[08:13:31] apeiros: bog: what do you think it does?
[08:13:39] shevy: bog you assign the symbol :var2 to a variable called var
[08:13:52] bog: For me var is "pointing" to var2 or something like that
[08:14:01] chussenot: has joined #ruby
[08:14:05] shevy: it's just normal assignment; var is now a symbol
[08:14:11] shevy: >> var = :foobar; var.class
[08:14:12] ruboto: shevy # => Symbol (https://eval.in/378836)
[08:14:20] apeiros: > bog: For me var is "pointing" to var2 or something like that
[08:14:28] apeiros: bog: but there is no `var2` in your code. there's `:var2`
[08:14:35] apeiros: bog: var2 IS NOT the same as :var2
[08:14:41] irctc239: where does it say
[08:14:42] shevy: his brain drops the : automatically :)
[08:14:43] apeiros: they are fundamentally different
[08:14:48] ki0: has joined #ruby
[08:14:56] apeiros: bog: just like `var` and `"var"` are fundamentally different.
[08:15:02] bog: :var2 is not an object that is designating the variable var2 ?
[08:15:10] shevy: of course not
[08:15:14] sevenseacat: irctc239: "After this has been installed, we'll need to load chruby automatically, which we can do by adding these lines to ~/.bashrc:"
[08:15:18] apeiros: and I think we said that often enough now.
[08:15:20] shevy: remember, you can give your variables any name bog
[08:15:22] ljarvis: loud words start
[08:15:29] shevy: the ruby parser does not care about the names
[08:15:43] sevenseacat: irctc239: please read the guide barefully.
[08:15:49] mikecmpbll: has joined #ruby
[08:15:50] shevy: symbols will always have the same object_id bog
[08:15:51] sevenseacat: and don't skip parts
[08:15:57] ljarvis: barefully :D
[08:16:02] ljarvis: FULLY BARE
[08:16:13] shevy: var = 'var' <--- always creates a new String object, with another object_id
[08:16:46] irctc239: i try to "~/.bashrc" but it says permission denied
[08:16:55] serivich: has joined #ruby
[08:16:59] bog: apeiros, So I didn't understand the semantic of the :
[08:17:15] apeiros: bog: do you understand the semantic of ""?
[08:17:23] sevenseacat: irctc239: what? it's a file. open it. edit it.
[08:17:35] bog: apeiros, Yes, the content of "" is a string
[08:17:39] fella5s: has joined #ruby
[08:17:42] apeiros: bog: good. same thing with :
[08:17:44] irctc239: how can i open it, isnt it hidden?
[08:17:47] apeiros: content after : is a symbol
[08:17:54] sevenseacat: use your terminal, just like you did with .ruby-version
[08:17:58] bog: apeiros, So why : exists if we have "" ?
[08:17:59] shevy: irctc239 you can open hidden files too
[08:18:07] apeiros: bog: because they have different characteristics
[08:18:33] apeiros: bog: regarding performance and memory. :foo only exists once. "foo" can exist as many times as it wants.
[08:18:33] bog: and what are those characteristics ?
[08:18:45] shevy: bog ruby uses symbols because they are always the same and thus will be faster to check
[08:18:58] shevy: >> :foo.object_id
[08:18:59] ruboto: shevy # => 417458 (https://eval.in/378839)
[08:19:15] shevy: >> "foo".object_id.to_s+' versus '+"foo".object_id.to_s
[08:19:16] ruboto: shevy # => "549800380 versus 549803950" (https://eval.in/378840)
[08:19:57] granthatcher: has joined #ruby
[08:20:16] bog: So, there isn't semantic links between var and :var ?
[08:20:23] apeiros: bog: really?
[08:20:29] sevenseacat: for about the hundredth time...
[08:20:37] apeiros: bog: read the backlog. we've told you five times at least already.
[08:21:31] bog: Sorry but I am a completly begginer with ruby, and english is not my mother tongue. I really thought that there were a link between var and :var
[08:21:38] chinmay_dd: has joined #ruby
[08:21:47] bog: thank you for your patience ^^
[08:21:52] irctc239: so i added the the source lines.
[08:23:23] ferr: has joined #ruby
[08:23:34] dhjondoh: has joined #ruby
[08:24:53] DEA7TH: has joined #ruby
[08:24:53] irctc239: i addded it to the file and still now working
[08:25:30] unshadow: has joined #ruby
[08:25:33] olistik: has joined #ruby
[08:26:14] speakingcode: has joined #ruby
[08:27:48] bog: So apeiros, :var is a symbole, ie a sort of string which is a kind of unique id ?
[08:27:50] axl_: has joined #ruby
[08:28:24] apeiros: symbol. not symbole.
[08:28:39] dede: has joined #ruby
[08:28:47] apeiros: it is a number. which has a string "label" attached to it. the string label is what you use in code when you write :foo.
[08:29:20] apeiros: and the label is what you, as a programmer, are concerned about.
[08:29:29] apeiros: you use it to identify things.
[08:30:04] dieAntwoordK: has joined #ruby
[08:30:24] Xeago: has joined #ruby
[08:30:32] camonz: has joined #ruby
[08:30:41] bog: apeiros, I see !
[08:31:37] Palmer11: has joined #ruby
[08:31:56] Sp4rKy: Hi, I'm trying to use net-dns2
[08:32:14] bog: in `render plain: params[:article].inspect`, does `plain:` is a ruby object ? (Or does it below to rails ?)
[08:32:32] Sp4rKy: but : require 'net-dns2' ; but I get NameError: uninitialized constant Net::Dns
[08:33:05] apeiros: bog: `plain: "value"` is an alternative way to write `:plain => "value"`
[08:33:13] apeiros: i.e., plain: is the symbol :plain
[08:33:17] Xeago_: has joined #ruby
[08:33:40] llafodog_sh: has joined #ruby
[08:34:07] lsmola: has joined #ruby
[08:34:42] ratazzi: has joined #ruby
[08:34:56] marr: has joined #ruby
[08:35:11] bog: apeiros, so plain: is also a symbol ?
[08:35:36] Sp4rKy: rhaa ... this is Net::DNS , not Dns
[08:35:59] apeiros: bog: isn't that what I just said?
[08:36:06] apeiros: yes. it is.
[08:36:17] tubuliferous_: has joined #ruby
[08:37:40] bog: apeiros, if plain: "value"` is an alternative way to write `:plain => "value"`{, and if plain: is a symbol, so `:plain => "value"` is also a symbol since it is juste a rewriting, no ?
[08:37:54] CloCkWeRX: has joined #ruby
[08:38:18] apeiros: bog: I don't follow. :plain is a symbol, yes. we've established that already.
[08:38:23] speakingcode: has joined #ruby
[08:38:29] ljarvis: hmm, have we though?
[08:38:49] lkba: has joined #ruby
[08:38:56] banister: has joined #ruby
[08:39:09] bog: apeiros, the expression `{:plain => "value"} ` is a symbol ?
[08:39:11] joonty: has joined #ruby
[08:39:40] Xeago: has joined #ruby
[08:40:15] RegulationD: has joined #ruby
[08:41:09] shevy: he does not want to accept it!
[08:41:28] shevy: bog leading : means symbol
[08:41:33] shevy: in your hash example, the key you use is a symbol
[08:41:43] shevy: it is associated with a string object
[08:41:43] serivichi: has joined #ruby
[08:42:05] shevy: you can also use the new syntax by the way
[08:42:10] shevy: { plain: "value" }
[08:42:20] bog: apeiros, If want to be sure of what I understand !
[08:42:23] shevy: >> { plain: "value" }
[08:42:24] ruboto: shevy # => {:plain=>"value"} (https://eval.in/378851)
[08:42:33] shevy: curiously enough, ruby translates this into the main syntax
[08:42:37] timonv: has joined #ruby
[08:42:46] attlasbot: has joined #ruby
[08:42:57] starfox_sf: has joined #ruby
[08:43:01] shevy: the first is shorter to type, which is why it is cool
[08:43:28] Darkwater: and looks like json, yay!
[08:43:41] Darkwater: one of the good things javascript brought us
[08:44:32] shevy: TIOBE hates ruby :( http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
[08:44:45] dmolina: has joined #ruby
[08:44:56] ki0: has joined #ruby
[08:45:52] bog: Ok, thank you shevy, Darkwater and apeiros !
[08:46:03] shevy: you now have understood symbols!
[08:46:10] shevy: keep in mind the most important thing about them - they are boring
[08:46:14] Darkwater: shevy: are you sure
[08:46:24] shevy: Darkwater ruby drops :(
[08:46:26] agent_white: has joined #ruby
[08:46:27] Darkwater: bog: foo = :bar
[08:46:29] platzhirsch: has joined #ruby
[08:46:29] shevy: though not on other charts
[08:46:35] Darkwater: what will `puts foo` tell us
[08:46:39] shevy: oh, a quiz for bog
[08:46:47] Darkwater: this is your final exam
[08:46:57] agent_white: It puts the foo on the skin...
[08:47:01] shevy: is he allowed to google?
[08:47:13] Darkwater: for all I care about he can execute it
[08:47:28] edwinvdgraaf: has joined #ruby
[08:47:35] shevy: I just realized... Swift language does not require terminating ;
[08:47:40] shevy: unlike Objective C I think
[08:47:41] bog: Darkwater, I don't know : maybe ruby would just return :bar
[08:47:56] bog: It would assign to foo the symbols :bar
[08:48:16] Darkwater: ACTION moves hand near head-.. and quickly back towards keyboard
[08:48:30] apeiros: > bog: apeiros, the expression `{:plain => "value"} ` is a symbol ?
[08:48:39] apeiros: bog: no. the whole expression is not a symbol.
[08:48:41] bog: apeiros, it isn't
[08:48:47] apeiros: bog: the `:plain` in it is a symbol
[08:48:49] Rubie: has joined #ruby
[08:48:50] bog: it is a hash or something like that
[08:48:52] apeiros: the whole expression is a hash.
[08:48:57] shevy: bog is now an expert apeiros
[08:49:09] shevy: he understands Hashes; he understands Symbols
[08:49:12] Darkwater: now, one more thing: (afaik) you can put anything you like in a symbol
[08:49:17] Darkwater: :"this is still a symbol"
[08:49:23] flughafen: but does he understand hash symbols?
[08:49:27] shevy: oh oh oh bog did you see this, he has a symbol with ' ' inside
[08:49:44] khebbie: has joined #ruby
[08:49:47] shevy: flughafen take off from Berlin first before you look at other people's problems!
[08:49:54] apeiros: Darkwater: only valid utf-8
[08:49:55] Darkwater: :"asdf!@#$'\"\\"
[08:50:00] Darkwater: >> :"asdf!@#$'\"\\"
[08:50:01] ruboto: Darkwater # => :"asdf!@\"\\" (https://eval.in/378854)
[08:50:13] shevy: oh use the snowman unicode character as symbol
[08:50:17] apeiros: lets see how eval.in crashes???
[08:50:24] apeiros: >> :"\xc0"
[08:50:25] ruboto: apeiros # => /tmp/execpad-6471ce3e64fa/source-6471ce3e64fa: invalid encoding symbol (EncodingError) (https://eval.in/378855)
[08:50:37] bin_005: has joined #ruby
[08:50:37] ruboto: Darkwater # => :??? (https://eval.in/378856)
[08:50:40] shevy: that works here for me
[08:51:03] ddv: is that dog poo?
[08:51:04] Darkwater: weather = :???
[08:51:13] shevy: it looks like some strange A with a tilde
[08:51:21] ljarvis: it's a snowman..
[08:51:38] bog: I think symbols can be used a little bit like enum in c++ or java
[08:52:06] apeiros: bog: to an extent. there's no test for inclusion in the enum.
[08:52:19] AnoHito: has joined #ruby
[08:53:36] bog: apeiros, what is a test for inclusion ?
[08:53:49] plashchynski: has joined #ruby
[08:53:58] apeiros: C will complain if you try to use a value which is not part of the enum
[08:54:17] hefest: has joined #ruby
[08:54:30] irctc621: has joined #ruby
[08:54:32] hefest: Base64.decode64(base64string) returning different values with ruby 1.9.3 and 2.0.0
[08:54:34] irctc621: so when i add "source /usr/local/share/chruby/chruby.sh & source /usr/local/share/chruby/auto.sh" to ~/.bashrc it does work when i load up terminal
[08:54:44] bog: apeiros, I understand now, ty !
[08:54:52] ljarvis: irctc621: great
[08:54:54] apeiros: hefest: example?
[08:55:08] Xeago: has joined #ruby
[08:55:48] irctc621: how can i do it?
[08:55:54] ljarvis: irctc621: do what?
[08:55:58] ljarvis: you just said it does work
[08:56:03] platzhirsch: has left #ruby: ()
[08:56:08] irctc621: i think you misread what i wrote
[08:56:18] ljarvis: I don't think I did
[08:56:35] ljarvis: I think you misread what you wrote
[08:56:50] irctc621: but its not working
[08:57:03] hefest: apeiros: try Base64.decode64('NDMxMzc').strip()
[08:57:17] hefest: apeiros: it's returning 3 digits number on 1.9.3 and 5 on 2.0.0
[08:57:18] ljarvis: irctc621: try and add the lines to ~/.bash_profile and see if that works
[08:59:02] hmnhf: has joined #ruby
[08:59:45] hefest: apeiros: sorry, it's 1.9.3 and 2.0.0 vs 2.2.0 , on first two it's returning 3 digits number and on 2.2.0 it's returning 5
[09:00:48] lavros: has joined #ruby
[09:00:59] MasterPiece: has joined #ruby
[09:02:16] apeiros: 19>> require 'base64'; Base64.decode64('NDMxMzc')
[09:02:17] ruboto: apeiros # => "431" (https://eval.in/378886)
[09:02:20] apeiros: >> require 'base64'; Base64.decode64('NDMxMzc')
[09:02:21] ruboto: apeiros # => "43137" (https://eval.in/378888)
[09:02:47] apeiros: >> require 'base64'; Base64.encode64("43137")
[09:02:48] ruboto: apeiros # => "NDMxMzc=\n" (https://eval.in/378889)
[09:02:55] apeiros: hefest: your input is invalid
[09:03:09] apeiros: the trailing = is afaik not optional.
[09:03:38] apeiros: (the newline is)
[09:05:31] terlar: has joined #ruby
[09:06:02] hefest: apeiros: hm damn, is trailing = appearing in every base64 encoded string?
[09:06:08] apeiros: hefest: no
[09:06:22] adaedra: it's for padding
[09:06:33] adaedra: there can be (0..2) =
[09:07:10] hefest: the thing is i'm decoding base64 from the url, and that can't be changed because im breaking backward compatibility
[09:07:23] hefest: what would be the way to detect if = is missing and how many of them?
[09:07:36] apeiros: hefest: base64 encoded data is always 4*n bytes long
[09:08:02] apeiros: so if your data's size does not divide by 4, you're lacking =. not sure whether you can simply pad with ='s, though.
[09:08:13] hefest: apeiros: oh ok, ruby 2.2.0 is obviously handling that. i might just upgrade to 2.2.0
[09:08:51] apeiros: 19>> require 'base64'; 'NDMxMzc'.unpack("m").first
[09:08:52] ruboto: apeiros # => "431" (https://eval.in/378892)
[09:09:21] apeiros: mhm, unpack fails already. backporting that would be problematic
[09:10:17] BTRE: has joined #ruby
[09:10:20] apeiros: interesting, urlsafe_decode64 even complains about it being invalid base64
[09:10:59] hakunin: has joined #ruby
[09:11:01] apeiros: 19>> require 'base64'; 'NDMxMzc'.unpack("m0").first
[09:11:02] ruboto: apeiros # => invalid base64 (ArgumentError) ...check link for more (https://eval.in/378893)
[09:11:12] Stan: has joined #ruby
[09:11:21] apeiros: so unpack("m") is fault tolerant, and recovery changed from 1.9 to 2.2
[09:11:32] apeiros: m0 is strict and will raise
[09:11:41] apeiros: yeah, I think upgrading to 2.2 is your best bet.
[09:11:48] alex88: has joined #ruby
[09:13:00] irctc697: has joined #ruby
[09:13:14] pikos: has joined #ruby
[09:13:54] irctc697: i follwed radars guide for chruby and ruby rails, but when i do a rails command i get "-bash: /usr/local/bin/rails: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory"
[09:14:32] maloik: is this the very first time using chruby, right after installing? if so, try restarting terminal
[09:15:02] irctc697: ive tried that
[09:15:28] jhass: mh, link to the guide?
[09:15:43] irctc697: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[09:15:44] platzhirsch: has joined #ruby
[09:15:59] startupality: has joined #ruby
[09:16:39] jhass: ruby -v prints 2.2.2?
[09:16:46] llafodog_sh: has left #ruby: ("Leaving")
[09:17:17] jhass: you did gem install rails not sudo gem install rails ?
[09:18:40] irctc697: but maybe in the past i did sudo
[09:19:23] irctc697: how can i fix it haha
[09:19:32] jhass: type -a rails prints what?
[09:20:17] irctc697: https://gist.github.com/anonymous/ff0fb93ae8556839a348
[09:20:53] jhass: weird, why does it order /usr/local first in your path
[09:21:06] jhass: anyway, I'd say try sudo gem uninstall rails
[09:22:08] irctc697: when i do that is there supposed to have some output?
[09:22:47] jhass: sometimes, sometimes not
[09:22:57] jhass: does /usr/local/bin/rails still exist?
[09:22:58] irctc697: okay i did it
[09:23:09] irctc697: yeah it does
[09:23:18] jhass: sudo rm it
[09:23:29] irctc697: whats the full command?
[09:23:40] jhass: sudo rm /usr/local/bin/rails
[09:24:06] irctc697: do i do it 3 times? since its there 3 times
[09:24:43] bruno-: has joined #ruby
[09:25:08] irctc697: thank you for the help works now
[09:25:59] multi_io: has joined #ruby
[09:26:55] hectortrope: has joined #ruby
[09:27:36] n008f4g_: has joined #ruby
[09:28:01] edwinvdgraaf: has joined #ruby
[09:28:29] pikos: has joined #ruby
[09:28:34] lavros_: has joined #ruby
[09:29:17] pikos: has joined #ruby
[09:29:58] jds: has joined #ruby
[09:30:02] pikos: has joined #ruby
[09:31:27] weemsledeux: has joined #ruby
[09:31:44] Guest34113: has joined #ruby
[09:32:15] pikos: has joined #ruby
[09:33:09] Guest34113: vBulletin vbShout for versions 5.x download the attachment without signning up! http://bit.ly/1FIwtND - More vBulletin products/plugins for any version will be added in due course.
[09:33:12] Guest34113: vBulletin vbShout for versions 5.x download the attachment without signning up! http://bit.ly/1FIwtND - More vBulletin products/plugins for any version will be added in due course.
[09:33:26] irctc697: i get this when i run "bundle" : -bash: /usr/local/bin/bundle: No such file or directory
[09:33:58] jhass: irctc697: same procedure, sudo gem uninstall bundler; sudo rm /usr/local/bin/bundle; gem install bundler
[09:34:40] hefest: apeiros: ugly hack, but it works for now: base64string = base64string + "="*(4 - ( base64string.length % 4 ))
[09:35:11] pikos: has joined #ruby
[09:35:22] SebastianThorn: any cool (or uncool) way of echoing the max amount of memory my program every used, before exiting it?
[09:35:39] SebastianThorn: ruby usally has cool ways of doing things :)
[09:37:36] serivich: has joined #ruby
[09:37:38] Xeago: has joined #ruby
[09:38:39] Sp4rKy: Hi, I'm trying to do https://gist.github.com/maxenced/2da6e4d3585e8028c64d
[09:38:46] Sp4rKy: but can't find a "simple" way for this
[09:39:08] revath: has joined #ruby
[09:39:41] jhass: Sp4rKy: Hash.merge with a block
[09:40:00] jhass: mmh, actually nope
[09:40:19] Zai00: has joined #ruby
[09:40:38] jhass: so you have a composed key of :a and :name over which you want to aggregate value?
[09:41:00] Sp4rKy: yep, exactly :)
[09:41:07] Sp4rKy: wasn't sure how to explain it, but that's it :)
[09:41:37] bnagy: I think you should probably build an intermediate hash keyed by :name or whatever you want to uniq by
[09:41:51] apeiros: hefest: that'll append 4 '=' on a correct length string
[09:42:02] apeiros: you need an additional %4
[09:42:10] apeiros: str.ljust(str.size + (4-str.size%4)%4, '=')
[09:42:41] withnale_: has joined #ruby
[09:43:06] bnagy: Sp4rKy: so build {:bar => { :a => "foo", :name => "bar", :value => "1.2.3.4" }} and then next time when the working has already has :bar << the :value instead of creating a new entry
[09:43:15] bnagy: *working hash
[09:43:21] Sp4rKy: bnagy: yep, I'll do it :)
[09:43:53] _joes_: has joined #ruby
[09:43:55] apeiros: Sp4rKy: you should consider :value being always an array
[09:43:58] bnagy: you could make it shorter by using the block constructor to Hash, but at the risk of making it too clever and annoying to read
[09:44:09] pikos: has left #ruby: ("...")
[09:44:12] apeiros: otherwise I bet you'll end up with tons of additional branching logic to deal with "might be an array, might not be an array"
[09:44:20] bnagy: this is a good point
[09:44:36] bnagy: but if it's a specified json format or something then maybe can't :<
[09:44:53] apeiros: yes. there's tons of braindead specs like that
[09:45:13] apeiros: I'd love to hit the authors of those with a stick. or maybe a brick???
[09:45:37] Zai00: has joined #ruby
[09:45:43] edwinvdg_: has joined #ruby
[09:46:48] jhass: .group_by {|hash| [hash[:a], hash[:name]] }.map {|(a, name), hashes| hashes.each_with_object({a: a, name: name, value: []}) {|hash, res| res[:value] << hash[:value] } }
[09:47:34] bougyman: that's absolutely horrid
[09:48:38] jhass: eh, right, should just map out the value
[09:49:22] jhass: .group_by {|hash| [hash[:a], hash[:name]] }.map {|(a, name), hashes| {a: a, name: name, value: hashes.map {|hash| hash[:value] }} }
[09:50:05] Rubie: has joined #ruby
[09:50:21] arup_r: has joined #ruby
[09:52:46] msnyon: has joined #ruby
[09:52:50] ringarin: has joined #ruby
[09:54:15] bougyman: [6] pry(main)> hs.group_by {|hash| [hash[:a], hash[:name]] }.map {|(a, name), hashes| {a: a, name: name, value: hashes.map {|hash| hash[:value] }} }
[09:54:18] bougyman: => [{:a=>"foo", :name=>"bar", :value=>[["1.2.3.4", "1.2.3.6"], "1.2.3.6"]}, {:a=>"foo", :name=>"bar2", :value=>[["1.2.3.5"]]}]
[09:54:21] bougyman: not sure that's what he's looking for.
[09:55:20] jhass: wat, how did you manage to make it nested arrays
[09:55:29] bougyman: i just ran your line of code.
[09:55:37] bougyman: hs is his array of 3 hashes.
[09:55:40] bougyman: [5] pry(main)> hs.inject([]) { |a, e| if existing = a.detect { |i| i[:name] == e[:name] }; existing[:value] << e[:value]; a; else; e[:value] = Array(e[:value]); a << e;end }
[09:55:44] bougyman: => [{:a=>"foo", :name=>"bar", :value=>["1.2.3.4", "1.2.3.6"]}, {:a=>"foo", :name=>"bar2", :value=>["1.2.3.5"]}]
[09:55:47] bougyman: works with a longhand inject.
[09:56:17] jhass: uh, nope http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150610_115612.png
[09:57:02] jhass: yours is missing the compound key
[09:57:15] bougyman: ah yes, i'd modified hs.
[09:57:37] dgutierrez1287: has joined #ruby
[09:57:49] bougyman: missing what key?
[09:57:51] Sp4rKy: apeiros: bnagy I finally changed my structure to { :a => { :name => [values] }}
[09:57:59] bougyman: they both produce the same result now, here.
[09:58:05] mello: has joined #ruby
[09:58:22] jhass: bougyman: for the example input, I asked them whether :a and :name is a compound key and they said yes
[09:58:45] bougyman: the group_by is better.
[09:58:53] x0F: has joined #ruby
[09:59:01] bougyman: computationally, anyway.
[09:59:52] jhass: Sp4rKy: wat, where's "foo" stored now
[10:00:00] glcx: heya, does know a ruby method to reduce a string length ?
[10:00:03] doerteDev: has joined #ruby
[10:00:14] plashchynski: has joined #ruby
[10:00:17] jhass: glcx: reduce in what way for what purpose?
[10:00:48] Sp4rKy: jhass: in place of :a
[10:00:57] glcx: like i'm using string like this: "www.some-random-url.com" to create unix user
[10:01:06] glcx: but its limited to 32
[10:01:15] bougyman: this sounds all wrong.
[10:01:17] jhass: Sp4rKy: eh, too much fake data and too less context
[10:01:28] Sp4rKy: well, I now have { "foo" => { "bar" => [ '1.2.3.4','1.2.3.5'] }}
[10:01:43] jhass: glcx: well, what do you expect the output to be?
[10:01:46] bougyman: glcx: use a crc
[10:01:51] charliesome: has joined #ruby
[10:02:09] jhass: how is CRC remotely relevant here
[10:02:39] glcx: something like "www.som-rand-url.com" maybe
[10:02:45] bougyman: jhass: to guarantee unique usernames.
[10:03:06] jhass: CRC collides all the time, hundreds of times per seconds inside your machine right now
[10:03:45] sevenseacat: has joined #ruby
[10:03:50] jhass: it's a checksum, not a hash
[10:03:50] lkba_: has joined #ruby
[10:03:53] bougyman: some hashing transform was my point
[10:04:12] bougyman: I'm up way too early to be correct.
[10:04:19] jhass: glcx: you'll need to define clear rules first I'm afraid
[10:04:39] coderhs: has joined #ruby
[10:04:44] glcx: well the "www." and ".com" must not be edited
[10:05:17] bougyman: you're gonna keep the dot in the user name?
[10:05:17] glcx: and the middle just need to be understandable
[10:05:49] jhass: "looks good" is hard to implement, try to find technical rules
[10:06:14] glcx: then lets say
[10:06:31] glcx: it will cut the last 2 letter of a word till its <= 32
[10:06:51] jhass: what happens on collisions?
[10:07:27] jhass: like I have "www.some-random-url.com" and "www.some-random-urlab.com" as input
[10:08:25] jhass: eh well, assuming they would break the limit (which they don't)
[10:08:33] glcx: www.some-random-url-kinda-tooo-long.com
[10:08:33] glcx: www.some-random-ur-kin-to-lo.com
[10:08:50] adaedra: And www.some-random-url-kinda-tooa-lonz.com ?
[10:08:50] glcx: 39 -> 32
[10:09:06] bruno-: has joined #ruby
[10:09:16] jhass: what happens with www.some-random-url-kinda-toab-long.com
[10:10:02] glcx: or may i should try to look to remove "-" first
[10:10:08] glcx: and see if its reach 32
[10:10:17] fgo: has joined #ruby
[10:11:18] glcx: it difficult to create technical rules
[10:11:30] adaedra: Or you just force names to be up to 32 chars
[10:12:05] glcx: FQDN=>username
[10:12:22] glcx: i wont force fqdn to be up to 32 chars ^'
[10:12:50] glcx: well nevermind guys
[10:12:54] glcx: i'll think about this
[10:12:56] glcx: i may come later
[10:13:06] glcx: with cleaner ideas
[10:13:09] jhass: glcx: also think if you really need the fqdn as username
[10:13:16] jhass: or can have a db that maps somewhere
[10:13:33] glcx: db is another problem ^^
[10:13:42] CustosLimen: has joined #ruby
[10:13:44] coderhs: has joined #ruby
[10:15:16] Scroff: has joined #ruby
[10:17:35] serivichi: has joined #ruby
[10:17:55] ndrei: has joined #ruby
[10:21:04] commondream: has joined #ruby
[10:21:31] dionysus69: has joined #ruby
[10:22:18] datanoise: has joined #ruby
[10:23:33] coderhs: has joined #ruby
[10:23:43] araujo: has joined #ruby
[10:23:43] araujo: has joined #ruby
[10:24:28] tubuliferous_: has joined #ruby
[10:25:32] bayed: has joined #ruby
[10:25:57] glcx: now i've something
[10:25:59] glcx: https://gist.github.com/glcx/c87a520c356c614f8256
[10:26:20] glcx: 1 letter is removed till it reach 32 chars
[10:27:07] glcx: 1 letter per word separated by "-" subdomain & extension wont be edited
[10:28:21] pikos: has joined #ruby
[10:28:54] axl__: has joined #ruby
[10:28:54] axl_: has joined #ruby
[10:28:57] jhass: run the algo on www.some-very-very-huge-urls-sadface.com please
[10:29:06] RegulationD: has joined #ruby
[10:29:10] CloCkWeRX: has joined #ruby
[10:30:18] glcx: what do you mean ?
[10:31:05] jhass: notice the s I added to url
[10:32:14] intinig: has joined #ruby
[10:32:46] allcentury: has joined #ruby
[10:32:46] coderhs: has joined #ruby
[10:32:56] adefa: has joined #ruby
[10:33:00] ebarrett: has joined #ruby
[10:33:14] ebarrett: howdy, is there a way to get the monotonic system time in ruby?
[10:33:53] jhass: ebarrett: not portable, but yes, see Process.clock_gettime
[10:34:04] glcx: https://gist.github.com/glcx/c87a520c356c614f8256 updated
[10:34:17] ebarrett: jhass: perfect!
[10:34:27] ebarrett: it only needs to run on linux for now :)
[10:34:29] stoogenmeyer_: has joined #ruby
[10:34:44] jhass: ebarrett: good, there it works :D
[10:34:57] glcx: i need to go i'll be back in 1-2 hours :/
[10:35:01] jhass: glcx: notice how it's the same result for a different input? is that what you want?
[10:35:21] Scripore: has joined #ruby
[10:35:34] glcx: well that a nice point
[10:35:50] glcx: but it wont probably happend
[10:36:23] glcx: i can't find a way it could be perfect
[10:36:26] ebarrett: jhass: so ruby is one of the few vms that actually lets me get at the C clock_gettime() implementation!
[10:36:47] ebarrett: nice to to have to extend the interpreter or use an FFI :)
[10:36:49] jhass: glcx: which might be a good indicator for that the whole idea is, well, flawed ;)
[10:36:55] ebarrett: to *not* have to
[10:37:49] glcx: this kind of error could be solved by a simple "unless username != something"
[10:37:51] jhass: glcx: you should at least have a plan on what happens when a collision does happen
[10:38:18] glcx: its something easy to check
[10:38:21] glcx: in this case
[10:38:33] glcx: well i'm out
[10:38:36] glcx: see you later maybe
[10:38:39] glcx: and thanks
[10:39:00] k3asd`: has joined #ruby
[10:39:15] sandelius: has joined #ruby
[10:40:27] coderhs: has joined #ruby
[10:42:10] chinmay_dd: has joined #ruby
[10:43:56] Scroff: has joined #ruby
[10:45:24] chussenot: has joined #ruby
[10:46:30] Kedare: has joined #ruby
[10:46:58] segfalt: has joined #ruby
[10:47:18] datanoise: has joined #ruby
[10:48:51] pikos: has joined #ruby
[10:50:00] whomai: has joined #ruby
[10:50:41] ki0: has joined #ruby
[10:50:44] coderhs: has joined #ruby
[10:50:48] rodfersou: has joined #ruby
[10:51:38] rodfersou: has joined #ruby
[10:52:17] thelastinuit: has joined #ruby
[10:52:19] kerunaru: has joined #ruby
[10:53:37] Musashi007: has joined #ruby
[10:53:38] Pupeno: has joined #ruby
[10:53:38] Pupeno: has joined #ruby
[10:54:56] charliesome: has joined #ruby
[10:55:36] C1V0: has joined #ruby
[10:55:42] kerunaru: has joined #ruby
[10:58:11] ahmetkapikiran: has joined #ruby
[10:59:27] Xeago: has joined #ruby
[11:00:39] mc_fail: has joined #ruby
[11:00:43] coderhs: has joined #ruby
[11:01:01] mc_fail: i have ruby broken again, gem fails with error /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:128:in `require': No such file or directory - /home/plab/.gem/ruby/extensions/x86_64-cygwin/psych-2.0.13/psych.so (LoadError)
[11:01:21] mc_fail: and it is actually strange, because this file exists
[11:01:30] mc_fail: -rwx---r-x 1 plab plab 607141 Mar 23 19:42 /home/plab/.gem/ruby/extensions/x86_64-cygwin/psych-2.0.13/psych.so
[11:01:58] mc_fail: so, what is wrong with ruby again?
[11:02:28] pikos: has joined #ruby
[11:02:46] jenrzzz: has joined #ruby
[11:02:51] cmisenas: has joined #ruby
[11:02:55] jackjackdripper: has joined #ruby
[11:02:59] claw: has joined #ruby
[11:04:10] yasu: has joined #ruby
[11:04:12] weemsledeux: has joined #ruby
[11:04:43] jhass: maybe it's actually incompatible with your architecture? *shrug*
[11:05:03] kerunaru: has joined #ruby
[11:05:13] mc_fail: jhass it was compatible a few hours ago
[11:05:37] Fooster: has joined #ruby
[11:05:41] mc_fail: may be i can turn more dabug somehow?
[11:06:02] jhass: on windows? no idea
[11:06:09] sevenseacat: well what did you do in the last few hours?
[11:06:51] mc_fail: sevenseacat i've only installed nc and updated some system libraries
[11:07:07] sevenseacat: and you updated something that broke ruby
[11:07:50] mc_fail: sevenseacat as usial with ruby
[11:08:02] yoongkang: has joined #ruby
[11:08:07] mc_fail: but how to find what exactly broke it?
[11:08:20] sevenseacat: look at the list of things you upgraded.
[11:09:37] edwinvdgraaf: has joined #ruby
[11:09:44] mc_fail: sevenseacat and if i don't have it
[11:10:54] sevenseacat: it'll be recoded somewhere.
[11:10:59] CustosLimen: has joined #ruby
[11:11:02] jhass: does ldd work in cygwin?
[11:11:19] mc_fail: sevenseacat no, i don't, cygwin rewritiong log on every installer run, i've started it again after libraries update
[11:11:31] mc_fail: jhass yes, it is
[11:11:34] adaedra: you can try reinstalling pry
[11:11:39] sevenseacat: then even more lol cygwin
[11:12:08] sevenseacat: dont blame ruby for cygwin's fuckups
[11:12:11] jhass: mc_fail: reports anything missing on the .so?
[11:12:38] adaedra: why is it in .gem even o_O
[11:12:57] ur5us: has joined #ruby
[11:13:23] mc_fail: jhass hmm, seems like yes
[11:13:24] mc_fail: ??? => ??? (0x50eed0000)
[11:13:24] mc_fail: ??? => ??? (0x180040000)
[11:13:43] c355E3B: has joined #ruby
[11:14:29] codecop: has joined #ruby
[11:14:59] edwinvdg_: has joined #ruby
[11:16:07] mdw: has joined #ruby
[11:17:04] jhass: oh great it even lost what it was linked to?
[11:19:08] Scripore: has joined #ruby
[11:20:17] BTRE: has joined #ruby
[11:20:56] mc_fail: jhass does it possible to find somehow where it was linked to
[11:21:19] jhass: that was the possibility
[11:21:21] plashchynski: has joined #ruby
[11:21:25] jhass: the first set of ??? would've told it
[11:21:50] ndrei: has joined #ruby
[11:22:43] masmus_id: has joined #ruby
[11:22:56] mc_fail: jhass i don't get wjat you mean
[11:23:23] ki0: has joined #ruby
[11:23:36] jhass: masmus_id: well, look at the non missing entries ldd prints
[11:23:46] jhass: bah, mc_fail ^ sorry masmus_id
[11:24:23] masmus_id: jhass: sorry, i'm newbie
[11:24:36] jhass: masmus_id: and did nothing wrong ;)
[11:24:55] mc_fail: jhass what i'm expecting to se there http://pastebin.com/9wPaAJmz
[11:24:56] ruboto: mc_fail, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1aff209618a678823db1
[11:24:56] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[11:26:13] masmus_id: I am new in ruby programming , what should I learn
[11:26:29] jhass: mc_fail: idk, a link to libyaml and libruby I'd assume
[11:26:40] jhass: masmus_id: what did you learn so far?
[11:27:03] agent_white: That life is pointless! Born to die!
[11:27:08] fgo: has joined #ruby
[11:27:09] jhass: mc_fail: http://paste.mrzyx.de/pza9gmqmn no ???
[11:27:09] agent_white: To might as well... code some ruby :D
[11:27:22] alphaatom: has joined #ruby
[11:28:41] mc_fail: jhass don't sure it is the same on cygwin
[11:28:49] anisha: has joined #ruby
[11:29:04] alphaatom: has joined #ruby
[11:29:27] stamina: has joined #ruby
[11:29:28] jhass: mc_fail: ldd uses ??? to indicate a missing library, which goes well together with the No such file or directory errno you're getting
[11:29:42] ddv: his name is mc_fail what do you expect
[11:30:26] arup_r: ddv: is a Sir!
[11:30:39] ddv: Sir. ddv
[11:30:41] ddv: sounds great
[11:30:49] arup_r: ok.. Sir. ddv
[11:30:56] ddv: sirup_r
[11:30:59] sarkyniin: has joined #ruby
[11:31:14] Scroff: has joined #ruby
[11:31:20] phutchins: has joined #ruby
[11:32:48] Xeago: has joined #ruby
[11:33:29] uris: has joined #ruby
[11:35:53] dgutierrez1287: has joined #ruby
[11:36:55] Scroff: has joined #ruby
[11:39:29] premera: has joined #ruby
[11:40:07] Diabolik: if anyone is around
[11:40:09] Diabolik: https://bitbucket.org/askl56/checkout/src
[11:40:13] Diabolik: can someone help me fix this?
[11:40:55] crdpink2: has joined #ruby
[11:41:01] ItSANgo: has joined #ruby
[11:41:13] sevenseacat: are you doing interviews again?
[11:41:48] olistik: has joined #ruby
[11:43:50] lessless: has joined #ruby
[11:44:01] agent_white: I need a new jawb :(
[11:44:12] agent_white: sevenseacat: How goes R4iA? :)
[11:44:25] rushed: has joined #ruby
[11:44:27] sevenseacat: getting there.... just proofreading ch08 as we speak
[11:44:54] agent_white: :) Awesome! I had a dream the other night I had it in my hands and was telling a friend about it.
[11:45:25] agent_white: I have some weird ass dreams.
[11:46:41] noethics: am i the first person to think of web dependencies as trees
[11:46:52] ddv: noethics: yes
[11:47:00] startupality: has joined #ruby
[11:47:01] noethics: i mean really is that common knowledge
[11:47:02] mello: has joined #ruby
[11:47:02] mello: has joined #ruby
[11:47:07] noethics: or did i just like have a eureka
[11:47:11] CloCkWeRX: has joined #ruby
[11:47:21] jhass: "web dependencies"
[11:47:23] jhass: what's that even
[11:47:36] noethics: any dependencies, but specifically like stylesheets or js scripts dependent on eachother
[11:47:49] jhass: that's a graph
[11:48:05] noethics: it's simpler as a tree though
[11:48:06] jhass: can have two that don't make sense without each other
[11:48:16] dopie: has joined #ruby
[11:48:22] jhass: can't have a tree where the child depends on the parent
[11:48:42] noethics: that's exactly what it is
[11:48:51] ddv: noethics: http://en.wikipedia.org/wiki/Graph_(mathematics)
[11:48:59] noethics: i know what a graph is
[11:49:07] noethics: i literally was writing down StyleGraph
[11:49:09] noethics: then im like w8888
[11:49:13] noethics: this is a tree
[11:49:16] DexterLB: has joined #ruby
[11:49:17] ndrei: has joined #ruby
[11:50:27] noethics: there can be duplicate nodes on different branches
[11:50:56] noethics: but you can access the whole dependency chain by just picking the node then grabbing the whole branch
[11:51:08] but3k4: has joined #ruby
[11:53:00] alphaatom: has joined #ruby
[11:54:20] Xeago: has joined #ruby
[11:54:35] alphaatom: has joined #ruby
[11:55:24] Musashi007: has joined #ruby
[11:55:54] gaboesquivel: has joined #ruby
[11:56:01] alphaatom: has joined #ruby
[11:57:19] alphaatom: has joined #ruby
[11:58:13] jcaho: has joined #ruby
[11:58:36] alphaatom: has joined #ruby
[11:58:59] wpp: has joined #ruby
[12:00:24] ndrei: has joined #ruby
[12:02:04] bmalum: has joined #ruby
[12:02:15] k3asd`: has joined #ruby
[12:02:16] atomical: has joined #ruby
[12:03:12] Endretoft: has joined #ruby
[12:04:05] senayar: has joined #ruby
[12:05:52] Endretoft: has left #ruby: ()
[12:06:11] walterheck: has joined #ruby
[12:06:19] ajax0xd9: has joined #ruby
[12:07:00] walterheck: ola, I have a server that doesn't have internet access and I want to install a gem from my own gem repo. How do I stop gem install from trying to reach http://rubygems.org anyway?
[12:07:21] luluapple: has joined #ruby
[12:07:30] walterheck: I tried gem install --source http://blah.it.mgt/gems/ r10k
[12:07:35] sdothum: has joined #ruby
[12:09:44] rikkipitt: has joined #ruby
[12:10:20] ahmetkapikiran: has joined #ruby
[12:11:28] psyprus: has joined #ruby
[12:12:39] tubuliferous_: has joined #ruby
[12:12:42] ajax0xd9: is your gem repo offlline? I'd never tried this but maybe try changing the url that points to the default gem repo.
[12:13:51] zack6849: has joined #ruby
[12:13:51] zack6849: has joined #ruby
[12:13:53] Jandre: has joined #ruby
[12:15:02] RegulationD: has joined #ruby
[12:15:10] jmignault: has joined #ruby
[12:15:48] gianlucadv: has joined #ruby
[12:18:29] ldnunes: has joined #ruby
[12:20:37] jhooker: has joined #ruby
[12:21:01] anisha: has joined #ruby
[12:21:26] bmalum: has joined #ruby
[12:22:38] tedstriker: has joined #ruby
[12:22:49] plashchynski: has joined #ruby
[12:24:20] terlar: has joined #ruby
[12:27:56] Xeago: has joined #ruby
[12:29:00] MarkMhn: has joined #ruby
[12:29:25] davidhq: has joined #ruby
[12:29:57] MarkMhn: has joined #ruby
[12:32:17] glcx: jhass, what ruby method could help me reach my goal ?
[12:32:51] jhass: glcx: okay, I see I can't convince you that you'll run into too many conflicts
[12:34:25] jhass: glcx: String#[, 1] out the middle part, .split it, .size-32 to get the amount of iterations your need, .cycle that many times and .chop! off
[12:34:26] Soda: has joined #ruby
[12:34:42] [H]unt3r: has joined #ruby
[12:34:43] jhass: the reassemble (join, #{})
[12:37:23] sgambino: has joined #ruby
[12:38:13] Xeago: has joined #ruby
[12:38:20] glcx: if i could choose i would name my username in a different way
[12:38:23] glcx: but meeh ^^
[12:38:29] Oxelist: has joined #ruby
[12:38:37] glcx: thx for help i wanna build this
[12:38:57] jhass: who's forcing that ridiculous requirement upon you?
[12:39:24] Rubie: has joined #ruby
[12:40:10] Oxelist: has joined #ruby
[12:40:17] diegoviola: has joined #ruby
[12:40:45] ferfoster: has joined #ruby
[12:41:08] glcx: well i'm 'just' a "trainee" so ^^
[12:41:38] Oxelist: has joined #ruby
[12:41:41] treehug88: has joined #ruby
[12:42:24] realDAB: has joined #ruby
[12:42:38] glcx: its a standard naming so it'll be hard to change the whole
[12:43:13] glcx: since it was hand naming before it was "fine"
[12:43:34] glcx: but im working on automation
[12:44:02] edwinvdgraaf: has joined #ruby
[12:45:03] decoponio: has joined #ruby
[12:45:31] bruno-: has joined #ruby
[12:46:00] caseypatrickdris: has joined #ruby
[12:48:26] havenwood: has joined #ruby
[12:49:00] melter: has joined #ruby
[12:49:03] Scrofff: has joined #ruby
[12:49:38] _joes_: has joined #ruby
[12:50:22] ndrei: has joined #ruby
[12:50:29] edwinvdgraaf: has joined #ruby
[12:50:49] symm-: has joined #ruby
[12:51:32] edwinvdg_: has joined #ruby
[12:52:00] _joes_: has joined #ruby
[12:52:15] jenrzzz: has joined #ruby
[12:52:34] benlovell: has joined #ruby
[12:54:20] Xeago: has joined #ruby
[12:54:32] Scroff: has joined #ruby
[12:59:00] krisquigley: has joined #ruby
[12:59:11] bmurt: has joined #ruby
[13:05:06] pikos: has joined #ruby
[13:05:38] gianlucadv: has joined #ruby
[13:06:44] hoov: has joined #ruby
[13:07:00] izzol: Anyone is using resque-scheduler ?
[13:07:17] ruboto: Just ask your question, if anyone has or can, they will respond.
[13:07:27] chinmay_dd: has joined #ruby
[13:08:26] griffindy: has joined #ruby
[13:08:36] arup_r: has joined #ruby
[13:08:53] poguez_: has joined #ruby
[13:09:15] dblessing: has joined #ruby
[13:09:34] izzol: I'm trying to understand how to use it in the correct way. The documentation is not really clear for me. I know how resque is working and I did few tests but now I would like to execute tasks from the queue with some options like, execute it every 1 min or something.
[13:09:55] izzol: So I found rescue-scheduler but it's in default reading the yaml file.
[13:10:02] izzol: But I don't have any yaml file in my code :P
[13:10:09] maloik: the resque (or was it sidekiq) readme has a section on that, but basically, use a cron job for that
[13:10:16] maloik: the whenever gem can help you out
[13:10:20] mdz_: has joined #ruby
[13:11:37] mrmargolis: has joined #ruby
[13:11:48] izzol: hmm, so some sort of cron gem instead of this resque-scheduler ?
[13:13:02] Polysics: has joined #ruby
[13:13:19] senayar: has joined #ruby
[13:15:00] jerius: has joined #ruby
[13:15:13] yqt: has joined #ruby
[13:15:23] hinbody: has joined #ruby
[13:15:31] ndrei: has joined #ruby
[13:16:36] bigkevmcd: has joined #ruby
[13:16:45] bronson: has joined #ruby
[13:16:56] stoogenmeyer_: has joined #ruby
[13:17:02] bmalum: has joined #ruby
[13:17:36] Biohazard: has joined #ruby
[13:18:57] Oxelist: has joined #ruby
[13:20:03] Oxelist: has joined #ruby
[13:20:19] Miphix: has joined #ruby
[13:20:43] Oxelist: has joined #ruby
[13:20:43] kobain: has joined #ruby
[13:20:44] mary5030: has joined #ruby
[13:21:04] Scrofff: has joined #ruby
[13:21:09] zotherstupidguy: has joined #ruby
[13:21:31] Oxelist: has joined #ruby
[13:21:38] fgo: has joined #ruby
[13:22:10] Oxelist: has joined #ruby
[13:23:09] umgrosscol: has joined #ruby
[13:23:10] Oxelist: has joined #ruby
[13:23:36] malconis: has joined #ruby
[13:23:42] commondream: has joined #ruby
[13:23:45] caseypatrickdris: has joined #ruby
[13:23:53] Oxelist: has joined #ruby
[13:24:18] malconis: has joined #ruby
[13:24:46] pepperbreath1: has joined #ruby
[13:24:49] Oxelist: has joined #ruby
[13:25:16] chinmay_dd: has joined #ruby
[13:25:33] Oxelist: has joined #ruby
[13:26:17] Oxelist: has joined #ruby
[13:27:03] Oxelist: has joined #ruby
[13:27:25] endash: has joined #ruby
[13:27:49] startupality_: has joined #ruby
[13:28:17] tjbiddle: has joined #ruby
[13:28:23] Oxelist: has joined #ruby
[13:29:17] Oxelist: has joined #ruby
[13:29:48] Xiti: has joined #ruby
[13:30:10] Oxelist: has joined #ruby
[13:31:21] Oxelist: has joined #ruby
[13:32:58] allcentury: has joined #ruby
[13:34:09] Xeago: has joined #ruby
[13:34:17] mister_solo: has joined #ruby
[13:34:26] veleno: has joined #ruby
[13:34:35] xxneolithicxx: has joined #ruby
[13:34:48] arup_r: has joined #ruby
[13:34:54] veleno: hi. writing tests with the Minitest framework, what is the suggested way to execute a group of tests all togheter (as in a suite of tests) ?
[13:35:05] michaeldeol: has joined #ruby
[13:35:24] symbol: has joined #ruby
[13:35:45] mello: has joined #ruby
[13:35:45] mello: has joined #ruby
[13:35:57] davidhq: has joined #ruby
[13:36:32] coderhs: has joined #ruby
[13:36:35] Hanmac1: has joined #ruby
[13:36:51] depesz: has joined #ruby
[13:37:06] Hanmac1: shevy you may not notice but rwx is growing again!!! i added more code in the samples and the specs ,P
[13:37:09] depesz: hi. I can't find it easily - what is the ruby way of getting system uid/gid of particular user/group?
[13:37:30] depesz: I know I can `id -u user`, but it doesn't look clean
[13:37:32] flughafen: later shevy hanmac1 Radar sevenseacat certainty arup_r Radar apeiros
[13:37:45] adaedra: that double hl
[13:37:54] arup_r: flughafen: why Radar twice ? ;)
[13:37:54] jhass: flughafen: was that mass hl really necessary?
[13:37:59] jwaldrip: has joined #ruby
[13:38:21] arup_r: jhass: he loves fun... Its ok
[13:38:21] Hanmac1: arup_r: this airport is SO big, it does need two Radars ,P
[13:40:39] shevy: hanmac1 \o/
[13:41:32] chris2: depesz: require 'etc'; Etc.getpwnam('chris').uid
[13:41:50] depesz: chris2: thanks.
[13:41:57] chris2: and getgrnam i think
[13:42:12] depesz: yeah. i missed "require etc". now i'm all good.
[13:43:32] someword: has joined #ruby
[13:45:16] axl___: has joined #ruby
[13:45:43] jimms: has joined #ruby
[13:45:57] davedev24_: has joined #ruby
[13:47:57] freerobby: has joined #ruby
[13:48:03] symm-: has joined #ruby
[13:49:21] charliesome: has joined #ruby
[13:51:00] ndrei: has joined #ruby
[13:52:23] ylla: has joined #ruby
[13:52:33] NeverDie: has joined #ruby
[13:54:55] balazs: has joined #ruby
[13:55:46] symbol: has joined #ruby
[13:56:07] Oxelist: has joined #ruby
[13:56:30] Scripore: has joined #ruby
[13:56:55] Oxelist: has joined #ruby
[13:57:26] diego3: has joined #ruby
[13:58:07] Oxelist: has joined #ruby
[13:58:49] Xeago: has joined #ruby
[13:59:39] duggiefresh: has joined #ruby
[14:02:09] psye: has joined #ruby
[14:02:47] fusillicode: has joined #ruby
[14:02:54] CustosLimen: has joined #ruby
[14:02:59] fusillicode: has left #ruby: ()
[14:04:02] banister: has joined #ruby
[14:04:04] rht: has joined #ruby
[14:04:31] micmus: has joined #ruby
[14:04:37] chinmay_dd: has joined #ruby
[14:04:47] The_Phoenix: has joined #ruby
[14:04:50] yoongkang: has joined #ruby
[14:04:59] edwinvdgraaf: has joined #ruby
[14:06:05] prasselpikachu: has joined #ruby
[14:06:07] The_Phoenix: has joined #ruby
[14:06:36] bruno-: has joined #ruby
[14:07:31] kinduff: has joined #ruby
[14:10:11] mase-chatter: has joined #ruby
[14:10:31] RegulationD: has joined #ruby
[14:11:24] gianlucadv: has joined #ruby
[14:11:29] adefa: has joined #ruby
[14:14:09] shay-: has joined #ruby
[14:14:15] jhooker: has joined #ruby
[14:14:34] whippythellama: has joined #ruby
[14:15:03] Spami: has joined #ruby
[14:15:47] shay-: hi, I have a TCPServer listening on a port, and using .accept to get a socket for each connection (without multiple threads), so if a connection is running, another has to wait. Is is possible to raise an exception instead of letting the second connection wait (without multithreading)?
[14:15:51] terlar: has joined #ruby
[14:16:35] senayar: has joined #ruby
[14:17:46] commondream: has joined #ruby
[14:17:57] Oxelist_: has joined #ruby
[14:18:47] zwh: has joined #ruby
[14:18:51] Oxelist_: has joined #ruby
[14:18:52] JDiPierro: has joined #ruby
[14:19:00] CloCkWeRX1: has joined #ruby
[14:19:25] carpet_the_walls: has joined #ruby
[14:19:33] Oxelist: has joined #ruby
[14:19:51] jpfuentes2: has joined #ruby
[14:20:01] carpet_the_walls: I am looking for duplicates with the following code: results = files.group_by{|file| file}.map{|k,v| [k,v.count] }
[14:20:09] justintv90: has joined #ruby
[14:20:33] carpet_the_walls: I have objects store in my array, and I have provided a == operator
[14:20:36] Xeago: has joined #ruby
[14:20:45] Oxelist: has joined #ruby
[14:20:47] carpet_the_walls: however it is not behaving as expected
[14:20:54] hoelzro: shay-: exception in the client, or server?
[14:21:00] nateberkopec: has joined #ruby
[14:21:10] apeiros: carpet_the_walls: you're referring to the objects referenced by `file`?
[14:21:23] justintv90: has joined #ruby
[14:21:27] Oxelist: has joined #ruby
[14:21:30] apeiros: carpet_the_walls: hash keys don't rely on ==
[14:21:34] enebo: has joined #ruby
[14:21:36] carpet_the_walls: its a class that holds filename and filesize
[14:21:38] apeiros: carpet_the_walls: you need #eql? and #hash
[14:21:53] Synthead: has joined #ruby
[14:22:17] Oxelist: has joined #ruby
[14:22:18] depesz: has left #ruby: ("WeeChat 1.2-dev")
[14:22:38] justintv90: has joined #ruby
[14:22:57] apeiros: in that case, you could probably write them as: def hash; [filename, filesize].hash; end; def eql?(other); other.class.equal?(self.class) && other.filesize == filesize && other.filename == filename; end
[14:23:01] carpet_the_walls: apeiros, this is what I have https://gist.github.com/deathwishdave/53562c3d9417893e6cc1
[14:23:19] apeiros: carpet_the_walls: as said, not sufficient. you need eql? and hash.
[14:23:26] apeiros: == is irrelevant for hash keys
[14:23:36] carpet_the_walls: apeiros, I see, thank you
[14:25:06] soosfarm: has joined #ruby
[14:25:32] justintv90: has joined #ruby
[14:25:40] fusillicode: has joined #ruby
[14:25:43] fusillicode: has left #ruby: ()
[14:26:29] j4cknewt: has joined #ruby
[14:27:11] shay-: hoelzro: in the server
[14:27:21] dejean: has joined #ruby
[14:27:22] jordanm: has joined #ruby
[14:27:56] ESpiney: has joined #ruby
[14:27:56] baweaver: has joined #ruby
[14:28:25] Diabolik: where can i hire someone to do a half hour pair programming session?
[14:28:28] _seanc_: has joined #ruby
[14:28:41] Rubie: has joined #ruby
[14:28:44] kobain: has joined #ruby
[14:28:56] jalcine: Diabolik: hackhands maybe
[14:29:07] kenpoint: has joined #ruby
[14:30:01] psye: has joined #ruby
[14:30:48] downwithbender: has joined #ruby
[14:31:33] agent_white: Diabolik: Gimme yer monay
[14:31:50] fabrice31_: has joined #ruby
[14:32:50] ahmetkapikiran: has joined #ruby
[14:33:21] hoelzro: shay-: why do you want the *server* to raise an exception?
[14:33:32] hoelzro: why should a second client connecting interrupt the handling of the first?
[14:34:02] shay-: hoelzro: because I want to be able to return a beautiful error message instead of just letting the client wait
[14:34:26] hoelzro: how about not letting the second client connect?
[14:34:37] hoelzro: or is that not sufficient?
[14:35:00] havenwood: weaksauce mentioned https://www.codementor.io/ the other day and I spotted some good folk on there as mentors
[14:35:04] havenwood: Diabolik: ^
[14:35:13] krz: has joined #ruby
[14:35:19] shay-: hoelzro: I am using the first example of code: http://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/TCPServer.html
[14:35:25] DaniG2k: has joined #ruby
[14:35:54] dstarh: has joined #ruby
[14:36:19] shay-: hoelzro: the second connection is waiting until it gets accepted, I think there is not possiblity to refuse the second connection without multithreading
[14:36:34] rippa: has joined #ruby
[14:36:44] CloCkWeRX: has joined #ruby
[14:37:25] hoelzro: shay-: I think you could
[14:37:32] hoelzro: but also, why the aversion to threads?
[14:37:50] dejean: has joined #ruby
[14:38:08] khebbie: has joined #ruby
[14:39:58] benlovell: has joined #ruby
[14:40:03] mary5030: has joined #ruby
[14:41:02] Miphix: has joined #ruby
[14:41:25] mary5030: has joined #ruby
[14:41:26] krisquigley: has joined #ruby
[14:41:32] shay-: hoelzro: right, was just curious is there is an easy way =)
[14:42:16] jenrzzz: has joined #ruby
[14:42:31] caseypatrickdris: has joined #ruby
[14:42:50] dEPy: has joined #ruby
[14:43:02] justintv90: has joined #ruby
[14:43:23] platosha: has joined #ruby
[14:43:34] sepp2k: has joined #ruby
[14:43:42] skade: has joined #ruby
[14:44:04] fuzzyhorns: has joined #ruby
[14:44:11] jmignault: has joined #ruby
[14:44:23] carpet_the_walls: has joined #ruby
[14:44:29] hoelzro: heh, I don't know about easy =)
[14:45:35] carpet_the_walls: apeiros, that worked a treat, thanks! I have one more change to make, could I get your help please? I want to output where the filename is the same, but the filesize is different https://gist.github.com/deathwishdave/53562c3d9417893e6cc1
[14:45:48] jhooker: has joined #ruby
[14:45:49] blandflakes: has joined #ruby
[14:45:53] bluOxigen: has joined #ruby
[14:46:05] joaomdmoura: has joined #ruby
[14:46:05] carpet_the_walls: apeiros, i tried changinging the == to != in the == operator, but no joy
[14:47:15] tubuliferous_: has joined #ruby
[14:47:25] AhabsBeard: has joined #ruby
[14:47:40] redjack1964: has joined #ruby
[14:47:45] casadei: has joined #ruby
[14:48:49] apeiros: carpet_the_walls: group by filename then?
[14:49:01] apeiros: carpet_the_walls: also note that a == method should never raise
[14:49:15] apeiros: yours will raise if other does not respond to the two methods you expect
[14:49:35] leafybasil: has joined #ruby
[14:50:01] carpet_the_walls: if I group_by filename, then that won't enforce filesize has to be different
[14:50:57] apeiros: no. but it's trivial from there.
[14:51:14] apeiros: .uniq the resulting arrays -> only differing will remain
[14:51:38] fuzzyhorns: has left #ruby: ("later nerds")
[14:51:40] jhooker: has joined #ruby
[14:51:42] segfalt: has joined #ruby
[14:54:34] vikaton: has joined #ruby
[14:55:04] fusillicode: has joined #ruby
[14:55:09] fusillicode: has left #ruby: ()
[14:56:12] dopie: has joined #ruby
[14:56:18] agent_white: has joined #ruby
[14:57:16] noname2: has joined #ruby
[14:57:31] CustosLimen: has joined #ruby
[14:57:59] allcentury: has joined #ruby
[14:58:05] yardenbar: has joined #ruby
[14:58:30] tjbiddle: has joined #ruby
[14:58:40] bigkevmcd: has joined #ruby
[14:59:01] dgutierrez1287: has joined #ruby
[14:59:07] gambl0re: has joined #ruby
[14:59:09] jhooker: has joined #ruby
[15:00:10] prasselpikachu: has joined #ruby
[15:00:22] justintv90: has joined #ruby
[15:00:27] tvw: has joined #ruby
[15:00:30] mrsolo: has joined #ruby
[15:01:14] justintv90: has joined #ruby
[15:01:15] cndiv: has joined #ruby
[15:01:20] Papierkorb: has joined #ruby
[15:01:34] carpet_the_walls: apeiros, thank you very much
[15:01:50] segfalt: has joined #ruby
[15:02:11] ogpastaling: has joined #ruby
[15:02:20] skade: has joined #ruby
[15:02:37] leafybas_: has joined #ruby
[15:03:34] edwinvdgraaf: has joined #ruby
[15:04:33] jimms: has joined #ruby
[15:05:31] pikos: has joined #ruby
[15:06:40] yeticry: has joined #ruby
[15:09:46] jwilson: has joined #ruby
[15:10:45] revoohc: has joined #ruby
[15:10:56] jordanm: has joined #ruby
[15:12:35] segfalt: has joined #ruby
[15:13:06] coderhs: has joined #ruby
[15:13:07] adefa: has joined #ruby
[15:13:19] bootstrappm: has joined #ruby
[15:13:30] ixti: has joined #ruby
[15:14:20] someword: has joined #ruby
[15:14:50] sdwrage: has joined #ruby
[15:15:58] joaomdmoura: has joined #ruby
[15:16:03] renier: has joined #ruby
[15:16:17] vbexpert: has joined #ruby
[15:16:24] segfalt_: has joined #ruby
[15:17:07] jgpawletko: has joined #ruby
[15:17:23] chinmay_dd: has joined #ruby
[15:17:52] d10n-work: has joined #ruby
[15:18:42] coderhs: has joined #ruby
[15:18:51] vbexpert: Have you got vBulletin? Want to get a Mod/Product/Style? No problem request one here https://www.criosphinx.net/boards/showthread.php?p=4#post4 and we'll get it from vbulletin.org and attach it!
[15:18:59] havenwood: !mute vbexpert
[15:19:00] ruboto: -o ruboto
[15:19:04] vbexpert: Have you got vBulletin? Want to get a Mod/Product/Style? No problem request one here https://www.criosphinx.net/boards/showthread.php?p=4#post4 and we'll get it from vbulletin.org and attach it!
[15:19:15] havenwood: !kick vbexpert No spam
[15:19:17] ruboto: ruboto kicked vbexpert: spam
[15:19:17] ruboto: -o ruboto
[15:20:06] ljarvis: I'd have backed a ban
[15:21:31] mello: has joined #ruby
[15:21:31] mello: has joined #ruby
[15:22:56] jpfuentes2: has joined #ruby
[15:23:27] ndrei: has joined #ruby
[15:24:30] coderhs: has joined #ruby
[15:24:30] someword: has joined #ruby
[15:24:46] adefa: has joined #ruby
[15:25:12] ljarvis: who wants to come work with me?! https://loco2.com/about/jobs
[15:25:12] Rubie: has joined #ruby
[15:26:42] caseypatrickdris: has joined #ruby
[15:26:44] mistermocha: has joined #ruby
[15:26:53] dudedudeman: i don't know whether or not to click that....
[15:27:00] dudedudeman: shevy: help me decide. to click or not to click
[15:27:25] mistermo_: has joined #ruby
[15:28:01] adaedra: ???Has 4+ years of programming experience??? :T
[15:29:07] aapole: has joined #ruby
[15:29:28] dudedudeman: working with trains would be kind of cool
[15:29:51] ljarvis: s/trains/xml/ but yeah it's all relative
[15:30:21] _seanc_: has joined #ruby
[15:30:26] fedexo: has joined #ruby
[15:30:56] adaedra: that looks like a nice offer
[15:31:14] edwinvdg_: has joined #ruby
[15:31:18] bootstrappm: that does actually look like a nice offer, +1 ljarvis
[15:31:20] jpfuentes2: has joined #ruby
[15:32:25] chinmay_dd: has joined #ruby
[15:33:04] terlar: has joined #ruby
[15:33:05] Xeago: has joined #ruby
[15:34:27] dorei: has joined #ruby
[15:34:37] adavia: has joined #ruby
[15:35:33] lessless: has joined #ruby
[15:36:54] dopie: has joined #ruby
[15:37:39] jhass: -bbbb *!~Nate_Higg@2605:e000:8444:fb00:29de:6a12:6cc5:352c *!Nate_Higg@2605:e000:8444:fb00:29de:6a12:6cc5:352c *!*@*ip.204.140.185.41 *!*@*ip.46.166.136.199
[15:37:41] jhass: -bbbb *!*@118.140.214.74 *!~u291187@172.56.17.207 *!*@172.56.17.207 *!~u291187@172.56.17.207
[15:37:43] jhass: -bbbb reinaldob!*@*$##ruby-fix-your-connection *!*@*178.62.241.95 *!*@gateway/web/freenode/ip.178.162.216.38 *!d03627b0@gateway/web/cgi-irc/kiwiirc.com/ip.208.54.39.176
[15:38:35] jhass: -qo wwwBUKOLAYcom!*@* jhass
[15:38:39] msgodf: has joined #ruby
[15:38:53] slackbotgz: has joined #ruby
[15:39:34] mdz_: has joined #ruby
[15:39:38] jpfuente_: has joined #ruby
[15:39:40] claw: has joined #ruby
[15:41:39] sdwrage: has joined #ruby
[15:44:53] adaedra: that could even make me apply
[15:45:04] Scroff: has joined #ruby
[15:45:08] Papierkorb: Is there some short-hand to write Foo.server = { |interface, port| create_server interface, port } ?
[15:45:20] jhass: that's not valid ruby
[15:45:24] Xeago: has joined #ruby
[15:45:55] j4cknewt: has joined #ruby
[15:45:59] Papierkorb: missing 'lambda'?
[15:46:19] jhass: maybe? I don't magically see your real code
[15:46:29] adaedra: or context
[15:47:37] dfockler: has joined #ruby
[15:47:50] Papierkorb: http://stackoverflow.com/questions/17687993/how-to-get-capybara-selenium-to-play-nicely-with-ssl-in-local-environment?answertab=active#tab-top bascially I'm trying to get Capybara to use SSL and was following this answer. See the last line of it
[15:48:09] mistermocha: has joined #ruby
[15:48:22] jhass: well, that answer is a syntax error then
[15:48:23] ruv: has joined #ruby
[15:48:26] zekriad: has joined #ruby
[15:48:37] jhass: >> A.b = {|c| d }
[15:48:38] ruboto: jhass # => /tmp/execpad-53484cd435db/source-53484cd435db:2: syntax error, unexpected '|', expecting '}' ...check link for more (https://eval.in/379235)
[15:48:41] adaedra: >> a = {|b, c| [b, c]}
[15:48:42] ruboto: adaedra # => /tmp/execpad-350f6ebea72a/source-350f6ebea72a:2: syntax error, unexpected '|', expecting '}' ...check link for more (https://eval.in/379236)
[15:48:46] tjohnson: has joined #ruby
[15:48:58] adaedra: too slow again
[15:49:08] jhass: but yeah probably meant to be a proc or lambda
[15:49:18] jhass: you can use the stabby lambda if you like
[15:49:34] havenwood: stabby stab stab
[15:49:41] jhass: Capybara.server = -> {|app, port| run_ssl_server(app, port) }
[15:49:48] jhass: fucked it up
[15:49:51] bnagy: makes-me-stabby lambda
[15:49:57] jhass: Capybara.server = -> app, port { run_ssl_server(app, port) }
[15:50:07] Papierkorb: jhass: interesting, thanks.
[15:50:16] rht: has joined #ruby
[15:50:21] jhass: or you make a class
[15:50:24] Papierkorb: So, there's no short-hand for that like a 'function pointer' of sorts?
[15:50:54] jhass: class SSLServer; def call(app, port); run_ssl_server code here; end; end; Capybara.server = SSLServer
[15:50:54] sharpmachine: has joined #ruby
[15:51:06] gamename: has joined #ruby
[15:51:42] jhass: well, Capybara.server = method(:run_ssl_server) would probably even work
[15:52:04] Papierkorb: actually that lets me have a few symbols less cluttering the global scope, I think I'll go with a small class then, ty
[15:54:08] towski_: has joined #ruby
[15:54:14] bootstrappm: ljarvis how many monthly active users do you guys have if you don't mind me asking?
[15:54:16] giuseppesolinas: has joined #ruby
[15:55:39] ljarvis: bootstrappm: a few hundred thousand iirc
[15:58:06] iml_: has joined #ruby
[15:58:29] slawrence00: has joined #ruby
[15:58:35] livathinos: has joined #ruby
[16:00:04] Agoldfish: has joined #ruby
[16:01:51] ascarter: has joined #ruby
[16:03:24] startupality: has joined #ruby
[16:03:52] hoov: has joined #ruby
[16:05:27] stoogenmeyer_: has joined #ruby
[16:05:36] olistik: has joined #ruby
[16:05:40] Hanmac: shevy i added specs for stuff like WX::Point.new(x,y) == [x,y] or == OpenStruct.new({x: x, y: y}) for == {x: x ,y: y} will added later
[16:06:47] jcaho: has joined #ruby
[16:07:14] Xiti: has joined #ruby
[16:08:06] DoubleMalt: has joined #ruby
[16:09:45] pipework: hanmac: Ooh comparable!
[16:10:25] Hanmac: pipework: its not so much using comparable, but more a aggressive way of duck-typing ;P
[16:10:26] mrsolo: has joined #ruby
[16:10:41] pipework: hanmac: But you could though!
[16:10:55] pipework: and that's neat.
[16:11:23] nertzy: has joined #ruby
[16:12:39] bricker: has joined #ruby
[16:12:49] Scripore: has joined #ruby
[16:13:02] jhooker: has joined #ruby
[16:13:53] bantic: has joined #ruby
[16:14:10] krisquigley: has joined #ruby
[16:17:07] rbowlby: has joined #ruby
[16:17:36] war_pigs: has joined #ruby
[16:18:25] dfockler: aggressive ducks
[16:18:27] msgodf: has joined #ruby
[16:18:51] bronson_: has joined #ruby
[16:18:51] ascarter: has joined #ruby
[16:20:06] Jackneill: has joined #ruby
[16:20:45] jpfuentes2: has joined #ruby
[16:20:51] decoponio: has joined #ruby
[16:20:52] someword: has joined #ruby
[16:21:11] iWaffles: has joined #ruby
[16:21:57] feoh: has joined #ruby
[16:22:00] commondream: has joined #ruby
[16:22:53] feoh: Anyone have any suggestions for a good syntax completion mode for Ruby in emacs?
[16:23:20] ruv: has joined #ruby
[16:23:30] feoh: I'd love it if something would add end blocks, and give me the ability to tab complete methods on an object.
[16:23:39] spider-mario: has joined #ruby
[16:23:48] commondream: has joined #ruby
[16:24:18] yqt: has joined #ruby
[16:25:30] stoogenmeyer_: has joined #ruby
[16:25:43] Parker0: has joined #ruby
[16:26:18] revath: has joined #ruby
[16:26:38] atm0sphere: has joined #ruby
[16:28:24] gambl0re: has joined #ruby
[16:28:49] revath: has left #ruby: ()
[16:29:16] the_real_intinig: has joined #ruby
[16:29:39] drocsid: has joined #ruby
[16:30:25] atm0sphere: can anyone shoe me the roadmap hthat how to call c file through ffi ruby?
[16:30:41] drocsid: If I have two hashes, and want to remove the union of the hashes from the other hash, is there a method to do this, or do I need to write a loop to remove each key myself?
[16:30:54] ruby-lang459: has joined #ruby
[16:31:00] michael_mbp: has joined #ruby
[16:31:35] ruby-lang459: Hi, I know javascript but am teaching myself ruby could someone tell me if this is the proper/best syntax
[16:31:37] ruby-lang459: http://justpaste.it/loic
[16:32:28] axl_: ruby-lang459, no XD
[16:32:30] adaedra: wow, I didn't know there was worse than pastebin
[16:32:39] adaedra: lacks a end, def is not capitalized
[16:32:41] ruby-lang459: pastebin..thats the site i was looking for
[16:32:48] adaedra: no it's not
[16:32:53] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[16:33:22] adaedra: and syntax errors aside, your code always returns true
[16:33:41] ruby-lang459: http://pastebin.com/CS7pa9nD
[16:33:42] ruboto: ruby-lang459, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5cea9e35643ad3f5e79a
[16:33:42] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:33:56] ruby-lang459: ahh dammit sorry
[16:34:04] havenwood: ruby-lang459: `=` an assignment operator
[16:34:12] ruby-lang459: oh, is it === ?
[16:34:29] adaedra: another try, you're close
[16:34:30] atm0sphere: can anyone show me the roadmap hthat how to call c file through ffi ruby?
[16:34:50] havenwood: ruby-lang459: threequals is mainly used implicitly by the when clauses of a case statement
[16:34:58] axl__: ruby-lang459, just do : x == 10 ? true : false
[16:35:06] havenwood: ruby-lang459: twoquals!
[16:35:07] adaedra: or just x == 10
[16:35:20] ruby-lang459: but how do I make it a function?
[16:35:27] adaedra: like you did
[16:35:51] ruby-lang459: https://gist.github.com/anonymous/a02266e290c9f4e1748a
[16:35:54] Hirzu: has joined #ruby
[16:35:54] ruby-lang459: is that correct?
[16:35:56] axl__: but you don't need a function for that
[16:36:16] havenwood: ruby-lang459: You're missing and `end` to your if statement
[16:36:44] havenwood: ruby-lang459: Try it in irb or pry.
[16:36:45] adaedra: ?gistusage
[16:36:45] ruboto: I don't know anything about gistusage
[16:36:48] adaedra: ?gist_usage
[16:36:49] ruboto: To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
[16:37:12] axl__: gistusage
[16:37:19] axl__: ?gistusage
[16:37:19] ruboto: I don't know anything about gistusage
[16:37:33] codecop: has joined #ruby
[16:37:35] ruby-lang459: https://gist.github.com/anonymous/5e98efe1292fa7aa6dda
[16:37:38] havenwood: axl__: gistusage != gist_usage
[16:37:52] ruby-lang459: I know I don't need it as a function, but just trying to learn how to set a function up with if else :)
[16:38:06] havenwood: ruby-lang459: A nit, but it's a method not a function.
[16:38:10] axl__: havenwood, im just trolling around
[16:38:13] axl__: with... a bot
[16:38:17] havenwood: axl__: aha!
[16:38:24] k3asd`: has joined #ruby
[16:38:31] adaedra: if your goal is just to set up a function^Wmethod, this looks like it
[16:38:33] x1337807x: has joined #ruby
[16:38:34] havenwood: ruby-lang459: A minor incorrect detail.
[16:38:52] ruby-lang459: well, i was trying to take a javascript function and do it in ruby
[16:38:56] ruby-lang459: so i would want a method?
[16:39:04] havenwood: ruby-lang459: We name methods with snake_case, never headlessCamelCase in Ruby.
[16:39:08] Scripore: has joined #ruby
[16:39:09] jordanm: has joined #ruby
[16:39:16] havenwood: ruby-lang459: def my_method
[16:39:23] JimmyNeutron: has joined #ruby
[16:39:33] ruby-lang459: but the syntax is correct now?
[16:39:34] havenwood: ruby-lang459: Drop the `return`s.
[16:39:40] havenwood: ruby-lang459: Yup, run it in irb: irb
[16:39:48] ruby-lang459: https://gist.github.com/anonymous/fe48acec7a63f75c099b
[16:40:12] havenwood: ruby-lang459: Now just drop the returns, and switch the hard tabs to two-spaces.
[16:40:21] adaedra: you don't need the return, as value is passed outside the if
[16:40:21] finisherr: has joined #ruby
[16:40:29] adaedra: and you don't need as many line returns
[16:40:55] kerunaru: has joined #ruby
[16:40:55] havenwood: ruby-lang459: And if you want a cherry on top, rename the gistfile1.txt to my_method.rb for syntax highlighting and making it easier for others to try it out by cloning your gist.
[16:41:15] intinig: has joined #ruby
[16:41:30] Torsten`: has left #ruby: ()
[16:41:48] ruby-lang459: https://gist.github.com/anonymous/9bcb54a183fb410e1b93
[16:42:17] havenwood: ruby-lang459: Check in irb: x == 10
[16:42:21] Spami: has joined #ruby
[16:42:25] aapole: has joined #ruby
[16:42:25] havenwood: ruby-lang459: Now compare that to your if statement.
[16:42:39] havenwood: ruby-lang459: In irb: 5 == 10
[16:42:43] jhooker: has joined #ruby
[16:42:43] havenwood: ruby-lang459: 10 == 10
[16:43:15] havenwood: >> 10 == 10
[16:43:16] ruboto: havenwood # => true (https://eval.in/379250)
[16:43:38] baweaver: has joined #ruby
[16:43:50] havenwood: ruboto: Sorry, I explained badly.
[16:43:57] havenwood: ruby-lang459: ^
[16:44:10] havenwood: ruby-lang459: Do you know how to use irb?
[16:44:23] adaedra: In French, we have a saying "Never two without three"
[16:44:28] adaedra: Seems you broke it here.
[16:44:34] havenwood: ruby-lang459: From your terminal type: irb
[16:44:42] drocsid: I can't find a method which given two hashes, removes the intersection of the two hashes. But it should be easy enough to create this method. Acrually I don't even need to check the values, just the keys.
[16:44:49] blueOxigen: has joined #ruby
[16:44:53] adaedra: see you all
[16:44:59] havenwood: adaedra: o/
[16:45:04] dionysus69: has joined #ruby
[16:45:08] adaedra: drocsid: if you have activesupport, Hash#reject and Hash#keys
[16:45:08] Spami: has joined #ruby
[16:45:44] havenwood: ruby-lang459: Try out `5 == 10` and hit return, then `10 == 10` and hit return. What do they return?
[16:46:01] ruby-lang459: well that make sense..
[16:46:10] havenwood: ruby-lang459: With that in mind, what's the point of the if statement in your method?
[16:46:23] ruby-lang459: to check if x is 10, if not it returns false
[16:46:31] havenwood: ruby-lang459: The return value from the expression is already your desired return value.
[16:46:37] whoami: has joined #ruby
[16:46:58] havenwood: ruby-lang459: So compare your if statement with `5 == 10` to just plain old: 5 == 10
[16:47:17] ruby-lang459: you're saying the if/else is unnecessary
[16:47:29] thiagoflins: has joined #ruby
[16:47:57] havenwood: ruby-lang459: Indent two spaces inside the method.
[16:48:40] ruby-lang459: i gotcha, i was doing it more just to learn how to setup a function/emethod
[16:48:51] ascarter: has joined #ruby
[16:48:52] havenwood: ruby-lang459: Roger that.
[16:49:09] ruby-lang459: if you were comparing a # regularly on a call, you would seutp a method though, no?
[16:49:09] howdoi: sad, in ruby we can't typecast a boolean to an int, without extending the default classes
[16:49:21] howdoi: true.to_int bombs ....hmm
[16:50:26] _djbkd: has joined #ruby
[16:50:38] havenwood: howdoi: What's the context where you want `true` to be an Integer?
[16:50:41] bnagy: you can't typecast anything to anything
[16:50:59] howdoi: havenwood :param to db
[16:51:07] dfockler: howdoi: you can always write your own function
[16:51:33] _djbkd: has joined #ruby
[16:51:44] howdoi: we can do that, but not true.to_i, why?
[16:52:07] dfockler: >> true ? 1 : 0
[16:52:07] thiagovsk: has joined #ruby
[16:52:08] ruboto: dfockler # => 1 (https://eval.in/379260)
[16:52:19] howdoi: dfockler there are so many inbuilt functions, why not such a simple typecast?
[16:52:35] dfockler: because there is no definition of what int true should be
[16:52:38] bluOxigen: has joined #ruby
[16:52:38] bnagy: it's not a typecast
[16:52:59] towski_: has joined #ruby
[16:53:00] starfox_sf: has joined #ruby
[16:53:01] jackjackdripper: has joined #ruby
[16:53:01] howdoi: class TrueClass
[16:53:05] bnagy: ruby is beyond strongly typed
[16:53:05] havenwood: howdoi: Ruby makes things beautiful and simple to encourage use and ugly to discourage use.
[16:53:06] dfockler: bnagy: like you said you can't typecast in ruby
[16:53:10] RobertBirnie: has joined #ruby
[16:53:11] howdoi: def to_i 1 end
[16:53:39] howdoi: everything is an Object right?
[16:53:41] bootstrappm: havenwood: that's a nice way to put it
[16:53:51] bnagy: TrueClass and FalseClass deliberately have very limited methods
[16:53:59] bgmarx: has joined #ruby
[16:54:11] bootstrappm: howdoi: just because something can be done and can be done easily doesn't mean it should be done
[16:54:19] howdoi: what's so evident about the deliberation ?
[16:54:27] ruby-lang459: havenwood: thanks for your help, having fun learning ruby
[16:54:46] howdoi: bootstrappm agree, but there must be a resaon why it's not done.
[16:55:04] havenwood: ruby-lang459: nice
[16:55:07] bnagy: >> true.object_id
[16:55:08] ruboto: bnagy # => 2 (https://eval.in/379262)
[16:55:27] ruby-lang459: i know html/css/javascript - but not many jobs for that
[16:55:27] bnagy: because the real truth would SHOCK you!
[16:55:31] bootstrappm: I think dfockler phrased it pretty well. Semantically, true has no integer representation
[16:55:31] howdoi: in irb, if I do a true.<tab> why on earth does it show to_i and to_int if it does not work ?
[16:55:33] ruby-lang459: Ruby and php seem to be most demanded
[16:55:50] howdoi: bnagy heh heh I liked to face the truth :)
[16:56:04] dfockler: and in ruby every but nil and false are truthy
[16:56:17] dfockler: so any other integer would violate that idea
[16:56:45] howdoi: true.object_id is 20 for me!
[16:56:54] havenwood: ruby-lang459: Old languages have demand because they need maintaining and everyone is doing new things. Popular languages are in demand because there new things being grown. Obscure languages are in demand because no one knows them.
[16:56:59] bnagy: yeah not a great idea to rely on that
[16:57:22] finisherr: Is there an easy way for gemspec to include all files under lib? Just provide a method that searches for each file under the lib directory and returns an array?
[16:57:52] bnagy: it's fixed per implementation afaik, and trues are immediates, effectively, like small ints
[16:58:05] bnagy: but that's all interpreter business
[16:58:11] howdoi: bnagy but why does irb tab complete those method which does not even operator on boolean ?
[16:58:20] bnagy: mine doesn't
[16:58:22] bootstrappm: corollary: languages where most existing work has been phased out, have full libraries, and everybodys already tried are dead?
[16:58:47] howdoi: Display all 931 possibilities? (y or n)
[16:59:38] havenwood: ?pry howdoi
[16:59:38] ruboto: howdoi, 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??? directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
[16:59:53] howdoi: havenwood yup, aware of pry
[17:00:15] howdoi: pry says: Display all 1845 possibilities? (y or n)
[17:00:19] howdoi: holy goodness
[17:00:41] tskogberg: has joined #ruby
[17:01:00] howdoi: how do view the source of a class within pry?
[17:01:04] howdoi: to_soruce ??
[17:01:05] bnagy: >> true.methods.include? :to_i
[17:01:06] ruboto: bnagy # => false (https://eval.in/379263)
[17:01:13] ogpastal_: has joined #ruby
[17:01:34] havenwood: howdoi: `$` is an alias for `show-source`, from Pry see: help
[17:01:40] allcentury: has joined #ruby
[17:01:49] bnagy: >> true.methods.include?(:to_i).__id__ # VICTORY!
[17:01:50] ruboto: bnagy # => 0 (https://eval.in/379264)
[17:01:52] havenwood: howdoi: help show-source
[17:02:11] howdoi: bnagy nice :)
[17:02:16] howdoi: source_file ?
[17:02:23] JDiPierro: has joined #ruby
[17:02:39] howdoi: >> > show-source TrueClass
[17:02:40] ruboto: howdoi # => /tmp/execpad-d33207d1a0ee/source-d33207d1a0ee:2: syntax error, unexpected '>' ...check link for more (https://eval.in/379265)
[17:02:45] howdoi: >> show-source TrueClass
[17:02:46] ruboto: howdoi # => /tmp/execpad-cf52f1ef94d8/source-cf52f1ef94d8:2: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/379266)
[17:02:55] havenwood: howdoi: Try in your own terminal.
[17:03:02] howdoi: Error: Couldn't locate a definition for TrueClass!
[17:03:04] havenwood: howdoi: From Pry.
[17:03:13] howdoi: I wanted to make a point, sorry for that
[17:03:17] havenwood: howdoi: gem install pry pry-doc
[17:03:29] havenwood: howdoi: Did you install?: pry-doc
[17:03:40] howdoi: doing it now ;)
[17:03:58] howdoi: but there is this source_file attr for every class, right?
[17:05:00] howdoi: Done installing documentation for pry after 4 seconds
[17:05:07] armyriad: has joined #ruby
[17:05:11] howdoi: ^ does not sound right grammatically ?
[17:05:14] rodferso1: has joined #ruby
[17:05:30] Musashi007: has joined #ruby
[17:05:33] Filete: has joined #ruby
[17:06:26] wallerdev: has joined #ruby
[17:07:10] havenwood: howdoi: For example, from Pry try: public_method(:pretty_inspect).source_location
[17:07:21] havenwood: howdoi: But do read: help
[17:07:27] pietr0: has joined #ruby
[17:07:29] GGMethos: has joined #ruby
[17:07:30] ta: has joined #ruby
[17:07:49] howdoi: havenwood nice :)
[17:08:11] havenwood: howdoi: http://ruby-doc.org/core/Method.html#method-i-source_location
[17:08:20] howdoi: after gem install pry pry-doc, it still says Error: Couldn't locate a definition for TrueClass!
[17:09:41] psyprus: has joined #ruby
[17:10:02] segfalt: has joined #ruby
[17:10:15] mello: has joined #ruby
[17:10:15] mello: has joined #ruby
[17:11:53] jhooker: has joined #ruby
[17:12:26] thiagovsk: has left #ruby: ()
[17:13:05] paulcsmith: has joined #ruby
[17:13:13] dseitz: has joined #ruby
[17:13:18] Hanmac: howdoi: source_location only works for ruby methods, not compiled ones
[17:14:19] aryaching: has joined #ruby
[17:15:45] sts: hello folks. How can I access the instance of Rake::Task from within a rake task?
[17:15:58] jhass: sts: isn't it yielded to the task?
[17:16:07] havenwood: howdoi: gem install pry-doc pry-docmore
[17:16:14] havenwood: howdoi: show-doc true
[17:16:16] ta: has joined #ruby
[17:16:30] abirazor: has joined #ruby
[17:16:43] havenwood: #=> not false. Everything in Ruby (except `false` and `nil`) are true...
[17:18:03] rbowlby: has joined #ruby
[17:18:45] bmalum: has joined #ruby
[17:19:32] sts: jhass: Hm. How would I access it then?
[17:19:51] jhass: sts: do |t|
[17:19:56] jhass: t is the task object
[17:20:02] howdoi: hanmac how do I know which are ruby methods and which are compiled ones?
[17:20:31] dhialife: has joined #ruby
[17:20:56] howdoi: havenwood, nice
[17:20:56] Hanmac: howdoi: methods from core are mostly compiled ones, ones from stdlib are sometimes compiled too
[17:21:17] howdoi: yeah, but is there a method or a way to check them in the cli?
[17:21:22] jhass: howdoi: if you have pry-doc you don't need to care, just ? [].pretty_inspect or whatever
[17:21:40] jhass: ri String#gsub
[17:21:42] bootstrappm: if you look in the online ruby documentation the ones that aren't compiled have a Show Source option
[17:22:07] jhass: bootstrappm: what docs do you use? all I do show the C source functions
[17:22:31] susmus: has joined #ruby
[17:22:34] joaomdmoura: has joined #ruby
[17:22:52] alphaatom: has joined #ruby
[17:23:15] bootstrappm: you're right jhass my mistake. I should have said: the ones that are compiled start with rb_ and are clearly in C
[17:23:28] bootstrappm: when you click the Show Source option
[17:23:39] krz: has joined #ruby
[17:23:41] zipace: has joined #ruby
[17:24:07] alphaatom: has joined #ruby
[17:26:02] sts: jhass: yeah that worked.
[17:26:18] sts: unfortunately it doesn't seem I can access t.sources from within Capistrano tasks.
[17:26:28] krisquigley: has joined #ruby
[17:26:43] drewo: has joined #ruby
[17:27:05] cyrus_mc: has joined #ruby
[17:27:11] jhass: t.prerequisites ?
[17:27:37] jhass: maybe sources was only for rules? I don't remember
[17:28:25] aapole: has joined #ruby
[17:28:25] shevy: hanmac don't forget the examples!
[17:28:25] ht__: has joined #ruby
[17:28:40] maxshelley: has joined #ruby
[17:28:42] cyrus_mc: I ran into a situation where I required an updated ruby on a CentOS 6 box (as it only comes with 1.8.7. Built my own ruby 2.2.2 package. However the base repositories have RPMs for most gems. But they install in the 1.8.7 path. Is there a way to have the new version of ruby reference that path as well for gems, or else I would have to rebuild RPM for all the gems I need.
[17:28:48] Maletor: has joined #ruby
[17:29:02] ki0: has joined #ruby
[17:29:19] baweaver: has joined #ruby
[17:29:24] jhass: cyrus_mc: 2.2.2 and 1.8 are ABI incompatible, so while yes, it will not work
[17:29:42] jhass: cyrus_mc: get bundler and use --deployment, don't install gems via RPM
[17:29:44] ogpastaling: has joined #ruby
[17:30:02] cyrus_mc: jhass: ok, I will look at bundler
[17:30:11] sts: jhass: http://ruby-doc.org/stdlib-2.0.0/libdoc/rake/rdoc/Rake/Task.html#method-i-sources
[17:30:21] eam: cyrus_mc: if you're deploying apps on centos6, consider bundling a ruby interpreter per-app
[17:30:31] sts: jhass: for me t.sources is []
[17:30:39] jhass: sts: http://ruby-doc.org/stdlib-2.0.0/libdoc/rake/rdoc/Rake/Task.html#method-i-prerequisite_tasks ?
[17:31:18] ascarter: has joined #ruby
[17:31:18] jhass: sts: http://www.rubydoc.info/gems/rake/Rake/Task#prerequisites-instance_method
[17:31:18] sts: jhass: also []
[17:31:26] jhass: you're sure there any? :P
[17:31:30] jhass: *there are
[17:31:56] sts: jhass: well I call one task from another task. now i want to find out who was the caller.
[17:32:13] bootstrappm: has left #ruby: ()
[17:32:20] ruby-lang695: has joined #ruby
[17:32:21] thomcom: has joined #ruby
[17:32:21] ixti: has joined #ruby
[17:32:24] shadoi: has joined #ruby
[17:32:29] jhass: sts: oh, that's not what either of these is about
[17:32:36] sts: jhass: but 'pp t' gives me: <Rake::Task notify:hubot:send => []>
[17:32:37] jenrzzz: has joined #ruby
[17:32:56] aaeron: has joined #ruby
[17:32:58] zendrix: has joined #ruby
[17:33:12] chouhoul_: has joined #ruby
[17:33:12] jhass: yeah, I doubt that information is available tbh
[17:33:21] jhass: at least not as public API
[17:33:23] _seanc_: has joined #ruby
[17:34:02] Eiam: has joined #ruby
[17:34:17] towski_: has joined #ruby
[17:34:29] jhass: sts: I mean if we look at Task#invoke, invoke_with_call_chain(task_args, InvocationChain::EMPTY)
[17:34:34] moretti: has joined #ruby
[17:34:40] jhass: it's specifically empty even internally that way
[17:34:55] sts: basically I want to execute a notify task, and have the task determine whether it was successfull or exited because of an exception.
[17:35:31] ascarter: has joined #ruby
[17:35:35] jhass: I think you want a normal method/class you can call and pass that information as an argument
[17:35:56] jhass: Reporter.report_error / Reporter.report_success
[17:36:16] jhass: just because it's a rake task doesn't mean you have to stuff everything it does into rake tasks too
[17:36:43] jwaldrip: has joined #ruby
[17:37:01] bantic: has joined #ruby
[17:38:38] jwaldrip: has joined #ruby
[17:39:33] blueOxigen: has joined #ruby
[17:39:57] duderonomy: has joined #ruby
[17:40:27] bgmarx: has joined #ruby
[17:40:30] zendrix: has joined #ruby
[17:40:47] jwaldrip: has joined #ruby
[17:40:51] drbrain: sts: if an exception is raised in a task rake is done and bails out
[17:41:03] pdoherty: has joined #ruby
[17:41:10] drbrain: rake doesn't have a mechanize for rescuing from task failure
[17:41:56] sts: drbrain: In capistrano it will usually call deploy:failed before it exits
[17:42:06] yaw: has joined #ruby
[17:42:18] drbrain: they probably wrap regular ruby exception handling around the inside of their tasks
[17:42:29] drbrain: then invoke that task from the capistrano side
[17:42:54] jwaldrip: has joined #ruby
[17:43:54] mike___1234: has joined #ruby
[17:44:18] drbrain: sts: https://github.com/capistrano/capistrano/search?utf8=???&q=exit_deploy_because_of_exception
[17:44:24] micmus: has joined #ruby
[17:44:47] drbrain: they subclass Rake::Application to do special things
[17:44:51] mello: has joined #ruby
[17:45:03] Domon: has joined #ruby
[17:45:22] drbrain: when I build larger tools atop rake I put all the guts in a Plain Ol' Ruby Library
[17:45:35] drbrain: then call into the library from tasks that are 2???3 lines each
[17:45:50] sts: drbrain: any examples?
[17:46:04] gsd: has joined #ruby
[17:47:15] sts: anyways I'm gonna figure it out. I got a small example working now
[17:47:41] drbrain: ok, I don't think I have anything in public repos
[17:48:49] jwaldrip_: has joined #ruby
[17:48:58] drbrain: one way to implement "if task A failed execute task B" is to have A rescue an exception and set a flag, then have B depend upon A and check the flag
[17:49:46] drbrain: if you don't control the source of A you can use invoke, (but ugh)
[17:50:07] jhass: I still don't see why you need to stuff the failure case into a task at all
[17:50:10] arooni-mobile: has joined #ruby
[17:50:11] joaomdmoura: has joined #ruby
[17:50:19] jhass: it's not like you'll ever call that task
[17:50:40] ascarter: has joined #ruby
[17:50:46] jhass: it's there for when you actual task failed, as such it's actually part of that actual task
[17:51:36] jhass: if you need to deduplicate just apply your regular programming skills, see above
[17:52:30] ascarter: has joined #ruby
[17:53:42] Xeago: has joined #ruby
[17:54:07] jwaldrip_: has joined #ruby
[17:54:23] mister_solo: has joined #ruby
[17:54:33] hakunin: has joined #ruby
[17:54:39] setient: has joined #ruby
[17:55:18] platzhirsch: has left #ruby: ()
[17:55:20] sandelius: has joined #ruby
[17:56:57] mister_s_: has joined #ruby
[17:58:01] umgrosscol: has joined #ruby
[17:58:31] apt-get_: has joined #ruby
[17:58:34] Yiota: has joined #ruby
[17:58:35] sts: hmm. I send need to send different notifications based upon whether the run was successful or not.
[17:58:52] aaeron: has joined #ruby
[17:58:52] sts: So i either need it as argument to one method, or I need two methods..
[17:58:59] apt-get_: has joined #ruby
[17:59:23] shevy: .success and .failure
[18:00:15] Eiam: has joined #ruby
[18:01:21] wallerdev2: has joined #ruby
[18:02:00] apeiros: ACTION doesn't like tasks with code
[18:02:08] apeiros: I prefer rake task to call into library code
[18:03:50] ascarter: has joined #ruby
[18:04:10] rockymadden: has joined #ruby
[18:04:14] mike___1234: has joined #ruby
[18:05:16] hahuang65: has joined #ruby
[18:05:59] michaeldeol: has joined #ruby
[18:06:34] Xeago: has joined #ruby
[18:06:44] baweaver: has joined #ruby
[18:08:02] mwlang: has joined #ruby
[18:08:11] jhass: sts: yes, any problem with that?
[18:09:10] Xeago: has joined #ruby
[18:10:23] tubuliferous_: has joined #ruby
[18:10:48] nertzy: has joined #ruby
[18:12:11] mwlang: I need a better strategy for accessing values of a hash that can be 5 to 7 levels deep. For example: foo[:case_info][:docket][:defendant][:name][:first_name] I know I can use #fetch as foo.fetch(:case_info, {}).fetch(:docket, {}).fetch(:name, {}).fetch(:first_name, nil), but man, that???s unwieldy.
[18:12:39] dfockler: mwlang: split them into separate objects?
[18:13:02] dfockler: or use something like OpenStruct to access them as members
[18:13:23] mwlang: dfockler: I was thinking something along those lines???somehow break up and feed into a bunch of Structs or something.
[18:14:02] jhass: why are you so uncertain about the structure anyway?
[18:14:05] mwlang: the challenge is, if any section is missing along the way, I want nil back.
[18:14:08] jhass: why's all of that optional?
[18:14:12] jwaldrip_: has joined #ruby
[18:14:18] mwlang: jhass: legacy system and human error
[18:14:33] mwlang: jhass: within a gov???t entity.
[18:14:42] mwlang: jhass: ???nuff said? :-)
[18:14:56] rikai: has joined #ruby
[18:15:17] mwlang: jhass: it???s actually a bunch of SOAP exchanges I???ve turned into Hashes with the nori gem.
[18:15:44] jhass: would actually be a fun case for https://github.com/tomstuart/monads
[18:15:46] mwlang: but the legacy system doesn???t enforce the presence of everything. There are some I???ll need to enforce.
[18:15:51] jhass: wonder if anybody uses these in prod
[18:16:07] mike___1234: has joined #ruby
[18:16:13] apeiros: mwlang: wrap it in a class which manages accessing for you
[18:16:27] apeiros: foo.fetch(:a, :b, :c, ???)
[18:16:52] alphaatom: has joined #ruby
[18:16:56] dfockler: I still don't understand monads
[18:17:18] veleno: has joined #ruby
[18:17:30] mikecmpbll: has joined #ruby
[18:17:45] jhass: dfockler: watch the talk linked in the repos description
[18:18:35] Dopagod: has joined #ruby
[18:18:44] Dopagod: has joined #ruby
[18:18:44] shevy: monads are all the things dfockler
[18:19:28] jwaldrip_: has joined #ruby
[18:19:49] mwlang: jhass: maybe monad???That???s exactly my use-case.
[18:20:58] mwlang: I???d be happy with a syntax like Maybe Int -> Maybe Int -> Maybe Int
[18:21:13] iamjarvo: has joined #ruby
[18:21:16] mwlang: vs. the .and_then {} blocks
[18:21:24] __butch__: has joined #ruby
[18:21:25] alphaatom: has joined #ruby
[18:21:46] dfockler: after 3 minutes I still don't understand monads...
[18:22:23] mrsolo: has joined #ruby
[18:22:24] Axsuul: has joined #ruby
[18:22:45] mwlang: dfockler: take the maybe nomads???chain up a bunch of objects in a straight line. To get to the 5th object, 1st - 4th have to be non-nil.
[18:23:05] mwlang: if at any point in that chain one of those objects is nil, nil is returned and we stop walking the chain.
[18:23:14] jhass: dfockler: it does take at least the half thing
[18:23:27] jhass: mwlang: method_missing
[18:23:30] dfockler: haha I know, I'm just being obstinate
[18:23:54] jhass: mwlang: override it to return an optional and add a value accessor
[18:24:06] jhass: Optional.new(hash).foo.bar.baz.value
[18:24:18] gsd: has joined #ruby
[18:24:27] zekriad: mwlang: have one laying around https://gist.github.com/zekriad/a50c6913fc24bba81a7a you may be able to drop in.
[18:25:17] jhass: the readme lacks demoing it, but https://github.com/tomstuart/monads/blob/master/lib/monads/monad.rb#L9
[18:25:20] jhooker: has joined #ruby
[18:25:39] thiagofm: has joined #ruby
[18:25:46] shevy: dfockler take schroedinger's cat. It maybe dead or it maybe alive. That's the example for a maybe monad
[18:26:11] hdev1: has joined #ruby
[18:26:29] jenrzzz: has joined #ruby
[18:27:03] dfockler: I understand how a Maybe works
[18:27:04] umgrosscol: has joined #ruby
[18:27:10] dfockler: and Optional
[18:27:37] mwlang: zekriad: thanks! checking it out now.
[18:28:11] Xeago: has joined #ruby
[18:28:39] megaman: has joined #ruby
[18:28:46] megaman: Hi everyone
[18:28:59] dfockler: He's a fighting robot!
[18:29:35] jwaldrip_: has joined #ruby
[18:29:52] megaman: has left #ruby: ()
[18:30:03] jhass: you scared them :(
[18:30:30] bin_005: has joined #ruby
[18:31:43] mc_fail: has joined #ruby
[18:31:54] kinduff: has joined #ruby
[18:31:54] kinduff: has joined #ruby
[18:32:10] whippythellama: has joined #ruby
[18:32:23] apeiros: dfockler: to me, it also was a very dying robot :(
[18:33:19] drewo: has joined #ruby
[18:33:52] wallerdev: has joined #ruby
[18:34:30] Dingus: has joined #ruby
[18:34:47] zendrix: has joined #ruby
[18:38:44] Xiti`: has joined #ruby
[18:39:01] postmodern: has joined #ruby
[18:40:31] dfockler: Did he die a lot?
[18:42:08] miah: johnny 5 is alive!
[18:43:09] mpistone: has joined #ruby
[18:43:48] khebbie: has joined #ruby
[18:43:54] jwaldrip_: has joined #ruby
[18:44:05] Eiam_: has joined #ruby
[18:44:25] allomov: has joined #ruby
[18:44:36] giuseppesolinas: has joined #ruby
[18:45:07] fabrice31: has joined #ruby
[18:45:27] shevy: this is hilarious to no ends miah
[18:45:29] apeiros: dfockler: megaman? yes. every other second.
[18:45:41] shevy: that english line has a punch-line ... "johnny five, is alive"
[18:45:42] apeiros: the only kind of death it didn't die was getting eaten by a grue???
[18:45:43] dfockler: haha I don't remember that
[18:45:47] mpistone: has left #ruby: ()
[18:46:16] deric_skibotn: has joined #ruby
[18:46:17] shevy: in german it is "Nummer 5 lebt" which sort of is the translation "number five is alive"; but during that translation, the punchline is completely lost
[18:46:18] yaw: has joined #ruby
[18:46:42] ferfoster: has joined #ruby
[18:46:57] shevy: http://www.imdb.com/title/tt0091949/
[18:47:11] jhass: shevy: give me a single example where a german movie title doesn't destroy a punchline the original had
[18:47:13] yaw: has joined #ruby
[18:47:18] rikai: has joined #ruby
[18:47:26] yaw: has left #ruby: ()
[18:47:51] shevy: jhass project A! http://www.imdb.com/title/tt0085127/
[18:47:55] kirun: has joined #ruby
[18:47:55] miah: HEY LASERLIPS
[18:48:03] shevy: the big pirate boss spoke in northern germany dialect
[18:48:08] miah: your mother was a snowblower, your daddy was a lawnmower
[18:48:26] miah: i tried watching that movie again recently... it was difficult i didnt get that far.
[18:48:27] dfockler: auf Ihren Hintern halten
[18:48:33] shevy: actually, most translated chinese kung fu movies are a lot more fun in german, than in the english variant :)
[18:48:42] shevy: lol dfockler
[18:48:50] jhass: miah: chappie is basically a recent version of the same story
[18:49:03] miah: ya i saw chappie, it was alright
[18:49:11] bougyman: I thought it was better than alright.
[18:49:16] bougyman: just saw it yesterday.
[18:49:17] Axsuul: has joined #ruby
[18:49:17] miah: i think short circuit was better
[18:49:18] dfockler: what would be funnier would to have google translate a full movie from english to german
[18:49:26] bougyman: short circuit was absolutely not better.
[18:49:33] shevy: from that movie a pretty epic jackie stunt https://www.youtube.com/watch?v=Yj0zNIUNLTo
[18:49:34] jwaldrip_: has joined #ruby
[18:49:39] miah: opinions are like assholes, everybody has their own?
[18:49:55] bougyman: short circuit was a cheesy comedy.
[18:50:11] bougyman: chappie was just a higher level.
[18:50:35] shevy: robots don't have that!
[18:50:37] miah: it was a 1.5 hour long Die Antewoord skit
[18:50:40] atomical: has joined #ruby
[18:50:47] shevy: sounds dutch
[18:50:55] miah: well, south africa
[18:51:02] bougyman: close enough
[18:51:18] jhass: anyway, make we should give #ruby-offtopic some life with that topic ;)
[18:51:23] jhass: er, *maybe
[18:51:27] miah: agree =)
[18:52:04] shevy: offtopic talk always generates the most traffic
[18:52:44] dfockler: ahhh I can finally pretend I understand Monads
[18:52:58] jhass: yeah, it's a great talk for that
[18:53:15] miah: i can only pretend
[18:54:57] kadoppe: has joined #ruby
[18:55:46] shevy: dfockler can you explain the simplest monad in a single sentence?
[18:55:50] dfinninger: has joined #ruby
[18:56:22] dfockler: An optional returns a value or it doesn't
[18:56:49] mleung: has joined #ruby
[18:58:12] haxr: has joined #ruby
[18:58:50] jwaldrip_: has joined #ruby
[18:58:57] dfockler: but the important part is that you can use the monad as an interface to use the return values
[18:59:08] dfockler: in a standard way
[18:59:48] jhooker: has joined #ruby
[18:59:50] IanVorn118: has joined #ruby
[19:00:54] Yiota: has joined #ruby
[19:02:13] solars: has joined #ruby
[19:03:50] qwertme: has joined #ruby
[19:04:04] jwaldrip_: has joined #ruby
[19:04:12] shevy: so a monad is a wrapper over return values?
[19:04:43] dfockler: yeah basically monads are burritos
[19:04:45] joelataylor: has joined #ruby
[19:04:51] iamjarvo: has joined #ruby
[19:04:55] mrsolo: has joined #ruby
[19:05:16] zekriad: hehe, monad analogies...
[19:05:19] aspiers: has joined #ruby
[19:05:31] iamjarvo: has joined #ruby
[19:05:39] plashchynski: has joined #ruby
[19:06:25] iamjarvo: has joined #ruby
[19:06:27] apeiros: -o apeiros
[19:07:08] iamjarvo: has joined #ruby
[19:07:47] iamjarvo: has joined #ruby
[19:07:58] chrisja: has joined #ruby
[19:08:02] DEA7TH: has joined #ruby
[19:08:07] IanVorn118: has joined #ruby
[19:08:23] krisquigley: has joined #ruby
[19:08:25] iamjarvo: has joined #ruby
[19:08:40] Zai00: has joined #ruby
[19:09:01] Ox0dea: has joined #ruby
[19:09:03] iamjarvo: has joined #ruby
[19:09:05] jwaldrip_: has joined #ruby
[19:09:26] Ox0dea: Hey, you got your categorical endofunctor in my zygomatic prepromorphism!
[19:09:36] iamjarvo: has joined #ruby
[19:10:09] ruby_nuby: has joined #ruby
[19:10:14] iamjarvo: has joined #ruby
[19:10:25] yqt: has joined #ruby
[19:10:32] IanV0rn: has joined #ruby
[19:10:51] iamjarvo: has joined #ruby
[19:10:54] dfockler: In other words your return value was nil
[19:11:09] mdz_: has joined #ruby
[19:11:34] iamjarvo: has joined #ruby
[19:12:19] iamjarvo: has joined #ruby
[19:12:57] iamjarvo: has joined #ruby
[19:12:58] rockymad_: has joined #ruby
[19:13:38] iamjarvo: has joined #ruby
[19:14:01] baweaver: has joined #ruby
[19:14:07] jwaldrip_: has joined #ruby
[19:14:30] iamjarvo: has joined #ruby
[19:14:39] Parter_: has joined #ruby
[19:14:43] kyrylo: has joined #ruby
[19:15:03] iamjarvo: has joined #ruby
[19:15:40] iamjarvo: has joined #ruby
[19:16:07] apofis: has joined #ruby
[19:16:20] iamjarvo: has joined #ruby
[19:16:54] tubuliferous_: has joined #ruby
[19:17:00] iamjarvo: has joined #ruby
[19:17:39] iamjarvo: has joined #ruby
[19:17:40] kyrylo: Hi! Say I have allocated some memory with ALLOC_N(). Later on I have a conditional rb_raise() in my code. If the check doesn't pass I xfree() the allocated memory. My question is should I worry about the allocated memory if the rb_raise() conditional succeeds and I actually raise an exception
[19:18:11] iamjarvo: has joined #ruby
[19:18:21] ixti: has joined #ruby
[19:18:57] iamjarvo: has joined #ruby
[19:19:07] lkba: has joined #ruby
[19:19:35] iamjarvo: has joined #ruby
[19:19:50] kyrylo: Pseudocode https://gist.github.com/kyrylo/6c2bb4e2509bc7e7098d
[19:20:04] hdev1: has joined #ruby
[19:20:05] ruboto: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[19:20:13] apeiros: +b iamjarvo!*@*$#ruby-fix-your-connection
[19:20:18] apeiros: -o apeiros
[19:20:59] bdnelson: has joined #ruby
[19:21:33] apofis: has joined #ruby
[19:22:16] aphprentice: has joined #ruby
[19:22:49] juanpaucar: has joined #ruby
[19:24:24] gianlucadv: has joined #ruby
[19:25:12] apofis_: has joined #ruby
[19:25:58] joneshf-laptop: has joined #ruby
[19:26:09] apofis_: has joined #ruby
[19:27:23] cmisenas: has joined #ruby
[19:27:42] pullphinger: has joined #ruby
[19:28:00] podman: has joined #ruby
[19:28:18] pullphinger: has joined #ruby
[19:29:00] jenrzzz: has joined #ruby
[19:29:09] jwaldrip_: has joined #ruby
[19:29:48] Ox0dea: has joined #ruby
[19:29:57] mdz_: has joined #ruby
[19:30:16] Ox0dea: kyrylo: Your exception can always be caught, so the decision becomes whether or not you want to leak memory. :P
[19:30:59] Ox0dea: Also, fast_method_source eats all the syntax errors during parsing, but Ruby's internal errno still gets set to non-zero.
[19:31:16] Ox0dea: This makes programs using FSM likely to signal failure on exit when they shouldn't.
[19:32:49] diegoviola: has joined #ruby
[19:34:04] jwaldrip_: has joined #ruby
[19:34:47] ajax0xd9: has joined #ruby
[19:36:12] zdman135: has joined #ruby
[19:37:48] MarkTurner: has joined #ruby
[19:38:33] edwinvdgraaf: has joined #ruby
[19:38:48] platzhirsch: has joined #ruby
[19:39:37] MarkTurner: #reddit-anime
[19:40:32] apofis: has joined #ruby
[19:40:50] ruby_nuby: has joined #ruby
[19:40:53] adaedra: ( ???? ???? ????)
[19:42:21] idafyaid: has joined #ruby
[19:42:42] Scroff: has joined #ruby
[19:43:08] Macaveli: has joined #ruby
[19:43:14] alphaatom: has joined #ruby
[19:44:07] ruv: has joined #ruby
[19:44:13] idafyaid0: has joined #ruby
[19:44:24] jgpawletko: has joined #ruby
[19:44:27] alphaatom: has joined #ruby
[19:44:42] idafyaid: has joined #ruby
[19:45:07] idafyaid1: has joined #ruby
[19:45:47] alphaatom: has joined #ruby
[19:45:53] dfockler: I'm so bored at work I wrote a linked list in ruby
[19:45:57] blue_deref: has joined #ruby
[19:46:02] dfockler: and a hash, and a binary tree
[19:46:38] shevy: that's a lot you write at work
[19:46:45] shevy: now that you are home, you could write for work!
[19:46:49] dfockler: although the hash function was solely based on the key length, so not practical
[19:47:01] alphaatom: has joined #ruby
[19:47:04] Diabolik: https://github.com/askl56/Checkout
[19:47:06] apeiros: dfockler: what are you? a php core dev?
[19:47:09] dfockler: I'm still at work... :(
[19:47:13] Diabolik: what would be the most efficient way of calculating a total
[19:47:23] Diabolik: in checkout.rb
[19:47:28] dfockler: apeiros: lololol
[19:47:31] baweaver: has joined #ruby
[19:47:37] Diabolik: should i apply rules to items as they are added
[19:47:39] cmisenas: has joined #ruby
[19:47:40] apeiros: (for those who don't get the ref: http://www.i-programmer.info/news/98-languages/6758-the-reason-for-the-weird-php-function-names.html )
[19:47:41] Diabolik: or at the end
[19:48:11] shevy: there is something strange about php
[19:48:27] miah: reading about php is like hitting yourself in the head with a rubber mallet
[19:48:59] jason_rad: has joined #ruby
[19:49:11] dfockler: good lord that's scary
[19:49:42] shevy: my favourite one still is that czech error message
[19:50:09] MarkTurner: sounds like fun
[19:50:10] idafyaid: has joined #ruby
[19:50:41] apofis: has joined #ruby
[19:51:04] bgmarx: has joined #ruby
[19:51:14] ruby_nuby: has joined #ruby
[19:51:38] endash: has joined #ruby
[19:52:46] allomov: has joined #ruby
[19:54:10] ruby_nuby: has joined #ruby
[19:54:49] dented42: has joined #ruby
[19:55:07] jenrzzz: has joined #ruby
[19:55:33] shevy: what is the best program written in haskell?
[19:57:34] miah: haskell?
[19:58:07] ValicekB: has joined #ruby
[19:58:16] miah: although ghc is written in c
[19:58:41] havenwood: shevy: Haskell is for creating PhDs not programs, silly.
[19:58:43] miah: or maybe just the runtime of it
[19:59:26] miah: its interesting, but i only know a handful of people that work with it daily. few of which are phd's
[19:59:39] shevy: havenwood lol
[20:00:01] balazs: has joined #ruby
[20:00:10] shevy: 20 years of ruby
[20:00:13] adaedra: havenwood: lol
[20:00:14] shevy: and all we can offer is rails
[20:00:23] Parker0: has joined #ruby
[20:00:56] lessless: has joined #ruby
[20:00:59] diegoviola: shevy: there's more to ruby than just rails, you know
[20:01:57] miah: ive been working with ruby for ~4 years and havent written any rails
[20:02:25] bmalum: has joined #ruby
[20:02:50] _seanc_: has joined #ruby
[20:03:51] arup_r: has joined #ruby
[20:03:52] skade: has joined #ruby
[20:04:59] dfockler: I work with Ruby and we probably should be using Rails :P
[20:06:25] havenwood: dfockler: Tried Roda or Lotus?
[20:06:36] dfockler: we're using Roda I think
[20:06:44] dfockler: I work on a different part of the system though
[20:06:55] havenwood: dfockler: <3 Roda
[20:07:51] aaeron: has joined #ruby
[20:08:12] adaedra: fus roda ?
[20:08:23] x1337807x: has joined #ruby
[20:09:04] havenwood: what's "fus"?
[20:09:33] veleno: has joined #ruby
[20:09:37] miah: skyrim dragon speak
[20:10:08] adaedra: why the fuss
[20:10:55] havenwood: ACTION checks for puns
[20:11:06] bgmarx: has joined #ruby
[20:12:17] adaedra: puns? nooo, I would never o:)
[20:12:31] baweaver: puns are my game
[20:12:54] MarkTurner: has joined #ruby
[20:13:03] yfeldblum: has joined #ruby
[20:13:41] Narzew: has joined #ruby
[20:14:26] jcaho: has joined #ruby
[20:14:45] shevy: I thought you don't give a dam
[20:14:46] plashchynski: has joined #ruby
[20:16:28] DukeDave: So, this should never be false, right? ;) `klass.is_a? klass.ancestors[1]`
[20:16:32] Maletor: has joined #ruby
[20:17:13] dented42: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[20:17:41] havenwood: dukedave: Hmm, it could raise an error.
[20:17:53] havenwood: >> BasicObject.is_a? BasicObject.ancestors[1]
[20:17:54] ruboto: havenwood # => class or module required (TypeError) ...check link for more (https://eval.in/379302)
[20:17:58] DukeDave: Here's hat I'm seeing: https://gist.github.com/dukedave/90067d500ca68f7b25d6
[20:18:31] havenwood: dukedave: Why are you looking at the second ancestor?
[20:19:08] DukeDave: havenwood: it happened to be the second one I'm checking in my app code.
[20:19:16] _djbkd: has joined #ruby
[20:19:38] havenwood: dukedave: Ah, I misunderstood your question.
[20:20:09] jhass: dukedave: what's .method(:is_a?).owner ?
[20:20:15] jhass: and .source_location ?
[20:20:32] DukeDave: Let me rephrase more generally: Shouldn't `klass.ancestors.all? { |ancestor| klass.is_a? ancestor }` always be true (for all possible values of `klass`) ?
[20:21:16] apeiros: dukedave: na
[20:21:19] apeiros: instance vs. class
[20:21:24] apeiros: klass is not an instance of its ancestors
[20:21:29] apeiros: klass.new is
[20:21:39] DukeDave: jhass: `klass.method(:is_a?).owner` is `Kernel`
[20:22:02] Ox0dea: has joined #ruby
[20:22:03] DukeDave: apeiros: ahhhh
[20:22:03] apeiros: dukedave: i.e., klass.class here will return Class.
[20:22:36] Ox0dea: dukedave: klass < ::ProtocolBuffers::Message ought to give you the `true` you're looking for.
[20:22:38] apeiros: and klass is TransitRealtime::FeedMessage
[20:22:42] apeiros: given the ancestors response
[20:22:51] DukeDave: I've fallen for a variant of the old `===` vs `==` haven't I XD
[20:22:57] IanV0rn: has joined #ruby
[20:23:11] apeiros: IMO not. but not sure how broadly you define "variant" here???
[20:23:12] DukeDave: apeiros: you got it
[20:23:16] sdwrage: has joined #ruby
[20:24:00] DukeDave: I was thinking of this common trip up: http://stackoverflow.com/questions/3908380/ruby-class-types-and-case-statements
[20:24:11] apeiros: also, klass.is_a?(klass.ancestors[1]) is always false :)
[20:24:15] DukeDave: Ox0dea: thanks
[20:25:14] apeiros: actually, it's only *almost* always false
[20:25:17] mwlang: after fiddling around with monads and such, I decided on this simple approach: https://gist.github.com/mwlang/6aee66cceae52ef03979
[20:26:03] fragger5: has joined #ruby
[20:26:10] DukeDave: Okay, putting it all together, ahem: Shouldn't ` klass.ancestors.drop(1).all? { |ancestor| klass < ancestor }` always be true? ;)
[20:26:18] jhass: mwlang: I'd prefer the second argument over rescuing and an explicit responds_to? check
[20:26:50] apeiros: I use kwargs for that
[20:26:54] apeiros: @ mwlang & jhass
[20:27:04] apeiros: def value_at *keys, default:
[20:27:13] fragger5: has joined #ruby
[20:27:15] mwlang: jhass: second argument?
[20:27:16] apeiros: hash.value_at :foo, :bar, default: -> { ??? }
[20:27:27] jhass: mwlang: to fetch
[20:27:33] bin_005_j: has joined #ruby
[20:27:36] fragger5: vBulletin Plugins/Products for version 3.8x are being added every few minutes if you find one you like, download it, if there isn't refresh the page every few minutes URL for plugins/products -> https://www.criosphinx.net/boards/forumdisplay.php?f=24
[20:27:40] giuseppesolinas: has joined #ruby
[20:27:52] mwlang: jhass: I was originally trying to pass a second option, but the *keys seemed to swallow it.
[20:28:12] jhass: mwlang: no, to fetch, instead of rescuing
[20:28:21] mwlang: jhass: ah.
[20:30:04] mwlang: jhass: sooo??? ???keys.reduce(self){ |m, k| m.respond_to?(:fetch) ? m.fetch(k, default_value) : default_value }??? ?
[20:30:28] apeiros: mwlang, jhass: https://gist.github.com/apeiros/256410455fe1831b3e1e
[20:30:45] apeiros: oh, actually - default.call if it's a proc???
[20:31:24] mwlang: apeiros: I like yours. cleaner
[20:32:26] kyrylo: has left #ruby: ("Konversation terminated!")
[20:32:32] mwlang: apeiros: can default be optionally supplied?
[20:33:08] apeiros: it defaults to nil
[20:34:11] centrx: has joined #ruby
[20:35:48] mwlang: apeiros: :bar, :baz, :foobar, :bang scenario isn???t handled???one too many keys...
[20:36:11] Parter_: I'm looking for small parser or language in ruby, anybody can help me found some working?
[20:36:27] apeiros: *keys doesn't care how many keys there are
[20:36:54] apeiros: it doesn't work differently than yours, except for using a kwarg instead of branching on last arg
[20:37:11] mwlang: apeiros: I meant: `block in value_at': undefined method `fetch' for "Foo Bar!":String (NoMethodError)
[20:37:23] jhooker: has joined #ruby
[20:37:50] centrx: has joined #ruby
[20:38:16] apeiros: makes the code quite a bit more ugly to add a check for that
[20:38:19] sumark: has joined #ruby
[20:38:31] znz_jp: has joined #ruby
[20:38:39] jamto11: has joined #ruby
[20:38:48] apeiros: mid-method return is a bit yuk too :)
[20:38:59] mwlang: yeah, it???s getting messy as I toy with it.
[20:39:26] apeiros: updated https://gist.github.com/apeiros/256410455fe1831b3e1e
[20:39:36] finisherr: has joined #ruby
[20:39:51] mwlang: apeiros: nice comment. :-D
[20:39:54] MarkTurner: has joined #ruby
[20:39:55] sinkensabe: has joined #ruby
[20:40:38] NeverDie: has joined #ruby
[20:40:41] commondream: has joined #ruby
[20:41:13] drocsid: can you exit a ruby script and give a exit code without passing any exception?
[20:42:02] mwlang: drocsid: exit(1)
[20:42:10] mwlang: (or any other error code value)
[20:42:41] ogpastal_: has joined #ruby
[20:43:00] kinduff: has joined #ruby
[20:43:07] psye: has joined #ruby
[20:43:07] mleung: has joined #ruby
[20:43:41] drocsid: mwlang: doesn't that create a SystemExit exception? http://ruby-doc.org/core-2.2.0/Kernel.html#method-i-exit
[20:43:42] dfinninger: has joined #ruby
[20:43:49] bdnelson: has joined #ruby
[20:44:27] NeverDie: has joined #ruby
[20:44:28] drocsid: do I need to use exit! instead? or is your exit a different method alltogether?
[20:45:09] Hunter1: has joined #ruby
[20:45:13] apeiros: you should only use exit! over exit if you have a specific reason
[20:45:23] Hunter1: would you hire a programmer with only a ged and no college credits?
[20:45:42] apeiros: Hunter1: if they're good - sure
[20:46:19] Hunter1: apeiros: would you take a crappy programmer with a college degree or would you take a crappy programmer with a ged?
[20:46:34] apeiros: Hunter1: I wouldn't take a crappy programmer no matter the degree
[20:46:35] Eiam__: has joined #ruby
[20:46:38] Hunter1: ged == high school diploma for retards
[20:46:53] Hunter1: it's what i have]
[20:47:00] Hunter1: and i don't know my options or worth in life
[20:47:04] Hunter1: i feel like killing myself
[20:47:04] mwlang: Hunter1: yes, if they prove they gots the goods to code ??? I???ve hired a few with no formal training, though not many.
[20:47:21] adaedra: apeiros: interesting. How do you do the difference between a good and a crappy programmer?
[20:47:27] Eiam: has joined #ruby
[20:47:31] apeiros: adaedra: we interview them
[20:47:45] startupality: has joined #ruby
[20:47:47] bgmarx: has joined #ruby
[20:48:01] apeiros: best question to judge quality so far: bring code you're proud of and explain it in 10-15min (the code, and why you're proud of it)
[20:48:33] Hunter1: apeiros: what if they improve the code while they're explaining it and say their code sucks
[20:49:00] adaedra: apeiros: wow. kind of question that could kill me :(
[20:49:11] Hunter1: like they're realizing how awful it is and are now correcting themselves and saying how it could be imprived
[20:49:49] apeiros: Hunter1: you can't answer such questions in theory.
[20:50:02] apeiros: there's no recipe about it
[20:50:21] apeiros: you get a feel of the person, of the code they're able to produce, the reasoning behind, etc.
[20:50:24] Hunter1: i feel like i would be the type of person that would say how bad my code is
[20:50:37] Hunter1: and then improve it on the fly
[20:50:39] havenwood: Hunter1: Improve your code until you're proud of it.
[20:50:42] mwlang: Hunter1: if they???re improving code as they explain it, then they???re comfortable with continuous code improvements and code review with open, frank feedback.
[20:50:51] centrx: has joined #ruby
[20:50:52] mwlang: Hunter1: and that???s generally a good thing.
[20:51:22] apeiros: Hunter1: but I guess I'd ask questions wrt why you're proud of it, yet say it sucks. also what the reasons are that you're now able to improve your code. and probably why you think it needs improving.
[20:52:08] Hunter1: the only reason i'd be proud of my code is because i have the ability to make something that i thought of
[20:52:10] tvw: has joined #ruby
[20:52:13] Parter_: has left #ruby: ("Wychodzi")
[20:52:15] Hunter1: it works yay :)
[20:52:16] jenrzzz: has joined #ruby
[20:52:19] Hunter1: something like that
[20:52:22] mwlang: apeiros: how about this? https://gist.github.com/mwlang/6aee66cceae52ef03979
[20:52:42] apeiros: adaedra: I don't think it would. it's a compressed form of what a probation period does
[20:53:13] mwlang: Hunter1: take the ego out of programming and you???ll feel a lot better coding in general: http://blog.codinghorror.com/the-ten-commandments-of-egoless-programming/
[20:53:29] apeiros: mwlang: I don't like special casing last args
[20:53:33] apeiros: i.e. the `keys.pop.call if keys.last.is_a?(Proc)`
[20:53:55] Hunter1: mwlang: i generally don't have much of an ego... i just have a "yay i can do it" kind of thing and then when it works i ask myself how i can improve it
[20:54:11] havenwood: Hunter1: Are you learning Ruby?
[20:54:24] Hunter1: i'm learning ruby and objective c
[20:54:28] renier: has joined #ruby
[20:54:34] Hunter1: i'll move onto swift because it's better and cleaner
[20:54:44] adaedra: [objc learn];
[20:54:45] Hunter1: whoever invented swift knew what they were doing
[20:54:48] havenwood: Hunter1: Why not start with Swift?
[20:55:10] Hunter1: havenwood: because objective c makes you allocate memory
[20:55:22] Hunter1: and you learn how memory works like that
[20:55:44] adaedra: Apples requires ARC now no? It kinds of hides memory allocation?
[20:56:00] Hunter1: swift is like ruby and you don't know how it's being handled other than that memory is allocated magically
[20:56:03] Hunter1: i don't like magic
[20:56:09] Hunter1: not in programming
[20:56:23] wallerdev: has joined #ruby
[20:56:38] Hunter1: magic is what hackers are after
[20:57:14] krisquigley: has joined #ruby
[20:57:31] jaycee: has joined #ruby
[20:57:32] kobain: has joined #ruby
[20:59:32] Cyberheb: has joined #ruby
[20:59:37] ljarvis: Hunter1: I'm a fan of learning how memory works, but honestly I wouldn't bother spending too much time on obj-c if you plan on learning Swift
[21:00:06] Hunter1: i want to make a phone app
[21:00:11] Hunter1: and then i want to make a website
[21:00:16] Hunter1: the idea is to start my own company
[21:00:25] Hunter1: but all i have is a ged and a drive to succedd
[21:00:40] ljarvis: well, that's all you need
[21:00:50] Hunter1: but i don't think i'll go very far because of how badly i screwed up my college career
[21:00:58] Hunter1: i have a .8 gpa
[21:01:09] ljarvis: I don't have a college career and I'm doing pretty well
[21:01:46] ljarvis: degrees and college. These things are not a prerequisite of success
[21:01:49] bronson_: has joined #ruby
[21:01:57] apeiros: Hunter1: if you get your act together now, nobody will care about your degree.
[21:02:07] willharrison: has joined #ruby
[21:02:32] _djbkd: has joined #ruby
[21:02:44] apeiros: the part where a bad degree is a real issue is getting through HR screening
[21:03:11] Hunter1: i'm 23 and i'm a complete loser :(
[21:03:25] Hunter1: i think i ran out of time
[21:03:26] jamto11_: has joined #ruby
[21:03:39] ljarvis: eh, you're not even close to out of time
[21:03:41] drocsid: Hunter1: lol 23 is young
[21:03:42] havenwood: what's the average life expectancy these days? 24 or 25?
[21:03:42] ljarvis: you're still young
[21:04:03] mike___1234: has joined #ruby
[21:04:18] gsd: has joined #ruby
[21:04:26] adaedra: havenwood: it depends. Are you a horse?
[21:04:28] drocsid: Hunter1: if you make it by your mid 30s you're doing pretty well. Alot of people don't get there shit together until 40s, and some never do.
[21:04:35] havenwood: adaedra: I am *not* a horse!
[21:04:45] mwlang: Hunter1: some of the most successful entrepreneurs are self-taught, so you???ll be in good company.
[21:04:50] adaedra: havenwood: if you're not a horse, clap your hooves!
[21:04:50] Shidash: has joined #ruby
[21:05:08] drocsid: sure some freaks are well off in there 20s, and sometimes these people fall down later in life.
[21:05:13] havenwood: ACTION signals it's a trap to the other... not-horses.
[21:06:12] sivoais: has joined #ruby
[21:06:15] shevy: Hunter1 eh don't give up, just shrug it off and continue
[21:06:45] mrmargolis: has joined #ruby
[21:07:03] havenwood: http://jruby.org/2015/06/10/jruby-9-0-0-0-rc1.html
[21:07:33] Blizzy: has joined #ruby
[21:08:14] mister_solo: has joined #ruby
[21:08:58] mwlang: has left #ruby: ()
[21:09:04] tubuliferous_: has joined #ruby
[21:09:41] sinkensabe: has joined #ruby
[21:10:22] RobertBirnie: has joined #ruby
[21:10:37] ur5us: has joined #ruby
[21:11:17] apofis_: has joined #ruby
[21:11:52] Hunter1: thanks for the kind words of encouragement guys
[21:11:54] baweaver: has joined #ruby
[21:12:21] Hunter1: i'll do my best and if i become successful i will try to give back everything i can
[21:13:06] apofis__: has joined #ruby
[21:13:10] nym: has joined #ruby
[21:13:24] ogpastaling: has joined #ruby
[21:13:39] autrilla: has joined #ruby
[21:13:51] pikos: has joined #ruby
[21:16:20] apeiros: Hunter1: just pay forward. give to the next who is in need.
[21:16:43] jgt2: has joined #ruby
[21:16:47] adaedra: "8 files inspected, 50 offenses detected"
[21:16:50] langlands: has joined #ruby
[21:17:13] Hunter1: apeiros: that's exactly what i want to do
[21:18:52] ascarter: has joined #ruby
[21:18:53] Hunter1: do you have any tips on how to succeed apeiros?
[21:19:29] danzilio: has joined #ruby
[21:19:41] blackmesa: has joined #ruby
[21:20:42] ascarter: has joined #ruby
[21:20:57] apeiros: Hunter1: not really, sorry. I was lucky.
[21:21:43] Hunter1: apeiros: do you have a college degree?
[21:22:22] ascarter: has joined #ruby
[21:22:37] apeiros: I don't think our school system matches your school system.
[21:23:04] Hunter1: oh are you greek?
[21:23:44] aphprentice: has joined #ruby
[21:24:04] jamto11: has joined #ruby
[21:24:08] ascarter: has joined #ruby
[21:24:58] Hunter1: in switzerland it's very important to have a degree
[21:25:04] Hunter1: i used to live in st moritz
[21:25:09] Frem: has joined #ruby
[21:25:20] finisherr: has joined #ruby
[21:25:36] apeiros: Hunter1: ok then - I have a matura, but I skipped out of ETH
[21:25:50] apeiros: I thought it'd be a problem. it wasn't.
[21:25:53] ascarter: has joined #ruby
[21:25:56] apofis: has joined #ruby
[21:26:48] poacheR: has joined #ruby
[21:27:26] Hunter1: apeiros: a ged is like a matura, but a matura you take it to leave secondary and go to a university
[21:27:31] ascarter: has joined #ruby
[21:27:40] Hunter1: in the united states you have a ged or a regular high school diploma
[21:27:54] Hunter1: you can take the ged test at 16 and go to a community college... not a university
[21:28:09] Hunter1: after two years of college you can go to a university and finish the other two years
[21:28:13] apeiros: matura is with 18/19
[21:28:43] FernandoBasso: has joined #ruby
[21:28:45] apofis_: has joined #ruby
[21:29:13] ascarter: has joined #ruby
[21:30:43] apeiros: so given that college is 2 years and ged is at 16, I'd assume matura is more like a college degree
[21:30:52] ascarter: has joined #ruby
[21:31:51] apeiros: (from what you say - I have no idea how US school system works)
[21:31:51] JDiPierro: has joined #ruby
[21:32:17] spyderman4g63: has joined #ruby
[21:33:21] hoelzro: sounds like an associate's degree to me
[21:33:25] msnyon: has joined #ruby
[21:33:27] ljarvis: apeiros: when you gonna come work with me?
[21:33:43] mike___1234: has joined #ruby
[21:33:46] ljarvis: we're hiring again ;)
[21:33:48] apeiros: where are you working ljarvis?
[21:34:06] apeiros: we recently had changes in our company which might actually make me consider offers
[21:34:12] ljarvis: https://loco2.com/about/jobs
[21:34:33] jhooker: has joined #ruby
[21:34:35] ascarter: has joined #ruby
[21:34:59] apeiros: heh, "You have excellent written communication skills. You are extremely pedantic about spelling and grammar, but remain an affable human being nonetheless."
[21:35:05] omgs: has joined #ruby
[21:35:18] ljarvis: that's the customer service role
[21:35:34] omgs: I'm not a ruby coder, but a sysadmin
[21:35:47] apeiros: ljarvis: yes. that sounded like a fit. I like to support customers. that's what I'm doing now.
[21:36:12] ascarter: has joined #ruby
[21:36:12] omgs: I've been given a ruby app for host migration, and I'm afraid I have to rebuild it
[21:36:14] moretti: has joined #ruby
[21:36:31] rickmasta: has joined #ruby
[21:36:38] omgs: But I don't know the essentials for that, beyond "rake"
[21:36:49] omgs: Anyone to lend me a hand?
[21:36:53] A205B064: has joined #ruby
[21:37:17] havenwood: omgs: What kind of app?
[21:37:38] omgs: It's a webapp, if that's what you ask
[21:38:10] havenwood: omgs: Does it have a Gemfile?
[21:38:20] serialsito: has joined #ruby
[21:38:41] zendrix: has joined #ruby
[21:38:43] havenwood: omgs: Show us the code?
[21:38:44] Musashi007: has joined #ruby
[21:38:57] omgs: Yes, I've done a tar file of what I think is the whole app, from the old host
[21:39:14] omgs: IT's a lot of files and directories
[21:39:34] omgs: But I can show the app "failing" via web
[21:40:03] havenwood: omgs: Gemfile, yes or no?
[21:40:20] omgs: havenwood: yes
[21:40:25] havenwood: omgs: Contents?
[21:40:27] havenwood: omgs: Rails?
[21:40:34] marr: has joined #ruby
[21:40:43] omgs: Do you want the first error when running "rake"?
[21:41:08] havenwood: omgs: Is it a Rails app?
[21:41:12] havenwood: omgs: Sinatra?
[21:41:15] havenwood: omgs: Rack?
[21:41:19] havenwood: omgs: What do you have?
[21:41:21] omgs: havenwood: I'm not sure
[21:41:27] havenwood: omgs: Hence me asking.
[21:41:33] adaedra: gist the damn Gemfile
[21:41:33] shevy: grep through the source
[21:41:33] havenwood: omgs: Your Gemfile...
[21:42:04] atomical: has joined #ruby
[21:42:11] shevy: also put up info about the system; ruby -v; gem --version
[21:42:21] chipotle: has joined #ruby
[21:42:52] omgs: # ruby -v
[21:42:52] omgs: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
[21:43:15] omgs: # gem --version
[21:43:15] adaedra: are you working as root ?
[21:43:19] jpfuentes2: has joined #ruby
[21:43:27] sinkensabe: has joined #ruby
[21:43:34] omgs: Well, I can do it with www-data ;)
[21:43:38] omgs: I think ;)
[21:44:04] adaedra: we have a fact I think
[21:44:06] ruboto: General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
[21:44:10] bgmarx: has joined #ruby
[21:44:17] omgs: Ok, now I'm www-data
[21:44:26] dfockler: just pop a little sudo on that command and watch it fly
[21:44:47] omgs: ruboto: Yeah, I know, I just wanted to chown later
[21:45:06] omgs: # su - www-data
[21:45:06] omgs: $ ruby -v
[21:45:06] omgs: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
[21:45:06] omgs: $ gem --version
[21:45:09] ruboto: I don't know anything about bot
[21:45:16] freerobby: has joined #ruby
[21:45:31] adaedra: 1.9.3 is end-of-life, by the way
[21:45:45] skade: has joined #ruby
[21:45:54] apeiros: ?ruboto omgs
[21:45:54] ruboto: omgs, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[21:46:25] k3asd`: has joined #ruby
[21:46:33] orionstein: has joined #ruby
[21:46:39] omgs: Sorry for pasting more than 3 lines ;(
[21:47:22] adaedra: omgs: give us the Gemfile!
[21:47:31] omgs: You have already activated rake 10.1.0, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this.
[21:47:40] omgs: That's what rake says
[21:47:42] moretti: has left #ruby: ("Leaving...")
[21:47:58] adaedra: Prefix your command by bundle exec
[21:48:54] havenwood: omgs: Look in your Gemfile and at least tell us if it's a Rails or Sinatra app or what?
[21:49:13] davedev24_: has joined #ruby
[21:49:22] dfockler: oh man `be` is an alias for `bundle exec` woo~
[21:49:28] omgs: havenwood: sorry, bear with me since I'm not used to "Sinatra" or some concepts
[21:49:46] cmisenas: has joined #ruby
[21:50:05] omgs: gem 'rails', '3.2.6'
[21:50:13] adaedra: So it's rails
[21:50:14] havenwood: A Rails 3 app. Okay.
[21:50:16] Hunter1: does anyone know what the best mood is?
[21:50:20] havenwood: ?rails omgs
[21:50:20] ruboto: omgs, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[21:50:36] Hunter1: os x is correcting words :(
[21:50:51] havenwood: omgs: Like adaedra said, prefix `bundle exec` to your command or you're not in the context of your bundle.
[21:50:55] Hunter1: is ruby on rails worth learning?
[21:50:58] omgs: So, there's nothing do to here anymore?
[21:51:04] adaedra: Ah, auto-correcting, one of the first thing I disable
[21:51:23] adaedra: omgs: #RubyOnRails is more suited for rails apps, they will give you more accurate answers normally.
[21:51:34] omgs: havenwood: I did, it misses one specific version of openssl
[21:51:55] omgs: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory - /var/www/apps/tcj/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so
[21:52:11] omgs: That what "bundle exec rake" throws
[21:52:28] gamename: has joined #ruby
[21:52:41] adaedra: 'night all
[21:52:48] omgs: I have "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0"
[21:52:49] havenwood: adaedra: \o
[21:52:55] dfockler: adaedra: goodnight
[21:53:15] omgs: So, I think I need to tell to change the libcrypto version?
[21:54:06] bgmarx_: has joined #ruby
[21:54:15] edwinvdgraaf: has joined #ruby
[21:55:49] Xiti: has joined #ruby
[21:56:06] Filete: has joined #ruby
[21:56:22] allcentury: has joined #ruby
[21:56:38] havenwood: omgs: As already mentioned, ruby 1.9 is past end-of-life. That said: sudo apt-get install libssl0.9.8
[21:57:05] arooni-mobile: has joined #ruby
[21:57:30] x1337807x: has joined #ruby
[21:57:39] omgs: havenwood: How can I tell the app to use libssl1.0.0?
[21:57:47] havenwood: omgs: How'd you install Ruby?
[21:58:18] omgs: Well, It's a bundled template with debian for an openvz container
[21:58:25] jenrzzz: has joined #ruby
[21:58:25] singalaut: has joined #ruby
[21:58:40] deric_skibotn_: has joined #ruby
[21:58:42] edwinvdgraaf: has joined #ruby
[21:58:47] omgs: It was in order to run redmine, and I try to use it for this app, too
[22:00:07] omgs: It's running debian wheezy, and I think libssl0.9.x is not (easily) available
[22:00:30] bgmarx: has joined #ruby
[22:00:32] omgs: Is this off-topic here?
[22:00:47] Forgetful_Lion: has joined #ruby
[22:00:52] havenwood: Well, the Ruby installation part isn't off-topic.
[22:00:59] Dingus: has joined #ruby
[22:01:06] _djbkd: has joined #ruby
[22:01:14] havenwood: omgs: So the package manager Ruby doesn't have its package deps installed?
[22:01:23] balazs: has joined #ruby
[22:01:50] Scroff: has joined #ruby
[22:02:23] yqt: has joined #ruby
[22:02:35] omgs: havenwood: I think that the app was built for and older debian and distro, and I think it's good to upgrade properly
[22:02:53] nfk: has joined #ruby
[22:03:03] havenwood: omgs: yeah, looks like the wheezy libruby does link against libssl1.0.0
[22:03:16] havenwood: omgs: so get the proper Ruby 1.9 package installed
[22:03:21] ascarter: has joined #ruby
[22:03:38] havenwood: omgs: ruby1.9.1-full
[22:03:38] omgs: I think it's 1.9.1
[22:05:06] ascarter: has joined #ruby
[22:05:30] orionstein: has joined #ruby
[22:06:03] pdoherty: has joined #ruby
[22:06:19] `Nibble: has joined #ruby
[22:06:43] ascarter: has joined #ruby
[22:06:53] omgs: havenwood: I have install ruby1.9.1-full, and I get the same error
[22:07:25] `Nibble: hey there! quick question here, Does anybody know the difference between "bundle install" and "bundler install" (with "r")?
[22:07:57] ljarvis: `Nibble: bundle and bundler are aliases
[22:08:04] `Nibble: I thought they were the same thing, but looks like their behaviour is different
[22:08:19] `Nibble: "bundler install" returns an error
[22:08:21] ascarter: has joined #ruby
[22:08:31] `Nibble: and "bundle install" just install all the gems as usual
[22:08:36] `Nibble: is quite weird :/
[22:08:40] ljarvis: works for me
[22:09:19] chouhoulis: has joined #ruby
[22:09:28] havenwood: `Nibble: Do you have a pre-2013 `bundle` ahead of another `bundler` in your PATH?
[22:09:29] GPrime: has joined #ruby
[22:09:35] ljarvis: https://github.com/bundler/bundler/tree/master/bin
[22:09:39] ljarvis: yeah good point
[22:09:44] `Nibble: nope, first thing I tested
[22:09:52] `Nibble: using rvm and an empty gemset
[22:09:53] Yiota: has joined #ruby
[22:10:02] ascarter: has joined #ruby
[22:10:08] `Nibble: it fails with this gemfile: https://github.com/rapid7/metasploit-framework/blob/master/Gemfile
[22:10:21] havenwood: `Nibble: compare `which bundle` and `which bundler`?
[22:10:42] `Nibble: bundler install returns "Could not find rake-10.4.2 in any of the sources"
[22:10:47] `Nibble: bundle install just works
[22:11:09] `Nibble: havenwood: yeah, both in the same bin/ folder
[22:11:28] `Nibble: I also gave a look to their src and it's exactly the same
[22:11:39] `Nibble: I'm sure is a silly thing, but can see it
[22:11:40] ascarter: has joined #ruby
[22:11:50] omgs: havenwood: you can monit at https://apptcj.tomalaplaza.net:8080/
[22:12:08] leafybasil: has joined #ruby
[22:12:14] WildBamboo-Josh: has joined #ruby
[22:12:43] ljarvis: i'm off, g'night
[22:12:47] havenwood: ljarvis: \o
[22:13:01] tubulife-: has joined #ruby
[22:13:11] djdarkbeat: has joined #ruby
[22:13:20] ascarter: has joined #ruby
[22:13:55] havenwood: `Nibble: How'd you install Ruby?
[22:13:57] failshell: has joined #ruby
[22:14:00] michael_mbp: has joined #ruby
[22:14:02] `Nibble: havenwood: rvm
[22:14:10] qwertme: has joined #ruby
[22:14:31] havenwood: `Nibble: RVM ships with rubygems-bundler, which automatically prefixes `bundle exec` when there's a Gemfile present... for `bundle`.
[22:14:31] iWaffles: has joined #ruby
[22:15:52] e1nh4nd3r: has joined #ruby
[22:15:55] `Nibble: havenwood: I see, I'll give a look to the rubygems-bundler code
[22:15:57] havenwood: `Nibble: So `bundler` likely isn't getting an automagical `bundle exec` prefix, so you're not in the context of your bundle and it can't find stuff.
[22:16:17] `Nibble: havenwood: tricky
[22:16:24] `Nibble: let's see :)
[22:16:35] havenwood: `Nibble: Thought it's the install command? I dunno.
[22:17:02] slawrence00: has joined #ruby
[22:17:50] Axsuul: has joined #ruby
[22:18:45] volty: has joined #ruby
[22:21:15] plashchynski: has joined #ruby
[22:21:30] iltempo: has joined #ruby
[22:21:41] fabrice31: has joined #ruby
[22:22:39] commondream: has joined #ruby
[22:23:00] swgillespie: has joined #ruby
[22:23:15] wald0: has joined #ruby
[22:23:53] SouL_|_: has joined #ruby
[22:24:39] omgs: havenwood: can you still help me?
[22:25:16] havenwood: omgs: Did you uninstall your odd Ruby and install the Wheezy package?
[22:25:32] dgutierrez1287: has joined #ruby
[22:25:51] omgs: havenwood: AFAIK, it's the wheezy package
[22:26:10] omgs: How to check and/or proceed?
[22:26:16] havenwood: omgs: If it was the updated Wheezy package it'd be linked against the proper OpenSSL, so I don't think it is.
[22:26:35] havenwood: omgs: Uninstall it and reinstall it? Or investigate the package you have installed further.
[22:27:00] Dingus: has joined #ruby
[22:29:56] ag4ve_: has joined #ruby
[22:30:21] iamninja: has joined #ruby
[22:31:04] omgs: havenwood: I guess the mysql2 driver is linked with that old version
[22:31:26] havenwood: omgs: Run?: bundle
[22:32:31] havenwood: omgs: I haven't had a chance to look closely at what you've linked - multitasking at the moment.
[22:33:03] omgs: I've just run bundle and bundle exec rake, and no change
[22:33:11] havenwood: omgs: Just open irb and confirm you can?: require 'openssl'
[22:33:12] joelataylor: has joined #ruby
[22:34:05] havenwood: puts OpenSSL::OPENSSL_VERSION
[22:34:31] omgs: penSSL 1.0.1e 11 Feb 2013
[22:34:35] singalaut: has left #ruby: ("WeeChat 1.3-dev")
[22:34:50] havenwood: omgs: So your Ruby seems fine on first inspection.
[22:34:50] omgs: OpenSSL 1.0.1e 11 Feb 2013
[22:35:15] omgs: havenwood: yeah, I think the compiled mysql2 driver has to be recompiled or something
[22:36:28] havenwood: omgs: bundle exec gem pristine mysql2
[22:37:27] zenspider: anyone here know rack internals?
[22:37:58] ruboto: Just ask your question, if anyone has or can, they will respond.
[22:38:25] pkrnj: has joined #ruby
[22:38:50] zenspider: I got spastorino to start looking in #rack
[22:39:08] jhass: oh, so I shall pull ?crosspost too? :P
[22:39:20] omgs: havenwood: ok, that seems to have solved the problem
[22:40:00] benlieb: is there a way to rescue exceptions at a class level?
[22:40:09] meph: has joined #ruby
[22:40:53] ta: has joined #ruby
[22:41:24] dfockler: benlieb: what do you mean?
[22:42:57] benlieb: dfockler: for example if any of my methods raise an exception, is there a custom method that I can define that would rescue it?
[22:43:11] Radar: ?crosspost
[22:43:11] ruboto: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[22:43:24] Radar: jhass: cheers for the #protip
[22:43:34] failshell: so i have file1 and file2. both share common data. and have pieces that are different. i want to merge those 2 files. i want to keep the shared common data and merge the differences as well. how would you do that?
[22:43:45] dfockler: Radar: who was that aimed at?
[22:43:51] Radar: dfockler: it was aimed at benlieb
[22:43:56] benlieb: I have about 20 methods that all basically do a begin / rescue with the same kind of exception
[22:43:57] Radar: He posted the same question in #rubyonrails
[22:44:07] Radar: benlieb: show us the code
[22:44:08] jenrzzz: has joined #ruby
[22:44:20] jhass: Radar: another one, you can target facts with ?foo nick
[22:44:21] Radar: You could probably have a single method for wrapping the exception and then call that method in each of the other methods
[22:44:31] baweaver: has joined #ruby
[22:44:33] Radar: jhass: seems backwards. I like helpa's name: !<tip>
[22:44:36] nateberkopec: has joined #ruby
[22:44:45] platosha_: has joined #ruby
[22:44:47] jhass: I guess we could do both
[22:45:17] jhass: I see both styles used equally
[22:46:09] benlieb: Radar: https://gist.github.com/pixelterra/a3cb862cfba4a56ea3fb
[22:46:10] volty: Radar: and how could you, then, distinguish which one failed ?
[22:46:17] krisquigley: has joined #ruby
[22:46:37] _blizzy_: has joined #ruby
[22:46:52] volty: nonsense, both ways
[22:46:52] havenwood: benlieb: One thing, you can drop the `begin` and `end` and just `rescue` from the method.
[22:47:19] havenwood: benlieb: For the methods that begin with `begin` that is.
[22:47:40] zenspider: benlieb: what you're asking for is a bad design smell
[22:48:03] zenspider: you could refactor to an error_handler method that yields the body
[22:48:22] benlieb: Oh, I didn't know that you could leave out the begin. There is a lot of redundancy that does rescue Faraday::Error => error handle_ned_error(error) end
[22:48:24] jack_rabbit: has joined #ruby
[22:48:25] cndiv: has joined #ruby
[22:48:37] zenspider: def handle_errors; yield; rescue Faraday::Error => error; ...; end
[22:48:44] cndiv: has joined #ruby
[22:49:00] zenspider: then it'd be handle_errors do ... end in each method
[22:49:10] dfockler: ^ I've done this before, and it works
[22:49:30] benlieb: zenspider: that's an interesting idea...
[22:49:33] zenspider: of course, if every method in here is doing the same thing, it's still a design smell
[22:49:40] zenspider: the caller should probably be handling errors
[22:50:18] zenspider: and it is non-idiomatic in ruby to start methods with get_
[22:50:24] benlieb: not every method, but it's basically a class that talks to an API, so a lot of the methods can throw a Faraday (http) error
[22:51:04] ogpastal_: has joined #ruby
[22:51:08] zenspider: well... it looks like every one. the ones that don't call methods that do
[22:51:16] dionysus69: has joined #ruby
[22:51:23] swgillespie: has joined #ruby
[22:51:23] zenspider: get_individual_by_email calls get_individual_by_entity_attribute
[22:51:28] zenspider: for example...
[22:51:39] Radar: +1 zenspider's suggestion
[22:51:56] zenspider: "NED.instance." is totally redundant since self is already the singleton
[22:52:07] zenspider: singleton is ALSO a bad design smell
[22:52:38] Forgetful_Lion: has joined #ruby
[22:52:39] zenspider: you really want all API access to bottleneck through a single object/thread?
[22:52:56] fragger5: has joined #ruby
[22:53:09] volty: handling exceptions is one thing, messaging (based) on exceptions is yet another one // as for the http codes it would be better to place all those messages in a hash code => message
[22:53:38] Guest12955: has joined #ruby
[22:53:53] benlieb: I personally would have chosen the singleton implementation but this was originally written by someone else, alas.
[22:54:05] fragger5: Selling my vBulletin 5 Connect license ( www.criosphinx.net/vb.png ) Want to get it dirt cheap? Make an offer here -> https://www.criosphinx.net/boards/forumdisplay.php?f=26
[22:54:07] fragger5: Selling my vBulletin 5 Connect license ( www.criosphinx.net/vb.png ) Want to get it dirt cheap? Make an offer here -> https://www.criosphinx.net/boards/forumdisplay.php?f=26
[22:54:08] fragger5: Selling my vBulletin 5 Connect license ( www.criosphinx.net/vb.png ) Want to get it dirt cheap? Make an offer here -> https://www.criosphinx.net/boards/forumdisplay.php?f=26
[22:54:24] ruboto: fflush, banisterfiend, apeiros, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, ljarvis, Aria
[22:54:28] Radar: he's gone
[22:54:30] zenspider: I was reading code :(
[22:54:46] Guest12955: Hey when I run "gem install rspec" I get the error "gem can be found in the following packages..."
[22:54:52] zenspider: how about we ALL go offer to buy his code
[22:54:57] redlegion: has joined #ruby
[22:55:05] Guest12955: however I have installed rvm correctly so why should this error be occuring?
[22:55:06] zenspider: Guest12955: I doubt it says that
[22:55:07] Radar: Guest12955: Show us the full error please.
[22:55:16] nickfausnight: has joined #ruby
[22:55:27] zenspider: (please don't paste the full backtrace here)
[22:55:38] edwinvdgraaf: has joined #ruby
[22:55:41] Kache4: has joined #ruby
[22:55:42] Radar: Guest12955: ?gist
[22:56:01] Radar: https://gist.github.com/
[22:56:11] jhass: +b-o *!*@host86-160-246-216.range86-160.btcentralplus.com jhass
[22:56:13] zenspider: we just need the actual error message.
[22:56:23] zenspider: rarely would gem install error out saying it CAN be found tho :P
[22:56:41] Guest12955: https://gist.github.com/anonymous/bbfa125ad02adb5be3e9
[22:56:48] arooni-mobile: has joined #ruby
[22:56:49] Radar: It looks like it's an apt packaging error message
[22:56:56] Guest12955: there's the error. I thought RVM took care of all of this though?
[22:56:56] Radar: ding ding ding we have a winner
[22:57:02] zenspider: ah. you don't have ruby
[22:57:05] Radar: Guest12955: Looks like your RVM install didn't install correctly.
[22:57:17] zenspider: or you don't have pathing set up correctly
[22:57:28] Radar: Guest12955: "rvm implode" then follow this for development bliss: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[22:57:34] zenspider: did you install rvm AND use it to build a version of ruby?
[22:57:56] zenspider: I do agree with Radar. rvm is a pita.
[22:58:17] zenspider: I use rbenv + ruby-install. chruby is equivalent afaik
[22:58:47] monsieur1: has joined #ruby
[22:58:57] Guest12955: Ah going to bed. Thanks guys
[22:59:06] Guest12955: has left #ruby: ()
[22:59:26] Hunter1: it's possible to build a new version of ruby? how???
[22:59:28] zenspider: I never understand that...
[22:59:32] benlieb: zenspider: Radar: do you have specific design recommendations in this case, given that it is smelly
[22:59:52] endash: has joined #ruby
[22:59:58] zenspider: benlieb: for now I'd go with my handle_errors suggestion above
[23:00:25] zenspider: but later you might want to look at solidifying your design from the caller's side... unless that file is the top-level API
[23:00:37] zenspider: Hunter1: how did you build your first version of ruby?
[23:00:42] zenspider: or did it come stock?
[23:01:02] Hunter1: zenspider: i downloaded ruby from the ruby website
[23:01:18] zenspider: like, a binary installer?
[23:01:21] zenspider: windows I assume?
[23:01:35] Yiota: has joined #ruby
[23:01:46] benlieb: zenspider: what do you mean from the caller's side?
[23:03:09] benlieb: The system is a rails API that basically sits in front of a more low level java API
[23:04:14] benlieb: The rails app handles auth and sessions etc, and also makes messaging more "human". Internally we hit the java api ourselves, but we expose only the rails app that other's can hit
[23:04:16] shevy: Hunter1 you have to provide more information; for instance, what is the exact link you use; what is your operating system etc... you don't provide a lot of information right now
[23:05:01] zenspider: _something_ calls those methods. it can be responsible for doing the error handling
[23:05:28] ged: has joined #ruby
[23:06:05] volty: since he doesn't need to know which one failed ....
[23:06:19] Hunter1: shevy: the one on ruby-lang.org
[23:06:45] zenspider: helpful! wait. no.
[23:06:55] shevy: Hunter1 this one? ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
[23:07:49] volty: I would go with a unique (only one) method passing a hash from which to build the query // for me there are too many methods around (clerk id, clerk lover, clerk's boss etc etc) // a matter of taste, of course
[23:08:07] zenspider: odd... Hunter1 doesn't seem to want to answer questions that might help us answer his question.
[23:08:18] Aeyrix: Ignore zenspider.
[23:08:21] redlegion: has joined #ruby
[23:08:56] shevy: hmm he does have a slow reaction, perhaps webchat user :D
[23:09:09] shevy: I have to sleep soon though
[23:09:10] Aeyrix: Perhaps discouraged by the culture of technical elitism. :^)
[23:09:10] Hunter1: yes i'm a web chat user lol
[23:09:20] zenspider: volty: that can get messy tho. either passing through slop or having a ratsnest to validy there is no slop.
[23:09:29] zenspider: validate. ugh. my fingers are troublesome
[23:09:30] volty: it's only that your are too fast, @shevy :)
[23:09:38] Hunter1: shevy: on ruby lang it has a button to download ruby
[23:10:10] Aeyrix: Hunter1: What operating system are you using? Windows?
[23:10:24] Diabolik: is codementor.io the best service for paid pair programming?
[23:10:30] volty: zenspider: of course, but If I have to lose time and write all those methods, I'd go directly with querying directly or build something more sohpisticated
[23:10:38] Hunter1: yes windows and i'm also using ubuntu and os x
[23:10:43] zenspider: volty: *nod*
[23:10:45] Hunter1: what's the best system to use?
[23:10:52] Aeyrix: OS X or Ubuntu.
[23:10:57] Ropeney: has joined #ruby
[23:11:02] Aeyrix: I use OS X personally. Some in here use Ubuntu/Linux.
[23:11:05] Diabolik: unless someone here wants to help :P
[23:11:12] zenspider: Diabolik: not sure there is a "best". there are more and more every day tho
[23:11:17] Aeyrix: For OS X you just run, in the Terminal application, `brew install ruby`.
[23:11:19] Aeyrix: Then you're done.
[23:11:25] swgillespie: has joined #ruby
[23:11:25] Diabolik: i just need a half hour to sort out some problems in my app
[23:11:36] Diabolik: not some kind of extreme mentoring
[23:11:41] Aeyrix: For Windows you can grab an installer from http://www.rubyinstaller.org/
[23:11:57] tjohnson: has joined #ruby
[23:12:14] platzhirsch: has left #ruby: ()
[23:12:36] zenspider: hrm... how much does that service charge? I wonder if I should sign up :)
[23:12:46] glcx: has joined #ruby
[23:12:56] cyrus_mc: Trying to use bundler in my RPM spec file. Install path should be /opt/puppet/lib/ruby/gems/2.2.0/ so I specify --path on install as /opt/puppet/lib. But it adds on the relative path ruby/2.2.0/gems. The gems and 2.2.0 are reversed.
[23:13:05] Diabolik: zenspider pm?
[23:13:11] Aeyrix: Hunter1: Pick your OS and someone can help you install it.
[23:13:17] Aeyrix: But you can't say "oh I have three of them lol"
[23:13:19] Rubie: has joined #ruby
[23:14:15] freerobby: has joined #ruby
[23:15:12] AndChat299081: has joined #ruby
[23:15:21] nunayerBeezwax: has joined #ruby
[23:15:27] zenspider: Diabolik: sorry. my plate is full atm.
[23:17:01] allcentury: has joined #ruby
[23:17:33] monsieurp: has joined #ruby
[23:18:50] qwertme: has joined #ruby
[23:19:33] dfockler: what projects do people look at for good ruby architecture?
[23:20:08] Yiota: has joined #ruby
[23:20:10] volty: not quite (in) english :)
[23:20:26] moshee: has joined #ruby
[23:20:59] volty: ops, sorry, another chan
[23:22:18] bgmarx: has joined #ruby
[23:22:22] volty: there are only good ??programming architecture?? paradigms // when you master that abstract, the specifics go by themselves
[23:22:59] Radar: Who can say what it truly means to be "good"?
[23:23:25] Musashi007: has joined #ruby
[23:23:32] volty: or, translated: you are not going to be a good architect just by looking at nice buildings :)
[23:23:42] volty: s/to be/to become/
[23:24:04] baweaver: Radar: What causes me not to fly into a blood rage
[23:24:13] Radar: baweaver: fair :)
[23:24:22] baweaver: read: Java / Perl
[23:24:27] zenspider: baweaver: that's a low bar :P
[23:24:30] Aeyrix: Perl's great mate.
[23:24:43] weaksauce: you forgot php baweaver
[23:24:44] dionysus69: has joined #ruby
[23:24:55] baweaver: ACTION is currently using Java for Spark jobs for some reason
[23:25:04] baweaver: ACTION is remembering why he hates it
[23:25:20] baweaver: Hackathon and most of the codebase is already Java
[23:25:33] zenspider: dfockler: it's incredibly subjective. I think xkcd was onto something w/ the "wtf / minute" measurement
[23:25:39] baweaver: so instead of screwing with getting both of them to play together or rewriting the dang thing...
[23:25:46] baweaver: ACTION sighs
[23:26:14] dfockler: oh haha, I was just looking a Resque, and HAML, and the codebases for those are clear to read through
[23:26:25] volty: dfockler: write whatever, and refactor it forever ??? the best way :)
[23:26:30] Radar: dfockler: Read through the Rails source for some good times
[23:26:39] Radar: That codebase isn't confusing _at all_
[23:26:46] baweaver: For varying definitions of the word good
[23:26:55] Sheik`: has joined #ruby
[23:27:03] zenspider: Radar: that's mean
[23:27:10] Radar: zenspider: It is.
[23:27:20] zenspider: I know... read minitest's source and then go read rspec's source. :P
[23:27:34] baweaver: zenspider: read rack's source
[23:27:38] baweaver: how many evals was that?
[23:27:39] volty: on the architects' wave: you are not going to become a good boxer watching box
[23:27:45] dfockler: volty: yeah I need to build more buildings
[23:28:04] jhooker: has joined #ruby
[23:28:14] zenspider: baweaver: I happen to be right now. :)
[23:28:26] dfockler: zenspider: throwing down the unit test gauntlet!
[23:28:28] zenspider: working on converting the tests from bacon to minitest
[23:28:37] volty: dfockler: or beat more your keyboard :)
[23:28:42] zenspider: surprisingly easy with minitest-bacon :)
[23:28:43] baweaver: dfockler: It's more like accidentally destroying the supports for a few buildings and having to play Atlas on production support trying to keep it alive whilst fixing
[23:29:13] baweaver: For the life of me I don't get why they're evaling to get the version in there though.
[23:29:23] dfockler: my first big ruby project and we chose to rebuild it from scratch :P
[23:29:26] Radar: baweaver: source?
[23:29:28] baweaver: I read through it a few days back and stared at that one for a bit
[23:29:48] zenspider: oh in lib/rack/builder.rb ? interesting.
[23:29:55] baweaver: https://github.com/rack/rack/blob/99293fa13d86cd48021630fcc4bd5acc9de5bdc3/rack.gemspec#L3
[23:30:04] zenspider: to be fair... there's exactly 3 evals in rack's lib.... that's not bad
[23:30:11] Aeyrix: baweaver: :|
[23:30:15] baweaver: that one makes little sense to me though
[23:30:16] mistermocha: has joined #ruby
[23:30:22] zenspider: I've got more in minitest :)
[23:30:41] zenspider: and 211 in rails :)
[23:30:47] cmisenas: has joined #ruby
[23:30:53] Radar: wow that's weird that they'd be doing that.
[23:31:07] Radar: patches welcome? :P
[23:31:30] dfockler: whoa ruby gems has a full html template embedded in the code
[23:32:03] zenspider: Radar: yup yup
[23:32:19] zenspider: I guess that way they leave the parsing up to ruby and don't have to deal with regexping it, like I do
[23:32:47] zenspider: no. no I just don't get it
[23:32:54] zenspider: I'll roll it into my PR that I'm currently doing
[23:33:20] _seanc_: has joined #ruby
[23:34:50] razorgfx: has joined #ruby
[23:35:21] maxshelley: has joined #ruby
[23:35:36] Rubie: has joined #ruby
[23:36:07] omgs: Why do I get syntax errors in some "do" loops?
[23:36:12] mattcc: has joined #ruby
[23:36:16] yfeldblum: has joined #ruby
[23:36:17] zenspider: actually I'll just point tenderlove at it
[23:36:42] zenspider: omgs: you'll have to show some code. we're not psychic
[23:36:48] volty: omgs: because something is wrong?
[23:36:57] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[23:37:09] zenspider: aaand he told me to kill it
[23:37:21] nunayerBeezwax: has joined #ruby
[23:37:31] omgs: But it's been working in the previous server
[23:37:54] giuseppesolinas: has joined #ruby
[23:38:24] volty: and my spaghetti cooked better in the right pot
[23:38:46] yfeldblum: has joined #ruby
[23:39:05] CustosLimen: has joined #ruby
[23:40:04] zenspider: omgs: really... we're NOT psychic... I can come up with 50 reasons and all will be wrong
[23:40:05] volty: if the code is same then it could be another ruby version // but as zenspider said, we are not sorcerers
[23:40:27] omgs: https://gist.github.com/anonymous/c8ecd251a7d44b00c730
[23:40:37] zenspider: baweaver left... I need a code review:
[23:40:39] zenspider: s.version = File.read('lib/rack.rb')[/RELEASE += +([\"\'])([\d][\w\.]+)\1/, 2]
[23:40:57] zenspider: omgs: no comma
[23:41:02] zenspider: no clue why that'd parse in any ruby
[23:41:18] yfeldblum: has joined #ruby
[23:41:18] zenspider: (no comma on line 3)
[23:41:21] mrsolo: has joined #ruby
[23:41:39] omgs: zenspider: well, there are two occurrences of that
[23:41:45] volty: omgs: you have a virus inside your server
[23:41:49] zenspider: then get rid of both
[23:41:53] omgs: If I remove both commas, then the application fails
[23:42:02] bdnelson: has joined #ruby
[23:42:03] omgs: I mean, gets in a loop
[23:42:06] zenspider: there's one comma on line 3
[23:42:32] omgs: And I have to restart the webserver
[23:42:36] zenspider: also, that's not a loop
[23:42:37] Diabolik: zenspider are you sure? :D
[23:42:57] zenspider: Diabolik: that I'm busy? yes... I'm doing a horrible job of staying on task tho
[23:43:46] x1337807x: has joined #ruby
[23:43:58] deric_skibotn: has joined #ruby
[23:45:08] omgs: Maybe I have to "resize" Passenger?
[23:46:24] omgs: Is Passenger on-topic here?
[23:46:40] zenspider: _I_ think it is ruby-enough
[23:46:43] j4cknewt: has joined #ruby
[23:47:16] omgs: I wonder how to put passenger in debug moder for this
[23:47:27] GPrime: has joined #ruby
[23:47:39] Hunter1: why do you prefer programming in ruby over other languages?
[23:48:08] zenspider: omgs: `ruby -cw path/to/file.rb` on your local machine and server should be enough
[23:48:21] _djbkd: has joined #ruby
[23:48:32] volty: Hunter1: reason 1 - for the same reason you prefer to speak in your mother language
[23:48:48] Hunter1: my mother language is russian and i prefer to speak english
[23:49:36] zenspider: volty: showed you
[23:49:36] volty: Hunter1: you are an exception that, being an exception, confirms that rule (and do not try to troll at me :) )
[23:50:10] Hunter1: i'm trying to understand what makes ruby a good choice in programming
[23:50:21] Yzguy: has joined #ruby
[23:50:27] dfockler: I like ruby because it lets you code how you want and the people who use ruby generally don't take themselves too seriously
[23:50:28] shevy: Hunter1 it fills a similar niche that perl/php/python do
[23:50:36] volty: so, Hunter1, prove it by answering (fast) in russian why are you asking such a question
[23:51:02] bkxd: has joined #ruby
[23:51:06] Hunter1: i don't get what you're trying to get me to prove
[23:51:07] shevy: ack ... volty speaks russian too
[23:52:11] Aeyrix: Hunter1: Most people pick it up because they enjoy the syntax over other languages.
[23:52:19] volty: (hunter1 went on google translate .... , ah ah ah )
[23:52:27] chouhoulis: has joined #ruby
[23:52:34] swgillespie: has joined #ruby
[23:52:44] Hunter1: so the syntax is what makes it nice then?
[23:52:56] Aeyrix: For me, at least.
[23:52:59] Aeyrix: I'd venture for most in here.
[23:53:07] Hunter1: have you tried swift?
[23:53:44] volty: dynamic, no types, no burden of clumsy python like indent-structuring
[23:54:32] prereflect: has joined #ruby
[23:54:33] mary5030: has joined #ruby
[23:54:45] Aeyrix: I've used Swift.
[23:55:13] jhooker: has joined #ruby
[23:55:22] charliesome: has joined #ruby
[23:55:31] Hunter1: do you like swift's syntax over ruby's?
[23:55:53] idafyaid: has joined #ruby
[23:55:55] omgs: [App 29834 stderr] /var/lib/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
[23:56:06] volty: object oriented, with mixing, so you are more free to think about the design, pretty readable
[23:56:13] Aeyrix: omgs: That's an old version of Ruby, there.
[23:56:14] omgs: That's the system library, isn't it?
[23:56:37] zenspider: pure OO is what I prefer about ruby. very few languages really are.
[23:56:41] volty: no small-state-of-the-art haskell like constructs, but impossible-to-read haskell like mess
[23:57:37] mrsolow: has joined #ruby
[23:57:47] omgs: Aeyrix: I see two versions: 3.2.12 and 4.0.0
[23:58:11] omgs: I guess that if I just delete (previous tar) the 3.2.12, it could solve the problem?
[23:58:22] baweaver: has joined #ruby
[23:58:25] Aeyrix: omgs: Run `ruby --version`
[23:58:35] Aeyrix: But yes probably.