mercwithamouth has quit [Ping timeout: 245 seconds]
rubious has quit [Quit: Leaving...]
<awojo>
Understood. Just wasn't sure if there was anything I could do to escape it inside the system call
<rowsdower>
Looks like you just got your answer. Check stackoverflow.
lggr has joined #ruby
<awojo>
Yep
<awojo>
Shellwords is exactly what I was looking for.
noyb has joined #ruby
mercwithamouth has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
gmci has quit [Ping timeout: 244 seconds]
iori has joined #ruby
Juv1228 has joined #ruby
<Juv1228>
hello, im not very familiar with ruby/rails/bundles, but im trying to setup multiple instances of an application running on rails
<Juv1228>
am i correct in thinking with a bundle it would be possible to have one code base to run multiple instances with different configurations?
khakimov has joined #ruby
kenneth has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
noyb has quit [Ping timeout: 260 seconds]
nari has joined #ruby
dekroning has joined #ruby
lggr has joined #ruby
t0rc has quit [Quit: WeeChat 0.3.9]
berserkr has quit [Quit: Leaving.]
steakknife has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
dekroning has quit [Ping timeout: 240 seconds]
vitoravelino is now known as vitoravelino`afk
F1skr has quit [Quit: WeeChat 0.3.9]
_nitti has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 260 seconds]
starship has quit [Quit: Leaving]
vitor-br has joined #ruby
gmci_ has joined #ruby
patrick99e99 has quit [Quit: Lost terminal]
lggr has joined #ruby
quazimodo has joined #ruby
gmci_ has quit [Ping timeout: 246 seconds]
jimeh2 has joined #ruby
katherinem13 has quit [Quit: katherinem13]
jroes has joined #ruby
Alantas has joined #ruby
cburyta has quit [Remote host closed the connection]
Alantas has quit [Client Quit]
<jroes>
I feel like this is a silly question, but is there a shorthand / hash literal syntax to set a hash key as the value of a variable? for example, key = 'color'; { key: 'blue' } ; # => { color: blue } if that makes sense
<jroes>
essentially to avoid doing something like hash = {}; hash[:color] = 'blue'
katherinem13 has joined #ruby
SegFaultAX|work has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
gmci_ has joined #ruby
katherinem13 has quit [Client Quit]
lggr has quit [Ping timeout: 255 seconds]
katherinem13 has joined #ruby
jimeh2 has quit [Ping timeout: 252 seconds]
wingy has joined #ruby
lggr has joined #ruby
bradyl0ve has joined #ruby
JonnieCache|work has quit [Ping timeout: 256 seconds]
roadt has joined #ruby
<bperry>
jroes: hash = { :color => 'blue' }
c0rn_ has joined #ruby
<bperry>
: is faster than '' just fyi
<bperry>
I recommend using a symbol while using dictionaries over strings
<jroes>
er, I guess I'm not explaining quite right
<bperry>
oh
<jroes>
the key is dynamic
<bperry>
yeah I misread
<jroes>
np
<bperry>
yeah
<bperry>
:"#{variable_name}"
<jroes>
ahhh
<jroes>
nice
<jroes>
thanks !! :)
<bperry>
np
Araxia has quit [Quit: Araxia]
IrishGringo has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
daslicious_ has joined #ruby
bradyl0ve has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
Areckx has joined #ruby
<swarles>
how do i force an update of rvm source?
<Areckx>
is ruby used to write Japanese kanji with furigana?
cardoni has quit [Quit: cardoni]
<swarles>
like
<swarles>
my rvm's repo for rubinius is old
<swarles>
it moved
stkowski has joined #ruby
pipopopo has quit [Read error: Operation timed out]
lggr has joined #ruby
SDr has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
duracrisis_ has joined #ruby
ttt has joined #ruby
pipopopo has joined #ruby
Trioke_ has quit [Quit: leaving]
duracrisis_ has quit [Changing host]
duracrisis_ has joined #ruby
duracrisis_ is now known as starship
bradyl0ve has joined #ruby
ncr100 has quit [Ping timeout: 240 seconds]
freeayu has joined #ruby
sent-hil has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
swarles has quit [Read error: Connection reset by peer]
swarley has joined #ruby
ledao has quit [Ping timeout: 245 seconds]
apok_ has quit [Ping timeout: 256 seconds]
pskosinski has quit [Quit: A few unofficial Red Eclipse 1.3.1 (r4131) servers: http://altred.tk/toggle.rb (and no more global banning for saying that main dev is not very smart, what is truth anyway)]
maletor has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 240 seconds]
bmxpert1 has joined #ruby
advorak has quit [Quit: Leaving]
pskosinski has joined #ruby
bmxpert1 has quit [Client Quit]
joofsh has quit [Remote host closed the connection]
bmxpert1 has joined #ruby
cardoni has joined #ruby
lggr has joined #ruby
Kuhni has quit [Quit: ?????]
justinmcp has quit [Remote host closed the connection]
bmxpert1 has quit [Remote host closed the connection]
bmxpert1 has joined #ruby
r1ddl3r1 has quit [Quit: Leaving.]
bradyl0ve has quit [Quit: Leaving...]
pskosinski has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
radic_ has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
v0n has joined #ruby
ebragaparah has quit [Remote host closed the connection]
Nisstyre has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
cardoni has quit [Ping timeout: 256 seconds]
dakine has joined #ruby
wingy has left #ruby [#ruby]
<roychri>
I find out how to get local methods (the ones directly defined in my class and not in Object class) by doing public_instance_methods - Object.instance_methods
<roychri>
How do I get local class methods?
<roychri>
Do I need class << self ?
ttt has quit [Remote host closed the connection]
ebragaparah has joined #ruby
_nitti has joined #ruby
cburyta has joined #ruby
<rowsdower>
roychri: class A; def x; print self.class.methods end end
lggr has quit [Ping timeout: 244 seconds]
<rowsdower>
A.new.x => [...many methods...]
iamjarvo has joined #ruby
<rowsdower>
This also gives you a list of every other class method. Yay metaprogramming!
<roychri>
rowsdower: Thanks. How about outside a method? class A; def foo; end; puts methods; end This will output more methods than just foo.
<roychri>
rowsdower: I just want the oens defined in my class.
kenneth has quit [Quit: kenneth]
_nitti has quit [Ping timeout: 245 seconds]
Tohuw has joined #ruby
Tohuw has left #ruby [#ruby]
lggr has joined #ruby
bradyl0ve has joined #ruby
poindontcare has joined #ruby
cburyta has quit [Ping timeout: 240 seconds]
<rowsdower>
"A.methods - A.superclass.methods" - but this seems like a hack
naz has quit [Read error: Connection reset by peer]
bigmcq77 has quit [Read error: Connection reset by peer]
fredjean has joined #ruby
c0rn_ has quit [Ping timeout: 244 seconds]
recycle has joined #ruby
justinmcp has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
duracrisis_ has joined #ruby
mikepack has joined #ruby
stephh has quit [Ping timeout: 252 seconds]
cardoni has quit [Ping timeout: 240 seconds]
starship has quit [Read error: Connection reset by peer]
marienz has quit [Ping timeout: 615 seconds]
lggr has joined #ruby
dekroning has joined #ruby
marienz has joined #ruby
Beoran_ has joined #ruby
josh^ has quit [Ping timeout: 245 seconds]
recycle has quit [Remote host closed the connection]
fredjean has quit [Quit: Computer has gone to sleep.]
CodeFriar has joined #ruby
nazty has quit [Ping timeout: 252 seconds]
dekroning has quit [Ping timeout: 248 seconds]
rabidpraxis has quit [Remote host closed the connection]
JonnieCache has quit [Ping timeout: 240 seconds]
josh^ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
Araxia has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: A few unofficial Red Eclipse 1.3.1 (r4131) servers: http://altred.tk/toggle.rb (and no more global banning for saying that main dev is not very smart, what is truth anyway)]
iamjarvo has joined #ruby
eldariof has quit [Ping timeout: 246 seconds]
reuf has quit [Quit: Leaving]
sqlbyme has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 256 seconds]
naz has joined #ruby
lggr has joined #ruby
naz is now known as nazty
nazty has quit [Quit: Leaving]
Bosma has joined #ruby
elsifaka has quit [Read error: Connection reset by peer]
nazty has joined #ruby
elsifaka has joined #ruby
_nitti has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
c0rn_ has joined #ruby
IrishGringo has joined #ruby
lggr has joined #ruby
mercwithamouth has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
awarner has quit [Remote host closed the connection]
<shevy>
the whole mental masturbation model of having to declare variables stinks
<shevy>
int my_ass;
<Larrius>
equip(unzipper)
<shevy>
hmm ok... I would actually never use such a variable. I try to give meaningful names, ideally descriptive ones, all the time.
<hoelzro>
unless you needed to describe the size of your ass in a program.
<hoelzro>
;)
<shevy>
and if possible, rather short names, than long names. but always a bit longer names for important, re-used variables... no global n,j,k,l,m names
<postmodern>
kisoku, currying returns a new Proc object, so just &the_proc
wisconsin has quit [Remote host closed the connection]
<postmodern>
hoelzro, size_t your_ass ?
margle has quit [Quit: Computer has gone to sleep.]
<shevy>
hoelzro I have yet to find the program where my ass could fit in!
<hoelzro>
postmodern: I suppose that makes sense; it would probably be unsigned =)
<shevy>
I am a Homer Simpson programmer.
Takehiro has quit [Remote host closed the connection]
lggr has joined #ruby
<shevy>
And hoelzro is a Monty Burns programmer.
* hoelzro
tries to figure out what that even means
<postmodern>
eeexcellent
sarmiena_ has quit [Quit: sarmiena_]
deadghost has quit [Ping timeout: 244 seconds]
<shevy>
hoelzro you are an evil programmer
<shevy>
:)
<hoelzro>
I am? Why?
<shevy>
it's in your nature!
lggr has quit [Ping timeout: 240 seconds]
<shevy>
I am sure you wrote something evil in your life
<hoelzro>
I guess I should ask what makes me an evil programmer...
<shevy>
let's see ...
<shevy>
did you write something in ...
<shevy>
PHP?
havenn has joined #ruby
<hoelzro>
no
<shevy>
hmmmmm
<shevy>
what else could it be ...
* shevy
ponders.
morozovm has quit [Ping timeout: 248 seconds]
<shevy>
ah well you are off the hook for now, but surely you will write something evil one day!
morozovm has joined #ruby
lggr has joined #ruby
samphippen has joined #ruby
AndrzejK1zywda is now known as AndrzejKrzywda
nignaztic has joined #ruby
havenn has quit [Ping timeout: 245 seconds]
Guiixandy has quit []
bodik has left #ruby [#ruby]
Agis__ has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
scx has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 246 seconds]
<Agis__>
guys, Hash#merge is a very common method in gems, right?
Larrius has quit [Quit: Page closed]
lggr has joined #ruby
<hemanth>
so what's you say hackers? Rails to node.js 20X time faster!
<A124>
Anyone knows of a gem to draw in console / terminal?
ianblenke1 has left #ruby [#ruby]
telling has quit [Quit: leaving]
dhruvasagar has joined #ruby
lggr has joined #ruby
BinaryMaster has joined #ruby
seb_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
samphippen has joined #ruby
LouisGB has quit [Ping timeout: 246 seconds]
mohit has quit [Read error: Connection reset by peer]
g-ram has quit [Quit: Computer has gone to sleep.]
wedtm is now known as wedtm|away
samphippen has quit [Client Quit]
answer_42 has joined #ruby
daniel_-_ has joined #ruby
yshh has quit [Remote host closed the connection]
LouisGB has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
colinbm has quit [Quit: colinbm]
Forevernade has joined #ruby
<heisenmink>
how would I unpack messages recieved into data structures in ruby? Imagine 1 byte opcode, 1 byte argument, 2 bytes argument, followed by 4 byte data rows. different data class depending on opcode. how would I treat a string recieved from tcpsocket as bytes in that sense?
lggr has joined #ruby
rubious has quit [Quit: Leaving...]
Zai_ has quit [Quit: Zai_]
cousine has joined #ruby
<workmad3>
A124: ncurses is probably the best you'll find
justinmcp has quit [Remote host closed the connection]
<hoelzro>
heisenmink: String#unpack could probably be of use to you
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
cousine has quit [Remote host closed the connection]
<A124>
workmad3: Thank you, will take a look at that. I also found progress bars, spinners and tables.
samphippen has joined #ruby
<workmad3>
heisenmink: I'd probably consider creating a set of classes that encapsulates each opcode and how it should be treated, coupled with a factory method that will examine the first byte and create an appropiate Operation instance for you
<heisenmink>
hoelzro: thanks! just what I was looking for
colinbm has joined #ruby
<heisenmink>
workmad3: yeah I figured that. I am thinking of making each package type class' constructor take the values in the constructor, and just use the opcode to match to the correct data class
Mon_Ouie has quit [Ping timeout: 260 seconds]
Criztian has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
g-ram has joined #ruby
_nitti has joined #ruby
skaczor has joined #ruby
Zai_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lggr has joined #ruby
sixteneighty has quit [Ping timeout: 245 seconds]
josh^ has quit [Ping timeout: 245 seconds]
_nitti has quit [Ping timeout: 260 seconds]
vitoravelino`afk is now known as vitoravelino
cburyta has joined #ruby
ttt has quit [Remote host closed the connection]
My_Hearing has quit [Ping timeout: 260 seconds]
josh^ has joined #ruby
cburyta has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 245 seconds]
jeffreybaird has joined #ruby
F1skr has joined #ruby
lggr has joined #ruby
rakunHo has joined #ruby
rakunHo has quit [Read error: Connection reset by peer]
telling has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
A124 has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
elico has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
RudyValencia has joined #ruby
lggr has joined #ruby
Forevernade is now known as ForevernadeAFK
mark_locklear has joined #ruby
kjellski has joined #ruby
havenn has joined #ruby
timonv has joined #ruby
saedelaere has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 264 seconds]
saedelaere has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
hgf has joined #ruby
geekbri has joined #ruby
lggr has joined #ruby
duracrisis has joined #ruby
duracrisis has joined #ruby
duracrisis has quit [Changing host]
saedelaere has quit [Client Quit]
_nitti has joined #ruby
binaryplease has joined #ruby
<thanpolas>
i can't find 'convert' command of image magic in RMagick… anyone? or just shell it
Forevernade has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
gmci has joined #ruby
larissa has joined #ruby
<Xeago>
I'm looking for a merge application that shows a preview of the resultant merge
ForevernadeAFK has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
krawchyk has joined #ruby
fbernier has joined #ruby
alek_b has quit [Remote host closed the connection]
futilegames_ has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
futilegames has joined #ruby
manizzle has quit [Ping timeout: 246 seconds]
hgf has quit [Quit: hgf]
knirhs has joined #ruby
aisy has joined #ruby
_nitti has quit [Remote host closed the connection]
icooba has quit [Quit: Computer has gone to sleep.]
D4T has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
uris has joined #ruby
knirhs has quit [Ping timeout: 246 seconds]
mucker has quit [Quit: leaving]
lggr has joined #ruby
gmci has quit [Ping timeout: 252 seconds]
cburyta has joined #ruby
Tearan has joined #ruby
Virunga has quit [Remote host closed the connection]
clocKwize has joined #ruby
manizzle has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Hanmac has quit [Read error: Connection reset by peer]
gmci has joined #ruby
Virunga has joined #ruby
margle has joined #ruby
JonnieCache has joined #ruby
brotspinne has joined #ruby
_nitti has joined #ruby
cburyta has quit [Ping timeout: 245 seconds]
nanderoo has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
<brotspinne>
hello. I have problems with accessing constants in the eigenclass (?) context. here is the code: http://ideone.com/jZQmD I have found a solution with self::FOO but is this the proper way of doing it?
samphippen has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
<brotspinne>
when I remove the inheritance everthing works finde
<brotspinne>
shevy: okay but why not with self << class?
eldariof has quit [Read error: Connection reset by peer]
<shevy>
why do you want to use self << class?
sgupta has quit [Read error: Connection reset by peer]
<brotspinne>
shevy: I want to follow the rails code guide lines
eldariof has joined #ruby
<shevy>
ok then you should ask them :)
<brotspinne>
word
<shevy>
the less rails code leaks out of rails the better for mankind
cburyta has joined #ruby
<shevy>
for what you seem to want to solve, self.foo seems to work fine or?
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Axsuul has quit [Ping timeout: 245 seconds]
<shevy>
I have never seen self::SOME_CONSTANT in code before btw
<shevy>
I do see ::SOME_CONSTANT sometimes though
<brotspinne>
me too. that's why I'm asking :D
knirhs has joined #ruby
<shevy>
I have not investigated, but I think self:: seems kinda superfluous
[Neurotic] has quit [Remote host closed the connection]
<shevy>
it always tries to lookup for the constant first in the namespace it was defined or? (in this example, within class B)
<Xeago>
self is not a namespace
carlyle has joined #ruby
chussenot has quit [Quit: chussenot]
<Xeago>
well, technically it is but it is not what you think it is
samphippen has joined #ruby
larissa has quit [Read error: Connection reset by peer]
heisenmink has quit [Remote host closed the connection]
<brotspinne>
self.FOO doesn't work, too
larissa has joined #ruby
<Xeago>
shevy: why so anti rails if I may ask?
<brotspinne>
Xeago: `self` in this case is the eigenclass, right?
prtksxna has quit [Remote host closed the connection]
<Xeago>
never heard of eigenclass
Shrink has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
<brotspinne>
ok then you are the wrong guy :P
<brotspinne>
(I've heard about it first today)
Spooner has joined #ruby
<Xeago>
heard about it before, but never bothered
Jay_Levitt has quit [Quit: Jay_Levitt]
<Xeago>
tbh, if you're having issue's with it, you're doing stuff on the wrong level
mmitchell has quit [Remote host closed the connection]
allanm has quit [Read error: Connection reset by peer]
<brotspinne>
Xeago: maybe you're right but thats just the use case. I have a superclass with a constant and I want to access it from a childclass inside a class method while defining the class method with self << class
<brotspinne>
thats all
lggr has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
<brotspinne>
ok I should workaround with def self.foo
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
vlad_starkov has joined #ruby
<Spooner>
brotspinne : You shouldn't need to wrap it as a method. self::FOO should work if you can't access a constant for some reason (or self.class::FOO from an instance method).
<brotspinne>
Spooner: well there is some more logic in the method
<Igneous>
Admitting defeat and asking irc on this one.. Sorry to bug you guys, but I've been looking for a way to generate a complete set of ri documentation for ruby core. Right now I have a little bit, but it's missing quite a few methods and classes entirely (like Array, for instance).
Shrink has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 255 seconds]
daniel_-_ has quit [Ping timeout: 245 seconds]
hsbt has quit [Ping timeout: 248 seconds]
Morkel has quit [Quit: Morkel]
hsbt has joined #ruby
joofsh has joined #ruby
lggr has joined #ruby
My_Hearing has joined #ruby
maesbn has quit [Remote host closed the connection]
nwest has joined #ruby
bwlang has joined #ruby
bwlang has quit [Excess Flood]
bwlang has joined #ruby
justinmcp has joined #ruby
bwlang has quit [Client Quit]
bwlang has joined #ruby
futilegames has quit [Quit: futilegames]
brotspinne has quit [Quit: brotspinne]
<clocKwize>
how do I take a hash and return only certain keys/values? I have {a: 1, b: 2, c: 3}, I want to do hash.only(:a, :c) and get {a: 1, c:3} back
My_Hearing is now known as Mon_Ouie
Coolhand has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
margle has quit [Quit: Computer has gone to sleep.]
swarley has joined #ruby
lggr has joined #ruby
<Spooner>
Igneous : Just use pry and pry-doc gems and you have it all (including C source), though admittedly not in ri.
dr_bob has quit [Read error: Connection reset by peer]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
asuka has joined #ruby
Jay_Levitt has joined #ruby
mmitchell has joined #ruby
fantazo has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
justinmcp has quit [Remote host closed the connection]
lkba has joined #ruby
awarner has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
Jay_Levitt has quit [Client Quit]
lggr has joined #ruby
bradleyprice has joined #ruby
Guest95708 has quit [Changing host]
Guest95708 has joined #ruby
Guest95708 is now known as starship
seoaqua has joined #ruby
rowsdower has joined #ruby
axl_ has joined #ruby
robertotauille has joined #ruby
dr_bob has joined #ruby
samphippen has joined #ruby
ndboost has joined #ruby
paolooo has joined #ruby
daniel_hinojosa has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
r1ddl3r has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
abionic has quit [Ping timeout: 240 seconds]
mgates has joined #ruby
irleif has joined #ruby
rabidpraxis has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mikepack has joined #ruby
bradleyprice has quit [Remote host closed the connection]
monkegjinni has joined #ruby
ndboost has left #ruby [#ruby]
lggr has joined #ruby
bradleyprice has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
chrishunt has joined #ruby
r1ddl3r has joined #ruby
bbttxu has joined #ruby
steakknife has joined #ruby
sailias has joined #ruby
manizzle has quit [Ping timeout: 264 seconds]
brotspinne has joined #ruby
flype has joined #ruby
brotspinne has left #ruby [#ruby]
brotspinne has joined #ruby
<brotspinne>
hello again
lggr has quit [Ping timeout: 252 seconds]
vitoravelino`afk is now known as vitoravelino
havenn has joined #ruby
daniel_-_ has joined #ruby
devdazed_ has quit [Quit: Bye]
<brotspinne>
Spooner: did you saw the code?
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
stopbit has joined #ruby
lggr has joined #ruby
yshh has joined #ruby
ryanlabouve has joined #ruby
havenn has quit [Ping timeout: 245 seconds]
otters has joined #ruby
<Spooner>
brotspinne : Yeah, but you'd left.
<brotspinne>
Spooner: sorry I had a disconnect. did you wrote something?
<Spooner>
The reason it doesn't work is because it is looking for the constant on its class (That is, the class of an instance of MyClass is an MyClass, but an instance of a class of MyClass is Class).
cburyta has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
<Spooner>
brotspinne : Actually, that is gibberish. I mean that an instance's class contains its constants, but the constants when referred on that class are looked up on _its_ class, that is Class. self.BLEH looks on it on MyClass.
cburyta has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
colinbm has joined #ruby
lggr has joined #ruby
cburyta has joined #ruby
asuka has quit [Remote host closed the connection]
craigp has quit [Quit: craigp]
theRoUS has quit [Read error: Operation timed out]
<rehat>
what is the vitical bars called in a statement like something.each do |x|
Emmanuel_Chanel has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
ichilton has quit [Quit: Lost terminal]
<hoelzro>
rehat: those specify the block's parameters
<DebianUT>
like 5.times {|x| puts x}
<DebianUT>
it will output 01,2,3,4
<rehat>
ok so block parameters
<rehat>
just wondering what its terminology was
<rehat>
thanks
samphippen has joined #ruby
Bosma has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
baphled has quit [Ping timeout: 245 seconds]
leoncamel has joined #ruby
lolmaus has quit []
havenn has joined #ruby
und3f has quit [Quit: Leaving.]
lggr has joined #ruby
philcrissman has quit [Remote host closed the connection]
asuka has joined #ruby
macmartine has joined #ruby
alek_b has joined #ruby
<rking>
Is there a standard way of doing this?: class Hash; def find_by_value looking_for; find { |k,v| v == looking_for end.first } end end
asuka has quit [Remote host closed the connection]
asuka has joined #ruby
davidcelis has quit [Quit: K-Lined.]
havenn has quit [Ping timeout: 245 seconds]
jgrevich has joined #ruby
mark_locklear has quit [Quit: Leaving]
irleif has joined #ruby
<hoelzro>
rking: what do you need that for?
ltsstar has quit [Ping timeout: 244 seconds]
<hoelzro>
the advantage of a hash is that you get fast lookups for the keys; it seems like you're getting away from that
F1skr has quit [Quit: WeeChat 0.3.9]
Tearan has quit [Quit: Sleepy Badger....]
brotspinne has quit [Quit: brotspinne]
<Hanmac>
rking ri Hash.key
futilegames has joined #ruby
<DebianUT>
a = {:key1 => "Value1"}
<DebianUT>
puts a[:key1]
lggr has quit [Ping timeout: 240 seconds]
F1skr has joined #ruby
<rking>
hoelzro: Just that I have a small case where I need to go backwards.
<rking>
DebianUT: So from there, if you have b = a[:key1], now taking only b how can you get back to :key1 ?
<rking>
Well, only b and a, but not :key1 itself I mean. =)
<Hanmac>
rking a.key("Value1")
asuka has quit [Remote host closed the connection]
asuka has joined #ruby
wwalker has joined #ruby
<A124>
bnagy: Holy sh*t! ... The speed of diff-lcs is insane! Slow as hell.
ZubKonst has quit [Read error: Connection reset by peer]
<rking>
Hanmac: Yeah, thanks. I was just looking that up now like you said. But I was puzzled by "Hash.key" vs. "Hash#key".
<rking>
Hanmac: If there's a nuclear holocaust that destroys all Ruby docs, we'll be calling on you to recreate them, kk?
lggr has joined #ruby
ZubKonst has joined #ruby
<wwalker>
anyone know of existing code that would turn [1,2,3,8,9,11,12,13,14,15,23] into [1..3,8..9,11..15,23] ? I can of course write it but if it's already written....
<Hanmac>
:P yeah
<rking>
Hanmac: Actually man, I need you on pry-docmore
<rking>
Bad
<hoelzro>
wwalker: I bet you could do something crazy with inject
<bperry>
wwalker: is there actually a difference between the two?
Virunga has quit [Remote host closed the connection]
<rking>
(But once they're ready, it'll be something that you can do in pry. Like how you can already say "? Hash#key", you'll be able to "? alias" or "? if")
binaryplease has quit [Quit: WeeChat 0.3.8]
Synthead has joined #ruby
<wwalker>
bperry, really I just want a string rather than an array as output. I want a human friendly rollup of the holes in a ping series....
hoelzro is now known as hoelzro|away
<wwalker>
hoelzro|away: I'll go that route...
hsbt is now known as hsbt_away
booyakah has joined #ruby
booyakah has joined #ruby
booyakah has quit [Changing host]
punkrawkR has joined #ruby
icooba has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
mahmoudimus has joined #ruby
<Hanmac>
wwalker can it be 1.9er code or does it need to be work on 1.8 too?
irleif has quit [Quit: Computer has gone to sleep.]
aganov has quit [Quit: aganov]
F1skr has quit [Quit: WeeChat 0.3.9]
ananthakumaran has joined #ruby
<wwalker>
Hanmac: 1.9 would be fine
lggr has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
cardoni has joined #ruby
jasond has quit [Remote host closed the connection]
SegFaultAX|work has joined #ruby
hakunin has joined #ruby
freeayu__ has quit [Remote host closed the connection]
skryking has joined #ruby
philcrissman has joined #ruby
nohonor has joined #ruby
tommyvyo has quit [Remote host closed the connection]
<arturaz>
damn. rbenv is so much saner than rvm...
rowsdower has quit [Quit: Konversation terminated!]
<wrapids>
When using rexml x = xmldoc.root puts x, should it be dislpaying the entire xml file?
g-ram has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
BinaryMaster has quit [Quit: Leaving]
caveat- has quit [Ping timeout: 252 seconds]
chrishunt has quit [Ping timeout: 260 seconds]
dr_bob has quit [Quit: Leaving.]
<workmad3>
wrapids: sounds reasonable
<A124>
rubygem diff-lcs should be wiped of the surface of the Earth. 30 minutes, two small files and still no output.
mahmoudimus has quit [Ping timeout: 248 seconds]
<booyakah>
Hanmac, thanks for the help yesterday. I figured out what was wrong this morning while I was in the shower. When fiddling with it I remembered I changed the SQL Query and got this though "hmm, did I change it back?"
<booyakah>
I didn't
caveat- has joined #ruby
<booyakah>
(if you remember)
<workmad3>
wrapids: XML can only have 1 root element, and I'd expect printing out a node to print out the XML for the node and its children (and so on)
Hanmac has quit [Ping timeout: 255 seconds]
<workmad3>
wrapids: now, the question is, does it? :)
leoncame` has joined #ruby
<wrapids>
workmad3: I'm afraid I am not quite following that statement
seoaqua has quit [Ping timeout: 256 seconds]
F1skr has joined #ruby
<workmad3>
wrapids: did you ask 'should it print out the entire document' because you expected it to, or because you didn't expect it to?
<wrapids>
Because I didn't expect it to
lggr has joined #ruby
Hanmac has joined #ruby
<wwalker>
Hanmac gave me one to think about....
leoncamel has quit [Ping timeout: 246 seconds]
irleif has joined #ruby
_mak has quit [Quit: Ex-Chat]
<booyakah>
Hanmac, thanks for the help yesterday. I figured out what was wrong this morning while I was in the shower. When fiddling with it I remembered I changed the SQL Query and got this though "hmm, did I change it back?"
<booyakah>
If you remember about result[0][0] > 0
elsifaka has joined #ruby
SegFaultAX|work has quit [Quit: leaving]
<Hanmac>
yeah
<booyakah>
such a stupid mistake to miss
<booyakah>
instead of SELECT COUNT(0) FROM
<booyakah>
it was SELECT nickname FROM
<booyakah>
still i think its weird that "puts result" didn't output anything
leoncame` has quit [Client Quit]
<wrapids>
workmad3: I'm simply trying to add an element as a child of a particular element on an existing document, I'm either getting "cannot create multiple root" or it just runs, does nothing. I've poured over the documentation but I so far haven't gotten it to work
<workmad3>
wrapids: well you've requested the root element of an XML document
<workmad3>
wrapids: there can only be one root element
sagar_junnu has quit [Quit: Leaving]
<wrapids>
Well that makes sense, but I dont want to add a new root element. I'm trying to add a child element to an entirely different element
<workmad3>
wrapids: so when you then 'puts' it, the 'puts' gets a string representation of the root element, which includes oll of that elements children
<workmad3>
wrapids: I'm just explaining the code you showed ;)
<wrapids>
I was just curious about it printing the entire document
Morkel has joined #ruby
<wrapids>
Mostly what the documentaiton and examples I've seen show to use is xmldoc.add_element("some_element"), but these give me the multiple root exception.
lggr has quit [Ping timeout: 246 seconds]
<wrapids>
which firstly doesn't specify the element I'd like to add to
Ankhers has quit [Remote host closed the connection]
locriani has joined #ruby
fantazo has quit [Remote host closed the connection]
<wrapids>
workmad3: Oh! I should be looking at inserts rather than add_element...
elico has quit [Ping timeout: 256 seconds]
<workmad3>
wrapids: heh :) it's been a long time since I've touched rexml... I prefer nokogiri
lggr has joined #ruby
<workmad3>
better documentation, cleaner interface, and it's built on top of libxml... what could be better? :)
Morkel has quit [Client Quit]
justinmcp has joined #ruby
<wrapids>
Does it support SAX and DOM type parsing?
brianpWins has quit [Quit: brianpWins]
philcrissman has quit [Remote host closed the connection]
joast has joined #ruby
Morkel has joined #ruby
zenformatics1 has joined #ruby
spaceships has joined #ruby
justinmcp has quit [Ping timeout: 256 seconds]
nwest has quit [Quit: Computer has gone to sleep.]
jgrevich_ has joined #ruby
mucker has joined #ruby
carloslopes has quit [Quit: Leaving.]
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
lggr has quit [Ping timeout: 255 seconds]
Zai_ has quit [Quit: Zai_]
samphippen has quit [Quit: Computer has gone to sleep.]
colinbm has quit [Quit: colinbm]
elico has joined #ruby
lggr has joined #ruby
larissa has quit [Quit: Leaving]
headius has quit [Quit: headius]
mahmoudimus has joined #ruby
havenn has joined #ruby
g-ram has joined #ruby
shadoi has quit [Quit: Leaving.]
v0n has quit [Ping timeout: 246 seconds]
khakimov has joined #ruby
leehambley has joined #ruby
monkegjinni has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
awestroke has quit [Remote host closed the connection]
samphippen has joined #ruby
morozovm_ has joined #ruby
ryanlecompte has joined #ruby
lggr has joined #ruby
wallerdev has joined #ruby
morozovm has quit [Ping timeout: 255 seconds]
morozovm_ is now known as morozovm
burgestrand has quit [Quit: Leaving.]
SegFaultAX|work has joined #ruby
headius has joined #ruby
tk__ has joined #ruby
Ankhers has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
daniel_-_ has joined #ruby
cbuxton has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
davidcelis has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
Targen_ has joined #ruby
lggr has joined #ruby
tylerjones has joined #ruby
[diecast] has quit [Excess Flood]
<tylerjones>
what channel would be good for questions with ruby?
ngoldman has joined #ruby
brianpWins has joined #ruby
ozette has quit [Ping timeout: 260 seconds]
[diecast] has joined #ruby
Eplemosen has joined #ruby
jakk has joined #ruby
daniel_-_ has quit [Ping timeout: 246 seconds]
tylerjones is now known as ghalsk
ghalsk has left #ruby [#ruby]
AlbireoX has joined #ruby
jgwong has joined #ruby
irleif has joined #ruby
senny has quit [Remote host closed the connection]
apok has quit [Ping timeout: 240 seconds]
<blazes816>
tylerjones: this one
<Muz>
Not that he stuck about to hear that.
maletor has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
philcrissman has joined #ruby
elico has quit [Ping timeout: 246 seconds]
seanwash has joined #ruby
DrShoggoth has joined #ruby
lggr has joined #ruby
slainer6_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
thunders_ has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
alfism has joined #ruby
thunderstrike has quit [Ping timeout: 256 seconds]
krawchyk has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
oldB has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
cantonic_ has joined #ruby
carlyle has quit [Remote host closed the connection]
oldB has quit [Client Quit]
mengu has joined #ruby
lggr has joined #ruby
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
<wrapids>
Could someone point me in the direction of a decent resource (the docs aren't cutting it) for adding an element to an existing xml document using nokogiri?
moted has joined #ruby
cj3kim has joined #ruby
irleif has joined #ruby
Keyboom has joined #ruby
_nitti has quit [Remote host closed the connection]
ken_barber has quit [Remote host closed the connection]
cj3kim has quit [Client Quit]
samphippen has quit [Quit: Computer has gone to sleep.]
<workmad3>
wrapids: coupled with the query capabilities to find the node you want
cousine has joined #ruby
_nitti has joined #ruby
ffranz has quit [Quit: Leaving]
g-ram has quit [Quit: Computer has gone to sleep.]
cousine has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
ffranz has joined #ruby
chrishunt has joined #ruby
Xeago has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
sent-hil has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
Jork1 has quit [Quit: Jork1]
leehambley has quit [Quit: leehambley]
Takehiro has quit [Remote host closed the connection]
Araxia has joined #ruby
lggr has joined #ruby
cj3kim has joined #ruby
elsifaka has quit [Quit: Veloma e!]
jhight has joined #ruby
<jhight>
hey guys -- what's the approach to debug ruby?
<Xeago>
ruby itself?
<Xeago>
gdb works
<jhight>
yep
<jhight>
ugh
<jhight>
seriously -- gdb?
<Xeago>
ruby is bare c
eldariof has quit []
abionic has joined #ruby
oldB has joined #ruby
ZenGuy has joined #ruby
zigomir has quit [Quit: Leaving]
lggr has quit [Ping timeout: 244 seconds]
zenformatics1 has quit [Quit: Leaving.]
philcrissman has quit [Remote host closed the connection]
cardoni has quit [Quit: cardoni]
oldB has quit [Client Quit]
<ZenGuy>
i'm running linux mint xfce and i'm trying to install xdcc-fetch with : sudo gem install XDCC-Fetch with dependency sudo apt-get install libfox
deadghost has joined #ruby
dbck has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
dbck has quit [Client Quit]
_nitti has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
<havenn>
ZenGuy: If change the 'require_gem' to just 'gem' it would prolly work, hrmm. Have you done a?: sudo gem update
<ZenGuy>
will do the update now .. don't know where to change that if the updaqte doesn't work
lggr has quit [Ping timeout: 240 seconds]
<ZenGuy>
nothing to update
ottbot has quit [Ping timeout: 240 seconds]
scx has joined #ruby
<havenn>
ZenGuy: What is your: ruby -v
bricker has joined #ruby
<ZenGuy>
ruby 1.8.7 patch level 352
khakimov has quit [Quit: Computer has gone to sleep.]
<booyakah>
Someone here told me yesterday about pry. What's the benefits with pry versus irb?
mrsolo has joined #ruby
<havenn>
ZenGuy: Ahh, yeah the current system ruby on Debian is all sorts of messed up. I'd recommend installing a modern Ruby with RVM or if you have a realllly recent Ubuntu: sudo apt-get install ruby1.9.3
jhight has quit [Quit: jhight]
baphled has quit [Ping timeout: 246 seconds]
<ZenGuy>
unning a apt-cache search .. linux mint based off of 12.04 xfce
lggr has joined #ruby
<ZenGuy>
installing now
Takehiro has joined #ruby
LouisGB has quit [Read error: Connection reset by peer]
<Vinz_>
Well, Ubuntu is not a good distro IMHO...
LouisGB has joined #ruby
<ZenGuy>
linux mint works well on my netbook .. i use pclinuxos on my desktop
LouisGB has quit [Read error: Connection reset by peer]
<Vinz_>
Mint is better
LouisGB has joined #ruby
ltsstar has joined #ruby
<Vinz_>
Even if it is based on Ubuntu
<DebianUT>
what's the difference?
<Vinz_>
But, a real good distro is one such as Arch or Gentoo
<Vinz_>
Even better is FreeBSD
<ZenGuy>
the last time i had ubuntu installed was 7.04 or 7.10
<Vinz_>
DebianUT: Mint is an Ubuntu, but with many improvements
<Tom2>
What GUI does FreeBSD use?
jrist is now known as jrist-gym
<DebianUT>
I know that
<DebianUT>
the improvements are
<DebianUT>
more drivers
<ZenGuy>
i tryied installing freebsd when i was 19 and ew at this 8 years ago .. couln't get pass the partition setup screen
<DebianUT>
more GUI options
<DebianUT>
but just that
<DebianUT>
the guts remain the same
<Vinz_>
Yup
<Vinz_>
But Mint > Ubuntu
<Vinz_>
And in fact
shevy has joined #ruby
<Vinz_>
Mint < All
<DebianUT>
For someone like me who is only interested in the guts
<DebianUT>
both are the same
<Virunga>
Vinz_: "Well, Ubuntu is not a good distro IMHO... ", why?
LouisGB has quit [Remote host closed the connection]
<DebianUT>
All I need is a console
<Vinz_>
Poor De integration
<Vinz_>
DE*
LouisGB has joined #ruby
<DebianUT>
ah
<DebianUT>
that's the problem
<Vinz_>
And many other reasons
LouisGB has quit [Read error: Connection reset by peer]
<DebianUT>
you care to much about DE
<DebianUT>
I don't
LouisGB has joined #ruby
<Vinz_>
But I don't feel like list all of them
<DebianUT>
I can do it fine just with XLDE
<Vinz_>
LXDE*
<DebianUT>
and a console
<Xeago>
what is DE/LXDE?
<Vinz_>
And I use Arch with just OpenBox
<Vinz_>
DE Desktop Environment
<Vinz_>
LXDE is on
<Vinz_>
one*
<Vinz_>
DebianUT: Err, I was using Openbox, now it's Awesome
ken_barber has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
<DebianUT>
Never tried it, but I will
<ZenGuy>
i installed ruby 1.9.3 but ruby -v still shows 1.8.7 .,.. wht gives?
<DebianUT>
I'm currently using Ubuntu 12.04 with GNOME Shell
<Vinz_>
ZenGuy: Try ruby1.9.3 -v
carloslopes has joined #ruby
<ZenGuy>
Vinz_: that wirks
<Vinz_>
:)
chrisramon has joined #ruby
rippa has joined #ruby
<ZenGuy>
do i have to purge or remove ruby1.8.7 ?
abionic has quit [Read error: No route to host]
sneakyness_wk has joined #ruby
answer_42 has quit [Remote host closed the connection]
abionic has joined #ruby
Jork1 has joined #ruby
<Tom2>
Anyone here know much about vim/emacs? I dont know which I should opt for
<Xeago>
whichever you prefer
irleif has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 240 seconds]
<ZenGuy>
ubuntu repo is huge compaed to pclinuxos .. like 3 times the size ,., much easier to solve dependency issues
<Tom2>
they both seem to require a fair bit of learning to get started so was just curious as to opinions
<Xeago>
therefore, whichever you prefer :)
<Xeago>
you'll only know afterwards
lggr has joined #ruby
<cout>
tom2: if you use emacs you have to grow a beard like richard stallman
yoklov has quit [Quit: computer sleeping]
<Vinz_>
DebianUT: And, Ubuntu is heavy, many conflicts with some packages, bloatware
<cout>
and you have to stop bathing too
ozette has joined #ruby
<Tom2>
Haha some good answers, thanks guys
<cout>
tom2: one important point to consider is that emacs is scripted with emacs lisp, while vim can be scripted with many different languages, including ruby
<Vinz_>
ZenGuy: But, do you need all the crap inside Ubuntu repo ?
<Vinz_>
Soooooooo much crap
answer_42 has joined #ruby
<ZenGuy>
try out software
<ZenGuy>
whats crap
<ZenGuy>
it's software
<chrisramon>
Hi, I am using Nokogiri, i have something like: var = doc.at_css('tr:nth-child(2) b').text , var is a text which has break lines, and the method at_css is replacing \n for "", how can i change the replacing behavior ???
irleif has joined #ruby
<Tom2>
cout: interesting, I didn't know that. thanks
slainer68 has joined #ruby
TomJ has quit [Quit: TomJ]
abionic has quit [Ping timeout: 244 seconds]
g-ram has joined #ruby
<chrisramon>
got it : var = doc.at_css('tr:nth-child(2) b').inner_html.gsub(/<br>/, ' ')
JonnieCache has quit [Ping timeout: 245 seconds]
notVert has quit [Remote host closed the connection]
jgarvey has joined #ruby
emmanuelux has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Targen_ has quit [Ping timeout: 246 seconds]
leehambley has joined #ruby
emmanuelux has quit [Client Quit]
<SegFaultAX|work>
Why would installing something via `gem install foo` be different from putting foo in your Gemfile? Assuming they both are using the same source.
abionic has joined #ruby
<Xeago>
the version mentioned
<SegFaultAX|work>
Xeago: I don't mention a version in the Gemfile.
knirhs has joined #ruby
<Xeago>
gem version, ruby version that pareses gemfile
<havenn>
SegFaultAX|work: If the application is using a Gemfile or a different Ruby.
<SegFaultAX|work>
The exact gem is Rubber. When I install it directly via gem install, it gets the latest version 2.1.1. Installing it via bundler/Gemfile causes it to install 2.0.4
<Xeago>
other dependency's used in gemfile
<Xeago>
no idea
<SegFaultAX|work>
That was it.
<SegFaultAX|work>
Fog was the conflict.
lggr has joined #ruby
jmampost has quit [Remote host closed the connection]
jamjam has joined #ruby
Araxia has joined #ruby
chrisramon has quit [Quit: chrisramon]
sgupta has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
emmanuelux has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
bradleyp_ has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
steakknife has quit [Ping timeout: 264 seconds]
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
futilegames has joined #ruby
tommyvyo has joined #ruby
bradleyp_ has quit [Ping timeout: 246 seconds]
bricker has quit [Quit: leaving]
hadees has quit [Quit: hadees]
bricker has joined #ruby
tommyvyo has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 245 seconds]
philcrissman has joined #ruby
lggr has joined #ruby
tommyvyo has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
<wrapids>
http://dpaste.org/UoMZ5/ <- Why is this not modifying the file? Shouldn't it be deleting the element "f"?
KindOne has quit [Ping timeout: 256 seconds]
darkc0met has quit [Ping timeout: 246 seconds]
zenformatics1 has quit [Quit: Leaving.]
tommyvyo has quit [Client Quit]
r1ddl3r has joined #ruby
wallerdev has quit [Quit: wallerdev]
<wrapids>
Huh
<wrapids>
It looks like it saves it in memory but not to the file... Is there a method to write it to the original file?
<ZenGuy>
xdcc-fetch won't run .. case sensitive XDCC-Fetch
voodoofish430 has joined #ruby
ledao has joined #ruby
kenneth has quit [Quit: kenneth]
knirhs has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 256 seconds]
<havenn>
wrapids: You are opening the file in read-only, try: File.open("1.xml", "w")
diegoviola has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
bluenemo has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
elico has joined #ruby
<ZenGuy>
havenn: are you talkign to me?
<havenn>
ZenGuy: Nope, to wrapids.
<ZenGuy>
k
mercwithamouth has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
bricker_ has joined #ruby
<havenn>
ZenGuy: If you get tired of banging your head on Ubuntu using 1.8 instead of your installed 1.9 (causing your error), an easy fix is: https://rvm.io
slainer68 has quit [Remote host closed the connection]
ndboost has joined #ruby
bluenemo has quit [Ping timeout: 246 seconds]
krawchyk has quit [Remote host closed the connection]
br4ndon has joined #ruby
kyb3r has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
<ndboost>
how can i ordinalize created_at from the db?
lggr has quit [Ping timeout: 245 seconds]
<ndboost>
figured it out
_nitti has quit [Remote host closed the connection]
lggr has joined #ruby
Takehiro has joined #ruby
Rovak has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
CodeFriar has quit [Quit: Leaving...]
verto is now known as verto|off
br4ndon has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 252 seconds]
geekbri has quit [Remote host closed the connection]
hsbt_away has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
CodeFriar has joined #ruby
mva3212 has quit [Read error: Connection reset by peer]
Keyboom has joined #ruby
mva3212 has joined #ruby
g-ram has joined #ruby
baroquebobcat has joined #ruby
robertotauille has joined #ruby
lggr has joined #ruby
_nitti has joined #ruby
wrapids has quit [Quit: Lost terminal]
postmodern has joined #ruby
_md has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
sent-hil has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
lggr has joined #ruby
JonnieCache has joined #ruby
<Paradox>
flotwig indeed
BigFatFatty has joined #ruby
Keyboom has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
RegEchse has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
lggr has quit [Ping timeout: 260 seconds]
doug has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<doug>
so, in order to not cut and paste this line, i'm wrapping it in: (1..3).each {...}
<doug>
there a slicker way to do that?
<doug>
like ... x 3 or something
JonnieCache has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
cj3kim has quit [Client Quit]
lggr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
stephh has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<blazes816>
doug: 3.times{ … }
_nitti has quit [Remote host closed the connection]
cj3kim has joined #ruby
robertotauille has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 246 seconds]
hunglin has joined #ruby
jenrzzz has joined #ruby
hunglin has left #ruby [#ruby]
hunglin has joined #ruby
hunglin has left #ruby [#ruby]
joofsh has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
sailias has quit [Quit: Leaving.]
Trioke has joined #ruby
Tearan has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
cardoni has quit [Quit: cardoni]
phoxpsh has joined #ruby
<doug>
blazes816++
<phoxpsh>
hi all. does anyone know how to emulate rails' acts_as pattern? I'd like to have a ruby class, include a module which then has an acts_as_something(opts={}) method
<blazes816>
acts_as_foo is just a class method that does something
lggr has quit [Ping timeout: 256 seconds]
<blazes816>
class MyClass; def self.acts_as_awesome; …; end; end
<asteve>
I'm getting a return from redis a key that's formatted like this: "{"price":1.0,"created_at":"Tuesday"}"; I thought I could read the value after created_at value by doing return_from_redis['created_at']
<asteve>
but the return I'm getting is literally "created_at"
<waxjar>
what's that tool called that lets you see all method calls that ruby makes?
jrist is now known as jrist-afk
lggr has joined #ruby
ilyam has joined #ruby
<blazes816>
phoxpsh: you want 'extend', instead of 'include', and since you're defining the method in a module, go ahead and skip the "self.". so it's just "def acts_as_something..."
bricker_ has quit [Quit: Lost terminal]
<phoxpsh>
blazes816: awesome! that works :) thanks
<blazes816>
np
<ilyam>
anyone know how to EXCLUDE a directory from being watched when using rerun?
bricker has joined #ruby
<ilyam>
i want **/*.rb EXCEPT one particular dir
nwertman has quit [Quit: nwertman]
<ilyam>
Alternatively, how to do that with Dir#glob
<jgrevich>
Is there some sort of trick to compiling assets when deployed to a suburi? I did set config.action_controller.relative_url_root = '/ust' in my production.rb
hsbt_away is now known as hsbt
vvgomes has joined #ruby
wedtm|away is now known as wedtm
<vvgomes>
any ideas on encrypting/decrypting sensible information?
Monie has quit [Ping timeout: 244 seconds]
ncr100_ has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 244 seconds]
hsbt has quit [Ping timeout: 260 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
irleif has joined #ruby
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
lggr has joined #ruby
ltsstar has quit [Quit: ltsstar]
wpaulson has joined #ruby
jamjam has quit [Ping timeout: 240 seconds]
cdzombak has quit []
cburyta has quit [Remote host closed the connection]
ctwiz has joined #ruby
<tos9>
⎋
syamajala has joined #ruby
cardoni has joined #ruby
ctwiz has quit [Client Quit]
Takehiro has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
c0rn_ has joined #ruby
thunderstrike has quit [Ping timeout: 240 seconds]
no_worries has quit [Remote host closed the connection]