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.
<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.
<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
<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
<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
<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
<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?
<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"
<[[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
<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
<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
<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:
<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
<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>
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 :)
<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?