havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
istrasci has quit [Remote host closed the connection]
<snockerton> can anyone tell me a better way to find a multi-nested object based on a key/value?
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
<bougyman> #detect will return 1 result instead of an array
volty has quit [Quit: Konversation terminated!]
ascarter_ has quit [Quit: Textual IRC Client: www.textualapp.com]
guacamole has quit [Quit: leaving]
rkazak has joined #ruby
<cam27> How come BasicObject has more methods than Object when I run the count method on the methods? I thought BasicObject was superclass to Object?
tgragnato has quit [Read error: Connection reset by peer]
jane_booty_doe has quit [Quit: Leaving]
tgragnato has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<al2o3-cr> snockerton: h.dig(0, :form_fields).select { |f| f[:name] == "hostname" }
bkxd has joined #ruby
ledestin has joined #ruby
zachk has quit [Quit: Leaving]
<snockerton> wow, i was messing with #dig for like an hour - didn't realize you could step in an array with the 0
<snockerton> thanks
Hunter1 has quit [Remote host closed the connection]
Hunter1 has joined #ruby
<al2o3-cr> np
BSAlb has joined #ruby
BSAlb has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
quiller has quit [Quit: I out! ::mic drop::]
BSaboia has quit [Ping timeout: 240 seconds]
quiller has joined #ruby
zenguy_pc has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
ddd_ has joined #ruby
snockerton has quit [Quit: Leaving.]
quiller has quit [Quit: I out! ::mic drop::]
quiller has joined #ruby
<ddd_> rbenv... gem home path is not under my home directory... not sure how to fix it https://gist.github.com/dolvany/da8ea3a33b80b856d5ddda5316019ada
milardovich has quit []
mrconfused has joined #ruby
jusa has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusrub has quit []
brendan- has joined #ruby
tgragnato has quit [Ping timeout: 268 seconds]
patarr has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 260 seconds]
mrconfused has quit [Ping timeout: 272 seconds]
tgragnato has joined #ruby
cahoots has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
mitt3ns is now known as agent_white
<ddd_> think i got it fixed
JeanCarloMachado has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
cahoots has quit [Ping timeout: 260 seconds]
ozcanesen has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
<zenspider> cam27: highest is presumably assigned an instance of Ticket. Ticket (the class) is an instance of Class.
oliv_____ has joined #ruby
rgr has quit [Ping timeout: 255 seconds]
<cam27> zenspider: Thank you. Yes, that is correct, I ran them to see if it would be true an it was
apparition has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
zapata has joined #ruby
Vingador has joined #ruby
bruno-_ has quit [Ping timeout: 240 seconds]
pifon has joined #ruby
Hunter1 has quit [Remote host closed the connection]
JeanCarl1Machado has quit [Ping timeout: 272 seconds]
Hunter1 has joined #ruby
JeanCarl1Machado has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
nitric has quit [Ping timeout: 255 seconds]
d^sh has joined #ruby
amclain has quit [Quit: Leaving]
minimalism has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
patarr has joined #ruby
quiller has quit [Ping timeout: 240 seconds]
newbs has joined #ruby
Cohedrin has joined #ruby
quiller has joined #ruby
bruno- has joined #ruby
cschneid_ has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
newbs_ has joined #ruby
newbs_ has quit [Client Quit]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
newbs has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
houhoulis has joined #ruby
cahoots has joined #ruby
newbs_ has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
newbs_ is now known as newbs
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 268 seconds]
sspreitz has quit [Ping timeout: 245 seconds]
cahoots has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
PaulCape_ has quit [Quit: .]
newbs has quit [Quit: Mutter: www.mutterirc.com]
PaulCapestany has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 268 seconds]
JeanCarl1Machado has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
cdg has joined #ruby
Vingador has quit [Remote host closed the connection]
quiller has quit [Ping timeout: 255 seconds]
quiller has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
sspreitz has joined #ruby
t-recx has quit [Quit: t-recx]
JoshS has joined #ruby
gizmore has joined #ruby
enterprisey has quit [Remote host closed the connection]
gizmore|2 has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
newbs has joined #ruby
duderonomy has quit [Ping timeout: 272 seconds]
Cohedrin has joined #ruby
patarr has joined #ruby
oliv_____ has joined #ruby
ascarter has joined #ruby
Alina-malina has quit [Ping timeout: 272 seconds]
newbs has quit [Client Quit]
Alina-malina has joined #ruby
enterprisey has joined #ruby
d^sh has quit [Ping timeout: 246 seconds]
oliv_____ has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 246 seconds]
JeanCarl1Machado has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgragnato has left #ruby ["Sto andando via"]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
xybr3 has quit [Quit: oh shit its the fbi]
ascarter_ has joined #ruby
jameser has joined #ruby
ascarter_ has quit [Client Quit]
charliesome has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
newbs has joined #ruby
HoierM has joined #ruby
uZiel has joined #ruby
ascarter_ has joined #ruby
raspado has joined #ruby
newbs has quit [Read error: Connection reset by peer]
ascarter_ has quit [Client Quit]
redaudit has quit [Quit: Cya]
JeanCarl1Machado has quit [Ping timeout: 246 seconds]
JeanCarl1Machado has joined #ruby
genpaku has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
genpaku has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
Cohedrin has joined #ruby
raspado has quit [Remote host closed the connection]
rexb0t has joined #ruby
quiller has quit [Ping timeout: 268 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
quiller has joined #ruby
duderonomy has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
rexb0t has quit [Quit: Mutter: www.mutterirc.com]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
quiller has quit [Quit: I out! ::mic drop::]
jusa has joined #ruby
quiller has joined #ruby
mrconfused has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
itarato has quit [Ping timeout: 240 seconds]
mrconfused has quit [Ping timeout: 272 seconds]
jusa has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
itarato has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
patr0clus has quit [Quit: tempusfugit]
Alina-malina has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
oliv_____ has quit [Ping timeout: 246 seconds]
itarato has quit [Ping timeout: 260 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Ping timeout: 240 seconds]
Mutter has joined #ruby
Mutter is now known as newbs
ddd_ has quit [Quit: Page closed]
jameser has joined #ruby
ascarter has joined #ruby
HoierM has quit [Ping timeout: 246 seconds]
sspreitz has quit [Ping timeout: 268 seconds]
sspreitz has joined #ruby
ascarter has quit [Client Quit]
skweek has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
dasher00 has quit [Ping timeout: 268 seconds]
ascarter has joined #ruby
bkxd has joined #ruby
newbs has quit [Quit: Mutter: www.mutterirc.com]
duderonomy has joined #ruby
\tau has joined #ruby
<\tau> hi.
mim1k has joined #ruby
<\tau> that resumes my doubt.
bkxd has quit [Ping timeout: 246 seconds]
dasher00 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
bambanx has quit [Ping timeout: 258 seconds]
houhoulis has quit [Remote host closed the connection]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
brent__ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 246 seconds]
JeanCarl1Machado has joined #ruby
brent__ has quit [Remote host closed the connection]
jane_booty_doe has joined #ruby
gix has quit [Ping timeout: 272 seconds]
harfangk has joined #ruby
olivi____ has joined #ruby
gix has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
bambanx has joined #ruby
jane_booty_doe has quit [Quit: Leaving]
lyoung has joined #ruby
hndk has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has joined #ruby
<\tau> hi?
KeyJoo has quit [Ping timeout: 268 seconds]
olivi____ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
\tau has quit [Quit: kk]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
enterprisey has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
AlHafoudh has quit [Ping timeout: 258 seconds]
ger0 has joined #ruby
ger0 has quit [Remote host closed the connection]
Pierreb has quit [Ping timeout: 260 seconds]
hndk has quit [Read error: Connection reset by peer]
<cam27> Are singleton methods and CLass methods different?
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cam27> obj_name.method_name vs ClassName.method_name
<Radar> different how?
<hanmac> class methods are singleton methods on the class object, or do you mean instance methods?
ascarter_ has joined #ruby
renchan has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> cam27: ^
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cam27> Is there a difference between Class.method_name and c = Class.new c.method_name
<cam27> and mathcing method signatures
JeanCarl1Machado has quit [Ping timeout: 268 seconds]
oleo has quit [Quit: irc client terminated!]
charliesome has joined #ruby
gothicsouth has joined #ruby
cagomez has joined #ruby
JeanCarl1Machado has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
<hanmac> cam27 i think you confuse them. the second one are instance methods
<cam27> not if you are calling a methid with the same signature like c.method_name param1
zapata has quit [Quit: WeeChat 1.8]
<cam27> an instance method would be method_name param1
<cam27> def Class.method_name VS def object_name.method_name
<cam27> Class method VS Singleton method, are they the same?
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has joined #ruby
Mavriik has joined #ruby
vahe has joined #ruby
<Mavriik> Hello
ascarter has joined #ruby
<vahe> hi all :) Friends , tell me alternatives RubyMine I'm a beginner , and looking for IDE
<Radar> cam27: no, they are different.
dionysus69 has joined #ruby
<cam27> How so Radar?
<Radar> cam27: One is a class method and one is an instance method.
<cam27> Oh, so a singleton is still just an instnce method but only that instance can access it
ascarter has quit [Ping timeout: 246 seconds]
<Radar> yes.
<dminuoso> Two days in a row Radar has been here ;o
* dminuoso be hating on rails again
<dminuoso> Radar: Did you start learning real ruby?
<cam27> Ok, thanks
<Radar> dminuoso: I have forgotten more Ruby than most people know.
<Radar> All instances of the class have the same methods. There are ways to add new methods to instances but typically you wouldn't do that.
cschneid_ has quit [Remote host closed the connection]
patarr has joined #ruby
<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.
<nofxx> and emacs if you want to join the church
<Radar> +1 Sublime Text is fine for newbies.
<Mavriik> radar: okay cool
<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.
minimalism has quit [Quit: minimalism]
<Radar> dminuoso: that is a very scary diagram
<Mavriik> Radar: okay I think I got it
<Radar> dminuoso: scary + accurate, I should say
<Mavriik> Radar Im really new to all this
patarr has quit [Ping timeout: 268 seconds]
<hanmac> dminuoso: need info on how strings are stored in ruby like there: http://patshaughnessy.net/2012/1/4/never-create-ruby-strings-longer-than-23-characters XD
uZiel has joined #ruby
<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]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
bilal has quit [Quit: bilal]
bilal has joined #ruby
Burgestrand has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 260 seconds]
bilal_ has joined #ruby
<foxmask> bonjello
JeanCarl1Machado has joined #ruby
<vahe> nofxxx: can you tell me an example? :)
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bilal has quit [Ping timeout: 246 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
mrconfused has joined #ruby
enterprisey has quit [Remote host closed the connection]
bilal_ has quit [Read error: Connection reset by peer]
bilal_ has joined #ruby
conta has quit [Quit: conta]
mrconfused has quit [Ping timeout: 272 seconds]
jgt has joined #ruby
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]
arooni has quit [Quit: ZNC - http://znc.in]
arooni has joined #ruby
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
cfec0b8d has joined #ruby
rgr has joined #ruby
tvw has quit []
<DeeJayh> see how each line of the log is pieced together, and even colored differently, based on the options given each time addLog is called?
<ljarvis> right, yes
<ljarvis> you just need to build that string before you send it to stdout, that's all
<ljarvis> or rather, before you write it to Console
blackmesa has joined #ruby
<DeeJayh> I don't know how to do that with color-console while keeping the seperate colors where I want them. That's why it was so convoluted
<DeeJayh> Basically I hacked my way around the problem, rather than addressing it directly
Burgestrand has joined #ruby
mikecmpbll has joined #ruby
<ljarvis> does the console gem allow an alternative IO?
<ljarvis> that gem is *very* old
<ljarvis> have you looked around for alternatives?
nadir has quit [Quit: Connection closed for inactivity]
<DeeJayh> It still does, very effectively, what I want it to do, which is to be able to color output regardless of the OS/cli
hurricanehrndz has quit [Quit: Goodbye]
<ljarvis> but maybe it also doesn't do what you want (use an alternative IO)
<DeeJayh> touche
<ljarvis> this is much better: https://github.com/fazibear/colorize -- because it builds strings
<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]
mdw has joined #ruby
jameser has joined #ruby
jolamb has quit [Quit: ZNC - http://znc.in]
ferr has joined #ruby
jameser_ has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 268 seconds]
<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
<ljarvis> Radcircle: authenticate_or_request_with_http_basic { |username, password| ... }
<Radcircle> cheers :)
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)
<esObe> Can someone help me, please?
xall has joined #ruby
bilal_ has quit [Quit: bilal_]
anisha has joined #ruby
<esObe> a is an array, rgb refers to a[0], a[1], a[2]
aspiers_ has quit [Quit: WeeChat 1.3]
bilal has joined #ruby
stamina has joined #ruby
xall has quit [Quit: xall]
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?
<elomatreb> esObe: Look at the example for Enumerable#all?, it does pretty much exactly what you want: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-all-3F
<esObe> okay, thanks
<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
cedum has joined #ruby
<ljarvis> uZiel: what do you want exactly?
itarato4 has joined #ruby
xall has quit [Ping timeout: 260 seconds]
bauruine has quit [Quit: ZNC - http://znc.in]
<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]
rdw200169_ has quit [Ping timeout: 258 seconds]
<elomatreb> See the docs for <=>, all other comparisons are defined in terms of that: http://ruby-doc.org/core-2.4.1/Array.html#method-i-3C-3D-3E
cdg has joined #ruby
pupsicle has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
Kug3lis has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 258 seconds]
jrafanie has joined #ruby
Kug3lis has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
xall_ has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 260 seconds]
anisha has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Remote host closed the connection]
Pumukel has joined #ruby
Asher has quit [Quit: Leaving.]
romeoh has joined #ruby
jphase has joined #ruby
mrconfused has joined #ruby
itarato4 has quit [Ping timeout: 240 seconds]
Asher has joined #ruby
rgr has quit [Quit: rgr]
cedum has left #ruby ["WeeChat 1.7.1"]
olivi____ has joined #ruby
loechel has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
cahoots has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
GGMethos has joined #ruby
yeticry_ has quit [Ping timeout: 268 seconds]
olivi____ has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
tomphp has joined #ruby
etehtsea has joined #ruby
mrconfused has quit [Ping timeout: 260 seconds]
cahoots has quit [Ping timeout: 260 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
xall_ has quit [Ping timeout: 268 seconds]
Kug3lis has joined #ruby
mrconfused has joined #ruby
houhoulis has quit [Remote host closed the connection]
itarato4 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oleo has joined #ruby
raspado has quit [Quit: Leaving...]
mim1k has quit [Ping timeout: 240 seconds]
majuk has joined #ruby
<majuk> Anyone dealt with rbenv? It... doesn't seem to actually take any of its own command line arguments.
im0nde has quit [Ping timeout: 246 seconds]
<majuk> Everything just prints the default help message.
griffindy has joined #ruby
<havenwood> majuk: Give chruby a try. It's the simplest thing that can possibly work.
<majuk> havenwood: Any idea if it will pull in reby-dev headers?
<majuk> *ruby-dev
<majuk> I don't even know if rbenv will but it seemed simple enough to try.
<havenwood> majuk: chruby doesn't handle installing, but if you build head to ~/.rubies/ruby-dev or /opt/rubies/ruby-dev it'll auto-detect it.
im0nde has joined #ruby
<majuk> havenwood: Cool, thanks for your input.
<ljarvis> chruby <3
<havenwood> majuk: What OS/distro are you on? I'll paste you a script.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<majuk> havenwood: I'm on a custom system on an SoC sooo.... likely won't work.
<havenwood> mmm
<majuk> Thanks though
xall has quit [Ping timeout: 260 seconds]
xall has joined #ruby
<majuk> Yea, chruby doesn't get what I need, I need a tool that handles install
<majuk> as I have no package manager.
<majuk> So naturally it doesn't work.
<havenwood> majuk: folk often use ruby-install with chruby, but you'll need to provide the deps yourself
minimalism has joined #ruby
DLSteve has joined #ruby
bruno- has joined #ruby
mim1k has joined #ruby
<majuk> havenwood: Ah, that's nice. Thanks.
im0nde has quit [Ping timeout: 245 seconds]
fuzzyhorns1 has joined #ruby
<majuk> I'm still bothered by the fact that I can't get rbenv to respond to me in an anticipated manner.
<majuk> Makes me think there is something deeper wrong with this system.
<majuk> Which is noooooot very comforting.
<matthewd> A custom system seems like the place I'd just go with a manual compile, personally
<havenwood> +1 compile it yourself
<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> > @f = lambda { |x| puts x}
<trwyth> SyntaxError: (irb):366: syntax error, unexpected '(', expecting end-of-input
<trwyth> > result = @f('foo')
xall has quit [Ping timeout: 272 seconds]
<havenwood> trwyth: @f.('foo')
<havenwood> trwyth: Or: `@f.call 'foo'` or `@f['foo']` - pick your poison.
<elomatreb> Yeah, lambdas are just objects, not methods
gothicsouth has joined #ruby
<trwyth> ugh I didn't realize there was actually a difference
<trwyth> my js is leaking
Mia has joined #ruby
<trwyth> ty
bkxd has joined #ruby
tomphp has joined #ruby
gr0gg|ex has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mutter has joined #ruby
Mutter is now known as newbs
rakm has joined #ruby
alazred has joined #ruby
alazred has quit [Excess Flood]
alazred has joined #ruby
alazred has joined #ruby
vall has quit [Ping timeout: 240 seconds]
kantu has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
xall has joined #ruby
ResidentBiscuit has joined #ruby
Rodya_ has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
kantu has left #ruby [#ruby]
bkxd has quit [Ping timeout: 268 seconds]
newbs has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
itarato4 has quit [Ping timeout: 240 seconds]
stamina has quit [Quit: WeeChat 1.7.1]
cam27 has joined #ruby
rkazak has joined #ruby
<mc_fail> hi guys
<mc_fail> i'm trying to implement expression like e = a || c.key?(:d) ? b : 'bla'
igniting has quit [Ping timeout: 246 seconds]
oliv_____ has joined #ruby
<mc_fail> so, i expect e = a when a is presented, a = b when c.key(:d) is there, and 'bla' if nothing is presented
<mc_fail> but somehow, in this case a always equals b
<mc_fail> this feels ridiculous
chouhoulis has joined #ruby
<matthewd> mc_fail: Add some parens
<mc_fail> matthewd now it works
<mc_fail> hmm
<mc_fail> is this some parsing problem?
<dminuoso> mc_fail: Not a "problem"
<dminuoso> mc_fail: It's just precedence rules.
Mutter has joined #ruby
<dminuoso> It's considered as (a || b) ? c : d
Mutter is now known as newbs
<mc_fail> ah, ok
<mc_fail> still weird
<dminuoso> (Order is from lowest to highest, and left/right is self-explanatory)
oliv_____ has quit [Ping timeout: 255 seconds]
<ljarvis> ah parse.y, you disgusting pile of mess <3
chouhoulis has quit [Remote host closed the connection]
<mc_fail> well, than i can do something like ( a || b ) || c
<mc_fail> instead of ternary operator
chouhoulis has joined #ruby
<ljarvis> or also, save lives by writing more code
workmad3 has joined #ruby
<dminuoso> ^-
<mc_fail> ljarvis to provide employment for people who are going to maintain all the brackets and pipes I wrote?
<mc_fail> or you mean just to stick with plain if .. else ?
rakm has quit [Remote host closed the connection]
cfec0b8d has quit [Remote host closed the connection]
rakm has joined #ruby
bilal has quit [Ping timeout: 240 seconds]
ferr has quit [Quit: WeeChat 1.7]
<dminuoso> mc_fail: irb(main):021:0> e = a || c.key?(:d) ? b : 'bla'
<dminuoso> mc_fail: To even want this sounds fishy to me.
<ljarvis> tbh, the last part should be c.fetch(:d, 'bla') anyway
newbs has quit [Quit: Mutter: www.mutterirc.com]
xall has quit [Ping timeout: 260 seconds]
<ljarvis> oh
<ljarvis> ignore me
<mc_fail> ljarvis not really
<ljarvis> sleep etc
bilal has joined #ruby
<ljarvis> shhh
<mc_fail> dminuoso what would you suggest?
montyboy has joined #ruby
tomphp has joined #ruby
svisz has quit [Ping timeout: 246 seconds]
Silthias has quit [Ping timeout: 260 seconds]
<ljarvis> can't you just re-assign a instead of a new var (e)?
<dminuoso> mc_fail: I'd have to see the contest of what you are trying to achieve.
<dminuoso> *context
<ljarvis> contest!
<ljarvis> what's the prize
<dminuoso> ljarvis: You get to buy me a beer.
<mc_fail> dminuoso you don't want to know...
<dminuoso> mc_fail: That must be why I just asked, because I don't want to know.
Silthias has joined #ruby
<ljarvis> dminuoso: where do you live?
<dminuoso> ljarvis: The home of the true grammar Nazis.
<ljarvis> that doesn't rule much of the planet out
fuzzyhorns1 has quit [Quit: Leaving.]
<dminuoso> ljarvis: Right across the ocean I guess.
<dminuoso> Germany
chouhoulis has quit [Remote host closed the connection]
<ljarvis> ah, so s/grammar//, got it
duderonomy has joined #ruby
psychicist__ has joined #ruby
fuzzyhorns1 has joined #ruby
fuzzyhorns1 has left #ruby [#ruby]
newbs has joined #ruby
apparition has joined #ruby
<ljarvis> trwyth: method(:mult)
<trwyth> lol oh
<trwyth> thanks
<ljarvis> trwyth: do you understand why?
<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 :)
<ljarvis> >> class Thing; def self.call; "here"; end; end; def thing() Thing; end; thing.()
<ruby[bot]> ljarvis: # => "here" (https://eval.in/799388)
<dminuoso> apeiros: Do you have that gist of yours regarding encoding and encoding issues at hand?
dionysus69 has joined #ruby
Pumukel has joined #ruby
kegster has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
newbs has quit [Quit: Mutter: www.mutterirc.com]
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]
muelleme has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
Beams has quit [Quit: .]
al2o3-cr has joined #ruby
bkxd has joined #ruby
redaudit has quit [Quit: Cya]
itarato4 has joined #ruby
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
feal has joined #ruby
redaudit has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unshadow has joined #ruby
fern has joined #ruby
nitric has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
nicesignal has quit [Remote host closed the connection]
jackrandom has joined #ruby
nicesignal has joined #ruby
ltem has joined #ruby
oliv_____ has quit [Remote host closed the connection]
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
olivi____ has joined #ruby
griffindy has joined #ruby
lacuna has joined #ruby
redaudit has quit [Quit: Cya]
KnownSyntax has quit [Ping timeout: 260 seconds]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
vahe has quit [Quit: Leaving.]
zachk has joined #ruby
__Yiota has joined #ruby
Mutter has joined #ruby
uZiel has joined #ruby
__Yiota has quit [Client Quit]
hahuang65 has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
SaschaVoid has quit [Quit: die();]
nobitano_ has quit [Remote host closed the connection]
__Yiota has joined #ruby
duderonomy has joined #ruby
User458764 has joined #ruby
xall has quit [Ping timeout: 245 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mutter has quit [Quit: Mutter: www.mutterirc.com]
raul782 has quit [Remote host closed the connection]
rdw200169_ has joined #ruby
itarato4 has quit [Ping timeout: 260 seconds]
renchan has quit [Quit: Leaving...]
rdw200169__ has quit [Ping timeout: 246 seconds]
SeepingN has joined #ruby
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
jaruga has quit [Quit: jaruga]
uZiel has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
drcode has joined #ruby
kradnl has joined #ruby
blackmes1 has joined #ruby
skweek has joined #ruby
<uZiel> any way to zip two arrays to form a hash?
<al2o3-cr> uZiel: a1.zip(a2).to_h
unshadow has quit [Quit: leaving]
xall has joined #ruby
kradnl has quit [Read error: Connection reset by peer]
istrasci has left #ruby [#ruby]
itarato4 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
cschneid_ has quit [Remote host closed the connection]
GGMethos has quit [Quit: WeeChat 1.4]
cschneid_ has joined #ruby
GGMethos has joined #ruby
kradnl has joined #ruby
oborot has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
alibby has joined #ruby
jackrandom has quit [Remote host closed the connection]
Mutter has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
griffindy has joined #ruby
Mutter has quit [Quit: Mutter: www.mutterirc.com]
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
itarato4 has quit [Ping timeout: 255 seconds]
u0_a190 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
kradnl has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kradnl has joined #ruby
Rodya_ has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
u0_a190 has quit [Quit: leaving]
itarato4 has joined #ruby
Mutter has joined #ruby
Mutter has left #ruby [#ruby]
haylon has joined #ruby
haylon has quit [Remote host closed the connection]
haylon has joined #ruby
jrafanie has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
mas886 has quit [Ping timeout: 246 seconds]
tildes has quit [Ping timeout: 272 seconds]
itarato4 has quit [Ping timeout: 240 seconds]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
itarato4 has joined #ruby
chouhoul_ has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
Rodya_ has joined #ruby
haylon has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bilal has joined #ruby
jackrandom has joined #ruby
feal has quit [Read error: Connection reset by peer]
mrconfused has joined #ruby
oborot has joined #ruby
__Yiota has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
majuk has quit [Remote host closed the connection]
jphase has quit [Remote host closed the connection]
nothingnew has joined #ruby
jphase has joined #ruby
psychici1t__ has joined #ruby
psychici1t__ has quit [Client Quit]
psychicist__ has quit [Read error: Connection reset by peer]
jphase has quit [Read error: Connection reset by peer]
raul782 has joined #ruby
Rodya_ has joined #ruby
lacuna has joined #ruby
jphase has joined #ruby
mrconfused has quit [Ping timeout: 272 seconds]
haylon has joined #ruby
yeticry has quit [Quit: leaving]
lacuna has quit [Client Quit]
gothicsouth has joined #ruby
arup_r has joined #ruby
<arup_r> Hi We have some data encrypted using this lib. Now we are migrating data to Ruby. So which lib I should use to decrypt them?
vall has joined #ruby
cdg has quit [Remote host closed the connection]
<arup_r> Need to know the equivalent Ruby way of the above link ^
aupadhye has quit [Ping timeout: 258 seconds]
Bock has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
pankaj_ has joined #ruby
chouhoulis has joined #ruby
haylon has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
<trwyth> arup_r: http://ruby-doc.org/stdlib-2.0.0/libdoc/openssl/rdoc/OpenSSL/Cipher.html is probably a good place to start.
<trwyth> that was the first google hit for 'ruby aes'
cek has joined #ruby
<trwyth> I'm a total beginner. Experts won't help you if you don't look for yourself first.
chouhoul_ has quit [Ping timeout: 240 seconds]
<cek> Looking for a way to access an element of range for the given index in shortest possible way
<cek> actually, for shortest possible code
fern has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
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.
vall has joined #ruby
<dminuoso> hxegon: A Ruby array is basically just this structure https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1006-L1011
workmad3 has quit [Ping timeout: 260 seconds]
<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.
fern has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
oliv_____ has joined #ruby
vall has quit [Remote host closed the connection]
vall has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
cdg has joined #ruby
tildes has joined #ruby
shinnya has joined #ruby
Silox| has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
patr0clus has joined #ruby
synthroi_ has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
lyoung has quit [Read error: Connection reset by peer]
itarato has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ForeignBiscuit has joined #ruby
ResidentBiscuit has quit [Ping timeout: 268 seconds]
VladGh has quit [Ping timeout: 240 seconds]
bonhoeffer has joined #ruby
tomphp has joined #ruby
theunraveler has quit []
tsou has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
bonhoeffer has quit [Ping timeout: 240 seconds]
brendan- has quit [Read error: Connection reset by peer]
haylon has quit [Remote host closed the connection]
P1ro has quit [Remote host closed the connection]
haylon has joined #ruby
oliv_____ has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
jrafanie has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
raspado has joined #ruby
tgragnato has quit [Read error: Connection reset by peer]
tgragnato has joined #ruby
minimalism has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
duderonomy has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
tildes has quit [Ping timeout: 255 seconds]
tomphp has quit [Read error: Connection reset by peer]
olivi____ has joined #ruby
minimalism has joined #ruby
unsymbol has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
tomphp has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
gusrub has joined #ruby
vall has quit [Ping timeout: 268 seconds]
tgragnato has quit [Read error: Connection reset by peer]
tgragnato has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
vall has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
gusrub has joined #ruby
fern has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User4587_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
preyalone has joined #ruby
unsymbol has joined #ruby
marr has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tomphp has joined #ruby
haylon has quit [Quit: WeeChat 1.5]
ascarter has joined #ruby
Rodya_ has joined #ruby
skweek has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
ldnunes has quit [Quit: Leaving]
ltem has quit [Quit: Leaving]
jphase has joined #ruby
enterprisey has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
hinbody has quit [Quit: leaving]
cagomez has quit [Remote host closed the connection]
oliv_____ has joined #ruby
tgragnato has quit [Read error: Connection reset by peer]
tgragnato has joined #ruby
jenrzzz has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 255 seconds]
gothicsouth has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
romeoh has joined #ruby
VladGh has joined #ruby
hinbody has joined #ruby
fern has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
herbmillerjr has joined #ruby
zapata has joined #ruby
ski7777 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
t-recx has quit [Quit: t-recx]
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.
fern has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jenrzzz has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
jusa has joined #ruby
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
mas886 has quit [Remote host closed the connection]
jhack has quit [Quit: Leaving]
drcode has joined #ruby
jusa has quit [Ping timeout: 246 seconds]
Kestrel-029 has joined #ruby
majuk has quit [Remote host closed the connection]
Kestrel-029 is now known as Guest29587
alveric3 has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
jgt1 has quit [Ping timeout: 268 seconds]
gnufied has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby
alveric2 has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 258 seconds]
t-recx has quit [Quit: t-recx]