apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
dekz has joined #ruby
thinkdevcode has joined #ruby
gaara has joined #ruby
trey_ has joined #ruby
lavois has joined #ruby
linguini has joined #ruby
glyytchy has joined #ruby
bigmac has joined #ruby
<linguini> ok = Date.parse("2012w52")
<linguini> raises_exception = Date.parse("2012w53")
<linguini> Is that a bug?
Cultofmetatron has joined #ruby
straind` has joined #ruby
mikepack has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 252 seconds]
straind has quit [Ping timeout: 252 seconds]
AlbireoX has quit [Ping timeout: 240 seconds]
bigmac has quit [Read error: Operation timed out]
hackeron has quit [Ping timeout: 260 seconds]
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
Nanuq has quit [Read error: Operation timed out]
AlbireoX has joined #ruby
horofox has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
irleif has quit [Quit: Computer has gone to sleep.]
trey_ is now known as treyconnell
bemson has joined #ruby
AlbireoX has quit [Remote host closed the connection]
chriskk has joined #ruby
bigmac has joined #ruby
hackeron has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
dakine has quit [Quit: Leaving]
jaygen has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
justinmc_ has quit [Ping timeout: 265 seconds]
justinmcp has joined #ruby
nadirvardar has joined #ruby
<treyconnell> linguini: are you asking if it's a bug b/c it's raising an exception?
jjang has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 244 seconds]
nitti has joined #ruby
straind has joined #ruby
v0n has joined #ruby
<linguini> treyconnell: Yes.
<treyconnell> 52 weeks in a year so 53 would be an invalid date yes?
yoklov has joined #ruby
<treyconnell> oh and I hadn't even seen that format before so I just learned something :)
<linguini> nye = Date.parse("2012-12-31"); nye.strftime("%Yw%W")
straind` has quit [Read error: Connection reset by peer]
thinkdevcode has quit [Remote host closed the connection]
<treyconnell> oh wow
<treyconnell> hmmm
aantix_ has joined #ruby
aantix_ has quit [Client Quit]
CodeVision has quit [Quit: WeeChat 0.3.9]
nitti has quit [Ping timeout: 244 seconds]
arubin has joined #ruby
aantix has quit [Read error: Operation timed out]
c0rn_ has quit [Quit: Computer has gone to sleep.]
perryh has quit [Excess Flood]
<treyconnell> you may be right - may be a bug
<treyconnell> %W - Week number of the year. The week starts with Monday. (00..53)
<treyconnell> maybe it's funky because dec 31 is monday this year?
perryh has joined #ruby
tyfighter has quit [Quit: tyfighter]
CodeVision has joined #ruby
<linguini> Date.parse(Date.parse("2012-12-30").strftime("%Yw%W")) # more succinct
<linguini> oops
<linguini> Date.parse(Date.parse("2012-12-31").strftime("%Yw%W")) # more succinct
<treyconnell> raises_exception = Date.parse("2014w53")
<treyconnell> so there went that idea...
bemson has quit [Quit: bemson]
shadoi has quit [Ping timeout: 260 seconds]
Soliah has joined #ruby
tobym has quit [Remote host closed the connection]
zodiak has quit [Remote host closed the connection]
tommyvyo has joined #ruby
rcassidy has quit [Ping timeout: 240 seconds]
<treyconnell> no_exception = Date.parse(Date.parse("2014-12-31").strftime("%Yw%W"))
<treyconnell> strange...
ttt has joined #ruby
Xeoncross has joined #ruby
Caleb_ has joined #ruby
snearch has joined #ruby
jjang has joined #ruby
stephenjudkins has quit [Ping timeout: 240 seconds]
<linguini> There are only 52 weeks in 2014.
caleb_io has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
<linguini> Er, at least, Date.parse("2014-12-31").strftime("%Yw%W") => 2014w52
dev_ryan70 has joined #ruby
LouisGB has quit [Ping timeout: 276 seconds]
<linguini> Date.parse("2018-12-31").strftime("%Yw%W") => 2018w53
v0n has quit [Ping timeout: 240 seconds]
davidcelis has quit [Quit: K-Lined.]
Axsuul has joined #ruby
yshh has joined #ruby
slainer68 has joined #ruby
dakine has joined #ruby
locriani_ has joined #ruby
chumpy_ has quit [Remote host closed the connection]
F1skr has joined #ruby
slainer68 has quit [Ping timeout: 244 seconds]
joeycarmello has joined #ruby
locriani has quit [Ping timeout: 260 seconds]
treyconnell has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
lavois has quit [Remote host closed the connection]
kzrl has quit [Ping timeout: 240 seconds]
<linguini> Date.parse(Date.parse("2012-01-01").strftime("%Yw%W")) # also fails
treyconnell has joined #ruby
<linguini> Should I report this somewhere?
dhruvasagar has quit [Ping timeout: 245 seconds]
ttt has quit [Remote host closed the connection]
kzrl has joined #ruby
<sent-hil> if i wanted to collect some stats on my spec failures, what's a good way to collect that data
<sent-hil> asked in #rspec, no response
yshh has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
* mmealling bangs head on wall
bigmcq77 has quit [Quit: Computer has gone to sleep.]
Nanuq has joined #ruby
sent-hil has quit [Remote host closed the connection]
digitalcakestud1 has quit [Read error: Connection reset by peer]
hron84 has quit [Quit: Leaving.]
<linguini> Date.parse(Date.parse("2012-01-01").strftime("%Yw%V")) # ok
khakimov has joined #ruby
<linguini> Ah, perhaps Date.parse assumes %V, not %W.
lecreme has joined #ruby
bigmcq77 has joined #ruby
sterNiX has quit [Ping timeout: 244 seconds]
<linguini> Hmm. Actually, it's not okay either...
zomgbie_ has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
sailias has quit [Client Quit]
dhruvasagar has joined #ruby
yaymukund has quit [Ping timeout: 276 seconds]
whowantstolivefo has quit [Ping timeout: 244 seconds]
jipiboily has joined #ruby
SCommette has joined #ruby
jjang has quit [Remote host closed the connection]
demian`__ has joined #ruby
<linguini> I'll think more about this...
jcaudle has joined #ruby
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
demian`_ has quit [Ping timeout: 240 seconds]
kiyoura has joined #ruby
v1negar has joined #ruby
sent-hil has joined #ruby
jipiboily has left #ruby [#ruby]
<mmealling> builder.c vs builder.c_raw is some black voodoo magic
havenn has joined #ruby
sanbor has joined #ruby
yshh has joined #ruby
<sanbor> hello guys
mercwithamouth has joined #ruby
<sanbor> i'm just trying to start with ruby on rails
horofox has quit [Quit: horofox]
havenn has quit [Client Quit]
gridaphobe has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
treyconnell has quit [Remote host closed the connection]
kaushik__ has quit [Ping timeout: 244 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
Caleb_ is now known as caleb_io
maletor has quit [Quit: Computer has gone to sleep.]
shtirlic has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ttt has joined #ruby
omg765 has quit [Ping timeout: 244 seconds]
caleb_io has quit [Quit: caleb_io]
lucianosousa has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
skipper has joined #ruby
<waxjar> sanbor, there is a #rubyonrails that'll be able help you better
skipper is now known as Guest16243
yaymukund has joined #ruby
<sanbor> thanks waxjar :)
therod has quit [Quit: Leaving...]
Araxia has quit [Quit: Araxia]
lucianosousa has quit [Client Quit]
nadirvardar has quit [Quit: Computer has gone to sleep.]
Nisstyre has quit [Ping timeout: 240 seconds]
cakehero has joined #ruby
Guest16243 has quit [Ping timeout: 252 seconds]
tvw has quit [Ping timeout: 244 seconds]
havenn has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
LucidDreamZzZ has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
snearch has quit [Quit: Verlassend]
zomgbie has joined #ruby
nitti has joined #ruby
cableray has quit [Quit: cableray]
jjang has joined #ruby
treyconnell has joined #ruby
<sanbor> waxjar: if I want to do something with rails there is any channel?
<sanbor> sorry
<sanbor> with sinatra
<waxjar> #sinatra :)
jenrzzz has quit [Ping timeout: 255 seconds]
<sanbor> lol, I thought that, but if the channel for rails isn't #rails ...
<sanbor> but maybe in free node there is a some people interested in rails :P
moos3 has quit [Ping timeout: 245 seconds]
<sanbor> in fact, probably in free node are more people interested in sinatra than in rails :P
nitti has quit [Ping timeout: 268 seconds]
Trioke_ has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
ryanf has joined #ruby
mmitchell has joined #ruby
zomgbie has quit [Read error: Operation timed out]
Juul has quit [Quit: .]
bluOxigen has quit [Ping timeout: 260 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
treyconnell has quit [Remote host closed the connection]
Takehiro_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
F1skr has quit [Quit: WeeChat 0.3.9]
Boohbah_ has quit [Changing host]
Boohbah_ has joined #ruby
Boohbah_ has joined #ruby
Boohbah_ is now known as Boohbah
havenn has quit [Remote host closed the connection]
Takehiro_ has quit [Remote host closed the connection]
apok_ has joined #ruby
chrishunt has quit [Quit: Leaving...]
Takehiro_ has joined #ruby
chichou has joined #ruby
chichou has quit [Remote host closed the connection]
gabrielrotbart has quit [Remote host closed the connection]
Takehiro_ has quit [Remote host closed the connection]
apok has quit [Ping timeout: 244 seconds]
yaymukund has quit [Ping timeout: 260 seconds]
apok_ has quit [Ping timeout: 244 seconds]
treyconnell has joined #ruby
k0nichiwa has quit [Ping timeout: 245 seconds]
hakunin has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
therod has joined #ruby
robertotauille has quit [Quit: Leaving...]
dylanjha has quit [Quit: Leaving...]
davidcelis has joined #ruby
nga4 has quit []
riley526 has quit [Remote host closed the connection]
therod has quit [Ping timeout: 244 seconds]
chumpy has joined #ruby
und3f has joined #ruby
Takehiro_ has joined #ruby
omry has quit [Read error: Operation timed out]
elliot98 has quit [Quit: Konversation terminated!]
khakimov has quit [Quit: Computer has gone to sleep.]
Takehiro_ has quit [Remote host closed the connection]
mneorr has joined #ruby
nopolitica has joined #ruby
zomgbie has joined #ruby
SCommette has quit [Quit: SCommette]
nari_ has joined #ruby
chumpy has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
chriskk has quit [Quit: chriskk]
mockra has quit [Remote host closed the connection]
deo has joined #ruby
chriskk has joined #ruby
sent-hil has quit [Remote host closed the connection]
zomgbie has quit [Ping timeout: 268 seconds]
t0rc has joined #ruby
cableray has joined #ruby
dev_ryan70 has quit [Remote host closed the connection]
nopolitica has quit [Quit: Lost terminal]
lecreme has quit [Quit: Leaving]
Ruler_Of_Heaven_ has joined #ruby
pipopopo has quit [Ping timeout: 272 seconds]
glyytchy has quit [Quit: glyytchy]
ttt has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
nadirvardar has joined #ruby
mockra has joined #ruby
treyconnell has quit [Remote host closed the connection]
jcaudle has quit [Quit: jcaudle]
`brendan has quit [Ping timeout: 265 seconds]
MrSamuel has quit [Quit: MrSamuel]
fungoat has joined #ruby
bigmac has joined #ruby
ejholmes has quit [Quit: ejholmes]
roadt` has joined #ruby
khakimov has joined #ruby
hbpoison has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
bapa has quit [Read error: Connection reset by peer]
jjang has quit [Remote host closed the connection]
jeedey has quit [Read error: Connection reset by peer]
jeedey has joined #ruby
Caius has quit [Ping timeout: 252 seconds]
invapid has quit [Ping timeout: 246 seconds]
yaymukund has joined #ruby
therod has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
ckrailo has joined #ruby
nadirvardar has quit [Ping timeout: 264 seconds]
Caius has joined #ruby
t0rc has quit [Quit: WeeChat 0.3.9]
horofox has joined #ruby
nitti has joined #ruby
vitor-br has quit [Ping timeout: 256 seconds]
therod has quit [Ping timeout: 272 seconds]
thone_ has joined #ruby
chrishunt has joined #ruby
hbpoison has joined #ruby
nadirvardar has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
smbriones has joined #ruby
horofox has quit [Client Quit]
nitti has quit [Ping timeout: 240 seconds]
eph3meral has joined #ruby
sanbor has quit [Quit: sanbor]
thone has quit [Ping timeout: 255 seconds]
brianpWins has quit [Quit: brianpWins]
dmiller has joined #ruby
Bdawk_ has quit [Quit: Page closed]
pothibo has quit [Quit: pothibo]
<Quadlex> Ugh
<Quadlex> The service I'm integrating with offers three different means of identifying an address
hbpoison has joined #ruby
<Quadlex> But only one of those can be fetched though the web service
<Quadlex> So if I want to use the others
hbpoison has quit [Read error: Connection reset by peer]
<Quadlex> I have to connect to their apps database and search the table directly
<Quadlex> And when I say database, I meant databases. One for each city.
mahmoudimus has joined #ruby
treyconnell has joined #ruby
`brendan has joined #ruby
radic has joined #ruby
gridaphobe has joined #ruby
baroquebobcat has joined #ruby
deo has quit [Read error: Connection reset by peer]
deo has joined #ruby
radic_ has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
perun_ has quit [Ping timeout: 252 seconds]
mahmoudimus has joined #ruby
sanbor has joined #ruby
Nisstyre has joined #ruby
treyconnell has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
smbriones has left #ruby [#ruby]
Pip has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Ping timeout: 276 seconds]
baroquebobcat has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
levity_island has quit [Quit: levity_island]
swarley has quit [Ping timeout: 260 seconds]
drago757 has joined #ruby
perun_ has joined #ruby
k0nichiwa has joined #ruby
zomgbie has joined #ruby
Juul has joined #ruby
Araxia has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
horofox has joined #ruby
lecreme has joined #ruby
amacgregor_osx has joined #ruby
kaawee has quit [Ping timeout: 264 seconds]
xpen has joined #ruby
rburton- has joined #ruby
jcaudle has joined #ruby
Soliah has quit [Quit: Soliah]
zomgbie has quit [Ping timeout: 244 seconds]
Xeoncross has quit [Quit: Ex-Chat]
justinmcp has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
treyconnell has joined #ruby
areil has joined #ruby
mockra has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
gabrielrotbart has joined #ruby
jenrzzz has joined #ruby
kil0byte has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
fungoat has quit [Quit: fungoat]
davidcelis has quit [Quit: K-Lined.]
mockra has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
sent-hil has joined #ruby
zodiak has joined #ruby
therod has joined #ruby
sambio has quit []
r1ddl3r has joined #ruby
nitti has joined #ruby
g-ram has joined #ruby
deo has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
cableray has quit [Quit: cableray]
therod has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
cableray has joined #ruby
xpen has quit [Ping timeout: 244 seconds]
ttt has joined #ruby
nitti has quit [Ping timeout: 276 seconds]
Vert has quit [Read error: Connection reset by peer]
caleb_io has joined #ruby
sanbor has quit [Quit: sanbor]
hakunin has quit [Remote host closed the connection]
r1ddl3r1 has joined #ruby
r1ddl3r has quit [Ping timeout: 245 seconds]
framling_ has quit [Quit: Lost terminal]
framling has joined #ruby
jenrzzz has joined #ruby
codefyre has joined #ruby
meskyanichi has quit [Quit: Linkinus - http://linkinus.com]
drago757 has quit [Quit: drago757]
horofox has quit [Quit: horofox]
codefyre has quit [Ping timeout: 244 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
butblack has quit [Quit: butblack]
smbriones has joined #ruby
flip_digits has quit [Read error: Connection reset by peer]
flip_digits has joined #ruby
treyconnell has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
deo has joined #ruby
r1ddl3r1 has left #ruby [#ruby]
zomgbie has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
thinkdevcode has joined #ruby
skaczor has quit [Remote host closed the connection]
axl__ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
ckrailo has quit [Quit: Leaving...]
hakunin has joined #ruby
axl_ has quit [Client Quit]
zomgbie has quit [Ping timeout: 255 seconds]
v1negar has quit [Quit: v1negar]
smbriones has quit [Quit: smbriones]
cakehero has joined #ruby
d2dchat has quit [Remote host closed the connection]
k0nichiwa has quit [Ping timeout: 252 seconds]
yoklov has quit [Quit: computer sleeping]
ryanf has quit [Quit: leaving]
v0n has joined #ruby
joofsh has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 276 seconds]
joeycarmello has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cableray has quit [Quit: cableray]
deo has quit [Read error: Connection reset by peer]
deo has joined #ruby
yoklov has joined #ruby
lecreme has quit [Quit: Leaving]
therod has joined #ruby
eboaz has joined #ruby
postmodern has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
juarlex has joined #ruby
nitti has joined #ruby
Astral_ has joined #ruby
therod has quit [Ping timeout: 244 seconds]
smbriones has joined #ruby
smbriones has left #ruby [#ruby]
Guest76085 has quit [Ping timeout: 240 seconds]
GoGoGarrett has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
GoGoGarrett has quit [Remote host closed the connection]
mockra has joined #ruby
chriskk has quit [Quit: chriskk]
tommyvyo has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
drags has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
burgestrand has joined #ruby
cableray has joined #ruby
Jonah11_ has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
jcaudle has quit [Quit: jcaudle]
burgestrand has quit [Ping timeout: 272 seconds]
bigmac has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
slainer68 has joined #ruby
helichopter has quit [Ping timeout: 240 seconds]
hakunin has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Tearan has quit [Quit: Sleepy Badger....]
shadoi has joined #ruby
skcin7 has quit [Excess Flood]
Alpha64 has joined #ruby
Alpha64 has left #ruby [#ruby]
skcin7 has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
slainer68 has quit [Ping timeout: 240 seconds]
macmartine has joined #ruby
deo has quit [Read error: Connection reset by peer]
deo has joined #ruby
DrShoggoth has quit [Quit: Leaving]
deo has quit [Read error: Connection reset by peer]
nappy has joined #ruby
aldodelgado has joined #ruby
nappy has quit [Read error: Connection reset by peer]
deo__ has joined #ruby
deo__ has quit [Read error: Connection reset by peer]
deo has joined #ruby
cableray has quit [Quit: cableray]
paolooo has joined #ruby
Juul has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
shadoi has quit [Quit: Leaving.]
koshii has quit [Ping timeout: 255 seconds]
zomgbie has joined #ruby
tpe11etier has joined #ruby
codefyre has joined #ruby
Slivka has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: Computer has gone to sleep.]
zomgbie has quit [Ping timeout: 268 seconds]
mmitchell has quit [Ping timeout: 244 seconds]
aldodelgado has quit [Quit: aldodelgado]
<roadt`> hi,i found there are two method to convert obj to arary, one is 'to_a' , the otheris 'to_ary', what's difference between them?
tpe11etier has quit [Ping timeout: 244 seconds]
kiyoura has quit [Quit: Leaving]
Pip has joined #ruby
<hemanth> roadt`, to_ary is used for implicit conversions, while to_a is used for explict conversions.
straind` has joined #ruby
straind has quit [Read error: Connection reset by peer]
<Mon_Ouie> roadt`: Also notice that, in general, the long conversion name means the object can be treated like an object of the other class, while a short one means it can just be converted to one
burgestrand has joined #ruby
alem0lars has joined #ruby
<Mon_Ouie> (that distinction is more common with strings: to_str and to_s)
<roadt`> hemanth: 'implicit' means used by interpreter. 'explicit' means used by library or other ruby code. am i right understanding on this?
caleb_io has quit [Quit: caleb_io]
<Mon_Ouie> No, implicit means treating an array (or an object) as if it were multiple values
<roadt`> Mon_Ouie: i guess it is convention but not mandantory.
<Mon_Ouie> e.g. each { |x, y| … } will implicitly convert an array if you yield one
mercwithamouth has joined #ruby
<Mon_Ouie> roadt`: Well, for strings, the distinction can be seen in stdlib. If you define #to str, you are allowed to do "some string" + your_object — not if you just have #to_s
RudyValencia has quit [Quit: Hacked By Chinese!]
<Mon_Ouie> An example of explicit conversion would be using the splat operator
paolooo has quit [Quit: Page closed]
<roadt`> Mon_Ouie: ah.. i see..
<roadt`> but just to_a can't make splat operator on my object work. right?
<Mon_Ouie> Sure it can. o = Object.new; def o.to_a; [1, 2, 3]; end; puts(*o)
<roadt`> Mon_Ouie: interpreter or graceful library only looks 'to_ary' for language level stuff.
joeycarmello has joined #ruby
therod has joined #ruby
<roadt`> Mon_Ouie: splat operator is quite internal feature from what i seen.
psycho_one has joined #ruby
nitti has joined #ruby
sent-hil has joined #ruby
<roadt`> Mon_Ouie: is any principle/boundary between implict feature and explicit feature.. 'treat it as object' and 'i convert it to object' looks have the same effect in a method call. the only difference to me is interpreter define some cases where it will do such conventions..
<roadt`> Mon_Ouie: sorry for poor english.
davidcelis has joined #ruby
gridaphobe has quit [Read error: Connection reset by peer]
straind` has quit [Read error: Connection reset by peer]
<roadt`> Mon_Ouie: can i find a list of those places 'implicit conversion occurrs'?
joeycarmello has quit [Ping timeout: 244 seconds]
therod has quit [Ping timeout: 256 seconds]
<yaymukund> 'Beta.const_defined?(:User)` versus `defined?(Beta::User)`-- should I prefer one over the other?
nitti has quit [Ping timeout: 244 seconds]
<Mon_Ouie> When you use the splat operator, you add something to your code that explicitly means it will be treated as an array (the "*" operator). When you just do "a, b = foo" as opposed to "a, b = *foo", there is no such indicator
Juul has joined #ruby
<roadt`> Mon_Ouie: ah, yes.
zeromodulus has joined #ruby
<roadt`> Mon_Ouie: cool, i got it.
<roadt`> Mon_Ouie: thanks for help.
chendo has quit [Ping timeout: 260 seconds]
bakedb_ has joined #ruby
a_a_g has joined #ruby
SCommette has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
justinmcp has joined #ruby
tagrudev has joined #ruby
yxhuvud has joined #ruby
yoklov has quit [Quit: computer sleeping]
tchebb has quit [Ping timeout: 260 seconds]
k610 has joined #ruby
arubin has quit [Quit: Computer has gone to sleep.]
straind has joined #ruby
* roadt` is checking source code for all usage of try_convert, to_ary blabla, seems qutie a bit of effort.
k610 has quit [Ping timeout: 252 seconds]
k610 has joined #ruby
psycho_one has quit [Remote host closed the connection]
<yaymukund> can someone help me with a pretty basic scoping issue when metaprogramming with Class.new()? https://gist.github.com/2286a1896b1a27066224
<yaymukund> basically, how do I use a variable from outside Class.new do ; end, inside of the Class.new block?
<a_a_g> when my name is being used, my_name means local (to the def) my_name of self.my_name
straind has quit [Ping timeout: 252 seconds]
k610 has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
macmartine has quit [Quit: Computer has gone to sleep.]
k610 has joined #ruby
<a_a_g> set a class instance variable and a getter to retrieve it
<yaymukund> ah
<yaymukund> that works
<a_a_g> def is very misleading in ruby :(
chumpy has joined #ruby
<TTilus> in what sense?
<a_a_g> the body of the def is actually the block passed to define_method
<a_a_g> so lexical scoping doesnt apply as in this case
leoncamel has joined #ruby
k610 has quit [Ping timeout: 265 seconds]
<TTilus> depends on your background and how do you learn ruby i think
k610 has joined #ruby
<TTilus> that was one of the first things i learned when starting w ruby
<Mon_Ouie> You could also just use define_method to define a method that's also a closure
NimeshNeema has joined #ruby
<TTilus> a_a_g: uhm, thinking this more closely, blocks are closured, defs are not, so how can you say "body of the def is actually the block passed to define_method"?
ryanf has joined #ruby
<TTilus> lexical scoping _applies_ to closures and blocks are closures
<a_a_g> the way i see it, defs are actually instance_eval { send(:define_method,… } inside the class body
<yaymukund> a_a_g: got it, and updated the gist with my solution. might fudge with this a bit more yet
<yaymukund> a_a_g: ty
<TTilus> a_a_g: ah, now i see what you mean
k610 has quit [Ping timeout: 255 seconds]
xpen_ has quit [Remote host closed the connection]
k610 has joined #ruby
xpen has joined #ruby
zomgbie has joined #ruby
straind has joined #ruby
k610 has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
k610 has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
codefyre has quit [Ping timeout: 244 seconds]
zomgbie has quit [Ping timeout: 255 seconds]
xpen_ has joined #ruby
lurch_ has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
awestroke has joined #ruby
k610 has joined #ruby
xpen has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 268 seconds]
crocket has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
mmitchell has joined #ruby
RudyValencia has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
kil0byte has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
k610 has joined #ruby
drago757 has joined #ruby
tchebb has joined #ruby
deo has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
crocket has joined #ruby
crocket has quit [Changing host]
crocket has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
reset has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
k610 has joined #ruby
sent-hil has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
SCommette has joined #ruby
elsifaka has joined #ruby
mneorr has quit [Remote host closed the connection]
therod has joined #ruby
xpen_ is now known as xpen
nitti has joined #ruby
crocket has quit [Ping timeout: 260 seconds]
k610 has quit [Ping timeout: 255 seconds]
k610 has joined #ruby
juarlex_ has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
kaushik__ has joined #ruby
Ivo has quit [Quit: WeeChat 0.3.9]
therod has quit [Ping timeout: 244 seconds]
nitti has quit [Ping timeout: 244 seconds]
anderse has joined #ruby
Vinz_ is now known as Vinz_`
k610 has quit [Ping timeout: 260 seconds]
heisenmink has joined #ruby
k610 has joined #ruby
pskosinski has joined #ruby
awestroke has quit [Ping timeout: 248 seconds]
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
k610 has quit [Ping timeout: 244 seconds]
FDj has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
k610 has joined #ruby
dr_bob has joined #ruby
xpen has quit [Remote host closed the connection]
aganov has joined #ruby
artnez has quit [Quit: artnez]
xpen has joined #ruby
hron84 has joined #ruby
monokrome has joined #ruby
deadSnowman has quit [Quit: WeeChat 0.3.2]
<monokrome> Hey. Does anyone here know how I can get the gem install path?
<monokrome> I need to write a script that uses chef solo on two operating systems and am wondering what command will get the path to installed gem package binaries
quest88 has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
<dr_bob> monokrome: gem environment
tonini has joined #ruby
<monokrome> thanks
<monokrome> :)
<monokrome> Cool
<monokrome> gem environment gemdir :D
k610 has joined #ruby
krz has joined #ruby
mneorr has joined #ruby
maletor has joined #ruby
Faris has joined #ruby
answer_42 has joined #ruby
dylanjha has joined #ruby
artnez has joined #ruby
Morkel has joined #ruby
justinmcp has quit [Remote host closed the connection]
PapaSierra has joined #ruby
k610 has quit [Ping timeout: 246 seconds]
xpen_ has joined #ruby
margle has joined #ruby
dylanjha has quit [Client Quit]
justinmcp has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
xpen has quit [Ping timeout: 244 seconds]
Elhu has joined #ruby
mockra has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
WhereIsMySpoon has quit [Read error: Operation timed out]
iaj has quit [Read error: Operation timed out]
iaj has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
xpen_ has quit [Remote host closed the connection]
maesbn has joined #ruby
ZubKonst has joined #ruby
WhereIsMySpoon has joined #ruby
rellin has quit [Ping timeout: 248 seconds]
richo has joined #ruby
richo has joined #ruby
richo has quit [Changing host]
mockra has quit [Ping timeout: 260 seconds]
<richo> does ruby wrap sigprocmask(2) anywhere? I Can't find any references to it in the source but I could be missing something
LucidDreamZzZ has joined #ruby
timonv has joined #ruby
xpen has joined #ruby
maletor has joined #ruby
ZubKonst_ has quit [Ping timeout: 264 seconds]
tyfighter has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zomgbie has joined #ruby
tyfighter has left #ruby [#ruby]
sspiff has joined #ruby
zommi has joined #ruby
quest88 has quit [Quit: quest88]
rippa has joined #ruby
Juul has quit [Ping timeout: 265 seconds]
zomgbie has quit [Ping timeout: 252 seconds]
elsifaka has quit [Ping timeout: 244 seconds]
rakl has quit [Quit: sleeping]
elliottcable is now known as buoyant
anderse has quit [Quit: anderse]
buoyant is now known as perky
perky is now known as bubbly
SCommette has quit [Quit: SCommette]
elsifaka has joined #ruby
noxoc has joined #ruby
JohnBat26 has joined #ruby
drago757 has quit [Quit: drago757]
bubbly is now known as elliottcable
mneorr has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
d2dchat has joined #ruby
hoelzro|away is now known as hoelzro
<monokrome> I am getting an error that File.absolute_path doesn't exist
<monokrome> anyone have an idea why?
<monokrome> my whole script is File.absolute_path('.')
<DefV> are you on Ruby 1.9?
<monokrome> 1.8.7
<DefV> there's your problem
<monokrome> :(
<monokrome> They renamed it from expand_path?
<monokrome> Oh, no. It just didn't exist in 1.8.7
<monokrome> I see
elico has joined #ruby
<monokrome> Kind of silly that OS X comes with an old ruby version :(
d2dchat has quit [Remote host closed the connection]
baphled has quit [Ping timeout: 260 seconds]
d2dchat has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
elico has quit [Client Quit]
haxrbyte has joined #ruby
fantazo has joined #ruby
therod has joined #ruby
vectorshelve has joined #ruby
<vectorshelve> how can I reduce the number of lines in this method https://gist.github.com/3957370 ?
chumpy has quit [Remote host closed the connection]
nitti has joined #ruby
daniel_- has joined #ruby
richo has quit [Ping timeout: 245 seconds]
kuzushi has quit [Read error: Operation timed out]
filipe has joined #ruby
<Hanmac> vectorshelve https://gist.github.com/3957378
nitti has quit [Ping timeout: 244 seconds]
therod has quit [Ping timeout: 256 seconds]
<vectorshelve> Hanmac: thanks ;)
rippa has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
<vectorshelve> Hanmac: thanks.. u can delete your gist :)
k610 has joined #ruby
timonv has quit [Remote host closed the connection]
maesbn has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
xorigin has joined #ruby
FDj has joined #ruby
love_color_text has quit [Remote host closed the connection]
maesbn has joined #ruby
clj_newb has joined #ruby
zigomir has joined #ruby
ryanf has quit [Quit: leaving]
<hemanth> vectorshelve, hows it going?
<hemanth> The Gist you were looking for has been deleted. Sorry about that!
maesbn has quit [Read error: Connection reset by peer]
maesbn has joined #ruby
hakunin has joined #ruby
Virunga has joined #ruby
<vectorshelve> hemanth: i deleted it :) enterprise policy
<hemanth> heh heh :P
Debolaz has quit [Quit: ZNC - http://znc.in]
maesbn_ has joined #ruby
maesbn has quit [Read error: Connection reset by peer]
robotmay has joined #ruby
gl0om has joined #ruby
Debolaz has joined #ruby
mars__ has joined #ruby
brianpWins has joined #ruby
blacktulip has joined #ruby
gl0om has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
justinmcp has quit [Remote host closed the connection]
zomgbie has joined #ruby
bluOxigen has joined #ruby
krz has quit [Ping timeout: 272 seconds]
richo has joined #ruby
Axsuul has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
zomgbie has quit [Ping timeout: 252 seconds]
kuzushi has joined #ruby
maesbn has joined #ruby
maesbn_ has quit [Ping timeout: 276 seconds]
eldariof has joined #ruby
flype has joined #ruby
dekroning has joined #ruby
robotmay has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
robotmay has joined #ruby
lxsameer has joined #ruby
<lxsameer> how can i separate a hex number by byte, for example 0x5fa3 to 0x5f 0xa3
flype has quit [Client Quit]
jenrzzz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
krz has joined #ruby
tchebb has quit [Read error: Connection reset by peer]
emergion has joined #ruby
tchebb has joined #ruby
irleif has joined #ruby
tchebb has quit [Ping timeout: 272 seconds]
jimeh has joined #ruby
kramutils has joined #ruby
joast has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
ephemerian has joined #ruby
caleb_io has joined #ruby
therod has joined #ruby
anderse has joined #ruby
baphled has joined #ruby
elsifaka has quit [Remote host closed the connection]
<Hanmac> lxsameer: 0x5fa3.to_s(16).each_char.each_slice(2).map {|x| x.join} #=> ["5f", "a3"]
chussenot has joined #ruby
<lxsameer> Hanmac: thanks man
whaley has joined #ruby
therod has quit [Ping timeout: 256 seconds]
Tref has joined #ruby
darthdeus has joined #ruby
elaptics`away is now known as elaptics
emergion has quit [Quit: Computer has gone to sleep.]
maesbn has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Xeago has joined #ruby
emergion has joined #ruby
shtirlic has joined #ruby
darthdeus has quit [Remote host closed the connection]
emergion has quit [Client Quit]
darthdeus has joined #ruby
zomgbie has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
hbpoison has joined #ruby
LouisGB has joined #ruby
caleb_io has quit [Quit: caleb_io]
Iszak has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
vlad_starkov has quit [Remote host closed the connection]
gaara has quit [Quit: gaara]
justinmcp has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
maesbn has joined #ruby
k610 has joined #ruby
cezar has joined #ruby
cezar has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
answer_42 has quit [Ping timeout: 276 seconds]
alem0lars has quit [Ping timeout: 244 seconds]
answer_42 has joined #ruby
emergion has joined #ruby
elsifaka has joined #ruby
workmad3 has joined #ruby
berserkr has joined #ruby
whaley has quit [Remote host closed the connection]
pierosa has joined #ruby
emergion has quit [Client Quit]
pierosa has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
hbpoison_ has joined #ruby
akem has joined #ruby
hotovson has joined #ruby
vlad_starkov has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
clj_newb has quit [Ping timeout: 268 seconds]
whaley has joined #ruby
artnez has quit [Quit: artnez]
timonv has joined #ruby
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
psycho_one has joined #ruby
akem has joined #ruby
skum has joined #ruby
akem has quit [Client Quit]
JohnBat26 has joined #ruby
timonv has quit [Remote host closed the connection]
arturaz has joined #ruby
earthquake has quit [Quit: earthquake]
g-ram has joined #ruby
timonv has joined #ruby
therod has joined #ruby
coffer has joined #ruby
yuriy has joined #ruby
Pip has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
Tref_ has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
akem has quit [Max SendQ exceeded]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
craigp has joined #ruby
Tref has quit [Ping timeout: 248 seconds]
Tref_ is now known as Tref
apeiros_ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
tonini has quit [Remote host closed the connection]
sepp2k has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
kaushik__ has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
nitti has joined #ruby
Zai00 has joined #ruby
answer_421 has joined #ruby
hbpoison has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
hbpoison_ has quit [Ping timeout: 256 seconds]
alem0lars has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
timmow has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
akem has quit [Ping timeout: 244 seconds]
coffer has quit [Ping timeout: 240 seconds]
ssspiff has joined #ruby
Jellyg00se has quit [Ping timeout: 244 seconds]
Ivo has joined #ruby
sspiff has quit [Ping timeout: 244 seconds]
kzrl has quit [Ping timeout: 260 seconds]
Virunga has quit [Read error: Connection reset by peer]
Virunga has joined #ruby
Virunga has quit [Read error: Connection reset by peer]
Virunga has joined #ruby
Pip has joined #ruby
joshman_ has joined #ruby
vlad_starkov has joined #ruby
jgrevich has quit [Quit: jgrevich]
maletor has quit [Quit: Computer has gone to sleep.]
lxsameer has quit [Quit: Leaving]
knite has quit [Quit: knite]
aflynn_ has quit [Quit: Ex-Chat]
nari_ has quit [Ping timeout: 260 seconds]
fantazo has quit [Remote host closed the connection]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
pothibo has joined #ruby
Jellyg00se has joined #ruby
marius has joined #ruby
eldariof has quit []
hbpoison has quit [Ping timeout: 268 seconds]
akem has quit [Ping timeout: 240 seconds]
eldariof has joined #ruby
stnly has quit [Ping timeout: 265 seconds]
chussenot has quit [Quit: chussenot]
vlad_starkov has quit [Remote host closed the connection]
stnly has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
sspiff has joined #ruby
a_a_g1 has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
akem has joined #ruby
timonv has quit [Remote host closed the connection]
marius has quit []
ssspiff has quit [Ping timeout: 252 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
kzrl has joined #ruby
burgestrand has joined #ruby
timonv has joined #ruby
k611 has joined #ruby
irleif has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
hoelzro is now known as hoelzro|away
darthdeus has quit [Quit: Leaving...]
margle has quit [Quit: Computer has gone to sleep.]
burgestrand has quit [Ping timeout: 276 seconds]
mars__ has quit [Quit: Leaving]
Solnse has quit [Ping timeout: 246 seconds]
ltsstar has joined #ruby
ABK has joined #ruby
timonv has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
ssspiff has joined #ruby
guyvdb_ has joined #ruby
bigkevmcd has quit [Ping timeout: 260 seconds]
sspiff has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
ksk has quit [Ping timeout: 255 seconds]
bigkevmcd has joined #ruby
ksk has joined #ruby
l45760d has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
hoelzro|away is now known as hoelzro
sspiff has joined #ruby
ssspiff has quit [Ping timeout: 244 seconds]
LouisGB has quit []
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
bier has quit [Ping timeout: 276 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
nitti has joined #ruby
psycho_one has quit [Remote host closed the connection]
xorigin has quit [Ping timeout: 272 seconds]
Seus has quit []
kzrl has quit [Ping timeout: 240 seconds]
bapa has joined #ruby
xorigin has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
heisenmink is now known as awestroke
hotovson has quit [Ping timeout: 244 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
hotovson has joined #ruby
yuriy has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
kzrl has joined #ruby
banisterfiend has joined #ruby
bier has joined #ruby
psycho_one has joined #ruby
Virunga has quit [Remote host closed the connection]
areil has quit [Ping timeout: 244 seconds]
answer_421 is now known as answer_42
l45760d has left #ruby [#ruby]
timonv has joined #ruby
guyvdb_ has quit [Remote host closed the connection]
kaawee has joined #ruby
tolbkni has joined #ruby
fermion has joined #ruby
reset has quit [Quit: Leaving...]
`brendan has quit [Read error: Connection reset by peer]
horofox has joined #ruby
treyconnell has joined #ruby
PapaSierra has left #ruby [#ruby]
darthdeus has joined #ruby
Politoed has quit [Quit: Changing server]
Mon_Ouie has joined #ruby
justinmcp has joined #ruby
slainer68 has quit [Remote host closed the connection]
nilg has joined #ruby
Theorem has joined #ruby
xorigin has quit [Quit: leaving]
Theorem is now known as Politoed
dev_ryan70 has joined #ruby
vlad_starkov has joined #ruby
Faris has quit [Ping timeout: 244 seconds]
tk__ has joined #ruby
dekroning has quit [Ping timeout: 268 seconds]
earthquake has joined #ruby
Danielpk has joined #ruby
samphippen has joined #ruby
keanehsiao has joined #ruby
vlad_starkov has quit [Ping timeout: 244 seconds]
coffer has joined #ruby
Pip__ has joined #ruby
Vert has joined #ruby
xpen has quit [Remote host closed the connection]
MrSamuel has joined #ruby
Pip has quit [Ping timeout: 240 seconds]
<MrSamuel> I am implementing a custom <=> function for an object that has three instance variables
<MrSamuel> how should I chain the <=> operators together?
dekroning has joined #ruby
butblack has joined #ruby
k610 has joined #ruby
chussenot has joined #ruby
<Mon_Ouie> I'd use [@a, @b, @c] <=> [other.a, other.b, other.c]
<Mon_Ouie> Starting with the ivar that weighs the most
timonv has quit [Remote host closed the connection]
k611 has quit [Ping timeout: 245 seconds]
<Mon_Ouie> (You need an order to be able to define #<=>)
Zai00 has quit [Read error: Connection reset by peer]
akem has quit [Ping timeout: 255 seconds]
Pip__ has quit [Quit: 离开]
<MrSamuel> Mon_Ouie: that is a fantastic idea
<MrSamuel> Mon_Ouie: thanks =)
<Hanmac> Mon_Ouie fu i forgot that array has <=> too, i impl it [@a,@b,@c].zip([other.a,other.b,other.c]).map{|x,y|x<=>y}.find {|i| i != 0} || 0
postmodern has quit [Quit: Leaving]
<richo> does ruby do something insane like sigprocmask before exec?
nohonor has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
<apeiros_> Hanmac: you could have shortcutted that…
<apeiros_> (the array solution is the better one of course for any non-expensive-to-calculate property)
<Hanmac> apeiros_ where could i shortcut it?
<apeiros_> zip takes a block. return directly from it upone x<=>y being != 0
nitti has joined #ruby
psycho_one has quit [Remote host closed the connection]
answer_42 has quit [Remote host closed the connection]
<Hanmac> okay my code also works without return: [@a,@b,@c].zip([other.a,other.b,other.c]).find {|x,y| (x <=> y) != 0} || 0
psycho_one has joined #ruby
psycho_one has quit [Remote host closed the connection]
answer_42 has joined #ruby
sspiff has quit [Remote host closed the connection]
Takehiro_ has joined #ruby
shtirlic has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Remote host closed the connection]
margle has joined #ruby
xorigin has joined #ruby
vigoo has joined #ruby
slainer68 has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
vigoo has quit [Read error: Connection reset by peer]
k610 has quit [Ping timeout: 244 seconds]
Takehiro_ has quit [Remote host closed the connection]
butblack_ has joined #ruby
butblack_ has quit [Client Quit]
vigoo has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
butblack has quit [Ping timeout: 244 seconds]
therod has quit [Quit: Leaving...]
fermion has quit [Ping timeout: 268 seconds]
neku has joined #ruby
Araxia has quit [Quit: Araxia]
slainer68 has quit [Ping timeout: 244 seconds]
v0n has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
postmodern has joined #ruby
butblack has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
ozette has joined #ruby
postmodern has quit [Quit: Leaving]
slainer68 has joined #ruby
butblack_ has joined #ruby
butblack_ has quit [Client Quit]
samphippen has quit [Quit: Computer has gone to sleep.]
larissa has joined #ruby
hbpoison has joined #ruby
butblack has quit [Ping timeout: 252 seconds]
<withnale> is there an easy way to use 'gem contents' and 'gem dependency' on gems prior to installation?
LouisGB has joined #ruby
akem has quit [Ping timeout: 252 seconds]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
nanderoo has joined #ruby
anderse has quit [Ping timeout: 244 seconds]
akem has quit [Read error: Connection reset by peer]
akemEikko has joined #ruby
<shevy> hey
<shevy> does ruby work on windows 8?
MrSamuel has joined #ruby
<Xeago> with the installer I suppose so
MrSamuel has left #ruby [#ruby]
treyconnell has quit [Remote host closed the connection]
carloslopes has joined #ruby
justinmcp has quit [Remote host closed the connection]
awestroke has quit [Remote host closed the connection]
butblack has joined #ruby
flype has joined #ruby
ozette has quit [Quit: Leaving]
therod has joined #ruby
yshh has quit [Remote host closed the connection]
<hron84> shevy: yeah both 1.8 and 1.9 working. I compiled it for myself.
skaczor has joined #ruby
LouisGB has quit []
d2dchat has quit [Remote host closed the connection]
codefyre has joined #ruby
k610 has joined #ruby
butblack has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
flype has quit [Quit: Computer has gone to sleep.]
RJ3000_ has quit [Remote host closed the connection]
LouisGB has joined #ruby
Neomex has joined #ruby
Ryhnn has joined #ruby
eboaz has quit [Remote host closed the connection]
drago757 has joined #ruby
nilg has quit [Ping timeout: 265 seconds]
akemEikko has quit [Read error: Connection reset by peer]
crocket has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
mmitchell has quit [Remote host closed the connection]
therod has quit [Ping timeout: 264 seconds]
RJ3000_ has joined #ruby
joshman_ has joined #ruby
craigp has quit [Quit: craigp]
dev_ryan70 has quit [Remote host closed the connection]
<dagobah_> How can I grab all the id's out of this array of hashes? https://gist.github.com/a6d597e57aead72601c2
crocket has quit [Ping timeout: 246 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
<apeiros_> dagobah_: sounds like you want Array#map
akemEikko has joined #ruby
<apeiros_> uh, in your case, a flat_map with an inner map
Virunga has joined #ruby
<dagobah_> Ah yes.
<k610> how can I add e.g "gem update" in "/etc/rc.local"
<richo> Can someone explain StringValuePtr as a replacement to STR2CSTR ? It seems to do vastly different things.
psycho_one has joined #ruby
<richo> oh, but StringValueCStr is probably what I'm after
skaczor has quit [Quit: Leaving]
awestroke has joined #ruby
bigmcq77 has joined #ruby
skaczor has joined #ruby
akem has quit [Ping timeout: 252 seconds]
krawchyk has joined #ruby
justinmcp has joined #ruby
nitti has joined #ruby
mark_locklear has joined #ruby
ncopa has joined #ruby
<ncopa> hi i have an issue with ruby-fcgi (the C module)
<richo> disregard, I got it sorted. :)
crocket has joined #ruby
<ncopa> it uses a symbol, rb_protect_inspect, which is not defined in libruby
arietis has joined #ruby
<ncopa> # nm -D /usr/lib/libruby.so.1.9 | grep rb_pro
<ncopa> tect
<ncopa> 00046789 T rb_protect
<ncopa> rb_protect is there but not rb_protect_inspect
<ncopa> what is the difference between those 2?
<withnale> is there an easy way to use 'gem contents' and 'gem dependency' on gems prior to installation?
hbpoison has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
nitti has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
dmerrick has quit [Quit: dmerrick]
<shevy> hron84 cool
<shevy> perhaps I am gonna install win 8 here then
<shevy> I can live without linux but not without ruby
LouisGB has quit []
k0nichiwa has joined #ruby
baroquebobcat has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
crocket has quit [Ping timeout: 244 seconds]
awarner has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
LouisGB has joined #ruby
robotmay has quit [Ping timeout: 244 seconds]
ABK has quit [Remote host closed the connection]
k611 has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
robotmay has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
crocket has joined #ruby
crocket has joined #ruby
<richo> keys = rb_funcall(_envp, rb_intern("keys"), 0); # This returns an RArray of the values in my hash.. am I doing soemthing stupid?
anderse has joined #ruby
chrismcg is now known as zz_chrismcg
<clocKwize> richo, might get a better answer in #ruby-lang
therod has joined #ruby
<shevy> why I gave up on shell scripts
kaneda__ has quit [Ping timeout: 260 seconds]
justinmcp has quit [Ping timeout: 245 seconds]
<clocKwize> heh
<clocKwize> think of the potential
<clocKwize> changing the code as its executing
skum is now known as vaino
<richo> clocKwize: time to get into lisp :)
LouisGB has quit []
<richo> shevy: Also, hat's not a reason to give up on shell scripts. You can write obfuscated insanity in ruby too.
tommyvyo has joined #ruby
<clocKwize> hehe :)
<clocKwize> look at that awesomeness
<shevy> hmm richo how to write a beautiful loop in shell scripts?
<clocKwize> a "tri" state boolean enum
ablankfield has joined #ruby
therod has quit [Ping timeout: 255 seconds]
<clocKwize> that has 5 possible values
<shevy> hmm
<clocKwize> 3 of which aren't supported
<shevy> why is it called tri state then?
<clocKwize> thats coding for ya.
<shevy> waaah
<richo> shevy: with either for or while like in every other languge?
<clocKwize> also its not a boolean!!
<clocKwize> its neither tri-state or boolean
<shevy> richo then it is beautiful?
<clocKwize> "In most computer programming languages, a boolean is a data type with only two possible values: true or false."
<shevy> :)
guyvdb_ has joined #ruby
<shevy> found one
codefyre has quit [Quit: Leaving]
<shevy> for i in 1 2 3 4 5 do echo "Welcome $i times" done
<shevy> oh
<shevy> a better one:
<shevy> for i in {1..5}
<richo> shevy: I never said it wasn't beautiful, but it's obfuscated insanity.
<richo> also, you're missing some newlines
<richo> or semicolons
awarner has quit [Remote host closed the connection]
<richo> for i in 1 2 3 4 5 6; do echo "welcoem $i times"; done
<clocKwize> puts "Welcome #{i} times" for i in 1..5
<shevy> god I hate for loops
<richo> why?
<richo> Sometimes you don'twnt local scope
justinmcp has joined #ruby
angusmorrison has joined #ruby
<shevy> 1.upto(5).each { |i| puts "Welcome #{i}." }
<shevy> hmm actually
<shevy> 1..5 is nicer
<clocKwize> 5.times { |i| puts "Welcome #{i} times" }
<shevy> that'll give 0 too!
<clocKwize> 4.times { |i| puts "Welcome #{i+1} times" }
<clocKwize> :D
<shevy> lol
<clocKwize> wait still 5.times
<shevy> man look
<clocKwize> ;/
<shevy> this is possible in shell scripts:
<shevy> for i in {0..10..2}
<clocKwize> thats kinda awesome
<ablankfield> 5.times { |i| puts "Tickle my elmo #{i} times!"}
<clocKwize> 0,1,2,3,4,5,6,7,8,9,10,9,8,7,6,5,4,3,2
<shevy> it jumps or counts in +2
<clocKwize> oh
psychouroboros has joined #ruby
psychouroboros has quit [Client Quit]
<clocKwize> shevy, I saw it as 2 ranges tied together
<shevy> ablankfield should I ask what elmo is...
deadalus has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
<ablankfield> shevy really?
<shevy> yeah, I did not know that is even possible in shell script
marius has joined #ruby
marius has quit [Client Quit]
Neomex has quit [Quit: Neomex]
<ablankfield> shevy elmo is a puppet from sesame street. Popular among little kids in america
<shevy> this works too, called "seq" ... for i in $(seq 1 2 20)
<ablankfield> shevy google tickle me elmo
Mon_Ouie has quit [Ping timeout: 244 seconds]
<shevy> ablankfield hmm I think ... or do I mix it up with the muppets...
<shevy> is elmo part of the group with the two old men sitting on a balcony?
<ablankfield> Possibly?
shtirlic has joined #ruby
<ablankfield> he looks like them kinda, except he's red with an orange nose and is furry
<shevy> hehe
<shevy> like kermit!
<ablankfield> shevy I've never actually inquired if he fits in that group... yeah like kermit
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
eataix has quit [Quit: ZNC - http://znc.in]
x0F_ is now known as x0F
joofsh has joined #ruby
hbpoison has joined #ruby
justinmcp has quit [Ping timeout: 244 seconds]
Virunga has quit [Remote host closed the connection]
Virunga has joined #ruby
vigoo has quit []
linoj has joined #ruby
Cultofmetatron has joined #ruby
a_a_g1 is now known as a_a_g
aquaranto has joined #ruby
Uranio has joined #ruby
banisterfiend has joined #ruby
anderse has quit [Read error: Connection reset by peer]
anderse has joined #ruby
ablankfield has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
emergion has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
flype has joined #ruby
charliesome has joined #ruby
justinmcp has joined #ruby
justinmcp has quit [Remote host closed the connection]
angusmorrison has quit [Read error: Connection reset by peer]
cantonic_ has joined #ruby
jcaudle has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
chussenot_ has joined #ruby
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
robotmay_ has joined #ruby
Morkel has quit [Quit: Morkel]
ffranz has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
chussenot_ is now known as chussenot
bbttxu has quit [Quit: bbttxu]
robotmay has quit [Ping timeout: 240 seconds]
<shevy> hmm
invisime has joined #ruby
<banisterfiend> shevy: Hello.
<shevy> when I have a gem
<shevy> rather
Ivo has quit [Ping timeout: 245 seconds]
<shevy> when I build a gem on my own, and I need to distribute some yaml files, I should just put them within the project-dir-name/ directory, in some standalone directory, like yml/ ?
<shevy> actually
LouisGB has joined #ruby
<shevy> ideally, I'd release those yaml files bundled together in a separate project... but I dont know if that is possible
GoGoGarrett has joined #ruby
<invisime> shevy: what's in them?
<shevy> invisime just data, instructions how to compile different programs (2314 different programs, as such 2314 different yaml files)
LouisGB has quit [Client Quit]
hbpoison has quit [Read error: Connection reset by peer]
<invisime> shevy: I'd put them in a root-level directory with a name that indicates their function. e.g. $GEM_ROOT/compilation_instructions
Slivka has joined #ruby
a_a_g has quit [Quit: Leaving.]
drago757 has quit [Quit: drago757]
RJ3000_ has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
LouisGB has joined #ruby
preller has quit [Ping timeout: 252 seconds]
RJ3000_ has joined #ruby
nitti has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
akemEikko has quit [Ping timeout: 260 seconds]
Cultofmetatron has joined #ruby
mercwithamouth has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
jeffreybaird has joined #ruby
akem has quit [Ping timeout: 252 seconds]
ThaDick has joined #ruby
preller has joined #ruby
geekbri has joined #ruby
cdzombak has joined #ruby
neku has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
akem has joined #ruby
mmealling has quit [Quit: Leaving.]
akem has quit [Max SendQ exceeded]
robotmay has joined #ruby
linoj has quit [Ping timeout: 244 seconds]
linoj has joined #ruby
robotmay_ has quit [Ping timeout: 246 seconds]
akem has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
pskosinski has quit [Quit: Whatever]
sailias has joined #ruby
daniel_- has joined #ruby
therod has joined #ruby
angusmorrison has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
robertotauille has joined #ruby
bbttxu has joined #ruby
answer_42 has joined #ruby
whaley has quit [Remote host closed the connection]
axl_ has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
guyvdb_ has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 256 seconds]
dmerrick has joined #ruby
moshee has joined #ruby
robotmay has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
zomgbie has quit [Ping timeout: 260 seconds]
stnly has quit [Ping timeout: 245 seconds]
marcoshack has joined #ruby
pothibo has quit [Quit: pothibo]
emergion has quit [Quit: Computer has gone to sleep.]
therod has quit [Ping timeout: 244 seconds]
marcoshack has quit [Client Quit]
robotmay has joined #ruby
stnly has joined #ruby
RJ3000_ has quit [Remote host closed the connection]
LouisGB has quit []
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
k610 has joined #ruby
bgy has quit [Ping timeout: 256 seconds]
<sonne> is there any reason why gems are installed under lib/ruby/1.9.1 even though ruby is version 1.9.3?
<Hanmac> sonne API version
<sonne> aha!
<Hanmac> 1.9.1 and 1.9.3 have the same API
<sonne> so should i expect no api changes to occour until 2.0?
<Hanmac> yeah
<sonne> cheers :)
k611 has quit [Ping timeout: 244 seconds]
irleif has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
<shevy> wat
<shevy> ruby 2.0 will have 1.9.1 API?
<Hanmac> shevy i dont say that
LouisGB has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
robotmay_ has joined #ruby
carlyle has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
rippa has joined #ruby
richo has quit [Quit: laterz, norbs.]
robotmay has quit [Ping timeout: 240 seconds]
joast has joined #ruby
darthdeus has quit [Quit: Leaving...]
xpen has joined #ruby
robotmay_ has quit [Read error: Connection reset by peer]
robotmay has joined #ruby
kpshek has joined #ruby
v0n has joined #ruby
stopbit has joined #ruby
Agis__ has joined #ruby
tpe11etier has joined #ruby
<Agis__> http://pastie.org/5119021 Is it possible to redefine greet on B in such a way that C still uses the original definition without modifying C?
paolooo has joined #ruby
<Mon_Ouie> Just add a def self.greet in B
<Agis__> then C will also use B::greet
atmosx has joined #ruby
a_a_g has joined #ruby
LouisGB has quit []
awestroke has quit [Remote host closed the connection]
<Mon_Ouie> What do you mean when you say a class will use a method?
chussenot has joined #ruby
Ivo has joined #ruby
<Xeago> Agis__: rethink your inheritance model
Ivo is now known as Guest311
<Xeago> if c is not a b (according to the method behaviour) it should be an a
<Xeago> and hence inherit from that
guyvdb_ has joined #ruby
<Agis__> I know it's strange, I just wanted to know if there actually is a way to do something like this
<atmosx> hello
<Xeago> atmosx: hey :)
<atmosx> Xeago: how's life :_)
Guest311 is now known as Ivoz
Ivoz has quit [Changing host]
Ivoz has joined #ruby
mikepack has joined #ruby
<Xeago> excruciatingly painful
guyvdb_ has quit [Remote host closed the connection]
LouisGB has joined #ruby
<Xeago> got my thumb in the fridge handle 3 weeks ago
chrishunt has quit [Quit: Leaving...]
<Xeago> pain faded a bit at the 4-6th day
<Xeago> but it is unbearable to type with most of my right hand >.<
<atmosx> omg
<atmosx> that's bad :-/
<Hanmac> shevy i heard that OSZE watchers are not allowed in Texas while voting :P
<Xeago> gonna get it checked up if it still hurts over the weekend
arietis has quit [Quit: Computer has gone to sleep.]
<atmosx> r u a student Xeago ?
<Xeago> yes, doing my graduation internship in stockholm, study in holland
pskosinski has joined #ruby
paolooo has quit [Quit: Page closed]
LouisGB has quit []
SCommette has joined #ruby
SCommette has quit [Client Quit]
darthdeus has joined #ruby
therod has joined #ruby
mib_mib has joined #ruby
sambio has joined #ruby
<atmosx> Xeago: computer science?
<Xeago> ish, officially information technology
nitti has joined #ruby
mmealling has joined #ruby
Araxia has joined #ruby
a_a_g has quit [Quit: Leaving.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mib_mib has left #ruby [#ruby]
awestroke has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
<atmosx> Xeago: yeah, cool.
chussenot has quit [Quit: chussenot]
LouisGB has joined #ruby
<Xeago> why do you wonder?
<Xeago> there's blog.xeago.nl/posts/me :)
<shevy> Hanmac, well fascism does not want to be monitored
k0nichiwa has quit [Ping timeout: 240 seconds]
<atmosx> Xeago: r you using some engine to power the blog or just gt pages?
<Xeago> jekyll
<Xeago> migrating it soon to heroky though, need some ruby stuff to run for more shiny graduation papers
<atmosx> Xeago: My quality control in documentation is low. I have to get in the habit of checking for typos, verifying sources. I have a habit of making long uncontrolled sentences so I have to check for sentence structure and for fluent paragraphs. <--- true for me also :-P
bigmcq77 has joined #ruby
<Xeago> totally start a blog
<Xeago> but post atleast once a month
<shevy> atmosx how do you document your projects in general?
awestroke has quit [Remote host closed the connection]
<Xeago> for the last 2 weeks, i've only been typing with 1 hand
greenail has quit [Quit: Leaving]
<shevy> Xeago stop surfing for pr0n man!
<Xeago> don't need a hand to surf for pron
<shevy> or type with the nose, that's at least funny
dmiller has quit [Ping timeout: 246 seconds]
bigmcq77 has quit [Client Quit]
<Xeago> i type with my nose on my phone lol..
<shevy> lol
<Xeago> can't type with my right hand on it anymore
<shevy> ewwww
<Xeago> 160840 Xeago: got my thumb in the fridge handle 3 weeks ago
<shevy> broken?
<Xeago> don;t know
<Xeago> didn't get it checked
<shevy> ah
<Xeago> it is excruciating
<shevy> comforts man
<shevy> time to drink more beer
<Xeago> it's friday afterall :)
bapa has quit [Read error: Operation timed out]
<atmosx> shevy: my 'projects' are so small that doesn't need documentation at all. They are mostly scripts.
<Xeago> I'm having my second keyboard have letters mapped to words
<Xeago> for quicker typing
<shevy> atmosx well then you dont need much documentation, but even a small class needs at least one sentence explaining what it does, no?
samphippen has joined #ruby
<atmosx> shevy: but, even writting comments is boring. Imagine writing rdoc documentation, although rdoc makes the task easy
<shevy> I hate rdoc
<Xeago> atmosx: tomdoc
Ruler_Of_Heaven_ is now known as pipopopo
<shevy> but documentation is important
tvw has quit [Ping timeout: 244 seconds]
<atmosx> shevy: rdoc, reads the comments and creates some sort of documentation.
<shevy> rdoc interferes with the way I write code
<Xeago> shevy: if I open source something github.com/xeago/prefixer is my minimum
<shevy> yeah, I dont like it, it wants me to adjust to its way
<shevy> prefixer?
<shevy> I'd wish gem would support github installation
<shevy> gem install prefixer --from github
<atmosx> shevy: hmmm well it just tried to make your life easier. I think there's a mode who doesn't read nothign except function name,s doesn't create doc's otu of comments
<shevy> :)
<Xeago> code to get into twitch.tv internshi[
carlyle has quit [Remote host closed the connection]
<atmosx> shevy: why, are you documenting your codes?
<shevy> atmosx, well yeah. but in my own way. but more importantly, I try to provide useful tutorials to my larger projects
<atmosx> Xeago: letters mapped to words?
<Xeago> yes
<Xeago> y maps to yes :)
ttt has quit [Remote host closed the connection]
<shevy> I usually document code in a very terse way, sometimes longer when the method is important. I document the intent and reason about it briefly, not long
<Xeago> I have a multi keyboard setup just so you know
<shevy> atmosx what annoyed me in rdoc, it cares about things like "# =========== #"
chussenot has joined #ruby
tagrudev has quit [Quit: no mom not this cable]
dekroning has quit [Ping timeout: 240 seconds]
elsifaka has quit [Ping timeout: 248 seconds]
<atmosx> shevy: and why do you put things lke that in your code? :-P
<shevy> atmosx, for instance look at this here: http://rubydoc.info/gems/MASTER_PIPE/0.0.1/MasterPipe/PipeAliases
bapa has joined #ruby
<shevy> all those # that you see on that page are because of this
<atmosx> shevy: well if you 'treat' rdoc good it will pay back as I see it. But I just used it a couple of times to test it, never *really used it*
zomgbie has joined #ruby
<atmosx> shevy: give me the page
<shevy> atmosx, no, does it have to matter? I dont want to adapt to a tool, I want the tool to adapt to me or my style
<shevy> same reason why I gave up on vim
<atmosx> shevy: true.
<shevy> though at least, you can modify vim a lot
<shevy> I have no idea how to tell rdoc to stop being stupid :)
<atmosx> but If I were you, in this specific case I'd adapt to the tool if that would make write less code/text
<atmosx> without substiantially changing anything
<atmosx> shevy: ah me neither :_P
dekroning has joined #ruby
<shevy> well it is not the only instance of course
<shevy> it uses a special formatting rule within the comment blocks
Serial_Killer_C has joined #ruby
elsifaka has joined #ruby
<shevy> and when I look at it in my editor, it just doesn't look nice
<shevy> I often do things like this atmosx:
bluenemo has quit [Remote host closed the connection]
<shevy> run_cleanup_methods # Run only when we finished earlier
<shevy> just a silly and contrived example :P
morozovm has joined #ruby
<shevy> Most people never seem to do this, they comment on top always
<shevy> # Run only when we finished earlier
<shevy> run_cleanup_methods
zomgbie has quit [Read error: Operation timed out]
carlyle has joined #ruby
<shevy> hmm does yard use different formating rules than rdoc?
pothibo has joined #ruby
<atmosx> shevy: what if you write a complicate function, how will you fit a description in a readable way on the side :-/
<shevy> nono
<shevy> I use top-comments too of course
<shevy> just not always
<shevy> for tiny methods I rarely comment anything on top
maesbn has quit [Ping timeout: 255 seconds]
<shevy> for larger methods, usually I always comment
<atmosx> I see
<atmosx> shevy: you have a github repo?
Xeago_ has joined #ruby
<shevy> atmosx yeah but I dont use it much :(
<shevy> https://github.com/shevegen and for some reason it fails lol
<atmosx> oops
<atmosx> you're down! :-P
<invisime> MANDATORY LEVITY BREAK: http://www.lefthandedtoons.com/1327/
twopoint718 has joined #ruby
stensonb has joined #ruby
klip has quit [Ping timeout: 272 seconds]
carlyle has quit [Remote host closed the connection]
<stensonb> anybody have experience setting up simplecov for a simple gem (NOT rails)?
CaptainKnots has quit [Quit: bazinga!]
jenrzzz has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<atmosx> shevy: that's generated automatically? http://rubydoc.info/gems/environment_information/1.0.2/frames
SCommette has joined #ruby
<shevy> atmosx hmm yeah but I need to find a way to document that properly even with rdoc
<shevy> I gave up on it for now
<shevy> then again, 2 years ago I hated gems. now I am ok with it
<atmosx> haha
<shevy> atmosx you on rubygems.org yet?
Virunga has quit [Remote host closed the connection]
Agis__ has quit [Quit: Agis__]
jrajav has joined #ruby
carloslopes has quit [Remote host closed the connection]
asher^ has joined #ruby
mucker has joined #ruby
jonathanwallace has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
morozovm has quit [Quit: morozovm]
k610 has quit [Ping timeout: 245 seconds]
flagg0204 has joined #ruby
<atmosx> shevy: nope :-)
<shevy> !
<shevy> the earlier the better!
<shevy> my two main projects are still not on rubygems
<atmosx> shevy: you think?
<shevy> yeah
<shevy> you get more feedback slowly over time
<atmosx> I see
jdtornow has joined #ruby
ltsstar1 has joined #ruby
<atmosx> shevy: did you receive any job offers? from random companies who found your code online?
mikepack has quit [Remote host closed the connection]
ltsstar2 has joined #ruby
omg765 has joined #ruby
<shevy> hmm from github
<atmosx> you got a job offer from gh? nice
<shevy> yeah, well, not from github, but via github. I dont remember what it was, some "social media" stuff
ltsstar2 has quit [Client Quit]
dekroning has quit [Quit: leaving]
alexparker has joined #ruby
<alexparker> sorry guys newb Question is it `!myobj.thing.method` or `myobj.thing.!method` ?
<shevy> alexparker the first
Araxia has quit [Quit: Araxia]
<alexparker> ok thought so, thank you!
baroquebobcat has quit [Quit: baroquebobcat]
blazes816 has quit [Quit: blazes816]
daniel_- has quit [Ping timeout: 245 seconds]
<shevy> ! can not be part of a leading name for a method... at least not via "def !foo" ... perhaps via .send ... not sure
ltsstar has quit [Ping timeout: 268 seconds]
<shevy> ! can be the last character in the name of a method however
Cidan has joined #ruby
ThaDick has joined #ruby
clocKwize has quit [Remote host closed the connection]
<Cidan> quick question: gem post install scripts -- still requires that C lib hack?
ltsstar1 has quit [Ping timeout: 264 seconds]
moos3 has joined #ruby
horofox has quit [Quit: horofox]
<mtfk> hi any one can tell me why I can't call private method in that way: http://pastie.org/5119200
<mtfk> sorry not this code :P
Xeago_ is now known as Xeago
irleif has quit [Quit: Computer has gone to sleep.]
<stensonb> @mtfk - "private" scope means its not normally accessible outside of the class...
apeiros_ has quit [Remote host closed the connection]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
carlyle has joined #ruby
<shevy> yeah
<shevy> mtfk private restricts what you can do in code
ZubKonst_ has joined #ruby
<shevy> it's a way to enforce a uniform access
xpen has quit [Remote host closed the connection]
jdtornow has left #ruby [#ruby]
<shevy> and what you can do with methods on an object
<shevy> it's like a tag "internal use mostly please"
xpen has joined #ruby
<shevy> hmmm
<shevy> is end() a method too?
<mtfk> yes I just want to set cookie in my controller (rails) but when I pass in controller something like that set_cookie(self) I've got error message that self.cookies is a private method
<shevy> that would be kinda neat...
<shevy> def foo
<shevy> end :private
<shevy> making foo() a private method hehe
<mtfk> but if I will do that direct in controller it work
davidcelis has quit [Quit: K-Lined.]
rippa has quit [Ping timeout: 255 seconds]
klip has joined #ruby
<mtfk> so I do not understand why when I will pass whole object to some other method (from different class ) I can't use that anymore
<Xeago> because the code that sets cookie is supposed to be in the controller
ZubKonst has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
<Xeago> scratch that
sepp2k has quit [Read error: Connection reset by peer]
<mtfk> I just have some plugin which connect to CAS server which should set cookie and I wanted to do that in my plugin not in main controller where I use that
gyre008 has joined #ruby
ltsstar has joined #ruby
<gyre008> ruby masters is there any way how to print the strings including the quotes or double quotes if there are any ?? like … string1='quote', string2="doubleqoute" and if I print string2 I won't just print double quote but "doubleqoute"...
dhruvasagar has quit [Ping timeout: 260 seconds]
<mtfk> gyre008: use \ before it
<gyre008> i had a bunch of stuff which is going to ERB template and would like to avoid too many Ifs...
<mtfk> to escape it
<mtfk> like '\"doublequote\"'
<gyre008> Im afraid I can't do that…because those parameters are used in other functions…I guess its not possible….
kaushik__ has joined #ruby
<gyre008> and then the parameter passed to that method would contain " in passed value
<gyre008> :)
<mtfk> if they have it it should be no problem to display them
<mtfk> just print them
CaptainKnots has joined #ruby
maletor has joined #ruby
omg765 has quit [Quit: Computer has gone to sleep.]
chimkan has joined #ruby
<Xeago> gyre008: what is the reason for you to need them print it?
<Xeago> can't you print the following: "'#{string}'"
drbawb has quit [Quit: WeeChat 0.3.9]
demian`_ has joined #ruby
<gyre008> Xeago, nah..it's more complicated…thanks for the help mtfk Xeago
gyre008 has left #ruby ["Leaving"]
quest88 has joined #ruby
shadow_fox has joined #ruby
shadow_fox has left #ruby [#ruby]
demian`__ has quit [Ping timeout: 246 seconds]
CaptainKnots has quit [Quit: bazinga!]
CaptainKnots has joined #ruby
HeyHugo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
LucidDreamZzZ has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
HeyHugo has left #ruby [#ruby]
LucidDreamZzZ has joined #ruby
carloslopes has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
anachronistic has joined #ruby
baroquebobcat has joined #ruby
omg765 has joined #ruby
Xeago has quit [Remote host closed the connection]
mikepack has joined #ruby
Xeago has joined #ruby
elsifaka has quit [Ping timeout: 245 seconds]
und3f has quit [Quit: Leaving.]
alexparker has quit [Quit: alexparker]
philcrissman has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
Xeago has joined #ruby
carloslopes has quit [Ping timeout: 252 seconds]
chrishunt has joined #ruby
freeayu has quit [Remote host closed the connection]
answer_42 has quit [Remote host closed the connection]
Edijus has joined #ruby
<Edijus> Hello. Hmm, how do I put it... I am student in business informatics and I need think of system to write. I did 'automated software regression testing system'. Now, I need something else, but I have no ideas. Any help?
elsifaka has joined #ruby
answer_42 has joined #ruby
xpen has quit [Ping timeout: 245 seconds]
treyryan has joined #ruby
larissa has quit [Quit: Leaving]
aganov has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 264 seconds]
robotmay has quit [Remote host closed the connection]
yoklov has joined #ruby
MrSamuel has joined #ruby
h4mz1d has joined #ruby
hoelzro is now known as hoelzro|away
tolbkni has quit [Quit: Ex-Chat]
zomgbie has joined #ruby
nignaztic has joined #ruby
areil has joined #ruby
hbpoison has joined #ruby
nazty has quit [Ping timeout: 256 seconds]
BSaboia__ has joined #ruby
DrShoggoth has joined #ruby
xpen has joined #ruby
BSaboia__ has quit [Client Quit]
khakimov has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
zomgbie has quit [Ping timeout: 240 seconds]
therod has quit [Quit: Leaving...]
alvaro_o has joined #ruby
Virunga has joined #ruby
ttt has joined #ruby
xpen_ has quit [Ping timeout: 264 seconds]
cakehero has joined #ruby
solidoodlesuppor has joined #ruby
paolooo has joined #ruby
samphippen has joined #ruby
wchun has quit [Quit: Leaving]
_alejandro has joined #ruby
ttt has quit [Ping timeout: 245 seconds]
Uranio has joined #ruby
dr_bob has quit [Quit: Leaving.]
noxoc has quit [Ping timeout: 245 seconds]
xpen has quit [Remote host closed the connection]
<shevy> I am gonna ask quiz to you guys
xpen has joined #ruby
<shevy> - Is it possible to decrease $SAFE
shtirlic has quit [Remote host closed the connection]
davidcelis has joined #ruby
vonsar has joined #ruby
<shevy> Edijus your thinking does not seem to be very clear right now
<shevy> first you need to focus on what you want or need
<shevy> if you just need to do something useful in informatics, and want to use ruby, there are a million things to do!
<shevy> just write lots of gems that solve something :)
<shevy> you could hookup an IRC bot to your automated regression testing system and connect it to #ruby :P
<Edijus> shevy: Yeah, and I do not know that 'something'.
<shevy> how is that possible!
<shevy> I have thousand things that I wanna do
<shevy> RubyOS for instance!
<shevy> or learn C... just so to improve the awful ruby bindings to C libraries
<shevy> the ruby GUI bindings are really awful
klip has quit [Ping timeout: 265 seconds]
<shevy> I think it must be because ruby is too complex
<Jonah11_> how can i clean up this erb so that the repeated receiver object and identical parameters aren't repeated: http://pastie.org/5119377
rellin has joined #ruby
quest88 has quit [Quit: quest88]
angusmorrison has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 244 seconds]
baphled has quit [Quit: Lost terminal]
rabidpraxis has joined #ruby
a_a_g has joined #ruby
a_a_g has quit [Client Quit]
a_a_g has joined #ruby
chrishunt has quit [Read error: Connection reset by peer]
a_a_g has quit [Client Quit]
chrishunt has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 245 seconds]
zomgbie has joined #ruby
hbpoison has joined #ruby
Chryson has quit [Quit: Leaving]
demian`__ has joined #ruby
chrishunt has quit [Client Quit]
xpen has quit [Ping timeout: 252 seconds]
bradleyprice has joined #ruby
demian`_ has quit [Ping timeout: 246 seconds]
ThaDick has quit [Quit: zzzZZZ ...]
sertaconay has joined #ruby
MrSamuel has quit [Read error: Connection reset by peer]
MrSamuel has joined #ruby
elsifaka has quit [Quit: Veloma e!]
maletor has joined #ruby
<Uranio> if exist JRuby, I guest that cuold be a ruby for cellphones
klip has joined #ruby
wallerdev has joined #ruby
linoj has quit [Quit: linoj]
k0nichiwa has joined #ruby
darthdeus has quit [Quit: Leaving...]
mikepack_ has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
prezioso has joined #ruby
yoklov has quit [Quit: computer sleeping]
Edijus has left #ruby [#ruby]
tchebb has joined #ruby
havenn has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
darthdeus has joined #ruby
dnstbr has joined #ruby
linoj has joined #ruby
demian`__ has quit [Quit: demian`__]
h4mz1d has joined #ruby
Serial_Killer_C has joined #ruby
filipe has quit [Read error: Connection reset by peer]
Bosma has quit [Quit: leaving]
nitti has quit [Remote host closed the connection]
fermion has joined #ruby
apeiros_ has joined #ruby
nitti has joined #ruby
k0nichiwa has quit [Ping timeout: 240 seconds]
irleif has joined #ruby
yaymukund has quit [Ping timeout: 246 seconds]
PragCypher has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
samphippen has joined #ruby
crodas has joined #ruby
eldariof has quit []
Tombar has joined #ruby
crodas has quit [Max SendQ exceeded]
k0nichiwa has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
crodas has joined #ruby
angusmorrison has joined #ruby
d2dchat has joined #ruby
tomsthumb has joined #ruby
ryanlecompte has joined #ruby
linoj has quit [Remote host closed the connection]
havenn_ has joined #ruby
blazes816 has joined #ruby
xorigin has quit [Quit: leaving]
linoj has joined #ruby
chumpy_ has joined #ruby
adambeynon has joined #ruby
<shevy> wtf
<shevy> $SAFE = 5
<shevy> irb.rb:273:in `signal_status': Insecure: can't modify instance variable (SecurityError)
darthdeu has joined #ruby
darthdeu has quit [Client Quit]
roadt` has quit [Ping timeout: 244 seconds]
AdrienG has quit [Excess Flood]
justinweiss has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
Iszak has quit [Quit: User has gone to sleep.]
justinweiss has joined #ruby
TheMoonMaster has quit [Ping timeout: 245 seconds]
hbpoison has quit [Read error: Connection reset by peer]
darthdeus has quit [Ping timeout: 260 seconds]
k0nichiwa has quit [Ping timeout: 240 seconds]
margle has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
apeiros_ has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
jrajav has quit []
<havenn> Error: irb does not work for $SAFE level higher than 2
armycream has joined #ruby
nignaztic has quit [Read error: Operation timed out]
zf__ has joined #ruby
psycho_one has quit [Read error: Connection reset by peer]
perun_ has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
jeffreybaird_ has joined #ruby
psycho_one has joined #ruby
zf has quit [Read error: Operation timed out]
x0F has quit [Disconnected by services]
perun_ has joined #ruby
x0F_ has joined #ruby
palyboy has quit [Read error: Operation timed out]
jbpros has quit [Read error: Operation timed out]
savage- has joined #ruby
jbpros has joined #ruby
X-Jester has quit [Read error: Operation timed out]
x0F_ is now known as x0F
MrSamuel has quit [Quit: MrSamuel]
artOfWar has quit [Read error: Connection reset by peer]
X-Jester has joined #ruby
palyboy has joined #ruby
xargoon has quit [Read error: Operation timed out]
atmosx has quit [Quit: quiting...]
<havenn> shevy: More important question, why aren't you using Pry?? :P
xargoon has joined #ruby
horofox has joined #ruby
artOfWar has joined #ruby
TheMoonMaster has joined #ruby
Tombar_ has joined #ruby
jeffreybaird has quit [Ping timeout: 256 seconds]
jeffreybaird_ is now known as jeffreybaird
moshee has quit [Ping timeout: 245 seconds]
SJr has quit [Read error: Operation timed out]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
kpshek has quit []
robustus has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
SJr has joined #ruby
Tombar has quit [Ping timeout: 256 seconds]
Jonah11_ has quit [Ping timeout: 244 seconds]
Jonah11_ has joined #ruby
kaneda__ has joined #ruby
yoklov has joined #ruby
ryanlecompte has quit [Read error: Operation timed out]
<shevy> havenn the author was constantly spamming me, can't use projects led by spammers
apeiros_ has joined #ruby
<shevy> indeed! irb is fine with $SAFE = 2
<havenn> shevy: Oooh. Spamming you how? I'm curious.
<havenn> shevy: Dramz!!
<havenn> shevy: It has been 65 days... http://rubydramas.com
crodas has quit [Write error: Broken pipe]
nazty has joined #ruby
<shevy> havenn horseporn and other boring stuff in PRIVMSG, continuing to pester me in PRIVMSG
<wmoxam> ruby dramas obviously isn't paying attention
philcrissman has quit [Remote host closed the connection]
<havenn> ^
<havenn> shevy: Eek. >.>
crodas has joined #ruby
horofox has quit [Quit: horofox]
jmccune has quit [Ping timeout: 255 seconds]
artOfWar has quit [Remote host closed the connection]
crodas has quit [Client Quit]
crodas has joined #ruby
artOfWar has joined #ruby
tvw has joined #ruby
<havenn> wmoxam: Yeah, that is... serious dramz.
mahmoudimus has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
<linnea> good afternoon
mahmoudimus has quit [Read error: Connection reset by peer]
jmccune has joined #ruby
jmccune is now known as Guest34832
<havenn> linnea: g'morning
mahmoudimus has joined #ruby
dakine has quit [Ping timeout: 252 seconds]
<linnea> we have 10 cm of snow O.o
<matti> Nice.
<havenn> <- we have palm trees >.>
<matti> Whereabouts?
<linnea> turku, fin
mikepack_ has quit [Remote host closed the connection]
<linnea> it would be nicer if I had winter tires in my car :D
vonsar has quit [Ping timeout: 256 seconds]
bigkevmcd has quit [Quit: outta here]
Uzix has quit [Ping timeout: 240 seconds]
Serial_Killer_C has joined #ruby
mikepack has joined #ruby
vlad_starkov has joined #ruby
vonsar has joined #ruby
voodoofish430 has joined #ruby
chrishunt has joined #ruby
scx has joined #ruby
mklappstuhl has quit [Ping timeout: 265 seconds]
thinkdevcode has joined #ruby
timmow has quit [Quit: has left the building]
love_color_text has joined #ruby
Tombar_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
darthdeus has joined #ruby
Araxia has joined #ruby
prezioso has quit [Ping timeout: 244 seconds]
horofox has joined #ruby
<apeiros_> moar drama!
darthdeus has quit [Client Quit]
tyfighter has joined #ruby
Uzix has joined #ruby
darthdeus has joined #ruby
alfism has joined #ruby
alem0lars has joined #ruby
philcrissman has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 245 seconds]
<havenn> brixen lost me when he called _why a 'bad' programmer. >.>
irleif has quit [Quit: Computer has gone to sleep.]
<linnea> is it possible to give method one argumet and return two?
<havenn> linnea: two what?
<linnea> uh
carloslopes has joined #ruby
<Mon_Ouie> You don't return arguments, you return objects; and you can return more than one by returning an array
<linnea> I was going to say that give one variable and get two variable back
sailias has quit [Quit: Leaving.]
<apeiros_> you don't give variables either
<apeiros_> you pass around objects
maletor has joined #ruby
<apeiros_> may seem like a superficial difference at first, but it has important implications.
axl_ has quit [Quit: axl_]
ThaDick has joined #ruby
yaymukund has joined #ruby
wchun has joined #ruby
<havenn> linnea: def i_am_method i_am_arguement; [i_am_arguement, i_am_arguement]; end; i_am_method 'hi' #=> ["hi", "hi"]
emanon_ has joined #ruby
nateberkopec has joined #ruby
<linnea> now I have
<linnea> def fastaHandle(s) fasta = Bio::FastaFormat.new(s) return fasta.entry_id, fasta.seq
<linnea> end
billy_ran_away has joined #ruby
<linnea> hmm, maybe I just don't do that in own method
<apeiros_> linnea: ruby convention is fasta_handle
<billy_ran_away> apeiros_: I really respect your opinion, can you tell me if this dumb... https://gist.github.com/3959906
NemesisD has joined #ruby
<linnea> apeiros_: what different it makes :P
<apeiros_> billy_ran_away: watching a movie, ping me in ~2h
vaino has quit [Quit: Leaving...]
<NemesisD> anyone know of an efficient way to deterministically serialize a multi-level hash?
<billy_ran_away> apeiros_: Fair enough.
Araxia has quit [Ping timeout: 260 seconds]
<billy_ran_away> apeiros_: Thanks : )
<billy_ran_away> Anyone else want to tell me if this is dumb? https://gist.github.com/3959906
<linnea> apeiros_: heh I just noticed that my other methods are with _ but two is capitalizedNames
mrsolo has joined #ruby
Trioke has joined #ruby
<billy_ran_away> I feel like adding singleton methods to a Hash is kind of cheap...
<havenn> NemesisD: Like?: Marshal.dump []
slainer68 has quit [Remote host closed the connection]
<billy_ran_away> But I don't know… I couldn't think of another way to do it.
axl_ has joined #ruby
<billy_ran_away> It feels hackey so I'd love feedback...
bbttxu has quit [Quit: bbttxu]
<havenn> linnea: The Github Ruby style guide is *mostly* awesome: https://github.com/styleguide/ruby
apok has joined #ruby
<NemesisD> havenn: i don't think that would be deterministic because of hash ordering
<havenn> NemesisD: I think in 1.9+ it should be? Not sure.
Servidorv has joined #ruby
maletor has quit [Ping timeout: 255 seconds]
<linnea> uuuh there is case in ruby
<Servidorv> hey guys how are you
<Servidorv> good afternoon
<NemesisD> havenn: unfortunately i have to support 1.8
<Mon_Ouie> It uses insertion order, but you may be creating equal hashes with different insertion orders in your program
paolooo has quit [Quit: Page closed]
<havenn> servidorv: g'morning
anderse has quit [Quit: anderse]
<Servidorv> oh is 2.04pm here in argentina :)
juarlex has joined #ruby
<Mon_Ouie> If your keys have #<=>, you can sort them and iterate over the sorted keys
lecreme has joined #ruby
sent-hil has joined #ruby
chumpy_ has quit [Remote host closed the connection]
Tombar has joined #ruby
<Servidorv> hey guys i have a method that does a .map on an array, now what i need to do is a if 'photo' == post['type'] then add 'image' => post['link']
<Servidorv> how can i do it
g-ram has joined #ruby
<Servidorv> here is the main method https://gist.github.com/3959942
Sou|cutter has quit [Quit: WeeChat 0.3.7]
icooba has quit [Quit: Computer has gone to sleep.]
Araxia has joined #ruby
maletor has joined #ruby
binaryplease has joined #ruby
<Servidorv> how can i do it so it adds post['link'] if the post['type'] == 'photo' ??
zf__ is now known as zf
dylanjha has joined #ruby
stenno has quit [Quit: Verlassend]
Guest34832 has quit [Changing host]
Guest34832 has joined #ruby
jgrevich has joined #ruby
Guest34832 is now known as jmccune
lurch_ has left #ruby [#ruby]
areil has quit [Remote host closed the connection]
rippa has joined #ruby
lecreme has quit [Quit: Leaving]
alexparker has joined #ruby
dakine has joined #ruby
robotmay has joined #ruby
rmillerx has joined #ruby
codefyre has joined #ruby
Sou|cutter has joined #ruby
g0bl1n has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
axl_ has joined #ruby
<linnea> how do you come up with variable names?
<linnea> or object names
<billy_ran_away> linnea: http://thesaurus.com/
<linnea> :P
<billy_ran_away> linnea: I just put in a word that comes to mind but isn't a good fit and look for the synonyms.
<linnea> i have now used a lot f, s and so on..
<GeekOnCoffee> if you're trying to come up with variable names or object names you're probably doing it wrong
Araxia has quit [Read error: Connection reset by peer]
<GeekOnCoffee> you either A) don't know your use case well enough or B) aren't writing your code so that it's easy to read
Araxia has joined #ruby
<linnea> that might be
<linnea> I started learning coding maybe month ago
lecreme has joined #ruby
gokul has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
QKO has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
QKO has joined #ruby
philcrissman has joined #ruby
hbpoison has joined #ruby
<Mon_Ouie> Or you're just not thinking of that simple word that describes exactly what you're doing. As counter untuitive as it is, coming up with simple and clear names is not that easy.
<armycream> .
instinkt has joined #ruby
lushious is now known as HarryPotterz
alem0lars has quit [Ping timeout: 248 seconds]
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
stensonb has left #ruby [#ruby]
chumpy_ has joined #ruby
skcin7 has joined #ruby
vonsar has quit [Quit: This computer has gone to sleep]
codefyre has quit [Quit: Leaving]
Slivka has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
havenn_ has quit [Remote host closed the connection]
gridaphobe has joined #ruby
philcrissman has quit [Remote host closed the connection]
nga4 has joined #ruby
glyytchy has joined #ruby
bricker has joined #ruby
c0rn_ has joined #ruby
alem0lars has joined #ruby
Tuxist has joined #ruby
asher^ has left #ruby [#ruby]
h4mz1d has joined #ruby
nyrb has quit [Ping timeout: 252 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
noxoc has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
bwlang has joined #ruby
linoj has quit [Quit: linoj]
Solnse has joined #ruby
instinkt has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
cakehero has quit [Quit: Computer has gone to sleep.]
cableray has joined #ruby
rakl has quit [Quit: sleeping]
daniel_- has joined #ruby
omry has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<alexparker> hey anyone here?
carlyle has quit [Remote host closed the connection]
instinkt has joined #ruby
rakl has joined #ruby
knite has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
emanon_ has quit [Quit: Leaving.]
sertaconay_ has joined #ruby
carloslopes has quit [Remote host closed the connection]
<shevy> hi alexparker
sertaconay has quit [Ping timeout: 245 seconds]
<armycream> hi alex
<shevy> linnea it depends
<shevy> linnea my favourite name is _
SPYGAME has joined #ruby
HabeasPorpoise has joined #ruby
<shevy> _ = ''
<shevy> _ << 'Hello World'
<armycream> hi shevy
carloslopes has joined #ruby
<shevy> hi armybutter
<linnea> shevy: is that good coding? :P
alem0lars has quit [Quit: quit]
kirun has joined #ruby
<shevy> linnea I am not sure, who defines what is good and what is bad? But I can tell you the rationale for when I use _
<shevy> I use _ when I feel that it is a throwaway variable anyway
<shevy> linnea, I sometimes do that when I need to assemble a string that I have to output to the user
nyrb has joined #ruby
davorb has quit [Ping timeout: 256 seconds]
<shevy> linnea if you need to reuse a variable name, like an instance variable, then I usually call it like the class name
<shevy> @hello_world = HelloWorld.new
<shevy> @hello_world.greet_everyone
<davidcelis> uninitialized constant HelloWorld (NameError)
JohnBat26 has quit [Ping timeout: 255 seconds]
sailias has joined #ruby
armycream has quit []
Araxia_ has joined #ruby
<shevy> naming string objects is hard
<shevy> foo, bar = '',''
<shevy> actually
<shevy> naming in itself can be hard
knite has quit [Read error: Connection reset by peer]
<shevy> array.each_with_index {|item, index|
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
cakehero has joined #ruby
cakehero has quit [Read error: Connection reset by peer]
Astral_ has quit [Ping timeout: 240 seconds]
ThaDick has quit [Quit: zzzZZZ ...]
kaushik__ has quit [Ping timeout: 264 seconds]
<shevy> I sometimes use strange things
<shevy> puts TimeConverter.new('20.02.2009').return_weekday
knite has joined #ruby
cakehero has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
cakehero has quit [Client Quit]
chimkan has quit [Quit: chimkan]
amacgregor_osx has quit [Ping timeout: 244 seconds]
shevy2 has joined #ruby
ThaDick has joined #ruby
codecaster has joined #ruby
<codecaster> Hi all
<codecaster> Anybody knows how chainable criteria objects, like in mongoid or ActiveRecord work?
<davidcelis> shevy: you realize that naming things is one of two hard problems in software right
<codecaster> do they use method missing?
<codecaster> or Enumerable + each or what?
<davidcelis> codecaster: i'm pretty sure, in the case of activerecord, a Relation object builds up a set of query criterion as you chain methods together. once an enumerable method is called, the query is executed and you can iterate
Servidorv has quit [Quit: If your not living on the edge, you're taking up too much space]
alexparker has quit [Quit: alexparker]
<codecaster> so it just chains and returns stuff and fires the query on calls to each()
<codecaster> right?
fflush has joined #ruby
<codecaster> well, in case it's using Enumerable
<codecaster> otherwise I would have to implement all Enumerable methods
shevy has quit [Ping timeout: 260 seconds]
<davidcelis> calls to any Enumerable methods
<davidcelis> ActiveRecord::Relation includes Enumerable
<codecaster> I see
<codecaster> thanks
amacgregor_osx has joined #ruby
davorb has joined #ruby
jrajav has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia has joined #ruby
HarryPotterz is now known as drdiv
drdiv is now known as lushious
shadoi has joined #ruby
Axsuul has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
__zfn__ has joined #ruby
invisime has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
Xeago has quit [Remote host closed the connection]
fflush has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Xeago has joined #ruby
<apeiros_> billy_ran_away: still need an opinion?
axl_ has quit [Read error: Connection reset by peer]
<billy_ran_away> apeiros_: From you! Always : )
alexparker has joined #ruby
alexparker has quit [Client Quit]
<billy_ran_away> apeiros_: Can you tell me if this dumb... https://gist.github.com/3959906
<apeiros_> what's the current code then? or still the same as pasted?
<billy_ran_away> apeiros_: I feel like adding singleton methods to a Hash is kind of cheap...
tekknolagi has joined #ruby
<apeiros_> well, you'd better use a module and extend IMO
<billy_ran_away> apeiros_: Still the same, I've been calling around looking for a generator in prep for Hurricane Sandy...
<billy_ran_away> apeiros_: Everyone is out though.
<tekknolagi> Hi. For some reason, my installatin of Phusion Passenger won't see my gems. I installed Phusion Passenger, ruby, and rubygems with rvm. I only have one ruby installed, 1.9.3.
<tekknolagi> My gem list shows the gem (data_mapper) in my list, but in the application it comes up with "not found."
<tekknolagi> My application is located at http://brightswipe.com, running on Apache.
<billy_ran_away> apeiros_: It's just where I've been keeping my other factory helpers...
<tekknolagi> How can I fix this/what's going on?
axl_ has joined #ruby
<billy_ran_away> apeiros_: Do you think that approach is dumb?
Takehiro has joined #ruby
<billy_ran_away> apeiros_: Like is it kind of amateurish to add a method to a hash like that?
ThaDick has quit [Quit: zzzZZZ ...]
<apeiros_> billy_ran_away: as said, I'd use a module. gimme a minute…
<billy_ran_away> apeiros_: K
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
Xeago has quit [Ping timeout: 240 seconds]
derekbarber has joined #ruby
jaygen has quit [Remote host closed the connection]
<tekknolagi> Anyone?
axl_ has quit [Remote host closed the connection]
derekbarber has left #ruby [#ruby]
pmros has joined #ruby
<pmros> hi!
axl_ has joined #ruby
<billy_ran_away> tekknolagi: Make sure in your apache conf you're referencing the right rvm wrapper...
<billy_ran_away> tekknolagi: https://rvm.io/integration/passenger/
ddd has joined #ruby
<tekknolagi> billy_ran_away: LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/ext/apache2/mod_passenger.so
<tekknolagi> PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17
<tekknolagi> PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby
binarypl1 has joined #ruby
<tekknolagi> PassengerMaxPoolSize 2
<tekknolagi> i'm referencing what rvm told me to reference
<apeiros_> billy_ran_away: http://pastie.org/5120040
<billy_ran_away> tekknolagi: Looks like you got everything wrapped up in a nice box...
<tekknolagi> billy_ran_away: except passenger can't find data_mapper or anything
<billy_ran_away> tekknolagi: I don't see a Gemset referenced in your PassengerRoot or PassengerRuby, are you perhaps using one?
<tekknolagi> billy_ran_away: just global
<tekknolagi> i don't have any other gemsets
joast has quit [Ping timeout: 260 seconds]
<billy_ran_away> apeiros_: Nice, thanks, so you don't think the approach (the idea overall) is dumb?
binaryplease has quit [Ping timeout: 252 seconds]
<billy_ran_away> tekknolagi: But all your Gems are listed when using the gem command? Is the apache user added to the rvm group?
<apeiros_> billy_ran_away: no. it's rather common in ruby to add methods on single instances.
<apeiros_> billy_ran_away: class methods being prime examples.
h4mz1d has quit [Ping timeout: 252 seconds]
<tekknolagi> billy_ran_away: can you explain the concept of an "rvm group"? and yeah they are, when in `max` and `root`
ThaDick has joined #ruby
nitti has quit [Remote host closed the connection]
<billy_ran_away> Are you familiar with Users/Groups in POSIX environments?
niklasb has joined #ruby
jrist is now known as jrist-afk
<tekknolagi> billy_ran_away: yep.
Araxia_ has joined #ruby
<billy_ran_away> tekknolagi: Well rvm is just a group with read/write permissions to a global rvm setup.
<billy_ran_away> do a groups apache
<tekknolagi> billy_ran_away: Oh. I'll take a look
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
<tekknolagi> billy_ran_away: i have no `apache` user - how can i list users?
g0bl1n has quit [Ping timeout: 255 seconds]
<billy_ran_away> tekknolagi: cat passwd
<billy_ran_away> tekknolagi: Could be www-data
<tekknolagi> yeah i think it's www-data
<billy_ran_away> tekknolagi: Ubuntu then?
<tekknolagi> max ~ $ groups www-data
<tekknolagi> www-data : www-data
rmillerx has quit [Quit: rmillerx]
<tekknolagi> yep, Ubuntu server.
invisime has joined #ruby
<billy_ran_away> sudo useradd -G rvm www-data
fermion has quit [Quit: P]
__zfn__ has quit [Quit: KVIrc 4.1.1 Equilibrium http://www.kvirc.net/]
<tekknolagi> it tells me www-data already exists... is it trying to create a suer?
<tekknolagi> user*, rather
omry has quit [Remote host closed the connection]
<billy_ran_away> tekknolagi: It shouldn't be… I thought useradd -G <group-name> <user-name>
binarypl1 has quit [Quit: WeeChat 0.3.9]
<billy_ran_away> man useradd and see...
<tekknolagi> i'll take a look
tk__ has quit [Quit: ばいばい]
<tekknolagi> it does "cr3eate or update" but... weird.
<billy_ran_away> tekknolagi: Okay try adduser -G rvm www-data
nwertman has quit [Quit: leaving]
<billy_ran_away> tekknolagi: Then try sudo user mod -G rvm www-data
_alejandro has quit [Read error: Connection reset by peer]
<billy_ran_away> tekknolagi: Then try sudo usermod -G rvm www-data
<billy_ran_away> tekknolagi: friggin' autocorrect...
<tekknolagi> oh i shall try that
_alejandro has joined #ruby
ddd has quit [Quit: Leaving.]
AdrienG has joined #ruby
peas_ has joined #ruby
lecreme has quit [Quit: This computer has gone to sleep]
omg765 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Slivka has joined #ruby
<tekknolagi> billy_ran_away: Did that, restarted Apache, restarted Passenger (touch tmp/restart.txt) and still the same error. Unfortunately.
<billy_ran_away> apeiros_: Thanks for your opinion and the cleaner way to do it. I always appreciate your help!
<apeiros_> yw
<billy_ran_away> groups www-data is now showing rvm though?
noxoc1 has joined #ruby
slainer68 has joined #ruby
<tekknolagi> oh right let me check that
<billy_ran_away> restarting Apache will restart Passenger.
<billy_ran_away> No need to touch tmp/restart.txt
<tekknolagi> billy_ran_away: `groups www-data` shows both rvgm and www-data
<tekknolagi> rvm*, rather
ddd has joined #ruby
<billy_ran_away> Can you pastie the error?
<Axsuul> Is it better to use global variables or constants for storing a redis connection object?
bemson has joined #ruby
omry has joined #ruby
<tekknolagi> billy_ran_away: you cansee it at http://brightswipe.com
<tekknolagi> Axsuul: depends on the use case i suppoe
stkowski has joined #ruby
zommi has quit [Quit: Leaving.]
noxoc has quit [Ping timeout: 252 seconds]
cableray has quit [Ping timeout: 264 seconds]
straind` has joined #ruby
straind has quit [Read error: Connection reset by peer]
maletor has quit [Read error: Connection reset by peer]
<Axsuul> tekknolagi: just thought it weas abd practice or something to use global vars
h4mz1d has joined #ruby
omry_ has joined #ruby
<tekknolagi> Axsuul: they wouldn't exist if they did not have a use case
<tekknolagi> billy_ran_away: thoughts?
love_color_text has quit [Remote host closed the connection]
artnez has joined #ruby
ddd has quit [Quit: Leaving.]
omry_ has quit [Client Quit]
<billy_ran_away> tekknolagi: Yea look in your apache error log should be like /var/log/apache/err.log or something.
ddd has joined #ruby
thinkdevcode has joined #ruby
omry has quit [Quit: Leaving]
omry has joined #ruby
<tekknolagi> billy_ran_away: looking now
love_color_text has joined #ruby
dhruvasagar has joined #ruby
straind` has quit [Ping timeout: 252 seconds]
jcaudle has quit [Quit: jcaudle]
<tekknolagi> billy_ran_away: here you go. http://pastie.org/5120142
cableray has joined #ruby
maletor has joined #ruby
gokul has quit [Quit: Leaving]
<tekknolagi> whois tekknolagi
<tekknolagi> billy_ran_away: so it's just a LoadError.
skaczor has left #ruby ["Leaving"]
PragCypher has quit [Remote host closed the connection]
lecreme has joined #ruby
chimkan_ has joined #ruby
<tekknolagi> billy_ran_away: okay so when i removed the vendor/ directory in my application root, then restarted Passenger, stuff changed
<tekknolagi> for some reason
<tekknolagi> billy_ran_away: it now can't find the base32 gem
lecreme has quit [Client Quit]
jcaudle has joined #ruby
PragCypher has joined #ruby
straind has joined #ruby
mark_locklear has quit [Remote host closed the connection]
arturaz has joined #ruby
arietis has joined #ruby
chumpy_ has quit [Remote host closed the connection]
chumpy_ has joined #ruby
sent-hil has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
krisbulman has joined #ruby
berserkr has quit [Quit: Leaving.]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
chumpy_ has quit [Client Quit]
nicoulaj has joined #ruby
chumpy_ has joined #ruby
jeffreybaird has joined #ruby
chimkan_ has quit [Quit: chimkan_]
mmitchell has joined #ruby
haxrbyte has quit [Ping timeout: 255 seconds]
tekknolagi has quit [Ping timeout: 245 seconds]
elementz has joined #ruby
elementz has joined #ruby
elementz has quit [Changing host]
kaushik__ has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
daniel_- has quit [Quit: WeeChat 0.3.9]
chumpy_ has quit [Client Quit]
chumpy_ has joined #ruby
chumpy_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
kbeddingfield has joined #ruby
dhruvasagar has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Remote host closed the connection]
tekknolagi has joined #ruby
<tekknolagi> ]
h4mz1d has quit [Ping timeout: 244 seconds]
mneorr_ has joined #ruby
<tekknolagi> billy_ran_away: thanks, fixed it
tekknolagi has quit [Client Quit]
coffer has quit [Remote host closed the connection]
lecreme has joined #ruby
SJr has quit [Excess Flood]
SJr has joined #ruby
geekbri has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
_Mon_Ouie_ is now known as Mon_Ouie
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
codecaster has joined #ruby
maletor has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
headius has joined #ruby
sertaconay_ has quit [Read error: Connection reset by peer]
mneorr_ has quit [Remote host closed the connection]
kbeddingfield has quit []
kbeddingfield has joined #ruby
artnez has quit [Quit: artnez]
gridapho` has joined #ruby
hotovson has quit [Remote host closed the connection]
kbeddingfield has quit [Client Quit]
gridaphobe has quit [Ping timeout: 264 seconds]
kbeddingfield has joined #ruby
kbeddingfield has quit [Client Quit]
kbeddingfield has joined #ruby
a_a_g has joined #ruby
davidcelis has quit [Quit: K-Lined.]
margle has joined #ruby
maletor has joined #ruby
chrishunt has quit [Quit: Leaving...]
gridapho` has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
gridapho` has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
<codecaster> please, can you give me some feedback on this gem? https://github.com/Papipo/activesearch
skcin7 has joined #ruby
gridapho` is now known as gridaphobe
<codecaster> I plan to add more engines soon (Solr, Sphinx, etc)
cakehero has joined #ruby
chimkan has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
psycho_one has quit [Remote host closed the connection]
hbpoison has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Servidorv has joined #ruby
jaygen has joined #ruby
nitti has joined #ruby
burgestrand has joined #ruby
snearch has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
<Servidorv> hey guys
dmerrick has quit [Ping timeout: 244 seconds]
AdrienG has quit [Quit: AdrienG]
<Servidorv> can anyone tell me what does this line do ?? next if ['date', 'message', 'post_id', 'type'].include?(name)
<apeiros_> it calls next if name is any of the values in the array.
pettsson has joined #ruby
<apeiros_> action if condition --> short for --> if condition then action end
sambio has quit [Ping timeout: 244 seconds]
drago757 has joined #ruby
peas_ has quit [Remote host closed the connection]
<Servidorv> you know i have a method but i dont get it, cause i just added 'pictures' and now it brigns all the info as 0
xclite has quit [Quit: Leaving]
<Servidorv> thats the method
<Servidorv> can anyone tell me what does this method do??
Tref has quit [Quit: Tref]
wrapids has joined #ruby
<apeiros_> your code says you added 'picture', not 'pictures'
wrapids has left #ruby [#ruby]
<Servidorv> sorry picture
<apeiros_> seems it calculates the average for all fields except the ones in that array
<apeiros_> for anything else, you pasted *far* too little information.
dhruvasagar has quit [Ping timeout: 272 seconds]
<Servidorv> oh ok, but the problem is that after i added 'picture' it will return 0,0
elaptics is now known as elaptics`away
akem has quit [Ping timeout: 240 seconds]
levity_island has joined #ruby
twopoint718 has quit [Ping timeout: 276 seconds]
<apeiros_> you mean 0.0?
<apeiros_> (0,0 are two values, two zeros, 0.0 is one value)
<Servidorv> na it justs returns impressions => [0,0]
<apeiros_> I very much doubt that
<apeiros_> average = hash.each.inject({}) # <-- average will be a hash
artOfWar has quit [Remote host closed the connection]
<Servidorv> {impressions => [10]}
<apeiros_> look, if you want help, provide *all necessary information*
<Servidorv> ok thanks
<apeiros_> and *don't be sloppy* in the infos you give
pothibo has quit [Quit: pothibo]
<Servidorv> ok
<Servidorv> then
<apeiros_> {impressions => [10]} # sloppy again, what's impressions supposed to be? it's NOT the same as {"impressions" => [10]}
<Servidorv> this method is used for calculatin the averages, i have an array with all the posts from facebook page, but i needit to add picture on it so i can show the picture of each post, now the problem is that when i added 'picture' now it wont calculate nothing it returns 0
pskosinski has quit [Read error: Connection reset by peer]
pk1001100011 has joined #ruby
horofox has quit [Quit: horofox]
skcin7 has joined #ruby
sambio has joined #ruby
pk1001100011 is now known as pskosinski
deadalus has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
artOfWar has joined #ruby
helichopter has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
atmosx has joined #ruby
emanon_ has joined #ruby
<emanon_> exit
emanon_ has quit [Client Quit]
aquaranto has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 252 seconds]
reset has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
chrishunt has joined #ruby
m4rz has joined #ruby
<m4rz> hi
<m4rz> I've installed some gems with rake install I try to remove all
<m4rz> how I can?
Jonah11_ has left #ruby ["Leaving"]
<atmosx> m4rz: you want to remove all gems or only the gems that 'rake installed' ?
<m4rz> ./usr/local/Cellar/ruby/1.9.3-p286/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rake (>= 0) amongst [bundler-1.2.1] (Gem::LoadError)
CaptainKnots has quit [Quit: bazinga!]
FlyingFoX has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
krisbulman has quit [Quit: krisbulman]
<blazes816> add rake to your Gemfile and do "bundle install", or do "gem install rake"
love_color_text has quit [Remote host closed the connection]
answer_42 has quit [Ping timeout: 276 seconds]
Araxia has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
nitti has joined #ruby
tpe11etier has quit [Read error: Connection reset by peer]
<m4rz> my bundle install says "Your bundle is complete"
<m4rz> but not it's complete
sambio has quit [Ping timeout: 260 seconds]
jrist-afk is now known as jrist
ThaDick has joined #ruby
kuzushi has quit [Ping timeout: 252 seconds]
Araxia has joined #ruby
Takehiro has joined #ruby
koshii has joined #ruby
<m4rz> how I can remove all gems installed from this?
skcin7 has quit [Quit: Computer has gone to sleep.]
bemson has quit [Quit: bemson]
amacgregor_osx_ has joined #ruby
nitti_ has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
bemson has joined #ruby
ddd has quit [Remote host closed the connection]
Dolphinius has joined #ruby
nitti has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
ddd has joined #ruby
<shevy2> ewww bundle ;P
joast has joined #ruby
robertotauille has quit [Quit: Leaving...]
shevy2 is now known as shevy
<shevy> if bundler would not be installed, I'd say do "gem list" then remove the gems you don't need. but as bundle is annoying as hell, perhaps it tries to hide gems from you
nitti_ has quit [Remote host closed the connection]
Juul has joined #ruby
yazdmich has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Takehiro has quit [Ping timeout: 245 seconds]
<m4rz> bundle install show gems, but I want to remote those gems
<shevy> remote?
<m4rz> gem list only show bundle rake
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
<yazdmich> I was told by most people who have looked at Turing that it most resembles Java or Ruby, this is an incomplete Turing program to parse text and replace certain strings. could i please get some help with fixing it? http://pastebin.com/weTM3Akr
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
davidcelis has joined #ruby
nitti_ has joined #ruby
<apeiros_> yazdmich: that's not ruby. not valid ruby at least.
Tombar has quit [Remote host closed the connection]
<yazdmich> it's Turing
<shevy> yazdmich switch to ruby, it's better
elementz has quit [Quit: leaving]
<yazdmich> which i have been told looks like ruby/functions similar
<shevy> nah ruby is more beautiful
<apeiros_> yazdmich: ah, misunderstood you then. but in that case - wrong channel
<shevy> junkfound1 := index (line1, "Junk Food")
<yazdmich> its the language my highschool intoductory programming course uses
Tombar has joined #ruby
a_a_g has quit [Quit: Leaving.]
<shevy> I had to use Pascal in school :)
<m4rz> any idea shevy?
<yazdmich> Turing is pascal-like
headius has quit [Quit: headius]
<shevy> m4rz no idea about bundler. All I know is that I won't use it. if it is just a .gem file, and you verified via "gem list" that this gem is found, remove it via "gem remove name_here"
<yazdmich> most like Java in function and syntax, but nobody in #java even attempts to help
<m4rz> I've about 20 gems..
<m4rz> manual remove?
<shevy> oh
<shevy> "gem uninstall name-1.0.gem"
<shevy> that's how to uninstall "properly"
<shevy> well remove the gems you dont need
<m4rz> gem uninstall says gem isn't installed
<shevy> I guess you can omit .gem
<shevy> what is the name of the gem.
<shevy> what does gem list show.
<m4rz> only rake and bundler
<shevy> eh?
jipiboily has joined #ruby
yazdmich has left #ruby [#ruby]
<shevy> you installed two gems only?
jonathanwallace has quit [Ping timeout: 252 seconds]
<m4rz> bundle install show about 20 gems installed
Neomex has joined #ruby
<m4rz> "your bundle is complete"
<m4rz> but gem list
<m4rz> only show 2
<shevy> as said, no idea what bundle is doing. it's a piece of crap anyway
<m4rz> rake and bundle
<shevy> there is #bundler here on freenode
nanderoo has quit [Quit: Leaving.]
<m4rz> ok thanks
cakehero has quit [Quit: Computer has gone to sleep.]
jipiboily has left #ruby [#ruby]
dangerousdave has quit [Quit: Leaving...]
<shevy> bundler probably uses some secret directory to store its gems :)
<shevy> like ~/.bundler/where/no/user/will/ever/look
tpe11etier has joined #ruby
jonathanwallace has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
davidcelis has quit [Quit: K-Lined.]
billy_ran_away has quit []
Cultofmetatron has quit [Remote host closed the connection]
davidcelis has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
sepp2k has joined #ruby
Ryhnn has quit [Ping timeout: 244 seconds]
<ddd> there is too
Araxia has quit [Read error: Connection reset by peer]
<ddd> hehe you were being facetious
<ddd> nm
Araxia has joined #ruby
CaptainJet has joined #ruby
spinagon has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
Tuxi has joined #ruby
Tuxi has quit [Read error: Connection reset by peer]
rippa has quit [Read error: Connection reset by peer]
jrajav has quit []
mercwithamouth has quit [Ping timeout: 268 seconds]
nitti has joined #ruby
Dolphinius has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<shevy> hmm not quite so
Neomex has quit [Quit: Neomex]
keyvan has quit [Remote host closed the connection]
<shevy> it really annoys me when I dont know where a program stores its stuff
yshh has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
dnstbr has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Ping timeout: 272 seconds]
knite_ has joined #ruby
knite has quit [Ping timeout: 245 seconds]
knite_ is now known as knite
<shevy> I used to use gobolinux, there never was any question where something resides. every program was installed into /Programs/Name/Version
jenrzzz has quit [Ping timeout: 260 seconds]
<shevy> in the traditional linux distribution, you would not know that unless you'd query the package manager
<shevy> to which program does pfbtopfa belong... or peekfd ... or zoomsh
Taranis has joined #ruby
nitti_ has quit [Ping timeout: 245 seconds]
love_color_text has joined #ruby
ablankfield has joined #ruby
love_color_text has quit [Remote host closed the connection]
Tuxist has quit [Ping timeout: 264 seconds]
Taranis has left #ruby [#ruby]
carlyle has joined #ruby
nitti_ has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
ThaDick has quit [Quit: I'm outta here!]
<ddd> bundle store only in $HOME/.bundler or in a .bundler directory in the project, or if you goofed in a directory you named. like bundle update twitter (thinking that it would update just the twitter gem, which it doesn't, it creates a dir for updated gems to be stored in)
<ddd> people confuse that last command with *gem's* update command which *does* take a gem name to update
nitti__ has joined #ruby
<shevy> :) there you go m4rz!
nitti__ has quit [Remote host closed the connection]
<shevy> m4rz btw is your nick like "März" ? or the beer? Märzen Beer?
<knite> silly newbie question - how can I do a one line conditional without an else? e.g., foo ? 't' : 'f' works as a ternary operator, but I can't for the life of me find the ruby equivalent of if foo then 't'.
kaushik__ has quit [Ping timeout: 240 seconds]
krawchyk has quit [Remote host closed the connection]
davidcelis has quit [Read error: Connection reset by peer]
<shevy> knite but that should it be, ruby has the ternary operator too
<m4rz> Marz
nitti__ has joined #ruby
davidcelis has joined #ruby
<shevy> knite, foo = true # => true; foo ? 1 : 2 # => 1
spinagon has quit [Ping timeout: 260 seconds]
<knite> shevy: right, the ternary op works. sorry if I wasn't clear - I'm asking how to do an if on one line without an else. I can't do foo ? 't'.
<shevy> knite, foo = false # => true; foo ? 1 : 2 # => 2
<shevy> ok wait
<Mon_Ouie> if a then b else c end
<shevy> you dont need the ternary operator at all?
<Mon_Ouie> a ? b : c
<shevy> without an else
<Mon_Ouie> Both are equivalent (except for precedence)
<knite> I do NOT want an else clause
<shevy> puts 'Hello world' if Mon_Ouie.sexier? :apeiros_
m4rz has quit [Quit: Page closed]
nitti has quit [Ping timeout: 252 seconds]
<apeiros_> o0
<shevy> hmm does not read that nice...
<knite> shevy: ah, okay, one-line if only works with the if-block at the end?
<Mon_Ouie> Well just drop the "else c" in the if. It will evaluate to nil when the condition is not met
nitti_ has quit [Ping timeout: 240 seconds]
tpe11etier has quit [Quit: tpe11etier]
<shevy> knite well post conditional is possible, with if ... with unless. you could fake if/else by doing things like
<shevy> def foo
kaushik__ has joined #ruby
<Mon_Ouie> Also "expr if cond"
<shevy> return 5 if x > y
<knite> it's impossible to do if Mon_Ouie.sexier? puts 'Hell World'
<knite> 
<shevy> return 8 # this is the else
<shevy> end
<shevy> where is the check for that knite?
<shevy> would be the return value of puts
<apeiros_> knite: you need a then or a newline
<apeiros_> and definitively an end
billy_ran_away has joined #ruby
<apeiros_> if Mon_Ouie.sexier? then puts 'Hell World' end
<shevy> hmm... puts returns nil?
<shevy> uh oh apeiros_ loves "then" :)
<apeiros_> or: if Mon_Ouie.sexier?; puts 'Hell World'; end # replace ; with newlines (the ; work too, though)
und3f has joined #ruby
alem0lars has joined #ruby
<apeiros_> shevy: yes, I do, but I no longer use them.
<knite> apeiros_: thanks, that's what I was looking for.
<shevy> !!!
<shevy> this is no longer the apeiros_ we knew!!!!!
<shevy> I dont like the future... things change
<billy_ran_away> Anyone know of a good way to have a specific piece of code "late" evaluated...
<knite> didn't realize I needed the end keyword there. but then why does if Mon_Ouie.sexier? {puts 'Hello World'} fail?
<shevy> billy_ran_away sounds as if you want a lambda
<shevy> knite you lack an "end"
<blazes816> a lambda with bad time management skills
<apeiros_> knite: because ruby doesn't use the C-ish {} syntax
<shevy> knite, you must remember that if and unless opens a new segment
<Mon_Ouie> Because that means you're passing a block to the #sexier? method
<billy_ran_away> shevy: Maybe… here's what I'm trying to do for: http://pastie.org/5120580
<knite> shevy: aren't curly braces equivalent to a do-end block?
<shevy> knite it depends, you must be careful
<atmosx> I think I'm gonna grab some gyros
<shevy> ruby hashes use {} too you know? ruby needs to understand what you need
<shevy> atmosx yum :)
<knite> I can do my_array.sort_by do |e| stuff end or my_arrawy.sort_by {|e| stuff }
<knite> ah, good point.
<knite> silly parsers.
<atmosx> shevy: yeap :-P
<apeiros_> knite: yes, that's passing a block to a method. the {} or do/end is actually an object
<shevy> knite, yes but you must remember how the ruby parser tries to "think"
<apeiros_> errr, an *argument*, not object, sry
<Mon_Ouie> knite: That's only when you're passing a block to a method. Also notice they have different precedence.
<shevy> you have a hash {}, a block {} and {} as replacement for do/end
<apeiros_> if/unless are not methods. so you can't pass them arguments.
<billy_ran_away> Nevermind… I just realized why that would never work that I want it to....
<shevy> hmm though you could always use ... Hash.new instead of {} hehe
<atmosx> I like Hash.new better
<shevy> perhaps you can even avoid {} altogether in ruby
<atmosx> it seems more 'classy'
<knite> thanks for explanation, guys! this is a pretty friendly room.
<shevy> atmosx but {} is so much shorter
<shevy> atmosx, what is good greek food actually? I only know... feta, with a bit of olives ... but that was about it, especially no warm dishes I know
<atmosx> shevy: exactly, that's what everybody uses
<knite> shevy: gyros and souvlaki.
<blazes816> goat
<shevy> lol
<knite> and saganaki for the novelty - it's cheese that they light on fire right in front of you.
<blazes816> and debt
<knite> the mini fireball lasts a few seconds.
<atmosx> shevy: the national food, is called 'sarmadakia' hard to explain, search it online
<shevy> ok
<shevy> cooool
<shevy> saganaki even sounds japanese
slainer68 has quit [Remote host closed the connection]
<shevy> need to remember that lighting on fire thing
<atmosx> shevy: pretty tasty, then there are many different ones, like "mousaka"
<atmosx> etc. Depending on the area you're in. I think Greek couisine is bested by French and Italian only, although is not as famous as the Japanese. Turkish food is good also, they use too much oil but the food is tasty if coocked properly.
<atmosx> hehehe
Tombar has quit [Remote host closed the connection]
devdazed has quit [Quit: Bye]
<codecaster> mousaka is quite nice
<shevy> hmm italian cuisine is nice... dont know about french... dont like turkish food that much either
ablankfield has quit [Ping timeout: 264 seconds]
RubyRails has joined #ruby
<RubyRails> with net/HTTP, is there a way to fire an http request without waiting for a response (like to trigger a web hook?)
anachronistic has quit [Quit: anachronistic]
<atmosx> shevy: turkish food is not just kebab etc. it's a lot more than that. But you'd have to go to Turkey to really taste it
justinmcp has joined #ruby
<apeiros_> RubyRails: and how do you know the web hook was really triggered if you don't wait for the response?
treyryan has quit [Quit: treyryan]
<apeiros_> you can use threads to do it in parallel, i.e., without pausing your main application.
<RubyRails> @apeiros_ No biggie if it doesn't, but it's critical that the app itself not delay at all after firing it off
<RubyRails> just put in in a Thread.new block?
<atmosx> anyone ever worked with google's api gem?
<apeiros_> mostly just that, yes.
<shevy> atmosx, yeah, we have lots of doner kebab and adener kebab here... I am kinda tired of seeing that again and again
<blazes816> RubyRails: perhaps looking into SideKiq or Resque
<apeiros_> if you access shared resources, then there's some additional precautions to take, if you want to know about exceptions in the thread, there's some stuff to do too
<atmosx> shevy: yeah that's not what I had in mind. Greek gyros is more tasty anyway, although they are similar.. I'm talking about coocked proper turkish food. Ever been to Turkey?
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ has joined #ruby
<shevy> atmosx yes, twice, west coast. we had food in the hotel though, not sure how much it was typical of cuisine in turkiye... I always ate either rice, or some caramel pudding
skcin7 has joined #ruby
ebobby has joined #ruby
<shevy> atmosx I've been in kreta 8 years ago, don't remember eating anything special however :)
ngoldman has joined #ruby
rmillerx has joined #ruby
Juul has quit [Ping timeout: 260 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
RubyRails has left #ruby [#ruby]
rakl has quit [Quit: sleeping]
awarner has joined #ruby
pskosinski has joined #ruby
<atmosx> shevy: r u pedantic with food? I mean you taste new staff or just stick to what you know? :-)
<shevy> atmosx I tend to usually stick to what I know. but I taste new things too
<shevy> I got more and more limited in what I can try though
g-ram has joined #ruby
g-ram has quit [Client Quit]
<atmosx> I see
<blazes816> shevy are you lactose intolerant?
<atmosx> I need to write this SQLite3 handler class and I'm so bored beecause I've written a similar one a couple of weeks ago
<blazes816> subclass that bitch and take a break
<shevy> blazes816 hmm thankfully not
<blazes816> that's good
<atmosx> blazes816: not sure if it's possible, but for sure large chunks of code are already there
Araxia_ has quit [Read error: Connection reset by peer]
_alejandro has quit [Remote host closed the connection]
Araxia has joined #ruby
_alejandro has joined #ruby
nicoulaj has quit [Read error: Connection reset by peer]
nicoulaj has joined #ruby
icooba has joined #ruby
Takehiro has joined #ruby
akem has quit [Ping timeout: 248 seconds]
rakl has joined #ruby
_alejandro has quit [Ping timeout: 244 seconds]
Blacksignals has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
jcaudle has quit [Quit: jcaudle]
dhruvasagar has quit [Ping timeout: 248 seconds]
Synthead has quit [Quit: p33 ba115]
sailias has quit [Quit: Leaving.]
carloslopes has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Ripp__ has joined #ruby
slainer68 has joined #ruby
<mr-rich> quick question: can I incriment a var by doing var++?
asobrasil has left #ruby [#ruby]
<burgestrand> mr-rich: no
<mr-rich> burgestrand: var += 1?
<burgestrand> mr-rich: yes
<mr-rich> burgestrand: ty
<burgestrand> mr-rich: yw
Tombar has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
Beoran_ has quit [Read error: Operation timed out]
krisbulman has joined #ruby
Ripp__ has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
codecaster has left #ruby [#ruby]
skcin7 has joined #ruby
Araxia_ has joined #ruby
chussenot has joined #ruby
Araxia has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
Araxia_ is now known as Araxia
chussenot has quit [Client Quit]
carlyle has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
reset has quit [Ping timeout: 240 seconds]
slainer68 has quit [Ping timeout: 272 seconds]
drago757 has quit [Quit: drago757]
GoGoGarrett has quit [Remote host closed the connection]
Virunga has joined #ruby
Solnse has quit []
cakehero has joined #ruby
jenrzzz has joined #ruby
therod has joined #ruby
n1x has joined #ruby
Virunga has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
justinmcp has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
dakine has quit [Quit: Leaving]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
twopoint718 has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
pskosinski has quit [Quit: Whatever]
Beoran_ has joined #ruby
mneorr has joined #ruby
krisbulman has quit [Quit: krisbulman]
kaushik__ has quit [Ping timeout: 240 seconds]
peas has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
HabeasPorpoise is now known as BadProphet
manizzle has quit [Ping timeout: 265 seconds]
rakl has quit [Quit: sleeping]
swarley has joined #ruby
rmillerx has quit [Quit: rmillerx]
carlyle has joined #ruby
pskosinski has joined #ruby
headius has joined #ruby
dylanjha has quit [Quit: Leaving...]
cdzombak has quit []
bricker has quit [Ping timeout: 268 seconds]
invisime has quit [Quit: Leaving.]
zodiak has quit [Read error: Connection reset by peer]
Tearan has joined #ruby
sambio has joined #ruby
perryh has quit [Excess Flood]
advorak has quit [Quit: This computer has gone to sleep]
icooba has quit [Quit: Computer has gone to sleep.]
perryh has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
jarred has joined #ruby
jumpingcloud has quit [Remote host closed the connection]
BSaboia__ has joined #ruby
guillaume_ has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
BSaboia has quit [Ping timeout: 245 seconds]
therod has quit [Quit: Leaving...]
Schafro has joined #ruby
jonathanwallace has joined #ruby
swarley has quit [Ping timeout: 240 seconds]
n1x has quit [Quit: 'night!']
philcrissman has quit [Remote host closed the connection]
gridapho` has joined #ruby
gridapho` is now known as gridaphobe`
Araxia_ has joined #ruby
gridaphobe has quit [Ping timeout: 252 seconds]
rakl has joined #ruby
tomsthumb has quit [Quit: Leaving.]
shtirlic has quit [Remote host closed the connection]
fractaloop has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
jonathanwallace has quit [Ping timeout: 244 seconds]
bigmcq77 has joined #ruby
nga4 has quit []
haxrbyte has joined #ruby
guillaume_ has quit [Quit: Ex-Chat]
Uranio has quit [Quit: WeeChat 0.3.8]
swarley has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
joshman_ has quit [Read error: Operation timed out]
Doc_X has quit [Remote host closed the connection]
butblack has joined #ruby
alfism has quit [Quit: alfism]
akem has joined #ruby
jonathanwallace has joined #ruby
skcin7 has joined #ruby
akem has quit [Max SendQ exceeded]
angusmorrison has quit [Read error: Connection reset by peer]
Juul has joined #ruby
bwlang has left #ruby [#ruby]
glyytchy has quit [Quit: glyytchy]
skcin7 has quit [Client Quit]
haxrbyte has quit [Ping timeout: 260 seconds]
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
haxrbyte has joined #ruby
macmartine has joined #ruby
fractaloop has left #ruby [#ruby]
eo has joined #ruby
billy_ran_away has quit []
ltsstar has quit [Quit: ltsstar]
ephemerian has quit [Ping timeout: 244 seconds]
arturaz has quit [Remote host closed the connection]
angusmorrison has joined #ruby
Takehiro has joined #ruby
QKO has quit [Quit: leaving]
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
Dreamer3 has quit [Quit: Computer has gone to sleep.]
stuartrexking has joined #ruby
deadalus has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
eo has quit [Remote host closed the connection]
swarley has quit [Read error: Operation timed out]
kramutils has left #ruby [#ruby]
snearch has quit [Quit: Verlassend]
ryanf has joined #ruby
bradleyprice has quit [Remote host closed the connection]
medik has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
nitti has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
nitti has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
und3f has quit [Quit: Leaving.]
levity_island has quit [Quit: levity_island]
nitti__ has quit [Ping timeout: 276 seconds]
mmealling has quit [Quit: Leaving.]
schwap has joined #ruby
butblack_ has joined #ruby
rakl has quit [Quit: sleeping]
ngoldman has quit [Remote host closed the connection]
ckrailo has joined #ruby
butblack has quit [Ping timeout: 245 seconds]
butblack_ is now known as butblack
tchebb has quit [Ping timeout: 260 seconds]
rakl has joined #ruby
slainer68 has joined #ruby
advorak has joined #ruby
justinmcp has joined #ruby
dnyy has quit [Remote host closed the connection]
akem has joined #ruby
Chryson has joined #ruby
g-ram has joined #ruby
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
apok_ has joined #ruby
pmros has quit [Quit: Konversation terminated!]
alanp_ has joined #ruby
bemson_ has joined #ruby
instinkt has quit [Quit: leaving]
slainer68 has quit [Ping timeout: 268 seconds]
krisbulman has joined #ruby
tchebb has joined #ruby
vlad_starkov has joined #ruby
hbpoison has joined #ruby
dylanjha has joined #ruby
apok has quit [Ping timeout: 245 seconds]
apok_ is now known as apok
alanp has quit [Ping timeout: 260 seconds]
bemson has quit [Ping timeout: 264 seconds]
bemson_ is now known as bemson
jbpros has quit [Ping timeout: 265 seconds]
alem0lars has quit [Quit: quit]
akem has quit [Ping timeout: 265 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
headius has quit [Quit: headius]
jbpros has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
Schafro has quit [Ping timeout: 245 seconds]
horofox has joined #ruby
emergion has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
akem has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
arya_ has quit []
Dreamer3 has joined #ruby
PragCypher has quit [Quit: Leaving]
akem has quit [Max SendQ exceeded]
Araxia has quit [Read error: No route to host]
rakl has quit [Quit: sleeping]
Araxia has joined #ruby
jenrzzz has joined #ruby
akem has joined #ruby
akem has quit [Max SendQ exceeded]
chimkan has quit [Quit: chimkan]
butblack has quit [Ping timeout: 240 seconds]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
x82_nicole has joined #ruby
kaushik__ has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
Tref has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kbeddingfield has quit [Remote host closed the connection]
akem has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
rakm has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
akem has quit [Client Quit]
carlyle has quit [Remote host closed the connection]
CaptainJet has quit []
bigmac has joined #ruby
twopoint718 has quit [Quit: Lost terminal]
bemson has quit [Quit: bemson]
justinmcp has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
Serial_Killer_C has quit [Remote host closed the connection]
akem has joined #ruby
stopbit has quit [Quit: Leaving]
nicoulaj has quit [Remote host closed the connection]
yazdmich has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
armenb has quit [Ping timeout: 244 seconds]
<yazdmich> i can't get it to remove the multiple spaces
jrist is now known as jrist-afk
hsbt_away is now known as hsbt
jonathanwallace has joined #ruby
<yazdmich> the first half of the program works
SCommette has quit [Quit: SCommette]
jenrzzz has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
bigmac is now known as i8igmac
Guest38 is now known as _sent-hil
mneorr_ has joined #ruby
emmanuelux has joined #ruby
blacktulip has quit [Remote host closed the connection]
akem has quit [Ping timeout: 260 seconds]
amacgregor_osx_ has quit [Read error: Operation timed out]
axl_ has quit [Quit: axl_]
mneorr has quit [Ping timeout: 268 seconds]
kaushik__ has quit [Remote host closed the connection]
pettsson has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
DrShoggoth has quit [Quit: Leaving]
haxrbyte has quit [Remote host closed the connection]
armenb has joined #ruby
apok_ has joined #ruby
rakm has joined #ruby
amacgregor_osx has joined #ruby
Takehiro has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
tchebb1 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
apok has quit [Remote host closed the connection]
apok_ is now known as apok
tchebb has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
mercwithamouth has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
armenb has quit [Ping timeout: 268 seconds]
kirun has quit [Read error: Operation timed out]
Takehiro has quit [Ping timeout: 245 seconds]
Cultofmetatron has joined #ruby
g-ram has joined #ruby
kbeddingfield has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Read error: Connection reset by peer]
bemson has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
<i8igmac> any one know of packetfu
yazdmich has left #ruby [#ruby]
jimeh has quit [Ping timeout: 272 seconds]
<atmosx> yaml or sqlite?
<atmosx> hm
emanon_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 260 seconds]
kbeddingfield has quit [Ping timeout: 272 seconds]
Rix has quit [Ping timeout: 244 seconds]
conor_ireland has joined #ruby
k0nichiwa has joined #ruby
dnyy has joined #ruby
dnyy has quit [Remote host closed the connection]
nohonor has quit [Ping timeout: 268 seconds]
dnyy has joined #ruby
armenb has joined #ruby
mrsolo has quit [Quit: Leaving]
dmiller has joined #ruby
k0nichiwa has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
fixl has joined #ruby
dmiller has quit [Remote host closed the connection]
pdtpatr1ck has joined #ruby
k0nichiwa has joined #ruby
hotovson has joined #ruby
manizzle has joined #ruby
g0bl1n has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
conor_ireland has quit [Quit: conor_ireland]
conor_ireland has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
fantazo has quit [Ping timeout: 260 seconds]
manizzle has quit [Ping timeout: 260 seconds]
darthdeus has quit [Quit: Leaving...]
perryh has quit [Excess Flood]
kiyoura has joined #ruby
perryh has joined #ruby
kbeddingfield has joined #ruby
Tearan has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
k0nichiwa has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
k0nichiwa has joined #ruby
Xeago has joined #ruby
alvaro_o has joined #ruby
invapid has joined #ruby
samphippen has quit [Ping timeout: 268 seconds]
NemesisD has quit [Quit: leaving]
samphippen has joined #ruby
emanon_ has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 240 seconds]
centr0 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
centr0 has left #ruby [#ruby]
v0n has quit [Quit: Leaving]
g-ram has quit [Quit: Computer has gone to sleep.]
armenb has quit [Ping timeout: 245 seconds]
g-ram has joined #ruby
crunk has joined #ruby
Nisstyre-laptop has quit [Read error: Operation timed out]
sailias has joined #ruby
akem has quit [Ping timeout: 248 seconds]
armenb has joined #ruby
crunk has quit [Client Quit]
crunk has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
Juul has left #ruby ["Leaving"]
Tombar has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
armenb has quit [Ping timeout: 256 seconds]
davidcelis has quit [Quit: K-Lined.]
bemson has quit [Quit: bemson]
amacgregor_osx has quit [Remote host closed the connection]
zeeclor has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
manizzle has joined #ruby
Serial_Killer_C has joined #ruby
sailias has quit [Quit: Leaving.]
<elliottcable> o7 all.
pdtpatr1ck has quit [Quit: pdtpatr1ck]
<elliottcable> how do I pass something into ARGV when using -n/-p?
Takehiro has joined #ruby
lkba has joined #ruby
Araxia has joined #ruby
<atmosx> elliottcable: you can do it manually but it's a pain. Use optparse
centr0 has joined #ruby
Slivka has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 245 seconds]
crunk has quit [Quit: crunk]
Slivka has joined #ruby
Experium has joined #ruby
<Experium> Hey dude are you looking for a free working game designer who wants pay if the game succeeds and I only want a fair share of money okay which I can garentee it will more then ever suceed I have 59 basic game ideas and 1 60 page game idea book and able to start a new idea up for any genre and make the game spectacular I mean it if you give me a chance. you need to sign a contract tho before I hand over any game ideas
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
armenb has joined #ruby
BadProphet has quit [Ping timeout: 265 seconds]
<apeiros_> elliottcable: isn't it just the args after the code?
slainer68 has joined #ruby