apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
arya_ has quit [Ping timeout: 248 seconds]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
generalissimo has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
beilabs_ has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
ianbrandt has quit [Quit: ianbrandt]
bigoldrock has quit [Ping timeout: 252 seconds]
arya has joined #ruby
staafl_alt has joined #ruby
johnrliv_ has quit [Remote host closed the connection]
jamesaxl_ has quit [Read error: Connection reset by peer]
Apane has quit [Ping timeout: 246 seconds]
johnrlive has joined #ruby
staafl has quit [Ping timeout: 256 seconds]
F1skr has quit [Quit: WeeChat 0.4.1]
F1skr has joined #ruby
RORgasm has joined #ruby
burlyscudd has joined #ruby
F1skr has quit [Client Quit]
F1skr has joined #ruby
bionhart has joined #ruby
tspike has quit [Ping timeout: 264 seconds]
nimor has joined #ruby
F1skr has quit [Client Quit]
F1skr has joined #ruby
danslo has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
jonno11 has quit [Quit: jonno11]
burlyscudd has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 240 seconds]
joelteon has quit [Ping timeout: 264 seconds]
chipotle_ has joined #ruby
havenwood has joined #ruby
advorak has quit [Quit: Leaving.]
vwoo has quit [Ping timeout: 240 seconds]
OnyxDragoon has quit [Quit: Leaving]
stkowski has quit [Quit: stkowski]
OnyxDragoon has joined #ruby
beilabs_ has quit [Ping timeout: 248 seconds]
vwoo has joined #ruby
subbyyy_ has joined #ruby
butblack has quit [Quit: butblack]
nimor has quit [Ping timeout: 245 seconds]
rsahae_ has quit [Quit: rsahae_]
chipotle_ has quit [Ping timeout: 252 seconds]
rsahae_ has joined #ruby
joelteon has joined #ruby
chipotle_ has joined #ruby
platzhirsch1 has joined #ruby
chipotle_ has quit [Max SendQ exceeded]
brianpWins has quit [Quit: brianpWins]
F1skr has quit [Quit: WeeChat 0.4.1]
<platzhirsch1> I want to model the keys of a nested hash. For instance for { a => { b => { c => 'value' } } }, but not only for one hash, but for many
<platzhirsch1> I have thought of an array of arrays
<platzhirsch1> [x, y, [a, b, c], z,...]
<platzhirsch1> so it's an array of array if there is a nested hash. Does that make sense?
Solnse has quit [Quit: Leaving.]
thams has quit [Quit: thams]
Peej has quit [Ping timeout: 264 seconds]
Apane has joined #ruby
viszu has quit [Quit: Leaving.]
codesoda_ has joined #ruby
apeiros has joined #ruby
ssickle1 has quit [Ping timeout: 264 seconds]
beilabs_ has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codesoda has quit [Ping timeout: 252 seconds]
Slivka has quit [Read error: Connection reset by peer]
gasbakid has joined #ruby
kasper_ has quit [Remote host closed the connection]
arya has quit []
huoxito has joined #ruby
bradhe has quit [Remote host closed the connection]
danslo has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
centr0 has quit [Quit: centr0]
instinkt has quit [Ping timeout: 246 seconds]
srji has quit [Ping timeout: 248 seconds]
tspike has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
Hobogrammer has joined #ruby
instinkt has joined #ruby
danslo has joined #ruby
ephemerian has quit [Quit: Leaving.]
ravster has quit [Quit: Leaving.]
tylersmith has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 264 seconds]
slainer68 has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 245 seconds]
wharfrat has quit [Quit: leaving]
i_s has joined #ruby
generalissimo has joined #ruby
jlast has quit [Remote host closed the connection]
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
generalissimo has quit [Remote host closed the connection]
brennanMKE has joined #ruby
saarinen has quit [Quit: saarinen]
fermion has joined #ruby
vlad_starkov has joined #ruby
mduvall has joined #ruby
agjacome_ has quit [Quit: leaving]
codesoda_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
gasbakid has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 246 seconds]
homelinen has quit [Ping timeout: 264 seconds]
mhahn has quit [Quit: Leaving.]
iamjarvo has joined #ruby
srji has joined #ruby
homelinen has joined #ruby
homelinen has quit [Changing host]
homelinen has joined #ruby
tkuchiki has joined #ruby
slainer68 has joined #ruby
mixel has quit [Quit: mixel]
<bricker> exit
bricker has quit [Quit: leaving]
brennanMKE has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
burlyscudd has joined #ruby
srji has quit [Ping timeout: 248 seconds]
Voodoofish430 has quit [Quit: Leaving.]
astrostl has quit [Quit: astrostl]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
alanjc has quit [Quit: ZNC - http://znc.in]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 264 seconds]
bionhart has quit [Remote host closed the connection]
beilabs_ has quit [Ping timeout: 240 seconds]
ntus1017 has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
freerobby has joined #ruby
alanjc has joined #ruby
bionhart has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
Matip has joined #ruby
IrishGringo has quit [Remote host closed the connection]
kasper has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
bionhart has quit [Remote host closed the connection]
kasper has quit [Remote host closed the connection]
ericmathison has quit [Remote host closed the connection]
emergion has joined #ruby
iamjarvo has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
<heftig> platzhirsch1: h={a:1,b:{a:1,b:2},c:3,d:{a:{a:1,b:2},b:2},e:6}; p=proc{|x|x.flat_map{|k,v|v.is_a?(Hash)?p[v].each_slice(2).flat_map{|k2,v2|[[k,*k2],v2]}:[[k],v]}}; p[h]
<heftig> this works, but turns all keys into arrays
bionhart has joined #ruby
Mattix has quit [Ping timeout: 268 seconds]
bigmac has joined #ruby
<heftig> if you never use arrays as keys, use [k,v] instead of [[k],v] and it won't do that
<milardovich> Is there a way to print a hole array row without using a loop? for example, if I have an array like [n,m] and I want to print all the m rows of an specific n column
<heftig> puts a.map { |row| row[7] }.join ", "
<heftig> still a loop, but an internal one
jacobbednarz has joined #ruby
beilabs_ has joined #ruby
<heftig> puts a.transpose[1].join ", "
<heftig> transposes the whole matrix, which is probably more expensive
Hanmac has joined #ruby
jacobbednarz has quit [Read error: Connection reset by peer]
dEPy has quit [Remote host closed the connection]
vwoo has quit [Ping timeout: 252 seconds]
DomKM has joined #ruby
Hanmac1 has quit [Ping timeout: 256 seconds]
vwoo has joined #ruby
dankest has quit [Quit: Leaving...]
DrShoggoth has quit [Quit: Leaving]
mocfive has quit [Remote host closed the connection]
robscomputer_ has quit [Remote host closed the connection]
robscomputer has joined #ruby
jenrzzz has joined #ruby
codesoda has joined #ruby
GeissT has joined #ruby
timkohrumel has quit [Remote host closed the connection]
<milardovich> heftig, thanks!
dmiller has joined #ruby
ntus1017 has joined #ruby
staafl has joined #ruby
chipotle_ has joined #ruby
instinkt has quit [Ping timeout: 276 seconds]
gildo has joined #ruby
codesoda has quit [Remote host closed the connection]
<milardovich> Just another silly question xD: I want to work with binary numbers. I need an array of certain lenght to be full-filled with 0s or 1s
<milardovich> I thought that this way: http://pastebin.com/CmmAFDt4
robscomputer has quit [Ping timeout: 256 seconds]
staafl_alt has quit [Ping timeout: 256 seconds]
<milardovich> But I only get the first element I added
jonahR has joined #ruby
chipotle_ has quit [Ping timeout: 245 seconds]
<havenwood> milardovich: length = 5; value = 0; Array.new(length) { value }
jonathanwallace has joined #ruby
tommyvyo has quit [Quit:]
Mon_Ouie has quit [Ping timeout: 245 seconds]
cads has joined #ruby
<milardovich> havenwood, I don't catch it
DrShoggoth has joined #ruby
cj3kim has joined #ruby
instinkt has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
blitz has quit [Quit: This computer has gone to sleep]
slainer68 has quit [Remote host closed the connection]
fomatin has quit [Quit: Computer has gone to sleep.]
cads has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
vwoo has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
shykes has joined #ruby
vwoo has joined #ruby
cj3kim has quit [Ping timeout: 252 seconds]
eka has quit [Quit: Computer has gone to sleep.]
jim_r0x has joined #ruby
dhruvasagar has joined #ruby
shykes has left #ruby ["Leaving..."]
tylersmith has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 260 seconds]
orien has joined #ruby
beilabs_ has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
ntus1017 has quit [Remote host closed the connection]
instinkt has quit [Quit: leaving]
myappleguy has quit [Quit: Leaving.]
rsahae_ has quit [Quit: rsahae_]
RORgasm has joined #ruby
fandikurnia01 has quit [Ping timeout: 252 seconds]
radic__ has joined #ruby
burlyscudd has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 276 seconds]
burlyscudd has quit [Ping timeout: 276 seconds]
Vert has quit [Remote host closed the connection]
beilabs_ has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
DomKM has quit [Quit: Leaving.]
gildo has quit [Ping timeout: 260 seconds]
braincra- has joined #ruby
srji has joined #ruby
dankest has joined #ruby
braincrash has quit [Ping timeout: 256 seconds]
<milardovich> Is there any "native" function to convert binary numbers to decimal?
adkron__ has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
slainer68 has joined #ruby
bionhart has quit [Remote host closed the connection]
<arubin> milardovich: "1001".to_i(2) #=> 9
<milardovich> arubin, ohh thank you!
bionhart has joined #ruby
<milardovich> arubin, what does the (2) mean?
<arubin> The base.
<arubin> 2 is binary.
<milardovich> Oh I understand
<arubin> Compare with:
<arubin> "11".to_i(16)
<arubin> => 17
osvico has joined #ruby
<milardovich> I see
bionhart has quit [Remote host closed the connection]
x1337807x has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
srji has quit [Ping timeout: 248 seconds]
bionhart has joined #ruby
jonahR has quit [Quit: jonahR]
nettoweb has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
werdnativ has quit [Quit: werdnativ]
Nisstyre-laptop has joined #ruby
werdnativ has joined #ruby
Nisstyre-laptop is now known as Nisstyre
synthetix has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
MrZYX is now known as MrZYX|off
pitzips has joined #ruby
beilabs_ has quit [Ping timeout: 240 seconds]
Levin_22 has joined #ruby
adkron has joined #ruby
pootler_ has quit [Ping timeout: 256 seconds]
pootler__ has quit [Ping timeout: 260 seconds]
kenneth has quit [Quit: kenneth]
pootler_ has joined #ruby
fixl has joined #ruby
pitzips has quit [Quit: Leaving]
bigmac is now known as i8igmac
kofno has joined #ruby
beilabs_ has joined #ruby
pootler_ has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mduvall has quit [Quit: mduvall]
bionhart has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
lewix has quit [Remote host closed the connection]
Opettaja has joined #ruby
hadees has quit [Quit: hadees]
vlad_starkov has quit [Ping timeout: 256 seconds]
falkoner has joined #ruby
machuga is now known as machuga|away
<robert_> so if I'm in the middle of a .class_eval or .instance_eval, how do I access what's "outside" of the (class|instance)_eval, or do I?
<banisterfiend> robert_: well it's a closure so you can access locals
nettoweb has quit [Quit: nettoweb]
<robert_> hm, but all the locals are coming up nil.
<robert_> hold and I'll codepad it.
nettoweb has joined #ruby
Guga_ has joined #ruby
BSaboia has joined #ruby
falkoner has left #ruby [#ruby]
<robert_> banisterfiend: http://codepad.org/PbqCwdDI
_Renegade has joined #ruby
burlyscudd has joined #ruby
<banisterfiend> robert_: that's due to methods creating a new scope
<banisterfiend> nothing to do with the instance_eval
<banisterfiend> x = 10; def hello; x; end; #=> wrong
<banisterfiend> 'x' is not accessible inside hello
<robert_> oh
cj3kim has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
jimg has joined #ruby
bklang is now known as Acidtrux
<robert_> OKAY, so there's an eeeensy teeeeensy flaw with my logic :p
burlyscudd has quit [Ping timeout: 264 seconds]
timkohrumel has joined #ruby
i_s has quit [Quit: i_s]
adkron has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Remote host closed the connection]
charliesome has joined #ruby
mklappstuhl has joined #ruby
nari has joined #ruby
_Renegade has quit [Quit: _Renegade]
jfelchner has quit [Quit: jfelchner]
vilni has joined #ruby
mklappstuhl has quit [Ping timeout: 276 seconds]
<milardovich> heftig, are you still there?
Emmanuel_Chanel has quit [Quit: Leaving]
vilni has quit [Client Quit]
<heftig> milardovich: hm?
<heftig> not for long
<milardovich> heftig, I'm just having problems with the random choose
<milardovich> I have a multidimensional array which is like [[0,0.10],[1,0.10],[2,0.80]]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<milardovich> The first element is an integer and the second one is the probability which that number has to be chosen
<heftig> right
<milardovich> I tried your script but somehow I don't figure it out how to do it work
fomatin has joined #ruby
<heftig> with "a" being the array,
sam113101 has quit [Ping timeout: 264 seconds]
<heftig> target = rand; a.find { |x, weight| target -= weight; target < 0 }.first
<milardovich> Let me see
<heftig> or as a method:
<heftig> def wrand(a); target = rand; a.find { |x, weight| target -= weight; target < 0 }.first; end
<milardovich> It just returns me 0 in all the cases
nettoweb has quit [Quit: nettoweb]
<heftig> milardovich: code snippet?
<milardovich> Yes, one moment please
nettoweb has joined #ruby
<heftig> >> a = [[0,0.10],[1,0.10],[2,0.80]]; 20.times.map { target = rand; a.find { |x, weight| target -= weight; target < 0 }.first }
<eval-in> heftig => [0, 0, 2, 0, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2] (https://eval.in/33609)
<heftig> >> a = [[0,0.10],[1,0.10],[2,0.80]]; 20.times.map { target = rand; a.find { |x, weight| target -= weight; target < 0 }.first }
<eval-in> heftig => [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] (https://eval.in/33610)
<heftig> >> a = [[0,0.10],[1,0.10],[2,0.80]]; 20.times.map { target = rand; a.find { |x, weight| target -= weight; target < 0 }.first }
<eval-in> heftig => [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] (https://eval.in/33611)
lusory has joined #ruby
x1337807x has joined #ruby
<heftig> milardovich: those probabilities aren't normalized
<milardovich> Mmm is there something wrong in my array? its values are randomly generated, but I don't see the problem
<milardovich> heftig, what you mean? should I round the numbers?
<heftig> if you use the float version of the code, the probabilities need to sum to 1
<milardovich> Ohhh I see
<milardovich> heftig, now it works perfectly
<milardovich> Thank you very much! :D
srji has joined #ruby
icole has joined #ruby
jimg has quit [Remote host closed the connection]
synthetix has quit [Ping timeout: 245 seconds]
<robert_> okay, so THIS is something I don't get- I try to .each() on a hash, I get nil:NilClass, if I .each_with_pair() on the same instance, I get a NoMethodError.
sam113101 has joined #ruby
<milardovich> heftig, just one question more, why it gives me 0s when I use it more than one time inside a block?
<heftig> huh?
<heftig> milardovich: target = rand; has to be repeated every time
<milardovich> Ohhh
<milardovich> I see
<robert_> banisterfiend: still here?
<banisterfiend> sup
havenwood has joined #ruby
freerobby has joined #ruby
gsvolt has joined #ruby
<robert_> I have an @instance of something that gives me either nil:NilClass or NoMethodError, depending on whether I .each or .each_with_pair (respectively) o.O
<banisterfiend> .each_with_pair isn't a method
<banisterfiend> robert_: you need to use more pry :)
<robert_> .. oh. oops.
<robert_> .each_pair
<robert_> derp
<robert_> yeah, I was using .each_pair
nettoweb has quit [Quit: nettoweb]
kasper has joined #ruby
deadalus has quit [Excess Flood]
srji has quit [Ping timeout: 248 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deadalus has joined #ruby
bionhart has joined #ruby
dmiller has quit [Remote host closed the connection]
<robert_> banisterfiend: http://codepad.org/eRDXNco5
<robert_> and, more pry?
Michae___ has quit [Remote host closed the connection]
<banisterfiend> robert_: each_pair is not a method on Array
<banisterfiend> you probably want each_slice(2)
<robert_> buuut this happens when I change it just slightly
<banisterfiend> robert_: why are you writing ruby code that looks like java anyway
<banisterfiend> ? :)
BSaboia has quit [Ping timeout: 276 seconds]
<banisterfiend> robert_: also, why are you using hard tabs?
<banisterfiend> i have no idea what's changed between those two without any kind of diff
<banisterfiend> also it's 6am here, i need to sleep
<banisterfiend> goodluck! :)
<robert_> thanks, heh
<robert_> night
zastern has quit [Remote host closed the connection]
lewix has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
mduvall has joined #ruby
Tawnii has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
blitz has joined #ruby
vlad_starkov has joined #ruby
osvico has quit []
jonahR has joined #ruby
falkoner has joined #ruby
johnrliv_ has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
kil0byte has joined #ruby
johnrlive has quit [Read error: Operation timed out]
jesly has quit [Quit: Leaving.]
rupee has quit [Quit: Leaving]
jesly has joined #ruby
ssvo has quit [Ping timeout: 252 seconds]
Guga_ has quit [Quit: ~]
butblack has joined #ruby
DomKM has joined #ruby
jesly has quit [Client Quit]
ssvo has joined #ruby
jimg has joined #ruby
RORgasm has joined #ruby
dmiller has quit [Remote host closed the connection]
burlyscudd has joined #ruby
kasper has quit [Remote host closed the connection]
jim_r0x has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Ping timeout: 264 seconds]
falkoner has left #ruby [#ruby]
jimg has quit [Ping timeout: 240 seconds]
<milardovich> I have an array with 1s and 0s which I then use to convert it to decimal values. The array in fact is like [[0,0,0],[0,0,1],[0,1,0]]... and I would need to order it. How can I do that? the problem is that each 0 and 1 is an element of the array, I don't know if you understand what I mean
Emmanuel_Chanel has joined #ruby
johnrliv_ has quit [Remote host closed the connection]
sam113101 has quit [Quit: WeeChat 0.4.0]
yshh has quit [Remote host closed the connection]
sam113101 has joined #ruby
Levin_22 has quit [Quit: Levin_22]
luckyruby has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
johnrlive has joined #ruby
banghouse has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
larissa has quit [Quit: Leaving]
orien has quit [Quit: Computer has gone to sleep.]
OnyxDragoon has quit [Remote host closed the connection]
butblack has quit [Quit: butblack]
i8igmac has quit [Quit: Leaving]
teedex has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
teedex_ has joined #ruby
jimg has joined #ruby
bionhart has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
spacebug_ has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
spacebug has quit [Read error: Connection reset by peer]
teedex has quit [Ping timeout: 252 seconds]
jimg has quit [Ping timeout: 245 seconds]
johnrliv_ has joined #ruby
devoldmx has joined #ruby
nari has quit [Ping timeout: 268 seconds]
bionhart has joined #ruby
jonahR has quit [Quit: jonahR]
fomatin has joined #ruby
<robert_> I have an array of hashes; I want to sort by one of the hash keys, how best would I do this?
eldariof has joined #ruby
johnrlive has quit [Read error: Operation timed out]
butblack has quit [Quit: butblack]
Sherwyn has joined #ruby
srji has joined #ruby
ged has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
postmodern has joined #ruby
ged has joined #ruby
moshee has joined #ruby
jenrzzz has joined #ruby
Michae___ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
johnrliv_ has quit [Remote host closed the connection]
matthewalr has joined #ruby
macmartine has joined #ruby
kil0byte has quit [Remote host closed the connection]
Michae___ has quit [Ping timeout: 246 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
<matthewalr> Anyone on that's familiar with rbvmomi?
srji has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
burlyscudd has joined #ruby
bm34 has joined #ruby
amh345 has joined #ruby
<amh345> hi guys. i'd like to check for a file every x seconds. everything I'm finding pertains to rails and poll for changes. anything in ruby?
<amh345> maybe just a straight up timer?
<macmartine> a loop with a sleep?
jaredrhine has quit [Read error: Operation timed out]
burlyscudd has quit [Ping timeout: 252 seconds]
jaredrhine has joined #ruby
nari has joined #ruby
bionhart has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
<amh345> that could work. i guess i'd need a cron or something.
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
aedornm has joined #ruby
falk_ has joined #ruby
orien has joined #ruby
ttt has joined #ruby
ttt has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
BrianJ has quit [Quit: Computer has gone to sleep.]
hoyang has joined #ruby
freerobby has quit [Quit: Leaving.]
<macmartine> what's the context?
<amh345> i want to push a file to a usb stick.
<amh345> when the file is written, push to stick.
<amh345> some steps in between there. but that's essentially it.
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
sayan has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
lsone has quit [Read error: No route to host]
<macmartine> background job?
falk_ has quit [Remote host closed the connection]
joelteon has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
LarsSmit has joined #ruby
dcope has joined #ruby
dcope has quit [Changing host]
macmartine has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Read error: Operation timed out]
jenrzzz has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
joelteon has joined #ruby
tatsuya_o has joined #ruby
three18ti has quit [Read error: Connection reset by peer]
three18ti has joined #ruby
three18ti has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 252 seconds]
advorak has joined #ruby
GeissT_ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
three18ti has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
ffio_ has joined #ruby
GeissT has quit [Ping timeout: 245 seconds]
ffio has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
araujo has quit [Quit: Leaving]
Jackneill has joined #ruby
ezkl has quit [Ping timeout: 252 seconds]
ezkl` has joined #ruby
ezkl` has quit [Max SendQ exceeded]
mansi has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
Nisstyre has quit [Quit: Leaving]
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
ehaliewicz has joined #ruby
johnrlive has joined #ruby
vlad_starkov has quit [Ping timeout: 268 seconds]
philcrissman_ has joined #ruby
brennanMKE has joined #ruby
ayaz has joined #ruby
eldariof has quit [Ping timeout: 268 seconds]
pootler_ has joined #ruby
RORgasm has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
burlyscudd has joined #ruby
johnrlive has quit [Read error: Operation timed out]
orien has quit [Quit: Computer has gone to sleep.]
teedex_ has quit [Remote host closed the connection]
pootler__ has joined #ruby
zmike123 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
tw1sted has joined #ruby
teedex has joined #ruby
jimg has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
persand has joined #ruby
fandikurnia01 has joined #ruby
srji has joined #ruby
osvico has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
timkohrumel has quit [Remote host closed the connection]
cdelo has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
joelteon has quit [Ping timeout: 248 seconds]
LarsSmit has quit [Quit: Leaving.]
mduvall has quit [Quit: mduvall]
GeissT_ has quit [Ping timeout: 256 seconds]
icole_ has joined #ruby
persand has quit [Quit: persand]
icole_ has quit [Remote host closed the connection]
icole has quit [Ping timeout: 276 seconds]
srji has quit [Ping timeout: 248 seconds]
matthewalr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LarsSmit has joined #ruby
tommyvyo has quit [Quit:]
joelteon has joined #ruby
Guest__ has joined #ruby
three18ti has quit [Ping timeout: 264 seconds]
nopoliti1a has quit [Ping timeout: 264 seconds]
subbyyy_ has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
rezzack has quit [Quit: Leaving.]
three18ti has joined #ruby
burlyscudd has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
redgirl_ has quit [Quit: This computer has gone to sleep]
JumpMast3r has joined #ruby
ehaliewicz has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Ping timeout: 256 seconds]
dash_ has joined #ruby
w400z has joined #ruby
werdnativ has quit [Quit: werdnativ]
cads has joined #ruby
tspike has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
rjnienaber has joined #ruby
<robert_> weird; a class isn't a kind_of? itself.
icole has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
keep has joined #ruby
<apeiros> robert_: hu? it'd be weird if a class was a kind_of? itself…
<apeiros> it'd mean that a class would have all instance methods as class methods too
<apeiros> (and some other curiosities which make little sense)
Davey has joined #ruby
vlad_starkov has joined #ruby
<robert_> well I'm trying to filter out some base class, because running checks against it causes exceptions, lol
philcrissman_ has quit [Remote host closed the connection]
ericmathison has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
mduvall has joined #ruby
icole has quit [Ping timeout: 246 seconds]
akashj87 has joined #ruby
cj3kim has quit [Remote host closed the connection]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
pootler_ has quit [Ping timeout: 240 seconds]
johnrlive has joined #ruby
pootler__ has quit [Ping timeout: 264 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
atno has quit [Remote host closed the connection]
atno__ has quit [Remote host closed the connection]
Dave has joined #ruby
Dave is now known as Guest44200
dcope has quit [Remote host closed the connection]
teedex_ has joined #ruby
timonv has joined #ruby
dangerousdave has quit [Ping timeout: 268 seconds]
alekst has joined #ruby
teedex has quit [Ping timeout: 240 seconds]
atno has joined #ruby
DomKM has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
jimg has quit [Ping timeout: 260 seconds]
milardovich has quit [Quit: Leaving]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
rjnienaber has quit [Quit: Leaving]
jacobw has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
mansi has joined #ruby
timkohrumel has joined #ruby
tspike has quit [Ping timeout: 240 seconds]
mduvall has quit [Quit: mduvall]
mansi has quit [Ping timeout: 240 seconds]
tw1sted has quit [Quit: tw1sted]
huoxito has quit [Quit: Leaving]
macuser has joined #ruby
timkohrumel has quit [Ping timeout: 252 seconds]
macuser is now known as Guest49113
alekst has joined #ruby
tomzx_mac has quit [Ping timeout: 268 seconds]
hogeo has joined #ruby
srji has joined #ruby
timonv has quit [Remote host closed the connection]
aetaric has quit [Ping timeout: 260 seconds]
teedex_ has quit [Remote host closed the connection]
advorak has quit [Quit: Leaving.]
pyrac has joined #ruby
greenarrow has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
teedex has joined #ruby
aetaric has joined #ruby
burlyscudd has joined #ruby
teedex_ has joined #ruby
hogeo_ has joined #ruby
Guest__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teedex_ has quit [Remote host closed the connection]
cha1tanya has quit [Ping timeout: 252 seconds]
hogeo has quit [Ping timeout: 268 seconds]
burlyscudd has quit [Ping timeout: 260 seconds]
teedex has quit [Ping timeout: 276 seconds]
srji has quit [Ping timeout: 248 seconds]
fandikurnia01 has quit [Ping timeout: 246 seconds]
ixx has quit [Ping timeout: 255 seconds]
ixx has joined #ruby
ixx is now known as Guest28111
jesly has joined #ruby
Guest__ has joined #ruby
jesly1 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
jesly has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
pencilcheck has quit [Read error: Connection reset by peer]
pen has joined #ruby
codecop has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
niklasb has joined #ruby
icole has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
icole has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
RORgasm has joined #ruby
johnrlive has joined #ruby
RylaiC has quit [Excess Flood]
RylaiC has joined #ruby
ferr has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
RORgasm has quit [Ping timeout: 276 seconds]
adambeynon has joined #ruby
niklasb has quit [Ping timeout: 256 seconds]
ccheney has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
srji has joined #ruby
jesly1 has quit [Ping timeout: 252 seconds]
ferr has quit [Ping timeout: 276 seconds]
kenmaz has joined #ruby
jimg has joined #ruby
ijust_mb_ has joined #ruby
luckyruby has quit [Remote host closed the connection]
kofno has joined #ruby
ijust_mb_ has left #ruby [#ruby]
tvw has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
yshh has joined #ruby
tatsuya_o has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
orien has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Ping timeout: 268 seconds]
keep has left #ruby [#ruby]
orien has quit [Ping timeout: 264 seconds]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
pontiki has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
pontiki has joined #ruby
cj3kim has joined #ruby
icco has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
icco has joined #ruby
<Brando753> Does anyone know a way to combine a bunch of PDF's into a single PDF using ruby?
poga has joined #ruby
kenmaz has quit [Read error: Connection reset by peer]
Peej has joined #ruby
RylaiC has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Ping timeout: 252 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
Rizzle has quit [Ping timeout: 240 seconds]
L8D has joined #ruby
<L8D> How can I quickly create an array of 0's?
<L8D> At any length I'd want
rickruby has quit [Remote host closed the connection]
tacos1de has joined #ruby
<L8D> i = []
Guest49113 has quit [Remote host closed the connection]
<Hanmac1> L8D like that?
<Hanmac1> >> Array.new(5,0)
<eval-in> Hanmac1 => [0, 0, 0, 0, 0] (https://eval.in/33622)
Hanmac1 is now known as Hanmac
axsuul has joined #ruby
<L8D> Hanmac: That is perfect
<L8D> I was typing something out...
<L8D> Thanks
redgirl has joined #ruby
cj3kim has quit [Remote host closed the connection]
<L8D> Also, is there any syntax shortcuts for the whole "def x; return @x; end; def x=(v); @x = v; end" when dealing with classes
<Hanmac> L8D you mean attr_accessor ?
* L8D looks up attr_accessor
dcunit3d has joined #ruby
<L8D> Perfect thanks. I assumed there was one because that's the ruby way...Damn, ruby is awesome.
icco has quit [Ping timeout: 256 seconds]
<L8D> .gsub(/awesome/, "sexy")
RylaiC has joined #ruby
icco has joined #ruby
<L8D> .gsub /{(|)}/, " "
mahmoudimus has joined #ruby
sepp2k has joined #ruby
jimg has quit [Remote host closed the connection]
axsuul has quit [Quit: axsuul]
vlad_starkov has joined #ruby
krisfremen has quit [Ping timeout: 248 seconds]
icole has joined #ruby
Rizzle has joined #ruby
srji has quit [Quit: leaving]
Rizzle has quit [Read error: Connection reset by peer]
dankest has quit [Quit: Leaving...]
lusory has quit [Quit: leaving]
h8R has quit [Quit: Leaving]
tonini has joined #ruby
nomenkun has joined #ruby
Rizzle has joined #ruby
eka has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
guardian has left #ruby [#ruby]
icole has quit [Ping timeout: 256 seconds]
LennyLinux has joined #ruby
h8R has joined #ruby
roadt has joined #ruby
icco has quit [Ping timeout: 255 seconds]
johnrlive has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
icco has joined #ruby
krisfremen has joined #ruby
krisfremen has joined #ruby
LarsSmit has quit [Quit: Leaving.]
slainer68 has joined #ruby
h8R has quit [Ping timeout: 264 seconds]
ezkl has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
slainer68 has quit [Ping timeout: 260 seconds]
kasper has joined #ruby
kaichanvong_ has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
codecop has quit [Quit: Išeinu]
bamdad has joined #ruby
lusory has joined #ruby
<L8D> Is there something in ruby that will let me convert an int to a character
<L8D> ascii
dangerousdave has joined #ruby
<Mon_Ouie> Integer#chr
<Mon_Ouie> >> 50.chr
<eval-in> Mon_Ouie => "2" (https://eval.in/33623)
ferdev has quit [Ping timeout: 241 seconds]
eldariof has joined #ruby
vlad_starkov has joined #ruby
icco has quit [Ping timeout: 252 seconds]
Guest44200 has quit [Ping timeout: 260 seconds]
<L8D> Mon_Ouie: thanks
Dave has joined #ruby
icco has joined #ruby
Dave is now known as Guest5681
ferdev has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
teddyp1cker has joined #ruby
ffio_ has quit [Ping timeout: 252 seconds]
<L8D> Harder question: Is there a way to get a single character from input, like getc
<ezkl> IO.getc
dangerousdave has quit [Ping timeout: 252 seconds]
<ezkl> er
<Mon_Ouie> Depends on what you want. You don't want to have to wait for the user to hit the return key I assume?
<Mon_Ouie> If it doesn't matter, then #getc does work
cascalheira has joined #ruby
danslo has quit [Quit: danslo]
<L8D> I'm okay with the wait for the return key
<Mon_Ouie> Otherwise you can require 'io/console' and use IO#getch (notice the 'h')
s00pcan_ has quit [Ping timeout: 255 seconds]
jimg has joined #ruby
kofno has joined #ruby
tonini has joined #ruby
<ezkl> UNIX, pipes, I/O … such glorious things.
Apane has quit [Ping timeout: 276 seconds]
s00pcan has joined #ruby
jimg has quit [Ping timeout: 245 seconds]
MrZYX|off is now known as MrZYX
kofno has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
hoyang has quit [Excess Flood]
tonini has quit [Ping timeout: 248 seconds]
Guest5681 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
WiseBell has joined #ruby
cj3kim has joined #ruby
hoyang has joined #ruby
braoru has joined #ruby
b_ has joined #ruby
b_ has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
lewix_ has joined #ruby
lewix has quit [Ping timeout: 245 seconds]
WiseBell has quit [Client Quit]
tatsuya_o has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 252 seconds]
teedex has joined #ruby
lewix_ is now known as lewiz
burlyscudd has quit [Ping timeout: 264 seconds]
lewiz is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
pen has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
pen has joined #ruby
<L8D> Has there been some kind of change I don't know about? I get a TypeError when calling .new on a class
tonini has joined #ruby
gasbakid has joined #ruby
nomenkun has quit [Remote host closed the connection]
<sevenseacat> ?
<sevenseacat> code?
timonv has joined #ruby
xardas has joined #ruby
<L8D> class Thing; attr_accessor :test; def initialize;@test="";end;end
<L8D> Thing.new causes TypeError
<L8D> `new': allocator undefined for Data (TypeError)
<L8D> :s/Data/Thing
Guest__ has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> fake code, my favorite type.
<L8D> Oh wait...
<L8D> Found my problem...There is a built-in type named "Data"
<L8D> Which is what I've been using
tonini has quit [Ping timeout: 248 seconds]
Proshot has joined #ruby
bamdad has quit [Quit: bamdad]
Astralum has joined #ruby
pen has quit [Remote host closed the connection]
rickruby has joined #ruby
obs has joined #ruby
tatsuya_o has joined #ruby
teedex_ has joined #ruby
icole has joined #ruby
northelks_ has joined #ruby
rickruby has quit [Ping timeout: 240 seconds]
teedex has quit [Ping timeout: 240 seconds]
icole has quit [Ping timeout: 260 seconds]
danslo has joined #ruby
postmodern has joined #ruby
cj3kim has quit [Remote host closed the connection]
RORgasm has joined #ruby
johnrlive has joined #ruby
RORgasm has quit [Ping timeout: 252 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
teedex_ has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 268 seconds]
mikewintermute has joined #ruby
visof has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
daniel-s__ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
heftig has joined #ruby
emergion has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
kasper has quit [Remote host closed the connection]
marr has joined #ruby
daniel-s has quit [Ping timeout: 256 seconds]
tatsuya_o has joined #ruby
tonini has joined #ruby
L8D has left #ruby [#ruby]
kasper has joined #ruby
teedex has joined #ruby
kzrl has quit [Read error: Connection reset by peer]
bamdad has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
jimg has joined #ruby
teedex has quit [Remote host closed the connection]
DonRichie has joined #ruby
tatsuya_o has joined #ruby
kzrl has joined #ruby
eldariof has quit [Ping timeout: 240 seconds]
hoyang has quit [Quit: 离开]
tatsuya_o has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 268 seconds]
ToApolytoXaos has joined #ruby
verto has joined #ruby
kaichanvong has joined #ruby
akashj87_ has joined #ruby
stef_204 has joined #ruby
Guest___ has joined #ruby
akashj87 has quit [Ping timeout: 264 seconds]
mrdtt has joined #ruby
kaichanvong_ has quit []
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
burlyscudd has joined #ruby
heftig has quit [Quit: Quitting]
heftig has joined #ruby
Dave has joined #ruby
Dave is now known as Guest3943
Matip has quit [Ping timeout: 276 seconds]
Astralum has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
elaptics is now known as elaptics`away
gommo has joined #ruby
wchun has quit [Ping timeout: 264 seconds]
bamdad has quit [Quit: bamdad]
nomenkun has joined #ruby
icole has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
icole has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 245 seconds]
johnrlive has joined #ruby
slainer68 has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
h8R has joined #ruby
_veer has quit [Read error: Connection reset by peer]
LarsSmit has joined #ruby
heftig has quit [Quit: Quitting]
robustus has quit [Ping timeout: 248 seconds]
nettoweb has quit [Read error: Connection reset by peer]
gommo has quit [Remote host closed the connection]
gommo has joined #ruby
robustus has joined #ruby
verto has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
Alina-malina has quit [Ping timeout: 268 seconds]
mikewintermute has quit [Quit: mikewintermute]
gommo has quit [Ping timeout: 256 seconds]
jimg has joined #ruby
Alina-malina has joined #ruby
araujo has joined #ruby
Guest3943 has quit [Ping timeout: 256 seconds]
jimg has quit [Ping timeout: 240 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
cascalheira has quit [Read error: Connection reset by peer]
cascalheir has joined #ruby
Jackneill_ has joined #ruby
Jackneill has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
Michae___ has joined #ruby
aspiers has joined #ruby
nettoweb has joined #ruby
burlyscudd has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
bm34 has quit [Quit: leaving]
aqil has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
spider-mario has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
rayfinkle has quit [Read error: Operation timed out]
SirFunk has quit [Read error: Operation timed out]
SirFunk has joined #ruby
rayfinkle has joined #ruby
browndawg has joined #ruby
slainer6_ has joined #ruby
cascalheira has joined #ruby
emergion has joined #ruby
ayaz has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 276 seconds]
gasbakid has quit [Ping timeout: 260 seconds]
cascalheir has quit [Ping timeout: 268 seconds]
heftig has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
slainer6_ has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
Guga_ has joined #ruby
icole has joined #ruby
slainer68 has joined #ruby
banisterfiend has quit [Remote host closed the connection]
kenneth has joined #ruby
icole has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
danslo has quit [Quit: danslo]
platzhirsch1 has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
kirun has joined #ruby
johnrlive has joined #ruby
RORgasm has quit [Read error: Operation timed out]
platzhirsch has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
AlbireoX_ has quit [Read error: Operation timed out]
AlbireoX`Laptop has joined #ruby
platzhirsch has quit [Client Quit]
AlbireoX has quit [Read error: Operation timed out]
platzhirsch has joined #ruby
nettoweb has quit [Quit: nettoweb]
dv__ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
spike|spiegel has quit [Quit: WeeChat 0.4.1]
dv_ has quit [Ping timeout: 252 seconds]
BizarreCake has joined #ruby
DestinyAwaits has joined #ruby
kidoz has joined #ruby
heftig has quit [Quit: Quitting]
decoponio has quit [Quit: Leaving...]
heftig has joined #ruby
heftig has quit [Client Quit]
arya has joined #ruby
heftig has joined #ruby
Guest___ has quit [Quit: Textual IRC Client: www.textualapp.com]
blaxter has joined #ruby
osvico has joined #ruby
platzhirsch1 has joined #ruby
platzhirsch has quit [Quit: Leaving.]
beilabs_ has quit [Ping timeout: 252 seconds]
kasper has quit [Remote host closed the connection]
morf has joined #ruby
burlyscudd has joined #ruby
ferr has joined #ruby
gildo has joined #ruby
Guest___ has joined #ruby
burlyscudd has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
kasper has joined #ruby
beilabs_ has joined #ruby
jinie_ is now known as jinie
LennyLinux has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
cascalheira has quit [Quit: Leaving...]
fomatin has joined #ruby
LennyLinux has joined #ruby
Proshot is now known as statarb3
jimg has joined #ruby
DestinyAwaits has quit [Read error: Connection reset by peer]
h8R has quit [Ping timeout: 276 seconds]
DestinyAwaits has joined #ruby
h8R has joined #ruby
DestinyAwaits has quit [Read error: Connection reset by peer]
DestinyAwaits has joined #ruby
danslo has joined #ruby
icole has joined #ruby
statarb3 has quit [Quit: Leaving]
w400z has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
spider-mario has quit [Read error: Connection reset by peer]
w400z has quit [Client Quit]
dash_ has quit [Quit: Time to beer :)]
jbpros has joined #ruby
cj3kim has joined #ruby
nettoweb has joined #ruby
zorbash has joined #ruby
razi has joined #ruby
icole has quit [Ping timeout: 245 seconds]
LennyLinux has quit [Remote host closed the connection]
hadees has joined #ruby
Hanmac1 has joined #ruby
zorbash has quit [Client Quit]
emergion has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
spider-mario has joined #ruby
LennyLinux has joined #ruby
F1skr has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
DestinyAwaits has quit [Read error: Connection reset by peer]
DestinyAwaits has joined #ruby
echevemaster has quit [Ping timeout: 252 seconds]
Jackneill_ has quit [Quit: Leaving]
nettoweb has joined #ruby
Jackneill has joined #ruby
cj3kim has quit [Remote host closed the connection]
timonv has joined #ruby
spike|spiegel has joined #ruby
nettoweb has quit [Client Quit]
DestinyAwaits is now known as Guest33748
DestinyAwaits has joined #ruby
Guest33748 has quit [Ping timeout: 268 seconds]
h22 has joined #ruby
<h22> Can I understand what lazy eval is, with ruby?
ARCADIVS has quit [Quit: WeeChat 0.3.8]
<Xeago> h22: not sure if I understand the question, buy lazy evaluation is certainly possible in ruby
daniel_- has joined #ruby
<Xeago> def expensive_task; @expensive_task ||= do_expensive_task; end
aqil has quit [Quit: Ухожу я от вас]
kofno has quit [Remote host closed the connection]
qrf has joined #ruby
<qrf> Uhm did the gem install behaviour change?
<Xeago> we call this differently in ruby though
<qrf> Apparently root gem install no longer sets it up globally
<qrf> What do I do to do that now? I need this gem for 20+ accounts
<h22> Xeago: I was asking if lazy eval was simple enough in ruby that I'll understand it. I don't really know what lazy eval is.. just found many people mentioning it.
<h22> Xeago: I think I understand now, Thank you :)
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
obs has quit [Quit: Konversation terminated!]
agjacome has joined #ruby
m_3 has quit [Remote host closed the connection]
atno has quit [Ping timeout: 276 seconds]
philcrissman_ has joined #ruby
cascalheira has joined #ruby
arya has quit [Ping timeout: 248 seconds]
vadelius has left #ruby ["Leaving"]
workmad3 has joined #ruby
nettoweb has joined #ruby
atno has joined #ruby
<Banistergalaxy> H22 maybe you mean lazy enumerable?
arya has joined #ruby
johnrlive has joined #ruby
m_3 has joined #ruby
_Renegade has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
<h22> Banistergalaxy: No. I was looking for lazy eval. But I did come across the new Enumerable::lazy class, when googling for lazy eval.. I suppose it is new in 2.0, because I haven't seen it before.
<Banistergalaxy> Yeah
sambao21 has joined #ruby
<Banistergalaxy> Well that's a more meaningful realization of lazy evaluation than just ||=
fomatin has quit [Quit: Computer has gone to sleep.]
<h22> Banistergalaxy: Can you direct me to a tut or something that shows how it is used for real?
hogeo has joined #ruby
sailias has joined #ruby
<h22> Banistergalaxy: I already see what it does, from here : http://patshaughnessy.net/2013/4/3/ruby-2-0-works-hard-so-you-can-be-lazy
workmad3 has quit [Read error: Operation timed out]
burlyscudd has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
hogeo_ has quit [Ping timeout: 252 seconds]
jinie is now known as jinie_
arietis has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
burlyscudd has quit [Ping timeout: 240 seconds]
Randomage has quit [Quit: Randomage]
blaxter has quit [Ping timeout: 245 seconds]
qrf has left #ruby [#ruby]
danslo has quit [Quit: danslo]
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
jimg has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
dash_ has joined #ruby
icole has joined #ruby
RyanD has joined #ruby
arietis has joined #ruby
jimg has quit [Ping timeout: 260 seconds]
ntus1017 has joined #ruby
adkron has joined #ruby
emergion has joined #ruby
fomatin has joined #ruby
scrollback has quit [Remote host closed the connection]
arya has quit []
scrollback has joined #ruby
icole has quit [Ping timeout: 252 seconds]
aryaLovesJoel has joined #ruby
RORgasm has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
r0bgleeson has quit [Read error: Connection reset by peer]
Guest___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guedes has joined #ruby
Guedes has joined #ruby
r0bgleeson has joined #ruby
LanaDelRey has joined #ruby
RORgasm has quit [Ping timeout: 252 seconds]
Cyrus has joined #ruby
ChristianS has quit [Excess Flood]
h22 has left #ruby [#ruby]
ChristianS has joined #ruby
devoldmx3 has joined #ruby
cj3kim has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
visof has quit [Quit: Leaving]
cj3kim has quit [Remote host closed the connection]
thams has joined #ruby
allsystemsarego has quit [Quit: Leaving]
banisterfiend has joined #ruby
pskosinski has joined #ruby
bsaboia_ has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
emergion has quit [Quit: Computer has gone to sleep.]
cj3kim has joined #ruby
blitzkev has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
cj3kim has quit [Remote host closed the connection]
blitz has quit [Read error: Connection reset by peer]
aryaLovesJoel has quit [Ping timeout: 248 seconds]
akashj87__ has joined #ruby
denver has joined #ruby
aryaLovesJoel has joined #ruby
cj3kim has joined #ruby
akashj87_ has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
anderson has joined #ruby
sailias has joined #ruby
Guest____ has joined #ruby
adkron has quit [Ping timeout: 260 seconds]
Mo0O has joined #ruby
Mattix has joined #ruby
LanaDelRey has quit [Quit: Leaving]
akashj87 has joined #ruby
akashj87__ has quit [Ping timeout: 245 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
<Mo0O> hello, when I run `bundle install` it allways return me 'Make sure that `gem install <a_gem>` succeeds before bundling. is there a way to tell bundle install all required gems ?
<Morrolan> That happens if installation of one of the required gems fails. `gem install gemname` should provide an error message which might help.
aryaLovesJoel has quit []
thams has quit [Quit: thams]
<Mo0O> Morrolan: yes, I understand that, but is there a way to make it automaticly ?
<Morrolan> Installation of the gem failed, Mo0O, what should it be doing automatically?
aryaLovesJoel has joined #ruby
<Morrolan> Try to install and fail again? :)
freerobby has joined #ruby
jbpros has quit [Quit: jbpros]
<Mo0O> if I install the gem with `gem install <a_gem>` it doesn't fail
<sevenseacat> with the same gem version?
<Mo0O> yes
<sevenseacat> do you have an actual example?
banisterfiend has quit [Remote host closed the connection]
<Mo0O> gollum
<Mo0O> I prepare you a paste
asgardBSD has joined #ruby
devoldmx has joined #ruby
burlyscudd has joined #ruby
<Mo0O> sevenseacat: http://sprunge.us/GiUa
devoldmx3 has quit [Ping timeout: 246 seconds]
<Mo0O> I put some space to make it more clear
casheew has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 240 seconds]
casheew has joined #ruby
ellipse has joined #ruby
Michae___ has quit [Remote host closed the connection]
func_reload has joined #ruby
dash_ has quit [Quit: Time to beer :)]
texanos has joined #ruby
texanos has left #ruby [#ruby]
aryaLovesJoel has quit [Ping timeout: 245 seconds]
jesly has joined #ruby
razi has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
nfk has quit [Quit: yawn]
yashshah has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
homelinen has quit [Ping timeout: 252 seconds]
dangerousdave has joined #ruby
homelinen has joined #ruby
icole has joined #ruby
jetblack_ has quit [Quit: leaving]
jetblack has joined #ruby
Xeago_ has quit [Ping timeout: 245 seconds]
chipotle_ has joined #ruby
chipotle_ has quit [Excess Flood]
icole has quit [Ping timeout: 245 seconds]
digimer has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
<digimer> Hi all. I'm not a ruby dev in any way, but I have a problem with a ruby program that I think is a missing dependency, but I have no idea how to sort it out.
<digimer> I've got this error; /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- rpam_ext (LoadError)
<digimer> any tips of sorting out what gem is missing?
devoldmx has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
Dann1 has joined #ruby
LarsSmit has quit [Quit: Leaving.]
<ellipse> How did you install the program?
<digimer> fedora; yum install pcsd (program name)
<digimer> it's a pre-release, so I was testing from a user-perspective
<ellipse> Maybe rpam.
Apane has joined #ruby
* digimer looks in the rep for something with that name in it...
<ellipse> The package is broken in any case.
<digimer> yup
<digimer> I was hoping to figure out what was missing so that I can put in a more useful bugzilla entry
<digimer> and continue testing after that
<digimer> I don't see any package with 'rpam' in the name... perhaps I need to install it another way?
* digimer appologises for being such a noob :)
wallerdev has joined #ruby
jetblack has quit [Remote host closed the connection]
<ellipse> rpam is quite likely, since pcsd relates to PAM.
wchun has joined #ruby
<digimer> how can I install it (given that it's not listed as a package in the OS repos, so far as I can tell...)
<digimer> oh, I'll check that
axsuul has joined #ruby
jetblack has joined #ruby
<ellipse> Ruby has its own package manager, gem.
* digimer man's gem, thank you
func_reload has left #ruby [#ruby]
<digimer> 'gem install rpam' fails; http://pastebin.com/9vWQuuD4
<digimer> wee!
horofox_ has joined #ruby
horofox_ has quit [Client Quit]
<Xeago> digimer: doesn't the error message explain itself?
<Xeago> you don't have the headers for ruby installed so no c extensions can be built
Dann1 has quit [Ping timeout: 276 seconds]
<matti> digimer: Install -dev package ;]
<matti> digimer: And make.
<matti> digimer: And bite Xeago in the leg ;p
Dann1 has joined #ruby
* digimer will do, thanks
* digimer admitted to not being a dev... :)
<Xeago> :O what?!
<matti> Xeago: ;p
<Xeago> I blame the package maintainers
<Xeago> don't supply crippled packages!
jesly1 has joined #ruby
<matti> Xeago: Most of them sadly move .h to separate packages.
<matti> ;p
bharath has joined #ruby
Mattix has quit [Ping timeout: 256 seconds]
<digimer> Xeago: I'm testing for the packagers
* digimer is a user.
<bharath> ruby
<ellipse> Yeah, that doesn't really make sense at all.
<sevenseacat> lol
dcunit3d has joined #ruby
<ellipse> -dev is really confusing for users.
<bharath> what is this dudes
<bharath> ??
<ellipse> It is like an emerald.
<Xeago> headers should come with -full
<ellipse> Except red.
blaxter has joined #ruby
<bharath> what u people are doing
<bharath> ??
<Xeago> watching dreamhack
<Xeago> dreamhack.tv
jimg has joined #ruby
<ellipse> We mine rubies.
<matti> LOL
<ellipse> We are like the seven dwarves.
* sevenseacat eats a ruby
bharath has left #ruby [#ruby]
jesly has quit [Ping timeout: 252 seconds]
<digimer> ok, installed 'ruby-devel' and tried again, new error; http://pastebin.com/bBCWGkmG
<Xeago> did you install make?
<Xeago> and read the logfile
PragCypher has joined #ruby
<digimer> I did not, sorry
<digimer> wat, yes it is installed
<digimer> s/wat/wait/
<Xeago> do you have a c compiler?
<Xeago> you should
<Xeago> probably do
<Xeago> matti!
<Xeago> fix this persons' problems!
<Xeago> I don't use ubuntu
<Xeago> with broken packages
* digimer is not on ubuntu
<digimer> :)
<Xeago> anything with apt?
<Xeago> or well
<digimer> Fedora
<Xeago> package is broken
<digimer> 19, pre-release
<digimer> yes, I've already filed a bug
<Xeago> it's been like this for ages
<digimer> now I am trying to fix it so I can continue with testing. I don't want to lose the weekend and I doubt the author will address this until next week
<Xeago> anyways, read mkmf.log
<digimer> will do
<Xeago> I've only once encountered these issues, and skew away from them since then
nettoweb has joined #ruby
jimg has quit [Ping timeout: 256 seconds]
<digimer> gcc was not installed
<ellipse> Ruby packaging makes me sad. :(
* digimer installs and tries again.
<matti> Xeago: Haha
<matti> Xeago: Aye aye sir.
<matti> digimer: What's the matter?
<digimer> matti: right now, I was dumb. :)
<digimer> installing gcc and trying again
<matti> :)
dash_ has joined #ruby
tylersmith has joined #ruby
<matti> digimer: Also: sudo apt-get install libpam0g-dev
DomKM has joined #ruby
* digimer is not on an apt system, will look for the RPM version of...
<matti> Ah.
<matti> Sorry ;p
Mattix has joined #ruby
<matti> digimer: sudo yum install pam-devel
kasper has quit [Remote host closed the connection]
<digimer> \o/
<digimer> matti: thank you, that was the last piece I needed, it installed now
sevenseacat has quit [Quit: Leaving.]
emmanuelux has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
tk_ has joined #ruby
<digimer> and the program starts now!
<digimer> matti: Xeago: ellipse: thank you all for the help
yashshah has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
devoldmx has joined #ruby
tspike has joined #ruby
bigmac has joined #ruby
havenwood has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
syamajala has joined #ruby
freerobby has quit [Quit: Leaving.]
generalissimo has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
timkohrumel has joined #ruby
havenwood has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ccheney has joined #ruby
<matti> digimer: ;]
<Mo0O> any idea about my problem with bundle ?
<Mo0O> http://sprunge.us/GiUa <- all install fail with bundle, but not with gem
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
<Mo0O> did i miss something ?
dcunit3d has quit [Ping timeout: 245 seconds]
<ellipse> Do you have the latest version of Bundler?
<Mo0O> ellipse: Bundler version 1.3.5
<Mo0O> ruby 2.0.0p195
<Mo0O> gem 2.0.2
_Renegade has quit [Quit: _Renegade]
<Mo0O> so, it's a bug, normaly bundler install all dependencies
<Mo0O> right ?
cj3kim has quit [Remote host closed the connection]
axsuul has quit [Quit: axsuul]
havenwood has joined #ruby
_Renegade has joined #ruby
<r0bgleeson> Mo0O: looks like a big
<r0bgleeson> bug
<Mo0O> r0bgleeson: thanks :)
<ellipse> I can't see any reason for it.
dangerousdave has quit [Read error: Connection reset by peer]
digimer has left #ruby [#ruby]
aryaLovesJoel has joined #ruby
mrdtt has quit [Ping timeout: 245 seconds]
RyanD has quit []
dangerousdave has joined #ruby
<Mo0O> ellipse: I don't understand too
icole has joined #ruby
<ellipse> It's a bug or you have a weird setup.
<ellipse> Probably the former.
cj3kim has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
subbyyy has joined #ruby
ntus1017 has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 240 seconds]
icole has quit [Ping timeout: 246 seconds]
RORgasm has joined #ruby
<Mo0O> ellipse: is there a .conf file for bunbler ?
<Mo0O> bundler*
kasper has joined #ruby
JimmyNeutron has joined #ruby
bitZero__ has quit [Ping timeout: 248 seconds]
muslim3arby has joined #ruby
<MrZYX> Mo0O: yes: Gemfile, Gemfile.lock and .bundle/config
<muslim3arby> do yahoo,skype,otherchat&social communication prog spy4isreal&usa?????????????
<muslim3arby> do they record&analyse everything we type???????????
<Mo0O> MrZYX: thanks :)
johnrlive has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<yxhuvud> Mo0O: Are you mixing distro supplied rubygems and nondistro bundler?
muslim3arby has quit [Killed (idoru (Spam is off topic on freenode.))]
<yxhuvud> that is, are you using redhat or some derivate? They are not compatible with stock bundler
bitZero__ has joined #ruby
<Mo0O> yxhuvud: I have installed bundler using gem, I going to install it using my distro's pkg
RORgasm has quit [Ping timeout: 256 seconds]
pyrac has quit [Quit: pyrac]
kasper has quit [Ping timeout: 240 seconds]
bitZero__ has quit [Quit: leaving]
<nettoweb> guys, im using rails 3, i generate a controller with restfull, but I'm trying to add a new method but I cant… i think its because REST urls
<yxhuvud> nettoweb: #rubyonrails
Hien has quit [Ping timeout: 260 seconds]
johnrlive has joined #ruby
<Mo0O> same with my distro's pkg x_x
rickruby has joined #ruby
mikewintermute has joined #ruby
rickruby has quit [Remote host closed the connection]
Randomage has joined #ruby
jesly1 has quit [Ping timeout: 240 seconds]
syamajala has quit [Ping timeout: 245 seconds]
whitedawg has joined #ruby
tommyvyo has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
mansi has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
LarsSmit has joined #ruby
niklasb has joined #ruby
tkuchiki has quit [Remote host closed the connection]
syamajala has joined #ruby
jimg has joined #ruby
PragCypher has quit [Quit: Leaving]
ntus1017 has joined #ruby
<Mo0O> found, it was a GEM_HOME problem
blaxter has quit [Ping timeout: 245 seconds]
Guest____ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mo0O> thanks to all
banghouse has joined #ruby
Mattix has quit [Ping timeout: 256 seconds]
whitedawg has quit [Quit: leaving]
cj3kim has quit [Remote host closed the connection]
banghouse is now known as Guest40430
blaxter_ has joined #ruby
johnrlive has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
jesly has joined #ruby
tommyvyo has quit [Ping timeout: 276 seconds]
sayan has joined #ruby
johnrlive has joined #ruby
generalissimo has quit [Remote host closed the connection]
Dann1 has quit [Quit: GODDAMNIT]
ntus1017 has quit [Remote host closed the connection]
myappleguy has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
tspike has quit [Ping timeout: 246 seconds]
wargasm has joined #ruby
dotemacs has joined #ruby
Faris13 has quit [Read error: Connection reset by peer]
dcunit3d has joined #ruby
johnrlive has quit [Remote host closed the connection]
DomKM has quit [Quit: Leaving.]
jesly has quit [Ping timeout: 252 seconds]
JimmyNeutron has quit [Quit: Leaving]
snearch has joined #ruby
elManu has joined #ruby
butblack has joined #ruby
bsaboia_ has quit [Ping timeout: 268 seconds]
platzhirsch1 has quit [Quit: Leaving.]
Destiny101 has joined #ruby
JohnBat26 has joined #ruby
jesly has joined #ruby
johnrlive has joined #ruby
jesly1 has joined #ruby
DestinyAwaits has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
emmanuelux has joined #ruby
tonini has joined #ruby
cj3kim has quit [Remote host closed the connection]
Destiny101 has quit [Client Quit]
jesly has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
jesly1 has quit [Ping timeout: 245 seconds]
codesoda has joined #ruby
jesly has joined #ruby
vadelius has joined #ruby
kasper_ has joined #ruby
kofno has joined #ruby
jesly1 has joined #ruby
icole has joined #ruby
<dotemacs> Hi, would you be interested in a Ruby Monthly if it was done in style of Hacker Monthly with a yearly subscription? It would provide a list of articles, nicely laid out, collected in a digital edition either as PDF/mobi/epub. Good idea ?
cj3kim has joined #ruby
jesly has quit [Ping timeout: 256 seconds]
johnrlive has quit [Remote host closed the connection]
jesly1 has quit [Client Quit]
S0da has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nettoweb has quit [Quit: nettoweb]
kofno has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
icole has quit [Ping timeout: 260 seconds]
S0da has quit [Client Quit]
_Renegade has quit [Quit: _Renegade]
S1ivka has joined #ruby
nignaztic has quit [Quit: Leaving]
nazty has joined #ruby
Shirakawasuna has joined #ruby
<havenwood> dotemacs: Reminds me of Ruby Weekly: http://rubyweekly.com
alekst has joined #ruby
jhonnyboy has joined #ruby
<dotemacs> havenwood: yes, but RW is a newsletter, this would be a digital magazine
Michae___ has joined #ruby
codesoda has quit [Ping timeout: 268 seconds]
<havenwood> Ah, more like the Japanese 'Rubyist Magazine'?
Michae___ has quit [Remote host closed the connection]
<jhonnyboy> hey guys
<havenwood> dotemacs: http://magazine.rubyist.net
Dummies_freelanc has joined #ruby
<dotemacs> havenwood: no longer active, last issue was in 2009
zacts has quit [Quit: leaving]
LennyLinux has quit [Remote host closed the connection]
<jhonnyboy> can anyone tell me what this is doing? https://gist.github.com/anonymous/079863dbe661a8311b45
<havenwood> dotemacs: I thought I'd just read that the Japanese Mag was going to be resurrected. Not sure.
<havenwood> dotemacs: The Rubyist appears to have been short-lived: http://www.magcloud.com/browse/Magazine/2284
<r0bgleeson> jhonnyboy: sending a rocket to north korea
<jhonnyboy> ty r0bgleeson
<dotemacs> havenwood: yea, so thats why I figured that some people might be interested ?
lyanchih has joined #ruby
<dotemacs> havenwood: so what do you think, would you be interested in something like this ?
<havenwood> dotemacs: Yeah, I wish there was one.
jhonnyboy has left #ruby [#ruby]
kenneth has quit [Quit: kenneth]
pskosinski has quit [Quit: pskosinski]
butblack has left #ruby [#ruby]
<dotemacs> havenwood: You know how Hacker Monthly operates, it collects the most popular articles from Hacker News and prints them, providing the links to the original articles too. I'm thinking of doing something like this for Ruby
ioNull has quit [Quit: Textual IRC Client: www.textualapp.com]
subbyyy_ has joined #ruby
<havenwood> dotemacs: Would prolly be more appealing if you could offer unique content as well. Maybe interviews or sections where open source maintainers comment on what is happening with their projects.
<havenwood> dotemacs: Print or online only?
viszu has joined #ruby
<dotemacs> havenwood: good idea, at first it would be digital, then print too if there was interest
<havenwood> dotemacs: I personally don't care about print.
LarsSmit has quit [Quit: Leaving.]
subbyyy has quit [Ping timeout: 252 seconds]
<havenwood> dotemacs: If you go ahead with it, I think it is a really good idea to offer all back editions with a subscription. (Like RubyTapas or CodeSchool does.)
<dotemacs> havenwood: yea, i don't see why not, that would be cool.
axsuul has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
axsuul has quit [Client Quit]
<dotemacs> havenwood: but at first I think i'd rather collect people's blogs and try to publish those in one place. The reasoning? When you have paid writers the passion doesn't come through, it's just a step by step how to do something
<havenwood> dotemacs: Also really nice to at least have an informal policy of free needs-based subscription if someone writes a postcard requesting it.
braoru has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: nettoweb]
haxrbyte has quit [Remote host closed the connection]
<dotemacs> havenwood: as in -> "i can't afford it, i'm a student/... but I'd really like to read it" ?
devoldmx has joined #ruby
<havenwood> dotemacs: ya
tw1sted has joined #ruby
sepp2k has quit [Ping timeout: 268 seconds]
<dotemacs> havenwood: cool idea :)
pyrac has joined #ruby
<havenwood> dotemacs: Peter Cooper and Avdi etc do that. I think it is a nice aspect of the Ruby community.
Faris13 has joined #ruby
subbyyy_ has quit [Quit: none 0.3.9.2]
nettoweb has joined #ruby
<dotemacs> havenwood: yea, I agree
gsvolt has quit [Ping timeout: 245 seconds]
cha1tanya has quit [Quit: Leaving]
kasper_ has quit [Remote host closed the connection]
akemrir has joined #ruby
<havenwood> jhonn, oh he left
tacos1de has quit [Ping timeout: 240 seconds]
tonini has quit [Ping timeout: 248 seconds]
jacobw has quit [Ping timeout: 245 seconds]
emmanuelux has quit [Ping timeout: 256 seconds]
tacos1de has joined #ruby
<havenwood> dotemacs: Also making some magazines or parts of magazines free is a nice way to convince people its worth paying for the rest. Like RubyTapas gives out Monday episodes for free.
<havenwood> Teasers.
<havenwood> <3 RubyTapas
tk_ has quit [Quit: ばいばい]
sayan has quit [Read error: Connection reset by peer]
<havenwood> Heard Avdi got enough subscriptions to quit his day job.
emmanuelux has joined #ruby
emmanuelux has quit [Client Quit]
* ellipse wants to start a Ruby magazine now.
arubin has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
S1ivka has quit [Remote host closed the connection]
sam113101 has quit [Quit: WeeChat 0.4.0]
gildo has quit [Ping timeout: 246 seconds]
sam113101 has joined #ruby
anderson has quit [Ping timeout: 252 seconds]
nettoweb has quit [Quit: nettoweb]
burlyscudd has joined #ruby
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
tommyvyo_ has quit [Quit:]
greenarrow has quit [Read error: Connection reset by peer]
_Renegade has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
nezumi has joined #ruby
jacobw has joined #ruby
nomenkun has joined #ruby
lyanchih has quit [Quit: lyanchih]
tomzx_mac has joined #ruby
<dotemacs> ellipse: :) thanks for the support
<ellipse> Haha, ;)
jhonnyboy has joined #ruby
relix_ has joined #ruby
<jhonnyboy> hey guys, trying to make a simple network connection over the web with ruby but im getting connection errors with this, does this syntax look ok? https://gist.github.com/anonymous/3041f5ce4cf14774e53a
<r0bgleeson> jhonnyboy: require 'open-uri', open("http://www.google.com").read
<dotemacs> havenwood & ellipse would you consider $50.00 a yearly subscription fair ? :)
<havenwood> dotemacs: You might want to pick something that divides evenly into 12.
<r0bgleeson> jhonnyboy: for a simple GET, that's all you need
<jhonnyboy> ty guys
jhonnyboy has left #ruby [#ruby]
<r0bgleeson> jhonnyboy: if you want to learn about Net::HTTP, I'm happy to go through the example with you
nettoweb has joined #ruby
lewix has quit [Quit: Leaving...]
<dotemacs> havenwood: how about $60 then ? because making the mag will probably demand a lot of time and it won't be a big money maker
axsuul has joined #ruby
freerobby has joined #ruby
lewix has joined #ruby
<ellipse> How many people read Ruby magazines?
lewix has quit [Remote host closed the connection]
<havenwood> depends on how awesome the magazine is, i suppose
bsaboia_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
lewis has joined #ruby
<havenwood> There are lots of Rubyists.
lewis is now known as lewix
nomenkun has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
vlad_starkov has joined #ruby
<ellipse> Supposing it is medium-awesome.
<ellipse> q
sepp2k has joined #ruby
<r0bgleeson> ellipse: the first thing you need to do is build an online persona
cj3kim has quit [Remote host closed the connection]
<r0bgleeson> ellipse: look at the people who do that now, and are successful
lewix has quit [Remote host closed the connection]
jimg has joined #ruby
<havenwood> I suggest a persona that becomes a cat and you only realize later it is just a cat suit.
sideshowcoder has quit [Ping timeout: 240 seconds]
codesoda has joined #ruby
axsuul has quit [Quit: axsuul]
lewis has joined #ruby
<r0bgleeson> haha
<ellipse> The other way around would be better.
<ellipse> A cat that thinks they are a human in a cat suit.
<havenwood> ellipse: Tenderlove has reported a poor experience pair programming with his cat, which he got for that purpose.
byprdct has quit [Ping timeout: 252 seconds]
icole has joined #ruby
<ellipse> I do have a cat ear headband.
<ellipse> RubyKittenWeekly
lewis has quit [Remote host closed the connection]
<r0bgleeson> :D
johnrlive has joined #ruby
<r0bgleeson> im sold
jimg has quit [Ping timeout: 268 seconds]
bsaboia_ has quit [Remote host closed the connection]
<ellipse> Haha, I wonder how viable an idea this is.
RORgasm has joined #ruby
sideshowcoder has joined #ruby
lewis has joined #ruby
icole has quit [Ping timeout: 268 seconds]
lewis has quit [Remote host closed the connection]
<ellipse> It is probably an issue that I have no idea how to do video editing.
huoxito has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Quit: WeeChat 0.4.1]
RORgasm has quit [Ping timeout: 252 seconds]
Vert has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
codecop has joined #ruby
nettoweb has quit [Quit: nettoweb]
roadt has quit [Ping timeout: 256 seconds]
<ellipse> Oh hey, who would be interested in a call-in show about Ruby problems?
_bart has joined #ruby
BizarreCake has quit [Ping timeout: 248 seconds]
sam113101 has quit [Quit: WeeChat 0.4.0]
<dotemacs> хахах
<dotemacs> or even hahaha
DomKM has joined #ruby
sam113101 has joined #ruby
<ellipse> What language is that?
kil0byte has joined #ruby
<ellipse> I've never seen xa for laughing before
<dotemacs> ellipse: haha in cyrillic, this one just happens to be Serbian, but it'd work/spell out the same in any other language
<ellipse> Ah, interesting.
<dotemacs> h -> х, a -> а
workmad3 has joined #ruby
Spooner has joined #ruby
<dotemacs> one thing I found out today, the more emoji you add to your pull request, the better the response
platzhirsch has joined #ruby
* ellipse wants a graph.
<platzhirsch> heftig: It's really nice that you responded to my question yesterday. Interestingly you gave me code to do this conversion, but I only meant a way to model the keys
<ellipse> If the increase is unbounded, I am totally getting a backdoor in Linux. :)*10^20
<platzhirsch> If you have a Hash { a : 5, b : { 7 }, c : [ { d : 3 }, { d : 5 } ] } and you were assigned to find a representations for certain keys, how would you do that? The representation would need to list all hash keys required to get to the value
<platzhirsch> If the Hash would be flat, this would be easy. Just take the one key: a.
<apeiros> that's not even valid, platzhirsch
sambao21 has joined #ruby
yacks has joined #ruby
<platzhirsch> apeiros: sorry, the b should be b : { z : 3 } or something
tommyvyo has quit [Quit:]
<platzhirsch> { :a => 5, :b => { :z => 7 }, :c => [ { :d => 3 }, { :d => 5 } ] }
<ellipse> Use recursion.
IceDragon has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.0]
<platzhirsch> ellipse: I just need a representation for later identification
<ellipse> This sounds like homework. :P
<platzhirsch> ellipse: because I chose the formulation this way
browndawg has quit [Quit: Leaving.]
sam113101 has joined #ruby
tonini has joined #ruby
<platzhirsch> I have thought about array of arays, for instance to represent the second hash inside c: [c:, 1, :d]
bionhart has joined #ruby
LennyLinux has joined #ruby
<ellipse> Make a recursive function, return a list the found path
<platzhirsch> ellipse: I am not talking about a function to get the path. But how to represent the path :)
<ellipse> An array?
<platzhirsch> okay, an each following element, means choose the key of the next inner hash? But what about arrays of hashes?
<platzhirsch> [a:, b:, c:] would mean the value 5 in { a: => { b: => { c: => 5 } } } that's fine
<ellipse> Are Fixnums possible keys?
<MrZYX> just take the index, later when you got a array interpret the next child as a number/index
<platzhirsch> MrZYX ellipse: exactly. Okay that's what I have thought of, too
<ellipse> I don't understand the problem then.
snearch has quit [Quit: Verlassend]
<platzhirsch> ellipse: Well, I just wondered whether this is really a good representation
<ellipse> Ah, looks good to me.
<platzhirsch> it seemed liked a bad hack :)
butblack has joined #ruby
ravster has joined #ruby
Vert has quit [Read error: Connection reset by peer]
mhahn has joined #ruby
mhahn has quit [Read error: Connection reset by peer]
mhahn has joined #ruby
mhahn has left #ruby [#ruby]
burlyscudd has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
syamajala has quit [Quit: leaving]
cj3kim has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
huoxito has quit [Quit: Leaving]
ntus1017 has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
timkohrumel has quit [Remote host closed the connection]
blitzkev has quit [Quit: This computer has gone to sleep]
<Mo0O> is it possible to replace a gem, for exemple: I have a gem named grit -https://github.com/mojombo/grit- and I want to replace it with -https://github.com/styx/grit-
<Mo0O> because de second one run on ruby2
<Mo0O> is it possible wto do this with gem command ?
<MrZYX> you can always clone that repo and build the gem yourself
<havenwood> ^
<MrZYX> if your application uses bundler it gets a whole lot easier though
jimg has joined #ruby
<Mo0O> ok, but for gems that are installed localy, like in ~/.gem/ruby/2.0.0 is it possible ?
cads has quit [Ping timeout: 260 seconds]
<MrZYX> sure
<Mo0O> MrZYX: thanks
zmike123 has quit [Quit: Выходжу]
<havenwood> Mo0O: git clone https://x.git && cd x && gem build x.gemspec && gem install ./x-version.gem
mhahn has joined #ruby
<Mo0O> havenwood: thanks a lot :)
xardas has quit [Changing host]
xardas has joined #ruby
<mhahn> hey, does anyone know how to specify a gem to install within boxen? (i know this isn't the boxen channel, but it is in ruby)
icole has joined #ruby
<havenwood> mhahn: You want to install a gem from within Ruby and then load the gem? Or something else?
<mhahn> havenwood: i want to specify a gem to be installed on the system
<mhahn> but i have that currently and it doesn't seem to work
<codesoda> Mo0O: what sort of project is this?
johnrlive has joined #ruby
pootler__ has joined #ruby
pootler_1 has joined #ruby
jimg has quit [Ping timeout: 268 seconds]
<Mo0O> codesoda: gollum, but I'm just an end user -as you can see-
<havenwood> mhahn: So you want to `gem install gem_name_here` for a particular version of Ruby managed with rbenv?
<mhahn> yea
icole has quit [Ping timeout: 246 seconds]
mikewintermute has joined #ruby
<yxhuvud> mhahn: I suppose bundler isn't available?
johnrlive has quit [Ping timeout: 252 seconds]
miclen has joined #ruby
<Mo0O> havenwood: thanks, that's working like a charm (^_^)
<mhahn> i think i got it, thanks guys
mhahn has left #ruby [#ruby]
asgardBSD has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
brennanMKE has joined #ruby
Astralum has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
Sou|cutter has joined #ruby
akashj87 has quit [Quit: Leaving]
whowantstolivefo has joined #ruby
obs has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
wroathe has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<wroathe> I have an array of strings like this: ['one', 'three', 'six', 'three', 'three', 'two']. What would be the easiest way of getting the index of all matching strings in that array. For instance, if I wanted 'three' I'd get an array back that looks like [1, 3, 4]
<wroathe> .index and .rindex just seem to return the index from the head or tail of the array respectively
<apeiros> .with_index.select { |x,i| … }.map(&:last)
<apeiros> untested. but if it doesn't work, it should at least give you the idea
<wroathe> Yeah
<wroathe> That does help
<wroathe> Thanks
pootler__ has quit [Ping timeout: 260 seconds]
pootler_1 has quit [Ping timeout: 260 seconds]
akemrir has quit [Quit: WeeChat 0.4.1]
pcarrier_ has joined #ruby
aqil has joined #ruby
nomenkun has joined #ruby
<wroathe> You'd think Ruby would have an index method that checks the === of an element instead of just ==
dankest has joined #ruby
cj3kim has quit [Remote host closed the connection]
<r0bgleeson> wroathe: that'd encourage type checking
<ellipse> Why?
<r0bgleeson> why would it?
<r0bgleeson> through Module#===
<r0bgleeson> >> String === "foo"
<eval-in> r0bgleeson => true (https://eval.in/33629)
cj3kim has joined #ruby
<ellipse> No, why would it?
sepp2k1 has joined #ruby
<r0bgleeson> because === can be used to check "types" (ie the class of the argument/operand)
<r0bgleeson> >> "foo".is_a?(String)
<eval-in> r0bgleeson => true (https://eval.in/33630)
<r0bgleeson> this type of stuff
<ellipse> I know what === does. ;p
<r0bgleeson> well.. then it should be obvious why :p
cj3kim has quit [Remote host closed the connection]
<wroathe> I was under the impression that === just checks that both objects reference the same memory location
<ellipse> Different language.
nomenkun has quit [Ping timeout: 264 seconds]
<ellipse> === is for case statements.
sepp2k has quit [Ping timeout: 256 seconds]
<havenwood> wroathe: threes = []; a.each_with_index { |e, i| threes << i if e == 'three' }; threes; #=> [1, 3, 4]
freerobby has joined #ruby
<ellipse> .object_id
<wroathe> havenwood: That's what I ended up doing
<pontiki> havenwood: apeiros's is a bit better, although wrong method. no need to create an external
<wroathe> pontiki: :P It's for a quick script anyway
<pontiki> then short is better :)
Hanmac has joined #ruby
werdnativ has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
dcunit3d has quit [Ping timeout: 256 seconds]
<canton7> wroathe, a.each_index.select{ |i| a[i] == 'three' }
jacobw has joined #ruby
werdnativ has quit [Client Quit]
Hanmac1 has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
<wroathe> God I hate Ruby
<wroathe> "How do you do this simple task?" "Here's six different ways."
<canton7> inflammatory thing to say...
<wroathe> :P
blaxter_ has quit [Quit: foo]
<wroathe> Sorry, I've been switching between languages a lot lately. Ruby is by far the most difficult to come back to.
<canton7> and all of them are better than PHP's single option...
<wroathe> PHP isn't a language.
<ellipse> Because obviously there is only one solution to every problem.
<canton7> to be fair, python would probably have the same options, but using list comprehensions, and C#'s LINQ would provide the same options as given here
<havenwood> wroathe: Another option: a.each_with_index.map { |e, i| i if e == 'three' }.compact
jenrzzz has quit [Ping timeout: 248 seconds]
<canton7> map abuse! but clever
<havenwood> canton7: :P
amh345 has quit [Quit: amh345]
JumpMast3r has joined #ruby
jenrzzz has joined #ruby
<canton7> nothing special about ruby here - the options are "iterate the array and build a separate list", "combine elements with indexes and filter them", or "iterate indexes and lookup back into the array to get the element, then filter". Doesn't matter what language you're using
tspike has joined #ruby
<havenwood> wroathe: Ruby making these options all expressible is a good thing, imho.
hogeo_ has joined #ruby
<canton7> and all of the ways ruby has of expressing these options are clear imo
<havenwood> map.with_index is nicer than each_with_index.map I guess
<canton7> mm, I prefer having map on the end, as that's where I look to see what's happening to the block
<havenwood> canton7: good piont
<havenwood> point*
Jackneill has quit [Ping timeout: 248 seconds]
<r0bgleeson> why not use select?
<r0bgleeson> oh you want the index
<wroathe> I ended up with this: row_order.map.with_index { |e, i| i if e == 'table' }.compact
<wroathe> So thanks for the help :)
hogeo has quit [Ping timeout: 260 seconds]
tonini has joined #ruby
cj3kim has joined #ruby
radic__ is now known as radic
TheFuzzball has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
redgirl has joined #ruby
cj3kim has joined #ruby
<pontiki> i do love chaining, tho
<wroathe> i.am.not.a.fan
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
d2dchat has joined #ruby
<pontiki> hee.hee.hee
miclen has quit [Quit: Leaving]
txdv_ is now known as txdv
tonini has quit [Ping timeout: 248 seconds]
nezumi has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Quit: Leaving.]
pskosinski has joined #ruby
Hanmac1 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
horofox_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jimg has joined #ruby
Hanmac has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
icole has joined #ruby
anderson has joined #ruby
jbpros has joined #ruby
jimg has quit [Ping timeout: 260 seconds]
butblack has left #ruby [#ruby]
timkohrumel has joined #ruby
RORgasm has joined #ruby
tonini has joined #ruby
johnrlive has joined #ruby
timkohrumel has quit [Ping timeout: 252 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
RORgasm has quit [Ping timeout: 252 seconds]
tonini has quit [Quit: leaving]
tonini has joined #ruby
kayloos has joined #ruby
milardovich has joined #ruby
pootler__ has joined #ruby
pootler_1 has joined #ruby
banisterfiend has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
maroloccio has joined #ruby
lkba has joined #ruby
jbpros has quit [Quit: jbpros]
freerobby has quit [Quit: Leaving.]
icole has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
mduvall has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
freerobby has joined #ruby
joesavage has joined #ruby
<joesavage> I'm writing a "pack"ed array of bytes to a file in Ruby, but '3's seem to appear EVERYWHERE in the result file. At the second byte in my array, I confirm before writing the value '1', for example, but in the final file this becomes the hex '31' for no seemingly logical reason. I'm using the following to write the file: http://pastebin.com/vXRJjci8
nezumi has joined #ruby
Alina-malina has joined #ruby
aqil has quit [Quit: Leaving.]
<joesavage> 01 00 00 00 00 00 => 31 30 30 30 30 30
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
pootler_3 has joined #ruby
ravster has quit [Quit: Leaving.]
atmosx has joined #ruby
<atmosx> hi
pootler_4 has joined #ruby
pootler_1 has quit [Ping timeout: 256 seconds]
pootler__ has quit [Ping timeout: 256 seconds]
<joesavage> I can post more of my code if necessary, but I figure it's something reasonably obvious to cause such strange behaviour
LennyLinux has joined #ruby
braoru has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
freerobby has quit [Quit: Leaving.]
huoxito has joined #ruby
sailias has joined #ruby
amh345 has joined #ruby
leonidlm has joined #ruby
aqil has joined #ruby
aqil has quit [Max SendQ exceeded]
postmodern has joined #ruby
sambao21 has joined #ruby
Apocalypse has quit [Read error: Operation timed out]
denver has quit [Remote host closed the connection]
snearch has joined #ruby
aedornm has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
ellipse has quit [Quit: Bye]
joesavage has quit [Quit: Page closed]
pcarrier_ has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
adambeynon has joined #ruby
Dummies_freelanc has quit [Ping timeout: 248 seconds]
<joshu> anyone up for a quick brainstorming session regarding how to deal with user presence/ status/ logged or logged out api endpoint
brennanMKE has quit [Remote host closed the connection]
agent_white has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
braoru has quit [Ping timeout: 245 seconds]
<pontiki> joshu: sure
<joshu> pontiki cool
daniel_- has quit [Quit: WeeChat 0.4.1]
<joshu> basically my app needs to store the status of 5 users. Who's online, offline type of thing. I'm thinking about whether I should just have a JSON array something like this https://gist.github.com/anonymous/3c98ae7bcf5c713997de
<joshu> if no one is available then the array doesn't exist or is empty.
<joshu> Not sure. What do you think?
<pontiki> seems exploitable...
<joshu> I use this info to either transfer calls if anyone is available or when no one is I send the call to voicemail. That's really the purpose of this "endpoint"
brennanMKE has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
codecop has quit [Remote host closed the connection]
aedornm has joined #ruby
<pontiki> nod; it seems workable on the surface
<pontiki> it's basically to try to find someone who can take a call ("joe is in")
<pontiki> ?
<joshu> yes correct.
<pontiki> with proper safeguards to make sure the api isn't exploitable, i'd say that would be okay
<joshu> I'll use HTTPS and basic http auth
<pontiki> nodnod
<pontiki> nothing is ever guaranteed, of course, but that sounds reasonable
<joshu> yeah good? I'm in totally unfamiliar territory here ;)
<pontiki> does the calling app have access to the user data?
<pontiki> if so, i'd just return UUIDs
pcarrier_ has joined #ruby
jesly has joined #ruby
<pontiki> still with auth
nomenkun has quit [Ping timeout: 260 seconds]
<pontiki> and ssl
<joshu> the calling app will not query this data only set his/ her presence or delete his/ her presence
<joshu> if that's what you meant
tspike has quit [Ping timeout: 256 seconds]
<pontiki> sort of an "in/out" board display then?
jbpros has joined #ruby
<pontiki> i think that will work fine
freerobby has joined #ruby
sventon has joined #ruby
yshh has quit [Ping timeout: 245 seconds]
blaxter_ has joined #ruby
johnrlive has joined #ruby
atmosx has quit [Quit: And so the story goes…]
jbpros has quit [Quit: jbpros]
blaxter_ has quit [Client Quit]
byprdct has joined #ruby
nettoweb has joined #ruby
<joshu> pontiki sorry what trying to put this together https://gist.github.com/anonymous/29c93d00270fb2284bc4
johnrlive has quit [Ping timeout: 252 seconds]
cheese1756 has quit [Quit: ZNC - http://znc.in]
viszu has quit [Quit: Leaving.]
cj3kim has joined #ruby
dash_ has quit [Quit: Time to beer :)]
<joshu> *was
daniel_hinojosa has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
pootler_3 has quit [Ping timeout: 245 seconds]
pootler_4 has quit [Ping timeout: 245 seconds]
cheese1756 has joined #ruby
blitz has joined #ruby
<pontiki> not DELETE '/users/:id' ?
<pontiki> no, never mind
<pontiki> yeah, that will work
bionhart has quit [Remote host closed the connection]
<joshu> Is the basic idea ok?
havenwood has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
<pontiki> yes, i think so
horofox_ has quit [Quit: horofox_]
<pontiki> how are you doing things with gist to get a hash instead of a numeric id?
icole has joined #ruby
aryaLovesJoel has quit [Ping timeout: 248 seconds]
blitz has quit [Client Quit]
<joshu> you mean this "29c93d00270fb2284bc"
<joshu> I just clicked :Create Secret Gist" instead of "Create Public Gist"
brennanMKE has joined #ruby
milardovich has quit [Quit: Leaving]
blaxter_ has joined #ruby
<pontiki> ah...
<pontiki> ok
havenwood has quit [Ping timeout: 252 seconds]
<pontiki> it came up in another channel so i was wondering
<joshu> no problem
icole has quit [Ping timeout: 252 seconds]
Appineer has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
blaxter_ has quit [Client Quit]
sventon has quit [Remote host closed the connection]
Appineer has left #ruby [#ruby]
JumpMast3r has quit [Quit: JumpMast3r]
doritostains has joined #ruby
milardovich has joined #ruby
_Renegade has quit [Read error: Connection reset by peer]
alekst has quit [Quit: Leaving...]
jimg has joined #ruby
kirun has quit [Quit: Client exiting]
wu_lmao has quit [Ping timeout: 264 seconds]
patbr0wn2 has joined #ruby
predator217 has quit [Ping timeout: 245 seconds]
patbr0wn2 has quit [Client Quit]
JohnBat26 has quit [Ping timeout: 268 seconds]
nettoweb has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 256 seconds]
dcunit3d has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
redgirl has quit [Quit: Leaving]
zer0-day has joined #ruby
<zer0-day> syntax error, unexpected keyword_do_block, expecting $end
<zer0-day> do |http|
Akuma has quit [Ping timeout: 256 seconds]
<zer0-day> any ideas ?
<MrZYX> gist the full code
atmosx has joined #ruby
hippyphysicist has joined #ruby
pootler__ has joined #ruby
predator117 has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
Meatant has joined #ruby
Faris13 has quit [Quit: Faris13]
dangerousdave has quit [Quit: Leaving...]
burlyscudd has joined #ruby
pootler_1 has joined #ruby
brennanM_ has joined #ruby
Akuma has joined #ruby
nettoweb has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
gnagno has joined #ruby
<gnagno> hello all
<gnagno> if I would like to make a gem, is jeweler the best solution to use to startup my gem ?
_Renegade_ has joined #ruby
<pontiki> best is always 'it depends'
nfk has quit [Remote host closed the connection]
mduvall has quit [Quit: mduvall]
leonidlm has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Quit:]
vlad_starkov has quit [Remote host closed the connection]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
mduvall has joined #ruby
philcrissman_ has joined #ruby
zodiak has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: And so the story goes…]
_Andres has quit [Ping timeout: 252 seconds]
ssvo has quit [Ping timeout: 246 seconds]
bakingbread has quit [Read error: Operation timed out]
_JamieD_ has joined #ruby
staafl has quit [Ping timeout: 252 seconds]
predator117 has quit [Ping timeout: 240 seconds]
Shirakawasuna has quit [Quit: Leaving]
scrollback has quit [Remote host closed the connection]
_JamieD_ has left #ruby [#ruby]
freerobby has joined #ruby
scrollback has joined #ruby
axsuul has joined #ruby
bakingbread has joined #ruby
ssvo has joined #ruby
nfk has quit [Read error: Connection reset by peer]
Scient has quit [Ping timeout: 264 seconds]
MissionCritical has quit [Ping timeout: 264 seconds]
Mattix has joined #ruby
Scient has joined #ruby
predator117 has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
RORgasm has joined #ruby
johnrlive has joined #ruby
philcrissman_ has joined #ruby
Sherwyn has quit [Remote host closed the connection]
brennanM_ has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Quit: Leaving.]
Speed has joined #ruby
JumpMast3r has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
pootler_1 has quit [Ping timeout: 246 seconds]
twoism has joined #ruby
pootler__ has quit [Ping timeout: 252 seconds]
larissa has joined #ruby
agent_white has quit [Quit: leaving]
RORgasm has quit [Ping timeout: 248 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
bionhart has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
kenneth has joined #ruby
<Xeago> anyone with osx mind telling me their contents of /etc/paths ?
brennanMKE has joined #ruby
icole has joined #ruby
MissionCritical has joined #ruby
Godd2 has joined #ruby
morf has quit [Quit: A metaphysical dichotomy has caused this unit to overload and shut down.]
icole has quit [Ping timeout: 248 seconds]
d2dchat has quit [Remote host closed the connection]
generalissimo has joined #ruby
Guedes has quit [Ping timeout: 252 seconds]
axsuul has quit [Quit: axsuul]
ixti has joined #ruby
mduvall has quit [Quit: mduvall]
tobiasvl has quit [Read error: Operation timed out]
tonini has quit [Ping timeout: 248 seconds]
<jalcine> o_O
zodiak has joined #ruby
nomenkun has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<MrZYX> cat: /etc/paths: No such file or directory
tspike has joined #ruby
<MrZYX> you're welcome :P
<MrZYX> (yes, I'm not on OS X :P)
<Xeago> you aint on osx then? :O
jesly has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
maroloccio has quit [Ping timeout: 240 seconds]
tobiasvl has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
jimg has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
philcrissman_ has quit [Remote host closed the connection]
LennyLinux has quit [Remote host closed the connection]
pcarrier_ has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
cyong has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
cyong has quit [Read error: Connection reset by peer]
agjacome has quit [Quit: leaving]
axsuul has joined #ruby
nettoweb has quit [Quit: nettoweb]
Godd2 has quit [Ping timeout: 250 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Ping timeout: 260 seconds]
byprdct has joined #ruby
byprdct has quit [Client Quit]
kayloos has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 246 seconds]
casheew has joined #ruby
TheFuzzb_ has joined #ruby
axsuul has joined #ruby
nettoweb has joined #ruby
casheew has quit [Read error: Connection reset by peer]
nettoweb has quit [Client Quit]
burlyscudd has joined #ruby
eighty4 has left #ruby ["WeeChat 0.3.8"]
TheFuzzb_ is now known as TheFuzzball
TheFuzzball has quit [Disconnected by services]
Amanas has joined #ruby
ixti has quit [Quit: WeeChat 0.4.1]
casheew has joined #ruby
moted has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
<joshu> pontiki forgot to thank you for the brainstorming session ;)
moted has quit [Client Quit]
johnrlive has joined #ruby
spider-mario has quit [Remote host closed the connection]
LennyLinux has joined #ruby
lobo_d_b has joined #ruby
lobo_d_b has left #ruby [#ruby]
pcarrier_ has joined #ruby
xardas has quit [Ping timeout: 268 seconds]
sailias has quit [Ping timeout: 252 seconds]
pskosinski has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
pskosinski has joined #ruby
vlad_starkov has joined #ruby
axsuul has quit [Quit: axsuul]
axsuul has joined #ruby
twoism has quit [Remote host closed the connection]
randomnick has joined #ruby
whowantstolivefo has quit [Ping timeout: 256 seconds]
blaxter has quit [Quit: KTHXBYE]
nopper has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
maroloccio has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
mahlon_ has joined #ruby
nopper has joined #ruby
mahlon has quit [Read error: Connection reset by peer]
v0n has joined #ruby
axsuul has quit [Quit: axsuul]
mansi has quit [Remote host closed the connection]
bubbajones has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
AlSquire has joined #ruby
ColKurtz has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
robscomputer has joined #ruby
sarkis_ has joined #ruby
robscomputer has quit [Remote host closed the connection]
sarkis_ has left #ruby [#ruby]
mklappstuhl has joined #ruby
Dummies_freelanc has joined #ruby
robscomputer has joined #ruby
predator217 has joined #ruby
sarkis has joined #ruby
wroathe has quit [Ping timeout: 245 seconds]
casheew has quit [Read error: Connection reset by peer]
<sarkis> hey all, think it is necessary to get something like rbenv and manage diff versions of ruby in OSX?
casheew has joined #ruby
kapowaz has quit [Quit: Connection closed for inactivity]
<sarkis> i am trying to use the system ruby where possible, not sure if this is a good idea ornot
casheew has quit [Read error: Connection reset by peer]
<MrZYX> that's still 1.8 right?
<sarkis> yea
<sarkis> 1.8.7
<MrZYX> that's a very bad idea
echevemaster has joined #ruby
Dummies_freelanc has quit [Read error: Connection reset by peer]
icole has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 256 seconds]
bigmac has quit [Quit: Leaving]
<sarkis> yea just feels like a crappy setup, if i set the default as like 1.9.x via rbenv, puppet which i installed via a osx package won't work
<Xeago> why doesn't puppet work?
amedeiros has joined #ruby
<sarkis> well i assume it links to the system ruby
casheew has joined #ruby
amedeiros has quit [Read error: Connection reset by peer]
<sarkis> if i switch back to system ruby via rbenv everything works :/
amedeiros has joined #ruby
icole has quit [Ping timeout: 240 seconds]
<Xeago> not sure what I did, but I can use puppet fine with a default of ruby2.0
sambao21 has quit [Quit: Computer has gone to sleep.]
ToApolytoXaos has quit [Quit: Leaving]
jimg has joined #ruby
amedeiros has quit [Ping timeout: 252 seconds]
amedeiros has joined #ruby
sambao21 has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
nomenkun has joined #ruby
philcrissman_ has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
kasper has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 252 seconds]
pcarrier_ has quit [Ping timeout: 260 seconds]
moted has joined #ruby
_maes_ has joined #ruby
Mattix has quit [Quit: Leaving]
r0bby has joined #ruby
Mattix has joined #ruby
adkron has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
nomenkun has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
kofno has joined #ruby
AlSquire has joined #ruby
kofno has quit [Remote host closed the connection]
ninegrid has quit [Ping timeout: 276 seconds]
amedeiros has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
ninegrid has joined #ruby
marcgg has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
johnrlive has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 268 seconds]
johnrlive has joined #ruby
_veer has joined #ruby
burlyscudd has joined #ruby
v0n has joined #ruby
wroathe has joined #ruby
nezumi has quit [Ping timeout: 248 seconds]
snearch has quit [Quit: Verlassend]
dnyy has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
kofno has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 268 seconds]
Opettaja has quit [Quit: WeeChat 0.4.1]
Dummies_freelanc has joined #ruby
AlSquire has quit [Ping timeout: 245 seconds]
<sarkis> hmm
<sarkis> Xeago: did you install puppet via the package? .dmg
<sarkis> or the gem?
wroathe has quit [Ping timeout: 245 seconds]
AlSquire has joined #ruby
_bart has quit [Quit: _bart]
akells` has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 260 seconds]
lusory has quit [Ping timeout: 248 seconds]