<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.