havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
pb122 has joined #ruby
relyks has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> _moep_: Are you in the root directory of the redmine app? Is there a config.ru file?
roamingdog has joined #ruby
<havenwood> I'd suggest that you follow a Redmine installation tutorial if you're not familiar with Rack and friends.
<havenwood> There should be a decent one out there for Redmine on Debian.
<havenwood> I don't know.
<havenwood> _moep_: Does it work after installing Rack?
oliv_____ has joined #ruby
<_moep_> havenwood: nope :(
arescorpio has joined #ruby
<_moep_> hm it seems it trys to run the wrong ruby:
<_moep_> #<Proc:0x007f5f524e7d08@/home/app/redmine/vendor/bundle/ruby/2.4.0/gems/unicorn-5.3.0/lib/unicorn.rb:51 (lambda)>,
<_moep_> :daemonize=>false}
<havenwood> That's 2.4.
<_moep_> yes, but not 2.4.1
<havenwood> (The ABI version of 2.4.1 is 2.4.0.)
<_moep_> ah
<havenwood> _moep_: That's the gem directory for 2.4.1 as well.
oliv_____ has quit [Ping timeout: 260 seconds]
_sfiguser has quit [Remote host closed the connection]
raul782 has joined #ruby
<_moep_> havenwood: there is a wrapper script for unicorn (not completly): https://paste.debian.net/hidden/894760e4/
raul782 has quit [Client Quit]
enderby has joined #ruby
MrBusiness has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
learningruby has joined #ruby
pb122-two has joined #ruby
<learningruby> is it correct to say that instance variables are always defined inside instance methods?
arquebus has quit [Quit: konversation disconnects]
relyks has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Ping timeout: 255 seconds]
snockerton has quit [Quit: Leaving.]
<havenwood> learningruby: no
pb122 has quit [Ping timeout: 260 seconds]
<havenwood> learningruby: though that's where you'll usually see instance variables defined, no doubt
chouhoulis has quit [Ping timeout: 260 seconds]
<havenwood> >> @not_in_an_instance_method = true
<ruby[bot]> havenwood: # => true (https://eval.in/805495)
stupidsenpai has joined #ruby
<havenwood> >> @not_in_an_instance_method = true; defined? @not_in_an_instance_method
<ruby[bot]> havenwood: # => "instance-variable" (https://eval.in/805496)
skweek has joined #ruby
<learningruby> @havenwood mmm ok... I don't mean just in terms of syntax (I should've stated the question better, sorry)—but in terms of the concept of object orientation... but if I place an instance variable in a class outside a method, how can an instance of that class access it?
stupidsenpai has quit [Client Quit]
Cohedrin has joined #ruby
mgorbach has quit [Remote host closed the connection]
mgorbach has joined #ruby
ecuanaso has joined #ruby
SuperTaz has joined #ruby
brent__ has quit []
<_moep_> havenwood: do you have still an idea because of unicorn?
<havenwood> >> class LearningRuby; @instance_variable = 42; def self.foo; @instance_variable end; def bar; self.class.instance_variable_get :@instance_variable end end; [LearningRuby.foo, LearningRuby.new.bar] # learningruby
<ruby[bot]> havenwood: # => [42, 42] (https://eval.in/805499)
nitric has quit [Ping timeout: 240 seconds]
<havenwood> learningruby: ^ see if pondering on that makes any sense
<havenwood> learningruby: it's not necessarily a good idea just because you can do it!
<havenwood> _moep_: hrm?
<_moep_> my unicorn doesnt run my app
<havenwood> _moep_: What does it do?
<havenwood> Is there an error?
sepp2k has quit [Read error: Connection reset by peer]
<_moep_> yes like this: ] ERROR -- : reaped #<Process::Status: pid 26391 exit 1> worker=0
<_moep_> but a lot of output
raspado has joined #ruby
charliesome has joined #ruby
brent__ has joined #ruby
<havenwood> _moep_: Is it working?
<_moep_> no
<_moep_> I just see massive output, but the site shows 500
<havenwood> That particular warning seems like your logger config level is too verbose.
<_moep_> uhm Internal server error
<havenwood> Find the real error. You might want to edit your unicorn config to make it less verbose.
<havenwood> _moep_: Show us the real error.
<havenwood> _moep_: You might want to create a gist, so you can paste something long.
<havenwood> gist.github.com
<havenwood> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
brent__ has quit [Remote host closed the connection]
<havenwood> _moep_: RubyOnRails is the best place for Rails-related questions.
<havenwood> ?rubyonrails _moep_
<ruby[bot]> _moep_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
brent__ has joined #ruby
<havenwood> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<_moep_> hm ok
<zenspider> bundle exec I'm switching to prefixing everything with bundle exec
<havenwood> That'd be good for a talk.
<zenspider> bundle exec cd
<zenspider> bundle exec emacs blah.rb
<havenwood> `bundle exec cd rails_app` you see we're in the directory, `bundle exec ls`
<zenspider> bundle exec ruby blah.rb
hndk has quit [Ping timeout: 240 seconds]
Kug3lis is now known as Kug3lis_off
bambanx has quit [Quit: Leaving]
<zenspider> The Cult of Cargo: How StackOverflow Has Killed Off Critical Thinking
<zenspider> aaactually... now I want to do that talk
duderonomy has joined #ruby
raspado has quit [Remote host closed the connection]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has quit [Ping timeout: 240 seconds]
<havenwood> bundle exec export RAILS_ENV=development
Authenticator has quit [Ping timeout: 260 seconds]
<zenspider> unfortunately that won't work. cd prolly won't either
<havenwood> actually shell builtins won't work, yeah
<havenwood> cd should work
<havenwood> hrm
<havenwood> it is a shell builtin, but still works
<zenspider> oh. cd isn't built in! huh.
<zenspider> I typo'd and got an error on /usr/bin/cd
<zenspider> bundler: command not found: export :(
<havenwood> actually `bundle exec export` works, it's the env var assignment that borks
<zenspider> odd
<havenwood> here, just: export bundle exec RAILS_ENV=development
<havenwood> >.>
<zenspider> haha
<havenwood> that's a good talk point
<havenwood> sometimes you can't start with bundle exec
<havenwood> PROTIP
roshanavand has quit [Read error: Connection reset by peer]
<zenspider> I was hoping bundle exec exec would work
ecuanaso has joined #ruby
<zenspider> ok... My brain is melty... time to go take a walk
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
marr has quit [Ping timeout: 255 seconds]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
enterprisey has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
apparition has joined #ruby
nobitanobi has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nobitanobi has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
bambanx has joined #ruby
volty has quit [Quit: Konversation terminated!]
oliv_____ has joined #ruby
gizmore has joined #ruby
learningruby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
learningruby has joined #ruby
gizmore|2 has quit [Ping timeout: 268 seconds]
hndk has joined #ruby
Jn_Kell has joined #ruby
oliv_____ has quit [Ping timeout: 268 seconds]
im0nde has quit [Ping timeout: 240 seconds]
hndk has quit [Read error: Connection reset by peer]
hndk has joined #ruby
sp4rrow has joined #ruby
gusrub has quit []
cdg has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
JBbanks has quit [Read error: Connection reset by peer]
hndk has quit [Quit: Leaving]
enderby has left #ruby ["ERC (IRC client for Emacs 25.2.1)"]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
learningruby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
learningruby has joined #ruby
nertzy has joined #ruby
nertzy has quit [Ping timeout: 258 seconds]
brent__ has joined #ruby
learningruby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nertzy has joined #ruby
rc48 has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 246 seconds]
rc48 has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
jusa has joined #ruby
gothicsouth has joined #ruby
jrafanie has joined #ruby
relyks has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
keyjoo has quit [Ping timeout: 246 seconds]
roamingdog has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jackrandom has joined #ruby
charliesome has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
cschneid_ has quit [Ping timeout: 246 seconds]
oliv_____ has joined #ruby
Cohedrin has joined #ruby
jackrandom has quit [Remote host closed the connection]
jackrandom has joined #ruby
marxarelli is now known as marxarelli|afk
hashrocket has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
pb122 has joined #ruby
pb122-two has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
__Yiota has joined #ruby
uZiel has joined #ruby
genpaku has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
genpaku has joined #ruby
olivi____ has quit [Remote host closed the connection]
mim1k has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
arescorpio has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pb122-two has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
pb122 has quit [Ping timeout: 268 seconds]
uZiel has quit [Read error: Connection reset by peer]
rc48 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
rc48 has quit [Read error: Connection reset by peer]
oliv_____ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
Cohedrin has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
uZiel has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
gothicsouth has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
Tempesta has quit [Quit: AdiIRC is updating to v2.8 Beta Build (2017/05/25) 64 Bit]
Tempesta has joined #ruby
jrafanie has joined #ruby
gnufied has quit [Quit: Leaving]
Mia has quit [Read error: Connection reset by peer]
hndk has joined #ruby
cyphase has joined #ruby
oliv_____ has quit [Remote host closed the connection]
tristanp has joined #ruby
oliv_____ has joined #ruby
Jason has joined #ruby
<Jason> hi all. i have some serious gem problems, hah. currently getting this running some older code of mine
<Jason> Unable to activate dm-serializer-1.2.2, because json-2.1.0 conflicts with json (~> 1.6) (Gem::ConflictError)
<Jason> i've tried bundle update and removing the Gemfile.lock, each with no luck
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
sneakerhax has joined #ruby
<havenwood> Jason: What's depending on?: json ~> 1.6
<havenwood> Jason: Check the Gemfile.lock file.
<Jason> havenwood: hi! Gemfile.lock -> https://pastebin.com/CVRkqWYk
<ruby[bot]> Jason: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f121c5c5816bd05bf08fbe7f6b1d4c48
<ruby[bot]> Jason: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Jason> looks like dm-serializer
<havenwood> and dm-types
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood> unfortunately those gems don't appear to be maintained
<Jason> boo
<havenwood> oh, 2016, nvm
<Jason> well, not actively maintained
<Jason> perhaps legacy
<havenwood> well, last release was 2012, but commits in 2016
<Jason> aye
nobitanobi has joined #ruby
roamingdog has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
<Jason> in any case, what's your suggestion for getting this working?
<Jason> looks like datamapper is the orm i used, so that's ugh
<havenwood> Jason: gem: 'dm-serializer', git: 'https://github.com/datamapper/dm-serializer.git', ref: '44e30a7d4478a3dfe0d0c778b58b9a35e8bb5409'
<havenwood> Jason: I'd suggest trying the latest 2016 commit ^ in your Gemfile and bundling
<Jason> that is a good idea
<Jason> let's try
<havenwood> They've dropped the hard json dep, so it should do the trick.
<havenwood> You might need to do it across the board with dm-* to get everything working. It seem to be worth a shot at least.
<Jason> hrm
<havenwood> At least dm-serializer and d-types are necessary.
<havenwood> And the other dm-* may or may not play nice with those new, unreleased versions. I don't know.
nobitanobi has quit [Ping timeout: 240 seconds]
roamingdog has quit [Ping timeout: 240 seconds]
<havenwood> Jason: It looks like master is version 1.3.0.beta.
<havenwood> Jason: So yeah, you'll need to upgrade all the dm.
oliv_____ has quit [Remote host closed the connection]
<Jason> hmm
<Jason> `bundle update`?
oliv_____ has joined #ruby
<havenwood> nope
<havenwood> they're not released gems, afaik
<Jason> course it can't be that easy, hah
<havenwood> you'd have to peg to commits
roamingdog has joined #ruby
<havenwood> like above
<Jason> got it
<Jason> let's give that a try, few mins
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Or you could remove the json dep in the earlier stable version on your own fork, and hope that works.
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<havenwood> I'm not sure which route is better since I'm not well-acquainted with the libraries
<Jason> honestly
<Jason> i'm looking at datamapper and half tempted to just switch to activerecord
<Jason> havenwood: this is some code i dug up from like 3 years ago
<havenwood> ActiveRecord and Sequel are nice.
<Jason> i bet in the time i spend fixing this legacy sillyness, i could just implement activerecord
<Jason> decisions decisions
<havenwood> Jason: You might take a look at the Sequel gem as well: https://github.com/jeremyevans/sequel
<havenwood> It's popular and very well maintained.
<Jason> looks interesting
<Jason> yeah
<havenwood> As is ActiveRecord, of course.
<Jason> havenwood: the reason i'm looking at activerecord is i bet I could just drop it in and change a few things, lol
<Jason> looks like datamapper just basically was modeled around activerecord
<havenwood> Or you could use ROM and Sequel. I think ROM is DM's successor.
<Jason> rom **and** sequel?
<havenwood> Jason: Here's an example of a ROM/Sequel stack with Roda: https://github.com/jeremyevans/roda-sequel-stack
<Jason> honestly, this is just old code that i may or may not ever use again
<havenwood> err, that's not ROM - wrong link
<Jason> i'm just looking at it to see what i made and how well it worked, lol
<Jason> interesting
tvw has joined #ruby
bambanx has quit [Quit: Leaving]
<Jason> havenwood: it looks like there are lots of dm-*'s
<Jason> and it doesn't look like pegging each to a commit would work here
<Jason> some haven't had commits since 2012
<havenwood> Jason: Then fork the stable dm-serializer and dm-types and remove the json dep from the gemspecs.
<havenwood> See if it works.
<Jason> good idea
<havenwood> peg to them like above
<havenwood> since there're no changes coming from upstream being pegged to your own fork won't matter
<havenwood> But yeah, biting the bullet and switching to ActiveRecord sounds like a good maintenance plan.
<Jason> havenwood: my concern with activerecord is the types of my properties
<Jason> property :requested_inventory, Object #[ShowID, InventoryID, QTY]
<Jason> i must have been sleep deprived when i wrote this, lol
<nofxxx> go noSQL =D mongo, rethink
<nofxxx> redis, couch... life's too short for sql
oliv_____ has quit [Remote host closed the connection]
<havenwood> nofxxx: Datomic.
<havenwood> Life's too long for NoSQL.
<nofxxx> havenwood, a transactional one! hehe thanks
<Jason> oh lord
<Jason> havenwood: so i bit the bullet and pegged everything to a commit
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<Jason> let me paste, this is madness
jusa has joined #ruby
utkarsh has quit [Quit: No Ping reply in 180 seconds.]
utkarsh has joined #ruby
<nofxxx> havenwood, just sad it's java... there's not enougth ram in the world for java, ok resets are infinite, but boring
houhoulis has quit [Remote host closed the connection]
hndk has quit [Quit: Leaving]
<Jason> havenwood: any ideas? i don't even know, man, lol
tvw has quit []
jusa has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
Cohedrin has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
<havenwood> Jason: Seems like a yak shave.
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
__Yiota has joined #ruby
jameser has joined #ruby
oliv_____ has quit [Remote host closed the connection]
gix has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
gix has joined #ruby
demio has joined #ruby
cfec0b8d has joined #ruby
nanoz has joined #ruby
jackrandom has quit [Remote host closed the connection]
<Jason> havenwood: so let's pretend i don't care about my ruby or the older gems
<Jason> i just installed rvm to play with this
msmith has joined #ruby
tristanp has quit [Remote host closed the connection]
PatrikasZvaigzde has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
rdw200169__ has quit [Ping timeout: 246 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
msmith has quit []
<Jason> ugh
<Jason> this is a pain
<Jason> so let's pretend i have a Gemfile.lock
<Jason> and i don't care about if the versions of gems i need to run to get the app working are ld
<Jason> are old*
erlend has quit [Ping timeout: 240 seconds]
<Jason> oh .
<Jason> havenwood: require 'bundler/setup'
<Jason> that's all i had to put in my ruby app
<Jason> lol
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
<Jason> havenwood: success, lol, thank you for your help
erlend has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
charliesome has joined #ruby
cschneid_ has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 245 seconds]
oliv_____ has joined #ruby
Slinky_Pete has joined #ruby
<Slinky_Pete> hello
Slinky_Pete is now known as cgibsonmm
uZiel has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
mim1k has joined #ruby
uZiel has joined #ruby
__Yiota has quit [Client Quit]
DaleK5whr has joined #ruby
DaleK5whr has quit [Client Quit]
Cohedrin has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 255 seconds]
ledestin has joined #ruby
renchan has joined #ruby
Cohedrin has joined #ruby
rc48 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
rc48 has quit [Read error: Connection reset by peer]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
roamingdog has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
patarr has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
Cohedrin has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
nobitanobi has quit [Ping timeout: 268 seconds]
anisha has joined #ruby
howdoi has joined #ruby
cgibsonmm has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
anvor has quit [Quit: anvor]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
<uZiel> can I specify no-padding option to OpenSSL::Cipher::AES somehow?
xall has joined #ruby
Cohedri__ has joined #ruby
Cohedrin has quit [Ping timeout: 246 seconds]
cjhowe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
Guest25__ has joined #ruby
cjhowe has quit [Client Quit]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<uZiel> found it
Bock has joined #ruby
Guest25__ has quit [Quit: Textual IRC Client: www.textualapp.com]
N0ATN has joined #ruby
aupadhye has joined #ruby
cjhowe has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
rc48 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjhowe has quit [Client Quit]
rc48 has quit [Read error: Connection reset by peer]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
oleo has quit [Quit: irc client terminated!]
cjhowe has quit [Client Quit]
sneakerhax has quit [Ping timeout: 246 seconds]
enterprisey has quit [Remote host closed the connection]
Cohedri__ has quit [Ping timeout: 258 seconds]
__Yiota has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
roamingdog has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
cgibsonmm has joined #ruby
cgibsonmm has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
Cohedrin has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
pb122 has joined #ruby
_whitelogger has joined #ruby
pb122-two has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
<uZiel> I want to run either of the two different loops depending on the value of a boolean
<uZiel> can/should I use yield?
<uZiel> how will it be any different from using an if condition "bool ? loop1 : loop2"
<uZiel> by yield I meant block
olivi____ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has joined #ruby
mim1k has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
conta has joined #ruby
<baweaver> uZiel: what's the problem you're trying to solve for?
<baweaver> the short answer is to put the loops in different methods, but you may be solving for the wrong problem here depending on what you're using this for
Kug3lis_off is now known as Kug3lis
mim1k has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
aupadhye_ has joined #ruby
cam27 has joined #ruby
pb122-two has joined #ruby
aupadhye has quit [Ping timeout: 272 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
keyjoo has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
pb122 has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
Kug3lis is now known as Kug3lis_off
BTRE has joined #ruby
last_staff has joined #ruby
eightlimbed has joined #ruby
renchan has quit [Remote host closed the connection]
renchan has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
benjen has joined #ruby
johnnytao has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
johnny_ has joined #ruby
johnnytao has quit [Ping timeout: 260 seconds]
johnny_ has quit [Remote host closed the connection]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
nobitanobi has joined #ruby
dhollinger has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mmasaki has quit [Quit: bye]
agent_white has quit [Ping timeout: 240 seconds]
mmasaki has joined #ruby
dionysus69 has joined #ruby
govg has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
mim1k has joined #ruby
PatrikasZvaigzde has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
relyks has quit [Quit: Leaving]
eightlimbed has quit [Ping timeout: 258 seconds]
nofxxxx has joined #ruby
<dionysus69> when I do Phantomjs.run('/home/user/test.js') irb just hangs
<dionysus69> test.js contains just console.log(123);
etehtsea has joined #ruby
biberu has joined #ruby
dhollinger has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
mark_66 has joined #ruby
nicesignal has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
nicesignal has joined #ruby
<dionysus69> my bad, gem readme example didn't mention anything about phantom.exit()...
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
aupadhye_ has quit [Quit: Leaving]
aupadhye has joined #ruby
Kug3lis_off is now known as Kug3lis
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
djbkd has joined #ruby
oliv_____ has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
oliv_____ has joined #ruby
rc48 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
rc48 has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
cgibsonmm has joined #ruby
roamingdog has quit [Remote host closed the connection]
vali has joined #ruby
agent_white has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
nanoz has quit [Quit: <3]
Dimik has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
biberu has quit []
nertzy has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
bsartek has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cam27 has quit [Quit: cam27]
oliv_____ has quit [Remote host closed the connection]
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
oliv_____ has joined #ruby
Kug3lis is now known as Kug3lis_off
bsartek has quit [Ping timeout: 272 seconds]
mitt3ns has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
vali has quit [Quit: vali]
cschneid_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
bathtub_shark has quit [Quit: WeeChat 1.8]
bathtub_shark has joined #ruby
oliv_____ has joined #ruby
vali has joined #ruby
oliv_____ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
oliv_____ has joined #ruby
cdg has joined #ruby
Jason has left #ruby [#ruby]
cschneid_ has quit [Ping timeout: 246 seconds]
Zarthus is now known as Guest4293
bathtub_shark is now known as Zarthus
Guest4293 has quit [Killed (moon.freenode.net (Nickname regained by services))]
mikecmpbll has quit [Client Quit]
Zarthus_ has joined #ruby
bsartek has joined #ruby
bsartek has quit [Client Quit]
ecuanaso has joined #ruby
vali has quit [Remote host closed the connection]
vali has joined #ruby
demio has quit [Quit: Computer has gone to sleep.]
mim1k has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mikecmpbll has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsartek has joined #ruby
bsartek has quit [Client Quit]
wuyin has joined #ruby
cschneid_ has joined #ruby
vali has quit [Remote host closed the connection]
_DanN_ has quit [Ping timeout: 240 seconds]
_DanN_ has joined #ruby
vali has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
t0d0r has quit [Quit: leaving]
uZiel has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<kke> what kind of pattern/composition would you use for something like Food.new(state: :ordered) that requires several steps before reaching state == :finished, such as obtain_ingredients, cook, put_on_a_plate, etc? the steps can take some time and are performed by some background workers.
cgibsonmm has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
cgibsonmm has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
roamingdog has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sonOfRa has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
roamingdog has quit [Ping timeout: 258 seconds]
patarr has joined #ruby
bmurt has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
sonOfRa has joined #ruby
<Bish> Cannot link to a non running container: /pg_main AS /console/pg_main
<Bish> ah, sorry
<ljarvis> kke: just update the state inside those methods? unsure exactly what you're looking for
bmurt has quit [Ping timeout: 258 seconds]
<ljarvis> e.g. the last step updates the state assuming the state is correct (the state returned by the penultimate step)
patarr has quit [Ping timeout: 260 seconds]
<ljarvis> if state == :cooked; put_on_a_plate; state = :finished etc
lxsameer has joined #ruby
marr has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
chichou has joined #ruby
postmodern has quit [Quit: Leaving]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
bsartek has joined #ruby
bkxd has joined #ruby
aupadhye has joined #ruby
Snickers has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 268 seconds]
oliv_____ has joined #ruby
tomphp has joined #ruby
cdg_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
<kke> that's what i'm trying to avoid. i think i'm going to use AASM or statesman, but i think what i actually would like is a workflow engine, but seems like there aren't any good candidates
mim1k has joined #ruby
cschneid_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<ljarvis> sounds overly complicated, but im sure your example was just heavily simplified
tristanp has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 240 seconds]
cfec0b8d has joined #ruby
cgibsonmm has joined #ruby
workmad3 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cgibsonmm has quit [Ping timeout: 255 seconds]
cyphase has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
sonOfRa has quit [Ping timeout: 246 seconds]
rc48 has joined #ruby
sonOfRa has joined #ruby
last_staff has quit [Quit: last_staff]
bkxd has quit [Ping timeout: 260 seconds]
rc48 has quit [Read error: Connection reset by peer]
wuyin has quit [Quit: leaving]
im0nde has joined #ruby
roamingdog has joined #ruby
oliv_____ has quit [Remote host closed the connection]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has quit []
roamingdog has quit [Ping timeout: 240 seconds]
im0nde has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 258 seconds]
biberu has joined #ruby
oliv_____ has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
ur5us has joined #ruby
minimalism has quit [Quit: minimalism]
chichou has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
chichou has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
xall has joined #ruby
patarr has joined #ruby
ikopico has quit [Quit: Imma make like traffic and jam]
Azure|dc has joined #ruby
ikopico has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
t-recx has joined #ruby
ur5us has quit [Remote host closed the connection]
tomphp has joined #ruby
xall has quit [Quit: xall]
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
tomphp has quit [Client Quit]
patarr has quit [Ping timeout: 255 seconds]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cgibsonmm has joined #ruby
aupadhye has joined #ruby
rc48 has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
rc48 has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
gregf_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
ferr has joined #ruby
jamesaxl has joined #ruby
ur5us has joined #ruby
ikopico has quit [Quit: Imma make like traffic and jam]
ikopico has joined #ruby
zylo has joined #ruby
olivi____ has quit [Remote host closed the connection]
roamingdog has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
tomphp has joined #ruby
roamingdog has quit [Ping timeout: 255 seconds]
pb122 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
pb122-two has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
qba73 has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
Exhiled has quit [Quit: Connection closed for inactivity]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
teclator has joined #ruby
ikopico has quit [Quit: Imma make like traffic and jam]
Fernando-Basso has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
ikopico has joined #ruby
GinoMan has quit [Ping timeout: 255 seconds]
pb122-two has joined #ruby
roshanavand has left #ruby [#ruby]
cschneid_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
pb122 has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
cschneid_ has quit [Ping timeout: 255 seconds]
qba73 has joined #ruby
pb122-two has quit [Read error: Connection reset by peer]
pb122 has joined #ruby
im0nde has joined #ruby
cgibsonmm has joined #ruby
polysics has joined #ruby
ur5us has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
cgibsonmm has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
withasmile has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
pb122 has joined #ruby
kthibodeaux has joined #ruby
rc48 has joined #ruby
TheBrayn is now known as schnurpsi
schnurpsi is now known as TheBrayn
LukyCZ has joined #ruby
rc48 has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
ecuanaso has joined #ruby
qba73 has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
qba73 has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
kthibodeaux has quit [Quit: WeeChat 1.5]
oliv_____ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teclator has quit [Remote host closed the connection]
bsartek has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
kthibodeaux has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
t-recx has quit [Quit: t-recx]
jaruga has joined #ruby
GodFather has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
romank has joined #ruby
bkxd has joined #ruby
<kke> looks like i don't like AASM or statesman either
gnufied has joined #ruby
jaruga________ has joined #ruby
ohcibi_ is now known as ohcibi
qba73 has joined #ruby
hashrocket has joined #ruby
cgibsonmm has joined #ruby
jaruga has quit [Ping timeout: 268 seconds]
Vile` has joined #ruby
oliv_____ has quit [Remote host closed the connection]
nhhc has joined #ruby
oliv_____ has joined #ruby
<apeiros> I think my znc's time is off… did ljarvis reply to that 9h ago or just 2h?
uZiel has joined #ruby
roamingdog has joined #ruby
nertzy has joined #ruby
<apeiros> kke: using threads for those background workers? if so, make sure either AASM/statesman is thread safe, or how to properly use them with threads.
<kke> aasm readme claims it's thread safe
<kke> i was planning to use sucker_punch to run concurrent-ruby based workers
vali has quit [Quit: vali]
pupsicle has joined #ruby
<kke> i thought it would be a pretty common problem and would have been solved a zillion times already
oliv_____ has quit [Ping timeout: 272 seconds]
cgibsonmm has quit [Ping timeout: 246 seconds]
roamingdog has quit [Ping timeout: 272 seconds]
<apeiros> I'd say it is
<apeiros> I only glossed over what you asked, though.
<apeiros> but state machines + worker queues are a common recipe.
<kke> something to script a multi stage job
olivi____ has joined #ruby
withasmile has quit [Remote host closed the connection]
_moep_ has left #ruby [#ruby]
<dionysus69> I am unable to pass command line argument to this script starting up firefox, in gist i provided 3 examples with comments, I am trying to pass headless command line argument to the selenium driver starting up firefox, but I am unable to :\ please any hints appreciated
zylo has quit [Quit: ZNC 1.6.5 - http://znc.in]
ecuanaso has joined #ruby
grymmjack has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
centrx has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
rc48 has joined #ruby
yqt has joined #ruby
Vile` has quit [Remote host closed the connection]
anisha has quit [Read error: Connection reset by peer]
ntt has joined #ruby
anisha has joined #ruby
oleo has joined #ruby
<ntt> Hi, I'm searching a way to read the name of interfaces on a linux centos 7 box with ruby 1.9. Someone can help me? I'm able to read IP with Socket::getaddrinfo(Socket.gethostname, "echo", Socket::AF_INET).map { |x| x[3] } but I don't understand how to read the interface name
haylon has joined #ruby
Mon_Ouie has joined #ruby
anisha_ has joined #ruby
mim1k has joined #ruby
anisha has quit [Ping timeout: 245 seconds]
Snickers has quit [Quit: Snickers]
qba73 has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
uZiel has quit [Ping timeout: 240 seconds]
ddffg has joined #ruby
cdg has joined #ruby
uZiel has joined #ruby
<uZiel> can I pass a function as a parameter?
<adam12> uZiel: kinda?
roamingdog has joined #ruby
<adam12> uZiel: you'd pass a lambda or proc, or get a reference to a method using the `method` method and then passing that.
<apeiros> uZiel: you can use Object#method to create an object from a method (no functions in ruby, sorry), you can pass the name of a method as a Symbol (or String) and invoke it using Object#send
<apeiros> uZiel: additionally methods take a special argument, the block argument, which is similar to a function
<apeiros> oh, and you can always create procs/lambdas using Kernel#proc and Kernel#lambda and pass those (they're objects)
<apeiros> so pick your poison :)
ghormoon has quit [Ping timeout: 240 seconds]
ghormoon has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
TheBrayn has quit [Quit: WeeChat 1.5]
roamingdog has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
<uZiel> will look into the options
<uZiel> thanks adam12 apeiros
<apeiros> uZiel: you can always put your code on gist.github.com and ask again. will make it easier to give a sensible answer.
houhoulis has joined #ruby
pb122-two has joined #ruby
<dionysus69> btw I figured out.
pb122 has quit [Ping timeout: 240 seconds]
<dionysus69> anyone who wants to know how to run <real>headless firefox with selenium webdriver gem, ask me ;) (without xvfb package)
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cgibsonmm has joined #ruby
DLSteve has joined #ruby
cam27 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 246 seconds]
TheBrayn has joined #ruby
qba73 has quit []
mim1k has joined #ruby
railswebdev has joined #ruby
biberu has quit []
houhoulis has quit [Remote host closed the connection]
jaruga________ has quit [Ping timeout: 268 seconds]
renchan has quit [Quit: Leaving...]
spheric has joined #ruby
__Yiota has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
cgibsonmm has quit []
houhoulis has joined #ruby
psmolen has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
psmolen has joined #ruby
bsartek has joined #ruby
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
__Yiota has joined #ruby
patarr has joined #ruby
jaruga________ has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
jaruga________ has quit [Remote host closed the connection]
jaruga________ has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
etehtsea has joined #ruby
apparition has joined #ruby
MrBusiness has joined #ruby
sepp2k has joined #ruby
kelseynz__ has joined #ruby
<kelseynz__> Is there a way to specify (as a gem author) which file should be required by default by Bundler, in place of GEMNAME.rb (on the gem side)?
shakes has joined #ruby
ascheel has left #ruby [#ruby]
dionysus69 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
etehtsea has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
bkxd has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
etehtsea has joined #ruby
polysics has quit []
LukyCZ has quit [Quit: Connection closed for inactivity]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
shakes has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
houhoulis has quit [Remote host closed the connection]
theunraveler has joined #ruby
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :wolfe.freenode.net"]
centrx has quit [Remote host closed the connection]
cbyrda has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
chichou has quit [Quit: WeeChat 1.8]
adgtl has quit [Changing host]
adgtl has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
shakes has joined #ruby
oliv_____ has quit [Quit: Leaving...]
bkxd has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
HoierM_ has quit [Ping timeout: 240 seconds]
mordof has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ferr has quit [Quit: WeeChat 1.7]
jameser has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
raspado has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
uZiel has joined #ruby
mdw has joined #ruby
cjhowe has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
mitt3ns has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
ruby-lang457 has joined #ruby
etehtsea has quit [Ping timeout: 246 seconds]
aufi has quit [Quit: Leaving]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kug3lis_off is now known as Kug3lis
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby-lang457 has quit [Quit: Page closed]
duderonomy has quit [Ping timeout: 246 seconds]
__Yiota has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
bgray has joined #ruby
bgray has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
tomphp has joined #ruby
jaruga________ has quit [Quit: jaruga________]
tomphp has quit [Client Quit]
shinnya has joined #ruby
Kug3lis is now known as Kug3lis_off
brent__ has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has quit [Client Quit]
tomphp has joined #ruby
tomphp has quit [Client Quit]
Kug3lis_off is now known as Kug3lis
mdw has quit [Quit: Sleeping Zzzzz]
shakes has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 240 seconds]
kthibodeaux has quit [Quit: WeeChat 1.5]
nhhc has quit [Remote host closed the connection]
Guest35378 has joined #ruby
HoierM_ has joined #ruby
gusrub has joined #ruby
konsolebox has joined #ruby
hobodave has joined #ruby
dionysus69 has joined #ruby
mim1k has joined #ruby
ddffg has quit [Ping timeout: 240 seconds]
nitric has joined #ruby
danman has joined #ruby
chouhoulis has quit [Remote host closed the connection]
hplar has quit [Remote host closed the connection]
hplar has joined #ruby
kelseynz__ has quit [Quit: Lost terminal]
mim1k has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
HoierM_ has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
rgr has joined #ruby
HoierM has joined #ruby
ddffg has joined #ruby
rgr_ has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
jrafanie has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
HoierM has quit [Ping timeout: 272 seconds]
kies has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
LastWhisper____ has joined #ruby
MetaMutt has joined #ruby
Cohedrin has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
MrBusiness has quit [Ping timeout: 272 seconds]
gothicsouth has joined #ruby
<stormbytes> probably not the right place to ask but if I already have curl installed on a system and run apt-get install curl will it just install the uprgraded version?
SeepingN has joined #ruby
nicoulaj has quit [Remote host closed the connection]
nicoulaj46 has joined #ruby
faces has quit [Read error: Connection reset by peer]
eightlimbed has joined #ruby
faces has joined #ruby
djbkd has quit [Remote host closed the connection]
dviola has joined #ruby
MetaMutt has quit [Quit: Mutter: www.mutterirc.com]
MetaMutt has joined #ruby
MetaMutt has quit [Max SendQ exceeded]
chouhoulis has joined #ruby
MetaMutt has joined #ruby
MetaMutt has quit [Max SendQ exceeded]
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MetaMutt has joined #ruby
MetaMutt has quit [Max SendQ exceeded]
postmodern has quit [Remote host closed the connection]
Cohedrin has joined #ruby
postmodern has joined #ruby
postmodern has quit [Remote host closed the connection]
xaxisx has quit [Quit: Leaving]
postmodern has joined #ruby
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
im0nde has quit [Ping timeout: 240 seconds]
MetaMutt has joined #ruby
MetaMutt has quit [Max SendQ exceeded]
jusa has joined #ruby
haylon has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MetaMutt has joined #ruby
MetaMutt has quit [Max SendQ exceeded]
haylon has joined #ruby
eightlimbed has joined #ruby
enterprisey has joined #ruby
BTRE has quit [Ping timeout: 260 seconds]
haylon has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
ecuanaso has joined #ruby
duderonomy has joined #ruby
bsartek has joined #ruby
bsartek has quit [Client Quit]
bsartek has joined #ruby
BTRE has joined #ruby
<dionysus69> hey when I do system call it automatically puts it to console
bsartek has quit [Client Quit]
roamingdog has joined #ruby
<dionysus69> how do I just save it to variable
<dionysus69> like system "firefox -v"
eightlimbed has quit [Ping timeout: 255 seconds]
<dionysus69> should be saved in variable instead of printing out on a new line
bsartek has joined #ruby
brent__ has quit [Remote host closed the connection]
bsartek has quit [Client Quit]
brent__ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
bsartek has joined #ruby
mikecmpbll has joined #ruby
bsartek has quit [Client Quit]
roamingdog has quit [Ping timeout: 255 seconds]
haylon has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
Guest35378 has left #ruby ["Leaving"]
Cohedrin has quit [Ping timeout: 260 seconds]
borodin has joined #ruby
Cohedrin has joined #ruby
brent__ has joined #ruby
hobodave has joined #ruby
ghormoon has quit [Ping timeout: 240 seconds]
<havenwood> dionysus69 = `firefox -v`
mikecmpbll has quit [Quit: inabit. zz.]
mdw has joined #ruby
jenrzzz has joined #ruby
spheric has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
<dionysus69> havenwood: it needed a chomp or strip at the end too, added a new line :) but thanks!
romank has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
gothicsouth has joined #ruby
beyonder has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
ghormoon has joined #ruby
Cohedrin has joined #ruby
kegster has quit [Ping timeout: 255 seconds]
beyonder has quit [Quit: Leaving]
beyonder has joined #ruby
beyonder has quit [Max SendQ exceeded]
<herwin> please, don't call that a system call, that term is used for something pretty different
beyonder has joined #ruby
beyonder has quit [Max SendQ exceeded]
beyonder has joined #ruby
<beyonder> hello there
beyonder has quit [Max SendQ exceeded]
<SeepingN> I use `linux stuff`.strip often
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
centrx has joined #ruby
jaruga________ has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
dlitvak has joined #ruby
beyonder has joined #ruby
<dionysus69> herwin: what is a system call then ? just cuious
beyonder has quit [Max SendQ exceeded]
DTZUZU has joined #ruby
beyonder has joined #ruby
gusrub has quit [Remote host closed the connection]
<dionysus69> and what would I call this? whatever I called :)
beyonder has quit [Max SendQ exceeded]
gusrub has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
ecuanaso has quit [Quit: Textual IRC Client: www.textualapp.com]
kegster has joined #ruby
<Mon_Ouie> Calling a subprocess, executing a shell command. System calls are the interface applications use to interact with the operating system (e.g. to open a file, to allocate memory, etc.)
gusrub has quit [Ping timeout: 268 seconds]
<benlieb> Recently saw this question in prep for job interviews:
<benlieb> What is the return value for:
<benlieb> ABC::new::xyz
<benlieb> ABC::new.xyz
<benlieb> ABC.new::xyz
<benlieb> ABC.new.xyz
<benlieb> apparently they're all the same?
<benlieb> I've never seen this syntax used for the 1st 3...
Cohedrin has quit [Read error: Connection reset by peer]
brent__ has quit [Remote host closed the connection]
<havenwood> benlieb: You see some of that syntax in things like _why's poignant guide to Ruby, but it's dated. Of course just use: ABC.new.xyz
beyonder has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
alveric1 has joined #ruby
alveric1 is now known as lordalveric
Cohedri__ has joined #ruby
Bock has quit [Read error: Connection reset by peer]
theunraveler has quit []
eightlimbed has joined #ruby
ecuanaso has joined #ruby
gusrub has joined #ruby
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
Dimik has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
lxsameer has joined #ruby
resnik2 has joined #ruby
br0d1n has joined #ruby
<beyonder> ruby
jshjsh has quit [Ping timeout: 240 seconds]
<havenwood> beyonder: indeed
Kug3lis is now known as Kug3lis_off
resnik2 has quit [Quit: Leaving]
mdw has quit [Quit: Sleeping Zzzzz]
mdw has joined #ruby
br0d1n has quit [Quit: Leaving]
Cohedri__ has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
muelleme has quit [Ping timeout: 260 seconds]
roamingdog has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
Cohedrin has joined #ruby
brent__ has quit [Remote host closed the connection]
Kug3lis_off is now known as Kug3lis
ledestin has joined #ruby
nopacienc3 is now known as administraitor
kies has joined #ruby
borodin has joined #ruby
gothicsouth has joined #ruby
pb122-two has quit [Quit: Leaving]
enterprisey has quit [Remote host closed the connection]
mim1k has joined #ruby
<dionysus69> thanks Mon_Ouie
kegster has quit [Ping timeout: 268 seconds]
kegster has joined #ruby
bsartek has joined #ruby
Xakotu has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
Xakotu has quit [Quit: Mutter: www.mutterirc.com]
gnufied has quit [Ping timeout: 240 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
beyonder has quit [Ping timeout: 240 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
mim1k has joined #ruby
ur5us has joined #ruby
rfoust has quit [Read error: Connection reset by peer]
gusrub_ has joined #ruby
muelleme has joined #ruby
sniffer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sniffer has joined #ruby
rfoust has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
gusrub has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
konsolebox has quit [Quit: Leaving]
redaudit has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
jackjackdripper has joined #ruby
gnufied has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
shinnya has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
jaruga________ has quit [Quit: jaruga________]
mim1k has joined #ruby
bsartek has joined #ruby
roamingdog has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
enterprisey has joined #ruby
Ove_ has joined #ruby
gusrub has joined #ruby
gusrub_ has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Ping timeout: 246 seconds]
cdg has quit [Remote host closed the connection]
govg has joined #ruby
cdg has joined #ruby
<Ove_> trying to log as different program_names and then match on the program name in syslog.
<Ove_> Seems ruby still sames everything through the same programname.
oleo has quit [Ping timeout: 245 seconds]
Cohedrin has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
yeticry_ has joined #ruby
oleo has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
yeticry has quit [Ping timeout: 260 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
JoshS has joined #ruby
jenrzzz has joined #ruby
bsartek has joined #ruby
workmad3 has joined #ruby
<baweaver> cjohnson: also gist is nice.
ecuanaso has joined #ruby
<cjohnson> >> map = {'G' => 'C', 'C' => 'G', 'T' => 'A', 'A' => 'U'}; myKey = 'F'; map.has_key? myKey
<ruby[bot]> cjohnson: # => false (https://eval.in/806013)
<cjohnson> hrm
<cjohnson> sec
<baweaver> has_key? isn't entirely needed here
<baweaver> >> h = {'G' => 'C'}; [h['G'], h['Nope']]
<ruby[bot]> baweaver: # => ["C", nil] (https://eval.in/806014)
<baweaver> nil is falsy
enterprisey has quit [Remote host closed the connection]
<cjohnson> I am wanting to throw an error if the input is bad
<baweaver> So invalid if it's there?
<baweaver> you probably want `unless`
<cjohnson> oh woops yeah
<baweaver> and a strand is a set of characters, no?
<cjohnson> Yes this isn't done, I'm just on the find_complement method
<baweaver> >> 'GCTA'.chars
<ruby[bot]> baweaver: # => ["G", "C", "T", "A"] (https://eval.in/806015)
<cjohnson> which will take 1 char, check it, if it's bad, error, if it's good, return the complement
<cjohnson> then the of_dna will map that
<baweaver> do you need to have an error catch there?
<baweaver> or can you just ignore it?
<cjohnson> Well if of_dna gets bad input I would hope the erorr in find_complement will bubble up
workmad3 has quit [Ping timeout: 245 seconds]
agundy_ has joined #ruby
<baweaver> Then there's an easier way there :)
<baweaver> &ri String#delete
<cjohnson> how do you mean
<cjohnson> no, that would silently discard bad input
<baweaver> what if you check what happens when you delete all the valid characters from the input string?
<baweaver> delete doesn't mutate
<cjohnson> which isn't what I wanted
<cjohnson> sure, that's one approach
sp4rrow has joined #ruby
<cjohnson> could use regex too
<baweaver> that too.
<cjohnson> seems more logical to me to only do one pass
<baweaver> fair.
<cjohnson> so anyway, I need unless not if. but can you explain why
<cjohnson> has_key? nucleotide
<cjohnson> doesn't work how I think it should?
<cjohnson> but :nucleotide
<cjohnson> does
<baweaver> You want it to raise if it finds it
<baweaver> it won't ever find :nucleotide
<cjohnson> what is :nucleotide
<baweaver> :nucleotide is what's called a symbol
<cjohnson> ok
<cjohnson> like JS Symbol?
<baweaver> think a very barebones string
<baweaver> like a label
<cjohnson> where do you use a symbol
* baweaver needs to look up JS symbol
<cjohnson> ha
<baweaver> mainly for object keys
<baweaver> hash keys in Ruby
<baweaver> >> {a: 1}
<ruby[bot]> baweaver: # => {:a=>1} (https://eval.in/806016)
bsartek has quit [Quit: This computer has gone to sleep]
<baweaver> that's just sugar for that
<cjohnson> ok so it uses the symbol of a string as the key, not the string itself
<cjohnson> what's hte practical impact?
Dimik has quit [Ping timeout: 260 seconds]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<baweaver> >> :string == 'string'
<ruby[bot]> baweaver: # => false (https://eval.in/806017)
<baweaver> symbols can be a bit dense to get the first pass.
agundy_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<cjohnson> >> foo = {a: 1}; foo['a']
<ruby[bot]> cjohnson: # => nil (https://eval.in/806018)
<baweaver> yep
agundy_ has joined #ruby
<baweaver> especially if you come from high JS land
<cjohnson> ha
<baweaver> you don't get foo.a either
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cjohnson> Ok so I would want to define it as {'a': 1} if I want to read it back with 'a'
gnufied has quit [Ping timeout: 272 seconds]
<cjohnson> the question is, in what real world scenario do you prefer a symbol?
<baweaver> >> {'a': 1}
<ruby[bot]> baweaver: # => {:a=>1} (https://eval.in/806019)
<baweaver> fair warning
<cjohnson> ha
<baweaver> >> {'a' => 1}
<ruby[bot]> baweaver: # => {"a"=>1} (https://eval.in/806020)
<baweaver> temperamental thing it is.
<cjohnson> nice. ok that's what I meant but I'm used to typing JS
agundy_ has quit [Client Quit]
dlitvak has quit [Quit: Connection closed for inactivity]
<baweaver> Most Ruby types tend to use symbols for everything, if only because less typing
<cjohnson> >> x = {'a' => 1}; x['a']
<ruby[bot]> cjohnson: # => 1 (https://eval.in/806021)
<baweaver> that, and symbols are immutable. :foo is always :foo
<bougyman> it's not only because of typing.
<cjohnson> but 'foo' is not always 'foo'?
<bougyman> less object creation.
<centrx> a symbol represents a key, immutable
<baweaver> could be mutated
<cjohnson> oh ok, so it's not like JS where changing a string just re-assigns the new string to the variable
mim1k has joined #ruby
<baweaver> a = 'a'; hash[a]; a = 'bar'
agundy_ has joined #ruby
<baweaver> yeah, feel free to chime in if I miss something on this
dviola has quit [Quit: WeeChat 1.8]
gnufied has joined #ruby
<baweaver> Also, there's this fun method
<baweaver> &ri String#tr
<baweaver> Assuming you always have valid input
spk_ has joined #ruby
<baweaver> >> 'CTCTAGCG'.tr('GCTA', 'CGAU')
<ruby[bot]> baweaver: # => "GAGAUCGC" (https://eval.in/806025)
<baweaver> coffee time for me, be back in a bit
<cjohnson> oh neat
eightlimbed has quit [Ping timeout: 260 seconds]
<baweaver> Enumerable, String, and Array are good reads in the docs
spk_ is now known as spk
spk has quit [Ping timeout: 258 seconds]
<baweaver> lots of fun stuff
<baweaver> brb
bsartek has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
ecuanaso has joined #ruby
eightlimbed has joined #ruby
Kug3lis is now known as Kug3lis_off
gnufied has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
minimalism has joined #ruby
Kug3lis_off is now known as Kug3lis
roamingdog has joined #ruby
haylon has quit []
<cjohnson> Alright, so if I instead chose to ignore invalid input and return an empty string if the input contained any invalid chars
<cjohnson> this is what I end up with
spk_ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spk_ is now known as spk
physikoi has joined #ruby
<physikoi> Hello #ruby. Can someone point me to a detailed explanation of gem config options for gems installed machine wide?
<physikoi> IDK why but I can't seem to find a clear explanation online.
<ledestin> what config options?
agundy_ is now known as agundy
<physikoi> ledestin: hello. namely, where gem will install stuff.
<physikoi> prefix, i think it's called
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ledestin> ah, well, dunno. it can be set I guess, looking at rbenv
eightlimbed has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby
<physikoi> that's a starting point. thanks
ecuanaso has joined #ruby
spk_ has joined #ruby
eightlimbed has joined #ruby
nofxxxx has quit [Ping timeout: 260 seconds]
agundy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spk has quit [Ping timeout: 240 seconds]
spk_ is now known as spk
physikoi has left #ruby ["ty"]
<baweaver> cjohnson: Looks good to me.
nofxxxx has joined #ruby
<baweaver> otherwise just use the hash and each_char.map { |v| hash[v] }.join
gothicsouth has joined #ruby
<baweaver> well, or chars.map
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
mikecmpbll has quit [Read error: Connection reset by peer]
<dionysus69> can anyone point me to whats wrong with this ? https://gist.github.com/anonymous/2ebdc8b9da227b59a6c23bca1c53b470
<dionysus69> second rescue block won't fire
mikecmpbll has joined #ruby
futilegames has joined #ruby
<centrx> dionysus69: Why are there two rescue blocks?
<dionysus69> centrx: just to handle two failures
<dionysus69> if one method fails I want to automatically do second one, and if that one also fails I want to ensure third block executes
futilegames has quit [Ping timeout: 240 seconds]
<dionysus69> anyways i have seen online the use of rescue blocks , i just dont understand what's wrong with mine
jenrzzz has quit [Ping timeout: 240 seconds]
<centrx> dionysus69: Probably multiple rescue blocks is only if they have different exception types
<centrx> dionysus69: It sounds like you want a second rescue within the rescue block, in which case it should have its own begin..rescue..end
<dionysus69> what do i do in case if I dont care about exception type
<dionysus69> i just know the script might break
<centrx> dionysus69: If you're planning to have your script break through multiple layers of errors, that sounds like a design flaw
<dionysus69> oh I see, but still vague on why the second rescue block wont just work :D
<centrx> dionysus69: Ultimately, don't use errors for control flow, check results and use if-statements, etc.
<dionysus69> well the second block is just for insurance, for fun
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dionysus69> i am building a website scraper and in case design structure changes i am implementing a fallback
<centrx> dionysus69: What's the error message?
<dionysus69> ok let me try rerun i ll post in a sek
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<dionysus69> first rescue, Unable to locate element: .navHeader_yr446gasd
agundy has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<dionysus69> `assert_ok': Unable to locate element: #someelement (Selenium::WebDriver::Error::NoSuchElementError)
<dionysus69> centrx: do I do `rescue Selenium::WebDriver::Error::NoSuchElementError => error_message` ?
roamingdog has joined #ruby
<centrx> right
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
GodFather has joined #ruby
jenrzzz has joined #ruby
<dionysus69> well I just did it , and still didnt work
skweek has joined #ruby
<dionysus69> I have puts "*** warning second name fetching method failed"
<dionysus69> in second rescue block
<dionysus69> just to tell user that the script broke here
<dionysus69> my first rescue says: rescue StandardError => e
<dionysus69> and second rescue Selenium::WebDriver::Error::NoSuchElementError => error_message
agundy has quit [Read error: Connection reset by peer]
<centrx> dionysus69: define "didn't work"
<dionysus69> instead of giving a second warning message
roamingdog has quit [Ping timeout: 260 seconds]
<dionysus69> it gave this error again Selenium::WebDriver::Error::NoSuchElementError
<dionysus69> with lots of other boilerplate error
<dionysus69> I want it to put a specific warning text with puts statement instead of crashing and puking all over terminal :D
<havenwood> dionysus69: In general, use `warn` rather than `puts` for error messages.
<havenwood> dionysus69: And there's `abort msg` instead of `warn msg; exit 1` as well
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dionysus69> abort msg?
<havenwood> dionysus69: Like: abort 'Keyboard on fire.'
gusrub has quit [Remote host closed the connection]
pupsicle has quit [Quit: pupsicle]
<dionysus69> abort wont execute either
gizmore has joined #ruby
<dionysus69> thing is it is not reaching second rescue block at all
<dionysus69> or else puts lines would execute
gusrub has joined #ruby
<havenwood> I'm just pointing out warn and abort as an aside.
<havenwood> dionysus69: the second rescue would rescue only from within the first
<dionysus69> ohh
<dionysus69> now i get it stupid me
<dionysus69> i thought it would go like if else if else
ur5us has quit [Remote host closed the connection]
<havenwood> dionysus69: you can nest begin within begin, but think about whether you need to
<havenwood> keep it as simple as you can
<dionysus69> now i get that if first block fails it jumps to the end
mim1k has joined #ruby
govg has quit [Ping timeout: 260 seconds]
<zenspider> fucking hell... does rspec really do their own bullshit inspect code to introspect a failing expect/to/eq ???
<zenspider> it isn't using my inspect method OR my pretty_print method
chouhoulis has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 268 seconds]
kies has quit [Ping timeout: 268 seconds]
MetaQED has joined #ruby
gusrub has quit [Remote host closed the connection]
ResidentBiscuit has quit [Quit: Critical Miss]
MrBusiness has joined #ruby
weathermaker has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
<zenspider> holy hell... they do. So if you subclass array or hash, you're just screwed
MetaQED has left #ruby ["Be back later..."]
bsartek has quit [Quit: This computer has gone to sleep]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
tenderlove has joined #ruby
flaf has joined #ruby
_sfiguser has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
ColeHub has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Str|ker has joined #ruby
Str|ker has left #ruby [#ruby]
<Yxhuvud> that is true in many situations as calling methods on a subsclassed array or hash is more or less a tombola when it comes to what class the instance you get back is. hence few people do it and hence rspec can get away with it
ecuanaso has joined #ruby
jrm has quit [Quit: ciao]
Rich_Morin has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
<zenspider> Yxhuvud: no. just no. they implemented their own inspect, hardcoded 2 classes, and fall back to walking through INSPECTOR_CLASSES to see if any are applicable
<zenspider> you know what they could have done? not hardcoded any classes and put 2 more inspectors in the collection.
gothicsouth has joined #ruby
<zenspider> and WHY THE HELL DO THEY REIMPLEMENT (and externalize?!?) #inspect?!?
jrm has joined #ruby
<zenspider> (answer: because they *have* to reinvent the wheel)
Rich_Morin_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Ping timeout: 246 seconds]
patarr has quit [Ping timeout: 245 seconds]
keyjoo has quit [Ping timeout: 260 seconds]
rfoust has quit [Remote host closed the connection]
bpmedley has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
<zenspider> fuuuuck I'm so pissed. how stupid
Cohedrin has joined #ruby
<zenspider> and I'm running this in docker, so I can't just go hack up the method
<zenspider> I guess I can do it in my test
rfoust has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Rich_Morin__ has joined #ruby
Rich_Morin_ has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
bambanx has joined #ruby
cbyrda has quit [Quit: leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
kegster has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
Kug3lis is now known as Kug3lis_off
HoierM has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Ping timeout: 245 seconds]
bokayio has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
centrx has quit [Remote host closed the connection]
Cohedrin has joined #ruby
centrx has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
solos2 has joined #ruby
gothicsouth has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.8]
solos2 has quit [Quit: WeeChat 1.4]
solos2 has joined #ruby
mim1k has joined #ruby
eightlimbed has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
redaudit has quit [Quit: Cya]
solos2 has quit [Quit: WeeChat 1.4]
solos has joined #ruby
redaudit has joined #ruby
eightlimbed has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
duderonomy has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
Pumukel has quit []
roamingdog has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
niao has joined #ruby
gj_ has joined #ruby
alveric1 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
grymmjack has quit [Ping timeout: 260 seconds]
gj_ is now known as grymmjack
lordalveric has quit [Ping timeout: 255 seconds]
hinbody has quit [Quit: leaving]