<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?
<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.
<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:
<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?
<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
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 ?
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]
<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
<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 "=="?
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 ==?
<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
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
<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
* 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 ;)
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>
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]
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?
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?
<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))