« Back to channel list

#ruby - 19 December 2015

« Back 1 day Forward 1 day »
[00:02:24] pawnbox: has joined #ruby
[00:02:51] jbrhbr1: has joined #ruby
[00:02:55] dfwqdfui2342: Was wondering if ruby had a real time function/method that could display the array of time i have deppending on the location the user chooses
[00:04:12] gizmore: has joined #ruby
[00:04:49] underplank: dfwqdfui2342: you mean if the location is San Francisco, you pass that in somehow and it works out that its PST, and gives you timezone adjusted time for that location?
[00:05:43] nerium: has joined #ruby
[00:05:45] cmrussell: @shevy i have one more question
[00:06:12] ElFerna: has joined #ruby
[00:06:16] cmrussell: i got the script to work without using the map method...i couldnt figure that one out
[00:06:21] cmrussell: https://gist.github.com/anonymous/a54f77a32e23bd7aadda
[00:06:34] cmrussell: is there anything wrong with that
[00:09:30] adaedra: cmrussell: it works, but you wouldn't have to push explicitely with #map.
[00:09:34] Ox0dea: cmrussell: Now those calls to #chomp are redundant. :P
[00:10:14] Ox0dea: >> "42\n".to_i # cmrussell
[00:10:15] ruboto: Ox0dea # => 42 (https://eval.in/487683)
[00:10:56] cmrussell: is it bc .chomp only matters when getting an actual string?
[00:11:20] Ox0dea: No, it's because String#to_i consumes numeric data until it can't.
[00:11:26] Ox0dea: >> '123abc'.to_i
[00:11:27] ruboto: Ox0dea # => 123 (https://eval.in/487684)
[00:12:31] cmrussell: so .chomp is for what
[00:12:40] Ox0dea: Removing a trailing newline if it exists.
[00:13:10] Ox0dea: Useful, to be sure, but not strictly necessary for your purpose here.
[00:13:33] cmrussell: so each could just say gets.to_i
[00:13:59] cmrussell: or could i skip the to_i and call it on the array itself?
[00:14:08] Ox0dea: With #map, sure.
[00:14:27] cmrussell: and see, I looked up the map thing and I dont het how to use it
[00:14:36] cmrussell: map! alters the existing array
[00:14:41] cmrussell: map makes a new one
[00:14:51] cmrussell: but I dont know where to put map
[00:16:03] Ox0dea: >> nums = [1,2,3]; nums.map { |n| n * 2 } # cmrussell
[00:16:03] cdg: has joined #ruby
[00:16:04] ruboto: Ox0dea # => [2, 4, 6] (https://eval.in/487685)
[00:16:15] Ox0dea: Put it wherever you need to transform some collection. :P
[00:16:41] radgeRayden_: has joined #ruby
[00:18:28] TomPeed: has joined #ruby
[00:18:44] s00pcan: has joined #ruby
[00:20:29] kies^: has joined #ruby
[00:21:19] shevy: cmrussell rather than .each you would use .map
[00:23:22] havenwood: save a character!
[00:23:36] whippythellama: has joined #ruby
[00:24:08] havenwood: https://github.com/rkh/almost-sinatra#coding-guidelines
[00:24:15] havenwood: "use map instead of each, it's shorter"
[00:25:36] icarus: has joined #ruby
[00:26:31] shevy: havenwood: "use ->{} instead of proc or lambda (this is why it depends on 1.9)"
[00:26:32] _stu_: has joined #ruby
[00:26:50] havenwood: shevy: *almost* Sinatra
[00:27:07] havenwood: Not bad for five lines. ;)
[00:28:01] havenwood: shevy: pair it with *almost* Rack for a nine LOC stack: https://github.com/rkh/almost-rack/blob/meister/almost-rackup
[00:28:59] havenwood: Then almost Rack protection for a little safety.
[00:29:38] havenwood: https://github.com/rkh/almost-rack-protection
[00:31:12] icarus_: has joined #ruby
[00:31:56] pawnbox: has joined #ruby
[00:36:56] jessemcgilallen: has joined #ruby
[00:38:35] ElFerna: has joined #ruby
[00:39:55] jottr: has joined #ruby
[00:44:42] Pathfinder: has joined #ruby
[00:47:52] lokulin: has joined #ruby
[00:50:54] colegatron: has joined #ruby
[00:51:11] jbrhbr: has joined #ruby
[00:52:19] nonopposition: has joined #ruby
[00:53:27] charliesome: has joined #ruby
[00:53:37] VeryBewitching: has joined #ruby
[00:55:49] aspire: has joined #ruby
[00:56:31] freerobby: has joined #ruby
[00:56:34] dlitvak: has joined #ruby
[00:57:13] linduxed: has joined #ruby
[00:58:14] shevy: xmas xmas xmas
[00:58:26] VeryBewitching: I have a Christmas desktop this year.
[01:00:04] arescorpio: has joined #ruby
[01:00:57] VeryBewitching: https://dl.dropboxusercontent.com/u/1422687/christmas.png
[01:01:31] pawnbox: has joined #ruby
[01:02:22] bitcycle: has joined #ruby
[01:03:19] millerti: has joined #ruby
[01:03:36] blub: has joined #ruby
[01:05:31] bitcycle: has joined #ruby
[01:10:05] Snaggle: has left #ruby: ()
[01:11:41] snowy: has joined #ruby
[01:12:55] TomPeed: has joined #ruby
[01:12:57] renemaya: has joined #ruby
[01:13:52] chouhoulis: has joined #ruby
[01:14:03] stannard: has joined #ruby
[01:14:51] basex: has joined #ruby
[01:16:41] fantazo: has joined #ruby
[01:20:33] devoldmx: has joined #ruby
[01:22:00] shevy: they turned ruby into kuby!
[01:23:10] indiebrain: has joined #ruby
[01:24:29] skcin7: has joined #ruby
[01:25:22] sucks: has joined #ruby
[01:25:58] rgtk: has joined #ruby
[01:26:26] seitensei: has joined #ruby
[01:26:27] seitensei: has joined #ruby
[01:28:33] rkazak_: has joined #ruby
[01:29:08] shevy: Ox0dea the shot
[01:30:05] Ox0dea: shevy: Oh, okay. Thanks for clarifying.
[01:31:55] roshanavand: has joined #ruby
[01:32:49] devoldmx: has joined #ruby
[01:33:29] freerobby: has joined #ruby
[01:33:58] IrishGringo: has joined #ruby
[01:34:38] idefine: has joined #ruby
[01:35:38] VeryBewitching: shevy: I <3 KDE
[01:37:01] blackmesa: has joined #ruby
[01:38:57] cassioscabral: has joined #ruby
[01:40:04] jpfuentes2: has joined #ruby
[01:40:08] imperator: has joined #ruby
[01:41:13] pawnbox: has joined #ruby
[01:46:38] rickmasta: has joined #ruby
[01:47:30] RegulationD: has joined #ruby
[01:51:56] kalopsian: has joined #ruby
[01:52:44] cyberarm: has joined #ruby
[01:54:22] devbug: has joined #ruby
[01:56:47] houhoulis: has joined #ruby
[01:58:07] dlitvak: has joined #ruby
[01:58:22] seitensei: has joined #ruby
[01:58:23] seitensei: has joined #ruby
[01:59:49] ruu_: has joined #ruby
[02:00:09] ruu_: has joined #ruby
[02:01:20] lele: has joined #ruby
[02:03:24] devoldmx: has joined #ruby
[02:04:38] devoldmx: has joined #ruby
[02:07:56] moeabdol: has joined #ruby
[02:08:01] shanemcd: has joined #ruby
[02:08:59] jnagro: has joined #ruby
[02:09:03] djbkd: has joined #ruby
[02:11:01] ElFerna: has joined #ruby
[02:12:07] shevy: VeryBewitching I use kde konsole a lot but the rest of it ... hmm
[02:13:07] mmitchell: has joined #ruby
[02:16:12] shadoi: has joined #ruby
[02:16:18] chouhoulis: has joined #ruby
[02:16:25] zzz_: has joined #ruby
[02:20:55] pawnbox: has joined #ruby
[02:30:05] bb010g: has joined #ruby
[02:31:22] roshanavand: has joined #ruby
[02:32:31] atomical_: has joined #ruby
[02:37:46] sdrew: has joined #ruby
[02:38:26] DLSteve: has joined #ruby
[02:40:39] jottr: has joined #ruby
[02:41:51] blackmesa: has joined #ruby
[02:43:46] howdoicomputer: has joined #ruby
[02:46:39] dkam: has joined #ruby
[02:49:21] joneshf-laptop: has joined #ruby
[02:50:23] skcin7: has joined #ruby
[02:50:38] pawnbox: has joined #ruby
[02:51:43] idefine: has joined #ruby
[02:53:13] freerobby: has joined #ruby
[02:55:35] techietrash: has joined #ruby
[02:57:07] dlitvak: has joined #ruby
[02:59:01] eboaz: has joined #ruby
[02:59:47] JoshL: has joined #ruby
[03:07:11] segmond: has joined #ruby
[03:08:06] cwong_on_irc: has joined #ruby
[03:09:38] dlitvak: has joined #ruby
[03:09:38] ramfjord: has joined #ruby
[03:10:19] moeabdol: has joined #ruby
[03:17:00] sankaber: has joined #ruby
[03:17:05] chouhoulis: has joined #ruby
[03:19:42] dkam: has joined #ruby
[03:20:24] pawnbox: has joined #ruby
[03:21:52] cdg: has joined #ruby
[03:26:50] rgtk: has joined #ruby
[03:28:01] skcin7: has joined #ruby
[03:28:48] cdg_: has joined #ruby
[03:31:19] agent_white: has joined #ruby
[03:31:45] oncall-pokemon: has joined #ruby
[03:33:00] oncall-pokemon: has joined #ruby
[03:36:34] govg: has joined #ruby
[03:43:37] blackmesa: has joined #ruby
[03:44:40] DavidDudson: has joined #ruby
[03:45:10] dkam: has joined #ruby
[03:46:28] Uptime: has joined #ruby
[03:46:30] msankhala: has joined #ruby
[03:48:13] guide_X: has joined #ruby
[03:50:17] fullofcaffeine: has joined #ruby
[03:52:04] renemaya: has joined #ruby
[03:55:44] idefine: has joined #ruby
[03:58:14] djbkd: has joined #ruby
[03:58:27] cassioscabral: has joined #ruby
[04:02:39] idefine: has joined #ruby
[04:06:00] dlitvak: has joined #ruby
[04:08:49] idefine: has joined #ruby
[04:10:21] zast: has joined #ruby
[04:11:51] linelevel: has joined #ruby
[04:12:19] linelevel1: has joined #ruby
[04:14:19] weemsledeux: has joined #ruby
[04:14:47] braincrash: has joined #ruby
[04:18:12] chouhoulis: has joined #ruby
[04:18:47] camus: hello, hoping someone can please help me w/ my ruby script: https://gist.github.com/anonymous/70089eb70f6033ba19d9
[04:19:28] camus: I would like to 1) loop through and interpolate the email address in the "url" with a list of email addresses I have, and 2) store the json response in a file, and append each subsequent response until i've queried all email addresses
[04:20:12] st1gma1: has joined #ruby
[04:21:08] imperator: has left #ruby: ("Leaving")
[04:21:37] gix: has joined #ruby
[04:22:57] camus: Was thinking perhaps some type of method that writes to a file with the response or parsed_json, but I am unsure about the syntax, and then for the list of email addresses to populate a portion of the url (where it says email=) maybe another file.. or an array in the above gist that get's iterated through? maybe i could use concatenation to restructure the
[04:22:58] camus: url w/ from the array until the loop is finished?/
[04:23:55] sdothum: has joined #ruby
[04:25:42] gizmore: camus: you want to serialize the json into a file?
[04:25:57] nerium: has joined #ruby
[04:26:49] charliesome: has joined #ruby
[04:28:13] camus: gizmore: hello, thanks for your reply - basically, when i query that URL, it gives me back JSON, I would like to put that reply into a file, and then do it over and over again for other email addresses, so that at the end i have a file with a bunch of JSON in it.
[04:28:44] madcodes: has joined #ruby
[04:29:15] gizmore: camus: and eleminate duplicates?
[04:30:10] gizmore: or just replace with newest??
[04:30:46] camus: gizmore: just append each new response to the file
[04:31:10] gizmore: hmm not exactly
[04:31:20] gizmore: you get json objects back
[04:31:31] gizmore: and want to alter them, based on new data
[04:31:45] gizmore: simple file appending won??t work
[04:32:13] gizmore: unless you come up with a file format that allows it
[04:32:22] camus: ah, ok - basically, that API will give you all of the social media information attached an email address
[04:33:05] camus: so what i want to do is run it across a bunch of email addresses to then have a big json object that i can convert to csv to sort and be able to determine who is most active on social media
[04:33:07] gizmore: how many adresses do you plan to harvest for your malware campaign?
[04:33:25] gizmore: less than 100,000?
[04:33:48] camus: haha, no, i'm trying to determine which of my customers are the most active on social media
[04:33:57] gizmore: so just a bunch of 100?
[04:34:04] camus: yeah something like that
[04:34:19] gizmore: then maybe save the file as JSON or YML
[04:34:34] gizmore: load it before new request, merge it, and save again
[04:35:08] camus: that's over my head i think :)
[04:35:26] gizmore: you got the JSON as ruby object already?
[04:35:34] gizmore: from the website?
[04:35:50] camus: so far i have just gotten it to the point of printing the response on my command line
[04:36:08] camus: i can see the 200 response and the subsequent info
[04:36:33] gizmore: rubyobject = JSON.parse(response)
[04:37:43] camus: ok, so i can assign that to a variable
[04:37:51] gizless: has joined #ruby
[04:38:04] camus: cache = JSON.parse(response)
[04:38:38] gizless: oldcache = JSON.parse(File.read("myfile"))
[04:38:51] havenwood: camus: You can always write to a file with File.write but Ruby has some nifty transactional ways to serialize and store to disk or db built into the stdlib like YAML::DBM, YAML::Store and PStore, etc.
[04:39:06] dlitvak: has joined #ruby
[04:39:09] havenwood: camus: One example: require 'yaml/dbm'; ydbm = YAML::DBM.new 'email.db'; ydbm['example.email.com'] = {example: 'parsed_json'}; ydbm['example.email.com']
[04:39:13] havenwood: #=> {:example=>"parsed_json"}
[04:39:49] havenwood: I dunno if you really need to have the file be JSON.
[04:40:05] camus: I thought I could use a JSON to CSV converter.
[04:40:16] camus: Because then I can upload into Google Docs and sort the columns.
[04:40:33] camus: And also share with others who are non-devs.
[04:41:23] jottr: has joined #ruby
[04:41:31] gizless: 1. load your local file - 2. request new file - 3. merge both - 4. save the merge - 5. export to csv?
[04:41:47] havenwood: camus: You could add email blob pairs to a Hash then serialize it to JSON and save a file I suppose.
[04:44:12] willywos: has joined #ruby
[04:44:22] havenwood: camus: Or give YDBM a try! It's pretty simple to use. :) http://ruby-doc.org/stdlib/libdoc/dbm/rdoc/DBM.html
[04:44:28] howdoicomputer: has joined #ruby
[04:44:49] havenwood: camus: http://ruby-doc.org/stdlib/libdoc/yaml/rdoc/YAML/DBM.html
[04:45:22] camus: gizless: 1. create new file from email address 2. request new file w/ different email address 3. merge 4. save
[04:45:26] blackmesa: has joined #ruby
[04:45:39] camus: havenwood: ok, thanks for your help too, btw!
[04:45:49] gizless: camus: i would suggest you store all emails/customers in one file
[04:46:07] gizless: hence the load/request/merge
[04:46:25] camus: ok i have that
[04:48:21] gizmore: has joined #ruby
[04:50:10] camus: havenwood: i think i need to gain a little bit more experience first before i try your route
[04:50:12] msankhala: has joined #ruby
[04:50:22] Ox0dea: camus: Alternatively, dive in!
[04:50:27] Ox0dea: You'll either die or learn to swim. :P
[04:50:46] camus: Ox0dea: you are talking to my spirit :P
[04:50:55] TheBloke: has joined #ruby
[04:50:59] havenwood: camus: If you're familiar with Hashes then YDBM might be easier than you imagine!
[04:51:30] havenwood: camus: The keys need to be Strings but the values can be anything serializable to YAML.
[04:53:43] havenwood: camus: If you want to think about it even less, here's a little wrapper I wrote around Ruby's PStore that even picks the file name for you :O https://github.com/havenwood/persist#readme
[04:55:23] havenwood: It's really not much easier than the stdlib ways... ;)
[04:55:30] lessless: has joined #ruby
[04:55:52] TDJACR: has joined #ruby
[04:57:23] rakm: has joined #ruby
[05:00:56] bigmac_: has joined #ruby
[05:01:39] znz_jp: has joined #ruby
[05:03:19] camus: how do I open the file with email addresses (one per line) and iterate through that?
[05:05:45] dlitvak: has joined #ruby
[05:06:52] havenwood: camus: Try my YDBM example above with a few email/value pairs and then: ydbm.to_h
[05:07:25] havenwood: camus: Or: ydbm.each { |email, value| ...
[05:07:41] nerium: Anyone knows a tool or platform for publishing data to all social media platforms?
[05:08:20] eytanfb: has joined #ruby
[05:09:33] camus: nerium: https://bufferapp.com/
[05:10:05] nerium: camus: They only support a few services, 4 if im not misstaken
[05:10:26] slackR: has joined #ruby
[05:10:27] nerium: I was hoping to host my own solution as there arn???t any paid ones that work
[05:10:37] camus: ah, ok, i understand
[05:10:38] slackR: .seen jhass
[05:11:04] camus: havenwood: sorry, i think this is still a bit over my head, i am pretty new
[05:11:06] slackR: camus, is your nick taken from Albert Camus? or is camus a regular name?
[05:11:25] camus: slackr: yes, Albert Camus
[05:11:47] havenwood: camus: Ah, yeah if you're not familiar with Hashes it'd be foreign!
[05:12:22] havenwood: camus: Hashes are very much worth learning.
[05:12:44] camus: havenwood: is there something i could do that is more rudimentary, like a for loop or something like that with a method to File.open and then structure the url and to aggregate and store the json?
[05:12:52] havenwood: camus: https://rubymonk.com/learning/books/1-ruby-primer/chapters/10-hashes-in-ruby/lessons/46-introduction-to-ruby-hashes
[05:12:53] slackR: camus, nice.
[05:13:29] havenwood: camus: You could download each and store them as key/value pairs in a Hash, then serialize that Hash to JSON and write it as a file.
[05:15:34] havenwood: camus: hash = {}; hash[email] = parsed_json; File.write('your_file_name.json', hash.to_json)
[05:15:39] havenwood: camus: ^ an example
[05:16:12] camus: ok thanks
[05:17:38] SleepySensei: has joined #ruby
[05:18:15] darkf: has joined #ruby
[05:18:56] chouhoulis: has joined #ruby
[05:18:57] pawnbox: has joined #ruby
[05:20:05] bronson: has joined #ruby
[05:21:42] smactive: has joined #ruby
[05:24:21] fullofcaffeine: has joined #ruby
[05:24:38] Ox0dea: > [something] more rudimentary, like a for loop
[05:24:50] Ox0dea: camus: Did you know that `for` loops actually invoke #each in Ruby?
[05:25:05] camus: Yeah exactly
[05:25:52] Ox0dea: https://eval.in/487719
[05:27:33] shanemcd: has joined #ruby
[05:27:38] rgtk: has joined #ruby
[05:27:56] camus: Ox0dea: https://gist.github.com/anonymous/70089eb70f6033ba19d9 <--- I would like to replace the "####@###.###" with a different email address and instead of "print response" would like to store the response to a file (and append each subsequent response to it)
[05:28:42] Ox0dea: You talk like somebody who thinks they're using a "give me the answer"ing machine.
[05:29:24] camus: Apologies, more like I don't understand what I'm doing and there is a bit of a knot of confusion - not sure which string to pull first to not make it more of a mess.
[05:33:15] alexa: has joined #ruby
[05:33:39] Ox0dea: camus: You have an Array of email addresses, yes?
[05:34:34] ornerymoose: has joined #ruby
[05:34:53] camus: Yeah, I was thinking that maybe I could iterate through the array and concatenate the URL or something? But got a bit dead-ended there.
[05:34:55] TheBloke: has joined #ruby
[05:35:16] p0wn3d_: has joined #ruby
[05:36:03] rakm: has joined #ruby
[05:36:14] Ox0dea: camus: The concept you're looking for is called string interpolation.
[05:37:59] idefine: has joined #ruby
[05:38:09] DavidDudson: has joined #ruby
[05:40:55] lxsameer: has joined #ruby
[05:42:38] z3uS: has joined #ruby
[05:44:02] charliesome: has joined #ruby
[05:46:37] djbkd: has joined #ruby
[05:48:27] blackmesa: has joined #ruby
[05:48:35] pawnbox: has joined #ruby
[05:48:57] RegulationD: has joined #ruby
[05:50:04] guacamole: has joined #ruby
[05:50:15] z3uS: has joined #ruby
[05:51:53] arooni-mobile: has joined #ruby
[05:52:15] bitcycle: has joined #ruby
[05:52:36] psye: has joined #ruby
[05:53:21] z3uS: has joined #ruby
[05:53:35] aspire: has joined #ruby
[05:54:26] idefine: has joined #ruby
[05:56:45] ruu: has joined #ruby
[05:59:07] camus: Ox0dea: thank you for helping me
[06:00:49] renemaya: has joined #ruby
[06:01:32] Ox0dea: camus: It was my pleasure and the like.
[06:02:06] Ox0dea: For reference, OpenURI is pretty nice if you only need to perform basic GET requests.
[06:05:17] camus: ok i will check it out
[06:05:49] psye: has joined #ruby
[06:06:31] roshanavand: has joined #ruby
[06:07:05] seitensei: has joined #ruby
[06:07:46] Ox0dea: require 'open-uri'; File.write 'foo.json', emails.map { |e| JSON.parse open("foo.com/bar.json?email=#{e}").read }.to_json
[06:07:56] Ox0dea: camus: Something like that oughta do in a pinch.
[06:08:20] psye: has joined #ruby
[06:10:54] speaking1ode: has joined #ruby
[06:13:10] lxsameer: has joined #ruby
[06:14:16] howdoicomputer: has joined #ruby
[06:14:50] Maxed: has joined #ruby
[06:15:55] camus: Ox0dea: thanks again
[06:17:29] Maxed: has joined #ruby
[06:17:52] speaking2ode: has joined #ruby
[06:18:00] djbkd: has joined #ruby
[06:18:21] pawnbox: has joined #ruby
[06:18:42] gizmore: has joined #ruby
[06:19:39] chouhoulis: has joined #ruby
[06:20:30] Ox0dea: Sorry about that highlight. :/
[06:20:38] ja: Haha, don???t be
[06:20:46] ja: besides, only ???ja:??? highlights me
[06:21:28] ja: /^ja:/ even
[06:22:24] Maxed: has joined #ruby
[06:23:17] aspire: has joined #ruby
[06:23:50] govg: has joined #ruby
[06:25:15] wjimenez5271: has joined #ruby
[06:25:54] camus: Ox0dea: Hey, I was trying what you just shared (thanks again) and I see that emails is undefined, that's because I need to create my array with the addresses, right?
[06:26:21] Ox0dea: camus: Right.
[06:33:58] idefine: has joined #ruby
[06:36:10] ornerymoose: has joined #ruby
[06:37:46] CloCkWeRX: has joined #ruby
[06:42:11] jottr: has joined #ruby
[06:44:24] djbkd: has joined #ruby
[06:44:52] fullofcaffeine: has joined #ruby
[06:46:55] babblebre: has joined #ruby
[06:50:02] hxegon: has joined #ruby
[06:50:45] colegatron: has joined #ruby
[06:51:29] blackmesa: has joined #ruby
[06:53:58] idefine: has joined #ruby
[06:56:26] dionysus69: has joined #ruby
[06:56:29] ornerymoose: has joined #ruby
[06:58:09] pawnbox: has joined #ruby
[06:59:38] dlitvak: has joined #ruby
[07:01:10] startupality: has joined #ruby
[07:03:27] ornerymoose: has joined #ruby
[07:04:12] yeshacker: has joined #ruby
[07:05:35] dh64: has joined #ruby
[07:08:41] PedramT: has joined #ruby
[07:10:06] idefine: has joined #ruby
[07:10:16] ornerymoose: has joined #ruby
[07:11:11] ibouvousaime: has joined #ruby
[07:11:29] SleepySensei: has joined #ruby
[07:15:29] lessless: has joined #ruby
[07:17:06] ornerymoose: has joined #ruby
[07:17:43] radgeRayden__: has joined #ruby
[07:20:26] chouhoulis: has joined #ruby
[07:20:36] djbkd_: has joined #ruby
[07:23:40] PedramT: has joined #ruby
[07:27:52] Ishido: has joined #ruby
[07:28:33] rgtk: has joined #ruby
[07:30:32] idefine: has joined #ruby
[07:31:58] jackcom: has joined #ruby
[07:32:42] dsdeiz: has joined #ruby
[07:32:51] dsdeiz: anyone happen to know of a gem to do spell and grammar check?
[07:34:14] claw: has joined #ruby
[07:34:36] startupality: has joined #ruby
[07:37:41] pawnbox: has joined #ruby
[07:37:55] ur5us: has joined #ruby
[07:39:00] Ox0dea: dsdeiz: Checking grammar beyond the very rudiments is actually a remarkably difficult problem.
[07:39:05] waheedi: has joined #ruby
[07:39:37] PedramT_: has joined #ruby
[07:39:46] moeabdol: has joined #ruby
[07:40:46] Ox0dea: The "best" option seems to be this wrapper around some online proofreader: https://github.com/subosito/gingerice
[07:40:51] karapetyan: has joined #ruby
[07:41:03] dsdeiz: sorry yeah probably just spelling and just realized that i need it to read markdown files
[07:42:24] Ox0dea: All Markdown syntax is symbolic, so you should be able to extract "words" with /\w+/ just fine.
[07:43:53] rippa: has joined #ruby
[07:43:54] dsdeiz: ah awesome.. thx Ox0dea
[07:44:06] Ox0dea: Sure thing?
[07:47:11] dsdeiz: yeah dunno if it'll work or not though any help is appreciated (cause i don't even know where to start in the first place) heh
[07:47:59] gizless: has joined #ruby
[07:49:18] stannard: has joined #ruby
[07:49:37] yfeldblum: has joined #ruby
[07:52:31] dionysus69: has joined #ruby
[07:52:49] slackR: has joined #ruby
[07:54:29] blackmesa: has joined #ruby
[07:54:49] Ox0dea: dsdeiz: The simplest approach would be to create a Set containing some list of valid words, then report all those which can't be found therein.
[07:55:00] Ox0dea: Slightly more complex but efficient would be to use a Bloom filter.
[07:55:34] Ox0dea: Additionally, http://norvig.com/spell-correct.html is quite an enlightening read on the matter.
[07:55:54] Ox0dea: Or just use the wrapper around Hunspell. :P
[07:58:42] ehth77_: has joined #ruby
[08:05:14] ornerymoose: has joined #ruby
[08:06:44] gizmore: has joined #ruby
[08:07:33] gizmore|2: has joined #ruby
[08:10:15] seitensei: has joined #ruby
[08:11:03] devoldmx: has joined #ruby
[08:11:45] arup_r: has joined #ruby
[08:13:33] ur5us: has joined #ruby
[08:14:09] karapetyan: has joined #ruby
[08:14:57] howdoicomputer: has joined #ruby
[08:17:30] symm-: has joined #ruby
[08:17:37] slackR: has joined #ruby
[08:17:48] atmosx: Good morning
[08:18:02] atmosx: is it normal to serialize a file with Python and not being able to read it with Ruby?
[08:18:50] xet7: has joined #ruby
[08:19:29] ruu: has joined #ruby
[08:20:05] Ox0dea: atmosx: Are you trying to unpickle something with Ruby?
[08:20:55] atmosx: Ox0dea: no, I'm using json
[08:21:09] Ox0dea: Then no, that's not normal.
[08:21:09] chouhoulis: has joined #ruby
[08:22:03] atmosx: I'm need a light-weight human readable file that will act as DB, but YAML (my first choice) produced by py27 PyYAML are hard to read/edit, then I tried msgpack same, now I'm trying json and I get this
[08:22:07] atmosx: "{\"prod00\": [\"client_stc\", \"client_demo\",
[08:22:52] atmosx: that's a sample o0fcourse not the entire dic/hash
[08:23:03] devbug: has joined #ruby
[08:23:14] atmosx: would love thse slashes to go away
[08:23:15] jackcom: has left #ruby: ()
[08:24:43] Ox0dea: >> (91..93).map(&:chr) # atmosx
[08:24:44] ruboto: Ox0dea # => ["[", "\\", "]"] (https://eval.in/487763)
[08:25:10] Ox0dea: The backslashes aren't "really there", so to speak; it's just how Ruby displays escaped characters.
[08:25:40] Ox0dea: Your JSON file doesn't actually contain the backslashes, right?
[08:26:12] atmosx: Ox0dea: my bad, I was serializing twice!
[08:29:00] BaroMeter: has joined #ruby
[08:29:49] idefine: has joined #ruby
[08:32:26] blandflakes: has joined #ruby
[08:33:41] blackmesa: has joined #ruby
[08:34:31] Bloomer: has joined #ruby
[08:42:55] jottr: has joined #ruby
[08:43:59] waheedi: has joined #ruby
[08:45:10] startupality: has joined #ruby
[08:46:17] idefine: has joined #ruby
[08:46:23] PedramT: has joined #ruby
[08:46:42] cyfr0n: has joined #ruby
[08:52:29] agent_white: has joined #ruby
[08:53:59] suffice: has joined #ruby
[08:56:51] nanoz: has joined #ruby
[09:00:41] Jackneill: has joined #ruby
[09:06:28] idefine: has joined #ruby
[09:08:15] PedramT: has joined #ruby
[09:09:59] symm-: has joined #ruby
[09:13:10] startupality: has joined #ruby
[09:14:13] radgeRayden__: has joined #ruby
[09:21:52] chouhoulis: has joined #ruby
[09:23:16] rgtk: has joined #ruby
[09:24:01] djbkd: has joined #ruby
[09:24:57] Ox0dea: Is this okay? https://eval.in/487767
[09:26:17] idefine: has joined #ruby
[09:28:20] karapetyan: has joined #ruby
[09:29:14] bkxd: has joined #ruby
[09:29:32] troulouliou_div2: has joined #ruby
[09:33:31] apeiros: -q jackcom!*@*
[09:36:27] startupality: has joined #ruby
[09:39:20] BaroMeter: has joined #ruby
[09:40:01] PedramT: has joined #ruby
[09:41:33] djbkd: has joined #ruby
[09:43:10] karapetyan: has joined #ruby
[09:44:37] roshanavand: has joined #ruby
[09:45:11] yardenbar: has joined #ruby
[09:46:08] blackmesa: has joined #ruby
[09:50:27] RegulationD: has joined #ruby
[09:52:02] StevenXL: has joined #ruby
[09:52:02] StevenXL: has joined #ruby
[09:54:18] xet7: has joined #ruby
[09:55:55] idefine: has joined #ruby
[09:57:03] snowy: has joined #ruby
[10:02:06] firstdayonthejob: has joined #ruby
[10:02:59] rodfersou: has joined #ruby
[10:03:03] spider-mario: has joined #ruby
[10:03:39] alphaatom: has joined #ruby
[10:06:12] ruu: has joined #ruby
[10:09:18] yardenbar: has joined #ruby
[10:11:03] seitensei: has joined #ruby
[10:11:03] seitensei: has joined #ruby
[10:11:05] AKASkip: has joined #ruby
[10:11:48] devoldmx: has joined #ruby
[10:12:09] ruu_: has joined #ruby
[10:12:37] msankhala: has joined #ruby
[10:13:03] gizmore: has joined #ruby
[10:13:13] InvGhost: has joined #ruby
[10:15:40] howdoicomputer: has joined #ruby
[10:17:09] mikecmpbll: has joined #ruby
[10:17:20] ledestin: has joined #ruby
[10:21:27] moei: has joined #ruby
[10:22:38] chouhoulis: has joined #ruby
[10:25:26] karapetyan: has joined #ruby
[10:28:50] jottr: has joined #ruby
[10:33:15] blandflakes: has joined #ruby
[10:36:28] karapetyan: has joined #ruby
[10:42:42] claw: has joined #ruby
[10:45:00] moeabdol: has joined #ruby
[10:47:00] PedramT: has joined #ruby
[10:48:21] smactive: has joined #ruby
[10:50:33] guacamole: has joined #ruby
[10:52:26] xet7: has joined #ruby
[10:52:37] shevy: looks like java
[10:53:24] PedramT: has joined #ruby
[10:54:46] karapetyan: has joined #ruby
[10:57:11] moeabdol: has joined #ruby
[10:57:41] moeabdol: has joined #ruby
[10:58:04] Mia: has joined #ruby
[10:58:05] Mia: has joined #ruby
[11:05:41] The_Phoenix: has joined #ruby
[11:06:27] dionysus69: has joined #ruby
[11:13:04] sandstrom: has joined #ruby
[11:13:26] ibouvousaime: has joined #ruby
[11:14:36] djbkd: has joined #ruby
[11:17:00] FernandoBasso: has joined #ruby
[11:20:10] stamina: has joined #ruby
[11:21:42] basex: has joined #ruby
[11:23:24] chouhoulis: has joined #ruby
[11:24:10] InvGhost: has joined #ruby
[11:24:12] dlitvak: has joined #ruby
[11:24:20] lapide_viridi: has joined #ruby
[11:24:52] pontiki: Ox0dea: that breaks my febrile brain
[11:24:58] pawnbox: has joined #ruby
[11:25:44] psye: has joined #ruby
[11:26:45] psye: has joined #ruby
[11:31:44] SCHAAP137: has joined #ruby
[11:32:53] pawnbox: has joined #ruby
[11:37:23] dlitvak: has joined #ruby
[11:39:18] skade: has joined #ruby
[11:42:34] varunwachaspati: has joined #ruby
[11:50:08] jackcom: has joined #ruby
[11:51:07] HashNuke: Hello everyone ~!
[11:51:48] HashNuke: What's the different between using Mechanize and RestClient+Nokogiri? Does using Mechanize have any advantage?
[11:52:16] HashNuke: I don't have any forms to click or submit.
[11:53:37] moeabdol: has joined #ruby
[11:54:21] alphaatom: has joined #ruby
[11:54:54] ElFerna: has joined #ruby
[11:54:56] Zackio: has joined #ruby
[11:55:47] codecop: has joined #ruby
[11:59:52] blackmesa: has joined #ruby
[12:00:43] n008f4g_: has joined #ruby
[12:03:34] symm-: has joined #ruby
[12:06:40] edwinvdgraaf: has joined #ruby
[12:08:23] root_murdoc: has joined #ruby
[12:09:58] PedramT: has joined #ruby
[12:10:02] FooMunki: has joined #ruby
[12:10:38] msankhala: has joined #ruby
[12:11:56] seitensei: has joined #ruby
[12:11:57] seitensei: has joined #ruby
[12:12:22] edwinvdgraaf: has joined #ruby
[12:12:29] devoldmx: has joined #ruby
[12:13:01] robbyoconnor: has joined #ruby
[12:13:33] colegatron: has joined #ruby
[12:13:47] symm-: has joined #ruby
[12:14:21] dlitvak_: has joined #ruby
[12:14:48] tknz: has joined #ruby
[12:15:11] millerti: has joined #ruby
[12:15:20] root_murdoc: has joined #ruby
[12:15:45] sandstrom: has joined #ruby
[12:16:15] root_murdoc: has joined #ruby
[12:16:25] howdoicomputer: has joined #ruby
[12:17:08] ht__: has joined #ruby
[12:17:25] root_murdoc: has joined #ruby
[12:17:42] ht__: has joined #ruby
[12:17:47] InvGhost: has joined #ruby
[12:18:24] lessless: has joined #ruby
[12:18:25] root_murdoc: has joined #ruby
[12:18:37] edwinvdgraaf: has joined #ruby
[12:19:29] skakri: has joined #ruby
[12:24:06] chouhoulis: has joined #ruby
[12:25:30] slucx: has joined #ruby
[12:25:48] shevy: pontiki your feline brain?
[12:26:18] shevy: HashNuke dealing with XML always made me sad
[12:26:28] shevy: mechanize made me happier
[12:29:36] jottr: has joined #ruby
[12:32:32] idakyne: has joined #ruby
[12:34:27] charliesome: has joined #ruby
[12:35:21] blandflakes: has joined #ruby
[12:37:05] root_murdoc: has joined #ruby
[12:38:24] jottr: has joined #ruby
[12:39:13] root_murdoc: has joined #ruby
[12:40:26] Hanmac: has joined #ruby
[12:41:14] root_murdoc: has joined #ruby
[12:41:31] sdothum: has joined #ruby
[12:42:32] Bellthoven: has joined #ruby
[12:43:08] FernandoBasso: has joined #ruby
[12:47:10] charliesome: has joined #ruby
[12:47:52] zanzarel: has joined #ruby
[12:50:18] fullofcaffeine: has joined #ruby
[12:50:59] InvGhost: has joined #ruby
[12:54:23] jottr: has joined #ruby
[12:57:45] c355E3B: has joined #ruby
[13:01:16] nanoz: has joined #ruby
[13:01:24] yfeldblum: has joined #ruby
[13:02:20] djbkd: has joined #ruby
[13:07:07] decoponio: has joined #ruby
[13:07:09] edwinvdgraaf: has joined #ruby
[13:07:27] Bellthoven: has joined #ruby
[13:07:38] ramfjord: has joined #ruby
[13:09:52] jottr: has joined #ruby
[13:11:08] DenysLins: has joined #ruby
[13:12:44] radgeRayden__: has joined #ruby
[13:13:17] Chau: has joined #ruby
[13:15:32] kobain: has joined #ruby
[13:15:44] ElFerna: has joined #ruby
[13:17:32] ht__: has joined #ruby
[13:18:13] dlitvak: has joined #ruby
[13:18:17] ruid: has joined #ruby
[13:18:18] ruid: has joined #ruby
[13:18:36] dlitvak: has joined #ruby
[13:20:57] madcodes: has joined #ruby
[13:23:20] edwinvdgraaf: has joined #ruby
[13:24:17] ElFerna: has joined #ruby
[13:24:27] mrtomme: has joined #ruby
[13:24:51] chouhoulis: has joined #ruby
[13:25:12] akem: has joined #ruby
[13:25:30] d0nn1e: has joined #ruby
[13:26:25] wildlander: has joined #ruby
[13:29:41] tomphp: has joined #ruby
[13:32:29] kirun: has joined #ruby
[13:37:49] basex: has joined #ruby
[13:41:28] last_staff: has joined #ruby
[13:41:52] prestorium: has joined #ruby
[13:46:00] alphaatom: has joined #ruby
[13:46:14] nateberkopec: has joined #ruby
[13:47:15] alphaatom: has joined #ruby
[13:47:32] millerti: has joined #ruby
[13:49:09] idefine: has joined #ruby
[13:51:56] RegulationD: has joined #ruby
[13:53:09] idefine_: has joined #ruby
[13:57:16] houhoulis: has joined #ruby
[13:59:34] agit0: has joined #ruby
[14:02:06] mary5030: has joined #ruby
[14:02:41] The_Phoenix: has joined #ruby
[14:03:01] linduxed: has joined #ruby
[14:08:05] edwinvdgraaf: has joined #ruby
[14:09:50] Vitor: has joined #ruby
[14:10:40] jottr: has joined #ruby
[14:11:19] dionysus69: has joined #ruby
[14:12:52] seitensei: has joined #ruby
[14:13:17] devoldmx: has joined #ruby
[14:14:14] basex: has joined #ruby
[14:14:23] chipotle: has joined #ruby
[14:14:26] idefine: has joined #ruby
[14:16:51] lxsameer: has joined #ruby
[14:16:51] lxsameer: has joined #ruby
[14:17:12] howdoicomputer: has joined #ruby
[14:21:36] prillian5: has joined #ruby
[14:22:12] prillian5: how can I solve this: http://pastebin.com/zwxa1MnM
[14:22:12] ruboto: prillian5, 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
[14:22:44] prillian5: https://gist.github.com/suther/a50fb1b3d92fe597cc3f
[14:22:52] basex: has joined #ruby
[14:22:57] nonopposition: has joined #ruby
[14:25:16] dlitvak: has joined #ruby
[14:25:39] chouhoulis: has joined #ruby
[14:25:54] Mon_Ouie: If the gem dependencies are accurate you can't use this version of the money gem with that version of Rails
[14:25:56] dorei: has joined #ruby
[14:26:36] basex: has joined #ruby
[14:27:20] Mon_Ouie: However it might be that the money gem can still run with i18n v0.7.0 despite the stronger dependency, you could try editing the gemspec and running its tests to see if it works
[14:27:56] prillian5: ok, find out... in a GEMFILE of a plugin, there is an if condition for $RUBY_VERSION.
[14:28:08] prillian5: But this ENV-Var is not set in system
[14:28:23] prillian5: how can I set this (maybe for other plugins to use it).
[14:28:37] prillian5: Manualy export it, or is there an "install"-way with ruby
[14:30:04] stannard: has joined #ruby
[14:31:15] fexilal: has joined #ruby
[14:32:17] basex: has joined #ruby
[14:34:15] yashinbasement: has joined #ruby
[14:35:29] basex: has joined #ruby
[14:36:10] blandflakes: has joined #ruby
[14:37:41] iateadonut: has joined #ruby
[14:38:02] chipotle: has joined #ruby
[14:38:14] Jardayn: has joined #ruby
[14:39:09] basex: has joined #ruby
[14:40:19] bronson: has joined #ruby
[14:41:32] LightStalker: has joined #ruby
[14:41:54] speaking1ode: has joined #ruby
[14:43:24] cdg: has joined #ruby
[14:43:29] iko1: has joined #ruby
[14:43:33] ht__: has joined #ruby
[14:43:36] idefine: has joined #ruby
[14:44:26] basex: has joined #ruby
[14:44:46] absolutejam: has joined #ruby
[14:47:20] nerium: has joined #ruby
[14:48:07] _axx: has joined #ruby
[14:48:44] weemsledeux: has joined #ruby
[14:51:25] shevy: prillian5 you could always add to ENV in a .rb file
[14:51:34] aryaching: has joined #ruby
[14:52:18] blandflakes: has joined #ruby
[14:52:47] thisirs: has joined #ruby
[14:53:40] skade: has joined #ruby
[14:53:57] jackcom: has left #ruby: ()
[14:54:13] djbkd: has joined #ruby
[14:55:40] cdg: has joined #ruby
[14:57:06] basex: has joined #ruby
[14:57:31] s00pcan: has joined #ruby
[15:00:32] chouhoulis: has joined #ruby
[15:01:41] speaking1ode: has joined #ruby
[15:01:54] PedramT: has joined #ruby
[15:03:05] Jackneill: has joined #ruby
[15:05:24] karapetyan: has joined #ruby
[15:07:51] sankaber: has joined #ruby
[15:08:08] edwinvdgraaf: has joined #ruby
[15:08:39] Bellthoven: has joined #ruby
[15:09:12] PedramT_: has joined #ruby
[15:10:51] FernandoBasso: has joined #ruby
[15:11:03] speaking1ode: has joined #ruby
[15:11:09] Guest80357: has joined #ruby
[15:11:14] mistermocha: has joined #ruby
[15:13:00] edwinvdgraaf: has joined #ruby
[15:14:06] n008f4g_: has joined #ruby
[15:19:44] idefine: has joined #ruby
[15:20:07] willywos: has joined #ruby
[15:20:56] araujo: has joined #ruby
[15:20:57] araujo: has joined #ruby
[15:22:11] davedev24: has joined #ruby
[15:22:39] last_staff: has joined #ruby
[15:22:40] blandflakes: has joined #ruby
[15:23:36] ht__: has joined #ruby
[15:24:03] prestorium_: has joined #ruby
[15:24:13] guacamole: has joined #ruby
[15:25:31] bugo: has joined #ruby
[15:26:07] yardenbar: has joined #ruby
[15:26:57] bugo: I have a stupid question. When using bundle how to debug what happened when building native extensions fail. For example: https://gist.github.com/MartynasM/5020786b139168ad6c5d
[15:27:32] shevy: bugo that is a common problem when it comes to native extensions
[15:27:35] ht__: has joined #ruby
[15:27:39] shevy: one hint is in that file you showed though: /usr/bin/ld: cannot find -lgmp
[15:27:45] shevy: so the libgmp.so was not found
[15:28:56] bugo: Oh yea! That one was not so hard :( sorry I asked :( Should have read everything in detail first
[15:29:01] symm-: has joined #ruby
[15:29:14] bugo: tnx shevy !
[15:29:19] prestorium: has joined #ruby
[15:29:37] mrtomme: has joined #ruby
[15:35:03] Dry_Lips: has joined #ruby
[15:36:10] willywos: has joined #ruby
[15:37:55] cwong_on_irc: has joined #ruby
[15:39:44] nateberkopec: has joined #ruby
[15:39:58] idefine: has joined #ruby
[15:41:54] pdoherty: has joined #ruby
[15:42:43] mistermocha: has joined #ruby
[15:43:46] araujo: has joined #ruby
[15:43:47] araujo: has joined #ruby
[15:45:09] jottr: has joined #ruby
[15:45:35] roshanavand: has joined #ruby
[15:45:51] _stu_: has joined #ruby
[15:46:13] atomical: has joined #ruby
[15:46:49] kobain: has joined #ruby
[15:46:52] kobain: has joined #ruby
[15:47:36] ht__: has joined #ruby
[15:49:26] sandstrom: has joined #ruby
[15:50:31] nofxx: has joined #ruby
[15:51:14] IrishGringo: has joined #ruby
[15:52:33] mistermocha: has joined #ruby
[15:52:59] Guest80357: has left #ruby: ()
[15:53:41] davedev24: has joined #ruby
[15:55:07] dionysus69: has joined #ruby
[15:56:18] mary5030: has joined #ruby
[15:57:02] arup_r: has joined #ruby
[15:57:04] pawnbox: has joined #ruby
[15:57:35] ht__: has joined #ruby
[15:58:00] pawnbox: has joined #ruby
[15:58:46] yardenbar: has joined #ruby
[15:58:57] alphaatom: has joined #ruby
[16:01:08] skakri: has joined #ruby
[16:04:27] sumark: has joined #ruby
[16:04:54] diegoviola: has joined #ruby
[16:07:27] cassioscabral: has joined #ruby
[16:10:42] dwfait: has joined #ruby
[16:13:42] seitensei: has joined #ruby
[16:14:05] devoldmx: has joined #ruby
[16:17:12] dwfait_: has joined #ruby
[16:17:36] ht__: has joined #ruby
[16:17:55] howdoicomputer: has joined #ruby
[16:19:51] atomical_: has joined #ruby
[16:21:21] stannard: has joined #ruby
[16:21:42] ramfjord: has joined #ruby
[16:25:29] startupality: has joined #ruby
[16:26:08] prestorium: has joined #ruby
[16:28:39] dlitvak: has joined #ruby
[16:31:37] startupality: has joined #ruby
[16:33:19] idefine: has joined #ruby
[16:34:04] yardenbar: has joined #ruby
[16:34:42] dwfait: has joined #ruby
[16:36:22] doodleha_: has joined #ruby
[16:36:36] Yzguy: has joined #ruby
[16:37:10] hesco: has joined #ruby
[16:37:31] rgtk: has joined #ruby
[16:37:38] dwfait: Hello all. Does anyone have any resources on getting into the internals of Ruby? I???ve tried googling, but most things come up developing with ruby, not ruby itself.
[16:37:55] chipotle: has joined #ruby
[16:38:19] hesco: I'm having issues on a two node Vagrantfile which are explained fully here: https://gist.github.com/hesco/50434ae9b36b1b422e97 Can anyone please lend a moment to suggest what it is I might be getting wrong here? Its probably more of a ruby issue, than a vagrant issue, but I'm not entirely sure about that.
[16:38:21] Ox0dea: dwfait: Are you quite fluent in C, then?
[16:38:28] dwfait: So far I???ve been compiling ruby with my own C methods and having a bit of fun, but some overviews of the internal structures like what is an ID versus a Symbol would be good
[16:38:34] RegulationD: has joined #ruby
[16:38:44] dwfait: I have a history in C/C++, yeah
[16:38:55] hxegon: has joined #ruby
[16:39:04] dwfait: It???s the abstractions and getting to grips with the large codebase I???d like some pointers with :)
[16:39:31] Ox0dea: dwfait: Well, there's http://patshaughnessy.net/ruby-under-a-microscope
[16:39:36] idefine: has joined #ruby
[16:39:43] dwfait: I???m looking through that at the moment, it???s been quite helpful
[16:40:27] root_murdoc: has joined #ruby
[16:40:47] Ox0dea: There's also http://i.loveruby.net/ja/rhg/book/
[16:41:11] Ox0dea: Some efforts have been made to translate it into English, but none are complete.
[16:41:12] root_murdoc: has joined #ruby
[16:41:28] Ox0dea: https://ruby-hacking-guide.github.io/ seems the best attempt.
[16:41:45] startupality: has joined #ruby
[16:42:05] Ox0dea: Best is really to just dive in with a good editor.
[16:42:29] dwfait: Cool, thanks - haven???t seen that one, I???ll check it out.
[16:43:13] atomical: has joined #ruby
[16:43:41] dwfait: My second question - I???ve heard a large goal for Ruby 3 is making the language faster. Are there any benchmarking suites I can run against ruby to test out changes?
[16:43:52] dwfait: Would working on a suite like that be a good contribution for ruby?
[16:44:24] djbkd: has joined #ruby
[16:45:33] dionysus69: has joined #ruby
[16:45:43] Ox0dea: I don't think such a thing exists, but I suspect it'd be a welcome addition.
[16:45:47] idefine: has joined #ruby
[16:45:54] Ox0dea: There's always The Computer Language
[16:45:59] Ox0dea: Benchmarks Game: http://benchmarksgame.alioth.debian.org/
[16:47:27] havenwood: dwfait: http://chrisseaton.com/rubytruffle/deoptimizing/benchmarks/
[16:47:52] sandstrom: has joined #ruby
[16:48:04] chrisseaton: havenwood dwfait: https://github.com/jruby/bench9000
[16:48:04] havenwood: dwfait: https://github.com/jruby/bench9000
[16:48:11] havenwood: chrisseaton: :D
[16:48:21] chrisseaton: but beware - it's designed to be scientifically rigorous, not easy to use
[16:49:09] Ox0dea: Holy Graal!
[16:49:10] chrisseaton: sample output is here http://jruby.org/bench9000/
[16:50:18] startupality: has joined #ruby
[16:50:20] firstdayonthejob: has joined #ruby
[16:52:22] idefine: has joined #ruby
[16:53:49] IrishGringo: has joined #ruby
[16:54:40] dwfait: Thanks all, I???ll get stuck into those
[16:58:32] hesco: under what circumstances would a method remember an argument from a previous invocation, rather than accept and process the new argument. That is the behavior I am seeing and I have refactored this code in multiple ways without changing this observed behavior.
[16:58:46] bitri: has joined #ruby
[17:00:10] idefine: has joined #ruby
[17:00:34] toretore: ?code hesco
[17:00:35] ruboto: hesco, We can't help you without your code, please post it to https://gist.github.com
[17:00:51] dlitvak: has joined #ruby
[17:01:00] hesco: https://gist.github.com/hesco/50434ae9b36b1b422e97
[17:01:30] hesco: thanks toretore: any ideas would be appreiated.
[17:02:03] djbkd: has joined #ruby
[17:02:36] idefine_: has joined #ruby
[17:04:17] Ox0dea: >> def foo x; (@x ||= x) * 2; end; [foo(21), foo(-6)] # hesco
[17:04:18] ruboto: Ox0dea # => [42, 42] (https://eval.in/487971)
[17:04:42] havenwood: Memoiiiize it, don't critiziiiize it. Memoize it and will advertise it.
[17:04:54] Ox0dea: That answers your question at its barest, but I can't say how it relates to your Vagrant problem.
[17:05:16] solars: has joined #ruby
[17:06:49] shevy: Memoiiiiiiiiiiiiiize
[17:07:12] shevy: what is the topic, anyway
[17:07:12] toretore: hesco, i assume your problem is line 55 and the method on line 8?
[17:07:41] toretore: hesco, first thing that stands out is you're assigning to a global variable on line 10
[17:07:53] havenwood: shevy: good mornin'
[17:08:04] hesco: toretore: yes, method at line 8, invoked from line 55
[17:09:01] bitri: has joined #ruby
[17:09:10] Bellthoven: has joined #ruby
[17:09:11] hesco: The $ sigal is for a global, a : sigal is for a symbol and no signal is a local variable, is that right?
[17:09:18] symm-: has joined #ruby
[17:09:45] hesco: on, so I certainly intend a local variable in this context.
[17:10:37] hesco: testing again. if I can. my build depends on our vpn I suspect, although I am unable to access IRC from the office.
[17:10:46] toretore: hesco, are you sure this does what you think it does? `Vagrant.configure(2){|c| nodes.each{|n| config.vm.provision 'shell', inline: dynamic_config_for(node) } }`
[17:11:33] toretore: i think you're just overwriting the vm config
[17:12:00] hesco: toretore: yes, it will successfully configure a nic on the machines, unfortunately it assigned both machines the same IP.
[17:12:16] toretore: hesco, https://docs.vagrantup.com/v2/multi-machine/
[17:12:23] toretore: you are not defining multiple machines
[17:12:40] idefine: has joined #ruby
[17:13:07] toretore: you are using config, not jenkins
[17:13:22] toretore: config = global, jenkins = current machine
[17:14:05] ElFerna: has joined #ruby
[17:14:19] toretore: so: you are overwriting or adding to the global config, not the per-machine config
[17:14:24] hesco: yes: config.vm.define "#{nodes[host]['host']}" do |jenkins|
[17:14:32] hesco: jenkins is the current machine
[17:14:49] toretore: jenkins.vm.provision
[17:15:13] toretore: move all config.* out of the each loop
[17:15:17] toretore: then it will be clear
[17:17:40] shevy: havenwood I could need some coffee
[17:19:17] ruboto: here's a coffee, you seem to need it: ???
[17:19:43] Yzguy: hey hesco maybe this can give you something to reference? https://github.com/yzguy/vagrant-puppet/blob/master/Vagrantfile
[17:20:12] Yzguy: you shouldn't need to do all that crazy network script stuff
[17:20:40] hesco: toretore: you mean like this: https://gist.github.com/hesco/50434ae9b36b1b422e97#file-200-vagrantfile-refactored
[17:21:54] toretore: hesco, yes, and now it won't work for reasons that should be clear
[17:22:36] toretore: actually, you seem to just have changed random words so nothing makes sense any more
[17:22:50] pipework: toretore: That's how I code and it seems to work.
[17:23:03] hesco: Yzguy: as explained in https://gist.github.com/hesco/50434ae9b36b1b422e97#file-010-problem-statement, I believe I may be working with a crippled base image. I had filed bug reports on Mitchell Hashimoto's project thinking it was his suse/cap/network_something.rb code, but now I am blaming the ISO I got from operations when I built our base box.
[17:23:09] toretore: pipework, if given enough time
[17:23:38] Yzguy: yeah i read that, i may have mis understood?
[17:23:42] Yzguy: I think i have run into the same issue
[17:23:47] toretore: hesco, as i've already explained: config.vm are *global options*; jenkins.vm are *per machine options*
[17:23:56] toretore: hesco, that should be enough for you to fix it
[17:24:46] hesco: toretore: well the reason which seems a bit murky to me is: seems lke am no longer iterating across my provisioning code for each machine.
[17:25:18] toretore: i don't know what else i can say to make it clearer
[17:26:00] toretore: you iterate through the `nodes` to make per-machine configuration. the per-machine configuration is done on the `jenkins` object
[17:26:27] toretore: the `config` object is *global* configuration that is applied to *all* machines
[17:26:54] toretore: if you have *per machine* configuration, use the *jenkins* object
[17:27:10] zzz: has joined #ruby
[17:27:11] hesco: but so I need to bring my shell provisioner inside the jenkins loop then
[17:27:23] hesco: ok, trying this again.
[17:28:25] ashemark: has joined #ruby
[17:28:45] Ox0dea: Hey, ashemark!
[17:28:48] toretore: start with a new file, then write it from the ground up, adding your configuration from the old file and try to understand each step as you're doing it
[17:28:55] nerium: has joined #ruby
[17:28:56] hesco: toretore: I think this updated version better reflects your advise: https://gist.github.com/hesco/50434ae9b36b1b422e97#file-200-vagrantfile-refactored
[17:29:12] idefine: has joined #ruby
[17:32:25] toretore: no, that makes no sense
[17:32:25] hxegon: has joined #ruby
[17:32:25] toretore: you don't have the each loop
[17:32:26] toretore: as i said, start fresh
[17:32:26] ashemark: Ox0dea: hey!
[17:32:30] toretore: and don't just move things around randomly
[17:32:30] TheBloke-: has joined #ruby
[17:32:31] peteyg_: has joined #ruby
[17:32:31] ItSANgo__: has joined #ruby
[17:32:32] Rutix`away: has joined #ruby
[17:32:32] Rutix`away: has joined #ruby
[17:32:32] Jet4Fire_: has joined #ruby
[17:32:32] matled-: has joined #ruby
[17:32:32] houhoulis: has joined #ruby
[17:32:32] symm-_: has joined #ruby
[17:32:32] fumduq: has joined #ruby
[17:32:32] Fridtjof_: has joined #ruby
[17:32:32] The_Phoenix1: has joined #ruby
[17:32:35] sankaber: has joined #ruby
[17:32:37] wjimenez5271: has joined #ruby
[17:32:49] slackR: has joined #ruby
[17:32:50] Yzguy: hesco, ill send you somethign in a minute
[17:32:56] Yzguy: that I think will work out for you
[17:33:01] nunchuck: has joined #ruby
[17:33:01] pipework: Maybe it'll be a hug!
[17:33:22] atumzin: has joined #ruby
[17:33:23] atumzin: has joined #ruby
[17:33:33] ashemark: I want to parse and append to some html files..
[17:33:34] Drakevr_: has joined #ruby
[17:33:39] Shapeshi1ter: has joined #ruby
[17:33:41] cats: has joined #ruby
[17:34:02] ashemark: I've found nokogiri which can help parse, but how do I edit files in place, 'the ruby way'?
[17:34:25] hesco: thanks Yzguy: look forward to seeing that.
[17:34:30] Morrolan: has joined #ruby
[17:34:47] Lildirt: has joined #ruby
[17:34:51] hesco: toretore: I see what you were saying. I think this cleans up the sloppiness: https://gist.github.com/hesco/50434ae9b36b1b422e97#file-200-vagrantfile-refactored
[17:35:00] zotherstupidguy: has joined #ruby
[17:35:02] toretore: ashemark, it's not "the ruby way", it's "the nokogiri way"; meaning: you are limited to what the nokogiri api lets you do
[17:35:08] Yzguy: it kinda looks like you're trying to condense and handle so much in as little code as possible, which is gonna be hard to manage
[17:35:16] ebertx: has joined #ruby
[17:35:45] sjumsa: has joined #ruby
[17:36:02] toretore: hesco, not at all. do you understand what i'm trying to tell you about config and jenkins and the each loop?
[17:36:05] ashemark: toretore: of course, but I was thinking on the lines of sed for ruby..
[17:36:14] devbug: has joined #ruby
[17:36:20] Yzguy: and we can handle the network interface issue seperately, i think i know how to solve it
[17:36:22] toretore: ashemark, do you use sed to parse html?
[17:37:01] waheedi: has joined #ruby
[17:37:21] ashemark: toretore: want to combine nokogiri and sed
[17:37:43] toretore: ashemark, how would that work?
[17:37:45] ashemark: thought as awesome as ruby is, there must be already be a nice method/library
[17:38:11] zzz_: has joined #ruby
[17:38:12] ashemark: toretore: edit/append to html files at certain places
[17:38:14] hesco: toretore: what I understand is that: the each loop provides me a jenkins object to configure each vagrant box
[17:38:22] last_staff: has joined #ruby
[17:38:23] toretore: ashemark, html parsing and editing is very complex, it's not something that can be distilled into a "nice method/library"
[17:38:46] toretore: hesco, no, the each loop doesn't, but the config.vm.define does
[17:39:15] gambl0re: has joined #ruby
[17:39:18] ashemark: toretore: ok..
[17:39:25] toretore: hesco, so inside the each loop you use that to define each machine
[17:39:34] hesco: and further that the config object needs to be global and will apply to every node in the Vagrantfile
[17:39:47] toretore: hesco, then you pass a block to define which lets you configure that particular machine
[17:39:54] toretore: hesco, that is true
[17:40:11] dmolina: has joined #ruby
[17:40:17] toretore: ashemark, i suggest: 1) parse html with nokogiri into a dom tree; 2) mutate nokogiri dom tree; 3) write this dom tree to a file or whatever
[17:40:34] ashemark: toretore: that's the process I'm contemplating right now..
[17:40:50] toretore: ashemark, the "in place stream editing" of sed is not fit for html
[17:40:57] ramfjord: has joined #ruby
[17:41:33] hesco: toretore: sorry, of course, the each loop iterates over my hosts hash, config.vm.define exposes the jenkins object.
[17:42:00] toretore: hesco, yes. and then inside that block put your per-machine config, and *only* that
[17:42:42] toretore: hesco, it might be easier if you just manually config.vm.define for each machine and use static configuration
[17:42:45] hesco: defining the jenkins object inside the hash iterations allows me to apply the values of the hash keys to customize each node defined by the jenkins object.
[17:43:16] Yzguy: hesco https://gist.github.com/yzguy/70876b1b2d6489b5b578
[17:43:45] Yzguy: much cleaner, seperate config per VM, a lot easier to manage
[17:44:00] Yzguy: instead of having a hash where you are doing conditionals to define if something gets applied or not
[17:44:35] Yzguy: also uses vagrant-hosts plugin to handle /etc/hosts file so they can resolve each other
[17:44:52] toretore: >> require 'net/http'; print Net::HTTP.get('http://httpbin.org/').gsub(/HTTP/, 'FTP') # ashemark
[17:44:53] ruboto: toretore # => undefined method `hostname' for "http://httpbin.org/":String (NoMethodError) ...check link for more (https://eval.in/487974)
[17:45:09] toretore: >> require 'net/http'; require 'uri'; print Net::HTTP.get(URI 'http://httpbin.org/').gsub(/HTTP/, 'FTP') # ashemark
[17:45:10] ruboto: toretore # => (https://eval.in/487975)
[17:46:25] Yzguy: hopefully that helps, like I said https://github.com/yzguy/vagrant-puppet would be a good reference for you on how to accomplish some stuff and organize your code for provisioning
[17:46:40] toretore: hesco, what Yzguy has is much easier to reason about when you don't know ruby, i suggest you use that
[17:46:47] ashemark: toretore: ?
[17:47:46] StevenXL: has joined #ruby
[17:47:47] StevenXL: has joined #ruby
[17:47:54] Yzguy: yeah and really, the work you're going to do with the VMs is more important that the vagrant process
[17:48:10] Yzguy: so dont try to complicate it
[17:48:24] last_staff: has joined #ruby
[17:49:13] hxegon: has joined #ruby
[17:49:30] idefine: has joined #ruby
[17:49:41] PedramT: has joined #ruby
[17:49:53] idefine_: has joined #ruby
[17:50:13] agit0: has joined #ruby
[17:51:19] hesco: toretore: thanks, read that, had not seen the vagrant-hosts plugin trick before. That looks useful. Although in addition to sorting out this multi-box issue, I also have an interest in honing my developing ruby skills to DRY up my code a bit.
[17:51:48] Yzguy: definitely a good goal, but i wouldn't try it in the context of vagrant, do it in some ruby scripts
[17:53:16] rippa: has joined #ruby
[17:53:19] toretore: hesco, don't use any plugins and don't do anything clever; just type everything out manually
[17:53:37] toretore: hesco, once you have something that works, you can improve on it
[17:53:42] toretore: dry is overrated
[17:54:00] ashemark: has left #ruby: ("WeeChat 1.3")
[17:54:18] howdoicomputer: has joined #ruby
[17:54:31] IrishGringo: has joined #ruby
[17:54:48] fullofcaffeine: has joined #ruby
[17:56:28] lacuna: has joined #ruby
[17:56:37] hesco: I started with something that worked, cp'd Vagrantfile Vagrantfile.jenkins_master, refactored that till I had something which worked and cp'd Vagrantfile Vagrantfile.jenkins_slave, then did a diff on those two files and proceeded to integrate them into a single Vagrantfile, although Yzguy seems to suggest that I skipped a step along the refactoring path.
[17:57:45] AKASkip: has joined #ruby
[17:58:19] Yzguy: i'm not saying to skipped anything, It just seems you're new to ruby and vagrant maybe, so trying to do two things at once might make it difficult
[17:58:41] Yzguy: not new i guess, i don't know you're level but
[17:59:03] yeticry: has joined #ruby
[18:00:29] Yzguy: looking at your vagrant file, it is pretty complicated, especially when you have to deal with the network interface issue.
[18:00:55] hesco: toying with vagrant for two or three years, using it aggressively at work for most of the past year. toyed with ruby for the first time two or five years ago, and finally read Well Grounded Rubyist earlier this year, and using ruby more and more with vagrant and puppet focused projects, though still reach first for bash or perl on greenfield projects.
[18:01:14] stuartb: has joined #ruby
[18:01:22] ramfjord: has joined #ruby
[18:01:36] Yzguy: I'm in the same boat
[18:01:46] StevenXL: has joined #ruby
[18:01:56] StevenXL: has joined #ruby
[18:02:24] Yzguy: so your vagrant file is "fine", if you got the vagrant understanding down, some ruby understanding, refactoring is good
[18:02:30] railswebdev: has joined #ruby
[18:03:22] Yzguy: I would try and get that network interface issue fixed. i think it's prolly just removing that 70-persistent-net.rules and repackage the box
[18:03:28] Yzguy: that would remove a lot of the code
[18:03:30] hesco: ok, on the vpn from home now, just ran `vagrant up`. We'll see if this gets me any further.
[18:04:52] idefine: has joined #ruby
[18:05:49] hesco: yeah, the requirements I set for myself when I built the base box was to use the employer blessed ISO and upgrade scripts. makes for a really fat base image (2.3gb as I recall). Turns out I seem to be the one who has been evangelizing vagrant use at work, simply by creating that base box and documenting what I learn in the confluence installation at work.
[18:06:24] Yzguy: yeah that's awesome.
[18:06:41] Yzguy: can you describe your interface issue more?
[18:07:00] millerti: has joined #ruby
[18:07:23] hesco: but I wanted to offer folks a 'production-like' development environment, and by 'folks' I mean myself mostly, though its cool to see others finding that base box useful.
[18:08:22] Yzguy: yeah we do the same thing at work, we have a rhel 6.6 vagrant box, we use it for a puppet dev environment, developers have one for muleesb, grails, etc.
[18:08:27] Yzguy: all using the same base box
[18:09:42] hesco: before the gymnastics of the get_network_config_script() method, I was unable to get a second nic configured. I filed a bug report on the vagrant project earlier this year, which Mitchell declined to work on.
[18:09:54] Yzguy: do you have the link to that issue
[18:10:24] Yzguy: Mitchell is a crazy busy dude, I met him back in september at Hashiconf
[18:11:09] hesco: https://github.com/mitchellh/vagrant/issues/6142
[18:12:42] startupality: has joined #ruby
[18:12:56] InvGhost: has joined #ruby
[18:13:47] xcesariox: has joined #ruby
[18:14:13] Drakevr: has joined #ruby
[18:14:26] aufi: has joined #ruby
[18:14:37] seitensei: has joined #ruby
[18:14:46] devoldmx: has joined #ruby
[18:15:38] Yzguy: so what are you looking for for an interface/network configuration
[18:15:42] Yzguy: at the end stage
[18:16:37] colegatron: has joined #ruby
[18:18:13] lacuna: has joined #ruby
[18:18:13] lacuna: has joined #ruby
[18:19:54] hesco: a nic with an IP assigned communicating through a network segment with other vagrant boxes on the same host machine.
[18:22:13] cdg: has joined #ruby
[18:23:03] Yzguy: so just a private network
[18:23:26] Yzguy: so when you do like :private_network you will get 2 nics on your vm, 1 for NAT, 1 for private network
[18:23:34] Yzguy: but that should be fine for you
[18:23:43] Yzguy: am almost done with your vagrant file
[18:24:22] idefine: has joined #ruby
[18:24:27] startupality: has joined #ruby
[18:26:15] hesco: My test is nearly complete. in previous iterations it would configure the extra nic before applying the puppet catalogue, but now it seems to do the shell provisioning code after the catalogue application.
[18:26:24] Yzguy: https://gist.github.com/yzguy/c3a22df8f45e0585cf85
[18:26:57] zast: has joined #ruby
[18:27:01] hesco: the slave has the expected IP, waiting on the jenkins plugins on the master to complete, before it configures the network on the master
[18:29:10] seitensei: has joined #ruby
[18:30:31] zzz: has joined #ruby
[18:31:32] bronson: has joined #ruby
[18:32:26] stamina: has joined #ruby
[18:34:28] Yzguy: okay my second one doesnt work, fixing it :P. Was waiting for SLES box to download
[18:35:05] sandstrom: has joined #ruby
[18:39:00] djbkd: has joined #ruby
[18:39:24] idefine: has joined #ruby
[18:40:38] dlitvak: has joined #ruby
[18:41:45] hesco: my refactored Vagrantfile failed again. Now testing yzguy.v1
[18:43:29] millerti: has joined #ruby
[18:43:31] hesco: looks like it is missing the key declaration: *.ssh.private_key_path
[18:43:37] Yzguy: you shouldn't need that
[18:43:38] hesco: adding that and testing again
[18:43:43] Yzguy: vagrant will put one in on its own
[18:43:58] Yzguy: unless you're doing something weird with your base box
[18:44:06] hesco: yes, our base box has an $employer_specific key pair
[18:44:38] Yzguy: might not be the best idea to do that. adds another unnecessary complication
[18:44:51] blackmesa: has joined #ruby
[18:45:03] Yzguy: the whole ssh key thing is handled and provided by vagrant
[18:46:22] blackmes1: has joined #ruby
[18:46:37] hesco: it was done to keep the security and compliance teams off my back over the NDA
[18:47:01] Yzguy: well where are you publishing your box?
[18:47:16] hesco: on our internal repo
[18:47:35] hesco: concentric circles of security and all that
[18:47:47] IrishGringo: has joined #ruby
[18:47:48] jottr: has joined #ruby
[18:47:53] Yzguy: another one of those pointless security things huh
[18:49:09] djbkd: has joined #ruby
[18:50:44] hesco: still looking at authentication errors on `vagrant up`, but in the next window `vagrant ssh -c"sudo /sbin/ifconfif -a" finds lo, eth0, eth1 though eth1 has no IP.
[18:52:19] bronson: has joined #ruby
[18:52:40] hesco: ah, I see you swapped out the base box for a publicly accessible one
[18:52:49] hesco: rethinking this again
[18:53:01] Yzguy: yeah, i wanted to use a sles box, and i cant use yours right :P
[18:54:11] idefine: has joined #ruby
[18:54:14] Yzguy: but yeah honestly, this too many hands in your dev environment configuration would piss me off
[18:54:25] Jet4Fire_: has left #ruby: ()
[18:54:39] Bellthoven: has joined #ruby
[18:55:13] hesco: how do you mean?
[18:55:24] Yzguy: like security saying "You need to use a specific private key"
[18:55:31] Yzguy: thats stupidity and just like a security department
[18:55:34] Jet4Fire: has joined #ruby
[18:55:49] hesco: security and compliance never spoke with me about this project. were probably unaware of it even.
[18:55:55] Yzguy: its not a production box, you're not putting it on the internet. you're just using vagrant as a framework to get boxes built
[18:56:06] blackmes1: has joined #ruby
[18:56:28] hesco: but my contract included an NDA, which I assume I ought to make a best effort to protect the proprietary intellectual property of those who write my checks.
[18:56:42] agit0: has joined #ruby
[18:57:20] hesco: I like getting those checks and it seemed a simple precaution to avoid this ever becoming an issue.
[18:57:54] Yzguy: just seems like an unncessary complication you've added in
[18:58:07] Yzguy: for a non existent problem
[18:59:38] Yzguy: anywho, that super long vagrantfile should be easier to use, you'll need to modify it to your needs
[18:59:45] aef: has joined #ruby
[18:59:54] cyfr0n1: has joined #ruby
[19:00:00] devoldmx: has joined #ruby
[19:00:04] Yzguy: but your'e doign some crazy stuff so it's incredibly hard to help you with your problems, hence why your issue was closed
[19:00:58] hesco: understood. hold no grudges against Hashimoto, gave me an opportunity to dig in and understand vagrant architecture a bit better.
[19:01:44] hesco: added a comment here: https://gist.github.com/yzguy/70876b1b2d6489b5b578#gistcomment-1653724
[19:01:49] Yzguy: there is also a #vagrant channel on IRC
[19:02:42] Yzguy: let me private message you, so we don't fill #ruby up with vagrant talk
[19:02:48] hesco: yes, I have been helping a guy named NikosA over there, but no one there responded to my gist posted there twice since last night.
[19:02:59] hesco: sure, thanks. that makes sense
[19:03:10] hesco: or we can join each other on #vagrant
[19:03:43] sankaber: has joined #ruby
[19:05:06] Bellthov_: has joined #ruby
[19:06:54] ElFerna: has joined #ruby
[19:07:06] idefine: has joined #ruby
[19:09:38] agent_white: has joined #ruby
[19:09:50] StevenXL: has joined #ruby
[19:09:51] StevenXL: has joined #ruby
[19:14:36] stamina: has joined #ruby
[19:17:18] skade: has joined #ruby
[19:17:48] davedev24: has joined #ruby
[19:20:34] aspire: has joined #ruby
[19:22:44] stannard: has joined #ruby
[19:26:49] alex88: has joined #ruby
[19:28:53] idefine_: has joined #ruby
[19:28:55] alex88: hi there, I've this code and the uri passed on the function can be downloaded correctly with curl/httpie/browser https://gist.github.com/alex88/84b3a774eb07659e8f73
[19:29:01] alex88: however there I get connection reset
[19:29:10] alex88: anyone has some ideas?
[19:29:23] alex88: I've just seen that there are some calls to the aws-sdk, even if it shouldn't be there
[19:29:42] alex88: is it possible it monkey patch net:http to handle requests to any aws endpoint? :/
[19:31:30] tomphp: has joined #ruby
[19:32:24] slackbotgz: has joined #ruby
[19:33:07] kadoppe: has joined #ruby
[19:33:40] 17WABDHFL: has joined #ruby
[19:33:54] karapetyan: has joined #ruby
[19:35:35] yardenbar: has joined #ruby
[19:35:57] dlitvak: has joined #ruby
[19:36:36] zotherstupidguy: has joined #ruby
[19:39:46] sankaber: has joined #ruby
[19:42:50] guacjack: has joined #ruby
[19:45:18] AKASkip: has joined #ruby
[19:47:50] blackmes1: has joined #ruby
[19:48:23] alex88: ohh ok, seems it's because the request is https
[19:48:50] aef: has joined #ruby
[19:49:18] manquer: has joined #ruby
[19:52:48] stannard: has joined #ruby
[19:57:03] idefine: has joined #ruby
[19:58:16] crixet: has joined #ruby
[19:58:21] idefine_: has joined #ruby
[20:01:05] dlitvak: has joined #ruby
[20:02:55] Fezzler: has joined #ruby
[20:05:02] hakunin: has joined #ruby
[20:05:14] ibouvousaime: has joined #ruby
[20:05:25] InvGhost: has joined #ruby
[20:06:08] ElFerna: has joined #ruby
[20:06:22] Danishman: has joined #ruby
[20:06:53] davedev24: has joined #ruby
[20:08:50] tomphp: has joined #ruby
[20:09:12] radgeRayden: has joined #ruby
[20:10:42] millerti: has joined #ruby
[20:12:04] DLSteve: has joined #ruby
[20:14:54] Minori: has joined #ruby
[20:15:18] fullofcaffeine: has joined #ruby
[20:15:35] lacuna: has joined #ruby
[20:15:35] lacuna: has joined #ruby
[20:15:59] ramfjord: has joined #ruby
[20:17:26] karapetyan: has joined #ruby
[20:18:48] devbug: has joined #ruby
[20:19:57] linelevel: has joined #ruby
[20:20:03] yqt: has joined #ruby
[20:20:58] InvGhost: has joined #ruby
[20:21:02] ruid: has joined #ruby
[20:21:03] ruid: has joined #ruby
[20:23:48] linelevel: has joined #ruby
[20:24:11] lacuna: has joined #ruby
[20:27:56] millerti: has joined #ruby
[20:28:06] idefine: has joined #ruby
[20:28:35] aef: has joined #ruby
[20:29:35] griffindy: has joined #ruby
[20:29:48] rakm: has joined #ruby
[20:31:40] gusto: has joined #ruby
[20:32:35] dlitvak: has joined #ruby
[20:33:21] idefine: has joined #ruby
[20:34:44] zotherstupidguy: has joined #ruby
[20:36:30] phreakocious: has joined #ruby
[20:37:46] trautwein: has joined #ruby
[20:37:58] cdg: has joined #ruby
[20:38:24] crixet: Why use ruby over python?
[20:38:50] chrisseaton: crixet: I prefer the syntax of Ruby over Python
[20:39:10] chrisseaton: crixet: and the package manager is a lot better
[20:39:29] crixet: I'm new to programming, they look the same so I was curious
[20:39:40] Ox0dea: crixet: Wat.
[20:39:57] Ox0dea: Ruby and Python don't "look" much alike at all.
[20:40:07] RegulationD: has joined #ruby
[20:40:19] crixet: At their basic level they look similar...
[20:40:39] crixet: At least from the learn python or learn ruby the hard way guides
[20:40:43] adaedra: crixet: to answer your question: because you like it better. They both are good language, and this is subjective.
[20:40:56] shevy: ruby is better
[20:41:06] ruboto: "Best" and "better" are subjective. Try to use a different term.
[20:41:12] ruboto: I don't know anything about ruby
[20:41:16] crixet: Oh, hey shevy! :)
[20:41:54] shevy: python is unable to know where self is
[20:42:02] nfk|laptop: has joined #ruby
[20:42:15] Ox0dea: Pretty stupid.
[20:43:09] shevy: you have to be more explicit!
[20:44:13] Ox0dea: More importantly, beautiful is better than ugly.
[20:44:30] cornerma1: has joined #ruby
[20:44:45] crixet: Line I said, I've just scratched the surface and they, at this point, seemed similar
[20:45:12] Ox0dea: crixet: They are similar, but you initially said they *look* similar.
[20:46:02] crixet: Oh, not in syntax! I meant as a whole language and the capabilities
[20:46:03] millerti: has joined #ruby
[20:46:36] shevy: the biggest difference is the philosophy, which you can then see in design considerations made
[20:46:59] adaedra: They're general purposes programing languages, so yes they can do more or less the same.
[20:47:18] adaedra: You'll have to test both if your want to know which is better for you.
[20:47:21] Ox0dea: They're both Turing-complete, so they can do exactly the same things as every other TC system.
[20:48:37] Ox0dea: But Ruby remains TC even if you take away all the numbers and letters. :P
[20:49:17] idefine: has joined #ruby
[20:49:27] hesco: ping Yzguy
[20:49:42] kspencer: has joined #ruby
[20:49:44] ljarvis: can anyone tell me what this says? https://scontent-lhr3-1.xx.fbcdn.net/hphotos-xpf1/t31.0-8/12365990_10153739615796605_6472553860991725777_o.jpg
[20:49:49] jottr: has joined #ruby
[20:50:11] shevy: "long dong gong"
[20:50:17] Ox0dea: ljarvis: http://kanji.sljfaq.org/
[20:50:19] blackmes1: has joined #ruby
[20:50:31] ljarvis: interesting
[20:50:56] Ox0dea: You're advised to check "Ignore stroke order". :P
[20:52:01] ljarvis: well im shit at this
[20:52:27] adaedra: ?crosspost ljarvis
[20:52:27] ruboto: ljarvis, 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.
[20:54:13] ljarvis: I think the second one is season
[20:56:56] ljarvis: fist of spring chant
[20:57:12] hesco: toretore: your advice that DRY is over-rated, along with Yzguy's wet Vagrantfile, along with my *.vm.network . . . auto_config: false, plus my shell provisioner using the get_network_config_script( ip ), at long last got me to the promised land. I now have a functioning multi-node Vagrantfile !!! which builds across the vpn in 20 minutes, although those two nodes only take 11 minutes in the office.
[20:57:33] idefine: has joined #ruby
[20:58:10] kspencer: has joined #ruby
[20:58:17] shevy: hesco that sounds quite painful!
[20:58:45] iDavid: has joined #ruby
[20:59:53] hesco: shevy: it was, and quite time consuming as well.
[21:01:21] ruu_: has joined #ruby
[21:02:16] Ox0dea: ljarvis: Becoming a practitioner of Wing Chun, then?
[21:03:10] ljarvis: I have inadvertently let out my secret
[21:03:40] dorei: ljarvis: first one is something like long, eternity, the second one is spring
[21:03:46] Ox0dea: It literally translates from Chinese as "fist of eternal spring".
[21:04:12] ljarvis: dorei: thanks :)
[21:04:56] dorei: i think first one is long but long in the dimmension of time, not space
[21:05:11] Ox0dea: dorei: Mission complete.
[21:05:31] Ox0dea: https://en.wikipedia.org/wiki/Wing_Chun
[21:05:34] Ox0dea: See the sidebar.
[21:06:00] underplank: has joined #ruby
[21:06:26] threh: has joined #ruby
[21:09:00] pawnbox: has joined #ruby
[21:09:28] idefine: has joined #ruby
[21:10:37] sankaber: has joined #ruby
[21:11:12] Ox0dea: ljarvis: Return the favor? http://i.imgur.com/QWi8kVt.jpg
[21:12:45] adaedra: Ox0dea: 42.
[21:13:03] Ox0dea: adaedra: Donkey.
[21:13:15] adaedra: Only on mondays.
[21:14:00] govg: has joined #ruby
[21:15:06] atomical_: has joined #ruby
[21:19:50] kspencer: has joined #ruby
[21:22:29] bronson: has joined #ruby
[21:22:52] blackmesa: has joined #ruby
[21:24:24] sucks: has joined #ruby
[21:24:44] iDavid: has joined #ruby
[21:26:33] moeSeth: has joined #ruby
[21:29:24] pawnbox: has joined #ruby
[21:29:25] ferr: has joined #ruby
[21:29:32] idefine: has joined #ruby
[21:31:39] ledestin: has joined #ruby
[21:32:10] symm-: has joined #ruby
[21:32:13] s2013: has joined #ruby
[21:34:38] colegatron: has joined #ruby
[21:36:58] nfk|laptop: has joined #ruby
[21:38:02] chouhoulis: has joined #ruby
[21:38:23] underplank: has joined #ruby
[21:40:34] Shoutsid: has joined #ruby
[21:41:19] gigetoo: has joined #ruby
[21:41:44] chipotle: has joined #ruby
[21:42:18] ta: has joined #ruby
[21:42:35] akaiiro: has joined #ruby
[21:44:12] ss_much: has joined #ruby
[21:45:57] shoutsid06: has joined #ruby
[21:46:54] diegoviola: has joined #ruby
[21:47:11] MEATCHICKEN: has joined #ruby
[21:47:30] Ox0dea: >> Time.now.saturday?
[21:47:31] ruboto: Ox0dea # => true (https://eval.in/488051)
[21:47:51] shevy: soon it will be sunday
[21:47:55] shevy: then people are even lazier
[21:48:06] shevy: except the ruby core team!
[21:48:34] shevy: https://github.com/ruby/ruby/blob/trunk/ChangeLog nobu even works on sundays
[21:49:07] nonopposition: has joined #ruby
[21:49:18] nerium: has joined #ruby
[21:49:40] idefine: has joined #ruby
[21:50:14] Emmanuel_Chanel: has joined #ruby
[21:51:03] pawnbox: has joined #ruby
[21:52:49] dwfait: has joined #ruby
[21:55:42] alon: has joined #ruby
[22:00:03] nerium: has joined #ruby
[22:00:16] marr: has joined #ruby
[22:00:44] skcin7: has joined #ruby
[22:02:07] ornerymoose: has joined #ruby
[22:03:53] Hanmac: shevy: 30% of the republicans in america does want to destroy "Agrabah" ;P try to find it with google maps ;P
[22:04:00] jdm: has joined #ruby
[22:05:28] PedramT: has joined #ruby
[22:05:33] jottr: has joined #ruby
[22:06:14] Ox0dea: hanmac: It's beautiful! http://i.imgur.com/uNCcj8B.jpg
[22:06:22] MEATCHICKEN: has joined #ruby
[22:08:22] rakm: has joined #ruby
[22:09:02] seitensei: has joined #ruby
[22:15:46] atomical: has joined #ruby
[22:16:52] rgtk: has joined #ruby
[22:16:57] nofxx: hanmac, I would gladly rescue Jasmine
[22:17:36] jobewan: has joined #ruby
[22:18:08] s2013: has joined #ruby
[22:18:24] atomical: has joined #ruby
[22:18:59] Emmanuel_Chanel_: has joined #ruby
[22:19:22] skade: has joined #ruby
[22:22:01] jobewan: has joined #ruby
[22:22:11] ruu_: has joined #ruby
[22:23:33] ohaibbq: has joined #ruby
[22:25:12] ohaibbq: has joined #ruby
[22:25:55] dwfait: has joined #ruby
[22:27:34] millerti: has joined #ruby
[22:29:36] minimalism: has joined #ruby
[22:29:43] StevenXL: has joined #ruby
[22:29:44] StevenXL: has joined #ruby
[22:30:59] SleepySensei: has joined #ruby
[22:31:01] pawnbox: has joined #ruby
[22:34:26] YankNYC: has joined #ruby
[22:35:45] nonopposition: has joined #ruby
[22:36:12] Jardayn: has joined #ruby
[22:36:37] stannard: has joined #ruby
[22:37:04] YankNYC: hey so i'm confused about carrierwave. it looks like it has rmagick already included as a module but i get an error telling me require cannot load such file and to install rmagick gem
[22:37:27] YankNYC: when i include the gem in my gemfile I get a deprecation warning RMagick is deprecated use rmagick instead
[22:37:57] YankNYC: maybe i should look into an image uploading alternative
[22:39:12] chouhoulis: has joined #ruby
[22:40:01] bugo: has left #ruby: ()
[22:41:27] YankNYC: this error is being thrown because i'm including CarrierWave::RMagick in my uploader
[22:42:15] roshanavand: has joined #ruby
[22:45:44] _djbkd: has joined #ruby
[22:50:12] devbug: has joined #ruby
[22:50:49] zenlot3: has joined #ruby
[22:51:17] S1kx: has joined #ruby
[22:54:06] Vitor: has joined #ruby
[22:54:36] mary5030: has joined #ruby
[22:59:30] sigurding: has joined #ruby
[22:59:40] s00pcan: has joined #ruby
[23:03:14] ta: has joined #ruby
[23:03:19] dwfait: has joined #ruby
[23:10:55] pawnbox: has joined #ruby
[23:12:07] s00pcan: has joined #ruby
[23:12:48] bartkoo: has joined #ruby
[23:14:15] dwfait: Is anyone familiar with bench9000 that could help me get it running? Seems people were right when they said it was not easy to use
[23:22:15] hxegon: has joined #ruby
[23:22:34] Vitor: has joined #ruby
[23:24:04] ruu_: has joined #ruby
[23:25:43] shevy: >> ARGF.class
[23:25:44] ruboto: shevy # => ARGF.class (https://eval.in/488060)
[23:25:49] tAn: has joined #ruby
[23:26:29] rgtk: has joined #ruby
[23:27:35] dlitvak: has joined #ruby
[23:27:52] shevy: I never thought that ARGF would be some special class
[23:27:58] shevy: http://ruby-doc.org/core-1.9.3/ARGF.html
[23:28:02] havenwood: >> eval(eval(eval(eval(ARGF.class.name).name).name).name)
[23:28:03] ruboto: havenwood # => ARGF.class (https://eval.in/488061)
[23:28:31] idefine: has joined #ruby
[23:29:23] shevy: you had too much coffee today!
[23:30:28] akaiiro: has joined #ruby
[23:31:04] sandstrom: has joined #ruby
[23:33:40] solocshaw: has joined #ruby
[23:34:07] dwfait: has joined #ruby
[23:36:54] jottr: has joined #ruby
[23:38:52] jottr_: has joined #ruby
[23:38:59] arescorpio: has joined #ruby
[23:39:56] chouhoulis: has joined #ruby
[23:43:26] SamGerber: has joined #ruby
[23:45:56] s00pcan: has joined #ruby
[23:46:18] rattatmatt: has joined #ruby
[23:46:21] SamGerber: Is there anyone who would be willing to help me with an OO design question?
[23:46:30] Ox0dea: ?anyone samgerber
[23:46:31] ruboto: samgerber, Just ask your question, if anyone has or can, they will respond.
[23:46:52] pwnd_nsfw: Can anyone do a thing?
[23:47:37] stannard: has joined #ruby
[23:48:00] shevy: only if someone can't do anything
[23:48:13] shevy: samgerber you must ask the question
[23:48:13] idefine: has joined #ruby
[23:49:24] SamGerber: I'm getting hung up on inheritance. I'm trying to build a game, and I will have essentially three types of players: ComputerPlayer, HumanPlayer, and SolitairePlayer. They all have some things in common, but not enough that instantiating a Player superclass would produce a useful object. SolitairePlayer would be a subclass of HumanPlayer, but instead of extending HumanPlayer with MORE behavior and attributes, it would b
[23:49:25] SamGerber: e reducing the available behavior and attributes. How many ways have I committed sacrilege, and is there a place where I can read about the right way to do this sort of thing?
[23:50:26] shevy: usually you find the common lowest denominator that is shared across your classes, then you can make this your base class Player
[23:50:45] shevy: the specialized behaviour that is unique to the specific player class goes into the e. g. class ComputerPlayer < Player one
[23:50:51] shevy: for simple constants, use a module
[23:53:00] dsdeiz: has joined #ruby
[23:53:23] SamGerber: @shevy, thank you. Is it a Bad Thing if the superclass doesn't make sense on its own and is just holding the intersection of two similar subclasses?
[23:53:56] roshanavand: has joined #ruby
[23:54:52] shevy: you can use an abstract class of course
[23:54:55] akem: has joined #ruby
[23:55:22] shevy: the thing is how much you want to specialize your class
[23:56:23] SamGerber: @shevy, thank you, you've given me some ideas to work with. I'll head back to the drawing board now and leave you nice people alone :) Thanks again!
[23:56:24] shevy: but really, find the smallest subset that is common to the classes and put that into one
[23:58:20] cdg: has joined #ruby