« Back to channel list

#ruby - 04 December 2015

« Back 1 day Forward 1 day »
[00:00:10] IrishGringo: has joined #ruby
[00:01:14] ascarter: has joined #ruby
[00:04:43] bkxd_: has joined #ruby
[00:05:25] Cohedrin: has joined #ruby
[00:05:26] diego1: has joined #ruby
[00:06:34] NeverDie: has joined #ruby
[00:08:40] diego1: has joined #ruby
[00:08:59] dlitvak: has joined #ruby
[00:10:18] casadei: has joined #ruby
[00:11:55] TomPeed: has joined #ruby
[00:15:22] rezzack: has joined #ruby
[00:15:41] akem: has joined #ruby
[00:17:39] cajone: has joined #ruby
[00:21:39] diego1: has joined #ruby
[00:21:44] ltp: Hey guys, ruby newb - I'm using savon to make a request to a service which is returning the interesting part of the result in a deeply nested response.
[00:22:44] ltp: So my code ends up looking like: "val = response.body[:get_foo_response][:get_foo_result][:document][:document_element][:foo]"
[00:23:27] ltp: I've looked through a few style guides in regard to breaking long lines, but is there anyway of breaking the above over several lines without using "\"?
[00:23:59] lacuna: has joined #ruby
[00:24:51] diego1: has joined #ruby
[00:25:26] dlitvak: has joined #ruby
[00:26:30] dling`: has joined #ruby
[00:27:10] ledestin: has joined #ruby
[00:28:22] Olipro: has joined #ruby
[00:28:57] Radar: ACTION reads up to "savon" and then suddenly has to go water his llama
[00:29:14] Radar: ltp: Yeah, there is a way to do that.
[00:29:43] Radar: ltp: I would split it up like this: https://gist.github.com/radar/42985f14e3dbe37daa9f
[00:30:06] Radar: I'm guessing "document" is the root document element and then from that you'll want to pick out different elements, so that's why I've assigned it to "document"
[00:30:50] simplyianm: has joined #ruby
[00:31:25] ltp: Thanks, I'd dabbled with using that style, but wasn't sure if it was considered better or worse than using "\n"
[00:31:27] juddey: has joined #ruby
[00:32:30] ltp: For this service, "foo" is always an array of complex types, and "foo" is generally a horribly long and verbose name which results in very long lines.
[00:32:49] Radar: Do you have an example of the "foo"?
[00:33:13] Radar: If not, then I'll just use "horribly_long_example" as the example.
[00:34:02] Vitor: has joined #ruby
[00:34:17] Radar: ltp: https://gist.github.com/radar/42985f14e3dbe37daa9f
[00:36:51] ltp: https://gist.github.com/ltp/4dc9a7844e25ac90a804
[00:37:10] ltp: I'm sure that horrible code, but like I said - I'm a newb.
[00:37:31] ltp: Just having fun with the object paradigm
[00:37:53] Radar: I see what you're doing there. That new line syntax isn't used that commonly. Typically you'd assign the parts to a variable, like I did in my gists.
[00:38:35] dlitvak: has joined #ruby
[00:38:42] baweaver: has joined #ruby
[00:39:05] RegulationD: has joined #ruby
[00:39:14] howdoicomputer: has joined #ruby
[00:41:25] Ropeney: has joined #ruby
[00:41:29] yfeldblum: has joined #ruby
[00:41:31] Pupp3tm4st3r: has joined #ruby
[00:43:34] baweaver: has joined #ruby
[00:43:49] houhoulis: has joined #ruby
[00:44:23] alindeman: has joined #ruby
[00:44:54] colegatron: has joined #ruby
[00:46:15] sucks: has joined #ruby
[00:46:58] cmoneylulz: has joined #ruby
[00:49:42] blandflakes: has joined #ruby
[00:49:51] CloCkWeRX: has joined #ruby
[00:55:53] DLSteve: has joined #ruby
[00:56:01] howdoicomputer: has joined #ruby
[00:56:14] n_blownapart: has joined #ruby
[00:56:32] duckpuppy: has joined #ruby
[00:57:05] krasnus: has joined #ruby
[00:57:44] akem: has joined #ruby
[00:58:01] ruid: has joined #ruby
[00:58:02] ruid: has joined #ruby
[00:59:51] h99h9h88: has joined #ruby
[01:04:12] s2013: has joined #ruby
[01:05:05] user1138: has joined #ruby
[01:05:52] sdwrage: has joined #ruby
[01:12:57] arescorpio: has joined #ruby
[01:13:05] IrishGringo: has joined #ruby
[01:16:36] kam270: has joined #ruby
[01:20:01] rgrmatt: has joined #ruby
[01:22:06] kies: has joined #ruby
[01:22:53] dorei: is there any stable gem for memoization?
[01:24:00] rickmasta: has joined #ruby
[01:25:45] sdwrage: has joined #ruby
[01:28:33] shanemcd: has joined #ruby
[01:29:56] InvGhosttt: has joined #ruby
[01:32:18] h99h9h88: has joined #ruby
[01:32:25] DrShoggoth: has joined #ruby
[01:33:14] IrishGringo: has joined #ruby
[01:34:09] devoldmx: has joined #ruby
[01:35:28] drbrain: dorei: usually you don't need a gem
[01:35:46] drbrain: a method will do just fine
[01:36:16] dorei: well, i could use something like @ivar ||= something too
[01:36:53] dlitvak: has joined #ruby
[01:37:52] drbrain: yeah, or for fancier, wrap ??? in a method that yields
[01:38:58] Ebok: has joined #ruby
[01:39:16] chamby: has joined #ruby
[01:39:37] heyimwill: has joined #ruby
[01:40:14] yfeldblum: has joined #ruby
[01:41:02] danielpclark: has joined #ruby
[01:41:26] colegatron: has joined #ruby
[01:43:24] lacuna: has joined #ruby
[01:44:17] babblebre: has joined #ruby
[01:44:23] Emmanuel_Chanel: has joined #ruby
[01:44:56] regex101-1233: has joined #ruby
[01:46:16] Bellthoven: has joined #ruby
[01:46:24] djanatyn: has joined #ruby
[01:47:23] elton: has joined #ruby
[01:47:44] banister: has joined #ruby
[01:47:52] colleenmcguckin: has joined #ruby
[01:48:08] TomPeed: has joined #ruby
[01:48:30] alindeman: has joined #ruby
[01:48:38] Jet4Fire: has joined #ruby
[01:48:42] User4587_: has joined #ruby
[01:51:14] lacuna: has joined #ruby
[01:51:14] lacuna: has joined #ruby
[01:52:17] sleeparrow: has joined #ruby
[01:55:31] lacuna: has joined #ruby
[01:55:53] Bellthoven: has joined #ruby
[01:56:12] maloik: has joined #ruby
[01:56:18] howdoicomputer: has joined #ruby
[01:57:14] duckpuppy: has joined #ruby
[01:58:39] Jet4Fire: has joined #ruby
[02:02:51] goodcodeguy: has joined #ruby
[02:03:15] h99h9h88: has joined #ruby
[02:05:05] howdoicomputer: has joined #ruby
[02:07:36] simplyianm: has joined #ruby
[02:08:06] bb010g: has joined #ruby
[02:08:23] Arnvald: has joined #ruby
[02:08:39] Jet4Fire: has joined #ruby
[02:16:26] gregf: has joined #ruby
[02:18:21] Jet4Fire: has joined #ruby
[02:23:26] dkam: has joined #ruby
[02:25:14] peterhil`: has joined #ruby
[02:25:49] jetpackjoe: has joined #ruby
[02:27:09] simplyianm: has joined #ruby
[02:28:06] Jet4Fire: has joined #ruby
[02:28:08] simplyianm: has joined #ruby
[02:28:37] TheCompWiz: does anyone know why YAML::dump would randomly assume a string contains binary data & dump a base64 representation instead of the string?
[02:29:06] TheCompWiz: (even when there is nothing but ascii characeters)
[02:29:09] sulky: has joined #ruby
[02:31:23] drbrain: TheCompWiz: why do you care?
[02:31:47] TheCompWiz: because I don't want base64 encoded output?
[02:32:46] drbrain: presumably it does this so it can read what it wrote out
[02:32:56] drbrain: with some examples, we could maybe find a bug
[02:34:23] TheCompWiz: I just wish I knew why it randomly flip-flops in my code.
[02:35:00] TheCompWiz: sometimes it outputs nice ascii characters... other times... base64 encoded. in both cases... they're just URLs... with no funny characters.
[02:37:29] sleeparrow: has left #ruby: ()
[02:38:10] Jet4Fire: has joined #ruby
[02:38:32] dkam: has joined #ruby
[02:40:30] ur5us: has joined #ruby
[02:41:23] h99h9h88: has joined #ruby
[02:42:14] sucks: has joined #ruby
[02:43:41] dkam: has joined #ruby
[02:44:16] kam270: has joined #ruby
[02:45:00] dlitvak: has joined #ruby
[02:45:08] axl_: has joined #ruby
[02:46:39] krabador: has joined #ruby
[02:48:02] Jet4Fire: has joined #ruby
[02:49:52] dmcp: has joined #ruby
[02:50:01] TheCompWiz: ... gah... that is annoying. had to force the encoding to utf8.
[02:50:08] TheCompWiz: (for each string)
[02:51:33] baweaver: has joined #ruby
[02:51:50] graffix222: has joined #ruby
[02:52:00] Pupp3tm4_: has joined #ruby
[02:52:59] duncannz: has joined #ruby
[02:53:19] TomPeed: has joined #ruby
[02:54:32] yatish27: has joined #ruby
[02:57:57] Jet4Fire: has joined #ruby
[02:58:01] duckpuppy: has joined #ruby
[02:58:16] bronson: has joined #ruby
[02:59:17] sankaber: has joined #ruby
[03:01:16] doll: has joined #ruby
[03:03:16] doll: i have a ruby assignment that works for me, but my professor is saying it doesn't work for him, and when i tell him it works for me he says it shouldn't. can someone take a gander and give me any thoughts? http://pastie.org/private/xmiz4bjs37i1wabzujzlg
[03:03:55] elton: has joined #ruby
[03:08:04] Jet4Fire: has joined #ruby
[03:08:14] baroquebobcat: has joined #ruby
[03:10:13] kies: has joined #ruby
[03:13:23] chamby: has joined #ruby
[03:13:45] baroquebobcat_: has joined #ruby
[03:16:01] maloik: has joined #ruby
[03:17:18] Guest11: has joined #ruby
[03:17:34] tjbiddle: has joined #ruby
[03:17:34] Jet4Fire: has joined #ruby
[03:18:18] krabador: https://www.youtube.com/watch?v=CdPn1mCmqoE
[03:18:24] kies: has joined #ruby
[03:18:57] Guest11: has joined #ruby
[03:20:48] chamby: has joined #ruby
[03:21:23] Trynemjoel: has joined #ruby
[03:21:42] rgrmatt: has joined #ruby
[03:24:00] maloik: has joined #ruby
[03:24:01] Yzguy: has joined #ruby
[03:26:09] yfeldblum: has joined #ruby
[03:26:49] yfeldblum: has joined #ruby
[03:27:23] Yzguy: has joined #ruby
[03:28:20] juddey: has joined #ruby
[03:28:21] gregf: has joined #ruby
[03:28:24] ur5us: has joined #ruby
[03:28:37] elton: has joined #ruby
[03:29:23] diegoviola: parsing/importing 147k records to AR takes 12 seconds here, is that considered normal or slow? here is my script to do this: https://gist.github.com/diegoviola/ffa1dce640f6dffd50ec
[03:29:30] Yzguy: has joined #ruby
[03:29:50] shanemcd: has joined #ruby
[03:30:29] ICantCook: has joined #ruby
[03:30:32] diegoviola: it shouldn't take that much I think
[03:30:41] Guest11: diegovila: I think that's reasonable time.
[03:31:12] Guest11: AR serialization take big amount of time
[03:31:16] Radar: If you don't care about validations (it looks that way) you can use LOAD DATA INFILE (MySQL) or COPY (PostgreSQL)
[03:32:55] Jet4Fire: has joined #ruby
[03:34:22] diegoviola: yeah I was aware of COPY, thanks
[03:34:53] diegoviola: I suppose that's going to be faster
[03:34:59] devoldmx: has joined #ruby
[03:35:07] diegoviola: at the risk of sounding like an idiot, what sort of validations would you recommend I do?
[03:35:33] diegoviola: I know you don't have access to the data I'm working in order to say
[03:37:03] diegoviola: all my ts_attempt seems to be nil, because the date on them are 0000-00-00 00:00:00 in the CSV
[03:38:49] Guest11: I think there is a method named readlines for CSV module, CSV.read trying load all stuff into memory, which is not good thing.
[03:40:54] n_blownapart: has joined #ruby
[03:41:16] Radar: diegoviola: I don't know the data so I can't recommend any validations.
[03:42:27] braincra-: has joined #ruby
[03:43:18] Jet4Fire: has joined #ruby
[03:43:20] diegoviola: I'd rather they just give me proper data than me having to guess or validate about possible mistakes... but that's wishful thinking
[03:44:43] Radar: yay for integrating with external data :)
[03:45:00] astrobun_: has joined #ruby
[03:45:11] Eiam_: has joined #ruby
[03:45:22] diegoviola: for example, in the CSV I have floors with numbers, so I made that an integer in the migration, but the last row in the CSV is "ALPHAVILLE 18" so that ends up as 0 when I parse/load it
[03:45:33] jbrhbr: has joined #ruby
[03:45:33] Radar: Strip all letters?
[03:45:42] Radar: From that column, anyway.
[03:46:32] diegoviola: but I wish they cared more about being consistent also, maybe I should tell them that
[03:46:33] Guest11: Give them a web api, give errors if data not valid, let the validation phase to anyone who use api :)
[03:48:44] Emmanuel_Chanel: has joined #ruby
[03:51:14] simplyianm: has joined #ruby
[03:51:26] chamby: has joined #ruby
[03:51:52] cantaberry: has joined #ruby
[03:52:11] simplyianm: has joined #ruby
[03:52:23] i: has joined #ruby
[03:52:28] brennebeck: has joined #ruby
[03:52:46] diegoviola: can't I just tell AR to throw errors when trying to save a string into a integer field, etc?
[03:53:06] Guest46072: has left #ruby: ()
[03:53:09] Jet4Fire: has joined #ruby
[03:53:40] MEATCHICKEN: has joined #ruby
[03:55:01] favadi: has joined #ruby
[03:55:03] diegoviola: looking at the Active Record Validations api
[03:55:15] howdoicomputer: has joined #ruby
[03:56:58] brennebeck: has joined #ruby
[03:58:44] duckpuppy: has joined #ruby
[03:59:08] bronson: has joined #ruby
[03:59:28] diegoviola: readlines is just an alias for read
[03:59:51] diegoviola: according to http://ruby-doc.org/stdlib-2.2.3/libdoc/csv/rdoc/CSV.html#method-i-readlines
[04:00:07] unreal_: has joined #ruby
[04:01:05] sucks_: has joined #ruby
[04:02:47] Rodya_: has joined #ruby
[04:02:49] Jet4Fire: has joined #ruby
[04:03:37] sarkis: has joined #ruby
[04:04:24] stannard: has joined #ruby
[04:09:17] ss_much: has joined #ruby
[04:09:43] pontiki: diegoviola: if you're loading from a CSV file, you should clean it and get the fields in the right shape before you load it. it will still be a lot faster than having AR doing it
[04:11:39] zast: has joined #ruby
[04:12:13] Eiam_: has joined #ruby
[04:12:39] Jet4Fire: has joined #ruby
[04:16:14] diego1: has joined #ruby
[04:16:50] braincrash: has joined #ruby
[04:16:58] Guest30449: has joined #ruby
[04:17:59] cwong_on_irc: has joined #ruby
[04:20:09] Musashi007: has joined #ruby
[04:20:33] elton: has joined #ruby
[04:20:46] Guest30449: http://darkoceansirc.forumotion.com/forum
[04:21:03] nbdy: has joined #ruby
[04:21:40] kp666: has joined #ruby
[04:22:02] aelevadoan: has left #ruby: ()
[04:22:39] Jet4Fire: has joined #ruby
[04:22:40] kp666: has joined #ruby
[04:24:39] Hanmac: has joined #ruby
[04:25:16] iateadonut: has joined #ruby
[04:25:36] kp666: has joined #ruby
[04:27:24] djbkd: has joined #ruby
[04:27:33] jackcom: has joined #ruby
[04:27:42] jackcom: has left #ruby: ()
[04:27:49] durstburger: has joined #ruby
[04:30:29] ponga: has joined #ruby
[04:30:58] maloik: has joined #ruby
[04:32:24] Jet4Fire: has joined #ruby
[04:33:18] Oog: has joined #ruby
[04:35:26] roxtrongo: has joined #ruby
[04:36:22] mloy: has joined #ruby
[04:38:10] Ropeney: has joined #ruby
[04:39:01] Moosashi: has joined #ruby
[04:40:28] yatish27: has joined #ruby
[04:40:35] gix: has joined #ruby
[04:40:37] rigsby: has joined #ruby
[04:41:14] RegulationD: has joined #ruby
[04:41:35] BTRE: has joined #ruby
[04:42:21] Arnvald: has joined #ruby
[04:42:22] SirFunk: Anyone have any suggestions for a good Ruby book to get for someone who has been doing ruby for a few years. I've read POODR
[04:42:43] Jet4Fire: has joined #ruby
[04:43:39] astrobun_: has joined #ruby
[04:43:58] S1kx: has joined #ruby
[04:45:38] devbug: has joined #ruby
[04:46:32] maloik: has joined #ruby
[04:48:50] iateadonut1: has joined #ruby
[04:50:08] pwned: has joined #ruby
[04:51:43] Fredrich010: has joined #ruby
[04:52:36] agent_white: has joined #ruby
[04:52:49] Jet4Fire: has joined #ruby
[04:53:19] Fredrich010: has joined #ruby
[04:55:15] pontiki: Russ Olsen's are great: Eloquent Ruby and Design Patterns in Ruby
[04:56:00] pontiki: avdi's Confident Ruby is a great read, too
[04:56:57] patdohere: has joined #ruby
[04:57:08] duckpuppy: has joined #ruby
[04:57:35] carlosjack: has joined #ruby
[04:58:33] bronson: has joined #ruby
[04:58:54] carlosjack: Hey I started playing with ruby earlier this week and I gotta say it might replace perl as my favorite language. I started playing with nokogiri,net:http,Rest-Client,Event Reactor, and socket.
[04:59:38] carlosjack: Do you guys have any recommendation for any other good network libraries because most of the code I write is for networking and systems I'm more of a sec guy than dev
[05:02:22] Jet4Fire: has joined #ruby
[05:07:05] jivemeat: has joined #ruby
[05:07:54] jbrhbr: has joined #ruby
[05:08:59] skade: has joined #ruby
[05:10:02] Musashi007: has joined #ruby
[05:12:04] Jet4Fire: has joined #ruby
[05:18:11] patdohere: has joined #ruby
[05:20:14] juddey: has joined #ruby
[05:20:21] jessemcgilallen: has joined #ruby
[05:20:23] agent_white: has joined #ruby
[05:21:43] pontiki: carlosjack: you might look at Mechnize, it's a web driver sort of thing
[05:21:55] Jet4Fire: has joined #ruby
[05:21:56] carlosjack: I've played with mechanize
[05:22:25] pontiki: there's one in ruby, too
[05:22:39] carlosjack: yeah thats cool so is selenium
[05:22:48] maloik: has joined #ruby
[05:22:49] carlosjack: Any other libs
[05:23:06] Musashi007: has joined #ruby
[05:23:09] rgrmatt: has joined #ruby
[05:23:34] carlosjack: oh actually anotherthing
[05:23:36] pontiki: check http://www.ruby-toolbox.com
[05:23:48] carlosjack: with http::net
[05:24:28] carlosjack: is it possible for you to create an array then pass it to Net::HTTP.get()
[05:24:49] carlosjack: even with the uri parse option
[05:25:39] carlosjack: Yet I see in a lot of scripts that it's done
[05:25:59] jhass: carlosjack: if you do a lot of selenium check capybara, which is a nicer to use abstraction on top of it
[05:26:06] jhass: and also supports phantomjs as backend
[05:26:21] carlosjack: I haven't played with selenium much outsideof python
[05:26:27] hahuang61: has joined #ruby
[05:26:29] carlosjack: and I don't know dick about phantomjs
[05:26:44] carlosjack: I'm a sec person not a web dev
[05:27:00] carlosjack: I still rely on BeeF for XSS payloads lol
[05:27:16] colegatron: has joined #ruby
[05:27:48] pontiki: none of what's been listed is exclusive to web dev
[05:28:03] carlosjack: I was talking about phantomjs
[05:28:13] durstburger: has joined #ruby
[05:28:25] pontiki: phantomjs can be used as a driver
[05:29:08] pontiki: can be very handy for pen testing someone's web site
[05:30:46] Moosashi: has joined #ruby
[05:30:47] carlosjack: So can I pass an array into mechanize
[05:31:04] carlosjack: and make it do a bunch of get requests
[05:31:21] carlosjack: right now so far what I have done with ruby is this
[05:31:35] pwnd_nsfw: has joined #ruby
[05:32:09] carlosjack: I've written a test script for sqli vulns by playing with obfuscation techniques and adding such into requests and then grabbing the responses to judge not perfect yet
[05:32:27] Jet4Fire: has joined #ruby
[05:33:55] carlosjack: then I wrote a rest script that uses rest-client is in a infinite loop that gets user input then uses a get request from that user input then grabs the headers so I can look for injection points
[05:34:14] lacuna: has joined #ruby
[05:34:44] carlosjack: so I wouldn't have to use an intercept proxy on my shitty laptop on the train unless I had to I only have like 4 gigs of ram and I hate leaving the terminal
[05:34:52] jpfuentes2: has joined #ruby
[05:35:39] devoldmx: has joined #ruby
[05:36:06] krz: has joined #ruby
[05:36:35] RWBY: has joined #ruby
[05:36:51] carlosjack: i also wrote a quick dirbuster when I was doing a network that had a decent waf and firewalls so those big automated crawlers wouldn't work so I wrote something that would just identify major cmses info disclosure files determine what ws it uses shit like that.
[05:39:29] skade: has joined #ruby
[05:39:39] TheNet: has joined #ruby
[05:40:10] carlosjack: the shitty thing about the dirbuster was I couldn't pass an array into http req I even tried an each loop I know you're probably laughing at my crappy dev skills but I bet most of you guys don't know assembly, how to patch a server, or any unix commands beyond the basic utilities. So don't judge lol
[05:40:40] Moosashi: Sirs, I was having a problem with Faraday running locally and it apeared as though I was having the same problem as this guy (http://toadle.me/2015/04/16/fixing-failing-ssl-verification-with-rvm.html) so I ran this command: | rvm install 2.2.1 --disable-binary. AFter that, I was getting a message that puma, pg, and something else were not built natively so I tried to rebuild them to no avail. I then ran gem pristine ???all and now I am getting segmentation faults a
[05:40:41] Moosashi: really don???t know how to read the output from that.. Can someone suggest something to look into here?
[05:41:21] baweaver: has joined #ruby
[05:41:22] `based_pdev`: has joined #ruby
[05:41:55] mobson: has joined #ruby
[05:41:58] agent_white: has joined #ruby
[05:42:19] dravine: has joined #ruby
[05:42:34] yes`r: has joined #ruby
[05:44:41] Anderson69s: has joined #ruby
[05:50:49] yfeldblum: has joined #ruby
[05:51:29] yfeldblum: has joined #ruby
[05:53:40] tildes: has joined #ruby
[05:54:23] ohaibbq: has joined #ruby
[05:55:41] naftilos76: has joined #ruby
[05:57:26] TheNet: has joined #ruby
[05:58:23] colegatron: has joined #ruby
[05:58:43] galeido: has joined #ruby
[05:59:03] Oog: has joined #ruby
[06:00:03] Pupp3tm4st3r: has joined #ruby
[06:00:43] devoldmx: has joined #ruby
[06:01:15] startupality: has joined #ruby
[06:01:48] duckpuppy: has joined #ruby
[06:02:23] wjb: has joined #ruby
[06:02:24] elton_: has joined #ruby
[06:02:25] h99h9h88: has joined #ruby
[06:04:19] Pupp3tm4st3r: has joined #ruby
[06:04:53] elton: has joined #ruby
[06:05:05] favadi: has joined #ruby
[06:06:10] startupality: has joined #ruby
[06:14:01] maloik: has joined #ruby
[06:18:03] Moosashi: has joined #ruby
[06:19:37] nixmaniack: has joined #ruby
[06:19:50] based_pdev_: has joined #ruby
[06:20:28] yatish27: has joined #ruby
[06:20:28] hakunin_: has joined #ruby
[06:20:50] dravine: has joined #ruby
[06:21:07] sarkis: has joined #ruby
[06:21:23] startupality: has joined #ruby
[06:22:19] IrishGringo: has joined #ruby
[06:23:21] cinik: has joined #ruby
[06:23:59] user1138: has joined #ruby
[06:24:04] rghose: has joined #ruby
[06:24:29] rghose: has joined #ruby
[06:24:39] snrobot: has joined #ruby
[06:24:40] moss: has joined #ruby
[06:25:12] agit0: has joined #ruby
[06:25:33] Dimik: has joined #ruby
[06:26:08] darkf: has joined #ruby
[06:27:07] astrobun_: has joined #ruby
[06:28:54] durstburger: has joined #ruby
[06:32:30] SOLDIERz: has joined #ruby
[06:33:49] howdoicomputer: has joined #ruby
[06:34:48] tjad: has joined #ruby
[06:36:02] juddey: has joined #ruby
[06:36:18] user1138: has joined #ruby
[06:38:17] bronson: has joined #ruby
[06:40:45] cgfbee: has joined #ruby
[06:41:41] startupality: has joined #ruby
[06:41:59] RegulationD: has joined #ruby
[06:43:15] elton_: has joined #ruby
[06:44:57] trautwein: has joined #ruby
[06:45:54] elton: has joined #ruby
[06:46:25] ibouvousaime: has joined #ruby
[06:46:46] sigurding: has joined #ruby
[06:48:26] robbyoconnor: has joined #ruby
[06:48:50] elton_: has joined #ruby
[06:49:01] claw: has joined #ruby
[06:49:54] Pupp3tm4st3r: has joined #ruby
[06:49:55] pwnd_nsfw: has joined #ruby
[06:51:01] mooe: has joined #ruby
[06:51:29] elton: has joined #ruby
[06:52:14] iateadonut: has joined #ruby
[06:53:46] devoldmx: has joined #ruby
[06:57:27] xfbs: has joined #ruby
[06:59:52] shevy: yo people
[06:59:55] shevy: long live ruby!
[07:00:23] blub: hi shevy
[07:02:30] duckpuppy: has joined #ruby
[07:05:41] shevy: yo blubjr
[07:05:49] user1138: has joined #ruby
[07:06:03] yatish27: has joined #ruby
[07:06:12] AlexWilliams: has joined #ruby
[07:06:26] blub: alexwilliams..my man
[07:06:44] AlexWilliams: hey man what can i do?
[07:06:51] AlexWilliams: should i make a move or is that wrong?
[07:07:07] troulouliou_dev: has joined #ruby
[07:07:08] Radar: AlexWilliams: ?ot
[07:07:11] Radar: ?ot AlexWilliams
[07:07:11] ruboto: AlexWilliams, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[07:07:15] Radar: One day I will remember the syntax.
[07:07:19] maikowblue: has joined #ruby
[07:08:35] ruboto: +q AlexWilliams!*@*
[07:08:35] ruboto: -o ruboto
[07:11:59] Radar: !ban AlexWilliams !T 1d
[07:12:05] ChanServ: +b AlexWilliams!*@*
[07:12:05] ChanServ: ChanServ kicked AlexWilliams: is banned from this channel
[07:12:40] sandstrom: has joined #ruby
[07:12:53] startupality: has joined #ruby
[07:14:15] pwnd_nsfw: has joined #ruby
[07:16:09] ta: has joined #ruby
[07:16:21] ta: has joined #ruby
[07:17:01] juddey: has joined #ruby
[07:18:32] Jet4Fire: has joined #ruby
[07:19:21] Coldblackice: has joined #ruby
[07:21:28] Oog: has joined #ruby
[07:22:01] brennebeck: has joined #ruby
[07:23:05] andikr: has joined #ruby
[07:23:37] solars: has joined #ruby
[07:24:57] solars: has joined #ruby
[07:28:12] elton: has joined #ruby
[07:28:19] IrishGringo: has joined #ruby
[07:29:21] vdamewood: has joined #ruby
[07:29:44] durstburger: has joined #ruby
[07:30:55] DoubleMalt: has joined #ruby
[07:31:30] brennebeck: has joined #ruby
[07:34:04] neanderslob_: has joined #ruby
[07:34:43] neanderslob: has joined #ruby
[07:36:15] jpfuentes2: has joined #ruby
[07:36:41] poguez_: has joined #ruby
[07:36:55] jas02: has joined #ruby
[07:39:44] nixmaniack: has joined #ruby
[07:40:31] maloik: has joined #ruby
[07:41:16] skade: has joined #ruby
[07:43:56] shevy: does anyone know why there is no attr* for something such as: def foo?; @foo; end ? It is no big deal, one can do: attr_reader :foo; alias foo? foo but I was wondering about why that has no attr*
[07:45:03] shanemcd: has joined #ruby
[07:46:48] norc: shevy: Because storing a boolean state is not something you do very often
[07:48:09] sphex: has joined #ruby
[07:48:46] WizJin: has joined #ruby
[07:48:54] brennebeck: has joined #ruby
[07:49:28] troys: has joined #ruby
[07:49:46] quaristice: has joined #ruby
[07:50:07] Oog: has joined #ruby
[07:51:27] favadi: has joined #ruby
[07:52:11] jhass: shevy: crystal has it :P
[07:52:33] codecop: has joined #ruby
[07:53:02] shevy: jhass hmm
[07:56:11] ruby-lang013: has joined #ruby
[07:56:21] ruby-lang013: how fast can you learn ruby and get a job
[07:57:14] TomyWork: has joined #ruby
[07:57:17] norc: ruby-lang013: Depends on you entirely.
[07:57:39] rodfersou: has joined #ruby
[07:58:02] ruby-lang013: is a month realistic?
[07:58:06] ruby-lang013: i know the basic already
[07:58:14] norc: Learning Ruby yet. Getting a job based on that knowledge - Id say no.
[07:58:23] spicymagpie: has joined #ruby
[07:58:59] ruby-lang013: are there exercises to learn ruby out there
[07:59:08] norc: ruby-lang013: It really depends on your problem solving skills and general programming experience.
[07:59:08] ruby-lang013: a list of them
[07:59:25] norc: ruby-lang013: I managed to get a job with some Ruby focus with a minimum of knowledge, but I come with an extensive C++ background.
[07:59:40] ruby-lang013: i am speaking of freelance work
[07:59:40] fly5566: has joined #ruby
[07:59:45] ruby-lang013: i wouldnt be able to go to an office
[07:59:57] norc: ruby-lang013: Depends on how good you are.
[08:00:08] norc: If you can find someone willing to pay for what you are *able* to do, great.
[08:00:14] spicymagpie: it all depends on how good you are and what's your focus.
[08:00:32] norc: Also as a freelancer it depends on your ability to make contacts.
[08:00:37] norc: More than your experience as a developer.
[08:00:44] vondruch: has joined #ruby
[08:00:46] lkba_: has joined #ruby
[08:00:59] maloik: has joined #ruby
[08:01:24] anisha: has joined #ruby
[08:02:25] norc: ruby-lang013: You have to be good at what you are doing and able to find people willing to pay for it. As a starting freelancer the second part is the really difficult one, but requires the first nonetheless.
[08:03:08] norc: I would say it took me a couple years on and off gathering experience to feel comfortable enough asking money for my code.
[08:03:13] duckpuppy: has joined #ruby
[08:03:14] norc: Ruby specifically.
[08:04:34] ruby-lang013: how much did you work at gathering experiences?
[08:05:08] norc: When starting out with C++ I spent about 6 months full time understanding common patterns.
[08:05:13] norc: That should be a good reference point.
[08:05:34] norc: After that it took me 2 years to be at least half way competent.
[08:05:46] tagrudev: has joined #ruby
[08:07:14] maloik: has joined #ruby
[08:07:33] ruby-lang013: and you were paid how much?
[08:08:02] norc: About avg. wage as an inexperienced junior developer :)
[08:08:15] aufi: has joined #ruby
[08:10:29] InvGhost: has joined #ruby
[08:11:01] peterhil`: has joined #ruby
[08:12:25] maloik_: has joined #ruby
[08:12:43] brunto: has joined #ruby
[08:12:53] ruby-lang013: has left #ruby: ()
[08:15:07] al2o3-cr: It's Fridaaaaayyyyyyyyyyyyyy ;)
[08:15:40] juddey: has joined #ruby
[08:17:34] krz: has joined #ruby
[08:19:28] SolarSailor: has joined #ruby
[08:20:52] last_staff: has joined #ruby
[08:24:29] user1138: has joined #ruby
[08:26:39] fabrice31: has joined #ruby
[08:27:43] wjb: has joined #ruby
[08:28:39] elton: has joined #ruby
[08:30:28] durstburger: has joined #ruby
[08:30:32] ethe: has joined #ruby
[08:30:51] freeze: has joined #ruby
[08:31:21] zast: has left #ruby: ()
[08:31:33] krz: has joined #ruby
[08:31:37] Jet4Fire: al2o3-cr: realy?
[08:31:39] ibouvousaime: has joined #ruby
[08:33:09] ethe: has joined #ruby
[08:33:59] aspiers: has joined #ruby
[08:35:41] jpfuentes2: has joined #ruby
[08:35:42] ethe: has joined #ruby
[08:36:44] Arnvald: has joined #ruby
[08:37:22] Pumukel: has joined #ruby
[08:37:49] roshanavand: has joined #ruby
[08:39:20] yes`r: has joined #ruby
[08:39:20] ethe: has joined #ruby
[08:39:52] rsc___: has joined #ruby
[08:40:06] user1138: has joined #ruby
[08:40:53] al2o3-cr: Jet4Fire: No, i was just kidding
[08:41:42] roshanavand: has joined #ruby
[08:42:22] ethe: has joined #ruby
[08:42:45] RegulationD: has joined #ruby
[08:42:58] quaristice: has joined #ruby
[08:45:41] sandstrom: has joined #ruby
[08:45:47] djbkd: has joined #ruby
[08:47:08] devbug: has joined #ruby
[08:48:16] nettoweb: has joined #ruby
[08:48:38] Jet4Fire: al2o3-cr: friday will start when i will go out from work
[08:50:04] agent_white: has joined #ruby
[08:51:29] peterhil`: has joined #ruby
[08:52:10] troulouliou_div2: has joined #ruby
[08:52:47] DexterLB: has joined #ruby
[08:54:53] user1138: has joined #ruby
[08:55:29] agent_white: has joined #ruby
[08:55:57] solars: is there a nicer way to catch s.imported_clicks being nil than: s.imported_clicks = (s.imported_clicks.to_i + clicks) if clicks
[08:56:01] solars: if I want to add? :)
[08:57:14] user1138: has joined #ruby
[08:58:26] apeiros: solars: the nicer way is to have it default to zero instead of nil
[08:58:36] apeiros: and then you can just s.imported_clicks += clicks if clicks
[08:58:40] user1138: has joined #ruby
[08:58:46] Amnez777: has joined #ruby
[08:59:16] user1138: has joined #ruby
[08:59:55] shevy: so much clicking
[09:00:44] kmckelvin: has joined #ruby
[09:00:48] solars: apeiros, this depends on the use case as zero is semantically different from nil
[09:01:17] joonty: has joined #ruby
[09:01:18] solars: in this case I need nil
[09:03:34] solars: why I need it?
[09:03:42] solars: it's for a state like 'unset'
[09:03:49] lxsameer: has joined #ruby
[09:03:50] lxsameer: has joined #ruby
[09:03:57] apeiros: why do you need to specify it as "unset"?
[09:04:05] solars: because it is unset
[09:04:13] apeiros: that's a nonsensical explanation
[09:04:17] apeiros: it's so because it is so
[09:05:19] duckpuppy: has joined #ruby
[09:07:01] baweaver: has joined #ruby
[09:07:14] TheHodge: has joined #ruby
[09:07:27] rsc___: has joined #ruby
[09:07:47] snowy: has joined #ruby
[09:07:56] brennebeck: has joined #ruby
[09:08:03] solars: if you're working with sums or calculations, there is a difference between unset and 0
[09:08:11] ohle: has joined #ruby
[09:08:12] apeiros: dude, I *know* that.
[09:08:18] apeiros: I ask you for *your specific reason*
[09:08:21] solars: so what's the question?
[09:08:27] apeiros: not for the abstract theory behind the difference of nil and zero.
[09:08:39] solars: I will abstract it
[09:08:47] apeiros: that won't help.
[09:08:49] solars: if you're aggregating data, for example on a per day basis
[09:08:56] solars: it will, let me explain
[09:09:15] solars: and let's say you have colums A, B - B is an estimation and A is the measured value
[09:09:46] solars: you want to sum up for particular results, if the measurement is not there yet, you take the estimation
[09:09:52] solars: which translates to: if A is unset, use B
[09:09:53] rdark: has joined #ruby
[09:09:53] rdark: has joined #ruby
[09:10:25] peterhil`: has joined #ruby
[09:11:24] apeiros: so you have an alternative approach formulated already: how can you test whether you have measurements? your current implementation is to check against nil in your sum. maybe there's another way.
[09:11:44] gaussblurinc1: has joined #ruby
[09:11:58] solars: there is not, but that was not my question :)
[09:12:07] apeiros: but on the current level of abstraction, I'm disengaging. I see little point in doing it this way.
[09:12:43] solars: alright :)
[09:12:50] ljarvis: why would you even execute if imported_clicks is nil? you're just setting it to zero if clicks is set, that's intentional?
[09:13:13] dlitvak: has joined #ruby
[09:13:59] solars: ljarvis, it's a sum in the brackets
[09:14:03] ljarvis: setting it to the same value as clicks, rather
[09:14:31] solars: apeiros, imagine A and B are millions of entries in a DB and you need to sum up these rows
[09:14:34] ljarvis: solars: right, but your statement is ran when s.imported_clicks is nil, but you say "catch s.imported_clicks being nil"
[09:14:40] Musashi007: has joined #ruby
[09:14:50] ljarvis: so you actually want the zero value of it in this scenario anyway
[09:15:22] solars: apeiros, in order to be fast it has to be done in sql, and sql is rather restricted, so if you want to do this in one query, you're bound to a solution like this
[09:15:51] apeiros: solars: as said, I'm not interested in discussing an abstracted problem
[09:15:53] Hounddog: has joined #ruby
[09:16:02] ljarvis: did you come just to try and teach apeiros things he doesn't care about or already knows or do you have a question?
[09:16:30] solars: ljarvis, sorry? he asked me what I want to do and I explained it. I didn't get your statement above though, sorry
[09:16:36] apeiros: solars: a database can tell you whether there's records and the sum of one column of those records in one query
[09:16:42] rsc___: has joined #ruby
[09:16:58] casadei: has joined #ruby
[09:17:11] apeiros: solars: and if you do two queries, you can test for the mere existence of records in a first query, and get the costly sum in a second query
[09:17:13] solars: apeiros, an abstraction helps understanding, there is no point in telling you that A is actually a very complicated chemical reaction
[09:17:35] ljarvis: solars: I'm trying to answer your original question, but Ifeel like we've come a long way away from that with some odd abstraction discussion, so I should stick out :)
[09:17:46] apeiros: solars: fine. that's your point. I disagree and tell you that I'm not interested under that condition.
[09:18:13] solars: apeiros, but then I need two queries, why should I, if I can do it in one? after all the semantic difference of zero vs null is a concept
[09:18:25] apeiros: solars: see above. told you you can do it in one.
[09:18:44] apeiros: whether you use the one or two queries solution depends on the (whoops) concrete and specific use-case.
[09:18:59] solars: apeiros, you mean the first sentence? but you cannot do what I explained above
[09:19:00] marr: has joined #ruby
[09:19:09] apeiros: um, yes. you can.
[09:19:14] Hounddog: has joined #ruby
[09:19:46] apeiros: by doing a query which tells you whether there's records or not. there's case/when in sql.
[09:19:58] solars: this is exactly what I explained
[09:20:07] solars: the problem is
[09:20:10] solars: there ARE records
[09:20:16] apeiros: I'm not interested.
[09:20:17] solars: as written
[09:20:18] apeiros: ACTION afk now.
[09:20:42] solars: you're mad now because you didn't understand the problem? I'm sorry that I offended you because of that
[09:20:56] apeiros: no. I'm not mad.
[09:21:00] apeiros: this discussion is pointless.
[09:21:11] apeiros: you won't get a solution if you insist on staying abstract.
[09:21:12] shevy: it does have some popcorn value!
[09:21:16] solars: then don't make any assumptions if you didn't understand the problemm
[09:21:29] apeiros: and you say I make assumptions? :D
[09:21:40] Emmanuel_Chanel: has joined #ruby
[09:21:43] solars: well, I can read the log, so yes
[09:21:45] apeiros: solars: ad-hominem isn't a nice way. leave it at that I'm not interested, ok?
[09:21:54] SCHAAP137: has joined #ruby
[09:22:31] solars: apeiros, that's what I did before but you insisted on the fact that my solution is not valid, although you did not understand my problem
[09:22:40] solars: so it's justified that I explain myself, right
[09:22:50] solars: if you don't want to understand it, then don't ask
[09:22:56] apeiros: I can as much just assert that you fail to understand the solution.
[09:23:05] apeiros: and it'd be just as pointless as your assertion
[09:23:11] Hounddog: has joined #ruby
[09:23:12] apeiros: so again: stop.
[09:23:29] solars: you tell me I don't understand the solution, but do not let me prove youre wrong?
[09:24:44] based_pdev: has joined #ruby
[09:25:10] pwnd_nsfw: has joined #ruby
[09:25:21] kam270: has joined #ruby
[09:28:04] karapetyan: has joined #ruby
[09:28:17] nettoweb: has joined #ruby
[09:29:24] elton: has joined #ruby
[09:29:29] Hounddog: has joined #ruby
[09:29:40] ohaibbq_: has joined #ruby
[09:30:39] karapetyan: has joined #ruby
[09:31:09] durstburger: has joined #ruby
[09:33:02] lemur: has joined #ruby
[09:35:14] wldcordeiro: has joined #ruby
[09:35:44] xfbs: has joined #ruby
[09:36:24] jpfuentes2: has joined #ruby
[09:37:51] Emmanuel_Chanel: has joined #ruby
[09:38:48] skade: has joined #ruby
[09:39:52] xfbs: has joined #ruby
[09:42:06] kam270: has joined #ruby
[09:42:57] mikecmpbll: has joined #ruby
[09:45:34] towski_: has joined #ruby
[09:46:25] MissionCritical: has joined #ruby
[09:47:33] sonOfRa: has joined #ruby
[09:49:43] elton: has joined #ruby
[09:52:26] peterhil`: has joined #ruby
[09:53:15] workmad3: has joined #ruby
[09:54:31] Hanmac1: has joined #ruby
[09:58:09] cornerman: has joined #ruby
[09:58:28] tvw: has joined #ruby
[10:02:34] apeiros: gawd, I tell you today is halloween bloodmoon monday. all the stuff is going wrong in weird ways.
[10:02:38] Emmanuel_Chanel: has joined #ruby
[10:03:24] johnny56_: has joined #ruby
[10:03:59] Azure: has joined #ruby
[10:05:24] vdamewood: has joined #ruby
[10:06:01] duckpuppy: has joined #ruby
[10:06:43] peterhil`: has joined #ruby
[10:07:00] ljarvis: it's almost the weekend though, so there's that
[10:08:05] apeiros: oh, I actually wanted to write this in #ruby-ot :D
[10:09:06] brennebeck: has joined #ruby
[10:11:38] ruby-lang626: has joined #ruby
[10:12:14] edwinvdgraaf: has joined #ruby
[10:13:00] ruby-lang626: how many hours does it take to learn ruby to be able to work
[10:13:33] colegatron: has joined #ruby
[10:14:10] apeiros: ruby-lang626: depends on how much knowledge you already have wrt programming
[10:14:26] apeiros: if you know a language like python - a couple of hours
[10:14:34] Fraeon: has joined #ruby
[10:15:30] apeiros: if you're starting with programming - a couple of days to a couple of weeks, depending on your receptiveness for programming
[10:16:11] karapetyan: has joined #ruby
[10:17:24] ruby-lang626: i have basics, i have done codecademy
[10:17:37] ruby-lang626: i could work for $?
[10:17:50] chridal: has joined #ruby
[10:18:12] ruby-lang626: i have done w3schools javascript
[10:18:31] apeiros: you can always work for $. that's not very related to your abilities, but rather to the willingness of somebody to pay you for what you have to offer ;-)
[10:18:51] karapetyan: has joined #ruby
[10:18:55] ruby-lang626: im looking to get a stable income fast
[10:19:16] joonty: has joined #ruby
[10:19:19] ruby-lang626: i would do freelance
[10:20:46] peterhil`: has joined #ruby
[10:22:26] nfk|laptop: has joined #ruby
[10:23:09] apeiros: hm? what's funny shevy?
[10:23:23] shevy: <ruby-lang013> i am speaking of freelance work
[10:23:48] elton: has joined #ruby
[10:24:04] Chau: has joined #ruby
[10:24:17] apeiros: you mean same person?
[10:24:18] Ray`: ruby-lang626: you'll need a few years of experience and the ability to demonstrate your ability
[10:24:55] Ray`: it's likely you'll have to do a bunch of very low paid or even free work for a while first in order to develop a portfolio
[10:25:14] apeiros: Ray`: not necessarily. we hired people who had neither ruby nor rails experience.
[10:25:15] shevy: apeiros yeah but also the pattern before ... "<ruby-lang013> how fast can you learn ruby and get a job" and "<ruby-lang013> is a month realistic? <norc> No."
[10:25:19] Ray`: contributing to open source projects or developing one can be an alternative way to do that
[10:25:24] sepp2k: has joined #ruby
[10:25:26] Ray`: apeiros: true, but were they knew to programming in general?
[10:25:32] shevy: hey tectorhrope
[10:25:36] Ray`: and would you hire a freelance developer for a contract in rails who had no rails experience?
[10:25:45] apeiros: Ray`: one was, the other wasn't. expectations were different for both.
[10:25:56] Ray`: I'd imagine the pay's pretty different for both positions too
[10:26:11] apeiros: Ray`: it's really as I said - being able to charge $ has more to do with your employer than your current skillset.
[10:26:17] shevy: apeiros did you manage to train up the non-ruby guy to ruby guru level?
[10:26:23] apeiros: Ray`: sure. also contract is different.
[10:26:36] apeiros: shevy: not guru-level. but he's quite productive.
[10:26:37] Ray`: yeah, although I do tend to use freelancing/contracting fairly interchangably I guess
[10:26:43] apeiros: IMO it paid off easily.
[10:26:46] Ray`: because I freelance, but take on contract work
[10:27:02] Guest4028: has joined #ruby
[10:27:23] apeiros: for freelancer, the situation is a bit different again. I'm unwilling to hire a freelancer (as a freelancer) without a portfolio.
[10:27:27] Ebok: has joined #ruby
[10:27:51] Guest4028: Ray`: I like to hire a freelancer
[10:28:05] Ray`: get in line man
[10:28:34] bubbys: github projects a more importantn tnan a portfolio, imho
[10:28:39] Guest4028: any good beginner freelancer with trsut wortth here ?
[10:28:45] veverak: has joined #ruby
[10:28:56] baweaver: bubbys: both are needed, more towards portfolio
[10:28:57] Ray`: bubbys: I don't think those two are mutually exclusive
[10:29:07] apeiros: bubbys: um, github projects ??? portfolio
[10:29:15] baweaver: You can have hundreds of crap git projects
[10:29:19] baweaver: and no finished work
[10:29:22] shevy: ACTION raises hand
[10:29:29] apeiros: (and in case the symbol between "projects" and "portfolio" doesn't show: it's "subset")
[10:29:38] baweaver: A portfolio is what you have done and shipped
[10:29:40] Ray`: venn diagrams needed here
[10:29:42] baweaver: things that are live
[10:29:54] baweaver: if that's absent I'm not hiring
[10:30:20] musl: has joined #ruby
[10:30:21] baweaver: unless you have one heck of a good reason why not
[10:30:22] apeiros: I'd consider "on github" as shipped. even if it is not (yet) working. I can use it to get an estimate of the candidate's capabilities.
[10:30:27] Guest4028: I hire so many freelancers and I never see github or portfolios as a higher level I dont know what they are but I see the work :P
[10:30:27] baweaver: such as working on internal only
[10:30:31] Guest4028: and Results
[10:30:38] Ray`: well this is a good example of how different employers have completely different metrics
[10:30:57] Ray`: and you probably want to cover all your bases
[10:31:22] apeiros: but tbh, github & portfolio are the quick screening attributes. it's what gets you an interview. in the interview, none of them are relevant to me.
[10:31:27] veverak: hi folks, I just upgraded one server to new debian version.. (and more or less everything was ugpraded) but there is one script that gave me error and I am not exactly ruby guy :D I suppose it's just about getting proper format from rubys time I suppose... https://bpaste.net/show/607731e740b6
[10:31:35] baweaver: I count portfolio work as done and shipped to a client
[10:31:36] bubbys: freelancer can have portfolio, but he can steal projects from firm or another portfolio
[10:31:45] veverak: would somebody willing to give me a hint about how to repair this?
[10:31:51] baweaver: I can tell if they do
[10:31:59] durstburger: has joined #ruby
[10:32:25] blaxter: has joined #ruby
[10:32:50] Ray`: I'd guess you probably have a bunch of red flags too
[10:32:57] Ray`: most of the people I've spoken to in the hiring process seem to
[10:33:24] Guest4028: Where can I find freelancers on IRC ?? As its so stupid to talk about freelancers on IRC
[10:33:55] Ray`: it's useful to know what's going on in the hiring process in varying environments
[10:33:55] roxtrongo: has joined #ruby
[10:34:30] Guest4028: Ray`: but freelancers hire totally diffrent from job hiring
[10:34:43] alphaatom: has joined #ruby
[10:34:44] chocho_: has joined #ruby
[10:34:53] Guest4028: freelancers are very unsafe
[10:35:08] Ray`: if you have an efficient screening and interviewing process, it doesn't have to be
[10:35:39] Ray`: the points mentioned in the conversation just now were good
[10:35:58] Guest4028: Ray`: I have a doubt freelancer == some one from freelancer.com upwork.com like that ?
[10:36:06] Guest4028: or just different ?
[10:36:14] Ray`: no not necessarily, those are outsourcing sites
[10:36:24] nertzy: has joined #ruby
[10:36:52] Guest4028: I have a idea to set up a startup in my places usiing freelancers form those websites
[10:37:04] Guest4028: pay them less get payed from client
[10:37:25] Ray`: this is probably getting off topic
[10:37:56] Guest4028: where is #startup ?/
[10:38:05] Ray`: I'd suggest searching for information on how to create an agency, that seems to be what you're doing
[10:38:17] bubbys: silly newbie
[10:38:39] Peg-leg: has joined #ruby
[10:38:52] Guest4028: bubbys: me ?/
[10:39:04] Guest4028: ]I am newbie but very serious guy not silly
[10:39:49] bubbys: money on account?
[10:41:41] Ray`: good luck and godspeed
[10:41:41] Guest4028: I have respect to you'
[10:42:34] Ox0dea: Ray`: Redundant.
[10:42:34] Guest4028: no one talks to me I am not a troll :(
[10:42:35] agent_white: has joined #ruby
[10:42:40] bubbys: seems he hasnt money totally
[10:42:47] Guest4028: hello bubbys
[10:43:11] chocho_: has joined #ruby
[10:43:20] Guest4028: wtf u guys talking am I in ruby ?
[10:43:29] RegulationD: has joined #ruby
[10:43:35] bubbys: i dont speak with silly opponents
[10:43:39] prestorium: has joined #ruby
[10:43:47] Ray`: I need to get better at recognizing trolls
[10:44:24] Guest4028: I think I am in wrong channel
[10:45:48] atomical: has joined #ruby
[10:48:26] joonty: has joined #ruby
[10:49:56] toretore: has joined #ruby
[10:50:05] xfbs: has joined #ruby
[10:55:21] Jet4Fire: has joined #ruby
[10:56:57] ldnunes: has joined #ruby
[10:58:47] wpp: has joined #ruby
[11:01:59] blaxter: has joined #ruby
[11:02:16] platzhirsch: has joined #ruby
[11:03:48] CrazyEddy: has joined #ruby
[11:04:59] stannard: has joined #ruby
[11:05:04] Jet4Fire: has joined #ruby
[11:06:40] platzhirsch: has left #ruby: ()
[11:06:51] duckpuppy: has joined #ruby
[11:07:53] DoubleMalt: has joined #ruby
[11:09:08] cjk101010: has joined #ruby
[11:09:44] howdoi: has joined #ruby
[11:12:08] digneety: has joined #ruby
[11:15:19] Jet4Fire: has joined #ruby
[11:16:31] allcentury: has joined #ruby
[11:17:38] lokulin: has joined #ruby
[11:19:37] bronson: has joined #ruby
[11:20:28] goodcodeguy: has joined #ruby
[11:22:57] agent_white: has joined #ruby
[11:23:08] allcentury: has joined #ruby
[11:23:28] atomical: has joined #ruby
[11:23:31] baweaver: has joined #ruby
[11:25:24] Jet4Fire: has joined #ruby
[11:28:45] sandstrom: has joined #ruby
[11:30:28] mikecmpbll: has joined #ruby
[11:31:23] elton: has joined #ruby
[11:31:42] favadi: has joined #ruby
[11:31:49] snrobot: has joined #ruby
[11:32:38] durstburger: has joined #ruby
[11:34:55] Jet4Fire: has joined #ruby
[11:35:51] dionysus69: has joined #ruby
[11:37:03] sepp2k: has joined #ruby
[11:37:20] jpfuentes2: has joined #ruby
[11:38:26] baweaver: has joined #ruby
[11:42:26] arup_r: has joined #ruby
[11:43:56] adaedra: has joined #ruby
[11:44:12] moei: has joined #ruby
[11:44:23] `derpy: has joined #ruby
[11:44:49] Jet4Fire: has joined #ruby
[11:45:56] arup_r: I was trying to make some getter method using defined_method, but it shouts when I used bare `super`, but once I added super() all is well. Just want to verify the choice of super() is correct decision or not. Gist: https://gist.github.com/aruprakshit/f0bb665e21e9f9927faa
[11:48:02] Musashi007: has joined #ruby
[11:50:15] Mon_Ouie: has joined #ruby
[11:54:48] Jet4Fire: has joined #ruby
[11:56:28] jpinnix______: has joined #ruby
[12:00:10] sdwrage: has joined #ruby
[12:00:40] shevy: super is kind of weird
[12:01:04] shevy: when you use () there then the ruby parser knows that you won't pass any arguments to the super-ed initialize() or whatever else method it is
[12:02:24] shevy: your code also is weird :)
[12:02:59] arup_r: shevy: yes for super explanation.. dunno about wired..
[12:03:04] User458764: has joined #ruby
[12:03:09] dlitvak: has joined #ruby
[12:03:14] shevy: haven't seen this before yet: return (super == 'true')
[12:03:17] sdothum: has joined #ruby
[12:03:24] arup_r: shevy: otherwise, I need to add like 15 def... end
[12:03:47] Jet4Fire: has joined #ruby
[12:04:09] arup_r: shevy: DB don't understand true and false .. it is a JSON column, so all is tring.. That is why I made the super method like that.. to process it centrally
[12:04:38] arup_r: so when I will call a method.. it will give me true or false
[12:05:08] arup_r: shevy: idea is copied from a blogpost.. I can't be that smart though.. My idea is only to use define_method ..
[12:05:21] arup_r: shevy: https://mikecoutermarsh.com/using-hstore-with-rails-4/
[12:05:43] arup_r: Ruby is for lazy people.. hehe
[12:05:52] gaussblurinc1: has joined #ruby
[12:08:11] cdg: has joined #ruby
[12:08:33] ibouvousaime: has joined #ruby
[12:08:49] gaussblurinc1: has joined #ruby
[12:10:14] brennebeck: has joined #ruby
[12:13:39] glowcoil: has joined #ruby
[12:14:03] gaussblurinc1: has joined #ruby
[12:17:04] veverak: has left #ruby: ("WeeChat 1.0.1")
[12:17:34] quaristice: has joined #ruby
[12:17:37] knowtheory: has joined #ruby
[12:17:41] shevy: yeah I used define_method too myself, I just never saw that return super thing there
[12:20:05] quaristice: has joined #ruby
[12:20:46] bronson: has joined #ruby
[12:21:18] robert45: has joined #ruby
[12:21:19] tomaz_b: has joined #ruby
[12:22:06] zapata: has joined #ruby
[12:23:21] workmad3: has joined #ruby
[12:23:44] gaussblurinc1: has joined #ruby
[12:23:46] casadei: has joined #ruby
[12:23:56] linduxed: has joined #ruby
[12:24:02] gaussblurinc1: has joined #ruby
[12:24:22] dionysus69: has joined #ruby
[12:26:50] ibouvousaime: has joined #ruby
[12:27:36] shevy: semi-offtopic in regards to opening a file with an editor, and with ruby now being able to tell you the lines where a method is defined, and the specific file; at a specific position. I know that vim allows this, e. g. +50 to jump to line 50. Which other popular editors support something like this? sublime?
[12:28:00] xfbs: has joined #ruby
[12:28:36] rgrmatt: has joined #ruby
[12:29:00] pragmatism: has joined #ruby
[12:30:25] apeiros: shevy: most. most common format I've seen for this is file:line
[12:30:30] sandstrom: has joined #ruby
[12:30:39] apeiros: with sublime, it's `subl file:line`, with bbedit it's `bbedit file:line`
[12:31:18] InvGhost: has joined #ruby
[12:31:46] User458764: has joined #ruby
[12:32:37] lacuna: has joined #ruby
[12:33:26] durstburger: has joined #ruby
[12:33:49] elton: has joined #ruby
[12:36:43] Guest11: has joined #ruby
[12:38:06] tknz: has joined #ruby
[12:39:36] rodfersou: has joined #ruby
[12:39:40] imperator: has joined #ruby
[12:41:45] bodie_: has joined #ruby
[12:42:46] Guest11: has joined #ruby
[12:44:31] User458764: has joined #ruby
[12:45:24] sdwrage: has joined #ruby
[12:45:45] Ishido: has joined #ruby
[12:48:51] gaussblurinc1: has joined #ruby
[12:49:14] DexterLB: has joined #ruby
[12:50:17] User458764: has joined #ruby
[12:53:37] gaussblurinc1: has joined #ruby
[12:54:51] Fire-Dragon-DoL: stupid question... Is ruby Thread#status thread-safe? Like if I check if the thread terminated from another thread, will it be safe or do I have to ensure safety by myself?
[12:57:24] symbol: has joined #ruby
[12:58:09] nixmaniack: has joined #ruby
[12:58:32] rsc___: has joined #ruby
[12:58:47] yorickpeterse: Fire-Dragon-DoL: no
[12:58:54] gaussblurinc1: has joined #ruby
[12:59:03] yorickpeterse: There's no locking involved in Thread#status, so I'm pretty sure it's not safe
[12:59:48] Fire-Dragon-DoL: mh thanks yorickpeterse
[13:01:00] jmonreal: has joined #ruby
[13:01:34] jmonreal: How can I check in a nested hash either a value is present or not inside the different keys which I do not know
[13:02:09] d0lph1n98: has joined #ruby
[13:02:49] cajone: has joined #ruby
[13:03:09] simplyianm: has joined #ruby
[13:03:34] BadBlock: has joined #ruby
[13:04:03] jmonreal: without doing nested loops
[13:04:52] gaussblurinc1: has joined #ruby
[13:05:26] jmonreal: is there something like hash.has_value?(valueSeeked)
[13:06:21] gaussblurinc1: has joined #ruby
[13:06:28] apeiros: jmonreal: there's no method to deal with deep structures
[13:06:48] xfbs: has joined #ruby
[13:06:49] apeiros: for the simple reason that this is very use-case specific and needs intimate knowledge about the structure of the nesting.
[13:07:22] jmonreal: apeiros: so if I get the inner hash, i could if innerHash.has_value(valueSeeked)?
[13:07:29] gaussblurinc1: has joined #ruby
[13:07:37] apeiros: jmonreal: I don't understand
[13:07:58] jmonreal: apeiros: http://stackoverflow.com/questions/9012388/ruby-how-to-check-if-specific-value-is-present-in-a-hash
[13:08:20] duckpuppy: has joined #ruby
[13:08:59] apeiros: jmonreal: how does that link clarify what you wanted to ask?
[13:09:12] jmonreal: asking about the method has_value
[13:09:40] gregf_: jmonreal: if its a deeply nested structure then i would imagine recursion.
[13:09:42] apeiros: the method has_value? (note the "?", it's part of the name) checks the *current* hash. it does not descend into nested hashes.
[13:09:43] jmonreal: may I check the inner hash with if innerHash.has_value("foo")
[13:09:56] jmonreal: just one hash inside another
[13:10:03] apeiros: but again, has_value?, not has_value.
[13:10:05] mikecmpbll: has joined #ruby
[13:10:26] KrzaQ: if I want to have an infinite integer enumerator, can I do it in a nicer way than (0..9999999999999999999999999999) ?
[13:10:28] jmonreal: thanks apeiros
[13:10:30] gaussblurinc1: has joined #ruby
[13:10:50] apeiros: KrzaQ: 0..Float::INFINITY
[13:11:03] KrzaQ: Okay, still long :(
[13:11:05] KrzaQ: Thanks though
[13:11:20] apeiros: KrzaQ: are you restricted on chars for your code or something?
[13:11:27] apeiros: KrzaQ: you can always assign that to a constant
[13:11:31] skade: has joined #ruby
[13:11:42] KrzaQ: Restricted: no, but I want to make my advent of code solution short :P
[13:12:27] brennebeck: has joined #ruby
[13:13:29] KrzaQ: I guess I can live with 4 lines and <200 bytes
[13:14:36] gaussblurinc1: has joined #ruby
[13:18:10] cac: has joined #ruby
[13:18:38] yokel: has joined #ruby
[13:19:10] Outlastsheep: has joined #ruby
[13:19:39] cac: www.stackoverflow.com/questions/34089031
[13:19:45] moua: has joined #ruby
[13:20:40] cac: http://www.stackoverflow.com/questions/34089031
[13:24:50] Ropeney: has joined #ruby
[13:26:37] jmonreal: if I want to write to a file (appending texts) and if the file does not exist, is it valid open('file.out', a) do |f| f.puts string end
[13:28:07] gusTester: has joined #ruby
[13:28:11] d0nn1e: has joined #ruby
[13:28:24] apeiros: ?try jmonreal
[13:28:25] ruboto: jmonreal, Why don't you try it and see for yourself?
[13:29:45] peterhil`: has joined #ruby
[13:32:12] snrobot: has joined #ruby
[13:32:47] Pupeno: has joined #ruby
[13:32:48] Pupeno: has joined #ruby
[13:33:12] `derpy: has joined #ruby
[13:33:38] jgt: has joined #ruby
[13:33:39] gaussblurinc1: has joined #ruby
[13:34:12] durstburger: has joined #ruby
[13:34:30] adaedra: has joined #ruby
[13:34:31] lemur: has joined #ruby
[13:34:49] joonty: has joined #ruby
[13:36:17] DEac-: has joined #ruby
[13:37:17] casadei: has joined #ruby
[13:37:20] nateberkopec: has joined #ruby
[13:37:35] gaussblurinc1: has joined #ruby
[13:38:27] jmonreal: ruboto: thanks ;)
[13:38:33] jpfuentes2: has joined #ruby
[13:38:47] babblebre: has joined #ruby
[13:38:58] opencard: has joined #ruby
[13:39:27] gaussblurinc1: has joined #ruby
[13:40:19] SCHAAP137: has joined #ruby
[13:40:21] gaussblurinc1: has joined #ruby
[13:40:41] circ-user-mgcmJ: has joined #ruby
[13:41:09] opencard: has joined #ruby
[13:43:12] lavros: has joined #ruby
[13:45:13] FooMunki: has joined #ruby
[13:45:26] sgambino: has joined #ruby
[13:46:25] gaussblurinc1: has joined #ruby
[13:47:49] wprice: has joined #ruby
[13:48:03] p0wn3d: has joined #ruby
[13:49:07] goodcodeguy: has joined #ruby
[13:49:26] gaussblurinc1: has joined #ruby
[13:49:57] DEac-: has joined #ruby
[13:51:41] JDiPierro: has joined #ruby
[13:52:05] tvw: has joined #ruby
[13:52:22] gaussblurinc1: has joined #ruby
[13:54:11] allcentury: has joined #ruby
[13:54:55] hectortrope: has joined #ruby
[13:55:21] weemsledeux: has joined #ruby
[13:56:17] davedev24: has joined #ruby
[13:57:05] lukeasrodgers: has joined #ruby
[13:58:09] gaussblurinc1: has joined #ruby
[13:58:30] sdwrage: has joined #ruby
[13:59:21] gaussblurinc1: has joined #ruby
[14:00:00] Guest3296: has joined #ruby
[14:00:07] last_staff: has joined #ruby
[14:01:02] ghost2060: has joined #ruby
[14:01:09] ghost2060: Question: I have an array of four boolean items (a, b, c, d). Only one should be true at any given time, so when A becomes true, how do I set B, C, and D to false? I can do this with a long switch statement, but I feel like there has to be a better way.
[14:01:46] gaussblurinc1: has joined #ruby
[14:02:37] InvGhostt: has joined #ruby
[14:02:50] apeiros: ghost2060: so given B is true. And now A becomes true. How do you know which one should be set to false? Or do you actually mean you want to write a method which sets all values except the given one to false?
[14:03:07] ghost2060: if B is now true, A should be false
[14:03:25] apeiros: but all you see is [true, true, false, false]
[14:03:26] ghost2060: i want a method to handle this all, but didn't know if ruby had something build in
[14:03:35] apeiros: how do you now it's A which should be false and not B?
[14:03:42] apeiros: it doesn't
[14:03:43] ghost2060: well, [false, true, false, false] --- when B is true, I need to ensure A is false
[14:03:54] apeiros: ACTION rolls eyes
[14:04:31] TDJACR: has joined #ruby
[14:05:12] xybre: ghost2060: why?
[14:05:12] rgrmatt: has joined #ruby
[14:05:19] bnizzle: has joined #ruby
[14:05:31] bnizzle: has left #ruby: ()
[14:06:37] apeiros: ghost2060: you can gist your method and we can tell you how to improve it.
[14:07:24] cyb3rspy: has joined #ruby
[14:08:46] arup_r: has joined #ruby
[14:09:10] duckpuppy: has joined #ruby
[14:09:46] cyb3rspy: has joined #ruby
[14:11:27] krobzaur: has joined #ruby
[14:12:00] Pupeno: has joined #ruby
[14:13:15] brennebeck: has joined #ruby
[14:14:17] yokel: has joined #ruby
[14:14:26] bcavileer_: has joined #ruby
[14:14:53] opencard_348368: has joined #ruby
[14:16:11] sankaber: has joined #ruby
[14:16:54] Guest85414______: has joined #ruby
[14:20:04] opencard: has joined #ruby
[14:20:48] lacuna: has joined #ruby
[14:20:48] lacuna: has joined #ruby
[14:21:14] Pupeno: has joined #ruby
[14:22:52] nettoweb: has joined #ruby
[14:24:32] gaussblurinc1: has joined #ruby
[14:24:36] Deep_Thought: has joined #ruby
[14:24:37] sankaber: has joined #ruby
[14:25:18] Deep_Thought: Hi, I have a suse 11 box with ruby 1.8 installed, if I install the latest ruby (2.5), withh this cause issues?
[14:25:37] Deep_Thought: or rubygem version works with older version f ruby ?
[14:26:41] adaedra: There's no ruby 2.5
[14:26:43] yes`r: has joined #ruby
[14:27:07] AlexRussia: has joined #ruby
[14:27:09] Deep_Thought: but rubygems is 2.5
[14:27:28] Deep_Thought: sry i meant rubygem
[14:27:41] adaedra: Since 1.9, ruby bundles rubygem, so it will use its own.
[14:27:56] adaedra: To manage multiple rubies on the same machine, look at chruby.
[14:28:26] havenwood: Deep_Thought: But yeah, you can update RubyGems independently of Ruby.
[14:29:47] SolarSailor: has joined #ruby
[14:30:29] _stu_: has joined #ruby
[14:31:53] aryaching: has joined #ruby
[14:32:44] kp666: has joined #ruby
[14:33:23] cdg: has joined #ruby
[14:33:33] Muz: has joined #ruby
[14:34:55] dionysus69: has joined #ruby
[14:35:04] davedev24: has joined #ruby
[14:35:08] blackjid: has joined #ruby
[14:35:08] elton: has joined #ruby
[14:37:38] Pupeno: has joined #ruby
[14:38:02] Arnvald: has joined #ruby
[14:39:53] agit0: has joined #ruby
[14:40:34] skade: has joined #ruby
[14:44:14] karapetyan: has joined #ruby
[14:44:27] Pupeno: has joined #ruby
[14:45:24] sdwrage: has joined #ruby
[14:45:32] atomical_: has joined #ruby
[14:47:28] favadi: has joined #ruby
[14:49:55] centrx: has joined #ruby
[14:50:02] last_staff: has joined #ruby
[14:50:52] skade: has joined #ruby
[14:51:23] quaristice: has joined #ruby
[14:51:35] The_Phoenix: has joined #ruby
[14:53:00] The_Phoenix: has joined #ruby
[14:55:12] baweaver: has joined #ruby
[14:55:32] al2o3-cr: has joined #ruby
[14:55:39] dhollinger: has joined #ruby
[14:56:16] SolarSailor: has joined #ruby
[14:56:44] peterhil`: has joined #ruby
[14:57:42] Inoperable: has joined #ruby
[14:58:53] Mon_Ouie: has joined #ruby
[15:02:07] Xeago: has joined #ruby
[15:02:15] polishdub: has joined #ruby
[15:03:45] last_staff: has joined #ruby
[15:03:51] roshanavand: has joined #ruby
[15:04:47] naftilos76: has joined #ruby
[15:05:52] durstburger: has joined #ruby
[15:05:56] axl_: has joined #ruby
[15:09:02] Frem: has joined #ruby
[15:10:57] stannard: has joined #ruby
[15:11:35] Xeago: has joined #ruby
[15:12:56] krz: has joined #ruby
[15:15:20] jottr: has joined #ruby
[15:16:28] snrobot: has joined #ruby
[15:17:21] imperator: well, this is odd: cannot load such file -- ffi
[15:18:06] CrazyEddy: has joined #ruby
[15:18:42] ElFerna: has joined #ruby
[15:19:15] Rodya_: has joined #ruby
[15:19:25] imperator: on osx, only happens why i try to run the tests
[15:19:29] kobain: has joined #ruby
[15:19:35] imperator: i can require 'ffi' in irb without issue
[15:20:10] adaedra: Are you sure the right version of ruby is used by your test command?
[15:20:33] joonty: has joined #ruby
[15:21:27] brennebeck: has joined #ruby
[15:21:31] imperator: adaedra, i don't specify one, and i also just tried "ruby -Ilib test/test_file_temp.rb" and got the same result, so it's not the Rakefile
[15:24:38] imperator: https://github.com/djberg96/file-temp is the project
[15:24:49] imperator: not sure when this started, haven't looked at it in a while
[15:25:44] toretore: does irb use the same ruby?
[15:26:07] skweek: has joined #ruby
[15:26:39] whippythellama: has joined #ruby
[15:27:19] baweaver: >> (0..1/0.0)
[15:27:20] ruboto: baweaver # => 0..Infinity (https://eval.in/480515)
[15:27:23] imperator: unless rbenv has changed out from under me, should
[15:28:01] kies: has joined #ruby
[15:28:56] shanemcd: has joined #ruby
[15:29:21] wsewolod: has joined #ruby
[15:30:15] imperator: toretore, ruby -e 'require "ffi"' does not raise an error
[15:30:36] brennebeck: has joined #ruby
[15:31:13] imperator: ACTION shoulda stayed in bed today
[15:31:34] Mon_Ouie: has joined #ruby
[15:32:36] davedev24: has joined #ruby
[15:35:18] lemur: has joined #ruby
[15:35:38] yatish27: has joined #ruby
[15:35:52] elton: has joined #ruby
[15:37:09] Pupeno: has joined #ruby
[15:37:24] yardenbar: has joined #ruby
[15:39:13] johnzorn: has joined #ruby
[15:40:25] rsc___: has joined #ruby
[15:41:00] uri: has joined #ruby
[15:41:04] howdoicomputer: has joined #ruby
[15:41:48] jabreity__: has joined #ruby
[15:43:17] sucks: has joined #ruby
[15:44:28] greenbigfrog: has left #ruby: ()
[15:44:54] davedev24: has joined #ruby
[15:46:02] ckrailo: has joined #ruby
[15:46:17] InvGhost: has joined #ruby
[15:46:18] nertzy: has joined #ruby
[15:46:50] beast: has joined #ruby
[15:47:03] Pupeno: has joined #ruby
[15:47:48] psye: has joined #ruby
[15:48:08] joonty: has joined #ruby
[15:48:22] vondruch: has joined #ruby
[15:48:27] Arnvald: has joined #ruby
[15:51:32] devbug: has joined #ruby
[15:51:50] pragmatism: has joined #ruby
[15:51:52] casadei: has joined #ruby
[15:52:00] nofxx: has joined #ruby
[15:52:01] nofxx: has joined #ruby
[15:52:28] blaxter: has joined #ruby
[15:53:00] dlitvak: has joined #ruby
[15:53:13] nateberkopec: has joined #ruby
[15:53:36] bigkevmcd: has joined #ruby
[15:54:12] DexterLB: has joined #ruby
[15:54:19] xcesariox: has joined #ruby
[15:55:20] dsivia: has joined #ruby
[15:55:29] moeabdol: has joined #ruby
[15:55:32] Pupeno: has joined #ruby
[15:56:00] lavros: has joined #ruby
[15:56:07] dsivia: has joined #ruby
[15:57:05] vondruch: has joined #ruby
[15:57:22] peterhil`: has joined #ruby
[15:57:25] lapide_viridi: has joined #ruby
[15:58:08] scepticulous: has joined #ruby
[15:58:11] cjbottaro: has joined #ruby
[15:59:02] Rumbles: has joined #ruby
[15:59:06] jessemcgilallen: has joined #ruby
[15:59:33] boxrick1: has joined #ruby
[15:59:44] passerine: has joined #ruby
[15:59:48] Rumbles: hi, is there any way to stop a user in a ruby console from running system commands?
[16:00:06] scepticulous: is there an obvious reason TCO is disabled in ruby by default?
[16:01:08] havenwood: scepticulous: It's a choice between trace instruction and tailcall optimization and the default is trace instruction.
[16:01:17] jscheel: has joined #ruby
[16:01:22] baweaver: has joined #ruby
[16:02:18] Ox0dea: Rumbles: It's best to sandbox the process itself.
[16:02:33] Ox0dea: Ruby is just too dynamic for any other approach to work reliably.
[16:03:04] Rumbles: ACTION goes back to google
[16:03:14] Rumbles: thanks Ox0dea
[16:03:21] Ox0dea: Happy to help.
[16:04:17] Rumbles: so that would just be rails c --sandbox ??
[16:04:20] Xeago: has joined #ruby
[16:04:31] Pupeno: has joined #ruby
[16:06:28] patdohere: has joined #ruby
[16:06:42] ethe: has joined #ruby
[16:06:42] imperator: oh, tail call optimization...i was like....total cost of ownership is disabled?
[16:07:03] BTRE: has joined #ruby
[16:07:25] dlitvak_: has joined #ruby
[16:08:43] scepticulous: havenwood: ok, that why the examples always disable traces as well. make sensse.
[16:08:53] RegulationD: has joined #ruby
[16:08:56] lacuna: has joined #ruby
[16:08:56] lacuna: has joined #ruby
[16:09:24] rakm: has joined #ruby
[16:10:40] duckpuppy: has joined #ruby
[16:11:57] mary5030: has joined #ruby
[16:12:03] bronson: has joined #ruby
[16:12:08] Gnut: has joined #ruby
[16:12:38] Rumbles: Ox0dea, so what I'm trying to is to allow a user to ssh on to a box, and if the session comes from a certain key, it just runs this script: http://fpaste.org/297464/ This puts them in the ruby console in a particular environment. The idea is to allow a dev on to a machine to check if things are working
[16:13:05] Rumbles: I showed my boss and he was able to run commands like `rm -rf *` or `bash` and break out in to a bash console
[16:13:05] roshanavand: has joined #ruby
[16:13:08] Rumbles: which I want to stop
[16:13:21] Rumbles: even with the --snadbox flag set it still allows me to do this...
[16:13:35] arup_r: has joined #ruby
[16:13:44] Ox0dea: Rumbles: As I've said, you'll want to do this from outside of Ruby.
[16:13:44] Pupeno: has joined #ruby
[16:13:47] Rumbles: is what I'm attempting even possible?
[16:13:54] Ox0dea: Of course it is.
[16:13:59] grillo: has joined #ruby
[16:13:59] agent_white: has joined #ruby
[16:14:04] Rumbles: not sure what you mean by outside of Ruby :/
[16:14:22] sorbo_: has joined #ruby
[16:17:24] shevy: >> system 'rm -rf /*'
[16:17:25] ruboto: shevy # => (https://eval.in/480543)
[16:17:34] colegatron: has joined #ruby
[16:17:39] shevy: Rumbles you can sandbox
[16:17:41] joonty: has joined #ruby
[16:19:09] Rumbles: okay, tha's great, can you tell me how? I'm trying to search for how to sandbox, but all my googleing has returned so far is to run the ruby c with --sandbox
[16:19:15] Rumbles: but that allowed me to run `bash` still
[16:20:04] Cohedrin: has joined #ruby
[16:20:12] ruby-lang022: has joined #ruby
[16:21:02] unreal: has joined #ruby
[16:21:21] kies: has joined #ruby
[16:21:33] ruby-lang022: is it realistic to make 1500$ a month in 3 month by learning to cod
[16:22:49] Pupeno: has joined #ruby
[16:22:50] duckpuppy: has joined #ruby
[16:22:52] Jet4Fire: has joined #ruby
[16:23:18] Dimik: has joined #ruby
[16:24:19] ic2000: has joined #ruby
[16:24:52] quaristice: has joined #ruby
[16:24:54] soulisson: has joined #ruby
[16:26:08] shevy: Rumbles yeah not sure, I remember the original code by _why was kept secret, and I think ruboto is also closed source
[16:26:12] soulisson: In ruby, the require statement is like a copy paste, right?
[16:26:20] ic2000: is there a like ruby general channel or can i ask here
[16:26:58] havenwood: ic2000: This is the place for Ruby questions. :)
[16:27:08] klaas: has joined #ruby
[16:27:20] shevy: soulisson sorta
[16:27:26] havenwood: Rumbles: Familiar with chroot jails and such?
[16:28:40] baweaver: has joined #ruby
[16:28:44] soulisson: shevy, thanks
[16:29:06] ic2000: havenwood: ok thanks, basically i currently use python but yesterday i had 3 random people tell me to learn ruby instead so i decided to have a look at it. seems like a neat language but is there majar reasons to switch cos if it is better then i shall (not trying to start a flame war)
[16:29:10] ereslibre: has joined #ruby
[16:29:11] ereslibre: has joined #ruby
[16:29:42] havenwood: ic2000: Try both and see which you prefer I guess.
[16:29:56] havenwood: ic2000: I prefer Ruby.
[16:30:06] ic2000: havenwood: if u don't mind may i ask why?
[16:30:08] elton: has joined #ruby
[16:31:51] chinmay_dd: has joined #ruby
[16:32:18] Ox0dea: ic2000: What's your favorite Python feature?
[16:32:31] cyb3rspy: ruby-lang022: yes, definitely. but it all depends on where you live.
[16:32:51] Jet4Fire: has joined #ruby
[16:33:01] havenwood: ic2000: I prefer the culture of the community, the whimsy, the aesthetics of the language, etc.
[16:33:09] douglas: has joined #ruby
[16:33:14] Rumbles: sorry, I'm just trying to fix something, one min
[16:33:24] soulisson: shevy, it's more like loading the code in memory :)
[16:33:27] ic2000: Ox0dea: well i can't label anything specifically because i generally like it all round for its simplicity and power
[16:33:40] aibot: has joined #ruby
[16:33:57] ic2000: which is why i'm open to ruby as i believe they're very similar
[16:33:57] Ox0dea: ic2000: Could you define "simplicity" and "power" in this case?
[16:33:58] BZZF: has joined #ruby
[16:34:10] Ox0dea: Ruby is not simple.
[16:34:11] jondot: has joined #ruby
[16:34:53] Ox0dea: The conflation of "simple" with "easy" is a terrible mistake made by far too many programmers.
[16:35:43] karapetyan: has joined #ruby
[16:35:46] ic2000: Ox0dea: in terms of simplicity it's a lot faster and simple to write programs when compared to when i use a language like C. just simple things like not having to define a var type etc
[16:35:55] havenwood: http://www.infoq.com/presentations/Simple-Made-Easy
[16:35:58] ic2000: Ox0dea: and power it seems to run pretty fast
[16:36:07] Ox0dea: ic2000: That's ease, not simplicity. See havenwood's link.
[16:36:08] ic2000: Ox0dea and can do a lot of things
[16:36:11] wildlander: has joined #ruby
[16:36:30] based_pdev_: has joined #ruby
[16:36:38] Ox0dea: ic2000: Python can do everything any other Turing-complete language can do; no less and no more.
[16:36:39] RobertBirnie: has joined #ruby
[16:37:02] cwong_on_irc: has joined #ruby
[16:37:05] moeSeth: has joined #ruby
[16:37:08] Ox0dea: You don't seem to have any particularly compelling reason to choose (or leave) Python.
[16:37:50] ic2000: Ox0dea: i like the ease of it then. i generally want to know a lower level language (c/c++) and a higher one (python or whatever)
[16:38:02] ic2000: and if ruby is better why waste time on python
[16:38:42] Rumbles: havenwood, I am familiar with the concept of chroot jails, I have used them in the past with sftp setup, but I don't know how I would do that when running the the ruby console
[16:38:55] [Butch]: has joined #ruby
[16:39:13] soulisson: ic2000, I use both, python is awesome and ruby is also awesome
[16:39:17] gregf_: ic2000: its not about ruby or python. i dont mind working on either ;)
[16:39:24] Ox0dea: Rumbles: And you'd never even bumped into the term "sandbox" before today?
[16:39:39] soulisson: ic2000, I'm just a beginner in Ruby but I love it
[16:40:02] Rumbles: sure, but I'm not sure how I would sandbox the ruby console :\
[16:40:02] ic2000: soulisson: what do u use them for, anything spe cific or do you just feel like using one language one day and another the other
[16:40:05] elton: has joined #ruby
[16:40:30] Rumbles: my google searches only returned the --sandbox flag and that didn't stop me from being able to run system commands
[16:40:35] ic2000: also can i use ruby for game development
[16:40:48] Rumbles: so clearly I'm missing your point :)
[16:40:49] ic2000: i've seen rubygame but looks like it's outdated and hardly used
[16:40:55] havenwood: ic2000: See Gosu or RubyMotion for two examples.
[16:40:58] hobodave: has joined #ruby
[16:41:02] soulisson: ic2000, I'm a security guy, python and ruby are very popular in this domain
[16:41:39] Ox0dea: Rumbles: `rails c` is just another process.
[16:42:42] Jardayn: has joined #ruby
[16:43:13] skweek: has joined #ruby
[16:43:16] BZZF: has left #ruby: ("Leaving")
[16:43:20] ic2000: ok last question
[16:43:24] ic2000: do employers want ruby?
[16:43:39] soulisson: ic2000, yes
[16:43:42] ethe: has joined #ruby
[16:43:43] havenwood: ic2000: The recruiters who spam us sure think so. :P
[16:43:43] Guest30178: has joined #ruby
[16:43:52] ic2000: havenwood: lol
[16:44:05] soulisson: ic2000, depends on your country though
[16:44:15] ic2000: soulisson: UK
[16:44:24] soulisson: ic2000, then yes
[16:44:36] platzhirsch: has joined #ruby
[16:44:52] platzhirsch: Any idea why /\A[A-Z0-9_\.%\+\-]+@(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2,10})\z/i this is not matching test@test.social as an email?
[16:45:25] platzhirsch: works here https://regex101.com/r/kS0xM1/1
[16:45:31] platzhirsch: but I guess it's about the flavour
[16:45:42] Zarthus: what language are you using?
[16:45:52] Zarthus: (also, as far as emails go, just validate by @ and .
[16:45:54] roshanavand: has joined #ruby
[16:46:14] tubbo: ic2000: i say learn ruby just to see how different it is from python. it should either reaffirm your love for python, or give you a newfound love for ruby :)
[16:46:17] platzhirsch: ACTION points to chanel
[16:46:24] havenwood: platzhirsch: http://rubular.com/r/vfWEYUcgPz
[16:46:35] Zarthus: platzhirsch: yeah, my bad. I thought for a moment I was in the regex channel.
[16:46:44] platzhirsch: Zarthus: haha sorry
[16:46:46] centrx: Learn Ruby because it's better than Python
[16:47:09] ZeeNoodley: has joined #ruby
[16:47:24] Zarthus: platzhirsch: regardless, I do recommend just looking for a @ and a ., emails are ... needlessly complex to validate otherwise.
[16:47:25] platzhirsch: havenwood: oh right
[16:47:37] platzhirsch: Zarthus: I agree
[16:47:40] Zarthus: platzhirsch: your real validation will be a verification code of some sort they will use to register
[16:47:44] platzhirsch: but I have to fix that spec for my boss :D
[16:47:55] platzhirsch: otherwise I completely agree
[16:47:59] jhill: has joined #ruby
[16:48:15] ic2000: platzhirsch: well, might aswell it's not a lot to learn, probably a lot to master though like most languages
[16:48:31] joonty: has joined #ruby
[16:49:12] Encapsulation: has joined #ruby
[16:49:26] snapcase: has joined #ruby
[16:50:47] ic2000: Ox0dea: the examples u sent looked good, are they popular and still being updated?
[16:51:00] Ox0dea: Did I send examples?
[16:51:35] towski_: has joined #ruby
[16:51:55] ic2000: Ox0dea: my bad i meant havenwood
[16:52:04] shevy: Ox0dea you sent examples!!!
[16:52:09] Ox0dea: Did havenwood send examples?
[16:53:03] Ox0dea: Oh, for game libraries.
[16:53:05] Zarthus: platzhirsch: https://gist.github.com/Zarthus/7900854ad1934fa1e321
[16:53:08] naftilos76: has joined #ruby
[16:53:33] idonthaveacoolna: has joined #ruby
[16:53:51] Xeago: has joined #ruby
[16:53:55] platzhirsch: Zarthus: yeah my bad
[16:54:06] InvGhost: has joined #ruby
[16:55:28] idonthaveacoolna: has left #ruby: ()
[16:56:32] soc42: has joined #ruby
[16:56:46] InvGhostt: has joined #ruby
[16:57:32] karapetyan: has joined #ruby
[16:58:42] ic2000: Ox0dea <havenwood> ic2000: See Gosu or RubyMotion for two examples.
[16:59:01] Pupeno: has joined #ruby
[16:59:32] Ox0dea: ic2000: 16:53 <Ox0dea> Oh, for game libraries.
[16:59:51] atomical: has joined #ruby
[17:00:24] ic2000: Ox0dea: sorry didn't see
[17:00:47] tlarevo: has joined #ruby
[17:00:47] Pupeno_: has joined #ruby
[17:00:59] axl_: has joined #ruby
[17:01:14] shevy: long live gosu
[17:02:08] rideh: has joined #ruby
[17:03:30] karapetyan: has joined #ruby
[17:04:01] absolutejam: has joined #ruby
[17:04:14] howdoicomputer: has joined #ruby
[17:06:02] Coldblackice: has joined #ruby
[17:06:29] dashu: has joined #ruby
[17:07:03] rdark: has joined #ruby
[17:07:10] dashu: is there a nice ruby course you can recommend. fast paced not for programming beginners ?
[17:07:21] hxegon: has joined #ruby
[17:07:24] zotherstupidguy: has joined #ruby
[17:07:46] hxegon: has joined #ruby
[17:07:54] rdark: has joined #ruby
[17:08:21] dmcp: has joined #ruby
[17:08:23] lapide_viridi: has joined #ruby
[17:10:14] rdark: has joined #ruby
[17:10:22] nettoweb: has joined #ruby
[17:11:02] rdark: has joined #ruby
[17:11:39] yes`r: has joined #ruby
[17:12:22] Ox0dea: dashu: learnxinyminutes.com/docs/ruby/
[17:12:26] Ox0dea: Something like that?
[17:13:15] rdark: has joined #ruby
[17:14:36] marcv: has joined #ruby
[17:14:39] marcv: has left #ruby: ()
[17:14:53] marcv: has joined #ruby
[17:15:25] hackeron: has joined #ruby
[17:16:55] towski_: has joined #ruby
[17:17:37] yqt: has joined #ruby
[17:19:32] moeabdol: has joined #ruby
[17:21:10] ElFerna: has joined #ruby
[17:21:30] rdark: has joined #ruby
[17:22:32] jessemcgilallen: has joined #ruby
[17:22:33] sucks_: has joined #ruby
[17:22:40] atomical: has joined #ruby
[17:23:02] nixmaniack: has joined #ruby
[17:23:03] nixmaniack: has joined #ruby
[17:23:33] Shoutsid: has joined #ruby
[17:25:04] knowtheory: has joined #ruby
[17:27:03] InvGhosttt: has joined #ruby
[17:27:55] robbyoconnor: has joined #ruby
[17:28:22] NeverDie: has joined #ruby
[17:29:10] bronson: has joined #ruby
[17:35:10] PaulCapestany: has joined #ruby
[17:38:22] ur5us: has joined #ruby
[17:38:32] duckpuppy: has joined #ruby
[17:38:34] jscheel: has joined #ruby
[17:38:44] rdark: has joined #ruby
[17:39:37] amclain: has joined #ruby
[17:40:00] sandstrom: has joined #ruby
[17:40:30] escuzo: has joined #ruby
[17:40:52] benlieb: has joined #ruby
[17:40:55] escuzo: hey guys. i just found this channel. i dont have any questions right now, i just wanted to say hi.
[17:41:29] Ox0dea: escuzo: Are you learning Ruby, then?
[17:42:49] escuzo: yeah, i pretty much just started. i learned HTML and CSS and some PHP when i was young but never really did much with it. i wanted to get back into it since i already have some sort of starting point.
[17:43:04] escuzo: using codecademy right now
[17:43:28] NeverDie: has joined #ruby
[17:44:39] karapetyan: has joined #ruby
[17:44:49] rdark: has joined #ruby
[17:45:19] mikecmpbll: has joined #ruby
[17:50:55] elektronaut: has joined #ruby
[17:52:25] nixmaniack: has joined #ruby
[17:52:50] diegoviola: has joined #ruby
[17:53:15] mrtomme: has joined #ruby
[17:53:50] Rodya_: has joined #ruby
[17:54:25] lacuna: has joined #ruby
[17:54:25] lacuna: has joined #ruby
[17:54:28] rsc___: has joined #ruby
[17:54:32] nixmaniack: has joined #ruby
[17:55:16] rghose: has joined #ruby
[17:55:37] jottr: has joined #ruby
[17:55:59] rghose: has joined #ruby
[17:56:27] rghose: has joined #ruby
[17:56:34] threh: has joined #ruby
[17:56:43] jgpawletko: has joined #ruby
[17:56:45] baweaver: has joined #ruby
[17:57:14] rghose: has joined #ruby
[17:57:25] karapetyan: has joined #ruby
[17:57:42] rghose: has joined #ruby
[17:58:07] based_pdev_: has joined #ruby
[17:58:12] rghose: has joined #ruby
[17:58:23] jbrhbr: has joined #ruby
[17:58:38] nixmaniack: has joined #ruby
[17:58:42] rghose: has joined #ruby
[17:59:12] rghose: has joined #ruby
[17:59:34] ElFerna: has joined #ruby
[17:59:42] rghose: has joined #ruby
[18:00:12] rghose: has joined #ruby
[18:00:37] rghose: has joined #ruby
[18:01:02] rghose: has joined #ruby
[18:01:03] dashu: great stuff idea
[18:01:12] roshanavand: has joined #ruby
[18:01:30] mikecmpbll: has joined #ruby
[18:03:11] colleenmcguckin: has joined #ruby
[18:03:21] SolarSailor: has joined #ruby
[18:03:24] Pupeno: has joined #ruby
[18:05:43] tjad: has joined #ruby
[18:06:57] Rumbles: has joined #ruby
[18:07:09] karapetyan: has joined #ruby
[18:07:12] mikecmpbll: has joined #ruby
[18:07:23] Ebok: has joined #ruby
[18:07:54] s00pcan: has joined #ruby
[18:08:04] babblebre: has joined #ruby
[18:08:08] dashu: now i am happy :o
[18:13:38] atomical: has joined #ruby
[18:14:14] marcv: has left #ruby: ()
[18:14:36] lady3bean: has joined #ruby
[18:14:42] kitallis: has joined #ruby
[18:16:53] juddey: has joined #ruby
[18:17:17] mary5030: has joined #ruby
[18:17:28] mary5030_: has joined #ruby
[18:18:02] Xeago: has joined #ruby
[18:18:07] KensoDev: has joined #ruby
[18:18:45] mikecmpbll: has joined #ruby
[18:19:43] Ebok: has joined #ruby
[18:20:36] karapetyan: has joined #ruby
[18:21:52] codecop: has joined #ruby
[18:22:15] TheNet: has joined #ruby
[18:22:33] nixmaniack: has joined #ruby
[18:23:46] hahuang61: has joined #ruby
[18:24:35] ascarter: has joined #ruby
[18:24:57] djbkd: has joined #ruby
[18:25:02] Rumbles: has joined #ruby
[18:25:18] karapetyan: has joined #ruby
[18:25:19] shevy: now he is gone :(
[18:26:49] xfbs: has joined #ruby
[18:26:50] Ox0dea: He got what he needed. :<
[18:27:06] Rumbles: hello again...
[18:27:31] Rumbles: so, I'm still trying to figure out how to load a ruby console without giving the user access to the bash env
[18:27:55] nixmaniack: has joined #ruby
[18:28:06] Rumbles: I'm wondering can I run a chroot command as the first command run in the ruby console when it loads?
[18:28:24] xfbs: has joined #ruby
[18:28:37] platzhirsch: has left #ruby: ()
[18:28:48] Ox0dea: Rumbles: You run the Ruby process itself within the jail.
[18:28:49] Rumbles: since, I don't know which folder I want to chroot to until the user has selected it as part of the bash script
[18:29:04] Vitor_: has joined #ruby
[18:29:07] shanemcd: has joined #ruby
[18:29:14] xfbs: has joined #ruby
[18:29:18] RegulationD: has joined #ruby
[18:29:32] shevy: Rumbles they don't have access to a bash env, system() will make use of sh as far as I know
[18:30:00] Ox0dea: `sh` is `bash` or `dash` on many systems.
[18:30:20] bronson: has joined #ruby
[18:30:28] shevy: and how is this relevant to ruby
[18:30:29] xfbs: has joined #ruby
[18:30:48] Ox0dea: It was a counterpoint to the validity or relevance of your advice.
[18:31:04] shevy: so it is not relevant at all
[18:31:11] Ox0dea: You started it?
[18:31:30] shevy: please don't waste time
[18:31:34] eam: what relevance is relevance
[18:31:47] stannard_: has joined #ruby
[18:32:04] eam: if you're smart with system() it may not use a shell at all
[18:33:02] drbrain: Rumbles: you can chroot inside ruby: https://github.com/drbrain/capp/blob/master/lib/capp.rb#L119-L127
[18:33:19] Rumbles: so, my technique was to have the command listed in the authorized_keys fileas explained here: http://fpaste.org/297515/
[18:33:32] Muz: has joined #ruby
[18:33:33] Rumbles: that allows the script to run if someone logs in with that key and nothing else
[18:34:07] godzillaenlacasa: has joined #ruby
[18:34:15] Rumbles: but I want to chroot the user after the console is started, is there a way to run the chroot in that script? or would I have to rethink my approach?
[18:34:24] eam: Rumbles: is the user logging in as root?
[18:34:27] eam: only root can chroot
[18:34:48] eam: you may need to rethink the model
[18:35:04] drbrain: Rumbles: I think you want this: http://allanfeid.com/content/creating-chroot-jail-ssh-access
[18:35:20] Rumbles: thanks I'll have a look drbrain
[18:35:29] eam: you can use a setuid helper binary to become root then drop back down, but if you don't have strong background in this area I wouldn't recommend implementing it yourself
[18:35:36] eam: (and it can't be done in ruby)
[18:35:51] drbrain: eam: which part?
[18:35:54] eam: drbrain: the setuid
[18:36:01] eam: shebang scripts cannot be setuid
[18:36:02] CrazyEddy: has joined #ruby
[18:36:04] drbrain: right, yes
[18:36:23] drbrain: setuid root ruby executable is ????
[18:36:55] eam: perl had a special setuid perl that would do kinda crazy things to emulate it but -- all in all not a good idea
[18:37:51] shanemcd: has joined #ruby
[18:37:56] shadoi: has joined #ruby
[18:38:31] krz: has joined #ruby
[18:38:59] Rumbles: thanks drbrain but I don't think that's workable
[18:39:07] bronson: has joined #ruby
[18:39:32] Rumbles: I would have to copy everyhting the user needs to run ruby console before I start in to the app_root each time the user wants to go in
[18:39:42] Rumbles: and I don't know where the user is going to work until they have made a selection
[18:39:46] drbrain: Rumbles: you could also use a union fs
[18:40:29] drbrain: because it could be for one of many rails apps?
[18:40:38] troyready: has joined #ruby
[18:41:37] elton: has joined #ruby
[18:41:37] Rumbles: well, in dev where I am testing our server has a load of apps, in prod that wouldn't normally be an issue
[18:41:38] escuzo: wow, i wasn't expecting such rude, hypocritical attacks from the users in here. is this place not moderated?
[18:42:16] Rumbles: do you have to be root to run something like Dir.chroot("/var/chroot/mychroot") in ruby ?
[18:43:54] Rumbles: okay, this probably isn't workable as I don't want to run this as root
[18:44:17] Ox0dea: You want a sandbox.
[18:44:40] soulisson: Hello, I would like to get arguments from the command line, I use OptionParser but all I get is an empty hash table: https://gist.github.com/anonymous/951ceb1d88fe9ab89fdd
[18:44:53] Ox0dea: Rumbles: https://github.com/thestinger/playpen might be worth looking into.
[18:45:55] wpp: has joined #ruby
[18:46:10] ascarter: has joined #ruby
[18:46:19] shevy: soulisson the commandline arguments are available via ARGV
[18:46:41] soulisson: shevy, yes, but I would like to parse them
[18:46:49] Ox0dea: soulisson: Use `parse!`.
[18:46:57] shevy: soulisson yeah you can do .parse!(ARGV)
[18:47:14] jbrhbr: has joined #ruby
[18:47:18] Ox0dea: Or just `parse!`.
[18:47:59] soulisson: Ox0dea, I used parse!, all I get is true, not the arguments associated to this option
[18:48:25] renderful: has joined #ruby
[18:48:31] Rumbles: thanks Ox0dea I'll have a read
[18:50:14] Aasha: has joined #ruby
[18:50:29] devbug: has joined #ruby
[18:52:04] Ox0dea: soulisson: https://archive.is/TPnBi#selection-1795.0-1847.3
[18:52:18] kirun: has joined #ruby
[18:55:02] elektronaut: has joined #ruby
[18:55:30] rakm: has joined #ruby
[18:55:54] RegulationD: has joined #ruby
[18:58:29] mary5030: has joined #ruby
[18:58:55] RobertBirnie: has joined #ruby
[18:59:49] Unicorn|: has joined #ruby
[19:00:28] tjad: has joined #ruby
[19:01:35] kadoppe: has joined #ruby
[19:01:46] lxsameer: has joined #ruby
[19:01:55] lxsameer: has joined #ruby
[19:03:06] Unicorn|: Is it possible to clear the the information in a window when using the green_shoes gem?
[19:03:13] nixmaniack: has joined #ruby
[19:03:44] Ebok: has joined #ruby
[19:06:57] akem: has joined #ruby
[19:07:21] rdark_mobile: has joined #ruby
[19:07:53] soulisson: Ox0dea, thanks
[19:08:05] rakm: has joined #ruby
[19:08:50] davedev24: has joined #ruby
[19:09:33] Rumbles: damn, that's a shame, that looked promising Ox0dea but required linux => 3.8, and I'm going to have to do this on ubuntu 14.04 machines running kernel 3.19 :(
[19:11:02] soulisson: Ox0dea, quick question why parse! works and not parse?
[19:11:06] Xeago: has joined #ruby
[19:11:31] bdnelson: has joined #ruby
[19:12:01] Ox0dea: soulisson: Both methods are documented pretty clearly.
[19:12:07] Ox0dea: Rumbles: How about seccomp?
[19:12:49] Rumbles: ACTION googles
[19:14:17] soulisson: Ox0dea, parse! and parse are supposed to the same thing, except that parse! removes options from ARGV, at least that's what I understood
[19:15:15] Ox0dea: soulisson: Yes, that's right.
[19:15:32] Xeago: has joined #ruby
[19:15:54] Ox0dea: Debug-print `options` and `ARGV` to get a pretty clear picture of what's happening/
[19:16:10] soulisson: Ox0dea, but in my code when I use parse my options hash table is empty but with parse! it works as expected
[19:16:19] Ox0dea: soulisson: See above.
[19:18:00] jackjackdripper1: has joined #ruby
[19:19:07] zack6849: has joined #ruby
[19:19:07] zack6849: has joined #ruby
[19:19:20] s2013: has joined #ruby
[19:21:28] centrx: has joined #ruby
[19:21:32] jackjackdripper1: has joined #ruby
[19:23:05] djbkd: has joined #ruby
[19:23:19] mikecmpbll: has joined #ruby
[19:24:52] karapetyan: has joined #ruby
[19:25:28] thiagofm: has joined #ruby
[19:26:32] treehug88: has joined #ruby
[19:27:31] cmoneylulz: has joined #ruby
[19:28:11] mikecmpbll: has joined #ruby
[19:29:57] myztic: has joined #ruby
[19:30:09] moeabdol: has joined #ruby
[19:31:10] edj: has joined #ruby
[19:31:35] edj: i dont understand how ruby koans is supposed to help if all im doing is putting varname= whatever
[19:31:56] edj: how is koans supposed to help?
[19:32:32] krz: has joined #ruby
[19:32:57] Jackneill: has joined #ruby
[19:33:02] edj: anyone?
[19:33:06] hxegon: as I understand it, it's forcing you to think through the code.
[19:33:33] hxegon: edj: but I haven't gone through more than 3 so not sure how much that is worth.
[19:33:40] slash_me: edj: it also really helps you with troubleshooting errors in your code... it teaches you how to interpret the common error messages and to use the stacktrace to identify the file and line where the error occurs
[19:33:45] Sou|cutter: if you don't comprehend the code you won't know what to put there
[19:34:04] Sou|cutter: slash_me: that's such a large part of programming, heh
[19:34:50] edj: so its more for entry level?
[19:34:50] Rumbles: has joined #ruby
[19:35:13] edj: I'm more of an advanced beginer
[19:35:17] slash_me: edj: that's what it taught me at least... i.e. "what does undefined method foo for nil:NilClass" mean? (a) you called foo.nil; or (b) you called nil.foo ?
[19:35:37] slash_me: edj: then you should be able to blaze through the koans... no one (afaik) is forcing you to do them
[19:36:06] edj: hi blub
[19:36:26] Sou|cutter: if you aren't finding them of value, try something else
[19:36:47] edj: ill probably go back to reading grounded rubyist
[19:36:59] Ox0dea: Why'd you stop?
[19:37:04] slash_me: btw, these are some good javascript koans: https://github.com/mrdavidlaing/javascript-koans
[19:37:19] Ox0dea: https://changelog.com/a-huge-list-of-koans/
[19:37:25] edj: just to try koans for a bit. i didnt realy stop stop. you know?
[19:38:05] Ox0dea: For what it's worth, the Koans do become something more than setting variables.
[19:38:15] Ox0dea: And pretty quickly too, if memory serves.
[19:38:26] edj: oh ok ill keep going
[19:38:47] juddey: has joined #ruby
[19:39:01] slash_me: edj: if you get bored, here's something current and new to play with: http://adventofcode.com/
[19:39:17] supermarin: has joined #ruby
[19:39:42] edj: oh my god thats so cool
[19:40:31] rakm: has joined #ruby
[19:40:48] bdnelson: has joined #ruby
[19:41:45] NeverDie: has joined #ruby
[19:42:42] elton: has joined #ruby
[19:42:42] AustinMatherne: has joined #ruby
[19:45:02] roshanavand: has joined #ruby
[19:46:08] tjad: has joined #ruby
[19:48:44] ta: has joined #ruby
[19:49:40] Ox0dea: This might be happening: https://gist.github.com/0x0dea/416f982ff025497982ec
[19:49:40] arup_r: has joined #ruby
[19:50:37] Ox0dea: I've written a string library of sorts for LOLCODE, but there's no file inclusion mechanism, so it'd have to be pasted right into each solution, which is noisy.
[19:52:02] iamvery: has joined #ruby
[19:52:52] dlitvak: has joined #ruby
[19:53:46] stannard: has joined #ruby
[19:54:44] nateberkope: has joined #ruby
[19:55:20] nateberkopec: has joined #ruby
[19:55:54] bronson: has joined #ruby
[19:58:02] synthroid: has joined #ruby
[19:58:22] haxrbyte: has joined #ruby
[19:58:47] devbug: has joined #ruby
[19:59:32] synthroid: has joined #ruby
[19:59:42] casadei: has joined #ruby
[20:00:11] duckpuppy: has joined #ruby
[20:02:03] rakm: has joined #ruby
[20:02:03] Uptime: has joined #ruby
[20:03:12] symm-_: has joined #ruby
[20:06:23] lapide_viridi: has joined #ruby
[20:06:27] dorei: has joined #ruby
[20:07:05] Suntzu: has joined #ruby
[20:08:29] djbkd: has joined #ruby
[20:10:06] InvGhostt: has joined #ruby
[20:10:12] rgrmatt: has joined #ruby
[20:10:48] Uptime: has joined #ruby
[20:11:55] rigel_: has joined #ruby
[20:12:29] rigel_: Is there any difference between the methods Dir.getwd and Dir.pwd ?
[20:14:38] ruid: has joined #ruby
[20:14:39] ruid: has joined #ruby
[20:14:39] snockerton: has joined #ruby
[20:14:57] SCHAAP137: has joined #ruby
[20:15:19] BraddPitt: They are the same rigel_
[20:15:31] BraddPitt: Ruby has a tendency to have multiple aliases for the same thing
[20:15:54] Ox0dea: > rb_define_singleton_method(rb_cDir,"pwd", dir_s_getwd, 0);
[20:16:05] Ox0dea: Not *technically* an alias, in this case.
[20:16:12] BraddPitt: Ah, true Ox0dea
[20:16:29] BraddPitt: but at the level of abstraction we're talking about, it may as well be seen as one
[20:16:43] GGMethos: has joined #ruby
[20:18:24] yatish27: has joined #ruby
[20:20:19] Uptime: has joined #ruby
[20:20:50] n_blownapart: has joined #ruby
[20:22:11] hostess: has joined #ruby
[20:23:32] symm-: has joined #ruby
[20:26:21] thiagofm: has joined #ruby
[20:26:26] Xiti: has joined #ruby
[20:26:39] ixti: has joined #ruby
[20:27:23] atomical: has joined #ruby
[20:27:44] podman: has joined #ruby
[20:28:09] lukeasrodgers: has joined #ruby
[20:29:25] yuung: has joined #ruby
[20:31:13] PlasmaStar: has joined #ruby
[20:33:19] nateberkopec: has joined #ruby
[20:35:26] yfeldblum: has joined #ruby
[20:35:32] Ox0dea: has joined #ruby
[20:35:52] mikecmpbll: has joined #ruby
[20:36:21] wpp: has joined #ruby
[20:38:52] NeverDie: has joined #ruby
[20:39:17] circ-user-mgcmJ: has joined #ruby
[20:39:22] jscheel: has joined #ruby
[20:42:35] ic2000: has joined #ruby
[20:42:57] ic2000: out of interest is ruby faster than python when clearing the terminal or is there no difference
[20:43:06] eam: no difference
[20:43:20] Musashi007: has joined #ruby
[20:43:27] atomical_: has joined #ruby
[20:43:29] elton: has joined #ruby
[20:44:11] casadei: has joined #ruby
[20:44:53] mikecmpbll: has joined #ruby
[20:45:34] Ox0dea: ic2000: Are you clearing the terminal so frequently that it matters?
[20:45:57] ic2000: Ox0dea, yeah a lot
[20:46:16] ic2000: Ox0dea, for a roguelike/terminal game "engine" i was making in python, but flickers like mad
[20:46:27] Ox0dea: ic2000: That's because your draw logic sucks. :<
[20:46:46] Ox0dea: "Only draw what you have to" and clearing is basically a very costly draw.
[20:46:58] RobertBirnie: has joined #ruby
[20:47:13] ic2000: Ox0dea: draw logic is fine, but u need to clear the terminal so it gives an illusion that it's moving
[20:47:21] Ox0dea: ic2000: See above.
[20:47:22] ic2000: Ox0dea, if i take off the clear command it's lightning fast
[20:47:28] tubbo: ic2000: clearly not, since you're flickering.
[20:47:43] tubbo: i was using cairo the last time i had to animate stuff in ruby. made an overlay engine that drew a ticker on the screen
[20:47:50] Ox0dea: ic2000: Does every single character cell need to change between draws?
[20:47:53] tubbo: biggest problem we had was garbage collection. thank god for ruby 2.2...it saved our ass.
[20:48:02] ic2000: tubbo, because of the clear, i did profiling on it and it was the clear function took up all the time
[20:48:15] yuung: i'm working on a class that works with matrices, how can i call the [] operator from within a class function?
[20:48:20] ic2000: Ox0dea, depends on how the person uses it
[20:48:30] Ox0dea: ic2000: Then you're drawing too much.
[20:48:44] sandstrom: has joined #ruby
[20:48:52] tubbo: ic2000: yeah basically...for our problem, the clear would *sometimes* cause a major spike in memory and lag/memory. we realized quickly that it was actually doing a GC sweep when that happened. so we basically figured out a way to "trigger" GC so that it would do that when *we* wanted it to, not when Ruby deemed it necessary
[20:48:59] Ox0dea: Your draw logic will become significantly more complex, mind, but it's probably worth it.
[20:49:05] tubbo: we did this: Array.new(2040), randomly within the code in the main event loop
[20:49:10] yos7ph: has joined #ruby
[20:49:28] Ox0dea: yuung: Could you clarify?
[20:49:34] havenwood: yuung: Can you Gist an example of what you're wanting?
[20:49:35] pwnd_nsfw: has joined #ruby
[20:49:58] yuung: 0x0dea, havenwood, sure - one sec
[20:50:03] ic2000: Ox0dea, https://bpaste.net/show/d06eb2feb194 <-- could ruby do it better?
[20:50:14] ic2000: or is it my logic that's ba
[20:50:29] yuung: 0x0dea, havenwood, wait nevermind, got it
[20:50:32] yuung: 0x0dea, havenwood, thanks
[20:50:36] Ox0dea: ic2000: As we've established, your logic is bad.
[20:50:42] ic2000: Ox0dea, what about it
[20:51:19] Ox0dea: Clearing before every draw is the easy way, and you're getting what you're paying for.
[20:51:32] ic2000: Ox0dea, ignore line 2 and 22 i was testing something
[20:52:04] mikecmpbll: has joined #ruby
[20:52:19] ic2000: Ox0dea, that's the persons fault then. they can use it how they like, but if they wanna redraw they call the function
[20:52:21] duckpuppy: has joined #ruby
[20:52:23] Ox0dea: To be frank, I ignored the whole thing, because the problem is that you're not taking advantage of the features available to you for doing terminal graphics.
[20:52:37] ic2000: Ox0dea, what features are these
[20:52:54] Ox0dea: You can position the cursor anywhere you like, for starters.
[20:53:29] ic2000: Ox0dea hmm why would cursor effect anything?
[20:53:39] Ox0dea: Ideally, you'd keep a simple diff between transitions, and only update the cells which have changed.
[20:54:17] ic2000: Ox0dea, how do u only update cells which have changed without updating the whole thing?
[20:54:27] Ox0dea: By moving the cursor...
[20:54:36] ic2000: Ox0dea, u can't just clear one character and reprint it, though i wish it was possible. wait what?
[20:54:44] Ox0dea: Yes, you can.
[20:54:51] ic2000: Ox0dea, by cursor do u mean the _ thing
[20:54:54] ic2000: has left #ruby: ("Leaving")
[20:54:59] ic2000: has joined #ruby
[20:55:17] supermarin: has joined #ruby
[20:55:26] Ox0dea: ic2000: $ echo -e "\e[10;10Hfoo"
[20:55:35] Ox0dea: Run that for enlightenment.
[20:55:42] ic2000: Ox0dea, is this linux only
[20:56:07] Ox0dea: No, but it's terminal emulator-dependent.
[20:56:15] bdnelson: has joined #ruby
[20:56:27] brunto: has joined #ruby
[20:56:37] failshell: has joined #ruby
[20:56:40] Ox0dea: I'm sure cmd.exe provides a means for moving the cursor.
[20:57:03] ic2000: Ox0dea, i'm guessing it wasn't meant to do this? http://prntscr.com/9ae2u0
[20:57:36] Ox0dea: Indeed not. :<
[20:57:39] dlitvak: has joined #ruby
[20:57:53] Ox0dea: It moves the cursor to Row 10, Col 10 before printing.
[20:58:07] Ox0dea: On any respectable terminal, anyway. :P
[20:58:13] tomchapin: has joined #ruby
[20:58:23] ic2000: Ox0dea, but u have indeed interested me, gives me hope to continue. but i'm guessing it wont work on windows -_-
[20:59:06] s2013: has joined #ruby
[20:59:58] Dimik: has joined #ruby
[21:00:48] Ox0dea: ic2000: I'm pretty sure this click library isn't intended to be used to make console-based games.
[21:00:59] Exuma: has joined #ruby
[21:01:02] Ox0dea: It's for menus and the like.
[21:01:31] ic2000: Ox0dea, some python guy told me to use it instead of os.system("cls") or "clear?? or
[21:01:52] Ox0dea: You installed a module to clear the terminal?
[21:02:06] ic2000: Ox0dea, and print colored text
[21:02:13] rigel_: has joined #ruby
[21:02:30] Ox0dea: Oh, is this a text-based game engine, then?
[21:02:53] ic2000: Ox0dea, yeah well i intended it to be but we have already established it's shit lol
[21:03:12] wnd: it is also worth nothing that without an absolute path you might end up using shell's built-in echo, which might behave differently from gnu echo(1) or something else you're expecting
[21:03:34] ic2000: was hoping to port it to ruby if ruby was better
[21:03:40] Ox0dea: wnd: It's quite clear Windows was the problem in this case.
[21:03:50] wnd: Ox0dea, yes, it is
[21:04:26] wnd: there's "curses" gem if that's an option in windows
[21:04:39] Ox0dea: ic2000: "Text-based" means "just menus", more or less; does that description apply to your thing?
[21:05:03] Ox0dea: Or is there a hero to move about with the arrow keys?
[21:05:14] ic2000: Ox0dea, oh no then, i meant texted based graphics
[21:05:28] Ox0dea: Right, then you probably want ncurses.
[21:05:36] ic2000: Ox0dea, http://journal.stuffwithstuff.com/image/2010/06/amaranth.png
[21:05:38] Ox0dea: There is indeed a Ruby binding.
[21:05:46] ic2000: Ox0dea, for windows?
[21:06:14] ic2000: Ox0dea, hmm, out of interest how does curses do it better?
[21:06:20] wnd: I can't say I'd recommend ncurses (at least the gem I've been using), but it does what it's supposed to do
[21:08:08] nixmaniack: has joined #ruby
[21:08:18] Ox0dea: ic2000: : Well, it's just a thin skin over libncurses (the cause of wnd's pain), but it provides a nice enough layer of abstraction over dealing with terminal inconsistencies.
[21:08:45] Ox0dea: There's a pure Ruby thing with a much more idiomatic API that I can never remember the name of.
[21:08:47] ic2000: Ox0dea, would it make more sense to just use normal graphics
[21:08:49] wnd: my interpretation would be that it takes care of controlling the terminal, including writing to given coordinates, reading keyboard and even windowing, to a degree
[21:08:57] Ox0dea: ic2000: A GUI, do you mean?
[21:09:03] ic2000: Ox0dea, yeah
[21:09:24] Ox0dea: ic2000: That's your prerogative; are you not going for a certain aesthetic?
[21:09:36] ic2000: Ox0dea, i wanted to do a terminal one because i thought it'd be easier but if i have to learn a library might aswell do gui
[21:09:46] ic2000: Ox0dea, not really, gui would look much better
[21:10:43] Uranio: has joined #ruby
[21:10:49] alexherbo2: has joined #ruby
[21:11:23] Insti: has joined #ruby
[21:11:45] Insti: Is there a better way to do this: array.map{|e|e.empty? ? nil : e}
[21:12:22] cdg: has joined #ruby
[21:12:49] cdg: has joined #ruby
[21:13:01] xcesariox: has joined #ruby
[21:14:07] ur5us: has joined #ruby
[21:15:51] jhass: Insti: why do you do this?
[21:15:57] Insti: note the nil might be a different value.
[21:16:20] centrx: This is an array of arrays?
[21:16:23] jhass: there might be a better solution to what you're actually doing, but for that abstracted fake example, no
[21:16:36] Insti: yes it's an array of arrays.
[21:16:39] Insti: in this case
[21:16:57] Insti: I think I was wondering about the general case.
[21:17:01] sucks: has joined #ruby
[21:17:21] Insti: I guess I want to replace values that match.
[21:17:37] jhass: it's not a pattern that feels common to me, so I'm not convinced you need it at all ;)
[21:17:51] hxegon: Insti: I mean you could make a function that returns e or nil for input and array.map(&:func)
[21:18:18] hxegon: Insti: might make it a bit clearer to have it named seperately
[21:18:20] Insti: hxegon, that feels better
[21:19:05] Ox0dea: ic2000: You say that as if libraries are equally easy to learn/pleasant to use, which is scarcely the case.
[21:19:05] hxegon: Insti: glad I could help
[21:19:22] ic2000: Ox0dea, ofc not
[21:19:45] ic2000: Ox0dea, but if i'm gonna learn something might aaswel try and learn the better one
[21:19:59] Ox0dea: ic2000: For some definition of
[21:20:05] Ox0dea: "better", mind.
[21:20:16] hxegon: yeah. more well maintained? better docs? etc.
[21:20:24] ic2000: Ox0dea, what i deem as better for what i'm doing
[21:20:30] hxegon: urg... 'more well'. wtf brain
[21:20:51] Ox0dea: hxegon: A well-placed hyphen would've fixed that right up. :P
[21:21:20] hxegon: Ox0dea: I never took hyphens to-heart
[21:21:25] Ox0dea: I see that.
[21:22:04] Xeago: has joined #ruby
[21:22:42] Ox0dea: ic2000: I'm of the opinion that something is lost in sticking "graphics" onto things like NetHack and Dwarf Fortress.
[21:22:56] hxegon: Ox0dea: same here.
[21:23:07] ic2000: Ox0dea, sorry i don't get what u mean
[21:23:09] hxegon: has anyone here actually ascended?
[21:23:17] Ox0dea: I've not. :<
[21:23:26] Ox0dea: I ascended in KoL!
[21:23:38] hxegon: King Of Limbs?
[21:23:45] Ox0dea: Kingdom of Loathing.
[21:23:51] rakm: has joined #ruby
[21:23:53] Ox0dea: This would
[21:24:00] Ox0dea: have been almost a decade ago now.
[21:24:25] Ox0dea: Still actively developed, as best I can tell.
[21:24:38] hxegon: Ox0dea: never heard of this... how would you compare difficulty?
[21:24:39] eam: kol is still a thing?
[21:24:50] wpp: has joined #ruby
[21:25:04] Ox0dea: hxegon: Lots of grinding, only a few genuinely difficult puzzles.
[21:25:48] Ox0dea: ic2000: NetHack and Dwarf Fortress are the two most popular terminal-based games.
[21:26:14] Ox0dea: They get along just fine with what the terminal gives them, but efforts have been made to make them "prettier".
[21:26:27] hxegon: ic2000: also insanely difficult. I would probably quit videogames if I ascended (won) in nethack because you can only go downhill from there.
[21:26:33] symm-_: has joined #ruby
[21:26:51] ascarter: has joined #ruby
[21:26:57] Ox0dea: DF isn't "difficult", per se, it's just remarkably complex.
[21:27:04] hxegon: Ox0dea: 'genuinely difficult'... Sokobahn is some BS.
[21:27:55] Ox0dea: hxegon: Well, had you never encountered Sokoban before NH?
[21:28:11] hxegon: Ox0dea: I encounter it all the time, that's the problem.
[21:28:52] hxegon: Ox0dea: first few times its fun, but after a while, getting punished so hard (being denied AOR or bag of holding) for potentially one mistype is WAAAY to severe.
[21:29:18] opitka: has joined #ruby
[21:29:30] hxegon: I've memorized every puzzle and I still have a success rate of about 1/3 because I mistype all the time
[21:29:32] Ox0dea: Yeah, it's pretty harsh; I thought you were referring to Sokoban puzzles in general.
[21:30:45] circ-user-mgcmJ: has joined #ruby
[21:31:37] jjwright_: has joined #ruby
[21:32:13] yaewa: has joined #ruby
[21:32:21] stan_man_can: has joined #ruby
[21:32:21] hxegon: I like sokoban puzzles, but it's not really a puzzle if you've done it 60 times.
[21:32:37] jjwright_: What is the term for adding a method to a built in class?
[21:32:47] hxegon: jjwright_: monkey patch
[21:32:56] Ox0dea: jjwright_: Augmenting, thank you very much.
[21:33:11] jjwright_: hxegon: Yep, monkey patch, just couldn't think of it.
[21:33:33] Ox0dea: I prefer "freedom patching".
[21:34:24] adaedra: Are we making Ruby great again?
[21:34:29] stan_man_can: Hey all. New to ruby. I wrote a little script to auto-email me the IP address of a machine when it turns on. I run the script via a cronjob (@reboot) Here???s the script: https://gist.github.com/anonymous/4beab96259b7fcd9455f
[21:35:02] stan_man_can: Without that sleep at the begining, I get https://gist.github.com/anonymous/7ba9c7accca11c142f94
[21:35:42] hxegon: stan_man_can: is that a semi-colon at the end of line 20?
[21:36:03] adaedra: stan_man_can: your script surely runs before the network layer is initialized. A better idea, rahter than cron job, would be to use your init system to run it, here you can add a dependency on network.
[21:36:04] stan_man_can: Is that because CRON is running the script before parts of the system are ready??
[21:36:17] stan_man_can: hxegon: HA, it is, oops??? I come from PHP
[21:36:21] Ox0dea: jjwright_, hxegon, adaedra: http://i.imgur.com/Ow77qH5.png
[21:36:44] Ox0dea: "They hate us for our freedoms."
[21:37:06] Ox0dea: Alternatively, 'cause they anus.
[21:37:17] stan_man_can: adaedra: Ah, alright. I don???t really mind it taking an extra 30 seconds, I was just confirming that???s why it was happening
[21:37:33] hxegon: If you don't overwrite #to_s, the terrorists win jjwright_
[21:37:45] Ox0dea: jjwright_: Think of the children!
[21:38:07] adaedra: stan_man_can: what system are you under?
[21:38:20] stan_man_can: adaedra: This is running on my Raspbian, so, debian
[21:38:37] adaedra: stan_man_can: version?
[21:38:42] stan_man_can: er, on my rasperry pi running raspbian
[21:38:52] colegatron: has joined #ruby
[21:39:18] stan_man_can: adaedra: looks like 7.8
[21:39:19] hxegon: stan_man_can: also, is there a reason you are using string hash keys for the Net::HTTP options?
[21:39:28] cantaberry: has joined #ruby
[21:39:35] nofxx: question is, systemd or init.d stan_man_can
[21:39:38] hxegon: stan_man_can: not rhetorical, I've never used that so I don't know
[21:39:43] nofxx: so add a script for that
[21:39:48] stan_man_can: nofxx: init.d
[21:40:14] stan_man_can: hxegon: I literally have no idea what I???m doing, so that would be why
[21:40:22] stan_man_can: Not sure if it???s the right way or not, but it works?
[21:40:33] FooMunki: has joined #ruby
[21:41:36] mallu: has joined #ruby
[21:41:53] stan_man_can: hxegon: post_form(url, params)
[21:41:53] stan_man_can: Posts HTML form data to the specified URI object. The form data must be provided as a Hash mapping from String to String. Example:
[21:42:27] stan_man_can: So looks like I did it correctly
[21:42:51] chridal: has joined #ruby
[21:42:53] patdohere: has joined #ruby
[21:43:26] s2013: has joined #ruby
[21:44:05] gix: has joined #ruby
[21:44:09] SirCmpwn: has joined #ruby
[21:44:22] elton: has joined #ruby
[21:47:08] user1138: has joined #ruby
[21:48:03] devster31: has joined #ruby
[21:48:53] devster31: hi, I'm having trouble understanding this line: str.chars.each_slice(2).map(&:join) in particular the &:join in the last map function
[21:49:05] symm-: has joined #ruby
[21:49:11] devster31: as far as I can understand it for every 2 chars in a string it does the map stuff
[21:49:30] shevy: this is like .map {|entry| entry.join }
[21:49:50] Pupeno: has joined #ruby
[21:49:58] devster31: oh, now I get it
[21:51:29] duckpuppy: has joined #ruby
[21:53:29] patdohere: has joined #ruby
[21:53:37] devster31: where can I find the reference
[21:54:17] Ox0dea: devster31: That's Symbol#to_proc.
[21:54:30] Ox0dea: >> class Symbol; def to_proc; -> o { o.send self } end end; [1,2,3].map(&:succ)
[21:54:31] ruboto: Ox0dea # => [2, 3, 4] (https://eval.in/480599)
[21:55:22] Ox0dea: I suppose I should've changed the implementation to better demonstrate what's going on.
[21:56:36] Ox0dea: You can define #to_proc on anything, and as long as it actually returns a Proc, `&foo` will essentially use the result as if it had been passed as a block.
[21:57:17] cmoneylulz: has joined #ruby
[21:57:34] Ox0dea: >> a = []; def a.to_proc; -> _ { 42 } end; [1,2,3].map(&a)
[21:57:35] ruboto: Ox0dea # => [42, 42, 42] (https://eval.in/480601)
[22:02:45] duncannz: has joined #ruby
[22:02:46] axl__: has joined #ruby
[22:04:14] sharkman: has joined #ruby
[22:04:30] sharkman: how do i do matrixes in ruby
[22:05:16] s00pcan: has joined #ruby
[22:05:33] sharkman: is ruby like the worst language there is for doing linear algebra
[22:05:40] n_blownapart: has joined #ruby
[22:06:01] devster31: thanks Ox0dea I think I'll spend the rest of the evening trying to understand it all, I'm trying to do the adventofcode challenges while learning ruby, I figured it would be a good opportunity
[22:06:31] Ox0dea: devster31: Nice! Where'd you find a use case for #each_slice in AoC?
[22:07:51] devster31: I didn't, I was trying everything to split even characters in the day3 part2 challenge, I don't think it's the way to go though
[22:08:44] Ox0dea: I mean, it's one way?
[22:09:04] sucks: has joined #ruby
[22:10:44] jottr: has joined #ruby
[22:11:37] rgrmatt: has joined #ruby
[22:12:17] Ox0dea: devster31: Can you think of a way to do it wihtout explicitly separating Santa's path from Robo-Santa's?
[22:13:53] Ox0dea: sharkman: Start by pluralizing the word correctly. :P
[22:14:13] Ox0dea: Keep calm and require 'matrix'.
[22:14:20] sharkman: sorry, i was wondering about matrixez in ruby
[22:14:37] sharkman: i just switched to R already. seems like ruby has so little support for the maths
[22:15:17] soulisson: I need some advice, lets say I have a bunch of statements, and one statement in the middle throws an exception, should I put all the statements in begin or only the unsafe one, or it doesn't matter
[22:15:32] Ox0dea: Just the unsafe one.
[22:15:44] jbrhbr: has joined #ruby
[22:15:54] devster31: mh, not yet, but I'll try now that you told me
[22:16:03] Ox0dea: soulisson: For clarity of intent, if nothing else, but it'll also be slightly more performant.
[22:16:30] maloik: has joined #ruby
[22:16:39] soulisson: Ox0dea, ok, thanks
[22:16:46] Ox0dea: devster31: Well, look at it this way: you've got two X coordinates, two Ys, and two travelers whom you might label 0 and 1. :)
[22:18:20] Rumbles: has joined #ruby
[22:18:45] DexterLB: has joined #ruby
[22:19:20] banister: has joined #ruby
[22:19:44] mallu: join #artifactory
[22:20:00] shevy: mallu show us all the secret stuff!
[22:20:29] th_masv: has joined #ruby
[22:20:39] mallu: shevy: sure
[22:20:52] Ox0dea: secret: Show us all the twistedpixels.
[22:21:32] dhollinger: has joined #ruby
[22:21:54] blub: hi ox0dea
[22:23:59] ItSANgo: has joined #ruby
[22:24:37] yeticry_: has joined #ruby
[22:25:47] Trynemjoel: has joined #ruby
[22:26:37] Paul-Programmer: has joined #ruby
[22:26:40] Paul-Programmer: FREE PAYPAL MONEY HERE http://tinyurl.com/zkz8gwl
[22:28:43] stan_man_can: what? free money? i???m in.
[22:29:06] dravine: has joined #ruby
[22:29:11] Ox0dea: blub: You lost your generational.
[22:31:19] ruboto: +q Paul-Programmer!*@*
[22:31:19] ruboto: -o ruboto
[22:31:19] havenwood: !kick Paul-Programmer no spam
[22:31:20] ruboto: ruboto kicked Paul-Programmer: spam
[22:31:20] ruboto: -o ruboto
[22:32:03] bkxd: has joined #ruby
[22:32:55] sharkman: has joined #ruby
[22:33:58] shanemcd: has joined #ruby
[22:35:16] artX000: has joined #ruby
[22:36:10] patdohere: has joined #ruby
[22:36:53] ledestin: has joined #ruby
[22:37:09] TheNet: has joined #ruby
[22:38:37] solenoids: has joined #ruby
[22:40:17] soulisson: has joined #ruby
[22:40:39] mary5030: has joined #ruby
[22:42:51] s00pcan: has joined #ruby
[22:45:45] shanemcd: has joined #ruby
[22:46:33] shanemcd: has joined #ruby
[22:46:43] atomical: has joined #ruby
[22:46:52] nixmaniack: has joined #ruby
[22:47:05] petricore: has joined #ruby
[22:47:56] last_staff: has joined #ruby
[22:48:50] paradisaeidae: has joined #ruby
[22:50:18] jbrhbr: hey folks, i'm trying to make sense of the Turbolinks docs. can i use this for single-page apps?
[22:50:56] jbrhbr: like to have a dynamically updated view of the records for some model
[22:52:13] skweek: has joined #ruby
[22:52:51] jbrhbr: i mean to ask that in rails, sorry
[22:53:43] Trynemjoel: has joined #ruby
[22:55:14] Cohedrin: has joined #ruby
[22:58:50] escuzo: has left #ruby: ()
[22:58:57] escuzo: has joined #ruby
[22:59:26] jottr: has joined #ruby
[22:59:53] Pupeno: has joined #ruby
[22:59:54] Pupeno: has joined #ruby
[23:00:33] tercenya: has joined #ruby
[23:00:50] devster31: nope, can't do it without splitting the strings, also my solution is awful, like painful to look at
[23:01:38] havenwood: devster31: Want any suggestions for how to improve your solution? Link?
[23:02:10] supermar_: has joined #ruby
[23:02:43] Synthead: has joined #ruby
[23:03:44] devster31: 0dea suggested something without explicitly splitting the strings, I have this: https://gist.github.com/devster31/4553990226d3369a0e1c , I just started so it's incredibly basic, I suppose I could create a function or even a class for the case statements
[23:04:02] devster31: day3 I'm referring to
[23:04:49] ta: has joined #ruby
[23:06:35] ta: has joined #ruby
[23:07:29] moei: has joined #ruby
[23:07:51] chinkytime: has joined #ruby
[23:08:12] Renich: has joined #ruby
[23:09:52] Jet4Fire: has joined #ruby
[23:10:49] Ox0dea: devster31: There should be a lot more happening in that #each_with_index block. :)
[23:10:59] bdnelson: has joined #ruby
[23:11:13] lapide_viridi: has joined #ruby
[23:11:27] Ox0dea: `i % 2` will tell you who's traveling.
[23:12:14] supermarin: has joined #ruby
[23:13:37] snath: has joined #ruby
[23:14:29] hamstersky: has joined #ruby
[23:14:59] simplyianm: has joined #ruby
[23:17:29] duckpuppy: has joined #ruby
[23:17:55] snath: has left #ruby: ()
[23:19:14] supermarin: has joined #ruby
[23:19:27] Jet4Fire: has joined #ruby
[23:19:35] SHyx0rmZ: has joined #ruby
[23:19:42] chinkytime: NIGGER LOVE A WATERMELON! HA! HA! HA!
[23:20:41] Ox0dea: "Don't ban me, bro. It's just lyrics."
[23:20:53] chinkytime: it's a cool song
[23:21:30] skade: has joined #ruby
[23:21:54] failshell: has joined #ruby
[23:22:02] chinkytime: http://nig.gr/BEA
[23:22:51] ruboto: fflush, apeiros, banisterfiend, seanstickle, zzak, Mon_Ouie, Radar, jhass, Havenn, Coraline, sevenseacat, miah, workmad3, drbrain, Aria, rubyhacker1, slyphon, ljarvis, baweaver, Adaedra, zenspider
[23:23:24] Ox0dea: devster31: Would you like to see my solution?
[23:24:19] skade: has joined #ruby
[23:24:56] devster31: yes, thanks, but I understand what you're saying about index showing you who's travelling, I should be able to make a path inside the each_with_index block
[23:25:40] Ox0dea: Hm? The paths are already there, you just need to be able to say who's travelling.
[23:26:12] jhass: !ban chinkytime !T 1w you're not welcome here
[23:26:16] ChanServ: +b chinkytime!*@*
[23:26:16] ChanServ: ChanServ kicked chinkytime: you're not welcome here
[23:26:46] skade: has joined #ruby
[23:26:52] Ox0dea: devster31: House visitation can (and should) be tracked in the same structure; you just need to maintain two separate coordinate pairs.
[23:27:10] shanemcd: has joined #ruby
[23:27:13] yfeldblum: has joined #ruby
[23:27:50] Ox0dea: Tis the season and all that, though, so here ya go: https://eval.in/480639
[23:29:56] Jet4Fire: has joined #ruby
[23:31:46] ljarvis: I'm too late
[23:31:57] ljarvis: I'm always too late
[23:32:01] ljarvis: *takes cape off*
[23:32:36] B1n4r10: has joined #ruby
[23:36:12] s2013: has joined #ruby
[23:38:55] sdothum: has joined #ruby
[23:39:57] Jet4Fire: has joined #ruby
[23:43:01] jpfuentes2: has joined #ruby
[23:43:40] devster31: Ox0dea xs[0],ys[0] and xs[1],ys[1] are the two sets of coordinates for the santas? took me a while to figure that out, the xs, ys assignment fooled me
[23:44:01] Ox0dea: devster31: That's right.
[23:45:44] davedev24: has joined #ruby
[23:45:53] Ox0dea: `a, b = 1, 2` == `a = 1; b = 2`, and you'll see it pretty often.
[23:47:19] lkba: has joined #ruby
[23:49:21] Jet4Fire: has joined #ruby
[23:49:26] Ox0dea: Another funny-looking aspect of my solution is the `[[` ... `]]`; Arrays aren't used as Hash keys too terribly often, but it's just the thing this time.
[23:52:27] TheNet: has joined #ruby
[23:52:47] dlitvak: has joined #ruby
[23:53:10] skade: has joined #ruby
[23:53:58] skweek: has joined #ruby
[23:54:18] blackmesa: has joined #ruby
[23:54:22] rideh: has joined #ruby
[23:58:08] Radar: GOOD MORNING
[23:59:01] elton: has joined #ruby
[23:59:13] Jet4Fire: has joined #ruby
[23:59:58] paradisaeidae: has joined #ruby