centipedefarmer has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
centipedefarmer has joined #ruby
ValicekB has joined #ruby
<crucify_me>
If you have a frozen object 'string' and do these two operations: string += 'plus a fresh attachment' and string << 'plus a fresh attachment', += will alter the object but << will not. why is that?
cjsarette has joined #ruby
benwoody has joined #ruby
_justin has quit [Ping timeout: 240 seconds]
<crucify_me>
sorry if this is a repeat of yesterday's debacle
<shevy>
crucify_me no, += is a new object, not "will alter the object"
jamto11_ has quit [Ping timeout: 255 seconds]
razrunelord has quit [Ping timeout: 246 seconds]
<crucify_me>
yes shevy thanks I have been using object_id to see what's what, but the only why to access the original object is to reassign like string_2 = string. So there you can see the original object id . But what string points to is something new, which means *that* was altered. or else I'm missing something very basic.
_justin has joined #ruby
<shevy>
I am not sure whether your sentence was finished.
<shevy>
.freeze is fairly useless from what I can see
<crucify_me>
yeah I added that to the example for any possible clue.
skysploit has joined #ruby
<shevy>
well that kept a pointer to your original object
marcdel_ has quit []
maletor has quit [Quit: Computer has gone to sleep.]
<crucify_me>
so the original pointer, string, is now pointing to another object, and disassociated with 'Original string - ' altogether.
skysploit has quit [Remote host closed the connection]
<shevy>
well it still refers to the old object
<shevy>
but you no longer can easily reference to it, because you overwrite string variable
djbkd has joined #ruby
vpretzel|1211 has quit [Ping timeout: 250 seconds]
<shevy>
I think you can somehow obtain it still through ObjectSpace
<shevy>
possibly through it's id - well actually... I guess that id will be unique anyway, so the variable name should not be of any importance
<crucify_me>
that is interesting. so is it like somewhere is object_id 1 + object_id 2 ?
<shevy>
string =ObjectSpace._id2ref(OLD_ID_HERE)
mikeg has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
<shevy>
should restore it I suppose
<shevy>
no
<shevy>
who is telling you these things crucify_me
newUser1234 has quit [Remote host closed the connection]
seuros has quit [Quit: Leaving.]
<crucify_me>
no one I am inquisitive and would like to see why the assignment principles are so counter-intuitive
<shevy>
crucify_me I think your brain still does not quite want to accept the += line
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
<shevy>
why is it not intuitive
Kricir has quit [Remote host closed the connection]
nanoyak has joined #ruby
binaryhat has joined #ruby
<crucify_me>
well it's simple : string points to an object that is 'frozen'. then an operation does something to that object that clearly changes it, and then suddenly string is pointing to a different object with a different signature.
<shevy>
whenever you create a new object, if it does not have a static ID, it must obtain a new id
<shevy>
crucify_me you need to mistrust your brain, it currently leads you the wrong direction :)
<crucify_me>
you wrote this earlier : x = 'foo'.freeze; x += ''; x << 'yo' ..so that bit will let x << 'yo' be appended to x
<shevy>
sure
<shevy>
but x is not x
<shevy>
when will you accept that
<crucify_me>
yeah
djbkd has quit [Remote host closed the connection]
endash has quit [Client Quit]
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crucify_me>
It's not about accepting shevy
<shevy>
you explained it twice before
<shevy>
twice you described it incorrectly
newUser1234 has joined #ruby
<crucify_me>
well that other example is sinking in, but x = 'foo'.freeze; x += ''; x << 'yo' I don't understand
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf>
holy shit
<shevy>
but that is the same as the other example
<benzrf>
i went to #javascript for help
end_guy has quit [Ping timeout: 272 seconds]
<benzrf>
tried to explain fibers to somebody
dawkirst has quit [Ping timeout: 255 seconds]
<benzrf>
they thought i was wrong, told me so
<benzrf>
i told them i'd used them
<benzrf>
they informed me that they knew i was full of shit cuz invalid reasons
<shevy>
man
<benzrf>
then i got kinda pissed at them
<shevy>
I'd wish I would have been there
tacos1de has quit [Ping timeout: 272 seconds]
<benzrf>
and they ignored me
<shevy>
hahaha
<benzrf>
*/ignored me
<benzrf>
at least i think they did
<shevy>
HAHAHA
<benzrf>
somebody minaswan me ;-;
mansi has quit [Ping timeout: 240 seconds]
<shevy>
benzrf perhaps they were right
<benzrf>
n-no
<benzrf>
they claimed that green threads and fibers are basically the same thing
<benzrf>
and i told them that they bear little similarity
<shevy>
have you been banned from ##javascript?
Kricir has joined #ruby
<benzrf>
and they told me i was wrong
<benzrf>
shevy: no
soheil has quit [Remote host closed the connection]
<benzrf>
right now i am a little riled up
<benzrf>
good lord thats a bad community
<shevy>
oh well
tacos1de has joined #ruby
lethjakman has quit [Ping timeout: 276 seconds]
<shevy>
they won, you gave up :(
<shevy>
benzrf, no worries, javascript will grow
<benzrf>
BIADASWAD
jjbohn has quit [Quit: Leaving...]
<crucify_me>
oh x += '' just creates a string and appends it to 'foo', an empty string into which can be appended ?
hermanmunster has quit [Remote host closed the connection]
momigi has quit [Remote host closed the connection]
yubrew has joined #ruby
<crucify_me>
into which yo can be appended *
mjsmith2 has joined #ruby
<shevy>
benzrf can you explain to crucify_me how += works?
<benzrf>
crucify_me: foo += bar => foo = foo + bar
ephemerian has left #ruby [#ruby]
<crucify_me>
chrissakes
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has quit [Quit: saarinen]
bigkevmcd has quit [Ping timeout: 252 seconds]
cjsarette has joined #ruby
<crucify_me>
benzrf: this is an example where foo is initially frozen.
<shevy>
benzrf ok make the complex more complex please
<crucify_me>
or so I thought
benwoody has joined #ruby
<shevy>
benzrf bar must be '' and foo must be frozen
hermanmunster has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
benwoody has quit [Client Quit]
nanoyak has joined #ruby
kevinykchan has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
SegFaultAX has quit [Excess Flood]
<crucify_me>
shevy: but is it true the x+= '' is a kind of concatenation like => 'foo' + '' << 'bar'
<shevy>
somewhat
bigkevmcd has joined #ruby
agarie_ has joined #ruby
<crucify_me>
hmm ok thanks
<shevy>
<< is faster
arubin has joined #ruby
agarie has quit [Read error: Connection reset by peer]
aspires has quit []
<wallerdev>
<< can be dangerous too
SegFaultAX has joined #ruby
danshultz has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
alpha123 has joined #ruby
<RubyPanther>
Worse, they might do totally different things.
supermarin has quit [Ping timeout: 240 seconds]
<crucify_me>
x = 'foo'.freeze; x += ''; x << 'yo' this is not easy for me. I don't precisely see what is frozen and what is modified.
Azzurrio has joined #ruby
enebo has joined #ruby
<shevy>
can someone explain it to crucify_me please
<RubyPanther>
crucify_me: the string you created first was frozen, but then thrown away after creating a new string with '' appended
<wallerdev>
clearly
<wallerdev>
lol
<RubyPanther>
str1 + str2 is a new string
<wallerdev>
strings really should just be immutable
<crucify_me>
ok, what sort of use of this would be common?
<RubyPanther>
Just use Java instead if you want that sort of thing, and you're there
jamto11_ has joined #ruby
<RubyPanther>
the whole idea of making something immutable by force is anti-Ruby
jamto11 has quit [Remote host closed the connection]
kitak has joined #ruby
<shevy>
crucify_me what do you mean, what sort of use? I don't know why you want to .freeze - why do you want to freeze?
<RubyPanther>
Instead, you just replace methods like + on your NotEasilyMutatedString class
oo_ has joined #ruby
<alpha123>
I like Ruby's mutability a lot. I've tried both highly mutable languages and highly immutable ones, and I think mutable is more fun. :)
<wallerdev>
idk i just think of strings as such a basic data type, like if i send a string to a method i dont expect it to get changed, and i feel like that happens on accident sometimes because of mutable strings
end_guy has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<wallerdev>
just personal preference though
<alpha123>
Why aren't numbers in Ruby mutable? :P
<benzrf>
alpha123: jesus christ how horrifying
<alpha123>
hehe
<RubyPanther>
Ruby is more interesting than any of our opinions.
<shevy>
alpha123 because ruby would be slower
cjsarette has joined #ruby
michaeldeol has joined #ruby
<crucify_me>
RubyPanther: !!
<RubyPanther>
alpha123: Because they're C ints
<alpha123>
shevy: As if that were ever a concern.
<alpha123>
:P
<shevy>
alpha123 yep it was a design decision to make them not mutable
<RubyPanther>
And "numbers" might be mutable, but Fixnums aren't
<alpha123>
I figured the reason strings are mutable is because it makes sense to change them, i.e. they're a list of characters
<RubyPanther>
Anything that inherits from Numeric should be considered a number
<alpha123>
What would mutating a number even look like?
<crucify_me>
shevy: it began when I was reading about deep_clone.
<wallerdev>
x = 5; x.subtract(2)
funburn has joined #ruby
<alpha123>
Eh, fair enough
<alpha123>
What I do actually wish was that code was mutable in Ruby.
michaeldeol has quit [Client Quit]
sailias has joined #ruby
<alpha123>
And scope. I wish scope was mutable.
n0n3 has quit []
<shevy>
RubyPanther what numbers are mutable?
freerobby has joined #ruby
<alpha123>
(Well it sort of is, but... more mutable)
<RubyPanther>
You can monkey all that
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy>
alpha123, this would be possible:
<RubyPanther>
shevy: I didn't say they are, I said they could be.
<alpha123>
And over pretty much does the equivalent of `var b = copy(a); b[x] = fn(b[x]); return b`?
hamakn has quit [Remote host closed the connection]
<benzrf>
over (_mob . _1) (+10) someMob
<alpha123>
(except it does it totally differently of course)
<benzrf>
alpha123: ish
<benzrf>
:p
nari has quit [Ping timeout: 240 seconds]
<alpha123>
OK, what does it mean to compose a lens? How would that even work? It's like composing array indexes or hash keys in my understanding so far
thomasxie has left #ruby [#ruby]
<benzrf>
alpha123: the fun REALLY starts when you add prisms & traversals & isos
<benzrf>
09:54 < benzrf> over (_mob . _1) (+10) someMob
<benzrf>
oh wait
<benzrf>
over (_pos . _1) (+10) someMob
senayar_ has quit [Ping timeout: 276 seconds]
<benzrf>
^move 10 to the right!
<alpha123>
benzrf: Ah that makes more sense
<mordof>
my brain hurts
chipotle has joined #ruby
armyriad has joined #ruby
<mordof>
too much haskell, lol
<benzrf>
alpha123: a prism is not quite like a lens
<benzrf>
rather then focusing on a part, a prism is more like an unwrapper
<benzrf>
a prism either matches, or doesn'y
<benzrf>
*doesn't
<alpha123>
This is simple enough even for me so far. :P It's just emulating common OO stuff in a bizarrely confining language. =P
chipotle has quit [Client Quit]
<benzrf>
and it is revertible
<benzrf>
it really isn't
no6 has quit [Ping timeout: 255 seconds]
<benzrf>
it just looks like it at first
benwoody has joined #ruby
<benzrf>
;_
<benzrf>
* ;)
arubin is now known as arrubin
<benzrf>
one example of a prism is _Left
<alpha123>
I find Haskell pretty neat looking but 1) too mathematical and 2) too confining for me (I like Ruby, Lua, and Io, remember? :P )
danshultz has joined #ruby
<benzrf>
confining? rly?
<benzrf>
pfft
teejar has joined #ruby
chipotle has joined #ruby
<alpha123>
I'm sure it's *not* actually confining, but it *feels* that way
<benzrf>
i am a big fan of Io too
<benzrf>
you just need to acclimate
<benzrf>
it feels confining because you're doing things wrong
<benzrf>
if you try to FP in lua, it will feel confining
<alpha123>
Actually FP in Lua feels nice enough.
<benzrf>
w/e :P
supermarin has joined #ruby
<benzrf>
alpha123: prisms tho
<benzrf>
alpha123: are you familiar with Either
<alpha123>
benzrf: Are prisms a bit like pattern matching on objects?
<alpha123>
(that's sort of how I'm taking it)
<benzrf>
sort of.
end_guy has quit [Remote host closed the connection]
<benzrf>
alpha123: Either
<benzrf>
do u know it
<alpha123>
Either?
tyll has quit [Read error: Connection reset by peer]
<benzrf>
data Either a b = Left a | Right b
end_guy has joined #ruby
<alpha123>
Is that like Maybe except with with two possible values?
kitak has quit [Read error: Connection reset by peer]
<alpha123>
ah, okay
<benzrf>
yea
<benzrf>
commonly used for errors
<alpha123>
Makes sense.
<benzrf>
the Either monad used with do-notation is like exceptions
subbyyy_ has quit [Ping timeout: 246 seconds]
kitak has joined #ruby
<alpha123>
Ugh, all this is making me want to like Haskell again. :P
<benzrf>
kk
tyll has joined #ruby
<benzrf>
_Left is an example of a prism
krz has joined #ruby
<benzrf>
1. it may or may not matchaw_
<benzrf>
*match
<benzrf>
2. it is revertible
<benzrf>
so _1 cannot be a prism, because you cannot revert it
<alpha123>
hm
<benzrf>
viewing with _1 loses info
<benzrf>
viewing with a prism /does not/
<alpha123>
o_O
<benzrf>
i.e.
<benzrf>
view _left (Left 3)
pen has joined #ruby
<benzrf>
=> Just 3
<benzrf>
view _Left (Right 3)
<benzrf>
=> Nothing
<benzrf>
in the former example, i've lost no datafirm
<benzrf>
*data
<alpha123>
OK, that does make sense, but how's it revertable?
<benzrf>
if i know i viewed with _Left, i can put it back how it was
<alpha123>
Oh yeah... cool
<benzrf>
if i know i viewed with _1, i cannot
<benzrf>
who knows what _2 was?
benwoody has quit [Quit: benwoody]
<alpha123>
benzrf, you are quite talented at explaining this, thank you.
<benzrf>
:-)
momigi has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
<benzrf>
oh wait p:
<benzrf>
not view
<benzrf>
view is for lenses
<benzrf>
you use /preview/ with prisms
<benzrf>
view works on prisms but it gives worrying results
<benzrf>
anyway
<benzrf>
you can use review to go back
<alpha123>
I still don't really like Haskell (I find it so... unnecessarily hard... to structure my data to move around properly since everything is immutable), but it is *cool*.
<benzrf>
;)
x77686d has quit [Quit: x77686d]
<benzrf>
now
<alpha123>
Heh, lenses actually make quite a bit of sense now. I feel enlightened. xP
<benzrf>
fun things to do with prisms
<benzrf>
parsing
<benzrf>
for example
<benzrf>
if you have a string
<alpha123>
Oh yeah, could you do lookahead parsing with those pretty easily?
<benzrf>
you can prism it into a json data
<benzrf>
preview _parseJSON "{\"foo\": 3}"
binaryhat has quit [Quit: Leaving]
<benzrf>
1. it has potential failure
<benzrf>
2. it can be reverted
<mordof>
i think this channel has the highest amount of off-topic conversations that drag on than most other programming channels i idle in
<benzrf>
mordof: :P
<benzrf>
alpha123: incidentally, Parsec is amazingly excellent to use
<benzrf>
turns out, monads/applicatives/functors are perfect for parsing
<alpha123>
mordof: I think you're right, but they're certainly interesting.
<alpha123>
benzrf: I like writing my parser by hand in JavaScript :P
<benzrf>
anyway, the real REAL fun starts when you compose lenses with prisms
<alpha123>
Oh boy....
<benzrf>
but then you start getting realllllllllllllllllllllllllllly weird types
<benzrf>
i dont really know lenses that well myself
<alpha123>
My specific case does pass an arg, but eh... yeah, I find a lot of `call`s disrupt the flow of the code a bit, since really procs should just be called like any other method
<alpha123>
s/any other/a/
<benzrf>
alpha123: u wot
<benzrf>
alpha123: that is a fully functional lisp parser in 30 lines
<mordof>
should make a language where the entire thing just looks like people dancing around and doing other things (flipping tables, etc)
ixti has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
<mordof>
instead of single-line evaluation, it requires that all instructions be given 4 lines at a time to allow for proper ascii art. whitespace is important (spaces only, no tabs)
<mordof>
lol xD
<mordof>
worst-language-ever
x77686d has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
<mordof>
new lines would be a picture of a rabbit at the end of the sequence.
jamto11 has joined #ruby
razrunelord has quit [Ping timeout: 246 seconds]
zcreative has joined #ruby
kleing has quit [Remote host closed the connection]
kleing has joined #ruby
radic has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Remote host closed the connection]
virtualize has joined #ruby
sparrovv has joined #ruby
cjsarette has joined #ruby
radic has joined #ruby
<benzrf>
alpha123: the key to haskell is to not think in terms of mutation
<mordof>
heh, back to that
<benzrf>
model your problem as functions
<benzrf>
not as changes
kleing has quit [Ping timeout: 240 seconds]
<benzrf>
otherwise u are just fighting the lang
<alpha123>
benzrf: See, I just don't think that way. :/
predator217 has quit [Ping timeout: 252 seconds]
<RubyPanther>
Never fight haskell. Either think of everything as functions, or switch to Ruby.
<alpha123>
RubyPanther: I switched to Ruby :P
sparrovv has quit [Ping timeout: 240 seconds]
<alpha123>
I kinda went Common Lisp -> Haskell -> Ruby. Though I use JavaScript 80% of the time anyway.
<benzrf>
alpha123: neither did i at first
<benzrf>
it takes time :P
<benzrf>
still not totally used to it
<benzrf>
but by writing a bunch i can at least feel at ease
<benzrf>
the issue is not that your brain isnt wired that Wayneoween
<benzrf>
*way
<benzrf>
the issue is that you aren't trying hard enough to rewire it
<benzrf>
:P
<RubyPanther>
that is like trying to be "used to" BASIC. You can do it, but it only proves the brain damage has occurred.
<alpha123>
I'm just not sure it's worth that much time to learn. I'm a web designer, not really a backend programmer (I do some backend stuff (in Ruby) because I work for a tiny company, but I'm not a backend guy)
<helpa>
instantaphex: Pastebin sucks because it loads slowly, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org).
* instantaphex
saddles up like a badass
kevinykchan has quit [Read error: Connection reset by peer]
omosoj has joined #ruby
<instantaphex>
noted
kevinykchan has joined #ruby
<Radar>
p.s. it's also in the rules
<Radar>
!rule3
<helpa>
Clearly explain what is happening and create a Gist (http://gist.github.com) or Pastie (http://pastie.org) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces. A "Full Trace" as opposed to the default "Application Trace" is preferred. NO FAKE CODE. If you're under an NDA, we cannot help you with your problem. Go hire a consultant.
<Radar>
!rule4
<helpa>
Do not use any service that is not Pastie or Gist to post code. Pastebin, for example has a tiny font and it has ads on it which cause the page to load slowly. Other paste services generally look like crap.
robbyoconnor has quit [Ping timeout: 252 seconds]
<instantaphex>
interesting
<Jnco>
!rule1
maletor has quit [Quit: Computer has gone to sleep.]
<instantaphex>
a bit nit picky but I suppose rules are rules
rippa has joined #ruby
havenwood has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
yacks has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
bricker`1A has joined #ruby
ner0x has joined #ruby
locriani_ has quit [Ping timeout: 240 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Ping timeout: 255 seconds]
bricker`1A has quit [Client Quit]
phinfonet has quit []
armyriad has joined #ruby
linojon has quit [Quit: linojon]
brucelee_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Kryptonical has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ValicekB has quit [Ping timeout: 245 seconds]
Jon30 has quit [Ping timeout: 255 seconds]
Arkaniad has quit [Remote host closed the connection]
yubrew has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
HashNuke has joined #ruby
bruno- has joined #ruby
mlapp30m has joined #ruby
noop has quit [Ping timeout: 265 seconds]
centipedefarmer has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
mlapp30m has quit [Remote host closed the connection]
bruno- has joined #ruby
centipedefarmer has quit [Ping timeout: 252 seconds]
ValicekB has joined #ruby
SCommette has joined #ruby
ekinmur has quit [Client Quit]
ktosiek has joined #ruby
_pingu has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
omosoj has quit [Quit: Leaving]
carraroj has joined #ruby
Senjai has quit [Quit: WeeChat 0.3.7]
meatherly has quit [Remote host closed the connection]
Senjai`work has joined #ruby
Senjai`work has joined #ruby
Senjai`work has quit [Changing host]
<_pingu>
Backspace and arrow keys aren't working in IRB(Git Bash console) on windows I have readline 0.5.1 installed, but the problem is still there. irb --noreadline does work, but then I have no autocompletion...
<Guest62991>
its "require 'thread' no such file to load -- thread (LoadError)" issue
relix has joined #ruby
bruno- has joined #ruby
renier has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
<Hanmac1>
Guest62991: you are using ruby1.8 ... its support died already
Hanmac1 is now known as Hanmac
Synthead has joined #ruby
meatherly has joined #ruby
carraroj has quit [Ping timeout: 265 seconds]
_justin has joined #ruby
<Guest62991>
Hanmac: yes, using 1.8 need it for some reason
fgo has quit [Remote host closed the connection]
<Guest62991>
some OpenVZ client depends on this..
<Hanmac>
for what? building stone cylces?
jamto11 has quit [Ping timeout: 255 seconds]
coderhs has joined #ruby
razrunelord has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
<Guest62991>
Hanmac: Please help me with 1.8, its endless debate to use 1.9
meatherl_ has joined #ruby
coderhs has quit [Remote host closed the connection]
<Guest62991>
Hanmac: Since its out of my wish, I can't do anything much
<Guest62991>
so please help fixing this, in the way it is.
oo_ has quit [Remote host closed the connection]
<Hanmac>
where didyou get 1.8 ruby from ? did you build it yourself or does it come with an outdated operatingsystem?
<Guest62991>
Hanmac: basically 'require thread' fails.. to be honest, I manually deleted few ruby folders which messed up system and landed me in this situation
<Guest62991>
on CentOs6 it comes with yum install ..
<Guest62991>
may be outdated sources on CentOS
<Hanmac>
like "i removed a few wheels, now my car does not drive any more"
coderhs has joined #ruby
datafirm has quit [Quit: datafirm]
coderhs has quit [Client Quit]
<Guest62991>
So, can you help putting wheels back.. its engineering, we can break it and build it..
<Hanmac>
use yum to remove your ruby, and then install it again with yum ... might fix your problem
<Guest62991>
it just get some more work.. and at end its rewarding leaening the experience
<Guest62991>
with yum, did yum reinstall, did yum remove and yum install...tried those options
<Guest62991>
building 1.8 from source will help?
razrunelord has quit [Ping timeout: 250 seconds]
<Guest62991>
BTW ruby is okay, its gems which are broken..
meatherl_ has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
noop has joined #ruby
<Guest62991>
if i say "ruby -v", it return 1.8
Avahey_ has quit [Quit: Connection closed for inactivity]
alexju has quit [Remote host closed the connection]
<Guest62991>
and as I shared the link, it breaks at "require threads"
oo_ has joined #ruby
<Hanmac>
how do you know that gem is broken?
<Guest62991>
https://dpaste.de/OvGD#L1,3 if I see /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11, line 11 is "require thread"
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dubler>
has anybody used hired.com before? I was only able to get 2/5 questions... got stuck on the third... wondering whether or not my application will get denied 'cause of that, lol :\
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
lkba has joined #ruby
sparrovv has quit []
<shevy>
Vyrus001 you have to use methods if you want to expose the content of @ivars to other classes; in your example you could then instantiate the outer class inside of your second class
<Vyrus001>
ic
<Vyrus001>
thanks for the direction
supermarin has quit [Remote host closed the connection]
brucelee_ has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
cjsarette has joined #ruby
timonv has quit [Remote host closed the connection]
yubrew has joined #ruby
alem0lars has quit [Quit: Going AFK...]
oo_ has quit [Remote host closed the connection]
atmosx has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
oo_ has joined #ruby
sk87 has joined #ruby
sski has joined #ruby
mr_snowf1ake has joined #ruby
timonv has joined #ruby
crzrcn has joined #ruby
jottr has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
timgauthier has joined #ruby
jonno11 has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
crzrcn has quit [Ping timeout: 240 seconds]
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
jokke has joined #ruby
canton7-mac has joined #ruby
subraminion_ has joined #ruby
charliesome has joined #ruby
thomasxie has joined #ruby
subraminion has quit [Ping timeout: 250 seconds]
kilk_ has quit [Quit: Leaving]
phoo1234567 has joined #ruby
ce_afk is now known as cescalante
jottr has quit [Ping timeout: 276 seconds]
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
popl has quit [Quit: Touch the frog.]
mcrmfc has joined #ruby
wm3|busy has quit [Ping timeout: 252 seconds]
Vyrus001 has left #ruby [#ruby]
kilk_ has joined #ruby
ixti has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Milly_Bays has joined #ruby
elmatador has joined #ruby
<elmatador>
ciao
<elmatador>
!list
cescalante is now known as ce_afk
elmatador has left #ruby [#ruby]
ixti has quit [Ping timeout: 252 seconds]
fixme has joined #ruby
bruno- has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
marahin_ is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ccooke_ is now known as ccooke
nvrch has quit [Quit: nvrch]
mercwithamouth has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
Port3M5 has joined #ruby
nvrch has joined #ruby
agarie_ has quit [Read error: Connection reset by peer]
agarie has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
Port3M5[Work] has quit [Ping timeout: 276 seconds]
virtualize has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
_justin has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<timgauthier>
oh hi
robbyoconnor has quit [Ping timeout: 240 seconds]
meatherl_ has joined #ruby
subraminion_ has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 240 seconds]
zoraj has joined #ruby
meatherl_ has quit [Ping timeout: 240 seconds]
subraminion_ has joined #ruby
gischy_ is now known as gischy
subraminion_ has quit [Remote host closed the connection]
coderhs has joined #ruby
subraminion_ has joined #ruby
robbyoconnor has joined #ruby
supermarin has joined #ruby
whowantstolivefo has joined #ruby
gener1c has joined #ruby
<gener1c>
what lib is most used for application configuration?
sski has quit [Remote host closed the connection]
<gener1c>
configatron?
yubrew has joined #ruby
sski has joined #ruby
sensen has quit [Quit: leaving]
nvrch has quit [Quit: nvrch]
AntelopeSalad_ is now known as AntelopeSalad
anarang has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 250 seconds]
<apeiros>
yaml
phoo1234567 has joined #ruby
crystal77 has joined #ruby
timgauthier has quit [Read error: No route to host]
zigomir has joined #ruby
nari has joined #ruby
timgauthier has joined #ruby
cibs has quit [Quit: leaving]
kitak has quit [Remote host closed the connection]
ixti has joined #ruby
qba73 has joined #ruby
charliesome has joined #ruby
bruno- has quit [Quit: leaving]
dawkirst has quit [Quit: Leaving...]
carraroj has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fixme1 has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
Aaaal has joined #ruby
fixme has quit [Ping timeout: 255 seconds]
tacos1de has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 240 seconds]
Port3M5 has quit [Ping timeout: 252 seconds]
tacos1de has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
crzrcn has joined #ruby
phutchins has joined #ruby
fixme1 has quit [Ping timeout: 245 seconds]
wm3|busy has joined #ruby
anarang has quit [Ping timeout: 245 seconds]
ktun has joined #ruby
eka has joined #ruby
albertgrala has joined #ruby
marr has quit []
crzrcn has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
thomasxie has left #ruby [#ruby]
ce_afk is now known as cescalante
ndrei has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
albertgrala has quit [Quit: Leaving]
Port3M5 has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
joaoh82 has joined #ruby
twiceaday has joined #ruby
joaoh82 has quit [Client Quit]
anarang has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
anarang has quit [Client Quit]
Soda has joined #ruby
JasmeetQA has joined #ruby
twiceday has quit [Ping timeout: 246 seconds]
anarang has joined #ruby
alem0lars has joined #ruby
JasmeetQA has quit [Client Quit]
kevinykchan has quit [Read error: Connection reset by peer]
RaptorJesus has quit [Remote host closed the connection]
kevinykchan has joined #ruby
cescalante is now known as ce_afk
centipedefarmer has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
supermarin has quit [Remote host closed the connection]
supermarin has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
centipedefarmer has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
cpruitt has joined #ruby
parduse has quit [Ping timeout: 252 seconds]
supermar_ has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
narcan has joined #ruby
subraminion_ has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
subraminion_ has joined #ruby
yfeldblum has joined #ruby
cpruitt has quit [Client Quit]
meatherly has joined #ruby
yalue has joined #ruby
cgj__ has quit [Quit: leaving]
Aaaal has quit [Quit: Aaaal]
_justin has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
seaned has joined #ruby
brucelee_ has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
parduse has joined #ruby
endash has joined #ruby
greenarrow has quit [Quit: 500]
jamto11 has joined #ruby
DouweM has joined #ruby
jonno11 has joined #ruby
Aaaal has joined #ruby
wm3|busy is now known as wm3|away
supermar_ has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 276 seconds]
brucelee_ has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
spyderman4g63 has joined #ruby
oddmunds has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centipedefarmer has joined #ruby
ktun has joined #ruby
nomenkun has joined #ruby
greenarrow has joined #ruby
aspiringflaneur has quit [Ping timeout: 240 seconds]
yalue has quit [Ping timeout: 252 seconds]
tjsousa has joined #ruby
danshultz has joined #ruby
sdouglas has joined #ruby
osvico has joined #ruby
tango2014 has joined #ruby
tango2014 has quit [Remote host closed the connection]
subraminion_ has quit [Quit: Computer has gone to sleep.]
tango2014 has joined #ruby
spider-mario has quit [Ping timeout: 245 seconds]
coderhs has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
carraroj has quit [Ping timeout: 250 seconds]
subraminion_ has joined #ruby
stormbytes has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vallieres_ has joined #ruby
brian___ has joined #ruby
tango2014 has quit [Ping timeout: 240 seconds]
franzip has joined #ruby
iamvery has joined #ruby
crzrcn has joined #ruby
anarang has quit [Quit: Leaving]
AlexRussia has quit [Ping timeout: 246 seconds]
yalue has joined #ruby
AlexRussia has joined #ruby
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
crzrcn has quit [Ping timeout: 276 seconds]
subraminion_ has quit [Client Quit]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton has joined #ruby
rebelshrug has joined #ruby
yacks has quit [Ping timeout: 276 seconds]
bthesorceror has quit [Remote host closed the connection]
subraminion_ has joined #ruby
bthesorceror has joined #ruby
ce_afk is now known as cescalante
supermarin has joined #ruby
Kneferilis has joined #ruby
endash has quit [Quit: endash]
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
Firebox has left #ruby [#ruby]
User458764 is now known as User458764_NotHe
moritzs has joined #ruby
iamvery has quit [Quit: Leaving...]
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ClarusCogitatio has joined #ruby
freezey has joined #ruby
User458764 has joined #ruby
bthesorceror has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
mark_locklear has joined #ruby
Alina-malina has joined #ruby
iamvery has joined #ruby
sambao21 has joined #ruby
spider-mario has quit [Client Quit]
osvico has quit [Ping timeout: 252 seconds]
nvrch has joined #ruby
spider-mario has joined #ruby
simono has joined #ruby
relix has joined #ruby
cescalante is now known as ce_afk
enebo has joined #ruby
<michael_mbp>
ymm
<michael_mbp>
hmm
centipedefarmer has quit [Remote host closed the connection]
<michael_mbp>
how can I interpolate '*' 10 times into a string?
jjbohn has joined #ruby
<michael_mbp>
so I get '*....' 10 times, without \n's ?
<michael_mbp>
array < '*' & join ?
linojon has joined #ruby
<michael_mbp>
*<<
jonno11 has joined #ruby
<crome>
'*' * 10
nateberkopec has joined #ruby
SubSignal has joined #ruby
<michael_mbp>
puts Array.new.tap{|a| 80.times { a << '*' }}.join
monkegjinni has quit [Remote host closed the connection]
wm3|away has joined #ruby
wm3|away is now known as workmad3
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
dblessing has joined #ruby
zipace has joined #ruby
centipedefarmer has joined #ruby
jamto11 has quit [Remote host closed the connection]
jonno11 has joined #ruby
karupa is now known as zz_karupa
crzrcn has joined #ruby
Sarco has joined #ruby
mercerist has joined #ruby
ldnunes has quit [Quit: Leaving]
mercerist has quit [Client Quit]
mercerist has joined #ruby
jonno11 has quit [Client Quit]
y_gick has left #ruby ["WeeChat 0.4.3"]
troyronda has quit [Remote host closed the connection]
doodlehaus has joined #ruby
lxsameer has quit [Quit: Leaving]
supermarin has quit [Remote host closed the connection]
crzrcn has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
GoodTimes has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
osvico has joined #ruby
sailias has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
supermar_ has joined #ruby
mrmargolis has joined #ruby
shock_one has joined #ruby
supermarin has quit [Ping timeout: 245 seconds]
supermar_ has quit [Remote host closed the connection]
yacks has joined #ruby
simono has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
ce_afk is now known as cescalante
ndrei has quit [Ping timeout: 276 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<shwouchk>
Hello
<shwouchk>
There is a syntax in ruby for 'do x if y'
zz_karupa is now known as karupa
<shwouchk>
is there a syntax for an else at the end?
olivier_bK has quit [Ping timeout: 246 seconds]
blueOxigen has quit [Ping timeout: 276 seconds]
troessner has joined #ruby
cocotton_ has joined #ruby
momomomomo has joined #ruby
ldnunes has joined #ruby
mjs2600 has joined #ruby
<Burgestrand>
shwouchk: if you were to decide how it would look, what would it look like?
s00pcan has joined #ruby
<shwouchk>
Burgestrand: I'm no language designer. I guess I would design it from familiarity with python.
<Burgestrand>
schaary|afk: there is `x unless y`, and `if y then x else z end`
<Burgestrand>
Woups. :)
carraroj has joined #ruby
<Burgestrand>
shwouchk: ^
cocotton has quit [Ping timeout: 276 seconds]
<timgauthier>
shevy
<timgauthier>
BackEndCoder
qba73 has quit []
<timgauthier>
p8952
<timgauthier>
PING!
monkegjinni has joined #ruby
<Burgestrand>
shwouchk: but no, ruby does not have `x if y else z`
cocotton_ has quit [Ping timeout: 276 seconds]
cocotton has joined #ruby
cescalante is now known as ce_afk
arietis has joined #ruby
jespada has joined #ruby
<shwouchk>
Burgestrand: yeah, I knew about the other synaces
yubrew has joined #ruby
<BackEndCoder>
timgauthier, do one
snooc has joined #ruby
<BackEndCoder>
you ingreatful little fuck
<timgauthier>
haha
monkegjinni has quit [Remote host closed the connection]
<workmad3>
am I the only one who was more disturbed by the mis-spelling of 'ungrateful' there, rather than the agression? :)
ndrei has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
no, i thought that it was part of the aggression
andrewjanssen has joined #ruby
mansi has joined #ruby
endash has joined #ruby
roadie has quit [Ping timeout: 246 seconds]
instantaphex has joined #ruby
olivier_bK has joined #ruby
monkegjinni has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<shwouchk>
I thought it was another form of the adjective
subraminion_ has quit [Ping timeout: 252 seconds]
<shwouchk>
Burgestrand: thanks
pu22l3r has joined #ruby
paulfm has joined #ruby
<Burgestrand>
shwouchk: you’re welcome. :)
Nukepuppy has joined #ruby
jamto11 has joined #ruby
<shwouchk>
I ended up with ternary
ixti has joined #ruby
yfeldblum has joined #ruby
<Burgestrand>
Hah, I had forgotten ruby even had those.
momigi_ has quit [Remote host closed the connection]
<Burgestrand>
Uhm. Didn’t mean to sound smug. You learn something new every day, sometimes it’s stuff you had forgotten. :)
_justin has joined #ruby
tango2014 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
chipotle has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
_justin has quit [Client Quit]
brucelee_ has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
cocotton has quit [Remote host closed the connection]
andrewlio1 has quit [Quit: Leaving.]
danman_ has joined #ruby
mr_snowf1ake has quit [Ping timeout: 250 seconds]
jamto11 has joined #ruby
tango2014 has quit [Ping timeout: 240 seconds]
connor_g1odwolf is now known as connor_goodwolf
tango2014 has joined #ruby
cocotton has joined #ruby
diegoviola has joined #ruby
troyronda has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cocotton has quit [Remote host closed the connection]
brucelee_ has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
<shwouchk>
Burgestrand: :)
`MArceLL` has quit [Ping timeout: 246 seconds]
<shwouchk>
Burgestrand: is there a convenient way to look up docs for methods? I see that they are embedded in the code (for a certain gem I'm looking at)
<shwouchk>
but it seems I can't get to them from irb
osvico has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
<Burgestrand>
shwouchk: ruby doesn’t have the equivalent that python has, most of the time the documentation is rendered into HTML somewhere to view it from
<Burgestrand>
shwouchk: additionally, if you look the gem up on https://rubygems.org/ many authors include a link to the documentation from the gem page
jonno11 has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
FenixFyreX has joined #ruby
arubincloud has joined #ruby
alexju has joined #ruby
troyronda has quit [Ping timeout: 240 seconds]
<shwouchk>
Burgestrand: I see
<shwouchk>
Burgestrand: very unfortunate :(
<shwouchk>
since the docs are in the code anyhow
<Burgestrand>
shwouchk: sometimes!
FenixFyreX has quit [Client Quit]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<shwouchk>
Burgestrand: well, sometimes people don't write any docs at all! I wouldn't expect to see the docs in that case :)
<shwouchk>
Burgestrand: as it stands I can't even see the method signature
<shwouchk>
apparently
FenixFyreX has joined #ruby
_maes_ has joined #ruby
<Burgestrand>
shwouchk: indeed, I use pry a lot, so if I find a method I wonder about I tend to look it up through inside pry
mjsmith2 has joined #ruby
<shwouchk>
Burgestrand: alright, I'm not against pry
<shwouchk>
how do I look up the doc/signature there?
brian___ has quit [Quit: brian___]
<Burgestrand>
shwouchk: I suppose it could be a language feature like in python. It would probably be useful.
<ericwood>
binding.pry in rails literally saved my life more than once
andrewjanssen has quit [Client Quit]
<ericwood>
I AM NOT DEAD BECAUSE OF PRY
claymore has quit [Remote host closed the connection]
ctp has joined #ruby
freerobby has joined #ruby
claymore has joined #ruby
jamto11_ has joined #ruby
Alina-malina has quit [Quit: Leaving]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
ericwood: until you leave it in production :-p
Alina-malina has joined #ruby
<ericwood>
lol
<apeiros>
once
<apeiros>
since then we've a guard :D
try has joined #ruby
<apeiros>
(simply something akin to class Binding; def pry; warn "YOU EEEEEDIOT!"; end; end if Rails.env.production?)
monkegjinni has quit [Remote host closed the connection]
flops has quit [Quit: leaving]
snooc has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Quit: Burgestrand]
sdouglas has quit [Ping timeout: 240 seconds]
<ericwood>
lol
baweaver has joined #ruby
shaileshg has joined #ruby
<shaileshg>
I have to download xlsx file using ruby and store it in the directory.. file size is 50 MB+
diegoviola has quit [Remote host closed the connection]
jamto11_ has quit [Ping timeout: 245 seconds]
<shaileshg>
how should I go about it?
jtdowney has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
NovapaX has joined #ruby
michaelpjohnson has joined #ruby
diegoviola has joined #ruby
zachallett has joined #ruby
baweaver has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
snooc has joined #ruby
crzrcn has joined #ruby
<GoodTimes>
Created a scaffold in rails, messed up. Already Raked db. How do i go back to an earlier git version where everything i did(including db) gets deleted?
<GoodTimes>
Noob question :)
<gizmore>
GoodTimes: you can revert migrations
<ericwood>
bundle exec rake db:rollback
lmickh has joined #ruby
<ericwood>
if you want to go back a step and you haven't committed yo changes do "git reset --hard HEAD"
arietis has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Read error: Connection reset by peer]
<GoodTimes>
havent done yet
freerobby has joined #ruby
<ericwood>
revert is pretty great if you've pushed up the change yet, it creates a new commit that undoes everything
<ericwood>
reset is what you want if you haven't pushed up the change yet
crzrcn has quit [Ping timeout: 276 seconds]
<shaileshg>
workmad3: thanks
<shaileshg>
shwouchk: you too :)
<shwouchk>
np
zachallett has quit []
monkegjinni has quit [Ping timeout: 240 seconds]
dik_dak has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Ping timeout: 245 seconds]
rostam has quit [Remote host closed the connection]
mercerist has joined #ruby
zachallett has joined #ruby
doodlehaus has quit []
kilk_ has joined #ruby
ce_afk is now known as cescalante
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
klaut has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
<shwouchk>
If i have a method that accepts x,y,&block, how would call it, supplying all three?
sk87 has joined #ruby
rostam has joined #ruby
yubrew has joined #ruby
ktun has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<instantaphex>
object.method(x, y, block)
<GoodTimes>
ericwood: So "git revert numberingitlog" removes EVERYTHING i have done? And makes the app work exactly like it did when i committed the git i revert to? Already did db:rollback. I am sorry for stupid questions. But i am just about to launch my first app ever that i have worked on a lot and i am so afraid to fuck up now :P
mary5030 has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<shwouchk>
instantaphex: this doesn't work. Perhaps I do not understand the docs
dangerousdave has quit [Read error: Connection reset by peer]
it_tard has quit [Quit: yawn]
<shwouchk>
instantaphex: (in pry): Signature: discover!(?, ?, &block)
jjbohn has quit [Quit: Leaving...]
<shwouchk>
does that not mean the method takes two optional parameters and a block?
momigi has joined #ruby
cjsarette has joined #ruby
<instantaphex>
what block are you passing it?
<instantaphex>
object.method(x,y) do |stuff|
cocotton has joined #ruby
<instantaphex>
then put your block
jobewan has joined #ruby
cocotton has quit [Remote host closed the connection]
<instantaphex>
then end
yubrew has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
<shwouchk>
instantaphex: perhaps my block syntax is not correct then :)
cpruitt has quit [Quit: cpruitt]
graud has joined #ruby
<shwouchk>
ih
<instantaphex>
you can store the block in a variable and pass the variable in with &
cescalante is now known as ce_afk
<graud>
hi, i have an initialize method with some flexible initialization, who does the user specify they want to use the default value?
<instantaphex>
callback = lambda do |stuff, more_stuff| { .... }
<instantaphex>
object.method(x, y, &callback)
tkuchiki has quit [Ping timeout: 255 seconds]
m_3 has quit [Remote host closed the connection]
<shaileshg>
shwouchk: will it download directly to the disk or load it in ram?
ffranz has joined #ruby
<shwouchk>
instantaphex: your call didn't work either
<shwouchk>
instantaphex: It complains that I'm using 2 parameters instead of 0
<shwouchk>
shaileshg: wget is a utility program on *nix systems that downloads the file at the address given to the current directory
<shaileshg>
shwouchk: hmm
fgo has joined #ruby
greenride has joined #ruby
<shwouchk>
instantaphex: btw, is {|x| ... } equivalent to do |x| ... end
<shwouchk>
?
<FenixFyreX>
yes
<enebo>
shwouchk: yes. syntactically one has more precedence if you are nesting it in a clusterfuck of syntax
<shwouchk>
heh
<FenixFyreX>
I do believe that do..end is much better for a multiline block, right?
<enebo>
but it is not behaviorally different
<ericwood>
GoodTimes: it makes everything go back to the point you gave it
eka has joined #ruby
<enebo>
FenixFyreX: yeah do/end for multiline generally and {} for single line generally
dstynchula has joined #ruby
dstynchula has quit [Remote host closed the connection]
ldnunes has joined #ruby
devyn_ has quit [Ping timeout: 240 seconds]
shock_one has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 240 seconds]
DouweM has joined #ruby
rudisimo has joined #ruby
iamvery has left #ruby [#ruby]
Xiti has joined #ruby
arietis has joined #ruby
yfeldblum has joined #ruby
Xiti` has quit [Ping timeout: 252 seconds]
ValicekB has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
cpruitt has joined #ruby
freezey has joined #ruby
tkuchiki has joined #ruby
Cache_Money has joined #ruby
Xiti has quit [Client Quit]
St_Marx has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 250 seconds]
lkba has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
lkba has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
mcrmfc has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
mercerist has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 252 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
m_3 has joined #ruby
<shwouchk>
instantaphex: in that case, your suggestion didn't work
Sarco has left #ruby ["Leaving"]
mark_locklear has quit [Ping timeout: 252 seconds]
<instantaphex>
huh?
<instantaphex>
what kind of block is it expecting?
ValicekB has joined #ruby
noop has quit [Ping timeout: 250 seconds]
<shwouchk>
I figured it out
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
<instantaphex>
shwouchk, what was the solution?
<shwouchk>
it appears the problem was that it was expecting keyword parameters
<shwouchk>
not positional
akgerber has joined #ruby
jackneill has quit [Ping timeout: 276 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<the_f0ster>
anyone know the gem that checks my working directory for a Gemfile so I don't have to type bundle exec constantly ?
St_Marx has quit [Read error: Connection reset by peer]
St_Marx has joined #ruby
vpretzel|retrooo is now known as vpretzel|WA-star
sambao21 has joined #ruby
vpretzel|WA-star is now known as vpretzel|WA-aste
benzrf is now known as benzrf|offline
snath has quit [Ping timeout: 252 seconds]
<FenixFyreX>
Would it be intuitive to treat sqlite3 databases like a hash? For example, db['table_name_users'][id: 0, name: 'Bob']
Megtastique has joined #ruby
<FenixFyreX>
I am beginning to write a wrapper, but I'm trying to think of any counter productiveness to result from something like this
sdouglas has joined #ruby
tkuchiki has quit [Remote host closed the connection]
jamto11_ has joined #ruby
<canton7>
tbh I think that'll start falling over when people want slightly more complex queries
tkuchiki has joined #ruby
pskosinski has joined #ruby
maletor has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
<FenixFyreX>
True, I just hate having query strings everywhere in my code...seems unorganized.
<canton7>
Sequel ?
crystal77 has joined #ruby
<canton7>
then you have objects and method calls, which is much nicer
<FenixFyreX>
Oh, didn't even know that existed. Thanks.
<pskosinski>
and much slower in many cases
<canton7>
also, DataMapper, ActiveRecord, and probably some other ORMs
dnordstrom has quit [Quit: dnordstrom]
<canton7>
yeah, but not by enough to make you care most of the time
dnordstrom has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
BWStearns has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
jamto11_ has quit [Ping timeout: 276 seconds]
x77686d has joined #ruby
vlad_starkov has joined #ruby
cjsarette has joined #ruby
enebo has quit [Quit: enebo]
crzrcn has joined #ruby
SubSignal has quit [Remote host closed the connection]
mven has joined #ruby
jenskarlsen has quit [Ping timeout: 240 seconds]
jeregrine has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
Senjai has quit [Ping timeout: 252 seconds]
virtualize has quit [Quit: Leaving...]
mg^afk is now known as mg^
LexicalScope has quit [Ping timeout: 245 seconds]
olivier_bK has joined #ruby
klaut has quit [Ping timeout: 240 seconds]
BizarreCake has joined #ruby
yubrew has joined #ruby
zz_jrhorn424 is now known as jrhorn424
virtualize has joined #ruby
klaut has joined #ruby
bthesorceror has quit [Remote host closed the connection]
ce_afk is now known as cescalante
mjs2600 has quit [Remote host closed the connection]
kitak has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
bthesorceror has joined #ruby
Senjai has joined #ruby
professor_soap has joined #ruby
<professor_soap>
Hey
<flughafen>
hody professor_soap
<flughafen>
howdy*
geggam has joined #ruby
jjbohn has joined #ruby
jjbohn has quit [Remote host closed the connection]
jjbohn has joined #ruby
<professor_soap>
Im trying to build a very simple ruby chat application, p2p, just text, no audio, no video.
SilkFox has quit [Ping timeout: 252 seconds]
troyronda has joined #ruby
<professor_soap>
Any tips for some library I could use for the connecting of peers? I have no idea how to do this btw, sort of a learn by doing project.
<crome>
ruby gives you the socket library
<professor_soap>
hmm ok
<crome>
technically its all you need. if you want to do it from the ground up
<instantaphex>
^ the socket library is pretty simple to use
<workmad3>
professor_soap: for a learning exercise, you could use Socket in a naive manner and just have a socket open to each other participant
aniM has joined #ruby
<workmad3>
professor_soap: and then to 'send' a message, you just send it over all open sockets :)
bthesorceror has quit [Ping timeout: 245 seconds]
<professor_soap>
right.. great! Im looking into this :)
tkuchiki has joined #ruby
Virtualize|away has joined #ruby
freezey has quit [Remote host closed the connection]
simono has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
<canton7-mac>
there's also EventMachine is you're looking for something more complex. If you're doing it for fun, I'd recommend using raw sockets, though
kiri_ has quit [Remote host closed the connection]
<professor_soap>
canton7-mac: maybe later as the project matures and I have understood the basics of programming with sockets, I can look into the more complex solutions. Thx
<professor_soap>
Nice...
<FenixFyreX>
I'm assuming it's using one socket instead of multiple due to multicasting...I could be assuming wrong though
bluOxigen has joined #ruby
fgo has joined #ruby
VTLob has joined #ruby
mark_locklear has joined #ruby
MacTrash has quit [Quit: This computer has gone to sleep]
Es0teric has quit [Quit: Computer has gone to sleep.]
mjs2600 has joined #ruby
no6 has quit [Quit: leaving]
centrx has joined #ruby
chrisseaton has joined #ruby
Hobogrammer has joined #ruby
michaeldeol has joined #ruby
banister has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
kevind has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
banister_ has quit [Ping timeout: 252 seconds]
agarie has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
yfeldblum has joined #ruby
agarie has joined #ruby
tkuchiki has joined #ruby
jackneill has joined #ruby
obscured has joined #ruby
imkmf has joined #ruby
vpretzel|WA-aste is now known as vpretzel
benzrf|offline is now known as benzrf
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has joined #ruby
binaryhat has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 276 seconds]
snath has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
heftig has quit [Quit: Quitting]
toastynerd has joined #ruby
bthesorceror has joined #ruby
sdouglas has joined #ruby
razrunelord has joined #ruby
hamakn has quit [Remote host closed the connection]
IceDragon has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
xiq has joined #ruby
enebo has joined #ruby
s3ri0us has joined #ruby
stormbytes has joined #ruby
toastyne_ has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
nomenkun has quit [Quit: Leaving...]
razrunelord has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
b00stfr3ak has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
Virtualize|away has quit [Quit: Leaving...]
nvrch has quit [Quit: nvrch]
freezey has quit [Remote host closed the connection]
akgerber_ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
jjbohn has joined #ruby
crystal77 has joined #ruby
sepp2k has quit [Remote host closed the connection]
SilkFox has joined #ruby
akgerber has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
mjs2600 has quit [Remote host closed the connection]
goleldar has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
rayners has joined #ruby
jjbohn_ has joined #ruby
jjbohn_ has quit [Client Quit]
St_Marx has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
pskosinski has joined #ruby
mercwithamouth has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
zoraj has quit [Remote host closed the connection]
xiq has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
lethjakman has joined #ruby
wallerdev has joined #ruby
Es0teric has joined #ruby
_maes_ has joined #ruby
vlad_starkov has quit [Read error: No route to host]
mansi has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
<voidfire>
eh
cjsarette has quit [Ping timeout: 252 seconds]
St_Marx has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
instantaphex has quit [Quit: leaving]
fwtt has joined #ruby
maestrojed has joined #ruby
djbkd has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
phinfonet has joined #ruby
klaut_ has joined #ruby
charliesome has joined #ruby
FL1SK has joined #ruby
n0n3 has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 276 seconds]
Morkel_ is now known as Morkel
cocotton has quit [Remote host closed the connection]
maletor has joined #ruby
klaut has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
datafirm has joined #ruby
pleasehelp has joined #ruby
marcdel has joined #ruby
razrunelord has joined #ruby
crzrcn has joined #ruby
<pleasehelp>
Hey everyone, this is off topic but I have a friend who is in a bind and needs quite a bit of folks to take a quick survey. Anyone that is willing to help is welcome to do so :). https://www.surveymonkey.com/s/2NCS3MN
yubrew has joined #ruby
pleasehelp has left #ruby [#ruby]
FL1SK has quit [Read error: Connection reset by peer]
razrunelord has quit [Remote host closed the connection]
FL1SK has joined #ruby
havenwood has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
razrunelord has joined #ruby
Megtastique has quit []
aspiers has quit [Quit: WeeChat 0.4.2]
ascarter has joined #ruby
redondos has quit [Excess Flood]
cocotton has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
cocotton has quit [Remote host closed the connection]
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
cocotton has joined #ruby
Vivekananda has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
crzrcn has quit [Ping timeout: 250 seconds]
larissa has joined #ruby
yubrew has quit [Ping timeout: 250 seconds]
marcdel has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
mikecmpbll has joined #ruby
tjsousa_ has joined #ruby
michaelpjohnson has quit [Quit: Leaving]
crystal77 has quit [Quit: Computer has gone to sleep.]
Milly_Bays has quit [Ping timeout: 245 seconds]
deric_skibotn has joined #ruby
ce_afk is now known as cescalante
Soda has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
tjsousa has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
binaryhat has quit [Quit: Leaving]
mojo619 has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mikeg has joined #ruby
n0n3 has quit []
binaryhat has joined #ruby
xiq has joined #ruby
ahuman_ is now known as ahumane
mattmcclure has joined #ruby
benzrf is now known as benzrf|offline
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
Milly_Bays has joined #ruby
ndrei has joined #ruby
snkcld has quit [Disconnected by services]
snkcld_ is now known as snkcld
carlyle has joined #ruby
tjsousa_ has quit [Quit: Computer has gone to sleep.]
<apeiros>
gizmore: use irb or pry for experiments.
i42n has left #ruby [#ruby]
<apeiros>
this channel isn't your lab. thanks.
davedev2_ has quit []
davedev24 has joined #ruby
<gizmore>
apeiros: it was to demonstrate newbies how cool ruby is, but you are right, sry
ClarusCogitatio has joined #ruby
greenarrow has quit [Quit: 500]
x77686d has joined #ruby
<apeiros>
so you were just like "I'm sure there are noobies here right now so I'll paste some random code in here without any comment and they'll go 'coool!'"?
greenarrow has joined #ruby
<apeiros>
I find that slightly ridiculous :-)
ndrei has quit [Ping timeout: 240 seconds]
mikeg has quit [Quit: Leaving...]
<gizmore>
i find it rediculous that you think there are no newbies here :)
<apeiros>
I didn't say that that's what I think
<apeiros>
also the presence of noobs isn't what makes your action ridiculous.
<gizmore>
well, back to topic, sry for my nil.respond_to?
<apeiros>
hey reactormonk, how's it going over there?
p8952 has quit [Quit: Leaving]
mark_locklear has quit [Ping timeout: 276 seconds]
ClarusCogitatio has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
mojo619 has quit [Quit: mojo619]
ndrei has joined #ruby
larissa has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
troyronda has quit [Remote host closed the connection]
Xeago has joined #ruby
ClarusCogitatio has joined #ruby
sambao21 has joined #ruby
terrell_t has joined #ruby
ffranz has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
ClarusCogitatio has quit [Excess Flood]
Merks has quit []
ClarusCogitatio has joined #ruby
troyronda has joined #ruby
subbyyy_ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<reactormonk>
apeiros, cars everywhere
<reactormonk>
and TWC :-/
WishBoy has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
xiq has quit [Ping timeout: 250 seconds]
s2013 has joined #ruby
<apeiros>
TWC?
WishBoy- has quit [Ping timeout: 276 seconds]
WishBoy has quit [Read error: Connection reset by peer]
WishBoy- has joined #ruby
yubrew has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
toastyne_ is now known as toastynerd
ffranz has joined #ruby
<s2013>
time warner cable i assume
ClarusCogitatio has quit [Excess Flood]
mansi_ has joined #ruby
<reactormonk>
but on the upside, the university has an inofficial archlinux mirror - 10mb/s downloads ftw
aniM has joined #ruby
<shevy>
if only they would offer a good distribution
mansi has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
ClarusCogitatio has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
s2013_ has joined #ruby
Megtastique has quit []
s2013 has quit [Disconnected by services]
s2013_ is now known as s2013
yubrew has quit [Ping timeout: 250 seconds]
shaileshg has quit [Quit: Connection closed for inactivity]
agarie has quit [Ping timeout: 240 seconds]
bluenemo has quit [Remote host closed the connection]
ClarusCogitatio has quit [Excess Flood]
crzrcn has joined #ruby
agarie has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
pen has quit [Remote host closed the connection]
terrell_t has quit [Remote host closed the connection]
aspiers has joined #ruby
terrellt has joined #ruby
roadie has joined #ruby
terrellt has quit [Read error: Connection reset by peer]
reset has joined #ruby
terrellt has joined #ruby
carraroj has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
djbkd has quit [Remote host closed the connection]
crzrcn1 has joined #ruby
the_f0st_ has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
crzrcn has quit [Ping timeout: 276 seconds]
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
crystal77 has joined #ruby
reset has quit [Client Quit]
djbkd has joined #ruby
dukedave has joined #ruby
ExceptionlCatch has joined #ruby
codabrin_ has joined #ruby
<ExceptionlCatch>
i'm new to ruby and want to start unit testing, what's a minimal testing strategy?
terrellt has quit [Remote host closed the connection]
<centrx>
ExceptionlCatch, Use minitest
senayar_ has joined #ruby
sdouglas has joined #ruby
andrewlio has joined #ruby
ce_afk is now known as cescalante
cpruitt has quit [Quit: cpruitt]
<dukedave>
I'm writing a gem which will use Sequel, can anyone link a guide on how to manage a DB connection within a gem?
ascarter has joined #ruby
sunya7a has joined #ruby
<centrx>
dukedave, Use a configuration file, like database.yml
<dukedave>
centrx, and just read it when the gem is required?
* apeiros
hates rails for using .yml
<centrx>
dukedave, sure
sambao21 has quit [Quit: Computer has gone to sleep.]
the_f0ster has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
combusean has joined #ruby
rdark has quit [Quit: leaving]
einarj has quit [Remote host closed the connection]
cjsarette has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
Nahra has joined #ruby
terrellt has quit [Remote host closed the connection]
metamaterial has joined #ruby
bo- is now known as bodeezl
cpruitt has joined #ruby
jtdowney has joined #ruby
CorpusCallosum has joined #ruby
<shevy>
ewww
blackavr has quit [Quit: blackavr]
workmad3 has joined #ruby
danshult_ has joined #ruby
<dukedave>
apeiros, nice, thanks
kirun has joined #ruby
SilkFox has joined #ruby
alem0lars has joined #ruby
jilk23 has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
jilk23 has joined #ruby
the_f0ster has joined #ruby
popl has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 276 seconds]
<apeiros>
shevy: you have a better suggestion?
<shevy>
apeiros yeah - to have *args always the final position
<apeiros>
shevy: oh dear… that was a *placeholder*
<apeiros>
because I obviously don't know what args his classes will accept
<apeiros>
shevy: also, *args comes before kwargs
blackavr has joined #ruby
<crome>
shevy: rubocop got to your head
rudisimo has quit []
<shevy>
crome hey, it copped away some trailing whitespaces already!
rebelshrug has joined #ruby
Advocation has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
ce_afk is now known as cescalante
<dukedave>
Do you think it'd be reasonable to have a class method version of public methods, which use the default connection? So you could do "MyGem::Foo.find()" to implicitly use the default connection, or: "f = MyGem::new(connection: another); f.find()" for another?
<dukedave>
*make that MyGem::Foo.new(..
AlSquire has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arubincloud is now known as arrubin
fwtt has quit [Quit: Leaving]
george2 has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<l0cust_>
ظضهمب
l0cust_ has quit [Quit: leaving]
tango2014 has quit [Remote host closed the connection]
crodas has joined #ruby
michaeldeol has joined #ruby
tango2014 has joined #ruby
rodasc has quit [Ping timeout: 252 seconds]
<shevy>
dukedave wait what is an alias to the other
michael_lee has quit [Remote host closed the connection]
metamaterial has quit [Remote host closed the connection]
<shevy>
ah
<shevy>
yeah
andrewjanssen has joined #ruby
<dukedave>
shevy, see my previous question for context ;)
<shevy>
your MyGem::new got me
baweaver has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
ruby code looks very different on IRC :\
<dukedave>
The programmer in me is wary of the singleton route, but I love just being able to MyModel.find() in ActiveRecord
danshult_ has quit [Remote host closed the connection]
<dukedave>
shevy, I wish IRC clients started supporting markdown :)
<shevy>
haha
metamaterial has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
crzrcn has joined #ruby
RaptorJesus has joined #ruby
danshultz has joined #ruby
yubrew has joined #ruby
ClarusCogitatio has joined #ruby
tango201_ has joined #ruby
<RubyPanther>
with xchat and the Ruby plugin, it would probably only take 5 minutes. I'm not convinced it is a feature, myself.
tango2014 has quit [Ping timeout: 240 seconds]
<aarkerio>
I am converting var = {foo:'value', ert:'56'}.to_s << "\n"
sambao21 has joined #ruby
<aarkerio>
but when I save: file.write(var)
Megtastique has joined #ruby
<shevy>
man
Stalkr_ has joined #ruby
<aarkerio>
I see "\n" instead of new lines
baweaver has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
<shevy>
>> var = {foo:'value', ert:'56'}.to_s << "\n"; var
<shevy>
RubyPanther ruby bindings in hexchat don't work :(
chipotle_ has joined #ruby
x77686d has quit [Quit: x77686d]
MatthewsFace has joined #ruby
tengopreguntas has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<aarkerio>
mmm, how can I add the new line "\n" ?
jamto11_ has joined #ruby
mr_snowf1ake has joined #ruby
<shevy>
you did
shock_one has joined #ruby
<shevy>
your string has \n at the last position
<shevy>
look at what eval-in showed
jamto11 has quit [Remote host closed the connection]
<RubyPanther>
luckily hexchat is for windoze so programmers will never know features it lacks ;)
Megtastique has quit [Client Quit]
cpruitt has quit [Quit: cpruitt]
ClarusCogitatio has quit [Ping timeout: 250 seconds]
yubrew has quit [Ping timeout: 276 seconds]
<shevy>
hey! I compiled it!
MatthewsFace has quit [Client Quit]
<shevy>
ok it did not run, but still
jtdowney has quit [Ping timeout: 240 seconds]
<tengopreguntas>
can anybody tell me what's wrong with my regexp expression. i am trying to remove all letters that are repeated, and leave only one. $ puts "qola qqola qqqola ppppola".gsub( /(?<c>[qp])\k<c>/, '\\1' ) #outputs: qola ola qola ola . what's wrong with it. why is it so inconsistent?
<RubyPanther>
hexchat is full of crazy propaganda. "XChat is now practically abandoned." No, it is FINISHED. As in DONE. As in, IRC is 20 years old, there are no new features, clients should not still be feature-thrashing!
<shevy>
Hanmac1 at least it is a cute pic
ClarusCogitatio has joined #ruby
Hanmac1 is now known as Hanmac
<RubyPanther>
I don't want frequent emacs updates, either. It is DONE.
<tengopreguntas>
Hanmac1: yes. thank you. but do you now what's wrong with the backreference in that expression?
x1337807x has joined #ruby
Advocation has quit [Quit: Advocation]
mojo619 has joined #ruby
<tengopreguntas>
Hanmac: because it is not for all the letters in the alphabet, but for some of them that i want to do that.
<havenwood>
Hanmac: yup sure did! must. destroy. all. statues.
<RubyPanther>
shevy: And all the important features were already there 14 years ago
* havenwood
blinks
jamto11 has joined #ruby
<shevy>
I could not even compile xchat at one point
helpD has joined #ruby
<RubyPanther>
14 years ago nobody was using xchat for new features, we were using for already-old features
<Hanmac>
havenwood: whats your current episode? are you already finish with this season?
noop has quit [Ping timeout: 252 seconds]
AlSquire has quit [Quit: Quitte]
noop has joined #ruby
cescalante is now known as ce_afk
coz has quit [Read error: Connection reset by peer]
nmokru has quit [Quit: nmokru]
razrunelord has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 245 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
Megtastique has quit [Client Quit]
<RubyPanther>
And if the replacement doesn't even have working Ruby bindings, that is a good example of why it is bad for users to continue feature-thrashing even after a product is finished.
joaoh82 has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
<tengopreguntas>
shooot, i need it to be case insensitive. leaving the first q in Qqqola
anaeem1_ has quit [Ping timeout: 245 seconds]
<RubyPanther>
If it is proprietary, at least there is some pathetic excuse, "we sell more and make more money"
<tengopreguntas>
that's why i was trying to use the reg exp
coz has joined #ruby
the_f0ster has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
<havenwood>
Hanmac: on final episode of s3
pushpak has joined #ruby
djbkd has quit [Remote host closed the connection]
<tengopreguntas>
havenwood: yeah, i will need to return Qola
<shevy>
I mean rwx
<shevy>
god damn the abbreviations
<tengopreguntas>
i think it is a job for the regexp. but i cannot make it work
ascarter has joined #ruby
<shevy>
RubyPanther I guess you also think that motif was finished 20 years ago
<RubyPanther>
tengopreguntas: You can't, within reason at least
sdouglas has quit [Remote host closed the connection]
<Hanmac>
shevy made some patches improvements for wx itself, today i will document some more constants + some lil imput-checks (so it does not crash with out-of-index shit)
ClarusCogitatio has joined #ruby
<RubyPanther>
tengopreguntas: There is no reason to squeeze all that functionality into a single regex. Use multiple stesp
sdouglas has joined #ruby
<tengopreguntas>
Ruby, why not, i think regexp is suitable for that.
<RubyPanther>
shevy: I dunno, I was using Tk (and liking it!) in Motif days
<RubyPanther>
In the beginning there was GUI pain. And then came GIMP to save us with layered architecture and plain-C OOP.
<RubyPanther>
tengopreguntas: No, regex is suitable just for MATCHING. You're wanting to match some set of things, but then process it differently depending on which members. WHat I'm talking about is Qq
<RubyPanther>
Was the regex easy, or did you struggle with it? Don't struggle with complicated regex. Write step-by-step code, using the language you're using
<tengopreguntas>
RubyPanther: sorry, but have you read the regex i am talking about
jottr has quit [Client Quit]
Megtastique has joined #ruby
ClarusCogitatio has joined #ruby
dstynchula has joined #ruby
Rainicorn has joined #ruby
<RubyPanther>
tengopreguntas: The key part is not whatever the regex is. The key part is " what's wrong with it. why is it so inconsistent?"
SegFaultAX has quit [Excess Flood]
<tengopreguntas>
that's why i am here for. to ask. but.. sorry you keep saying do not use the reg exp. but you haven't looked at it
<RubyPanther>
If you're putting regex into your code that surpassed what you understand and had to be tweaked until you just-barely understood it, the code will be crap
jack_rabbit has joined #ruby
<RubyPanther>
Right, I'm leveraging extensive experience instead of just looking at the code and answering like a robot. It is called "teaching."
dstynchula has quit [Client Quit]
carter has joined #ruby
<tengopreguntas>
RubyPanther: i know what the regex is doing. i wrote it myself. what i don't understand is why it is inconsistent
<RubyPanther>
You can't claim to know what the regex is doing, and claim it is inconsistent.
davedev24 has quit []
<RubyPanther>
That is a syntax error.
the_f0ster has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
<RubyPanther>
That syntax error is what suggests that you shouldn't be using a regex
<tengopreguntas>
RubyPanther: yes, ofcourse . i just came here to see if someone can spot what's wrong.
<tengopreguntas>
what sintax error you talking about
<RubyPanther>
Yes, that is an awful way to use regex, it means that somebody with the same knowledge you had when you chose to do it that way... won't understand it
<RubyPanther>
^
<RubyPanther>
The English one.
LadyRainicorn has quit [Ping timeout: 240 seconds]
<tengopreguntas>
RubyPanther: nevermind. forget about it
<blackavr>
RubyPanther has the right answer, by the way.
seuros has quit [Remote host closed the connection]
banister has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
Megtastique has quit []
banister has quit [Max SendQ exceeded]
keen_______ has joined #ruby
<blackavr>
The syntax error they were talking about is in your two statements: “i know what the regex is doing. i wrote it myself.” and “what i don't understand is why it is inconsistent”. Those two are not consistent.
<tengopreguntas>
blackavr: look, i think it is a pretty basic use of backreference.. i probably have something wrong because i haven't touched ruby in more than one year. just saying, use some other method doesn't solve my problem.
cocotton has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby
mrmargolis has quit [Remote host closed the connection]
cocotton has joined #ruby
seaned has quit [Quit: Zzzzzz....]
cocotton has quit [Remote host closed the connection]
akgerber_ is now known as akgerber
cocotton has joined #ruby
lkba has joined #ruby
<aarkerio>
hi! I created a string like "data\": {\n\t\t\"job_title\": \"Manager\",\n\t\t\"user_type\": \"individual\" but when I save it into a file: file.puts my_string the tabs and new lines are not "converted"
<aarkerio>
how can I force the tabs and break lines ?
<Hanmac>
aarkerio: hm into what should your tabs be converted?
<aarkerio>
I mean I want a formated text in the file, not the \n\t\t stuff
<Hanmac>
hm yeah then you did something wrong
nisstyre has joined #ruby
fantazo has joined #ruby
<tengopreguntas>
Hanmac: thanks a lot. i found out what was wrong with my code, i the backreference in the replace.. for some reason i cannot use numbers if i use named groups. this one works. >> puts "qqola Qqola QQqqola qQQqqola ppola ppPola PPpola".gsub( /(?<c>[qp])\k<c>+/xmi, '\k<c>' )
shevy has joined #ruby
baweaver has joined #ruby
Xeago has quit [Remote host closed the connection]
momomomomo has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<tengopreguntas>
Hanmac: actually your version is better cuz no need to use named groups
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has joined #ruby
axl_ has joined #ruby
johncjensen has joined #ruby
pen has joined #ruby
sepp2k1 has joined #ruby
flughafen has quit [Ping timeout: 240 seconds]
pskosinski is now known as JanGleboki
JanGleboki is now known as pskosinski
sepp2k has quit [Ping timeout: 252 seconds]
mr_snowf1ake has quit [Ping timeout: 245 seconds]
obs has quit [Remote host closed the connection]
agarie has joined #ruby
axl_ has quit [Client Quit]
shevy has quit [Ping timeout: 250 seconds]
cjsarette has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
sdouglas has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
simono has joined #ruby
yubrew has joined #ruby
senayar_ has quit [Remote host closed the connection]
Vivekananda has joined #ruby
senayar has joined #ruby
terrellt has quit [Remote host closed the connection]
djbkd has joined #ruby
terrellt has joined #ruby
Advocation has joined #ruby
metamaterial has quit [Remote host closed the connection]
franzip has quit [Quit: ...]
yubrew has quit [Ping timeout: 245 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
metamaterial has joined #ruby
robert_ has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
nomadic has quit [Remote host closed the connection]
shadoi has quit [Read error: Connection reset by peer]
shadoi1 has joined #ruby
jespada has quit [Quit: Leaving]
sambao21 has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
linguini has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
terrellt has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
aspires has quit []
sambao21 has quit [Client Quit]
apeiros has joined #ruby
<mordof>
say I have a class, that has an instance variable of an array. and inside that array are many different instances of another class. if i have a variable pointing directly at one of the instances in the array, is it possible to determine which original class instance has hold of the array it's in?
shevy has joined #ruby
<mordof>
or should i keep a parent reference
jamto11_ has joined #ruby
<mordof>
I'm thinking it's probably going to be a parent reference to be kept in each of the array items - but wanted to double check
pontiki has joined #ruby
<jhass>
mordof: no efficient or elegant way
treehug8_ has quit []
terrellt has joined #ruby
terrellt has quit [Remote host closed the connection]
<mordof>
jhass: ok, i'll keep a reference. thanks
terrellt has joined #ruby
<jhass>
mordof: you might want to describe your problem though. Maybe there's an elegant design for it
<mordof>
jhass: html structure, heh
<mordof>
making a parser
sambao21 has joined #ruby
shock_one has quit [Ping timeout: 245 seconds]
<mordof>
DOM nodes have a .parent on them that references their parent
<jhass>
because we don't have enough already... :P
<mordof>
jhass: reinventing the wheel is a good learning experience
<jhass>
but yeah, in that case just go with the parent reference
johncjensen has quit [Remote host closed the connection]
chipotle_ has quit [Quit: cya]
dik_dak has quit [Ping timeout: 252 seconds]
<mordof>
i'm trying something different with the results anyhow
jamto11_ has quit [Ping timeout: 250 seconds]
nomadic has joined #ruby
SilkFox has quit [Ping timeout: 250 seconds]
Advocation has quit [Quit: Advocation]
roadie has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
decoponio has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
Firebox has joined #ruby
<Firebox>
ruby vs python, which is good?
<mordof>
each language has it's own "what it's good at" generally.
<Firebox>
yeah,
<ericwood>
they're both great
sambao21 has joined #ruby
<ericwood>
whatever meshes better with yo brain
<Firebox>
mordof: how long takes time to master ruby?
<ericwood>
Python has better tools for working with mathematics
<Hanmac>
Firebox: i think of ruby as pythons evil twin sister ;P
<mordof>
Firebox: anywhere from a couple weeks to a couple years? depends widely on the person
<ericwood>
I <3 ruby tho
tjsousa_ has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
<mordof>
also depends on your definition of "master"
<Firebox>
ok, i have a question, what are you doing with ruby?
<wmoxam>
Firebox: writing software
<wmoxam>
:p
<Firebox>
as rusult.
<Firebox>
?
<mordof>
Firebox: you're asking *incredibly* vague and generalistic questions.
<Firebox>
as result?
crystal77 has joined #ruby
<wmoxam>
Firebox: web apps, server management, queue processing, video games
<Firebox>
i dont know what to do by ruby?
<wmoxam>
:p
<Firebox>
oh
<wmoxam>
that's what I write
dik_dak has joined #ruby
seaned has joined #ruby
<wmoxam>
'web apps' is pretty vague as that only describes the delivery/UI platform
<Firebox>
i feel thanksful for web scraping when i want get some data.
cocotton has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
baweaver has joined #ruby
cocotton has joined #ruby
pika_pika has joined #ruby
bthesorceror has quit [Remote host closed the connection]
crystal77 has quit [Client Quit]
Speed has joined #ruby
redondos has quit [Excess Flood]
SilkFox has joined #ruby
redondos has joined #ruby
bthesorc_ has joined #ruby
<Firebox>
wmoxam: you can give me your coding content?
cjsarette has joined #ruby
spyderman4g63 has quit []
Megtastique has joined #ruby
moritzs has joined #ruby
joaoh82 has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
ldnunes has quit [Quit: Leaving]
ClarusCogitatio has joined #ruby
ldnunes has joined #ruby
nanoyak has quit [Client Quit]
davedev24 has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Leaving :)]
troyronda has quit []
fgo has joined #ruby
davedev24 has joined #ruby
crystal77 has joined #ruby
troyronda has joined #ruby
obscured has quit [Quit: leaving]
GaryOak_ has quit [Remote host closed the connection]
soheil has quit [Remote host closed the connection]
kenneth has joined #ruby
jottr has quit [Quit: WeeChat 0.4.2]
<kenneth>
i must be going silly, but i'm trying to write a regex and it's giving me odd results
<apeiros>
graud: most of them can still be used as method names, though
ClarusCogitatio has quit [Excess Flood]
<apeiros>
you just can't call them without explicit receiver.
<graud>
ahh, i see. thanks!
<apeiros>
I had a similar issue recently
<apeiros>
where sublime thought `gem` was a special word and required an argument. it's not. and it broke the highlighting when it was used without an argument…
freerobby has quit [Quit: Leaving.]
kevinykchan has quit [Quit: Computer has gone to sleep.]
moritzs has quit [Ping timeout: 252 seconds]
danshultz has quit [Ping timeout: 240 seconds]
cocotton_ has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
cocotton has joined #ruby
bthesorceror has quit [Remote host closed the connection]
snooc has quit [Ping timeout: 276 seconds]
bthesorceror has joined #ruby
ClarusCogitatio has quit [Excess Flood]
momigi_ has quit [Remote host closed the connection]
rizzatti has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
sunya7a has quit [Quit: leaving]
Kricir has quit [Ping timeout: 240 seconds]
momigi has joined #ruby
sdwrage has joined #ruby
sunya7a has joined #ruby
Czupa has quit [Remote host closed the connection]
dik_dak has joined #ruby
ClarusCogitatio has quit [Excess Flood]
mrmargolis has joined #ruby
rizzatti has quit [Quit: Leaving...]
bthesorceror has quit [Ping timeout: 240 seconds]
zachallett has joined #ruby
ce_afk is now known as cescalante
ffranz has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
<Firebox>
i think ruby is not easy.
GaryOak_ has quit [Remote host closed the connection]
nbezzala has joined #ruby
<havenwood>
Firebox: Some of the best things aren't.
<Firebox>
:)
flughafen has joined #ruby
sunya7a has quit [Ping timeout: 252 seconds]
rayners has quit [Remote host closed the connection]
nanoyak has joined #ruby
Arkaniad has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
<Firebox>
i will give up ruby.
nbezzala_ has joined #ruby
bodeezl has left #ruby ["Leaving"]
<Firebox>
bye.
johncjensen has quit [Remote host closed the connection]
<jhass>
Firebox: what's troubling you though?
sailias has quit [Quit: Leaving.]
<Firebox>
i dont know but lanbada and :abc are strange to me.
dblessing has quit [Quit: dblessing]
momomomomo has quit [Quit: momomomomo]
crystal77 has quit [Quit: Computer has gone to sleep.]
<havenwood>
Firebox: i think i like lanbdambda better than lanbada
mehlah has joined #ruby
workmad3 has joined #ruby
johncjensen has joined #ruby
LadyRainicorn has quit [Ping timeout: 250 seconds]
<Firebox>
lambada
Megtastique has quit []
<havenwood>
i can accept that
<Firebox>
i will give up ruby and hacking.
<Firebox>
it is not match to me.
<Firebox>
bye.
LadyRainicorn has joined #ruby
crystal77 has joined #ruby
naw has joined #ruby
axl_ has quit [Quit: axl_]
<kenneth>
a little more context: this is a first pass at a monkey-patch on top of the the kenji web framework; basically it has a DSL for subclasses of its controller classes, where you can define routes as `route :get, '/hello' {}` (or get '/hello' {} for short)
Shidash has joined #ruby
Firebox has left #ruby [#ruby]
<kenneth>
it takes the block and saves it in a tree internally after some massaging, and when the time comes to execute the route, it takes the block and binds it to the controller instance, and then calls it
dorei has joined #ruby
<kenneth>
which makes the block act like a regular method
nolic has joined #ruby
<kenneth>
so, the problem i'm having is this: the code in the gist works fine; it wraps the route method fine, and wraps the block find; but the binding of the block is off. the block that the user passed in originally when defining the route is no longer bound to the controller instance, instead it's bound to the wrapper block
<shevy>
ack
x77686d has quit [Quit: x77686d]
<kenneth>
is there an elegant way of binding a block variable to the execution context of the block being executed?
Hanmac1 has joined #ruby
snath has quit [Ping timeout: 252 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 246 seconds]
<kenneth>
do i have to go through the dance of doing a define method from the block, grabbing it as an unbound method, undefing it, rebinding it to `self`, and then calling it?
<zcreative>
sorry i just linked you to entire repo
<shevy>
so the name is finagraph-rb ?
<shevy>
I never had a project with a - inside yet hmmm
nanoyak has joined #ruby
<zcreative>
just the repo
<shevy>
ok how do you require it?
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<shevy>
require 'finagraphrb' ?
<zcreative>
Called just Finagraph
<shevy>
ok
<shevy>
require 'finagraph'
<zcreative>
yep
<zcreative>
I need to have multiple instances
<shevy>
what I do usually is: mkdir finagraph; cd finagraph; touch finagraph.rb <-- this one usually pulls in the other files; also, at the same level, mkdir finagraph/
bklane has quit [Client Quit]
<shevy>
damn
<shevy>
I forgot lib/
<shevy>
semi-ignore the above
jrhorn424 is now known as zz_jrhorn424
yubrew has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
<shevy>
mkdir finagraph; cd finagraph; mkdir lib; cd lib; touch finagraph.rb; mkdir finagraph/ <-- this dir is the root project dir usually
<zcreative>
yeah
bigmac_ has joined #ruby
<zcreative>
i got all that
<shevy>
ok good!
<shevy>
then all is fine
<zcreative>
I'm having trouble with nesting my Modules and classes
<shevy>
well: module Finagraph
<zcreative>
api = Finagraph::API.new(token)
<shevy>
k, API resides in that module
<shevy>
module Finagraph; class API
<zcreative>
client_list = api.client.list
<zcreative>
i want something like this
<shevy>
and where is the problem
drager_ has quit [Changing host]
drager_ has joined #ruby
<shevy>
client is a method in class API
<shevy>
add it to file api.rb
SilkFox has quit [Ping timeout: 276 seconds]
<zcreative>
client is supposed to be a class
cescalante is now known as ce_afk
drager_ is now known as drager
<shevy>
k so api.rb has to require client.rb
<zcreative>
client has methods
ce_afk is now known as cescalante
<zcreative>
at the top?
<shevy>
so put client.rb next to it and require it from api.rb
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
requires usually come on top yeah
crystal77 has quit [Quit: Computer has gone to sleep.]
<zcreative>
If you see, I am requiring all my files in the lib/finagraph.rb
<shevy>
well, you can split that up
<shevy>
let the file that needs the class do the require for you
<Stalkr_>
Are Cucumber related questions okay here?
george2 has joined #ruby
<shevy>
zcreative, in general it is best to try minimal requires, to avoid circular requires
<zcreative>
ok
<shevy>
Stalkr_ I guess you can try; I can't reply though because I know nothing about Cucumber, perhaps someone else who uses it can reply
benzrf is now known as benzrf|offline
<zcreative>
so only require files in the file i need them in
<shevy>
zcreative that would seem the simplest way in the long run
<shevy>
in ruby 1.8.x I put all requires in a project into like every file
<jhass>
zcreative: just def client; @client ||= Client.new end; in your API class?
<shevy>
since ruby 1.9.x I get circular dependency warnings
<shevy>
so I had to be more explicit
<Stalkr_>
I am trying to use VCR with Cucumber, but I am not having any success. The cassette does not get written. Any idea what's causing this? https://gist.github.com/anonymous/e6512d560739e376f495 are my scenarios so far
<zcreative>
jhass So would i do this for every other class I have that i want under my Finagraph modules?
<jhass>
zcreative: well, yeah, that or some method_missing magic
<jhass>
depends on how many classes you have I guess
<shinobi_one>
just seems silly to load it all for a constant :P
<apeiros>
you sure you mean OpenSSL::SSL::VERIFY_MODE and not OpenSSL::SSL::VERIFY_NONE?
KanKava has joined #ruby
<shinobi_one>
i mean the <MODE> part can be whatever the correct one i'm going to use is
<shinobi_one>
OpenSSL::SSL::VERIFY_<WHATEVER>
axl_ has joined #ruby
johncjensen has joined #ruby
<apeiros>
net/https
<shinobi_one>
i'm just curious if i have to `require 'openssl' ` to get the constant, or if there is a way to get at it without requiring all of openssl
troyready has quit [Quit: Leaving]
<apeiros>
openssl too
<apeiros>
well, you can grep the source and see where it's defined
<apeiros>
you open yourself up for bugs due to changes, though
axl_ has quit [Client Quit]
axl_ has joined #ruby
momigi has quit [Remote host closed the connection]
<shinobi_one>
meh, i'll just require it the whole thing, thanks though :)
mansi has joined #ruby
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daniel_hinojosa has joined #ruby
pu22l3r has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
johncjensen has quit [Remote host closed the connection]
Xeago has joined #ruby
nanoyak has joined #ruby
qwyeth has quit [Quit: Leaving]
zorak_ has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
JensOfSweden has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 252 seconds]
nbezzala has quit [Remote host closed the connection]
jeregrine has quit [Quit: Connection closed for inactivity]
nolic has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
Shidash has quit [Ping timeout: 276 seconds]
kirun has quit [Quit: Client exiting]
badhatter has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
fijimunkii has quit [Ping timeout: 250 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 240 seconds]
mjsmith2 has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 240 seconds]
troyronda has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
zachallett has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
frobrob_ has quit [Ping timeout: 245 seconds]
cocotton has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
pu22l3r has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby
<fly2web>
noone exist here?
osvico has joined #ruby
mary5030 has joined #ruby
<shevy>
fly2web we remember you
<shevy>
you wanted to learn ruby about 20 times by now
<fly2web>
yes
<fly2web>
i want to learn ruby.
daniel_hinojosa has quit [Ping timeout: 245 seconds]
<fly2web>
how can i do?
crystal77 has joined #ruby
Xeago has joined #ruby
mary5030 has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Client Quit]
razrunelord has joined #ruby
robbyoconnor has joined #ruby
graud has quit [Quit: graud]
baweaver has quit [Ping timeout: 276 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tacos1de has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datafirm has joined #ruby
arrubin has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
cocotton has joined #ruby
RaptorJesus has quit [Quit: Leaving]
cocotton has quit [Remote host closed the connection]
x1337807x has joined #ruby
combusean has quit [Ping timeout: 276 seconds]
Radar_ is now known as Radra
Radra is now known as Radar
Xeago has quit [Remote host closed the connection]
agent_white has quit [Quit: leaving]
aspires has quit []
RaptorJesus has joined #ruby
code-cat has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
cescalante is now known as ce_afk
snath has quit [Ping timeout: 252 seconds]
FenixFyreX has quit [Remote host closed the connection]
snooc has quit [Ping timeout: 240 seconds]
yvemath has quit [Remote host closed the connection]
psyko666 has joined #ruby
JensOfSweden has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
BWStearns has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Remote host closed the connection]
Synthead has joined #ruby
locriani has quit [Remote host closed the connection]
mrbang0day has joined #ruby
mrbang0day has left #ruby [#ruby]
andrewjanssen has quit [Quit: Leaving...]
locriani has joined #ruby
klaut has quit [Remote host closed the connection]
troyronda has joined #ruby
sambao21 has quit [Ping timeout: 250 seconds]
funburn has quit [Quit: funburn]
nicoulaj has quit [Remote host closed the connection]
chipotle_ has joined #ruby
djbkd has joined #ruby
JensOfSweden has quit [Ping timeout: 240 seconds]
Squarepy has joined #ruby
andrewlio has quit [Quit: Leaving.]
sambao21 has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
chipotle_ is now known as chipotle
RaptorJesus has quit [Quit: Leaving]
dukedave has quit [Ping timeout: 250 seconds]
locriani has quit [Ping timeout: 240 seconds]
robert_ has joined #ruby
RaptorJesus has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
locriani has joined #ruby
yubrew has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Megtastique has joined #ruby
snath has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
razrunelord has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
caiges has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
locriani_ has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
locriani has quit [Ping timeout: 240 seconds]
Stalkr_ has quit [Quit: Leaving...]
yubrew has quit [Ping timeout: 252 seconds]
caiges has joined #ruby
Shidash has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jumblemuddle_ has quit [Quit: Death]
freezey has joined #ruby
GaryOak_ has joined #ruby
jumblemuddle has joined #ruby
coderhs has joined #ruby
freezey has quit [Read error: Connection reset by peer]
Megtastique has quit []
Xeago has joined #ruby
freezey_ has joined #ruby
troyronda has quit [Ping timeout: 240 seconds]
dik_dak has quit [Quit: Leaving]
rmorello has joined #ruby
yvemath has joined #ruby
geggam has quit [Quit: weekend]
freezey_ has quit [Remote host closed the connection]
<kenneth>
so… spinning up threads in ruby is pretty slow right?
helpD has quit [Remote host closed the connection]
<kenneth>
what about keeping an idle thread alive forever, is that pretty bad?
mjsmith2 has joined #ruby
<Xeago>
kenneth: ruby doesn't have concurrent threads
subbyyy_ has quit [Ping timeout: 240 seconds]
thumpba_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<kenneth>
a ruby thread is just a native thread, with the added limitation that the interpreter is not able to interpret ruby code in more than one at a time
<kenneth>
no?
Xeago has joined #ruby
<kenneth>
(when is that going to go away by the way? kind of a lousy limitation)
<arrubin>
Xeago: Ruby or MRI?
<chrisseaton>
Xeago: Ruby threads in all Ruby implementations that have them are fully concurrent, but in MRI they don't run Ruby bytecode in parallel
crystal77 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
george2 has quit []
funburn has joined #ruby
iamcalledrob has joined #ruby
locriani_ has quit [Remote host closed the connection]
troyronda has joined #ruby
predator217 has joined #ruby
locriani has joined #ruby
thumpba_ has quit [Remote host closed the connection]
mojo619 has quit [Quit: mojo619]
george2 has joined #ruby
<chrisseaton>
kenneth: there's some research on removing the lock that prevents parallel execution in MRI by using the transactional memory in the new Haswell processors - there was a paper on this at PPoPP earlier this year
jumblemuddle has quit [Quit: Death]
<kenneth>
oh nice!
jumblemuddle has joined #ruby
jhass is now known as jhass|off
bluenemo_ has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
<arrubin>
kenneth: I believe that the problem does not exist in Rubinius and JRuby.
funburn has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
funburn has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
locriani has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
soulcake has joined #ruby
bluenemo has quit [Ping timeout: 245 seconds]
kevind has quit [Quit: kevind]
ascarter has joined #ruby
pel_daniel has left #ruby [#ruby]
razrunelord has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]