o0oo0o has quit [Remote host closed the connection]
o0oo0o has joined #ruby
michaeldeol has joined #ruby
aspires has quit []
narcan has joined #ruby
havenwood has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
aspires has joined #ruby
triple_b has joined #ruby
lucyinthesky is now known as faithfuldog
AlexRussia has joined #ruby
faithfuldog is now known as lucyinthesky
|\|370 has joined #ruby
Mattx has joined #ruby
<Mattx>
Hi
FutureTense has quit [Ping timeout: 264 seconds]
<Mattx>
I'm using nokogiri to parse some pages that I downloaded using curb
<Mattx>
is there a way to run the js code before that?
<Mattx>
there are some tags that are created by js when the page loads, I'm missing all those tags
lucyinthesky has quit [Read error: Connection reset by peer]
thiagofm has quit [Ping timeout: 240 seconds]
Tranquility has quit [Quit: Connection closed for inactivity]
Joufflu_ has joined #ruby
<pontiki>
use something like phantomjs
Joufflu_ has quit [Read error: Connection reset by peer]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
CpuID has joined #ruby
CpuID has joined #ruby
Joufflu_ has joined #ruby
forgetful-lucy has joined #ruby
aspires has quit []
omarkj has left #ruby [#ruby]
Joufflu has quit [Ping timeout: 252 seconds]
larissa has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaurous has quit [Remote host closed the connection]
carif has joined #ruby
davasaurous has joined #ruby
giuseppesolinas has joined #ruby
baweaver has quit [Remote host closed the connection]
econerd4ever has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
shvelo has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
aRfOnos is now known as sonOfRa
linelevel has joined #ruby
frem_ has joined #ruby
arclitgold has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has joined #ruby
Mattx has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nkumari has quit [Remote host closed the connection]
chipotle has quit [Remote host closed the connection]
chipotle has joined #ruby
sk87 has joined #ruby
pandaant has quit [Remote host closed the connection]
<frem_>
I want to use a single method in a module. Right now I'm adding that method to my class using `include ActionView::Helpers::TextHelper` and calling it via `truncate("some text")`. I don't like how it's not immediately obvious that the method isn't coming from TextHelper. Is there some way to call it like `TextHelper.truncate` without including a bunch of
<frem_>
other helpers?
mbff has joined #ruby
<mbff>
How do I install a gem so I can modify the source
Joufflu_ has quit [Read error: Connection reset by peer]
nkumari has joined #ruby
dc_ has joined #ruby
<mbff>
I want to download a gem to a directory and modify it.
<eam>
mbff: gem contents will show you the actual file locations
<eam>
but you probably want to find where its source control is hosted and work from that
<waxjar>
frem_: include ActionView::Helpers
<eam>
have you looked at the metadata to see?
<mbff>
hmmm? Sorry I am new to ruby
<frem_>
waxjar: doesn't that also load every other helper in ActionView?
wallerdev has quit [Ping timeout: 244 seconds]
<banisterfiend>
waxjar no..
konsolebox has joined #ruby
<waxjar>
the constants are accessible, yes
wallerdev has joined #ruby
<banisterfiend>
waxjar but the method is not accessible :)
<banisterfiend>
so it's uselss to do that afaict
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<eam>
mbff: gem specification, does it have a homepage? is it on github?
xymbol_ has quit [Quit: Be back later ...]
<waxjar>
he wants to access it like Module.method, no?
<banisterfiend>
waxjar yeah, but ti's not a class method, it's an instance method
maletor has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
sevenseacat has joined #ruby
arclitgold has joined #ruby
enebo has joined #ruby
jalopezsilva has quit [Ping timeout: 264 seconds]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
mloveless has joined #ruby
zz_jrhorn424 is now known as jrhorn424
maletor has joined #ruby
Scriptonaut has joined #ruby
michaeldeol has joined #ruby
pengin has quit [Remote host closed the connection]
<Scriptonaut>
anyone know why "require 'taglib'" won't work? it says: cannot load such file -- taglib (LoadError). I did gem install taglib-ruby (successfully), and I include rubygems before it
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
lbrf has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
sklik has joined #ruby
anaeem1 has joined #ruby
ghostmoth has joined #ruby
doug2 has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
pwh has joined #ruby
<jhass>
the later is done automatically since ruby 1.9
davasaurous has quit [Remote host closed the connection]
<jhass>
your ruby most likely runs in a different environment than your gem command
<jhass>
check gem env
ghostmoth has quit [Client Quit]
<jhass>
and compare for example to ruby --version
<jhass>
also a good check is head -1 $(which gem)
Musashi007 has quit [Read error: Connection reset by peer]
<Radar>
Scriptonaut: Where are you doing the require?
Galas has quit []
<jhass>
also check what path gem which taglib reports, compared to your ruby version
forgetful-lucy has left #ruby ["Leaving"]
jrhorn424 is now known as zz_jrhorn424
dc_ has quit [Remote host closed the connection]
<Scriptonaut>
oh, I iddn't se eyou guys replied, let me gist it
<helpa>
Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Steve Klabnik, Ryan Bigg, Yehuda Katz
xymbol_ has joined #ruby
<mices>
ty
Dopagod has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
nkumari has quit [Remote host closed the connection]
<mbff>
I installed rencode and got this
<mbff>
main.rb:9:in `require': cannot load such file -- deluge (LoadError)
<mbff>
from main.rb:9:in `<main>'
<mbff>
so less errors this time.
<shevy>
lol
<eam>
b3itz: sure, share your code?
<shevy>
so wat mbff
gee_totes has joined #ruby
<shevy>
rencode wants deluge
adriancb has quit [Ping timeout: 250 seconds]
<shevy>
and deluge wants rencode
<shevy>
mbff do you see that your errors can not make much sense? this is a circular dependency you are describing
<shevy>
mbff ah
<shevy>
mbff well try to install deluge again
chipotle has quit [Quit: cya]
<mbff>
bundle or gem install?
<shevy>
now you should have fulfilled rencode dependency
<shevy>
no idea about bundler, I never use it
<sevenseacat>
lol at never using bundler
frem_ is now known as frem
<sevenseacat>
you poor thing
adriancb has joined #ruby
davasaurous has quit [Remote host closed the connection]
<shevy>
what for
<b3itz>
eam: ummm... not that far yet lol
<mbff>
same error after "gem install deluge"
davasaurous has joined #ruby
davasaurous has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<b3itz>
eam: do i create a new empty hash, then add each string with a value of 1?
<shevy>
mbff yeah I think that gem is broken; gems normally have specified their dependencies properly where you can see them online at rubygems.org too, that gem however does not list a dependency on rencode at all so the guy who wrote it possibly did not know what he was doing
<b3itz>
a key of 1
<eam>
b3itz: that should be fine, sure
<mbff>
alright anyway I can fix it, I really need deluge for my project
mloveless has quit [Remote host closed the connection]
<eam>
b3itz: or rather, you want to increment by one. right?
<eam>
b3itz: consider how you might write it without special casing the first time through
<eam>
but if you really want to: if not hash.include?(thing)
<b3itz>
ip_hash.has_key?(ip_string)
<b3itz>
?
<eam>
yes
<b3itz>
boom
<b3itz>
thank you stackoverflow
<eam>
b3itz: same as include?
<eam>
include? and has_key? are aliases to the same method
Photism has quit [Quit: Leaving]
silkfox has quit [Ping timeout: 258 seconds]
<b3itz>
why am i getting an undefined method? if ip_hash.has_key?('ip_string') == false
devdazed has quit [Quit: Computer has gone to sleep.]
xymbol_ has quit [Ping timeout: 245 seconds]
<eam>
b3itz: what is the full error?
<eam>
don't read selectively, read the entire line (or paste the entire line)
claptor has joined #ruby
<b3itz>
syntax error, unexpected '=', expecting keyword_then or ';' or '\n' if ip_hash.has_key?('ip_string') = false
<b3itz>
eam:
<eam>
= vs ==
<b3itz>
ok fixed that and got?
<b3itz>
:
<b3itz>
`block in <main>': undefined method `has_key?' for 0:Fixnum (NoMethodError) from Assignment5.rb:24:in `each_line' from Assignment5.rb:24:in `<main>'
jimbach has quit [Remote host closed the connection]
<eam>
b3itz: reading the whole line, what do you think it means?
SCHAAP137 has quit [Quit: Leaving]
tyfighter has quit [Quit: tyfighter]
<b3itz>
oh
<b3itz>
that makes no sense
Xiti has joined #ruby
<eam>
>> 0.has_key? "whatever"
<eval-in__>
eam => undefined method `has_key?' for 0:Fixnum (NoMethodError) ... (https://eval.in/230168)
<b3itz>
if false == false lol
sargas has quit [Quit: Leaving]
`ph8 has quit [Ping timeout: 240 seconds]
lucyinthesky is now known as angie
angie is now known as lucyinthesky
<b3itz>
i dont get the logic for writing this line
mloveless has quit [Remote host closed the connection]
epitron is now known as Epitron
weaksauce has quit [Ping timeout: 245 seconds]
djbkd has quit [Quit: My people need me...]
<eam>
>> def method_missing(*f) "I can't even"; end; %i{c a n u e v e n}.map(&:to_proc).map{|f| send f}
<eval-in__>
eam => ["I can't even", "I can't even", "I can't even", "I can't even", "I can't even", "I can't even", "I can't even", "I can't even"] (https://eval.in/230172)
<The_NetZ>
heyo o/ question; if I'm simply creating ruby on the mingw-w64 platform to link against it, one could simply use make lib and make ruby-2.2.pc to create the dlls and pkg-config file; my question is, is there some nifty way of installing just the headers?
patrick99e99 has joined #ruby
null_ has joined #ruby
null_ is now known as sion
kamil has joined #ruby
elusion has quit [Ping timeout: 240 seconds]
shock_one has joined #ruby
JohnBat26 has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
Morkel has quit [Quit: Morkel]
rshetty has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
sion has quit [Quit: leaving]
nfk has joined #ruby
oo__ has quit [Remote host closed the connection]
<certainty>
moin rubyists
<lbrf>
certainty: o/
noop has joined #ruby
konsolebox has joined #ruby
oo_ has joined #ruby
shock_one has quit [Remote host closed the connection]
<The_NetZ>
certainly :)
<The_NetZ>
badpun is bad
blueOxigen has joined #ruby
<certainty>
xD
bluOxigen has quit [Ping timeout: 255 seconds]
bMalum has quit [Quit: bMalum]
<The_NetZ>
so, any ruby devs know the magick command for installing just the headers? :)
SOLDIERz__ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 244 seconds]
<sevenseacat>
cant believe how long its taken you just to install ruby
<epitron>
mbff: i'm not sure what you want to do. does httparty not save cookies for you? are you trying to manually save them?
<The_NetZ>
but, I'm compiling mingw-w64-ruby simply as dev libs and headers, so the failure of ruby(w).exe is of little import to me :)
konsolebox has quit [Quit: Leaving]
arup_r_ has joined #ruby
bluehavana has joined #ruby
konsolebox has joined #ruby
adriancb has joined #ruby
<The_NetZ>
make lib and make install-lib handles the dll's and such, and I can write a small install -Dm644 bit to place the pkg-config file, but the headers.... that's the real bitch, methinks.
konsolebox has quit [Client Quit]
anaeem1_ has quit [Ping timeout: 264 seconds]
<The_NetZ>
hanmac1: nice cats
timonv_ has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
<The_NetZ>
sevenseacat: also, my internet is quite shitty so researching takes far more time than someone on a good connection :)
andikr has joined #ruby
<work_op>
hanmacl, its been overtaken by spam. i used to lurk 4chan's /prog/ textboard and it was shut down due to spam of the same nature as whats on ruby forum
<work_op>
...russians...
lbrf has quit [Quit: Be back later ...]
adriancb has quit [Ping timeout: 250 seconds]
dc_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 252 seconds]
goodenough has quit [Remote host closed the connection]
kloeri_ is now known as kloeri
Kricir has quit [Remote host closed the connection]
dc_ has joined #ruby
<hanmac1>
stupid spammers :(
kiyote23 has quit [Remote host closed the connection]
<The_NetZ>
... that moment when you try to use ctrl+c to stop loading of a firefox page XD
xymbol_ has quit [Read error: Connection reset by peer]
amundj has joined #ruby
goodenough has joined #ruby
techsethi_ has joined #ruby
aganov has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
fabrice31 has joined #ruby
xymbol_ has joined #ruby
<The_NetZ>
should have switched to eCigs long ago
matcouto has joined #ruby
taiansu has quit [Remote host closed the connection]
<mbff>
I am having troubles changing a hash to json, yes I have tried to_json
taiansu has joined #ruby
<mbff>
puts delugeResponse.body.to_json['result']
<mbff>
this returns "result"
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
charliesome has quit [Quit: zzz]
taiansu has quit [Ping timeout: 272 seconds]
uber_hulk has quit [Quit: leaving]
abuzze has joined #ruby
shock_one has joined #ruby
timonv_ has quit [Remote host closed the connection]
<versatiletech>
mbff: could you create a pastie with output of puts for delugeResponse.body
<tobiasvl>
arup_r: I'm assuming the second file in that gist isn't really called error.rb, but product.rb?
psy_ has joined #ruby
<arup_r>
Yes.. That I gave in gist arbitary
<arup_r>
It is a product.rb
tokik has quit [Ping timeout: 252 seconds]
<tobiasvl>
ok, good. you shouldn't give files arbitrary names when they're mentioned in the exception you want help with
<arup_r>
Gave it proper name... Concern is Activemodel is not working
<arup_r>
My custom vaildation is not working...
<mozzarella>
what if you move the CategoryValidator class above the Product class?
agjacome has quit [Quit: leaving]
amundj has joined #ruby
<arup_r>
Didn't try..
<arup_r>
But does it matter.. ?
tokik has joined #ruby
Cyberheb has quit [Quit: Computer has gone to sleep.]
<hanmac1>
arup_r: hm why not asking AR questions in the #rubyonrails channel?
<arup_r>
error Product::CategoryValidator (NameError) is saying... Product looking for the class CategoryValidator inside it.. don't know why
devoldmx33 has quit [Ping timeout: 250 seconds]
razieliyo has joined #ruby
<arup_r>
hanmac1: It is Ruby project.. not Rails :-(
<arup_r>
So..
razieliyo has quit [Read error: Connection reset by peer]
<hanmac1>
arup_r: but AR is Rails fault, so they need to fix it
<sevenseacat>
yet activemodel is a rails gem
<mozzarella>
arup_r: try it
troyready has quit [Ping timeout: 245 seconds]
<arup_r>
ok
lucyinthesky has quit [Quit: You shut your mouth]
linocisco has joined #ruby
<linocisco>
hi all i m compeletely new bie on Ruby
sameerynho has joined #ruby
<linocisco>
But I am so confused that about the differenece between Ruby and Ruby on Rails
mark06 has joined #ruby
<mozzarella>
ruby on rails is a web framework
<mozzarella>
ruby is the programming language
<mark06>
how can I get the site/vendor ruby dirs?
<linocisco>
mozzarella, any example of other web framework?
spastorino has joined #ruby
<mark06>
e.g. /usr/lib/ruby/vendor_ruby
<arup_r>
mozzarella: worked..
<mozzarella>
linocisco: sinatra, padrino, django, etc.
<arup_r>
What is the reasoning ?
<linocisco>
Morrolan, nothing them are popular. I heard only django a little
lxsameer has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
<mozzarella>
arup_r: well, it must be defined when evaluating the line
<sevenseacat>
just because you havent heard of them, doesnt mean theyre not popular
<arup_r>
mozzarella: Humm.. Rails probably handle them some other way
<arup_r>
They are Genious.
maestrojed has quit [Quit: Computer has gone to sleep.]
lolmaus__ has quit [Ping timeout: 240 seconds]
<mozzarella>
linocisco: do you know the difference between python and django?
arup_r has quit [Remote host closed the connection]
<linocisco>
Morrolan, i just heard django. dont know even what that is
krazyj has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<krazyj>
hi guys… i’m writing a cron script that i want to be super robust. i have it written, now i want to implement logging… any thoughts on how to write these methods in a clear, concise way for logging: https://gist.github.com/joshavant/68a33519ec39f081bf48
Axy is now known as Mia
<krazyj>
for example, on line 29, i have `if app_store_response.success?`
<krazyj>
how might i rewrite that so, if it fails, i can write to a logfile
<krazyj>
use a vanilla else-block?
dfinninger has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
alex88 has joined #ruby
mbff has quit [Quit: Leaving]
davedev2_ has quit [Remote host closed the connection]
hiall has joined #ruby
bjornar has joined #ruby
Eiam_ has joined #ruby
Takle has joined #ruby
sevenseacat has quit [Remote host closed the connection]
shock_one has joined #ruby
Xeago has joined #ruby
davasaurous has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
renderful has joined #ruby
livathinos has joined #ruby
Cyberheb has joined #ruby
pietr0 has quit [Quit: pietr0]
last_staff has joined #ruby
ElderFain has joined #ruby
rikai has quit [Ping timeout: 256 seconds]
AFKGeek has joined #ruby
ElderFain has quit [Changing host]
ElderFain has joined #ruby
CustosL1men has joined #ruby
Tranquility has joined #ruby
shvelo has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
roolo has joined #ruby
olivier_bK has joined #ruby
rikai has joined #ruby
patrick99e99 has joined #ruby
AlexRussia has joined #ruby
elaptics`away is now known as elaptics
last_sta1 has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
shortCircuit__ has joined #ruby
redjack1964_ has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 258 seconds]
last_staff has quit [Ping timeout: 258 seconds]
<shevy>
krazyj of course you must use the code that will actually log into a file
abuzze has quit [Remote host closed the connection]
ghr has joined #ruby
<shevy>
ideally use a method that will log and call that
kaspertidemann has quit []
Spami has joined #ruby
joonty has joined #ruby
jheg has joined #ruby
amundj has quit [Ping timeout: 250 seconds]
maasha has joined #ruby
StoneCypher has joined #ruby
lolmaus__ has joined #ruby
reinaldob has joined #ruby
moritzschaefer has joined #ruby
abuzze has joined #ruby
PierreRambaud has quit [Quit: Quitte]
PierreRambaud has joined #ruby
lolmaus has joined #ruby
msgodf has joined #ruby
mbeasley has quit [Ping timeout: 245 seconds]
atomi has quit [Ping timeout: 245 seconds]
bMalum has joined #ruby
vieq has quit [Ping timeout: 272 seconds]
sea_local has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
yfeldblum has joined #ruby
vieq has joined #ruby
StoneCypher has quit [Ping timeout: 256 seconds]
mbeasley has joined #ruby
arup_r has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
atomi has joined #ruby
<shortCircuit__>
I have to change the address and specification in :params => {:company => { :id => 1 :address=> { :id=> 2}, :specification => { :id => 3}} to address_attributes and specification_attributes
<shevy>
sinelaw what happened to my return 33 line :(
Deele has joined #ruby
<canton7>
tbh it doesn't matter whether you've got line 4 in there at all iirc
<Mattx>
do you know any way to evaluate <script> tags before parsing html code with nokogiri? I need to process all tags in that code, even the tags introduced by javascript
<shevy>
canton7 how can this be! ruby ignores my instructions!!!
<canton7>
it's stopping you from being silly ;)
<shevy>
right - I have PHP for this
<shevy>
sinelaw you could document common PHP pitfalls :)
<canton7>
>> class A: def foo=(f); 'hi'; end; end; p A.new.foo = 'test'
<eval-in__>
canton7 => /tmp/execpad-e0dffde26b71/source-e0dffde26b71:2: syntax error, unexpected ':', expecting '<' or ';' or '\n' ... (https://eval.in/230277)
<shevy>
"from the same author ... the comparison to PHP" ... all stare at a document 10x as long
<canton7>
>> class A; def foo=(f); 'hi'; end; end; p A.new.foo = 'test'
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<sinelaw>
shevy, thanks
msgodf has quit [Ping timeout: 244 seconds]
wald0 has joined #ruby
SOLDIERz__ has joined #ruby
econerd4ever has quit [Ping timeout: 264 seconds]
louism2wash has quit [Quit: This computer has gone to sleep]
linocisco has quit [Ping timeout: 256 seconds]
<sinelaw>
shevy, if you have more, let me know or send a pull request.
<shevy>
yeah can't think of any right now
<shevy>
next time some newcomer asks a question here on #ruby, I may file an issue request at your github link :D
<shortCircuit__>
shevy :P I have to change it to the output you showed, like params[:company][:address_attributes] = params[:company].delete :address . but that may not work
<sinelaw>
shevy cool, thanks
nerium has joined #ruby
<shevy>
shortCircuit__ oh yeah... delete the old key, add a new key
lw has quit [Quit: s]
abuzze has quit [Remote host closed the connection]
<shevy>
the above should work or? you remove the element with .delete, it is returned, then you call the method with the = and set a new one
<nerium>
I'm having problem with invalid sha*.bundle files in my ruby 2.0 installation. I solved it last time by copying sha2.bundle and sha1.bundle from a previous installation, which I dont have anymore.
<nerium>
Anyone knows where I can download these files?
yfeldblum has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<shortCircuit__>
ok
kamil has quit [Quit: Leaving...]
<shortCircuit__>
ee that worked!!
blackmesa has quit [Ping timeout: 255 seconds]
russt has quit [Quit: russt]
Hobogrammer has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
bobdobbs has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
aspiers has joined #ruby
mahtennek has joined #ruby
chiel has left #ruby [#ruby]
arup_r_ has quit [Remote host closed the connection]
<maasha>
I wish there was a method to remove bottlenecks :o/ => bottleneck.remove!
arup_r has joined #ruby
<maasha>
If I delete this line 180 everthing would be much much faster - but broken ...
lyanchih has quit [Quit: lyanchih]
abuzze has joined #ruby
Areessell has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
<shevy>
lol
<shevy>
if you know C you could inline-C there
lolmaus has quit [Client Quit]
<maasha>
shevy: Well, it is a hash of hashes of sets. Such a structure is messy to work with in C and probably with little gain. I need to think harder to come up with a better structure.
lolmaus has joined #ruby
<maasha>
Set.add is the slow part.
abuzze has quit [Read error: Connection reset by peer]
abuzze_ has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
psy_ has quit [Remote host closed the connection]
robustus has joined #ruby
msgodf has joined #ruby
kaspertidemann has joined #ruby
<workmad3>
maasha: is adding to the sets able to be done in batches separate from the reading the sets?
lbrf has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<workmad3>
maasha: because if so, you may find it's more performant to add to arrays, and convert to a set at the end, rather than having each additional item causing a uniqueness check over the entire set (you'd want to benchmark that though to be sure)
lolmaus has joined #ruby
rshetty has quit [Ping timeout: 258 seconds]
<maasha>
workmad3: Not at the moment - I am awere of Set.merge
rshetty has joined #ruby
arup_r_ has joined #ruby
<maasha>
*aware
uber_hulk has joined #ruby
<maasha>
I'd rather use NArray's than Sets, but it blows memory.
wolf4ood has joined #ruby
krazyj has quit [Quit: krazyj]
lbrf has quit [Ping timeout: 244 seconds]
taiansu has quit [Remote host closed the connection]
razieliyo has joined #ruby
razieliyo has joined #ruby
arup_r has quit [Ping timeout: 252 seconds]
razieliyo has quit [Client Quit]
<maasha>
So I have a hash[8] of hashes[2**16] of sets[200000]. Number in [] indicate the number of keys.
<maasha>
or values rather
Takle has quit [Remote host closed the connection]
<maasha>
It is a shitload of Sets that have values added once at a time. I should really load the sets in a smarter way.
bMalum has quit [Quit: bMalum]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<maasha>
maybe I should use Google Sparse Hash instead of Set ...
sinequanon has joined #ruby
msgodf has quit [Remote host closed the connection]
<maasha>
Anyone happen to have a Google Sparse Hash vs Set benchmark laying around :oD ?
tokik has quit [Ping timeout: 264 seconds]
Takle_ has joined #ruby
<maasha>
keys and values are Fixnums
kiyote23 has joined #ruby
timonv^ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sinequanon has quit [Ping timeout: 244 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
kiyote23 has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
<shevy>
Set is slow
lw has joined #ruby
oo_ has quit [Remote host closed the connection]
<shevy>
you poor thing
shvelo has quit [Ping timeout: 250 seconds]
lw has quit [Read error: Connection reset by peer]
jenrzzz has quit [Quit: Lost terminal]
lw_ has joined #ruby
ldnunes has joined #ruby
davedev24_ has joined #ruby
zemiudo88 has joined #ruby
udoprog has quit [Quit: WeeChat 0.4.2]
chu has joined #ruby
chu has quit [Changing host]
chu has joined #ruby
zemiudo has quit [Ping timeout: 245 seconds]
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
himsin has joined #ruby
ajaiswal has left #ruby ["Leaving"]
St1gma has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
zemiudo88 has quit [Ping timeout: 258 seconds]
damic has joined #ruby
<maasha>
Yeah, I see that.
thsig has joined #ruby
<certainty>
shevy: Set is slow?
<maasha>
Ruby hash is faster
<certainty>
which operations?
arturhoo has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<zenspider>
maasha: sets of _what_? that's the important part
<deleg>
There's a lot of bad information out there relating to all this, and conflicting, too
<zenspider>
super duper clear. glad to google for you. That'll be $5.
<maasha>
zenspider: btw, have you messed around with NArrays? I was looking for example on how to manipulate NArrays with inline C. I can do NArray.to_s and get a packed bytearray which I can manipulate using inline C, but the other way around I never tried ...
mahtennek has quit []
<zenspider>
maasha: I've never done narray via inline'd c, no.
<deleg>
zenspider: already read it
<zenspider>
but I was gonna suggest a packed byte array if you're really just doing sets of ints
tacotaco_ has quit [Client Quit]
tacotaco_ has joined #ruby
<zenspider>
deleg: my reading services are much much more expensive than my googling services.
<maasha>
zenspider: OK - could be useful I think.
<deleg>
zenspider: no deal, there's been no value
<zenspider>
and you should see the bill for my teaching services. daaamn.
renderful has joined #ruby
<zenspider>
maasha: might want to experiment on bignums & bit manip methods first, just to see how they bench against sets.
boombadaroomba has quit [Ping timeout: 252 seconds]
lucyinthesky has joined #ruby
kp666 has joined #ruby
mahtennek has joined #ruby
grn_ has joined #ruby
<zenspider>
maasha: hrm... except that there's no []= on bignums and you'll be creating bignums on a real add
<maasha>
zenspider: I dont follow?
<zenspider>
which means your benchmarks will be biased by GC
<maasha>
NArrays are great for bitwise manipulation
grn_ has quit [Client Quit]
<zenspider>
what're you actually working on anyhow?
renderful has quit [Ping timeout: 245 seconds]
Stalkr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<maasha>
zenspider: bioinformatics. DNA and RNA sequences. which basically are strings with a 4 char alphabet. Such strings we routinely break into overlapping kmers which can be encoded as list of integers and manipulated.
patrick99e99 has quit [Ping timeout: 244 seconds]
xymbol_ has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
kamil has joined #ruby
rshetty_ has quit [Ping timeout: 272 seconds]
xymbol__ has quit [Client Quit]
doodlehaus has joined #ruby
tzero has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
fabrice31 has quit [Remote host closed the connection]
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
hiall has joined #ruby
gotscheu has quit [Quit: gotscheu]
maasha has quit [Ping timeout: 246 seconds]
nic019 has joined #ruby
gccostabr has joined #ruby
kaiwren has joined #ruby
rimenes has joined #ruby
rimenes has quit [Client Quit]
ponga has joined #ruby
ponga has joined #ruby
samuel02 has quit [Remote host closed the connection]
samuel02 has joined #ruby
samuel02 has quit [Remote host closed the connection]
lbrf has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
hiyosi has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
lucyinthesky has quit [Quit: Golden slumbers.]
hiall_ has joined #ruby
davasaurous has joined #ruby
hiall has quit [Ping timeout: 244 seconds]
hiall_ is now known as hiall
fabrice31 has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
tkuchiki has quit [Ping timeout: 264 seconds]
mahtennek has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<siaw>
canton7: but why does irb behave that way?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<canton7>
siaw, because it's useful for debugging
timonv^ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nic019 has quit [Quit: Leaving...]
<siaw>
canton7: so it means irb will print anything that a method returns?
<canton7>
sure
<canton7>
and if you just type 'variable', it will print the value of the variable
ctp has joined #ruby
<siaw>
i see
<siaw>
canton7: thanks
n1lo has joined #ruby
rodfersou has joined #ruby
yfeldblu_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
goodenough has quit [Remote host closed the connection]
shazaum has joined #ruby
samuel02 has joined #ruby
sameerynho has quit [Quit: Leaving]
<shevy>
arup_r_ but I don't wanna read more, I already have about 15 books on my left side, all about chemistry and biology! can't overcrowd my small brain with more programming-related books - plus I have said a while ago that I will finally learn C seriously :(
<shevy>
that C book is somewhere under a pile of papers though... hahaha
<arup_r_>
shevy: you just register using the link.. which will increase my wining probability.. :-)
yfeldblum has quit [Ping timeout: 256 seconds]
<shevy>
what is the correct answer to the question
<claf>
I have a slightly negative attitude towards spamming competitions, especially with referral, on this channel
<arup_r_>
shevy: peter
lifenoodles has quit [Ping timeout: 272 seconds]
<arup_r_>
Pete Keen
<shevy>
hehe I was just wondering
yfeldblu_ has quit [Ping timeout: 256 seconds]
<shevy>
you don't even know either! ;D
nic019 has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
<arup_r_>
didn't get you..
<shevy>
actually, I think in northern germany and the netherlands... Pete is a real name, or the variant Peter there... Pete Glocke... or perhaps it is actually written Piet or Pjet ... in poland it is pjotr
<shevy>
well you wrote "peter" so I selected it... oh wait, there was only "pete" ;-)
dfinninger has joined #ruby
hgl has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
<txdv>
peter pan und die sieben schwuchteln
Xeago has joined #ruby
nuomi has joined #ruby
nuomi has left #ruby [#ruby]
<arup_r_>
shevy: Got you... :-)
<hgl>
i'm trying to access a deeply nested attr like obj.a.b.c, is there a quick way to tell ruby that if any level returns a nil, return nil immediately?
arup_r_ has quit []
arup_r has joined #ruby
<shevy>
txdv haha... what about the hobbits in lord of the rings when they were jumping sexily in the bed?
<txdv>
em
txdv was kicked from #ruby by apeiros_ [language]
txdv has joined #ruby
<txdv>
is german not allowed?
teddyp1c_ has joined #ruby
lifenoodles has joined #ruby
<apeiros_>
you know full well what was the trigger.
Timgauthier is now known as timgauthier_away
<shevy>
hgl I think not an intrinsic idiom; a primitive way would be to put it inside begin/rescue and rescue only nil errors like
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<txdv>
its just one fun sentence because they were talking about peter ban all the time
<apeiros_>
txdv: it's not fun. it's not acceptable in here.
<txdv>
no acceptance of german homosexuality
dfinninger has quit [Ping timeout: 256 seconds]
txdv was banned on #ruby by apeiros_ [txdv!*@*]
txdv was kicked from #ruby by apeiros_ [txdv]
<hgl>
shevy, ok, will try that, thanks.
<apeiros_>
no. no acceptance of abusing it for laughs and giggles.
teddyp1cker has quit [Ping timeout: 244 seconds]
fgo has quit [Quit: WeeChat 1.0]
quimrstorres has quit [Remote host closed the connection]
fgo has joined #ruby
Timgauthier has joined #ruby
postmodern has quit [Quit: Leaving]
rageberry has joined #ruby
rvbt has joined #ruby
arup_r has quit [Remote host closed the connection]
quimrstorres has joined #ruby
timonv_ has joined #ruby
linelevel1 has joined #ruby
andikr has quit [Remote host closed the connection]
linelevel has quit [Ping timeout: 250 seconds]
kp666 has quit [Quit: Leaving]
<shortCircuit__>
I have Company has_many employees and Employee has_many EmployeLeave. I have to get the employeeleaves for a particular company, I was goin to try @company..employees.joins(:employee_leaves) but that would give me Employee array. Is there a way to get the employeeleaves without doing looping statements like @company.employees.collect{|c| e.employee_leaves}
<shortCircuit__>
*c.
<apeiros_>
shortCircuit__: #rubyonrails?
<shortCircuit__>
yohhh sorry
<shortCircuit__>
my mistake
<wasamasa>
what the hell are employeeleaves?
linelevel1 has quit [Read error: No route to host]
<wasamasa>
is this a nickname for a psychoactive plant for drugging up code monkeys?
linelevel has joined #ruby
* apeiros_
would assume absences of employees
<shortCircuit__>
I don't know it was given that way, the leaves taken by employees
tgandrews has joined #ruby
<shortCircuit__>
employee_leaves
Areessell has joined #ruby
anaeem___ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lw has joined #ruby
linelevel has quit [Ping timeout: 244 seconds]
BaconOverflow has joined #ruby
linelevel has joined #ruby
himsin has quit [Quit: himsin]
* hanmac1
is a tree now and he is leafing now ;P
SCHAAP137 has joined #ruby
rshetty_ has joined #ruby
uber_hulk has quit [Ping timeout: 255 seconds]
carif_ has quit [Read error: Connection reset by peer]
linelevel1 has joined #ruby
lw has quit [Quit: b]
arup_r has joined #ruby
psy_ has quit [Remote host closed the connection]
linelevel has quit [Ping timeout: 244 seconds]
rshetty has quit [Ping timeout: 244 seconds]
lbrf has joined #ruby
siaw has left #ruby [#ruby]
linelevel1 has quit [Ping timeout: 256 seconds]
ton31337 has left #ruby [#ruby]
shvelo has joined #ruby
lbrf has quit [Ping timeout: 264 seconds]
nanSTA has joined #ruby
<nanSTA>
Hello!
<nanSTA>
i have a script that outputs a set of numbers and cannot figure out a way to add them up
sptx00 has joined #ruby
skywritergr has joined #ruby
<claf>
ok, pastie?
robustus is now known as robustus|Off
uber_hulk has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
lw has joined #ruby
davasaurous has joined #ruby
<nanSTA>
numbers = cc_number.split('').reverse numbers.each_with_index do |item, index| if index % 2 == 1 item = item.to_i * 2 if item > 9 item -= 9 end end puts item end end
<nanSTA>
def luhn_check(cc_number) numbers = cc_number.split('').reverse numbers.each_with_index do |item, index| if index % 2 == 1 item = item.to_i * 2 if item > 9 item -= 9 end end puts item end end
rshetty_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<hanmac1>
nanSTA: are you looking for Enumerable#map ?
nagaraj has quit [Quit: nagaraj]
St_Marx has quit [Remote host closed the connection]
<nanSTA>
yea
<hanmac1>
because each_with_index does not change the values
ConstantineXVI has joined #ruby
<nanSTA>
can you explain?
St_Marx has joined #ruby
mkaesz has joined #ruby
<nanSTA>
if i iterate with each_with_index i cannot sum up my items
<nanSTA>
?
davasaurous has quit [Ping timeout: 256 seconds]
<hanmac1>
each and each with index does not modifiy the array/list of numbers you have. the values used in "item" are frozen/not modifyable, so item -= 9 does not have any effect
<hanmac1>
you need to use map.with_index instead of each_with_index
<hanmac1>
gregf_: then you do it wrong, because currently you divide the indexes and not the values
<gregf_>
hanmac1: i know i dont need. infact quite a few method calls are not needed. but what i was asking was if i include redundant method call, can i somehow get the code generated for those calls?
Dmr has joined #ruby
<hanmac1>
gregf_: currently the best way i thought is:
<elemenopy>
sad face :( i've got an app that i need to set the maximum amount of memory it is allowed to consume. i run the app with "ruby xxfilenameherexx.rb" and after about 10 hours of forks and threads it halts the system. how can i specify the maximum amount of memory that ruby is allowed to use as a whole?
<pontiki>
siaw: at what point in the lifetime of the Ticket object do you want date to be set?
zB0hs has joined #ruby
<siaw>
pontiki: a the point when the object is created
<pontiki>
then you need to do it in initialize
orionsaresh is now known as orionstein
<canton7>
siaw, you put it in the initializer then
<siaw>
immediately the object is created
<canton7>
that's what it's there for
davasaurous has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<siaw>
canton7: that’s what i thought but i was thinking maybe there was a better shorter way
<waxjar>
elemenopy: you'll have to use some tool that monitors memory usage
<waxjar>
and kills/restarts your process if it consumes too much
Xeago has quit [Remote host closed the connection]
thsig has quit [Ping timeout: 256 seconds]
ctp has joined #ruby
<elemenopy>
waxjar, ok let me google a little bit
siaw has left #ruby [#ruby]
nanSTA has quit [Ping timeout: 258 seconds]
dfinninger has joined #ruby
joast has quit [Quit: Leaving.]
davasaurous has quit [Ping timeout: 244 seconds]
<elemenopy>
waxjar, it looks like i need to use god
<shevy>
hey apeiros do you use "def foo(i)" or rather "def foo i" ?
<apeiros_>
shortCircuit__: yes
<apeiros_>
whoops
<apeiros_>
shevy: yes
<apeiros_>
(sorry shortCircuit__)
<shevy>
hehe
St_Marx has quit [Remote host closed the connection]
<shevy>
I think I finally understood why some ruby devs use the paren-less form
St_Marx has joined #ruby
<shevy>
object.report_cost_of 'bla'
<shevy>
def report_cost_of i
<shevy>
def report_cost_of(i)
<shevy>
the first def is actually easier
<waxjar>
yeah i think god can do it elemenopy, but there is probably a more lightweight tool to do it
<elemenopy>
dudes / dudettes, this god app is amazing, im reading the crap outta this document and it sounds insane
dfinninger has quit [Ping timeout: 240 seconds]
<claf>
good god!
<waxjar>
elemenopy: best solution would of course be to fix your memory leak :P
<ddv>
god app?
<ddv>
oh
<ddv>
I would use systemd
<claf>
god monitoring framework
KC9YDN has quit [Remote host closed the connection]
* hanmac1
wispers to shevy that the default value of a parameter in a ruby function can be a method call ;P
Timgauthier is now known as timgauthier_away
KC9YDN has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mkaesz has quit [Remote host closed the connection]
<hanmac1>
there arent many other languages where the default parameter can be a method call
jherbst has joined #ruby
<elemenopy>
waxjar, that's the thing it's a data mining tool for a nonprofit site. after about 8 hours it seems to be hitting a gigantic amount of data. so when that thread forks it consumes the machine. maybe i should first measure the length of html downloaded before even touching the data each time perhaps?
anaeem1_ has joined #ruby
tier has joined #ruby
jerius has joined #ruby
_5kg_ has joined #ruby
KC9YDN has quit [Client Quit]
mleone has joined #ruby
Xeago has joined #ruby
davedev24_ has quit [Remote host closed the connection]
elemenopy has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
KC9YDN has joined #ruby
wald0 has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
skywritergr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uber_hulk has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
last_sta1 has quit [Quit: last_sta1]
chinmay_dd has joined #ruby
<apeiros_>
aaaah lovely code I found due to a bug (not my code): ((Date.new(today.year, today.month + 1)..(Date.new(today.year + 5, today.month + 1)).select { |date| date.day == 1 }
tgandrews has quit [Quit: This computer has gone to sleep]
ddd has quit [Quit: leaving]
Channel6 has quit [Remote host closed the connection]
josephndenton has joined #ruby
tgandrews has joined #ruby
<shevy>
so 5 years?
jrhorn424 is now known as zz_jrhorn424
<twohlix_>
also seems like you generate a lot of shitty dates that way
francisfish has quit [Remote host closed the connection]
uber_hulk has joined #ruby
zz_jrhorn424 is now known as jrhorn424
Rahul_Roy_ has joined #ruby
francisfish has joined #ruby
francisfish has quit [Client Quit]
<apeiros_>
well, the worst thing is - it breaks
<apeiros_>
it doesn't work when today is in december
<apeiros_>
(which is why the bug surfaced)
<apeiros_>
and yes, it's quite wasteful to iterate 5*365.2425 days to collect 60 of them
lw has joined #ruby
jso has quit [Quit: Bye]
ddd has joined #ruby
kamil has joined #ruby
Advocation has joined #ruby
<twohlix_>
apeiros_: yea, you could get a 33x speedup and 33x better memory footprint for that block of code. lol
noop has joined #ruby
emmesswhy has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
tier_ has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 256 seconds]
Takle_ has quit [Remote host closed the connection]
godd2 has quit [Ping timeout: 240 seconds]
jrhorn424 is now known as zz_jrhorn424
Takle has joined #ruby
evanjs has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
zz_jrhorn424 is now known as jrhorn424
Takle_ has joined #ruby
<hanmac1>
apeiros_ i think something similar to 60.times.with_object([Date.today.next_month]) {|_,a| a << a.last.next_month } might be nicer
Takle has quit [Read error: Connection reset by peer]
Soda has joined #ruby
TPBallbag has quit []
dotix has joined #ruby
noop has quit [Ping timeout: 245 seconds]
jrhorn424 is now known as zz_jrhorn424
<apeiros_>
hanmac1: omits that you have to be at the beginning of the month. I didn't think much and just used Array.new(60) + divmod
Kricir has joined #ruby
patrick99e99 has joined #ruby
<apeiros_>
probably not the nicest variant, but it works and is not utterly wasteful
tgandrews has joined #ruby
<dotix>
Hey guys! Is there any way to get all the nodes from an Nokogiri::Html object?
zz_jrhorn424 is now known as jrhorn424
icbm has joined #ruby
<dotix>
i.e. page is "<html><body><h1>Text</h1></body></html>" I want to get "html" and "body"
<dotix>
can't find a solution on google
mahtennek has quit []
ctp has joined #ruby
jlast has joined #ruby
zB0hs has quit [Read error: Connection reset by peer]
<dotix>
oh and "h1" in my prev example.. Forgot about it
jrhorn424 is now known as zz_jrhorn424
lampd1 has quit []
rdark has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
ConstantineXVI has joined #ruby
xymbol has quit [Quit: Be back later ...]
zz_jrhorn424 is now known as jrhorn424
Mothore has joined #ruby
rdark_ has quit [Ping timeout: 264 seconds]
xymbol has joined #ruby
jshultz has joined #ruby
<dotix>
Got it with .traverse on the object
mary5030 has joined #ruby
tier has joined #ruby
<marahin>
mozesz jeszcze dojebac .to_string(); (w C++!) i wio
<marahin>
w/c
<marahin>
sorry
<dotix>
but this doesn't respect the order afterwhich they appear... hmm
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
freerobby has joined #ruby
yalue has joined #ruby
quimrstorres has joined #ruby
fella6s has quit [Read error: Connection reset by peer]
jusmyth1 has joined #ruby
jobewan has joined #ruby
nastri has joined #ruby
xymbol has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
nanSTA has joined #ruby
akkad has quit [Ping timeout: 240 seconds]
danman has joined #ruby
akkad has joined #ruby
kaiwren has joined #ruby
russt has quit [Quit: russt]
<shock_one>
Could you remind me how to create a class with constructor automatically? It's something like ClassName = MagicObject.create_class(foo: 1, bar: 2)
tagrudev has quit [Remote host closed the connection]
livathin_ has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
gsd has joined #ruby
eichenwald has quit [Quit: WeeChat 1.0.1]
Hobogrammer has joined #ruby
CustosLimen has quit [Ping timeout: 255 seconds]
CustosL1men has quit [Ping timeout: 256 seconds]
Beoran_ has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
econerd4ever has quit [Remote host closed the connection]
thsig_ has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
<shevy>
Hanmac, do you have your projects including the most recent one with the graphs, on github?
Kricir has quit [Remote host closed the connection]
econerd4ever has joined #ruby
wjimenez5271 has joined #ruby
cbetta_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
ohcibi_ has joined #ruby
Y_Ichiro_ has joined #ruby
Su7 has joined #ruby
kiyote23 has joined #ruby
geggam has joined #ruby
suy_ has joined #ruby
Darryl__ has joined #ruby
Beoran__ has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
ereslibre has joined #ruby
gilmour_ has joined #ruby
rkalfane has joined #ruby
gigetoo_ has joined #ruby
Anarch_ has joined #ruby
PaulePan1er has joined #ruby
moloch has joined #ruby
aganov has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 264 seconds]
Hien_ has joined #ruby
teddyp1c_ has joined #ruby
Stoge88 has joined #ruby
s00pcan_ has joined #ruby
Akagi201 has quit [Remote host closed the connection]
thsig has quit [Read error: Connection reset by peer]
mary5030 has quit [Read error: Connection reset by peer]
cbetta has quit [Read error: Connection reset by peer]
Darryl_ has quit [Ping timeout: 265 seconds]
LRgraham has quit [Ping timeout: 265 seconds]
teotwaki has quit [Ping timeout: 265 seconds]
artgoeshere_ has quit [Ping timeout: 265 seconds]
suy has quit [Remote host closed the connection]
Karunamon has quit [Ping timeout: 265 seconds]
JaTochNietDan has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
nemesit|znc has quit [Ping timeout: 265 seconds]
cschneid has quit [Ping timeout: 265 seconds]
ndrst has quit [Ping timeout: 265 seconds]
ElderFain has quit [Ping timeout: 265 seconds]
jokke has quit [Ping timeout: 265 seconds]
cicloid has quit [Ping timeout: 265 seconds]
terrellt has quit [Ping timeout: 265 seconds]
phrozen77 has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
G has quit [Ping timeout: 265 seconds]
dickoff has quit [Ping timeout: 265 seconds]
krisleech has quit [Ping timeout: 265 seconds]
razieliyo has quit [Ping timeout: 265 seconds]
Hien has quit [Ping timeout: 265 seconds]
Su7_ has quit [Ping timeout: 265 seconds]
SegFaultAX has quit [Ping timeout: 265 seconds]
ohcibi has quit [Ping timeout: 265 seconds]
F__i__L has joined #ruby
BackEndCoder has quit [Ping timeout: 265 seconds]
ereslibre_laptop has quit [Ping timeout: 265 seconds]
elektronaut has quit [Ping timeout: 265 seconds]
canton7 has quit [Ping timeout: 265 seconds]
Y_Ichiro has quit [Ping timeout: 265 seconds]
kalz has quit [Ping timeout: 265 seconds]
orionstein has quit [Ping timeout: 265 seconds]
zly has quit [Ping timeout: 265 seconds]
nug has quit [Ping timeout: 265 seconds]
lupine has quit [Ping timeout: 265 seconds]
majoh has quit [Ping timeout: 265 seconds]
s00pcan has quit [Ping timeout: 265 seconds]
Brando753 has quit [Ping timeout: 265 seconds]
gigetoo has quit [Ping timeout: 265 seconds]
gilmour has quit [Ping timeout: 265 seconds]
PaulePanter has quit [Ping timeout: 265 seconds]
Anarch has quit [Ping timeout: 265 seconds]
avelldiroll has quit [Ping timeout: 265 seconds]
shaman42 has quit [Ping timeout: 265 seconds]
KramerC has quit [Ping timeout: 265 seconds]
suy|BNC is now known as suy
cbetta_ is now known as cbetta
Brando753-o_O_o has joined #ruby
LRgraham has joined #ruby
vasilakisfil has quit [Ping timeout: 265 seconds]
gigetoo_ is now known as gigetoo
artgoeshere has joined #ruby
cicloid_ has joined #ruby
KramerC_ has joined #ruby
krisleech has joined #ruby
BackEndCoder has joined #ruby
ElderFain has joined #ruby
gnarld_ has joined #ruby
nemesit|znc has joined #ruby
lupine has joined #ruby
dickoff has joined #ruby
dickoff has joined #ruby
dickoff has quit [Changing host]
orionstein has joined #ruby
ndrst has joined #ruby
jokke has joined #ruby
KramerC_ is now known as KramerC
Karunamon has joined #ruby
elektronaut has joined #ruby
canton7 has joined #ruby
majoh has joined #ruby
razieliyo has joined #ruby
teotwaki has joined #ruby
phrozen77 has joined #ruby
Paradox has joined #ruby
Photism has joined #ruby
SegFaultAX has joined #ruby
einarj has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
einarj has joined #ruby
JaTochNietDan has joined #ruby
avelldiroll has joined #ruby
cschneid has joined #ruby
Brando753-o_O_o is now known as Brando753
terrellt has joined #ruby
yfeldblum has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
epochwolf has joined #ruby
shaman42 has joined #ruby
sevvie has joined #ruby
kalz has joined #ruby
Nigel_ has joined #ruby
xxneolithicxx has joined #ruby
qba73 has quit []
<xxneolithicxx>
hi all, has anyone used the rubyinstaller.org installer before for Windows? Have a qq on how it ends up being setup and really dont want to have to boot a Windows vm to try it: Does it automatically add ruby/gem to the environment PATH so you dont have to fully qualify it?
yfeldblum has quit [Ping timeout: 260 seconds]
<shevy>
yes there is an option during install
<shevy>
if you click it, the path is modified and when you then start cmd.exe "ruby" will work
doodlehaus has joined #ruby
<shevy>
same with gem; "gem install bla" will also work
<xxneolithicxx>
shevy: k cool, ty
robustus is now known as robustus|Off
apeiros_ has quit [Remote host closed the connection]
deleg has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
marr has quit [Ping timeout: 256 seconds]
abuzze_ has quit [Remote host closed the connection]
jimbach has quit [Read error: Network is unreachable]
sevvie has quit [Read error: Connection reset by peer]
wjimenez5271 has quit [Remote host closed the connection]
tier_ has quit [Remote host closed the connection]
teddyp1c_ has quit [Remote host closed the connection]
doug2 has joined #ruby
teddyp1cker has joined #ruby
zmisc has joined #ruby
raldu_ is now known as raldu
raldu has quit [Changing host]
raldu has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
eichenwald has joined #ruby
Spami has quit [Client Quit]
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
aspires has joined #ruby
Anarch has joined #ruby
Anarch_ has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
neoxquick has joined #ruby
startupality has joined #ruby
Abhijit has joined #ruby
yeticry_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
uber_hulk has quit [Ping timeout: 240 seconds]
danman has quit [Quit: danman]
sambao21 has quit [Quit: Computer has gone to sleep.]
yeticry has quit [Ping timeout: 245 seconds]
danman has joined #ruby
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
sevvie has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
Spami has joined #ruby
sevvie has joined #ruby
olivier_bK has quit [Quit: Quitte]
ghostmoth has joined #ruby
nkumari has joined #ruby
marr has joined #ruby
spider-mario has joined #ruby
zmisc has quit [Read error: Connection reset by peer]
conniemj has joined #ruby
renderful has joined #ruby
nkumari has quit [Read error: Connection reset by peer]
nkumari has joined #ruby
samuel02 has quit [Remote host closed the connection]
deol has joined #ruby
sambao21 has joined #ruby
rajeshchawla has joined #ruby
phutchin1 has joined #ruby
freerobby1 has quit [Quit: Leaving.]
timonv_ has quit [Remote host closed the connection]
zmisc has joined #ruby
zmisc has quit [Client Quit]
taiansu has quit [Read error: Connection reset by peer]
danman has quit [Quit: danman]
taiansu has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
xymbol_ has quit [Quit: Be back later ...]
zmisc has joined #ruby
sk87 has joined #ruby
xymbol_ has joined #ruby
TheNumb has quit [Ping timeout: 250 seconds]
Dwarf has quit [Ping timeout: 272 seconds]
ki0 has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rennex has quit [Ping timeout: 240 seconds]
grn has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
patrick99e99 has joined #ruby
nkumari has quit [Remote host closed the connection]
|\|370 has quit []
axl_ has quit [*.net *.split]
phutchins has quit [*.net *.split]
ccooke has quit [*.net *.split]
iwishiwerearobot has quit [Read error: Connection reset by peer]
uber_hulk has joined #ruby
xymbol_ has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
iwishiwerearobot has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
freerobby has joined #ruby
checkit has joined #ruby
deleg has joined #ruby
eindoofus_ has joined #ruby
whoisjake has quit []
lw has joined #ruby
lw has quit [Max SendQ exceeded]
jheg has quit [Quit: jheg]
ccooke has joined #ruby
uber_hulk has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<eindoofus_>
if i plan to do web testing for a rails project in the near future where they use rspec, is it better to learn "ruby -> respec -> rails" or "ruby -> rails -> rspec" ?
TheNumb has joined #ruby
gnarld_ is now known as nug
lw has joined #ruby
whoisjake has joined #ruby
lw_ has joined #ruby
grn has joined #ruby
uber_hulk has joined #ruby
bricker`work has joined #ruby
uber_hulk has quit [Client Quit]
<shock_one>
Better do [ruby, rails, rspec] simultaniously.
Akagi201 has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
lw has quit [Ping timeout: 264 seconds]
kiyote23 has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
taiansu has quit [Remote host closed the connection]
<eindoofus_>
shock_one, simultaniously?
triple_b has joined #ruby
<shock_one>
Aha.
<eindoofus_>
shock_one, i would say it's at least better to learn a language before a framework
<shock_one>
Well, maybe Ruby would be a prerequisite.
<shock_one>
:)
conniemj has quit [Quit: (null)]
<shock_one>
RSpec and Rails are quite independent, though.
<eindoofus_>
so rails and rspec go hand in hand? are there any books that actually teach both simultaneously for rails 4?
deol has quit [Read error: Connection reset by peer]
Akagi201 has quit [Ping timeout: 265 seconds]
<shock_one>
Do you know MVC?
<shock_one>
Any framework, or at least the GoF pattern.
michaeldeol has joined #ruby
Xeago has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 252 seconds]
Takle_ has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 264 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
conniemj has joined #ruby
Rennex has joined #ruby
mary5030_ has quit [Remote host closed the connection]
lkba has joined #ruby
iwishiwerearobot has quit [Read error: Connection reset by peer]
alex88 has quit []
troyready has joined #ruby
freerobby has quit [Quit: Leaving.]
blahwoop has joined #ruby
iwishiwerearobot has joined #ruby
<blahwoop>
hi
<blahwoop>
who is juuio and why is he sending me weird messages
Kricir has joined #ruby
livathinos has joined #ruby
<eindoofus_>
i have the same question blahwoop
<[a]foo>
blahwoop: go into #freenode
<[a]foo>
paste his message and tell him he's spamming
<[a]foo>
he'll get banned
<claf>
^
<terrellt>
I'd do ruby -> rspec -> rails
<blahwoop>
ok
DaniG2k has quit [Quit: leaving]
freerobby has joined #ruby
<eindoofus_>
thanks terrellt. i was leaning towards that but wanted to get a second opinion
lbrf has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sea_local has joined #ruby
ixti has joined #ruby
fgo has joined #ruby
sambao21 has joined #ruby
_ixti_ has quit [Ping timeout: 244 seconds]
lbrf has quit [Ping timeout: 245 seconds]
shock_one has quit [Remote host closed the connection]
Xeago has joined #ruby
shazaum_ has joined #ruby
* IceDragon
walks in and bows
<blahwoop>
tinder!
mary5030 has joined #ruby
<IceDragon>
I wonder if shock_one, was Shock One, the dnb artist :O
* jhass
places his plate on IceDragon's back
eindoofus_ has left #ruby ["Leaving"]
* IceDragon
uses his tail to lift the plate and stands up
<IceDragon>
>.> I suppose you don't want this back
fgo has quit [Ping timeout: 250 seconds]
<jhass>
nooo, my cookies!
<IceDragon>
Cookies?
shazaum has quit [Ping timeout: 272 seconds]
* IceDragon
noms everything including the plate
<IceDragon>
P: delish
<jhass>
:(
ki0 has quit []
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Hijiri has joined #ruby
Spami has quit [Remote host closed the connection]
Rahul_Roy_ has joined #ruby
tyfighter has joined #ruby
Tranquility has joined #ruby
djbkd has joined #ruby
rshetty has quit [Remote host closed the connection]
tier has joined #ruby
nic019 has quit [Quit: Leaving...]
freerobby has quit [Quit: Leaving.]
Dwarf has joined #ruby
Advocation has joined #ruby
freerobby has joined #ruby
doev has joined #ruby
graydot has joined #ruby
blackmesa has joined #ruby
deric_skibotn has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
boombadaroomba has joined #ruby
bmichelsen has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
hiyosi has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElderFain has quit [Changing host]
ElderFain has joined #ruby
Spami has joined #ruby
taiansu has joined #ruby
hiall has quit [Quit: hiall]
iwishiwerearobot has quit [Ping timeout: 255 seconds]
lw_ has quit [Quit: b]
deleg has quit [Ping timeout: 244 seconds]
jheg has joined #ruby
chrishough has joined #ruby
doev has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 250 seconds]
ddd has joined #ruby
treehug88 has quit []
rdark has quit [Quit: leaving]
tgandrews has quit [Quit: This computer has gone to sleep]
quimrstorres has joined #ruby
Juanchito has joined #ruby
xymbol_ has joined #ruby
mary5030 has joined #ruby
n1lo has quit [Ping timeout: 256 seconds]
xxneolithicxx has joined #ruby
tgandrews has joined #ruby
nkumari has quit [Remote host closed the connection]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerou_ has joined #ruby
treehug88 has joined #ruby
renderful has joined #ruby
klmlfl has quit [Remote host closed the connection]
<xxneolithicxx>
is there any way to uniquely identify the specific call of a method (say you call the same method recursively, i need a way to differentiate one from the other). Would it have a unique id or stack address I can use?
<xxneolithicxx>
*not looking to pass in an additional variable to track depth or anything
wolf4ood has quit [Quit: (null)]
mary5030 has quit [Remote host closed the connection]
melik has joined #ruby
moritzs has joined #ruby
mary5030 has joined #ruby
jimbach has quit [Remote host closed the connection]
<apeiros>
xxneolithicxx: you can use caller
william3 has quit [Remote host closed the connection]
<claf>
inversion of control patterns in ruby?
kyb3r_ has joined #ruby
klmlfl has joined #ruby
<claf>
node people keep fuzzing over promises
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
<claf>
but but
sinequanon has joined #ruby
<xxneolithicxx>
apeiros: thx
aspires has quit []
thsig_ has quit [Remote host closed the connection]
zmisc has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
chinmay_dd has quit [Quit: Leaving]
aspires has joined #ruby
mloveless has joined #ruby
Takle has joined #ruby
danman has joined #ruby
teddyp1cker has joined #ruby
startupality has quit [Quit: startupality]
dangerou_ has quit [Ping timeout: 245 seconds]
Vile` has quit [Quit: brb]
geggam has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
michaeldeol has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
redjack1964 has joined #ruby
lemur has joined #ruby
conniemj has joined #ruby
nkumari has joined #ruby
deleg has quit [Ping timeout: 245 seconds]
Vile` has joined #ruby
paulfm_ has quit [Quit: Goodbye]
ramfjord has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
sargas has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
giuseppesolinas_ has quit [Client Quit]
bmichelsen has quit [Quit: ZZZzzz…]
<giuseppesolinas>
Hello
bMalum has joined #ruby
terlar has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
<lbrf>
giuseppesolinas: o/
djbkd has quit [Remote host closed the connection]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
timonv_ has joined #ruby
Megtastique has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
people who aren't stuck on ubuntu can just wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.bz2, compile it into /usr prefix and be done \o/
thsig has joined #ruby
Lingos has quit [Quit: Be back later ...]
eindoofus_ has joined #ruby
<shevy>
most of these on the list are gems by the way
<jamescarr>
shevy: but why/when did the ubuntu package install all those gems?
jdj_dk_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<jamescarr>
I just did an apt-get install ruby1.9.1 and now it wants to install every gem under the sun???
<shevy>
so you have to uncripple it via "apt-get install ruby1.9.1-dev"
<shevy>
apparently their philosophy is "we are a server OS, there is no need for you to compile anything, we provide (10 years old) packages for you"
<eindoofus_>
i'm confused by the use of "self" in this "well-grounded rubyist" example. why does line 21 refer to a class method, while line 25 seems to be for instance methods created through the attr_reader keyword:
<shevy>
jamescarr must be a nightmare to run multiple versions of ruby at the same time on debian
<jamescarr>
shevy: not really. This is inside a docker container
<jamescarr>
otherwise I'd use rvm
chipotle has quit [Quit: cya]
thsig has quit [Remote host closed the connection]
ghr has joined #ruby
<jamescarr>
I still might have the Dockerfile pull down ruby and compile. The verdict is out on that one for now
<jamescarr>
*pull down a specific version of ruby
tus has quit [Ping timeout: 265 seconds]
<shevy>
k but if you use rvm then you no longer use ubuntu anyway
o0oo0o has joined #ruby
<eindoofus_>
shevy, the PEOPLE array makes sense. it's the "self.public_method_defined?" that is confusing me. is this because class are objects in ruby?
<shevy>
so you won't need apt-get for ruby there
deleg has quit [Ping timeout: 265 seconds]
<shevy>
eindoofus_ no idea. You can also do Person.public_method_defined?
giuseppesolinas has joined #ruby
<eindoofus_>
shevy, does a "public_method" become an instance method in an instantiated object?
<shevy>
eindoofus_ that's just a name
timonv_ has quit [Remote host closed the connection]
tyfighter has joined #ruby
<shevy>
you can call it "abc?" and it will work the same
baweaver has joined #ruby
<eindoofus_>
shevy, the separation between classes and instances is driving me nuts. lol
eguneys has joined #ruby
<eguneys>
How do I solve this: Gem::LoadError: You have already activated i18n 0.6.1, but your Gemfile requires i18n 0.6.11. Prepending `bundle exec` to your command may solve this.
<shevy>
not many methods are interpreted specially
<shevy>
this one should be one "def self.inherited(i)"
<shevy>
eindoofus_ you instantiante from a class
shock_one has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
<eindoofus_>
shevy, what would be the equivalent to check for a class method?
<shevy>
eindoofus_ so the class is the initial blueprint for your object; it even still will refer to it, if you modify the class, the method should exist on your object
<shevy>
class Foo; end; foo = Foo.new
<shevy>
so we have foo instantiated
<shevy>
now we modify class Foo
<shevy>
class Foo; def tester; puts 'hi'; end; end
timonv_ has joined #ruby
<shevy>
foo.tester # hi
<shevy>
and your foo instance has the tester() method
aspires has quit []
conniemj has joined #ruby
shock_one has joined #ruby
armyriad has joined #ruby
<shevy>
eindoofus_ hmm
<shevy>
Foo.class.instance_methods(false)
quimrstorres has joined #ruby
michaeldeol has joined #ruby
<shevy>
I am not sure how to obtain class methods; I suppose they are also instance methods, just on some other level
taiansu has quit [Remote host closed the connection]
<shevy>
arup_r nope, large viruses that have about 2.5 million base pairs in their genome. ebola has only 7500 base pairs
* parabolize
is also reading that book. its great.
sea_local has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
<arup_r>
no idea.. About these.. you. shevy, carry on. :)
lukevinc has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 244 seconds]
<ddv>
dayuuumn shevy is so smart
FutureTense has quit [Ping timeout: 256 seconds]
havenn is now known as havenwood
<shevy>
arup_r I don't know either, it's not so old a research really; mostly started (or rather discovered) in 2005. up until that point they thought all these viruses would be small
mattmcclure has joined #ruby
samuel02 has quit []
fgo has joined #ruby
frode15243 has left #ruby [#ruby]
tesaf has joined #ruby
n1lo has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
decoponio has quit [Quit: Leaving...]
quimrstorres has quit [Remote host closed the connection]
chipotle has joined #ruby
jwingfi has quit []
timonv_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
iwishiwerearobot has joined #ruby
chris__ has joined #ruby
chris__ has left #ruby [#ruby]
conniemj is now known as cjim
shredding has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
cesar_ has joined #ruby
danman has joined #ruby
iwishiwerearobot has quit [Client Quit]
cesar_ is now known as Guest74652
jlast has quit [Remote host closed the connection]
Guest74652 is now known as cesarstafe
baweaver has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
renderful has quit [Remote host closed the connection]
baweaver has joined #ruby
claymore has joined #ruby
<cesarstafe>
hi people, a question about "begin .. rescue .. end" is it possible to use only "rescue" avoiding to put "begin & end" inside an ".each" block?
sea_local has joined #ruby
<apeiros>
cesarstafe: no
aspires has joined #ruby
deleg has joined #ruby
<apeiros>
there is inline rescue (similar as inline if), but you should not use it as you can't specify the exception class.
jenrzzz has joined #ruby
cesarsta1e has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
greenbagels has joined #ruby
jelera has joined #ruby
cesarstafe has quit [Ping timeout: 245 seconds]
wjimenez_ has joined #ruby
<cesarsta1e>
hi people, a question about "begin .. rescue .. end" is it possible to use only "rescue" avoiding to put "begin & end" inside an ".each" block?
<cesarsta1e>
I think that not because I have read that "def .. rescue .. end" works where "def" is the part that works as if it were a "begin"
<cesarsta1e>
but not sure about that
<apeiros>
cesarsta1e: if I answer you again, will you ask again?
ghostmoth has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
MattB2 has joined #ruby
geilt has joined #ruby
Megtastique has quit []
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
valeriansaliou has joined #ruby
davasaurous has joined #ruby
<eguneys>
I can't run `rake db:seed` so I run `ruby db/seeds.rb` does it make a difference? is that wrong
djbkd has joined #ruby
vedis has quit []
RyanV has quit [Quit: (null)]
sambao21 has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
<apeiros>
eguneys: #rubyonrails, and yes, there's a difference. the rake task ensures everything necessary is loaded and prerequisites are met.
tvw has joined #ruby
aplarcher has joined #ruby
bMalum has joined #ruby
<eguneys>
apeiros: i have a custom rack based project non rails , and I don't have rake in my Gemfile, it conflicts with my project what should I do. PS: I use standalone_migrations tasks which is not included in the Gemfile
<apeiros>
eguneys: in that case: nobody here has a clue about what your rake tasks code consists of. so *zero* chance to tell.
<apeiros>
read your code
baweaver has quit [Remote host closed the connection]
<eguneys>
it's empty I just include standalone_migrations, and i18n has a conflict
davasaurous has quit [Ping timeout: 272 seconds]
<apeiros>
eguneys: those are empty words which mean nothing
<apeiros>
by what magic should we know what "standalone_migrations" or "i18n" in your custom rack app does?
<eguneys>
ok the problem is, I require a gem which is not included in my Gemfile and it causes conflict
dopie has joined #ruby
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Client Quit]
CpuID has joined #ruby
pengin_ has joined #ruby
jamescarr has quit [Remote host closed the connection]
sevvie has joined #ruby
<apeiros>
is today jerkday?
sevvie has quit [Read error: Connection reset by peer]
<Hijiri>
but people like the C tutorial that site has
<Hijiri>
because "the hard way is easier"
<aplarcher>
:)
jello^ has joined #ruby
chipotle has quit [Quit: cya]
CpuID has quit [Quit: This computer has gone to sleep]
bMalum has quit [Quit: bMalum]
<aplarcher>
for the ones that know codecademy, is it any good?
<jello^>
Hi. I'm producing templated cfg for an application, for a bunch of environments (i.e. retrofitting cfg mgmt with puppet to an existing infrastructure). I've turned one environment's cfg files into ERB templates. I'm wondering if I can use those templates in reverse to extract the existing cfg values from the other environments' config files
kiyote23 has quit [Read error: Connection reset by peer]
<jello^>
That is, I can think of the existing cfg as the result of applying some values to the erb templates I have. Can I extract those values from the files by 'unrendering' the ERBs?
ramfjord has joined #ruby
kiyote23 has joined #ruby
<aplarcher>
gotta go
<aplarcher>
talk to you guys later
<aplarcher>
tks for the info
aplarcher has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tgandrews has quit [Quit: This computer has gone to sleep]
emmesswhy has quit [Quit: This computer has gone to sleep]
<jello^>
I don't know whether to be happy or roll my eyes ;-)
<jello^>
it's just an example of the equivalent with another language's templating system
diegoviola has joined #ruby
<jello^>
although it does occur to me that I could set the template delimeter to <% %> rather than TT's [% %] and just use the perl library this one time...
nkumari has joined #ruby
<shevy>
and what do you want to extract from the erb? the html code?
ghr has joined #ruby
<jello^>
shevy: there is no html code. I think I've explained badly.
<shevy>
hmm but you use erb there
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
<jello^>
yeah. so I'm going to produce my app's config files using ERB templates. I've made those templates, by reversing one environment's config into templates and a yaml file - rendering those together produces files equivalent to the original files
<eam>
jello^: shevy is a php user
<jello^>
I have several other environments, each with their own config files, which have the same structure but different values/data
<jello^>
I want to manage them using the same tools, so I want to extract the config values for each of those environmnts. Being a lazy programmer, I thought about how to automate it
<shevy>
eh I abandoned php like 10 years ago
<jello^>
normally you have: a) template and b) data to produce c) result
<jello^>
I have a) and c) and want to use a) to extract b) from c)
<jello^>
does that make sense?
<shevy>
dunno
<shevy>
:)
<jello^>
I should've tried #metallica, huh?
<shevy>
I have only seen erb used as a html generator
<jello^>
erb doesn't generate any HTML, it's just used to template values into it
<xxneolithicxx>
now thats an interesting problem, how many ERB we talking?
Timgauthier has quit [Max SendQ exceeded]
ta has joined #ruby
<shevy>
in like sinatra views they use .erb files
ghr has quit [Ping timeout: 252 seconds]
<jello^>
xxneolithicxx: 1 per file... 25 files per environment. 4 environments to do. 1 done (so I have the ERBs made, the yaml for that 1 env, the ruby code and puppet manifest to render them)
<xxneolithicxx>
I would just convert the erb into an insanely large regex if its not that many and then run it against c)
<xxneolithicxx>
wow
<jello^>
but it's fine, the problem still reduces to 1 erb and 1 file
<jello^>
the rest is just doing it in a loop...
vinleod has joined #ruby
<twohlix_>
what format are your config files in?
<twohlix_>
just various text formats?
<jello^>
twohlix_: an amusing mixture of text formats, from yaml and json through to php code :D
<twohlix_>
yaml is easy to read in and or dump
<jello^>
hence wanting not to care too much about them other than being text with ERB includes
<twohlix_>
so you've got yaml covered i hope
<jello^>
twohlix_: sure, and my values are now in yaml
<jello^>
twohlix_: my instinct is to approach this as a reverse templating, rather than trying to parse/load any of the files
<twohlix_>
right, i read that part too
<jello^>
are you advocating the opposite?
abuzze_ has joined #ruby
<twohlix_>
I'm not sure, I've never really sucessfully tried parsing a file from the same template i use to output it :\
<twohlix_>
it sounds like it would be nice and DRY
<shevy>
:D
claymore has quit [Quit: Leaving]
<twohlix_>
but
AlexRussia has quit [Ping timeout: 258 seconds]
<twohlix_>
i just dont know.
anaeem1_ has quit [Remote host closed the connection]
<jello^>
re your "compile a massive regex"
kaspertidemann has joined #ruby
crazydiamond has quit [Remote host closed the connection]
wallerdev has joined #ruby
<jello^>
do ERBs in memory actually exist as massive regexes?
anaeem1 has joined #ruby
<jello^>
I've never looked at the parser internals
whoisjake has quit []
AlexRussia has joined #ruby
whoisjake has joined #ruby
<apeiros>
jello^: like most template systems, it's converted to native code
abuzze has quit [Ping timeout: 240 seconds]
<apeiros>
converting it to a regex makes no sense
<xxneolithicxx>
its converted to a bunch of strings concatted to the same variable
codecop has quit [Remote host closed the connection]
<apeiros>
xxneolithicxx: strings alone could not express control structures or other code in templates
<jello^>
apeiros: well, it makes a bunch of sense as an intuitive way to create a simple templating system, it's just a slow way to do it compared wth compiling code
<jello^>
tomato, tomahto :)
taiansu has joined #ruby
<apeiros>
care to show me how something like "hello <%= entity %>!" would look like as a regex template?
<apeiros>
and how you feed data into that regex template…
<xxneolithicxx>
oogly
<shevy>
let's kick him if he can't answer!
<twohlix_>
jello^, my first instinct is to use yaml as much as you can for your config files, it makes it trivial to parse / dump
<shevy>
^^^ the lazy way
evanjs has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
emmesswhy has joined #ruby
s00pcan has joined #ruby
<twohlix_>
also jello^: JSON is the same way as yaml. so your yaml + json files should be covered, its all those other files you've got which are trickier.
<jello^>
twohlix_: I agree, but I've joined this company who have a bunch of legacy tech and I'm making life easier by puppetising the cfg. I'm not going to go and rewrite, say, wordpress's DB cfg (in PHP) to load from YAML - at least, not as a dependency of introducing puppet
momomomomo has joined #ruby
<twohlix_>
well right, thats when you use the regexes :)
<jello^>
(they have a bunch of apps in several languages that make up one 'deployment')
<twohlix_>
but parsing using your templates is the hard part
<twohlix_>
i dont think thats doable :\
<jello^>
intuitively it seems plausible, and a similar templating system in a similar language has support for it
<jello^>
i'm just wondering if a gem exists already
<jello^>
and/or whether anybody has advice or pointers on ways to attack writing one
fgo has joined #ruby
<xxneolithicxx>
even with regex, it may not be that straightforward or even doable in a single regex depending how complicated your template is
quimrstorres has joined #ruby
<jello^>
actually... it's perhaps as simple as diffing the template vs the cfg file, grabbing just the different characters [not lines], removing the <%= .. %> from one of them
rpag has left #ruby [#ruby]
rpag has joined #ruby
Hijiri has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
<rpag>
apeiros, chanserv links to modruby.net when you join btw
<jello^>
and then building the yaml from that is a simple problem
taiansu has quit [Ping timeout: 264 seconds]
moritzs has joined #ruby
cjim has quit [Read error: No route to host]
<apeiros>
rpag: yeah, aplarcher reminded me of that already. sooo bad :(
diego_ar has quit [Remote host closed the connection]
<jello^>
xxneolithicxx, twohlix_: thanks, you've been excellent rubber-ducks, I think I have a plan (sadly not involving actual reverse templating)
<xxneolithicxx>
errmm, not really if your template have loops or other logic. is it just plain variable input
<jello^>
xxneolithicxx: they don't, they are just simple substitution
fabrice31 has quit [Ping timeout: 240 seconds]
<jello^>
lots of define('AUTH_KEY', "<%= wordpress.auth_key %>"); sort of thing
<xxneolithicxx>
diff it up then
<jello^>
yeah seems simple enough to do
<jello^>
thanks :)
<twohlix_>
jello^: you've just run into the common problem of outputting a file in a particular format, and reading it in that format. I've never really seen templates for it, always just have the parser and the writer :\
chipotle has joined #ruby
mary5030_ has quit [Remote host closed the connection]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
jelera has quit [Quit: Leaving]
mary5030 has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
graft_ is now known as graft
<jello^>
I'm not sure that IS the problem, but it is A problem
<jello^>
anyway, thanks for helping me think this through
tus has joined #ruby
<twohlix_>
yea, np yay irc
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
drkyro has joined #ruby
dfinninger has quit []
michaeldeol has joined #ruby
<jello^>
apeiros: I'm just trying to recall whether ruby regexes have an equivalent to perl' s///e (i.e. evaluating the RHS as ruby code)
Musashi007 has joined #ruby
<jello^>
apeiros: if so, it's dead simple to do a simple substitution templating regex...
<apeiros>
jello^: no
<apeiros>
you can pass it a block to execute code. you can't pass it a string.
<jello^>
s{<%= ((?!%>)+) %>}{value($1)}e
Hijiri has joined #ruby
<jello^>
would be fine
<jello^>
in Perl, I mean. I guess there's an equivalent way to do that in ruby.
<apeiros>
not really. also that doesn't take care of control structures.
<jello^>
i.e. matching anything between <%= and %> using a negative lookahead assertion to avoid greedily capturing %>s
nkumari has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 272 seconds]
<apeiros>
if all you want is *variable substitution*, which I wouldn't call template, then there are means, yes.
lnormous has joined #ruby
<apeiros>
String#%, Kernel#sprintf, or String#gsub with a hash as second arg
<jello^>
sure, but I did say "simple substitution templating". I agree with you entirely and I see why it was idiotic to wonder if ERB might be a regex internally given control structures etc
<jello^>
apeiros: nod
<jello^>
you're right and I'm just being overly literal about something that really wasn't my argument
djbkd has joined #ruby
<shevy>
Hanmac add me to one of your gems!
bMalum has joined #ruby
nkumari has joined #ruby
jimbach has quit [Read error: Network is unreachable]
sinequanon has quit []
quimrstorres has quit [Remote host closed the connection]
jimbach has joined #ruby
econerd4ever has quit [Remote host closed the connection]
conniemj has joined #ruby
pengin_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
pengin_ has joined #ruby
tier has quit [Remote host closed the connection]
Mothore has quit [Quit: Be back later ...]
sk87 has joined #ruby
roolo has joined #ruby
aspires has quit []
iwishiwerearobot has joined #ruby
livingstn has quit []
lxsameer has quit [Quit: Leaving]
econerd4ever has quit [Ping timeout: 252 seconds]
econerd4ever has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
pengin_ has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
tesaf has quit [Quit: Lost terminal]
<Pro|>
haanmac never sleeps
bMalum has quit [Quit: bMalum]
rbrs has quit [Quit: Leaving]
spider-mario has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 256 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
freerobby has quit [Quit: Leaving.]
roolo has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
patrick99e99 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conniemj has quit [Quit: (null)]
<zenspider>
Pro|: he's a ruby script.
iwishiwerearobot has quit [Ping timeout: 256 seconds]
<Pro|>
maybe thats why
jlast has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
<kaspergrubbe_>
Ruby scripts only sleeps when the GC is marking before a sweep
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
pengin_ has joined #ruby
jaequery has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
conniemj has joined #ruby
whoisjake has quit []
sevvie has quit [Ping timeout: 260 seconds]
o0oo0o has quit [Quit: WeeChat 0.4.3]
wsmoak has joined #ruby
wsmoak has joined #ruby
davasaurous has joined #ruby
blahwoop has quit [Remote host closed the connection]
davasaur_ has joined #ruby
nkumari has quit [Remote host closed the connection]
davasaurous has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
nkumari has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stalkr_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
nkumari has quit [Remote host closed the connection]
davasaurous has joined #ruby
davasaur_ has quit [Read error: Connection reset by peer]
mloveles_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<ged>
Wow I never knew about gsub with a Hash. That's great!
mloveless has joined #ruby
<zenspider>
??
nkumari has joined #ruby
<zenspider>
oh, as the substitutions? yeah. I haven't used it yet :)
<zenspider>
'lo ged. how goes?
<ged>
Yeah. :)
<ged>
It goes well!
rylev has joined #ruby
<ged>
How about with you?
<zenspider>
I'm super. been unemployed for ~2 mo now and it's great.
mloveless has quit [Remote host closed the connection]
<rpag>
zenspider, i thought you were working with tenderlove?
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<zenspider>
rpag: was, when we were both at AT&T, but he (and I afterwards) left.
AlexRussia has joined #ruby
<zenspider>
he's at redhat now.
rh1n0 is now known as rh1n0_away
conniemj has quit [Quit: (null)]
<zenspider>
I applied. they supposedly liked me, but apparently balked at negotiations. budget, supposedly.
<rpag>
sucks :(
<zenspider>
eh. I'm enjoying the time off. helping our study group. doing a coursera course (I should be doing the final now). hacking on my own stuff.
ghr has joined #ruby
<ged>
What're you hacking on? I haven't seen an ANN from you in a while, but then maybe it's just that I don't read ruby-talk as often anymore.
* apeiros
now wonders about zenspider's asking price :D
mloveless has joined #ruby
havenwood has quit [Remote host closed the connection]
lbrf has quit [Quit: Be back later ...]
wjimenez_ has quit [Remote host closed the connection]
<zenspider>
it's not unreasonable
<zenspider>
ged: that's because omnifocus is really really mad at me right now.
KnownSyntax has quit []
<zenspider>
I've got a big red badge in my menubar with "109" on it.
PaulePan1er is now known as PaulePanter
<zenspider>
I should be doing that too
BTRE has quit [Remote host closed the connection]
<ged>
Hahaha I know the feeling.
<zenspider>
tho a ton of my stuff is stable now. I need a new project
BTRE has joined #ruby
davasaur_ has joined #ruby
mloveless has quit [Remote host closed the connection]
davasaurous has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
<rpag>
ruby is max'ed out for libs
<zenspider>
doubtful
treehug88 has quit [Ping timeout: 244 seconds]
paulfm has quit [Quit: Goodbye]
ghr has quit [Ping timeout: 256 seconds]
<ged>
Hardly.
baweaver has quit [Remote host closed the connection]
davasaur_ has quit [Remote host closed the connection]
<apeiros>
far from
<apeiros>
zenspider: write a good barcode reader lib! :)
<chipotle>
hi
<rpag>
without reinventing other attempts it feels like it
<chipotle>
how goes?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
* apeiros
has to resort to jruby+zxing
<apeiros>
and even had to patch that to get it to read binary data qr codes
sk87 has joined #ruby
livathinos has joined #ruby
bklane has joined #ruby
treehug88 has joined #ruby
KnownSyntax has joined #ruby
<headius>
patch zxing I assume
<zenspider>
rpag: some of those other attempts really need some reinventing. :)
<apeiros>
headius: yes
graft has quit [Ping timeout: 264 seconds]
<zenspider>
tenderlove had some code to read qrcodes via isight iirc
<apeiros>
it tries to convert the binary data to utf-8. which fails for 0x80-0xff
eindoofus_ has quit [Ping timeout: 250 seconds]
<apeiros>
zenspider: I didn't get his to compile reliably
<apeiros>
iirc he relied on an old build of opencv
wjimenez5271 has joined #ruby
jlast has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
pandaant has joined #ruby
asteve has joined #ruby
jlast has joined #ruby
agent_white has joined #ruby
<asteve>
if you're storing a key/val pair in a hash table, what method of requesting the table would you expect? pass in a key and get out a val?
jheg has quit [Quit: jheg]
duncannz has joined #ruby
deleg has quit [Ping timeout: 244 seconds]
<zenspider>
apeiros: doesn't surprise me
<zenspider>
asteve: requesting the table?
<zenspider>
myhash[mykey] => result
ta has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
mloveless has quit [Remote host closed the connection]
<zenspider>
gmind: I'll just throw in emacs to balance it out
gmind has quit [Client Quit]
conniemj has quit [Remote host closed the connection]
<zenspider>
we helped another one!
<shevy>
hehehe
conniemj has joined #ruby
<xxneolithicxx>
emacs is the only truth, add emacs-goodies and color coding and we are off to the races
pwh has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<xxneolithicxx>
who needs stinkin editors with popup and autocomplete garbage
<jello^>
I had a colleague who was really good at emacs
<jello^>
sometimes he even wrote some code
<xxneolithicxx>
lol
<agent_white>
I don't need another OS to try
<jello^>
no yo dawg?
<agent_white>
nonodawg
narcan has joined #ruby
lbrf has joined #ruby
bricker`work has quit [Quit: leaving]
<shevy>
it's kinda hard to reason against emacs in ruby. after all matz wrote ruby in emacs
mary5030 has quit [Ping timeout: 244 seconds]
<giuseppesolinas>
dat feel when forced to use wordpress
lucyinthesky has joined #ruby
Hijiri has quit [Ping timeout: 258 seconds]
<xxneolithicxx>
you mean ruby in your emacs?
<agent_white>
I puts ruby in my coffee.
<zenspider>
emacs-goodies and color coding?
<zenspider>
you mean... emacs?
<xxneolithicxx>
no emacs-goodies is the RHEL pkg with the support or the additional stuff or some crap like that
<agent_white>
emacs... you mean... vim?!?!
<zenspider>
I don't use OSes that cripple my packages
<agent_white>
\o/
<zenspider>
emacs is emacs
<zenspider>
ruby is ruby
<zenspider>
if they fuck with that because of some dogma, I flip the bozo bit
<terrellt>
agent_white++
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
aloysius21 has joined #ruby
<mozzarella>
u wot m8
wallerdev has quit [Quit: wallerdev]
<mozzarella>
they just make extra packages
econerd4ever has joined #ruby
<zenspider>
no, they split up the real package
segfalt has joined #ruby
sptx00 has quit [Quit: Ex-Chat]
<mozzarella>
no
perturbation has joined #ruby
wallerdev has joined #ruby
<xxneolithicxx>
who cares, all i know is i always install emacs and emacs-goodies for the extra plugins
pwh has quit [Ping timeout: 244 seconds]
AlexRussia has joined #ruby
<xxneolithicxx>
all i need is smart indent and color coding and we are off to the races
lolmaus has quit [Read error: Connection reset by peer]
<terrellt>
Life would be sad without all my vim plugins.
<xxneolithicxx>
damn kids these days and their f'ing limes and lemons and what not
lolmaus has joined #ruby
<momomomomo>
eh text editor is a text editor; if you’re comfortable with it, great - if not, switch
<zenspider>
xxneolithicxx: I believe I made it clear that I care, but thanks for being dismissive
<xxneolithicxx>
spend more time talking about their awesome editor then writing sane code
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
<xxneolithicxx>
diff ppl need diff things, im not being dismissive
<wasamasa>
emacs-goodies?
<xxneolithicxx>
im just saying "I" dont use it
<wasamasa>
haven't come across that one
* wasamasa
reads backlog
pwh has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eichenwald has quit [Quit: WeeChat 1.0.1]
gtc has quit [Remote host closed the connection]
<zenspider>
"who cares" is definitely being dismissive.
<zenspider>
nice thing about IRC in emacs is the /fools list
<xxneolithicxx>
i was being dismissive about the split of the packages, not the editors
vinleod has quit [Quit: Computer has gone to sleep.]
Shazaum has joined #ruby
maletor has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
louism2wash has quit [Quit: This computer has gone to sleep]
<jenrzzz>
does anyone know of some good resources on perl's design and how it influenced ruby?
freerobby has quit [Quit: Leaving.]
mloveless has joined #ruby
charliesome has joined #ruby
lampd1 has joined #ruby
parduse has quit [Read error: Connection reset by peer]
<wasamasa>
perl's design influenced ruby?
apeiros_ has joined #ruby
davasaurous has quit [Ping timeout: 256 seconds]
<jenrzzz>
ruby took all the good parts of perl
<jenrzzz>
and none of the bad
<wasamasa>
ok, the terseness and MTOWTDI
nkumari has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
davasaurous has joined #ruby
<jenrzzz>
rubygems was influenced a lot by CPAN
<shevy>
well some global variables or strange volatile ones like $1
parduse has joined #ruby
<jenrzzz>
they are the only languages AFAIK with the flip-flop operator
x1337807x has joined #ruby
<wasamasa>
but there's no silly sigils or inane internals leaking through or lack of OOP
WillAmes has quit [Ping timeout: 264 seconds]
<wasamasa>
or the entire business of "A good programming language should approximate a natural language" which is pretty much the only thing about perl you can actually find design resources on
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<jenrzzz>
yeah, i've been looking into that
<jenrzzz>
where are the programming historians?
mloveless has quit [Remote host closed the connection]
dts|pokeball has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
<wasamasa>
if you want to hear about that (and some aphorisms), there's a pretty nice larry wall video on youtube
<xxneolithicxx>
reference some college programming languages books maybe? The one I have I think has an interview for Matz
<xxneolithicxx>
jenrzzz: looking at it now, mis-spoke it has bjorne and a few others
sambao21 has joined #ruby
Axy has joined #ruby
<xxneolithicxx>
jenrzzz: it says Smalltalk, Eiffel, Ada, Perl and Python were the related/basis languages
<wasamasa>
jenrzzz: hmm, didn't know that
<postmodern>
wasamasa, actually metasploit was originally perl, and people convinced them to port to Ruby because Rails was all the rage at the time and perl was dying
<xxneolithicxx>
jenrzzz: Concepts of Programming Languages 8e
<jenrzzz>
xxneolithicxx: yeah, I know that, but I'm trying to dig a little deeper
<jenrzzz>
fuck, i shoulda asked matz at rubyconf
tds has joined #ruby
Lingos has quit [Ping timeout: 245 seconds]
<jenrzzz>
maybe the truth isn't all that interesting and we should come up with a legend
boombadaroomba has quit [Remote host closed the connection]
<zenspider>
how is that inconsistent? I don't get it
taiansu has joined #ruby
fabrice31 has joined #ruby
<tds>
if you have an array that is empty, and you use the single-splat operator to expand that array into a method's argument list, but the method takes no arguments, there won't be a "wrong number of arguments" error, because an empty array expanded results in no arguments
<tds>
if you have a hash that is empty, and you use the double-splat operator to expand that hash into a method's keyword arguments list, but the method take no arguments (keyword or otherwise), a "wrong number of arguments" error is raised, even though an empty hash expands into no arguments
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seryl has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
<tds>
unless i am misunderstanding what the double-splat operator is meant to do, but at least in its current form, it is not a perfect analogue of the single-splat operator