havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Ox0dea> *expect
<t0code> so modules are used to help decide where to send data?
<t0code> usually...
<Ox0dea> Well, sure, where to send it, whence to retrieve it, and... well, any kind of disambiguation, really.
etrae has joined #ruby
northfurr has joined #ruby
inteq has joined #ruby
<Ox0dea> Modules are much more than namespaces, of course, but it's early days in your journey.
fullofcaffeine has joined #ruby
<BraddPitt> modules rock
<t0code> great. thank you, and i hope you dont mind a litany of questions coming from myself over the coming weeks :p
Kara_ has joined #ruby
Kara has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
awrfas2 has quit [Ping timeout: 246 seconds]
ruby-lang544 has joined #ruby
HammyJammy has joined #ruby
tenderlove has quit [Ping timeout: 244 seconds]
<havenwood> BraddPitt: module Rock; def self.rocks?; true end end
JammyHammy has quit [Ping timeout: 252 seconds]
zenguy_pc has quit [Ping timeout: 244 seconds]
<havenwood> t0code: ask away!
tenderlove has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nxa> does anyone know how the coerce method works?
nateberkopec has joined #ruby
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 240 seconds]
oetjenj has quit [Ping timeout: 244 seconds]
tenderlove has quit [Ping timeout: 250 seconds]
<havenwood> nxa: What do you mean? Numeric#coerce or something else?
<havenwood> nxa: There're more than one coerce methods.
<nxa> havenwood: Yup. That.
tenderlove has joined #ruby
DoubleMalt has joined #ruby
fullofcaffeine has joined #ruby
Rickmasta has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox[away] is now known as DanKnox
<nxa> havenwood: How do user defined objects use coerce so they can be added to numbers and such?
freerobby has joined #ruby
dmolina has quit [Quit: Leaving.]
oetjenj has joined #ruby
craigs has joined #ruby
sankaber has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 250 seconds]
nb_bez___ has quit [Quit: Connection closed for inactivity]
nxa has left #ruby [#ruby]
zenguy_pc has joined #ruby
<havenwood> nx, hem, left I guess?
colstrom_ has quit [Ping timeout: 256 seconds]
wldcordeiro has quit [Read error: No route to host]
<havenwood> >> 42r.coerce 42
<ruboto_> havenwood # => [(42/1), (42/1)] (https://eval.in/452443)
<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.
<queuetip> havenwood: thanks!
<havenwood> >> require 'set'; Set.new
<ruboto_> havenwood # => #<Set: {}> (https://eval.in/452444)
SCHAAP137 has quit [Quit: Leaving]
DanKnox[away] is now known as DanKnox
Lucky__ has joined #ruby
craigs has joined #ruby
akkad has quit [Excess Flood]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> >> require 'set'; Set[1, 2, 1] # Also this sexiness.
<ruboto_> Ox0dea # => #<Set: {1, 2}> (https://eval.in/452445)
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…]
duderonomy has quit [Max SendQ exceeded]
maletor has joined #ruby
ddv has joined #ruby
<jhass> &ri Enumerable#each_cons Enumerable#any? @jason4483
oetjenj has joined #ruby
_aeris_ has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
rdavila has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
Kara has quit [Remote host closed the connection]
_aeris_ has joined #ruby
pathrocle has quit [Remote host closed the connection]
shevy has joined #ruby
dopamean_ has joined #ruby
eminencehc has joined #ruby
Kara_ has quit [Ping timeout: 255 seconds]
gaboesquivel has left #ruby [#ruby]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
workmad3 has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nateberkopec has joined #ruby
eminencehc has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
bkxd has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
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 } # :(
<ruboto_> Ox0dea # => nil (https://eval.in/452446)
<jhass> Ox0dea: each, not map
<Ox0dea> >> %w[foo bar baz].grep(/a/) { |s| s.upcase } # jhass
<ruboto_> Ox0dea # => ["BAR", "BAZ"] (https://eval.in/452447)
<jhass> grep != each
<jhass> and that's kinda weird behavior there
idefine has joined #ruby
<jason4483> Well I thought it'd be num, num + 1
<Ox0dea> It would be awesome and not weird if it were more pervasive.
<Ox0dea> Every method takes a block; why not use the damned things?
swgillespie has joined #ruby
<jhass> jason4483: try listing all possible values of i _and_ i+1 _and_ i+2 for _all_ iterations of your loop
<jhass> like on a piece of paper
* lagweezle nods.
<lagweezle> jason4483: What he said.
s2013 has joined #ruby
* lagweezle wonders if referring to people in IRC as 'it' would annoy them.
towski_ has quit [Ping timeout: 240 seconds]
to_json has quit [Read error: Connection reset by peer]
<jhass> Ox0dea: well, allocating arrays is kinda expensive
craysiii has joined #ruby
s2013 has quit [Max SendQ exceeded]
<lagweezle> jhass: ... and now I'm sad. I need to get back into reading more often.
jenrzzz has quit [Ping timeout: 246 seconds]
Spami has quit [Quit: This computer has gone to sleep]
duderonomy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
gaboesqu_ has joined #ruby
wldcordeiro has quit [Ping timeout: 240 seconds]
craigs has joined #ruby
<jason4483> I wrote them down. I re-printed my array basically.
noodle has joined #ruby
CloCkWeRX has joined #ruby
stamina has joined #ruby
craigs has quit [Remote host closed the connection]
sankaber has quit [Read error: Connection reset by peer]
<jhass> so you didn't notice anything in the process?
craigs has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
grekkos_ has joined #ruby
<jason4483> No. What should jump out at me?
<jhass> http://p.jhass.eu/4.txt fill this table
diegoviola has quit [Ping timeout: 240 seconds]
<jason4483> |1,2| |2,3| |3,4|
failshell has joined #ruby
<jhass> what are valid indexes for a?
<jason4483> only 0,1,2
etrae has joined #ruby
<jhass> clicked yet?
awrfas2 has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
Cyther has quit [Read error: Connection reset by peer]
<jason4483> uh
FernandoBasso has quit [Quit: WeeChat 1.3]
ngscheurich has joined #ruby
Ox0dea has joined #ruby
<jason4483> No
<jason4483> I know Im missing something ovious
oetjenj has quit [Ping timeout: 260 seconds]
<jhass> you just listed all indexes you generated
<jhass> you just listed all indexes that are valid
<Ox0dea> jhass: Could you provide the IPA for your name?
<jhass> compare
<jhass> Ox0dea: I never learned IPA :(
<Ox0dea> For shame.
<Ox0dea> Joe-nuh ha-zuh, presumably?
GriffinHeart has joined #ruby
<jhass> like in the english syllable's?
chipotle has joined #ruby
<Ox0dea> Approximately.
<jhass> no, far away
<Ox0dea> The shame is mine.
<jason4483> Okay, my array still prints indexes that exceed all valid indexes
diego1 has joined #ruby
<jhass> Ox0dea: tbf english doesn't really have the necessary syllables
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
<Ox0dea> Are you sure?
<citrusfizz> i have a nested hash and i need to add more and more data to it from a loop and call it outside the loop best way to do this?
tmtwd has quit [Quit: Leaving]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
<Ox0dea> citrusfizz: Are you sure?
oetjenj has joined #ruby
<jhass> jason4483: "your loop uses", but yes
failshell has quit [Ping timeout: 240 seconds]
<jason4483> jhass I would liek to take a moment and say thanks for bearing with me
<jhass> Ox0dea: I didn't come up with anything comparable yet
oetjenj has quit [Read error: Connection reset by peer]
<citrusfizz> am i sure about what Ox0dea
<jason4483> I've been coding for less than a week
<jason4483> and its kicing my ass
<lagweezle> Ox0dea: IPA?
<Ox0dea> lagweezle: Standardized phonetic pronunciation rules.
stamina has quit [Ping timeout: 246 seconds]
<lagweezle> Ooooooh.
<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?
Porfa_ has quit [Quit: Porfa_]
<BraddPitt> has anyone here used the Audite gem? https://github.com/georgi/audite
queuetip has left #ruby [#ruby]
<citrusfizz> Ox0dea: http://pastebin.com/bR4HT6P7
<ruboto_> citrusfizz, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1f1759b7b039c6db29de
<ruboto_> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Ox0dea> citrusfizz: I don't have ruboto_ on ignore.
<Ox0dea> Also, `allButts` isn't the greatest variable name.
DanKnox is now known as DanKnox[away]
podman has quit [Quit: Connection closed for inactivity]
<Ox0dea> You're re-assigning to `s`, thus overwriting the data previously contained therein.
weemsledeux has joined #ruby
CloCkWeRX has joined #ruby
craigs has quit []
<Ox0dea> >> h = {}; 10.times { |i| h[i] = i }; h # citrusfizz
<ruboto_> Ox0dea # => {0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7, 8=>8, 9=>9} (https://eval.in/452448)
<jhass> Ox0dea: jɔnə has I guess
<Ox0dea> jhass: The E in Hasse is silent?!
<jhass> Ox0dea: my last name is Haß
<Ox0dea> How embarrassing.
<Ox0dea> My apologies.
<jhass> now I'm curious where you got Hasse from :P
<jhass> but no worries
<Ox0dea> I don't see ß terribly often, and something glitched.
<jhass> understandable
bayed has quit [Quit: Connection closed for inactivity]
<jhass> the fun part is the the modern german ortography would write it as Hass
<jhass> *that the
<Ox0dea> Sure, I knew that bit.
<Ox0dea> Couldn't tell you where I got the E, though.
<Ox0dea> Maybe your TLD.
<jhass> mmh
<jhass> .web's still in contention, else I'd got hass.web
akkad has quit [Excess Flood]
<Ox0dea> What's contentious about it?
<jhass> too many idiots want it
gix has joined #ruby
<Ox0dea> ICANN can't just drop it, though?
<jhass> no
<shevy> hass.web for Rammstein
<jhass> but they did their part by declaring webs as similar
akkad has joined #ruby
<jhass> while things like vehicle and vehicles is perfectly fine apparently
zenguy_pc has quit [Ping timeout: 260 seconds]
<Ox0dea> shevy: Relevant: http://instacod.es/77164
<Ox0dea> Is it possible for an object to determine that it's being returned (or yielded)?
<Ox0dea> diegoviola: I've been listening to "Awake" on repeat since you linked it, by the way.
ngscheurich has quit [Ping timeout: 268 seconds]
Musashi007 has quit [Quit: Musashi007]
lkba_ has joined #ruby
<Ox0dea> I'm considering getting some sort of neuronal implant so I can just always be hearing it.
rdavila has quit [Read error: Connection reset by peer]
<diegoviola> Ox0dea: cool
<Ox0dea> No, you.
<diegoviola> Ox0dea: ?
<jhass> good old zombie is playing in your head now?
nateberkopec has joined #ruby
<diegoviola> what do you mean
Bellthoven has quit []
<Ox0dea> diegoviola: This is the second time we've done this.
<diegoviola> Ox0dea: not sure what you're ferring to
Feyn has joined #ruby
weihan has quit [Ping timeout: 255 seconds]
<Ox0dea> I was saying you're cool for having introduced me to a good song.
lkba has quit [Ping timeout: 260 seconds]
goldfish6744 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- It'll be on slashdot one day...]
<Ox0dea> The other time I was just poking fun.
<diegoviola> Ox0dea: ok
<diegoviola> Ox0dea: I also like that song
<diegoviola> #ruby-offtopic
<diegoviola> what does poking fun means
symm- has quit [Ping timeout: 240 seconds]
<Ox0dea> Ribbing.
nateberkopec has quit [Quit: Leaving...]
<diegoviola> ?
`tim` has joined #ruby
<Ox0dea> It's a sex thing.
Dopagod has quit [Ping timeout: 260 seconds]
prereflect has joined #ruby
webopsx has joined #ruby
Bellthoven has joined #ruby
symm- has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
<diegoviola> not really interested on that
`tim` has quit [Client Quit]
rdavila has joined #ruby
<eam> well, he already did it
<Ox0dea> diegoviola: Nevertheless, aces = pocket rockets.
<diegoviola> wat?
datanoise has joined #ruby
<eam> It's a pokemon thing
<Ox0dea> *Pokermon
<eam> now that's a sex thing
<Ox0dea> Poker? I hardly know her.
<eam> you've corrupted the purity of pokemon and I give up
<Nilium> Well today's been thoroughly disappointing and Ox0dea's joke just made it drastically worse because ಠ_ಠ
<Ox0dea> eam: Purity, you say?
<Ox0dea> > It remembers every dream it eats. It rarely eats the dreams of adults because children's are much tastier.
<Ox0dea> Drowzee's Silver entry.
<eam> granted according to the UN pokemon is a "killing game designed for toddlers "
jason4483 has quit [Ping timeout: 246 seconds]
<eam> perhaps it's my values which are misplaced after all
<Ox0dea> "They've only fainted," they said. "Let's not go to Lavender Town," they said. "'Tis a silly place."
CloCkWeRX has quit [Ping timeout: 255 seconds]
CloCkWeRX has joined #ruby
DanKnox[away] is now known as DanKnox
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
<Nilium> I like the pokemon that kidnaps children.
<Nilium> The balloon one.
<shevy> Halloween pokemon!
<Ox0dea> Nilium: It's only said that they vanish.
<Ox0dea> Could just be that Drifloon is coated in some sort of hallucinogenic.
dfinninger has quit [Remote host closed the connection]
<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
<ruboto_> VeryBewitching # => {0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7, 8=>8, 9=>9} (https://eval.in/452462)
<Ox0dea> citrusfizz: But you *can* decipher my crypticisms, so points there. :)
<VeryBewitching> That's the whole box.
<Ox0dea> citrusfizz: Do you want to see why I love 10?
DanKnox is now known as DanKnox[away]
rushed has quit [Quit: rushed]
<citrusfizz> what is the long way of writing this (assuming using the {} is a shortcut
wldcordeiro has quit [Ping timeout: 250 seconds]
tsou has joined #ruby
<Radar> citrusfizz: Hash.new?
<citrusfizz> or is this like a list comprehensions in python
<citrusfizz> sorry i'm more of a snake guy
<citrusfizz> then a jewle
<Ox0dea> Then I'm glad I didn't show you why I love 10.
<citrusfizz> the first part is creating the hash
<citrusfizz> i get that
<citrusfizz> its this n.times { |i| h[i] = i }; h
<citrusfizz> n.times do |i|
<citrusfizz> h[i] = i
<citrusfizz> whats the last h do
<Ox0dea> I put it there to show you the result.
<citrusfizz> what different betwewn the way your assigning h[i] to i and my s =.....
<citrusfizz> s = {inst.name => {'secHref'+ a.to_s => sec['href']}}
<Ox0dea> I'm assigning a value to a key; you're assigning to the whole thing.
<citrusfizz> think it clicked
<Ox0dea> Let's see it.
<Ox0dea> Now that you've stopped hissing, this is why I love 10: ∀ n ∈ ℝ: 10ₙ = n₁₀
joufflu has joined #ruby
<Ox0dea> For the symbolically disinclined: http://cowbirdsinlove.com/43
<Ox0dea> Not that 10 isn't a symbol, but you take my meaning.
<citrusfizz> s[inst.name] = {secHref+a.to_s -> sec['href']}
bkxd has quit [Ping timeout: 255 seconds]
<citrusfizz> running it now, lets see how bad i botched it
<Ox0dea> So close.
orion has left #ruby [#ruby]
gix has quit [Ping timeout: 260 seconds]
<Ox0dea> -> is for lambdae.
<citrusfizz> =>
<citrusfizz> ok much closer. only problem is that sometimes, there are two secHref (hence the need for the incrementing a
rushed has joined #ruby
<citrusfizz> it assigns the 2nd one
<citrusfizz> but not the first.
<citrusfizz> odd
<Ox0dea> citrusfizz: Post updated code?
Bellthoven has quit []
<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> orion: array_of_hashes.each { |hash| hash.delete :abc }
stardiviner has quit [Ping timeout: 264 seconds]
<citrusfizz> Ox0dea: so, should i create a loop to make the first assignment, and then make the next?
<Ox0dea> citrusfizz: See where you're initializing `a`?
<citrusfizz> i just moved that up, but now its way worse
<citrusfizz> lol
<Ox0dea> Why did you move it up?
<citrusfizz> a hunch
<citrusfizz> it was a wrong hunch
stardiviner has joined #ruby
<citrusfizz> but a hunch non the less
<Ox0dea> Well, where you *were* initializing `a` would be a great place to initialize `s[inst.name]` as well.
s00pcan has joined #ruby
michael_mbp has quit [Excess Flood]
DanKnox[away] is now known as DanKnox
bkxd has joined #ruby
michael_mbp has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
fullofca_ has joined #ruby
chipotle has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
brancher has quit [Ping timeout: 244 seconds]
<citrusfizz> i tried
arup_r has joined #ruby
fullofca_ has quit [Ping timeout: 250 seconds]
oetjenj has joined #ruby
northfurr has joined #ruby
northfurr has quit [Client Quit]
<citrusfizz> i don't understand
chipotle has quit [Ping timeout: 264 seconds]
fullofcaffeine has joined #ruby
failshell has quit []
t0code has quit []
darkf has joined #ruby
<citrusfizz> everything i'm doing just overwrites it
donkorte has joined #ruby
zenguy_pc has quit [Ping timeout: 268 seconds]
DanKnox is now known as DanKnox[away]
chipotle has joined #ruby
cmoneylulz has joined #ruby
Chaoborid has joined #ruby
yes`r has joined #ruby
cmoneylulz has quit [Client Quit]
cmoneylulz has joined #ruby
weihan has joined #ruby
hahuang61 has joined #ruby
<Ox0dea> citrusfizz: https://eval.in/452470
<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
<ruboto_> cubicme, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/872912721f4af16e6a2d
<ruboto_> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Davey has joined #ruby
Davey has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Davey has quit [Remote host closed the connection]
rippa has joined #ruby
Davey has joined #ruby
Davey has quit [Changing host]
Davey has joined #ruby
<Ox0dea> >> singleton_class # cubicme: Worth noting, at least.
Chaoborid has joined #ruby
<ruboto_> Ox0dea # => #<Class:#<Object:0x40532e34>> (https://eval.in/452473)
fullofcaffeine has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
<cubicme> Ox0dea: right, thanks
fullofcaffeine has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> cubicme: Do you need unbounded iteration like that, then?
<cubicme> Ox0dea: sorry, i don’t understand
<Ox0dea> cubicme: Are you looping up to a specific number?
<cubicme> Ox0dea: i’m indexing the nodes in a linked list, the loop will terminate on conditions after this part of code,
<Ox0dea> Right, unbounded, then.
Rickmasta has joined #ruby
<cubicme> Ox0dea: i need #index to return the value of ‘i’ at the time of definition
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<Ox0dea> Yes, you'll need to "close over" the value at such time.
<Ox0dea> Had your iteration been bounded, you could've used something like #times, which provides you with such a "closed over" value.
rushed has quit [Quit: rushed]
<Ox0dea> cubicme: Observe: https://eval.in/452474
<cubicme> Ox0dea: hmm, let me try something
<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'
<p1k> etc.
<Radar> p1k: And how did you install that gem?
`tim` has joined #ruby
<p1k> gem install 'gemname'
<Radar> literally 'gemname'?
Macaveli has joined #ruby
<p1k> literally 'benchmark-ups' for example
howdoi has joined #ruby
<Radar> Correct file to require is 'benchmark/ips'
GnuYawk has joined #ruby
GnuYawk has joined #ruby
<Radar> It even says that in the documentation.
skade has joined #ruby
bl0ndie has quit [Ping timeout: 260 seconds]
<Radar> There is no benchmark-ips file from that gem to require
`tim` has quit [Read error: Connection reset by peer]
Chaobori_ has quit []
baweaver has quit [Remote host closed the connection]
<p1k> Radar: thanks, so I have another one which doesn't work
<Radar> p1k: Did you read the documentation for that one too?
<p1k> Radar: i have
djbkd has quit []
<Radar> p1k: And what have you tried and how is it not working?
fullofcaffeine has quit [Ping timeout: 268 seconds]
<p1k> Rader: gem install 'disque-rb'; irb; require 'disque'; require 'disque/rb'; require 'disque/rb/0.0.0'
<Radar> p1k: Look in the lib dir on GitHub.
fullofcaffeine has joined #ruby
<Radar> p1k: The lib dir of all gems is what is available to require
<Radar> require 'disque' should've worked.
<Radar> If it's not working, show us the error it gives you.
Channel6 has quit [Ping timeout: 272 seconds]
sivsushruth has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
bl0ndie has joined #ruby
<p1k> Radar: when the gem is installed should the corresponding file be in lib?
<p1k> I have an empty module with a completely different name
<Radar> fun
<Radar> what `lib` directory are you talking about
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<p1k> i think the gem package is simply broken
<p1k> (the relative path is versions/2.2.3/lib/ruby/gems/2.2.0/gems/disque-rb-0.0.0/lib)
<Radar> why did that install version 0.0.0?
<Radar> Did you run "gem install disque-rb" or "gem install disque"?
<Radar> Oh, I see above you ran the other one.
<Radar> disque-rb
<Radar> That is a completely different gem to the one you linked from GitHub
<Radar> which is this gem https://rubygems.org/gems/disque
p1k has left #ruby ["Leaving"]
p1k has joined #ruby
bl0ndie has quit [Ping timeout: 240 seconds]
<p1k> yeah I see that now
ss_much has joined #ruby
workmad3 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
Kara has joined #ruby
Kara_ has joined #ruby
solocshaw has joined #ruby
Gnomethrower has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
arup_r has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 268 seconds]
Soda has joined #ruby
Bellthoven has quit []
baweaver has joined #ruby
ndrei has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
jun has quit [Remote host closed the connection]
jun has joined #ruby
Scoutlink has joined #ruby
ruurd has joined #ruby
nemo_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
Kara_ has quit [Remote host closed the connection]
weihan_ has joined #ruby
weihan has quit [Ping timeout: 244 seconds]
SylarRuby has joined #ruby
Scoutlink has left #ruby [#ruby]
rushed has quit [Quit: rushed]
rushed has joined #ruby
weemsledeux has quit [Read error: Connection reset by peer]
<SylarRuby> Could I get a feedback on 6/7 questions about a project I’d like to create please? goo.gl/HjG3lr
ndrei has quit [Ping timeout: 256 seconds]
Kara has quit [Ping timeout: 272 seconds]
Guest69698 has quit [Quit: leaving]
<Radar> SylarRuby: 4 and 5 are the same.
<SylarRuby> Radar: let me see..
patdohere has joined #ruby
<SylarRuby> Radar: yes. i could not change it because i someone had already filled out them question.
ndrei has joined #ruby
<Radar> ah
<SylarRuby> the*
last_staff has joined #ruby
bMalum has quit [Quit: bMalum]
krz has quit [Read error: Connection reset by peer]
<Ox0dea> #3 won't let me enter pi.
htmldrum has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
lessless has joined #ruby
bMalum has joined #ruby
jun has quit [Read error: Connection reset by peer]
jun has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jenrzzz has joined #ruby
nemo_ has joined #ruby
nateberkopec has joined #ruby
rushed has quit [Quit: rushed]
jun has quit [Remote host closed the connection]
Miriana-Tor has joined #ruby
<Miriana-Tor> Hello I am an Italian girl, and I love to do sex in all ways, visit my site http://mirianator.altervista.org/
jun has joined #ruby
User458764 has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
nateberkopec has quit [Ping timeout: 240 seconds]
<Radar> !mute Miriana-Tor
<SylarRuby> wtf Miriana-Tor
demonlove has quit [Remote host closed the connection]
rushed has joined #ruby
jun has quit [Ping timeout: 246 seconds]
<Miriana-Tor> Hello I am an Italian girl, and I love to do sex in all the ways, visit my site http://mirianator.altervista.org/
krz has joined #ruby
Kara has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sanjayu has joined #ruby
hadrig has joined #ruby
Miriana-Tor was kicked from #ruby by Radar [No thanks]
Kara_ has joined #ruby
Miriana-Tor has quit []
ruurd has quit [Quit: ZZZzzz…]
timonv has joined #ruby
nemo_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 244 seconds]
dikaio has quit [Ping timeout: 272 seconds]
GnuYawk has quit [Ping timeout: 265 seconds]
DanKnox[away] is now known as DanKnox
dionysus69 has joined #ruby
weihan_ has quit [Ping timeout: 256 seconds]
dagda1 has joined #ruby
GriffinHeart has joined #ruby
minimalism has quit [Quit: leaving]
GriffinHeart has quit [Ping timeout: 260 seconds]
XxionxX has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 272 seconds]
Ropeney has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
etrae has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
_blizzy_ has joined #ruby
krz has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
krz has joined #ruby
awrfas2 has quit [Ping timeout: 250 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
Kara has quit [Remote host closed the connection]
ndrei has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
VeryBewitching has quit [Quit: Konversation terminated!]
<SylarRuby> Radar: I may grab your book off amazon ;)
_blizzy_ has joined #ruby
<SylarRuby> rails 4 in action
Kara_ has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
Kara has joined #ruby
Ketchy has joined #ruby
Kara_ has joined #ruby
Azulinho has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 260 seconds]
yosiat has joined #ruby
Ketchy has quit [Client Quit]
sanjayu has quit [Ping timeout: 246 seconds]
moeSeth has joined #ruby
grekkos_ has joined #ruby
rushed has quit [Quit: rushed]
baweaver has quit [Remote host closed the connection]
skade has joined #ruby
firstdayonthejob has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
grekkos_ has quit [Ping timeout: 264 seconds]
M-mistake has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
Voker57 has joined #ruby
fullofcaffeine has joined #ruby
zenguy_pc has joined #ruby
bitsapien has joined #ruby
workmad3 has joined #ruby
Kara has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
fullofcaffeine has quit [Ping timeout: 272 seconds]
Kara has joined #ruby
skade has quit [Read error: Connection reset by peer]
cubicme has quit [Ping timeout: 240 seconds]
skade has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
skade has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
Macaveli has joined #ruby
dagda1 has quit [Ping timeout: 256 seconds]
dagda1 has joined #ruby
arup_r has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
p1k has quit [Ping timeout: 240 seconds]
bitsapien has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
Kara has quit [Ping timeout: 240 seconds]
Kara_ has quit [Ping timeout: 244 seconds]
skade has joined #ruby
stardiviner has quit [Ping timeout: 268 seconds]
solocshaw has joined #ruby
nofxx has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
ruurd has joined #ruby
marr has joined #ruby
ruby-lang121 has joined #ruby
stardiviner has joined #ruby
<ruby-lang121> I am trying to use Limechat
<ruby-lang121> how does it work exactly?
tubuliferous has joined #ruby
ruby-lang121 has left #ruby [#ruby]
skweek has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
Mia has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 240 seconds]
SylarRuby has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
skade has joined #ruby
ruurd has joined #ruby
Suzeanne has quit [Quit: Leaving]
iamjarvo_ has joined #ruby
bkxd has joined #ruby
iamjarvo_ has quit [Client Quit]
bitsapien has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
bkxd has quit [Ping timeout: 260 seconds]
matp_ has joined #ruby
bkxd has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
htmldrum has joined #ruby
pandaant has joined #ruby
matp has quit [Ping timeout: 264 seconds]
matp_ is now known as matp
ledestin has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
shenxuhui has joined #ruby
Jackneill has joined #ruby
patdohere has joined #ruby
dcarmich has joined #ruby
moei has quit [Quit: Leaving...]
bb010g has quit [Quit: Connection closed for inactivity]
shenxuhui has quit [Ping timeout: 246 seconds]
DanKnox is now known as DanKnox[away]
bitsapien has quit [Ping timeout: 264 seconds]
glenn_ has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
DanKnox[away] is now known as DanKnox
jenrzzz has quit [Ping timeout: 260 seconds]
skade has joined #ruby
yfeldblum has joined #ruby
ponga has joined #ruby
oetjenj has joined #ruby
skade has quit [Ping timeout: 240 seconds]
matp has quit [Ping timeout: 240 seconds]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
cubicme has joined #ruby
Spami has joined #ruby
marr has quit [Ping timeout: 264 seconds]
nemo_ has joined #ruby
matp has joined #ruby
Soda has quit [Remote host closed the connection]
nemo_ has quit [Ping timeout: 272 seconds]
bitsapien has joined #ruby
skade has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peteykun has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
awrfas2 has joined #ruby
etrae has quit [Ping timeout: 264 seconds]
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous has quit [Ping timeout: 256 seconds]
hs366 has joined #ruby
Juanchito has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
jenrzzz has joined #ruby
varunwachaspati has joined #ruby
yashinbasement has joined #ruby
leafybasil has quit [Remote host closed the connection]
sameerynho has joined #ruby
mattprelude has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
skade has quit [Read error: Connection reset by peer]
iateadonut has joined #ruby
skade has joined #ruby
dionysus69 has quit [Remote host closed the connection]
skade has quit [Client Quit]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vigintas has joined #ruby
subscope has joined #ruby
eminencehc has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jgt has joined #ruby
eminencehc has quit [Ping timeout: 255 seconds]
Kara_ has joined #ruby
Kara has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
zenguy_pc has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
Musashi007 has joined #ruby
dmolina has joined #ruby
gizmore has joined #ruby
workmad3 has joined #ruby
iateadonut has quit [Quit: Leaving.]
decoponio has joined #ruby
Pupeno has joined #ruby
Musashi007 has quit [Quit: Musashi007]
workmad3 has quit [Ping timeout: 260 seconds]
User458764 has quit [Ping timeout: 265 seconds]
gregf has joined #ruby
htmldrum has joined #ruby
User458764 has joined #ruby
nateberkopec has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
zenguy_pc has joined #ruby
htmldrum has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
big|bad|wolf has joined #ruby
DanKnox is now known as DanKnox[away]
dzejrou has joined #ruby
dmolina has quit [Quit: Leaving.]
slackbotgz has joined #ruby
dzejrou_ has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
dzejrou has quit [Ping timeout: 240 seconds]
maokomioko has joined #ruby
Musashi007 has joined #ruby
lavros has joined #ruby
cubicme_ has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
cubicme has quit [Ping timeout: 240 seconds]
cubicme_ is now known as cubicme
FernandoBasso has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
CloCkWeRX has joined #ruby
bitsapien has quit [Quit: bitsapien]
neanderslob has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
Kara has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.2]
DaniG2k has joined #ruby
rikkipitt has joined #ruby
Kara_ has quit [Ping timeout: 260 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
dagda1 has joined #ruby
lxsameer_ has joined #ruby
spider-mario has joined #ruby
fullofcaffeine has joined #ruby
sameerynho has quit [Ping timeout: 264 seconds]
slackbotgz has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
hanmac has quit [Ping timeout: 246 seconds]
matp has quit [Ping timeout: 260 seconds]
stardiviner has joined #ruby
DaniG2k has quit [Quit: leaving]
matp has joined #ruby
fullofcaffeine has quit [Ping timeout: 255 seconds]
rikkipitt has quit [Quit: Leaving...]
mdih has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cwong_on_irc has quit [Quit: Leaving.]
weihan has joined #ruby
Kara has joined #ruby
big|bad|wolf has joined #ruby
BustyLoli-Chan has quit [Read error: Connection reset by peer]
Kara has quit [Ping timeout: 268 seconds]
maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
htmldrum has joined #ruby
ht__ has joined #ruby
nateberkopec has joined #ruby
jamesaxl has joined #ruby
Eternal has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eternal> hi, can I pass a variable to `[...]` in ruby?
<shevy> Eternal what is [...]
<Eternal> some text
<Eternal> I want eg. `cat $variable`
<shevy> if you mean a String then: x = 5; y = "6 - 1 is #{x}"
nateberkopec has quit [Ping timeout: 246 seconds]
<shevy> if you mean backticks then `cat #{variable_here}`
htmldrum has quit [Ping timeout: 252 seconds]
<Eternal> works! thanks
workmad3 has joined #ruby
stamina has joined #ruby
unreal_ has joined #ruby
hanmac has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dEPy has joined #ruby
Gnomethrower has joined #ruby
dEPy has quit [Client Quit]
Jackneill has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 246 seconds]
unreal has quit [Ping timeout: 268 seconds]
Jackneill has joined #ruby
unreal has joined #ruby
michael_mbp has quit [Excess Flood]
p1k has joined #ruby
unreal_ has quit [Ping timeout: 265 seconds]
<shevy> \o/
michael_mbp has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
DEA7TH has joined #ruby
<DEA7TH> Is that sort of one-liner easy to read? origins.map { |o| destinations.map { |d| [o, d] } }
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> DEA7TH: I prefer `origin` & `destination` over `o` & `d`
<apeiros> other than that - yes
chipotle has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
yxhuvud has quit [Quit: Leaving]
yxhuvud has joined #ruby
<jhass> wait, isn't that .zip?
moeSeth has quit [Quit: Connection closed for inactivity]
<jhass> ah no, each origin gets all destinations
<jhass> good morning I guess :D
jgt has quit [Ping timeout: 268 seconds]
Kara has joined #ruby
Kara_ has joined #ruby
phutchins has joined #ruby
jenrzzz has joined #ruby
<DEA7TH> turns two arrays to a square matrix where matrix[i][j] = [array1[i], array2[j]]
<DEA7TH> it's a mock
Porfa has joined #ruby
Kara_ has quit [Remote host closed the connection]
Caius has joined #ruby
etrae has joined #ruby
Kara_ has joined #ruby
awrfas2 has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
shinnya has joined #ruby
phutchins1 has joined #ruby
momo-reina has joined #ruby
cubicme has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bl0ndie has joined #ruby
peteykun has quit [Ping timeout: 264 seconds]
flughafen_ has left #ruby ["WeeChat 1.0"]
mdih has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
bl0ndie has quit [Ping timeout: 268 seconds]
hs366 has quit [Quit: Leaving]
soosfarm has quit [Ping timeout: 240 seconds]
soosfarm has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
zenguy_pc has quit [Ping timeout: 244 seconds]
big|bad|wolf has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
<shevy> so if I push a new gem where the description says "DO NOT DOWNLOAD" and I get about 130 downloads in 2 days... shall I wonder about this
Pupeno has joined #ruby
sameerynho has joined #ruby
matp has quit [Remote host closed the connection]
glenn_ has quit [Quit: Konversation terminated!]
momo-reina has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer_ has quit [Ping timeout: 255 seconds]
Pupeno has quit [Ping timeout: 256 seconds]
jgt has joined #ruby
JJM has joined #ruby
zenguy_pc has joined #ruby
htmldrum has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
CaseyOnHex has joined #ruby
yashinbasement has quit [Ping timeout: 255 seconds]
cubicme has joined #ruby
<DEA7TH> Multiple calls to mocha expects don't work? https://gist.github.com/VelizarHristov/92aea7e68c701b8d2ea8
<DEA7TH> Then how can I have dynamic expects?
htmldrum has quit [Ping timeout: 246 seconds]
matp has joined #ruby
Coldblackice has quit [Ping timeout: 256 seconds]
<DEA7TH> the result I get is that when I call it, I get the usual output - I assume that only the last expects counted
chipotle has quit [Ping timeout: 252 seconds]
<jhass> well, get a better mocking framework :P
<DEA7TH> oops, I typo'd
Feyn has quit [Quit: Leaving]
<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]
Kara_ has joined #ruby
workmad3 has joined #ruby
BTRE has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 272 seconds]
codecop has joined #ruby
peteykun has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
big|bad|wolf has quit [Quit: Textual IRC Client: www.textualapp.com]
ruurd has quit [Quit: ZZZzzz…]
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]
<Dmitry> /home/usr/.rvm/gems/ruby-2.2.1/gems/git-1.2.9.1
<Dmitry> Message: LoadError: cannot load such file -- git
<jhass> what exact command?
chipotle has joined #ruby
<Dmitry> $ vagrant provision
jenrzzz has quit [Ping timeout: 246 seconds]
<Dmitry> I know, I execute it without bundle exec, but according to bundler docs it can be fixed with require 'bundler/setup'
<jhass> how about bundle exec vagrant provision?
<jhass> in theory
<Dmitry> The same =/
<Dmitry> Message: LoadError: cannot load such file -- git
<jhass> bundle exec ruby -rgit -S vagrant provision ?
<Dmitry> /home/usr/.rvm/rubies/ruby-2.2.1/bin/ruby: no Ruby script found in input (LoadError)
<jhass> mh
<jhass> which vagrant ?
<Dmitry> /usr/bin/vagrant
<jhass> head -n1 /usr/bin/vagrant ?
michael_mbp has quit [Excess Flood]
<Dmitry> #!/usr/bin/env bash
<Dmitry> :)
<Dmitry> /opt/vagrant/bin/vagrant "$@"
<jhass> mmh
<jhass> that seems to be no longer written in Ruby I guess
<jhass> hit up the folks in #vagrant
<Dmitry> /opt/vagrant/bin/vagrant is abinary file
<Dmitry> Hmm =/
<Dmitry> jhass: Thanks.
michael_mbp has joined #ruby
atomical_ has joined #ruby
skade has joined #ruby
sameerynho has quit [Quit: Leaving]
mary5030 has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
platzhirsch has joined #ruby
rodfersou has joined #ruby
subscope has joined #ruby
Kara_ has quit [Remote host closed the connection]
chipotle has quit [Max SendQ exceeded]
Kara_ has joined #ruby
chipotle has joined #ruby
monq has joined #ruby
Yzguy has joined #ruby
grekkos_ has joined #ruby
adac has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
diegoaguilar has joined #ruby
Kara_ has quit [Ping timeout: 250 seconds]
Kara_ has joined #ruby
zenguy_pc has quit [Ping timeout: 252 seconds]
grekkos_ has quit [Ping timeout: 265 seconds]
Trynemjoel has joined #ruby
<Dmitry> jhass: Is it possible to run sub command in blocking mode via IO module?
pontiki has joined #ruby
<Dmitry> Looks like IO is available in Vagrantfile :)
<jhass> IO#popen is blocking, but if you don't need its flexibility Kernel#system or Kernel#` might be good enough
Gnomethrower has joined #ruby
<jhass> Kernel should be available everywhere
<jhass> just system("git ...") for example
karapetyan has joined #ruby
<pontiki> morning
Gnomethrower has quit [Client Quit]
<Dmitry> jhass: Is there any module to resolve relative/path to cross-platform path?
<jhass> Diabolik: File.expand_path
<jhass> bah, Dmitry ^, sorry
<Dmitry> :) Thanks
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gnomethrower has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
peteykun has quit [Quit: Leaving]
chipotle has quit [Max SendQ exceeded]
polysics has joined #ruby
htmldrum has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
zenguy_pc has joined #ruby
Gnomethrower has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
codecop has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has joined #ruby
chipotle has joined #ruby
krz has joined #ruby
banister has quit [Read error: Connection reset by peer]
gregf has quit [Quit: brb]
The_Phoenix has quit [Ping timeout: 260 seconds]
hectortrope has quit [Remote host closed the connection]
hectortrope has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
bMalum has joined #ruby
chouhoulis has joined #ruby
MVPhelp has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fullofcaffeine has joined #ruby
David27 has joined #ruby
sdfgsdfg has quit [Read error: Connection reset by peer]
chouhoulis has quit [Read error: Connection reset by peer]
<Dmitry> jhass: Last question. Is it possible to suppress output from IO.popen?
chouhoulis has joined #ruby
<jhass> just use system
<jhass> and >/dev/null
<Dmitry> It should be cross-platform :)
<jhass> &ri Kernel#system
<jhass> &ri Kernel#spawn
<jhass> system takes the redirection options of ^
fullofcaffeine has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
beauby has joined #ruby
ItSANgo has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
nateberkopec has quit [Quit: Leaving...]
slawrence00 has joined #ruby
yosiat has joined #ruby
chipotle has quit [Max SendQ exceeded]
_blizzy_ has joined #ruby
JJM has joined #ruby
acke has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Kruppe has joined #ruby
CloCkWeRX has joined #ruby
camilasan has joined #ruby
noethics has joined #ruby
dfinninger has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
yosiat has joined #ruby
gregf has joined #ruby
chouhoulis has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
diegoaguilar has quit [Ping timeout: 250 seconds]
chipotle has quit [Max SendQ exceeded]
_blizzy_ has joined #ruby
Meow-J has joined #ruby
daed has joined #ruby
tk__ has quit [Quit: ばいばい]
workmad3 has joined #ruby
mary5030 has quit [Remote host closed the connection]
chipotle has joined #ruby
mary5030 has joined #ruby
EllisTAA has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ht__ has quit [Quit: Konversation terminated!]
karapetyan has joined #ruby
subscope_ has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 250 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
diegoaguilar has joined #ruby
Yzguy has quit [Quit: Zzz...]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 255 seconds]
leat1 has joined #ruby
leat has quit [Remote host closed the connection]
pathrocle has quit [Remote host closed the connection]
chipotle has quit [Max SendQ exceeded]
skade has quit [Quit: Computer has gone to sleep.]
<shevy> Kernel#spawn_more_zombies
chipotle has joined #ruby
skade has joined #ruby
<Dmitry> jhass: Sorry, what do you mean?
jun has joined #ruby
Macaveli has joined #ruby
workmad3 has joined #ruby
skade has quit [Client Quit]
dfinninger has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
lessless has joined #ruby
<jhass> system("...", out: :close, err: :close)
ramfjord has joined #ruby
howdoi has joined #ruby
Yzguy has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
lessless has quit [Client Quit]
leat1 has quit [Remote host closed the connection]
SylarRuby has quit [Remote host closed the connection]
leat1 has joined #ruby
DLSteve has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
Mia has joined #ruby
fullofcaffeine has joined #ruby
hadrig has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
jun has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
rodfersou has quit [Remote host closed the connection]
ruurd has joined #ruby
acke has quit [Remote host closed the connection]
nemo_ has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
DanKnox is now known as DanKnox[away]
The_Phoenix has joined #ruby
adac has quit [Ping timeout: 246 seconds]
skcin7 has joined #ruby
hadrig has quit []
blue_deref has joined #ruby
nateberkopec has joined #ruby
awrfas2 has joined #ruby
etrae has quit [Ping timeout: 265 seconds]
acke has joined #ruby
fedexo has joined #ruby
awrfas2 has quit [Client Quit]
EllisTAA has quit [Quit: EllisTAA]
<Dmitry> jhass: Looks like I've found a nice way to run subprocesses: https://github.com/mitchellh/vagrant/blob/master/lib/vagrant/util/subprocess.rb#L38
<jhass> Dmitry: well, you're in #ruby, of course I can only point to core/stdlib solutions
<jhass> as said #vagrant for everything else
<Dmitry> Ok, sorry :)
minimalism has joined #ruby
GriffinHeart has joined #ruby
snath has joined #ruby
EllisTAA has joined #ruby
Us54er has joined #ruby
skweek has joined #ruby
karapetyan has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
sumark has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
snath has left #ruby [#ruby]
karapetyan has joined #ruby
sumark has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Quit: Leaving...]
tmtwd has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
chipotle has quit [Max SendQ exceeded]
DanKnox[away] is now known as DanKnox
_kfpratt has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
phutchins1 has quit [Quit: WeeChat 1.3]
diegoaguilar has quit [Remote host closed the connection]
leafybasil has joined #ruby
chipotle has joined #ruby
kfpratt has quit [Ping timeout: 240 seconds]
iDavid_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
lele has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
EllisTAA has joined #ruby
firstdayonthejob has joined #ruby
grekkos_ has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
lele has joined #ruby
Amnesia has joined #ruby
<Amnesia> question, is it possible to somehow use encoding with eval()?
codecop has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Kara_ has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
<jhass> Amnesia: don't use eval
tmtwd has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
grekkos_ has quit [Ping timeout: 244 seconds]
pontiki has quit [Ping timeout: 240 seconds]
umgrosscol has joined #ruby
bMalum has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Kara has quit [Ping timeout: 265 seconds]
bigmac_ has joined #ruby
chipotle has quit [Max SendQ exceeded]
prestorium has joined #ruby
mary5030 has joined #ruby
workmad3 has joined #ruby
jenrzzz has joined #ruby
chipotle has joined #ruby
xet7 has quit [Ping timeout: 240 seconds]
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.
<tobiasvl> tynamite: try %%
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
patdohere_afk is now known as patdohere
adac has joined #ruby
fullofcaffeine has joined #ruby
patdohere has quit [Quit: Textual IRC Client: www.textualapp.com]
eminencehc has joined #ruby
astrobun_ has quit [Remote host closed the connection]
monq has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
tenderlove has quit [Quit: Leaving...]
eminencehc has quit [Remote host closed the connection]
adac has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jun has quit [Remote host closed the connection]
eminencehc has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
gregoriokusowski has quit [Quit: gregoriokusowski]
tynamite has quit [Ping timeout: 255 seconds]
towski_ has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
houhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
gregoriokusowski has joined #ruby
TheRokh has quit [Read error: Connection reset by peer]
jun has joined #ruby
fullofca_ has joined #ruby
Skelz0r has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
gregoriokusowski has quit [Client Quit]
beauby has quit [Ping timeout: 252 seconds]
lamer14449848587 has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
tynamite has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
Oog has quit [Remote host closed the connection]
m0nge has joined #ruby
<m0nge> hey
<m0nge> I'm planning to learn a code language for the first time and I was trying to choose between 3. What you think? Python, Ruby or Perl?!
BSaboia has joined #ruby
<jhass> m0nge: Ruby. Now ask #python and get Python and ask #perl and get Perl
Skelz0r has joined #ruby
<jhass> m0nge: https://pine.fm/LearnToProgram/ is generally recommended and uses Ruby though
<shevy> m0nge you need to kind of have some absolute requirement from what you want to want to get from a language
<shevy> m0nge for instance, if it is "biggest community" then python is probably the largest one
<m0nge> i see
<m0nge> maybe I need to learn about those 3 languages
<jhass> though I wouldn't say that matters beyond a certain size, which all three reached well
<shevy> m0nge this old interview was one that helped me back then http://www.artima.com/intv/ruby.html
<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.
<shevy> https://github.com/ruby-gnome2/ruby-gnome2 "kou Merge pull request #595 from cedlemo/gtk3_sample_gtk_demo_main_rb_run"
_blizzy_ has joined #ruby
mattprelude has quit [Ping timeout: 252 seconds]
BSaboia has quit [Ping timeout: 246 seconds]
bMalum has quit [Quit: bMalum]
<shevy> yeah I don't know that
<shevy> it looks scary
<jhass> why?
kies^ has joined #ruby
<shevy> I dunno! look at it!
<jhass> I did
<shevy> do people use it?
<jhass> I'd think so
<shevy> havenwood that item seems too useful still
<jhass> more importantly it seems better maintained and easier to maintain in the future than ruby-gnome
<shevy> you could break ice with it for instance, can be good in winter
Uo9er_ has joined #ruby
flak has joined #ruby
<shevy> one could actually combine all different images out there related to php http://tnx.nl/php.jpg
ramfjord has joined #ruby
<shevy> one image with the elephant... without the legs but perhaps that would be too cruel so let's have the intact one rather http://goo.gl/jpXGmu
Us54er has quit [Ping timeout: 244 seconds]
t_mmyv has joined #ruby
t_mmyv has quit [Client Quit]
rippa has quit [Ping timeout: 256 seconds]
Guest67642 has quit [Quit: This computer has gone to sleep]
dorei has joined #ruby
gaboesquivel has joined #ruby
<havenwood> Christmas break seems like a good time to learn some Perl 6.
nisstyre has joined #ruby
cubicme_ has joined #ruby
jcdesimp has joined #ruby
Amnesia has left #ruby [#ruby]
<shevy> but there is a new ruby release!
weihan has quit [Ping timeout: 250 seconds]
<shevy> I am still surprised that perl 6 can look like ruby ... "/usr/share/dict/words".IO.words.classify(*.lc.comb.sort.join).sort(-*.value)[0].say
<jhass> you can have a new crystal release today! (well, yesterday)
Kara has quit [Remote host closed the connection]
gaboesqu_ has quit [Ping timeout: 260 seconds]
fullofca_ has quit [Remote host closed the connection]
cubicme_ has quit [Client Quit]
cubicme has quit [Ping timeout: 260 seconds]
Skelz0r has quit [Ping timeout: 240 seconds]
<shevy> yeah... and the best thing ... you can switch the crystal at http://crystal-lang.org/ ... you can't switch the ruby at https://www.ruby-lang.org/en/ at all
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…]
axl_ has quit [Quit: axl_]
Bellthoven has quit []
kirun_ has quit [Quit: Client exiting]
futilegames has joined #ruby
cubicme has joined #ruby
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
yqt has joined #ruby
bMalum has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofca_ has quit [Ping timeout: 265 seconds]
minimalism has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
jun has joined #ruby
fullofcaffeine has joined #ruby
dagda1_ has joined #ruby
nemo__ has quit [Remote host closed the connection]
joncol has quit [Quit: leaving]
fullofcaffeine has quit [Remote host closed the connection]
Vile` has joined #ruby
acke has joined #ruby
jenrzzz has joined #ruby
yeticry has joined #ruby
pathrocle has joined #ruby
jun has quit [Read error: Connection reset by peer]
centrx has quit [Remote host closed the connection]
jun has joined #ruby
HammyJammy has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
pontiki has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
znz_jp has quit [Ping timeout: 246 seconds]
JammyHammy has joined #ruby
BTRE has quit [Quit: Leaving]
Epic-Games has joined #ruby
<Epic-Games> Try this new Epic Amazing Game now from Youtube with an amazing graphics https://www.youtube.com/watch?v=l2VnFpbnffM
freerobby has quit [Quit: Leaving.]
<jhass> !mute Epic-Games
<jhass> apeiros: waht's up with ruboto_ ?
moeabdol has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
<jhass> ah I see
BTRE has joined #ruby
Epic-Games has quit [Client Quit]
SylarRuby has joined #ruby
axl_ has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
SylarRuby has quit [Ping timeout: 264 seconds]
fedexo has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
jun has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
jun has joined #ruby
kristian_on_linu has quit [Quit: Leaving]
fedexo has quit [Ping timeout: 240 seconds]
TheRinger has joined #ruby
znz_jp has joined #ruby
camilasan has quit [Remote host closed the connection]
Motoservo has joined #ruby
U7se6 has joined #ruby
jun has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
fedexo has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
codecop has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
<bigmac_> so, im messing with BigDecimal, im looking for a way to check if a big number has a decimal point that is true => .0
Uo9er_ has quit [Ping timeout: 244 seconds]
kalusn has joined #ruby
Bellthoven has joined #ruby
aryaching has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
znz_jp has quit [Ping timeout: 240 seconds]
SamGerber has joined #ruby
SamGerber has quit [Client Quit]
atomical has joined #ruby
ruby-lang044 has joined #ruby
<ruby-lang044> hello guys
<ruby-lang044> anybody know how to use the linkedin gem
<Coraline> Hey there chicka
kies^ has joined #ruby
Spami has joined #ruby
TheRinger has joined #ruby
<ruby-lang044> I'm using the linkedin2 gem by bobbrez
workmad3 has joined #ruby
<bigmac_> i guess it would be called a whole number (that has no decimal trailing)
grekkos_ has joined #ruby
<jhass> n == n.to_i I guess
futilegames has joined #ruby
<bigmac_> 123123.1 % 1 !=0
ereslibre has joined #ruby
ereslibre has joined #ruby
bonhoeffer has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
CookieB has joined #ruby
<CookieB> Sup
bMalum has quit [Quit: bMalum]
m0nge has quit [Ping timeout: 268 seconds]
<adaedra> Hi CookieB
TheRinger has quit [Quit: Konversation terminated!]
TheRinger has joined #ruby
<CookieB> Can you give me a hand with ruby ? Seem to make a mistake in an easy task.
<jhass> ?ask
<ruboto_> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
ruby-lang044 has quit [Ping timeout: 246 seconds]
<havenwood> ?gist CookieB
<ruboto_> CookieB, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<havenwood> CookieB: Gist up the code ^ in questoin! :)
zenguy_pc has quit [Ping timeout: 265 seconds]
<ytti> ruboto should be expanded, to tell asker to wait for an answer, irc is assync
<shevy> well ruby-lang044 was a webchatter, CookieB is a webchatter hmm
kies^ has quit [Ping timeout: 256 seconds]
<CookieB> Quickest way to join uh?
tynamite has left #ruby [#ruby]
<shevy> at least you have a better nick than ruby-langxxx
<CookieB> It's just short for CookieBaker, I like to make cookies if that's not obvious
<CookieB> https://gist.github.com/CookieB/9e1662f898fade42c8ba I'm trying to fill an array, sample from the file is below. Seem to mess up where to execute though.
m0nge has joined #ruby
<jhass> ?gist_usage
<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?
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
<adaedra> No, Hash
ruurd has joined #ruby
<adaedra> # denotes instance methods
<jhass> hash, Hash is it's class and Hash#<< denotes an instance method named << on it
<adaedra> So Hash#<< is the method << on Hash
<jhass> &ri Array#<<
<`derpy> http://www.rubydoc.info/stdlib/core/Array#%3C%3C-instance_method
bonhoeffer has quit [Quit: bonhoeffer]
<jhass> &ri Hash#<<
<`derpy> No results
platzhirsch has quit [Read error: Connection reset by peer]
<CookieB> Yeah i guess that should do it thanks
atomical has quit [Ping timeout: 255 seconds]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chipotle has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
<CookieB> Yep works just fine, much thanks
cubicme has quit [Quit: cubicme]
davedev24 has joined #ruby
fullofcaffeine has joined #ruby
Yzguy has quit [Quit: Zzz...]
cubicme has joined #ruby
kadoppe has quit [Ping timeout: 265 seconds]
cubicme has quit [Client Quit]
zenguy_pc has joined #ruby
cubicme has joined #ruby
cubicme has quit [Client Quit]
sankaber has joined #ruby
kadoppe has joined #ruby
sankaber has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
Pupeno has joined #ruby
fullofcaffeine has quit [Ping timeout: 255 seconds]
sankaber has joined #ruby
Channel6 has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
Kara has joined #ruby
htmldrum has joined #ruby
Pupeno has quit [Ping timeout: 268 seconds]
fedexo has joined #ruby
Renich has quit [Quit: leaving]
Renich has joined #ruby
Kara has quit [Ping timeout: 244 seconds]
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…]
acke has quit [Remote host closed the connection]
atomical has quit [Ping timeout: 255 seconds]
jun has quit [Remote host closed the connection]
DanKnox is now known as DanKnox[away]
tubuliferous has joined #ruby
workmad3 has joined #ruby
tubuliferous has quit [Client Quit]
bl0ndie has quit [Quit: ZNC - http://znc.in]
pontiki has joined #ruby
saxy has joined #ruby
gutigen has joined #ruby
jun has joined #ruby
Uo9er_ has joined #ruby
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
<jhass> ?logs
<ruboto_> You can find a log of this channel at http://irclog.whitequark.org/ruby/
<haylon> Huh, spiffy
leafybas_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybasil has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
leafybasil has joined #ruby
<haylon> Ight, thanks jhass. I'll have to redo my plan then, and add a function to "login"
<haylon> instead of having all the initializes do it for me.
fullofcaffeine has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
htmldrum has quit [Ping timeout: 256 seconds]
aryaching has quit [Ping timeout: 244 seconds]
cornerma1 has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
leafybasil has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Ping timeout: 272 seconds]
kfpratt has joined #ruby
leafybas_ has quit [Ping timeout: 250 seconds]
cornerman has quit [Ping timeout: 265 seconds]
cornerma1 is now known as cornerman
stamina has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
acke has quit [Remote host closed the connection]
haylon has quit [Quit: Leaving]
s00pcan has quit [Ping timeout: 255 seconds]
mleung has joined #ruby
<shevy> jhass hah
<shevy> never thought of that shortcut before
craysiii has joined #ruby
mleung has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
stardiviner has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<rkazak_> haylon: if you can install virtualbox on your pc you can have linux…
<rkazak_> haylon: I also use cygwin, it pretty good.
jenrzzz has joined #ruby
zacts has joined #ruby
<shevy> he is gone :(
zeroDivisible has joined #ruby
zeroDivisible has quit [Client Quit]
ruby-lang663 has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
sohrab1 has joined #ruby
sohrab1 has left #ruby [#ruby]
DEA7TH has quit [Quit: DEA7TH]
p0wn3d__ has quit [Ping timeout: 256 seconds]
j0bk has quit [Changing host]
j0bk has joined #ruby
xxneolithicxx has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
workmad3 has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
leafybasil has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
astrobun_ has joined #ruby
Porfa has joined #ruby
armyriad has quit [Ping timeout: 250 seconds]
U7se6 has joined #ruby
yashinbasement has quit [Quit: Leaving]
Kara has joined #ruby
Soda has joined #ruby
Kara_ has joined #ruby
Uo9er_ has quit [Ping timeout: 255 seconds]
xxneolithicxx has quit [Quit: Leaving.]
saddad has joined #ruby
Porfa has quit [Quit: Porfa]
jun has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Pupeno has joined #ruby
glundgren has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
cb_ has quit []
varunwachaspati has quit [Quit: Connection closed for inactivity]
BSaboia has joined #ruby
michael_mbp has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
anisha has joined #ruby