<soulisson>
Hi, I'm new to ruby, I would like to know how a block is implicitly passed to a method? Is a reference to the block implicitly passed to the method when the method is called?
weemsledeux has joined #ruby
RainBowww has joined #ruby
<RainBowww>
how to learn ruby
howdoicomputer has joined #ruby
devbug has joined #ruby
akem has quit [Read error: Connection timed out]
s00pcan has joined #ruby
akem has joined #ruby
<baweaver>
RainBowww: what have you tried?
<baweaver>
including typing that into a search engine
skweek has joined #ruby
<drbrain>
soulisson: what do you mean by "implicitly"?
<RainBowww>
haha
<RainBowww>
i think what i need is how to program in object oriented way
<RainBowww>
i dont understand it
<drbrain>
soulisson: when a block is passed to a method, a reference to it is included as one of the parameters
edwinvdgraaf has quit [Remote host closed the connection]
<soulisson>
drbrain, when there is only yield in the method and no &block in the method declaration
_stu_ has quit [Quit: _stu_]
<RainBowww>
i know basics but how to use it
<baweaver>
Practical Object Oriented Design in Ruby - Sandi Metz
<RainBowww>
baweaver ok
<RainBowww>
:P
<soulisson>
drbrain, that's what I thought
<baweaver>
the more you give us to work with in a question, the better the answer.
<drbrain>
soulisson: so for the implicit one where the method yields, there's a hidden block that is forwarded along
yoongkang has joined #ruby
<drbrain>
soulisson: you can use block_given? to detect if one is there
lemur has quit [Ping timeout: 260 seconds]
RainBowww has left #ruby [#ruby]
peterhil_ has joined #ruby
<soulisson>
drbrain, ok, but when the method is called, a reference to the block is passed to the method, right?
<drbrain>
yes
n_blownapart has joined #ruby
<soulisson>
drbrain, thanks
<drbrain>
you can send blocks to methods that don't yield or have &block in the parameters too
akem has quit [Client Quit]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has quit [Ping timeout: 260 seconds]
<soulisson>
drbrain, thanks, I just wanted to know the black magic behind the yield statement :)
blackmesa has joined #ruby
an0ma1y has joined #ruby
yoongkang has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
krobzaur has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 250 seconds]
jmsoper has joined #ruby
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
an0ma1y has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby
michaeldeol has joined #ruby
shadoi has joined #ruby
jdawgaz has joined #ruby
deol has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nyminal has joined #ruby
soulisson has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
<drbrain>
pragmatism: try trunk now, the latest commit should have the fix
<jbrhbr>
i'm new to ruby and surprised that there isn't more interchangeability, and the main reason i could think that they wouldn't be is string mutability
<RickHull>
i'm not sure about the future, but I've been using ruby for about 10 years
desmondhume has joined #ruby
<jbrhbr>
that's approximately 9.99 years more than me
<RickHull>
and here is my take on symbols vs strings -- they have useful distinctions
ESpiney has quit [Read error: Connection reset by peer]
<RickHull>
symbols are useful for identifiers -- a chunk of data that will never be "operated" upon. we don't need to e.g. #reverse them, or append to them
<RickHull>
where you might define a tuple or indexed array, where the index is meaningful -- for example the standard graphite metric format
<RickHull>
(metric_name, metric_value, timestamp)
<RickHull>
you could use an array and just know that index 0 is always the metric_name
<RickHull>
or you could use a hash, e.g. { metric_name: foo, metric_value: 100, timestamp: now }
<jbrhbr>
i don't see how these are points for strings vs symbols though
<jbrhbr>
either would work
<RickHull>
symbols are less flexible than strings
<RickHull>
you'd rather use symbols here -- it indicates that we aren't going to operate upon the keys directly
<jbrhbr>
my issue is that some hash-like structures use symbols and others like strings
casadei has quit [Ping timeout: 245 seconds]
justinweiss__ is now known as justinweiss
<RickHull>
it's just a handy identifier that is better than e.g. graphite[0]
<RickHull>
i'd rather use graphite[:metric_name]
<jbrhbr>
and since they're not interchangeable, you have to know which to use, or .to_s or .to_sym :/
<RickHull>
jbrhbr: true, but you should always "know"
<RickHull>
and if you don't, that's a code smell that should be chased down
<RickHull>
there are some libraries and and 3rd party code that make this tough
asteros has quit [Quit: asteros]
<RickHull>
and i tend to avoid those
desmondhume has quit [Ping timeout: 250 seconds]
<jbrhbr>
do you think that kind of knowing should be consistent across all gems or would you consider it fair game if it's consistent only within each gem?
<RickHull>
it would be nice if everyone thought and wrote code the same way i do ;)
<jbrhbr>
;)
<RickHull>
but I'll have to settle for consistency within gems
<jbrhbr>
which manifests as inconsistency in the way your code has to talk to them :/
<jbrhbr>
i don't know
<RickHull>
yeah, there will always be gems that go against your grain
<RickHull>
try to avoid them
<RickHull>
or wrap them / modify them to make them behave
<jbrhbr>
mongoid lets me do result.field, result[:field] and result['field']
<RickHull>
yeah, reminds me of Hashie::Mash
<RickHull>
which is an antipattern imho
<jbrhbr>
it seems like people *want* interchangeability in these kinds of cases so they kind of fake it
lacuna has quit [Remote host closed the connection]
<jbrhbr>
i see
<RickHull>
for example, I'd like to do Hash#delete, but that means i can't use 'delete' or :delete as a key
sperant has joined #ruby
colleenmcguckin has quit [Remote host closed the connection]
<RickHull>
major orthogonality violation
<jbrhbr>
i don't follow that one
<RickHull>
things which are orthogonal don't affect each other
<jbrhbr>
you mean the attribute access style?
<RickHull>
yes
<RickHull>
methods are methods, hash keys are hash keys
<blub>
do people normally pronounce the # in method names
<jbrhbr>
heh i got the orthogonality part
<RickHull>
hashes have methods like delete
<jbrhbr>
i think foo.x is the oddball
<RickHull>
so if you want to have a pseudo-method for hash key access, you are forbidden from ever using 'delete' or :delete as a key
<jbrhbr>
easily assailed, but supporting both foo[:x] and foo['x'] seems intuitive to me as a ruby noob
<RickHull>
that is more palatable
<RickHull>
because it's a code smell to mix symbol and string keys
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
<RickHull>
but even so, that makes the runtime do a lot of extra work
<RickHull>
and i'd rather just be consistent. hashes can take any serializable object as a key
<jbrhbr>
i think that's solvable
<jbrhbr>
but not when you have mutable keys :)
<RickHull>
that means symbols and strings are distince
<RickHull>
distinct
psy has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
bronson has quit [Remote host closed the connection]
<jbrhbr>
yeah
<jbrhbr>
thanks for the discussion though
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 260 seconds]
<jbrhbr>
i think my other reasoning is something like this: aside from the nice concise looking code, isn't the main justification of symbols one of performance? ie, you only have to allocate them once and there are probably some checks that can be avoided etc
<RickHull>
basically, if you need to identify an internal component, i'd use a symbol. if you're taking outside input, then use a string. e.g. person[:arm] versus tags['some_user_input']
<jbrhbr>
and then if that's correct, it once again points at mutability vs immutability. ie immutable strings have many of the same benefits as symbols, thereby weakening the case to have symbols at all
<RickHull>
yes, since they are much more limited, they have better performance
<RickHull>
in the world of mutable strings, at least, when someone chooses to use a string, I'm assuming they intend to do string operations on it
<RickHull>
if someone uses a symbol instead, that communicates to me, as a reader, that this is a permanent sort of identifier
<jbrhbr>
and… you feel like that communication is useful? :)
<RickHull>
they're not going to e.g. reverse or append to it. match it against a regex, etc
<RickHull>
100%
<RickHull>
the person writing the code should be communicating primarily to the reader (not the computer)
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jbrhbr>
being used to immutable strings, fiddling with them in weird ways seems like a smell to me
<RickHull>
i look at code as recipes of a sort, codifying human knowledge of methodologies
<RickHull>
jbrhbr: you're probably on the right track then. try using ruby 2.3 with the immutable pragma
<RickHull>
it will be painful when using 3rd party libs and gems that aren't compliant though
<jbrhbr>
like if i saw `d = {'foo' => 3}`, i would *extremely* surprised if someone decided to modify that key
<jbrhbr>
[sometime later]
<jbrhbr>
cool
<jbrhbr>
i gotta get ready to head out
<jbrhbr>
i appreciate these kinds of chats. hopefully we can ramble together again sometime! :D
griffindy has quit [Read error: Connection reset by peer]
dlitvak has quit [Remote host closed the connection]
I has joined #ruby
jbrhbr has quit [Quit: Leaving.]
I is now known as Guest90348
colegatron has quit [Ping timeout: 260 seconds]
sperant has joined #ruby
yoongkang has joined #ruby
sperant has quit [Client Quit]
DurstBurger has joined #ruby
yoongkang has quit [Ping timeout: 260 seconds]
jetpackjoe has joined #ruby
Unicorn| has joined #ruby
maloik has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
vdamewood has quit [Ping timeout: 245 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
favadi has joined #ruby
brainslug has joined #ruby
lacuna has joined #ruby
lacuna has joined #ruby
colegatron has joined #ruby
calderonroberto has quit [Ping timeout: 250 seconds]
maloik has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
rubie has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
krobzaur has joined #ruby
h99h9h88 has joined #ruby
PlasmaStar has joined #ruby
railswebdev has joined #ruby
maloik has joined #ruby
<diegoviola>
when doing something like
grotewold has joined #ruby
<diegoviola>
if average(:time).round(2) >= 0
<diegoviola>
is there a way to just get the value from that line and add it to a string?
<diegoviola>
without having to say:
<diegoviola>
"#{average(:time).round(2)}s"
<diegoviola>
all over again
ur5us_ has quit [Remote host closed the connection]
<diegoviola>
in the if block I mean
DayFox has joined #ruby
rubie has quit [Remote host closed the connection]
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
baweaver has joined #ruby
LBRapid has quit [Ping timeout: 264 seconds]
<blub>
bind it ?
sdothum has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
shanemcd has joined #ruby
dmcp has quit [Quit: Disconnecting...]
<diegoviola>
blub: to a variable you mean?
<blub>
ya
LBRapid has joined #ruby
timothio has joined #ruby
_djbkd has quit [Remote host closed the connection]
<timothio>
hello all
jessemcgilallen has joined #ruby
<diegoviola>
good idea
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheBloke has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
Robert__ has joined #ruby
TheBloke has joined #ruby
mary5030 has joined #ruby
<blub>
diegoviola: there isnt really any way around it there because the part you care about is only part of the expression you're testing. if you were saying 'if expr.that.might.return.a.truthy.object' and then operating on that object, there are shortcuts
jdawgaz has joined #ruby
jetpackjoe has joined #ruby
<diegoviola>
dealing with time in coding can be confusing
<diegoviola>
just trying to get the average seconds
kies has joined #ruby
<diegoviola>
and display it as 0.2s or similar
h99h9h88 has quit [Remote host closed the connection]
<blub>
unless its negative, in which case you want to just round it and return the number ?
saneax is now known as saneax_AFK
<diegoviola>
blub: it won't be negative
<diegoviola>
but yes
<blub>
then why are you testing that it isn't
jmsoper has quit [Ping timeout: 260 seconds]
moeabdol has quit [Read error: Connection reset by peer]
<blub>
the else part should just throw an error if anything, or just leave out the if and have the method just be "#{sum(:time).round}s" if you're sure
<diegoviola>
sum would actually sum all the numbers in that field
rubie has joined #ruby
<diegoviola>
I need average
mary5030 has quit [Remote host closed the connection]
TheBloke- has joined #ruby
TheBloke has quit [Read error: Connection reset by peer]
<diegoviola>
blub: I actually added the if check because .round results in error when average(:time) returns nil
krobzaur has quit [Ping timeout: 245 seconds]
Eiam_ has joined #ruby
xxneolithicxx has quit [Remote host closed the connection]
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
casadei has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
<blub>
what..
<diegoviola>
blub: the unless I mean
Eiam_ has quit [Client Quit]
jetpackjoe has joined #ruby
colleenmcguckin has joined #ruby
vdamewood has quit [Quit: Life beckons.]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<danielpclark>
Hey all! I'm trying to get a padded Array of bytes for int16 but it's not padding. [-32222].pack("v").bytes #=> [34, 130] .... I need to to be [34, 130, 0]
casadei has quit [Ping timeout: 245 seconds]
braincrash has quit [Quit: bye bye]
<diegoviola>
blub: does that looks fine to you?
<blub>
diegoviola: avg = average(:time); "#{avg.round(2)}s" if avg
<blub>
use variables so you don't recompute things for no reason
NET||abuse has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby
<blub>
if you don't write an else and the condition is false, the whole if evaluates to nil anyway
threh_ has joined #ruby
threh_ has quit [Client Quit]
NET||abuse has joined #ruby
rubie has quit [Remote host closed the connection]
rashub has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
<diegoviola>
thanks
threh has quit [Ping timeout: 250 seconds]
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simplyianm has joined #ruby
threh has joined #ruby
nkwsy__14 has quit [Quit: Lost terminal]
Dood____ has quit [Quit: Lost terminal]
hahuang65 has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
<bougyman>
my mom just got a message on her mac: "Warning: OS CRASH REPORT - Due to a third-party application your computer has crashed, please call <18665377060> for an immediate fix"
<bougyman>
valid or bunk?
jetpackjoe has joined #ruby
rubie has joined #ruby
<bougyman>
it's a modal in the middle of her screen.
<Radar>
lol
jakemask has left #ruby [#ruby]
<diegoviola>
that's scary
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar>
Probably bunk.
<Radar>
Srsly, just google it
<Radar>
bougyman: ^
rashub has quit [Quit: Leaving]
<bougyman>
I told her to take it to the apple store.
rubie has quit [Remote host closed the connection]
mallu has joined #ruby
bigmac has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<bigmac>
Thread.start{while true; puts s.recv(500); end }
<bigmac>
s.puts("hi server")
<bigmac>
i would expect the thread to print to screen?
skweek has joined #ruby
<baweaver>
what's s?
<bigmac>
a socket
<baweaver>
put the rest of the code into a gist
<baweaver>
not enough context
<baweaver>
which socket, what library, what's the rest of the code, etc etc
gix has quit [Ping timeout: 260 seconds]
colleenmcguckin has quit [Remote host closed the connection]
<bigmac>
i know there is already gems doing, what im working on... but its only a example... this thing has puzzled me for a long time, how to read and write to a socket simultaneously.
<bigmac>
ill post a server and a client example
rubie has joined #ruby
gix has joined #ruby
ICantCook has quit [Quit: bye]
colleenmcguckin has joined #ruby
kies has quit [Ping timeout: 260 seconds]
colleenmcguckin has quit [Remote host closed the connection]
colleenmcguckin has joined #ruby
<bigmac>
i dont see the option for sytax highlights
<baweaver>
you do realize that in run all of your code is in a rescue block right?
<baweaver>
you want it above that first rescue
<baweaver>
indentation won't affect it at all
cwong_on_irc has joined #ruby
<mallu>
I'm going to comment out rescue and see if it works
<baweaver>
just move that logic above it
<baweaver>
no need for that
maloik has quit [Ping timeout: 245 seconds]
krz has joined #ruby
qiukun has quit [Quit: qiukun]
<baweaver>
lines 52 and 56 in that gist are still broken
<mallu>
getting some error .. which is much better.. "Check failed to run: undefined local variable or method `totalMemory' for #<CheckSNMP:0x0000000282b408>, ["./check-snmp-mem.rb:58:in `used_memory'", "./check-snmp-mem.rb:76:in `run'"
<baweaver>
blocks have a scope
<baweaver>
they don't like sharing
<baweaver>
[1].each do |v| a = v end
<baweaver>
what's a?
<baweaver>
guess what value it'll have if I ran that
<mallu>
1?
<baweaver>
nope
<baweaver>
>> [1].each do |v| a = v end; a
<ruboto>
baweaver # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/478721)
<baweaver>
inside that block, things are trapped. They don't get out
edj has quit [Quit: Page closed]
<baweaver>
Now if you did something like this though:
rubie has quit [Remote host closed the connection]
tref has joined #ruby
Emerald-- has joined #ruby
krz has joined #ruby
Emerald-- has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
timothio_ has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
timothio has quit [Ping timeout: 260 seconds]
timothio_ is now known as timothio
MasterNayru has quit [Quit: No Ping reply in 180 seconds.]
casadei has joined #ruby
dionysus69 has joined #ruby
MasterNayru has joined #ruby
Robert__ has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Rodya_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
strehi has joined #ruby
<strehi>
hi guys.. I've got ruby source from my team mate
<strehi>
With bundle install i got required packets
casadei has quit [Ping timeout: 245 seconds]
<baweaver>
gems
<strehi>
now i got an error undefined method `[]' for nil:NilClass
<strehi>
what could cause the problem? :(
<baweaver>
>> nil[]
<ruboto>
baweaver # => undefined method `[]' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/478749)
<baweaver>
that
<baweaver>
though if you want a better answer we need more context to work with, such as the code that's giving you the error and the stack trace that results
<strehi>
I am working like 30 hours on this and can't find a solution
DurstBurger has quit [Ping timeout: 245 seconds]
<strehi>
I am starting to give up
Sam0163141155 has joined #ruby
waynerade has quit [Remote host closed the connection]
waynerade has joined #ruby
qiukun has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
trautwein has joined #ruby
<Sam0163141155>
In some screencasts and examples in books, it's common to find places where the author uses "# =>" notation to insert return values into the code as a comment. Are there text editor tools to do this automatically? If so anyone know what the tools or the general name for this process is?
karapetyan has joined #ruby
johnlinvc has joined #ruby
karapetyan has quit [Remote host closed the connection]
edj has joined #ruby
<edj>
ja: you there?
<mozzarella>
Sam0163141155: I think emacs org mode can do that
karapetyan has joined #ruby
<Sam0163141155>
mozzarella: thanks, I'll google that
DoubleMalt has joined #ruby
psy has quit [Remote host closed the connection]
<blub>
is there a concise way to match 'ab', 'ba', 'a', 'b', or '' with a regex
<blub>
but not 'aa' or 'bb'
paradisaeidae has quit [Remote host closed the connection]
desmondhume has joined #ruby
rubie has joined #ruby
arup_r has joined #ruby
setient has quit [Ping timeout: 240 seconds]
desmondhume has quit [Ping timeout: 250 seconds]
timonv has joined #ruby
radgeRayden has quit [Ping timeout: 250 seconds]
SOLDIERz has joined #ruby
setient has joined #ruby
Akagi201 has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 1.2]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r>
When you will create a google account but don't upload image, google will set a default avatar for you. I will pull google user information from their API, and I would like to check if the image url I fetched is the default one that set by the google or not. I thought of to use checksum of the default photo. So everytime, I will pull data from google, before saving the image I will compare the checksum of the default one and newly fetched one, i
<arup_r>
f it doesn't match I will save the new one or skip it. Is my approach to this problem correct ?
codecop has joined #ruby
karapetyan has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
bronson has joined #ruby
Rodya_ has joined #ruby
Anderson69s has joined #ruby
karapetyan has joined #ruby
tvw has joined #ruby
iateadonut has quit [Ping timeout: 260 seconds]
kerunaru has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
solars has joined #ruby
yardenbar has joined #ruby
lxsameer has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
kerunaru has quit [Read error: Connection reset by peer]
waynerade has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
sperant has joined #ruby
kerunaru has joined #ruby
kerunaru has quit [Read error: Connection reset by peer]
dimik has joined #ruby
waynerade has joined #ruby
waynerade has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gsingh93 has joined #ruby
kerunaru has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
andikr has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
kerunaru has joined #ruby
arup_r has joined #ruby
solocshaw has joined #ruby
agit0 has joined #ruby
last_staff has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
kerunaru has quit [Read error: Connection reset by peer]
Yzguy has quit [Quit: Zzz...]
<shevy>
Sam0163141155 I usually just copy/paste it manually myself :)))
dionysus69 has quit [Ping timeout: 245 seconds]
juddey has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
kerunaru has joined #ruby
baweaver has quit [Remote host closed the connection]
kerunaru has quit [Read error: Connection reset by peer]
sperant has joined #ruby
tjbiddle has joined #ruby
ohaibbq has joined #ruby
Sam0163141155 has quit [Ping timeout: 245 seconds]
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yardenbar>
Hi all, I'm trying to install ruby2.2.3 on scientific linux 6.1, getting "./tool/rbinstall.rb:728:in `chmod': Operation not permitted @ chmod_internal - /usr/local/rvm/gems/ruby-2.2.1/ (Errno::EPERM)
<yardenbar>
"
Miron has joined #ruby
Ruby_Rocks_007 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nbdy has joined #ruby
slawrence00 has joined #ruby
slawrence00 has quit [Client Quit]
kerunaru has joined #ruby
<shevy>
weird path
<shevy>
does rvm not install into home dir by default?
howdoicomputer has joined #ruby
<yardenbar>
Seems not, on my other server, where 2.2.3 was install successfully, its the same path but for 2.2.3
anisha has joined #ruby
lacuna has quit [Remote host closed the connection]
colleenmcguckin has quit [Remote host closed the connection]
sandstrom has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
Miron has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
elton has joined #ruby
<shevy>
OpenURI.open # NoMethodError: private method `open' called for OpenURI:Module
<shevy>
hmm is there another way to call it without .send, in the event that you already have a topnamespace method called open() defined that does something else?
<shevy>
ok found another one ... to call .open() on the object itself uri = URI.parse("http://www.ruby-lang.org/en/"); uri.open
Anderson69s_Deb has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
DayFox has quit []
yfeldblum has quit [Ping timeout: 260 seconds]
B1n4r10 has joined #ruby
<strehi>
hi guys
<strehi>
I've migrated ruby app on new server
BSaboia has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
<strehi>
Now I get an error (see link) ... ANYONE?
<strehi>
shevy: Your calling me lier now lol... I have an application on the production server
<strehi>
I am just migrating it
brunto has quit [Ping timeout: 245 seconds]
<strehi>
shevy: Why you doubt it?
<shevy>
don't put words that were not used into the mouth of others
<strehi>
shevy: I gave a fact... You doubted into the fact...
<strehi>
Can you tell me what's the reason for your doubt?
<shevy>
strehi that is what you claim it *would* be, a fact
TheBloke- has quit [Read error: Connection reset by peer]
TheBloke has joined #ruby
<shevy>
>> nil[]
<ruboto>
shevy # => undefined method `[]' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/478828)
yoongkang has joined #ruby
iateadonut has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
tomchapin has joined #ruby
ekem is now known as dreamer3
dreamer3 is now known as ekem
elton has quit [Remote host closed the connection]
<strehi>
shevy: When I excecute SQL directly on the database I get the value
tagrudev has quit [Remote host closed the connection]
brunto has joined #ruby
<shevy>
so change the code to handle nils; and find out why the layer you use there does not work properly. besides, if it works directly anyway, you could even hack-fix it with that nil check, that's like ... 3 lines of more code
tomchapin has quit [Ping timeout: 250 seconds]
<strehi>
shevy: the problem is that I have like 1000 of MSQL selects hehe
al2o3-cr has quit [Ping timeout: 260 seconds]
<strehi>
I will have to correct each if I don't find the reason
troys_ is now known as troys
tagrudev has joined #ruby
edwinvdgraaf has joined #ruby
troys has quit [Quit: Bye]
saneax is now known as saneax_AFK
skade has joined #ruby
dimik has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
skade has quit [Quit: Computer has gone to sleep.]
Hounddog has joined #ruby
Luna_Moonfang has quit [Quit: WeeChat 1.3]
ohaibbq has quit [Quit: Leaving...]
Luna_Moonfang has joined #ruby
LiquidInsect has quit [Ping timeout: 260 seconds]
howdoicomputer has joined #ruby
LiquidInsect has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
jetpackjoe has joined #ruby
Hounddog has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
skade has joined #ruby
Hounddog has joined #ruby
kies has quit [Ping timeout: 245 seconds]
krz has quit [Read error: Connection reset by peer]
c0m0 has quit [Ping timeout: 245 seconds]
howdoicomputer has quit [Ping timeout: 250 seconds]
sperant has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Hounddog has quit [Excess Flood]
ricer2 has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
Hounddog has joined #ruby
blaxter has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
edwinvdgraaf has joined #ruby
User458764 has joined #ruby
colegatron has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
boxofrox has quit [Ping timeout: 276 seconds]
c0m0 has joined #ruby
waynerade has joined #ruby
postmodern has quit [Quit: Leaving]
tjbiddle has quit [Quit: tjbiddle]
edwinvdgraaf has quit [Client Quit]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
timonv has joined #ruby
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupp3tm4st3r has joined #ruby
edwinvdgraaf has joined #ruby
edj has quit [Ping timeout: 252 seconds]
irk has joined #ruby
waynerade has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
krz has joined #ruby
krz has quit [Read error: Connection reset by peer]
Ruby_Rocks_007 has joined #ruby
jadergabriel has quit [Quit: Konversation terminated!]
<ruboto>
norc # => "== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========\n== catch table\n| catch t ...check link for more (https://eval.in/478849)
johnlinvc has quit [Quit: johnlinvc]
<norc>
Apparently there is not so much of a difference between proc/lambda and blocks after all.
<norc>
Or no... I think I have to look into how method calls are implemented.
c0m0 has quit [Ping timeout: 250 seconds]
LiquidInsect has quit [Ping timeout: 245 seconds]
Eiam has quit [Ping timeout: 245 seconds]
<xybre>
norc: arity checks
mrgrieves has joined #ruby
LiquidInsect has joined #ruby
<norc>
xybre: Im actually looking deeper. Blocks are about the only thing in Ruby that are not first objects. They are rather species when it comes to how methods are implemented in Ruby
Hounddog has joined #ruby
<norc>
*special
<norc>
Interestingly until the VM it accepts procs/lambdas as blocks though.
<norc>
(Without calling some method to convert it into a block explicitely)
<norc>
Well okay, methods are not first class objects either.
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv>
blocks are just closures, nothing special about them
BSaboia has joined #ruby
bakedb has joined #ruby
<xybre>
norc: a lot of things aren't objects on the VM level, the OO happens at the compiler level.
<norc>
ddv: Blocks set up catch points for break, redo, next. They are special when it comes to how they are passed to functions.
<ddv>
norc: do you have a specific question?
<norc>
xybre: Difference is that methods and blocks are directly exposed to you. :)
<norc>
ddv: Nah.
<apeiros>
norc's business card: explorer of ruby internals ;-)
<norc>
:)
<apeiros>
I wish I had the time for such stuff :(
B1n4r10 has joined #ruby
huyderman has joined #ruby
TheBloke has quit [Read error: Connection reset by peer]
<xybre>
norc: so are numbers, which are not objects in the VM
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
<norc>
xybre: Sure they are.
Hounddog has quit [Read error: Connection reset by peer]
<xybre>
Addition and basic math isn't.
<norc>
xybre: for the fixnum 1 the INS putobject_OP_INT2FIX_O_1_C_ is used to push it onto the stack
<ruboto>
norc # => == disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>========== ...check link for more (https://eval.in/478850)
Hounddog has joined #ruby
zenguy_pc has quit [Ping timeout: 246 seconds]
<xybre>
Interesting, that's not the same VM code I was looking at a couple of days ago.
<norc>
The only thing in Ruby that is not an object is blocks.
pangareh has quit [Remote host closed the connection]
arup_r has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
Hounddog has quit [Excess Flood]
rodfersou has joined #ruby
Hounddog has joined #ruby
Ilyes512 has joined #ruby
<xybre>
The stuff I was looking at was from pre-2.x I think though. I'll post it if I find it again, the interpretation of the bytecodes might just have been misleading.
elton has joined #ruby
<xybre>
Yeah almost everything I said above is wrong, my memory sucks. :D
howdoicomputer has quit [Ping timeout: 260 seconds]
<eam>
batu: gsub(a, b) vs gsub(a b) ?
minimalism has quit [Quit: leaving]
minimalism has joined #ruby
<Ox0dea>
Is comma the ew semicolo?
desmondhume has joined #ruby
<eam>
everyone loves the colon, hates the semicolon
<Ox0dea>
"Don't use semi-colons! They are transvestite hermaphrodites, representing exactly nothing."
<batu>
shit
<batu>
I totaly missed that
<batu>
thanks guys
Rodya_ has quit [Ping timeout: 260 seconds]
<eam>
batu: when it says "undefined method 'term'" probably look for each instance you use 'term' :)
andykingking has quit [Ping timeout: 250 seconds]
<Ox0dea>
Lie umers are also quite helpful.
voodo is now known as voodo|away
Azulinho has joined #ruby
yoongkang has quit [Remote host closed the connection]
wprice has joined #ruby
bradc has joined #ruby
gusTester has joined #ruby
B1n4r10 has joined #ruby
peterhil_ has joined #ruby
<Ox0dea>
I've also lost the use of my right Alt key; how could this day get worse?
nbdy has joined #ruby
<batu>
I am trying to make a script that will parser several JS files, and it will substitute certain words (Lexicon). the script should take as an argument file name to be modified and outout the result on a file called filename+Modified
<Ox0dea>
No particularly good reason to do it a line at a time.
elton has quit [Ping timeout: 250 seconds]
d0nn1e has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
<Ox0dea>
Line breaks are liable to cause some trouble, but maybe you don't have any between the multi-word terms?
Xeago has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<batu>
the input file will look like jQuery code. and I need to replace some deprecated method names with others. In order to speed up a conversion process from AS3 to HTML5 and createJS
chouhoulis has quit [Ping timeout: 260 seconds]
grill has joined #ruby
Xeago has quit [Remote host closed the connection]
Bellthoven has joined #ruby
roxtrong_ has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
Xeago has joined #ruby
sepp2k has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
roxtrongo has quit [Ping timeout: 260 seconds]
sankaber has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<mrgrieves>
any suggestions on vim plugins to look at to help with writing in ruby? I know google can help me with that but wanted to hear first hand from ruby savvi people that are also vim users
<Ox0dea>
mrgrieves: Have you come to Vim from an IDE?
freerobby has joined #ruby
boxofrox has joined #ruby
rikkipitt has joined #ruby
cwong_on_irc has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<rethi>
mrgrieves: I just use a syntax highlighter and vim-ruby
<rethi>
I have heard good things about the vim-rails plugin. but I don't do much rails dev at all so never needed it
<mrgrieves>
yes, I've been looking at what vim-ruby gives me but it's very limited ... on mac for example if look for string methods I couldn't find an easy way to jump the long list of methos faster
wprice has quit [Quit: wprice]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<mrgrieves>
it would be nice to paginate the list
krz has joined #ruby
cwong_on_irc has quit [Ping timeout: 250 seconds]
TomPeed has joined #ruby
casadei has joined #ruby
<mrgrieves>
vim-ruby-doc seems useful as well ...
Akagi201 has joined #ruby
symbol has joined #ruby
desmondhume has quit [Remote host closed the connection]
<mrgrieves>
but it doesn't seem to be maintained
<rethi>
yeah would be nice to have the docs to hand in vim. I should adopt that into my workflow!
sankaber has joined #ruby
skade has joined #ruby
<rethi>
hmm no open issues, last commit 3 yrs ago. seems pretty dead
desmondhume has joined #ruby
<adaedra>
Under OS X you can look for the Dash app – not only Ruby-related, but it's a nice thing to have
<rethi>
Yeah Was just about to suggest that adaedra:
kp666 has quit [Remote host closed the connection]
TheHodge has joined #ruby
<mrgrieves>
Thanks!
Yzguy has joined #ruby
chouhoulis has joined #ruby
goodcodeguy has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
Akagi201 has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
Snowy has quit [Remote host closed the connection]
waynerade has quit [Remote host closed the connection]
allyjweir has joined #ruby
voodo|away is now known as voodo
akem has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
waynerade has joined #ruby
cdg has joined #ruby
rikkipitt has quit [Remote host closed the connection]
moeabdol has joined #ruby
malconis has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
shanemcd has joined #ruby
User458764 has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
sandstrom has joined #ruby
nbdy has quit [Ping timeout: 250 seconds]
batu has quit [Ping timeout: 250 seconds]
Bellthoven has quit []
waynerade has quit [Remote host closed the connection]
pandaant has joined #ruby
wprice has joined #ruby
Rodya_ has joined #ruby
Jardayn has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
nbdy has joined #ruby
peterhil_ has quit [Read error: Connection reset by peer]
peterhil_ has joined #ruby
timonv has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
andikr has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
<argoneus>
I don't even understand how come this can be used as a block
<argoneus>
info doesn't yield anything
krobzaur has joined #ruby
<Ox0dea>
argoneus: Every method receives an implicit block.
nixmaniack has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
dhollinger has joined #ruby
<argoneus>
I just don't even understand what "info" even is, if it's an object or what
<Ox0dea>
It's a method.
<argoneus>
and why you have to put values in it so awkwardly
chouhoulis has quit [Remote host closed the connection]
<Ox0dea>
Unless there's some magic hidden elsewhere (not particularly unlikely), that `info do` is superfluous.
chouhoulis has joined #ruby
<argoneus>
superfluous?
<Ox0dea>
Unnecessary.
<argoneus>
so the method "info" returns -some object-, and then I call that weird inject on it?
<Ox0dea>
No.
<ddv>
anyone know how I can generate a date range, reject some days for example sundays and extend the range with a next available day? Obviously I can do something like (Date.today..Date.today+5.days).reject{|day| day.sunday?} but this would remove sunday and make the range smaller
Yzguy has joined #ruby
<Ox0dea>
argoneus: Given the two snippets to which you've linked, that block doesn't even get executed.
xfbs has quit []
<arup_r>
Is my question so hard.. ? :)
<argoneus>
are you sure?
<Ox0dea>
`info` does receive it, but it's not invoking it, thus my suspicion that there must be some spooky action at a distance going on.
<ddubs>
the question was worded as if he wanted to read the cert from the connection and then *trust* from there
frankS2 has joined #ruby
<apeiros>
that would make little sense then, though. essentially the same as verify=none
<ddubs>
yea
mighty_gorilla has joined #ruby
InvGhost has quit [Ping timeout: 264 seconds]
ghormoon_ has quit [Remote host closed the connection]
ghormoon has joined #ruby
vifino has joined #ruby
IceDragon has joined #ruby
Guest85414______ has joined #ruby
big|bad|wolf has joined #ruby
rubie has joined #ruby
vondruch has joined #ruby
s2013 has joined #ruby
allyjweir has joined #ruby
ElSif has joined #ruby
null3 has joined #ruby
hackeron has joined #ruby
yxhuvud has joined #ruby
alakra has joined #ruby
purplexed- has joined #ruby
cycorld has joined #ruby
astrobunny has joined #ruby
moss has joined #ruby
infernix has joined #ruby
Spleeze has joined #ruby
bytecrawler has joined #ruby
symm- has joined #ruby
solenoids has joined #ruby
Lilian has joined #ruby
Luna_Moonfang has joined #ruby
unsymbol has joined #ruby
Papierkorb has joined #ruby
rghose has joined #ruby
uber has joined #ruby
Helheim has joined #ruby
existensil has joined #ruby
kalleth has joined #ruby
Couch has joined #ruby
majjoha_ has joined #ruby
gilesww has joined #ruby
xnr has joined #ruby
g3funk has joined #ruby
lxsameer has joined #ruby
lkba has joined #ruby
SCHAAP137 has joined #ruby
jokester has joined #ruby
pdoherty has joined #ruby
platzhirsch has joined #ruby
tenderlove has joined #ruby
kxc0re has joined #ruby
Biohazard has joined #ruby
gaussblurinc1 has joined #ruby
kramsee has joined #ruby
dfoolz has joined #ruby
Freeaqingme has joined #ruby
Shapeshifter has joined #ruby
yasu___ has joined #ruby
danoo_ has joined #ruby
Asher has joined #ruby
scroff has joined #ruby
BTRE has joined #ruby
argoneus has joined #ruby
sarlalian has joined #ruby
BraddPitt has joined #ruby
chridal has joined #ruby
rclements has joined #ruby
Ishido has joined #ruby
casadei has joined #ruby
bradc has joined #ruby
hinbody has joined #ruby
PaulePanter has joined #ruby
unreal has joined #ruby
_stu_ has joined #ruby
bascht has joined #ruby
grotewold has joined #ruby
trautwein has joined #ruby
nisstyre has joined #ruby
reaVer has joined #ruby
yorickpeterse has joined #ruby
Puffball has joined #ruby
cinik has joined #ruby
pragmatism has joined #ruby
moei has joined #ruby
Guest90348 has joined #ruby
oddalot has joined #ruby
connor_goodwolf has joined #ruby
workmad3 has joined #ruby
mosez has joined #ruby
Kuukunen has joined #ruby
bnagy has joined #ruby
linduxed has joined #ruby
fluchtreflex has joined #ruby
Ray` has joined #ruby
Vile` has joined #ruby
freeze has joined #ruby
kallisti5 has joined #ruby
alol has joined #ruby
[ace] has joined #ruby
badeball has joined #ruby
sysanthrope has joined #ruby
cfloare has joined #ruby
xsdg has joined #ruby
passcod has joined #ruby
programmerq has joined #ruby
ozzloy has joined #ruby
Guest726 has joined #ruby
euoia has joined #ruby
TTilus has joined #ruby
DEac- has joined #ruby
DrShoggoth has joined #ruby
yeltzooo has joined #ruby
james1 has joined #ruby
Bish has joined #ruby
suffice has joined #ruby
coffeejunk has joined #ruby
rethi has joined #ruby
ironcamel has joined #ruby
axisys has joined #ruby
Koshian has joined #ruby
stephenh has joined #ruby
[dmp] has joined #ruby
kent\n has joined #ruby
Skelz0r has joined #ruby
rmrrn has joined #ruby
Drakevr has joined #ruby
crowell has joined #ruby
ljarvis has joined #ruby
bewie has joined #ruby
ajaiswal has joined #ruby
conrfrmn has joined #ruby
musicmatze has joined #ruby
sugardrunk has joined #ruby
Guest50975 has joined #ruby
async_prince has joined #ruby
ZYPP has joined #ruby
Silex has joined #ruby
pl1ght has joined #ruby
hplar has joined #ruby
gamache has joined #ruby
thang has joined #ruby
boshhead has joined #ruby
flori has joined #ruby
hightower4 has joined #ruby
marahin has joined #ruby
joneshf-laptop has joined #ruby
certainty has joined #ruby
VladGh has joined #ruby
woodruffw has joined #ruby
jericon has joined #ruby
mercerist has joined #ruby
pyoor has joined #ruby
<pyoor>
hi all. Is there a recommended gem for monitoring a process's cpu usage on windows?
sjohnsen has joined #ruby
davedev2_ has joined #ruby
quarcu has joined #ruby
Amnez777 has joined #ruby
bradc has quit [*.net *.split]
s2013 has quit [*.net *.split]
Spleeze has quit [*.net *.split]
Guest90348 has quit [*.net *.split]
symm- has quit [*.net *.split]
Luna_Moonfang has quit [*.net *.split]
Helheim has quit [*.net *.split]
kxc0re has quit [*.net *.split]
uber has quit [*.net *.split]
yasu___ has quit [*.net *.split]
g3funk has quit [*.net *.split]
_stu_ has quit [*.net *.split]
pragmatism has quit [*.net *.split]
grotewold has quit [*.net *.split]
lkba has quit [*.net *.split]
casadei has quit [*.net *.split]
allyjweir has quit [*.net *.split]
purplexed- has quit [*.net *.split]
Puffball has quit [*.net *.split]
Ishido has quit [*.net *.split]
platzhirsch has quit [*.net *.split]
Couch has quit [*.net *.split]
SCHAAP137 has quit [*.net *.split]
cinik has quit [*.net *.split]
lxsameer has quit [*.net *.split]
trautwein has quit [*.net *.split]
rghose has quit [*.net *.split]
gaussblurinc1 has quit [*.net *.split]
cycorld has quit [*.net *.split]
BTRE has quit [*.net *.split]
astrobunny has quit [*.net *.split]
workmad3 has quit [*.net *.split]
hackeron has quit [*.net *.split]
unsymbol has quit [*.net *.split]
pdoherty has quit [*.net *.split]
alakra has quit [*.net *.split]
infernix has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
rclements has quit [*.net *.split]
reaVer has quit [*.net *.split]
ElSif has quit [*.net *.split]
solenoids has quit [*.net *.split]
Asher has quit [*.net *.split]
sarlalian has quit [*.net *.split]
chridal has quit [*.net *.split]
jokester has quit [*.net *.split]
null3 has quit [*.net *.split]
moei has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
Biohazard has quit [*.net *.split]
hinbody has quit [*.net *.split]
tenderlove has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
scroff has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
existensil has quit [*.net *.split]
moss has quit [*.net *.split]
oddalot has quit [*.net *.split]
dfoolz has quit [*.net *.split]
unreal has quit [*.net *.split]
danoo_ has quit [*.net *.split]
majjoha_ has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
Lilian has quit [*.net *.split]
kramsee has quit [*.net *.split]
xnr has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
Shapeshifter has quit [*.net *.split]
nisstyre has quit [*.net *.split]
bytecrawler has quit [*.net *.split]
kalleth has quit [*.net *.split]
gilesww has quit [*.net *.split]
bascht has quit [*.net *.split]
kent\n has quit [*.net *.split]
musicmatze has quit [*.net *.split]
alol has quit [*.net *.split]
ajaiswal has quit [*.net *.split]
linduxed has quit [*.net *.split]
passcod has quit [*.net *.split]
sysanthrope has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
badeball has quit [*.net *.split]
xsdg has quit [*.net *.split]
bewie has quit [*.net *.split]
mosez has quit [*.net *.split]
gamache has quit [*.net *.split]
thang has quit [*.net *.split]
axisys has quit [*.net *.split]
ljarvis has quit [*.net *.split]
jericon has quit [*.net *.split]
bnagy has quit [*.net *.split]
pl1ght has quit [*.net *.split]
certainty has quit [*.net *.split]
conrfrmn has quit [*.net *.split]
suffice has quit [*.net *.split]
james1 has quit [*.net *.split]
rmrrn has quit [*.net *.split]
programmerq has quit [*.net *.split]
sugardrunk has quit [*.net *.split]
[dmp] has quit [*.net *.split]
Silex has quit [*.net *.split]
async_prince has quit [*.net *.split]
TTilus has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
Guest50975 has quit [*.net *.split]
argoneus has quit [*.net *.split]
ZYPP has quit [*.net *.split]
stephenh has quit [*.net *.split]
Guest726 has quit [*.net *.split]
ironcamel has quit [*.net *.split]
rethi has quit [*.net *.split]
DEac- has quit [*.net *.split]
freeze has quit [*.net *.split]
woodruffw has quit [*.net *.split]
Vile` has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
crowell has quit [*.net *.split]
flori has quit [*.net *.split]
VladGh has quit [*.net *.split]
Ray` has quit [*.net *.split]
Drakevr has quit [*.net *.split]
hplar has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
ozzloy has quit [*.net *.split]
euoia has quit [*.net *.split]
cfloare has quit [*.net *.split]
joneshf-laptop has quit [*.net *.split]
boshhead has quit [*.net *.split]
marahin has quit [*.net *.split]
hightower4 has quit [*.net *.split]
Bish has quit [*.net *.split]
[ace] has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
Koshian has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
Amnez777 has quit [Remote host closed the connection]
<adaedra>
I thought freenode got better
bradc has joined #ruby
moeabdol has joined #ruby
howdoicomputer has joined #ruby
sivoais has joined #ruby
howdoicomputer has quit [Ping timeout: 260 seconds]
Gnut has joined #ruby
jefus has joined #ruby
User458764 has joined #ruby
podman has joined #ruby
bradc has quit [Ping timeout: 260 seconds]
snockerton has joined #ruby
snockerton has quit [Client Quit]
podman has quit [Client Quit]
snockerton has joined #ruby
podman has joined #ruby
rodfersou has joined #ruby
rodfersou has quit [Client Quit]
tildes has joined #ruby
pandaant has joined #ruby
Outlastsheep has joined #ruby
lucas has joined #ruby
thomas has joined #ruby
sepp2k has joined #ruby
karapetyan has joined #ruby
sung has joined #ruby
rodfersou has joined #ruby
iDavid has joined #ruby
exceion_ has joined #ruby
low-profile has joined #ruby
sami has joined #ruby
sethetter has joined #ruby
nitrix has joined #ruby
KrzaQ has joined #ruby
qpls_ has joined #ruby
droptone has joined #ruby
bubuntu_ has joined #ruby
DylanJ has joined #ruby
moredhel has joined #ruby
slash_nick has joined #ruby
ex0ns has joined #ruby
jidar has joined #ruby
kiki_lamb has joined #ruby
patteh has joined #ruby
sulky has joined #ruby
alvaro_o has joined #ruby
madhatter has joined #ruby
musl has joined #ruby
sunya7a_ has joined #ruby
Eising has joined #ruby
Radar has joined #ruby
uxp has joined #ruby
janelleb has joined #ruby
torpig has joined #ruby
\13k_ has joined #ruby
Voker57 has joined #ruby
ekem has joined #ruby
monoprotic has joined #ruby
helpa has joined #ruby
lianj has joined #ruby
konopka has joined #ruby
aibot has joined #ruby
ekleog has joined #ruby
beagles has joined #ruby
Esya has joined #ruby
shawnacscott has joined #ruby
djellemah has joined #ruby
genpaku has joined #ruby
tokik has joined #ruby
JoL1hAHN has joined #ruby
saltsa has joined #ruby
tercenya has joined #ruby
DefV_ has joined #ruby
sunya7a has joined #ruby
xet7 has joined #ruby
snapcase has joined #ruby
jgorak has joined #ruby
aspiers has joined #ruby
jericon has joined #ruby
pl1ght has joined #ruby
Asher has joined #ruby
queequeg1 has joined #ruby
hightower4 has joined #ruby
s2013 has joined #ruby
lxsameer has joined #ruby
workmad3 has joined #ruby
crowell has joined #ruby
skweek has joined #ruby
unsymbol has joined #ruby
rclements has joined #ruby
Lilian has joined #ruby
braincrash has joined #ruby
ozzloy has joined #ruby
boshhead has joined #ruby
linduxed has joined #ruby
purplexed- has joined #ruby
waka has joined #ruby
gf3 has joined #ruby
ibouvousaime has joined #ruby
badeball has joined #ruby
sugardrunk has joined #ruby
Puffball has joined #ruby
18VAADQYW has joined #ruby
infernix has joined #ruby
ljarvis has joined #ruby
prestorium has joined #ruby
connor_goodwolf has joined #ruby
yorickpeterse has joined #ruby
pragmatism has joined #ruby
PaulePanter has joined #ruby
bewie has joined #ruby
existensil has joined #ruby
pietr0 has joined #ruby
mary5030 has joined #ruby
j2k has joined #ruby
VladGh has joined #ruby
TTilus has joined #ruby
kent\n has joined #ruby
symm- has joined #ruby
[dmp] has joined #ruby
azgil has joined #ruby
xsdg has joined #ruby
gaussblurinc1 has joined #ruby
hakunin has joined #ruby
axisys has joined #ruby
yeltzooo has joined #ruby
Guest726 has joined #ruby
suffice has joined #ruby
DrShoggoth has joined #ruby
Skelz0r has joined #ruby
MissionCritical has joined #ruby
Kuukunen has joined #ruby
bascht has joined #ruby
Ray` has joined #ruby
cwheeler has joined #ruby
rethi has joined #ruby
kramsee has joined #ruby
ZYPP has joined #ruby
flori has joined #ruby
edwinvdgraaf has joined #ruby
alol has joined #ruby
Guest90348 has joined #ruby
blaxter has joined #ruby
BTRE has joined #ruby
hackeron has joined #ruby
uri has joined #ruby
moss has joined #ruby
woodruffw has joined #ruby
cwong_on_irc has joined #ruby
evil_shibe has joined #ruby
sphex has joined #ruby
marahin has joined #ruby
Papierkorb has joined #ruby
ElSif has joined #ruby
majjoha_ has joined #ruby
reaVer has joined #ruby
[ace] has joined #ruby
rmrrn has joined #ruby
hinbody has joined #ruby
Jardayn has joined #ruby
yasu___ has joined #ruby
moei has joined #ruby
malconis has joined #ruby
joneshf-laptop has joined #ruby
DEac- has joined #ruby
Helheim has joined #ruby
Biohazard has joined #ruby
thang has joined #ruby
cycorld has joined #ruby
ironcamel has joined #ruby
dfoolz has joined #ruby
musicmatze has joined #ruby
euoia has joined #ruby
Koshian has joined #ruby
james1 has joined #ruby
Bish has joined #ruby
hplar has joined #ruby
stephenh has joined #ruby
sysanthrope has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
jefus has left #ruby ["Leaving"]
moeabdol has joined #ruby
snockerton1 has joined #ruby
sivoais has quit [Ping timeout: 260 seconds]
snockerton has quit [Ping timeout: 265 seconds]
podman has quit []
ponzi has joined #ruby
dfoolz_ has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has quit [*.net *.split]
karapetyan has quit [*.net *.split]
pandaant has quit [*.net *.split]
mary5030 has quit [*.net *.split]
18VAADQYW has quit [*.net *.split]
s2013 has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
Guest90348 has quit [*.net *.split]
symm- has quit [*.net *.split]
Helheim has quit [*.net *.split]
pragmatism has quit [*.net *.split]
purplexed- has quit [*.net *.split]
Puffball has quit [*.net *.split]
lxsameer has quit [*.net *.split]
gaussblurinc1 has quit [*.net *.split]
cycorld has quit [*.net *.split]
BTRE has quit [*.net *.split]
workmad3 has quit [*.net *.split]
hackeron has quit [*.net *.split]
unsymbol has quit [*.net *.split]
infernix has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
rclements has quit [*.net *.split]
reaVer has quit [*.net *.split]
ElSif has quit [*.net *.split]
Asher has quit [*.net *.split]
moei has quit [*.net *.split]
Biohazard has quit [*.net *.split]
hinbody has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
existensil has quit [*.net *.split]
moss has quit [*.net *.split]
dfoolz has quit [*.net *.split]
majjoha_ has quit [*.net *.split]
Lilian has quit [*.net *.split]
kramsee has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
bascht has quit [*.net *.split]
kent\n has quit [*.net *.split]
musicmatze has quit [*.net *.split]
alol has quit [*.net *.split]
linduxed has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
xsdg has quit [*.net *.split]
badeball has quit [*.net *.split]
bewie has quit [*.net *.split]
thang has quit [*.net *.split]
axisys has quit [*.net *.split]
ljarvis has quit [*.net *.split]
jericon has quit [*.net *.split]
pl1ght has quit [*.net *.split]
suffice has quit [*.net *.split]
james1 has quit [*.net *.split]
rmrrn has quit [*.net *.split]
sugardrunk has quit [*.net *.split]
[dmp] has quit [*.net *.split]
TTilus has quit [*.net *.split]
ZYPP has quit [*.net *.split]
stephenh has quit [*.net *.split]
Guest726 has quit [*.net *.split]
ironcamel has quit [*.net *.split]
rethi has quit [*.net *.split]
DEac- has quit [*.net *.split]
woodruffw has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
crowell has quit [*.net *.split]
flori has quit [*.net *.split]
VladGh has quit [*.net *.split]
Ray` has quit [*.net *.split]
hplar has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
ozzloy has quit [*.net *.split]
euoia has quit [*.net *.split]
joneshf-laptop has quit [*.net *.split]
boshhead has quit [*.net *.split]
marahin has quit [*.net *.split]
hightower4 has quit [*.net *.split]
Bish has quit [*.net *.split]
[ace] has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
Koshian has quit [*.net *.split]
rodfersou has quit [*.net *.split]
Outlastsheep has quit [*.net *.split]
sepp2k has quit [*.net *.split]
yasu___ has quit [*.net *.split]
cwong_on_irc has quit [*.net *.split]
uri has quit [*.net *.split]
prestorium has quit [*.net *.split]
j2k has quit [*.net *.split]
Jardayn has quit [*.net *.split]
malconis has quit [*.net *.split]
azgil has quit [*.net *.split]
aspiers has quit [*.net *.split]
ibouvousaime has quit [*.net *.split]
edwinvdgraaf has quit [*.net *.split]
blaxter has quit [*.net *.split]
skweek has quit [*.net *.split]
cwheeler has quit [*.net *.split]
braincrash has quit [*.net *.split]
waka has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
hakunin has quit [*.net *.split]
pietr0 has quit [*.net *.split]
sphex has quit [*.net *.split]
jgorak has quit [*.net *.split]
shawnacscott has quit [*.net *.split]
xet7 has quit [*.net *.split]
saltsa has quit [*.net *.split]
lianj has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
aibot has quit [*.net *.split]
konopka has quit [*.net *.split]
Esya has quit [*.net *.split]
snapcase has quit [*.net *.split]
Voker57 has quit [*.net *.split]
genpaku has quit [*.net *.split]
helpa has quit [*.net *.split]
beagles has quit [*.net *.split]
ekleog has quit [*.net *.split]
Radar has quit [*.net *.split]
ekem has quit [*.net *.split]
djellemah has quit [*.net *.split]
sunya7a has quit [*.net *.split]
\13k_ has quit [*.net *.split]
uxp has quit [*.net *.split]
DefV_ has quit [*.net *.split]
janelleb has quit [*.net *.split]
monoprotic has quit [*.net *.split]
Eising has quit [*.net *.split]
tokik has quit [*.net *.split]
gf3 has quit [*.net *.split]
torpig has quit [*.net *.split]
patteh has quit [*.net *.split]
sulky has quit [*.net *.split]
musl has quit [*.net *.split]
sunya7a_ has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
tercenya has quit [*.net *.split]
madhatter has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
bubuntu_ has quit [*.net *.split]
evil_shibe has quit [*.net *.split]
droptone has quit [*.net *.split]
jidar has quit [*.net *.split]
low-profile has quit [*.net *.split]
exceion_ has quit [*.net *.split]
iDavid has quit [*.net *.split]
sung has quit [*.net *.split]
slash_nick has quit [*.net *.split]
qpls_ has quit [*.net *.split]
DylanJ has quit [*.net *.split]
ex0ns has quit [*.net *.split]
sami has quit [*.net *.split]
nitrix has quit [*.net *.split]
moredhel has quit [*.net *.split]
lucas has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
sethetter has quit [*.net *.split]
thomas has quit [*.net *.split]
Silex has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
b4rb0s4_ has joined #ruby
mary5030_ has joined #ruby
M-prosodyContext has joined #ruby
maddmaxx has joined #ruby
shaman42 has joined #ruby
DEac- has joined #ruby
Guest726 has joined #ruby
dorei has joined #ruby
ljarvis has joined #ruby
flori has joined #ruby
[ace] has joined #ruby
TTilus has joined #ruby
suffice has joined #ruby
Ray` has joined #ruby
thang has joined #ruby
certainty has joined #ruby
james1 has joined #ruby
Vile` has joined #ruby
bnagy has joined #ruby
Koshian has joined #ruby
Kuukunen has joined #ruby
programmerq has joined #ruby
Guest50975 has joined #ruby
woodruffw has joined #ruby
ZYPP has joined #ruby
axisys has joined #ruby
fluchtreflex has joined #ruby
mosez has joined #ruby
gilesww has joined #ruby
stephenh has joined #ruby
Drakevr has joined #ruby
gamache has joined #ruby
[dmp] has joined #ruby
ironcamel has joined #ruby
bewie has joined #ruby
hplar has joined #ruby
coffeejunk has joined #ruby
async_prince has joined #ruby
musicmatze has joined #ruby
bytecrawler has joined #ruby
bascht has joined #ruby
nisstyre has joined #ruby
linduxed has joined #ruby
kent\n has joined #ruby
boshhead has joined #ruby
pandaant has joined #ruby
passcod has joined #ruby
VladGh has joined #ruby
DrShoggoth has joined #ruby
ozzloy has joined #ruby
kramsee has joined #ruby
rmrrn has joined #ruby
sepp2k has joined #ruby
PaulePanter has joined #ruby
joneshf-laptop has joined #ruby
Bish has joined #ruby
pl1ght has joined #ruby
yeltzooo has joined #ruby
ajaiswal has joined #ruby
marahin has joined #ruby
freeze has joined #ruby
kallisti5 has joined #ruby
hightower4 has joined #ruby
rodfersou has joined #ruby
Freeaqingme has joined #ruby
majjoha_ has joined #ruby
BraddPitt has joined #ruby
Lilian has joined #ruby
Biohazard has joined #ruby
null3 has joined #ruby
unreal has joined #ruby
oddalot has joined #ruby
rclements has joined #ruby
Shapeshifter has joined #ruby
existensil has joined #ruby
solenoids has joined #ruby
moss has joined #ruby
alakra has joined #ruby
unsymbol has joined #ruby
Puffball has joined #ruby
hinbody has joined #ruby
yxhuvud has joined #ruby
infernix has joined #ruby
BTRE has joined #ruby
Luna_Moonfang has joined #ruby
scroff has joined #ruby
reaVer has joined #ruby
purplexed- has joined #ruby
Asher has joined #ruby
Muz has joined #ruby
Papierkorb has joined #ruby
gf3 has joined #ruby
j2k has joined #ruby
Peg-leg has joined #ruby
grotewold has joined #ruby
djanatyn has joined #ruby
shawnacscott has joined #ruby
aibot has joined #ruby
chinmay_dd has joined #ruby
ibouvousaime has joined #ruby
astrobunny has joined #ruby
snapcase has joined #ruby
casadei has joined #ruby
edwinvdgraaf has joined #ruby
Guest90348 has joined #ruby
ja has joined #ruby
ruisantos has joined #ruby
Ishido has joined #ruby
danoo_ has joined #ruby
g3funk has joined #ruby
hackeron has joined #ruby
lnx has joined #ruby
beagles has joined #ruby
tenderlove has joined #ruby
uri has joined #ruby
symm- has joined #ruby
uber has joined #ruby
ghoti has joined #ruby
tsou has joined #ruby
Rodya_ has joined #ruby
workmad3 has joined #ruby
Spleeze has joined #ruby
konopka has joined #ruby
evil_shibe has joined #ruby
sarlalian has joined #ruby
connor_goodwolf has joined #ruby
blaxter has joined #ruby
allyjweir has joined #ruby
Couch has joined #ruby
noodle has joined #ruby
cinik has joined #ruby
xet7 has joined #ruby
saltsa has joined #ruby
ElSif has joined #ruby
braincrash has joined #ruby
contradictioned has joined #ruby
lianj has joined #ruby
ec\_ has joined #ruby
matti has joined #ruby
rfi_ has joined #ruby
z4ph0d has joined #ruby
ir2ivps3__ has joined #ruby
musl has joined #ruby
Jamo_ has joined #ruby
tokik has joined #ruby
exceion_ has joined #ruby
Eising has joined #ruby
adam_ has joined #ruby
janelleb has joined #ruby
ss_ss_ has joined #ruby
bhaak has joined #ruby
droptone has joined #ruby
uxp has joined #ruby
sulky has joined #ruby
Guest28511 has joined #ruby
utkarsh_ has joined #ruby
BaNzounet has joined #ruby
torpig has joined #ruby
qpls_ has joined #ruby
fumduq- has joined #ruby
sung has joined #ruby
ericwood_ has joined #ruby
mduca_ has joined #ruby
Antiarc_ has joined #ruby
alvaro_o has joined #ruby
sami has joined #ruby
moredhel has joined #ruby
madhatter has joined #ruby
klaas has joined #ruby
ex0ns has joined #ruby
nizmow- has joined #ruby
patteh has joined #ruby
wlanboy_ has joined #ruby
dualbus has joined #ruby
djellemah has joined #ruby
DylanJ has joined #ruby
moeabdol has joined #ruby
mary5030_ has quit [Remote host closed the connection]
b4rb0s4_ has quit [Max SendQ exceeded]
machty has joined #ruby
ggherdov has quit [Changing host]
ggherdov has joined #ruby
<ponzi>
In IRB Array#take gives me all methods for Array and also renders Ctrl+D, Ctrl+C pretty useless. What am I doing wrong (OS X 10.9/rbenv/ruby 2.2.3)?
<ponzi>
Sorry that should have been: help Array#take
<jhass>
press q
<ponzi>
jhass: How do I get the help for just the one method?
<jhass>
use pry
<jhass>
?pry
<jhass>
ah, bot is on the other side of the netsplit
grill has joined #ruby
jzigmund has joined #ruby
theRoUS has joined #ruby
frankS2 has quit [Changing host]
frankS2 has joined #ruby
ELCALOR has joined #ruby
tejasmanohar has joined #ruby
Guest85414______ has joined #ruby
tejasmanohar has quit [Changing host]
ELCALOR has quit [Changing host]
Guest85414______ has quit [Changing host]
vondruch has joined #ruby
vondruch has quit [Changing host]
matled- has joined #ruby
<havenwood>
ponzi: If you'd like to disable paging (where long results stop at the first page) in Pry add this to your .pryrc: Pry.pager = false
matled- has quit [Write error: Broken pipe]
nisstyre has quit [Max SendQ exceeded]
<ponzi>
jhass: PRY gives me: Error: No help found for 'Array#take'
<jhass>
jmonreal: let's try something different: Please try to answer the question, don't just say "i don't know": What is the difference between "class" and "module"?
<pontiki>
class << self turns Limits into a singleton; you can only have *one* instance of a singleton, thus you can't create new instances of it
freerobby has joined #ruby
Peg-leg has quit [Quit: Leaving.]
spider-mario has joined #ruby
<pontiki>
tho my understanding of that is shakey. these other folks can tell more about it
<jmonreal>
jhass: modules provide methods that can be shared or used across multiple classes
<hxegon>
pontiki: not exactly, but as I understand it ruby has trouble with implementing an actual singleton cleanly
<apeiros>
pontiki: class << self doesn't turn it into a singleton
<jmonreal>
a library
<pontiki>
see?
devbug has quit [Remote host closed the connection]
<apeiros>
it opens the singleton class of `self` (could put another object there too)
mclee has joined #ruby
<jmonreal>
and classes are objects
<jhass>
jmonreal: okay, so that's what modules can do what classes cannot. Why would we use classes? What can they do what modules cannot?
<jmonreal>
an object is an instance of a class
<apeiros>
and (almost) every object has a singleton_class, and that singleton_class belongs precisely only to that object
babblebre has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
<apeiros>
and it's the place where methods which are only for that object are stored. like "class" methods.
<apeiros>
hope that explanation was helpful :)
* apeiros
gotta run for the train now…
devbug has joined #ruby
<jmonreal>
jhass: Classes to encapsulate certain behaviours of our object.
<jmonreal>
Modules can not be instanciated? only classes can create objects?
<hxegon>
Kind of a long shot, but does anyone have experience with :force_quotes option in CSV
<jmonreal>
jhass: so what I would need here is a Class instead of a Module
<jmonreal>
right?
yoongkang has joined #ruby
<hxegon>
jmonreal: AFAIK, no.
<jmonreal>
kinda lost here
<jhass>
jmonreal: you would need a class
<jhass>
jmonreal: and drop the class << self stuff
<jhass>
jmonreal: now scroll up, you were told that like four or five times by now
idjet has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<jhass>
?anyone hxegon
<ruboto>
hxegon, Just ask your question, if anyone has or can, they will respond.
<idjet>
how come you have to wear a seatbelt in a car but not in a motorcycle? motorcycles are more dangerous then car
`based_pdev` has joined #ruby
<hxegon>
idjet: because you don't want to be attached to a motorcycle when it crashes
<jhass>
?offtopic idjet
<ruboto>
idjet, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
baweaver has joined #ruby
<jmonreal>
jhass: thanks, and is it possible to require 'ClassName' ?
skade has quit [Quit: Computer has gone to sleep.]
akem has joined #ruby
<jhass>
jmonreal: require loads files
<idjet>
hexagon you don't want to be attached to a car either with that logic
<jhass>
jmonreal: you give it filenames
<jmonreal>
ok, thanks
<jhass>
that files may or may not happen to define a class, module or whatever
<hxegon>
idjet: no, a car is all around you, while you are very exposed during a crash on a motorcycle, but I'm moving this to offtopic
arup_r has quit []
Hounddog has quit [Ping timeout: 260 seconds]
jondot has joined #ruby
<argoneus>
tbh if you crash a bike at high speed you are probably dead anyway
<hxegon>
argoneus: very true.
mjuszczak has joined #ruby
<argoneus>
and if you aren't dead you will wish you were
yoongkang has quit [Ping timeout: 260 seconds]
Ruby_Rocks_007 has joined #ruby
<hxegon>
Does anyone have enough experience with the :force_quotes option in CSV to show me a working example of it?
<hxegon>
jhass: that better? :)
<jhass>
hxegon: a little bit. Even better would be to show what you tried and what your issue with your attempt is
bubbys has joined #ruby
<jhass>
argoneus: #ruby-offtopic, for you too ;)
tomchapin has joined #ruby
asteros has joined #ruby
aphprentice has joined #ruby
User458764 has joined #ruby
devbug has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
Ruby_Rocks_007 has quit [Client Quit]
bronson has joined #ruby
im0b has quit [Remote host closed the connection]
DoYouKnow has quit [Remote host closed the connection]
jabreity__ has quit [Remote host closed the connection]
Lloyd has quit [Remote host closed the connection]
yo61 has quit [Remote host closed the connection]
lacrosse has quit [Remote host closed the connection]
prosody has quit [Remote host closed the connection]
mrsolo has quit [Remote host closed the connection]
machty has quit [Remote host closed the connection]
Snowy has quit [Client Quit]
<argoneus>
what the fuck
Jardayn_two has joined #ruby
<argoneus>
is freenode being ddos'd again?
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
devbug has joined #ruby
ht__ has joined #ruby
yardenbar has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
sivoais has joined #ruby
<shevy>
LET'S COUNTERBOMB
BlackCoyote has joined #ruby
<blub>
hi shevy
TheBloke- is now known as TheBloke
Jardayn_two has quit [Client Quit]
<idjet>
is terrorism allowed in this chat room?
Jardayn_two has joined #ruby
Jardayn has quit [Ping timeout: 260 seconds]
shaman42 has quit [Ping timeout: 260 seconds]
ht__ has quit [Client Quit]
Jardayn_two has quit [Read error: Connection reset by peer]
<baweaver>
where 0 is the initial value of accumulator (otherwise it's the first value of the collection) and each return of the block is the next accumulator
h99h9h88 has joined #ruby
pmarreck has joined #ruby
s2013 has joined #ruby
<baweaver>
so the first run it'd be acc = 0, i = 1, new_acc = 1
<adaedra>
You don't need the 0 in this case, as `+ 0` is never modifying the result.
cornerma1 has joined #ruby
dotix has quit [Ping timeout: 260 seconds]
ht__ has quit [Client Quit]
<baweaver>
what if it's empty?
howdoicomputer has joined #ruby
<baweaver>
more of a safety thing
<adaedra>
Ah, yes.
Xeago has quit [Remote host closed the connection]
zeroDivisible has joined #ruby
<baweaver>
it costs 3 characters so I just do it regardless as I don't trust users / code very much.
im0b has joined #ruby
Yzguy has joined #ruby
<sjums>
ah, probably best practice ;)
<sjums>
but for now I know my source :P
s2013 has quit [Read error: Connection reset by peer]
ht__ has joined #ruby
s2013 has joined #ruby
chridal has joined #ruby
myztic_ has joined #ruby
cornerma1 is now known as cornerman
Jardayn has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
shelling__ has joined #ruby
rubie has quit [Remote host closed the connection]
akitada has joined #ruby
twodayslate has joined #ruby
<JoshL>
Does ruby core have a site somewhere to see the pass/fail status of tests and/or nightly compiles? Like a Jenkins setup or something?
s2013 has quit [Read error: Connection reset by peer]
Spleeze has quit [Ping timeout: 245 seconds]
<JoshL>
Nevermind it was right in front of my face and I'm stupid. http://rubyci.org/, for the curious
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
spt0 has joined #ruby
spt0 has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
spt0 has joined #ruby
lacrosse has joined #ruby
gguggi has joined #ruby
s2013 has joined #ruby
baweaver has joined #ruby
yo61 has joined #ruby
RegulationD has quit [Remote host closed the connection]
Spleeze has joined #ruby
machty has joined #ruby
bove has joined #ruby
bubbys has quit [Ping timeout: 245 seconds]
benlakey has joined #ruby
zarubin has joined #ruby
lancetw has joined #ruby
mrsolo_ has joined #ruby
weemsledeux has joined #ruby
last_staff has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
mrsolo_ is now known as mrsolo
s2013 has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
treehug88 has joined #ruby
xet7 has quit [Quit: Leaving]
hahuang61 has joined #ruby
eyes_not has joined #ruby
blackmesa has joined #ruby
banister has quit [Ping timeout: 260 seconds]
revengeofbigd has joined #ruby
akem has quit [Remote host closed the connection]
dotix has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
HashNuke has joined #ruby
momomomomo has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
prosody has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon>
or rather, individual fields should all be quoted
h99h9h88 has quit [Remote host closed the connection]
<adaedra>
ah
countryHick has joined #ruby
machinewar has joined #ruby
Ruby_Rocks_007 has quit [Client Quit]
<machinewar>
anyone have experience sending file in a post request, need to post a PDF, but not sure how to serialize it
<adaedra>
machinewar: depends on your HTTP library.
<machinewar>
could I just open the file then send that object as request body?
mloy has joined #ruby
<machinewar>
adaedra: was thinking net/http
<adaedra>
depends on the service you're sending to, but usually files are sent throught multipart.
<adaedra>
through*
shinenelson has joined #ruby
Heero has joined #ruby
baweaver has joined #ruby
<machinewar>
that's what i was thinking, but not sure if its as easy as setting content-type to 'multipart/form-data' and giving path to file
juddey has joined #ruby
based_pdev_ has joined #ruby
rubie has joined #ruby
mjuszczak has quit []
`based_pdev` has quit [Ping timeout: 260 seconds]
<machinewar>
from docs "At this time Net::HTTP does not support multipart/form-data. To send multipart/form-data use Net::HTTPGenericRequest#body= and Net::HTTPHeader#content_type=:" *damn* lol
<ruboto>
apeiros # => /tmp/execpad-dbe854ff7bf2/source-dbe854ff7bf2:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/479361)
myztic has quit [Ping timeout: 260 seconds]
howdoicomputer has quit [Ping timeout: 260 seconds]
<apeiros>
that's the straight translation of yours to correct ruby
<adaedra>
MTeck: then go on, split the expression, and ask about parts you don't understand
machinewar has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
jabreity__ has joined #ruby
shaman42 has joined #ruby
<MTeck>
adaedra: Sorry, I didn't mean to imply that I didn't think it was right. I 100% believe what you wrote is exactly what I need. I just prefer wrapping my head fully around anything I use just for the sake of learning.
Mon_Ouie has joined #ruby
Xeago has joined #ruby
bahar has joined #ruby
jackjackdripper has joined #ruby
<Sou|cutter>
that's a good attitude to have!
<adaedra>
MTeck: you didn't get me. I was telling you to tell me/us what you don't understand in the expression, so I/we can explain it.
<MTeck>
ah :)
nettoweb has joined #ruby
Xeago has quit [Remote host closed the connection]
MasterNayru has joined #ruby
<adaedra>
Unfortunately, it's time for me to get away from the keyboard, but other people here will surely be happy to explain you what's happening above if you ask about it.
<MTeck>
To be honest, I don't know what %w is, or how the whole thing expands in ruby logic. I think I just need to read and look at it for a while. I'll ask questions after that. I want to understand the regex one too.
<mordocai>
Hey, i'm getting this when installing ruby 2.2.2/2.2.3 with ruby-build on debian testing. Is this a library version issue? Anyone know? Worked fine a few months ago http://paste.lisp.org/display/163730.
Xeago has quit [Remote host closed the connection]
kirun has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
devbug has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has quit [Ping timeout: 264 seconds]
diego1 is now known as diegoviola
ur5us has joined #ruby
brunto has joined #ruby
roxtrongo has quit [Remote host closed the connection]
TheHodge has quit [Remote host closed the connection]
rflot has quit [Write error: Connection reset by peer]
babblebre has quit [Remote host closed the connection]
spastorino has quit [Remote host closed the connection]
acadavid has quit [Remote host closed the connection]
amitchellbullard has quit [Write error: Connection reset by peer]
AdamMeghji has quit [Remote host closed the connection]
PhilK has quit [Read error: Connection reset by peer]
vayan has quit [Write error: Connection reset by peer]
colstrom has quit [Read error: Connection reset by peer]
Guest4184__ has quit [Remote host closed the connection]
vcoinminer_ has joined #ruby
devbug has joined #ruby
rikkipitt has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Xeago has joined #ruby
justinweiss has joined #ruby
avdi_ has joined #ruby
Mon_Ouie has joined #ruby
jeregrine has joined #ruby
opencard has quit [Quit: Ping timeout: 260 seconds]
jpinnix______ has joined #ruby
gizmore has joined #ruby
bjeanes has joined #ruby
frem has joined #ruby
freerobby has joined #ruby
shaman42 has quit [Ping timeout: 245 seconds]
alxndr has joined #ruby
glowcoil has joined #ruby
jhill has joined #ruby
knowtheory has joined #ruby
dukedave has joined #ruby
mroth has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
schaary has joined #ruby
acadavid has joined #ruby
adambeynon has joined #ruby
ckrailo has joined #ruby
cbetta has joined #ruby
akahn has joined #ruby
hellschreiber_ has joined #ruby
howdoicomputer has quit [Ping timeout: 260 seconds]
podman has joined #ruby
rodfersou has quit [Quit: leaving]
twilling has quit [Quit: twilling]
sankaber has joined #ruby
TheHodge has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
pizzaops has joined #ruby
twilling has joined #ruby
eyes_not has quit [Remote host closed the connection]
Ruby_Rocks_007 has joined #ruby
n1ftyn8_ has joined #ruby
dimik has joined #ruby
mostlybadfly has joined #ruby
howdoicomputer has joined #ruby
othll0 has quit [Ping timeout: 245 seconds]
ht__ has joined #ruby
PhilK has joined #ruby
ELCALOR has joined #ruby
jlyndon has joined #ruby
sleeparrow has quit [Quit: sleeparrow]
otherj has joined #ruby
bryancp has joined #ruby
deimos has joined #ruby
colstrom has joined #ruby
Guest4184__ has joined #ruby
tulak has joined #ruby
charles81 has joined #ruby
halfdan has joined #ruby
bcavileer_ has joined #ruby
HashNuke has joined #ruby
manveru has joined #ruby
vayan has joined #ruby
kellabyte has joined #ruby
shanemcd has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
djbender has joined #ruby
rfv has joined #ruby
amitchellbullard has joined #ruby
ht__ has joined #ruby
diegoaguilar has joined #ruby
skmp has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
ht__ has quit [Client Quit]
nomadicoder has joined #ruby
ht__ has joined #ruby
opencard has joined #ruby
maddmaxx has joined #ruby
diegoaguilar has joined #ruby
cstrahan has joined #ruby
ggherdov has joined #ruby
zrl has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
sigurding has joined #ruby
twilling has quit [Quit: twilling]
Xeago has quit [Remote host closed the connection]
spastorino has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
MiracleBlue_ has joined #ruby
sandstrom has joined #ruby
chrisseaton has joined #ruby
shanemcd has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
yoongkang has joined #ruby
speakingcode has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
<grill>
yo. why would popen3 + rsync hang forever? if i'm trying to capture and print all lines from stdopen?
myztic has joined #ruby
frode15243 has joined #ruby
thang has joined #ruby
nyandoge has joined #ruby
golgaroth has joined #ruby
diegoaguilar has joined #ruby
baweaver has joined #ruby
<grill>
err stdout
jord has joined #ruby
Xeago has joined #ruby
dmoe has joined #ruby
Xeago has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
mikolalysenko has joined #ruby
apipkin has joined #ruby
ramblinpeck has joined #ruby
troter______ has joined #ruby
pfg has joined #ruby
Xeago has joined #ruby
mordocai has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
waynerade has joined #ruby
tonini has joined #ruby
AdamMeghji has joined #ruby
djbkd has quit [Remote host closed the connection]
<grill>
ok. lets try something different. how would i count the number of lines coming out of stdout and then if it's more than 3, return true, else return false?
baweaver has quit [Ping timeout: 245 seconds]
otherj has quit [Quit: .]
AndyBotwin has joined #ruby
AndyBotwin has quit [Changing host]
AndyBotwin has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
shanemcd has joined #ruby
sarkis has quit [Ping timeout: 250 seconds]
desmondhume has quit [Remote host closed the connection]
baweaver has joined #ruby
mjc_ has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
desmondhume has joined #ruby
jevs has joined #ruby
shanemcd has quit [Remote host closed the connection]
ht__ has joined #ruby
weaksauce has joined #ruby
Anderson69s has joined #ruby
opencard has quit [Read error: Connection reset by peer]
waynerade has quit [Ping timeout: 260 seconds]
frankS2 has joined #ruby
sankaber has quit [Remote host closed the connection]
chamby has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
cardoni has joined #ruby
zzak_ has joined #ruby
diegoaguilar has joined #ruby
desmondhume has quit [Ping timeout: 245 seconds]
prestorium_ has joined #ruby
frem has quit []
sarkis has joined #ruby
opencard has joined #ruby
frem has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
thesheff17 has joined #ruby
InvGhostt has joined #ruby
<grill>
lets try something different: why is python better than ruby
beneggett has joined #ruby
h99h9h88 has joined #ruby
lemur has joined #ruby
Yzguy has quit [Quit: Zzz...]
babblebre has joined #ruby
shanemcd has joined #ruby
<apeiros>
grill: trolling is not welcome on this channel.
chamby has quit [Quit: leaving]
<grill>
:)
sigurding has quit [Ping timeout: 245 seconds]
jmcc____ has joined #ruby
InvGhosttt has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
shazaum_ has joined #ruby
diegoaguilar has joined #ruby
rflot has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
InvGhost has quit [Ping timeout: 264 seconds]
B1n4r10 has joined #ruby
kadoppe has joined #ruby
prestorium_ has quit [Quit: Leaving]
Oog has joined #ruby
shazaum_ has quit [Client Quit]
h99h9h88 has quit [Ping timeout: 246 seconds]
opencard has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 250 seconds]
shazaum_ has joined #ruby
shazaum_ has quit [Client Quit]
InvGhostt has quit [Ping timeout: 264 seconds]
sarkis has joined #ruby
shanemcd has quit [Remote host closed the connection]
B1n4r10 has quit [Client Quit]
daxroc has joined #ruby
B1n4r10 has joined #ruby
shanemcd has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
Vivekananda has joined #ruby
djbkd has joined #ruby
sankaber has joined #ruby
zeljkof has joined #ruby
zipkid has joined #ruby
sigurding has joined #ruby
Eleeleth has joined #ruby
roxtrongo has joined #ruby
shanemcd has quit [Remote host closed the connection]
K1MOS has joined #ruby
tejasmanohar has joined #ruby
Xeago has quit [Remote host closed the connection]
K1MOS is now known as moos3
B1n4r10 has quit [Quit: leaving]
norc has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
B1n4r10 has joined #ruby
TheCompWiz has joined #ruby
Xeago has joined #ruby
<TheCompWiz>
is anyone here good at battling Process + IO issues?
<jhass>
?anyone
<ruboto>
Just ask your question, if anyone has or can, they will respond.
deg has left #ruby [#ruby]
shaman42 has joined #ruby
zemmihates has joined #ruby
jxf has joined #ruby
Oog has quit []
<apeiros>
TheCompWiz: I heard anyone is quite bad at programming and thus left for masonry work
yoongkang has quit []
<TheCompWiz>
I've got a fun project that spawns tons of threads... using "Process.spawn" ... that I need to gather the output from... and if the output is too big... the process never completes. I suspect there is some sort of buffering issues using the IO.pipe... and am hoping someone can shed some light on the subject
<apeiros>
TheCompWiz: Process.spawn does not create threads, it creates processes.
howdoi has quit [Quit: Connection closed for inactivity]
<TheCompWiz>
technically since the pgid is still the main ruby thread... it is a thread. it isn't detached.
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
asteros has joined #ruby
asteros has quit [Client Quit]
<eam>
TheCompWiz: no, spawn will create a separate process
symm- has quit [Ping timeout: 245 seconds]
Biohazard has quit [Ping timeout: 260 seconds]
akem has quit [Remote host closed the connection]
shanemcd has joined #ruby
<eam>
TheCompWiz: there's buffering in a pipe pair but that is likely not your issue
<eam>
can you show code?
_djbkd has joined #ruby
<apeiros>
TheCompWiz: threads and processes ain't the same. and if you mean OS level thread, you should be clear about that (but even then you'd be wrong)
Biohazard has joined #ruby
Xeago has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
shanemcd has quit [Remote host closed the connection]
Yzguy has joined #ruby
opencard has joined #ruby
baweaver has joined #ruby
freerobby has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
dotix has quit [Ping timeout: 245 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snowy has quit []
hahuang61 has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 260 seconds]
opencard has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
<Synthead>
is there a variable type that'll allow me to set something like a.b.c = "5" and retrieve it via a.b.c?
bestie has joined #ruby
<Synthead>
like a hash, just using accessors instead of ["x"]
diegoviola has quit [Ping timeout: 260 seconds]
diego1 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
diego1 has quit [Changing host]
diego1 has joined #ruby
ht__ has joined #ruby
<norc>
Synthead: Sure. It is called a class.
jbrhbr has quit [Quit: Leaving.]
<norc>
Or more generally an object.
diego1 is now known as diegoviola
<apeiros>
Synthead: a.b would have to return an object which responds to c
blackmesa has joined #ruby
<apeiros>
or rather, to c= and c
<apeiros>
Synthead: also variables don't have a type (ruby is dynamically typed)
<Synthead>
oh sure, I was thinking a kind of class I could create a variable from
<apeiros>
that's neither what's happening :)
<Synthead>
Hash.new?
<apeiros>
does not "create a variable"
<Synthead>
a = Hash.new
<apeiros>
it creates an object. and you assign that object to a variable
<Synthead>
declares a, right?
devbug has quit [Read error: Connection reset by peer]
NeverDie_ has joined #ruby
<Synthead>
ah, ok
<jhass>
Synthead: google for "recursive openstruct" and then learn why you don't want it
<norc>
Synthead: It creates an instance variable called "a" and assigns the object to it.
<apeiros>
there isn't really declaration in ruby either. you could consider the first assignment a declaration. but IMO that's incorrect.
<norc>
jhass: But I started using openstructs all over my place. They are beautiful. :)
bttf has joined #ruby
<jhass>
and slow
aadam21_ has joined #ruby
<norc>
Bah, we live in the time of gigahertz.
<apeiros>
hm, maybe a more correct case of declaration: when defining a method or block
moos3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
K1MOS has joined #ruby
<norc>
apeiros: Actually I think in this context "declaration" makes sense with methods and variables.
ninegrid has joined #ruby
devbug has joined #ruby
<apeiros>
norc: ^
K1MOS has quit [Client Quit]
<norc>
by stating "a = 1" you are not only creating an instance variable, but you make it known to the parser that "a" is now a variable and not a method.
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Synthead>
jhass: this looks exactly like what I'm looking for. why don't I want it?
<apeiros>
norc: s/instance//
<apeiros>
or s/instance/local/
<norc>
Sorry indeed.
aadam21 has quit [Ping timeout: 260 seconds]
<jhass>
Synthead: read on, you should find an explanation sooner or later
<apeiros>
and the variable doesn't necessarily created *there*
<Synthead>
jhass: that's not very helpful :p
<norc>
apeiros: The relevant bit was about the parser cache though.
<apeiros>
anyway, not interested in arguing semantics. I rather just declare my point. :)
<norc>
Absolutely. :)
<TheCompWiz>
for what its worth... there's the gist. ... if the process output is 60k ... works fine. if the process output is 3m... the process never terminates.
<TheCompWiz>
or rather... it is killed.
<TheCompWiz>
(as per design)
<TheCompWiz>
and yes... I apollogize for everything being named "fork"... just treat "fork" as the PID of the sub-process.
roxtrongo has quit [Remote host closed the connection]
tvon has joined #ruby
cdg has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
jpfuentes2 has quit [Ping timeout: 245 seconds]
moeabdol has joined #ruby
ht__ has joined #ruby
michaeldeol has joined #ruby
konopka has quit [Ping timeout: 260 seconds]
micmagis has joined #ruby
momomomomo has joined #ruby
konopka has joined #ruby
jpfuentes2 has joined #ruby
cbednarski has joined #ruby
weemsledeux has quit [Read error: Connection reset by peer]
<adaedra>
> spoon = fork(); // Real code I've written once.
<TheCompWiz>
lol
waynerade has joined #ruby
<norc>
TheCompWiz: Without seeing the full code it is hard to judge. You could do some kind of profiling to get an idea what might be slowing things down. Or use gdb/strace to figure out where it is supposedly stuck.
rakm has joined #ruby
<diegoviola>
adaedra: there is no spoon
<TheCompWiz>
norc: that is enough of the full code to be fully functional. the command is a basic linux program that you definately won't have on your computer. You can use your imagination... and write a bash script to output the numbers from 1 to 3 million.
<adaedra>
> test.c:2:3: error: use of undeclared identifier 'spoon'
<adaedra>
You're right, diegoviola. `int spoon = fork();` should be better.
<adaedra>
now, for something completely different.
<norc>
TheCompWiz: Yeah, personally I would just attach gdb first thing.
aadam21_ has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
<norc>
Or strace.
aadam21 has joined #ruby
akem has joined #ruby
_djbkd has quit [Remote host closed the connection]
colegatron has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
pragmatism has quit [Ping timeout: 260 seconds]
ht__ has joined #ruby
<norc>
TheCompWiz: 3m lines you say, avg length?
Xeago has joined #ruby
djbkd has joined #ruby
pragmatism has joined #ruby
<TheCompWiz>
could be anywhere from 10k characters to 3m or more.
marr has joined #ruby
asteros has joined #ruby
moei has joined #ruby
moei has joined #ruby
beneggett has quit [Quit: (╯°□°)╯︵ ┻━┻) - keep on keeping on]
I has joined #ruby
symbol has joined #ruby
I is now known as Guest79754
<symbol>
Are priate class methods generally a bad idea? It seems like I need to jump through hoops to get them to work.
<symbol>
Really not a fan of using class << self. It tends to confuse people.
edwinvdgraaf has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
yfeldblum has joined #ruby
<TheCompWiz>
norc I've tried putting a preemptive period read in there hoping to empty the buffer and allow the process to continue... but that did absolutely nothing.
Yzguy has quit [Quit: Zzz...]
heftig has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 260 seconds]
<norc>
symbol: Nope. They are a good thing.
heftig has joined #ruby
lv_ has quit [Ping timeout: 245 seconds]
<symbol>
extend self?
<apeiros>
extend self is an anti-pattern IMO
gguggi has quit [Ping timeout: 260 seconds]
<apeiros>
use module_function instead
<apeiros>
cf. Kernel, Math
bubbys has joined #ruby
Someone_Else has joined #ruby
lv_ has joined #ruby
lacuna has quit [Read error: Network is unreachable]
freerobby has quit [Quit: Leaving.]
<Someone_Else>
I'm trying to implement an old patch in Ruby 2.0.0
lv_ has quit [Client Quit]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<apeiros>
private class methods are fine. see Module#private_class_method
<symbol>
I'm working on a facade type pattern around an external API. It's not really a class but a module is weird.
<norc>
symbol: What I mean is actually using visibility is a good thing.
<Someone_Else>
What is the current equivalent of ruby_eval_tree
<symbol>
Not sure I follow norc
<norc>
Someone_Else: are you looking for Ripper?
sigurding has quit [Quit: sigurding]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
<Someone_Else>
norc: No, I don't even have CD's around here
<norc>
symbol: Like apeiros said, you can define private class method like he described. Restricting visibility to only expose interface methods is a sound thing.
<apeiros>
symbol: "visibility" is the umbrella term for public, protected, private
<norc>
Someone_Else: If for any reason you are interested in the AST a piece of code generates, you can do that with Ripper.sexp or Ripper.sexp_raw. But as I said, since we have a VM a reference to the current AST is meaningless, since that is not what Ruby works on anymore.
jbrhbr has joined #ruby
kriskropd has joined #ruby
al2o3-cr has quit [Ping timeout: 264 seconds]
jondot has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
shanemcd has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<Someone_Else>
norc: I have an issue building 1.8.1: compiling pty, no targets, error, stop
Azure has joined #ruby
<TheCompWiz>
Is there anyone in here who knows something more than a cursory knowledge of the IO class and its relations to the buffer limits?
Yzguy has quit [Quit: Zzz...]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
K1MOS has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
howdoicomputer has joined #ruby
diego1 is now known as diegoviola
al2o3-cr has joined #ruby
<norc>
Someone_Else: Why are you trying so hard to get that code up and running? What is your goal?
<TheCompWiz>
my goal is to spawn a bunch of processes and capture the output...
<norc>
(Before we talk about getting a 6 year old Ruby version running that is already end of life, using features that are long deprecated)
<TheCompWiz>
it's not rocket-science...
<Someone_Else>
TheCompWiz: exactly
<norc>
TheCompWiz: buffer size is probably 64kb
<apeiros>
Someone_Else: no need for sass.
<TheCompWiz>
norc: ok... any suggestions on how to flush the buffer and get the process to resume?
Xeago has quit [Remote host closed the connection]
freerobby has joined #ruby
<TheCompWiz>
I've tried setting up an interrupt every second, and forcing a read on the buffer... but that didn't do anything useful. If there was something to read... it would read the data on the 1st call... but all subsequent reads would return nothing (and also block execution)
<norc>
TheCompWiz: First I would strace properly into the application to verify this.
yqt has quit [Ping timeout: 260 seconds]
<norc>
Which really is what I told you an hour ago. ;-)
aspiers has joined #ruby
toretore has joined #ruby
<TheCompWiz>
which is what I did... and it told me nothing new. execution stops on each process when the buffer gets full, and the code execution sits at the "wait" until the Timeout fires & kills the threads.
<norc>
TheCompWiz: So you verified that this is the case?
<TheCompWiz>
correct.
ta has joined #ruby
<apeiros>
TheCompWiz: you only read after all spoons have finished?
<apeiros>
I think you should set up a Kernel.select loop which continuously reads ready pipes
symbol has quit [Ping timeout: 246 seconds]
<norc>
TheCompWiz: You can use Open3.popen3 probably
<TheCompWiz>
apeiros: all documentation I've read says that the read should only be done after the process has terminated.
<apeiros>
TheCompWiz: documentation of what? pipe?
InvGhosttt has quit [Ping timeout: 250 seconds]
saddad has quit [Ping timeout: 245 seconds]
<apeiros>
also link?
<TheCompWiz>
Process.spawn
<apeiros>
"read after process has terminated" sounds quite wrong. did you see that in ri Process.spawn?
Xeago has joined #ruby
yeticry has joined #ruby
saddad has joined #ruby
saddad has quit [Client Quit]
saddad has joined #ruby
<TheCompWiz>
apeiros: ... honestly... as long as I've been banging my head on this... I honestly don't remember where I read about the "read after termination". ... but it is also in the examples.
<apeiros>
TheCompWiz: I don't see it. and as said, it sounds totally wrong. I seriously doubt that's in there.
<apeiros>
it directly contradicts common philosophy on IPC
baweaver has joined #ruby
<apeiros>
so I'll just reiterate my advice: read ready pipes, using Kernel#select and read_nonblock
<apeiros>
or just read(CHUNK)
<apeiros>
probably actually rather the latter.
<TheCompWiz>
sadly... read_nonblock does block... and/or raises errors. which is funny.
<apeiros>
it raises errors when there's nothing to read - and under conditions where read would also raise
<apeiros>
and "does block"? how do you figure?
yqt has joined #ruby
<apeiros>
(but as said, I'd actually use read(CHUNK), it's quite probably faster, and through select you know there is data to read)
<norc>
apeiros has a good point though. the whole point of pipes is that you can have two concurrent processes using it for communication, which is what you are avoiding by not reading until the processes have terminated.
<TheCompWiz>
apeiros: reading now.
Xeago has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
<apeiros>
norc: not reading the pipes means it just fills the buffers, and usually buffers aren't meant to be *filled*. they should be ephemeral and emptied quickly.
opencard has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 260 seconds]
<apeiros>
also for readability sake I'd probably use Spoon = Struct.new(:read, :write, :pid); spoon = Spoon.new(*IO.pipe); spoon.pid = spawn(…); …
akem has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<apeiros>
(spoon.pid, spoon.read etc. just reads so much nicer - additionally it's quite a bit faster)
matti has quit [Quit: Reconnecting]
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
newdan has joined #ruby
<nofxx>
Thinking a clever way to random colors.... RGB hex in the case. rand(0xFFFFFF).to_s(16).rjust(6, '0')
<adaedra>
looks ok.
<nofxx>
better ideas?
<apeiros>
norc: that'll never generate 0xffffff, though
<jhass>
there are some blogposts with algorithms for generating a "good looking" set of colors, if you care I'd suggest to google for such
<newdan>
If I'm in a method and I have an object and I keep calling a method on it like `my_fun_file.my_fancy_write "Hello"`, but I get tired of all that typing, is there a way to alias that to something shorter, in the scope of one method body? And preferably avoiding the `method_obj.('Hello')` syntax?
<adaedra>
why not 1 << 6, when you're at it, norc
<norc>
1 << 24 you mean
<norc>
but yeah
<adaedra>
Derp.
<apeiros>
newdan: get a decent editor.
<apeiros>
seriously, "it's too much to type" is a f'ing stupid reason for this kind of indirection.
<norc>
newdan: Learn to type faster.
<newdan>
apeiros: Don't even start, I'm using spacemacs
<mfqr>
Spacemacs?
<newdan>
Emacs distribution with vim keybindings and, I dunno, in space I guess
s2013 has joined #ruby
<norc>
newdan: Doesn't it have some kind of magical autocomplete thing?
* mfqr
goes back to his show.
<norc>
auto-completion or something?
<newdan>
norc: It does. I can make it appear without typing but it still feels verbose
saddad has quit [Ping timeout: 260 seconds]
<norc>
newdan: You should feel lucky you are not doing corporate Java development.
<nofxx>
great thank you guys, adaedra , apeiros
<newdan>
I should've suspected an IRC room would tell me to learn how to type or get a new editor rather than actually answer my question in any way
<newdan>
Thanks all
<apeiros>
nofxx: oh, lol, I thought norc had asked
<apeiros>
?guys nofxx <- though, this ;-)
<ruboto>
nofxx, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<nofxx>
Cool... also, cops suggest #format over #%
blarghlarghl has joined #ruby
<apeiros>
that's one thing I beat out of cops
gusTester has quit [Quit: Leaving.]
<norc>
Here goes the cops hunting again.
s2013 has quit [Read error: Connection reset by peer]
<apeiros>
not hunting. beating. it's useful once it has sane config ;-p
<Someone_Else>
norc: Managed to compile 1.8.1 w/ the given patch
<norc>
cops is sweet for refactoring these " into ' - but thats about it. :D
<nofxx>
apeiros, guess because its a from C thing
<apeiros>
though I'd still love a whitelist functionality, like "yes, line 1241 is over 100 chars, but it's fine, don't tell me again"
<blarghlarghl>
Hi. Is there a way to capture rspec output from a rake task when invoking the task via Rake::Task[task].invoke ? I'd like to capture the documentation output to a variable and print it all at the end in one go, rather than have it "build up" as it does. I tried redirecting $stdout, but no luck.
<apeiros>
nofxx: that'd be sprintf
<norc>
apeiros: I recommend upgrading your 19 inch screen if you adhere to 80 lines consistently.
<ninegrid>
I dunno, I'm kind of offended by being called folksy, and 'all' is too inclusive and doesn't acknowledge my individuality
<apeiros>
nofxx: which is actually what I prefer :D
sepp2k has quit [Quit: Leaving.]
<nofxx>
apeiros, yup... in other words: foreign for the non C programmer
<zenspider>
blarghlarghl: "no luck" is not descriptive
<apeiros>
norc: 80 *lines*? you sure have short classes, sir (or mam);-p
InvGhost has joined #ruby
<apeiros>
nofxx: format is just as foreign
<norc>
Oh well.
<blarghlarghl>
zenspider: "no luck" as in, it completely ignores the fact that I am redirecting $stdout and keeps on doing what it normally does.
h99h9h88 has joined #ruby
<zenspider>
blarghlarghl: have you tried standard error?
<apeiros>
!kick ninegrid we're not interested. if you want to be inconsiderate, be that somewhere else.
ninegrid was kicked from #ruby by ruboto [we're not interested. if you want to be inconsiderate, be that somewhere else.]
<norc>
apeiros: Wasn't so hard. s/\n/;/ sorts all your rubocop warnings about long methods.
<blarghlarghl>
zenspider: This time round, no, but I did last time. (This is an old problem I'm coming back to.) Let me confirm that it doesn't work and get back to you in 2 minutes.
<zenspider>
blarghlarghl: are you redirecting at the shell level, or trying to do it w/in ruby?
stannard_ has quit [Remote host closed the connection]
ninegrid has joined #ruby
<norc>
apeiros: It gives you this warm feeling of happiness when you know you improved your code quite a bit, now that rubocop is no longer complaining about THAT.
stannard has joined #ruby
<blarghlarghl>
zenspider: within ruby, as in redirecting $stdout = StringIO.new, run the block, then $stdout = STDOUT to restore things to sanity.
<blarghlarghl>
zenspider: (that is, all of that with relevant local variables to be able to assign/reassign and print later, but this is the general method I'm using.)
yfeldblum has quit [Remote host closed the connection]
<nofxx>
apeiros, ops... agreed. I tought it was String#format, it's ... main#format .... core? kernel?
yfeldblum has joined #ruby
<apeiros>
nofxx: Kernel
<apeiros>
nofxx: all pseudo-functions are in Kernel
<zenspider>
blarghlarghl: you shouldn't assume that rspec (or minitest) uses $stdout to output
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
<Papierkorb>
zenspider: may not be ideal for you, but you can also run the specs in their own process and then not fiddle with $stderr and friends
<blarghlarghl>
zenspider stderr also no luck.
<jbrhbr>
how come there is no .to_bool?
<zenspider>
blarghlarghl: `rake &> output.txt` is a much cleaner way
<blarghlarghl>
zenspider: Yeah. That's kinda why I'm here :)
<nofxx>
apeiros, thanks.... very functional for... ruby heheh
<zenspider>
jbrhbr: why should there be? everything is truthy or falsey
<blarghlarghl>
zenspider, Ah, no, that's not an option for us - can't really shell out.
<Papierkorb>
jbrhbr: ruby doesn't have a Boolean class.
h99h9h88 has quit [Ping timeout: 260 seconds]
gf3 has quit [Ping timeout: 260 seconds]
<jbrhbr>
there's TrueClass and FalseClass. i'm surprised they don't inherit from BooleanClass
<zenspider>
blarghlarghl: how do you write a test that verifies its output if rspec actively uses $stdout to print its output at the same time?
skade has quit [Read error: Connection reset by peer]
ninegrid has left #ruby [#ruby]
<nofxx>
jbrhbr, yeah... what confuses a lil is that ODM/ORM create the Boolean. AR or mongoid for instance
<Papierkorb>
jbrhbr: what is .to_bool supposed to do, and on which class?
<blarghlarghl>
Papierkorb: I'm the one with the issue - saw your message. I am running them in my own process - everything inside a fork. But not its own process the way you mean probably.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blarghlarghl>
zenspider: Right. That makes sense - I see why rspec is doing things that way.
<zenspider>
blarghlarghl: "can't shell out"? you run your tests. there's probably a shell SOMEHERE
skade has joined #ruby
<jbrhbr>
Papierkorb: logic consistent with the application of ruby's truthiness, so !!v basically
<Papierkorb>
blarghlarghl: yeah I'd do `bundle exec rspec` or something
devbug has joined #ruby
<jbrhbr>
zenspider: it's a fair question i suppose and i don't have a good answer
Lions has joined #ruby
<jbrhbr>
'data clealiness' is the best i can come up with
peterhil_ has joined #ruby
<blarghlarghl>
zenspider: Oh, it's not a case of technically can't. We can. It's just that there's a _lot_ of environment setup that happens before the test task gets called which would get lost if we shell out.
<jbrhbr>
if you're persisting some value and you want to constrain it to boolean, it's nice if it's actually false rather than nil
gf3 has joined #ruby
<Papierkorb>
jbrhbr: in theory, it's just: class Object; def to_b; !!self; end; end
<jbrhbr>
Papierkorb: exactly
<Papierkorb>
jbrhbr: I'm not sure if that's a good idea, but when considering active support .. nobody cares I guess
<blarghlarghl>
zenspider: I guess if there's no sane way of redirecting RSpec's in-ruby output, then I'll have to figure out a way to move the env setup behind the shell-out.
<blarghlarghl>
zenspider: but that's very subideal.
<jbrhbr>
Papierkorb: it's more consistent is all, since there's .to_whatever for all of the other cases
<jbrhbr>
rather than requiring someone to write !! in one case
edwinvdgraaf has joined #ruby
<Papierkorb>
jbrhbr: sure, and as even stuff like json or yaml patch themselves (in Rails) into any object ..
dotix has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
edwinvdgraaf has joined #ruby
<NightMonkey>
Howdy. Dumb SysAdmin here. How do I get 'ri' to show me information about methods available to 'self'?
waynerade has quit [Remote host closed the connection]
<apeiros>
NightMonkey: you need to figure out what self is first
<apeiros>
self.class
<NightMonkey>
Ex: 'ri self.clone'
<NightMonkey>
Oh!
<apeiros>
but clone is inherited from Object, so Object#clone:
<apeiros>
and `class` is an instance method, so in documentation, it is referred to as Object#class (instance method 'class' of class 'Object')
<NightMonkey>
Sorry! I meant "#". Also "Object::class" comes up empty.
Lions has left #ruby [#ruby]
<apeiros>
yupp, because it's an instance method ;-)
<apeiros>
if you're not sure, use .
<NightMonkey>
apeiros: Ah, weird. Perhaps some of my docs are missing...
<apeiros>
in documentation, Object.class is "either instance or class method" (IMO a bad choice, but that's how it is)
<apeiros>
NightMonkey: hm, usually either *all* core docs are missing, or none
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
NightMonkey: does `ri Array` say "Unknown xxx" too?
troyready has joined #ruby
<NightMonkey>
apeiros: Well, you helped me answer this question - thank you!
<apeiros>
yw
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
NightMonkey: if above says "nothing known" (or similar) too, then it means you don't have core docs installed. depending on your distro, you have to install another package.
<NightMonkey>
apeiros: I'm using rvm, fwiw.
newdan has quit [Quit: Lost terminal]
<NightMonkey>
With ruby-2.2.1.
<norc>
Though here is a question: Why is this not working?
<NightMonkey>
apeiros: You are solving more than I asked for. I like it. :)
<apeiros>
NightMonkey: also, use pry and install pry-doc. pry is like irb, but slightly better. then you can do `? self.class` and it'll show you the docs.
<NightMonkey>
Oh!
* NightMonkey
dissolves into a puddle of happiness.
<Papierkorb>
"slightly better" Oô;
<apeiros>
`$ self.class` will show you its source code (doesn't work for native C methods of extensions)
duncannz has joined #ruby
<apeiros>
Papierkorb: up to you to define how large "slightly" is ;-)
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdg_ has joined #ruby
DurstBurger has quit [Ping timeout: 245 seconds]
<blarghlarghl>
why has no one ever told me about pry?
<blarghlarghl>
man
<blarghlarghl>
thanks apeiros
<NightMonkey>
apeiros: I am a huuuge fan of anything that extends tab-completion. :)
<apeiros>
blarghlarghl: the brochures have been in the office for months!
<yxhuvud>
blargh: you have lived under a rock?
<NightMonkey>
I am now mostly a "Tab Completion Engineer".
<jbrhbr>
pry has its issues still from what i've seen
<jbrhbr>
i want to try out the ruby notebook thing
xet7 has joined #ruby
<norc>
apeiros: You probably know this. Then I fiddle around in Ruby causing an access violation, the linux kernel will just seng SEGV to the offending process right?
<blarghlarghl>
apeiros: :D
<Papierkorb>
blarghlarghl: try raising anything, and then ask pry what you ask yourself: wtf?!?!?
<Papierkorb>
I'm not kidding. do it.
<apeiros>
f'ing trump! (not the idiot, the gamer) - why can he brawl and I can't?!?
<blarghlarghl>
Papierkorb: Beautiful.
<blarghlarghl>
Papierkorb: I like the progression when adding more and more ?!'s
<apeiros>
ugh. blizzard. y u so bad at math? 20.00 -> 0.00 is NOT 20h
<Papierkorb>
blarghlarghl: show-code Foo#bar shows the code, but I like edit Foo#bar better
karapetyan has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
<apeiros>
show-code = $ btw.
* apeiros
too lazy to type show-code
peterhil_ has quit [Ping timeout: 250 seconds]
<Papierkorb>
was always annoying to type that. thanks.
maloik has quit [Ping timeout: 245 seconds]
<apeiros>
I quite dislike the `wtf?!?!?!?!` mechanic of pry, though
baweaver has joined #ruby
<shevy>
hah
<Papierkorb>
blarghlarghl: require 'pry' in your project, and then call "binding.pry" anywhere to get into a pry shell. try 'ls' to list everything `self` can see directly. et cetera
<blarghlarghl>
apeiros: it's a bit cutesy. i can see why it'd be annoying.
<Papierkorb>
apeiros: there's always cat --ex
<blarghlarghl>
Papierkorb: pry(main)> show-code Array#first # => SyntaxError: unexpected tCONSTANT, expecting keyword_do or '{' or '('
<blarghlarghl>
Papierkorb: Am I being dumb? I'm being dumb, right?
* adaedra
waves goodbye
spider-mario has quit [Remote host closed the connection]
<al2o3-cr>
should be show-source
<blarghlarghl>
Ah.
<blarghlarghl>
Yep, that'll do it. Thanks :)
lukeasrodgers has quit [Quit: Leaving.]
ivanskie has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
<Papierkorb>
blarghlarghl: Pry also parses documentation by itself for pretty printing. no need to have a yard server running: show-doc YourOwn#method
<norc>
Seriously, why can I longjmp out of segmentation fault caused by an actual access violation, but not from one triggered by SEGV manually
Kyuujitsu has joined #ruby
<blarghlarghl>
Papierkorb: thank you :)
sepp2k has joined #ruby
woven has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
axl_ has quit [Quit: axl_]
karapetyan has joined #ruby
[spoiler] has quit [Ping timeout: 264 seconds]
drPoggs has quit [Ping timeout: 264 seconds]
leslie_ has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
Voker57 has joined #ruby
Voker57 has quit [Changing host]
Voker57 has joined #ruby
paradisaeidae has quit [Ping timeout: 250 seconds]
kaspergrubbe has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
lucas has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
tekacs has joined #ruby
JoL1hAHN has joined #ruby
asteros has quit [Quit: asteros]
<Papierkorb>
blarghlarghl: one last thing, there's also the 'pry-rails' gem for rails integration, which replaces irb for rails console. you can then also call binding.pry in your controllers et al, the console will show in the terminal where you started the server (Though better_errors is also good)
drPoggs has joined #ruby
[spoiler] has joined #ruby
araujo has quit [Ping timeout: 245 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
wldcordeiro has quit [Ping timeout: 260 seconds]
<blarghlarghl>
Papierkorb: that's neat too - though we aren't a Rails shop. :)
cfloare has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
theery has quit []
araujo has joined #ruby
myztic has quit [Quit: leaving]
RegulationD has quit [Remote host closed the connection]
Porfa has joined #ruby
<Porfa>
hello! :)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Papierkorb>
hi
brunto has quit [Ping timeout: 260 seconds]
sarkis has quit [Ping timeout: 245 seconds]
whippythellama has quit [Quit: WeeChat 1.3]
<shevy>
Porfa is back to haunt #ruby again yay
roxtrongo has joined #ruby
Balzrael has quit [Quit: Leaving]
peterhil_ has joined #ruby
<Porfa>
shevy: hahah :) im just hanging out, unfortunally for you of course :p
bronson has quit [Remote host closed the connection]
<Porfa>
i haven’t been coding, been learning other things, i miss having the change to be just on ruby
myztic has joined #ruby
woven has quit [Quit: Leaving]
hobodave has quit [Ping timeout: 260 seconds]
myztic has quit [Client Quit]
sarkis has joined #ruby
<ivanskie>
sinisterchipmunk are you around?
myztic has joined #ruby
<ivanskie>
guess not
solocshaw has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Kyuujitsu has quit [Quit: leaving]
alvaro_o has quit [Quit: Ex-Chat]
ur5us has quit [Remote host closed the connection]
kirun has quit [Remote host closed the connection]
unreal_ has quit [Ping timeout: 260 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
aspiers has quit [Ping timeout: 246 seconds]
last_staff has quit [Remote host closed the connection]
Porfa has quit [Read error: Connection reset by peer]
finisherr_ has joined #ruby
finisherr has quit [Ping timeout: 260 seconds]
finisherr has joined #ruby
finisherr_ has quit [Ping timeout: 245 seconds]
paradisaeidae has joined #ruby
sfmk has joined #ruby
amincd has joined #ruby
Hobbyboy has quit [Ping timeout: 264 seconds]
atmosx_ has joined #ruby
Bish has quit [Ping timeout: 245 seconds]
<amincd>
what does this do: str[regex, fixnum]?
evil_shibe has left #ruby [#ruby]
heftig has quit [Remote host closed the connection]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
Diabolik has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
ethe has joined #ruby
contradictioned has joined #ruby
alindeman has joined #ruby
heftig has joined #ruby
kalleth has joined #ruby
Bish has joined #ruby
finisherr has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
<ethe>
What is the difference between = and << ?
finisherr_ has joined #ruby
<amincd>
how do I match the two Ls in "HELLO" using the str[regex, fixnum] syntax?
danielpclark has joined #ruby
<amincd>
what does the fixnum argument do?
diego2 has joined #ruby
Hobbyboy has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
devbug has quit [Read error: Connection reset by peer]
<havenwood>
amincd: str[regexp, capture] → new_str or nil