maestrojed has quit [Quit: Computer has gone to sleep.]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OffTheRails has quit [Ping timeout: 272 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
ghr has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
bousquet has quit []
Spami has joined #ruby
fabrice31 has joined #ruby
TheNet has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
b00stfr3ak has quit [Ping timeout: 252 seconds]
<manzo>
This may be a stupid question, but someone can tell me why the method []= is private for the Matrix class?
fabrice31 has quit [Ping timeout: 245 seconds]
Grantlyk has quit [Remote host closed the connection]
Grantlyk has joined #ruby
CorySimmons has quit [Read error: Connection reset by peer]
CorySimmons has joined #ruby
rimenes has joined #ruby
timgauthier_isaw is now known as timgauthier
doodlehaus has joined #ruby
<atmosx>
manzo: probably because it's for the best. You must ask the developer for the specifics
timgauthier is now known as timgauthier_isaw
GriffinHeart has joined #ruby
Grantlyk has quit [Ping timeout: 272 seconds]
brandonshowers has joined #ruby
xcyclist has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<xcyclist>
Say, is there a specific room I should join to ask a Rails question?
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
xcyclist: #rubyonrails, nick reg is req to speak
tkuchiki has joined #ruby
<xcyclist>
Ok. I will try. My xcyclist should be properly registered. Thank you.
<shevy>
manzo perhaps some other method calls it
bruno- has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
zz_karupa is now known as karupa
<manzo>
atmosx: thanks, I was just wondering if someone around here would know the reason... Looking at the code this is from 2005
Vaxgeek has quit [Remote host closed the connection]
oo_ has joined #ruby
nettoweb has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mikeg has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
benlieb has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
everett__ has quit [Ping timeout: 246 seconds]
benweint has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Remote host closed the connection]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<manzo>
shevy: looking at the code on matrix.rb they may be called from wthin the class by methods like zero or diagonal... Maybe it has something to do with the semanthics of the initialization methods that I cited and others... I'm just guessing, but maybe making them public should not break anything that is not the semanthics
JohnFord has quit [Ping timeout: 246 seconds]
tockitj has quit [Quit: Leaving]
tlarevo has joined #ruby
linojon has quit [Quit: linojon]
lsone has joined #ruby
pu22l3r has quit [Remote host closed the connection]
oo_ has joined #ruby
zwischenzug has quit [Quit: Leaving]
lyuzashi has joined #ruby
w3pm has quit [Quit: This computer has gone to sleep]
benlieb has quit [Quit: benlieb]
linojon has joined #ruby
jponc__ has quit [Quit: Lost terminal]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Zzz...]
oo_ has joined #ruby
CorySimmons has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
everett__ has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
t0rc has quit [Quit: WeeChat 1.0]
troyready has quit [Ping timeout: 245 seconds]
PanPan has joined #ruby
charliesome has joined #ruby
orolo has joined #ruby
atmosx has quit [Quit: Lost in trance]
CorySimmons has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
lampd has joined #ruby
lampd is now known as lampd1
oo_ has joined #ruby
_maes_ has joined #ruby
linojon has quit [Quit: linojon]
TheNet has quit [Remote host closed the connection]
dideler has quit [Ping timeout: 255 seconds]
cougarten_ has joined #ruby
TheNet has joined #ruby
Cooler_ has joined #ruby
emocakes has joined #ruby
andrewjanssen has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linojon has joined #ruby
cirn0 has joined #ruby
havenwood has quit []
jds has quit [Quit: Connection closed for inactivity]
TheNet has quit [Ping timeout: 272 seconds]
maestrojed has joined #ruby
andrewjanssen has quit [Client Quit]
Zesty has joined #ruby
ghostmoth has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
doodlehaus has joined #ruby
tkuchiki has joined #ruby
ericwood_ is now known as ericwood
tylersmith has joined #ruby
maestrojed has quit [Client Quit]
klmlfl_ has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
everett__ has quit [Ping timeout: 252 seconds]
rockdon_ has joined #ruby
shock_one has joined #ruby
TheNet has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 246 seconds]
sleepee has joined #ruby
linojon has quit [Quit: linojon]
bricker`work has quit [Ping timeout: 272 seconds]
shock_one has quit [Ping timeout: 272 seconds]
pork_clips has joined #ruby
linojon has joined #ruby
doodlehaus has quit [Remote host closed the connection]
EasyCo has joined #ruby
bruno- has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
_shrine has joined #ruby
lemur has joined #ruby
rafacv has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
icebourg has joined #ruby
oleo__ has joined #ruby
DrCode has joined #ruby
ta has quit [Ping timeout: 268 seconds]
everett__ has joined #ruby
Cheezebox has joined #ruby
oleo is now known as Guest82040
Guest82040 has quit [Ping timeout: 246 seconds]
britneywright has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rklfn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
rubyonrailed has quit []
yetanotherdave has quit [Quit: Lost terminal]
zettam has quit [Read error: Connection reset by peer]
ch0ke has joined #ruby
rockdon|away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusmyth has joined #ruby
Channel6 has joined #ruby
cndiv has quit [Ping timeout: 240 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
orolo has quit [Quit: This computer has gone to sleep]
InhalingPixels has quit [Remote host closed the connection]
lazyguru has joined #ruby
AzureDiamond has joined #ruby
InhalingPixels has joined #ruby
vinleod has joined #ruby
AzureDiamond has left #ruby [#ruby]
pu22l3r has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 245 seconds]
bwwrd has joined #ruby
_reset has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
orolo has joined #ruby
andrewjanssen has joined #ruby
KC9YDN has quit [Ping timeout: 272 seconds]
emocakes has quit []
andrewjanssen has quit [Client Quit]
amystephen has quit [Quit: amystephen]
emocakes has joined #ruby
<bricker`LA>
I have god monitoring about 20 resque workers, but "god terminate" doesn't kill all of them, and sometimes they don't restart at all, even when a condition is met. The PIDs are configured correctly. I have increased the terminate timeout, but it doesn't help. If I manually send a QUIT signal to individual processes, they die eventually. Using `pkill -QUIT resque` does not work. What should I be looking for?
reset has quit [Ping timeout: 260 seconds]
aspires has quit []
pu22l3r has joined #ruby
<j4jackj>
Please give some context
hamakn has joined #ruby
_reset has quit [Ping timeout: 276 seconds]
<bricker`LA>
j4jackj: resque versions ranging from 1.23 to 1.26, ruby 2.1.1, god 0.13.4, ubuntu 12.03
<bricker`LA>
12.04*
sparrovv has joined #ruby
Spami has joined #ruby
everett__ has quit [Quit: Leaving]
kireevco has quit [Quit: Leaving.]
fabrice31 has joined #ruby
Spami has quit [Client Quit]
sparrovv has quit [Ping timeout: 260 seconds]
kenneth has joined #ruby
<mozzarella>
how can I delete ri and darkfish documentation?
kenneth has quit [Client Quit]
lemur has joined #ruby
fabrice31 has quit [Ping timeout: 267 seconds]
wallerdev has quit [Quit: wallerdev]
fold has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
<j4jackj>
i should really learn Tcl again... ruby seems too complicated for my tastes :/
<Oog>
'hi there test@turi.com'.match(/(.*) ?<?([^<@>]+@[^<@>]+)>?/)
<Oog>
i think it should match
Photism has joined #ruby
mferrier has quit []
jonr22 has quit [Ping timeout: 268 seconds]
andrewjanssen has quit [Quit: Leaving...]
emmesswhy has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
Nj0rd_ has joined #ruby
mikepack has quit [Remote host closed the connection]
lazyguru has quit [Read error: No route to host]
bonhoeffer_ has joined #ruby
rafacv has joined #ruby
BTRE has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
bonhoeffer has quit [Ping timeout: 255 seconds]
bonhoeffer_ is now known as bonhoeffer
ch0ke has quit [Ping timeout: 272 seconds]
jusmyth has quit [Quit: Leaving.]
ghostmoth has joined #ruby
icebourg has joined #ruby
braincrash has quit [Quit: bye bye]
cirn0 has joined #ruby
nairys has joined #ruby
voodoofish has quit [Ping timeout: 276 seconds]
lazyguru has joined #ruby
braincrash has joined #ruby
voodoofish has joined #ruby
ch0ke has joined #ruby
ItSANgo has joined #ruby
cirn0 has quit [Ping timeout: 255 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox has quit [Ping timeout: 240 seconds]
cndiv has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has quit [Remote host closed the connection]
nettoweb has joined #ruby
tlarevo has joined #ruby
<claw>
http://paste.triple6.org/?21 anybody can tell me where my misstake is? i have a array of x and y cordinate and a class Char where every chare has a instance variable @position
<claw>
the method walk lets them walk to their enemy ( battle system )
patrick99e99 has joined #ruby
<claw>
every char has a @team ( id )
<claw>
but the chars move with whole team instead of their own
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Klaus_Dieter has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
nucatus has quit [Remote host closed the connection]
<claw>
e.g. if member1 from team1 moves from 59,52 to 58,51 then member2 from team1 moves from 58,51 to 57,50
<claw>
so position is shared
nucatus has joined #ruby
InhalingPixels has joined #ruby
Klaus_Dieter has joined #ruby
nucatus has quit [Read error: Connection reset by peer]
<claw>
and i dont know why because @position is a instance of char not of team ( team isnt even a class )
<sdegutis>
I shoved a Ruby script into my OS X app's build phase to generate a docs.json file from my app's private source code which gets copied to the app itself so ti can use it at runtime.
<sdegutis>
Just reporting that it was pleasant and works like a charm.
<havenwood>
nice
crdpink has quit [Ping timeout: 276 seconds]
lazyguru has quit [Read error: No route to host]
<arrubin>
Hanmac: Line 10 is never executed though.
nucatus has quit [Remote host closed the connection]
<Hanmac>
hm yeah and that too, but ruby detects that you want to set a local variable
nucatus has joined #ruby
oo_ has quit [Remote host closed the connection]
<arrubin>
Also, is there some reason to prefer self.bar to @bar?
<sdegutis>
Although to be fair, it's a really ugly Ruby file. It's very ad-hoc and it shows.
<havenwood>
arrubin: but generally don't worry about such things, they rarely come up
avita11 has joined #ruby
avita1 has quit [Read error: Connection reset by peer]
Synthead has quit [Read error: Connection reset by peer]
<sdegutis>
I see that in Lua a lot too.
<sdegutis>
(It's even faster in Lua than in Ruby.)
_musl_ has joined #ruby
<sdegutis>
My wife thinks of Luau every time I say Lua.
<havenwood>
moooon
<havenwood>
harvest moon tonight
<sdegutis>
That's what I said too!
<sdegutis>
Oh wait yeah that.
* sdegutis
looks
<havenwood>
mruby!
<havenwood>
lua envy inspired..
ghr has joined #ruby
<arrubin>
havenwood: I only asked because both you and Hanmac used self.bar.
bryanhowarth has quit [Quit: bryanhowarth]
shock_one has quit [Ping timeout: 240 seconds]
<sdegutis>
havenwood: Every time I look at mruby I can't help but wonder why not just use Lua.
<havenwood>
arrubin: Just to show the binding to the bar you were looking for. But @bar.
<Hanmac>
like if you have a speciffic setter method, like doing some convert in the obj.foo = bar, them you need to use self.foo = bar inside your method otherwise you cant call that setter method from the inside
<havenwood>
sdegutis: because... ruby!
<sdegutis>
Ruby in itself is lame, it's the standard libraries that make it useful.
<arrubin>
havenwood, Hanmac: Thank you both.
<sdegutis>
And the fact that it comes with my Mac pre-installed.
jack_rabbit has quit [Ping timeout: 245 seconds]
andrewjanssen has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
<sdegutis>
Hmm.
anaeem1 has joined #ruby
<sdegutis>
Actually, I might want to embed mruby instead of Lua.
<sdegutis>
More people seem to know Ruby than Lua...
lukeholder has joined #ruby
Synthbread has quit [Remote host closed the connection]
<mozzarella>
people don't like 1-based indexes
mary5030 has quit [Remote host closed the connection]
<sdegutis>
Nonsense. I do.
echevemaster has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
duncannz has joined #ruby
Jon-Xie has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
axsuul has quit [Ping timeout: 276 seconds]
TheNet has quit [Quit: Leaving...]
arup_r has quit [Quit: Leaving.]
aspires has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
Fire-Dragon-DoL has quit [Quit: Leaving.]
yacks has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
bricker`LA has joined #ruby
yfeldblu_ has joined #ruby
<eam>
lua has 1 based indexes? I will continue to not use it
<sdegutis>
eam: Dumbest reason ever.
<sdegutis>
*Dumbest objection ever.
<eam>
surely not the dumbest
<eam>
"the name is too short" is an even dumber reason. Q.E.D.
<sdegutis>
It's up there.
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<eam>
I guess another reason is I find no practical applications for it
<eam>
but where's the fun in that
kireevco has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
tlarevo has joined #ruby
<sdegutis>
eam: The best use-case for it is that it's way easier to embed into a C app than Ruby or Python.
bluOxigen has joined #ruby
<sdegutis>
Although mruby looks like it may be viable.. I'm testing it out as we speak.
tlarevo has quit [Remote host closed the connection]
<eam>
sdegutis: bullshit
tlarevo has joined #ruby
GriffinHeart has joined #ruby
<eam>
python and ruby are both impossibly easy to embed
<sdegutis>
eam: I'm not making this up. I've actually done it.
<eam>
so have I (with ruby, and python)
<eam>
literally cannot be easier
<sdegutis>
Yes it can. Try embedding Lua, it's easier.
<eam>
ruby is three lines.
<sdegutis>
Anyway, when I embedded Ruby, it took up 20mb to include some of the stdlib in it.
bMalum has joined #ruby
<eam>
#include <ruby.h>
<eam>
ruby_init();
<eam>
rb_eval_string("puts 'hello world'");
<sdegutis>
Yes I know how it works in code, like I said I've done it.
<sdegutis>
eam: Why do you think mruby exists?
<eam>
size concerns are different than how easy it is in terms of language complexity to embed
<eam>
"lua is lightweight" => yeah totally
<sdegutis>
It's also reentrant.
<sdegutis>
You can have multiple Lua states running in the same app.
kireevco has quit [Quit: Leaving.]
<sdegutis>
Ruby can't do that.
<Nowaker>
sdegutis: is 20 MB a minimum for every mruby app?
wolf__ has quit [Quit: This computer has gone to sleep]
<sdegutis>
Nowaker: No that was Ruby not mruby.
<sdegutis>
Nowaker: mruby doesn't really come with any kind of stdlib.
<havenwood>
(FizzBuzz program using only lambda calculus.)
orolo has quit [Quit: This computer has gone to sleep]
rimenes has joined #ruby
<sdegutis>
seems legit
<havenwood>
that is one reallllly long line of code...
<havenwood>
solution = -> k { -> f { -> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> l { -> x { -> g { -> b { b }[-> p { p[-> x { -> y { x } }] }[l]][x][-> y { g[f[-> l { -> p { p[-> x { -> y { y } }] }[-> p { p[-> x { -> y { y } }] }[l]] }[l]][x][g]][-> l { -> p { p[-> x { -> y { x } }] }[-> p { p[-> x { -> y { y } }] }[l]] }[l]][y] }] } } } }][k][-> x { -> y { -> f { f[x][y] } } }[-> x { -> y { x } }][-> x { -> y {
<havenwood>
x } }]][-> l { -> x { -> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[l][f[x]] } }] } }[-> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> m { -> n { -> b { b }[-> m { -> n { -> n { n[-> x { -> x { -> y { y } } }][-> x { -> y { x } }] }[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p {
<havenwood>
p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]] } }[m][n]][-> x { -> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[f[-> n { -> p { -> x { p[n[p][x]] } } }[m]][n]][m][x] }][-> x { -> y { -> f { f[x][y] } } }[-> x { -
deric_skibotn has quit [Ping timeout: 272 seconds]
<havenwood>
> y { x } }][-> x { -> y { x } }]] } } }][-> p { -> x { p[x] } }][-> p { -> x { p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[x]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] } }]][-> n { -> b { b }[-> n { n[-> x { -> x { -> y { y
<havenwood>
} } }][-> x { -> y { x } }] }[-> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> m { -> n { -> b { b }[-> m { -> n { -> n { n[-> x { -> x { -> y { y } } }][-> x { -> y { x } }] }[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f
<havenwood>
{ f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]] } }[n][m]][-> x { f[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]][n][x] }][m] } } }][n][-> p { ->
<sdegutis>
:|
<havenwood>
x { p[p[p[p[p[p[p[p[p[p[p[p[p[p[p[x]]]]]]]]]]]]]]] } }]]][-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f
<havenwood>
{ f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l {
<havenwood>
-> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> x { -> y { -> f { f[x][y] } } }[-> x { -> y { x } }][-> x { -> y { x } }]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x
<sdegutis>
thanks havenwood
<havenwood>
} }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]]
<havenwood>
} } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]][-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]][-> n { ->
<sdegutis>
ur my hero
<havenwood>
p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n
<havenwood>
{ -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p
<havenwood>
[p[p[x]]]]] } }]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]][-> b { b }[-> n { n[-> x { -> x { -> y { y } } }][-> x { -> y { x } }] }[-> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> m { -> n { -> b { b }[-> m { -> n { -> n { n[-> x { ->
<havenwood>
x { -> y { y } } }][-> x { -> y { x } }] }[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]] } }[n][m]][-> x { f[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { ->
<havenwood>
x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]][n][x] }][m] } } }][n][-> p { -> x { p[p[p[x]]] } }]]][-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y
<havenwood>
{ -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> x { -> y { -> f { f[x][y] } } }[-> x { -> y { x } }][-> x { -> y { x } }]][-> n { -> p { -> x { p[n[p][x]] } } }
<havenwood>
[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] }
<havenwood>
} }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]][-> n {
<sdegutis>
<3
<havenwood>
-> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]][-> b { b }[-> n { n[-> x { -> x { -> y { y } } }][-> x { -> y { x } }] }[-> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> m { -> n { -> b { b }[-> m { -> n { -> n { n[-> x { -> x { -> y { y } } }][-> x { -
<havenwood>
> y { x } }] }[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]] } }[n][m]][-> x { f[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] }
<havenwood>
} }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]][n][x] }][m] } } }][n][-> p { -> x { p[p[p[p[p[x]]]]] } }]]][-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } }
<havenwood>
}[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> x { -> y { -> f { f[x][y] } } }[-> x { -> y { x } }][-> x { -> y { x } }]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x {
<havenwood>
p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-
<havenwood>
> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]]]]][-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> n { -> p { -> x { p[n[p][x]] } } }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]]
<havenwood>
} }]]]]]][-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]][-> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> n { -> l { -> x { -> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> l { -> x { -> g { -> b { b }[-> p { p[-> x { -> y { x } }] }[l]][x][-> y { g[f[->
<havenwood>
l { -> p { p[-> x { -> y { y } }] }[-> p { p[-> x { -> y { y } }] }[l]] }[l]][x][g]][-> l { -> p { p[-> x { -> y { x } }] }[-> p { p[-> x { -> y { y } }] }[l]] }[l]][y] }] } } } }][l][-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x { -> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }[-> x { -> y { -> f { f[x][y] } } }[-> x { -> y { x } }][-> x { -> y { x } }]][x]][-> l { -> x { -> x { -> y { -> f { f[x][y] } } }[-> x {
<sdegutis>
oh for a second i thought it was done
<havenwood>
-> y { y } }][-> x { -> y { -> f { f[x][y] } } }[x][l]] } }] } }[-> b { b }[-> m { -> n { -> n { n[-> x { -> x { -> y { y } } }][-> x { -> y { x } }] }[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x }
<havenwood>
}]]] }][m] } }[m][n]] } }[n][-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }[-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] }
<havenwood>
}][-> p { -> x { p[p[p[p[p[x]]]]] } }]]]][-> x { -> y { -> f { f[x][y] } } }[-> x { -> y { x } }][-> x { -> y { x } }]][-> x { f[-> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> m { -> n { -> b { b }[-> m { -> n { -> n { n[-> x { -> x { -> y { y } } }][-> x { -> y { x } }] }[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p
<Nowaker>
havenwood: nice project mobiruby
<havenwood>
]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]] } }[n][m]][-> x { -> n { -> p { -> x { p[n[p][x]] } } }[f[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }]
<havenwood>
}[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]][n]][x] }][-> p { -> x { x } }] } } }][n][-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[p[p[p[x]]]]] } }]]][x] }]][-> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> m { -> n { -> b { b }[-> m { -> n
<havenwood>
{ -> n { n[-> x { -> x { -> y { y } } }][-> x { -> y { x } }] }[-> m { -> n { n[-> n { -> p { p[-> x { -> y { x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]] } }[n][m]][-> x { f[-> m { -> n { n[-> n { -> p { p[-> x { -> y {
<havenwood>
x } }] }[n[-> p { -> x { -> y { -> f { f[x][y] } } }[-> p { p[-> x { -> y { y } }] }[p]][-> n { -> p { -> x { p[n[p][x]] } } }[-> p { p[-> x { -> y { y } }] }[p]]] }][-> x { -> y { -> f { f[x][y] } } }[-> p { -> x { x } }][-> p { -> x { x } }]]] }][m] } }[m][n]][n][x] }][m] } } }][n][-> m { -> n { n[-> m { -> n { n[-> n { -> p { -> x { p[n[p][x]] } } }][m] } }[m]][-> p { -> x { x } }] } }[-> p { -> x { p[p[x]] } }][-> p { -> x { p[p[
<havenwood>
p[p[p[x]]]]] } }]]] } }][n]]]] }]
<havenwood>
oh, sorry
<havenwood>
err
<havenwood>
didn't mean to paste the entire thing here, meant the link >.>
<sdegutis>
:)
<eam>
all I see is blonde, brunette
* sdegutis
is laughing out loud
<mozzarella>
stop clogging up the tubes
<sdegutis>
dont make me laugh out loud when my wife and kids are sleeping!
<Nowaker>
lol
<sdegutis>
i have successfully run mruby in a small C app
<Nowaker>
gotta sleep, 7am here ;/
<sdegutis>
whoa
<sdegutis>
night owl?
slester has quit [Ping timeout: 264 seconds]
<Nowaker>
yep
<sdegutis>
SLEEP NOW.
<eam>
what's the runtime profile of mruby vs ruby?
<Nowaker>
ok
txdv has quit [Read error: Connection reset by peer]
Lewix has quit [Read error: Connection reset by peer]
<sdegutis>
hence "SLEEP NOW."
orolo has joined #ruby
<sdegutis>
make more sense?
<Nowaker>
yes
<sdegutis>
good.
<Nowaker>
byes
Lewix has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
modernbob has joined #ruby
modernbob has quit [Changing host]
modernbob has joined #ruby
bMalum has quit [Quit: bMalum]
<Hanmac>
zenspider: hey you did write that graph thing right? i have some problems doing colorscheme with my own dot files ... but i dont know what when wrong ...
mr-foobar has quit [Quit: Leaving...]
JohnFord has quit [Ping timeout: 240 seconds]
MaciejCzyzewski has joined #ruby
bruno- has joined #ruby
saarinen has joined #ruby
oleo__ has quit [Quit: Verlassend]
mercwithamouth has joined #ruby
BlkDynmt_ has quit [Quit: BlkDynmt_]
MaciejCzyzewski has quit [Client Quit]
robbyoconnor has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
crdpink has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
kireevco has joined #ruby
crdpink2 has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Client Quit]
Lewix has quit [Read error: Connection reset by peer]
cirn0 has joined #ruby
Lewix has joined #ruby
shock_one has joined #ruby
BlkDynmt has joined #ruby
arup_r has joined #ruby
danijoo_ has joined #ruby
Jon-Xie has joined #ruby
kireevco has joined #ruby
Synthead has joined #ruby
danijoo has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
mikepack has joined #ruby
ghostmoth has joined #ruby
kireevco has quit [Client Quit]
jusmyth has joined #ruby
ghostmoth has quit [Client Quit]
cirn0 has quit [Ping timeout: 260 seconds]
<EasyCo>
Is there a ruby array method that you can use to loop through all items of an array checking for true/false values and have it stop if it find a false value? Other than using Array#each
kireevco has joined #ruby
wolf__ has joined #ruby
<sevenseacat>
something like all?
<mocfive>
detect?
mikepack has quit [Ping timeout: 272 seconds]
shock_one has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Quit: Space~~~]
relix has joined #ruby
<EasyCo>
all?
<EasyCo>
That's the one
<EasyCo>
Thanks, couldn't find it
Synthead has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
reset has joined #ruby
toordog has joined #ruby
p0sixpscl has joined #ruby
incomprehensibly has quit []
incomprehensibly has joined #ruby
Dreamer3 has quit [Ping timeout: 245 seconds]
kireevco has quit [Quit: Leaving.]
devdazed has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
febuiles has quit [Read error: Connection reset by peer]
emocakes has quit []
devdazed has joined #ruby
tectonic has joined #ruby
kenneth has joined #ruby
sigurding has joined #ruby
mary5030 has joined #ruby
Channel6 has quit [Quit: Leaving]
felixjet_ has quit [Quit: Leaving]
felixjet has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
sigurding has quit [Client Quit]
ch0ke has joined #ruby
shock_one has joined #ruby
timonv_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 264 seconds]
jxf has quit [Ping timeout: 272 seconds]
TommeHo has joined #ruby
tobago has joined #ruby
Kerber0s has joined #ruby
fabrice31 has joined #ruby
anildigital is now known as zz_anildigital
havenwood has joined #ruby
Tomme has quit [Ping timeout: 268 seconds]
starkhallo has quit [Ping timeout: 246 seconds]
ch0ke has quit [Read error: Connection reset by peer]
BlkDynmt has quit [Quit: BlkDynmt]
tagrudev has joined #ruby
ch0ke has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
emocakes has joined #ruby
speaking1ode has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
speakingcode has quit [Ping timeout: 255 seconds]
shock_one has quit [Quit: Computer has gone to sleep.]
dapz has joined #ruby
icebourg has quit []
orolo has joined #ruby
dapz has quit [Client Quit]
crdpink2 has joined #ruby
tlarevo_ has joined #ruby
crdpink has quit [Ping timeout: 264 seconds]
BadQuanta has joined #ruby
ghanima has joined #ruby
apeiros has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
apeiros has joined #ruby
tlarevo has quit [Ping timeout: 264 seconds]
TommeHo has quit [Ping timeout: 260 seconds]
zorak8 has quit [Ping timeout: 252 seconds]
CaptainJet has quit []
tectonic has quit []
codecop has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jon-Xie has quit [Remote host closed the connection]
dapz has joined #ruby
xvq17 has joined #ruby
cndiv has quit [Ping timeout: 276 seconds]
fold has joined #ruby
timonv_ has joined #ruby
bal has joined #ruby
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has joined #ruby
Jon-Xie has joined #ruby
ghr has joined #ruby
BraddPitt has quit [Ping timeout: 260 seconds]
ch0ke has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
BadQuanta has quit [Ping timeout: 272 seconds]
shock_one has joined #ruby
InhalingPixels has joined #ruby
nfk has joined #ruby
ht__th has joined #ruby
TommeHo has joined #ruby
mr-foobar has joined #ruby
himsin has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
BlkDynmt has joined #ruby
JBreit has joined #ruby
<claw>
http://paste.triple6.org/?23 why is @position changing for both instances of Test when using Test.move here ?
absolutezeroff has quit [Ping timeout: 264 seconds]
Soda has quit [Remote host closed the connection]
<claw>
anybody can help ?
bMalum has joined #ruby
JBreit has left #ruby [#ruby]
<claw>
if i use m1.move m2 also moves
<claw>
they are always the same
Lewix has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
Px12 has joined #ruby
<Hanmac>
claw because "m1","m2" are currently at the same position, do you want that? and it does use the same Array object ... thats why they are currently linked ...
<Hanmac>
use $array << Test.new(x,position.dup)
goshdarnyou has quit [Quit: Connection closed for inactivity]
<claw>
okay
<claw>
lets see
nairys has quit [Quit: nairys]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
fabrice31 has joined #ruby
<claw>
okay that works
abuzze has quit [Remote host closed the connection]
w3pm has joined #ruby
<claw>
but m1 and m2 are different instances why are there @position instance variables are always the same ?
danijoo_ has quit [Read error: Connection reset by peer]
Scotteh has joined #ruby
<claw>
that did not make sense to me
Px12 has quit [Remote host closed the connection]
danijoo has joined #ruby
jgrevich has joined #ruby
<claw>
okay i guess reading about dup awnsers my question
<claw>
thank you Hanmac
Px12 has joined #ruby
Rollabunna has quit [Quit: Leaving...]
Scotteh has quit [Ping timeout: 245 seconds]
w3pm has quit [Quit: This computer has gone to sleep]
bruno- has joined #ruby
timonv_ has quit [Remote host closed the connection]
Kerber0s has quit []
timonv_ has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
postmodern has joined #ruby
timonv_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
yfeldblu_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
orolo has joined #ruby
tylersmith has joined #ruby
linojon has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Ping timeout: 272 seconds]
cleopatra has quit [Remote host closed the connection]
crdpink has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
tylersmith has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
crdpink2 has quit [Ping timeout: 264 seconds]
niklasb has quit [Quit: WeeChat 0.4.3]
himsin has quit [Quit: himsin]
niklasb has joined #ruby
bMalum has quit [Quit: bMalum]
gauke has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has joined #ruby
sirene has joined #ruby
linojon has quit [Quit: linojon]
kaspergrubbe has joined #ruby
atmosx has joined #ruby
<atmosx>
good morning
ptrrr has joined #ruby
w3pm has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
kalusn has joined #ruby
sparrovv has joined #ruby
Takle has quit [Remote host closed the connection]
Morkel has joined #ruby
apeiros has joined #ruby
cirn0 has joined #ruby
ht has joined #ruby
emocakes has quit []
Juanchito has joined #ruby
mikepack has joined #ruby
w1xz has joined #ruby
sk87 has joined #ruby
ht__th has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
tobyo has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
myeyesareblind has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 276 seconds]
Px12 has quit [Ping timeout: 276 seconds]
Ruhk has quit []
patrick99e99 has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
rockdon_ has joined #ruby
lemur has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
lemur has joined #ruby
rockdon_ is now known as rockdon|away
Advocation has joined #ruby
InhalingPixels has joined #ruby
emocakes has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
spider-mario has joined #ruby
arup_r has quit [Remote host closed the connection]
jhass|off is now known as jhass
spider-mario has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
InhalingPixels has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
awestroke has joined #ruby
sparrovv has quit [Remote host closed the connection]
rockdon|away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
timonv_ has joined #ruby
sparrovv has quit [Ping timeout: 276 seconds]
chth0n has joined #ruby
Guest54785 has quit [Ping timeout: 246 seconds]
fold has quit [Ping timeout: 245 seconds]
bMalum has joined #ruby
rockdon_ has joined #ruby
bruno- has joined #ruby
myeyesareblind has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
elaptics`away is now known as elaptics
cougarten has joined #ruby
ch0ke has joined #ruby
qba73 has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
<mostlybadfly>
Buenos días
wpp has joined #ruby
ta has joined #ruby
threesixes has quit [Remote host closed the connection]
sparrovv has joined #ruby
max06 has joined #ruby
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
orolo has quit [Quit: This computer has gone to sleep]
abuzze has joined #ruby
Takle has quit [Remote host closed the connection]
ta has quit [Client Quit]
tobyo has joined #ruby
Guest62656 has quit [Excess Flood]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skarn has joined #ruby
skarn is now known as Guest42178
arup_r has joined #ruby
charliesome has quit [Quit: zzz]
ta has joined #ruby
jusmyth1 has joined #ruby
jusmyth has quit [Read error: Connection reset by peer]
abuzze has quit [Ping timeout: 272 seconds]
orolo has joined #ruby
abuzze has joined #ruby
hanjianwei has joined #ruby
dopiee has joined #ruby
sigurding has quit [Quit: sigurding]
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
andrewlio has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
emocakes has quit []
m4rCsi has joined #ruby
tobyo has quit [Ping timeout: 272 seconds]
dopie has quit [Ping timeout: 240 seconds]
Px12 has joined #ruby
michael_mbp has quit [Excess Flood]
mikecmpbll has joined #ruby
sigurding has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mupkoo has joined #ruby
michael_mbp has joined #ruby
Xeago has joined #ruby
lkb has joined #ruby
jusmyth1 has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
kaspertidemann has joined #ruby
jusmyth has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
lkba has joined #ruby
timonv_ has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niklasb has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
kennet___ has joined #ruby
a has joined #ruby
a is now known as Guest10606
kenneth has quit [Ping timeout: 264 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
ghr has joined #ruby
UKn0Me is now known as allthehats
kriskropd has quit [Ping timeout: 255 seconds]
existensil has quit [Ping timeout: 240 seconds]
W0rmDr1nk has quit [Ping timeout: 268 seconds]
lukeholder has joined #ruby
yfeldblum has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
lukeholder has quit [Max SendQ exceeded]
Advocation has quit [Quit: Advocation]
roolo has joined #ruby
axsuul has quit [Ping timeout: 268 seconds]
lukeholder has joined #ruby
existensil has joined #ruby
jle` has quit [Quit: WeeChat 0.4.2]
kriskropd has joined #ruby
jle` has joined #ruby
cougarten_ has joined #ruby
jle` has quit [Changing host]
jle` has joined #ruby
stef_204 has joined #ruby
marr has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
olivier_bK has joined #ruby
Advocation has joined #ruby
Guest10606 has quit [Ping timeout: 252 seconds]
gaussblurinc1 has joined #ruby
Jake232 has joined #ruby
Jon-Xie has quit [Remote host closed the connection]
einarj has joined #ruby
j4jackj is now known as ^-^
amclain has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
yfeldblum has joined #ruby
jgrevich has quit [Quit: jgrevich]
ephemerian has joined #ruby
tvw has quit []
jgrevich has joined #ruby
Farioko has joined #ruby
<Farioko>
I'm playing with sinatra, and want to use activerecord. Now when I run rake -T it says it can't find app.
InhalingPixels has quit [Ping timeout: 276 seconds]
<canton7>
there's not nearly enough information there to debug your problem
<canton7>
adding ActiveRecord won't break your rakefile
Xeago has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
InhalingPixels has quit [Ping timeout: 268 seconds]
postmodern has quit [Quit: Leaving]
tvw has joined #ruby
timgauthier_isaw is now known as timgauthier
baum has joined #ruby
TommeHo has quit [Ping timeout: 246 seconds]
sk87 has joined #ruby
agjacome has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duncannz has quit [Ping timeout: 276 seconds]
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
joast has quit [Ping timeout: 255 seconds]
krisquigley has joined #ruby
ephemerian has joined #ruby
<krisquigley>
Hi, I'm looking for an SQL guru
AlSquire has joined #ruby
<krisquigley>
I am using this statement (which is not correct) in postgres: ELECT tags.name,(SELECT count(*) FROM tags WHERE tags.status = 'strength') - (SELECT count(*) FROM tags WHERE tags.status = 'weakness') AS difference FROM tags WHERE updated_at BETWEEN now() - interval '7 days' AND now() GROUP BY tags.name;
kaspergrubbe has quit [Remote host closed the connection]
<krisquigley>
Basically, I want to work out the difference between the status' on the same tag.name
kaspergrubbe has joined #ruby
<krisquigley>
Is there a way of passing 'self' or equivalent in postgres?
<krisquigley>
i.e.:
<jhass>
krisquigley: #postgresql ?
<krisquigley>
SELECT tags.name,(SELECT count(*) FROM tags WHERE tags.status = 'strength' AND tags.name = self) - (SELECT count(*) FROM tags WHERE tags.status = 'weakness' AND tags.name = self) AS difference FROM tags WHERE updated_at BETWEEN now() - interval '7 days' AND now() GROUP BY tags.name;
<krisquigley>
ok, will try that channel. Thanks :)
RasElg00l has joined #ruby
tokik has quit [Ping timeout: 260 seconds]
<Farioko>
canton7: Are you familiar with Sinatra?
kaspergrubbe has quit [Remote host closed the connection]
dawkirst has joined #ruby
saarinen has quit [Quit: saarinen]
orolo has quit [Quit: This computer has gone to sleep]
Macaveli has quit [Read error: Connection reset by peer]
<canton7>
Farioko, I've used it a fair few times
timgauthier is now known as timgauthier_isaw
diegoviola has joined #ruby
<Farioko>
canton7: Would you take a look at what i'm doing wrong?
<shevy>
the rails world does not teach people ruby :(
dumdedum_ has quit [Quit: foo]
<tobiasvl>
Farioko: you have told ruby to do something with a class called Temperature, but you haven't defined what Temperature is. ruby doesn't know what it is. it's a random word for ruby.
Advocation has quit [Quit: Advocation]
<tobiasvl>
if this is rails stuff, try #rubyonrails
<canton7>
this is sinatra + activerecord
<tobiasvl>
oh okay.
banister has joined #ruby
<canton7>
which is why his pastie was sinatra, and the github page he linked to was called "sinatra-activerecord"
<tobiasvl>
yeah, I just went off what shevy said
nairys has quit [Quit: nairys]
<canton7>
shevy never reads anything ;)
realDAB has joined #ruby
<shevy>
activerecord originated from the rails world
<Hanmac>
but still activerecord questions are more easier anwserd in #rubyonrails than there
<Hanmac>
shevy: its the spawn of the devil ! ;P
<shevy>
more like a leaky virus
<shevy>
making sinatra more railsy
<shevy>
and people dumber
<canton7>
Sequel all the way
<shevy>
hahahaha :D
realDAB has quit [Client Quit]
<shevy>
Farioko a constant in ruby starts with the first character uppercased. all class and modules are that way. class Foo but not class foo, same with modules
fabrice31 has quit [Remote host closed the connection]
<shevy>
so, class Temperature. If you want to add class methods to that, one way would be: class Temperature; def self.all; end; end; Temperature.all
<Farioko>
ok, I will try
<shevy>
could be module Temperature too of course. module Temperature; def self.name_here; end; end; Temperature.name_here
<canton7>
in his case it's 'class Temperature'
<canton7>
please stop trying to confuse him ;)
<shevy>
he will learn the basics here
<shevy>
he is clever
<canton7>
not with you spamming random syntax at him :P
<shevy>
the railsers just did not explain this to him yet
<shevy>
it is not random at all, it is modeled to his specific use case in question
<tsunamie>
hi guys, I am a total ruby noob and building a chef cookbook. I tried the following line in .erb <% if ssl = "true" %>
<tsunamie>
<% end %>. Basicly what I wanted was if a value is set to true print the following in a configuration. However it does'nt work as expected IS this really what I have to put into a erb file?
<tsunamie>
SSLEngine on
<shevy>
tsunamie what is this code doing: if ssl = "true"
RasElg00l has quit [Ping timeout: 268 seconds]
<tsunamie>
shevy, if a value in chef is true
<tobiasvl>
no
<jhass>
tsunamie: = is assignment
<shevy>
tsunamie remember you are writing ruby code
<jhass>
you want ==
<shevy>
so in the above example you assign the string "true" to a variable called ssl
<tsunamie>
sorry thanks
<tobiasvl>
that would be `if ssl == "true"` (or probably more likely you can just do `if ssl`? unless ssl truly is a string)
<tsunamie>
tobiasvl, it's a bolean in chef
<shevy>
ssl is more a wreck than a string
mengu has joined #ruby
<shevy>
in chef :)
kaspertidemann has quit []
<shevy>
that's the new programming language for housewives
<shevy>
for cooking
<tsunamie>
:)
<tsunamie>
thanks
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl>
tsunamie: okay, then be aware that "true" is not the same as true. the former is a string (which evaluates to the boolean value true in ruby), the latter is a boolean value
<tobiasvl>
in ruby, everything evaluates to true except nil and false
<Hanmac>
hey! who uses my gemtree with Gemfile's? because it does now colorize with colorschemas ;P
<tobiasvl>
tsunamie: just something to watch out for although it doesn't impact that piece of code
<shevy>
Hanmac havenwood does
<tsunamie>
tobiasvl, so if ssl is sufficient
<Hanmac>
shevy: yes, but he already knows and is also currently not online yet
<tsunamie>
thanks guys
<tobiasvl>
tsunamie: should be, unless you specifically need to check if ssl has the string value "true"
<tsunamie>
I love this channel, details explaination of what is what rather than a 5 minute's of abuse
<shevy>
the = vs == happens often
<tsunamie>
tobiasvl, naaa, ssl is set to true as a bolean in chef
<shevy>
that's why you need to have good eyesight
Rollabunna has joined #ruby
<atmosx>
hello
<shevy>
the worst typos I made were this
<shevy>
def intialize
mikecmpbll has quit [Read error: Connection reset by peer]
<shevy>
and I spent about 20 minutes debugging stuff
<shevy>
hey atmosx
Macaveli has joined #ruby
Jon-Xie has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
dblessing has joined #ruby
cirn0 has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
elstif has joined #ruby
Jon-Xie has joined #ruby
intuxicated has quit [Ping timeout: 260 seconds]
<Farioko>
shevy: lovely now it does execute the SQL and doesn't return anything, because there is nothing in the database
toretore has joined #ruby
Takle has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
cirn0 has quit [Ping timeout: 255 seconds]
Jon-Xie has quit [Ping timeout: 268 seconds]
shredding has joined #ruby
ctp has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
cougarten has joined #ruby
balance has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<balance>
hi, can someone tell me why the following is the same as if I'd inherit Timeline and call super instead of old_print? https://gist.github.com/anonymous/0a3386b086cfa69edf2d Can't see how alias_method refers to the "parent".
Takle has joined #ruby
<tobiasvl>
there's no parent, it's opening det same class
<balance>
tobiasvl, notice the ""
<tobiasvl>
funny that Class is uppercase. does that work? I know Class is a valid constant, but …
<Hanmac>
tobiasvl: "Class Timeline" ... that is a syntax error
InhalingPixels has joined #ruby
<tobiasvl>
would think so, yeah
<Hanmac>
hm ok its not, its a "NoMethodError" but you know what i mean
<balance>
tobiasvl, ah yeah, I wquickly wrote it, it's not in use, so sry if there are syntax errors. I leanred that alias_method cna be used to create an alias to a method within a class. Basically having 2 names for 1 method, but somehow, it also reverse to overwritten methods.
zettam has joined #ruby
<tobiasvl>
balance: well, what's happening here is monkey patching
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140825202822]]
intuxicated has joined #ruby
<tobiasvl>
the class is reopened and the print method is re-defined
<tobiasvl>
but before the method is overwritten by the new definition, the old method is saved as an alias
<jhass>
balance: alias_method copies the method to the new name, while the alias keyword just assigns a new name
<Hanmac>
tobiasvl: for java its called "money-patching" ;P
<tobiasvl>
Hanmac: lol
<balance>
aahh thanks tobiasvl now I get it, I alsways though how this should work, but yeah, you hit it. :P
<balance>
thanks
<Hanmac>
tobiasvl: alias_method does asign a new name too, its also similar to alias in that point
kaspergrubbe has joined #ruby
lkba has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
Steve has joined #ruby
<tobiasvl>
yeah
Tomme has joined #ruby
lkb has joined #ruby
<Hanmac>
>> class A; def abc;end; end; class A; alias_method :xyz, :abc; end; A.instance_method(:xyz)
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cougarten_ has joined #ruby
KC9YDN has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
Jon-Xie has joined #ruby
tlarevo has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
sigurding has quit [Quit: sigurding]
timgauthier_isaw is now known as timgauthier
krz has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Ping timeout: 245 seconds]
fold has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
SouL has quit [Ping timeout: 276 seconds]
w1xz has quit [Ping timeout: 245 seconds]
zettam has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
sigurding has joined #ruby
fold has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
orolo has quit [Quit: This computer has gone to sleep]
Tomasso has joined #ruby
jusmyth1 has left #ruby [#ruby]
sigurding has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
zettam has joined #ruby
tkuchiki_ has quit [Ping timeout: 264 seconds]
zettam has quit [Read error: Connection reset by peer]
karupa is now known as zz_karupa
timonv_ has quit [Remote host closed the connection]
zettam has joined #ruby
orolo has joined #ruby
nfk has quit [Quit: yawn]
ctp has joined #ruby
doodlehaus has joined #ruby
armyriad has quit [Ping timeout: 276 seconds]
<balance>
How is this #{} calledi n ruby? e.g. define_method "runs_on_#{system.downcase}?"
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<workmad3>
balance: string interpolation
<tobiasvl>
interpolation
<Hanmac>
workmad3: do you use bundler Gemfiles too?
<balance>
ty tobago workmad3
<workmad3>
Hanmac: yes I do
krisquigley has quit [Remote host closed the connection]
<Hanmac>
for my gemtree: https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a newest option "--gemfile-colorscheme reds" with that the different groups inside the Gemfile are colorated differently (depending on the colorschema)
<workmad3>
Hanmac: fun :)
nucatus has joined #ruby
<Hanmac>
yeah did take me long enough until i noticed that my nodes does have the wrong shape for the current fill style ;P
<Cork>
i have a variable with a name of a global variable (except the $)
<Cork>
is there an alternative to eval to access that variable from a function inside the class?
<Cork>
eval("$#{ v_name }")
<Cork>
opps
<Cork>
meant @
jottr_ has joined #ruby
<shevy>
so ugly
<Cork>
sure
<balance>
Would you prefere the first example over the second?
<mityaz>
but I need to get an error on calling foo in B
cocotton has quit [Remote host closed the connection]
phoo1234567 has quit [Max SendQ exceeded]
jottr_ has joined #ruby
phoo1234567 has joined #ruby
techsethi has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
<Hanmac>
mityaz: hm you can add a "self.class == A" check inside of the private method ... but that protection can still be broken ...
Farioko has quit [Quit: Page closed]
rimenes has joined #ruby
ndrei has joined #ruby
Cheezebox has joined #ruby
bweston92 has joined #ruby
dblessing has quit [Quit: dblessing]
<bweston92>
If bundle isn't installed on a server (and server admins won't install (php freaks)) would I be able to download the bundle files (only 1 dependency anyhow) and put them in the project anywhere?
krz has quit [Quit: WeeChat 1.0]
<jhass>
not easily
<jhass>
what level of access do you have?
jottr_ has quit [Ping timeout: 272 seconds]
HelperW has joined #ruby
<bweston92>
jhass: everything but sudo
<jhass>
try gem install --user-install bundler
<jhass>
and make sure to take care of the warning it may print
JohnFord has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
then in your app bundle install --deployment
jottr_ has joined #ruby
<gregf_>
mityaz: i'm sure thats not possible in java :/
fsapo has joined #ruby
fabrice31 has joined #ruby
<gregf_>
which means ruby does not preserve encapsulation? :/
<workmad3>
gregf_: it is possible in java
<workmad3>
gregf_: if you mess around with the reflection API
mupkoo has quit [Remote host closed the connection]
<workmad3>
gregf_: ruby's reflection stuff is just a bit easier to do
<bweston92>
jhass: Got bundler to install, bundler deployment also works, issue now is require cannot load such file. Any ideas?
<bweston92>
Works locally
<gregf_>
well, even mocking a private method for tests is difficult without reflection :/
<jhass>
bweston92: bundle exec $whatever
orolo has quit [Quit: This computer has gone to sleep]
Advocation has quit [Quit: Advocation]
yfeldblum has joined #ruby
<mityaz>
so, there is no way to do it? ok, let's assume I'm not going to use magic with reflections, just simple restriction
<bweston92>
jhass: Says install missing gems, I had just install them though :s sorry for being annoying, just coming into the ruby world
GriffinHeart has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 245 seconds]
<jhass>
and you do that in the same dir you did bundle install --deployment ?
<jhass>
and that did print a green success message?
Behi has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
<bweston92>
Yes, I now have a folder vendor, with the gem "escort" my dependency deep down
dideler has joined #ruby
<jhass>
mmh, weird
<jhass>
any chance you can make a gist or pastie with copy pasting everything you did so far?
<Hanmac>
apeiros: and? did that image satificed you in your guestion? (as you did see rdoc is requested by both default and development)
mr-foobar has quit [Quit: Leaving...]
albedoa has joined #ruby
mary5030 has quit [Remote host closed the connection]
jobewan has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
Cheezebox has quit [Remote host closed the connection]
cougarten has joined #ruby
paulfm has joined #ruby
Hien has joined #ruby
Hien has quit [Changing host]
Hien has joined #ruby
Hien has quit [Client Quit]
Cheezebox has joined #ruby
Cheezebox has quit [Remote host closed the connection]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
Cheezebox has joined #ruby
<GeorgesLeYeti>
How could i verify if a folder get a least 1 *.mp3 file present ?
<GeorgesLeYeti>
Like File.exists?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
GeorgesLeYeti Dir['*.mp3'].size > 0
sprihodko has joined #ruby
toretore has quit [Ping timeout: 272 seconds]
sailias has quit [Read error: Connection reset by peer]
<GeorgesLeYeti>
shevy: ty a lot
sailias1 has joined #ruby
sailias1 is now known as sailias
davedev2_ has quit []
<shevy>
you have to pass the location towards Dir[] of course, like Dir['/my_audio_files/*.mp3']
<shevy>
\o/
<canton7>
Dir['**/*.mp3'].any? is another way, also checking recursively
davedev24_ has joined #ruby
<Hanmac>
or use Dir.chdir(path) { ... }
<centrx>
may need to turn on globstar for **
<p0sixpscl>
speaking of Dir. why do they use brackets instead of () to call? because of any design pattern?
tagrudev has quit [Quit: Me = Awesome]
<Mon_Ouie>
"turn on globstar"?
<sdegutis>
So, how would you add fixnums in mruby using the C API?
<GeorgesLeYeti>
shevy: yes ofc i add the location
DaveTaboola has quit [Quit: Page closed]
bluOxigen has joined #ruby
<centrx>
Mon_Ouie, maybe that's only in bash and ** it works seamlessly in Ruby
mijicd has joined #ruby
cougarten_ has joined #ruby
f0ster has joined #ruby
<Hanmac>
p0sixpscl: Dir[] like Hash[] are methods on the class ... Array() is a method on the Kernel module
<centrx>
Mon_Ouie, in bash you can do ls a/**/b.txt for any intervening directory structure, but you have to turn on globstar to do it
<p0sixpscl>
ah good to know
Hien has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
britneywright has joined #ruby
Tricon has quit [Quit: Leaving...]
oleo has quit [Ping timeout: 245 seconds]
oleo has joined #ruby
livingstn has joined #ruby
momomomomo has joined #ruby
Channel6 has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
mary5030 has joined #ruby
<Hanmac>
shevy do you like the colored output of my gemtree? http://i.imgur.com/Wb40yNn.png ... the colorscheme can be set with parameter
mary5030 has quit [Remote host closed the connection]
JohnFord has joined #ruby
Soda has joined #ruby
mary5030 has joined #ruby
anarang has quit [Quit: Leaving]
awestroke has quit [Remote host closed the connection]
<apeiros>
Hanmac: nice. do you use .dot?
sylvanica has joined #ruby
fgo has quit [Remote host closed the connection]
Cheezebox has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
ephemerian has quit [Quit: Leaving.]
Cheezebox has joined #ruby
<sdegutis>
What is the advantage of embedding mruby into a GUI app vs Ruby itself?
ptierno has joined #ruby
Kricir has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
<Hanmac>
apeiros: yes, currently its .dot output only or in my case i pipe it directly to dot "/home/hanmac/scripts/gemtree.rb --gemfile Gemfile --only-gemfile --gemfile-colorscheme reds | dot -Tpng -oout.png; eog out.png"
cocotto__ has quit [Remote host closed the connection]
<centrx>
sdegutis, you can distribute it in a compiled binary?
rafacv has joined #ruby
rafacv has left #ruby [#ruby]
St_Marx has joined #ruby
<sdegutis>
What, Ruby?
mijicd has quit [Remote host closed the connection]
<Mon_Ouie>
mruby can have multiple completely separate VMs so you could potentially load multiple scripts that would never change the state of one another, Ruby uses global state
mengu has joined #ruby
benzrf|offline is now known as benzrf
toretore has joined #ruby
snath has quit [Ping timeout: 246 seconds]
cocotton has joined #ruby
matchaw has quit [Ping timeout: 252 seconds]
<sdegutis>
Ah.
<sdegutis>
I'm okay with global state :)
matchaw has joined #ruby
workmad3 has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
AlSquire has joined #ruby
nettoweb has quit [Max SendQ exceeded]
Kricir has quit [Write error: Broken pipe]
nettoweb has joined #ruby
<shevy>
mruby is fast
Kricir has joined #ruby
<sdegutis>
Ruby isn't too slow.
Jackneill has joined #ruby
shackleford has joined #ruby
<shevy>
perl is faster
<sdegutis>
Nobody uses perl.
shackleford has quit [Remote host closed the connection]
klmlfl has joined #ruby
shackleford has joined #ruby
<diegoviola>
I can't find any ruby work (remote) lately, this sucks
lampd1 has quit []
<sdegutis>
:(
<diegoviola>
and I really don't want to go back to Java or PHP
<shevy>
diegoviola then you need to cut away from their share
AlSquirrel has joined #ruby
<diegoviola>
what do you mean?
lemur has joined #ruby
Squarepy has quit [Quit: Leaving]
mupkoo has quit [Remote host closed the connection]
AlSquire has quit [Read error: Connection reset by peer]
<workmad3>
diegoviola: convince clients looking for Java or PHP jobs done that they want it done in ruby instead
TheNet has quit [Quit: Leaving...]
iamjarvo has joined #ruby
mikepack has joined #ruby
<shevy>
diegoviola well, there is a reason why they use X or Y
<shevy>
so you want to give them Z, so you must reason
klmlfl has quit [Read error: Connection reset by peer]
definiv has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
klmlfl has joined #ruby
joast has joined #ruby
definiv has quit [Client Quit]
ffranz has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
zz_anildigital is now known as anildigital
freerobby has joined #ruby
<workmad3>
shevy: I was listening to a ruby rogues podcast today and your name came up btw ;)
terlar has joined #ruby
<shevy>
was that because I said compile from source
<workmad3>
shevy: yeah
<shevy>
\o/
zeroNones has joined #ruby
<shevy>
eventually I'll have ruby bootstrap a linux from scratch system
yfeldblum has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
<ddv>
is shevy famous?
<ddv>
<3
<bweston92>
shevy: compile from source?
<workmad3>
ddv: he's famous for saying you should compile ruby from source
<shevy>
Cookbooks: 2648 programs are registered in our cookbooks
<shevy>
yeah bweston92
ohcibi_ is now known as ohcibi
AlSquirrel has quit [Read error: Connection reset by peer]
<bweston92>
meaning compile ruby from source ruby?
<shevy>
actually compile everything
mikepack has quit [Ping timeout: 255 seconds]
<ddv>
I can't wrap my head around that
Atrumx has joined #ruby
<wasamasa>
well
* workmad3
is going to start suggesting that you should compile everything from sauce
<wasamasa>
there's a bunch of languages that pull this off
<wasamasa>
bootstrapping their build with an older binary
<bweston92>
Hmm, I can't wrap my head around compiling gems etc either
<centrx>
diegoviola, You want to be the general person a team or company wants to help them do things, whatever language that is
<wasamasa>
like rust and some lisp implementations
<shevy>
bweston92 no, these are usually autogenerate Makefiles in ext/ using extconf.rb usually, it's in the end just gcc and make that do the job here
<wasamasa>
gcc, too
<centrx>
diegoviola, and often that language is going to be Ruby, because it is good and effective for their needs, and because you are already good at it
<workmad3>
centrx: I prefer to tell clients 'You can have whatever language you want, as long as it's ruby'
milkohol has joined #ruby
<shevy>
but I aim big! for the world!
<workmad3>
wasamasa: it's pretty common to bootstrap a compiler to the point you can write the compiler in the target language
drawingthesun has quit [Ping timeout: 276 seconds]
<bweston92>
shevy: First day of ruby, no idea what you're going on about :)
<shevy>
down with cmake, down with rake, down with make, down with GNU auto*, down with libtool, down with waf, down with everything
Alina-malina has quit [Ping timeout: 255 seconds]
<wasamasa>
shevy: good luck
<shevy>
wasamasa luck is not needed, only work
<bweston92>
shevy: Hard work pays off :)
<workmad3>
shevy: mad work, amirite?
Alina-malina has joined #ruby
ItSANgo has joined #ruby
<wasamasa>
shevy: what will your build tool be called?
<shevy>
wasamasa I renamed them about 10 times already
<workmad3>
shevy: call it 'build'
<gerep>
I'm looking for a gem to create a torrent server and manage those torrents, I've been looking but didn't find anything, does anyone here knows of something like that?
drawingthesun has joined #ruby
<wasamasa>
shevy: I propose dish, as in dishevel
<shevy>
build is a bit too generic
<workmad3>
shevy: then the command line interface is 'build ruby'
<shevy>
dishevel does not really reveal intent
<shevy>
workmad3 well that is a bit better
<gerep>
I need a torrent server and also need to control those torrents download
<wasamasa>
shevy: well, it contains 80% of your name
<workmad3>
'build my_awesome_crap'
<diegoviola>
it sounds like I'm going to have to bite the bullet and do java and php programming
<diegoviola>
ugh
<shevy>
wasamasa I usually call things close to what they should do
<workmad3>
shevy: my only other suggestion is 'shiv'... as in 'shiv ruby'
bweston92 has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 246 seconds]
<wasamasa>
workmad3: but shivs are for crazy lispers!
<workmad3>
wasamasa: and gangstas
<workmad3>
wasamasa: we want to be lisp gangstas in ruby, right?
<shevy>
you guys are having way too much fun coming up with names rather than coming up with code
<wasamasa>
workmad3: yeah, I'd be a little happier if all gems I came across had learned that lesson
InhalingPixels has joined #ruby
<workmad3>
shevy: code is easy, names are hard!
<wasamasa>
workmad3: tried builder the other day in irb
klmlfl has quit [Remote host closed the connection]
<wasamasa>
workmad3: it kept adding elements every time I involunarily inspected it!
franzip has joined #ruby
klmlfl has joined #ruby
<wasamasa>
workmad3: how the hell did that thing make it into the list of rails dependencies
<workmad3>
wasamasa: hah
<ddv>
gerep: i'm looking for a gem that programs everything for me
<wasamasa>
ddv: agi.rb
<gerep>
ddv why don't you simply say no? Easier ;)
apeiros has quit [Remote host closed the connection]
Photism has joined #ruby
apeiros has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one has quit [Quit: Computer has gone to sleep.]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rezzack has joined #ruby
claymore has joined #ruby
rockdon_ has joined #ruby
tlarevo_ has joined #ruby
darkxploit has joined #ruby
TommeHo has joined #ruby
Px12 has quit [Remote host closed the connection]
TommeHo has quit [Read error: Connection reset by peer]
lsone has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
bonhoeffer has joined #ruby
W0rmDr1nk has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
klmlfl has quit [Ping timeout: 260 seconds]
cocotton has quit [Remote host closed the connection]
Synthead has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 255 seconds]
Tomme has quit [Ping timeout: 276 seconds]
darkxploit has quit [Max SendQ exceeded]
cocotton has joined #ruby
timonv_ has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
Alina-malina has joined #ruby
RaCx has joined #ruby
cocotton has joined #ruby
jusmyth1 has left #ruby [#ruby]
timonv_ has joined #ruby
atmosx has joined #ruby
<atmosx>
hello
<atmosx>
can foreman run in the background?
timonv^ has joined #ruby
andrewjanssen has joined #ruby
saarinen has joined #ruby
hamakn has quit [Remote host closed the connection]
relix has joined #ruby
wpp has joined #ruby
darkxploit has joined #ruby
cocotton has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
jottr_ is now known as jottr
mwlang has joined #ruby
wpp has quit [Client Quit]
fabrice31 has joined #ruby
wldcordeiro has quit [Client Quit]
Alina-malina has quit [Read error: Connection reset by peer]
timonv^ has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 276 seconds]
Alina-malina has joined #ruby
wldcordeiro has joined #ruby
<mwlang>
I’m having trouble with rake. I’m working on an old rails 1.2 project under ruby 1.8.7 and need to use rake 0.8.7, but am picking up rake 10.0.4. I tried to uninstall, but its stated that it isn’t. Here’s the gist of what I’m seeing. How can remove the 10.0.x versions so I can use 0.8.7?
mark_locklear has quit [Ping timeout: 276 seconds]
joast has joined #ruby
Jarboe has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
dawkirst has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
dawkirst has joined #ruby
fgo has quit [Read error: Connection reset by peer]
fgo has joined #ruby
andrewjanssen has quit [Client Quit]
ndrei has quit [Ping timeout: 252 seconds]
<|splat|>
hey guys, i’m trying to make a job for Dashing to pull in some json data from Ganglia and the url has some [ and ] in it which HTTParty seems to not like. I’ve tried CGI::escape, URI.escape and Addressable:URI.escape and all seem to fail. any ideas on how I can properly parse this url? http://pastebin.com/cZMjff3E
darkxploit has quit [Max SendQ exceeded]
wallerdev has joined #ruby
Cheezebox has quit [Remote host closed the connection]
shackleford has quit [Remote host closed the connection]
_musl_ has quit [Quit: WeeChat 0.4.3]
albedoa has joined #ruby
musl has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
Grantlyk has quit []
fgo has quit [Ping timeout: 268 seconds]
darkxploit has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
Cheezebox has quit [Ping timeout: 240 seconds]
chris6131 has joined #ruby
andrewjanssen has joined #ruby
lazyguru has quit [Remote host closed the connection]
darkxploit has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
niklasb has joined #ruby
adamski2600 has joined #ruby
pibby has joined #ruby
ppinto has quit [Quit: ppinto]
Synthead has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
<mwlang>
for anyone who cares, the answer: rvm @global do gem uninstall -ax rake
bonhoeffer has quit [Quit: bonhoeffer]
<havenwood>
alternative answer is don't use gemsets!
<havenwood>
mwlang: thanks for posting solution! :)
darkxploit has quit [Max SendQ exceeded]
<mwlang>
havenwood: I actually didn’t…I think rvm does so automatically in this case since its rake.
<wallerdev>
good morning rubyists
Cheezebox has joined #ruby
dawkirst has joined #ruby
<havenwood>
g'morn
<chris6131>
Hi. I'm adding a method to the Array class that adds things to itself based on some external magic (chef in this case). I can do self << 'new thing' but when I try to do self += ['some','new','things'] I get "Can't change the value of self". How do I correctly perform Concatenation on self?
arup_r has quit [Read error: Connection reset by peer]
sambao21 has quit [Ping timeout: 268 seconds]
avocado has joined #ruby
kireevco has quit [Client Quit]
Guest33836 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Stalkr^ has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
zoo-zed has joined #ruby
GriffinHeart has quit [Ping timeout: 268 seconds]
sambao21 has joined #ruby
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
Synthead has quit [Remote host closed the connection]
saarinen has joined #ruby
anarang has quit [Ping timeout: 246 seconds]
nanoyak has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
brandonshowers has joined #ruby
saarinen has quit [Client Quit]
klmlfl_ has joined #ruby
endash has quit [Quit: endash]
bahar has joined #ruby
sinaef has joined #ruby
klmlfl has quit [Ping timeout: 245 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bahar has quit [Changing host]
bahar has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
<avocado>
i think i might just be ruby dumb, but i did "gem install inifile" and then launched irb and tried to run "require 'inifile'" and it gives me an error (syntax error in ini.rb)
<avocado>
can anyone confirm that or help me understand what i'm not understanding?
spider-mario has quit [Remote host closed the connection]
InhalingPixels has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
TheNet has quit [Remote host closed the connection]
<jhass>
rubie: see that long bar in the bottom middle of your keybard? That's the space key. Use it
ghostmoth has joined #ruby
<rubie>
jhass what do you mean?
<Phrogz>
Given a dynamically-created class (Class.new) how do I best re-open it to add instance methods?
<jhass>
I'm surprised puts"foo" is not a syntax error
<jhass>
you have an if that's not indented properly
bonhoeffer has joined #ruby
Guest64065 has joined #ruby
<rubie>
jhass: ok i will fix that
renderfu_ has quit [Remote host closed the connection]
<avocado>
never mind, i'm just dumb. removed it and reinstalled and it worked. :|
<rubie>
i cant figure out a good way to ask the user a question and test to see if their answer is correct
<jhass>
rubie: well, first of all the expression on line 28 will never be true
anarang has joined #ruby
TheNet has quit [Ping timeout: 268 seconds]
<jhass>
can you think why that is?
<Phrogz>
Best solution I've got so far is myklass.instance_eval{ define_method(…){ … } } but that seems like it must be the hard way.
<rubie>
jhass: because its a string?
<jhass>
rubie: no, but at the that point selection can't contain the string "a"
fgo has joined #ruby
yetanotherdave has quit [Ping timeout: 260 seconds]
mupkoo has joined #ruby
absolutezeroff has joined #ruby
<rubie>
jhass: it works on my first if statement
ht has quit [Remote host closed the connection]
<rubie>
jhass: line 16
<jhass>
rubie: yes
yetanotherdave has joined #ruby
<jhass>
now that if statement contains something that makes me say that it can't work again
mupkoo has quit [Client Quit]
echevemaster has quit [Remote host closed the connection]
<rubie>
jhass: oh because i changed the value to "South America"
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
yes
<rubie>
ok i'll fix that
sambao21 has quit [Ping timeout: 260 seconds]
sambao21_ has joined #ruby
<rubie>
and line 36 i'll fix
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
<jhass>
update the gist when you're done
fgo has quit [Ping timeout: 240 seconds]
<rubie>
jhass: okay updated
<rubie>
now i need to figure out the best way to check the users answer to the question
<jhass>
check then indention on line 36 ff
nairys has quit [Quit: nairys]
Kricir has joined #ruby
<jhass>
if you have two ends directly next to each other, indented on the same level, you indented wrong
<jhass>
another thing, why do you assign the local variables a and b but never use them?
linguini has joined #ruby
<pipework>
jhass: Because locals are cheap!
<jhass>
pipework: you racist
saarinen has joined #ruby
davedev2_ has joined #ruby
<pipework>
jhass: Well, jingoist, but sure.
Jackneill has quit [Remote host closed the connection]
mark_locklear has quit [Quit: Leaving]
<jhass>
oh well, yet another ism
davedev24_ has quit [Ping timeout: 252 seconds]
<eam>
hate that game, blocks always fall on my turn
it_tard has quit [Quit: yawn]
<jhass>
jenga?
Tricon has quit [Quit: Leaving...]
<rubie>
ism? you from quicken loans?
albedoa has quit [Read error: Connection reset by peer]
<rubie>
i changed a and b only to make it easier to put the string "You selected" on lines 18 and 23
krisquigley has joined #ruby
St_Marx has quit [Remote host closed the connection]
<jhass>
but you use selection there, not a nor b
<jhass>
they're never used
<rubie>
i'll try to just use a and b
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
mferrier has joined #ruby
renderful has joined #ruby
<rubie>
oh it was line 24 that i was trying to create
<rubie>
not sure how to do line 24 - using a and b
krisquigley has quit [Ping timeout: 245 seconds]
sambao21_ has quit [Ping timeout: 245 seconds]
MaciejCzyzewski has joined #ruby
<jhass>
mmh, now you don't reassign selection anymore (not saying that's a bad thing), so ll 26 and 35 will never be true again (unless the user enters "South America" or "Asia")
comma8 has joined #ruby
MaciejCzyzewski has quit [Client Quit]
qhartman has joined #ruby
cirn0 has joined #ruby
klmlfl has joined #ruby
sambao21 has joined #ruby
bMalum has joined #ruby
anarang has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
<jhass>
rubie: okay. Can you tell what the return value of puts is ?
momomomomo has quit [Quit: momomomomo]
<rubie>
nil
<rubie>
just made some changes, i think for the better
<jhass>
so what value will sa_question_1 and a_question_1 always have?
cirn0 has quit [Ping timeout: 260 seconds]
billy_ran_away has quit [Ping timeout: 240 seconds]
<rubie>
jhass: still cant figure out how to get line 24 to work
klmlfl_ has quit [Ping timeout: 246 seconds]
<jhass>
how about selected_country = a / b in the if's
sigurding has quit [Quit: sigurding]
Px12 has joined #ruby
ppinto has quit [Quit: ppinto]
<rubie>
i dont understand
Px12 has quit [Remote host closed the connection]
seamon has quit [Quit: Zzzzzzz]
<jhass>
previously you overwrote selection with the value you wanted to display
<jhass>
since you still want to use selection for its old value too, why not create a new variable?
jxf has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
fabrice31 has joined #ruby
emmesswhy has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
g0bl1n has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elstif has quit [Quit: Leaving.]
<rubie>
humm, i thought i had it
<rubie>
i used selected_country = a || b
manzo has joined #ruby
albedoa has joined #ruby
<jhass>
nah that / was meant in one you do a in the other do b
<jhass>
(a || b) will always equal a in this case
silkfox has joined #ruby
Vile` has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
dviola has quit [Remote host closed the connection]
<jhass>
shevy: come to the good side finally! :P
<shevy>
debian is stuck like in the 1980s
freerobby has quit [Quit: Leaving.]
<shevy>
I mean we all liked Toy Story I
<shevy>
but there was Toy Story II ... and Toy Story III ...
<atmosx>
do we?
<shevy>
everything moves on
<rubie>
jhass: thanks let me take a while to digest this
<shevy>
yeah
<atmosx>
I'm having a weeeird error.
<eam>
shevy: because it's english and not german?
<shevy>
atmosx remember, those were just about the days of Terminator 2 "omg that was computer generated!!!"
<jhass>
rubie: sure, just ask if you need a part explained in detail
paulfm has quit []
<atmosx>
shevy: true
<shevy>
eam dunno, there are actually some movies which are better in german. chinese kung fu flicks for instance, they are better in the german language than the english one (though admittedly they are best in original cantonese when done in Hong Kong)
Kricir has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars`` is now known as Mars`
Mars`_ has joined #ruby
<eam>
when an american action movie is redubbed for germany, what language do they use for the bad guys?
freerobby has joined #ruby
<shevy>
for project A http://www.imdb.com/title/tt0085127/ the lead pirate dude actually had a dialect from some northern german town... I think Kiel or Hamburg or Bremen or something like that...
<shevy>
many of those english dubs are really AWFUL
<eam>
like lethal weapon
carraroj has quit [Client Quit]
<shevy>
hehehe
gtrak has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
hmm
<shevy>
they actually have professional sync speakers
chrishough has joined #ruby
<shevy>
it's more fun for movies who can afford only crap speakers
chrishough has quit [Client Quit]
gtrak has joined #ruby
<eam>
I mean, we make all our educated villains german (or russian). So are they still german when translated?
<eam>
or do they like, change them to be polish or something
chrishough has joined #ruby
<bhaak>
depends. in sitcoms, they often get cast to danish
<eam>
like hans gruber in die hard
<shevy>
eam hmm there were some old james bond movies with two somewhat famous german dudes
<rubie>
jhass: im getting an error trying to run it here is the error -- :in `select': undefined method `to_h' for [["South America", "A"], ["Asia", "B"]]:Array (N
<shevy>
one was in goldfinger
sailias has quit [Quit: Leaving.]
chrishough has quit [Read error: Connection reset by peer]
<eam>
does it turn into like bjorn jensen
<shevy>
I think that was the original voice, in german
<eam>
and dutch?
spyderma_ has joined #ruby
<jhass>
rubie: then you don't learn ruby on the newest version! ;)
melik has quit [Quit: Computer has gone to sleep.]
<bhaak>
the villains in die hard 1 were just regular villains, without any specific nationality (besides the fake political agenda)
<shevy>
eam dunno but most people in the netherlands speak german too
<shevy>
just with some crazy accent
<eam>
they were totooootally specifically evil rich german villains
Mars`_ has quit [Remote host closed the connection]
<jhass>
koans is not good if you're new to programming
<atmosx>
we could say FreeBSD sucks big time and get over with other thatn it would take me 2 months to reconfigure another server at this level.
<rubie>
ive done codecademy pretty similar
<rubie>
i need something just beyond beginner
<jhass>
rubie: I'm not sure, it's still pretty basic tbh
krisquigley has joined #ruby
Mars`_ has joined #ruby
MaciejCzyzewski has joined #ruby
elstif has quit [Client Quit]
<nobitanobi>
sorry rubie didn't know you were new to programming
<rubie>
jhass: what is the -- def select choices -- part of the program doing
<rubie>
thats the hardest part
<jhass>
do you know methods already?
Inhaling_ has joined #ruby
<rubie>
yes
<rubie>
a bit
shackleford has quit [Remote host closed the connection]
<jhass>
so the contents trouble you?
<jhass>
or defining a method already?
threesixes has joined #ruby
Mars`_ has quit [Ping timeout: 245 seconds]
<atmosx>
anyone running ruby21 in freebsd?
<zmartazz>
Hi guys, just finished the codecademy interactive introduction to Ruby and want one more interactive tutorial before I dive into Eloquent Ruby or The Well-Grounded Rubyist :) Got any suggestions? AND which of these books should I start with? Got them both :) hehe
<atmosx>
shevy: true, we're just few elites, watching other people from up-high
<atmosx>
shevy: jokes apart, I think it's ruby.
<febuiles>
atmosx: no experience with 2.1 but your problem seems preeety broad
InhalingPixels has quit [Ping timeout: 272 seconds]
<rubie>
i cant find anything interactive that is worth while after codecademy
<febuiles>
let's try to nail it down
<atmosx>
febuiles: how? I'm developing on macosx
livingstn has quit []
<zmartazz>
rubie, thanks, but hasn't alot changed since 2006? :)
Waheedi has joined #ruby
<febuiles>
atmosx: bsd vm'd?
<atmosx>
febuiles: I'm testing production in FreeBSD, exactly same code.
<atmosx>
febuiles: yes
<febuiles>
ok
<atmosx>
febuiles: VPS
<febuiles>
ah
<febuiles>
do the lower latency is from your laptop and the other one from the vps?;
<febuiles>
so the*
<febuiles>
(what I'm trying to know is: 1) is latency an issue because of different locations or 2) have you already benchmarked everything outside of ruby adn the latency is at the app level)
nanoyak has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
FL1SK has quit [Read error: Connection reset by peer]
FL1SK has joined #ruby
nanoyak has joined #ruby
<atmosx>
my laptop throws a result at 5 seconds (with stopwatch, system 'time' reports 1.6s), while on FreeBSD system time reports 2.1s but my stopwatch says 1 mi 14s
<atmosx>
1 minute and 14s
mferrier has quit []
w3pm has joined #ruby
<zmartazz>
Well well, the books are laying around on my desk anyways and I guess I'm ready to start reading and learning. Got experience from java so should be able to pick the language up well :)
omosoj has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
mosoj has joined #ruby
FL1SK has quit [Read error: Connection reset by peer]
FL1SK has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
Kricir has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
<febuiles>
atmosx: is there any way for you to use the Benchmark library and see if the BSD code is really taking that long in app-land? a 1 minute difference sounds horrible
Kricir has joined #ruby
<atmosx>
febuiles: sure
Takle has quit [Remote host closed the connection]
<febuiles>
Ruby 2+ includes many changes to GC and other things that could slow down things, but not to that point I think
pu22l3r_ has joined #ruby
lukevinc has joined #ruby
codeurge has quit [Quit: Sleep.]
<lukevinc>
Hello ruby programmers, how are you? Can you recommend me a good material to learn ruby fast?
Lucky__ has joined #ruby
saarinen has joined #ruby
Lewix has joined #ruby
<febuiles>
lukevinc: someone just mentioned codeacademy a few minutes ago, there's also http://tryruby.org for a super fast intro
Avahey_ has joined #ruby
<eam>
amphetamine
<febuiles>
^^ works too
<zmartazz>
lukevinc, I just finished the lesson on codecademy and would recommend it for learning the basics quick :)
pu22l3r has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
<lukevinc>
thanks, i will check it out, fellas.
Synthead has joined #ruby
<lukevinc>
i don't get down with drugs, but thanks anyway
<atmosx>
per fucking request, isn't that something?!
<febuiles>
atmosx: I'd try to test the offending code otuside nginx and any other 3rd party things
<atmosx>
here -> 0.117188 0.015625 0.132812 ( 68.941276)
<atmosx>
I have access to a linux box a couple of RPis
<febuiles>
atmosx: you're doing a GET or POST for OAuth, correct?
<atmosx>
I'm sure they perform better
<atmosx>
yes
<febuiles>
measure that specific code, nto the entire thing or you'll die crazy waiting
<febuiles>
or since you're in freebsd, attach a dtrace and see where the time's being spent
gtrak has quit [Quit: No Ping reply in 180 seconds.]
<atmosx>
I'll test it on debian now
Lewix has quit [Remote host closed the connection]
Mars`_ has joined #ruby
Lewix has joined #ruby
<atmosx>
let's see
seamon has quit [Quit: Zzzzzzz]
gtrak has joined #ruby
spyderman4g63 has quit []
chrishough has joined #ruby
Takle has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Inhaling_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
InhalingPixels has joined #ruby
codeurge has joined #ruby
unstable has joined #ruby
troyready has quit [Ping timeout: 268 seconds]
seamon has joined #ruby
kireevco has quit [Quit: Leaving.]
<unstable>
How can I make it so I go into a mode where I use the ruby from rbenv (2.0.x), but by default if I don't go into that mode it uses the system ruby
<unstable>
I have a bunch of bins in ~/.rbenv/someplace, that is all the ruby 2.0.x stuff, and there are operating system ruby files somewhere else /usr/bin, and I want to have those be the default ruby
Lewix has quit [Remote host closed the connection]
<pipework>
I'd personally suggest using chruby and ruby-install, but I'm sure rbenv has a way to default a chosen ruby
britneywright has joined #ruby
<postmodern>
unstable, i think there's a way to set system as the default ruby? not sure
GriffinHeart has joined #ruby
linojon has quit [Quit: linojon]
vt102 has quit [Ping timeout: 246 seconds]
Phrogz has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
qba73 has joined #ruby
atmosx_ has joined #ruby
Cheezebox has joined #ruby
<unstable>
Is there mkvirtualenv for ruby?
<unstable>
I use that a lot for python
nanoyak has quit [Read error: Connection reset by peer]
<pipework>
unstable: There are many managers for ruby environments. I prefer chruby and ruby-install, but there's rvm, and the less awesome rbenv
<unstable>
yea, I think I've been using the less awesome one
atmosx has quit [Ping timeout: 252 seconds]
<unstable>
I'll checkout rvm
nanoyak has joined #ruby
KingOfKarlsruhe has joined #ruby
<havenwood>
chruby with ruby-install is my fav :)
Mars`_ has quit [Remote host closed the connection]
nanoyak has quit [Client Quit]
<pipework>
the most beast.
GriffinHeart has quit [Ping timeout: 245 seconds]
Mars`_ has joined #ruby
<unstable>
I use ohmyzsh with mkvirtualenv, so when I cd into certain directories.. I get certain python environments and libraries
TheNet has joined #ruby
<pipework>
unstable: chruby supports that feature.
deric_skibotn has quit [Ping timeout: 255 seconds]
qba73 has quit [Remote host closed the connection]
rostam has quit [Ping timeout: 252 seconds]
cndiv has quit [Ping timeout: 252 seconds]
qba73 has joined #ruby
SegFaultA has quit [Excess Flood]
davedev2_ has joined #ruby
SegFaultAX has joined #ruby
davedev24_ has quit [Ping timeout: 276 seconds]
SouL_ has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
rezzack has joined #ruby
kirun has quit [Quit: Client exiting]
melik_ has joined #ruby
<linguini>
I've written a very small gem that has one library file and one ruby script. The ruby script depends on no external gems.
<linguini>
bundle exec myscript # is quite slow
gr33n7007h has joined #ruby
shredding has quit [Quit: shredding]
cirn0 has quit [Ping timeout: 264 seconds]
melik has quit [Ping timeout: 252 seconds]
xiphias has quit [Ping timeout: 252 seconds]
RaCx has quit [Ping timeout: 252 seconds]
<linguini>
Is there a kosher way to make my gem's bin/myscript directly executable (thus avoiding a 2 second delay for loading unnecessary gems)? Or am I doing something wrong?
<pipework>
in your gemspec, yeah
n_blownapart has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
n_blownapart has joined #ruby
qba73 has quit [Ping timeout: 255 seconds]
xiphias has joined #ruby
<linguini>
spec.executables = "myscript"
xiphias has quit [Changing host]
xiphias has joined #ruby
<linguini>
Should I be doing something other than that?
wldcordeiro has joined #ruby
RaCx has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<linguini>
Maybe I should be asking in #bundler..?
<jhass>
what does this have to do with bundler?
gsd has joined #ruby
cndiv has joined #ruby
<linguini>
jhass: Well, I'm not sure how to make bin/myscript "available" for direct execution. I'm not familiar with the gem paradigm.
franzip has quit [Quit: ...]
<jhass>
s.executables = ["bin/foo"] done
<linguini>
jhass: Sorry if I don't understand, but how would a consumer of my gem use foo?
jxf has joined #ruby
<linguini>
gem install # puts foo in /usr/local/bin ?
<jhass>
if run with --user-install in another directory the user is supposed to add to his path
AlexRussia has quit [Ping timeout: 255 seconds]
<linguini>
I see. Thanks for the link. I think I have done as that guide describes.
thoolihan has joined #ruby
roolo has joined #ruby
bruno- has joined #ruby
<linguini>
I suppose my real question is $ bundle install # puts foo somewhere?
<linguini>
I realize bundler can do different things (system gems vs vendor/ vs ~/).
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
yes, bundle exec will find it in any case
<linguini>
Right! bundle exec will work. But it's so freaking slow.
<jhass>
if it's installing to system or --user-install same rules as with gem install
nisstyre has quit [K-Lined]
Hien has quit [K-Lined]
<jhass>
that might just be your system or your huge Gemfile or both
Mars__ has quit [Remote host closed the connection]
<linguini>
jhass: True; but I thought 'bundle exec' is typically slow (over 2 seconds) in rails projects. But maybe I've only worked with bloated ones...
atmosx_ has quit [Quit: Lost in trance]
jxf has quit [Ping timeout: 252 seconds]
<linguini>
myscript, in any case, needs no other gems...
<jhass>
fairly big project: time bundle exec ruby -v