jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<omgs> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<Aeyrix> Oh boy
juanpaucar has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
diegoviola has joined #ruby
<diegoviola> what editor do you guys use?
<Hunter1> so what exactly how does an object differ from a function?
bruno- has joined #ruby
<baweaver> zenspider: Looks fine to me, though why not just call it from ruby as a constant?
bootstrappm has joined #ruby
balazs has joined #ruby
<volty> I use my own editor, written in ruby (#qtruby)
<baweaver> ala Rack::RELEASE
<zenspider> baweaver: as in load the file and refer to the constant?
<zenspider> really there shouldn't be ANY dynamic code in a gemspec
<zenspider> but in this case? meh. it's easy enough to grab
<baweaver> As opposed to regex / grokking ruby as plaintext? Pick your poison I guess.
bgmarx_ has joined #ruby
joelataylor has joined #ruby
<omgs> Aeyrix: OK, there were a lot of custom gems in order to try to maintain compatibility
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
<Aeyrix> Ah I see.
<omgs> I've renamed the tree so the system libraries load
<zenspider> baweaver: *nod* honestly, I'd rather not have a gemspec checked in at all... but this isn't my project
<baweaver> Or just straight hardcode the thing in there unless something actually depends on RELEASE
<baweaver> Once for startup
mistermocha has quit [Ping timeout: 256 seconds]
ruv has joined #ruby
<baweaver> well, -v flag
* zenspider shrugs
uninitialized has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
<zenspider> eh. it's in my PR
<zenspider> they can do with it as they please
balazs has quit [Ping timeout: 264 seconds]
<zenspider> I love getting paid to run very slooooow tests
bgmarx has quit [Ping timeout: 264 seconds]
uninitialized has quit []
mike___1234 has quit [Ping timeout: 276 seconds]
bgmarx_ has quit [Ping timeout: 264 seconds]
joelataylor has quit [Ping timeout: 265 seconds]
<baweaver> zenspider: We had 4000 tests at my last job
<baweaver> was running in 10:30 or longer
sevenseacat has joined #ruby
Yiota has joined #ruby
<baweaver> Got annoyed
<baweaver> last I knew it was running in 1:25 unless they screwed it up again
Bea_ has joined #ruby
<baweaver> does wonders for deployment times at least.
jhooker has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
<Bea_> Hello!
<baweaver> though everyone on the floor hated me for a while for depriving them of ruby's equivalent of compile time
<zenspider> number of tests don't matter... it's how slow they average that does. :P
<Bea_> hello! is there anyone I could chat with on here concerning some problem I'm having with my program?
<zenspider> Finished in 1.999151s, 1818.7721 runs/s, 8929.7907 assertions/s.
<zenspider> 3636 runs, 17852 assertions, 0 failures, 0 errors, 19 skips
* baweaver whistles
<zenspider> Bea_: don't ask for permission to ask. just ask.
<baweaver> Just ask
<baweaver> ninja'd
wallerdev has quit [Quit: wallerdev]
hedgecore has joined #ruby
<shevy> damn... the beaver is ninja trained
<Bea_> Cool, thanks! I've never done this before, so I apologize! So I'm modding a code given to us to try and create a game. Any game we want. I've modded it so that it displays a nice big screen, and creates a character, and moves that character left and right. But I'm not sure how to move it "down" and "up". I'll post the link to the code in a second.
<shevy> should have written "dam" perhaps again, I forgot :P
<Bea_> Ah, nuts. I need to grab a couple snippets. Just a moment.
cyrus_mc has quit [Quit: leaving]
<Aeyrix> baweaver: You should have that as a macro now. ;)
fabrice31 has quit [Ping timeout: 252 seconds]
<baweaver> Never macro a problem
<baweaver> I just need to be faster
<baweaver> Lest I bring further dishonor to my name
michael_mbp has quit [Excess Flood]
<Aeyrix> hah
<drocsid> I'm looking for pointers on writing better and or cleaner code: http://pastie.org/10234673
<Aeyrix> drocsid: tbh that's pretty clean
slawrence00 has quit [Ping timeout: 252 seconds]
<Aeyrix> My only suggestion would be newlines above the comments, for easier reading.
<Aeyrix> No comment on functionality, I'm only looking at form.
<Bea_> Here we are.
<baweaver> Aeyrix: Same reason I twitch when someone says Java isn't bad because the editor hides complexity or writes it for you
michael_mbp has joined #ruby
<Aeyrix> baweaver: I won't lie to you, I used to write Java in Sublime Text.
<baweaver> I wrote it in Vim
<Aeyrix> Hah.
<Aeyrix> Vim doesn't write anything for ya.
jesterfraud has joined #ruby
<baweaver> Aeyrix: Most of the point I use it for languages I'm not familiar with
<baweaver> Forces me to actually learn / memorize it
<Aeyrix> Very good idea.
<baweaver> great if you're going to be whiteboard coding
<Bea_> Ah. For me? Ok. Let me fix it.
bb010g has joined #ruby
<drocsid> Aeyrix: thanks, I'm looking for issues in my logic. Maybe advice about my exception handling. Trying to get pointers to write "better" code.
jhooker has joined #ruby
<Aeyrix> drocsid: One final thing on form then, and then I'll be quiet: Space out your assignments.
<Aeyrix> "fail_flag=false" -- "fail_flag = false" is significantly easier to read in the longer term.
<baweaver> See some of the bounds code
<baweaver> some of that could be used to work with what you have
jack_rabbit has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drocsid> Aeyrix: Ok, I can do that to make the code more legible. But still looking for issues with my logic, or ways to become a better programmer other than just appearance.
<Aeyrix> Yeah, I know. That's why I said I'll be quiet after that one. :P
<Bea_> https://gist.github.com/anonymous/c6985292f2349e0272a4 Ok! so please run the bottom file first, and then the dodgeGame.
dgutierrez1287 has joined #ruby
<Bea_> game = DodgeGame.new
swgillespie has joined #ruby
<Bea_> game.gameLoop
jcaho has quit [Read error: Connection reset by peer]
<baweaver> Bea_: Don't really have time past a glance for now
jcaho has joined #ruby
<baweaver> If you post on DreamInCode I can take a look later tonight if you're not having any luck here.
mleung has quit [Quit: mleung]
* baweaver wanders off
astrobunny has joined #ruby
_ixti_ has joined #ruby
ixti has quit [Ping timeout: 265 seconds]
ruv_ has joined #ruby
ruv has quit [Disconnected by services]
Yzguy has quit [Quit: I'm sleeping, go away.]
ruv has joined #ruby
ruv has quit [Disconnected by services]
ruv_ is now known as ruv
<zenspider> drocsid: your space bar is broken
baweaver has quit [Remote host closed the connection]
ferfoster has joined #ruby
Bea_ has quit [Quit: Page closed]
<zenspider> drocsid: you might want to make messages an array that you push onto and join on message send. it'll make newline handling more consistent
<zenspider> don't rescue Exception unless you REALLY mean it
<zenspider> and in this case, you don't
uninitialized has joined #ruby
keen___ has quit [Read error: Connection reset by peer]
RickHull has joined #ruby
jhooker has quit [Ping timeout: 265 seconds]
<RickHull> is it normal for `require 'fog'` to take 30 seconds? how can I troubleshoot?
keen___ has joined #ruby
millerti has joined #ruby
<zenspider> haha. that's a big difference
mike___1234 has joined #ruby
<zenspider> I'm assuming all the fog-* gems are plugins that are manually specified, not dependencies?
<RickHull> i'm not too sure
Musashi007 has quit [Quit: Musashi007]
<zenspider> mmmm... try `gem i -i xxx fog; GEM_HOME=xxx time ruby -rfog -e "puts 'hi'"`
<RickHull> i came into this project, and my comfort level with fog goes about as far as the API it exposes
robustus has quit [Ping timeout: 255 seconds]
idafyaid has quit [Ping timeout: 265 seconds]
<zenspider> fog is an amazingly complex project iirc
<zenspider> but that much time is fishy.
AndChat299081 has quit [Quit: Bye]
<drocsid> zenspider: it's been my experience that rescuing Exception finds subtle bugs that you won't catch otherwise.
<zenspider> rm -rf xxx when you're done
krisquigley has joined #ruby
<zenspider> drocsid: impossible
d10n-work has quit [Quit: Connection closed for inactivity]
<drocsid> zenspider: I've read the warnings
<zenspider> if you don't rescue them, they bubble up as uncaught exceptions
wald0 has quit [Ping timeout: 256 seconds]
<zenspider> if you do rescue them, you cause other problems.
revoohc has joined #ruby
<zenspider> you're rescueing Interrupt, for example
<zenspider> you're recusing NoMemoryError
mrmargolis has quit [Remote host closed the connection]
<zenspider> all sorts of stuff you shouldn't be
<RickHull> zenspider: all those fog-* are deps, looks like
<zenspider> RickHull: shit. then my test is sorta bogus
<RickHull> still installing... on a 8-core xeon
<zenspider> tho... it might be proportional to the rest of the gems you have installed
robustus|Off has joined #ruby
<RickHull> i'm interested to see the result
jwaldrip_ has quit [Quit: Be back later ...]
<zenspider> could just be shitty hard drive seek times for all I know
robustus|Off is now known as robustus
<drocsid> ok, point taken about the exception. Still looking for flaws in my logic, like problems with the way I use blocks, etc.
<zenspider> tell me you're not loading off of tape :P
<zenspider> the code is ugly. the logic seems fine
<RickHull> i've got an array of monkeys moving checkers around a big checkerboard
<Aeyrix> lmaio
<Aeyrix> lmao *
<Aeyrix> Try more monkeys.
<Aeyrix> Or a smaller checkerboard.
<zenspider> RickHull: that's bad. I've heard logic goes bad when they get hungry
<drocsid> zenspider: Please suggest how to make it less ugly
bdnelson has quit [Quit: Computer has gone to sleep.]
<zenspider> drocsid: use your space bar more and more consistently
uninitialized has quit []
krisquigley has quit [Ping timeout: 256 seconds]
<zenspider> I would also recommend a few more blank lines to break up paragraphs
soasme has joined #ruby
Kache4 has quit [Ping timeout: 246 seconds]
<RickHull> zenspider: prepending GEM_HOME=xxx fucks up `time`'s output for whatever reason
<RickHull> but it actually takes longer
<zenspider> drocsid: you're also inconsistent about your indentation. 2 spaces per indent
baweaver has joined #ruby
bronson_ has quit [Remote host closed the connection]
<zenspider> RickHull: it makes time output a 1-liner, which I actually like better
<zenspider> I frequently do X=1 time blahblah
<RickHull> huh, it's rather incomprehensible to me
<zenspider> RickHull: do it again to ensure everything is hot
<RickHull> updating gist...
volty has quit [Quit: Konversation terminated!]
tvw has quit [Remote host closed the connection]
phutchins has quit [Read error: Connection reset by peer]
<drocsid> yeah I prefer 2 spaces per indentation, but lazy to figure out how to set it permanently in vim
CloCkWeRX has joined #ruby
<Radar> That's a fun Gist.
<drocsid> is there a nice code formatter for ruby, something to auto-reformat it from the command line
<drocsid> ?
<Radar> drocsid: Format it according to who's standard? :)
<RickHull> drocsid: generally handled by your editor
<Aeyrix> drocsid: sed 's/\t/ /g'
<Aeyrix> :P
phutchins has joined #ruby
uninitialized has joined #ruby
wallerdev has joined #ruby
<drocsid> Aeyrix: gonna tab it out?
<Aeyrix> Doesn't vim use tabs by default?
<Aeyrix> I genuinely forget.
<bougyman> no.
<miah> rubocop -a
<Aeyrix> Four spaces?
marr has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> RickHull: holy shit. what did you do?!?
maxshelley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> it's all in the gist
<zenspider> RickHull: mmm... just in case, tack on GEM_PATH= on the front
<zenspider> idgi... how does it get slower?
uninitialized has quit []
<RickHull> maybe newer versions?
<Radar> RickHull: I'd love to see what GEM_PATH is really
<Radar> "xxx" isn't useful :)
<zenspider> xxx is useful. it's a private repo with nothing else in it
<zenspider> literal "xxx"
<RickHull> do you want GEM_PATH=xxx ?
<zenspider> `GEM_HOME=xxx GEM_PATH= time blahblah` should be as clean as you can get
<drocsid> miah: thanks, I will try that.
<zenspider> drocsid: I don't know vim. plenty here do. I know it isn't hard to set up for ruby tho and get it to indent everything
<RickHull> zenspider: heh, that did it
<zenspider> ok. so it got slower because an existing GEM_PATH made everything concatenate
<RickHull> it looks like my GEM_PATH is problematic
<zenspider> `gem list | wc -l ; GEM_HOME=xxx GEM_PATH=xxx gem list | wc -l`
<RickHull> i was running chruby with user installed rubies and gems
<RickHull> and then switched to system rubies and gems
<RickHull> 133; 42
uninitialized has joined #ruby
razorgfx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has joined #ruby
_ixti_ has quit [Ping timeout: 252 seconds]
zendrix has quit [Ping timeout: 256 seconds]
sharpmachine has joined #ruby
cmisenas has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
<drocsid> Avoid using {...} for multi-line blocks.
<drocsid> what should I use then?
<RickHull> do .. end
Yzguy has joined #ruby
Peleus has joined #ruby
Rickmasta has joined #ruby
<drocsid> RickHull: thanks
drewo has joined #ruby
<Peleus> Hey folks, wondering how I can avoid specific ruby gems being exported into my path
uninitialized has quit [Remote host closed the connection]
<Peleus> (with rvm)
vdamewood has joined #ruby
<RickHull> Peleus: you can also try #rvm
cmisenas has joined #ruby
jgt3 has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
sharpmachine has quit [Ping timeout: 265 seconds]
hdev1 has joined #ruby
revoohc has quit [Quit: revoohc]
psmolen has joined #ruby
<zenspider> drocsid: depends on your viewpoint. I prefer the Weirich Method, which says use {} when you are using a block functionally (ie, you care about the result--like map) and do/end when you're using it procedurally (ie, you don't care about the block result--like each)
yaw has joined #ruby
bruno- has joined #ruby
<zenspider> that way you can look at a block and immediately know how it is being used and whether you should pay attention to how it evaluates
jgt2 has quit [Ping timeout: 245 seconds]
yaw has left #ruby [#ruby]
<zenspider> Peleus: exported into your path?
dopie has joined #ruby
surrounder has quit [Ping timeout: 246 seconds]
podman has quit [Quit: Connection closed for inactivity]
zenguy_pc has quit [Excess Flood]
Agoldfish has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
<Peleus> zenspider: It appears to be exported in, but checking out bash_profile it's not explictly stated in there, so I'm not sure how rvm usually does it
war_pigs has joined #ruby
zenguy_pc has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> I don't understand your words/problem. sorry.
Hunter1 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 246 seconds]
fujimura has joined #ruby
j4cknewt has quit [Remote host closed the connection]
havenwood has joined #ruby
endash has quit [Quit: endash]
jhooker has joined #ruby
RegulationD has quit [Remote host closed the connection]
<RickHull> i believe he wants specific gem executables to not show up in his PATH
<RickHull> zenspider: any thoughts on what my 30-45second problem is, how to fix?
<RickHull> i think my GEM_PATH is ok; it allows my user to install gems to homedir but also require system-installed gems
<RickHull> (if i understand correctly)
war_pigs has quit [Quit: later... computer is sleeping]
maletor has quit [Quit: Computer has gone to sleep.]
hedgecore has quit [Remote host closed the connection]
<RickHull> 142 gems installed doesn't ~seem~ problematic
hedgecore has joined #ruby
pengin has joined #ruby
pkrnj has joined #ruby
idafyaid has joined #ruby
Cyberheb has quit [Ping timeout: 264 seconds]
<sevenseacat> seems like a normal rails app.
* sevenseacat ducks
<RickHull> no rails here, sorry
<sevenseacat> just saying, its not problematic, itsn ormal.
<sevenseacat> my current rails app: "Bundle complete! 90 Gemfile dependencies, 223 gems now installed."
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
bricker has quit [Ping timeout: 272 seconds]
joaomdmoura has joined #ruby
Cyberheb has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
Cyberheb has quit [Excess Flood]
_seanc_ has quit [Quit: _seanc_]
<zenspider> RickHull: what version of ruby and rubygems?
<zenspider> and please do that gem list | wc -l thing I gave above
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<RickHull> I did, it was 142 versus 33
<RickHull> er, 133 vs 42
_seanc_ has joined #ruby
<RickHull> ruby 2.1.5, gem 2.2.2
bkxd has quit [Ping timeout: 272 seconds]
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
baweaver has quit [Remote host closed the connection]
<RickHull> i think this could be a chruby problem relating to GEM_HOME and GEM_PATH
<zenspider> that's not too bad... hrm
<RickHull> logged in as root, using the same ruby
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<RickHull> GEM_HOME and GEM_PATH are empty
Sheik` has quit []
wallerdev has quit [Ping timeout: 264 seconds]
<RickHull> fog loads in 0.4s real
dopie has quit [Quit: This computer has gone to sleep]
<zenspider> time ruby -rubygems -e 'p Gem.find_files("**/*.rb").size'
<Diabolik> zenspider im nearly done :D
<zenspider> both without GEM_PATH/HOME and with
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<Diabolik> can you give me a pointer with the total method in checkout.rb
bgmarx has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
<Radar> Diabolik: inject
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<zenspider> that really looks like homework / interview test
<sevenseacat> it is an interview test
<Diabolik> well
<Diabolik> not really
<sevenseacat> just like the last one :P
<Diabolik> sevenseacat i got a job with the last one
Cyberheb has joined #ruby
<Diabolik> but it starts in august
Cyberheb has quit [Excess Flood]
<sevenseacat> wheres our commission? :P
joelataylor has joined #ruby
<RickHull> zenspider: updated at the bottom https://gist.github.com/rickhull/c1d9a8205060020d011b (root user, no GEM_PATH or GEM_HOME)
<Diabolik> pm me your paypal
<RickHull> running same thing now as normal user
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
ferfoster has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<zenspider> well shit. that's fast enough
<RickHull> yeah, that fast as my normal user
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<RickHull> with non-empty GP and GH
<zenspider> so that's not the problem... I dunno what is. how stranger
Cyberheb has joined #ruby
<zenspider> strange
Cyberheb has quit [Excess Flood]
<RickHull> updated with numbers from normal user
Peleus has left #ruby [#ruby]
<zenspider> damn... the old russian woman was right.
claw has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<hoelzro> jj
<Diabolik> sevenseacat Radar just picked up the commission for #ruby
<Diabolik> go speak to him
Cyberheb has joined #ruby
<zenspider> the secret is the pyickle in the gouyash
Cyberheb has quit [Excess Flood]
pengin has quit [Remote host closed the connection]
penzur has joined #ruby
yaw has joined #ruby
* sevenseacat will mug Radar for his $5 tomorrow
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<zenspider> goulyash... sorry. I hope I didn't offend anyone. :P
<sevenseacat> if someone's making goulash, I'm there.
<sevenseacat> omnomnom
joelataylor has quit [Ping timeout: 256 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
centrx has joined #ruby
dgutierrez1287 has joined #ruby
goodcodeguy has joined #ruby
Yiota has joined #ruby
tkuchiki has joined #ruby
nofxx has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
axl_ has joined #ruby
<RickHull> zenspider: running ruby-prof using my user versus root; i think my setup is making rubygems do something pathological
<zenspider> omnomnom all gone
<zenspider> RickHull: I'd love to know what it is once you figure it out.
meph has quit [Quit: Leaving.]
<RickHull> wow, it's interesting
<RickHull> posting a new gist
<RickHull> not sure what is going on
noethics has joined #ruby
<Radar> sevenseacat: I will spend the money on cider for tomorrow. Do you drink that?
<sevenseacat> haha, no, but thats cool :)
deric_skibotn has quit [Ping timeout: 276 seconds]
surrounder has joined #ruby
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> keep in mind, root and normal user are using the ruby and same gem; root user performs normally; normal user performs pitifully
<Radar> sevenseacat: Iced coffee instead? :P
claw has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
<sevenseacat> now you're speaking my language. buy me an iced coffee in brooklyn or something.
LicHacker has joined #ruby
<Aeyrix> I don't think $5 will get Radar to Brooklyn and back.
<Radar> Aeyrix: You'll be surprised.
bronson_ has joined #ruby
<nofxx> iced coffee? get me a double ristretto please
<Aeyrix> ... Wait, you don't mean the Brooklyn in the USA, right.
centrx has quit [Ping timeout: 255 seconds]
<sevenseacat> indeed.
bootstrappm has left #ruby [#ruby]
<zenspider> RickHull: can you gist your installed gems?
ImperialWizard has joined #ruby
<zenspider> the pathological case list
frem has quit [Quit: Connection closed for inactivity]
<ImperialWizard> hello fellow white brothers and sisters
<havenwood> !mute ImperialWizard
<RickHull> yep, 1s
<zenspider> beat me
<Radar> oh snap
<Radar> gg havenwood
bgmarx has quit [Remote host closed the connection]
ImperialWizard has left #ruby [#ruby]
<zenspider> aren't you supposed to direct them to ruby-banned? :P
<zenspider> ruboto prolly should in a PM
<zenspider> I need to remember that I coded it to /stfu
jenrzzz has quit [Ping timeout: 255 seconds]
NeverDie has joined #ruby
jhooker has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby
<RickHull> I think Gem::Specification#conflicts is important
<zenspider> RickHull: man... ever thought about doing a gem clean?
<RickHull> hasn't crossed my mind
<RickHull> ;)
dfockler has joined #ruby
<zenspider> I'd be curious ... do a `gem clean gitdis` and see if that affects your times
<zenspider> I'm thinking wide vs tall
jgt3 has quit [Ping timeout: 276 seconds]
djdarkbeat has quit [Ping timeout: 244 seconds]
caseypatrickdris has joined #ruby
<RickHull> too late
<RickHull> did `gem clean`
<RickHull> and now things are normal
<RickHull> i'd suggest this is still maybe a useful bug / test case
Yzguy has quit [Quit: I'm sleeping, go away.]
Forgetful_Lion has quit [Read error: Connection reset by peer]
<zenspider> you can always reinstall that list :P
<RickHull> added gem clean output
<RickHull> to the gist
bkxd has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
<jesterfraud> gem clean should be gem polish
<jesterfraud> just saying
fujimura has quit [Remote host closed the connection]
baweaver has joined #ruby
casadei has quit [Remote host closed the connection]
<zenspider> jesterfraud: hah. send in a PR
dfockler has quit [Ping timeout: 245 seconds]
Forgetful_Lion has joined #ruby
centrx has joined #ruby
hedgecore has quit [Remote host closed the connection]
hedgecore has joined #ruby
<jesterfraud> zenspider: but they we might have to be multicultural, and gem egyptian just doesn't have the same ring to it
<jesterfraud> so to speak
juanpaucar has joined #ruby
diegoviola has quit [Remote host closed the connection]
frem has joined #ruby
vdamewood has quit [Quit: Life beckons.]
xxneolithicxx has joined #ruby
FernandoBasso has quit [Quit: Time for some sleep.]
balazs has joined #ruby
vdamewood has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bosma_ has joined #ruby
centrx has quit [Ping timeout: 252 seconds]
bosma has quit [Disconnected by services]
deric_skibotn has joined #ruby
bosma_ is now known as bosma
oo_ has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
ReK2 has quit [Remote host closed the connection]
casadei has joined #ruby
sharpmachine has joined #ruby
bmurt has joined #ruby
fabrice31 has joined #ruby
mwlang has joined #ruby
e1nh4nd3r has joined #ruby
e1nh4nd3r has quit [Max SendQ exceeded]
<mwlang> Instead of chaining a bunch of gsubs like this: “.gsub(/&lt;/,'<').gsub(/&gt;/, '>').gsub(/&amp;/, ‘&’)” Is there a cleaner way to accomplish the same?
e1nh4nd3r has joined #ruby
e1nh4nd3r has quit [Max SendQ exceeded]
e1nh4nd3r has joined #ruby
<mwlang> I’d love to do this: .gsub(/&lt;|&gt;|&amp;/, /<|>|&/)
sharpmachine has quit [Ping timeout: 255 seconds]
soasme has quit [Remote host closed the connection]
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> mwlang: I like to build a hash of str => str and just do it that way
dopie has joined #ruby
soasme has joined #ruby
<mwlang> eam: yeah, I’ve done that in the past.
<eam> .gsub kv.keys.join "|", { |m| kv[m] }
<eam> or w/e
sivoais has quit [Quit: leaving]
endorphine has joined #ruby
bkxd has joined #ruby
sivoais has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
sivoais has quit [Read error: Connection reset by peer]
<mwlang> eam: ah. haven’t used the block signature in a few years….plain forgot about that approach.
endorphine is now known as endorphine_
freerobby has joined #ruby
<zenspider> mwlang: I hope that's just for example and you're not actually doing that
<zenspider> otherwise, your NIH is strong
DynamicMetaFlow has joined #ruby
<mwlang> zenspider: no, it’s real code. I’m refactoring it.
axilla has quit [Ping timeout: 245 seconds]
<sevenseacat> the NIH is strong with this one
<Diabolik> sevenseacat
<mwlang> it stinks to high heaven and back.
<Diabolik> i have problems
<sevenseacat> Diabolik: so do i.
<mwlang> NIH?
<sevenseacat> "not invented here"
<Diabolik> sevenseacat can i fix yours
<sevenseacat> aka reinventing wheel
<sevenseacat> Diabolik: i dont know, are you a psychologist?
<zenspider> >> "a b c d".gsub(/[abcd]/, "a" => 1, "b" => 2, "c" => 3, "d" => 4)
<ruboto> zenspider # => "1 2 3 4" (https://eval.in/379386)
<Diabolik> sevenseacat somewhat
<Diabolik> i did a year of it at uni
<sevenseacat> then no.
<mwlang> heh…literally…it wasn’t “invented here” I inherit a lot of junk. ;-)
<mwlang> but sometimes the junk baffles me as to best way to refactor, so I ask.
<zenspider> mwlang: in this case you should be using nokogiri or something else to do escaping/unescaping
<zenspider> but, a kludge for now would be the snippet above
balazs has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 276 seconds]
zz_barkerd427 is now known as barkerd427
grp066 has quit [Remote host closed the connection]
<mwlang> zenspider: I actually think I can delete the entire line as the end goal. :-)
<zenspider> yay!
<mwlang> it’s mainly being used to insert a “pre-processed payload” into a log table in the dbms…but, uhm, well, they’re preprocessing it.
<mwlang> so once I get Nokogiri behind the driver seat, I’ll just post to the dbms with doc.to_xml or some such.
hahuang65 has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<mwlang> heh…I should say behind the wheel as behind the driver’s seat is my position right now….backseat driver. :-p
znz_jp has quit [Quit: kill -QUIT $$]
BTRE has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
<mwlang> but if you really want something to chortle over — refactor this line: if http://check.type.to _s == "TrueClass"
<mwlang> :-D
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> wow
<sevenseacat> ive seen things like that in tests before.
balazs has joined #ruby
znz_jp has joined #ruby
<mwlang> sevenseacat: I feel your pain.
goodcodeguy has joined #ruby
<mwlang> heh…that didn’t paste right…. if check.type.to _s == "TrueClass"
<zenspider> I got the point of it
<mwlang> anyway, that was awfully darn creative checking the class name instead of just checking truthness of the value
<bnagy> can you explain it again?
<bnagy> not sure I follow
axl_ has quit [Quit: axl_]
<zenspider> if true.class.name == "TrueClass" then ... end
<zenspider> vs
<zenspider> if true then ... end
<mwlang> basically turn an object’s class name into a string and see if it matches
<bnagy> . o O (sarcasm detectors are offline, captain)
pkrnj has joined #ruby
_djbkd has quit [Remote host closed the connection]
<zenspider> bnagy: bah you
ponga has joined #ruby
<mwlang> lol
autrilla has quit [Quit: Connection closed for inactivity]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs has quit [Remote host closed the connection]
RegulationD has joined #ruby
<mwlang> what a timely post: “they aren’t my problems; they were just dumped in my lap, along with a canvas sack with a dollar sign on it.” http://eev.ee/blog/2015/06/09/i-quit-the-tech-industry/
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> i wish i had that luxury.
krisquigley has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<sevenseacat> 'yeah I dont want to work anymore, so I quit my job and paid off my mortgage with the proceeds'
iamninja has quit [Read error: Connection reset by peer]
<sevenseacat> but in all honesty, the first part of that post strikes me as completely normal, well, normal for me anyway
BTRE has joined #ruby
jenrzzz has joined #ruby
<mwlang> I thought he made some good points about how everybody constantly recreates the wheel.
towski_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
arescorpio has joined #ruby
deric_skibotn has quit [Ping timeout: 258 seconds]
hubcaps has joined #ruby
<mwlang> although I’m encountering a lotta of crap nowadays working contracts, at least I get paid to do it and there’s no politics involved. If they’re happy with my fixes, they give me more work, if they’re not, well, another client comes along to please even more. Life is happy.
<mwlang> my problem is I haven’t lost any clients and they keep coming back for more. :-o
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
jsrn has quit [Ping timeout: 256 seconds]
jackjackdripper has quit [Quit: Leaving.]
jsrn has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
bogdanteleaga has quit [Ping timeout: 265 seconds]
<sevenseacat> also, he isnt 'leaving the tech industry' if hes still going to be programming his own things
phutchins has quit [Ping timeout: 245 seconds]
CyborgCygnus has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
<sevenseacat> so many of the comments are like 'well duh yeah I worked for three years, saved up 30 years worth of living expenses, and now am living my dream, why arent you'
<sevenseacat> I want to smack these people
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
joelataylor has joined #ruby
<mwlang> heh…I was wondering about that, too.
freerobby has quit [Quit: Leaving.]
<mwlang> I think he’s leaving his boss and he thinks he’s leaving “stupidity of the industry” behind.
<sevenseacat> yeah good luck with that
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> dont get me wrong, i admire what he's doing, but its just worded really oddly
<mwlang> I still see stupidity, and at a more rapid rate (more project churn), but the difference is, I ain’t caught in the quagmire.
<sevenseacat> if i could quit my job tomorrow and they would pay off my mortgage, i would
yqt has quit [Ping timeout: 244 seconds]
attlasbot has joined #ruby
mrsolo has joined #ruby
<sevenseacat> also, 'I’ve worked remotely my whole career, from states with no income tax too.' wat? no income tax?
<sevenseacat> that must be how the 'i saved up 100 years of living expenses' thing works
bogdanteleaga has joined #ruby
joelataylor has quit [Ping timeout: 246 seconds]
<sevenseacat> i could save a lot of money too if i didnt fork 40% of my paycheck to the government
gkra has quit [Ping timeout: 244 seconds]
<bnagy> that is a lot of tax
amclain has joined #ruby
<mwlang> sevenseacat: same here.
Spami has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
<sevenseacat> jeepers
<Obfuscate> Note that they would still have to pay federal taxes, and usually those states have higher taxes for other things.
<sevenseacat> well thats confusing
<mwlang> Move to Puerto Rico and Act 20/22 status. :-)
<sevenseacat> state *and* federal taxes?
willharrison has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Obfuscate> I guess if you moved to Texas and lived in a small apartment, your taxes would be as about as low as the federal goverment would allow.
Yzguy has joined #ruby
Yiota has joined #ruby
<Yiota> how similar are ruby and python?
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<mwlang> Yiota: not very. one is spatially oriented, the other just rocks. :-)
justintv90 has joined #ruby
<bnagy> Yiota: why do you ask?
<nofxx> Yiota, whoever say they are sisters are lying. python's OO is childsh
justintv90 has quit [Max SendQ exceeded]
bronson_ has quit [Remote host closed the connection]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Yiota> I have an interview tomorrow, they want expertise in Ruby, HOWEVER I told them that given the similarity of both languages, I would be able to pick it up easily. They said that SQL and Python proficiency would be a nice to have.
jenrzzz has joined #ruby
justintv90 has joined #ruby
bkxd has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<nofxx> Yiota, ah, it's the easy path then... ruby to any other is way harder than any other to ruby ;)
<Yiota> I really hope I get it because it would put me on the right track to do data science
zenguy_pc has joined #ruby
<nofxx> Yiota, to the free courses, codeschool or codeacademy
justintv90 has joined #ruby
havenwood has joined #ruby
<nofxx> you'll be coding in no time
<Yiota> I think their website is built on ruby on rails, and that's why they want it
balazs has joined #ruby
<bnagy> well you don't really have any huge concepts to relearn going python -> ruby ( or ruby -> python )
<nofxx> do the*
<bnagy> so seems legit
justintv90 has quit [Max SendQ exceeded]
<bnagy> ohhh Rails is a whole nother kettle of fish
<Yiota> Yeah, it's not website dev though
<Yiota> their website is built on rails, so I think they want an understanding of Ruby so that you can interact with the server
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<Yiota> most of it will be parsing, cleaning and wrangling data and then uploading it to the server.
<nofxx> Yiota, yeah.. don't go there just yet, give just ruby some days, write some code.
Vile` has quit [Ping timeout: 255 seconds]
Dreamer3_ has joined #ruby
Dreamer3 has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
mwlang has quit [Quit: mwlang]
<Yiota> also, offtopic. Tie or no tie for tomorrow's interview?
<Yiota> granted it's humid and hot
bruno- has joined #ruby
Vile` has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jwaldrip_ has joined #ruby
<bnagy> wear what they'll be wearing
Dingus has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 252 seconds]
jwaldrip_ has quit [Ping timeout: 276 seconds]
sharpmachine has joined #ruby
fujimura has joined #ruby
balazs has quit [Remote host closed the connection]
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Quit: Quitting]
sharpmachine has quit [Ping timeout: 244 seconds]
jpfuentes2 has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
baweaver has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
Trynemjoel has joined #ruby
balazs has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
baweaver has joined #ruby
braincrash has quit [Quit: bye bye]
dfinninger has joined #ruby
mike___1234 has quit [Ping timeout: 265 seconds]
mdz_ has joined #ruby
aaeron has quit [Quit: aaeron]
mdz_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
pontiki has joined #ruby
hubcaps has quit [Quit: Lost terminal]
<pontiki> hi
mrsolo has quit [Quit: This computer has gone to sleep]
astrobun_ has joined #ruby
Dingus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NightMonkey has quit [Quit: ZNC - http://znc.in]
braincrash has joined #ruby
jpfuentes2 has joined #ruby
Exponential has joined #ruby
darkf has joined #ruby
jpfuentes2 has quit [Client Quit]
dfinninger has quit [Read error: Connection reset by peer]
drocsid has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
swgillespie has joined #ruby
dfinninger has joined #ruby
CalvinnHobbes has quit [Ping timeout: 256 seconds]
dfinninger has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
CalvinnHobbes has joined #ruby
endorphine_ has quit []
EasyCo has joined #ruby
charliesome has quit [Quit: zzz]
bmurt has quit []
attlasbot has quit [Quit: Leaving]
dfinninger has joined #ruby
jwaldrip_ has joined #ruby
djdarkbeat has joined #ruby
aaeron has joined #ruby
<havenwood> hi
yfeldblum has quit [Ping timeout: 265 seconds]
vitorino has joined #ruby
yfeldblum has joined #ruby
<jesterfraud> Yiota: I'd recommend wearing clothes
<jesterfraud> tie never hurts though, unless they're an incredibly casual place
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has quit [Read error: Connection reset by peer]
Yiota has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
dfinninger has joined #ruby
aaeron_ has joined #ruby
<pontiki> live dangerously: wear a cravat
juanpaucar has joined #ruby
aaeron has quit [Ping timeout: 264 seconds]
aaeron_ is now known as aaeron
<sevenseacat> hehe
n008f4g_ has quit [Ping timeout: 256 seconds]
<sevenseacat> clothes are a definite good idea.
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has quit []
dfinninger has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
mary5030 has quit [Remote host closed the connection]
balazs has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
<jesterfraud> pontiki: TIL I live dangerously at weddings
<jesterfraud> maybe I should wear a cravat daily
<pontiki> you should. it's a better fashion statement than even a bow-tie
revath has joined #ruby
<pontiki> one doesn't just accidentally wake up and put on a cravat
<jesterfraud> depends how drunk you are?
<pontiki> well, doesn't everything?
mike___1234 has joined #ruby
axsuul has joined #ruby
<jesterfraud> I guess
<jesterfraud> I mean
spider-mario has quit [Ping timeout: 250 seconds]
sharpmachine has joined #ruby
ttilley has joined #ruby
<jesterfraud> there's a stage of drunk at which using regex to parse HTML seems reasonable
ttilley has quit [Changing host]
ttilley has joined #ruby
CyborgCygnus has quit [Quit: I hath quit]
<pontiki> it's right next to the balmer peak, innit?
CyborgCygnus has joined #ruby
<pontiki> when you not only think it's a good idea, but you implement it and it turns into something great
mcclurmc_ has joined #ruby
bronson_ has joined #ruby
<pontiki> the rest of us are just doing Windows ME over and over again
dfinninger has quit [Read error: Connection reset by peer]
axsuul has quit [Max SendQ exceeded]
<xxneolithicxx> so says microsoft bob and clippy
fabrice31 has joined #ruby
dfinninger has joined #ruby
gix has quit [Ping timeout: 245 seconds]
mcclurmc has quit [Ping timeout: 252 seconds]
dfinninger has quit [Read error: Connection reset by peer]
goodcodeguy has joined #ruby
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has joined #ruby
jamto11 has joined #ruby
gianlucadv has joined #ruby
pontiki has joined #ruby
bronson_ has quit [Ping timeout: 276 seconds]
<pontiki> dammit. cmd-Q is NOT cmd-Tab
dfinninger has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
gix has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
aaeron has quit [Ping timeout: 276 seconds]
jamto11_ has joined #ruby
<Aeyrix> pontiki: I make that mistake so many times a day.
vitorino has quit [Remote host closed the connection]
oo_ has joined #ruby
aaeron has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jesterfraud> remap q to tab, it's not like you need to use q that often
aphprentice has joined #ruby
<pontiki> that'd be hard. i use tab a *LOT*
Palmer11 has joined #ruby
<jesterfraud> it's quite rare to use, a little quaint key in the corner
<jesterfraud> cmd q is a terrible shortcut, imo
nertzy has joined #ruby
<pontiki> i wonder if you can remap the mac like that, actually
sdothum has quit [Ping timeout: 244 seconds]
<pontiki> i could change it opt-cmd-F4
<jesterfraud> sorta, I would imagine
<jesterfraud> some programs would hardcode it
<jesterfraud> although you'd probably be able to intercept that keypress and turn it into something else, using some kind of utility
sharpmachine has quit [Remote host closed the connection]
skade has joined #ruby
mrsolo has joined #ruby
axsuul has joined #ruby
iamninja has joined #ruby
commondream has joined #ruby
<shevy> hey you can also make your point without clothes
balazs has joined #ruby
<shevy> see the movie Catch-22, with captain youssarian who no longer wants to fly on missions
balazs has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
commondream has quit [Remote host closed the connection]
soasme has quit [Remote host closed the connection]
RegulationD has joined #ruby
soasme has joined #ruby
premera has quit [Ping timeout: 245 seconds]
jamto11_ has quit []
morissette has joined #ruby
<morissette> Hey all!
<morissette> Anyone ever have to synchronize Outlook Web App 2013 into a JS Calendar?
krisquigley has joined #ruby
<ttilley> morissette: jesus christ on a stick, that sounds painful. whatever you end up doing, i'm sorry and you have my sympathy
<morissette> sigh
<morissette> That is about the same answer I have gotten everywhere.... why can't microsoft just implement restful api's with everything....
<pontiki> and make an open system that anyone can write to??
<morissette> haha
<morissette> yeah
<pontiki> write to/read from
<morissette> I'm open to any solution even if I have to cry myself all the way to C# if anyone has anything
<morissette> outside of mechanize web scraping hackery
<pontiki> strange you asking in ruby tho
<ttilley> pontiki: don't laugh, they just wrote an open source visual studio alike with a supported linux port and everything. who the fuck knows what'll come out of microsoft these days
<morissette> I asked in every lang I know lol
RegulationD has quit [Ping timeout: 246 seconds]
<morissette> hoping for someone that has experience
<morissette> I'm writing the app in Angular/PHP back
<pontiki> ttilley: i said many years ago they should stop writing operating systems and build their desktop on linux.
jamto11 has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<pontiki> ttilley: but then it was pointed out to me that then they couldn't control everything
<Evidlo> Is `bundle install` supposed to install a ruby binary in addition to all the other packages?
<ttilley> morissette: unless i'm confused, outlook still supports IMAP. you'll have to do batch jobs out-of-band probably, but why can't you connect to it via a supported protocol? is IMAP disabled? (note that asking these questions is about as much effort as i'm willing to put into that problem, no offense)
<morissette> pontiki: in a perfect world where users knew how to troubleshoot things
<pdoherty> pontiki: that'd be something! `sudo apt-get install windows-desktop`
<morissette> ttilley: is the calendar over IMAP?
<ttilley> Evidlo: no
<ttilley> Evidlo: it's not like virtualenv for python
<ttilley> morissette: i assumed it would be metadata in a subdirectory, but now that you mention it i could very well be wrong about that.
hahuang65 has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 276 seconds]
<pontiki> bundle's main feature that i can see is that it installs and maintains versions of the app's gems, so you don't have to do it all yourself
<morissette> It just seems to me calendar data going over a mail protocol
penzur has quit [Ping timeout: 276 seconds]
<ttilley> morissette: i mean, a lot of other protocols (like gmails tags, and a bunch of other stuff) have been implemented as metadata over virtual directories in IMAP so i dunno
<pontiki> morissette: like in ubuntu where all the maintenance is done with specialized apps and users never have to look at config files?
<Evidlo> Hmm. So passenger keeps telling me that it can't find rake-10.4.2
penzur has joined #ruby
<morissette> Maybe I'll explore that option and see what IMAP provides
charliesome has joined #ruby
Lucky__ has joined #ruby
hahuang65 has joined #ruby
<ttilley> morissette: i hope outlook exports the calendar as, like, pcf files in a directory structure or some shit that's easy to parse... for your sake
<morissette> I'm originally a Perl dev parsing data no problem for me :)
<morissette> Thanks for the concern though
<ttilley> ics files? i dunno
<ttilley> fuck all whatever MS uses for metadata
<morissette> haha ya
<ttilley> perl? you've officially dated yourself as being at least over 40
<ttilley> :p
<morissette> 28
<shevy> 48
EllisTAA has joined #ruby
<morissette> SysMin background
<morissette> where perl is all the hype still
<EllisTAA> does anyone know why shoulda matchers are called shoulda matchers? what does it mean
<ttilley> jesus, why the fuck are you using perl? nobody in modern times should be using perl
dgutierrez1287 has joined #ruby
<shevy> EllisTAA isn't shoulda a testing framework?
<pontiki> "you shoulda done dat"
<sevenseacat> yes
<morissette> Why b/c I work for a Perl/Java shop and despise Java
<ttilley> everything sysadmin nowadays is python (though why, i have no idea... all of openstack is python)
<pontiki> "he shouldna done dat"
<shevy> :)
<pontiki> "it just shoulda worked"
<morissette> But I know python, ruby, php and bash plus all those useless frontend langs
<shevy> lol
<EllisTAA> shevy: my understanding is they are just one liners .. does that mean they’re a framework?
<shevy> "he just shoulda have used ruby already"
<ttilley> ^
<pontiki> EllisTAA: i'm not going to ask you if that makes sense, but that' basically why it's called that
bronson_ has joined #ruby
<shevy> EllisTAA are they? I have no idea, I assume there is some library component
<morissette> but @ttilley ruby > python any day god damn space nazis
<ttilley> and even though most sysadmin stuff is python... it's all still fucking python 2.7. all of it. nobody uses python 3. NOBODY. -_-
cmisenas has quit [Quit: cmisenas]
<morissette> and non ending blocks don't get me started
someword has quit [Quit: Leaving.]
<sevenseacat> they provide custom matchers for testing. thats all.
<shevy> describe Post do; it { should belong_to(:user) }
joelataylor has joined #ruby
<ttilley> morissette: true that
<morissette> god forbid I use a tab vs a space one time
<shevy> EllisTAA well the examples seem to be longer
<morissette> python interpreter: AHHHHHHHHHHHHHHHHHH!
<ttilley> morissette: actually, the whitespace stuff is one thing about python i love. i enjoy it just as much in coffeescript. VERY clean. very nice.
Ox0dea has joined #ruby
WildBamboo-Josh has quit [Read error: Connection reset by peer]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson_ has quit [Remote host closed the connection]
WildBamboo-Josh has joined #ruby
<EllisTAA> when i search ‘wiki matchers’ nothing comes up.
gorums has joined #ruby
<sevenseacat> EllisTAA: what problem are you trying to solve here
Ropeney has quit [Read error: Connection reset by peer]
<EllisTAA> trying to learn about shoulda matchers - what are they and why do they exist
<shevy> hehe... why does the universe exist
jenrzzz has joined #ruby
<sevenseacat> they add matchers for you to use in specs, like the one shevy posted above, the belong_to matcher
<sevenseacat> if you dont know why you would want to use them, then you don't want to use them.
dgutierrez1287 has quit [Ping timeout: 265 seconds]
<shevy> ttilley I think that a language that refuses to run based on mandatory whitespace, is primitive
slawrence00 has joined #ruby
<ttilley> yeah... i have other reasons to dislike python and prefer other languages over it, but the whitespace thing isn't one of them
jwaldrip_ has quit [Quit: Be back later ...]
<ttilley> as i said, i also love that about coffeescript. and the original sass. and haml.
joelataylor has quit [Ping timeout: 265 seconds]
<Ox0dea> It is impossible to automatically indent Python code.
<EllisTAA> how can i find out what a matcher is? there doesnt seem to be a wikipage on it
<sevenseacat> :/
mrsolo has quit [Quit: This computer has gone to sleep]
<sevenseacat> EllisTAA: google rspec matchers.
<sevenseacat> please.
<Aeyrix> shevy: I totally agree.
<sevenseacat> and learn how to use google.
<ttilley> is he even using rspec?
<pontiki> or just go to rspec.info/documentation
<sevenseacat> honestly, i dont know what more information you need than https://github.com/thoughtbot/shoulda
<sevenseacat> it tells you exactly what it does
<ttilley> EllisTAA: do you know what testing framework you're using? rspec? shoulda? minitest? something else?
<Aeyrix> lol testing
<ttilley> mspec?
<EllisTAA> sevenseacat: none of those sites define what a matcher is
<ttilley> -_-
<shevy> I want a testing framework that is fun to use
<sevenseacat> [12:29:10] sevenseacat:EllisTAA: google rspec matchers.
jcaho has quit [Read error: Connection reset by peer]
<ttilley> i want a blowjob and a steak, we can't all get what we want
<Aeyrix> "An Expression Matcher is any object that responds to the following methods: ..."
<sevenseacat> Aeyrix: thats a stupidly old version of rspec
<Aeyrix> sevenseacat: But it explains what a matcher is. :)
jcaho has joined #ruby
<EllisTAA> aeyrix: thanks!!!!!!!!
<Aeyrix> EllisTAA: As sevenseacat said, this is an old version of RSpec. Don't use it as a definitive reference.
<ttilley> Aeyrix: you should have used a "let me google that for you" link
<sevenseacat> sure, but none of the examples will work.
<Aeyrix> But at least you can get an idea.
<EllisTAA> yeah all i needed to know is what a matcher is
<EllisTAA> thanks
<Ox0dea> EllisTAA: So what is a matcher?
<Aeyrix> ttilley: Eh. It was an innocent question.
<sevenseacat> the first fucking google result on "rspec matchers" defines them
<sevenseacat> EllisTAA: learn to google.
<Aeyrix> The first result for me is GitHub.
<Aeyrix> Is that what you're referring to?
jenrzzz has quit [Ping timeout: 276 seconds]
jack_rabbit has joined #ruby
<EllisTAA> this is the first result: it does not define them https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
<sevenseacat> EllisTAA: do you know *anything* about testing?
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> simply put, a matcher is an expression that compares the actual value of something to the expected value of something in a test
<sevenseacat> serious question. because if you cant read the first two examples on that page and not know what a matcher is
<sevenseacat> and if you *dont* know anything about testing, why on earth are you looking at shoulda?
<EllisTAA> yeah but even if i arrived at my own conclusion it would be best to read a definition
stoogenmeyer_ has joined #ruby
<EllisTAA> pontiki: thanks
<pontiki> buy the rspec book
joaomdmoura has joined #ruby
<pontiki> there may even be an online free copy
<shevy> eat frog legs
<sevenseacat> I... what
<ttilley> EllisTAA: we're really not trying to be mean. (well, at least i'm not). but you might have some more foundational material to absorb first. it may be better to start off with the traditional non-spec-style of testing. it's more procedural and an easier foundation to base other stuff on. the rspec and cucumber books are also great places to go
<sevenseacat> I'm not trying to be mean, I'm just tired of these kinds of questions from them
<EllisTAA> ttilleyy: thanks i’ve been meaning to get the rspec book
<ttilley> EllisTAA: of course, the important thing is to be doing testing, so you're already going in the right direction ;)
<sevenseacat> from the same person who said they were going to be the best ruby programmer ever
<sevenseacat> a long time ago
<EllisTAA> hey that was only 5 months ago!
<shevy> wow
<shevy> I am impressed that sevenseacat can remember things 5 months ago related to IRC
<ttilley> yeah, cats don't usually have that kind of long term memory
<shevy> I can't remember having seen EllisTAA before :)
<EllisTAA> sevenseacat loves me
<sevenseacat> I remember stupid things, what can I say.
<shevy> hehe
msgodf has quit [Ping timeout: 276 seconds]
<EllisTAA> gotta aim high
<Aeyrix> ^
<Ox0dea> "Shoot for the moon. Even if you miss, you were only pretending to be retarded."
<pontiki> my goal in life is two-fold: 1) never stop learning 2) always have fun
<Aeyrix> Ox0dea: lmao
<Aeyrix> pontiki: 1> Keep reminding people that they're breaking the channel rules; 2> Play lots of blackjack.
<EllisTAA> ox0dea: that’s not how it goes
revath has quit [Ping timeout: 265 seconds]
<Aeyrix> jokes on them i was only pretending
mrsolo has joined #ruby
soasme has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
soasme has joined #ruby
casadei has quit [Remote host closed the connection]
Musashi007 has joined #ruby
mary5030 has joined #ruby
baweaver has joined #ruby
charliesome has quit [Quit: zzz]
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
mcclurmc_ has quit [Remote host closed the connection]
lxsameer has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
mleung has joined #ruby
lessless has joined #ruby
<shevy> more ruby code people!
<morissette> lol
<shevy> python isn't going to bow down without a fight
<morissette> more rails generate model things and stuff
<sevenseacat> rails g facebook
mrsolo has quit [Quit: This computer has gone to sleep]
sharpmachine has joined #ruby
<Ox0dea> morissette: What does "SysMin" mean?
ponga has quit [Quit: Leaving...]
<morissette> Ox0dea: System Administration
<Ox0dea> I've never seen it abbreviated that way.
<ttilley> why should python bow down?
<morissette> I have 10 years of Linux System Administration
<ttilley> i never got the whole language is better than yours pissing contest
<morissette> Where eventually I wanted to move more toward automation
<morissette> Which led me to development
<ttilley> there's a lot of good python code out there, why not use it when it's the best tool for the job?
mrsolo has joined #ruby
<morissette> But now I am in operations and don't do "real" work lol
<ttilley> i prefer ruby, obviously, but i have to be pragmatic
<morissette> Use the best language for the job
ta has joined #ruby
<ttilley> exactly
<morissette> Although I do talk a shit load about python lol
<morissette> And how ruby would be a better option
<ttilley> i mean... fuck, i HATE C. but you gotta do what you gotta do sometimes and i've written more C than i'm really happy with
ta has quit [Remote host closed the connection]
ta has joined #ruby
<Aeyrix> C++ master race.
<morissette> ugh 15 lines to open a file handle
<shevy> avoiding python is easy, avoiding C is hard
<ttilley> my most popular open source code is entirely in C and it's a ruby extension
<morissette> well can't beat the speed
<ttilley> rb-fsevent (file system event handling on macos)
<morissette> lord though writing so much code for millisenconds
<morissette> seconds even
axsuul has quit [Ping timeout: 255 seconds]
<baweaver> except there are very few things Python does that Ruby cannot
arescorpio has quit [Quit: Leaving.]
sharpmachine has quit [Ping timeout: 256 seconds]
<ttilley> Aeyrix: C++ is like javascript. you can write good code in it... as long as you only use 10% of the language features available to you. anything else and you fuck yourself
axsuul has joined #ruby
<Ox0dea> baweaver: Are there any such things?
<baweaver> They're pretty well interchangeable.
<morissette> just remove : and add end
<morissette> done
<baweaver> Ox0dea: Mostly statistical packages and data science applications
<baweaver> the support is a lot stronger on that side of the fence
<baweaver> CAN ruby do it? Yes
<morissette> but you should use R
<baweaver> does it have that level of tooling quite yet? Not really
<shevy> R is so ugly :(
<ttilley> baweaver: in an abstract sense, sure. in a practical sense, there's a fuckton of science code written in python that you can build on top of. same for systems administration work. you'd have to not only do it in ruby, but port a fuckton of code to ruby.
* ttilley shrugs
<ttilley> i like doing less work
<ttilley> i'm lazy
<baweaver> ttilley: about that
<baweaver> Chef and a lot of other systems tools are Ruby
<morissette> ttilley: were devs lazy comes with the job
<morissette> Puppet too
<morissette> and ummmm....
<morissette> the ahhh
<morissette> megasploit
<baweaver> Metasploit
<baweaver> homebrew
balazs has joined #ruby
<ttilley> baweaver: yeah, but in research scipy and numpy and etc etc etc are standard tools that everyone uses and is encouraged to know.
<Ox0dea> >> 4r * 2i # We science yet?
yfeldblum has quit [Ping timeout: 256 seconds]
<ruboto> Ox0dea # => ((0/1)+(8/1)*i) (https://eval.in/379409)
<morissette> was close been a while since had to do security stuff
hagabaka has joined #ruby
<baweaver> ttilley: You'll notice I said that above
<shevy> lol at the comment Ox0dea
<baweaver> But in terms of System Administration? It's because Google uses it and now everyone else should too
<morissette> We talking Go now lol?
charliesome has joined #ruby
<shevy> Go Google
<baweaver> Same argument applies there
<morissette> Anyone in Austin want to catch drinks and debate languages lol?
<baweaver> Hadoop was another result of that type of idiocy
<shevy> I think the dudedudeman is in Texas
<baweaver> Bay area here
fujimura has quit [Remote host closed the connection]
<ttilley> ...go is definitely the new "thing" in systems level stuff. stackato took cloud foundry, ported a shitload of ruby code to go and node.js for performance reasons, and ended up at a more stable product (though, to be fair, a lot of the cloud foundry stuff uses eventmachine and FUCK eventmachine HARD)
<Ox0dea> `go get fucked`
<morissette> Wifey is anti cali or else I'd likely be there mobile gambling start up wanted me bad
EllisTAA has quit [Quit: EllisTAA]
<ttilley> i feel sorry for anyone that has to work with or debug eventmachine
<ttilley> i really do
<morissette> but DevOps not a dev role
RegulationD has joined #ruby
<baweaver> I'm becoming increasingly hesitant to touch DevOps.
hahuang65 has quit [Quit: WeeChat 1.2]
<morissette> just like you feel bad with me hacking away at outlook integration into webapps cause efficiency
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
<morissette> I mean I'd prefer to write code vs recipes and manifests
hahuang65 has joined #ruby
_seanc__ has joined #ruby
_seanc_ has quit [Read error: Connection reset by peer]
_seanc__ is now known as _seanc_
balazs has quit [Ping timeout: 255 seconds]
lessless has joined #ruby
serivichi has quit [Ping timeout: 258 seconds]
revath has joined #ruby
<shevy> ohhh
<morissette> I like this room so much more than #perl....
IanV0rn has joined #ruby
<shevy> if anyone of you ever needs all ruby keywords
<shevy> irb has it included :P
<shevy> >> IRB::InputCompletor::ReservedWords.size
<ruboto> shevy # => uninitialized constant IRB (NameError) ...check link for more (https://eval.in/379410)
<shevy> damn
<morissette> sadly thinking i'm becoming a hipster with less ipa and flannel
<ttilley> dev is dev. i mean, how many jobs have you had where you worked on what you loved doing? i've only had a few.
<ttilley> i do work that i love at home, in my free time, for me
<ttilley> work... is work. you do whatever is available
<jesterfraud> ttilley: I don't have the energy to do that right now
<shevy> hehehe
<ttilley> fair enough
revath has left #ruby [#ruby]
ag4ve_ has quit [Ping timeout: 248 seconds]
<morissette> I mean I am in Operations now but for the most part I have free range to work on what I want which I love
<ttilley> i fucking hate operations
<morissette> So having the freedom to create and improve
axsuul has quit [Ping timeout: 272 seconds]
<jesterfraud> I don't like go, and I don't like node for web dev, so hence why I'm in this room :)
<ttilley> i started off doing sysadmin/sysops
jamto11 has quit [Remote host closed the connection]
<morissette> Yes well I am technical ops
<morissette> vs people ops
jamto11 has joined #ruby
<morissette> creating now a platform to bring us from 1999 to 2015
<jesterfraud> creating 'now', a platform, or now creating a platform?
RegulationD has quit [Ping timeout: 256 seconds]
<morissette> the latter
<morissette> 4th drink in lol
jamto11 has quit [Client Quit]
<jesterfraud> English is... interesting
<ttilley> morissette: it was me and one other person responsible for all of this company's servers and hosting platforms, across linux and windows. there were multiple hosting systems (ensim, sphera, h-sphere, etc) across multiple operating systems (various versions of centos and windows server) with 4 fucking billing systems.
<ttilley> morissette: i cut the call center's time down by an average of 10 minutes by just writing some software to find out WHICH billing system someone was in
<morissette> 4 billing systems jesus
krz has joined #ruby
idafyaid has quit [Quit: idafyaid]
ylla has joined #ruby
<ttilley> it was horrible
<ttilley> absolute shite
hdev1 has quit [Ping timeout: 265 seconds]
<ttilley> but.... but i had fun writing that software and seeing the immediate impact it had on customer service and sales
<ttilley> so now i write software for a living
mrsolo has quit [Quit: This computer has gone to sleep]
<morissette> yeah well I mean our frontend product minus well be frames but IBM pay for it
<morissette> b/c our backend is cool
axsuul has joined #ruby
<flughafen> moin
<ttilley> morning
arooni-mobile has joined #ruby
<Aeyrix> moin
<jesterfraud> afternoon
<morissette> evening
<morissette> 12:20a here
idafyaid has joined #ruby
konsolebox has joined #ruby
rbowlby has quit [Remote host closed the connection]
LicHacker has quit [Ping timeout: 272 seconds]
<morissette> .....digressing..... corporate america more dots ........ technology....... 1999
EllisTAA has joined #ruby
<Aeyrix> MORE DOTS
konsolebox has quit [Max SendQ exceeded]
amclain has quit [Quit: Leaving]
ohaibbq has joined #ruby
<sevenseacat> k stop dots
konsolebox has joined #ruby
stoogenmeyer_ has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hdev1 has joined #ruby
commondream has joined #ruby
_seanc_ has quit [Quit: _seanc_]
juanpaucar has joined #ruby
BTRE has quit [Ping timeout: 245 seconds]
rbowlby has joined #ruby
rbowlby has quit [Remote host closed the connection]
<Ox0dea> >> RubyVM::INSTRUCTION_NAMES.size
<ruboto> Ox0dea # => 88 (https://eval.in/379411)
aaeron has quit [Ping timeout: 250 seconds]
dmmoody has joined #ruby
<bnagy> sweet you could write ruby with a piano
_ht has joined #ruby
<Ox0dea> It's 89 in trunk. :/
<baweaver> bnagy: don't tempt me
<baweaver> midi-to-usb could totally do it and map as a keyboard if done right
commondream has quit [Ping timeout: 252 seconds]
gorums has quit [Quit: Page closed]
EllisTAA has quit [Quit: EllisTAA]
<bnagy> kind of hard to get, like, arguments I guess
<baweaver> emacs can chords, so can we :D
juanpaucar has quit [Ping timeout: 264 seconds]
<Aeyrix> >> p RubyVM::INSTRUCTION_NAMES
<ruboto> Aeyrix # => ["nop", "getlocal", "setlocal", "getspecial", "setspecial", "getinstancevariable", "setinstancevaria ...check link for more (https://eval.in/379412)
<Aeyrix> thank
dmmoody has quit [Client Quit]
bronson_ has joined #ruby
<Ox0dea> Huh, the new instruction in 2.3 is "reverse".
khebbie has joined #ruby
fujimura has joined #ruby
ht has joined #ruby
ht has quit [Client Quit]
tagrudev has joined #ruby
byprdct has joined #ruby
_ht has quit [Ping timeout: 265 seconds]
<shevy> lol
<shevy> write ruby with a piano
<shevy> I think we have a midi expert here... ericwood I think it was, he played something with a keyboard using ruby code
<Aeyrix> :(
byprdct has quit [Max SendQ exceeded]
skade has joined #ruby
fabrice31 has joined #ruby
mleung has quit [Quit: mleung]
Channel6 has joined #ruby
caseypatrickdris has quit [Remote host closed the connection]
byprdct has joined #ruby
<shevy> Aeyrix code is alive!
byprdct has quit [Max SendQ exceeded]
BTRE has joined #ruby
futilegames has joined #ruby
<Aeyrix> static int invoking; /* TODO: should not be global variable */
byprdct has joined #ruby
<shevy> Anyone knows for how long permalinks at rubular.com remain?
fabrice31 has quit [Ping timeout: 250 seconds]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
<sevenseacat> perma would imply... permanently
vdamewood has joined #ruby
byprdct has quit [Max SendQ exceeded]
skade has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
<Ox0dea> "And with strange aeons even death may die."
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> you are a very wise cat
towski_ has joined #ruby
<sevenseacat> Ox0dea: nice.
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby
mrsolo has quit [Client Quit]
mrsolo has joined #ruby
penzur has quit [Quit: wadiwasi]
Macaveli has joined #ruby
futilegames has quit [Quit: futilegames]
fujimura has quit [Ping timeout: 264 seconds]
frem has quit [Quit: Connection closed for inactivity]
CondomsOptional has joined #ruby
Filete has quit [Ping timeout: 250 seconds]
aspiers has quit [Ping timeout: 265 seconds]
<CondomsOptional> hi fags
<morissette> hello queerbag
yfeldblum has joined #ruby
<CondomsOptional> wanna bareback?
ag4ve_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<morissette> i mean you only live once
<morissette> fuck me hard though
<CondomsOptional> I'll cum deep in your ass
<morissette> lolz
lsmola has joined #ruby
<morissette> is this #porn
<CondomsOptional> your ass will be gushing out my cum for weeks
hahuang65 has quit [Quit: WeeChat 1.2]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stoogenmeyer has joined #ruby
<baweaver> !ops
<ruboto> fflush, apeiros, seanstickle, banisterfiend, zzak, workmad3, jhass, Coraline, Havenn, drbrain, sevenseacat, Radar, Mon_Ouie, rubyhacker1, miah, slyphon, zenspider, Aria, ljarvis
<sevenseacat> !ban CondomsOptional !T 1d
CondomsOptional was banned on #ruby by ChanServ [CondomsOptional!*@*]
CondomsOptional was kicked from #ruby by ChanServ [User is banned from this channel]
<baweaver> bye
revath has joined #ruby
<sevenseacat> baweaver: :thumbsup:
* baweaver high fives
<morissette> lol
* morissette high fives
<morissette> god damn teenagers
<Ox0dea> Okay, I think I know how to add %d to Ruby.
ylla has quit [Ping timeout: 265 seconds]
zipace has quit [Read error: Connection reset by peer]
* baweaver is a teenager ;-;
* morissette feels old at 28
zipace has joined #ruby
zipace has quit [Changing host]
zipace has joined #ruby
<baweaver> 24, but poking fun
<morissette> yeah but still not a different generation but minus well be
<Ox0dea> > minus well be
hahuang65 has joined #ruby
<Ox0dea> >> 10_000.spoons.ironic?
<ruboto> Ox0dea # => undefined method `spoons' for 10000:Fixnum (NoMethodError) ...check link for more (https://eval.in/379429)
krisquigley has joined #ruby
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
<baweaver> Ox0dea: Still trying to dissect that BF interpreter....
<shevy> another one fell to sevenseacat's deadly claws
sharpmachine has joined #ruby
_ht has joined #ruby
stnly has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
<Ox0dea> baweaver: It's... pretty cryptic.
<baweaver> that's the fun of it
<baweaver> it's perl all over again
<baweaver> no, wait
<baweaver> that was more legible
mrsolo_ has joined #ruby
<Ox0dea> I bet it's actually cleaner than how you'd have to do it in Perl.
<Ox0dea> Stabby lambdas kept it pretty trim, I think.
Eising has quit [Ping timeout: 265 seconds]
aspiers has joined #ruby
<baweaver> Read through Understanding Computation some time
<Ox0dea> Aye, I've done so.
<Ox0dea> Tom Stuart is sort of my hero.
<baweaver> it has 3-4 pages of unfolding making fizzbuzz with church numerals and the like
plashchynski has joined #ruby
<baweaver> fun read for sure
krisquigley has quit [Ping timeout: 258 seconds]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> A pleasant watch too.
<baweaver> Raganwald is another of a kindred spirit
mrsolo_ has quit [Client Quit]
<baweaver> Kestrels, Quirky Birds, and Hopeless Egocentricy is still one of my favorite ruby books.
rbowlby has joined #ruby
lkba has quit [Remote host closed the connection]
Eising has joined #ruby
sharpmachine has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
krz has quit [Ping timeout: 255 seconds]
<baweaver> (free to read online, but well worth the price)
<Ox0dea> You've reminded me that I still haven't written an Unlambda program.
<baweaver> If I weren't doing a Hackathon for the next day and a half I'd consider trying some of it myself for jollies.
yardenbar has joined #ruby
polysics has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
polysics has joined #ruby
joelataylor has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_seanc_ has joined #ruby
stnly_ has joined #ruby
timonv has joined #ruby
RegulationD has joined #ruby
stnly_ has quit [Client Quit]
polysics has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
joelataylor has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
solars has joined #ruby
chinmay_dd has quit []
<Aeyrix> baweaver: wait
<Aeyrix> wtf
joonty has joined #ruby
<Aeyrix> baweaver is a teenager ;-;
CyborgCygnus has quit [Quit: I hath quit]
codecop has joined #ruby
bMalum has joined #ruby
<baweaver> is actually 24 and was screwing with people
CyborgCygnus has joined #ruby
<Aeyrix> Oh.
<baweaver> 25 in a few weeks
<baweaver> yay, lower insurance and no more getting robbed on rental cars
<ttilley> i assume anyone on the internet is either a grumpy preteen, an old man, or an FBI agent
<Aeyrix> Man.
<Aeyrix> Months until I'm even legal to drink in the USA>
CyborgCygnus has quit [Client Quit]
CyborgCygnus has joined #ruby
<ttilley> speaking of which. has anyone been watching the WWDC sessions? there have been actual women presenting... doing real tech and kicking real ass up there on stage
<ttilley> quite a few actually
<ttilley> it's pretty awesome to see
jgt3 has joined #ruby
sinkensabe has joined #ruby
<morissette> nope lol
<sevenseacat> sounds better than fake women kicking imaginary ass
<ttilley> i'm guessing one was even post-op transgender but that's not the kind of assumption one wants to be wrong about. might be insulting. ^^;
<morissette> i mean women are cool and stuff im married to one but in tech i haven't seen an "amazing" pushing limits one yet
<sevenseacat> err
Channel6 has quit [Quit: Leaving]
<Ox0dea> morissette: Grace Hopper wrote the first compiler.
<ttilley> ^
<shevy> yeah
<ttilley> there are lots of amazing women in the history of tech that people always forget about
<morissette> okay and next?
<shevy> WHERE WERE YOU THEN morissette!
<sevenseacat> "computer" used to be a job description solely for women
gaboesquivel has quit []
<morissette> indeed; thanks i know the history
<sevenseacat> women dont have to be amazing in tech, just like men dont have to be
<shevy> morissette margaret dayhoff wrote the first protein database back then called "Atlas of Protein Sequence and Structure" http://en.wikipedia.org/wiki/Margaret_Oakley_Dayhoff
<morissette> as my 2yr old wakes up and I literally have to just sit in front of his toddler bed and type
<ttilley> morissette: "Ada Lovelace is Lord Byron's child, and her mother, Lady Byron, did not want her to turn out to be like her father, a romantic poet," says Isaacson. So Lady Byron "had her tutored almost exclusively in mathematics as if that were an antidote to being poetic."
<morissette> fair nuff @all
<ttilley> ENIAC was created by six women
bMalum has quit [Ping timeout: 264 seconds]
<ttilley> fuckton of history that gets shoved under the carpet because the movers and shakers were *gasp* women
<morissette> germans dont count lol :P
<morissette> for testing sake this is vpn'd off: http://global.m0ri.org/calendar
<sevenseacat> morissette: I'd watch yourself if I were you.
<morissette> god damn old white men
<sevenseacat> sexism and racism at the same time? check
djbkd has quit [Quit: Leaving...]
<morissette> sevenseacat: in regards to?
<shevy> you!
<Aeyrix> mods
<shevy> lol Aeyrix
<morissette> sevenseacat: I am a married with children ex drag queen feminist
<sevenseacat> morissette: so?
<Ox0dea> And a "SysMin" to boot!
<morissette> what shall I watch?
<sevenseacat> morissette: the racist jokes and the sexism.
<jesterfraud> somedays I wonder if we'd just be better off banning gender terms, it'd be a nuisance, but would successfully confuse everyone enough to stop arguments, I think
<morissette> more or less monty python?
<sevenseacat> we dont approve of them.
Xeago has joined #ruby
<morissette> which racist / sexist jokes have i said?
<shevy> no good ones so far
<morissette> scrolls up to review
bosma is now known as bosnia
<morissette> "(01:27:01 AM) morissette: i mean women are cool and stuff im married to one but in tech i haven't seen an "amazing" pushing limits one yet" is surely not sexist
<morissette> its just stating I haven't seen one yet
<morissette> outside of that comment I see no racist / sexist comments
joonty has quit [Quit: joonty]
rdark has quit [Ping timeout: 258 seconds]
<morissette> minus: "(01:30:34 AM) morissette: god damn old white men"
joonty has joined #ruby
joonty has quit [Client Quit]
<morissette> but can you really be racist against white people lol?
<morissette> < white
<sevenseacat> yes.
<Aeyrix> jesus christ
<sevenseacat> let's drop it and move on.
chinmay_dd has joined #ruby
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<morissette> Im cool with that
djbkd has joined #ruby
<morissette> Again 6th drink in.... maybe I only told #php so don't block for more than 1d lol
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
balazs has joined #ruby
roolo has joined #ruby
<shevy> yeah
<shevy> go make sexist jokes on #php!
rbowlby has quit [Remote host closed the connection]
* baweaver stares blankly
<Aeyrix> I'm sure there's a reddit joke here somewhere.
Cyberheb has joined #ruby
* baweaver looks down at glass
Cyberheb has quit [Excess Flood]
pdoherty has quit [Ping timeout: 245 seconds]
* Aeyrix looks down at where glass should be.
<morissette> good one shevy seeing as im preety much trans and don't believe in gender
<Aeyrix> No drink. :(
<morissette> can only be overly racist
djbkd has quit [Remote host closed the connection]
Cyberheb has joined #ruby
<jesterfraud> why do people ever think any kind of sexism/racism is okay, even if they're talking about a 'majority'?
xxneolithicxx has quit [Ping timeout: 255 seconds]
<morissette> like a bloody american
<jesterfraud> I just
Cyberheb has quit [Excess Flood]
<shevy> there is genetic gender
<morissette> well genetically we're all born women
yfeldblu_ has joined #ruby
astrobun_ has joined #ruby
<Aeyrix> more mods
* baweaver also may be one of the few americans still up
<shevy> yeah
<shevy> it's the default
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mister_solo has joined #ruby
<morissette> so are you on the fetus == life side else fetus == not a being
<Aeyrix> what
<shevy> huh
<Aeyrix> you should put your keyboard down
<shevy> cells are living aren't they?
<Ox0dea> We're all born assholes.
<morissette> if fetus > third_trimester
<morissette> human
<morissette> else
<morissette> not_human
<baweaver> we're really covering the bases here aren't we?
<morissette> seems like ruby
<shevy> that sounds like a legal term definition
<morissette> ....
<morissette> end
ponga has joined #ruby
<morissette> ^ fixed
bMalum has joined #ruby
<shevy> baweaver a good dam needs a strong base
<Aeyrix> I'm glad I saved some of my popcorn from /r/subredditdrama for #ruby.
<shevy> Aeyrix aren't you also bringing in drama yourself every now and then :)
<baweaver> Tipsy me tends to go on a code rampage for a few hours
<Aeyrix> shevy: generally no
<morissette> i started there baweaver
<Aeyrix> i just suggest that less snark should be used
balazs has quit [Ping timeout: 246 seconds]
<shevy> I still fondly remember your argument with jhass
<baweaver> Sober me curses aforementioned me for leaving no comments and seeing how often I can make things into monads
DEA7TH has joined #ruby
<morissette> now drunk off dealing with syncing outlook idgafuuck
ylla has joined #ruby
<shevy> yesterday someone explained to me what monads are
<morissette> cause microsoft.... sigh
<shevy> right here in #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
auzty has joined #ruby
<Ox0dea> baweaver: Is Enumerable a monad?
<Ox0dea> *Enumerator
<morissette> enum*
<shevy> *u*
<morissette> s/enumerator/enum/ig
<morissette> yay drunken regex
<baweaver> By gracious typecasting maybe, but doesn't really get all the laws in there
<shevy> two similar names ripe to cause confusion
djbkd has joined #ruby
CyborgCygnus has quit [Quit: I hath quit]
<baweaver> A monad is just a monoid in the category of endofunctors
<shevy> lol
<Ox0dea> What's the problem?
<shevy> to me it was explained that a monad is a wrapper over return values
CyborgCygnus has joined #ruby
<shevy> I have no idea what this means but it sounds simpler than the endofunctor monoid
<baweaver> that's about as straightforward as you can get on it honestly.
<baweaver> but still, some pedant somewhere will go over the gamut on it.
<morissette> oh god were geeking out again
stoogenmeyer_ has joined #ruby
<baweaver> functors in ruby are actually kinda handy
<Aeyrix> shevy: that was probably about snark at new users
<morissette> my apologies folks my dealing w/ microsoft drives me to drink + alcoholism
<Ox0dea> >> [1].cycle.size
<ruboto> Ox0dea # => Infinity (https://eval.in/379447)
<morissette> slash join #drunk and hopes for best
<Ox0dea> Is Infinity a monad?
stoogenmeyer has quit [Ping timeout: 244 seconds]
<morissette> i think its a sideways 8 :{
<morissette> :P even
<certainty> >> Infinity.respond_to?(:join)
<ruboto> certainty # => uninitialized constant Infinity (NameError) ...check link for more (https://eval.in/379449)
<baweaver> They still confuse me honestly
<Ox0dea> Tom's video is pretty clarifying.
kerunaru has joined #ruby
mister_solo has quit [Ping timeout: 250 seconds]
<ttilley> morissette: you write PHP. if i were you, i'd never be sober.
<shevy> I am sure there are monads in Infinity Ox0dea
<Ox0dea> Monads are much harder in theory than in practice.
mister_solo has joined #ruby
<ttilley> morissette: possibly suicidal even
ndrei has joined #ruby
<morissette> haha ttilley ive slowed down quite a bit since i had kids but i also write python, rails and node
<certainty> beware the monad tutorial fallacy
<jesterfraud> can we possibly avoid talking about every kind of controversial topic in less than an hour?
* ttilley would rather write C than PHP
<morissette> ttilley: im not like its 6am time to drink anymore lol
Jackneill has joined #ruby
* morissette realizes hes the only one laughing at what is probably a serious problem
<ttilley> i like node. it's absolutely beautiful for IO bound tasks
<morissette> /me seeks help gains addicition to zoloft
<ttilley> though i'm a hipster using iojs instead of nodejs lately
<morissette> and extra space ftw
<baweaver> >> class Functor; def initialize(&fn)@fn=fn end; def method_missing(op, *a, &b) @fn[op, *a, &b] end;module Enumerable;def every;Functor.new do |o,*a| map{|x|x.send(o,*a) } end end end; [1,2,3].every + 3
<ruboto> baweaver # => /tmp/execpad-8f67898e4bbf/source-8f67898e4bbf:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/379456)
<morissette> im 28 too old to be a hipster
fabrice31 has joined #ruby
<morissette> my beard thinks differently though
<ttilley> i'm 31. it was sarcasm. iojs has actually gained significant community support. it's still a fork of nodejs though
<morissette> yeah
<baweaver> >> class Functor; def initialize(&fn)@fn=fn end; def method_missing(op, *a, &b) @fn[op, *a, &b] end;end;module Enumerable;def every;Functor.new do |o,*a| map{|x|x.send(o,*a) } end end end; [1,2,3].every + 3
<ruboto> baweaver # => [4, 5, 6] (https://eval.in/379458)
<baweaver> there it is
<baweaver> missed one end
<baweaver> Functors :D
<morissette> ttilley: got kids? know how to make a 22 mo old go to bed after changing diaper and sitting with him after 30 mins? ..... furberize
vdamewood has quit [Ping timeout: 272 seconds]
<morissette> outside of not having bright shiny laptop in front of them lol
<ttilley> morissette: i've watched a million DVDs on comforting children. in the end i've just spent a lot of money and learned nothing useful.
<Ox0dea> /query ttilley It's very likely the channel would benefit from morissette's absence. Please refrain from engaging him in further conversation.
<Ox0dea> Shit.
<ttilley> my son LOVES gangnam style though
<bnagy> Ox0dea: HAHAHAHAH
<sevenseacat> Ox0dea: lol
<morissette> thanks Ox0dea
<ttilley> even if he's crying like crazy, i put that shit on my iphone and he stops and laughs
<jesterfraud> iojs and node are merging again
<morissette> so umm why no colon after def?
<morissette> better @Ox0dea?
<morissette> what are gems?
<Ox0dea> /query ttilley I told you so.
<ttilley> lol
<Aeyrix> Good work pal.
<morissette> internally how does the interpreter handle lamdas?
<jesterfraud> Ox0dea: /msg I approve
jenrzzz has joined #ruby
IanV0rn has quit [Quit: Textual IRC Client: www.textualapp.com]
stan has joined #ruby
<ttilley> lamdas are a special case of blocks. fucking noob.
<ttilley> pffft
<morissette> :)
<ttilley> :p
<morissette> lol trying to stay on topic so people don't yell @ me at 2am
Xeago has quit [Read error: Connection reset by peer]
DEA7TH has quit [Ping timeout: 252 seconds]
<ttilley> omg, who remembers lambdas and procs in 1.8? serious headaches, am i right? the same syntax meant something completely different in 1.9 and forward
baweaver has quit [Remote host closed the connection]
hemanth has joined #ruby
<ttilley> and special casing of return within a lambda in 1.8
<ttilley> just slit my wrists already
<morissette> and the emo comes out
GnuYawk has quit [Ping timeout: 255 seconds]
<morissette> ohio is for lovers... amirite?
ur5us has joined #ruby
hemanth is now known as howdoi
<ttilley> i mean, who thought it was a good idea for a return within a lambda to return from the calling context in 1.8?
oo_ has quit [Remote host closed the connection]
<ddv> :|
aganov has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Ca1us has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
<ttilley> god this channel is boring at 3am :p
ohaibbq has quit [Quit: Leaving...]
<jesterfraud> I think you mean 5pm
<sevenseacat> it's not 3am everywhere, remember that.
fujimura has joined #ruby
<sevenseacat> 3pm here.
<shevy> this is the wisest cat ever
CyborgCygnus has quit [Quit: I hath quit]
<morissette> ttilley: before my time.... 1997 => perl, 1999 => php, 2009 => ruby, 2010 => python, 2012 => node
CyborgCygnus has joined #ruby
<ttilley> ddv: dont pretend like you don't remember ruby 1.8. i love ruby but there's so much about 1.8 that was just BAD. so bad.
<shevy> this timeline makes me sad
<jesterfraud> I only ever played with 1.9, basically :3
<ttilley> shevy: me too
<morissette> 3am boring yes because of moderators who think im racist / sexist @ sevenseacat
Caius has joined #ruby
<sevenseacat> hello.
<shevy> fight!
ur5us has quit [Ping timeout: 256 seconds]
* jesterfraud makes popcorn
<Aeyrix> Have some of mine.
* shevy steals popcorn
<morissette> :)
<jesterfraud> Aeyrix: how's the fight for ADSL going?
<Aeyrix> jesterfraud: Same old. :(
<morissette> im white who grew up in southie (the ghetto) who moves between genders at will; your turn
<Aeyrix> Got 2mo free 4G though.
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jesterfraud> Straya.
hdev1 has quit [Ping timeout: 252 seconds]
dumdedum has joined #ruby
<jesterfraud> very nice!
<jesterfraud> from whom?
<Aeyrix> Dodo, reselling Telstra.
<Aeyrix> Dodo support > Telstra support
<Aeyrix> despite being 1/4 of the price.
<Aeyrix> I can't fault them.
<ttilley> jesterfraud: you're lucky. the only crime against humanity you have to deal with is refinements
<ttilley> and before anyone else says another word, FUCK refinements
<jesterfraud> no idea what they are?
<morissette> should have put my word a second earlier... dang
<morissette> i think its those nasty smelling tall stacks near ports @ jesterfraud
<shevy> I could not study refinements because the syntax conflicts with the rest of my ruby code
<ttilley> jesterfraud: GOOD. they make arbitrary modifications of code in arbitrary scopes possible, thus making optimization difficult if not impossible in non-MRI implementations of ruby (so they're not supported by jruby or rubinius)
timonv has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Quit: Leaving.]
DynamicMetaFlow has quit [Ping timeout: 264 seconds]
fujimura has quit [Ping timeout: 258 seconds]
Filete has joined #ruby
<morissette> ewww did i hear java briefly mentioned through jruby?
<ttilley> hey now
<shevy> oh
<ttilley> jruby is pretty awesome
<shevy> he likes java
<Aeyrix> Paging baweaver.
<morissette> I work for a Java/Perl shop....
<Aeyrix> Oh, not in here.
<shevy> lol
<ttilley> i hate java, but not the JVM. lots of interesting things run on the JVM.
arooni-mobile has quit [Ping timeout: 256 seconds]
<shevy> morissette what are you doing on #ruby!
<morissette> ttilley: ill give you that one
sharpmachine has joined #ruby
<jgt3> hate is a strong word to use for a programming language
<shevy> you are all in the wrong movie
<morissette> shevy: on my freetime im working on a startup in ROR
<shevy> what freetime
<jgt3> that said, I hate JS
<shevy> you have a kid!
<morissette> and prefer ruby selenium to anything else
<morissette> umm its 2am
<shevy> bedtime
Macaveli has joined #ruby
<morissette> sleep is for the old
ur5us has joined #ruby
strixd has joined #ruby
<morissette> once I hit 30 sure i'll give up
<ttilley> jgt3: true. i had a job where writing java was my primary goal in life. i lasted 3 months. it was not the worst 3 months of my life, but it wasn't my happiest either.
<shevy> you are old when you hit 30 :-)
<ttilley> HEY
<ttilley> i'm 31 ;_;
<morissette> I personally feel if I'm not making millions by 30 im fucked as we move to the leisure age
<morissette> when everything is automated
<Radar> lol
<morissette> Radar: perhaps you don't understand the fute
<ttilley> jgt3: and i actually left that job because they moved me to writing C# for a legacy app and THAT is what killed it for me
<morissette> fute = future
<Radar> morissette: Sorry, my crystal ball is broken right now
<certainty> :)
<jgt3> ttilley: where did you work? Some kind of torture chamber?
<Radar> morissette: They predicted the future you are talking about already, back in the 60s.
<Aeyrix> Radar: Where are your tarot cards?
<Radar> We have no gotten that "leisure age"
<bnagy> this is mind numbing
lessless has joined #ruby
<Aeyrix> ^
<morissette> by 2020 truck drivers and cabs/uber/lyft will be automated
<ttilley> jgt3: hubspot, a marketing company in cambridge
<Radar> in fact, America (in particular) has less leisure time NOW than they did back then.
<bnagy> is there not #boring_assholes_whining or something?
<Radar> because everyone is working on The American Dream
<Radar> Student loans for the young ones, mortgages for the oldies, and part-time jobs for all
<Radar> That's the true America
<morissette> Unfortunately due to technology the american dream barely exists
<Radar> bnagy: Careful.
ruby-lang405 has joined #ruby
<flughafen> package still wont be delivered today, holy cow.
<morissette> me, a non college loan debt student makes 6 figures through studying free knowledge
<ttilley> in georgia there's a woman on trial for murder for taking plan B. america is in collapse.
<bnagy> Radar: no? It's been like a solid hour of offtopic drivel
astrobun_ has quit [Remote host closed the connection]
<morissette> while i know mbas driving uber
<bnagy> I think a little frustration is only reasonable
<certainty> flughafen: die post?
sharpmachine has quit [Ping timeout: 272 seconds]
<Radar> bnagy: wtg on the personal attacks, please do keep it up. That won't result in a +q _at all_
k3asd` has joined #ruby
<Radar> morissette: p.s. #ruby-offtopic
dented42 has joined #ruby
<morissette> hey i tried on topic
<certainty> didn't work out?
jesterfraud has quit [Quit: Page closed]
<morissette> you drove it this way
<flughafen> certainty: dhl
felixjet has quit [Read error: Connection reset by peer]
<Radar> Everyone who wants to talk about offtopic should go there because bnagy has an important discussion about Ruby he wants to have.
<flughafen> beide streikt jetzt
<morissette> conversation is good for the soul
<certainty> flughafen: same shit, no?
<certainty> yeah
<morissette> especially at this time
<Radar> And we all need to pay attention to bnagy because he is important.
<morissette> when most devs arent on
<certainty> flughafen: what are you waiting for?
felixjet has joined #ruby
<flughafen> certainty: a chalk bag for climbingb, it's not a big deal, i have one already, but it's stupid
<Radar> bnagy: I scrolled up and I definitely see your point btw.
<morissette> and @ certainty you have a ruby question im willing to answer or research for you
<ttilley> if someone asks a ruby question i'll switch topic. until then i'm entertaining myself and the conversation here is currently interesting to me. so t(-_-t)
blue_deref has quit [Quit: bbn]
<morissette> which is what this channel is for
<shevy> certainty the flughafen in Berlin is still not finished. he is waiting for it still
<morissette> @ ttilley on the same wave length
perry has quit [Ping timeout: 244 seconds]
CyborgCygnus has quit [Quit: I hath quit]
<Radar> morissette + ttilley we have a whole channel for off-topic discussion. Please take it there.
<certainty> shevy: no way. then he'll never receive it
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
CyborgCygnus has joined #ruby
bartj3 has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
<shevy> haha
<ttilley> jeez. the ruby channels were a lot more fun when there was a split between #ruby and #ruby-lang. what happened?
<certainty> morissette: currently not. I'll get back to you
<shevy> jhass destroyed #ruby-lang
<ttilley> all the killjoys in one place now?
<morissette> Radar: thats cute and all but people are here and i have good convs w/ ttilley
<Radar> Who's next?
<sevenseacat> morissette: we can enforce this.
<Radar> I asked you twice to take it to #ruby-offtopic and you disobeyed.
hanmac has quit [Ping timeout: 265 seconds]
<Radar> Don't PM.
<sevenseacat> morissette: you were asked not to PM.
chinmay_dd has quit [Remote host closed the connection]
dhjondoh has joined #ruby
<Radar> 15 minute time out.
bartj3 has joined #ruby
ruby-lang405 has quit [Ping timeout: 246 seconds]
perry has joined #ruby
CyborgCygnus has quit [Client Quit]
<certainty> xD
juanpaucar has joined #ruby
ta has joined #ruby
hdev1 has joined #ruby
<sevenseacat> do we need a naughty corner or something?
<Radar> sevenseacat: That's what +q is for.
<certainty> yeah a naughty stairway
RegulationD has joined #ruby
<sevenseacat> moral of the story: don't drink and IRC.
<Radar> ^
<Aeyrix> bnagy: I should be opped in that channel.
<Radar> bnagy: I apologise. I thought that he had only been going for a short time and not an entire hour.
<Ox0dea> >> class Fixnum; alias +@ succ end; ++++0
<ruboto> Ox0dea # => 3 (https://eval.in/379482)
rdark has joined #ruby
<Ox0dea> Is this a bug?
<bnagy> Radar: it's fine. "asshole" is too strong.
rdark has quit [Client Quit]
<Radar> Ox0dea: feature
rdark has joined #ruby
<Radar> Ox0dea: +0 is a positive number, which you're adding 3 to
<Radar> (I wish I was joking)
<Ox0dea> When has anybody ever needed to explicitly mark their numeric literals as positive?
bkxd_ has joined #ruby
<Darkwater> semantics
<bnagy> probably more like 'it would be confusing if the parser didn't grok +1'
<Radar> For absolute positivity that it's a positive number.
<Radar> +1 bnagy
<Ox0dea> But it makes Numeric#+@ break LSP!
juanpaucar has quit [Ping timeout: 255 seconds]
stnly has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
krz has joined #ruby
<Ox0dea> There appears to be no adjectival form of "travesty", but it would apply here.
Xeago has joined #ruby
sdwrage has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
sdwrage has quit [Client Quit]
<bnagy> o_0 cause it's a nouned adjective and nobody ever re-adjectived it
RickHull has quit [Ping timeout: 244 seconds]
<maloik> Radar: now that I catch you online, if you have a few minutes could you take another look at https://github.com/radar/paranoia/pull/239 ? If there's no update that's fine, but if there is or you think it's worth investigating your previous idea, I'd love to know... might have some time today and tomorrow for that
benlieb has quit [Ping timeout: 244 seconds]
charturbater has joined #ruby
<charturbater> who wants to play chess with me?
<Radar> maloik: You only just caught me :)
<Radar> maloik: I will post to the issue
<maloik> perfect, thank you :)
<ljarvis> moin
<maloik> morning
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
rubie has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
<maloik> my mistake for not making it an actual issue btw... should've known I'd discover things I'd need added, such as the #without_deleted scope
hanmac has joined #ruby
<Radar> !ban morissette 1D
<Radar> until the alcohol wears off
<Aeyrix> lmao
<Aeyrix> only takes hours
allomov has joined #ruby
RickHull has joined #ruby
<Radar> maloik: done
<maloik> Cool, will have a look and report my findings
starfox_sf has quit [Ping timeout: 244 seconds]
<Radar> Home time. Have a good night everyone.
<maloik> gn]
<sevenseacat> Radar: see ya tomorrow.
TinkerTyper has quit [Quit: ZNC restarting...]
<Radar> sevenseacat: indeed :)
yeticry has quit [Ping timeout: 250 seconds]
platosha__ has joined #ruby
platosha_ has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
ponga has quit [Quit: Leaving...]
plashchynski has quit [Quit: plashchynski]
andikr has joined #ruby
yeticry has joined #ruby
chinmay_dd has joined #ruby
charturbater is now known as COON_CHEESE
Xeago has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
<morissette> test
bMalum has quit [Ping timeout: 272 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
<shevy> ack
chinmay_dd has quit []
dEPy has joined #ruby
ahmetkapikiran has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<morissette> sevenseacat: : cs what ever plz cal 512-599-3556 to help find mobile
<sevenseacat> uh, what?
bayed has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> !ban morissette !T 1d
morissette was banned on #ruby by ChanServ [morissette!*@*]
morissette was kicked from #ruby by ChanServ [User is banned from this channel]
<COON_CHEESE> if you want to play chess :)
<sevenseacat> stop drinking, go to bed.
<ljarvis> COON_CHEESE: enough
Musashi007 has quit [Quit: Musashi007]
<ljarvis> !ban COON_CHEESE !T 1d
COON_CHEESE was banned on #ruby by ChanServ [COON_CHEESE!*@*]
COON_CHEESE was kicked from #ruby by ChanServ [User is banned from this channel]
<sevenseacat> the banhammer is swift and unmerciful.
astrobun_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<bnagy> ALL PRAISE THE HAMMER
<sevenseacat> why does everyone PM *me* after they get banned, even when I didnt do it?
autrilla_ has joined #ruby
bkxd_ has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
anisha has joined #ruby
Musashi007 has joined #ruby
<shevy> lol
ndrei has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
bkxd has joined #ruby
<shevy> they act on your behalf!
<Ox0dea> What're the arguments against %d(1 2 3) == [1, 2, 3]?
ndrei has joined #ruby
postmodern has quit [Quit: Leaving]
<ljarvis> Ox0dea: is there an argument against it?
<ljarvis> the fact it isn't implemented doesnt count
<Ox0dea> Right, I figured there must be some if it hasn't made its way in yet.
<ljarvis> no, %i() is only recent
ponga has joined #ruby
CyborgCygnus has joined #ruby
<ljarvis> but, since it saves even less characters i'm not sure how useful it'd be
<shevy> perhaps %d has some other meaning
<bnagy> all the rest kind of save typing
<ljarvis> ^
<bnagy> %d would actually be longer, right?
<maloik> you type too quick, I was going to make an equally clever remark
<ponga> this cute ruboto in this channel, can i have my own irc ruboto?
<ponga> is there source out there?
<maloik> not longer, the more elements the more typing you save (a comma each element)
<ljarvis> ponga: no it's private
<ponga> >> puts "im cute"
gkra has joined #ruby
<ruboto> ponga # => im cute ...check link for more (https://eval.in/379507)
<ponga> damn it
<bnagy> maloik: touche
<ljarvis> true true
<shevy> Ox0dea have you found a suggestion for it yet? Ox0dea
<Ox0dea> I don't understand how any of you looked at it and thought the %d form was longer...
<shevy> sorry
krisquigley has joined #ruby
<shevy> I meant to paste this: https://bugs.ruby-lang.org/projects/ruby-trunk
<ponga> shevy: please make alternative ruboto
jph98 has joined #ruby
<ponga> i beg you
<maloik> and to say I fell over because sleepdrunk just an hour ago
<shevy> ponga but I am so lazy :(
jenrzzz has quit [Ping timeout: 258 seconds]
aytch has joined #ruby
CyborgCygnus has quit [Client Quit]
<ljarvis> Ox0dea: nobody said it was longer
<ljarvis> maloik: wow.. wednesday is party night huh?
aapole has joined #ruby
allenn has joined #ruby
<maloik> lol, not quite :)
<maloik> I don't party during the week, got too old for that
Hounddog has joined #ruby
<maloik> hell it's been like 6 weeks since I've had more than one drink in an evening
<ljarvis> that is the harsh truth
<ljarvis> I'm the same
<ljarvis> but it's been about 3 months
* sevenseacat trying to remember the last alcoholic beverage
<maloik> any particular reason for it?
<sevenseacat> probably new years eve.
<maloik> people always ask me and are then surprised I do it just for climbing :D
aytch has quit [Remote host closed the connection]
<ljarvis> I struggle with time. Need to outsource my drinking
coderhs has joined #ruby
<maloik> hahaha
charliesome has quit [Quit: zzz]
oo_ has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
<shevy> this is one sober cat
aytch has joined #ruby
oo_ has joined #ruby
<shevy> ljarvis you could wear those hats with the beer connected
aytch has quit [Remote host closed the connection]
<ljarvis> hah. Yeah I guess time shouldn't really matter. I just replace water/tea I drink at work with beer instead. Seems like the theory might have some holes in it though
<maloik> you'd get funny looks
coderhs has quit [Client Quit]
<ponga> shevy: do you know what's behind interpreter for the code 10.times.to_a
<maloik> better off adding whiskey to your tea, or replacing water with vodka
<maloik> no smell!
symm- has joined #ruby
<ponga> i always thought times is just for loop in simple
<ponga> >> 10.times.to_a
<ruboto> ponga # => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] (https://eval.in/379509)
krz has joined #ruby
<ljarvis> maloik: good shout
* maloik takes a sip of a clear, smell-less beverage
<shevy> ponga no idea... I am studying the IRB source code, and it already is very confusing
<maloik> odorless
<maloik> that's the one I was after
<shevy> CompletionProc = proc { |input|; bind = IRB.conf[:MAIN_CONTEXT].workspace.binding
<Ox0dea> ponga: #times returns an Enumerator.
<Ox0dea> >> x = 10.times; [x.next, x.next]
<ruboto> Ox0dea # => [0, 1] (https://eval.in/379510)
apofis has joined #ruby
<ponga> Ox0dea: so they are adding every x to the empty array then?
<Ox0dea> No, not quite.
<shevy> ponga but it is funny because you learn a lot when you read code like that
<shevy> for instance:
<ljarvis> it's not an array until you turn it into one with .to_a
<shevy> # Set of available operators in Ruby
<shevy> Operators = %w[% & * ** + - / < << <= <=> == === =~ > >= >> [] []= ^ ! != !~]
<Ox0dea> shevy: I see some are missing.
<shevy> wat
<flughafen> mongoponga
<shevy> which one is missing
msgodf has joined #ruby
<Ox0dea> All of the compound assignment operators.
<ponga> flughafen: i actually prefer ponga => pinga
<ponga> next time make it better
joelataylor has joined #ruby
<flughafen> ponga ponga
<adaedra> Hello
<flughafen> i'll work on it next time
<ponga> anyway hi flughafen
<flughafen> sup adaedra
<adaedra> sky
<flughafen> that's what I like to hear!
<ponga> flughafen: IIRC its from an old tradition that when you check your ping you type in ping? and response is pong!
<shevy> skyadaedra
<flughafen> pinga ponga
<ponga> gud
<shevy> lol
<flughafen> terrible latency
<ponga> damn it
<shevy> well it goes slow over to korea
<shevy> because it is far far away :)
<ponga> im reposing from another country sir
<shevy> where are you located right now?
<ponga> *responsing
marr has joined #ruby
<ponga> sth korea
<ponga> nz next month
granthatcher has joined #ruby
<ponga> still far away from major western nations
<shevy> aha you travel around the world man
<shevy> are you in nz for work?
<ponga> yeah i will move to japan next
Musashi007 has quit [Quit: Musashi007]
* flughafen would love to live in japan for a little while
<ponga> casual work at pubs and catching up my good old friends
sharpmachine has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
pyo_ has joined #ruby
ki0 has joined #ruby
<ponga> shevy: so basically im having holiday
ndrei has quit [Ping timeout: 276 seconds]
<Aeyrix> I need one of those.
<Aeyrix> Thinking of taking a trip to Tokyo.
<flughafen> i mightg go to the tokyo auto salon in january
maasha has joined #ruby
sharpmachine has quit [Ping timeout: 244 seconds]
<maasha> what is the latest active shoes project?
yfeldblu_ has quit [Ping timeout: 256 seconds]
balazs has joined #ruby
aytch has joined #ruby
dhialife has quit [Quit: Leaving]
<maasha> shoes4?
<maasha> greenshoes?
<ponga> i tried shoes the other day, couldn't figure it out so i had to use java swing
<ljarvis> shoes4
krisquigley has joined #ruby
<shevy> ponga I see
<ponga> next time i will learn python if i needed gui
<maasha> shoes4 requires jruby :o(
<bosnia> Maybe someone could give me a hand. I'm on Win64, 2.2.2p95 x64 and using rufus-scheduler. getting: ArgumentError: not a valid cronline : '52 0 * * *'
joelataylor has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
<ponga> are you in germany shevo
<bosnia> it worked before I reinstalled
<bosnia> windows
<maasha> ponga: if you fail with shoes it is pretty bad :o)
<bosnia> checking source code the error comes up when the '52 0 * * *'.split.length isn't 5
ahmetkapikiran has joined #ruby
<shevy> ponga nope, a bit south; Austria, Vienna
<ponga> maasha: i found java swing easier than shoes , i know you guys will call me nuts for this
<maasha> .oO(nuts)
<ponga> wow you live in an awesome place shevy
yaw has joined #ruby
edwinvdgraaf has joined #ruby
n008f4g_ has joined #ruby
<shevy> ponga many years ago, my family travelled through some far away countries; I remember when we were in Seoul, it was extremely cold; the bulgogi they served there was great though. What I liked most was dolsot bibimbap actually
Guest72543 is now known as jesterfraud
<ponga> shevy: so you basically had " you can't seriously fail this" food
balazs has quit [Ping timeout: 265 seconds]
<bosnia> bibimbap for breakfast every day when I went to Seoul
<shevy> hehe
<bosnia> Seoul was wonderful
<Aeyrix> I want to trek around sk
hubcaps has joined #ruby
<shevy> bosnia why were you in Seoul?
<bosnia> vaca
<bosnia> went around Asia 1 month
<ponga> shevy: you had to try living dancing baby octopus chopped up in front of you
<bosnia> was a peaceful place compared to Hong Kong and mainland China major cities
<ponga> korea more peaceful than hong kong?
<ponga> interesting
<bosnia> ha is that a joke
<jesterfraud> assuming you mean South Korea?
<jesterfraud> (Seoul, of course South)
<ponga> i didn't mention which korea it is !
<ponga> lol
<bosnia> yeah vacationed in work camp in north korea
<ponga> i still remember the aussie telegraph mentioning olympic scores with "good korea" and "bad korea"
<ponga> looks like it were easier to grasp than regional difference to aussies
<Aeyrix> Lmao
<Aeyrix> Can confirm.
allomov has quit [Remote host closed the connection]
mandarinkin has joined #ruby
RegulationD has joined #ruby
chthon has joined #ruby
<shevy> ponga oh yeah, you guys have to unify korea, the germans managed to do so as well :)
<ponga> whenever i escort a western dude in seoul i feed him exotic food once and laugh at him
<ponga> *mean korean
<bosnia> oh you live there ponga ?
<ponga> I AM KOREAN
msgodf has quit [Ping timeout: 256 seconds]
<shevy> exotic food
<bosnia> I liked how easy it was to learn to read the language
<ponga> yeah
<bosnia> I did it on the plane ride from Shanghai
<shevy> we somehow ended up in Beijing, in some less frequented area; they did not speak much english, so we ordered something
tvw has joined #ruby
ndrei has joined #ruby
<ponga> bosnia: a king in 17 century thought chinese characters was fucked up and created the whole system on his own
<shevy> ended up serving us a crab that was still sort of alive, uncooked
<bosnia> yeah it's cool the history
<bosnia> Japan needs to get its shit together
<ponga> then he built a department solely on keeping its version updated
<shevy> I think they were pulling a prank on us
<ponga> so it's a written system artificially created and managed, just like programming
<ponga> yay
<bosnia> useful to match like train stations or food recognition
<bosnia> instead of pointing
n3vtelen has joined #ruby
<shevy> well it's better than those chinese letters
<Ox0dea> ponga: Just like all language!
<ponga> Ox0dea: no you guys failed at finding out that small l big I look same
Abhijit has joined #ruby
<ponga> we did it better
<Ox0dea> bosnia: The kana aren't particularly hard to learn, and you could theoretically get by with them.
wald0 has joined #ruby
Abhijit has left #ruby [#ruby]
axl_ has joined #ruby
axl__ has joined #ruby
<bosnia> yeah right did japn 101
<bosnia> wasn't /that/ hard but does require a lot more focus
<bosnia> isn't trivial to learn like korean
<ponga> bosnia: so you learnt how to read korean letter and used it in vacation?
<bosnia> yeah
<bosnia> I actually had learnt them before when watching brood war streams back in the day
RegulationD has quit [Ping timeout: 250 seconds]
<bosnia> to recognize player names
<ponga> haha who's your favourite
<shevy> lol
<bosnia> Jung Myung Hoon fighting~~
<n3vtelen> in this program my else doesn't work: https://gist.github.com/anonymous/071a6217f03ff7f4a463
<bosnia> I came around when Fantasy was trashing everyone
<ponga> cool cos everyone's like "OH Flash is god" and so , mine is Nal_ra
<shevy> n3vtelen, and what is phons_array
<shevy> we can not reproduce your code because you do not tell us what is phons_array
<ponga> i think when japanese abandons kanji and adopt spacing, it'd be much easier
<shevy> do you think this will ever happen
<n3vtelen> that is not my code
<n3vtelen> it's for my friend
<shevy> <n3vtelen> in this program my else doesn't work:
<shevy> "my else"
<n3vtelen> sorry
<shevy> ruby is logical
<n3vtelen> I should told "a friend of mine"
<shevy> if the else-clause is not triggered
<shevy> then the if-clause must evaluate to true
<adaedra> Yeah, don't stole someone else else, it's mean
<shevy> so, the part "if emeleytor[0] == user_select_name && emeleytor[1] == user_select_lastname" must be true
<bosnia> SWIM wrote this program...
<bosnia> ruby isn't illegal not yet
<shevy> alternativey, phons_array is an empty Array
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> *alternatively
<shevy> so check on these two possibilities
pikos has joined #ruby
mister_s_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<shevy> puts 'Empty array!' if phons_array.empty?
edwinvdgraaf has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<n3vtelen> that's the code
Xeago has quit [Remote host closed the connection]
commondream has joined #ruby
hedgecore has quit [Ping timeout: 244 seconds]
intinig has joined #ruby
<shevy> and what does not work
<shevy> you iterate over all elements
intinig has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<shevy> first run, it outputs the if-clause
<shevy> second run, it outputs the else-clause
terlar has quit [Quit: WeeChat 1.2]
<bosnia> ran it can confirm
terlar has joined #ruby
oo_ has joined #ruby
mister_solo has quit [Ping timeout: 250 seconds]
glcx has quit [Changing host]
glcx has joined #ruby
noethics has quit [Ping timeout: 276 seconds]
edwinvdg_ has joined #ruby
<n3vtelen> ok, I'm confused
Zai00 has joined #ruby
commondream has quit [Ping timeout: 276 seconds]
<bosnia> What was the specific error or problem that prompted the question?
edwinvdgraaf has quit [Ping timeout: 245 seconds]
lessless has joined #ruby
mrsolo_ has joined #ruby
bruno- has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
spider-mario has quit [Ping timeout: 252 seconds]
<n3vtelen> that only prints `your user not exist`
bruno- has quit [Read error: Connection reset by peer]
<n3vtelen> but ok with first one
<n3vtelen> `tavakkoli09213380329`
DoubleMalt has joined #ruby
mrsolo_ has quit [Client Quit]
charliesome has joined #ruby
mrsolo_ has joined #ruby
aapole has quit [Ping timeout: 256 seconds]
xehbit has quit [Max SendQ exceeded]
xehbit has joined #ruby
bin_005 has joined #ruby
xehbit has quit [Max SendQ exceeded]
dEPy has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
parduse has joined #ruby
mrsolo_ has quit [Client Quit]
pardusf has quit [Ping timeout: 265 seconds]
symm- has quit [Quit: Leaving...]
mrsolo_ has joined #ruby
ta has quit [Remote host closed the connection]
nym has quit [Quit: Connection closed for inactivity]
xehbit has joined #ruby
solars has quit [Ping timeout: 276 seconds]
maxshelley has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
noethics has joined #ruby
CustosLimen has quit [Ping timeout: 276 seconds]
tvw has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 276 seconds]
intinig has joined #ruby
lkba has joined #ruby
conta has joined #ruby
timonv has joined #ruby
<maloik> We're looking to output the string version of a regexp into a configuration file using Chef, but escaping slashes is a bit funny... anyone have an idea on how to do that? We basically want to turn "/foo/index.html" into "\/foo\/index\.html", but the input string is dynamic so we were using gsub
<maloik> >> Regexp.new("/\/foo/").to_s
<ruboto> maloik # => "(?-mix:\\/\\/foo\\/)" (https://eval.in/379526)
<maloik> that is also not quite what I was expecting
<maloik> particularly the ?-mix: part
benlovell has joined #ruby
<ljarvis> >> Regexp.escape "/foo/index.html"
houhoulis has quit [Remote host closed the connection]
<ruboto> ljarvis # => "/foo/index\\.html" (https://eval.in/379534)
<ljarvis> hm
<ljarvis> >> Regexp.new(Regexp.escape("/foo/index.html"))
<ruboto> ljarvis # => /\/foo\/index\.html/ (https://eval.in/379536)
<ljarvis> maloik: ^
dmolina has joined #ruby
Mon_Ouie has joined #ruby
<apeiros> maloik: .inspect
<apeiros> maloik: also the to_s variant is a valid regexp, just interpolate it into //
<ljarvis> ah you wanted a string
<ljarvis> d'oh
<maloik> yea we need a string :/
<ljarvis> >> Regexp.new(Regexp.escape("/foo/index.html")).inspect
<ruboto> ljarvis # => "/\\/foo\\/index\\.html/" (https://eval.in/379542)
<apeiros> i.e., /#{/foo/.to_s}/ is equivalent to /foo/
<apeiros> even if it looks fancy
msgodf has joined #ruby
<ljarvis> but yeah as apeiros says, the (?-mix) stuff is fine
<apeiros> the -mix is carrying all the flags of the regex
<apeiros> (basically says -m, -i, -x, i.e. without m flag, without i flag, without x flag)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
<maloik> hmm okay
<maloik> let's see if this helps
<apeiros> the reason it looks like that is that this allows a regex to be interpolated into another regex
<apeiros> couldn't do it if it looked like /foo/
<maloik> I think I didn't explain the requirements correctly though but let me just play around real quick
_blizzy_ has quit [Quit: Leaving]
intinig has quit [Remote host closed the connection]
allomov has joined #ruby
_blizzy_ has joined #ruby
Macaveli has joined #ruby
intinig has joined #ruby
CustosLimen has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
_blizzy_ has quit [Client Quit]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
_blizzy_ has joined #ruby
shredding has joined #ruby
solars has joined #ruby
oo_ has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 265 seconds]
shredding has quit [Client Quit]
platzhirsch has joined #ruby
oo_ has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
intinig has quit [Ping timeout: 250 seconds]
<n3vtelen> I need to loop over a array
zenguy_pc has joined #ruby
shredding has joined #ruby
Scroff has joined #ruby
ESpiney_ has joined #ruby
<Ox0dea> maloik: Does foo.gsub('/', '\\/') not do what you need?
ndrei has joined #ruby
<ponga> is that regex in gsub() bracket
<n3vtelen> then If the contact found loop breaks else prints "contact doesn't exist"
bruno- has joined #ruby
<apeiros> n3vtelen: Array#find
<maloik> Ox0dea: results in too many slashes
<Ox0dea> maloik: Are you sure?
<Ox0dea> >> '\\'.size
<ruboto> Ox0dea # => 1 (https://eval.in/379554)
pikos has quit [Remote host closed the connection]
juanpaucar has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Max SendQ exceeded]
pikos has joined #ruby
zenguy_pc has joined #ruby
ESpiney has quit [Ping timeout: 252 seconds]
Silent__ has joined #ruby
Scroff has quit [Remote host closed the connection]
zenspider_ has joined #ruby
nickfausnight has quit [Quit: Connection closed for inactivity]
<apeiros> n3vtelen: that will print "doesn't exist" on every iteration.
lessless has joined #ruby
plashchynski has joined #ruby
<apeiros> n3vtelen: as I said, take a look at Array#find
sharpmachine has joined #ruby
zenspider_ is now known as zenspider`
shamangeorge has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<maloik> colleague is testing the ?-mix solution, but is afraid it won't work because it's a varnish config using the regexp
Hobogrammer_ has quit [Read error: Connection reset by peer]
zenspider has quit [Read error: Connection reset by peer]
astrobun_ has quit [Read error: Connection reset by peer]
ledestin has quit [Read error: Connection reset by peer]
<apeiros> n3vtelen: sorry, I thought Array had its own copy. it inherits it from Enumerable: http://ruby-doc.org/core-2.2.0/Enumerable.html#method-i-find
astrobun_ has joined #ruby
iamninja has joined #ruby
polysics has joined #ruby
jph98 has left #ruby [#ruby]
juanpaucar has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
PierreRambaud has quit [Remote host closed the connection]
Ox0dea has left #ruby ["WeeChat 1.3-dev"]
pikos has quit [Ping timeout: 250 seconds]
CyborgCygnus has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Quit: Leaving]
sharpmachine has quit [Ping timeout: 255 seconds]
_blizzy_ has joined #ruby
zenspider` is now known as zenspider
chthon has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
balazs has joined #ruby
PierreRambaud has joined #ruby
Miphix has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
Scroff has joined #ruby
<n3vtelen> apeiros: `contacts.find { |i| i[0] == 'shahryar' and i[1] == 'tavakkoli' }`
<apeiros> n3vtelen: yupp, like that
ledestin has joined #ruby
bronson_ has quit [Remote host closed the connection]
<n3vtelen> but it doesn't return anything
<canton7> use '&&', not 'and'
<canton7> (it likely won't matter here, but it will bite you at some point)
<maloik> ljarvis: are you doing arrrrcamp this year?
starfox_sf has joined #ruby
<maloik> (you should, and you should get a ticket quick before early birds are gone :P)
bruno- has quit [Read error: Connection reset by peer]
tvw has joined #ruby
balazs has quit [Ping timeout: 256 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkang has quit [Remote host closed the connection]
bruno- has joined #ruby
yoongkang has joined #ruby
arup_r has joined #ruby
mister_s_ has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
starfox_sf has quit [Ping timeout: 246 seconds]
<apeiros> n3vtelen: you should test whether find returned a contact or nil
<n3vtelen> how?
<apeiros> if included then …your puts… else puts "not found" end
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
chthon has joined #ruby
fusillicode1 has joined #ruby
fusillicode1 has left #ruby [#ruby]
bruno- has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby
fusillicode has left #ruby [#ruby]
lessless has joined #ruby
bruno- has joined #ruby
<apeiros> looks good
<n3vtelen> does ruby have a standard way to write codes?
RegulationD has quit [Ping timeout: 255 seconds]
<n3vtelen> like find enumerator
multi_io has quit [Ping timeout: 264 seconds]
<n3vtelen> 4 spaces?
<PierreRambaud> n3vtelen, some coders like use rubocop, others have their own way to develop :)
plashchynski has quit [Quit: plashchynski]
fabrice31_ has joined #ruby
<n3vtelen> n3vtelen: thanks
multi_io has joined #ruby
<adaedra> community guidelines say 2 spaces
alex88 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<arup_r> Suppose I have a string likes `'first_name ASC'` .. how can I add one string like `'COUNT(votes.id)'` and get this `'first_name COUNT(votes.id) ASC'` finally ?
<n3vtelen> adaedra: look at this: http://paste.ofcode.org/vYLjsRGPZ5HxAk24iM5TdL
<adaedra> remove the `then`
mrsolo_ has quit [Quit: Leaving]
<n3vtelen> adaedra: after `contacts.find`
<adaedra> anyway, what am I supposed to look at ?
bruno- has joined #ruby
stoogenmeyer_ has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 255 seconds]
hectortrope has joined #ruby
stoogenmeyer_ has joined #ruby
<n3vtelen> adaedra: how much spaces is needed after that
<n3vtelen> adaedra: I mean `contacts.find`
<adaedra> looks good like it is
soasme has quit [Remote host closed the connection]
soasme has joined #ruby
vadviktor has quit [Remote host closed the connection]
pyo_ has quit [Ping timeout: 264 seconds]
<arup_r> thanks.. I did it other way
soasme has quit [Remote host closed the connection]
soasme has joined #ruby
shamangeorge has quit [Remote host closed the connection]
pikos has joined #ruby
fabrice3_ has joined #ruby
OrbitalKitten has joined #ruby
fabrice31_ has quit [Ping timeout: 264 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
fujimura has joined #ruby
<alem0lars> I'm trying to execute "bundle install --deployment" in the following project: https://github.com/alem0lars/fizzy
ndrei has quit [Ping timeout: 256 seconds]
<alem0lars> However I get the following error: https://gist.github.com/alem0lars/5a59eb4337ef3881efe7
<alem0lars> But I can't figure out what I'm doing wrong
<alem0lars> Just running "bundle install" everything works fine
<adaedra> prefix your command with bundle exec
<alem0lars> bundle exec bundle install --deployment ?
<alem0lars> adaedra: I get the same error
<adaedra> it's bundle install which throws this error?
<alem0lars> IDK
j4cknewt has joined #ruby
<alem0lars> The strange thing is that after running "bundle install --deployment" I always get that error (even if I run "bundle install" or anything). When I remove .bundle directory I don't get that error anymore, but when I retry to run "bundle install --deployment" I start getting that error again
<adaedra> what commands give this error
<alem0lars> bundle install --deployment
mister_solo has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
kraljev11 has joined #ruby
kraljev11 is now known as kraljev12
AndyM has joined #ruby
dionysus69 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<AndyM> Hello? I have a quick question about class instance variables and concurrency. Is anyone here that could help?
<maloik> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<AndyM> Cool
stamina has joined #ruby
<maloik> bad timing for me as I have to run out for food, but there's plenty of helpful people
<ccooke> Indeed
<AndyM> So I'm doing Rails but the question is not specific to it: I read upon thread-safe practices and everywhere people wrote to watch out for class instance variables since they can make your code thread unsafe.
<AndyM> Still I couldn't really figure out why because the short explanations didnt make much sense to me.
bruno- has joined #ruby
ndrei has joined #ruby
<apeiros> AndyM: the location or scope of a variable doesn't matter
mister_solo has quit [Ping timeout: 255 seconds]
<apeiros> AndyM: what matters is whether it is shared across threads
<AndyM> yes
<ccooke> AndyM: The main thing is that they can be changed by one instance of a class in one thread, and affect the instance you're working on.
<apeiros> class ivars are just very likely to be shared
<ccooke> Aye. Any variable that could be updated in multiple places is a potential issue.
mister_solo has joined #ruby
<AndyM> you mean for example if i intialize an object and use it in different threads?
yfeldblum has joined #ruby
<ccooke> AndyM: no. Class ivars are visible to *every* object made from the class
<ccooke> AndyM: so you can make one object in thread 1, another in thread 2. If the object in thread 2 does something to change a class ivar, the change will affect thread 1.
<apeiros> ccooke: um, not correct. ivars are never visible outside the object they belong to (I know what you mean, but that's not "visible")
<AndyM> exactly apeiros
<ccooke> apeiros: "likely to affect the behaviour of". Better?
<AndyM> Class instance variables belong to the instance of the object. I'm not talking about class variables
<apeiros> not sure. struggling myself to find proper wording. might be the headache, though.
<apeiros> AndyM: your class is probably assigned to a constant, right?
<adaedra> apeiros: still ill?
<AndyM> um yes
<bnagy> AndyM: no, they don't
<apeiros> AndyM: and that constant is probably not used by just single thread
<bnagy> class instance variables belong to the class
<ccooke> AndyM: In Ruby, there are Class variables and Class instance variables.
<bnagy> the instance has its own ivars
<ccooke> AndyM: both of these are associated with the class.
<apeiros> AndyM: which means you're sharing mutable state across threads.
<bnagy> nobody has talked about classvars yet, so best not to start
<ccooke> AndyM: maybe the issue here is terminology?
<AndyM> oh wait
<ccooke> bnagy: no, it is useful. I think we have a terminology disconnect here.
<apeiros> and as said before - with threads, that's the issue: sharing mutable state.
<AndyM> you're right, the class itself can have class instance variables
<bnagy> ccooke: not realy, the issue is between class @ivars and "normal" @ivars
troulouliou_dev has joined #ruby
<apeiros> where that state is stored, or how it is accessed doesn't matter.
n008f4g_ has quit [Ping timeout: 252 seconds]
<bnagy> @@classvars is just going to make it even more confusing imho :)
<AndyM> and objects that are created from it have their own instance variables
<apeiros> adaedra: not ill, no. I just have frequently headaches. it's annoying, but it passes.
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ccooke> bnagy: Yes. But AndyM is talking about class ivars as if they are instance ivars.
<apeiros> class ivars are instance ivars
<bnagy> AndyM: very strictly speaking there's nothing that makes class ivars a threadsafety issue
<apeiros> there's not really a point in making a distinction
<bnagy> per se
<AndyM> yes, i think i mixed those up
tvw has quit []
<ccooke> AndyM: The point that thread safety depends on sharing more than anything else still stands, though
<bnagy> any shared access to objects across threads can cause trouble, basically
hdev1 has quit [Read error: Connection reset by peer]
tvw has joined #ruby
<AndyM> yes i know.
hdev1 has joined #ruby
<ccooke> AndyM: class ivars are more likely to be shared, and if you want thread safety you should protect all writes to them with locking
<bnagy> your're safe enough if it's readonly though
mrsolo_ has joined #ruby
<apeiros> AndyM: so what part are you having issues with?
axsuul has quit [Ping timeout: 276 seconds]
<bnagy> if it's not readonly you probably have a design problem
<bnagy> but you're using Rails, so I guess that's a given
aapole has joined #ruby
dhjondoh has quit [Remote host closed the connection]
<AndyM> wait, i have to form a proper question :D
<AndyM> ok i'll just repeat what i understand:
<AndyM> Classes have instance variables and objects instanciated from those classes also have instance variables.
benlovell has quit [Read error: No route to host]
mrsolo_ has quit [Client Quit]
chussenot has joined #ruby
<bnagy> you can reduce that to "objects have instance variables"
<AndyM> So if you use an object only in one thread and you dont share it the instance variables in it are safe
sharpmachine has joined #ruby
<bnagy> some objects happen to be classes
<AndyM> bnagy dont confuse me :D
<apeiros> AndyM: so far correct
<AndyM> i know, in ruby everything is an object
soasme has quit [Quit: Leaving...]
<apeiros> that, otoh, is not correct ;-)
* bnagy glares
<bnagy> sssh ;)
<AndyM> but in rails for example every request makes rails instanciate an object from my controller class
<AndyM> in a multithreded environment every thread deals with one request a time
dhjondoh has joined #ruby
<apeiros> not necessarily
<AndyM> that means every thread makes an instance of the class
<apeiros> but yes, rails will use a single thread to process a single request
<AndyM> so i dont have to care about the instance variables of that object
<bnagy> pretty much ok so far, carry on
<ccooke> AndyM: of that object, no.
matcouto has joined #ruby
<AndyM> all i have to care about are the instance variables of the controller class itself
<AndyM> right?
<bnagy> well you can't "accidentally" access those from an instance
<ccooke> if your assumptions are correct, then yes
Xeago has joined #ruby
<bnagy> you'd have to do something like self.class.instance_variable_get or something
<AndyM> yes
<bnagy> so you'd have to explicitly code for it
<AndyM> i also have a lot of models
<AndyM> that i'm messing with
sharpmachine has quit [Ping timeout: 255 seconds]
<AndyM> my model classes have class instance variables
<bnagy> this is getting railsy, I'm scared :<
<ccooke> bnagy: or call a method on the class that alters a class instance variable.
<AndyM> that i'm accessing in my controllers
<AndyM> sorryyy :D
edwinvdg_ has quit [Remote host closed the connection]
<AndyM> ccooke but that method would need to be a class method, right?
stamina has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<bnagy> uhhhh... kiiinda...
<ccooke> AndyM: to access a class instance variable, you will have to call at least one method from the class object, yes
<bnagy> you have to do _something_ to get visibility of them
<AndyM> yes, unless you call these weird class_instance_variable_get methods
<ccooke> AndyM: that accesses the class, it just (at most) hides it from you
lkba_ has joined #ruby
<AndyM> if my class would be called MyClass
<AndyM> and it has an instance variable called @var
<AndyM> i could get this variable by calling MyClass.var in the MyClass code
jmhmccr has joined #ruby
<AndyM> (although that's terrible)
<bnagy> nope
<bnagy> not without other scaffolding
<apeiros> > AndyM: yes, unless you call these weird class_instance_variable_get methods
<AndyM> ok maybe i need an accessor
<apeiros> that's calling a method too ;-)
<ccooke> AndyM: you would only be able to do that if a var method had been defined on MyClass to return it
<AndyM> oouukaaay
lkba has quit [Ping timeout: 265 seconds]
<AndyM> now i see
<AndyM> it was just mixed up terminology
justintv90 has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
<AndyM> you dont' have to care about instance vars of objects if you dont share the object itself between multiple threads
bruno- has joined #ruby
<ccooke> If you *are* using something like MyClass.var to get some data, then that *is* calling the class and *might* be accessing a class instance variable that *definitely could* be a thread safety risk
edwinvdg_ has joined #ruby
<AndyM> yes
<bnagy> you don't have to care about concurrent access to anything unless the thing is shared between threads
<ccooke> AndyM: that is true. Just remember that the class is also an object and definitely *is* shared across threads.
<AndyM> but you should care about the instance variables of the class because they are definitly shared everywhere you want (at least in Rails)
<AndyM> yes
balazs has joined #ruby
<ccooke> In any mulitthreaded code
<AndyM> that actually makes sense :D
<ccooke> Leave Rails out of it, it seems to make bnagy and apeiros twitch. And we should be kind to apeiros at least, since they have a headache ;-)
<apeiros> it doesn't make me twitch, no
<AndyM> k sawry
<bnagy> I just don't think it's a good pattern to use your class as a storage closet
<apeiros> but rails is irrelevant to the issue
<ccooke> It is, yes
<bnagy> except they built a whole framework around doing that
krz has quit [Ping timeout: 258 seconds]
<AndyM> yes it is
<ccooke> bnagy: the behaviour we're talking about is not bad behaviour, whether it's in rails or not.
bronson_ has joined #ruby
<bnagy> that's a whole different debate
<ccooke> Classes are objects. Classes get shared across threads. Making objects from those classes means having to think about thread safety.
<bnagy> I disagree, but I don't really want to fight about it
<ccooke> (but hey, using threads means having to think about thread safety)
plashchynski has joined #ruby
CyborgCygnus has quit [Quit: I hath quit]
<AndyM> thank you guys
<AndyM> my laundry is ready
<bnagy> if you keep state in state-storing-things then it's much more obvious that you need threadsafe access to them
edwinvdgraaf has quit [Ping timeout: 272 seconds]
<bnagy> AndyM: re HOW, ccooke already mentioned Mutex, there's also Queue
<ccooke> Indeed
<apeiros> and Monitor
<bnagy> imho those two can manage 99% of concurrency problems
<ccooke> Queues make things so much simpler
<bnagy> there are more esoteric ones :/
DoubleMalt has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 245 seconds]
<bnagy> AndyM: Mutex has a nice method synchronize, so like @mut.synchronize { #shared access to something }
<AndyM> yes i also read about that
<AndyM> but mutexes reduce concurrency
<bnagy> I prefer to write with Queues, but I don't have a religious viewpoint about whether it's better
chinmay_dd has joined #ruby
<AndyM> and i dont need to use queues either
<bnagy> they don't reduce it, they just enforce serial access to shared stuff
<AndyM> the best approach in my situation is simply improving code
<apeiros> AndyM: during a synchronized code block, other threads can still execute
<bnagy> avoiding the problem in the first place is definitely the winner
<apeiros> they just can't enter the same mutex
davidhq has joined #ruby
<AndyM> bnagy but that most likely inhibits parallel execution, right?
<apeiros> AndyM: no, see ^
<bnagy> it miiiight
bronson_ has quit [Ping timeout: 244 seconds]
<bnagy> if you have crazy lock contention, but you hopefully don't
bruno- has quit [Read error: Connection reset by peer]
<apeiros> it only inhibits concurrent execution if ALL your code wants to execute the same synchronized block
thebastl has joined #ruby
<AndyM> yes i know that unaffected threads are not concerned
<bnagy> if you get to that point then you redesign anyway
<apeiros> and yes, that means you should make your syncs narrow
psy_ has quit [Ping timeout: 264 seconds]
<ccooke> If you need exclusive action, use Thread.exclusive {}. For anything else, assume that other threads *might* take action.
Rickmasta has joined #ruby
RegulationD has joined #ruby
<apeiros> ccooke: Thread.exclusive is a no-no
<apeiros> don't use it
<AndyM> but especially in my "situation" the chance is very high that it eventually affects concurrency
<AndyM> if you simply use mutexes
<apeiros> you only use it if you're building threading primitives. i.e. if you write a class like Mutex itself.
<ccooke> apeiros: I use it for one thing only (which is code that needs to redefine and reload an entire system). There it's essential. Nowhere else.
sarkyniin has joined #ruby
<AndyM> say if you have 10 000 requests and all objects need to access the same shared variable
<bnagy> if they need RW access to it then you're kind of boned
<AndyM> yes
<bnagy> most people use copies or sharding or whatever then
<AndyM> reading only is no problem
<bnagy> but it becomes fiddly
<AndyM> but then you can use constants
<ccooke> apeiros: Mostly in a bit of code that checks and reloads all the .rb files that have been modified. You definitely don't want any other code executing during that :-)
<bnagy> imho push it out to a system that's built for that ( like a cache / db / whatever )
ndrei has quit [Ping timeout: 255 seconds]
<bnagy> ok I have to do important things concerning beer
<AndyM> and i have to pick up my laundry
<AndyM> thanx again guys
<bnagy> np \o
<AndyM> also this made me hungry
RegulationD has quit [Ping timeout: 244 seconds]
j4cknewt has quit [Remote host closed the connection]
ndrei has joined #ruby
troulouliou_dev has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Remote host closed the connection]
fabrice3_ has quit [Remote host closed the connection]
<EasyCo> If I'm working on a gem and want to require it for testing purposes without actually building and installing the gem, what are my options?
thebastl has quit [Quit: Leaving...]
<adaedra> bundler can load gems from a path
serivich has joined #ruby
ahmetkapikiran has joined #ruby
benlovell has joined #ruby
rikkipitt has joined #ruby
senayar has quit [Remote host closed the connection]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> EasyCo: set your load path correctly and it'll Just Work
<zenspider> ruby -I..path/to/lib test/some_test.rb
chipotle has quit [Quit: cheerio]
<zenspider> bundler gets in the way and musses it up
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
krz has joined #ruby
<EasyCo> Yah, exactly, bundler keeps fucking with my juju
Spami has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
<zenspider> if you can remove it from the equation, do so
<zenspider> if you can't, then you're gonna have to declare the local path in the Gemfile
<zenspider> drives me up the wall
polysics has joined #ruby
ur5us has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
<EasyCo> pry -I ./lib -rgemname
konsolebox has quit [Quit: Leaving]
<EasyCo> Beautiful, thanks zenspider
<zenspider> awesome. good luck. bedtime for me
troulouliou_dev has joined #ruby
<EasyCo> Same
<EasyCo> Good to go to bed on a small win.
Scroff has joined #ruby
kraljev12 has quit [Quit: kraljev12]
matcouto has joined #ruby
startupality has joined #ruby
terlar has quit [Read error: No route to host]
matcouto has quit [Client Quit]
polysics has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Quit: Quit]
Scroff has quit [Remote host closed the connection]
tvw has quit []
sdothum has joined #ruby
Scroff has joined #ruby
phutchins has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
rikkipit_ has joined #ruby
tedstriker has joined #ruby
rikkipitt has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 250 seconds]
AlphaAtom has joined #ruby
Xeago has quit [Remote host closed the connection]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
fabrice31 has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
juanpaucar has joined #ruby
joelataylor_ has joined #ruby
AlphaAtom has joined #ruby
khebbie has joined #ruby
travis___ has joined #ruby
travis___ is now known as axilla
juanpaucar has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
pyo_ has joined #ruby
serivich has quit [Read error: Connection reset by peer]
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
rodfersou has joined #ruby
sharpmachine has joined #ruby
starfox_sf has joined #ruby
goodcodeguy has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dreamer3_ is now known as Dreamer3
chussenot has quit [Quit: chussenot]
sharpmachine has quit [Ping timeout: 264 seconds]
starfox_sf has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
centrx has joined #ruby
Soda has joined #ruby
fujimura has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 276 seconds]
pepperbreath1 has quit [Ping timeout: 244 seconds]
andikr has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 255 seconds]
hoov has joined #ruby
ur5us has joined #ruby
ylla has quit [Ping timeout: 252 seconds]
centrx has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
Papierkorb has joined #ruby
bmurt has joined #ruby
pepperbreath has joined #ruby
bmurt has quit [Client Quit]
ndrei has joined #ruby
pepperbreath has quit [Read error: Connection reset by peer]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pepperbreath has joined #ruby
yaw has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
yaw has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
allcentury has quit [Quit: WeeChat 1.1.1]
RegulationD has joined #ruby
Abhijit has joined #ruby
Abhijit has left #ruby [#ruby]
Musashi007 has quit [Quit: Musashi007]
krisquigley has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
krisquigley has joined #ruby
chinmay_dd has quit [Ping timeout: 252 seconds]
chinmay__ has joined #ruby
Scroff has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
gisli has joined #ruby
charliesome has quit [Quit: zzz]
A205B064 has quit [Ping timeout: 252 seconds]
chinmay__ has quit [Remote host closed the connection]
<gisli> hiya, so I have this loop in my script "(00...100).each{|n| STDOUT.write(gen_redis_proto("RPUSH","testlist","#{n}"))". How would I go about padding the numbers?
bin_005 has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
<centrx> gisli, Use rjust/ljust or sprintf?
commondream has joined #ruby
davidhq has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
allcentury has joined #ruby
ahmetkapikiran has quit [Remote host closed the connection]
c355E3B has joined #ruby
commondream has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
centrx has quit [Ping timeout: 265 seconds]
k3asd` has quit [Ping timeout: 265 seconds]
TinkerTyper has quit [Ping timeout: 264 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
chussenot has joined #ruby
ur5us has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
polysics has joined #ruby
ur5us has joined #ruby
cajone has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
casadei has joined #ruby
mike___1234 has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
Scroff has joined #ruby
user121212 has joined #ruby
fabrice31 has joined #ruby
polysics has quit [Read error: Connection reset by peer]
mike___1234 has joined #ruby
polysics has joined #ruby
TinkerTyper has joined #ruby
SolarSailor has joined #ruby
senayar has joined #ruby
OrbitalKitten has joined #ruby
downwithbender has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
polysics_ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
downwithbender has quit [Client Quit]
Oxelist has joined #ruby
symbol has joined #ruby
polysics_ has quit [Read error: Connection reset by peer]
polysics has joined #ruby
SolarSailor has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
ldnunes_ has joined #ruby
hoov has quit [Ping timeout: 252 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Client Quit]
pyo_ has quit []
AndyM has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC]
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
sung_ has joined #ruby
OrbitalKitten has joined #ruby
rushed has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
ldnunes_ has quit [Client Quit]
polysics has quit [Read error: Connection reset by peer]
polysics_ has joined #ruby
<user121212> I'm trying to scrap something using nokogiri, I want to find the value inside javascript array, like the value of 'b' in this code https://eval.in/private/d4d128835699e0, I got the script bllock by using doc.search("script")[24], How can I get the value of 'b' here?
qwertme has joined #ruby
chinmay_dd has joined #ruby
tokik_ has joined #ruby
polysics_ has quit [Read error: Connection reset by peer]
tvw has joined #ruby
polysics has joined #ruby
antgel has joined #ruby
ferfoster has joined #ruby
tvw has quit [Client Quit]
thebastl has joined #ruby
<canton7> user121212, you write something that can parse javascript ;)
djellemah has joined #ruby
yaw has joined #ruby
polysics_ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
<Darkwater> fork a javascript interpreter
<gisli> centrx: cheers, will check that out :)
<Darkwater> and edit it
<Darkwater> is gud idea I swer
yaw has quit [Client Quit]
polysics_ has quit [Read error: Connection reset by peer]
yaw has joined #ruby
polysics has joined #ruby
chinmay_dd has quit [Ping timeout: 272 seconds]
<user121212> cantor7: nokogiri object is xml, right?
yaw has quit [Max SendQ exceeded]
<canton7> ...wut?
<canton7> nokogiri is an xml/html parser
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
ndrei has joined #ruby
sandelius has joined #ruby
chinmay_dd has joined #ruby
serivich has joined #ruby
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
Xeago has quit [Remote host closed the connection]
AugustoCesar has joined #ruby
CustosLimen has quit [Ping timeout: 265 seconds]
<ljarvis> maloik: I'm not :(
<maloik> :(
davidhq has joined #ruby
AugustoCesar has left #ruby [#ruby]
krz has joined #ruby
sharpmachine has joined #ruby
SOLDIERz has joined #ruby
cajone has left #ruby [#ruby]
davidhq has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
sharpmachine has quit [Ping timeout: 250 seconds]
allomov has quit [Remote host closed the connection]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
CustosLimen has joined #ruby
kraljev11 has joined #ruby
kraljev11 is now known as kraljev12
allomov has joined #ruby
goodcodeguy has joined #ruby
terlar has joined #ruby
senayar has quit [Remote host closed the connection]
dzejrou has joined #ruby
skyrocker has joined #ruby
skyrocker has left #ruby [#ruby]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
balazs has joined #ruby
banister has joined #ruby
chipotle has quit [Max SendQ exceeded]
but3k4 has joined #ruby
chipotle has joined #ruby
krisquigley has joined #ruby
user121212 has quit [Quit: Page closed]
rikkipitt has joined #ruby
chipotle has quit [Max SendQ exceeded]
pikos has quit [Remote host closed the connection]
davedev24_ has joined #ruby
polysics has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 258 seconds]
rikkipit_ has quit [Ping timeout: 256 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
n008f4g_ has joined #ruby
Oxelist has quit [Read error: Connection reset by peer]
dstarh has joined #ruby
Oxelist_ has joined #ruby
senayar has joined #ruby
k3asd` has joined #ruby
msnyon has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
Apomelasma has joined #ruby
ttilley has quit [Read error: Connection reset by peer]
rikkipitt has quit [Remote host closed the connection]
Oxelist_ has quit [Read error: Connection reset by peer]
Oxelist has joined #ruby
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Client Quit]
endorphine_ has joined #ruby
rikkipitt has joined #ruby
michael_mbp has quit [Excess Flood]
RegulationD has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 244 seconds]
iamninja has quit [Ping timeout: 250 seconds]
jwaldrip_ has joined #ruby
CamonZ has joined #ruby
iamninja has joined #ruby
michael_mbp has joined #ruby
JoshL has joined #ruby
bkxd has joined #ruby
Scroff has quit [Remote host closed the connection]
tsvenson has quit [Quit: Leaving]
bahamas has joined #ruby
spyderman4g63 has joined #ruby
<maasha> Can you include instance methods to a class from outside the class? https://gist.github.com/maasha/57826c5e54b6b8852c1b
OrbitalKitten has joined #ruby
<ljarvis> include Foo into MyClass
ur5us has quit [Remote host closed the connection]
Scroff has joined #ruby
<ljarvis> MyClass.send(:include, Foo)
<maasha> _from outside_ ?
<maasha> ah
<ljarvis> why from outside though? you can re-open classes
<maasha> ljarvis: this works. thanks
djellemah has quit [Quit: Leaving]
djellemah has joined #ruby
jwaldrip_ has quit [Ping timeout: 265 seconds]
jhooker has joined #ruby
zz_barkerd427 is now known as barkerd427
OrbitalKitten has quit [Client Quit]
<bahamas> why doesn't this loop end when I enter '1' or '2'?
chipotle has joined #ruby
aapole has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
OrbitalKitten has joined #ruby
<ljarvis> because you're using or when you want and
<ljarvis> cave != '1' && cave != '2'
<ljarvis> otherwise it's "whilst cave is not 1 or cave is not 2" which means when it's 1, it isn't 2, so it's cancelled out
<bahamas> damn my logic
Scroff has quit [Remote host closed the connection]
<djellemah> bahamas: http://en.wikipedia.org/wiki/De_Morgan%27s_laws if you want the theory
Scroff has joined #ruby
<ljarvis> until %w(1 2).include?(cave) ...
tsvenson has joined #ruby
<bahamas> ljarvis: that's what I finally used, except with the array syntax
Dingus has joined #ruby
<bahamas> but I was confused why the initial version wasn't working
<ljarvis> :)
premera has joined #ruby
decoponio has joined #ruby
<bahamas> ah, there's 'until'
<bahamas> too many options :)
thefynx has quit [Remote host closed the connection]
<ljarvis> yeah I rarely use it, but I don't always like "while not"
<ljarvis> really just use whatever your brain figures out the quickest
lxsameer has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
user121212 has joined #ruby
mahmoudmahfouz has joined #ruby
<bahamas> yeah, I tend to prefer checking for an element in an array. all the logic checks are confusing
<bahamas> thanks, guys!
mahmoudmahfouz has quit [Client Quit]
sgambino has joined #ruby
juanpaucar has joined #ruby
Ropeney has joined #ruby
peteykun has joined #ruby
maxshelley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno-_ has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
jouty has quit [Quit: WeeChat 0.3.8]
bmurt has joined #ruby
krz has quit [Ping timeout: 276 seconds]
Soda has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
jcaho has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Remote host closed the connection]
surs has quit [Ping timeout: 244 seconds]
jcaho has joined #ruby
Dingus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has quit [Ping timeout: 264 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
troulouliou_dev has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
Lord_xeo has joined #ruby
segfalt has joined #ruby
user121212 has quit [Quit: Page closed]
gisli has left #ruby ["WeeChat 1.0.1"]
ndrei has joined #ruby
wald0 has quit [Ping timeout: 265 seconds]
dumdedum has quit [Quit: foo]
hoov has joined #ruby
starfox_sf has joined #ruby
peteykun has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
arup_r has quit [Remote host closed the connection]
atomical has joined #ruby
caseypatrickdris has joined #ruby
vbatts|w1 has joined #ruby
pyo_ has joined #ruby
vbatts|w1 has quit [Client Quit]
timonv has joined #ruby
lxsameer has joined #ruby
anisha has quit [Ping timeout: 264 seconds]
stoogenmeyer__ has joined #ruby
Xeago has joined #ruby
krz has joined #ruby
starfox_sf has quit [Ping timeout: 276 seconds]
bahamas has quit [Quit: Page closed]
stoogenmeyer_ has quit [Ping timeout: 265 seconds]
enebo has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
polysics has joined #ruby
arup_r has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
allcentury has quit [Ping timeout: 264 seconds]
surs has joined #ruby
ringarin has joined #ruby
tokik_ has quit [Remote host closed the connection]
dblessing has joined #ruby
vondruch has quit [Quit: Ex-Chat]
thelastinuit has joined #ruby
rikkipitt has quit [Quit: Leaving...]
ndrei has joined #ruby
sharpmachine has joined #ruby
glcx is now known as Glcx
Glcx is now known as glcx
chipotle has quit [Quit: cheerio]
sharpmachine has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
pikos has joined #ruby
Scroff has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 252 seconds]
Scroff has joined #ruby
ndrei has joined #ruby
allcentury has joined #ruby
JDiPierro has joined #ruby
Langlands has joined #ruby
dseitz has joined #ruby
symbol has quit [Ping timeout: 272 seconds]
Oxelist has quit [Read error: Connection reset by peer]
dhjondoh has quit [Remote host closed the connection]
hinbody has joined #ruby
symbol has joined #ruby
symbol has quit [Changing host]
symbol has joined #ruby
nertzy has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 276 seconds]
ESpiney_ has quit [Quit: Leaving]
ESpiney has joined #ruby
st0mar has joined #ruby
mary5030 has joined #ruby
withnale_ has joined #ruby
ledestin has quit [Ping timeout: 255 seconds]
melter has quit [Quit: Client exiting]
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
jwaldrip_ has joined #ruby
granthatcher has quit []
Oxelist has joined #ruby
benlovell has joined #ruby
Oxelist has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
Xeago has joined #ruby
senayar has quit [Remote host closed the connection]
RegulationD has joined #ruby
davidhq has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
depesz has joined #ruby
melter has joined #ruby
<depesz> how can I get full hostname, with domain, of current host? something like "hostname -f", but without requiring executing external programs
gambl0re has joined #ruby
ruv_ has joined #ruby
<JoshL> depesz: and the following methods
ruv has quit [Disconnected by services]
maxshelley has joined #ruby
ruv has joined #ruby
<depesz> gethostname returns just first part of fqdn :(. docs mention NI_* options, but I don't see any list of these options
ruv has quit [Disconnected by services]
ruv_ is now known as ruv
RegulationD has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
ziprar has joined #ruby
griffindy has joined #ruby
arup_r has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
ledestin has joined #ruby
ruv has quit [Ping timeout: 264 seconds]
zipace has quit [Ping timeout: 244 seconds]
<JoshL> depesz: Maybe something like looping through Socket.ip_address_list and passing it to Socket.gethostbyaddr?
fabrice31_ has joined #ruby
arup_r has joined #ruby
lavros has joined #ruby
sinkensabe has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
st0mar has quit [Ping timeout: 276 seconds]
ponga has quit [Quit: Leaving...]
msgodf has quit [Ping timeout: 256 seconds]
caseypatrickdris has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
ferr has joined #ruby
duggiefresh has joined #ruby
ruv has joined #ruby
dling has quit []
nertzy has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
qwertme has joined #ruby
krz has joined #ruby
obscured has joined #ruby
TheHodge has joined #ruby
xxneolithicxx has joined #ruby
dhjondoh has joined #ruby
maxshelley has quit [Quit: Textual IRC Client: www.textualapp.com]
<depesz> found this, looks like working, Socket.gethostbyname(Socket.gethostname).first
failshell has joined #ruby
unshadow has quit [Quit: leaving]
k3asd` has quit [Quit: leaving]
k3asd` has joined #ruby
CamonZ has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
mrmargolis has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
dopie has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
<failshell> i want to merge 2 files. both share a common part, and have differences as well. how would you go about doing that? both are text files.
centrx has joined #ruby
edwinvdgraaf has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<failshell> what i did was read the files and slice them, add those parts to arrays, merged the arrays and .uniq them. that works. but im curious to see if there's a better way to do it
<lessless> is it possible to get value of local variable named `foo_rate` with the 'foo' string in the hands?
AlphaAtom has joined #ruby
<lessless> like ['foo', 'bar', 'baz']. each { |n| local_variable_get "#{n}_rate" }
CloCkWeRX has joined #ruby
kobain has joined #ruby
<ljarvis> lessless: eval
<ljarvis> just beware of bindings
<lessless> what do you mean?
<lessless> what bindings?
khebbie has joined #ruby
edwinvdg_ has joined #ruby
<ljarvis> lessless: basically it depends on the scope of the assignment, but eval is what you want
micmus has joined #ruby
<ljarvis> >> foo_rate = "omg"; eval("foo_rate") if local_variables.include?(:foo_rate) # to ensure some sanity
<ruboto> ljarvis # => "omg" (https://eval.in/379794)
st0mar has joined #ruby
Apomelasma has quit [Quit: Leaving...]
<lessless> eval looks scare
<lessless> thank you for the tip!
<ljarvis> eval is scare myself. eval is scare
sepp2k has joined #ruby
jwaldrip_ has quit [Quit: Be back later ...]
<ljarvis> but yeah, doing local_variables.include? will ensure it exists as a local variable, so you can ensure some kind of sanity
paulcsmith has joined #ruby
caseypatrickdris has joined #ruby
<ljarvis> scare my friend*
<ljarvis> i dont scare myself
<ljarvis> time to stop typing
Vile` has quit [Ping timeout: 276 seconds]
jwaldrip_ has joined #ruby
soc42 has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<ferr> Hey guys, I would like to use ruby as a backend of web application, which would only serve API, any suggestions what to use in this case?
rippa has joined #ruby
Vile` has joined #ruby
Scroff has joined #ruby
<adaedra> sinatra
<ljarvis> I've had much success with grape (which is based on Sinatra iirc)
centrx has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
justintv90 has joined #ruby
depesz has left #ruby ["WeeChat 1.2-dev"]
justintv90 has quit [Max SendQ exceeded]
tannerj has joined #ruby
NeverDie has joined #ruby
justintv90 has joined #ruby
jespada has joined #ruby
jwaldrip_ has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
justintv90 has quit [Max SendQ exceeded]
maasha has quit [Ping timeout: 246 seconds]
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
sharpmachine has joined #ruby
tannerj has left #ruby [#ruby]
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
Soda has joined #ruby
st0mar has quit [Quit: quit]
jwaldrip_ has joined #ruby
cmisenas has joined #ruby
arup_r has quit [Remote host closed the connection]
caseypatrickdris has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
sharpmachine has quit [Ping timeout: 276 seconds]
<havenwood> ferr: Roda
gamename has joined #ruby
psy_ has joined #ruby
ruby-lang025 has joined #ruby
jwaldrip_ has quit [Ping timeout: 245 seconds]
ruby-lang025 has left #ruby [#ruby]
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
gamename has quit [Remote host closed the connection]
centrx has joined #ruby
gamename has joined #ruby
balazs has joined #ruby
fgo has joined #ruby
obscured has quit [Quit: leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson_ has joined #ruby
* adaedra would do a bad pun, but already did yesterday
Scroff has joined #ruby
jwaldrip_ has joined #ruby
auzty has quit [Quit: Leaving]
someword has joined #ruby
davidhq has joined #ruby
pdoherty has joined #ruby
centrx has quit [Ping timeout: 255 seconds]
fabrice31_ has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 258 seconds]
bdnelson has joined #ruby
fabrice31 has joined #ruby
dfockler has joined #ruby
Scrofff has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 246 seconds]
conta has quit [Quit: Leaving]
fgo has quit [Ping timeout: 252 seconds]
soc42 has quit [Remote host closed the connection]
<dudedudeman> i hate being away when people holler my name
bronson_ has quit [Ping timeout: 255 seconds]
* dudedudeman hollers at himself
RegulationD has joined #ruby
commondream has joined #ruby
<adaedra> dudedudeman!
<failshell> dudedudeman: dude!
gamename has quit [Remote host closed the connection]
GarethAdams has joined #ruby
gamename has joined #ruby
symm- has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troulouliou_dev has joined #ruby
<failshell> is there a way to merge arrays and keep as much as possible the old index positions of each element in the newly merged array?
EasyCo has quit [Quit: Connection closed for inactivity]
[H]unt3r has joined #ruby
jwilson has quit [Read error: Connection reset by peer]
justintv90 has joined #ruby
<shevy> ???
<shevy> array.contat ?
jwilson has joined #ruby
<shevy> concat
justintv90 has quit [Max SendQ exceeded]
<shevy> a = [1,2,3] # => [1, 2, 3]; b = [4,5,6] # => [4, 5, 6]; a.concat b # => [1, 2, 3, 4, 5, 6]
dfockler has quit [Ping timeout: 258 seconds]
justintv90 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
justintv90 has quit [Max SendQ exceeded]
platzhirsch has left #ruby [#ruby]
anisha has quit [Ping timeout: 265 seconds]
justintv90 has joined #ruby
ndrei has joined #ruby
justintv90 has quit [Max SendQ exceeded]
gamename has quit [Client Quit]
<failshell> shevy: https://gist.github.com/failshell/fcda156a72c587255838 i would like to end up with ['foo', 'foobar', 'bar']
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<shevy> and what logic does this follow
justintv90 has joined #ruby
<failshell> i dont think there's one :)
SouL_|_ has quit [Remote host closed the connection]
justintv90 has quit [Max SendQ exceeded]
<shevy> well, the moment you have the logic is the moment you have the ruby code
<shevy> what you show here is actually the second array
<shevy> so you could just use that without any merging right? :>
justintv90 has joined #ruby
lxsameer has quit [Quit: Leaving]
justintv90 has quit [Max SendQ exceeded]
livathinos has joined #ruby
SOLDIERz has quit [Ping timeout: 256 seconds]
<failshell> shevy: that's the lack of coffee ;p i updated the gist
justintv90 has joined #ruby
<failshell> id like to end up with ['foo', 'foobar', 'bar', 'potato']
<shevy> aha
<dudedudeman> adaedra: adaedra!
justintv90 has quit [Max SendQ exceeded]
<dudedudeman> failshell: failshell!
<dudedudeman> shevy: shevy!
<adaedra> that double hl
<dudedudeman> hey hey hey
j4cknewt has joined #ruby
<failshell> shevy: actually, that doesn't even make sense.
<shevy> so you sort of want to check on the prior and succeeding element
justintv90 has joined #ruby
<failshell> shevy: id like to keep the old index positions as much as possible in the new array
<shevy> well, it looks like a .cycle() call
juanpaucar has joined #ruby
vishal_ has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<shevy> I don't really understand you
<shevy> isn't what you are describing essentially a Hash then?
pdoherty_ has joined #ruby
tenderlove has joined #ruby
darkf has quit [Quit: Leaving]
intinig has joined #ruby
justintv90 has joined #ruby
<shevy> actually
pdoherty_ has quit [Client Quit]
<shevy> why don't you merge on an element by element basis
justintv90 has quit [Max SendQ exceeded]
<failshell> shevy: what i want to achieve is this. i have 2 configuration files (text) that share a common base, but have differences as well. im trying to merge those 2 files into one. that keeps the common parts. and the differences as well
<shevy> that way your old array is retained as it is, and you only have to add new elements to it
Xeago has joined #ruby
<failshell> so what i did was open the files, slice through them, added those slices into an array and merged the arrays
justintv90 has joined #ruby
mcclurmc has joined #ruby
<failshell> it works, but it messes up the order of where things where initially
justintv90 has quit [Max SendQ exceeded]
<failshell> not a deal breaker. but not great either
The_Phoenix has joined #ruby
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
segfalt has quit [Ping timeout: 256 seconds]
The_Phoenix has quit [Max SendQ exceeded]
segfalt_ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
pikos has quit [Quit: ...]
justintv90 has joined #ruby
rob_ has left #ruby [#ruby]
<SebastianThorn> what line first?: "#! /usr/bin/env ruby" or "# -*- coding: utf-8 -*-"
The_Phoenix has joined #ruby
<apeiros> SebastianThorn: #!
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danzilio has joined #ruby
justintv90 has quit [Max SendQ exceeded]
Spami has joined #ruby
Agoldfish has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
The_Phoenix has quit [Max SendQ exceeded]
<SebastianThorn> apeiros: ty, been doing different in different file i just realized
justintv90 has joined #ruby
edwinvdgraaf has joined #ruby
mrmargolis has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
justintv90 has quit [Max SendQ exceeded]
Parker0 has joined #ruby
Lord_xeo has quit [Max SendQ exceeded]
vishal_ has quit [Client Quit]
juanpaucar has quit [Ping timeout: 255 seconds]
Parker0 has quit [Remote host closed the connection]
mrmargolis has joined #ruby
justintv90 has joined #ruby
edwinvdg_ has joined #ruby
justintv90 has quit [Max SendQ exceeded]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
justintv90 has joined #ruby
ESpiney_ has joined #ruby
endorphine_ has quit []
justintv90 has quit [Max SendQ exceeded]
<wnd> failshell, (Set.new(f1) + Set.new(f2)).to_a ? (or the other way if that's what you wanted)
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
justintv90 has joined #ruby
yoongkang has quit [Remote host closed the connection]
<thang> q
dopie has quit [Quit: Leaving]
livathinos has quit []
intinig has quit [Remote host closed the connection]
Scrofff has quit [Remote host closed the connection]
zekriad has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
<wnd> >> require 'set'; f1 = %w{foo bar potato}; f2 = %w{foo foobar bar}; puts (Set.new(f1) + Set.new(f2)).to_a.inspect + " / " + (Set.new(f2) + Set.new(f1)).to_a.inspect
<ruboto> wnd # => ["foo", "bar", "potato", "foobar"] / ["foo", "foobar", "bar", "potato"] ...check link for more (https://eval.in/379846)
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby
fella5s has quit [Ping timeout: 258 seconds]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
endorphine_ has joined #ruby
Scroff has joined #ruby
ESpiney has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
khebbie has joined #ruby
khebbie has quit [Client Quit]
dzejrou has quit [Read error: Connection reset by peer]
yardenbar has quit [Quit: Leaving]
danzilio has quit [Quit: Baiii!]
dopie has joined #ruby
dopie has quit [Client Quit]
<failshell> wnd: interesting, will play with Set
starfox_sf has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<apeiros> failshell, wnd: if f1 & f2 are array, you can just use `f1 | f2` instead
mrmargol_ has joined #ruby
<apeiros> >> f1 = %w[foo bar potato]; f2 = %w[foo foobar bar]; p [f1 | f2, f2 | f1]
<ruboto> apeiros # => [["foo", "bar", "potato", "foobar"], ["foo", "foobar", "bar", "potato"]] ...check link for more (https://eval.in/379851)
ESpiney_ has quit [Ping timeout: 258 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
balazs has joined #ruby
mrmargolis has quit [Ping timeout: 255 seconds]
Fraeon has quit [Remote host closed the connection]
balazs has quit [Remote host closed the connection]
justintv90 has joined #ruby
jpfuentes2 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
balazs has joined #ruby
yardenbar has joined #ruby
starfox_sf has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
revath has quit [Ping timeout: 264 seconds]
avril14th has joined #ruby
justintv90 has quit [Max SendQ exceeded]
mkewasz has joined #ruby
sharpmachine has joined #ruby
justintv90 has joined #ruby
<avril14th> Hello, what's the difference between, given a class A and a module B, A.include B and class A; extend B; end; ?
dzejrou has joined #ruby
justintv90 has quit [Max SendQ exceeded]
atom_ has joined #ruby
<apeiros> avril14th: include adds the module's methods as instance methods. extend as class methods.
railsraider has joined #ruby
justintv90 has joined #ruby
francoi__ has joined #ruby
justintv90 has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
justintv90 has joined #ruby
<wnd> apeiros, obvious solution is obvious. thanks. it's not like I haven't done that before...
chouhoulis has quit [Remote host closed the connection]
<atom_> is installing ruboto on windows is painfull like rails?
chouhoulis has joined #ruby
riton has joined #ruby
<avril14th> apeiros: sorry I meant the difference between A.class.include B and class A; extend B; end;
yardenbar has quit [Quit: Leaving]
* avril14th is getting tired
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<avril14th> so including in the class versus extending the class
<apeiros> avril14th: you realize that A.class.include is Class.include?
Macaveli has joined #ruby
<apeiros> avril14th: i.e., your correction makes no sense
<avril14th> :)
dgutierrez1287 has joined #ruby
<avril14th> so true
<atom_> is installing ruboto on windows is painfull like rails?
Macaveli has quit [Client Quit]
<apeiros> avril14th: and it doesn't match your description either. your first question matches your description
<apeiros> avril14th: and to that I gave you the answer
<apeiros> so including in the class -> add instance methods
baweaver has joined #ruby
<apeiros> extending the class -> add class methods
blandflakes_ has joined #ruby
ogpastaling has joined #ruby
blandflakes has quit [Disconnected by services]
blandflakes_ is now known as blandflakes
<riton> hi guys, I'm wondering what's the easies way to build a RPM package to distribute my ruby libraries ? I've seen that https://github.com/fedora-ruby/gem2rpm exists, as anyone aleady used it ? Is this the recommended way (create a GEM and then create a SPEC file from it) ? Thanks
railsraider has quit [Quit: railsraider]
<avril14th> apeiros: thanks
ogpastaling has quit [Remote host closed the connection]
<apeiros> avril14th: note that the *source* is always the instance methods of the module.
nonparfumee has joined #ruby
<shevy> riton most likely I think you are the first person here on #ruby who wanted to do so :)
<avril14th> apeiros: yes, the code stays there :)
<apeiros> o0
<shevy> most of the time when you have a .gem file, you already won't need any other distribution's specific manager
ogpastaling has joined #ruby
stoogenmeyer__ has quit [Ping timeout: 276 seconds]
dzejrou has quit [Read error: Connection reset by peer]
<riton> shevy: to create a RPM package ? :-D
<shevy> but why
<shevy> you have "gem"
dgutierrez1287 has quit [Ping timeout: 265 seconds]
<shevy> you could put it into a .rpm as an additional repository
<riton> because it requires "an other" way to distribute software , new repositories and so
larissa has quit [Max SendQ exceeded]
larissa has joined #ruby
pyo_ has quit []
<riton> shevy: can you explain what you means by "you could put it into a .rpm as an additional repository" ?
<shevy> well that is the only use case I see for that
<shevy> you want to create a .rpm only from one specific .gem file right
intinig has joined #ruby
<riton> yes
<shevy> so you have to satisfy whatever the standard for rpm demands for a ruby-addon package; I am sure it's essentially the same as the perl or python addons
<shevy> the guy at https://github.com/fedora-ruby/gem2rpm seems to have done so already
pepperbreath has quit [Ping timeout: 265 seconds]
paulcsmith has quit [Quit: Be back later ...]
<riton> yes. I just wanted to know if this was "the recommanded way" or just "a lonely guy project" ;-)
but3k4 has quit [Read error: Connection reset by peer]
<shevy> yeah
but3k4_ has joined #ruby
juanpaucar has joined #ruby
<shevy> I think you are the first rpm-ruby guy here on #ruby
paulcsmith has joined #ruby
<riton> \o/
<riton> ok, thanks shevy
<shevy> let's ask the channel riton
<shevy> Anyone here use fedora!
Rickmasta has joined #ruby
* shevy drops a needle ... .. .
<shevy> riton nope sorry I guess there is none :(
msgodf has joined #ruby
<shevy> probably lots of osx people here
endash has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<riton> well, I'll give you a feedback after I've put it in production ;-)
intinig has quit [Remote host closed the connection]
vyorkin has joined #ruby
pepperbreath has joined #ruby
aganov has quit [Remote host closed the connection]
joaomdmoura has joined #ruby
chinmay_dd has quit []
gustavn has joined #ruby
s2013 has joined #ruby
lkba has joined #ruby
railsraider has joined #ruby
<atom_> is installing ruboto on windows is painfull like rails?
mwlang has joined #ruby
sharpmachine has quit [Remote host closed the connection]
war_pigs has joined #ruby
sarkyniin has joined #ruby
<mwlang> I really should read other people’s code more often. This is a nicely written set of test specs: https://github.com/rack/rack/blob/master/test/spec_request.rb
gustavn has left #ruby [#ruby]
allcentury has quit [Quit: WeeChat 1.1.1]
foucist has joined #ruby
tjbiddle has joined #ruby
<mwlang> contains some nice use of lambdas (which I’m still getting comfortable with) as well as doing a great job of keeping the “data” close to the tests so you get the full picture of what’s being tested and how.
timonv has quit [Ping timeout: 276 seconds]
<foucist> zomg.. the great channel merge of 2015
lkba_ has quit [Ping timeout: 272 seconds]
madarcode has joined #ruby
<madarcode> hi all
<madarcode> i have a general question, how do frontend developers and backend developers make an API? Do they have a meeting and decide what function names to give to an API before they start coding?
atom_ has quit [Ping timeout: 246 seconds]
<sung_> what's a good book for ruby oo design pattern
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SebastianThorn> madarcode: i dont think there is a "defacto" way to that
ndrei has joined #ruby
<madarcode> okay but what's a good way to do it?
<mwlang> madarcode: create the user stories, write the test specs to look like you want the API to look. Let the backenders begin building, then frontenders start building as the API’s are implemented.
slawrenc_ has joined #ruby
intinig has joined #ruby
solars has quit [Ping timeout: 265 seconds]
<mwlang> the test specs can be written together by both backenders and frontenders
<madarcode> test specs means tests like unit testing right?
<mwlang> you’ll find that you’ll quickly go through a bunch of naming schemes before settling on the final and all without having to write the actual implementation. the user stories crystalize what’s needed and what’s YAGNI
senayar has quit [Remote host closed the connection]
<mwlang> madarcode: yes
<madarcode> okay do you know a tutorial where I can look this up?
tomphp has joined #ruby
tomphp has quit [Client Quit]
intinig has quit [Remote host closed the connection]
<mwlang> madarcode: unfortunately, no. just experience from doing apis previously. If you have a team of developers, get ‘em in a room together and iron out the strategy
tomphp has joined #ruby
freerobby has joined #ruby
<madarcode> okay I see.... Thank you. The thing is we're students so it's tough to get experience hah.
intinig has joined #ruby
<mwlang> madarcode: but you’re still smart people. (hopefully!) — the user stories, if written well will guide the design.
<madarcode> okaay
<mwlang> madarcode: Google each of the above…for example: https://www.google.com/search?q=how+to+write+good+user+stories&ie=utf-8&oe=utf-8
bantic has joined #ruby
<madarcode> damn that's golden
<mwlang> madarcode: or even https://www.google.com/search?q=how+to+write+good+user+stories&ie=utf-8&oe=utf-8#q=how+to+write+good+user+stories+for+api
<mwlang> I see some good potentials on that 2nd one.
RegulationD has quit [Read error: Connection reset by peer]
rushed has quit [Quit: rushed]
millerti has joined #ruby
Koveno has joined #ruby
RegulationD has joined #ruby
n3vtelen has quit [Remote host closed the connection]
madarcode has quit [Quit: Page closed]
ddarkpassenger has joined #ruby
apofis has quit [Remote host closed the connection]
aryaching has joined #ruby
intinig has quit [Remote host closed the connection]
apofis has joined #ruby
_seanc_ has joined #ruby
senayar has joined #ruby
baweaver has quit [Remote host closed the connection]
intinig has joined #ruby
_ixti_ has joined #ruby
ebbflowgo has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
Lucky___ has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
apofis has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
Xeago has quit []
Xeago has joined #ruby
intinig has quit [Remote host closed the connection]
tomphp has joined #ruby
Scroff has quit [Remote host closed the connection]
redlegion has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rcvalle has joined #ruby
dseitz has joined #ruby
s2013 has quit [Excess Flood]
mrmargol_ has quit [Remote host closed the connection]
s2013 has joined #ruby
<mwlang> So I have a Rack middleware app that does some processing on the incoming request and sets some hash values on the env…how do I access the rack app’s env from a test spec?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
segfalt_ has quit [Quit: segfalt_]
finisherr has joined #ruby
atomical has joined #ruby
whoami has joined #ruby
bantic has quit [Quit: bantic]
whoami is now known as Guest60951
Guest60951 has quit [Max SendQ exceeded]
dfinninger has joined #ruby
whoami_ has joined #ruby
djbkd has joined #ruby
ych_ has joined #ruby
commondream has quit [Remote host closed the connection]
redlegion has joined #ruby
allomov has quit [Remote host closed the connection]
joelataylor_ has quit [Quit: Be back later ...]
stan has quit [Ping timeout: 256 seconds]
dhjondoh has quit [Remote host closed the connection]
hubcaps_ has joined #ruby
Guest31215 has joined #ruby
wald0 has joined #ruby
fedexo has joined #ruby
<Guest31215> anyone here form New York?
yoongkang has joined #ruby
<kitallis> has anyone tried using prawn and fitting images of various sizes into an appropriate page format (a4/a5), scale the images to best fit the page, if they are too small, ignore etc.?
umgrosscol has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<Guest31215> i would like someone else help possibly over google chat
railsraider has quit [Quit: railsraider]
hubcaps has quit [Ping timeout: 244 seconds]
mrmargolis has joined #ruby
hubcaps_ has quit [Ping timeout: 252 seconds]
nofxx has quit [Ping timeout: 250 seconds]
mrmargolis has quit [Remote host closed the connection]
axl__ has left #ruby ["Leaving"]
mrmargolis has joined #ruby
jespada has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caseypatrickdris has joined #ruby
ferfoster2 has joined #ruby
iamninja has quit [Ping timeout: 276 seconds]
slackbotgz has quit [Remote host closed the connection]
endorphine_ has quit []
vdamewood has quit [Quit: Life beckons.]
slackbotgz has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
dmr8 has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
_seanc_ has quit [Quit: _seanc_]
edwinvdgraaf has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
ferfoster has quit [Ping timeout: 265 seconds]
intinig has joined #ruby
ferfoster2 is now known as ferfoster
ylla has joined #ruby
yardenbar has joined #ruby
d10n-work has joined #ruby
Scroff has quit [Remote host closed the connection]
Hounddog has quit [Remote host closed the connection]
ixti has joined #ruby
intinig has quit [Remote host closed the connection]
Scroff has joined #ruby
cmisenas has quit [Ping timeout: 264 seconds]
djdarkbeat has quit [Quit: djdarkbeat]
edwinvdg_ has joined #ruby
mkewasz has quit [Quit: Page closed]
_ixti_ has quit [Ping timeout: 264 seconds]
mleung has joined #ruby
ych_ has quit [Quit: Textual IRC Client: www.textualapp.com]
commondream has joined #ruby
allomov has joined #ruby
edwinvdgraaf has quit [Ping timeout: 276 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aphprentice_ has joined #ruby
cmisenas has joined #ruby
alex88 has quit []
rubie has joined #ruby
sharpmachine has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
Scroff has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
towski_ has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
s2013 has quit [Read error: Connection reset by peer]
<Senjai> Guest31215: lol, no.
<Senjai> Guest31215: We prefer to have people ask questions in chat, so others can benefit from the answers
<dudedudeman> help one person, help all persons
<Senjai> Guest31215: If you need private mentoring, go hire someone off of codementor or something.
Spami has quit [Quit: This computer has gone to sleep]
<Senjai> kitallis: We had that issue with label printing. We had two adapters that would print two different labels depending on the request.
s2013 has joined #ruby
<dudedudeman> codementor is great... but some of these rates are insane lol
<Senjai> They're actually extremely low for the industry :P
s2013 has quit [Max SendQ exceeded]
<dudedudeman> $280 an hour!!?
<Senjai> For some people, totally reasonable
<foucist> filter out everyone in SF
strixd has quit [Quit: 500]
cmisenas has quit [Read error: Connection reset by peer]
<dudedudeman> i'd love to make $280 an hour
s2013 has joined #ruby
<Senjai> dudedudeman: Get to working. I know a consultant that bills for $600 an hour :)
<dudedudeman> mother @#%!
<dudedudeman> one $600, please
benlovell has quit [Ping timeout: 276 seconds]
thebastl has quit [Quit: Leaving...]
mleung has quit [Quit: mleung]
The_Phoenix has quit [Ping timeout: 255 seconds]
ogpastaling has quit [Remote host closed the connection]
<dudedudeman> i currently don't make that in a week at my m-f job.
cmisenas has joined #ruby
ogpastaling has joined #ruby
mleung has joined #ruby
_seanc_ has joined #ruby
francoi__ has quit [Read error: Connection reset by peer]
mrmargol_ has joined #ruby
allomov has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
francoi__ has joined #ruby
moted has joined #ruby
but3k4_ has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
seph429 has joined #ruby
_seanc__ has joined #ruby
djbkd has quit [Remote host closed the connection]
ogpastaling has quit [Ping timeout: 255 seconds]
seph429 has quit [Client Quit]
mrmargolis has quit [Ping timeout: 255 seconds]
starfox_sf has joined #ruby
maletor has joined #ruby
lele|w has quit [Remote host closed the connection]
<havenwood> Guest31215: Are you looking for free or paid help? You can get help here for free! For paid help, +1 codementor.io based on folks on there though I haven't used it. That'd be fun.
Oka has joined #ruby
_seanc_ has quit [Ping timeout: 276 seconds]
_seanc__ is now known as _seanc_
davedev24_ has quit [Ping timeout: 258 seconds]
davedev24_ has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
<havenwood> I need to charge more for consulting so I can hire consultants for fun.
spider-mario has joined #ruby
<dudedudeman> there are definitely some folks on their with reasonable rates if you need
rgs has joined #ruby
bgmarx has joined #ruby
sharpmachine has quit [Remote host closed the connection]
platosha__ has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby
cndiv has joined #ruby
jespada has joined #ruby
<dudedudeman> or reddit. there's a lot of people willing ot help on reddit as well
g0bl1n has joined #ruby
krisquigley has quit [Remote host closed the connection]
zendrix has joined #ruby
terlar has quit [Ping timeout: 258 seconds]
banister has joined #ruby
withnale_ has quit [Ping timeout: 256 seconds]
sharpmachine has quit [Remote host closed the connection]
platosha__ has joined #ruby
sharpmachine has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
bantic has joined #ruby
jayeola has joined #ruby
mistermocha has joined #ruby
polysics has quit [Remote host closed the connection]
_seanc_ has quit [Quit: _seanc_]
jayeola has quit [Client Quit]
shredding has quit [Ping timeout: 276 seconds]
djdarkbeat has joined #ruby
Guest31215 has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
riffraff has joined #ruby
Tennis has joined #ruby
__butch__ has joined #ruby
casadei has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has quit [Client Quit]
_seanc_ has joined #ruby
riton has left #ruby [#ruby]
davedev24_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scrofff has joined #ruby
anisha has quit [Quit: Leaving]
mrsolo has joined #ruby
benlovell has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
danzilio has joined #ruby
datanoise has joined #ruby
danzilio has quit [Max SendQ exceeded]
ni291187 has joined #ruby
ni291187 is now known as AvoidTheGroid
Scroff has quit [Ping timeout: 244 seconds]
danzilio has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<AvoidTheGroid> my favorite place in America
<AvoidTheGroid> is the ruby come
<AvoidTheGroid> conf
mrsolo has quit [Client Quit]
<havenwood> AvoidTheGroid: San Antonio? Or wherever it happens to be? :)
<AvoidTheGroid> yes :)
mrsolo has joined #ruby
endorphine_ has joined #ruby
<dudedudeman> so close to home. i'm excited about going this year
<havenwood> See you there.
bricker has joined #ruby
whiskystig has joined #ruby
wildroman2 has joined #ruby
<dudedudeman> yeah??
<dudedudeman> it'll be my first tech conf in this sector, so i'm excited about it
Scroff has joined #ruby
paulcsmith has joined #ruby
pengin has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scrofff has quit [Ping timeout: 265 seconds]
AvoidTheGroid has quit [Remote host closed the connection]
vyorkin has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 255 seconds]
vyorkin has joined #ruby
skade has joined #ruby
allenn has quit [Ping timeout: 265 seconds]
blandflakes has joined #ruby
dumdedum has joined #ruby
Zai00 has quit [Quit: Zai00]
mrsolo has quit [Quit: Leaving]
chussenot has quit [Quit: chussenot]
jackjackdripper has joined #ruby
msgodf has quit [Ping timeout: 265 seconds]
polysics has joined #ruby
francoi__ has quit [Remote host closed the connection]
francoi__ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
djbkd has joined #ruby
edwinvdgraaf has joined #ruby
dfockler has joined #ruby
jackjackdripper1 has joined #ruby
mistermo_ has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 276 seconds]
vyorkin has quit [Ping timeout: 265 seconds]
francoi__ has quit [Ping timeout: 255 seconds]
edwinvdg_ has joined #ruby
qwertme has joined #ruby
timonv has joined #ruby
mistermocha has joined #ruby
justintv90 has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
dumdedum has quit [Ping timeout: 250 seconds]
wpp has joined #ruby
mrsolo has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
juanpaucar has quit []
rockymadden has joined #ruby
finisherr has quit [Quit: finisherr]
AlphaAtom has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
deric_skibotn has joined #ruby
jackjackdripper has quit [Ping timeout: 245 seconds]
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
k3asd` has quit [Ping timeout: 255 seconds]
rockymadden has quit [Client Quit]
bgmarx has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 265 seconds]
mistermo_ has quit [Ping timeout: 265 seconds]
n008f4g_ has joined #ruby
bronson_ has joined #ruby
failshell has quit []
jackjackdripper has joined #ruby
caseypatrickdris has quit [Remote host closed the connection]
finisherr has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
araujo has quit [Ping timeout: 258 seconds]
ogpastaling has joined #ruby
jackjackdripper1 has quit [Ping timeout: 276 seconds]
pietr0 has joined #ruby
bosnia is now known as bosma
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
caseypat_ has joined #ruby
araujo has joined #ruby
intinig has joined #ruby
Scroff has joined #ruby
rbowlby has joined #ruby
segfalt has joined #ruby
jmignault has joined #ruby
MatthewsFace has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
Matthews_ has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
baweaver has joined #ruby
jackjackdripper has quit [Ping timeout: 245 seconds]
cyborg has joined #ruby
Matthews_ has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
zcreative has joined #ruby
Xeago has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 276 seconds]
SirCmpwn has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
<havenwood> dudedudeman: It's a good one!
SirCmpwn has joined #ruby
endorphine_ has quit []
dumdedum has joined #ruby
nonparfumee has joined #ruby
ziprar is now known as zipace
intinig has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
mister_solo has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
khebbie has joined #ruby
revath has joined #ruby
RobertBirnie has joined #ruby
Scroff has quit [Remote host closed the connection]
Matthews_ has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<Senjai> I may also be going
<havenwood> Senjai: Nice
<Senjai> I haven't yet decided fully. It's a ways away
postmodern has joined #ruby
drew0 has joined #ruby
zendrix has quit [Remote host closed the connection]
aphprentice has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
qwertme has joined #ruby
drew0 has quit [Remote host closed the connection]
Scrofff has joined #ruby
drew0 has joined #ruby
Filete has joined #ruby
drew0 has quit [Client Quit]
drew0 has joined #ruby
drew0 has quit [Client Quit]
mandarinkin has quit [Ping timeout: 264 seconds]
drew0 has joined #ruby
Soda has joined #ruby
Matthews_ has quit [Read error: Connection reset by peer]
mandarinkin has joined #ruby
<dudedudeman> i think that's helpful for me, as it's just a few hours from home
MatthewsFace has joined #ruby
zendrix has joined #ruby
allomov has joined #ruby
keernel has joined #ruby
Scrofff has quit [Remote host closed the connection]
ur5us has joined #ruby
joelataylor_ has joined #ruby
joaomdmoura has joined #ruby
mandarinkin has quit [Client Quit]
balazs has quit [Remote host closed the connection]
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mandarinkin has joined #ruby
bantic has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
x1337807x has joined #ruby
evanjs has joined #ruby
x1337807x has quit [Max SendQ exceeded]
drew0 has quit [Quit: WeeChat 1.2]
drew0 has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
war_pigs has quit [Quit: later... computer is sleeping]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
drewo has quit [Quit: WeeChat 0.4.2]
x1337807x has joined #ruby
<keernel> #joaomdmoura
ogpastaling has quit [Read error: Connection reset by peer]
<joaomdmoura> keernel: hey
<keernel> your app looks pretty neat, good idea
ogpastaling has joined #ruby
<joaomdmoura> what app exactly? hahah
mc_fail has joined #ruby
<keernel> haha sorry, gioco
<joaomdmoura> Cool! :)
<keernel> for how long it is running?
ur5us has quit [Ping timeout: 272 seconds]
<joaomdmoura> uhmm, it started as an opensrouce project 2 years ago probably, unfortunately it isn't compatible with rails 4 yet haha
<joaomdmoura> but the SaaS itself started some months ago
<joaomdmoura> You should give it a try :P Don't worry about the free trial, I can extend it in case you want to test it :X
<keernel> oh, cool, it was an open source. Yea, but you should def. continue with SaaS, =) keep it up
<keernel> i'll probably try it, i'm starting to work on a project, www.mybrainstorm.com
<keernel> and it has a bad gamefication system already implemented.
<keernel> it's a brazilian project
<joaomdmoura> Cool! are you Brazilian?
<keernel> yea, lol, you too?
<joaomdmoura> too :P
krisquigley has joined #ruby
shadoi has joined #ruby
Spami has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plashchynski has quit [Quit: plashchynski]
vyorkin has joined #ruby
<pipework> joaomdmoura: What was your app?
parduse has quit []
aces1up has joined #ruby
<keernel> this mybrainstorm project is a service to connect students with enterprises
Spami has quit [Client Quit]
<aces1up> anyone here have experience doing bitcoin transaction with bitcoin-ruby gem?
<keernel> enterprises can post a challenge, and ask students to help them with it
<aces1up> trying to understand, if I generate a bitcoin address, how can I load test funds to it with the bitcoin test net
dumdedum has quit [Quit: foo]
Spami has joined #ruby
someword has quit [Quit: Leaving.]
tomphp has joined #ruby
mc_fail has quit [Ping timeout: 265 seconds]
<joaomdmoura> pipework: it's a gamification SaaS we are also a Heroku addOn :) there is JS"SDK" and a rubygem to make the integration easier :P
someword has joined #ruby
mdz_ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
revath has quit [Read error: Connection reset by peer]
revath has joined #ruby
whoami_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segfalt has quit [Quit: segfalt]
ki0_ has joined #ruby
bruno-_ has quit [Ping timeout: 246 seconds]
balazs has joined #ruby
symm- has joined #ruby
metalic has joined #ruby
_seanc_ has joined #ruby
balazs has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
balazs has joined #ruby
ndrei_ has joined #ruby
meph has joined #ruby
Channel6 has joined #ruby
lkba_ has joined #ruby
metalic has quit [Client Quit]
ki0 has quit [Ping timeout: 256 seconds]
delsol_ has joined #ruby
segfalt has joined #ruby
ki0_ has quit [Ping timeout: 255 seconds]
kraljev11 has joined #ruby
axsuul has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
<delsol_> Stupid question: when executing command line command from ruby, I have errors... when executing the command from the command line, it runs fine.
<delsol_> in both cases, my user id is 0 (root)
lkba has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
kraljev12 has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<delsol_> why would it run differently when using exec(', using backticks ` the command directly... or exec( or backticks `, a shell script..... vs running the shell script by itself outside of ruby (or copy pasting it onto command line)
commondream has quit [Remote host closed the connection]
<hoelzro> delsol_: what's the command?
kirun has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
casadei has joined #ruby
<delsol_> su reg1 -c "cd ~reg1 && [ -f .vnc/passwd ] && vncserver :51 -geometry 1024x768"
commondream has joined #ruby
<delsol_> starts VNC server as reg1, on desktop :51
chouhoulis has joined #ruby
<hoelzro> delsol_: and how are you calling that from Ruby?
<delsol_> `su reg1 -c "cd ~reg1 && [ -f .vnc/passwd ] && vncserver :51 -geometry 1024x768"` or exec('su reg1 -c "cd ~reg1 && [ -f .vnc/passwd ] && vncserver :51 -geometry 1024x768"')
wald0 has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Ping timeout: 272 seconds]
<delsol_> or by putting su reg1 -c "cd ~reg1 && [ -f .vnc/passwd ] && vncserver :51 -geometry 1024x768" in a bash script.... and exec(' ') it, or ` ` it
<hoelzro> well, exec probably doesn't do what you think it does
<delsol_> running command directly, or running bash script directly... works fine.
davedev24_ has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
doertedev has quit [Ping timeout: 246 seconds]
<hoelzro> because exec replaces the current process, and it doesn't use the shell to invoke the given command
sharpmachine has quit [Remote host closed the connection]
endorphine_ has joined #ruby
<hoelzro> `` probably uses /bin/sh instead of bash, but nothing is jumping out at me for why that command wouldn't work
x44x45x41x4E has joined #ruby
x44x45x41x4E has quit [Remote host closed the connection]
<hoelzro> delsol_: what's the error you get with ``?
axsuul has quit [Remote host closed the connection]
aces1up has quit []
<delsol_> hoelzro: it bitches about /root/.Xauthority timeout
aapole has joined #ruby
axsuul has joined #ruby
<delsol_> takes forever.... and then is running as the wrong user.
<keernel> odd
systemd0wn_ has quit [Remote host closed the connection]
mandarinkin has quit [Ping timeout: 246 seconds]
<delsol_> yeah.
<hoelzro> it sounds like an environment problem, maybe
systemd0wn has joined #ruby
<delsol_> works just fine from command line
<delsol_> or the bash script
mandarinkin has joined #ruby
commondream has quit [Remote host closed the connection]
sharpmachine has joined #ruby
ledestin has joined #ruby
NeverDie has joined #ruby
<hoelzro> maybe see if there's a big difference in `su reg1 -c env` versus su reg1 -c env run from the shell
Meeh has quit [Read error: Connection reset by peer]
riffraff has quit [Quit: This computer has gone to sleep]
arooni-mobile has joined #ruby
Meeh has joined #ruby
riffraff has joined #ruby
barkerd427 is now known as zz_barkerd427
troulouliou_dev has quit [Remote host closed the connection]
araujo_ has joined #ruby
<delsol_> system( uses sh, you're right...
hakunin has joined #ruby
mary5030 has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 272 seconds]
zcreative has quit [Quit: (null)]
araujo has quit [Ping timeout: 264 seconds]
simplyianm has joined #ruby
jgt3 has joined #ruby
ndrei has joined #ruby
ruby-lang246 has joined #ruby
<ruby-lang246> Oh my god
yqt has joined #ruby
<graft> isn't there a better way to do this than system execing su?
<graft> i mean, that looks horrendous to me
<graft> for example there is a sudoers file, can't you just make a nice script and put an entry in there?
commondream has joined #ruby
krisquigley has quit [Remote host closed the connection]
<delsol_> graft: in a perfect world, yes, there are 1000 better ways to do it.
<graft> yeah, so do those
ruby-lang246 has quit [Client Quit]
<miah> you could sudo your ruby script and use Process / setuid
<graft> what are the parameters, here? your ruby script is running as root?
ylla has quit [Ping timeout: 244 seconds]
<graft> and it has to run a process as another user?
dmolina has quit [Quit: Leaving.]
Filete has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
disKounted has joined #ruby
disKounted has quit [Client Quit]
stoogenmeyer has joined #ruby
jgt3 has quit [Ping timeout: 244 seconds]
<delsol_> graft: It doesn't need to run anything as another user.... if it would just execute a bash shell script properly.
<graft> okay, but the bash shell script is running as another user
<miah> well, /bin/sh != bash so..
dorei has joined #ruby
arooni-mobile has quit [Ping timeout: 265 seconds]
<miah> can you prefix your command with /bin/bash eg; `/bin/bash su ...`
<delsol_> miah: from /bin/sh you can execute the bash script just fine via command line.
<delsol_> and it works fine.
<graft> the problem is su will dump your environment
<miah> indeed
<graft> so lots of stuff you need for your script to run will not survive that
zz_barkerd427 is now known as barkerd427
<miah> unless you pass -m iirc
<graft> how important is it that the script runs as that user?
edwinvdgraaf has joined #ruby
bgmarx has joined #ruby
<delsol_> other client machines would VNC in as root otherwise...
Palmer11 has quit [Quit: Palmer11]
<delsol_> while they can't really DO anything (no desktop, no command line, app auto-runs, etc)
Dopagod has quit [Quit: WeeChat 1.0]
ta has joined #ruby
jackjackdripper has joined #ruby
<delsol_> if they managed to crash it, or kill X without X restarting correctly, they could be dumped at a command line logged in as root potentially.....
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<graft> oh you're spawning a vnc server
<delsol_> yes.
<delsol_> spawning one per client machine.... if client machine is enabled in list of clients.....
<delsol_> and client connection type is listed as VNC (as opposed to Xforwarding)
jmhmccr has quit [Quit: Connection closed for inactivity]
hahuang65 has joined #ruby
nonparfumee has joined #ruby
edwinvdg_ has quit [Ping timeout: 244 seconds]
<miah> -m, --preserve-environment do not reset environment variables
<miah> so, as long as you 'export IMPORTANT_STUFF' prior to running your ruby script
<miah> your su should inherit the environment
nym has joined #ruby
jenrzzz has joined #ruby
<graft> i don't think they want the root environment, actually
<graft> because then they'd probably end up with the root .Xauthority which was the original complaint
<miah> they're not running as root though are they?
<graft> they want the user's Xauthority (which might not exist)
benlovell has quit [Ping timeout: 256 seconds]
<graft> this should really be running under a user login shell
<miah> if they are running ruby as root, just use Process.uid already
<graft> so it has the proper user environment
The_Phoenix has joined #ruby
<graft> su user is too sloppy
The_Phoenix has quit [Max SendQ exceeded]
AbinoamJr has joined #ruby
Eiam has joined #ruby
<delsol_> graft: Correct. need the users .Xauthority
The_Phoenix has joined #ruby
<delsol_> instead of roots.... running via command line, it works fine... making ruby run it, I get: xauth: timeout in locking authority file /root/.Xauthority
RandyT has quit [Ping timeout: 265 seconds]
<graft> well try su --login
The_Phoenix has quit [Max SendQ exceeded]
war_pigs has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
RandyT has joined #ruby
mary5030 has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tomphp has joined #ruby
<delsol_> graft: not sure that'll work either..... as the users .profile auto-starts the ruby app....
Narzew has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<graft> eh? the one that launches the vnc server?
RandyT_ has joined #ruby
<delsol_> that was the advantage of the other script...
Eiam has quit [Ping timeout: 252 seconds]
<delsol_> it would start the VNC server as reg1/2/3
The_Phoenix has joined #ruby
<graft> so if i login as reg1, what happens?
The_Phoenix has quit [Max SendQ exceeded]
<finisherr> How can i ask rvm which versions of the interpreter are availble for installation?
<delsol_> from command line?
<graft> it runs a ruby script that launches a vnc server?
<delsol_> you get kicked out.
<graft> finisherr: rvm install --list
zendrix has quit [Remote host closed the connection]
<delsol_> if you ssh -X -Y as reg1, you Xforward, get a locked down X, and the app starts.
<graft> finisherr: oh wait that's rbenv... but use rbenv anyway, it's better
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<delsol_> if you vnc in.... to the right port, with reg1's VNC password.... you get the app.
<delsol_> (in a locked down X)
<finisherr> I’m supposed to use RVM
The_Phoenix has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<graft> finisherr: rvm list known
The_Phoenix has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 272 seconds]
<havenwood> finisherr: To fetch latest versions then list: rvm get master && rvm list known
RandyT has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
qwertme has joined #ruby
<graft> delsol_: can't you just have their profile exec the vnc server when they login? why have a separate daemon to authenticate this one thing?
<delsol_> graft: the VNC server has to be active on that display before they can log in.
The_Phoenix has joined #ruby
<delsol_> they never have to touch the actual server.
NeverDie has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
<delsol_> and users can't be required to know anything... its kiosk style basically.
<simplyianm> How do I make this code more idiomatic
<simplyianm> recipients = channel.channel_admin_roles.map {|channel_admin| channel_admin.email}
<simplyianm> recipients = recipients.unshift(channel.owner_email).uniq.compact
The_Phoenix has quit [Max SendQ exceeded]
NeverDie has joined #ruby
<graft> delsol_: so, your auth daemon is running, user connects via VNC to some port, auth daemon authenticates, spawns a vnc server, connects user to it?
duderonomy has quit [Ping timeout: 244 seconds]
<delsol_> graft: no.... the idea is that the config screen knows how many kiosks there should be...
<delsol_> if those kiosks connect via Xforwarding or VNC
RandyT_ has quit [Ping timeout: 276 seconds]
<delsol_> and starts those specific instances....
The_Phoenix has joined #ruby
mandarinkin has quit [Ping timeout: 258 seconds]
jespada has quit [Quit: WeeChat 1.1.1]
The_Phoenix has quit [Max SendQ exceeded]
sharpmachine has quit [Remote host closed the connection]
<delsol_> the VNC server should already be spawned.... but in a pinch, should be able to click "restart VNC" from admin options... and have it killall Xvnc, and then run the startup script that starts each separate VNC desktop.
The_Phoenix has joined #ruby
<graft> i see, so before the user does anything, the vnc server should be running
<delsol_> yes
<delsol_> replace "user" with "complete idiot"
The_Phoenix has quit [Max SendQ exceeded]
jwilson has quit [Read error: Connection reset by peer]
<delsol_> complete idiot walks up to kiosk... should be running app.
solars has joined #ruby
jwilson has joined #ruby
The_Phoenix has joined #ruby
sharpmachine has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<delsol_> kiosk VNC's in on boot....
marr has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
<delsol_> if VNC server or network is down, they get error window.... clicking OK reconnects... :)
x1337807x has joined #ruby
balazs has quit [Ping timeout: 272 seconds]
<delsol_> (assuming server is running again at that point, and network is working again)
The_Phoenix has joined #ruby
Cache_Money has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sharpmachine has quit [Remote host closed the connection]
lkba has joined #ruby
The_Phoenix has joined #ruby
mandarinkin has joined #ruby
_seanc_ has quit [Quit: _seanc_]
DEA7TH has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
nobitanobi has joined #ruby
sharpmachine has joined #ruby
nizmow has quit [Ping timeout: 244 seconds]
TripleKKK has joined #ruby
The_Phoenix has joined #ruby
vyorkin1 has joined #ruby
RegulationD has joined #ruby
dfockler has quit [Remote host closed the connection]
<TripleKKK> what are some nice light weight frameworks for ruby web dev?
lkba_ has quit [Ping timeout: 276 seconds]
vyorkin has quit [Read error: No route to host]
<mwlang> Is a hash of hashes actually separately instantiated Hash classes? i.e. {foo: {bar: “foobar”}} — is this one Hash class or two?
podman has joined #ruby
<miah> two
<miah> the value of foo is a class
Vile` has quit [Quit: .]
pglombardo has joined #ruby
<ljarvis> ^
dfinninger has joined #ruby
<miah> the class is a hash
jenrzzz_ has joined #ruby
<ljarvis> TripleKKK: sinatra is probably the most popular one, but there are loads. A quick Google would reveal more
<mwlang> ok, so I need to extend every occurance of Hash classes within a deeply nested hash for my code to work.
lolmaus has quit [Quit: Konversation terminated!]
<miah> >> foo = { bar: { fizz: 'buzz' } }; foo[:bar].class
<ruboto> miah # => Hash (https://eval.in/380107)
<TripleKKK> just asking i did google search stuff but i'm not sure which one to use
<ljarvis> mwlang: what are you trying to do?
adimircolen has joined #ruby
<ljarvis> TripleKKK: Use the one that works for your use-case
<TripleKKK> basically i'm writing a two player chess app
mikecmpbll has joined #ruby
<TripleKKK> you connect to the link and play chess with a friend
<mwlang> it basically works as long as I start with “foo” but if I do bar = foo[:bar] and then try bar.value_at …
<ljarvis> mwlang: right, you need to include your module into Hash really
<ljarvis> TripleKKK: I think any would do, then. Use the one that looks the nicest to you. Maybe the one that immediately looks fun or makes the most sense
<mwlang> ljarvis: good idea! I was starting to recursively do it, but top-level makes a lot more sense.
someword has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
someword has joined #ruby
<ljarvis> mwlang: the alternative is a custom class, but then you'd need to wrap your literals which you might not want
<TripleKKK> i know i could probably do it in rails but i feel like rails is too big and confusing for me at my early beginner stage
<ljarvis> TripleKKK: try sinatra, I like it and I've had much success and fun with it
<TripleKKK> now it's time for me to start studying different frameworks and reading about them
<mwlang> ljarvis: yeah, I def. don’t want that route.
bb010g has quit [Quit: Connection closed for inactivity]
<TripleKKK> thanks... i will try sinatra :)
<ljarvis> mwlang: monkeypatch seems ftw then! :)
frem has joined #ruby
mandarinkin has quit [Ping timeout: 264 seconds]
<miah> refinements?
Vile` has joined #ruby
<ljarvis> mwlang: also, I'm sure you know, but the built in `p` method is the same as your log method
jenrzzz_ has quit [Ping timeout: 276 seconds]
mandarinkin has joined #ruby
<mwlang> ljarvis: didn’t know. I was just extracting to “log” because I was toying with what was output
munen has joined #ruby
<havenwood> alias log p
<ljarvis> ah ok, `p` is a great method
wildroman2 has joined #ruby
<ljarvis> I basically use it for all my debugging
<mwlang> I thought p came with “prettyprint” which I rarely “require” so I never think to use it.
<ljarvis> because it actually returns the object, unlike your log method which returns nil
<ljarvis> so you can add 'p' in everywhere
<ljarvis> na, pp is in prettyprint
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<mwlang> hmmm…so p is built-in to Ruby and not Rails?
<ljarvis> i.e in thousands of lines of code, some foo = get_bar(omg(hax)) you could just wrap any of those things in p()
<ljarvis> correct
<ljarvis> it's in Kernel iirc
jenrzzz has joined #ruby
<ljarvis> >> method(:p)
<ruboto> ljarvis # => #<Method: Object(Kernel)#p> (https://eval.in/380108)
<havenwood> >> method(:p).owner
<ruboto> havenwood # => Kernel (https://eval.in/380109)
<ljarvis> slow poke
<mwlang> lol
<havenwood> :P
<mwlang> nice tool to add to my belt
someword has joined #ruby
cmisenas has quit [Ping timeout: 264 seconds]
<ljarvis> im picturing a batman type belt
riffraff has quit [Quit: Leaving]
bin_005 has joined #ruby
<mwlang> I’m somewhat in the habit of doing something like my “log” method because at some point in development, I start turning that into a real logger.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> ljarvis: that’s because that’s what I have. :-D
vyorkin2 has joined #ruby
delsol_ has quit [Remote host closed the connection]
vyorkin1 has quit [Read error: Connection reset by peer]
<ljarvis> :D
cmisenas has joined #ruby
<havenwood> >> alias log p; log 'stuff'
<ruboto> havenwood # => "stuff" ...check link for more (https://eval.in/380110)
<ljarvis> yep good idea, just return the original object and it'll be a lot smarter
<mwlang> although my batman belt is starting to resemble Saturn’s newly discovered outer ring. :-D
someword1 has joined #ruby
<ljarvis> also, allow multiple objects ofc :)
sdwrage has joined #ruby
<mwlang> hmmm…did p get added along with tap?
<ljarvis> no
<ljarvis> p was around a lot longer
<havenwood> 18>> "nope"
<ruboto> havenwood # => "nope" (https://eval.in/380111)
<mwlang> because if it were in 1.8.7, I have no idea how I never learned to use p at the outset.
<havenwood> 18>> p "nope"
<ruboto> havenwood # => "nope" ...check link for more (https://eval.in/380112)
vikaton has joined #ruby
<ljarvis> it was in 1.8.2 and before iirc
intinig has joined #ruby
<havenwood> 10>> p "primordial"
<ruboto> havenwood # => "primordial" ...check link for more (https://eval.in/380113)
<ljarvis> there you go
<ljarvis> it's never not been there :D
finisherr has quit [Quit: finisherr]
<mwlang> heh…. one letter method names are tough to google.
meph has quit [Quit: Leaving.]
<mwlang> I remember struggling for a long time to figure out what “h” was in Rails.
<TripleKKK> so a primordial is an irish band eh?
<mwlang> and that was where I began my Ruby journey
someword has quit [Ping timeout: 276 seconds]
<mwlang> ruboto runs Ruby 1.0? :-o
<ljarvis> 10>> RUBY_VERSION
<ruboto> ljarvis # => /tmp/execpad-5b1c1c64e2b4/source-5b1c1c64e2b4:4: TypeError: can't modify frozen string (https://eval.in/380114)
<ljarvis> wow
nertzy has joined #ruby
<ljarvis> 10>> VERSION
<ruboto> ljarvis # => "1.0-971225" (https://eval.in/380115)
<ljarvis> 10>> method
<ruboto> ljarvis # => /tmp/execpad-b9b67b362c1d/source-b9b67b362c1d:4: TypeError: can't modify frozen string (https://eval.in/380116)
<ljarvis> 18>> method(:loop)
<ruboto> ljarvis # => #<Method: Object(Kernel)#loop> (https://eval.in/380117)
codecop has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zz_Outlastsheep is now known as Outlastsheep
<mwlang> man, now that’s stinkin’ cool.
plashchynski has joined #ruby
tomphp has joined #ruby
sarkyniin has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmisenas has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
deric_skibotn has joined #ruby
baweaver has quit [Remote host closed the connection]
NeverDie has quit [Max SendQ exceeded]
barkerd427 is now known as zz_barkerd427
choke has joined #ruby
niftylettuce has joined #ruby
Oqi has joined #ruby
NeverDie has joined #ruby
kraljev11 has quit [Quit: kraljev11]
x1337807x has joined #ruby
blandflakes has joined #ruby
kraljev11 has joined #ruby
<Oqi> Hello, I am getting this :NoMethodError-------------undefined method `[]' for nil:NilClassCookbook but I have done the check: unless variable.nil? first. So it should not trigger any exception
<Oqi> Any idea how I can bypass this please >
<mistym> Oqi: Can you show your code?
aaeron has joined #ruby
JakFrist has joined #ruby
segfalt has quit [Quit: segfalt]
<Oqi> mistym: It is a mix with chef and things but basically it is like this: unless node['field'].nil? do something and node['field'] is null 100% of the time
duderonomy has joined #ruby
<Oqi> mistym: so because of the unless node['field'].nil? it is not supposed to send an exeception, this is the purpose of .nil? I guess
mleung has quit [Quit: mleung]
<mistym> Oqi: It would be really helpful if you could show the actual snippet of code, please!
Xeago has quit [Remote host closed the connection]
zendrix has joined #ruby
NeverDie has quit [Max SendQ exceeded]
<ljarvis> >> loop.max
<ruboto> ljarvis # => (https://eval.in/380119)
<ljarvis> well played
RobertBirnie has quit [Ping timeout: 252 seconds]
khebbie has joined #ruby
Fraeon has joined #ruby
Cloudhand has joined #ruby
plashchynski has quit [Quit: plashchynski]
_joes__ has joined #ruby
_joes_ has quit [Ping timeout: 258 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aspiers has quit [Ping timeout: 256 seconds]
Slyth has joined #ruby
NeverDie has joined #ruby
<ruboto> Oqi, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a2487b709d1421d5dda7
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ljarvis> >> loop.first(10)
<ruboto> ljarvis # => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] (https://eval.in/380120)
zz_barkerd427 is now known as barkerd427
jgt3 has joined #ruby
mleung has joined #ruby
<ljarvis> >> loop.with_index.map(&:last).first(10)
<ruboto> ljarvis # => undefined method `last' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/380121)
intinig has quit [Remote host closed the connection]
<mistym> Oqi: I'm guessing node['normal'] or node['normal']['chef_client'] is nil here
chipotle has joined #ruby
<Oqi> mistym: yes exactly
<Oqi> mistym: but i don't want the exception
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mistym> Oqi: The nil check here is on the value being fetched by the 'tomcat_restart' key - since, say, node['normal'] is nil, what's happening is you're doing the equivalent of nil['chef_client']
plashchynski has joined #ruby
<mistym> Which is the exception you pasted
RobertBirnie has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<mistym> You should check to see if node['normal'] and/or node['chef_client'] are nil, if one of those could be nil
wildroman2 has joined #ruby
<Outlastsheep> node['normal'].is_nil? should do the trick.
<Outlastsheep> Huh.
Slyth has left #ruby [#ruby]
<ljarvis> .nil?
sinkensabe has joined #ruby
<Outlastsheep> Oh, yes. .nil?, sorry.
<Oqi> mistym: okay so something like this ? unless node['normal'].nil? or node['normal']['chef_client'] or node['normal']['chef_client']['tomcat_restart'].nil?
mleung has quit [Client Quit]
hoov has quit [Quit: Leaving]
<mistym> Oqi: Is it possible for all three of those to be nil?
<Oqi> mistym: yes
<mistym> If so, yes!
<Oqi> mistym: I am not sure if it is a And or a Or actually
<Oqi> probably Or
oo_ has quit [Remote host closed the connection]
cmisenas has joined #ruby
stoogenmeyer has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Ping timeout: 265 seconds]
rubie has quit []
wildroman2 has quit [Ping timeout: 246 seconds]
jwaldrip_ has quit [Quit: Be back later ...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonparfumee has joined #ruby
allomov has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
bronson_ has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
wpp has quit [Remote host closed the connection]
<miah> depends on your condition, fail if a AND b are nil? or fail if a OR b are nil?
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
TheHodge has quit [Quit: Connection closed for inactivity]
bronson_ has joined #ruby
sinkensabe has joined #ruby
Cloudhand has quit [Ping timeout: 244 seconds]
vyorkin2 has quit [Ping timeout: 256 seconds]
aspiers has joined #ruby
foucist has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
finisherr has joined #ruby
Pupeno has quit [Remote host closed the connection]
segfalt has joined #ruby
foucist has joined #ruby
<shevy> so many fails
troyready has quit [Quit: Leaving]
<dudedudeman> ha! the hartl tutorial uses teh Dude as an example
nertzy has quit [Quit: This computer has gone to sleep]
krisquigley has quit [Ping timeout: 250 seconds]
jbomo has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 245 seconds]
simplyianm has quit [Remote host closed the connection]
Ox0dea has joined #ruby
<Ox0dea> ljarvis: Developer happiness from the first: https://github.com/ruby/ruby/blob/3db12e8/io.c#L2183
cmisenas has quit [Ping timeout: 245 seconds]
sharpmachine has quit [Remote host closed the connection]
baweaver has joined #ruby
diegoviola has joined #ruby
Koveno has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Remote host closed the connection]
qwertme has joined #ruby
mary5030_ has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
ndrei has quit [Ping timeout: 258 seconds]
dmr8 has quit [Quit: Leaving]
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
sinkensabe has joined #ruby
ponga has joined #ruby
ndrei has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
djbkd has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
alanjf has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<alanjf> Hi. I just upgraded to ruby-2.2.2. During a make process of qtwebkit, I get this error: /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init - /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so (LoadError)
adimircolen has quit [Remote host closed the connection]
<shevy> is this not a problem of qtwebkit?
<shevy> btw I don't have a sha1.so file
<shevy> I compiled ruby from source though
<mistym> alanjf: You may need to try reinstalling qtwebkit after upgrading.
<mistym> Er, wait, sorry, misread
cmisenas has joined #ruby
<alanjf> This is a fairly custom linux system, most things are built from source, so most of the posts I find via google about using apt-get or yum don't apply here. I do have libxml2, zlib-1.2.5, openssl-1.0.1l, readline-6.2 though.
<Ox0dea> shevy: It's in build/.ext.
djbkd has quit [Remote host closed the connection]
lessless has joined #ruby
momomomomo has joined #ruby
<alanjf> I just can't figure out why 'ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so' is throwing a load error.
<Ox0dea> shevy: And from there it'll end up at a path very much like alanjf's once you `make install`.
_seanc_ has joined #ruby
eggoez has quit [Ping timeout: 276 seconds]
kadoppe has quit [Ping timeout: 250 seconds]
<alanjf> Most hits from google about this error say to run `apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev`, and I know I have all of that already (built from sources), though I'm not sure if "zlib1g-dev" is just regular zlib package?
_seanc_ has quit [Client Quit]
aapole has quit [Ping timeout: 256 seconds]
endorphine_ has quit []
<ponga> hi shevy , if you have miniute , can you answer me if you speak english in german accent
<alanjf> Does anyone know how ot solve this?
dfockler has joined #ruby
<ponga> and when you are going to make a ruboto bot alternative for my birthday present
<Ox0dea> ponga: Writing IRC bots is embarrassingly easy with Ruby.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<aaeron> hehe
endorphine_ has joined #ruby
choke has joined #ruby
<ponga> Ox0dea: i guess it is but i want it to function what ruboto does
<ponga> >> puts "i'm adorable"
<ruboto> ponga # => i'm adorable ...check link for more (https://eval.in/380137)
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga> then im stuck with idea to make it happen
<Ox0dea> ponga: And... what? You're uncomfortable with locally running `eval` on arbitrary Ruby code?
eggoez has joined #ruby
munen has quit [Quit: munen]
kadoppe has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<shevy> ponga more of an austrian accent, sort of; but I try to speak proper english when I do. it's hard to avoid the natural dialect though; Arnold Schwarzenegger still has an austrian accent even today, it was much worse in "Conan" and "Red Sonja" (it's not same dialect, it's middle-austria; eastern austrian dialect is different)
g0bl1n has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Remote host closed the connection]
<shevy> ponga my first ruby project was a bot
mdz_ has quit [Remote host closed the connection]
<shevy> but somehow it's not as interesting anymore :(
<alanjf> I get the same error if I run `ruby -rdigest/sha1 -e '1'`
<ponga> Ox0dea: shamefully, yes.. i have no idea how to deliver the string to local irb then fetch the result in single script
<alanjf> What would cause this? I have libssl.
<ponga> damn im dumb
<alanjf> Anyone?
davedev2_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
hazelux has joined #ruby
<Ox0dea> ponga: What? Why do you think you would need to use irb?
mleung has joined #ruby
mandarinkin has quit [Ping timeout: 256 seconds]
<shevy> Ox0dea I compiled ruby from source and still don't have any sha1.so
davedev24_ has quit [Ping timeout: 258 seconds]
<Ox0dea> alanjf: Distro?
<Ox0dea> shevy: Use `find -name sha1.so`.
<shevy> yep, no result
<shevy> do I have to repeat it again? :)
<alanjf> Ox0dea: It's in /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so
<ponga> Ox0dea: are you talking about this? http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-eval that i could pass ruby expression in string and it will bring result of it?
<Ox0dea> alanjf: ...
<Ox0dea> ponga: Yes.
sinkensabe has joined #ruby
swgillespie has joined #ruby
<ponga> damn it Ox0dea i learnt something new today thank you
<shevy> alanjf that path is unusual, did you compile ruby by yourself?
mleung has quit [Client Quit]
<alanjf> shevy: yes
<shevy> ah
<Ox0dea> alanjf: I asked which Linux distribution you're running in order to help you find the package you need. It's probably something like openssl-dev.
mandarinkin has joined #ruby
<TripleKKK> why don't people start learning programming from assembly?
<shevy> what is i686-linux, is that specific for a 32 bit system?
<alanjf> Ox0dea: I have libssl, from openssl-1.0.1l (build from source)
<Ox0dea> Yes.
<shevy> I am on x86_64
<ponga> so basically i write an eventlistener that will read every line in channel then process it, if its ruby expression with >> pass it thru eval and print it?
Tennis has quit [Remote host closed the connection]
pontiki has joined #ruby
<alanjf> shevy: yesh it's 32-bit
<Ox0dea> alanjf: Yes, but you likely need the -dev package for the appropriate headers.
<shevy> my openssl is 1.0.1i
tomphp has joined #ruby
whoisjake has joined #ruby
<ponga> sounds sound
<Ox0dea> ponga: Yes, but you really don't want to actually do that.
<alanjf> Ox0dea: I have all the headers and libs for openssl
jenrzzz has joined #ruby
Tennis has joined #ruby
<ponga> Ox0dea: why not? as you might know by now im asking this as dumbshit
<Ox0dea> alanjf: Then they're not in any place Ruby's build process could find them, it would seem.
<alanjf> Ox0dea: When you build openssl from source, all the "devel" stuff that many distros have separately are all together.
<ponga> why is it a bad idea, i want to learn
<alanjf> strace shows that it is finding the libs.
<Ox0dea> ponga: You would basically be giving everybody in here access to your machine.
<ponga> ah
<Ox0dea> >> `rm -rf ~/*`
<ruboto> Ox0dea # => (https://eval.in/380139)
bkxd has quit [Ping timeout: 256 seconds]
<Ox0dea> We could do that and you'd lose everything in your home directory.
sinkensabe has quit [Remote host closed the connection]
<ponga> damn it you are right
<alanjf> open("/lib/libssl.so.1.0.0", O_RDONLY) = 7
<shevy> ponga people tested the ruboto bot :)
krz has quit [Quit: WeeChat 1.0.1]
<ponga> shevy: looks like they did
<ponga> "bullied" for political correctness :)
Scroff has joined #ruby
vyorkin2 has joined #ruby
<shevy> I found sha1.c: openssl-1.0.1i/crypto/sha/sha1.c
<shevy> unsure why my ruby did not use it
<ponga> to this day i still dunno how to install a lang from tar.gz
momomomomo has quit [Ping timeout: 276 seconds]
learath has joined #ruby
<alanjf> The error message says "/usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init" but `readelf -a /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so` shows it is in there.
<ponga> i should google search and learn how to do it
mary5030 has joined #ruby
mleung has joined #ruby
<learath> I'm trying to return the results of a variable.each loop, but instead variable.each is getting returned
<alanjf> So why is ruby doing this?
<Ox0dea> learath: You want #map.
<learath> Ox0dea: #map?
tomphp has quit [Client Quit]
<TripleKKK> .map
<shevy> alanjf a better question might be why your ruby is doing this :-)
<Ox0dea> alanjf: It's unlikely to be Ruby's fault.
<TripleKKK> you want to use the map method
<TripleKKK> instead of each
<alanjf> shevy: That is what I want ot find out.
<ponga> yeah
<learath> ok, looking it up
<learath> Thanks
mwlang has quit [Quit: mwlang]
<ponga> i knew the answer for that im proud now
Tennis has quit [Ping timeout: 264 seconds]
<shevy> alanjf might you have more than one openssl version installed?
Deck` has quit [Read error: Connection reset by peer]
<alanjf> Ox0dea: I have no problem building against and using ssl/sha related things in other langs like Perl though. Ruby is the only one giving me this problem, so I'm more inclinded to feel it's a Ruby related problem.
<alanjf> shevy: just 1.0.1l
arooni-mobile has joined #ruby
Scroff has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
mleung has quit [Client Quit]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
commondream has quit [Remote host closed the connection]
<shevy> hmm
<shevy> Ox0dea do you have a digest/sha1.so file in ruby?
commondream has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
aaeron1 has joined #ruby
<Ox0dea> shevy: Both in my system's 2.2.2, and current trunk.
endorphine_ has quit []
<shevy> cool
anisha has joined #ruby
<shevy> 3 different ruby systems here :-)
yfeldblum has joined #ruby
<diegoviola> I've got a job as a developer
<shevy> one who has no such file; one who has such a file and it works; and one who has such a file and it does not work
<TripleKKK> what are you working on?
<shevy> diegoviola with the coworkers you hate?
<diegoviola> shevy: I don't hate them
<shevy> but you use windows
<alanjf> Can digest/sha1.so be built manually? I'm not familiar with building modules in Ruby. I'm more used ot working with Perl, where id's either cpan -i Digest::SHA1 or download the tarball and do it by hand.
<diegoviola> shevy: I've already installed the VM
<shevy> on windows
<diegoviola> shevy: it's fast
<shevy> :-)
simplyianm has joined #ruby
<shevy> it's fast - on windows
<shevy> alanjf normally yes
<shevy> alanjf there is some .rb file in the ext/ subdirectories
<diegoviola> shevy: I don't care anymore, it's fast enough
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alanjf> shevy: And what do I do with it?
<diegoviola> shevy: and I won't be forever at that company, so
<learath> Ox0dea: Thank you, that was exactly what I needed.
<shevy> alanjf, for instance, readline module has this file there: ext/readline/extconf.rb
<shevy>
<shevy> oops, trailing newline sorry
<shevy> you can run that file and usually get a Makefile created
<shevy> the problem was, if I remember, I never managed to get this to work with openssl :\
<shevy> ext/openssl/
aaeron has quit [Quit: aaeron]
<shevy> you can still give it a try there though
aaeron1 has quit [Client Quit]
<Ox0dea> learath: Excellent. Are you certain you've understood the method's purpose?
<shevy> "ruby extconf.rb"
momomomomo has joined #ruby
aaeron has joined #ruby
commondream has quit [Ping timeout: 255 seconds]
<shevy> for openssl problems and ruby, I usually compile from source again. That usually fixed things hehe
platosha__ has quit [Ping timeout: 252 seconds]
<Ox0dea> ponga: I hesitate to give you this, but here goes: https://gist.github.com/0x0dea/9cd62f3a58cd52de87a4
zendrix has quit [Remote host closed the connection]
platosha__ has joined #ruby
plashchynski has quit [Quit: plashchynski]
<ponga> Ox0dea: did you hesistate because you wanted me to learn it myself? anyway thank you very much it is very kind
<alanjf> shevy: I did that. How do I compile ext/digest, I mean how ot generate the Makefile ?
<Ox0dea> ponga: "With great power..." and all that.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ox0dea> alanjf: It should happen automatically as part of the build process.
<ponga> sorry i don't get the joke nor reference
plashchynski has joined #ruby
<alanjf> Ox0dea: I get that, but it's not doing something right.
<momomomomo> ponga: don't break shit
<momomomomo> tl;dr
Spami has quit [Read error: Connection reset by peer]
<shevy> well digest/ also has extconf.rb
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
<shevy> once you have the Makefile, try "make"
Spami has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
<Ox0dea> ponga: I mean, if you added a line to properly authenticate and didn't change anything else, you'd potentially be in for a bad day.
<Ox0dea> And, no offense, you seem like the sort to do such a thing. ^_^
<shevy> I don't have much faith in the ruby-opensl part though alanjf - not to discourage you, it's just based on my own experiences :-)
<shevy> I am happy to get things to work
simplyianm has joined #ruby
<shevy> rubygems requires openssl for instance, if I don't have a ruby with openssl then I can not push-update my gems
jenrzzz has joined #ruby
<ponga> i think i got 70% of what guys are saying to me,
<ponga> im like "ok..."
<shevy> ponga you seem disorientated today!
<shevy> ponga did you have bad food?
<Ox0dea> ponga: You asked for a ruboto alternative and got one? This isn't monad surgery!
<shevy> ack... monad surgery
<ponga> no its just the day i feel im dumb
lkba has quit [Remote host closed the connection]
lkba has joined #ruby
<ponga> i still don't know if there were a sarcasm in your previous statements
* ponga is very bad at catching those
<Ox0dea> It was light-hearted ribbing at worst.
<Ox0dea> You really could add a line to that script, execute it, and open your machine up to a world of hurt.
<ponga> damn it
<ponga> poor my laptop
decoponio has quit [Quit: Leaving...]
revath has quit [Ping timeout: 265 seconds]
<Ox0dea> >> a = {}; a[a] = 1; a[a]
<ruboto> Ox0dea # => nil (https://eval.in/380145)
<Ox0dea> Anybody know what's going on there?
kraljev11 has quit [Ping timeout: 258 seconds]
<Ox0dea> >> a = []; a << a; b = {}; b[a] = 1; b[a] # Self-referential arrays work fine as keys.
<ruboto> Ox0dea # => 1 (https://eval.in/380150)
<Ox0dea> So why not self-referential hashes?
aaeron has quit [Quit: Leaving.]
starfox_sf has quit [Ping timeout: 265 seconds]
segfalt has quit [Quit: segfalt]
<ponga> btw i believe shevy comprehended what i meant by that ruboto is cute and i want my own too
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> this is the part I still don't understand
<shevy> that fondness of AI
enroxorz has joined #ruby
<shevy> Tamagotchi ?????
bronson_ has quit [Remote host closed the connection]
<enroxorz> Hey guys, how do I get access to a method created in a different module outside of the class scope? http://pastie.org/10236116
workmad3 has joined #ruby
<Ox0dea> Do you not suppose we'll be able to make a friendly AGI?
freerobby has quit [Quit: Leaving.]
<ponga> shevy: you don't appreciate basically a meatball, a lump of 0 and 1 so finely combined together that it could tickle your emotion?
<ponga> you are soulless sir
freerobby has joined #ruby
<learath> Ox0dea: I know enough to know damn well I don't understand :) but I understand what's happening in this case, .each returns the result of .each, while .map returns the result of the inner loop
Soda has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<jhass> enroxorz: your module defines an instance method. extend adds a modules instance methods as class methods to a class. include adds a modules instance methods as instance methods to a class
sinkensabe has quit [Ping timeout: 276 seconds]
<shevy> jhass is back from work!
shadoi has quit [Quit: Leaving.]
<enroxorz> shevy, jhass, thanks. i knew i was missing something
<enroxorz> :-)
segfalt has joined #ruby
michaeldeol has joined #ruby
gambl0re has quit []
workmad3 has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
mrsolo_ has joined #ruby
willharrison has joined #ruby
gambl0re has joined #ruby
tsvenson|afk has joined #ruby
sarkyniin has quit [Ping timeout: 252 seconds]
arooni-mobile has quit [Ping timeout: 256 seconds]
zekriad has quit [Read error: Connection reset by peer]
mrsolo has quit [Ping timeout: 256 seconds]
LBRapid has quit [Ping timeout: 256 seconds]
im0b has quit [Ping timeout: 256 seconds]
KnownSyntax has quit [Ping timeout: 256 seconds]
tsvenson|afk has quit [Read error: Connection reset by peer]
mrsolo_ is now known as mrsolo
lavros has quit [Quit: leaving]
edwinvdgraaf has quit [Remote host closed the connection]
failshell has joined #ruby
endorphine_ has joined #ruby
LBRapid has joined #ruby
im0b has joined #ruby
sarkyniin has joined #ruby
plashchynski has quit [Quit: plashchynski]
edwinvdgraaf has joined #ruby
KnownSyntax has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
allomov has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
simplyianm has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
lolmaus has joined #ruby
simplyianm has joined #ruby
toretore has joined #ruby
Cloudhand has joined #ruby
sinkensabe has joined #ruby
zekriad has joined #ruby
Scroff has joined #ruby
jhooker has quit [Ping timeout: 265 seconds]
lfox has joined #ruby
aaeron has joined #ruby
_seanc_ has joined #ruby
JoshL has quit []
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
I has joined #ruby
djbkd has joined #ruby
mdz_ has joined #ruby
I has left #ruby [#ruby]
grp066 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.2]
pengin has quit [Remote host closed the connection]
Pupeno has joined #ruby
sdwrage has joined #ruby
workmad3 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
dmolina has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
dmolina has quit [Client Quit]
<lfox> Is this an ok way to redefine an attr_reader from an included module? Seems excessive https://gist.github.com/larryfox/e6685cedfd0e90f84abe
simplyianm has quit [Read error: Connection reset by peer]
<apeiros> lfox: why the self.included hook? why alias?
<jhass> lfox: these are very hard to judge in the abstract
Miphix has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
Cloudhand has quit [Quit: Leaving]
Miphix has joined #ruby
choke has joined #ruby
<apeiros> I'm quite against using included/extended hooks to do anything but initialize the included/extended module
MatthewsFace has quit [Read error: Connection reset by peer]
Matthews_ has joined #ruby
<lfox> Basically I'd like to just be able to do this. https://gist.github.com/larryfox/38e6f3ede193c2bf07b8
<jhass> I mean the example shows no reason to define an alias in the first place
workmad3 has quit [Ping timeout: 256 seconds]
solars has quit [Ping timeout: 256 seconds]
commondream has joined #ruby
<lfox> But that doesn't work as expected.
<pipework> You know, life is funny like that sometimes.
segfalt has quit [Quit: segfalt]
<apeiros> lfox: you'd need prepend
<apeiros> include is later in the ancestry
zendrix has joined #ruby
sinkensabe has joined #ruby
bronson_ has joined #ruby
<lfox> Wow thanks, I had no idea about prepend.
barkerd427 is now known as zz_barkerd427
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
griffindy has joined #ruby
<apeiros> funny how prepend breaks my expectation of klass.ancestors.first == klass
The_Phoenix has quit [Ping timeout: 264 seconds]
fsvehla has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
apofis has joined #ruby
commondream has quit [Remote host closed the connection]
griffindy has quit [Client Quit]
banister has joined #ruby
blue_deref has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<lfox> I normally wouldn't touch code like this, but I'm building a bridge between two systems so some fringe behavior is acceptable.
simplyianm has quit [Read error: Connection reset by peer]
<TripleKKK> what is an example of really poorly written ruby code?
shadoi has joined #ruby
bricker has joined #ruby
mistermocha has joined #ruby
<pipework> TripleKKK: Haml.
<pipework> har har har
<TripleKKK> haml?
keernel has quit [Quit: Leaving.]
simplyianm has joined #ruby
<pipework> TripleKKK: I believe the proper definition is "Whatever I wrote last week."
failshell has quit []
x1337807x has joined #ruby
jamesaxl has joined #ruby
<jgt3> off topic: Saruman died today
phutchins has joined #ruby
MatthewsFace has joined #ruby
sinkensabe has quit [Remote host closed the connection]
NeverDie has quit [Ping timeout: 246 seconds]
hedgecore has joined #ruby
<Ox0dea> Fun fact: "Saruman" is composed of the Japanese words for "monkey" and "ten thousand".
nvll has left #ruby ["WeeChat 1.1.1"]
<Ox0dea> <something about Shakespeare and typewriters>
<pipework> Fun fact: "95%" of all facts are made up.
uri_ has joined #ruby
Matthews_ has quit [Ping timeout: 244 seconds]
<jamesaxl> i want to develop something but i do not have any idea
<Ox0dea> jamesaxl: Develop an idea.
sinkensabe has joined #ruby
<jamesaxl> Ox0dea: one hour and i can not develop it
<Ox0dea> Needs more development.
Scriptonaut has joined #ruby
<Ox0dea> Do you own a hammock?
pdoherty has joined #ruby
<Scriptonaut> hey guys, I defined: def sender=(person) in a class I have. It's not triggered when I mass assign though: Message.new person: some_dude
<jgt3> sit in a hammock for two years and you end up creating Clojure
<jamesaxl> Ox0dea: nop :(
symbol has quit [Ping timeout: 276 seconds]
<jhass> Scriptonaut: Rails?
<Ox0dea> jamesaxl: Can you conceive of a process by which you might fashion one from the non-hammock items in your possession?
<Scriptonaut> jhass: yessir
<jhass> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jhass> "mass assignment" is an activerecord feature
<Scriptonaut> oh, didn't know that
<jamesaxl> Ox0dea: i just finish 2 mini-projects i need something that will be useful with many people
<Scriptonaut> I mean that's not a uniquely rails thing
dasfsdaads has joined #ruby
<Scriptonaut> I do that stuff in plain ruby all the time
gix has quit [Ping timeout: 258 seconds]
<jhass> yes but you do it, not ruby
<jhass> in this case activemodel does it, not ruby
<Scriptonaut> I'm not using active model
<Scriptonaut> this is just a plain ruby class
<apeiros> then no wonder it doesn't work
<apeiros> because as jhass said - ruby does not do mass assignment.
<Scriptonaut> I always figured that was plain ruby behavior
<jhass> well, then what does your constructor look like?
<Scriptonaut> one sec I will gist
<apeiros> (the other reason would probably be that :person would use person=, not sender=)
<Ox0dea> Ruby does refer to parallel assignment as "mass assignment" internally, though.
bgmarx has quit [Remote host closed the connection]
<jhass> hence my quotes in "mass assignment" ;P
<apeiros> interesting. I only ever knew that as parallel assignment.
anisha has quit [Quit: Leaving]
<Scriptonaut> I shouldn't have said mass assignment
finisherr has quit [Quit: finisherr]
bronson_ has quit [Remote host closed the connection]
<jhass> self.sender = options[:sender]
<Scriptonaut> I mean aggregately creating an object
<jhass> person: some_dude
<Scriptonaut> ya, that should trigger right?
<jhass> {:person => some_dude}
danzilio has quit [Quit: My computer has fallen asleep!]
sinkensabe has quit [Remote host closed the connection]
lfox has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> options[:person] = some_dude
<jhass> options[:sender] != options[:person]
CalvinnHobbes has quit [Ping timeout: 256 seconds]
simplyianm has quit [Read error: Connection reset by peer]
<apeiros> so we're at: > 22:39 apeiros: (the other reason would probably be that :person would use person=, not sender=)
<jhass> though for a kinda different reason ;P
<Scriptonaut> I know? the override was for sender
<Scriptonaut> def sender=(person)
<Scriptonaut> so self.sender = options[:sender] should trigger it
MatthewsFace has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
baweaver has quit [Remote host closed the connection]
<jhass> you don't read :person
affenh0den has joined #ruby
<jhass> but you specify :person
wallerdev has joined #ruby
workmad3 has joined #ruby
michael_mbp has quit [Excess Flood]
<jhass> options[:sender] does not magically fetch the key :person from your options hash
gix has joined #ruby
cmisenas has quit [Quit: cmisenas]
affenh0den has quit [Client Quit]
<Scriptonaut> I don't understand, person is just the parameter name on the right
<Scriptonaut> it can be anything
<jhass> no
<jhass> how do you imagine that to work
victorkohl has joined #ruby
pocketprotector has quit [Ping timeout: 256 seconds]
<jhass> why would ruby magically know what hash key to use?
affenh0den has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
michael_mbp has joined #ruby
finisherr has joined #ruby
<jhass> did you maybe forget that Message.new person: some_dude is equivalent to Message.new({:person => some_dude}) ?
MatthewsFace has joined #ruby
bgmarx has joined #ruby
dagda1 has joined #ruby
momomomomo has joined #ruby
NeverDie has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k3asd` has joined #ruby
A205B064 has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
gianlucadv has quit [Ping timeout: 264 seconds]
<Scriptonaut> I just want to override the = for my sender attribute
<Scriptonaut> I should be able to assign it "blah", 4, true, etc
AlphaAtom has joined #ruby
evanjs has quit [Remote host closed the connection]
simplyianm has joined #ruby
<jhass> yes, that part is working
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
affenh0den has quit [Quit: leaving]
jenrzzz has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
affenh0den has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Matthews_ has joined #ruby
choke has joined #ruby
simplyianm has joined #ruby
pontiki has joined #ruby
pleal has joined #ruby
munen has joined #ruby
kirun has quit [Quit: Client exiting]
segfalt has joined #ruby
dfinninger has quit [Remote host closed the connection]
mdz_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enroxorz has quit [Quit: Page closed]
mdz_ has joined #ruby
pocketprotector has joined #ruby
MatthewsFace has quit [Ping timeout: 258 seconds]
krisquigley has joined #ruby
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jackneill has quit [Remote host closed the connection]
Oka has quit [Read error: Connection reset by peer]
<Scriptonaut> that part isn't working: https://gist.github.com/robins35/f26cc76a9af0f9446e23
<Scriptonaut> the sender= method is never called
<Scriptonaut> when I do a Message.new person: "HERRRO THERE"
simplyia_ has joined #ruby
<Scriptonaut> on line 53
chipotle has quit [Quit: cheerio]
<simplyia_> Hey
<simplyia_> What's the best way to get a code review
hazelux_ has joined #ruby
<ljarvis> simplyia_: how much code?
simplyianm has quit [Ping timeout: 245 seconds]
gambl0re has quit [Ping timeout: 265 seconds]
<simplyia_> ljarvis: A short 64 line controller
<simplyia_> I am trying to learn rails best practices
<simplyia_> and I still feel like my code is shitty
mdz_ has quit [Ping timeout: 244 seconds]
jcaho has quit [Read error: Connection reset by peer]
bmurt has quit []
krisquigley has quit [Ping timeout: 276 seconds]
danzilio has joined #ruby
segfalt has quit [Quit: segfalt]
skandi has quit [Quit: Connection closed for inactivity]
jcaho has joined #ruby
<jhass> Scriptonaut: are you kidding? You said you don't use active model
yfeldblu_ has joined #ruby
<Scriptonaut> I was using a few mixins from it, but not full blown
<ljarvis> simplyia_: I think your code is fine, the only thing I don't personally like are the if blank? and early returns
<jhass> sigh
codecop has quit [Quit: Išeinu]
<simplyia_> ljarvis: What should I do instead?
JDiPierro has quit [Remote host closed the connection]
danzilio has quit [Max SendQ exceeded]
hazelux has quit [Ping timeout: 252 seconds]
<jhass> Scriptonaut: you define sender= twice
momomomomo has quit [Quit: momomomomo]
danzilio has joined #ruby
pdoherty has quit [Ping timeout: 255 seconds]
TripleKKK has left #ruby [#ruby]
<Scriptonaut> ahhhh
<Scriptonaut> thanks jhass
dented42_ has joined #ruby
<Scriptonaut> someone else wrote this and I was modifying it
<shevy> \o/
hazelux_ has quit [Client Quit]
<shevy> Scriptonaut that style of code makes it very hard to change IMO
<Scriptonaut> what do you mean by this style?
yfeldblum has quit [Ping timeout: 265 seconds]
munen has quit [Quit: munen]
<shevy> lots of domain specific code logic: validates_length_of, validates_presence_of
wallerdev has quit [Quit: wallerdev]
x1337807x has joined #ruby
<shevy> lots of includes, extend is also used, lots of @ivars through accessor methods
<Scriptonaut> how would you do otherwise?
c355E3B has quit [Quit: Connection closed for inactivity]
<shevy> and only 119 lines!
<shevy> dunno, I just don't find myself using such a style much at all really
dented42 has quit [Ping timeout: 256 seconds]
whoisjake has quit []
centrx has joined #ruby
<shevy> perhaps it is default for rails
AbinoamJr has joined #ruby
foucist has quit [Ping timeout: 245 seconds]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hmm
<shevy> there is an empty raise
baweaver has joined #ruby
<Scriptonaut> that was for testing
<shevy> line 54
<Scriptonaut> took it out
<shevy> ah
aryaching has quit [Ping timeout: 252 seconds]
<shevy> ok ;)
<shevy> thought it was a regular part of it
dented42 has joined #ruby
<Scriptonaut> can't believe that was the problem all along, I need to look more thoroughly next time
<Scriptonaut> are most people in here just ruby users without rails?
setient has left #ruby [#ruby]
dented42_ has quit [Ping timeout: 265 seconds]
bin_005 has quit [Ping timeout: 258 seconds]
centrx has quit [Ping timeout: 252 seconds]
skade has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
umgrosscol has quit [Remote host closed the connection]
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
mc_fail has joined #ruby
momomomomo has joined #ruby
pengin has joined #ruby
bin_005 has joined #ruby
ldnunes has quit [Quit: Leaving]
dented42 has quit [Ping timeout: 265 seconds]
mleung has joined #ruby
dented42 has joined #ruby
timonv has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaeron has quit [Quit: Leaving.]
<dfockler> Scriptonaut: yep, #rubyonrails is for rails specific stuff
aaeron has joined #ruby
<dfockler> I mean I guess people here could be using rails, but they are here for Ruby questions
nahtnam has joined #ruby
<Ox0dea> >> a = {}; a[a] = 1; a
<ruboto> Ox0dea # => {{...}=>1} (https://eval.in/380191)
<Ox0dea> >> a = {}; a[a] = 1; a[a]
<ruboto> Ox0dea # => nil (https://eval.in/380192)
pleal has quit [Ping timeout: 246 seconds]
<Ox0dea> What's this about?
tomphp has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
<Ox0dea> >> a = {}; a[a] = 1; a.object_id == a.keys[0].object_id
<ruboto> Ox0dea # => true (https://eval.in/380193)
doertedev has joined #ruby
<jhass> >> a = {}; a[a] = 1; a.eql? a
<ruboto> jhass # => true (https://eval.in/380194)
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
* jhass shrugs
mleung has quit [Quit: mleung]
g0bl1n has joined #ruby
<dfockler> a reference to something is not the same as the name of the thing
timonv has quit [Ping timeout: 246 seconds]
Zai00 has joined #ruby
sharpmachine has joined #ruby
<Ox0dea> Can you think of a way in which a and its first key are at all unequal?
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang284 has joined #ruby
<dfockler> You are modifying a as you assign something to it...
centrx has joined #ruby
<jhass> meh, hash keys are references
pietr0 has quit [Quit: pietr0]
Encapsulation has quit [Remote host closed the connection]
<toretore> >> a={}; h1=a.hash; a[a]=1; [h1, a.hash]
<ruboto> toretore # => [-924965226, 444379452] (https://eval.in/380195)
<jhass> hash requirements are same .hash and eql? to return true for two objects to be considered equal
<jhass> ah
GPrime has joined #ruby
<Ox0dea> Ah, right!
<jhass> >> a={}; a[a] = 1; a.rehash; a[a]
<ruboto> jhass # => 1 (https://eval.in/380198)
<Ox0dea> Yep.
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has joined #ruby
Encapsulation has joined #ruby
baweaver has quit [Remote host closed the connection]
sinkensabe has joined #ruby
ogpastal_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
centrx has quit [Ping timeout: 276 seconds]
ogpastaling has quit [Read error: Connection reset by peer]
dasfsdaads has quit [Quit: Page closed]
aryaching has joined #ruby
mr_blue has joined #ruby
<mr_blue> hi all
AbinoamJr has joined #ruby
mwlang has joined #ruby
<mwlang> what was that mentor’s website that came up in this morning’s (UGT) discussion?
sinkensa_ has joined #ruby
hahuang61 has joined #ruby
sinkensabe has quit [Read error: No route to host]
<jhass> codementor.io I think?
<mwlang> jhass: that’s it. thanks!
centrx has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
qwertme has joined #ruby
ruby-lang284 has quit [Quit: Page closed]
veinofstars has joined #ruby
mleung has quit [Quit: mleung]
<mr_blue> How to get the output "b cannot be nil" from this expression ? : a, b, c = [1, nil, 2]; [a, b, c].each do |p| raise Exception.new("#{p} cannot be nil") if p.nil? end
<veinofstars> i have a variable, which can be either nil or a hash. Is there a cleaner way to fetch a key than (foo[‘bar’] rescue nil) ?
<veinofstars> i’d prefer to do something like foo.try(:get, ‘bar’)
<veinofstars> but i need to somehow access [] as a method
zz_barkerd427 is now known as barkerd427
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mc_fail has quit [Ping timeout: 255 seconds]
<veinofstars> oh wait, i can do foo.try(:[], ‘bar')
<Ox0dea> mr_blue: So you don't actually want to raise an exception, right?
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axsuul has quit [Ping timeout: 256 seconds]
<Ox0dea> veinofstars: Hash#fetch would be better.
<toretore> mr_blue: it's not possible
bgmarx has quit [Remote host closed the connection]
<Ox0dea> Oh, never mind.
<veinofstars> why better?
<Ox0dea> veinofstars: Forgot the nil part.
<veinofstars> ya
baweaver has joined #ruby
centrx has quit [Ping timeout: 265 seconds]
ruv has quit [Ping timeout: 244 seconds]
<Ox0dea> toretore: I think hacking about with local_variables would "work".
mistermocha has quit [Read error: Connection reset by peer]
balazs_ has quit [Remote host closed the connection]
nonparfumee has joined #ruby
<mr_blue> toretore: really ? It's the first time I read 'it's not possible in ruby'
nfk has joined #ruby
<toretore> mr_blue: explain what you're trying to achieve instead
mistermocha has joined #ruby
bgmarx has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
ramfjord has joined #ruby
doertedev has quit [Ping timeout: 258 seconds]
<zenspider> mr_blue: it's possible, but stupid and probably the wrong way to go about it
mrmargol_ has quit [Remote host closed the connection]
nobitanobi has quit [Read error: Connection reset by peer]
<mr_blue> toretore: I want to raise an exception in a constructor when trying to create the instance with nil params
mleung has joined #ruby
emilkarl has joined #ruby
nobitanobi has joined #ruby
<Ox0dea> mr_blue: raise unless params.all?
<hal_9000_> reflection doesn’t know about parameter names
<hal_9000_> Ox0dea: i think he wants to use the parameter name in the message
<Ox0dea> hal_9000_: RubyVM::InstructionSequence.of makes it possible, but it's really hairy.
<mr_blue> hal_9000_: exacly
mc_fail has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
baweaver has quit [Remote host closed the connection]
<hal_9000_> the easiest way to do that would be to manually map parameters to their names, perhaps with an array
dfinninger has joined #ruby
<Ox0dea> Or just use keyword arguments?
<zenspider> >> def f a, b, c; p local_variables; end; f nil, nil, nil
<ruboto> zenspider # => [:a, :b, :c] ...check link for more (https://eval.in/380203)
<zenspider> again... this is _DUMB_ and the wrong way to go about this
<hal_9000_> ah ok yes
_ht has quit [Quit: Konversation terminated!]
<toretore> mr_blue: do you have some code to paste?
<zenspider> argument checks are usually a design smell to begin with. but when they're necessary, it is best to just spell it out
<zenspider> raise ArgumentError "required_param may not be nil" if required_param.nil?
<zenspider> oops, comma
centrx has joined #ruby
<zenspider> there's nothing wrong with that code.
<toretore> mr_blue: the way you're describing the problem, in terms of what you think should be the solution instead of what the actual problem is, make me want to know more before i can give any advice
<pipework> zenspider: Do you prefer docs for that?
<zenspider> (other than a missing comma)
zenguy_pc has quit [Read error: Connection reset by peer]
<hal_9000_> zenspider speaks truth
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> pipework: if you mean javadoc style doco, no. I prefer simple doco, simple code, and GIGO to rule
<pipework> zenspider: I like making nice things along the way though.
<mr_blue> toretore: my looks like something like that: def class A; def initialize(a, b, c); raise "#{the param} cannot be nil" if one of the params is nil; end; end
<diegoviola> why would ever anyone have to parse ls for a git commit / push?
<zenspider> >> required_param = nil; required_param.do_something_important
<toretore> mr_blue: real code, on gist.github.com, please
<ruboto> zenspider # => undefined method `do_something_important' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/380204)
<zenspider> hey look. totally obvious what went wrong...
nizmow has joined #ruby
[H]unt3r has quit []
<Ox0dea> mr_blue: What are a, b, and c?
Scroff has quit [Remote host closed the connection]
<Ox0dea> Could you give them names that better express their purpose?
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> you've spent more time discussing a crappy solution instead of writing 3 straight-forward lines that say exactly what's going on.
<zenspider> you could have shipped by now
hinbody has quit [Quit: leaving]
<mr_blue> Ox0dea: a is repo object, b is a listener object, and c is a config object
micmus has quit [Quit: Leaving]
<Ox0dea> >> def foo(a, b, c) "#{local_variables.find { |v| eval(v.to_s).nil? }} cannot be nil!" end; foo(1, nil, 2)
<ruboto> Ox0dea # => "b cannot be nil!" (https://eval.in/380205)
<Ox0dea> Well, there's your foot gun; be careful.
blackmesa has joined #ruby
vyorkin2 has quit [Ping timeout: 256 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Ping timeout: 252 seconds]
<mr_blue> ruboto: thanks for your solution. But what that firt 'p' in 'p begin' ?
aaeron has quit [Quit: Leaving.]
<jhass> isn't there local_variable_get ?
Pupeno_ has joined #ruby
<Ox0dea> No. :(
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<jhass> mh, actually probably for good
apofis has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
<jhass> so s/be careful/be sane and never touch it/
dagda1 has joined #ruby
FernandoBasso has joined #ruby
apofis has joined #ruby
drocsid has joined #ruby
aaeron has joined #ruby
duggiefresh has quit []
Pupeno has quit [Ping timeout: 255 seconds]
<drocsid> can I get the stdout from a program when using system ?
mleung has quit [Quit: mleung]
<jhass> drocsid: yes, but why not use ` then?
bin_005_q has joined #ruby
<havenwood> drocsid: Do you want stdout separate from stderr, or what do you mean?
baweaver has joined #ruby
<Ox0dea> jhass: Fiddle wouldn't be part of the standard library if Ruby weren't a programming language for consenting adults.
wallerdev has joined #ruby
<zenspider> I can't say enough how dumb/bad that is.... but it is obvious that mr_blue isn't interested in reason, so I'm done
bin_005 has quit [Ping timeout: 252 seconds]
damir_ has joined #ruby
damir_ has quit [Client Quit]
danzilio has quit [Quit: Baiii!]
<drocsid> just the std out is fine, but I will take both if that's all I can get.
dagda1 has quit [Client Quit]
<zenspider> fiddle? consent? huh?
<Ox0dea> drocsid: foo = `ls` or %x(ls)
<Ox0dea> zenspider: I was being almost entirely facetious.
<havenwood> drocsid: Take a look at Open3 for a variety of options with stdout and stderr separate or merged: http://ruby-doc.org/stdlib/libdoc/open3/rdoc/Open3.html
<zenspider> gotcha
<zenspider> or open4 if you need it
<zenspider> that's a gem tho
zotherstupidguy has quit [Ping timeout: 246 seconds]
uri_ has quit [Ping timeout: 245 seconds]
<Ox0dea> Fiddle does let you unfreeze an object by flipping a single bit, though.
<drocsid> Ok, just wondering what system itself supported. Guess I could look this up also.
pothibo has joined #ruby
<Ox0dea> drocsid: Why the artificial limitation on which features of the language to use?
nobitanobi has quit [Remote host closed the connection]
pglombardo has quit []
nobitanobi has joined #ruby
Scroff has joined #ruby
zotherstupidguy has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
bgmarx has quit [Remote host closed the connection]
x1337807x has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
momomomomo_ has joined #ruby
Zai00 has quit [Quit: Zai00]
bgmarx has joined #ruby
zenguy_pc has joined #ruby
mleung has joined #ruby
nobitanobi has quit [Ping timeout: 244 seconds]
mleung has quit [Client Quit]
edwinvdg_ has joined #ruby
Scroff has quit [Ping timeout: 264 seconds]
mary5030 has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
MatthewsFace has joined #ruby
Pupeno has joined #ruby
mleung has joined #ruby
Matthews_ has quit [Ping timeout: 258 seconds]
sinkensa_ has quit [Remote host closed the connection]
Matthews_ has joined #ruby
mdavid613 has joined #ruby
yqt has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
yqt has joined #ruby
freerobby has quit [Quit: Leaving.]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
diegoviola has quit [Remote host closed the connection]
mdavid613 has left #ruby [#ruby]
Pupeno_ has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
mr_blue has quit [Quit: leaving]
<duderonomy> hey ya'll!! When using Ruby, what are my options for executing commands on a Linux console. When I access these little CPUs as a User, I use telnet to get shell access. Thx in advance.
<wallerdev> did you ssh into the machine and are running ruby on that machine?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga> if that's solved, "ruby mycode.rb"
<wallerdev> or are you running ruby on your local machine and want to ssh from within ruby to the other box
mc_fail has quit [Ping timeout: 250 seconds]
MatthewsFace has quit [Ping timeout: 264 seconds]
<ponga> i think he's asking for the former case
<ponga> duderonomy: hello
<duderonomy> Actually, I am running Ruby on a usual host like Ubuntu/RH/Gentoo. I'd like to automate what I do as a User. Which is: telnet into IP of little board running Linux and then execute commands on the shell
mleung has quit [Quit: mleung]
<dfockler> duderonomy: you can use backticks like `subcommand`, or exec, or popen
<dfockler> they all do a little bit different things
<duderonomy> I had a friend suggest I use the automation features in minicom
freerobby has joined #ruby
<baweaver> Net::Telnet and Net::SSH
<duderonomy> Well, ruby is not running on the little Linux host (low ARM based CPU)
<duderonomy> thanks baweaver. nice to talk again
mc_fail has joined #ruby
zacstewart has joined #ruby
<baweaver> Those two run on your local machine
<baweaver> and execute commands on the remote
bronson has quit [Ping timeout: 252 seconds]
endorphine_ has quit []
<baweaver> source: I used to use both to automate a few thousand wireless antennas running embedded linux
keernel has joined #ruby
jenrzzz has joined #ruby
yfeldblum has joined #ruby
<duderonomy> yes... baweaver my response was out of order and going to dfockler. I gotta get better at irc
Axy has joined #ruby
<duderonomy> Perfect. I will put my time into those libs!
symbol has joined #ruby
enebo has quit [Quit: enebo]
emilkarl has quit [Quit: emilkarl]
JoshL has joined #ruby
<dfockler> yeah never use Net::Telnet but if you are just telnetting that should work
* baweaver shrugs
<baweaver> It scratched an itch
<dfockler> sorry I've never used Net::Telnet
al2o3-cr has quit [Ping timeout: 246 seconds]
<dfockler> typing :P
mleung has joined #ruby
<Ox0dea> ponga: Where's rubonga?
Mia has quit [Ping timeout: 258 seconds]
<ponga> Ox0dea: actually i ran the code without eval part but just ping
<ponga> but bot is not coming
Matthews_ has quit [Read error: Connection reset by peer]
<ponga> he's missing
<Ox0dea> How do you mean?
MatthewsFace has joined #ruby
<ponga> um i ran the code, but bot didn't appear
<duderonomy> baweaver: If you recall any helpful blog pages or tuts that were aligned with those goals (nearly like mine) then I'd be grateful to get a link (if u happen to recall it)
ogpastal_ has quit [Read error: Connection reset by peer]
ogpastaling has joined #ruby
pinga has joined #ruby
al2o3-cr has joined #ruby
<ponga> pinga
nofxx has joined #ruby
<baweaver> duderonomy: but should provide some insight
<ponga> damn it he's mute
<ponga> Ox0dea: can you fix him
pinga has quit [Remote host closed the connection]
pinga has joined #ruby
<ponga> pinga
<ponga> speak!
<Ox0dea> ponga: Did you have to authenticate with NickServ to join this channel?
<ponga> damn it he's stupid like me
<ponga> no
<Ox0dea> Hm...
skade has quit [Quit: Computer has gone to sleep.]
<ponga> please look at the code and fix the poor mute lad
gamename has joined #ruby
pinga has quit [Remote host closed the connection]
apofis has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
<Ox0dea> This code is atrocious.
<ponga> please i have no knowledge
apofis has joined #ruby
pothibo has joined #ruby
<ponga> i just blindly edited your code with like 3 sec effot
datanoise has quit [Quit: WeeChat 1.2]
<jhass> Ox0dea: have fun explaining the IRC protocol :P
yfeldblum has quit [Write error: Broken pipe]
<ponga> cool i always wanted to learn IRC protocol!
rubonga has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<ponga> hi rubonga
<Ox0dea> All I did was change the nick...
_blizzy_ has joined #ruby
<ponga> damn it he's bad as pinga then
<Ox0dea> I used my original code, though: https://gist.github.com/0x0dea/9cd62f3a58cd52de87a4
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Ox0dea> The PING/PONG clause isn't arbitrary.
_blizzy_ has quit [Max SendQ exceeded]
<ponga> isn't it too dangerous
<jhass> >> exit
rubonga has quit [Remote host closed the connection]
<ruboto> jhass # => exit (SystemExit) (https://eval.in/380228)
mdz_ has joined #ruby
<Ox0dea> Very dangerous.
<Ox0dea> jhass was kind.
<ponga> look jhass killed him for you
<cj> how do I dump to STDOUT the contents of an associative array node ?
mdz_ has quit [Remote host closed the connection]
<Ox0dea> cj: Looking to ditch PHP, eh?
<ponga> i see that people here expectations... DO NOT have expectations from me
ogpastaling has quit [Remote host closed the connection]
<ponga> but i will learn what i need
<jhass> cj: p hash["foo"]
yfeldblum has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
mleung has quit [Quit: mleung]
armyriad has quit [Read error: Connection reset by peer]
<cj> Ox0dea: no, this is how I talk to PHP people. are you telling me ruby is not php?
* cj ducks
<ponga> even i know he needed to duck
commondream has joined #ruby
armyriad has joined #ruby
<Ox0dea> cj: Several of your choices of word belie a familiarity with PHP is all.
mc_fail has quit [Ping timeout: 265 seconds]
<jhass> cj: we're working on it https://github.com/tenderlove/phuby
<cj> I'm a bit of a know-it-all
endorphine_ has joined #ruby
apofis_ has joined #ruby
<ponga> jhass: omg the name is too cute
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cj> jhass: that's nice, but I would go with ironruby and IronPHP if I were going to try to get the two to play nice together.
gamename has quit []
mc_fail has joined #ruby
jaycee has joined #ruby
<jhass> and I'd go to seek to do something else no matter the costs
<cj> Ox0dea: but to tell the truth, associative arry is a data structure familiar to all programming environments. it's just called things like "hash" in perl or "object" in javascript so that they don't have to use so many sylables :-)
mandarinkin has quit [Quit: Leaving]
mleung has joined #ruby
apofis has quit [Ping timeout: 258 seconds]
* jhass still prefers map as the general tem
<cj> but anyway, I was asking for something more akin to perl's Data::Dumper module. Is there a way to convert a ruby hash object to JSON for instance?
<jhass> *term
<jhass> sure, just call to_json on it
<ponga> jhass: can you at least explain if / / in /PING (\S+)/ are part of irc protocol or is it ruby operator
<ponga> please
DynamicMetaFlow has joined #ruby
<Ox0dea> ponga: /regular expression goes here/
<jhass> ponga: /foo/ is a regex literal, the / delimit it like " and ' delimit strings
<ponga> thanks!
wildroman2 has joined #ruby
arescorpio has joined #ruby
* ponga is on his way to find some irc protocol documents
momomomomo has quit [Ping timeout: 272 seconds]
<jhass> come back when you lost your sanity over trying to parse MODE
rkazak has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
<jhass> ponga: why don't you just use cinch?
<ponga> i want to learn
<Ox0dea> <3
<Ox0dea> Also, TCPSocket == high performance.
<cj> jhass: yes. I do too ;-)
<cj> do I need a module installed to have access to the to_json method?
<ponga> shevy recommended me to read some irb sourcecode too but it was like asking a 4 yr baby to jump off the roof and fly
<jhass> ponga: write a bot in cinch first, then reimplement the underlying stuff. divide & conquer
<ponga> k
pothibo has quit [Ping timeout: 252 seconds]
Xoro has quit [Read error: Connection reset by peer]
<ponga> so my first goal is to make a bot named pinga and when he's been called he says ponga
Xoro has joined #ruby
<ponga> which then conviniently calls me too
<jhass> cj: ships in stdlib, just require "json"
<ponga> how convinient
<jhass> sounds good
pyrex has joined #ruby
<cj> and what's the string concat operator ? + ?
<Ox0dea> cj: It's circumstantial.
aryaching has quit [Read error: No route to host]
<jhass> cj: yes, but we prefer "string #{interpolation}" over "string" + concatenation
<Ox0dea> And sometimes shoveling.
<cj> Chef::Log.info("node: " + to_json( node ))
<jhass> interpolation can be almost any valid ruby expression
<cj> okay, so #{to_json(node)} ?
<jhass> "node: #{node.to_json}"
<Ox0dea> What kind of expression can't be interpolated?
<jhass> there was one but I forgot :P
pengin has joined #ruby
<Ox0dea> Heh.
<cj> no semi-colons to end lines, no way to put multiple statements on the same line?
mc_fail has quit [Ping timeout: 255 seconds]
<jhass> cj: you can actually use semicolons, but don't, we only do in IRC for space efficiency
<jhass> just not worth it in real code
sarkyniin has quit [Quit: Quit]
NeverDie has quit [Ping timeout: 264 seconds]
jesterfraud_ has joined #ruby
qwertme has joined #ruby
idafyaid has quit [Ping timeout: 246 seconds]
<Ox0dea> >> "#{module WTF; class Wtf; def wtf; end end end}"
<ruboto> Ox0dea # => "wtf" (https://eval.in/380230)
pothibo has joined #ruby
pothibo has quit [Client Quit]
<cj> okay, thanks. It looks like I can continue on my chef cookbook / recipe debugging now.
someword1 has quit [Ping timeout: 252 seconds]
<jesterfraud_> Ox0dea: that's weird and awesome at the same time
<Ox0dea> I would really like to learn the identity of this non-interpolable fellow.
GnuYawk has joined #ruby
<jhass> >> def foo; end; "#{alias bar foo}"
<ruboto> jhass # => "" (https://eval.in/380231)
Dreamer3 has quit [Read error: Connection reset by peer]
<jhass> mh, nope that wasn't it :P
freerobby has quit [Quit: Leaving.]
Dreamer3 has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
nikhgupta has joined #ruby
michaeldeol has joined #ruby
<Ox0dea> Hm, I'm gonna try to interpolate Rails.
krisquigley has joined #ruby
<jhass> heh
dented42 has quit [Read error: Connection reset by peer]
bantic has quit [Quit: bantic]
bkxd has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
nikhgupta has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 256 seconds]
<miah> node.to_json (prepare for mega scroll)
k3asd` has quit [Ping timeout: 252 seconds]
<miah> simply running ohai locally i get 3400 lines of output =)
<jhass> ?pry cj
<ruboto> cj, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<miah> we did this the other day during some chef debugging as well
bmurt has joined #ruby
<jhass> cj: good for debugging
hakunin has quit [Remote host closed the connection]
<jesterfraud_> >> "#{/ab/}"
<ruboto> jesterfraud_ # => "(?-mix:ab)" (https://eval.in/380232)
hakunin has joined #ruby
<jesterfraud_> that's... useful?
<jhass> wrong question :P
nikhgupta has joined #ruby
nikhgupta has quit [Client Quit]
<jesterfraud_> but it DOES blend^H^H^H^H^H interpolate
<jhass> I mean you saw a module definition interpolated and wonder that regexp works?
<mwlang> phuby!? what is the use case for that?
<jesterfraud_> I guess
<jesterfraud_> you make a good point
krisquigley has quit [Ping timeout: 252 seconds]
<jesterfraud_> mwlang: didn't you ever see that tool that compiles ruby code to python scripts?
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
<mwlang> does this mean I can run WordPress with Ruby now?
<jhass> mwlang: not all things need one
starfox_sf has joined #ruby
pyrex has quit [Remote host closed the connection]
<miah> i think if you feed ruby php a singularity would be created and we'd all die
<mwlang> jesterfraud_: nope, didn’t see that.
dented42 has joined #ruby
<miah> like feeding a gremlin after midnight
<mwlang> miah: I’ll do it very, very far away.
fgo has quit [Ping timeout: 252 seconds]
vyorkin2 has joined #ruby
<miah> =)
<pipework> miah: Mogwai, you can't feed mogwai after midnight.
DEA7TH has quit [Ping timeout: 250 seconds]
<jesterfraud_> why_the_lucky_stiff wrote it, IIRC
<pipework> After they're gremlins, it doesn't really matter.
Oqi has quit [Ping timeout: 246 seconds]
idafyaid has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<pipework> My lawdy.
<mwlang> maybe time to rename “ruby” to “rosetta"
mc_fail has joined #ruby
<Ox0dea> mwlang: Universality is easy. Let's go coding!
Ropeney has joined #ruby
<miah> pipework: got me
diegoviola has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> I don’t suppose there’s a peruby for Perl, eh?
bkxd has joined #ruby
<mwlang> and let’s not forget Tcl while we’re at it.
<miah> lol. well. ruby has lots of perlisms
<miah> some amount of it probably works out of the box
<mwlang> miah: indeed…all those whacky variables and consts we pretty much ignore… :-)
<jesterfraud_> If I were a perl purist, I'd make some comments about throwing "Perls before the swine"
wildroman3 has joined #ruby
<Ox0dea> jesterfraud_: Keep it in /r/fatpeoplehate, if you'd be so kind.
<Radar> Paragraph by paragraph
<Radar> ARgh I had scrolled up :(
hakunin has quit [Remote host closed the connection]
<jesterfraud_> Ox0dea: I get that reference
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 250 seconds]
wildroman2 has quit [Ping timeout: 245 seconds]
nonparfumee has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Scroff has joined #ruby
mc_fail has quit [Ping timeout: 244 seconds]
finisherr has quit [Quit: finisherr]
jpfuentes2 has quit [Ping timeout: 256 seconds]
shadoi has quit [Quit: Leaving.]
JoshL has quit [Remote host closed the connection]
JoshL has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Scroff has quit [Ping timeout: 252 seconds]
momomomomo has quit [Ping timeout: 276 seconds]
phutchins has joined #ruby
Pumukel has joined #ruby
bmurt has quit []
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
bricker_ has joined #ruby
Channel6 has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
pepperbreath1 has joined #ruby
willharrison has joined #ruby
willharrison has quit [Client Quit]
bricker has quit [Ping timeout: 264 seconds]
porglezomp has joined #ruby
pepperbreath has quit [Ping timeout: 244 seconds]
choke has joined #ruby
choke has quit [Client Quit]
jenrzzz has joined #ruby
nfk has quit [Quit: yawn]
momomomomo has joined #ruby
choke has joined #ruby
someword has joined #ruby
choke has quit [Client Quit]
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
Scriptonaut has left #ruby [#ruby]
dorei has quit []
MatthewsFace has quit [Ping timeout: 264 seconds]
slawrenc_ has quit [Ping timeout: 265 seconds]
choke has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
<sung_> date_summary[get_date_from_ts_file(filename).match(/(\d{4})(\d{2})(\d{2})$/)[1..3].join('-')] = count_subs(filename)
<sung_> i know that ruby should never look like that
<sung_> so how should it look? :D
hahuang65 has joined #ruby
choke has quit [Client Quit]
justintv90 has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
<eam> sung_: use temporary variables, key = get_date_from_ts_file(filename).match(/(\d{4})(\d{2})(\d{2})$/)[1..3].join('-')
<eam> date_summary[key] = count_subs(filename)
<eam> repeat this process until it looks like the right amount of complexity per line
mwlang has quit [Quit: mwlang]
Narzew has quit [Remote host closed the connection]
freerobby has joined #ruby
segfalt has joined #ruby
Xiti has quit [Quit: Xiti]
victorkohl has quit []
nobitanobi has joined #ruby
bin_005_q has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Client Quit]
nobitanobi has joined #ruby
zenguy_pc has quit [Read error: No route to host]
Xiti has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
white_magic has joined #ruby
<white_magic> hi
someword has quit [Quit: Leaving.]
<white_magic> I just installed Ruby 2.2 on my windows machine and I'm trying to install Rails from commandline (ruby.exe).. but whatever I enter in the Ruby prompt, it just keeps asking for more input. How can I get it to evaluate the input for once?
rbowlby has quit [Remote host closed the connection]
<havenwood> white_magic: For an interactive REPL, try `irb` or to run a script inline: ruby -e "puts 'an example'"
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
<havenwood> white_magic: For a list of the ruby switches like -e see `ruby -h` or `man ruby` for more detail.
<havenwood> ?pry white_magic
<ruboto> white_magic, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
vikaton has quit []
bosma is now known as bosnia
<havenwood> white_magic: Instead of `irb`, which ships with Ruby you can use `pry`, which is a gem that can be installed with: gem install pry pry-doc
<Ox0dea> white_magic: Heed havenwood's advice, but the answer to your question is that the prompt is waiting for you to signal "end of file", which is Ctrl-Z in Windows.
<white_magic> ahhh
x1337807_ has joined #ruby
<white_magic> i'll first try with ctrl-z....
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LicHacker has joined #ruby
chipotle has joined #ruby
blue_deref has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
Lucky__ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
ponga has quit [Quit: Leaving...]
enebo has joined #ruby
zotherstupidguy has joined #ruby
chipotle has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
<white_magic> ok, so i'm using IRB and I entered 'gem install rails' in the interactive prompt, and it doesn't know what 'rails' means
x1337807x has quit [Ping timeout: 265 seconds]
<Ox0dea> Yikes.
fgo has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
rodfersou has quit [Ping timeout: 244 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
<white_magic> ok i'm stupid.. i'm supposed to run "gem(.EXE) install rails"
Pumukel has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
<havenwood> white_magic: Or from Pry to install and then require the gem you can: gem-install rails
<havenwood> white_magic: Pry is a gem like Rails is a gem.
<white_magic> im sure i'll get to know pry intimately but for now im keeping it most simple..
chipotle has joined #ruby
zenguy_pc has joined #ruby
fsvehla has quit [Quit: fsvehla]
choke has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
choke has quit [Client Quit]
nobitanobi has quit [Remote host closed the connection]
dstarh has joined #ruby
nobitanobi has joined #ruby
bkxd has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
jgt3 has quit [Ping timeout: 252 seconds]
commondream has quit [Ping timeout: 255 seconds]
autrilla_ has quit [Quit: Connection closed for inactivity]
dfockler has quit [Remote host closed the connection]
sivoais has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]