monkegjinni has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
<cong>
open classing sounds better than monkey patching
<abstr4ct>
hahaha
<cong>
it's more clear
<abstr4ct>
i like monkey patching
<abstr4ct>
lol
<pontiki>
yeah, but monkey patching also gives it the negative connotation it probably deserves except for very explicit and useful cases
ryanf has joined #ruby
<pontiki>
it can be overused, leads to confusion, and can cause huge downstream maintenance issues
kayloos has quit [Ping timeout: 248 seconds]
<pontiki>
part of the "Ruby metaprogramming is really cool, but also dangerous"
<abstr4ct>
so then what is a example of how to use it once the patch has been created
choobie has joined #ruby
<pontiki>
that long confabulation up there, blahblah.innerhtml.my_method could give you all those gsubs
<abstr4ct>
hrm
<pontiki>
think about giving it a good name
<abstr4ct>
scrubbingbubbles
<abstr4ct>
?
<abstr4ct>
:P
<pontiki>
name collision can be a big problem with monkey patching
<abstr4ct>
yeah, i could see that
txdv has quit [Read error: Connection reset by peer]
<abstr4ct>
thankfully this is amature "for fun" stuff
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<pontiki>
then do it
<abstr4ct>
so no code base being polluted
<pontiki>
and see what you can break :)
<abstr4ct>
oh i am already try it.. hehe
jkhwan has quit [Ping timeout: 272 seconds]
txdv has joined #ruby
<abstr4ct>
well f me, it works great
Asher has quit [Read error: Connection timed out]
<abstr4ct>
i feel strangly empowerd and dirty at the same time... i need a beer
<abstr4ct>
empowered...
jenskarlsen has quit [Read error: Connection reset by peer]
jenskarlsen has joined #ruby
jerius has joined #ruby
jenskarlsen has left #ruby [#ruby]
<abstr4ct>
may i ask a dumb question? Why couldnt i have just created a Def function on my own without messing with the class string
Rylee has quit [Ping timeout: 248 seconds]
ambushsabre has quit [Quit: rip]
pierre1 has quit [Quit: Leaving]
<shevy>
wait
<shevy>
first you define methods
maletor has quit [Quit: Computer has gone to sleep.]
<shevy>
second you can define a method outside a class
Kabaka has quit [Ping timeout: 248 seconds]
<shevy>
but it will become some hidden method on class Object I believe
Asher has joined #ruby
sambao21 has joined #ruby
<shevy>
most of the time the two main reasons for defining a method I can see are (a) reusability (b) breaking code base into logical, functional components
croaky has joined #ruby
<abstr4ct>
gotcha...
choobie has quit [Quit: choobie]
burlyscudd has joined #ruby
<abstr4ct>
so why couldnt i have defined a method without messing with the string class
<toastynerd>
you for sure could, and it's probably the better option. In fact, you could create your own class and add a to_str method and it will work just like a regular string
horofox_ has joined #ruby
<abstr4ct>
what did you mean by "add a to_str method"
sambao21 has quit [Ping timeout: 245 seconds]
<toastynerd>
def to_str; @my_string; end
<pontiki>
abstr4ct: you most certainly could have done that
<abstr4ct>
hrm
<shevy>
abstr4ct there is more than one way to do it in ruby man :)
aspires has joined #ruby
<toastynerd>
it lets you use implicit conversions to string such as prints "MyClass: " + MyClass
Megtastique has joined #ruby
<pontiki>
since you were working with strings from innerhtml repeatedly, which is a string type, i figured munging a string over and over again would be served by a monkeypatch
<toastynerd>
monkey patching a core class is a really bad idea
<pontiki>
if you just define your own method, you end up with an imperative call, rather than a method call, on the string
<abstr4ct>
hehe
<pontiki>
which is okay
<shevy>
yeah
xpirator has joined #ruby
<shevy>
abstr4ct, "foo".bla is nicer than bla(foo)
<abstr4ct>
and i use it with .to_str
<pontiki>
if you create your own type, then you have to get the innerhtml into that type
<shevy>
in python you dont have much choice, in ruby you have
<pontiki>
which might be preferrable in many cases
<abstr4ct>
yeah, trying to obsorb this, but still not able to make the second way work...
<abstr4ct>
absorb
<shevy>
what is the second way
<pontiki>
see, there are *lots* of ways
<toastynerd>
yeah, to_str or to_s, to_s you have to explicitly call to_str you can use it like a string class
<abstr4ct>
the make my own class and use "to_str"
<abstr4ct>
so i have
<shevy>
class Abstr4ct; def to_str # here return what you want
<abstr4ct>
class Scrubbing; def to_str; @self.gsub("\u00BD", "½").gsub("\u00E9", "é").gsub......
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cephalostrum has joined #ruby
zz_karupanerura is now known as karupanerura
<abstr4ct>
yes it is...
<abstr4ct>
thats really what i am doing some small silly project to give me focus while i play with ruby
yasushi has joined #ruby
tkuchiki has joined #ruby
gverri has joined #ruby
speakingcode has joined #ruby
ambushsabre has joined #ruby
Jetchisel has joined #ruby
<pontiki>
cool
meatherly has joined #ruby
tectonic has joined #ruby
<shevy>
Cenx36 the rails guys are on #RubyOnRails
<Cenx36>
ok, thanks
yasushi has quit [Ping timeout: 260 seconds]
Cenx36 has left #ruby [#ruby]
IcyDragon has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
petey has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 276 seconds]
petey has joined #ruby
<cong>
setting STDOUT.binmode works both ways, so strange. not only can i print "Content-Type: text/plain\n\n" also print "Content-Type: text/plain\r\n\r\n". i think maybe the webserver is converted \n to \r\n.
jmeeuwen has joined #ruby
aspires has quit []
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
petey has quit [Ping timeout: 260 seconds]
Guest53562 has quit [Quit: Don't flap your BGP at me sonny]
burlyscudd has quit [Quit: Leaving.]
Olipro has joined #ruby
<pontiki>
some web servers do that
meatherly has quit [Remote host closed the connection]
<pontiki>
also, some browsers don't care
meatherly has joined #ruby
<pontiki>
while \r\n is the standard, most are p. happy to take \n
sambao21 has joined #ruby
hiall has quit [Quit: hiall]
predator217 has quit [Ping timeout: 246 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
fractastical has quit [Quit: fractastical]
ando has joined #ruby
predator117 has joined #ruby
yasushi has joined #ruby
vlad_starkov has joined #ruby
croaky has joined #ruby
skulker has joined #ruby
toastynerd has quit [Remote host closed the connection]
hiall has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
sambao21 has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
ahawkins_ has joined #ruby
jmo has quit [Quit: Lost terminal]
colonolGron has quit [Quit: leaving]
fschuindt has joined #ruby
fschuindt has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
blarghmatey_ has joined #ruby
ahawkins_ has quit [Ping timeout: 245 seconds]
_HolyCow1 has quit [Quit: Leaving.]
jkhwan has joined #ruby
tedstriker has joined #ruby
butblack has quit [Quit: butblack]
petey has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
ahawkins has quit [Quit: leaving]
yasushi has quit [Remote host closed the connection]
croaky has quit [Ping timeout: 246 seconds]
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
phipes has joined #ruby
ando has quit [Ping timeout: 260 seconds]
<Deele>
hello
<Deele>
could you explain one thing
<Deele>
when I have definition
<Deele>
def test
<Deele>
puts 'test'
<Deele>
end
<Deele>
and I create new one with
<Deele>
def save(test)
<Deele>
test
<Deele>
end
<Deele>
what will I call there? how do I make sure, my new local variable does not overwrite previously defined function
skulker has quit [Remote host closed the connection]
soba has joined #ruby
switchspan has quit [Client Quit]
<cong>
you can call it with or without an argument
<cong>
test || test "arg"
Notte has joined #ruby
<havenwood>
Deele: Also in actual code outside top level you don't have local variables colliding with arguments because you use instance variables.
<Deele>
cong, the question was more about - ruby allows to call functions without braces that means, test could be call to function or variable definition
<havenwood>
rdevilla: I think it depends on how simple of an auth you want and how much you understand as to whether it's wise to roll your own.
skulker has joined #ruby
dapz has joined #ruby
Brolen has joined #ruby
Kabaka has joined #ruby
skulker has quit [Client Quit]
meatherly has quit [Ping timeout: 265 seconds]
<cong>
deele, oh. i skipped that class.
<havenwood>
Deele: The argument will always overwrite, local vars overwrite other local vars - but it is a scoping problem solved by using classes and modules.
vlad_starkov has joined #ruby
<Deele>
havenwood, ok, within a class, if I call just "test", it will call "test" instance method, yes?
gverri has joined #ruby
tectonic has quit []
<havenwood>
Deele: well.. don't name your argument after a method you'll be calling
<Deele>
ok :)
<Deele>
I'm coming from PHP, that is why $variable $this->variable and self::variable I understand better than plain and simple way, like it is in ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<purpleidea>
i'm running `cd foo && make && cd foo` in a ruby file. how can i silence the make output noise?
<purpleidea>
(that i see on stdout)
meatherly has joined #ruby
geggam has quit [Ping timeout: 246 seconds]
geggam has joined #ruby
<pontiki>
make > /dev/null works
apeiros_ has quit [Remote host closed the connection]
<pontiki>
is there really a foo directory under your foo directory?
apeiros has joined #ruby
tectonic has joined #ruby
LulzonAway is now known as Lulzon
hexus0 has joined #ruby
meatherly has quit [Ping timeout: 246 seconds]
w4pm has joined #ruby
joast has quit [Quit: Leaving.]
Zhwazi- is now known as Zhwazi
Zhwazi has quit [Changing host]
Zhwazi has joined #ruby
aspires has quit []
<shevy>
detective pontiki wants to know it all
<pontiki>
i do!
<shevy>
Deele did php condition you to prefer complicated syntax? :)
<pontiki>
i suppose you are all wondering why i've gathered you here this evening
<shevy>
because if so, let's discuss namespaces in php!
<pontiki>
one of you is the murderer!
<Deele>
I have not yet understood namespaces in php...
<pontiki>
nor i
<shevy>
namespace foo; class Cat {
apeiros has quit [Ping timeout: 260 seconds]
<shevy>
use foo as feline;
<shevy>
echo \feline\Cat::says(), "<br />\n";
<shevy>
AWESOME
<shevy>
the cat says something here
<shevy>
and we even redeclared the namespace!
aspires has joined #ruby
<shevy>
now if that isn't a killer feature I don't know what else is
<shevy>
ruby does not have real namespaces :(
<shevy>
you could use both module Foo; class Cat ... or class Foo; class Cat
<shevy>
I'm gonna suggest to use the awesome \ for namespaces in ruby
<shevy>
brb
pskosinski_ is now known as pskosinski
w4pm has quit [Ping timeout: 248 seconds]
kellsn_ has joined #ruby
tectonic has quit []
Fabrizio has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 276 seconds]
<Deele>
how do I make sure I access class instance method, instead of global method?
<pontiki>
wat?
joast has joined #ruby
<Deele>
I just want to make sure
<pontiki>
i don't even understand the question
<pontiki>
what class?
<Deele>
I'm trying to understand class structure in ruby
<Deele>
and before, I used $this->test() to access instance method
IceDragon_ has joined #ruby
<pontiki>
wattt????
<Deele>
in PHP
<pontiki>
that's not ruby syntax
<Deele>
but now, I need to use "test()" or even "test"
<Deele>
and that confuses me
<pontiki>
methods are called on objects using dot notation
dh64 has joined #ruby
<Deele>
that is, when I want to call instance method from within another instance method
<pontiki>
class MyClass; def method1; "hi there"; end; end
mehlah has quit [Ping timeout: 252 seconds]
<pontiki>
my_var = MyClass.new
<pontiki>
my_var.method1
<Deele>
yes
<pontiki>
yeilds "hi there"
<pontiki>
what do you mean "yes"?
<Xeago>
what I think Deele means
fijimunk1i has quit [Ping timeout: 276 seconds]
<Xeago>
he wants to distinguish def self.method; end, from def method; end
<pontiki>
ok?
geggam has quit [Quit: later]
<pontiki>
i'm not sure at all
<pontiki>
given the last thing you said, Deele;
<havenwood>
Deele: In Ruby you *can* shoot your eye out. But don't!
<Xeago>
you can access the method by its fully qualified name, Class.method
yano has joined #ruby
<pontiki>
class MyClass; def method1; "hi there" ; end; def method2; method1 + " you goofball" ; end ; end
<pontiki>
my_var = MyClass.new
<pontiki>
my_var.method2 #=> "hi there you goofball"
<Xeago>
class C; def self.m; new.m; end; def m; puts "m"; end; end; C.m
<Xeago>
>> class C; def self.m; new.m; end; def m; puts "m"; end; end; C.m
IcyDragon has quit [Ping timeout: 276 seconds]
<Xeago>
>> hi evalin
<pontiki>
Xeago: this is what i saw Deele just ask: "I want to call instance method from within another instance method
<Xeago>
where did eval-in go?
<pontiki>
"
<pontiki>
he's dead, jim
<pontiki>
the site is there, but somehow the bot keeps dying
<pontiki>
first step in coming to ruby from php: forget EVERYTHING you learned about OOP in php
<havenwood>
lethjakman: A lang on top of venerable Erlang VM written by a Rubyist
<lethjakman>
interesting, I might play with it.
<havenwood>
The langs I've seen Rubyists dabbling in most lately are Clojure, Scheme, Go and Elixir. Rubyists further establishing trade routes with other vibrant languages could really enrich Ruby I think.
MatthewsFace has quit [Quit: This computer has gone to sleep]
<pontiki>
you know what i would love?
<pontiki>
an audio version of "Confident Ruby" read by Avdi
brian___ has quit [Quit: brian___]
<pontiki>
i'd be listening to that all night long <3<3<3
<pontiki>
gods i hope he isn't in this channel...
<havenwood>
pontiki: i haven't read it, but i'd buy the audio version ;0
subbyyy has joined #ruby
krz has joined #ruby
<havenwood>
pontiki: always nice to have something to listen to
subbyyy_ has quit [Ping timeout: 260 seconds]
<havenwood>
i don't quite get the Go interest, other than that go routines/channels are a nice pattern
<havenwood>
i guess the SeattleRB guys have been doing a bunch of Chicken Scheme lately
<havenwood>
pontiki: Avdi i think mentioned thinking of switching from Elixir to Clojure for his non-Ruby hobby lang
mneorr has joined #ruby
<havenwood>
To JVM or not to JVM that is the question.
<havenwood>
with clojure/scheme it seems
<havenwood>
<3 Ruby
kellsn has quit [Remote host closed the connection]
flame_ has quit [Quit: Computer has gone to sleep.]
gja has quit [Quit: This computer has gone to sleep]
lewix has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 260 seconds]
mzemel has quit [Client Quit]
lkba has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
jailbot has joined #ruby
<jailbot>
hey
danshultz has joined #ruby
h_kon has joined #ruby
jailbot has left #ruby [#ruby]
amundj has joined #ruby
w4pm has quit [Ping timeout: 248 seconds]
yarou_ has quit [Quit: This computer has gone to sleep]
browndawg has joined #ruby
kotk has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
camilasan has joined #ruby
apeiros has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
amundj has quit [Ping timeout: 265 seconds]
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahawkins has joined #ruby
deepender has quit [Ping timeout: 260 seconds]
pen has joined #ruby
xdrone has joined #ruby
fractastical has quit [Quit: fractastical]
ahawkins has quit [Read error: Operation timed out]
browndawg has quit [Read error: Connection reset by peer]
gja has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
eka has joined #ruby
relix has joined #ruby
emocakes has joined #ruby
jkhwan has joined #ruby
gja has quit [Client Quit]
krz has quit [Ping timeout: 248 seconds]
Kabaka has joined #ruby
krz has joined #ruby
rankine has joined #ruby
rankine has quit [Changing host]
rankine has joined #ruby
maroloccio has joined #ruby
dima_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
tedstriker has quit [Quit: Anti-Fraping status set.]
jkhwan has quit [Ping timeout: 272 seconds]
Mars has joined #ruby
Mars is now known as Guest67461
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
tedstriker has joined #ruby
w4pm has joined #ruby
troyready has quit [Ping timeout: 276 seconds]
aganov has joined #ruby
Guest67461 has quit [Ping timeout: 265 seconds]
nus1 has joined #ruby
browndawg has joined #ruby
w4pm has quit [Ping timeout: 276 seconds]
w4pm has joined #ruby
bigkevmcd has joined #ruby
Waheed has joined #ruby
mgolisch has quit [Quit: No Ping reply in 180 seconds.]
Kabaka has quit [Ping timeout: 265 seconds]
mgolisch has joined #ruby
zigomir has joined #ruby
dima_ has quit [Remote host closed the connection]
klaut has joined #ruby
codenapper has joined #ruby
charliesome has joined #ruby
timmaa has joined #ruby
Rylee has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
SeySayux_ has quit [Ping timeout: 272 seconds]
<timmaa>
any of u guy know what the args for the class File.expand_path('../tor, __FILE__') are supposed to be? im using tor with mechanize for a web scraping application and am not sure what in the tutorial im following thesea args are referring to
phansch has quit [Quit: Leaving]
Fabrizio has joined #ruby
CripperZ is now known as N00D
camilasan has quit [Ping timeout: 260 seconds]
dagobah has joined #ruby
SeySayux has joined #ruby
snath has quit [Ping timeout: 272 seconds]
Fabrizio has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
marr has joined #ruby
marr is now known as Guest8968
Vivekananda has quit [Read error: Connection reset by peer]
Guest8968 is now known as dmarr
rankine has quit [Ping timeout: 246 seconds]
brunops has quit [Ping timeout: 264 seconds]
Rylee has quit [Ping timeout: 264 seconds]
shedd has joined #ruby
<ayaz>
timmaa: Are you sure it is File.expand_path('../tor, __FILE__') and not File.expand_path('../tor', '__FILE__')?
mityaz has joined #ruby
<ayaz>
timmaa: The first argument to that function is the pathname you wish to resolve to an absolute pathname. The second argument is optional, and if it is present, it is used as the base path when resolving the relative pathname.
<ayaz>
Sorry, that should be File.expand_path('../tor', __FILE__)
Hanmac1 has joined #ruby
Ocean has joined #ruby
Ocean has quit [Client Quit]
<timmaa>
it is the second one, thanks for your help man i appreciate it
gja has quit [Quit: This computer has gone to sleep]
Hanmac has quit [Ping timeout: 276 seconds]
shedd has quit [Ping timeout: 260 seconds]
maveonair has joined #ruby
zigomir has quit [Remote host closed the connection]
xiphias has joined #ruby
alol has joined #ruby
ckrailo_ has joined #ruby
justinmcp has joined #ruby
utkarsh has joined #ruby
LBRapid has joined #ruby
kapowaz has joined #ruby
ConstantineXVI has joined #ruby
bedouin has joined #ruby
dioms_ has joined #ruby
ddv has joined #ruby
Jakee` has joined #ruby
RKornmeyer_ has joined #ruby
rurban has joined #ruby
kenichi has joined #ruby
frode15243 has joined #ruby
shaileshg____ has joined #ruby
drPoggs has joined #ruby
artgoeshere has joined #ruby
aspiers_ has joined #ruby
Nightmare has joined #ruby
adambeynon has joined #ruby
blooberr_ has joined #ruby
mattyohe has joined #ruby
Mars has joined #ruby
mjmac has joined #ruby
Paradox has joined #ruby
zz_jrhorn424 has joined #ruby
flagg0204 has joined #ruby
dziga has joined #ruby
sophomorical has joined #ruby
hoelzro has joined #ruby
frem has joined #ruby
Dwarf has joined #ruby
seich- has joined #ruby
andrewstewart has joined #ruby
poikon has joined #ruby
aetaric has joined #ruby
DarkFoxDK has joined #ruby
Sthebig has joined #ruby
blo has joined #ruby
mbff has joined #ruby
timmaa has quit [Excess Flood]
sharms has joined #ruby
zigomir has joined #ruby
Dwarf has quit [Max SendQ exceeded]
Sthebig has quit [Changing host]
Sthebig has joined #ruby
frode15243 is now known as Guest60081
Mars is now known as Guest45968
Dwarf has joined #ruby
psyprus has joined #ruby
Guest45968 has quit [Remote host closed the connection]
dmarr has quit [Quit: Goodbye]
dmarr has joined #ruby
idoru has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
zigomir has quit [Ping timeout: 264 seconds]
nomadic has quit [Ping timeout: 272 seconds]
nomadic has joined #ruby
danshultz has joined #ruby
gja has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ahmedelgabri has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
gja has quit [Client Quit]
derebos has joined #ruby
porco_ has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
porco has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
ahawkins has joined #ruby
Sid05 has joined #ruby
Rylee has joined #ruby
Waheed has quit [Quit: Waheed]
CpuID has quit [Ping timeout: 264 seconds]
Kabaka has joined #ruby
dmarr has quit [Quit: Goodbye]
Liothen has quit [Ping timeout: 272 seconds]
marr has joined #ruby
marr is now known as Guest9539
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
ahawkins has quit [Ping timeout: 248 seconds]
zigomir has joined #ruby
jgrevich has quit [Quit: jgrevich]
deepender has joined #ruby
Guest9539 has quit [Client Quit]
dmarr has joined #ruby
zxd has joined #ruby
noname001__ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
xdrone has quit [Ping timeout: 240 seconds]
maveonair has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhwan has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby
renklaf has joined #ruby
joshwines_ has quit []
joshwines_ has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
maveonair has joined #ruby
mengu has joined #ruby
joshwines_ is now known as joshwines
speakingcode has quit [Ping timeout: 264 seconds]
tedstriker has joined #ruby
DefV_ is now known as DefV
troessner has joined #ruby
predator117 has joined #ruby
Beoran__ has joined #ruby
threesome has joined #ruby
phipes has quit [Remote host closed the connection]
dmarr has quit [Quit: Goodbye]
razibog has joined #ruby
dmarr has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kayloos has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Beoran_ has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deepender has quit [Read error: Operation timed out]
ace_striker has quit [Ping timeout: 272 seconds]
maroloccio has quit [Read error: Connection reset by peer]
Landshark753 has joined #ruby
gregorg has quit [Remote host closed the connection]
brunto_ is now known as brunto
brunto has quit [Changing host]
brunto has joined #ruby
pen has quit [Read error: Connection reset by peer]
lsmola_ has joined #ruby
pen has joined #ruby
Kar- has joined #ruby
Landshark753 has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
dmarr has quit [Quit: Goodbye]
camilasan has joined #ruby
dmarr has joined #ruby
Kar- has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
emocakes has quit [Quit: Leaving...]
troyready has joined #ruby
polysics has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
tedstriker has quit [Quit: I have grown tired of your feeble excuses]
razibog has quit [Ping timeout: 245 seconds]
emocakes has joined #ruby
bigbadbear has joined #ruby
heftig has joined #ruby
razibog has joined #ruby
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjaco has joined #ruby
gja has joined #ruby
L8D has quit [Ping timeout: 272 seconds]
mehlah has joined #ruby
bigbadbear has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
deepender has joined #ruby
shedd has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
porco_ has joined #ruby
porco has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
nvrch has joined #ruby
petey has joined #ruby
chihhsin has quit [Read error: Connection reset by peer]
shedd has quit [Ping timeout: 246 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
zxq9 has quit [Read error: Connection reset by peer]
wildroman2 has quit [Ping timeout: 248 seconds]
petey has quit [Ping timeout: 265 seconds]
sinm has joined #ruby
zxq9 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
chihhsin has joined #ruby
vlad_starkov has joined #ruby
dukz has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
foooobear has joined #ruby
danshultz has joined #ruby
Colin128 has joined #ruby
<Colin128>
hello. is anyone familiar with using watir and/or html parsers?
troyready has quit [Ping timeout: 260 seconds]
Yan__ has joined #ruby
MartynKeigher has quit [Remote host closed the connection]
CpuID has joined #ruby
apeiros has joined #ruby
Colin128 has quit [Client Quit]
timonv has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
kayloos has joined #ruby
toastynerd has quit [Remote host closed the connection]
ahawkins has joined #ruby
olivier_bK has joined #ruby
chiel_ is now known as chiel
tvw has joined #ruby
maveonair has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has quit [Remote host closed the connection]
<zxd>
when would I use "string" and when :string, in this example they did override_attributes "apache2" => { "max_children" => "50" } and then override_attributes( :apache2 => {
<tobiasvl>
symbols are immutable and therefore better suited as hash keys
<pontiki>
it's kind of a legit question when you see both being used
<tobiasvl>
yes, but i think the question rather should be why they chose strings in the first example :)
shaunbak_ has quit [Remote host closed the connection]
<pontiki>
perhaps that is what zxd is on about :)
mojjojo has quit [Client Quit]
shedd has joined #ruby
workmad3 has quit [Quit: Reconnecting]
rickruby has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
mojjojo has joined #ruby
MindfulMonk has quit [Quit: Leaving]
petey has joined #ruby
Mars has joined #ruby
h_kon has quit [Remote host closed the connection]
Mars is now known as Guest35349
m-o-s_ has joined #ruby
shime has joined #ruby
h_kon has joined #ruby
iMe has joined #ruby
mojjojo has quit [Client Quit]
shaunbaker has joined #ruby
shedd has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
timonv has quit [Remote host closed the connection]
m-o-s has quit [Ping timeout: 276 seconds]
petey has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
Guest35349 has quit [Ping timeout: 240 seconds]
nannes has joined #ruby
m-o-s_ has quit [Ping timeout: 240 seconds]
clocKwize_ is now known as clocKwize
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
arietis has joined #ruby
vlad_starkov has joined #ruby
krz has quit [Ping timeout: 265 seconds]
ctp has joined #ruby
krz has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
dukz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
deepender has joined #ruby
danshultz has joined #ruby
<Takumo>
Rake question, I've got a Rake::FileList which has .include "**/*" and then .exclude "./packages/**/*" but still ./packages/**/* is included...
<ctp>
hi folks. a regex question :) how can i inject a language code, e.g. 'en' into this string: http://localhost:3000/foo/bar should be http://localhost:3000/en/foo/bar. I'm already checking if a language code is present in the url via Regexp.new(':\/\/[^/]+/(en|fr|es)\/') but have some trouble to rewrite the string if it's missing
fella5s has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
<ctp>
tobiasvl: hm, "SyntaxError: (irb):45: premature end of char-class: /:\/\/[^/"
nhhagen has quit [Remote host closed the connection]
<tobiasvl>
yeah, needs to be escaped
ahawkins has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
m-o-s has quit [Ping timeout: 260 seconds]
rdark has joined #ruby
Jetchisel has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<ctp>
tobiasvl: hm, my intention in general is to insert a "en/" after the first occurance of a single /. http://localhost:3000/foo -> http://localhost:3000/en/foo. the point is the _first_ occurance of a _single_ slash in regex :(
<workmad3>
charliesome: that sounds like every IRC bot everywhere... ;)
timonv has quit [Remote host closed the connection]
<ctp>
ok, i tried that one: "http://localhost:3000/foo/bar".sub(Regexp.new(':\/\/[^\/]+\/(.*?)\/'), '/en/\1/') and am closer to what i want, but the matched part is cut off. what's the trick? :)
<pontiki>
rewritten or abandoned :)
carraroj has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<charliesome>
maybe i should write a second bot that monitors the channel for >>
<pontiki>
ctp, really, do follow workmad3's advice there; you'll be much happier knowing someone else spent a long long time working out regex's
<charliesome>
and restarts the main bot if it doesn't respond
<charliesome>
lol
<ctp>
workmad3: but the uri seems nicer :)
<ctp>
thanks
malcolmva has quit [Ping timeout: 246 seconds]
xerxas has joined #ruby
<workmad3>
ctp: you're dealing with URIs... which means that you're really looking @ 4 different sets of rules
<ctp>
yepp, i see
<workmad3>
ctp: the scheme, the host, the path, the query string and the fragment :)
m-o-s_ has quit [Ping timeout: 276 seconds]
<workmad3>
and even worse... each one has different allowable character sets...
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
so you'd basically want to do uri.split(":", 1).last.split("/").last.split("?").first <-- there's your path... or use the URI :)
Brolen has joined #ruby
EngierkO has joined #ruby
<workmad3>
oh wait... .split("://", 1).last ...
<ddd>
pontiki sure! I've a couple back discs i need removed, and a couple knees replaced. have at it! :)
eka has joined #ruby
matled has quit [Remote host closed the connection]
matled has joined #ruby
mikecmpbll has joined #ruby
<pontiki>
take a dive into the URI code, esp URI::REGEX::PATTERN -- those things are beautiful monsters
timonv has quit [Ping timeout: 276 seconds]
<workmad3>
ddd: I could remove those back disks by the most direct method, which would also solve your knee replacement issue...
monkegjinni has joined #ruby
<ddd>
workmad3 hey now we're talkin!
<pontiki>
workmad3: but *i* got the christmas bonesaw! :P
<pontiki>
oooo brain-inna-jar
<workmad3>
pontiki: oh... you were going to use a saw? lightweight :P
jibi has quit [Read error: Connection reset by peer]
* ddd
gulps and wonders if dedication to the advancement of science is really a worthy cause
<workmad3>
hehe
<workmad3>
you think this would be scientific advancement?
lyanchih has joined #ruby
psyl0n has quit []
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
<ddd>
workmad3 MY brain? hells yeah! Psychology alone would probably get a few answers out of this!
gregoriokusowski has joined #ruby
CaptainKnots has quit [Ping timeout: 260 seconds]
<workmad3>
ddd: oh... I was just gonna tear you apart above the disks that need replacing...
<ddd>
now, as for the knees or back, no. that would be butcher chops :)
<ddd>
workmad3 oh sure.. i see how it is. destroy the *good* tissue
<ddd>
sheesh
maveonair has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
ddd: you sometimes need to cut/rip into good tissue to get rid of all the bad :P
<ddd>
you're missing a keyword there. m i n i m a l l y
<workmad3>
pfft
<workmad3>
that sounds like *way* too much effort :P
<ddd>
hah!
<ddd>
now i see why you chose programming over doctoring!
<ddd>
at least the programs don't scream as loud!
<workmad3>
that's what you think
<workmad3>
I program sentient AI into all my apps so that they can feel every line deletion...
jamesaanderson has joined #ruby
ewnd9 has quit [Remote host closed the connection]
pedda has joined #ruby
figgleberry has joined #ruby
* workmad3
wonders if that will be the true cause of a future robot uprising... the 'torture' of having source code edited
<workmad3>
ddd: I blame the coders who created AI that felt source code changes as pain
<pontiki>
let's keep those AIs a subordinate underclass
<pontiki>
if they can't feel pain, they can't be people
<ddd>
i'll 2nd that
<workmad3>
although I guess it would be a way to control an AI attempting to bootstrap itself to omniscience...
<pontiki>
c.f. cows
<ddd>
and workmad3 away from bonesaws
Guest11228 has quit []
malcolmva has joined #ruby
jibi has joined #ruby
RTG` has joined #ruby
gasbakid has quit [Ping timeout: 246 seconds]
Xiti has quit [Read error: Connection reset by peer]
Wolland_ has quit []
yjmsf20 has joined #ruby
Xiti has joined #ruby
<workmad3>
ddd: my previous work colleages would want to add knives and sharp implements in general to that list...
nhhagen has joined #ruby
<ddd>
if your proposed help is any indication, i think i see both a pattern emerging, and the reason why! ;)
* pontiki
looks forlornly at her christmas bonesaw
<pontiki>
it still has the festive bow onnit and everything
camilasan has quit [Remote host closed the connection]
<pontiki>
maybe i should use it to parse URIs instead
* workmad3
imagines a
* workmad3
imagines a NAND gate made out of bonesaws
OdNairy has joined #ruby
dev1x has joined #ruby
<pontiki>
oh, but remember in Voyager, the MAI did his own reprogramming?
<workmad3>
can you tell that I spent the holidays playing games rather than typing? :)
jibi has quit [Ping timeout: 240 seconds]
<ddd>
hah
<pontiki>
self-surgery that doesn't hurt
<ddd>
pontiki i'm sure workmad3 wouldn't mind if you practice a bit on him *before* you get to me.
<workmad3>
pontiki: yes, because *star trek* is such a great source for the capabilites of AI bayesian super-intelligences?
<pontiki>
watta concept!
<ddd>
don't worry. i'll wait
<pontiki>
hey, they can have Heisenberg Compensators!
kayloos has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
<workmad3>
pontiki: gotta wonder what it compensates :P
<ddd>
and travelers!
<ddd>
for free!
<ddd>
workmad3 its a heisenburg! thats all we need to know!
<pontiki>
it compensates for the Heisenberg Principle, of course! So you can actually know both where matter is, and how fast it's going, so you can transport it!
<workmad3>
pontiki: also, if they can compensate that, why aren't they using this knowledge to power their ships with maxwell demons inside a cup of water, rather than dangerous anti-matter?
<ddd>
mor ebang for their buck
<pontiki>
well, what do you think anitmatter is *made* of????
kayloos has joined #ruby
<ddd>
dark matter!
DouweM has joined #ruby
<ddd>
i knew that one!
<pontiki>
demons!!
kayloos has quit [Remote host closed the connection]
<workmad3>
ddd: wrong :P
<ddd>
damn
<workmad3>
ddd: do you know what a maxwell demon is?
<ddd>
hey when antimatter blows up, it takes out everything., its gonna be hella dark!
<apeiros>
a daemon which hits poor people with a silver hammer?
<ddd>
so I'm right!
<pontiki>
c.f.: Sagan, "A Demon-Haunted World"
<workmad3>
apeiros: hehe :)
<ddd>
yeah yeah i know 2nd law of thermo dynamics, yada yad ayada
<apeiros>
you know the first law of thermo dynamics?
<pontiki>
THERE IS NO THERMO DYNAMIC
<workmad3>
apeiros: you don't talk about thermo dynamics!
<apeiros>
!
<apeiros>
:D
<ddd>
:)
<ddd>
and workmad3 thought I wouldn't know anything. sheesh
Al__ has joined #ruby
<workmad3>
apeiros: that's in the famous reformulation of thermo dynamics into it's cult, underground 4 law version...
<workmad3>
*its
<workmad3>
ddd: I was more curious ;)
kayloos has joined #ruby
<ddd>
hehe
<workmad3>
ddd: if I wanted to demonstrate a lack of knowledge, I'd have picked something not so easily googleable :P
blackmesa has joined #ruby
wlanboy_ has quit [Changing host]
wlanboy_ has joined #ruby
<ddd>
oh geez
h_kon has quit [Remote host closed the connection]
<ddd>
everything is pretty easliy googable ;)
<ddd>
except my penchant for typos
<apeiros>
the quasinondurum isn't
* ddd
blinks
<apeiros>
you'll not find a google result for it!
wlanboy_ is now known as wlanboy
<ddd>
ok, existing items are fairly easily googeable ;)
toastynerd has joined #ruby
<apeiros>
bah, random restrictions are random
<ddd>
like my typos
<ddd>
heh
max96at has joined #ruby
* apeiros
goes powernap (2h of sleep is not enough for the first work day after 4w of holiday)
<ddd>
workmad3 off pouring thorugh his books to find something i can't google i'll wager ;)
<workmad3>
ddd: nah, just sitting here considering things ;)
<ddd>
hehe
<workmad3>
ddd: and discarding the obvious trite answers....
<workmad3>
ddd: and your mum jokes...
<ddd>
oooo, did i jus tget zinged without being zapped?
flame_ has joined #ruby
<workmad3>
err, if you did, it was unintentional...
Mars has joined #ruby
Macaveli has quit [Ping timeout: 276 seconds]
<ddd>
now see, you got me all flustered. for once i happened to know something of consequence, and i can't prove i didn't google it. you suck!
Mars is now known as Guest34382
<ddd>
thats it. i'm taking my ball and goin home
gja has quit [Ping timeout: 240 seconds]
<workmad3>
ddd: ok, how about the epistemological implications of quantum mechanics wrt the demonstrable identical nature of subatomic quantum particles?
* workmad3
now checks google
klaut has joined #ruby
<ddd>
now there's a cut and paste to google if i ever saw one!
Macaveli has joined #ruby
<workmad3>
:)
<ddd>
COSMIC CONSCIOUSNESS!
toastynerd has quit [Ping timeout: 264 seconds]
alexherbo2 has joined #ruby
<workmad3>
ddd: ok, now discard the hokum and pseudo-science ;)
<ddd>
shit
m-o-s has joined #ruby
<workmad3>
hehe
eka has quit [Quit: Computer has gone to sleep.]
<pontiki>
you pulling from lolmythesis?
Killa has quit [Ping timeout: 272 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Killa has joined #ruby
<workmad3>
pontiki: no... that was entirely the product of my own brain
m-o-s has quit [Client Quit]
Guest34382 has quit [Ping timeout: 240 seconds]
mzemel has joined #ruby
gja has joined #ruby
<workmad3>
pontiki: I was aiming for a question that could be googled, as long as you knew roughly what the answer was anyway :)
<ddd>
hah@! the fact he has a url to back the question up .. oy vey!
diegoviola has joined #ruby
<workmad3>
ddd: what can I say? I'm an insufferable smart-ass that you'd probably want to punch in the mount in real life!
<lewellyn>
workmad3: that's hard to read, honestly :P
<ddd>
ok, reading this article and all i keep thinking is.. sasquatch!
maroloccio has quit [Ping timeout: 245 seconds]
danshultz has quit [Read error: Connection reset by peer]
<workmad3>
lewellyn: yeah, it's the middle of a sequence
<ddd>
there's your epiphenomenal aspect! a sasquatch!
<lewellyn>
no, i mean that the writing sucks ;)
danshultz has joined #ruby
claymore has quit [Quit: Leaving]
<workmad3>
lewellyn: heh :) I didn't have a problem with that
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JuanDaugherty has joined #ruby
nari has joined #ruby
jibi has joined #ruby
<workmad3>
ddd: epiphenomena != epistemology
shime has quit [Ping timeout: 264 seconds]
<workmad3>
ddd: also, bigfoot isn't an epiphenomena
ckinni has joined #ruby
<ddd>
iw as more referring to the particular statement.
dukz has quit [Remote host closed the connection]
<ddd>
Some philosophers will argue over whether an epiphenomenal aspect can be truly real, but just because we can't legitimately know about something's existence doesn't mean it's not there.
<ddd>
read that and said .. Bigfoot (actually said sasquach but hey)
ckinni has quit [Client Quit]
Gonzih has joined #ruby
<pontiki>
hmm, i found it eminently readable
dukz has joined #ruby
Sid05 has quit [Ping timeout: 264 seconds]
<ddd>
i'm not physics trained and even i can understand this
<workmad3>
ddd: an epiphenomenal aspect is an aspect that *cannot* be observed
fixl has quit [Remote host closed the connection]
<pontiki>
(demond)
<workmad3>
ddd: bigfoot is something that could be empirically established
<workmad3>
ddd: while an epiphenomena is something that specifically cannot be empirically established
<pontiki>
s/d)/s)/
<ddd>
ok, so we're back to god
<popl>
This conversation is thrilling, but what's it got to do with Ruby?
<lewellyn>
i think the goal is to determine if ruby is equivalent to another language or something.
ahawkins has joined #ruby
<ddd>
that we can't use ruby to specifically and empirically establish that workmad3 has met god
<workmad3>
lewellyn: hehe :) you bullshitted your way to a link quicker than I did :)
<ddd>
there
Guest64802 has joined #ruby
<popl>
Ask Turing.
Guest64802 has quit [Changing host]
Guest64802 has joined #ruby
mclee has quit [Quit: WeeChat 0.4.1]
<workmad3>
ddd: the 'zombie consciousness' stuff is possibly a better example than god... after all, god should have empirically verifiable consequences (e.g. miracles, smiting, flooding, etc.)
diegoviola has quit [Ping timeout: 240 seconds]
Guest64802 is now known as diegoviola
felixjet_ has quit [Ping timeout: 272 seconds]
mclee has joined #ruby
<ddd>
but we see those
popl has left #ruby [#ruby]
CaptainQuirk has joined #ruby
<ddd>
but its not empirical evidence he exists. only that there's a likelihood
<CaptainQuirk>
Hi there !
jkhwan has joined #ruby
<CaptainQuirk>
I'm trying to use bundler to execute a gem I'm trying to build with « gli »
Sid05 has joined #ruby
<CaptainQuirk>
I get an error when doing bundler exec
<CaptainQuirk>
I guess It's a problem of ruby version installed
<workmad3>
ddd: all empirical evidence is merely increasing the likelihood that a stated hypothesis is correct :)
threesome has joined #ruby
ahawkins has quit [Ping timeout: 260 seconds]
<ddd>
bundle exec, not bundler exec (if you're being command literal)
lyanchih has quit [Ping timeout: 264 seconds]
<CaptainQuirk>
when I do locate ruby in my ubuntu, I get loads of entries in /var/lib/gems/1.9.1
LinearInterpol has joined #ruby
<workmad3>
ddd: good empirical evidence raises the likelihood of a very small number of possible hypotheses
<workmad3>
also, ruby 1.8.7 gems wouldn't be installed under /var/lib/gems/1.9.1
yacks has joined #ruby
jhaals has joined #ruby
zipper has quit [Remote host closed the connection]
zipper has joined #ruby
Hanmac1 has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
<CaptainQuirk>
workmad3, yes, but I don't think I'm using ruby 1.8.7 gems
shedd has joined #ruby
coderhs has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<ddd>
cd ~/<yourgemdir> && curl -sSL https://get.rvm.io | bash -s stable && source ~/.bash_profile && rvm --create use 2.0.0-p353@<yourgemname> && echo 'rvm --create use 2.0.0-p353@<yourgemname.' > .rvmrc && rvm rvmrc trust . && cd . && bundle install # provided you have a Gemfile even if it just says 'gemspec' in it)
<ddd>
have fun with rvm, a current ruby, a gemset, your gem using that ruby in the future, and less problems :)
<Hanmac1>
dd you should update your line, 2.1 is released
Hanmac1 is now known as Hanmac
<ddd>
released already? cool!
<Hanmac>
yeah it was a christmas present
<ddd>
didn't pay any attention to the topic until you said that hehe
<ddd>
nice!
<ddd>
brb then
<Hanmac>
php users got coal
mihi has joined #ruby
anderson has quit [Ping timeout: 245 seconds]
<CaptainQuirk>
I cannot use 1.9.1 with rvm, only a 1.9.1[-p431]
<CaptainQuirk>
Will it mess up my existing gems ?
<ddd>
umm, 1.9.,1-p431 *is* a 1.9.1
<ddd>
s/\,//
siwica has joined #ruby
troyready has quit [Ping timeout: 264 seconds]
emocakes has quit [Quit: Leaving...]
butblack has joined #ruby
shedd has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 248 seconds]
<pontiki>
i wouldn't mind having some coal right now.
<ddd>
i hear ya. freezing atm
kayloos has quit []
emocakes has joined #ruby
<ddd>
-7F atm. my heaters haven't kicked off yet
siwica has quit [Read error: Operation timed out]
flame_ has quit [Quit: Computer has gone to sleep.]
<ddd>
only bad thing about this laptop is how long it takes to buils tuff, but for a freebie @ 1.2GHz + 8GB RAM i'm not really gonna complain loudly :)
mklappstuhl has quit [Read error: Connection reset by peer]
<CaptainQuirk>
I'll stop bothering you guys, I need to dive into it, I'm wasting your time
<CaptainQuirk>
sorry
<shevy>
bundler should be renamed bugler
<CaptainQuirk>
shevy, is there an alternative ?
<workmad3>
CaptainQuirk: if you read that, it's not a bug
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<workmad3>
CaptainQuirk: it's a failure on an unsupported ruby version
mklappstuhl has joined #ruby
monkegjinni has joined #ruby
<shevy>
CaptainQuirk well if you want to or have to use bundler then of course you have no alternative. otherwise, if you don't have to use bundler, you could compile ruby from source and use the .gem files you need
petey has joined #ruby
maveonair has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<CaptainQuirk>
workmad3, thanks for that, didn't know
<CaptainQuirk>
my installation is not that old
kewubenduben has quit [Read error: Connection reset by peer]
<ddd>
i thought that was 1.9,.1 but hanmac said thats not true, its as just incompatabilities in encodings
<CaptainQuirk>
but ok
<CaptainQuirk>
thanks
ahawkins has joined #ruby
mojjojo has joined #ruby
<workmad3>
ddd: 1.9.1 is probably advised agaist too, but 1.9.0 iirc had some fairly major flaws... 1.9.2 is really the time when 1.9 stabilised :)
petey has quit [Ping timeout: 248 seconds]
<workmad3>
but there's a reason why the 1.9 branch has an ABI compatibility of 1.9.1, not 1.9.0 ;)
<CaptainQuirk>
workmad3, If I upgrade using rvm, what could go wrong on my machine
<CaptainQuirk>
I mean in other projects ?
<CaptainQuirk>
wrong term
<CaptainQuirk>
with other gems
<workmad3>
well, rvm installs completely separately to packaged versions
<workmad3>
separate gem paths too
ahawkins has quit [Read error: Operation timed out]
kewubenduben has joined #ruby
<ddd>
workmad3 yeah i knew that on .2 guess i just had my earlier version strings screwy
<workmad3>
so it won't change anything with any existing gem installs
burlyscudd has quit [Ping timeout: 264 seconds]
<workmad3>
it'll shadow existing versions when you're using any rvm installed ruby though
<shevy>
CaptainQuirk come on man
<shevy>
you already use RVM
<shevy>
if you are scared of upgrades, don't use rvm, use debian ruby
kebabski has joined #ruby
<CaptainQuirk>
scared is not the proper word ; I'm askiing about potential hazards
<CaptainQuirk>
and I use rvm since 15 minutes
jkhwan has joined #ruby
<workmad3>
CaptainQuirk: *potential* hazards are many and varied... *likely* hazards are fairly small
Kabaka has quit [Ping timeout: 265 seconds]
<CaptainQuirk>
ok, but as I said, I didn't do my homework
<workmad3>
CaptainQuirk: if you're concerned, maybe you should? :P
Rylee has quit [Ping timeout: 245 seconds]
lantry has quit [Remote host closed the connection]
<shevy>
you are like a young fish in a pond with sharks
nullsign has quit [Ping timeout: 265 seconds]
<shevy>
or piranhas, if that works better for you
nullsign has joined #ruby
kewubenduben has quit [Ping timeout: 240 seconds]
kewubenduben has joined #ruby
ahri has quit [Ping timeout: 272 seconds]
<workmad3>
shevy: I'd use the metaphor of an old map and the territory marked out with 'here be dragons' personally :)
<workmad3>
chances are there's crevices, pitfalls and other nasties there... but right now you have one big amorphous blob of fantasy danger in an area that is probably mostly safe :)
codenapper has quit [Read error: Connection reset by peer]
fuhgeddaboudit has joined #ruby
RaCx has joined #ruby
chrisramon has quit [Quit: chrisramon]
codenapper has joined #ruby
<shevy>
hmmm
agjacome has quit [Read error: Operation timed out]
<shevy>
question
<shevy>
I have like:
<shevy>
require 'foo'
<shevy>
and the namespace is a module Foo
arietis has joined #ruby
eeureebz has joined #ruby
<shevy>
is it possible to have a project auto-include a required module like that, just from a require line alone?
Neomex has quit [Client Quit]
soobus has joined #ruby
w4pm has joined #ruby
joonty has quit [Ping timeout: 246 seconds]
mihi has quit [Quit: Leaving]
freebs has joined #ruby
Advocation has joined #ruby
fusi0n has joined #ruby
figgleberry has joined #ruby
<waxjar>
shevy: you can require other files in foo.rb, is that what you meant?
felixjet_ has joined #ruby
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
L8D has joined #ruby
Elhu has joined #ruby
trautwein has joined #ruby
<apeiros>
shevy: since you can have any code in foo.rb, you can also put an include into that file.
codenapper has quit [Read error: No route to host]
OdNairy has joined #ruby
phinfonet has joined #ruby
OdNairy has quit [Read error: Connection reset by peer]
<phinfonet>
hello
mklappstuhl has joined #ruby
<phinfonet>
i'm having some troubles with rbenv/rvm, can anyone help-me?
Chillectual is now known as LinearInterpol
w4pm has quit [Ping timeout: 260 seconds]
daidoji has joined #ruby
colonolGron has quit [Quit: leaving]
<Hanmac1>
phinfonet: #rvm has own channel maybe they are faster with help there
jkhwan has joined #ruby
<phinfonet>
but isn't directly with rvm/rbenv
<phinfonet>
i've tried to use these ruby version managers, but ever i try to install a gem or run ruby code, i receive a illegal instruction error
mklappstuhl has quit [Read error: Connection reset by peer]
<pontiki>
it's usually better to just ask the question, rather than asking if you can ask a question
monkegjinni has quit [Read error: Connection reset by peer]
Kar- has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mklappstuhl has joined #ruby
<phinfonet>
hmmm
monkegjinni has joined #ruby
Azulinho has quit [Quit: Leaving]
bgy_ has quit [Changing host]
bgy_ has joined #ruby
bgy_ is now known as bgy
<eeureebz>
hello friends! I'm trying manage to install "nokogiri 1.6.1" however it's saying requires ruby 1.9.2 nevertheless that is already installed. Sorry, but I have not found anything helpful so came here. Please any hint? Thx!!
<phinfonet>
i'm searching by solution since november-2013, no success
ahmedelg_ has joined #ruby
ahmedelg_ has quit [Remote host closed the connection]
<pontiki>
what operating system , phinfonet ?
<phinfonet>
OSX 10.9.1
<pontiki>
how did you install things?
<phinfonet>
ever works fine in 10.8.x
<phinfonet>
i've installed using homebrew
<Hanmac1>
eeureebz: what does "ruby -v" and "gem env" shows for you?
lioninawhat has quit [Remote host closed the connection]
Pixels has quit [Read error: Connection reset by peer]
Pixels has joined #ruby
<pontiki>
identical to mine
<phinfonet>
is the same system?
<pontiki>
same version
<phinfonet>
hmmm
<phinfonet>
a bit weird it
joonty has joined #ruby
codenapper has joined #ruby
trautwein has quit [Read error: Connection reset by peer]
<Hanmac1>
phinfonet: last time i worked on mac i downloaded newest clang and newest gcc with macports ... i dont know if its possible with homebrew too (as far as i know RVM uses ports internally)
<phinfonet>
rvm uses macports
<pontiki>
Hanmac1: it works fine with the latest xcode command line tools
<phinfonet>
but i like more homebrew
shedd has quit [Ping timeout: 265 seconds]
mlpinit has joined #ruby
<pontiki>
i did not use homebrew to install my rubies, though
<Hanmac1>
pontiki: system clang uses "--with-gxx-include-dir=/usr/include/c++/4.2.1" ... the gxx version was a bit outdated for my usages ... thats why i builded new versions ...
<pontiki>
you're writing your own C methods, right, Hanmac1 ?
mzemel has joined #ruby
flowerhack_ has joined #ruby
OdNairy has joined #ruby
<pontiki>
phinfonet: currently ruby-build and chruby
<Hanmac1>
pontiki: i did write an C++ binding which uses also c++11 components if available
<phinfonet>
hmm
<phinfonet>
not works for me too
<phinfonet>
just the system ruby
<pontiki>
idk, phinfonet
Kruppe has joined #ruby
Kar- has quit [Ping timeout: 245 seconds]
codenapper has quit [Read error: Connection reset by peer]
<phinfonet>
you've installed using homebrew?
<pontiki>
the one time i got illegal instruction was because the xcode command line tools were out of sync with xcode
Xeago has joined #ruby
codenapper has joined #ruby
<phinfonet>
it might be outdated...
lfox has joined #ruby
<pontiki>
even if you do the automated xcode update, you have to do the xcode command line tools explicitly
eka has joined #ruby
browndawg has joined #ruby
<pontiki>
but it looks the same to me
sinm has joined #ruby
<phinfonet>
i've some errors in extensions install too
<phinfonet>
using brew
<pontiki>
sorry, i'm at a loss
Macaveli has quit [Quit: Leaving]
<phinfonet>
you uses homebrew?
<momomomomo>
I use home-brew on mac
zipper has quit [Ping timeout: 276 seconds]
zipper_ has joined #ruby
robertrv has joined #ruby
Bira has joined #ruby
<phinfonet>
i'm thinking in replace it, use macports again
<eeureebz>
hey friend thanks! I gonna go after that! But BT5 R3 has no ruby 2.xx maybe github, allright!
mary5030 has quit [Read error: Connection reset by peer]
Cephalostrum has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
waxjar yeah... I think that's what I meant... but perhaps I was confused when I asked it hmm...
mary5030 has joined #ruby
<shevy>
I think I wanted to ask differently
johnmilton has joined #ruby
<momomomomo>
I've only had issues with macports when trying to find certain libraries
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<momomomomo>
otherwise I didn't mind it
<shevy>
phinfonet what ruby version do you have or use right now?
<phinfonet>
2.0.0-p247
figgleberry has quit [Ping timeout: 248 seconds]
kcombs has joined #ruby
<pontiki>
eeureebz seems enthusiastic
<shevy>
waxjar I think what I actually wanted to ask was whether require 'foo' can include that module Foo into all classes and modules inside a given .rb, without having to explicitely use include in those classes or modules. Like, to just use require alone to include modules onto modules and classes magically
iamjarvo_ has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
jrowe has joined #ruby
jrowe is now known as jeremywrowe
<waxjar>
yeah, i think so. i don't see why not.
RaCx has quit [Ping timeout: 248 seconds]
bline79_ has quit [Ping timeout: 246 seconds]
chihhsin has quit [Read error: Connection reset by peer]
<shevy>
I need more beer, my brain doesn't see things clearly right now
klaut has quit [Read error: Connection reset by peer]
Kar- has quit [Ping timeout: 248 seconds]
<shevy>
is the rails String#blank? very useful?
klaut_ has joined #ruby
wald0 has joined #ruby
<wald0>
I have a little OS related question about ruby
camilasan has quit [Remote host closed the connection]
<hoelzro>
wald0: shoot
nateberkopec has joined #ruby
<cout>
don't ask to ask, just ask (if you ask to ask, then we'll ask you "please ask", and then you'll ask, and that's a lot of asking)
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wald0>
let's say i have an important OS app made in ruby, the shebang says "#!/usr/bin/env ruby", this means that the app can be broken (for the user) if that user install ruby's/gems by its own and creates a kindof uncompatibility with it ?
zipper_ has quit [Ping timeout: 265 seconds]
<wald0>
in other words, is more safe to use "#!/usr/bin/ruby1.9" instead ?
phansch has quit [Read error: Operation timed out]
snath has quit [Ping timeout: 264 seconds]
<cout>
wald0: this is a very controversial subject
<cout>
not all machines have a /usr/bin/env
mlpinit has quit [Remote host closed the connection]
<cout>
and not everyone with ruby 1.9 names the binary "ruby1.9"
<wald0>
cout: well, on this specific case the "machine" (os) is very specific, not variable
mlpinit has joined #ruby
<cout>
in that case go with what works
<cout>
I like env
joaoh82 has joined #ruby
<wald0>
ok let me explain, if im not wrong, by using "env" you "allow" the tool to be run by the ruby version that the user has defined/installed, but not in the other way since you force say "use that version of ruby FROM the system and not from the user home, even if he has instaled it or not"
<shevy>
wald0 I think shebangs that point to /usr/bin is a bit weird because it is already in $PATH variable
<wald0>
by some reason with these gems and stuff, which is a thing that users mostly want to install by its own, would allow a ruby-app to be easly breakable by overwritting ruby's or dependencies (gems) user-installed
<jeremy_w_rowe>
shevy: yeah - it is a good way to check to see if there is no content in an object. The method actually for all Object decedents. It first checks if the class responds to empty and if not it does !self (not nil comes into play here)
<wald0>
by some reason i feel like *
larissa has joined #ruby
<jeremy_w_rowe>
shevy: good for checking user input from a form
JuanDaugherty has quit [Read error: Connection reset by peer]
pen has quit [Remote host closed the connection]
chihhsin has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Brolen has joined #ruby
joaoh82 has quit [Ping timeout: 245 seconds]
<shevy>
jeremy_w_rowe hmm I see
chihhsin has joined #ruby
<shevy>
wald0 well what do you want to allow your users - that they install with prefix /usr and also home prefixes? but only on systems with hardcoded ruby1.9 binary names
<shevy>
the problem with the shebangs is that they must point to specific existing locations
Yan__ has quit [Read error: Operation timed out]
<shevy>
on debian they typically have a symlink called ruby pointing to ruby1.8 or ruby1.9
<wald0>
yeah, debian
Yan__ has joined #ruby
<wald0>
im worried about that the app will not "break" by that the user has played installing gems or ruby versions on his home
<shevy>
or perhaps into /etc/alternatives/
<wald0>
if the app is run by a different version it "could" break, or if the gem's used are different versions ones too
otherj has joined #ruby
<shevy>
I think $PATH checks on the principle of first in, first processed
otherj has quit [Client Quit]
Wixy has quit [Ping timeout: 248 seconds]
mary5030_ has joined #ruby
otherj has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
<shevy>
wald0 well just point your symlink to hardcoded /usr/bin/ruby
krawchyk has quit [Ping timeout: 245 seconds]
<ddd>
first hit first used via $PATH
<shevy>
but I think the shebang is only invokved when you don't explicitely use "ruby foo.rb" anyway
TorpedoSkyline has quit [Ping timeout: 272 seconds]
AlSquire has joined #ruby
kewubenduben has quit []
<wald0>
yeah, not using ruby app.rb, so its a "system app"
<Hanmac1>
shevy: shebang is only used when using ./foo.rb
<ddd>
shebang is only called when the script is called by its own
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fuhgeddaboudit has quit [Ping timeout: 276 seconds]
TorpedoSkyline has joined #ruby
shaunbaker has joined #ruby
<shevy>
Hanmac1 yea
shaunbak_ has joined #ruby
klcant102 has joined #ruby
gwb3 has quit [Ping timeout: 245 seconds]
razibog has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peneconleche is now known as peneconleche|awa
yasushi has quit [Remote host closed the connection]
phansch has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
fuhgeddaboudit has joined #ruby
claymore has quit [Quit: Leaving]
ahawkins has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
zeeraw has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
phinfonet has quit [Ping timeout: 241 seconds]
shaunbaker has quit [Ping timeout: 264 seconds]
sassamo has quit [Remote host closed the connection]
<ddd>
only way to make it semi portable is to call #!/usr/bin/env ruby however i'd view info coreutils 'env invocation' to see how to lock it to a specific environment (stripped, injected, etc) idk if that helps but might make it easier for future invocations regardless of $PATH etc
burlyscudd has quit [Quit: Leaving.]
claymore has joined #ruby
sassamo has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
shtirlic_ has quit [Ping timeout: 245 seconds]
riku- has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
shtirlic has joined #ruby
riku- has joined #ruby
shedd has joined #ruby
butblack has quit [Quit: butblack]
jkhwan has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
wildroman2 has joined #ruby
rickruby has joined #ruby
mereghost has joined #ruby
mary5030_ has quit [Remote host closed the connection]
Wixy has joined #ruby
Wixy has joined #ruby
Wixy has quit [Changing host]
TTilus has quit [Ping timeout: 245 seconds]
LadyRainicorn has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
otherj has quit []
sassamo has quit [Ping timeout: 265 seconds]
TTilus has joined #ruby
wildroman2 has quit [Read error: Operation timed out]
<mereghost>
Hi folks.
<LadyRainicorn>
Hi
shedd has quit [Ping timeout: 240 seconds]
<shevy>
ponicorns!
lukec has quit [Quit: lukec]
<shevy>
and mere ghosts
<shevy>
now all we would need is emocakes
<LadyRainicorn>
Yes!
* LadyRainicorn
bakes emocakes.
<IceDragon>
what the hell
yedimind has joined #ruby
pzula has joined #ruby
mary5030 has joined #ruby
<wald0>
is wxRuby a gui based on GTK ? the screenshots sections doesn't seems to work
gwb3 has joined #ruby
Taranis has quit [Quit: leaving]
rob_ has left #ruby [#ruby]
<LadyRainicorn>
It's based on wx.
<IceDragon>
which is based on GTK
<IceDragon>
;3
rickruby has quit [Remote host closed the connection]
<IceDragon>
Hanmac1: How do you shut G++ up about -fpermissive warnings ;3
<sweeper>
total recall reference?
ndrei has joined #ruby
<LadyRainicorn>
haha what is that Hanmac1?
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<Hanmac1>
IceDragon: hm i dont get -fpermissive warnings with my code yet
kevind has joined #ruby
wildroman2 has joined #ruby
camilasan has joined #ruby
<IceDragon>
I get a lot when using the rb_define_* functions in my extern-ed C code
flubba has quit [Remote host closed the connection]
mengu has quit []
<Hanmac1>
LadyRainicorn: look the tv show "gravity falls" i recomend them, its similar to AdventureTime but not so crazy
Hanmac1 is now known as Hanmac
<pzula>
quit
pzula has quit [Quit: leaving]
<IceDragon>
:O
<IceDragon>
fail
Taranis has joined #ruby
pzula has joined #ruby
bean has joined #ruby
yarou_ has joined #ruby
gwb3 has joined #ruby
aryaching has joined #ruby
<Hanmac>
IceDragon: hm i dont know, i need to see your code ... i removed "-Wextra" and some other warnings from CONFIG["warnflags"] but i dont know if that is the reason
RaCx has joined #ruby
<IceDragon>
possibly
<IceDragon>
my code failed on permissive warnings (treated as errors at the time)
<Hanmac>
IceDragon: also i allways build my bindings with g++ as cpp files but that should not be the reason
gja has quit [Quit: This computer has gone to sleep]
burlyscudd has joined #ruby
<IceDragon>
one more question Hanmac: is it possible to do: `ruby extconf.rb --enable-static` so I can compile the static extension (by default $static = nil (disabled))
<Hanmac>
i dont know ... i never ever build an extension static ...
lmickh has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
<IceDragon>
well ruby had an option to compile the extensions as static
iamjarvo has quit [Remote host closed the connection]
gilcosson has quit [Ping timeout: 272 seconds]
<geekbri>
I'm trying to define methods in an each loop inside of a class using define_method. Then I'm trying to use those methods inside of initialize through a block i'm passing in, I get undefined_method on those I defined. Is this some sort of issue with how define_method works and when initialize is called when creating a new objecT?
iamjarvo has joined #ruby
Brolen has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 264 seconds]
<IceDragon>
geekbri you'll need the Class's singleton_class
Wixy has quit [Ping timeout: 245 seconds]
ffranz has quit [Quit: Leaving]
mudmaster has joined #ruby
<geekbri>
IceDragon: Why's that? I noticed if i try to use the method inside initialize myself it works fine. If I try to use the method inside initialize because i'm running block.call(self) where the block is just calling the method, I get undefined method
<IceDragon>
hmm, could you provide a gist?
<IceDragon>
and what version of ruby are you running?
fedesilva has joined #ruby
mudmaster has quit [Remote host closed the connection]
renklaf has quit [Remote host closed the connection]
<Hanmac>
IceDragon: what about define_singleton_method ?
<iwaffles>
Given seconds, can you create a timestamp that's greater than 24 hours?
yasushi has quit [Remote host closed the connection]
<iwaffles>
Showing a duration such as 39:15:12 (39 hours, 15 min 12 seconds) - right now it seems to max out at 24
<apeiros>
iwaffles: not convinced that that question makes sense.
abra has quit [Ping timeout: 276 seconds]
<apeiros>
oh, I guess you're confusing *duration* and *time*
<apeiros>
hint, ruby has nothing to deal with duration, only time.
timonv has quit [Ping timeout: 276 seconds]
<iwaffles>
Not really confusing it, just wondering if there's a way
<apeiros>
iwaffles: you use the Time class, right?
<iwaffles>
Yeah right now, granted I understand it's 24 hour based, but was wondering if there was something in existence, such as a gem, that's solved this problem before
sam113101_ is now known as YOURBESTFRIEND
jkhwan has joined #ruby
abra has joined #ruby
<apeiros>
then you *are* confusing it. Time is for time, not durations. There probably is a gem for durations, but nothing in core/stdlib.
mklappstuhl has quit [Remote host closed the connection]
YOURBESTFRIEND has joined #ruby
mudmaste_ has joined #ruby
zeade has joined #ruby
brennanMKE has joined #ruby
Virtualize has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
croaky has joined #ruby
caveat- has joined #ruby
flubba has joined #ruby
havenwood has quit [Remote host closed the connection]
mudmaste_ has quit [Remote host closed the connection]
aspires has joined #ruby
TMM has quit [Quit: Ex-Chat]
mzemel has joined #ruby
mudmaster has joined #ruby
choobie has joined #ruby
Czupa has quit [Remote host closed the connection]
Dorf has joined #ruby
Dorf has quit [Changing host]
Dorf has joined #ruby
dkamioka has joined #ruby
aspires has quit [Client Quit]
dostoyevsky has quit [Quit: leaving]
brotspinne has quit [Remote host closed the connection]
dpswireless has joined #ruby
troyready has quit [Ping timeout: 264 seconds]
freezey has joined #ruby
ffranz has quit [Quit: Leaving]
lukec has quit [Quit: lukec]
_aeris_ is now known as [_aeris_]
saarinen has joined #ruby
Landshark753 has joined #ruby
roolo has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
ambushsabre has quit [Quit: rip]
shaunbak_ has quit [Remote host closed the connection]
mityaz has joined #ruby
DouweM has quit [Ping timeout: 248 seconds]
zxd has quit [Ping timeout: 240 seconds]
mojjojo has quit [Quit: mojjojo]
Bira has quit [Remote host closed the connection]
fractastical has quit [Quit: fractastical]
ndrei_ has joined #ruby
gilcosson has joined #ruby
razibog has quit [Ping timeout: 265 seconds]
Mars___ has joined #ruby
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
Bira has joined #ruby
camilasan has quit []
burlyscudd1 has quit [Quit: Leaving.]
LinearInterpol has joined #ruby
burlyscudd has joined #ruby
Wolland has quit []
havenwood has joined #ruby
ndrei_ has quit [Client Quit]
vlad_sta_ has joined #ruby
rankine has quit [Ping timeout: 265 seconds]
zcreative has joined #ruby
elyoung has joined #ruby
ffranz has joined #ruby
mojjojo has joined #ruby
dkamioka_ has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
<elyoung>
I need to drive selenium webdriver for exactly x number of seconds and kill it no matter what it's doing... this hasn't been easy because the driver blocks while waiting for the whole page to load...preventing the timeout gem from acting. is there a solution for this?... i started looking into jruby and threads
Mars___ has quit [Ping timeout: 265 seconds]
Underbyte has joined #ruby
noop has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
rootshift has joined #ruby
thumpba has quit [Remote host closed the connection]
soobus has quit [Ping timeout: 241 seconds]
thumpba has joined #ruby
troessner has quit [Quit: Leaving]
Elhu has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
<waxjar>
elyoung: kill it from another process?
<mereghost>
A thread would probably solve that, but it will be kinda weird. =/
Guest25777 is now known as dreamchaser
dreamchaser has quit [Changing host]
dreamchaser has joined #ruby
hukl has joined #ruby
vgaicuks has quit [Remote host closed the connection]
hukl has quit [Client Quit]
CaptainJet has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
awkwords has joined #ruby
dunc has joined #ruby
thumpba has quit [Ping timeout: 260 seconds]
soobus has joined #ruby
ryanf has left #ruby [#ruby]
zigomir has quit [Remote host closed the connection]
<elyoung>
waxjar, I guess i've just never done such a thing, will look into it
dEPy has quit [Quit: Computer has gone to sleep.]
Brolen has joined #ruby
mojjojo has quit [Quit: mojjojo]
John445 has joined #ruby
nari has quit [Ping timeout: 248 seconds]
<waxjar>
elyoung: i think you can just do pid = Process.pid; fork { sleep 3; `kill #{pid}` } or something along those lines
<John445>
anyone know a app with a UI that will let someone design a series of questions to be asked to a user. The questions are linked together based on the answers given in the questions
ambushsabre has joined #ruby
dangerousdave has joined #ruby
<havenwood>
elyoung: yeah, i was thinking: selenium = Process.pid; fork { sleep 5; Process.kill 'HUP', selenium }
<havenwood>
waxjar: agreed
mary5030_ has joined #ruby
mary5030 has quit [Ping timeout: 276 seconds]
phipes has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood>
John445: What kind of UI? Command line, browser, native application?
codezomb has joined #ruby
NimS has left #ruby [#ruby]
<John445>
pref browser
<Hanmac>
i did see somewhere a timeout gem/function ... but i dont know where it was
mbytes has joined #ruby
<John445>
but even without the UI would be a start
<codezomb>
is it possible to use safely autoload in a concurrent situation?
<John445>
I am looking at wizard builders as a possible avenue
<codezomb>
erm, safely use*
<havenwood>
Hanmac: `timers` is a nice uber simple one tarcieri did
<Amnesia>
not sure whether the following line: "The native Windows version of this library supports the Microsoft Visual C++, Borland C++, and MinGW compilers." means it's only compatible with windows
ahawkins has joined #ruby
<LadyRainicorn>
Check mkmf.log
<Amnesia>
LadyRainicorn: honestly I don't know where to find it
<Amnesia>
it's not in $gemdir/ext/
<havenwood>
Amnesia: What OS are you on?
<Amnesia>
linux
<havenwood>
Amnesia: Debian?
<Amnesia>
no crux
cascalheira has quit [Quit: Leaving...]
shime has quit [Ping timeout: 265 seconds]
<havenwood>
Amnesia: looks like Ruby wasn't built against mkmf, my guess would be install mkmf and rebuild Ruby
<havenwood>
Amnesia: yeah, mkmf missing from the # Depends on:
gasbakid_ has joined #ruby
<Amnesia>
I see
<Amnesia>
is mkmf part of ruby itself?
<havenwood>
"mkmf.rb is used by ruby C extensions to generate a Makefile which will correctly compile and link the C extension to ruby and a third-party library."
<IceDragon>
its right in the ruby stdlib
dblessing has joined #ruby
<IceDragon>
:O
ndrei has joined #ruby
mereghost has quit [Quit: leaving]
<Amnesia>
/usr/lib/ruby/1.9/mkmf.rb does exist btw..
<IceDragon>
you need make
<Amnesia>
make as in gnu make?
<Amnesia>
already got that
<IceDragon>
yup
<IceDragon>
:O
mereghost has joined #ruby
<IceDragon>
oddities
ahawkins has quit [Ping timeout: 264 seconds]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
<msx>
hello guys, I'm a n00b to ruby, sorry if this sounds dumb :/ I'm trying to install Jakyll into my GitHub's Page so I want to install this gem "github-pages" to have both instances of Jakyll in sync. Now, it says everywhere that I should install the gem as simple user, not as an administrator (I'm running GNU+Linux) but in fact the place where the gem will be installed is only writable by root. Question is: it's okay to install then the gem as root, or
<msx>
something in my distro is done wrongly? Thank you very much!
<IceDragon>
I thinkz you mean jerkell
<mereghost>
did you install ruby using your package manager?
* IceDragon
stabs foot
<IceDragon>
you jerkyll ;x
<IceDragon>
yup
drumusician has quit [Ping timeout: 248 seconds]
<msx>
IceDragon: typo there, actually is "Jekyll", a static website creator
<IceDragon>
yeah
<IceDragon>
damned typos
<msx>
mereghost: hi, yes
<mereghost>
msx: Then it's ok to do that.
<msx>
Ok, thank you :)
LadyRainicorn has quit [Ping timeout: 264 seconds]
yosafbridge has quit [Ping timeout: 245 seconds]
<Amnesia>
it fails on: os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
burlyscudd has quit [Quit: Leaving.]
phipes has quit [Remote host closed the connection]
<IceDragon>
msx: I install all my gems to root (bad habit)
flowerhack_ is now known as flowerhack
<IceDragon>
because my home directory is already messy and lacks space ;3
danijoo has quit [Read error: Connection reset by peer]
<Amnesia>
what does the "-" do in that regex?
<IceDragon>
nothing
<IceDragon>
>> "1-2" =~ /1-2/
<Amnesia>
hm let me try and remove it..
<IceDragon>
...
danijoo has joined #ruby
<Amnesia>
looks like it actually is compiling naow
<havenwood>
IceDragon: => 0
<msx>
IceDragon: ^^ Problem is I'm absolutely new to Ruby and don't know how to handle it :S And yes, I too would prefer to install these scripts as a limited-user...
<Amnesia>
hm nope
dmarr has quit [Quit: Goodbye]
<IceDragon>
msx: first up, check your /etc/gemrc
<msx>
Mmm, nice to know...
<Amnesia>
if !(os == 'mswin' or os == 'bccwin' or os == 'mingw')
<Amnesia>
fml
<IceDragon>
make sure you have --user-install in the gemrc key
yosafbridge has joined #ruby
<IceDragon>
now as your limited user do a: gem install jerkyll
dmarr has joined #ruby
<IceDragon>
without sudo
zipper has joined #ruby
<IceDragon>
Amnesia your doing it wrong
<mereghost>
msx: Take a look at rvm (http://rvm.io) =)
newUser1_ has joined #ruby
<IceDragon>
if os =~ /mswin|bccwin|mingw/
<msx>
IceDragon: wait! Are you talking about the /etc/gemrc that in fact doesn't even exists!? LOL I wonder if Ruby is packaged right here...
zipper is now known as Guest45117
<Amnesia>
IceDragon: it's the gem that contained the code I pasted above
<IceDragon>
:3
<IceDragon>
;x
<IceDragon>
say waht
<Amnesia>
so it's only compatible with widblows
<Amnesia>
winblows*
<IceDragon>
msx: just create it its a YAML file anyway
<IceDragon>
windoze, winblows
<IceDragon>
we have so many names for it
<IceDragon>
THATS THE PROBLEM RIGHT THAR
mlpinit_ has joined #ruby
<Amnesia>
IceDragon: it all sucks donkeyballs^^
<IceDragon>
msx: next you add a line; gemrc: --user-install
zipper_ has joined #ruby
mereghost has left #ruby ["Tmux being weird."]
<IceDragon>
Amnesia: Try handling cross compiling with windows
burlyscudd has joined #ruby
<Amnesia>
ffs
<IceDragon>
the ifdef for Windows is literally 4x longer than the linux one
<Amnesia>
ruby-serialport is also only compatible with windows
<Amnesia>
goddamnit, don't feel like screwing around with the gem:p
<IceDragon>
burn it
<IceDragon>
;3
RaCx has quit [Quit: Computer has gone to sleep.]
<msx>
IceDragon: I had a "file not found" error while installed a gem, should I complain to the gem developer or ask for the library to be added to the distribution?
<msx>
*have
<Amnesia>
IceDragon: RAAAAGE
<Amnesia>
:p
Mars___ has joined #ruby
<IceDragon>
msx: which file not found?
<havenwood>
Amnesia: It claims it supports "POSIX (Linux, *BSD, Solaris, AIX, Mac OS X), Cygwin and native Windows."
<msx>
IceDragon: Installing RDoc documentation for github-pages-12...
<msx>
file 'lib' not found
newUser1234 has quit [Ping timeout: 265 seconds]
<IceDragon>
-,- I don't install docs anymore
<Amnesia>
havenwood: hm yep, just read that
<havenwood>
msx: How did you install Ruby?
<Amnesia>
"Windows, Linux, BSD, OS X, and other POSIX operating systems."
subbyyy has quit [Read error: Operation timed out]
DrShoggoth has quit [Max SendQ exceeded]
parduse has quit [Killed (sendak.freenode.net (Nickname regained by services))]
parduse has joined #ruby
drumusician has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
<benzrf>
hue
devdazed has quit [Read error: Operation timed out]
<Amnesia>
does ruby-serialport work for you folks..?
<benzrf>
oh crap i left out an important part o:
<apeiros>
benzrf: looks generally neat and tidy, but some no-no's:
<benzrf>
1 sec let me write & commit
<apeiros>
indent - use 2 spaces for indent
tvw has joined #ruby
cbetta is now known as cbetta_afk
<apeiros>
map classes properly to files. e.g. Positioned belongs into a file positioned.rb
w4pm has quit [Ping timeout: 276 seconds]
<benzrf>
really
<benzrf>
i thought that was a java thing
<havenwood>
s/noexpandtab/expandtab
<apeiros>
nope, that's a sanity thing
beakr has joined #ruby
<apeiros>
put your stuff into a namespace
momomomomo has quit [Quit: momomomomo]
<mereghost>
benzrf: and a good practice anyway.
<apeiros>
use proper directory structure (see how gems do it - lib dir for .rb files)
<benzrf>
blah
<pontiki>
and just look at all those tests
<pontiki>
:D
<benzrf>
;p
<beakr>
What exactly did they do in Ruby 2.0.0-p353 that's causing Rails, Unicorn, etc to segfault? Seems to be happening pretty often and I'm experiencing it with Unicorn after upgrading.
<benzrf>
apeiros: ok i will do rearranging as you say as soon as I finish the bit I'm about to write
w4pm has joined #ruby
soobus has joined #ruby
<benzrf>
wait a sec... hm
<apeiros>
require './util' # <- nooooooooo!
<benzrf>
:S
<benzrf>
ok
iwaffles has joined #ruby
<apeiros>
use proper $LOAD_PATH instead, allowing for plain `require 'util'`
Advocation has quit [Quit: Advocation]
iwaffles has quit [Client Quit]
<IceDragon>
beakr: did you re-install unicorn?
<benzrf>
look @ line 96 in core.rb please?
<pontiki>
beakr: i have not experienced what you are saying
<benzrf>
I'm trying to figure out the best way to accomplish that.
<apeiros>
benzrf: anyway, that's it so far. only looked at it superficially, though.
<dgaffney>
I'm trying to punch in some data in there with geography and results have felt lackluster so far - looking to you all for inspiration/proof that its mature enough to use seriously via ruby
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
<beakr>
Ok, this is weird. Same error with Unicorn appearing with 2.1.0.
gyre007 has joined #ruby
<beakr>
Definitely seems to be something with kgio.
<benzrf>
ok
<benzrf>
class << foo is not lexically scoped
pwh has joined #ruby
<benzrf>
if I want that, is my only option:
<benzrf>
foo.singleton_class.class_eval
<benzrf>
?
dpswireless has quit [Remote host closed the connection]
ahawkins has quit [Ping timeout: 276 seconds]
tcstar has joined #ruby
<Hanmac>
i am not 100% sure that this is currect scoped ...
zipper_ has quit [Quit: Lost terminal]
zipper__ has quit [Quit: Lost terminal]
flubba has joined #ruby
phoenixHollywood has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phoenixHollywood>
hey ruby buddies... Does anyone know off the top of their head what "$: << Rails.root" is actually doing?
burlyscudd has joined #ruby
<phoenixHollywood>
$: is what I am wondering about
havenwood has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
awgl has joined #ruby
<benzrf>
$: i believe is the load path
<phoenixHollywood>
yeah you're right..
<phoenixHollywood>
ok cool thanks
awkwords has joined #ruby
<benzrf>
i am not so good at writing tests and also i find it boring as im sure everybody does
<benzrf>
findings bugs, going 'OH SHIT', and then fixing them is much more fun!
bean has joined #ruby
mereghost has joined #ruby
codenapper has joined #ruby
fractastical has joined #ruby
awkwords has quit []
drumusician has joined #ruby
awkwords has joined #ruby
jwalk has quit [Ping timeout: 248 seconds]
mereghost_afk has quit [Ping timeout: 265 seconds]
sassamo has quit [Remote host closed the connection]
<pontiki>
so is driving twice the speed limit jacked up on cocaine :)
Speed has left #ruby ["WeeChat 0.4.2"]
<pontiki>
still wouldn't recommend it to anyone
<slash_nick>
what's a bug
danijoo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
<benzrf>
slash_nick: a feature in diguise
havenwood has joined #ruby
<shevy>
lol
subbyyy has joined #ruby
flubba has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
soobus has quit [Ping timeout: 276 seconds]
mneorr has quit [Remote host closed the connection]
Mars___ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<havenwood>
phoenixHollywood: An alias for the more descriptive $LOAD_PATH, indeed.
vlad_starkov has joined #ruby
<havenwood>
phoenixHollywood: And just a normal Array, so Array#<<.
freggles has joined #ruby
nanoyak has joined #ruby
sassamo has quit [Ping timeout: 248 seconds]
<benzrf>
$><"hi"
<benzrf>
oops
<benzrf>
$><<"hi"
decoponio has quit [Quit: Leaving...]
glundgren has joined #ruby
<glundgren>
hey guys
<benzrf>
hi
<beakr>
IceDragon: turns out I segfault when running 'thin start' too, it's only using plain Ruby itself will it work
<benzrf>
glundgren: whats up
<beakr>
Must be something with the config.ru
netQT has joined #ruby
<IceDragon>
so the C extension might be bugged
<beakr>
I think so
kep has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
<glundgren>
FileSystem question, i have an array with some files with the path "/path/to/file/file.fil", "path/to/file/dir1/file.fil", theres a way to get the basename of the file since the '/file' dir? i mean ["file.fil", "dir1/file.fil"] ?
<beakr>
IceDragon: Seems to be a C extension for kgio that's bugged, which seems to be a dependency of Unicorn, Thin, (I guess Rack itself) etc.
failshel_ has joined #ruby
gja has joined #ruby
<IceDragon>
odd
<IceDragon>
If that was true, then wouldn't almost every single Rails dev be on its case by now?
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
glundgren is now known as guilund
<toastynerd>
Is there a way to call Infinity directly rather than dividing by 0.0?
jerius has quit [Read error: Connection reset by peer]
<beakr>
IceDragon: you're right, must not be Rack
failshell has quit [Ping timeout: 240 seconds]
<toastynerd>
IceDragon: Side note, do you know the reasoning behind having a /0.0 being infinity rather than error? Seems like it could lead to some odd bugs.
burlyscudd has joined #ruby
mikesplain1 has joined #ruby
<IceDragon>
because Infinity is perfectly legal with floating point numbers
phipes has quit [Remote host closed the connection]
<IceDragon>
in ruby at least
<IceDragon>
;3
flame_ has quit [Quit: Computer has gone to sleep.]
<IceDragon>
some things actually use Infinity
<IceDragon>
like Chipmunk
Bumptious has quit [Ping timeout: 245 seconds]
dencarlsson has quit [Client Quit]
blandflakes has joined #ruby
failshel_ has quit [Ping timeout: 276 seconds]
gja has quit [Quit: This computer has gone to sleep]
<enape_101>
I have a client who wants to integrate a remote access system with his app. I.e. similar to logmein, or teamviewer.. is this possible with ruby or rails? Any gems?
danijoo has quit [Read error: Operation timed out]
<IceDragon>
remote access is pretty wide enape_101
netQT has quit [Read error: Connection reset by peer]
<IceDragon>
does his App have a server side API?
aryaching has quit [Ping timeout: 264 seconds]
<IceDragon>
or will it use a ssh shell
<slash_nick>
guilund: don't you think the gsub is a bit... hardcoded/specific?
phipes has joined #ruby
<guilund>
slash_nick: yep, did the trick for this case specific :P
dEPy has quit [Quit: Computer has gone to sleep.]
<slash_nick>
lol
<guilund>
slash_nick: i get the basename, its cool, but how i get the parent dir ?
<IceDragon>
dirname
<slash_nick>
dirname
* IceDragon
is a ninja dragon
<pontiki>
stealthy ninja dragon
<slash_nick>
N. IceDragon... nice dragon
lukec has joined #ruby
havenwood has quit [Remote host closed the connection]
<guilund>
let me see what can i do with dirname
petey has quit [Remote host closed the connection]
w4pm has joined #ruby
danijoo has joined #ruby
petey has joined #ruby
havenwood has joined #ruby
wald0 has joined #ruby
<Hanmac>
beakr & (and maybe also shevy)
<Hanmac>
>> data=["/path/to/file/file.fil", "/path/to/file/dir1/file.fil"].map {|s|s.split(/\//) }.sort_by(&:size); chunk = data[1].to_enum(:zip,data[0]).chunk{|a,b| a == b };[chunk.first.last.map(&:first).join("/"),chunk.to_a.last.last.map {|s| s.compact.join("/")}]
<Hanmac>
>>"bot?"
flubba has joined #ruby
<slash_nick>
Hanmac: what did you dooo?!
<matti>
Hanmac: :)
phansch has quit [Quit: Leaving]
<beakr>
Hanmac: o_o
kitak has quit [Remote host closed the connection]
drumusician has quit [Ping timeout: 265 seconds]
kitak has joined #ruby
<Hanmac>
beakr: ok the bot does not show it but the result is: => ["/path/to/file", ["dir1/file.fil", "file.fil"]]
<matti>
So much code.
dEPy_ has joined #ruby
<guilund>
Hanmac: Enumerator Black Magic, LOVE IT
Xaitec has joined #ruby
<enape_101>
IceDragon, I will be coding the app from scratch and this is one of the features he's asking for.. I've never done anything like this before and there isn't much documentation on the subject online unfortunetly.
Xaitec has quit [Remote host closed the connection]
<matti>
guilund: No. He didnt use method_missing.
dagen_ has joined #ruby
<matti>
guilund: ;]
<guilund>
:P
dagen_ has left #ruby [#ruby]
<IceDragon>
well I don't disclose my stuff, but enape_101, look into RESTFUL Web APIs
<IceDragon>
Rails, Excon, and Commander will help you along the way
<matti>
IceDragon: Don't disclose? ;]
<IceDragon>
can't*
<IceDragon>
;x
<IceDragon>
type fail
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
kiri has joined #ruby
<matti>
;p
<guilund>
Hanmac: i want to get sice the /site/ directory, to create a tree ["file.html", "css/main.css", "js/main.js", "img/logo.png"] for example
bigbadbear has joined #ruby
Voodoofish4301 has quit [Ping timeout: 264 seconds]
Cephalostrum has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LBRapid has joined #ruby
<Hanmac>
guilund: you mean like that? ["file.html", "css/main.css", "js/main.js", "img/logo.png"].map(&"site/%s".method(:%)) #=> ["site/file.html", "site/css/main.css", "site/js/main.js", "site/img/logo.png"]
<enape_101>
IceDragon, awesome, thanks so much.
<IceDragon>
np
burlyscudd has quit [Quit: Leaving.]
<guilund>
Hanmac: the opposite to that, for example, /path/to/site/ get all inside the /site
<benzrf>
pontiki: it's in a small-community offtopic-y channel
<pontiki>
no worries
<benzrf>
how australian of you
robbyoconnor has joined #ruby
Solnse has joined #ruby
flame_ has joined #ruby
<pontiki>
bonzer, mate
maroloccio has joined #ruby
<guilund>
Hanmac: thats a nice code, but if i just pass an array, like the first array before treatment, the s3 will be able to write the files
<pontiki>
srsly, i'm not an aussie
<benzrf>
apeiros: still there?
<shevy>
cool
<shevy>
benzrf coded a spam bot
<benzrf>
spam bots are my favorite kind of bot
lkba has quit [Ping timeout: 276 seconds]
interactionjaxsn has quit [Remote host closed the connection]
<beakr>
IceDragon: can't be Rack with my Ruby bug, rackup on config.ru works like a charm
joaoh82 has quit [Ping timeout: 240 seconds]
interactionjaxsn has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Quit: Leaving.]
<apeiros>
benzrf: only a bit
<beakr>
Is there a quick option that changes the rackup default server to say thin instead of WEBrick (*screams*)
<benzrf>
apeiros: quick overview of what you think I should do to my poor files?
mikesplain2 has joined #ruby
arietis has joined #ruby
shadoi has quit [Quit: Leaving.]
RaCx has joined #ruby
burlyscudd has joined #ruby
acrussell has quit [Quit: Leaving.]
withnale has quit [Ping timeout: 246 seconds]
phutchin1 has quit [Read error: Operation timed out]
krawchyk has quit []
mikesplain1 has quit [Ping timeout: 264 seconds]
ahawkins has joined #ruby
interactionjaxsn has quit [Ping timeout: 272 seconds]
endash has quit [Quit: endash]
lkba has joined #ruby
Yan__ has quit [Ping timeout: 276 seconds]
<pontiki>
beakr: try rackup --help and look for --server
timonv has joined #ruby
<pontiki>
srsly
<pontiki>
damn i am getting no work done today
arietis has quit [Client Quit]
dpswireless has joined #ruby
ahawkins has quit [Read error: Operation timed out]
Hanmac1 has joined #ruby
<apeiros>
benzrf: relink?
<beakr>
pontiki: I tried -s and it errored so I figured it was something a little more abstract, now I remember that I never added thin to my Gemfile o_o
Landshark753 has joined #ruby
gyre007 has quit [Remote host closed the connection]
drumusician has quit [Ping timeout: 248 seconds]
allsystemsarego has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
aspires has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<guilund>
Hanmac: you deserve a monocle, very elegant
alex88 has joined #ruby
terrellt_ has joined #ruby
dangerousdave has quit []
terrellt has quit [Ping timeout: 260 seconds]
cj3kim has quit [Remote host closed the connection]
<guilund>
Hanmac: one last doubt, it always will be the same order of the original array, right?
nhhagen has quit [Remote host closed the connection]
cj3kim has joined #ruby
awgl has quit [Ping timeout: 276 seconds]
<Hanmac>
yes
maroloccio has quit [Ping timeout: 260 seconds]
<guilund>
Hanmac: i have to pass two arrays, one is this mapped, that S3 will use to write the keys in the bucket, and the other will be the array it will read the file to stream
terrellt_ is now known as terrellt
<guilund>
Hanmac: its safe to use two arrays?
freebs has quit [Read error: Connection reset by peer]
<Hanmac>
yeah should be no problem wth that
troyready has quit [Ping timeout: 240 seconds]
jwalk has quit [Quit: leaving]
<guilund>
Hanmac: thanks Miley.. ops Hanmac!
<ericwood>
pontiki: hmmm, thanks
<guilund>
:P
freebs has joined #ruby
Wolland has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 265 seconds]
w4pm has quit [Ping timeout: 248 seconds]
w4pm has joined #ruby
iliketurtles has joined #ruby
charliesome has joined #ruby
joaoh82 has joined #ruby
<guilund>
yeahhhhh worked
<guilund>
im one line of code closer to a million dollars
<guilund>
:D
<benzrf>
u wot
WickedAtMelb has joined #ruby
aspires has joined #ruby
timonv has quit [Remote host closed the connection]
<guilund>
holy sheet, i cant drink 2 starbucks refreshers
<guilund>
too much caffeine
jwalk has joined #ruby
BalkM has joined #ruby
<IceDragon>
self.return
fmcgeough has quit [Quit: fmcgeough]
klaut has joined #ruby
fijimunkii has joined #ruby
nhhagen has joined #ruby
aspires has quit [Client Quit]
BalkM is now known as bMalum
<guilund>
my onlyne static sitez generatorz will disrupt the web, kidding, it will ease my proccess so much that i will be able to scale by 10x :P
<guilund>
its almost like having slaves
<guilund>
i will never worry about servers anymore, everything will be rendered and served by s3, very cheap
mityaz has quit [Quit: See ya!]
<IceDragon>
;O
troyready has joined #ruby
<IceDragon>
by the gods of ruby, this man is insane
<IceDragon>
He'll kill us all!
<guilund>
:P:P
<bMalum>
guilund, awesome ^^
<guilund>
its the starbucks refresher, never drink it
<guilund>
its a caffeinne bomb
<IceDragon>
We should have a live action film like that
<IceDragon>
starring Hanmac and Matz
beakr has quit [Quit: beakr]
jlast has quit [Remote host closed the connection]
<benzrf>
can i be the comic relief sidekick
aspires has joined #ruby
<IceDragon>
yeah
<IceDragon>
;3
<IceDragon>
We'll make millions
<IceDragon>
which will go towards development of ruby++
<IceDragon>
its like ruby, but with the speed of C++
<benzrf>
but ruby doesnt have ++
<benzrf>
do you mean ruby += 1
mark_locklear has quit [Quit: Leaving]
<IceDragon>
;O oh yeah
<tfitts>
I have a list of 5 dates along with an integer for that date. I need to go through every day in the month and output the date along with the integer for that date if it's in the list, or a 0 otherwise. Can anyone help point me ot the right methods to search and output?
<guilund>
tfitts: show the array, i will try to twerk
psyl0n has quit [Remote host closed the connection]
<shevy>
tfitts a list is an array in ruby
<shevy>
array.each {|entry|
<IceDragon>
I think you mean "tweak"
<brtdv>
Hi
<shevy>
or .select
maximumgeek has quit [Read error: Connection reset by peer]
<IceDragon>
ki
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tfitts>
it's a hash right now, not sure if I should do an array or leave it in a hash.
<tfitts>
[{:date=>Sun, 04 Aug 2013, :units=>10.0}, {:date=>Sun, 11 Aug 2013, :units=>4.0}, {:date=>Sun, 15 Sep 2013, :units=>2.0}, {:date=>Sun, 22 Sep 2013, :units=>3.0}, {:date=>Sun, 06 Oct 2013, :units=>15.0}, {:date=>Sun, 29 Dec 2013, :units=>2.0}]
<guilund>
IceDragon: no, i will twerk the array
<IceDragon>
;x whateva you say bro
<guilund>
::P
<shevy>
tfitts well [] outside is still an array :P
<tfitts>
right
<tfitts>
it's actually the first day of the week for a year instead of days of a month, but the problem is the same.
<shevy>
is "Sun, 04 Aug 2013" a string?
<guilund>
lets create a gem called Miley, that twerk enumerators to something more human readable
<tfitts>
no, it's a date class
<IceDragon>
Its the output of Date#to_s possibly
benzrf is now known as benzrf|away
<benzrf|away>
bbl
<shevy>
yea
<pontiki>
tfitts: i'd just do a date range
<tfitts>
pontiki: what do you mean?
<tfitts>
pontiki: I don't have any trouble generating the list of dates I want to check against.
<pontiki>
then what is the problem?
<shevy>
do you have the list of days in a year already?
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mudmaste_ has joined #ruby
<shevy>
first get the days, iterate through them, in the iteration do the conditional checks whether your second array includes these
vlad_starkov has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
vadviktor_ has quit [Read error: Operation timed out]
<tfitts>
ok, that's basically what I'm doing. just seemed like it was very verbose
KevinSjoberg has quit [Ping timeout: 246 seconds]
bean has joined #ruby
saarinen has quit [Quit: saarinen]
RaCx has joined #ruby
psyl0n has joined #ruby
<guilund>
tfitts the array is exactley this?
<guilund>
i get an error
bilbo_swaggins has joined #ruby
<tfitts>
yeah, it's exactly that.
timmow has quit [Ping timeout: 260 seconds]
vadviktor has joined #ruby
andrewh_ has quit [Ping timeout: 246 seconds]
mnemon has quit [Quit: No Ping reply in 180 seconds.]
ce_afk has quit [Ping timeout: 246 seconds]
mudmaster has quit [Ping timeout: 248 seconds]
mnemon has joined #ruby
<shevy>
guilund because you dont have the time objects
jrd0 has quit [Ping timeout: 252 seconds]
<tfitts>
ok, maybe a better question is how can I make this weeks.detect{|w| w[:date] == date}[:units] return 0 instead of error undefined method `[]' if it doesn't detect a match.
<shevy>
I actually don't know how to generate every day in a year
Haegin has quit [Ping timeout: 276 seconds]
pwh has quit []
<shevy>
split it up into two lines
error404_ has quit [Ping timeout: 246 seconds]
<shevy>
if foo.has_key? :date
<shevy>
or :units
Haegin has joined #ruby
ce_afk has joined #ruby
<shevy>
or run [:units] on the second line
<shevy>
result = weeks.detect # etc
<shevy>
unless result.empty?
assurbanipal has joined #ruby
<shevy>
btw why return 0
<shevy>
:D
jrd0 has joined #ruby
timmow has joined #ruby
burlyscudd has joined #ruby
<tfitts>
shevy: it's for graphing the data.
<shevy>
ah
<bilbo_swaggins>
neat, I get it now
<shevy>
so like a plot
<tfitts>
right
<bilbo_swaggins>
carry on; I lurk once more
<shevy>
lol bilbo_swaggins
KevinSjoberg has joined #ruby
mnemon has quit [Client Quit]
mnemon has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins>
Ruby is my first language and I believe I am at the upper threshold of my journeymanship
arietis has joined #ruby
<bilbo_swaggins>
It is exciting
<waxjar>
tfitts: find takes an argument. it return whatever you feed if if no matches are found
claymore has quit [Ping timeout: 264 seconds]
<waxjar>
*returns
sambao21 has joined #ruby
<waxjar>
or detect i mean. same thing tho
andrewh has joined #ruby
claymore has joined #ruby
error404 has joined #ruby
brunops has joined #ruby
fedesilva has joined #ruby
<shevy>
what could be done to make ruby a better language
spyderman4g63 has quit []
fedesilv_ has quit [Ping timeout: 240 seconds]
<bilbo_swaggins>
a proper object copy operation, inefficient as may be, would be very useful
jlast has joined #ruby
w4pm has quit [Ping timeout: 260 seconds]
aryaching_ has quit [Ping timeout: 264 seconds]
<IceDragon>
Marshal.load(Marshal.dump(obj))
blarghmatey has joined #ruby
<IceDragon>
what more could you want?
<bilbo_swaggins>
one which not only copies not the reference, but rather the object itself; following all object references within
saarinen has joined #ruby
jlast has quit [Remote host closed the connection]
<bilbo_swaggins>
actually that's impossible to get right for everything
<bilbo_swaggins>
forget it
jlast has joined #ruby
<shevy>
hehe
interactionjaxsn has joined #ruby
<bilbo_swaggins>
yeah I know about that 'elegant' solution with Marshal
<shevy>
I will display bilbo_swaggins's enthusiasm in a graphical way now
<wald0>
mmh, not sure if this is a question for this channel but, my vim "tab" triggers a giant list of options to autocomplete when: if 1.<TAB>, how i can make it list only the available methods (for example, or a useful list)
<IceDragon>
...
<IceDragon>
okay eval-in
<bilbo_swaggins>
You'll still have reference copies at lower levels
<IceDragon>
ANY MINUTE NOW
pwh has joined #ruby
<shevy>
IceDragon you broke the bot again :<
mklappstuhl has joined #ruby
<IceDragon>
BOT Y U NO MARSHAL?
<shevy>
security risk
klcant102 has quit []
ahawkins has joined #ruby
<IceDragon>
>> "Hello World"
<bilbo_swaggins>
>> puts "is this some sort of ruby call syntax?"
mereghost has quit [Read error: Operation timed out]
<guilund>
but this place is so culturally mixed that i dont know anymore
<guilund>
maybe in your country is bad
<bilbo_swaggins>
ruby has no borders, only facets
<benzrf>
Hanmac: ha
<pontiki>
bilbo_swaggins: well played, that
<bilbo_swaggins>
guilund, do whatever works for now and fix it later
<bilbo_swaggins>
but do fix it if it needs fixing
<guilund>
?
<guilund>
man, my iq is about 140, sometimes i dont get what you guys talk
<guilund>
im dumb for ruby standards
brotspinne has quit [Remote host closed the connection]
<bilbo_swaggins>
I don't really understand your question though. I've only touched on gemspec files
<benzrf>
pfft 140 is high
wchun has joined #ruby
<benzrf>
you dont lack skill you lack eddycashun
<bilbo_swaggins>
mine is 480
<bilbo_swaggins>
my mom told me so
<guilund>
rubyists is about 380, like isaac newton
<guilund>
hahaha my mom told me this also
<guilund>
shes psychologists and applied the test
<benzrf>
im sure all of you are at the top of the bell curve
<guilund>
:P
Brolen has quit [Quit: Brolen]
* pontiki
rings the bell curve
<pontiki>
BONG BONG BONG
<bilbo_swaggins>
the curve can shift
<guilund>
we don need no... eddycashun
newUser1234 has joined #ruby
<apeiros>
mine is 27, that's enough for anybody
croaky has quit [Ping timeout: 245 seconds]
<bilbo_swaggins>
actually lol'd
assurbanipal has quit [Remote host closed the connection]
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bilbo_swaggins>
okay back to reading about PRNGs and pretending to work
fijimunkii has quit [Ping timeout: 248 seconds]
<guilund>
sometimes i need to hack my brain with herbs that increase the blood flow in the brain
enape_101 has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 245 seconds]
gverri has joined #ruby
<guilund>
its called vimpocetin, if you guys try it you will be able to telekinesis
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
<guilund>
im leaving, thenk you guys for the help!
allaire has joined #ruby
<guilund>
byes
guilund has quit []
brandonblack is now known as mongodb-bot
momomomomo has quit [Quit: momomomomo]
iliketurtles has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
kcombs has quit [Remote host closed the connection]
<slash_nick>
i like puns... bilbo's wagons
rootshift has quit [Quit: rootshift]
<shevy>
bilbo_swaggins functionality mostly. I need to be consistent in what I do
<shevy>
Hanmac the moment I can try it out will be the moment where I will test it EXTENSIVELY
asobrasil has left #ruby [#ruby]
<shevy>
and I'll especially add issues related to documentation :D
cj3kim has quit [Remote host closed the connection]
mudmaster has joined #ruby
bricker has joined #ruby
mehlah_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
mehlah has quit [Ping timeout: 246 seconds]
iliketurtles has joined #ruby
ehc has joined #ruby
drumusician has quit [Ping timeout: 260 seconds]
mudmaste_ has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Client Quit]
pzula has quit [Ping timeout: 265 seconds]
<bilbo_swaggins>
any o'y'all play an instrument? which? etc
cj3kim has joined #ruby
fedesilva has joined #ruby
<bilbo_swaggins>
been playing guitar 10 years and just the last few months I've been working with a music instructor to get formal training and theory down
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
fijimunkii has joined #ruby
<wald0>
is there a vim plugin that shows the available method possibilities with some small description ? like pressing 1.<TAB>
<bilbo_swaggins>
I'm curious what the overlap is between musicians and programmers
iliketurtles has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
bilbo_swaggins: a long time ago i tryed to work with the Rosegarden program ... (combined with JACK and QSynth) it can be used to make your own sounds from notes
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mongodb-bot is now known as brandonblack
* bilbo_swaggins
goes to look for music gems
pzula has joined #ruby
m-o-s has joined #ruby
<Hanmac>
took a long time until i got JACK and pulseaudio working together ... (so i can watch video while i play music)
<shevy>
Hanmac lol
<shevy>
Hanmac minimalist!
jerius has joined #ruby
<shevy>
bilbo_swaggins I used to play piano when I was a child. I forgot most now. But I'd love to generate audio data from ruby
jamesaanderson has quit [Client Quit]
<shevy>
bilbo_swaggins apeiros once wrote a .rb file that creates .wav file playing "alle meine entlein" that's how it would sound, but even worse in pure wav :P https://www.youtube.com/watch?v=WrxzWf9k6iM
brandonblack is now known as mongodbot
hiall has quit [Quit: hiall]
gilcosson has quit [Remote host closed the connection]
mongodbot is now known as brandonblack
lioninawhat has joined #ruby
DavePol has joined #ruby
m-o-s has quit [Ping timeout: 265 seconds]
rubyracer has quit [Quit: Konversation terminated!]
jblack has joined #ruby
Hanmac1 has joined #ruby
<bilbo_swaggins>
that's cool
iliketurtles has quit [Quit: zzzzz…..]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins>
you could start making more complex compositions
<bilbo_swaggins>
I don't know if that gem is actually any good
<bilbo_swaggins>
it sounds good and I am hopeful
DavePol has quit [Client Quit]
<benzrf>
fun programming challenge for all you people: write a program that reads its own source as music in some form, then structure it such that it plays an existing melody
<IceDragon>
;x
<bilbo_swaggins>
wait what, the last part is brutal
<pontiki>
anyone know of a good mapping between 2-char country code and locale?
po10_ has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
iliketurtles has joined #ruby
doodlehaus has quit [Remote host closed the connection]
butblack has joined #ruby
<pontiki>
639 is the list of languages
<pontiki>
639-1 that is
<pontiki>
639-2 is the list of countries
saarinen has quit [Quit: saarinen]
shadoi has joined #ruby
stryek has quit [Ping timeout: 260 seconds]
<bilbo_swaggins>
if anyone has any doubt, RubyMine is worth the money
x__ has quit [Ping timeout: 264 seconds]
ambushsabre has joined #ruby
<bilbo_swaggins>
it's the little things
<pontiki>
no sorry that's not it
<pontiki>
639 is the languages
<shevy>
bilbo_swaggins do you make ruby gems?
<bilbo_swaggins>
benzrf: I'll take that challenge
<shevy>
one day I want to dive into audio stuff
<bilbo_swaggins>
I haven't made any gems, myself
<bilbo_swaggins>
there are some great tutorials on that if you want to start early
<bilbo_swaggins>
you're ready
<bilbo_swaggins>
just go for it
dpswireless has quit [Remote host closed the connection]
<shevy>
no
<shevy>
I have time problems
<bilbo_swaggins>
if you get stuck, do something else for a while
<shevy>
a million things to do, adding one more just means I'll have less time :(
<bilbo_swaggins>
I have the exact same problem
olivier_b has joined #ruby
Dwarf has joined #ruby
<bilbo_swaggins>
I should get off IRC :P
<shevy>
this is cool
<shevy>
Music::Note.new 33.3 # => C1
<shevy>
hehe yeah
<shevy>
IRC can be a time waster
croaky has joined #ruby
<terrellt>
RubyMine is worth your employer's money*
sailias has quit [Quit: Leaving.]
<shevy>
I try to reduce the amount of channels but it's hard... am on 9 channels right now
<bilbo_swaggins>
well I did get an interesting project idea
<bilbo_swaggins>
and I found a neat gem
<bilbo_swaggins>
not a total loss
ctp has joined #ruby
<bilbo_swaggins>
terrellt: if only I didn't work for an IT company that rewards salespeople more than people who know things
thumpba_ has joined #ruby
yellow5 has quit [Ping timeout: 241 seconds]
po10_ has quit [Quit: /]
<bilbo_swaggins>
anyway, aufwiederlesen
rootshift has joined #ruby
<shevy>
hehe
sophomorical has joined #ruby
po10 has joined #ruby
kitak has quit [Remote host closed the connection]
baordog_ has quit [Remote host closed the connection]
v0n has quit [Quit: WeeChat 0.4.2]
v0n has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
johnmilton has quit [Remote host closed the connection]
yellow5 has joined #ruby
wildroman2 has joined #ruby
danshult_ has quit [Remote host closed the connection]
Bira has joined #ruby
aspires has quit []
aspires has joined #ruby
jamesaanderson has joined #ruby
charliesome has joined #ruby
<olivier_b>
in my server A i have a ruby script where i've installed net/ssh/gateway and mysql for the script actif_user.rb . This script need to connect on the server B but it doesn't have mysql2 gem installed .
jamesaanderson has quit [Client Quit]
<olivier_b>
the script on the server A connect on the server B for execute some command on mysql
aspires has quit [Client Quit]
<olivier_b>
the server B need the gem mysql2 ?
Landshark753 has joined #ruby
kure__ has joined #ruby
ctp has quit [Ping timeout: 264 seconds]
<olivier_b>
or it's okai because i use ssh/gateway
kirun has quit [Quit: Client exiting]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewh has quit [Read error: Operation timed out]
dkamioka_ has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 276 seconds]
<trinode>
he's right, I've built an up to date machine with an up to date openssl, and it cannot be compiled
burlyscudd has quit [Quit: Leaving.]
Zai00 has quit [Quit: Zai00]
wildroman2 has joined #ruby
jnoob22 has joined #ruby
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
acrefoot has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Signum has quit [Quit: No Ping reply in 180 seconds.]
rootshift has joined #ruby
Signum has joined #ruby
asmodlol has joined #ruby
Jetchisel has joined #ruby
shadoi has quit [Quit: Leaving.]
<wald0>
I have see references of ruby, but is there some kind of list/reference that shows the methods ? (or most-used ones?), like .each, .upto, .match...
sethen has joined #ruby
maroloccio2 has joined #ruby
rootshift has quit [Client Quit]
maroloccio has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
dblessing has quit [Quit: dblessing]
withnale has joined #ruby
brtdv has quit []
freebs has quit [Quit: Leaving.]
phipes has joined #ruby
wallerdev has quit [Quit: wallerdev]
<wald0>
dont tell me everybody has a giant memory to remember all of them :)
tt1187 has quit []
nateberkopec has joined #ruby
nwertman has joined #ruby
brandonblack is now known as mongodbot
wildroman2 has quit [Remote host closed the connection]
<benzrf>
g2g
benzrf has left #ruby [#ruby]
bean has joined #ruby
wildroman2 has joined #ruby
nhhagen has quit [Remote host closed the connection]
<bilbo_swaggins>
never be left in the intellectual cold again
<bilbo_swaggins>
this resource is fantastic
petey_ has joined #ruby
<bilbo_swaggins>
I don't believe it's official, but it's (mostly?) comprehensive
eka has quit [Quit: Computer has gone to sleep.]
<olivier_b>
in my server A i have a ruby script where i've installed net/ssh/gateway and mysql for the script actif_user.rb . This script need to connect on the server B but it doesn't have mysql2 gem installed .
maletor has quit [Quit: Computer has gone to sleep.]
mojjojo has joined #ruby
<olivier_b>
the script on the server A connect on the server B for execute some command on mysql
<olivier_b>
the server B need the gem mysql2 ?
<olivier_b>
or it's okai because i use ssh/gateway
<olivier_b>
or i make a mistake
Megtastique has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 240 seconds]
pencilcheck has joined #ruby
wildroman2 has quit [Ping timeout: 260 seconds]
zxd has joined #ruby
shadoi has joined #ruby
petey has quit [Ping timeout: 264 seconds]
<bean>
olivier_b, what are you SSHing for?
apeiros has joined #ruby
rootshift has joined #ruby
subbyyy has quit [Ping timeout: 272 seconds]
emocakes has joined #ruby
sergicles has joined #ruby
MrZYX is now known as MrZYX|off
petey has joined #ruby
pen has quit [Ping timeout: 260 seconds]
nwertman_ has joined #ruby
nwertman_ has quit [Remote host closed the connection]
maletor has joined #ruby
wildroman2 has joined #ruby
m-o-s has joined #ruby
mehlah_ has quit [Ping timeout: 276 seconds]
<wald0>
what is rspec? im finishing a ruby book and i have not read about htat yet
coda23 has joined #ruby
mongodbot is now known as brandonblack
subbyyy has joined #ruby
<bean>
wald0, its for testing
nwertman has quit [Read error: Connection reset by peer]
<wald0>
unit-testing stuff?
zxd has quit [Ping timeout: 248 seconds]
<bilbo_swaggins>
wald0: it's a way of writing tests for each part of your code with a Ruby-derived syntax that's pretty easy to pick up
<havenwood>
wald0: specs rather, but yeah just another word for the same thing
<havenwood>
wald0: for spec style tests in the stdlib you can look at Minitest
<bilbo_swaggins>
takes an investment of time, but it's intuitivish
<olivier_b>
bean: i need to execute a script on the server A but this script must to connect on the server B where we have mysql
horofox_ has joined #ruby
<bean>
olivier_b, its not going to work like that
petey_ has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 265 seconds]
<olivier_b>
bean, i use net ssh gateway
lkba has joined #ruby
CpuID has joined #ruby
enebo has quit [Quit: enebo]
brunops has quit [Quit: leaving]
<bean>
olivier_b, SSH has nothing to do with you connecting to a remote socket
mavcunha has quit [Ping timeout: 248 seconds]
Landshark753 has joined #ruby
<bilbo_swaggins>
ooh sockets
nwertman has joined #ruby
troyready has quit [Ping timeout: 240 seconds]
<wald0>
ok, thx
DaniG2k has joined #ruby
m-o-s has quit [Ping timeout: 240 seconds]
kep has quit [Quit: WeeChat 0.4.2]
burlyscudd has joined #ruby
mlpinit_ has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
mlpinit has joined #ruby
wildroman2 has quit [Remote host closed the connection]