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/
<havenwood> _blizzy_: What are you trying to do?
<havenwood> _blizzy_: Err, what's the context rather?
<_blizzy_> I'm listening to a websocket, so I was using EventMachine so it could loop.
senayar_ has quit [Remote host closed the connection]
<toretore> _blizzy_: gist some code, it's much easier to give advice that way
<radens> baweaver: havenwood I installed xcode, I think the command line tools are installed too
cndiv has quit []
RegulationD has quit [Ping timeout: 265 seconds]
cpruitt has quit [Client Quit]
<havenwood> radens: Open up XCode once if you haven't already.
<radens> yep
<havenwood> radens: Double check: xcode-select --install
renier has quit [Ping timeout: 276 seconds]
<havenwood> radens: Confirm already installed ^
vikaton has joined #ruby
<radens> code-select: error: command line tools are already installed,
* Radar is shocked, SHOCKED, that the blog post hasn't been linked yet
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f0ster has joined #ruby
<jasonw22> I'm trying to 'gem install ffi' on yosemite, failing with a 'install development tools first' error even though development tools are installed via 'xcode-select --install'. gem_make.out is here: https://gist.github.com/jasonw22/20204fd1762de35f6e44 and mkmf.log is here: https://gist.github.com/jasonw22/55f310a0c6176221e419 any ideas?
<Radar> jasonw22: Gists can contain multiple files FYI
<havenwood> Radar: :)
charliesome has quit [Quit: zzz]
<Radar> Oh I see the problem, ".rvm"
dfinninger has quit [Remote host closed the connection]
<havenwood> jasonw22: Install XCode.
<jasonw22> Radar: is that a problem?
<Radar> jasonw22: imo, yes
<jasonw22> havenwood: XCode is installed
<Aeyrix> Radar: We can never remember which order those words go in so
<Aeyrix> :^)
<havenwood> jasonw22: xcode-select --version
<Aeyrix> You could add it as a bot command?
<havenwood> jasonw22: xcode-select --install
<jasonw22> havenwood xcode-select version 2339
kaleido has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> jasonw22: Good, that's latest.
<havenwood> jasonw22: And tools already installed?
<jasonw22> yes (as noted above)
baweaver has quit [Remote host closed the connection]
<jasonw22> havenwood: yes
<havenwood> jasonw22: Is there an "Install XCode" in your Applications folder?
jaycee has joined #ruby
olso has quit [Ping timeout: 246 seconds]
Vile` has quit [Remote host closed the connection]
jaycee has quit [Max SendQ exceeded]
<Radar> jasonw22: Do you mind going through http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/ and letting me know if that fixes the issue for you? Implode your RVM install first (rvm implode)
<havenwood> jasonw22: (I expect this will all check out, just confirming.)
<jasonw22> havenwood: no. xcode is installed. used it this morning
<havenwood> jasonw22: Reinstall the Ruby with RVM or as Radar suggests.
<radens> havenwood: I have xcode, I installed ruby with rbenv, I still can't get the ruby devel headers
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> radens: Can you go through the guide I linked to as well? Remove your .rbenv install.
<Radar> Remove your .rbenv install first*
ledestin has joined #ruby
Vile` has joined #ruby
<havenwood> radens: Just curious, but confirm?: xcode-select --print-path
nettoweb has joined #ruby
<radens> havenwood: /Applications/Xcode.app/Contents/Developer
<havenwood> radens: All good.
fabrice31 has joined #ruby
CloCkWeRX has joined #ruby
Azure has quit [Quit: Oops.]
_ht has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
<mizaki> hello :) Could anyone help me out with something regarding heroku and puma installation?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 272 seconds]
<havenwood> mizaki: Ask away.
nettoweb has joined #ruby
kobain has quit [Read error: Connection reset by peer]
_ht has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
<jasonw22> Radar, havenwood: same issue using system ruby: https://gist.github.com/jasonw22/20204fd1762de35f6e44
gccostabr has joined #ruby
<_blizzy_> please ignore the messy code. it's not on github yet for a reason. :P anyway, https://gist.github.com/NotBlizzard/1bd57d2f533cf574b0d3, I'm trying to run multiple instances of Battle (line 116 has 1) without them blocking each other. like in go, go has 'go function()'
<Radar> jasonw22: Ok, can you please try the blog post that I linked to?
<_blizzy_> ho would I achieve this in ruby.
bkxd has joined #ruby
<jasonw22> Radar: sure, sorry, I didn't see the link?
<jasonw22> Radar: sure, sorry, I didn't see the link?
<Radar> [10:06:53] <Radar>jasonw22: Do you mind going through http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/ and letting me know if that fixes the issue for you? Implode your RVM install first (rvm implode)
<jasonw22> ah, just now seeing the link, sorry i missed that
vdamewood has quit [Quit: Life beckons.]
sevenseacat has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> no worries
dgutierrez1287 has joined #ruby
<_blizzy_> I'm curious to how I would achieve concurrency in ruby 2.2
<_blizzy_> without blocking.
<mizaki> When I try to install puma it gives me a message that says that it couldn't create makefile because of some issue with headers
<_blizzy_> mizaki, puma won't install friendly on windows.
Rapier- has quit [Quit: (null)]
<_blizzy_> that's if you're running windows.
bkxd has quit [Ping timeout: 264 seconds]
<mizaki> well what do I do in order to work with heroku since it's default is puma
psyprus has quit [Changing host]
psyprus has joined #ruby
bkxd has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 264 seconds]
<jasonw22> hmm, ruby-install is failing with 'clang version 3.0 or later is required'
freerobby has quit [Quit: Leaving.]
tcrypt has joined #ruby
tcrypt has quit [Remote host closed the connection]
<havenwood> jasonw22: Open XCode and check the selection under XCode < Preferences < Locations < Command Line Tools.
robustus has joined #ruby
<jasonw22> havenwood: Xcode 6.3.2 (6D2015)
<jasonw22> havenwood: Xcode 6.3.2 (6D21015)
<jasonw22> havenwood Xcode 6.3.2 (6D21015)
slawrence00 has joined #ruby
<havenwood> Yeah, that's latest stable.
olso has joined #ruby
<havenwood> jasonw22: gcc --version
<jasonw22> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
<jasonw22> weird, also got a traceback from that
<havenwood> jasonw22: Next line?
<olso> if 1 is Fixnum, and 1.0 is Float; why is 1.0 == 1 true? (same with ===)
pengin has quit [Remote host closed the connection]
renier has joined #ruby
pengin has joined #ruby
kobain has joined #ruby
jack_rabbit_ has joined #ruby
<olso> are Fixnums just aliased Floats?
freerobby has joined #ruby
<jasonw22> and clang --version only returns the traceback (same traceback)
datanoise has quit [Ping timeout: 248 seconds]
<havenwood> jasonw22: And `which -a gcc` and `which -a clang` just show the /usr/bin locations?
kahunaio has joined #ruby
<havenwood> [Errno 35] Resource temporarily unavailable
<havenwood> mm
bronson has quit [Remote host closed the connection]
<jasonw22> havenwood: i also have /usr/local/bin/gcc
rubie has joined #ruby
<jasonw22> but that's symlinked to /usr/bin/gcc
<havenwood> jasonw22: brew unlink gcc
pengin has quit [Ping timeout: 250 seconds]
<jasonw22> no such keg
<olso> is_a? says the right thing
<havenwood> hrm, where'd that gcc come from?
Rollabunna has joined #ruby
<havenwood> olso: Fixnum and Floats are both Numeric.
<jasonw22> shrug. it's kind of a meaningless symlink, i'd think
<havenwood> jasonw22: I just wonder where that gcc even came from if not Homebrew?
jokester has quit [Quit: see if I can boot again]
<havenwood> jasonw22: ohh, gotcha - i thought you meant symlinked the other direction
<_blizzy_> ugh, my script keeps blocking
<jasonw22> $ ls -la /usr/local/bin/gcc
<jasonw22> lrwxr-xr-x 1 root 12 Jun 22 11:08 /usr/local/bin/gcc -> /usr/bin/gcc
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<havenwood> jasonw22: It's acting like you're exceeding maximum number of open file descriptors or something.
bronson has joined #ruby
<havenwood> jasonw22: remove that symlink
<jasonw22> havenwood: ya. which is odd because resources usage is low. but i should probably reboot, perhaps
<havenwood> jasonw22: It seems turning it off and back on again is a deep magic.
oo_ has quit [Remote host closed the connection]
<havenwood> Usually works. ;)
oo_ has joined #ruby
<jasonw22> definitely can be magical for releasing borked resources
jpfuentes2 has joined #ruby
<jasonw22> but i'm gonna try ruby-install again now that i've removed the symlink, and if that fails, reboot (and fix my IRC client while I'm at it)
<havenwood> ?pry olso
<ruboto> olso, 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
jokester has joined #ruby
jasonw22 has quit [Quit: Linkinus - http://linkinus.com]
olso has quit [Ping timeout: 246 seconds]
<havenwood> olso: Compare `ls 1` and `ls 1.0`. Also take a peek at `1.ancestors` and `1.0.ancestors`.
jespada has quit [Ping timeout: 256 seconds]
<havenwood> Oops, I mean `1.class.ancestors` and `1.0.class.ancestors`. **
Rollabunna has quit [Ping timeout: 248 seconds]
rubie has quit [Ping timeout: 265 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<havenwood> olso, ah, left before I could explain Comparable: http://ruby-doc.org/core/Comparable.html
sdwrage has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
<havenwood> mizaki: You can just use WEBrick in development, yeah?
<mizaki> WEBrick?
sdwrage has joined #ruby
passbe1 has joined #ruby
sdwrage has quit [Remote host closed the connection]
commondream has joined #ruby
<havenwood> mizaki: It's an alternative to Puma that ships with Ruby.
<mizaki> I'm just setting my stuff up for my class next semester and this is what it's telling me to do and I can't
<passbe1> im in irb, ruby 2.2.1. have a method which is calling exec() and after this method runs irb drops me to my shell prompt, not back to the irb shell. the method should return true, ideas ?
<mizaki> Will WEBrick work with heroku?
<mizaki> or should I just go ahead and get unbuntu
jasonw22 has joined #ruby
<havenwood> mizaki: Yeah, WEBrick works fine with Heroku though it's performance isn't great. You can also use a different webserver in development than you do in production. Unfortunately Ubuntu doesn't ship with latest stable Ruby but Brightbox does maintain packages for Ubuntu.
<havenwood> mizaki: Are you familiar with any particular GNU/LInux distro?
<havenwood> mizaki: If you're comfortable with Ubuntu I'd vote Brightbox package ruby2.2.
baroquebobcat has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
zenguy_pc has quit [Read error: No route to host]
<mizaki> not at all
lordkryss has quit [Quit: Connection closed for inactivity]
<mizaki> I'm new to the world of programming...
jasonw22 has quit [Client Quit]
commondream has quit [Ping timeout: 264 seconds]
<havenwood> mizaki: Fedora, ArchLinux and other distros ship with a nice latest stable Ruby available via the package manager.
jasonw22 has joined #ruby
devdazed has joined #ruby
ruv has joined #ruby
<havenwood> mizaki: Vagrant can be a quick way to get going: https://www.vagrantup.com/
baroquebobcat has quit [Client Quit]
<havenwood> mizaki: If you want to just explore, I think you'll be fine using WEBrick on Windows. For the long run switching to a BSD or GNU/LInux box will probably be an easier and more fruitful path.
<jasonw22> havenwood: same Errno 35 after reboot :-(
<havenwood> passbe1: exec replaces the process, so there's no old process to go back to
<havenwood> jasonw22: eek
bayed has quit [Quit: Connection closed for inactivity]
<passbe1> havenwood: ahh ok, so inside my method should i use the backticks method or something else ?
tlarevo has joined #ruby
marr has quit []
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kahunaio has quit [Quit: Lost terminal]
<havenwood> passbe1: Yeah, if you just need stdout Kernel#` sounds good.
dgutierrez1287 has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
<passbe1> havenwood: ok cheers, will give that a whilr
<passbe1> whirl*
mois3x has quit [Quit: mois3x]
<havenwood> passbe1: If you want stdin and stdout there's IO::popen or for more options see Open3.
<quazimodo> if I have class Foo < Hash
<quazimodo> how do I prepopulate it with data in def initialize
<quazimodo> def initialize; self[:zed] = "zed", self[:bar] = "bar"; end
<quazimodo> ?
<havenwood> passbe1: Open3 lets you do stdout and stderr separately or merged. Lots of options.
<quazimodo> or do we have some sort of @object
effeeee has joined #ruby
<effeeee> Hey,
bruno- has quit [Ping timeout: 246 seconds]
gkra_ has joined #ruby
<effeeee> how bad of an idea would it be to pass along state in an exception? for example have an exception, that holds a list with all errors, that occured during a computation
scripore has quit [Quit: This computer has gone to sleep]
addisonh has joined #ruby
Rickmasta has joined #ruby
<passbe1> havenwood: i really just want to know if it fails or not which is why i was chasing the boolean return type of exec
dgutierrez1287 has joined #ruby
<havenwood> passbe1: Kernel#system
addisonh has left #ruby [#ruby]
<quazimodo> idno
scripore has joined #ruby
<passbe1> ah thats what i want! cheers havenwood
gkra_ is now known as gkra
dgutierrez1287 has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
yoongkang has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
wallerdev has quit [Ping timeout: 275 seconds]
zenguy_pc has joined #ruby
yoongkang has joined #ruby
<havenwood> _blizzy_: So is the Faraday requests you want to make in parallel?
<havenwood> is it the*
<_blizzy_> havenwood, actually, I figured it out. :P thanks for the earlier help.
<_blizzy_> it was something completely different to my question.
<havenwood> _blizzy_: Ah, what was it?
Soda has joined #ruby
<_blizzy_> havenwood, well, I figured out I didn't need to use threads or fibers.
<_blizzy_> when I could just store things in a hash.
jackjackdripper has quit [Quit: Leaving.]
djellemah_ has joined #ruby
<havenwood> _blizzy_: Typhoeus is great if you haven't checked it out. It's one of the adapters Faraday supports: https://github.com/lostisland/faraday/wiki/Parallel-requests
<_blizzy_> havenwood, thxs for the link.
amclain has joined #ruby
weaksauce has quit [Ping timeout: 276 seconds]
baxx has quit [Ping timeout: 246 seconds]
<havenwood> _blizzy_: Yeah, a Hash is threadsafe in CRuby because of the GVL but for non-GVL implementations you'll want to synchronize Hash read and write access with a Mutex lock.
<havenwood> Or use a Queue.
<_blizzy_> havenwood, oh ok. thxs. :)
djellemah has quit [Ping timeout: 250 seconds]
choke has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
<havenwood> _blizzy_: You're welcome. I keep forgetting you're using websockets... Interesting idea! Just use Faraday and drop RestClient.
<_blizzy_> havenwood, ok.
baroquebobcat has joined #ruby
workmad3 has joined #ruby
choke has quit [Client Quit]
Yiota has joined #ruby
<havenwood> _blizzy_: If you want an adventure, implement the same with DRb and Rinda::TupleSpace from Ruby's stdlib.
choke has joined #ruby
<_blizzy_> havenwood, hmm.
choke has quit [Read error: Connection reset by peer]
deric_skibotn has quit [Ping timeout: 264 seconds]
jasonw22 has quit [Quit: Lingo: www.lingoirc.com]
bb010g has joined #ruby
rubie has joined #ruby
rubie has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 265 seconds]
<_blizzy_> thxs for the links, havenwood.
<havenwood> _blizzy_: de nada
workmad3 has quit [Ping timeout: 272 seconds]
jasonw22 has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nahtnam has joined #ruby
JoshL has quit []
dstarh has joined #ruby
arup_r has joined #ruby
iamninja has quit [Quit: WeeChat 1.2]
arup_r has quit [Remote host closed the connection]
xcesariox has joined #ruby
weaksauce has joined #ruby
toretore has quit [Quit: Leaving]
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
datanoise has joined #ruby
Rollabunna has joined #ruby
yqt has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
weaksauce has quit [Ping timeout: 246 seconds]
thiesen has joined #ruby
weaksauce has joined #ruby
nobitanobi has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
thiesen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mizaki has quit [Quit: Page closed]
<jasonw22> havenwood: I've managed to narrow my problem down to this traceback: https://gist.github.com/jasonw22/192cd980c2a0addbf08a
<jasonw22> basically 'clang --version' starts up hundreds of Python processes until it can't fork any more and fails
<jasonw22> any use of clang does the same thing
shadoi has quit [Quit: Leaving.]
avahey has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has quit [Remote host closed the connection]
blackmes2 has quit [Quit: WeeChat 1.2]
<havenwood> Python zombie processes?
Ropeney has joined #ruby
<jasonw22> Python processes. dunno why clang is forking them. they die when the traceback happens
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> jasonw22: what does "file" tell you about the clang binary?
starfox_sf has quit [Read error: Connection reset by peer]
<jasonw22> eam: file /usr/bin/clang
<jasonw22> . /usr/bin/clang: Mach-O 64-bit executable x86_64
drewo has joined #ruby
<eam> what about /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
freerobby has joined #ruby
<jasonw22> it says: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang: a python script text executable
<eam> so there's your problem
<eam> what's in it?
<eam> that *should* be a Mach-O 64-bit executable
TheHodge has quit [Quit: Connection closed for inactivity]
<havenwood> jasonw22: Where clang once was a snake now resides.
<jasonw22> first three lines of the python script are
<jasonw22> #!/usr/bin/env python
<jasonw22> # This is just clang proxy. Actual clang is in clang.backup
<jasonw22> # == CLANG_PROXY ==
nveselinov has quit [Quit: Connection closed for inactivity]
dorei has quit []
<eam> so you've got something funny installed - probably reinstall xcode
<eam> figure out why something installed a clang proxy on you (which doesn't work)
djellemah_ has quit [Ping timeout: 276 seconds]
<havenwood> Zombie snakes!
<jasonw22> how irritating
<jasonw22> but thank you eam, much appreciated
NeverDie has joined #ruby
<eam> the tipoff is that the python error mentioned line 92 of bin/clang
<eam> which means the python interpreter thought it was actually running on that file (and it probably knows what it's talking about)
serivich has quit [Ping timeout: 265 seconds]
wildroman2 has quit [Remote host closed the connection]
rubie has joined #ruby
dopie has joined #ruby
avahey has joined #ruby
minmax has joined #ruby
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkang has quit [Remote host closed the connection]
mark[oz] has joined #ruby
<havenwood> quazimodo: class HashIsh < Hash; def initialize; self.merge!({zed: 'zed', foo: 'bar'}); super end end; HashIsh.new
sarmiena_ has quit [Quit: sarmiena_]
<havenwood> >> class HashIsh < Hash; def initialize; merge!({zed: 'zed', foo: 'bar'}); super end end; HashIsh.new
<ruboto> havenwood # => {:zed=>"zed", :foo=>"bar"} (https://eval.in/385874)
<jasonw22> eam: that script turns out to be dyci-clang.py which comes with XCode Dynamic Code Injection plugin, which i ended up installing as a result of playing with http://audiokit.io/playgrounds/
<jasonw22> mystery solved
Xiti has quit [Quit: Xiti]
jasonw22 has quit [Quit: Lingo: www.lingoirc.com]
Yiota has joined #ruby
bruno- has joined #ruby
<eam> aha
<havenwood> quazimodo: You might also want to allow an #initialize default argument we well. Without parens the arg and any block will be passed to super.
<havenwood> as well*
baweaver has joined #ruby
<havenwood> Was up one row and to the right one column on my keyboard. >.>
<havenwood> Back in line fingers!
transiency has quit [Ping timeout: 252 seconds]
FernandoBasso has quit [Quit: WeeChat 1.2]
<Derasi> I'm looking for help with Devise. Should the Devise user model handle profile pages for each user, or should a separate model be created for handling profile pages?
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pontiki has joined #ruby
fabrice31 has joined #ruby
EllisTAA has joined #ruby
zacts has joined #ruby
<pontiki> hi
<zacts> ruby my dear
tlarevo has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
tlarevo has joined #ruby
freerobby has quit [Quit: Leaving.]
Xiti has joined #ruby
<freedrull> rack 1.6.3 and 1.6.4 were both released on june 18th? there's nothing in the HISTORY.md about it https://github.com/rack/rack/blob/master/HISTORY.md
fabrice31 has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
<havenwood> quazimodo: class HashIsh < Hash; def initialize object = nil, &block; merge!({zed: 'zed', foo: 'bar'}); object ? super : super(&block) end end
datanoise has joined #ruby
baweaver has quit [Remote host closed the connection]
centrx has quit [Quit: Shutting down, Please wait...]
tlarevo has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
c355E3B has quit [Quit: Connection closed for inactivity]
bronson has quit [Ping timeout: 246 seconds]
zenguy_pc has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Ping timeout: 256 seconds]
transiency has joined #ruby
zenguy_pc has joined #ruby
Channel6 has joined #ruby
<havenwood> ?rails Derasi
<ruboto> Derasi, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<freedrull> havenwood: oh thanks i see it now....
zenguy_pc has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
serivich has joined #ruby
TheNet has quit [Remote host closed the connection]
mark[oz] has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 272 seconds]
roa has quit [Changing host]
roa has joined #ruby
towski___ has quit [Remote host closed the connection]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hahuang65 has joined #ruby
Rollabunna has joined #ruby
tenseiten has joined #ruby
tenseiten has joined #ruby
TheNet has joined #ruby
cpruitt has joined #ruby
seitensei has quit [Ping timeout: 256 seconds]
cpruitt has quit [Client Quit]
eggoez has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
zenguy_pc has joined #ruby
metallicrwr has joined #ruby
metallicrwr is now known as yayfoxes_
konsolebox has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.2]
charliesome has joined #ruby
bronson has joined #ruby
freerobby has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 248 seconds]
sgambino has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
pdoherty has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
yayfoxes3 has joined #ruby
gambl0re has joined #ruby
spider-mario has joined #ruby
yayfoxes_ has quit [Ping timeout: 248 seconds]
drewo has quit [Quit: WeeChat 1.2]
djbkd has quit [Quit: My people need me...]
drewo has joined #ruby
yh has quit [Ping timeout: 276 seconds]
mois3x has joined #ruby
pontiki has quit [Remote host closed the connection]
pontiki has joined #ruby
hubcaps has joined #ruby
hubcaps has joined #ruby
yoongkang has joined #ruby
phizzbuzz has quit [Remote host closed the connection]
mois3x has quit [Client Quit]
bruno- has joined #ruby
Yzguy has joined #ruby
drewo has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
bronson has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
bruno- has quit [Ping timeout: 250 seconds]
tkuchiki_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
KrzaQ has quit [Disconnected by services]
KrzaQ has joined #ruby
towski_ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
theery has joined #ruby
Guest19173 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
brandon has joined #ruby
brandon is now known as Guest84916
scx has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
blue_deref has joined #ruby
EllisTAA has joined #ruby
NightMonkey has quit [Ping timeout: 264 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NightMonkey has joined #ruby
EllisTAA has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
Yiota has joined #ruby
scx has joined #ruby
droidburgundy has joined #ruby
dopie has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
Rollabunna has joined #ruby
mark[oz] has joined #ruby
bronson has joined #ruby
darkf has joined #ruby
laurentide has joined #ruby
Channel6 has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 248 seconds]
mark[oz] has quit [Ping timeout: 255 seconds]
yoongkang has quit [Remote host closed the connection]
mark[oz] has joined #ruby
yoongkang has joined #ruby
duderonomy has joined #ruby
icarus has quit [Quit: Lost terminal]
oo_ has quit [Remote host closed the connection]
framlinqp has joined #ruby
wmoxam has quit [Quit: leaving]
fedexo has joined #ruby
wildroman2 has joined #ruby
pontiki has quit [Quit: <poit>]
lavros has joined #ruby
framling has quit [Ping timeout: 252 seconds]
sdothum has quit [Ping timeout: 248 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 265 seconds]
wmoxam has joined #ruby
Contigi has quit [Quit: Leaving]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
shafox has left #ruby [#ruby]
tlarevo has joined #ruby
gix has joined #ruby
davedev24_ has quit []
sdwrage has joined #ruby
lavros_ has joined #ruby
Axy has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
mark[oz] has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
mark[oz] has joined #ruby
lavros has quit [Ping timeout: 264 seconds]
sdwrage has quit [Client Quit]
frem has quit [Quit: Connection closed for inactivity]
CloCkWeRX has quit [Ping timeout: 255 seconds]
djbkd has quit [Ping timeout: 244 seconds]
creakybones has quit [Ping timeout: 272 seconds]
commondream has joined #ruby
fabrice31 has joined #ruby
keen___________0 has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen___________0 has joined #ruby
towski_ has quit [Remote host closed the connection]
nettoweb has joined #ruby
Lucky_ has quit [Quit: Textual IRC Client: www.textualapp.com]
passbe1 has left #ruby ["WeeChat 1.2"]
commondream has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 244 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
nettoweb has quit [Client Quit]
ivanskie has joined #ruby
lavros_ has quit [Ping timeout: 265 seconds]
lavros has joined #ruby
towski_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Lucky_ has joined #ruby
markalanevans has joined #ruby
krz has joined #ruby
gianlucadv has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
icebourg has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
CloCkWeRX has joined #ruby
SOLDIERz has joined #ruby
dgutierrez1287 has joined #ruby
serivich has quit [Quit: Leaving]
Yzguy has quit [Quit: I'm sleeping, go away.]
tkuchiki has quit [Remote host closed the connection]
nobitanobi has joined #ruby
wildroman2 has joined #ruby
cabreraM516 has joined #ruby
eggoez has quit [Ping timeout: 272 seconds]
dgutierrez1287 has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
Rollabunna has joined #ruby
datanoise has quit [Ping timeout: 264 seconds]
eggoez has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<postmodern> anyone familiar with ruby's debug?
cabreraM516 has quit [Quit: Textual IRC Client: www.textualapp.com]
pdoherty has quit [Quit: Leaving]
Rollabunna has quit [Ping timeout: 248 seconds]
stardiviner has joined #ruby
stardiviner has quit [Changing host]
stardiviner has joined #ruby
tubuliferous_ has joined #ruby
sarmiena_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
droidburgundy has quit []
bkxd has quit [Ping timeout: 244 seconds]
GitGud has quit [Ping timeout: 246 seconds]
jacor has quit [Read error: Connection reset by peer]
toretore has joined #ruby
jacor has joined #ruby
peter_paule has joined #ruby
[k- has joined #ruby
arooni-mobile has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
ivanskie has quit [Read error: Connection reset by peer]
<mark[oz]> postmodern: I've used it
<mark[oz]> best to ask a specific question
<postmodern> mark[oz], why don't my break points break on methods i directly invoke
claw has joined #ruby
<postmodern> mark[oz], while within the debug console
<mark[oz]> yeah, not sure.
<postmodern> not the specific answer i was hoping for :(
peter_paule has quit [Ping timeout: 252 seconds]
framlinqp has quit [Remote host closed the connection]
yeticry has joined #ruby
husanu has quit [Remote host closed the connection]
husanu has joined #ruby
krz has quit [Ping timeout: 265 seconds]
icebourg has quit []
yoongkang has quit [Remote host closed the connection]
adamjleonard has quit [Quit: Leaving...]
sfarley has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
zeroDivisible has quit [Ping timeout: 256 seconds]
yoongkang has joined #ruby
bruno- has joined #ruby
GitGud has joined #ruby
oo_ has joined #ruby
RegulationD has joined #ruby
ta has quit [Read error: Connection reset by peer]
skade has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
theery has quit [Remote host closed the connection]
husanu has quit [Remote host closed the connection]
husanu has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
langlands has joined #ruby
wildroman2 has quit [Remote host closed the connection]
langland_ has joined #ruby
theery has joined #ruby
djbkd has joined #ruby
Ponyo has quit [Remote host closed the connection]
havenwood has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
hanmac has joined #ruby
andymememe has joined #ruby
gianlucadv has quit [Ping timeout: 264 seconds]
andymememe has quit [Client Quit]
langlands has quit [Ping timeout: 276 seconds]
haraoka has joined #ruby
husanu has quit [Remote host closed the connection]
TheNet has quit [Quit: Leaving...]
husanu has joined #ruby
oo_ has quit [Remote host closed the connection]
datanoise has joined #ruby
tercenya_ has joined #ruby
tercenya has quit [Ping timeout: 255 seconds]
nobitanobi has quit [Remote host closed the connection]
Rollabunna has joined #ruby
zacts has joined #ruby
BTRE has quit [Ping timeout: 264 seconds]
Contigi has joined #ruby
acke has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
jud has quit [Quit: Leaving]
kohgpat_ has joined #ruby
acke has quit [Ping timeout: 265 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
langland_ has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
theery has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
ChoiKyuSang has joined #ruby
stardiviner has quit [Ping timeout: 252 seconds]
Tempesta has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
freerobby has quit [Quit: Leaving.]
oo_ has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby
langlands has joined #ruby
<flughafen> MOIN
langland_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avahey has quit [Quit: Connection closed for inactivity]
langlands has quit [Ping timeout: 256 seconds]
yh has joined #ruby
<[k-> that's a really bad way to abbrev...
Rickmasta has joined #ruby
lxsameer has joined #ruby
aganov has joined #ruby
otherj has joined #ruby
x1337807x has joined #ruby
ReK2 has quit [Remote host closed the connection]
yh has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
krz has joined #ruby
<Radar> not really
<[k-> for this case, that is
yardenbar has joined #ruby
kies has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<Radar> It really isn't.
<Radar> isn't it french for morning or have I got my wires crossed again?
<[k-> but I'm not french!
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarmiena_ has quit [Quit: sarmiena_]
krz has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
BTRE has joined #ruby
langland_ has quit [Ping timeout: 276 seconds]
kohgpat_ has quit [Quit: leaving]
TTilus has joined #ruby
djbkd has quit [Quit: My people need me...]
jack_rabbit_ is now known as jack_rabbit
tractatus has joined #ruby
tractatus has left #ruby [#ruby]
sfarley has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 248 seconds]
<Aeyrix> flughafen: moin
psy_ has joined #ruby
dg-ratio1 has joined #ruby
<krowv> Anyone have a good recommendation for a site to get freely available icons for a ruby gtk application?
tlarevo_ has joined #ruby
commondream has joined #ruby
techsethi has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
ChoiKyuSang is now known as Tempesta
Soda has quit [Remote host closed the connection]
Lytol has joined #ruby
GitGud has quit [Ping timeout: 265 seconds]
dopie has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
tlarevo has quit [Ping timeout: 244 seconds]
Lytol has quit [Client Quit]
slumos has joined #ruby
commondream has quit [Ping timeout: 248 seconds]
sandstrom has joined #ruby
husanu has quit [Remote host closed the connection]
railsraider has joined #ruby
<Radar> krowv: Could you pick out the icons from font-awesome?
husanu has joined #ruby
<krowv> Possibly
khebbie has joined #ruby
<krowv> Radar, checking that sight out
<krowv> Aeyrix, I'll check that as well
<Aeyrix> :)
<krowv> I'm looking to make big buttons. like 90x90
arescorpio has quit [Quit: Leaving.]
Rollabunna has joined #ruby
kp666 has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
fsvehla has joined #ruby
bluOxigen has joined #ruby
revath has joined #ruby
casadei has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 244 seconds]
narcan has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Sypheren> Attention everyone
<Sypheren> The game
<Sypheren> This is all
mark[oz] has quit []
* sevenseacat just lost the game
ndrei has quit [Ping timeout: 248 seconds]
<Sypheren> sevenseacat, you hang out on #ruby too?
<sevenseacat> yep.
krz has joined #ruby
* [k- loses too...
<Sypheren> Figures XD
<[k-> I wish I didn't know the game
AlphaAtom has joined #ruby
<sevenseacat> I was winning for a long long time
vondruch has quit [Remote host closed the connection]
<Sypheren> One does not win the game
<Sypheren> One only postpones losing
<Sypheren> Only those who never heard of it can truly win
yfeldblum has quit [Remote host closed the connection]
<[k-> >;)
otherj has quit [Quit: .]
otherj has joined #ruby
<[k-> you must announce your loss each time you think of The Game
otherj has quit [Client Quit]
<[k-> and I just lost again
charliesome has quit [Quit: zzz]
arup_r has joined #ruby
<Sypheren> At some conventions this becomes a problem
<Sypheren> People screaming it
ttilley has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
ndrei has joined #ruby
arup_r has quit [Remote host closed the connection]
NightMonkey has quit [Ping timeout: 244 seconds]
olistik has quit [Remote host closed the connection]
sfarley has joined #ruby
gagrio has quit [Ping timeout: 248 seconds]
olistik has joined #ruby
oo_ has joined #ruby
baweaver has quit [Remote host closed the connection]
atom3 has quit [Ping timeout: 276 seconds]
Iskarlar has joined #ruby
atom3 has joined #ruby
hubcaps has quit [Ping timeout: 255 seconds]
gagrio has joined #ruby
<[k-> The Game is up
NightMonkey has joined #ruby
towski_ has quit [Remote host closed the connection]
arup_r has joined #ruby
olistik has quit [Remote host closed the connection]
Iskarlar has quit [Client Quit]
charliesome has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
revath has quit [Quit: Leaving.]
revath has joined #ruby
Dopagod has joined #ruby
Scroff has joined #ruby
oo_ has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
kies has quit [Ping timeout: 264 seconds]
tlarevo_ has quit [Ping timeout: 255 seconds]
krz has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: zzz]
roolo has joined #ruby
yh has joined #ruby
User458764 has joined #ruby
chinmay_dd has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tlarevo has joined #ruby
Nimf has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
Scroff has quit [Remote host closed the connection]
atom3 has joined #ruby
oo_ has joined #ruby
workmad3 has joined #ruby
tkrajcar has joined #ruby
acke has joined #ruby
yh has quit [Ping timeout: 276 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
htmldrum has quit [Quit: leaving]
workmad3 has quit [Ping timeout: 256 seconds]
troulouliou_dev has joined #ruby
fabrice31 has joined #ruby
tercenya has joined #ruby
tercenya_ has quit [Ping timeout: 264 seconds]
cjk101010_ is now known as cjk101010
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
laurentide has quit [Quit: Leaving]
hubcaps has joined #ruby
hubcaps has quit [Changing host]
hubcaps has joined #ruby
ndrei has joined #ruby
allenn has joined #ruby
allenn has joined #ruby
User458764 has joined #ruby
dgutierrez1287 has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
techsethi has quit [Remote host closed the connection]
yoongkang has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dopagod has quit [Ping timeout: 276 seconds]
Rollabunna has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
AlphaAtom has joined #ruby
krz has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
AlphaAtom has quit [Client Quit]
fantazo has joined #ruby
railsraider has quit [Quit: railsraider]
AlphaAtom has joined #ruby
revath has quit [Quit: Leaving.]
revath has joined #ruby
pyo_ has joined #ruby
gagrio has quit [Ping timeout: 248 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Cust0sLim3n has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
skade has joined #ruby
arup_r has quit []
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
yh has joined #ruby
<ddv> [k-: seriously that was funny in 1999 not in 2015 anymore
Nimf has quit [Read error: Connection reset by peer]
gagrio has joined #ruby
gagrio is now known as gagrio|MRG
Xeago has joined #ruby
ecksit has joined #ruby
k3asd` has joined #ruby
yh has quit [Ping timeout: 252 seconds]
tercenya_ has joined #ruby
alex88 has joined #ruby
baweaver has joined #ruby
towski_ has joined #ruby
code_ has quit [Ping timeout: 264 seconds]
tercenya has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
sinkensabe has joined #ruby
towski_ has quit [Remote host closed the connection]
dumdedum has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
code_ has joined #ruby
Cust0sLim3n has joined #ruby
Xeago has quit [Remote host closed the connection]
olistik has joined #ruby
yh has joined #ruby
arup_r has joined #ruby
sandstrom has joined #ruby
tercenya has joined #ruby
danielpclark has joined #ruby
tercenya_ has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
sameerynho has joined #ruby
awer has quit [Ping timeout: 256 seconds]
hal_9000 has quit [Read error: Connection reset by peer]
hal_9000 has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
Prawnzy has quit [Ping timeout: 252 seconds]
sfarley has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
icarus has joined #ruby
rdark has joined #ruby
pwnz0r has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
vasilakisfil__ has joined #ruby
icarus has quit [Read error: Connection reset by peer]
icarus__ has joined #ruby
krz has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby
techsethi has joined #ruby
<abyss> [k-: on ruby 2.2 works excellent. Thank you.
bayed has joined #ruby
bayed has quit [Changing host]
bayed has joined #ruby
soulcake has joined #ruby
denver has joined #ruby
joast has quit [Ping timeout: 244 seconds]
<[k-> okiedokie
tlarevo has quit []
terlar has joined #ruby
datanoise has quit [Ping timeout: 264 seconds]
tercenya_ has joined #ruby
withnale_ has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pathfinder has joined #ruby
tercenya_ has quit [Read error: Connection reset by peer]
msgodf has joined #ruby
tercenya has quit [Ping timeout: 277 seconds]
nhhagen has joined #ruby
tercenya has joined #ruby
denver has quit [Ping timeout: 276 seconds]
denver has joined #ruby
krz has joined #ruby
dcarmich has joined #ruby
white_bear has joined #ruby
Scroff has joined #ruby
bruno- has joined #ruby
livathinos has joined #ruby
icarus__ is now known as icarus
atom3 has quit [Ping timeout: 276 seconds]
atom3 has joined #ruby
baweaver_ has joined #ruby
spider-mario has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
commondream has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 256 seconds]
AlexAltea has quit [Ping timeout: 255 seconds]
tubuliferous_ has joined #ruby
Hounddog has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
atom3 has joined #ruby
spider-mario has joined #ruby
arturaz has joined #ruby
Ikares has joined #ruby
<arturaz> Hey there. I'm encountering this weird bundler error where the versions are the same. Anyone has encountered it? https://gist.github.com/anonymous/8a5e618c874d461c2d80
revath has quit [Read error: Connection reset by peer]
TheHodge has joined #ruby
revath has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
tesuji has joined #ruby
tesuji has joined #ruby
<arturaz> nevermind, solved, it was that I was using ruby bundler, not jruby bundler
Hounddog has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
c0m0 has joined #ruby
Hounddog has joined #ruby
fsvehla has quit [Quit: fsvehla]
khebbie has quit [Ping timeout: 276 seconds]
senayar has quit [Remote host closed the connection]
<ljarvis> moin
ta_ has joined #ruby
spider-mario has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
Cust0sLim3n has quit [Ping timeout: 244 seconds]
yh has quit [Ping timeout: 250 seconds]
<flughafen> moin ljarvis
Pathfinder has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
ponga has joined #ruby
Xeago has joined #ruby
khebbie has joined #ruby
Pathfinder has joined #ruby
ttilley has joined #ruby
Xeago has quit [Remote host closed the connection]
<adaedra> moin ljarvis und flughafen
<ljarvis> i need new speakers
tvw has joined #ruby
Xeago has joined #ruby
wildroman2 has joined #ruby
ttilley has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
hubcaps has quit [Quit: Lost terminal]
tesuji_ has joined #ruby
micmus has joined #ruby
timonv_ has joined #ruby
Aswebb_ has joined #ruby
jinie_ is now known as jinie
fabrice31_ has joined #ruby
tesuji has quit [Ping timeout: 276 seconds]
timonv_ has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
zeroDivisible has joined #ruby
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
timonv^ has joined #ruby
yfeldblum has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<yorickpeterse> morning
<flughafen> yo adaedra
<flughafen> ljarvis: what kind of speakers
DLSteve has joined #ruby
Jackneill has joined #ruby
<zenspider> arturaz: that's a _confusing_ error message. Ugh.
fabrice31_ has quit [Remote host closed the connection]
<zenspider> bundler has been my enemy all day
<arturaz> yeah, ruby isn't my favorite these days
fabrice31 has joined #ruby
CustosLimen has joined #ruby
senayar has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
<flughafen> arturaz: you take that back!
<arturaz> why?
Scroff has quit []
pwnz0r has quit [Ping timeout: 276 seconds]
Jackneill has joined #ruby
<zenspider> bundler != ruby
psy_ has quit [Ping timeout: 248 seconds]
<zenspider> ruby isn't the problem, bundler is
Scroff has joined #ruby
Xeago has quit [Remote host closed the connection]
timonv^ has quit [Ping timeout: 272 seconds]
RegulationD has quit [Ping timeout: 248 seconds]
Zai00 has joined #ruby
dg-ratio1 has quit [Remote host closed the connection]
dg-ratio1 has joined #ruby
langlands has joined #ruby
baweaver_ has quit [Remote host closed the connection]
marr has joined #ruby
Xeago has joined #ruby
jmhmccr has quit [Quit: Connection closed for inactivity]
jacor has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
ahmetkapikiran has joined #ruby
jacor has joined #ruby
Igorshp has joined #ruby
unshadow has joined #ruby
unshadow has quit [Client Quit]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jokke has quit [Ping timeout: 276 seconds]
MyMind has joined #ruby
jokke has joined #ruby
<Ikares> Hey, I was wondering, does @ mean a local variable and does $ mean a global variable? I'm used to TorqueScript
<heftig> Ikares: $ are globals, @ are instance variables (associated with the current self)
<heftig> Ikares: locals have no sigil
<Ikares> Ah, thanks
Sembei has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
x44x45x41x4E has joined #ruby
<heftig> Ikares: identifiers starting with [a-z_] are locals or method calls; they're locals as soon as the parser encounters them on the left side of an assignment
<jhass> there are also @@class_vars though their usecases are rare
Igorshp has quit [Remote host closed the connection]
<heftig> they're terrible
<jhass> finally Constants are starting with [A-Z]
quazimodo has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
contradictioned has quit [Ping timeout: 246 seconds]
rubie has quit [Remote host closed the connection]
markalanevans has quit [Quit: markalanevans]
Rollabunna has quit [Ping timeout: 248 seconds]
codecop has joined #ruby
micmus has quit [Ping timeout: 264 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
gagrio|MRG has quit [Ping timeout: 244 seconds]
spider-mario has quit [Remote host closed the connection]
ahmetkapikiran has quit [Ping timeout: 276 seconds]
chthon has joined #ruby
workmad3 has joined #ruby
ahmetkapikiran has joined #ruby
techsethi has quit [Read error: Connection reset by peer]
spacemud has quit [Ping timeout: 264 seconds]
unsymbol has quit [Ping timeout: 276 seconds]
techsethi has joined #ruby
CustosLimen has quit [Ping timeout: 264 seconds]
DLSteve has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
contradictioned has joined #ruby
platzhirsch has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
<jesterfraud> jhass, don't class level hooks etc. use @@vars?
<jhass> what do you mean?
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
soulcake has joined #ruby
DLSteve has quit [Client Quit]
quimrstorres has joined #ruby
joonty has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
gagrio|MRG has joined #ruby
<jesterfraud> like before_action :blah
<jesterfraud> has to store those somewhere, right?
<jesterfraud> (Rails example)
yh has joined #ruby
<apeiros> doesn't need to be @@cvars
<jhass> yes, typically you'd use class level @ivars
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jesterfraud> and they'd carry over to each instance of that class?
weaksauce has quit [Ping timeout: 264 seconds]
<jesterfraud> if so, what IS the legitimate use of @@cvars?
unsymbol has joined #ruby
<ljarvis> they're accessed outside of any instance of the class. You refer to them directly on the class itself (which, is an instance of Class)
<jesterfraud> right
<jesterfraud> I obviously need to read up a bit more
CustosLimen has joined #ruby
spacemud has joined #ruby
workmad3 has joined #ruby
bkxd has joined #ruby
arup_r has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 255 seconds]
langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panga has joined #ruby
djellemah has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
blue_deref has quit [Quit: bbn]
<yorickpeterse> welp, TIL I still have 3 weeks of holiday time left unclaimed
<yorickpeterse> <bosswoman> so Yorick I've checked your contract stuff for the renewal next month, you still have 3 weeks of unclaimed holidays
timonv_ has quit [Quit: Leaving...]
<yorickpeterse> guess that will be 3 weeks of FOSS at home :D
<jesterfraud> :D
<yorickpeterse> or taking off Friday for the next 15 weeks
<yorickpeterse> the possibilities are endless
revath has quit [Quit: Leaving.]
<yorickpeterse> well, I still have like 7 days for this year
revath has joined #ruby
timonv has joined #ruby
ponga has quit [Ping timeout: 248 seconds]
panga is now known as ponga
<tbuehlmann> yorickpeterse, I'm gone for 3 weeks in august, you could have my flat :p
<yorickpeterse> why would I have yours? I have my own
<yorickpeterse> mine even comes with a cat
luzidco has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Scrofff has joined #ruby
wildroman2 has joined #ruby
<tbuehlmann> well, I could ask, why would you go to south korea? going places
<yorickpeterse> yeah but you don't live in South Korea do you?
sevenseacat has quit [Quit: Me dun like you no more.]
<tbuehlmann> right, it's just germany
<yorickpeterse> meh, Netherlands > Germany
<tbuehlmann> and SK > Netherlands? :D
Scroff has quit [Ping timeout: 252 seconds]
ghostpl has joined #ruby
AlexRussia has joined #ruby
multi_io has quit [Ping timeout: 256 seconds]
<yorickpeterse> Cuisine wise, yes
revath has quit [Ping timeout: 255 seconds]
User458764 has joined #ruby
multi_io has joined #ruby
<yorickpeterse> Also the women are better, but that might just be my hormones talking
<tbuehlmann> :)
<adaedra> .
techsethi_ has joined #ruby
techsethi has quit [Ping timeout: 246 seconds]
techsethi_ is now known as techsethi
avat has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
polysics has joined #ruby
oo_ has quit [Remote host closed the connection]
lele has quit [Ping timeout: 272 seconds]
RandyT_ has joined #ruby
RandyT has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
<avat> What is the best tool to schedule a job 10 days later? I'm looking for simplest tool which won't loose scheduled jobs on restart
<bnagy> cron
Pumukel has joined #ruby
AlexAltea has joined #ruby
<chris2> at
railsraider has joined #ruby
<avat> But I have to store this particular job details somewhere for 10 days. Should I use Redis?
Rollabunna has joined #ruby
lokulin_ has quit [Changing host]
lokulin_ has joined #ruby
<chris2> in the command line you pass to at :P
DLSteve has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
lokulin_ is now known as lokulin
alex88_ has joined #ruby
datanoise has joined #ruby
arup_r has joined #ruby
<jhass> if you like redis and already have something like resque or sidekiq running, there are plugins for them that do that
<avat> Any tutorial how to use at with Sinatra?
<chris2> if you have a certain frequency of jobs, probably use some "real" queue
<chris2> but you asked for the simplest tool :P
oo_ has quit [Remote host closed the connection]
<avat> OK I guess I will need something more then :)
nini1294 has joined #ruby
fabrice31_ has joined #ruby
<jhass> maybe describe your actual usecase
<avat> Currently I'm using rufus-scheduler, but I will loose all jobs on update (beacuse I need to restart sinatra server)
techsethi has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 248 seconds]
alex88 has quit [Ping timeout: 246 seconds]
tubuliferous_ has joined #ruby
<avat> Or when admins do some maintenance and they will restart a machine. So I guess I need something which stores queue and after restart picks it again and runs a job when time comes
alex88_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
alex88 has joined #ruby
bronson has quit [Remote host closed the connection]
<avat> Resque then?
fabrice31 has quit [Ping timeout: 272 seconds]
<jhass> you didn't give your usecase, we can't make clear recommendations
datanoise has quit [Ping timeout: 276 seconds]
terlar has joined #ruby
techsethi has joined #ruby
krz has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 276 seconds]
fantazo has quit [Ping timeout: 250 seconds]
langlands has joined #ruby
rubie has joined #ruby
<avat> Here is my current code snippet: https://gist.github.com/ZyzioZiom/e2630bf20a031dbe593e
Pupeno has joined #ruby
al2o3-cr has joined #ruby
<jhass> do you need it that precise?
valkyrka has joined #ruby
<jhass> I'd setup an hourly job that goes over the Trials, filters them by created_at <= now-10d and does the check
x0f has quit [Ping timeout: 252 seconds]
<jhass> that way you'll never loose jobs and never overrun any queue
unsymbol has quit [Ping timeout: 276 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unsymbol_ has joined #ruby
michael_mbp has quit [Excess Flood]
unsymbol_ has quit [Client Quit]
keen___________0 has quit [Read error: Connection reset by peer]
unsymbol has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
commondream has joined #ruby
<avat> It doesnt need to be very precise. Thanks jhass, maybe I'll try this way
<workmad3> jhass: I'd be tempted to do it daily personally... so Trials are activated at, say, 7a.m EST 10 days from then
keen___________0 has joined #ruby
revath has joined #ruby
<workmad3> but yeah, cron jobs or clockwork is a good way to handle timing-insensitive jobs like that, without the mechanics of a queue providing more points of failure
michael_mbp has joined #ruby
<effeeee> how bad of an idea would it be to pass along state in an exception? for example have an exception, that holds a list with all errors, that occured during a computation
ttilley has joined #ruby
<jhass> always has the sound of doing flow control with them to me
n008f4g_ has quit [Ping timeout: 255 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
x0f has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
<Fluent_> Recommendations on what to change?
commondream has quit [Ping timeout: 255 seconds]
krz has joined #ruby
ytti has joined #ruby
two-gun has joined #ruby
<Fluent_> Seen here: http://repl.it/tlc/2
<adaedra> variable names should not begin by a capitalized letter
CustosLimen has quit [Ping timeout: 272 seconds]
<Fluent_> That's a constant
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
<Fluent_> It doesn't change
olistik has quit [Remote host closed the connection]
<workmad3> Fluent_: what exactly are you asking?
ttilley has quit [Ping timeout: 252 seconds]
<adaedra> Cards change at l3 and l57
lordkryss has joined #ruby
revath has left #ruby [#ruby]
<adaedra> and 53 too
tercenya has quit [Read error: Connection reset by peer]
ghostpl has quit [Remote host closed the connection]
<Fluent_> What
ttilley has joined #ruby
<Fluent_> That doesn't change it
ttilley has quit [Changing host]
ttilley has joined #ruby
<Fluent_> workmad3, I was just looking for constructive criticism is all
<adaedra> That changes the content
<adaedra> also, l57, you use map without getting the content back, I think each would be more appropriate
<Fluent_> line 57 is a method call, it doesn't change any value
<workmad3> Fluent_: not sure I can provide constructive criticim on it :P
<workmad3> *criticism
icarus has quit [Quit: Lost terminal]
<Fluent_> Well it does, but it doesn't change any of the constants
<Fluent_> It changes a global variable
<adaedra> meh, lines are not numbered the same way in your second link
tercenya has joined #ruby
<Fluent_> Yeah, I'm on the github
<Fluent_> line 57 changeCard
<Fluent_> Doesn't change a constant's value
<adaedra> so 4, 58 and 54
lkba has joined #ruby
ghostpl has joined #ruby
<Fluent_> That's a hash
<Fluent_> and it changes the key value pair
<adaedra> yes
<Fluent_> I think I could define it different
<Fluent_> Just make the hash global
<Fluent_> not a constant :D
<workmad3> Fluent_: it's all pretty poorly structured, your code is shouting out for a class to handle things, it's very 'scripty', makes odd use of top-level ivars...
<Fluent_> Good point
fabrice31_ has quit [Remote host closed the connection]
<Fluent_> Hmmm, what are ivars?
<adaedra> IMO a constant could be frozen at its declaration – constant
<workmad3> @ivar
fabrice31 has joined #ruby
<Fluent_> I should wrap it up in a class
charliesome has joined #ruby
<Fluent_> Oh, globals?
<workmad3> Fluent_: no, an ivar is not a global
<adaedra> and a x? method should return true or false, not do something on its own and return something – even if I see what you do
<Fluent_> I just call those things global variables
<workmad3> Fluent_: a global is $global
two-gun_ has joined #ruby
<Fluent_> @var = 'foo'
<Fluent_> Ahh
<workmad3> Fluent_: you're wrong in your terminology then :P
<Fluent_> Yes, I am
<adaedra> (Yeah, that's nitpicking, I know)
<[k-> changeCard is camel case
<Fluent_> I think I recall that $global now
fabrice31 has quit [Remote host closed the connection]
<Fluent_> That it is
khebbie has joined #ruby
<Fluent_> I ride le camel
<Fluent_> You suggest _'s, right?
<adaedra> Same way, you use #select at l41 but don't use its return, you want #each
<workmad3> Fluent_: if I was writing a quick, write-only script to handle a specific class, it might look like your code... but I'm guessing you're not looking to have quick & dirty code to handle simple automation tasks, you're wanting to write good, well structured ruby code, yeah?
two-gun has quit [Ping timeout: 244 seconds]
Synthead has quit [Ping timeout: 244 seconds]
BrianBoyko1 has joined #ruby
<workmad3> Fluent_: snake_case is idiomatic ruby for methods and variables, CamelCase is reserved for class names and sometimes constants, and sometimes constants are written as SCREAMING_SNAKE_CASE
<Fluent_> Well, I just threw this together. I have no need to write well structured code, but I was more curious of what the transition process would be like from a scripted piece of code to something professional in nature
<Fluent_> I see
luzidco has quit []
<adaedra> mmmh, \r\n
<Fluent_> https://github.com/ninjex/confabulation This is probably the most 'professional' code I have wrote lol
<Fluent_> and it's still meh
<workmad3> Fluent_: well, to answer your original question then - what I'd change to write it as a cleanly structured piece of ruby code is "everything" ;)
RegulationD has joined #ruby
<Fluent_> lol
<Fluent_> Thanks
<workmad3> adaedra: yeah, good point... no need to do \r\n in ruby
<workmad3> ever
<adaedra> If i read changeCard correctly, you treat o as no and s as yes, right?
<Fluent_> Yep, that would do it
<Fluent_> Not a perfect solution, but I did that quickly to accept any input from that is inside 'yes'
<Fluent_> so if the user types: 'y' or 'yes' it works
<adaedra> That disturbs me for two reasons: you ask explicitely for y/n, and in my mind, o is yes
<adaedra> but I see your point
<Fluent_> o is not yes o would be no
<adaedra> maybe use start_with?, which would accept y, ye and yes, and n and no
<workmad3> Fluent_: o as in 'ok'
<Fluent_> Oh, in your mind
<adaedra> o as in oui :p
chinmay_dd has quit [Remote host closed the connection]
<Fluent_> o is yes, I read that wrong
OrbitalKitten has joined #ruby
<workmad3> adaedra: ah yeah, weird foreign languages too :P
<Fluent_> There is a start_with method, I didn't know that
<Fluent_> Nice
<Fluent_> I'm definitely going to be using that
<adaedra> workmad3: that's what I'm used too ([o/n]), but ok works too, didn't think of that.
<workmad3> adaedra: [o/c] would be more typical when using ok (as in ok, cancel)
RegulationD has quit [Ping timeout: 248 seconds]
<adaedra> you have an extra set of parenthesis on line 5
<Fluent_> Thanks for the tips guize
<yorickpeterse> usually CLIs use [y/n]
quimrstorres has quit [Remote host closed the connection]
<yorickpeterse> or [yes/no]
<Fluent_> You are my new best acquaintances
<workmad3> yorickpeterse: I want to write one that using '[cancel/continue]' now, just to break a `starts_with?` call :D
<workmad3> *uses
<adaedra> :D
<adaedra> Abort, Retry, Ignore?
rafaelsales has quit [Remote host closed the connection]
<Fluent_> I don't know if it's just me, adaedra but I like to wrap my mathematical operations in parenthesis like that
CustosLimen has joined #ruby
<workmad3> "This will make your computer explode. [C]ancel or [C]ontinue?"
<adaedra> Also Fluent_
Paradox has joined #ruby
<adaedra> If I enter nothing at your prompt, it asks me again, right?
<adaedra> (still changeCard)
<[k-> the difference between good code and bad code was demonstrated yesterday... 160min reduced to 5 seconds
<Fluent_> I could do: rand(0..hash.size) -1 I just think: (rand(0..hash.size) -1) looks neater
Rickmasta has joined #ruby
<adaedra> I'd remove the external parenthesis and put a space before the 1
<Fluent_> If you input nothing, it will not
<Fluent_> It will go with 'no' basically
<workmad3> Fluent_: hash.keys.sample would be nicer still
<adaedra> Yet the y is capitalized in your prompt, which leads me to thing yes is the default option
<[k-> you can show the default option using "(N) >"
<workmad3> Fluent_: e.g. WinningCard = Cards.keys.sample <-- no need for WinningCardIndex anymore
<Fluent_> workmad3, nice :D
<Fluent_> Thanks for the tip
<Fluent_> Which eliminates more code
rafaelsa_ has joined #ruby
<workmad3> Cards = %w(K Q A).shuffle.zip(['n'] * 3).to_h <-- that also eliminates some code
Synthead has joined #ruby
<Fluent_> That will make my brain hurt
<Fluent_> Time to see what that does
rritoch has joined #ruby
gloscombe has joined #ruby
<Fluent_> #=> {"Q"=>"n", "A"=>"n", "K"=>"n"}
<Fluent_> Nice
d10n-work has quit [Quit: Connection closed for inactivity]
chinmay_dd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<Fluent_> Should I use the .between? method too?
<Fluent_> for if @userIndex < 1 || @userIndex > 3
<workmad3> Fluent_: you could also probably make your code much simpler if you did `Cards = %w(K Q A); WinningCard = Cards.sample` and had users choose K, Q or A, rather than a 'face down' card with 1, 2 and 3
<adaedra> you could
phutchins has joined #ruby
arup_r has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
cir0x has joined #ruby
<Fluent_> Then the user will know the card they are choosing, workmad3...
<Fluent_> If I choose A, I know I get A, I don't want that
<workmad3> Fluent_: yes, but they don't know which card is the winner
<workmad3> Fluent_: seeing as you randomly choose a card to 'win', knowing the card isn't actually any detriment
serivich has joined #ruby
<workmad3> Fluent_: at the moment, you're basically doing "Pick a number, 1 2 or 3, one of which is randomly the 'winner'" but pushing it through a mapping of 1,2,3 => 0,1,2 => random_order(Q, K, A)
chinmay_dd has joined #ruby
olistik has joined #ruby
<workmad3> Fluent_: so you're basically doing 2 levels of indirection to map a random 'winning' number onto a random 'winning' card, which makes your code correspondingly more complicated for no actual gain
<Fluent_> Hmmm
<Fluent_> I see
lele has joined #ruby
Rollabunna has joined #ruby
jamesbrink has joined #ruby
two-gun has joined #ruby
arup_r_ has joined #ruby
joonty has quit [Quit: joonty]
<Fluent_> You guys are awesome
<Fluent_> Time for some coffee
two-gun_ has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
baxx has joined #ruby
dented42 has joined #ruby
two-gun has quit [Ping timeout: 265 seconds]
doublemalt_ has quit [Ping timeout: 246 seconds]
ponga has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
two-gun has joined #ruby
ponga has joined #ruby
anisha is now known as anarang
AlexAltea has quit [Ping timeout: 248 seconds]
quimrstorres has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
lva has joined #ruby
techsethi has quit [Ping timeout: 244 seconds]
datanoise has joined #ruby
bronson has joined #ruby
wildroman2 has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 246 seconds]
techsethi has joined #ruby
konsolebox has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 276 seconds]
cir0x has quit [Quit: Leaving.]
rodfersou has joined #ruby
dgutierrez1287 has joined #ruby
x0f has joined #ruby
datanoise has quit [Ping timeout: 244 seconds]
* flughafen fetches tea
sdothum has joined #ruby
bruno- has joined #ruby
* adaedra throws tea in the harbour
<ttilley> heh
<[k-> ah, the sea is so refreshing today!
<workmad3> adaedra: VIVA LA REVOLUTION!
<adaedra> VIVE*
<workmad3> heh, close enough... it's not like anyone cares if I spell french words correctly anyway ;)
<ttilley> my irc client displays that animated gif inline in chat
<ttilley> it's glorious
<[k-> é*
<workmad3> adaedra: drats, I was also hoping I'd used the wrong gender pronoun for revolution :(
<[k-> É*
<adaedra> yes, é
<[k-> wait a minute, what is bonjour
<adaedra> Hello
<workmad3> VIVA LE RÉVOLUTION!
ZOMGITSABEAR1 has left #ruby [#ruby]
<adaedra> You can replace T by SS to be even more wrong
two-gun has quit [Ping timeout: 244 seconds]
<workmad3> [k-: the french word, or the apple network discovery protocol?
<[k-> anyone actually uses try_convert as suggested in rdocs?
<[k-> the french word, hello
bruno- has quit [Ping timeout: 250 seconds]
arup_r_ has quit []
* flughafen throws adaedra into harbour to fetch tea.
bruno- has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<effeeee> how bad of an idea would it be to pass along state in an exception? for example have an exception, that holds a list with all errors, that occured during a computation
Emeric has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<flughafen> or maybe i should demand adaedra boil the ocean to make me a big tea.
Emeric has quit [Client Quit]
<workmad3> flughafen: it'll be an interesting cuppa... are you normally fond of whale poop in your tea?
<[k-> you'd kill the corals!
commondream has joined #ruby
<flughafen> workmad3: loaded with antioxidants
<jhass> flughafen: workmad3 #ruby-offtopic misses you ;)
<[k-> think of the shark fins!
<shevy> think of the children
<[k-> there are aquariums for those type of people
ndrei has joined #ruby
<shevy> freedom for fish! humans into the aquariums
c355E3B has joined #ruby
<workmad3> shevy: screw that, the fish already have 2/3s of the earths surface for their playpen
<shevy> we are at war with them
<workmad3> jhass: I can't think why... anyone would think that discussions of whale-poop tea aren't relevant to ruby...
<jhass> right... my bad I guess
kp666 has quit [Remote host closed the connection]
<shevy> fish would code in ruby, if they'd have an underwater computer
<shevy> it also probably has to be a touchscreen rather than a keyboard interface
<[k-> no they won't, they need java first
<shevy> no please
<[k-> EnterpriseShit first
<shevy> no fish would want to code in java
<shevy> perhaps EnterpriseFish like that puff fish
<[k-> then the fishes won't advance
<shevy> that's why we declared war on them
<shevy> they just don't wanna evolve
<[k-> oh.
<shevy> we know of duck typing but have you ever heard of fish typing?
<workmad3> shevy: I have... it's when duck typing is particularly smelly
<yorickpeterse> I'm more a fan of cat typing
<[k-> ducks are fish!
<shevy> haha
<adaedra> >_>
<flughafen> [k-: is that because they float like wood?
<shevy> [k- ducks eat fish!
doertedev has joined #ruby
<[k-> hurhur
<yorickpeterse> if the fish quacks like a duck and walks like a duck it probably is a duck
<workmad3> witches weigh as much as a fish!
<shevy> and bread
<[k-> fish eat fish!
<shevy> I always wondered why ducks eat bread... it's not a natural food for them now is it?
<shevy> but people through bread pieces to them in a pond
<shevy> *throw
<workmad3> shevy: it's not like it's a natural food for us either :P
<yorickpeterse> shevy: Yeah it's not
commondream has quit [Ping timeout: 272 seconds]
<shevy> workmad3 true
<yorickpeterse> They can't digest it properly either
<workmad3> shevy: and yet sandwiches are delicious!
<yorickpeterse> so feeding them too much can actually cause health problems
<shevy> our natural food would be fruit... and fish :)
<yorickpeterse> and animals
<shevy> yeah
<yorickpeterse> take that vegans
<shevy> we use their energy so that we can code more ruby
<yorickpeterse> cows go in, code comes out
<workmad3> and root veg... and insects... and whatever else we could get our grubby little hunter-gatherer hands on!
<shevy> lol
<shevy> cows go in... code comes out... life of a programmer
ponga has quit [Quit: Leaving...]
wildroman2 has joined #ruby
<flughafen> shevy brings fish to the ducks
wildroman2 has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<[k-> code go in... more code comes out
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<workmad3> shevy: I'm personally very happy we're not stuck with 'natural' food... duck in hoi-sin sauce is too delicious to give up!
micmus has joined #ruby
wildroman2 has joined #ruby
<adaedra> I'm sure ducks prefer zsh
malinki has joined #ruby
<workmad3> [k-: Programmer - A machine for turning caffeine into bugs
<[k-> lel
<yorickpeterse> adaedra: not Fish shell?
<yorickpeterse> :>
<adaedra> that's the joke
Ropeney has joined #ruby
AlexAltea has joined #ruby
x44x45x41x4E has quit [Remote host closed the connection]
<workmad3> adaedra: how is it funny to state the simple truth that Zsh > *?
Rollabunna has joined #ruby
malinki has left #ruby [#ruby]
<adaedra> Come discuss that in offtopic :>
tkuchiki_ has quit [Ping timeout: 246 seconds]
<yorickpeterse> workmad3: that's what separates humans from the beasts: we have fine cuisine, they don't
<shevy> hmm
<shevy> some animals eat one thing, then something else
<yorickpeterse> I also have yet to find an actual use case for zsh
<shevy> like meat first, then vegetables
<yorickpeterse> or any shell that's not Bash
<shevy> or if they are sick due to foot, eat some plants that may help there
<shevy> the fish shell is quite interesting, at least it tries to do things differently. like those fancy colours
techsethi has quit [Ping timeout: 246 seconds]
<shevy> as you type :)
<shevy> zsh has RPROMPT so that makes it superior to bash alone
<shevy> but bash is simpler!
<flughafen> shevy: are you using zsh?
<shevy> nope, bash still
<workmad3> kill ruby<tab> | menu of all ruby pids to tab through and select
<workmad3> ^^ there we go, why I use zsh
<shevy> due to laziness; I acknowledge that zsh is the better shell, but I am the lazier person
<flughafen> i tried zsh for a little while, but i don't remember why i went back to bash
<izzol> https://gist.github.com/wolfedale/55d44396e1010aba4669 - anyone know what is wrong ? I'm trying to use rspec-dns but probbaly I'm doing something wrong :(
ndrei has quit [Ping timeout: 265 seconds]
<shevy> yeah somewhat similar to my case flughafen :)
<shevy> I think it had to do with the fact that I use ruby to generate my aliases
<shevy> it became unwieldy, and for some reason, the syntax for bash is not 100% identical to zsh; I get some strange errors, and I was too lazy to fix them
<flughafen> shevy: what are you using/
<shevy> aliases_rc:2246: bad option: -l
<shevy> aliases_rc:4133: no matches found: 256_colours=find /lib/terminfo /usr/share/terminfo -name *256*
<shevy> things like that
<jhass> ?ot shevy flughafen
<ruboto> shevy, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
ndrei has joined #ruby
<yorickpeterse> shit the police is here
<shevy> how do I invoke ruby
<shevy> I use bash
<flughafen> quick hide the weed
krz has quit [Read error: Connection reset by peer]
vasilakisfil has joined #ruby
vasilakisfil__ has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
doublemalt_ has joined #ruby
timonv has quit [Ping timeout: 277 seconds]
timonv has joined #ruby
<chris2> lol shevy. still have your 5kloc aliases file?
<izzol> ok, nevermind, I found the problem.
<flughafen> see jhass izzol figuure it out on his own. it's good that we burried his question
x0f has quit [Ping timeout: 252 seconds]
txdv has joined #ruby
ahmetkapikiran has joined #ruby
<izzol> flughafen: ;-)
<txdv> shevy: can you upload your alias file? :D
<jhass> izzol: share the solution though!
<izzol> jhass: I just deleted '.' on the end ;-)
dg-ratio1 has quit [Remote host closed the connection]
<jhass> ah
<jhass> bug IMO :P
<flughafen> izzol: make a pr for your gist, and then we'll review it
<jhass> the . is valid part of the name, most software just supports omitting it
dg-ratio1 has joined #ruby
<izzol> jhass: that's correct, but somehow rspec-dns is not supporting it
<jhass> izzol: I'd open an issue ;)
<jhass> or even look into fixing it
charliesome has quit [Quit: zzz]
Xeago_ has quit [Remote host closed the connection]
<izzol> jhass: yes, good idea
krz has joined #ruby
scripore has joined #ruby
x0f has joined #ruby
Xeago has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
<shevy> chris2 I am approaching 40.000 aliases!
<chris2> i'll buy you a sixpack of beer if you show me that file :P
Xeago has quit [Remote host closed the connection]
techsethi has joined #ruby
DaniG2k has joined #ruby
tubuliferous_ has joined #ruby
oo_ has quit [Remote host closed the connection]
two-gun has joined #ruby
Papierkorb has joined #ruby
Xeago has joined #ruby
<flughafen> shevy: huh?
<flughafen> is it in your github?
<shevy> look
<shevy> if it were made available
<shevy> you'd just laugh
Xeago has quit [Read error: Connection reset by peer]
<shevy> I can already see your curious grin
tubuliferous_ has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
<jhass> isn't it beautiful if people laugh?
ta has joined #ruby
<flughafen> shevy: has your alias taken off yet? nope?
<shevy> flughafen hmm
<shevy> flughafen that's a good question actually... if it's an alias I use a lot, there is a "return of investment"; but if I barely use an alias, then the time it takes to define it, like let's say 8 seconds or so, wouldn't be worth the investment
<flughafen> i make aliases or scripts for a lot of things.
<txdv> shevy: how can you have so many aliases
<txdv> how do they look like?
<flughafen> even ssh'ing to a machine
Synthead has joined #ruby
<shevy> txdv they are just aliases
<txdv> do you have aliases for "iwantapizzawithsalamiat5oclock"
<shevy> txdv hmm nah, that would usually happen through a ruby script then
Vardan has joined #ruby
<Vardan> hi all
<shevy> like I have a clock/alarm bell in ruby
<Vardan> people is it possible to run code on class load?
<yorickpeterse> I once wrote a script that would start VLC at 08:00 to play music because I was having problems with my phone's alarm
<jhass> Vardan: well, you can always reopen a class at any point, when would you consider a class "loaded"?
michael_mbp has quit [Excess Flood]
<shevy> Vardan well you tend to load a .rb file; but you can put code into the file; and methods into your class which you can call
<shevy> yorickpeterse I tend to use mplayer
<jhass> mmh, I once had a cronjob doing the same via mpd
<shevy> to start my alarm, I do like: "at 07:33:24" and it'll start then to play loud music
<adaedra> yorickpeterse: I had a script which put the computer to sleep, then, on time, woke it up and ran mpc play
Xeago has quit [Remote host closed the connection]
<shevy> I once had my computer crash due to an unrelated problem, and did not wake up and missed an early schedule, which sucked :(
<Vardan> ok, I want this, I have class A and class B, class B extends class A now I want that on class B load it do some code which in real written in class A :)
fabrice31 has joined #ruby
<jhass> Vardan: "load", you need to elaborate on what you mean by that
<shevy> Vardan yes put the code in that second file
<jhass> Vardan: do you want to run code when A is subclassed perhaps?
<shevy> you can check for direct-call, like through the commandline, via something like: if __FILE__ == $PROGRAM_NAME; or you could make it integrated into the behaviour of the second class, like a class method, and invoke that
<Vardan> in real I don't know what I mean by load :) be cause it is class in Rails app/models folder and I don't know how Rails load them
michael_mbp has joined #ruby
<shevy> aha
<jhass> Vardan: then remove the abstractions
<jhass> Vardan: explain what you want to do, with your real classes and why
diegoviola has joined #ruby
<Vardan> I think you know how rails generate class and instance method from DB table, now I want to have the same but own :)
<jhass> ideally illustrate with some code on gist.github.com
<Vardan> don't have any code yet :)
Xeago has joined #ruby
<shevy> matz is such a funny guy, look at the after-talk discussion near the end of the talk :) https://www.youtube.com/watch?v=bqWBB8-iEac
haraoka has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> Vardan: I think you want the inherited hook (in case of a parent class) or the included hook (in case of a included module). Also take a look at ActiveSupport::Concern
two-gun has quit [Quit: Lost terminal]
<jhass> shevy: btw all your friends are in #ruby-offtopic now ;)
[k-_ has joined #ruby
esplainisix has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
minmax has quit [Quit: WeeChat 0.4.3]
lavros has quit [Ping timeout: 248 seconds]
joonty has quit [Quit: joonty]
zack6849_ has quit [Ping timeout: 272 seconds]
lavros has joined #ruby
unshadow has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
adr3ana has joined #ruby
droidburgundy has joined #ruby
droidburgundy has quit [Remote host closed the connection]
dg-ratio1 has quit [Remote host closed the connection]
<shevy> ack
<shevy> they play unicode hangman :(
husanu has quit [Remote host closed the connection]
djbkd has joined #ruby
<shevy> though it's interesting to see that the hangman games have not stopped
<shevy> they just moved to another place :D
husanu has joined #ruby
dg-ratio1 has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
<flughafen> ;)
quazimodo has joined #ruby
adr3ana has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Read error: No route to host]
fabrice31_ has joined #ruby
<[k-_> we will do this until there is something to do
ponga has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
dg-ratio1 has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 255 seconds]
CustosLimen has quit [Ping timeout: 246 seconds]
dg-ratio1 has joined #ruby
hudsama has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
yh has quit [Ping timeout: 246 seconds]
DroidBur_ has joined #ruby
_blizzy_ has joined #ruby
CustosLimen has joined #ruby
ddarkpassenger has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
polyrob has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
<livcd> anybody has good Ruby/Rails rss feeds to share with me ?
<ponga> livcd: there is a seperate channel for rails
esplainisix has quit [Remote host closed the connection]
<ponga> i guess you'd get better answers from there
yfeldblum has quit [Ping timeout: 248 seconds]
<c355E3B> livcd: rubyflow is ok
<IceDragon> I LIVE
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polyrob has joined #ruby
dg-ratio1 has quit [Remote host closed the connection]
<livcd> ponga: well i have asked about Ruby as well
<ponga> ah hah
<ponga> sorry
dg-ratio1 has joined #ruby
Muhannad has joined #ruby
sdwrage has joined #ruby
Iskarlar has joined #ruby
<abyss> I have a file, there is a pattern like: patternline1\n patternline2. I'd like to check each line and if line == patternline2 then check previous line and if previous line == patternline1 then delete patternline1. How I can achieve that? Any help?
<abyss> I'd like to remove each line before update if that line (before) contain set insert_id
Aswebb_ has quit []
<[k-_> abyss: that looks like a nonsensical request
CamonZ has joined #ruby
<[k-_> abyss: i recommend a parser instead of regexp in this case
charliesome has joined #ruby
Soda has joined #ruby
<IceDragon> abyss: Iterate the stream using String#each_line and store the previous line
eric___ has joined #ruby
<abyss> IceDragon: yeah, but I have to back to last line somehow to delete it, yes?
<IceDragon> abyss: previous_line = nil; "patternline1\npatternline2".each_line { |s| check_line_for_match(s); previous_line = s; }
<IceDragon> oh in that case just use a result list, in which you push each line unto the list and pop it to remove the line
<[k-_> .each_line.each_with_index
Xeago has quit [Remote host closed the connection]
<[k-_> oh, poping works too
<[k-_> much more elegant than [-1]
<[k-_> :P
dg-ratio1 has quit [Remote host closed the connection]
eric___ has quit [Quit: Changing server]
<[k-_> /^(?<prev>)blahblahblah$/ would also work
dg-ratio1 has joined #ruby
<jhass> if you read the entire file into memory
<[k-_> actually it wouldn't
<[k-_> /\A(?<prev><newline>)blahblahblah\Z/m would also work
<IceDragon> jhass: I guess you could stream it, I usually just read whole files into memory and be done with it, never messed with IO too much :(
rubie has joined #ruby
<[k-_> does .each_line stream it?
<jhass> IO#each_line should
ericwood has joined #ruby
khebbie has joined #ruby
Xeago has joined #ruby
<[k-_> then it does
konsolebox has joined #ruby
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
ddarkpassenger has joined #ruby
konsolebox has quit [Max SendQ exceeded]
NeverDie has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
konsolebox has joined #ruby
<abyss> IceDragon: you mean that I should put whole file to array? And check if then line[-1].pop?
dfockler has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
<[k-_> abyss: you dont pop a string
cout_ is now known as cout
yayfoxes3 has quit [Quit: WeeChat 1.0.1]
hoov has joined #ruby
ta has quit [Remote host closed the connection]
ldnunes has joined #ruby
<abyss> [k-_: yeah, I mean I should put whole file to array and iterate that array and if find my example then array[-1].pop?
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-_> read the code again
<IceDragon> abyss: lemme gist an example; https://gist.github.com/IceDragon200/17999d51f1b34294846e
<[k-_> reason about what it does
elia has joined #ruby
<IceDragon> [k-_: What did I miss, disconnected there a bit
<[k-_> array[-1].pop
CloCkWeRX has joined #ruby
Guest54 has joined #ruby
<[k-_> ^ the code he thinks he should write
<[k-_> IceDragon: unused last_line
<IceDragon> I forgot to use it
<[k-_> u have to!
joast has joined #ruby
<shevy> to have u!
<[k-_> you must check if it matches pattern 1
<IceDragon> [k-_: I did it now
<IceDragon> Do I get a cookie?
<IceDragon> *~*
<abyss> [k-_: exactly is that I said, the whole file to array, yes?
<[k-_> I think someone should have an interactive session with him
<abyss> ;)
<[k-_> abyss: evaluate array[1]
theROUS is now known as theRoUS
<IceDragon> [k-_: touche`
<[k-_> what does it return
Muhannad_ has joined #ruby
<IceDragon> I saw what you did there
<[k-_> what did i do?
dstarh has joined #ruby
<[k-_> turdurrrr https://codebunny.io/
Muhannad has quit [Read error: Connection reset by peer]
x44x45x41x4E has joined #ruby
<abyss> lol
<[k-_> now someone should start a session and guide him along :D
<IceDragon> [k-_: Ah, I took it as an http joke off my cookie statement
* IceDragon read too far into the conversation
<IceDragon> orz
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<[k-_> you read very far
<abyss> [k-_: nevermind I did it in awk;p But I was just curious :)
<[k-_> dont you have some ruby to learn
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
jacor has quit [Read error: Connection reset by peer]
<abyss> btw [k-_ I've learnt ruby an half an year ago but because I didn't have any chalanges or whatsover I forgot a lot. Do you have an advice how to practise? Where or something - I'm not a programmer, I'm just an admin
yayfoxes_ has joined #ruby
jacor has joined #ruby
<abyss> ok "a lot" I forgot almost all;)
thelastinuit has joined #ruby
aryaching has joined #ruby
rritoch has quit [Quit: Leaving]
<IceDragon> abyss: I write ruby everyday, for everything, downloading cat pictures, randomly regenerating text documents, moving my audio samples around, deploying code, everything and anything, also games, which was my main motivation to use ruby
<workmad3> abyss: you could use ruby and chef to automate your sysadmin stuff ;)
rritoch has joined #ruby
Rickmasta has joined #ruby
x44x45x41x4E has quit [Ping timeout: 246 seconds]
<IceDragon> 3:
nfk has joined #ruby
<IceDragon> I should shoot myself for using ansible...
lolmaus has joined #ruby
<abyss> workmad3: I'm using puppet:)
<ljarvis> IceDragon: building games was your main motivation for using Ruby?
<IceDragon> Yah, I started out with RPG Maker VX
<IceDragon> And got hooked on ruby immediately, but my thirst for pretty gems didn't stop ;-; I WANTED MORE
Muhannad_ has quit [Ping timeout: 272 seconds]
<workmad3> abyss: also uses ruby under the hood ;) write more modules (or whatever they're called) for puppet without using their DSL :P
<IceDragon> So I switched to linux to get more out of ruby
e1nh4nd3r has joined #ruby
<IceDragon> and here I am today ;3
BrianBoyko1 has quit [Remote host closed the connection]
<[k-_> you ruby too much
<abyss> IceDragon: :)
<[k-_> time to learn something new!
<workmad3> IceDragon: start learning elixir!
<[k-_> yay functional!
<IceDragon> [k-_: I do C and C++, also Go, I have clojure on my list of things to learn also uggh JS..
<ljarvis> workmad3: everything should be done without their DSL. Puppet makes me want to tear my face off
<abyss> start learning assembler;p
skade has joined #ruby
<[k-_> ?how2describeproblem
<ruboto> I don't know anything about how2describeproblem
<workmad3> ljarvis: my experience with puppet is limited to an attempt to set it up with VMs about 6 years ago that failed
<IceDragon> I do! describe it in code!
<[k-_> but abyss fails at that :@
<abyss> :D
<flughafen> workmad3: salt!
<IceDragon> workmad3: Try again?
<[k-_> so is anyone guiding him through his problem?
<abyss> [k-_: fails with what?
<workmad3> IceDragon: I switched to chef and never worried about it again :P
<[k-_> :@
<ljarvis> workmad3: +1
<abyss> [k-_: yeah, IceDragon described both my problems;)
atomical has joined #ruby
<workmad3> and I don't need to touch any sysadmin stuff in my new job
<IceDragon> yay!
<IceDragon> sysamdin is evil :x
lkba has quit [Remote host closed the connection]
<IceDragon> And no one ask why, I have nothing to backup my statement
<[k-_> so no one uses codebunny.io? ;-;
<abyss> ;)
<workmad3> IceDragon: when in doubt, point to Sendmail and rest your case ;)
DaniG2k has quit [Quit: leaving]
havenwood has joined #ruby
<IceDragon> [k-_: Um, nope, I learn code by looking at other people's code, reading api docs and banging my head against the desk all alone in a corner
<IceDragon> especially banging my head against the desk
<IceDragon> workmad3: I'll keep that in mind 3;
pyo_ has quit []
maasha has joined #ruby
<abyss> IceDragon: any books?
<abyss> I've read one but I forgot almost everything;)
<maasha> So hash keys are default in the input order. Can you insert a new key/value pair after a particular key?
soulcake has quit [Ping timeout: 276 seconds]
senayar has quit [Remote host closed the connection]
sgambino has joined #ruby
<IceDragon> abyss: The pickaxe that used to ship with ruby back in 1.8
soulcake has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
devdazed has quit [Quit: Computer has gone to sleep.]
<IceDragon> maasha: Splice the hash together, split it after a certain key, merge the key/value pair you want and then merge the other half back unto it
ahmetkapikiran has joined #ruby
jespada has joined #ruby
<ljarvis> maasha: hashes are not supposed to be ordered
msnyon has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<IceDragon> ljarvis: in 1.9+ they are 3:
<[k-_> that was a mistake
<ljarvis> that doesn't change my statement
senayar has joined #ruby
<[k-_> many people raged because they didnt like the behaviour
<[k-_> look at the forums!
<workmad3> IceDragon: implementation wise, they have a deterministic order to keys now, but that doesn't make it right to then rely on a specific order as hashes are semantically unordered
yh has joined #ruby
nini1294 has quit [Ping timeout: 246 seconds]
<IceDragon> [k-_: ;-; I'm terrified of forums, people say mean things!
ndrei has quit [Ping timeout: 264 seconds]
<IceDragon> workmad3: ah! point taken
<[k-_> look no speak
wildroman2 has quit [Remote host closed the connection]
griffindy has joined #ruby
RegulationD has joined #ruby
vasilakisfil has quit [Read error: Connection reset by peer]
<[k-_> i think thats where the line comes from
vasilakisfil has joined #ruby
<IceDragon> [k-_: dayum, ;x
endash has joined #ruby
<[k-_> i dont even forum
<[k-_> i look through some sometimes
Scrofff has quit [Remote host closed the connection]
<[k-_> but never write
<IceDragon> [k-_: forums eat up time ;-;
<IceDragon> time we don't have
<[k-_> "time we don't have"
<adaedra> Is there a simple way to get a random date between two?
yh has quit [Ping timeout: 255 seconds]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-_> a... random date?
<IceDragon> adaedra: Grab 2 points in time, use the difference as the variance and add it back to the first date?
decoponio has joined #ruby
<[k-_> get a random day
<[k-_> random month
<adaedra> IceDragon: good point
<[k-_> random year
nofxxxx has quit [Ping timeout: 256 seconds]
<[k-_> if not in between, reject
<workmad3> adaedra: date1 + rand(date2 - date1)
<[k-_> o that works too!
<IceDragon> [k-_: you are wasting precious cpu time! /performance critical
<adaedra> yeah, [k-_ solution is inelegant
Scroff has joined #ruby
<adaedra> sorry [k-_ :(
<[k-_> i tried my best!
<[k-_> (date1..date2).sample
<[k-_> tada!
<[k-_> (date1..date2).to_a.sample
<workmad3> hehe
<adaedra> Did you try it, [k-_ ?
<[k-_> convert to epoch?
<[k-_> wait is that what i mean?
<workmad3> [k-_: probably not... that's times, not dates
railsraider has quit [Quit: railsraider]
<adaedra> and if I have to choose in a 10y timespan, it means allocating 3650+ elements
suited_pdev is now known as all_for_tos
<[k-_> (date1..date2).to_a.lazy.sample
<[k-_> tada!
<IceDragon> [k-_: Still nope, to_a makes an array, regardless
malconis has joined #ruby
<workmad3> [k-_: the .to_a will create the entire array
decoponio has quit [Client Quit]
malconis has quit [Remote host closed the connection]
<workmad3> hehe
<[k-_> 12102014..30122999
<ljarvis> adaedra: i'd use rand with upper/lower bounds yyyymmdd
aganov has quit [Remote host closed the connection]
<[k-_> (date1..date2).lazy.to_a.lazy.sample
<[k-_> does this work T^T
tesuji_ has quit [Ping timeout: 246 seconds]
<adaedra> ljarvis: as string? it may give you 20109876
malconis has joined #ruby
<workmad3> [k-_: you have an IRB console, right?
<IceDragon> [k-_: I believe that would be even slower...
<adaedra> [k-_: you can't .to_a a date range, anyway
<workmad3> adaedra: yeah you can
<ljarvis> adaedra: what why?
<adaedra> ah
<IceDragon> Anything Enumerable can be #to_a-ed
<adaedra> oh, it's time I have here
<[k-_> ^
<[k-_> yay
<ljarvis> that's even easier
Igorshp has joined #ruby
<workmad3> adaedra: so, the question is - what bits of information do you have? start date + end date? start date + interval range?
<adaedra> start date, today
gambl0re has quit [Ping timeout: 246 seconds]
datanoise has joined #ruby
<ljarvis> >> require 'date'; Time.at(Date.new(2015, 1, 15).to_f - Date.new(2015, 2, 15).to_f * rand + Date.new(2015, 2, 15))
<ruboto> ljarvis # => undefined method `to_f' for #<Date: 2015-01-15 ((2457038j,0s,0n),+0s,2299161j)> (NoMethodError) ...check link for more (https://eval.in/386243)
<workmad3> adaedra: and do you need a random date or a random datetime?
<ljarvis> time etc
<IceDragon> Time.at(start_date + rand(today - start_date))
<[k-_> cant iterate time ;-;
<adaedra> workmad3: and I want a random date between the two
tubuliferous_ has joined #ruby
mary5030 has joined #ruby
<IceDragon> [k-_: You'd need intervals or steps
mary5030 has quit [Remote host closed the connection]
effeeee has quit [Ping timeout: 246 seconds]
<adaedra> I tried with Time the first time, it may have been my error :x
<[k-_> does ruby even support steps
wildroman2 has joined #ruby
mary5030 has joined #ruby
<ljarvis> adaedra: do you have times or dates? :|
<adaedra> dates
<ljarvis> convert them to times
<IceDragon> [k-_: Integer#step
<ljarvis> Time.at(from + rand * (to.to_f - from.to_s))
<[k-_> pls, using range here
<IceDragon> >> enum = 1.step(10); [enum.next, enum.next, enum.next]
<ruboto> IceDragon # => [1, 2, 3] (https://eval.in/386246)
<workmad3> adaedra: also, is start_date in the future or the past?
<adaedra> ljarvis: ok
<adaedra> workmad3: past
<IceDragon> I think step has a second argument...
<ljarvis> shouldn't matter
Vardan has quit [Quit: Page closed]
<workmad3> adaedra: ok, so start_date + rand(Date.today - start_date) will give you a random date in between the two
<IceDragon> >> enum = 1.step(10, 3); [enum.next, enum.next, enum.next]
<ruboto> IceDragon # => [1, 4, 7] (https://eval.in/386249)
<IceDragon> yep
<IceDragon> 3:
<IceDragon> [k-_: ^
<workmad3> adaedra: but yeah, as ljarvis said, it shouldn't matter tbh, rand will produce negatives as happily as positives
<IceDragon> >> rand(-10)
<ruboto> IceDragon # => 6 (https://eval.in/386251)
<IceDragon> >> rand(-10)
<ruboto> IceDragon # => 3 (https://eval.in/386252)
<IceDragon> >> rand(-10)
<ruboto> IceDragon # => 0 (https://eval.in/386253)
<IceDragon> >> rand(-10)
<ruboto> IceDragon # => 3 (https://eval.in/386254)
<IceDragon> Gentlemen, we've hit a road block on that
<ljarvis> IceDragon: you have an irb console too ;)
* [k-_ deletes ruby
<[k-_> now i dont!
<ljarvis> ?experiment
<ruboto> Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
tubuliferous_ has quit [Ping timeout: 250 seconds]
<IceDragon> Ah, k
* IceDragon crawls back to his cave and tinkers with his local irb
jespada has quit [Ping timeout: 248 seconds]
<IceDragon> rand y u no gib negatives ;-;
<ljarvis> IceDragon: -rand
<adaedra> yay it works
<adaedra> thanks kind strangers *_*
dblessing has joined #ruby
theery has joined #ruby
<jhass> [k-_: wrong channel ;)
CloCkWeRX has left #ruby [#ruby]
charliesome has joined #ruby
<ljarvis> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<IceDragon> ljarvis: dats cheating ;x
senayar has quit [Remote host closed the connection]
commondream has joined #ruby
<ljarvis> IceDragon: psh, is it though
<IceDragon> ljarvis: I guess you could make a different rand method, one that handles negatives
<[k-_> def negativerand(*args); -rand(*args);end
nateberkopec has joined #ruby
<IceDragon> ;3
Igorshp has quit [Remote host closed the connection]
whippythellama has joined #ruby
unshadow has quit [Quit: leaving]
<IceDragon> def rand_of_awesome(n); rand(n) * (n <=> 0); end
<ljarvis> >> a = -10; a--------------------------a
<ruboto> ljarvis # => -20 (https://eval.in/386262)
JoshL has joined #ruby
<adaedra> def real_random; 4; end # Chosen by fair dice roll. Guaranteed to be random
<[k-_> def negativerand(*args); a=rand(*args); a % 2 == 0 ? a : -a ;end
<ljarvis> I've seen that in the wild adaedra :(
<[k-_> really?
<adaedra> That's an xkcd, iirc
nini1294 has joined #ruby
<ljarvis> yep it is
<IceDragon> adaedra: shiiiiet, I can't argue with the dice roll...
nettoweb has joined #ruby
<[k-_> but it's used in the wild?
<ljarvis> I worked on some code which had a method like "next_number" and it returned a static number
yayfoxes_ has quit [Ping timeout: 256 seconds]
<ljarvis> the tests failed when they changed it so they left it
<ljarvis> go figure
<IceDragon> ljarvis: makes sense in the case of tests I guess
<IceDragon> ljarvis: That or they shoudl have used; random = Random.new(seed)
ziprar has joined #ruby
jespada has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scrofff has joined #ruby
tkuchiki has joined #ruby
<_mh_> I wonder, can a regular expression be modified after it's been created?
rbennacer has joined #ruby
<[k-_> yes
nini1294 has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
zipace has quit [Ping timeout: 244 seconds]
<_mh_> [k-_: how would one go about this? Particular use case is having to prepend \A to a precompiled regex
Xeago has quit [Remote host closed the connection]
<IceDragon> _mh_: /\A#{regex.source}/
Scroff_ has joined #ruby
phat4life has quit [Read error: Connection reset by peer]
devdazed has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
<_mh_> aaah! Well, should've guessed that.
krz has joined #ruby
phat4life has joined #ruby
<_mh_> Thank you :)
Scroff has quit [Ping timeout: 246 seconds]
cubicool has joined #ruby
<IceDragon> _mh_: np
Scrofff has quit [Ping timeout: 244 seconds]
serivich has quit [Ping timeout: 246 seconds]
jespada has quit [Quit: WeeChat 1.1.1]
ndrei has joined #ruby
strixd has joined #ruby
strixd has quit [Excess Flood]
<cubicool> I feel dirty.
strixd has joined #ruby
<cubicool> I've been using Python for years professionally. I paid off all my debt in life with Python gigs. I have tons of Python side work in queue...
<cubicool> ...and lately all I do play around with ruby.
<[k-_> ruby is not dirty
serivich has joined #ruby
<cubicool> I certainly USED to think so.
quimrstorres has quit [Remote host closed the connection]
<_mh_> There's language choices based on preference and language choices based on need. Also language choices based on 'better suited for the job'. I don't see many languages I'd call dirty or bad, but many that are not well suited for the job.
<IceDragon> cubicool: YES, YES, WE NEED MORE LIKE YOU
<IceDragon> python converts!
<IceDragon> MUHAHAHAHAHAHA
* canton7 thinks java is dirty and bad :P
lucianosousa has joined #ruby
<_mh_> canton7: The army of java programmers out there likely agree with you, yet they still make a lot of money with it ;)
<canton7> your argument is sound, but there are still languages that are fundamentally flawed imo :P
bronson has joined #ruby
<canton7> heh, I never said you couldn't make money from them
* canton7 is one of those java programmers
<_mh_> heck... PHP... yes, I didn't say there aren't ones that are really bad.
<IceDragon> money trumps happiness?
Pathfinder has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
<canton7> I'm a consultant, so what the client wants trumps everything
Rapier- has joined #ruby
<_mh_> IceDragon: Well, for the general programming community, apparently... otherwise I can't explain those gazillions of people doing java.
<canton7> luckily java only needs to be rolled out of storage occasionally
<IceDragon> Or is it a case where Happiness === money but money != Happiness
ndrei has quit [Remote host closed the connection]
<canton7> the langauge choice isn't typically made by the programmer :P
ndrei has joined #ruby
<_mh_> of course not, but I've met more people that _willingly_ submit to the pain of java for the money, so...
<_mh_> (or PHP for that matter)
momomomomo has joined #ruby
<canton7> sometimes they do actually like it
<IceDragon> _mh_: Because there is so many libraries that do the job already, you just need to piece em together
<canton7> I've got one of those in my office
<IceDragon> somehow..
JoshL_ has joined #ruby
<IceDragon> in a huge unreabable mess...
<IceDragon> orz
JoshL has quit [Read error: Connection reset by peer]
<IceDragon> /experience with java
<_mh_> IceDragon: yes, that's the common argument :). Just glue them together, it's _easy_.
umgrosscol has joined #ruby
<canton7> not when your dependency management tools suck ass ;0
<_mh_> Enter SomeObscureLibraryInflectorInterfaceFactoryInstance
<canton7> even C# how has something bundler-esque (with recursive dependency resolution, a lockfile, etc)
<IceDragon> _mh_ You forgot teh name spaces!
<canton7> *now has
bronson has quit [Ping timeout: 265 seconds]
<IceDragon> canton7: C# is Java done better
<IceDragon> __common_argument__
<canton7> now I think enterprise architecture is something different. people who go around bashing the *concept* of things like factories typically haven't had to maintain buge codebases
<canton7> not that java culture doesn't tend to overdo those sorts of things....
<_mh_> to be fair, the idea of having a language that can run on any platform is a good one and the JVM has some pretty powerful stuff to offer, the language just fails to use it
<IceDragon> Cookie cookie = CookieFactory.Make();
* IceDragon eats the cookie
<IceDragon> x_x taste like java...
chinmay_dd has quit [Remote host closed the connection]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Ping timeout: 272 seconds]
<IceDragon> _mh_: Its a case of the language sucks but the vm rocks
<canton7> nah, you need to use the factory to create a builder, and use that builder to build a cookie
<_mh_> canton7: I don't have a problem with the concepts, the java community just often goes overboard with them.
<IceDragon> canton7: Dahell, I just want a COOKIE!
<canton7> agreed on that, _mh_ :P
<IceDragon> Cookie cookie = new Cookie();
chinmay_dd has joined #ruby
podman has joined #ruby
<canton7> yeah, but what if you want a fake cookie for testing?
<IceDragon> better yet, C++ cookies
<IceDragon> Cookie cookie();
jerius has joined #ruby
<IceDragon> Cookie cookie(REAL_COOKIE);
<IceDragon> 3:
* IceDragon eats the cookie
nateberkopec has quit [Quit: Leaving...]
<IceDragon> x_x taste like templates...
coderhs has joined #ruby
coderhs has quit [Client Quit]
sevenseacat has joined #ruby
<IceDragon> canton7: Use inheritance, or composition for the cookie I suppose? new ExperimentalCookie() or cookie = new Cookie(); cookie.properties.push(new ExperimentalTrait());
<_mh_> In the end of the day, it more matters on the skill of the person writing the code what you get in the end... some communities just don't seem to care about the results of their overengineering of things.
JoshL has joined #ruby
JoshL_ has quit [Read error: No route to host]
<_mh_> And you sadly can overengineer in just about any high level language.
<havenwood> Less code the better.
scripore has joined #ruby
<[k-_> ^
araujo has quit [Quit: Leaving]
CustosLimen has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Ping timeout: 264 seconds]
<workmad3> havenwood: there's a limit to that... see perl :P
sdwrage has quit [Quit: Leaving]
<_mh_> exactly.
bohallor has joined #ruby
<havenwood> Factory smactory!
aryaching has quit [Read error: Connection reset by peer]
<_mh_> And sometimes the little longer, but more readable code helps more (esp. in a multi programmer environment)
<canton7> IceDragon, well you'd typically use DI - so either inject the cookie, or inject a factory that can create cookies on demand
<workmad3> canton7: can I get a cookie injection plz
denver has quit [Remote host closed the connection]
* canton7 injects cookies into workmad3's bloodstream
<workmad3> canton7: double-choc-chip by preference
cubicool has quit [Quit: leaving]
Fluent_ is now known as Fluent
Fluent has quit [Changing host]
Fluent has joined #ruby
<_mh_> canton7: wouldn't you need an AbstractCookie first, just in case someone wants to make their own cookies?
treehug88 has joined #ruby
yh has joined #ruby
<IceDragon> _mh_: See, this is why we use composition!
<IceDragon> Just create CookieProperties
<IceDragon> 1 cookie with hundreds of flavours
<IceDragon> o.o
arturaz has quit [Ping timeout: 256 seconds]
sdothum has quit [Ping timeout: 252 seconds]
danman has joined #ruby
n008f4g_ has joined #ruby
lloyd_ has joined #ruby
<lloyd_> join #jruby
<lloyd_> er forgot /; sorry.
<havenwood> lloyd_: Success! You're here.
<lloyd_> thanks! :)
tagrudev has quit [Remote host closed the connection]
aryaching has joined #ruby
charliesome has joined #ruby
flughafen_ has joined #ruby
athos_diddy has joined #ruby
yayfoxes_ has joined #ruby
jpfuentes2 has joined #ruby
rritoch has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<athos_diddy> rails
<havenwood> ?rails athos_diddy
<ruboto> athos_diddy, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
yh has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
yh has joined #ruby
nonparfumee has joined #ruby
Kricir has joined #ruby
CustosLimen has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
CloCkWeRX has left #ruby [#ruby]
quimrstorres has quit [Remote host closed the connection]
<_mh_> IceDragon: memories... bad ones. Nightmares... the pain!
yqt has joined #ruby
vasilakisfil_ has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
lloyd_ has left #ruby ["*poof*"]
<canton7> _mh_, nah, you typically wouldn't expose a base class to the consumer
<canton7> Cookie would be an interface, which could either be a CookieImpl (for production) or MockCookie (for testing)
<canton7> now you could have ChocChipCookie and PlainCookie, which share a common AbstractCookie base class
drewvanstone has joined #ruby
<canton7> but that's implementation, and not exposed to the consumer
ndrei has joined #ruby
<[k-_> or ICookie
<[k-_> CookieFlavourFactory
sdothum has joined #ruby
<[k-_> and you need an Ingredient
<athos_diddy> mmmm
<[k-_> a Recipe
<canton7> ICookie is a C# convention, not a java one
<[k-_> so if you want a choco chip
<athos_diddy> canton is that subtype polymorphism
<canton7> which bit?
ericmeds has quit [Quit: ericmeds]
<[k-_> i dont know how
<athos_diddy> Cookie being interface then sharing it with your productiong and testing Cookies
drewvanstone has quit [Client Quit]
<[k-_> why do you need a cookie interface
<[k-_> silly people
<[k-_> a cookie is already an object
<[k-_> it does not need silly interfaces
<athos_diddy> so you can have different cookies with different return values
pdoherty has joined #ruby
failshell has joined #ruby
<athos_diddy> but the same functions but can return different values
<canton7> [k-_, we're talking in the abstract :P cookies don't do anything, but imagine they did
kaleido has joined #ruby
fabrice31 has joined #ruby
<canton7> athos_diddy, yeah, although subtyping is a term generally applied to inheritance rather than interface implementation
quimrstorres has joined #ruby
__butch__ has joined #ruby
<athos_diddy> ahh ok
<[k-_> but interfaces needs higher abstraction than just a cookie
<athos_diddy> ty
aryaching has quit [Ping timeout: 264 seconds]
<[k-_> you cant really use Food as an interface too
tkuchiki has quit [Remote host closed the connection]
<[k-_> maybe Edible
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-_> but not cookie or food
<athos_diddy> what do you mean higher abstraction? you mean extend a native class?
<canton7> read back to the beginning of the conversation :P it sorta built out and out from cookies
<canton7> none of it was supposed to make sense :P
gambl0re has joined #ruby
<[k-_> why would i read up
<[k-_> .-.
rjno has joined #ruby
<athos_diddy> i want to read the whole thing but i just logged on. ugh i hear people are using cloud based irc clients specifically for this purpose
fabrice31_ has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
<canton7> as in... bouncers? heh, would call that a "cloud-based IRC client" :P
<canton7> *wouldn't
JoPhantom has quit [Remote host closed the connection]
<[k-_> public abstract AbstractFood implements Edible { blah blah }
<[k-_> public abstract AbstractCookie extends AbstractFood implements Edible {}
sameerynho has quit [Quit: Leaving]
<yorickpeterse> the 2nd implements wouldn't be needed as AbstractFood already implements it
<[k-_> ¯\_(ツ)_/¯
<yorickpeterse> :D
commondream has quit [Remote host closed the connection]
<[k-_> s/Edible/Flavorable
ta has joined #ruby
<[k-_> now we can have different flavours!
dg-ratio1 has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
Muhannad_ has joined #ruby
freerobby has joined #ruby
last_staff has joined #ruby
drewvanstone has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
commondream has joined #ruby
dseitz has joined #ruby
chthon has quit [Quit: Ex-Chat]
<_mh_> nice creation.
charliesome has quit [Quit: zzz]
<_mh_> you theoretically would also need to specify ingridients...
drewvanstone has quit [Client Quit]
drewvanstone has joined #ruby
<[k-_> No, its not a cookie: https://www.youtube.com/watch?v=PkOcm_XaWrw
<dudedudeman> this is a shot in the dark question, but does anyone know of any examples of a to-do app written in ruby using TDD as the backbone?
<maloik> that should be an easy google
<maloik> if you want something a little more specific, look up the "stringer" app on github
<dudedudeman> swanson/stringer?
<maloik> it's an RSS reader type app in Sinatra, and it's pretty well written last time I checked
<maloik> yes I believe so
<dudedudeman> ah yep, ok
drewvanstone has quit [Client Quit]
dented42 has joined #ruby
jrl has joined #ruby
elia has quit [Quit: (IRC Client: textualapp.com)]
GitGud has joined #ruby
<dudedudeman> maloik: i'm just struggling to get a solid grasp on testing, so i'm looking to maybe peep some code that is testing within the same context as what i'm working on
drewvanstone has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
elia has joined #ruby
<jrl> hi. if I use #{s.split[3]} to get the 4th word in a string, how to i get 4th to last word?
<havenwood> jrl: -4
<maloik> jrl: use [3..-1]
drewvanstone has quit [Client Quit]
<workmad3> jrl: s.split(4).last
<maloik> oh... well depends on how you understand the question :-)
<workmad3> or s.split(4)[3]
<[k-_> wat does the question even mean
<jrl> "I went to ruby channel on freenode" I want to get -> "ruby channel on freenode"
dopie has joined #ruby
freerobby has quit [Quit: Leaving.]
<maloik> split(" ")[3..-1]
<[k-_> str.split will do
<[k-_> ^ maloik
<maloik> yea
freerobby has joined #ruby
<[k-_> i wished we could do [third..last]
thalassa has joined #ruby
<[k-_> that'll be maximum expressiveness!
<havenwood> >> "I went to ruby channel on freenode".partition(' ').last
ghostpl has quit [Remote host closed the connection]
<ruboto> havenwood # => "went to ruby channel on freenode" (https://eval.in/386276)
<workmad3> [k-_: def third; 3; end; def last; -1; end
<workmad3> [k-_: there you go :P
_blizzy_ has quit [Ping timeout: 248 seconds]
<havenwood> jrl: I vote partition.
drewvanstone has joined #ruby
<jrl> maloik: s.split[3..-1] => ["ruby", "channel", "on", "freenode"]
<jrl> can i get just "ruby channel on freenode"?
<havenwood> jrl: Look at my example above.
kies has joined #ruby
<workmad3> >> "I went to ruby channel on freenode".split(" ", 4)[3..-1]
<ruboto> workmad3 # => ["ruby channel on freenode"] (https://eval.in/386281)
railsraider has joined #ruby
<jrl> havenwood: I just want from X to last, yours somehow has 'went to' in?
<jrl> ok
<workmad3> >> "I went to ruby channel on freenode".split(" ", 4)[3] # better
<ruboto> workmad3 # => "ruby channel on freenode" (https://eval.in/386282)
<havenwood> jrl: Ah, I haven't had coffee and totally missed the X part. >.>
<jrl> and this is the simplest way to just get X to last? ;o
charliesome has joined #ruby
<maloik> workmad3: I don't like that last version, it's less obvious to me
<maloik> although if you do go that way, .last would be even better
<workmad3> maloik: .last will give you stuff even if there's less than 4 words in the string
<maloik> hmm, good point
<workmad3> maloik: and [3..-1] gives back an array that you then need to access or .join to get the string again
icebourg has joined #ruby
rippa has joined #ruby
fabrice31 has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maloik> yea in the end it all depends on what you need, I didn't think of it as a sentence per se
Ikares has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
Olipro_ has joined #ruby
ta has quit [Remote host closed the connection]
<[k-_> lol workmad3
Olipro_ is now known as Guest66344
valkyrka has quit [Quit: valkyrka]
<[k-_> in haskell, this might look better
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
Hounddog has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
lkba has joined #ruby
jrl has quit [Quit: Page closed]
ta has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
unshadow has joined #ruby
vasilakisfil_ has quit [Ping timeout: 256 seconds]
soulcake has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
dg-ratio1 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
ghostpl has joined #ruby
sandstrom has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
russt has quit [Quit: That's all, folks!]
russt has joined #ruby
fabrice31_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
califerno has joined #ruby
theery has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 252 seconds]
slawrence00 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
slawrenc_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
russt has quit [Quit: That's all, folks!]
russt has joined #ruby
unshadow has quit [Quit: leaving]
dg-ratio1 has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
freerobby has joined #ruby
russt has quit [Client Quit]
dg-ratio1 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
last_staff has quit [Read error: Connection reset by peer]
unshadow has joined #ruby
diegoviola has joined #ruby
russt has joined #ruby
<unshadow> Does Ruby's OpenSSL lib uses an imbeded openssl librery or the systems librery ?
<jhass> it should link to the system one afaik
<momomomomo> yep
casadei has joined #ruby
strixd has quit [Quit: 500]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
mary5030_ has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
dg-ratio1 has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
centrx has joined #ruby
CustosLimen has quit [Ping timeout: 252 seconds]
rbennacer has quit [Read error: Connection reset by peer]
strixd has joined #ruby
soulcake has joined #ruby
JoshL has quit [Read error: No route to host]
JoshL_ has joined #ruby
strixd has quit [Excess Flood]
mary5030_ has quit [Remote host closed the connection]
markov_twain has joined #ruby
lotherk has quit [Quit: leaving]
diegoviola has quit [Quit: WeeChat 1.2]
mary5030 has quit [Ping timeout: 255 seconds]
lotherk has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elia_ has joined #ruby
acke has quit [Remote host closed the connection]
zeroDivisible has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
diegoviola has joined #ruby
Hijiri has joined #ruby
mary5030 has joined #ruby
kaleido has joined #ruby
quimrstorres has joined #ruby
elia has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.0.1]
ghostpl has quit [Remote host closed the connection]
CustosLimen has joined #ruby
shadoi has joined #ruby
brotspinne has joined #ruby
momomomomo_ has joined #ruby
tubuliferous_ has joined #ruby
fabrice3_ has joined #ruby
<brotspinne> hello. is there a better way of writing this? https://gist.github.com/anonymous/c089ef0de05ef3634b7d
fabrice31_ has quit [Ping timeout: 272 seconds]
fabrice3_ has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
<[k-_> no
ruurd has quit [Read error: Connection reset by peer]
<centrx> brotspinne, I like that style
<brotspinne> really? I mean that = is ambigous
bentanweihao has joined #ruby
<[k-_> you can add more code and we will suggest!
<[k-_> brotspinne: it's fine
<centrx> brotspinne, It is possible to use an inline/postfix if for if-assignments, but that can be confusing/misleading
ericmeds has joined #ruby
scripore has joined #ruby
<centrx> brotspinne, You can put the assignment on a separate line
<centrx> new_variable = compute_some_value('foobar')
<centrx> puts 'hi' unless new_variable.nil?
<Pwnna> when you send a sigterm to a ruby process that has a trap, does it send some signals to any child processes that it has spawned?
ghostpl has joined #ruby
zeroDivisible has joined #ruby
<[k-_> the dreaded *unless* is back
techsethi has quit [Quit: techsethi]
<brotspinne> yeah the obvious alternative is https://gist.github.com/anonymous/00a97114d54c87561e32 but it just looks verbose
<Pwnna> i have a tar operation running via popen3 and I want to gracefully abort when encountering a SIGTERM (that is, it will finish the tar operation before exitting)
<Pwnna> but it seems like when I send a sigterm and trap it, the tar operation pauses or something like that
<jhass> brotspinne: some style guides suggest to disambiguate with if foo == bar and if (foo = bar), but I hate that style
<brotspinne> centrx: there will be more than more statement if new_variable is not nil
tkuchiki has joined #ruby
<brotspinne> more than one
tubuliferous_ has quit [Ping timeout: 252 seconds]
BTRE has quit [Quit: Leaving]
danman has quit [Quit: danman]
<centrx> brotspinne, Using a single = in if-statements just requires developers with attention to detail
<jhass> I tend to do your second variant
<[k-_> if compute_some_value returns false, it wont run tho
techsethi has joined #ruby
charliesome has joined #ruby
<centrx> brotspinne, It's less problematic than a == turning into a =
rbennacer has joined #ruby
creakybones has joined #ruby
nhhagen has quit [Remote host closed the connection]
platzhirsch has quit [Read error: Connection reset by peer]
<[k-_> jhass: while line = socket.gets is what everyone does!
<jhass> "tend"
kobain has joined #ruby
scripore has quit [Client Quit]
<brotspinne> jhass: yes I agree that adding parenthesis is not solving it
<jhass> I'm only dogmatic about where to put spaces
Xeago has joined #ruby
elia has joined #ruby
<[k-_> sometimes i wish ruby was more expressive
<jhass> heh
<shadoi> haha
<jhass> I see you didn't try many languages yet
<[k-_> however, it is already reaching its limits
platzhirsch has joined #ruby
<brotspinne> ok here is the question: is there another way than "foo = 42" to create a local variable?
lucianosousa has quit [Quit: lucianosousa]
<[k-_> i only have a little java, ruby, and a little haskell
rubie has joined #ruby
nettoweb has joined #ruby
JoshL_ has quit []
cir0x has joined #ruby
<[k-_> brotspinne: no afaik
<[k-_> eval("foo = 42)
<[k-_> "
<shadoi> that's not a different operation
<[k-_> ¯\_(ツ)_/¯
<jhass> brotspinne: none you want to know :P
<brotspinne> this would be nice actually https://gist.github.com/anonymous/3c5d071fb0aa69d7a94f
<brotspinne> (no real code though)
<[k-_> rspec uses let
dgutierrez1287 has joined #ruby
<shadoi> Feel free to define let so you can write that, but please don't make anyone else maintain it. :)
<[k-_> let should take an arg, which could be a block as well
elia_ has quit [Ping timeout: 256 seconds]
<[k-_> the block can also take an arg
<brotspinne> shadoi: no I'm not going to do that :)
<[k-_> which is the name of a variable
<jhass> >> if /(?<foo>bar)/ =~ "bar"; foo.upcase; end; # only other besides = I know
<ruboto> jhass # => "BAR" (https://eval.in/386292)
<[k-_> but you must go deep into the internals to modify scope outside
<brotspinne> jhass: heh
platzhirsch1 has joined #ruby
<[k-_> ruby does that now?
<[k-_> woah
charliesome has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
marciotex has joined #ruby
platzhirsch has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
<unshadow> How can I tell ruby to use an OpenSSL lib from a specific location ? (ie . require './locallib/opensll.h)
<[k-_> require_relative?
<[k-_> wait no
<[k-_> thats not what you mean
<havenwood> >> this = binding; this.local_variable_set 'foo', 42; this.local_variable_get 'foo'
<ruboto> havenwood # => 42 (https://eval.in/386294)
<apeiros> require accepts absolute paths. but that won't work for .h files
<apeiros> @ unshadow
<[k-_> unshadow: you have to set it at compile time
baryha has joined #ruby
<[k-_> >> binding
<ruboto> [k-_ # => #<Binding:0x415a0348> (https://eval.in/386295)
<unshadow> [k-_: I see... good thing I have rvm :)
<[k-_> ;O
peter_paule has joined #ruby
bentanweihao has left #ruby [#ruby]
<[k-_> >> binding.pry
<apeiros> important re lvar_set:
<ruboto> [k-_ # => undefined method `pry' for #<Binding:0x41bac32c> (NoMethodError) ...check link for more (https://eval.in/386296)
<apeiros> >> this = binding; this.local_variable_set 'foo', 42; foo
<ruboto> apeiros # => undefined local variable or method `foo' for main:Object (NameError) ...check link for more (https://eval.in/386297)
<havenwood> apeiros: shh, i'm cheating! ;)
dgutierrez1287 has quit [Ping timeout: 252 seconds]
<baryha> ! Raa Lynx games, and you know its football game. Lowers ram against each other, the Super Bowl, everything but thing but this stupid football. After they go boyer!
<baryha> Stop lawyyer moyer royer coyer moyer! Brucesht, boyer and that's a fuckers, Cornhuskers, Cornhuskers, Cornbuck fuck cornhusk. Fuck fuckers, Cornfuck buck cornhuskers, Cornhusk. Husk Husk, cornbuck.
<baryha> Juni Jonn Joans Football game it's a soccer game, it's a fucker game, it's a football makes me, it's a soccer game it's a fuck a duck. Fuck fuckers, Cowboys, Ravens, Cornbuck a duck.
<baryha> Juni Jonn Joans Football or long Saturday after the football makes me say oh my eye queue one notch, and than football game. It is the worse this garbage here. Lowers my eyes it more teams like they show its football. Afternoons. No!
<havenwood> !mute baryha
<apeiros> what a lame spammer
<[k-_> many fucks were given
baryha has left #ruby [#ruby]
bayfet has joined #ruby
cir0x has quit [Quit: Leaving.]
<bayfet> ! Raa Lynx games, and you know its football game. Lowers ram against each other, the Super Bowl, everything but thing but this stupid football. After they go boyer!
<bayfet> Stop lawyyer moyer royer coyer moyer! Brucesht, boyer and that's a fuckers, Cornhuskers, Cornhuskers, Cornbuck fuck cornhusk. Fuck fuckers, Cornfuck buck cornhuskers, Cornhusk. Husk Husk, cornbuck.
<bayfet> Juni Jonn Joans Football game it's a soccer game, it's a fucker game, it's a football makes me, it's a soccer game it's a fuck a duck. Fuck fuckers, Cowboys, Ravens, Cornbuck a duck.
<bayfet> Juni Jonn Joans Football or long Saturday after the football makes me say oh my eye queue one notch, and than football game. It is the worse this garbage here. Lowers my eyes it more teams like they show its football. Afternoons. No!
<havenwood> !mute bayfet
<yorickpeterse> that worked really well
bayfet has left #ruby [#ruby]
bubafett has joined #ruby
dented42 has joined #ruby
<bubafett> ! Raa Lynx games, and you know its football game. Lowers ram against each other, the Super Bowl, everything but thing but this stupid football. After they go boyer!
<bubafett> Stop lawyyer moyer royer coyer moyer! Brucesht, boyer and that's a fuckers, Cornhuskers, Cornhuskers, Cornbuck fuck cornhusk. Fuck fuckers, Cornfuck buck cornhuskers, Cornhusk. Husk Husk, cornbuck.
<bubafett> Juni Jonn Joans Football game it's a soccer game, it's a fucker game, it's a football makes me, it's a soccer game it's a fuck a duck. Fuck fuckers, Cowboys, Ravens, Cornbuck a duck.
livathinos has quit []
<bubafett> Juni Jonn Joans Football or long Saturday after the football makes me say oh my eye queue one notch, and than football game. It is the worse this garbage here. Lowers my eyes it more teams like they show its football. Afternoons. No!
<bubafett> The worst sport everything on during. Most people are runna ma naes.
<yorickpeterse> you might just want to ban the hostname
<bubafett> It's a fucker game. It's no lie it's about football.
<bubafett> Nothing but football is the worst sport everything on television. Nothing on television is college football or long Saturday afternoons. Nothing worst sport ever my eyes it more teams like this stupid football! Brucest boyer coyer! Boyer! Brucesht, boyer! Brucesht! The worst sport ever. nothing paint dry. Lynx game, it's a soccer game, so they show it sucks ten rears. Rum-dum-dum-foot ball.
<bubafett> The worst sport ever moyer! Brucest boyer my lord, what is college football. Nothing but this stupid foot ball is good. Except when I can't watching prime but the worst sport everything but the Jaguars, so bored, makes me say oh my eyes it sucks ten rears. Nothing prime time time but football game. Lowers ram against each other, the Jaguars, Cornhuskers, so bored, makes me say oh my lord, what
<jhass> !kick bubafett Please use https://gist.github.com
bubafett was kicked from #ruby by ruboto [Please use https://gist.github.com]
<brotspinne> what do you think about this? https://gist.github.com/anonymous/b653b12a8f2b9ed346da
bubafett has joined #ruby
<bubafett> Nothing prime time time but the Nebraska Cornhuskers, Cornbuckers, so boyer football is they show its football game, so the Nebraska Cornhuskers, so the Jaguars, College football game it's a soccer game. When he football makes me, it's a soccer game, so they go brucesht boyer royer royer! Brucesht, boyer coyer! Brucesht! They show it more. Nothing but football. Nothing on during but as watching
<bubafett> but thing but football. Nothing worst sport everything on television is good. Except when he football game. I'm swearing on during. Most people are runna ma naes. It's a soccer game. It's a lynx game! Raa Lynx game. Lowers my eyes it more teams like than football. No!
<jhass> !mute bubafett
<havenwood> jhass: ha
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olistik has quit [Remote host closed the connection]
<centrx> So...how bout that local sports team
<apeiros> somebody with two arms make that mute a bit better please
<yorickpeterse> which one, Cornbuckers?
califerno has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> I still wonder how mushy your brain has to be to spam like that
<havenwood> suuuper mushy
railsraider has quit [Quit: railsraider]
<apeiros> IMO IQ < 40
<apeiros> probably needs a reminder to breathe
bkxd has quit [Ping timeout: 256 seconds]
marciotex has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-_> lol please use gist
<Aria> It's really not about intelligence. Just entitlement and indifference to other people.
sfarley has joined #ruby
<apeiros> sh, I'm insulting the spammer
<jhass> somebody catched if they use the same gecos?
hahuang65 has joined #ruby
<athos_diddy> hey apeiros
<brotspinne> so in general you guys say assignment in if condition is fine?
<athos_diddy> hey jhass
senayar has joined #ruby
senayar has joined #ruby
<[k-_> yes
<apeiros> brotspinne: I avoid it
<[k-_> why ||=
<brotspinne> it might make clear that == is not intended
<brotspinne> just an idea
<[k-_> nah
<[k-_> stick with =
konsolebox has quit [Read error: Connection reset by peer]
<jhass> meh
duderonomy has quit [Ping timeout: 264 seconds]
<brotspinne> ok
Yiota has joined #ruby
<[k-_> is that why #rubyonrails require registration?
<havenwood> [k-_: Please discuss channel policy in #ruby-community.
<yorickpeterse> I wonder how effective spamassassin would be in an IRC bot
stan has quit [Ping timeout: 246 seconds]
olistik has joined #ruby
sanjivupadhyaya has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
<apeiros> yorickpeterse: the problem lies with being only able to act after the fact
<apeiros> but I'd guess it could be quite effective aside from that
Xeago has quit [Remote host closed the connection]
<apeiros> and it's something I'd love to experiment with
* [k-_ does not want to discuss policies
theery has joined #ruby
<apeiros> training can be done using logs
<apeiros> [k-_: yes
<[k-_> no
<[k-_> i know it's your favourite thing
<apeiros> [k-_: that was the answer to your question ;-)
<[k-_> oh
<apeiros> :-p
lotherk has quit [Max SendQ exceeded]
lotherk has joined #ruby
Flcn has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<dudedudeman> .....
<dudedudeman> require './app' works fine in irb. change a migration, and now the require does not work
<dudedudeman> what did i break
<jhass> using relative requires
<apeiros> and that my friend, is why using relative requires is a bad idea
<jhass> if you can't be bothered to fix up $LOAD_PATH instead, use require_relative
bubafett has quit [Excess Flood]
<jhass> lol
<apeiros> . is working directory
tkuchiki has quit [Remote host closed the connection]
<[k-_> require ./app?
B1n4r10 has joined #ruby
df has quit [Quit: .]
<[k-_> cant u just require app
df has joined #ruby
<dudedudeman> [k-_ that's what i was doing, and now it no longer works
<[k-_> whatever a migration is, it is not safe!
<dudedudeman> activerecord. i can assure you they are safe
all_for_tos has left #ruby ["Leaving"]
<[k-_> -> rails
<dudedudeman> nope
<dudedudeman> just using it for my ORM
<[k-_> but you did a migration and it broke stuff!
gagrio|MRG has quit [Ping timeout: 246 seconds]
<dudedudeman> clearly the migration didn't break anything, i broke something
<dudedudeman> or, rather, i did not set myself up for success
allenn has quit [Ping timeout: 248 seconds]
<[k-_> so you phrased the question improperly
ahmetkapikiran has joined #ruby
Carbonado has joined #ruby
gagrio|MRG has joined #ruby
<dudedudeman> ?
<Senjai> Good morning ruby
<[k-_> morning
ahmetkapikiran has quit [Client Quit]
langland_ has joined #ruby
snockerton has joined #ruby
Carbonado has quit [Client Quit]
<dudedudeman> because i'm an idiot, irb wasn't taking my require because i wasn't in my root dir.
<dudedudeman> i have my ROOT_PATH and $LOAD_PATH set up in my rakefile... am I doing that wrong?
doublemalt_ has quit [Ping timeout: 244 seconds]
<[k-_> .___.
iamninja has joined #ruby
<[k-_> but you are requiring "./app"
langlands has quit [Ping timeout: 244 seconds]
<dudedudeman> yarp
avat has quit [Quit: Page closed]
konsolebox has joined #ruby
pietr0 has joined #ruby
railsraider has joined #ruby
platzhirsch1 has left #ruby [#ruby]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uber has quit [Ping timeout: 250 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konsolebox has quit [Remote host closed the connection]
skade has joined #ruby
yardenbar has joined #ruby
<ljarvis> dudedudeman: I don't see how setting them up in your rakefile make any different to irb?
<[k-_> i cant help you with this :/
peter_paule has quit [Ping timeout: 244 seconds]
<dudedudeman> ljarvis: it probably doesn't. i was just attempting to load my app from my /db directory, and not root
<ljarvis> ah right
<dudedudeman> which i think is what jhass and apeiros were alluding to earlier
<jhass> yes that's why require "./foo" is bad
<dudedudeman> where should my load path be setup, jhass? directly in my app.rb file?
<jhass> at the entry point of your application or even on invocation
<jhass> ruby -Ilib, irb -Ilib
sinkensabe has joined #ruby
c0m0 has quit [Ping timeout: 246 seconds]
yardenbar has quit [Ping timeout: 255 seconds]
<dudedudeman> ah. thanks dude
momomomomo has quit [Quit: momomomomo]
yqt has quit [Ping timeout: 252 seconds]
railsraider has quit [Quit: railsraider]
darkf has quit [Quit: Leaving]
bluOxigen has quit [Ping timeout: 256 seconds]
cir0x has joined #ruby
Xeago has joined #ruby
drewvanstone has joined #ruby
markovtwain has joined #ruby
vasilakisfil_ has joined #ruby
ghostpl has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
endash has quit [Quit: endash]
markov_twain has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
xcesariox has joined #ruby
towski_ has joined #ruby
psmolen_ has quit [Quit: ZNC - http://znc.in]
sinkensabe has quit [Remote host closed the connection]
droidburgundy has joined #ruby
langlands has joined #ruby
uber has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostpl has joined #ruby
DroidBur_ has quit [Ping timeout: 264 seconds]
langland_ has quit [Ping timeout: 252 seconds]
msnyon has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 248 seconds]
yardenbar has joined #ruby
joonty has quit [Quit: joonty]
arooni-mobile has quit [Ping timeout: 248 seconds]
pengin has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
c0m0 has joined #ruby
CorySimmons has joined #ruby
soulcake has joined #ruby
tubuliferous_ has joined #ruby
droidburgundy has quit [Read error: Connection reset by peer]
theery_ has joined #ruby
droidburgundy has joined #ruby
theery has quit [Read error: Connection reset by peer]
CorySimmons has quit [Client Quit]
olistik has quit [Remote host closed the connection]
baweaver has joined #ruby
drewo has joined #ruby
rbennacer has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
sarkyniin has joined #ruby
cndiv has joined #ruby
cndiv has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
spider-mario has joined #ruby
pengin has quit [Remote host closed the connection]
dfockler has joined #ruby
pengin has joined #ruby
ericmeds has quit [Quit: ericmeds]
ndrei has joined #ruby
baweaver has quit [Remote host closed the connection]
shinnya has joined #ruby
anarang has quit [Quit: Leaving]
ivorpad has joined #ruby
grzywacz has joined #ruby
grzywacz has joined #ruby
sfarley has quit [Remote host closed the connection]
arup_r has joined #ruby
doertedev has quit [Quit: Lost terminal]
towski_ has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
andikr has quit [Remote host closed the connection]
pengin has quit [Ping timeout: 255 seconds]
<Senjai> Is anyone doing anything cool at the moment
<Senjai> I'm doing tediousness atm
k3asd` has quit [Ping timeout: 246 seconds]
<dfockler> Senjai: same here
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
uptownhr has joined #ruby
<shevy> Senjai not really... I am trying to find out why mplayer does not want to play audio files
<Senjai> shevy: Ah, I've been meaning to get that setup with tmux
<shevy> hehe
<Senjai> Get a nice status line thing setup for it
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I don't have too many cool things going in ruby either
blue_deref has joined #ruby
<shevy> I am stuck in maintenance, or rewriting mostly
sandstrom has joined #ruby
<Senjai> I'm adding a feature that's.. crappy
NeverDie has joined #ruby
<Senjai> s/crappy/involved
jackjackdripper has quit [Ping timeout: 248 seconds]
<dfockler> I'm thinking of doing a gem a week blog, where I go over a gem and explain architecture, tricks, or other unique parts of the gem
<Senjai> dfockler: Good luck finding a well written gem after a month or so ;)
last_staff has joined #ruby
<Senjai> Celluloid isn't the best for that, but its stil worth talking about IMO
CamonZ has quit [Read error: No route to host]
<Senjai> Also the rails rendering stack.
<dfockler> I'm also playing with the Frappuccino gem
<[k-_> yes do speak about celluloid
ursooperduper has joined #ruby
<Senjai> Celluloid is a great example of how to manage complexity, not saying the code is perfect though
<dfockler> I like Celluloid, I've been reading through the DCell source
M-Technic has joined #ruby
<shevy> dfockler pick a gem that has potential
<shevy> not an established gem such as prawn
<Senjai> Also going through a thing that wraps an external program, like resque with redis
<Senjai> might also be interesting
<dfockler> Yeah the Celluloid code is kind of tricky
<Senjai> dfockler: It is suuper tricky
<Senjai> [k-_: Just because I have a quota for making happy people meh, I'm going to mention EventMachine for you.
Torrieri has joined #ruby
<Senjai> K I'm done
duoi has quit [Ping timeout: 248 seconds]
<dfockler> It's very indirect and uses the weird parts of ruby that most people don't know about
B1n4r10 has joined #ruby
William|i7 has joined #ruby
alex88 has quit []
elia has quit [Quit: Computer has gone to sleep.]
<William|i7> looking for some help with a belongs to many datamapper, cant seem to fetch all posts attached to categorys, https://raw.githubusercontent.com/Askedio/Simple_Ruby_Boostrapped_Blog/Decent_Blog/models/post.rb
charliesome has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
<Senjai> dfockler: I would approach it from the "Implimenting erlang in ruby" approach ;)
<[k-_> (pinging [k- is fine)
<dfockler> Senjai: what do you mean?
shadoi has quit [Read error: Connection reset by peer]
<dfockler> To read celluloid code?
msgodf has quit [Ping timeout: 246 seconds]
<Senjai> It impliments many of erlangs concepts
<Senjai> that's where supervisors and stuff come from
puppeh_ has joined #ruby
platzhirsch has joined #ruby
withnale_ has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
<phat4life> how about a gem that generate its self
<dfockler> Senjai: ahh ok
<phat4life> a quine gem
mikecmpbll has quit [Ping timeout: 276 seconds]
<jhass> boring, go through at least 5 languages/package managers
Igorshp has joined #ruby
sinkensabe has joined #ruby
blandflakes has joined #ruby
<jhass> gem -> cpan -> npm -> pear -> cargo -> gem
platzhirsch has quit [Client Quit]
gregf has quit [Quit: WeeChat 1.1.1]
vasilakisfil_ has quit [Quit: Konversation terminated!]
<Senjai> Eh, that'd be nice
<Senjai> gem that is
<Senjai> stay away from that npm shite
<Senjai> <3
vasilakisfil_ has joined #ruby
<Aria> Hey now.
c0m0 has quit [Ping timeout: 256 seconds]
<Senjai> A wild Aria appears
<Senjai> xD
<Aria> Just because node modules form a tidy little DAG...
havenn has joined #ruby
<phat4life> write a gem that is a wrapper around webpack
senayar has quit []
<Senjai> Aria: Mostly that its javascript
A124 has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 244 seconds]
<phat4life> (we use webpack for our react front end, which is react, and its less than ideal)
<adaedra> <jhass> gem -> cpan -> npm -> pear -> cargo -> gem
Flcn has quit [Quit: Be back later ...]
<adaedra> this lacks some pip
<jhass> "at least"
<adaedra> some bower
<jhass> and some shards
<Senjai> phat4life: We went with browserify
failshell has joined #ruby
A124 has joined #ruby
<Senjai> adaedra: Isn't bower just like curl asset_file_here > to this file
<phat4life> do any of you use slanger or pusher?
BrianBoyko has joined #ruby
scripore has joined #ruby
<Senjai> phat4life: I've used pusher
<phat4life> slanger just straight up stopped working
<adaedra> Senjai: more like git clone, iirc
* Aria does her part to put out the fires of language bigotry.
nobitanobi has joined #ruby
<Senjai> phat4life: we haven't had an issue with pusher
<phat4life> er, slanger works in dev, not in prod
<Senjai> phat4life: I found that it causes people to be lazy though.
<Senjai> phat4life: go ask support
<phat4life> Senjai: pusher?
Flcn has joined #ruby
William|i7 has left #ruby [#ruby]
<phat4life> how does pusher/slanger make people lazy
<havenn> hex and nimble
<Senjai> phat4life: Instead of making actual endpoints, or doing certain things properly with websockets or polling, they will opt for pusher.
chinmay_dd has joined #ruby
<Senjai> phat4life: Slanger is a standalone server ruby implementation of the Pusher protocol. It is not designed to run inside a Rails or sinatra app, but it can be easily installed as a gem. <<
charliesome has joined #ruby
<Senjai> Honestly, go with elixir, or even node for something like that :P
<puppeh_> any1 using requirejs-rails gem?
brotspinne has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
<Senjai> puppeh_: #RubyOnRails
mordocai has joined #ruby
<phat4life> sails4life
drewo has quit [Quit: WeeChat 1.2]
<phat4life> have any of you used sails?
<Senjai> ?use
<ruboto> Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
platzhirsch has joined #ruby
cpruitt has joined #ruby
<phat4life> aka sails, the rails of node
<Senjai> If I used node, I wouldn't use it to solve the same problems as rails. I'd use rails
endash has joined #ruby
olistik has joined #ruby
<phat4life> the problem is websockets with rails, i am not sure how to do it properly
atom3 has quit [Remote host closed the connection]
vasilakisfil_ has quit [Ping timeout: 256 seconds]
<Senjai> phat4life: You dont. You use a language meant for it
<Senjai> phat4life: Elixir, Go, or even Node
atom3 has joined #ruby
<Senjai> phat4life: #besttoolforthejob
deric_skibotn has joined #ruby
<Senjai> Elixir/erlang is probably the best solution out there
<Senjai> Due to the BEAM vm
freerobby has quit [Quit: Leaving.]
<phat4life> sails is interesting though, as its a node mvc framework, farily similar to rails in concept
Xeago has joined #ruby
<shevy> sails
<shevy> who picks such a name
<phat4life> its meant to be like rails
<Senjai> shevy: Javascript developers :P
<[k-_> sliar
<shevy> I'm gonna create a gem called sailormoon and then I will make my new framework
<shevy> sails on sailormoon!
polysics has quit [Remote host closed the connection]
<[k-_> ...
<shevy> ruby on rails
<shevy> php on poop
<[k-_> java on walking sticks
shadoi has joined #ruby
DroidBur_ has joined #ruby
<havenn> Be nice.
pengin has joined #ruby
<phat4life> i think i am going to take a break from ruby for a while
<Senjai> phat4life: :(
<phat4life> i miss c++ :(
<Senjai> wat
<Senjai> :P
<phat4life> i know right
chinmay_dd has quit [Ping timeout: 256 seconds]
droidburgundy has quit [Ping timeout: 256 seconds]
* Senjai is going back to work now :P
avelldiroll has quit [Quit: WeeChat 0.3.8]
arooni-mobile has joined #ruby
platzhirsch has quit [Ping timeout: 276 seconds]
<|work> shevy: D on D
freerobby has joined #ruby
olistik has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
theery_ has quit [Read error: Connection reset by peer]
<shevy> hmm
RobertBirnie has joined #ruby
theery has joined #ruby
theery has quit [Read error: Connection reset by peer]
<shevy> [k-_ java on jeroids
<[k-_> esy
<[k-_> wat*
<shevy> python on ShshShshSzhshshsh
<[k-_> ruby on track
theery has joined #ruby
<shevy> hehe
olistik has joined #ruby
<[k-_> pun intended
tkrajcar has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby
<phat4life> i have to learn java, any the lack of duck types, how do i adapt blah
<phat4life> *and
<[k-_> interfaces
<shevy> you just lower your head, accept your fate shamefully, and learn it phat4life
<shevy> or perhaps you can get a good book that is fun to read
nunayerBeezwax has joined #ruby
<phat4life> i have ruby design pattern books
<[k-_> > you cast to a interface
arcanez has joined #ruby
SOLDIERz has joined #ruby
Scroff_ has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
<arcanez> is there a difference in performance/gc for "foo = 'bar' << baz << 'quux'" vs "foo = 'bar' + baz + 'quux'" vs "foo = "bar#{baz}quux"" (where bar & quux are strings and baz is a variable that has a string)
nateberkopec has joined #ruby
<arcanez> I know there is for += vs << vs #{}, but not sure about just +
<[k-_> yes
bronson has joined #ruby
<shevy> arcanez + will create a new object, << will not
failshell has quit []
<[k-_> if you already have strings, u can use << or #{}
<[k-_> but if you dont, use #{}
<shevy> + occurs in both situations btw, += just is a shortcut for: bla += 'hi' bla = bla + 'hi'
<[k-_> is #{} a method call?
avelldiroll has joined #ruby
<shevy> don't think so; but it will call .to_s
<Senjai> It will call to_s on the result between the braces if it is not a string
<Senjai> same goes for normal concatenation
<Senjai> Actually, I'm pretty sure it uses coerce
<arcanez> + will create new objects based on the number of +s right?
<shevy> number of what?
white_bear has quit [Quit: leaving]
<shevy> what means +s
<arcanez> foo+bar+baz+quux+this+that
<GarethAdams> a + b + c will perform two #+ method calls, yes
<arcanez> creates more objects vs foo+bar+baz
perrier__ has quit [Read error: Connection reset by peer]
<[k-_> youshouldbefunctionalanddonotembracesideeffects
perrier has joined #ruby
pengin has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
jacor has quit [Read error: Connection reset by peer]
<shadoi> don't embrace them, just give them a little side-hug
platzhirsch has joined #ruby
chinmay_dd has joined #ruby
jacor has joined #ruby
<[k-_> if you have variables, use #{}
<[k-_> if you just want to add hard coded strings, use ""
Xeago has quit [Read error: Connection reset by peer]
swills has quit [Quit: leaving]
<[k-_> if you want formatting, use %
duderonomy has joined #ruby
fabrice31 has joined #ruby
<[k-_> if you want to modify, use <<
<[k-_> no need for +
<shevy> arcanez oh yeah, because more calls to the .+ method
<[k-_> "a"+"b" -> use "ab"
droidburgundy has joined #ruby
psy_ has joined #ruby
Scroff has joined #ruby
lva has quit [Remote host closed the connection]
A124 has quit [Remote host closed the connection]
<shevy> lol
<shevy> great hint!
tvw has quit [Remote host closed the connection]
<shevy> >> "a""b"
<ruboto> shevy # => "ab" (https://eval.in/386323)
<shevy> LOOK
chinmay_dd has quit [Ping timeout: 250 seconds]
<shevy> ruby stole two '"'
A124 has joined #ruby
<Senjai> is performing set intersections notably faster than with arrays?
<Senjai> E.g. is it worth converting an array to a set to run an intersection
fabrice31 has quit [Ping timeout: 252 seconds]
DroidBur_ has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
soulcake has quit [Ping timeout: 276 seconds]
<[k-_> if your array is not uniq, no
<[k-_> wait
<[k-_> it doesnt matter
husanu has quit [Remote host closed the connection]
soulcake has joined #ruby
<[k-_> for the uniqueness, that is
peter_paule has joined #ruby
Scroff has quit [Remote host closed the connection]
<BrianBoyko> Howdy again. I'm ... kinda up poop creek. How do I make a ruby app that I can call from the command line?
<[k-_> i think so
husanu has joined #ruby
brotspinne has joined #ruby
platzhirsch1 has joined #ruby
<[k-_> BrianBoyko: use the #!
anisha has joined #ruby
<[k-_> #!/usr/local/bin/ruby
<[k-_> then you can just type the file name without having to type ruby <file name>
platzhirsch has quit [Ping timeout: 256 seconds]
zeroDivisible has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
<[k-_> Senjal, i think it would be worth it
<[k-_> you could do a benchmark, it would benefit the community :D
A124 has quit [Client Quit]
<Senjai> aye will do in a bit :)
shinnya has quit [Ping timeout: 244 seconds]
soxet has joined #ruby
arup_r has joined #ruby
yh has quit [Ping timeout: 264 seconds]
<shevy> BrianBoyko you just have the .rb file in question ok? that file can either have all the code, or call to the code that you wish to invoke
<shevy> if you have a proper #shebang line, you can omit the leading "ruby" invocation component
<[k-_> you can also use a shell script
vasilakisfil_ has joined #ruby
<shevy> you can alias make an alias, like "alarm" as alias to "/tmp/alarm.rb", then youc an invoke via alarm; or you structure it like a gem, then you can put a bin/ file that will invoke it
<BrianBoyko> That's right. I am running bash
<shevy> that is how e. g. "rackup" works
<shevy> I can not type well today
<shevy> my left pinkie is injured :(
platzhirsch1 has quit [Ping timeout: 248 seconds]
Lucky_ has joined #ruby
<[k-_> :(
msnyon has joined #ruby
ttilley has quit [Quit: Leaving...]
platzhirsch has joined #ruby
A124 has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
atom3 has quit [Ping timeout: 276 seconds]
atom3 has joined #ruby
rbennacer has joined #ruby
User458764 has joined #ruby
volty has joined #ruby
hahuang65 has joined #ruby
charliesome has quit [Quit: zzz]
theery has quit []
freerobby has quit [Quit: Leaving.]
Muhannad_ has quit [Ping timeout: 248 seconds]
<dfockler> 09:45 shevy: ruby on rails
<dfockler> 09:45 shevy: php on poop
<dfockler> lol I just read these
peter_paule has quit [Ping timeout: 256 seconds]
<shevy> :)
platzhirsch has quit [Ping timeout: 264 seconds]
<shevy> it's harder to come up with frameworks for other languages
<shevy> erlang?
rbennacer has quit [Ping timeout: 246 seconds]
<shevy> nim? lua?
dorei has joined #ruby
weaksauce has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
djbkd_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
<dfockler> Erlang on Monads
towski_ has joined #ruby
<dfockler> Nim on Omin
nobitanobi has quit [Remote host closed the connection]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
techsethi has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
<dfockler> Lua on the Moon
<BrianBoyko> Hmm... I think I might be screwing this up. I'm trying to write a program that, when executed, will write a CSV file from the database. But the error I'm getting is that my method isn't defined. https://gist.github.com/brianboyko/25736f9efde4de320b57
<[k-_> Elixir on drugs
<Senjai> BrianBoyko: Databases typically can dump CSV's by themselves
<Senjai> have you considered that?
__main__ has quit [Read error: Connection reset by peer]
<dfockler> BrianBoyko: usually through an export function
<Senjai> [k-_: Honestly, heisenburg would be a great library name for an elixir library
<BrianBoyko> Senjai - yes, but in order to do that I'd need to log into the database and export it from there.
_main_ has joined #ruby
<BrianBoyko> What I want to do is create a publically accessible CSV file.
griffindy has quit [Read error: Connection reset by peer]
<BrianBoyko> and run it every 10 minutes or so.
bronson has quit [Remote host closed the connection]
<shevy> dfockler I like the latter two
msnyon has quit [Ping timeout: 252 seconds]
<[k-_> Elixir's heisenburg
Flcn has quit [Quit: Be back later ...]
<shevy> Erlang on Monads, isn't that haskell?
<[k-_> errr exposed!
<[k-_> run!
<dfockler> BrianBoyko: you can just have your ruby db handler do postgres' COPY function
marciotex has joined #ruby
<BrianBoyko> conn.exec("COPY donors to 'output.csv' header") - like that?
djbkd_ has quit [Ping timeout: 255 seconds]
<dfockler> yeah basically
msnyon has joined #ruby
_main_ is now known as __main__
yqt has joined #ruby
vasilakisfil_ has quit [Quit: Konversation terminated!]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duoi has joined #ruby
vasilakisfil_ has joined #ruby
gambl0re has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 248 seconds]
Muhannad_ has joined #ruby
s2013 has joined #ruby
rbennacer has joined #ruby
gambl0re has joined #ruby
dumdedum has quit [Quit: foo]
drewo has joined #ruby
puppeh_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
ursooperduper has joined #ruby
sanjivupadhyaya has quit []
skade has quit [Quit: Computer has gone to sleep.]
kies has quit [Remote host closed the connection]
ghostpl has quit [Remote host closed the connection]
wallerdev_ has joined #ruby
drewvanstone has joined #ruby
Torrieri has quit [Quit: Be back later ...]
Xeago has quit [Read error: Connection reset by peer]
volty has quit [Ping timeout: 250 seconds]
casadei has quit [Remote host closed the connection]
sanjivupadhyaya has joined #ruby
<sanjivupadhyaya> so
sinkensabe has quit [Remote host closed the connection]
<[k-_> so?
<jhass> so!
gianlucadv has joined #ruby
<xxneolithicxx> hi all
<[k-_> good morning how are you on this fine day
<xxneolithicxx> anyone know of any good open APIs I can use to do practice dev
nunayerBeezwax has quit []
<xxneolithicxx> im quite grand
brotspinne has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
<xxneolithicxx> dont really care what the data it returns is, just looking for something thats well documented and free
<jhass> github
<shevy> datahub!
drewvanstone has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
ndrei_ has joined #ruby
blaines has joined #ruby
<shevy> xxneolithicxx work on some json data perhaps?
<BrianBoyko> ugh, I'm completely stuck
Xeago has joined #ruby
ghostpl has joined #ruby
<[k-_> did you know, defining #call will automatically allow you to use instance.(args) syntactic sugar?
nobitanobi has joined #ruby
<shevy> BrianBoyko always try to bring down things to a simpler level
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
<[k-_> we should have a ?tip
<[k-_> and we spread little ruby tidbits
Scroff has joined #ruby
<BrianBoyko> Okay. basically this: How do you build a progress bar app?
atomical has joined #ruby
<[k-_> ideally, cli gems will have you covered
<kaleido> very carefully and with well thought out plans
lkba_ has joined #ruby
<[k-_> or you can use jruby and use the awful swing progress bar with a gui
<BrianBoyko> I can build the bar, I just need the number.
<BrianBoyko> How do I have my website (running Jekyll on Github Pages) grab info from the Postgres database on heroku?
<Aria> Progress of what?
<BrianBoyko> I'm trying to build a crowdfunding app.
<[k-_> won't that be your source of numbers
<jhass> write a small API that your JS can query
DroidBur_ has joined #ruby
droidburgundy has quit [Read error: Connection reset by peer]
<jhass> or setup a cronjob to regenerate it
pengin has joined #ruby
danman has joined #ruby
freerobby has quit [Quit: Leaving.]
<BrianBoyko> Unfortunately, I can't run psql locally on the heroku machine.
<BrianBoyko> so I can't so things like output to CSV
ghostpl has quit [Ping timeout: 264 seconds]
<jhass> wat, heroku?
sarmiena_ has joined #ruby
<jhass> ah, right, that's you
lkba has quit [Ping timeout: 264 seconds]
<jhass> go with the API
<jhass> add a route that returns json with the current amounts
zeroDivisible has joined #ruby
Scroff has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
glyph_machinery has joined #ruby
vasilakisfil_ has quit [Quit: Konversation terminated!]
blandflakes has quit [Disconnected by services]
glyph_machinery is now known as blandflakes
vasilakisfil_ has joined #ruby
endash has quit [Quit: endash]
Igorshp has joined #ruby
casadei has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
endash has joined #ruby
NeverDie_ has joined #ruby
freerobby has joined #ruby
drewvanstone has joined #ruby
baweaver has joined #ruby
Igorshp has quit [Ping timeout: 265 seconds]
pengin has quit [Remote host closed the connection]
NeverDie has quit [Ping timeout: 264 seconds]
pengin has joined #ruby
<BrianBoyko> Is this *something* like what I'm looking for? https://gist.github.com/brianboyko/103bf136b75532c8eb24
djbkd has quit [Remote host closed the connection]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
<jhass> I don#t see how that could work
flughafe1 has joined #ruby
baweaver has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
<jhass> you're completely mixing the DSL of sinatra with the pg gem here
[k- has quit [Quit: -a- IRC for Android 2.1.25]
yardenbar has quit [Ping timeout: 264 seconds]
NeverDie_ has quit [Quit: Textual IRC Client: www.textualapp.com]
tuelz has joined #ruby
Torrieri has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
rdark has quit [Ping timeout: 246 seconds]
chinmay_dd has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
flughafen_ has quit [Ping timeout: 276 seconds]
mary5030_ has joined #ruby
fmcgeough has joined #ruby
doublemalt_ has joined #ruby
nobitanobi has quit []
yayfoxes_ has quit [Ping timeout: 244 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Remote host closed the connection]
baweaver has joined #ruby
jmignault has joined #ruby
StephenOTT has joined #ruby
t0rrieri has joined #ruby
jackjackdripper has joined #ruby
olistik has quit [Remote host closed the connection]
atom3 has joined #ruby
chinmay_dd has joined #ruby
Torrieri has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
djbkd has joined #ruby
sinkensabe has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
t0rrieri has quit [Client Quit]
t0rrieri has joined #ruby
lucianosousa has joined #ruby
t0rrieri has quit [Client Quit]
ramfjord has joined #ruby
bluOxigen has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
ramfjord has left #ruby [#ruby]
ramfjord has joined #ruby
mary5030_ has quit [Remote host closed the connection]
ponch_ has joined #ruby
mary5030 has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
ponch_ has quit [Remote host closed the connection]
ruv has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
yardenbar has joined #ruby
Scroff has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
hahuang65 has joined #ruby
<BrianBoyko> jhass - I just can't wrap my head around this right now. I'm going to crash, I'll be back in a bit.
BrianBoyko has quit [Quit: Leaving]
bhorn1 has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
chinmay_dd has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
ghostpl has joined #ruby
chinmay_dd has joined #ruby
dgutierrez1287 has joined #ruby
AlphaAtom has joined #ruby
snockerton has quit [Quit: Leaving.]
olistik has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
snockerton has joined #ruby
ruv has joined #ruby
workmad3 has joined #ruby
DroidBur_ has quit []
ivorpad has quit [Ping timeout: 264 seconds]
droidburgundy has joined #ruby
mary5030_ has joined #ruby
JoshL has joined #ruby
mary5030_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 272 seconds]
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Ping timeout: 252 seconds]
olistik has quit [Ping timeout: 272 seconds]
tractatus has joined #ruby
bronson has joined #ruby
droidburgundy has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
Flcn has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
droidburgundy has joined #ruby
yayfoxes_ has joined #ruby
baweaver has joined #ruby
workmad3 has joined #ruby
rjno has quit []
jhass is now known as DeBot
DeBot is now known as jhass
nickfausnight has joined #ruby
kirun has joined #ruby
I has joined #ruby
I has left #ruby [#ruby]
dopie has joined #ruby
B1n4r10 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
adaedra is now known as adaedra_
vasilakisfil_ has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
troulouliou_dev has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
ta has joined #ruby
adaedra_ is now known as adaedra
platzhirsch has quit [Ping timeout: 256 seconds]
moted has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Read error: Connection reset by peer]
olas has joined #ruby
kahuna_ has joined #ruby
chinmay_dd has joined #ruby
rdark has joined #ruby
<olas> is there a way to query how many bytes are in a c type on your system? (for example: how many bytes in a uint64_t on centos7)
<olas> with ruby
OrbitalKitten has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
<jhass> mmh, maybe ffi has something
<adaedra> a uint64_t is always 64 bits
eggoez has quit [Ping timeout: 248 seconds]
baweaver has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
chinmay__ has joined #ruby
_solomon has joined #ruby
lkba has joined #ruby
chinmay_dd has quit [Ping timeout: 256 seconds]
shadoi has quit [Quit: Leaving.]
sarkyniin has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marciotex has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
netmask has joined #ruby
netmask is now known as net_mask
net_mask has quit [Client Quit]
lkba_ has quit [Ping timeout: 246 seconds]
speakingcode has joined #ruby
duderonomy has quit [Ping timeout: 244 seconds]
acovrig has joined #ruby
<shevy> hmm I have some scripts that generate some files
<shevy> ruby scripts
<shevy> it takes a bit too long for my taste though
<shevy> 4 seconds in total perhaps
bb010g has quit [Quit: Connection closed for inactivity]
<acovrig> Is there a way to append an item to an array in a hash on the fly (so I don’t have to have a var_name[:hash_item] = Array.new just before the loop)?
<shevy> how should one go about trying to optimize it for speed?
nhhagen has joined #ruby
ItSANg___ has joined #ruby
B1n4r10 has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
<apeiros> acovrig: hash = {key: []} before the loop is the best choice IMO
s2013 has joined #ruby
<apeiros> but you can do `hash[:key] ||= []; hash[:key] << item`
ItSANgo has quit [Ping timeout: 252 seconds]
<apeiros> or `hash = Hash.new { |h,k| h[k] = [] }; …your loop… hash[:key] << item`. note that this variant creates a new array on *lookup* already.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tractatus has left #ruby [#ruby]
casadei has joined #ruby
ebernhardson has joined #ruby
fabrice31 has quit [Ping timeout: 248 seconds]
infinitone has joined #ruby
charliesome has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
wildroman2 has joined #ruby
marr has quit [Ping timeout: 264 seconds]
sarkyniin has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ivorpad has joined #ruby
kaleido has quit [Ping timeout: 246 seconds]
eggoez has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
quimrstorres has quit [Remote host closed the connection]
jenrzzz has joined #ruby
netmask has joined #ruby
AlphaAtom has joined #ruby
dented42 has joined #ruby
mary5030 has joined #ruby
cir0x has quit [Quit: Leaving.]
workmad3 has joined #ruby
kahuna_ has quit [Quit: Lost terminal]
chinmay__ has quit [Ping timeout: 265 seconds]
dfinninger has quit []
CustosLimen has quit [Ping timeout: 256 seconds]
DroidBur_ has joined #ruby
mary5030_ has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
droidburgundy has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hoov has quit [Quit: Leaving]
acke has joined #ruby
polysics has joined #ruby
ttilley has joined #ruby
Xeago has joined #ruby
Tai15 has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
<acovrig> apeiros: thanks, I’m new to ruby (coming from PHP); I’m guessing I would need to use a class to be able to do something like dev.size (https://gist.github.com/acovrig/82aed87de4f563aea484)?
langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
<apeiros> acovrig: generic tips:
Guest57 has joined #ruby
skade has joined #ruby
<apeiros> a) snake_case method names: get_devs
gregf has joined #ruby
<apeiros> b) no get_foo, set_foo, or is_foo. we use foo, foo=, foo? instead
Guest57 has quit [Client Quit]
<apeiros> c) use {} instead of Hash.new, use [] instead of Array.new
Igorshp has joined #ruby
<apeiros> re your question - you mean e.g. at line 17? `devs.size1.push(dev)` instead of `devs[:size1].push(dev)`?
<shevy> get_devs
<shevy> does this give me new devs?
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
ttilley has quit [Ping timeout: 255 seconds]
ponga has quit [Quit: Leaving...]
B1n4r10 has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
Asher has quit [Quit: Leaving.]
<atmosx> yes
ebernhardson has left #ruby [#ruby]
<atmosx> 5 USD/hr each
<atmosx> for ruby/ror
<atmosx> lol
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
marciotex has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
<centrx> shevy'll do it for $4.99!
CustosLimen has joined #ruby
chinmay_dd has joined #ruby
phutchins has joined #ruby
<apeiros> I doubt shevy would ever do rails
duderonomy has joined #ruby
<acovrig> apeiros: not exactly, but it makes me think differently; with either method, wouldn’t I end up with devs = {:size1=>[dev], :size2=>[]} if there isn’t any of size2, and if so how would I remove the empty array if it is empty?
rdark has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
<apeiros> acovrig: I don't follow.
drewvanstone has quit [Ping timeout: 252 seconds]
<atmosx> apeiros: why not?
rdark has joined #ruby
drewvanstone has joined #ruby
<atmosx> shevy: why no rails?
<apeiros> atmosx: regarding shevy?
<atmosx> apeiros: yes
<apeiros> just ask them about their opinion on rails ;-)
<acovrig> apeiros: just understood the ||= message above, it seems to work well
<atmosx> shevy: What do you think of the highly acclaimed ruby-based programming framework called rails? lol
<dfockler> I don't understand why it's called rails
<dfockler> or Ruby on Rails for that matter
<apeiros> dfockler: because there isn't a lot for you to decide on
<|work> dfockler: Because extending the metaphor.
<dfockler> Ruby Train!
djbkd has joined #ruby
chinmay_dd has quit [Ping timeout: 264 seconds]
pengin has quit [Remote host closed the connection]
<apeiros> I'm not kidding btw., afaik that's the reason. rails is (or was) opinionated. so it took many decisions away from you. i.e. you were "on rails".
<apeiros> (and hence could focus on your "real" tasks)
jmignault has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> Guys, is there any website listing ip and domain names of all the sites that someone would wanna "block" (porn, torrents, etc.?). I've seen only phishing websites listed.
<dfockler> Ruby in Handcuffs
<|work> Ruby ala DHH.
_solomon has quit [Quit: _solomon]
<dfockler> atmosx: might check out some antivirus sites???, or just ask the UK gov't
jenrzzz has quit [Ping timeout: 264 seconds]
rdark has quit [Ping timeout: 244 seconds]
drewvanstone has quit [Ping timeout: 246 seconds]
<atmosx> dfockler: I've got the UK's "official" list from wikipedia. Well probably the 'public' one... I'm not sure how does one feel living in the UK, privacy-wise. Today I've read that 'Ghost' blogging platform is migrating it's infrastructure to the Netherlands, due to privacy concerns.
<atmosx> There other UK online services moving abroad too. I'm afraid that in a decade you won't be able to purchase online services from foreign countries
Asher has joined #ruby
<dfockler> atmosx: yeah I just read about that stuff
Asher is now known as Guest57162
pontiki has joined #ruby
zer0ne has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
Guest57162 has quit [Client Quit]
<atmosx> dfockler: govs and marketers are killing the internet as we know it. My twitter timeline is full of 'promotion' messages and my 'friend requests' are mostly by bots.
zer0ne is now known as zero_one_
<centrx> Twitter? What's that?
<dfockler> I read twitter on the cli, so I don't see anything but words
<atmosx> dfockler: what client?
sdwrage has quit [Quit: This computer has gone to sleep]
<dfockler> rainbowstream
<atmosx> and why do you do that btw?
lolmaus has joined #ruby
<dfockler> so it doesn't look like I'm browsing twitter at work
<atmosx> ah
<atmosx> smart
yqt has joined #ruby
<shevy> atmosx no I meant because apeiros was calling a get_devs method ... <apeiros> a) snake_case method names: get_devs
<atmosx> it kills the experience but whatever...
<dfockler> atmosx: It's like 70% of the experience, and without ads
<slash_nick> shevy: that only returns your current devs... to get new devs i think it's get_devs!... or you can just disable dev caching
yayfoxes_ has quit [Quit: WeeChat 1.0.1]
<shevy> hehe
<shevy> dev caching... do I store them in the cellar or what
<slash_nick> cellar is okay... not your wine cellar though, you know devs
<Aria> Prune your twitter lists. Block followers who are spammy or who don't interact like human beings. Block the jerks. Follow people unlike you but who can see nuance. Block people who won't see nuance.
marciotex has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aria> You'll have a very different experience.
yh has joined #ruby
<atmosx> dfockler: you writ eon terminal at work, emacs/vim?
<atmosx> dfockler: well the without 'ads' is a good one. Don't spread the word around because twitter will find the way to inject adds on clients too in the long run.
baweaver has joined #ruby
<dfockler> slowly adopting vim, although it's a little 'much' for doing CSS/HTML
<atmosx> Aria: hm, a reason I don't miss my FB account is that I "had" to follow many peoplw I didn't care... It was depressing.
baweaver has quit [Remote host closed the connection]
<shevy> dfockler don't let it play with your brain!
<atmosx> dfockler: hm, well if you use a shortcut to load the browser on the fly, it's okay.
<Aria> Indeed. Private lists that are your 'real' attention are even better.
sandstrom has joined #ruby
<Aria> That way you can 'follow' for social lubrication but not actually pay attention
<Aria> likewise muting
husanu has quit [Remote host closed the connection]
husanu has joined #ruby
<atmosx> dfockler: I use vim and espresso for my CSS. But I'm an amateur.
<atmosx> Aria: I muted only 2 people.
<atmosx> Aria: also,I'd like my timeline to be less about politics and more about programming but even that apparently, it's hard to achieve. Anyway, twitter is not a real 'problem'.
sdwrage has joined #ruby
baweaver has joined #ruby
<shevy> social lubrication
kadoppe has quit [Ping timeout: 276 seconds]
<atmosx> jhass: you were right, adding bs=1m and usind /dev/rdisk improved my r/w speeds considerably, I just copied 8 GB really fast.
<shevy> interesting word combinations are created here!
<slash_nick> dfockler: if you become proficient with vim, i doubt you'll keep that feeling that it's too much (even for html/css)
nhhagen has quit [Remote host closed the connection]
<dfockler> slash_nick: probably, I like it, I just don't yet have all the skills that I do in sublime
<Aria> Heh. If only we could separate the politics from programming, but it turns out our actions as programmers have social consequences. And hence we can't ignore politics.
<atmosx> slash_nick: I hate the copy/paste I mean yank/paste even registers are kinda tricky, too long combinations.
<dfockler> Aria: politics is a part of humanity, like it or not
<atmosx> I need to optimize that... I mean registers are awesome but having a 'combo' instead of a quick shortcut is a pain
kadoppe has joined #ruby
slumos has left #ruby [#ruby]
<Aria> Indeed. Politics is literally what happens when humans interact in groups.
<Aria> (I don't actually want to separate them. I've got more specific goals.)
Soda has joined #ruby
<atmosx> Aria: I would like to be more patient and state my opinion in less aggressive ways (especially when I strongly disagree).
<Aria> Indeed. It takes practice to do so.
<Aria> (And is worth every moment of that practice)
<atmosx> I'm reading a sort of thesis about why people seem so unreasonable when talking about politics/social topics. It's kinda interesting although not very convincing (so far)
<atmosx> Aria: well, I need to try harder apparently heh.
Casty has joined #ruby
RegulationD has joined #ruby
nofxxxx has joined #ruby
cir0x has joined #ruby
tuelz has quit [Ping timeout: 252 seconds]
sarkyniin has joined #ruby
baweaver has quit [Remote host closed the connection]
wallerdev_ has quit [Quit: wallerdev_]
DroidBur_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
droidburgundy has joined #ruby
frem has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
sarkyniin has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 256 seconds]
yalue has joined #ruby
quimrstorres has joined #ruby
k3asd` has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
sarkyniin has joined #ruby
hudsama has quit [Quit: Leaving]
shadeslayer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
olistik has joined #ruby
yayfoxes_ has joined #ruby
marr has joined #ruby
Bertg has joined #ruby
DLSteve has joined #ruby
hahuang65 has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
Asher- has joined #ruby
khebbie has joined #ruby
User458764 has joined #ruby
Asher- is now known as asher
asher is now known as Asher
elia has joined #ruby
langlands has joined #ruby
baweaver has joined #ruby
Tai15 has quit [Read error: Connection reset by peer]
droidburgundy has quit []
NeverDie_ has joined #ruby
adamjleonard has joined #ruby
langlands has quit [Client Quit]
drewvanstone has joined #ruby
NeverDie has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gccostabr has joined #ruby
benolee has joined #ruby
skade has joined #ruby
skade has quit [Client Quit]
yayfoxes_ has quit [Quit: WeeChat 1.0.1]
benolee has quit [Client Quit]
markov_twain has joined #ruby
pengin has joined #ruby
zotherstupidguy has joined #ruby
markovtwain has quit [Ping timeout: 246 seconds]
wallerdev_ has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
CustosLimen has quit [Ping timeout: 255 seconds]
Or1on has joined #ruby
wildroman2 has quit [Remote host closed the connection]
JoshL has quit []
<atmosx> cool, the new RPi seems to be way faster then the old one.
<adaedra> The B2?
<adaedra> or there another new one?
yfeldblum has joined #ruby
yayfoxes_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
skade has joined #ruby
Azure has quit [Read error: Connection reset by peer]
tvw has joined #ruby
skade has quit [Client Quit]
Azure has joined #ruby
skade has joined #ruby
eggoez has joined #ruby
aphprentice has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfockler> what's the best way in ruby to standardize various date formats?
<apeiros> dfockler: too vague
<apeiros> string input?
<havenn> dfockler: What do you have and what do you want to end up with?
havenn is now known as havenwood
<dfockler> yeah I have a date strings in various formats, and need them in a single format
<apeiros> strptime IMO
workmad3 has joined #ruby
<apeiros> but depends on the (undisclosed) details
Flcn has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Or1on> I'm thinking of working a sort of capslock manager on ruby as a learning project. I'd like to use caps+w to popup a list of opened windows that I can switch to by typing the name. I also want to use caps+hjkl as arrows keys, sort of like a vim mode. Which libraries could help me with this?
markov_twain has quit [Quit: markov_twain]
skade has quit [Quit: Computer has gone to sleep.]
aryaching has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
xelkarin has joined #ruby
<Or1on> I think there is a way to use autohotkey with ruby... maybe I could use gtk or qt for the window list... I'm not sure how I can get a list of opened windows from a linux windows manager or OSX/ windows from ruby
CustosLimen has joined #ruby
Azure has quit [Read error: Connection reset by peer]
centrx has quit [Quit: Shutting down, Please wait...]
blackmes1 has joined #ruby
centrx has joined #ruby
blackmes1 has quit [Client Quit]
<atmosx> adaedra: CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d ... well no idea I think it's widely known as RPi v2
slackbotgz has quit [Remote host closed the connection]
<atmosx> adaedra: 1G RAM, armv7
<adaedra> yeah should be that
<adaedra> I'm pondering about getting one
slackbotgz has joined #ruby
jschoolcraft has joined #ruby
<atmosx> well it's fast.
<atmosx> the only complain I've found around is the micro-sd ... everyone would like a faster throughput there
<atmosx> but it's ok, generally speaking
peter_paule has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GreatSUN has quit [Ping timeout: 246 seconds]
Alayde has quit [Ping timeout: 256 seconds]
yh has quit [Ping timeout: 250 seconds]
skade has joined #ruby
peter_paule has quit [Ping timeout: 276 seconds]
chris2 has quit [Ping timeout: 244 seconds]
KnownSyntax has joined #ruby
_ht has quit [Quit: Konversation terminated!]
skade has quit [Client Quit]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
anisha has quit [Quit: Leaving]
scripore has joined #ruby
drewvanstone has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
NeverDie has joined #ruby
<shevy> dumdedum
nickfausnight has quit [Quit: Connection closed for inactivity]
k25611 has joined #ruby
k25611 has left #ruby [#ruby]
bosma has joined #ruby
Alayde has joined #ruby
NeverDie_ has quit [Ping timeout: 250 seconds]
NeverDie_ has joined #ruby
drewvanstone has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
iwaffles has joined #ruby
blandflakes has joined #ruby
Hobogrammer has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
cpruitt has quit [Quit: cpruitt]
NeverDie has quit [Ping timeout: 272 seconds]
nonparfumee has joined #ruby
crazydiamond has joined #ruby
drewvanstone has quit [Ping timeout: 264 seconds]
chris2 has joined #ruby
dgutierrez1287 has joined #ruby
x1337807x has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
Narzew has joined #ruby
skade has joined #ruby
drewvanstone has joined #ruby
nonparfumee has quit [Client Quit]
spider-mario has joined #ruby
micmus has quit [Ping timeout: 265 seconds]
kahunaio has joined #ruby
_kfpratt has quit [Remote host closed the connection]
ttilley has joined #ruby
thelastinuit has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
otisZart has joined #ruby
symm- has joined #ruby
ttilley has quit [Ping timeout: 250 seconds]
acke has quit [Remote host closed the connection]
patrick_star has joined #ruby
nateberkopec has quit [Quit: Leaving...]
kahunaio has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
SansSerif has joined #ruby
SansSerif has quit [Read error: Connection reset by peer]
CustosLimen has quit [Ping timeout: 246 seconds]
blackmes1 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
SansSerif has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
micmus has joined #ruby
Alayde_ has joined #ruby
pdoherty has quit [Quit: Leaving]
pehlert has joined #ruby
polysics has quit []
diegoviola has quit [Quit: WeeChat 1.2]
Alayde has quit [Read error: Connection reset by peer]
dopie has joined #ruby
acovrig has quit [Quit: acovrig]
CustosLimen has joined #ruby
jerius has quit [Quit: /quit]
<pehlert> Hey all! Maybe someone can explain this to me.. I have a rake task which spawns a couple of threads to fetch data via net/http. The remote ends are extremely slow, so most of the time should be IO wait. However, I don't have the impression that the threads really execute in parallel (e.g. netstat shows only one connection at a time).. I know there is the GIL, but shouldn't a thread still yield back when ther
<pehlert> e is IO wait?
ruv has quit [Ping timeout: 256 seconds]
rodfersou has quit [Remote host closed the connection]
dstarh has quit [Max SendQ exceeded]
roolo has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
BTRE has joined #ruby
<jhass> yes it should, thus
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
B1n4r10 has joined #ruby
jacor has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
jacor has joined #ruby
sarkyniin has quit [Remote host closed the connection]
idafyaid has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarkyniin has joined #ruby
yh has joined #ruby
mordocai has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<pehlert> jhass: http://pastie.org/10255445 - sorry, took a sec to preparte
athos_diddy has quit []
zero_one_ has quit [Remote host closed the connection]
<pehlert> The code is too complex to post it all, but this should be the gist of it
zero_one_ has joined #ruby
<jhass> well, nothing obviously wrong about it, maybe there's a hidden lock somewhere?
prinsen has joined #ruby
jmoles has joined #ruby
<pehlert> jhass: Possibly, but I really have not idea where..
lucianosousa has quit [Quit: lucianosousa]
<pehlert> jhass: Are there any othzer ways to lock than Mutex.new.synchronize?
sarkyniin has quit [Remote host closed the connection]
Palmer11 has joined #ruby
<jhass> no, but it can be hidden in Monitor/MonitorMixin
<prinsen> I have a .so dynamic module that I have generated with Swig. Is there any way to generate documentation for it, or download a IDE with autocompletion features?
sarkyniin has joined #ruby
<jmoles> Hello Rubyists!!! I have, in some code of mine, a Symbol instance I recieved by enumerated the methods of a class instance with grep() and picking the one I want. I can easily call this method now with .call[:sym], but I'd like to do this same thing INSIDE a class.
<jmoles> It is proving... harder.
<jmoles> Whoops, I mean .send(:sym).
<Senjai> ?code jmoles
<ruboto> jmoles, We can't help you without your code, please post it to https://gist.github.com
<jmoles> I will, one sec.
<jhass> pehlert: one thing you could try (and be it to find out), to spawn a new thread for each request and delaying that until after you have fetched all data, so Thread.new do http.request(request); end; essentially
ldnunes has quit [Quit: Leaving]
arooni-mobile has joined #ruby
lucianosousa has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
Narzew has quit [Ping timeout: 248 seconds]
<jhass> pehlert: the other approach would be to leave the concurrency out of the ruby part and just push requests to typhoeus hydra
<pehlert> jhass: Hum, that might be an idea. A quick grep through my gem dependencies has not shown any uses of Mutex :(
ndrei_ has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
dx7 has joined #ruby
sarkyniin has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pehlert> jhass: That would be extremely difficult to refactor, though :-/
<pehlert> sigh
atom3 has quit [Ping timeout: 276 seconds]
<jhass> huh? shouldn't be harder than pushing the Thread.new down, probably even easier
netmask has quit [Remote host closed the connection]
<pehlert> true, neither will be very easy
nemesit|znc has quit [Ping timeout: 272 seconds]
atom3 has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
<jhass> well, that statement does make me wonder how much your example does relate to your real code tbh ;)
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> other hidden locks could be contentions on a queue or a connection pool btw
<pehlert> jhass: There're really just a few wrapper classes and the actual worker does 3 not 1 http request. But for the requests, they are all similar to this, so nothing special is happening which is not visible in the pastie
scx_ has joined #ruby
addisonhuddy has joined #ruby
arescorpio has joined #ruby
<jmoles> Senjai: ruboto: damnit, now it's not happening anymore. :)
gccostabr has quit [Quit: ZZZzzz…]
jtbnyc69 has joined #ruby
<jhass> ?ruboto
<ruboto> I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
<pehlert> jhass: I thought about ActiveRecord's connection pool being an issue here, but there are only 5 customers and 10 connections in the pool, so that shouldn't be an issue either
<jtbnyc69> hello everyone, can anyone recommend the preferred debugger for ruby these days? ruby 2.x and not rails, just straight ruby?
<pehlert> What a sentence.. Sorry, getting tired
ttilley has joined #ruby
<jhass> ?rails jtbnyc69
<ruboto> jtbnyc69, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jhass> blerg, wrong one, sorry
<jhass> ?pry jtbnyc69
<ruboto> jtbnyc69, 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
<jhass> bad muscle memory :/
<jtbnyc69> ruboto: anything supported under emacs?
bronson has joined #ruby
<jhass> jtbnyc69: anyway pry ^ + pry-byebug, pry-stack_explorer + pry-rescue and possibly pry-remote
lavros has quit [Quit: leaving]
nemesit|znc has joined #ruby
<jhass> maybe there's a byebug plugin for emacs, who knows
scx has quit [Ping timeout: 246 seconds]
eggoez has joined #ruby
<jhass> but I'd just go with a second shell, pry is nothing you want to miss out
sarkyniin has joined #ruby
<jhass> pehlert: me too apparently ;)
<jtbnyc69> thank you so jhass and ruboto
<shevy> lol
<shevy> ruboto is just a spam-bot jtbnyc69
scx has joined #ruby
bohallor has quit [Ping timeout: 264 seconds]
<jhass> I see, once it tracks karma it also needs to track its own
<jtbnyc69> oh, ruboto is quite good. 8)
<shevy> jtbnyc69 it can actually be useful
<shevy> you can use it to eval ruby code live here
<jtbnyc69> neat
<shevy> >> puts 'jhass is helpful ' * 2
<ruboto> shevy # => jhass is helpful jhass is helpful ...check link for more (https://eval.in/386460)
Narzew has joined #ruby
scx_ has quit [Ping timeout: 246 seconds]
ghostpl has quit [Remote host closed the connection]
<shevy> though the formatting is a bit confusing... I liked the old eval-in output more, to denote the "string" part, and then just provide a link; perhaps putting the "check link" into the () part
ttilley has quit [Ping timeout: 276 seconds]
choke has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
choke has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #ruby
choke has joined #ruby
iwaffles has quit [Quit: iwaffles]
<Senjai> >> (1..500).inject(:*)
<ruboto> Senjai # => 1220136825991110068701238785423046926253574342803192842192413588385845373153881997605496447502203281 ...check link for more (https://eval.in/386461)
chinmay_dd has joined #ruby
addisonhuddy has quit [Ping timeout: 250 seconds]
NeverDie_ has quit [Ping timeout: 252 seconds]
ttilley has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ttilley has quit [Changing host]
ttilley has joined #ruby
droidburgundy has joined #ruby
<atmosx> >> (1..500).inject(:+)
<ruboto> atmosx # => 125250 (https://eval.in/386462)
<atmosx> Gauss
<atmosx> night all
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
danman has quit [Quit: danman]
doublemalt__ has joined #ruby
chinmay_dd has quit [Ping timeout: 255 seconds]
Jarboe has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
momomomomo has quit [Client Quit]
drewvanstone has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
pehlert has quit [Quit: Lost terminal]
iamninja has joined #ruby
doublemalt_ has quit [Ping timeout: 256 seconds]
langlands has joined #ruby
Jackneill has quit [Remote host closed the connection]
x1337807x has joined #ruby
doublemalt__ has quit [Quit: Leaving]
DoubleMalt has joined #ruby
minibar has left #ruby ["minibar is closed"]
jtbnyc69 has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
mices has joined #ruby
<mices> what does @ mean in ruby
drewvanstone has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has joined #ruby
NeverDie_ has joined #ruby
danman has joined #ruby
<mices> it means an "object" ?
<mices> as in referencing a row in a table
<Ox0dea> mices: @foo is an instance variable, and @@bar is a class variable.
<mices> yikes
<mices> what's the rails channel?
Deele has quit [Ping timeout: 256 seconds]
<Ox0dea> Have a guess.
B1n4r10 has joined #ruby
<mices> redirects to ##namespace##
<Ox0dea> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<mices> ty
olistik has quit [Remote host closed the connection]
<Ox0dea> Pop quiz! Where else is '@' syntactically meaningful in Ruby?
olistik has joined #ruby
NeverDie has quit [Ping timeout: 244 seconds]
Palmer11 has quit [Quit: Palmer11]
lele has quit [Ping timeout: 272 seconds]
fmcgeough has quit [Quit: fmcgeough]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
arooni-mobile has quit [Ping timeout: 248 seconds]
momomomomo has joined #ruby
qhartman has joined #ruby
umgrosscol has quit [Ping timeout: 252 seconds]
chris2 has quit [Ping timeout: 246 seconds]
momomomomo has quit [Client Quit]
olistik has quit [Ping timeout: 272 seconds]
Guest54 has quit [Quit: Textual IRC Client: www.textualapp.com]
ItSANg___ has quit [Ping timeout: 265 seconds]
zero_one_ has quit []
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
ItSANgo_ has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
dcarmich has joined #ruby
pontiki has quit [Quit: ZZZZZZZZ<clunk>NNNNNNNNN]
soulcake has joined #ruby
choke has joined #ruby
vasilakisfil_ has joined #ruby
kirun has quit [Quit: Client exiting]
<finisherr> Does anyone have any examples of how to use aruba w/ rspec tests?
avahey has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
icebourg has quit []
Synthead has quit [Quit: Leaving]
Pupeno_ has joined #ruby
NeverDie has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
<finisherr> I’m looking here: https://github.com/cucumber/aruba
decoponyo has joined #ruby
vasilakisfil_ has quit [Client Quit]
vasilakisfil__ has joined #ruby
<finisherr> everything up to step 4 seems fine but there are no examples of some of any added features like expectation methods and such
dopie has quit [Quit: This computer has gone to sleep]
lele has joined #ruby
BrianBoyko has joined #ruby
<BrianBoyko> The answer came to me in a dream!
arooni-mobile has joined #ruby
NeverDie_ has quit [Ping timeout: 264 seconds]
pontiki has joined #ruby
decoponio has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
<prinsen> How would you generate documentation for a .so extension?
sandstrom has quit [Quit: My computer has gone to sleep.]
baweaver has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has joined #ruby
netmask has joined #ruby
<apeiros> prinsen: either have the source (rdoc can handle C, maybe also C++, not sure)
phutchins has quit [Ping timeout: 255 seconds]
SpleezeDos has quit [Quit: QUIT]
<apeiros> prinsen: or fake it (write a .rb with just the class- & method-names + docs, no actual implementation)
momomomomo has joined #ruby
chris2 has joined #ruby
endash has quit [Quit: endash]
Azure has joined #ruby
Scroff has quit [Remote host closed the connection]
soxet has quit [Ping timeout: 256 seconds]
baweaver has quit [Ping timeout: 246 seconds]
soxet has joined #ruby
jfarmer has joined #ruby
momomomomo_ has joined #ruby
droidburgundy has quit [Remote host closed the connection]
umgrosscol has joined #ruby
danman has quit [Quit: danman]
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
<prinsen> apeiros: its generated by swig, so i have the .cpp source
NeverDie has joined #ruby
<Senjai> finisherr: I wouldn't use aruba
<Senjai> it's too invasive
thalassa has quit [Remote host closed the connection]
<Senjai> I woiuld seperate the logic from the CLI and other classes and test those classes individually
elia has quit [Quit: Computer has gone to sleep.]
<prinsen> apeiros: but the .cpp source is 3.7 Mb and takes forever, ill let it run over night and then try c
<Senjai> I would test the CLI interface with a shell script probably
<finisherr> I want to learn how to do integration tests on CLI apps
<finisherr> instead of just testing invididual method functionality
<Senjai> finisherr: Just use a shell script, or execute the binary in ruby
<Senjai> finisherr: Not instead of, with
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
<Senjai> finisherr: You should have both
<finisherr> i want to say, when i run this, exec tthis
<finisherr> oh yeah for sure
<finisherr> yeah, i mean, i guess i could just use rspec for that
<Senjai> Sure can
<Senjai> But dont bring aruba in
spider-mario has quit [Ping timeout: 252 seconds]
<Senjai> You can do ... interesting things with assigning stdin and stdout to other variables for the context
<Senjai> But it adds a decent amount of complexity that I don't think is worth it
devdazed has quit [Quit: Computer has gone to sleep.]
Igorshp has quit [Remote host closed the connection]
spider-mario has joined #ruby
Rapier- has left #ruby ["(null)"]
<finisherr> I’m going to give this a shot
thalassa has joined #ruby
cytoskeletor has joined #ruby
gianlucadv has quit [Ping timeout: 264 seconds]
arooni-mobile has quit [Ping timeout: 248 seconds]
malconis_ has joined #ruby
malconis has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
pontiki has quit [Quit: <poit>]
danman has joined #ruby
<dudedudeman> shevy: where my boo at
otisZart has quit [Ping timeout: 265 seconds]
Zai00 has quit [Quit: Zai00]
Papierkorb_ has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
husanu has quit [Remote host closed the connection]
sdwrage has quit [Quit: Leaving]
husanu has joined #ruby
<Senjai> finisherr: With aruba?
Chrislivecodingt has joined #ruby
<finisherr> with rspec natively
<finisherr> and rake
<Senjai> just by running the command from rspec?
<Senjai> dont use rake, just use bin/whatever
<finisherr> I was going to use Mixlib::ShellOut
<Senjai> Uhm
<finisherr> to run the commands
<Senjai> `./bin/myfile`
mandarinkin has joined #ruby
<Senjai> fixed forever
dopie has joined #ruby
<Senjai> `./bin/myfile myargs`
Papierkorb has quit [Ping timeout: 244 seconds]
<finisherr> yeah, i guess that simplifies things
<Senjai> It does, but mixlib doesnt seem too terrible.
fabrice31 has joined #ruby
<Senjai> I just think it might be more than required
<Senjai> Eh, depends
<Senjai> I wouldn't -1 mixlib
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chris2 has quit [Ping timeout: 272 seconds]
sanjivupadhyaya has quit []
<Chrislivecodingt> Hey guys, am Chris from Livecoding.tv if you have questions on watching shows on Livecoding.tv let me know. There is an aesome show tonight on Livecoding.tv:
<Chrislivecodingt> TODAY: Founder of Wolfram Alpha on Livecoding.tv, 10pm NY time: "Wolfram Language". Follow him: https://www.livecoding.tv/stephen_wolfram/
t0rrieri has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<finisherr> i kinda like mixlib
rbennacer has joined #ruby
<finisherr> sorta used to usin it
<Senjai> Chrislivecodingt: Don't advertise man, not cool. Against freenode TOS
<shevy> dudedudeman I am very sleepy right now
Narzew has quit [Remote host closed the connection]
marciotex has joined #ruby
bronson has joined #ruby
<dudedudeman> shevy: sleeeeeep. i'm leaving work. haven't holldered in a few days. hollaaaaaaa
Yiota has joined #ruby
<shevy> I also have not written anything big in ruby the last some days :(
fabrice31 has quit [Ping timeout: 264 seconds]
mattbillock has joined #ruby
Respek has joined #ruby
djbkd has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 272 seconds]
netmask has quit [Remote host closed the connection]
ghostpl has joined #ruby
netmask has joined #ruby
<dudedudeman> shevy: you're fired!
<dudedudeman> off with your head
coderhs has joined #ruby
codecop has quit [Remote host closed the connection]
djbkd has joined #ruby
msnyon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 248 seconds]
freerobby has quit [Quit: Leaving.]
slackbotgz has quit [Remote host closed the connection]
Hobogrammer has quit [Quit: さようなら]
slackbotgz has joined #ruby
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chris2 has joined #ruby
netmask has quit [Ping timeout: 256 seconds]
netmask has joined #ruby
ghostpl has quit [Ping timeout: 276 seconds]
t0rrieri has quit [Quit: Be back later ...]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Chrislivecodingt has quit []
<eam> shevy: if you're bored (or if anyone else is) you could give me feedback on how this module should look before I release it https://github.com/eam/ruby-mdbm
whippythellama has quit [Quit: WeeChat 1.2]
bb010g has joined #ruby
netmask has quit [Ping timeout: 256 seconds]
uninitialized has joined #ruby
scripore has joined #ruby
baweaver has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
cir0x has quit [Quit: Leaving.]
msnyon has joined #ruby
bronson has quit [Remote host closed the connection]
<apeiros> eam: misses a license! :-O
* apeiros suggests BSD (because I like it and because mdbm is also under BSD)
DLSteve has quit [Quit: Leaving]
A205B064 has joined #ruby
eggoez has joined #ruby
bosma_ has joined #ruby
bosma has quit [Disconnected by services]
<eam> good catch
bosma_ is now known as bosma
t0rrieri has joined #ruby
<apeiros> I think an up-to-date rubygems warns you when you run `gem build`
last_staff has quit [Quit: ciaozzZZZ.....]
<eam> in terms of structure / idioms, did I do anything dumb?
<apeiros> still looking. I'm a bit slow right now (still single handed)
djbkd_ has joined #ruby
marciotex has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Senjai> Whe if then ?
<Senjai> why*
<apeiros> eam: oh, does RSTRING_PTR do arg error on its own?
<eam> Senjai: no clue, cargo culted
<eam> I am eager to learn the ways of mkmf.rb
bronson has joined #ruby
<apeiros> extconf is that thing which is just endlessly being copied over
<eam> apeiros: I think so? Let me check
<eam> actually, I think it may not - I had to StringValue() elsewhere
<Senjai> eam: I am also -1 on t for a test directory, but that isn't reall important.
<apeiros> eam: it's quite possible. I last wrote a c ext before that one existed :-S
<Senjai> C wise I dont see any glaring issues, but I dont extension often, or at all in ruby
<eam> how about in terms of the ruby interface
<eam> are these the right methods for a k/v store?
<apeiros> eam: btw., why don't you wrap the struct in self?
<Senjai> eam: I would check out the redis gem
<eam> apeiros: howso?
dseitz has quit [Quit: updates]
<apeiros> would also probably get rid of that performance issue I seem to remember
Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> ooh, you mean I don't need to put it into its own ivar?
<apeiros> eam: iirc README.EXT or pickaxe has an example
<apeiros> yepp
djbkd_ has quit [Ping timeout: 244 seconds]
<eam> oh that would be fantastic
Yiota has joined #ruby
skade has joined #ruby
<eam> and yeah, that'd 2x the speed :)
mary5030 has joined #ruby
<apeiros> weeee :D
ttilley has quit [Quit: Linkinus - http://linkinus.com]
<eam> license'd
<apeiros> eam: I think it's more common to call the test dir "test" instead of "t" :D
<apeiros> or tests?
<Senjai> Aye
<Senjai> I mentioned that
<Senjai> t is just weird
<eam> will do
phutchins has joined #ruby
<Senjai> but again, not really a biggie
<apeiros> test/unit is deprecated :(
<apeiros> minitest is the way to go afaik
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
<eam> similar structure?
<Senjai> Minitest is backwards compatable to iirc
<apeiros> your tests will probably work 1:1
<eam> rad
<Senjai> eam: It supports TestUnit by default iirc
<eam> as long as it's not rspec ;)
<apeiros> same feeling :o)
<Senjai> <3 rspec
<eam> I just want the same structure across languages
<apeiros> some synopsis in the readme would be nice
<Senjai> rspec is a language
<Senjai> geeze
<apeiros> (tiny example like open, store, retrieve, close)
<apeiros> eam: how portable is this? and does this support concurrent access from different processes?
<havenwood> eam: In your ruby-mdbm.gemspec might add an: s.license = "Apache-2.0"
<eam> havenwood: willdo
<eam> apeiros: libmdbm works great on freebsd/linux and I ported it to osx recently and it seems to do ok in ad-hoc use there
grzywacz has quit [Ping timeout: 246 seconds]
<eam> I've only installed this gem on osx/linux
<eam> but it oughta work elsewhere
<Senjai> What are you using mdbm for ?
atom3 has quit [Ping timeout: 276 seconds]
atom3 has joined #ruby
<Senjai> eam: I'd only run it on your os, if people want to run it on theirs, they can file an issue or submit a PR :P
<Senjai> my philosophy on supporting multiple systems 101
spidermario has joined #ruby
<eam> if travis had freebsd I'd happily test on it :)
<Senjai> But everything should stay as decoupled as possible still, no need to make it harder
<Senjai> You're a freebsd'er?
<Senjai> I've heard of you people
hsps_ has joined #ruby
<Senjai> I have one sitting beside me
<Senjai> Yall like unicorns
<|work> Did your mommy tell you about them?
spider-mario has quit [Ping timeout: 272 seconds]
<Senjai> It's actually a really good system from what I hear
<Senjai> But I'd still stick with linux i think
c355E3B has quit [Quit: Connection closed for inactivity]
<eam> Senjai: I'm using it to cache some k/v lookups that were in sqlite, but sqlite is three orders of magnitude slower (even after tuning)
spidermario is now known as spider-mario
shadoi has joined #ruby
<Senjai> eam: uhm.. sec
<eam> no I'm a linux'er but I've worked at big freebsd shops before
_djbkd has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
<eam> yeah, went through all that
djbkd has quit [Read error: Connection reset by peer]
<Senjai> Redis?
<eam> way slower :)
<Senjai> I guess redis isn't guarenteed to be in memory
<Senjai> and over a connectioin
<eam> well, and there's a data copy
eggoez has quit [Ping timeout: 252 seconds]
bronson has quit [Remote host closed the connection]
<eam> mdbm is super fast, you can't really take advantage of it in ruby but it can be zerocopy
<Senjai> I dont know what that means
<Senjai> Just references the data?
<eam> yeah
<eam> just a hash, find pointer, here you go
<Senjai> which is why you're not using ruby hashes right?
<Senjai> arent rubies hash values stored as references?
<eam> well, my runtime is in C -- I'm using this gem to basically build caches offline where speed doesn't matter
<havenwood> eam: hmm: mdbm.c:2:10: fatal error: 'mdbm.h' file not found
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
coderhs has quit [Ping timeout: 248 seconds]
uninitialized has quit [Quit: Leaving]
<Senjai> Ahh okay
<eam> havenwood: if you're on osx: https://github.com/eam/homebrew-mdbm
<havenwood> eam: FreeBSD
<eam> aha uh, you'll have to build https://github.com/yahoo/mdbm
<eam> I don't know if they have a port for it
<havenwood> eam: I have the mdbm pkg installed.
<eam> aha. Hrm, do you know where it put mdbm.h?
<havenwood> sec, checking
<eam> hm I don't see mdbm in ports search
<Senjai> May need to modify flags for osx
<Senjai> eam: What do you do on the day to day?
<Senjai> if you dont mind my asking
<eam> I'm on a tiger team, I mostly get called in to figure out why stuff's broken
<havenwood> eam: oh, i... don't have it installed - dunno what I was thinking!
<havenwood> eam: nvm me :O
<eam> havenwood: I can lean on someone to get it into ports
<havenwood> eam: :)
<eam> yahoo still has a few core folks I believe
<Senjai> Tiger team?
spider-mario has quit [Ping timeout: 252 seconds]
pengin has quit [Remote host closed the connection]
<Senjai> Now I'm even more curious :P
WeiJunLi has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<eam> Senjai: pretty boring, glorified sysadmin and neckbeard
eggoez has joined #ruby
choke has joined #ruby
<apeiros> eam: oh, and after all the rest: looks nice :)
WeiJunLi has quit []
<eam> thx :) I'll ship it out then
pengin has joined #ruby
ecksit has joined #ruby
spider-mario has joined #ruby
<dfockler> Goose Team: We make problems for the tiger team to solve
<apeiros> hunter team: fires goose and tiger team :o)
danman has quit [Quit: danman]
skade has quit [Quit: Computer has gone to sleep.]
<apeiros> (aka silly short sighted managers)
<Senjai> eam: Can't always be a backlog though. Gotta have some free time I'd imagine
charliesome has quit [Quit: zzz]
snockerton has quit [Quit: Leaving.]
<eam> Senjai: ah yeah, I do assorted projects. Whatever falls between the org cracks
k3asd` has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
workmad3 has joined #ruby
ecksit has quit [Client Quit]
lalalaaa has joined #ruby
<Ox0dea> >> 255.inspect(16)
<ruboto> Ox0dea # => "ff" (https://eval.in/386490)
<Ox0dea> wat
<eam> right now I'm working on a centos6 -> 7 update path
<apeiros> Ox0dea: probably aliased to to_s
DoubleMalt has quit [Ping timeout: 252 seconds]
<Ox0dea> It is.
ecksit has joined #ruby
CloCkWeRX has joined #ruby
<Ox0dea> I submit that perhaps it oughtn't be.
dopie has quit [Quit: This computer has gone to sleep]
momomomomo_ has joined #ruby
<YamakasY> is ruby sexy ?
<lalalaaa> Hi! Trying to update my Forem topics count: `@forum.published_topics_count => 0`
<lalalaaa> But when I do `@forum.published_topics_count.increment!` I get: `NoMethodError: undefined method `increment!' for 0:Fixnum`
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
<apeiros> ?rails lalalaaa
<ruboto> lalalaaa, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<lalalaaa> oops
<apeiros> YamakasY: yupp
danman has joined #ruby
<Senjai> Ox0dea: I dont think it matters imo.
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
ecksit has quit [Client Quit]
<YamakasY> apeiros: so I can be sexy in here ? :D
<havenwood> eam: Gem installs for me on OS X with your tap.
<apeiros> YamakasY: nope
<Senjai> YamakasY: Definitely not
spider-mario has quit [Ping timeout: 252 seconds]
<YamakasY> oh no!
<YamakasY> now I must go bashing myself
<apeiros> have fun
<YamakasY> #bash :P
bentanweihao has joined #ruby
<YamakasY> later!
<Ox0dea> Senjai: It's pretty much the only case wherein #inspect accepts an argument.
<zenspider> lalalaaa: why would you persist a count when the db can just count them for you?
spider-mario has joined #ruby
<eam> havenwood: great :)
ecksit has joined #ruby
<Senjai> Ox0dea: But when do you use inspect for business logic? And without an argument it still behaves the same.
workmad3 has quit [Ping timeout: 252 seconds]
<Senjai> Ox0dea: I won't say you're wrong, just that I think its trivial enough to not care :P
<apeiros> zenspider: common case is performance. count can be slow.
<eam> havenwood: made https://github.com/yahoo/mdbm/issues/48 until I get my hands on a freebsd machine again
<lalalaaa> zenspider: dunno.. i've added a bunch of topics manually via my seeds.rb but their count all show up 0
<havenwood> eam: nice
<havenwood> \o/
Hobogrammer has joined #ruby
<Senjai> zenspider: It's called counter caching
<Senjai> ?rails lalalaaa
<ruboto> lalalaaa, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jhass> zenspider: it's a really common case for count to be slow, rails added counter caches as a library feature not without reason
<apeiros> Senjai: yer late mate :-p
<Senjai> apeiros: Y u gotta do this to me man
Rickmasta has joined #ruby
ecksit has quit [Client Quit]
<lalalaaa> Senjai: i know i was just trying to answer zenspider
hahuang65 has quit [Ping timeout: 276 seconds]
ecksit has joined #ruby
<Ox0dea> >> x = 1; [x.inspect(2), x += 0.1, (x.inspect(2) rescue 'LSP sadface')]
<ruboto> Ox0dea # => ["1", 1.1, "LSP sadface"] (https://eval.in/386491)
<Ox0dea> Senjai: ^
<Senjai> Ox0dea: I wouldn't -1 a pull request because its obviously invalid behavior.
<Ox0dea> Noted.
<Senjai> I just meant that inspect is a method I would never call. Only in pry really
ecksit has quit [Client Quit]
spider-mario has quit [Ping timeout: 255 seconds]
shadoi has quit [Ping timeout: 265 seconds]
<Senjai> I dont even want to know how you found this
<Senjai> As a segway, I dont like how rails impliments counter caches
<Senjai> The fact each row has the value is totally bleh. Denormalize that stuff man
<Senjai> Or use redis
tvw has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
freerobby has joined #ruby
t0rrieri has joined #ruby
tuelz has quit [Ping timeout: 252 seconds]
droidburgundy has joined #ruby
<Ox0dea> >> ['1'.hex, '1'.oct, ('1'.bin rescue 'wat')]
<ruboto> Ox0dea # => [1, 1, "wat"] (https://eval.in/386492)
<Ox0dea> String#bin really ought to exist, and I feel like Numeric should have matching methods which perform the reverse operations.
<lalalaaa> zenspider: Got it, just had to do `@forum.increment(:published_topics_count)` instead of `@forum.published_topics_count.increment!`
<Senjai> I would agree
<Ox0dea> Then we could try to find xs where x.hex.oct.bin.oct.hex.oct.hex.bin isn't 0.
finisherr has quit [Quit: finisherr]
<Senjai> lalalaaa: You should checkout redis for countercaching or https://github.com/wanelo/counter-cache
<momomomomo> or just add one in postgres
<Senjai> Ox0dea: I would +1 your bug
<Senjai> momomomomo: I prefer counter caches to be in memory if possible. But thats just me
casadei has quit [Remote host closed the connection]
mandarinkin has quit [Quit: Leaving]
<Senjai> But should definitely not be on every row
<momomomomo> I'd wonder what the difference is between a countercache in postgres and one in redis is
<momomomomo> performance wise
<lalalaaa> thanks Senjai looks pretty cool
<Senjai> momomomomo: Isn't postgres's stored in the database too?
<zenspider> lalalaaa: or: @forum.count(:published) then you don't have to persist something that is inherently redundant
<momomomomo> Senjai: if the counter is used often, it will remain in memory
rubie has quit [Remote host closed the connection]
ttilley has joined #ruby
Asher has quit [Quit: Leaving.]
<Senjai> zenspider: There are usecases for counter caching. count is a slow query.
<Senjai> momomomomo: But its still "persisted" though right?
<Senjai> Like on the row?
Asher has joined #ruby
<momomomomo> on a separate table's row typically
<Senjai> like a postgres table?
<momomomomo> why would you add a count for each row?
yfeldblum has quit [Remote host closed the connection]
<Senjai> In that case, thats fine
<Senjai> momomomomo: Rails does
<zenspider> Senjai: meh. without objective measurement I call bullshit.
<Senjai> momomomomo: That's denormalizing, and I'm pro that
tuelz has joined #ruby
<momomomomo> that's not denormalizing
lucianosousa has quit [Quit: lucianosousa]
<momomomomo> published topic count table
<momomomomo> which maps to published topics, and holds a count
<Senjai> Correct, and published_topics doesnt have a count on every row
<momomomomo> why would it?
marciotex has joined #ruby
<Senjai> Because rails does that.
<Senjai> That's how rails counter caches
<apeiros> but I agree to an extent. I've rarely used counter caching.
<Senjai> by default
tvw has joined #ruby
<momomomomo> Senjai: no, that would be if it was "User has many published topics; and I want to count each user's published topics"
<apeiros> momomomomo: it counts the number of associated records
<momomomomo> then yes, it would be on the association
<momomomomo> or, if you want, a join table
commondream has quit [Remote host closed the connection]
<momomomomo> i.e. user_published_topic_counts
<Senjai> You rarely need to counter cache. Only for like stats and dynamic pages/rankings etc.
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghostpl has joined #ruby
<apeiros> Senjai: or when you have index views where every record has a counter
<Senjai> Counter caching is rarely ever done in scope
<momomomomo> and postgres is pretty good about keeping what needs to be in memory, in memory
<zenspider> apeiros: sure. and without objective profiling that's meaningless
<apeiros> 5ms counts add up if you have 100 records
<momomomomo> then use a join table?
<Senjai> zenspider: You want it, go do it :P
<momomomomo> apeiros: postgres will keep it in memory if it's hot in the LRU
<zenspider> only optimize if something proves it needs it
<Senjai> zenspider: Correct, and MANY sites need it
<apeiros> Senjai: so first user is the sucker who has 3s page load time? :)
<eam> heck, the system's kernel will keep it in memory
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> apeiros: No, you can populate counter caches on startup, and maintain them from thre
<zenspider> Senjai: many less than actually have it
<apeiros> Senjai: also if different users see different records, it'll probably never be hot
<Senjai> If you use a redis based approach
<Senjai> apeiros: I think that was meant for not me
<momomomomo> apeiros: I'm the one arguing for postgres
<apeiros> Senjai: oh dear, true. that was for momomomomo
<momomomomo> also, in what world do you have 3s load times from a counter cache?
<apeiros> momomomomo: anyway, at work, we're stuck with oracle :(
<eam> we're talking about maintaining a cache of count(*) right?
<momomomomo> you should spend more time reading how to tweak the database if that's the case
* zenspider hugs apeiros
<momomomomo> :P
<zenspider> I'm sorry
<apeiros> momomomomo: not from a counter cache. from not using a counter cache and instead having a count subquery for every record
<momomomomo> no, that's just stupid
arooni-mobile has joined #ruby
<apeiros> counter cache is what removes that
<momomomomo> yes, which is what I'm arguing for...
<momomomomo> but I'm in the 'keep it in postgres' camp
<apeiros> hard without pg
<momomomomo> stop using oracle then, you commie
<momomomomo> :D
<apeiros> don't tell me!
<eam> I'd put it in mdbm
<apeiros> I'm pushing to change to pg for years
vikaton has joined #ruby
<zenspider> good luck with that
<momomomomo> apeiros: one of my buddies company's is making the switch; I'm sure they already have
<momomomomo> there's hope
<zenspider> I don't think I've ever seen a shop move off of oracle...
<apeiros> but they prefer wasting tons of money on oracle for no good reason
<zenspider> I've seen a few move off of mysql to good effect... but never oracle
<momomomomo> apeiros: well oracle does give you clustering etc
<apeiros> momomomomo: the way I'd do it we wouldn't switch
<Nilium> If people want to waste money, they should give it to me.
<apeiros> we'd just put all the new stuff on pg
<zenspider> "sure would be a shame if something happened to your data..."
<eam> pg's replication strategy has been really bad until recently
<apeiros> and reduce the legacy apps to tiny ora boxes
<zenspider> the database mafia strikes again
serivichi has joined #ruby
aphprentice has joined #ruby
<apeiros> as those legacy apps are only used by ~10 people
Hobogrammer has quit [Read error: Connection reset by peer]
<momomomomo> I'd love to sit and bash oracle, but my comp is dying :(
<momomomomo> adios ya'll
<apeiros> and ora is priced by the box size
tvw has quit [Ping timeout: 252 seconds]
<eam> zenspider: I oversaw (part of) a move off one of the world's largest oracle installations
ghostpl has quit [Ping timeout: 272 seconds]
<zenspider> poor comp
<momomomomo> =(
momomomomo has quit [Quit: momomomomo]
<zenspider> eam: yay!
<apeiros> cya momomomomo
<eam> it was successful -- but we wrote our own database
<zenspider> haha
<zenspider> "successful" --- but now we have 2 problems :P
ttilley has quit [Changing host]
ttilley has joined #ruby
<zenspider> eam: where was this, if you can say?
<apeiros> we don't use any of oracles features anyway. except for psql.
<apeiros> hell, our load could probably be handled by sqlite
<Senjai> apeiros: Orcale, Feature, lol
<Senjai> <3
<apeiros> except maybe for the part where we actually have concurrency
serivich has quit [Ping timeout: 265 seconds]
<eam> zenspider: it was at a large advertising company who couldn't scale out oracle any more at any price
akkad has quit [Excess Flood]
danman has quit [Quit: danman]
<zenspider> damn
<eam> replaced it with what now would be called a nosql db (before most of those existed)
<Senjai> Very very rarely do closed source solutions beat open source ones for infrastructure
<Senjai> except microsoft for their... uh.. whatever its called. Intranet stuff
<apeiros> eam: that sounds like fun and adventure :D
<eam> oh yes
<Senjai> Nosql scares me
<Senjai> ACID compliance ftw
<eam> worldwide replication
<eam> you can do a lot when you look at exactly what guarantees you need, and implement only those. System was rock solid
<eam> basically a huge exercise in caching
<eam> (as are most hard problems of scale)
akkad has joined #ruby
<Senjai> Computer science only has two problems man
<Senjai> Caching and naming things
<apeiros> and off by one errors
<Senjai> Eh, kinda
<Senjai> :P
<Senjai> I find those go away with good tests, for the most part
<apeiros> you ruined the joke!
<Senjai> <3
nickfausnight has joined #ruby
jmoles has left #ruby [#ruby]
<zenspider> and proving P=NP... and and and
<apeiros> zenspider: nah, that's not a problem. because that's not needed to animate a text on a website like marquee did.
idafyaid has quit [Ping timeout: 246 seconds]
<zenspider> or kittens... they display fine w/o
<apeiros> xactly
<apeiros> btw., did you hug me? :D
<apeiros> gotta screenshot that, print it, frame it and hang it up :-p
ttilley has quit [Remote host closed the connection]
<baweaver> sounds like a job for the web king
n008f4g_ has quit [Ping timeout: 246 seconds]
<dfockler> one time I saw zenspider in seattle, and I was like 'hey that's zenspider', and I kept walking down the street
NeverDie_ has joined #ruby
<baweaver> cold mate
<baweaver> I'll actually be in Seattle from the 24th to the 30th of July
<apeiros> darn, almost 0200. when did that happen? nap time. n8 folks!
<dfockler> good night
<baweaver> 'night
SansSerif has quit [Quit: Leaving]
* baweaver goes back to kicking spark clusters
Hobogrammer has joined #ruby
NeverDie has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
<baweaver> Who all is in Seattle anyways? I know tenderlove and zenspider at least are out that way.
<zenspider> baweaver: come to seattle.rb on the 28th!
<baweaver> I'll have to do that.
langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> baweaver: lots and lots?
drewvanstone has quit [Ping timeout: 265 seconds]
<baweaver> Vacationing off with the family for a week up there, Dad grew up in Centralia.
<zenspider> drbrain, topfunky, tenderlove, phiggins, thagomizer, ... I just had a workout and my brain isn't working too well.
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drewvanstone has joined #ruby
<zenspider> technomancy, tho he doesn't do ruby anymore. moved on to clojure. also recently moved to africa
<zenspider> fishnchips. sentientmonkey... mmmmm... others
<baweaver> I might be moving to Scala / Spark while keeping Ruby on the side.
<dfockler> zenspider: haha I read that as you all had a workout together
xelkarin has quit [Quit: WeeChat 1.1.1]
<dfockler> I'd like to do something with functional languages, just gotta do it I suppose
Agoldfish has joined #ruby
umgrosscol has quit [Remote host closed the connection]
vasilakisfil__ has quit [Ping timeout: 256 seconds]
Muhannad_ has quit [Ping timeout: 264 seconds]
<baweaver> http://baweaver.com/blog/categories/spark/ - Just keep an eye on that for more tutorials later.
bronson has joined #ruby
quazimodo has joined #ruby
<dfockler> baweaver: what is spark?
rbennacer has quit [Remote host closed the connection]
<baweaver> Big data
<baweaver> Murders hadoop in terms of speed and DSL
marr has quit []
speakingcode has quit [Ping timeout: 252 seconds]
<dfockler> both owned by apache haha
droidburgundy has quit [Remote host closed the connection]
<dfockler> ahh it runs on hadoop, but has a much nicer language
<dfockler> and apparently is a lot faster
lalalaaa has quit [Quit: leaving]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
t0rrieri has quit [Quit: Be back later ...]