<volty>
havenn: yes, probably he is talking to the guys how to overcome the mess :)
bbttxu has joined #ruby
scade has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<ebobby>
I have an idea for a Rails plugin that may be very useful to people, although I assume there may be another one doing something similar even if I can't find it.
bbttxu has left #ruby [#ruby]
<volty>
a simple question (and a bit stupid): what do you guys use when (and if) you need pairs of (name, value) but you also need to preserve or manage their (custom) order? (something like ordered hashes - i have my own based on hash but i'm asking if there' s something "more standard")
hbpoison has joined #ruby
<havenn>
volty: Use ruby 1.9+ :P
<volty>
havenn: I have to check the compatibility of qtruby
<heftig>
volty: 1.9's Hash preserves insertion order
<havenn>
volty: Hashes are only unordered in 1.8-
hbpoison has quit [Read error: Connection reset by peer]
<havenn>
volty: Hrmm, not sure.
<heftig>
however, you can't reorder it. for that, you'd need to construct a new hash
yakko has quit [Remote host closed the connection]
<volty>
havenn: nice to know that. So, if you put 'first' -> havenn, 'second' -> rubyboy, and i want to change the order i have to delete 'first' and then reinsert it ? e.g.
<heftig>
yes
fixl has joined #ruby
<volty>
i'll stick to mine for some (long) time, i need them only for dynamic widgets creation
BadProphet has quit [Quit: This computer has gone to sleep]
c0rn_ has joined #ruby
Cultofmetatron has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
pehlert has quit [Quit: Leaving.]
bapa has quit [Read error: Connection reset by peer]
Servidorv has quit [Ping timeout: 276 seconds]
bapa has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
xpot-mobile has joined #ruby
postmodern has joined #ruby
dtkatch has joined #ruby
noxoc has joined #ruby
ltsstar has joined #ruby
Servidorv has joined #ruby
_alejandro has joined #ruby
ltsstar has quit [Client Quit]
heftig has quit [Quit: leaving]
freakazoid0223 has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
bapa has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
bapa has joined #ruby
rabidpraxis has joined #ruby
zomgbie has joined #ruby
_alejandro has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 240 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
tchebb has joined #ruby
zomgbie has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
perryh has quit [Excess Flood]
tenmilestereo has quit [Quit: Leaving]
<dharmaturtle>
I have a loop that builds data from a variable size JSON. Would it be possible to
<dharmaturtle>
oops.
jslowe has quit [Quit: Leaving]
perryh has joined #ruby
hron84 has quit [Quit: Leaving.]
<dharmaturtle>
Would it be possible to build an activerecord object piece by piece and then send it all to the server with one .save?
Servidorv has quit [Ping timeout: 260 seconds]
instinkt has quit [Quit: leaving]
volty has quit [Quit: Konversation terminated!]
ebobby has quit [Ping timeout: 244 seconds]
Ivo has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
<Spaceghostc2c>
dharmaturtle: Yeah.
<Spaceghostc2c>
You could use a form object.
<dharmaturtle>
okay, thank you!
love_color_text has joined #ruby
krisbulman has quit [Quit: krisbulman]
nyrb has joined #ruby
xpot-mobile has quit [Quit: I'm Out, Later.]
xpot-mobile has joined #ruby
heftig has joined #ruby
xpot-mobile has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
Servidorv has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
<havenn>
volty: #ruby-lang is about how Style has 'no plans' to order fifth season of the 'Ruby' TV show. ;O
tchebb has quit [Ping timeout: 276 seconds]
awarner has quit [Remote host closed the connection]
<havenn>
Oh, nvm, I was reading in the past. Silly comment not relevant. :(
havenn has quit [Remote host closed the connection]
<andy__>
anyone else tried code school?
havenn has joined #ruby
andy__ is now known as ablankfield
invapid_ has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
Trucker has joined #ruby
ablankfield has quit [Quit: Lost terminal]
jeffreybaird has joined #ruby
_alejandro has joined #ruby
ablankfield has joined #ruby
<Trucker>
Hi
<Trucker>
I was wondering
dakine has joined #ruby
<Trucker>
How would do I do PHP's $this->parent in Ruby?
AwesomeGarethMan has quit [Quit: leaving]
love_color_text has quit [Remote host closed the connection]
_alejandro has quit [Ping timeout: 264 seconds]
havenn_ has joined #ruby
<heftig>
Trucker: what does that refer to?
krisbulman has joined #ruby
<Trucker>
The class which called the current class
<Trucker>
Say, if X class has something which makes an instance of Y class, in Y class, $this->parent would refer to X (but the instance of X which called Y)
jipiboily has left #ruby [#ruby]
<heftig>
but?
<Trucker>
?
<heftig>
you said "but". that confused me
<Trucker>
well, I'm saying that $this->parent would not simply give me the class name or a NEW instance
<Trucker>
but the actual parent, the guy who created Y
<heftig>
the instance of X?
tjbiddle has joined #ruby
artOfWar has joined #ruby
<Trucker>
yes.
<heftig>
that's not saved in ruby
<Trucker>
wat
<heftig>
i'm pretty sure that's not saved in most OOP languages
<heftig>
you would have to do it manually, by passing self when creating the Y instance
<Trucker>
So, in my code, I have created an instance of Y class in a function in X class.. - How do I get a handler for X class from within Y?
<ryanf>
YClass.new(self)
<Trucker>
thank you<3
<ryanf>
def initialize(some_x_class)
artOfWar_ has joined #ruby
<ryanf>
etc
<heftig>
with class YClass; def initialize(creator); @creator = creator; end; end
Servidorv has quit [Ping timeout: 264 seconds]
<ryanf>
are you sure that's really how php works?
<ryanf>
that seems suspiciously weird, even for php
<heftig>
it's pretty horrible IMO and violates a lot of OO design patterns
<apeiros_>
o0
<Trucker>
Yeah, from a class in PHP< you can call $this->parent and it will reutrn the parent
<heftig>
(what php allegedly does, i mean
<apeiros_>
the parent class?
<apeiros_>
self.class.superclass
<apeiros_>
self.class returns the class of self, superclass returns the superclass of the class
pac1 has quit [Quit: I got it one line of code at a time]
<apeiros_>
and to invoke the superclass' method of the same name, you use `super()`
<ablankfield>
has anyone here used the codeschool website?
<apeiros_>
@ Trucker
artOfWar has quit [Ping timeout: 260 seconds]
<apeiros_>
ablankfield: I haven't. but don't ask meta questions. ask your real question instead.
Liothen has joined #ruby
carlzulauf has joined #ruby
<ablankfield>
I'm just curious if the ruby courses on there are for complete beginners or if you are supposed to know some ruby before you start
freakazoid0223 has joined #ruby
SCommette has quit [Quit: SCommette]
havenn_ has quit [Ping timeout: 240 seconds]
ebobby has joined #ruby
<Trucker>
thank you for your help rubyfolk
<Trucker>
i appreciate it greatly
ebobby is now known as Guest15124
Servidorv has joined #ruby
kaneda__ has quit [Ping timeout: 260 seconds]
tchebb has joined #ruby
kaneda__ has joined #ruby
Guest15124 has quit [Ping timeout: 260 seconds]
<Trucker>
Hi, it's me again
<Trucker>
I have the class parent thing working, but I'm wondering how I would access a class variable from it?
samphippen has quit [Quit: Computer has gone to sleep.]
<Trucker>
for example I set @@variable in the parent class and I want to access it from the new class I created
cableray has quit [Quit: cableray]
<ryanf>
class variables are actually shared between parent and child classes
<apeiros_>
and usually it's a bad idea to use them
emmanuelux has quit [Quit: emmanuelux]
<apeiros_>
classes in ruby are objects (= instances) too, as such, they can have instance variables and can have accessors to those
<Trucker>
well I'm confused, is there a special way to access the variables, because I can't access it in the child class using @@variable
<apeiros_>
Trucker: Client is not a childclass of Server
<Trucker>
oh
<apeiros_>
and as such has no access to @@vars
<Trucker>
I'm sorry, they are separate classes
<apeiros_>
it wouldn't make much sense either to design the client as a child of the server…
havenn_ has joined #ruby
<Trucker>
as you can see I do pass self to the client class
CaptainKnots has quit [Quit: bazinga!]
<apeiros_>
you'd use @test instead of @@test, and add (between line 3 and 4) the line `attr_accessor :test`
<apeiros_>
in line 43, you'd write: puts parentClass.test
carlzulauf has quit [Ping timeout: 268 seconds]
<apeiros_>
and I'd *totally* rename that variable to `server` - parent class is wrong (as it's not the parent class) and a bad naming scheme (don't name things after their type, that's pointless, state their meaning)
Progster has quit [Ping timeout: 255 seconds]
<Trucker>
Thanks! It works.
<apeiros_>
unrelated to your problem: I'd use `@clients = []` instead of `@clients = Array.new`
jeffreybaird has quit [Quit: jeffreybaird]
<Trucker>
Also, I will rename it to server
<apeiros_>
also: you don't need to state `self.` when calling methods. `self.clientLoop(@serverResource)` --> `clientLoop(@serverResource)`
carlzulauf has joined #ruby
CaptainJet has joined #ruby
<apeiros_>
and: no semicolons. really.
<Trucker>
sorry about the semicolons
<Trucker>
and ()'s
<apeiros_>
no need to be sorry
<Trucker>
I'm used to it because of other languages I use
<apeiros_>
you're new. I'm just telling you where and how you can improve ;-)
<shadewind>
can the "retry" keyword only be used in the rescue clause?
<apeiros_>
of course, as said, no worries.
<shadewind>
not in the begin clause itself?
<apeiros_>
shadewind: as of 1.9, yes (afaik)
Skelz0r has joined #ruby
zomgbie has joined #ruby
<apeiros_>
shadewind: but why don't you just try it?
<shadewind>
I am trying it, just trying to figure out if that's the problem or if I'm simply doing something else wrong
<apeiros_>
Trucker: also, ruby uses a different naming convention than php
sepp2k has quit [Read error: Connection reset by peer]
<apeiros_>
we use snake_case for methods and variables
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
Hanmac1 has joined #ruby
leoncamel has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 268 seconds]
ryanf has quit [Ping timeout: 240 seconds]
cableray has quit [Quit: cableray]
deo_ has joined #ruby
ebobby has joined #ruby
ebobby is now known as Guest31475
mahmoudimus has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Guest31475 has quit [Ping timeout: 256 seconds]
k0nichiwa has joined #ruby
dnyy has quit [Remote host closed the connection]
akem has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
Juul has joined #ruby
vonsar has quit [Quit: This computer has gone to sleep]
SCommette has quit [Quit: SCommette]
krisbulman has quit [Quit: krisbulman]
sambio has quit []
kiyoura has quit [Ping timeout: 272 seconds]
g-ram has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
krisbulman has joined #ruby
sent-hil has joined #ruby
baroquebobcat has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
zomgbie has joined #ruby
invapid_ has quit [Ping timeout: 252 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
arubin has joined #ruby
radic has joined #ruby
g-ram has joined #ruby
niklasb has quit [Ping timeout: 265 seconds]
SirRamonGabriel has joined #ruby
radic_ has quit [Ping timeout: 260 seconds]
scade has joined #ruby
zomgbie has quit [Ping timeout: 255 seconds]
kamek has joined #ruby
kamek has left #ruby [#ruby]
dakine has quit [Read error: Connection reset by peer]
eph3meral has quit [Quit: eph3meral]
dakine has joined #ruby
kil0byte has joined #ruby
carlzulauf has quit [Ping timeout: 260 seconds]
ryanf has joined #ruby
carlzulauf has joined #ruby
arietis has joined #ruby
igabreu has joined #ruby
blazes816 has quit [Quit: blazes816]
ddd has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
_alejandro has joined #ruby
<tos9>
Why is Time making me specify a date? How do I specify a time?
<tos9>
And also, is there some other Time class other than the one I get by require 'time' that is loaded by default? One that does not appear to have .parse or .strptime methods. After requiring 'time' though the Time class then appears to.
jarred__ has joined #ruby
jarred_ has quit [Ping timeout: 245 seconds]
hbpoison has joined #ruby
mikepack has quit [Remote host closed the connection]
deo_ has quit [Read error: Connection reset by peer]
deo_ has joined #ruby
ablankfield has quit [Ping timeout: 268 seconds]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
rakl has quit [Quit: sleeping]
CaptainJet has quit []
akemEikko has joined #ruby
cableray has joined #ruby
thinkdevcode has joined #ruby
helichopter has joined #ruby
akem has quit [Ping timeout: 252 seconds]
uris has quit [Quit: Leaving]
mahmoudimus has joined #ruby
kil0byte has quit [Ping timeout: 276 seconds]
sertaconay has joined #ruby
ryanf has quit [Quit: broken pipes |||]
akemEikko has quit [Read error: Connection timed out]
love_color_text has joined #ruby
Serial_Killer_C has joined #ruby
ryanf has joined #ruby
sent-hil has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
kbeddingfield has joined #ruby
Serial_K_ has joined #ruby
nyrb has joined #ruby
Serial_Killer_C has quit [Ping timeout: 264 seconds]
c0rn_ has quit []
kbeddingfield has quit [Ping timeout: 244 seconds]
igabreu has quit [Remote host closed the connection]
Erfankam has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
Erfankam has joined #ruby
heftig has joined #ruby
arubin has quit [Quit: Computer has gone to sleep.]
<Paradox>
stupid netshit
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<aces1up>
i have a stand alone ruby app, and I have many constants, some need to be set different depinding if production or testing mode, how do you guys handle these withou have to do a if else for each constant value? what kinda structure is typically used for this sort of thing?
<awestroke>
aces1up: YAML config file with different values for development, production etc
<Paradox>
what he said
<Paradox>
and then enviornment variables
Takehiro has joined #ruby
slainer68 has joined #ruby
vectorshelve has quit [Ping timeout: 245 seconds]
pehlert has joined #ruby
kzrl has quit [Ping timeout: 240 seconds]
invapid has quit [Ping timeout: 265 seconds]
justinmcp has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
zomgbie has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
haxrbyte has quit [Remote host closed the connection]
rohit has quit [Quit: Leaving]
CodeDroid__ has quit [Ping timeout: 260 seconds]
kzrl has joined #ruby
Nisstyre-laptop has joined #ruby
zomgbie has quit [Ping timeout: 256 seconds]
Juul has joined #ruby
Araxia has quit [Quit: Araxia]
_jesse_ has quit [Ping timeout: 255 seconds]
_jesse_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
kzrl has quit [*.net *.split]
bigmcq77 has quit [*.net *.split]
Guest36742 has quit [*.net *.split]
kkiero has quit [*.net *.split]
yaymukund has quit [*.net *.split]
mattp_ has quit [*.net *.split]
Kichael has quit [*.net *.split]
bitZero__ has quit [*.net *.split]
im0b has quit [*.net *.split]
davidboy has quit [*.net *.split]
cibs has quit [*.net *.split]
Ivo has quit [*.net *.split]
musl has quit [*.net *.split]
CodeVision has quit [*.net *.split]
pehlert has quit [*.net *.split]
amoe has quit [*.net *.split]
jgrevich has quit [*.net *.split]
bapa has quit [*.net *.split]
klip has quit [*.net *.split]
juarlex has quit [*.net *.split]
FDj has quit [*.net *.split]
preller has quit [*.net *.split]
Raboo has quit [*.net *.split]
rking has quit [*.net *.split]
nick_h has quit [*.net *.split]
ccooke has quit [*.net *.split]
ozzloy has quit [*.net *.split]
mikekelly has quit [*.net *.split]
dkannan has quit [*.net *.split]
seich- has quit [*.net *.split]
Voxxit has quit [*.net *.split]
lupine_85 has quit [*.net *.split]
schronicles47 has quit [*.net *.split]
PhilK has quit [*.net *.split]
msch has quit [*.net *.split]
mr-rich has quit [*.net *.split]
dfr|work has quit [*.net *.split]
`Mew_ has quit [*.net *.split]
alup has quit [*.net *.split]
melder has quit [*.net *.split]
BombStrike has quit [*.net *.split]
nopper has quit [*.net *.split]
kstephens has quit [*.net *.split]
aetaric has quit [*.net *.split]
pavelz has quit [*.net *.split]
willb has quit [*.net *.split]
Muz has quit [*.net *.split]
joni has quit [*.net *.split]
al-ol has quit [*.net *.split]
kaleido has quit [*.net *.split]
wang has quit [*.net *.split]
chiel has quit [*.net *.split]
zz_chrismcg has quit [*.net *.split]
drizz has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
15SAAGD8B has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
Erfankam has quit [*.net *.split]
ryanf has quit [*.net *.split]
charliesome has quit [*.net *.split]
moshee has quit [*.net *.split]
koshii has quit [*.net *.split]
X-Jester has quit [*.net *.split]
rellin has quit [*.net *.split]
stnly has quit [*.net *.split]
alek_b has quit [*.net *.split]
s0ber has quit [*.net *.split]
mvangala_ has quit [*.net *.split]
faulkner has quit [*.net *.split]
elspeth has quit [*.net *.split]
zipkid has quit [*.net *.split]
joelio has quit [*.net *.split]
epitron has quit [*.net *.split]
kkh has quit [*.net *.split]
felipe has quit [*.net *.split]
matled has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
crankycoder has quit [*.net *.split]
Vinz_` has quit [*.net *.split]
Quadlex has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
spathi has quit [*.net *.split]
dharmaturtle has quit [*.net *.split]
yoklov_ has quit [*.net *.split]
tk___ has quit [*.net *.split]
yeggeps has quit [*.net *.split]
virtuose has quit [*.net *.split]
monkegjinni has quit [*.net *.split]
armenb has quit [*.net *.split]
jmccune has quit [*.net *.split]
pu22l3r has quit [*.net *.split]
Katniss has quit [*.net *.split]
fcoury has quit [*.net *.split]
ionte has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
barefoot has quit [*.net *.split]
ben_alman has quit [*.net *.split]
orion has quit [*.net *.split]
emdub has quit [*.net *.split]
stat1x has quit [*.net *.split]
Eiam has quit [*.net *.split]
tils has quit [*.net *.split]
aces1up has quit [*.net *.split]
chetan- has quit [*.net *.split]
Drager has quit [*.net *.split]
_br_ has quit [*.net *.split]
apmacwrk has quit [*.net *.split]
ged has quit [*.net *.split]
mahlon has quit [*.net *.split]
idoru has quit [*.net *.split]
k0nichiwa has quit [*.net *.split]
cyt93cs has quit [*.net *.split]
LouisGB has quit [*.net *.split]
fixl has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
Tref has quit [*.net *.split]
mahmoudimus has quit [*.net *.split]
bbttxu has quit [*.net *.split]
Villadelfia has quit [*.net *.split]
justinweiss has quit [*.net *.split]
`brendan has quit [*.net *.split]
Cork has quit [*.net *.split]
sr___ has quit [*.net *.split]
shiroginne has quit [*.net *.split]
spanner has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
mmercer has quit [*.net *.split]
nimred has quit [*.net *.split]
methoddk has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
joukokar has quit [*.net *.split]
joppe has quit [*.net *.split]
axiak has quit [*.net *.split]
bnagy has quit [*.net *.split]
cheez0r has quit [*.net *.split]
wting has quit [*.net *.split]
Sargun has quit [*.net *.split]
gregorg has quit [Read error: No buffer space available]
gregorg has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
awestroke has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
matled has joined #ruby
timonv has joined #ruby
brianpWins has quit [Quit: brianpWins]
awestroke has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Client Quit]
kramutils has joined #ruby
kramutils has left #ruby [#ruby]
tk has joined #ruby
brianpWins has joined #ruby
Drager has joined #ruby
yshh has quit [Read error: Connection timed out]
akem has quit [Ping timeout: 260 seconds]
blacktulip has joined #ruby
emergion has joined #ruby
hron84 has joined #ruby
emdub has joined #ruby
Vinz_` has joined #ruby
slainer68 has joined #ruby
awestroke has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
<shevy>
dumdedum
cantonic has joined #ruby
JStoker has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
BombStrike has joined #ruby
alup has joined #ruby
PhilK has joined #ruby
mr-rich has joined #ruby
`Mew_ has joined #ruby
melder has joined #ruby
schronicles47 has joined #ruby
dkannan has joined #ruby
Kichael has joined #ruby
kkiero has joined #ruby
bitZero__ has joined #ruby
seich- has joined #ruby
pehlert has joined #ruby
dfr|work has joined #ruby
Dreamer3 has joined #ruby
robustus has joined #ruby
2JTAAAUVH has joined #ruby
starship has joined #ruby
Guest36742 has joined #ruby
bigmcq77 has joined #ruby
yaymukund has joined #ruby
kzrl has joined #ruby
stat1x has joined #ruby
Voxxit has joined #ruby
Sp4rKy has joined #ruby
mattp_ has joined #ruby
spathi has joined #ruby
yshh has joined #ruby
ben_alman has joined #ruby
musl has joined #ruby
im0b has joined #ruby
davidboy has joined #ruby
nicoulaj has joined #ruby
fixl has joined #ruby
cyt93cs has joined #ruby
LouisGB has joined #ruby
crankycoder has joined #ruby
mahmoudimus has joined #ruby
moshee has joined #ruby
CodeVision has joined #ruby
amoe has joined #ruby
msch has joined #ruby
juarlex has joined #ruby
dharmaturtle has joined #ruby
armenb has joined #ruby
klip has joined #ruby
shiroginne has joined #ruby
koshii has joined #ruby
rellin has joined #ruby
ryanf has joined #ruby
jmccune has joined #ruby
virtuose has joined #ruby
X-Jester has joined #ruby
monkegjinni has joined #ruby
jgrevich has joined #ruby
akem has joined #ruby
Katniss has joined #ruby
charliesome has joined #ruby
`brendan has joined #ruby
sr___ has joined #ruby
Ivo has joined #ruby
yeggeps has joined #ruby
Raboo has joined #ruby
FDj has joined #ruby
alek_b has joined #ruby
pu22l3r has joined #ruby
Erfankam has joined #ruby
lupine_85 has joined #ruby
nick_h has joined #ruby
s0ber has joined #ruby
Villadelfia has joined #ruby
bapa has joined #ruby
fcoury has joined #ruby
orion has joined #ruby
faulkner has joined #ruby
RubyPanther has joined #ruby
barefoot has joined #ruby
elspeth has joined #ruby
preller has joined #ruby
chetan- has joined #ruby
sixteneighty has joined #ruby
joelio has joined #ruby
zipkid has joined #ruby
Quadlex has joined #ruby
cheez0r has joined #ruby
stnly has joined #ruby
methoddk has joined #ruby
Tref has joined #ruby
ccooke has joined #ruby
joukokar has joined #ruby
KarlHungus has joined #ruby
Cork has joined #ruby
spanner has joined #ruby
Skelz0r has joined #ruby
bnagy has joined #ruby
aces1up has joined #ruby
Eiam has joined #ruby
Sargun has joined #ruby
cibs has joined #ruby
crazedpsyc has joined #ruby
joppe has joined #ruby
mikekelly has joined #ruby
mmercer has joined #ruby
mvangala_ has joined #ruby
tils has joined #ruby
nimred has joined #ruby
thomasfedb has joined #ruby
ionte has joined #ruby
rking has joined #ruby
ozzloy has joined #ruby
epitron has joined #ruby
justinweiss has joined #ruby
axiak has joined #ruby
idoru has joined #ruby
ged has joined #ruby
_br_ has joined #ruby
apmacwrk has joined #ruby
wting has joined #ruby
mahlon has joined #ruby
aetaric has joined #ruby
nopper has joined #ruby
willb has joined #ruby
kstephens has joined #ruby
pavelz has joined #ruby
joni has joined #ruby
al-ol has joined #ruby
kaleido has joined #ruby
chiel has joined #ruby
wang has joined #ruby
Muz has joined #ruby
drizz has joined #ruby
zz_chrismcg has joined #ruby
elaptics`away has joined #ruby
yugui_zzz has joined #ruby
psycho_one has quit [Remote host closed the connection]
vonsar has joined #ruby
SCommette has joined #ruby
moos3 has quit [Ping timeout: 248 seconds]
akem has quit [Read error: Connection reset by peer]
akemEikko has joined #ruby
nari_ has joined #ruby
icooba has joined #ruby
yshh has quit [Remote host closed the connection]
akem has joined #ruby
akemEikko has quit [Read error: Connection reset by peer]
akem has joined #ruby
akem has quit [Changing host]
JStoker has quit [Changing host]
JStoker has joined #ruby
tk is now known as Guest76559
bbttxu has joined #ruby
bbttxu has quit [Client Quit]
Morkel has joined #ruby
akem has quit [Ping timeout: 248 seconds]
darthdeus has joined #ruby
Jackneill has joined #ruby
khakimov has joined #ruby
stnly has quit [Ping timeout: 255 seconds]
shtirlic has joined #ruby
starship is now known as 66MAAA6Z5
thinkdevcode has quit [Remote host closed the connection]
arturaz has joined #ruby
SCommette has quit [Quit: SCommette]
skammer_ has joined #ruby
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
nilg has joined #ruby
thomas has quit [Quit: leaving]
araujo has quit [Client Quit]
sepp2k has joined #ruby
Viper has joined #ruby
<shevy>
undefined method `-' for "xyz":String
<shevy>
waaaah
<shevy>
no - method on string
mneorr has joined #ruby
lahwran has joined #ruby
dominikh has joined #ruby
hotovson_ has joined #ruby
ddd has joined #ruby
64MAB5OE3 has joined #ruby
c0rn has joined #ruby
yshh has joined #ruby
starship has joined #ruby
stnly has joined #ruby
__miha__ has joined #ruby
hamed_r has joined #ruby
dpn` has joined #ruby
RudyValencia has joined #ruby
tommyvyo has joined #ruby
areil has joined #ruby
yakko_ has joined #ruby
mtfk has joined #ruby
_veer has joined #ruby
quest88 has joined #ruby
ZubKonst has joined #ruby
rtl has joined #ruby
neersighted has joined #ruby
nw has joined #ruby
freakazoid0223 has joined #ruby
cHarNe2 has joined #ruby
jaredrhine has joined #ruby
rcs has joined #ruby
casheew has joined #ruby
epochwolf has joined #ruby
beowuff has joined #ruby
knite has joined #ruby
benwoody has joined #ruby
BadLarry has joined #ruby
theoros has joined #ruby
g_bleezy has joined #ruby
Liothen has joined #ruby
Drewch has joined #ruby
danheberden has joined #ruby
tessi has joined #ruby
gurps has joined #ruby
juha_ has joined #ruby
alienvenom has joined #ruby
SeanTAllen has joined #ruby
Axsuul has joined #ruby
sirecote has joined #ruby
maxmanders has joined #ruby
patricksroberts has joined #ruby
alee has joined #ruby
spo12 has joined #ruby
waxjar has joined #ruby
Guedes has joined #ruby
Bish has joined #ruby
David_Miller has joined #ruby
Tarential has joined #ruby
elektronaut has joined #ruby
randym has joined #ruby
davorb has joined #ruby
malcolmva has joined #ruby
brendan` has joined #ruby
TheFuzzball has joined #ruby
bjeanes has joined #ruby
bairui has joined #ruby
tchebb has joined #ruby
jayne has joined #ruby
realniko has joined #ruby
Rhynn has joined #ruby
LucidDreamZzZ has joined #ruby
combatai` has joined #ruby
_root_ has joined #ruby
TomRone has joined #ruby
anekos has joined #ruby
joast has joined #ruby
sj26 has joined #ruby
adamblac1well has joined #ruby
TheNumb has joined #ruby
wargasm has joined #ruby
Jackneill has quit [Quit: Jackneill]
neersighted has quit [Max SendQ exceeded]
zeromodu_ has joined #ruby
_veer has quit [Max SendQ exceeded]
zhangwei has joined #ruby
_veer has joined #ruby
anderse has joined #ruby
<Hanmac>
shevy what are you string to remove with "-" ?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Viper is now known as Guest33642
<shevy>
"abc" - "a" = "bc"
_cheney2 has joined #ruby
<Hanmac>
"adbcxe".delete("cde") #=> "abx"
jgrevich has quit [Quit: jgrevich]
_cheney has quit [Ping timeout: 268 seconds]
<shevy>
yeah but that kills all occurences
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<shevy>
"adbcxedddd".delete("cde") # => "abx"
<shevy>
I am just surprised that - is not a method for strings
<shevy>
"abcabcabc" - "abc" = "abcabcabc"
<shevy>
hmm
<shevy>
the first match found could be removed
<shevy>
though I'd need the last match found to be removed :P
Xeago has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
lkba has joined #ruby
kaneda__ has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
rakl has joined #ruby
zhangwei has quit [Remote host closed the connection]
<Hanmac>
shevy like this? s="abc1abc2abc3";s[/(abc.*)*(abc)/,2]="";s#=> "abc1abc23"
fantazo has quit [Remote host closed the connection]
tjbiddle has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
tils has joined #ruby
rakl has joined #ruby
Katniss has joined #ruby
hbpoison has joined #ruby
emdub has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
dkannan has quit [*.net *.split]
lupine_85 has quit [*.net *.split]
msch has quit [*.net *.split]
seich- has quit [*.net *.split]
schronicles47 has quit [*.net *.split]
Voxxit has quit [*.net *.split]
PhilK has quit [*.net *.split]
dfr|work has quit [*.net *.split]
`Mew_ has quit [*.net *.split]
mr-rich has quit [*.net *.split]
melder has quit [*.net *.split]
alup has quit [*.net *.split]
BombStrike has quit [*.net *.split]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
zeromodu_ has quit [*.net *.split]
kzrl has quit [*.net *.split]
nari_ has quit [*.net *.split]
Guest36742 has quit [*.net *.split]
bigmcq77 has quit [*.net *.split]
yaymukund has quit [*.net *.split]
Kichael has quit [*.net *.split]
bitZero__ has quit [*.net *.split]
mattp_ has quit [*.net *.split]
kkiero has quit [*.net *.split]
im0b has quit [*.net *.split]
musl has quit [*.net *.split]
davidboy has quit [*.net *.split]
darthdeus has quit [*.net *.split]
aetaric has quit [*.net *.split]
kstephens has quit [*.net *.split]
nopper has quit [*.net *.split]
pavelz has quit [*.net *.split]
willb has quit [*.net *.split]
joni has quit [*.net *.split]
al-ol has quit [*.net *.split]
kaleido has quit [*.net *.split]
Muz has quit [*.net *.split]
wang has quit [*.net *.split]
chiel has quit [*.net *.split]
drizz has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
zz_chrismcg has quit [*.net *.split]
moshee has quit [Ping timeout: 255 seconds]
crankycoder has quit [Ping timeout: 260 seconds]
ysyk has joined #ruby
crankycoder has joined #ruby
Sp4rKy has joined #ruby
chaplain is now known as thomas
robustus has joined #ruby
2JTAAAUVH has quit [*.net *.split]
fixl has quit [*.net *.split]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
hamed_r has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
answer_42 has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
MissionCritical has joined #ruby
dkannan has joined #ruby
mr-rich has joined #ruby
Voxxit has joined #ruby
dfr|work has joined #ruby
lupine_85 has joined #ruby
schronicles47 has joined #ruby
PhilK has joined #ruby
alup has joined #ruby
seich- has joined #ruby
melder has joined #ruby
`Mew_ has joined #ruby
BombStrike has joined #ruby
msch has joined #ruby
ionte_ has joined #ruby
yaymukund has joined #ruby
kkiero has joined #ruby
nari_ has joined #ruby
mattp_ has joined #ruby
bitZero__ has joined #ruby
bigmcq77 has joined #ruby
Guest36742 has joined #ruby
Kichael has joined #ruby
musl has joined #ruby
im0b has joined #ruby
davidboy has joined #ruby
darthdeus has joined #ruby
kstephens has joined #ruby
willb has joined #ruby
aetaric has joined #ruby
nopper has joined #ruby
pavelz has joined #ruby
kaleido has joined #ruby
joni has joined #ruby
zz_chrismcg has joined #ruby
chiel has joined #ruby
drizz has joined #ruby
al-ol has joined #ruby
yugui_zzz has joined #ruby
elaptics`away has joined #ruby
wang has joined #ruby
Muz has joined #ruby
chetan- has joined #ruby
bean_dharma90 has joined #ruby
elaptics`away is now known as elaptics
kzrl_ has joined #ruby
fixl has joined #ruby
2JTAAAUVH has joined #ruby
dharmaturtle has quit [Ping timeout: 260 seconds]
Zenger has joined #ruby
<Zenger>
Hello guys, I'm trying to install ror on windows, and got stuck at mysql. I installed mysql 5.5.28, and put the libmysql into ror/bin but it keeps saying it was built fo 6.0.0 but client is 5.5.28, what do
slainer68 has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 272 seconds]
k610 has joined #ruby
darthdeus has quit [Quit: Leaving...]
und3f has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
slainer68 has joined #ruby
Takehiro has quit [Remote host closed the connection]
hbpoison has joined #ruby
fasta has quit [Remote host closed the connection]
deo_ has quit [Read error: Connection reset by peer]
fasta has joined #ruby
fasta has quit [Read error: Connection reset by peer]
deo_ has joined #ruby
fasta has joined #ruby
fasta has quit [Remote host closed the connection]
andrewhl has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
fasta has joined #ruby
k610 has joined #ruby
arietis has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
k610 has quit [Ping timeout: 268 seconds]
benmatthew_ has joined #ruby
vitor-br has joined #ruby
k610 has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
elico has joined #ruby
benmatthew_ has quit [Remote host closed the connection]
benmatthew_ has joined #ruby
bigkevmcd has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
k610 has quit [Ping timeout: 255 seconds]
ablankfield has joined #ruby
k610 has joined #ruby
und3f has joined #ruby
psycho_one has quit [Remote host closed the connection]
anirudh24seven has quit [Read error: Connection reset by peer]
anirudh24seven has joined #ruby
Takehiro has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
anirudh24seven has quit [Read error: Connection reset by peer]
anirudh24seven has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
anirudh24seven has quit [Read error: Connection reset by peer]
anirudh24seven has joined #ruby
jtperreault has quit [Quit: WeeChat 0.3.7]
psycho_one has joined #ruby
Goles has joined #ruby
clj_newb has joined #ruby
anirudh24seven has quit [Read error: Connection reset by peer]
psycho_one has quit [Remote host closed the connection]
moeSeth has quit [Quit: Connection closed for inactivity]
Vert has joined #ruby
anirudh24seven has joined #ruby
hron84 has quit [Quit: Leaving.]
mucker has quit [Quit: leaving]
irleif has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
somazero has quit [Remote host closed the connection]
kirun has joined #ruby
rubynewb has joined #ruby
<rubynewb>
hi all
lxsameer has joined #ruby
<lxsameer>
hi, is the any standard or most favorite coding style for ruby?
<rubynewb>
I have two different arrays one is names Chapters and the second is named pages - I want to print each one in line with eachother. I.e. chapters[0] pages[0] then a \n then chapters[1] pages [1] any thoughts on how to do that?
<rubynewb>
lxsameer I'd like to answer your question but I have no idea...
<lxsameer>
rubynewb: about my question , or coding style ?
senny has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 244 seconds]
Vinz_ is now known as Vinz_`
nyrb has quit [Remote host closed the connection]
rippa has joined #ruby
_alejandro has quit [Ping timeout: 268 seconds]
jlwestsr has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Remote host closed the connection]
rjsamson has joined #ruby
<lxsameer>
what does this form of class called ? "class << self"
SCommette has joined #ruby
<Hanmac>
lxsameer it opens the singleton class of the class that means its a shortcut for defining singleton methods (or then you want attr_accessor on the class itself)
<lxsameer>
Hanmac: can you give me a link to read more about it ?
v1negar has joined #ruby
szhang has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<Xeago>
help! Give me a list of books that have been discussed here recently!
<Xeago>
and/or other highly advisable books
<Hanmac>
Xeago i learned ruby without books
<Xeago>
not necessarily ruby, but design patterns for cloud architectures and stuff
nari__ has quit [Ping timeout: 245 seconds]
<Xeago>
not interested in a book about a language, as that is usually to be found on so.com and the lang-lang.org
irleif has quit [Quit: Computer has gone to sleep.]
morozovm has joined #ruby
anderse has quit [Quit: anderse]
chrishunt has joined #ruby
morozovm has quit [Client Quit]
yshh has quit [Remote host closed the connection]
anderse has joined #ruby
tommyvyo has joined #ruby
Slivka has quit [Remote host closed the connection]
fbernier has joined #ruby
micsha has joined #ruby
deo_ has quit [Quit: Leaving]
marcuspat has joined #ruby
JohnBat26 has joined #ruby
shtirlic has joined #ruby
awarner has joined #ruby
<matti>
;]
<micsha>
if I write my own module and I require it at the top of a seperate script then create a class and include the module in the class why wouldn't it be able to find the module?
Araxia has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
hamed_r has joined #ruby
rjsamson has quit [Remote host closed the connection]
rjsamson has joined #ruby
<apeiros_>
micsha: paste the code and the exception you get please
<apeiros_>
e.g. on gist.github.com
<micsha>
k, one second
<shevy>
micsha you should include what error is given. the way you describe it runs counter to what others do, it is possible to require .rb files and use them in other classes
<shevy>
because otherwise the error would be "no such file to load -- testmodule.rb"
<apeiros_>
micsha: your $LOAD_PATH does not contain the path where testmodule.rb resides
<apeiros_>
micsha: run test.rb with `ruby -I. test.rb`
<apeiros_>
micsha: also note that you should spell the require exactly the same as the file. not all filesystems are case insensitive.
<micsha>
apeiros_: ok, let me try that really quickly
mneorr_ has joined #ruby
<micsha>
apeiros_: linux OS
MarcWeber has joined #ruby
someguy has joined #ruby
<apeiros_>
the ruby convention is to name the file the same as the main module, but all lowercased. in your case 'testmodule.rb'
<apeiros_>
and then the require will be `require 'testmodule'` (ruby will automatically check for the .rb)
rjsamson has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
awarner has quit [Remote host closed the connection]
<MarcWeber>
Is there any shortcut for a.nil? nil : a.text ?
<micsha>
ok
<apeiros_>
MarcWeber: a && a.text
<micsha>
let me check these things and I'll let you know, thanks, guys.
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<MarcWeber>
apeiros_: Bad idea if a is a fucntion call, you have to evaluate it twice then.
slainer68 has joined #ruby
<MarcWeber>
So I assume I have to write a function ..
<apeiros_>
MarcWeber: errr, as opposed to your solution? :)
<apeiros_>
or do you think a.nil? ? nil : a.text would *not* execute a twice?
<apeiros_>
also, it's method calls in ruby, not function.
<apeiros_>
if you don't know whether a is a method or not, then you're doing something wrong. if you know that it *is* a method, then simply assign the result to a variable first.
<apeiros_>
x = a; x && x.text
bigmcq77 has joined #ruby
classix has quit [Ping timeout: 248 seconds]
beit has joined #ruby
mattt has joined #ruby
rjsamson has quit [Remote host closed the connection]
mikepack has joined #ruby
irleif has joined #ruby
rjsamson has joined #ruby
invapid has joined #ruby
slainer68 has quit [Ping timeout: 272 seconds]
<Ivo>
is there a string function like strip that can strip other char than whitespace!?
<micsha>
ok, that worked
<lxsameer>
what is the suitable exception for a wrong parameter
irleif has quit [Client Quit]
<apeiros_>
Ivo: gsub, delete, tr
elico has quit [Quit: elico]
<apeiros_>
though, those do not work strictly at the ends of the string, like strip
hotovson_ has quit [Remote host closed the connection]
bbttxu has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
kirun has quit [Ping timeout: 256 seconds]
mattt has left #ruby [#ruby]
xbayrockx has quit []
clj_newb has joined #ruby
thinkdevcode has joined #ruby
psycho_one has joined #ruby
invapid_ has joined #ruby
anderse has quit [Quit: anderse]
CaptainJet has joined #ruby
<CaptainJet>
ut
Serial_Killer_C has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ltsstar has joined #ruby
<shevy>
zt?
CaptainKnots has quit [Ping timeout: 245 seconds]
kaawee has joined #ruby
invapid_ has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
kaneda__ has quit [Ping timeout: 255 seconds]
medik has quit [Quit: Leaving]
mucker has quit [Ping timeout: 272 seconds]
Cultofmetatron has joined #ruby
Lemtzas has quit [Remote host closed the connection]
Lemtzas has joined #ruby
h4mz1d has joined #ruby
invapid_ has joined #ruby
walbert has joined #ruby
kaawee has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
vonsar has quit [Quit: This computer has gone to sleep]
elico has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
kaneda__ has joined #ruby
bigkevmcd has quit [Remote host closed the connection]
fyolnish has quit [Remote host closed the connection]
Serial_Killer_C has quit [Remote host closed the connection]
ablankfield has quit [Ping timeout: 268 seconds]
linoj has quit [Quit: linoj]
<arietis>
hey, i need to convert string into another one using utf-8
cableray has joined #ruby
<arietis>
is there any API in ruby to work with utf-8?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<apeiros_>
String
<apeiros_>
take a look at its methods
DarkFoxDK has joined #ruby
<apeiros_>
(requires ruby 1.9)
cakehero has joined #ruby
<arietis>
it's ok, i'm using 1.9.3
havenn has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
<arietis>
i have such representation "#symbol_code_in_decimal_form#symbol_code_in_decimal_form#symbol_code_in_decimal_form#symbol_code_in_decimal_form"
joofsh has joined #ruby
<apeiros_>
you better make an actual example
<apeiros_>
consisting of in- & output
Virunga has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
cableray has quit [Client Quit]
<shevy>
hehehe
<matti>
Ohai shevy
<arietis>
#1060#1072#1084#1080#1083#1080#1103
<shevy>
matti!!! stop work, code more!
<matti>
?
<shevy>
matti I am working on disco prompt
<matti>
Em?
<shevy>
I want a prompt that constantly changes colour
<matti>
Right.
<arietis>
i have no idea what output is i can only guess it's "Фамилия"
<matti>
shevy: Good luck ;]
<matti>
shevy: Its nice to see that brain power of young generation is used to create "disco prompt" :)
<lxsameer>
how can i break a ruby line to two or more
<shevy>
ruby always needed to have umlauts as variable names
jlwestsr has quit [Ping timeout: 246 seconds]
virtuose has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby
hamed_r has quit [Quit: Leaving]
noxoc has joined #ruby
artOfWar has joined #ruby
otters has quit [Ping timeout: 245 seconds]
freakazoid0223 has joined #ruby
elico has quit [Quit: elico]
phelps has joined #ruby
<phelps>
To those who are curious, I found a gem that has the functionality of the whenever gem, but execution is actually done in the code: http://rufus.rubyforge.org/rufus-scheduler/
cakehero has quit [Quit: Computer has gone to sleep.]
<canton7>
djbpython, the thing to do would be to 'p args' at each step, and examine what was going on
mercwithamouth has quit [Ping timeout: 255 seconds]
<canton7>
you'd have seen that, in #sender, args was [['x', 'y']] instead of ['x', 'y']
Goles has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
Goles has joined #ruby
fyolnish has joined #ruby
sent-hil has joined #ruby
CaptainJet has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
clj_newb has quit [Ping timeout: 245 seconds]
kaneda__ has quit [Ping timeout: 248 seconds]
anderse has joined #ruby
walbert has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby
medik has joined #ruby
jgrevich has joined #ruby
mercwithamouth has joined #ruby
linoj has joined #ruby
blazes816 has joined #ruby
wallerdev has quit [Quit: wallerdev]
Vinz_` is now known as Vinz_
fyolnish has quit [Ping timeout: 245 seconds]
otters has joined #ruby
khakimov has joined #ruby
kidoz has joined #ruby
jeff_sebring has joined #ruby
Goles has quit [Remote host closed the connection]
anirudh24seven has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010235040]]
jeremywrowe has quit [Quit: jeremywrowe]
kaneda__ has joined #ruby
Eplemosen has joined #ruby
Goles has joined #ruby
robbie has joined #ruby
rakl has joined #ruby
<robbie>
hi -- I'm making a github module for conky: https://gist.github.com/3969216 -- how can I easily add caching so I can compare the last push from github API for each of my repos? (its a very short script despite that description)
awestroke has joined #ruby
Xeago has joined #ruby
codefyre has joined #ruby
<robbie>
I'm making a github module for conky: https://gist.github.com/3969216 -- how can I easily add caching so I can compare the last push from github API for each of my repos? (its a very short script despite that description)
Morkel has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
artOfWar has quit [Remote host closed the connection]
Serial_Killer_C has quit [Remote host closed the connection]
codefyre has quit [Quit: Leaving]
Cultofmetatron has joined #ruby
k610 has joined #ruby
skaczor has joined #ruby
wallerdev has joined #ruby
vonsar has joined #ruby
verto is now known as verto|off
mahmoudimus has joined #ruby
rjsamson has joined #ruby
v1negar has quit [Quit: v1negar]
jeff_sebring has quit [Quit: Leaving]
robotmay has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
robbie has quit [Remote host closed the connection]
dagnachewa has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
kaneda__ has quit [Ping timeout: 260 seconds]
kaawee has joined #ruby
nohonor has quit [Quit: Leaving]
hotovson_ has joined #ruby
love_color_text has joined #ruby
nohonor has joined #ruby
jscoder has joined #ruby
forced_request has quit [Remote host closed the connection]
thinkdevcode has quit [Read error: Connection reset by peer]
thinkdevcode has joined #ruby
phantasm66 has quit [Quit: phantasm66]
mklappstuhl has joined #ruby
tenmilestereo has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
robotmay has quit [Remote host closed the connection]
Rizzle has joined #ruby
margle has joined #ruby
phantasm_ has quit [Quit: *poof*]
kaawee has joined #ruby
<taypen>
is it because i have RUBY_TARGETS="ruby18 ruby19" ?
<taypen>
i mean both of them
Vinz_ is now known as Vinz_`
mklappstuhl has quit [Ping timeout: 240 seconds]
Vinz_` is now known as Vinz_
jaygen has joined #ruby
Spaceghost|cloud has joined #ruby
artOfWar has joined #ruby
shevy has joined #ruby
jrajav has joined #ruby
artOfWar has quit [Remote host closed the connection]
kaneda__ has joined #ruby
artOfWar has joined #ruby
maddog_ has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
maddog_ has joined #ruby
advorak has quit [Quit: This computer has gone to sleep]
awestroke has quit [Remote host closed the connection]
h4mz1d has joined #ruby
kaawee has quit [Ping timeout: 245 seconds]
k_89 has joined #ruby
Antiarc has joined #ruby
<k_89>
anyway to override how puts deals with an object ?
<k_89>
print uses to_s
<k_89>
what does puts use ?
mneorr_ has quit [Read error: Connection reset by peer]
havenn has joined #ruby
<Antiarc>
If I use Kernel#popen, will the subprocesses run on the same core as the spawning ruby script, or will they be eligible to be run on different cores?
mneorr has joined #ruby
<Antiarc>
Looking at it in top, it *seems* like their runtime is credited to the spawning process, which is worrying, since it means that they won't distribute their workload across cores like running a process with backticks would.
mklappstuhl has joined #ruby
dagnachewa has quit [Quit: Leaving]
love_color_text has joined #ruby
noxoc1 has joined #ruby
areil has quit [Remote host closed the connection]
sertaconay has joined #ruby
<Antiarc>
Sorry, IO#popen, not Kernel.
<taypen>
how do i reinstall all the local gems ?
g-ram has joined #ruby
<Kovensky>
Antiarc: it's opened just like any other OS process
<Antiarc>
Hrm. I'll need to try this on a machine with more cores.
bluOxigen has joined #ruby
jamjam has joined #ruby
<arietis>
which way is more suitable if i wanna replace chars in file? IO.read or File.open?
noxoc has quit [Ping timeout: 265 seconds]
<k_89>
how to override how puts prints an object
Vinz_ is now known as Vinz_`
<arietis>
looks like File.open is the way to go
<arietis>
:)
mneorr_ has joined #ruby
dlb has joined #ruby
dlb is now known as zz_dlb
<Kovensky>
k_89: puts just calls #inspect in the object
<k_89>
ok
<k_89>
thanks
tenmilestereo[aw has quit [Read error: Connection reset by peer]
tenmilestereo has joined #ruby
mneorr has quit [Ping timeout: 276 seconds]
<k_89>
Kovensky, http://paste.laravel.com/8IS .. an object of this class is behaving differently under puts and print
<k_89>
the puts version prints the array of vertices
<k_89>
while print outputs the proper format (uses to_s)
sepp2k has quit [Ping timeout: 264 seconds]
<k_89>
any idea why ?
_alejandro has joined #ruby
mneorr_ has quit [Ping timeout: 260 seconds]
fms has joined #ruby
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
Axsuul has joined #ruby
zz_dlb is now known as dlb
love_color_text has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
ltsstar has quit [Ping timeout: 244 seconds]
<arietis>
ARGV[0] is first argument in case of ruby?
<arietis>
or the name of program
caleb_io has joined #ruby
<arietis>
looks like argument
love_color_text has joined #ruby
micsha has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D]
<Kovensky>
k_89: hm, maybe puts treats it as an Array
<arietis>
tell me if i'm wrong
<arietis>
:)
clj_newb has quit [Ping timeout: 245 seconds]
awestroke has joined #ruby
<Kovensky>
$0 is the name of the program
<Kovensky>
ARGV only has arguments
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
<Kovensky>
k_89: yep; if I make Edge not < Array and use an internal array, puts behaves correctly
<Kovensky>
let's see what happens if I implement []
jslowe has joined #ruby
<Kovensky>
yep, puts still DTRT
love_color_text has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
Virunga has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
<Kovensky>
k_89: alright; if the object is #kind_of? Array, it'll do special processing
<Kovensky>
otherwise, both puts and print call #to_s, not #inspect :X
<Kovensky>
what calls #inspect is irb
mr-rich has quit [Read error: Connection timed out]
<k_89>
Kovensky, oh, thats some awesome detail .. thanks !!
<k_89>
probably will drop the whole < Array thing
schaerli has joined #ruby
mr-rich has joined #ruby
* Kovensky
does a lot of < Hash as a perlism :X
_veer has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
mr-rich has quit [Max SendQ exceeded]
<apeiros_>
Kovensky: that's not quite correct, puts uses to_s too
<apeiros_>
p uses inspect
<arietis>
can anyone link me good getting started with Test::Unit tutorial?
dlb has left #ruby [#ruby]
sepp2k has joined #ruby
_veer has joined #ruby
<arietis>
i know how to write tests, just never did it in ruby
Tuxist has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
c0rn_ has quit [Ping timeout: 265 seconds]
benmatthew__ has joined #ruby
_veer has joined #ruby
benmatthew__ has quit [Client Quit]
_veer has joined #ruby
_veer has quit [Changing host]
thisirs has joined #ruby
lxsameer has quit [Quit: Leaving]
preservingmachin has joined #ruby
psycho_one has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 265 seconds]
benmatthew_ has quit [Ping timeout: 248 seconds]
c0rn_ has joined #ruby
<arietis>
i have Rakefile but how do i check if it works?
<arietis>
if i run ruby Rakefile i just get no output
<blazes816>
"rake -T" will show you the tasks available
jgrevich_ has joined #ruby
<arietis>
kk, thanks
_veer has quit [Ping timeout: 240 seconds]
andrewvos has left #ruby [#ruby]
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
preservingmachin has left #ruby [#ruby]
robbie has joined #ruby
nateberkopec has quit [Quit: Leaving...]
havenn has quit [Remote host closed the connection]
<robbie>
github API returns timestamps of the form "2012-10-28T12:07:33-07:00" -- how can I get timestamps form them that account for the minutes instead of just the date? (eg, Date.parse(d).to_time will show midnight on that date instead of accounting the time data
<shevy>
nono
<shevy>
I am inactive on github
<shevy>
:(
coder_neo has quit [Read error: Connection reset by peer]
<shevy>
seydar, I am trying to be more active on rubygems
<shevy>
seydar: https://rubygems.org/profiles/58718 (I try to use "shevy" since ~2 years, it's a better nick, but leads to confusion with "shevegen" now)
coder_neo has joined #ruby
<shevy>
I am just training how to use gems really, until I gemify my larger projects :P
preservingmachin has joined #ruby
havenn has joined #ruby
havenn has quit [Client Quit]
seydar has quit [Quit: leaving]
havenn has joined #ruby
schaerli has quit [Remote host closed the connection]
robbie has quit [Ping timeout: 252 seconds]
Bosma has joined #ruby
preservingmachin has left #ruby [#ruby]
g-ram has quit [Quit: Computer has gone to sleep.]
Cultofmetatron has quit [Read error: Connection reset by peer]
<tpe11etier_>
Hi. I'm messing around with ruby motion and I'm more of a python guy. I'm looking at some example code and I see methods defined as....... def user=(user)......... What does the '=' mean?
Cultofmetatron has joined #ruby
<havenn>
tpe11etier_: It is syntactic sugar for a setter. You can then call the method: user = "I'm a user"
jscoder has quit [Quit: Page closed]
BadProphet has joined #ruby
robbie has joined #ruby
<tpe11etier_>
havenn: ahhh.... thank u
g-ram has joined #ruby
kaneda__ has quit [Ping timeout: 244 seconds]
irleif has joined #ruby
robbie has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tenmilestereo has quit [Quit: Leaving]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
Cultofmetatron has joined #ruby
shirajermilio has quit [Quit: ta ta]
margle has quit [Quit: Computer has gone to sleep.]
joeycarmello has joined #ruby
Rhynn has quit [Ping timeout: 245 seconds]
dcope has joined #ruby
<dcope>
Is it possible to "catch" a method exception when a method is called with no param but it expects one?
alee has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
margle has joined #ruby
alee has joined #ruby
irleif has joined #ruby
<blazes816>
dcope: yeah, i think that raises an ArgumentError
<dcope>
cool, i'll see if i can use rescue
<blazes816>
so you could do "begin; [].zip(); raise ArgumentError; end
BoomCow has joined #ruby
<blazes816>
eh, rescue, not raise
<blazes816>
yeah, you get the idea. should work fine
workmad3 has joined #ruby
krisbulman has joined #ruby
<dcope>
blazes816: Can you rescue it within the method that you're trying to call?
joeycarmello has quit [Remote host closed the connection]
<blazes816>
no
<dcope>
ie def foo(bar) ... rescue ArgumentError end end
<dcope>
hm
<blazes816>
but
<dcope>
blazes816: so there's no way at all to do that?
<blazes816>
you could make it take optional args
<blazes816>
and then do the checking yourself
joeycarmello has joined #ruby
<dcope>
ah sweet
<BoomCow>
sup pimps
<dcope>
i'll look into those
<blazes816>
def foobar(baz=nil); raise ArgumentError if baz.nil?; end
Cultofmetatron has quit [Remote host closed the connection]
adambeynon has quit [Read error: Connection reset by peer]
classix has joined #ruby
joeycarmello has quit [Ping timeout: 252 seconds]
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
krisbulman has quit [Quit: krisbulman]
Rhynn has joined #ruby
monkegjinni has joined #ruby
scade has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
Cultofmetatron has joined #ruby
ablankfield has joined #ruby
<havenn>
1.9, 2.0, rbx, jruby, and maglev working nicely in rbfu :) mmmmmm, simplicity.
Nisstyre-laptop has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
joshcheek has joined #ruby
<blazes816>
curb is a cooler name
<blazes816>
furb*
kaawee has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Vinz_ is now known as Vinz_`
savage- has quit [Quit: savage-]
chrisramon has quit [Quit: chrisramon]
skaczor has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
mercwithamouth has joined #ruby
mklappstuhl has quit [Quit: Leaving]
Takehiro has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
skaczor has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
margle has quit [Quit: Computer has gone to sleep.]
krisbulman has joined #ruby
krisbulman has quit [Client Quit]
joshcheek has left #ruby [#ruby]
awestroke has quit [Remote host closed the connection]
margle has joined #ruby
Goles has joined #ruby
Progster has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
havenn has quit [Remote host closed the connection]
scade has joined #ruby
macmartine has joined #ruby
bbttxu has quit [Quit: bbttxu]
yaymukund has quit [Ping timeout: 260 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
Azure has quit [Excess Flood]
Azure has joined #ruby
justinmcp has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
[Neurotic] has joined #ruby
h4mz1d has joined #ruby
jrajav has quit []
bean_dharma90 has quit [Read error: Connection reset by peer]
dharmaturtle has joined #ruby
kiyoura has joined #ruby
invapid_ has quit [Ping timeout: 268 seconds]
advorak has quit [Quit: This computer has gone to sleep]
invapid_ has joined #ruby
krisbulman has joined #ruby
Cultofmetatron has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
thone_ has quit [Ping timeout: 246 seconds]
emergion has joined #ruby
hotovson has joined #ruby
thone has joined #ruby
advorak has joined #ruby
BoomCow has quit [Quit: Leaving]
yakko has joined #ruby
micsha has joined #ruby
<micsha>
Sorry, guys, I'm going to be asking a bunch of silly questions for a while
Cultofmetatron has quit [Remote host closed the connection]
coder_neo has quit [Read error: Connection reset by peer]
yakko_ has quit [Ping timeout: 245 seconds]
coder_neo has joined #ruby
<micsha>
if I delcare a global variable like $global and then a method with a local variable like @local then in the global space try to print both with puts should I be able to print both variables, should i be able to?
hotovson has quit [Remote host closed the connection]
<workmad3>
micsha: @local isn't a local variable
<workmad3>
micsha: it's an instance variable
benmatthew_ has quit [Quit: benmatthew_]
Goles has quit [Remote host closed the connection]
<workmad3>
micsha: so if you set that in one method and then print it out in another method on the same object, then it will have the same value
Xeago has joined #ruby
<workmad3>
micsha: and the 'global' scope in ruby is simply code being executed on the 'main' object (an instance of Object in most cases, iirc), so if you define a method in that 'global' scope and set instance variables, then they will be visible to code executing at the top level
<arietis>
usually when writing something i have such structure - class represents object properties, initializer and object methods
<workmad3>
arietis: I didn't think java had 'properties' as such... it had either public member variables or getter/setter methods
<arietis>
so i'm trying to figure out how to do it proeprly in ruby
Monie has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
<workmad3>
arietis: but chances are you're just looking for the methods to manipulate an instance variable, which is either done via attr_accessor, or manually as I showed above :)
<workmad3>
arietis: if you only want a setter you have attr_writer and for a getter you have attr_reader too
dmiller has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
<arietis>
workmad3: i got it, thanks
emergion has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
<arietis>
if i have multiple vars should i use attr_accessor :var1, :var2 ?
Araxia has quit [Quit: Araxia]
Xeago has joined #ruby
thisirs has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
tjbiddle has joined #ruby
Takehiro has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
slainer68 has joined #ruby
beit has quit [Quit: beit]
QKO_ has joined #ruby
Trucker has joined #ruby
krisbulman has quit [Quit: krisbulman]
Takehiro has quit [Ping timeout: 260 seconds]
QKO has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
advorak has quit [Quit: This computer has gone to sleep]
kiyoura has quit [Quit: Leaving]
linoj has quit [Quit: linoj]
juarlex__ has joined #ruby
Morkel has quit [Quit: Morkel]
advorak has joined #ruby
juarlex_ has quit [Ping timeout: 244 seconds]
thinkdevcode has quit [Read error: Connection reset by peer]
benmatthew_ has quit [Remote host closed the connection]
Goles has quit [Remote host closed the connection]
yaymukund has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
<Hanmac>
arientis how would you react when i tell you that you should do your job before i tell you wants your job is?
<Hanmac>
and convert is defined as an instance method, but you want to call it as a class method
<blazes816>
so how would you react if Hanmac told me to do a job before he told me what it was?
<blazes816>
aw, I messed it up
<blazes816>
:(
<blazes816>
so how would you react if Hanmac told you to do a job before he told me what it was?
advorak has quit [Quit: This computer has gone to sleep]
love_color_text has quit [Remote host closed the connection]
<arietis>
it wont work if ill place convert after definition
gabrielrotbart has joined #ruby
<blazes816>
you define convert for the instance, but try calling it on the class
tjbiddle has quit [Quit: tjbiddle]
<blazes816>
try def self.convert
<micsha>
workmad3: sorry I was afk for a second. so even if I define a method in the global space and a variable in that method, the variable is still "global"?
_alfalfa has joined #ruby
<blazes816>
well, what type of variable?
mercwithamouth has joined #ruby
<micsha>
def local_meth
<micsha>
@var = 5
<micsha>
end
<micsha>
like that ^
<blazes816>
and @instance variable would be on object
<blazes816>
yeah, then it would be
<blazes816>
a local var wouldn't
fyolnish has joined #ruby
<blazes816>
nice name for a global method too
yxhuvud has quit [Ping timeout: 272 seconds]
<micsha>
sorry, I'm coming from C so relearning this is just taking a while.
<blazes816>
np
<micsha>
ok, so a randomly defined method in global space isn't going to have a local variable per se, then, right?
<micsha>
it would have to be in an class object?
<blazes816>
def local_meth; var = 5; end
<blazes816>
var is local
levabalkin has joined #ruby
<blazes816>
local_meth is not
<micsha>
right, so I shouldn't be able to directly reference the local variable from outside of that method, correct?
<micsha>
oh!
<blazes816>
correct
<micsha>
I understand what you mean, I think
yaymukund has quit [Quit: Lost terminal]
<blazes816>
def local_method; @a = 'foo'; b = 'bar'; end
<blazes816>
a is an instance variable, b is a local variable
<blazes816>
if you now do like "puts b"
<blazes816>
b will be undefined
<blazes816>
"puts a" will output foo
jamjam has quit [Ping timeout: 255 seconds]
ablankfield has quit [Ping timeout: 276 seconds]
fyolnish has quit [Ping timeout: 265 seconds]
freakazoid0223 has quit [Read error: Connection reset by peer]
bbttxu has joined #ruby
Chryson has joined #ruby
joeycarmello has joined #ruby
_alfalfa has quit [Ping timeout: 240 seconds]
toolio_jarvis has joined #ruby
toolio_jarvis has quit [Client Quit]
_alfalfa has joined #ruby
jipiboily has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
kirun_ has quit [Quit: Client exiting]
clj_newb has joined #ruby
coder_neo has quit [Ping timeout: 265 seconds]
bbttxu has quit [Quit: bbttxu]
mercwithamouth has quit [Ping timeout: 252 seconds]
coder_neo has joined #ruby
CaptainKnots has quit [Quit: bazinga!]
jenrzzz has joined #ruby
J-_-L has joined #ruby
sertaconay has quit [Read error: Connection reset by peer]
<micsha>
ok, so @var is an instance variable and var would be a local variable, I need to understand the difference between the two, thanks.
<micsha>
gah.
<micsha>
i think I accidentily that sentence.
<micsha>
but suffice it to say instance variables != local variables.
sertaconay has joined #ruby
<apeiros_>
so you don't need an explanation anymore?
fantazo has quit [Ping timeout: 260 seconds]
Russell^^ has quit [Quit: Russell^^]
hesco has joined #ruby
irleif has joined #ruby
elico has joined #ruby
<hesco>
I have been distracted from this task for nearly a month by a vacation and other priorities. My notes on the ticket point to an installation at /usr/local/ruby-1.9.3-p194 , but when I try to launch my puppet daemon, I'm seeing errors related to: /usr/local/lib/ruby/1.9.1.
gabrielrotbart has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
<hesco>
While the ticket notes are silent on this question, I suspect this is left over from previous installation attempts.
gabrielrotbart has joined #ruby
darthdeus has quit [Quit: Leaving...]
Xeago has joined #ruby
<hesco>
apt-get remove --purge insists that no ruby remain installed which I may have installed from the packages
_alejandro has quit [Ping timeout: 268 seconds]
<hesco>
My notes seem to indicate that my source install in /usr/local is the one which took and worked.
blacktulip has quit [Remote host closed the connection]
<hesco>
Before I left off on this project, I had a working dependency stack under puppet.
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
_alejandro has joined #ruby
<hesco>
but now coming back at this a month later, things look curious.
<hesco>
Did the 1.9.3 version I installed mislable its library paths as 1.9.1 ???
irleif has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
<Hanmac>
hesco its the API version
brianpWins has quit [Quit: brianpWins]
alanp has quit [Ping timeout: 268 seconds]
mercwithamouth has joined #ruby
BoomCow has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<hesco>
Hanmac: how do you mean?
dnstbr has joined #ruby
Takehiro has joined #ruby
<Hanmac>
hesco the API version of 1.9.3 is still 1.9.1
<hesco>
ok, so it is hitting the right version of ruby then.
miphe has joined #ruby
<Hanmac>
yeah, and you that try to google the question first ...
x82_nicole has joined #ruby
marcuspat has joined #ruby
<hesco>
apparently I was invoking `puppetd` when I should have been using `puppet agent`
h4mz1d has quit [Ping timeout: 245 seconds]
ltsstar has quit [Quit: ltsstar]
Takehiro has quit [Ping timeout: 260 seconds]
Cache_Money has quit [Read error: Connection reset by peer]
<x82_nicole>
Can someone explain when you would ever use the .each method on an array? I don't understand. The .map method actually returns results, and the .each does nothing?
<arietis>
each is iterator
slainer68 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
<arietis>
for each element in array do something
advorak has quit [Client Quit]
cardoni has joined #ruby
jjang has joined #ruby
_alejandro has joined #ruby
nohonor has quit [Ping timeout: 245 seconds]
invapid_ has quit [Quit: Lost terminal]
lkba has quit [Ping timeout: 276 seconds]
_veer has quit [Ping timeout: 245 seconds]
glyytchy has joined #ruby
nohonor has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
aarondaub has joined #ruby
BoomCow has left #ruby ["Leaving"]
fyolnish has joined #ruby
irleif has joined #ruby
Servidorv has joined #ruby
<Servidorv>
hey guys
<Servidorv>
anyone there??
sepp2k has quit [Remote host closed the connection]
nohonor has quit [Ping timeout: 240 seconds]
irleif has quit [Client Quit]
krisbulman has quit [Quit: krisbulman]
lkba has joined #ruby
Goles has joined #ruby
alejandro_ has joined #ruby
_alejandro has quit [Read error: No route to host]
krisbulman has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
elico has quit [Quit: elico]
clj_newb has quit [Ping timeout: 252 seconds]
Rix has quit [Ping timeout: 260 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
Rix has joined #ruby
<Servidorv>
anyone???
_alfalfa has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: Leaving...]
<aarondaub>
hey
miphe has quit [Quit: Leaving]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
sent-hil has joined #ruby
synthetix has joined #ruby
levabalkin has quit []
synthetix has quit [Quit: Ex-Chat]
monkegjinni has quit [Read error: Connection reset by peer]