<t0code>
is it best to learn ruby before adding rails?
<havenwood>
t0code: Yes.
<t0code>
just making sure. i am.
<t0code>
at what point should i go ahead and get rails?
craigs has quit [Ping timeout: 244 seconds]
northfurr has quit [Quit: northfurr]
webopsx has joined #ruby
<shevy>
when you know the basics in ruby
<t0code>
ok
<havenwood>
t0code: Even then I'd suggest learning Sinatra or Roda first.
wldcordeiro has joined #ruby
tubuliferous has joined #ruby
<t0code>
really. why?
<Ox0dea>
Baby steps.
<Ox0dea>
Sinatra and friends are much better fits for the sorts of app you'll be making in the beginning to become familiar with the territory.
cwong_on_irc has joined #ruby
<t0code>
ok. in what amount of time do you think a reasonably intelligent person could become effiient enough in ruby to either land a job as a dev or create a professional grade app?.hours
sphex has joined #ruby
GriffinHeart has joined #ruby
blackjid has quit [Max SendQ exceeded]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackjid has joined #ruby
djbkd has quit [Quit: My people need me...]
htmldrum has joined #ruby
<shevy>
focus a full mont on ruby
<shevy>
erm
<shevy>
*month
<shevy>
then two more months with rails
<havenwood>
Pretend Rails doesn't exist!
<havenwood>
Close your eyes and pretend really hard.
oetjenj has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
<t0code>
ill try
duderonomy has quit [Max SendQ exceeded]
queuetip has joined #ruby
<havenwood>
t0code: Many folk get hired out of bootcamps, which tend to be full-time for three months. Hiring has to do with so many factors and whims that it's hard to generalize.
tubuliferous has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
DanKnox is now known as DanKnox[away]
GriffinHeart has quit [Ping timeout: 272 seconds]
dfockler has quit [Ping timeout: 265 seconds]
<queuetip>
what does a line like this mean: @original = Set.new
<queuetip>
new to ruby but from a c background
n_blownapart has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
<havenwood>
queuetip: Sets the instance variable `@original` to a new instance of Set.
TheHodge has quit [Quit: Connection closed for inactivity]
akkad has joined #ruby
grekkos has quit [Ping timeout: 255 seconds]
Azure has quit [Excess Flood]
craigs has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
<queuetip>
nice
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<queuetip>
the syntax is so weird to me haha
Azure has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
<Ox0dea>
It's not as if C's syntax is quintessentially regular.
baroquebobcat has joined #ruby
<queuetip>
good point :)
keen___ has joined #ruby
gregf has joined #ruby
dfinninger has joined #ruby
baroquebobcat has quit [Client Quit]
JJM has joined #ruby
brancher has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
patdohere has joined #ruby
keen__ has quit [Ping timeout: 255 seconds]
fullofcaffeine has joined #ruby
n_blownapart has quit []
fastAndSlow has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jason4483 has joined #ruby
ReK2 has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 265 seconds]
fullofcaffeine has quit [Ping timeout: 246 seconds]
EllisTAA has joined #ruby
<jason4483>
Hi all, what is the best way to approach this problem? Write a function which takes in an array of integers and returns true if any three consecutive elements in the array sum to 9. I'm a beginner student in Ruby and I know I should be using a Loop to check the indexes from 0, but I don't know how to set it up.
Musashi007 has quit [Quit: Musashi007]
jenrzzz has joined #ruby
ddv has quit [Ping timeout: 250 seconds]
Lucky__ has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
baweaver has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Read error: Connection reset by peer]
craigs has joined #ruby
jenrzzz has joined #ruby
quazimodo has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
rdavila has joined #ruby
oetjenj has quit [Ping timeout: 260 seconds]
<jason4483>
Hi all, this is an append to my earlier question. Here is my code: http://rubyfiddle.com/riddles/5827b/2 Can someone tell me what this code does not work?
craigs has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 255 seconds]
craigs_ has joined #ruby
ngscheurich has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
unreal has quit [Ping timeout: 250 seconds]
oetjenj has joined #ruby
awrfas2 has joined #ruby
etrae has quit [Ping timeout: 240 seconds]
<lagweezle>
jason4483: Start by closing your block comment.
unreal has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jason4483>
lagweezle, yes Im sorry I just closed it
<lagweezle>
jason4483: If you have a = [3, 1, 8] and i = 2, what is the value of a[i+2] ?
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigs_ has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
<jason4483>
ahhh
<jason4483>
I see what you mean lagweezle
skweek has joined #ruby
<jason4483>
How should I fix this?
northfurr has joined #ruby
ngscheurich has quit [Ping timeout: 244 seconds]
<jhass>
jason4483: you've been thinking about for less than a minute
<jhass>
*about it
<jhass>
we're not here to do your homework ;)
<jason4483>
Well that's not technically correct
<jason4483>
I have been thinking about it since 3pm my time, which is about 6 and a half hrs ago
<shevy>
:D
<jason4483>
I know what you mean jhauss, but I am just exhuasted
<lagweezle>
jason4483: There are two answers to your question. Do you need a Ruby solution, or is this to learn basic Computer Science concepts and approaches?
<jhass>
on the general task, not on the particular issue
<jhass>
lagweezle: I basically gave away the ruby solution above already
<jason4483>
lagweezle, the latter I think - intro to CS concepts
<lagweezle>
jhass: I don't think he caught that, though.
XxionxX has joined #ruby
skweek has quit [Remote host closed the connection]
<lagweezle>
jhass: Related, thanks for learninating me about #each_cons !
oetjenj has quit [Ping timeout: 260 seconds]
<lagweezle>
jason4483: Okay. Hmm.
northfurr has quit [Client Quit]
skweek has joined #ruby
<jason4483>
Just for the sake of clarity, I can't use each_cons during the exam
<jason4483>
We haven't covered it yet
towski_ has quit [Remote host closed the connection]
<jhass>
you probably won't ever from the look of your code
<jason4483>
ahaha
<lagweezle>
jason4483: How about starting with an additional restriction to change how you're thinking about this ... You don't get to look at any position in the array except for the one indicated by the variable 'i'.
citrusfizz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<jason4483>
lagweezle, okay, I understand what you mean
<jason4483>
But Im not sure how to do this, I thought initializing i = 0 would cover my bases
towski_ has joined #ruby
oetjenj has joined #ruby
<lagweezle>
jason4483: Change the problem for now; only care about two consecutive numbers. How would you track the values?
jenrzzz has joined #ruby
<Ox0dea>
>> [1,2,3].each_cons(2) { |a, b| a + b } # :(
<jason4483>
what do you mean "Your loops uses" btw?
<Ox0dea>
citrusfizz: That you want to be doing this in an explicit loop.
<Ox0dea>
I suspect Hash has a method or two for what you actually want to do.
<Ox0dea>
jason4483: "all valid indexes" was hyperbolic was the point jhass meant to make.
<Ox0dea>
Most indices are valid, just not for all Arrays.
<Ox0dea>
Well, no, almost no indices are valid, but I trust you take my point.
<jhass>
jason4483: the body of the while loop in your code
<citrusfizz>
Ox0dea: i guess what i am asking is, i need to store "name of machine" -> {"group" -> "data" where all three of those can and will be different each time the array loops
postmodern has joined #ruby
<Ox0dea>
citrusfizz: And you can't just, y'know, assign those values to those keys?
<Ox0dea>
Hashes are mutable.
<jason4483>
jhass, I don't have a clue what you mean. Can you explain your last statement?
<jhass>
jason4483: while <condition> [newline] <body> [newline] end
wldcordeiro has joined #ruby
swgillespie has joined #ruby
<Ox0dea>
<body> while <condition> is inferior, you say?
<Nilium>
"It is whispered that any child who mistakes Drifloon for a balloon and holds on to it could wind up missing."
sepp2k has joined #ruby
<Nilium>
Not so sure.
<Ox0dea>
Blame helium.
TheRokh has joined #ruby
TheRokh has quit [Max SendQ exceeded]
<Ox0dea>
Helium is still cross about being second, ~13.8 billion years on.
<Nilium>
Helium is a known source of evil.
gambl0re has joined #ruby
<Ox0dea>
Hydrogen's Lucifer, as it were.
TheRokh has joined #ruby
ruby-lang098 has joined #ruby
iateadonut has joined #ruby
<Nilium>
In things unrelated to pokemon but related to games, I now own all Valve games past, present, and future, it seems.
<Nilium>
Anyone got a time machine so I can figure out if the future part even applies?
David27 has joined #ruby
ruby-lang663 has joined #ruby
<Ox0dea>
Extrapolation is hard; let's go interpolate.
chouhoulis has quit [Remote host closed the connection]
<Nilium>
Bring your own function
<Ox0dea>
I am my own function.
<Nilium>
Debatable
<Ox0dea>
Prove it.
<Nilium>
I was never good at proofs
<Ox0dea>
I'll accept inductive reasoning this time.
<ruby-lang663>
hello, i am querying /users?filter%5Bemail%5D=user2%40example.com and the console shows it querying the correct item successfully, but then it goes into my /users controller. I dont know how to stop that, or to return what it has already found
<Nilium>
You should probably ask in the Rails channel.
failshell has joined #ruby
<ruby-lang663>
will do
<Ox0dea>
?rails ruby-lang663
<ruboto_>
ruby-lang663, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Ox0dea>
prime : primality :: composite : ?
<Ox0dea>
What the hell goes there?
<Ox0dea>
"Compositivity"?
datanoise has left #ruby ["WeeChat 1.3"]
symm- has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 250 seconds]
gambl0re has quit []
spuk_ has joined #ruby
ruby-lang544 has quit [Ping timeout: 246 seconds]
gambl0re has joined #ruby
grekkos_ has quit [Ping timeout: 260 seconds]
webopsx has quit [Read error: Connection reset by peer]
sdothum has quit [Remote host closed the connection]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spuk has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
sdothum has joined #ruby
bryanray has joined #ruby
gambl0re has quit [Client Quit]
_blizzy_ has joined #ruby
HAL2328 has quit [Ping timeout: 265 seconds]
gambl0re has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
imperator has joined #ruby
rdavila has quit [Quit: rdavila]
blackjid has quit [Max SendQ exceeded]
gambl0re has quit []
blackjid has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
Contigi has joined #ruby
idefine has quit []
ReK2 has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<VeryBewitching>
Ox0dea: Compositive
<Ox0dea>
VeryBewitching: That's the adjectival form; I'm looking for the noun, I guess.
The_Phoenix has joined #ruby
stardiviner has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
rushed has joined #ruby
Archyme has joined #ruby
bkxd has joined #ruby
workmad3 has joined #ruby
gener1c_ has joined #ruby
<imperator>
evenin'
mrtomme has quit [Ping timeout: 260 seconds]
mrtomme has joined #ruby
gener1c has quit [Ping timeout: 256 seconds]
gambl0re has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<VeryBewitching>
Ox0dea: Maybe? prime : primality :: composite : complexity
jun has joined #ruby
`tim` has joined #ruby
<Ox0dea>
VeryBewitching: But "compose" and "complect" are hardly interchangeable?
<VeryBewitching>
A composite is a blend, all blends are complexes.
braincrash has quit [Quit: bye bye]
<Ox0dea>
Oh, you're right.
<Ox0dea>
I like it.
<Ox0dea>
It's the best English has for "non-primality", it seems.
<Ox0dea>
VeryBewitching: Thanks. <3
HAL2328 has joined #ruby
<VeryBewitching>
np. I like language too. :D
ramfjord has quit [Ping timeout: 250 seconds]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noethics has quit [Quit: Leaving]
Lucky__ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<VeryBewitching>
It stands to reason, if prime is referring to numerical primes, that it would have to be more complex than just having two factors.
braincrash has joined #ruby
<eam>
and if it's referring to optimus?
hagabaka has joined #ruby
<Ox0dea>
VeryBewitching: Sure, but "composite" is plainly superior to "complex" for prime numbers, insofar as it more plainly indicates that the things can be composed, that in direct opposition to the primes.
ruby-lang098 has quit []
<Ox0dea>
I've written "complexity" here, but this'll surely bug me for some time hence.
yfeldblum has quit [Remote host closed the connection]
imperator has quit [Quit: Leaving]
nateberkopec has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
northfurr has joined #ruby
yfeldblum has joined #ruby
<VeryBewitching>
Write the Oxford English Dictionary and make Compositivity a word :D
stardiviner has quit [Ping timeout: 256 seconds]
grekkos_ has joined #ruby
<VeryBewitching>
I think it's the best fit, wrt to expression, and where it can't be correct it's at least accurate.
<VeryBewitching>
What's it for? Just curious.
<Ox0dea>
Documentation.
stardiviner has joined #ruby
<citrusfizz>
Ox0dea: >> h = {}; 10.times { |i| h[i] = i }; h # citrusfizz i'm not sure i understand this, what does 10.times do? or what do i replace that wtih
dorei has quit []
<Ox0dea>
citrusfizz: What do you think `10.times` does?
<citrusfizz>
loops 10 times
<Ox0dea>
Nailed it.
<citrusfizz>
why 10?
<Ox0dea>
Why not?
nateberkopec has quit [Ping timeout: 265 seconds]
<Ox0dea>
10 is a great number.
<citrusfizz>
cuz there are not set amounts of iterations
<citrusfizz>
10 fingers
<citrusfizz>
base 10
<citrusfizz>
lovely number
<citrusfizz>
just seems arbitrary
<Ox0dea>
It... was?
_blizzy_ has quit [Ping timeout: 268 seconds]
<Ox0dea>
It was only meant to demonstrate how to add to a Hash from within a loop.
<citrusfizz>
gotcha
<Ox0dea>
Lovely forest once you spot it, eh?
baweaver has joined #ruby
<citrusfizz>
well.. still can't see past the trees yet
<VeryBewitching>
>> n = 10; h = {}; n.times { |i| h[i] = i }; h
<citrusfizz>
maybe i should increment the inst.name
Bellthoven has joined #ruby
gix has joined #ruby
<citrusfizz>
but that would be kinda weird to parse when i need the data
Renich has quit [Quit: leaving]
orion has joined #ruby
<Ox0dea>
citrusfizz: Right, you've stopped overwriting `s` and started overwriting `s[inst.name]`.
awrfas2 has joined #ruby
<Ox0dea>
Progress!
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
etrae has quit [Ping timeout: 250 seconds]
fullofcaffeine has joined #ruby
<citrusfizz>
hmm but if i do s[inst.name]['secHref'+ a.to_s] = sec['href'] that wouldn't work would it?
<citrusfizz>
well, worth a shot
<Ox0dea>
It would if you'd previously initialized `s[inst.name]` to be a Hash, sure.
northfurr has quit [Quit: northfurr]
<orion>
Given an array of Hashes such as [ { :foo => 'bar', :abc => 'def' }, ... ] is there a standard library function which allows me to eliminate all occurances of the key :abc?
<Ox0dea>
Much nicer than concatenating an index, but I don't know how you intend to use these data.
swgillespie has joined #ruby
zenguy_pc has joined #ruby
duderonomy has joined #ruby
dopie has joined #ruby
nateberkopec has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
cmoneylulz has quit [Ping timeout: 255 seconds]
stardiviner has quit [Ping timeout: 255 seconds]
dfinninger has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fullofca_ has joined #ruby
stardiviner has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Ping timeout: 250 seconds]
dikaio has joined #ruby
amclain has quit [Quit: Leaving]
fullofcaffeine has joined #ruby
balazs_ has quit [Ping timeout: 265 seconds]
spuk_ has quit [Ping timeout: 250 seconds]
fastAndSlow has quit [Ping timeout: 240 seconds]
iateadonut has quit [Quit: Leaving.]
GriffinHeart has quit [Remote host closed the connection]
fullofca_ has quit [Ping timeout: 260 seconds]
spuk has joined #ruby
HAL2328 has quit [Quit: Leaving]
fullofca_ has joined #ruby
GriffinHeart has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
fullofca_ has quit [Read error: Connection reset by peer]
Chaoborid has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
chipotle has quit [Read error: Connection reset by peer]
mleung has joined #ruby
robbyoconnor has joined #ruby
chipotle has joined #ruby
dfinninger has quit [Remote host closed the connection]
jun has quit [Read error: Connection reset by peer]
jun has joined #ruby
guardianL has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
jpfuentes2 has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
cubicme has joined #ruby
bkxd has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
sivsushruth has joined #ruby
guardianL is now known as interpolator
<cubicme>
Hi, I’m defining a method on a series object, and i want to this method to return the value of a variable at the time of defining the method, instead of a holding a reference to it which will evaluate when i call the method, how can I do this? http://pastebin.com/U9vbBJ2u
<cubicme>
Ox0dea: thanks, since Fixnum doesn’t have #dup, i did this: j = i + 0
<Ox0dea>
Ha, that works.
<Ox0dea>
You don't actually need to assign it, mind.
<Ox0dea>
Though I suppose your real code is using it more than once, so ignore that.
stardiviner has quit [Ping timeout: 244 seconds]
rushed has joined #ruby
craysiii has quit [Read error: Connection reset by peer]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
<cubicme>
Ox0dea: thanks again :)
mleung has quit [Quit: mleung]
stardiviner has joined #ruby
jpfuentes2 has quit [Remote host closed the connection]
<Ox0dea>
cubicme: Happy to have helped. :)
<Ox0dea>
Now you stay out of Object, y'hear?
fullofcaffeine has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
patdoher_ has joined #ruby
patdoher_ has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
nemo_ has joined #ruby
patdoher_ has joined #ruby
<cubicme>
Ox0dea: haha, definitely. just a whacky solution for a kata.
patdohere has quit [Ping timeout: 252 seconds]
cubicme has quit [Read error: Connection reset by peer]
craysiii has joined #ruby
pocketprotector- has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Remote host closed the connection]
lewis1711 has joined #ruby
nateberkopec has joined #ruby
cubicme has joined #ruby
fullofcaffeine has joined #ruby
akkad has quit [Excess Flood]
s00pcan has quit [Ping timeout: 260 seconds]
cubicme_ has joined #ruby
interpolator has quit []
patdoher_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has joined #ruby
craysiii has quit [Quit: Leaving.]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cubicme has quit [Ping timeout: 272 seconds]
cubicme_ is now known as cubicme
lewis1711 has left #ruby ["Ex-Chat"]
nateberkopec has quit [Ping timeout: 268 seconds]
akkad has joined #ruby
patdohere has joined #ruby
bkxd_ has joined #ruby
Chaoborid has quit [Remote host closed the connection]
lxsameer has joined #ruby
patdohere has quit [Client Quit]
Channel6 has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
Suzeanne has joined #ruby
Chaoborid has joined #ruby
devbug has joined #ruby
Pupp3tm4st3r has joined #ruby
rrichardsr3 has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
yfeldblum has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
fullofcaffeine has joined #ruby
etrae has joined #ruby
Dopagod has joined #ruby
weemsledeux has joined #ruby
awrfas2 has quit [Ping timeout: 256 seconds]
beauby has joined #ruby
GriffinHeart has joined #ruby
demonlove has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lessless has joined #ruby
<demonlove>
.
bb010g has joined #ruby
patdohere has joined #ruby
awrfas2 has joined #ruby
krimson has joined #ruby
<Ox0dea>
demonlove: Who's died?
GriffinHeart has quit [Ping timeout: 246 seconds]
etrae has quit [Ping timeout: 260 seconds]
<demonlove>
carla brune
<demonlove>
kidding
krimson has quit [Ping timeout: 265 seconds]
krz has joined #ruby
bigmac_ has joined #ruby
fullofcaffeine has quit [Ping timeout: 246 seconds]
devbug has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
djbkd has joined #ruby
SamGerber has quit [Quit: Leaving]
grekkos_ has quit [Ping timeout: 250 seconds]
nemo_ has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 246 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fedexo has quit [Ping timeout: 240 seconds]
nemo_ has joined #ruby
rrichardsr3 has quit [Ping timeout: 268 seconds]
p1k has joined #ruby
<p1k>
how is it possible to load an arbitrary gem in irb/pry console?
<bougyman>
require 'thegem'
Chaobori_ has joined #ruby
<p1k>
that doesn't work without a gemfile
jenrzzz has quit [Ping timeout: 250 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bl0ndie has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigmac_ has quit [Ping timeout: 250 seconds]
patdohere has joined #ruby
<Radar>
yes it does
Chaoborid has quit [Ping timeout: 264 seconds]
zenguy_pc has joined #ruby
orion has left #ruby [#ruby]
<p1k>
Radar: under what special conditions?
<Radar>
p1k: gem install thegem
Dopagod has quit [Quit: WeeChat 1.0]
<Radar>
p1k: irb
<Radar>
p1k: require 'thegem'
<Radar>
no ???, just profit
<p1k>
that doesn't work
<Radar>
?didntwork
<ruboto_>
I don't know anything about didntwork
<Radar>
ruboto_: So useless.
<Radar>
What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
<Radar>
Give us some info to go on, at least.
jenrzzz has joined #ruby
<p1k>
Radar: LoadError: cannot load such file -- benchmark-ips, from /Users/user/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
<DEA7TH>
my problem was find_or_create instead of find_or_create_by
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JJM has joined #ruby
sdfgsdfg has joined #ruby
Spami has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
SylarRuby has joined #ruby
joufflu has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
big|bad|wolf has joined #ruby
Oog has joined #ruby
<DEA7TH>
Yay, it works! And it creates (n ** 2) * 2 assertions. (n = 150)
stardiviner has joined #ruby
Kara_ has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
segfalt has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 is now known as solocshaw
<jhass>
this sounds an awful lot like you're asserting implementation instead of behavior
mdih has joined #ruby
<mattprelude>
Not really a Ruby question but general OOP/separation of responsibilities. I want to create a User object from a database call (SELECT {fields} FROM `users`). Which classes should I need to do this, and what should their responsibilities be?
fullofcaffeine has joined #ruby
<jhass>
well, that's controversial, the more popular patterns are active record (Rails' activerecord is not actually in implementation thereof) and repository
Kara has quit [Ping timeout: 272 seconds]
<DEA7TH>
I'm asserting a large set of updates, which must happen on function call. It does do n**2 updates. The other n**2 is for find_or_create_by
above has joined #ruby
<DEA7TH>
And it's still loading (10 minutes now). I'm not even hitting the DB!
<DEA7TH>
Trying another implementation...
varunwachaspati has quit [Quit: Connection closed for inactivity]
<jhass>
yeah, you can probably write a single INSERT or UPDATE
<jhass>
activerecord-import might be handy
stardiviner has quit [Ping timeout: 255 seconds]
fullofcaffeine has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
DoubleMalt has joined #ruby
<DEA7TH>
It has to insert anything which is missing. A single update won't do.
<DEA7TH>
If it isn't missing, it cannot insert because that's a duplicate, so a single insert can't either.
shinnya has quit [Ping timeout: 265 seconds]
stardiviner has joined #ruby
pathrocle has joined #ruby
pwnd_nsfw has joined #ruby
chouhoulis has quit [Remote host closed the connection]
tk__ has joined #ruby
<DEA7TH>
But that's hardly relevant because I'm not actually contacting the DB
nateberkopec has joined #ruby
Ox0dea has quit [Ping timeout: 250 seconds]
ruurd has joined #ruby
nemo_ has joined #ruby
iateadonut has joined #ruby
lavros has quit [Quit: leaving]
bkxd has joined #ruby
p1k has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
Kara has joined #ruby
_blizzy_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 265 seconds]
Gnomethrower has joined #ruby
atomical has joined #ruby
segmond has joined #ruby
p1k has joined #ruby
BTRE has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
DanKnox[away] is now known as DanKnox
DanKnox is now known as DanKnox[away]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<DEA7TH>
Turns out that Mocha was slowing me down. When I rewrote it to use just 2 asserts (keep all update calls in a set, and check equality with expected set), it ran really fast even with n=234 (n**2 = 55k).
skade has joined #ruby
DanKnox[away] is now known as DanKnox
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
ruurd has joined #ruby
Dmitry has joined #ruby
hadrig has quit [Ping timeout: 244 seconds]
segfalt has quit [Quit: segfalt]
<Dmitry>
Hi all. I use bundler to manage my project gems and also I have Vagrant installed via system-wide. I'd like to use Git module in my Vagrantfile to checkout provisioning files from another git repository, but ruby doesn't see the git gem. Even if I do require 'bundler/setup' befor require 'git'
victortyau has joined #ruby
David27 has quit [Read error: Connection reset by peer]
skade has quit [Read error: Connection reset by peer]
Oog has quit []
skade has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
etrae has quit [Ping timeout: 265 seconds]
etrae has joined #ruby
jenrzzz has joined #ruby
lessless has joined #ruby
<jhass>
Dmitry: bundle show git ?
corehook has joined #ruby
<jhass>
also what's the exact error message?
skade has quit [Read error: Connection reset by peer]
umgrosscol has quit [Remote host closed the connection]
I has joined #ruby
moeabdol has joined #ruby
Amnesia has left #ruby [#ruby]
I is now known as Guest67642
mary5030 has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
Amnesia has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
EllisTAA has joined #ruby
htmldrum has joined #ruby
leafybasil has joined #ruby
zenguy_pc has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
astrobun_ has joined #ruby
axl_ has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
p1k has quit [Ping timeout: 268 seconds]
leafybasil has joined #ruby
htmldrum has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
hfp_work has joined #ruby
Kara has joined #ruby
diegoaguilar has joined #ruby
chipotle has quit [Ping timeout: 244 seconds]
Kara_ has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
Cyther has joined #ruby
akkad has quit [Excess Flood]
JJM has joined #ruby
gregoriokusowski has joined #ruby
Renich has joined #ruby
Renich has quit [Client Quit]
Renich has joined #ruby
JJM has quit [Client Quit]
JJM has joined #ruby
bMalum has quit [Quit: bMalum]
akkad has joined #ruby
jordanm has quit [Quit: Konversation terminated!]
Oog has joined #ruby
nemo_ has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bitsapien has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
diegoaguilar has quit [Ping timeout: 250 seconds]
varunwachaspati has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
joncol has joined #ruby
bb010g has joined #ruby
<joncol>
Are there any best practices established regarding the use of Observable, when using it to handle many types of notifications? I.e. I want different kinds of notifications for different events that occur. Should I just pass the event type as a parameter in the notify_observers call and let the listeners filter out what kinds of events they want to react to?
Alina-malina has joined #ruby
nofxx has joined #ruby
Bellthoven has joined #ruby
aryaching has joined #ruby
patdohere has joined #ruby
patdohere is now known as patdohere_afk
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
tynamite has joined #ruby
diegoaguilar has joined #ruby
bMalum has joined #ruby
patdohere_afk is now known as patdohere
patdohere is now known as patdohere_afk
CaseyOnHex has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
<tynamite>
Is anyone there?
<jhass>
you are
jun has joined #ruby
<tynamite>
lol
minimalism has quit [Quit: leaving]
<tynamite>
Well I'm having a problem inserting the % symbol into my database. It's not my ORM's fault and the stack trace shows a ruby source code file in the first line.
<tynamite>
You can do the same things in every language. It's just a personal preference.
<m0nge>
do you think that I should put another language in the equation?
jun has quit [Remote host closed the connection]
<m0nge>
shevy: ^
<jhass>
no, we think that it doesn't really matter
<jhass>
pick one and focus on it
Azure has joined #ruby
<m0nge>
ok
<havenwood>
m0nge: Just learn Ruby. You're in #ruby after all.
<jhass>
then learn a second one when you feel comfortable
<m0nge>
i read on some websites that ruby is the easiest
<shevy>
m0nge well, in order to be able to answer that, you'd have to say what kind of use case you have. For instance, if you intend to only use a language for web-related issues etc...
<m0nge>
most friendly
<shevy>
lua should be faster than the other 3 :)
<m0nge>
ok
<havenwood>
m0nge: We have friendly foxes and chunky bacon.
<m0nge>
by now.. my main objectives
<jhass>
lua is one of the languages that doesn't teach you the separation between map and list though
<shevy>
ruby can be quite complex... if you try to keep it simple, it will stay simple though
Bellthoven has quit []
<m0nge>
it's internet and iOS. I do know that PHP is good and Swift is good too but those are other type of languages right? more specific ones
lamer14449848587 has quit [Ping timeout: 268 seconds]
<havenwood>
shevy: How do you gauge community size. I'd have thought Ruby community would be about the same size as the Python community.
<m0nge>
websites* i mean
<shevy>
havenwood I dunno... various factors... #python has like 1700, we have 1007... python seems to in general have better or more complete GUI bindings... charts say that there is a wider adoption of python than ruby or perl and so on. And last but not least THE ULTIMATE AUTHORITY... TIOBE!
<havenwood>
m0nge: PHP isn't a general purpose programming language like Ruby, Python or Perl.
<havenwood>
shevy: hahaha
<jhass>
havenwood: well, it actually is
<jhass>
but it has the same problem as lua, among others
<m0nge>
yes. havenwood that's why i did not put that one on the list tho
<shevy>
php is really strange
<havenwood>
jhass: I thought even they say it isn't general purpose?
Bellthoven has joined #ruby
minimalism has joined #ruby
<shevy>
I remember, one of my last projects was an IRC bot in php
<jhass>
I dunno what they say, I know that i wrote a Gtk hello world in it once
<joncol>
What's a good way to do events in Ruby? The Observable module included in the language only allows me to listen to a general "something changed" event. I want to define multiple event types. Are there established best practices?
<shevy>
I failed. I then switched to ruby, and with help from rubyforum.de or so, got it up and running in perhaps 2 weeks
<jhass>
and that I setup my sheevaplug with a CLI PHP script
<shevy>
oohhh php-gtk :)
<havenwood>
the humanity
<shevy>
"PHP-GTK 2 currently supports GTK+ 2.24.10 or greater."
<shevy>
they seem to be working on gtk3 now
<shevy>
ruby already has gtk3 support mostly, sorta
<havenwood>
m0nge: If you're interested in creating iOS apps then Swift would probably be a good lang to learn some programming paradigms.
diegoaguilar has quit [Remote host closed the connection]
sankaber has joined #ruby
Kara_ has quit [Ping timeout: 240 seconds]
podman has joined #ruby
<havenwood>
format, shards, good stuff!
BTRE has quit [Ping timeout: 246 seconds]
fullofcaffeine has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
jun has joined #ruby
workmad3 has joined #ruby
lamer14449848587 has joined #ruby
Jackneill has joined #ruby
tynamite has quit [Ping timeout: 246 seconds]
sevenfourk has joined #ruby
sevenfourk has quit [Client Quit]
pontiki has joined #ruby
symm- has joined #ruby
grekkos_ has joined #ruby
xa0s_ has joined #ruby
leat2 has joined #ruby
leat1 has quit [Remote host closed the connection]
Pupeno has joined #ruby
<DEA7TH>
array.product is awesome!
workmad3 has quit [Ping timeout: 255 seconds]
xa0s_ has quit [Client Quit]
adac has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
pontiki has quit [Ping timeout: 246 seconds]
iateadonut has quit [Quit: Leaving.]
grekkos_ has quit [Ping timeout: 272 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
BTRE has joined #ruby
centrx has joined #ruby
SylarRuby has joined #ruby
leat2 has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
Skelz0r has joined #ruby
jun__ has joined #ruby
Pupeno has quit [Remote host closed the connection]
hectortrope has quit [Read error: Connection reset by peer]
leat2 has joined #ruby
Rickmasta has joined #ruby
jun has quit [Ping timeout: 240 seconds]
EllisTAA has joined #ruby
htmldrum has joined #ruby
zenguy_pc has joined #ruby
Skelz0r has quit [Ping timeout: 265 seconds]
tynamite has joined #ruby
Musashi007 has joined #ruby
aryaching has joined #ruby
SylarRuby has quit [Remote host closed the connection]
hectortrope has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
SylarRuby has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kristian_on_linu has joined #ruby
<kristian_on_linu>
hi
<kristian_on_linu>
okay, so I edited a ruby gem in my home dir
<kristian_on_linu>
how do I reload it?
<jhass>
you mean restore to the original?
chipotle has quit [Quit: cheerio]
Kara has joined #ruby
Skelz0r has joined #ruby
bitsapien has quit [Quit: bitsapien]
yfeldblum has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Kara_ has joined #ruby
<kristian_on_linu>
jhass: no
fullofcaffeine has joined #ruby
<kristian_on_linu>
it seems like the changes I made did not have any effect, so I'm wondering if it is indeed loaded
<jhass>
then?
<jhass>
how do you test?
jun__ has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 264 seconds]
nemo__ has joined #ruby
SylarRuby has quit [Ping timeout: 244 seconds]
kiez0rd has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
<kristian_on_linu>
I just run the (jekyll) command, and I see that nothing's changed. So I wondered if the altered gem had been loaded.
<shevy>
kristian_on_linu when you made your modifications, rebuild the gem; the .gemspec is usually sufficient for that: "gem build foo.gemspec", then you can re-install the gem
<kristian_on_linu>
shevy: thanks
<jhass>
I thought you edited the installed files
raazdaan has joined #ruby
<kristian_on_linu>
I did
<jhass>
then shevy misunderstood you
Spami has joined #ruby
<kristian_on_linu>
it is in ~/.gem/ruby/1.9.1/gems/jekyll-scholar-4.5.0 $
komanda9787 has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
<jhass>
btw Ruby 1.9 is out of official support
<kristian_on_linu>
jhass: my ruby vocabulary is poor, that's probably why you did not understand
<shevy>
yeah jhass often has that problem
<kristian_on_linu>
I just took the default from my repos, I think
<jhass>
shevy: I think I understood them better than you did
<kristian_on_linu>
but thanks for the warning
komanda9787 has quit [Remote host closed the connection]
<shevy>
jhass: I think you may not have understood him properly
* kristian_on_linu
is just one person
raazdaan has quit [Max SendQ exceeded]
kies^ has quit [Ping timeout: 240 seconds]
dagda1 has joined #ruby
* kristian_on_linu
are Bizarro!
<jhass>
anyway, it should apply, Ruby doesn't have some cache or compiled files or something
Yzguy has quit [Quit: Zzz...]
<jhass>
new process, everything is loaded again
Yzguy has joined #ruby
kies^ has joined #ruby
<kristian_on_linu>
you mean a new shell, jhass ?
<jhass>
maybe your changes just didn't affect anything? or you have multiple versions installed and another one is loaded?
<jhass>
no, a new process
towski_ has quit [Remote host closed the connection]
<jhass>
ruby
<kristian_on_linu>
so when I run jekyll the next time, it should read the altered gem?
<jhass>
jekyll will run something like /usr/bin/ruby /usr/bin/jekyll in effect
raazdaan has joined #ruby
<jhass>
most likely
ruurd has quit [Ping timeout: 272 seconds]
<kristian_on_linu>
jekyll is in /home/kristian/.bin/jekyll
<jhass>
unless you have some prefork stuff like spork or spring running, but that's very unlikely for jekyll
<jhass>
the point was that it just has a ruby hashbang and thus launches a ruby process
<kristian_on_linu>
OK
raazdaan has quit [Max SendQ exceeded]
Skelz0r has quit [Ping timeout: 250 seconds]
jun has joined #ruby
kiez0rd has quit [Ping timeout: 256 seconds]
fullofcaffeine has quit [Ping timeout: 240 seconds]
corehook has quit [Remote host closed the connection]
minimalism has quit [Ping timeout: 240 seconds]
<kristian_on_linu>
the line was: 'bibtex_skip_fields' => [ :abstract, :month_numeric ],
adac has quit [Ping timeout: 272 seconds]
<kristian_on_linu>
I changed it to: 'bibtex_skip_fields' => [ :abstract, :month_numeric, :DOI, :URL, :doi, :url ],
<jhass>
sounds like something you should be able to set in your config inside your project
kies^ has quit [Ping timeout: 260 seconds]
<kristian_on_linu>
jhass: indeed, but I could not get that to work
<jhass>
well, since the direct edit doesn't work either, it's probably the same issue?
fullofcaffeine has joined #ruby
segfalt has joined #ruby
swgillespie has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<kristian_on_linu>
it should not be necessary to rebuild?
<jhass>
there's nothing to rebuild really
<kristian_on_linu>
ok, thanks
<kristian_on_linu>
I wonder what the issue is
Skelz0r has joined #ruby
kobain has joined #ruby
bonhoeffer has joined #ruby
swgillespie is now known as swgillespie[GT]
victortyau has quit [Quit: Leaving]
Vile` has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
Kara has quit [Remote host closed the connection]
colstrom_ has joined #ruby
acke has quit [Remote host closed the connection]
sankaber has joined #ruby
devbug has joined #ruby
jun has quit [Remote host closed the connection]
<jhass>
well, open an issue detailing the issue and how to reproduce it
<jhass>
usually the fastest to get feedback from the author
Kara has joined #ruby
colstrom_ has quit [Client Quit]
fullofca_ has joined #ruby
skweek has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 246 seconds]
futilegames has joined #ruby
skcin7 has quit [Max SendQ exceeded]
karapetyan has quit [Remote host closed the connection]
<kristian_on_linu>
jhass: yes, I just have a feeling it might be me/my setup ... would not be the first time
karapetyan has joined #ruby
<kristian_on_linu>
anyway, thanks for the help, all
Kara has quit [Remote host closed the connection]
kirun_ has joined #ruby
skcin7 has joined #ruby
corehook has joined #ruby
DoubleMalt has joined #ruby
futilegames has quit [Ping timeout: 252 seconds]
ereslibre has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 246 seconds]
Kara_ has quit [Ping timeout: 244 seconds]
VeryBewitching has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruboto_>
To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
futilegames has quit [Quit: futilegames]
<jhass>
But Hash#<< isn't a thing, you can't append to hash
ruurd has quit [Read error: Connection reset by peer]
<CookieB>
so the type of the container is called Hash# in ruby?
yfeldblum has quit [Remote host closed the connection]
p0wn3d__ has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
kalusn has quit [Remote host closed the connection]
DanKnox is now known as DanKnox[away]
chipotle_ has joined #ruby
Channel6 has quit [Quit: Leaving]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
Coldblackice has joined #ruby
<shevy>
pretty amazing how big some ruby projects became... homebrew has more than 45000 pull requests https://github.com/Homebrew/homebrew/pull/45056 ... 265 open issues and 15.666 closed issues
<jhass>
shevy: issue and pull request ids are the same
atomical has joined #ruby
eminencehc has joined #ruby
JJM has joined #ruby
lamer14449848587 has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
yashinbasement has joined #ruby
sdothum has joined #ruby
Dmitry has left #ruby [#ruby]
Bellthoven has quit []
corehook has quit [Remote host closed the connection]
atomical_ has joined #ruby
chipotle_ has quit [Max SendQ exceeded]
chipotle has joined #ruby
corehook has joined #ruby
jun has joined #ruby
corehook has quit [Client Quit]
DanKnox[away] is now known as DanKnox
atomical has quit [Ping timeout: 255 seconds]
devbug_ has joined #ruby
chipotle_ has joined #ruby
eminencehc has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
mdih has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 260 seconds]
devbug__ has joined #ruby
dikaio has joined #ruby
devbug_ has quit [Ping timeout: 256 seconds]
jun has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
fedexo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
webirc has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
yashinbasement has quit [Ping timeout: 244 seconds]
atomical_ has quit [Ping timeout: 255 seconds]
p0wn3d__ has quit [Ping timeout: 268 seconds]
bonhoeffer_ has joined #ruby
pcfreak30 has quit [Remote host closed the connection]
CookieB has quit [Quit: Page closed]
devbug has joined #ruby
bonhoeffer_ has quit [Client Quit]
bonhoeffer has quit [Ping timeout: 264 seconds]
last_staff has quit [Ping timeout: 246 seconds]
Jardayn has joined #ruby
devbug__ has quit [Ping timeout: 256 seconds]
rkazak_ has joined #ruby
kalusn has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jackneill has quit [Ping timeout: 260 seconds]
doublemalt_ has quit [Ping timeout: 250 seconds]
webirc has quit [Quit: WeeChat 0.4.2]
ruurd has quit [Quit: ZZZzzz…]
Guest37717 has quit [Quit: leaving]
Ariadeno has joined #ruby
jun has joined #ruby
cb_ has joined #ruby
cb_ has joined #ruby
jbw has quit [Ping timeout: 250 seconds]
TheRinger has quit [Quit: Konversation terminated!]
tomchapin has joined #ruby
bruno- has joined #ruby
arup_r has quit [Quit: Leaving]
jun has quit [Remote host closed the connection]
jun has joined #ruby
atomical has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
jbw has joined #ruby
sankaber has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
framling has joined #ruby
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cyther has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
WizJin has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
SylarRuby has joined #ruby
blackmesa has joined #ruby
shtirlic has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
atomical_ has joined #ruby
yfeldblum has joined #ruby
sepp2k has quit [Ping timeout: 244 seconds]
SylarRuby has quit [Ping timeout: 260 seconds]
dagda1 has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
bl0ndie has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
lamer14449848587 has joined #ruby
krz has quit [Quit: WeeChat 1.2]
U7se6 has quit [Ping timeout: 246 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug__ has joined #ruby
Azure|dc is now known as Azure
<gutigen>
exit
gutigen has quit [Quit: WeeChat 1.3]
eminencehc has joined #ruby
jenrzzz has joined #ruby
lamer14449848587 has quit [Ping timeout: 240 seconds]
jun has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 265 seconds]
devbug has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
tomchapin has joined #ruby
atomical_ has quit [Ping timeout: 255 seconds]
eminencehc has quit [Ping timeout: 255 seconds]
shtirlic has joined #ruby
Renich has quit [Quit: leaving]
Porfa has quit [Quit: Porfa]
jenrzzz has quit [Ping timeout: 260 seconds]
michael_mbp has quit [Excess Flood]
saxy has quit []
acke has joined #ruby
marsjaninzmarsa has joined #ruby
ZeeNoodleyGamer has joined #ruby
ZeeNoodleyGamer is now known as Guest88785
rodfersou has quit [Quit: leaving]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
michael_mbp has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
phutchins has quit [Ping timeout: 240 seconds]
chipotle has quit [Max SendQ exceeded]
fullofcaffeine has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
jun has joined #ruby
glundgren has joined #ruby
<glundgren>
hey guys, good evening
<glundgren>
theres any way to get the previous object inside an .each ?
devbug has joined #ruby
<glundgren>
i mean, a ruby way to do it
<jhass>
a bit vague, could be .each_cons(2) or .inject
<jhass>
?xy
<ruboto_>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
fullofcaffeine has quit [Ping timeout: 256 seconds]
s2013 has joined #ruby
skweek has joined #ruby
<glundgren>
jhass, i think each_cons should work, let me try
chipotle has joined #ruby
devbug__ has quit [Ping timeout: 272 seconds]
XxionxX has joined #ruby
jun has quit [Remote host closed the connection]
jgt has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 252 seconds]
riotjone_ has joined #ruby
zenguy_pc has joined #ruby
cwong_on_irc has joined #ruby
kirun has quit [Quit: Client exiting]
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
devbug_ has joined #ruby
cwong_on_irc has joined #ruby
riotjon__ has quit [Ping timeout: 246 seconds]
musl has quit [Ping timeout: 250 seconds]
anisha has joined #ruby
shinnya has joined #ruby
balazs_ has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
Vile` has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
mleung has joined #ruby
aryaching has joined #ruby
hmsimha has joined #ruby
jun has joined #ruby
Vile` has joined #ruby
jenrzzz has joined #ruby
baweaver has quit [Remote host closed the connection]
SCHAAP137 has quit [Read error: Connection reset by peer]
Asher has quit [Quit: Leaving.]
Pupeno has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.3]
quazimodo has joined #ruby
mleung has quit [Quit: mleung]
acke has quit [Remote host closed the connection]
acke has joined #ruby
Vile` has quit [Ping timeout: 265 seconds]
SCHAAP137 has joined #ruby
jun has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
chipotle has quit [Ping timeout: 240 seconds]
closer has joined #ruby
Vile` has joined #ruby
yosiat has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
p0wn3d__ has joined #ruby
jun has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
_kfpratt has quit [Ping timeout: 244 seconds]
ohcibi has quit [Remote host closed the connection]
aryaching has joined #ruby
yashinbasement has joined #ruby
ohcibi has joined #ruby
anisha has quit [Ping timeout: 264 seconds]
haylon has joined #ruby
<haylon>
Hey everyone. I'm not sure what to do with the return I get from my gem I'm working on. I initialize an object, but the object is supposed to return a JSON object. Instead when I do client.class, it says its just my Module and Class structure. https://github.com/predatorian3/rabbix
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
s2013 has quit [Max SendQ exceeded]
<jhass>
?json_object
<ruboto_>
I don't know anything about json_object
<jhass>
mh
htmldrum has joined #ruby
<jhass>
?jsonobject
<ruboto_>
there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
beast has joined #ruby
s2013 has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
mleung has joined #ruby
s2013 has quit [Max SendQ exceeded]
<haylon>
Maybe JSON was the wrong word. In the client.rb file, I have it receive the JSON, then do the JSON.parse(json) and return the hash
<jhass>
haylon: the return value of initialize is ignored
<haylon>
is that how it always is?
<jhass>
yes
<jhass>
the point of a classes initialize is to setup the instance
<haylon>
Gret. Well, guess I'll redo this.
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
mleung has quit [Quit: mleung]
fullofcaffeine has joined #ruby
haylon_ has joined #ruby
<haylon_>
Sorry jhass
<haylon_>
my pc BSOD'd
<shevy>
BSD?
<shevy>
are they so bad?
<jhass>
get a better OS ;P
<jhass>
shevy: bluescreen of death
haylon has quit [Ping timeout: 260 seconds]
<haylon_>
lol, I wish. Corporate device. I keep telling them to give me RHEL, or Debian
haylon_ is now known as haylon
<haylon>
If I could use Linux at my work, 90% of my issues would be gone
<haylon>
So, anyhting you said in hte last 2min I didn't get