apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
nateberkopec has joined #ruby
drewvanstone has quit [Client Quit]
danijoo has quit [Read error: Connection reset by peer]
drewvanstone has joined #ruby
danijoo has joined #ruby
siso_ has joined #ruby
siso has quit [Ping timeout: 272 seconds]
siso_ is now known as siso
kish has joined #ruby
dkb20k has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
boombadaroomba has quit [Remote host closed the connection]
Lightsword has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 272 seconds]
tokik has joined #ruby
Lightsword has joined #ruby
aspires has quit []
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
LudicrousMango has joined #ruby
dkb20k has quit [Ping timeout: 245 seconds]
zzzbra has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 256 seconds]
Wolland has quit []
Nogbit has joined #ruby
ta has joined #ruby
cajone has quit [Remote host closed the connection]
geggam has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
davidhq has quit [Ping timeout: 264 seconds]
pengin has joined #ruby
jimbach has joined #ruby
rshetty has joined #ruby
cajone has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
silkfox has joined #ruby
econerd4ever has quit [Remote host closed the connection]
MrL0ngbowman has joined #ruby
econerd4ever has joined #ruby
fabrice31 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
parzzix has quit [Ping timeout: 250 seconds]
econerd4ever has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
nkumari has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
rshetty has quit [Read error: No route to host]
rshetty_ has joined #ruby
geggam has quit [Ping timeout: 250 seconds]
shazaum_ has quit [Quit: Leaving]
i0n has quit [Quit: snooze]
MrL0ngbowman has quit [Quit: Leaving]
aspiers has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 258 seconds]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
rshetty_ has quit [Ping timeout: 255 seconds]
checkit has quit [Quit: (null)]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
wjimenez5271 has joined #ruby
fgo has joined #ruby
charliesome has joined #ruby
pengin has quit [Ping timeout: 258 seconds]
Xeago_ has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby
Zesty has joined #ruby
aspires has joined #ruby
neoxquick has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
fgo has quit [Ping timeout: 264 seconds]
ta has quit [Remote host closed the connection]
jenrzzz has joined #ruby
neoxquick has joined #ruby
kevr has quit [Quit: ZNC - http://znc.in]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
triple_b has joined #ruby
rshetty has joined #ruby
kevr has joined #ruby
gregoriokusowski has joined #ruby
<weeb1e_> Lightsword: Let me know exactly what you're trying to do, if you haven't already found a solution
Bira has joined #ruby
beef-wellington has joined #ruby
Vifid has joined #ruby
silkfox has quit [Ping timeout: 258 seconds]
rshetty has quit [Read error: No route to host]
mikecmpbll has quit [Quit: i've nodded off.]
<Lightsword> weeble_, trying to make http and raw tcp socket requsts over ssh tunnels
rshetty has joined #ruby
timonv_ has quit [Ping timeout: 244 seconds]
<Lightsword> but I have issues if I open too many ports
<Lightsword> so what I’m trying to do is open 50 ports and start making requests as each request comes back I need to close the port and open the next
gsd has joined #ruby
<Lightsword> and add that new port to the eventmachine loop
funburn has joined #ruby
russt has quit [Quit: russt]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<weeb1e_> Lightsword: So queue any requests after your limit is exhausted, and as one socket closes, pop the next request from the queue
rpag has quit [Ping timeout: 256 seconds]
longneckbeard has joined #ruby
gr33n7007h has joined #ruby
<Lightsword> I’m using multi.callback right now but I’m not sure how to add additional requests https://github.com/igrigorik/em-http-request/wiki/Parallel-Requests
baroquebobcat has quit [Quit: baroquebobcat]
Bira has quit [Ping timeout: 240 seconds]
<Lightsword> I figured how to open the ports when one finishes but I’m having issues with eventmachine and addint more requests to it
rshetty has quit [Ping timeout: 250 seconds]
SlvrDragn has joined #ruby
SlvrDragn has quit [Client Quit]
ClarusCogitatio has quit [Ping timeout: 265 seconds]
<weeb1e_> Lightsword: If you use a multi callback, your application is going to have to wait for the full batch of requests to complete before starting a new batch
<weeb1e_> It would be better to start the next request as soon as one finishes
siso has quit [Ping timeout: 272 seconds]
<Lightsword> so I shouldn’t use the multi interface at all?
blackmesa has quit [Ping timeout: 244 seconds]
<weeb1e_> Probably not, instead loop manually: outstanding_requests = 0; 50.times do outstanding_requests += 1; start_next_request end
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weeb1e_> Then from the callback of a request, check if the queue is empty, if so "outstanding_requests -= 1; all_requests_complete if outstanding_requests < 1", else call start_next_request again
siso has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
SCHAAP137 has joined #ruby
jlast has quit [Read error: Connection reset by peer]
xymbol has joined #ruby
jlast has joined #ruby
xymbol has quit [Client Quit]
Spami has joined #ruby
tatsuo has joined #ruby
narcan has joined #ruby
aspires has quit []
rshetty has joined #ruby
aspires has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
mikecmpbll has joined #ruby
drewvanstone has joined #ruby
mikecmpbll has quit [Client Quit]
econerd4ever has quit [Remote host closed the connection]
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
econerd4ever has joined #ruby
baweaver has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<Fire-Dragon-DoL> WTF happened to rubygems
oo_ has joined #ruby
<Fire-Dragon-DoL> llol
<Fire-Dragon-DoL> like OVERNIGHT! :P
echooo has joined #ruby
mikepack has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Vifid has quit [Remote host closed the connection]
cajone has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 265 seconds]
x77686d has joined #ruby
Nogbit has quit [Ping timeout: 245 seconds]
msmith_ has joined #ruby
tokik has quit [Ping timeout: 264 seconds]
Lingo______ has quit [Quit: Be back later ...]
rimenes has joined #ruby
Lingo______ has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
longneckbeard has quit [Quit: brb]
jerius has joined #ruby
jerius has quit [Client Quit]
siso has quit [Quit: siso]
Fire-Dragon-DoL has quit [Quit: Leaving.]
razieliyo has quit [Quit: Saliendo]
dc_ has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
lacrymology has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
agent_white has joined #ruby
<lacrymology> will gem install gems globally by default?
<agent_white> evenin' folks
Axy has quit [Read error: Connection reset by peer]
<jhass> lacrymology yes
r0bby_ has joined #ruby
<jhass> /etc/gemrc and ~/.gemrc may influence that behavior
robustus has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
rshetty has quit [Remote host closed the connection]
<lacrymology> so I guess I should run gem install with sudo?
dcunit3d has joined #ruby
<jhass> if you want to install the gem globally
<jhass> do you get a permission error or why are you asking?
robustus has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
xymbol has joined #ruby
<lacrymology> jhass: no, it was taking a while and I didn't want to waste time and then find out I should have done it
<jhass> then continue waitng
workmad3 has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
dkb20k has joined #ruby
Vile` has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
Ankhers has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
drewvanstone has quit [Quit: leaving]
drewvanstone has joined #ruby
baweaver has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
<agent_white> Is there a way to add custom methods to irb? I made a method and tossed it into .irbrc, but when I open irb I can't seem to call it.
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
<agent_white> Odd... nevermind. May have just opened the wrong irbrc file.. ;P
<weeb1e_> lacrymology: Also make sure your rubygems is up to date, older versions are orders of magnitude slower
jimbach has quit [Remote host closed the connection]
<agent_white> Actually, problem not solved.
oo_ has joined #ruby
tkuchiki has joined #ruby
dseitz has quit [Client Quit]
freerobby has joined #ruby
fgo has joined #ruby
jimbach has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
matchaw has joined #ruby
Xiti has quit [Quit: Xiti]
jimbach has quit [Ping timeout: 258 seconds]
fgo has quit [Ping timeout: 244 seconds]
larissa has quit [Quit: Leaving]
matchaw_ has quit [Ping timeout: 272 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
Xiti has joined #ruby
bricker`work has quit [Ping timeout: 244 seconds]
ssyrain has joined #ruby
iinzg has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 245 seconds]
Azure has joined #ruby
Takle has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
Jake232 has joined #ruby
tier has joined #ruby
Jake232 has quit [Client Quit]
klmlfl has quit [Ping timeout: 264 seconds]
emmesswhy has joined #ruby
cajone has joined #ruby
rshetty_ has joined #ruby
charliesome has quit [Quit: zzz]
mary5030 has joined #ruby
renderful has joined #ruby
amclain has joined #ruby
RastaqWhere has joined #ruby
RastaqWhere has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 264 seconds]
rshetty_ has quit [Ping timeout: 264 seconds]
davedev24_ has quit []
Jake232 has joined #ruby
dkb20k has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
renderful has quit [Ping timeout: 264 seconds]
njames has quit [Remote host closed the connection]
sailias has joined #ruby
Channel6 has joined #ruby
Thanh_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Xeago has quit [Remote host closed the connection]
x77686d has quit [Ping timeout: 255 seconds]
rh1n0_away has quit [Max SendQ exceeded]
Ankhers has quit [Ping timeout: 250 seconds]
rh1n0 has joined #ruby
charliesome has joined #ruby
tatsuo has quit [Quit: Leaving...]
yfeldblum has joined #ruby
msmith_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
baweaver has quit [Remote host closed the connection]
Thanh_ has quit [Quit: Page closed]
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
siso has joined #ruby
hornairs_ has quit [Quit: hornairs_]
boombadaroomba has joined #ruby
mikepack has joined #ruby
djbkd has quit [Quit: My people need me...]
aspires has quit []
fgo has joined #ruby
boombadaroomba has quit [Ping timeout: 258 seconds]
Duckily has quit [Quit: Duckily]
<parabolize> agent_white: seems to work for me. Could you paste your irbrc?
zzzbra has joined #ruby
rylev has quit [Remote host closed the connection]
dermothaughey has joined #ruby
narcan has joined #ruby
jnylen has quit [Ping timeout: 264 seconds]
LudicrousMango has quit [Remote host closed the connection]
klmlfl has joined #ruby
Bira has joined #ruby
guyze has joined #ruby
zacstewart has quit []
<guyze> what is the difference between rails 3 and 4?
<eam> one
adriancb has joined #ruby
<guyze> okay eam
funburn has quit [Ping timeout: 272 seconds]
<guyze> what about programming language versions why do they get updated?\
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass> guyze: http://guides.rubyonrails.org/4_0_release_notes.html, in the future please ask Rails questions in #RubyOnRails
<agent_white> parabolize: I figured it out :) I had to add the gem "pry-rails" to my project, then in my .pryrc I just added the method via `class Object; def foo();end;end;`
avr has joined #ruby
dermothaughey has quit [Ping timeout: 264 seconds]
<guyze> thank you jhass
Lightsword has quit [Quit: Lightsword]
<guyze> what is the difference between ruby 1.8.7 and 2.1.4
<guyze> why are there version numbers in ruby?
rpag has joined #ruby
<jhass> lol
benlieb has joined #ruby
<guyze> is ruby a program?
<eam> jhass: ;-)
Bira has quit [Ping timeout: 256 seconds]
<parabolize> agent_white: Why are you still using irb anyway? Switch to pry.
<agent_white> parabolize: I use pry :)
fustirge has quit [K-Lined]
rubie has joined #ruby
<rubie> is it possible to write a method that will create another method?
<jhass> ruby, the language changes, it's not strictly versioned but as the reference implementation, MRI, adds new features we tend to say things like "this was introduced in ruby 2.1.4" where 2.1.4 is the MRI version
<jhass> guyze: ^
<jhass> and for the differences just google
zacts has quit [Quit: leaving]
fabrice31 has joined #ruby
<jhass> rubie: yes
<jhass> you know a few already in fact, attr_reader and so on
zacts has joined #ruby
<eam> eval is the ultimate method that does arbitrary other things
<guyze> jhass: oh... i still have a lot to learn
<rubie> jhass: i was just thinking if it woudl be possible to use binary search on an unsorted list if you could create methods that would make methods that woudl search smaller and smaller parts of the list
<rubie> is that possible?
<guyze> thank you for trying to explain it to me
jtdowney has joined #ruby
<rubie> or is this just recursion
<jhass> rubie: possible yes. I don't think it makes a whole lot of sense to be honest
<parabolize> rubie: the list would have to exist while the code is being evaluated
krz has joined #ruby
emmesswhy has quit [Quit: Leaving]
<eam> parabolize: nah, you could do it at runtime
<rubie> would having 4 methods all using linear search be faster than having method 4x bigger doing linear search?
<eam> rubie: can't say without specifics. The best thing to do is to try it out yourself
<rubie> i have no idea how, its just theory
<eam> it all depends on how exactly you write your methods
fabrice31 has quit [Ping timeout: 240 seconds]
kireevco has quit [Quit: Leaving.]
sargas has joined #ruby
<eam> rubie: it is generally faster to pass parameters vs playing around with dynamic methods
beef-wellington has quit [Ping timeout: 265 seconds]
yourabi has joined #ruby
rshetty has joined #ruby
<tmoore> rubie: you'd have to run on multiple threads... and you don't really need different methods, they would just need to take start and end index as parameters
<tmoore> if you're running them on a single thread, one after another, it wouldn't be faster than just iterating through the entire thing in one method... you'd be iterating through the entire thing anyway
<eam> what's idiomatic ruby to take f(foo: nil, bar: nil) and merge into some_hash as {foo: foo} only if not foo.nil?
arup_r has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
arup_r has quit [Remote host closed the connection]
arescorpio has joined #ruby
klmlfl has quit [Remote host closed the connection]
oculus has quit [Quit: Textual IRC Client: www.textualapp.com]
<tmoore> eam: some_hash[foo] = foo if foo
<jhass> mmh, some_hash.merge({foo: foo, bar: bar}) {|key, old, new| new ? new : old } ?
wjimenez5271 has quit [Ping timeout: 244 seconds]
<tmoore> whoops some_hash[:foo] = foo if foo (forgot the :)
x77686d has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
dermothaughey has joined #ruby
rubie has quit [Quit: Page closed]
jenrzzz has quit [Ping timeout: 264 seconds]
chrisja has quit [Quit: leaving]
adriancb has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
jtdowney has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> aha thanks folks
troyready has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
<eam> is there a way to grab named arguments as a hash?
jaequery has joined #ruby
siso has quit [Quit: siso]
<eam> jhass: I think I'm going to avoid the ternary:
<eam> >> {a: 6, b: 7}.merge({a: 5, b: nil}) {|k,old, new| new or old}
<eval-in__> eam => {:a=>5, :b=>7} (https://eval.in/223314)
<tmoore> eam: do you want to access them by name *and* as a hash, or just as a hash?
Takle has joined #ruby
<eam> tmoore: potentially both
<eam> but what did you have in mind?
<tmoore> not using the keyword argument syntax but just falling back on the old way of doing it...
<eam> ah yeah
jenrzzz has joined #ruby
<tmoore> def my_method(opts = {})
benlieb has quit [Ping timeout: 240 seconds]
<eam> I wanted to supply the same calling convention
<tmoore> otherwise I don't think there is a way to grab all of them as a hash
<tmoore> eam: that still works with the same calling convention
<eam> oh, it would, wouldn't it
<parabolize> Couldn't you subclass Hash or just take in the arguments and assign to a hash?
mois3x has joined #ruby
<tmoore> parabolize: I can't think of why you would need to subclass Hash
robustus has quit [Ping timeout: 255 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
Takle has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
robustus has joined #ruby
aspires has quit []
<tmoore> eam http://stackoverflow.com/a/26552104/29470 not too pretty :-P
<centrx> agent_white, y u no #rubyonrails-offtopic
<agent_white> centrx: wait wat
dkphenom has joined #ruby
aspires has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
tier has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
mois3x has quit [Quit: mois3x]
sailias has joined #ruby
<eam> tmoore: ah, that's gross. I like gross
<tmoore> haha
toretore has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 256 seconds]
aspires has quit [Client Quit]
rshetty has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centrx has quit [Ping timeout: 250 seconds]
phutchins has quit [Ping timeout: 272 seconds]
<jhass> eam: you can do **kwargs which is like *args
rshetty has quit [Remote host closed the connection]
centrx has joined #ruby
<jhass> but that's basically the same as accepting a hash
Lightsword has joined #ruby
<eam> would I be able to set default values?
<eam> f(foo: 5)
jnylen has joined #ruby
<zacts> I can't wait for rvm2
<zacts> rvm1 is a pile of poo, but it's very useful
aspires has joined #ruby
<jhass> nope
Ankhers has joined #ruby
<zacts> I'll be back to reading my ruby books soon though.
econerd4ever has quit [Remote host closed the connection]
aspires has quit [Client Quit]
econerd4ever has joined #ruby
arup_r has joined #ruby
testcore has joined #ruby
kobain has quit [Ping timeout: 245 seconds]
arup_r has quit [Remote host closed the connection]
econerd4_ has joined #ruby
jnylen has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
reinaldob has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
klmlfl has joined #ruby
<tmoore> the problem with **kwargs is that it doesn't include any of the explicitly named ones
econerd4ever has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
tyll has quit [Ping timeout: 244 seconds]
Jesterman81 has joined #ruby
econerd4_ has quit [Ping timeout: 240 seconds]
__main__ has quit [Read error: No route to host]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
tyll has joined #ruby
Lingo______ has quit [Quit: Be back later ...]
centrx has joined #ruby
Lingo______ has joined #ruby
centrx has quit [Client Quit]
reinaldob has quit [Ping timeout: 265 seconds]
kireevco has joined #ruby
centrx has joined #ruby
kireevco has quit [Max SendQ exceeded]
ReRixo has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
workmad3 has joined #ruby
Lingo______ has quit [Remote host closed the connection]
Lingo______ has joined #ruby
triple_b has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
siso has joined #ruby
wsmoak has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
magic_ has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DivineEntity has quit [Ping timeout: 250 seconds]
henesy has quit [Read error: Connection reset by peer]
mayday_jay has joined #ruby
rjl has joined #ruby
henesy has joined #ruby
luriv has quit [Ping timeout: 264 seconds]
DivineEntity has joined #ruby
hamakn has quit [Remote host closed the connection]
__main__ has joined #ruby
hamakn has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
elemenopy has joined #ruby
Jesterman81 has left #ruby [#ruby]
<elemenopy> Cheers Everyone! just wondering if anyone could point me in the right direction for a very very simplistic GET request that returns JSON?
Ankhers has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
kevinxu has joined #ruby
adriancb has joined #ruby
kevinxu is now known as Guest10889
<gr33n7007h> elemenopy, Net::HTTP.get_response(URI.parse('http://ifconfig.me/all.json'))
adriancb has quit [Remote host closed the connection]
hmsimha_ has joined #ruby
<elemenopy> ty im checkin it out :)
adriancb has joined #ruby
MartynKeigher has joined #ruby
bmichelsen has joined #ruby
phutchins has joined #ruby
Lingo______ has quit [Quit: Be back later ...]
luckyruby has joined #ruby
Lingo______ has joined #ruby
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
<MartynKeigher> hey all.. im having a simple issue with some ruby code. i am trying to return a sql value, which is a percentage (result is actually 88),, but my rb file (job) is returning a '1', ie: the number of rows the query returns. i want it to return "88" not "1". can someone please point me in the right direction with this? Thanks. Here is the code http://pastebin.com/7cjCrYW7
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MartynKeigher> i know im missing something simple. the SQL query is 100% correct. im just returning the wrong value.
phutchins has quit [Ping timeout: 258 seconds]
adriancb has quit [Ping timeout: 244 seconds]
Lingo______ has quit [Ping timeout: 245 seconds]
dermothaughey has quit [Remote host closed the connection]
adriancb has joined #ruby
kobain has joined #ruby
dermothaughey has joined #ruby
<centrx> MartynKeigher, How does this code "return"?
ramfjord has joined #ruby
<jhass> you assume that we magically know which database gem you use there, but line 11 looks weird
<tmoore> MartynKeigher: first of all... object.each what is 'object' there... is that meant to be result?
<tmoore> results rather
<MartynKeigher> the returned value displays on a dashboard
klmlfl has quit [Remote host closed the connection]
<MartynKeigher> oh sorry.. jhass .. im using mysql2 gem
tus has quit []
aspires has quit []
<MartynKeigher> i need the result 88 to show. not 1 (is in the no. of rows)
<MartynKeigher> the dashboard is live. dash.managedservic.es
<jhass> note that it includes Enumerable
dermotha_ has joined #ruby
<tmoore> I think you want to use results.first['stat20'] MartynKeigher
dermothaughey has quit [Read error: Connection reset by peer]
dermotha_ has quit [Remote host closed the connection]
cajone has left #ruby [#ruby]
<MartynKeigher> i saw that too tmoore .. still no dice still showing "1"
<tmoore> can you post the updated code?
parzzix has joined #ruby
<MartynKeigher> k sec
<MartynKeigher> im no ruby whizz thats for sure. im just learning
Duckily has joined #ruby
<tmoore> MartynKeigher: in that code, current_stat20 is not defined anywhere
oo_ has quit [Remote host closed the connection]
sargas has joined #ruby
<Duckily> if i have x number of records (say 321) and i want to iterate over them and only end up with 100 evenly distributed
<Duckily> how would one do that?
<Duckily> general programming
<tmoore> you mean choose 100 at random from the list? Duckily
<Duckily> tmoore: no, evenly distributed
<Duckily> so if i used modulus, i would either end up with 3 (rounded down) or 4 (rounded up)
<Duckily> and only add every 3rd or 4th
<Duckily> ill gist it, but i’d like to have an idea of the process of figuring it out, rather than just the solution
AmBienCeD has quit [Read error: Connection reset by peer]
Auv is now known as PrincessAuv
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
mattmcclure has quit [Quit: Connection closed for inactivity]
klmlfl has joined #ruby
<tmoore> Duckily: it might help to break the problem down... 1. how would you do it if you were always rounding down? 2. how would you do it if you were always rounding up? 3. how can you decide whether to round down or up?
radic has quit [Disconnected by services]
<tmoore> all can be solved with different uses of mod I think
dermothaughey has joined #ruby
radic_ has joined #ruby
agjacome has quit [Quit: leaving]
dermothaughey has quit [Remote host closed the connection]
jusmyth has joined #ruby
<tmoore> (but if always rounding down or always rounding up is acceptable for your problem, it becomes much simpler)
<Duckily> tmoore: yeah i know, but its too much variance
rjl has quit [Ping timeout: 240 seconds]
dermothaughey has joined #ruby
vimer has joined #ruby
<Duckily> tmoore: rounding up i would do: https://gist.github.com/anonymous/54e1770399667072f6bf
<tmoore> yep that looks good to me
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
<Duckily> tmoore: but that won’t yield 100
patrick99e99 has joined #ruby
ChoiKyuSang has joined #ruby
<Duckily> if i use ceil, the average is often far too few records, if i use floor, its far too many
zorak8 has quit [Ping timeout: 272 seconds]
<Duckily> if i display over 100 (on map) the map breaks
rshetty has joined #ruby
<tmoore> what if you alternate between ceil and floor?
bluOxigen has joined #ruby
<Duckily> tmoore: right, so my solution would be to take the decimal of the modulus, and alternat at that rate betwee ceil and floor
<Duckily> tmoore: that should in theory work right?
njames has joined #ruby
ssyrain has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
<Duckily> tmoore: just wondering if there’s a better solution
jack_rabbit has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
xymbol has quit [Quit: Lingo: www.lingoirc.com]
guyze has quit [Quit: Page closed]
adam12 has quit [Ping timeout: 245 seconds]
icedp has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
Heartbroken has quit [Ping timeout: 264 seconds]
genpaku has quit [Ping timeout: 256 seconds]
<tmoore> Duckily: maybe but that one sounds good to me
<Duckily> found a much simpler one
delianides has quit [Remote host closed the connection]
adam- has joined #ruby
lacrymology has quit [Ping timeout: 240 seconds]
genpaku has joined #ruby
<tmoore> that sounds less efficient
dwn has quit [Ping timeout: 245 seconds]
icedp has joined #ruby
<tmoore> oh no I misread
<tmoore> neat
nb_bez___ has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
willgorman has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
louism2wash has joined #ruby
<Duckily> tmoore: why does he subtract 1 when calculating the step?
mr_rich101 has quit [Ping timeout: 240 seconds]
xymbol has joined #ruby
<Duckily> if you want 1 record, it would cause an error?
<louism2wash> Hey guys, is there a way I can take an array of strings and convert it into a list of arguments to a method?
oo_ has joined #ruby
<tmoore> "i step through n-1 times and then always add the last element to the end" I guess he wants to make sure the last element is always in there
dwn has joined #ruby
mr_rich101 has joined #ruby
<tmoore> that does seem wrong though
Bira has quit [Ping timeout: 256 seconds]
<tmoore> shouldn't it be length - 1?
<Duckily> tmoore: couldn’t you just round?
<tmoore> yeah not sure really... sorry have to get back to work :-)
pengin has joined #ruby
<Duckily> tmoore: ok thatnks!
fgo has joined #ruby
braincrash has joined #ruby
<lampd1> if you guys needed to create a simple index that only needs to be one table with two columns, what would you use?
<lampd1> redis?
icedp has quit [Ping timeout: 255 seconds]
<lampd1> :D
oo_ has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
Joufflu has joined #ruby
davedev24_ has joined #ruby
Guest10889 has quit [Quit: Textual IRC Client: www.textualapp.com]
kevinxu_ has joined #ruby
Ankhers has joined #ruby
icedp has joined #ruby
<lampd1> bueller?
<Duckily> lampd1: for what?
<Duckily> lampd1: platform, etc
<lampd1> skraight up ruby
JBreit has left #ruby ["Leaving"]
<lampd1> building a functional app to bridge an api and flat files
willgorman has joined #ruby
<lampd1> want to reduce api calls by building an index to store some values
oleo__ has joined #ruby
arup_r has quit [Quit: Leaving.]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
mr_rich101 has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Client Quit]
kevr has quit [Quit: ZNC - http://znc.in]
<lampd1> already planning on using sidekiq, and redis for logging/tracking deferred jobs, why i was thinking of just using redis fo dis
<lampd1> what you think Duckily
oleo is now known as Guest76007
michaeldeol has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
maestrojed has joined #ruby
Guest76007 has quit [Ping timeout: 240 seconds]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
freerobby has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
dermothaughey has quit [Remote host closed the connection]
mr_rich101 has joined #ruby
fabrice31 has joined #ruby
kp666 has joined #ruby
Lingo______ has joined #ruby
kireevco has quit [Quit: Leaving.]
pengin has quit [Ping timeout: 245 seconds]
kevr has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
danijoo has joined #ruby
Takle has joined #ruby
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
Lingo______ has quit [Ping timeout: 240 seconds]
vimer has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
<Duckily> it depends on what you want to do with the data
riceandbeans has quit [Quit: leaving]
riceandbeans has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
vimer has joined #ruby
<Duckily> lampd1: i mean there’s a big difference between an rdbms
rshetty_ has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
bbloom has joined #ruby
kevr has quit [Quit: ZNC - http://znc.in]
Lingo______ has joined #ruby
kevr has joined #ruby
supersym has joined #ruby
hiyosi has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
<lampd1> pretty much just relate one value to the other
lemur has joined #ruby
godd2 has quit [Ping timeout: 250 seconds]
wjimenez5271 has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
tokik has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
adriancb has joined #ruby
kireevco has joined #ruby
louism2wash has quit [Ping timeout: 264 seconds]
NoNMaDDeN has joined #ruby
oleo__ has quit [Quit: Verlassend]
louism2wash has joined #ruby
Heartbroken has joined #ruby
rshetty_ has quit [Remote host closed the connection]
oleo has joined #ruby
Lightsword has quit [Quit: Lightsword]
ashish1099 has joined #ruby
M-Technic has quit [Ping timeout: 244 seconds]
M-Technic has joined #ruby
oo_ has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
vimer has quit [Quit: leaving]
bmichelsen has quit [Quit: ZZZzzz…]
workmad3 has joined #ruby
freerobby has quit [Quit: Leaving.]
wjimenez5271 has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
duncannz has joined #ruby
fandi has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
delianides has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
r0bby_ has joined #ruby
arescorpio has quit [Excess Flood]
xymbol has quit [Quit: Be back later ...]
jaequery has joined #ruby
delianides has quit [Ping timeout: 255 seconds]
Asher has quit [Quit: Leaving.]
Morkel has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Asher has joined #ruby
Lingo______ has quit [Quit: Be back later ...]
iamjarvo has joined #ruby
Lingo______ has joined #ruby
Lightsword has joined #ruby
Eiam_ has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
Lingo______ has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
Ankhers has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
sailias has quit [Quit: Leaving.]
diegoviola has quit [Read error: Connection reset by peer]
jlast has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
TDJACR has quit [Quit: ZNC - http://znc.in]
phutchins has joined #ruby
wolflee has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
tommyvyo has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
wolflee_ has joined #ruby
tatsuo has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
nagaraj has joined #ruby
sevenseacat has joined #ruby
chipotle has quit [Ping timeout: 256 seconds]
kp666 has quit [Read error: Connection reset by peer]
TDJACR has joined #ruby
slawrence00 has joined #ruby
MrDoctor has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
luckyruby has quit [Remote host closed the connection]
wolflee__ has joined #ruby
Asher has quit [Quit: Leaving.]
sargas has quit [Quit: This computer has gone to sleep]
hiyosi has joined #ruby
keen___________4 has joined #ruby
Asher has joined #ruby
lacrymology has joined #ruby
wolflee_ has quit [Ping timeout: 244 seconds]
keen___________3 has quit [Ping timeout: 258 seconds]
aspires has quit []
hiyosi has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noop has joined #ruby
jusmyth has left #ruby [#ruby]
arup_r has joined #ruby
benzrf is now known as benzrf|offline
mikepack has quit [Remote host closed the connection]
omosoj has quit [Quit: leaving]
fedexo has joined #ruby
em0ral has joined #ruby
patrick99e99 has joined #ruby
klmlfl has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
ramfjord has joined #ruby
rshetty has joined #ruby
Bira has joined #ruby
adriancb has quit [Remote host closed the connection]
visof has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
ta has joined #ruby
Channel6 has quit [Quit: Leaving]
wjimenez5271 has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
oleo has quit [Quit: Verlassend]
Areessell has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
Bira has quit [Ping timeout: 256 seconds]
Areessell has quit [Client Quit]
njames has quit [Remote host closed the connection]
Areessell has joined #ruby
parzzix has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
rshetty has quit [Remote host closed the connection]
xymbol has joined #ruby
arup_r has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
ta has joined #ruby
boombadaroomba has joined #ruby
arup_r has joined #ruby
corehook has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
nagaraj has quit [Ping timeout: 240 seconds]
Lingo______ has joined #ruby
xymbol has quit [Ping timeout: 250 seconds]
wjimenez5271 has quit [Remote host closed the connection]
ta has quit [Ping timeout: 265 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
ned_[Away] is now known as ned__
jdj_dk has joined #ruby
boombadaroomba has quit [Ping timeout: 272 seconds]
tobago has joined #ruby
nagaraj has joined #ruby
Takle has joined #ruby
ARCADIVS has joined #ruby
tatsuo is now known as umttumt
lacrymology has left #ruby [#ruby]
rpag has quit [Quit: Leaving]
parzzix has joined #ruby
anaeem1 has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
Duckily has quit [Quit: Duckily]
jnylen has joined #ruby
fabrice31 has joined #ruby
louism2wash has joined #ruby
wjimenez5271 has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
r0bby_ is now known as robbyoconnor
robbyoconnor has quit [Quit: Konversation terminated!]
Igneous_ has joined #ruby
ta has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Igneous_ has quit [Client Quit]
jenrzzz has joined #ruby
Lingo______ has quit [Quit: Be back later ...]
anaeem1 has quit [Ping timeout: 244 seconds]
Lingo______ has joined #ruby
anaeem1 has joined #ruby
dc_ has quit [Remote host closed the connection]
fandi has joined #ruby
kireevco has joined #ruby
sinequanon has joined #ruby
jdj_dk has quit [Remote host closed the connection]
corehook has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tagrudev has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Lingo______ has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
nagaraj has quit [Ping timeout: 256 seconds]
Nogbit has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
neoxquick has quit [Read error: Connection reset by peer]
dcunit3d has quit [Ping timeout: 264 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
workmad3 has joined #ruby
njames has joined #ruby
crus` has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
hmsimha_ has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
last_staff has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Macaveli has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
agent_white has joined #ruby
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
njames has quit [Remote host closed the connection]
rshetty has joined #ruby
pontiki2 has joined #ruby
<pontiki2> hi ruby
<agent_white> Heya pontiki! \o
<pontiki2> hello, agent white
umttumt has quit [Remote host closed the connection]
<agent_white> How are you this evening?
kireevco has quit [Quit: Leaving.]
<pontiki2> recovering, agent_white
marcdel has quit [Ping timeout: 258 seconds]
<agent_white> :o I hope your recovery is going well! Fighting a virus?
<pontiki2> had some minor surgery this morning
<pontiki2> i'm being kept o'night for observation
Spami has quit [Ping timeout: 255 seconds]
corehook has joined #ruby
<agent_white> Oh no! :( What for if you don't mind me asking?
marcdel has joined #ruby
<agent_white> I hope you're doing well!!
michaeldeol has joined #ruby
matcouto has joined #ruby
<agent_white> Also -- Is there any good articles anyone can point me towards for sandboxing ruby? Looking to make a ruby eval bot, but I've had no such luck finding articles on doing so.
Spami has joined #ruby
hmsimha_ has joined #ruby
Ankhers has joined #ruby
NoNMaDDeN has joined #ruby
fandi has quit [Ping timeout: 256 seconds]
xymbol has joined #ruby
anarang has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
ht__th has joined #ruby
rshetty_ has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
kamil has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
narcan has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
xymbol has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
BadQuanta1 has joined #ruby
em0ral has quit [Read error: Connection reset by peer]
dc_ has joined #ruby
bal has joined #ruby
BadQuanta has quit [Ping timeout: 258 seconds]
hamakn_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty_ has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
nrsk has joined #ruby
msx has quit [Read error: Connection reset by peer]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has quit [Remote host closed the connection]
beilabs has quit [Quit: Be back later ...]
frank_____ has joined #ruby
jlast has joined #ruby
dc_ has quit [Ping timeout: 240 seconds]
clauswitt has joined #ruby
<Hanmac> agent_white: ask charliesome
<agent_white> I did and he said the bot sourcecode was not publicly available :(
<charliesome> the sandbox is a hacked up version of this: http://www.ucw.cz/moe/
rtlong has joined #ruby
fandi has joined #ruby
anaeem___ has joined #ruby
phutchins has joined #ruby
drewvanstone has quit [Ping timeout: 255 seconds]
corehook has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 255 seconds]
hiyosi has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ptrrr has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
nagaraj has joined #ruby
<agent_white> charliesome: Oh rad! Thank you
phutchins has quit [Ping timeout: 250 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
louism2wash has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<pontiki2> agent_white: in a bit of pain, but on the whole, okay
<pontiki2> the reasons are TMI
foooobear has joined #ruby
visof has quit [Ping timeout: 250 seconds]
siwica has joined #ruby
<agent_white> pontiki2: :( Well... I guess that's better than being not-okay!
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<agent_white> Get better! :)
tzero has quit [Ping timeout: 255 seconds]
RyanV has joined #ruby
corehook has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
aganov has joined #ruby
fedexo has quit [Ping timeout: 264 seconds]
InformatiQ has joined #ruby
<pontiki2> thanks, agent_white
duncannz has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 258 seconds]
Bira has joined #ruby
tzero has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
dcunit3d has joined #ruby
dc_ has joined #ruby
parabolize has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 264 seconds]
mansonik has quit [Quit: Connection reset by ph33r]
maestrojed has joined #ruby
x77686d has quit [Ping timeout: 256 seconds]
dc_ has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
Lingo______ has joined #ruby
charliesome has quit [Quit: zzz]
renderful has joined #ruby
tlarevo has joined #ruby
andikr has joined #ruby
braincra- has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
ctp has joined #ruby
tlarevo_ has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
braincrash has quit [Ping timeout: 265 seconds]
HayesHimself has joined #ruby
ptrrr has quit [Quit: ptrrr]
bluOxigen has joined #ruby
HayesHimself has quit [Client Quit]
BadQuanta has joined #ruby
HayesHimself has joined #ruby
BadQuanta1 has quit [Ping timeout: 240 seconds]
siso_ has joined #ruby
siso has quit [Ping timeout: 272 seconds]
siso_ is now known as siso
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
xymbol has joined #ruby
bellow has joined #ruby
<bellow> Hello
<bellow> What type of Gel medium should I use when transferring a picture to wood? I have tried Liquitex® String Gel Medium.I have let it sit for over 12 hours and the picture pulls right up when trying to get the paper off
josephndenton has quit [Ping timeout: 256 seconds]
marcdel has quit []
amundj has joined #ruby
rshetty has joined #ruby
vimer has joined #ruby
<sevenseacat> err... what
<sevenseacat> wrong channel?
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenojis has quit [Read error: Connection reset by peer]
<bellow> Then what is the right channel
<sevenseacat> for what?
corehook has quit [Remote host closed the connection]
zenojis has joined #ruby
amundj has quit [Client Quit]
xymbol has quit [Ping timeout: 256 seconds]
<pontiki2> that's a win for nonsequitur question
unshadow has joined #ruby
RitterJack has joined #ruby
<bellow> What type of Gel medium should I use when transferring a picture to wood? I have tried Liquitex® String Gel Medium.I have let it sit for over 12 hours and the picture pulls right up when trying to get the paper off
<sevenseacat> lol
chipotle has quit [Quit: cya]
<pontiki2> bellow: why are you asking woodworking questions in a computer programming channel devoted to the ruby language??
<bellow> Not a woodworking question
<pontiki2> it has *NOTHING* to do with computer programming either
corehook has joined #ruby
<pontiki2> did you just mash some keys together?
<bellow> FINE
<bellow> THERE WHERE SHOUYLD I ASK
fgo has quit [Ping timeout: 264 seconds]
<pontiki2> HOW THE FUCK SHOULD WE KNOW??
<sevenseacat> !popcorn2
sigurding has quit [Quit: sigurding]
einarj has joined #ruby
<sevenseacat> try google.
<bellow> I did
<bellow> no help
<sevenseacat> lol
<bellow> lol
bellow has left #ruby [#ruby]
<sevenseacat> i seem to recall him asking something equally stupid here before
amundj has joined #ruby
wpp has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<wpp> good morning
jlast has joined #ruby
anaeem___ has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
zorak8 has joined #ruby
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Duckily has joined #ruby
anaeem1 has joined #ruby
tgandrews has joined #ruby
Cyberheb has joined #ruby
philwantsfish has quit [Read error: Connection reset by peer]
vt102 has quit [Ping timeout: 240 seconds]
jmdade has joined #ruby
beilabs has joined #ruby
sinequanon has quit []
rshetty has quit [Remote host closed the connection]
Abhijit has joined #ruby
mengu has joined #ruby
Xeago has joined #ruby
alex88 has joined #ruby
Xeago_ has joined #ruby
banister has joined #ruby
hephaestus_rg has joined #ruby
<hephaestus_rg> can someone help me figure out why i can't install this gem? http://paste.ubuntu.com/9090505/
livathinos has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
anaeem___ has joined #ruby
sk87 has joined #ruby
workmad3 has joined #ruby
fantazo has joined #ruby
JohnBat26 has joined #ruby
anaeem1 has quit [Ping timeout: 265 seconds]
<Abhijit> hephaestus_rg, have you tried doing gem install unf_ext -v '0.0.6'
tcrypt has quit [Ping timeout: 272 seconds]
<hephaestus_rg> yeah. it didn't print anything in the console, just exited. then i tried to bundle again and the same thing happened
workmad3 has quit [Ping timeout: 255 seconds]
FooMunki has joined #ruby
fgo has joined #ruby
Lingo______ has quit [Quit: Be back later ...]
zenojis has quit [Ping timeout: 258 seconds]
<hephaestus_rg> i suspect it might be related to the c compiler somehow. is there some way to verify that everything is correct with that
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lingo______ has joined #ruby
<Abhijit> hephaestus_rg, try executing a simple c program from terminal?
<Abhijit> with gcc
maestrojed has quit [Quit: Computer has gone to sleep.]
<hephaestus_rg> i don't know of any specific c programs
<hephaestus_rg> do i need to write one?
<Abhijit> yes
Takle has joined #ruby
<Abhijit> hephaestus_rg, that is to just check if gcc is working or not.
yfeldblum has quit [Ping timeout: 258 seconds]
<bweston92> I can't install ruby 2.1.3 using `ruby-install` because apparently libraries don't exist. Does anyone else have this issue?
<hephaestus_rg> ok so i have a ctest.c file, how do i test gcc? `gcc ctest.c` returned nothing and exited
AlexRussia has joined #ruby
<hephaestus_rg> window 3
fgo has quit [Ping timeout: 250 seconds]
jdj_dk has joined #ruby
unshadow has quit [Quit: leaving]
<gr33n7007h> hephaestus_rg, gcc -o ctest ctest.c
jlast has quit [Ping timeout: 258 seconds]
wald0 has joined #ruby
<hephaestus_rg> ok i did that and it printed nothing
<hephaestus_rg> (i wrote a hello world program)
arup_r has quit [Remote host closed the connection]
beilabs has quit [Quit: Be back later ...]
<hephaestus_rg> if i do ./ctest it does print hello world though
beilabs has joined #ruby
mikepack has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<hephaestus_rg> so if my gcc technically works
ayaz has joined #ruby
Ankhers has joined #ruby
<hephaestus_rg> so if my gcc technically works, i'm not sure what the issue is
<hephaestus_rg> "error 4" was not a very helpful keyword for google
adriancb has joined #ruby
AliRezaTaleghani has joined #ruby
ptrrr has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
Lingo______ has quit [Quit: Be back later ...]
Ankhers has quit [Ping timeout: 250 seconds]
olivier_bK has joined #ruby
NoNMaDDeN has quit [Ping timeout: 265 seconds]
<Abhijit> hephaestus_rg, paste your c program
adriancb has quit [Ping timeout: 255 seconds]
<Abhijit> hephaestus_rg, to pastebin that is.
andrewlio has joined #ruby
Guest7 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
ReRixo has joined #ruby
<hephaestus_rg> that's the c program. it's the simplest thing i could come up with Abhijit
razieliyo has joined #ruby
razieliyo has joined #ruby
siso has quit [Ping timeout: 272 seconds]
<Abhijit> hephaestus_rg, gcc file.c will create one .o file
<Abhijit> run that file
josephndenton has joined #ruby
NoNMaDDeN has joined #ruby
Lingo______ has joined #ruby
Luser has joined #ruby
fgo has joined #ruby
nagaraj has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
lemur has quit [Remote host closed the connection]
<Luser> Hey guys, do you think it is possible to run this repo https://github.com/rikiji/rmotion ? I am having troubles with setting it up..
maasha has joined #ruby
<hephaestus_rg> Abhijit: no .o file, at least it's not in `ls`
lemur has joined #ruby
CustosL1men has joined #ruby
xymbol has joined #ruby
ptrrr has quit [Quit: ptrrr]
josephndenton has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
cmckee has joined #ruby
Mateon1 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
mengu has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 258 seconds]
nagaraj has joined #ruby
xymbol has quit [Ping timeout: 265 seconds]
olivier_bK has quit [Quit: Quitte]
olivier_bK has joined #ruby
mrgrieves has quit [Remote host closed the connection]
michael_lee has joined #ruby
Lingo______ has quit [Quit: Be back later ...]
hiyosi has joined #ruby
Lingo______ has joined #ruby
arup_r has joined #ruby
speaking1ode has joined #ruby
mengu has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
virtualize has quit []
blackmesa has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
Lingo______ has quit [Ping timeout: 256 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
michael_lee has quit [Remote host closed the connection]
rdark has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
<maasha> wruuuum, wruuum
<maasha> narray is driving me nuts :o(
asdfasdf has joined #ruby
joonty has joined #ruby
<maasha> I want to count all non-zero positions in an integer narray: (na > 0).sum - but that is clearly a wrong result. I get the right by doing (na.where > 0).size - but for fucks sake - why is the first not working?
beilabs has quit [Ping timeout: 255 seconds]
phutchins has joined #ruby
nvdpl has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
lidaaa has quit [Ping timeout: 240 seconds]
wald0 has quit [Quit: Lost terminal]
<maasha> I think the issue is that (na > 0) returns a byte array, and summing this overflows the 256 char array. However, if I do (na > o).to_i.sum it is the same thing. It appears that a byte narray cannot be converted to an int narray ?
gr33n7007h has quit [Ping timeout: 240 seconds]
nvdpl has quit [Client Quit]
mikecmpbll has joined #ruby
<maasha> (NArray.int(300).indgen! > 0).sum
<maasha> 43
<maasha> expecting 299
tsahl has joined #ruby
sigurding has quit [Quit: sigurding]
lxsameer has joined #ruby
sigurding has joined #ruby
gregoriokusowski has joined #ruby
beilabs has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
elaptics`away is now known as elaptics
<hephaestus_rg> Abhijit: my VM was out of memory was the root cause. i killed some memory hungry processes and it worked.
<hephaestus_rg> all good now
<hephaestus_rg> thanks for the suggestions though
hephaestus_rg has quit [Quit: Lost terminal]
reinaldob has joined #ruby
Bira has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
zorak8 has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
Grantlyk has joined #ruby
Grantlyk has quit [Client Quit]
Grantlyk has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
sandelius has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
lolmaus has joined #ruby
francisfish has joined #ruby
Bira has joined #ruby
roolo has joined #ruby
startupality has joined #ruby
arup_r has quit [Remote host closed the connection]
Spami has joined #ruby
User458764 has joined #ruby
francisfish has quit [Remote host closed the connection]
sara-zahrani has joined #ruby
sara-zahrani has quit [Client Quit]
foooobear has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Lingo______ has joined #ruby
arup_r has quit [Client Quit]
arup_r has joined #ruby
dcunit3d has joined #ruby
<arup_r> Hi .... I am facing problem to require the minimagick gem https://gist.github.com/aruprakshit/fa29bc06995908d8babe
jlast has quit [Ping timeout: 258 seconds]
michael_lee has joined #ruby
<arup_r> It is now 15 mins .. but still not loaded... What could be the reason?
Phonetiki has joined #ruby
<Phonetiki> hi again
<arup_r> Any idea ?
pontiki2 has quit [Ping timeout: 246 seconds]
<agent_white> Hehe tiki that name is awesome
* maasha kicks narray
<sevenseacat> arup_r: i dont think ive ever seen anyone ask as many pointless questions as you.
<arup_r> Yes... sevenseacat: Me too
<maasha> sevenseacat: I take that as a complement :o)
<arup_r> But that's the point.. It is weired
<sevenseacat> arup_r: that wasnt a compliment.
<maasha> sevenseacat: you misunderstood. For me it was
<arup_r> sevenseacat: Did you get the question?
visof has joined #ruby
Lingo______ has quit [Ping timeout: 264 seconds]
sara-zahrani has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
<agent_white> So I'm wanting to make my own sandbox for a ruby eval bot, and was looking at Sandrbox for inspiration. The question I have is: how did they determine which methods/constants to blacklist? (blacklist here -- ariables have types and data do not have types. In contrast,
<agent_white> eep
<zenspider> sevenseacat: don't bother. it is pointless
<zenspider> agent_white: if that spawns from _why's original work, I believe the answer is via manual code inspection
<maasha> Do anyone have an idea how mature NArray is compared to Numpy (I never used the latter)?
sara-zahrani has quit [Client Quit]
BadQuanta has quit [Remote host closed the connection]
<arup_r> zenspider: Which one is pointless?
<agent_white> zenspider: Oh wow! Yeah this is also the first time I've ever actually looked at the ruby source code... man o man there's lots.
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AliRezaTaleghani has quit [Read error: Connection reset by peer]
<zenspider> that _can't_ be enough methods tho, can it?
patrick99e99 has joined #ruby
<agent_white> zenspider: I couldn't find the source code to his "freaky freaky sandbox" anywhere :(
InformatiQ has left #ruby [#ruby]
<agent_white> zenspider: I have no idea! :P
<zenspider> arup_r: getting you to figure your own shit out or at least learn to ask better questions.
<arup_r> zenspider: What you didn't get from my question ?
lkba has quit [Ping timeout: 256 seconds]
<agent_white> zenspider: I did see the comment thread where he got his inspiration though... maybe it'll be a good start to look for hints. http://viewsourcecode.org/why/redhanded/inspect/lessMethod_missingInMarkaby.html#comments
lxsameer has quit [Ping timeout: 250 seconds]
<zenspider> arup_r: it's not MY lack of understanding in question here
<arup_r> It is clear at all.. I am trying to do `require mini_magick` but I am not able to do.. It got hanged in IRB at every attempt
AliRezaTaleghani has joined #ruby
<zenspider> agent_white: there's also the IRC bot here that has some level of sanitization / safety. I dunno where the source is, but someone does.
Yellow has joined #ruby
<arup_r> gem is there.. but not able to requite it in IRB..
<arup_r> zenspider: ^^
weaksauce has quit [Read error: Connection reset by peer]
Yellow has left #ruby [#ruby]
Lightsword has quit [Quit: Lightsword]
tercenya has quit [Read error: Connection reset by peer]
<agent_white> zenspider: I asked charlie about it, the source isn't available but he showed me where the inspiration came from!
<zenspider> hrm... a closed source bot is just begging to be taken down :)
tercenya has joined #ruby
<agent_white> ;DD
bigkevmcd has quit [Ping timeout: 244 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<zenspider> OK. so there's a bad constant listing for IO
patrick99e99 has quit [Ping timeout: 250 seconds]
jusmyth has joined #ruby
<zenspider> >> IO
<eval-in__> zenspider => IO (https://eval.in/223445)
jusmyth has quit [Client Quit]
<zenspider> >> IO.popen("/bin/ls /") { |f| f.read }
<eval-in__> zenspider => (https://eval.in/223446)
vimer has quit [Quit: leaving]
Bira has quit [Remote host closed the connection]
<agent_white> >> $$
<eval-in__> agent_white => 15181 (https://eval.in/223447)
<arup_r> zenspider: It is solved .. when I open IRB in a new shell session.. This usecase is first time for me.. Got the hints from someone else SHIT http://stackoverflow.com/q/16108152/2767755
<agent_white> >> $0
<eval-in__> agent_white => "/tmp/execpad-6110d4dd366c/source-6110d4dd366c" (https://eval.in/223448)
<zenspider> arup_r: why do you think I care?
nvdpl has joined #ruby
<sevenseacat> its amazing what actually googling a problem can solve.
<agent_white> >> $^
<eval-in__> agent_white => /tmp/execpad-8b9b832a7f6f/source-8b9b832a7f6f:2: `$^' is not allowed as a global variable name ... (https://eval.in/223449)
<sevenseacat> instead of running to ask on irc every single time
<arup_r> zenspider: Because you have shown your interest at your first comment towards my question..
<zenspider> I know, right? it's kinda amazing
NoNMaDDeN has quit [Read error: No route to host]
<zenspider> arup_r: your reading comprehension is deplorable
NoNMaDDeN has joined #ruby
yfeldblum has joined #ruby
<sevenseacat> some of it you can attribute to a language barrier, the rest.... i dunno
<arup_r> zenspider: Humm... I know at-least for you..
AlSquire has joined #ruby
<zenspider> sevenseacat: In this case "some" is asymptotically approaching zero over time
sk87 has joined #ruby
<zenspider> way more attributed to lack of effort / care
nvdpl has quit [Client Quit]
jusmyth has joined #ruby
<gregf_> arup_r: you like being trampled upon :/. c'mon man you;re better than people think you are ;)
jusmyth has left #ruby [#ruby]
frank_____ has quit [Quit: Connection closed for inactivity]
<zenspider> where's the improvement over time?
pink_chocolate has joined #ruby
<arup_r> gregf_ :-)
<gregf_> arup_r: but yeah, things you can do yourself, do them yourself :/
<arup_r> I do understand `:-)` but not `:/`.. What does it mean? :-)
<agent_white> google till your fingers bleed!
<gregf_> heh
<gregf_> agent_white++
gregoriokusowski has quit [Quit: gregoriokusowski]
<arup_r> gregf_: attitude matters... :-)
Lightsword has joined #ruby
<gregf_> well.... patience is the key. but yeah one can run out of patience too.. at times :/
timonv_ has quit [Remote host closed the connection]
msgodf has joined #ruby
Guest7 has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has quit [Remote host closed the connection]
<arup_r> gregf_ That's why I don't use Minitest(lack of patience).. I use Rspec.. ;)
fgo has joined #ruby
<arup_r> gregf_ anyway got to go..Nice to chat with you.. :-)
bluOxigen has quit [Ping timeout: 250 seconds]
pink_chocolate has quit [Remote host closed the connection]
NoNMaDDeN has quit [Ping timeout: 244 seconds]
xymbol has joined #ruby
rshetty has joined #ruby
gregoriokusowski has joined #ruby
cibernox has joined #ruby
coderhs has joined #ruby
unshadow has joined #ruby
unshadow has quit [Client Quit]
Phonetiki has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 272 seconds]
coderhs has quit [Client Quit]
<cibernox> Hi, I have one weird question. I have a project with ruby 1.9 and I would like to update it to 2.1 or 2.2 but I won’t get that to be approved by client’s devops if there is no unavoidable requiremente to update
unshadow has joined #ruby
unshadow has quit [Client Quit]
<cibernox> so the only thing I need is a gem that doesn’t work in ruby 1.9 to add it in the gemfile
xymbol has quit [Ping timeout: 255 seconds]
Phonetiki has joined #ruby
unshadow has joined #ruby
<cibernox> anyone knows any gem that requires ruby 2.0?
<cibernox> other than a pry-byebug and such
bluOxigen has joined #ruby
tsahl has quit [Quit: Leaving]
<cibernox> i don’t care what it does :D
<cibernox> just needs to be incompatibe with 1.9
tgandrews has quit [Quit: tgandrews]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
DaniG2k has joined #ruby
ta has quit [Remote host closed the connection]
<shevy> wat
<shevy> crazy requirement
ta has joined #ruby
jlast has joined #ruby
testcore has quit [Ping timeout: 250 seconds]
<shevy> in general, any .gemspec that should have something like: s.required_ruby_version = '>= 2.0' should suffice
ikaros has joined #ruby
fabrice31_ has joined #ruby
<shevy> hmm
<shevy> they redesigned rubygems.org recently
<shevy> takes me a bit to find
<shevy> cibernox I think you can create a dummy gem
fabrice31 has quit [Ping timeout: 258 seconds]
Phonetiki has quit [Quit: Disconnected]
bigkevmcd has joined #ruby
<sevenseacat> wow they did redesign it.... thats only been in the last couple days
<arup_r> File.join("a/b","../tmp/a.rb") # => "a/b/../tmp/a.rb"
<arup_r> But I want "a/tmp/a.rb"
kevinxu_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> cibernox this is a skeleton you could use http://pastie.org/9729683
<arup_r> How to do so ?
ta has quit [Ping timeout: 265 seconds]
<cibernox> sure I can, but I would like to use a 3rd party one to dissemble the real purpose
workmad3 has joined #ruby
reinaldob has joined #ruby
<cibernox> I don’t really thing devops will care enough to investigate what the gem does
<shevy> don't know of any gem that has a hardcoded requirement on ruby 2.0 and higher
<cibernox> but maybe enough to check is it’s mine
<cibernox> xD
<arup_r> Actually I am using __dir__ in place of "a/b" in my code.. where I want to move up one level dir,,, then join
<shevy> after all gem authors lose people using ancient ruby; though actually 1.9 is not that ancient
<shevy> arup_r File.expand_path() I think
<shevy> >> File.expand_path "a/b/../tmp/a.rb"
<eval-in__> shevy => "/tmp/execpad-a8b0f7c4b457/a/tmp/a.rb" (https://eval.in/223465)
<shevy> man this stupid bot
Soda has quit [Remote host closed the connection]
<shevy> ok it assumes a valid dir
<shevy> I am sure there is some other way
AFKGeek has joined #ruby
<shevy> on my system it did this:
<cibernox> I’ll find some gem using rubygems filter then
<shevy> File.expand_path "a/b/../tmp/a.rb" # => "/Depot/j/a/tmp/a.rb"
timonv_ has joined #ruby
delianides has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<arup_r> Ok.. I somewhere saw __dir__ with File::join
<arup_r> But now forgot
dANO has joined #ruby
govg has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Remote host closed the connection]
<unshadow> >> a = %x(ls /tmp); puts a
<eval-in__> unshadow => (https://eval.in/223466)
<unshadow> lol :)
davedev24_ has joined #ruby
<shevy> yeah it does not want you to try and break out unshadow
<shevy> it's a prison bot after all
chaotik has joined #ruby
chaotik is now known as shortCircuit__
Luser has quit [Remote host closed the connection]
<zenspider> cibernox: If it comes to it, I will happily publish a gem that requires 2.0 for you. I will probably call it upgrade_to_20 :)
Lightsword has quit [Quit: Lightsword]
delianides has quit [Ping timeout: 272 seconds]
<cibernox> lol
<shevy> hehe
<gregf_> arup_r: File.join("a/b".gsub!(/\w+$/,""),"../tmp/a.rb") ?
<cibernox> what is what happens when a client has square-headed devops that refuse to update anything
<gregf_> ah - nevrmind shevy++
corehook has quit [Remote host closed the connection]
<cibernox> ever
mrgrieves has joined #ruby
ldnunes has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
corehook has joined #ruby
ta has joined #ruby
tgandrews has joined #ruby
<mrgrieves> Good Morning! I'm trying a few things with puppet's facter and rspec and was wondering if someone here can provide some guidance. I have a sample module with a sample fact https://github.com/dansanabria/facter_sandbox.git , and I have set up my env to run rspec with the necessary helpers etc ... The first question I have is: How can I mock the get_fact method on my spec?
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mrgrieves> currently when I run rspec spec I get the following: http://pastebin.com/9StBaRMa
cibernox has left #ruby [#ruby]
pedrocarrico has joined #ruby
<unshadow> well..
<unshadow> >> a = %x("() { :;}; ls /tmp/")
<eval-in__> unshadow => (https://eval.in/223472)
cajone has joined #ruby
wjimenez5271 has joined #ruby
<unshadow> damn... it is a good bot
pedrocarrico has left #ruby [#ruby]
<shevy> yeah, Hanmac tried to break it for some weeks
rodfersou has joined #ruby
<shevy> then he conceded that he could no longer break it
<shevy> then the bot was declared fail-save
corehook has quit [Ping timeout: 258 seconds]
xymbol has joined #ruby
fgo has joined #ruby
jheg has joined #ruby
Bira has joined #ruby
cajone has quit [Remote host closed the connection]
platzhirsch has joined #ruby
Ankhers has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
Bira has quit [Remote host closed the connection]
<unshadow> >> a = Dir.pwd; puts a
<eval-in__> unshadow => /tmp/execpad-1fd02c9db250 ... (https://eval.in/223487)
rshetty has quit [Remote host closed the connection]
<unshadow> hm...
fgo has quit [Client Quit]
<unshadow> Is it ok for me to play with it for fun ?
<unshadow> can I send commands without making the channel look like a ruby pastebin ?
<canton7> go directly to eval.in
matcouto has joined #ruby
<agent_white> >> $$
<eval-in__> agent_white => 15324 (https://eval.in/223489)
ta has quit [Remote host closed the connection]
Lingo______ has joined #ruby
<agent_white> shevy: Speaking of, I'm attempting to learn how to sandbox ruby to make my own ruby eval bot.
ta has joined #ruby
<agent_white> Diving into ruby internals for the first time. eeee!
Ankhers has quit [Ping timeout: 250 seconds]
echooo1 has joined #ruby
FooMunki has quit [Quit: FooMunki]
echooo has quit [Ping timeout: 250 seconds]
<shevy> agent_white cool
dc_ has joined #ruby
<maasha> README.ext is a great start
jlast has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
carlosoliveira has joined #ruby
<agent_white> maasha: Yeah I'm checking that out now! First time even peeping at the ruby source
Avahey has quit [Quit: Connection closed for inactivity]
<agent_white> I feel fancy.
im0b_ is now known as im0b
St_Marx has quit [Remote host closed the connection]
Lingo______ has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 265 seconds]
kasperti_ has joined #ruby
josephndenton has joined #ruby
dc_ has quit [Ping timeout: 272 seconds]
<maasha> agent_white: and with inlineruby you can do neat low level stuff.
FooMunki has joined #ruby
<agent_white> maasha: The perl module?
<maasha> agent_white: there is a similar in ruby
mikepack has joined #ruby
<maasha> agent_white: rubyinline
<agent_white> maasha: Ooo I'll have to check it out! Thank you! :D
banister has joined #ruby
<maasha> agent_white: the ruby one is much easier to work with IMHO.
nagaraj has quit [Read error: No route to host]
ruisanto1 is now known as ruisantos
St_Marx has joined #ruby
kapott has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<maasha> agent_white: Here I used it for dynamic programming to align sequences: https://code.google.com/p/biopieces/source/browse/trunk/code_ruby/lib/maasha/seq/dynamic.rb
ta has joined #ruby
<agent_white> maasha: Ooo...
NoNMaDDeN has joined #ruby
workcat has joined #ruby
<workcat> Hello
josephndenton has quit [Ping timeout: 255 seconds]
<shevy> wow
<shevy> workcat!
<shevy> look sevenseacat it is yet ANOTHER cat!
yfeldblum has quit [Ping timeout: 250 seconds]
<workcat> how can I run passenger-install-apache2-module in the background?
mikepack has quit [Ping timeout: 264 seconds]
<workcat> it takes forever to compile on rpi
<workcat> and the ssh session dies before it is done
<canton7> in a screen session?
ta_ has joined #ruby
<workcat> I run the command over ssh
<canton7> my suggestion still stands
<workcat> and I got broken pipe error after a few hours
<canton7> still standing
SkireM has joined #ruby
<txdv> ooo compardre shevy, you have so much cat
<workcat> so how do I do that?
<canton7> man screen
<canton7> (or look online - there are literally tons of tutorials)
<workcat> yes yes
<shevy> txdv it's a cat's world man
xymbol has quit [Quit: Lingo: www.lingoirc.com]
<txdv> i eat cat this morning, taste very good
<sevenseacat> there can be only one!
* sevenseacat stabs workcat
<txdv> damn it
<txdv> im so bored with my life
<txdv> im actually ready to try some dog and cat meat
fandi has quit [Read error: Connection reset by peer]
<txdv> but i guess it will be nothing special
<shevy> you are losing yourself man
davedev24_ has joined #ruby
ta has quit [Ping timeout: 255 seconds]
<txdv> shevy: matz better bring those types in ruby or ill get even more bored
corehook has joined #ruby
<shevy> hmm
francisfish has joined #ruby
<shevy> will a typed ruby be the same old ruby
hiyosi has joined #ruby
<canton7> even php has strong typing nowadays... a bit
<txdv> it will be unless you specify types
<shevy> php has?
<txdv> canton7: em hvvm/hack has
<txdv> a special implementation with extensions by facebook
<shevy> OMG
<shevy> IT HAS
<txdv> what is this
<txdv> types in php but no types in ruby
jheg has quit [Quit: jheg]
<txdv> matz plz fix
<deepy> Let's all embrace duck typing
<waxjar> it'd be neat if you could say "this object needs to respond to these methods"
<canton7> yeah, I was toying around with that idea a while back
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> it's pretty easy to implement I seem to remember
<shevy> public function test_array(array $input_array) {
<canton7> define a module as the "interface", then check that all methods on the module are implemented by the thing being passed in
<shevy> deepy FIX THOSE DAMN DUCKS!!!
<shevy> I am tired of ducks, I want chickens
<shevy> or cats
bewees has joined #ruby
<bewees> hi
tylersmith has joined #ruby
<deepy> shevy: let's all embrace cat typing
<shevy> yeah
tkuchiki has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<workcat> Cat typing sounds nice
<bewees> Should I use ruby2.X or ruby 1.9.3 considering I want to work with selenium-webdriver
eebrah has joined #ruby
sk87 has joined #ruby
<waxjar> go with the latest if you don't know :)
tkuchiki has quit [Ping timeout: 258 seconds]
cajone has joined #ruby
<AlexRussia> hey
<AlexRussia> does somebody can explain me 'with' keyword?
<AlexRussia> like with <something> <code-block>
<tobiasvl> AlexRussia: it's not a keyword, isn't it a method? used in rails?
<AlexRussia> if it exist, ofc, i am found it here http://govnokod.ru/17095#comment254028
<AlexRussia> maybe
graft has quit [Ping timeout: 272 seconds]
RyanV has quit [Quit: (null)]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<maasha> ruby moving from duck typing to bug typing
rshetty has joined #ruby
kp666 has joined #ruby
<AlexRussia> maasha: yep :(
NightMonkey has quit [Ping timeout: 255 seconds]
<waxjar> this type checker is supposed to run at runtime no?
<waxjar> or just before it, like after the syntax is checked?
doev has joined #ruby
<maasha> *error* type mismatch: your number is not sufficiently numeric
jlast has joined #ruby
<AlexRussia> *uck, no comments... http://govnokod.ru/16876
kasperti_ has quit []
AlSquirrel has joined #ruby
uptownhr has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
mengu has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
<tobiasvl> comments on what? that link doesn't have with
tlarevo_ has quit [Remote host closed the connection]
MrIlyas has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
workcat has quit [Quit: Leaving]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Akuma has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ashish1099 has left #ruby [#ruby]
wpp has quit []
AlSquire has quit [Ping timeout: 256 seconds]
<AlexRussia> tobiasvl: no, i didn't mean comment(s) itself :(
<AlexRussia> tobiasvl: i meaning, this code so fun ^_^
Rx_o has joined #ruby
phutchins has joined #ruby
RandyT has quit [Ping timeout: 265 seconds]
airdeluxe has quit [Ping timeout: 240 seconds]
RandyT_ has joined #ruby
yfeldblum has joined #ruby
RandyT_ is now known as RandyT
kasperti_ has joined #ruby
NightMonkey has joined #ruby
fsapo has joined #ruby
tvw has joined #ruby
clauswitt has joined #ruby
xiq__ is now known as xrlabs
kapott has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 264 seconds]
<bewees> Do you recommend to use Poltergeist+Capybara or Watir-webdriver?
<bewees> I want to login to a website and download a site
<sevenseacat> neither
<bewees> sevenseacat, Which one do you recommend?
godd2 has joined #ruby
unshadow has quit [Quit: leaving]
<sevenseacat> use mechanize
sara-zahrani has joined #ruby
<bewees> Does mechanize support javascript in ruby? In python it doesn't.
<krz> qunit + ember
<krz> its the future
<krz> :P
echooo1 has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
sara-zahrani has quit [Client Quit]
corehook has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 245 seconds]
wsmoak has joined #ruby
wsmoak has quit [Changing host]
wsmoak has joined #ruby
<agent_white> >> "x".class.superclass.superclass.superclass
jlast has quit [Ping timeout: 258 seconds]
<eval-in__> agent_white => nil (https://eval.in/223518)
<agent_white> THE CLASS OF BASICOBJECT IS NIL
Guest7 has joined #ruby
kapott has joined #ruby
blackmesa has joined #ruby
<tobiasvl> nil is god
<agent_white> !
<deepy> >> nil.class
<eval-in__> deepy => NilClass (https://eval.in/223519)
<deepy> >> nil.class.superclass
<eval-in__> deepy => Object (https://eval.in/223520)
<agent_white> WAT
<agent_white> >> nil.superclass
<eval-in__> agent_white => undefined method `superclass' for nil:NilClass (NoMethodError) ... (https://eval.in/223521)
<teotwaki> why would nil have a superclass method?
<Hanmac> agent_white: do you know that the singleton_class of a singleton_class can have a singleton_class? ;P
<agent_white> teotwaki: Because who watches the watchers?!
<agent_white> Hanmac: Oh lord... I'm dipping my toes into metaprogramming as we speak. This stuff is crazy.
<teotwaki> the watcher-watchers watch the watchers
Bira has joined #ruby
<deepy> agent_white: what's the class of Object?
<agent_white> deepy: Class
<agent_white> And the Class of Class is Class.
<deepy> What's the superclass of Class?
<agent_white> AND THEN
CustosL1men has quit [Remote host closed the connection]
* agent_white 's mind explodes
<agent_white> BasicObject
<deepy> Isn't it Module?
<agent_white> deepy: eeep you're right!
<deepy> Now what you need to do is draw this, make a chart out of it
arup_r has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<deepy> What's the class of Module?
<agent_white> Class
<agent_white> And the superclass is BasicObject
<agent_white> deepy: Haha yeah I'm on it! Got my notepad going right now
<deepy> or is it?
<deepy> >> Module.class.superclass
<eval-in__> deepy => Module (https://eval.in/223536)
dEPy has joined #ruby
corehook has joined #ruby
<agent_white> Whoa
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<Hanmac> now i drop the Bomb: i say "Module is a Class!" XD
Bira has quit [Ping timeout: 264 seconds]
<deepy> Hanmac: sorry, we beat you to it :(
<agent_white> Whoa
<deepy> But good contribution nonetheless
<agent_white> >> class A; end; class B < A; end; B.superclass
<eval-in__> agent_white => A (https://eval.in/223540)
<Hanmac> deepy: did you know that you can store classes, modules and other constants into the eigenclass/singleton_class of objects?
michael_lee has quit [Ping timeout: 256 seconds]
dcunit3d has joined #ruby
<deepy> I've no clue, I'm a Python/Java programmer
<deepy> I just hang around here to whine when things go wrong with Diaspora
<agent_white> Lets say I have `class A; class B; end; end;` . How do I get the outer class? Say if I did `c = ::A::B`. What would I call on C to get a return value of A ?
<agent_white> call on "c" **
<Hanmac> deepy:
<Hanmac> >> o = Object.new; class << o; CONST = "ABC"; end; o.singleton_class::CONST
<eval-in__> Hanmac => "ABC" (https://eval.in/223543)
arup_r has joined #ruby
michael_lee has joined #ruby
<deepy> I can't think of any usecase
<AliRezaTaleghani> how can I use ruby as webDAV client to upload a file on webdav server?
apeiros_ has joined #ruby
<AliRezaTaleghani> I found this https://github.com/taf2/curb
<AliRezaTaleghani> but it's put example dose no thing :-/
dcunit3d has quit [Ping timeout: 272 seconds]
<AliRezaTaleghani> webDAV is new for me and I can't figure it out how to upload a local file on webDAV server by the help of ruby codes :-/
mikepack has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
renderful has joined #ruby
rshetty has quit [Remote host closed the connection]
max96at|off is now known as max96at
<agent_white> Seems like it all ends at BasicObject
Morkel_ has joined #ruby
vimer has joined #ruby
<agent_white> Class's superclass is Module, Module superclass is Object, Object superclass is BasicObject, BasicObject has no superclass.
olivier_bK has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
vinleod has joined #ruby
<agent_white> But.
patrick99e99 has quit [Ping timeout: 258 seconds]
<agent_white> Why if BasicObject has no superclass does it have that method? While nil does not?
renderful has quit [Ping timeout: 255 seconds]
<agent_white> wait nevermind
<agent_white> hahaha
<banister> agent_white nil isn't a class
<agent_white> NilClass not nil.
<agent_white> aye!
redjack1964 has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
davidhq has joined #ruby
tgandrews has quit [Quit: tgandrews]
<agent_white> So really... it's not "buffalo buffalo buffalo" ... it's Class.class.class...
Macaveli has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
kapott has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
sigurding has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
sk87 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
corehook has quit [Remote host closed the connection]
workmad3 has joined #ruby
Beoran has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
mr_foobar_baz has joined #ruby
tus has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
parzzix has quit [Ping timeout: 240 seconds]
Macaveli has quit [Client Quit]
parzzix has joined #ruby
ctp has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
mr_foobar_baz has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
jlast has joined #ruby
fabrice31 has joined #ruby
Macaveli has joined #ruby
ctp has quit [Client Quit]
jottr has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
ixti has joined #ruby
mr_foobar_baz has joined #ruby
corehook has joined #ruby
cmckee has left #ruby [#ruby]
drago777 has quit [Quit: Im out bitches]
tgandrews has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
bluehavana has quit [Quit: Connection closed for inactivity]
<shevy> lol
Takle has joined #ruby
Beoran has joined #ruby
Takle has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 272 seconds]
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
visof_ has joined #ruby
Cyberheb has quit [Quit: Computer has gone to sleep.]
ixti has joined #ruby
nagaraj has joined #ruby
AFKGeek has quit [Read error: Connection reset by peer]
AFKGeek has joined #ruby
visof has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
AFKGeek has quit [Client Quit]
shazaum has joined #ruby
shazaum has quit [Changing host]
shazaum has joined #ruby
Lingo______ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jhass> agent_white: Class#superclass, BasicObject.is_a? Class
Akuma has quit [Quit: So long sukkas!]
banister has joined #ruby
linduxed has quit [Ping timeout: 264 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
jlast has quit [Ping timeout: 258 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
visof_ has quit [Changing host]
visof_ has joined #ruby
Lingo______ has quit [Ping timeout: 264 seconds]
heftig has joined #ruby
davidhq has joined #ruby
Takle has joined #ruby
lucyinthesky has joined #ruby
<agent_white> jhass: What in the hell..
rshetty has joined #ruby
linduxed has joined #ruby
davidhq_ has joined #ruby
<agent_white> >> Class.superclass != Class#superclass
<eval-in__> agent_white => true (https://eval.in/223558)
bobbytek has joined #ruby
parzzix has quit [Ping timeout: 255 seconds]
<bobbytek> Is there a more idiomatic way of doing this: groups[group] = (groups[group] || []) << box['name']
wjimenez5271 has joined #ruby
livingstn has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
magic_ has quit [Ping timeout: 255 seconds]
davidhq has quit [Ping timeout: 256 seconds]
<waxjar> bobbytek: groups = Hash.new { |hash, key| hash[key] = [] }; groups[group] << whatever
Bira has joined #ruby
davidhq_ has quit [Ping timeout: 264 seconds]
wjimenez5271 has quit [Ping timeout: 245 seconds]
SkireM has quit [Quit: Nettalk6 - www.ntalk.de]
kapott has joined #ruby
<gregf_> waxjar: that should be possible to? what bobbytek's said? it aint quite readable tho' :/
<gregf_> a = { "one" => [], "two" => [] };(a["three"] ||= []) << 10; a ?
<gregf_> well, seems like everything works in ruby :/, what you think is what you get :/
lxsameer has quit [Ping timeout: 255 seconds]
sameerynho has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
zarubin has quit [Quit: Leaving.]
<waxjar> it's possible, yeah, but bobbytek asked for an idiomatic way :)
zarubin has joined #ruby
<gregf_> yeah true :)
sk87 has joined #ruby
<jhass> agent_white: Class#superclass means "instance method superclass of class Class"
<jhass> String#gsub: "instance method gsub of class String"
jimbach has joined #ruby
<bobbytek> Hmm
<agent_white> jhass: That was literally the start of the next section I was reading :D Never knew that syntax before!
henesy has quit [Excess Flood]
henesy has joined #ruby
<jhass> bobbytek: more context? You might want boxes.group_by {|box| box.group }
Duckily has quit [Quit: Duckily]
jimms has joined #ruby
mr_foobar_baz has joined #ruby
zarubin has quit [Ping timeout: 255 seconds]
hiyosi has joined #ruby
<bobbytek> jhass: Yeah, that might work well
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
dda has joined #ruby
<bobbytek> jhass: Basically this is what I'm doing: http://pastie.org/9729949
<bobbytek> Sorry, I'm just a Vagrantfile hacker :)
NoNMaDDeN has quit [Remote host closed the connection]
<bobbytek> I really no nothing of ruby
Bira has joined #ruby
mayday_jay has quit [Ping timeout: 265 seconds]
<jhass> ah, so one box can belong to multiple groups
charliesome has joined #ruby
<bobbytek> yes
zarubin has joined #ruby
<jhass> no dice for group_by then
<bobbytek> oh yer right
<jhass> I'd go with waxjar automatic array hash then
<bobbytek> Ya, that looks better
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<bobbytek> Thanks for your help guys!
<Hanmac> bobbytek: that should be your code if i am correct boxes.each_with_object(Hash.new { |hash, key| hash[key] = [] }) { |box, groups| box['groups'].each {|group| groups[group] << box['name'] } }
hiyosi has quit [Ping timeout: 258 seconds]
<bobbytek> This is what I'm using now http://pastie.org/9729955
<bobbytek> interesting
fantazo has quit [Quit: Verlassend]
<bobbytek> Hanmac: yours removes a lexical variable which is nicer
<bobbytek> (from the calling scope)
nrsk has joined #ruby
<bobbytek> But I need that variable
<bobbytek> Can I assign the return of your expression?
<jhass> bobbytek: yes
<Hanmac> bobbytek: yes each_with_object does return that object
<bobbytek> nifty, thanks
<bobbytek> One last question here
kapott has left #ruby [#ruby]
drawingthesun has joined #ruby
carlosoliveira has quit [Quit: Connection closed for inactivity]
<bobbytek> Hmm hard to explain actually
<bobbytek> bbiab
<bobbytek> Thanks again!
bobbytek has left #ruby [#ruby]
vt102 has joined #ruby
dda has quit [Quit: logging out.]
codecop has joined #ruby
Takle has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
iamjarvo has joined #ruby
dANO_ has joined #ruby
rigel has quit [Ping timeout: 245 seconds]
dipnlik has joined #ruby
philwantsfish has joined #ruby
corehook has quit [Remote host closed the connection]
dANO has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
jimms has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bewees has quit [Ping timeout: 250 seconds]
dipnlik has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
jonathan_alban has joined #ruby
beilabs has quit [Quit: Be back later ...]
beilabs has joined #ruby
aspiers has joined #ruby
t_mmyv has joined #ruby
Takle has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
paulfm has joined #ruby
beilabs has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.0.1]
agjacome has joined #ruby
jlast has joined #ruby
avr has quit [Quit: this channel is bakas]
lkba has quit [Ping timeout: 245 seconds]
redjack1964_ has joined #ruby
tkuchiki has joined #ruby
redjack1964 has quit [Ping timeout: 258 seconds]
Abhijit has quit [Quit: Leaving]
visof_ has quit [Ping timeout: 255 seconds]
rh1n0 is now known as rh1n0_away
doev has quit [Quit: Verlassend]
phutchins has joined #ruby
rh1n0_away has quit [Max SendQ exceeded]
rh1n0 has joined #ruby
pen has joined #ruby
Takle has joined #ruby
postmodern has quit [Quit: Leaving]
razieliyo has quit [Quit: Saliendo]
phutchins has quit [Ping timeout: 240 seconds]
nagaraj has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
nagaraj has joined #ruby
NoNMaDDeN has joined #ruby
basichash has joined #ruby
Ankhers has joined #ruby
timonv_ has quit [Quit: Leaving...]
<basichash> I've tried to install ruby with chruby and ruby-install but i can't chruby ruby 2.1.3 after ruby-install 2.1.3
<basichash> any ideas where i might be going wrong?
rshetty_ has joined #ruby
<sevenseacat> depends on what commands youre actually running and what errors youre getting
tesuji has quit [Ping timeout: 240 seconds]
<basichash> sevenseacat: not getting any errors. basically followed this guide (http://yousefourabi.com/blog/2013/11/the-postmodern-ruby-environment/) but chruby can't seem to find 2.1.3 after i ruby-install it
<sevenseacat> okay, so what commands are you running and what errors are you getting
rshetty__ has joined #ruby
<basichash> sevenseacat: right so i clone the two repos, then run the commands etc. Then ruby-install ruby 2.1.3. That all seems to work, but running chruby 2.1.3 returns nothing
jlast has quit [Ping timeout: 258 seconds]
<sevenseacat> its not supposed to return anything
agent_white has joined #ruby
<sevenseacat> it just changes your path
rshetty has quit [Ping timeout: 264 seconds]
koderok has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
<basichash> man i dunno wtf i'm doing wrong
rshetty__ has quit [Remote host closed the connection]
rshetty_ has quit [Ping timeout: 240 seconds]
<sevenseacat> i havent yet heard what your problem is
<basichash> fcked it up somewhere along the way
<basichash> maybe rvm is better to use?
<sevenseacat> like, if youre having a problem, youre expecting to see one thing and actually seeing something else
<sevenseacat> but you havent mentioned that
<sevenseacat> 'better' is a vague term
timonv_ has joined #ruby
henesy has quit [Ping timeout: 258 seconds]
razieliyo has joined #ruby
razieliyo has joined #ruby
sigurding has quit [Quit: sigurding]
bluOxigen has quit [Ping timeout: 255 seconds]
nagaraj has quit [Quit: nagaraj]
nilurie has quit [Quit: Lost terminal]
nilurie has joined #ruby
kobain has joined #ruby
supersym has quit [Ping timeout: 250 seconds]
benzrf|offline is now known as benzrf
sigurding has joined #ruby
kobain has quit [Max SendQ exceeded]
drawingthesun has quit [Read error: Connection reset by peer]
narcan has joined #ruby
einarj has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
drawingthesun has joined #ruby
einarj has joined #ruby
oo_ has joined #ruby
bal has quit [Ping timeout: 272 seconds]
drawingthesun has quit [Max SendQ exceeded]
sameerynho has quit [Quit: Leaving]
bal has joined #ruby
aspiers has quit [Ping timeout: 258 seconds]
<basichash> sevenseacat: what's the easiest way to set up ruby for rails?
<basichash> i.e. for you
phutchins has joined #ruby
<sevenseacat> i use ruby-install and chruby.
<basichash> lol dam
<basichash> on mac i assume
foooobear has joined #ruby
razieliyo has quit [Quit: Saliendo]
<sevenseacat> nope, ubuntu.
lkba has joined #ruby
<basichash> can you give me a hand installing it? having trouble for some reason
<sevenseacat> still waiting to hear your problem.
<Hanmac> didnt you hear? he has mac, thats his problem
jheg has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
<basichash> i'm using ubuntu
<basichash> i'll give it another shot first, maybe i make a stupid mistake
triple_b has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
delianides has joined #ruby
<sevenseacat> if you have a problem you'll share with us, we can help you. if not, there's no point.
i0n has joined #ruby
sdwrage has joined #ruby
mengu has joined #ruby
<basichash> sevenseacat: i did, i just wasn't exactly sure what it was. still doesn't make it easy for you obviously
mengu has quit [Changing host]
mengu has joined #ruby
<sevenseacat> you didnt say anything about a problem you were having.... just 'it didnt work'
<sevenseacat> without even saying what 'it' was
dcunit3d has joined #ruby
dc_ has joined #ruby
dcunit3d has quit [Ping timeout: 250 seconds]
Bira has quit [Remote host closed the connection]
dc_ has quit [Ping timeout: 256 seconds]
<basichash> sevenseacat: right all good
<sevenseacat> :)
<basichash> lol
triple_b_ has joined #ruby
i0n_ has joined #ruby
<basichash> sevenseacat: random question, why does "gem install rails" take so long? is there a verbose flag i can use to see it's progress?
jedrek has joined #ruby
<jedrek> hello there
<sevenseacat> depends what part of it is taking so long
<jedrek> what's a good alternative to IRB other than pry?
<jhass> pry
<sevenseacat> usually its the documentation steps
<jhass> scnr :P
<jhass> what's wrong with pry?
<basichash> sevenseacat: hmm i did --no-rdoc
<jedrek> pry's fine
<jedrek> i'm just curious
<sevenseacat> well the output will tell you what its doing
<basichash> sevenseacat: that's the thing, there's no output
triple_b has quit [Ping timeout: 255 seconds]
<sevenseacat> so what was the last piece of output?
i0n has quit [Ping timeout: 255 seconds]
i0n_ is now known as i0n
<basichash> sevenseacat: hasn't been any. "gem install rails" and then a blank newline
<sevenseacat> then its still working out dependencies and the like
<basichash> ah ok it's started outputing stuff
<sevenseacat> may take a couple of min
St_Marx has quit [Quit: Ex-Chat]
bmichelsen has joined #ruby
workmad3 has joined #ruby
Lingo______ has joined #ruby
PierreRambaud has quit [Remote host closed the connection]
kapott has joined #ruby
adriancb has joined #ruby
jheg has quit [Ping timeout: 240 seconds]
BTRE has quit [Ping timeout: 244 seconds]
pushpak has joined #ruby
redjack1964 has joined #ruby
dorei has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Lingo______ has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
sargas has joined #ruby
yfeldblum has joined #ruby
Darryl_ has quit [Quit: Connection closed for inactivity]
redjack1964_ has quit [Ping timeout: 244 seconds]
kobain has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
joast has quit [Quit: Leaving.]
asdfasdf has quit [Ping timeout: 246 seconds]
sanguisdex has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
henesy has joined #ruby
Photism has quit [Quit: Leaving]
ta_ has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
jheg has joined #ruby
ta has joined #ruby
fsapo has quit [Ping timeout: 265 seconds]
tier has joined #ruby
sanguisdex has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
AFKGeek has joined #ruby
kasperti_ has quit []
allcentury has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<jheg> is this the way to return an array elements from another array that match the condition? …
tkuchiki has quit [Remote host closed the connection]
<jheg> new_array = array.each{ |element| element == ‘ ‘ }
Darryl_ has joined #ruby
<jhass> no, new_array will always equal array in this case
ta has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
<jhass> as each returns the receiver
<jhass> you want #select
BTRE has joined #ruby
<jheg> thanks jhass
<Hanmac> jheg look also for Array#grep
jlast has joined #ruby
bewees has joined #ruby
<jheg> is that an array method Hanmac I can;t see it in docs
corehook has joined #ruby
<Hanmac> jheg: oh i was wrong, its an Enumerable method
slawrence00 has joined #ruby
<Hanmac> >> ("A".."Z").grep(/[aeoui]/i)
<eval-in__> Hanmac => ["A", "E", "I", "O", "U"] (https://eval.in/223616)
arup_r has quit [Remote host closed the connection]
zzzbra has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
bahar has joined #ruby
bahar has quit [Changing host]
corehook has quit [Ping timeout: 258 seconds]
nateberkopec has joined #ruby
ned__ is now known as ned_[Away]
elemenopy has quit [Remote host closed the connection]
jerematic_work has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
hiyosi has joined #ruby
msmith has joined #ruby
msmith has quit [Remote host closed the connection]
msmith has joined #ruby
Dr3amc0d3r|away has joined #ruby
spastorino has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fella5s has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
rshetty has joined #ruby
oleo has joined #ruby
Xeago has joined #ruby
jtdowney has joined #ruby
jtdowney has joined #ruby
ta has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vimer has quit [Quit: leaving]
henesy has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
bmichelsen has joined #ruby
tesaf has joined #ruby
Xeago_ has quit [Ping timeout: 256 seconds]
rshetty_ has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
Bira has joined #ruby
corehook has joined #ruby
sambao21 has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
henesy has joined #ruby
freerobby has joined #ruby
rshetty has quit [Ping timeout: 265 seconds]
freerobby has quit [Client Quit]
Kricir has joined #ruby
rshetty_ has quit [Ping timeout: 264 seconds]
siwica1 has joined #ruby
josephndenton has joined #ruby
rshetty has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
kp666 has quit [Quit: Leaving]
fella5s has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
ghostlines has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
jtdowney has quit [Quit: Textual IRC Client: www.textualapp.com]
Dr3amc0d3r|away has joined #ruby
<jheg> Thanks Hanmac
<jheg> I’m finding it tricky to get my head around how classes can interact
ta has quit [Remote host closed the connection]
<jheg> I have two classes one named Board and another called Player
jedrek has left #ruby [#ruby]
ta has joined #ruby
<shevy> jheg well; which class is more important
<shevy> how many boards exist: ANSWER_HERE
henesy has quit [Ping timeout: 265 seconds]
<shevy> how many players exist: ANSWER_HERE
procat has joined #ruby
<jheg> within board there is an array with 9 poisitions and within the Player class I want to create a method that takes a number between 1 and 9 and assigns a given value to that index in the array in the Board class
<jheg> lemme link one sec
<jheg> in answer to your q though 1 board exists and 2 players
jerius has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
NoNMaDDeN has quit [Remote host closed the connection]
<jheg> so its the tic tac toe game where players take turns to select a square
<shevy> ok
<shevy> so we have one board, and two players
<jheg> yep
<shevy> so class Board is more important
toretore has joined #ruby
<shevy> it could hold the players in an Array called @players
bewees2 has joined #ruby
<shevy> so you only have to instantiate a new Board.new
beef-wellington has joined #ruby
ta has quit [Ping timeout: 240 seconds]
<shevy> or if you really wanna go nuts
<shevy> you can make something like a class GameHandler to handle those two classes
<shevy> I like to keep the amount of classes minimal; and the code also minimal
<teotwaki> why would players be part of the board?
<shevy> because the Board handles the game
<jheg> that will keep track of which squares are taken so i guess so yes
<teotwaki> that makes no sense whatsoever.
<shevy> I think that makes perfect sense
<jheg> Ah ok so intantiate the player objects inside the Board class?
<shevy> jheg yeah; depends on how you want to initialize your game
<jheg> I was going to have a game class
<shevy> ok
dkphenom has joined #ruby
<jheg> to initialize Board and players
Kricir has quit [Remote host closed the connection]
<shevy> the Board is still the biggest contender; it will be initialized only once whereas there can be several players
bewees2 has quit [Client Quit]
<jheg> but i need the player classes to be able to change the instance var inside the Board class
rshetty has quit [Remote host closed the connection]
<jheg> if that makes sense?
bewees2 has joined #ruby
<shevy> you can do that when you use the class Game master handler
bewees has quit [Ping timeout: 240 seconds]
<shevy> since you will inside of it have instances both of class Board and class Player
bewees2 has left #ruby [#ruby]
<jheg> I really only wanted the Board class to handle printing out the board and keeping track of squares
<teotwaki> have a game class, board and player, game holds both board and player objects, and initializes them if appropriate. Players can be told they are playing on a specific board as shortcuts, but board should not be owners of the players.
<shevy> yeah
momomomomo has joined #ruby
jerius has quit [Remote host closed the connection]
<teotwaki> is a board composed of players? No. So it should not instantiate them nor take care of their life cycle.
<jheg> ok so how then can I get the method within the player classes to be able to change the instance var in the Board class?
rigel has joined #ruby
<teotwaki> @player.take_square @board, number
<jheg> how to I tell the program that those player classes need to be able to access the Board object
<teotwaki> or as I said, when you initialise the player object
ndrei_ has joined #ruby
jerius has joined #ruby
<teotwaki> Player.new @board
Takle has quit [Remote host closed the connection]
sailias has joined #ruby
DaniG2k has quit [Quit: leaving]
<jheg> sorry what is happening here? @board?
freerobby has joined #ruby
<gregf_> how about: Game.new(Player.new("Alan", "OH"), Player.new("Ted", "GA"),Board.new(ARGV.shift || "3",ARGV.shift ||"3")).play()
DaniG2k has joined #ruby
cleopatra has joined #ruby
Channel6 has joined #ruby
<shevy> jheg he meant that inside your class Game, you will have instantiated board as @board = Board.new
whoisjake has joined #ruby
<teotwaki> class Player; def initialize(board); assign_to board; end; def assign_to(board); @board = board; end; def assigned?; defined?(@board) and !@board.nil?; end; def take_square(number, board = nil); if board.nil? and !assigned?; # raise here, etc...
<jheg> got you thanks guys
joast has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ndrei_ has quit [Quit: leaving]
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
spider-mario has joined #ruby
<waxjar> a board does not consist of players, but a player consists of a board?
ndrei_ has joined #ruby
ndrei__ has joined #ruby
<jheg> players share a board
ptrrr has joined #ruby
<apeiros_> players board shares!
<teotwaki> waxjar: composition != aggregation
<teotwaki> in this case, the board can continue to exist with the players changing to another board.
Takle has joined #ruby
clauswitt has quit [Ping timeout: 265 seconds]
<teotwaki> i've typed board so many times and heard it so many times in my head it doesn't sound like a word anymore.
<jhass> if you want a no trust design you would have each player their own board as well as master board in the game class. Players then hand out Moves, the Game controller verifies the moves and hands it out to its own board as well as to the other players which update their internal Board
<waxjar> the player should probably not keep track of the board at all, just mark a square
NoNMaDDeN has joined #ruby
<jhass> that also would allow AI implementations of Player that have an optimized data structure for their AI
<teotwaki> waxjar: true, it was just a shorthand to not have to send @board to the take_square() method all the time, but a current_board helper would be more appropriate, I concur.
drewvanstone has joined #ruby
<jhass> but I guess that's over the top for this one
einarj has quit [Remote host closed the connection]
<teotwaki> jhass: nice, hadn't thought of that.
<teotwaki> jhass: is that a common design pattern in game development?
mengu has quit []
divi has joined #ruby
<jhass> no idea, I'm not a game dev
<jhass> we had something alike for a reversi game competition at university here
<jhass> where we would load other teams AIs into our games
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<jhass> (or was it mills? I already forgot :P)
lampd1 has quit [Remote host closed the connection]
tus has quit [Ping timeout: 255 seconds]
devdazed has joined #ruby
renderful has joined #ruby
Soda has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
divi has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
rshetty has joined #ruby
tane has joined #ruby
maestrojed has joined #ruby
divi has joined #ruby
rodfersou has joined #ruby
triple_b_ has quit [Read error: Connection reset by peer]
triple_b has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
BTRE has joined #ruby
sevenseacat has quit [Quit: Leaving.]
Ankhers has joined #ruby
kasperti_ has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
andikr has quit [Remote host closed the connection]
s00pcan has quit [Remote host closed the connection]
centrx has joined #ruby
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
maximski has joined #ruby
luriv has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
CustosLimen has joined #ruby
tobago has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
duggiefresh has joined #ruby
lawnchair has left #ruby [#ruby]
dkb20k has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
dkb20k has joined #ruby
DLSteve_ has quit [Ping timeout: 258 seconds]
kenndel has quit [Ping timeout: 258 seconds]
sk87 has joined #ruby
lkba has joined #ruby
fantazo has joined #ruby
charliesome has quit [Quit: zzz]
msmith_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
rajeshchawla has joined #ruby
Macaveli has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
corehook has quit [Remote host closed the connection]
dkb20k has quit [Ping timeout: 240 seconds]
umttumt has joined #ruby
umttumt is now known as tatsuo
tus has joined #ruby
tus has quit [Changing host]
tus has joined #ruby
tus has quit [Remote host closed the connection]
oo_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
basichash has quit [Ping timeout: 264 seconds]
msmith has quit [Ping timeout: 256 seconds]
dkphenom has quit [Read error: Connection reset by peer]
tus has joined #ruby
mary5030 has joined #ruby
aclearma_ has joined #ruby
Kricir has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Lingo______ has joined #ruby
maximski has quit []
zzzbra has joined #ruby
sambao21 has joined #ruby
aclearman037 has quit [Ping timeout: 256 seconds]
BTRE has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
Lingo______ has quit [Ping timeout: 250 seconds]
shock_one has joined #ruby
<shock_one> Hi. How would I write this more elegantly? https://gist.github.com/shockone/b2abd0971bc6932986ff
fsapo has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
JBreit has joined #ruby
<centrx> shock_one, That's how I would write it
<centrx> shock_one, You could also change basic_auth to return r
<shock_one> I'm afraid it's a library method.
<centrx> ok
bmichelsen has joined #ruby
JBreit has left #ruby [#ruby]
<jhass> shock_one: super.tap {|request| request.basic_auth(username, password) }
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
lampd1 has joined #ruby
<shock_one> jhass, you're my hero. I always forget about this method.
wjimenez5271 has joined #ruby
lampd1 has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
MrIlyas has quit [Read error: Connection reset by peer]
stunder has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<jheg> teotwaki: i've typed board so many times and heard it so many times in my head it doesn't sound like a word anymore.
<jheg> ^ Same lol
j2p2 has quit [Ping timeout: 244 seconds]
DaniG2k has quit [Quit: leaving]
ta has joined #ruby
momomomomo has quit [Quit: momomomomo]
freerobby has joined #ruby
rh1n0 is now known as rh1n0_away
Takle has joined #ruby
<teotwaki> :)
marr has joined #ruby
wjimenez5271 has quit [Ping timeout: 250 seconds]
supersym has joined #ruby
<jheg> I’m trying to just understand the basics of class relationships before embarking on more complex features
kohgpat has joined #ruby
<jheg> it’s what and how is accessible from outside classes that I want to better understand
Techguy305 has joined #ruby
BTRE has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
<jheg> for instance I know if a class inherits from a another class it has access to its methods but what if I ont want to inherit any of its methods and just need to be able to manipulate one of its states
oleo has quit [Quit: Verlassend]
dc_ has joined #ruby
ta has quit [Ping timeout: 250 seconds]
drewvanstone has quit [Ping timeout: 250 seconds]
henesy has joined #ruby
<jhass> a bit vague, but it sounds like you would extract that method into a mixin
<jheg> and I’m sure you guys have probs already told me how but it starts to get fuzzy when many bits of syntax are in my noob mind at once :)
workmad3 has joined #ruby
jottr has joined #ruby
<jheg> well i’d probable do that so both Player and ComputerPlayer class have access to it but they still need access to the instance variable from a different class that they dont inherit from
<jhass> don't be afraid to make mistakes, they teach you best
<jheg> certainly making a few of those
einarj has joined #ruby
basichash has joined #ruby
j2p2 has joined #ruby
vimer has joined #ruby
last_staff has quit [Quit: I gots to go]
kevinxu has joined #ruby
i0n has quit [Quit: snooze]
kevinxu is now known as Guest57388
dcunit3d has joined #ruby
gsd has joined #ruby
Guest57388 has quit [Max SendQ exceeded]
anarang has quit [Quit: Leaving]
einarj_ has joined #ruby
oleo has joined #ruby
yfeldblum has joined #ruby
BTRE has quit [Ping timeout: 255 seconds]
msmith_ has quit [Remote host closed the connection]
nkumari has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
msmith_ has joined #ruby
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
corehook has joined #ruby
kohgpat has quit [Quit: leaving]
oleo has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 272 seconds]
ptrrr has quit [Quit: ptrrr]
kohgpat has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
nvdpl has joined #ruby
jaequery has joined #ruby
nvdpl has quit [Max SendQ exceeded]
oo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bal has quit [Quit: bal]
nvdpl has joined #ruby
dc___ has joined #ruby
treehug88 has joined #ruby
mikepack has joined #ruby
CorySimmons has joined #ruby
oleo has joined #ruby
Xeago_ has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
dc_ has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
tane has quit [Quit: Verlassend]
AFKGeek has quit [Quit: Fades into the shadows]
tgandrews has quit [Quit: tgandrews]
dh64 has joined #ruby
kohgpat has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
Porpado has joined #ruby
Channel6 has quit [Quit: Leaving]
sambao21 has joined #ruby
sigurding has quit [Quit: sigurding]
rippa has joined #ruby
shock_one has quit [Remote host closed the connection]
byprdct has joined #ruby
aspires has joined #ruby
Liulantao has joined #ruby
DaniG2k has joined #ruby
razieliyo_ has joined #ruby
<DaniG2k> halo all. Does anyone know if I can refactor my constraints in this link: http://stackoverflow.com/a/27021252/1741325
<DaniG2k> oops wrong channel
<DaniG2k> sry
dcunit3d has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
momomomomo has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
fabrice31 has quit [Remote host closed the connection]
kamilc__ has joined #ruby
mjuszczak has joined #ruby
<ericwood> unacceptable
Liulantao has quit []
<mjuszczak> Is there an easy way to split and replace in ruby? IE: converting "example.com" to "dc=example,dc=com" which includes splitting on any number of "." and pre-pending "dc=" to each? I know how to split and how to replace but having trouble doing both at the same time.
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
kamil has quit [Ping timeout: 244 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drewvanstone has joined #ruby
Techguy305 has quit [Ping timeout: 265 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
<centrx> mjuszczak, "example.com".split('.').map { |s| "dc=#{s}" }.join
NoNMaDDeN has joined #ruby
<mjuszczak> oh! I've seen the .join before. I'll take a peek at that, thanks!
<ericwood> you could hack together something awful with regex replacement to do it but what centrx said is the cleanest
xfz has quit [Ping timeout: 256 seconds]
jobewan has joined #ruby
xfz has joined #ruby
preller has quit [Ping timeout: 256 seconds]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
manzo has joined #ruby
rkalfane has joined #ruby
GeorgesLeYeti has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
fabrice31 has quit [Ping timeout: 264 seconds]
xorax_ has quit [Remote host closed the connection]
mistermo_ has joined #ruby
koderok has quit [Quit: koderok]
tkuchiki has quit [Remote host closed the connection]
xorax has joined #ruby
tkuchiki has joined #ruby
<gregf_> mjuszczak: "example.com".gsub!(/(^|\.)/,"dc=")
<gregf_> well, that excludes the comma :/
nkumari has quit [Remote host closed the connection]
<mjuszczak> intriguing
sargas has joined #ruby
klmlfl_ has joined #ruby
henesy has quit [Ping timeout: 258 seconds]
mistermocha has quit [Ping timeout: 258 seconds]
dkb20k has joined #ruby
kohgpat has joined #ruby
henesy has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
kish has quit [Changing host]
kish has joined #ruby
klmlfl has quit [Ping timeout: 244 seconds]
livathin_ has joined #ruby
livathin_ has quit [Remote host closed the connection]
xorax has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
i0n has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
oo_ has quit [Ping timeout: 264 seconds]
rjl has joined #ruby
sambao21 has joined #ruby
atomical has joined #ruby
corehook has quit [Remote host closed the connection]
ta has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
snath has joined #ruby
momomomomo has quit [Quit: momomomomo]
aganov has quit [Remote host closed the connection]
rimenes has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
aspiers has quit [Ping timeout: 245 seconds]
karmatr0n has joined #ruby
visof has joined #ruby
agjacome has quit [Quit: leaving]
marcdel has joined #ruby
mjuszczak has quit []
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dkb20k has quit [Ping timeout: 255 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
mistermo_ has quit [Read error: Connection timed out]
jheg has quit [Quit: jheg]
tier_ has joined #ruby
duplex has joined #ruby
mistermocha has joined #ruby
corehook has joined #ruby
tier has quit [Ping timeout: 255 seconds]
BTRE has joined #ruby
parzzix has joined #ruby
zB0hs has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
geggam has joined #ruby
wjimenez5271 has joined #ruby
rtlong_ has joined #ruby
govg has joined #ruby
Lingo______ has joined #ruby
alex88 has quit []
kireevco has joined #ruby
gsd has joined #ruby
yfeldblum has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
rtlong has quit [Ping timeout: 255 seconds]
i0n has quit [Quit: snooze]
dorei has quit [Read error: Connection reset by peer]
Ankhers has joined #ruby
michaeldeol has joined #ruby
Lingo______ has quit [Ping timeout: 256 seconds]
phutchin1 has joined #ruby
Ankhers has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 258 seconds]
michaeldeol has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
<zacts> ruby my dear
michaeldeol has joined #ruby
sk87 has joined #ruby
blackmesa has joined #ruby
sdwrage has joined #ruby
rtlong_ has quit [Remote host closed the connection]
lmickh has joined #ruby
lifenoodles has quit [Ping timeout: 256 seconds]
econerd4ever has joined #ruby
apeiros_ has quit [Remote host closed the connection]
rpag has joined #ruby
stunder has quit [Remote host closed the connection]
sdwrage has quit [Client Quit]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
phutchins has quit [Ping timeout: 272 seconds]
sk87 has quit [Client Quit]
jlast has quit [Remote host closed the connection]
nateberkopec has joined #ruby
jlast has joined #ruby
ghostlines has quit [Ping timeout: 264 seconds]
basichash has quit [Quit: WeeChat 0.4.2]
jherbst has joined #ruby
user3 has joined #ruby
arup_r has joined #ruby
dc___ has quit [Remote host closed the connection]
user3 is now known as basichash
Macaveli has joined #ruby
lifenoodles has joined #ruby
msgodf has quit [Ping timeout: 240 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
sk87 has joined #ruby
tus has quit [Ping timeout: 264 seconds]
troyready has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
ta has joined #ruby
dcunit3d has quit [Ping timeout: 264 seconds]
chrchr- has left #ruby ["Textual IRC Client: www.textualapp.com"]
oo_ has joined #ruby
renderful has joined #ruby
fantazo has quit [Quit: Verlassend]
Lightsword has joined #ruby
s__dana has joined #ruby
oleo__ has joined #ruby
disKounted has joined #ruby
<Grantlyk> Yo guys, got a ruby problem
nkumari has joined #ruby
Takle has joined #ruby
maximski has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
rajeshchawla has quit [Remote host closed the connection]
aspires has quit []
<Grantlyk> So i've got a Person class and i'm wondering if theirs a good way to write a self.numberOfPeople method so that I can do person = Person.new and then person.numberOfPeople and it says the number created so far
zorak8 has joined #ruby
<canton7> that stinks
oleo is now known as Guest78773
<canton7> why do you want that bit of information?
ta has quit [Ping timeout: 264 seconds]
<Grantlyk> Because i'm learning, anything I learn could be useful in future
aspires has joined #ruby
tanath has joined #ruby
Macaveli has quit [Ping timeout: 255 seconds]
mary5030_ has joined #ruby
Guest78773 has quit [Ping timeout: 256 seconds]
<canton7> here's a lesson: don't do that ;) it's extremely rare for you to need to know how many of something have been created - I don't think I've ever done it... :P
<canton7> you could easily write such a method, if you wanted
mary5030_ has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 272 seconds]
<Grantlyk> I'm not worried about the practicalities of ever needing to do it again, I just want to know how to do it
aspires has quit [Client Quit]
mary5030_ has joined #ruby
<Grantlyk> I do want to, that's the idea behind it
spyderman4g63 has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
roolo has quit [Quit: AAAAaaaaAAAAAAA]
tyll has quit [Ping timeout: 245 seconds]
<centrx> Grantlyk, I would have methods Person.count and Person.increment_count
chrchr- has joined #ruby
<centrx> Grantlyk, which use a class instance variable
jherbst has quit [Read error: Connection reset by peer]
<centrx> Grantlyk, Person.increment_count being called from Person#initialize
i0n has joined #ruby
jherbst has joined #ruby
<Grantlyk> centrx: Thank you
timonv_ has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
aspires has joined #ruby
tyll has joined #ruby
siwica1 has quit [Remote host closed the connection]
vifino has quit [Remote host closed the connection]
mistermocha has joined #ruby
siwica has joined #ruby
njames has joined #ruby
<jaequery> inside a .erb, can you call methods?
aspires has quit [Client Quit]
x77686d has joined #ruby
<Grantlyk> centrx: See when i'm making a call to Person.increment_count within Person#initialize, is that done through putting self.increment_count within Person#Initialize
poweratom__ has joined #ruby
Soda has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 256 seconds]
<centrx> Grantlyk, In #initialize, self is the instance
poweratom__ has quit [Client Quit]
<centrx> Grantlyk, Use self.class.increment_count or Person.increment_count to reference the class
nkumari has quit [Remote host closed the connection]
<centrx> Grantlyk, The count has to be tracked in the class, as it counts all instances
lifenoodles has quit [Ping timeout: 258 seconds]
kohgpat has quit [Ping timeout: 272 seconds]
bricker`work has joined #ruby
vifino has joined #ruby
<Grantlyk> centrx: Yeah that makes sense now, thanks a lot
tvw has quit []
govg has quit [Quit: leaving]
tatsuo has quit [Quit: Leaving...]
SCHAAP137 has joined #ruby
Grantlyk has quit []
Xeago_ has quit [Remote host closed the connection]
nkumari has joined #ruby
tlarevo has joined #ruby
n1lo has joined #ruby
Takle has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
lifenoodles has joined #ruby
neoxquick has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
<jhass> jaequery: sure
pontiki has joined #ruby
BTRE has joined #ruby
<pontiki> hi rubyists
allcentury has quit [Ping timeout: 255 seconds]
mistermocha has quit []
xenomorph is now known as {xenomorph}
{xenomorph} is now known as xenomorph
<jaequery> jhass: i'd have guessed i call it the same way i'd call instance variables ...
<jhass> sure
<jaequery> so if i have, def some_method , inside erb, i do @some_method
wjimenez5271 has quit [Remote host closed the connection]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
nvdpl has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
airdeluxe has joined #ruby
Eiam has joined #ruby
foooobear has quit [Quit: (null)]
michaeldeol has joined #ruby
rtlong has joined #ruby
<jhass> no
jottr_ has joined #ruby
benzrf is now known as benzrf|offline
jottr has quit [Read error: Connection reset by peer]
<jhass> @something is an instance variable
rtlong_ has joined #ruby
patrick99e99 has joined #ruby
<jhass> how do you call erb?
i0n has quit [Quit: snooze]
ghr has quit [Ping timeout: 250 seconds]
BTRE has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
stunder has joined #ruby
chrchr- has left #ruby ["Textual IRC Client: www.textualapp.com"]
nkumari has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 272 seconds]
DaniG2k has quit [Quit: leaving]
Morkel has quit [Quit: Morkel]
basichash has quit [Quit: WeeChat 0.4.2]
user3 has joined #ruby
rtlong has quit [Ping timeout: 244 seconds]
user3 is now known as basichash
thoraxe has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
pontiki has quit [Quit: Page closed]
tlarevo has quit [Remote host closed the connection]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yxhuvud has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tlarevo has joined #ruby
aspires has quit []
aspires has joined #ruby
Tranquility has joined #ruby
lifenoodles has quit [Ping timeout: 256 seconds]
yxhuvud has joined #ruby
atomical has joined #ruby
anaeem1_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
GeorgesLeYeti has quit [Quit: Leaving]
anaeem___ has quit [Ping timeout: 256 seconds]
byprdct has quit [Ping timeout: 245 seconds]
aspires has quit [Client Quit]
lxsameer has joined #ruby
speaking1ode is now known as speakingcode
klmlfl_ has quit [Remote host closed the connection]
lifenoodles has joined #ruby
checkit has joined #ruby
<checkit> Hey guys... I'm runing into an issue trying to install GEM.... https://gist.github.com/mrjonleek/49b3f21ebbe61e3d5dfd
klmlfl has joined #ruby
aspires has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
<checkit> GEM file that is...
duggiefresh has quit [Remote host closed the connection]
msgodf has joined #ruby
<centrx> checkit, You need install the build tools and ruby-dev
byprdct has joined #ruby
duggiefresh has joined #ruby
<centrx> checkit, e.g. apt-get install build-essential ruby2.1-dev
econerd4ever has joined #ruby
<checkit> centrx: Oh okay... Thought that was already on my Vagrrant/Homestead VM.
whoisjake has quit []
procat has quit [Ping timeout: 240 seconds]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
<checkit> centrx: Unable to locate package error...
manzo has quit [Quit: Leaving]
jmdade has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has quit [Remote host closed the connection]
<centrx> checkit, What version of Ruby do you have? How did you install it?
<checkit> 1.9.3. It came with the Homestead box.
msmith__ has joined #ruby
Sht0 has joined #ruby
whoisjake has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has quit [Ping timeout: 265 seconds]
<centrx> checkit, Okay the package might be called ruby1.9-dev or ruby1.9.3-dev or ruby1.9.1-dev
jottr_ has quit [Ping timeout: 264 seconds]
RitterJack has quit [Remote host closed the connection]
michaeldeol has quit [Read error: Connection reset by peer]
<checkit> Gotcha... I'm just gonna upgrade to a later version.
msmith_ has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
jmdade has joined #ruby
Lightsword has quit [Quit: Lightsword]
bmichelsen has joined #ruby
gsd has joined #ruby
corehook has quit [Remote host closed the connection]
Lingo______ has joined #ruby
duggiefresh has joined #ruby
razieliyo_ has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
deric_skibotn has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
despai has joined #ruby
mattwildig has joined #ruby
iamjarvo has joined #ruby
i0n has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
iamjarvo has joined #ruby
davidhq has joined #ruby
boombadaroomba has joined #ruby
noop has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
mattwildig has quit [Remote host closed the connection]
vifino has quit [Ping timeout: 258 seconds]
josephnd1nton has joined #ruby
vifino has joined #ruby
qba73 has quit []
louism2wash has joined #ruby
rkalfane has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
msmith__ has quit [Remote host closed the connection]
jlast has joined #ruby
msmith_ has joined #ruby
maletor has joined #ruby
benzrf|offline is now known as benzrf
josephnd1nton has quit [Ping timeout: 240 seconds]
xymbol has joined #ruby
whoisjake has quit []
Lightsword has joined #ruby
Bira has quit [Remote host closed the connection]
RowdyChildren has joined #ruby
nilurie has quit [Quit: leaving]
luksaur has quit [Ping timeout: 265 seconds]
sdwrage has joined #ruby
mistermocha has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wjimenez5271 has joined #ruby
ta has joined #ruby
lxsameer has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 245 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
klmlfl has joined #ruby
luksaur has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
despai has quit [Quit: This computer has gone to sleep]
elaptics is now known as elaptics`away
mloveless has joined #ruby
mistermocha has quit [Remote host closed the connection]
dda has joined #ruby
dkb20k has joined #ruby
dc_ has joined #ruby
Ankhers has joined #ruby
iamjarvo has joined #ruby
aclearma_ has quit [Quit: I'm out!]
klmlfl has quit [Ping timeout: 264 seconds]
klmlfl has joined #ruby
visof has quit [Ping timeout: 250 seconds]
thoraxe has joined #ruby
whoisjake has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
jheg has joined #ruby
dcunit3d has joined #ruby
shazaum has quit [Quit: Leaving]
divi has quit [Ping timeout: 256 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
zoink has quit [Quit: leaving]
michaeldeol has joined #ruby
zorak8 has quit [Ping timeout: 258 seconds]
maestrojed has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
vifino has quit [Quit: Oh, what does this button do?]
duggiefresh has joined #ruby
User458764 has quit [Ping timeout: 265 seconds]
joncol has joined #ruby
platzhirsch has left #ruby [#ruby]
dorei has joined #ruby
parabolize has joined #ruby
Bira has joined #ruby
djbkd has joined #ruby
<joncol> Using Bundler and rake, how do I create a Rakfile task that both runs all specs and then runs "rake Build"
ta has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
ptrrr has joined #ruby
mjuszczak has joined #ruby
yfeldblum has joined #ruby
disKounted has quit []
kirun has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cleopatra has quit [Quit: Saliendo]
zB0hs has joined #ruby
djbkd has joined #ruby
basichash has quit [Ping timeout: 245 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonathan_alban has joined #ruby
aspires has quit []
<checkit> centrx: Okay so I finally got ruby updated and now I'm getting a different error while attempting "gem install mysql2psql". https://gist.github.com/mrjonleek/84796ec135380960d8f8
yfeldblum has quit [Ping timeout: 244 seconds]
tttttttttttttttt has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.4-dev]
atmosx has joined #ruby
ramfjord has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<centrx> checkit, Looks like you need the development/header files for MySQL, something like libmysqlclient-dev
baweaver has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
zB0hs has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
mjuszczak has quit []
<checkit> centrx: What did you see that gave you that impression?
zB0hs has quit [Max SendQ exceeded]
djbkd has joined #ruby
mjuszczak has joined #ruby
procat has joined #ruby
<centrx> checking for mysql_query() in -lmysqlclient... no
<centrx> Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
spyderman4g63 has joined #ruby
<centrx> So it looks for this function in the necessary mysqlclient library (-lmysqlclient) but it's not found
<centrx> Probably because the entire development library with headers is not installed, or not in the place it expects it to be installed
joncol has quit [Quit: leaving]
drewvanstone has quit [Ping timeout: 258 seconds]
<checkit> centrx: Jesus... This is becoming a huge mission...
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spectator has joined #ruby
joonty has quit [Ping timeout: 265 seconds]
<centrx> apt-get install libmysqlclient-dev :)
<eam> welcome to the world of build dependency management
michaeldeol has quit [Read error: Connection reset by peer]
<eam> centrx: it's pretty simple, in general. If you want to build, install every -dev package for every component you use
<eam> sorry checkit :)
<checkit> centrx: Already installed it..
<checkit> Same error...
t_mmyv has quit [Ping timeout: 255 seconds]
zorak8 has joined #ruby
<checkit> eam: Honestly I'm not very familiary with Ruby/RoR. Which is why is frustrating...
<eam> this is a distro issue though, not really ruby specific
michaeldeol has joined #ruby
jerrett has joined #ruby
procat has quit [Ping timeout: 255 seconds]
jleishman has joined #ruby
<eam> checkit: if you look in gem_make.out you will find specifically what gem is doing to determine that things are / are not working
havenwood has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jleishman has quit [Client Quit]
<eam> typically it looks something like trying to compile a small hello world c program that uses the library
<eam> and you will see a gcc error
rdark has quit [Quit: leaving]
<eam> that error will help pinpoint the exact problem
klmlfl has quit [Remote host closed the connection]
t_mmyv has joined #ruby
klmlfl has joined #ruby
aspires has joined #ruby
<eam> if -lmysqlclient won't link then no software built against mysqlclient libraries will work
<eam> C, python, perl, ruby - doesn't matter
<checkit> eam: okay. I'll crack that file open then to see if I can learn anything else.
sdwrage has joined #ruby
<checkit> Does this mean anything to you (contents of gem_make.out): https://gist.github.com/mrjonleek/c7c62cdf4be26cd4fc40
duggiefresh has quit [Read error: Connection reset by peer]
xorax has joined #ruby
duggiefresh has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
agjacome has joined #ruby
vifino has joined #ruby
allcentury has joined #ruby
<checkit> Also, I installed RVM and set rvm use ruby2.1.5
maximski_ has joined #ruby
maximski_ has quit [Client Quit]
chrisja has joined #ruby
n1lo has quit [Quit: Leaving]
ghr has joined #ruby
<eam> checkit: do you have ruby-dev installed?
<checkit> Guess not... Installing now.
x77686d has quit [Ping timeout: 272 seconds]
maximski has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
<eam> checkit: just remember, debian/ubuntu splits many packages into two, build-time things being in -dev. mkmf is a ruby build-time component
momomomomo has joined #ruby
<eam> just like libmysqlclient has run-time libraries in the normal package, but build time stuff (header files, versionless .so symlink) in the -dev
aspires has quit []
oo_ has joined #ruby
<checkit> Hmmm.. Okay gotcha. Getting somehwere now I think. A new error within the gem_make.out file.... : https://gist.github.com/mrjonleek/d64effcc553f3e1289f8
sdwrage has quit [Quit: This computer has gone to sleep]
aspires has joined #ruby
oleo has joined #ruby
renderful has quit [Remote host closed the connection]
<eam> checkit: look at your .out file
DivineEntity has quit [Quit: Lost terminal]
<checkit> eam: Right. It just show's those flags and extconf failed, exit code 1
ghr has quit [Ping timeout: 272 seconds]
rkalfane has joined #ruby
dEPy has quit [Quit: (null)]
<eam> gist the whole file
renderful has joined #ruby
i0n has quit [Quit: snooze]
jimbach has quit [Remote host closed the connection]
<checkit> Hold on I think I may have found it.
Soda has joined #ruby
<checkit> Another missing -dev
NoNMaDDeN has quit [Remote host closed the connection]
spectator has quit [Remote host closed the connection]
<checkit> HOLY SHIT... FINALLY GOT IT..
<checkit> Thanks eam!
NoNMaDDeN has joined #ruby
<checkit> and centrx!
Bira has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Lingo______ has quit [Quit: Be back later ...]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
rshetty has joined #ruby
kasperti_ has quit []
Lingo______ has joined #ruby
spectator has joined #ruby
<centrx> yay
renderful has quit [Remote host closed the connection]
despai has joined #ruby
claymore has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias1 has quit [Quit: Leaving.]
rshetty has quit [Ping timeout: 258 seconds]
sailias has joined #ruby
Lingo______ has quit [Ping timeout: 264 seconds]
Darryl_ has quit [Quit: Connection closed for inactivity]
beef-wellington has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
dc_ has quit [Remote host closed the connection]
_lexjm has joined #ruby
jheg has quit [Quit: jheg]
rodfersou has quit [Ping timeout: 250 seconds]
tgandrews has joined #ruby
vifino has quit [Remote host closed the connection]
rajeshchawla has joined #ruby
yetanotherdave has joined #ruby
dcunit3d has quit [Ping timeout: 245 seconds]
renderful has joined #ruby
kasperti_ has joined #ruby
babykosh has joined #ruby
elaptics`away is now known as elaptics
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
kasperti_ has quit [Client Quit]
RandyT has quit [Quit: ZNC - http://znc.in]
baweaver has quit [Remote host closed the connection]
dseitz has joined #ruby
Mars` has joined #ruby
spectator has quit [Remote host closed the connection]
Macaveli has joined #ruby
drewvanstone has joined #ruby
vifino has joined #ruby
aspiers has joined #ruby
i0n has joined #ruby
tgandrews has quit [Quit: tgandrews]
workmad3 has joined #ruby
rodfersou has joined #ruby
supersym has quit [Ping timeout: 255 seconds]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
RandyT has joined #ruby
decoponio has joined #ruby
mikeg has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vasilakisfil has quit [Remote host closed the connection]
dda has quit [Remote host closed the connection]
nvdpl has quit [Ping timeout: 256 seconds]
dda has joined #ruby
davidhq has joined #ruby
tgandrews has joined #ruby
jonathan_alban has joined #ruby
mloveless has quit [Read error: No route to host]
jdj_dk has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
mloveless has joined #ruby
nvdpl has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 255 seconds]
govg has joined #ruby
timonv_ has joined #ruby
beef-wellington has joined #ruby
dANO_ has quit []
benzrf is now known as benzrf|offline
jimbach has joined #ruby
ghostlines has joined #ruby
ikaros has quit [Quit: Ex-Chat]
ta has joined #ruby
reinaldob has quit [Remote host closed the connection]
jheg has joined #ruby
maletor has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
havenwood has joined #ruby
Viata has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
AlSquirrel has joined #ruby
luksaur has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
testcore has joined #ruby
adriancb has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
Lingos has joined #ruby
vimer has quit [Quit: leaving]
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
mjuszczak has quit []
baweaver has joined #ruby
matcouto has joined #ruby
Lingo______ has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
allcentury has quit [Ping timeout: 255 seconds]
mjuszczak has joined #ruby
yfeldblum has joined #ruby
FooMunki has quit [Quit: FooMunki]
mikeg has quit [Remote host closed the connection]
samuel02 has joined #ruby
x77686d has joined #ruby
fsapo has quit [Remote host closed the connection]
RandyT has quit [Quit: ZNC - http://znc.in]
fabrice31 has joined #ruby
baweaver has quit [Remote host closed the connection]
i0n has quit [Quit: snooze]
babykosh has quit [Quit: babykosh]
joonty has joined #ruby
Ankhers has joined #ruby
m8 has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
Ankhers has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
Macaveli has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
vifino has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
procat has joined #ruby
luriv has quit [Remote host closed the connection]
auxbuss has joined #ruby
ta_ has joined #ruby
mjuszczak has quit []
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
rjl has quit [Ping timeout: 264 seconds]
donostiarra has joined #ruby
bbloom has joined #ruby
josephnd1nton has quit [Ping timeout: 256 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
donostiarra has left #ruby [#ruby]
vifino has joined #ruby
njames has quit [Remote host closed the connection]
ta has quit [Ping timeout: 258 seconds]
rodfersou has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
ghr has joined #ruby
auxbuss has quit [Client Quit]
oo_ has joined #ruby
lolmaus has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
adriancb has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ghr has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
hornairs has joined #ruby
giuseppesolinas has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
oo_ has quit [Ping timeout: 255 seconds]
Hijiri has joined #ruby
atmosx has quit [Quit: Lost in trance]
<jheg> o/
<jheg> which method returns a new array of indexes if a condition is met?
<jheg> #select returns the element but not the index
wallerdev has quit [Quit: wallerdev]
ldnunes has quit [Quit: Leaving]
Rahul_Roy_ has joined #ruby
<centrx> jheg, adding .with_index might work
Viata has quit [Quit: Leaving]
divi has joined #ruby
<centrx> jheg, or you may just want map.with_index, using next with compact to remove undesired items
baweaver has joined #ruby
<centrx> *skip undesired items
<jheg> ooh nice
<jheg> I prefer the simpleness of option one :)
<jheg> I’ll try that first
divi_ has joined #ruby
baweaver has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
aspires has quit []
anaeem1_ has quit [Remote host closed the connection]
rajeshchawla has quit [Remote host closed the connection]
rylev has joined #ruby
Jake232 has joined #ruby
henesy has quit [Ping timeout: 255 seconds]
ta has joined #ruby
baweaver has joined #ruby
hmsimha_ has quit [Ping timeout: 255 seconds]
xymbol has quit [Quit: Be back later ...]
gregf has joined #ruby
maximski_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
maximski_ has quit [Max SendQ exceeded]
babykosh has joined #ruby
aspires has joined #ruby
maximski_ has joined #ruby
maximski has quit [Ping timeout: 258 seconds]
divi has quit [Ping timeout: 258 seconds]
benzrf is now known as benzrf|offline
jnylen has quit [Quit: WeeChat 1.0.1]
Lingos has quit [Quit: Be back later ...]
ta has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
CorySimmons has quit [Quit: Bye!]
pontiki has joined #ruby
havenwood has joined #ruby
hiyosi has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
ta has joined #ruby
rjl has joined #ruby
tier_ has quit [Read error: Connection reset by peer]
kasperti_ has joined #ruby
tier has joined #ruby
Lingo______ has quit [Quit: Be back later ...]
despai has quit [Quit: This computer has gone to sleep]
lmickh has quit [Remote host closed the connection]
Lingo______ has joined #ruby
aspires has quit []
louism2wash has joined #ruby
chipotle has joined #ruby
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
njames has joined #ruby
samfisher has joined #ruby
<samfisher> how can I make a command to run randomly each 1 to 5 hrs?
banister_ has joined #ruby
rkalfane has joined #ruby
xymbol has joined #ruby
centrx has joined #ruby
<apeiros> samfisher: see Kernel#sleep and Kernel#rand
<samfisher> thanks
danijoo has quit [Read error: Connection reset by peer]
duplex has quit [Ping timeout: 240 seconds]
econerd4ever has quit [Remote host closed the connection]
nkumari has joined #ruby
aspires has joined #ruby
Lingo______ has quit [Ping timeout: 255 seconds]
econerd4ever has joined #ruby
danijoo has joined #ruby
duplex has joined #ruby
despai has joined #ruby
Lingo______ has joined #ruby
nkumari has quit [Remote host closed the connection]
samfisher has quit [Client Quit]
banister has quit [Ping timeout: 244 seconds]
arup_r has quit [Quit: Leaving.]
<jheg> centrx: thanks mate
<jheg> array.each_index.select{|index| array[index] == ' '}
<jheg> ^ did it
tus has joined #ruby
<centrx> neato
Lingos has joined #ruby
babykosh has quit [Quit: babykosh]
delianides has quit [Remote host closed the connection]
NovapaX has joined #ruby
delianides has joined #ruby
Linell has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 244 seconds]
NovapaX has quit [Client Quit]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Linell has left #ruby [#ruby]
msgodf has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
Lingo______ has quit [Ping timeout: 256 seconds]
aspires has quit []
Lingos has quit [Client Quit]
BTRE has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
jenrzzz has joined #ruby
ta has quit [Remote host closed the connection]
Bira has joined #ruby
kasperti_ has quit []
russt has joined #ruby
ta has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
rjl has quit [Ping timeout: 245 seconds]
lolmaus has quit [Quit: Konversation terminated!]
adriancb has quit [Remote host closed the connection]
ghostlines has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
aspires has quit [Client Quit]
jdj_dk has quit [Remote host closed the connection]
rajeshchawla has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
jdj_dk has joined #ruby
Bira has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
postmodern has joined #ruby
ta has quit [Ping timeout: 272 seconds]
CustosLimen has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
ta has joined #ruby
allcentury has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has quit [Ping timeout: 258 seconds]
atomical has joined #ruby
klmlfl_ has joined #ruby
x77686d has quit [Ping timeout: 245 seconds]
kikati has joined #ruby
Xeago has joined #ruby
parduse has quit [Remote host closed the connection]
klmlfl has quit [Ping timeout: 240 seconds]
jasonwc_ has joined #ruby
tgandrews has quit [Quit: tgandrews]
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
jottr has joined #ruby
zzzbra has quit [Remote host closed the connection]
maletor has joined #ruby
josephnd1nton has joined #ruby
zzzbra has joined #ruby
rylev has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 244 seconds]
lukevinc has joined #ruby
klmlfl_ has quit []
klmlfl has joined #ruby
Xeago_ has joined #ruby
deric_skibotn has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
disKounted has joined #ruby
aspires has quit []
parduse has joined #ruby
decoponio has quit [Quit: Leaving...]
aspires has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rshetty has joined #ruby
josephnd1nton has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
baweaver has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
byprdct has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
sambao21 has quit [Client Quit]
ghr has joined #ruby
byprdct has joined #ruby
speaking1ode has joined #ruby
<graft> okay, so ary.uniq.length == ary.length will tell me if ary contains duplicates, but it seems like overkill. what's a faster way?
econerd4ever has joined #ruby
spyderma_ has joined #ruby
adriancb has joined #ruby
rshetty has quit [Ping timeout: 264 seconds]
speakingcode has quit [Ping timeout: 264 seconds]
michael_lee has quit [Quit: Ex-Chat]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tgandrews has joined #ruby
benzrf|offline is now known as benzrf
spyderm__ has joined #ruby
<tobiasvl> graft: doubt there is a faster one (except that you don't need to check the length, just compare the arrays), you have to traverse both arrays anyway
sargas has quit [Quit: Leaving]
<graft> ary.uniq == ary is definitely slower than ary.uniq.length == ary.length
spyderman4g63 has quit [Ping timeout: 258 seconds]
<crome> graft: that's pretty much the best way to go about it
ghr has quit [Ping timeout: 258 seconds]
econerd4ever has quit [Remote host closed the connection]
<graft> how can it be the best? I don't need to compress ary to its uniq elements just to know if it has duplicates. if i find even one duplicate, that's enough, so there must be a faster way
<tobiasvl> graft: hehe, yeah, on second thought that makes sense. you only traverse the one array with comparisons.
rylev has joined #ruby
i0n has joined #ruby
baweaver has joined #ruby
<tobiasvl> graft: write your own method!
lidaaa has joined #ruby
<graft> well, yeah, but i like posing these problems to see what people come up with
ghostlines has joined #ruby
govg has quit [Quit: leaving]
ghostlines has quit [Max SendQ exceeded]
sfr^ has quit [Excess Flood]
sdwrage has joined #ruby
sfr^ has joined #ruby
speakingcode has joined #ruby
ghostlines has joined #ruby
<crome> graft: it's not about "compressing" an array or not, it's about trusting ruby that it knows how to filter out duplicates in an efficient way, perhaps better than what you can come up with
spyderma_ has quit [Ping timeout: 240 seconds]
<graft> crome: yes, but i didn't want ary.uniq, i just want to know if it contains ANY duplicate elements
j_mcnally has joined #ruby
<graft> crome: work is being done i don't care about
baweaver has quit [Remote host closed the connection]
econerd4ever has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
<crome> are you actually contradicting yourself?
speaking1ode has quit [Ping timeout: 272 seconds]
<terrellt> Why do you need to know if there's duplicates?
<graft> that was my original purpose
<graft> given an ary, see ifi t has any duplicates
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
<crome> you seem to care about the work that is being done under the hood as you clearly have a problem with calling uniq on an array
renderful has quit [Remote host closed the connection]
tgandrews has quit [Quit: tgandrews]
econerd4ever has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
rajeshchawla has quit [Remote host closed the connection]
<graft> you seem to be missing my point, never mind
* crome doesn't mind
<terrellt> Basically no matter what you do it's gonna be n^2, might as well do the concise way.
klmlfl has quit [Ping timeout: 256 seconds]
econerd4ever has joined #ruby
djbkd has joined #ruby
<apeiros> hm? checking array for duplicates O(n^2)?
sambao21 has joined #ruby
<apeiros> certainly not :)
bmichelsen has quit [Quit: ZZZzzz…]
kikati was banned on #ruby by apeiros [*!~kikati@*]
kikati was kicked from #ruby by apeiros [no spam]
rajeshchawla has joined #ruby
<terrellt> I guess you could do n + nlogn
oo_ has quit [Ping timeout: 255 seconds]
<apeiros> hash lookup is O(n)
jenrzzz has joined #ruby
Lucky__ has joined #ruby
<apeiros> gah
<apeiros> hash lookup is O(1)
<apeiros> and array iteration O(n)
xymbol has quit [Quit: Be back later ...]
<apeiros> so the resulting algorithm is O(n)
Lightsword has quit [Quit: Lightsword]
<terrellt> Ah - iterating across the array and adding to a hash, if it exists then bail
<terrellt> Yes, that's O(n)
rajeshchawla has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 240 seconds]
<apeiros> an ary.uniq uses the same approach
workmad3 has joined #ruby
<apeiros> so ary.uniq.length == ary.length is O(n) too
aspires has quit []
<terrellt> There ya go, graft
<apeiros> and yes, ary.uniq == ary is much more expensive
boombadaroomba has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
rylev has quit [Remote host closed the connection]
<havenwood> as would be something like: sort.each_cons(2).all? { |a, b| a != b } }
<apeiros> as in the case of an array without duplicates, it'll indeed do == on each element in the array (additionally to the uniq)
joonty has quit [Quit: joonty]
<apeiros> havenwood: sorting is nlogn
<havenwood> bad sort, no cookie
aspires has joined #ruby
<terrellt> Hehe
louism2wash has quit [Quit: This computer has gone to sleep]
<apeiros> unless you cheat (pre-sorted data + algorithm which takes advantage of that)
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
babykosh has joined #ruby
davidhq has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
freerobby has quit [Quit: Leaving.]
hiyosi has joined #ruby
freerobby has joined #ruby
divi_ has quit [Ping timeout: 255 seconds]
govg has joined #ruby
deric_skibotn_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
deric_skibotn has quit [Ping timeout: 250 seconds]
deric_skibotn_ is now known as deric_skibotn
havenwood has quit [Remote host closed the connection]
baweaver has joined #ruby
boombadaroomba has joined #ruby
fandi has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
kasperti_ has joined #ruby
arescorpio has joined #ruby
govg has quit [Quit: leaving]
<waxjar> wouldn't it be easier to just use a Set in the first place, avoid duplicates altogether?
enape_101 has joined #ruby
ta has quit [Remote host closed the connection]
<enape_101> How do I make it so that when a subscriber chooses a category, and enters their email address.. They will ONLY receive emails that are relevant to the category they chose? Bare in mind, the category select dropdown, is created with a constant on the category model. I.E CATEGORY_TYPES = {1 => "Fitness"} etc
Lingo______ has joined #ruby
ta has joined #ruby
zzzbra has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
xrlabs has quit [Read error: Connection reset by peer]
Lingo______ has quit [Ping timeout: 240 seconds]
<jhass> enape_101: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
ta has quit [Ping timeout: 255 seconds]
jasonwc_ has quit []
<enape_101> jhass, my apologies.
divi has joined #ruby
drewvanstone has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
slester has joined #ruby
zzzbra has joined #ruby
duncannz has joined #ruby
ta has joined #ruby
renderful has joined #ruby
<graft> apeiros: but i don't have to iterate over the whole array, so i should be able to do this in < O(n)
Bira has joined #ruby
rylev has joined #ruby
babykosh has quit [Quit: babykosh]
<graft> e.g. this: https://gist.github.com/graft/2e614375c8601970be68 should be < O(n), i think, but not sure by how much
tvw has joined #ruby
louism2wash has joined #ruby
<graft> I guess it varies with my dataset
divi has quit [Ping timeout: 255 seconds]
<terrellt> graft: Not really how O notation works.
<crome> and what do you think "each" does on that method?
<crome> in*
<terrellt> Worst case is O(n)
<graft> eh? If that's O(log(n)), that's less than O(n)
rjl has joined #ruby
<graft> crome: what do you think 'return' does on that method?
govg has joined #ruby
<gr33n7007h> what about: arr == (arr|arr) or is that just shit
enape_101 has quit []
wjimenez5271 has quit [Read error: Connection reset by peer]
<terrellt> graft: Test it. Benchmark functions.
<terrellt> Use a large dataset.
<waxjar> graft: im guessing #uniq is written in C tho and likely a bit faster, even if your algorithm is theoretically faster
wjimenez5271 has joined #ruby
divi has joined #ruby
<crome> graft: sorry, I misunderstood you a bit. your method _may_ be faster if the duplicate is to be found early in the array
<graft> waxjar: uniq is basically doing what i'm doing here, it's not going to be that much faster. it pushes stuff onto a ruby hash
sambao21 has joined #ruby
enape_101 has joined #ruby
<graft> i'm not sure it's any faster, i think it's just written in C for the sake of it
Bira has quit [Remote host closed the connection]
gregf has joined #ruby
<terrellt> Well, it bypasses the interpretation step. Again, benchmark it.
byprdct has quit [Quit: sleeping]
fabrice31 has joined #ruby
rylev has quit [Remote host closed the connection]
vifino has quit [Ping timeout: 258 seconds]
<waxjar> if you do benchmark, pls report back. im curious :D
uber has quit [Ping timeout: 240 seconds]
<terrellt> Or avoid having to check duplicates, of course, but it doesn't sound like you're solving a business use case.
spider-mario has quit [Remote host closed the connection]
<crome> I think ruby was written in C only for the sake of it
Takle has joined #ruby
<crome> Matz knew no better
nvdpl has quit [Quit: ZZZzzz…]
<eam> what else would it be written in?
drewvanstone has joined #ruby
<crome> dunno, javascript is all hip nowadays
<terrellt> Well, he tried to write it in Ruby, but the paradox blew up the world.
ghostlines has joined #ruby
<eam> barf
ghostlines has quit [Remote host closed the connection]
<benzrf> terrellt: you think you're joking
aspires has quit []
<benzrf> terrellt: the coffeescript compiler is in coffeescript, ghc is in haskell, gcc is in c (oh wait is it c++)
uber has joined #ruby
uber has quit [Max SendQ exceeded]
<waxjar> the rust compiler is written in rust
ndrei_ has quit [Ping timeout: 258 seconds]
aspires has joined #ruby
ndrei__ has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
<benzrf> pypy is in py
<benzrf> obviously
uber has joined #ruby
<apeiros> 22:35 graft: apeiros: but i don't have to iterate over the whole array, so i should be able to do this in < O(n)
uber has quit [Max SendQ exceeded]
<apeiros> that's not how big-o works
<apeiros> in the worst case, you DO have to iterate the whole array
<apeiros> so it is O(n)
<terrellt> 13:37 terrellt: graft: Not really how O notation works.
ndrei has quit [Ping timeout: 240 seconds]
uber has joined #ruby
uber has quit [Max SendQ exceeded]
Avahey has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
<apeiros> ah, late to the party :)
uber has joined #ruby
uber has quit [Max SendQ exceeded]
mikepack has quit [Remote host closed the connection]
uber has joined #ruby
uber has quit [Max SendQ exceeded]
Tranquility has quit [Quit: Connection closed for inactivity]
bmichelsen has joined #ruby
uber has joined #ruby
uber has quit [Max SendQ exceeded]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
byprdct has joined #ruby
uber has joined #ruby
uber has quit [Max SendQ exceeded]
agjacome_ has joined #ruby
uber has joined #ruby
uber has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
uber has joined #ruby
rkalfane has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
cleopatra has joined #ruby
agjacome has quit [Ping timeout: 272 seconds]
j2p2 has quit [Ping timeout: 244 seconds]
xymbol has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
econerd4ever has joined #ruby
ghostlines has joined #ruby
FooMunki has joined #ruby
adriancb has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
ta has quit [Remote host closed the connection]
<graft> yeah, so it's O(n) in the worst case, but not on average
adriancb has joined #ruby
ta has joined #ruby
timonv_ has quit [Remote host closed the connection]
<graft> depending on the complexity of the dataset (i.e., what's the density of duplicates) the two are quite different in speed
duggiefresh has quit []
josephnd1nton has joined #ruby
<apeiros> graft: on average, it'll iterate n/2
<graft> apeiros: again, depending on the complexity of the dataset
<apeiros> and since a factor is removed when doing the limit, it's still O(n)
<apeiros> no, not depending on the complexity of the dataset :)
henesy has joined #ruby
<graft> apeiros: i just tested this :)
<apeiros> if you have a biased dataset, the average will change
econerd4ever has quit [Remote host closed the connection]
<apeiros> yes, and still not understood O(n) ;-)
delianides has quit [Remote host closed the connection]
econerd4ever has joined #ruby
delianides has joined #ruby
Mars` has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulfm has quit []
tesaf has quit [Quit: Lost terminal]
j2p2 has joined #ruby
<graft> seems like if the dataset is not ordered, and p(i==j) = x, it'll stop exponentially fast based on x one way and linearly the other
ta has quit [Ping timeout: 265 seconds]
procat has quit [Ping timeout: 240 seconds]
josephnd1nton has quit [Ping timeout: 255 seconds]
Flowrhent has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
Flowrhent has left #ruby [#ruby]
jlast has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 264 seconds]
boombadaroomba has joined #ruby
<apeiros> graft: biased dataset is a factor
tier has quit [Remote host closed the connection]
jlast has joined #ruby
oo_ has joined #ruby
<graft> well sure, but that means that it's not O(n) in all cases
<apeiros> i.e. you say it has a 50% chance to hit in the first 10% of items - sure. that means a short-cutting algorithm runs faster. but by a factor. and factors are not part of O(n) notation.
henesy has quit [Ping timeout: 264 seconds]
benzrf is now known as benzrf|offline
<terrellt> graft: O(n) isn't context sensitive.
<graft> it's not by a factor, it's exponentially fast as opposed to linear
<apeiros> algorithm A can run 1000x faster than B on average. but they can still both be O(n).
ghr has joined #ruby
delianides has quit [Ping timeout: 255 seconds]
<apeiros> then you did a mistake in either measuring or analyzing.
Lightsword has joined #ruby
allcentury has joined #ruby
freerobby has quit [Quit: Leaving.]
<terrellt> The moment you iterated over the entirety of the dataset it was O(n) at the very least.
<terrellt> Or rather, the moment you had the potential to iterate over the entirety of the dataset.
<graft> i.e., if the odds that p(i==j) = x, the odds of my encountering j == i go up exponentially as i iterate. i.e., the odds that i find a match are (1-x)^i
<apeiros> terrellt: it could even be an algorithm which was guaranteed to only ever iterate n/2 - it's still be O(n)
<graft> terrellt: absolutely not! that's just O(n) in the worst case
<apeiros> there is no "O(n) in the worst case"
sambao21 has joined #ruby
nobitanobi has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has quit [Client Quit]
rajeshch_ has joined #ruby
<apeiros> best case/worst case have their own name
Lightsword has quit [Client Quit]
<apeiros> (and they too don't care about factors - just to have it said)
grzywacz has joined #ruby
grzywacz has joined #ruby
<graft> no, but they do care about logs and exponents
<apeiros> yes. and you have neither here.
i0n has quit [Quit: snooze]
jlast has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
<graft> if my stopping time is a function not of the number of elements in the array but of the density of duplicates in that array, how is it O(n)?
benzrf|offline is now known as benzrf
Photism has joined #ruby
mikepack has joined #ruby
<apeiros> again: density is a factor
samuel02 has quit [Remote host closed the connection]
ta has joined #ruby
qhartman has joined #ruby
<graft> yes, but density is not a function of n
<centrx> I may start using @@class_variables
benzrf is now known as benzrf|offline
<terrellt> centrs: Only $
<apeiros> it'd only change if you had a guarantee on "in the first N items of the array - no matter how big it is - there will be a duplicate". but then you'd have O(1) (since you're not dependent on the size of the array anymore)
<terrellt> Globals only. All the time.
jjasonclark has joined #ruby
<apeiros> graft: then you're using the term density wrong
<apeiros> density is x per n
baroquebobcat has joined #ruby
<apeiros> but I think you're using density correctly. but misunderstand how it works.
mistermocha has joined #ruby
i0n has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
babykosh has joined #ruby
jenrzzz has joined #ruby
slester has quit [Remote host closed the connection]
drewvanstone has joined #ruby
max96at is now known as max96at|off
i0n has quit [Client Quit]
<eam> the n in O(n) can be anything
havenwood has joined #ruby
aspires has quit []
charliesome has joined #ruby
i0n has joined #ruby
<nobitanobi> How can I do the opposite of /mi/ =~ "hi mike"
Lingo______ has joined #ruby
<nobitanobi> besides doing if !(/mi/ =~ "hi mike")
<apeiros> !~
<apeiros> or unless =~
<nobitanobi> thanks apeiros
m8 has quit [Quit: Sto andando via]
babykosh has quit [Quit: babykosh]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
vifino has joined #ruby
babykosh has joined #ruby
<eam> ruby's socket class is so inadequate
Mateon1 has quit [Ping timeout: 240 seconds]
<apeiros> thank you. now I hear willie's "adequate" song
<crome> it still doesn't read after reset?
<crome> thought they fixed it already, duh
aspires has joined #ruby
melik has joined #ruby
henesy has joined #ruby
<eam> how am I supposed to work with cmsg structures >+/
kirun has quit [Quit: Client exiting]
aspires has quit [Client Quit]
ta has quit [Remote host closed the connection]
Dieseltime has joined #ruby
ta has joined #ruby
<eam> not only can I not create them without playing with pack, there's only recvfrom() and no recvmsg()
<crome> I'm wondering, why can't you use a higher level implementation?
henesy_ has joined #ruby
<eam> like/
<eam> ?
ht__th has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
<crome> tcpsocket/unixsocket/whateversocket
henesy has quit [Ping timeout: 265 seconds]
<eam> I'm not sending data, I'm sending ancillary messages
bricker`1ork has joined #ruby
procat has joined #ruby
spyderm__ has quit [Remote host closed the connection]
<eam> oh, unixsocket implements recvfrom (sigh)
<eam> why would that not be available in socket?
aspires has joined #ruby
<eam> erk no recvmsg, so still nogo
ta has quit [Ping timeout: 265 seconds]
mistermocha has quit [Remote host closed the connection]
gregoriokusowski has quit [Quit: gregoriokusowski]
<crome> ah
bricker`work has quit [Ping timeout: 245 seconds]
<eam> crome: let's say for example I want to use SCM_CREDENTIALS to authenticate the peer on the other end of the socket
sts has quit [Ping timeout: 264 seconds]
<eam> I can write ffi but honestly, recvmsg ought to be an available primitive in Socket
xorax_ has joined #ruby
henesy_ has quit [Ping timeout: 250 seconds]
<eam> I guess I can make a patch
* eam ratholes
zzzbra has quit [Remote host closed the connection]
Lingo______ has quit [Quit: Be back later ...]
Lingo______ has joined #ruby
klmlfl has joined #ruby
dda has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
<sweeper> eam: surely you're not doing something so weird that zeromq or the like won't suffice?
spookley has joined #ruby
<eam> I am
andrewlio has quit [Quit: Leaving.]
<eam> I like to use ruby for short proof of concept snippets
Lingo______ has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
bricker`work has joined #ruby
sts has joined #ruby
sts is now known as Guest14797
ptrrr has quit [Quit: ptrrr]
jenrzzz has quit [Ping timeout: 258 seconds]
samuel02 has joined #ruby
bricker`1ork has quit [Ping timeout: 272 seconds]
livingstn has quit []
Lingo______ has joined #ruby
eightfold has joined #ruby
<eightfold> should i sudo when i install gems on os x?
Guest14797 has quit [Ping timeout: 244 seconds]
Bira has joined #ruby
<apeiros> eightfold: depends on your installation
<eightfold> apeiros: how?
<apeiros> but generally consensus is to do a user install of ruby and not use sudo
supersym has joined #ruby
<apeiros> ah, actually I think rubygems can do a user-install of gems even for a system install of ruby
<eightfold> apeiros: i don’t want to install ruby via rubygems
<eightfold> i want to install jekyll
henesy_ has joined #ruby
<apeiros> you can't install ruby via rubygems. that's not what I said either.
<havenwood> eightfold: jekyll is a rubygem. rubygems ships with ruby.
<apeiros> the way you install ruby defines how rubygems installs gems by default.
<apeiros> if your ruby is a system wide installation of ruby, rubygems will default to system wide gem installations. and those require sudo.
<eightfold> apeiros: i’m using system default version of ruby
<eightfold> on yosemite
<apeiros> ok. that's a system wide install.
<apeiros> you can try `gem install jekyll --user-install`
<eightfold> ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
jimbach has quit [Remote host closed the connection]
qhartman has quit [Quit: Ex-Chat]
<apeiros> (I say "try" because I've never used it myself - I don't use system ruby)
nateberkopec has joined #ruby
<eightfold> apeiros: why should i do —user-install and not just system wide?
Dieseltime has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has quit [Ping timeout: 255 seconds]
zzzbra has joined #ruby
Dieseltime has joined #ruby
agent_white has quit [Quit: bbl]
<apeiros> because it doesn't need sudo
terlar has joined #ruby
claymore has quit [Quit: Leaving]
henesy_ has quit [Ping timeout: 245 seconds]
sts_ has joined #ruby
rshetty has joined #ruby
Lingo______ has left #ruby ["Be back later ..."]
<eam> update: recvfrom was added I think in 2.x
volty has joined #ruby
<eam> so that's pretty cool
<eam> it's hiding in BasicSocket
reinaldob has joined #ruby
maximski_ has quit []
havenwood has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
<eam> finding methods is such a pita
patrick99e99 has joined #ruby
<apeiros> indeed. inventing them is so much more fun ;-D
redjack1964_ has joined #ruby
codecop has quit [Remote host closed the connection]
procat has quit [Ping timeout: 255 seconds]
rshetty has quit [Ping timeout: 240 seconds]
<eightfold> apeiros: http://jekyllrb.com/ seems to recommend just issuing gem install jekyll
<apeiros> then I suggest you do that and see how it goes.
redjack1964 has quit [Ping timeout: 255 seconds]
josephndenton has quit [Ping timeout: 240 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eightfold> apeiros: sorry for being so anxious, but i’ve had so much trouble with ruby and rvm on os x
<jheg> thanks for your helps earlier guys all finished with the Tic Tac Toe game
<eightfold> ultimately wiped the whole os because of the error message hell i ended up in
<jheg> well I have a working starting point at least https://github.com/jheg/courseproject/blob/master/oottt.rb
heyimwill has quit [Ping timeout: 272 seconds]
<jheg> !fun eightfold
Exeia has joined #ruby
<eightfold> fun?
<jheg> no it sounds like not fun
sailias has quit [Quit: Leaving.]
<Radar> sounds like the nuclear option
<Radar> eightfold: I would recommend chruby and ruby-install
<apeiros> I have no idea what people do
<apeiros> using rvm on osx for ages
<apeiros> never had a problem
Blizzy has quit [Ping timeout: 255 seconds]
<apeiros> ok, well, once. when I was surprised that rvm did auto-bundle.
<jheg> no problems here either and I run jekyll
tttttttttttttttt is now known as weaksauce
whoisjake has quit []
nfk has quit [Quit: yawn]
henesy has joined #ruby
jerius has quit [Ping timeout: 258 seconds]
oo_ has joined #ruby
<eightfold> surprise…
<eightfold> ERROR: While executing gem ... (Gem::FilePermissionError)
<eightfold> You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
lucyinthesky has joined #ruby
pandaant has quit [Remote host closed the connection]
<eightfold> that’s just gem install jekyll
<apeiros> eightfold: and now remember what I told you
<apeiros> system wide ruby install -> gem install defaults to system install of gem
Dieseltime has quit [Ping timeout: 240 seconds]
<apeiros> without sudo, you don't have permission for system wide installs.
<eightfold> here a jekyll dev recommends just doing gem install jekyll because of trouble with sudo https://github.com/jekyll/jekyll-help/issues/167
<apeiros> *sob*
heyimwill has joined #ruby
<apeiros> eightfold: read. and understand.
<Radar> eightfold: I would recommend installing chruby and ruby-install and using those.
<Radar> eightfold: Install Ruby 2.1.5 through ruby-install.
<apeiros> you either need a user install of ruby. or you use --user-install.
pietr0 has joined #ruby
ghr has joined #ruby
<eightfold> apeiros: apparently, looking at uninstaller logs i can see that ~/.gem was created though
<eightfold> even though it failed
* Radar taps keyboard
<eightfold> but i shouldn’t wipe that?
<Radar> is this thing on?
<eightfold> to start from zero before doing —user-install?
workmad3 has joined #ruby
<Radar> eightfold: Please stop what you're doing right now and install ruby-install, then install ruby 2.1.5 using that, then use chruby to auto switch into that Ruby.
rajeshch_ has quit [Remote host closed the connection]
<Radar> Completely ignore your system Ruby because it is a world of pain.
<Radar> It's outdated and the permissions are not setup correctly.
benzrf|offline is now known as benzrf
<eightfold> arghhh
hiyosi has joined #ruby
divi has quit [Ping timeout: 272 seconds]
<eightfold> i can sense the pain and mess closing in
<apeiros> of course. because you run around like a blind chicken.
<eightfold> haha
<eightfold> yeah, i suppose
<apeiros> I told you what you need to know.
<eightfold> i just want to install jekyll. that’s all.
<apeiros> you have to use it yourself.
<Radar> eightfold: And I've given you direction how you can do that.
<apeiros> Radar's suggestion btw. is to do a user install of ruby
<Radar> eightfold: Setup Ruby correctly on your machine and you won't have problems.
<apeiros> personally I prefer a user install of ruby. but gem install --user-install should work just fine.
babykosh has quit [Quit: babykosh]
<eightfold> apeiros: or just do gem install jekyll --user-install =
<eightfold> ?
babykosh has joined #ruby
henesy has quit [Ping timeout: 250 seconds]
<eightfold> but should i somehow undo the mistake i just did?
<apeiros> yes. that's how you install a gem without sudo on a system-wide ruby.
<eightfold> (which was btw recommended by the jekyll developers themselves)
<apeiros> nothing happened
<apeiros> you didn't have permissions to let something happen.
dda has joined #ruby
<apeiros> you forget context.
<eightfold> apeiros: a dir was creted
ghr has quit [Ping timeout: 255 seconds]
<eightfold> apeiros: ~/.gem
<apeiros> the jekyll developers can't possibly account for all possible setups. their recommendation assumes the best-practice - which is a user install of ruby.
<apeiros> eightfold: that won't hurt you (~/.gem)
workmad3 has quit [Ping timeout: 240 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
rajeshchawla has joined #ruby
divi has joined #ruby
<apeiros> IMO ruby (or rubygems actually) could do a better job.
hiyosi has quit [Ping timeout: 258 seconds]
testcore has quit [Remote host closed the connection]
Techguy305 has joined #ruby
lidaaa has quit [Ping timeout: 258 seconds]
rajeshchawla has quit [Remote host closed the connection]
<eightfold> apeiros: in my (uneducated) opinion i think so too
<eightfold> :)
<apeiros> note that if you do a --user-install, the executable will be installed in a dir which is probably not in your $PATH
charliesome has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<eightfold> apeiros: oh of course, there’s always a but…
<apeiros> for me (yosemite too) it's ~/.gem/ruby/2.0.0/bin/
tkuchiki has joined #ruby
<apeiros> so don't forget to add that to $PATH.
<eightfold> ok
lucyinthesky has left #ruby ["Leaving"]
<eightfold> apeiros: any other downsides to —user-install?
beef-wellington has quit [Ping timeout: 245 seconds]
<apeiros> as said, I don't use it myself
agjacome has joined #ruby
Channel6 has joined #ruby
dandaman has joined #ruby
agjacome_ has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
siso has joined #ruby
<dandaman> what is the difference between {4=>"Denver", 9=>"Phoenix", 10=>"Houston", 11=>"Dallas"} and [[11, "Dallas"], [4, "Denver"], [10, "Houston"], [9, "Phoenix"]]
<dandaman> the first one is a hashmap right?
<dandaman> what is the 2nd one?
<Radar> First one is a Hash, second one is an Array of Arrays, which can be converted into a Hash with Hash[<that array>]
henesy has joined #ruby
agjacome has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 255 seconds]
Azure has joined #ruby
<eightfold> apeiros: could i use tilde in the $PATH ~/.gem/ruby/2.0.0/bin/
<dandaman> thanks
parzzix has quit [Ping timeout: 250 seconds]
<eightfold> or should i use $HOME instead of ~/
<apeiros> Radar: .to_h on decently new rubies :)
xorax_ has quit [Quit: Lost terminal]
josephndenton has joined #ruby
<rpag> >> [[1,2]].to_h
<eval-in__> rpag => {1=>2} (https://eval.in/223802)
<rpag> nice
<volty> as long as you do not have dupl kyes in that array
<rpag> i guess it takes the last one?
<rpag> >> [[1,2], [1,3]].to_h
<eval-in__> rpag => {1=>3} (https://eval.in/223803)
zzzbra has quit [Remote host closed the connection]
<Radar> thanks apeiros :)
<volty> yap
rjl has quit [Ping timeout: 264 seconds]
<apeiros> by the end of this year we'll finally have all apps moved to rails 4.1 and ruby 2.1. finally will be able to use all those goodies :D
Lightsword has joined #ruby
<apeiros> (well, all except for one - which uses ruby 1.8.1 and rails 1.2.3 - iirc)
rylev has joined #ruby
testcore has joined #ruby
gebbione has joined #ruby
<volty> I use rbenv and it was almost a nightmare to set it to use shims from apache (btw forgot how I did it)
Kricir has quit [Remote host closed the connection]
babykosh has quit [Quit: babykosh]
procat has joined #ruby
<volty> what's best out there? just to consider for the next reinstall ?
zorak8 has joined #ruby
<eightfold> apeiros: which command should i run when i update gems when having used —user-install
<apeiros> volty: If you use apache - I still find rvm + passenger quite painless.
fabrice31 has joined #ruby
babykosh has joined #ruby
zzzbra has joined #ruby
<apeiros> eightfold: good question. again, as said, I don't use --user-install. try `gem help update`?
<apeiros> maybe it's got a --user-install flag too
kapott has quit []
<eightfold> mmm
<volty> thx, saved in notes, together with nick
<eightfold> i’ll search around
bigkevmcd has quit [Ping timeout: 250 seconds]
<volty> could be nice to be able to run apache in user mode. I guess it is possible but haven't searched for info
duncannz has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
jobewan has quit [Quit: Leaving]
lidaaa has joined #ruby
dkphenom has joined #ruby
banister has joined #ruby
henesy has quit [Ping timeout: 244 seconds]
<volty> Ops, already as www-data user. So I mean so many system-wide settings shouldn't necessarily require root privileges. Maybe I'd better try to tweak with a www-data or a new ruby-group. (I am afraid of gems having access to the whole system).
o0oo0o has joined #ruby
zzzbra has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
msmith_ has quit [Ping timeout: 244 seconds]
gebbione has left #ruby ["Ex-Chat"]
<apeiros> volty: I have user installs for ruby with rvm+apache
<apeiros> different user than the apache user
zzzbra has joined #ruby
hiyosi has joined #ruby
Bira has joined #ruby
nobitanobi has joined #ruby
atmosx has joined #ruby
<atmosx> hello
supersymmetry has joined #ruby
rajeshchawla has joined #ruby
<atmosx> can an native englihs speaker exlain to me what piggy-backing means?
<volty> apeiros: it means that I am going to get rid of rbenv after this final one: so you managed to never be forced to sudo install a gem ?
<atmosx> effectively piggy-backing a neighbours connection. <--
<graft> is rubygems.org painfully slow for anyone? can i use a mirror or something?
<apeiros> volty: normal rvm installation.
<apeiros> so no sudo, no
<volty> ok, thx a lot
<atmosx> volty: I use rvm too, if it needs sudo it asks for it, but it's very rare situation
supersym has quit [Ping timeout: 255 seconds]
jjasonclark has quit [Quit: jjasonclark]
<apeiros> volty: ah, passenger might require sudo. not the gem, but the apache module. but I guess that's obvious.
zzzbra has quit [Ping timeout: 264 seconds]
renderful has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 272 seconds]
tlarevo has quit [Ping timeout: 256 seconds]
giuseppesolinas has joined #ruby
<volty> yes, of course. Let rvm be, after lost time with rbenv, thx again all
despai has quit [Quit: This computer has gone to sleep]
Mars` has quit [Quit: WeeChat 1.0.1]
sambao21 has quit [Quit: Computer has gone to sleep.]
nateberkopec has quit [Quit: Leaving...]
agjacome has joined #ruby
jheg has quit [Quit: jheg]
tokik has joined #ruby
banister has quit [Ping timeout: 255 seconds]
zzzbra has joined #ruby
jack_rabbit has joined #ruby
einarj_ has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
t7y9r has joined #ruby
banister has joined #ruby
mr_foobar_baz has joined #ruby
baweaver has quit [Remote host closed the connection]
jimbach has joined #ruby
samuel02 has joined #ruby
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
dkb20k has joined #ruby
adriancb has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<graft> stupid ipv6
tkuchiki has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
jenrzzz has joined #ruby
<jhass> nah, show more <3 for ipv6!