« Back to channel list

#ruby - 11 July 2017

« Back 1 day Forward 1 day »
[00:01:12] mlehrer: has joined #ruby
[00:02:05] ecuanaso: has joined #ruby
[00:06:16] cagomez: has joined #ruby
[00:08:22] cagomez: has joined #ruby
[00:08:24] trac3r_: has joined #ruby
[00:09:52] enodata: has joined #ruby
[00:10:46] cagomez_: has joined #ruby
[00:21:13] jphase: has joined #ruby
[00:21:27] bronson: has joined #ruby
[00:22:55] rivalomega: has joined #ruby
[00:24:08] roshanavand: has joined #ruby
[00:26:38] enodata: has joined #ruby
[00:34:02] dcunit3d: has joined #ruby
[00:34:53] brent__: has joined #ruby
[00:39:21] mim1k: has joined #ruby
[00:41:44] impermanence: has joined #ruby
[00:43:33] wilbert: has joined #ruby
[00:51:25] sp4rrow_: has joined #ruby
[00:55:57] dstrunk: has joined #ruby
[00:58:27] ketan: has joined #ruby
[00:58:49] ornerymoose: has joined #ruby
[00:59:36] mlehrer: has joined #ruby
[01:00:01] duderonomy: has joined #ruby
[01:01:54] umaaji: has joined #ruby
[01:02:09] wnd: has joined #ruby
[01:02:49] theunraveler: has joined #ruby
[01:05:12] ephemera__: has joined #ruby
[01:09:18] mikeiniowa: has joined #ruby
[01:15:41] mim1k: has joined #ruby
[01:19:57] mooser: has joined #ruby
[01:26:34] shaman42: has joined #ruby
[01:26:58] gusrub: has joined #ruby
[01:28:53] arescorpio: has joined #ruby
[01:29:52] kculpis: has joined #ruby
[01:32:02] Joufflu: has joined #ruby
[01:34:44] charliesome: has joined #ruby
[01:35:04] dcunit3d: has joined #ruby
[01:36:30] Guest83: has joined #ruby
[01:40:11] gizmore|2: has joined #ruby
[01:46:11] bronson: has joined #ruby
[01:49:40] uZiel: has joined #ruby
[01:51:52] mim1k: has joined #ruby
[01:52:17] dcunit3d: has joined #ruby
[01:52:31] GodFather: has joined #ruby
[01:54:11] d^sh_: has joined #ruby
[01:56:03] duderonomy: has joined #ruby
[01:57:08] hutch34: has joined #ruby
[01:59:19] peter1: has joined #ruby
[02:03:06] mim1k: has joined #ruby
[02:03:13] PorcoRex: has joined #ruby
[02:05:57] duderonomy: has joined #ruby
[02:07:49] TunaBee: has joined #ruby
[02:12:42] Jameser`: has joined #ruby
[02:14:39] wilbert: has joined #ruby
[02:15:10] ecuanaso: has joined #ruby
[02:16:40] bronson: has joined #ruby
[02:20:24] genpaku: has joined #ruby
[02:23:01] impermanence: has joined #ruby
[02:25:11] JoshS: has joined #ruby
[02:26:48] Periapsis: has joined #ruby
[02:29:33] duderonomy: has joined #ruby
[02:33:44] br|ck: has joined #ruby
[02:36:00] S1kx: has joined #ruby
[02:36:47] shaman42: has joined #ruby
[02:38:30] jenrzzz: has joined #ruby
[02:38:52] mim1k: has joined #ruby
[02:42:10] comet23: has joined #ruby
[02:42:19] mostlybadfly: has joined #ruby
[02:42:20] comet23: why do i have to use a hash rocket when i am declaring a string as a key?
[02:42:25] comet23: why can't i use a :
[02:42:32] comet23: colon sorry
[02:45:32] PorcoRex: :"something like this" is a Symbol, not a String.
[02:45:47] elomatreb: Because key: value always produces a symbol key, it would be confusing to have it result in something else
[02:45:51] hutch34: has joined #ruby
[02:46:21] elomatreb: >> { 1: "something" } # <- e.g. doesn't work at all
[02:46:22] ruby[bot]: elomatreb: # => /tmp/execpad-fe65b0e09059/source-fe65b0e09059:2: syntax error, unexpected ':', expecting => ...check link for more (https://eval.in/830549)
[02:47:28] PorcoRex: elomatreb, strange, I'm pretty sure it worked. Let me check.
[02:48:19] PorcoRex: elomatreb, no wait... What I was saying is that my_symbols = :"something like this" assigns a symbol.
[02:48:21] quixoticelixer: has joined #ruby
[02:48:21] duderonomy: has joined #ruby
[02:48:32] PorcoRex: quixoticelixer, hey.
[02:51:18] quixoticelixer: What is a good place to get an introduction fro ruby
[02:51:24] quixoticelixer: for someone coming from different languages
[02:51:42] PorcoRex: comet23, the thing is you can define Symbols that have spaces by using ":" followed by a quoted expresion, but that evaluates to a Symbol, not a String.
[02:51:53] comet23: PorcoRex i'm talking about "symbol_name" =>
[02:52:23] PorcoRex: {"this key is a string" => 123}
[02:52:25] comet23: {"symbol" => value} vs {"symbol": value}
[02:52:36] comet23: why can't i do the latter
[02:52:52] PorcoRex: {"this key is a symbol": 123} because it is the same as doing {:"this key is a symbol" => 123}
[02:53:15] PorcoRex: And :"this key is a symbol" is a Symbol, not a String.
[02:53:50] comet23: how is it the same?
[02:54:01] comet23: when one is in front and the other is in the back
[02:54:38] PorcoRex: comet23, it's interpreted the same way by Ruby. It's just a bit of "syntactic sugar".
[02:55:02] comet23: so, in other words, always use hash rockets?
[02:55:21] PorcoRex: comet23, always use them except when your keys are Symbols.
[02:55:32] elomatreb: And generally you want Symbol keys
[02:55:52] elomatreb: Historic background: symbol: keys are relatively new in Ruby, 1.9 IIRC
[02:55:56] comet23: a symbol is a named string without quotes?
[02:56:57] Guest83: has joined #ruby
[02:57:16] PorcoRex: comet23, not exactly. They behave more like "named numbers". But that might only make sense to me without getting too deep into it.
[02:57:22] elomatreb: A symbol is a symbol, not the same as a String. The docs on the symbol class glance over their internal use and special properties
[02:57:29] PorcoRex: They are like labels.
[02:57:38] comet23: like a hash variable?
[02:58:19] pankaj: has joined #ruby
[02:58:25] elomatreb: quixoticelixer: Maybe https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/ has what you want
[02:59:17] ketan: has joined #ruby
[02:59:28] quixoticelixer: stirngs are mutable
[02:59:58] PorcoRex: quixoticelixer, why are they mutable?
[02:59:58] elomatreb: They will be frozen by default in a future update, and you can make them frozen-by-default now per file with a magic comment now
[03:00:10] nofxx: quixoticelixer, because the world is mutable, life is mutable
[03:00:28] comet23: strings mutate because matz is a huge fan of the teenage mutant ninja turtles
[03:00:29] quixoticelixer: I mean, it seems cool
[03:00:34] nofxx: you're a 600 billion cells mutable mammal eheh
[03:00:51] quixoticelixer: i'm a clojure programmer
[03:00:55] quixoticelixer: thats offensive
[03:01:25] nofxx: quixoticelixer, mutable strings or darwin? =D
[03:01:30] elomatreb: comet23: Incidentally, the link I gave above has a paragraph on symbols that has some value
[03:01:59] nofxx: quixoticelixer, "you can do this".freeze
[03:02:02] comet23: matz is a ninja not because he's chinese, but because he's really good at what he does
[03:02:14] quixoticelixer: i'm pretty sure hes japanese
[03:02:30] quixoticelixer: but i mean technically you would still be correct
[03:02:31] nofxx: quixoticelixer, and have clojure/erlang love in ruby
[03:02:46] comet23: no, he's from japan, but his race is chinese
[03:02:47] cyfr0n: has joined #ruby
[03:02:52] PorcoRex: quixoticelixer, not technically, because ninjas are still japanese.
[03:02:58] comet23: all japanese people are of the chinese race
[03:03:05] comet23: so are koreans
[03:03:09] quixoticelixer: i'm pretty sure chinese isn't a race
[03:03:30] quixoticelixer: I think its a country
[03:03:43] comet23: whoops, i meant to say mongoloid
[03:04:15] elomatreb: Take it somewhere else or change the subject please
[03:04:27] comet23: what's wrong with what i said?
[03:04:33] nofxx: every mention of china and mongolia and my brain gets me that south park episode
[03:04:49] nofxx: and I laugth again... hahah
[03:04:55] comet23: i don't watch south park because it's really offensive/racist
[03:05:25] nofxx: an offense is the ear of who listens, my granma used to say
[03:05:47] comet23: that triggers me
[03:05:52] PorcoRex: So about mutable strings...
[03:05:58] uZiel: has joined #ruby
[03:06:10] PorcoRex: I like them, not by default though.
[03:06:21] quixoticelixer: I just say it and it seems interesting
[03:06:47] elomatreb: I recently put the magic comment in all the source files of a project and the tests were still passing, to my surprise
[03:07:12] PorcoRex: elomatreb, that the mark of a good craftman.
[03:07:46] elomatreb: Or the mark of someone who needlessly constructs new strings and arrays at every turn, wasting memory ;)
[03:08:20] PorcoRex: elomatreb, you'll make me want to reconsider doing that too. :)
[03:08:42] cagomez: has joined #ruby
[03:09:06] quixoticelixer: is rails still cool
[03:09:10] quixoticelixer: or is there something cooler now
[03:09:19] comet23: rails is gay
[03:09:28] comet23: if you want to be cool learn node
[03:09:31] comet23: or something
[03:09:37] elomatreb: comet23: Stop the trolling please
[03:09:40] comet23: mean stack is what all the hipsters are doing
[03:09:40] quixoticelixer: I am doing a js boot camp
[03:09:52] comet23: but if you want a framework that is mature and stable use rails
[03:10:06] quixoticelixer: how "big" is it
[03:10:20] comet23: idk, it's still used by people so i guess it's still relevant
[03:10:46] quixoticelixer: I was sort of joking about the cool hting
[03:10:51] quixoticelixer: but I am learnign full stack js
[03:10:52] elomatreb: Probably still the most used Ruby framework, although the alternatives are getting more and more popular
[03:10:59] quixoticelixer: and I don't really want to use express
[03:11:04] Joufflu: has joined #ruby
[03:11:04] quixoticelixer: express itself is fine
[03:11:06] comet23: javascsript is horrible
[03:11:07] quixoticelixer: but javascript is
[03:11:20] comet23: javascript is a language you have to master
[03:12:01] comet23: you have to know javascript and the popular frameworks
[03:12:05] howdoi: has joined #ruby
[03:12:11] comet23: react is what's in right now
[03:12:21] comet23: master react after you master javascsript
[03:13:03] comet23: i'm learning rails because i want to make a web app that's nice to maintain, but the problem with rails i hear is that it can't take a huge number of users
[03:13:19] quixoticelixer: but react is overkill a lot of the time
[03:13:23] comet23: a lot of users are fine, but when it's a boatloat you don't want to use rails
[03:13:27] quixoticelixer: and not serverside
[03:13:37] comet23: nothing is overkill if it works and you know how to use it
[03:13:44] comet23: i'm building a rails app with a react frontend
[03:13:48] comet23: it should be nice
[03:14:54] comet23: rails is still nice and worth learning, the more you know the better it is for you
[03:15:11] mim1k: has joined #ruby
[03:15:12] comet23: after that try your hands on the .net framework as a challenge
[03:15:24] quixoticelixer: I would like to learn f# sometime
[03:16:04] PorcoRex: No offense guys, but you might want to stick with whatever language and get some in depth knowledge about it. It will make transitioning to other languages easier.
[03:16:29] gix: has joined #ruby
[03:16:33] elomatreb: Learn Haskell, discover the sublime truths of nature through stateless functional programming
[03:17:38] PorcoRex: elomatreb, oh man... I've been trying Haskell (learning, not coding) and my head is about to explode. It's seriously awesome, but I don't think I'm smart enough for it.
[03:18:27] elomatreb: I'll have to use it for a university module next semester, I'm kinda looking forward to that
[03:19:29] wildtype: has joined #ruby
[03:20:08] PorcoRex: Will keep on busting my head against it for awhile.
[03:21:29] mooser: has joined #ruby
[03:22:31] pankaj: has joined #ruby
[03:29:08] govg: has joined #ruby
[03:32:36] rhyselsmore: has joined #ruby
[03:34:53] reino4477: has joined #ruby
[03:34:56] reino4477: hey, what's the lightest background tasks processing library?
[03:35:04] quixoticelixer: what other cools things I can do i nruby
[03:35:28] astrobunny: has joined #ruby
[03:40:20] reino4477: has left #ruby: ()
[03:43:17] guardianxx: has joined #ruby
[03:47:01] Guest83: has joined #ruby
[03:48:28] grymmjack: has joined #ruby
[03:51:19] mim1k: has joined #ruby
[03:52:34] enterprisey: has joined #ruby
[03:56:41] hutch34: has joined #ruby
[03:57:06] mim1k: has joined #ruby
[03:59:28] Joufflu: has joined #ruby
[04:02:23] pankaj: has joined #ruby
[04:09:08] jenrzzz: has joined #ruby
[04:09:08] jenrzzz: has joined #ruby
[04:19:14] quixoticelixer: has joined #ruby
[04:21:28] sleepee: has joined #ruby
[04:24:43] Guest83: has joined #ruby
[04:28:54] patrontechnosoft: has joined #ruby
[04:29:27] mim1k: has joined #ruby
[04:35:50] vuoto: has joined #ruby
[04:38:20] bronson: has joined #ruby
[04:42:49] patarr: has joined #ruby
[04:43:24] DoubleMalt: has joined #ruby
[04:44:59] brent__: has joined #ruby
[04:47:02] nofxxx: has joined #ruby
[04:48:20] quixoticelixer: has joined #ruby
[04:48:48] quixoticelixer: why aren't numbers mutable
[04:49:02] quixoticelixer: 32.tens(4) => 42
[04:51:46] ascarter: has joined #ruby
[04:58:35] dcunit3d: has joined #ruby
[05:00:09] ketan: has joined #ruby
[05:00:42] brent__: has joined #ruby
[05:02:23] einstein9: has joined #ruby
[05:09:36] gigetoo: has joined #ruby
[05:10:28] jenrzzz: has joined #ruby
[05:10:28] jenrzzz: has joined #ruby
[05:10:53] SeepingN: has joined #ruby
[05:12:01] gothicsouth: has joined #ruby
[05:12:02] uZiel: has joined #ruby
[05:13:45] elomatreb: quixoticelixer: Numbers aren't mutable because they're a little special, there is only ever a single "1", a single "2", etc
[05:16:29] kt: has joined #ruby
[05:17:00] havenwood: quixoticelixer: Note the fact that numbers are frozen also doesn't stop you from implementing methods like the Integer#tens you mention.
[05:17:35] baweaver: has joined #ruby
[05:18:29] havenwood: quixoticelixer: On Ruby 2.4 for example you could use it as an excuse to use Integer#digits to get the tens place, like:
[05:18:33] havenwood: class Integer; def tens n; result = digits; result[1] = n; result.join.reverse.to_i end end; 32.tens(4) #=> 42
[05:19:03] dionysus69: has joined #ruby
[05:19:51] havenwood: 32.tens(4).frozen? #=> true
[05:20:11] Bock: has joined #ruby
[05:22:50] Guest12773: has joined #ruby
[05:23:02] mooser: has joined #ruby
[05:23:37] rhyselsmore: has joined #ruby
[05:23:49] gothicsouth: has joined #ruby
[05:26:24] dcunit3d: has joined #ruby
[05:33:54] ornerymoose: has joined #ruby
[05:35:10] solocshaw: has joined #ruby
[05:38:01] stevenlebeau: has joined #ruby
[05:38:40] bronson: has joined #ruby
[05:40:10] jenrzzz: has joined #ruby
[05:42:48] quixoticelixer: has joined #ruby
[05:45:40] TunaBee: has joined #ruby
[05:47:04] pankaj: has joined #ruby
[05:47:23] quixoticelixer: has joined #ruby
[05:49:16] anisha: has joined #ruby
[05:51:40] TunaBee: has left #ruby: ()
[05:52:20] TunaBee: has joined #ruby
[05:55:20] enterprisey: has joined #ruby
[05:55:22] TunaBee: has joined #ruby
[05:56:44] mistergibson: has joined #ruby
[05:58:45] armyriad: has joined #ruby
[05:59:09] dminuoso: I want something with proper static type checking like C++, Rubys reflection and not miss out on templates/generics... Oh and a defined API would be cool.
[05:59:17] dminuoso: Y u no exist.
[06:00:45] aupadhye: has joined #ruby
[06:02:04] ShekharReddy: has joined #ruby
[06:04:00] kculpis: has joined #ruby
[06:10:53] anisha: has joined #ruby
[06:11:07] conta: has joined #ruby
[06:14:09] planigan: has joined #ruby
[06:15:37] djbkd: has joined #ruby
[06:16:01] charliesome: has joined #ruby
[06:17:47] cschneid_: has joined #ruby
[06:24:18] mooser: has joined #ruby
[06:25:28] Emmanuel_Chanel: has joined #ruby
[06:27:13] djbkd: has joined #ruby
[06:33:09] xerx: has joined #ruby
[06:39:17] bronson: has joined #ruby
[06:41:08] andikr: has joined #ruby
[06:42:36] Ishido: has joined #ruby
[06:43:30] solocshaw: has joined #ruby
[06:43:48] patarr: has joined #ruby
[06:47:50] genpaku: has joined #ruby
[06:49:00] Mortomes|Work: has joined #ruby
[06:54:58] mim1k: has joined #ruby
[06:59:42] aufi: has joined #ruby
[07:01:01] ketan: has joined #ruby
[07:08:15] sami: has left #ruby: ()
[07:08:53] duderonomy: has joined #ruby
[07:13:12] shiranuidong: has joined #ruby
[07:14:09] arquebus: has joined #ruby
[07:14:13] shiranuidong: has joined #ruby
[07:15:05] shiranuidong: has joined #ruby
[07:16:15] haraoka: has joined #ruby
[07:24:31] arquebus: is there a ruby on rails irc channel somewhere?
[07:25:35] mooser: has joined #ruby
[07:26:11] dminuoso: arquebus: ?rails
[07:26:14] uZiel: has joined #ruby
[07:26:15] dminuoso: ?rails arquebus
[07:26:15] ruby[bot]: arquebus: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[07:27:00] romankapitonov: has joined #ruby
[07:32:38] mark_66: has joined #ruby
[07:40:05] bronson: has joined #ruby
[07:42:06] elsevero: has joined #ruby
[07:47:28] antgel: has joined #ruby
[07:48:08] jenrzzz: has joined #ruby
[07:48:08] jenrzzz: has joined #ruby
[07:50:40] aagdbl: has joined #ruby
[07:50:44] ltem: has joined #ruby
[07:54:38] ascarter: has joined #ruby
[08:00:34] sarbs: has joined #ruby
[08:00:48] dcunit3d: has joined #ruby
[08:01:22] dionysus69: has joined #ruby
[08:01:22] mikecmpbll: has joined #ruby
[08:02:41] marr: has joined #ruby
[08:02:54] ccha: has joined #ruby
[08:04:08] ccha: hello, I need help to install mysql2 gem. my server is centos7.3, i use mariadb 10.2 I installed the mysql-devel which install mariadb-devel.
[08:07:25] pwnd_nsfw: has joined #ruby
[08:08:49] TunaBee: has joined #ruby
[08:09:59] sysvalve: has joined #ruby
[08:10:38] ccha: linking shared-object mysql2/mysql2.so
[08:10:41] ccha: /usr/bin/ld: cannot find -lmariadb
[08:10:43] ccha: collect2: error: ld returned 1 exit status
[08:10:59] TheBloke: has joined #ruby
[08:13:06] mim1k: has joined #ruby
[08:18:55] ur5us: has joined #ruby
[08:20:21] pandaant: has joined #ruby
[08:24:22] aagdbl: has joined #ruby
[08:28:05] quobo: has joined #ruby
[08:28:55] ferr: has joined #ruby
[08:29:23] shiranuidong: has joined #ruby
[08:29:24] uZiel: has joined #ruby
[08:31:56] charliesome: has joined #ruby
[08:36:06] moei: has joined #ruby
[08:37:14] tAn: has joined #ruby
[08:38:05] hightower2: has joined #ruby
[08:40:02] lxsameer: has joined #ruby
[08:40:54] bronson: has joined #ruby
[08:44:35] patarr: has joined #ruby
[08:45:58] atom3_: has joined #ruby
[08:46:30] milardovich: has joined #ruby
[08:47:11] Beams: has joined #ruby
[08:49:14] jenrzzz: has joined #ruby
[08:49:33] jenrzzz: has joined #ruby
[08:49:57] FastJack: has joined #ruby
[08:49:59] workmad3: has joined #ruby
[08:50:43] dminuoso: ccha: Can you just gist the whole command and the entire output you got?
[08:54:11] ketan: has joined #ruby
[08:59:56] alamar: has joined #ruby
[09:00:18] jenrzzz: has joined #ruby
[09:00:18] jenrzzz: has joined #ruby
[09:01:32] dcunit3d: has joined #ruby
[09:01:42] einstein9: has joined #ruby
[09:02:49] ccha: dminuoso: https://pastebin.com/eH1XFrhw
[09:02:49] ruby[bot]: ccha: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[09:03:15] biberu: has joined #ruby
[09:03:30] ccha: https://gist.github.com/anonymous/57bde84ce66e582a7a960ffc88e6238b
[09:04:17] ccha: in /usr/lib64 there is no libmariadb.so
[09:05:33] romankapitonov: has joined #ruby
[09:06:14] dminuoso: ccha: Where/how did you install the plain mariadb package?
[09:07:09] ccha: yum install mariadb-devel
[09:09:45] ccha: but there is a libmariadbclient.a
[09:10:30] ur5us: has joined #ruby
[09:10:44] dminuoso: ccha: Try creating a symlink from libmariadb.a to libmariadbclient.a
[09:11:09] dminuoso: ccha: If that fixes it, you might want to consider filing a bug report to the gem vendor.
[09:11:09] alamar_: has joined #ruby
[09:11:32] dminuoso: (Im not sure how mariadb is structured, so its possible that this is a different library)
[09:13:47] ccha: the gem is intalled
[09:19:32] ccha: so this one should fix it ? mariadb-devel which missing the symlink ? or mysql2 gem which use -lmariadb instaed of -lmariadbclient ?
[09:20:15] dminuoso: ccha: Well it's not exactly a missing symlink.
[09:20:31] shiranuidong: has joined #ruby
[09:20:36] dminuoso: ccha: It appears that your package named it slightly differently. Im not sure whether that's a defect of the package, or whether the gem should probe for the exact library name.
[09:20:59] darix: ccha: the symlink you look for might be called libmysqlclient.so
[09:21:12] darix: ccha: despite the lib being libmariadb*
[09:24:46] dminuoso: ccha: Im beginning to think its an issue with the package. It would appear that the library name comes from the `mysql_config` binary.
[09:26:47] mooser: has joined #ruby
[09:26:59] dminuoso: ccha: Can you gist the output of `mysql_config` ?
[09:27:25] dminuoso: ccha: in particular `mysql_config --libs_r`
[09:27:49] rhyselsmore: has joined #ruby
[09:30:41] VoIPConference31: has joined #ruby
[09:30:49] VoIPConference31: has left #ruby: ()
[09:31:25] ccha: -L/usr/lib64 -lmariadb
[09:31:46] dminuoso: ccha: Yeah. It's a package issue, not a gem issue.
[09:34:02] ccha: thank you
[09:34:33] ccha: I have a question about bundle. it doesn't create a .bundle/config ?
[09:35:34] Serpent7776: has joined #ruby
[09:37:25] ccha: in fact I do bundle install from saltstack, so I need a check to run the command again or not. so if this file exists, no change
[09:42:40] bronson: has joined #ruby
[09:42:59] dminuoso: ccha: When bundle runs, it for configuration in the following order: application/.bundle/config, env variables, ~/.bundle/config
[09:43:37] dminuoso: ccha: These are files that can be used to override the behavior of bundle in a) a project-specific version, b) an environment specific fashion or c) a user specific fashion. If none are found, bundle just uses its builtin defaults.
[09:43:53] renchan: has joined #ruby
[09:45:03] dminuoso: Think of them like a gitconfig file, or maybe kind of like your your $BASH_ENV, /etc/profile, /etc/bash.bashrc, ~/.bash_profile, ~/.bashrc
[09:45:19] dminuoso: They dont have to exist. But if they do, they will be used in a specific order.
[09:45:52] ccha: it was not in application/.bundle/config but in ~/.bundle/config
[09:46:02] rhyselsmore: has joined #ruby
[09:46:18] darix: ccha: it might be easier to build once on a central host and ship the output via salt.
[09:46:31] darix: ccha: then you also dont need all the devel packages on the remote hosts
[09:46:47] ccha: oh good idea
[09:47:04] darix: ccha: and some distros package gems. so you could use those packages too. :)
[09:47:17] dminuoso: ccha: If it's not there, it means the application does not ship with overrides.
[09:47:30] ccha: need gems for redmine
[09:47:39] darix: ccha: i have an rpm for redmine. :p
[09:47:50] darix: zypper in redmine :p
[09:48:20] sniffer: has joined #ruby
[09:48:41] darix: though i think i broke that when I updated something for discourse. lets see
[09:49:29] ccha: custom package?
[09:49:47] astrobunny: has joined #ruby
[09:50:50] astrobunny: has joined #ruby
[09:51:45] darix: ccha: well i made a package for opensuse. so
[09:51:55] darix: not sure if that counts as custom
[09:52:05] astrobunny: has joined #ruby
[09:52:34] darix: oh new release too
[09:53:18] sepp2k: has joined #ruby
[09:56:01] TomyWork: has joined #ruby
[09:56:30] roshanavand: has joined #ruby
[09:57:05] tvw: has joined #ruby
[09:57:39] mim1k: has joined #ruby
[09:57:46] konsolebox: has joined #ruby
[09:58:26] aagdbl: has joined #ruby
[09:59:44] darix: *sighs* they just did a new release and still using outdated versions of libraries
[10:02:23] dcunit3d: has joined #ruby
[10:03:02] ccha: yes new version
[10:03:09] ccha: centos server
[10:03:20] ccha: new version can use ruby 2.4
[10:04:56] dasher00: has joined #ruby
[10:10:32] hk238: has joined #ruby
[10:10:43] darix: ccha: my package is using 2.4 now and is updated to 3.4.1. but i havent tested it yet. and i have to run for lunch now
[10:10:58] hk238: hello, I was wondering if there is a text editor that also works as a ruby interpreter of some sort? :d
[10:11:41] skweek: has joined #ruby
[10:11:51] darix: ccha: you will find it here http://download.opensuse.org/repositories/home:/darix:/apps/ after it shows done published here: https://build.opensuse.org/project/monitor/home:darix:apps
[10:12:14] darix: hk238: use pry as your repl (look up binding.pry)
[10:13:27] hk238: I'll look into that ^^
[10:15:11] romankapitonov: has joined #ruby
[10:15:30] cseder: has joined #ruby
[10:17:01] uZiel: has joined #ruby
[10:18:21] cschneid_: has joined #ruby
[10:21:35] aagdbl[m]: has joined #ruby
[10:22:29] bigkevmcd: has joined #ruby
[10:22:30] umaaji: has joined #ruby
[10:28:14] icarus: has joined #ruby
[10:28:25] ShekharReddy: has joined #ruby
[10:34:07] Mon_Ouie: has joined #ruby
[10:35:06] TunaBee: has joined #ruby
[10:36:38] sarbs: has joined #ruby
[10:37:54] bkxd: has joined #ruby
[10:37:55] bkxd_: has joined #ruby
[10:42:48] milardovich: has joined #ruby
[10:43:27] bronson: has joined #ruby
[10:44:12] TunaBee: has joined #ruby
[10:45:26] patarr: has joined #ruby
[10:46:36] rhyselsmore: has joined #ruby
[10:48:19] Sylario: has joined #ruby
[10:50:16] GodFather: has joined #ruby
[11:01:41] ayonkhan: has joined #ruby
[11:02:59] jenrzzz: has joined #ruby
[11:03:06] dcunit3d: has joined #ruby
[11:04:40] patarr: has joined #ruby
[11:10:56] ur5us: has joined #ruby
[11:11:25] A-Angel: has joined #ruby
[11:11:36] A-Angel: http://pastebin.centos.org/123276/
[11:11:40] A-Angel: i have no idea what this means
[11:11:49] A-Angel: trying to install snorby
[11:12:25] iomotoko: has joined #ruby
[11:15:31] ahrs: has joined #ruby
[11:16:02] uZiel: has joined #ruby
[11:16:17] TunaBee: has joined #ruby
[11:18:27] mim1k: has joined #ruby
[11:24:23] bkxd: has joined #ruby
[11:24:30] bkxd_: has joined #ruby
[11:25:28] dminuoso: I want hash destructuring!
[11:26:21] Nitza: has joined #ruby
[11:27:00] conta1: has joined #ruby
[11:28:25] mooser: has joined #ruby
[11:29:21] Mia: has joined #ruby
[11:32:42] dangerousdave: has joined #ruby
[11:33:25] MrBusiness: has joined #ruby
[11:37:31] gix: has joined #ruby
[11:43:13] mim1k: has joined #ruby
[11:44:20] bronson: has joined #ruby
[11:45:32] spectrum: has joined #ruby
[11:45:39] anisha: has joined #ruby
[11:49:53] petruff: has joined #ruby
[11:52:24] ldnunes: has joined #ruby
[11:57:02] milardovich: has joined #ruby
[11:58:10] ljarvis: A-Angel: it means your Gemfile and lock are out of sync
[11:59:07] savoir-faire: has joined #ruby
[12:01:54] dminuoso: ACTION puts ljarvis in sync with his beer dispensing head
[12:03:54] dcunit3d: has joined #ruby
[12:10:13] synthroid: has joined #ruby
[12:11:36] shiranuidong: has joined #ruby
[12:13:38] oded: has joined #ruby
[12:16:34] oded: has joined #ruby
[12:19:07] belmoussaoui__: has joined #ruby
[12:21:19] belmoussaoui__: has joined #ruby
[12:24:04] ketan: has joined #ruby
[12:28:19] workmad3: has joined #ruby
[12:29:06] shinnya: has joined #ruby
[12:29:24] ascarter: has joined #ruby
[12:31:39] ben_: has joined #ruby
[12:33:19] splitshot: has joined #ruby
[12:37:16] petruff: has joined #ruby
[12:37:56] tvw: has joined #ruby
[12:40:40] misery_: has joined #ruby
[12:43:05] lacuna: has joined #ruby
[12:45:25] forgot: has joined #ruby
[12:53:15] ornerymoose: has joined #ruby
[12:53:17] mim1k: has joined #ruby
[12:57:06] ornerymoose_: has joined #ruby
[13:00:52] Guest83: has joined #ruby
[13:01:52] Puffball: has joined #ruby
[13:04:54] dcunit3d: has joined #ruby
[13:05:02] jenrzzz: has joined #ruby
[13:05:04] Winter_Foxo: has joined #ruby
[13:05:32] ketan: has joined #ruby
[13:07:06] Winter_Foxo: If I want to add something like "string".rot13 would I do this by creating a file containing String.class_eval?
[13:07:46] ben_: has joined #ruby
[13:09:57] dminuoso: Winter_Foxo: No.
[13:10:26] dminuoso: Winter_Foxo: You can re-open classes by adding another `class String; ...; end` (or any other class for that matter)
[13:11:09] Winter_Foxo: And that doesn't overwrite it and remove everything that was there?
[13:11:09] dminuoso: Winter_Foxo: The best style however is to put it inside a module, and then include it into String or use a refinement.
[13:11:19] dminuoso: Winter_Foxo: Correct.
[13:11:35] Winter_Foxo: What is class_eval for then?
[13:12:09] Winter_Foxo: That is what I have been using to add methods to rails models in gems that I cant edit directly
[13:12:24] dminuoso: Winter_Foxo: instance_eval and class_eval set a) the default receiver (self), b) the default definee and c) the context for instance/class variables.
[13:12:35] dminuoso: Winter_Foxo: It's mostly useful for some forms of metaprogramming.
[13:13:01] GodFather: has joined #ruby
[13:13:53] enodata: has joined #ruby
[13:15:30] dminuoso: Winter_Foxo: So technically String.class_eval actually evalualtes within the context of String.class, which is Class.
[13:16:26] dminuoso: `class String; ...; end` is roughly equivalent to: `String ||= Class.new; String.instance_eval { ... }`
[13:17:20] Winter_Foxo: Thats probably enough knowledge to get me going. Thanks for the help
[13:18:12] sgen: has joined #ruby
[13:19:58] Paraxial: has joined #ruby
[13:22:53] charliesome: has joined #ruby
[13:28:50] Ishido: has joined #ruby
[13:29:45] mooser: has joined #ruby
[13:33:37] jphase: has joined #ruby
[13:34:41] DLSteve: has joined #ruby
[13:38:35] CVTJNII: has joined #ruby
[13:39:08] psychicist__: has joined #ruby
[13:41:52] Jameser: has joined #ruby
[13:43:14] milardovich: has joined #ruby
[13:45:14] bronson: has joined #ruby
[13:46:02] tvon: has joined #ruby
[13:47:28] Guest83: has joined #ruby
[13:52:47] anisha: has joined #ruby
[13:53:32] ledestin: has joined #ruby
[13:54:26] choke: has joined #ruby
[13:54:30] cdg: has joined #ruby
[14:04:58] tvon: has joined #ruby
[14:05:38] dcunit3d: has joined #ruby
[14:05:42] Bish: okay hello rubyist
[14:06:37] jenrzzz: has joined #ruby
[14:06:37] Bish: i want something like a cronjob in ruby, BUT things can take some time
[14:06:50] Bish: and i want for every user in my database do something every x seconds
[14:07:03] Bish: but if the process takes 5 seconds
[14:07:12] Bish: i want to wait x+5 seconds
[14:07:18] Bish: for the next time to do it
[14:07:30] Bish: what can i do.
[14:07:50] mim1k: has joined #ruby
[14:07:55] A-Angel: has left #ruby: ()
[14:07:58] Bish: tl;dr version do something for a set of things every 5 minutes, if the process takes 1 minut each, wait 6 minutes til next execution
[14:08:36] ben_: has joined #ruby
[14:08:39] milardovich: has joined #ruby
[14:08:42] gizmore: has joined #ruby
[14:08:45] griffindy: has joined #ruby
[14:09:34] shiranuidong: has joined #ruby
[14:10:22] Bish: and there might be thousands of those, so each thread doing his thing is not an option, i guess
[14:10:53] carmack: has joined #ruby
[14:12:30] carmack: Hello! I'm use Ruby on Rails. How to enable web server and bot? I mean when start cinch, web server doens't render html.
[14:12:35] carmack: What i do wrong?
[14:12:40] carmack: Sorry for bad english.
[14:13:00] Winter_Foxo: has joined #ruby
[14:13:05] Bish: carmack: #rails
[14:13:13] Bish: or #ror, whatever it is
[14:13:22] Bish: #rubyonrails, some of those
[14:13:44] djbkd: has joined #ruby
[14:14:06] carmack: has left #ruby: ()
[14:14:23] Bish: tf is cinch and bot
[14:14:48] surrounder: cinch is an ircbot framework
[14:14:52] Guest83: has joined #ruby
[14:15:06] Bish: why would people connect that with rails?
[14:15:16] Bish: especially if they dont know how to hello world yet
[14:15:49] Bish: what are you surrounder
[14:15:56] Bish: sourrounding*
[14:16:10] Bish: ACTION can't type.
[14:17:59] kassav_: has joined #ruby
[14:18:08] enodata: has joined #ruby
[14:20:31] anisha: has joined #ruby
[14:20:50] AgentVenom: has joined #ruby
[14:26:08] bkxd: has joined #ruby
[14:26:10] bkxd_: has joined #ruby
[14:26:43] cpruitt: has joined #ruby
[14:31:18] mooser: has joined #ruby
[14:33:07] mikecmpb_: has joined #ruby
[14:36:08] mim1k: has joined #ruby
[14:37:54] elsevero_: has joined #ruby
[14:39:02] patarr: has joined #ruby
[14:39:33] chouhoulis: has joined #ruby
[14:39:34] Guest83: has joined #ruby
[14:40:34] rivalomega: has joined #ruby
[14:41:07] uZiel: has joined #ruby
[14:41:29] Guest83: has joined #ruby
[14:42:36] oleo: has joined #ruby
[14:44:44] kculpis: has joined #ruby
[14:45:34] vondruch: has joined #ruby
[14:47:49] choke: has joined #ruby
[14:47:50] rippa: has joined #ruby
[14:51:38] manveru: Bish: there's sidekiq i guess
[14:52:04] manveru: it doesn't do the cron part though, if you want to replace cron you can take a look at recurrent
[14:56:28] dminuoso: Can we stop sending such people to the rails channel?
[14:56:50] dminuoso: We are trying to elevate the general competency of the channel. :D
[14:57:35] t-recx: has joined #ruby
[15:01:43] mikecmpbll: has joined #ruby
[15:02:58] Bish: dminuoso: i normally dont do that, but i felt like none wants to answer that question
[15:03:17] Bish: so i rather let it be #rails problem because i odnt like rails :>
[15:03:23] millerti: has joined #ruby
[15:03:39] dminuoso: Bish: The sad thing is I cant send them back, because Im in both channels..
[15:03:58] Bish: poor you
[15:04:00] dminuoso: Maybe Ill just send them off to ##c to see them hanged.
[15:04:40] Bish: or #haskell, that'll teach them to not program at all
[15:06:20] conta1: has joined #ruby
[15:06:22] dcunit3d: has joined #ruby
[15:07:25] jenrzzz: has joined #ruby
[15:07:25] jenrzzz: has joined #ruby
[15:07:59] centrx: has joined #ruby
[15:08:00] centrx: has joined #ruby
[15:11:45] perniciouscaffei: has joined #ruby
[15:14:41] mooser: has joined #ruby
[15:16:18] cseder: has joined #ruby
[15:17:10] dminuoso: Until I understand what a monad is, I fear them too much.
[15:17:14] dminuoso: So that is not an option either.
[15:17:33] belmoussaoui__: has joined #ruby
[15:19:34] ben_: has joined #ruby
[15:20:42] Guest83: has joined #ruby
[15:22:27] cagomez: has joined #ruby
[15:22:57] Tau: has joined #ruby
[15:23:03] Tau: has left #ruby: ()
[15:23:58] rivalome_: has joined #ruby
[15:24:34] Bish: i feel the same way
[15:24:44] Bish: trying to teach myself cattheory for like 5 weeks
[15:27:47] Tempesta: has joined #ruby
[15:29:30] Puffball: has joined #ruby
[15:29:33] newalexandria: has joined #ruby
[15:29:43] Rapture: has joined #ruby
[15:29:53] newalexandria: has left #ruby: ()
[15:29:59] johnny56: has joined #ruby
[15:30:24] Rapture: I'm a little confused how to add an OR statement to this -> not_if { ::File.directory?('/foo') } -- I just need to check for two directions /foo and /bar
[15:30:31] cschneid_: has joined #ruby
[15:31:01] mooser: has joined #ruby
[15:31:52] nadir: has joined #ruby
[15:32:01] ljarvis: Rapture: are you refering to chef or something? where does `not_if` come from?
[15:32:15] Rapture: ljarvis: yeah this is in Chef
[15:32:19] ascarter: has joined #ruby
[15:32:43] ljarvis: not_if { x || y } I think would be fine
[15:33:14] tvon: has joined #ruby
[15:33:45] Rapture: ahh yeah, I knew it was || but I kept messing up the location of it
[15:33:50] ljarvis: you say "check for two directories, /foo and /bar" do you mean "/foo OR /bar"? :)
[15:34:18] Rapture: after typing it out I changed it to && :)
[15:36:56] tvon: has joined #ruby
[15:39:12] enterprisey: has joined #ruby
[15:41:16] brent__: has joined #ruby
[15:41:41] brent__: has joined #ruby
[15:41:53] cyfr0n: has joined #ruby
[15:43:47] Guest83: has joined #ruby
[15:43:58] mooser: has joined #ruby
[15:45:35] rivalomega: has joined #ruby
[15:46:09] bronson: has joined #ruby
[15:48:27] vladline: has joined #ruby
[15:50:29] rivalomega: has joined #ruby
[15:50:42] Emmanuel_Chanel: has joined #ruby
[15:55:00] shinnya: has joined #ruby
[15:55:46] tvw: has joined #ruby
[15:57:41] mim1k: has joined #ruby
[15:59:21] kassav_: has joined #ruby
[16:01:40] rivalomega: has joined #ruby
[16:02:05] patarr1: has joined #ruby
[16:02:25] audy: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[16:02:45] cseder: has joined #ruby
[16:03:22] amclain: has joined #ruby
[16:05:40] mooser: has joined #ruby
[16:06:05] Guest83: has joined #ruby
[16:07:11] dcunit3d: has joined #ruby
[16:07:30] BSaboia: has joined #ruby
[16:08:36] Guest83: has joined #ruby
[16:08:37] jenrzzz: has joined #ruby
[16:08:37] jenrzzz: has joined #ruby
[16:12:15] nopolitica: has joined #ruby
[16:13:03] mim1k: has joined #ruby
[16:13:53] tacoboy: has joined #ruby
[16:14:23] bkxd: has joined #ruby
[16:14:24] bkxd_: has joined #ruby
[16:16:08] pb122: has joined #ruby
[16:17:15] nopolitica: has joined #ruby
[16:17:38] tacoboy: has joined #ruby
[16:17:53] johnny56_: has joined #ruby
[16:20:03] kassav__: has joined #ruby
[16:20:27] dviola: has joined #ruby
[16:21:57] pb122-two: has joined #ruby
[16:22:25] xco: has joined #ruby
[16:22:54] xco: is there another way to assign all these variable on a single line? https://gist.github.com/siaw23/1afefb6894951122643b1ba68b0124c2
[16:23:24] optikalmouse: has joined #ruby
[16:23:29] optikalmouse: how do I check if an object is a Class?
[16:23:30] aphprentice: has joined #ruby
[16:23:43] optikalmouse: not an instance but an actual Class?
[16:23:49] ljarvis: optikalmouse: object.is_a?(Class)
[16:23:52] al2o3-cr: xco: a = b = c = nil
[16:23:56] ljarvis: optikalmouse: classes are instances of Class
[16:24:00] xco: al2o3-cr: ;)
[16:24:06] ljarvis: >> Object.is_a?(Class)
[16:24:07] ruby[bot]: ljarvis: # => true (https://eval.in/831003)
[16:24:08] optikalmouse: ah damn, nice thanks ljarvis !
[16:24:24] gusrub: has joined #ruby
[16:24:42] ljarvis: xco: al2o3-cr's suggestion is the nicest way, but why?
[16:24:45] kassav_: has joined #ruby
[16:25:14] xco: ljarvis: save lines :P
[16:25:21] ljarvis: lines are cheap
[16:25:29] ljarvis: and good :)
[16:25:30] xco: not to me
[16:26:37] djbjd: has joined #ruby
[16:26:51] Ishido: has joined #ruby
[16:27:11] username: has joined #ruby
[16:28:28] Pinocho88: has joined #ruby
[16:28:30] mim1k: has joined #ruby
[16:29:01] shinnya: has joined #ruby
[16:30:13] borodin: has joined #ruby
[16:32:13] GodFather: has joined #ruby
[16:33:46] mtkd: has joined #ruby
[16:35:08] bikefighter: has joined #ruby
[16:35:53] nowhere_man: has joined #ruby
[16:35:59] vladline: has joined #ruby
[16:36:52] adavia: has joined #ruby
[16:40:22] Guest83: has joined #ruby
[16:42:57] einstein9: has joined #ruby
[16:43:12] stryek_: has joined #ruby
[16:43:56] mim1k: has joined #ruby
[16:44:03] vuoto: has joined #ruby
[16:44:18] typeVoid: has joined #ruby
[16:44:46] bikefighter: has joined #ruby
[16:45:21] kies: has joined #ruby
[16:45:57] typeVoid: has joined #ruby
[16:46:27] cseder: has joined #ruby
[16:46:54] mooser: has joined #ruby
[16:47:13] typeVoid: has joined #ruby
[16:51:33] centrx: has joined #ruby
[16:54:08] mim1k: has joined #ruby
[16:55:37] typeVoid: has joined #ruby
[16:56:13] typeVoid: has joined #ruby
[16:57:49] typeVoid: has joined #ruby
[16:58:09] ben_: has joined #ruby
[17:03:04] cdg: has joined #ruby
[17:03:12] VeryBewitching: has joined #ruby
[17:07:58] dcunit3d: has joined #ruby
[17:08:30] bkxd: has joined #ruby
[17:10:12] dionysus69: has joined #ruby
[17:11:00] sekmo: has joined #ruby
[17:11:48] mostlybadfly: has joined #ruby
[17:11:57] dionysus69: has joined #ruby
[17:12:50] amclain: has joined #ruby
[17:12:53] knight33: has joined #ruby
[17:14:36] mim1k: has joined #ruby
[17:15:06] cyphase: has joined #ruby
[17:19:46] centrx: has joined #ruby
[17:19:47] centrx: has joined #ruby
[17:21:50] herbmillerjr: has joined #ruby
[17:22:12] gix: has joined #ruby
[17:22:23] alex``: has joined #ruby
[17:25:44] eckhardt: has joined #ruby
[17:29:05] dcunit3d: has joined #ruby
[17:29:35] dminuoso: So.. it just occured to me that Ruby's inheritance mechanism is surprisingly similar to JavaScripts prototypial inheritance...
[17:30:09] ketan: has joined #ruby
[17:30:37] dminuoso: This is scary somehow.
[17:33:47] havenwood: dminuoso: checked out the ES2017 spec?
[17:34:12] herbmillerjr: has joined #ruby
[17:34:17] havenwood: Object.getOwnPropertyDescriptors()
[17:34:17] enterprisey: has joined #ruby
[17:34:28] chouhoulis: has joined #ruby
[17:34:49] DoubleMalt: has joined #ruby
[17:34:52] dminuoso: havenwood: fancy
[17:35:11] mim1k: has joined #ruby
[17:35:21] dminuoso: havenwood: But yeah, basically waiting for async functions.
[17:35:30] dminuoso: The other features are not that interesting to me.
[17:36:04] cyphase: has joined #ruby
[17:36:54] cseder: has joined #ruby
[17:37:11] davidmichaelkarr: has joined #ruby
[17:37:49] gusrub: has joined #ruby
[17:38:04] jackjackdripper: has joined #ruby
[17:39:47] hahuang65: has joined #ruby
[17:41:48] gusrub: has joined #ruby
[17:41:59] havenwood: leftPad, heh
[17:43:33] yehowyada: has joined #ruby
[17:44:07] optikalmouse: has joined #ruby
[17:44:20] herbmillerjr: has joined #ruby
[17:47:26] bronson: has joined #ruby
[17:48:31] __Yiota: has joined #ruby
[17:54:55] gizmore: has joined #ruby
[17:55:48] mim1k: has joined #ruby
[17:55:56] sekmo: has joined #ruby
[18:00:55] br|ck: has joined #ruby
[18:01:37] gizmore: has joined #ruby
[18:02:07] ben_: has joined #ruby
[18:02:30] gusrub: has joined #ruby
[18:02:34] bkxd: has joined #ruby
[18:08:51] perniciouscaffei: has joined #ruby
[18:09:48] andrzejku: has joined #ruby
[18:10:52] abhi56rai: has joined #ruby
[18:11:48] ayonkhan: has joined #ruby
[18:13:46] snapcase: has joined #ruby
[18:15:40] skweek: has joined #ruby
[18:17:24] br0d1n: has joined #ruby
[18:17:58] xco: has joined #ruby
[18:18:34] cagomez: has joined #ruby
[18:18:44] einstein9: has joined #ruby
[18:19:39] TomyLobo: has joined #ruby
[18:22:56] belmoussaoui: has joined #ruby
[18:22:59] ltem: has joined #ruby
[18:23:52] jschoolcraft: has joined #ruby
[18:29:24] anisha: has joined #ruby
[18:31:04] gix: has joined #ruby
[18:34:56] cdg: has joined #ruby
[18:36:03] mim1k: has joined #ruby
[18:38:12] bronson: has joined #ruby
[18:38:47] tvon: has joined #ruby
[18:40:12] sekmo: has joined #ruby
[18:43:41] noem: has joined #ruby
[18:43:44] im0nde: has joined #ruby
[18:45:27] stryek: has joined #ruby
[18:45:59] jenrzzz: has joined #ruby
[18:45:59] jenrzzz: has joined #ruby
[18:47:24] universal: has joined #ruby
[18:47:45] noem: has joined #ruby
[18:48:11] Radich: has joined #ruby
[18:49:49] sagax: has joined #ruby
[18:49:53] rideh: has joined #ruby
[18:50:00] cseder: has joined #ruby
[18:50:07] Dry_Lips: has joined #ruby
[18:50:07] Dry_Lips: has joined #ruby
[18:51:55] dennisvennink: has joined #ruby
[18:53:48] Cohedrin_: has joined #ruby
[18:54:52] gr33n7007h: has joined #ruby
[18:55:08] Cohedrin_: has joined #ruby
[18:55:20] agent_white: has joined #ruby
[18:55:24] cseder: has joined #ruby
[18:56:42] bkxd: has joined #ruby
[18:58:31] DeeJayh_: has joined #ruby
[18:58:57] DeeJayh-L: has joined #ruby
[19:00:09] varesa: has joined #ruby
[19:04:54] sekmo: has joined #ruby
[19:08:40] jaegerca: What do people use to post code these days?
[19:08:41] Axy: has joined #ruby
[19:09:13] gusrub: has joined #ruby
[19:10:49] knight33: has joined #ruby
[19:11:18] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[19:14:28] knight33: has joined #ruby
[19:15:04] stryek: has joined #ruby
[19:16:09] al2o3-cr: omg. i read that as "why do people use postcodes these days" lol
[19:16:33] al2o3-cr: i've cracked up now haha
[19:16:36] jaegerca: al2o3-cr: That's what google thought I was asking too.
[19:17:37] wilbert: has joined #ruby
[19:18:24] dcunit3d: has joined #ruby
[19:19:51] xerx: has joined #ruby
[19:20:47] hurricanehrndz: has joined #ruby
[19:20:52] millerti: has joined #ruby
[19:25:46] cagomez: has joined #ruby
[19:27:59] tvon: has left #ruby: ()
[19:29:52] jackjackdripper: I'm having syntax issues https://gist.github.com/anonymous/56108040f10248a6ce69dba6fe6cb407 I'm trying to pass an iteration of values to a find on an array of hashes can't seem to pass the value
[19:30:48] ketan: has joined #ruby
[19:34:00] jaegerca: jackjackdripper: One of your pipes looks weird
[19:34:07] jaegerca: might be my monitor
[19:34:12] jaegerca: I can't see anything else
[19:34:33] jaegerca: I think the pipe to the right of h isn't a pipe
[19:35:16] dionysus69: has joined #ruby
[19:36:26] jackjackdripper: it is a pipe I manually retyped. "#{list}" value seems not passed in to the query
[19:37:23] DoubleMalt: has joined #ruby
[19:37:43] cadillac_: has joined #ruby
[19:37:51] jackjackdripper: from the list I know one of them exists but I just get Not found on all
[19:37:57] splitshot: results is an array of hashes?
[19:38:21] jackjackdripper: essentially a mysql row
[19:38:23] splitshot: Does each hash actually have a key named 'key'?
[19:38:37] cjk101010: has joined #ruby
[19:39:01] TunaBee: has joined #ruby
[19:39:07] splitshot: And are the hash's keys *strings* or *symbols*
[19:41:03] splitshot: No idea why it's not working for you, but I'd consider rewriting this code anyway.
[19:42:41] jackjackdripper: thanks I'll re do the search
[19:43:32] vuoto: has joined #ruby
[19:43:36] splitshot: What I would personally do is load the list file, and then use that in the sql query
[19:43:46] splitshot: Sql happens to be good at that shit.
[19:43:48] mim1k: has joined #ruby
[19:47:35] kies: has joined #ruby
[19:47:36] agent_white: Afternoon folks
[19:48:12] Cohedrin_: has joined #ruby
[19:48:41] icarus: has joined #ruby
[19:52:35] Rapture: has joined #ruby
[19:54:49] dcunit3d: has joined #ruby
[19:58:39] lxsameer: has joined #ruby
[19:59:07] mim1k: has joined #ruby
[19:59:45] DoubleMalt: has joined #ruby
[20:03:29] Majost: Is there a way to add a method from a different class into my own class, without extending the original?
[20:07:35] fmauricios: has joined #ruby
[20:07:54] jenrzzz: has joined #ruby
[20:10:08] ledestin: has joined #ruby
[20:10:31] alaing: has joined #ruby
[20:11:01] alaing: hi, is there a way to search a ruby hash for a particular set of keys to get there values?
[20:12:20] alaing: for example i'm using google maps api, httparty to query it. It returns a json object and so far I've got this but i still have so many more levels to drill down into
[20:12:22] alaing: @google_data.directions.parsed_response["routes"].first["legs"].first["distance"]
[20:13:50] Majost: @alaing There is, but depending on what you want back exactly the implementation may vary.
[20:14:13] Majost: and the structure of the hash itself too
[20:16:17] alaing: the hash has a load of various bits of data. I found this https://stackoverflow.com/questions/28266514/httparty-google-maps-directions-between-origin-and-destination and based my code off of it
[20:16:18] Majost: @alaing do you have a sample hash which you can gist or something and the ke from which you are looking to extract data if present
[20:16:44] alaing: here is an example from the post http://maps.googleapis.com/maps/api/directions/json?origin=montreal&destination=toronto&sensor=false
[20:20:28] minimalism: has joined #ruby
[20:20:52] alaing: i'm trying to get the total, distance, duration and the steps but actually having a look through that object it looks like i just need to stop at "..first["legs"]" to get the details i need
[20:22:07] alaing: is there a better way?
[20:22:08] jtd: has joined #ruby
[20:22:28] alaing: it seems like its quiet dependant on the json structure
[20:22:40] vuoto: has joined #ruby
[20:23:09] username: has joined #ruby
[20:23:14] anisha: has joined #ruby
[20:24:29] gothicsouth: has joined #ruby
[20:25:00] Majost: it very much is
[20:25:24] millerti: has joined #ruby
[20:27:12] Majost: `data['routes'].first['legs'][0]['distance']['text']` will get you the first one
[20:27:58] cagomez: has joined #ruby
[20:28:34] Majost: if you want all of the routes, something like `data['routes'].each {|route| route['legs'][0]['distance']['text']` will do it
[20:28:43] alaing: i've got a couple of StoreLocations Model and i'm hoping to use the distance to work out the closest branch to a customer
[20:29:18] elomatreb: Check out Hash/Array#dig to avoid having completeley useless "undefined method [] for nil" errors btw
[20:29:20] alaing: should I have a method in the model that returns the data
[20:29:44] solocshaw: has joined #ruby
[20:30:04] mikecmpbll: has joined #ruby
[20:30:15] alaing: or is there a better way? each record would need to queried against the google maps data
[20:30:17] Majost: elomatreb: Ah, that's a good tip! =)
[20:30:30] alaing: thanks elomatreb i'll check it out
[20:31:48] alaing: example, branch a, branch b, branch c......work through each branch and check the distance between the customers location and the branch
[20:32:05] eckhardt: has joined #ruby
[20:32:13] alaing: i I'm using geocode for part of it
[20:32:18] alaing: geocode gem
[20:34:45] eckhardt: has joined #ruby
[20:34:51] mim1k: has joined #ruby
[20:35:00] jaegerca: So I used to think the best way to validate user input was active record model validations, but that doesn't seem to be that case with integer sizes anymore. What's the best way to make sure your users aren't sending larger values than the db can handle now?
[20:35:12] rhyselsmore: has joined #ruby
[20:36:18] weaksauce: has joined #ruby
[20:38:14] tvw: has joined #ruby
[20:39:11] dcunit3d: has joined #ruby
[20:45:05] noem: has joined #ruby
[20:48:17] gusrub: has joined #ruby
[20:53:02] workmad3: has joined #ruby
[20:57:12] gj: has joined #ruby
[20:57:58] GodFather: has joined #ruby
[20:58:17] ur5us: has joined #ruby
[20:59:34] ayonkhan_: has joined #ruby
[21:00:02] DeeJayh_: has joined #ruby
[21:06:21] eightlimbed: has joined #ruby
[21:08:08] knight33: has joined #ruby
[21:10:32] sekmo: has joined #ruby
[21:11:10] mim1k: has joined #ruby
[21:13:50] noem: has left #ruby: ()
[21:14:29] noem: has joined #ruby
[21:15:07] noem: has joined #ruby
[21:16:48] leah2_: has joined #ruby
[21:20:31] enterprisey: has joined #ruby
[21:22:17] petruff: has joined #ruby
[21:22:54] dcunit3d: has joined #ruby
[21:23:02] coreyw: has joined #ruby
[21:27:11] s2013: has joined #ruby
[21:27:31] SeepingN: has joined #ruby
[21:27:57] coreyw: where in a linux machine is good place to write a ruby gem to be required by other ruby files?
[21:29:01] coreyw: my home directory perhaps. but not sure how i can require it since it would not be publicly available
[21:29:48] Dimik: has joined #ruby
[21:31:41] ketan: has joined #ruby
[21:33:18] romankapitonov: has joined #ruby
[21:38:34] justbleed: has joined #ruby
[21:43:56] darix: CoreyW: build a gem and install it
[21:44:00] darix: it will be in the right path
[21:44:11] darix: (which you can see with "gem env")
[21:44:30] coreyw: darix: build it where?
[21:44:35] darix: "gem build"
[21:44:44] coreyw: and then require it how?
[21:44:50] darix: http://guides.rubygems.org/make-your-own-gem/
[21:45:05] darix: CoreyW: require 'yourgemname'
[21:45:07] Cohedrin_: has joined #ruby
[21:45:17] coreyw: darix: yes, but that includes publishing to rubygems.org
[21:45:21] coreyw: i dont want to do that
[21:46:35] darix: CoreyW: gem install yourgemname-0.0.1.gem
[21:46:36] darix: also works
[21:46:53] JoshS: has joined #ruby
[21:47:21] mim1k: has joined #ruby
[21:47:22] coreyw: darix: how does gem know what 'yourgemname' is if its not published in the registry?
[21:47:59] rhyselsmore: has joined #ruby
[21:48:45] roshanavand: has joined #ruby
[21:48:51] coreyw: darix: exactly. so if i have a ruby file located somewhere else on file system, do i need to give a full path or something when installing or requiring?
[21:49:10] darix: CoreyW: you asked for installing a gem. that would be the way
[21:49:13] coreyw: and i would like to be able to develop and change the code without having to uninstall/install the gem over and over again for many projects
[21:49:15] elomatreb: Alternatively if you're using bundler in the project where you want to use the local gem you can tell it to use it from a path, without having to package and install it (but you still need a gemspec file)
[21:49:26] darix: CoreyW: hmm
[21:49:30] darix: require_relative
[21:49:40] darix: and put it into a sub dir of your project
[21:49:54] coreyw: darix: it needs to be global, bc many of our projects will use it.
[21:50:32] elomatreb: Then you should definitely package it as a gem. You don't need to push it to a host to install
[21:50:42] darix: and you can run a local gem server too
[21:51:41] coreyw: elomatreb: what do you mean package it as a gem?
[21:51:47] coreyw: as opposed to what i mean?
[21:52:25] elomatreb: A gem is just a zip (I think) of a directory containing ruby code and a .gemspec file describing the gem
[21:53:02] darix: CoreyW: or you need to fiddle with $LOAD_PATH
[21:53:16] darix: or use the old style ruby paths to install your stuff
[21:53:18] gix: has joined #ruby
[21:53:25] darix: (site-ruby comes to mind)
[21:53:39] darix: but ~ugly~
[21:54:16] coreyw: okay.. situation is we deploy sites with Mina (like Rake and Capistrano mixed). all our sites use a deploy.rb in their project directory to setup vars and methods to deploy the site... i need to add some functionality shared across all the sites. so i assume that would be a gem that each deploy.rb could require
[21:54:33] jenrzzz: has joined #ruby
[21:54:33] jenrzzz: has joined #ruby
[21:55:22] ecuanaso: has joined #ruby
[21:56:43] darix: CoreyW: the Gemfile of your app probably
[21:56:45] TomyLobo: has joined #ruby
[21:56:49] darix: and run your own gem server
[21:57:49] coreyw: so i def would need to run a gem server just for one stinking gem
[21:58:07] darix: you can also copy it over manually
[21:58:09] darix: as mentioned before
[21:58:21] agent_white: has joined #ruby
[21:58:27] coreyw: what about symlinks?
[21:58:45] coreyw: could that work somehow?
[21:59:13] coreyw: right now our only gem we need for the project is Mina, so we're just doing `gem install mina` and requiring it our deploy.rb, no gemspec file needed
[22:00:06] gusrub: has joined #ruby
[22:00:35] darix: you can also use git submodules to pull the code
[22:00:46] gusrub: has joined #ruby
[22:01:12] mim1k: has joined #ruby
[22:02:08] hahuang65: has joined #ruby
[22:02:15] mtkd: has joined #ruby
[22:09:34] perniciouscaffei: has joined #ruby
[22:14:03] misery_: has joined #ruby
[22:17:09] moei: has joined #ruby
[22:17:49] Nitza: has joined #ruby
[22:31:05] gothicso_: has joined #ruby
[22:31:54] gnufied: has joined #ruby
[22:31:54] im0nde: has joined #ruby
[22:35:05] mathys: has joined #ruby
[22:36:53] mim1k: has joined #ruby
[22:39:43] AX3L: has joined #ruby
[22:41:03] cdg_: has joined #ruby
[22:41:14] Cohedrin_: has joined #ruby
[22:41:15] gothicsouth: has joined #ruby
[22:44:11] bpmedley: has joined #ruby
[22:44:15] petruff: has joined #ruby
[22:45:01] enodata: has joined #ruby
[22:46:24] ecuanaso: has joined #ruby
[22:46:40] brendan-: has joined #ruby
[22:47:47] AndBobsYourUncle: has joined #ruby
[22:48:55] jenrzzz: has joined #ruby
[22:48:55] jenrzzz: has joined #ruby
[22:49:54] Cohedrin_: has joined #ruby
[22:51:16] jnollette: has joined #ruby
[22:55:49] ornerymoose: has joined #ruby
[22:56:39] Ishido: has joined #ruby
[22:57:43] roshanavand: has joined #ruby
[22:58:36] chouhoulis: has joined #ruby
[23:00:36] icarus: has joined #ruby
[23:00:46] rivalome_: has joined #ruby
[23:02:25] perniciouscaffei: has joined #ruby
[23:02:54] brent__: has joined #ruby
[23:03:04] ecuanaso: has joined #ruby
[23:04:24] eightlimbed: has joined #ruby
[23:06:01] eckhardt: has joined #ruby
[23:11:28] einstein9: has joined #ruby
[23:19:01] ecuanaso: has joined #ruby
[23:22:25] boombox_: has joined #ruby
[23:27:15] boombox_: has joined #ruby
[23:32:32] ketan: has joined #ruby
[23:33:49] DLSteve: has joined #ruby
[23:37:29] eckhardt: has joined #ruby
[23:38:36] alveric2: has joined #ruby
[23:39:48] gothicsouth: has joined #ruby
[23:41:59] JoshS: has joined #ruby
[23:42:00] jackjackdripper: has joined #ruby
[23:44:30] chouhoulis: has joined #ruby
[23:48:14] einstein9: has joined #ruby
[23:50:35] herbmillerjr: has joined #ruby
[23:54:06] jenrzzz_: has joined #ruby
[23:55:08] cagomez: has joined #ruby
[23:55:58] im0nde_: has joined #ruby
[23:59:16] sneakerhax: has joined #ruby