apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
baroquebobcat has quit [Client Quit]
tsousa has joined #ruby
mahmoudimus has quit [Client Quit]
<tsousa> What you guys recommend to learn ruby? eloquent Ruby?
savage- has quit [Quit: savage-]
CaptainJet has joined #ruby
Cultofmetatron has joined #ruby
<apeiros> write code
mpereira has quit [Read error: Connection reset by peer]
<apeiros> expose it to the public
beilabs has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
dnyy has joined #ruby
jjbohn has joined #ruby
mahmoudimus has joined #ruby
manizzle has joined #ruby
jarred_ has quit [Quit: jarred_]
BrianJ has joined #ruby
beachandbytes has quit [Remote host closed the connection]
<tsousa> apeiros, yes but to write code i need to know the stuff
<apeiros> no
<otters> how do you make an HTTP request and get the headers back
<apeiros> that's a misconception
<otters> like curl -D
<apeiros> in order to write code, you must be willing to learn. knowing already is not needed.
dmiller has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
<apeiros> otters: net/http
<apeiros> the response object contains the headers
<apeiros> tsousa: even with years and years of programming under my belt, I still code lots and lots of things where I don't know so much about it
<otters> does it really
<apeiros> if you wait until you know everything, you'll never start
<apeiros> otters: no, I was just pulling your leg. OF COURSE IT DOES.
<otters> oh, I see
<otters> each_header returns an Enumerator
<otters> how intuitive
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<tsousa> apeiros, know i dont want to learn everything then start, but i want to know the basic stuff
<cirwin> otters: response['HEADER_NAME'] also works
rburton- has quit [Quit: Leaving...]
<apeiros> to_hash too
<apeiros> how intuitive
<otters> heh, I can't find the documentation
<otters> so I was using .methods.grep /.../
havenn has joined #ruby
samuelkadolph has quit [Quit: Quitting]
samuelkadolph has joined #ruby
<apeiros> otters: from `ri Net::HTTP`, straight out of the section "Response Data":
<apeiros> >> puts "Headers: #{res.to_hash.inspect}"
<otters> oh, ri
<otters> I guess I should start using that
<apeiros> would be an idea.
<cirwin> otters: I can recommend using pry: https://gist.github.com/9428dce3034d9034b8ff
sheerun has quit [Quit: and thanks for all the fish]
sailias has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
arietis has joined #ruby
kirun has quit [Quit: Client exiting]
<cakehero> anyone know how I can build this request? https://gist.github.com/b71cdaa3434c0b9e2c95 <-- instead of "tem" it's using "tbs"
Tuxist has joined #ruby
<cakehero> *tns, I'm having a problem figuring out exactly what parameters to change
dangerousdave has quit [Quit: Leaving...]
Tuxist has quit [Read error: Connection reset by peer]
Tuxist has joined #ruby
Tuxist_ has quit [Ping timeout: 240 seconds]
teh4 has joined #ruby
ltsstar has quit [Ping timeout: 248 seconds]
sailias has quit [Quit: Leaving.]
<apeiros> cakehero: you sure you're in the right channel?
<cakehero> Yeah, I'm doing it in ruby
ltsstar has joined #ruby
<cakehero> i'm using the savon gem, I should have mentioned that
<cakehero> I just basically have no ruby to post, because I have no clue how to build it
<apeiros> cakehero: no, no, letting us guess was reasonable…
<apeiros> yes, I think that's reasonable too. letting us guess some more…
<cakehero> well, letting you guess gives you an opportunity to be condescending about it
<apeiros> sheesh
<otters> to_hash
jcaudle has quit [Quit: jcaudle]
<cakehero> and everyone knows IRC trolls thrive on that
<otters> I've never seen a situation in which that method actually works
<cakehero> so in that regard I helped
<apeiros> cakehero: great recipe not to get help is not to provide info about your problem. but hey, have fun.
<otters> like on an array of pairs of items, for example
<otters> or anything else that should respond to to_hash
<cirwin> otters: ruby 2.0 is standardising on .to_h
<cirwin> not sure whether that'll do anything
<cakehero> I'm pretty satisfied with it so far
<cakehero> it seems to be making you upset, so, at least I accomplished that
<teh4> Hi folks. I am working on a project that involves controlling several debian based hosts and was wondering what would be the best way to store hostname, username and passwords in a secure way so i could connect to them using the net/ssh library??
<cakehero> sort of a side effect
<otters> ruby 2.0, huh
Tania has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
<shevy3> next year ruby
Zai00 has quit [Quit: Zai00]
<shevy3> I am on 1.9.x again
<shevy3> 1.8.7 no longer compiles here :(
<shevy3> havenn: you are sure? he would remove global variables?
<shevy3> well, what I dislike about them is the $
<shevy3> and that they are not containable in any module
<shevy3> but I think, they kind of have some use, sometimes
<shevy3> though it's a bit odd, with CONSTANTS you can often achieve a lot
<shevy3> similar things
<otters> heh, I think it's a pry feature that it doesn't change the prompt when you have an unclosed parenthesis
<shevy3> like ARRAY = []
<shevy3> ARRAY << 'hi'
<shevy3> ARRAY[0] = 'hey now this has a new value and ruby does not even warn'
brianpWins has joined #ruby
<shevy3> ARRAY looks better than $array in my editor
jslowe has quit [Quit: Leaving]
brianpWins has quit [Client Quit]
<havenn> shevy3: He said some more about Perl and what he shouldn't have borrowed I think, but I didn't understand the whole bit because I have trouble with the accent.
tsousa has quit [Quit: Saindo]
seanyo has joined #ruby
<havenn> I think they said keynotes would be up on confreaks right away, not sure if they counted todays?
* apeiros_ loved matz' quote @ euruko: "what shell we do"[sic]
dmiller has joined #ruby
<shevy3> ah I see
<shevy3> well, at least perl served as a helpful tool to generate new ideas
JarJar has quit [Quit: Leaving]
<shevy3> but perl without larry isn't quite perl anymore
armando_canals has joined #ruby
armando_canals has quit [Client Quit]
<shevy3> good article still though http://www.linuxjournal.com/article/3394
<shevy3> I have yet to read something like this from python guido
<shevy3> "I possess a fortuitous surplus of the three chief virtues of a programmer: Laziness, Impatience and Hubris."
<shevy3> hehehe still cracks me up
<shevy3> I can soooooo relate to that!
rafy has joined #ruby
jjbohn has quit [Quit: Leaving...]
Takehiro has joined #ruby
v1negar has joined #ruby
bitZero__ has joined #ruby
maletor has joined #ruby
cousine has quit [Remote host closed the connection]
<shevy3> where is that rubyconf? japan?
Tania has quit [Quit: :p]
AndChat| has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 252 seconds]
Takehiro has quit [Ping timeout: 252 seconds]
chimkan has quit [Quit: chimkan]
samphippen has quit [Quit: Computer has gone to sleep.]
anachronistic has joined #ruby
chendo_ has joined #ruby
rafy has quit [Quit: leaving]
sepp2k1 has quit [Remote host closed the connection]
jmeeuwen has quit [Ping timeout: 248 seconds]
Tuxist has quit [Remote host closed the connection]
ltsstar has quit [Ping timeout: 265 seconds]
ltsstar has joined #ruby
teh4 has left #ruby ["Leaving"]
uuair has joined #ruby
Cultofmetatron has joined #ruby
skaczor has joined #ruby
savage- has joined #ruby
swarley has quit [Ping timeout: 240 seconds]
jonan has quit [Quit: jonan]
Cultofmetatron has quit [Remote host closed the connection]
swarley has joined #ruby
seanyo has quit [Ping timeout: 256 seconds]
earthquake has quit [Quit: earthquake]
jonan has joined #ruby
Jonah11_ has quit [Ping timeout: 256 seconds]
Jonah11_ has joined #ruby
joeycarmello has quit [Remote host closed the connection]
jmeeuwen has joined #ruby
tpe11etier_ has joined #ruby
helichopter has left #ruby [#ruby]
hsbt_away is now known as hsbt
blazes816 has joined #ruby
havenn has quit [Remote host closed the connection]
chendo_ has quit [Quit: Leaving...]
clj_newb has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
banisterfiend has joined #ruby
chendo_ has joined #ruby
<matti> Hey banisterfiend
justinmcp has joined #ruby
<banisterfiend> matti: sup bb
Iszak has quit []
<matti> :>
<matti> banisterfiend: +100 for making Pry.
apeiros_ has quit [Read error: Connection reset by peer]
jonan has quit [Quit: jonan]
apeiros_ has joined #ruby
justinmc_ has joined #ruby
uuair has quit [Remote host closed the connection]
uuair has joined #ruby
<banisterfiend> matti: finally using it? :P
VegetableSpoon has quit [Remote host closed the connection]
amacgregor_osx has joined #ruby
<banisterfiend> matti: cirwin and ryanf need +100 too :)
<matti> cirwin = ryanf = banisterfiend
<matti> ;]
<banisterfiend> matti: i picked u as IRB4life guy
<matti> No, no.
blazes816 has quit [Quit: blazes816]
justinmcp has quit [Ping timeout: 276 seconds]
<matti> banisterfiend: I am converted now.
<banisterfiend> matti: nice, what feature converted you?
slainer68 has quit [Remote host closed the connection]
<matti> banisterfiend: Ability to debug is superb.
<banisterfiend> ah ok so "binding.pry" :)
<matti> Yes ;]
ltsstar has quit [Quit: ltsstar]
JarJar has joined #ruby
Xeago has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
n00b982 has quit [Ping timeout: 276 seconds]
mercwithamouth has quit [Quit: Lost terminal]
jonan has joined #ruby
jrajav has joined #ruby
jonan is now known as x1337807x
x1337807x is now known as jonan
swarley has quit [Ping timeout: 248 seconds]
qwerxy has quit [Quit: offski]
karakedi has joined #ruby
swarley has joined #ruby
g-ram has joined #ruby
JarJar has left #ruby ["Leaving"]
maletor has quit [Quit: Computer has gone to sleep.]
n00b982 has joined #ruby
u89 has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
karakedi has quit [Ping timeout: 256 seconds]
jjbohn has joined #ruby
jcaudle has joined #ruby
Takehiro has joined #ruby
jjbohn has quit [Client Quit]
hbpoison has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
seanyo has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
jcaudle has quit [Quit: jcaudle]
slainer68 has joined #ruby
hotovson has quit [Remote host closed the connection]
Cache_Money has joined #ruby
clj_newb has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
Cache_Money has quit [Ping timeout: 248 seconds]
Juul has joined #ruby
shammancer has joined #ruby
<Paradox> kk
seanyo has quit [Ping timeout: 264 seconds]
n00b982 has quit [Ping timeout: 276 seconds]
maletor has joined #ruby
jjbohn has quit [Quit: Leaving...]
jcaudle has joined #ruby
keyvan has joined #ruby
dakine has joined #ruby
jjbohn has joined #ruby
fyolnish has joined #ruby
<shevy3> hmm is there an easy way to always ensure that an @ivar stays a certain class and never changes?
<swarley> uhh.. you can do that with a virtual in the c api. i'm not sure about in ruby
emmanuelux has quit [Quit: emmanuelux]
<apeiros_> nope, can't
<matti> No.
<apeiros_> you can freeze the object containing the @ivar
sn0wb1rd has quit [Quit: sn0wb1rd]
<apeiros_> that'll ensure that the @ivar will not be changed. but it does a little bit more too…
<swarley> shevy3; you could do it by defining ivar= or something..
<swarley> but that just keeps it from being reassigned
<swarley> internally there isnt an easy way
pskosinski has quit [Quit: Whatever]
yshh has joined #ruby
Nisstyre-laptop has joined #ruby
slainer68 has quit [Ping timeout: 244 seconds]
ejholmes has quit [Quit: ejholmes]
maletor has quit [Quit: Computer has gone to sleep.]
luckyruby has joined #ruby
ejholmes has joined #ruby
v1negar has quit [Quit: v1negar]
<shevy3> hmm
<shevy3> yeah I suppose I could always use a method to set any @ivar
Jellyg00se has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
keyvan has quit [Remote host closed the connection]
paradoxpur has joined #ruby
pyreal has quit [Quit: pyreal]
keyvan has joined #ruby
paradoxpur has quit [Client Quit]
sailias has joined #ruby
justinmc_ has quit [Remote host closed the connection]
luckyruby has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
justinmcp has joined #ruby
roadt has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
statarb3 has quit [Read error: Connection reset by peer]
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
justinmcp has quit [Ping timeout: 268 seconds]
tungd has joined #ruby
uuair has quit [Quit: uuair]
savage- has quit [Quit: savage-]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Michael__ has joined #ruby
niklasb has quit [Ping timeout: 268 seconds]
fantazo has joined #ruby
tpe11etier_ has quit [Quit: tpe11etier_]
Takehiro has joined #ruby
jjbohn is now known as jjbohn|afk
zodiak has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
n_blownapart has joined #ruby
kil0byte has joined #ruby
nari has joined #ruby
osvico has joined #ruby
<n_blownapart> hi how does ruby know to return the value of the key/value pair by the capture notation [$1], and not the whole key/value pair? thanks: string.gsub!(/\b([A-Z]{2})\b/) { states[$1] }
<cirwin> n_blownapart: states[$1] is just the value
<scx> is it possible to turn off rdoc formatting for text fragment?
<cirwin> (that corresponds to the key $1)
<scx> something like that: <noformat>blah _test_ *foo* bar</noformat>
<scx> without bold, etc
<cirwin> <pre>?
* cirwin just guessing
<cirwin> yard is the future anyway
<n_blownapart> cirwin: thanks, hold on.
Hanmac1 has joined #ruby
swarley has quit [Ping timeout: 252 seconds]
abstrusenick has joined #ruby
<n_blownapart> cirwin: so whenever there is an index it only holds a key value. [$1] [2] etc. ?
maxer has joined #ruby
<scx> cirwin: doesnt work for me
<scx> still formatting code
strangeworks has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 240 seconds]
<cirwin> n_blownapart: uh, the [] method on both hashes and arrays takes in a key and returns a value
<cirwin> what are you seeing?
sailias has quit [Ping timeout: 240 seconds]
<n_blownapart> cirwin: you asking me?
<n_blownapart> cirwin: I was treating it like an index but I got confused that it is actually a method.
<cirwin> oh ok
<scx> cirwin: <pre class="“code”"> <em>test</em><p></p><ul><li><p>test</p></li></ul><p></p></pre>
<n_blownapart> cirwin: thanks kindly
anachronistic has left #ruby [#ruby]
<cirwin> scx: that suz
<cirwin> *sux
CaptainJet has quit []
eataix has joined #ruby
Ruler_Of_Heaven_ has quit [Ping timeout: 260 seconds]
pipopopo has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
keyvan has quit [Remote host closed the connection]
butblack has quit [Quit: butblack]
scx has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby
ejholmes has quit [Quit: ejholmes]
Ruler_Of_Heaven_ has joined #ruby
scx has joined #ruby
pipopopo has quit [Ping timeout: 240 seconds]
butblack has joined #ruby
apeiros_ has quit [Remote host closed the connection]
J-_-L has joined #ruby
radic has joined #ruby
fyolnish has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.3.9]
radic_ has quit [Ping timeout: 260 seconds]
maxer has quit [Quit: maxer]
ejholmes has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
jrajav has quit []
Michael__ has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
fredjean has joined #ruby
thone_ has joined #ruby
jcaudle has quit [Quit: jcaudle]
eataix has quit [Ping timeout: 245 seconds]
butblack has quit [Quit: butblack]
thone has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
eataix has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
meizaps has joined #ruby
cheez0r_ is now known as cheez0r
Takehiro has quit [Ping timeout: 260 seconds]
meizaps has quit [Client Quit]
meizaps has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
ananthakumaran has joined #ruby
Serial_Killer_C has joined #ruby
nari has quit [Ping timeout: 276 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
BadProphet has joined #ruby
savage- has joined #ruby
scx has quit [Ping timeout: 255 seconds]
g-ram has joined #ruby
scx has joined #ruby
hbpoison has joined #ruby
dreamz__ has joined #ruby
cakehero has joined #ruby
marius has quit []
chimkan has joined #ruby
LucidDreamZzZz has quit [Ping timeout: 276 seconds]
Juul has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
J-_-L has quit [Quit: Leaving.]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
zzyybb has joined #ruby
hsbt_away is now known as hsbt
n_blownapart has quit [Remote host closed the connection]
fyolnish has joined #ruby
cakehero has quit [Ping timeout: 252 seconds]
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
shiin has quit [Quit: Computer has gone to sleep.]
eataix has quit [Ping timeout: 245 seconds]
cakehero has joined #ruby
fyolnish has quit [Ping timeout: 265 seconds]
wargasm has quit [Ping timeout: 256 seconds]
eataix has joined #ruby
rjsamson has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 265 seconds]
rjsamson has joined #ruby
apeiros_ has joined #ruby
katherinem13 has quit [Quit: Might IS right.]
katherinem13 has joined #ruby
rjsamson has quit [Ping timeout: 240 seconds]
wargasm has joined #ruby
bradhe has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 255 seconds]
meizaps has left #ruby [#ruby]
macmartine has joined #ruby
hsbt is now known as hsbt_away
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Takehiro has joined #ruby
hsbt_away is now known as hsbt
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chimkan has quit [Quit: chimkan]
hbpoison has joined #ruby
<Boohbah> any way i can get a relative path from $0 variable?
frogstarr78 has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 260 seconds]
<reactormonk> Boohbah, $__FILE__ works better
<reactormonk> err, without the $
BeLucid_ has quit [Read error: Connection reset by peer]
<Boohbah> reactormonk: that's what i wanted, thanks
CamonZ has quit [Quit: Leaving...]
<SirFunk> I have 2 strings that seem to look the same when I puts them.. but they do not == eachother. How can i figure out why?
cirwin has quit [Ping timeout: 246 seconds]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
cakehero has quit [Quit: Computer has gone to sleep.]
scx has quit [Ping timeout: 264 seconds]
<Boohbah> File.expand_path(__FILE__)
<Boohbah> and __FILE__ are giving the same output
swi7ch has joined #ruby
<Boohbah> i just want to print the program name, with no path
scx has joined #ruby
bigmcq77 has joined #ruby
mercwithamouth has joined #ruby
BeLucid has joined #ruby
Jonah11_ has quit [Ping timeout: 256 seconds]
<Boohbah> well, this works, but it seems like a horrible hack to me
<Boohbah> File.split(__FILE__).last
frogstarr78 has joined #ruby
Jonah11_ has joined #ruby
amacgregor_osx_ has joined #ruby
BeLucid has quit [Ping timeout: 256 seconds]
amacgregor_osx has quit [Ping timeout: 244 seconds]
chimkan has joined #ruby
BadProphet has quit [Quit: This computer has gone to sleep]
BeLucid has joined #ruby
cirwin has joined #ruby
xsbeats has joined #ruby
Grieg has quit [Quit: laterz! :D]
adeponte has joined #ruby
luckyruby has joined #ruby
adeponte has quit [Remote host closed the connection]
cyong has joined #ruby
rakl has joined #ruby
justsee has quit [Quit: Leaving...]
<reactormonk> Boohbah, it works, doesn't it
Karunamon has joined #ruby
earthquake has joined #ruby
tpe11eti1r has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
mneorr has joined #ruby
chimkan has quit [Quit: chimkan]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<Karunamon> Woo, more rails fun. This is probably a newbie question to end all newbie questions, but I didn't see a simple answer in the docs, so here goes:
<Karunamon> How do I actually link records together when using Activerecord?
philcrissman has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
zleslie has joined #ruby
swi7ch has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<zleslie> Hi. I am trying to learn inject, and I am overlooking something. I want to turn an array of ["one", "two", "tree"] into {"one" => {"two" => "three"}}. I thouht array.inject({}) {|result, element| result[element] = element }
jonan has quit [Quit: jonan]
<zleslie> would do it, but instead I get {"one" => {}, "two" => {}...
xsbeats has left #ruby [#ruby]
xsbeats has joined #ruby
<zleslie> Can someone enlighten me as to what I am missing here please?
justsee has quit [Quit: Leaving...]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
ryanf_ has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
<GeekOnCoffee> zleslie: try a.inject({}) {|result, element| result[element] = element; result }
<GeekOnCoffee> it's acting on the return value of your block, so you need to return your hash, and not the result of (result[element] = element; ) which would be true
Juul has joined #ruby
justsee has quit [Client Quit]
<zleslie> That gives me {"one"=>"one", "two"=>"two", "three"=>"three"} instead
<heftig> array.reverse.inject { |a, b| { b => a } }
<zleslie> I am looking to build a data object that can be used like data["one"]["two"]["three"}
<zleslie> So in this case the order matters
r0bby has joined #ruby
<zleslie> So in this case the order matters
<zleslie> dp
scx has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 244 seconds]
<heftig> if you just want some kind of auto-hash: def autohash; rec = proc { |h,k| h[k] = Hash.new(&rec)}; Hash.new(&rec); end; ah = autohash; ah[:one][:two][:three] = 3; ah[34][56] = 2; ah[:one][:four] = 4; ah
<heftig> any member you access that doesn't exist already will become a new hash, no matter how deep
kbeddingfield has joined #ruby
<zleslie> Interesting
<GeekOnCoffee> speaking of trolling, I highly recommend watching http://www.ted.com/talks/charlie_todd_the_shared_experience_of_absurdity.html (it's also available on Netflix)
<GeekOnCoffee> wow, totally wrong room
<GeekOnCoffee> but still a good video
r0bby_ has joined #ruby
r0bby has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
<Karunamon> More relevant trolling: https://www.destroyallsoftware.com/talks/wat ;)
Erfankam has joined #ruby
r0bby_ is now known as robbyoconnor
<heftig> GeekOnCoffee: urgh. that video player stops buffering once you pause
<heftig> laaame
<GeekOnCoffee> heftig: that is lame
<GeekOnCoffee> I watched it on netflix
<GeekOnCoffee> but trying to be a good internet citizen and link to open content
Takehiro has quit [Ping timeout: 260 seconds]
CamonZ has joined #ruby
gnnr has joined #ruby
yshh has quit [Remote host closed the connection]
xsbeats_ has joined #ruby
mahmoudimus has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
kenneth has quit [Quit: kenneth]
dmiller has quit [Remote host closed the connection]
xsbeats has quit [Ping timeout: 240 seconds]
ryanf_ has quit [Quit: broken pipes |||]
luckyruby has quit [Remote host closed the connection]
zzyybb has quit [Quit: Leaving]
mahmoudimus has quit [Client Quit]
xsbeats has joined #ruby
crackfu_ has quit [Remote host closed the connection]
viuo_ has quit [Ping timeout: 260 seconds]
viuo has joined #ruby
guitsaru has joined #ruby
xsbeats_ has quit [Ping timeout: 252 seconds]
passbe has quit [Quit: WeeChat 0.3.9]
Cultofmetatron has quit [Remote host closed the connection]
hbpoison has joined #ruby
Takehiro has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
dreamz__ has quit [Remote host closed the connection]
justinmcp has joined #ruby
shammancer has quit [Remote host closed the connection]
kbeddingfield has quit [Remote host closed the connection]
dreamz__ has joined #ruby
tk___ has joined #ruby
freeayu has joined #ruby
earthquake has quit [Quit: earthquake]
charliesome has joined #ruby
Cultofmetatron has joined #ruby
gener1c has quit [Remote host closed the connection]
jarred_ has joined #ruby
kenneth has joined #ruby
irclog0 has quit [Read error: Connection reset by peer]
irclog0 has joined #ruby
_jesse_ has quit [Ping timeout: 240 seconds]
tungd has quit [Quit: tungd]
justsee has quit [Quit: Linkinus - http://linkinus.com]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
mohanmcgeek has joined #ruby
guitsaru has quit [Remote host closed the connection]
<mohanmcgeek> guys, is there a better way to write this
jake_ has joined #ruby
<mohanmcgeek> lol = me unless me == NameError
<mohanmcgeek> me is a method
Cultofmetatron has quit [Remote host closed the connection]
<mohanmcgeek> var = method unless method == NameError
<cirwin> lol = begin; me; rescue NameError => e; nil; end
<jaygen> nil is redundant
<jaygen> lol = me rescue nil
justinmcp has quit [Ping timeout: 256 seconds]
joeycarmello has joined #ruby
<jaygen> if me only raises NameError that would be your most concise bet
<RubyPanther> it was redundant but the postfix rescue isn't the same and isn't redundant
<jaygen> right
<mohanmcgeek> Thanks. :)
dhruvasagar has joined #ruby
Takehiro has quit [Remote host closed the connection]
eataix has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
eataix has joined #ruby
answer_42 has joined #ruby
elentras has quit [Quit: This computer has gone to sleep]
okapi has quit [Quit: Leaving]
joeycarmello has quit [Remote host closed the connection]
g-ram has quit [Quit: Computer has gone to sleep.]
hbpoison has joined #ruby
jarred_ has quit [Quit: jarred_]
mercwithamouth has quit [Ping timeout: 255 seconds]
jake_ is now known as jhgaylor
hbpoison has quit [Ping timeout: 252 seconds]
ryanf has quit [Quit: leaving]
ABK has quit [Remote host closed the connection]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
mohanmcgeek has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
Takehiro_ has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
areil has joined #ruby
Araxia has joined #ruby
phelps has quit [Changing host]
phelps has joined #ruby
kiyoura has quit [Quit: Leaving]
asasin has joined #ruby
<asasin> hi
Trioke has quit [Ping timeout: 252 seconds]
<asasin> hello?
dhruvasagar has quit [Ping timeout: 255 seconds]
passbe has joined #ruby
asasin has quit [Read error: Connection reset by peer]
passbe has quit [Changing host]
passbe has joined #ruby
<RubyPanther> rb_funcall(rb_mKernel,rb_intern("puts"), 1, rb_str_new2("Hello!"));
jmuniz has joined #ruby
hbpoison has joined #ruby
jmuniz has quit [Client Quit]
thinkdevcode has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
beilabs has quit [Ping timeout: 268 seconds]
beilabs has joined #ruby
jgrevich has quit [Quit: jgrevich]
mohanmcgeek has joined #ruby
savage- has quit [Quit: savage-]
medik has quit [Ping timeout: 240 seconds]
und3f has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
huntercool has joined #ruby
huntercool has left #ruby [#ruby]
und3f has quit [Client Quit]
Juul has quit [Read error: Operation timed out]
rakl has quit [Quit: sleeping]
Chryson has quit [Quit: Leaving]
xsbeats has quit [Read error: Connection reset by peer]
xsbeats has joined #ruby
justinmcp has joined #ruby
jaygen has quit [Read error: Operation timed out]
jaygen has joined #ruby
jenrzzz has joined #ruby
jaygen has quit [Remote host closed the connection]
joeycarmello has joined #ruby
nemesit has joined #ruby
dangerousdave has joined #ruby
Guest15771 has joined #ruby
joeycarmello has quit [Ping timeout: 256 seconds]
c0smic has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
arturas has joined #ruby
TheFuzzball has joined #ruby
TheFuzzball has quit [Max SendQ exceeded]
Beoran_ has joined #ruby
TheFuzzball has joined #ruby
Beoran has quit [Ping timeout: 245 seconds]
cableray has quit [Quit: cableray]
arturas has quit [Ping timeout: 265 seconds]
mohanmcgeek has left #ruby [#ruby]
justinmcp has quit [Remote host closed the connection]
hamed_r has joined #ruby
justinmcp has joined #ruby
cyong has quit [Quit: Leaving.]
blacktulip has joined #ruby
Takehiro has joined #ruby
arturas has joined #ruby
justinmcp has quit [Ping timeout: 260 seconds]
clj_newb has joined #ruby
qwerxy has joined #ruby
Progster has joined #ruby
hamed_r has quit [Remote host closed the connection]
Tania has joined #ruby
tchebb has quit [Ping timeout: 256 seconds]
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has quit [Quit: Computer has gone to sleep.]
bigmcq77 has joined #ruby
moshee has quit [Ping timeout: 268 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
marius has joined #ruby
irleif has joined #ruby
hamed_r has joined #ruby
dhruvasagar has joined #ruby
bigmac has quit [Quit: Leaving]
Proshot has joined #ruby
Proshot is now known as statarb3
Xeago has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Juul has joined #ruby
Tearan has joined #ruby
kenneth has quit [Quit: kenneth]
chussenot has joined #ruby
workmad3 has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
robustus has joined #ruby
Katniss has quit [Ping timeout: 268 seconds]
banisterfiend has joined #ruby
hotovson has joined #ruby
Progster has quit [Read error: Operation timed out]
darthdeus has joined #ruby
Katniss has joined #ruby
kenneth has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
knite has quit [Quit: knite]
wallerdev has quit [Quit: wallerdev]
Takehiro has quit [Remote host closed the connection]
daniel_- has joined #ruby
jeanlinux has joined #ruby
swarley has joined #ruby
jenrzzz has joined #ruby
irleif has joined #ruby
justinmcp has joined #ruby
anderse has joined #ruby
samuel02 has joined #ruby
khakimov has joined #ruby
dakine has quit [Remote host closed the connection]
busybox42 has quit [Ping timeout: 260 seconds]
Villadelfia has quit [Ping timeout: 244 seconds]
SeySayux has quit [Ping timeout: 240 seconds]
SeySayux has joined #ruby
c0smic has quit [Quit: Leaving.]
Villadelfia has joined #ruby
Slivka has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Ry_ has joined #ruby
lele has quit [Quit: Coyote finally caught me]
chussenot has quit [Quit: chussenot]
mneorr has joined #ruby
lele has joined #ruby
Takehiro has joined #ruby
swarley has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 255 seconds]
daniel_-_ has joined #ruby
chussenot has joined #ruby
daniel_- has quit [Ping timeout: 244 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
krawchyk has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
<shevy3> hey
<shevy3> what did matz say on rubyconf?
greenarrow has joined #ruby
chussenot has quit [Quit: chussenot]
dhruvasagar has quit [Ping timeout: 248 seconds]
clj_newb has quit [Ping timeout: 268 seconds]
cirwin has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
Ry__ has joined #ruby
Xeago has quit [Remote host closed the connection]
Ry_ has quit [Read error: Connection reset by peer]
zaki[] has quit [Read error: Operation timed out]
wame has joined #ruby
<wame> hi everyone, i need a design advice :) i need to parse many flat files, so i created yaml files to indicate the parser the path, separator, fields etc… but each files should be inserted into mongodb in a specific manner (collection and fields), so i need to store the entire query (and there's no variable substitution)
<wame> and it seems that storing the query in the yml file is not a good design
hbpoison has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
Tania has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
arietis has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
richo has joined #ruby
richo has quit [Changing host]
richo has joined #ruby
<richo> For the purposes of testing something that wraps bundler I need a small, pure ruby gem, ideally with no external dependencies. Ideas?
<richo> Actually, I know.
zaki[] has joined #ruby
rakl has joined #ruby
Araxia has quit [Quit: Araxia]
poga has quit [Remote host closed the connection]
<burgestrand> Make one.
<shevy3> ouw, bundler testing :D
<richo> Yeah, do not want.
<richo> Bundler has wasted more of my time than anything else on this project
<richo> and burgestrand I just remembered I wrote a tiny gem ages ago
<richo> :D
BeLucid has quit [Ping timeout: 256 seconds]
nilg has joined #ruby
<shevy3> I didn't allow bundler to take control over me!
<shevy3> gem must suffice
<richo> it's a CI server
<richo> so it needs to play nice with bundler
<richo> although at this point I have an entire shim library I should split out and release seperately
BeLucid has joined #ruby
<richo> called "unclusterfuck bundler"
<shevy3> \o/
u89 has joined #ruby
wame has quit [Quit: wame]
shiin has joined #ruby
<shevy3> undefined method `is_2_6_16?' for Nokogiri:Module
<shevy3> man
<shevy3> who comes up with such checks
dhruvasagar has quit [Ping timeout: 244 seconds]
u89 has quit [Remote host closed the connection]
darthdeus has quit [Quit: Leaving...]
justinmcp has quit [Remote host closed the connection]
arturas has quit [Remote host closed the connection]
shiin has quit [Ping timeout: 244 seconds]
justinmcp has joined #ruby
rakl has quit [Quit: sleeping]
qwerxy has quit [Quit: offski]
<richo> people who like dicking with #method_missing ?
apeiros_ has joined #ruby
Nowaker has quit [Ping timeout: 248 seconds]
justinmcp has quit [Ping timeout: 255 seconds]
emmanuelux has joined #ruby
sepp2k has joined #ruby
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
<richo> Also, if anyone is around and bored
<richo> Actually, nope. I will come back in a bit
<richo> one last bug to fix
Mchl has joined #ruby
swex has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
Guest15771 is now known as Jackneill
Jackneill has quit [Changing host]
Jackneill has joined #ruby
BeLucid has quit [Read error: Connection reset by peer]
BeLucid has joined #ruby
fyolnish has joined #ruby
qwerxy has joined #ruby
dhruvasagar has joined #ruby
<shevy3> oh yeah
<shevy3> method_missing is 95% of the time abused too
<apeiros_> did you know that 83% of the time somebody throws a percentage number at you, he pulled that one from thin-air?
<shevy3> but I base my numbers on experience!
bier has quit [Read error: Operation timed out]
emergion has joined #ruby
krawchyk has quit [Quit: QQ]
<shevy3> I would have said 100%... but there may be a few use cases for a feature in a positive way
<shevy3> like even for @@bla variables
crackfu_ has joined #ruby
<shevy3> though method_missing seems more useful than @@bla
<banisterfiend> shevy3: it's used all the time for proxy objects
<Hanmac> const_missing is also cool
n1x has quit [Quit: Ex-Chat]
Nowaker has joined #ruby
nilg has quit [Remote host closed the connection]
daniel_-_ has quit [Ping timeout: 244 seconds]
hamed_r has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
hbpoison has quit [Ping timeout: 264 seconds]
amacgregor_osx_ has quit [Read error: Operation timed out]
codecaster has joined #ruby
Erfankam has quit [Quit: Leaving.]
mityaz has joined #ruby
<booyakah> With Ruby and SQLite3. If I perform a sql query that doesn't result anything
<booyakah> for instance if i make the query a variable
<booyakah> var = "SELECT * FROM table"
<booyakah> should var == NIL if there is no result?
<apeiros_> o0
<apeiros_> no
<booyakah> what would var then equal then?
<booyakah> 0?
<apeiros_> var would equal "SELECT * FROM table"
<apeiros_> why should sqlite change the variable which contains the query? makes no sense.
<apeiros_> besides, no method can change *variables* from other scopes.
<booyakah> sorry apeiros_
<booyakah> i mean var == db.execute "SELECT * FROM table"
<apeiros_> I suppose you mean var = db.execute …
<apeiros_> not ==…
<booyakah> yes
<booyakah> also that :)
<burgestrand> I’d expect it to return a result that is empty
<burgestrand> Like an empty array. Not nil.
<booyakah> okay so empty and not nil
amacgregor_osx has joined #ruby
bier has joined #ruby
<apeiros_> given that execute is generic, I'd expect it to return some kind of result
<apeiros_> the docs are relatively quiet in that regard
<apeiros_> seems it returns a ResultSet
u89 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<apeiros_> oh, no, returns an array indeed
<booyakah> it returns an empty array?
<apeiros_> you can check that easily
<apeiros_> execute a query which doesn't return anything in irb and see…
<booyakah> yeah i'll do that
hsbt is now known as hsbt_away
shiin has joined #ruby
elaptics is now known as elaptics`away
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
skaczor has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
codecaster has quit [Quit: Leaving.]
<booyakah> apeiros_, it returns an empty array
<booyakah> thanks for your help
shadow_fox has joined #ruby
emergion has joined #ruby
<shadow_fox> hi i have installed rvm and through that when i installed ruby 1.9.3 it installed fine, but when i do invoke ruby or irb in command line it says can't find ruby or irb command , i am on debian squeeze
<richo> rvm use 1.9.3
ananthakumaran1 has joined #ruby
<richo> and then they will become available
hbpoison has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
<shadow_fox> richo: its saying RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use `/bin/bash --login` as the command. Please visit https://rvm.io/integration/gnome-terminal/ for a example.
eataix has quit [Ping timeout: 245 seconds]
<richo> in the short term you can source ~/.rvm/bin/rvm
<richo> but yes, you probably need to reconfigure your terminal emulator
<richo> did you restart your shell after you installed?
<shadow_fox> yep
k610 has joined #ruby
tenmilestereo has joined #ruby
k610 has quit [Read error: Connection reset by peer]
mengu has joined #ruby
eataix has joined #ruby
daniel_-_ has joined #ruby
<shadow_fox> richo: how to make it work ??
k612 has joined #ruby
k612 has quit [Client Quit]
<richo> starting your shell as a login shell will work?
<richo> or if you do `bash -k`
<richo> bash -l **
<richo> the resulting shell should work
<richo> are you using gnome terminal ?
fyolnish has quit [Remote host closed the connection]
<shadow_fox> richo: yes gnome terminal
fyolnish has joined #ruby
<richo> Has detailed instructions on what you need to do
<shadow_fox> ok thanks richo
k610 has joined #ruby
mhag has quit [Read error: Connection reset by peer]
mhag has joined #ruby
<k610> it seems i can't add :
<k610> rackup -p 80 /path/to/my/config.ru
<k610> to :
<k610> and have it start
<k610> /etc/rc.local
ltsstar has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
<richo> no, you can't
justinmcp has quit [Remote host closed the connection]
<richo> try the daemons gem, or I think Thin has an init script
<richo> if nothing else, you almost certainly don't want to run your app as root
<richo> or without a proxy in front of it
justinmcp has joined #ruby
justinmc_ has joined #ruby
justinmcp has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
n00b982 has joined #ruby
robbyoconnor has joined #ruby
cousine has joined #ruby
nilg has joined #ruby
hamed_r has joined #ruby
<k610> according to : https://rvm.io/integration/god/
<k610> i should use the full path of the rackup bin but that wont help
shadow_fox has left #ruby [#ruby]
u89 has quit [Remote host closed the connection]
<richo> why won't it help?
n00b982 has quit [Ping timeout: 255 seconds]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<richo> well, you'd need to generate a wrapper for rackup
<richo> I'm also curious why you're invoking rackup directly
<k610> i just want my sinatra app to bootup up if ever this machine restarts
<richo> you can call YourApp.start(host, port) and it'll start with whatever server's handy, or invoke a server directly or use rackup, but I thought rackup had performance impications
<richo> I could be wrong though
<_br_> Does anyone have ascii art for weather stuff? (sunshine, rain, cloudy, partially cloudy, etc.)
<greenarrow> anyone know why when i use html_safe on a string its still be using as non-html
<greenarrow> used*
<richo> what do you mean used?
<greenarrow> i've got blah.html_safe and it's still being printed as a string
roadt_ has joined #ruby
mengu has quit [Remote host closed the connection]
<richo> well.. it still is a string
<richo> what are you expecting?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
und3f has joined #ruby
<richo> it will escape any html entities in the string
<richo> that's about it
<greenarrow> actually
<greenarrow> you have a good point
pjb3 has joined #ruby
<greenarrow> thanks i fixed it
<k610> richo: i got it : in /etc/rc.local
<k610> nohup /usr/local/rvm/bin/rvm 1.9.3 do rackup -p 80 /path/to/my/config.ru
<richo> you almost certainly want a &
<richo> doesn't rackup block ?
<k610> yep
<k610> & >>
<richo> :)
<richo> bare in mind that you're running this thing as root
mpereira has joined #ruby
Juul has quit [Ping timeout: 256 seconds]
roadt has quit [Ping timeout: 256 seconds]
<richo> and honestly I don't trust the magic that sinatra will do with arguments, or MRI that much
<k610> im empror root, is there security risks ?
<richo> empror ?
<richo> there's always security risks. sinatra does a tremendous amount of magic and trusting #params is tempting. Running stuff that doesn't need to as root is asking for trouble.
mcero has joined #ruby
jjbohn|afk is now known as jjbohn
<k610> according to sinatra doc , rackup , is the way to serve a modular application
<k610> http://www.sinatrarb.com/intro.html#Serving%20a%20Modular%20Application
niklasb has joined #ruby
<richo> the definition of modular app is pretty loose there
<richo> personally I'd run it under unicorn, btu that's really immaterial
<richo> whether or not you run it as root matters a lot more imo
n00b982 has joined #ruby
<k610> i look in what i have to do for this then
justinmc_ has quit [Remote host closed the connection]
<richo> warpping your rvm call in su -c "someuser" will do it
justinmcp has joined #ruby
<k610> modular apps are just the ability to run e.g one website on a port and another on other port and have no possible conflicts in between them
<k610> <3
hamed_r has quit [Remote host closed the connection]
dekroning has joined #ruby
Tuxist has joined #ruby
<booyakah> i can check if an variable is empty by doing var.empty?
<richo> yes
<booyakah> but can i check in a similar fashion if it's not empty
<richo> well
<richo> if a string is empty
<richo> you can only check if a variable is nil
<richo> which is emptyish
<richo> !var.empty?
justinmcp has quit [Ping timeout: 240 seconds]
<banisterfiend> booyakah: depends what u mean by empty
<banisterfiend> booyakah: by empty do u mean nil or do u mean, like, an empty array or zero length string
<booyakah> the latter
<booyakah> richo, hmm so just a an ! in front
<banisterfiend> booyakah: ok, what would the meaning of 'empty' be for a number then?
<richo> ! is boolean not
<booyakah> but what do you mean i cannot check if a variable empty? only if it's nil?
<banisterfiend> booyakah: there is no general way to check if an object is empty, because 'emptiness' doesnt make sense for every object
<booyakah> 1.9.3p194 :030 > var = ""
<booyakah> => ""
<booyakah> 1.9.3p194 :031 > var.empty?
<booyakah> => true
<booyakah> 1.9.3p194 :032 > var.nil?
<booyakah> => false
<banisterfiend> booyakah: exactly, cos it just doesnt make sense for all objects
x0F has quit [Disconnected by services]
<booyakah> okay
<banisterfiend> booyakah: now set var to 5 and try again
x0F_ has joined #ruby
x0F_ is now known as x0F
Axsuul has quit [Ping timeout: 246 seconds]
daniel_-_ has quit [Ping timeout: 244 seconds]
<booyakah> ah yeah. empty only works for strings or arrays?
<banisterfiend> yeah
<banisterfiend> and hashes
<banisterfiend> and a few other container types
<apeiros_> it works for everything that defines .empty? (surprise)
<richo> not arbitrary objects that define #empty? to something stupid :P
eataix has quit [Quit: ZNC - http://znc.in]
hotovson has quit [Ping timeout: 256 seconds]
hotovson has joined #ruby
Virunga has joined #ruby
nari has joined #ruby
<apeiros_> richo: as long as they define them, that's still technically "works"
<richo> Object.send(:define_method, :empty?) { raise Exception, "lol" }
<richo> I see your "works" and raise you breaking everything :P
<apeiros_> still works :-p
hsbt_away is now known as hsbt
tschundeee has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
tschundeee has quit [Client Quit]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
Russell^^ has joined #ruby
crackfu_ has quit [Remote host closed the connection]
hotovson has quit [Remote host closed the connection]
scx has joined #ruby
kirun has joined #ruby
mfridh has quit [Read error: Operation timed out]
Cultofmetatron has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
palyboy has quit [Read error: Operation timed out]
Erfankam has joined #ruby
mpereira has quit [Read error: Connection reset by peer]
palyboy has joined #ruby
hotovson has joined #ruby
jlwestsr has joined #ruby
hsbt is now known as hsbt_away
hotovson has quit [Read error: No route to host]
shadow_fox has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
n00b982 has quit [Ping timeout: 265 seconds]
jjbohn has quit [Quit: Leaving...]
jjbohn has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
n00b982 has joined #ruby
hbpoison has joined #ruby
thinkit has quit [Read error: Connection reset by peer]
thinkit has joined #ruby
samuel02 has quit [Remote host closed the connection]
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
v1negar has joined #ruby
classix has quit [Read error: Connection reset by peer]
classix has joined #ruby
nari has quit [Ping timeout: 252 seconds]
pjb3 has quit [Quit: pjb3]
bigkevmcd has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
Kichael has quit [Ping timeout: 260 seconds]
goraxe has quit [Ping timeout: 240 seconds]
arturas has joined #ruby
arturas has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
Nisstyre-laptop has joined #ruby
srji has joined #ruby
srji has quit [Client Quit]
srji has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
goraxe has joined #ruby
Takehiro has joined #ruby
Kichael has joined #ruby
Takehiro_ has joined #ruby
k611 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: offski]
alem0lars has joined #ruby
pothibo has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 244 seconds]
k610 has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
beilabs has quit [Read error: Operation timed out]
k611 has quit [Ping timeout: 252 seconds]
anderse has quit [Quit: anderse]
k610 has joined #ruby
n00b982 has quit [Ping timeout: 240 seconds]
scx has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
awarner has joined #ruby
beilabs has joined #ruby
shadow_fox has left #ruby [#ruby]
jjbohn has quit [Quit: Leaving...]
awarner has quit [Remote host closed the connection]
scx has joined #ruby
jjbohn has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
jhgaylor has quit [Read error: Connection reset by peer]
irleif has joined #ruby
jhgaylor has joined #ruby
k610 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
samphippen has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 265 seconds]
casheew has quit [Read error: Connection reset by peer]
awarner has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
seanyo has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
k610 has joined #ruby
casheew has joined #ruby
Virunga has quit [Remote host closed the connection]
nari has joined #ruby
awarner has quit [Remote host closed the connection]
SuperrMann has joined #ruby
iamjarvo has joined #ruby
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
iPhoneMRZ has joined #ruby
savage- has joined #ruby
jjbohn is now known as jjbohn|afk
cousine_ has joined #ruby
nedacc has joined #ruby
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
nedacc has quit [Client Quit]
iPhoneMRZ has quit [Read error: Connection reset by peer]
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
cousine has quit [Ping timeout: 256 seconds]
jjbohn|afk is now known as jjbohn
robbyoconnor has quit [Read error: Connection reset by peer]
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
robbyoconnor has joined #ruby
v1negar has left #ruby [#ruby]
claymore has joined #ruby
Rydefalk has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
strangeworks has joined #ruby
jslowe has joined #ruby
<claymore> how does "==" test for equality? Suppose I want to define two instances of the same class as being equal when all attributes are equal (according to "=="), should I override "=="?
cousine_ is now known as cousine
dreamz__ has quit [Ping timeout: 276 seconds]
fir_ed has joined #ruby
fantazo has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
jjbohn has quit [Quit: Leaving...]
atmosx has joined #ruby
dreamz__ has joined #ruby
<apeiros_> claymore: default == implementation tests for .equal? (object identity)
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<claymore> waxjar: thanks for the link
qwerxy has joined #ruby
iPhoneMRZ has joined #ruby
<claymore> apeiros_: not sure I understand, so == and .equal? are the same?
<apeiros_> claymore: no
qwerxy has quit [Client Quit]
<apeiros_> == *defaults* to being the same as equal?
iPhoneMRZ has quit [Client Quit]
<apeiros_> the stackoverflow question has a relatively good answer
<claymore> so it's only meaningful when it's overridden?
<apeiros_> if you implement == on a comparable object, == should return true for objects where <=> returns 0 (you get that for free if you include Comparable and define <=>)
<apeiros_> claymore: um, no? define "meaningful". equal? is perfectly meaningful.
<claymore> apeiros_: erm, never mind
<claymore> apeiros_: ok, I think I'm beginning to understand now
pothibo has quit [Quit: pothibo]
gogiel has quit [Ping timeout: 260 seconds]
mysticc has joined #ruby
casheew has joined #ruby
ddd has joined #ruby
ewag has joined #ruby
instinkt has joined #ruby
JeanMertz has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
seanyo has quit [Ping timeout: 245 seconds]
Cultofmetatron has joined #ruby
viuo has quit [Ping timeout: 260 seconds]
<claymore> so now my question is: what would be the preferred way in ruby to test for equality of two instances given the criterion I used above? Override ==?
<apeiros_> claymore: is your object comparable?
<claymore> apeiros_: no
<apeiros_> i.e., can you do a < b with it?
<claymore> apeiros_: nope
<apeiros_> ok, then yes, override ==
<claymore> alright, thanks
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
savage- has quit [Quit: savage-]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
dmiller has joined #ruby
Mchl has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
anderse has joined #ruby
Erfankam has quit [Ping timeout: 268 seconds]
viuo has joined #ruby
dv_ has quit [Quit: No Ping reply in 180 seconds.]
dv_ has joined #ruby
daniel_-_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
icooba has quit [Ping timeout: 252 seconds]
Erfankam has joined #ruby
arturaz has quit [Ping timeout: 252 seconds]
srji has quit [Ping timeout: 244 seconds]
mpereira has joined #ruby
g-ram has joined #ruby
casheew has joined #ruby
noyb has joined #ruby
icooba has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
qwerxy has joined #ruby
<shevy3> Hanmac the real problem is that the USA only has two "choices". that means that change is not really possible
<shevy3> the disappointed vote always the alternative, the happy the current course. that's about for how much "choice" they have.
medik has joined #ruby
qwerxy has quit [Client Quit]
jlwestsr has quit [Ping timeout: 246 seconds]
Erfankam has quit [Ping timeout: 256 seconds]
<Hanmac> an two-choice-vote is bad enough, but it looks that some guys are not playing "nice"
darthdeus has joined #ruby
dmiller has quit [Ping timeout: 268 seconds]
Takehiro has joined #ruby
srji has joined #ruby
srji has quit [Client Quit]
<shevy3> eh not a big deal because they don't have any real choice anyway, it is so irrelevant who wins. the netto-politic isn't done by an individual person alone anyway
<shevy3> this type of voting is heavily outdated
<shevy3> I can't compile vim! :(
arturaz has joined #ruby
nari has quit [Ping timeout: 244 seconds]
<shevy3> this is all insanity
<shevy3> /usr/bin/ld /usr/i486-slackware-linux/bin/ld /usr/i686-pc-linux-gnu/bin/ld
dmiller has joined #ruby
Xeago has joined #ruby
Slivka has quit [Remote host closed the connection]
leoncame` has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: Computer has gone to sleep.]
mpereira has quit [Remote host closed the connection]
casheew has joined #ruby
mysticc has quit [Ping timeout: 264 seconds]
Takehiro has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
jlwestsr has joined #ruby
uuair has joined #ruby
mpereira has joined #ruby
pjb3 has joined #ruby
srji has joined #ruby
casheew has joined #ruby
Progster has joined #ruby
tk___ has quit [Quit: ばいばい]
<_axx> hey guys, i have a JSON.parse(json_data) in my code and i would like to limit the parsed data to a defined number of json notes. is there an easy function to do that? :)
pskosinski has joined #ruby
<pskosinski> Any links on topic how to embed Ruby in C++? In Google I am finding only links to stackoverflow :|
qwerxy has joined #ruby
<pskosinski> Well, not only, but I can't find anywhere site of official docs, etc…
instinkt has quit [Quit: leaving]
dmiller has quit [Remote host closed the connection]
seanyo has joined #ruby
jaygen has joined #ruby
Erfankam has joined #ruby
lxsameer__ has joined #ruby
mmercer has quit [Ping timeout: 245 seconds]
JarJar has joined #ruby
Neomex has joined #ruby
F1skr has joined #ruby
Neomex has quit [Client Quit]
mmercer has joined #ruby
<lxsameer__> how can i create an instance variable in a class method ?
lkba has joined #ruby
freeayu has quit [Remote host closed the connection]
SuperrMann has quit [Quit: Computer has gone to sleep.]
<apeiros_> @ivar = "value"
<apeiros_> @ lxsameer__
casheew has quit [Read error: Connection reset by peer]
fyolnish has quit [Remote host closed the connection]
casheew has joined #ruby
<lxsameer__> apeiros_: let me try
fyolnish has joined #ruby
Tuxist has quit [Remote host closed the connection]
Progster has quit [Ping timeout: 264 seconds]
casheew has quit [Read error: Connection reset by peer]
Tuxist has joined #ruby
canton7 has quit [Remote host closed the connection]
bigmac has joined #ruby
canton7 has joined #ruby
pskosinski has left #ruby ["Whatever"]
emanon_ has joined #ruby
emanon_ has quit [Client Quit]
<Karunamon> Is a raise the best way to abort a method partway through its processing?
noyb has quit [Quit: Lost terminal]
Takehiro has joined #ruby
qwerxy has quit [Quit: offski]
marius has quit []
mercwithamouth has joined #ruby
casheew has joined #ruby
ewag has quit [Ping timeout: 260 seconds]
<apeiros_> Karunamon: if it is due to an *exception*, yes
<lxsameer__> apeiros_: can you give me code snippet ?
<shevy3> dunno, depends on if you must raise or not
<apeiros_> if not, don't abort mid-method. that's called spaghetti coding
<shevy3> I usually hate if my scripts fail in raise-ways
<apeiros_> lxsameer__: can you give me a code snippet of what you try? shortened to the essential…
srji has quit [Ping timeout: 244 seconds]
<Karunamon> what i'm doing is checking a username against a list and then doing things based on if its in a database or not
<apeiros_> because I suspect that you didn't properly explain what you really want to do…
<Karunamon> and i need to bail out of the method if the username doesn't match
<apeiros_> Karunamon: sounds like you should separate that logic
<shevy3> Karunamon: if it is a standalone script you can always write a message to the user, then exit
<Karunamon> IRC bot, actually
<apeiros_> Karunamon: anyway, still the same. if it's considered to be an exception when the user is not found, yes, then raise.
Takehiro has quit [Ping timeout: 252 seconds]
<shevy3> well then raise seems counter productive or? if it would quit
<Karunamon> unless i rescued it with an error message
<Karunamon> the logic that actually checks the user is another method inside the same class
slainer68 has quit [Remote host closed the connection]
<Karunamon> so it's sort of separated
<Karunamon> returning a true/false to the invoker
<apeiros_> Karunamon: "bail out" means you test it within that method
<lxsameer__> apeiros_: i'm learning ruby, so i want to know 2 things, for now, 1) how can i set a instance variable in a class method, 2) how does "somefield" work in http://dpaste.com/824416/
<apeiros_> even if you do it by calling another one…
u89 has joined #ruby
<apeiros_> lxsameer__: that paste does not show how you intend to use that ivar in the class.
<apeiros_> and somefield :x calls A.somefield :x
<apeiros_> classes are objects, so they have methods, a self, and ivars.
uuair has quit [Ping timeout: 260 seconds]
kil0byte has joined #ruby
<lxsameer__> apeiros_: no , i don't have any idea about class method and a ivar
<Karunamon> •apeiros_• So how would one separate that logic? It seems at first glance to be inseparable.
qwerxy has joined #ruby
<apeiros_> if user_in_list? then call_that_method_which_does_something_with_user else tell_that_user_doesnt_match end
wallerdev has joined #ruby
uuair has joined #ruby
<Karunamon> well, okay. I'd gist this but it's kind of half written.. the caller is a method to write user data into a database, and i'm checking their permissions at this time.
<Karunamon> so if I tell the user something, great, but control returns to the rest of the method at that time
<Karunamon> which doesn't need to happen, because i've determined they failed the permission check
gogiel has joined #ruby
<apeiros_> lxsameer__: that's how class methods work: http://pastie.org/5181598
govinda has joined #ruby
<govinda> How is ruby better than php?
<apeiros_> Karunamon: you can use exists? queries, they're faster
<apeiros_> govinda: by being not bat-shit insane.
<Karunamon> hehe
<apeiros_> govinda: otherwise, define 'better'
<govinda> better: not worse nor equal
<apeiros_> excellent but useless definition-
<govinda> Indeed
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<govinda> But srsly nao, why are ruby advantages over php
<govinda> wich
<govinda> witch
<apeiros_> which
<govinda> Govinda is illiterate
<Karunamon> •apeiros_• Neat, didn't know that.. but the main question.. am I writing this all wrong, or should I just do a raise/rescue in the middle of my add_profile method
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
Grieg has quit [Client Quit]
sameerynho has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<apeiros_> Karunamon: can't tell from the code snippet. raise might be ok there.
lxsameer__ has quit [Ping timeout: 244 seconds]
jjbohn has joined #ruby
govinda has left #ruby ["Konversation terminated!"]
Virunga has joined #ruby
CaptainJet has joined #ruby
<bigmac> so, if i was coding a proxy, how would i scan the request for the destination port
<bigmac> i cant assume it will be port 80
<sameerynho> apeiros_: so how do you set a ivar in foo ?
<apeiros_> sameerynho: as said, @ivar = value
<apeiros_> no magic involved
irleif has quit [Quit: Computer has gone to sleep.]
<sameerynho> apeiros_: i tried that but it did not work , can you please give me an example
<apeiros_> there's exactly two ways to set an ivar, one is @ivar = value, the other is using Object#instance_variable_set.
<strangeworks> guys, is that true
Araxia has joined #ruby
<strangeworks> that ruby 2.0 is coming
Mon_Ouie has quit [Ping timeout: 244 seconds]
<apeiros_> sameerynho: *again*, show what you tried. *again* I'm sure you're poorly explaining what your problem is, or what you try to do.
<apeiros_> strangeworks: yes. preview is out.
emanon_ has joined #ruby
<sameerynho> apeiros_: ok let me dpaste you something
awarner has joined #ruby
strangeworks has quit [Quit: Leaving]
earthquake has joined #ruby
irleif has joined #ruby
yeggeps has joined #ruby
Neomex has joined #ruby
colinbm has joined #ruby
fyolnish has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
pjb3 has quit [Quit: pjb3]
Emmanuel_Chanel has quit [Quit: Leaving]
pjb3 has joined #ruby
shell0x has joined #ruby
<shell0x> hi
slainer68 has joined #ruby
<shell0x> do you have an idea how to do a json post to a https url ?
rjsamson has joined #ruby
Tuxist_ has joined #ruby
colinbm has quit [Quit: colinbm]
<apeiros_> shell0x: the same how you post a json to an http url
<shell0x> i get the error gizt.rb:35:in `<main>': undefined method `use_ssl=' for #<Net::HTTP::Post POST> (NoMethodError)
Tuxist has quit [Ping timeout: 256 seconds]
mpereira has quit [Ping timeout: 256 seconds]
vectorshelve has joined #ruby
<Xeago> choosing linux for desktop, any specifics to consider?
mercwithamouth has quit [Ping timeout: 252 seconds]
<apeiros_> shell0x: I don't think you have to do that
Morkel has joined #ruby
<apeiros_> from the docs: "In previous versions of ruby you would need to require 'net/https' to use HTTPS. This is no longer true."
jjbohn is now known as jjbohn|afk
<apeiros_> iirc, net/http in newer versions will detect the https scheme and automatically use ssl
slainer68 has quit [Ping timeout: 246 seconds]
<shevy3> cool
mahmoudimus has joined #ruby
shadowframe has joined #ruby
shadowframe has quit [Remote host closed the connection]
Tuxist_ has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
pjb3 has quit [Quit: pjb3]
banisterfiend has quit [Ping timeout: 264 seconds]
u89 has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 255 seconds]
nicoulaj has joined #ruby
manizzle has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Tania has joined #ruby
<vectorshelve> Hi... shevy3 :) long time
<vectorshelve> Is there a way I can further optimize my ruby atoi method https://gist.github.com/4012549 thanks
shadowframe has joined #ruby
clj_newb has joined #ruby
SuperrMann has joined #ruby
J-_-L has joined #ruby
u89 has joined #ruby
Takehiro has joined #ruby
qwerxy has quit [Quit: offski]
* apeiros_ wonders whether sameerynho is still dpasting…
shadowframe has quit [Remote host closed the connection]
<sameerynho> apeiros_: sorry man, i learned something while ago that may help me and i'm testing that right now
workmad3 has joined #ruby
instinkt has joined #ruby
n00b982 has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
<Hanmac> shevy3 did you see this error? RuntimeError: implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly.
<Hanmac> :D
shadowframe has joined #ruby
mercwithamouth has joined #ruby
shadowframe has quit [Remote host closed the connection]
qwerxy has joined #ruby
THE_GFR|WORK has joined #ruby
<THE_GFR|WORK> hey everyone
<THE_GFR|WORK> I need a little assistance/help with a project
<Spitfire> Ask away.
irleif has quit [Quit: Computer has gone to sleep.]
<THE_GFR|WORK> well I can't find anyone local to do it
<THE_GFR|WORK> I have a web frontend for a PREGRESQL database, built with ruby/RoR and I need someone to fully integrate an Anviz biometric timeclock I have, and I need recommendations for a credit card machine that does credit cards, digital signature, NFC, paypass, paypal, google wallet and allows us to sign our paperwork digitally.
<THE_GFR|WORK> and I'm unsure where to go to get someone
<THE_GFR|WORK> I run a small computer repair shop and I need to have the timeclock integrated so it does not use a windows machine as a passthrough...
<THE_GFR|WORK> someone said that I was crazy to try and use a device that does NFC and that I should just use the square and an ipad.
<THE_GFR|WORK> but that's not what I want
Raol has joined #ruby
irleif has joined #ruby
n00b982 has quit [Ping timeout: 245 seconds]
irleif has quit [Client Quit]
jgrevich has joined #ruby
dmiller has joined #ruby
<atmosx> THE_GFR|WORK: if you know exactly what you need to done and you can descibe it thoroughly, I'd check out elance.com
<atmosx> it's a free-lancers nest. You can get your job done there probably and get some offers.
awestroke has joined #ruby
<THE_GFR|WORK> atmosx: ahh cool, I wanted someone to come on-site possibly, to recommend equipment and all, just nobody is willing to tackle it.
<THE_GFR|WORK> locally I mean
<THE_GFR|WORK> let me check it out thanks for the good suggestion :)
stephenjudkins has quit [Quit: stephenjudkins]
<apeiros_> hm, first time I even hear about pregresql
<atmosx> THE_GFR|WORK: hmm, yeah that's kinda hard but you could just ask about the hardware in your job description.
<atmosx> apeiros_: yeah, I thought he made a spelling error
<apeiros_> seems related to postgres
<apeiros_> makes sense pre/post gres
banisterfiend has joined #ruby
QKO has quit [Ping timeout: 246 seconds]
<atmosx> well yes
<THE_GFR|WORK> arg
<THE_GFR|WORK> did I mean postgresql?
<apeiros_> no idea
<THE_GFR|WORK> I don't remember now :(
<atmosx> THE_GFR|WORK: probably
<THE_GFR|WORK> yea I guess so
<THE_GFR|WORK> anyhow
<THE_GFR|WORK> that site rocks!
<atmosx> postgresql is the most famous opensource DB, the other one is probably a mispelling
<THE_GFR|WORK> I found a ton of people
<THE_GFR|WORK> cool beans
<atmosx> THE_GFR|WORK: don't get excited :-P You must find people actually *willing* to do the job, that's why I said "if you can describe thoroughly what you need [...]"
u89_ has joined #ruby
n00b982 has joined #ruby
QKO has joined #ruby
<THE_GFR|WORK> atmosx: exactly :) sweet :D
Progster has joined #ruby
u89 has quit [Read error: No route to host]
<THE_GFR|WORK> atmosx: I tried posting on craigslist... no dice.
mfridh has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
sjbrowne has joined #ruby
daniel_-_ has quit [Ping timeout: 244 seconds]
dakine has joined #ruby
fyolnish has joined #ruby
jimeh has joined #ruby
fyolnish has quit [Ping timeout: 256 seconds]
Raol has left #ruby [#ruby]
hmans has joined #ruby
vectorshelve has quit [Quit: Page closed]
JeanMertz has quit [Ping timeout: 268 seconds]
markneumann has joined #ruby
markneumann has left #ruby [#ruby]
n00b982 has quit [Ping timeout: 252 seconds]
jgrevich_ has joined #ruby
slainer68 has joined #ruby
n00b982 has joined #ruby
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
sjbrowne has quit [Remote host closed the connection]
<shell0x> apeiros_: do you have a working example of a https post with json?
workmad3 has quit [Ping timeout: 255 seconds]
rawGem_ has joined #ruby
<shevy3> hey atmosx
slainer68 has quit [Ping timeout: 248 seconds]
casheew has quit [Read error: Connection reset by peer]
<atmosx> whats up shevy3 ? just got back from Vienna
banisterfiend has quit [Remote host closed the connection]
casheew has joined #ruby
<atmosx> I catched a cold as a souvenir, my gf liked Wien so much she said she'd love to live there. Heh, never heard any Greek (Athenians apart) stating something similar
<apeiros_> shell0x: no
<shell0x> i still run in this ssl issue
<matti> shell0x:
<matti> Ops
jlwestsr has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
Cultofme_ has joined #ruby
<shell0x> apeiros_: ok, i tried httparty and this worked with the first try ;)
<apeiros_> :)
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
Cultofmetatron has quit [Ping timeout: 256 seconds]
areil has quit [Remote host closed the connection]
jimeh has quit [Quit: Bye.]
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
J-_-L has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
u89_ has quit [Remote host closed the connection]
k610 has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
Ry__ has quit [Ping timeout: 268 seconds]
bigmac has quit [Ping timeout: 240 seconds]
Erfankam has quit [Quit: Leaving.]
Takehiro has joined #ruby
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
mengu has quit [Read error: Connection reset by peer]
Ry_ has joined #ruby
J-_-L has joined #ruby
earthquake has quit [Quit: earthquake]
hotovson has joined #ruby
jjbohn|afk is now known as jjbohn
Takehiro has quit [Ping timeout: 252 seconds]
instinkt has quit [Quit: Lost terminal]
SuperrMann has quit [Quit: Bye all :)]
J-_-L has quit [Ping timeout: 255 seconds]
u89 has joined #ruby
syamajala has joined #ruby
xsbeats has quit [Ping timeout: 252 seconds]
rakl has joined #ruby
earthquake has joined #ruby
fms has joined #ruby
rakl has quit [Client Quit]
Ry_ has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
adambeynon has quit [Client Quit]
adambeynon has joined #ruby
<THE_GFR|WORK> hey everyone I posted my job woo :)
<THE_GFR|WORK> on elance
<THE_GFR|WORK> :)
<THE_GFR|WORK> cool beans
savage- has joined #ruby
syamajala has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
failingkid has joined #ruby
aetcore has quit [Remote host closed the connection]
<failingkid> hi im trying to run a program on windows
<failingkid> but it says libcurl not found
<failingkid> i installed curl but gives same error
windowsrefund has joined #ruby
<windowsrefund> hello, does anyone know how to delete a rake task that shows up in the output of rake -T? I should mention the task no longer exists in my .rake files
aetcore has joined #ruby
krz has joined #ruby
h4mz1d has joined #ruby
joeycarmello has joined #ruby
<atmosx> failingkid: yeah windows pathnames are always an issue.
<failingkid> not very familiar with ruby
<failingkid> could you kindly tell me where to set paths?
thinkdevcode has joined #ruby
<atmosx> I have no idea because I don't use windows, sorry :-/
<Muz> windowsrefund: sure it's not still being defined/pulled in somewhere in your Rakefile?
<failingkid> :\ thanks anyways
<Muz> failingkid: this would be that your version fo Ruby was either not built against curl, or didn't ship with a version of libcurl.
<Muz> How'd you install Ruby?
<failingkid> by using the ruby installer
<failingkid> idk if this is right
<failingkid> i just did gem install curl
<failingkid> it said installed
<Muz> It's installed a set of scripts that are failing at runtime. That's a poorly designed gem IMO.
<failingkid> thanks, i need this for the program im running
<failingkid> hmm
<failingkid> Error installing curb:
<failingkid> ERROR: Failed to build gem native extension.
<failingkid> ok so it looks like i have to put curl in C"\
<failingkid> C:\
<Muz> It should mention a logfile. Bets are you haven't pointed it to the correct folder where you have libcurl and its associated headers located.
krz has quit [Quit: krz]
<Muz> You can specify the path to whatever you want, as per `gem install curb --with-curl-lib="c:/your/mum/or/whatever/" --with-curl-include="C:/something/else"`
<failingkid> i have no idea where curl is atm @_@
jjbohn has quit [Quit: Leaving...]
joeycarmello has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
stephenjudkins has joined #ruby
<failingkid> Muz
<failingkid> all the commands on that link
<failingkid> they use mingw/bin
<failingkid> i cant find that directory in the curl folder
Slivka has joined #ruby
jimeh has joined #ruby
chimkan has joined #ruby
thinkdevcode has quit [Read error: No route to host]
thinkdevcode has joined #ruby
ohsiris has joined #ruby
Astral__ has joined #ruby
hmans has quit [Quit: Linkinus - http://linkinus.com]
ohsiris1 has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
xsbeats has joined #ruby
instinkt has joined #ruby
Astral_ has quit [Ping timeout: 255 seconds]
tchebb has joined #ruby
dle has joined #ruby
Dawne has joined #ruby
Dawne has quit [Client Quit]
<dle> Hello. nuby here. Wondering what to do about gem error. sudo gem install compass -> ERROR: While executing gem ... (Gem::RemoteSourceException)
<dle> HTTP Response 302 fetching http://gems.rubyforge.org/yaml
savage- has quit [Quit: savage-]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
jlwestsr has joined #ruby
n1x has joined #ruby
maletor has joined #ruby
<windowsrefund> Muz: it is not
<windowsrefund> I created the task awhile ago but then removed it. The task still shows up in the rake -T output though
jrajav has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
nilg has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
<shevy3> dle: that command works for me
Ry_ has joined #ruby
moshee has joined #ruby
<shevy3> perhaps the resource was temporarily down
<dle> shevy3: Odd. Let me try again.
zodiak has quit [Quit: Leaving]
<shevy3> or your gem was patched by your vendor
Rydefalk_ has joined #ruby
<shevy3> if it was debian-based, then that would be my guess :)
<dle> Mac, I'm afraid. No Linux box at the moment
Rydefalk has quit [Read error: Connection reset by peer]
<dle> shevy3: Still happening. Goes for sudo gem update --system
<dle> too.
<dle> Same error exactly.
khakimov has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
Rydefalk has joined #ruby
<shevy3> hmm
<shevy3> ok I am on linux
<dle> shevy: Same goes for install the local gem from the compass archive I D/Led from github.
<dle> Phooey.
<shevy3> perhaps some mac folks on #machomebrew may know why that fails for you
sebastorama has joined #ruby
<shevy3> does "gem list" work?
<shevy3> it seems as if it cant fetch yaml data from http://gems.rubyforge.org/yaml
<shevy3> which, I assume, may only be to get all gems available
adeponte has joined #ruby
daniel_-_ has joined #ruby
<dle> shevy3: gem list seems to work. Outputs 30-odd *** LOCAL GEMS ***.
rich__ has joined #ruby
banisterfiend has quit [Remote host closed the connection]
ephemerian has joined #ruby
fir_ed has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Chryson has joined #ruby
ejholmes has quit [Quit: ejholmes]
Slivka has quit [Remote host closed the connection]
ryanf has joined #ruby
zz_Cidan has quit [Ping timeout: 264 seconds]
<dle> Something to do with*this* instance of gem. Other accesses to http://gems.rubyforge.org/yaml works.
<dle> wget shows 302 Moved Temporarily Location: http://production.s3.rubygems.org/yaml [following]
adeponte has quit [Remote host closed the connection]
<dle> Does gem use curl? curl won't follow the 302.
bwlang has joined #ruby
shevy3 has quit [Ping timeout: 255 seconds]
<rich__> dle: I think -L will make curl follow the 302 to the new location
<rich__> don't know if that helps in your case
<dle> rich__ Ah yea.
<dle> Too bad about gem though.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
snearch has joined #ruby
Karunamon has quit [Quit: —I-n-v-i-s-i-o-n— 3.3 (November '11)]
mahmoudimus has joined #ruby
Tearan has joined #ruby
havenn has joined #ruby
zz_Cidan has joined #ruby
paul_s has joined #ruby
pemulis has joined #ruby
zz_Cidan is now known as Cidan
Cidan has quit [Changing host]
Cidan has joined #ruby
ryanf has quit [Quit: broken pipes |||]
fantazo has joined #ruby
Neomex has joined #ruby
nateberkopec has joined #ruby
BadProphet has joined #ruby
THE_GFR|WORK has quit [Ping timeout: 264 seconds]
<dle> thanks rich__ and shevy3. I'll keep trying.
erichmenge has joined #ruby
slainer68 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
zarubin has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
shevy3 has joined #ruby
havenn has quit [Remote host closed the connection]
jjbohn has joined #ruby
Neomex has quit [Quit: Neomex]
rawGem_ has quit [Remote host closed the connection]
pemulis has quit [Quit: Leaving]
thone_ has quit [Ping timeout: 276 seconds]
<Hanmac> shevy3 ... why do you have an 3 in your name?
<Hanmac> did someone stole your nick?
thone has joined #ruby
drbawb has joined #ruby
<shevy3> I am using chatzilla right now
<shevy3> it did not allow me to connect via "shevy", it claimed someone else uses that nick
<shevy3> and xchat does not compile anymore it seems, for me, on newer systems... so I am a bit stuck, until I found a better IRC client :(
paul_s has quit [Quit: paul_s]
sebastorama has quit [Quit: ;)]
jjbohn has quit [Client Quit]
Hanmac is now known as shevy
<shevy> :D
shevy is now known as Hanmac
rakl has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
fyolnish has joined #ruby
Jackneill has quit [Quit: Jackneill]
skaczor has joined #ruby
jrajav is now known as shevy
<shevy> I'm a dork
shevy is now known as jrajav
petershepley has joined #ruby
BadProphet has quit [Quit: Leaving]
fyolnish has quit [Ping timeout: 268 seconds]
banisterfiend has joined #ruby
THE_GFR|WORK has joined #ruby
<reactormonk> shevy3, weechat?
chimkan has quit [Quit: chimkan]
shadowframe has joined #ruby
shadowframe has quit [Client Quit]
shadowframe has joined #ruby
haxrbyte has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
yalue has joined #ruby
rakl has quit [Quit: sleeping]
h4mz1d has joined #ruby
greenarrow has joined #ruby
rakl has joined #ruby
joeycarmello has joined #ruby
ltsstar has quit [Quit: ltsstar]
haxrbyte has quit [Ping timeout: 264 seconds]
jaygen has quit [Remote host closed the connection]
jaygen has joined #ruby
skaczor has quit [Remote host closed the connection]
shadowframe has quit [Remote host closed the connection]
n00b982 has quit [Ping timeout: 240 seconds]
joeycarmello has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Remote host closed the connection]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
greenarrow has joined #ruby
<shevy3> hmm damn I dont have banister in my current ban list
nateberkopec has quit [Quit: Leaving...]
<shevy3> reactormonk can't quite use the non-GUI clients, I always mispaste with them
wca has quit [Quit: Lost terminal]
<reactormonk> shevy3, weechat asks you whether you want to be a dick if you're pasting multi-line
AlexDenisov has joined #ruby
Dreamer3 has joined #ruby
<shevy3> hmm
shadowframe has joined #ruby
statarb3 has quit [Quit: Leaving]
rakl has quit [Quit: sleeping]
djbender has joined #ruby
claymore has quit [Quit: Leaving]
rakl has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
zodiak has joined #ruby
skcin7 has joined #ruby
shadowframe has quit [Remote host closed the connection]
sameerynho has quit [Read error: Connection reset by peer]
<banisterfiend> shevy3: it's called "ignore list" you retard
caleb_io has joined #ruby
<banisterfiend> ban lists are for channels, set by the channel operator
`heliar_ has quit [Read error: Operation timed out]
xsbeats has quit [Ping timeout: 248 seconds]
<shevy3> banisterfiend do the world a favour and shut up
<banisterfiend> shevy3: the world would be much happier if you stopped your nonsense babbling and stupidity
Tearan has quit [Quit: Sleepy Badger....]
<shevy3> that's the reason why pry is unusable - little egotripper developing it
<banisterfiend> shevy3: "pry is unusable" ? :) Also, calling you an idiot isn't ego-tripping, it's just stating a fact ;)
<shevy3> got some more horseporn for me banisterfiend?
<shevy3> after all that was your average maturity level in your lame and boring PRIVMSG spam
<banisterfiend> shevy3: i'm sure you can find it yourself if that's what you're into
mneorr has quit [Remote host closed the connection]
derek_ has joined #ruby
<shevy3> oh, I am not into it. you were the only one to ever spam me with horseporn so far
<banisterfiend> shevy3: get over yourself, and get an education
<shevy3> hey, I am not the one to spam in PRIVMSG :>
jamjam has joined #ruby
<banisterfiend> shevy3: no, but you spam #ruby with nonsense on a daily basis
<shevy3> leave if you can't stand it :)
Erfankam has joined #ruby
<banisterfiend> shevy3: or i could just ban you.
bigmac has joined #ruby
<shevy3> no you cant
derek_ has quit [Client Quit]
<banisterfiend> shevy3: ..i can :)
allanm has quit [Read error: Connection reset by peer]
<shevy3> no you cant
<shevy3> this is not #pry after all
<shevy3> on #pry you already did kick-ban me :)
bigmac is now known as i8igmac
nateberkopec has joined #ruby
alem0lars has quit [Quit: quit]
h4mz1d has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
shevy3 was kicked from #ruby by banisterfiend [shevy3]
tommyvyo has quit [Quit: Computer has gone to sleep.]
shevy3 has joined #ruby
<TheNumb> shevy: I can ban you.
<shevy3> wow, lowering #ruby to #pry standards now?
<banisterfiend> shevy3: that was just because i'm sick of you constantly bringing up our beef on #ruby, if you hvae a problem with me, then msg me in private, don't pollute #ruby with whatever BS you have on your mind
<shevy3> all the better now when I can point out what you do banisterfiend :>
bradhe has joined #ruby
<banisterfiend> shevy3: if you have a problem, /msg me, stop making little comments and remarks on #ruby. Thanks.
resure has joined #ruby
<shevy3> I don't care about what you have a problem with and what not. #ruby isn't your personal channel unlike #pry dude
Erfankam has quit [Quit: Leaving.]
wargasm is now known as wargasm08
resure has left #ruby [#ruby]
<banisterfiend> shevy3: #ruby doesn't deserve to be polluted with personal beefs, msg me in private or just keep quiet. If you keep bringing up that stuff here including "oh i haven't added banister to my ban list" (which doenst even make a lot of sense) I'll kick you again
n00b982 has joined #ruby
<shevy3> your opinion is entirely irrelevant. #ruby isn't your channel and I told you before, your abuse is entirely irrelevant. but it wonderfully shows people the quality of the pry author :)
<TheNumb> Shut up both of you >.>
<banisterfiend> shevy3: it's not my opinion, just #ruby is not the forum for you airing your beef about me
<shevy3> who kicked whom?
<wargasm08> am i allowed to solicit a venture in here?
<reactormonk> banisterfiend, shevy3, calm down children and solve that in a civilized way - I'll get two knifes and will draw a circle on the ground.
<shevy3> he kicked me, not the other way around
<reactormonk> so you want a gun instead of a knife?
<shevy3> he drew the first blood
tommyvyo has joined #ruby
shinnya has quit [Quit: ZNC - http://znc.sourceforge.net]
emanon_ has quit [Read error: Connection reset by peer]
emanon_ has joined #ruby
<wargasm08> i didn't get a response
<wargasm08> so here goes
<wargasm08> We're about to launch the alpha version of our new ad serving platform. If you're able to provide us installs, we can make a lot of money together. Anyone involved in content lockers, file sharing sites, porn sites, pay per download networks, freeware, or any web property that gets installs of some sort should hit me up and I'll show you what we're doing.
joeycarmello has joined #ruby
Bosma has quit [Quit: leaving]
und3f has quit [Ping timeout: 256 seconds]
mcero has quit [Quit: mcero]
Morkel_ has joined #ruby
<djbender> Whelp had enough of #ruby today.
djbender has left #ruby [#ruby]
AlexDenisov has left #ruby [#ruby]
wargasm08 has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
Ry_ has quit [Quit: Ry_]
GoGoGarrett has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
My_Hearing has joined #ruby
Cidan has quit [Ping timeout: 264 seconds]
fyolnish has joined #ruby
mpereira has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
richo has quit [Quit: laterz, norbs.]
yalue has quit [Quit: Leaving]
zz_Cidan has joined #ruby
JarJar has quit [Quit: Leaving]
ltsstar has joined #ruby
nicoulaj has quit [Remote host closed the connection]
fyolnish has quit [Ping timeout: 260 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
cousine has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
cousine has joined #ruby
zz_Cidan has quit [Ping timeout: 252 seconds]
jcaudle has joined #ruby
pjb3 has joined #ruby
un1x01d has quit [Remote host closed the connection]
medik has quit [Quit: Leaving]
jcaudle has quit [Client Quit]
cousine has quit [Ping timeout: 256 seconds]
und3f has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Takehiro has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
und3f has quit [Client Quit]
cakehero has joined #ruby
qwerxy has quit [Quit: offski]
instinkt has quit [Quit: leaving]
jcaudle has joined #ruby
methoddk has joined #ruby
Axsuul has joined #ruby
colinbm has joined #ruby
jcaudle has quit [Client Quit]
pjb3 has quit [Quit: pjb3]
<csmrfx> 8)
<csmrfx> need help, dementia
jcaudle has joined #ruby
<csmrfx> whats the method that returns true if block returns true for every Array element?
colinbm has quit [Quit: colinbm]
<Hanmac> "all?"
<csmrfx> ahh, thank you!
Iszak has joined #ruby
<csmrfx> 8)
jipiboily has joined #ruby
<csmrfx> Can a module have a method that automatically calls all of it's methods?
n00b982 has quit [Read error: Connection reset by peer]
<csmrfx> (alternatively, how to slap a list of modules methods into an Array?)
<Hanmac> sample: Enumerable.instance_methods
u89 has quit [Read error: Connection reset by peer]
forced_request has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
<csmrfx> Yes!
* csmrfx puts all the tests into a module and then has one function in it that calls each
crackfu_ has joined #ruby
daniel_- has joined #ruby
pac1 has joined #ruby
My_Hearing is now known as Mon_Ouie
daniel_-_ has quit [Ping timeout: 264 seconds]
<csmrfx> Hmm, can a method tell which module it is in?
jcaudle has quit [Quit: jcaudle]
<Banistergalaxy> Csmrfx yes
Neomex has joined #ruby
Neomex has quit [Client Quit]
<csmrfx> Ey Mr. Banner
<csmrfx> thoth u were upside down down there in the land of Oz
Guest96590 is now known as taec
<Banistergalaxy> In holland
manizzle has joined #ruby
Xeago has joined #ruby
<Iszak> Is there ea standard way to document ruby/rails code?
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
u89 has joined #ruby
mengu_ has quit [Remote host closed the connection]
<csmrfx> Banistergalaxy you havin a pot luck holiday?
tsousa has joined #ruby
<csmrfx> thoth they ban'd that, Ban
<tsousa> why this does not work http://dpaste.com/824555/
qwerxy has joined #ruby
<csmrfx> tsousa: looks fine to me
bigmcq77 has joined #ruby
<tsousa> What you guys recommend to learn about classes in ruby?
<csmrfx> write em
<tsousa> i finished cody academy and they dont teach OO
<csmrfx> find interesting and real problems you want to solve
<csmrfx> then start solving
kirun has quit [Quit: Client exiting]
<csmrfx> __callee__ returns nil
awarner has quit [Ping timeout: 268 seconds]
arturaz has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
dakine has quit [Ping timeout: 256 seconds]
* csmrfx wonders where is that var hiding
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
freakazoid0223 has joined #ruby
<tsousa> csmrfx, what you recommend for a first project?
<csmrfx> tsousa I am not you.
<csmrfx> I made a physical simulation of a deck of cards, shuffling
nateberkopec has quit [Quit: Leaving...]
<tsousa> csmrfx, yes but what did you do?
<csmrfx> tsousa I am not you.
<csmrfx> I made a physical simulation of a deck of cards, shuffling
<csmrfx> tsousa: I think *you* have to work on reading comprehension, primarily
workmad3 has joined #ruby
koshii has quit [Ping timeout: 248 seconds]
tsousa has quit [Quit: Saindo]
koshii has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9]
<csmrfx> ah well
<csmrfx> at least I found .module_eval("puts name")
keyvan has quit [Remote host closed the connection]
xsbeats has joined #ruby
[Neurotic] has joined #ruby
J-_-L has joined #ruby
pjb3 has joined #ruby
qwerxy has quit [Quit: offski]
Araxia has quit [Quit: Araxia]
<i8igmac> i cant find any reliable ruby proxy... any one know of any good ruby proxy
shammancer has joined #ruby
mityaz has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
keyvan has joined #ruby
mklappstuhl has joined #ruby
<shell0x> does anyone has some experience with datamapper?
wpaulson has joined #ruby
colinbm has joined #ruby
tatum_O_o has joined #ruby
cableray has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
Morkel has quit [Quit: Morkel]
caleb_io has quit [Quit: caleb_io]
roadt_ has quit [Ping timeout: 268 seconds]
dakine has joined #ruby
jjbohn has joined #ruby
colinbm has quit [Quit: colinbm]
<csmrfx> Why it no call each method in the module? module Wat; def Da; self.instance_methods.each{|m| p m; m.send()}; end; end
<csmrfx> i8igmac: I bet you dont really want a ruby proxy
<workmad3> csmrfx: because you're doing it wrong
statarb3 has quit [Quit: Leaving]
osvico has joined #ruby
<csmrfx> shell0x: do not ask to ask, ask
h4mz1d has quit [Ping timeout: 265 seconds]
<csmrfx> workmad3: well, instance_methods is the only way I can think of to get the method names
rasa has joined #ruby
<workmad3> csmrfx: yes, but calling send on a symbol or a string isn't what you want to do :P
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<csmrfx> workmad3: yeah, I was hoping there was some schmyntactic sugars on top
blacktulip has quit [Read error: Connection reset by peer]
Nisstyre has quit [Quit: Leaving]
h4mz1d has joined #ruby
<csmrfx> hey! at least I didn't eval
<rasa> why is running 'source /usr/local/rvm/scripts/rvm' instead a bash script causing the bash script to exit prematurely?
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
<csmrfx> I think I got it
<shell0x> csmrfx: i try to get this db setup script running, but it fails with Cannot find the parent_model Books for Authorship in books (NameError) https://gist.github.com/bcee0940f93fce64a22c
<csmrfx> Why it no call each method in the module? module Wat; def Da; self.instance_methods.each{|m| p m; self.method(m).send()}; end; end
<csmrfx> oops
<csmrfx> I meant, something like:
<csmrfx> module Wat; def Da; self.instance_methods.each{|m| p m; self.method(m).send()}; end; end
Nisstyre has joined #ruby
manizzle has quit [Ping timeout: 240 seconds]
<shell0x> ah got it
<shell0x> typo -.-
<Hanmac> module Wat; def Da; self.instance_methods.each{|m| p m, self.send(m)}; end; end
darthdeus has quit [Ping timeout: 246 seconds]
<workmad3> csmrfx: ok, so now - a) only classes and modules respond to instance_methods, your method will be mixed in and therefore will be (most likely) called on something that doesn't respond to instance_methods
<csmrfx> I get ArgumentError: no method name given, Hanmac
<workmad3> csmrfx: b) on top of that, the methods in instance_methods are methods available on an instance, not on the object itself
ltsstar has quit [Quit: ltsstar]
<csmrfx> workmad3: a) instance_methods is meant for the module
<workmad3> csmrfx: c) method returns a *callable* (hint, hint)
bigmcq77 has joined #ruby
<workmad3> csmrfx: yes, but 'self' won't refer to the module inside the method
<workmad3> csmrfx: it'll refer to the object you called the method on
werdnativ has joined #ruby
<csmrfx> Well, it *does* return a list of the methods as symbols
<csmrfx> thats all I know. lol
swarley has joined #ruby
<workmad3> csmrfx: what you probably want is 'module Wat; def da; Wat.instance_methods.map(&:method).each(&:call); end; end'
<workmad3> err, sorry, not quite that
<csmrfx> thats neat except, too bad here syntaxis carbs cant be used cause need to test for the method running the methods and skip that (return true)
<workmad3> huh?
rich__ has quit [Ping timeout: 252 seconds]
<workmad3> english helps btw :P
shammancer has quit [Remote host closed the connection]
<workmad3> anyway, the .map won't quite work there :( Wat.instance_methods.map{
<workmad3> |m| method(m)}.each(&:call)
<csmrfx> ie. module Tests; def run_tests; # code to see if every method on this module returns true, except return true for this method; end; def other_test_method; #etc end; end
shammancer has joined #ruby
alee has quit [Remote host closed the connection]
<csmrfx> .all? do |m| m.name == "run_tests" or m.call() end
<csmrfx> or something
nga4 has joined #ruby
clementine has joined #ruby
<csmrfx> call just didn't work, it's what I tested first, must have had the wrong syntax
GoGoGarrett has quit [Remote host closed the connection]
<workmad3> you need to use a callable, which symbols aren't
manizzle has joined #ruby
Slivka has joined #ruby
<csmrfx> Hmm, except maybe this should be a mix-in and the Tests module should be mixed into another module whose methods it will then test 8D
<workmad3> you'd need to to_proc a symbol first (which is another option... Wat.instance_methods.reject{|m| m == :run_tests}.map(&:to_proc).map.with_object(self, &:call).all?
shell0x has quit [Quit: Computer has gone to sleep.]
xsbeats has quit [Ping timeout: 256 seconds]
clementine has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
somazero has joined #ruby
<csmrfx> hm, it is all coming back to me now...
J-_-L has quit [Quit: Leaving.]
<Hanmac> workmad3 it does not work, because with_object returns that object
<Hanmac> so the return that you give to with_object is ignored
<workmad3> Hanmac: ah, bleh
<workmad3> silly with_object :P
<Hanmac> yeah i was catched in this trap too :D
hotovson has quit [Remote host closed the connection]
Orcris has joined #ruby
<Hanmac> Wat.instance_methods.reject{|m| m == :run_tests}.all?(&self.method(:send))
tatum_O_o has quit [Ping timeout: 245 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
alee has joined #ruby
<csmrfx> Oh yes
robustus has quit [Quit: ZNC - http://znc.in]
<csmrfx> and it even looks very nice
<arietis> not trying to troll or something but do you think ruby will become more popular than python someday?
savage- has joined #ruby
hotovson has joined #ruby
<Hanmac> arietis imo both are similary ... like twin sisters ... (and ruby is the evil one :D)
<arietis> i like language so far but not sure if it's worth learning
<arietis> learning deep and in depth
justinmcp has joined #ruby
<workmad3> arietis: language comparison isn't really a popularity contest
awarner has joined #ruby
<csmrfx> So here in effect: http://pastie.org/5184764
nyuszika7h has quit [Remote host closed the connection]
<Hanmac> csmrfx there are test--suits that does the job for you
<csmrfx> hm, I still get the same error though
<csmrfx> ArgumentError: no method name given
<csmrfx> hm, those need to be singleton-methoded or something
nyuszika7h has joined #ruby
<csmrfx> "module function" or what is it called
<csmrfx> oh, and I do know there are all kinds of test whizoo's for ruby
<csmrfx> I dont want any whizoo's, just want to add a module with simple methods that do one test each in plain ruby
<csmrfx> but would be cool if you could have the module call each
khakimov has quit [Quit: Computer has gone to sleep.]
jslowe has quit [Quit: Leaving]
Proshot has joined #ruby
jlwestsr has joined #ruby
* csmrfx metaprogramming wizerd-wanab
tatum_O__ has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
apeiros_ has joined #ruby
DaDaDOSPrompt has quit [Read error: Connection reset by peer]
crackfu_ has quit [Remote host closed the connection]
mpereira has quit [Read error: Connection reset by peer]
rasa has left #ruby [#ruby]
crackfu_ has joined #ruby
caleb_io has joined #ruby
mengu has joined #ruby
Takehiro has joined #ruby
crackfu_ has quit [Ping timeout: 276 seconds]
<i8igmac> csmrfx: i want to manipulate the data with ruby... maybe i can do this another way?
fir_ed has joined #ruby
<i8igmac> all my testing always ends up 90% workable witch is not reliable
tatum_O__ has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
<csmrfx> lol I get the procs but how do I call the proc? I tried proc.call() and call(proc)
<csmrfx> module Tsts; def run_tests; Tsts.instance_methods.reject{|m| m == :run_tests}.all?{ |m| p call(m.to_proc.call) }; end; def a_me; true; end; extend Tsts; end; Tsts.run()
<csmrfx> i8igmac: yeah I just want simple ruby tests to see if something breaks during dev
emergion has joined #ruby
<csmrfx> i8igmac: well many different ways to work with that kind of data
<csmrfx> not sure but I think that stuff is railsisms, so maybe #ror or something uses a lot of datamapper
awarner has quit [Remote host closed the connection]
savage- has quit [Quit: savage-]
samuel02 has joined #ruby
u89 has joined #ruby
anderse has quit [Quit: anderse]
average_drifter has joined #ruby
<average_drifter> what's a good way of visualizing activity patterns ?
<average_drifter> like each hour
yxhuvud has quit [Ping timeout: 255 seconds]
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<csmrfx> Why "no receiver given"? Isn't the receiver the proc _p? > module Tsts; def run_tests; Tsts.instance_methods.reject{|m| m == :run_tests}.all?{ |m| _p = m.to_proc; p _p; _p.call(); }; end; def a_me; true; end; extend Tsts; end; Tsts.run_tests()
erichmenge has quit [Quit: Be back later]
emergion has quit [Quit: Computer has gone to sleep.]
<csmrfx> average_drifter: use some of the graph gems perhaps?
tbrock has joined #ruby
<tbrock> guys, whats the best way to get a class to clean up after itself, i.e. when its cleaned up or goes out of scope to remove files it created
chrisja has joined #ruby
Rix has quit [Ping timeout: 244 seconds]
Araxia has joined #ruby
<csmrfx> keep book of files? or use temp dir and have OS remove files for you?
<apeiros_> csmrfx: with to_proc, the first argument passed is the receiver.
<apeiros_> google for the Symbol#to_proc definitions before 1.8.7
<csmrfx> I did test with call(_p) - same error
jjbohn has quit [Quit: Leaving...]
<csmrfx> Tsts.call(_p) => same error. Is it _p.call(_p) then?
u89 has quit [Remote host closed the connection]
jjbohn has joined #ruby
<tbrock> csmrfx yea i see mktmpdir looks good or I can use at_exit
<csmrfx> Oh, sorry, Tsts.call(m.to_proc) => NoMethodNameError: undefined method `call` for Tsts:Module
cakehero has quit [Quit: Computer has gone to sleep.]
Rix has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<csmrfx> Merry go round. Seems it is just Tsts.send(m) that works.
pu22l3r has joined #ruby
zleslie has left #ruby ["WeeChat 0.3.8"]
Astral__ has quit [Read error: Connection reset by peer]
Astral__ has joined #ruby
maxer has joined #ruby
elico has joined #ruby
sheerun has joined #ruby
linoj has joined #ruby
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
iPhoneMRZ has joined #ruby
philcrissman has joined #ruby
thinkdevcode has joined #ruby
rich__ has joined #ruby
Iszak has quit []
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<csmrfx> Yes it does work. Autorunning tests. http://pastie.org/5185433
<csmrfx> of course need to run need to > include "ContainingModule"; Tests::run_tests()
thinkdevcode has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has quit [Read error: Connection reset by peer]
dangerousdave has quit [Ping timeout: 264 seconds]
CaptainJet has quit [Ping timeout: 245 seconds]
clementine has joined #ruby
samuel02 has quit [Remote host closed the connection]
i8igmac has quit [Quit: Leaving]
samuel02 has joined #ruby
`brendan has joined #ruby
CaptainJet has joined #ruby
pac1 has joined #ruby
h4mz1d has quit [Ping timeout: 265 seconds]
mahmoudimus has joined #ruby
sn0wb1rd has joined #ruby
cakehero has joined #ruby
seanyo has quit [Ping timeout: 256 seconds]
khakimov has joined #ruby
awestroke has quit [Remote host closed the connection]
repl_ has joined #ruby
samuel02 has quit [Ping timeout: 248 seconds]
repl_ has quit [Remote host closed the connection]
repl_ has joined #ruby
marius has joined #ruby
<sheerun> > "Test"
<repl_> Test
swex has quit [Ping timeout: 264 seconds]
<sheerun> Hope nobody is going to ban it this time
<apeiros_> I will, if it doesn't have precautions against abuse in public…
nari has joined #ruby
<apeiros_> > "test"*100
<repl_> testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest
<sheerun> > What do you mean?
<repl_> (SyntaxError) <script>:1: syntax error, unexpected end-of-file
<sheerun> apeiros_: what do you mean?
<apeiros_> I mean if he can be used to spam the channel, he'll be banned
<csmrfx> > Dir[*].entries
<repl_> (SyntaxError) <script>:1: syntax error, unexpected tRBRACK
<csmrfx> > Dir["*"].entries
<repl_> ["project", "multibot.sh", "multibot.log", "build.sbt", "target", "src"]
alanp_ has quit [Read error: Operation timed out]
<csmrfx> 8P
<csmrfx> > Dir["../*"].entries
<repl_> []
<csmrfx> > Dir["../../*"].entries
<repl_> []
<csmrfx> > Dir["../../"].entries
<repl_> []
alanp has joined #ruby
<sheerun> It has read only access to it's own directory
rich__ has quit [Ping timeout: 255 seconds]
<sheerun> Feel free to read the source ;)
<sheerun> @help
<repl_> (>) ruby (%reset), (>>) javascript, url: github/multibot
<sheerun> @slap csmfrx
philcrissman has quit [Remote host closed the connection]
<sheerun> @slap csmrfx
khakimov has quit [Quit: Computer has gone to sleep.]
stephenjudkins has joined #ruby
jarred_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
Araxia has quit [Read error: Connection reset by peer]
Araxia has joined #ruby
jjbohn has joined #ruby
jarred_ has quit [Client Quit]
Vert has joined #ruby
Slivka has quit [Remote host closed the connection]
Araxia has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
repl_ has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
elico has quit [Quit: elico]
Orcris has quit [Ping timeout: 244 seconds]
mhag has quit [Remote host closed the connection]
nemesit has quit [Quit: Leaving...]
mneorr has joined #ruby
nignaztic has joined #ruby
Araxia has joined #ruby
erry_ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
erry has quit [Killed (sturgeon.freenode.net (Nickname regained by services))]
erry_ is now known as erry
cableray has quit [Quit: cableray]
tbrock has quit [Quit: Computer has gone to sleep.]
moshee has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 248 seconds]
pu22l3r_ has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
nazty has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
sjbrowne has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
sjbrowne has left #ruby [#ruby]
fyolnish has joined #ruby
medik has joined #ruby
jcaudle has joined #ruby
jipiboily has quit [Ping timeout: 246 seconds]
fyolnish has quit [Ping timeout: 240 seconds]
jipiboily has joined #ruby
bigmac has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
<csmrfx> > File.read "../../usr/var/passwd"
<csmrfx> > "huh"
<apeiros_> 00:17 repl_ has left IRC (Ping timeout: 255 seconds)
jjbohn has quit [Quit: Leaving...]
<swarley> how about "/etc/passwd" :p
<csmrfx> B=)
jenrzzz has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
jamjam has quit [Ping timeout: 252 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
pjb3 has quit [Quit: pjb3]
stephenjudkins has joined #ruby
shammancer has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<sheerun> Yeah, you've managed to hack it after 5 minutes, gratz ;)
clementine has quit [Remote host closed the connection]
Cultofme_ has quit [Remote host closed the connection]
jjang has joined #ruby
wizard` has joined #ruby
krazyj has joined #ruby
<Hanmac> sheerun i cant resist it :D
repl_ has joined #ruby
jcaudle has quit [Quit: jcaudle]
<sheerun> > File.read "../../usr/var/passwd"
<repl_> (Errno::ENOENT) ../../usr/var/passwd
<sheerun> In your ass ;)
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
beilabs has quit [Ping timeout: 252 seconds]
<sheerun> > "test"
<sheerun> Hanmac broke it again. Inifinite loop :)
maxer has quit [Quit: maxer]
repl_ has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
<Hanmac> sheerun: the bot must run the user requests each in an different thread with timeout
nari has quit [Read error: Operation timed out]
<sheerun> I'll consult it with my master
fantazo has quit [Ping timeout: 245 seconds]
Virunga has quit [Read error: Connection reset by peer]
pjb3_ has joined #ruby
osvico has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Ping timeout: 252 seconds]
jonan has joined #ruby
jjbohn is now known as jjbohn|afk
Araxia has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
irb_ has joined #ruby
<sheerun> Hanmac: try now :)
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
bradhe has quit [Remote host closed the connection]
khakimov has joined #ruby
<Hanmac> > loop {}
<Hanmac> > 1
<irb_> #<Sandbox::TimeoutError: Sandbox::Safe timed out>
<irb_> => 1
<csmrfx> > loop {}
<csmrfx> > loop {}
<irb_> #<Sandbox::TimeoutError: Sandbox::Safe timed out>
<irb_> #<Sandbox::TimeoutError: Sandbox::Safe timed out>
irb_ has quit [Killed (idoru (Spam is off topic on freenode.))]
<csmrfx> oops
linoj has quit [Quit: linoj]
tommyvyo has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
u89 has joined #ruby
<csmrfx> hm, idoru is an automated spam bot
hotovson has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
jphpsf has quit [Quit: Leaving]
linoj has joined #ruby
<jrajav> Uh-oh
<jrajav> Someone else is trying to make a bot?
jjbohn|afk has quit [Quit: Leaving...]
<jrajav> :P