<OptikJai>
Anyone here with any VB.Net experience, can you PM me really quick? The VB channel is dead at the moment and need help with a crucial but really simple problem.
<Banistergalaxy>
Vb.net hehe, sucks to be you;)
<andrewvos>
OptikJai: What you need?
<petercooper>
it's the "no-one's said anything in 3 hours 50 minutes so VB questions are now welcome" hour :)
<andrewvos>
petercooper: haha
<andrewvos>
Agreed.
<petercooper>
to think this is the headline channel for our fine language ;-)
<andrewvos>
OptikJai: Have you seen stackoverflow?
<andrewvos>
Trying not to be sarcastic, but some people haven't even seen that site.
<andrewvos>
lmsotfy.com?
<andrewvos>
Let me stackoverflow that for you.
rushed joined #ruby-lang
looopy joined #ruby-lang
woollyams joined #ruby-lang
DEac-_ joined #ruby-lang
steph021 joined #ruby-lang
savage- joined #ruby-lang
zedUNDginger joined #ruby-lang
chessguy joined #ruby-lang
RomyEatsDrupal joined #ruby-lang
<chessguy>
so eval can take a binding argument, but instance_eval can't?
<petercooper>
yesh
Greasy joined #ruby-lang
<chessguy>
that's annoying
<petercooper>
It is inferred you are trying to do Magic™ :)
<andrewvos>
That's evil
<samuelkadolph>
The object you cal instance_eval on is the binding
<samuelkadolph>
There would be no point
sulo joined #ruby-lang
dhruvasagar joined #ruby-lang
<petercooper>
Though if for whoever knows why you wanted to do something similarish to instance_eval with eval, you could do something like: http://pastie.org/2926544
sulo_ joined #ruby-lang
<GreasyLotus>
Would anybody be interested in skimming over my 180 line chess move checker to give me some opinions on the code quality?
<GreasyLotus>
this is pretty much my first ruby program that isn't a for loop
<petercooper>
instead of doubling up on attr_reader/attr_writer you could do attr_accessor
looopy joined #ruby-lang
<GreasyLotus>
okay
<petercooper>
This sort of approach: unless x then return end .. is also reasonably uncommon
<petercooper>
more usual would be return unless x
meth left #ruby-lang
<lianj>
aw, i just typed that ^^
<GreasyLotus>
this sort of spawned from my 'philosphy' of trying to prove the moves invalid, rather than vice-versa
<heftig>
eh, i'd probably make a "def between(a,b)" instead of shoehorning in into Fixnum
<lianj>
nevermind, go on :) i enjoy reading petercooper
<heftig>
reads more easily, too. "between a and b"
<heftig>
s/in into/it into/
marcostoledo joined #ruby-lang
<GreasyLotus>
lol heftig
<heftig>
also, :legal and :illegal instead of "LEGAL" and "ILLEGAL"
<GreasyLotus>
how does the legal? method look for length?
<GreasyLotus>
phrased differently, do you think it could/should be shorter?
<heftig>
yes, use "a unless b" instead of "unless b then a end"
<heftig>
same with "if"
<GreasyLotus>
k I'll try that
<heftig>
you do that
RomyEatsDrupal joined #ruby-lang
<heftig>
i'm going to bed
<heftig>
good night
<GreasyLotus>
thanks for the pointers
ryanf_ joined #ruby-lang
<lianj>
maybe move the PAWN… constants into the Piece class, as its only uses there
<GreasyLotus>
trouble there is that the Piece class doesn't know where it is
<GreasyLotus>
and pawns moves are dependent on their location
<lianj>
no, just the constant defines
<GreasyLotus>
ah gotcha
arocius joined #ruby-lang
arocius left #ruby-lang
looopy joined #ruby-lang
thone joined #ruby-lang
looopy joined #ruby-lang
caseyx joined #ruby-lang
<caseyx>
"/usr/local/lib/ruby/gems/1.9.1/gems/innate-2011.10/lib/innate/options/dsl.rb:143:in `[]=': No key for :value exists (ArgumentError)" Does anyone know what's wrong?
zedUNDginger joined #ruby-lang
ryanf joined #ruby-lang
<shevy>
caseyx, manveru will surely know
<caseyx>
It's okay, I figured it out, I forgot to include the memcache gem.
<deryl>
I'm a little confused here. I'm trying out rdebug under 1.9.2-p290. I'm running: rdebug -x -d rvm_test.rb -- 'rvm info' and I'm getting things like no such file to load -- clint but i've already did a bundle install and can list the bundled gem. Am I missing something?
<caseyx>
Is the latest of the memcache gem compatible with Ruby 1.9.3p0?
<deryl>
several of the gems that are in the Gemfile that I bundled are coming back as Exception `LoadError' at /Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- clint yet the program runs through just fine. so did it find the gem(s) or not?
<deryl>
I even get the output from the command: https://gist.github.com/1396925 yet it complains it can't find them. Is this something I can ignroe (since its obviously finding them or NONE of the app would run)
x0F_ joined #ruby-lang
Asher joined #ruby-lang
<caseyx>
http://pastie.org/2926779 anyone know why Ramaze isn't loading? I know it's due to this line in my config.ru the link is the error report it spits out
<Asher>
if you count pages i have 1000s but the task now is narrowing it down to a consumable text
caseyx left #ruby-lang
<zedUNDginger>
Asher: Dr Asher Haig
<Asher>
i'm not using my last name
<Asher>
just Asher ;)
<Asher>
i'm working on chapter 0 atm
<Asher>
which is the sort of… methodology chapter… kinda
<zedUNDginger>
Asher: just using msword to write it?
<zedUNDginger>
or something nifty like tex? ;)
<Asher>
i'm using pages for the chapter
<Asher>
but i use devon think for organizing all my writing before it's going to a final form
<zedUNDginger>
cool
<zedUNDginger>
goodluck
<Asher>
thanks
<zedUNDginger>
(bbl)
livinded joined #ruby-lang
<shevy>
is there a way to tell gem to never install rdocs?
<ryanf>
yes
<ryanf>
~/.gemrc
<ryanf>
gem: --no-ri --no-rdoc
<shevy>
cool thanks ryanf
srbartlett joined #ruby-lang
gregmoreno joined #ruby-lang
dr0id joined #ruby-lang
towski joined #ruby-lang
macmartine joined #ruby-lang
MrUnagi joined #ruby-lang
kitallis joined #ruby-lang
looopy joined #ruby-lang
<erikh>
/w 2
<gentz>
How come I get `require': cannot load such file -- datamapper (LoadError), even when I explcitly append the gem dirs to $LOAD_PATH?
<erikh>
require requires files, not gems.
michael_mbp_ joined #ruby-lang
apeiros_ joined #ruby-lang
tallship joined #ruby-lang
RomyEatsDrupal joined #ruby-lang
hebz0rl joined #ruby-lang
ryo84 joined #ruby-lang
neoesque joined #ruby-lang
woollyams joined #ruby-lang
ryo84 joined #ruby-lang
rippa joined #ruby-lang
michael_mbp joined #ruby-lang
swarles joined #ruby-lang
spinagon joined #ruby-lang
michael_mbp_ joined #ruby-lang
mytrile joined #ruby-lang
michael_mbp_ joined #ruby-lang
zmack joined #ruby-lang
<yango>
http://pastie.org/2927287 I've read this code in a book, and I'm wondering why is the second level desirable? I would tend to define the methods directly on FirstLevel
slaytanic joined #ruby-lang
solars joined #ruby-lang
stepnem joined #ruby-lang
<shevy>
yango not sure in this example, perhaps in a larger project you may want to use several smaller modules
michael_mbp_ joined #ruby-lang
yxhuvud joined #ruby-lang
michael_mbp_ joined #ruby-lang
michael_mbp joined #ruby-lang
michael_mbp_ joined #ruby-lang
sulo joined #ruby-lang
s3mi0 joined #ruby-lang
michael_mbp_ joined #ruby-lang
Dreamer3 joined #ruby-lang
My_Hearing joined #ruby-lang
Asher joined #ruby-lang
publicvoid joined #ruby-lang
michael_mbp_ joined #ruby-lang
wyhaines joined #ruby-lang
adambeynon joined #ruby-lang
slaytanic joined #ruby-lang
michael_mbp_ joined #ruby-lang
flooose joined #ruby-lang
werwolf joined #ruby-lang
Aaaarg joined #ruby-lang
ecin joined #ruby-lang
ecin_ joined #ruby-lang
michael_mbp_ joined #ruby-lang
michael_mbp_ joined #ruby-lang
zmack joined #ruby-lang
apeiros_ joined #ruby-lang
benanne joined #ruby-lang
jxie joined #ruby-lang
<perryh>
can anyone help me with my code? http://pastie.org/private/w1eqkivt7kelvhuxc9fog I'm trying to use nokogiri to pull a specific element but for some reason it's not printing out anything
<perryh>
any help is much appreciated
takaokouji joined #ruby-lang
brushbox joined #ruby-lang
<shevy>
hmm I am trying to sort an array that is like:
<shevy>
my beautiful .sort_by, why doest thou fail me :(
<apeiros_>
it doesn't. .sort_by { |a| case_insensitive_natural_sort_key(a) }
<apeiros_>
ups
<apeiros_>
.sort_by { |a| case_sensitive_natural_sort_key(a) } # you want case sensitive, right?
<shevy>
I am not yet sure hehe
<shevy>
right now I am thinking whether I can simplify (dumb down) the arrays that I have to see sorted
<apeiros_>
well, just change from "case_sensitive" to "case_insensitive" in the code. not that difficult :-p
<shevy>
["5.12.1", "5.14.2", "5.15.4", "5.8.8"]
<apeiros_>
yeah, still natural sorting. in case of this you can use a simplified algorithm: sort_by { |key| key.scan(/\d+/).map(&:to_i) }
<shevy>
oh cool! thanks apeiros_
<apeiros_>
it's basically what case_insensitive_natural_sort_key does
<apeiros_>
man, I copy & paste the wrong all the time today, eh?
<apeiros_>
it's basically what case_sensitive_natural_sort_key does
<apeiros_>
so
<apeiros_>
the insensitive one does additional work
<shevy>
hmm always wanted to ask you one thing
<shevy>
you have something like: "if stable then"
<shevy>
why do you use the "then"?
<apeiros_>
it reads easier to me
<shevy>
ah ok
<apeiros_>
I always stumble reading if's without then's
<apeiros_>
hm, that should be without ' I guess…
Manhose joined #ruby-lang
kitallis joined #ruby-lang
Locke23rus joined #ruby-lang
diegoviola joined #ruby-lang
s3mi0_ joined #ruby-lang
s3mi0 joined #ruby-lang
Manhose_ joined #ruby-lang
Asher joined #ruby-lang
werwolf joined #ruby-lang
benanne joined #ruby-lang
toretore joined #ruby-lang
thrcka joined #ruby-lang
adambeynon joined #ruby-lang
Manhose joined #ruby-lang
werwolf joined #ruby-lang
robotmay joined #ruby-lang
mytrile joined #ruby-lang
DRCALKIN joined #ruby-lang
yorickpeterse joined #ruby-lang
Mchl joined #ruby-lang
chessguy joined #ruby-lang
flexd joined #ruby-lang
flexd joined #ruby-lang
Manhose joined #ruby-lang
mytrile joined #ruby-lang
flexd joined #ruby-lang
flexd joined #ruby-lang
shevy joined #ruby-lang
Spooner joined #ruby-lang
skammer joined #ruby-lang
beiter joined #ruby-lang
lupine_85 joined #ruby-lang
RomD` joined #ruby-lang
RomyEatsDrupal joined #ruby-lang
takaokouji joined #ruby-lang
s3mi0_ joined #ruby-lang
skammer joined #ruby-lang
DEac- joined #ruby-lang
molgrew joined #ruby-lang
Jake232 joined #ruby-lang
queequeg1_ joined #ruby-lang
burgestrand joined #ruby-lang
skammer joined #ruby-lang
Indian joined #ruby-lang
zedUNDginger joined #ruby-lang
heftig joined #ruby-lang
chessguy joined #ruby-lang
<andrewvos>
gnome 3 would be nice if it wasn't a blatant copy of the Windows 7 start menu.
<shevy>
hehe
<shevy>
no worries
<shevy>
HTML5 and CSS will kill the traditional desktop
<lianj>
oO sure
<rue>
HTML7 maybe
<shevy>
lianj I see you are sceptical. Why?
<lianj>
no comment, sorry :>
burgestrand joined #ruby-lang
<apeiros_>
HTML6 will reintroduce us to the mainframe
udzinari joined #ruby-lang
<ruskie>
heh
<andrewvos>
shevy: Hahhaahah
Jake232 joined #ruby-lang
kmeehl joined #ruby-lang
savage- joined #ruby-lang
Jake232 joined #ruby-lang
flip_digits joined #ruby-lang
<darix>
apeiros_: you saw that as if the mainframe was ever dead :p
<apeiros_>
being a zombie qualifies as dead
Jake232 joined #ruby-lang
chessguy joined #ruby-lang
<steveklabnik>
undead, actually
hahuang65 joined #ruby-lang
kmeehl joined #ruby-lang
zmack joined #ruby-lang
slyphon__ joined #ruby-lang
darkf joined #ruby-lang
felipegb joined #ruby-lang
nofxx joined #ruby-lang
DRCALKIN joined #ruby-lang
Aaaarg joined #ruby-lang
EvilJStoker joined #ruby-lang
lsegal joined #ruby-lang
Pip joined #ruby-lang
RomD`` joined #ruby-lang
Aaaarg joined #ruby-lang
wuut joined #ruby-lang
<nofxx>
On 1.9.3p0 one can't install a gem if there's accentuation (author name often) on the Gemfile and the OS doesn't set LC_ALL=xxx-UTF8 (LANG is set). Bug?
<nofxx>
echo LC_ALL=$LANG fix the issue.
<apeiros_>
echo?
<apeiros_>
export, no? :)
<nofxx>
apeiros_: hehe ^cho^xport ... sorry just wake up
<nofxx>
apeiros_: friends wedding yestreday... I'm still drunk
<erikh>
zenspider: https://launchpad.net/subunit/ - figured given out discussion of TAP ages ago you might find this interesting
<erikh>
it's like TAP, but marginally sane
<erikh>
and used all over the place apparently
kitallis joined #ruby-lang
dejongge joined #ruby-lang
Ki4n joined #ruby-lang
solars joined #ruby-lang
Jake232 joined #ruby-lang
RomyEatsDrupal joined #ruby-lang
burgestrand joined #ruby-lang
<rue>
TAP formatting?
<rue>
erikh: Is the protocol actually described somwhere?
<erikh>
yeah, I want to say it's at testanything.org
<erikh>
or are you talking about subunit?
<erikh>
it's really simple, but I don't have documentation handy
<rue>
Yes, subunit. One'd think it'd be on the front page
<erikh>
agreed
<rue>
Especially if it's simple :P
<erikh>
heh
<erikh>
check_money.c:10:F:Core:test_money_create: Amount not set correctly on
<erikh>
creation
<erikh>
that's the sum of it
towski joined #ruby-lang
thrcka joined #ruby-lang
<erikh>
man, way too much coffee this morning.
mdel joined #ruby-lang
ecin joined #ruby-lang
<rue>
How is that useful? :/
<rue>
Man. Why can't they at least jump on the JSON train or something
steph021 joined #ruby-lang
steph021 joined #ruby-lang
hagabaka joined #ruby-lang
hagabaka joined #ruby-lang
<erikh>
rue: split(':') man
<erikh>
or strsep() if you're into sexier things
<rue>
It's still nonsense
<erikh>
dunno, as of late I am starting to appreciate thinking less about these kinds of things. it's too easy to fall into the trap of criticizing everything.
<erikh>
nihilism is easy
thrcka joined #ruby-lang
nofxx joined #ruby-lang
<rue>
Stupidity is even easier!
malev joined #ruby-lang
<rue>
OK, I'm a little grumpy
<rue>
But, still.
tomzx joined #ruby-lang
<yxhuvud>
erikh: constuctive critisism is not nihilism.
<yxhuvud>
the border between the two are not always clear though.
savage- joined #ruby-lang
woollyams joined #ruby-lang
paul0 joined #ruby-lang
canuck3141 joined #ruby-lang
queequeg1_ joined #ruby-lang
apeiros_ joined #ruby-lang
<dreinull>
anybody using janus here?
ryanf joined #ruby-lang
cyri_ joined #ruby-lang
tomzx joined #ruby-lang
woollyams joined #ruby-lang
<ddfreyne>
somebody said anus!
kedare joined #ruby-lang
slyphon__ joined #ruby-lang
sepp2k joined #ruby-lang
igotnolegs joined #ruby-lang
gru joined #ruby-lang
livinded joined #ruby-lang
udzinari joined #ruby-lang
<rue>
ddfreyne: Good to see you've your trigger words set up
<erikh>
rue: not sure why you think picking and choosing what to care about is stupid
<erikh>
anyhow, I don't mean to fight
<rue>
erikh: I meant that coming up with stupid solutions is easy, too. Especially if nobody cares about it
<erikh>
fair enough
<rue>
Actually, what's even easier is solving the wrong problem
<erikh>
hammer, nail
<rue>
That said, I dunno if this particularly qualifies, except that I'm not sure how much additional value is produced especially over TAP, if the data's not structured
<rue>
On the other hand there's JUnit and it's XML-tastic XML
<erikh>
the data *is* structured
<erikh>
it's just not in a commonly-avaiable format (unless you count a passwd database "common")
<erikh>
dbm, etc
<erikh>
I mean I guess it's a bit like saying csv isn't structured
<erikh>
it's a bit of a stretch saying it is, but it's not unstructured either
<rue>
That's true
<ddfreyne>
rue, erikh: whew, i thought this conversation was about what I said a few minutes ago and couldn’t figure out why the heck you were talking about it
<erikh>
ddfreyne: anuses are structured
<rue>
But it is
<erikh>
the starfish principle
<rue>
erikh: I suppose I'd expect either a more semantic scheme or a serialization format
<erikh>
yeah, see, tap is really semantic but it's also a bitch to parse
<ddfreyne>
why is it a bitch to parse?
<erikh>
read hte spec, heh
<erikh>
basic tap is pretty easy
nudded joined #ruby-lang
<ddfreyne>
yeah well… from what I saw of TAP, it seemed quite simple
<ddfreyne>
at my work, I had to write a parser for a format
<ddfreyne>
and I have never, ever seen such a simple format in professional use
<ddfreyne>
basically it said: columns 1 to 50 are a string containing this, columns 51 to 80 are that, etc
<erikh>
oh, that's a dirt old database format
<ddfreyne>
sure, it’s not flexible, but parsing is so nice :D
<erikh>
I forget the name... ISAM?
<ddfreyne>
nah, it's something domain specific
<ddfreyne>
broadcast industry stuff
<erikh>
right, but the general gist of fixed length records has an acronym
<ddfreyne>
For the Amon Tobin album, see ISAM (album).
<ddfreyne>
↑ good music
hagabaka joined #ruby-lang
<erikh>
heh
<rue>
erikh: But given this (presumably valid) problem of needing a common test output format, is this really the best solution? YAGNI and everything, but still.
<ddfreyne>
Are you deciding on a "standard" output format for test results?
<erikh>
hardly
<erikh>
rue: dunno, it'd be pretty nice if my lua bindings could emit this as well as my C stuff.
<ddfreyne>
quite a while ago I had the idea of modifying minitest so it outputs some intermediary format, and then add formatter frontends… I never really got far with the idea
<ddfreyne>
so then you could output it as ..F.SSE.. or something, as TAP, as something more verbose, … etc
<erikh>
right
<erikh>
rspec does something like that now
<ddfreyne>
I haven’t looked at rspec in a long while
<erikh>
me neither, I just see it from the gem-testers stuff.
phaedrix joined #ruby-lang
s0ber_ joined #ruby-lang
queequeg1 joined #ruby-lang
KiLliNdAtHoE joined #ruby-lang
<KiLliNdAtHoE>
Nigger nigger on the run, get my shotgun have some fun
ttilley joined #ruby-lang
<yorickpeterse>
what
<KiLliNdAtHoE>
EXACTLY WHAT SHE SAID
dv310p3r joined #ruby-lang
canuck3141 joined #ruby-lang
nuclearsandwich joined #ruby-lang
<andrewvos>
Err, what's going on here then?
<KiLliNdAtHoE>
A civilized chat.
<andrewvos>
haha
<KiLliNdAtHoE>
What else could possibly be going on here?
<andrewvos>
Some idiot could be talking some random shit. Happens quite often.
<KiLliNdAtHoE>
Mhm. Shit is refered to excrement. I don't think words can have the physical properties of "shit".
<erikh>
wait when are you going to start talking about madonna and detroit
<KiLliNdAtHoE>
Madonnas old. Detroits full of niggers. Next topic plz.
canuck31_ joined #ruby-lang
skammer joined #ruby-lang
benanne joined #ruby-lang
hagabaka joined #ruby-lang
hagabaka joined #ruby-lang
KiLliNdAtHoE joined #ruby-lang
KiLliNdAtHoE left #ruby-lang
KiLliNdAtHoE joined #ruby-lang
<KiLliNdAtHoE>
I wish i had my own negro..
<rue>
zenspider: OK, dammit. Ops pls.
<KiLliNdAtHoE>
You need to go poo?
was kicked by apeiros_: you're not welcome here
KiLliNdAtHoE joined #ruby-lang
<KiLliNdAtHoE>
Its alright. The toilets that-a-way!
<dreinull>
andrewvos: you're still on amazon with irssi?
<dreinull>
I hopped on the tmux train. Not sure if I like irssi better than limechat :S
<dreinull>
feels a bit like vi
towski joined #ruby-lang
felipegb joined #ruby-lang
<shevy>
hmmmm
<shevy>
is it possible to ...
<rue>
Yes
<shevy>
... set $? to a non-number?
ryanf joined #ruby-lang
nofxx joined #ruby-lang
<shevy>
come on
<shevy>
there must be a way ...
<shevy>
I want to abuse return values :(
<lianj>
in unix?
<rue>
The way, the WAY OF PROGRAMMING (cue tune)
<rue>
Is to write a wrapper for it.
<shevy>
hmm
WillMarshall joined #ruby-lang
<shevy>
I need to somehow set the path to a directory from within a ruby script. If bash starts that script though, it runs in a subprocess and I haven't figured a way out yet to tell bash to use that value, and cd into that value's specified directory
<andrewvos>
dreinull: Yes still on and loving it
<lianj>
shevy: ENV[] maybe
<dreinull>
andrewvos: maybe I'll get used to it. I can see some advantages. I will try it a bit longer.
<andrewvos>
dreinull: IRSSI is very nice when you get used to it. That reminds me; a friend mentioned I should try getting growl notifications working with tmux.
wyhaines joined #ruby-lang
saLOUt joined #ruby-lang
<andrewvos>
dreinull: Yeah maybe. The only thing you miss is seeing images inline
<andrewvos>
dreinull: But I like having my IRC in a thin horizontal window above my vim session.
<andrewvos>
dreinull: Because we use IRC quite heavily at work
<lianj>
haha, half day work the other half irc
<shevy>
hehe
<dreinull>
andrewvos: that sounds like we work a bit while using irc
<shevy>
wait
<andrewvos>
dreinull: well...
<shevy>
while you are writing in vim, IRC scrolls by on top?
<shevy>
spam!
<shevy>
how is that
<andrewvos>
shevy: Indeed
<dreinull>
could you please stop coding while we chat...