apeiros_ changed the topic of #ruby to: programming language || ruby-lang.org || Paste >3 lines of text in http://pastie.org || Rails is in #rubyonrails
<swarley> try require 'v8'; k = V8::Context.new; k['IO'] = IO; k.eval('var lol = new IO()')
<swarley> i dare you
<davidcelis> Ontolog: you get a C backtrace when ruby crashes
<swarley> lol
<davidcelis> swarley: that seems kinda meta, dude
<davidcelis> i dont think i wanna do that
<swarley> it will crash it
<swarley> and give you a stack trace
<swarley> lol
danishkhan has joined #ruby
<swarley> i make
<swarley> tons of stupid shit every day
<swarley> i have no idea why
<Ontolog> i didn't get a C backtrace
<swarley> really?
<swarley> it didnt burn to all hel?
<swarley> hell*
<Ontolog> ruby(31768,0x7fff73a08960) malloc: *** error for object 0x7ff85c014020: pointer being freed was not allocated
<Ontolog> that's basically what i got
<swarley> from doing what?
<Ontolog> i want to know the last line of *Ruby* code to execute before that
<swarley> oh
<swarley> uh
<Ontolog> swarley: that's the thing, i don't know!
<swarley> no idea
<Ontolog> lol
ephemerian has joined #ruby
<swarley> lol
<swarley> well
<swarley> i have no idea tbh
<Ontolog> i guess if ruby crashes it is impossible for ruby to then print a stack trace :p
<Ontolog> unless! there is something like ptrace for ruby
<davidcelis> dude you should have gotten a backtrace if ruby actually crashed
<davidcelis> except it'll be a C backtrace
rexbutler has joined #ruby
<swarley> yeah
<swarley> also what version
<Ontolog> *** set a breakpoint in malloc_error_break to debug
<Ontolog> Abort trap: 6
<Ontolog> the only other output was that ^^^
h4mz1d has joined #ruby
<rexbutler> Question: when I do '*asdf*' in textile, it not only gives me asdf wrapped in <i>'s, but also in <p>'s... is there a way to change this?
<swarley> that is probably to make it XHTML valid or something
<rexbutler> (Suggestions for a better place to ask this appreciated :) )
<swarley> i personally use very few gems of that nature
<swarley> i have on idea
<swarley> sorry
wmoxam has joined #ruby
albemuth has joined #ruby
freeayu has joined #ruby
<shadoi> rexbutler: what if you want more than one line to be italicized? There's not really any other way to do that.
shevy has joined #ruby
}0 has joined #ruby
<shadoi> rexbutler: nevermind, ignore me. I'm enjoying some nice tasty crack.
<rexbutler> shadoi: :)
jcromartie has joined #ruby
tommyvyo has joined #ruby
jcromartie has joined #ruby
seanstickle has joined #ruby
<rexbutler> Yeah... when I send plain text to RedCloth, I want the same thing back. The answer has to be on one of these pages I'm looking at...
tommyvyo has joined #ruby
ap0gee has joined #ruby
Abhinav11 has joined #ruby
<robert_> so, is there a way I can find out what method triggered a NoMethodError exception from within the rescue block?
<fowl> robert_: its in the error.message
<robert_> yeah but that's not very useful to me if I want JUST the method name
lkba has joined #ruby
<fowl> begin; 5.poop; rescue => e; p e.message; end
<fowl> do some regex on it
lampe2 has joined #ruby
<robert_> didn't your mother ever teach you not to depend on magic strings? :p
<fowl> ie look for `(this)'
<swarley> idk
<fowl> robert_: why not? you can depend on the error message not to change
<fowl> at least until the next version
<robert_> precisely my point.
<swarley> lol
<swarley> robacarp,
<swarley> .
<swarley> sorry
<swarley> robert_,
<swarley> e.name
sbanwart has joined #ruby
<fowl> your code prob wont be compatible with 2.0 anyways
<swarley> Construct a NoMethodError exception for a method of the given name called with the given arguments. The name may be accessed using the name method on the resulting object, and the arguments using the args method.
<robert_> I don't see .name in there, tohugh
<robert_> though*
<swarley> [38] pry(main)> begin; 5.poop; rescue => e; e.name; end
<swarley> => :poop
<fowl> oh yeah
<robert_> oh nm
<fowl> cool find
<robert_> it should be in the Method list
<robert_> :p
<robert_> cos I was looking there
<swarley> not unless you have one created
<swarley> did you do
lynrix has joined #ruby
<swarley> k = NoMethodError.new("this is a test", "testie")
<swarley> ?
<fowl> robert_: do this: cd NoMethodError.new ls -m
<ged> Or you can look in the e.backtrace.
<swarley> because NoMethodError.methods will just contain Class.methods
<fowl> swarley: cd NoMethodError.new ls -m #list methods
<swarley> or i can just RDOC
<swarley> lol
<fowl> swarley: typing show-method or $ from a repl is faster than that
fbernier has joined #ruby
<lampe2> hey i got some problems with a gem. i can not use the mdbconnect.rb methods can some one help me? here is the code https://github.com/lampe/lommongo/tree/master/lib
<swarley> you didnt supply a name argument in creating the error
<swarley> you need to supply NoMethodError.new(message, name)
<fowl> maybe you do to throw it, but to create it just do NoMethodError.new
Teddy2steper has joined #ruby
<SkyRim> swarley: \o/ gist is workng again
<swarley> it wont give you a .name method though
<swarley> lol
<swarley> \o/
<fowl> swarley: eh?
hooper has joined #ruby
<swarley> never mind
<swarley> sorr
<swarley> y
<fowl> imagebanana, where the studs upload ;)
i8igmac has joined #ruby
Karmaon has joined #ruby
<SkyRim> fowl: fowldogg, u should be using gist instead of screenshots
<SkyRim> fowl: screenshots are very wasteful of internet resources and cause pollution
<fowl> good
<SkyRim> gists are made of paper and are easier to recycle
<zandt> polluter!
<SkyRim> images take 1000s of years to break down
<fowl> i hope my pixels are choking your pipes forever
<SkyRim> fowl: are you coming on to me
<SkyRim> zandt: he's a terrible flirt
<zandt> it sounded hot to me
<zandt> but I have no taste.
<SkyRim> fowl: do you miss uncle spooner
pspeter3 has joined #ruby
}0 has joined #ruby
}0 has joined #ruby
thone has joined #ruby
chson has joined #ruby
tommyvyo has joined #ruby
liluo has joined #ruby
JohnD has joined #ruby
frishi has joined #ruby
mickn has joined #ruby
<JohnD> Hello, anyone can help? http://pastebin.com/DbVmXume
bl3k has joined #ruby
luxurymode has joined #ruby
CheeToS has joined #ruby
berserkr has joined #ruby
<swarley> [1] pry(main)> gist -f cpuinfo.rb
<swarley> Gist created at https://gist.github.com/f282b9b74bc96725a199 and added to clipboard.
<swarley> =]
danishkhan has joined #ruby
Beoran_ has joined #ruby
<SkyRim> swarley: you can also gist methods, and repl content (with -i)
<SkyRim> swarley: gist -h ftw
<SkyRim> swarley: though, github have slightly changed the api so it doesnt seem to gist with syntax highlighting for some reason, ill fix that soon
<lampe2> can someone say why i cant make a new object of the class MdbConnect ? files: https://github.com/lampe/lommongo/tree/master/lib
dwon has joined #ruby
<swarley> lampe2, what is the error?
ZachBeta has joined #ruby
tommyvyo has joined #ruby
bricker88 has joined #ruby
<lampe2> swarley, lommongo.rb:5:in `<class:Lommongo>': undefined method 'new' for MdbConnect:Module (NoMethodError)
<swarley> oh
<swarley> its a module
<swarley> not a class
<SkyRim> swarley: why is your indentation so trippy
<swarley> idk
<swarley> blame Kate
<SkyRim> swarley: use emacs
<swarley> lampe2, what is the code you are using to create the object
<swarley> it should me Lommongo::MdbConnect.new
<swarley> be*
<lampe2> swarley, db = MdbConnect.new
<swarley> are you within the Lommongo name space?
fearoffish has joined #ruby
liluo has joined #ruby
<swarley> try Lommongo::MdbConnect.new
<lampe2> swarley, lommongo.rb:4:in `<module:Lommongo>': uninitialized constant Lommongo::MdbConnect (NameError)
<swarley> oh
<swarley> hm
gen0cide_ has joined #ruby
<swarley> well you are in the namespace
<lampe2> swarley, i push me code to github so you can see the new one
<swarley> oka
<swarley> y
<lampe2> swarley, so its upto date
<lampe2> iam typing into the console: ruby lommongo.rb in the lib folder
<swarley> kk
<swarley> i'll pull now
<lampe2> oh there is a typo ...
<swarley> def new
<swarley> puts "hello"
<swarley> end
<swarley> take that out first of all
<swarley> you'll just want initialize if anythign
<swarley> anything*
<lampe2> still the nameerror :(
nonotza has joined #ruby
<swarley> i fixed it
<swarley> lampe2,
<swarley> you had two errors
<swarley> first, the module typo
<lampe2> yes
<swarley> and then, you either want to use (this is in lommogo.rb)
<swarley> require_relative "lommongo/version"
<swarley> require_relative "lommongo/mdbConnect"
williamcotton has joined #ruby
<swarley> or load "lommongo/version.rb" etc
<otters> require_relative exists
<otters> are you fucking kidding me
<swarley> no
<swarley> lol
<swarley> i use it sooooo much
<otters> this...this changes everything
<swarley> xD
<lampe2> whats the diffrence ?
<swarley> thats how i felt when i learned
<swarley> lampe2,
<otters> lampe2: .....the fact that it is relative
<swarley> require searches the ruby path
<fowl> lol
<otters> require looks in $: and require_relative I would think looks relative to pwd
<swarley> require_relative searches from the directory the file is in
<otters> yeah
<lampe2> kk thx
<swarley> its basically
<swarley> load File.expand_path(File.dirname(__FILE__)) + args + '.rb'
<otters> but STANDARDIZED
<swarley> but require_relative is much cleaner, no?
<swarley> xD
<otters> ja
startling has joined #ruby
<MauvePussy> LoadError: cannot load such file -- bcrypt
<MauvePussy> but it's installed
<otters> which is good, because bcrypt sucks
<swarley> MauvePussy, what did you use to require it
<swarley> require 'bcrypt'?
<MauvePussy> yes
<swarley> k
<MauvePussy> how does it suck?
kevinbond has joined #ruby
<swarley> did you install the gem on a different version gem than your ruby version?
<swarley> lol
<swarley> i do that sometimes
<MauvePussy> I don't know, how do I know
<swarley> gem -v
<swarley> nvm
<swarley> uh
<MauvePussy> Successfully installed bcrypt-ruby-3.0.1
<MauvePussy> 1 gem installed
<swarley> i see
<swarley> well
<swarley> idk
tommyvyo has joined #ruby
<swarley> i bcrypt the library that has FISH and all that
havenn has joined #ruby
<swarley> that looks like ripemd
CannedCorn has joined #ruby
<swarley> why not just use SHA2 or SHA1 provided by Digest?
kreiggers has joined #ruby
rdesfo has quit [#ruby]
pu22l3r has joined #ruby
phantasm66 has joined #ruby
looopy has joined #ruby
fbernier has joined #ruby
twelvechairs has joined #ruby
demet8 has joined #ruby
[[thufir]] has joined #ruby
wallerdev has joined #ruby
cameron_ has joined #ruby
nari has joined #ruby
ckrailo has joined #ruby
<shevy> hmm just thinking
<zandt> don't do that
<shevy> :)
<swarley> rofl
pu22l3r has joined #ruby
<shevy> when ruby's stdlib becomes gemified, and a security vulnerability would be discovered somewhere, one could just update that particular gem and have it fixed, right?
jmfcool has joined #ruby
<zandt> I have no idea. swarley seems knowledgeable. swarley.
<swarley> i suppose
<swarley> however
<swarley> you would need to have the C sources
liluo has joined #ruby
<swarley> and that would take a long time to build that gem each time
wilmoore has joined #ruby
nikhgupta1 has joined #ruby
<swarley> it would also eat up the bandwidth on the gem repos
jcromartie has joined #ruby
shtirlic_ has joined #ruby
<arphen> jesus christ ##javascript is a messy channel
simpleharmonicmo has joined #ruby
<arphen> and they are acting like ##c is even worse
<otters> ##c is pretty awful tbh
<arphen> i asked a simple question, was derailed on the first comment by someone saying
<swarley> i dont like C
<swarley> because they tell you you're wrong
<swarley> but not how to correct it
<arphen> "you shuldn't use "new Array();" use []" instead
<swarley> [] is faster though
<arphen> promptly a flamewar breaks loose
<swarley> oh
<swarley> lol
<arphen> jesus you're using a dynamically typed language and are saying [] is faster than new array
headius has joined #ruby
<swarley> user system total real
<swarley> new: 0.000000 0.000000 0.000000 ( 0.000016)
<swarley> []: 0.000000 0.000000 0.000000 ( 0.000006)
<swarley> it is
<arphen> swarley go /join #javascript and bring up the topic again
<arphen> i beg you
<swarley> really
<arphen> it will be hilarious
<swarley> sec
<swarley> let me install node
<swarley> jsut to make sure
<swarley> oh shit
<swarley> in node new Array is faster
<arphen> don't you think 0.000006 is rather retarded to worry about
<swarley> its a larger gap on node
<arphen> you shouldn't make a loop for i i<100000 rey.push(new Array());
<arphen> but that's rather obvious
<arphen> no?
wmoxam has joined #ruby
<arphen> i'm already on 3 ignore lists in javascript
<arphen> ^.^
<arphen> int* d=malloc(100000*sizeof(int));
<arphen> i bet that takes
<arphen> 3 clocks
<arphen> max
<Spaceghostc2c> swarley: What about it?
<arphen> shitstorm incoming
<swarley> they said [] should be used
crodas has joined #ruby
<Spaceghostc2c> Should I watch?
<swarley> its not that good
<arphen> that other guy is missing...ljharb
<swarley> im not im the mood to make enemies
agliodbs has joined #ruby
<arphen> i got a "autistic neckbeard" pm
<agliodbs> I'm doing a "bundle install" in order to get redmine going
<agliodbs> and it keeps asking for MySQL stuff, but I'm not using MySQL. I've added --without mysql as a flag, but it asks for the libraries anyway
<agliodbs> how do I get bundle to stop asking me for mysql?
jcromartie has joined #ruby
<arphen> ok there
<swarley> LOL
<arphen> i kicked it off
<arphen> sorry
<arphen> maybe ban incoming
<arphen> that heap discussion really got out of hand earlier
yoklov has joined #ruby
blueadept has joined #ruby
C0deMaver1ck has joined #ruby
ckrough has joined #ruby
fbernier has joined #ruby
<arphen> well its not as good as i promised, bummer
jcromartie has joined #ruby
td123 has joined #ruby
c0rn has joined #ruby
ed_hz_ has joined #ruby
wedgeV has joined #ruby
<swarley> lol
<swarley> arphen, i love how he keeps returning to me
<swarley> even though i clearly dont give a shit
<arphen> been a long time since i last saw someone more of an asshole
<arphen> go mention the heap though
stringoO has joined #ruby
<swarley> arphen, what about it?
Gesh has joined #ruby
headius has joined #ruby
dv310p3r has joined #ruby
___wert has joined #ruby
krz has joined #ruby
<arphen> you know how parts of functions in C are said to be on the stack
<swarley> oh yeah
<arphen> and dynamically generated objects go on the heap?
<arphen> and i asked if new Array() would create an object on the heap where [] would not, and therefore it were slower
<arphen> they thought i was talking about heaps as data structures
Phrogz has joined #ruby
gabeh has joined #ruby
<agliodbs> I'm trying to do a bundle install, but the --without switch doesnt' seem to work
jgrevich has joined #ruby
headius has joined #ruby
viaov has joined #ruby
ScottNYC has joined #ruby
pschneider_ has joined #ruby
<ScottNYC> I just wanted to verify something, gem update will update all my installed gems, is that right?
<Phrogz> ScottNYC: Pretty sure, yes.
<swarley> yess
moshee has joined #ruby
Eric_HOU has joined #ruby
Eric_HOU has joined #ruby
PragCypher has joined #ruby
kah has joined #ruby
kah_ has joined #ruby
Norrin has joined #ruby
le2a has joined #ruby
looopy has joined #ruby
srnty has joined #ruby
ghosTM55 has joined #ruby
pp01bit has joined #ruby
ZachBeta has joined #ruby
delinquentme has joined #ruby
Phrogz has joined #ruby
<delinquentme> ok so I've got kind of a nub question... I'm sitting here doing benchmarks on some functions I've been tinkering with
nonotza_ has joined #ruby
<Spaceghostc2c> functions?
Banistergalaxy has joined #ruby
<delinquentme> if im contained within the ruby env .. theres not much of a chance I'd eff up my system from running silly big benchmarks right?
<delinquentme> Spaceghostc2c, yeah I'm working on benchmarks on sorting functions
<swarley> what are you doing?
<swarley> code?
<Phrogz> delinquentme: Not unless you used Kernel#exec or `rm -rf`
<Spaceghostc2c> delinquentme: You make me sick. <3
<delinquentme> but on like number sets @ 2million
<delinquentme> =]
<delinquentme> in GOOD news i've come up with a function which is a little faster than .sort
<delinquentme> :P
<Phrogz> delinquentme: It's possible that you caused Ruby to eat all your RAM and go into super heavy VM disk space swapping. That won't fuck up your system permanently, but will play hell with your performance for a while.
<delinquentme> ... which I' guessing its not as extensible ... but thats still pretty swanky
<delinquentme> ok awesome Phrogz thats what I was hoping to hear
pupoque has joined #ruby
Phrogz has joined #ruby
headius has joined #ruby
<swarley> i came up with String#lowercase
<swarley> [3] pry(main)> "CLICH
<swarley> => "clich
sacarlson has joined #ruby
<swarley> omg.. so intuitive..
<banisterfiend> swarley: how's your repl? why aren't you using it? :)
<swarley> because i started working on it, and i realized i lack most of the basic knowledge to continue with it, and yours is much more complete and better to use xD
<zandt> ^ honesty
* zandt applauds this room
<swarley> xD
radic_ has joined #ruby
<swarley> also, before people barrage me with complaints
<swarley> the only reason i took time to make lower wasa because
<swarley> [4] pry(main)> "CLICH
<swarley> => "clich
<banisterfiend> swarley: 'lower' is active support?
<swarley> oh really?
<swarley> i just made it on a whim lol
bricker88 has joined #ruby
<swarley> i always make things and find out activesupport has it
ed_hz_ has joined #ruby
<zandt> swarley, I liked your idea anyway
<swarley> idea for what?
mrkris has joined #ruby
<mrkris> hello.
<zandt> .lower
<swarley> the only thing i've made (imo) worthwhile is my shitty irc bot. And maybe Lexi::Ruby.is_complete?
<swarley> i should really finish that lol
<delinquentme> is there a way to find out how much memory a single fixnum in a ruby array takes up?
<swarley> uh
<swarley> you could use inline?
<zandt> swarley, hey, that's more than me :D
<swarley> sizeof(6)
<swarley> idk
<swarley> xD i dont see myself as a very good programmer anyway, so even what i may consider as worthwhile are not much in the big leagues
<delinquentme> and how do you find out what the max value for an integer is for your particular OS
Banistergalaxy has joined #ruby
<swarley> oh
<swarley> uh
igotnolegs has joined #ruby
<Phrogz> delinquentme: [1,2**31,2**64,2**129].map(&:size) #=> [8, 8, 12, 20]
<swarley> i think
<swarley> im just going to work on a bunch of additions to the stdlib
<swarley> not that i can think of much to add
<mrkris> swarley: awesome code is code that ultimately satisfies a need
<shevy> swarley just start a project that can grow slowly
<zandt> ^ and ^. what they said
swarley_ has joined #ruby
shadoi has joined #ruby
<swarley_> mrkris, how so?
Abhinav1 has joined #ruby
<swarley_> would anyone use this
<swarley_> [6] pry(main)> "hi there" / ' '
<swarley_> => ["hi", "there"]
<shevy> I would hate it
<swarley_> lol
<swarley_> i didnt like it either
<shevy> fowl once wrote something like that
<shevy> but he used / for colour codes
<swarley_> it creates more problems than it solves
<shevy> yeah
<swarley_> i used / for my json objects
<swarley_> but it was only for
<swarley_> object/:keys
<shevy> "hi there".split ' ' is already quite short
<swarley_> yeah
<swarley_> the only benifit i could think of is
<shevy> what is object/:keys, is that json?
<swarley_> no
<swarley_> sec
<mrkris> swarley_: we write code to solve a problem. if it solves a problem, its good code.
<shevy> and if it solves a problem, and also creates a new problem, you are never out of work! ;)
<swarley_> shevy,
<swarley_> [17] pry(main)> k = JavaScript::Object.new(:hello => 'world', :foo => 'bar'); k/:elements
<swarley_> => [:hello, :foo]
<swarley_> it gives you the defined parts of the object
<shevy> hmm and why not k.elements ?
<fowl> what is this JavaScript::Object.new stuff
<swarley_> because
<fowl> sounds lame
<swarley_> i made it
<swarley_> and because
<swarley_> what if someone does
<swarley_> k = JavaScript::Object.new(:elements => 'hi')
<swarley_> elements wont be returned as intended
<shevy> not sure I get it. in the first example:
<shevy> k.foo
<shevy> would work?
<swarley_> yes
<shevy> hmm
<swarley_> its like open struct
<freeayu> .rvm/gems/ruby-1.8.7-p334/gems/unicorn-4.1.1/lib/unicorn/configurator.rb:604:in `parse_rackup_file': rackup file (env) not readable (ArgumentError)
<freeayu> when I start unicorn server
<freeayu> it appears that
<freeayu> what's the problem
<fowl> swarley_: class Object; def /(*a) send *a end end; OpenStruct.new({elements: [:a, :b, :c]})/:elements
<shevy> waaaah
Banistergalaxy has joined #ruby
<swarley_> fowl, k
<swarley_> it also allows for constants
<fowl> eh?
ipoval has joined #ruby
<swarley_> [16] pry(main)> k = JavaScript::Object.new({:hello => 'world', :foo => 'bar'},[:foo]); k.foo = 1
<swarley_> RuntimeError: Cannot modify object constant - foo
<swarley_> from /usr/local/lib/ruby/gems/1.9.1/gems/rubyserif-0.1.2/lib/rubyserif.rb:8:in `method_missing'
<swarley_> lame constant guarding yes, but an attempt none the less
<swarley_> i also made JavaScript::Function, which is even lamer
thetrav has joined #ruby
lifestream has joined #ruby
bricker88 has joined #ruby
<kah_> did anyone learn ruby with no previous programming experience/
<kah_> ?
flingbob has joined #ruby
<zandt> kah_, learning everyday, no previous prog exp
<delinquentme> faster way to test than 1.class == Fixnum ?
<shevy> kah_ I used php perhaps 2 years before ruby and read two perl books (and used perl for half a year)
<delinquentme> looking to test for Fixnum or integer
<kah_> zandt, shevy; cool, in terms of learning code what are your staples?
<kah_> i've created some basic pages, using scaffolding following tutorials but i feel like im missing something
<zandt> I started off with Chris Pine's Learn to Program, but sounds like it might be too basic for you
<kah_> i've also picked up a bunch of books and have worked through several chapters of them
<shevy> kah_ there is no other way to learn ruby than to write your own scripts
<kah_> zandt: cool, i haven't looked at that yet
<shevy> I liked chris pine's learn to program the most too
<shevy> wish it would be 3x as large though :D
<shevy> many tricks are missing
<zandt> lol
<zandt> kah_, it's worth looking at
<zandt> it really helped... clarify some things
<kah_> zandt: i'll pick it up, thanks! how quickly did you guys start testing
<swarley_> delinquentme,
<kah_> i've been reading through oreily's rspec books
<swarley_> 1.is_a? Fixnum
Indian has joined #ruby
<kah_> been trying to develop with cucumber + rspec, understand the basics but when writing out the step definitions am hitting huge walls
<delinquentme> swarley_, lets give it a whirl...
arph_k has joined #ruby
<kah_> cool guys thanks, I just got the pine book.. lets get cracking!!
senthil has joined #ruby
<shevy> kah_ I dont really "test" using any framework. I try to "test" by writing short ruby classes and testing them inside if __FILE__ == $PROGRAM_NAME
<kah_> shevy: really? you haven't looked @ rspec and cucumber?
<kah_> from what i've read it seems to be best practice
seivan has joined #ruby
<shevy> I have looked at rspec, not cucumber. I don't feel testing gives me any new features though and it feels strange to have-to test in a language like ruby. after all the main advantage is that you can achieve more with less lines of code in ruby compared to i.e. C
<fowl> i dont use test frameworks either, dont let other people tell you how to think kah_
<kah_> fowl: it's not that they are telling me how to think.. it's what makes sense
<kah_> fowl: nevertheless, good advice
<delinquentme> 1.class #=> Fixnum 1.is_a? Integer # => true
<delinquentme> 1.has_id_crisis? # => true
<delinquentme> so are fixnums and ints interchangeable?
Phrogz has joined #ruby
<fowl> delinquentme: Integer(5).class
<delinquentme> Fixnum
<delinquentme> makes no sense
<swarley> [27] pry(main)> k = JavaScript::Function.new { return "hi" }; puts "Reference: #{k}\nExecution: #{k[]}"
<swarley> Reference: #<JavaScript::Function:0x00000001c91188@(pry):27>
<swarley> Execution: hi
<swarley> that seems lame
<swarley> i also never use frame works
<swarley> if i am capable of coding it
<swarley> i do
<swarley> really
<swarley> just use Fixnum
<swarley> you will never see 1343.class return as an Integer
<swarley> you will always see Fixnum
<delinquentme> swarley, gotya
<swarley> like wise, dont use Long instead of Bignum
<delinquentme> int would crank out a LIIITle bit more performance though right?
<swarley> no
<swarley> fixnum is what it is in the C sources
<swarley> numeric.c
<swarley> feel free to look it up in the tar.gz
<delinquentme> ah ok
<fowl> delinquentme: 1.is_a? Integer because Fixnum descends from Integer
cha1tanya has joined #ruby
<delinquentme> ahh ok !
manizzle has joined #ruby
sako has joined #ruby
freeayu has joined #ruby
<shevy> you'd never have expected fowl to know so much!
rippa has joined #ruby
<senthil> kah_: do you use rack/test? i just came across it, seems very promising
<kah_> senthil: hmm nope, I'll look into it, thanks!
<senthil> kah_: you use cucumber?
<kah_> senthil: yes
<senthil> kah_: are you happy with the speed?
<kah_> senthil: no it's slow
<kah_> senthil: a common complaint, I assume
<senthil> kah_: seems like it. how much of it is rails stack loading time?
<kah_> not quite sure,
<kah_> depends on the comp
sandGorgon has joined #ruby
abstrusenick has joined #ruby
sako has joined #ruby
manizzle_ has joined #ruby
flingbob has joined #ruby
Teddy2steper has joined #ruby
cha1tanya has joined #ruby
<delinquentme> im getting complaints that to_a is going to become obsolete?
<delinquentme> whats it being replaced with
<delinquentme> ?
<MauvePussy> where is there no post/pre ++ and -- ?
user147 has joined #ruby
user147 has quit [#ruby]
Guest6549 has joined #ruby
<delinquentme> MauvePussy, its i +=1 i -= 1
<MauvePussy> I know
<MauvePussy> but why
burns180_ has joined #ruby
yourchanges has joined #ruby
arvidkahl has joined #ruby
wyhaines has joined #ruby
davidcelis has joined #ruby
pencilcheck has joined #ruby
tommyvyo has joined #ruby
<shevy> MauvePussy you must think in terms of objects
kawa_xxx has joined #ruby
<davidcelis> is anybody else even remotely perturbed by MauvePussy's nick
<shevy> MauvePussy, have a look at what matz said: http://stackoverflow.com/questions/3717519/no-increment-operator-in-ruby -> "From a posting by Matz:"
<zandt> davidcelis, I've been giggling all night
<shevy> zandt is it kinky time again!
* zandt crosses fingers
* shevy watches carefully
<shevy> maaaan...
<shevy> key -= 1 while ((key > 0) && (vals[key] <= vals[key-1]))
<shevy> is anyone really writing ruby code like that???
<fowl> i do shevy :)
<shevy> hmmm
<fowl> its more useful to have ( multi lines of stuff ) while ...
alx- has joined #ruby
ringotwo has joined #ruby
nfluxx has joined #ruby
io_syl has joined #ruby
araujo has joined #ruby
arvidkahl has joined #ruby
<swarley> this code
<swarley> does amazing things
<swarley> but
<swarley> it is the coding design of satan
<swarley> its readability is 0
<swarley> for me at least
<banisterfiend> swarley: wasn't it generated by ragel?
<swarley> i have no idea
<delinquentme> just lots of numbers no?
<banisterfiend> swarley: pretty sure that's generated code.
<banisterfiend> swarley: Yeah it definitely is.
<swarley> it seems like regardless there must be a better way to do it
<swarley> im tempted to fork it just on that thought lol
<swarley> because there has to be a better way lol
bier has joined #ruby
<banisterfiend> swarley: you dont really care about generated code too much though, you interact with the generator/generating rules, you dont interact wtih the generated code
Jordan_ has joined #ruby
<swarley> i know.. it just...
<swarley> i dont know
<swarley> it feels like being stabbed in the eyes
<banisterfiend> hehe
<banisterfiend> swarley: you might find this useful
<swarley> i never use anything that makes my job easy
<swarley> woah japanese
<swarley> sometimes i think im a good programmer, and other times i step out of my little box and realize im a pussy
<zandt> swarley, if you spend time coding and you're satisfied, you're pretty badass in my book
<zandt> or even if you're not satisfied :)
sacarlson has joined #ruby
<swarley> xD i code too much sometimes
<banisterfiend> swarley: are you new to ruby? what did u know before ruby?
<swarley> i've been working with ruby for about.. 8 months
<swarley> i played with C, and PHP, a little bit of perl
<banisterfiend> swarley: oh ok
<swarley> i guess ruby would be my real first
<swarley> im only 16 though
<banisterfiend> swarley: learn the ruby C API
<swarley> just turned 16 on sunday
<banisterfiend> swarley: if you want to boost your understanding
<banisterfiend> cool
<swarley> yeah, i've made modifications to string and fixnum
<swarley> lol
<swarley> one day i wanted the perl 6 ~ concat operator
<zandt> swarley, cool, 13 here
<swarley> and jesus christ that ended so badly
<zandt> and happy late bday
<swarley> :D thank you,
JNZ has joined #ruby
<swarley> i think my downfall is inability to focus on a task for long
<swarley> or setting a goal on a project that i know i cant reach
a_a_g has joined #ruby
<swarley> good night all<3
Abhinav1 has joined #ruby
nikhil_ has joined #ruby
startling has quit [#ruby]
JohnBat26 has joined #ruby
Norrin has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
wilmoore has joined #ruby
bhunt has joined #ruby
artm has joined #ruby
havenn has joined #ruby
gianlucadv has joined #ruby
Banistergalaxy has joined #ruby
tonini has joined #ruby
<shevy> "setting a goal on a project that i know i cant reach"
<shevy> :(
<shevy> what is becoming of the youth of today
<shevy> they reach for the stars
CheeToS has joined #ruby
<zandt> shevy, nasa to JFK: "the moon? sorry, that's too hard."
<shevy> hmm
<shevy> good old JFK
<shevy> shame his bodyguards recieved the stand down order before his car drove forward, he was a good man :(
<zandt> :(
<zandt> at least we still have RF... nevermind.
Morkel has joined #ruby
x0F__ has joined #ruby
moshee has joined #ruby
banisterfiend has joined #ruby
shruggar has joined #ruby
<senthil> is it convention to use _ prefixes for private methods?
cha1tanya has joined #ruby
<banisterfiend> senthil: nope
<banisterfiend> senthil: but super-super private ones, i.e helper methods for included modules you sometimes see with __method_name__
<banisterfiend> same with module ivars, __@module_ivar__
pen has joined #ruby
<banisterfiend> senthil: so the __ is not used to denote 'private', it's just to avoid clobbering on the including class's namespace
<senthil> banisterfiend: ah, that must be it, thx
<banisterfiend> i mean, avoiding conflicts with the including class's method names
artOfWar has joined #ruby
<rippa> > __@module_ivar__
<rippa> what
<senthil> @__module_ivar__?
<banisterfiend> rippa: i means @__module_ivar__
<banisterfiend> :)
<banisterfiend> meant*
<rippa> thought so
<banisterfiend> Yeah
yxhuvud has joined #ruby
nikhgupta has joined #ruby
Cache_Money has joined #ruby
ngng has joined #ruby
ngng has joined #ruby
Maxou56800 has joined #ruby
<Cache_Money> what's the easiest way to generate an array containing all the countries of the world?
plato has joined #ruby
plato has joined #ruby
<banisterfiend> Cache_Money: Array.new(:countries).all.include(:world).fill!
jameshyde has joined #ruby
nikhil___ has joined #ruby
<banisterfiend> Cache_Money: don't forget to add .please at the end
<Cache_Money> banisterfiend: haha brilliant!
shtirlic has joined #ruby
<Cache_Money> I guess I'm wondering if there is any type of gem that could help me..
<a_a_g> Cache_Money: tzinfo
<banisterfiend> Cache_Money: doubt it, probably just google a list of all the countries on the net
<banisterfiend> dump it in a file, then read that file into an array
abstrusenick_ has joined #ruby
<fowl> parse wikipedia category:countries
<fowl> that sounds like fun
startling has joined #ruby
banister_ has joined #ruby
adeponte has joined #ruby
Shrink has joined #ruby
<denysonique> a = instance.some_attribute -- is it possible to retrieve instance from a?
<rippa> no, in general
woto7 has joined #ruby
JohnBat26 has joined #ruby
crescendo has joined #ruby
ph^ has joined #ruby
Richmond has joined #ruby
<banister_> denysonique: clarify what u mean
monzie has joined #ruby
<banister_> denysonique: in so far as some_attribute is definitely a method, you can just call 'self' inside that method
__Grabarz__ has joined #ruby
__Grabarz__ has quit [#ruby]
ank has joined #ruby
yourchanges has quit ["Leaving"]
zakwilson has joined #ruby
Divinite_ has joined #ruby
blacktulip has joined #ruby
tvw has joined #ruby
tvw has joined #ruby
thetrav has joined #ruby
jgrevich has joined #ruby
johndbritton has joined #ruby
fixl has joined #ruby
fowl has joined #ruby
arturaz has joined #ruby
schovi has joined #ruby
mafolz has joined #ruby
stringoO has joined #ruby
<TTilus> denysonique: it would really help if you explained what you need that for and maybe gave a code snippet
Asher has joined #ruby
KL-7 has joined #ruby
monzie has joined #ruby
brianpWins has joined #ruby
<brianpWins> I'm looking at a shortest path algorithm to traverse a path through some nodes but don't think it's the right pattern. The edges between all the vertexes are exactly the same i just need to touch the least vertexes possible between an initial point and end point. Is there a more appropriate pattern/algorithm for that?
sspiff has joined #ruby
<rippa> brianpWins: A*
<rippa> brianpWins: http://en.wikipedia.org/wiki/A*
KL-7_ has joined #ruby
<brianpWins> rippa: thanks i'll read through it!
<brianpWins> \
icy` has joined #ruby
icy` has joined #ruby
fmcgeough has joined #ruby
KL-7_ has joined #ruby
Helius has joined #ruby
Shrink has joined #ruby
pi3r has joined #ruby
KL-7_ has joined #ruby
akemrir has joined #ruby
trivol has joined #ruby
KL-7_ has joined #ruby
ephemerian has joined #ruby
shishirmk has joined #ruby
workmad3 has joined #ruby
<shishirmk> Hi I am trying to intsall rjb gem on windows. I downloaded the zip and try to compile it with devkit in the PATH. Now I am not able to run the test.rb
<shishirmk> I get the error Cant start JVM
radic has joined #ruby
<shishirmk> I followed the steps in the readme. I think the problem is with adding this gem to the gem spec
fabrice31 has joined #ruby
radic_ has joined #ruby
radic has joined #ruby
sandstrom has joined #ruby
sandstrom has joined #ruby
KL-7 has joined #ruby
[[thufir]] has joined #ruby
LMolr has joined #ruby
darthdeus has joined #ruby
zommi has joined #ruby
kaneda__ has joined #ruby
s0ber has joined #ruby
y3llow has joined #ruby
apeiros_ has joined #ruby
y3llow has joined #ruby
y3llow has joined #ruby
scalebyte has joined #ruby
<scalebyte> need some few good examples of ruby standalone applications
<banister_> scalebyte: what kind of thing
<banister_> scalebyte: like irb?
KL-7 has joined #ruby
<scalebyte> banister_: I mean what standalone applications can be build using ruby apart from webapps (Rails) ?
<scalebyte> banister_: like applets in java...
<banister_> scalebyte: chef/puppet
<banister_> scalebyte: homebrew
<scalebyte> banister_: ok what are their use cases ?
<banister_> scalebyte: google it yourself
<scalebyte> banister_: we can even write socket programming using ruby !!
<banister_> scalebyte: i want to delete you from the internet
Indian has joined #ruby
KL-7_ has joined #ruby
zakwilson has joined #ruby
monzie has joined #ruby
r3dskade has joined #ruby
codespectator has joined #ruby
<banisterfiend> anyone here a git guru?
BiHi has joined #ruby
<arturaz> I have some experience
<TTilus> banisterfiend: #git ?
<TTilus> banisterfiend: dont worry, they cook you before eating
friskd has joined #ruby
<banisterfiend> nm solved it
<banisterfiend> git clone -b
Divinite_ has joined #ruby
workmad3 has joined #ruby
flou has joined #ruby
simao has joined #ruby
fortysixandtwo has joined #ruby
ukwiz has joined #ruby
mdw has joined #ruby
visof has joined #ruby
visof has joined #ruby
Divinite_ has joined #ruby
shishirmk has quit [#ruby]
nikhgupta has joined #ruby
regedarek has joined #ruby
trivol has joined #ruby
zeninfinity has joined #ruby
stefanp has joined #ruby
stefanp has joined #ruby
mengu has joined #ruby
jhchabran has joined #ruby
roolo has joined #ruby
ABK has joined #ruby
mcwise has joined #ruby
schovi_ has joined #ruby
regedarek has joined #ruby
<ABK> I've a local gem server set-up serving some custom gems, now bundle install was giving error
<ABK> it couldn't find the available gem in remote source
<ABK> I deleted Gemfile.lock and it worked
narcos has joined #ruby
<narcos> Hi all. I'm trying to run a program, and am getting an error of "require': no such file to load -- fastlib (LoadError)" . I've installed fastlib with "gem install fastlib"
<fowl> if you're on 1.8, require 'rubygems' first
<fowl> if you're not, idk
steven- has joined #ruby
adman65 has joined #ruby
jhchabran_ has joined #ruby
sgmac has joined #ruby
Ammar01 has joined #ruby
sgmac has quit [#ruby]
francisfish has joined #ruby
ephemerian has joined #ruby
<[[thufir]]> Am I calling a non-existent method? http://pastebin.mozilla.org/1531149 from sample at: http://nntp.rubyforge.org/
gregorg_taf has joined #ruby
<fowl> [[thufir]]: it says the method is private
liluo has joined #ruby
<[[thufir]]> ah, ok, so then I can't invoke that method because it's private, correct? ok, so why does the sample do that?
bl3k has joined #ruby
<fowl> could be outdated
nari has joined #ruby
<[[thufir]]> ok. thanks, I thought I was losing my mind. I'm new to ruby, but that was my reading of the error, but the sample indicated otherwise, so, kinda weird. thanks, I'll look closer at the API.
akemrir has joined #ruby
Pip has joined #ruby
KL-7_ has joined #ruby
tatsuya_o has joined #ruby
fragmachine has joined #ruby
KL-7 has joined #ruby
machine2 has joined #ruby
fr0gprince_mac has joined #ruby
schaerli has joined #ruby
bluenemo has joined #ruby
<fragmachine> Hello I'm trying to solve some problems on Rubeque. I'm trying to write a queue class but I'm stumped on the last method. Any ideas how to get an instance of a class to retrun it's values without a method? - http://pastie.org/3646792
narcos has quit ["Leaving"]
kexwork has joined #ruby
<[[thufir]]> am I using this API incorrectly? Or, are my gems/path/something not working? http://pastebin.mozilla.org/1531199
<fragmachine> No worries I just need to write the to_a method...
<fowl> [[thufir]]: maybe it is net/nntp i know net::http is net/http
nari has joined #ruby
zeninfinity has joined #ruby
shruggar has joined #ruby
<[[thufir]]> ok. I'm trying an activerecord demo, just to be sure, though. thanks.
wvdschel has joined #ruby
kawa_xxx has joined #ruby
Maxou56800 has joined #ruby
<sandstrom> How can I get the rack root from a rack application? E.g. Rack.someMethod
c0rn has joined #ruby
philipp- has joined #ruby
jlebrech has joined #ruby
richo has joined #ruby
<richo> I have some mocha expectations that arne't being verified. Where should I be looking?
philipp- has quit [#ruby]
<richo> Lots and lots of hacks and comments.. but no matter how I try to arrange the expectation the method not being called doesn't cause the spec to fail
KL-7 has joined #ruby
<[[thufir]]> cannot install fileutils gem: http://pastebin.mozilla.org/1531209 error with: Can't find Magick-config
lobolars has joined #ruby
jenglish has joined #ruby
iocor has joined #ruby
mdw has joined #ruby
zeninfinity has joined #ruby
mengu_ has joined #ruby
<zeninfinity> hi evry one , i am asking if there are any RoR reverse engineering solution, i mean a program or a script that build UML diagrams from a RoR project .
shadoi has joined #ruby
trivol has joined #ruby
<shevy> wat
<shevy> anyway the experts are on #rubyonrails
<shevy> [[thufir]] I think RMagick is dead. anyway, do you have imagemagick installed at all?
<[[thufir]]> ok, I'll install that. I was just trying to see if gems installed correctly. lol. it's not even what I want to use at all. I'll try that, though. yeah, reading about that now.
shruggar has joined #ruby
heftig has joined #ruby
ChampS666 has joined #ruby
kidoz has joined #ruby
joltz has joined #ruby
punkrawkR has joined #ruby
Vert has joined #ruby
keymone has joined #ruby
<keymone> hi, is there a way to remove existing symbol from memory?
<keymone> in 1.8.7
<shevy> keymone hmm dont think there is a simple way
<matti> LOL
<matti> keymone: There is no way.
<shevy> 99,9999% of folks won't need it so it would not gain any traction for support either
<keymone> sad, thanks
<matti> keymone: That is why symbols can be expensive.
<matti> keymone: Strings will get collected nicely.
<shevy> but hey
iouns has joined #ruby
<shevy> we need a language to replace ruby one day :)
<matti> shevy: And we shall call it ... diamond!
<keymone> matti: yeah, i know, i just encountered a problem in rails where it generates symbols with randomize names and i eventually get RuntimeError: symbol table overflow (symbol __bind_1328993330... :(
<keymone> randomish*
<fowl> keymone: do not make symbols out user input
<keymone> i'm not
<fowl> ok, well don't make random ones either
<shevy> matti lol
<keymone> blame rails, not me :)
<keymone> i'm just trying to solve the problem
<shevy> matti I used that name as my dumpyard for good ideas. the diamond language :)
<fowl> oh that makes sense
<shevy> sadly it is just way too much work
philipp-_ has joined #ruby
<shevy> keymone, perhaps rails itself is the problem ;P
<matti> shevy: :)
<matti> shevy: Just get meth or something, a lot of coffee.
<matti> shevy: Move into your parents basemant.
<keymone> shevy: meh.. not in position to dump our codebase here :)
<matti> shevy: And get cracking on new language.
<shevy> I think to grow a successful language you must start slowly step by step
<joltz> coffee makes me procrastinate quicker.
mylifeisfine has joined #ruby
<fowl> keymone:should try #rubyonrails
<shevy> now when I look at my dumpyard I just get demotivated and frustrated :(
<matti> shevy: Don't then :)
<keymone> fowl: tried. no one replied :)
<mylifeisfine> anyone here could help me with rails...?? Since nobody is replying #rubyonrails room
<keymone> fowl: basically question is - how to get instance of method without creating that method with a specific name
<fowl> just because nobody replied doesn't make this the rails channel
<banisterfiend> fowl: sing
<keymone> fowl: my question is not at all rails related
<mylifeisfine> fowl: Agree
jenglish has joined #ruby
<shevy> ack
<shevy> why do they now ask here rather than in #rubyonrails :(
<richo> Aha
waxjar has joined #ruby
<mylifeisfine> shevy: I already told the reason above :(
<shevy> just keep poking them
<shevy> insult them
<fowl> keymone: i dont understand, if you dont know the name of the method, how could you get ahold of it
<shevy> tell them shevy said that they all suck
<mylifeisfine> shevy: I am not sure.. but I have hearing this a lot and felt it myself couple of times that Radar (Ryan Bigg) is dominating the #RubyonRails channel with his prejudice..
<mylifeisfine> shevy: If I do that, radar will ban me
<shevy> I dont know him but he sounds like egospider on #ruby-lang too
richo has quit [#ruby]
<mylifeisfine> shevy: He is very very arrogant.. but hepful at times.. the whole #RubyonRails is Australians dominated
<fowl> keymone: otherwise you can just grab it with method() File.method(:open) for example or method(:puts)
<keymone> gosh you sure hate rails here.. calm down, i don't want any help with rails, go back to your troll holes
<shevy> keymone :(
<shevy> keymone rails killed parts of ruby after all
<bounce> you be in our troll holes, matey
<shevy> so many railsers dont even want to learn ruby
<keymone> fowl: yeah that's the problem - they create a method with random name and grab it using method()
<shevy> ^^^
<keymone> fowl: then they remove the method but obviously they don't remove the symbol for method name
<shevy> heeh
<keymone> facepalmish
<shevy> typical average rails code
<arturaz> Can anyone explain #respond_to_missing? for me?
nikhil_ has joined #ruby
richo has joined #ruby
<richo> Is there a way to set ARGV for testing without spewing errors about already defined constants?
<richo> Can I stub it out?
<matti> keymone: We secretly use Sinatra.
<matti> keymone: That is why Rails are not welcomed.
<matti> ;]
<shevy> arturaz hmmm
<shevy> richo dont think so, it is a constant. constant reassignment always leads to warning
<keymone> matti: i do use it too but i also have to deal with problems related to *a framework name of which shall not be spoken here*
<richo> shevy: Urgh, so the only way to achieve my end is epically kludgy manipulation of the object?
<fowl> keymone: wowzers thats convoluted
<fowl> i dunno the use case but it sounds like the job of a proc
<matti> keymone: Have you looked on-line too see whethet somebody else had this issue as well?
<shevy> richo not sure what you wanna do :) using ARGV can be messy, I only use ARGV after ... if __FILE__ == $PROGRAM_NAME and I never reassign it
<shevy> richo but yeah a problem is that ARGV seems to be shared across all classes you use
<shevy> when I was young and sexy, I even had code like:
<shevy> def foo
<shevy> x = ARGV[0]
<keymone> matti: yep, feels like in this xkcd: http://xkcd.com/979/
<shevy> that was really awful :(
<matti> keymone: Meh.
<richo> shevy: that's partially by design I guess.. I'm writing specs for a cli program, so I'm setting ARGV to known values and then checking that the main routine does what it should
<matti> keymone: I was serious.
<keymone> matti: i am totally serious about that xkcd
<matti> keymone: If this is a Rails issue, there is somebody else bound to stumble upon it as well.
<richo> and it uses optparse so I don't get argv directly, and I'd rather wrap it in the tests
<shevy> hmm
<mylifeisfine> shevy: or matti or fowl or richo -> anyone of my mates please help me crack this -> http://stackoverflow.com/questions/9820097/paginate-calling-the-show-action-by-default
<fowl> keymone: i say screw it and file an issue
<matti> keymone: :)
<keymone> fowl: yeah, that's what i'm about to do now =/
<shevy> arturaz it seems as if #respond_to_missing? extends on #respond_to?
<keymone> thanks anyway
<shevy> s = "my happy string"; s.respond_to? :chomp # => true
<matti> mylifeisfine: I have no idea how to solve this one.
<matti> mylifeisfine: I seldom use Rails myself.
<matti> mylifeisfine: Ask on the other channel and wait patiently for enough people to wake up and pick it up.
<matti> mylifeisfine: And do not nag / ask repeatedly.
closedbracket has joined #ruby
<shevy> and, it seems as if "respond_to_missing?" is triggered when respond_to? returns false. it's a hook like inherited or method_missing
<shevy> not sure I understood it myself yet though ... :P
<shevy> mylifeisfine I never used paginate so those ways of targetting questions are a bit useless ;)
<matti> shevy: :)
<shevy> matti!
<shevy> why are you always happy!
<matti> shevy: No. Grumpy actually.
<shevy> hehe
<matti> shevy: Sleep deprived.
<matti> shevy: And just being told off by calling Rails developers retarded. No offence :)
<shevy> well
<shevy> creating random method names and then using method() somehow strikes me as retarded
<matti> shevy: :)
KL-7 has joined #ruby
<keymone> i can even link that bit of code to you
<keymone> handily called as proc extension
<matti> shevy: All we need it to solve world hunger and remove GIL from Ruby.
<matti> keymone: I am puzzled why would the do it that way?
<matti> keymone: Clearly, this is the language limitation.
<matti> keymone: Unless it never was intended to be used that way.
<shevy> world hunger is easy to solve, the distribution is the problem, more than enough food is produced, but of course the established profit makers dont want to actually solve world hunger
<mylifeisfine> ok thanks matti shevy u make a nice couple :P
<shevy> yeah
<matti> mylifeisfine: Maybe we are.
<keymone> matti: i honestly have no idea
<shevy> matti has a short nick
<shevy> I like short nicks
<matti> ;d
<matti> Its again, all about size...
<matti> shevy: ...
<shevy> yeah but it is true
<mylifeisfine> matti: wants to flirt with shevy !! :D
<matti> :)
<shevy> fowl, matti ... hmm who else
<joltz> hi
<matti> shevy: -> joltz
<matti> ;p
<shevy> dont know him
philipp-_ has quit ["Linkinus - http://linkinus.com"]
<shevy> hi joltz
<mylifeisfine> shevy: r u a male or female ?
<joltz> would you like to? :o
<matti> mylifeisfine: He is both.
<shevy> joltz if you use rails then no :P
<mylifeisfine> matti: :)
<matti> mylifeisfine: On Tuesdays he is M, and then Fridays he pretends to be F.
<shevy> if you have cool ideas though then yes
<joltz> nah, django
zeninfinity has joined #ruby
<shevy> what!
<shevy> hmm :) cant decide if this is worse or not ... hehe
<joltz> yankin' yer chain
<shevy> lol
<shevy> do I have to visit #python again and communicate via "ssszzs SZzzs szszzsss?" again?
<matti> keymone: Hm.
<matti> keymone: Would the include of singleton_class be a hint.
<matti> keymone: That they never intended this method to be used more than once?
<matti> keymone: Although, I don't know what is inside singleton_class ;d
spanx has joined #ruby
<fowl> rails has 815 open issues
<fowl> they need to fix that heap of crap :p
<shevy> dont try to understand madness, matti
<banisterfiend> fowl: sing boi
<banisterfiend> fowl: hollah at me
<banisterfiend> holla*
<shevy> banister needs attention again, he is worse than any 5 year old :(
<matti> shevy: Its part of ActiveSupport, so what you speak of might be true.
<shevy> hmm
<shevy> activesupport will one day be so huge you can fly to jupiter with it alone
<matti> shevy: Yeah.
richo has quit [#ruby]
<matti> shevy: Printed on A4 will bend time-and-space due to sheer mass of paper.
<matti> shevy: First FTL drive will be born then.
<matti> shevy: Like in Event Horizon movie.
<matti> ;]
<matti> shevy: Horror and space travel.
KL-7 has joined #ruby
mdw has joined #ruby
<shevy> hmmm
<shevy> the universe confuses me greatly
tatsuya_o has joined #ruby
KL-7 has joined #ruby
<shevy> also I think the truth may often be much more boring than movies... :(
<matti> keymone: Ah.
<matti> keymone: So, this is what it does: "+* Add Proc#bind(object) for changing a proc or block's self by returning a Method bound to the given object. Based on why the lucky stiff's "cloaker" method. [Sam Stephenson]"
alem0lars has joined #ruby
My_Hearing has joined #ruby
<keymone> matti: now i understand that that is sometimes handy but it definitely creates a mess in symbols table
<matti> keymone: I guess depends on how do you use it.
falena has joined #ruby
<matti> keymone: What is it calling it?
<matti> Heh, I fail at English.
* matti too tired.
<matti> keymone: Try and ask on Rails Google group.
<matti> If there is any?
<matti> Not sure.
kawa_xxx has joined #ruby
<keymone> matti: already asked, i usually see named scopes in stack traces related to this
<matti> Ah.
<banisterfiend> matti: what's your native language?
<shevy> lol
<shevy> cloaker method?
<shevy> I have the sudden urge to slay kittens
<matti> shevy: Meow.
<matti> ;d
<matti> banisterfiend: Am. One with complex grammar.
<matti> banisterfiend: And they aren't that many :)
<banisterfiend> matti: finnish?
<shevy> cant be
<bounce> rooossian
<shevy> he is too happy to be finnish
<matti> Hehe
<matti> shevy: :)
<shevy> no really, you see it at ski jumping
<matti> banisterfiend: No.
<shevy> janne ahonen often won but never smiled
<banisterfiend> matti: hebrew
<matti> banisterfiend: No :)
<shevy> http://www.topnews.in/files/ahonen.jpg that's his typical face, no matter if won or lost
<shevy> argh
<shevy> UGLY LANGUAGE
<matti> ? ;]
<matti> banisterfiend: I am native Polish. Obviously can use English, and a little Spanish and Japanese.
<shevy> damn
<banisterfiend> matti: oh i always thought you spoke a romance language
<klip> well, Czech has 7 cases too :p
<shevy> I killed libssl.* and now mplayer does not work
KL-7 has joined #ruby
<bounce> blah polish isn't difficult
<bounce> 'kurva' is like 1/2 the language
<shevy> but I only did so because ruby-1.9.3 did not want to compile with my current ssl :(
<shevy> hah!
<shevy> I know kurva!
<bounce> and all the rest isn't interesting
<shevy> and picku madre!
bluenemo has joined #ruby
bluenemo has joined #ruby
<matti> bounce: Depends on whom do you talk to :)
<shevy> hmm I once knew what means "dick" in polish but that is like 20 years ago
<matti> bounce: Plus, v = w, there is no "v" in Polish.
* bounce lives in a boarding house with Far Too Many Polish Assholes in it
<matti> Why people always praise themselves for knowing bad words and how to order beer? :)
<shevy> matti, banister is obsessed with french
<joltz> a polish guy installed redhat 6 for me way back when
<bounce> had like 20 of them, maybe 15 now
<joltz> changed my life. thanks, remik
<shevy> if you mention the word "baguette" alone he orgasms to 50%
KL-7_ has joined #ruby
dbgster has joined #ruby
nikhil_ has joined #ruby
<shevy> 15 poles?
<shevy> ghetto? :)
<matti> shevy: Is he? :)
<matti> bounce: Some of use are not too bad.
<shevy> matti, yeah, he always begs Mon_Ouie for new words
<matti> bounce: Higher educated etc :)
<bounce> yeah, but you stay in poland, by and large
<shevy> lol
<matti> bounce: I owe British passport.
<shevy> 30 years ago it were the workers from turkey and yugoslawia here, nowadays it is from poland
<bounce> fsck me, lucky bastard
* matti is a case of dual citizenship.
nikhil_ has joined #ruby
<shevy> dual citizenship should be revoked for everybody :P
* bounce only has one of those, and it's no longer valid. new one costs fingerprints. :(
<shevy> and money?
<matti> bounce: And RFID ;/
<bounce> nah, we should have easier change of citizenship. you do something stupid, you get kicked out. the government does something stupid, you get a different nationality.
KL-7_ has joined #ruby
<shevy> bounce, remember - as a proper slave, you ALWAYS have to pay the government for surveilling you because THEY PROTECT YOU ;P
<matti> bounce: What nationality are you? If you don't mind me asking.
<bounce> .nl
<shevy> everybody should get RFID chip up their asses anyway
<bounce> and that's where I am now, despite appearances (don't speak a word finnish, never been there, etc.)
<matti> bounce: :)
<bounce> yeah, then pay by rfid
<matti> shevy: Why?
<bounce> UP YOUR ASS, that's why
<matti> shevy: What if I get infection?
<matti> shevy: From costantly putting my arse close to the reader.
<klip> nationality is free to change, anytime
<bounce> new source of colon cancer
<matti> :>
<shevy> matti if you get infection you get treatment but it costs 10.000 euro
nikhgupta has quit [#ruby]
<matti> shevy: Darn, pricey.
<klip> however, citizenship is not
<matti> shevy: I shall join hippies then.
<shevy> matti, not even death is for free as it costs the life :>
<shevy> yeah I can understand the hippies much better these days
<shevy> sadly I never smoked
seoaqua has joined #ruby
<bounce> maybe I should start my own citizenship
<bounce> then franchise it
<shevy> bounce, good idea!
<shevy> we'd need a way to govern ourselves though
<bounce> you do what I say
<bounce> easy
Helius has joined #ruby
<bounce> I promise to mostly shut up
<seoaqua> could anyone help me to crack x-amf data of some website
<shevy> hmm I see difficulties with that
<klip> see Article 15 of UDHR... "Everyone has the right to a nationality," and "No one shall be arbitrarily deprived of his nationality nor denied the right to change his nationality."
<bounce> that means what, exactly?
<klip> my wife said she has danish nationality so she could keep male version of surname here :) no one cares... it's your right to change it and choose it :)
bluenemo_ has joined #ruby
<bounce> you're where, iceland?
<klip> czech republic :)
<klip> almost all female surnames are -ova
<bounce> hm gotta visit. for the beer.
<klip> haha
<bounce> and the wimmins
<joltz> matti: do you use ORM with your sinatra?
<klip> wimmins?
<klip> ah
<klip> lol
<bounce> wimmins.
<klip> i see
<bounce> went on a weekend-trip to prague and brno and back a couple years ago
<klip> where are you from? :)
* bounce already mentioned
havenn has joined #ruby
<bounce> back then I lived in berlin so wasn't too far
jenglish has joined #ruby
<shevy> yuck
<shevy> Berlin
<shevy> the biggest ghetto in europe
<bounce> never been in a paris banlieue?
<bounce> or however you write that
<shevy> nope
<bounce> suburbs full of disenfranchised algerian yoof
bluenemo__ has joined #ruby
bluenemo__ has joined #ruby
<bounce> place I lived in berlin (on the edge of the s-bahn ring) was actually quieter and nicer than the place I live in now, in a small town near other small towns
Molfar1 has joined #ruby
<Molfar1> how can I make the method to recall itself with the same params?