« Back to channel list

#ruby - 13 April 2016

« Back 1 day Forward 1 day »
[00:00:36] Polysics: has joined #ruby
[00:01:16] johnmilton: has joined #ruby
[00:01:18] SFPT: So that's supposed to be an IRC log bot.
[00:01:30] benzrf: sorry SFPT let me look now
[00:04:55] benzrf: SFPT: does that not work?
[00:05:10] Waqas: has joined #ruby
[00:05:19] benzrf: (btw: usually a bad idea to keep opening and closing the file each time - instead, consider holding onto a file handle for each channel you're in, opening when you join and closing when you part)
[00:06:39] skweek: has joined #ruby
[00:07:53] SFPT: It does work, I do believe.
[00:08:00] benzrf: SFPT: then what are you asking about?
[00:08:11] SFPT: I need help figuring out how toconnect it to IRC.
[00:08:14] najam: has joined #ruby
[00:08:22] agentmeerkat: has joined #ruby
[00:09:07] benzrf: oh, i see
[00:09:24] tildes: has joined #ruby
[00:09:28] SFPT: I simply dont know how.
[00:09:39] benzrf: you mean, you don't know how to run a ruby file?
[00:09:52] SFPT: I learned ruby from a friend
[00:09:59] SFPT: I just downloaded ruby
[00:10:11] benzrf: have you used any other languages before?
[00:10:17] ensyde: has joined #ruby
[00:10:40] benzrf: well, have you tried just running 'ruby script.rb'?
[00:10:42] SFPT: C, TI-Basic, TI-Asm, visual basic for applications, python
[00:10:53] SFPT: What do you mean?
[00:10:59] SFPT: Just double click it
[00:11:08] benzrf: well... how do you run python files?
[00:11:43] SFPT: I go into the shell
[00:11:47] SFPT: opn the file
[00:11:58] benzrf: which shell
[00:12:09] benzrf: do you mean like bash, or?
[00:12:18] SFPT: just the python shell
[00:12:33] benzrf: then what do you mean by 'open the file'?
[00:12:41] SFPT: I got into file, then open
[00:12:49] benzrf: do you mean IDLE?
[00:12:49] jdawgaz: has joined #ruby
[00:13:09] benzrf: most people don't call that a shell
[00:13:18] benzrf: i don't use windows
[00:13:22] benzrf: i assume you're on windows?
[00:13:41] benzrf: well, you could try opening a command prompt and then using the 'ruby' command
[00:13:49] benzrf: but i don't know anything about using ruby on windows
[00:13:58] SFPT: just, the normal command prompt or a special ruby thing?
[00:14:03] benzrf: normal one :)
[00:14:17] benzrf: pass the ruby command a file path for the script you want to run
[00:14:24] benzrf: you'll probably need to install the isaac gem, though
[00:14:36] SFPT: I already have isaac
[00:14:46] karmatr0n: has joined #ruby
[00:15:12] SFPT: notise the code requires isaac gem
[00:15:40] benzrf: you installed isaac?
[00:16:31] cjbischof_: has joined #ruby
[00:18:57] tsherman: has joined #ruby
[00:19:40] SFPT: so...do I need to use the cd or dir commands?
[00:19:54] SFPT: I just have the .rb file on my desktop
[00:23:14] benzrf: SFPT: just pass the ruby command the path to the script
[00:24:20] pawnbox: has joined #ruby
[00:24:47] helpa: has joined #ruby
[00:25:27] SFPT: so Desktop\logbotpop ?
[00:25:52] william3: has joined #ruby
[00:27:45] rkazak: has joined #ruby
[00:30:59] dopie: has joined #ruby
[00:32:16] SFPT: I get the reply:
[00:32:56] SFPT: ruby: No such file or directory -- C:\Users\SFOT\Desktop\logbotpop
[00:32:59] lyoshajapan: has joined #ruby
[00:34:39] SFPT: Oh wait, I put in .rb and I get a different error
[00:34:44] BtcBen: has joined #ruby
[00:35:18] SFPT: says it cannot load the file isaac
[00:35:29] SFPT: gives a path
[00:35:42] SFPT: but its not where isaac is, the isaac master folder is on my desktop
[00:35:46] cjbischof_: has joined #ruby
[00:35:52] SFPT: should I put the folder in the path it gives me?
[00:36:24] bronson: has joined #ruby
[00:37:02] cjbischof_: has joined #ruby
[00:37:19] lyoshajapan: has joined #ruby
[00:37:53] lyoshajapan: has joined #ruby
[00:38:30] ogpastaling: has joined #ruby
[00:40:41] jpfuentes2: has joined #ruby
[00:41:31] bob434: has joined #ruby
[00:44:19] agentmeerkat: has joined #ruby
[00:46:28] Brackson: has joined #ruby
[00:49:45] aaeron: has joined #ruby
[00:49:51] Brackson: Can I start a Sinatra server in my script in a different thread w/ no STDOUT?
[00:51:10] elifoster: has joined #ruby
[00:51:22] SFPT: I still can' figure it out.
[00:51:53] shevy: come to linux!
[00:51:56] SFPT: So m program requires isaac, but when I try to run it from the command prompt it tells me that isaac isnt there
[00:52:10] Brackson: are you sure it's installed?
[00:52:31] SFPT: I installed it bnefore ruby tho
[00:52:56] charliesome: has joined #ruby
[00:53:23] shevy: "gem list" shows isaac too?
[00:53:43] SFPT: gem list?
[00:54:13] pawnbox: has joined #ruby
[00:54:29] shevy: yeah on the commandline; also have a look at "gem env" output to see the paths it will use
[00:56:01] SFPT: Oh, gotta go!
[00:59:18] ekinmur: has joined #ruby
[00:59:21] blackoperat: has joined #ruby
[00:59:59] najam: has joined #ruby
[01:00:29] Vile`: has joined #ruby
[01:01:26] blackoperat: has left #ruby: ()
[01:02:57] cjbottaro: has joined #ruby
[01:04:10] flashpoint9: has joined #ruby
[01:04:16] krz: has joined #ruby
[01:06:38] IrishGringo: has joined #ruby
[01:07:46] mdih: has joined #ruby
[01:09:10] johnmilton: has joined #ruby
[01:09:25] goglosh: has joined #ruby
[01:11:50] chancy: has joined #ruby
[01:12:09] monod: has joined #ruby
[01:12:34] chancy: How could `Hash#dig!` be implemented? I.e., the equivalent of nested #fetch's instead of nested #[]'s
[01:13:24] abyx: has joined #ruby
[01:15:39] jdawgaz: has joined #ruby
[01:15:53] karmatr0n: has joined #ruby
[01:16:25] Jameser: has joined #ruby
[01:18:32] monod: helloo, is anybody here willing to talk a lil about anonymous functions?
[01:20:51] havenwood: monod: yup!
[01:21:08] monod: specifically, I wanted to write a function that receives as arguments another function along with this other function's arguments
[01:21:13] monod: and wanted to compute which argument of the other function yields the maximum value of this other function!
[01:21:23] monod: (in Matlab, but whatever! It's the concept that matters)
[01:21:33] shevy: chancy lots of ways right? just begin/rescue ... or check for key being part of the hash or not
[01:22:53] eljimador: has joined #ruby
[01:23:00] shevy: in C it is return rb_obj_dig(argc, argv, self, Qnil); which is https://github.com/koic/backport_dig/blob/master/ext/backport_dig/backport_dig.c#L42
[01:23:25] bkxd: has joined #ruby
[01:23:50] abyx: has joined #ruby
[01:24:02] goglosh: hey, say I have a class Foo with it's own state
[01:24:02] pawnbox: has joined #ruby
[01:24:23] goglosh: and I take one of it's methods and make it a Proc
[01:24:37] goglosh: like Foo.method(:bar).to_proc
[01:24:54] Radar: and then/
[01:25:03] goglosh: does the result copy the state of Foo which it uses inside it?
[01:25:12] Radar: What state is there?
[01:25:26] goglosh: instance variables and such
[01:25:46] Radar: The state will be available in that method, sure.
[01:25:58] goglosh: but, it's a copy, right?
[01:26:33] Radar: I don't think it is a copy.
[01:26:41] Radar: I would need to reproduce it, but I don't have the code to do that.
[01:27:39] goglosh: I'll play with it see what happens
[01:29:36] vakka: has joined #ruby
[01:29:37] sphex: has joined #ruby
[01:30:54] idletask: has joined #ruby
[01:33:56] Ox0dea: monod: https://eval.in/552485
[01:34:35] mr_robot_: has joined #ruby
[01:35:19] Ox0dea: I had to give them names so we could tell who won, but they're still "anonymous".
[01:36:42] jdawgaz: has joined #ruby
[01:37:01] cybrside: has joined #ruby
[01:37:19] bronson: has joined #ruby
[01:38:50] Emmanuel_Chanel: has joined #ruby
[01:40:26] abyx: has joined #ruby
[01:44:16] sgambino: has joined #ruby
[01:47:34] Brackson: Is there any way to start Sinatra in the background of my script?
[01:47:53] ur5us: has joined #ruby
[01:49:17] d10n-work: has joined #ruby
[01:50:00] agentmeerkat: has joined #ruby
[01:51:06] cdg: has joined #ruby
[01:51:56] flashpoint9: has joined #ruby
[01:53:23] cpruitt: has joined #ruby
[01:53:25] Respek: has joined #ruby
[01:53:56] pawnbox: has joined #ruby
[01:58:24] brent__: has joined #ruby
[02:00:13] brent__: Ox0dea: i feel like you helped me with this issue a week or so ago, but can't remember what the issue whas
[02:00:21] havenwood: brent__: http://ruby-doc.org/core/Process.html#method-c-daemon
[02:00:27] havenwood: brent__: oops, misstell
[02:00:29] havenwood: brackson: ^
[02:00:45] Ox0dea: brent__: I'll need a little more to go on. :P
[02:00:52] brent__: having an issue when trying to install byebug
[02:01:00] Brackson: havenwood: thanks!
[02:01:00] vishwa: has joined #ruby
[02:01:16] brent__: give mea sec
[02:01:18] brent__: pasting the error
[02:01:22] vishwa: Hey guys, question: I have a json object stored in a text file. How do I read it into a ruby hash?
[02:01:58] havenwood: vishwa: require 'json'; JSON.parse File.read filename
[02:01:59] brent__: https://gist.github.com/brentluna/0debc6908cfcb747f130f164e7f48dc8
[02:03:13] Ox0dea: brent__: OS?
[02:03:15] vishwa: http://pastebin.com/r6SH6PUK this is what I got for now havenwood, its similar to yours but is printing when I initialise the hash
[02:03:15] ruby[bot]: vishwa: as I told you already, please use https://gist.github.com
[02:03:20] vishwa: sorry bot
[02:03:27] brent__: Ox0dea: Fedora
[02:03:38] lyoshajapan: has joined #ruby
[02:03:41] Ox0dea: brent__: You'll need the ruby-devel package.
[02:03:45] vishwa: https://gist.github.com/tvishwa107/a2b68024c3e8d8e3fa0fa66cb7930daa
[02:04:01] Ox0dea: vishwa: File.read takes a path.
[02:04:08] havenwood: vishwa: line 1 opens a file that never gets closed, line 2 just needs the path
[02:04:39] Polysics: has joined #ruby
[02:05:06] vishwa: havenwood: https://gist.github.com/tvishwa107/a2b68024c3e8d8e3fa0fa66cb7930daa so just this then?
[02:05:19] havenwood: vishwa: just that
[02:05:49] havenwood: vishwa: but use snake_case not headlessCamelCase, never headlessCamelCase in Ruby
[02:06:05] havenwood: vishwa: headlessCamels are an abomination!
[02:06:08] vishwa: havenwood: why is it printing though? it prints the whole hash, though I have no puts
[02:06:19] vishwa: duly noted, its all the cpp work :)
[02:06:28] Ox0dea: vishwa: Your REPL prints the result of evaluations.
[02:06:56] Brackson: how do I run sinatra w/ no output in terminal?
[02:06:56] brent__: Ox0dea: still no go after installing ruby-devel. Here's a bit longer error when it's thrown in the process of running 'bundle install' https://gist.github.com/brentluna/0debc6908cfcb747f130f164e7f48dc8
[02:07:06] vishwa: Ox0dea: I dont understand what that means
[02:07:17] vishwa: read eval print loop = repl?
[02:07:26] havenwood: vishwa: Every statement has a return value, even if it's just `nil`. A REPL first Reads your input, then Evals it, Prints it and Loops.
[02:07:27] Ox0dea: vishwa: Aren't you doing this in irb?
[02:07:39] Brackson: nevermind @ my question, I'm dumb
[02:07:55] havenwood: brackson: https://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/
[02:08:15] jpfuentes2: has joined #ruby
[02:08:22] vishwa: Ox0dea: nah im running a script, these are just the offending lines
[02:08:27] x77686d: has joined #ruby
[02:08:30] havenwood: vishwa: Use the REPl!
[02:08:36] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[02:08:45] havenwood: vishwa: gem install pry pry-doc
[02:09:01] havenwood: vishwa: How are you running the script?
[02:09:16] vishwa: ruby script.rb
[02:09:35] havenwood: vishwa: Then it does nothing as far as you can see?
[02:09:35] vishwa: installing, but why pry?
[02:09:36] Ox0dea: brent__: I'm not familiar enough with Fedora to know why your `gcc` appears to be a symlink to `redhat-hardened-cc1`, but that seems to be the root of the problem.
[02:10:05] havenwood: vishwa: Ruby ships with IRB. Pry is a gem that provides additional niceties.
[02:10:07] vishwa: well it prints the entire hash content, all I wanted to do was read into the hash.
[02:10:22] vishwa: read *the json data from the txt file* into the hash
[02:10:28] havenwood: vishwa: The code you've shown prints nothing.
[02:10:36] havenwood: vishwa: (Hence the confusion.)
[02:10:39] djbkd: has joined #ruby
[02:10:49] vishwa: exactly, but it's printing to screen. that's my issue, i've already commented out the rest of the code lol
[02:11:30] _djbkd: has joined #ruby
[02:12:19] vishwa: havenwood: can I turn it off or something? or redirect the print
[02:12:28] brent__: Ox0dea: bummer. distro hopped for a few days after beign unsuccesful w/ getting arch installed from scratch. May just go back to manjaro or ubuntu
[02:12:47] Ox0dea: brent__: Arch is lovely. You should try again. ^_^
[02:12:52] havenwood: vishwa: The code as you've shown prints nothing. If it's printing something you're running something you've not shown us.
[02:13:18] brent__: i love the idea. i've been a big manjaro user (arch based, but no sefl isntall)
[02:13:51] jdawgaz: has joined #ruby
[02:13:56] brent__: kept giving me couldn't find root on boot, and couldn't solve it for the life of me
[02:15:19] vishwa: havenwood: does it make a difference that my txt file contains a json object stored as a hash?
[02:15:36] vishwa: I can't think of anything else, I have no other code
[02:15:44] havenwood: vishwa: Try it in Pry.
[02:16:05] Ox0dea: brent__: Did you use UUIDs in your /etc/fstab?
[02:16:25] markfletcher: has joined #ruby
[02:16:53] karmatr0n: has joined #ruby
[02:17:22] vishwa: havenwood: pry is making my terminal typing invisible, you see than before?
[02:17:33] brent__: I followed the beginners guide, so would have done this, which looks like i did # genfstab -U /mnt >> /mnt/etc/fstab
[02:18:41] shevy: RuntimeError: can't modify frozen Module
[02:18:47] shevy: huh - I did not know that you can freeze modules too
[02:19:09] juanca_: has joined #ruby
[02:19:58] vishwa: havenwood: the issue is in my json data, but thanks for the help
[02:19:59] vishwa: has left #ruby: ()
[02:19:59] robbyoconnor: has joined #ruby
[02:23:47] mr_robot_: has joined #ruby
[02:26:44] Ox0dea: brent__: Looks like you'll also need the redhat-rpm-config package, but I have no idea why.
[02:26:58] mdih: has joined #ruby
[02:28:38] brent__: Ox0dea: you never cease to amaze me! did you see my command for genfstab? shoudl i have not used -U?
[02:28:57] Ox0dea: brent__: You should definitely have used -U.
[02:29:20] brent__: It's strange, because i've had success isntalling the base before
[02:29:41] brent__: however i think i may have had success using mbr and grub
[02:29:51] flashpoint9: has joined #ruby
[02:29:54] brent__: i was trying to use gpt and systemd
[02:30:12] abyx: has joined #ruby
[02:30:19] Ox0dea: s/systemd/syslinux/
[02:30:36] kent\n: has joined #ruby
[02:30:36] kent\n: has joined #ruby
[02:33:05] Ox0dea: Oh, right. systemd does bootloading as well now. Ignore me. :P
[02:33:15] hinbody: has joined #ruby
[02:34:07] pawnbox: has joined #ruby
[02:35:00] barajasfab: has joined #ruby
[02:36:07] bruno-: has joined #ruby
[02:36:34] chagel: has joined #ruby
[02:36:44] havenwood: jeremyevans was asking for review or feedback in #roda and I think the code is really interesting!: https://github.com/jeremyevans/rodauth
[02:36:49] brent__: think i should just give it a go w/ mbr and grb?
[02:37:33] havenwood: please chime in ^
[02:38:49] Ox0dea: brent__: There's less that can go wrong with that approach, so it might be worth a shot.
[02:39:13] brent__: i'll give it ago now
[02:39:20] brent__: what DE do you prefer?
[02:39:41] shevy: havenwood wow - that is one of the longest readmes I have seen
[02:40:05] zast: has joined #ruby
[02:40:15] Ox0dea: brent__: Try them all! :P You'll probably settle on i3.
[02:40:27] LoneHerm_: has joined #ruby
[02:40:34] Ox0dea: Oh, you did say DE. Swap that for WM.
[02:41:02] eljimmy: has joined #ruby
[02:41:14] WhoLettem: has joined #ruby
[02:41:19] Rubie: has joined #ruby
[02:41:55] shevy: brent__ fluxbox!
[02:43:18] Ox0dea: havenwood: Hey, what's the 9,001st element of Aronson's sequence? ;)
[02:43:45] cpup: has joined #ruby
[02:44:43] bob434: has joined #ruby
[02:46:20] brent__: you go w/out a DE? just WM?
[02:47:26] Ox0dea: I do. Might not be your cuppa tea.
[02:47:30] bob434: has joined #ruby
[02:47:41] Ox0dea: What's a mouse?
[02:47:44] rbennacer: has joined #ruby
[02:47:57] baweaver: has joined #ruby
[02:49:23] havenwood: Ox0dea: I wasn't familiar with the sequence, I'll have to find out! ;)
[02:49:47] havenwood: https://oeis.org/A005224
[02:50:16] Ox0dea: havenwood: It's a great sequence, but it led me to realize that the Perlers are much more interested in this sort of thing.
[02:50:35] brent__: I like the idea, but i also have a macbook i use, so not sure how much i would enjoy such drastic differences
[02:50:57] mat-svol: has joined #ruby
[02:51:54] Spami: has joined #ruby
[02:52:08] shevy: brent__ ah; I use both kde and gnome stuff too. Right now I am on KDE actually but the reason for this is mostly because I have not rebooted or restarted xorg since like 3 months
[02:52:18] bob434: has joined #ruby
[02:53:02] brent__: shevy: so you have both kde and gnome installed?
[02:53:26] brent__: i've been using the fedora alpha the last couple days and been enjoying gnome
[02:53:52] eam: anyone wanna dig around in mkmf.rb? https://bugs.ruby-lang.org/issues/12276
[02:53:57] shevy: brent__ yep, I use whatever is the most useful
[02:54:22] shevy: I even use youtube-dl python script to download videos from youtube... makes me feel partially guilty since I don't use something written in ruby there
[02:54:53] shevy: ewww mkmf.rb
[02:55:39] brent__: lol. i've spent the last few days doing some JS. not been enjoying it
[02:55:49] bruno-: has joined #ruby
[02:56:41] shevy: who does! but it is the language of the browser (the monopoly, I read lately that they intend to have firefox run on chromium eventually)
[02:58:55] lyoshaja_: has joined #ruby
[02:59:06] benlieb: has joined #ruby
[03:00:50] brent__: indeed. i'm starting a bootcamp in a few weeks, that starts w/ ruby/rails and gets into javascript towards the middle. so wanted to get a taste
[03:01:07] brent__: tastes like doodoo compared to ruby, at least so far
[03:03:02] jdawgaz: has joined #ruby
[03:03:53] pawnbox: has joined #ruby
[03:03:54] jtd: has joined #ruby
[03:04:44] jtd: hi gang. is this where I go for Rails help? I have a stupid irb question -- there is some way to get irb to "talk" to my existing model and I cannot for the life of me remember what it is. i.e. so I can do things like "Users.all".
[03:05:51] jtd: IT WAS rails console !!!
[03:06:02] Chagel_: has joined #ruby
[03:06:04] pelegreno_: has joined #ruby
[03:06:07] jtd: so, uh, nevermind and have a lovely night :)
[03:06:09] idletask: has joined #ruby
[03:06:55] Polysics: has joined #ruby
[03:07:58] brent__: Ox0dea: i'm creating partitions, w/ MBR do i just mkdir and mount every partition, except swap?
[03:08:56] Ox0dea: brent__: The Arch Wiki is quite thorough. I'm going to abstain in the hopes that you'll get into the habit of using it. :P
[03:09:50] Rubie: has joined #ruby
[03:09:57] jdawgaz: has joined #ruby
[03:10:43] brent__: indeed it is, was just misunderstanding something but think i got it
[03:11:17] jtd: Even dumber question: once I get an object from my model like myuser = User.find_by_id(4) and then do a myuser.update_attributes(whatever), is there something extra I have to do to ensure that the change is saved and committed?
[03:11:20] jtd: oh wait
[03:11:21] jtd: myuser.save?
[03:11:32] jtd: ACTION is literally, actually covered in rust, here
[03:11:55] Ox0dea: If oxidation lasts longer than four hours...
[03:12:00] cdg: has joined #ruby
[03:12:13] jdawgaz: has joined #ruby
[03:13:49] jdawgaz: has joined #ruby
[03:13:58] karmatr0n: has joined #ruby
[03:14:49] braincrash: has joined #ruby
[03:15:08] shazaum_: has joined #ruby
[03:16:54] duncannz: has joined #ruby
[03:17:34] duncannz: has joined #ruby
[03:18:14] duncannz: has joined #ruby
[03:18:47] duncannz: has joined #ruby
[03:19:16] duncannz: has joined #ruby
[03:19:49] duncannz: has joined #ruby
[03:20:23] duncannz: has joined #ruby
[03:21:38] freerobby: has joined #ruby
[03:21:51] IrishGringo: has joined #ruby
[03:23:30] pawnbox: has joined #ruby
[03:24:19] bkxd: has joined #ruby
[03:25:55] jtoy: has joined #ruby
[03:31:35] rkazak: has joined #ruby
[03:33:42] brent__: Ox0dea: well got arch base installed succesfully w/ grub, now for the hard part of setting everything up
[03:33:51] Ox0dea: brent__: s/hard/fun/
[03:35:15] brent__: if i went w/ xfce or gnome to start with
[03:35:34] brent__: it it easy to transition to just i3 down the road if i chose to?
[03:35:55] brent__: or even enother full DE? I've never messed around w/ switching DE's on other distros
[03:36:10] Ox0dea: You can just modify your ~/.xinitrc.
[03:36:33] Ox0dea: DEs tend to have their own initialization files as well.
[03:37:19] shevy: good oldschool
[03:37:38] shevy: I could not want to study login managers in order to ... login properly :(
[03:40:52] pelegreno: has joined #ruby
[03:42:19] brent__: decisions decisions, which to install
[03:43:46] klka: has joined #ruby
[03:44:01] shevy: I found that I can not go below e. g. fluxbox... things like ion or ratpoison and so on, does not fit my poor brain
[03:44:32] klka: when using ruby c api how the executable knows where the ruby binary is located? it checks envvars?
[03:45:12] IanMalcolm: has joined #ruby
[03:46:02] davidcelis: has joined #ruby
[03:46:03] davidcelis: has joined #ruby
[03:47:34] Ox0dea: klka: How do you mean?
[03:48:08] Ox0dea: If you're using Ruby as a scripting layer in your C program, there's no `ruby` binary involved. The necessary symbols and functions are being compiled into your program.
[03:49:23] benlieb: has joined #ruby
[03:49:57] rkazak: has joined #ruby
[03:50:29] klka: really, even if i try to open .rb file and execute its content?
[03:50:35] klka: rb_require*
[03:51:43] jdawgaz: has joined #ruby
[03:52:14] gix: has joined #ruby
[03:52:22] mat-svol: has joined #ruby
[03:54:44] charliesome: has joined #ruby
[03:56:02] agent_white: has joined #ruby
[03:57:37] thistle: has joined #ruby
[03:58:17] BtcBen: has joined #ruby
[03:58:41] BTRE: has joined #ruby
[03:59:58] agentmeerkat: has joined #ruby
[04:00:19] skweek: has joined #ruby
[04:01:33] IrishGringo: has joined #ruby
[04:02:06] Es0teric: has joined #ruby
[04:03:25] Jameser`: has joined #ruby
[04:05:16] shevy: klka what are you writing by the way? you seem to be at it persistently since some days
[04:05:17] jtoy: has joined #ruby
[04:06:57] tubuliferous_: has joined #ruby
[04:07:30] shevy: hmm what name would you rather pick:
[04:07:41] shevy: ToplevelName::Gui::Gtk
[04:07:43] shevy: ToplevelName::GUI::Gtk
[04:07:51] nodejunkie: has joined #ruby
[04:08:21] karmatr0n: has joined #ruby
[04:08:41] Polysics: has joined #ruby
[04:08:47] jgpawletko: has joined #ruby
[04:09:17] klka: shevy, yep for some days i'm trying to create an executable that calls ruby function in .rb file, this function depends on alot of code, and i want it to be statically-linked
[04:09:21] jgpawletko: has left #ruby: ()
[04:09:47] pawnbox: has joined #ruby
[04:09:56] lxsameer: has joined #ruby
[04:10:07] shevy: baweaver yeah I was just thinking the same... I read my own code some some weeks ago and "module Gui" looked weird
[04:10:17] shevy: one some too many
[04:10:28] shevy: klka I see
[04:11:23] brent__: shevy, but you've been use kde lately?
[04:14:09] shevy: brent__ well yeah, right now. I guess if I ever reboot, I'll switch to fluxbox again. I am using kde konsole for most shell stuff though, so I kind of semi-depent on it. gnome-terminal is ok but not as good, the other terminals are weird... I never got into screen and tmux, my geekiness level is not 100%, more at 50% to 60%. in almost half of the kde tabs, some ruby script is running
[04:15:18] brent__: what do you like about fluxbox?
[04:15:48] Regulati_: has joined #ruby
[04:17:10] shevy: very fast, very simple, easy keybindings
[04:18:01] shevy: ruby autogenerates the default keybindings for me; probably also possible for kde but I just can't be bothered to find out where kde puts what and what format it uses... probably some monstrous XML file
[04:19:07] shevy: there once was a ruby WM too!
[04:19:39] shevy: http://subforge.org/projects/subtle
[04:20:01] jpfuentes2: has joined #ruby
[04:20:40] jtoy: has joined #ruby
[04:22:01] Devalo: has joined #ruby
[04:24:30] brent__: cool. torn on just going for i3 or xfce
[04:24:57] bkxd: has joined #ruby
[04:29:14] Ox0dea: klka: I think ruby_init_loadpath() might be your missing piece.
[04:34:22] lyoshajapan: has joined #ruby
[04:34:25] kareeoleez: has joined #ruby
[04:36:26] robbyoconnor: has joined #ruby
[04:37:14] hk238: has joined #ruby
[04:37:36] Devalo: has joined #ruby
[04:38:49] Waqas: has joined #ruby
[04:38:57] paulca: has joined #ruby
[04:39:24] IrishGringo: has joined #ruby
[04:39:53] bronson: has joined #ruby
[04:41:47] d0nn1e: has joined #ruby
[04:46:06] merida: has joined #ruby
[04:46:07] lyoshajapan: has joined #ruby
[04:46:38] jenrzzz: has joined #ruby
[04:47:40] lkba_: has joined #ruby
[04:47:56] Es0teric: has joined #ruby
[04:49:43] brent__: Ox0dea: dumb question, installed i3. how do i get to a termianl to install extra stuff? do i need to do taht before i startx in bash?
[04:49:46] fedexo: has joined #ruby
[04:50:25] Ox0dea: brent__: Alt+Enter
[04:50:53] r0bby_: has joined #ruby
[04:51:25] brent__: ahh, says can't find a terminal emulator
[04:51:26] cdg: has joined #ruby
[04:51:41] Ox0dea: Yeah, you'll want to have one of those. :P
[04:51:49] brent__: probably need to exit i3 and install from there
[04:51:53] brent__: any suggestions?
[04:51:58] brent__: on which emulator?
[04:52:01] Ox0dea: I use st.
[04:52:45] mat-svol: has joined #ruby
[04:53:00] Ox0dea: Most Archers use urxvt.
[04:53:11] Spami: has joined #ruby
[04:53:44] shevy: they use arrows and bows!!!
[04:54:52] astrobunny: has joined #ruby
[04:57:20] Channel6: has joined #ruby
[04:57:51] robbyoconnor: has joined #ruby
[05:02:00] robot682: has joined #ruby
[05:02:24] Waqas: has joined #ruby
[05:02:26] kadoppe: has joined #ruby
[05:02:42] r0bby_: has joined #ruby
[05:03:51] Devalo: has joined #ruby
[05:05:40] brent__: well got it started. any things you think i should look at doing immediately to get it going Ox0dea?
[05:07:07] charliesome: has joined #ruby
[05:07:52] terminalrecluse: has joined #ruby
[05:08:11] Ox0dea: brent__: pacman -S `pacman -Ssq`
[05:09:04] tubuliferous_: has joined #ruby
[05:10:01] brent__: what does that do?
[05:10:03] Polysics: has joined #ruby
[05:10:09] Ox0dea: It installs all the things.
[05:10:42] aaeron: has joined #ruby
[05:10:48] Ox0dea: Only good for running libalpm's dependency resolution mechanism through its paces.
[05:11:47] brent__: give it a shot once atom finishes installing
[05:11:52] brent__: that thing takes forever
[05:12:03] klka: When I call this function from ruby it works fine, it doesn't work when I call it from C API https://gist.github.com/anonymous/5ff9ed65701a7c738586182d0f274929 , why?
[05:12:16] Ox0dea: brent__: It was a joke, mind.
[05:12:51] Ox0dea: klka: What is kjon?
[05:13:54] klka: rb file located in ./basedir/
[05:14:22] brent__: killing me, thought so.
[05:14:33] last_staff: has joined #ruby
[05:14:39] william3: has joined #ruby
[05:15:33] Ox0dea: klka: Why not `require_relative`?
[05:15:57] x77686d: has joined #ruby
[05:16:15] Ox0dea: On 2.3, you can also just use Kernel#__dir__ to avoid that dance.
[05:16:36] sauvin: has joined #ruby
[05:21:27] yfeldblum: has joined #ruby
[05:22:00] klka: Ox0dea, it still doesn't work with require_relative
[05:22:28] ctarx: has joined #ruby
[05:24:28] cjbottaro: has joined #ruby
[05:24:44] terlar: has joined #ruby
[05:25:01] idletask: has joined #ruby
[05:27:34] charliesome: has joined #ruby
[05:30:05] vdamewood: has joined #ruby
[05:33:03] klka: the error comes from "require 'bundler/setup'" in other file
[05:34:11] crameth: has joined #ruby
[05:35:12] PaulCapestany: has joined #ruby
[05:35:16] Polysics: has joined #ruby
[05:36:35] kadoppe: has joined #ruby
[05:38:31] klka: and 'require rails'
[05:39:09] klka: maybe the gem directory is not defined?
[05:39:21] bb010g: has joined #ruby
[05:40:16] LoneHerm_: has joined #ruby
[05:40:47] raeoks: has joined #ruby
[05:41:03] klka: How to define gem directory in C API?
[05:41:27] chagel: has joined #ruby
[05:42:32] bkxd: has joined #ruby
[05:44:38] Infra-Red: has joined #ruby
[05:46:52] djbkd: has joined #ruby
[05:51:06] hotpancakes: has joined #ruby
[05:54:14] Rubie: has joined #ruby
[05:55:13] mat-svol: has joined #ruby
[05:55:32] Macaveli: has joined #ruby
[05:56:06] aufi: has joined #ruby
[05:56:43] kareeoleez: has joined #ruby
[05:58:03] kareeoleez: has joined #ruby
[05:58:45] rkazak: has joined #ruby
[06:00:10] lyoshajapan: has joined #ruby
[06:00:24] jpfuentes2: has joined #ruby
[06:00:40] robot682: has left #ruby: ()
[06:01:14] Chagel_: has joined #ruby
[06:02:24] yfeldblum: has joined #ruby
[06:03:36] tvw: has joined #ruby
[06:06:20] kareeoleez: has joined #ruby
[06:06:37] raeoks: has joined #ruby
[06:08:43] conta: has joined #ruby
[06:11:12] lyoshajapan: has joined #ruby
[06:13:03] mesamoo: has joined #ruby
[06:13:49] Theory: has joined #ruby
[06:14:54] Bloomer: has joined #ruby
[06:17:42] bob434: has joined #ruby
[06:18:53] noService: has joined #ruby
[06:20:59] djbkd: has joined #ruby
[06:22:09] krz: has joined #ruby
[06:23:51] lyoshajapan: has joined #ruby
[06:24:34] mark3: has joined #ruby
[06:25:27] ffgghhj: has joined #ruby
[06:27:28] youch: has joined #ruby
[06:29:12] pawnbox: has joined #ruby
[06:29:45] pawnbox_: has joined #ruby
[06:30:12] solars: has joined #ruby
[06:31:03] jimcroft: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[06:31:08] firstdayonthejob: has joined #ruby
[06:31:16] yfeldblum: has joined #ruby
[06:32:14] Infra-Red: has joined #ruby
[06:32:25] tAn: has joined #ruby
[06:32:32] jimcroft_: has joined #ruby
[06:32:52] merida: has joined #ruby
[06:33:38] aganov: has joined #ruby
[06:33:54] terminalrecluse: has joined #ruby
[06:35:05] jimcroft_: has joined #ruby
[06:35:35] jimcroft_: has joined #ruby
[06:38:40] jimcroft_: has joined #ruby
[06:39:15] abyx: has joined #ruby
[06:40:33] Polysics: has joined #ruby
[06:40:53] kareeoleez: has joined #ruby
[06:41:30] LoneHermit: has joined #ruby
[06:41:46] bronson: has joined #ruby
[06:42:11] siaW: has joined #ruby
[06:42:27] idletask: has joined #ruby
[06:43:20] bkxd: has joined #ruby
[06:43:32] crameth: has joined #ruby
[06:43:33] ur5us: has joined #ruby
[06:44:28] Polysics: has joined #ruby
[06:46:57] ur5us: has joined #ruby
[06:50:10] jimcroft_: has joined #ruby
[06:50:13] krz: has joined #ruby
[06:53:49] czerasz: has joined #ruby
[06:54:10] TomyWork: has joined #ruby
[06:54:53] andikr: has joined #ruby
[06:56:01] mat-svol: has joined #ruby
[06:56:38] merida: has joined #ruby
[06:57:08] Polysics: has joined #ruby
[06:57:13] Taylor_: has joined #ruby
[06:58:02] P_R_Deltoid: I am trying to overload the Rand() function in Kernel to do a small programming challenge
[06:58:09] merida_: has joined #ruby
[06:58:13] P_R_Deltoid: and I can't for the life of me figure out why the way I am doing it is n ot working
[06:58:24] P_R_Deltoid: I am simply using module Kernel
[06:58:29] P_R_Deltoid: and then def rand
[06:58:29] jaruga__: has joined #ruby
[06:58:32] codecop: has joined #ruby
[06:58:35] P_R_Deltoid: then making it return 0 no matter what
[06:58:40] P_R_Deltoid: but for some reason, this does not work
[07:01:50] phaza: has joined #ruby
[07:02:00] biberu: has joined #ruby
[07:02:04] Ox0dea: P_R_Deltoid: https://eval.in/552544
[07:03:50] cibs: has joined #ruby
[07:04:32] P_R_Deltoid: Alright, my solution is correct, apparently the problem is not solved that way
[07:04:37] P_R_Deltoid: thanks, Ox0dea
[07:04:49] Ox0dea: P_R_Deltoid: Sure thing.
[07:05:08] P_R_Deltoid: Turns o ut you just seed rand to make the number come out consistantly
[07:05:16] P_R_Deltoid: Kinda overthought that one
[07:08:50] norc: has joined #ruby
[07:09:23] eggoez: has joined #ruby
[07:11:20] RTG`: has joined #ruby
[07:12:00] jimcroft_: has joined #ruby
[07:15:05] yfeldblum: has joined #ruby
[07:17:38] baweaver: has joined #ruby
[07:19:12] merida: has joined #ruby
[07:21:36] infernix: has joined #ruby
[07:22:11] Infra-Red: has joined #ruby
[07:22:26] JohnBat26: has joined #ruby
[07:22:45] dionysus69: has joined #ruby
[07:23:47] tagaulap: has joined #ruby
[07:25:18] Couch: has joined #ruby
[07:26:53] hotpancakes: has joined #ruby
[07:27:24] tenzan: has joined #ruby
[07:27:47] djbkd: has joined #ruby
[07:30:48] ferr: has joined #ruby
[07:31:32] djbkd: has joined #ruby
[07:34:38] DoubleMalt: has joined #ruby
[07:34:49] pawnbox: has joined #ruby
[07:37:54] Hanmac: klka i showed you long time ago how to do an static linked exceutable that does call functions in a rb file and it did work for me.
[07:38:47] bruno-: has joined #ruby
[07:38:52] brunto: has joined #ruby
[07:38:59] devbug: has joined #ruby
[07:39:33] klka: hanmac, really? i dont remember.. how long?
[07:39:45] antgel: has joined #ruby
[07:40:21] merida: has joined #ruby
[07:40:26] norc: hanmac: Do not utter the words "statically linked" in the IRC. Chances are Ulrich Drepper might appear and insult you into the ground.
[07:40:44] norc: With some swearing in between.
[07:41:08] Hanmac: norc: i am not pro-static linked, klka wanted that
[07:41:42] Hanmac: klka that i did send you at 10.04.2016: i did use "gcc func.c -o func `pkg-config --cflags --static ruby-2.2` -lruby-2.2-static -lpthread -lgmp -ldl -lcrypt -lm" and that did allow static linking for me and it did work for me
[07:42:13] nobitanobi: has joined #ruby
[07:42:23] Ox0dea: hanmac: Er, why not just pass --libs to pkg-config?
[07:42:28] kadoppe: has joined #ruby
[07:42:30] klka: oh i didnt see that, i'll try that, is it includes the gems? i guess not?
[07:42:50] Hanmac: Ox0dea: for unknown reason pkg-config does not show the static lib for ruby when using --static
[07:42:56] tristanp: has joined #ruby
[07:43:20] Hanmac: klka: i didnt try to use any gems, i did use your func.c file and your func.rb, nothing more
[07:44:03] Ox0dea: hanmac: Ah, you're right. That's weird.
[07:44:55] Hanmac: and i stll think static linking might be a bad idea at that place
[07:45:36] Ox0dea: I can only assume klka is up to something wicked.
[07:46:21] klka: hanmac, yea i know
[07:46:49] Ox0dea: norc, hanmac: Wat? https://github.com/ruby/ruby/commit/ba001b
[07:46:51] klka: I did compile it, but i want to be able to use gems
[07:47:00] klka: im trying to figure out how to do that
[07:47:06] Hanmac: klka: also when you do something static, you only build the ruby lib to it, not std or gems
[07:47:42] klka: the gems is a must
[07:47:46] Ox0dea: They want to pass around a binary and a Ruby file and have everything Just Work without the user (victim?) having to have Ruby installed.
[07:48:17] klka: I need some gems to run the code
[07:48:23] norc: Ox0dea: Heh.
[07:48:41] Hanmac: i think the best way would be to bundle the std/gem stuff with your new app, and then somehow add the search paths into it.
[07:49:14] marr: has joined #ruby
[07:49:44] Hanmac: klka: also a special reason why your app does need to be compiled? for what do you want to use the ruby part of it?
[07:50:05] norc: Ox0dea: That bug is over 13 years old!
[07:50:14] norc: You have to dig into CVS to blame. :D
[07:50:35] Ox0dea: norc: Ah, that explains why going back to 1.0 was insufficient.
[07:50:38] jenrzzz: has joined #ruby
[07:50:49] Ox0dea: I tried to determine which version of Ruby that would've been appropriate in.
[07:50:52] klka: i want to add a functionality that is written in ruby (many lines of code)
[07:51:13] sepp2k: has joined #ruby
[07:51:20] norc: Ox0dea: It is quite hilarious that code after that condition was changed and added over the years, but apparently nobody ever noticed it was dead code.
[07:51:25] Ox0dea: klka: But you want to write the rest of your program in C? Why?
[07:51:35] RyanMcCoskrie: has joined #ruby
[07:51:54] norc: Ox0dea: Indeed why. We have Fiddle which gives you direct memory access in Ruby. No reason at all to write C programs anymore.
[07:52:39] Ox0dea: norc: I still get a kick out of embedding unions in structs in unions in structs, and it's just not the same with Fiddle. :P
[07:53:00] klka: Ox0dea, performance, hard to RE
[07:53:06] norc: Ox0dea: Meh. unions feel so lackluster once you have used variants.
[07:53:27] RyanMcCoskrie: has left #ruby: ()
[07:53:52] Ox0dea: norc: I certainly didn't mean to hold them up as a joy to use.
[07:54:10] brunto: has joined #ruby
[07:54:14] astrobunny: has joined #ruby
[07:54:51] Hanmac: klka: i think other way around might be more nicer, like you put your expensive stuff in a C-gem and then require it from your ruby program
[07:55:04] lyoshajapan: has joined #ruby
[07:55:28] norc: klka: Honest question since you mention the topic "performance" while still being stuck with linkage... did you profile your application?
[07:55:28] Hanmac: norc: i prefer to write bindings, like i did with wxwidgets and long time ago with ogre too (i need to update that one)
[07:56:05] conta: has joined #ruby
[07:56:49] brunto_: has joined #ruby
[07:56:59] klka: norc, not yet, why?
[07:57:20] norc: klka: Why do you make design choices about performance, when you have not even determined that they are necessary.
[07:57:44] norc: (We also call this: Premature optimization)
[07:57:48] brunto: has joined #ruby
[07:59:05] bkxd: has joined #ruby
[07:59:08] norc: klka: Which brings us back to Ox0dea's suggestion: Why go back to C code, when writing C code is cumbersome and slow and error prone.
[07:59:44] klka: norc, the main reason i chose c/c++ is the time it takes to reverse engineer it, performace is a bonus
[07:59:59] Ox0dea: Bleh. Get out.
[08:00:21] norc: klka: If you insist on obfuscating, Ruby can precompile byte code too.
[08:00:45] norc: Anyone with enough energy to reverse engineer that, will also disassemble your binary.
[08:01:16] the_drow_: has joined #ruby
[08:01:19] norc: And almost all people that pay for software will respect licensing.
[08:01:32] norc: Unless of course you are trying to hide that you are a terrible programmer.
[08:01:39] klka: maybe :)
[08:01:53] Ox0dea: klka: Just write your Ruby code like this: http://i.imgur.com/94jou4v.png
[08:02:02] norc: Ox0dea: You make me cry!
[08:02:09] Ox0dea: norc: It's the good hurt.
[08:02:11] klka: Ox0dea, nice
[08:02:11] norc: FortiGuard prefers me twittering over imgur.
[08:02:32] norc: (The filter list on that firewall is just so hilarious)
[08:02:39] Ox0dea: norc: It's just the old Sinatra app: http://i.imgsafe.org/0e62000.png
[08:03:00] anisha: has joined #ruby
[08:03:32] norc: klka: http://ruby-doc.org/core-2.3.0/RubyVM/InstructionSequence.html#method-c-load_from_binary
[08:04:58] klka: Ox0dea, back at you https://s-media-cache-ak0.pinimg.com/736x/cb/6b/03/cb6b03afa462caca6bcb529b22715463.jpg
[08:06:01] norc: klka: Perfect image. If only the electric knife had a label "Made in Japan" on it.
[08:06:20] Silox|: has joined #ruby
[08:06:43] tesuji: has joined #ruby
[08:07:40] pandaant: has joined #ruby
[08:08:53] Ox0dea: klka: C isn't a katana; it's a scalpel.
[08:09:15] pawnbox: has joined #ruby
[08:15:25] Xeago: has joined #ruby
[08:17:27] madgen: has joined #ruby
[08:20:08] snoobydoo: has joined #ruby
[08:22:35] william3: has joined #ruby
[08:24:15] snowy: has joined #ruby
[08:25:49] mrgrieves: has joined #ruby
[08:25:51] vasilakisFiL: has joined #ruby
[08:26:22] vasilakisFiL: if I have a method inside a class and I do Foo.new.bar, is it possible inside there to get the 'self' of the caller ?
[08:28:57] Ox0dea: vasilakisfil: https://github.com/banister/binding_of_caller
[08:29:33] LoneHermit: has joined #ruby
[08:30:31] vasilakisFiL: it would be nice if it was officially supported though
[08:31:19] manveru: vasilakisfil: the official support is to pass the binding from the caller explicitly :)
[08:35:22] jtoy: has joined #ruby
[08:37:13] hotpancakes: has joined #ruby
[08:39:32] bruno-: has joined #ruby
[08:40:35] adaedra: vasilakisfil: note that this is recommended to use it only for debugging purposes. The best way to have what you ask is still to pass `self` as parameter.
[08:41:01] vasilakisFiL: yeah I got that :) I hoped there would be a way though :)
[08:41:14] bmf: has joined #ruby
[08:43:41] bronson: has joined #ruby
[08:44:14] blackgoat: has joined #ruby
[08:44:18] akkmaxon: has joined #ruby
[08:45:33] blaxter: has joined #ruby
[08:46:14] william3: has joined #ruby
[08:47:18] futilegames: has joined #ruby
[08:47:19] ThePolarCat: has joined #ruby
[08:47:55] ThePolarCat: has left #ruby: ()
[08:48:04] william3: has joined #ruby
[08:50:42] riceandbeans: if you do require_relative 'dir/file' do you have to specify .rb or is it implied?
[08:51:11] vasilakisFiL: does this pattern has a name? https://gist.github.com/vasilakisfil/e095e5ea133e23374b723fe14063725d
[08:51:33] vasilakisFiL: a closure which when run takes into account the running environment and not the environment that was defined
[08:51:56] akkmaxon: has joined #ruby
[08:52:22] SCHAAP137: has joined #ruby
[08:53:00] diegoaguilar: has joined #ruby
[08:57:01] Ox0dea: vasilakisfil: That's called "rebinding" in the general case.
[08:57:18] mat-svol: has joined #ruby
[08:57:19] vasilakisFiL: but I think it's usefull in many cases
[08:57:37] merida: has joined #ruby
[08:57:45] JohnBat26: has joined #ruby
[08:57:53] vasilakisFiL: I will rename the method to rebind then instead of reshape
[08:58:10] n008f4g_: has joined #ruby
[08:58:12] Ox0dea: Doing it recklessly is essentially glorified `goto`.
[08:58:47] Ox0dea: You should be able to reason about the value of `self`.
[09:01:10] madgen: has joined #ruby
[09:02:37] AlexJakeGreen: has joined #ruby
[09:04:01] raeoks: has joined #ruby
[09:05:00] waxxy: I usually find it clearer to pass in the "environment" as a parameter to the block: https://gist.github.com/britishtea/6fb9153a26825cc7219ef2a9da5ba8c0
[09:05:31] pawnbox: has joined #ruby
[09:06:02] skislak: has joined #ruby
[09:06:37] jtoy: has joined #ruby
[09:08:24] william3: has joined #ruby
[09:08:59] Kelzier: has joined #ruby
[09:10:25] snoobydoo: has joined #ruby
[09:13:44] houhoulis: has joined #ruby
[09:14:20] yfeldblum: has joined #ruby
[09:14:56] ensyde: has joined #ruby
[09:15:51] evidex: has joined #ruby
[09:16:15] dionysus69: has joined #ruby
[09:17:21] workmad3: has joined #ruby
[09:18:48] baweaver: has joined #ruby
[09:18:50] hotpancakes: has joined #ruby
[09:26:31] william3: has joined #ruby
[09:26:57] S1kx: has joined #ruby
[09:29:40] mrmortondk: has joined #ruby
[09:31:22] LoneHermit: has joined #ruby
[09:35:11] tjbiddle: has joined #ruby
[09:35:32] asmodlol: has joined #ruby
[09:37:59] brunto_: has joined #ruby
[09:38:20] waxxy_: has joined #ruby
[09:38:55] Dreamer3_: has joined #ruby
[09:40:18] nullwarp_: has joined #ruby
[09:40:34] bruno-: has joined #ruby
[09:41:04] chagel: has joined #ruby
[09:41:30] platzhirsch: has joined #ruby
[09:41:47] maximos: has joined #ruby
[09:42:27] terlar: has joined #ruby
[09:42:29] giz|work: has joined #ruby
[09:42:41] artmann_: has joined #ruby
[09:42:49] interpel1x: has joined #ruby
[09:42:53] jgrevich_: has joined #ruby
[09:43:16] lyoshaja_: has joined #ruby
[09:43:17] crankhar1er: has joined #ruby
[09:43:17] saltsa: has joined #ruby
[09:43:17] antgel_: has joined #ruby
[09:43:23] Mekkis_: has joined #ruby
[09:43:35] n008f4g__: has joined #ruby
[09:43:36] phredus_: has joined #ruby
[09:43:38] william3: has joined #ruby
[09:43:43] torandu_: has joined #ruby
[09:44:17] ramblinpeck_: has joined #ruby
[09:44:41] bronson: has joined #ruby
[09:44:46] bestie_: has joined #ruby
[09:47:23] mhenrixon_: has joined #ruby
[09:47:48] apeiros_: has joined #ruby
[09:47:49] Biohazard: has joined #ruby
[09:47:59] SirCmpwn_: has joined #ruby
[09:48:00] moredhel-: has joined #ruby
[09:48:03] DiabolikFreenode: has joined #ruby
[09:49:24] Liam`: has joined #ruby
[09:49:46] BiHi: has joined #ruby
[09:49:49] troter_________: has joined #ruby
[09:49:54] llua: has joined #ruby
[09:50:35] Devalo: has joined #ruby
[09:52:04] kadoppe: has joined #ruby
[09:52:12] jimcroft_: has joined #ruby
[09:52:45] andersh: has joined #ruby
[09:52:59] tonini: has joined #ruby
[09:53:19] pfg: has joined #ruby
[09:53:19] daemonwrangler: has joined #ruby
[09:53:21] acalewin: has joined #ruby
[09:53:22] S01780: has joined #ruby
[09:53:31] jcp: has joined #ruby
[09:53:39] Stan: has joined #ruby
[09:53:39] optimaleatscout_: has joined #ruby
[09:54:03] rob_: has joined #ruby
[09:54:16] skislak: has joined #ruby
[09:54:54] jokester: has joined #ruby
[09:55:09] papercode: has joined #ruby
[09:55:19] jwang: has joined #ruby
[09:55:20] infernix: has joined #ruby
[09:55:34] william3: has joined #ruby
[09:57:00] mikecmpbll: has joined #ruby
[09:57:05] jimcroft: has joined #ruby
[09:58:27] bruce_lee: has joined #ruby
[09:58:27] bruce_lee: has joined #ruby
[09:58:43] Meow-J: has joined #ruby
[09:59:17] e4xit: has joined #ruby
[09:59:52] bkxd: has joined #ruby
[10:01:02] pawnbox: has joined #ruby
[10:09:50] rippa: has joined #ruby
[10:10:58] jds_: has joined #ruby
[10:15:49] joseph: has joined #ruby
[10:16:37] dellavg: has joined #ruby
[10:20:21] terlar: has joined #ruby
[10:21:56] Gasher: has joined #ruby
[10:23:41] william3: has joined #ruby
[10:25:12] tagaulap: has joined #ruby
[10:28:09] Xeago: has joined #ruby
[10:30:05] BtcBen: has joined #ruby
[10:30:19] sgambino_: has joined #ruby
[10:30:37] Rutix`away: has joined #ruby
[10:30:37] Rutix`away: has joined #ruby
[10:31:20] dionysus69: has joined #ruby
[10:32:13] atmosx_alt: has joined #ruby
[10:33:20] mikecmpb_: has joined #ruby
[10:33:54] pragmatism: has joined #ruby
[10:34:27] Kilo`byte: has joined #ruby
[10:34:36] atmosx: has joined #ruby
[10:35:17] conta_: has joined #ruby
[10:35:23] aufi_: has joined #ruby
[10:36:15] dravine_: has joined #ruby
[10:37:28] czerasz: has joined #ruby
[10:38:18] Puffball: has joined #ruby
[10:38:29] coyo: has joined #ruby
[10:38:31] veloutin: has joined #ruby
[10:38:35] Shidash: has joined #ruby
[10:38:53] lxsameer: has joined #ruby
[10:39:01] bob434: has joined #ruby
[10:39:17] braincrash: has joined #ruby
[10:40:16] merida: has joined #ruby
[10:40:24] svkurowski: has joined #ruby
[10:40:26] Omni: has joined #ruby
[10:40:47] yfeldblum: has joined #ruby
[10:40:58] crowell: has joined #ruby
[10:41:30] bruno-: has joined #ruby
[10:42:23] william3: has joined #ruby
[10:42:49] siaw_: has joined #ruby
[10:43:26] dgncn: has joined #ruby
[10:43:49] krz: has joined #ruby
[10:44:12] MuffinPimp: has joined #ruby
[10:45:05] brunto: has joined #ruby
[10:45:06] Couch: has joined #ruby
[10:45:31] rikai: has joined #ruby
[10:46:13] joaumg: has joined #ruby
[10:46:16] Ox0dea: has joined #ruby
[10:47:26] Liothen: has joined #ruby
[10:49:17] majjoha: has joined #ruby
[10:51:30] bnagy: has joined #ruby
[10:52:00] Didac: has joined #ruby
[10:52:58] vasilakisFiL: has joined #ruby
[10:53:27] pawnbox: has joined #ruby
[10:53:36] Xeago: has joined #ruby
[10:55:31] Sou|cutter: has joined #ruby
[10:56:11] kloeri_: has joined #ruby
[10:56:14] Nahra`: has joined #ruby
[11:00:36] DanielJack: has joined #ruby
[11:00:36] bkxd: has joined #ruby
[11:01:32] GodFather: has joined #ruby
[11:01:40] madgen: has joined #ruby
[11:02:10] Xeago: has joined #ruby
[11:04:20] rob_: has joined #ruby
[11:04:40] rodfersou: has joined #ruby
[11:05:23] yokel: has joined #ruby
[11:05:29] genpaku: has joined #ruby
[11:05:43] Xeago: has joined #ruby
[11:05:47] william3: has joined #ruby
[11:06:32] niko: has joined #ruby
[11:07:07] sesquipedalian: has joined #ruby
[11:11:06] brunto: has joined #ruby
[11:19:50] baweaver: has joined #ruby
[11:21:38] gnufied: has joined #ruby
[11:22:21] ged: has joined #ruby
[11:22:48] ruby-lang235: has joined #ruby
[11:24:01] william3: has joined #ruby
[11:25:23] ruby-lang235: hi, someone can recommend me free RoR projects to learn reading (low-medium level)
[11:25:49] arup_r: has joined #ruby
[11:28:15] Outlastsheep: has joined #ruby
[11:28:41] vasilakisfil_: has joined #ruby
[11:29:16] ruby-lang235: hi, someone can recommend me open source RoR projects to learn reading (low-medium level)
[11:29:52] tAn: has joined #ruby
[11:30:41] CausaMortis: has joined #ruby
[11:30:42] vasilakisfil__: has joined #ruby
[11:31:32] arup_r: Spree and Solidus
[11:31:34] ldnunes: has joined #ruby
[11:31:38] arup_r: ask #rubyonrails channel
[11:31:47] ellen_: has joined #ruby
[11:32:04] arup_r: Hey all. Is there any much neat way to read just the CSV headers? I did it like https://gist.github.com/aruprakshit/10685c3af8d37a326e03adfa6a4ddf16
[11:33:52] flak: has joined #ruby
[11:34:00] kareeole_: has joined #ruby
[11:34:05] duderono_: has joined #ruby
[11:34:06] Macca: has joined #ruby
[11:34:07] hotpancakes: has joined #ruby
[11:34:12] nobitano_: has joined #ruby
[11:34:15] SnowyLAD_: has joined #ruby
[11:34:40] watersoul_: has joined #ruby
[11:35:31] Rutix: has joined #ruby
[11:35:31] Rutix: has joined #ruby
[11:36:33] Zarthus_: has joined #ruby
[11:36:42] vbatts|work: has joined #ruby
[11:36:43] smoose: has joined #ruby
[11:36:43] chouhoulis: has joined #ruby
[11:36:53] justinmcp: has joined #ruby
[11:37:04] Gnubie__: has joined #ruby
[11:37:07] ereslibre_laptop: has joined #ruby
[11:37:07] ocbtec: has joined #ruby
[11:37:29] Antiarc: has joined #ruby
[11:37:31] johnmilton: has joined #ruby
[11:37:32] shaman42: has joined #ruby
[11:37:46] chouhoulis: has joined #ruby
[11:37:47] tobiasvl: arup_r: c.readlines; c.headers
[11:37:47] pleiosaur: has joined #ruby
[11:37:54] queequeg1: has joined #ruby
[11:38:03] jamo: has joined #ruby
[11:38:03] tobiasvl: c.headers will contain the headers as long as they've been read
[11:38:07] z4phod: has joined #ruby
[11:38:09] arup_r: let me try
[11:38:16] william3: has joined #ruby
[11:38:24] awk: has joined #ruby
[11:38:34] hoylemd: has joined #ruby
[11:38:45] unreal: has joined #ruby
[11:38:54] RegulationD: has joined #ruby
[11:39:29] giz|work: ruby-lang235: i made a very simple pastebin service a few weeks ago https://github.com/gizmore/railsbin / http://railsbin.wechall.net
[11:39:50] matt_d: has joined #ruby
[11:40:24] moei: has joined #ruby
[11:40:46] M-shine: has joined #ruby
[11:41:04] moei: has joined #ruby
[11:41:21] ruby-lang235: thx giz|work =)
[11:41:31] greenhat: has joined #ruby
[11:41:32] mwlang: has joined #ruby
[11:41:35] moshee: has joined #ruby
[11:41:35] moshee: has joined #ruby
[11:41:39] jhass: has joined #ruby
[11:41:42] canton7: has joined #ruby
[11:41:43] merida: has joined #ruby
[11:41:44] Vircung: has joined #ruby
[11:41:46] df: has joined #ruby
[11:41:46] swills: has joined #ruby
[11:41:49] Esya: has joined #ruby
[11:42:01] maxmanders: has joined #ruby
[11:42:09] perry: has joined #ruby
[11:42:10] perry: has joined #ruby
[11:42:12] cyphactor: has joined #ruby
[11:42:22] pjaspers: has joined #ruby
[11:42:36] Thai_: has joined #ruby
[11:42:40] gmas: has joined #ruby
[11:42:49] inukshuk: has joined #ruby
[11:43:34] null__: has joined #ruby
[11:43:34] null__: has joined #ruby
[11:43:51] DEac-: has joined #ruby
[11:44:14] g3funk: has joined #ruby
[11:44:17] swistak35: has joined #ruby
[11:44:18] Tharbakim: has joined #ruby
[11:45:42] nobitanobi: has joined #ruby
[11:45:48] vdamewood: has joined #ruby
[11:45:56] imajes: has joined #ruby
[11:46:32] bronson: has joined #ruby
[11:46:45] M-Technic: has joined #ruby
[11:48:36] zlude: has joined #ruby
[11:48:47] [dmp]: has joined #ruby
[11:49:18] AlexJakeGreen: has joined #ruby
[11:49:20] aganov: has joined #ruby
[11:49:33] rapha: has joined #ruby
[11:49:44] greister: has joined #ruby
[11:49:53] isene: has joined #ruby
[11:49:54] majoh: has joined #ruby
[11:49:54] hplar: has joined #ruby
[11:50:00] jerohm: has joined #ruby
[11:50:06] programmerq: has joined #ruby
[11:50:21] sauvin: has joined #ruby
[11:50:27] dostoyevsky: has joined #ruby
[11:50:40] jwang: has joined #ruby
[11:50:49] existensil: has joined #ruby
[11:50:53] wldcordeiro: has joined #ruby
[11:52:31] nfk|laptop: has joined #ruby
[11:53:11] FooMunki: has joined #ruby
[11:55:37] william3: has joined #ruby
[11:56:18] william3: has joined #ruby
[11:59:15] william3: has joined #ruby
[12:00:00] mat-svol: has joined #ruby
[12:00:14] jdawgaz: has joined #ruby
[12:01:30] bkxd: has joined #ruby
[12:02:33] conta_: has joined #ruby
[12:05:10] Akuma0n3: has joined #ruby
[12:07:28] pawnbox: has joined #ruby
[12:08:18] Bish: how do i call a class that does certain things on a string
[12:08:25] Bish: like replacing placeholders
[12:08:37] Bish: stupid question and kinda offtopic :D but i don't knooow
[12:09:17] CloCkWeRX: has joined #ruby
[12:09:32] merida_: has joined #ruby
[12:09:47] synthroid: has joined #ruby
[12:10:29] tjbiddle: has joined #ruby
[12:10:53] merida__: has joined #ruby
[12:11:46] giz|work: Bish: helper or util?
[12:11:54] pontiki: has joined #ruby
[12:11:59] Bish: bit too general, do't u think :(?
[12:12:07] giz|work: CharSequencer?
[12:12:15] Bish: what does it sequence? :o
[12:12:35] pontiki: has left #ruby: ()
[12:12:42] apeiros_: CertainThingsOnStringDoer
[12:13:27] apeiros: but I'd probably indeed call it something like MyProject::StringUtils
[12:13:34] Hanmac: has joined #ruby
[12:13:47] Bish: right now it's MyProject::Template::Handler
[12:14:00] Bish: but handler is like helper or util, bit general
[12:14:15] Bish: i like that one
[12:16:43] FooMunki: has joined #ruby
[12:16:52] joseph: has joined #ruby
[12:17:07] djellemah_: has joined #ruby
[12:21:42] terlar: has joined #ruby
[12:22:20] raeoks: has joined #ruby
[12:25:48] mrgrieves: hi, any suggestions on how to make this code to execute faster? https://gist.github.com/dansanabria/04075cba638646ec5550ed8b9496dd54
[12:26:18] mrgrieves: it feels like I'm not being very effcient with the to_s and to_i transformations
[12:26:56] edwinvdgraaf: has joined #ruby
[12:29:08] _stu_: has joined #ruby
[12:30:02] william3: has joined #ruby
[12:31:15] Papierkorb: mrgrieves: What is that code supposed to do?
[12:32:26] mrgrieves: Papierkorb: recursive sum of all the digits in a number all the way until you end up with 1 digit
[12:32:48] callen92: has joined #ruby
[12:33:05] mrgrieves: i.e. 123 -> 6 , 4444 -> 16 -> 7
[12:33:17] Xeago: has joined #ruby
[12:33:34] apeiros: mrgrieves: in newer rubies, I'd expect a.map(&:to_i).inject(:+) to be faster
[12:33:38] william3: has joined #ruby
[12:34:30] Bish: whats the poinf of such a function
[12:34:46] mrgrieves: apeiros: I think we have discuss the & character in the past, could you refresh my mind re what it does?
[12:35:03] apeiros: it tells ruby to treat the passed object as a block
[12:35:10] Rubie: has joined #ruby
[12:35:12] apeiros: and if the object isn't a proc, it'll call to_proc on it
[12:35:13] tubuliferous_: has joined #ruby
[12:35:25] apeiros: (since only procs can be converted to blocks)
[12:35:39] Bish: mrgrieves: and symbols to_proc does create a proc, that calls the method symbolized by it
[12:35:58] apeiros: and in effect, it means that `ary.map(&:to_i)` performs the same as `ary.map { |x| x.to_i }`
[12:36:09] Spami: has joined #ruby
[12:36:14] Bish: &:foo => { |x| x.foo }
[12:37:55] apeiros: note that the & is intentionally missing with inject(:+)
[12:38:49] pawnbox: has joined #ruby
[12:40:21] Papierkorb: mrgrieves: baked something for you https://gist.github.com/Papierkorb/83cf3c096605929781d576a0f2259158
[12:40:50] Papierkorb: mrgrieves: #one is the implementation which apeiros suggested basically, #two is yours
[12:41:37] sepp2k: has joined #ruby
[12:41:38] Papierkorb: mrgrieves: Um are you sure there's no infinite loop in your implementation?
[12:41:42] boomsie: has joined #ruby
[12:42:44] jdawgaz: has joined #ruby
[12:43:02] Giauzar: has joined #ruby
[12:46:23] boomsie: I've got a string of the following form: "Server names.\nNum Mode Status Domain Serving Name\n1 ABB online DOMAIN1 machine1" (where there are many lines worth of entries like the last line) and I want to to extract a list of pairs of machine modes and names. I've got some basic stuff trying to do this here, but so far I've only managed to extract the machine name, and I also get stuff from the first two lines (and the
[12:46:29] boomsie: http://pastebin.com/2SiHmSeu Would appreciate any help! :-)
[12:46:30] ruby[bot]: boomsie: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/807d625136651867194079eb9fa03093
[12:46:31] ruby[bot]: boomsie: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[12:46:44] mrgrieves: well it's definetely faster - the testsuite doesn't time out now
[12:47:33] mrgrieves: Papierkorb: I don't think so but not sure -- also, any reasons why you do to_a when chars returns an array already?
[12:48:18] Papierkorb: mrgrieves: Oh I thought String#chars returned a Enumerator, confused it with String#each_char. So no reason for the #to_a's to be there :)
[12:49:11] mrgrieves: thanks guys, I need to get my head around the & explanation i.e. get used to it
[12:49:41] william3: has joined #ruby
[12:50:22] madgen: has joined #ruby
[12:50:24] Papierkorb: mrgrieves: Oh and to come back to your question from before, as in, if #to_s and #to_i is really necessary
[12:51:05] kadoppe: has joined #ruby
[12:51:06] mat-svol: has joined #ruby
[12:51:07] Papierkorb: mrgrieves: There's not really a better way AFAIK. There's nothing built in for it, and doing the divide-by-10 dance will be much slower in ruby.
[12:52:40] mrgrieves: cheers Papierkorb
[12:53:03] arup_r: has left #ruby: ()
[12:54:31] toretore: has joined #ruby
[12:54:48] flashpoint9: has joined #ruby
[12:54:59] Papierkorb: mrgrieves: Oh and in your code, you assign a to i, but never change a so it will loop forever
[12:55:22] acosonic: Hi all, so I narrowed down my object structure to this http://apaste.info/Pn8 how do I access @value ?
[12:55:26] modin: has joined #ruby
[12:55:51] malconis: has joined #ruby
[12:56:26] duckpupp1: has joined #ruby
[12:56:34] malconis: has joined #ruby
[12:56:49] Guest91: has joined #ruby
[12:56:51] giz|work: has joined #ruby
[12:57:00] ChiefAlexander: has joined #ruby
[12:57:38] juanca_: has joined #ruby
[12:58:26] evidex: has joined #ruby
[12:58:53] johnny56: has joined #ruby
[12:58:59] meraxes: has joined #ruby
[12:58:59] merida: has joined #ruby
[12:59:13] joneshf-laptop: has joined #ruby
[12:59:38] ChiefAlexander: has joined #ruby
[12:59:47] CloCkWeRX: has left #ruby: ()
[13:00:43] e-jambon: has joined #ruby
[13:00:59] boomsie: Can anyone see why this regex isn't working? http://pastebin.com/Q3rfMghZ I don't get any errors or anything, but nothing prints...
[13:00:59] ruby[bot]: boomsie: as I told you already, please use https://gist.github.com
[13:01:06] ramortegui: has joined #ruby
[13:01:50] kareeoleez: has joined #ruby
[13:02:01] kadoppe: has joined #ruby
[13:02:05] jaruga__: has joined #ruby
[13:03:00] tjbiddle: has joined #ruby
[13:04:06] boomsie: Does the gist.github bot slap-on-the-wrist stop my question from posting? I'd rather not sign up to github...
[13:04:26] workmad3: boomsie: you don't need to sign up to github to using gist
[13:04:31] Papierkorb: boomsie: you can create anonymous gists
[13:04:55] Papierkorb: boomsie: or use pastie.net (I think it was). But prefer gists, please :)
[13:04:56] workmad3: boomsie: although for regexp questions, rubular is a better suggestion
[13:04:59] Stan: has joined #ruby
[13:05:20] GodFather: has joined #ruby
[13:05:45] al2o3-cr: boomsie: data.split("\n")[2..-1].each { |line| mode, name = line.split.values_at(1,-1); puts "mode: #{mode} serving name: #{name}" } #something like this
[13:06:03] boomsie: Ah, I didn't know you could use gist anonymously -- apologies for being ignorant!
[13:06:54] ekinmur: has joined #ruby
[13:08:47] karmatr0n: has joined #ruby
[13:09:24] bkxd: has joined #ruby
[13:10:05] pawnbox: has joined #ruby
[13:10:26] william3: has joined #ruby
[13:10:39] pawnbox: has joined #ruby
[13:13:07] juanca99: has joined #ruby
[13:13:54] freerobby: has joined #ruby
[13:14:24] bkxd_: has joined #ruby
[13:16:12] Xeago: has joined #ruby
[13:16:45] sdothum: has joined #ruby
[13:17:29] ekinmur: has joined #ruby
[13:22:40] Spami: has joined #ruby
[13:23:02] Infra-Red: has joined #ruby
[13:23:51] fmcgeough: has joined #ruby
[13:24:03] Infra-Red: has joined #ruby
[13:25:12] antgel: has joined #ruby
[13:25:46] william3: has joined #ruby
[13:26:13] rbennacer: has joined #ruby
[13:27:35] tyang: has joined #ruby
[13:27:39] eljimmy: has joined #ruby
[13:28:03] ekinmur: has joined #ruby
[13:29:03] chagel: has joined #ruby
[13:30:56] freerobby: has joined #ruby
[13:31:02] evidex: has joined #ruby
[13:31:12] cdg: has joined #ruby
[13:31:19] hotpancakes: has joined #ruby
[13:33:46] workmad3_: has joined #ruby
[13:33:48] decoponyo: has joined #ruby
[13:33:58] jud^: has joined #ruby
[13:34:11] duderonomy: has joined #ruby
[13:34:14] hakunin_: has joined #ruby
[13:34:23] hotpanca_: has joined #ruby
[13:34:31] brunto_: has joined #ruby
[13:35:03] Waqas: has joined #ruby
[13:35:08] jinie_: has joined #ruby
[13:35:39] perryh: has joined #ruby
[13:35:39] perryh: has joined #ruby
[13:35:50] sgambino: has joined #ruby
[13:36:10] Infra-Red: has joined #ruby
[13:36:44] Skelz0r_: has joined #ruby
[13:36:54] LowLifePerv: has joined #ruby
[13:37:30] Xeago: has joined #ruby
[13:37:36] tmtwd: has joined #ruby
[13:37:59] galeido^: has joined #ruby
[13:37:59] futilegames: has joined #ruby
[13:38:00] rolha: has joined #ruby
[13:38:06] Samiz: has joined #ruby
[13:38:13] bitemyap1: has joined #ruby
[13:38:15] rolha: has left #ruby: ()
[13:38:18] cybrside_: has joined #ruby
[13:38:21] bkxd: has joined #ruby
[13:38:34] m4rCsi: has joined #ruby
[13:38:40] Jamo_: has joined #ruby
[13:38:44] croberts: has joined #ruby
[13:38:53] Kim^J_: has joined #ruby
[13:38:59] tw1sted_: has joined #ruby
[13:38:59] bnagy_: has joined #ruby
[13:39:10] skakri`: has joined #ruby
[13:39:14] blaxter: has joined #ruby
[13:39:21] irick_: has joined #ruby
[13:39:24] hinbody_: has joined #ruby
[13:39:40] juanca_: has joined #ruby
[13:39:45] Infra-Red: has joined #ruby
[13:39:51] BSaboia: has joined #ruby
[13:39:54] sesquipe1: has joined #ruby
[13:40:13] Waqas: has joined #ruby
[13:40:25] reaVer_: has joined #ruby
[13:40:29] swills: has joined #ruby
[13:40:43] snoobydoo: has joined #ruby
[13:41:08] sapslaj_: has joined #ruby
[13:41:13] _kfpratt: has joined #ruby
[13:41:15] valeri_uF0: has joined #ruby
[13:41:34] _ko10: has joined #ruby
[13:42:07] cdg: has joined #ruby
[13:42:10] Amnez777-: has joined #ruby
[13:42:19] Lildirt|SomeoneT: has joined #ruby
[13:42:32] Gutenberg: has joined #ruby
[13:42:33] Gutenberg: has joined #ruby
[13:43:08] gaffo: has joined #ruby
[13:43:16] bruno-: has joined #ruby
[13:43:25] mburns_: has joined #ruby
[13:43:25] braidn_: has joined #ruby
[13:44:13] charliesome: has joined #ruby
[13:45:25] apes: has joined #ruby
[13:45:40] jzigmund: has joined #ruby
[13:46:08] michael_mbp: has joined #ruby
[13:46:15] william3: has joined #ruby
[13:47:40] hotpanca_: has joined #ruby
[13:47:43] brunto: has joined #ruby
[13:48:04] blaxter: has joined #ruby
[13:48:36] mustmodify_: has joined #ruby
[13:49:21] lsmola: has joined #ruby
[13:49:45] Emmanuel_Chanel: has joined #ruby
[13:49:58] zapata: has joined #ruby
[13:50:00] djcp: has joined #ruby
[13:50:00] Es0teric: has joined #ruby
[13:50:16] mustmodify_: String#scan gives me "ArgumentError: invalid byte sequence in UTF-8". Is it likely that the file isn't encoded in UTF-8 but it's being converted / handled by ruby and this one (or these several) characters can't be converted? When I use `chardet file.hl7` I get "windows-1252 (confidence: 0.50)"
[13:50:52] Canar: has joined #ruby
[13:50:56] lema: has joined #ruby
[13:51:00] Sou|cutter: has joined #ruby
[13:51:04] coyo: has joined #ruby
[13:51:06] Adam_FrVancouver: has joined #ruby
[13:51:38] myntcake: has joined #ruby
[13:51:54] apeiros: mustmodify_: ruby does not convert anything unless you tell it to do so.
[13:52:04] patrick_star_3: has joined #ruby
[13:52:28] apeiros: ruby does however set the encoding flag to whichever value you provided (either by default, or by explicitly setting it), and some operations require the encoding to be valid.
[13:52:38] Devalo: has joined #ruby
[13:52:48] bmf: has joined #ruby
[13:53:26] apeiros: so your solution here is: figure out which encoding it is (i.e. verify that it is indeed windows-1252), then tell ruby that the string's encoding is that. how to do that depends on how you retrieve the string.
[13:53:38] linduxed: has joined #ruby
[13:54:53] mustmodify_: apeiros: I've done some work with encoding but not a lot... how would I verify the encoding other than to write to the author? (which I am doing now, but they respond with amazing slowness.)
[13:55:03] hs366: has joined #ruby
[13:58:33] giz|work: mustmodify_: simply try it out? ... string.force_encoding('windows-1252')
[13:58:44] giz|work: then check the üäö :P
[13:58:47] workmad3: mustmodify_: writing to the author is the only properly reliable way
[13:59:02] griffindy: has joined #ruby
[13:59:03] bkxd: has joined #ruby
[13:59:19] workmad3: mustmodify_: anything else, you're relying on heuristics and guesses
[14:00:00] mustmodify_: workmad3: that's what I was thinking
[14:00:07] mustmodify_: giz|work: thanks, I'll do that.
[14:00:31] flashpoint9: has joined #ruby
[14:00:41] workmad3: especially when you're dealing with encodings that map the extended-ascii set to fit in a single byte, as then you'll find that every possible bit sequence is valid for all those encodings and you have to look at it to figure out if it's correct
[14:01:15] workmad3: and you may easily find multiple encodings that look 'right' for your sample, and not know which one to use :)
[14:02:25] Macaveli: has joined #ruby
[14:04:06] apeiros: mustmodify: depends. if it's plaintext - use any editor which lets you state the encoding of the file. check for special characters and whether they fit.
[14:04:41] abyx: has joined #ruby
[14:04:59] aspiers: has joined #ruby
[14:06:14] vbatts|work: has left #ruby: ("found the other side of the rainbow")
[14:06:15] terlar: has joined #ruby
[14:06:34] Xeago: has joined #ruby
[14:07:21] dhinojosa: has joined #ruby
[14:07:36] mustmodify: giz|work: forcing the encoding to what Ubuntu guessed worked. Thanks.
[14:07:59] mustmodify: Windows people are like "Of course everyone would want a windows encoding."
[14:08:56] kareeoleez: has joined #ruby
[14:09:23] pandaant: has joined #ruby
[14:09:32] IrishGringo: has joined #ruby
[14:09:37] SilverKey: has joined #ruby
[14:09:55] yorickpeterse: If your environment is already messed up using a messed up encoding isn't going to make things much worse
[14:11:32] krz: has joined #ruby
[14:11:40] Karix: has joined #ruby
[14:12:53] bruno-: has joined #ruby
[14:14:09] william3: has joined #ruby
[14:17:28] sandelius: has joined #ruby
[14:19:05] jgt: has joined #ruby
[14:19:13] Xeago: has joined #ruby
[14:19:16] openstruct: has joined #ruby
[14:21:53] tyang: has joined #ruby
[14:22:18] pabs: has joined #ruby
[14:25:45] Kus: has joined #ruby
[14:27:09] jhack: has joined #ruby
[14:27:41] Xeago: has joined #ruby
[14:29:23] marktwo: has left #ruby: ("WeeChat 1.5-dev")
[14:29:41] marktwo: has joined #ruby
[14:31:42] jolts: has joined #ruby
[14:31:54] smatic_1111: has joined #ruby
[14:32:16] william3: has joined #ruby
[14:32:40] kadoppe: has joined #ruby
[14:33:03] jolts: has joined #ruby
[14:33:18] charliesome: has joined #ruby
[14:34:23] Xeago: has joined #ruby
[14:34:24] OTORelic: has joined #ruby
[14:35:10] hotpancakes: has joined #ruby
[14:35:26] Infra-Red: has joined #ruby
[14:35:39] chouhoulis: has joined #ruby
[14:36:28] n008f4g_: has joined #ruby
[14:36:41] conta_: has joined #ruby
[14:37:04] flashpoint9: has joined #ruby
[14:37:46] aeterne: has joined #ruby
[14:38:41] mustmodify: so ... if I don't to String#force_encoding, what encoding does it assume?
[14:39:14] mustmodify: I ask because when I do force_encoding('windows-1252') it works, but it also works when I do force_encoding('utf-8')
[14:39:33] Xeago: has joined #ruby
[14:39:47] Skelz0r: has joined #ruby
[14:40:04] eam: mustmodify: you can use #encoding to check the encoding. It depends on where your String object comes from
[14:40:08] Waqas: has joined #ruby
[14:40:16] senayar: has joined #ruby
[14:40:16] senayar: has joined #ruby
[14:40:18] crankharder: has joined #ruby
[14:40:27] solocshaw: has joined #ruby
[14:40:29] Es0teric: has joined #ruby
[14:40:37] prestorium: has joined #ruby
[14:40:38] idletask: has joined #ruby
[14:40:47] snoobydoo: has joined #ruby
[14:41:30] tw1sted: has joined #ruby
[14:41:59] mustmodify: also, falling under the category of "disturbing but also understandable", googling "ruby force-encoding" results in two stack overflow results BEFORE the ruby docs.
[14:42:39] joneshf-laptop: has joined #ruby
[14:43:42] giz|work: mustmodify: i would look at the bytes of the text you get for umlauts
[14:44:09] Devalo: has joined #ruby
[14:44:31] giz|work: or just try with some text where encoding matters, and look at the rendering for both encodings... one is broken, one is correct :)
[14:44:44] Nuck: has joined #ruby
[14:44:57] giz|work: this reminds me of a project where two different encodings were used in one mysql table!
[14:45:07] LoneHermit: has joined #ruby
[14:46:32] jottr: has joined #ruby
[14:47:43] proreptilian: has joined #ruby
[14:47:57] mustmodify: giz|work: unfortunate
[14:48:45] SilverKey: has joined #ruby
[14:48:56] hinbody: has joined #ruby
[14:49:12] bronson: has joined #ruby
[14:49:23] william3: has joined #ruby
[14:50:41] agentmeerkat: has joined #ruby
[14:51:29] coyo: has joined #ruby
[14:51:37] smathy: has joined #ruby
[14:51:46] Xeago: has joined #ruby
[14:53:05] smatic_1111: has joined #ruby
[14:53:43] fedexo: has joined #ruby
[14:54:41] machinewar: has joined #ruby
[14:54:43] ekinmur: has joined #ruby
[14:54:56] machinewar: does anyone recognize this encoding by any chance 1xO0a
[14:55:49] Rubie: has joined #ruby
[14:56:14] Waqas: has joined #ruby
[14:57:17] Xeago: has joined #ruby
[14:57:33] marktwo: has joined #ruby
[14:57:54] aeterne: has joined #ruby
[14:58:49] smathy: machinewar, one "x" "o" zero "a" ? You sure?
[14:58:50] null__: has joined #ruby
[14:59:33] aegis3121: has joined #ruby
[14:59:50] machinewar: smathy: "1xo0a" yes
[15:00:02] machinewar: saw it as url parameter in log
[15:01:08] smathy: 0a is obviously familiar, but nothing else makes sense as an encoding.
[15:01:24] machinewar: apeiros: lol if its ascii then its just garbage lol
[15:01:33] apeiros: machinewar: probably
[15:01:33] machinewar: smathy: yea im stumped not quite sure what it could be
[15:01:36] apeiros: but it is just ascii.
[15:01:45] snoobydoo: has joined #ruby
[15:02:25] apeiros: it's no utf-8 sequence, as those are >0x7f, it's not utf-16 or -32 as those would have an even number of bytes (you have 5)
[15:02:29] machinewar: apeiros: I know its ascii I don't care about how its encoded in memory, but curious if its been base64 encoded, url-encoded etc
[15:02:46] apeiros: it's not base64, it's not url-encoded
[15:02:57] machinewar: apeiros: correct, thats why im trying to figure out what it could be
[15:03:25] platzhirsch: has joined #ruby
[15:03:27] platzhirsch: has left #ruby: ()
[15:04:35] smathy: machinewar, there's no "o" in any encoding, maybe just some mime.
[15:04:46] marktwo: has joined #ruby
[15:04:49] machinewar: smathy: okay thanks!
[15:05:22] stannard: has joined #ruby
[15:05:56] Xeago: has joined #ruby
[15:08:08] icedragon: well, rubydoc.info is broken again fml :(
[15:08:33] smathy: IceDragon, seems to wfm
[15:08:35] icedragon: http://www.rubydoc.info/find/github?q=moon-logfmt
[15:08:41] icedragon: try refreshing this for me then
[15:08:58] icedragon: ^_^ pls, I'll give you cookies (ruby ones)
[15:09:07] smathy: Oh, _that_ sort of broken.
[15:09:31] icedragon: smathy.inventory << Cookie.new
[15:10:11] marktwo: has joined #ruby
[15:10:21] astrobunny: has joined #ruby
[15:10:32] sgambino: has joined #ruby
[15:11:49] aeterne: has joined #ruby
[15:11:50] icedragon: looks like it refreshed properly
[15:12:02] null__: has joined #ruby
[15:12:40] william3: has joined #ruby
[15:12:45] weemsledeux: has joined #ruby
[15:13:12] ljames: has joined #ruby
[15:14:09] x77686d: has joined #ruby
[15:15:57] smathy: Cool, humpday looking up.
[15:16:04] Trynemjoel: has joined #ruby
[15:16:43] gregf: has joined #ruby
[15:16:56] stannard: has joined #ruby
[15:17:02] crameth: has joined #ruby
[15:17:22] e-r-a: has left #ruby: ()
[15:19:10] crameth: has joined #ruby
[15:21:21] shredding: has joined #ruby
[15:21:23] qwikturn: has joined #ruby
[15:22:22] baweaver: has joined #ruby
[15:22:26] qwikturn: I am trying to convert this PHP function to ruby: http://pastebin.com/CYmEfxrk Any suggestions on how to complete the bitwise xor swap
[15:22:27] ruby[bot]: qwikturn: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/6f2bc815e93f54d31257b5bf4a478c01
[15:22:27] ruby[bot]: qwikturn: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[15:24:42] mat-svol: has joined #ruby
[15:24:48] ekinmur: has joined #ruby
[15:25:36] havenwood: ACTION qwikturn: Are you looking for the bitwise xor operator?: http://ruby-doc.org/core/Fixnum.html#method-i-5E
[15:25:42] marktwo: has joined #ruby
[15:25:59] User458764: has joined #ruby
[15:26:00] qwikturn: haverwood: I am trying to do it on a string
[15:26:27] havenwood: qwikturn: Have example input and expected output?
[15:27:11] ekinmur: has joined #ruby
[15:27:29] Ox0dea: &ri String#bytes qwikturn
[15:27:29] `derpy: qwikturn: http://ruby-doc.org/core-2.3.0/String.html#method-i-bytes
[15:27:42] ogpastaling: has joined #ruby
[15:31:18] zeroDivisible: has joined #ruby
[15:31:55] dopieee: has joined #ruby
[15:31:58] marktwo: has joined #ruby
[15:32:56] ereslibre: has joined #ruby
[15:32:56] ereslibre: has joined #ruby
[15:34:02] nobitanobi: has joined #ruby
[15:34:11] havenwood: >> 'qwikturn'.bytes.map { |byte| byte | 7 }.map(&:chr).join
[15:34:12] ruby[bot]: havenwood: # => "wwoowwwo" (https://eval.in/552783)
[15:34:17] lxsameer: has joined #ruby
[15:34:37] Ox0dea: https://eval.in/552784
[15:34:41] madgen_: has joined #ruby
[15:34:58] estudo: has joined #ruby
[15:35:15] cdg_: has joined #ruby
[15:35:20] Infra-Red: has joined #ruby
[15:35:22] havenwood: mmhmm <3 Ruby
[15:35:24] minot: has joined #ruby
[15:35:30] lxsameer: hi, does YARV instructions load in the same memory address each time YARV run a script ?
[15:35:32] kfpratt: has joined #ruby
[15:35:43] aspiers: has joined #ruby
[15:35:58] ChiefAlexander_: has joined #ruby
[15:36:09] Ox0dea: Of course not.
[15:36:11] marktwo: has joined #ruby
[15:36:21] tuelz1: has joined #ruby
[15:36:27] tuelz1: I guess hash_obj.select { |k,v| [1, 2].includes?(k) } might be most concise?
[15:37:22] crdpink: has joined #ruby
[15:37:29] lxsameer: Ox0dea, hmm so what does numbers in the byte code point to ?
[15:37:38] Ox0dea: lxsameer: Which numbers?
[15:37:57] lxsameer: Ox0dea, bytecode
[15:38:00] Ox0dea: This guy.
[15:38:09] Antiarc1: has joined #ruby
[15:38:38] lxsameer: Ox0dea, also ruby uses pages on kernel Virtual Memory right, so it can be possible to load instruction in same the address
[15:38:59] Es0teric: has joined #ruby
[15:39:06] iamvery_: has joined #ruby
[15:39:11] shadeslayer_: has joined #ruby
[15:39:13] Gnubie_: has joined #ruby
[15:39:17] daemonwrangler_: has joined #ruby
[15:39:22] c355E3B_: has joined #ruby
[15:39:56] edwinvdgraaf: has joined #ruby
[15:40:06] Ox0dea: lxsameer: Non-immediate values (anything not a Fixnum or a Symbol) are heap-allocated, and you're hard-pressed to predict the addresses returned to you by any allocator in widespread use.
[15:40:17] unreal_: has joined #ruby
[15:40:33] mat-svol: has joined #ruby
[15:40:44] andersh_: has joined #ruby
[15:40:53] joseph: has joined #ruby
[15:40:55] newjersey: has joined #ruby
[15:41:02] tw1sted: has joined #ruby
[15:41:13] jinie: has joined #ruby
[15:41:28] lxsameer: Ox0dea, hmm, I didn't mean that, tell me this, what is ruby byte code?
[15:41:28] havenwood: >> RubyVM::InstructionSequence.compile('42').to_binary
[15:41:29] ruby[bot]: havenwood: # => "YARB\x02\x00\x00\x00\x03\x00\x00\x00/\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x ...check link for more (https://eval.in/552796)
[15:41:31] mustmodify: has left #ruby: ()
[15:41:48] Ox0dea: lxsameer: Not my department.
[15:42:10] Kim^J: has joined #ruby
[15:42:19] lxsameer: Ox0dea, thanks for your time man, always helpful to talk to you
[15:42:48] william3: has joined #ruby
[15:42:52] lxsameer: havenwood, ok , so byte code == YARV instructions in binary format right ?
[15:42:57] null___: has joined #ruby
[15:42:59] kenichi_: has joined #ruby
[15:43:01] Phanes-: has joined #ruby
[15:43:02] znz_jp0: has joined #ruby
[15:43:15] eam: Ox0dea: actually assuming no aslr or similar things, a program generally should repeat memory locations
[15:43:17] pjaspers_: has joined #ruby
[15:43:18] agent_white: has joined #ruby
[15:43:33] havenwood: lxsameer: Sec, there was a talk at the last RubyConf I'll find for you.
[15:43:33] Ox0dea: >> RubyVM.__id__
[15:43:34] ruby[bot]: Ox0dea: # => 540959400 (https://eval.in/552797)
[15:43:35] Ox0dea: >> RubyVM.__id__
[15:43:36] ruby[bot]: Ox0dea: # => 550879910 (https://eval.in/552798)
[15:43:37] Ox0dea: >> RubyVM.__id__
[15:43:38] ruby[bot]: Ox0dea: # => 551592610 (https://eval.in/552799)
[15:43:42] Ox0dea: Maybe this time.
[15:43:43] Ox0dea: Maybe this time.
[15:43:48] lxsameer: havenwood, i saw that already
[15:43:51] codecop: has joined #ruby
[15:43:51] eam: Ox0dea: "assuming no aslr"
[15:43:54] OTORelic: has joined #ruby
[15:44:06] eam: that's almost certainly running on a system with it
[15:44:13] Ox0dea: eam: Is that a reasonable assumption to make in 2016?
[15:44:26] eam: depends on the cpu architecture and operating system
[15:44:28] lxsameer: eam, what is aslr
[15:44:34] havenwood: lxsameer: "Note that the translated binary data is not portable. You can not move this binary data to another machine. You can not use the binary data which is created by another version/another architecture of Ruby."
[15:44:47] fmcgeough: has joined #ruby
[15:44:52] eam: lxsameer: address space layout randomization - intentionally shuffling around memory addresses
[15:45:06] g3funk: has joined #ruby
[15:45:06] eam: the system under ruby does this
[15:45:23] Ox0dea: "Tell me and I forget. Teach me and I remember. Involve me and I learn."
[15:45:24] tpendragon: has joined #ruby
[15:45:26] eam: but you can turn it off if you want deterministic behavior
[15:46:17] lxsameer: havenwood, I see, As far as i know, the byte code contains some pointers to memory addresses , right?
[15:46:23] havenwood: lxsameer: The latest Rubies have added some nice methods for exploring: http://ruby-doc.org/core/RubyVM/InstructionSequence.html
[15:46:34] lxsameer: eam, aha, linux uses it i assum
[15:46:41] JakFrist: has joined #ruby
[15:46:46] alxgsv: has joined #ruby
[15:46:47] havenwood: >> RubyVM::InstructionSequence.compile('42').disassemble
[15:46:49] ruby[bot]: havenwood: # => "== disasm: #<ISeq:<compiled>@<compiled>>================================\n0000 trace 1 ...check link for more (https://eval.in/552800)
[15:47:03] havenwood: lxsameer: The non-binary version is easier to read ^.
[15:47:04] eam: lxsameer: commonly, yes. but sometimes it causes performance or other issues and is disabled
[15:47:18] Xeago: has joined #ruby
[15:47:35] lxsameer: havenwood, yeah ofcourse , but I'm really confused with binary version
[15:47:38] havenwood: lxsameer: try puts'ing it ^
[15:47:39] eam: I worked on a distributed system once which had a cluster RPC system comprised of firing function pointers out to peer nodes via udp broadcast
[15:48:06] eam: it depended on deterministic load addresses across several hundred peer nodes
[15:48:24] havenwood: lxsameer: What are you finding confusing about it?
[15:48:32] havenwood: lxsameer: Just not being able to parse it?
[15:48:45] eam: needless to say, aslr was disabled in that environment
[15:49:10] marktwo: has joined #ruby
[15:49:11] havenwood: lxsameer: #load_from_binary is good at parsing it :P
[15:49:31] havenwood: Or rather loading an iseq object from it.
[15:49:34] lxsameer: havenwood, no, I'm trying to cache bytecodes, but I can't understand the difference between YARV instructions and bytecode
[15:49:44] havenwood: lxsameer: YARV bytecode?
[15:49:47] jwang: has joined #ruby
[15:50:01] joneshf-laptop: has joined #ruby
[15:50:13] lxsameer: havenwood, YARV instructions vs bytecode
[15:50:16] whiteline: has joined #ruby
[15:50:19] prestorium: has joined #ruby
[15:50:31] Adam_FrVancouver: has joined #ruby
[15:50:41] Devalo: has joined #ruby
[15:50:49] aspiers: has joined #ruby
[15:50:52] bmf: has joined #ruby
[15:51:07] timmyBsd: has joined #ruby
[15:52:12] Hanmac: has joined #ruby
[15:52:13] majoh: has joined #ruby
[15:52:43] havenwood: >> RubyVM::InstructionSequence.compile('42').to_a.last
[15:52:44] ruby[bot]: havenwood: # => [1, [:trace, 1], [:putobject, 42], [:leave]] (https://eval.in/552802)
[15:52:58] jaiks: has joined #ruby
[15:53:08] nando293921: has joined #ruby
[15:53:17] Jonah11_: has joined #ruby
[15:53:31] havenwood: lxsameer: ^ is that the bytecode you're looking for?
[15:53:39] lxsameer: havenwood, ok it's yarv instructions for '42' i meant the last instruction
[15:53:42] programmerq: has joined #ruby
[15:53:48] sauvin: has joined #ruby
[15:53:48] philip__: has joined #ruby
[15:53:54] reaVer: has joined #ruby
[15:53:55] havenwood: lxsameer: I don't follow.
[15:53:58] [Butch]: has joined #ruby
[15:54:19] elifoster: has joined #ruby
[15:54:21] stannard: has joined #ruby
[15:54:22] lxsameer: havenwood, ok let me put it this way
[15:54:36] havenwood: lxsameer: That ^ is YARV bytecode in the sense that it's "[a]n array of arrays containing the instruction names and operands that make up the body of the instruction sequence."
[15:54:55] lxsameer: havenwood, as far as i know that output is called YARV instructions sequence and not the byte code
[15:55:14] lxsameer: havenwood, byte code is a sequence of numbers ( memory pointers ) .
[15:56:16] philip__: Hi! I'm attempting to parse a marshal.dump file into an external app (written in a different language), and am struggling. Is there a simple way to convert marshal.dump into a friendlier format like JSON? I don't speak Ruby.
[15:57:07] modin: has joined #ruby
[15:57:15] havenwood: lxsameer: These are not the bytecodes you're looking for.
[15:57:18] havenwood: ACTION waves hand
[15:57:20] apeiros: philip__: depends. if all datatypes it contains are representable by json, then yes
[15:57:22] apeiros: otherwise: no
[15:57:32] lxsameer: havenwood, hmmmmm thanks man
[15:58:14] apeiros: philip__: File.write(json_path, Marshal.load(File.read(marshal_path)).to_json) would do in case of simple data
[15:58:30] hogetaro: has joined #ruby
[15:58:34] philip__: oooh, thanks apeiros i'll start the journey here
[15:58:39] havenwood: lxsameer: What I showed you is what the docs call YARV bytecode, the bytecode part of the instruction sequence. Using to_binary you can see a serialized instruction sequence.
[15:59:15] agentmeerkat: has joined #ruby
[15:59:19] havenwood: lxsameer: The fourteenth, and last part of a to_a'd instruction sequence is the bytecode.
[15:59:33] careta: has joined #ruby
[15:59:46] careta: hey ruby gods
[15:59:54] lxsameer: havenwood, good info , thanks man
[15:59:54] SilverKey: has joined #ruby
[16:00:04] eshea: has joined #ruby
[16:00:06] havenwood: lxsameer: you're welcome
[16:00:18] benlieb: has joined #ruby
[16:00:27] careta: I have a hex string ('deadbabe') that I need to convert into an array to perform calculations - like for example xor each 'de' with a number, then xor 'ad' with another number
[16:00:30] amclain: has joined #ruby
[16:00:42] careta: I've been running around in circles on how to do this - something to do with pack and unpack?
[16:01:01] apeiros: careta: an array of what?
[16:01:02] william3: has joined #ruby
[16:01:09] havenwood: >> 'deadbabe'.bytes.each_cons(2).to_a
[16:01:10] ruby[bot]: havenwood: # => [[100, 101], [101, 97], [97, 100], [100, 98], [98, 97], [97, 98], [98, 101]] (https://eval.in/552806)
[16:01:16] conta_: has joined #ruby
[16:01:31] careta: apeiros, actually that was a bad example - it's an array of hex characters such as 1C57EF79
[16:01:53] apeiros: that actually made things even more confusing
[16:01:58] shinnya: has joined #ruby
[16:02:08] apeiros: "hex characters such as 1C57EF79" - 1C57EF79 is not a character
[16:02:31] careta: each two bytes of that represents a hex number
[16:02:42] careta: I need to iterate through each two bytes, and xor it with another number
[16:03:21] havenwood: >> '1C57EF79'.each_char.each_cons(2).map { |pair| pair.join.to_i(16) ^ 42 }
[16:03:23] ruby[bot]: havenwood: # => [54, 239, 125, 84, 197, 221, 83] (https://eval.in/552811)
[16:03:45] apeiros: havenwood: you want each_slice, no?
[16:03:53] havenwood: apeiros: haha
[16:03:56] havenwood: apeiros: yes...
[16:04:02] havenwood: ACTION goes in search of coffee
[16:04:09] careta: havenwood, seems good!
[16:04:22] careta: why the ^ 42 at the end?
[16:04:25] havenwood: careta: ^ pay heed to what apeiros said... I wasn't thinking clearly!
[16:04:39] havenwood: careta: That an xor of 42, cause you said!
[16:04:59] william3: has joined #ruby
[16:05:01] careta: ah ok the 42 is just an example right?
[16:05:05] aspiers_: has joined #ruby
[16:05:13] havenwood: careta: You must xor by 42, it is our way.
[16:05:20] havenwood: There can be no other number!
[16:05:41] havenwood: careta: Yeah, any number will do. But some are better than other!
[16:06:02] careta: not my fault, it's a retarded algo that I have to implement in ruby
[16:06:10] Devalo: has joined #ruby
[16:06:18] crameth: has joined #ruby
[16:06:18] careta: let me have a look at each_slice then
[16:07:26] baweaver: has joined #ruby
[16:08:05] smathy: ^ raises an exception for any other arg.
[16:10:00] flashpoint9: has joined #ruby
[16:10:19] null__: has joined #ruby
[16:11:10] ekinmur: has joined #ruby
[16:11:58] Ox0dea: >> ['636172657461'].pack 'H*'
[16:11:59] ruby[bot]: Ox0dea: # => "careta" (https://eval.in/552821)
[16:16:28] goodroot: has joined #ruby
[16:19:19] minimalism: has joined #ruby
[16:20:34] Aviio: has joined #ruby
[16:20:59] sandelius: has joined #ruby
[16:23:04] chouhoulis: has joined #ruby
[16:23:15] william3: has joined #ruby
[16:25:52] skweek: has joined #ruby
[16:26:20] nanoz: has joined #ruby
[16:27:52] null__: has joined #ruby
[16:29:13] marktwo: has joined #ruby
[16:29:14] diegoaguilar: has joined #ruby
[16:34:02] finisherr: has joined #ruby
[16:34:15] SilverKey: has joined #ruby
[16:34:19] AndyBotwin: has joined #ruby
[16:34:20] Neksch: has joined #ruby
[16:34:34] william3: has joined #ruby
[16:35:46] ctrlrsf: has joined #ruby
[16:36:02] rcvalle: has joined #ruby
[16:36:39] ddv: has joined #ruby
[16:36:42] tildes_: has joined #ruby
[16:37:59] CoderPuppy: has joined #ruby
[16:38:30] conta_: has joined #ruby
[16:43:44] rclsilver: hello, i defined git sources in a Gemfile.local. target repositories contains .gemspec file. in this case, is there a way to override the version from the .gemspec in my Gemfile.local ?
[16:45:06] rclsilver: i want to use some gem from foreman and katello for a plugin for hammer. to goal is to deploy it at work to to manage satellite (a redhat product). in this case, redhat takes community project and modify original version (ie: community version 0.0.7, rh version 0.0.7.13)
[16:45:50] rclsilver: then i want to pick community version in a dev env, and i would like this version (0.0.7) be resolved to 0.0.7.13
[16:46:18] rclsilver: i have to following line in my Gemfile.local: gem 'hammer_cli', '0.1.4.13', :git => 'https://github.com/theforeman/hammer-cli.git', :tag => '0.1.4
[16:46:27] rclsilver: but when i execute bundle install, the version is not found
[16:46:52] jpfuentes2: has joined #ruby
[16:49:41] Cohedrin: has joined #ruby
[16:50:14] kareeoleez: has joined #ruby
[16:53:20] gasm: has joined #ruby
[16:53:43] banister: has joined #ruby
[16:53:49] Gasher: has joined #ruby
[16:54:01] Infra-Red: has joined #ruby
[16:56:07] gasm: is there a designated rails channel?
[16:56:14] gasm: #rails sends me to ##namespace
[16:56:44] Ox0dea: ?ror gasm
[16:56:45] ruby[bot]: gasm: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[16:57:47] _stu_: has joined #ruby
[16:58:03] _stu_: has left #ruby: ()
[16:58:36] gasm: thanks Ox
[16:58:46] mat-svol: has joined #ruby
[17:00:07] agentmeerkat: has joined #ruby
[17:00:09] Macaveli: has joined #ruby
[17:00:27] aegis3121: has joined #ruby
[17:00:36] nando293921: has joined #ruby
[17:02:24] Suntzu: has joined #ruby
[17:02:39] dcunit3d: has joined #ruby
[17:03:47] tribals: has joined #ruby
[17:03:51] SCHAAP137: has joined #ruby
[17:03:56] djbkd: has joined #ruby
[17:04:38] dionysus69: has joined #ruby
[17:06:06] aspiers_: has joined #ruby
[17:06:31] nodejunkie: has joined #ruby
[17:06:57] Es0teric: has joined #ruby
[17:07:03] agentmeerkat: has joined #ruby
[17:07:19] skweek: has joined #ruby
[17:09:01] wldcordeiro: has joined #ruby
[17:10:13] mikecmpbll: has joined #ruby
[17:10:53] n008f4g_: has joined #ruby
[17:12:50] tribals: how to avoid ugly `#map`'s such as in https://gist.github.com/tribals/55c85c41d41caa266ab6a27aa5eb0421 ?
[17:14:42] tribals: feel free to comment this gist
[17:15:00] tubuliferous_: has joined #ruby
[17:15:37] stannard: has joined #ruby
[17:15:51] devbug: has joined #ruby
[17:16:27] djbkd: has joined #ruby
[17:16:28] smathy: tribals, referring to the hash that you're populating annoys you?
[17:16:30] gooodroot: has joined #ruby
[17:16:30] stannard: has joined #ruby
[17:17:47] tribals: no, typing `hash` multiple times annoy me, i'm sure there is more elegant approach to do that
[17:17:50] lacrosse: has joined #ruby
[17:17:55] babblebre: has joined #ruby
[17:18:03] tyang: has joined #ruby
[17:18:36] Devalo: has joined #ruby
[17:20:09] merida: has joined #ruby
[17:20:14] djbkd: has joined #ruby
[17:21:09] tomchapin: has joined #ruby
[17:21:15] smathy: tribals, umm, call it h instead?
[17:21:31] Gasher^: has joined #ruby
[17:21:45] smathy: tribals, if your map is really as simple as you show you could just put it in a literal hash.
[17:22:30] tribals: smathy: it is simple, but i think putting such a long line into literal is bad
[17:22:40] djbkd: has joined #ruby
[17:23:08] smathy: ...so break it over multiple lines.
[17:23:41] smathy: Added as a comment to your gist.
[17:24:15] anisha: has joined #ruby
[17:26:44] spider-mario: has joined #ruby
[17:26:51] chouhoulis: has joined #ruby
[17:28:06] careta: has joined #ruby
[17:29:11] philip__: apeiros: thanks again for the marshal->json example, it's all working great! :)
[17:30:27] hk238: has joined #ruby
[17:30:36] aspiers_: has joined #ruby
[17:30:40] PedramT: has joined #ruby
[17:30:59] poguez_: has joined #ruby
[17:31:21] binaryplease1: has joined #ruby
[17:32:36] myntcake: has joined #ruby
[17:33:11] edwinvdgraaf: has joined #ruby
[17:33:15] tuelz1: has joined #ruby
[17:33:39] sepp2k: has joined #ruby
[17:33:44] davedev24: has joined #ruby
[17:34:34] Jonah11_: has joined #ruby
[17:35:53] MagePsycho_: has joined #ruby
[17:37:06] charper2: has joined #ruby
[17:37:21] wilbert: has joined #ruby
[17:37:26] philip__: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:41:16] stannard: has joined #ruby
[17:41:58] aegis3121: has joined #ruby
[17:44:30] SilverKey: has joined #ruby
[17:44:36] dcunit3d: has joined #ruby
[17:50:34] Renich: has joined #ruby
[17:51:40] bruno-: has joined #ruby
[17:51:55] bronson: has joined #ruby
[17:52:37] n008f4g_: has joined #ruby
[17:52:54] blandflakes: has joined #ruby
[17:54:05] baweaver: has joined #ruby
[17:54:20] Rasi: has joined #ruby
[17:56:14] Xeago: has joined #ruby
[17:56:46] JakFrist: has joined #ruby
[17:57:13] SCHAAP137: has joined #ruby
[17:57:26] diegoaguilar: has joined #ruby
[17:58:00] gasm: has joined #ruby
[17:58:37] boboc: has joined #ruby
[17:58:49] giz|work: has joined #ruby
[18:00:34] eshear: has joined #ruby
[18:02:46] havenwood: n1colas: hi
[18:03:41] n1colas: Hi havenwood
[18:03:49] marktwo: has joined #ruby
[18:05:20] raeoks: has joined #ruby
[18:06:08] Frem: has joined #ruby
[18:06:58] naftilos76: has joined #ruby
[18:07:09] phredus: has joined #ruby
[18:07:39] jackjackdripper: has joined #ruby
[18:07:46] jackjackdripper1: has joined #ruby
[18:07:54] jackjackdripper: has joined #ruby
[18:08:49] ctarx: has joined #ruby
[18:09:28] edwinvdgraaf: has joined #ruby
[18:12:34] ramfjord: has joined #ruby
[18:14:27] pawnbox: has joined #ruby
[18:14:29] tuelz1: has joined #ruby
[18:14:40] gevans: has joined #ruby
[18:14:48] jtd: so I have someone logging into something with Devise LDAP with an email string. I'd like to chomp the login so that instead of "bob@thing.com" Devise just gets "bob" so I can use the sAMAccountName LDAP attribute. what's the easiest way to do this?
[18:15:41] apeiros: ?rails jtd
[18:15:41] ruby[bot]: jtd: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[18:15:50] apeiros: probably the better channel wrt devise
[18:15:57] jtd: ah. thanks, I asked this last night but no one mentioned that channel!
[18:16:27] barajasfab: has joined #ruby
[18:16:45] merida: has joined #ruby
[18:16:58] baweaver: has joined #ruby
[18:17:28] shadoi: has joined #ruby
[18:18:11] Nawn: has joined #ruby
[18:19:20] lemur: has joined #ruby
[18:20:16] ur5us: has joined #ruby
[18:20:47] johnny56: has joined #ruby
[18:21:23] LoneHerm_: has joined #ruby
[18:22:05] pwnd_nsfw: has joined #ruby
[18:23:15] M-shine: has joined #ruby
[18:24:12] FooMunki: has joined #ruby
[18:24:20] snoobydoo: has joined #ruby
[18:24:37] vF3hNGxc47h8: has joined #ruby
[18:25:34] Rutix: has joined #ruby
[18:25:34] Rutix: has joined #ruby
[18:26:24] jenrzzz: has joined #ruby
[18:26:24] jenrzzz: has joined #ruby
[18:26:41] jtoy: has joined #ruby
[18:27:04] hoov: has joined #ruby
[18:27:15] dopamean_: has joined #ruby
[18:28:04] symm-: has joined #ruby
[18:28:09] [Butch]: has joined #ruby
[18:29:48] jgt1: has joined #ruby
[18:30:07] dcunit3d: has joined #ruby
[18:32:50] goooodroot: has joined #ruby
[18:33:04] jpfuentes2: has joined #ruby
[18:33:31] M-Kodo: has joined #ruby
[18:36:00] dopie: has joined #ruby
[18:36:38] ctarx_: has joined #ruby
[18:36:39] mozzarel1: has joined #ruby
[18:36:39] Milos|Work: has joined #ruby
[18:36:42] arlek__: has joined #ruby
[18:36:43] Aviio_: has joined #ruby
[18:36:48] PaulCape_: has joined #ruby
[18:36:52] ChiefAlexander: has joined #ruby
[18:36:57] tercenya_: has joined #ruby
[18:37:14] rbennacer: has joined #ruby
[18:37:15] Maletor: has joined #ruby
[18:37:27] Jonah11_: has joined #ruby
[18:37:29] hs367: has joined #ruby
[18:38:04] oz`: has joined #ruby
[18:38:09] jenrzzz_: has joined #ruby
[18:38:32] GG: has joined #ruby
[18:38:35] mat-svol_: has joined #ruby
[18:39:21] pabs: has joined #ruby
[18:39:32] _jolts: has joined #ruby
[18:39:37] diegoviola: has joined #ruby
[18:39:43] a1fa: has joined #ruby
[18:39:56] croberts: has joined #ruby
[18:39:59] kentnl: has joined #ruby
[18:39:59] kentnl: has joined #ruby
[18:40:01] smoose: has joined #ruby
[18:40:03] jolts: has joined #ruby
[18:40:11] ctarx: has joined #ruby
[18:40:28] MagePsycho_: has joined #ruby
[18:40:36] rht: has joined #ruby
[18:40:37] rtl: has joined #ruby
[18:40:43] torandu: has joined #ruby
[18:40:49] madhatter: has joined #ruby
[18:40:50] xsdg: has joined #ruby
[18:40:53] mosez: has joined #ruby
[18:41:00] dhinojosa: has joined #ruby
[18:41:02] LiquidInsect: has joined #ruby
[18:41:06] jolts: has joined #ruby
[18:41:09] pleiosaur: has joined #ruby
[18:41:10] postmodern: has joined #ruby
[18:41:22] crankharder: has joined #ruby
[18:41:23] danjack: has joined #ruby
[18:41:27] careta: has joined #ruby
[18:41:27] apes: has joined #ruby
[18:41:28] lagweezle: has joined #ruby
[18:41:31] danzilio: has joined #ruby
[18:41:54] troter_________: has joined #ruby
[18:42:28] sphex: has joined #ruby
[18:42:58] sarlalian: has joined #ruby
[18:43:51] ellisTAA: has joined #ruby
[18:44:22] ellisTAA: has left #ruby: ()
[18:44:22] podman: has joined #ruby
[18:44:24] jolts: has joined #ruby
[18:44:25] Paradox: has joined #ruby
[18:44:26] klaas: has joined #ruby
[18:44:28] j2k: has joined #ruby
[18:44:33] constantinexvi: has joined #ruby
[18:44:36] shortdudey123: has joined #ruby
[18:44:38] cbetta: has joined #ruby
[18:44:39] yonatankoren: has joined #ruby
[18:44:39] nullwarp: has joined #ruby
[18:44:39] edwardly: has joined #ruby
[18:44:40] edwardly: has joined #ruby
[18:44:40] spacemud: has joined #ruby
[18:44:43] hyperdrive: has joined #ruby
[18:44:43] Vircung: has joined #ruby
[18:44:43] b3nt_pin: has joined #ruby
[18:44:55] jolts: has joined #ruby
[18:44:57] fragtastic: has joined #ruby
[18:45:04] raddazong: has joined #ruby
[18:45:30] bahar: has joined #ruby
[18:45:34] priodev: has joined #ruby
[18:45:45] wlanboy: has joined #ruby
[18:45:58] jolts: has joined #ruby
[18:46:40] jzigmund: has joined #ruby
[18:46:50] gnarld_: has joined #ruby
[18:47:00] mat-svol: has joined #ruby
[18:47:03] raddazong: has joined #ruby
[18:47:12] conta_: has joined #ruby
[18:47:33] funnel: has joined #ruby
[18:47:39] raddazong: has joined #ruby
[18:48:11] jlyndon: has joined #ruby
[18:48:25] brent__: has joined #ruby
[18:48:36] marr: has joined #ruby
[18:48:37] HashNuke_: has joined #ruby
[18:49:47] devbug: has joined #ruby
[18:50:17] poguez_: has joined #ruby
[18:50:41] frode15243: has joined #ruby
[18:50:57] apipkin_: has joined #ruby
[18:51:01] kareeoleez: has joined #ruby
[18:51:02] jord: has joined #ruby
[18:51:52] whiteline: has joined #ruby
[18:52:14] qwikturn: has joined #ruby
[18:52:44] araujo: has joined #ruby
[18:52:51] jevs: has joined #ruby
[18:52:54] montyboy: has joined #ruby
[18:52:58] Xeago: has joined #ruby
[18:52:58] lsmola: has joined #ruby
[18:53:00] bronson: has joined #ruby
[18:53:04] Chunlea: has joined #ruby
[18:53:10] coyo: has joined #ruby
[18:53:10] coyo: has joined #ruby
[18:53:13] mjc_: has joined #ruby
[18:53:29] Silex: has joined #ruby
[18:53:40] mprelude: has joined #ruby
[18:54:11] meinside: has joined #ruby
[18:54:21] ggherdov: has joined #ruby
[18:54:43] al2o3-cr: has joined #ruby
[18:55:02] thesheff17: has joined #ruby
[18:56:00] patrick_star: has joined #ruby
[18:56:24] Milos|Work: I'm getting "Could not find activesupport-4.1.4 in any of the sources" when running `bundle show xxxx` where xxxx is anything.
[18:56:25] Milos|Work: Does anyone know why?
[18:57:15] jmcc________: has joined #ruby
[18:57:17] smathy: Milos|Work, because you haven't run `bundle install` yet?
[18:57:19] SilverKey: has joined #ruby
[18:57:43] jackjackdripper: has joined #ruby
[18:57:53] daxroc: has joined #ruby
[18:58:11] phaza: has joined #ruby
[18:58:39] joast: has joined #ruby
[18:58:42] Cohedrin: has joined #ruby
[18:58:49] bob434: has joined #ruby
[18:59:10] M-mistake: has joined #ruby
[18:59:59] BrunoSaboia: has joined #ruby
[19:00:06] jackjackdripper: has joined #ruby
[19:00:08] n008f4g_: has joined #ruby
[19:00:37] Jonah11_: has joined #ruby
[19:01:25] phredus: has joined #ruby
[19:02:07] Eleeleth: has joined #ruby
[19:02:22] SilverKey: has joined #ruby
[19:03:03] zipkid: has joined #ruby
[19:04:09] pawnbox: has joined #ruby
[19:05:17] bestie: has joined #ruby
[19:06:25] Elysia: has joined #ruby
[19:06:38] jxf: has joined #ruby
[19:06:45] cardoni: has joined #ruby
[19:07:36] Milos|Work: smathy, I have but it was unable to build libv8. I'm guessing that's why. I'm currently trying to modify the source of libv8 and install the gem manually, because of the differences in the clang compiler on Mac OS X 10.11.
[19:08:10] Milos|Work: But every time I implement the workaround and run `bundle install`, it re-pulls the libv8 sources and overwrites my changes.
[19:08:46] S01780: has joined #ruby
[19:08:48] Milos|Work: And for some reason, when I run `gem build libv8-xxxx.gemspec` and then `gem install libv8xxxxx.gem` it deletes its own directory and gives me ENOENT libv8xxxx.gem
[19:09:38] ChiefAlexander: has joined #ruby
[19:10:01] c355E3B: has joined #ruby
[19:10:19] bttf: has joined #ruby
[19:10:23] kirun: has joined #ruby
[19:10:45] kireevco: has joined #ruby
[19:13:29] boxrick1_: has joined #ruby
[19:14:59] CausaMortis: has joined #ruby
[19:15:22] Nawn: has left #ruby: ("Leaving")
[19:17:56] shwouchkster: has joined #ruby
[19:19:19] User458764: has joined #ruby
[19:19:55] mustmodify: has joined #ruby
[19:20:59] dhollinger: has joined #ruby
[19:21:34] tuelz2: has joined #ruby
[19:21:42] baweaver: has joined #ruby
[19:22:29] stannard: has joined #ruby
[19:22:50] stannard: has joined #ruby
[19:24:34] blaxter: has joined #ruby
[19:25:38] riceandbeans: two things, one how similar is the ruby pty to perl expect, and two will ruby pty work on windows when invoking a windows binary through a shell out that make end up requiring powershell?
[19:28:05] Devalo: has joined #ruby
[19:30:28] manveru: riceandbeans: isn't perl expect like tcl expect?
[19:30:38] manveru: riceandbeans: wouldn't you wanna use ruby expect then? :)
[19:30:46] riceandbeans: does ruby have expect?
[19:31:18] helmut: has joined #ruby
[19:31:20] riceandbeans: basically, launch shell, send shell command, create regex for prompt that will be returned, on matching regex send new command, loop
[19:31:24] Jonah11_: has joined #ruby
[19:31:31] VeryBewitching: has joined #ruby
[19:32:42] helmut: hi. I tried cross building ruby and when it enters ext/ripper (during make install-nodoc), it runs the check target with RUBY pointing to the host arch ruby. is there maybe a bug in ext/ripper/depend pointing to the wrong interpreter?
[19:33:07] helmut: and why the heck does the all target depend on the check target?
[19:34:14] pawnbox: has joined #ruby
[19:35:32] djbkd: has joined #ruby
[19:35:54] Synthead: has joined #ruby
[19:35:54] ekinmur: has joined #ruby
[19:35:58] Rubie: has joined #ruby
[19:36:38] arlek_: has joined #ruby
[19:36:54] szulak: has joined #ruby
[19:36:55] skweek: has joined #ruby
[19:38:28] cpup: has joined #ruby
[19:38:37] ekinmur: has joined #ruby
[19:38:42] Kharma: has joined #ruby
[19:38:46] Paradox: has joined #ruby
[19:38:57] moei: has joined #ruby
[19:40:04] smathy: Milos|Work, you probably want to use the --with-system-v8 option, you can configure bundler with something like: bundle config build.libv8 --with-system-v8
[19:40:35] davedev24: has joined #ruby
[19:40:38] Gasher: has joined #ruby
[19:41:32] elusiveother_: has joined #ruby
[19:42:34] p0p0pr37_: has joined #ruby
[19:43:24] bahar_: has joined #ruby
[19:44:26] heinrich5991_: has joined #ruby
[19:44:41] shaman42_: has joined #ruby
[19:46:25] aef: has joined #ruby
[19:46:34] DoubleMalt: has joined #ruby
[19:47:11] ferr: has joined #ruby
[19:48:09] firstdayonthejob: has joined #ruby
[19:48:47] PaulePanter: has joined #ruby
[19:48:57] Lildirt: has joined #ruby
[19:49:00] elusiveother: has joined #ruby
[19:49:23] Kedare: has joined #ruby
[19:49:32] drptbl: has joined #ruby
[19:49:37] sesquipe1: has joined #ruby
[19:50:49] rodfersou: has joined #ruby
[19:51:02] codex: has joined #ruby
[19:51:29] careta: has joined #ruby
[19:52:38] jud: has joined #ruby
[19:53:11] stryek_: has joined #ruby
[19:53:25] ccooke_: has joined #ruby
[19:53:31] last_staff1: has joined #ruby
[19:53:34] devyn_: has joined #ruby
[19:53:42] cloaked1_: has joined #ruby
[19:53:43] pabst: has joined #ruby
[19:53:48] michael_mbp: has joined #ruby
[19:53:49] Ariadeno_: has joined #ruby
[19:53:56] helmut_: has joined #ruby
[19:53:56] trajing: has joined #ruby
[19:54:04] majuscul1: has joined #ruby
[19:54:20] d0nn1e: has joined #ruby
[19:54:26] szulak: has joined #ruby
[19:54:40] icedp: has joined #ruby
[19:54:53] snowy: has joined #ruby
[19:55:25] yqt: has joined #ruby
[19:55:48] jottr: has joined #ruby
[19:56:02] sarbs_: has joined #ruby
[19:56:05] ikonia: has joined #ruby
[19:57:28] PedramT: has joined #ruby
[19:57:54] noService: has joined #ruby
[19:58:31] pleiosau1: has joined #ruby
[19:58:39] M-Techni1: has joined #ruby
[19:58:44] jpfuentes2: has joined #ruby
[19:58:47] FooMunki_: has joined #ruby
[19:58:47] baweaver: has joined #ruby
[19:58:50] cpup: has joined #ruby
[19:59:18] diego_k: has joined #ruby
[20:00:04] UKn0Meh: has joined #ruby
[20:00:27] joeyjones_: has joined #ruby
[20:00:27] lkba: has joined #ruby
[20:00:50] rideh-: has joined #ruby
[20:02:10] Karunamon: has joined #ruby
[20:02:48] SFPT: has joined #ruby
[20:03:17] plantigrade: has joined #ruby
[20:03:32] ghr: has joined #ruby
[20:03:32] ccooke: has joined #ruby
[20:03:32] helmut: has joined #ruby
[20:03:32] kirun: has joined #ruby
[20:03:32] lsmola: has joined #ruby
[20:03:32] constantinexvi: has joined #ruby
[20:03:32] pleiosaur: has joined #ruby
[20:03:32] MagePsycho_: has joined #ruby
[20:03:32] pabs: has joined #ruby
[20:03:32] FooMunki: has joined #ruby
[20:03:32] diegoaguilar: has joined #ruby
[20:03:32] aegis3121: has joined #ruby
[20:03:33] spider-mario: has joined #ruby
[20:03:33] Adam_FrVancouver: has joined #ruby
[20:03:33] gregf: has joined #ruby
[20:03:33] Canar: has joined #ruby
[20:03:33] gaffo: has joined #ruby
[20:03:33] duderonomy: has joined #ruby
[20:03:33] [dmp]: has joined #ruby
[20:03:33] M-Technic: has joined #ruby
[20:03:33] jhass: has joined #ruby
[20:03:33] ldnunes: has joined #ruby
[20:03:33] Outlastsheep: has joined #ruby
[20:03:33] niko: has joined #ruby
[20:03:33] last_staff: has joined #ruby
[20:03:33] cloaked1: has joined #ruby
[20:03:33] Asher: has joined #ruby
[20:03:33] bigkevmcd: has joined #ruby
[20:03:33] matp: has joined #ruby
[20:03:33] evie_hammond: has joined #ruby
[20:03:33] sarbs: has joined #ruby
[20:03:33] KrzaQ: has joined #ruby
[20:03:33] huyderman: has joined #ruby
[20:03:33] majuscule: has joined #ruby
[20:03:33] entropie: has joined #ruby
[20:03:33] drbrain: has joined #ruby
[20:03:33] staticfox: has joined #ruby
[20:03:33] UKn0Me: has joined #ruby
[20:03:34] joeyjones: has joined #ruby
[20:03:34] rideh: has joined #ruby
[20:03:34] devyn: has joined #ruby
[20:03:34] kbni: has joined #ruby
[20:03:34] stryek: has joined #ruby
[20:03:34] avelldiroll: has joined #ruby
[20:03:34] Ariadeno: has joined #ruby
[20:03:34] RIK: has joined #ruby
[20:03:34] Scient: has joined #ruby
[20:03:34] shtirlic: has joined #ruby
[20:03:34] Radar: has joined #ruby
[20:03:34] diegok: has joined #ruby
[20:03:52] SFPT: I have a question:
[20:04:12] Ox0dea: Why does Array have #<=> but not the inequality operators?
[20:04:16] SFPT: What folder should I put the Isaac-master in for ruby to detect it when running a program?
[20:04:19] jhass|off: has joined #ruby
[20:04:27] tobiasvl: Isaac-master?
[20:04:42] SFPT: The folder, for Isaac
[20:04:48] SFPT: :O what was that
[20:05:02] tildes: has joined #ruby
[20:05:14] tobiasvl: what is Isaac
[20:05:20] SFPT: A ruby gem
[20:05:40] SFPT: I have an IRC bot for #cemetech on efnet
[20:05:45] SFPT: I need to run it
[20:05:45] constantinexvi: has joined #ruby
[20:05:49] SFPT: I finished the program
[20:05:57] SFPT: But it cant find isaac
[20:06:02] manveru: riceandbeans: it's in stdlib?
[20:06:20] tobiasvl: SFPT: how did you install this "isaac" gem?
[20:06:38] manveru: riceandbeans: http://ruby-doc.org/stdlib-2.3.0/libdoc/expect/rdoc/IO.html#method-i-expect
[20:06:56] prestorium: has joined #ruby
[20:06:59] KrzaQ: has joined #ruby
[20:07:00] SFPT: Here's the code:
[20:07:02] SFPT: https://gist.github.com/anonymous/23c1171696e0499c69ba3fb8e7b80be7#file-ruby-rb-L17
[20:07:12] SFPT: and here's isaac: https://github.com/vangberg/isaac
[20:07:36] tobiasvl: SFPT: so how did you install the isaac gem?
[20:07:51] SFPT: Went on that page and downloaded the zip
[20:07:55] SFPT: then extracted
[20:08:10] AckZ: has joined #ruby
[20:08:19] SilverKey: has joined #ruby
[20:08:24] jmhmccr: has joined #ruby
[20:08:31] adaedra: SFPT: you usually install gems using `gem install`
[20:08:39] SFPT: gem install?
[20:08:45] lacrosse: has joined #ruby
[20:08:48] gaf_: has joined #ruby
[20:08:52] kbni: has joined #ruby
[20:09:00] adaedra: In your case, `gem install isaac`
[20:09:16] SFPT: in the command prompt, just type in gem install isaac?
[20:09:20] elliottcable: has joined #ruby
[20:09:22] adaedra: But last update in 2009 is not a good signal
[20:09:25] SFPT: Or am I misunderstanding
[20:09:26] adaedra: yep, it's a command.
[20:09:36] LoneHerm_: has joined #ruby
[20:09:56] SFPT: oh my, seems it worked
[20:10:09] SFPT: lets see if UI can run the program now
[20:10:09] mustmodify: I'll google this, just wanted to know if anyone has any experience: Anyone ever directly receive SMTP messages using Ruby? Not using an email server... but directly receiving the messages.
[20:10:30] pizzaops: has joined #ruby
[20:10:37] SFPT: Running the programs, is just "ruby logbotpop.rb"?
[20:10:49] SFPT: but then how would I give it a directory
[20:11:15] adaedra: you can pass command lines parameters after the file name like you would any program
[20:11:17] SFPT: for it to look in?
[20:11:42] tobiasvl: give what a directory?
[20:11:48] FooMunki: has joined #ruby
[20:11:57] Scient: has joined #ruby
[20:11:57] ja: has joined #ruby
[20:11:57] ghr: has joined #ruby
[20:11:57] kirun: has joined #ruby
[20:11:57] lsmola: has joined #ruby
[20:11:57] MagePsycho_: has joined #ruby
[20:11:57] diegoaguilar: has joined #ruby
[20:11:57] aegis3121: has joined #ruby
[20:11:57] spider-mario: has joined #ruby
[20:11:57] duderonomy: has joined #ruby
[20:11:57] ldnunes: has joined #ruby
[20:11:57] niko: has joined #ruby
[20:11:57] Asher: has joined #ruby
[20:11:57] bigkevmcd: has joined #ruby
[20:11:57] matp: has joined #ruby
[20:11:57] huyderman: has joined #ruby
[20:11:58] drbrain: has joined #ruby
[20:11:58] staticfox: has joined #ruby
[20:11:58] RIK: has joined #ruby
[20:11:58] Radar: has joined #ruby
[20:12:03] adaedra: But your code does not seems to need a directory to be given?
[20:12:17] adaedra: You seem confused about what you're doing here
[20:13:29] aegis3121: has joined #ruby
[20:13:35] Ox0dea: Why does Array define #<=> and not include Comparable?
[20:13:46] Yiota: has joined #ruby
[20:13:55] Ox0dea: There must be some logic to that decision, but I can't see it.
[20:14:11] staticfox`: has joined #ruby
[20:14:13] RIK_: has joined #ruby
[20:14:30] SFPT: I'm very confsed.
[20:14:34] william3: has joined #ruby
[20:14:39] drbrain_: has joined #ruby
[20:14:42] pawnbox: has joined #ruby
[20:14:46] SFPT: Well I did the cd commmand and gave it a directory tothe scripts folder
[20:14:49] SFPT: it worked
[20:14:54] mustmodify: SFPT: I have often found that when I do a good job of explaining my confusion, I answer my own questions.
[20:15:00] cdg: has joined #ruby
[20:15:23] SFPT: Well I'm so confused I don't quite know wwhat I'm confused about
[20:15:25] adaedra: mustmodify: rubber duck
[20:15:43] SFPT: I learned ruby from a friend
[20:15:46] adaedra: SFPT: well, try explain to yourself what you're doing.
[20:15:51] SFPT: Vey, very recently
[20:15:54] adaedra: If stuck, try replying to "Why?"
[20:16:03] duderonomy: has joined #ruby
[20:16:19] adaedra: freenode, stop being so instable.
[20:16:43] adaedra: Ox0dea: your questions are flying way too high for us common folks to even try to catch them.
[20:17:13] spider-mario: has joined #ruby
[20:17:13] Ox0dea: adaedra: Huh?
[20:17:14] FooMunki: has joined #ruby
[20:17:39] FooMunki: has joined #ruby
[20:18:00] MagePsycho_: has joined #ruby
[20:18:20] adaedra: Ox0dea: that was not an insult.
[20:19:03] tobiasvl: it's a good question
[20:19:10] tobiasvl: I wonder what the reason is
[20:20:08] Ox0dea: adaedra: Don't people learn about Comparable/#<=> in the same chapter as Enumerable/#each?
[20:20:21] baweaver: has joined #ruby
[20:20:34] adaedra: Well I didn't
[20:20:34] madgen: has joined #ruby
[20:20:46] adaedra: But I learned Ruby in a very weird way
[20:20:47] tubuliferous: has joined #ruby
[20:21:03] huyderman: has joined #ruby
[20:21:14] SFPT: I am now getting the error: logbotpop.rb:4:in '<main>': undefined method 'config' for main:Object (NoMethodError)
[20:21:18] jgt1: has joined #ruby
[20:21:18] Radar: has joined #ruby
[20:21:24] Scient: has joined #ruby
[20:21:29] SFPT: What does this mean?
[20:21:41] Ox0dea: It's bad.
[20:21:45] adaedra: that you're using a method called 'config' but it can't find it.
[20:22:19] adaedra: Guest9427: You're flying off the radars.
[20:22:27] manveru: also that it's on line 4 in the file logbotpop.rb
[20:22:41] SFPT: I'll check it real quick
[20:22:46] Ox0dea: Check it slow.
[20:22:56] helmut_: has left #ruby: ()
[20:23:08] Polysics: has joined #ruby
[20:23:14] SFPT: line 4 is
[20:23:21] SFPT: config do |c|
[20:23:21] adaedra: By the way, you know you work on a code that is clearly showing its old age?
[20:23:23] adavis: has joined #ruby
[20:23:27] Nawn: has joined #ruby
[20:23:29] william3: has joined #ruby
[20:24:09] manveru: seriously, who'd ever define Kernel::config
[20:24:27] manveru: SFPT: you must be missing an include?
[20:24:54] blackgoat: has joined #ruby
[20:24:54] SFPT: hm, I am?
[20:25:03] manveru: or rename it to `configure`
[20:25:14] manveru: and read the isaac readme like me for a second :)
[20:25:35] manveru: https://github.com/vangberg/isaac/blob/master/README.rdoc
[20:26:19] Aviio: has joined #ruby
[20:26:24] ldnunes: has joined #ruby
[20:26:46] SFPT: I'll change it to configure
[20:27:45] adavis: Hi everyone. Is the only way to install rvm via the provided script?
[20:27:45] bruno-: has joined #ruby
[20:27:45] adavis: I'd rather have a more distributible method.
[20:27:46] lomex: has joined #ruby
[20:27:48] SFPT: And now I'm getting a different error.
[20:27:55] SFPT: Oh boy, I hope it's not like this all day
[20:27:58] kadoppe: has joined #ruby
[20:28:04] adaedra: SFPT: take time to read it, every word, before pasting it.
[20:28:05] manveru: SFPT: you new to programming?
[20:28:11] mustmodify_: has joined #ruby
[20:28:18] SFPT: Not new to programming, but new to ruby.
[20:28:25] adaedra: adavis: there are other tools, like rbenv or chruby.
[20:28:25] SFPT: This was my first program in ruby
[20:28:32] adaedra: SFPT: then go read a tutorial first.
[20:28:49] adavis: adaedra: Unfortunately the request was for rvm
[20:28:57] adavis: If the only option is the script I can make do
[20:29:04] matp: has joined #ruby
[20:29:09] kirun: has joined #ruby
[20:29:15] manveru: adavis: it's not the only option, read the script?
[20:29:18] lsmola: has joined #ruby
[20:29:24] niko: has joined #ruby
[20:29:45] Devalo: has joined #ruby
[20:29:55] eshea: has joined #ruby
[20:29:57] adavis: manveru: I'm not a ruby developer
[20:30:04] adavis: as evidenced by my extremely noobish questions in the past
[20:30:08] adavis: and that script is huge
[20:30:14] manveru: but it's in bash
[20:30:20] manveru: no need to know ruby :)
[20:30:27] diegoaguilar: has joined #ruby
[20:30:32] adavis: Oh right it is
[20:30:34] havenwood: adavis: https://rvm.io/rvm/offline
[20:30:38] adavis: Either way it's 890 lines I'd prefer not to read
[20:30:49] adaedra: adavis: nobody does.
[20:30:49] havenwood: adavis: ^ those are instructions for installing RVM offline, and let you do it from a thumb drive or whatever
[20:31:06] adavis: havenwood: Perfect
[20:31:10] havenwood: adavis: Installing chruby and ruby-install like that is very straightforward and covered in the docs.
[20:31:34] eshea: has joined #ruby
[20:31:36] manveru: ACTION just installs ruby via nix
[20:31:48] manveru: you can pry that from my dead cold hands
[20:32:01] adavis: I've not even heard of nix
[20:32:10] havenwood: manveru: ruby-install checksums md5, sha1, sha256 and sha512
[20:32:16] djbkd: has joined #ruby
[20:32:29] havenwood: manveru: very nixy to boot
[20:32:40] manveru: havenwood: why reinvent the wheel
[20:32:49] adavis: manveru: I ask that about rvm in the first place
[20:32:49] manveru: i run nixos anyway
[20:32:56] havenwood: manveru: because the existing wheel is square
[20:32:57] manveru: adavis: exactly
[20:32:59] adavis: and... well, every other package manager
[20:33:12] manveru: havenwood: because nobody knows nix...
[20:33:44] adavis: ACTION knows better than to `yum search nix`
[20:33:44] havenwood: http://3.bp.blogspot.com/-O-dkHHKj72E/TdzNH5YDgqI/AAAAAAAABfM/nIUTwjL_NR8/s1600/mn01.jpg
[20:34:10] adaedra: adavis: of course, it's pacman -Ss nix.
[20:34:13] manveru: adavis: it must be in your repos... if that's redhat
[20:34:14] adavis: havenwood: https://i.ytimg.com/vi/a1jCVIf_WQg/maxresdefault.jpg
[20:34:27] adavis: Hahaha pacman
[20:34:30] manveru: for arch it's just nix, but i think on AUR
[20:34:33] adavis: Yum list nix didn't do it.
[20:34:42] adavis: Searching 'nix' will pull up probably every single package in every repo
[20:34:53] havenwood: manveru: chruby and ruby-install are included in the AUR, ;)
[20:34:54] adavis: EPEL maybe?
[20:35:03] adavis: So, does chruby do the same thing as rvm, essentially?
[20:35:11] adavis: They asked for RVM because it allows them to use ruby 2.x on EL6
[20:35:15] adavis: it's simple and works for them
[20:35:16] havenwood: adavis: RVM does many things.
[20:35:23] adavis: I'm not sure if they have path dependencies in their build scripts though.
[20:35:25] havenwood: adavis: chruby does a small subset of what RVM does
[20:35:25] adaedra: adavis: looked at software collections for EL?
[20:35:30] devbug: has joined #ruby
[20:35:36] Asher: has joined #ruby
[20:35:36] havenwood: adavis: particularly, it switches Rubies
[20:35:39] manveru: havenwood: why install chruby or ruby-install when you can directly install the ruby version you want?
[20:35:39] Ox0dea: adaedra: Careful about conflating "simple" and "easy".
[20:35:44] adavis: I don't think SCL has a ruby 2.0
[20:35:46] BtcBen_: has joined #ruby
[20:35:49] adavis: ruby193 was the latest I saw
[20:35:49] Ox0dea: adaedra: Sorry. That was for adavis.
[20:35:51] adaedra: Ox0dea: mmh?
[20:35:59] havenwood: manveru: dunno if you've see jhass' gist?: https://gist.github.com/jhass/8839655bb038e829fba1
[20:36:01] adaedra: adavis: I think they have some recent ones
[20:36:05] antgel: has joined #ruby
[20:36:13] adavis: http://mirror.centos.org/centos/6/SCL/x86_64/
[20:36:14] SFPT: This error is now "logbotpop.rb:5:in 'block in <main>'; undefined method 'username=' for #<Isaac::Config:0x2ce3e48> (NoMethodError) from C:/Ruby23/lib/ruby/gems/2.3.0/gems/isaac-0.2.6/lib/isaac/bot.rb:20:in 'configure' from (eval):2:in 'configure' from logbotpop.rb:4:in '<main'
[20:36:26] skweek: has joined #ruby
[20:36:26] Canar: has joined #ruby
[20:36:27] havenwood: manveru: But yeah, nice to know how to do things like build your language yourself. ;)
[20:36:30] gregf: has joined #ruby
[20:36:47] adaedra: adavis: https://www.softwarecollections.org/en/scls/?search=ruby
[20:36:55] [dmp]: has joined #ruby
[20:36:56] adaedra: they expanded the thing a bit
[20:37:09] adavis: I wonder if that would work.
[20:37:12] x77686d_: has joined #ruby
[20:37:14] havenwood: ACTION wanders off in search of a burger
[20:37:18] manveru: havenwood: i can also distributed ruby scripts that load their correct version of ruby with dependencies themselves :P
[20:37:20] adavis: There's no precedent for using packages straight from SCL.
[20:37:25] decoponio: has joined #ruby
[20:37:35] adavis: I'm a bit hamstrung in some red tap
[20:37:40] adaedra: Well, it's an alternative; choice is ultimately in your hands.
[20:37:44] adavis: Well not really
[20:37:48] adavis: Choice is in the hands of the developer
[20:37:48] havenwood: manveru: For that task I present!: http://phusion.github.io/traveling-ruby/
[20:37:50] adavis: Who chose RVM :(
[20:37:52] p0p0pr37_: has joined #ruby
[20:37:53] stannard_: has joined #ruby
[20:37:56] evie_hammond: has joined #ruby
[20:38:12] adavis: I'm just supposed to migrate the build environment
[20:38:14] manveru: havenwood: and it works for ruby, python, go, haskell, js, etc...
[20:38:16] havenwood: adavis: RVM ships with MRVM which provides chruby support even. :P
[20:38:35] Jonah11_: has joined #ruby
[20:38:38] i: has joined #ruby
[20:38:42] adavis: Right, but there's no distro package, only the local install
[20:38:50] havenwood: manveru: :)
[20:38:56] uxp_: has joined #ruby
[20:38:59] diprotic: has joined #ruby
[20:38:59] havenwood: adavis: For RVM?
[20:39:08] rickmasta: has joined #ruby
[20:39:11] manveru: havenwood: think big man :)
[20:39:17] dupin: has joined #ruby
[20:39:40] Dreamer3: has joined #ruby
[20:39:47] adavis: havenwood: By the install docs on rvm.io it seems that way.
[20:39:57] manveru: ACTION goes back to forcing bundler into submission
[20:40:01] Utkarsh_: has joined #ruby
[20:40:05] _djbkd: has joined #ruby
[20:40:08] glacius: has joined #ruby
[20:40:17] MuffinPimp_: has joined #ruby
[20:40:21] Rutix`away: has joined #ruby
[20:40:22] Rutix`away: has joined #ruby
[20:41:12] Pisuke: has joined #ruby
[20:41:18] diegok: has joined #ruby
[20:41:27] CausaMortis_: has joined #ruby
[20:41:40] Azure|dc: has joined #ruby
[20:41:45] abort_: has joined #ruby
[20:41:48] neanderslob__: has joined #ruby
[20:41:49] SilverKey: has joined #ruby
[20:41:50] galeido: has joined #ruby
[20:41:54] raenk_: has joined #ruby
[20:41:56] speaking1ode: has joined #ruby
[20:41:59] evidex: has joined #ruby
[20:42:01] s00pcan: has joined #ruby
[20:42:04] yokel_: has joined #ruby
[20:42:11] Sebastia1Thorn: has joined #ruby
[20:42:18] angseus_: has joined #ruby
[20:42:18] sapslaj: has joined #ruby
[20:42:24] Fridtjof-: has joined #ruby
[20:42:36] \13k_: has joined #ruby
[20:42:41] rclsilve1: has joined #ruby
[20:42:50] Renich_: has joined #ruby
[20:42:52] miah_: has joined #ruby
[20:42:53] claws: has joined #ruby
[20:42:59] sulky__: has joined #ruby
[20:43:08] adeponte: has joined #ruby
[20:43:10] bradland_: has joined #ruby
[20:43:19] Dreamer3_: has joined #ruby
[20:43:25] jenrzzz: has joined #ruby
[20:43:25] jenrzzz: has joined #ruby
[20:43:27] ltd_: has joined #ruby
[20:43:51] oz`: has joined #ruby
[20:44:06] snowy: has joined #ruby
[20:44:21] akhkharu: has joined #ruby
[20:44:32] rcs_: has joined #ruby
[20:44:32] ozzloy_: has joined #ruby
[20:44:39] nwhirschfeld: has joined #ruby
[20:44:43] _Suntzu: has joined #ruby
[20:45:01] adavis: has left #ruby: ()
[20:45:03] pawnbox: has joined #ruby
[20:45:29] grumpycat: has joined #ruby
[20:45:38] omninonsense: has joined #ruby
[20:45:44] greenhat|: has joined #ruby
[20:45:50] Tharbakery: has joined #ruby
[20:45:57] KervyN: has joined #ruby
[20:46:12] tvsutton_: has joined #ruby
[20:46:33] techietrash_: has joined #ruby
[20:46:45] Ox0dea: has joined #ruby
[20:46:54] braincra-: has joined #ruby
[20:46:59] Omni: has joined #ruby
[20:47:01] fmcgeough_: has joined #ruby
[20:47:06] Jonah11_: has joined #ruby
[20:47:22] SirFunk_: has joined #ruby
[20:47:25] Davey: has joined #ruby
[20:47:25] Davey: has joined #ruby
[20:47:27] unsymbol_: has joined #ruby
[20:47:31] Guest13810: has joined #ruby
[20:47:39] armyriad: has joined #ruby
[20:47:39] blackgoat: has joined #ruby
[20:47:42] boontdustie: has joined #ruby
[20:47:46] spectra: has joined #ruby
[20:47:46] Muz: has joined #ruby
[20:47:48] df: has joined #ruby
[20:48:25] callumacrae: has joined #ruby
[20:48:30] spikeheadon: has joined #ruby
[20:48:45] Rixius: has joined #ruby
[20:48:52] Maletor: has joined #ruby
[20:48:55] Log1x: has joined #ruby
[20:48:55] aredridel: has joined #ruby
[20:48:57] rgs: has joined #ruby
[20:49:01] yonatankoren: has joined #ruby
[20:49:27] p0p0pr37_: has joined #ruby
[20:49:46] cfloare: has joined #ruby
[20:49:47] martinbjeldbak: has joined #ruby
[20:49:48] cj: has joined #ruby
[20:50:00] cb: has joined #ruby
[20:50:14] mat-svol: has joined #ruby
[20:51:09] benzrf: has joined #ruby
[20:51:37] Outlastsheep: has joined #ruby
[20:51:51] humd1ng3r: has joined #ruby
[20:52:12] yorickpeterse: manveru: just submit
[20:52:28] darix: has joined #ruby
[20:52:35] pocketprotector: has joined #ruby
[20:52:36] dhollinger: has joined #ruby
[20:52:45] imajes: has joined #ruby
[20:53:10] jwang: has joined #ruby
[20:53:30] heinrich5991: has joined #ruby
[20:53:39] shadeslayer: has joined #ruby
[20:53:50] gagrio: has joined #ruby
[20:54:10] programmerq: has joined #ruby
[20:54:13] bronson: has joined #ruby
[20:54:30] mclee: has joined #ruby
[20:54:42] Zackio: has joined #ruby
[20:54:50] Raphal: has joined #ruby
[20:55:51] hplar: has joined #ruby
[20:55:55] flughafen: has joined #ruby
[20:56:39] djbkd: has joined #ruby
[20:56:40] e-jambon: has joined #ruby
[20:57:34] djbkd: has joined #ruby
[20:58:53] djbkd: has joined #ruby
[20:59:06] Radar: has joined #ruby
[20:59:16] manveru: i know it's your baby, but it's been giving me nothing but headaches since it exists
[20:59:51] manveru: so now i'll put it into iron chains and let it dance to my tune :)
[21:00:08] havenwood: manveru: gem install -g and export RUBYGEMS_GEMDEPS=- ;)
[21:00:38] manveru: havenwood: good luck packaging rails apps that way
[21:00:47] havenwood: manveru: s/rails/roda
[21:00:49] nobitanobi: has joined #ruby
[21:01:11] havenwood: manveru: someday...
[21:01:19] manveru: i didn't write them, i just make them run
[21:01:51] manveru: i was hopeful that ramaze would defeat rails too :)
[21:02:34] manveru: now i just wouldn't pick ruby if i was writing new web apps
[21:02:40] careta: has joined #ruby
[21:02:49] singleton_method: has joined #ruby
[21:03:16] manveru: but apps like gitlab and redmine won't go anywhere
[21:03:21] Rubie: has joined #ruby
[21:04:46] kadoppe: has joined #ruby
[21:04:54] Madplatypus: has joined #ruby
[21:05:17] johnmilton: has joined #ruby
[21:06:33] infernix: has joined #ruby
[21:07:30] symm-: has joined #ruby
[21:09:23] Jonah11_: has joined #ruby
[21:09:35] shevy: has joined #ruby
[21:09:55] william3: has joined #ruby
[21:11:56] yfeldblum: has joined #ruby
[21:13:14] mustmodify_: has left #ruby: ()
[21:14:11] Xeago: has joined #ruby
[21:15:01] pawnbox: has joined #ruby
[21:15:20] elifoster: has joined #ruby
[21:17:07] Olipro: why does gets cease to wait for input if I pass an argument to my script on the commandline?
[21:18:06] Jonah11_: has joined #ruby
[21:18:08] Trynemjoel: has joined #ruby
[21:18:53] Cohedrin: has joined #ruby
[21:20:38] jeff-no-nick: has joined #ruby
[21:21:14] Kamilion: has joined #ruby
[21:21:25] Ox0dea: Olipro: Standalone `gets` is actually `ARGF.gets`.
[21:21:35] aegis3121: has joined #ruby
[21:22:20] rbennacer: has joined #ruby
[21:22:52] havenwood: Olipro: STDIN.gets
[21:22:58] Jonah11_: has joined #ruby
[21:23:27] havenwood: Olipro: Or: $stdin.gets
[21:24:34] Olipro: yes, the penny dropped after Ox0dea said it uses ARGF
[21:25:42] Jonah11_: has joined #ruby
[21:29:19] eljimmy: has joined #ruby
[21:29:23] sphex: has joined #ruby
[21:30:14] dcunit3d: has joined #ruby
[21:32:27] Noxilex: has joined #ruby
[21:33:16] rkazak: has joined #ruby
[21:33:19] ChiefAlexander: has joined #ruby
[21:33:40] ItSANgo: has joined #ruby
[21:39:06] baweaver: has joined #ruby
[21:39:19] kareeole_: has joined #ruby
[21:40:10] jackjackdripper: has joined #ruby
[21:40:44] csharper: has joined #ruby
[21:41:19] a1fa_: has joined #ruby
[21:41:22] elifoster: has joined #ruby
[21:41:30] VeryBewitching: has joined #ruby
[21:41:48] diegok: has joined #ruby
[21:42:31] pleiosaur: has joined #ruby
[21:42:40] cloaked1: has joined #ruby
[21:42:44] shadoi: has joined #ruby
[21:42:50] shaman42: has joined #ruby
[21:43:02] drbrain: has joined #ruby
[21:43:27] bruno-: has joined #ruby
[21:44:24] blandflakes: has joined #ruby
[21:44:51] callen92: has joined #ruby
[21:44:58] pawnbox: has joined #ruby
[21:45:41] benlieb: has joined #ruby
[21:45:44] n008f4g_: has joined #ruby
[21:45:49] sarlalian: has joined #ruby
[21:46:23] s2013: has joined #ruby
[21:46:24] icedp: has joined #ruby
[21:46:46] UKn0Me: has joined #ruby
[21:46:48] cpup: has joined #ruby
[21:47:31] Vircung: has joined #ruby
[21:48:25] phredus_: has joined #ruby
[21:48:43] kadoppe: has joined #ruby
[21:48:45] null__: has joined #ruby
[21:49:12] ozzloy: has joined #ruby
[21:49:12] Muz: has joined #ruby
[21:49:31] finisherr: has joined #ruby
[21:50:06] elusiveother: has joined #ruby
[21:50:07] elusiveother: has joined #ruby
[21:50:23] bradland: has joined #ruby
[21:52:35] Paradox: has joined #ruby
[21:53:36] whiteline: has joined #ruby
[21:54:23] BSab: has joined #ruby
[21:55:12] programmerq: has joined #ruby
[21:55:26] FernandoBasso: has joined #ruby
[21:56:25] lsmola: has joined #ruby
[21:57:13] nando293921: has joined #ruby
[21:57:42] LoneHerm_: has joined #ruby
[21:58:37] bob434: has joined #ruby
[21:58:40] madhatter: has joined #ruby
[21:59:14] mostlybadfly: has joined #ruby
[22:02:48] yqt: has joined #ruby
[22:03:15] SilverKey: has joined #ruby
[22:03:26] druonysus: has joined #ruby
[22:03:29] PaulCapestany: has joined #ruby
[22:03:43] druonysus: has joined #ruby
[22:06:50] jenrzzz_: has joined #ruby
[22:07:01] pwnd_nsfw`: has joined #ruby
[22:07:40] marr123: has joined #ruby
[22:08:44] biberu: has joined #ruby
[22:08:50] skweek: has joined #ruby
[22:09:55] m4rCsi: has joined #ruby
[22:10:50] joconcepts: has joined #ruby
[22:11:24] devyn: has joined #ruby
[22:12:02] ccooke: has joined #ruby
[22:12:20] Blue_Ice: has joined #ruby
[22:12:46] banister: has joined #ruby
[22:15:03] pawnbox: has joined #ruby
[22:15:29] mat-svol: has joined #ruby
[22:17:03] lynx_eyes7: has joined #ruby
[22:17:12] Adam_FrVancouver: has joined #ruby
[22:19:36] Asher: has joined #ruby
[22:22:01] jpfuentes2: has joined #ruby
[22:25:43] cajone: has joined #ruby
[22:26:48] PedramT: has joined #ruby
[22:27:44] catpoop: has left #ruby: ("Leaving")
[22:34:22] Devalo: has joined #ruby
[22:35:12] shinnya: has joined #ruby
[22:35:53] eshea: has joined #ruby
[22:36:53] eshea: has joined #ruby
[22:37:54] ICantCook: has joined #ruby
[22:38:18] jdelaney: has joined #ruby
[22:40:04] kadoppe: has joined #ruby
[22:41:31] zenlot6: has joined #ruby
[22:44:43] pawnbox: has joined #ruby
[22:45:01] ur5us: has joined #ruby
[22:45:08] dopie: has joined #ruby
[22:47:27] djbkd: has joined #ruby
[22:50:51] cpup: has joined #ruby
[22:51:33] jenrzzz: has joined #ruby
[22:52:09] GodFather: has joined #ruby
[22:52:18] atom3: has joined #ruby
[22:52:40] watermelone: has joined #ruby
[22:52:45] djbkd: has joined #ruby
[22:53:24] BTRE: has joined #ruby
[22:54:05] _djbkd: has joined #ruby
[22:54:54] pilne: has joined #ruby
[22:55:04] BSaboia: has joined #ruby
[22:55:28] charliesome: has joined #ruby
[22:56:03] bronson: has joined #ruby
[22:57:26] neanderslob: has joined #ruby
[22:58:07] karmatr0n: has joined #ruby
[22:59:05] valetudo: has joined #ruby
[22:59:13] wilbert: has joined #ruby
[22:59:35] pilne: I could use a little pointing in the right direction, because my google-fu is failing me miserably. I'm in love with ruby's semantics, but I'm having a hard time finding as many libraries (gems?) for things I'm trying to do, and I'm not even close to being able to really create them myself. My peers are suggesting I switch to python, but I find it cumbersome and unintuitive compared to ruby (maybe due to my affinty for lisp and
[22:59:35] pilne: languages inspired by it?).
[23:00:00] shevy: wow nobu is superactive wednesday
[23:00:35] tAn: has joined #ruby
[23:00:49] darkf: has joined #ruby
[23:01:00] shevy: pilne python has more devs and users compared to ruby
[23:01:26] darix: pilne: rubygems.org is a good starting point
[23:01:28] smathy: pilne, you know about https://www.ruby-toolbox.com/
[23:01:36] ivanskie: has joined #ruby
[23:01:43] modin: has joined #ruby
[23:01:47] aguynamedben: has joined #ruby
[23:02:02] pilne: i've poked around both of those, I guess if i'm going to take the plunge i'm gonna have to go all-in :) is the preferred "lower level" ffi c++ or c?
[23:02:22] darix: pilne: either
[23:02:26] johnny56: has joined #ruby
[23:02:36] pragmatism: Question for all: do you test the existence or contents of constants?
[23:02:44] wldcordeiro: has joined #ruby
[23:02:52] pragmatism: Or do you treat them like private methods and test the callers?
[23:03:43] pilne: and i guess... if worst comes to worst in some situations, JRuby is looking like it could be useful as well, that is one area where i was a bit disappointed with python when my peers suggeted it (i'm a hobbyist coder, and i can't code at work, but i can google/read)
[23:04:04] chouhoulis: has joined #ruby
[23:04:09] shevy: I am a hobbyist coder too!
[23:04:36] aguynamedben: hello, if anybody is interested in working at a VC firm in San Francisco (First Round Capital), please DM me!
[23:04:45] smathy: pilne, it kind of depends what space you want to go to too. Because of Rails there's a lot of web heavy libs in the ruby world, whereas in other spaces its a bit light.
[23:05:29] pilne: i want to develop good AIs for graphically simple (for now) games
[23:07:24] edwinvdgraaf: has joined #ruby
[23:07:32] pilne: things like interesting AI opponents for card games, that have "unique" ways of playing against the human and each other.
[23:07:40] kadoppe: has joined #ruby
[23:07:52] shevy: now you got a hobby for a profession right there
[23:08:16] pilne: and ruby has been the first language i've dipped my toes into that i didn't feel like I was fighting my brain after getting past "hello world"
[23:08:18] shevy: I found creating games in general to be fairly difficult and time intensive
[23:08:42] shevy: yeah, ruby has a nice way to think
[23:08:56] eshear: has joined #ruby
[23:09:02] shevy: you can also adapt it quite a lot to how you think, rather than the other way
[23:09:03] pilne: i'm also tossing around ideas for a rubik's cube solver that lets you pick the "method" you want to use to solve it, and it will step through the solution using that approach.
[23:09:15] smathy: pilne, I think for AI ruby and python are fairly similar, as you mentioned - you might end up with jruby for that stuff.
[23:09:22] baweaver: has joined #ruby
[23:09:40] pilne: not necesarrily an "optimal" (moves-wise) solution, but one that fits the way you are trying to learn how to solve it yourself.
[23:10:05] pilne: i can live with JRuby for some things, it seems to be trying quite hard to be MRI compatible
[23:11:14] pilne: sweet, now to get comfy with an environment manager in a fearless fashion since i'm already prepared for a clean install when ubuntu 16.04 drops :)
[23:11:18] niko: has joined #ruby
[23:12:04] eshea__: has joined #ruby
[23:12:10] pilne: and while i love monty python, Matz's way of thinking (from what I've read) aligns with mine far more than Guido's (not an insult/bash, just an observation)
[23:12:53] pilne: i've seen rvm and rbenv, are there others i should look into?
[23:13:00] havenwood: pilne: chruby
[23:13:15] eshea: has joined #ruby
[23:13:26] havenwood: pilne: Brightbox also ships Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
[23:14:18] Ox0dea: pilne: What sort of libraries are you left wanting for the sorts of things you've said you'd like to do?
[23:14:54] Ox0dea: I suspect Python doesn't have anything more "drop-in" than Ruby does for card AI or realistic cube solving.
[23:14:59] rkazak: has joined #ruby
[23:15:07] pilne: mostly things that would compare with numpy for using wierd/heavy math to simulate AI
[23:15:29] pilne: but I have only googled and poked around from work for a few hours, it's been quite hectic lately
[23:15:30] Ox0dea: That's an off-the-shell answer, I think.
[23:15:38] mnrmnaugh: has joined #ruby
[23:16:12] pilne: i guess? i'm relatively new again to coding after abandoning CS in college due to hating the java (1.2) they were shoving down my throat.
[23:16:50] Ox0dea: That sucks, but I'd be willing to wager your instructor was worse than the language.
[23:16:59] pilne: just looking to have fun with it, i'm pretty sure i won't notice the lack of that library for a long time if ever, but it was the first kinda thing that crossed my mind.
[23:17:09] pilne: in hindsight i will agree Ox0dea
[23:17:11] CloCkWeRX: has joined #ruby
[23:17:34] pilne: but when yer young, male, surrounded by freedom and beautiful women... you don't have much patience for things that bother you...
[23:17:37] pilne: or at least i didn't LOL
[23:17:57] shevy: not sure how beautiful women can make up for a boring instructor
[23:18:09] pilne: they can distract from the instructor quite easily
[23:18:23] gevans: has joined #ruby
[23:19:11] pilne: ah well, live and learn :) I'm not unhappy with where I've ended up, and I decided to take up coding as a mid-life crisis LMAO
[23:19:13] baweaver: has joined #ruby
[23:19:50] jenrzzz: has joined #ruby
[23:20:58] Zipdot: you and me both, brother
[23:21:07] Zipdot: I am doing C#
[23:21:09] hinbody: has joined #ruby
[23:21:16] Zipdot: now that visual studio 2015 is free beer
[23:23:14] pilne: i've got a buddy trying to convince me to go that route, but i've spent a few years trying to move away from MS stuff myself
[23:23:30] shevy: they give you bash now!
[23:23:32] darix: pilne: you can do c# on linux too
[23:23:33] pilne: especially now since 7 will be dead in 4 years... and i can't stand 8 and 10.
[23:23:45] pilne: yeah i know, still iffy on it lol
[23:24:21] baweaver: Scala or Kotlin
[23:24:23] pilne: i've dipped my toes in less plesant things, but something about ruby just fascinates me
[23:24:27] Zipdot: I'll say this.... the visual studio IDE is hella impressive
[23:24:30] Zipdot: debugging is a joy
[23:24:34] pawnbox: has joined #ruby
[23:24:36] baweaver: Ruby for most scripting
[23:24:53] darix: pilne: about the library thing ... it is probably easy when you ask about specific libraries when you run into things
[23:25:07] darix: Zipdot: try the jetbrains stuff for IDEs
[23:25:09] codezomb: has joined #ruby
[23:25:11] pilne: that makes sense darix, i did come in quite broad....
[23:25:48] charliesome: has joined #ruby
[23:26:24] malconis: has joined #ruby
[23:26:33] pilne: i still do a lot in vim, no extras really yet, but i haven't written anything "intense" yet
[23:26:50] darix: pilne: there are some nice ruby related things for vim especially from tpope
[23:27:05] pilne: i will google and bookmark now :)
[23:27:07] darix: http://vimawesome.com/?q=tag:ruby
[23:27:18] darix: ACTION is using pathogen now for managing vim plugins
[23:27:19] pilne: or just click
[23:27:32] Zipdot: ah, good ol' vim
[23:28:00] pilne: i got hooked on it when i flirted with gentoo when I had a roomie that was a linux addict back in college
[23:28:10] Ox0dea: darix: 8.0 will be shipping with a built-in package manager.
[23:28:20] pilne: live in IT guy that worked for (cheap) beer
[23:28:40] Ox0dea: pilne: Why didn't you marry it?
[23:28:43] dopamean1: has joined #ruby
[23:28:53] darix: Ox0dea: about time ;)
[23:28:57] Ox0dea: pilne: I was being earnest?
[23:29:17] darix: pilne: i can say opensuse has a really good packaging for ruby. but i might be biased
[23:29:18] pilne: erm, was a same-gender roomie, and i'm not wired that way.
[23:29:25] Ox0dea: pilne: I meant Gentoo.
[23:29:35] pilne: oohhhh because i never really learned it myself
[23:29:59] Musashi007: has joined #ruby
[23:30:04] Ox0dea: So "flirted" there meant... watched some shit compile? ;P
[23:30:06] pilne: i just loved being able to rip mp3 while irc-ing, and downloading adult materials without any noticable slowdown.
[23:30:23] pilne: pretty much, he kept my system going
[23:30:42] pilne: and when his parents shipped him off the the Airforce after he dropped out, i went back to win2k
[23:31:55] pilne: but i'm pretty comfy with ubuntu now, but as i read more, i'm a bit irked by a few things about canonical, but i'm not quite sure of myself enough yet to move away from the stupidly easy to find answers to the shit i manage to bork up
[23:31:56] darix: Ox0dea: interesting question will be how much of neovim can flow back into vim.
[23:32:25] Ox0dea: darix: That's... pretty much what's happening?
[23:32:30] Ox0dea: Bram had that particular fire lit under him.
[23:33:53] darix: Ox0dea: i had not much time to follow that. i started packaging neovim at some point. then someone took it over and i had to focus on other things
[23:33:55] DLSteve: has joined #ruby
[23:34:02] watersoul: has joined #ruby
[23:34:43] pilne: O.o this looks quite interesting
[23:34:51] Ox0dea: darix: I reckon the catalyst was his catching so much flak for refusing to upstream the async stuff coming out of Neovim.
[23:35:01] Devalo: has joined #ruby
[23:35:13] Ox0dea: He's Bram, so of course he rolled his own, and that's gone into 8.0.
[23:35:46] kadoppe: has joined #ruby
[23:35:50] darix: opensuse tumbleweed actually has neovim already
[23:37:11] darix: ah no ... still in staging. so soon
[23:37:44] pilne: has anyone read the kindle book on AI's with ruby?
[23:38:14] pilne: http://www.amazon.com/Artificial-Intelligence-Programming-Algorithms-Structures-ebook/dp/B017QCGQ8E/?ie=UTF8&qid=1459384739&sr=8-1&keywords=ruby+artificial+intelligence
[23:38:35] diegoaguilar: has joined #ruby
[23:38:36] Alina-malina: has joined #ruby
[23:38:43] Amnez777: has joined #ruby
[23:39:09] Xeago_: has joined #ruby
[23:39:34] connor_goodwolf: has joined #ruby
[23:39:44] cwenner: has joined #ruby
[23:40:36] pilne: darix: may I PM about opensuse?
[23:40:54] darix: if it isnt too many questions ... it is late night here
[23:41:08] pilne: heh, then may I have a raincheck?
[23:41:38] pilne: i don't think i have a lot, but sometimes once i get started... lol
[23:42:46] shakar: has joined #ruby
[23:43:14] shakar: hello! does anyone know a simple way to bypass or deactivate rbenv in the context of a shell script?
[23:43:42] darix: shakar: call ruby with the full path?
[23:44:21] Ox0dea: >> p ObjectSpace.each_object(Class).count { |c| c.instance_methods.include? :<=> unless c < Comparable }
[23:44:22] ruby[bot]: Ox0dea: # => 310 ...check link for more (https://eval.in/553086)
[23:44:44] Ox0dea: I just don't get it. It's exactly like defining #each and not including Enumerable, isn't it?
[23:45:04] shakar: darix: that doesn't account for things like the gem path
[23:45:18] darix: shakar: #rbenv
[23:45:25] watersoul: has joined #ruby
[23:45:36] darix: one day the obsession with rbenv and friends hopefully will go away
[23:45:48] shakar: darix: there are two people in that chat and no topic.
[23:45:51] LoneHerm_: has joined #ruby
[23:46:45] Ox0dea: shakar: Why do you want to bypass rbenv?
[23:46:57] Sammichmaker: has joined #ruby
[23:47:51] shakar: Ox0dea: there's a build script for metasploit, which works if rbenv is not loaded, but it get's all mixed up by the rbenv env set by files in the metasploit source checkout
[23:49:03] mozzarella: has joined #ruby
[23:50:53] statelesscode: has joined #ruby
[23:50:57] shevy: has joined #ruby
[23:51:15] jdelaney: has joined #ruby
[23:51:49] pilne: are things like rbenv bad though? I've always thought it prudent to isolate my "dev/fun" stuff from my "keeps the system running" stuff???
[23:53:25] darkf_: has joined #ruby
[23:54:03] shakar: pilne: I like it, it works for me (at work). I just expected there to be a one-command way to turn it off
[23:54:42] pawnbox: has joined #ruby
[23:54:48] FooMunki: has joined #ruby
[23:55:09] pilne: I was more referring to darix's comment about "the obsession will fade"
[23:56:57] aguynamedben: rbenv is the only way I roll
[23:57:00] darix: pilne: when ever someone comes here with a ruby problem ... the answer often starts with "install latest ruby via rbenv/chruby... "
[23:57:04] aguynamedben: with the dotenv gem
[23:57:15] darix: while often the distro ruby is fine
[23:57:27] shakar: well in case anyone's interested I think I solved my problem with: export PATH=/usr/bin:$(/usr/bin/ruby -rubygems -e "puts Gem.user_dir")/bin:$PATH
[23:57:32] Ox0dea: darix: What if they want Array#sum? :P
[23:57:49] darix: Ox0dea: zypper in ruby2.3
[23:58:05] Ox0dea: darix: It's a 2.4 thing.
[23:58:24] darix: doing 2.4 snapshot packages is probably not that hard
[23:58:35] havenwood: darix: https://bugs.ruby-lang.org/issues/12222
[23:58:38] darix: maybe something for the weekend
[23:58:53] shevy: pilne well you can ask yourself as to why things like rbenv may be needed
[23:59:32] pilne: i always thought it would be to prevent gems that i want to use for "fun" from causing system issues
[23:59:53] pilne: or to use a newer version than what the official repos for ubuntu have