« Back to channel list

#ruby - 15 September 2015

« Back 1 day Forward 1 day »
[00:00:03] djbkd: has joined #ruby
[00:03:49] K3VA: has joined #ruby
[00:04:59] paulcsmith: has joined #ruby
[00:06:01] saddad: has joined #ruby
[00:07:01] charliesome: has joined #ruby
[00:10:18] codeurge: has joined #ruby
[00:10:47] dopamean_: has joined #ruby
[00:14:22] BenjiWiebe: Ox0dea: Not "still". But I am back now.
[00:14:48] BenjiWiebe: zenspider: Problem was that I had a question, asked it, figured it out myself, and then got an answer that (seemingly) contradicted my own findings.
[00:15:11] BraddPitt: has anyone ever written tests against a Thor project?
[00:15:12] Ox0dea: BenjiWiebe: I was correct in my assumption that bind_param() copies Strings.
[00:15:37] zenspider: BenjiWiebe: kk.
[00:15:52] zenspider: BenjiWiebe: see url above. might be relevant still
[00:16:24] jdawgaz: has joined #ruby
[00:16:33] BenjiWiebe: Ox0dea: But in my code it does *not* copy Strings...??
[00:16:45] BenjiWiebe: zenspider: I don't think it is still relevant. My question is:
[00:16:58] BenjiWiebe: If I prepare a statement, and do stm.bind_param 1, myvalue
[00:17:06] Ox0dea: BenjiWiebe: Can you confirm that you get the same results? https://gist.github.com/0x0dea/240bc27ccdea6ba377f1
[00:17:09] petricore: has joined #ruby
[00:17:18] BenjiWiebe: And then execute. And then change myvalue, and execute again, what happens in the second execution?
[00:18:05] BenjiWiebe: Ox0dea: Yup, same results.
[00:18:14] BenjiWiebe: As in, same results as you got.
[00:18:38] Ox0dea: BenjiWiebe: I can't think how to more minimally demonstrate that prepared statements don't do any whacky magic with local bindings or anything like that.
[00:18:58] zenspider: BenjiWiebe: "change myvalue"... the variable binding or the value it points to? based on Ox0dea's input, I'm guessing the latter
[00:18:59] bmurt: has joined #ruby
[00:19:09] BenjiWiebe: zenspider: The latter.
[00:19:15] zenspider: and the simple answer is: mutating shared values is bad and should be avoided at all costs
[00:19:26] BenjiWiebe: Ox0dea: So then why did my SQLite-timestamp -> ISO8601 converter WORK?
[00:19:36] zenspider: you can always call dup yourself, but Ox0dea poked around and said it dups already
[00:19:57] Ox0dea: zenspider: More precisely, it extracts the C string.
[00:20:03] BenjiWiebe: zenspider: I don't *want* to dup. Have you ever used PHP with mysqli?
[00:20:43] zenspider: BenjiWiebe: Ox0dea's code implies that you don't have to
[00:20:45] BenjiWiebe: zenspider: You can bind params, and it binds by reference. You can change the values and re-execute and your value changes are reflected by the result of the execution.
[00:21:08] juanpablo_: has joined #ruby
[00:21:19] zenspider: I don't believe that based on evidence shown
[00:21:27] shmilan: has joined #ruby
[00:21:39] zenspider: do you have a minimal repro that shows your issue?
[00:21:54] zenspider: preferably a variant of Ox0dea's code
[00:21:56] BenjiWiebe: zenspider: Not quite minimal, but here: http://pastebin.com/D0cHtjG6
[00:21:56] ruboto: BenjiWiebe, as I told you already, please use https://gist.github.com
[00:22:03] BenjiWiebe: Oh, sorry...
[00:22:09] zenspider: ignore the bot
[00:22:15] zenspider: that's annoying
[00:22:35] zenspider: that's really not minimal, can you strip it down?
[00:23:01] BenjiWiebe: I can try...btw, here is the gist link (I intended to use gist in the first place, but had a mindblock about where to paste code...) https://gist.github.com/BenjiWiebe/4132fc6eda372301c98b
[00:23:53] zenspider: I don't care about pastebin vs gist... they're equally fast for me so I don't know what that crap is about
[00:25:28] BenjiWiebe: zenspider, Ox0dea: Terribly sorry to be wasting all your time. Something is horribly wrong with my script.
[00:25:30] chills42: has joined #ruby
[00:25:41] BenjiWiebe: It doesn't change the DB *at all*, much less correctly convert the formats.
[00:25:53] zenspider: no worries. just needs to be standalone in order to be useful
[00:26:04] BenjiWiebe: I simply looked at the resulting DB and the dates were correct, not noticing they were still in the wrong format.
[00:26:27] BenjiWiebe: ACTION is embarrassed and laughing at himself.
[00:27:21] soulcake: has joined #ruby
[00:27:42] BenjiWiebe: OK, it is working now. I just removed the bind_param calls and passed the values to stmt.execute as arguments.
[00:27:56] BenjiWiebe: ACTION was WRONG.
[00:28:10] taylorrf: has joined #ruby
[00:28:19] jdawgaz: has joined #ruby
[00:28:51] Ox0dea: BenjiWiebe: Are you sure the PHP SQLite3 binding let you do whatever it was you were going for there?
[00:29:08] BenjiWiebe: Ox0dea: Not 100% sure since it has been years, but I'm 90% sure.
[00:29:12] Ox0dea: It seems crazy to let prepared statements look into the local variable table.
[00:29:31] BenjiWiebe: Ox0dea: Ever heard of pointers? I think PHP has more of a concept of pointers than Ruby does.
[00:29:38] BenjiWiebe: And uses that in this case.
[00:29:56] gambl0re: has joined #ruby
[00:30:02] Ox0dea: BenjiWiebe: Remember String#replace?
[00:30:26] BenjiWiebe: Ox0dea: I remember, but I don't understand. :)
[00:30:37] BenjiWiebe: http://php.net/manual/en/mysqli-stmt.bind-param.php example number one.
[00:30:48] BenjiWiebe: Shows setting the values to be INSERT'ed *after* binding.
[00:32:09] Ox0dea: Ruby's SQLite3 binding certainly *could* support that approach, but it's better that it doesn't.
[00:32:38] JoshL: has joined #ruby
[00:32:45] BenjiWiebe: Ox0dea: I can live with either way, *as long as it is clearly documented*
[00:33:01] BenjiWiebe: In fact, it would be nice if the Ruby docs would include a warning for those coming from PHP.
[00:33:39] BenjiWiebe: Oh wait, sqlite3-ruby is open-source...if I want those, I might as well submit a pull request myself. :)
[00:33:49] allomov: has joined #ruby
[00:33:57] luckyruby: has joined #ruby
[00:33:59] craysiii: trigger warning, if you will..
[00:34:30] Guest5: has joined #ruby
[00:35:31] baweaver: craysiii: ?
[00:37:01] hfp: has joined #ruby
[00:37:31] hfp_work: has joined #ruby
[00:37:40] sankaber: has joined #ruby
[00:39:55] Oog: has joined #ruby
[00:44:54] Oog: has joined #ruby
[00:45:53] camilasan: has joined #ruby
[00:46:06] saddad: has joined #ruby
[00:47:17] veduardo: has joined #ruby
[00:47:28] havenwood: has joined #ruby
[00:47:31] allcentury: has joined #ruby
[00:49:07] dfockler: has joined #ruby
[00:49:30] choke: has joined #ruby
[00:51:42] tkuchiki: has joined #ruby
[00:55:48] devoldmx: has joined #ruby
[00:57:42] Oog_: has joined #ruby
[01:00:09] drewo: has joined #ruby
[01:08:01] Oog: has joined #ruby
[01:10:35] auzty: has joined #ruby
[01:10:46] blackjid: has joined #ruby
[01:11:14] zack6849: has joined #ruby
[01:11:14] zack6849: has joined #ruby
[01:13:10] Ox0dea: How close can we get to emulating something like libfaketime in pure Ruby?
[01:17:48] beast: has joined #ruby
[01:17:57] keen__________19: has joined #ruby
[01:19:22] NeverDie: has joined #ruby
[01:20:19] bullcitydev: has joined #ruby
[01:20:57] BraddPitt: why not just mock the time
[01:21:07] BraddPitt: instead of creating a middleware layer
[01:21:09] Oog_: has joined #ruby
[01:21:15] Ox0dea: I solemnly swear that I am up to no good.
[01:21:54] juanpablo_: has joined #ruby
[01:23:58] zenspider: Ox0dea: I think the problem is you'd need to redirect all the C calls to your libfaketime too
[01:24:17] shmilan: has joined #ruby
[01:24:25] JohnnyTao: has joined #ruby
[01:28:35] Ox0dea: zenspider: I trust that means I'd end up poking raw memory? It seems neither FFI nor Fiddle provide the means to override C functions.
[01:29:10] blue_deref: has joined #ruby
[01:30:09] zenspider: mmmm... less my expertise, but... it's not just a matter of poking the raw memory... each dynamic library loaded would re-calculate offsets to used symbols
[01:30:36] zenspider: but, you want your lib to be pure ruby... you can't use the usual tricks to do on-the-fly patching.
[01:30:59] zenspider: you'd probably need to write a C shim to call back into ruby for each symbol you want to override, then use the C shim to do all your tricks with
[01:31:00] mleung: has joined #ruby
[01:31:08] zenspider: I dunno... at that point I'm talking out my ass. :)
[01:31:16] zenspider: I'm about as white hat as they come
[01:32:22] Ox0dea: I think even doing this as a C extension is a no-go, since libfaketime relies on being LD_PRELOADed.
[01:32:42] Rubie: has joined #ruby
[01:32:44] zenspider: graphics-1.0.0b4 has been released! https://github.com/zenspider/graphics
[01:33:03] zenspider: please poke at it! I'd love issues filed against it
[01:33:22] zenspider: I'd also love to know what you made with it
[01:33:33] zenspider: I just added a maze generator from Jamis Buck's book
[01:33:37] zenspider: (with permission)
[01:35:13] luckyruby: has joined #ruby
[01:36:34] stardiviner: has joined #ruby
[01:36:42] graydot: has joined #ruby
[01:37:04] chipotle: has joined #ruby
[01:38:04] nettoweb: has joined #ruby
[01:39:36] devbug: has joined #ruby
[01:40:28] dorei: should i follow the ruby style guide and use fail instead of raise ?
[01:41:27] bigmac: has joined #ruby
[01:44:27] soulcake: has joined #ruby
[01:47:09] FreeBleeder: has joined #ruby
[01:47:19] FreeBleeder: php is better
[01:47:29] FreeBleeder: [ace] [spoiler] \13k _5moufl __main__ _aeris_ _axx _ko1 _liquid_ _mh_ _whitelogger `derpy A124 abbe absolutejam abyss AccordLTN AckZ adaedra adam12 adambeynon adamholt AdamMeghji adeponte Adran aep Aeyrix Affix ahuman aibo aibot ajafo ajaiswal akahn akitada al2o3-cr alakran alekst_ alem0lars AlexAltea
[01:47:30] FreeBleeder: alexblom AlexRussia Alina-malina allcentury alol alxndr am11 amclain amitchellbullard ammar an0ma1y andersh anekos angelixd Ankhers AnoHito Antiarc apeiros apipkin Apocalypse arashb araujo arcanez ArchRogem Aria Ariadeno arian0n armyriad artmann Asher ashleyis asi_ aspiers atmosx atom3 AustinMatherne Authenticator auzty avdi avelldiroll
[01:47:31] FreeBleeder: awk axisys Axy Azure BackEndCoder badeball bahar_ bakedb bankair bartj3 bascht bauruine bcavileer beast benaiah benatkin benlakey bestbrents__ bestie bhaak bhorn1 bier bigkevmcd bigmac bihi Billias Biohazard Bish bjeanes bjmllr bkutil_ BlackCoyote blackjid blowmage blue_deref Blue_Ice BLuEGoD blueOxigen bmn bmurts
[01:47:31] havenwood: dorei: Raise in public when you want to be as clear as possible in the vernacular. Fail in private when the subtleties idiolect are appreciated
[01:47:32] FreeBleeder: bnagy bnizzle bodgix bodie_ bootstrappm borkdude bougyman bourbon bove BraddPitt bradland braidn braincra- brainslug Brando753 brandon brixen bruno- bryancp bttf bubbys bubuntu_ bullcitydev bw_ bweston92 c0ncealed Caelum Caius cajone calleerlandsson callumacrae camilasan camt Cantaberry canton7 capin cardoni catbusters cats cball
[01:47:33] FreeBleeder: cbednarski cbetta ccooke certainty cescalante cfloare cFouts cgfbee cgrieger^away charles81 charliesome ChasedSpade chihhsin chills42 chinmay_dd chipotle chridal chris2 chrisarcand chrisseaton chuy CHVNX cibs cina cj cjk101010 ckinniburgh_ ckrailo clamstar claw cliffstah closer code1o6 code_ codeitagile coffeejunk Coldblackice colstrom connor_goodwolf Contigi
[01:47:34] FreeBleeder: contradictioned cookiez Coraline Cork cornerman corpsicle countryHick cout crankharder crayfishx craysiii crdpink2 crowell csaunders cscheib cschneid csmb cstrahan culturelabs d0lph1n98 d10n-work dandrade DanKnox danoo_ danshultz danzilio darix DarkBushido Darkwater DarthGandalf dasher00 davedev2_ Davey davidcelis daxroc daynaskully dbussink dcope ddfreyne_ ddv
[01:47:35] FreeBleeder: DEac- deavid dede DefV deg_ deimos_ demophoon dennis__ DenSchub devbug devn devyn DexterLB df dfedde dfockler dfoolz dhruvasagar Diabolik diegok djbender djcp DmitryBochkarev dmoe dogeuira dopamean_ dorei dostoyevsky drager Drakevr dravine drbrain Dreamer3 drizz drPoggs dseitz dualbus ducklobster duckson_ dukedave
[01:47:36] havenwood: !mute FreeBleeder
[01:47:36] ruboto: +q FreeBleeder!*@*
[01:47:36] ruboto: -o ruboto
[01:47:51] FreeBleeder: has left #ruby: ()
[01:47:54] devbug: havenwood: (y)
[01:47:54] havenwood: Sorry A-D. I should have been quicker.
[01:47:59] aibot: somebody who could let me work there and i saw the sign ace of base wheel of fortune
[01:48:09] havenwood: Saw that coming but didn't want to jump the gun on an innocent.
[01:48:10] devbug: havenwood: should j-dam'd him quicker
[01:48:24] blue_deref: havenwood: No problem.
[01:48:58] blue_deref: havenwood: I actually have a comment in an old script of mine noting that you pointed out a really helpful function to me
[01:49:02] blue_deref: havenwood: So u r hero
[01:49:07] havenwood: blue_deref: \o/
[01:49:16] blue_deref: Popen3 if I recall the name
[01:49:31] havenwood: blue_deref: :D
[01:49:44] goodcodeguy: has joined #ruby
[01:49:58] aldodelgado: has joined #ruby
[01:50:35] meatherly: has joined #ruby
[01:50:36] havenwood: dorei: Dunno if you got that but I don't think there's a right answer. Maybe a realist and idealist option.
[01:50:53] havenwood: dorei: Similar to single versus double quote conventions.
[01:51:05] dorei: havenwood: in fact, before reading the style guide i didnt know that a #fail exists
[01:51:53] aldodelgado: Qustion? I have a ubuntu server 14.04 stup with rbenv and under all users including root they show the same ruby version. However when I run a cron it shows a diffrent ruby version. Any sugestions?
[01:52:03] choke: has joined #ruby
[01:52:07] blue_deref: # Thank you, havenwood in #ruby on Freenode for popen2e()!
[01:52:24] havenwood: Ah, yeah that's a bit more particular.
[01:53:03] Antiarc: aldodelgado: cron jobs don't get run in a shell so things like /etc/profile don't apply. Try bash -l -c "your command" to execute it in a login shell
[01:53:29] aldodelgado: I have those options in my cron
[01:53:36] aldodelgado: -l for login mode
[01:53:39] dorei: aldodelgado: http://stackoverflow.com/questions/8434922/ruby-script-using-rbenv-in-cron
[01:54:33] mleung: has joined #ruby
[01:55:15] chouhoulis: has joined #ruby
[01:56:39] aldodelgado: dorei: thanks that cleaed it up. I didnt relize there was an order.
[01:56:56] dopamean_: has joined #ruby
[01:58:35] havenwoodie: has joined #ruby
[01:58:46] havenwoodie: [ace] [spoiler] \13k _5moufl __main__ _aeris_ _axx _ko1 _liquid_ _mh_ _whitelogger `derpy A124 abbe absolutejam abyss AccordLTN AckZ adaedra adam12 adambeynon adamholt AdamMeghji adeponte Adran aep Aeyrix Affix ahuman aibo aibot ajafo ajaiswal akahn akitada al2o3-cr alakran aldodelgado alekst_ alem0lars AlexAltea alexblom AlexRussia Alina-malina allcentury alol alxndr am11 amclain amitchellbullard
[01:58:46] havenwood: !mute havenwoodie
[01:58:46] ruboto: +q havenwoodie!*@*
[01:58:46] ruboto: -o ruboto
[01:58:51] havenwoodie: has left #ruby: ()
[01:58:52] havewooder: has joined #ruby
[01:58:55] aibot: alexblom alexrussia alina-malina allcentury alol alxndr am11 amclain amitchellbullard ammar an0ma1y andersh anekos angelixd ankhers anohito antiarc apeiros apipkin apocalypse
[01:58:57] havenwood: !mute havenwood
[01:58:57] ruboto: +q havenwood!*@*
[01:58:58] ruboto: -o ruboto
[01:59:03] Aeyrix: For god's sake will someone just enable registered mode?
[01:59:24] havewooder: [ace] [spoiler] \13k _5moufl __main__ _aeris_ _axx _ko1 _liquid_ _mh_ _whitelogger `derpy A124 abbe absolutejam abyss AccordLTN AckZ adaedra adam12 adambeynon adamholt AdamMeghji adeponte Adran aep Aeyrix Affix ahuman aibo aibot ajafo ajaiswal akahn akitada al2o3-cr alakran aldodelgado alekst_ alem0lars
[01:59:24] havewooder: AlexAltea alexblom AlexRussia Alina-malina alol alxndr am11 amclain amitchellbullard ammar an0ma1y andersh anekos angelixd Ankhers AnoHito Antiarc apeiros apipkin Apocalypse arashb araujo arcanez ArchRogem Aria Ariadeno arian0n armyriad artmann Asher ashleyis asi_ aspiers atmosx atom3 AustinMatherne Authenticator auzty avdi avelldiroll
[01:59:24] havewooder: awk axisys Axy Azure BackEndCoder badeball bahar_ bakedb bankair bartj3 bascht bauruine bcavileer beast benaiah benatkin benlakey bestbrents__ bestie bhaak bhorn1 bier bigkevmcd bigmac bihi Billias Biohazard Bish bjeanes bjmllr bkutil_ BlackCoyote blackjid blowmage blue_deref Blue_Ice BLuEGoD blueOxigen bmn bmurts
[01:59:24] havewooder: bnagy bnizzle bodgix bodie_ bootstrappm borkdude bougyman bourbon bove BraddPitt bradland braidn braincra- brainslug Brando753 brandon brixen bruno- bryancp bttf bubbys bubuntu_ bullcitydev bw_ bweston92 c0ncealed Caelum Caius cajone calleerlandsson callumacrae camilasan camt Cantaberry canton7 capin cardoni catbusters cats cball
[01:59:24] havewooder: cbednarski cbetta ccooke certainty cescalante cfloare cFouts cgfbee cgrieger^away charles81 charliesome ChasedSpade chihhsin chills42 chinmay_dd chipotle choke chouhoulis chridal chris2 chrisarcand chrisseaton chuy CHVNX cibs cina cj cjk101010 ckinniburgh_ ckrailo clamstar claw cliffstah closer code1o6 code_ codeitagile coffeejunk Coldblackice colstrom
[01:59:32] ruboto: apeiros, fflush, banisterfiend, jhass, zzak, Mon_Ouie, seanstickle, Havenn, Radar, sevenseacat, workmad3, miah, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver
[01:59:36] Antiarc: Seems that an ops bot could be set up to auto-kick anyone that highlights more than a couple of people at once.
[01:59:42] FreeBleeder: has joined #ruby
[01:59:48] Aeyrix: Antiarc: Or they could just enable +R
[01:59:50] aibot: hey x man i saw one now for 13k nok i
[01:59:51] Aeyrix: like a normal damn channel
[01:59:56] babysnoop: has joined #ruby
[01:59:57] FreeBleeder: has left #ruby: ()
[01:59:58] FreeBleeder: has joined #ruby
[02:00:08] FreeBleeder: has left #ruby: ()
[02:00:16] Aeyrix: havenwood: /mode #ruby +r please.
[02:00:23] RubyRed: has joined #ruby
[02:00:26] RubyRed: [ace] [spoiler] \13k _5moufl __main__ _aeris_ _axx _ko1 _liquid_ _mh_ _whitelogger `derpy A124 abbe absolutejam abyss AccordLTN AckZ adaedra adam12 adambeynon adamholt AdamMeghji adeponte Adran aep Aeyrix Affix ahuman aibo aibot ajafo ajaiswal akahn akitada al2o3-cr alakran aldodelgado alekst_ alem0lars
[02:00:27] RubyRed: AlexAltea alexblom AlexRussia Alina-malina alol alxndr am11 amclain amitchellbullard ammar an0ma1y andersh anekos angelixd Ankhers AnoHito Antiarc apeiros apipkin Apocalypse arashb araujo arcanez ArchRogem Aria Ariadeno arian0n armyriad artmann Asher ashleyis asi_ aspiers atmosx atom3 AustinMatherne Authenticator auzty avdi avelldiroll
[02:00:27] RubyRed: awk axisys Axy Azure babysnoop BackEndCoder badeball bahar_ bakedb bankair bartj3 bascht bauruine bcavileer beast benaiah benatkin benlakey bestbrents__ bestie bhaak bhorn1 bier bigkevmcd bigmac bihi Billias Biohazard Bish bjeanes bjmllr bkutil_ BlackCoyote blackjid blowmage blue_deref Blue_Ice BLuEGoD blueOxigen bmn
[02:00:27] RubyRed: bmurts bnagy bnizzle bodgix bodie_ bootstrappm borkdude bougyman bourbon bove BraddPitt bradland braidn braincra- brainslug Brando753 brandon brixen bruno- bryancp bttf bubbys bubuntu_ bullcitydev bw_ bweston92 c0ncealed Caelum Caius cajone calleerlandsson callumacrae camilasan camt Cantaberry canton7 capin cardoni catbusters cats
[02:00:28] RubyRed: cball cbednarski cbetta ccooke certainty cescalante cfloare cFouts cgfbee cgrieger^away charles81 charliesome ChasedSpade chihhsin chills42 chinmay_dd chipotle choke chouhoulis chridal chris2 chrisarcand chrisseaton chuy CHVNX cibs cina cj cjk101010 ckinniburgh_ ckrailo clamstar claw cliffstah closer code1o6 code_ codeitagile coffeejunk Coldblackice
[02:00:28] RubyRed: colstrom connor_goodwolf Contigi contradictioned cookiez Coraline Cork cornerman corpsicle countryHick cout crankharder crayfishx craysiii crdpink2 crowell csaunders cscheib cschneid csmb cstrahan culturelabs d0lph1n98 dandrade DanKnox danoo_ danshultz danzilio darix DarkBushido Darkwater DarthGandalf dasher00 davedev2_ Davey davidcelis daxroc daynaskully dbussink dcope
[02:00:29] RubyRed: ddfreyne_ ddv DEac- deavid dede DefV deg_ deimos_ demophoon dennis__ DenSchub devbug devn devyn DexterLB df dfedde dfockler dfoolz dhruvasagar Diabolik diegok djbender djcp DmitryBochkarev dmoe dogeuira dopamean_ dorei dostoyevsky drager Drakevr dravine drbrain Dreamer3 drizz drPoggs dseitz dualbus ducklobster
[02:00:29] RubyRed: duckson_ dukedave duoi DylanJ dymk dzv eam EasyCo ebertx ec\ edenc edwardly eggoez ehth77 Eiam eightyeight Eising ejnahc ekem ekleog elaptics ELCALOR ElderFain Eleeleth elektronaut ELLIOTTCABLE elton Encapsulation EnergyCoffee epochwolf eregon ereslibre erichmenge ericwood Esya- eternal1 euoia Evan_ EvilJStoker evrial
[02:00:30] RubyRed: ex0ns exadeci exceion EXID123 existensil face fantazo farn FastJack fella5s FifthWall finges_ Fire1o6 firevolt firoxer fluchtreflex Fluent flughafen fold1 forgot FrankD frankS2 Freeaqingme freeze Freijo frode15243 frog0909_ fulgore_ fumduq fumk funnel fxn G Gadgetoid galeido gambl0re GarethAdams gavit ged gener1c_
[02:00:30] RubyRed: george2 gf3 ggherdov GGMethos ghormoon ght gigetoo gix glowcoil gnarf Gnubie_ GnuYawk godfat1 goncalo goodcodeguy go|dfish graydot greedo greenbigfrog gregf gregf_ greister grubernaut gsingh93 guardian Guest13124 Guest18028 Guest38256 Guest39549 Guest49587 Guest57947 Guest67071 Guest85414______ Guest987 haasn hackeron hagabaka hahuang65 hal_9000 halfdan
[02:00:31] RubyRed: Hamled haroldwu harryk HashNuke havenwood haxrbyte hays_ headius hectortrope Heero heftig heinrich5991 Helheim hellschreiber helpa heyimwill hfp hfp_work Hien Hijiri Hobbyboy hollywood holsee_ hostess howdoicomputer hoylemd hplar Hrorek humding3r hyperdrive hypnosb iamayam iamdevnul ianchentw icedp IceDragon Illusioneer im0b imajes ineb
[02:00:31] RubyRed: infernix inoperable inukshuk iooner ipstatic irk ironcamel iszak ItSANgo ivanf izzol j416 jabreity jalcine Jamo Jamo_ janno jaredrhine jatb JaTochNietDan jaxxstorm jayne jbw jcp jeadre jeaye Jello_Raptor jeregrine jevs jhass jidar jimbeaudoin jimeh JimmyNeutron jinie jlyndon jmcc jmhmccr joaomdmoura joast
[02:00:32] RubyRed: joevandyk joeyjones johnhamelink jokester jokke- JoL1hAHN jpinnix______ jsaak jso jsrn JStoker jsuth jtdowney jtperreault jud julieeharshaw Junaos justin2 justinmcp_ juzmach jxf jxie_ jxv jzigmund kadoppe kalleth kalz kalzz Kamilion kapowaz kappy Karunamon kaspergrubbe keen__________19 Keltia kenichi kent\n Kero keyvan kgirthofer
[02:00:32] RubyRed: Kharma kies kiki_lamb KillerFox Killerkeksdose kitallis kith klaas klingeldraht kloeri Klumben KnownSyntax knowtheory kobain konopka Koshian Kovensky kq_away_ krainboltgreene KramerC kramsee krasnus kriskropd Kruppe KrzaQ Kuukunen kyle__ lacrosse lady3bean lagweezle lancetw lanemeyer larissa LBRapid lea leafybasil ledestin lele lele|w leslie_
[02:00:33] RubyRed: levifig lguardiola lhz Liam` lianj Lildirt linc01n linduxed linuxboytoo Liothen lipoqil LiquidInsect livathinos livcd ljarvis lkba Lloyd lnx Log1x LoganG lokulin loop3r lorn_ lotherk_ low-profile lsmola ltd lukaszk luluapple lupine M-Kodo M-mistake M-prosodyContext M-Technic m4rCsi machty madhatter mahlon majjoha maloik
[02:00:33] RubyRed: mame2 manveru marcoamo1 marens marienz marsjaninzmarsa martinbjeldbak marwinism Matadoer matled matp matrixise matti max_Q maxmanders mblagden mblagden_ mburns mclee_ meatherly Meeh Mekkis mgorbach mhenrixon miah mic_e michael_mbp MichaelSmith MiracleBlue Miron MissionCritical mist mistergibson mistym MiW mjc_ mjmac mkosaki mmasaki mnemon
[02:00:34] RubyRed: modern moeabdol monoprotic monsieurp moredhel Morrolan moss mozzarella mroth mrsolow mrtomme msankhala MuffinPimp musl Muz MVPhelp MyMind n1ftyn8_ Nahra Nanuq ndrst neanderslob neanias neektza neersighted nemesit|znc nettoweb NeverDie nfsnobody nickfausnight nickjj nifoc Nightmare NightMonkey niko Nilium Nirgali42 nirix nisstyre nitrix
[02:00:35] RubyRed: nizmow nlsun nofxx nomadic noodle nopc0de Nowaker NuckingFuts null__ nullwarp nux443 nyandoge Obfuscate oddalot oddmunds Oka okdas olblak Olipro omegahm oo__ opensource_ninja otacon- Outlastsheep Ox0dea oz ozzloy p7r p8952 pabs papercode Papierkorb Paradox parus patronus_ patteh PaulCapestany PaulePanter PDI pepperbreath
[02:00:39] mleung: has joined #ruby
[02:00:43] poli: has joined #ruby
[02:00:51] devbug: havenwood: ^
[02:00:54] Yzguy: has joined #ruby
[02:00:56] bootstrappm: !mute RubyRed
[02:00:56] aibot: benjikins i reported you to the spoiler b4
[02:00:56] RubyRed: has left #ruby: ()
[02:00:58] joeyjones: what is that even supposed to accomplish?
[02:01:07] Aeyrix: proving a point tbh
[02:01:13] Ox0dea: joeyjones: Perturbations.
[02:01:14] crowell: What is the point of highlighting everyone
[02:01:17] RubyRed: has joined #ruby
[02:01:17] Aeyrix: i'm slightly amused that they're proving *my* point
[02:01:18] bootstrappm: exactly this I think, haven't ppl be annoyed and talk
[02:01:22] RubyRed: [ace] [spoiler] \13k _5moufl __main__ _aeris_ _axx _ko1 _liquid_ _mh_ _whitelogger `derpy A124 abbe absolutejam abyss AccordLTN AckZ adaedra adam12 adambeynon adamholt AdamMeghji adeponte Adran aep Aeyrix Affix ahuman aibo aibot ajafo ajaiswal akahn akitada al2o3-cr alakran aldodelgado alekst_ alem0lars
[02:01:23] RubyRed: AlexAltea alexblom AlexRussia Alina-malina alol alxndr am11 amclain amitchellbullard ammar an0ma1y andersh anekos angelixd Ankhers AnoHito Antiarc apeiros apipkin Apocalypse arashb araujo arcanez ArchRogem Aria Ariadeno arian0n armyriad artmann Asher ashleyis asi_ aspiers atmosx atom3 AustinMatherne Authenticator auzty avdi avelldiroll
[02:01:23] RubyRed: awk axisys Axy Azure babysnoop BackEndCoder badeball bahar_ bakedb bankair bartj3 bascht bauruine bcavileer beast benaiah benatkin benlakey bestbrents__ bestie bhaak bhorn1 bier bigkevmcd bigmac bihi Billias Biohazard Bish bjeanes bjmllr bkutil_ BlackCoyote blackjid blowmage blue_deref Blue_Ice BLuEGoD blueOxigen bmn
[02:01:24] RubyRed: bmurts bnagy bnizzle bodgix bodie_ bootstrappm borkdude bougyman bourbon bove BraddPitt bradland braidn braincra- brainslug Brando753 brandon brixen bruno- bryancp bttf bubbys bubuntu_ bullcitydev bw_ bweston92 c0ncealed Caelum Caius cajone calleerlandsson callumacrae camilasan camt Cantaberry canton7 capin cardoni catbusters cats
[02:01:25] RubyRed: cball cbednarski cbetta ccooke certainty cescalante cfloare cFouts cgfbee cgrieger^away charles81 charliesome ChasedSpade chihhsin chills42 chinmay_dd chipotle choke chouhoulis chridal chris2 chrisarcand chrisseaton chuy CHVNX cibs cina cj cjk101010 ckinniburgh_ ckrailo clamstar claw cliffstah closer code1o6 code_ codeitagile coffeejunk Coldblackice
[02:01:25] RubyRed: colstrom connor_goodwolf Contigi contradictioned cookiez Coraline Cork cornerman corpsicle countryHick cout crankharder crayfishx craysiii crdpink2 crowell csaunders cscheib cschneid csmb cstrahan culturelabs d0lph1n98 dandrade DanKnox danoo_ danshultz danzilio darix DarkBushido Darkwater DarthGandalf dasher00 Davey davidcelis daxroc daynaskully dbussink dcope ddfreyne_
[02:01:26] RubyRed: ddv DEac- deavid dede DefV deg_ deimos_ demophoon dennis__ DenSchub devbug devn devyn DexterLB df dfedde dfockler dfoolz dhruvasagar Diabolik diegok djbender djcp DmitryBochkarev dmoe dogeuira dopamean_ dorei dostoyevsky drager Drakevr dravine drbrain Dreamer3 drizz drPoggs dseitz dualbus ducklobster duckson_
[02:01:26] devbug: ACTION sighs
[02:01:27] RubyRed: dukedave duoi DylanJ dymk dzv eam EasyCo ebertx ec\ edenc edwardly eggoez ehth77 Eiam eightyeight Eising ejnahc ekem ekleog elaptics ELCALOR ElderFain Eleeleth elektronaut ELLIOTTCABLE elton Encapsulation EnergyCoffee epochwolf eregon ereslibre erichmenge ericwood Esya- eternal1 euoia Evan_ EvilJStoker evrial ex0ns
[02:01:28] RubyRed: exadeci exceion EXID123 existensil face fantazo farn FastJack fella5s FifthWall finges_ Fire1o6 firevolt firoxer fluchtreflex Fluent flughafen fold1 forgot FrankD frankS2 Freeaqingme freeze Freijo frode15243 frog0909_ fulgore_ fumduq fumk funnel fxn G Gadgetoid galeido gambl0re GarethAdams gavit ged gener1c_ george2
[02:01:28] RubyRed: gf3 ggherdov GGMethos ghormoon ght gigetoo gix glowcoil gnarf Gnubie_ GnuYawk godfat1 goncalo goodcodeguy go|dfish graydot greedo greenbigfrog gregf gregf_ greister grubernaut gsingh93 guardian Guest13124 Guest18028 Guest38256 Guest39549 Guest49587 Guest57947 Guest67071 Guest85414______ Guest987 haasn hackeron hagabaka hahuang65 hal_9000 halfdan Hamled
[02:01:29] havenwood: has joined #ruby
[02:01:29] RubyRed: haroldwu harryk HashNuke haxrbyte hays_ headius hectortrope Heero heftig heinrich5991 Helheim hellschreiber helpa heyimwill hfp hfp_work Hien Hijiri Hobbyboy hollywood holsee_ hostess howdoicomputer hoylemd hplar Hrorek humding3r hyperdrive hypnosb iamayam iamdevnul ianchentw icedp IceDragon Illusioneer im0b imajes ineb infernix inoperable
[02:01:30] RubyRed: inukshuk iooner ipstatic irk ironcamel iszak ItSANgo ivanf izzol j416 jabreity jalcine Jamo Jamo_ janno jaredrhine jatb JaTochNietDan jaxxstorm jayne jbw jcp jeadre jeaye Jello_Raptor jeregrine jevs jhass jidar jimbeaudoin jimeh JimmyNeutron jinie jlyndon jmcc jmhmccr joaomdmoura joast joevandyk joeyjones
[02:01:31] crowell: What the Frick
[02:01:31] RubyRed: johnhamelink jokester jokke- JoL1hAHN jpinnix______ jsaak jso jsrn JStoker jsuth jtdowney jtperreault jud julieeharshaw Junaos justin2 justinmcp_ juzmach jxf jxie_ jxv jzigmund kadoppe kalleth kalz kalzz Kamilion kapowaz kappy Karunamon kaspergrubbe keen__________19 Keltia kenichi kent\n Kero keyvan kgirthofer Kharma kies
[02:01:31] RubyRed: kiki_lamb KillerFox Killerkeksdose kitallis kith klaas klingeldraht kloeri Klumben KnownSyntax knowtheory kobain konopka Koshian Kovensky kq_away_ krainboltgreene KramerC kramsee krasnus kriskropd Kruppe KrzaQ Kuukunen kyle__ lacrosse lady3bean lagweezle lancetw lanemeyer larissa LBRapid lea leafybasil ledestin lele lele|w leslie_ levifig lguardiola
[02:01:32] RubyRed: lhz Liam` lianj Lildirt linc01n linduxed linuxboytoo Liothen lipoqil LiquidInsect livathinos livcd ljarvis lkba Lloyd lnx Log1x LoganG lokulin loop3r lorn_ lotherk_ low-profile lsmola ltd lukaszk luluapple lupine M-Kodo M-mistake M-prosodyContext M-Technic m4rCsi machty madhatter mahlon majjoha maloik mame2 manveru
[02:01:33] RubyRed: marcoamo1 marens marienz marsjaninzmarsa martinbjeldbak marwinism Matadoer matled matp matrixise matti max_Q maxmanders mblagden mblagden_ mburns mclee_ meatherly Meeh Mekkis mgorbach mhenrixon miah mic_e michael_mbp MichaelSmith MiracleBlue Miron MissionCritical mist mistergibson mistym MiW mjc_ mjmac mkosaki mleung mmasaki mnemon modern
[02:01:34] RubyRed: moeabdol monoprotic monsieurp moredhel Morrolan moss mozzarella mroth mrsolow mrtomme msankhala MuffinPimp musl Muz MVPhelp MyMind n1ftyn8_ Nahra Nanuq ndrst neanderslob neanias neektza neersighted nemesit|znc nettoweb NeverDie nfsnobody nickfausnight nickjj nifoc Nightmare NightMonkey niko Nilium Nirgali42 nirix nisstyre nitrix nizmow
[02:01:35] RubyRed: nlsun nofxx nomadic noodle nopc0de Nowaker NuckingFuts null__ nullwarp nux443 nyandoge Obfuscate oddalot oddmunds Oka okdas olblak Olipro omegahm oo__ opensource_ninja otacon- Outlastsheep Ox0dea oz ozzloy p7r p8952 pabs papercode Papierkorb Paradox parus patronus_ patteh PaulCapestany PaulePanter PDI pepperbreath perrier
[02:01:35] RubyRed: perry petems peterhu petersaints petricore pfg PhilK phreakocious phrozen77 PierreRambaud pietr0 pipework pizzaops pjaspers pl1ght PlasmaStar Platini platosha pleiosaur pmarreck pocketprotector podman poguez_ pokmo poli ponga prasselpikachu prestorium preyalone Prira programmerq proq prosody Psi-Jack psmolen psy_ ptierno pwnd_nsfw pygospa QKO_
[02:01:36] RubyRed: quarcu queequeg1 r_baron Raboo Radar radens raenk ramblinpeck ramfjord RandyT Ray` RazorX rbennacer rbowlby rcs rdema RealMarc redlegion redondos renderful renier Rennex reprazent rethi retornam rfi rflot rfv ricer2 richo rideh rikai_ Rixius rj-code rmrrn robbyoconnor roger_rabbit Rollabunna Ropeney Rover
[02:01:37] RubyRed: RTG` rtl rubie ruboto RubyRed ruisantos russt rvchangue ryotarai s00pcan saddad saltsa sanguisdex sankaber sarlalian schaary|afk Schmidt Scient scottstamp scottymeuk scpike_ scroff sdothum SebastianThorn segfalt SegFaultAX segy Seich seitensei Senjai sethetter sevin sfr^ shadeslayer shaman42_ shapeshifter shawnatyger shelling__ shevy Shidash
[02:01:37] RubyRed: shmilan shortdudey123 shtirlic SHyx0rmZ siemprefresco Sigma00 SilentEcho Silex silverdust sindork sirecote SirFunk sivoais sjohnsen skakri skarn Skelz0r skmp slani slash_nick sluukkonen smooth_penguin sn0wb1rd snapcase soahccc Soda soloone Someguy123 sonne sonOfRa soosfarm sorah soulcake sousvide Sou|cutter Sp4rKy sp_ spacemud sparr spastorino
[02:01:38] RubyRed: speakingcode spectra sphex splud sross07 ss_much ss_ss sshuff|gone stankley stardiviner Steve_Jobs stevednd Sthebig stonecolddevin sts stuartb suffice sufyan sumark SuMo_D superrorc superspring SuperTux88 swistak35_ Symbiosisz Synthbread sysanthrope ta tabakhase Takumo taylorrf tbuehlmann tchebb tcopeland TDJACR tejasmanohar tekacs tekk Tempesta teotwaki
[02:01:39] RubyRed: tercenya terlar terrellt tethra thang TheBrayn thejoecarroll TheMoonMaster TheRinger theRoUS thesheff17 thomas Thr3d_ three18ti timmow_ tno tobiasvl tobyx_ tokik tomaw tommylom1ykins tonini toretore torpig totimkopf towler Tratos Trieste tris Tristan-Speccy troter___ troyready Trynemjoel tskogberg tsunamie TTilus tubbo tubuliferous twistedpixels twohlix
[02:01:40] RubyRed: tylersmith uber ujjain- ukd1 unclouded unholycrab universa1 unreal unsymbol Urocyon uxp v0n v4mpii valeri_ufo varesa vcoinminer veduardo Veejay veg veloutin verdoc verto VeryBewitching vifino Vile` vondruch voxxit warreng wasamasa waxjar weaksauce webhat wedgwood WillAmes wjimenez5271 wlanboy wmoxam wnd woodruffw wookiehangover
[02:01:41] RubyRed: workmad3 xet7 Xiti xMopxShell xnr xsdg xxx xybre y_gick yasu yeltzooo yeticry yfeldblum yie_ yo61 yokel yorickpeterse yosafbridge ytti yxhuvud z3uS zack6849 Zackio zacts zallcentury Zarthus ZeeNoodleyGamer zemmihates zenguy_pc zenspider zero7 zipkid zly znz_jp zotherstupidguy zrl ZYPP zz_barkerd427 zzak
[02:01:43] Ox0dea: On the bright side, so many pretty colors.
[02:01:43] demophoon: plz, ops plz
[02:01:51] aibot: ft rkelly lil wayne birdman ti rick ross ace mac fat joe views 1467716 rating 950
[02:01:54] RubyRed: look at that look at these
[02:01:54] Aeyrix: On the down side, this is making my phone go crazy.
[02:02:02] RubyRed: sorry Aeyrix
[02:02:03] tchebb: has left #ruby: ("Leaving")
[02:02:04] pyon: has joined #ruby
[02:02:13] RubyRed: Aeyrix lets be friends
[02:02:16] Eleeleth: Same, Aeyrix
[02:02:19] noodle: hi RubyRed
[02:02:24] Eleeleth: It was amusing, at least
[02:02:34] phreakocious: RubyRed: assholery
[02:02:34] kapowaz: has left #ruby: ()
[02:02:37] mozzarella: Ox0dea: it's pink and yellow on my end
[02:03:00] elfuego: has joined #ruby
[02:03:04] Ox0dea: http://i.imgur.com/OuBjXv2.png
[02:03:18] Ox0dea: Hey, he found a bug in WeeChat.
[02:03:29] Aeyrix: Alright tbqh
[02:03:33] Aeyrix: done w/ this channel
[02:03:38] Aeyrix: literally simple fix
[02:03:38] Ox0dea: Aeyrix, pls.
[02:03:41] Aeyrix: "muh ezpz"
[02:03:45] Guest5: has joined #ruby
[02:03:46] RubyRed: dont leave Aeyrix
[02:03:46] ChanServ: +o havenwood
[02:03:48] Aeyrix: ops aren't based enough
[02:03:50] RubyRed: has left #ruby: ()
[02:03:51] Aeyrix: has left #ruby: ()
[02:03:54] iamninja: has joined #ruby
[02:04:07] ChanServ: +o havenwood
[02:04:07] cscheib: wat is ops aren't based enough supposed to mean
[02:04:14] bootstrappm: *plot twist* RubyRed was Aeyrix all along
[02:04:16] Ox0dea: The ops need to increase their basedness.
[02:04:17] bootstrappm: dun dun duuuun
[02:04:24] mozzarella: Ox0dea: >stankley stardiviner
[02:04:27] mozzarella: that part is broken
[02:04:30] havenwood: +v havenwood
[02:04:31] Ox0dea: Indeed it is.
[02:04:39] Ox0dea: On account of there being somebody called ta.
[02:04:54] RubyRed: has joined #ruby
[02:04:58] mozzarella: lol, interesting
[02:05:04] Ox0dea: RubyRed: Whatcha gonna do?
[02:05:04] RubyRed: whats a permanent mute
[02:05:40] RubyRed: has left #ruby: ()
[02:05:41] havensucks: has joined #ruby
[02:05:42] mwh_: has joined #ruby
[02:05:48] havensucks: has left #ruby: ()
[02:05:50] havensucksdick: has joined #ruby
[02:05:54] havensucksdick: has left #ruby: ()
[02:05:55] wtfhaven: has joined #ruby
[02:06:11] wtfhaven: has left #ruby: ()
[02:06:33] havenwood: +b *!*@98.27.226.173
[02:06:47] monoprotic: that wont work
[02:06:55] A124: I think some guy is going on channels and doing this for fun.
[02:07:05] A124: Well it does, he picks next channel
[02:07:33] havenwood: A124: I'm in a restaurant and it wasn't a good time for me to have connection or concentrate.
[02:07:37] _lexjm: has joined #ruby
[02:07:47] havenwood: A124: But it works for here.
[02:08:24] tvon: has joined #ruby
[02:08:28] RedRider: has joined #ruby
[02:08:32] RedRider: has left #ruby: ()
[02:08:33] havensucks: has joined #ruby
[02:08:40] havensucks: has left #ruby: ()
[02:08:41] lolsmileyface: has joined #ruby
[02:08:43] lolsmileyface: has left #ruby: ()
[02:09:36] havenwood: I'm too acidic. Not nearly base enough.
[02:10:40] Ox0dea: havenwood: Why does it even get toggled like this?
[02:10:59] inteq: has joined #ruby
[02:11:18] Ox0dea: +R is an excellent filter in several ways.
[02:11:27] zenguy_pc: has joined #ruby
[02:11:47] mleung: has joined #ruby
[02:12:11] inteq: has joined #ruby
[02:12:20] A124: Well, it keeps visitiors away I guess.
[02:12:29] amoeba`: has joined #ruby
[02:12:29] devbug_: has joined #ruby
[02:12:37] havenwood: Ox0dea: It's been debated. Working on better solutions.
[02:13:06] JohnnyTao: has joined #ruby
[02:13:58] Xiti: has joined #ruby
[02:14:06] x-light: has joined #ruby
[02:15:20] bootstrappm: yeah a bot that can identify attacks and auto mute / kick would be cool
[02:15:24] bootstrappm: they're not really all that creative ...
[02:15:34] VeryBewitching: No, it's constant spam.
[02:16:22] A124_: has joined #ruby
[02:16:41] Rubie: has joined #ruby
[02:17:17] Hanmac: has joined #ruby
[02:17:32] hahuang61: has joined #ruby
[02:18:39] mwh_: has left #ruby: ("WeeChat 1.3")
[02:18:47] Ox0dea: http://i.imgur.com/qxcAPEb.png
[02:18:52] bootstrappm: has left #ruby: ()
[02:18:59] radens: has left #ruby: ("WeeChat 1.0.1")
[02:19:04] Ox0dea: Anybody see it?
[02:19:08] A124: has joined #ruby
[02:20:41] grenierm: has joined #ruby
[02:22:53] choke: has joined #ruby
[02:23:45] Kallis: has joined #ruby
[02:26:32] devoldmx: has joined #ruby
[02:26:34] michaeldeol: has joined #ruby
[02:27:19] bmurt: has joined #ruby
[02:28:51] icedragon: Who pingeth the I?
[02:28:53] wldcordeiro: has joined #ruby
[02:29:28] Ox0dea: IceDragon: All the Is got pinged.
[02:29:42] havenwood: IceDragon: A dinner troll that waits until the perfect bite to strike.
[02:29:57] havenwood: ACTION chokes
[02:30:15] icedragon: I thought it was something important orz
[02:30:16] havenwood: IceDragon: But... now that you're here!
[02:30:37] havenwood: I've been looking for a dragon to smite certain someones...
[02:30:38] icedragon: I'm always here :O
[02:31:07] Rennex: Ox0dea: i see lerdorf, matsumoto, wall... i'm guessing others are language creators that i don't recognise off hand?
[02:31:10] Ox0dea: Ice can't be used to extinguish fires...
[02:31:17] Ox0dea: Rennex: That'd be it.
[02:31:20] havenwood: ooh, i didn't see it!
[02:31:48] icedragon: I can at least cool the conversations :P
[02:31:57] seitensei: IceDragon: go back to rgss lol
[02:31:57] havenwood: IceDragon: http://i.imgur.com/qxcAPEb.png
[02:32:27] Ox0dea: Rennex: Gosling = Java, Pressey = Befunge, Ierusalimschy = Lua, M??ller = brainfuck, Van Rossum = Python, in case you wanted that.
[02:32:43] veduardo: has joined #ruby
[02:32:56] icedragon: seitensei: O: How could you know my dark past!?
[02:33:09] icedragon: ACTION drags seitensei to the bottom of the ocean
[02:33:19] icedragon: No witnesses
[02:33:29] Ox0dea: IceDragon: Observe the order of the constituent parts of the word "interrobang".
[02:33:29] Rennex: Ox0dea: i noticed gosling at first since it's the first one, but all i knew was ryan gosling :P
[02:33:51] havenwood: Rennex: I shamefully admit the same but I didn't then solve. :(
[02:34:13] ChanServ: -o havenwood
[02:35:01] Oog: has joined #ruby
[02:35:03] icedragon: My brain is fried...
[02:35:14] seitensei: IceDragon: Did you read what's happening with the new RM?
[02:35:16] havenwood: To be fair I'm balancing my laptop on my knee and need to relocate. Just lingering for trollsigns.
[02:35:20] seitensei: They're switching to JavaScript
[02:35:24] allomov: has joined #ruby
[02:35:40] webguynow: has joined #ruby
[02:35:41] icedragon: Yeah, I've heard from a friend of mine
[02:35:50] havenwood: seitensei: RM?
[02:35:51] seitensei: Yeah, all the kids can be javascript pros now
[02:35:52] icedragon: I can't even...
[02:36:01] seitensei: lol javascript pro
[02:36:10] seitensei: havenwood: rpg maker
[02:36:14] icedragon: More script kiddies...
[02:36:19] icedragon: more bad javascript
[02:36:23] icedragon: like the world doesn't have enough
[02:36:23] seitensei: Well, that's pretty much what JavaScript is though
[02:36:28] seitensei: ACTION downloads jQuery
[02:36:38] luckyruby: has joined #ruby
[02:36:40] Wolland: has joined #ruby
[02:37:01] icedragon: seitensei: Is there any screenshots, trailers anything?
[02:37:19] icedragon: So it doesn't exist then :D
[02:37:22] icedragon: ACTION rejoices
[02:37:23] seitensei: I've been busy training people how to use JavaScript
[02:37:43] seitensei: IceDragon: http://www.rpgmakerweb.com/products/programs/rpg-maker-mv
[02:38:17] seitensei: Well, ES2015/TypeScript
[02:38:26] icedragon: Multiplatform
[02:38:26] seitensei: but these kids have never used anything outside of Java
[02:38:29] icedragon: STILL DONT SEE LINUX
[02:38:37] seitensei: Linux doesn't need easy toys
[02:38:49] icedragon: We are hardcore gentlemen (sorry ladies)
[02:39:03] seitensei: I actually graduated from Debian onto Fedora
[02:39:04] dorei: w0w, rpgmaker got hipsterized
[02:39:15] rushed: has joined #ruby
[02:39:16] seitensei: It's so much slicker
[02:39:29] mleung: has joined #ruby
[02:39:35] icedragon: while I still run Arch
[02:39:37] seitensei: I'm trying to figure out which one I like more between rbenv or rvm for this though
[02:39:56] icedragon: of which, is so damn old, it still has remnants of init scripts...
[02:39:59] bb010g: has joined #ruby
[02:40:14] dorei: so, now rpgmaker is used for non japanese rpgs too?
[02:40:23] seitensei: One reason for the jump is because Oracle only provides Oracle DB Express for RPM linux and Windows
[02:40:31] bigmac: has joined #ruby
[02:40:55] icedragon: dorei: Well it could be used to produce anything, if you where willing to subject yourself to the shitty api
[02:41:16] seitensei: and Oracle DB looks a lot better on a resume when you're applying for ERP jobs
[02:41:25] icedragon: I had a small building sim in it at some point
[02:41:29] icedragon: and then my hard drive died...
[02:41:34] Rennex: resolution is now 816x624 pixels? well whoop de doo, that'll be the size of a small postcard thenb
[02:41:41] wmoxam: ACTION googles ERP
[02:41:54] icedragon: Dats barely an upgrade
[02:41:58] SpikeMaster: has joined #ruby
[02:42:01] seitensei: wmoxam: Enterprise Resource Planning
[02:42:05] icedragon: I consider ruby > js a downgrade.
[02:42:19] seitensei: just incase you find the internet version of ERP
[02:42:26] icedragon: Everyone should use Go :3
[02:42:27] wmoxam: seitensei: sounds "fun"
[02:42:30] Rennex: ACTION googles for ERP
[02:42:31] icedragon: ACTION gets ready for the flak
[02:42:47] seitensei: IceDragon: Not necessarily. JavaScript is a decent language, with ES2015, or if you transpile from TypeScript.
[02:42:58] dorei: is sap for erp? or is it for crm?
[02:43:05] seitensei: SAP is everything. :x
[02:43:08] Rennex: what, i'm not finding porn at all?
[02:43:11] seitensei: It's the photoshop of ERP
[02:43:20] icedragon: The fact you have to (trans/cross/pile)-pile the language means quite a bit
[02:43:24] seitensei: Overpriced and ships with more than you'll ever need
[02:44:06] dorei: so, siebel is sap for poors ?
[02:44:11] zotherstupidguy: has joined #ruby
[02:44:20] seitensei: SAP is for rich people :x
[02:44:29] dorei: oh, oracle bought siebel :D
[02:44:44] seitensei: PeopleSoft is cheaper than SAP last I checked
[02:44:54] seitensei: but jobs there are lower paying iirc
[02:45:02] dorei: spending money helps the economy
[02:45:03] seitensei: SAP has all the shiny toys though, like HANA
[02:45:32] icedragon: seitensei: I like how they sell "NOW WITH A THIRD LAYER!" as a feature...
[02:45:44] icedragon: -.-; The third layer has always been present
[02:45:47] seitensei: IceDragon: Honestly, if you're coding on server runtime, so NodeJS/iojs, you already have all the importan ES2015 features
[02:45:51] icedragon: You just couldn't use it
[02:46:01] seitensei: So transpiling isn't very important
[02:46:17] luckyruby: has joined #ruby
[02:46:31] seitensei: Transpiling just makes it so outdated browsers can run your code (*glances at Safari*)
[02:46:32] icedragon: JS is a plague server side and needs to die to painful and brutal death.
[02:46:47] catcher: has joined #ruby
[02:46:52] seitensei: It does async pretty well.
[02:46:59] wmoxam: it already died once
[02:47:06] wmoxam: ASP Jscript!
[02:47:19] seitensei: Sure, but Go is a systems language
[02:47:26] seitensei: so you use Go to kill C/C++ instead
[02:47:27] Ox0dea: wmoxam: I'm not sure you belong in this conversation.
[02:47:37] icedragon: Which is why I said JS needs to die "server side"
[02:47:39] seitensei: C needs to die.
[02:47:44] wmoxam: Ox0dea: lol
[02:47:47] icedragon: D8< You can't kill C
[02:47:52] icedragon: C is like a GOD
[02:47:53] seitensei: Sure you can.
[02:47:54] Ox0dea: (That is, you appear to know what the fuck you're talking about.)
[02:47:56] seitensei: ACTION grabs Rust.
[02:48:20] Ox0dea: I've never seen parrots fling shit, but there's a first time for everything.
[02:48:24] webguynow: has joined #ruby
[02:48:30] seitensei: Currently, I'd probably pick Rust over Go, over C++
[02:48:35] Ox0dea: seitensei: Why?
[02:48:54] SpikeMaster: i'm probably just pick C with valgrind over everything else.
[02:49:06] dorei: C for systems programming, ruby for everything else :)
[02:49:15] icedragon: I look at rust, and my eye twitches, I've been meaning to get into it, but god damn IT WAS UNSTABLE during my attempts
[02:49:16] seitensei: Coming from Ruby, I like the syntax in Go and Rust a lot more than C
[02:49:26] Ox0dea: > picking languages for their syntax
[02:49:46] dorei: yeah, syntax conveys the beauty of a language :)
[02:49:48] icedragon: I pick assembly for its syntax
[02:49:58] seitensei: IceDragon: But you also hate yourself
[02:50:15] icedragon: yes, yes I do orz
[02:50:25] Ox0dea: IceDragon: AT&T or Intel?
[02:50:36] seitensei: I spent a year having to deal with MIPS assembly
[02:50:41] seitensei: Not fun at all.
[02:50:42] baweaver: has joined #ruby
[02:50:57] Ox0dea: How come?
[02:51:14] dorei: which one is the motorola style? at&t or intel?
[02:51:23] icedragon: The assembly thing was a joke, the closest I've come to assembly was 8085
[02:52:09] seitensei: One of my profs was horrifically in love with MIPS assembly
[02:52:14] seitensei: as well as .NET bytecode
[02:52:56] devbug: has joined #ruby
[02:53:10] seitensei: lecture would start with topics around MIPS, and then tangent into how much he loves .NET
[02:53:17] icedragon: I'm gonna be a cool kid and learn haskell... next year or maybe the year after...
[02:53:28] icedragon: ACTION leaves quietly
[02:53:30] pipework: IceDragon: Learn ocaml instead!
[02:53:31] seitensei: Had another professor who would randomly switch between C++ and Java mid lecture
[02:53:43] pipework: seitensei: Seems pretty reasonable.
[02:54:04] seitensei: Department put him into teaching the Java classes. He's a C++ guy.
[02:54:07] seitensei: Made me laugh
[02:54:14] mleung: has joined #ruby
[02:54:16] seitensei: Since they have the Java guy teaching theory classes instead
[02:54:29] icedragon: So many damn import statements...
[02:54:53] diego2: has joined #ruby
[02:54:56] icedragon: Has anyone ever tried writing Java outside an IDEA
[02:55:04] diego2: IceDragon: yes
[02:55:16] seitensei: Unless you want to insist that vim is an ide
[02:55:16] icedragon: Its like writing your name 100 times to confirm you want to move a file
[02:55:45] Ox0dea: seitensei: What makes Vim not an IDE?
[02:55:52] icedragon: 50% of your time is spent writing import statements
[02:56:12] icedragon: ACTION grinds teeth
[02:56:16] seitensei: I'd say that vim is an optional IDE
[02:56:29] Ox0dea: seitensei: A computer is an optional hammer.
[02:56:37] seitensei: It's up to the user to set vim up to be one or not
[02:56:45] seitensei: It's a perfectly reasonable plain text editor
[02:56:47] icedragon: Mine is a paper weight and heater
[02:57:19] icedragon: Who needs a home heater or blanket when you got a laptop
[02:57:35] seitensei: I'm not sure you need a heater
[02:57:53] Ox0dea: seitensei: Do you use Vim regularly?
[02:58:10] xcesariox: has joined #ruby
[02:58:12] seitensei: As a text editor, mainly
[02:58:20] Ox0dea: What does that mean?
[02:58:25] Ox0dea: Do you do a lot of visual programming?
[02:58:39] icedragon: I use vim for config files, and sublime text for.. everything else
[02:59:35] seitensei: I'm not actively using it to the extent that I have a .vimrc set up with anything
[03:00:00] mrtomme: has joined #ruby
[03:00:03] seitensei: but I tend to use it to do my gemfiles and gulp files
[03:00:09] webguynow: has joined #ruby
[03:00:24] Ox0dea: Why wouldn't you just use whatever other editor to which you've become acclimated?
[03:00:41] seitensei: Because vim runs on the server ^^
[03:00:49] seitensei: Without having to twiddle with x forwarding
[03:00:49] Ox0dea: So does sed.
[03:00:58] gener1c: has joined #ruby
[03:02:04] seitensei: Yeah, but I have more habits formed with vim
[03:02:05] diego2: has joined #ruby
[03:03:29] rbowlby: has joined #ruby
[03:04:55] seitensei: I could be like my prof and cat everything but
[03:04:58] seitensei: that's also tedious
[03:05:12] webguynow: has joined #ruby
[03:05:39] Oog: has joined #ruby
[03:07:03] havenwood: has joined #ruby
[03:09:58] dgutierrez1287: has joined #ruby
[03:10:00] braincras: has joined #ruby
[03:10:41] juanpablo_: has joined #ruby
[03:12:23] deol: has joined #ruby
[03:13:11] SpikeMaster: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[03:13:38] chouhoulis: has joined #ruby
[03:14:23] webguynow: has joined #ruby
[03:14:36] catcher: has joined #ruby
[03:15:18] arescorpio: has joined #ruby
[03:16:10] minimalism: has joined #ruby
[03:17:27] grenierm: has joined #ruby
[03:17:59] charliesome: has joined #ruby
[03:18:46] darkf: has joined #ruby
[03:18:46] darkf: has joined #ruby
[03:18:49] nofxx: is there a ios channel here on freenode?
[03:19:28] michaeldeol: has joined #ruby
[03:19:41] nofxx: #iphonedev looks like, sorry the OT.. thanks =D
[03:21:57] Psi-Jack: nofxx: Ask alis.
[03:22:46] pietr0: has joined #ruby
[03:25:57] webguynow: has joined #ruby
[03:26:13] baweaver: has joined #ruby
[03:26:41] minimalism: has joined #ruby
[03:26:52] dravine_: has joined #ruby
[03:27:19] devoldmx: has joined #ruby
[03:27:51] dopamean_: has joined #ruby
[03:27:51] wldcordeiro_: has joined #ruby
[03:27:53] Rubie: has joined #ruby
[03:29:55] Oog: has joined #ruby
[03:29:59] larissa: has joined #ruby
[03:30:00] Shidash: has joined #ruby
[03:30:06] jtdowney: has joined #ruby
[03:30:06] jtdowney: has joined #ruby
[03:30:18] DarkBushido: has joined #ruby
[03:30:18] epochwolf: has joined #ruby
[03:30:18] asi_: has joined #ruby
[03:30:24] bf4: has joined #ruby
[03:30:26] waxjar: has joined #ruby
[03:30:29] cball: has joined #ruby
[03:30:32] cschneid: has joined #ruby
[03:30:38] drbrain: has joined #ruby
[03:30:49] bigmac: has joined #ruby
[03:30:55] mjmac: has joined #ruby
[03:31:14] Ox0dea: case Alice.height; when 10.feet; ...
[03:31:15] hostess: has joined #ruby
[03:31:21] duoi: has joined #ruby
[03:31:22] linc01n: has joined #ruby
[03:31:22] dymk: has joined #ruby
[03:31:27] universa1: has joined #ruby
[03:31:27] jimeh: has joined #ruby
[03:31:35] wookiehangover: has joined #ruby
[03:31:43] Klumben: has joined #ruby
[03:31:49] Wolland: has joined #ruby
[03:31:50] Voxxit: has joined #ruby
[03:32:11] Ox0dea: Psi-Jack: I guess yours probably wasn't a Jefferson Airplane reference.
[03:32:21] lacrosse: has joined #ruby
[03:32:33] craysiii: has joined #ruby
[03:32:43] bdnchr: has joined #ruby
[03:32:43] alkdsfhj: has joined #ruby
[03:33:43] bdnchr: has left #ruby: ()
[03:34:22] tmtwd: has joined #ruby
[03:36:14] terrellt: has joined #ruby
[03:36:25] michaeldeol: has joined #ruby
[03:38:09] nofxx: has joined #ruby
[03:39:46] Gnomethrower: has joined #ruby
[03:39:49] Gnomethrower: has joined #ruby
[03:40:48] bdnchr: has joined #ruby
[03:41:52] f00dMonsta: has joined #ruby
[03:42:02] icedragon: I've been wondering... Is there a shorter way to do this: File.basename(filename, File.extname(filename)), aka, strip directory and extension from the filename
[03:42:26] rushed: has joined #ruby
[03:42:28] asi_: has joined #ruby
[03:43:21] gix: has joined #ruby
[03:44:26] hostess: has joined #ruby
[03:45:38] s00pcan: has joined #ruby
[03:47:08] baweaver: has joined #ruby
[03:47:13] mozzarella: you could use '.*' instead
[03:47:36] rickmasta: has joined #ruby
[03:49:02] mozzarella: IceDragon: ^
[03:49:10] Ox0dea: IceDragon: Are you allergic to regular expressions?
[03:49:13] webguynow: has joined #ruby
[03:49:31] icedragon: 0x0dea: Sorta
[03:49:45] icedragon: mozzarella: that could work
[03:50:27] icedragon: 0x0dea: When you work with mruby you don't have the full luxury of regular expressions, unless you loaded up a gem with it
[03:50:44] poli_: has joined #ruby
[03:51:53] chipotle: has joined #ruby
[03:52:59] The_Phoenix: has joined #ruby
[03:53:42] Ox0dea: IceDragon: Whatcha doin' with mruby?
[03:54:05] icedragon: baweaver: mruby, by default does not include a Regexp implmentation
[03:54:11] dima_: has joined #ruby
[03:54:19] icedragon: 0x0dea: A game engine :D
[03:54:30] icedragon: more like a opengl wrapper
[03:54:45] icedragon: which just happens to have input...
[03:54:53] Ox0dea: So you're not actually constrained.
[03:54:59] araujo: has joined #ruby
[03:55:42] baweaver: what are you on about?
[03:55:50] baweaver: that's straight false.
[03:55:54] pepperbreath: has left #ruby: ()
[03:56:09] mrityunjay: has joined #ruby
[03:56:38] cball: has joined #ruby
[03:56:57] fostertheweb: has joined #ruby
[03:57:22] craysiii: has joined #ruby
[03:58:10] rushed: has joined #ruby
[03:59:08] minimalism: has joined #ruby
[03:59:57] icedragon: baweaver: My state remains true, mruby does not include a Regexp implementation, you have to use a 3rd party gem
[04:00:09] Ox0dea: It's arguably second-party.
[04:00:10] icedragon: god, 11 pm and my typing goes to hell
[04:00:33] icedragon: Its a party without confetti
[04:02:41] woodruffw: has joined #ruby
[04:03:07] wookiehangover: has joined #ruby
[04:03:41] drbrain: has joined #ruby
[04:03:51] epochwolf: has joined #ruby
[04:03:57] bf4_: has joined #ruby
[04:03:57] larissa: has joined #ruby
[04:03:59] waxjar: has joined #ruby
[04:04:01] Shidash: has joined #ruby
[04:04:05] cschneid: has joined #ruby
[04:04:21] DarkBushido: has joined #ruby
[04:04:23] duoi: has joined #ruby
[04:04:26] dymk: has joined #ruby
[04:04:27] mjmac: has joined #ruby
[04:04:31] jimeh: has joined #ruby
[04:04:42] iamninja: has joined #ruby
[04:04:57] Voxxit: has joined #ruby
[04:05:00] SuMo_D: has joined #ruby
[04:05:10] sfr^: has joined #ruby
[04:05:26] linc01n: has joined #ruby
[04:05:31] universa1: has joined #ruby
[04:07:21] lokulin: has joined #ruby
[04:07:56] robbyoconnor: has joined #ruby
[04:10:22] terrellt: has joined #ruby
[04:11:32] blackjid: has joined #ruby
[04:11:33] Klumben: has joined #ruby
[04:12:02] skarn: has joined #ruby
[04:12:04] HAL2328: has joined #ruby
[04:12:28] Raidboss: has joined #ruby
[04:12:48] Raidboss: has left #ruby: ()
[04:13:56] HAL2328: has left #ruby: ()
[04:17:05] devoldmx: has joined #ruby
[04:17:23] Rubie: has joined #ruby
[04:18:50] jackjackdripper: has joined #ruby
[04:19:44] chipotle: has joined #ruby
[04:21:56] devoldmx: has joined #ruby
[04:26:24] Psi-Jack: IceDragon: That is your own fault, my son. :)
[04:27:17] icedragon: psssh, true, I typo pretty often, the words flow from my mind faster than my hands can process -.-;
[04:30:00] fostertheweb: has joined #ruby
[04:36:31] petricore: has joined #ruby
[04:36:51] Musashi007: has joined #ruby
[04:37:57] jenrzzz: has joined #ruby
[04:38:36] alem0lars: has joined #ruby
[04:38:56] howdoicomputer: has joined #ruby
[04:43:05] Narzew: has joined #ruby
[04:44:40] johnhamelink: has joined #ruby
[04:44:42] fostertheweb: has joined #ruby
[04:45:31] ramfjord: has joined #ruby
[04:48:07] seitensei: ACTION eats IceDragon
[04:48:42] seitensei: Ice, do you have a github?
[04:48:53] rushed: has joined #ruby
[04:49:02] Psi-Jack: Well, no, because you ATE him.
[04:49:20] seitensei: He's not digest yet.
[04:52:29] arup_r: has joined #ruby
[04:53:39] dionysus69: has joined #ruby
[04:54:43] icedragon: *blub* IT BURRRRNS *blub*
[04:54:47] lampshades: has joined #ruby
[04:54:47] icedragon: yeah I have a github
[04:54:52] icedragon: its a mess though
[04:55:00] icedragon: https://github.com/IceDragon200
[04:55:03] lampshades: my github is a mess, and Im proud of it
[04:55:13] lampshades: because its MY github
[04:55:16] icedragon: lampshades: Pretty much
[04:55:18] lampshades: not anyone elses
[04:56:38] Hrorek: has joined #ruby
[04:57:18] seitensei: I should tinker with mruby again at some point
[04:57:27] seitensei: I've been wanting to run it on Android
[04:57:35] lampshades: I like your line-tracer
[04:58:17] seitensei: ACTION checks slack
[04:58:28] seitensei: Team members being lazy as usual, I can probably do my own side project
[04:59:17] icedragon: lampshades: me too, except my api is shit, and I haven't figured out how to fix it
[04:59:18] icedragon: ???(?????????)???
[04:59:25] juanpablo_: has joined #ruby
[05:00:04] webguynow: has joined #ruby
[05:03:28] afrianska: has joined #ruby
[05:04:33] acke: has joined #ruby
[05:04:46] lampshades: moon is quite interesting as well
[05:05:30] lampshades: makes me want to build some games
[05:08:32] cponcax: has joined #ruby
[05:08:35] Rubie: has joined #ruby
[05:10:07] Oog: has joined #ruby
[05:12:35] cponcax_: has joined #ruby
[05:14:07] astrobunny: has joined #ruby
[05:18:26] riotjones: has joined #ruby
[05:19:57] dhjondoh: has joined #ruby
[05:19:58] grenierm: has joined #ruby
[05:21:31] JohnnyTao: has joined #ruby
[05:22:05] Kidge: has joined #ruby
[05:22:06] Kidge: has left #ruby: ()
[05:24:54] Musashi007: has joined #ruby
[05:30:05] dhjondoh: has joined #ruby
[05:30:10] aganov: has joined #ruby
[05:39:35] flughafen: shevy! something took off today!
[05:39:40] yfeldblum: has joined #ruby
[05:40:51] codenapper: has joined #ruby
[05:41:39] webguynow: has joined #ruby
[05:41:55] astrobunny: has joined #ruby
[05:42:59] Renich: has joined #ruby
[05:43:26] SuMo_D: has joined #ruby
[05:44:31] BraddPitt: nice commit squares, IceDragon
[05:44:55] minimalism: has joined #ruby
[05:45:01] tagrudev: has joined #ruby
[05:45:20] BraddPitt: I will never regret having a separate github account for work
[05:45:27] BraddPitt: all those squares... gone forever...
[05:45:58] yfeldblum: has joined #ruby
[05:48:18] mike___1234: has joined #ruby
[05:48:35] Rubie: has joined #ruby
[05:49:19] last_staff: has joined #ruby
[05:51:59] riotjones: has joined #ruby
[05:53:34] Ox0dea: BraddPitt: I heard they take one of your fingers every time you muck with GIT_COMMITTER_DATE.
[05:55:25] havenwood: has joined #ruby
[05:55:48] Ox0dea: Forgiving any potentially insensitive assumptions I might be making, that gives you ten "custom" GitHub squares before you've got to find a new line of work, or at least a top-notch speech-to-text utility.
[05:58:49] codecop: has joined #ruby
[05:58:52] codecop_: has joined #ruby
[06:00:45] dhjondoh: has joined #ruby
[06:04:39] DoubleMalt: has joined #ruby
[06:04:49] agent_white: has joined #ruby
[06:04:53] mary5030: has joined #ruby
[06:05:24] alexUaN: has joined #ruby
[06:05:33] iamninja: has joined #ruby
[06:06:45] Musashi007: has joined #ruby
[06:07:21] pawnbox: has joined #ruby
[06:08:31] n4046: has joined #ruby
[06:09:33] acke: has joined #ruby
[06:10:14] eGGsha: has joined #ruby
[06:12:12] solars: has joined #ruby
[06:13:53] SuMo_D: has joined #ruby
[06:15:35] arup_r: has joined #ruby
[06:17:06] Musashi007: has joined #ruby
[06:20:45] ndrei: has joined #ruby
[06:20:59] n4046: has left #ruby: ()
[06:26:12] riotjones: has joined #ruby
[06:26:24] certainty: moin hackers
[06:27:23] rakm: has joined #ruby
[06:28:50] konopka: has joined #ruby
[06:29:53] webguynow: has joined #ruby
[06:32:34] firstdayonthejob: has joined #ruby
[06:33:23] andikr: has joined #ruby
[06:34:50] howdoicomputer: has joined #ruby
[06:35:26] Stan: has joined #ruby
[06:35:32] ChanServ: +o havenwood
[06:37:33] webguynow: has joined #ruby
[06:39:30] deg-: has joined #ruby
[06:39:38] havenwood: certainty: good mornin'
[06:42:29] khebbie: has joined #ruby
[06:43:41] allomov: has joined #ruby
[06:44:27] jalcine: has joined #ruby
[06:47:51] webguynow: has joined #ruby
[06:48:10] juanpablo_: has joined #ruby
[06:48:54] howdoi: has joined #ruby
[06:48:59] skullcrasher: has joined #ruby
[06:49:04] devoldmx: has joined #ruby
[06:50:43] dgutierrez1287: has joined #ruby
[06:51:57] haxrbyte: has joined #ruby
[06:52:15] x-light: has joined #ruby
[06:52:42] ChanServ: -o havenwood
[06:54:15] deg-: has joined #ruby
[06:55:30] pawnbox_: has joined #ruby
[06:56:14] pawnbox_: has joined #ruby
[06:57:13] jas02: has joined #ruby
[06:57:41] greenarrow: has joined #ruby
[06:59:04] flughafen: shevy: there is a facebook evvent , the oppening of BER airport on the 20.6.2029
[06:59:26] flughafen: shevy: https://www.facebook.com/events/1586234111663286/
[06:59:51] Hrorekr: has joined #ruby
[07:02:39] deg__: has joined #ruby
[07:03:54] dhjondoh: has joined #ruby
[07:04:19] Denis: has joined #ruby
[07:05:27] MuffinPimp: has joined #ruby
[07:05:31] webguynow: has joined #ruby
[07:06:03] rbowlby: has joined #ruby
[07:07:36] hs366: has joined #ruby
[07:07:53] Rubie: has joined #ruby
[07:08:14] xcesariox: has joined #ruby
[07:08:24] mgorbach: has joined #ruby
[07:09:14] leafybas_: has joined #ruby
[07:09:51] araujo: has joined #ruby
[07:11:30] flughafen: when is it scheduled to open?
[07:11:31] alex88: has joined #ruby
[07:13:09] webguynow: has joined #ruby
[07:13:31] cvtsx: has joined #ruby
[07:13:48] mrityunjay: has joined #ruby
[07:14:03] shevy: flughafen they could open the flughafen for incoming refugees :D
[07:15:12] certainty: http://blog.honeybadger.io/avoid-these-traps-when-nesting-ruby-modules/ nice summary
[07:15:26] robbyoconnor: has joined #ruby
[07:16:16] havenwood: has joined #ruby
[07:18:07] aibot: has joined #ruby
[07:18:50] shevy: he just scopes incorrectly or?
[07:19:30] certainty: well the thing to realize that it's lexically scoped
[07:19:36] shevy: I also don't know why he speaks of "child" when he uses modules
[07:19:48] jmarrec: has joined #ruby
[07:19:51] deg-: has joined #ruby
[07:20:49] shevy: I remember I had weirdness once
[07:20:58] shevy: something like: module Foo; class Foo
[07:21:36] agent_white: If I... rewrite my new jobs ecomm site into rails/spree... I can get rid of magento... then do ruby all the time?!
[07:22:01] shevy: what is magento, is this php?
[07:22:28] agent_white: shevy: Yep! I believe PHP and a mix of The Black Speech.
[07:22:54] ChanServ: +o havenwood
[07:23:15] havenwood: !unmute havenwood
[07:23:16] ruboto: -q havenwood!*@*
[07:23:16] ruboto: -o ruboto
[07:23:31] ChanServ: -o havenwood
[07:23:47] havenwood: Managed to mute myself. >.>
[07:23:58] havenwood: !unmute havenwood
[07:23:59] ruboto: -q havenwood!*@*
[07:23:59] ruboto: -o ruboto
[07:24:53] havenwood: ACTION pokes ruboto
[07:25:25] havenwood: agent_white: Would it be a huge thing to migrate?
[07:26:33] agent_white: havenwood: Nope! Looking at... 3 sites, 300 products for two of the sites, and... 6 for the third :)
[07:26:35] johnny5: has joined #ruby
[07:27:10] etvr: has joined #ruby
[07:27:43] shevy: havenwood lol
[07:27:48] skullcrasher: has joined #ruby
[07:28:05] shevy: you become a scary person without coffee
[07:29:16] havenwood: shevy: Mmm, coffee.
[07:29:22] anisha: has joined #ruby
[07:30:42] JohnnyTao: has joined #ruby
[07:31:46] shevy: there was some ruby code that showed how to create a zombie
[07:32:02] havenwood: shevy: zombie process or... zombie?
[07:32:05] shevy: first a cd, then a fork or something... anyone remembers where zombies can be created in ruby?
[07:32:09] shevy: all zombies!
[07:32:28] bayed: has joined #ruby
[07:32:41] johnny5: has joined #ruby
[07:33:13] Juanchito: has joined #ruby
[07:33:29] shevy: I remember I looked at the source at ruby doc some months ago
[07:33:48] shevy: the cd was to "/" if I remember correctly before forking happened
[07:38:57] allomov: has joined #ruby
[07:39:09] chipotle: has joined #ruby
[07:41:18] Pro|: has joined #ruby
[07:41:49] naftilos76: has joined #ruby
[07:42:16] Pro|: is it possible to define a method with dynamic part in its name
[07:42:31] Pro|: like def for_x_times
[07:42:54] Hounddog: has joined #ruby
[07:43:35] c0def00d: has joined #ruby
[07:44:35] c0def00d: Ruby newb here needs a little help. Getting a ???NoMethodError: undefined method `pathmap' for #<Pathname:0x007ff2ac2f9fd0>??? error in a rakefile. I know that pathmap is an extension method of Pathname provided by Rake, but it should be there. Would could I have done wrong for this not to work?
[07:45:12] c0def00d: I???m on rake, version 10.4.2
[07:45:16] Zai00: has joined #ruby
[07:45:41] bigkevmcd: has joined #ruby
[07:46:51] jgt1: has joined #ruby
[07:47:01] ta: has joined #ruby
[07:47:44] charliesome: has joined #ruby
[07:48:10] shevy: Pro| yes, you can use the method called: define_method()
[07:48:13] senayar: has joined #ruby
[07:48:31] shevy: Pro| so the first step is: generate the name that you wish to use; the second step is, send into define_method()
[07:48:53] JohnnyTao: has joined #ruby
[07:48:59] Hounddog: has joined #ruby
[07:49:07] shevy: you can use .instance_eval or .class_eval in combination with define_method to define on the object in question on the class level or instance/singleton level
[07:49:21] Pro|: ok thank you
[07:49:24] shevy: http://ruby-doc.org/core-2.2.0/Module.html#method-i-define_method
[07:49:27] Oog: has joined #ruby
[07:49:28] Pro|: thats what i was looking for
[07:49:46] devoldmx: has joined #ruby
[07:50:15] Pathfinder: has joined #ruby
[07:52:49] Pathfinder: Anyone used the new FIX 5 Protocol ...
[07:54:08] shevy: c0def00d you probaly need to load the part that adds that method to Pathname
[07:54:26] JohnnyTao: has joined #ruby
[07:55:09] shevy: c0def00d class String also has such a method by default: http://ruby-doc.org/stdlib-2.2.3/libdoc/rake/rdoc/String.html#method-i-pathmap
[07:56:13] karapetyan: has joined #ruby
[07:56:39] mikecmpbll: has joined #ruby
[07:57:09] jenrzzz: has joined #ruby
[07:57:53] yardenbar: has joined #ruby
[07:57:54] shevy: I hate pathname
[07:58:19] havenwood: adaedra: hey
[07:58:42] havenwood: ACTION searches for a psychiatrist's pipe
[07:59:45] shevy: insanity is a feature, not a bug!
[08:00:00] Pupeno: has joined #ruby
[08:00:21] adaedra: Some people had some fun this night I see
[08:00:53] shevy: where were YOU
[08:01:04] jhass: c0def00d: pathmap is to be called on a Rake::FileList, not a Pathname http://www.rubydoc.info/gems/rake/Rake/FileList#pathmap-instance_method
[08:01:05] adaedra: where were who
[08:01:45] jhass: c0def00d: http://devdocs.io/ruby/pathname#method-i-pathmap oh actually it's a stdlib method, ancient Ruby perhaps?
[08:01:55] c0def00d: jhass: http://ruby-doc.org/stdlib-2.2.2/libdoc/rake/rdoc/Pathname.html
[08:01:57] ekem: her whoops
[08:02:55] c0def00d: jhass: it is stdlib
[08:02:56] xcesariox: has joined #ruby
[08:03:06] c0def00d: jhass: perhaps my environment changed since last time
[08:03:09] c0def00d: jhass: thanks :)
[08:04:11] webguynow: has joined #ruby
[08:04:59] jhass: c0def00d: mmh, it was added back in 0.7.2, what's your rake version?
[08:05:29] Timba-as: has joined #ruby
[08:06:27] iamninja: has joined #ruby
[08:08:09] monod: has joined #ruby
[08:08:32] khebbie: has joined #ruby
[08:08:39] _axx: has left #ruby: ()
[08:09:52] jhass: what if you require "rake/ext/pathname" explicitly?
[08:11:29] chipotle: has joined #ruby
[08:12:32] kiddorails: has joined #ruby
[08:13:40] webguynow: has joined #ruby
[08:13:49] Kedare: has joined #ruby
[08:14:04] c0def00d: jhass: that works fine
[08:14:27] DoubleMalt: has joined #ruby
[08:14:30] c0def00d: jhass: the weird thing is I was sure it used to work without that epxlicit require. thanks a lot for helping me out :)
[08:15:03] jhass: yeah I wouldn't expect it to be needed
[08:15:55] SuMo_D: has joined #ruby
[08:17:17] skade: has joined #ruby
[08:19:46] kostiak: has joined #ruby
[08:20:34] havenwood: good mornin'
[08:22:01] khebbie: has joined #ruby
[08:22:38] yottanami: has joined #ruby
[08:23:09] yottanami: Should I return nil or false when a method have not ok result?
[08:23:30] jhass: yottanami: what's the ok result?
[08:23:44] jhass: and when does the not ok result happen?
[08:24:41] webguynow: has joined #ruby
[08:24:55] ziro`: has joined #ruby
[08:25:30] TheHodge: has joined #ruby
[08:27:54] yottanami: jhass, It is Rails code and should check some params if one of them have not expected value return something to say the caller method
[08:29:16] jgt1: has joined #ruby
[08:29:52] jhass: so true/false seems like a sane reply?
[08:30:14] pawnbox: has joined #ruby
[08:30:22] jhass: valid_foo?(param[:foo])
[08:31:58] leafybasil: has joined #ruby
[08:32:35] nofxx: has joined #ruby
[08:34:07] Balzrael: has joined #ruby
[08:34:55] c0m0: has joined #ruby
[08:36:32] skade: has joined #ruby
[08:36:55] juanpablo_: has joined #ruby
[08:38:08] krz: has joined #ruby
[08:42:32] x-light: has joined #ruby
[08:44:37] bampersand: has joined #ruby
[08:45:40] Oog: has joined #ruby
[08:50:13] dmolina: has joined #ruby
[08:50:30] CustosL1men: has joined #ruby
[08:51:44] araujo: has joined #ruby
[08:52:22] leafybasil: has joined #ruby
[08:52:23] certainty: i usually use nil only when i want to denote the absence of a value. And even then i'm not always happy because nil is semantically overloaded in many systems already. In this case value of the boolean type seems like a proper fit. It either is valid or it is not. Should be a fairly rigid function that maps to either of these
[08:52:33] pandaant: has joined #ruby
[08:53:14] leafybasil: has joined #ruby
[08:56:11] UtkarshRay: has joined #ruby
[08:58:41] chipotle: has joined #ruby
[08:58:46] blaxter: has joined #ruby
[09:03:20] zapata: has joined #ruby
[09:04:05] khebbie: has joined #ruby
[09:04:54] Macaveli: has joined #ruby
[09:10:49] marr: has joined #ruby
[09:11:00] dara: has joined #ruby
[09:11:05] dara: has left #ruby: ()
[09:12:36] lxsameer: has joined #ruby
[09:15:54] x-light: has joined #ruby
[09:16:26] karapetyan: has joined #ruby
[09:16:57] relix: has joined #ruby
[09:17:56] dhjondoh: has joined #ruby
[09:17:59] Oog_: has joined #ruby
[09:19:30] zenspider: huh. I've never known of String#pathmap. You learn something new every day (hopefully)
[09:19:34] SCHAAP137: has joined #ruby
[09:19:46] sameerynho: has joined #ruby
[09:19:57] Siyfion: has joined #ruby
[09:20:10] zenspider: yottanami: raise an exception
[09:20:39] DLSteve: has joined #ruby
[09:20:53] Zai00: has joined #ruby
[09:20:54] karapetyan: has joined #ruby
[09:21:34] A124: has joined #ruby
[09:22:38] zenspider: ACTION goes to bed
[09:24:49] frg133: has joined #ruby
[09:25:44] voker57: has joined #ruby
[09:28:04] karapetyan: has joined #ruby
[09:31:43] arup_r: has joined #ruby
[09:33:11] Oog: has joined #ruby
[09:33:36] arup_r1: has joined #ruby
[09:34:19] Oog_: has joined #ruby
[09:34:30] dotix: has joined #ruby
[09:34:30] dotix: has joined #ruby
[09:35:10] pawnbox: has joined #ruby
[09:36:51] rdark: has joined #ruby
[09:39:11] dotix: what's the best way to make nil out of "" in-place => {"a" => "aa", "b" => "bb", "c" => ""}
[09:39:27] dotix: => {"a" => "aa", "b" => "bb", "c" => nil}
[09:40:42] certainty: >> h = {"a" => "aa", "b" => "bb", "c" => ""}; h.delete_if { |_,v| v.empty? }; h
[09:40:43] ruboto: certainty # => {"a"=>"aa", "b"=>"bb"} (https://eval.in/433327)
[09:40:45] jkldfhcx: has joined #ruby
[09:41:08] certainty: note that this will not work if you need to preserve keys
[09:43:15] alex88: hi everyone, anyone tried to create a custom sprockets processor? I'm trying to create a custom haml compiler that compiles to html within jst using custom settings (so without using the js haml compiler)
[09:43:20] [k-: has joined #ruby
[09:43:34] certainty: that is if you use Hash#key? somewhere for example or if you just perceive the nil through a hash lookup in which case a non existing key will return nil as well
[09:44:16] tvw: has joined #ruby
[09:49:30] bluOxigen: has joined #ruby
[09:50:07] dhjondoh: has joined #ruby
[09:50:32] devoldmx: has joined #ruby
[09:50:42] dgutierrez1287: has joined #ruby
[09:51:47] lele|w: has joined #ruby
[09:54:16] Pupeno_: has joined #ruby
[09:54:19] shevy: what possibilities exist for a config -rc file in ruby? one would be yaml I assume... is there something simpler than yaml though, for a user?
[09:54:31] shevy: like .pryrc or .irbrc
[09:54:48] shevy: hmm ok the latters are not good examples I assume since they are ruby code; I mean more like .bashrc perhaps... also not a good example ... \
[09:54:49] Oog: has joined #ruby
[09:55:38] gregf_: er, i think dotix means change foo => "" to foo => nil
[09:56:36] dotix: yes, wnated to do that because of how forms are submited in rails
[09:56:42] gregf_: >> {"a" => "aa", "b" => "bb", "c" => ""}.map{|k,v| [k, v.empty? ? nil : v]}
[09:56:43] ruboto: gregf_ # => [["a", "aa"], ["b", "bb"], ["c", nil]] (https://eval.in/433334)
[09:56:44] dotix: probably I will end up using a normalizer
[09:56:47] gregf_: >> {"a" => "aa", "b" => "bb", "c" => ""}.map{|k,v| [k, v.empty? ? nil : v]}.to_h
[09:56:47] ruboto: gregf_ # => {"a"=>"aa", "b"=>"bb", "c"=>nil} (https://eval.in/433335)
[09:56:55] gregf_: prolly not the best way :/
[09:57:50] gregf_: a null is surely not the same as an empty string... atleast not in the DB
[10:02:01] eGGsha: has joined #ruby
[10:02:29] mprelude: has joined #ruby
[10:02:38] dotix: Yes, that'll work, but I think I'll have problems with this in the future
[10:02:46] dotix: Probably it's not the best way like you said
[10:03:24] ruby-lang207: has joined #ruby
[10:03:43] Billias: has joined #ruby
[10:05:32] mary5030: has joined #ruby
[10:07:20] iamninja: has joined #ruby
[10:07:22] jgt1: has joined #ruby
[10:10:02] pawnbox: has joined #ruby
[10:12:32] Macaveli: has joined #ruby
[10:14:01] pawnbox: has joined #ruby
[10:20:11] tkuchiki: has joined #ruby
[10:20:21] rickmasta: has joined #ruby
[10:21:38] Oog: has joined #ruby
[10:21:50] ramfjord: has joined #ruby
[10:22:11] AlexRussia: has joined #ruby
[10:24:28] rdark: has joined #ruby
[10:25:39] juanpablo_: has joined #ruby
[10:27:01] lkba_: has joined #ruby
[10:30:22] DoubleMalt: has joined #ruby
[10:30:26] tkuchiki: has joined #ruby
[10:31:54] oddmunds: shevy: the "rc" in .bashrc etc. stands for 'run commands', so rc-files are traditionally script files
[10:31:58] verdoc: has joined #ruby
[10:32:05] oddmunds: for example written in ruby
[10:32:05] j416: has joined #ruby
[10:32:14] nullwarp: has joined #ruby
[10:32:15] crdpink2: has joined #ruby
[10:32:16] unclouded: has joined #ruby
[10:32:16] bestbrents__: has joined #ruby
[10:32:20] stevednd: has joined #ruby
[10:32:57] keen__________20: has joined #ruby
[10:32:58] oddmunds: .conf files might be more what you're looking for
[10:33:10] rodfersou: has joined #ruby
[10:33:29] oddmunds: https://en.wikipedia.org/wiki/Configuration_file
[10:33:48] symm-: has joined #ruby
[10:35:42] tkuchiki: has joined #ruby
[10:37:22] Hrorekr: has left #ruby: ()
[10:38:40] sdfgsdfg: has joined #ruby
[10:40:41] Salehi: has joined #ruby
[10:45:06] r_baron: has joined #ruby
[10:45:43] tkuchiki: has joined #ruby
[10:45:52] sdothum: has joined #ruby
[10:50:17] tkuchiki: has joined #ruby
[10:51:42] platosha: has joined #ruby
[10:53:26] ujjain: has joined #ruby
[10:53:26] ujjain: has joined #ruby
[10:54:16] chouhoulis: has joined #ruby
[10:54:45] nettoweb: has joined #ruby
[10:56:58] chills42: has joined #ruby
[10:57:03] tkuchiki: has joined #ruby
[10:57:40] chouhoulis: has joined #ruby
[10:57:41] phutchins: has joined #ruby
[10:58:07] Kallis: has joined #ruby
[10:58:29] khebbie: has joined #ruby
[10:59:22] chipotle: has joined #ruby
[10:59:38] freezevee: has joined #ruby
[10:59:58] jhass: shevy: also have a look at TOML for some more formalized ini
[11:01:35] tkuchiki: has joined #ruby
[11:01:57] NeverDie: has joined #ruby
[11:03:05] Trieste: has joined #ruby
[11:03:56] chthon: has joined #ruby
[11:05:09] dhjondoh: has joined #ruby
[11:09:36] moeabdol: has joined #ruby
[11:10:01] Rubie: has joined #ruby
[11:10:02] charliesome: has joined #ruby
[11:11:15] lulzmachine: has joined #ruby
[11:11:40] Siyfion: has joined #ruby
[11:12:49] FernandoBasso: has joined #ruby
[11:14:29] khebbie: has joined #ruby
[11:15:33] deg-: has joined #ruby
[11:16:18] stamina: has joined #ruby
[11:16:28] scaceres: has joined #ruby
[11:16:35] scaceres: hello guys, I need help
[11:17:04] lampshades: has joined #ruby
[11:17:18] scaceres: I installed all the gems inside a gemfile, but as I try running my application, I get a "Could not find naught-1.0.0 in any of the sources" error
[11:18:03] scaceres: when I do find naught, I get /var/lib/gems/2.1.0/gems/naught-1.1.0/lib/naught
[11:18:12] scaceres: so it is there, just that my app is not seeing it
[11:18:50] scaceres: I can see the /var/lib/gems/2.1.0 direcotry in gem paths when using `gem env`
[11:18:52] scaceres: any ideas why?
[11:19:43] scaceres: is it because its the wrong version?
[11:19:58] drptbl: has joined #ruby
[11:20:53] pawnbox: has joined #ruby
[11:22:06] unholycrab: has joined #ruby
[11:24:42] vdamewood: has joined #ruby
[11:25:31] adaedra: How did you install the gems from the Gemfile?
[11:25:36] platosha: has joined #ruby
[11:26:46] brendan-: has joined #ruby
[11:28:26] zacts: has joined #ruby
[11:28:38] [spoiler]: Am I the only one who's cracking up at the fact a gem called "naught" can't be found?
[11:28:44] [spoiler]: This is the best error message ever
[11:29:14] scaceres: adaedra: bundle install
[11:29:18] but3k4: has joined #ruby
[11:30:47] [spoiler]: scaceres: how are you running your application?
[11:31:23] [spoiler]: scaceres: but yes the version mismatch might be the cause of your problems :/
[11:31:34] scaceres: [spoiler]: it's actually dashing, so just `dashing start`
[11:31:35] [spoiler]: and depends on how you're including naught, too
[11:32:40] syath: has joined #ruby
[11:33:55] [spoiler]: scaceres: try `bundle exec dashing start` but since it installed the gems globally (I assume) it shouldn't really make a difference
[11:33:57] howdoicomputer: has joined #ruby
[11:34:17] [spoiler]: try just in case though
[11:34:18] jhass: scaceres: which exact command do you run your application with?
[11:34:31] jhass: oh, sorry too slow
[11:34:32] scaceres: [spoiler]: I'm not including naught, I think is it a dependency on other gems I am using. I can see it on the Gemfile.lock file.
[11:34:49] jhass: +1, try bundle exec dashing start
[11:35:01] scaceres: [spoiler]: tried `bunflr exec dashing start`, not working :/
[11:35:18] izzol: hmm, there is no way to connect to the IP:port using net/http? I don't have any domain but I need to do some things using HTTP.
[11:35:44] scaceres: [spoiler]: I meant bundler :D
[11:35:50] mary5030: has joined #ruby
[11:36:01] jhass: scaceres: on the same shell you successfully ran bundle install prior?
[11:36:14] [spoiler]: izzol: you should be able to pass in the IP
[11:36:18] devoldmx: has joined #ruby
[11:36:24] ldnunes: has joined #ruby
[11:36:37] [spoiler]: scaceres: try `bundle install --path .bundle` and then `bundle exec dashing start`
[11:36:38] scaceres: [spoiler]: oh duh I just realized my mistake
[11:36:47] scaceres: I feel like a moron
[11:37:13] scaceres: basically I wasn't using the gemfile.lock when installing the gems
[11:37:57] [spoiler]: You weren't? Doesn't bundler use that by default if it's present
[11:38:25] scaceres: yes it does, but I'm running it on a docker container while building
[11:38:35] scaceres: so I just copied the gemfile and ran the command
[11:39:42] scaceres: layer 8 issue
[11:39:45] krz: has joined #ruby
[11:40:30] izzol: [spoiler]: you right, I had a typo.
[11:40:51] ldnunes_: has joined #ruby
[11:41:27] iamninja: has joined #ruby
[11:41:28] Pathfinder: Hey guys, How do I authenticate to a FIX protocol
[11:41:53] [spoiler]: izzol: typos are the source of 80% of my bugs (statistics fake; apeiros will probably say it's higher)
[11:41:53] pawnbox: has joined #ruby
[11:42:17] apeiros: ACTION doesn't know nothing about [spoiler]'s bugs
[11:42:26] [spoiler]: Pathfinder: first you need to create a BUG, then open an ISSUE and then you can FIX it
[11:42:47] Gnomethrower: has joined #ruby
[11:43:03] Gnomethrower: has joined #ruby
[11:44:22] Pathfinder: I have never used this specification before, I am lost on even where to begin having reared some 48page PDF. Being used to REST protocols, this is extremely strange
[11:44:23] [spoiler]: apeiros: yeah but I remember you having an inquiry about why I'm so inept at typing (I even installed the aspell plugin for weechat to make stuff red so I notice the typos)
[11:44:37] apeiros: [spoiler]: ah, I remember
[11:44:45] Pathfinder: I am looking for pointers ... Like a FIX ruby hello world
[11:44:53] UtkarshRay: has joined #ruby
[11:44:59] [spoiler]: Pathfinder: that is FIX?
[11:45:08] [spoiler]: s/that/what
[11:45:27] scaceres: anyways, thank you all guys
[11:45:29] iamninja_: has joined #ruby
[11:45:30] Pathfinder: Financial Information Exchange Protocol
[11:45:32] scaceres: you're great
[11:45:35] [spoiler]: Is it this: https://en.wikipedia.org/wiki/Financial_Information_eXchange ?
[11:45:45] [spoiler]: ACTION sighs.
[11:45:58] [spoiler]: ?guys scaceres
[11:45:58] ruboto: scaceres, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[11:46:04] Pathfinder: Its a protocol that is used by trading applications for communications.
[11:46:47] [k-_: has joined #ruby
[11:46:58] terlar: has joined #ruby
[11:47:04] [spoiler]: Pathfinder: oh no idea, to be honest. I googled and found this http://www.quickfixengine.org/
[11:47:43] bodgix: I'm playing with PTY::spawn. I've been struggling with this for some time now.
[11:48:31] bodgix: I'm using expect to find something in the output, but I don't know how to know that the command has finished. I'm thinking maybe to set the prompt to something I will be looking for?
[11:48:41] Pathfinder: [spoiler]: To be honest, I have already seen that and I still have no idea what is going on ..... I think I need a good nap first :)
[11:48:53] greenarrow: has joined #ruby
[11:48:59] [spoiler]: Pathfinder: there's no documentation for that gem (that I can find) lol
[11:49:19] bodgix: In other words how do I know that what I'm seeing on the terminal is no longer an interactive command but I'm back in the shell
[11:49:23] [spoiler]: I have no idea, sorry. :/
[11:50:11] timonv: has joined #ruby
[11:50:13] ndrei: has joined #ruby
[11:50:15] jenrzzz: has joined #ruby
[11:50:27] skade: has joined #ruby
[11:51:15] khebbie: has joined #ruby
[11:51:28] drptbl_: has joined #ruby
[11:51:46] prestorium: has joined #ruby
[11:53:43] pwnd_nsfw: has joined #ruby
[11:54:01] scaceres: ruboto: you're right. thank you everyone.
[11:54:16] scaceres: you're great (everyone)
[11:55:19] Ropeney: has joined #ruby
[11:56:05] codenapp_: has joined #ruby
[12:00:20] devdazed: has joined #ruby
[12:00:40] karapetyan: has joined #ruby
[12:01:37] sepp2k: has joined #ruby
[12:02:04] infoget: has joined #ruby
[12:02:40] nateberkopec: has joined #ruby
[12:04:14] infoget: has joined #ruby
[12:05:16] infoget: Hi folks, (["1"] && ["1","2","3","4"]).count, I would like to get conformity of the arrays (1) insteed of I get count of last array => 4, how can I achieve it short way?
[12:06:52] Ox0dea: infoget: One `&`, not 2.
[12:07:34] infoget: oh man, thanks, my inattention...
[12:07:43] Ox0dea: Happy to help.
[12:08:52] ldnunes: has joined #ruby
[12:13:20] JDiPierro: has joined #ruby
[12:13:30] victortyau: has joined #ruby
[12:14:24] rbennacer: has joined #ruby
[12:14:25] juanpablo_: has joined #ruby
[12:15:08] jgt1: has joined #ruby
[12:17:54] pol0: has joined #ruby
[12:18:49] webguynow: has joined #ruby
[12:18:56] pawnbox: has joined #ruby
[12:19:41] codenapper: has joined #ruby
[12:21:26] lampshades: has joined #ruby
[12:23:39] mary5030: has joined #ruby
[12:25:49] tkuchiki: has joined #ruby
[12:26:32] David27: has joined #ruby
[12:27:48] znz_jp: has joined #ruby
[12:28:43] pwnd_nfsw: has joined #ruby
[12:29:08] dotix: has joined #ruby
[12:29:53] tatsuo: has joined #ruby
[12:32:02] y0da: has joined #ruby
[12:32:47] diegoviola: has joined #ruby
[12:33:32] tkuchiki: has joined #ruby
[12:33:49] iateadonut: has joined #ruby
[12:35:19] DEac-: has joined #ruby
[12:35:44] pawnbox: has joined #ruby
[12:36:14] yalue: has joined #ruby
[12:36:23] DoubleMalt: has joined #ruby
[12:37:19] aswen: has joined #ruby
[12:37:42] JDiPierro: has joined #ruby
[12:38:08] daynaskully: has left #ruby: ("Leaving")
[12:38:10] tkuchiki: has joined #ruby
[12:39:54] hinbody: has joined #ruby
[12:40:23] camilasan: has joined #ruby
[12:41:09] scaceres: don't tell anyone about that
[12:42:26] diegoviola: what are your thoughts on the crystal language?
[12:44:03] skade: has joined #ruby
[12:45:00] tcopeland: has joined #ruby
[12:45:10] apeiros: my thoughts are that jhass is excited by it
[12:47:09] ruby-lang334: has joined #ruby
[12:47:41] chipotle: has joined #ruby
[12:47:55] diegoviola: I see, interesting
[12:49:41] diegoviola: since it has some similarities with Ruby, I wonder if they implemented all that from scratch or it shares some code with ruby too?
[12:50:27] khebbie: has joined #ruby
[12:50:28] devoldmx: has joined #ruby
[12:50:33] malconis: has joined #ruby
[12:51:33] jenrzzz: has joined #ruby
[12:52:01] s00pcan: has joined #ruby
[12:52:33] jhass: Crystal is written in Crystal and was bootstrapped from Ruby. Ruby has implementations in C, C++, Java & Python
[12:52:52] jhass: we sometimes borrow (adapt) some library code from Rubinius though
[12:52:59] p0wn3d_: has joined #ruby
[12:54:18] diegoviola: jhass: interesting
[12:55:42] iamninja_: has joined #ruby
[12:56:47] JoshL: has joined #ruby
[12:57:06] webguynow: has joined #ruby
[12:57:23] saddad: has joined #ruby
[12:59:41] timonv: has joined #ruby
[13:01:05] Swappticon: has joined #ruby
[13:01:16] goodcodeguy: has joined #ruby
[13:02:27] felixrsmith: has joined #ruby
[13:04:26] jordanm: has joined #ruby
[13:06:26] monod: has joined #ruby
[13:06:44] xaxisx: has joined #ruby
[13:09:50] Ketchy: has joined #ruby
[13:10:12] djbkd: has joined #ruby
[13:12:01] umgrosscol: has joined #ruby
[13:12:11] shevy: crystal already has better docs than ruby :D :D :D
[13:12:23] shevy: there are things I miss, such as "alias"
[13:12:37] skade: has joined #ruby
[13:13:00] krz: has joined #ruby
[13:13:15] adaedra: I remember a quote I read on a project README once
[13:13:18] jhass: we do have alias, it's only for types though :P
[13:13:22] adaedra: "Best documentation is the code"
[13:13:52] jhass: and crystal is just crystal, if you can read crystal you can read all of stdlib
[13:15:10] juanpablo_: has joined #ruby
[13:15:43] shevy: well, usually well experienced programmers can read code but beginners may find that very hard
[13:16:16] chills42: has joined #ruby
[13:17:22] lavros: has joined #ruby
[13:17:31] adaedra: code, whenever it's badly or not written, is not an excuse not to document
[13:17:42] shevy: I write awesome code
[13:18:15] adaedra: Do you write awesome documentation?
[13:18:16] shevy: except when I write PHP code
[13:18:24] shevy: documentation is much harder than code
[13:18:30] adaedra: I write beautiful code in php.
[13:18:40] adaedra: <?php die("Don't use this.");
[13:18:46] shevy: you missed something!
[13:19:21] shevy: does ruby have die?
[13:19:40] shevy: I think I remember perl code that used things such as "or die"
[13:20:03] jhass: shevy: sort of, Kernel::abort comes quite close
[13:20:19] mcFactor: has joined #ruby
[13:20:30] whippythellama: has joined #ruby
[13:21:49] webguynow: has joined #ruby
[13:22:37] adaedra: there's exit
[13:22:50] adaedra: but there's no associated message
[13:23:15] adaedra: ew, "or die"
[13:23:26] CustosL1men: has joined #ruby
[13:26:12] f4cl3y: has joined #ruby
[13:26:44] bigmac: has joined #ruby
[13:26:56] jhooker: has joined #ruby
[13:27:30] fmcgeough: has joined #ruby
[13:27:43] bigmac: has left #ruby: ()
[13:28:03] i8igmac: has joined #ruby
[13:28:23] jdawgaz: has joined #ruby
[13:29:04] charliesome: has joined #ruby
[13:31:42] elfuego: has joined #ruby
[13:32:20] tkuchiki: has joined #ruby
[13:38:07] arashb: has joined #ruby
[13:39:32] sankaber: has joined #ruby
[13:40:46] goddamnwrongside: has joined #ruby
[13:41:57] chipotle: has joined #ruby
[13:42:10] goddamnwrongside: has left #ruby: ()
[13:44:53] dima_: has joined #ruby
[13:45:55] rbennacer: has joined #ruby
[13:47:57] ghoti: has joined #ruby
[13:48:04] webguynow: has joined #ruby
[13:48:08] Jardayn: has joined #ruby
[13:48:20] shinnya: has joined #ruby
[13:48:28] sw: has joined #ruby
[13:49:23] freezevee: I am looking forward to push my first commit ever in someone else's git and I am wondering how do I require a local gem
[13:49:35] freezevee: how do you usually do this ?
[13:49:44] apeiros: pry -Ilib -rfile
[13:49:48] freezevee: git clone the repo in the folder that you work ?
[13:49:55] youngbaks: has joined #ruby
[13:50:05] apeiros: oh. one step earlier even???
[13:50:07] p0wn3d_: has joined #ruby
[13:50:21] freezevee: what is the procedure ?
[13:51:05] apeiros: you're using a foreign gem X in your own gem Y?
[13:51:07] hayricicek: has joined #ruby
[13:51:18] Guest5: has joined #ruby
[13:51:24] freezevee: for example let's say nokogiri
[13:51:39] freezevee: I want to make some changes in the code and then submit a pull request
[13:51:45] p0wn3d_: has joined #ruby
[13:52:05] freezevee: I will create a ruby file in my folder and then usually require 'nokogiri'
[13:52:36] freezevee: because it will have been installed by gem install nokogiri in the system's ruby gems path
[13:52:48] apeiros: well, then indeed pry -Ilib -rfile. though with native extensions I'm not really sure. probably just add another -Iext
[13:53:05] freezevee: I 'm not sure I understand
[13:53:09] Cork: is there a way for a member method to check if a specific private method is defined? (in a class inheriting the class)
[13:53:19] apeiros: but with a gem like nokogiri, you're probably better off adding a test for your change
[13:53:28] apeiros: and then follow the gem's own guides on how to run the tests
[13:53:49] shevy: Cork perhaps via .respond_to?
[13:53:57] webguynow: has joined #ruby
[13:54:03] apeiros: >> respond_to?(:puts, true)
[13:54:04] Cork: shevy: on what?
[13:54:04] ruboto: apeiros # => true (https://eval.in/433467)
[13:54:14] Cork: self.respond_to? will only list the public methods
[13:54:15] freezevee: sorry I don't get it
[13:54:30] apeiros: Cork: that's why there's a second argument
[13:54:38] skade: has joined #ruby
[13:54:45] duggiefresh: has joined #ruby
[13:54:48] apeiros: (which is also mentioned in the docs)
[13:54:52] Cork: that was the peace i was missing! :)
[13:55:44] iateadonut: has joined #ruby
[13:56:37] apeiros: freezevee: https://github.com/sparklemotion/nokogiri/tree/master/test
[13:56:42] apeiros: that's the test dir. it contains tests.
[13:57:02] apeiros: you add a test for whatever change you do. you run the tests in the way nokogiri's docs tell you to run them.
[13:57:34] gregf_: Cork: are you the guy from #jquery? #offtopic i know
[13:57:56] Cork: gregf_: ya?
[13:58:16] i8igmac: has joined #ruby
[13:58:21] apeiros: gregf_: that's fine. can't ask them in #offtopic when they're not there :)
[13:58:39] shevy: we see people from here on different channels!
[13:58:57] freezevee: apeiros: so you first write the test and then change the code ?
[13:59:01] freezevee: some kind of TDD ?
[13:59:09] Cork: gregf_: top, nicks are network unique ;)
[13:59:26] t0rc: has joined #ruby
[13:59:27] gregf_: Cork: ;), sure
[13:59:57] apeiros: freezevee: you can write the code first too. the point is that you want to load the gem to *test* your change. and that's better done by actually writing a test.
[14:00:06] saddad: has joined #ruby
[14:00:30] Hrorek: has joined #ruby
[14:01:26] nowhereFast: has joined #ruby
[14:01:41] freezevee: apeiros: thank you
[14:02:04] nowhereFast: I'd like a count of the same type of object in an array
[14:02:17] nowhereFast: is there a way to do this in a single step?
[14:02:24] drptbl: has joined #ruby
[14:02:39] apeiros: nowhereFast: Array#count
[14:02:57] apeiros: or actually: yes :-p
[14:02:57] nowhereFast: took a look at that, but the objects are not text
[14:03:04] apeiros: nowhereFast: so?
[14:03:11] bigbadbear: has joined #ruby
[14:03:20] p0wn3d_: has joined #ruby
[14:03:43] nowhereFast: so arr.count(Peanuts) < where Peanuts is the name of the class of the object would work?
[14:03:44] apeiros: Array#count is not limited to String objects. it actually has absolutely no specialization for Arrays of Strings
[14:03:52] apeiros: nowhereFast: no
[14:04:02] apeiros: you'll have to provide a block
[14:04:23] nowhereFast: and that block will perform some type of iter?
[14:04:45] apeiros: nowhereFast: you do know how to access & read documentation?
[14:05:49] apeiros: nowhereFast: ???If a block is given, counts the number of elements for which the block returns a true value.??? - straight from the docs.
[14:05:55] kobain: has joined #ruby
[14:06:00] p0wn3d_: has joined #ruby
[14:06:17] eGGsha: has joined #ruby
[14:06:32] nowhereFast: right, but my question was for a single step
[14:06:41] nowhereFast: I get you can do it with a block
[14:06:52] suchness: has joined #ruby
[14:06:52] nowhereFast: but I was more curious about whether ruby has another way
[14:07:01] Papierkorb: nowhereFast: no. use blocks.
[14:07:08] apeiros: nowhereFast: then maybe next time define "single step" and show us what you've already done.
[14:07:55] tvon: has joined #ruby
[14:07:58] decoponio: has joined #ruby
[14:08:22] ramfjord: has joined #ruby
[14:10:03] tatsuo: has joined #ruby
[14:12:12] blackmesa: has joined #ruby
[14:13:05] rbennacer: has joined #ruby
[14:14:45] xfbs: has joined #ruby
[14:15:43] Macaveli: has joined #ruby
[14:16:27] dopamean_: has joined #ruby
[14:16:44] kies^: has joined #ruby
[14:18:57] NeverDie: has joined #ruby
[14:19:11] timonv: has joined #ruby
[14:19:55] freerobby: has joined #ruby
[14:20:14] chouhoulis: has joined #ruby
[14:20:37] tomchapin: has joined #ruby
[14:23:43] wldcordeiro_: has joined #ruby
[14:26:41] adaedra: apeiros: nice quotation marks :)
[14:27:08] centrx: has joined #ruby
[14:28:30] aldodelgado: has joined #ruby
[14:28:31] shevy: very stylish they are
[14:30:41] nowhereFast: has left #ruby: ()
[14:31:01] apeiros: oh, I guess systemwide smart-quotes is on again :-/
[14:32:29] goodcodeguy: has joined #ruby
[14:32:44] adaedra: ???so??? ???many??? ??quotes??
[14:33:13] adaedra: I though German quotes were ???????
[14:34:35] camilasan: has joined #ruby
[14:34:50] nateberkopec: has joined #ruby
[14:35:11] tenderlove: has joined #ruby
[14:35:26] xaxisx: has joined #ruby
[14:35:44] B1n4r10: has joined #ruby
[14:35:51] anjen: has joined #ruby
[14:36:19] nettoweb: has joined #ruby
[14:36:31] podman: has joined #ruby
[14:37:48] Rubie: has joined #ruby
[14:37:59] corpsicle: what actually happens when you compare two strings with > ?
[14:38:55] bigmac: has joined #ruby
[14:39:04] adaedra: &ri String#> String#<=> @corpsicle
[14:39:04] `derpy: corpsicle: http://www.rubydoc.info/stdlib/core/Comparable#%3E-instance_method, http://www.rubydoc.info/stdlib/core/String#%3C%3D%3E-instance_method
[14:39:23] noodles``: has joined #ruby
[14:40:07] adaedra: mh, thought it was better explained
[14:40:19] havenwood: has joined #ruby
[14:40:30] chills42: has joined #ruby
[14:40:34] Kedare: has joined #ruby
[14:40:39] corpsicle: yea doesnt say anything specificly about strings does it?
[14:40:52] apeiros: corpsicle: basically it compares the codepoints
[14:40:56] catcher: has joined #ruby
[14:41:01] adaedra: the first one explains how > works basically, the second how <=> works for strings
[14:41:04] apeiros: or rather the bytes
[14:41:22] corpsicle: im just curious because ive been tasked with managing some old scripts and noticed there was a > comparison of two numbers, except the varables compared contained strings
[14:41:25] centrx: >> "b" > "a"
[14:41:26] ruboto: centrx # => true (https://eval.in/433549)
[14:41:43] corpsicle: converting to int made it work like expected ... but it obviously must have worked before ... maybe just lucky? =P
[14:41:49] apeiros: corpsicle: well, that'll not do a numerical comparison
[14:41:55] corpsicle: yea exactly
[14:42:01] apeiros: just lucky, yes. nothing changed in that regard.
[14:42:07] adaedra: it's a basic string comparaison like
[14:42:24] apeiros: "10" is < than "2", while 10 is > than 2
[14:42:33] X-Jester: has joined #ruby
[14:42:40] corpsicle: heh right, oh well. fixed now =)
[14:43:02] X-Jester: hi all, hoping someone has experienced this problem and found a solution.. has anyone seen *terrible* scp performance from the net-scp gem using CRuby 1.9.3?
[14:43:32] X-Jester: scp from the command line runs at ~58MB/s, net-scp transfers at ~400KB/s, even with :chunk_size increased to varying powers of 2
[14:43:36] wildlander: has joined #ruby
[14:43:50] apeiros: X-Jester: have you tried newer ruby versions too?
[14:43:54] adaedra: you should update your ruby tho
[14:44:03] X-Jester: apeiros: i haven't, we're baselined (cough...dod...cough) at 1.9.3
[14:44:05] adaedra: even if it's maybe not related
[14:44:16] X-Jester: i am running the latest patchlevel of 1.9.3
[14:44:26] apeiros: X-Jester: might still be worth a try just to check whether it might be an issue in that version
[14:44:31] hashrocket: has joined #ruby
[14:44:42] X-Jester: apeiros: fair put, i'll give that a try first
[14:45:17] drptbl: has joined #ruby
[14:45:56] nateberkope: has joined #ruby
[14:46:20] k3asd`: has joined #ruby
[14:47:26] nateberkopec: has joined #ruby
[14:47:29] leat1: has joined #ruby
[14:48:03] bigmac: has joined #ruby
[14:48:11] Swappticon: has joined #ruby
[14:48:20] rodfersou: has joined #ruby
[14:48:43] Pupeno_: has left #ruby: ()
[14:48:53] TheNet: has joined #ruby
[14:48:57] TheNet: is there a method to return the first value of an array then rotate the array by 1?
[14:49:38] apeiros: TheNet: I don't think so. but you can do it in two method calls.
[14:49:38] webguynow: has joined #ruby
[14:50:00] inteq: has joined #ruby
[14:50:00] tjohnson: has joined #ruby
[14:50:02] X-Jester: apeiros: no improvement on 2.2.2p95 :\
[14:50:09] wca: has joined #ruby
[14:50:10] X-Jester: and, fwiw, it is the latest net-scp gem
[14:51:01] ytti: has left #ruby: ()
[14:51:01] ytti: has joined #ruby
[14:51:15] devoldmx: has joined #ruby
[14:51:36] jhooker: has joined #ruby
[14:51:42] apeiros: X-Jester: ok, so not a version specific bug. a factor 100 sounds like a bug to me. I'd probably open an issue on the project.
[14:51:46] wca: has left #ruby: ()
[14:51:53] aldodelgado: has joined #ruby
[14:51:57] wca: has joined #ruby
[14:52:05] wca: hi, is there a way to setup byebug so it can be attached to a process at any point in the future, without requiring an automatic breakpoint? Similar to gdb for C programs?
[14:52:05] TheNet: apeiros: a.rotate!.first ?
[14:52:19] apeiros: .last actually
[14:52:29] apeiros: otherwise you get the first element after rotating
[14:54:23] p0wn3d_: has joined #ruby
[14:55:17] shevy: hmm what was the .map variant with index? was it .map.with_index ?
[14:55:24] p0wn3d_: has joined #ruby
[14:55:25] law__: has joined #ruby
[14:55:42] havenwood: shevy: or map_with_index
[14:56:16] apeiros: that one does not exist havenwood
[14:56:22] apeiros: only each_with_index does
[14:56:27] havenwood: apeiros: oh, and that, hahaha
[14:56:41] havenwood: shevy: ^ I've had *zero* coffee, witness...
[14:57:39] havenwood: shevy: http://ruby-doc.org/core/Enumerable.html#method-i-each_with_index
[14:57:41] CustosL1men: has joined #ruby
[14:57:45] webguynow: has joined #ruby
[14:58:10] p0wn3d_: has joined #ruby
[14:59:41] freerobby: has joined #ruby
[14:59:47] havenwood: shevy: Here's a map_with_index, just the wrong lang >.> https://github.com/manastech/crystal/blob/master/src/enumerable.cr#L463-L471
[14:59:57] drptbl: has joined #ruby
[15:00:57] karapetyan: has joined #ruby
[15:00:57] X-Jester: apeiros: will do, appreciate it. :)
[15:01:08] p0wn3d_: has joined #ruby
[15:01:28] NeverDie: has joined #ruby
[15:02:11] shevy: yeah that is weird
[15:02:18] shevy: that we have a .each_with_index but not a .map_with_index
[15:02:24] petricore: has joined #ruby
[15:02:42] rails588: has joined #ruby
[15:02:56] slayerjain: has joined #ruby
[15:02:57] nateberkopec: has joined #ruby
[15:03:21] adaedra: havenwood: c|_|
[15:05:40] Macaveli: has joined #ruby
[15:07:12] Rutix: has joined #ruby
[15:07:12] Rutix: has joined #ruby
[15:08:43] elfuego: has joined #ruby
[15:09:23] r_baron: has joined #ruby
[15:09:24] cschneid_: has joined #ruby
[15:09:48] karapetyan: has joined #ruby
[15:11:47] djbkd: has joined #ruby
[15:11:48] wookiehangover: has joined #ruby
[15:12:25] webguynow: has joined #ruby
[15:12:28] wca: anybody? :)
[15:13:14] [Butch]: has joined #ruby
[15:13:36] diegoviola: has joined #ruby
[15:13:40] polishdub: has joined #ruby
[15:13:42] dfockler: has joined #ruby
[15:14:16] r0x0rZ: has joined #ruby
[15:14:27] NeverDie: has joined #ruby
[15:15:04] mbff: has joined #ruby
[15:16:09] mbff: Question: I have a simple rack/sintra app that connects to a postgres database on start. How can I cleanly close the database connection when unicorn or rerun (in development) stops the process?
[15:16:52] key-: has joined #ruby
[15:16:54] jxv: has joined #ruby
[15:16:54] mbff: can I list commands to be run when someone does CTRL-C for instance?
[15:17:05] MichaelSmith: has joined #ruby
[15:17:17] wasamasa: you can catch an exception and handle it
[15:18:06] mbff: wasamasa, good idea
[15:18:50] DexterLB: has joined #ruby
[15:18:50] wasamasa: somewhere on the top level ideally
[15:19:09] mbff: So would I need to wrap my entire app in a begin end block for SystemExit then?
[15:19:13] arup_r: has joined #ruby
[15:19:13] key-: ctrl-c is not an exception, i believe you will need to create a signal handler
[15:19:19] mbff: that seems a little funky
[15:19:35] wasamasa: hm, maybe I was thinking of python then
[15:19:45] wasamasa: where I did indeed wrap the main function in a try-catch
[15:19:51] darix: http://stackoverflow.com/questions/2089421/capturing-ctrl-c-in-ruby
[15:20:21] mbff: Ctrl-c I don't really care about. I am mostly concerned about when I deploy and unicorn should close the connection and start up again
[15:20:24] darix: http://zguide.zeromq.org/rb:interrupt
[15:20:31] chipotle: has joined #ruby
[15:21:03] key-: wasamasa: python works the same way as ruby, you create a signal handler
[15:21:15] f4cl3y: has joined #ruby
[15:21:27] wasamasa: key_: well, you don't need to for C-d and C-c...
[15:21:44] mbff: I always see unicorn scripts that close activerecord and open again on startup. But I am using just using the normal pg gem.
[15:24:28] Ropeney: has joined #ruby
[15:24:45] dmr8: has joined #ruby
[15:24:45] graydot: has joined #ruby
[15:25:49] adaedra: ^d is not a signal
[15:28:20] bigmac: has joined #ruby
[15:28:48] Rubie: has joined #ruby
[15:29:01] banister: has joined #ruby
[15:29:03] hfp: Do you bump a gem's version when adding a homepage and editing the description in a gemspec file?
[15:29:51] wca: has left #ruby: ()
[15:29:59] icbm: has joined #ruby
[15:30:17] mary5030: has joined #ruby
[15:30:51] pawnbox_: has joined #ruby
[15:31:17] mary5030: has joined #ruby
[15:32:20] mleung: has joined #ruby
[15:32:50] mary5030: has joined #ruby
[15:32:56] t3rm: has joined #ruby
[15:33:00] shevy: well strictly speaking you should make a change to the ruby code
[15:33:09] shevy: but in this case, just make a minor bump gem version release
[15:33:20] TheNet: has joined #ruby
[15:33:20] hfp: shevy: Thanks, that's what I thought
[15:33:42] leat1: has joined #ruby
[15:33:47] chipotle: has joined #ruby
[15:34:02] nettoweb: has joined #ruby
[15:34:48] ngscheurich: has joined #ruby
[15:36:14] slayerjain: has joined #ruby
[15:36:33] zacts: has joined #ruby
[15:38:05] shevy: gem build *.gemspec
[15:38:05] shevy: ruby: symbol lookup error: /usr/lib/libssl.so.1.0.0: undefined symbol: EVP_idea_cbc
[15:38:15] shevy: I'll collect the most exotic errors!
[15:38:21] jaequery: has joined #ruby
[15:41:26] chipotle: has joined #ruby
[15:41:30] xaxisx: has joined #ruby
[15:43:00] michaeldeol: has joined #ruby
[15:44:18] dfockler: has joined #ruby
[15:46:30] SuMo_D: has joined #ruby
[15:47:00] shevy: oh sneaky... it was a problem in libcrypto.so.1.0.0 rather than libssl
[15:47:31] amoeba`: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[15:48:43] lkba: has joined #ruby
[15:48:54] Mia: has joined #ruby
[15:50:00] Dzejmskrokan: has joined #ruby
[15:51:44] nettoweb: has joined #ruby
[15:52:00] devoldmx: has joined #ruby
[15:52:23] webguynow: has joined #ruby
[15:52:42] TheNet: has joined #ruby
[15:52:54] BraddPitt: can anyone recommend a library for securely encrypting passwords? Is bcrypt/gibberish fine enough?
[15:53:10] rippa: has joined #ruby
[15:54:06] Ox0dea: BraddPitt: Do you have a reason to prefer bcrypt over scrypt?
[15:54:48] slackbotgz: has joined #ruby
[15:54:53] yardenbar: has joined #ruby
[15:55:08] DoubleMalt: has joined #ruby
[15:55:53] senayar^: has joined #ruby
[15:56:33] BraddPitt: just familiarity
[15:57:18] Ox0dea: BraddPitt: Well, do read up on scrypt's advantages if you've got the time, but bcrypt should do just fine.
[15:57:24] Papierkorb: BraddPitt: bcrypt is good, PBKDF2 is also good. Some claim that PBKDF2 is better.
[15:57:24] slayerjain: has joined #ruby
[15:57:35] bmurt: has joined #ruby
[15:58:00] adaedra: wait, we're not hashing passwords with md5 anymore?
[15:58:41] Ox0dea: I use `scrypt(md5(md5(md5(secret))))`.
[15:58:48] n008f4g_: has joined #ruby
[15:59:04] ytti: i still want xor(hash1(secret), hash2(secret))
[15:59:04] Ox0dea: It's like 3DES but worse.
[15:59:12] ytti: done by someone with cursory understanding in crypto
[16:00:34] jgt1: has joined #ruby
[16:01:38] godfat: has joined #ruby
[16:01:44] Alayde: has joined #ruby
[16:02:18] bl4ckpajamas: has joined #ruby
[16:03:10] mary5030_: has joined #ruby
[16:03:20] choke: has joined #ruby
[16:04:17] dotix: has joined #ruby
[16:04:18] dotix: has joined #ruby
[16:05:14] Ox0dea: ytti: I don't think computer security should be done by actual wizards.
[16:05:41] Ox0dea: Some of Gringotts' policies were a little barbaric.
[16:06:11] ytti: Ox0dea, i was asking for person with cursory undestandidng in crypto
[16:06:24] ytti: there may be something between that person an a wizard
[16:06:44] Ox0dea: ytti: "Cursory" here meaning "of or relating to the casting of curses", no?
[16:06:46] symm-: has joined #ruby
[16:07:05] webguynow: has joined #ruby
[16:07:38] chipotle_: has joined #ruby
[16:08:10] skade: has joined #ruby
[16:08:24] TheNet: has joined #ruby
[16:08:35] ytti: Ox0dea, no :)
[16:08:48] Ox0dea: Sorry; English is not my zeroth language.
[16:09:32] BraddPitt: thank you both Ox0dea and Papierkorb
[16:16:34] araujo: has joined #ruby
[16:16:40] sayan: has joined #ruby
[16:18:29] sayan_: has joined #ruby
[16:18:37] pawnbox: has joined #ruby
[16:19:27] bricker: has joined #ruby
[16:19:49] JDiPierro: has joined #ruby
[16:20:56] webguynow: has joined #ruby
[16:20:57] felixrsmith: has joined #ruby
[16:21:23] amclain: has joined #ruby
[16:21:40] shevy: >> x = 'foo'; alias y x; puts y
[16:21:42] ruboto: shevy # => undefined method `x' for class `Object' (NameError) ...check link for more (https://eval.in/433658)
[16:21:59] towski_: has joined #ruby
[16:22:35] diego4: has joined #ruby
[16:22:39] mary5030: has joined #ruby
[16:23:41] shevy: I found old code from me... not verbatim, but along these lines here: $hash = { cat: 'tom'}; alias $h $hash
[16:23:57] Ox0dea: >> Symbol.all_symbols.grep(/#set_v/) # shevy
[16:23:58] ruboto: Ox0dea # => [:"core#set_variable_alias"] (https://eval.in/433662)
[16:24:08] diego4: has joined #ruby
[16:24:16] Ox0dea: On Rubies where you can still get hold of RubyVM::FrozenCore's singleton class, you can invoke that method to do variable aliasing.
[16:24:28] shevy: is this useful to have?
[16:24:34] Ox0dea: Didn't you just want it?
[16:25:07] shevy: not that I am aware of
[16:25:23] Ox0dea: Why the "huh" before you posted that snippet?
[16:25:27] shevy: I am trying to find out why I was using alias there
[16:25:36] infoget: has joined #ruby
[16:26:04] shevy: perhaps it would work!
[16:26:29] Ox0dea: shevy: I've been informed by a certain someone that aliasing global variables is permitted.
[16:27:07] leafybasil: has joined #ruby
[16:27:11] shevy: very strange
[16:27:57] elperdut: has joined #ruby
[16:28:08] shevy: is there a functional difference between: alias $f $foo versus $f = $foo ?
[16:28:43] Ox0dea: None I can think of.
[16:28:46] Ox0dea: https://archive.is/vm3k3#selection-1181.0-1185.27
[16:29:45] shevy: ah well... I guess tim toady strikes again
[16:30:00] rakm: has joined #ruby
[16:30:12] saddad: has joined #ruby
[16:30:16] webguynow: has joined #ruby
[16:31:00] moeabdol: has joined #ruby
[16:32:12] Ox0dea: >> $m = 2; alias $o $m; $v = $m; $m = 1; [$v, $o] # the whisperer's demonstration of the crucial difference
[16:32:13] ruboto: Ox0dea # => [2, 1] (https://eval.in/433675)
[16:32:19] mordocai: has joined #ruby
[16:33:04] jaequery: has joined #ruby
[16:33:07] zacts: hi rubyists
[16:35:22] Megtastique: has joined #ruby
[16:35:46] webguynow: has joined #ruby
[16:35:51] nettoweb: has joined #ruby
[16:36:00] Megtastique: has joined #ruby
[16:36:28] rakm: has joined #ruby
[16:36:42] Megtastique: has joined #ruby
[16:37:00] lkba: has joined #ruby
[16:37:01] karapetyan: has joined #ruby
[16:38:47] bigmac: has joined #ruby
[16:41:12] karapetyan: has joined #ruby
[16:41:33] khebbie: has joined #ruby
[16:43:05] yfeldblum: has joined #ruby
[16:43:24] chipotle: has joined #ruby
[16:43:35] i: has joined #ruby
[16:43:36] sonOfRa: has joined #ruby
[16:44:04] dopie: has joined #ruby
[16:44:15] paulcsmith: has joined #ruby
[16:44:36] dfockler: I see as well
[16:45:39] drewo: has joined #ruby
[16:45:43] FernandoBasso: has joined #ruby
[16:46:21] wldcordeiro: has joined #ruby
[16:46:57] Ox0dea: http://i.imgur.com/b6UIlhf.png
[16:48:30] rbowlby: has joined #ruby
[16:49:00] rbennacer: has joined #ruby
[16:49:16] Ox0dea: https://eval.in/433681 :'(
[16:50:32] Ox0dea: It must've worked on Charlie's machine at some point, but I wonder what's going on there.
[16:51:40] diego4: has joined #ruby
[16:52:23] juanpablo_: has joined #ruby
[16:53:20] chipotle: has joined #ruby
[16:53:26] jenrzzz: has joined #ruby
[16:53:31] PaulCapestany: has joined #ruby
[16:53:53] nateberkopec: has joined #ruby
[16:54:12] baroquebobcat: has joined #ruby
[16:55:24] pragmatism: has joined #ruby
[16:56:05] tom_lowndes: has joined #ruby
[16:56:06] karapetyan: has joined #ruby
[16:57:26] chipotle: has joined #ruby
[16:57:31] diego4: has joined #ruby
[16:57:40] diego4: has joined #ruby
[16:58:38] hahuang65: has joined #ruby
[16:59:32] howdoicomputer: has joined #ruby
[17:01:01] freerobby: has joined #ruby
[17:02:11] Taranis: has joined #ruby
[17:03:16] kidoz: has joined #ruby
[17:03:47] infoget: has joined #ruby
[17:03:58] moeabdol: has joined #ruby
[17:04:14] nettoweb: has joined #ruby
[17:05:14] infoget: has joined #ruby
[17:06:40] fostertheweb: has joined #ruby
[17:07:41] splud: has joined #ruby
[17:08:24] firstdayonthejob: has joined #ruby
[17:08:38] ndrei: has joined #ruby
[17:08:55] dasher00: has joined #ruby
[17:09:15] scpike: has joined #ruby
[17:10:34] skade: has joined #ruby
[17:11:40] yardenbar: has joined #ruby
[17:11:43] bigmac: has joined #ruby
[17:12:05] last_staff: has joined #ruby
[17:13:02] Swappticon: has joined #ruby
[17:13:19] dfockler: has joined #ruby
[17:14:20] ramfjord: has joined #ruby
[17:16:53] xfbs: has joined #ruby
[17:17:18] lkba_: has joined #ruby
[17:18:58] siemprefresco: has joined #ruby
[17:19:06] rcvalle: has joined #ruby
[17:20:49] karapetyan: has joined #ruby
[17:21:13] vipaca: has joined #ruby
[17:21:58] karapetyan: has joined #ruby
[17:23:21] Hanmac: has joined #ruby
[17:25:12] niemcu: has joined #ruby
[17:25:32] chills42: has joined #ruby
[17:27:48] CustosL1men: has joined #ruby
[17:28:02] dstarh: has joined #ruby
[17:29:36] choke: has joined #ruby
[17:30:42] bigmac: has joined #ruby
[17:30:52] luckyme: has joined #ruby
[17:31:06] TheNet: has joined #ruby
[17:31:11] webguynow: has joined #ruby
[17:31:34] mary5030: has joined #ruby
[17:33:29] jamesaxl: has joined #ruby
[17:33:52] mary5030: has joined #ruby
[17:34:53] shevy: dfockler we both see!
[17:35:19] shevy: what devil is RubyVM::FrozenCore
[17:36:05] dfockler: Is that the new immutable strings stuff?
[17:36:19] codenapper: has joined #ruby
[17:37:19] Ox0dea: shevy: https://www.youtube.com/watch?v=SBdqCYKWISU
[17:37:20] shevy: Ox0dea does not like it
[17:37:24] Ox0dea: It's worth the watch.
[17:37:28] AlexRussia: has joined #ruby
[17:37:37] Ox0dea: I do like FrozenCore; I just don't like that nobu has made it ever harder to properly access it.
[17:37:39] JDiPierro: has joined #ruby
[17:37:48] Ox0dea: It just doesn't feel in line with "the Ruby way".
[17:37:54] shevy: yeah well
[17:37:55] TheNet: has joined #ruby
[17:37:57] shevy: nobu ain't matz!
[17:38:03] shevy: nobody ain't matz!!!
[17:38:20] shevy: who was nobody
[17:38:27] ruboto: jhass is anybody. They're a member of the op staff in #ruby, contributor to ruboto and ruby-community.com
[17:39:12] pietr0: has joined #ruby
[17:39:45] freerobby: has joined #ruby
[17:40:01] codecop: has joined #ruby
[17:43:22] d5sx43: has joined #ruby
[17:45:59] vickleton: has joined #ruby
[17:46:15] havenwood: has joined #ruby
[17:46:38] shevy: I have a ruby question... in ruby we can do: x = true; if x; puts 'bar'; end if true ... <-- is there another language in where you can make conditional checks like that? it looks like a 'L' code structure in code... https://gist.github.com/shevegen/6325cd73e9b5a26e901b
[17:47:18] dpp: has joined #ruby
[17:47:37] nofxx: shevy, if x && true, also reads better?
[17:47:48] shevy: yeah sure but this is how it's done everywhere
[17:47:56] shevy: I want to know why ruby has the additional variant
[17:48:00] Ox0dea: shevy: Post-conditionals can be attached to any expression in just about every language in which they're supported.
[17:48:02] Ox0dea: Perl comes to mind.
[17:48:06] ramfjord: has joined #ruby
[17:48:10] shevy: perl had this feature?
[17:48:17] Ox0dea: Still does, of course.
[17:48:24] dpp: for some generic random ruby script, what is the best way to distribute it within a closed ecosystem? (ie: no github or rubygems.org, etc)?
[17:48:40] shevy: dpp a .gem file
[17:48:44] Ox0dea: dpp: You don't have to use rubygems.org to distribute a gem.
[17:49:02] TheNet: has joined #ruby
[17:49:13] dpp: and is it generally OK to have that gem produce the link in /usr/bin as well?
[17:49:43] Ox0dea: dpp: Are you expecting users not to have a Ruby environment, then?
[17:50:00] nofxx: shevy, I'm against if like that, but I'm pro end.map end.reduce etc... (which rubocops doesn't like)
[17:50:19] dpp: no, the objective is just to have a clean way to distibute some command line tools
[17:50:35] dpp: my other option is to pack them into an RPM file, but that seems wrong.
[17:50:44] dopamean_: has joined #ruby
[17:50:53] shevy: dpp what do you mean with "OK", do you have a problem with it? if not then it's ok of course :D
[17:50:56] nofxx: dpp, I would say curl ftw!
[17:51:00] Ox0dea: dpp: Just package $thing as a gem and change the source in the Gemfile.
[17:51:03] nofxx: dpp, think homebrew install way
[17:51:07] siemprefresco: has joined #ruby
[17:51:19] shevy: you could also bundle all other gems into a giant gem that requires all the other ones!
[17:51:30] spider-mario: has joined #ruby
[17:52:26] drewo: has joined #ruby
[17:53:41] mwlang: has joined #ruby
[17:54:33] jenrzzz: has joined #ruby
[17:55:04] agent_white: has joined #ruby
[17:55:23] Bish: can i somehow create tables from an sequel model?
[17:57:13] Bish: or is this not wanted for some reason / is it only there to do associations
[17:57:28] davedev24: has joined #ruby
[17:57:30] linux_dr: has joined #ruby
[17:57:56] chipotle: has joined #ruby
[17:58:13] mary5030_: has joined #ruby
[17:59:21] linux_dr: I am addmittedly a Ruby newbie, but was wondering if a well seasoned Rubyist could look over a Vagrantfile exceprt, and suggest how I might be able to streamline it? https://gist.github.com/loren-osborn/06a6e8a95a235266dcdf
[17:59:36] agent_white: has joined #ruby
[18:00:51] marr: has joined #ruby
[18:01:16] n008f4g_: has joined #ruby
[18:01:41] hayricicek: has joined #ruby
[18:02:11] Ox0dea: has joined #ruby
[18:02:16] shevy: you have inconsistent indent linux_dr https://gist.github.com/loren-osborn/06a6e8a95a235266dcdf#file-vagrantfile-except-rb-L25
[18:02:46] linux_dr: shev: thanks??? good catch
[18:03:10] shevy: I assume the code is ok otherwise
[18:03:23] shevy: if it were my code I'd get rid of the @@ but it's probably not necessary
[18:03:54] linux_dr: It works??? but it???s tying into some Vagrant event-soup that I???d love to make immensely simpler. :-/
[18:05:21] d5sx43: has joined #ruby
[18:05:48] linux_dr: shev: The concern is that I don???t think I have control over the instantiation of either object, so putting the value into a class variable allows me to pass data to an instance that I never see created.
[18:06:01] ta: has joined #ruby
[18:06:03] linux_dr: (unless I can parameterize the class itself?)
[18:06:15] fantazo: has joined #ruby
[18:06:17] agent_white: has left #ruby: ()
[18:06:32] failshell: has joined #ruby
[18:06:40] agent_white: has joined #ruby
[18:06:49] linux_dr: I did want to keep the manifest (data) distinct from the rest of the code.
[18:07:08] nanoz: has joined #ruby
[18:08:24] polishdub: has joined #ruby
[18:08:26] shevy: you could set instance variables on the class level; class Foo; @count = 0; def self.count_up; @count += 1; end; def self.count?; @count; end; end
[18:08:42] webguynow: has joined #ruby
[18:08:59] shevy: but it would actually lead to more code in your case, so probably @@ is better
[18:09:08] dionysus69: has joined #ruby
[18:09:24] bampersand: has joined #ruby
[18:09:38] Ox0dea: cyberweb-0.0.140 $ grep -R @@ | wc -l
[18:09:42] Ox0dea: Naughty, naughty.
[18:10:44] TheNet: has joined #ruby
[18:11:27] staticat: has joined #ruby
[18:11:40] ndrei: has joined #ruby
[18:11:55] linux_dr: shevy: I hear you, but I don???t think i???m ever exposed to the instances of either class??? They are created out of any context of where this is.
[18:12:04] bb010g: has joined #ruby
[18:12:57] linux_dr: shevy: do you see anything I???m doing that???s overly wasteful or needlessly verbose?
[18:13:09] shevy: Ox0dea yeah - copy/paste from ruby cgi stdlib
[18:14:16] shevy: linux_dr dunno, I don't know vagrant. You also have like no docu!
[18:14:39] shevy: oh I know what
[18:14:39] TheNet: has joined #ruby
[18:14:40] shevy: exec "vagrant #{ARGV.join(' ')}"
[18:14:58] linux_dr: I, for instance, don???t like the way I translate between :required, :prohibited / :install, :uninstall / 'Installing???, 'Removing' / 'Installation???, 'Removal'
[18:15:03] shevy: perhaps it's fine for your script but otherwise, it would be better to pass arguments to the method, rather than directly use ARGV
[18:15:16] pawnbox: has joined #ruby
[18:15:28] Lovich: has joined #ruby
[18:15:49] bougyman: has joined #ruby
[18:15:51] baweaver: has joined #ruby
[18:16:15] shevy: Ox0dea I'd wish they would integrate https://rubygems.org/gems/exceptions into default ruby cgi :(
[18:16:33] shevy: I think that is the wrong one lol
[18:16:36] Lovich: hey guys, question
[18:17:06] shevy: oh right... similar name https://rubygems.org/gems/cgi-exception/
[18:17:31] linux_dr: exec takes an array of args? That would probably be better??? except the whole idea of ripping the carpet out from under the current process with exec makes me nervous.
[18:17:41] shevy: unfortunately that one uses at_exit ... I am really not liking at_exit much at all
[18:17:43] leat1: has joined #ruby
[18:18:00] shevy: Lovich where is the question
[18:18:11] linuxboytoo: has joined #ruby
[18:18:23] luksaur: has joined #ruby
[18:20:12] chouhoul_: has joined #ruby
[18:20:22] havenwood: !kick Lovich please don't troll
[18:20:22] ruboto: ruboto kicked Lovich: don't troll
[18:20:22] ruboto: -o ruboto
[18:20:25] kies^: has joined #ruby
[18:20:26] linux_dr: shevy: is there a way to go from an array to an arguments list?
[18:20:27] Lovich: has joined #ruby
[18:20:38] Ox0dea: linux_dr: You want the splat operator.
[18:20:59] Ox0dea: >> def add a, b, c; a + b + c; end; foo = [1, 2, 3]; add(*foo) # linux_dr
[18:21:00] ruboto: Ox0dea # => 6 (https://eval.in/433858)
[18:21:38] wildlander: has joined #ruby
[18:22:25] Ox0dea: shevy: Hm, what's wrong with at_exit?
[18:22:58] Ox0dea: It's how, for instance, many testing libraries provide such nice interfaces.
[18:23:21] Valeness: has joined #ruby
[18:23:36] Lovich: saying guys is apparently trolling now
[18:23:40] Lovich: interesting
[18:23:46] havenwood: !ban Lovich !T 1h trolling
[18:23:47] ChanServ: +b Lovich!*@*
[18:23:48] ChanServ: ChanServ kicked Lovich: trolling
[18:24:08] linux_dr: shevy: so something like: exec( *[ ???vagrant???, *ARGV ] ) would be legal?
[18:25:46] eam: linux_dr: yes
[18:26:03] Demetrio: has joined #ruby
[18:26:42] Ox0dea: Hey, Demetrio.
[18:27:18] eam: linux_dr: you don't need the *[] though
[18:27:31] sufyan`: has joined #ruby
[18:27:56] baweaver: http://irclog.whitequark.org/ruby/search?q=nick%3ALovich tsk tsk troll.
[18:28:06] linux_dr: so just exec ???vagrant???, *ARGV ??
[18:28:12] eam: linux_dr: if you want to reliably avoid a shell, try something like this: https://gist.github.com/eam/b5c46ecabc49dcff0170
[18:28:17] eam: linux_dr: yes that works
[18:28:45] kidoz: has joined #ruby
[18:29:00] eam: however if ARGV == [] and 'vagrant' is instead a string with shell metachars you may still invoke a shell
[18:29:21] eam: the above noshell_exec function is the only way to guarantee you don't run a shell
[18:29:28] chipotle: has joined #ruby
[18:29:29] havenwood: Demetrio: Have a Ruby question?
[18:29:34] cndiv: has joined #ruby
[18:29:51] ChanServ: +o havenwood
[18:29:53] Demetrio: Sorry, between this and work.
[18:30:12] Ox0dea: Don't let it fool ya.
[18:30:20] shevy: the banhammer is wielded already!
[18:30:31] Ox0dea: The pyre is nice and warm.
[18:30:42] shevy: and this time he had enough coffee
[18:30:50] leat1: has joined #ruby
[18:30:53] Ox0dea: Go on, havenwood. Show us your boomstick.
[18:31:00] shevy: otherwise his aim may not be perfect
[18:31:05] User458764: has joined #ruby
[18:31:09] cndiv: Hey all, sort of an abstract Ruby (OO programing in general, I guess) question. How do you all sit down and start writing something? Determine what classes are needed? Decide what goes in what class? I hope that makes sense.
[18:31:15] linux_dr: eam: I don???t think avoiding the shell is particularly critical, at least in this case???. I???m basically restarting the currently executing process from the begining
[18:31:17] eam: all the ruby is scrolling off my screen :(
[18:31:30] Demetrio_: has left #ruby: ()
[18:31:35] Ox0dea: cndiv: Read POODR. ;)
[18:31:39] opensource_ninja: has joined #ruby
[18:31:41] Ox0dea: Not being entirely facetious, mind.
[18:31:50] baweaver: Practical Object Oriented Design in Ruby
[18:32:08] cndiv: baweaver: That's a very practical answer, looking that up...
[18:32:32] TheNet: has joined #ruby
[18:32:50] havenwood: !ban Lovich !P repeated trolling
[18:32:50] ruboto: havenwood, could not find a matching user for "Lovich"
[18:32:55] kirun: has joined #ruby
[18:33:00] getDrunk: has joined #ruby
[18:33:02] cndiv: baweaver: Ha, that's exactly what I'm looking for. Is this is a popular title in the Ruby universe?
[18:33:02] linux_dr: eam: can you look at my gist and suggest any ways I can simplify it? https://gist.github.com/loren-osborn/06a6e8a95a235266dcdf
[18:33:03] shevy: cndiv that's a rather general question. I think it depends a lot on how big the given project is
[18:33:08] baweaver: indeed it is
[18:33:08] fostertheweb: has joined #ruby
[18:33:20] shevy: for small code, or smaller changes, I usually need to change only one line, or perhaps add one or two new methods
[18:33:37] shevy: mostly it is for what I need right now; or I write it in a todo file and go through it everyone now and then
[18:33:44] cndiv: shevy: yeah, I'm new, I'm just starting to recognize where my creation path hiccups will be. Naming things and laying out ahead of time.
[18:33:51] Demetrio: has left #ruby: ()
[18:34:19] shevy: I try to name things in a way that would make the most sense to me; secondary goal is to be terse, but often I write more rather than less when it comes to giving things a name
[18:34:26] Ox0dea: has joined #ruby
[18:34:37] ChanServ: +o baweaver
[18:35:32] Sheperson: has joined #ruby
[18:35:45] havenwood: sheperson: hi
[18:36:23] baweaver: sheperson: alo
[18:36:30] cndiv: shevy: That makes total sense, but at the moment I'm working my way through the course, and I'm tempted to add "training wheels" to myself and name things like "Foo_class" and "bar_method" and "a_foo" just to not confuse them.
[18:36:39] cndiv: *an online course, I mean
[18:36:54] cndiv: why's that
[18:36:57] Sheperson: I am trying to write a class which reads all lines of a file and if valid, it will yield each line (after some parsing) using #each
[18:36:59] shevy: try to give things a name as to what they can do
[18:37:09] shevy: you can think of methods as designations what the specific class should do
[18:37:18] shevy: class BuildDam
[18:37:18] baweaver: sheperson: Just use IO.readlines
[18:37:18] Sheperson: when the file is valid, I return yield the parsed lines
[18:37:26] shevy: baweaver uses this class to build a dam
[18:37:37] Sheperson: I wonder what should I do when the file is not valid?
[18:37:38] baweaver: tag a conditional on the end to check if the file exists
[18:37:44] rakm: has joined #ruby
[18:37:47] cndiv: Can I think of classes as verbs?
[18:37:48] baweaver: raise an error
[18:37:58] baweaver: cndiv: nouns, you're thinking FP
[18:38:13] shevy: cndiv well, class House ... class Car ... don't think these be verbs
[18:38:15] hayricicek: has joined #ruby
[18:38:17] ChanServ: -o havenwood
[18:38:18] baweaver: in which you tend to describe something in the terms of the actions you can perform on it.
[18:38:34] cndiv: baweaver: Sorry, should know, FP?
[18:38:34] bigmac: has joined #ruby
[18:38:42] eam: linux_dr: I didn't read too close, but I always worry whenever Hash is used with {}
[18:38:54] eam: recommend using a method for that probably
[18:38:59] baweaver: cndiv: ruby is a mix between the two
[18:38:59] Sheperson: baweaver: raise and error?
[18:39:00] shevy: cndiv I think you start from the wrong way, you should first think "what do I need to achieve specific goal xyz", and once you have that, you can model your methods and classes towards that goal
[18:39:08] dotix: has joined #ruby
[18:40:01] cndiv: baweaver: Ah, Ruby is my first language. Functional programming is outside of my mind right now.
[18:40:19] Ox0dea: cndiv: Too bad. :P
[18:40:25] baweaver: too many people make it out as some big complicated thing, it's really not.
[18:40:31] cndiv: Ox0dea: not forever, just for the moment
[18:40:36] baweaver: cndiv: you know blocks in ruby?
[18:40:36] grenierm: has joined #ruby
[18:40:43] nofxx: exactly. You're doing something FP and don't even know cndiv
[18:40:43] cndiv: baweaver: Not yet, no.
[18:40:43] linux_dr: eam: I???m pretty unfamiliar with Ruby??? I???m not sure what exactly you???re refering to
[18:40:52] nofxx: a module self.method for instance
[18:40:57] baweaver: >> (1..10).map { |i| i * 2 }
[18:40:58] ruboto: baweaver # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/433866)
[18:40:59] Soda: has joined #ruby
[18:41:01] baweaver: that's a block
[18:41:08] TheNet: has joined #ruby
[18:41:14] baweaver: and a block is a function. You passed a function, functional programming
[18:41:24] baweaver: ACTION ducks in anticipation of pedants
[18:41:33] JoshL_: has joined #ruby
[18:41:46] Valeness: has left #ruby: ()
[18:42:17] DLSteve: has joined #ruby
[18:42:36] linux_dr: baweaver: pedantics? Like a lambda is, and is not a function? ;-) lol
[18:42:39] gix: has joined #ruby
[18:42:55] Ox0dea: linux_dr: How is a lambda not a function?
[18:43:07] baweaver: like 'ruby is not a functional language in any way' types
[18:43:39] baweaver: the same which say haskell isn't pure, but anyways, I digress.
[18:43:42] SCHAAP137: has joined #ruby
[18:43:56] linux_dr: Ox0dea: mostly in it???s being anonymous, but most languages have anonymous functions???
[18:44:09] tubbo: my program functions. functional programming.
[18:44:30] xfbs: has joined #ruby
[18:44:30] tubbo: as opposed to all this non-functional programming you people are apparently doing
[18:44:43] Ox0dea: > Words mean what I say they mean.
[18:44:56] JoshL__: has joined #ruby
[18:45:08] doddok: has joined #ruby
[18:45:55] shevy: cndiv don't get confused, keep things simple. it's a good strategy
[18:45:59] Sheperson: @baweaver If I raise an error, how should I write the spec to check for that?
[18:46:08] linux_dr: ACTION imagines the amused specter of Lewis Carol wafting into the channel??? lol
[18:46:16] Sheperson: I know how spec a yield and how to spec an error
[18:46:19] baweaver: expect { something }.to raise('error')
[18:46:21] Sheperson: but together, I have no idea!
[18:46:41] cndiv: shevy: Yeah, that's my goal here. If it's reasonable, I'd like to think of classes as "nouns" and methods as "verbs"... but I'm not sure if that's a good way to think.
[18:46:49] Sheperson: but it???s #each and should be passed a block
[18:47:15] Ox0dea: cndiv: Many methods are arguably "adjectives".
[18:47:25] Ox0dea: Array#size, as an example.
[18:47:40] cndiv: Ox0dea: can anything be characterized as a "verb" then?
[18:47:52] Ox0dea: cndiv: Array#each, I'd argue.
[18:48:10] cndiv: Ox0dea: not quite there yet, but I'm taking notes.
[18:49:32] unholycrab: has joined #ruby
[18:50:50] roger_rabbit: has joined #ruby
[18:50:52] havenn: has joined #ruby
[18:51:20] linux_dr: cndiv: in ???traditional??? OOP (whatever that means) nouns typically map to classes, and verbs typically map to methods??? but that???s supposed to be a guidepost only.
[18:51:20] Guest34844: has joined #ruby
[18:51:25] dtzitz: has joined #ruby
[18:51:48] khebbie: has joined #ruby
[18:51:49] cndiv: linux_dr: Guideposts are good for me at this point. I won't take it as 1000% literal, always.
[18:52:08] Ox0dea: linux_dr: We don't say `foo.get_property` in Ruby, of course.
[18:52:20] cndiv: Ox0dea: I get how they could be more 'adjectives' as well.
[18:52:33] Ox0dea: cndiv: "Adjectiva" is the word you wanted there.
[18:52:35] Ox0dea: *Adjectival
[18:52:42] Ox0dea: It's not one you get to use terribly often.
[18:52:56] cndiv: Ox0dea: Ha, really?
[18:53:12] minimalism: has joined #ruby
[18:53:16] Ox0dea: cndiv: "Adjectival" is the adjectival form of "adjective", yes. :P
[18:53:18] cndiv: Ox0dea: Also, why wouldn't you say 'foo.get_property' in Ruby?
[18:53:25] Ox0dea: cndiv: Because we just say `foo.property`.
[18:53:26] linux_dr: Ox0dea: I am an experiencied developer, but I know almost nothing about Ruby???
[18:53:26] cndiv: ACTION mind blown
[18:53:57] shadoi: has joined #ruby
[18:54:05] leat1: has joined #ruby
[18:54:11] Ox0dea: Also "shrieval" is the adjectival form of "sheriff", because English is bonkers.
[18:54:49] jenrzzz: has joined #ruby
[18:55:08] User458764: has joined #ruby
[18:55:17] shevy: cndiv you can model ruby code to read like terse english sentences/instructions. don't get hung up too much on literal programming as words/verbs/nouns, there are many ways to do things. Example - access the array element at the third position: array[2]
[18:55:25] nettoweb: has joined #ruby
[18:55:39] linux_dr: Ox0dea: in that case, don???t foo.property and foo.property= methods that map to ???traditional OOP??? methods foo.get_property() and foo.set_property()?
[18:55:44] cndiv: Ox0dea: So what about 'property' implies that you're 'getting' anything? What implies the action? I would have expected something like "property_get"
[18:55:49] Ox0dea: linux_dr: Yes, that's right.
[18:56:01] shevy: cndiv you can name the method that way, and use "alias" to refer to the main method that does it
[18:56:03] Ox0dea: linux_dr: But the difference kind of breaks the "verb" analogy, don't you feel?
[18:56:43] shevy: so you can use set_property; you can use an alias called property_set, and you can use .property=
[18:56:49] Ox0dea: cndiv: In the end, it's just a convention that makes a great deal of sense.
[18:57:27] linux_dr: Ox0dea: does it? in that case the get/set is implicit. (*almost* implicit in the case of property=)??? because it???s trying to make the PURPOSE of exposing the PROPERTY more transparant?
[18:58:00] Ox0dea: linux_dr: Ruby just doesn't make much of a distinction between methods and "actual" properties, so the line is considerably blurred.
[18:58:17] blik71: has joined #ruby
[18:58:32] Bish: can i tell irb to remain active after script execution?
[18:58:36] cndiv: I'm thinking of it like a total n00b. I know I'm doing something with 'property' but don't recall exactly what I named it. I know in Atom (the editor I'm currently using) if I type in three characters of 'property' it'll show me the various options. Did I name it "property_get" or "property_add"? Etc.
[18:58:44] Bish: when doing 'irb <script>'
[18:58:46] linux_dr: Ox0dea: Yes??? I get that??? I was trying to give cndiv a frame of reference...
[18:59:26] freerobby: has joined #ruby
[18:59:28] linux_dr: cndiv: we were saying that classes map (roughly) to nouns??? right?
[18:59:59] blik71: hi guys quick question about file opening in ruby. write now im doing a method call where I'm passing in two functions as parameters with the same file as input. Does ruby have a problem with opening the same file during the same execution?
[19:00:05] freerobby: has joined #ruby
[19:00:09] Ox0dea: Bish: irb -r ./script
[19:00:36] freerobby: has joined #ruby
[19:00:38] Bish: oh ofcourse, didn't think of that
[19:00:48] blik71: e.g Class.new(x,y,z,function(file), function(file))
[19:01:03] Ox0dea: blik71: You'll need to rewind the file.
[19:01:18] Ox0dea: The cursor is probably at the end by the time you've processed the file with the first method.
[19:01:24] blik71: *function1(file), *function2(file)
[19:01:34] blik71: how do i rewind the file
[19:01:42] Ox0dea: >> File.instance_method(:rewind)
[19:01:43] ruboto: Ox0dea # => #<UnboundMethod: File(IO)#rewind> (https://eval.in/433893)
[19:01:52] freerobby: has joined #ruby
[19:02:11] universa1: has joined #ruby
[19:02:12] larissa: has joined #ruby
[19:02:15] sfr^: has joined #ruby
[19:02:26] momomomomo: has joined #ruby
[19:02:26] sleungcy: has joined #ruby
[19:02:30] shevy: cndiv so your editor influences you? :D
[19:02:39] linc01n: has joined #ruby
[19:02:41] shevy: it's why I abandoned vim in the end
[19:03:07] brendan-: has joined #ruby
[19:03:08] shevy: a vimster!
[19:03:20] leat1: has joined #ruby
[19:03:31] Ox0dea: You abandoned Vim because it negatively influenced your code?
[19:04:04] shevy: I wouldn't let vim touch my code
[19:04:16] freezevee: has joined #ruby
[19:04:20] momomomomo: I use vim for everything from ruby to go to haxe
[19:04:29] momomomomo: not java though
[19:04:31] yfeldblum: has joined #ruby
[19:04:35] cndiv: shevy: Yes, actually. haha.
[19:04:41] shevy: why not java?
[19:04:48] blik71: what does the code do per say 0x0dea?
[19:04:57] freezevee: I am trying to do sudo passenger-install-nginx-module while I have installed ruby 2.2 via rvm and checked with ruby -v but it keeps installing for the 1.9.3 version. What am I doing wrong ?
[19:05:00] nofxx: shevy, 2. the first and only time in my life I punched the screen
[19:05:05] momomomomo: using java dependencies is infrequent when I'm using scala (mostly for map/reduce)
[19:05:16] shevy: nofxx your poor screen man! I hope you don't have a cat :D
[19:05:18] havenn: freezevee: On your RVM Ruby: gem install passenger
[19:05:24] momomomomo: for String.x.y.z.j.a.b.c implements a, z b f, I like an IDE
[19:05:37] shevy: whoa that's a lot of redirection
[19:05:40] elperdut: has joined #ruby
[19:05:43] bricker: not using an IDE for Java would be a really inefficient way to write Java
[19:06:03] shevy: java is the top language at tiobe
[19:06:10] momomomomo: because of universities
[19:06:18] momomomomo: also, tiobe != real world
[19:06:19] dfockler: because of business
[19:06:22] HAL2328: has joined #ruby
[19:06:29] nofxx: shevy, german shepperd... that thing is a war tank. Punch == 'he loves me and wants to play now'
[19:06:43] khebbie: has joined #ruby
[19:06:43] momomomomo: the business -> education sectors are in a loop
[19:06:46] xfbs: has joined #ruby
[19:06:46] momomomomo: it's feedback
[19:06:52] newguy1: has joined #ruby
[19:07:08] freezevee: havenwood: done that
[19:07:11] dfockler: business wants butts, school makes the butts
[19:07:19] shevy: it's sorta crazy what companies end up using languages for... twitter starting with ruby/ruby on rails... then moves literally everything to java + scala
[19:07:20] freezevee: havenwood: rvm --default 2.2
[19:07:26] freezevee: and ruby -v = 2.2
[19:07:30] havenwood: freezevee: What do you get for?: gem which passenger
[19:07:52] Ox0dea: blik71: To clarify, you're passing actual File objects into those methods, right? Not filenames?
[19:07:57] jaequery: has joined #ruby
[19:08:01] tubbo: shevy: what editor do you use now?
[19:08:06] havenwood: shevy: Yet they still have Ruby and hire Ruby devs.
[19:08:12] freezevee: havenwood: ERROR: Can't find ruby library file or shared library passenger
[19:08:24] toretore: has joined #ruby
[19:08:26] Ox0dea: tubbo: shevy uses something called Bluefish: http://bluefish.openoffice.nl/index.html
[19:08:27] freezevee: havenwood: but Successfully installed passenger-5.0.18
[19:08:30] tubbo: afaik twitter uses rails for the same purpose as facebook uses a framework-less php web app: as a frontend
[19:08:40] Pupeno: has joined #ruby
[19:08:49] havenwood: freezevee: How about?: command -V gem
[19:09:10] Musashi007: has joined #ruby
[19:09:21] freezevee: havenwood: it outputs some code
[19:09:23] tubbo: Ox0dea: never heard of it. looks like TextMate for windows.
[19:09:36] Ox0dea: tubbo: Yes, shevy is the only user.
[19:09:36] shevy: Ox0dea only 1.x, the 2.x variant made things worse :(
[19:09:41] havenwood: freezevee: Did it look like?: gem is a shell function from $HOME/.rvm/scripts/override_gem
[19:09:53] shevy: I use a lot of ruby to generate stuff that I need
[19:09:57] Ox0dea: shevy: But their versioning almost matches Ruby's!
[19:10:11] havenwood: freezevee: A gem function?
[19:10:11] tubbo: shevy: i think my biggest advice for vim usage is that it's just an editor, not your IDE.
[19:10:13] freezevee: havenwood: https://gist.github.com/chrisvel/3aac20071011ac8ec30d
[19:10:21] dorei: has joined #ruby
[19:10:27] shevy: tubbo I have been using vim for some years
[19:10:29] tubbo: so make it look nice and do some cool stuff, but don't "do everything" with vim
[19:10:29] momomomomo: tubbo: shevy it can be extended to whatever you need
[19:10:43] momomomomo: code completion, code checking, auto compiling etc
[19:10:46] momomomomo: see: vim vaxe
[19:10:58] shevy: yep, that's where I use ruby!
[19:11:12] havenwood: freezevee: So your gem is the RVM wrapper as expected. But it's acting like you haven't installed the Passenger gem.
[19:11:31] havenwood: freezevee: I'm assuming it's say it failed to find it, but: gem pristine passenger
[19:11:33] freezevee: havenwood: I am running it with sudo
[19:11:39] havenwood: freezevee: sudo drops your env
[19:11:49] freezevee: havenwood: what's the diff with rvmsudo ?
[19:11:51] shevy: tubbo what's cool about vim is that you can play tetris
[19:12:01] havenwood: freezevee: RVM uses that env to select the correct Ruby. The RVM way is to create a wrapper which will source the correct env.
[19:12:04] nofxx: Remember, there's always time to come to the light: https://stallman.org/saintignucius.jpg
[19:12:06] tubbo: i am so disinterested in that
[19:12:07] chipotle: has joined #ruby
[19:12:17] havenwood: freezevee: The rvmsudo command is like sudo but it doesn't drop the RVM env.
[19:12:21] fantazo: has joined #ruby
[19:12:27] momomomomo: nofxx: I used emacs for about a year
[19:12:30] shevy: hehe... I used to love tetris... but I guess games changed so much the last 20 years
[19:12:38] freezevee: havenwood: I'll try that one
[19:12:39] momomomomo: It's a good thing I played guitar before hand
[19:12:47] havenwood: freezevee: If you really need sudo, that'll do it. ;)
[19:13:30] shevy: momomomomo do you have to use java for work?
[19:13:41] NeverDie: has joined #ruby
[19:13:43] tubbo: the usage of unix & vim hasn't changed my coding style, but it's definitely changed my grepping and problem-solving style.
[19:13:49] youngbaks: has joined #ruby
[19:13:51] Ox0dea: tubbo: For the better, of course.
[19:14:00] shevy: everybody likes unix
[19:14:09] nofxx: momomomomo, I've remaped each and every command I use. emacs way is tendinitis future (and stupid)
[19:14:10] tubbo: yes. because i have better tools to figure out where the problems are, and jump to class definitions.
[19:14:17] momomomomo: shevy: nah - I learned as much as I needed (i.e. I read Core Java 1 in 2 days) and wrote https://github.com/momer/nutch-selenium
[19:14:18] dorei: momomomomo: ms found the chords idea so awesome as to implement it in visual studio :D
[19:14:23] irreverant: has joined #ruby
[19:14:25] irreverant: what up guys!
[19:14:26] momomomomo: the rest was basic hadoop jobs
[19:14:39] irreverant: how about you'se guys!
[19:14:39] nofxx: but that's the beauty of it imo. editor learns how you work, not the other way around
[19:14:40] momomomomo: or altering some Mahout algos
[19:14:57] djbkd: has joined #ruby
[19:14:59] mary5030: has joined #ruby
[19:15:57] shevy: irreverant do you challenge havenwood
[19:16:06] irreverant: what's havenwood
[19:16:13] irreverant: and what challenge?
[19:16:30] shevy: ?havenwood
[19:16:30] ruboto: I don't know anything about havenwood
[19:16:35] shevy: jhass! we need a factoid about havenwood
[19:16:38] havenwood: irreverant: I joust with knights.
[19:16:45] shevy: ^^^ yes that quote
[19:17:03] irreverant: .py challenge
[19:17:07] irreverant: .print challenge
[19:17:11] shevy: yeah .py ;P
[19:17:21] irreverant: oh yeah what is this a ruby chat?
[19:17:31] Ox0dea: havenwood: Why show any lenience in such cases as these?
[19:17:47] shevy: havenwood uses the attrition tactic
[19:17:48] symm-: has joined #ruby
[19:17:51] chills42: has joined #ruby
[19:17:52] ruby-lang349: has joined #ruby
[19:17:54] shevy: irreverant will type so much that he gets tired
[19:17:58] irreverant: %(Echo print) what is havenwood
[19:18:02] phelipe: has joined #ruby
[19:18:17] havenwood: Ox0dea: I'm just at work and just have folk talking to me. I wasn't following convo, looking now.
[19:18:26] irreverant: i have to admit python is better than ruby for
[19:18:32] irreverant: automation tasks in IT
[19:19:03] irreverant: exec 'echo hi'
[19:19:05] redondo: has joined #ruby
[19:19:16] irreverant: Go to 10 "Hello"
[19:19:20] irreverant: Print 10 "hello"
[19:19:23] havenwood: !ban !ban NICK !T 1d irreverant trolling
[19:19:25] irreverant: no nothing? this sucks guys
[19:19:31] havenwood: !ban irreverant !T 1d irreverant trolling
[19:19:32] ChanServ: +b irreverant!*@*
[19:19:32] ChanServ: ChanServ kicked irreverant: irreverant trolling
[19:19:52] havenwood: I need to do new macros. :P
[19:20:05] havenwood: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[19:20:16] havenwood: has joined #ruby
[19:20:33] havenwood: And of course connection problems.
[19:20:39] infoget: has joined #ruby
[19:21:40] chouhoulis: has joined #ruby
[19:21:43] havenwood: Trolls make my internet shaky.
[19:22:02] Ox0dea: >> 'technology'.bytes.reduce(:^) == 'shit'.bytes.reduce(:^)
[19:22:03] ruboto: Ox0dea # => true (https://eval.in/433924)
[19:22:05] Ox0dea: Coincidence? I think not.
[19:22:23] havenwood: Ox0dea: I didn't actually spot that one. People talking to me irl make my brain fritz.
[19:22:34] havenwood: Ox0dea: Thanks for headsup.
[19:22:41] Ox0dea: No worries. I can see how it might not've been patently obvious at the start.
[19:22:49] Luxxi: has joined #ruby
[19:22:49] Ox0dea: Got there pretty quick, though. :P
[19:22:51] Pupeno: has joined #ruby
[19:23:28] Luxxi: can someone please unbann irreverant? :p
[19:23:46] ChanServ: -b Lovich!*@*
[19:23:47] chipotle: has joined #ruby
[19:25:00] shevy: Luxxi why
[19:25:15] Luxxi: he ask it in ##windows-server :p
[19:25:42] havenwood: Luxxi: This isn't the channel to discuss bans. Feel free to join the #ruby-offtopic channel to discuss.
[19:25:44] shevy: curious that he goes to a windows server channel
[19:25:57] karapetyan: has joined #ruby
[19:26:15] Luxxi: has left #ruby: ("http://quassel-irc.org - Wie Teamspeak. Ohne Ton.")
[19:26:19] Ox0dea: havenwood: #ruby-banned for ban discussion, no?
[19:27:35] bigmac: has joined #ruby
[19:28:44] nateberkope: has joined #ruby
[19:29:42] cornerma1: has joined #ruby
[19:29:53] havenwood: Ox0dea: For banned folk, yeah. For discussion of rules and non-banned folk the ot channel is better I think.
[19:30:31] havenwood: Or #ruby-community if there's really a discussion about improving rules.
[19:31:06] sybs: has joined #ruby
[19:31:20] leat1: has joined #ruby
[19:32:21] Maletor: has joined #ruby
[19:34:09] baweaver: has joined #ruby
[19:35:21] greenbigfrog: has left #ruby: ()
[19:38:38] bigmac: has joined #ruby
[19:38:40] rushed: has joined #ruby
[19:38:52] allomov: has joined #ruby
[19:40:57] kadoppe: has joined #ruby
[19:42:01] dopamean_: has joined #ruby
[19:44:24] redondo: Why this returns false? --> "asd" != "asd ".strip
[19:44:41] jhass: redondo: why would it return true?
[19:45:31] redondo: jhass: oh, sorry!
[19:47:43] chills42: has joined #ruby
[19:49:19] ramfjord: has joined #ruby
[19:49:33] apt-get: has joined #ruby
[19:50:50] ixti: has joined #ruby
[19:51:07] p0wn3d_: has joined #ruby
[19:51:28] chills42_: has joined #ruby
[19:55:23] drewo: has joined #ruby
[19:56:19] NeverDie: has joined #ruby
[19:56:22] jaequery: has joined #ruby
[19:57:01] hahuang65: has joined #ruby
[19:58:20] mary5030: has joined #ruby
[19:58:42] shevy: wheee 1107 peeps here
[19:59:04] adaedra: Champagne!
[19:59:11] adaedra: Wait, I don't drink alcoohol
[19:59:18] dr3wo: has joined #ruby
[19:59:59] havenwood: shevy: Now for over 9000....
[20:01:09] rakm: has joined #ruby
[20:01:12] Oka: has joined #ruby
[20:01:22] shinnya: has joined #ruby
[20:01:42] siemprefresco: has joined #ruby
[20:01:58] Rurik: has joined #ruby
[20:01:58] Rurik: has joined #ruby
[20:02:36] shevy: 9000 seems hard
[20:02:41] shevy: I think #linux has about 2000 or so
[20:03:09] adaedra: we have people who are not using Linux though.
[20:03:16] havenwood: shevy: Okay, 1,200 then since I guess we are just crossing the 1,100 threshold. 1,111 is pretty fancy.
[20:03:18] cyrus_mc: has joined #ruby
[20:04:06] shevy: that's a realistic one
[20:04:29] havenwood: shevy: ruboto should alert us at new high water marks
[20:04:45] jhass: havenwood: well send a PR :P
[20:05:10] tomchapin: has joined #ruby
[20:05:15] cyrus_mc: Anyone use the GIT library. http://www.rubydoc.info/gems/git/1.2.9.1. Trying to follow the examples, but I always get the following error : https://gist.github.com/cyrus-mc/e7f6ad404d5f17ad458e
[20:05:33] jhass: ugh Ruby 1.8
[20:06:04] opensource_ninja: has joined #ruby
[20:06:17] cyrus_mc: jhass: was that comment about my issue
[20:06:19] HAL2328: has left #ruby: ("Leaving")
[20:06:24] adaedra: Hello I have a problem with my ruby 1.0
[20:06:51] jhass: peripheral
[20:06:52] evanjs: has joined #ruby
[20:06:59] havenwood: adaedra: Hello kind timetraveller.
[20:07:03] adaedra: cyrus_mc: well, it looks like you're using ruby 1.8 :/
[20:07:08] jhass: adaedra: did you apply charliesome's historic Ruby patch?
[20:07:18] cyrus_mc: i am .. on centos 6 so just have the default ruby installed
[20:07:36] jhass: that's just sad too :P
[20:07:59] tomchapin: has joined #ruby
[20:08:09] jhass: 1.8 = sad, centos 6 = sad, using centos 6's default ruby = double sad :P
[20:08:13] adaedra: cyrus_mc: Software collections has 1.9.3, but still too old. You can install a newer one with ruby-install.
[20:08:19] cyrus_mc: I have 1.9.3 installed as well
[20:08:27] jhass: cyrus_mc: anyway, what's your git.rb look like?
[20:09:54] mary5030: has joined #ruby
[20:10:01] agent_white: has joined #ruby
[20:10:29] cyrus_mc: it was a simple test of the library: https://gist.github.com/cyrus-mc/fa5732516f0809ac318d
[20:10:52] rbowlby: has joined #ruby
[20:10:56] mary5030: has joined #ruby
[20:11:37] yfeldblum: has joined #ruby
[20:11:38] elperdut: has joined #ruby
[20:12:36] cyrus_mc: using 1.9.3 and the error went away
[20:12:54] jhass: I wonder if that your file is named git.rb is the issue
[20:13:05] jhass: try renaming it
[20:13:12] momomomomo: has joined #ruby
[20:13:19] jhass: 1.8 might still have relative stuff in $LOADED_FEATURES
[20:13:27] jhass: it has . in $LOAD_PATH anyhow
[20:13:39] jhass: so you load the file itself again I guess
[20:14:00] towski__: has joined #ruby
[20:14:03] cyrus_mc: that was it .. lol .. doh.
[20:14:05] chipotle: has joined #ruby
[20:15:12] sargas: has joined #ruby
[20:15:13] howdoicomputer: has joined #ruby
[20:15:53] jhass: cyrus_mc: 1.9 resolved that issue btw
[20:16:15] jhass: and is not even supported anymore, we're watching the clock for 2.0 ticking
[20:17:32] chipotle: has joined #ruby
[20:18:35] karapetyan: has joined #ruby
[20:18:54] BraddPitt: when creating a CLI client that uses the AWS gem, should I rescue AWS errors and put in my own (hopefully more descriptive) error messages, or just let the default AWS errors be thrown to the user?
[20:19:54] jhass: well, I have painful experiences from duplicity hiding the AWS errors...
[20:21:45] freerobby: has joined #ruby
[20:22:24] Alayde: has joined #ruby
[20:22:39] umgrosscol: BraddPitt, you're writing a CLI program for a user of what technical level?
[20:23:24] umgrosscol: BraddPitt, I have my own cli client using the aws api in ruby, but just let the errors show up. The only reason I catch them is to do cleanup.
[20:23:29] dfockler: BraddPitt: Will your users more likely be able to debug your custom issues or AWS ones?
[20:23:41] BraddPitt: the end user would be ruby developer
[20:23:58] BraddPitt: and I've included a link to the AWS error chart which I'm hoping would be enough to figure out what is wrong
[20:24:31] umgrosscol: BraddPitt, if you're setting up a machine or vpc for them, and they'll have little knowledge of it's internal structure, you might just want to throw your own errors.
[20:24:50] BraddPitt: its only creating/adding to/deleting S3 buckets
[20:24:58] shevy: I don't want to watch a ticking clock jhass :(
[20:25:11] BraddPitt: so nothing super technical, and I expect anyone using this CLI tool would be able to read the AWS errors and figure it out
[20:25:13] umgrosscol: BraddPitt, because it's going to error out at some discrete step, so you should be able to log where it failed, and pick back up from that later.
[20:25:13] chipotle: has joined #ruby
[20:25:16] jhass: shevy: you're on 2.2 right? everything's fine
[20:25:26] shevy: yeah, but there is the future!
[20:25:42] jgt: has joined #ruby
[20:26:02] umgrosscol: BraddPitt, maybe a message "Failed to delete bucket" "Failed to create bucket" and then the technical detail from the AWS error.
[20:26:16] karapetyan: has joined #ruby
[20:26:38] leat1: has joined #ruby
[20:28:04] sepp2k: has joined #ruby
[20:28:23] NeverDie: has joined #ruby
[20:30:50] musicmatze: has joined #ruby
[20:31:20] MackSim: has joined #ruby
[20:31:43] musicmatze: Hi rubyists. Why does Pathname#+ work not as expected when doing `Pathname.new("/tmp") + "/"` ? The expected result would be Pathname.new("/tmp/"), but is Pathname.new("/") - or am I wrong here?
[20:32:20] jhass: musicmatze: you should use Pathname#join to construct the final path
[20:32:25] jhass: why do you need a trailing /?
[20:33:35] musicmatze: jhass: Because I do not know a better way how to check whether a path is a path to a directory or a file
[20:33:43] leat1: has joined #ruby
[20:33:57] stamina: has joined #ruby
[20:34:01] jhass: Pathname#directory? / Pathname#file?
[20:34:18] Ox0dea: jhass: Or even just File instead of Pathname there.
[20:34:34] jhass: they already have a Pathname, why not use it
[20:34:59] Ox0dea: >> >> File.directory? '/tmp' # musicmatze
[20:35:00] ruboto: Ox0dea # => /tmp/execpad-4746f27bc772/source-4746f27bc772:2: syntax error, unexpected >> ...check link for more (https://eval.in/433941)
[20:35:04] Ox0dea: >> File.directory? '/tmp' # musicmatze
[20:35:05] ruboto: Ox0dea # => true (https://eval.in/433942)
[20:35:05] musicmatze: but Pathname#join does the same "mistake" ... Pathname.new("/tmp").join("/") returns Pathname:"/"
[20:35:14] duggiefresh: has joined #ruby
[20:35:31] dmolina: has joined #ruby
[20:35:39] Ox0dea: That does kinda look like a bug.
[20:35:44] musicmatze: >> Pathname.new("/tmp").join "/"
[20:35:45] ruboto: musicmatze # => uninitialized constant Pathname (NameError) ...check link for more (https://eval.in/433943)
[20:36:11] musicmatze: Ox0dea yes, looks like a bug to me, too.
[20:36:15] jhass: musicmatze: Pathname normalizes the path, trying to control it's specific look is misuse
[20:36:20] leafybasil: has joined #ruby
[20:36:31] jhass: it's quite intended behavior I think
[20:36:38] darix: well ... unless you feed those paths into rsync,cp and so on ... the trailing slash is actually meaningless
[20:36:48] musicmatze: seems so. I will check whether I can use Pathname#directory? and the like
[20:36:50] musicmatze: thank you guys
[20:37:03] jhass: ?guys musicmatze
[20:37:04] ruboto: musicmatze, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[20:37:08] darix: with rsync no trailing slash or trailing slash can be important.
[20:37:31] musicmatze: jhass: ah, okay, will do so in future, thanks for pointing out!
[20:37:46] Coldblackice: has joined #ruby
[20:38:22] dstarh: has joined #ruby
[20:39:19] musicmatze: ah, ... a follow up question: When using Pathname#directory? It returns false if the directory does not exist, right?
[20:39:37] Ox0dea: ?try musicmatze
[20:39:38] ruboto: musicmatze, Why don't you try it and see for yourself?
[20:39:59] musicmatze: well, I tried it and now my tests fail... ... so I'm asking for an alternative here... :-)
[20:40:51] Ox0dea: musicmatze: How were you previously checking whether some path was a directory?
[20:40:57] Ox0dea: By the presence of a trailing slash, presumably?
[20:41:02] musicmatze: with the trailing slash, yes.
[20:41:18] musicmatze: I know this is kinda ugly, but I don't know a better way
[20:41:24] jhass: well, that's wrong, as darix pointed out
[20:41:30] ruboto: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[20:41:32] Ox0dea: musicmatze: Use #directory? and fix your tests. ;)
[20:42:20] Ox0dea: musicmatze: Do these paths you're working with actually exist on your system?
[20:42:23] alicanyilmaz: has joined #ruby
[20:42:25] alicanyilmaz: has left #ruby: ()
[20:42:29] musicmatze: Ox0dea: That's not the point. I have to check whether a path is a directory-path or file-path. After that, I can create the file or directory.
[20:42:50] linuxboy_: has joined #ruby
[20:42:55] musicmatze: No they do not necessarily exist, but they can.
[20:43:02] Ox0dea: So you have to disambiguate between files and directories at the string level...
[20:43:26] musicmatze: you mean that's the only way to do it?
[20:43:58] Ox0dea: Well, it seems you're not working with anything more concrete than strings, so yeah. :/
[20:43:59] darix: musicmatze: using a trailing slash as a marker is just ugh
[20:44:48] darix: musicmatze: try to explain the problem you are actually trying to solve as ruboto pointed out
[20:45:26] Ox0dea: musicmatze: Do you know the `touch` utility?
[20:46:29] jhass: I guess the problem is a bad API definition
[20:47:18] musicmatze: Okay. So I'm trying to write a gem for accessing the Filesystem in an ORM-like way. Where you can do `(Directory.new(tmp_pathname).tmp_subdirectory = Directory).subdirs` or similar things. For sanity I want to include some checks on #new whether the passed object is a pathname (or string) and check whether it actually points to a directory (even if it doesn't exist) or to a file. Directory.new(file_pathname)
[20:47:20] musicmatze: would be illegal, of course.
[20:47:40] diego2: has joined #ruby
[20:47:46] darix: musicmatze: this is a silly approach
[20:48:03] darix: rsync -av /foo/bar /bar/foo/
[20:48:05] diego2: has joined #ruby
[20:48:07] darix: rsync -av /foo/bar/ /bar/foo/
[20:48:09] darix: both are valid
[20:48:16] darix: both behave totally differently
[20:48:22] Kyle__: has joined #ruby
[20:48:25] darix: and if you really want to treat it like an orm
[20:48:26] Vile`: has joined #ruby
[20:48:41] darix: then .subdir is calling a child object
[20:48:50] darix: if the parent doesnt exist... error out
[20:49:06] musicmatze: If the parent does not exist, it will be created
[20:49:22] darix: that means your special check is never needed.
[20:49:53] musicmatze: seems you are right here...
[20:50:01] x-light: has joined #ruby
[20:50:04] darix: .oO( touch /foo ; Directory.new("/foo") )o
[20:50:06] musicmatze: okay, it seems I have an API issue here :-)
[20:50:10] jhass: ^ if it exists check whether it's a file or directory, if it doesn't exist defer creation, create a directory if you want to create a file or directory beneath
[20:50:56] darix: btw: FS is a pretty bad storage for ORM
[20:51:03] musicmatze: okay, I guess I have to redesign my API, yes.
[20:51:11] darix: e.g. if you want to have more attributes on directories....
[20:51:12] musicmatze: darix: I'm not sure ORM is the right term here...
[20:51:14] darix: special files
[20:51:18] darix: or xattr??
[20:51:27] darix: musicmatze: so why do you try to wrap the filesystem?
[20:51:34] musicmatze: it is more like a library for simple filesystem access
[20:52:00] musicmatze: because I don't like to write 10 lines of code just to create some folder structure in my application, I want to do it implicitely.
[20:52:01] darix: even more simpler than ruby's? o.O
[20:52:30] darix: musicmatze: require 'fileutils'; FileUtil.mkdir_p("/foo/bar/foobar")
[20:52:56] musicmatze: I want to be able to `Directory.new(my_store).music.metal.bands.rammstein = File.new("rating.md")` for example
[20:53:08] Ox0dea: But... why?
[20:53:18] chipotle_: has joined #ruby
[20:53:26] musicmatze: because it is easy
[20:53:41] musicmatze: and I think it is a neat experiment
[20:53:42] darix: and then you start to encounter things which are valid filenames
[20:53:46] darix: but not valid ruby code ;)
[20:53:58] Ox0dea: $ mkdir -p foo/{bar/{baz,qux},baz/{bar,qux}}
[20:53:59] darix: like R.E.M.
[20:54:01] Ox0dea: Yay, shells.
[20:54:02] musicmatze: then I can do `directory['ugly_subdir_name'] ...`
[20:54:19] sdwrage: has joined #ruby
[20:54:28] ordepdev: has joined #ruby
[20:54:36] Ox0dea: musicmatze: Seven identifiers, seven directories; what could be simpler?
[20:54:39] darix: musicmatze: good luck with your project and checkout fileutils ;)
[20:55:06] shevy: musicmatze did you already define Directory?
[20:55:08] solocshaw: has joined #ruby
[20:55:23] musicmatze: shevy: You mean as class? yes, why
[20:55:48] Ox0dea: musicmatze: In the event it helps your research, you likely meant DSL instead of ORM.
[20:55:51] linuxboytoo: has joined #ruby
[20:55:53] shevy: the subcomponents also were defined? the .music.metal.bands.rammstein method calls
[20:56:03] darix: Ox0dea: would be fun if File.expand_path 'foo/{bar/{baz,qux},baz/{bar,qux}}' could expand this into an array ;D
[20:56:05] shevy: I assume you need to define the methods dynamically since rammstein probably is not an available method by default
[20:56:18] musicmatze: Ox0dea: Well yes, DSL is the term, right!
[20:56:31] Ox0dea: shevy: They don't actually need to become methods.
[20:56:33] darix: sadly it doesnt
[20:56:35] musicmatze: shevy: Yes, via metaprogramming
[20:56:58] Ox0dea: musicmatze: Do you know well the perils of #method_missing?
[20:57:06] musicmatze: and yes, these "methods" do not exist and won't be created ...
[20:57:14] tubuliferous: has joined #ruby
[20:57:16] darix: Directory.new(my_store).music.metal.bands = File.new("rating.md") ; Directory.new(my_store).music.metal.bands.rammstein = File.new("rating.md")
[20:57:23] musicmatze: Ox0dea tell me about it
[20:57:28] darix: *whistle+
[20:57:36] darix: sometimes it is fun to destroy apis :p
[20:57:42] shevy: no don't do that
[20:58:05] shevy: method_missing is like aiming at a small village with a big nuke
[20:58:11] musicmatze: darix: Why would that be a problem?
[20:58:11] zacts: has joined #ruby
[20:58:16] musicmatze: shevy: How to do it then?`
[20:58:26] Ox0dea: darix: musicmatze could just raise Errno::EEXIST?
[20:58:27] shevy: well you need to grab your dataset from somewhere right?
[20:58:27] musicmatze: (I guess I will learn a lot this night...)
[20:58:50] darix: Ox0dea: that code is horrible
[20:58:51] Ox0dea: musicmatze: You really do want #method_missing in this case, just... tread softly.
[20:58:55] shevy: so let that dataset define the capabilities of your object(s) in question, and handle cases when something is not found
[20:59:00] darix: why would bands be a directory ... and you assign a file to it
[20:59:06] darix: that api is just ugh
[20:59:17] Ox0dea: I'm not saying it's not, but it's not "broken", per se.
[20:59:29] darix: game time
[20:59:39] shevy: what I will never understand is why people need to align with good or bad ideas in ruby
[20:59:41] dfockler: has joined #ruby
[20:59:42] musicmatze: darix: I just used bands as example ...
[20:59:50] troyreadyy: has joined #ruby
[20:59:56] Ox0dea: shevy: Are you asking why people have opinions?
[21:00:05] shevy: opinions?
[21:00:10] shevy: did he ask for an opinion or did he ask for help?
[21:01:03] darix: shevy: it is not about bad or good ideas. it is about does it make sense.
[21:01:05] musicmatze: First I asked because I had a problem with Pathname... but now I guess we are discussing about how to access the filesystem. :-)
[21:01:05] matthewhill: has joined #ruby
[21:01:35] musicmatze: darix: and it seems you people think my idea doesn't make any sense, which is fine for me...
[21:01:36] shevy: I also have problems with pathname
[21:01:48] musicmatze: but how to do it in a clean way, then?
[21:01:53] musicmatze: only with FileUtils ?
[21:01:56] bantha_poo: has joined #ruby
[21:02:04] darix: musicmatze: question ... how often will it really happen that you hard code band names in the script?
[21:02:07] musicmatze: and String manipulation all over the place?
[21:02:18] darix: wouldnt it be most of the time that the band names are in variables themself?
[21:02:20] TomyLobo: has joined #ruby
[21:02:28] musicmatze: well, you are right, yes.
[21:02:31] edwinvdgraaf: has joined #ruby
[21:02:43] darix: so if we take your example
[21:02:57] darix: Directory.new(my_store).music.metal.bands.rammstein
[21:03:01] darix: and treat it generically
[21:03:07] darix: you would end up with a DSL like
[21:03:12] ellisTAA: has joined #ruby
[21:04:11] darix: Directory.new(my_store).method(musicvar).method(metalvar).method(bandsvar).method(rammsteinvar).files << File.new("rating.md")
[21:04:26] musicmatze: yes, you are right.
[21:04:48] shevy: what directory will the above call create by the way?
[21:04:49] musicmatze: hm, so my idea was a bad idea.
[21:05:10] darix: not bad per se ... but not thought through :)
[21:05:43] darix: you could e.g. create a MyFiles class
[21:05:58] musicmatze: So it seems that FileUtils and Pathname are my friends now. Do they work together?
[21:06:00] darix: which could hide the logic that it will try to create all it's parent dirs or so
[21:06:29] darix: musicmatze: File/FileUtils/Dir for operations on actual entries
[21:06:36] darix: pathname for pathname manipulation
[21:06:48] shevy: musicmatze fileutils should suffice, you can use FileUtils.mkdir_p() for recursively creating a directory
[21:06:53] Matachines: has joined #ruby
[21:07:23] siemprefresco: has joined #ruby
[21:07:27] juanpablo_: has joined #ruby
[21:07:28] dr3wo: has joined #ruby
[21:07:46] Matachines: Hi, new to Ruby. What's the best gem/framework to make command line apps? Not stuff like Unix command line apps but with a menu and stuff.
[21:07:57] darix: musicmatze: https://github.com/vjoel/fsdb
[21:08:06] Ox0dea: Matachines: Do you mean a TUI and not a CLI, then?
[21:08:21] Kyle__: has joined #ruby
[21:08:24] jhooker: has joined #ruby
[21:08:25] darix: Matachines: ncurses might be kinda lowlevel but portable
[21:08:47] musicmatze: darix shevy Ox0dea thank you all!
[21:08:58] Ox0dea: musicmatze: Are you still gonna go for it, then?
[21:09:05] unholycrab: has joined #ruby
[21:09:14] Matachines: Ox0dea Yeah I guess so! And I'll look into ncurses darix
[21:09:19] jhooker: has joined #ruby
[21:09:27] Ox0dea: ncurses for directory creation?!
[21:09:30] Ox0dea: What's it all coming to?
[21:09:51] Macaveli: has joined #ruby
[21:10:28] musicmatze: Ox0dea I guess no. I will start writing the application itself, and not the helper library... and if I need something to make my application code simple, I can write a library then
[21:11:39] drew0: has joined #ruby
[21:13:22] darix: musicmatze: starting off with some helper functions covering the unless File.directory? File.dirname(fname) ; FileUtils.mkdir_p(File.dirname(fname)); end
[21:13:35] darix: will probably go a long way to make your code smaller
[21:14:11] ruby-lang818: has joined #ruby
[21:17:08] skade: has joined #ruby
[21:17:26] _orangejuice: has joined #ruby
[21:20:07] FernandoBasso: has joined #ruby
[21:20:41] darix: musicmatze: p=%w{foo bar foobar barfoo} ; File.join(*p)
[21:20:50] rushed: has joined #ruby
[21:22:24] hahuang65: has joined #ruby
[21:22:29] darix: oh works even without *
[21:23:58] solocshaw: has joined #ruby
[21:24:01] Pupeno: has joined #ruby
[21:28:26] mary5030: has joined #ruby
[21:35:51] ivanskie: has joined #ruby
[21:36:15] n_blownapart: has joined #ruby
[21:36:25] siemprefresco: has joined #ruby
[21:36:44] freerobby: has joined #ruby
[21:37:39] jhooker: has joined #ruby
[21:38:32] staticat_works: has joined #ruby
[21:38:37] phutchins: has joined #ruby
[21:39:03] bigmac: has joined #ruby
[21:39:14] JDiPierro: has joined #ruby
[21:39:57] dravine: has joined #ruby
[21:40:49] wildlander: has joined #ruby
[21:42:45] momomomomo: has joined #ruby
[21:44:59] bahar: has joined #ruby
[21:44:59] bahar: has joined #ruby
[21:53:48] nettoweb: has joined #ruby
[21:54:12] devoldmx: has joined #ruby
[21:54:43] failshell: has joined #ruby
[21:54:53] k3asd`: has joined #ruby
[21:54:54] baweaver: has joined #ruby
[21:56:59] troyready: has joined #ruby
[21:57:57] st1gma: has joined #ruby
[22:00:01] chipotle: has joined #ruby
[22:04:49] dravine: has joined #ruby
[22:04:55] ndrei: has joined #ruby
[22:07:24] Synthead: has joined #ruby
[22:07:27] EasyCo: has joined #ruby
[22:07:41] drew0: has joined #ruby
[22:08:55] f00dMonsta: has joined #ruby
[22:09:05] chrisco: has joined #ruby
[22:10:07] vF3hNGxc47h8: has joined #ruby
[22:10:22] chrisco: has left #ruby: ()
[22:12:15] nettoweb: has joined #ruby
[22:13:30] bigmac: has joined #ruby
[22:13:50] chipotle: has joined #ruby
[22:14:42] mikecmpbll: has joined #ruby
[22:14:54] leat1: has joined #ruby
[22:17:21] jaequery: has joined #ruby
[22:18:53] hahuang65: has joined #ruby
[22:21:21] EminenceHC: has joined #ruby
[22:22:03] nateberkopec: has joined #ruby
[22:23:42] bigmac: has joined #ruby
[22:24:24] EminenceHC: What ruby method could I use for this? If i have sorted array: ["one", "two", "three"], given "two", how would I find which number it is in sequence. When given "two", I want it to return "2" because "two" is the second item in the array.
[22:25:22] wryfi: has joined #ruby
[22:25:23] adaedra: &ri Array#index
[22:25:23] `derpy: http://www.rubydoc.info/stdlib/core/Array#index-instance_method
[22:25:36] sotojuan: has joined #ruby
[22:26:38] baroquebobcat: has joined #ruby
[22:26:40] wryfi: what's the story with rbenv? it hasn't had a release in two years, but looks active. is it safe to use git master in prod? or should i be using the 2-yo 0.4.0?
[22:27:21] shevy: it's dead jim
[22:27:27] EminenceHC: adaedra: Thank you
[22:27:38] adaedra: you're welcome.
[22:27:43] shevy: I'd use git
[22:27:58] wryfi: shevy: it's dead?
[22:28:01] shevy: I assume some people switched to https://github.com/postmodern/chruby
[22:28:22] shevy: nah, it's not quite dead, just less active https://github.com/sstephenson/rbenv
[22:28:28] blik71: has joined #ruby
[22:28:42] f00dMonsta: has joined #ruby
[22:28:42] baroquebobcat: has joined #ruby
[22:28:51] wryfi: heh. not "quite" dead.
[22:29:06] Alina-malina: has joined #ruby
[22:29:18] wryfi: so chruby is the new hotness in rvm-is-overkill land?
[22:29:31] JimmyNeutron: has joined #ruby
[22:29:35] jhass: compared to it rbenv is overkill too
[22:29:46] shevy: github sorta changed the development model of many projects
[22:29:57] shevy: https://rubygems.org/gems/chruby 2 years since last gem release there
[22:30:14] jhass: chruby isn't installed through gem
[22:30:29] havenwood: shevy: that's unrelated to the chruby project, well... it's unrelated to the maintainers of chruby at least :P
[22:30:46] shevy: that also sucks :(
[22:31:06] jaequery: has joined #ruby
[22:31:07] havenwood: it's related to chruby, in the sense that it's a helper lib, but chruby is a Shell not Ruby
[22:31:58] wryfi: chruby looks like what i was looking for, thanks guys
[22:32:08] BraddPitt: last night someone (can't remember who) recommended me SCrypt library, but it turns out I'm looking for something different. I need something that will encrypt and then decrypt with a supplied password
[22:32:18] BraddPitt: I've found a few, but are there any vetted ones?
[22:32:23] BraddPitt: since, you know, security and all that
[22:33:05] pyon: has joined #ruby
[22:33:05] Ox0dea: BraddPitt: Why do you want to decrypt passwords?
[22:33:41] sotojuan: has joined #ruby
[22:34:05] BraddPitt: they aren't necessarily passwords
[22:34:15] BraddPitt: I want to encrypt and decrypt with a password is what I mean
[22:34:33] Pupeno: has joined #ruby
[22:34:34] Ox0dea: BraddPitt: There's this Ruby wrapper around GPGME? https://github.com/ueno/ruby-gpgme
[22:35:58] Ox0dea: There's also an OpenPGP wrapper, but that's more for exchanging encrypted messages.
[22:38:40] Ox0dea: >> require 'openssl'; ObjectSpace.each_object(Class).count { |c| c < OpenSSL::Cipher } # BraddPitt
[22:38:41] ruboto: Ox0dea # => 12 (https://eval.in/433960)
[22:39:06] baweaver: has joined #ruby
[22:39:12] postmodern: has joined #ruby
[22:39:17] rbennacer: has joined #ruby
[22:39:41] Ox0dea: The first two suggestions would do much of the heavy lifting, but OpenSSL cipher suite isn't terribly hard to use.
[22:39:43] BraddPitt: why am I not doing that
[22:39:54] BraddPitt: I literally was just looking at that doc page
[22:41:03] Ox0dea: BraddPitt: Let's let ruboto pick which cipher you use.
[22:41:06] Ox0dea: >> require 'openssl'; OpenSSL::Cipher.constants.sample
[22:41:07] ruboto: Ox0dea # => :RC4 (https://eval.in/433961)
[22:41:19] dravine: has joined #ruby
[22:41:31] Ox0dea: Hey, lianj.
[22:43:43] BraddPitt: >> require 'openssl; OpenSSL::Cipher.constants
[22:43:44] ruboto: BraddPitt # => /tmp/execpad-84642cedd69b/source-84642cedd69b:2: unterminated string meets end of file ...check link for more (https://eval.in/433962)
[22:44:39] p0wn3d_: has joined #ruby
[22:44:40] BraddPitt: >> require 'openssl'; OpenSSL::Cipher.constants
[22:44:41] ruboto: BraddPitt # => [:CipherError, :AES, :CAST5, :BF, :DES, :IDEA, :RC2, :RC4, :RC5, :AES128, :AES192, :AES256, :Cipher] ...check link for more (https://eval.in/433963)
[22:45:00] BraddPitt: >> p `ruby -v`
[22:45:01] ruboto: BraddPitt # => (https://eval.in/433964)
[22:45:10] BraddPitt: >Forbidden access to file `/usr/local/bin/ruby'
[22:45:15] Ox0dea: >> RUBY_VERSION
[22:45:16] ruboto: Ox0dea # => "2.2.0" (https://eval.in/433965)
[22:45:25] Ox0dea: Use AES256.
[22:45:31] BraddPitt: planned on it
[22:45:45] JDiPierro: has joined #ruby
[22:45:53] BraddPitt: thanks for the help Ox0dea, sometimes you just need someone to talk to before you realize the obvious
[22:45:58] BraddPitt: dunno why I overlooked OpenSSL
[22:46:13] drbrain: no, use AES-GCM
[22:46:24] drbrain: https://github.com/ruby/openssl/pull/21#issuecomment-130895082
[22:46:50] jaequery: has joined #ruby
[22:47:16] drbrain: BraddPitt: ???
[22:48:02] BraddPitt: perfect, thank you
[22:50:28] drbrain: I need to update my PR still
[22:50:53] trippycat: has joined #ruby
[22:51:22] BraddPitt: oof, i had an old openssl version installed
[22:51:24] BraddPitt: time to upgrade
[22:51:26] siaW: has joined #ruby
[22:51:43] rickmasta: has joined #ruby
[22:53:40] siaW: does anyone have an explanation for this? https://gist.github.com/siaw23/1b4ae905cd19293d1e56
[22:54:18] eam: siaw: 5.upto() returns self
[22:54:35] eam: irb prints out the returned value
[22:54:47] ruboto: eam # => 5 (https://eval.in/433966)
[22:54:59] devoldmx: has joined #ruby
[22:55:37] failshell: has joined #ruby
[22:56:30] juanpablo_: has joined #ruby
[22:56:51] unholycrab: has joined #ruby
[22:57:13] siaW: eam: but why is it that in the ruby-doc self wasn???t returned? only in the console?
[22:58:22] eam: it was returned
[22:58:25] eam: but, did you print it?
[22:58:30] eam: puts 5.upto()
[22:58:45] eam: siaw: what happens if you just say "1 + 1" on a line by itself?
[22:59:12] siaW: eam: i get 2
[22:59:18] siaW: that???s expected
[22:59:34] bigmac: has joined #ruby
[22:59:43] eam: siaw: I mean like this: ruby -e'1 + 1'
[22:59:50] eam: that shouldn't give you a printout of 2
[23:00:06] Ox0dea: siaw: For what it's worth, the documentation is clear that #upto with a block returns the receiver: http://ruby-doc.org/core-2.2.3/Integer.html#method-i-upto
[23:00:56] Ox0dea: It's just like Enumerable#each, if you're more familiar with that method.
[23:01:09] siaW: Ox0dea: yes. but in their examples the receiver is NOT returned. and that???s what???s confusing me
[23:01:32] totimkopf: siaw: what example?
[23:01:34] Ox0dea: siaw: You're right that the documentation shouldn't be using #=> to indicate what gets printed out.
[23:01:36] totimkopf: trippycat: hi oO
[23:01:37] David27: has joined #ruby
[23:01:56] Ox0dea: siaw: #=> is conventionally used to indicate return values, so I see now where your confusion could've arisen.
[23:02:01] rakm: has joined #ruby
[23:02:02] siaW: Ox0dea: well that clears thing up. for a moment i wasn???t sure what they were trying to say
[23:04:57] allomov: has joined #ruby
[23:05:23] Lumio: has joined #ruby
[23:06:03] freerobby: has joined #ruby
[23:06:31] devoldmx: has joined #ruby
[23:08:01] ricer2: has joined #ruby
[23:08:38] Lumio: has joined #ruby
[23:09:16] tcopeland: has joined #ruby
[23:11:47] pyon: has joined #ruby
[23:12:16] hinbody_: has joined #ruby
[23:13:37] CloCkWeRX: has joined #ruby
[23:13:38] TheRinger: has joined #ruby
[23:14:10] paulcsmith: has joined #ruby
[23:15:02] solocshaw: has joined #ruby
[23:16:44] Lumio: has joined #ruby
[23:20:05] nettoweb: has joined #ruby
[23:20:41] EminenceHC: has joined #ruby
[23:21:01] iamvery: has joined #ruby
[23:23:04] diego2: has joined #ruby
[23:23:55] diego2: has joined #ruby
[23:24:04] solocshaw: has joined #ruby
[23:26:29] zapata: has joined #ruby
[23:29:57] beauby: has joined #ruby
[23:30:10] bigmac: has joined #ruby
[23:30:37] Pupeno: has joined #ruby
[23:30:50] karapetyan: has joined #ruby
[23:30:56] beauby: Hi, given a class ::A::B::C, how would I go around looking up a constant in the following order/places: ::A::B::C::D, ::B::C::D, ::C::D, ::D?
[23:32:25] pipework: beauby: I'm not sure I understand what you're describing.
[23:32:47] drbrain: beauby: look up each one in successive rescues
[23:33:08] EminenceHC: has joined #ruby
[23:33:12] beauby: pipework: I have a class ::A::B::C, and I'm looking up a constant "D", however I would like the lookup to work as stated above
[23:33:14] Ox0dea: drbrain: Exceptions for control flow?
[23:33:33] beauby: I was wondering whether there was a clean way to do that
[23:33:40] Ox0dea: beauby: Do you know about #const_get?
[23:33:41] drbrain: beauby: you can use Array#find
[23:35:00] beauby: Ox0dea: can't say I'm highly familiar with it, will look it up, cheers
[23:35:58] Ox0dea: beauby: Using #const_get and rescuing potential `NameError`s would work, but you might also consider using #constants and #include? to avoid using exceptions for control flow.
[23:36:01] drbrain: Array#find + Object#const_get
[23:36:33] iamvery: has joined #ruby
[23:36:44] beauby: drbrain: So basically, I'll have to build the lookup path manually, and then search it for `x.constants.include?(myconst)`
[23:36:51] webguynow: has joined #ruby
[23:37:13] pipework: beauby: Oh you want the reverse of the normal lookup?
[23:37:25] drbrain: include? won't work with autoload
[23:37:43] beauby: pipework: well, normal lookup is "popping from the back", I want "popping from the front"
[23:37:52] pipework: beauby: Isn't that what I said?
[23:37:58] beauby: drbrain: oh, good to know
[23:38:09] beauby: pipework: it is, I just wanted to make sure we meant the same thing
[23:38:18] drbrain: pipework: not exactly, since B::C::D isn't in the constant lookup when looking for any D from the nesting of A::B::C
[23:38:44] beauby: Well, yeah, depends what you call "reverse"
[23:38:59] t3rm: has joined #ruby
[23:39:17] ckinniburgh_: has joined #ruby
[23:39:17] goodcodeguy: has joined #ruby
[23:39:47] Ox0dea: beauby: Are ::A::B::C and ::B::C not the same class, then?
[23:40:05] pipework: drbrain: Oh you're totally right.
[23:40:16] beauby: Ox0dea: No, that's the point
[23:43:45] da3mian: has joined #ruby
[23:43:56] centrx: has joined #ruby
[23:44:19] iamvery: has joined #ruby
[23:45:38] iamvery: has joined #ruby
[23:45:50] Hamled: is there a concise, idiomatic way to combine collection.map{ ... }.select{ |x| x } into a single call
[23:46:29] Ox0dea: Hamled: Do what you were gonna do in the #map in the #select.
[23:46:43] Hamled: mmm yeah good point :P
[23:47:06] Ox0dea: Hamled: Was that specific #select block meant to indicate that you want to drop falsey values?
[23:47:45] drewvanstone: has joined #ruby
[23:47:52] Hamled: select's result doesn't seem to be used except for filtering
[23:47:57] wryfi: has left #ruby: ()
[23:47:59] mleung: has joined #ruby
[23:48:04] Ox0dea: Well, yes, that's its purpose.
[23:48:30] Ox0dea: But there's #compact if, for instance, you explicitly only want to filter out nils.
[23:48:35] Hamled: yah, so I can't move the transformation from map
[23:48:41] Hamled: thanks I'll look at that
[23:48:42] Hamled: it is just nils
[23:48:57] Ox0dea: Then #map + #compact is the idiomatic approach.
[23:49:12] baweaver: combine them
[23:49:41] Rurik: has joined #ruby
[23:50:41] solocshaw: has joined #ruby
[23:51:38] baweaver: >> module Enumerable;def compact_map; reduce([]) { |a, v| res = yield v; res ? a.push(res) : a } end;end; [1,2,3].compact_map { |v| v.even? ? v * 2 : nil }
[23:51:39] ruboto: baweaver # => [4] (https://eval.in/434005)
[23:54:46] Ox0dea: baweaver: each_with_object([]) { |e, r| r << e if yield e }
[23:54:47] Yzguy: has joined #ruby
[23:54:51] beauby: So something along the lines of https://gist.github.com/beauby/f8ddb8b99228ad131a2d should do the trick?
[23:54:52] Ox0dea: Bit nicer, methinks.
[23:55:11] baweaver: that doesn't map it
[23:55:18] Ox0dea: Oh, right.
[23:55:20] baweaver: you have to save yield e
[23:55:27] bigmac: has joined #ruby
[23:55:57] baweaver: ewo vs reduce is more of a semantics thing honestly in most cases.
[23:56:00] Ox0dea: And `r << y if y = yield e` doesn't work. :'(
[23:56:22] Yzguy: has joined #ruby
[23:56:24] failshell: has joined #ruby
[23:56:25] baweaver: if only we had itself { |v| ... }
[23:56:43] baweaver: needs more blocks
[23:58:13] Ox0dea: beauby: Do you know why you're doing this?
[23:59:25] Ox0dea: `try` in Ruby code + wanting to dynamically search a nesting is an interesting combination is all.
[23:59:45] beauby: Ox0dea: Yeah, I'm writing an extension for a rails models serializing library, so that it handles nested serializers in a nice way