tjohnson has quit [Quit: Connection closed for inactivity]
baroquebobcat has quit [Quit: baroquebobcat]
vozcelik has joined #ruby
vozcelik has quit [Client Quit]
crueber1 has quit [Quit: Leaving.]
vozcelik has joined #ruby
dixie__ has quit [Remote host closed the connection]
<aob_>
jhass: ok got it working with a combination of flat_map and map :)
siso has quit [Quit: siso]
Musashi007 has quit [Quit: Musashi007]
zyxelthrone has quit [Quit: WeeChat 1.1.1]
vozcelik has quit [Ping timeout: 250 seconds]
athan has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clabruno has joined #ruby
davejacobs has joined #ruby
iwishiwerearobot has joined #ruby
razorsharph has quit [Ping timeout: 250 seconds]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
zacstewart has joined #ruby
tunaCanBruh has joined #ruby
KnownSyntax has quit [Quit: Connection closed for inactivity]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
jlast has joined #ruby
alyosha has quit [Remote host closed the connection]
tvon has joined #ruby
parduse has quit []
CustosLimen has quit [Ping timeout: 240 seconds]
towski_ has quit [Ping timeout: 245 seconds]
athan has quit [Ping timeout: 245 seconds]
athan has joined #ruby
jlast_ has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
multi_io has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
parduse has joined #ruby
jack_rabbit has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
Rollabunna has joined #ruby
allcentury has joined #ruby
multi_io_ has quit [Ping timeout: 250 seconds]
jlast_ has quit [Ping timeout: 245 seconds]
greenbagels has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has joined #ruby
mxrguspxrt has joined #ruby
dfinninger has quit [Remote host closed the connection]
bmichelsen has quit [Client Quit]
athan has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
ahuman_ is now known as ahuman
charliesome has quit [Quit: zzz]
Soda has joined #ruby
Azure has quit [Excess Flood]
CustosLimen has joined #ruby
Azure has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Alina-malina has joined #ruby
mxrguspxrt has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
mxrguspxrt has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
mroach has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
Hobogrammer has joined #ruby
CustosL1men has quit [Ping timeout: 245 seconds]
rubytor has joined #ruby
fryguy9 has quit [Quit: Leaving.]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
werelivinginthef has joined #ruby
athan has joined #ruby
_maes_ has quit [Ping timeout: 244 seconds]
werelivinginthef has quit [Ping timeout: 252 seconds]
pengin has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
dkphenom has joined #ruby
athan has quit [Ping timeout: 244 seconds]
tmk1108 has joined #ruby
athan has joined #ruby
fgo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pika_pika has quit [Ping timeout: 245 seconds]
DonOtreply has joined #ruby
livingstn has joined #ruby
jbw__ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
wolves_cs has joined #ruby
rubytor has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
stunder has quit [Read error: Connection reset by peer]
jbw_ has quit [Ping timeout: 256 seconds]
ptrrr has quit [Client Quit]
jonr22 has joined #ruby
Limix has quit [Quit: Limix]
athan has quit [Ping timeout: 240 seconds]
piotrj has joined #ruby
athan has joined #ruby
marr has quit [Ping timeout: 265 seconds]
clabruno is now known as razorsharph
nfk has quit [Quit: yawn]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ptrrr has joined #ruby
mistermocha has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
rubytor has joined #ruby
gsd has joined #ruby
wallerdev has quit [Quit: wallerdev]
baweaver has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 256 seconds]
ptrrr has quit [Ping timeout: 246 seconds]
razieliyo has joined #ruby
dorei has quit []
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
mistermocha has quit [Remote host closed the connection]
piotrj_ has joined #ruby
swgillespie has joined #ruby
pietr0 has quit [Quit: pietr0]
zacstewart has quit [Remote host closed the connection]
jhebden has joined #ruby
jhebden has quit [Max SendQ exceeded]
scripore has quit [Quit: This computer has gone to sleep]
piotrj has quit [Ping timeout: 245 seconds]
jhebden has joined #ruby
jlast has joined #ruby
scripore has joined #ruby
rubytor has quit [Ping timeout: 246 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
lioninawhat has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 255 seconds]
karmatr0n has joined #ruby
Sirupsen has joined #ruby
jlast has joined #ruby
jack_rabbit has joined #ruby
mistermocha has joined #ruby
Takle has quit [Remote host closed the connection]
Number2 has joined #ruby
zachrab has joined #ruby
Deithrian has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
zachrab has quit [Ping timeout: 245 seconds]
mistermocha has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
chrishough has joined #ruby
fabrice31 has joined #ruby
duncannz has joined #ruby
mmoretti has quit [Quit: Leaving...]
chrishough has quit [Client Quit]
TristanH has quit [Ping timeout: 252 seconds]
scripore has quit [Quit: This computer has gone to sleep]
shellfu_afk has quit [Read error: Connection reset by peer]
ponga has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 255 seconds]
pandaant has joined #ruby
psy_ has joined #ruby
wallerdev has joined #ruby
dfinninger has joined #ruby
Ulrike has quit [Quit: asche zu asche und staub zu staub.]
Ulrike has joined #ruby
YourNickname has joined #ruby
sevvie has joined #ruby
YourNickname is now known as Guest99833
timanema has quit [Quit: leaving]
fgo has joined #ruby
dfinninger has quit [Ping timeout: 246 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
Guest99833 has quit [Remote host closed the connection]
leafybasil has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
allcentury has quit [Quit: WeeChat 1.0]
DonOtreply has quit [Quit: DonOtreply]
triple_b has joined #ruby
piotrj_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
athan has quit [Quit: No Ping reply in 180 seconds.]
Megtastique has joined #ruby
athan has joined #ruby
lampd1_ is now known as lampd1
ecksit has joined #ruby
Deithrian has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
<m4rCsi>
Hi
ZoanthusR has joined #ruby
<jhass>
hi
baroquebobcat has joined #ruby
arescorpio has joined #ruby
Guest123 has joined #ruby
<m4rCsi>
I am passing a hash from one part of an application to another. What is the best way to test (with rspec) to output the first part of the application and then also test/generate a valid hash for the test of the second part of the app.
Jetchisel has joined #ruby
<m4rCsi>
So the two are both conform to the same. Like if I further down the line change the output. It affects the test of the second.
<m4rCsi>
Is there a good way to deal with this?
blackmes1 has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
Tuxero has left #ruby [#ruby]
robustus has quit [Ping timeout: 264 seconds]
OrbitalKitten has quit [Client Quit]
robustus has joined #ruby
cvtsx has quit [Read error: Connection reset by peer]
skj3gg has joined #ruby
athan has quit [Ping timeout: 252 seconds]
techietrash has joined #ruby
iwishiwerearobot has joined #ruby
ptrrr has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
piotrj has joined #ruby
jenrzzz has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
maximski has quit []
tier has joined #ruby
livingstn has quit [Ping timeout: 250 seconds]
piotrj_ has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
skj3gg has quit [Quit: ZZZzzz…]
siso has joined #ruby
jlast has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
piotrj has quit [Ping timeout: 245 seconds]
livingstn has joined #ruby
mikeric has quit []
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
Guest54901 has joined #ruby
ptrrr has quit [Ping timeout: 265 seconds]
Guest54901 has quit [Client Quit]
havenwood has joined #ruby
lioninawhat has joined #ruby
kt2 has joined #ruby
freds25t_ has quit [Remote host closed the connection]
crazymykl has joined #ruby
kt2 has quit [Client Quit]
mloveless has quit [Remote host closed the connection]
DogHackit has joined #ruby
lys has joined #ruby
freds25th has joined #ruby
Guest123 has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
<DogHackit>
Hello. If I create a class with an initializer @init = Array.new, can I use array methods on objects that I create with that class?
<mozzarella>
is squeeze a new method?
startupality has quit [Client Quit]
Mia has quit [Read error: Connection reset by peer]
<havenwood>
mozzarella: nope
<mozzarella>
it's the first time I see it
mxrguspxrt has quit [Remote host closed the connection]
livingstn has quit [Ping timeout: 250 seconds]
nobitanobi has quit [Remote host closed the connection]
riotjones has joined #ruby
<jhass>
DogHackit: no, you need to delegate the calls. delegate and forwardable stdlibs may be of interest
<pipework>
Mmm forwardable.
wallerdev has quit [Quit: wallerdev]
<DogHackit>
jhass, pipework: thanks! I will check it out!
kt2 has joined #ruby
livingstn has joined #ruby
freds25th has quit [Ping timeout: 265 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claptor has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkphenom has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
riotjones has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
willharrison has joined #ruby
mikeric has joined #ruby
piotrj_ has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
jonr22 has joined #ruby
Channel6 has quit [Remote host closed the connection]
<mozzarella>
guys
<mozzarella>
is there any good ncurses library for ruby? there's a bug in ncursesw so I can't use that one
<mozzarella>
it seems to be dead anyway
wallerdev has joined #ruby
mkaesz has joined #ruby
<pipework>
There's a couple libraries, but I never felt like they were good, personally. I spent a few weekends trying to write a testing framework to functionally test ncurses applications in ruby. Was a mess.
athan has quit [Ping timeout: 265 seconds]
robert__ has quit [Remote host closed the connection]
davejacobs has quit [Read error: Connection timed out]
jonr22 has quit [Ping timeout: 245 seconds]
kt2 has quit [Quit: ...]
amclain has joined #ruby
lioninawhat has quit [Remote host closed the connection]
davejacobs has joined #ruby
robert__ has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
robert__ has quit [Client Quit]
piotrj has joined #ruby
swgillespie has joined #ruby
devdazed has joined #ruby
devdazed has quit [Client Quit]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beef-wellington has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
jenrzzz has joined #ruby
wallerdev has quit [Quit: wallerdev]
freerobby has quit [Quit: Leaving.]
piotrj has quit [Remote host closed the connection]
slawrence00 has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
kt2 has joined #ruby
slushie|| has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
livingstn has quit [Ping timeout: 250 seconds]
beef-wellington has joined #ruby
piotrj has joined #ruby
zachrab has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
DogHackit has quit [Quit: Konversation terminated!]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 252 seconds]
freds25th has joined #ruby
charliesome has joined #ruby
shredding has joined #ruby
freds25th has quit [Ping timeout: 256 seconds]
govg has joined #ruby
psy_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
riotjones has joined #ruby
m8 has joined #ruby
jimms has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mxrguspxrt has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 246 seconds]
SumoBoy has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
User458764 has joined #ruby
MasterPiece has joined #ruby
codecop has joined #ruby
Joufflu_ has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
zachrab has joined #ruby
Takle has joined #ruby
Spami has joined #ruby
ptrrr has quit [Quit: ptrrr]
shredding has quit [Quit: shredding]
jonr22 has quit [Ping timeout: 245 seconds]
zachrab has quit [Ping timeout: 244 seconds]
beef-wellington has joined #ruby
keen__________61 has joined #ruby
Deithrian has joined #ruby
jlast has joined #ruby
josephcs has quit [Ping timeout: 265 seconds]
keen__________60 has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
beef-wellington has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
agrinb has quit [Ping timeout: 245 seconds]
duper has quit [Remote host closed the connection]
jlast has joined #ruby
duper has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
mattwildig has joined #ruby
fabrice31 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
ptrrr has quit [Quit: ptrrr]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
kalusn has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
maximski has joined #ruby
j0n3 has joined #ruby
posixpascal has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
gigetoo_ has joined #ruby
kalusn has quit []
gigetoo has quit [Quit: Lost terminal]
gigetoo_ is now known as gigetoo
hamakn has joined #ruby
it0a has quit [Ping timeout: 264 seconds]
randiman has joined #ruby
gigetoo has quit [Quit: leaving]
forest_ has joined #ruby
gigetoo has joined #ruby
<Deithrian>
Hi guys, I decided to take a look at ruby conf 2014 in an attempt to learn more about the community, but I still can't figure out what was the point of that "golang" presentation which essentially said how terrible ruby is and how awesome go is?
<shevy>
ack
<shevy>
daed has a dark php past :(
bonhoeffer has joined #ruby
<shevy>
Deithrian who was the presenting person?
<apeiros>
maybe "get your shit together and make ruby more awesome than go"?
DaniG2k has joined #ruby
<shevy>
now that sounds great!
sudog has quit [Ping timeout: 245 seconds]
<Deithrian>
shevy, mark bates?
<wasamasa>
Deithrian: don't worry, go is no good either
josephcs has joined #ruby
<apeiros>
well, he asked about the point of the talk, we don't have to agree with the talk to try and figure what the person intended with it :)
<apeiros>
*they
<Deithrian>
wasamasa, it's just a bit confusing for a beginner like myself because it brings the question "am I learning the wrong thing" :)
<wasamasa>
Deithrian: actually, the language doesn't matter that much
<Deithrian>
But in that talk there was literally nothing about Ruby
<Deithrian>
it was all Go and some ruby bashing
<wasamasa>
Deithrian: so I'd not worry about that talk at all and take it as a rant
olivier_bK has joined #ruby
User458764 has joined #ruby
jerry_tao has joined #ruby
<Deithrian>
wasamasa, okidoke
<wasamasa>
anyone with sufficient experience with a language can tell you all day long about its bad parts
<apeiros>
part of a good community is speaking about the things which are could be done better
<apeiros>
there's no point in pretending everything was as good as it can possibly be. it isn't that way anywhere.
zemlya has quit [Ping timeout: 246 seconds]
sudog has joined #ruby
<daed>
shevy: :(
<daed>
shevy: that was many many MANY years ago
freds25th has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
<Deithrian>
I strongly believe in talking about problems instead of pretending they're not there, so they can be fixed, but his talk was in no way intended imo to fix problems in Ruby, it was plane Go praising and Ruby bashing which I found strange :)
<daed>
what specifically did they praise and bash?
<daed>
i write both so i'm curious
<apeiros>
Deithrian: then it's a bit oddly placed at a ruby conf :)
<Deithrian>
I can remember Multi threading, and concurrency.
bMalum has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
<Deithrian>
He said Ruby runs in a single thread and doesn't take advantage of all CPUs
<Deithrian>
He bashed the WEBrick server
<daed>
jruby does
<apeiros>
that's correct for MRI
<daed>
everybody bashes webrick
<apeiros>
well, partially
<daed>
that's why nobody uses it in production afaik
<Deithrian>
his main point was that Google deals with 40% of the traffic so their stuff Must be better than Ruby
<apeiros>
it doesn't run in a single thread. but it doesn't run more than one native thread at once (GIL)
c_nick has joined #ruby
<daed>
Deithrian: that's kind of an odd argument
<apeiros>
ahahaa, that's a silly argument :)
<daed>
facebook does a shit ton of traffic and it uses php
<daed>
what does that tell you
zemlya has joined #ruby
monod has joined #ruby
<apeiros>
it *may* even be correct, that go is better for google. but it omits the question which quality makes it better. there are tons of things which can make it better for google which don't apply at all to anybody outside.
<wasamasa>
Deithrian: well, I doubt it was for that reason that google decided to engineer their own language
<wasamasa>
Deithrian: in fact, I hold shorter compile times and less complexity for teams (compared to C++) to be the main factors
<apeiros>
ease of distribution
<c_nick>
My Application spawns multiple threads using Ruby ActiveSupport/Pool, Problem is the application is not able to kill a thread after the work is done. This is observed after another application has been launched along with it
<wasamasa>
feature-wise it's pretty much like java
<apeiros>
full control over the development of the language
<c_nick>
How can i enable fall safe in my application
<wasamasa>
which google is already using
Crisix has joined #ruby
<c_nick>
it does taskkill does that has no effect
mattwildig has quit []
<c_nick>
as the process is no longer existing but on Incredibuild its still seen going on and on
<wasamasa>
Deithrian: if I had to take a guess why that guy did such a talk, it was because he feels ruby no longer being the hot thing, unlike go
hamakn has quit [Remote host closed the connection]
<Deithrian>
wasamasa, but there's nothing about Go out there, at least nothing I can compare to the amazing tutorials about ruby and for RoR, and thats super important for beginners like myself.
caveat- has joined #ruby
hamakn has joined #ruby
<daed>
i don't know, i've written both a lot, but i can write a LOT less ruby to achieve the same result
<daed>
with high performance in 95% of cases
<daed>
i may swap out this particular use case with go but yeah
<Deithrian>
Why would he advertise a language that's supposedly better than ruby and can handle "40% of the internets" when most people will never ever ever develop websites that need such processing power?
iwishiwerearobot has joined #ruby
<daed>
how much of google is internally handled by go
<daed>
it's a new language
<daed>
most of google existed before go
<daed>
so that's kind of a lame argument to start
caveat- has quit [Read error: Connection reset by peer]
<Deithrian>
I guess I'm making a big deal out of it, back to learning :) thanks for your opinions!
freds25th has quit []
<wasamasa>
Deithrian: people get excited about the weirdest things
<wasamasa>
Deithrian: sometimes even without evaluating them
iwishiwerearobot has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
forest_ has quit [Remote host closed the connection]
User458764 has joined #ruby
<Deithrian>
I guess so
jlast has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
randiman has quit [Quit: (null)]
iamninja has joined #ruby
<daed>
Deithrian: what all do you write/prefer?
mikepack has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 245 seconds]
leafybasil has joined #ruby
<Deithrian>
dead, I'm sorry, what do you mean?
<daed>
ah sorry, which languages/frameworks
jlast has joined #ruby
SumoBoy has joined #ruby
Deele has joined #ruby
<centrx>
Google high-performance is mostly in C++ and Java
<Deithrian>
dead, I'm learning programming, absolute beginner. Tried to learn C++, Java, which failed, then Python which made some sense, and for the past week Ruby which I think is great! My benchmark is that I can almost 100% understand the code displayed at ruby conf, which with other languages is impossible to tell what's going on.
mikepack has quit [Ping timeout: 255 seconds]
hamakn has quit [Remote host closed the connection]
oleo has joined #ruby
<Deithrian>
Ruby code just makes more sense for some reason. Strange, because I thought that all languages do the same thing with different syntax :)
jlast has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
ptrrr has joined #ruby
rap has joined #ruby
<Deithrian>
But when I look at Go code, I have to squint my eyes and try to read it, while with Ruby it's just easier. Can't really tell why.
jud has joined #ruby
tens0r has joined #ruby
oleo__ has quit [Ping timeout: 245 seconds]
fantazo has quit [Quit: Verlassend]
fgo has joined #ruby
<centrx>
Deithrian, Ruby is designed for programmer happiness
<centrx>
Deithrian, Ruby is a much more expressive language than some other languages
Terens has quit [Ping timeout: 264 seconds]
monod has quit [Ping timeout: 245 seconds]
<centrx>
Deithrian, Go is a more C-like language. You will be able to see the same concepts in different languages as you learn more
DaniG2k has joined #ruby
jerry_tao has left #ruby [#ruby]
jerry_tao has joined #ruby
wyan has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
mxrguspxrt has quit [Remote host closed the connection]
<Deithrian>
centrx, maybe it's also the Ruby community as well, because after that Ruby tutorial on youtube I finally understood how to work with Classes and how data is being handled without using global vars. I mean the guy really answered the logical blocks I had in my mind that prevented me to understand how data works in a program.
wyan has left #ruby [#ruby]
SumoBoy has quit [Quit: Leaving]
<Deithrian>
centrx, and that's not just in one tutorial, all Ruby tutorials I watched made terrible sense, as opposed to Java and C tutorials which did explain what a function is and what a variable is, but they felt more like "this is a car and this is a tire", not like "this is a car and here's how it works" like in ruby tutorials
<jhass>
Surprisingly few things are syntax actually
mxrguspxrt has quit []
hiyosi has joined #ruby
qba73_ has joined #ruby
shum1 has quit [Quit: WeeChat 1.1.1]
pagios has left #ruby ["Leaving"]
shum1 has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
qba73 has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
zachrab has joined #ruby
bonhoeffer has joined #ruby
leafybasil has quit [Remote host closed the connection]
bonhoeffer has quit [Client Quit]
jonr22 has quit [Ping timeout: 255 seconds]
zachrab has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
alex88 has joined #ruby
agrinb has joined #ruby
bonhoeffer has joined #ruby
<jerry_tao>
LOL , 1 language in 21h.
charliesome has quit [Quit: zzz]
agrinb has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Quit: bonhoeffer]
tunaCanBruh has joined #ruby
vire has quit [Ping timeout: 244 seconds]
pontiki has joined #ruby
zyxelthrone has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex88 has quit [Remote host closed the connection]
yeticry has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
OrbitalKitten has joined #ruby
sameerynho has quit [Quit: Leaving]
<shevy>
Bacta ruby and perl are quite complex, this derives a lot out of "there is more than one way to do things" philosophy
<shevy>
Bacta this flexibility also means that you have a lot more freedom to decide on your own what you want to do. In python, you must use (). In ruby, you normally do not have to, if you don't want to. You can use things such as alias-es freely, you can have DSL-like instructions, things such as method_missing to ad-hoc define behaviour, modify things freely at run-time (I'd wish refinements would have been ther
lioninawhat has quit [Remote host closed the connection]
maximski has quit []
pierre1_ has joined #ruby
parduse has quit [Ping timeout: 264 seconds]
amacou has quit [Remote host closed the connection]
danman has joined #ruby
iamjarvo has joined #ruby
bonhoeffer has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
nuke has joined #ruby
nuke is now known as Guest97043
<Guest97043>
hello
<Guest97043>
!list
Zai00 has joined #ruby
<centrx>
wtf
Guest97043 has left #ruby [#ruby]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bacta has quit [Quit: Leaving]
lolmaus has quit [Remote host closed the connection]
<wasamasa>
lol
fgo has joined #ruby
dblessing has joined #ruby
iwishiwerearobot has joined #ruby
lolmaus has joined #ruby
fgo has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
pierre1_ has quit [Ping timeout: 264 seconds]
iwishiwerearobot has quit [Ping timeout: 246 seconds]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
centrx has quit [Quit: Shutting down, Please wait...]
Megtastique has joined #ruby
jerry_tao has left #ruby [#ruby]
it0a has joined #ruby
jenrzzz has joined #ruby
sevenseacat has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
Akagi201 has joined #ruby
leafybasil has joined #ruby
monod has joined #ruby
Apocalypse has quit [Remote host closed the connection]
davidhq has joined #ruby
User458764 has joined #ruby
amacou has joined #ruby
davidhq has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
maximski has joined #ruby
DadoCe has quit []
timonv has joined #ruby
alex88 has quit []
bMalum has quit [Quit: bMalum]
karmatr0n has joined #ruby
jlast has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
Takle has joined #ruby
bMalum has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
jblancett has quit []
jblancett has joined #ruby
monod has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 245 seconds]
aapole has joined #ruby
jblancett has quit [Quit: leaving]
phale has joined #ruby
coinrookie has joined #ruby
hamakn has joined #ruby
Jackneill has joined #ruby
P1RATEZ has joined #ruby
keen__________62 has joined #ruby
zachrab has joined #ruby
max96at|off is now known as max96at
hamakn has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
keen__________61 has quit [Ping timeout: 264 seconds]
phale has left #ruby [#ruby]
hamakn has joined #ruby
jottr has joined #ruby
jonr22 has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
ptrrr has quit [Quit: ptrrr]
nobitanobi has quit [Remote host closed the connection]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
mary5030 has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
DonOtreply has joined #ruby
skj3gg has joined #ruby
mary5030 has quit [Remote host closed the connection]
jblancett has joined #ruby
jblancett has quit [Client Quit]
codecop has quit [Remote host closed the connection]
jblancett has joined #ruby
maximski has quit []
Jackneill has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
jblancett has quit [Client Quit]
freerobby has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
User458764 has quit [Ping timeout: 264 seconds]
bigkevmcd has joined #ruby
User458764 has joined #ruby
jottr has joined #ruby
havenwood has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
vt102 has quit [Remote host closed the connection]
rap has quit [Remote host closed the connection]
iamjarvo has joined #ruby
agrinb has joined #ruby
roshanavand1 has quit [Ping timeout: 245 seconds]
hesco has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
jblancett has joined #ruby
fabrice31 has joined #ruby
jblancett has joined #ruby
jblancett has quit [Client Quit]
bonhoeffer_ has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
it0a has joined #ruby
jblancett has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
shredding has joined #ruby
<arup_r>
Having difficulty to get the relative path using pathname lib. Suppose i have a file ""/home/arup/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby"" .. Now I want to create a relative path..But getting error https://gist.github.com/aruprakshit/a623fd150c76441637d5
fabrice31 has quit [Ping timeout: 250 seconds]
amacou has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
athan has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DouweM has joined #ruby
OrbitalKitten has joined #ruby
<arup_r>
Any body clicked on my gist? :p
OrbitalKitten has quit [Client Quit]
kobain has joined #ruby
Adran has quit [Quit: Este é o fim.]
hesco has joined #ruby
DouweM has quit [Client Quit]
<jhass>
turn the relative path in p1 to an absolute one first
<jhass>
but from what do you think should ruby guess what "ruby/site_ruby" is relative to?
mitchellhenke has joined #ruby
bMalum has quit [Quit: bMalum]
<arup_r>
Ok.. I know... I'm wrong.. Then what should be the correct code?
<jhass>
I can't grab that information out of thin air either
<jhass>
you need to provide it
msgodf has quit [Ping timeout: 245 seconds]
<WhereIsMySpoon>
Why is this not working? It's not printing anything where it should, so I assume there's some syntax error but Im not getting anything from the log
karmatr0n has quit [Remote host closed the connection]
<arup_r>
I will supply the a absolute path to a file name... I would like to see if the path to file exist inside the $LOAD_PATH
<arup_r>
jhass: ^^
mgorbach has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ptrrr has quit [Quit: ptrrr]
lys has quit [Quit: lys]
spider-mario has joined #ruby
karmatr0n has joined #ruby
<jhass>
what for? why?
JBreit has joined #ruby
<arup_r>
:-)
<arup_r>
What I said is it possible ?
<arup_r>
I know possible... but I'm not able to figure this.. :(
JaTochNietDan has quit [Ping timeout: 272 seconds]
<jhass>
tbh. I don't quite follow what you want yet
<arup_r>
Do you want me to repeat ?
<jhass>
if I follow that last description correctly I fail to see much relation to your code
felixjet_ has quit [Read error: Connection reset by peer]
<jhass>
no, if my suspicion on what you're doing is correct, there's a better way
<jhass>
but you yet have to describe what your actual goal is
felixjet_ has joined #ruby
<jhass>
so I'm still left in the guesswork
willharrison has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
JaTochNietDan has joined #ruby
<arup_r>
I will supply the a absolute path to a file name... I would like to see if the path to file exist inside the $LOAD_PATH.. If exist, then OK. Otherwise I want to add the path to the $LOAD_PATH dynamically.
BTRE has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
BTRE has joined #ruby
<atmosx>
arup_r: you like to do that in ruby?
<jhass>
you're still describing your wanted solution, not your goal
SumoBoy has quit [Ping timeout: 240 seconds]
<atmosx>
jhass: isn't his goal to load a file?
terlar has quit [Ping timeout: 245 seconds]
<jhass>
that's your guess
<arup_r>
atmosx: ^^
<arup_r>
sorry
<arup_r>
jhass: atmosx is right
<jhass>
my guess so far is loading some data that's shipped with his gem
<atmosx>
jhass: I'm a phychic, I can read in Indian people's mind! :-P
<jhass>
arup_r: require takes an absolute path just fine then, no need to make it relative
bonhoeffer_ has quit [Ping timeout: 246 seconds]
<arup_r>
atmosx: humm.. Aww! you got my probloem..
<jhass>
though that scenario still seems a bit weird
JBreit has left #ruby ["Leaving"]
mary5030 has joined #ruby
<atmosx>
arup_r: that seems to easy to do compared to the things you normally ask on the mailing related to object handling, reflections, etc. That I'm not sure we're on the same page.
yellowgh0st has quit [Quit: yellowgh0st]
sevvie has joined #ruby
yellowgh0st has joined #ruby
<atmosx>
jhass: you use syntastic?
<atmosx>
jhass: oh sorry, I made the assumption you use vim
<jhass>
I don't even know what syntastic is :P
<jhass>
I use vim for adhoc editing only, sublime else
<atmosx>
jhass: a plugin for the vim editor for code-linting. Shows errors (usually) on the fly but I need to make it ignore 2 lines on the current file which shows as errors, it's distracting.
Kricir has joined #ruby
mitchellhenke has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: Leaving]
<jhass>
I guess you would need to teach the linter to ignore them
hamakn_ has joined #ruby
<atmosx>
jhass: yes, problem in the helpfile I can't see a related functionality.
<jhass>
arup_r: where does that absolute path even come from? why isn't it static?
<arup_r>
atmosx: "same page" means ?
<arup_r>
:)
<atmosx>
arup_r: I think that I don't understand what you are trying to do.
DouweM has joined #ruby
<atmosx>
arup_r: "we're not on the same page" it's a phrasal verb for saying "I am not sure we understand each other". As Socrates used to say, people talk to each other often but rarely communicate.
<jhass>
atmosx: try prefixing port with _ so it becomes _port
<arup_r>
as you said to add it the the load path so that I can require it... :)
mitchellhenke has quit [Client Quit]
<atmosx>
jhass: worked, nice converntion. _port is a variable that I'm not going to user later on?
<jhass>
atmosx: yup
DouweM has quit [Client Quit]
<jhass>
at least to ruby -wc it is
<jhass>
and I guess that's what used under the hood
hamakn has quit [Ping timeout: 250 seconds]
<atmosx>
yes worked fine thank you. Now line 132 hm
higherpass has joined #ruby
<atmosx>
"unused variable from"
<arup_r>
jhass: I will put all my files inside the `lib`.. and I'll add it to the load path statically... thanks... no need dynamic way..
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
arup_r: sorry, but sounds very wrong
zacstewart has joined #ruby
<jhass>
you don't add files to the load path
<jhass>
in the case of a gem, your gems lib folder is automatically added to the loadpath
jgt has joined #ruby
<jhass>
you just list out your requires relative to it
<arup_r>
atmosx: you meant mailing means Ruby talk ? :)
<jhass>
atmosx: it's largely opinion, but I argue that the correct way is to utilize load path since rubygems does that for you automatically once the gem is installed
paradoja has joined #ruby
<jhass>
in development you just do ruby -Ilib bin/foo
<jhass>
or if you use bundler in your gem bundle exec bin/foo
<jhass>
arup_r: yes that seems correct, however I fail to see how you arrived at having some absolute path and trying to munch that into a relative path from that
<arup_r>
jhass: I even don't know :-(
<jhass>
so what are you even doing? you still didn't describe your goal
apeiros__ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
<jhass>
what's the underlying problem that you try to solve?
jlast has joined #ruby
<jhass>
is there a repo or something that produces the problem?
fantazo has quit [Quit: Verlassend]
<jhass>
atmosx: oh, btw regarding the second warning you get there, did you mean to use a keyword argument? that's from: ip then. from=ip just assigns a local and passes the result of that expression as the first argument to the method
tunaCanBruh has joined #ruby
<jhass>
the result of an assignment is always the right hand side
<arup_r>
i m writing some parsing scripts.. for my friend... xml parser... he has some business.. so each time new need will come.. i will write it and ask him to put thodse inside lib/..
<arup_r>
and the rest is will run ok.
Kricir has quit [Remote host closed the connection]
<arup_r>
that's it :)
jlast has quit [Ping timeout: 245 seconds]
<jhass>
I'd write it as a gem and just build a new version and send him the .gem file to install
OrbitalKitten has joined #ruby
dfinninger has joined #ruby
<jhass>
however as I said initially require takes absolute files just fine and atmosx even showed you some real world code proving that
<jhass>
*absolute paths
jlast has joined #ruby
zachrab has joined #ruby
<jhass>
there's no need to make the paths Dir[] or whatever you use to enumerate the plugins gives you relative
awerush has joined #ruby
hamakn_ has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 252 seconds]
davidhq has joined #ruby
<awerush>
Greetings. What is the status on Timeout#timeout and all the net/* libraries? I've read several (probably outdated) blog posts about the usage of Timeout#timeout in e.g. Net::HTTP making things not Thread safe. Is that (still) true?
<arup_r>
ok
jonr22 has joined #ruby
sent1nel has joined #ruby
aapole has joined #ruby
<jhass>
awerush: since headius here wrote the probably most popular article about that, we shall wait for his comment on that ;)
jlast has quit [Ping timeout: 256 seconds]
zachrab has quit [Ping timeout: 245 seconds]
<jhass>
but afaik there simply is not thread safe way to kill a thread from the outside, it's not a technical limitation but a conceptual one
mitchellhenke has joined #ruby
Lemur has joined #ruby
<jhass>
thus an idea like Timeout#timeout is inherently thread unsafe
<awerush>
jhass: yeah, his post is one of them. :-)
zacstewart has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
<awerush>
jhass: if what the posts say about Thread#kill and/or Timeout#timeout is true, then I wonder why this stuff hasn't been modified/fixed. I believe headius' post is about 7 years old.
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iMe has quit [Ping timeout: 240 seconds]
Zarthus has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
<arup_r>
people here too much Rubyish.. :)
<arup_r>
shevy: _/\_
Zarthus has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
skj3gg has quit [Quit: ZZZzzz…]
mikecmpbll has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
checkit has joined #ruby
shum1 has quit [Quit: WeeChat 1.1.1]
RDash has quit [Quit: This device has been compromised!]
Soda has quit [Remote host closed the connection]
shum1 has joined #ruby
RDash has joined #ruby
RDash has quit [Changing host]
RDash has joined #ruby
infinitone has joined #ruby
<pontiki>
what does that mean?
Soda has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
Yzguy has joined #ruby
checkit has quit [Quit: (null)]
fabrice31 has joined #ruby
<infinitone>
anyone have a good structure for doing 1 file ruby scripts
<infinitone>
since there isnt really a main fn
<arup_r>
pontiki: namasakar! We Indian do to greet people
Hobogrammer has joined #ruby
<arup_r>
infinitone: Didn't get you
<infinitone>
right now i just do require and write all my code there... no methods/OO conventions
<infinitone>
i feel like thats not right..
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r>
the all space in your .rb file is your place(called main) something called "top level
<infinitone>
yeah but i want to break code into classes/methods, modularize it
<arup_r>
then break it..
<infinitone>
and that means having a main fn to know where to call my inits
checkit has joined #ruby
<arup_r>
you can
rbennacer has joined #ruby
<infinitone>
so where would it start executing if i put methods it
<infinitone>
in*
fabrice31 has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
<jhass>
infinitone: how many lines are we talking?
<jhass>
and how many users?
<infinitone>
its scripting/internal tools/server automation stuff
<infinitone>
100-1000
Lewix has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
lioninawhat has quit [Remote host closed the connection]
<jhass>
I tend to write everything as a library and have the initialization not much more than require "library"; Library::CLI.new(ARGV) or so
skj3gg has joined #ruby
<jhass>
in a gem situation that code would go into bin/foo and the library part into lib
<jhass>
but you could do that approach in a single file too, you just would do the Library::CLI.new(ARGV) at the end
mary5030 has joined #ruby
<jhass>
I'm just not too convinced that would increase readability or reusability too much though, opposed to splitting it into smaller files
iMe has joined #ruby
<infinitone>
its not a matter of readability
<infinitone>
but DRY
<infinitone>
i need to modularize it so i can reuse some of the code in other parts
<jhass>
other parts = other scripts or still inside the single file?
<infinitone>
its just wierd... in python/java, you have a main method and its clear where runtime will start
<infinitone>
still in single file
maletor has joined #ruby
<infinitone>
ie. rest api calls
<jhass>
it starts at the very first line that's not a comment (to ruby)
<jhass>
to illustrate:
<infinitone>
so my question is.. if i have a method at top, does it get executed?
<jhass>
what did get run was the method definition
Yzguy has quit [Quit: I'm sleeping, go away.]
<jhass>
>> class Foo; end; before = Foo.instance_methods.include?(:bar); class Foo; def bar; end; end; after = Foo.instance_methods.include?(:bar); [before, after]
athan has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
<infinitone>
ok now it makes better sense
<infinitone>
thanks jhass!
Number2 has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
centrx has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
<haylon>
Is anyone familiar with the zabbixapi gem? https://github.com/express42/zabbixapi I'm trying to figure out why its stuck on json 1.7, but the latest is 1.8, and my ruby environment can't figure it out.
yfeldblum has joined #ruby
jlast has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
ponga has quit [Remote host closed the connection]
skj3gg has joined #ruby
<jhass>
haylon: what's the error message you're getting?
<haylon>
its been a while, but it would say that json 1.8 is installed but the gem only used 1.7 and would not load it
roshanavand has joined #ruby
bonhoeffer has joined #ruby
<jhass>
maybe some other gem locks it down
User458764 has joined #ruby
<jhass>
using bundler and looking at the .lock would tell easily
aapole has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 245 seconds]
<haylon>
Ok, I see in the Gemfile.lock, which is that even supposed to be uploaded with the gem, it has json 1.6.1
zacstewart has joined #ruby
Vivex_ has quit [Read error: Connection timed out]
<jhass>
the gems Gemfil.lock is irrelevant for you
<jhass>
only its .gemspec counts
jlast has joined #ruby
<jhass>
what's relevant for you is a Gemfile.lock on your machine/in your project
Vivex_ has joined #ruby
startupality has joined #ruby
zachrab has joined #ruby
User458764 has quit [Client Quit]
<jhass>
and yes it's supposed to, not comitting the Gemfile.lock to your repo pretty much defeats bundlers purpose
iwishiwerearobot has joined #ruby
checkit has quit [Quit: (null)]
<haylon>
hmmm, ok, I'll play around with it some more and come back. Thanks for the tips jhass
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yellowgh0st has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
zachrab has quit [Ping timeout: 246 seconds]
davejacobs has joined #ruby
iwishiwerearobot has quit [Ping timeout: 256 seconds]
devdazed has joined #ruby
DogHackit has joined #ruby
nobitanobi has joined #ruby
<DogHackit>
If I have an array of arrays and I need the some of a certain index of all of the arrays how would I get that?
<jhass>
starless: the up key produces the sequence \e[A
plashchynski has quit [Quit: plashchynski]
<starless>
jhass: yeahhh, I just realize
<starless>
centrx, jhass: thanks!
robert_ has joined #ruby
<starless>
realized*
fabrice31 has joined #ruby
<robert_>
so I'm running a padrino app that's doing a bunch of periodic medium-sized memory allocations and am occasionally running out of memory.. is there a way I can persuade the GC to occasionally release these allocations?
Senjai has quit [Ping timeout: 246 seconds]
DadoCe has quit [Remote host closed the connection]
<jhass>
try porting to 2.2, I have the feeling it's more willing to release allocated memory, though I didn't verify
athan has quit [Ping timeout: 246 seconds]
<jhass>
still sounds like you don't drop all references somewhere, so the GC has no chance to actually free those objects
ellisTAA has joined #ruby
<ellisTAA>
i’m trying to understanding the string count method. can someone explain how “baa”.count “ab” returns 3?
<jhass>
might also be that you convert user input into symbols or something like that
<jhass>
ellisTAA: did you read its docs?
<ellisTAA>
jhass: yes
<ellisTAA>
jhass: didn’t say
<jhass>
the argument defines a set of characters to count
<jhass>
not a sequence
<robert_>
well, I have two classes; one is the padrino web controller, and the other is a class dedicated to doing the grunt work of generating the data that gets returned to the client.
v0n has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
<jhass>
ellisTAA: so "ab" to count is like the regex character group [ab]
adriancb has joined #ruby
<robert_>
jhass: each allocation can range from a few hundred kb to a couple mb. I'm returning PDF's to the client.
<ellisTAA>
jhass: oh!!! so if i said “cccccbbbbb”.count “cb” it would return 10 .. interestin
atomical has joined #ruby
<ellisTAA>
jhass: thanks for clarifying
<jhass>
ellisTAA: the docs say that though
paulfm has quit [Quit: Zzzzz...]
<ellisTAA>
jhass: yes but it uses the word intersection and that’s not very clear
karmatr0n has joined #ruby
<jhass>
it says that in the context of passing multiple arguments
<jhass>
"ab".count "a", "b" will return 0, as the examples in the docs illustrate
tunaCanBruh has joined #ruby
infinitone has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
Alina-malina has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
ballPointPenguin has joined #ruby
KnownSyntax has joined #ruby
jrunning_ has joined #ruby
Lewix has joined #ruby
goodenough has joined #ruby
iMe has joined #ruby
gmcintire has joined #ruby
DadoCe has quit [Remote host closed the connection]
zrl has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
Yzguy has quit [Quit: I'm sleeping, go away.]
neektza has joined #ruby
DadoCe has joined #ruby
Lewix_ has joined #ruby
amitchellbullard has joined #ruby
mroth has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
ramblinpeck_ has joined #ruby
Guest123 has joined #ruby
spastorino has joined #ruby
skj3gg has joined #ruby
P1RATEZ has joined #ruby
larsam has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
lucyinthesky has joined #ruby
Apocalypse has joined #ruby
lucyinthesky has quit [Quit: Leaving]
AdamMeghji_ has joined #ruby
ringring800 has joined #ruby
cocotton has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
Senjai has joined #ruby
aapole has quit [Ping timeout: 255 seconds]
paradoja has quit [Remote host closed the connection]
starfox_sf has joined #ruby
spider-mario has quit [Remote host closed the connection]
rvchangue has quit [Ping timeout: 240 seconds]
ckrailo__ has joined #ruby
culturelabs has joined #ruby
<starfox_sf>
Hi guys I have an array of numbers and I want to process that array into 3 arrays: Divisible by 2, Divisible by 3 and Divisible by 5. Is there any method in Array that would allow me to do this easily?
jimms has quit [Remote host closed the connection]
<starfox_sf>
Mon_Ouie: the problem I am trying to solve is slightly more complicated than what I stated. But group_by is what I was looking for
plashchynski has joined #ruby
* mikecmpbll
shrugs
terlar has quit [Ping timeout: 244 seconds]
lid_ has joined #ruby
plashchynski has quit [Client Quit]
<waxjar>
which group should numbers be in that are divisible by two or three of the divisors?
Jetchisel has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
<jhass>
the select could be a find if you reverse the array you select on
<starfox_sf>
waxjar: in the problem that I am trying to solve that will not happen
jonr22 has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
TheNet has joined #ruby
dixie__ has quit [Quit: getting kicked out of the library. be back shortly.]
<mikecmpbll>
jhass: +1
iMe has quit [Ping timeout: 250 seconds]
lidaaa has quit [Ping timeout: 252 seconds]
ringring800 has quit [Quit: Leaving]
CpuID2 has joined #ruby
CpuID2 has joined #ruby
plashchynski has joined #ruby
art-solopov has quit [Quit: Konversation terminated!]
iMe has joined #ruby
Rollabunna has quit [Remote host closed the connection]
spacemud has quit [Ping timeout: 246 seconds]
DonOtreply has quit [Quit: DonOtreply]
Rollabunna has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rvchangue has joined #ruby
spacemud has joined #ruby
<shevy>
guys
<shevy>
a strange random question
<shevy>
hmm
<shevy>
I think when you buy something in a supermarket, you have those laser or infrared thingies, which recognize some black bars on objects to find ouw which good it is
athan has quit [Read error: Connection reset by peer]
<shevy>
is there something like that too, where you can write a letter, and the content of that letter also becomes some kind of mini-code on the lower right side of the paper or so? so like that it could be quickly registered, and turned into a .pdf on a computer, without having to just scan-up the whole thing?
CpuID2 has quit [Quit: This computer has gone to sleep]
athan has joined #ruby
vire has quit [Ping timeout: 245 seconds]
<waxjar>
qr codes you mean?
jack_rabbit has quit [Ping timeout: 250 seconds]
agrinb has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
agrinb has joined #ruby
Lemur has joined #ruby
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
shum1 has quit [Quit: WeeChat 1.1.1]
jlast has joined #ruby
shum1 has joined #ruby
Zai00 has quit [Quit: Zai00]
fabrice31 has joined #ruby
larsam has quit [Quit: larsam]
plashchynski has quit [Quit: plashchynski]
jlast has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
jlast has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
dixie__ has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
jlast has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
bunbury has quit [Ping timeout: 245 seconds]
TgMts has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
zachrab has joined #ruby
oleo is now known as Guest78328
oleo__ has joined #ruby
beef-wellington has quit [Ping timeout: 246 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
<shevy>
waxjar aha
<shevy>
so that is the name
The_Phoenix has quit [Read error: Connection reset by peer]
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
nobitanobi has joined #ruby
Guest78328 has quit [Ping timeout: 245 seconds]
beef-wellington has joined #ruby
mitchellhenke has joined #ruby
robbyoconnor has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
r0bby_ has quit [Ping timeout: 265 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
sent1nel has quit [Remote host closed the connection]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
towski_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
Senjai has quit [Ping timeout: 250 seconds]
slawrence00 has quit [Ping timeout: 264 seconds]
DadoCe has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: My MBP went to sleep.]
Deithrian has quit [Ping timeout: 252 seconds]
swgillespie has quit [Client Quit]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
iwishiwerearobot has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Ping timeout: 255 seconds]
zacts has quit [Ping timeout: 250 seconds]
Dr3amc0d3r|away has joined #ruby
swgillespie has joined #ruby
Senjai has joined #ruby
Azure has joined #ruby
dfinninger has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]