<Mavriik>
is this the only room about ruby I am new to this?
<dminuoso>
cam27: each object has an associated singleton class with it (this recursively holds true for singleton class objects themselves)
<dminuoso>
I got just the thing for you..
<Radar>
Mavriik: this is the ruby channel that you need to know about :)
<nofxx>
vahe, I would advise using some lightweight editor, good syntax highlight is all you need
<Radar>
I should just state again: the code in the Gist is not typical Ruby. You wouldn't go defining random methods like that on instances of a class. I would go as far as to say it is bad practice to do what I just did.
<dminuoso>
cam27: I made that diagram a while ago it accurate represents how Ruby works internally. If you call a method it's basically "go one down, and then follow the chain to the right until you find a class that defines the method"
<Mavriik>
how do i respond to one person?
<nofxx>
Mavriik, use <tab>
<nofxx>
but maybe you're on a shitty client...
<Radar>
Mavriik: Type part of their name and then hit tab.
<Radar>
Mavriik: No worries :) Always good to have new people here.
<cam27>
Thanks for clearing up the Singleton vs Class methods
<cam27>
I can now move onto the next chapter
<Mavriik>
Radar: do you make apps or websites or is it all the same?
<Radar>
Mavriik: I use Ruby to make both http://ryanbigg.com is the website I made using a gem called Jekyll, and I've built lots of Ruby applications using the Rails framework.
Bock has joined #ruby
Bock has quit [Max SendQ exceeded]
mim1k has joined #ruby
<Mavriik>
Radar: Nice! pleasure to meet you
<Mavriik>
Radar: my goal is to make a website to sell my music on
cam27 has quit [Quit: cam27]
<hanmac>
cam27: info for you: there are some objects which can not have singleton methods, mostly integer and Float numbers because this objects does not have a singleton class
<Radar>
Anyone know under which circumstances DateTime objects would include microsecond precision? I've got a test here which has DT without msec precision, but on CI it has msecs.
<hanmac>
boolean values like true, false and nil does trick around that
Bock has joined #ruby
enterprisey has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
jusa has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
JeanCarl1Machado has joined #ruby
jusa has quit [Ping timeout: 255 seconds]
jameser_ has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
Kug3lis has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
angseus_ has quit [Remote host closed the connection]
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has joined #ruby
muelleme has joined #ruby
Bhootrk_ has quit [Ping timeout: 255 seconds]
muelleme has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
nofxxx has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
nofxx has quit [Ping timeout: 268 seconds]
TvL2386 has joined #ruby
ascarter has joined #ruby
DeeJayh has joined #ruby
TvL2386_ has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
<DeeJayh>
I have a custome method that adds text to a log file, the text is PRINTed in sections, and there's two threads that are using the method. What would be a good way to queue up each addLog() so that only one is ever handled at a time, thus guaranteeing newlines and keeping the log from becoming a jumbled, unreadable mess.
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
igniting has quit [Ping timeout: 246 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DeeJayh>
I've been thinking of Queue, but the only examples I see are used to pop information between threads... I just want to do them one at a time to prevent issues.
Bhootrk_ has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
rkazak has quit [Quit: Sleep.....ing....]
tildes has joined #ruby
sleetdrop has quit [Remote host closed the connection]
conta has joined #ruby
aufi has joined #ruby
dionysus69 has joined #ruby
SaschaVoid has joined #ruby
SaschaVoid has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<DeeJayh>
so you can see where you would want it to output Stuff1Thing1\nStuff2Thing2\n infinitely, but instead it gets jumbled because both threads are writing simultaneously and this causes one to happen in the middle of another before the newline
JeanCarloMachado has joined #ruby
igniting has joined #ruby
MichaelBurge has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
pandaant has joined #ruby
JeanCarloMachado has quit [Ping timeout: 255 seconds]
JeanCarl1Machado has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
postmodern has quit [Quit: Leaving]
mrconfused has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
cagomez has joined #ruby
conta has joined #ruby
muelleme has joined #ruby
mrconfused has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
jaruga has joined #ruby
jaruga has quit [Remote host closed the connection]
jaruga has joined #ruby
ooozanoodles has joined #ruby
ur5us has quit [Remote host closed the connection]
ascarter has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
TomyWork has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
mark_66 has joined #ruby
Sembei has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
Bhootrk_ has joined #ruby
mim1k has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
Pisuke has quit [Ping timeout: 240 seconds]
Mortomes|Work has joined #ruby
Bhootrk_ has quit [Ping timeout: 246 seconds]
Bhootrk_ has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
jusa has joined #ruby
bambanx has quit [Quit: Leaving]
tvw has joined #ruby
awille has joined #ruby
_sfiguser has joined #ruby
<DeeJayh>
Nevermind, figured it out. I setup a thread to pop the queue constantly and redirected the log calls to add the value to the queue.
ooozanoodles has left #ruby [#ruby]
jusa has quit [Ping timeout: 246 seconds]
aep has joined #ruby
SaschaVoid has joined #ruby
SenpaiSilver has joined #ruby
guardianJ has joined #ruby
<ljarvis>
zenspider: re the roulette code, no idea. I thought it might be Windows being weird too. I think they were messing the code up a bit too though (main loop exits early). So I'd lean further toward user error
mikecmpbll has joined #ruby
<ljarvis>
DeeJayh: if you want to print sequentially, why use threads?
jamesaxl has joined #ruby
<ljarvis>
also for testing, i would highly recommend added some sleep() calls
<DeeJayh>
because it's a server, hosting multiple different services that I want running in sync, and they all print to the same console
<ljarvis>
ok, I guess I'm confused by your code then. I don't understand why procA and procB would care about the other (e.g. about logging sequentially). Am I missing something?
<DeeJayh>
run the code, and notice that the log gets crossfed
<DeeJayh>
meaning that sometimes before procA finishes writing it's second half of the log, procB starts writing it's first half
<DeeJayh>
jumbling up the log
<ljarvis>
right, you want mutual exclusion. Do you know what that is?
<DeeJayh>
Not a clue
<DeeJayh>
the problem isn't necessarily the calls
<DeeJayh>
it's the way my logger works
<DeeJayh>
it prints the time
<DeeJayh>
then prints the event type
<DeeJayh>
then prints the game type
<DeeJayh>
then PUTS the message
<DeeJayh>
I have to do it that way because of something specific to my case
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DeeJayh>
and in-between those prints, other prints can be made
Cohedrin has quit [Read error: Connection reset by peer]
<DeeJayh>
from the other proc
<DeeJayh>
now, instead, they queue the information they wants to write to the log all at once, then one queue item at a time is processed.
<DeeJayh>
problem solved
guardianJ has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
Cohedrin has quit [Client Quit]
<ljarvis>
DeeJayh: maybe you just want to build a string inside your proc methods and then output it at the end, rather than one process blocking another
mikecmpbll has quit [Quit: inabit. zz.]
<DeeJayh>
ljarvis, but then I am writing the same code twice...
<ljarvis>
how so?
guardianJ has joined #ruby
<DeeJayh>
one moment, I'll share some code with you, all should become clear
<ljarvis>
so you could do log.puts "foo".colorize(:blue)
Hunter1 has quit [Remote host closed the connection]
Silthias has joined #ruby
Hunter1 has joined #ruby
hurricanehrndz has joined #ruby
<ljarvis>
2 other things: you could would be much easier to read if it's formatted in a rubyish way, with 2 spaces for indentation and using snake_case instead of camelCase
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DeeJayh>
ljarvis, I'm pretty stuck on using tabs, sorry, it's engrained in my mind... believe it or not however, 90% of my code in snake_case, that method was one that got away from a late night of coding
<ljarvis>
fair 'nuff
<DeeJayh>
I always appreciate the tips though
<ljarvis>
are you richard hendricks?
djbkd_ has joined #ruby
<DeeJayh>
HOW DOES EVERYONE ALWAYS KNOW?
<guardianJ>
he learned ruby on rails in a weekend
bigkevmcd has quit [Quit: Outta here...]
romank has joined #ruby
ur5us has joined #ruby
<DeeJayh>
Ah.
olivi____ has joined #ruby
<DeeJayh>
Worst part is, btw, that I used headlessCamelCase
<DeeJayh>
Apparently that makes some people cringe
<DeeJayh>
(when I do slip up and use it once in a blue moon)
lipoqil has joined #ruby
User458764 has joined #ruby
<guardianJ>
isn't that regular camelcase?
<DeeJayh>
CamelCase is CamelCase, thisIsHeadlessCamelCase
<DeeJayh>
where the first word isn't capitalized (headless)
mim1k has joined #ruby
olivi____ has quit [Ping timeout: 255 seconds]
<guardianJ>
k then
mas886 has joined #ruby
mas886 has joined #ruby
mas886 has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mas886 has quit [Remote host closed the connection]
<DeeJayh>
guardianJ, rather, I should say, that's my understanding, I didn't confirm that, but I've always understood it that way
antgel has joined #ruby
marr has joined #ruby
tomphp has joined #ruby
harfangk has joined #ruby
djbkd_ has quit []
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<guardianJ>
i knew them as camelCase and PascalCase
<guardianJ>
but i really don't care what people call them
<guardianJ>
btw, i want to relearn pascal or delphi
harfangk has quit [Quit: No Ping reply in 180 seconds.]
mim1k has joined #ruby
harfangk has joined #ruby
TreyG has quit [Ping timeout: 240 seconds]
im0nde has joined #ruby
lxsameer has joined #ruby
flying has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
Beams has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
TreyG has joined #ruby
Cohedrin has joined #ruby
blackmesa has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
nadir has joined #ruby
vali has joined #ruby
jenrzzz has joined #ruby
mim1k has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
blackmes1 has joined #ruby
charliesome has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
xall has joined #ruby
xall has quit [Client Quit]
xall has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
loechel has joined #ruby
jamesaxl has joined #ruby
gizmore has quit [Ping timeout: 246 seconds]
Pumukel has quit [Read error: Connection reset by peer]
blackmes1 has quit [Ping timeout: 258 seconds]
vali has quit [Read error: Connection reset by peer]
vall has joined #ruby
gizmore has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
aupadhye has joined #ruby
xall_ has joined #ruby
patarr has joined #ruby
xall has quit [Ping timeout: 240 seconds]
<dminuoso>
asm>> foo.bar
<ruby[bot]>
dminuoso: I have disassembled your code, the result is at https://eval.in/798986
quobo has quit [Quit: Connection closed for inactivity]
patarr has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
awille is now known as ThirstySurfer
Dimik has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
_sfiguser has quit [Ping timeout: 260 seconds]
<darix>
is there any SCM repository for wxruby somewhere? even the wxwidget main page still points to rubyforge. and the gem on rubygems.org is binary only
ThirstySurfer is now known as dreewill
dreewill is now known as ThirstySurfer
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
pandaant has quit [Remote host closed the connection]
jameser has joined #ruby
xall has joined #ruby
guardianJ has quit [Read error: Connection reset by peer]
xall_ has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
Trpger has joined #ruby
romank has quit [Ping timeout: 246 seconds]
Radcircle has joined #ruby
<Radcircle>
hey guys, really quick question - for http basic auth in ruby, how can i have multiple users and passwords?
romank has joined #ruby
tvw has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vahe has quit [Quit: Leaving.]
Trpger has left #ruby [#ruby]
<ljarvis>
Radcircle: the same way you'd have one, but you just lookup the username and check the password. It depends on your framework and how you're storing the data of course
Gabemo has quit [Ping timeout: 258 seconds]
<Radcircle>
if my code is just this line: http_basic_authenticate_with :name => "user", :password => "password"
<Radcircle>
is there no other way to have multiple arguments, like an array?
<Radcircle>
i feel like i'm missing something very very basic, but i just can't seem to figure it out
ur5us has quit [Remote host closed the connection]
Gabemo has joined #ruby
jgt1 has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
itarato has joined #ruby
Kug3lis has joined #ruby
tomphp has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
Kug3lis has quit [Client Quit]
xall has quit [Ping timeout: 260 seconds]
itarato has quit [Ping timeout: 240 seconds]
xall_ has joined #ruby
harfangk has quit [Remote host closed the connection]
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
muelleme has joined #ruby
pandaant has joined #ruby
im0nde has quit [Ping timeout: 246 seconds]
xall_ has quit [Quit: xall_]
muelleme has quit [Ping timeout: 268 seconds]
cschneid_ has joined #ruby
agent_white has quit [Quit: bai]
Hunter1 has quit [Remote host closed the connection]
Hunter1 has joined #ruby
oliv_____ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
xall has joined #ruby
xall has quit [Client Quit]
oliv_____ has quit [Ping timeout: 240 seconds]
AnoHito has joined #ruby
AnoHito_ has quit [Ping timeout: 240 seconds]
xall has joined #ruby
Kug3lis has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
bigkevmcd has joined #ruby
quobo has joined #ruby
Kug3lis has quit [Client Quit]
Bhootrk_ has quit [Quit: Leaving]
Bhootrk_ has joined #ruby
romank has joined #ruby
patarr has joined #ruby
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
blackmes1 has joined #ruby
itarato has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
xall_ has joined #ruby
mim1k_ is now known as mim1k
xall has quit [Ping timeout: 246 seconds]
TreyG_ has joined #ruby
TreyG has quit [Ping timeout: 268 seconds]
AnoHito_ has joined #ruby
AnoHito has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 260 seconds]
xall_ has quit [Quit: xall_]
xall has joined #ruby
jolamb has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
shinnya has joined #ruby
xall has quit [Client Quit]
<esObe>
hi guys, I have a problem with creating a method which is a rgb calculator. I want to add some validations like the calculation works if you type 3 values (r, g, b) and each value is in range (0..255)
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrconfused has joined #ruby
bilal has quit [Ping timeout: 255 seconds]
Ove_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
<Ove_>
I am seeing really high ActiveRecord::QueryCache#call (currently at 143 seconds) .
<Ove_>
Anyway to fix it?
tomphp has quit [Client Quit]
<esObe>
I'm not sure how to use it as I get an error 'undefined method `cover?' for [4, 0, 255]:Array (NoMethodError)'
xall has joined #ruby
<esObe>
a.cover?(0..255)
<matthewd>
Ove_: In less-than-current Rails versions, that middleware connects to the database. You probably need to increase the size of your connection pool.
bilal has joined #ruby
svisz has joined #ruby
tomphp has joined #ruby
<esObe>
elomatreb: hmm cover? method is for strings, not arrays
<elomatreb>
Oh, it's on the range, and for a single value. E.g. `(0..10).cover? 3`
mrconfused has quit [Ping timeout: 258 seconds]
<elomatreb>
(which would return true)
<elomatreb>
You may be interested in Enumerable#all? to check all components of your array for a condition
<Ove_>
matthewd: All other queries runs very fast, so I don't know what the issue is.
Radcircle has quit [Remote host closed the connection]
raspado has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
olivi____ has joined #ruby
<matthewd>
Ove_: I just told you what's wrong, why it's manifesting as you're seeing it, and how to fix it... so I'm not clear what else you want to know
xall has quit [Quit: xall]
xall has joined #ruby
bilal has quit [Ping timeout: 240 seconds]
bilal has joined #ruby
<Ove_>
matthewd: Had it been a too low connection pool wouldn't it also imply that I'd get a "couldn't get a database connection bla bla" ?
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
<esObe>
elomatreb: exactly, but I've just figured out a.each {|value| puts value.between?(0,255)}
User458764 has joined #ruby
<matthewd>
Ove_: Are you saying individual requests are taking 143 seconds?
<Ove_>
matthewd: I don't know, I am seeing this in newrelic, however in our own metrics I see an average of ~13 ms response times while on newrelic it says that I have a really high response time.
<matthewd>
Ove_: My assumption is that requests are getting stuck waiting for a connection, but ultimately do get one before they time out
<Ove_>
matthewd: Is it possible that newrelic reports the wrong metrics?
<matthewd>
I don't know enough about New Relic, sorry
<matthewd>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
olivi____ has quit [Remote host closed the connection]
<matthewd>
We should probably take this over ^ there, though
oliv_____ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oliv_____ has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 246 seconds]
Kug3lis has joined #ruby
olblak is now known as olblak_
olblak_ is now known as overnin
Kug3lis has quit [Client Quit]
overnin is now known as olblak_away
olblak_away is now known as olblak
sepp2k has joined #ruby
jrafanie has joined #ruby
Kug3lis has joined #ruby
cagomez has joined #ruby
im0nde has joined #ruby
bilal has quit [Quit: bilal]
bilal has joined #ruby
xall has joined #ruby
znz_jp has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
znz_jp has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
gnufied has joined #ruby
ldnunes has joined #ruby
ferr has quit [Quit: WeeChat 1.7]
gnufied has quit [Ping timeout: 246 seconds]
VladGh has quit [Remote host closed the connection]
bkxd has joined #ruby
VladGh has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
itarato has quit [Ping timeout: 246 seconds]
bkxd has quit [Read error: Connection reset by peer]
xall_ has joined #ruby
ascarter has joined #ruby
xall has quit [Ping timeout: 240 seconds]
ascarter has quit [Client Quit]
itarato has joined #ruby
charliesome has joined #ruby
bkxd has joined #ruby
ascarter has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has joined #ruby
nadir has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
xall has joined #ruby
itarato has quit [Ping timeout: 260 seconds]
alazred has quit [Ping timeout: 255 seconds]
ferr has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
xall_ has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
bkxd has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
itarato has joined #ruby
jeffreylevesque has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
gigetoo has joined #ruby
cschneid_ has joined #ruby
itarato1 has joined #ruby
gnufied has joined #ruby
itarato has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
itarato2 has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
_sfiguser has quit [Remote host closed the connection]
xall_ has joined #ruby
itarato1 has quit [Ping timeout: 245 seconds]
xall has quit [Ping timeout: 246 seconds]
tvw has quit []
blackmes1 has quit [Ping timeout: 245 seconds]
jgt1 has joined #ruby
tvw has joined #ruby
bilal has quit [Remote host closed the connection]
bilal has joined #ruby
synthroid has joined #ruby
t-recx has joined #ruby
olivi____ has joined #ruby
pandaant has quit [Remote host closed the connection]
itarato3 has joined #ruby
itarato4 has joined #ruby
itarato2 has quit [Ping timeout: 240 seconds]
olivi____ has quit [Ping timeout: 246 seconds]
itarato3 has quit [Ping timeout: 260 seconds]
itarato4 has quit [Ping timeout: 246 seconds]
itarato4 has joined #ruby
biberu has joined #ruby
mrconfused has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
dionysus69 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Kug3lis has joined #ruby
mim1k has joined #ruby
xall has joined #ruby
itarato4 has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
bilal has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
itarato4 has joined #ruby
redaudit has joined #ruby
houhoulis has joined #ruby
GGMethos has quit [Quit: WeeChat 1.4]
<uZiel>
can I compare an integer with all elements in an array?
bilal has joined #ruby
itarato4 has quit [Ping timeout: 240 seconds]
<uZiel>
Array.methods does show >, <, >=, <= operators and more but I can't recall where did I read how to use them
<uZiel>
check to see if an number is greater than the smallest and smaller than the largest element of an array
bauruine has joined #ruby
<ljarvis>
uZiel: sort the array and then use `x > arr.first && x < arr.last` or `Range.new(arr.first, arr.last).cover?(x)`
<ljarvis>
there are other ways if you need it to be fast, but they're more verbose
<uZiel>
basically, I have an array of n size and I want to keep the top n elements from a stream
workmad3 has quit [Ping timeout: 268 seconds]
<uZiel>
ljarvis: yes please, go ahead, a bit of verbosity won't hurt
xall has joined #ruby
<ljarvis>
uZiel: well, you'd want to loop through the array and checking each item against N, and you can break the loop as soon as you've found a value less or greater than N (thus not having to loop through the entire array)
mim1k has joined #ruby
<uZiel>
ah, that one, ok now I think I want to save lines :D , coz n is only 10-20, not more
<ljarvis>
right, yep.. no point then
rdw200169__ has joined #ruby
<uZiel>
but I would still like to know why those comparison operators exist for Array and how to use them?
ramortegui has joined #ruby
<herwin>
just build a few arrays with numbers, try to compare them and see what happens
pupsicle has quit [Remote host closed the connection]
<majuk>
matthewd: Did it, tried a few different versions, gem installs fail after build
<majuk>
For various reasons.
<havenwood>
^ that'll install the nightly snapshot, and provides a place for you to point to the location of the deps you've installed yourself
<matthewd>
So now we're XYing it? :/
trwyth has joined #ruby
<majuk>
Don't know what that means, but sure.
<matthewd>
?xy
<ruby[bot]>
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
ThirstySurfer has quit [Ping timeout: 246 seconds]
<majuk>
I came in asking for help with rbenv. So.
<majuk>
Feel free to stop responding.
<majuk>
;P
<matthewd>
You're seeking help with rbenv, when rbenv is actually your attempted solution to the original problem.
<havenwood>
majuk: right, rbenv doesn't have anything to do with the problem you're looking to solve
<majuk>
lol, k.
majuk has left #ruby [#ruby]
<matthewd>
I was offering to help fix your original problem, but okay ¯\_(ツ)_/¯
xall_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
<trwyth>
I'm at my wit's end. Why does this error, and how do I actually do this?
<trwyth>
when you consider the last three problems I've had, obviously I don't going in
<trwyth>
pretty sure I will in the next 5 minutes though :)
<trwyth>
I was listening when I was told earlier that methods and objects are different
<ljarvis>
ok, i haven't followed the other problems, but let us know if you get stuck
<trwyth>
and I think it has to do with the call method
<trwyth>
thanks ljarvis :)
<ljarvis>
right, method() is a method call, but it returns an instance of Method, which has a .call method, that you can invoke with the .() syntax. Try this: method(:mult).(1, 2)
<trwyth>
yeeeeeahhh so I was trying to invoke Call on method... which I'm guessing is the same as just asking it to return itself?
<trwyth>
ok
<trwyth>
not sure if I'll remember that after I go to sleep tonight
<trwyth>
but eventually I'll know it well :)
<ljarvis>
well you're calling the method method with 0 args, but it obviously expects one
patarr has joined #ruby
<ljarvis>
that would have worked if `method` was something that did not expect any arguments and returned an object that responded to .call :)
Rodya_ has quit [Remote host closed the connection]
rippa has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
starmix has quit [Quit: WeeChat 1.7.1]
Rodya_ has joined #ruby
cam27 has quit [Quit: cam27]
mim1k has quit [Ping timeout: 240 seconds]
newbs has joined #ruby
bilal has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
bilal has joined #ruby
blackmes1 has joined #ruby
newbs has quit [Client Quit]
chouhoulis has joined #ruby
al2o3-cr has quit [Ping timeout: 268 seconds]
cschneid_ has joined #ruby
mas886 has joined #ruby
vahe has joined #ruby
alazred has quit [Ping timeout: 240 seconds]
<mas886>
Is there something like "buf = msg.split()[:3]" <- This (python) in ruby? (To create an array and grab the number of elements defined by :3))
bilal has quit [Ping timeout: 240 seconds]
raul782_ has joined #ruby
bilal has joined #ruby
nobitano_ has joined #ruby
majuk has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
istrasci has joined #ruby
<istrasci>
HEREDOCs implicitly have a newline at the end that is often undesirable. Is there a way to auto chomp! it in the syntax, or you just have to do it manually?
itarato4 has joined #ruby
<mikecmpbll>
mas886 : lots of different ways .. msg.split.take 3
<mikecmpbll>
msg.split[0..2]; msg.split[0, 3]
raul782 has quit [Ping timeout: 240 seconds]
Pumukel has quit [Remote host closed the connection]
<ljarvis>
istrasci: manually, you could wrap your heredoc in a method that does it though
<mas886>
mikecmpbll: Thanks :)
<mikecmpbll>
if msg is a string, drop the split.
<mikecmpbll>
and use `[]` :)
raul782_ has quit [Remote host closed the connection]
johnny56 has joined #ruby
nicoulaj has joined #ruby
raul782 has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
mrconfused has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
shinnya has quit [Ping timeout: 240 seconds]
boakes has joined #ruby
boakes has quit [Client Quit]
itarato4 has quit [Ping timeout: 268 seconds]
mrconfused has joined #ruby
Mutter has joined #ruby
Asher has quit [Quit: Leaving.]
Mutter has quit [Read error: Connection reset by peer]
mrconfused has quit [Ping timeout: 255 seconds]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
intermo[m] has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
flying has quit []
synthroid has quit [Remote host closed the connection]
olivi____ has joined #ruby
Pumukel has joined #ruby
uZiel has quit [Ping timeout: 246 seconds]
TomyLobo has joined #ruby
theunraveler has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
xall has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
MrBismuth has joined #ruby
MrBusiness3 has quit [Ping timeout: 255 seconds]
igniting has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
itarato4 has joined #ruby
dionysus69 has joined #ruby
ascarter has joined #ruby
flying has joined #ruby
oborot has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tgragnato has joined #ruby
synthroi_ has joined #ruby
amclain has joined #ruby
igniting has quit [Ping timeout: 260 seconds]
raul782 has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
raul782 has joined #ruby
rakm has joined #ruby
itarato4 has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
bilal has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 246 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
etehtsea has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
ych has joined #ruby
ascarter has joined #ruby
gusrub has joined #ruby
etehtsea has joined #ruby
igniting has joined #ruby
johnny56 has quit [Quit: johnny56]
tomphp has joined #ruby
bruno- has joined #ruby
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
igniting has quit [Ping timeout: 240 seconds]
kristoff_ has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
chouhoulis has joined #ruby
olivi____ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 268 seconds]
flying has quit []
mdw has quit [Quit: Sleeping Zzzzz]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Client Quit]
alazred has quit [Ping timeout: 268 seconds]
ResidentBiscuit has joined #ruby
oliv_____ has joined #ruby
guacamole has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
mark_66 has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
<arup_r>
trwyth: I did try it,, and now I am here to find some helps. thanks I will try
<trwyth>
ok.. use google more though
<trwyth>
it's really the best way
<trwyth>
:)
psychicist__ has joined #ruby
<cek>
well, not #to_a, but something along #find_with_index
<arup_r>
trwyth: well. that is the lib I am using to get some result. But no luck so far.
jusa has joined #ruby
<trwyth>
oh I see.. you should post a real question then
<trwyth>
like what problem you're having
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
mrconfused has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
raul782 has joined #ruby
minimalism has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
kradnl has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
conta3 has joined #ruby
conta3 has quit [Client Quit]
cam27 has joined #ruby
conta3 has joined #ruby
bilal_ has joined #ruby
olivi____ has quit [Remote host closed the connection]
vall has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
yeticry has joined #ruby
bilal has quit [Ping timeout: 260 seconds]
fern has joined #ruby
raul782 has quit [Remote host closed the connection]
conta3 has quit [Quit: conta3]
redaudit has joined #ruby
fern has quit [Client Quit]
bonhoeffer has joined #ruby
uZiel has quit [Ping timeout: 246 seconds]
clamstar has quit [Disconnected by services]
vall has joined #ruby
itarato4 has quit [Quit: WeeChat 1.8]
tgragnato has quit [Ping timeout: 240 seconds]
clamstar has joined #ruby
mrconfused has quit [Ping timeout: 260 seconds]
fern has joined #ruby
rkazak has joined #ruby
bonhoeffer has quit [Ping timeout: 268 seconds]
ShekharReddy has joined #ruby
haylon has joined #ruby
itarato has joined #ruby
fern has quit [Client Quit]
oborot has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
nowhere_man has joined #ruby
romank has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
mrconfused has joined #ruby
oborot has joined #ruby
nobitanobi has joined #ruby
aufi has quit [Ping timeout: 272 seconds]
itarato has quit [Ping timeout: 245 seconds]
fern has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
fern has quit [Client Quit]
nobitanobi has quit [Ping timeout: 260 seconds]
vall has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
majuk has joined #ruby
ShekharReddy has quit []
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
fern has joined #ruby
chouhoulis has joined #ruby
fern has quit [Client Quit]
bilal has joined #ruby
fern has joined #ruby
itarato has joined #ruby
BTRE has quit [Quit: Leaving]
fern has quit [Client Quit]
biberu has quit []
BTRE has joined #ruby
bilal_ has quit [Ping timeout: 268 seconds]
patr0clus has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
zachk has quit [Ping timeout: 268 seconds]
romeoh has quit [Remote host closed the connection]
patr0clus has quit [Ping timeout: 272 seconds]
fern has joined #ruby
bonhoeffer has joined #ruby
itarato has quit [Ping timeout: 240 seconds]
fern has quit [Client Quit]
Cohedrin has quit [Read error: Connection reset by peer]
bilal_ has joined #ruby
oliv_____ has joined #ruby
<hxegon>
cek #each_with_index#find { |e, i| ...
redCOAT_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
tgragnato has joined #ruby
oliv_____ has joined #ruby
<al2o3-cr>
hxegon: they probably want Range#find_index
Cohedrin has joined #ruby
bilal has quit [Ping timeout: 240 seconds]
fern has joined #ruby
<hxegon>
al2o3-cr: ah, ok. That's what I get for not reading the full context
bilal has joined #ruby
<al2o3-cr>
hxegon: no worries :)
bonhoeffer has quit [Ping timeout: 240 seconds]
itarato has joined #ruby
<cek>
no, why, he's right. ('a'..'x').each_with_index.find {|e, i| i == 2 }
fern has quit [Client Quit]
<cek>
have forgotten each_with_index can return an enum
<hxegon>
enums are the best :)
bilal_ has quit [Ping timeout: 268 seconds]
<al2o3-cr>
oh, it was that misread it then :P
mrconfused has joined #ruby
<hxegon>
maybe this has already been said, but why can't you use (a..n).to_a[i] cek?
<cek>
because (1..10**29)
jeffreylevesque has quit [Ping timeout: 260 seconds]
<cek>
(slightly exaggerating)
chouhoul_ has joined #ruby
fern has joined #ruby
<al2o3-cr>
cek: is it numbers your dealing with?
<hxegon>
Are there any ruby list types with O(1) access to element by index?
* hxegon
googles it
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 246 seconds]
<al2o3-cr>
cek: do you want the index and element returned?
<hxegon>
actually I think ruby's arrays are already O(1) index lookup because they are basically tables under the hood... could be wrong, but that's what a brief google shows me
<cek>
no, i already got the answer, thanks.
yqt has joined #ruby
<al2o3-cr>
cek: ok
cek has left #ruby [#ruby]
khronos has quit [Quit: Lost terminal]
majuk has left #ruby [#ruby]
majuk has joined #ruby
jimothy has joined #ruby
ascarter has joined #ruby
jimothy has left #ruby [#ruby]
gothicsouth has joined #ruby
User458764 has joined #ruby
xall has quit [Ping timeout: 246 seconds]
romeoh has joined #ruby
pankaj_ has quit [Quit: Leaving]
muelleme has quit [Ping timeout: 268 seconds]
JoshS has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
User4587_ has joined #ruby
olivi____ has joined #ruby
User458764 has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
xall has joined #ruby
olivi____ has quit [Ping timeout: 255 seconds]
<dminuoso>
hxegon: arrays are indeed O(1) for random access.
alibby has left #ruby [#ruby]
romeoh has quit [Remote host closed the connection]
<dminuoso>
hxegon: They grow (chunkwise) at the end even.
<dminuoso>
(Though depending on the size it can also be "ary" instead of "heap" which is basically Rubys way of keeping small arrays. This is why tiny arrays are not really more expensive.
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ramortegui has quit [Remote host closed the connection]
fern has joined #ruby
fern has quit [Client Quit]
Rodya_ has quit [Remote host closed the connection]
romeoh has quit [Remote host closed the connection]
enterprisey has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fern has joined #ruby
ascarter has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
ascarter has quit [Client Quit]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fern has quit [Client Quit]
fern has joined #ruby
jackrandom has quit [Remote host closed the connection]
jusa has joined #ruby
<hxegon>
Anyone here switch from vim or emacs to rubymine? Never used an IDE before and I'm wondering what I'm missing
<baweaver>
a smug sense of superiority
<hxegon>
lol
<baweaver>
joking aside, I just don't really use an IDE for Ruby so I couldn't say
<hxegon>
besides that, and the knowledge that if someone tries to use my computer when I'm on lunch or something they're in for a surprise
blackmes1 has quit [Quit: WeeChat 1.6]
jusa has quit [Ping timeout: 272 seconds]
bilal has quit [Ping timeout: 268 seconds]
<hxegon>
because <smug> I use dvorak *and* vim </smug>
<hxegon>
with qwerty keycaps, just to try and convince anyone watching that I'm actually on hackertyper
<eam>
I briefly used rubymine, it didn't last long
Dimik has quit [Ping timeout: 240 seconds]
kaleido has joined #ruby
ascarter has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
<SeepingN>
much power. it also NEEDS much power, unless they've tamed the java beast
<SeepingN>
yikes
<SeepingN>
security hole much?
<SeepingN>
"As of now, we have resolved most of Java 8 issues for this OS and bundle our custom patched Java version that works the best. "
<SeepingN>
nothing brings warm fuzzies like "custom patched java"
<kaleido>
i definitely feel the warmth
Pumukel has quit []
fmccann has joined #ruby
mrconfused has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<redCOAT_>
DLSteve where would you start to solve it?
oliv_____ has quit [Remote host closed the connection]
<redCOAT_>
or learn how to do it
bonhoeffer has joined #ruby
mrconfused has quit [Ping timeout: 260 seconds]
mas886 has joined #ruby
mas886 has joined #ruby
mas886 has quit [Changing host]
jenrzzz has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
mrconfused has joined #ruby
bonhoeffer has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 240 seconds]
SCHAPiE has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
luckyruby has joined #ruby
Qommand0r has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bilal has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
romeoh has joined #ruby
romeoh has quit [Remote host closed the connection]
romeoh has joined #ruby
lele has joined #ruby
bkxd has joined #ruby
mrconfused has quit [Ping timeout: 255 seconds]
SCHAPiE has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 260 seconds]
pragmaticus has joined #ruby
mrconfused has joined #ruby
cam27 has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has joined #ruby
olivi____ has joined #ruby
tgragnato has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
tgragnato has joined #ruby
AndBobsYourUncle has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
olivi____ has quit [Ping timeout: 268 seconds]
xall has quit [Ping timeout: 246 seconds]
god has joined #ruby
god is now known as Guest79555
cam27 has joined #ruby
Guest79555 has quit [Client Quit]
t-recx has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
fmccann has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silox| has quit [Quit: Connection closed for inactivity]
vall has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Read error: Connection reset by peer]
raul782 has joined #ruby
KnownSyntax has quit [Remote host closed the connection]
mrconfused has quit [Ping timeout: 272 seconds]
azwieg103 has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
fmccann has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
zachk has joined #ruby
zachk has quit [Changing host]
zachk has joined #ruby
_aeris_ has joined #ruby
cdg has quit [Remote host closed the connection]
jamesaxl has joined #ruby
enterprisey has joined #ruby
raspado has quit [Remote host closed the connection]
nobitanobi has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
zachk has quit [Remote host closed the connection]
zachk has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
zachk has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
zachk has joined #ruby
zachk has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 268 seconds]
ta_ has joined #ruby
zachk has joined #ruby
jphase has quit [Ping timeout: 268 seconds]
Fire-Dragon-DoL has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
tgragnato has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: inabit. zz.]
aep has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
bw\_ has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
bilal has quit [Read error: Connection reset by peer]
aep has joined #ruby
cschneid_ has joined #ruby
<SeepingN>
whoa, wtf. Suddenly none of my scripts can require 'trollop'. It was working fine. It shows as installed with "sudo gem list". How can this even be?
bw\ has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
dionysus69 has quit [Ping timeout: 260 seconds]
<havenwood>
SeepingN: Sanity check: sudo gem which trollup
Nicmavr has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
Nicmavr is now known as Guest12802
pragmaticus has quit [Read error: Connection reset by peer]
oborot has quit [Ping timeout: 260 seconds]
<havenwood>
SeepingN: Is that location in a directory in the Gem PATH?: sudo ruby -e "puts Gem.path"
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood>
SeepingN: (It's called trollop though.)
<havenwood>
Unless this is an unpublished gem.
Rodya_ has joined #ruby
Guest12802 has quit [Read error: Connection reset by peer]
<havenwood>
Oh, i'm the one who misspelled it. Heh. My brain broke.