baweaver changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
djbkd has joined #ruby
mjuszcza_ has quit []
phutchins has quit [Ping timeout: 264 seconds]
K3VA has joined #ruby
paulcsmith has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
rehat_ has quit [Remote host closed the connection]
saddad has joined #ruby
charliesome has joined #ruby
iamninja has quit [Ping timeout: 260 seconds]
bayed has quit [Quit: Connection closed for inactivity]
codeurge has joined #ruby
dopamean_ has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darwingr has quit [Ping timeout: 272 seconds]
<BenjiWiebe> Ox0dea: Not "still". But I am back now.
<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.
<BraddPitt> has anyone ever written tests against a Thor project?
<Ox0dea> BenjiWiebe: I was correct in my assumption that bind_param() copies Strings.
<zenspider> BenjiWiebe: kk.
<zenspider> BenjiWiebe: see url above. might be relevant still
jdawgaz has joined #ruby
<BenjiWiebe> Ox0dea: But in my code it does *not* copy Strings...??
<BenjiWiebe> zenspider: I don't think it is still relevant. My question is:
<BenjiWiebe> If I prepare a statement, and do stm.bind_param 1, myvalue
hfp has quit [Ping timeout: 264 seconds]
<Ox0dea> BenjiWiebe: Can you confirm that you get the same results? https://gist.github.com/0x0dea/240bc27ccdea6ba377f1
petricore has joined #ruby
<BenjiWiebe> And then execute. And then change myvalue, and execute again, what happens in the second execution?
hfp_work has quit [Ping timeout: 272 seconds]
<BenjiWiebe> Ox0dea: Yup, same results.
saddad has quit [Ping timeout: 240 seconds]
<BenjiWiebe> As in, same results as you got.
<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.
<zenspider> BenjiWiebe: "change myvalue"... the variable binding or the value it points to? based on Ox0dea's input, I'm guessing the latter
bmurt has joined #ruby
<BenjiWiebe> zenspider: The latter.
<zenspider> and the simple answer is: mutating shared values is bad and should be avoided at all costs
<BenjiWiebe> Ox0dea: So then why did my SQLite-timestamp -> ISO8601 converter WORK?
<zenspider> you can always call dup yourself, but Ox0dea poked around and said it dups already
<Ox0dea> zenspider: More precisely, it extracts the C string.
<BenjiWiebe> zenspider: I don't *want* to dup. Have you ever used PHP with mysqli?
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<zenspider> BenjiWiebe: Ox0dea's code implies that you don't have to
<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.
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
juanpablo_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<zenspider> I don't believe that based on evidence shown
shmilan has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> do you have a minimal repro that shows your issue?
<zenspider> preferably a variant of Ox0dea's code
<BenjiWiebe> zenspider: Not quite minimal, but here: http://pastebin.com/D0cHtjG6
<ruboto> BenjiWiebe, as I told you already, please use https://gist.github.com
<BenjiWiebe> Oh, sorry...
<zenspider> ignore the bot
<zenspider> that's annoying
<zenspider> that's really not minimal, can you strip it down?
<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
mleung has quit [Quit: mleung]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<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
<BenjiWiebe> zenspider, Ox0dea: Terribly sorry to be wasting all your time. Something is horribly wrong with my script.
chills42 has joined #ruby
soulcake has quit [Ping timeout: 256 seconds]
juanpablo_ has quit [Ping timeout: 264 seconds]
<BenjiWiebe> It doesn't change the DB *at all*, much less correctly convert the formats.
<zenspider> no worries. just needs to be standalone in order to be useful
<BenjiWiebe> I simply looked at the resulting DB and the dates were correct, not noticing they were still in the wrong format.
* BenjiWiebe is embarrassed and laughing at himself.
luckyruby has quit [Remote host closed the connection]
soulcake has joined #ruby
<BenjiWiebe> OK, it is working now. I just removed the bind_param calls and passed the values to stmt.execute as arguments.
* BenjiWiebe was WRONG.
drewo has quit [Ping timeout: 246 seconds]
taylorrf has joined #ruby
jdawgaz has joined #ruby
<zenspider> :P
<Ox0dea> BenjiWiebe: Are you sure the PHP SQLite3 binding let you do whatever it was you were going for there?
K3VA has quit [Remote host closed the connection]
<BenjiWiebe> Ox0dea: Not 100% sure since it has been years, but I'm 90% sure.
<Ox0dea> It seems crazy to let prepared statements look into the local variable table.
jdawgaz has quit [Client Quit]
<BenjiWiebe> Ox0dea: Ever heard of pointers? I think PHP has more of a concept of pointers than Ruby does.
<BenjiWiebe> And uses that in this case.
n_blownapart has quit []
gambl0re has joined #ruby
marr has quit [Ping timeout: 246 seconds]
<Ox0dea> BenjiWiebe: Remember String#replace?
<BenjiWiebe> Ox0dea: I remember, but I don't understand. :)
<BenjiWiebe> Shows setting the values to be INSERT'ed *after* binding.
<Ox0dea> Madness.
<Ox0dea> Ruby's SQLite3 binding certainly *could* support that approach, but it's better that it doesn't.
JoshL has joined #ruby
<BenjiWiebe> Ox0dea: I can live with either way, *as long as it is clearly documented*
<BenjiWiebe> In fact, it would be nice if the Ruby docs would include a warning for those coming from PHP.
<BenjiWiebe> Oh wait, sqlite3-ruby is open-source...if I want those, I might as well submit a pull request myself. :)
allomov has joined #ruby
luckyruby has joined #ruby
<craysiii> trigger warning, if you will..
Guest5 has joined #ruby
<baweaver> craysiii: ?
<craysiii> bad joke
hfp has joined #ruby
hfp_work has joined #ruby
sankaber has joined #ruby
allomov has quit [Ping timeout: 246 seconds]
FernandoBasso has quit [Quit: WeeChat 1.3]
luckyruby has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
camilasan has quit [Ping timeout: 255 seconds]
mwlang has quit [Quit: mwlang]
tuxero has quit [Quit: tuxero]
shmilan has quit [Ping timeout: 255 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
grenierm has quit [Quit: grenierm]
camilasan has joined #ruby
saddad has joined #ruby
veduardo has joined #ruby
havenwood has joined #ruby
allcentury has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
BenjiWiebe has quit [Quit: Konversation terminated!]
dfockler has joined #ruby
choke has joined #ruby
graydot has quit [Quit: graydot]
tkuchiki has joined #ruby
Jardayn has quit [Quit: Leaving]
lxsameer has quit [Quit: Leaving]
devoldmx has joined #ruby
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
drewo has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
drewo has quit [Ping timeout: 252 seconds]
jgt1 has quit [Ping timeout: 264 seconds]
banister has quit [Ping timeout: 260 seconds]
oo__ has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
oo_ has joined #ruby
blackjid has quit [Max SendQ exceeded]
hanmac has quit [Ping timeout: 246 seconds]
zack6849_ has quit [Quit: Leaving]
auzty has joined #ruby
blackjid has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
<Ox0dea> How close can we get to emulating something like libfaketime in pure Ruby?
babysnoop has quit [Ping timeout: 246 seconds]
beast has joined #ruby
keen__________19 has joined #ruby
bmurt has quit []
keen__________18 has quit [Ping timeout: 240 seconds]
Neverdie has joined #ruby
JoshL has quit []
mike___1234 has quit [Ping timeout: 250 seconds]
bullcitydev has joined #ruby
<BraddPitt> why not just mock the time
<BraddPitt> instead of creating a middleware layer
oo__ has joined #ruby
<Ox0dea> I solemnly swear that I am up to no good.
<BraddPitt> heh
elfuego has quit [Quit: elfuego]
juanpablo_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> haha
<zenspider> Ox0dea: I think the problem is you'd need to redirect all the C calls to your libfaketime too
shmilan has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
JohnnyTao has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
jackjackdripper has quit [Quit: Leaving.]
juanpablo_ has quit [Ping timeout: 265 seconds]
Yzguy has quit [Quit: Zzz...]
<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.
blue_deref has joined #ruby
<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
<zenspider> but, you want your lib to be pure ruby... you can't use the usual tricks to do on-the-fly patching.
<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
mleung has joined #ruby
<zenspider> I dunno... at that point I'm talking out my ass. :)
<zenspider> I'm about as white hat as they come
<Ox0dea> I think even doing this as a C extension is a no-go, since libfaketime relies on being LD_PRELOADed.
rubie has joined #ruby
<zenspider> graphics-1.0.0b4 has been released! https://github.com/zenspider/graphics
<zenspider> please poke at it! I'd love issues filed against it
<zenspider> I'd also love to know what you made with it
<zenspider> I just added a maze generator from Jamis Buck's book
<zenspider> (with permission)
yqt has quit [Ping timeout: 250 seconds]
luckyruby has joined #ruby
<zenspider> gotta run
stardiviner has joined #ruby
graydot has joined #ruby
Guest5 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
nettoweb has joined #ruby
luckyruby has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
ziro` has quit [Quit: ziro`]
<dorei> should i follow the ruby style guide and use fail instead of raise ?
bigmac has joined #ruby
pyon has quit [Quit: F...ix you, Emacs.]
soulcake has quit [Ping timeout: 256 seconds]
soulcake has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
FreeBleeder has joined #ruby
solocshaw has quit [Ping timeout: 256 seconds]
<FreeBleeder> hey fucks
<FreeBleeder> php is better
<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
<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
<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
<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
<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
<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
<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
<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
<havenwood> !mute FreeBleeder
<allcentury> o.O
FreeBleeder has left #ruby [#ruby]
<demophoon> ty
<devbug> havenwood: (y)
<havenwood> Sorry A-D. I should have been quicker.
<aibot> somebody who could let me work there and i saw the sign ace of base wheel of fortune
towski__ has quit [Remote host closed the connection]
<havenwood> Saw that coming but didn't want to jump the gun on an innocent.
<devbug> havenwood: should j-dam'd him quicker
<blue_deref> havenwood: No problem.
shadoi has quit [Quit: Leaving.]
<bootstrappm> no worries
<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
<blue_deref> havenwood: So u r hero
<havenwood> blue_deref: \o/
<blue_deref> Popen3 if I recall the name
<havenwood> blue_deref: :D
goodcodeguy has joined #ruby
aldodelgado has joined #ruby
meatherly has quit []
meatherly has joined #ruby
<havenwood> dorei: Dunno if you got that but I don't think there's a right answer. Maybe a realist and idealist option.
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> dorei: Similar to single versus double quote conventions.
<dorei> havenwood: in fact, before reading the style guide i didnt know that a #fail exists
mleung has quit [Quit: mleung]
<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?
choke has joined #ruby
<blue_deref> # Thank you, havenwood in #ruby on Freenode for popen2e()!
<blue_deref> found it
<havenwood> Ah, yeah that's a bit more particular.
d10n-work has quit [Quit: Connection closed for inactivity]
dopamean_ has quit [Ping timeout: 250 seconds]
<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
<aldodelgado> I have those options in my cron
<aldodelgado> -l for login mode
mleung has joined #ruby
chouhoulis has joined #ruby
<aldodelgado> dorei: thanks that cleaed it up. I didnt relize there was an order.
dopamean_ has joined #ruby
havenwoodie has joined #ruby
<havenwoodie> hi
JohnnyTao has quit [Ping timeout: 264 seconds]
<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
<havenwood> !mute havenwoodie
havenwoodie has left #ruby [#ruby]
havewooder has joined #ruby
<aibot> alexblom alexrussia alina-malina allcentury alol alxndr am11 amclain amitchellbullard ammar an0ma1y andersh anekos angelixd ankhers anohito antiarc apeiros apipkin apocalypse
<havenwood> !mute havenwood
<allcentury> o.O
<Aeyrix> For god's sake will someone just enable registered mode?
<havewooder> hey
<havewooder> :)
allcentury is now known as zallcentury
<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
<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
<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
<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
<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
havewooder has quit [Excess Flood]
<demophoon> !ops
<ruboto> apeiros, fflush, banisterfiend, jhass, zzak, Mon_Ouie, seanstickle, Havenn, Radar, sevenseacat, workmad3, miah, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver
<Antiarc> Seems that an ops bot could be set up to auto-kick anyone that highlights more than a couple of people at once.
FreeBleeder has joined #ruby
mleung has quit [Quit: mleung]
<Aeyrix> Antiarc: Or they could just enable +R
<aibot> hey x man i saw one now for 13k nok i
<Aeyrix> like a normal damn channel
<Antiarc> heh
babysnoop has joined #ruby
FreeBleeder has left #ruby [#ruby]
FreeBleeder has joined #ruby
FreeBleeder has left #ruby [#ruby]
<Aeyrix> havenwood: /mode #ruby +r please.
RubyRed has joined #ruby
<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
<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
<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
<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
<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
<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
<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
<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
<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_
<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
<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
<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
<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
<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_
<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
<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
<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
<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
mleung has joined #ruby
davedev2_ has quit []
poli has joined #ruby
<devbug> fuck
<devbug> havenwood: ^
<KrzaQ> not cool
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
<bootstrappm> !mute RubyRed
<aibot> benjikins i reported you to the spoiler b4
RubyRed has left #ruby [#ruby]
<joeyjones> what is that even supposed to accomplish?
<crowell> god dang
<Aeyrix> proving a point tbh
<Ox0dea> joeyjones: Perturbations.
<crowell> What is the point of highlighting everyone
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
RubyRed has joined #ruby
<Aeyrix> i'm slightly amused that they're proving *my* point
<bootstrappm> exactly this I think, haven't ppl be annoyed and talk
<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
<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
<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
<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
<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
<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_
<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_
* devbug sighs
<noodle> oh
<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
<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
<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
havenwood has joined #ruby
<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
<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
<crowell> What the Frick
<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
<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
<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
<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
<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
<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
<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_
<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
<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
<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
<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
<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
<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
<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
<Ox0dea> On the bright side, so many pretty colors.
<demophoon> plz, ops plz
zallcentury has quit [Quit: WeeChat 1.2]
<aibot> ft rkelly lil wayne birdman ti rick ross ace mac fat joe views 1467716 rating 950
<RubyRed> look at that look at these
<Aeyrix> On the down side, this is making my phone go crazy.
<noodle> how sad
<stardiviner> RubyRed: ???
<RubyRed> sorry Aeyrix
tchebb has left #ruby ["Leaving"]
pyon has joined #ruby
<RubyRed> Aeyrix lets be friends
chipotle has quit [Quit: cheerio]
<Eleeleth> Same, Aeyrix
<noodle> hi RubyRed
<tejasmanohar> fucks sake.
<Eleeleth> It was amusing, at least
<mburns> 'sorry'
<phreakocious> RubyRed: assholery
kapowaz has left #ruby [#ruby]
<mozzarella> Ox0dea: it's pink and yellow on my end
<mozzarella> not great
<Ox0dea> Yuck.
elfuego has joined #ruby
zenguy_pc has quit [Ping timeout: 246 seconds]
<Ox0dea> Hey, he found a bug in WeeChat.
<mozzarella> oh that
<Aeyrix> Alright tbqh
<Aeyrix> done w/ this channel
<Aeyrix> literally simple fix
<Ox0dea> Aeyrix, pls.
<Aeyrix> but
<Aeyrix> "muh ezpz"
Guest5 has joined #ruby
<RubyRed> dont leave Aeyrix
<Aeyrix> ops aren't based enough
RubyRed has left #ruby [#ruby]
Aeyrix has left #ruby [#ruby]
iamninja has joined #ruby
<cscheib> wat is ops aren't based enough supposed to mean
<bootstrappm> *plot twist* RubyRed was Aeyrix all along
<Ox0dea> The ops need to increase their basedness.
<bootstrappm> dun dun duuuun
<mozzarella> Ox0dea: >stankley stardiviner
<mozzarella> that part is broken
rubie has quit [Remote host closed the connection]
<Ox0dea> Indeed it is.
<Ox0dea> On account of there being somebody called ta.
RubyRed has joined #ruby
<RubyRed> hi
<mozzarella> lol, interesting
<RubyRed> im back
<Ox0dea> RubyRed: Whatcha gonna do?
<RubyRed> whats a permanent mute
RubyRed has left #ruby [#ruby]
havensucks has joined #ruby
mwh_ has joined #ruby
havensucks has left #ruby [#ruby]
havensucksdick has joined #ruby
havensucksdick has left #ruby [#ruby]
wtfhaven has joined #ruby
wtfhaven has left #ruby [#ruby]
<monoprotic> that wont work
<A124> I think some guy is going on channels and doing this for fun.
<Ox0dea> > fun
<A124> Well it does, he picks next channel
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> A124: I'm in a restaurant and it wasn't a good time for me to have connection or concentrate.
_lexjm has joined #ruby
<havenwood> A124: But it works for here.
tvon has joined #ruby
RedRider has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RedRider has left #ruby [#ruby]
havensucks has joined #ruby
havensucks has left #ruby [#ruby]
lolsmileyface has joined #ruby
lolsmileyface has left #ruby [#ruby]
iamninja has quit [Ping timeout: 272 seconds]
babysnoop has quit [Remote host closed the connection]
<havenwood> I'm too acidic. Not nearly base enough.
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Ox0dea> havenwood: Why does it even get toggled like this?
beast has quit [Remote host closed the connection]
inteq has joined #ruby
bmurts has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
<Ox0dea> +R is an excellent filter in several ways.
zenguy_pc has joined #ruby
inteq has quit [Max SendQ exceeded]
mleung has joined #ruby
inteq has joined #ruby
<A124> Well, it keeps visitiors away I guess.
amoeba` has joined #ruby
devbug_ has joined #ruby
<havenwood> Ox0dea: It's been debated. Working on better solutions.
blue_deref has quit [Quit: Taking myself out of hear.]
Xiti has quit [Quit: Xiti]
JohnnyTao has joined #ruby
Xiti has joined #ruby
x-light has joined #ruby
<VeryBewitching> warbot ftw.
<bootstrappm> yeah a bot that can identify attacks and auto mute / kick would be cool
<bootstrappm> they're not really all that creative ...
<VeryBewitching> No, it's constant spam.
devbug has quit [Ping timeout: 250 seconds]
mleung has quit [Client Quit]
A124_ has joined #ruby
rubie has joined #ruby
A124 has quit [Ping timeout: 268 seconds]
hanmac has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
mwh_ has left #ruby ["WeeChat 1.3"]
bootstrappm has left #ruby [#ruby]
radens has left #ruby ["WeeChat 1.0.1"]
A124_ has quit [Client Quit]
<Ox0dea> Anybody see it?
A124 has joined #ruby
veduardo has quit [Ping timeout: 250 seconds]
grenierm has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
choke has joined #ruby
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
rbowlby has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
michaeldeol has joined #ruby
bullcitydev has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
pietr0 has quit [Ping timeout: 272 seconds]
rubie has quit [Remote host closed the connection]
<IceDragon> Who pingeth the I?
wldcordeiro has joined #ruby
chills42 has quit [Remote host closed the connection]
<Ox0dea> IceDragon: All the Is got pinged.
<havenwood> IceDragon: A dinner troll that waits until the perfect bite to strike.
* havenwood chokes
<IceDragon> ;(
<IceDragon> I thought it was something important orz
<havenwood> IceDragon: But... now that you're here!
howdoicomputer has quit [Ping timeout: 250 seconds]
<havenwood> I've been looking for a dragon to smite certain someones...
<IceDragon> I'm always here :O
<IceDragon> lol
devoldmx has quit [Ping timeout: 255 seconds]
<Rennex> Ox0dea: i see lerdorf, matsumoto, wall... i'm guessing others are language creators that i don't recognise off hand?
<Ox0dea> Ice can't be used to extinguish fires...
<Ox0dea> Rennex: That'd be it.
<havenwood> ooh, i didn't see it!
<havenwood> grrr
<IceDragon> orz
<IceDragon> I can at least cool the conversations :P
<seitensei> IceDragon: go back to rgss lol
<havenwood> IceDragon: http://i.imgur.com/qxcAPEb.png
<Ox0dea> Rennex: Gosling = Java, Pressey = Befunge, Ierusalimschy = Lua, Müller = brainfuck, Van Rossum = Python, in case you wanted that.
dopamean_ has quit [Ping timeout: 246 seconds]
veduardo has joined #ruby
<IceDragon> seitensei: O: How could you know my dark past!?
* IceDragon drags seitensei to the bottom of the ocean
<IceDragon> >.>
<IceDragon> <.<
<IceDragon> No witnesses
<Ox0dea> IceDragon: Observe the order of the constituent parts of the word "interrobang".
<Rennex> Ox0dea: i noticed gosling at first since it's the first one, but all i knew was ryan gosling :P
<havenwood> Rennex: I shamefully admit the same but I didn't then solve. :(
<Rennex> heh
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
<IceDragon> My brain is fried...
<IceDragon> -.-;
<seitensei> IceDragon: Did you read what's happening with the new RM?
<havenwood> To be fair I'm balancing my laptop on my knee and need to relocate. Just lingering for trollsigns.
<seitensei> They're switching to JavaScript
allomov has joined #ruby
webguynow has joined #ruby
<IceDragon> Yeah, I've heard from a friend of mine
<havenwood> seitensei: RM?
<seitensei> Yeah, all the kids can be javascript pros now
<IceDragon> I can't even...
<seitensei> lol javascript pro
<seitensei> havenwood: rpg maker
<IceDragon> More script kiddies...
<IceDragon> orz
<IceDragon> more bad javascript
<IceDragon> like the world doesn't have enough
<seitensei> Well, that's pretty much what JavaScript is though
* seitensei downloads jQuery
luckyruby has joined #ruby
Wolland has joined #ruby
<IceDragon> seitensei: Is there any screenshots, trailers anything?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<seitensei> Dunno.
<IceDragon> So it doesn't exist then :D
* IceDragon rejoices
<seitensei> I've been busy training people how to use JavaScript
<seitensei> actually
<IceDragon> D:
<seitensei> Well, ES2015/TypeScript
<IceDragon> Multiplatform
<seitensei> but these kids have never used anything outside of Java
<IceDragon> STILL DONT SEE LINUX
<IceDragon> FFS
<seitensei> Linux doesn't need easy toys
<IceDragon> true
<IceDragon> We are hardcore gentlemen (sorry ladies)
<seitensei> I actually graduated from Debian onto Fedora
<dorei> w0w, rpgmaker got hipsterized
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
rushed has joined #ruby
<seitensei> It's so much slicker
mleung has joined #ruby
<IceDragon> while I still run Arch
<seitensei> I'm trying to figure out which one I like more between rbenv or rvm for this though
<IceDragon> of which, is so damn old, it still has remnants of init scripts...
bb010g has joined #ruby
<seitensei> eh
<dorei> so, now rpgmaker is used for non japanese rpgs too?
allomov has quit [Ping timeout: 255 seconds]
<seitensei> One reason for the jump is because Oracle only provides Oracle DB Express for RPM linux and Windows
bigmac has joined #ruby
luckyruby has quit [Ping timeout: 246 seconds]
<IceDragon> dorei: Well it could be used to produce anything, if you where willing to subject yourself to the shitty api
zotherstupidguy has quit [Ping timeout: 240 seconds]
<seitensei> and Oracle DB looks a lot better on a resume when you're applying for ERP jobs
<IceDragon> I had a small building sim in it at some point
<IceDragon> and then my hard drive died...
<Rennex> resolution is now 816x624 pixels? well whoop de doo, that'll be the size of a small postcard thenb
* wmoxam googles ERP
<IceDragon> o_e
<IceDragon> Dats barely an upgrade
SpikeMaster has joined #ruby
<seitensei> wmoxam: Enterprise Resource Planning
<IceDragon> I consider ruby > js a downgrade.
Guest5 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<seitensei> just incase you find the internet version of ERP
<IceDragon> Everyone should use Go :3
<wmoxam> seitensei: sounds "fun"
* Rennex googles for ERP
* IceDragon gets ready for the flak
<seitensei> IceDragon: Not necessarily. JavaScript is a decent language, with ES2015, or if you transpile from TypeScript.
<dorei> is sap for erp? or is it for crm?
moeabdol has quit [Ping timeout: 246 seconds]
<seitensei> SAP is everything. :x
<Rennex> what, i'm not finding porn at all?
<seitensei> It's the photoshop of ERP
<IceDragon> The fact you have to (trans/cross/pile)-pile the language means quite a bit
<seitensei> Overpriced and ships with more than you'll ever need
<dorei> so, siebel is sap for poors ?
zotherstupidguy has joined #ruby
<seitensei> SAP is for rich people :x
<dorei> oh, oracle bought siebel :D
<seitensei> PeopleSoft is cheaper than SAP last I checked
<seitensei> but jobs there are lower paying iirc
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<dorei> spending money helps the economy
<seitensei> SAP has all the shiny toys though, like HANA
webguynow has quit [Ping timeout: 264 seconds]
<IceDragon> seitensei: I like how they sell "NOW WITH A THIRD LAYER!" as a feature...
<IceDragon> -.-; The third layer has always been present
<seitensei> IceDragon: Honestly, if you're coding on server runtime, so NodeJS/iojs, you already have all the importan ES2015 features
<IceDragon> You just couldn't use it
<seitensei> So transpiling isn't very important
luckyruby has joined #ruby
<seitensei> Transpiling just makes it so outdated browsers can run your code (*glances at Safari*)
<IceDragon> JS is a plague server side and needs to die to painful and brutal death.
<IceDragon> s/to/a/
catcher has joined #ruby
<seitensei> It does async pretty well.
<IceDragon> So does Go
<wmoxam> it already died once
<wmoxam> ASP Jscript!
<wmoxam> :p
<seitensei> Sure, but Go is a systems language
<seitensei> so you use Go to kill C/C++ instead
<Ox0dea> wmoxam: I'm not sure you belong in this conversation.
<IceDragon> Which is why I said JS needs to die "server side"
mleung has quit [Quit: mleung]
<seitensei> C needs to die.
<wmoxam> Ox0dea: lol
<IceDragon> D8< You can't kill C
<IceDragon> C is like a GOD
<seitensei> Sure you can.
<Ox0dea> (That is, you appear to know what the fuck you're talking about.)
<IceDragon> >_>;
* seitensei grabs Rust.
<IceDragon> Shiiit
<Ox0dea> I've never seen parrots fling shit, but there's a first time for everything.
webguynow has joined #ruby
<seitensei> Currently, I'd probably pick Rust over Go, over C++
<Ox0dea> seitensei: Why?
<SpikeMaster> i'm probably just pick C with valgrind over everything else.
<dorei> C for systems programming, ruby for everything else :)
<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
<seitensei> Coming from Ruby, I like the syntax in Go and Rust a lot more than C
<Ox0dea> > picking languages for their syntax
<dorei> yeah, syntax conveys the beauty of a language :)
<IceDragon> I pick assembly for its syntax
<IceDragon> >->
<seitensei> IceDragon: But you also hate yourself
<IceDragon> yes, yes I do orz
<Ox0dea> IceDragon: AT&T or Intel?
<seitensei> I spent a year having to deal with MIPS assembly
<seitensei> D:
<seitensei> Not fun at all.
baweaver has joined #ruby
arashb has quit [Ping timeout: 246 seconds]
<IceDragon> Intel?
<IceDragon> @ 0x0dea
<Ox0dea> How come?
<dorei> which one is the motorola style? at&t or intel?
<IceDragon> The assembly thing was a joke, the closest I've come to assembly was 8085
<IceDragon> intel
<seitensei> One of my profs was horrifically in love with MIPS assembly
<seitensei> as well as .NET bytecode
devbug has joined #ruby
<seitensei> lecture would start with topics around MIPS, and then tangent into how much he loves .NET
<IceDragon> I'm gonna be a cool kid and learn haskell... next year or maybe the year after...
* IceDragon leaves quietly
<pipework> IceDragon: Learn ocaml instead!
<seitensei> Had another professor who would randomly switch between C++ and Java mid lecture
<pipework> seitensei: Seems pretty reasonable.
<seitensei> Department put him into teaching the Java classes. He's a C++ guy.
<seitensei> Made me laugh
mleung has joined #ruby
<seitensei> Since they have the Java guy teaching theory classes instead
<IceDragon> Java....
<pipework> Mmm jvm.
<IceDragon> So many damn import statements...
diego2 has joined #ruby
<IceDragon> Has anyone ever tried writing Java outside an IDEA
<IceDragon> *IDE
<diego2> IceDragon: yes
<seitensei> In vim?
diego2 is now known as diegoviola
<seitensei> Yeah
<diegoviola> vim
<seitensei> Unless you want to insist that vim is an ide
<IceDragon> Its like writing your name 100 times to confirm you want to move a file
<Ox0dea> seitensei: What makes Vim not an IDE?
<IceDragon> 50% of your time is spent writing import statements
* IceDragon grinds teeth
<seitensei> I'd say that vim is an optional IDE
devbug_ has quit [Ping timeout: 256 seconds]
<Ox0dea> seitensei: A computer is an optional hammer.
<seitensei> It's up to the user to set vim up to be one or not
<seitensei> It's a perfectly reasonable plain text editor
<IceDragon> Mine is a paper weight and heater
bigmac has quit [Ping timeout: 246 seconds]
<IceDragon> Who needs a home heater or blanket when you got a laptop
<seitensei> I'm not sure you need a heater
bmurt has quit []
<Ox0dea> seitensei: Do you use Vim regularly?
mrtomme has quit [Ping timeout: 264 seconds]
xcesariox has joined #ruby
<seitensei> As a text editor, mainly
<Ox0dea> What does that mean?
<Ox0dea> Do you do a lot of visual programming?
<IceDragon> I use vim for config files, and sublime text for.. everything else
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<seitensei> I'm not actively using it to the extent that I have a .vimrc set up with anything
webguynow has quit [Ping timeout: 240 seconds]
mrtomme has joined #ruby
<seitensei> but I tend to use it to do my gemfiles and gulp files
dorei has quit []
webguynow has joined #ruby
<Ox0dea> Why wouldn't you just use whatever other editor to which you've become acclimated?
<seitensei> Because vim runs on the server ^^
<seitensei> Without having to twiddle with x forwarding
<Ox0dea> So does sed.
gener1c has joined #ruby
<seitensei> Yeah, but I have more habits formed with vim
diego2 has joined #ruby
rbowlby has joined #ruby
gener1c_ has quit [Ping timeout: 265 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
diego2 has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<seitensei> I could be like my prof and cat everything but
webguynow has quit [Ping timeout: 260 seconds]
<seitensei> that's also tedious
webguynow has joined #ruby
braincra- has quit [Quit: bye bye]
oo_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
havenwood has joined #ruby
dgutierrez1287 has joined #ruby
braincras has joined #ruby
juanpablo_ has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
deol has joined #ruby
SpikeMaster has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
catcher has quit [Quit: catcher]
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
catcher has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
michaeldeol has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
grenierm has quit [Quit: grenierm]
deol has quit [Client Quit]
grenierm has joined #ruby
grenierm has quit [Client Quit]
charliesome has joined #ruby
darkf has joined #ruby
darkf has quit [Changing host]
darkf has joined #ruby
<nofxx> is there a ios channel here on freenode?
michaeldeol has joined #ruby
<nofxx> #iphonedev looks like, sorry the OT.. thanks =D
rbowlby has quit [Ping timeout: 246 seconds]
<Psi-Jack> nofxx: Ask alis.
pietr0 has joined #ruby
oo_ has quit [Quit: Leaving...]
mleung has quit [Quit: mleung]
webguynow has quit [Ping timeout: 250 seconds]
baweaver has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: leaving]
webguynow has joined #ruby
baweaver has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
mjmac has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
dravine_ has joined #ruby
larissa has quit [Ping timeout: 246 seconds]
Nahra has quit [Remote host closed the connection]
devoldmx has joined #ruby
craysiii has quit [Ping timeout: 246 seconds]
Shidash has quit [Ping timeout: 246 seconds]
jtdowney has quit [Ping timeout: 246 seconds]
epochwolf has quit [Ping timeout: 246 seconds]
lokulin has quit [Ping timeout: 246 seconds]
drbrain has quit [Ping timeout: 246 seconds]
dopamean_ has joined #ruby
wldcordeiro_ has joined #ruby
rubie has joined #ruby
veduardo has quit [Ping timeout: 252 seconds]
johnhamelink has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 246 seconds]
dravine has quit [Ping timeout: 246 seconds]
DarkBushido has quit [Ping timeout: 246 seconds]
Klumben has quit [Ping timeout: 246 seconds]
jimeh has quit [Ping timeout: 246 seconds]
waxjar has quit [Ping timeout: 246 seconds]
dymk has quit [Ping timeout: 246 seconds]
dravine_ is now known as dravine
universa1 has quit [Ping timeout: 244 seconds]
linc01n has quit [Ping timeout: 244 seconds]
Wolland has quit [Ping timeout: 246 seconds]
blackjid has quit [Ping timeout: 246 seconds]
znz_jp has quit [Ping timeout: 246 seconds]
asi_ has quit [Ping timeout: 246 seconds]
duoi has quit [Ping timeout: 246 seconds]
lacrosse has quit [Ping timeout: 246 seconds]
cball has quit [Ping timeout: 246 seconds]
alem0lars has quit [Ping timeout: 246 seconds]
skarn has quit [Ping timeout: 246 seconds]
terrellt has quit [Ping timeout: 246 seconds]
Guest38256 has quit [Ping timeout: 246 seconds]
elfuego has quit [Quit: elfuego]
voxxit has quit [Ping timeout: 246 seconds]
hostess has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
larissa has joined #ruby
Shidash has joined #ruby
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
DarkBushido has joined #ruby
epochwolf has joined #ruby
asi_ has joined #ruby
bf4 has joined #ruby
bf4 is now known as Guest63062
waxjar has joined #ruby
cball has joined #ruby
cschneid has joined #ruby
drbrain has joined #ruby
bigmac has joined #ruby
mjmac has joined #ruby
<Ox0dea> case Alice.height; when 10.feet; ...
hostess has joined #ruby
wldcordeiro has quit [Ping timeout: 246 seconds]
duoi has joined #ruby
linc01n has joined #ruby
dymk has joined #ruby
universa1 has joined #ruby
jimeh has joined #ruby
wookiehangover has joined #ruby
Klumben has joined #ruby
Wolland has joined #ruby
voxxit has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<Ox0dea> Psi-Jack: I guess yours probably wasn't a Jefferson Airplane reference.
lacrosse has joined #ruby
Wolland has quit [Client Quit]
craysiii has joined #ruby
bdnchr has joined #ruby
alkdsfhj has joined #ruby
bdnchr has left #ruby [#ruby]
tmtwd has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has joined #ruby
michaeldeol has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
rushed has quit [Quit: rushed]
nofxx has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
mjmac has quit [Ping timeout: 246 seconds]
drbrain has quit [Ping timeout: 246 seconds]
epochwolf has quit [Ping timeout: 246 seconds]
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
gix has quit [Ping timeout: 264 seconds]
jimeh has quit [Ping timeout: 246 seconds]
universa1 has quit [Ping timeout: 246 seconds]
linc01n has quit [Ping timeout: 246 seconds]
craysiii has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 246 seconds]
terrellt has quit [Ping timeout: 246 seconds]
Klumben has quit [Ping timeout: 246 seconds]
cball has quit [Ping timeout: 246 seconds]
waxjar has quit [Ping timeout: 246 seconds]
Shidash has quit [Ping timeout: 246 seconds]
larissa has quit [Ping timeout: 246 seconds]
DarkBushido has quit [Ping timeout: 246 seconds]
bdnchr has joined #ruby
voxxit has quit [Ping timeout: 246 seconds]
wookiehangover has quit [Ping timeout: 246 seconds]
dymk has quit [Ping timeout: 246 seconds]
hostess has quit [Ping timeout: 246 seconds]
duoi has quit [Ping timeout: 246 seconds]
asi_ has quit [Ping timeout: 246 seconds]
Guest63062 has quit [Ping timeout: 246 seconds]
bdnchr has quit [Client Quit]
baweaver has quit [Ping timeout: 240 seconds]
f00dMonsta has joined #ruby
<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
sfr^ has quit [Ping timeout: 244 seconds]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
rubie has quit [Remote host closed the connection]
rushed has joined #ruby
asi_ has joined #ruby
gix has joined #ruby
s00pcan has quit [Ping timeout: 255 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hostess has joined #ruby
s00pcan has joined #ruby
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<mozzarella> you could use '.*' instead
Rickmasta has joined #ruby
webguynow has quit [Ping timeout: 272 seconds]
<mozzarella> IceDragon: ^
<Ox0dea> IceDragon: Are you allergic to regular expressions?
webguynow has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
<IceDragon> 0x0dea: Sorta
ramfjord has quit [Ping timeout: 244 seconds]
<IceDragon> mozzarella: that could work
<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
poli_ has joined #ruby
SuMo_D has quit [Remote host closed the connection]
<baweaver> wat
prestorium has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
The_Phoenix has joined #ruby
<Ox0dea> IceDragon: Whatcha doin' with mruby?
poli has quit [Ping timeout: 240 seconds]
tejasmanohar has quit [Quit: tejasmanohar]
<IceDragon> baweaver: mruby, by default does not include a Regexp implmentation
dima_ has joined #ruby
<IceDragon> 0x0dea: A game engine :D
<IceDragon> orz
<IceDragon> more like a opengl wrapper
<IceDragon> which just happens to have input...
<Ox0dea> So you're not actually constrained.
araujo has joined #ruby
shmilan has quit [Ping timeout: 272 seconds]
luckyruby has quit [Quit: Leaving...]
<baweaver> what are you on about?
<baweaver> that's straight false.
pepperbreath has left #ruby [#ruby]
mrityunjay has joined #ruby
cball has joined #ruby
fostertheweb has joined #ruby
craysiii has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
rushed has quit [Read error: Connection reset by peer]
rushed has joined #ruby
minimalism has quit [Ping timeout: 250 seconds]
The_Phoenix has quit [Quit: Leaving.]
minimalism has joined #ruby
<IceDragon> baweaver: My state remains true, mruby does not include a Regexp implementation, you have to use a 3rd party gem
<IceDragon> *statement
<Ox0dea> It's arguably second-party.
<IceDragon> god, 11 pm and my typing goes to hell
<IceDragon> Its a party without confetti
oo_ has quit [Remote host closed the connection]
woodruffw has joined #ruby
wookiehangover has joined #ruby
taylorrf has quit []
drbrain has joined #ruby
epochwolf has joined #ruby
bf4_ has joined #ruby
larissa has joined #ruby
waxjar has joined #ruby
Shidash has joined #ruby
cschneid has joined #ruby
DarkBushido has joined #ruby
duoi has joined #ruby
dymk has joined #ruby
mjmac has joined #ruby
jimeh has joined #ruby
iamninja has joined #ruby
voxxit has joined #ruby
SuMo_D has joined #ruby
sfr^ has joined #ruby
linc01n has joined #ruby
universa1 has joined #ruby
dfockler has quit [Ping timeout: 265 seconds]
lokulin has joined #ruby
robbyoconnor has joined #ruby
iamninja has quit [Ping timeout: 240 seconds]
terrellt has joined #ruby
blackjid has joined #ruby
Klumben has joined #ruby
skarn has joined #ruby
HAL2328 has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
RaidBoss has joined #ruby
<RaidBoss> sup?
RaidBoss has left #ruby [#ruby]
HAL2328 has left #ruby [#ruby]
_lexjm has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
r_baron has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
rubie has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
chipotle has joined #ruby
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
<mozzarella> sup bruh
<Psi-Jack> IceDragon: That is your own fault, my son. :)
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<IceDragon> psssh, true, I typo pretty often, the words flow from my mind faster than my hands can process -.-;
fostertheweb has joined #ruby
dima_ has quit [Quit: This computer has gone to sleep]
rushed has quit [Quit: rushed]
petricore has joined #ruby
Musashi007 has joined #ruby
jenrzzz has joined #ruby
alem0lars has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
howdoicomputer has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
arescorpio has quit [Quit: Leaving.]
Narzew has joined #ruby
Narzew has quit [Remote host closed the connection]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnhamelink has joined #ruby
fostertheweb has joined #ruby
chipotle has quit [Quit: cheerio]
ramfjord has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
* seitensei eats IceDragon
<seitensei> Ice, do you have a github?
howdoicomputer has quit [Ping timeout: 240 seconds]
rushed has joined #ruby
<Psi-Jack> Well, no, because you ATE him.
<seitensei> He's not digest yet.
<seitensei> *digested
arup_r has joined #ruby
SuMo_D has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<IceDragon> *blub* IT BURRRRNS *blub*
lampshades has joined #ruby
<IceDragon> yeah I have a github
<IceDragon> its a mess though
<lampshades> my github is a mess, and Im proud of it
<lampshades> because its MY github
<IceDragon> lampshades: Pretty much
<lampshades> not anyone elses
Hrorek has quit [Ping timeout: 252 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
Hrorek has joined #ruby
<seitensei> I should tinker with mruby again at some point
<seitensei> I've been wanting to run it on Android
<lampshades> I like your line-tracer
* seitensei checks slack
<seitensei> Team members being lazy as usual, I can probably do my own side project
webguynow has quit [Ping timeout: 260 seconds]
<IceDragon> lampshades: me too, except my api is shit, and I haven't figured out how to fix it
<IceDragon> ┐( ̄ヮ ̄)┌
juanpablo_ has joined #ruby
webguynow has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
afrianska has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
acke has joined #ruby
<lampshades> moon is quite interesting as well
<lampshades> makes me want to build some games
arup_r has quit [Quit: Leaving]
cponcax has joined #ruby
rubie has joined #ruby
acke has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
catcher has quit [Quit: catcher]
cponcax_ has joined #ruby
minimalism has quit [Quit: leaving]
astrobunny has joined #ruby
cponcax has quit [Ping timeout: 264 seconds]
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
rubie has quit [Remote host closed the connection]
cponcax_ has quit [Client Quit]
JohnnyTao has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
dhjondoh has joined #ruby
grenierm has joined #ruby
JohnnyTao has joined #ruby
Kidge has joined #ruby
Kidge has left #ruby [#ruby]
riotjones has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
astrobunny has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 244 seconds]
saddad has quit [Ping timeout: 255 seconds]
dhjondoh has joined #ruby
aganov has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
dhjondoh has quit [Remote host closed the connection]
<flughafen> shevy! something took off today!
yfeldblum has joined #ruby
codenapper has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
astrobunny has joined #ruby
Renich has joined #ruby
SuMo_D has joined #ruby
<BraddPitt> nice commit squares, IceDragon
minimalism has joined #ruby
tagrudev has joined #ruby
<BraddPitt> I will never regret having a separate github account for work
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BraddPitt> all those squares... gone forever...
graydot has quit [Quit: graydot]
yfeldblu_ has joined #ruby
SuMo_D has quit [Ping timeout: 246 seconds]
mike___1234 has joined #ruby
devoldmx has quit [Remote host closed the connection]
rubie has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
last_staff has joined #ruby
riotjones has joined #ruby
jxv has quit [Quit: Leaving]
<Ox0dea> BraddPitt: I heard they take one of your fingers every time you muck with GIT_COMMITTER_DATE.
havenwood has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
<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.
Renich has quit [Quit: leaving]
Musashi007 has quit [Quit: Musashi007]
codecop has joined #ruby
codecop_ has joined #ruby
codecop_ has quit [Client Quit]
dhjondoh has joined #ruby
DoubleMalt has joined #ruby
agent_white has joined #ruby
mary5030 has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
alexUaN has joined #ruby
iamninja has joined #ruby
Musashi007 has joined #ruby
rubie has quit [Remote host closed the connection]
pawnbox has joined #ruby
grenierm has quit [Quit: grenierm]
n4046 has joined #ruby
acke has joined #ruby
eGGsha has joined #ruby
iamninja has quit [Ping timeout: 264 seconds]
solars has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
SuMo_D has joined #ruby
arup_r has joined #ruby
afrianska has quit [Remote host closed the connection]
Oka has quit [Quit: o/]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
riotjones has quit [Remote host closed the connection]
SuMo_D has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
n4046 has left #ruby [#ruby]
konopka has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby
<certainty> moin hackers
deg_ has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
konopka has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
firstdayonthejob has joined #ruby
<agent_white> \o
<monsieurp> \o
andikr has joined #ruby
howdoicomputer has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
stan has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhjondoh has quit [Quit: dhjondoh]
webguynow has quit [Ping timeout: 268 seconds]
webguynow has joined #ruby
acke has quit [Quit: Leaving...]
deg_ has joined #ruby
<havenwood> certainty: good mornin'
ndrei has quit [Ping timeout: 268 seconds]
jalcine has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
khebbie has joined #ruby
<certainty> o/
allomov has joined #ruby
jalcine has joined #ruby
webguynow has quit [Ping timeout: 264 seconds]
deg_ has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
juanpablo_ has joined #ruby
howdoi has joined #ruby
skullcrasher has joined #ruby
devoldmx has joined #ruby
mike___1234 has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
x-light has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
alkdsfhj has quit [Quit: WeeChat 1.3]
haxrbyte has quit [Client Quit]
devoldmx has quit [Ping timeout: 268 seconds]
deg_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
pawnbox_ has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
jas02 has joined #ruby
greenarrow has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
riotjones has quit [Quit: Leaving...]
<flughafen> shevy: there is a facebook evvent , the oppening of BER airport on the 20.6.2029
Hrorekr has joined #ruby
Hrorek has quit [Ping timeout: 256 seconds]
mrityunjay has quit [Ping timeout: 264 seconds]
ta has quit [Remote host closed the connection]
deg__ has joined #ruby
deg_ has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
mgorbach has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby
Denis has joined #ruby
webguynow has quit [Ping timeout: 272 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
MuffinPimp has quit [Read error: Connection reset by peer]
MuffinPimp has joined #ruby
webguynow has joined #ruby
rbowlby has joined #ruby
Denis has quit [Client Quit]
hs366 has joined #ruby
<shevy> lol 2029
Rover has quit [Quit: Verlassend]
deg__ has quit [Ping timeout: 272 seconds]
rubie has joined #ruby
xcesariox has joined #ruby
mgorbach has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
araujo has joined #ruby
jsuth has quit [Ping timeout: 260 seconds]
<certainty> xD
gambl0re has quit [Ping timeout: 246 seconds]
<flughafen> when is it scheduled to open?
alex88 has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
rubie has quit [Ping timeout: 265 seconds]
webguynow has joined #ruby
cvtsx has joined #ruby
mrityunjay has joined #ruby
<shevy> flughafen they could open the flughafen for incoming refugees :D
havenwood has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
havenwood has joined #ruby
am11 has quit [Quit: Leaving]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
<shevy> hmm
<shevy> he just scopes incorrectly or?
<certainty> well the thing to realize that it's lexically scoped
<shevy> I also don't know why he speaks of "child" when he uses modules
jmarrec has joined #ruby
deg_ has joined #ruby
<shevy> I remember I had weirdness once
<shevy> something like: module Foo; class Foo
<shevy> :)
<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?!
<shevy> yay!
<certainty> \o/
<shevy> what is magento, is this php?
<agent_white> \o/
<agent_white> shevy: Yep! I believe PHP and a mix of The Black Speech.
<havenwood> !unmute havenwood
<havenwood> Managed to mute myself. >.>
<havenwood> !unmute havenwood
deg_ has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Ping timeout: 250 seconds]
* havenwood pokes ruboto
<havenwood> agent_white: Would it be a huge thing to migrate?
BlackCoyote has quit [Remote host closed the connection]
<agent_white> havenwood: Nope! Looking at... 3 sites, 300 products for two of the sites, and... 6 for the third :)
Johnny_ has joined #ruby
gix has quit [Ping timeout: 250 seconds]
etvr has joined #ruby
skullcrasher has quit [Remote host closed the connection]
<shevy> havenwood lol
skullcrasher has joined #ruby
<shevy> you become a scary person without coffee
<havenwood> shevy: Mmm, coffee.
anisha has joined #ruby
JohnnyTao has quit [Ping timeout: 268 seconds]
JohnnyTao has joined #ruby
x-light has quit [Ping timeout: 250 seconds]
<shevy> there was some ruby code that showed how to create a zombie
<havenwood> shevy: zombie process or... zombie?
<shevy> first a cd, then a fork or something... anyone remembers where zombies can be created in ruby?
<shevy> all zombies!
bayed has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Johnny_ has quit [Ping timeout: 250 seconds]
Johnny_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Juanchito has joined #ruby
<shevy> I remember I looked at the source at ruby doc some months ago
<shevy> the cd was to "/" if I remember correctly before forking happened
JohnnyTao has quit [Ping timeout: 250 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby
chipotle has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pro| has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
<Pro|> is it possible to define a method with dynamic part in its name
<Pro|> like def for_x_times
Hounddog has joined #ruby
c0def00d has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
<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?
<c0def00d> I’m on rake, version 10.4.2
Zai00 has joined #ruby
bigkevmcd has joined #ruby
jgt1 has joined #ruby
ta has joined #ruby
Hounddog has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
oo_ has quit [Remote host closed the connection]
<shevy> Pro| yes, you can use the method called: define_method()
senayar has joined #ruby
<shevy> Pro| so the first step is: generate the name that you wish to use; the second step is, send into define_method()
JohnnyTao has joined #ruby
Hounddog has joined #ruby
<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
<Pro|> ok thank you
oo_ has joined #ruby
<Pro|> thats what i was looking for
pawnbox_ has quit [Remote host closed the connection]
<shevy> \o/
devoldmx has joined #ruby
Pathfinder has joined #ruby
Johnny_ has quit [Ping timeout: 256 seconds]
<Pathfinder> Anyone used the new FIX 5 Protocol ...
JohnnyTao has quit [Ping timeout: 246 seconds]
howdoicomputer has quit [Ping timeout: 264 seconds]
<shevy> c0def00d you probaly need to load the part that adds that method to Pathname
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 255 seconds]
JohnnyTao has joined #ruby
<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
JohnnyTao has quit [Client Quit]
platosha has quit [Ping timeout: 264 seconds]
<adaedra> Hello
karapetyan has joined #ruby
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
<shevy> I hate pathname
<havenwood> adaedra: hey
<havenwood> shevy: hem
* havenwood searches for a psychiatrist's pipe
<shevy> insanity is a feature, not a bug!
Pupeno has joined #ruby
<adaedra> Some people had some fun this night I see
<shevy> where were YOU
<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
<adaedra> where were who
<adaedra> and when
<jhass> c0def00d: http://devdocs.io/ruby/pathname#method-i-pathmap oh actually it's a stdlib method, ancient Ruby perhaps?
<ekem> ekem
<ekem> her whoops
bigmac has quit [Quit: Leaving]
<c0def00d> jhass: it is stdlib
xcesariox has joined #ruby
<c0def00d> jhass: perhaps my environment changed since last time
<c0def00d> jhass: thanks :)
<shevy> scary
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
khebbie has quit [Remote host closed the connection]
<jhass> c0def00d: mmh, it was added back in 0.7.2, what's your rake version?
Timba-as has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<c0def00d> 10.4.2
iamninja has joined #ruby
monod has joined #ruby
khebbie has joined #ruby
_axx has left #ruby [#ruby]
jgt1 has quit [Ping timeout: 255 seconds]
<jhass> what if you require "rake/ext/pathname" explicitly?
Outlastsheep has quit [Quit: ZNC - http://znc.in]
chipotle has joined #ruby
iamninja has quit [Ping timeout: 264 seconds]
kiddorails has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
kedare has joined #ruby
<c0def00d> jhass: that works fine
DoubleMalt has joined #ruby
<c0def00d> jhass: the weird thing is I was sure it used to work without that epxlicit require. thanks a lot for helping me out :)
<jhass> yeah I wouldn't expect it to be needed
SuMo_D has joined #ruby
skade has joined #ruby
khebbie has quit [Remote host closed the connection]
<yorickpeterse> morning
kostiak has joined #ruby
<havenwood> good mornin'
SuMo_D has quit [Ping timeout: 246 seconds]
<kostiak> mornin
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
yottanami has joined #ruby
nofxx has quit [Remote host closed the connection]
<yottanami> Should I return nil or false when a method have not ok result?
<jhass> yottanami: what's the ok result?
splud has quit [Quit: splud]
webguynow has quit [Ping timeout: 272 seconds]
<jhass> and when does the not ok result happen?
webguynow has joined #ruby
ziro` has joined #ruby
TheHodge has joined #ruby
devbug has quit [Read error: Connection reset by peer]
chipotle has quit [Read error: Connection reset by peer]
<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
webguynow has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
<jhass> so true/false seems like a sane reply?
pawnbox has joined #ruby
<jhass> valid_foo?(param[:foo])
leafybas_ has quit [Remote host closed the connection]
c0def00d has quit [Quit: c0def00d]
leafybasil has joined #ruby
nofxx has joined #ruby
Balzrael has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
c0m0 has joined #ruby
leafybasil has quit [Ping timeout: 255 seconds]
skade has joined #ruby
minimalism has quit [Quit: leaving]
juanpablo_ has joined #ruby
krz has joined #ruby
rushed has quit [Quit: rushed]
astrobunny has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 268 seconds]
x-light has joined #ruby
rbowlby has quit [Remote host closed the connection]
bampersand has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
dmolina has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
bampersand has quit [Ping timeout: 265 seconds]
CustosL1men has joined #ruby
araujo has joined #ruby
leafybasil has joined #ruby
<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
pandaant has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
UtkarshRay has joined #ruby
khebbie has quit [Remote host closed the connection]
chipotle has joined #ruby
blaxter has joined #ruby
karapetyan has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 252 seconds]
ponga has quit [Quit: Connection closed for inactivity]
zapata has joined #ruby
khebbie has joined #ruby
Macaveli has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
marr has joined #ruby
dara has joined #ruby
dara has left #ruby [#ruby]
dhjondoh has quit [Quit: dhjondoh]
lxsameer has joined #ruby
x-light has joined #ruby
karapetyan has joined #ruby
ziro` has quit [Quit: ziro`]
relix has joined #ruby
dhjondoh has joined #ruby
oo__ has joined #ruby
karapetyan has quit [Remote host closed the connection]
<zenspider> huh. I've never known of String#pathmap. You learn something new every day (hopefully)
SCHAAP137 has joined #ruby
sameerynho has joined #ruby
Siyfion has joined #ruby
<zenspider> yottanami: raise an exception
lxsameer has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 246 seconds]
Zai00 has quit [Ping timeout: 246 seconds]
DLSteve has joined #ruby
Zai00 has joined #ruby
karapetyan has joined #ruby
A124 has quit [Read error: Connection reset by peer]
A124 has joined #ruby
* zenspider goes to bed
chipotle has quit [Read error: Connection reset by peer]
frg133 has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
Voker57 has joined #ruby
pawnbox has quit [Remote host closed the connection]
karapetyan has joined #ruby
arup_r has joined #ruby
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
Billias has quit [Ping timeout: 246 seconds]
arup_r_ has joined #ruby
frg133 has quit [Quit: Leaving]
oo__ has joined #ruby
dotix has joined #ruby
dotix has joined #ruby
pawnbox has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
rdark has joined #ruby
x-light has quit [Ping timeout: 256 seconds]
oo_ has quit [Ping timeout: 264 seconds]
agent_white has quit [Remote host closed the connection]
<dotix> what's the best way to make nil out of "" in-place => {"a" => "aa", "b" => "bb", "c" => ""}
<dotix> => {"a" => "aa", "b" => "bb", "c" => nil}
lele|w has quit [Ping timeout: 240 seconds]
<certainty> >> h = {"a" => "aa", "b" => "bb", "c" => ""}; h.delete_if { |_,v| v.empty? }; h
<ruboto> certainty # => {"a"=>"aa", "b"=>"bb"} (https://eval.in/433327)
<certainty> is one way
jkldfhcx has joined #ruby
<certainty> note that this will not work if you need to preserve keys
<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)
[k- has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
<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
<certainty> bbl
tvw has joined #ruby
kiddorails has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
bluOxigen has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
jgt1 has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
dgutierrez1287 has joined #ruby
blueOxigen has quit [Ping timeout: 252 seconds]
lele|w has joined #ruby
eGGsha has quit [Ping timeout: 246 seconds]
Pupeno_ has joined #ruby
<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?
oo__ has quit [Remote host closed the connection]
<shevy> like .pryrc or .irbrc
<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 ... \
oo_ has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
<gregf_> er, i think dotix means change foo => "" to foo => nil
Pupeno has quit [Ping timeout: 250 seconds]
<dotix> yes, wnated to do that because of how forms are submited in rails
<gregf_> >> {"a" => "aa", "b" => "bb", "c" => ""}.map{|k,v| [k, v.empty? ? nil : v]}
<ruboto> gregf_ # => [["a", "aa"], ["b", "bb"], ["c", nil]] (https://eval.in/433334)
<dotix> probably I will end up using a normalizer
<gregf_> >> {"a" => "aa", "b" => "bb", "c" => ""}.map{|k,v| [k, v.empty? ? nil : v]}.to_h
<ruboto> gregf_ # => {"a"=>"aa", "b"=>"bb", "c"=>nil} (https://eval.in/433335)
<gregf_> prolly not the best way :/
<gregf_> a null is surely not the same as an empty string... atleast not in the DB
eGGsha has joined #ruby
mprelude has joined #ruby
<dotix> Yes, that'll work, but I think I'll have problems with this in the future
<dotix> Probably it's not the best way like you said
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
ruby-lang207 has joined #ruby
Billias has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
iamninja has joined #ruby
jgt1 has joined #ruby
ruby-lang207 has quit [Ping timeout: 246 seconds]
MichaelSmith has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
iamninja has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rdark has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
Rickmasta has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ramfjord has joined #ruby
AlexRussia has joined #ruby
rdark has joined #ruby
juanpablo_ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
lkba_ has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
juanpablo_ has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
tkuchiki has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
stevednd has quit [*.net *.split]
unclouded has quit [*.net *.split]
nullwarp has quit [*.net *.split]
verdoc has quit [*.net *.split]
crdpink2 has quit [*.net *.split]
bestbrents__ has quit [*.net *.split]
j416 has quit [*.net *.split]
<oddmunds> shevy: the "rc" in .bashrc etc. stands for 'run commands', so rc-files are traditionally script files
verdoc has joined #ruby
<oddmunds> for example written in ruby
j416 has joined #ruby
<shevy> hmm
nullwarp has joined #ruby
crdpink2 has joined #ruby
unclouded has joined #ruby
bestbrents__ has joined #ruby
stevednd has joined #ruby
keen__________20 has joined #ruby
<oddmunds> .conf files might be more what you're looking for
rodfersou has joined #ruby
tkuchiki has quit [Remote host closed the connection]
symm- has joined #ruby
keen__________19 has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
Hrorekr has left #ruby [#ruby]
sdfgsdfg has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Salehi has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
r_baron has joined #ruby
khebbie has quit [Remote host closed the connection]
tkuchiki has joined #ruby
sdothum has joined #ruby
sdfgsdfg has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
lampshades has quit [Remote host closed the connection]
tkuchiki has joined #ruby
platosha has joined #ruby
ujjain- has quit [Max SendQ exceeded]
chouhoulis has quit [Read error: Connection reset by peer]
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
wldcordeiro_ has quit [Ping timeout: 252 seconds]
r_baron has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nettoweb has joined #ruby
chills42 has joined #ruby
tkuchiki has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
phutchins has joined #ruby
Kallis has joined #ruby
khebbie has joined #ruby
chipotle has joined #ruby
tkuchiki has quit [Remote host closed the connection]
freezevee has joined #ruby
<jhass> shevy: also have a look at TOML for some more formalized ini
dionysus69 has quit [Ping timeout: 246 seconds]
tcopeland has quit [Quit: Leaving.]
tkuchiki has joined #ruby
Trieste has quit [Ping timeout: 268 seconds]
Neverdie has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
Trieste has joined #ruby
tkuchiki has quit [Remote host closed the connection]
chthon has joined #ruby
dhjondoh has joined #ruby
chipotle has quit [Ping timeout: 268 seconds]
khebbie has quit [Remote host closed the connection]
moeabdol has joined #ruby
rubie has joined #ruby
charliesome has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
lulzmachine has joined #ruby
Siyfion has joined #ruby
FernandoBasso has joined #ruby
khebbie has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
<shevy> ok
deg_ has joined #ruby
stamina has joined #ruby
scaceres has joined #ruby
<scaceres> hello guys, I need help
lampshades has joined #ruby
<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
<scaceres> when I do find naught, I get /var/lib/gems/2.1.0/gems/naught-1.1.0/lib/naught
<scaceres> so it is there, just that my app is not seeing it
<scaceres> I can see the /var/lib/gems/2.1.0 direcotry in gem paths when using `gem env`
<scaceres> any ideas why?
<scaceres> is it because its the wrong version?
drptbl has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
unholycrab has quit [Ping timeout: 240 seconds]
unholycrab has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
vdamewood has joined #ruby
platosha has quit [Quit: This computer has gone to sleep]
dotix has quit [Ping timeout: 240 seconds]
<adaedra> How did you install the gems from the Gemfile?
platosha has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kallis has quit [Remote host closed the connection]
brendan- has joined #ruby
fxn has quit [Ping timeout: 246 seconds]
zacts has quit [Ping timeout: 256 seconds]
zacts has joined #ruby
<[spoiler]> Am I the only one who's cracking up at the fact a gem called "naught" can't be found?
<[spoiler]> This is the best error message ever
<scaceres> adaedra: bundle install
but3k4 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[spoiler]> scaceres: how are you running your application?
<[spoiler]> scaceres: but yes the version mismatch might be the cause of your problems :/
<scaceres> [spoiler]: it's actually dashing, so just `dashing start`
<[spoiler]> and depends on how you're including naught, too
lampshades has quit [Remote host closed the connection]
syath has joined #ruby
<[spoiler]> scaceres: try `bundle exec dashing start` but since it installed the gems globally (I assume) it shouldn't really make a difference
howdoicomputer has joined #ruby
<[spoiler]> try just in case though
<jhass> scaceres: which exact command do you run your application with?
mrityunjay has quit [Quit: Leaving]
<jhass> oh, sorry too slow
<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.
<jhass> +1, try bundle exec dashing start
<scaceres> [spoiler]: tried `bunflr exec dashing start`, not working :/
<[spoiler]> bunflr :D
<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.
<scaceres> [spoiler]: I meant bundler :D
mary5030 has joined #ruby
<jhass> scaceres: on the same shell you successfully ran bundle install prior?
<[spoiler]> izzol: you should be able to pass in the IP
devoldmx has joined #ruby
ldnunes has joined #ruby
<[spoiler]> scaceres: try `bundle install --path .bundle` and then `bundle exec dashing start`
<scaceres> [spoiler]: oh duh I just realized my mistake
<scaceres> I feel like a moron
<scaceres> basically I wasn't using the gemfile.lock when installing the gems
<[spoiler]> You weren't? Doesn't bundler use that by default if it's present
<scaceres> yes it does, but I'm running it on a docker container while building
<scaceres> so I just copied the gemfile and ran the command
<[spoiler]> Oh!
<scaceres> layer 8 issue
krz has joined #ruby
greenarrow has quit [Quit: 500]
<izzol> [spoiler]: you right, I had a typo.
UtkarshRay has quit [Remote host closed the connection]
ldnunes_ has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
Gnomethrower has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
<Pathfinder> Hey guys, How do I authenticate to a FIX protocol
pawnbox has quit [Remote host closed the connection]
<[spoiler]> izzol: typos are the source of 80% of my bugs (statistics fake; apeiros will probably say it's higher)
pawnbox has joined #ruby
* apeiros doesn't know nothing about [spoiler]'s bugs
<[spoiler]> Pathfinder: first you need to create a BUG, then open an ISSUE and then you can FIX it
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
<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
<[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)
krz has quit [Ping timeout: 246 seconds]
<apeiros> [spoiler]: ah, I remember
<[spoiler]> :D
<Pathfinder> I am looking for pointers ... Like a FIX ruby hello world
khebbie has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
<[spoiler]> Pathfinder: that is FIX?
<[spoiler]> s/that/what
<scaceres> anyways, thank you all guys
iamninja_ has joined #ruby
<Pathfinder> Financial Information Exchange Protocol
<scaceres> you're great
* [spoiler] sighs.
<[spoiler]> ?guys scaceres
<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?
<Pathfinder> Its a protocol that is used by trading applications for communications.
<Pathfinder> Yes
iamninja has quit [Ping timeout: 272 seconds]
[k-_ has joined #ruby
terlar has joined #ruby
<[spoiler]> Pathfinder: oh no idea, to be honest. I googled and found this http://www.quickfixengine.org/
<bodgix> I'm playing with PTY::spawn. I've been struggling with this for some time now.
<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?
<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 :)
greenarrow has joined #ruby
<[spoiler]> Pathfinder: there's no documentation for that gem (that I can find) lol
<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
<[spoiler]> I have no idea, sorry. :/
timonv has joined #ruby
ndrei has joined #ruby
jenrzzz has joined #ruby
skade has joined #ruby
khebbie has joined #ruby
drptbl_ has joined #ruby
prestorium has joined #ruby
DoubleMalt has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
drptbl has quit [Ping timeout: 250 seconds]
<scaceres> ruboto: you're right. thank you everyone.
<scaceres> you're great (everyone)
jkldfhcx has quit [Quit: WeeChat 1.3]
Ropeney has joined #ruby
Ropeney has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
codenapp_ has joined #ruby
Salehi has quit [Remote host closed the connection]
codenapper has quit [Ping timeout: 255 seconds]
devdazed has joined #ruby
karapetyan has joined #ruby
sepp2k has joined #ruby
infoget has joined #ruby
nateberkopec has joined #ruby
infoget has quit [Quit: Leaving.]
infoget has joined #ruby
Coldblackice has quit [Ping timeout: 265 seconds]
<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?
karapetyan has quit [Ping timeout: 250 seconds]
<Ox0dea> infoget: One `&`, not 2.
<infoget> oh man, thanks, my inattention...
<Ox0dea> Happy to help.
ldnunes_ has quit [Quit: Leaving]
ldnunes has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Hounddog has quit [Remote host closed the connection]
JDiPierro has joined #ruby
victortyau has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rbennacer has joined #ruby
juanpablo_ has joined #ruby
jgt1 has joined #ruby
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
auzty has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
pol0 has joined #ruby
webguynow has joined #ruby
pawnbox has joined #ruby
JDiPierro has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 268 seconds]
codenapper has joined #ruby
lampshades has joined #ruby
codenapp_ has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
pawnbox has quit [Remote host closed the connection]
tkuchiki has joined #ruby
David27 has joined #ruby
znz_jp has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
pwnd_nfsw has joined #ruby
dotix has joined #ruby
tatsuo has joined #ruby
kedare has quit [Read error: Connection reset by peer]
chills42 has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
_liquid_ has quit [Ping timeout: 244 seconds]
y0da has joined #ruby
lampshades has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
diegoviola has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
inteq has quit [Remote host closed the connection]
tkuchiki has joined #ruby
iateadonut has joined #ruby
DEac- has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
DEac- has joined #ruby
dasher00 has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
yalue has joined #ruby
DoubleMalt has joined #ruby
oo_ has quit [Remote host closed the connection]
aswen has joined #ruby
JDiPierro has joined #ruby
camilasan has quit [Quit: No Ping reply in 180 seconds.]
daynaskully has left #ruby ["Leaving"]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
hinbody has joined #ruby
camilasan has joined #ruby
<scaceres> (quit
<scaceres> whoops
<scaceres> don't tell anyone about that
scaceres has quit [Quit: leaving]
tatsuo has quit [Remote host closed the connection]
<diegoviola> what are your thoughts on the crystal language?
iateadonut has quit [Quit: Leaving.]
skade has joined #ruby
tcopeland has joined #ruby
<apeiros> my thoughts are that jhass is excited by it
ruby-lang334 has joined #ruby
chipotle has joined #ruby
<diegoviola> I see, interesting
<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?
khebbie has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 252 seconds]
khebbie has joined #ruby
devoldmx has joined #ruby
malconis has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
ruby-lang334 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
s00pcan has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
<jhass> Crystal is written in Crystal and was bootstrapped from Ruby. Ruby has implementations in C, C++, Java & Python
<jhass> we sometimes borrow (adapt) some library code from Rubinius though
p0wn3d_ has joined #ruby
<diegoviola> jhass: interesting
<diegoviola> thanks
iamninja_ has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 264 seconds]
iamninja_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
webguynow has quit [Ping timeout: 252 seconds]
JoshL has joined #ruby
webguynow has joined #ruby
saddad has joined #ruby
pyon is now known as pyon-dense
timonv has quit [Quit: WeeChat 1.3]
timonv has joined #ruby
monod has quit [Quit: Sto andando via]
Siyfion has quit [Read error: Connection reset by peer]
Swappticon has joined #ruby
goodcodeguy has joined #ruby
CustosL1men has quit [Ping timeout: 265 seconds]
felixrsmith has joined #ruby
goodcodeguy has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
jordanm has joined #ruby
monod has joined #ruby
xaxisx has joined #ruby
Ketchy has joined #ruby
djbkd has joined #ruby
umgrosscol has joined #ruby
<shevy> crystal already has better docs than ruby :D :D :D
skade has quit [Quit: Computer has gone to sleep.]
<shevy> there are things I miss, such as "alias"
skade has joined #ruby
krz has joined #ruby
<adaedra> I remember a quote I read on a project README once
<jhass> we do have alias, it's only for types though :P
<adaedra> "Best documentation is the code"
<adaedra> I was o_o
<jhass> and crystal is just crystal, if you can read crystal you can read all of stdlib
jmarrec has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 256 seconds]
juanpablo_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> well, usually well experienced programmers can read code but beginners may find that very hard
chills42 has joined #ruby
lavros has joined #ruby
<adaedra> code, whenever it's badly or not written, is not an excuse not to document
<shevy> I write awesome code
<adaedra> Do you write awesome documentation?
<shevy> except when I write PHP code
<shevy> documentation is much harder than code
<adaedra> I write beautiful code in php.
<adaedra> <?php die("Don't use this.");
<shevy> you missed something!
<adaedra> what?
<shevy> :D
<shevy> does ruby have die?
juanpablo_ has quit [Ping timeout: 244 seconds]
<shevy> I think I remember perl code that used things such as "or die"
saddad has quit [Ping timeout: 250 seconds]
<jhass> shevy: sort of, Kernel::abort comes quite close
mcFactor has joined #ruby
whippythellama has joined #ruby
pietr0 has quit [Quit: pietr0]
webguynow has quit [Ping timeout: 252 seconds]
webguynow has joined #ruby
Pathfinder has quit [Ping timeout: 256 seconds]
<adaedra> there's exit
<adaedra> but there's no associated message
<adaedra> ew, "or die"
CustosL1men has joined #ruby
f4cl3y has joined #ruby
bigmac has joined #ruby
jhooker has joined #ruby
fmcgeough has joined #ruby
bigmac has left #ruby [#ruby]
i8igmac has joined #ruby
jdawgaz has joined #ruby
charliesome has joined #ruby
jdawgaz has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
elfuego has joined #ruby
tkuchiki has joined #ruby
charliesome has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
arashb has joined #ruby
sankaber has joined #ruby
goddamnwrongside has joined #ruby
chipotle has joined #ruby
goddamnwrongside has left #ruby [#ruby]
moeabdol has quit [Ping timeout: 264 seconds]
timonv has quit [Read error: Connection reset by peer]
dopamean_ has quit [Ping timeout: 240 seconds]
yottanami has quit [Ping timeout: 255 seconds]
p0wn3d_ has quit [Quit: WeeChat 1.3]
dima_ has joined #ruby
rbennacer has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
aganov has quit [Remote host closed the connection]
webguynow has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
ghoti has joined #ruby
webguynow has joined #ruby
Jardayn has joined #ruby
shinnya has joined #ruby
sw has joined #ruby
rodfersou has quit [Ping timeout: 264 seconds]
<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
<freezevee> how do you usually do this ?
<apeiros> pry -Ilib -rfile
<freezevee> git clone the repo in the folder that you work ?
youngbaks has joined #ruby
<apeiros> oh. one step earlier even…
p0wn3d_ has joined #ruby
<freezevee> what is the procedure ?
p0wn3d_ has quit [Client Quit]
jhooker has quit [Ping timeout: 264 seconds]
<apeiros> you're using a foreign gem X in your own gem Y?
hayricicek has joined #ruby
<freezevee> no
skade has quit [Quit: Computer has gone to sleep.]
Guest5 has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
<freezevee> for example let's say nokogiri
f4cl3y has quit [Ping timeout: 264 seconds]
<freezevee> I want to make some changes in the code and then submit a pull request
p0wn3d_ has joined #ruby
tvon has quit [Ping timeout: 272 seconds]
<freezevee> I will create a ruby file in my folder and then usually require 'nokogiri'
<freezevee> because it will have been installed by gem install nokogiri in the system's ruby gems path
<apeiros> well, then indeed pry -Ilib -rfile. though with native extensions I'm not really sure. probably just add another -Iext
webguynow has quit [Ping timeout: 272 seconds]
<freezevee> I 'm not sure I understand
<Cork> is there a way for a member method to check if a specific private method is defined? (in a class inheriting the class)
<apeiros> but with a gem like nokogiri, you're probably better off adding a test for your change
<apeiros> and then follow the gem's own guides on how to run the tests
<shevy> Cork perhaps via .respond_to?
webguynow has joined #ruby
<apeiros> >> respond_to?(:puts, true)
<Cork> shevy: on what?
<ruboto> apeiros # => true (https://eval.in/433467)
<apeiros> Cork: ^
<Cork> self.respond_to? will only list the public methods
<freezevee> sorry I don't get it
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> list?
<apeiros> Cork: that's why there's a second argument
<Cork> ah
skade has joined #ruby
duggiefresh has joined #ruby
<apeiros> (which is also mentioned in the docs)
<Cork> that was the peace i was missing! :)
<Cork> thx
iateadonut has joined #ruby
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
<apeiros> that's the test dir. it contains tests.
<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.
iateadonut has quit [Client Quit]
Neverdie has quit [Quit: http://radiux.io/]
<gregf_> Cork: are you the guy from #jquery? #offtopic i know
i8igmac has quit [Ping timeout: 255 seconds]
<Cork> gregf_: ya?
i8igmac has joined #ruby
<apeiros> gregf_: that's fine. can't ask them in #offtopic when they're not there :)
<shevy> we see people from here on different channels!
eGGsha has quit [Read error: Connection reset by peer]
<freezevee> apeiros: so you first write the test and then change the code ?
<freezevee> some kind of TDD ?
<Cork> gregf_: top, nicks are network unique ;)
<Cork> *tip
t0rc has joined #ruby
<gregf_> Cork: ;), sure
tubuliferous has quit [Quit: ZNC - http://znc.in]
iamninja_ is now known as iamninja
<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.
saddad has joined #ruby
youngbaks has quit [Read error: Connection reset by peer]
sw has quit [Quit: Leaving]
Hrorek has joined #ruby
nowhereFast has joined #ruby
<freezevee> apeiros: thank you
freezevee has quit []
<nowhereFast> I'd like a count of the same type of object in an array
<nowhereFast> is there a way to do this in a single step?
drptbl has joined #ruby
p0wn3d_ has quit [Quit: WeeChat 1.3]
<apeiros> nowhereFast: Array#count
<apeiros> or actually: yes :-p
<nowhereFast> took a look at that, but the objects are not text
<apeiros> nowhereFast: so?
bigbadbear has joined #ruby
p0wn3d_ has joined #ruby
<nowhereFast> so arr.count(Peanuts) < where Peanuts is the name of the class of the object would work?
monod has quit [Quit: Sto andando via]
<apeiros> Array#count is not limited to String objects. it actually has absolutely no specialization for Arrays of Strings
<apeiros> nowhereFast: no
<apeiros> you'll have to provide a block
<nowhereFast> and that block will perform some type of iter?
p0wn3d_ has quit [Client Quit]
<apeiros> nowhereFast: you do know how to access & read documentation?
nateberkopec has quit [Quit: Leaving...]
<apeiros> nowhereFast: „If a block is given, counts the number of elements for which the block returns a true value.“ - straight from the docs.
kobain has joined #ruby
p0wn3d_ has joined #ruby
eGGsha has joined #ruby
<nowhereFast> right, but my question was for a single step
<nowhereFast> I get you can do it with a block
chills42 has quit [Remote host closed the connection]
lsmola has quit [Ping timeout: 240 seconds]
suchness has joined #ruby
<nowhereFast> but I was more curious about whether ruby has another way
<Papierkorb> nowhereFast: no. use blocks.
<apeiros> nowhereFast: then maybe next time define "single step" and show us what you've already done.
tvon has joined #ruby
decoponio has joined #ruby
ramfjord has joined #ruby
tvon has quit [Client Quit]
tatsuo has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pyon-dense is now known as pyon-cps
blackmesa has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
xfbs has joined #ruby
codecop has quit [Remote host closed the connection]
Macaveli has joined #ruby
dopamean_ has joined #ruby
kies^ has joined #ruby
Neverdie has joined #ruby
timonv has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
freerobby has joined #ruby
chouhoulis has joined #ruby
tomchapin has joined #ruby
CustosL1men has quit [Ping timeout: 264 seconds]
i8igmac has quit [Ping timeout: 244 seconds]
arup_r_ has quit []
wldcordeiro_ has joined #ruby
elfuego has quit [Quit: elfuego]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
prestorium has quit [Quit: Konversation terminated!]
<adaedra> apeiros: nice quotation marks :)
centrx has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
aldodelgado has joined #ruby
<shevy> very stylish they are
andikr has quit [Remote host closed the connection]
nowhereFast has left #ruby [#ruby]
<apeiros> oh, I guess systemwide smart-quotes is on again :-/
camilasan has quit [Remote host closed the connection]
aldodelgado has quit [Client Quit]
lavros has quit [Quit: leaving]
xaxisx has quit [Quit: xaxisx]
goodcodeguy has joined #ruby
<adaedra> “so” ‘many’ «quotes»
saddad has quit [Ping timeout: 240 seconds]
<adaedra> I though German quotes were »…«
<adaedra> thought
wldcordeiro_ has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
nateberkopec has joined #ruby
tenderlove has joined #ruby
xaxisx has joined #ruby
B1n4r10 has joined #ruby
anjen has joined #ruby
nettoweb has joined #ruby
podman has joined #ruby
rubie has joined #ruby
<corpsicle> what actually happens when you compare two strings with > ?
bigmac has joined #ruby
<adaedra> &ri String#> String#<=> @corpsicle
<`derpy> corpsicle: http://www.rubydoc.info/stdlib/core/Comparable#%3E-instance_method, http://www.rubydoc.info/stdlib/core/String#%3C%3D%3E-instance_method
noodles`` has joined #ruby
<adaedra> mh, thought it was better explained
havenwood has joined #ruby
chills42 has joined #ruby
kedare has joined #ruby
<corpsicle> yea doesnt say anything specificly about strings does it?
<apeiros> corpsicle: basically it compares the codepoints
catcher has joined #ruby
<adaedra> the first one explains how > works basically, the second how <=> works for strings
khebbie has quit [Remote host closed the connection]
p0wn3d_ has quit [Quit: WeeChat 1.3]
<apeiros> or rather the bytes
hayricicek has quit [Ping timeout: 264 seconds]
<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
<centrx> >> "b" > "a"
<ruboto> centrx # => true (https://eval.in/433549)
hs366 has quit [Quit: Leaving]
<corpsicle> converting to int made it work like expected ... but it obviously must have worked before ... maybe just lucky? =P
<apeiros> corpsicle: well, that'll not do a numerical comparison
<corpsicle> yea exactly
<apeiros> just lucky, yes. nothing changed in that regard.
<adaedra> it's a basic string comparaison like
<adaedra> s/ like//
stankley has quit [Quit: rcirc on GNU Emacs 24.5.1]
<apeiros> "10" is < than "2", while 10 is > than 2
X-Jester has joined #ruby
<corpsicle> heh right, oh well. fixed now =)
<corpsicle> thanks
<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?
bigmac has quit [Ping timeout: 240 seconds]
<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
wildlander has joined #ruby
<apeiros> X-Jester: have you tried newer ruby versions too?
<adaedra> you should update your ruby tho
<X-Jester> apeiros: i haven't, we're baselined (cough...dod...cough) at 1.9.3
<adaedra> even if it's maybe not related
<X-Jester> i am running the latest patchlevel of 1.9.3
<adaedra> :x
<apeiros> X-Jester: might still be worth a try just to check whether it might be an issue in that version
infoget has quit [Quit: Leaving.]
hashrocket has joined #ruby
<X-Jester> apeiros: fair put, i'll give that a try first
drptbl has joined #ruby
drptbl has quit [Client Quit]
nateberkopec has quit [Read error: Connection reset by peer]
nateberkope has joined #ruby
k3asd` has joined #ruby
nateberkope has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
leat1 has joined #ruby
bigmac has joined #ruby
Swappticon has joined #ruby
rodfersou has joined #ruby
Pupeno_ has left #ruby [#ruby]
TheNet has joined #ruby
<TheNet> is there a method to return the first value of an array then rotate the array by 1?
webguynow has quit [Ping timeout: 240 seconds]
<apeiros> TheNet: I don't think so. but you can do it in two method calls.
webguynow has joined #ruby
roger_rabbit has quit [Ping timeout: 250 seconds]
inteq has joined #ruby
tjohnson has joined #ruby
<X-Jester> apeiros: no improvement on 2.2.2p95 :\
wca has joined #ruby
<X-Jester> and, fwiw, it is the latest net-scp gem
jas02 has quit [Quit: jas02]
ytti has left #ruby [#ruby]
ytti has joined #ruby
devoldmx has joined #ruby
jhooker has joined #ruby
<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.
wca has left #ruby [#ruby]
aldodelgado has joined #ruby
wca has joined #ruby
<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?
<TheNet> apeiros: a.rotate!.first ?
<apeiros> .last actually
<TheNet> oh yeah
<apeiros> otherwise you get the first element after rotating
t0rc has quit [Quit: WeeChat 1.3]
p0wn3d_ has joined #ruby
p0wn3d_ has quit [Client Quit]
lulzmachine has quit [Quit: Connection closed for inactivity]
<shevy> hmm what was the .map variant with index? was it .map.with_index ?
p0wn3d_ has joined #ruby
law__ has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
<havenwood> shevy: or map_with_index
<shevy> ah
<apeiros> that one does not exist havenwood
<apeiros> only each_with_index does
<havenwood> apeiros: oh, and that, hahaha
<havenwood> shevy: ^ I've had *zero* coffee, witness...
p0wn3d_ has quit [Client Quit]
webguynow has quit [Ping timeout: 265 seconds]
<shevy> lol
pyon-cps is now known as nyon
CustosL1men has joined #ruby
webguynow has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
p0wn3d_ has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
p0wn3d_ has quit [Client Quit]
Neverdie has quit [Quit: http://radiux.io/]
freerobby has joined #ruby
<havenwood> shevy: Here's a map_with_index, just the wrong lang >.> https://github.com/manastech/crystal/blob/master/src/enumerable.cr#L463-L471
drptbl has joined #ruby
drptbl has quit [Client Quit]
karapetyan has joined #ruby
<X-Jester> apeiros: will do, appreciate it. :)
p0wn3d_ has joined #ruby
marcoamo1 has quit [Ping timeout: 240 seconds]
Neverdie has joined #ruby
<shevy> yeah that is weird
<shevy> that we have a .each_with_index but not a .map_with_index
petricore has joined #ruby
rails588 has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
slayerjain has joined #ruby
nateberkopec has joined #ruby
<adaedra> havenwood: c|_|
p0wn3d_ has quit [Client Quit]
rails588 has quit [Client Quit]
wookiehangover has quit [Ping timeout: 246 seconds]
slayerjain has quit [Client Quit]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 256 seconds]
Macaveli has joined #ruby
X-Jester has quit [Quit: leaving]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
elfuego has joined #ruby
r_baron has joined #ruby
cschneid_ has joined #ruby
karapetyan has joined #ruby
djbkd has joined #ruby
wookiehangover has joined #ruby
webguynow has quit [Ping timeout: 260 seconds]
Neverdie has quit [Quit: http://radiux.io/]
webguynow has joined #ruby
<wca> anybody? :)
[Butch] has joined #ruby
diegoviola has joined #ruby
polishdub has joined #ruby
dfockler has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
TheNet has quit [Remote host closed the connection]
r0x0rZ has joined #ruby
Neverdie has joined #ruby
mbff has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<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?
djbkd has quit [Ping timeout: 265 seconds]
key_ has joined #ruby
jxv has joined #ruby
<mbff> can I list commands to be run when someone does CTRL-C for instance?
MichaelSmith has joined #ruby
<wasamasa> you can catch an exception and handle it
<mbff> wasamasa, good idea
DexterLB has joined #ruby
<wasamasa> somewhere on the top level ideally
<mbff> So would I need to wrap my entire app in a begin end block for SystemExit then?
arup_r has joined #ruby
<key_> ctrl-c is not an exception, i believe you will need to create a signal handler
FernandoBasso has quit [Quit: Leaving]
<mbff> that seems a little funky
howdoicomputer has quit [Ping timeout: 255 seconds]
<wasamasa> hm, maybe I was thinking of python then
<wasamasa> where I did indeed wrap the main function in a try-catch
<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
chipotle has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<key_> wasamasa: python works the same way as ruby, you create a signal handler
f4cl3y has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
<wasamasa> key_: well, you don't need to for C-d and C-c...
<mbff> I always see unicorn scripts that close activerecord and open again on startup. But I am using just using the normal pg gem.
k3asd` has quit [Ping timeout: 250 seconds]
Ropeney has joined #ruby
dfockler has quit [Quit: Leaving]
dmr8 has joined #ruby
graydot has joined #ruby
<adaedra> ^d is not a signal
dotix has quit [Ping timeout: 244 seconds]
jgt1 has quit [Ping timeout: 246 seconds]
rubie has quit [Remote host closed the connection]
graydot has quit [Client Quit]
bigmac has joined #ruby
rubie has joined #ruby
banister has joined #ruby
<hfp> Do you bump a gem's version when adding a homepage and editing the description in a gemspec file?
wca has left #ruby [#ruby]
zacts has quit [Quit: leaving]
icbm has joined #ruby
mary5030 has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
mary5030 has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
mary5030 has joined #ruby
alex88 has quit []
mary5030 has quit [Remote host closed the connection]
leat1 has quit [Ping timeout: 256 seconds]
mleung has joined #ruby
mary5030 has joined #ruby
t3rm has joined #ruby
<shevy> well strictly speaking you should make a change to the ruby code
<shevy> but in this case, just make a minor bump gem version release
TheNet has joined #ruby
<hfp> shevy: Thanks, that's what I thought
nettoweb has quit [Read error: Connection reset by peer]
leat1 has joined #ruby
chipotle has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
ngscheurich has joined #ruby
kedare has quit [Quit: Bye!]
slayerjain has joined #ruby
zacts has joined #ruby
tatsuo has quit [Remote host closed the connection]
slayerjain has quit [Client Quit]
<shevy> gem build *.gemspec
<shevy> ruby: symbol lookup error: /usr/lib/libssl.so.1.0.0: undefined symbol: EVP_idea_cbc
<shevy> I'll collect the most exotic errors!
jaequery has joined #ruby
msankhala has quit [Quit: This computer has gone to sleep]
last_staff has quit [Quit: last_staff]
xaxisx has quit [Quit: xaxisx]
chipotle has quit [Read error: Connection reset by peer]
TheNet has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
xaxisx has joined #ruby
dmr8 has quit [Quit: Leaving]
stan has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
bigmac has quit [Ping timeout: 268 seconds]
dfockler has joined #ruby
yardenbar has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Client Quit]
leat1 has quit [Ping timeout: 264 seconds]
wildlander has quit [Quit: Saliendo]
shinnya has quit [Ping timeout: 264 seconds]
SuMo_D has joined #ruby
<shevy> oh sneaky... it was a problem in libcrypto.so.1.0.0 rather than libssl
SuMo_D has quit [Client Quit]
amoeba` has left #ruby ["Textual IRC Client: www.textualapp.com"]
lkba has joined #ruby
Mia has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Dzejmskrokan has joined #ruby
vdamewood has quit [Quit: Life beckons.]
nettoweb has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
nettoweb has joined #ruby
devoldmx has joined #ruby
webguynow has quit [Ping timeout: 268 seconds]
allomov has quit [Remote host closed the connection]
webguynow has joined #ruby
TheNet has joined #ruby
<BraddPitt> can anyone recommend a library for securely encrypting passwords? Is bcrypt/gibberish fine enough?
rippa has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<Ox0dea> BraddPitt: Do you have a reason to prefer bcrypt over scrypt?
hahuang65 has quit [Ping timeout: 250 seconds]
slackbotgz has joined #ruby
yardenbar has joined #ruby
DoubleMalt has joined #ruby
y_gick has quit [Quit: WeeChat 1.1]
senayar has quit [Read error: Connection reset by peer]
senayar_ has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
<BraddPitt> just familiarity
<Ox0dea> BraddPitt: Well, do read up on scrypt's advantages if you've got the time, but bcrypt should do just fine.
<Papierkorb> BraddPitt: bcrypt is good, PBKDF2 is also good. Some claim that PBKDF2 is better.
slayerjain has joined #ruby
bmurt has joined #ruby
<adaedra> wait, we're not hashing passwords with md5 anymore?
<adaedra> :p
slayerjain has quit [Max SendQ exceeded]
<Ox0dea> I use `scrypt(md5(md5(md5(secret))))`.
n008f4g_ has joined #ruby
<ytti> i still want xor(hash1(secret), hash2(secret))
<Ox0dea> It's like 3DES but worse.
<ytti> done by someone with cursory understanding in crypto
Dzejmskrokan has quit []
bmurt has quit [Client Quit]
jgt1 has joined #ruby
godfat1 has quit [Quit: Leaving.]
greenarrow has quit [Quit: 500]
godfat has joined #ruby
Alayde has joined #ruby
bl4ckpajamas has joined #ruby
TheNet has quit [Ping timeout: 268 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
choke has joined #ruby
anisha has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 250 seconds]
dotix has joined #ruby
dotix has joined #ruby
JimmyNeutron has quit [Read error: Connection reset by peer]
<Ox0dea> ytti: I don't think computer security should be done by actual wizards.
bl4ckpajamas has quit [Client Quit]
<Ox0dea> Some of Gringotts' policies were a little barbaric.
mbff has quit [Ping timeout: 246 seconds]
<ytti> Ox0dea, i was asking for person with cursory undestandidng in crypto
webguynow has quit [Ping timeout: 240 seconds]
<ytti> there may be something between that person an a wizard
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea> ytti: "Cursory" here meaning "of or relating to the casting of curses", no?
symm- has joined #ruby
mleung has quit [Quit: mleung]
araujo has quit [Ping timeout: 264 seconds]
webguynow has joined #ruby
chipotle_ has joined #ruby
bahar_ has quit [Ping timeout: 265 seconds]
skade has joined #ruby
TheNet has joined #ruby
<ytti> Ox0dea, no :)
<Ox0dea> Sorry; English is not my zeroth language.
TheNet has quit [Remote host closed the connection]
<BraddPitt> thank you both Ox0dea and Papierkorb
chipotle has quit [Ping timeout: 255 seconds]
pawnbox_ has quit [Remote host closed the connection]
senayar_ has quit []
law__ has quit [Quit: Leaving]
symm- has quit [Ping timeout: 268 seconds]
diegoviola has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
araujo has joined #ruby
sayan has joined #ruby
sayan is now known as Guest11573
r0x0rZ has quit []
Guest11573 has quit [Read error: Connection reset by peer]
sayan_ has joined #ruby
pawnbox has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
bricker has joined #ruby
JDiPierro has joined #ruby
webguynow has quit [Ping timeout: 255 seconds]
felixrsmith has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
felixrsmith has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
amclain has joined #ruby
<shevy> huh
UtkarshRay has quit [Ping timeout: 246 seconds]
<shevy> >> x = 'foo'; alias y x; puts y
<ruboto> shevy # => undefined method `x' for class `Object' (NameError) ...check link for more (https://eval.in/433658)
towski_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
diego4 has joined #ruby
mary5030 has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<shevy> hmmmm
<shevy> I found old code from me... not verbatim, but along these lines here: $hash = { cat: 'tom'}; alias $h $hash
<Ox0dea> >> Symbol.all_symbols.grep(/#set_v/) # shevy
<ruboto> Ox0dea # => [:"core#set_variable_alias"] (https://eval.in/433662)
diego4 has quit [Changing host]
diego4 has joined #ruby
diego4 is now known as diegoviola
<Ox0dea> On Rubies where you can still get hold of RubyVM::FrozenCore's singleton class, you can invoke that method to do variable aliasing.
<shevy> is this useful to have?
<Ox0dea> Didn't you just want it?
<shevy> not that I am aware of
<Ox0dea> Why the "huh" before you posted that snippet?
<shevy> I am trying to find out why I was using alias there
infoget has joined #ruby
<shevy> perhaps it would work!
<Ox0dea> shevy: I've been informed by a certain someone that aliasing global variables is permitted.
leafybasil has quit [Remote host closed the connection]
<shevy> hmm
leafybasil has joined #ruby
<shevy> very strange
elperdut has joined #ruby
rbennacer has quit [Remote host closed the connection]
<shevy> is there a functional difference between: alias $f $foo versus $f = $foo ?
<Ox0dea> None I can think of.
slackbotgz has quit [Remote host closed the connection]
<shevy> ah well... I guess tim toady strikes again
chills42 has quit [Remote host closed the connection]
rakm has joined #ruby
webguynow has quit [Ping timeout: 255 seconds]
saddad has joined #ruby
webguynow has joined #ruby
moeabdol has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
<Ox0dea> >> $m = 2; alias $o $m; $v = $m; $m = 1; [$v, $o] # the whisperer's demonstration of the crucial difference
<ruboto> Ox0dea # => [2, 1] (https://eval.in/433675)
mordocai has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
<zacts> hi rubyists
<adaedra> hi zacts
jaequery has quit [Client Quit]
rakm has quit [Client Quit]
nettoweb has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 264 seconds]
webguynow has quit [Ping timeout: 264 seconds]
moeabdol has quit [Ping timeout: 246 seconds]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
webguynow has joined #ruby
nettoweb has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
rakm has joined #ruby
karapetyan has quit [Remote host closed the connection]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
lkba has joined #ruby
karapetyan has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
freerobby has quit [Quit: Leaving.]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
khebbie has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
dotix has quit [Ping timeout: 246 seconds]
chthon has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Leaving...]
<shevy> I see
yfeldblum has joined #ruby
sonOfRa has quit [Max SendQ exceeded]
chipotle has joined #ruby
noodles`` has quit [Quit: WeeChat 0.4.1]
I has joined #ruby
sonOfRa has joined #ruby
I has quit [Client Quit]
dopie has joined #ruby
paulcsmith has joined #ruby
<dfockler> I see as well
drewo has joined #ruby
FernandoBasso has joined #ruby
wldcordeiro has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
rbowlby has joined #ruby
rbennacer has joined #ruby
c0m0 has quit [Ping timeout: 255 seconds]
naftilos76 has quit [Ping timeout: 250 seconds]
<Ox0dea> It must've worked on Charlie's machine at some point, but I wonder what's going on there.
khebbie has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
diego4 has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
chipotle has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
PaulCapestany has joined #ruby
nateberkopec has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
rdark has quit [Quit: leaving]
diego4 has quit [Client Quit]
aldodelgado has quit [Quit: aldodelgado]
chipotle has quit [Read error: Connection reset by peer]
pragmatism has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
tom_lowndes has joined #ruby
karapetyan has joined #ruby
ta has quit [Remote host closed the connection]
chipotle has joined #ruby
diego4 has joined #ruby
diego4 has quit [Changing host]
diego4 has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
Taranis has joined #ruby
saddad has quit [Ping timeout: 252 seconds]
infoget has quit [Read error: Connection reset by peer]
kidoz has joined #ruby
infoget has joined #ruby
moeabdol has joined #ruby
nettoweb has joined #ruby
infoget has quit [Read error: Connection reset by peer]
infoget has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
fostertheweb has joined #ruby
splud has joined #ruby
firstdayonthejob has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
splud has quit [Client Quit]
ndrei has joined #ruby
dasher00 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
scpike_ has quit [Quit: leaving]
scpike has joined #ruby
sayan_ has quit [Ping timeout: 240 seconds]
skade has joined #ruby
dfockler has quit [Remote host closed the connection]
skade has quit [Client Quit]
CustosL1men has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
bigmac has joined #ruby
last_staff has joined #ruby
Swappticon has joined #ruby
dfockler has joined #ruby
pandaant has quit [Remote host closed the connection]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
dopamean_ has quit [Ping timeout: 268 seconds]
xfbs has quit []
xfbs has joined #ruby
karapetyan has quit [Remote host closed the connection]
lkba_ has joined #ruby
siemprefresco has joined #ruby
rcvalle has joined #ruby
Ketchy has quit [Quit: Leaving]
nettoweb has quit [Ping timeout: 264 seconds]
xfbs has quit [Client Quit]
ramfjord has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
vipaca has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
darkf has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
hanmac has joined #ruby
niemcu has joined #ruby
chills42 has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 264 seconds]
dmolina has quit [Quit: Leaving.]
bigmac has quit [Ping timeout: 265 seconds]
CustosL1men has joined #ruby
dstarh has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.3-dev]
blaxter has quit [Quit: foo]
choke has joined #ruby
bigmac has joined #ruby
Lucky__ has joined #ruby
webguynow has quit [Ping timeout: 264 seconds]
skullcrasher has quit [Remote host closed the connection]
TheNet has joined #ruby
f4cl3y has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dstarh has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
drewo has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
mary5030 has joined #ruby
TheNet has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
<shevy> dfockler we both see!
<shevy> ack
<shevy> what devil is RubyVM::FrozenCore
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dfockler> Is that the new immutable strings stuff?
codenapper has joined #ruby
<shevy> Ox0dea does not like it
<Ox0dea> It's worth the watch.
AlexRussia has joined #ruby
<Ox0dea> I do like FrozenCore; I just don't like that nobu has made it ever harder to properly access it.
JDiPierro has joined #ruby
<Ox0dea> It just doesn't feel in line with "the Ruby way".
<shevy> yeah well
TheNet has joined #ruby
<shevy> nobu ain't matz!
<shevy> hey
<shevy> nobody ain't matz!!!
<shevy> who was nobody
<shevy> ?jhass
<ruboto> jhass is anybody. They're a member of the op staff in #ruby, contributor to ruboto and ruby-community.com
<shevy> hmm
freerobby has quit [Quit: Leaving.]
pietr0 has joined #ruby
freerobby has joined #ruby
codecop has joined #ruby
d5sx43 has joined #ruby
deg_ has quit [Read error: No route to host]
d5sx43 has quit [Client Quit]
TheNet has quit [Remote host closed the connection]
vickleton has joined #ruby
havenwood has joined #ruby
<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
dpp has joined #ruby
<nofxx> shevy, if x && true, also reads better?
<shevy> yeah sure but this is how it's done everywhere
<shevy> I want to know why ruby has the additional variant
<Ox0dea> shevy: Post-conditionals can be attached to any expression in just about every language in which they're supported.
<Ox0dea> Perl comes to mind.
ramfjord has joined #ruby
<shevy> perl had this feature?
<Ox0dea> Indeed.
<Ox0dea> Still does, of course.
<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)?
<shevy> dpp a .gem file
<Ox0dea> dpp: You don't have to use rubygems.org to distribute a gem.
TheNet has joined #ruby
<dpp> and is it generally OK to have that gem produce the link in /usr/bin as well?
<Ox0dea> dpp: Are you expecting users not to have a Ruby environment, then?
kies^ has quit [Ping timeout: 246 seconds]
<nofxx> shevy, I'm against if like that, but I'm pro end.map end.reduce etc... (which rubocops doesn't like)
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dpp> no, the objective is just to have a clean way to distibute some command line tools
<dpp> my other option is to pack them into an RPM file, but that seems wrong.
dopamean_ has joined #ruby
<shevy> dpp what do you mean with "OK", do you have a problem with it? if not then it's ok of course :D
<nofxx> dpp, I would say curl ftw!
<Ox0dea> dpp: Just package $thing as a gem and change the source in the Gemfile.
<nofxx> dpp, think homebrew install way
siemprefresco has joined #ruby
<shevy> you could also bundle all other gems into a giant gem that requires all the other ones!
spider-mario has joined #ruby
drewo has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mwlang has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
agent_white has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
<Bish> can i somehow create tables from an sequel model?
<Bish> or is this not wanted for some reason / is it only there to do associations
davedev24 has joined #ruby
linux_dr has joined #ruby
infoget has quit [Quit: Leaving.]
bougyman has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
last_staff has quit [Ping timeout: 265 seconds]
mary5030_ has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
agent_white has quit [Client Quit]
<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
agent_white has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
marr has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
n008f4g_ has joined #ruby
hayricicek has joined #ruby
kappy has quit [Quit: leaving]
Ox0dea has quit [Disconnected by services]
TheNet has quit [Remote host closed the connection]
Ox0dea has joined #ruby
suchness has quit [Remote host closed the connection]
<linux_dr> shev: thanks… good catch
<shevy> I assume the code is ok otherwise
<shevy> if it were my code I'd get rid of the @@ but it's probably not necessary
<linux_dr> It works… but it’s tying into some Vagrant event-soup that I’d love to make immensely simpler. :-/
polishdub has quit [Quit: Leaving]
d5sx43 has joined #ruby
<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.
kidoz has quit [Quit: Ухожу я от вас]
ta has joined #ruby
<linux_dr> (unless I can parameterize the class itself?)
d5sx43 has quit [Client Quit]
fantazo has joined #ruby
agent_white has left #ruby [#ruby]
failshell has joined #ruby
agent_white has joined #ruby
<linux_dr> I did want to keep the manifest (data) distinct from the rest of the code.
nanoz has joined #ruby
polishdub has joined #ruby
<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
webguynow has quit [Ping timeout: 268 seconds]
webguynow has joined #ruby
<shevy> but it would actually lead to more code in your case, so probably @@ is better
dionysus69 has joined #ruby
bampersand has joined #ruby
<Ox0dea> cyberweb-0.0.140 $ grep -R @@ | wc -l
<Ox0dea> 14
<Ox0dea> Naughty, naughty.
TheNet has joined #ruby
staticat has joined #ruby
ndrei has joined #ruby
<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.
bb010g has joined #ruby
TheNet has quit [Remote host closed the connection]
<linux_dr> shevy: do you see anything I’m doing that’s overly wasteful or needlessly verbose?
<shevy> Ox0dea yeah - copy/paste from ruby cgi stdlib
<shevy> linux_dr dunno, I don't know vagrant. You also have like no docu!
poli_ has quit [Ping timeout: 264 seconds]
<shevy> oh I know what
TheNet has joined #ruby
<shevy> exec "vagrant #{ARGV.join(' ')}"
<linux_dr> I, for instance, don’t like the way I translate between :required, :prohibited / :install, :uninstall / 'Installing’, 'Removing' / 'Installation’, 'Removal'
pawnbox has quit [Remote host closed the connection]
<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
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
Lovich has joined #ruby
bougyman has joined #ruby
baweaver has joined #ruby
<shevy> Ox0dea I'd wish they would integrate https://rubygems.org/gems/exceptions into default ruby cgi :(
<shevy> oh wait
<shevy> I think that is the wrong one lol
<Lovich> hey guys, question
<shevy> oh right... similar name https://rubygems.org/gems/cgi-exception/
<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.
linuxboytoo has quit [Remote host closed the connection]
<shevy> unfortunately that one uses at_exit ... I am really not liking at_exit much at all
leat1 has joined #ruby
<shevy> Lovich where is the question
linuxboytoo has joined #ruby
hayricicek has quit [Ping timeout: 250 seconds]
luksaur has joined #ruby
jhooker has quit [Ping timeout: 240 seconds]
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoul_ has joined #ruby
<havenwood> !kick Lovich please don't troll
Lovich was kicked from #ruby by ruboto [please don't troll]
kies^ has joined #ruby
<linux_dr> shevy: is there a way to go from an array to an arguments list?
Lovich has joined #ruby
<Ox0dea> linux_dr: You want the splat operator.
<Ox0dea> >> def add a, b, c; a + b + c; end; foo = [1, 2, 3]; add(*foo) # linux_dr
<ruboto> Ox0dea # => 6 (https://eval.in/433858)
wildlander has joined #ruby
<Ox0dea> shevy: Hm, what's wrong with at_exit?
<Ox0dea> It's how, for instance, many testing libraries provide such nice interfaces.
Guest5 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
valeness has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
<Lovich> saying guys is apparently trolling now
<Lovich> interesting
<havenwood> !ban Lovich !T 1h trolling
Lovich was banned on #ruby by ChanServ [Lovich!*@*]
Lovich was kicked from #ruby by ChanServ [Banned: trolling]
<linux_dr> shevy: so something like: exec( *[ ‘vagrant’, *ARGV ] ) would be legal?
yfeldblum has quit [Ping timeout: 246 seconds]
leat1 has quit [Ping timeout: 264 seconds]
<eam> linux_dr: yes
Demetrio has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<Demetrio> Hi. :D
bampersand has quit [Read error: Connection reset by peer]
<Ox0dea> Hey, Demetrio.
<eam> linux_dr: you don't need the *[] though
sufyan` has joined #ruby
sufyan has quit [Ping timeout: 246 seconds]
<linux_dr> so just exec ‘vagrant’, *ARGV ??
<eam> linux_dr: if you want to reliably avoid a shell, try something like this: https://gist.github.com/eam/b5c46ecabc49dcff0170
<eam> linux_dr: yes that works
<Demetrio> so guys
kidoz has joined #ruby
<eam> however if ARGV == [] and 'vagrant' is instead a string with shell metachars you may still invoke a shell
<eam> the above noshell_exec function is the only way to guarantee you don't run a shell
chipotle has joined #ruby
<havenwood> Demetrio: Have a Ruby question?
cndiv has joined #ruby
<shevy> lol
<Demetrio> Sorry, between this and work.
TheNet has quit [Read error: Connection reset by peer]
<Ox0dea> Don't let it fool ya.
<shevy> the banhammer is wielded already!
kostiak has quit [Ping timeout: 246 seconds]
<Ox0dea> The pyre is nice and warm.
<shevy> and this time he had enough coffee
leat1 has joined #ruby
<Ox0dea> Go on, havenwood. Show us your boomstick.
<shevy> otherwise his aim may not be perfect
User458764 has joined #ruby
<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.
<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
Demetrio is now known as Demetrio_
<eam> all the ruby is scrolling off my screen :(
Zai00 has quit [Quit: Zai00]
Demetrio_ has left #ruby [#ruby]
sousvide has quit [Ping timeout: 246 seconds]
<Ox0dea> cndiv: Read POODR. ;)
opensource_ninja has joined #ruby
<Ox0dea> Not being entirely facetious, mind.
<cndiv> POODR?
<baweaver> Practical Object Oriented Design in Ruby
SCHAAP137 has quit [Quit: Leaving]
<cndiv> baweaver: That's a very practical answer, looking that up...
TheNet has joined #ruby
<havenwood> !ban Lovich !P repeated trolling
<ruboto> havenwood, could not find a matching user for "Lovich"
kirun has joined #ruby
getDrunk has joined #ruby
<cndiv> baweaver: Ha, that's exactly what I'm looking for. Is this is a popular title in the Ruby universe?
<linux_dr> eam: can you look at my gist and suggest any ways I can simplify it? https://gist.github.com/loren-osborn/06a6e8a95a235266dcdf
<shevy> cndiv that's a rather general question. I think it depends a lot on how big the given project is
<baweaver> indeed it is
fostertheweb has joined #ruby
<shevy> for small code, or smaller changes, I usually need to change only one line, or perhaps add one or two new methods
<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
getDrunk is now known as Demetrio
<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.
Demetrio has left #ruby [#ruby]
Ox0dea has quit [Read error: Connection reset by peer]
<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
Ox0dea has joined #ruby
sheperson has joined #ruby
<sheperson> Hi
stamina has quit [Ping timeout: 250 seconds]
<havenwood> sheperson: hi
<baweaver> sheperson: alo
<shevy> lol
<shevy> the nick
<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.
<cndiv> *an online course, I mean
<shevy> no
<cndiv> why's that
<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
<shevy> try to give things a name as to what they can do
<shevy> you can think of methods as designations what the specific class should do
<shevy> class BuildDam
<baweaver> sheperson: Just use IO.readlines
<sheperson> when the file is valid, I return yield the parsed lines
<shevy> baweaver uses this class to build a dam
<sheperson> I wonder what should I do when the file is not valid?
<baweaver> tag a conditional on the end to check if the file exists
rakm has joined #ruby
<cndiv> Can I think of classes as verbs?
<baweaver> raise an error
<baweaver> cndiv: nouns, you're thinking FP
<shevy> cndiv well, class House ... class Car ... don't think these be verbs
hayricicek has joined #ruby
<baweaver> in which you tend to describe something in the terms of the actions you can perform on it.
<cndiv> baweaver: Sorry, should know, FP?
bigmac has joined #ruby
<eam> linux_dr: I didn't read too close, but I always worry whenever Hash is used with {}
<eam> recommend using a method for that probably
<baweaver> cndiv: ruby is a mix between the two
<sheperson> baweaver: raise and error?
<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
<baweaver> OO and FP
dotix has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
<sheperson> :-|
TheNet has quit [Remote host closed the connection]
<cndiv> baweaver: Ah, Ruby is my first language. Functional programming is outside of my mind right now.
<Ox0dea> cndiv: Too bad. :P
<baweaver> too many people make it out as some big complicated thing, it's really not.
leat1 has quit [Remote host closed the connection]
<cndiv> Ox0dea: not forever, just for the moment
<baweaver> cndiv: you know blocks in ruby?
grenierm has joined #ruby
<Ox0dea> ^
<nofxx> exactly. You're doing something FP and don't even know cndiv
<cndiv> baweaver: Not yet, no.
<linux_dr> eam: I’m pretty unfamiliar with Ruby… I’m not sure what exactly you’re refering to
<nofxx> a module self.method for instance
<baweaver> >> (1..10).map { |i| i * 2 }
<ruboto> baweaver # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/433866)
Soda has joined #ruby
<baweaver> that's a block
TheNet has joined #ruby
<baweaver> and a block is a function. You passed a function, functional programming
* baweaver ducks in anticipation of pedants
JoshL_ has joined #ruby
valeness has left #ruby [#ruby]
DLSteve has joined #ruby
<linux_dr> baweaver: pedantics? Like a lambda is, and is not a function? ;-) lol
gix has joined #ruby
<Ox0dea> linux_dr: How is a lambda not a function?
<baweaver> like 'ruby is not a functional language in any way' types
<baweaver> the same which say haskell isn't pure, but anyways, I digress.
SCHAAP137 has joined #ruby
<linux_dr> Ox0dea: mostly in it’s being anonymous, but most languages have anonymous functions…
dotix has quit [Ping timeout: 264 seconds]
unholycrab has quit [Ping timeout: 264 seconds]
<tubbo> my program functions. functional programming.
<linux_dr> tubbo: lol
xfbs has joined #ruby
<tubbo> as opposed to all this non-functional programming you people are apparently doing
<Ox0dea> > Words mean what I say they mean.
JoshL__ has joined #ruby
JoshL_ has quit [Read error: Connection reset by peer]
doddok has joined #ruby
tvw has quit [Remote host closed the connection]
JoshL has quit [Ping timeout: 260 seconds]
<shevy> cndiv don't get confused, keep things simple. it's a good strategy
<sheperson> @baweaver If I raise an error, how should I write the spec to check for that?
* linux_dr imagines the amused specter of Lewis Carol wafting into the channel… lol
speakingcode is now known as money2burn
<sheperson> I know how spec a yield and how to spec an error
<baweaver> expect { something }.to raise('error')
<sheperson> but together, I have no idea!
<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.
<sheperson> but it’s #each and should be passed a block
<Ox0dea> cndiv: Many methods are arguably "adjectives".
TheNet has quit [Quit: Leaving...]
<Ox0dea> Array#size, as an example.
<cndiv> Ox0dea: can anything be characterized as a "verb" then?
<Ox0dea> cndiv: Array#each, I'd argue.
<cndiv> Ox0dea: not quite there yet, but I'm taking notes.
unholycrab has joined #ruby
xfbs has quit []
roger_rabbit has joined #ruby
havenn has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<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.
havenwood has quit [Ping timeout: 244 seconds]
Guest34844 has joined #ruby
dtzitz has joined #ruby
JoshL__ has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
<cndiv> linux_dr: Guideposts are good for me at this point. I won't take it as 1000% literal, always.
<cndiv> thanks
<Ox0dea> linux_dr: We don't say `foo.get_property` in Ruby, of course.
<cndiv> Ox0dea: I get how they could be more 'adjectives' as well.
<Ox0dea> cndiv: "Adjectiva" is the word you wanted there.
<Ox0dea> *Adjectival
<Ox0dea> It's not one you get to use terribly often.
<cndiv> Ox0dea: Ha, really?
minimalism has joined #ruby
<Ox0dea> cndiv: "Adjectival" is the adjectival form of "adjective", yes. :P
<cndiv> Ox0dea: Also, why wouldn't you say 'foo.get_property' in Ruby?
<Ox0dea> cndiv: Because we just say `foo.property`.
<linux_dr> Ox0dea: I am an experiencied developer, but I know almost nothing about Ruby…
* cndiv mind blown
shadoi has joined #ruby
leat1 has joined #ruby
<Ox0dea> Also "shrieval" is the adjectival form of "sheriff", because English is bonkers.
jenrzzz has joined #ruby
User458764 has joined #ruby
<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]
nettoweb has joined #ruby
hayricicek has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
User458764 has quit [Client Quit]
<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()?
<cndiv> Ox0dea: So what about 'property' implies that you're 'getting' anything? What implies the action? I would have expected something like "property_get"
<Ox0dea> linux_dr: Yes, that's right.
<shevy> cndiv you can name the method that way, and use "alias" to refer to the main method that does it
<Ox0dea> linux_dr: But the difference kind of breaks the "verb" analogy, don't you feel?
nettoweb has quit [Client Quit]
Juanchito has quit [Quit: Connection closed for inactivity]
<shevy> so you can use set_property; you can use an alias called property_set, and you can use .property=
<Ox0dea> cndiv: In the end, it's just a convention that makes a great deal of sense.
bigmac has quit [Ping timeout: 268 seconds]
dima_ has quit [Quit: This computer has gone to sleep]
<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?
<Ox0dea> linux_dr: Ruby just doesn't make much of a distinction between methods and "actual" properties, so the line is considerably blurred.
blik71 has joined #ruby
<Bish> can i tell irb to remain active after script execution?
<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.
drewo has quit [Ping timeout: 264 seconds]
<Bish> when doing 'irb <script>'
<linux_dr> Ox0dea: Yes… I get that… I was trying to give cndiv a frame of reference...
freerobby has quit [Quit: Leaving.]
dionysus69 has quit [Ping timeout: 256 seconds]
fantazo has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
<linux_dr> cndiv: we were saying that classes map (roughly) to nouns… right?
freerobby has quit [Client Quit]
universa1 has quit [Ping timeout: 246 seconds]
sfr^ has quit [Ping timeout: 246 seconds]
<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?
freerobby has joined #ruby
<Ox0dea> Bish: irb -r ./script
linc01n has quit [Ping timeout: 246 seconds]
freerobby has quit [Client Quit]
larissa has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
<Bish> oh ofcourse, didn't think of that
<blik71> e.g Class.new(x,y,z,function(file), function(file))
<Ox0dea> blik71: You'll need to rewind the file.
leat1 has quit [Remote host closed the connection]
<Ox0dea> The cursor is probably at the end by the time you've processed the file with the first method.
ndrei has quit [Ping timeout: 255 seconds]
<blik71> *function1(file), *function2(file)
<blik71> how do i rewind the file
khebbie has quit [Remote host closed the connection]
freerobby has quit [Read error: No route to host]
<Ox0dea> >> File.instance_method(:rewind)
<ruboto> Ox0dea # => #<UnboundMethod: File(IO)#rewind> (https://eval.in/433893)
freerobby has joined #ruby
universa1 has joined #ruby
larissa has joined #ruby
sfr^ has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
sleungcy has joined #ruby
<shevy> cndiv so your editor influences you? :D
elperdut has quit [Ping timeout: 240 seconds]
linc01n has joined #ruby
<shevy> it's why I abandoned vim in the end
<Ox0dea> Pfft.
brendan- has joined #ruby
<shevy> a vimster!
leat1 has joined #ruby
<Ox0dea> You abandoned Vim because it negatively influenced your code?
<shevy> no
<shevy> my brain
<shevy> I wouldn't let vim touch my code
freezevee has joined #ruby
<momomomomo> I use vim for everything from ruby to go to haxe
<momomomomo> to scala
<momomomomo> not java though
yfeldblum has joined #ruby
<cndiv> shevy: Yes, actually. haha.
<shevy> why not java?
<blik71> what does the code do per say 0x0dea?
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<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 ?
<nofxx> shevy, 2. the first and only time in my life I punched the screen
<momomomomo> using java dependencies is infrequent when I'm using scala (mostly for map/reduce)
<shevy> nofxx your poor screen man! I hope you don't have a cat :D
<havenn> freezevee: On your RVM Ruby: gem install passenger
<momomomomo> for String.x.y.z.j.a.b.c implements a, z b f, I like an IDE
havenn is now known as havenwood
<shevy> whoa that's a lot of redirection
elperdut has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bricker> not using an IDE for Java would be a really inefficient way to write Java
<momomomomo> that's java
<shevy> java is the top language at tiobe
<momomomomo> because of universities
<momomomomo> also, tiobe != real world
<dfockler> because of business
HAL2328 has joined #ruby
<nofxx> shevy, german shepperd... that thing is a war tank. Punch == 'he loves me and wants to play now'
khebbie has joined #ruby
<momomomomo> the business -> education sectors are in a loop
xfbs has joined #ruby
<momomomomo> it's feedback
newguy1 has joined #ruby
<freezevee> havenwood: done that
<dfockler> business wants butts, school makes the butts
<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
<freezevee> havenwood: rvm --default 2.2
yfeldblum has quit [Remote host closed the connection]
<freezevee> and ruby -v = 2.2
<havenwood> freezevee: What do you get for?: gem which passenger
<Ox0dea> blik71: To clarify, you're passing actual File objects into those methods, right? Not filenames?
jaequery has joined #ruby
<tubbo> shevy: what editor do you use now?
<havenwood> shevy: Yet they still have Ruby and hire Ruby devs.
<momomomomo> dat JVM doe
<freezevee> havenwood: ERROR: Can't find ruby library file or shared library passenger
chipotle has quit [Read error: Connection reset by peer]
toretore has joined #ruby
<Ox0dea> tubbo: shevy uses something called Bluefish: http://bluefish.openoffice.nl/index.html
<freezevee> havenwood: but Successfully installed passenger-5.0.18
<tubbo> afaik twitter uses rails for the same purpose as facebook uses a framework-less php web app: as a frontend
Pupeno has joined #ruby
<havenwood> freezevee: How about?: command -V gem
Musashi007 has joined #ruby
<freezevee> havenwood: it outputs some code
<tubbo> Ox0dea: never heard of it. looks like TextMate for windows.
<Ox0dea> tubbo: Yes, shevy is the only user.
<shevy> Ox0dea only 1.x, the 2.x variant made things worse :(
<havenwood> freezevee: Did it look like?: gem is a shell function from $HOME/.rvm/scripts/override_gem
<tubbo> haha
<shevy> I use a lot of ruby to generate stuff that I need
<Ox0dea> shevy: But their versioning almost matches Ruby's!
<havenwood> freezevee: A gem function?
<tubbo> shevy: i think my biggest advice for vim usage is that it's just an editor, not your IDE.
dorei has joined #ruby
<shevy> tubbo I have been using vim for some years
<tubbo> so make it look nice and do some cool stuff, but don't "do everything" with vim
<momomomomo> tubbo: shevy it can be extended to whatever you need
<momomomomo> code completion, code checking, auto compiling etc
<momomomomo> see: vim vaxe
chills42 has quit [Ping timeout: 240 seconds]
blik71 has quit [Ping timeout: 256 seconds]
<shevy> yep, that's where I use ruby!
<havenwood> freezevee: So your gem is the RVM wrapper as expected. But it's acting like you haven't installed the Passenger gem.
<havenwood> freezevee: I'm assuming it's say it failed to find it, but: gem pristine passenger
<freezevee> havenwood: I am running it with sudo
<havenwood> freezevee: sudo drops your env
<freezevee> havenwood: what's the diff with rvmsudo ?
<shevy> tubbo what's cool about vim is that you can play tetris
<bricker> lol
<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.
<nofxx> Remember, there's always time to come to the light: https://stallman.org/saintignucius.jpg
<tubbo> i am so disinterested in that
chipotle has joined #ruby
<havenwood> freezevee: The rvmsudo command is like sudo but it doesn't drop the RVM env.
fantazo has joined #ruby
khebbie has quit [Remote host closed the connection]
<momomomomo> nofxx: I used emacs for about a year
<shevy> hehe... I used to love tetris... but I guess games changed so much the last 20 years
<freezevee> havenwood: I'll try that one
<momomomomo> It's a good thing I played guitar before hand
<havenwood> freezevee: If you really need sudo, that'll do it. ;)
<momomomomo> :D
<shevy> momomomomo do you have to use java for work?
Neverdie has joined #ruby
<tubbo> the usage of unix & vim hasn't changed my coding style, but it's definitely changed my grepping and problem-solving style.
youngbaks has joined #ruby
<Ox0dea> tubbo: For the better, of course.
<shevy> everybody likes unix
newguy1 has quit [Quit: Page closed]
<nofxx> momomomomo, I've remaped each and every command I use. emacs way is tendinitis future (and stupid)
<tubbo> yes. because i have better tools to figure out where the problems are, and jump to class definitions.
<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
<dorei> momomomomo: ms found the chords idea so awesome as to implement it in visual studio :D
mary5030_ has quit [Remote host closed the connection]
irreverant has joined #ruby
<irreverant> what up guys!
<momomomomo> the rest was basic hadoop jobs
<irreverant> how about you'se guys!
<nofxx> but that's the beauty of it imo. editor learns how you work, not the other way around
<momomomomo> or altering some Mahout algos
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
mary5030 has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> irreverant do you challenge havenwood
<irreverant> what's havenwood
<irreverant> and what challenge?
<shevy> hmm
<shevy> ?havenwood
<ruboto> I don't know anything about havenwood
<shevy> jhass! we need a factoid about havenwood
<havenwood> irreverant: I joust with knights.
diego4 is now known as diegoviola
<shevy> ^^^ yes that quote
hahuang65 has quit [Ping timeout: 240 seconds]
<irreverant> what is it?
<irreverant> a bot?
<irreverant> !challenge
<irreverant> .py challenge
<shevy> hahaha
<irreverant> .print challenge
<shevy> yeah .py ;P
<irreverant> oh yeah what is this a ruby chat?
<Ox0dea> havenwood: Why show any lenience in such cases as these?
<shevy> havenwood uses the attrition tactic
symm- has joined #ruby
chills42 has joined #ruby
ruby-lang349 has joined #ruby
<shevy> irreverant will type so much that he gets tired
rbowlby has quit [Remote host closed the connection]
<irreverant> %(Echo print) what is havenwood
phelipe has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Ox0dea: I'm just at work and just have folk talking to me. I wasn't following convo, looking now.
<irreverant> i have to admit python is better than ruby for
<irreverant> automation tasks in IT
<irreverant> exec 'echo hi'
redondo has joined #ruby
<irreverant> Go to 10 "Hello"
<irreverant> Print 10 "hello"
<havenwood> !ban !ban NICK !T 1d irreverant trolling
<irreverant> no nothing? this sucks guys
<havenwood> !ban irreverant !T 1d irreverant trolling
irreverant was banned on #ruby by ChanServ [irreverant!*@*]
irreverant was kicked from #ruby by ChanServ [Banned: irreverant trolling]
djbkd has quit [Ping timeout: 244 seconds]
<havenwood> I need to do new macros. :P
havenwood has left #ruby ["Textual IRC Client: www.textualapp.com"]
phelipe has quit [Client Quit]
havenwood has joined #ruby
<havenwood> And of course connection problems.
infoget has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<havenwood> Trolls make my internet shaky.
Pupeno has quit [Remote host closed the connection]
<Ox0dea> >> 'technology'.bytes.reduce(:^) == 'shit'.bytes.reduce(:^)
<ruboto> Ox0dea # => true (https://eval.in/433924)
<Ox0dea> Coincidence? I think not.
<havenwood> Ox0dea: I didn't actually spot that one. People talking to me irl make my brain fritz.
<havenwood> Ox0dea: Thanks for headsup.
<Ox0dea> No worries. I can see how it might not've been patently obvious at the start.
Luxxi has joined #ruby
<Ox0dea> Got there pretty quick, though. :P
Pupeno has joined #ruby
<havenwood> Ayup!
chipotle has quit [Read error: Connection reset by peer]
<Luxxi> can someone please unbann irreverant? :p
chipotle has joined #ruby
<shevy> Luxxi why
<Luxxi> he ask it in ##windows-server :p
<shevy> ban him!
<havenwood> Luxxi: This isn't the channel to discuss bans. Feel free to join the #ruby-offtopic channel to discuss.
<shevy> curious that he goes to a windows server channel
karapetyan has joined #ruby
leat1 has quit [Ping timeout: 240 seconds]
<Luxxi> mkay :p
howdoicomputer has quit [Ping timeout: 272 seconds]
Luxxi has left #ruby ["http://quassel-irc.org - Wie Teamspeak. Ohne Ton."]
<Ox0dea> havenwood: #ruby-banned for ban discussion, no?
Pupeno has quit [Ping timeout: 244 seconds]
bigmac has joined #ruby
pol0 has quit [Remote host closed the connection]
nateberkope has joined #ruby
cornerma1 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<havenwood> Ox0dea: For banned folk, yeah. For discussion of rules and non-banned folk the ot channel is better I think.
<havenwood> Or #ruby-community if there's really a discussion about improving rules.
sybs has joined #ruby
leat1 has joined #ruby
maletor has joined #ruby
nateberkopec has quit [Ping timeout: 250 seconds]
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
baweaver has joined #ruby
greenbigfrog has left #ruby [#ruby]
bigmac has quit [Ping timeout: 240 seconds]
kyle__ has quit [Ping timeout: 240 seconds]
bigmac has joined #ruby
rushed has joined #ruby
allomov has joined #ruby
kadoppe has quit [Ping timeout: 240 seconds]
dopamean_ has quit [Ping timeout: 255 seconds]
anjen has quit [Quit: anjen]
kadoppe has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
dopamean_ has joined #ruby
bigmac has quit [Ping timeout: 256 seconds]
<redondo> Why this returns false? --> "asd" != "asd ".strip
<jhass> redondo: why would it return true?
<redondo> jhass: oh, sorry!
tom_lowndes has quit [Quit: Textual IRC Client: www.textualapp.com]
chills42 has quit [Ping timeout: 255 seconds]
chills42 has joined #ruby
ramfjord has joined #ruby
apt-get has joined #ruby
ixti has joined #ruby
p0wn3d_ has joined #ruby
chills42_ has joined #ruby
Guest34844 has quit []
chills42 has quit [Ping timeout: 265 seconds]
Neverdie has quit [Quit: http://radiux.io/]
drewo has joined #ruby
cndiv has quit [Quit: Quit]
Neverdie has joined #ruby
jaequery has joined #ruby
hahuang65 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<shevy> wheee 1107 peeps here
<adaedra> Champagne!
xaxisx has quit [Quit: xaxisx]
<adaedra> Wait, I don't drink alcoohol
dr3wo has joined #ruby
<havenwood> shevy: Now for over 9000....
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has joined #ruby
Oka has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
Hrorek has quit [Read error: Connection reset by peer]
siemprefresco has joined #ruby
drewo has quit [Ping timeout: 256 seconds]
Rurik has joined #ruby
Rurik has joined #ruby
grenierm has quit [Quit: grenierm]
mary5030 has quit [Ping timeout: 240 seconds]
<shevy> 9000 seems hard
<shevy> I think #linux has about 2000 or so
opensource_ninja has quit [Quit: opensource_ninja]
<adaedra> we have people who are not using Linux though.
<adaedra> :p
<havenwood> shevy: Okay, 1,200 then since I guess we are just crossing the 1,100 threshold. 1,111 is pretty fancy.
cyrus_mc has joined #ruby
<shevy> yeah
<shevy> 1200
<shevy> that's a realistic one
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> shevy: ruboto should alert us at new high water marks
<jhass> havenwood: well send a PR :P
<havenwood> jhass: \o/
agent_white has quit [Quit: brb]
tomchapin has joined #ruby
<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
<jhass> ugh Ruby 1.8
tomchapin has quit [Client Quit]
opensource_ninja has joined #ruby
<cyrus_mc> jhass: was that comment about my issue
HAL2328 has left #ruby ["Leaving"]
<adaedra> Hello I have a problem with my ruby 1.0
<jhass> peripheral
evanjs has joined #ruby
<havenwood> adaedra: Hello kind timetraveller.
<adaedra> cyrus_mc: well, it looks like you're using ruby 1.8 :/
<jhass> adaedra: did you apply charliesome's historic Ruby patch?
<cyrus_mc> i am .. on centos 6 so just have the default ruby installed
<jhass> that's just sad too :P
tomchapin has joined #ruby
<jhass> 1.8 = sad, centos 6 = sad, using centos 6's default ruby = double sad :P
<adaedra> cyrus_mc: Software collections has 1.9.3, but still too old. You can install a newer one with ruby-install.
<cyrus_mc> I have 1.9.3 installed as well
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass> cyrus_mc: anyway, what's your git.rb look like?
sepp2k has quit [Quit: Leaving.]
Neverdie has quit [Quit: http://radiux.io/]
mary5030 has joined #ruby
agent_white has joined #ruby
mary5030 has quit [Remote host closed the connection]
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cyrus_mc> it was a simple test of the library: https://gist.github.com/cyrus-mc/fa5732516f0809ac318d
chills42_ has quit [Remote host closed the connection]
rbowlby has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
chipotle has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
dtzitz has quit [Quit: dick pics]
yfeldblum has joined #ruby
elperdut has joined #ruby
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cyrus_mc> using 1.9.3 and the error went away
<jhass> mmh
<jhass> I wonder if that your file is named git.rb is the issue
<jhass> try renaming it
momomomomo has joined #ruby
<jhass> 1.8 might still have relative stuff in $LOADED_FEATURES
<jhass> it has . in $LOAD_PATH anyhow
<jhass> so you load the file itself again I guess
towski__ has joined #ruby
<cyrus_mc> that was it .. lol .. doh.
<cyrus_mc> thanks
chipotle has joined #ruby
duggiefresh has quit [Remote host closed the connection]
evanjs has quit [Quit: Leaving...]
sargas has joined #ruby
howdoicomputer has joined #ruby
leat1 has quit [Ping timeout: 246 seconds]
Alayde has quit [Ping timeout: 272 seconds]
<jhass> cyrus_mc: 1.9 resolved that issue btw
towski_ has quit [Ping timeout: 246 seconds]
<jhass> and is not even supported anymore, we're watching the clock for 2.0 ticking
<cyrus_mc> k
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
freerobby has quit [Quit: Leaving.]
<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?
<jhass> well, I have painful experiences from duplicity hiding the AWS errors...
freerobby has joined #ruby
krz has quit [Quit: WeeChat 1.2]
Alayde has joined #ruby
<umgrosscol> BraddPitt, you're writing a CLI program for a user of what technical level?
<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.
<dfockler> BraddPitt: Will your users more likely be able to debug your custom issues or AWS ones?
<BraddPitt> the end user would be ruby developer
<BraddPitt> s
chipotle has quit [Read error: Connection reset by peer]
failshell has quit [Remote host closed the connection]
<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
<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.
<BraddPitt> its only creating/adding to/deleting S3 buckets
<shevy> I don't want to watch a ticking clock jhass :(
<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
<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.
chipotle has joined #ruby
<jhass> shevy: you're on 2.2 right? everything's fine
jgt1 has quit [Quit: WeeChat 1.2]
<shevy> yeah, but there is the future!
jgt has joined #ruby
<umgrosscol> BraddPitt, maybe a message "Failed to delete bucket" "Failed to create bucket" and then the technical detail from the AWS error.
karapetyan has quit [Remote host closed the connection]
<BraddPitt> hmmm yeah
karapetyan has joined #ruby
leat1 has joined #ruby
FernandoBasso has quit [Quit: Leaving]
sepp2k has joined #ruby
Neverdie has joined #ruby
unholycrab has quit [Ping timeout: 264 seconds]
dfockler has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 260 seconds]
youngbaks has quit [Quit: WeeChat 1.3]
musicmatze has joined #ruby
macksim has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<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?
araujo has quit [Quit: Leaving]
<musicmatze> Ruby 2.2.0
<jhass> musicmatze: you should use Pathname#join to construct the final path
<jhass> why do you need a trailing /?
Alina-malina has quit [Ping timeout: 264 seconds]
leat1 has quit [Remote host closed the connection]
<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
leat1 has joined #ruby
stamina has joined #ruby
<jhass> Pathname#directory? / Pathname#file?
<Ox0dea> jhass: Or even just File instead of Pathname there.
<jhass> they already have a Pathname, why not use it
<musicmatze> oh... okay
<Ox0dea> >> >> File.directory? '/tmp' # musicmatze
<ruboto> Ox0dea # => /tmp/execpad-4746f27bc772/source-4746f27bc772:2: syntax error, unexpected >> ...check link for more (https://eval.in/433941)
<Ox0dea> Whoops.
<Ox0dea> >> File.directory? '/tmp' # musicmatze
<ruboto> Ox0dea # => true (https://eval.in/433942)
<musicmatze> but Pathname#join does the same "mistake" ... Pathname.new("/tmp").join("/") returns Pathname:"/"
duggiefresh has joined #ruby
dmolina has joined #ruby
<Ox0dea> That does kinda look like a bug.
<musicmatze> >> Pathname.new("/tmp").join "/"
<ruboto> musicmatze # => uninitialized constant Pathname (NameError) ...check link for more (https://eval.in/433943)
<musicmatze> oh, okay...
<musicmatze> Ox0dea yes, looks like a bug to me, too.
syath has quit [Quit: WeeChat 1.2]
<jhass> musicmatze: Pathname normalizes the path, trying to control it's specific look is misuse
leafybasil has joined #ruby
<jhass> it's quite intended behavior I think
<darix> well ... unless you feed those paths into rsync,cp and so on ... the trailing slash is actually meaningless
<musicmatze> seems so. I will check whether I can use Pathname#directory? and the like
<musicmatze> thank you guys
<jhass> ?guys musicmatze
<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?
<darix> with rsync no trailing slash or trailing slash can be important.
<musicmatze> jhass: ah, okay, will do so in future, thanks for pointing out!
Coldblackice has joined #ruby
dstarh has joined #ruby
<musicmatze> ah, ... a follow up question: When using Pathname#directory? It returns false if the directory does not exist, right?
<Ox0dea> ?try musicmatze
<ruboto> musicmatze, Why don't you try it and see for yourself?
<Ox0dea> ^_^
Neverdie has quit [Quit: http://radiux.io/]
<musicmatze> it does...
<Ox0dea> But yes.
<musicmatze> well, I tried it and now my tests fail... ... so I'm asking for an alternative here... :-)
<Ox0dea> musicmatze: How were you previously checking whether some path was a directory?
<Ox0dea> By the presence of a trailing slash, presumably?
<musicmatze> with the trailing slash, yes.
<musicmatze> I know this is kinda ugly, but I don't know a better way
<jhass> well, that's wrong, as darix pointed out
<jhass> ?xy
<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
<Ox0dea> musicmatze: Use #directory? and fix your tests. ;)
<Ox0dea> musicmatze: Do these paths you're working with actually exist on your system?
alicanyilmaz has joined #ruby
alicanyilmaz has left #ruby [#ruby]
<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.
linuxboy_ has joined #ruby
<musicmatze> No they do not necessarily exist, but they can.
<Ox0dea> So you have to disambiguate between files and directories at the string level...
<musicmatze> you mean that's the only way to do it?
Voker57 has quit [Read error: Connection reset by peer]
<Ox0dea> Well, it seems you're not working with anything more concrete than strings, so yeah. :/
<darix> musicmatze: using a trailing slash as a marker is just ugh
<musicmatze> darix: yep
<darix> musicmatze: try to explain the problem you are actually trying to solve as ruboto pointed out
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> musicmatze: Do you know the `touch` utility?
decoponio has quit [Quit: Leaving...]
diegoviola has quit [Ping timeout: 256 seconds]
linuxboytoo has quit [Ping timeout: 246 seconds]
<jhass> I guess the problem is a bad API definition
Vile` has quit [Read error: Connection reset by peer]
<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)
<musicmatze> would be illegal, of course.
diego2 has joined #ruby
<darix> musicmatze: this is a silly approach
<musicmatze> why?
<darix> rsync -av /foo/bar /bar/foo/
diego2 has quit [Changing host]
diego2 has joined #ruby
<darix> rsync -av /foo/bar/ /bar/foo/
<darix> both are valid
<darix> both behave totally differently
kyle__ has joined #ruby
<darix> and if you really want to treat it like an orm
Vile` has joined #ruby
<darix> then .subdir is calling a child object
<darix> if the parent doesnt exist... error out
<musicmatze> If the parent does not exist, it will be created
<darix> that means your special check is never needed.
<musicmatze> hm.
<musicmatze> seems you are right here...
Synthbread has quit [Remote host closed the connection]
x-light has joined #ruby
<darix> .oO( touch /foo ; Directory.new("/foo") )o
<musicmatze> okay, it seems I have an API issue here :-)
<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
zacts has quit [Ping timeout: 256 seconds]
<darix> btw: FS is a pretty bad storage for ORM
sheperson has quit [Quit: sheperson]
<musicmatze> okay, I guess I have to redesign my API, yes.
<darix> e.g. if you want to have more attributes on directories....
<musicmatze> darix: I'm not sure ORM is the right term here...
<darix> special files
<darix> or xattrß
<darix> musicmatze: so why do you try to wrap the filesystem?
<musicmatze> it is more like a library for simple filesystem access
<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.
<darix> even more simpler than ruby's? o.O
niemcu has quit [Quit: Leaving]
<darix> musicmatze: require 'fileutils'; FileUtil.mkdir_p("/foo/bar/foobar")
<musicmatze> I want to be able to `Directory.new(my_store).music.metal.bands.rammstein = File.new("rating.md")` for example
<Ox0dea> But... why?
chipotle has quit [Read error: Connection reset by peer]
chipotle_ has joined #ruby
<musicmatze> because it is easy
diego2 is now known as diegoviola
<musicmatze> and I think it is a neat experiment
<darix> and then you start to encounter things which are valid filenames
<darix> but not valid ruby code ;)
<Ox0dea> $ mkdir -p foo/{bar/{baz,qux},baz/{bar,qux}}
<darix> like R.E.M.
<Ox0dea> Yay, shells.
<musicmatze> then I can do `directory['ugly_subdir_name'] ...`
sdwrage has joined #ruby
ordepdev has joined #ruby
ordepdev has quit [Client Quit]
<Ox0dea> musicmatze: Seven identifiers, seven directories; what could be simpler?
<darix> musicmatze: good luck with your project and checkout fileutils ;)
dr3wo has quit [Ping timeout: 255 seconds]
<shevy> musicmatze did you already define Directory?
solocshaw has joined #ruby
allomov has quit [Remote host closed the connection]
<musicmatze> shevy: You mean as class? yes, why
<musicmatze> +?
<shevy> yeah
linuxboy_ has quit [Read error: No route to host]
<Ox0dea> musicmatze: In the event it helps your research, you likely meant DSL instead of ORM.
linuxboytoo has joined #ruby
<shevy> the subcomponents also were defined? the .music.metal.bands.rammstein method calls
<darix> Ox0dea: would be fun if File.expand_path 'foo/{bar/{baz,qux},baz/{bar,qux}}' could expand this into an array ;D
<shevy> I assume you need to define the methods dynamically since rammstein probably is not an available method by default
kyle__ has quit [Ping timeout: 264 seconds]
<musicmatze> Ox0dea: Well yes, DSL is the term, right!
macksim has quit [Quit: Leaving]
<Ox0dea> shevy: They don't actually need to become methods.
<darix> sadly it doesnt
<musicmatze> shevy: Yes, via metaprogramming
<Ox0dea> musicmatze: Do you know well the perils of #method_missing?
<musicmatze> and yes, these "methods" do not exist and won't be created ...
tubuliferous has joined #ruby
<darix> Directory.new(my_store).music.metal.bands = File.new("rating.md") ; Directory.new(my_store).music.metal.bands.rammstein = File.new("rating.md")
<musicmatze> Ox0dea tell me about it
<darix> *whistle+
ruby-lang349 has quit [Ping timeout: 246 seconds]
<darix> sometimes it is fun to destroy apis :p
<shevy> no don't do that
al2o3-cr has quit [Ping timeout: 252 seconds]
rushed has quit [Quit: rushed]
<shevy> method_missing is like aiming at a small village with a big nuke
<musicmatze> darix: Why would that be a problem?
zacts has joined #ruby
<musicmatze> shevy: How to do it then?`
<Ox0dea> darix: musicmatze could just raise Errno::EEXIST?
<shevy> well you need to grab your dataset from somewhere right?
<musicmatze> (I guess I will learn a lot this night...)
<darix> Ox0dea: that code is horrible
<Ox0dea> musicmatze: You really do want #method_missing in this case, just... tread softly.
<shevy> so let that dataset define the capabilities of your object(s) in question, and handle cases when something is not found
<darix> why would bands be a directory ... and you assign a file to it
<darix> that api is just ugh
<Ox0dea> I'm not saying it's not, but it's not "broken", per se.
<darix> game time
codecop has quit [Remote host closed the connection]
<shevy> what I will never understand is why people need to align with good or bad ideas in ruby
dfockler has joined #ruby
<musicmatze> darix: I just used bands as example ...
troyreadyy has joined #ruby
<Ox0dea> shevy: Are you asking why people have opinions?
<shevy> opinions?
<shevy> did he ask for an opinion or did he ask for help?
troyreadyy has quit [Read error: Connection reset by peer]
<darix> shevy: it is not about bad or good ideas. it is about does it make sense.
<musicmatze> First I asked because I had a problem with Pathname... but now I guess we are discussing about how to access the filesystem. :-)
matthewhill has joined #ruby
<musicmatze> darix: and it seems you people think my idea doesn't make any sense, which is fine for me...
<shevy> I also have problems with pathname
<musicmatze> but how to do it in a clean way, then?
<musicmatze> only with FileUtils ?
bantha_poo has joined #ruby
<darix> musicmatze: question ... how often will it really happen that you hard code band names in the script?
<musicmatze> and String manipulation all over the place?
<darix> wouldnt it be most of the time that the band names are in variables themself?
TomyLobo has joined #ruby
<musicmatze> well, you are right, yes.
troyready has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
rbowlby has quit []
<darix> so if we take your example
edwinvdgraaf has quit [Client Quit]
<shevy> :)
<darix> Directory.new(my_store).music.metal.bands.rammstein
<darix> and treat it generically
<darix> you would end up with a DSL like
EllisTAA has joined #ruby
apt-get has quit [Remote host closed the connection]
<darix> Directory.new(my_store).method(musicvar).method(metalvar).method(bandsvar).method(rammsteinvar).files << File.new("rating.md")
bantha_poo has quit [Client Quit]
<musicmatze> yes, you are right.
<shevy> what directory will the above call create by the way?
<musicmatze> hm, so my idea was a bad idea.
<darix> not bad per se ... but not thought through :)
<musicmatze> yes.
<darix> you could e.g. create a MyFiles class
<musicmatze> So it seems that FileUtils and Pathname are my friends now. Do they work together?
<darix> which could hide the logic that it will try to create all it's parent dirs or so
<musicmatze> yep
<darix> musicmatze: File/FileUtils/Dir for operations on actual entries
<darix> pathname for pathname manipulation
yardenbar has quit [Ping timeout: 252 seconds]
<shevy> musicmatze fileutils should suffice, you can use FileUtils.mkdir_p() for recursively creating a directory
Matachines has joined #ruby
siemprefresco has joined #ruby
juanpablo_ has joined #ruby
dr3wo has joined #ruby
<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.
<darix> musicmatze: https://github.com/vjoel/fsdb
<darix> ^^
<Ox0dea> Matachines: Do you mean a TUI and not a CLI, then?
hahuang65 has quit [Ping timeout: 256 seconds]
kyle__ has joined #ruby
jhooker has joined #ruby
<darix> Matachines: ncurses might be kinda lowlevel but portable
<musicmatze> darix shevy Ox0dea thank you all!
jhooker has quit [Max SendQ exceeded]
<Ox0dea> musicmatze: Are you still gonna go for it, then?
unholycrab has joined #ruby
<Matachines> Ox0dea Yeah I guess so! And I'll look into ncurses darix
jhooker has joined #ruby
<Ox0dea> ncurses for directory creation?!
fmcgeough has quit [Quit: fmcgeough]
<Ox0dea> What's it all coming to?
Macaveli has joined #ruby
<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
<musicmatze> :-)
drew0 has joined #ruby
juanpablo_ has quit [Ping timeout: 264 seconds]
<darix> musicmatze: starting off with some helper functions covering the unless File.directory? File.dirname(fname) ; FileUtils.mkdir_p(File.dirname(fname)); end
<darix> will probably go a long way to make your code smaller
dr3wo has quit [Ping timeout: 250 seconds]
ruby-lang818 has joined #ruby
skade has joined #ruby
ruby-lang818 has quit [Client Quit]
_orangejuice has joined #ruby
umgrosscol has quit [Remote host closed the connection]
p0wn3d_ has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
karapetyan has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<darix> musicmatze: p=%w{foo bar foobar barfoo} ; File.join(*p)
rushed has joined #ruby
rushed has quit [Client Quit]
ldnunes has quit [Quit: Leaving]
hahuang65 has joined #ruby
<darix> oh works even without *
jalcine is now known as jacky
tcopeland has quit [Ping timeout: 268 seconds]
JDiPierro has quit [Remote host closed the connection]
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
Pupeno has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
baweaver has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 260 seconds]
moeabdol has quit [Ping timeout: 265 seconds]
arup_r has quit [Quit: Leaving]
dravine has quit [Ping timeout: 250 seconds]
nateberkope has quit [Quit: Leaving...]
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
mordocai has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
solars has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
bluOxigen has quit [Ping timeout: 246 seconds]
kidoz has quit [Quit: Ухожу я от вас]
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jhooker has quit [Ping timeout: 246 seconds]
ivanskie has joined #ruby
freerobby has quit [Quit: Leaving.]
n_blownapart has joined #ruby
vickleton has quit [Quit: Ex-Chat]
siemprefresco has joined #ruby
freerobby has joined #ruby
jhooker has joined #ruby
staticat_works has joined #ruby
phutchins has joined #ruby
freerobby has quit [Client Quit]
bigmac has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
dravine has joined #ruby
staticat has quit [Ping timeout: 246 seconds]
wildlander has quit [Quit: Saliendo]
wildlander has joined #ruby
freezevee has quit []
duggiefresh has quit [Remote host closed the connection]
momomomomo has joined #ruby
bahar has joined #ruby
bahar has joined #ruby
wildlander has quit [Read error: Connection reset by peer]
toretore has quit [Quit: This computer has gone to sleep]
DLSteve has quit [Ping timeout: 244 seconds]
ngscheurich has quit [Ping timeout: 240 seconds]
leat1 has quit [Ping timeout: 255 seconds]
icbm has quit [Quit: Leaving]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
nettoweb has joined #ruby
devoldmx has joined #ruby
failshell has joined #ruby
k3asd` has joined #ruby
baweaver has joined #ruby
f00dMonsta has quit [Ping timeout: 250 seconds]
malconis has quit [Ping timeout: 268 seconds]
troyready has joined #ruby
bigmac has quit [Ping timeout: 255 seconds]
St1gma has joined #ruby
rbennacer has quit [Remote host closed the connection]
chipotle_ has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
bigbadbear has quit [Ping timeout: 264 seconds]
failshell has quit [Ping timeout: 265 seconds]
dravine has quit [Ping timeout: 272 seconds]
paulcsmith has quit [Quit: Be back later ...]
chipotle has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
Balzrael has quit [Quit: Leaving]
victortyau has quit [Quit: Leaving]
catcher has quit [Quit: catcher]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
phutchins has quit [Ping timeout: 252 seconds]
dravine has joined #ruby
ndrei has joined #ruby
drew0 has quit [Ping timeout: 250 seconds]
Synthead has joined #ruby
EasyCo has joined #ruby
drew0 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmolina has quit [Quit: Leaving.]
f00dMonsta has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
chrisco has joined #ruby
mclee_ has quit [Ping timeout: 244 seconds]
vF3hNGxc47h8 has joined #ruby
chrisco has left #ruby [#ruby]
chipotle has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
luksaur has quit [Quit: Leaving]
bigmac has joined #ruby
chipotle has joined #ruby
mikecmpbll has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
kies^ has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
f00dMonsta has quit [Ping timeout: 260 seconds]
y0da has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
bigmac has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Quit: WeeChat 1.3]
hahuang65 has joined #ruby
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
nateberkopec has joined #ruby
bigmac has joined #ruby
<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.
wryfi has joined #ruby
<adaedra> &ri Array#index
sotojuan has joined #ruby
jokke- is now known as jokke
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
<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?
<shevy> it's dead jim
<eminencehc> adaedra: Thank you
<adaedra> you're welcome.
<shevy> I'd use git
baroquebobcat has quit [Read error: Connection reset by peer]
<wryfi> shevy: it's dead?
<shevy> I assume some people switched to https://github.com/postmodern/chruby
kirun has quit [Quit: Client exiting]
ndrei has quit [Ping timeout: 240 seconds]
JDiPierro has quit [Remote host closed the connection]
<shevy> nah, it's not quite dead, just less active https://github.com/sstephenson/rbenv
blik71 has joined #ruby
f00dMonsta has joined #ruby
baroquebobcat has joined #ruby
<wryfi> heh. not "quite" dead.
Alina-malina has joined #ruby
<wryfi> so chruby is the new hotness in rvm-is-overkill land?
<jhass> yup
JimmyNeutron has joined #ruby
sotojuan has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> compared to it rbenv is overkill too
<shevy> github sorta changed the development model of many projects
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> https://rubygems.org/gems/chruby 2 years since last gem release there
<jhass> chruby isn't installed through gem
<havenwood> shevy: that's unrelated to the chruby project, well... it's unrelated to the maintainers of chruby at least :P
polishdub has quit [Quit: Leaving]
<shevy> that also sucks :(
xfbs has quit []
jaequery has joined #ruby
<havenwood> it's related to chruby, in the sense that it's a helper lib, but chruby is a Shell not Ruby
<havenwood> is Shell*
dopamean_ has quit [Ping timeout: 240 seconds]
<wryfi> chruby looks like what i was looking for, thanks guys
<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
<BraddPitt> I've found a few, but are there any vetted ones?
<BraddPitt> since, you know, security and all that
baweaver has quit [Remote host closed the connection]
nyon has quit [Quit: F...ix you, Emacs!]
pyon has joined #ruby
<Ox0dea> BraddPitt: Why do you want to decrypt passwords?
sotojuan has joined #ruby
<BraddPitt> they aren't necessarily passwords
<BraddPitt> but
sotojuan has quit [Client Quit]
<BraddPitt> I want to encrypt and decrypt with a password is what I mean
Pupeno has joined #ruby
<Ox0dea> BraddPitt: There's this Ruby wrapper around GPGME? https://github.com/ueno/ruby-gpgme
pyon is now known as nyon
code1o6 has quit [Read error: Connection reset by peer]
Fire1o6 has quit [Read error: Connection reset by peer]
<Ox0dea> There's also an OpenPGP wrapper, but that's more for exchanging encrypted messages.
dravine has quit [Ping timeout: 264 seconds]
<BraddPitt> hmm
<Ox0dea> >> require 'openssl'; ObjectSpace.each_object(Class).count { |c| c < OpenSSL::Cipher } # BraddPitt
<ruboto> Ox0dea # => 12 (https://eval.in/433960)
baweaver has joined #ruby
postmodern has joined #ruby
rbennacer has joined #ruby
sleungcy has quit [Quit: Connection closed for inactivity]
<BraddPitt> wait
<BraddPitt> yeah
<Ox0dea> The first two suggestions would do much of the heavy lifting, but OpenSSL cipher suite isn't terribly hard to use.
<BraddPitt> why am I not doing that
<BraddPitt> I literally was just looking at that doc page
<BraddPitt> derf
<Ox0dea> BraddPitt: Let's let ruboto pick which cipher you use.
<Ox0dea> >> require 'openssl'; OpenSSL::Cipher.constants.sample
<ruboto> Ox0dea # => :RC4 (https://eval.in/433961)
<Ox0dea> Uh-oh.
dravine has joined #ruby
<lianj> hihi
<Ox0dea> Hey, lianj.
<lianj> o/
<BraddPitt> >> require 'openssl; OpenSSL::Cipher.constants
<ruboto> BraddPitt # => /tmp/execpad-84642cedd69b/source-84642cedd69b:2: unterminated string meets end of file ...check link for more (https://eval.in/433962)
<BraddPitt> bleh
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
p0wn3d_ has joined #ruby
<BraddPitt> >> require 'openssl'; OpenSSL::Cipher.constants
<ruboto> BraddPitt # => [:CipherError, :AES, :CAST5, :BF, :DES, :IDEA, :RC2, :RC4, :RC5, :AES128, :AES192, :AES256, :Cipher] ...check link for more (https://eval.in/433963)
<BraddPitt> >> p `ruby -v`
<ruboto> BraddPitt # => (https://eval.in/433964)
<BraddPitt> >Forbidden access to file `/usr/local/bin/ruby'
<BraddPitt> heh
<Ox0dea> >> RUBY_VERSION
<ruboto> Ox0dea # => "2.2.0" (https://eval.in/433965)
<Ox0dea> Use AES256.
<BraddPitt> yeah
<BraddPitt> planned on it
JDiPierro has joined #ruby
<BraddPitt> thanks for the help Ox0dea, sometimes you just need someone to talk to before you realize the obvious
<BraddPitt> dunno why I overlooked OpenSSL
<drbrain> no, use AES-GCM
jaequery has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> BraddPitt: ↑
ckinniburgh_ has quit [Ping timeout: 250 seconds]
<BraddPitt> perfect, thank you
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
p0wn3d_ has quit [Ping timeout: 255 seconds]
k3asd` has quit [Ping timeout: 255 seconds]
JDiPierro has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
unholycrab has quit [Ping timeout: 252 seconds]
<drbrain> I need to update my PR still
trippycat has joined #ruby
<BraddPitt> oof, i had an old openssl version installed
<BraddPitt> time to upgrade
siaw has joined #ruby
Rickmasta has joined #ruby
blik71 has quit [Ping timeout: 240 seconds]
<siaw> does anyone have an explanation for this? https://gist.github.com/siaw23/1b4ae905cd19293d1e56
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> siaw: 5.upto() returns self
<eam> irb prints out the returned value
<eam> >> 5
<ruboto> eam # => 5 (https://eval.in/433966)
devoldmx has joined #ruby
matthewhill has quit [Quit: Lingo: www.lingoirc.com]
doddok has quit [Quit: Leaving]
failshell has joined #ruby
t3rm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 268 seconds]
davedev24 has quit []
juanpablo_ has joined #ruby
unholycrab has joined #ruby
<siaw> eam: but why is it that in the ruby-doc self wasn’t returned? only in the console?
bigmac has quit [Ping timeout: 240 seconds]
<eam> it was returned
<eam> but, did you print it?
<eam> puts 5.upto()
<eam> siaw: what happens if you just say "1 + 1" on a line by itself?
<siaw> eam: i get 2
<siaw> that’s expected
devoldmx has quit [Ping timeout: 246 seconds]
bigmac has joined #ruby
<eam> siaw: I mean like this: ruby -e'1 + 1'
<eam> that shouldn't give you a printout of 2
<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
failshell has quit [Ping timeout: 268 seconds]
n_blownapart has quit [Remote host closed the connection]
<Ox0dea> It's just like Enumerable#each, if you're more familiar with that method.
juanpablo_ has quit [Ping timeout: 265 seconds]
<siaw> Ox0dea: yes. but in their examples the receiver is NOT returned. and that’s what’s confusing me
dfockler has quit []
<trippycat> hi
<totimkopf> siaw: what example?
<Ox0dea> siaw: You're right that the documentation shouldn't be using #=> to indicate what gets printed out.
<totimkopf> trippycat: hi oO
David27 has joined #ruby
<Ox0dea> siaw: #=> is conventionally used to indicate return values, so I see now where your confusion could've arisen.
rakm has joined #ruby
<siaw> Ox0dea: well that clears thing up. for a moment i wasn’t sure what they were trying to say
whippythellama has quit [Quit: WeeChat 1.3]
dopie has quit [Quit: This computer has gone to sleep]
hahuang65 has quit [Ping timeout: 244 seconds]
prasselpikachu is now known as Fridtjof
Fridtjof is now known as prasselpikachu
drew0 has quit [Quit: WeeChat 1.2]
SCHAAP137 has quit [Quit: Leaving]
allomov has joined #ruby
rakm has quit [Client Quit]
Lumio has joined #ruby
freerobby has joined #ruby
jhooker has quit [Ping timeout: 268 seconds]
ricer2 has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
Lumio has quit [Remote host closed the connection]
ricer2 has joined #ruby
Lumio has joined #ruby
tcopeland has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
nyon has quit [Quit: F...ix you, Emacs!]
blackmesa has quit [Ping timeout: 244 seconds]
pyon has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
hinbody_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
zapata has quit [Ping timeout: 240 seconds]
TheRinger has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
TheRinger has joined #ruby
paulcsmith has joined #ruby
Lumio has quit [Ping timeout: 265 seconds]
hinbody has quit [Ping timeout: 252 seconds]
solocshaw has joined #ruby
allomov has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
Lumio has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
eminencehc has joined #ruby
iamvery has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
solocshaw has quit [Ping timeout: 240 seconds]
Jardayn has quit [Quit: Leaving]
diego2 has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
diego2 has quit [Changing host]
diego2 has joined #ruby
solocshaw has joined #ruby
diego2 is now known as diegoviola
Lumio has quit [Quit: ...]
iamvery is now known as jay_
jay_ is now known as iamvery
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
zapata has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
jgt has quit [Ping timeout: 264 seconds]
beauby has joined #ruby
bigmac has joined #ruby
pietr0 has quit [Quit: pietr0]
Pupeno has joined #ruby
karapetyan has joined #ruby
<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?
hinbody_ has quit [Quit: leaving]
pwnd_nfsw has quit [Ping timeout: 246 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
stamina has quit [Ping timeout: 256 seconds]
eminencehc has quit [Remote host closed the connection]
<pipework> beauby: I'm not sure I understand what you're describing.
<drbrain> beauby: look up each one in successive rescues
webguynow has quit [Ping timeout: 264 seconds]
eminencehc has joined #ruby
<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
<Ox0dea> drbrain: Exceptions for control flow?
<beauby> I was wondering whether there was a clean way to do that
<Ox0dea> beauby: Do you know about #const_get?
<drbrain> beauby: you can use Array#find
[k- has quit [Ping timeout: 246 seconds]
<beauby> Ox0dea: can't say I'm highly familiar with it, will look it up, cheers
karapetyan has quit [Ping timeout: 256 seconds]
TheRinger is now known as james_000_
iamvery has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<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.
<drbrain> Array#find + Object#const_get
iamvery has joined #ruby
<beauby> drbrain: So basically, I'll have to build the lookup path manually, and then search it for `x.constants.include?(myconst)`
webguynow has joined #ruby
iamvery has quit [Client Quit]
james_000_ is now known as TheRinger
<pipework> beauby: Oh you want the reverse of the normal lookup?
<drbrain> include? won't work with autoload
<Ox0dea> No?
solocshaw has quit [Ping timeout: 246 seconds]
TheRinger is now known as james_000_
<beauby> pipework: well, normal lookup is "popping from the back", I want "popping from the front"
<pipework> beauby: Isn't that what I said?
<beauby> drbrain: oh, good to know
<beauby> pipework: it is, I just wanted to make sure we meant the same thing
<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
<beauby> Well, yeah, depends what you call "reverse"
t3rm has joined #ruby
infoget has quit [Quit: Leaving.]
ckinniburgh_ has joined #ruby
goodcodeguy has joined #ruby
<Ox0dea> beauby: Are ::A::B::C and ::B::C not the same class, then?
<pipework> drbrain: Oh you're totally right.
<beauby> Ox0dea: No, that's the point
james_000_ is now known as TheRinger
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
da3mian has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
centrx has joined #ruby
iamvery has joined #ruby
iamvery has quit [Client Quit]
iamvery has joined #ruby
<Hamled> is there a concise, idiomatic way to combine collection.map{ ... }.select{ |x| x } into a single call
<Ox0dea> Hamled: Do what you were gonna do in the #map in the #select.
<Hamled> mmm yeah good point :P
<Ox0dea> Hamled: Was that specific #select block meant to indicate that you want to drop falsey values?
<Hamled> wait
<Hamled> yeah
drewvanstone has joined #ruby
<Hamled> select's result doesn't seem to be used except for filtering
wryfi has left #ruby [#ruby]
mleung has joined #ruby
<Ox0dea> Well, yes, that's its purpose.
<Ox0dea> But there's #compact if, for instance, you explicitly only want to filter out nils.
<Hamled> yah, so I can't move the transformation from map
<Hamled> thanks I'll look at that
<Hamled> it is just nils
<Ox0dea> Then #map + #compact is the idiomatic approach.
<baweaver> combine them
<Hamled> great
rodfersou has quit [Quit: leaving]
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
solocshaw has joined #ruby
ckinniburgh_ has quit [Ping timeout: 240 seconds]
<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 }
<ruboto> baweaver # => [4] (https://eval.in/434005)
<baweaver> O(n) \o/
<Ox0dea> baweaver: each_with_object([]) { |e, r| r << e if yield e }
Yzguy has joined #ruby
<beauby> So something along the lines of https://gist.github.com/beauby/f8ddb8b99228ad131a2d should do the trick?
<Ox0dea> Bit nicer, methinks.
<baweaver> fine fine
sargas has quit [Quit: Leaving]
<baweaver> BUT
<baweaver> that doesn't map it
<Ox0dea> Oh, right.
<baweaver> you have to save yield e
bigmac has joined #ruby
Pupeno has quit [Remote host closed the connection]
<baweaver> ewo vs reduce is more of a semantics thing honestly in most cases.
<Ox0dea> And `r << y if y = yield e` doesn't work. :'(
Yzguy has quit [Client Quit]
Yzguy has joined #ruby
failshell has joined #ruby
<baweaver> if only we had itself { |v| ... }
<baweaver> needs more blocks
solocshaw has quit [Ping timeout: 240 seconds]
<Ox0dea> beauby: Do you know why you're doing this?
<Ox0dea> `try` in Ruby code + wanting to dynamically search a nesting is an interesting combination is all.
<beauby> Ox0dea: Yeah, I'm writing an extension for a rails models serializing library, so that it handles nested serializers in a nice way