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
<eph3meral> the_jeebster, basically &:foo is always and forever, exactly equivalent to {|x|x.foo} where foo can be anything
<eph3meral> so
<the_jeebster> cool
<eph3meral> the_jeebster, &:snoochieboochins would translate in to {|x|x.snoochieboochins}
maccosmo_ has joined #ruby
<eph3meral> the_jeebster, like, for practical purposes, that's all you need to know
<eph3meral> so, for example, this doesn't work on a hash
<eph3meral> the_jeebster, it'll only work on objects that respond to those methods
redgetan has left #ruby ["Leaving"]
<the_jeebster> interesting it doesn't work on the hash. I see it as hash.each_value &:nil? as hash.each_value { |value| value.nil?}
tewecske has quit [Quit: Leaving.]
<eph3meral> uhh, well it will work on methods that a hash responds to
<eph3meral> so theoretically you could my_hash.map(&:nil?)
ibash has joined #ruby
<the_jeebster> right
<eph3meral> because .nil? is a method
youdonotexist has joined #ruby
<eph3meral> [{:name => "Jim", :height => "6ft"},{:name => "Bob", :height => "5ft"}].map(&:name) won't work
<eph3meral> you must do
b3nt_pin has quit [Read error: Connection reset by peer]
<eph3meral> [{:name => "Jim", :height => "6ft"},{:name => "Bob", :height => "5ft"}].map({|x|x.name})
maccosmo has quit [Ping timeout: 245 seconds]
maccosmo_ is now known as maccosmo
<eph3meral> the full thing
<eph3meral> er, dop
<eph3meral> sorry
<eph3meral> [{:name => "Jim", :height => "6ft"},{:name => "Bob", :height => "5ft"}].map({ |x| x[:name] })
<eph3meral> the_jeebster, ^
<eph3meral> gotta do it like that for a hash
b3nt_pin has joined #ruby
oooPaul has quit [Quit: Ciao for now!]
mrsolo has quit [Quit: This computer has gone to sleep]
kevinbond has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<tommylommykins> actually, according to the docs on enumerable
mrsolo has joined #ruby
<tommylommykins> if you use #any without a block, it tells you whether some collection is all empty or not
<the_jeebster> well, the result I'm getting seems to be working with some_hash.each_value.all? &:nil?
kenperkins has joined #ruby
<tommylommykins> yeah
<the_jeebster> hopefully this covers edge cases :)
<the_jeebster> thanks for the help, I'm out fellas
<tommylommykins> so you could write !!(some_hash.each_value.any?)
ZachBeta has joined #ruby
<tommylommykins> but that doesn't read so well
fayimora has joined #ruby
<tommylommykins> imo
pk1001100011 has quit [Ping timeout: 244 seconds]
the_jeebster has quit [Quit: Leaving.]
beilabs_ has joined #ruby
vitor-br has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
fivetwentysix has quit [Quit: fivetwentysix]
rorrego has quit [Quit: Ex-Chat]
kenperkins has quit [Quit: Computer has gone to sleep.]
counterbeing has quit [Quit: Computer has gone to sleep.]
cousine has quit [Remote host closed the connection]
siksia has quit [Ping timeout: 244 seconds]
jgrevich has joined #ruby
macmartine has joined #ruby
dbgster has joined #ruby
mikeg has quit [Ping timeout: 240 seconds]
vitor-br has quit [Quit: Saindo]
jedmtnman has joined #ruby
benatwork has joined #ruby
siksia has joined #ruby
vitor-br has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
<socomm> I saw this awhile back, but can't remember the name of the project, maybe someone here can help me. There is a project out there that will allow compilation of ruby code.
beilabs_ has quit [Ping timeout: 265 seconds]
beilabs has quit [Ping timeout: 260 seconds]
<socomm> ah nanoc
<socomm> jesus getting old sucks
heeton has joined #ruby
heeton has left #ruby [#ruby]
heeton has joined #ruby
nari has quit [Ping timeout: 240 seconds]
<heeton> I've got an object with a tonne of computed properties, methods that rely on the values of other methods being set etc.
banisterfiend has quit [Remote host closed the connection]
<eph3meral> doesn't rubinius do that?
<heeton> Right now, it's a mess of ifs and returns
<heeton> Can anyone recommend a gem or approach, that will let me setup a dependency graph or something?
kenichi has quit [Remote host closed the connection]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
mxweas_ has quit [Quit: Computer has gone to sleep.]
artOfWar_ has quit [Ping timeout: 260 seconds]
benatwork has quit [Ping timeout: 245 seconds]
<eph3meral> heeton, yeah I don't think there's really any kind of gem that will help you with that
dankest has quit [Quit: Linkinus - http://linkinus.com]
<eph3meral> heeton, the best you can do is A) eliminate as much of that as possible and B) what you can't eliminate, document thoroughly with rdoc etc
<eph3meral> heeton, one of the goals of the functional approach is to get rid of those kinds of dependencies entirely
<heeton> eph3meral: not fussed about documenting it, would just like to cut down on code
<eph3meral> heeton, ok, well then I dunno, sounds like you need to rethink the approach
<eph3meral> heeton, try to eliminate as much state dependency as possible
<heeton> Approach seems ok... I'm calculating a form essentially. And things like 'age' are dependant on 'date of birth'
<heeton> I'd like it to be nil if dob is specified, or filled in if it is
<heeton> *isn't
<heeton> I can imagine my own little meta-programming hack to do that, but I imagine this might have been encountered before
pdtpatrick has quit [Quit: pdtpatrick]
beilabs has joined #ruby
tomb_ has joined #ruby
wilmoore has quit [Remote host closed the connection]
wilmoore has joined #ruby
beilabs_ has joined #ruby
beilabs__ has joined #ruby
benson has quit [Quit: Leaving]
perryh_away is now known as perryh
mrsolo has quit [Quit: Leaving]
wilmoore has quit [Ping timeout: 240 seconds]
joast has quit [Quit: Leaving.]
crankyco_ has joined #ruby
crankycoder has quit [Ping timeout: 250 seconds]
digitalcakestudi has joined #ruby
nisstyre has quit [Quit: Leaving]
nisstyre has joined #ruby
dv310p3r has joined #ruby
jonathanwallace has joined #ruby
robdodson has quit [Quit: robdodson]
ghanima has quit [Ping timeout: 244 seconds]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
crankyco_ has quit [Remote host closed the connection]
wvms has quit [Read error: Connection reset by peer]
mattwildig has quit [Quit: mattwildig]
wargasm has joined #ruby
bigoldrock has quit [Quit: Leaving.]
wvms has joined #ruby
igotnolegs has joined #ruby
yabuki has joined #ruby
chico_chicote has joined #ruby
gtuckerkellogg has joined #ruby
jimeh2 has quit [Ping timeout: 245 seconds]
DRCALKIN has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
ben_m has quit [Quit: Leaving]
fivetwentysix has joined #ruby
adamkittelson has quit [Read error: Operation timed out]
iori has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
<fivetwentysix> eph3meral: collection(&:[:name]) won't work?
<eph3meral> fivetwentysix, dunno, good question
CannedCorn has quit [Ping timeout: 244 seconds]
yabuki has quit [Quit: Leaving...]
<fivetwentysix> nm
<fivetwentysix> won't work
<eph3meral> fivetwentysix, seems not, no, just tried it
ckrailo has quit [Quit: Computer has gone to sleep.]
alexim has quit [Quit: sleep]
fgwaegeawgfwa has joined #ruby
Gavilan has quit [Ping timeout: 260 seconds]
wmoxam has joined #ruby
azm has joined #ruby
itnomad has joined #ruby
stephenjudkins has joined #ruby
liluo has joined #ruby
wang_ is now known as wang
itnomad has quit [Client Quit]
dwon has joined #ruby
wmoxam has quit [Ping timeout: 244 seconds]
brianpWins has quit [Quit: brianpWins]
Aaton is now known as Aaton_off
jedmtnman has quit [Quit: Leaving.]
iori has quit [Remote host closed the connection]
cryptfu has quit [Quit: Leaving]
shevy has quit [Read error: Operation timed out]
maccosmo has quit [Quit: maccosmo]
banisterfiend has joined #ruby
jchauncey has joined #ruby
iamjarvo has joined #ruby
jchauncey has quit [Client Quit]
heeton has quit [Quit: heeton]
ibash has quit [Quit: ibash]
iori has joined #ruby
daniel_hinojosa has quit [Ping timeout: 260 seconds]
trend has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nfluxx has quit [Ping timeout: 244 seconds]
alegacyreborn has joined #ruby
dorei has quit []
digitalcakestudi has quit [Quit: Leaving.]
<alegacyreborn> xD
alegacyreborn has quit [Client Quit]
recursive has joined #ruby
<recursive> why is 'hello' === 'hello' => true but String === String => false?
<banisterfiend> recursive: === can mean different thigns depending on the receiver
<eph3meral> good question
artOfWar has joined #ruby
ringotwo has quit [Remote host closed the connection]
shevy2 has joined #ruby
<banisterfiend> recursive: in the case of most objects it's equivalent to ==, but other objects override it to mean something else. FOr ranges it means include?, for classes/modules it means is_a? and for procs it means call()
<banisterfiend> recursive: === is used implicitly in case statements
adeponte has quit [Remote host closed the connection]
<banisterfiend> case obj
<banisterfiend> when String
<banisterfiend> ptus "it's a string!"
<banisterfiend> when Fixnum
<banisterfiend> puts "its a fixnum!"
<banisterfiend> end
<banisterfiend> ^ in that example there's an implicit String === obj, which translates to obj.is_a?(String), and so the 'when' clauses match when obj is-a-kind-of the object after the 'when'
<banisterfiend> recursive: so the reason String === String returns false is because String.is_a?(String) is false
werdnativ has quit [Ping timeout: 245 seconds]
beilabs has quit [Ping timeout: 245 seconds]
beilabs_ has quit [Ping timeout: 252 seconds]
beilabs__ has quit [Ping timeout: 260 seconds]
piotr_ has quit [Read error: Operation timed out]
ibash has joined #ruby
thiagopnts has joined #ruby
luxurymode has joined #ruby
azm has quit [Ping timeout: 260 seconds]
ianbishop has joined #ruby
mengu has quit [Remote host closed the connection]
c3l has joined #ruby
uris has joined #ruby
beilabs has joined #ruby
Araxia_ has quit [Quit: Araxia_]
beandip has joined #ruby
savage- has quit [Remote host closed the connection]
niku4i has joined #ruby
mucker has quit [Quit: leaving]
niku4i has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
choffstein has quit [Remote host closed the connection]
Hanmac has joined #ruby
<stewart_> given a url to an image does anyone know a way to get the height and width of that image?
<ibash> banana
<stewart_> banana?
frishi has quit [Quit: Linkinus - http://linkinus.com]
<ibash> banana
roams has joined #ruby
uris has quit [Quit: leaving]
Scub has quit [Remote host closed the connection]
<eph3meral> i don't like it, yellow smells funnier than hammer
shtirlic_ has joined #ruby
ringotwo has joined #ruby
kickroot has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
chomp has quit [Quit: Leaving]
beilabs has quit [Ping timeout: 245 seconds]
<jrajav> Won't spoil the answer for you
thiagopnts has quit [Ping timeout: 260 seconds]
tayy has quit [Remote host closed the connection]
shtirlic has quit [Ping timeout: 260 seconds]
thiagopnts has joined #ruby
siksia has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: Leaving.]
<stewart_> jrajav: hey thanks a lot… exactly what I was looking for
<jrajav> My Google powers are fabled 'cross the land
beandip has quit [Quit: WeeChat 0.3.2]
<ibash> jrajav: google me
<ibash> jrajav: a banana
albemuth has quit [Quit: Computer has gone to sleep.]
kevinbond has left #ruby [#ruby]
elliottcable has quit [Ping timeout: 246 seconds]
ringotwo has joined #ruby
warebec|hat has quit [Ping timeout: 245 seconds]
beandip has joined #ruby
roams has quit [Ping timeout: 245 seconds]
<jrajav> You asked for it
siksia has joined #ruby
<ibash> excellent
<ibash> jrajav: google me a personal assistant
minijupe has joined #ruby
wallerdev has quit [Quit: wallerdev]
kleber has joined #ruby
jhunter has quit [Ping timeout: 252 seconds]
kevinbond has joined #ruby
jhunter has joined #ruby
<kleber> hello guys, Im having some problem with a specific regex grouping. I have created a gist so you can take a look https://gist.github.com/2872088 is this an expected behaviour?
ringotwo_ has joined #ruby
beandip has quit [Quit: WeeChat 0.3.2]
ringotwo has quit [Read error: No route to host]
beilabs has joined #ruby
yannis has quit [Quit: Bye!]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
beandip has joined #ruby
<bnagy> kleber: yes, it's expected
<bnagy> the string matches :)
<bnagy> you might want scan?
beandip has quit [Client Quit]
<kleber> what about facebook-com? it doesn't match also?
<bnagy> it would, but the string has already matched
<kleber> I was expecting to match both 'google-com' and 'facebook-com'
beandip has joined #ruby
albemuth has joined #ruby
<kleber> it worked when I tried on rubular.com
<kleber> just tried with scan and it match both
<bnagy> like I said, it sounds like you want String#scan
benatwork has joined #ruby
<kleber> well, scan works, thank you :)
k776 has joined #ruby
benatwork has quit [Ping timeout: 245 seconds]
ringotwo_ has quit [Ping timeout: 250 seconds]
<k776> Hey. I've been using Ruby for 4 years now. I've just started thinking about micro-optimizations during coding. Things like using single quotes ( ' ) for strings without interpolation. Granted, that probably does have a big impact. But what about symbols v.s. strings for hashes? I've heard it can cause bloat in an app because symbols are as GC'd as strings. Anyone got thoughts on the matter?
<k776> (is it common/good practice to use strings instead of symbols? Does it have much impact on memory usage?)
<banisterfiend> k776: only if you're dynamically generating a tonne of symbols which i imagine is incredibly rare
<bnagy> symbols are better than strings in terms of memory usage
eph3meral has quit [Quit: Leaving]
<bnagy> ++++++++++++++++
<bnagy> sorry, no idea what caused that
ringotwo has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
<k776> banisterfiend: Ok
<stephenjudkins> k776: if you aren't actually interpolating anything, there is zero difference between using " and '
<banisterfiend> k776: basically for every symbol you create there's one corresponding string that hangs around forever in memory
<stephenjudkins> during the parser phase they are converted to the exact same thing in the AST
DRCALKIN has quit [Quit: Leaving]
ananthakumaran has joined #ruby
<bnagy> if you want micro optimisations, then think about stuff like object creation - don't use "str" + "other", and try to use lazy enumerators instead of iplicit array creation etc
trend has quit [Quit: trend]
<stephenjudkins> k776: also: never, ever do micro-optimizations without benchmarking
<stephenjudkins> at that level, things are rarely slow where you expect
<k776> stephenjudkins: Yup, I'm not going crazy changing my app, just thigns to think about while developing
iamjarvo has joined #ruby
<stephenjudkins> don't think about it unless it's an actual problem.
<k776> If string interpolation and string v.s. symbol aren't problems, I won't worry about them :-)
ramblex has quit [Quit: ramblex]
<bnagy> string vs symbol is often an issue
<stephenjudkins> always use symbols when (1) there are a finite number and (2) they are hardcoded in the source
<stephenjudkins> never (or perhaps only rarely) should you dynamically create a symbol from an arbitrary string
<bnagy> unless you have a hash you are going to want to serialise
<banisterfiend> i read talk about GCing of symbols in ruby 2.0 tho
yoklov has quit [Quit: computer sleeping]
radic has quit [Disconnected by services]
radic_ has joined #ruby
<stephenjudkins> symbols are partially an optimization, where you can determine equality by object identity alone
radic_ is now known as radic
wilmoore has joined #ruby
<stephenjudkins> banisterfiend: yes, i believe they are planning on using something like Java's soft references
<banisterfiend> cool
<stephenjudkins> weak references, rather.
yoklov has joined #ruby
burgestrand1 has joined #ruby
burgestrand has quit [Ping timeout: 245 seconds]
<stephenjudkins> k776: another point: if you are worried about micro-optimizations in Ruby, you are using the wrong language
<stephenjudkins> it's very useful to fix major hot spots in an application that runs too slow
<bnagy> well most of those are just good ruby style anyway
<stephenjudkins> but spending time to get an already slow language to run 5% faster across-the-board is usually unwise
krusty_ar has quit [Quit: No Ping reply in 180 seconds.]
<eam> I don't think I agree re: wrong language. 5-10% is significant and if it's near free one should take it
krusty_ar has joined #ruby
<banisterfiend> nerd fight!
ipoval has joined #ruby
<eam> (meaning, good style regardless)
<banisterfiend> (i hope)
<stephenjudkins> usually changes to the overall architecture of your application will yield vastly more speedups than ruby micro-optimizations
<k776> stephenjudkins: I'm not worried :-)
<k776> I
jhunter has quit [Ping timeout: 260 seconds]
<k776> I'm just looking for new ways to write better code
<stephenjudkins> eam: if it's good style regardless, of course one should do it!
<k776> (better = less slow in normal day coding)
<eam> stephenjudkins: that's absolutely true, but I think both points are true
<bnagy> if you want 'faster' then switching interpreter is going to be a lot more payback then changing how you use symbols etc :)
<stephenjudkins> eam: but, if there is ever a tradeoff between "slightly faster" and "cleaner/more readable/more maintainable"
<dekz> k776: those things shouldn't be 'micro optimisations' but part of your code styling
<stephenjudkins> when writing Ruby, take the latter, always.
<eam> stephenjudkins: agree
<k776> dekz: Right, the fastests executing coding style ;-)
<stephenjudkins> because Ruby is slow as shit anyways, who cares? optimize for programmer productivity
<eam> I just wouldn't go so far as to hate on small performance gains!
jhunter has joined #ruby
kah_ has joined #ruby
<k776> stephenjudkins: At least Ruby is faster than PHP :-)
<stephenjudkins> Ruby has treated me very well career-wise, i'm not ragging on it.
<stephenjudkins> but...i've gone and replaced hotspots written in Ruby with parts written using another, much faster language, and the speedup is an order of magnitude greater than what I could have spent 2x as long fighting with Ruby to eke out
<stephenjudkins> 99% of the time Ruby is fast enough and no could care or tell the difference in the first place
anykey has joined #ruby
anykey is now known as any-key
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<banisterfiend> stephenjudkins: why not just drop down to the ruby C API?
<banisterfiend> stephenjudkins: better yet, rubyinline
<stephenjudkins> banisterfiend: if i were comfortable writing C that would be a great idea
<stephenjudkins> i will never use ruby inline again
<banisterfiend> oh why
<stephenjudkins> the way it compiles and caches code is a mess
<eam> stephenjudkins: oh, similar to inline::c in perl? That thing was horrid
wallerdev has joined #ruby
<stephenjudkins> jruby + scala is my current toolkit
<banisterfiend> stephenjudkins: i never really had a problem with rubyinline, do u remember specifically what was bugging u
<banisterfiend> i know it used to have a problem mixing up 1.9 and 1.8 binaries but i think they sorted that
<stephenjudkins> banisterfiend: crazy deployment issues, permissions, file locks
<eam> banisterfiend: it was recommended to me that I should stick to FFI when wrapping C so as to get jruby bindings for free
<eam> much slower of course
<banisterfiend> eam: FFI is only useful when you're wrapping C :) we're talking about writing C for a hotspot
<eam> and why would you torpedo modularity?
<banisterfiend> what do u mean
<stephenjudkins> eam: it's much slower, but for many things the dispatch overhead is tiny compared to what's going on.
<banisterfiend> stephenjudkins: yeah, i've only prototyped with rubyinline
<eam> I mean if you're going to write a module why not start by writing a shared object
apok has quit [Ping timeout: 245 seconds]
<stephenjudkins> also, jruby 1.7 + openjdk 7 promises to be the fastest ruby implementation by a long shot
balki has quit [Remote host closed the connection]
kleber has quit [Quit: Saindo]
<stephenjudkins> eam: i agree. if you're writing substantial amounts of C code, rubyinline is not the place to put it.
<stephenjudkins> if you're writing bindings to a C/native library, FFI is the way to go.
<banisterfiend> eam: well i dont use rubyinline, i use real c extensions
<banisterfiend> but i like rubyinline for prototyping
<banisterfiend> eam: also, so long as you stick to the public A API, jruby and rbx can use them too
stephenjudkins has quit [Quit: stephenjudkins]
<banisterfiend> public C API*
alanp has joined #ruby
balki has joined #ruby
k776 has left #ruby [#ruby]
canton7 has quit [Ping timeout: 272 seconds]
burgestrand1 has quit [Ping timeout: 245 seconds]
andrewhl has joined #ruby
wallerdev has quit [Quit: wallerdev]
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
uris has joined #ruby
dv310p3r has quit [Ping timeout: 245 seconds]
<bnagy> what's good about scala with jruby?
beilabs has quit [Ping timeout: 265 seconds]
noodletraveler has joined #ruby
macmartine has quit [Quit: macmartine]
fbernier has joined #ruby
bricker88 has quit [Quit: Leaving.]
ZachBeta has joined #ruby
sbanwart has quit [Read error: Operation timed out]
Magnu has joined #ruby
noodletraveler has quit [Ping timeout: 245 seconds]
zenith6 has joined #ruby
noodletraveler has joined #ruby
<banisterfiend> bnagy: i think he's using scala the way that real programmers use 'C', to speed up their apps on certain performance critical areas
undersc0re97 has quit [Remote host closed the connection]
seanstickle has quit [Quit: Nihil sub sole novum]
mrdtt has joined #ruby
noodletraveler has quit [Ping timeout: 256 seconds]
beilabs has joined #ruby
replore has joined #ruby
ringotwo has quit [Remote host closed the connection]
noodletraveler has joined #ruby
dbgster has quit [Quit: dbgster]
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
krusty_ar has quit [Remote host closed the connection]
<bnagy> yeah I got that bit, although I'm not biting on the 'real programmers use C' part
<bnagy> I was just wondering if it was a particularly nice integration or anything
<bnagy> I think we should have built in lua :)
Ripp__ has joined #ruby
<banisterfiend> v bnagy hehe
noodletraveler has quit [Ping timeout: 245 seconds]
becom33 has quit [Quit: Leaving]
noodletraveler has joined #ruby
<banisterfiend> bnagy: most of your stuff is on jvm right?
dwon has quit [Quit: Leaving]
Magnu_ has joined #ruby
<bnagy> well, I use jruby wherever I can yeah
<bnagy> although I don't use it on my windows bots
<banisterfiend> bnagy: are you interested in integration with any of the new jvm language?
<banisterfiend> s
Magnu has quit [Ping timeout: 252 seconds]
macmartine has joined #ruby
QaDeS has quit [Quit: Ex-Chat]
cryptfu has joined #ruby
<bnagy> what languages? Probably not :)
noodletraveler has quit [Ping timeout: 248 seconds]
Magnu has joined #ruby
noodletraveler has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
Magnu_ has quit [Ping timeout: 252 seconds]
noodletraveler has quit [Ping timeout: 250 seconds]
wilmoore has quit [Remote host closed the connection]
noodletraveler has joined #ruby
<banisterfiend> bnagy: scala/clojure etc
j-v-e has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
fbernier has joined #ruby
noodletraveler has quit [Ping timeout: 245 seconds]
chico_chicote has quit [Ping timeout: 245 seconds]
igotnolegs has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
noodletraveler has joined #ruby
noodletraveler has quit [Changing host]
noodletraveler has joined #ruby
kevinbond has quit [Quit: kevinbond]
hakunin has quit [Remote host closed the connection]
luxurymode has quit [Quit: Computer has gone to sleep.]
any-key has quit [Quit: leaving]
<recursive> banisterfiend: thank you for the detail
bigfg has joined #ruby
Magnu has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Quit: Leaving.]
fivetwentysix has quit [Quit: fivetwentysix]
burgestrand has joined #ruby
zenith6 has quit [Quit: Leaving]
rmascarenhas has quit [Quit: leaving]
igotnolegs has quit [Client Quit]
noodletraveler has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 244 seconds]
fivetwentysix has joined #ruby
bfgun has quit [Ping timeout: 252 seconds]
noodletraveler has joined #ruby
youdonotexist has quit [Read error: Connection reset by peer]
youdonotexist has joined #ruby
AlbireoX`Laptop has joined #ruby
savage- has joined #ruby
noodletraveler has quit [Ping timeout: 260 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
noodletraveler has joined #ruby
indian has quit [Read error: Connection reset by peer]
recursive has quit [Quit: leaving]
ZachBeta has quit [Quit: Computer has gone to sleep.]
Magnu has joined #ruby
azm has quit [Ping timeout: 244 seconds]
noodletraveler has quit [Ping timeout: 260 seconds]
noodletraveler has joined #ruby
banister_ has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
vitoravelino is now known as vitoravelino`afk
banister_ is now known as banisterfiend
noodletraveler has quit [Ping timeout: 244 seconds]
MrGando has joined #ruby
ringotwo has joined #ruby
noodletraveler has joined #ruby
DanBoy has quit [Quit: Leaving]
zemanel has quit [Quit: Remote hottie closed the connection]
kevinbond has joined #ruby
Magnu_ has joined #ruby
noodletraveler has quit [Ping timeout: 245 seconds]
Magnu has quit [Ping timeout: 244 seconds]
noodletraveler has joined #ruby
Magnu has joined #ruby
Magnu_ has quit [Ping timeout: 260 seconds]
noodletraveler has quit [Ping timeout: 245 seconds]
noodletraveler has joined #ruby
ananthakumaran has joined #ruby
siksia has quit [Ping timeout: 244 seconds]
j-v-e has quit [Ping timeout: 252 seconds]
Bosma has quit [Ping timeout: 265 seconds]
noodletraveler has quit [Ping timeout: 248 seconds]
<epochwolf> I'm working on an a ruby script that will automate conversion of various ebook formats into a kindle supported format. I need an email library for the last step of emailing the finished document. Any suggestions on a proper library?
<epochwolf> I plan on using google apps for smtp
dekhaus has joined #ruby
noodletraveler has joined #ruby
beilabs has joined #ruby
<dekhaus> Hi. What does '&:symbol' mean in the context of a method call … i.e. tickets.max_by(&:price). Thanks
iamjarvo has quit [Quit: Leaving.]
<epochwolf> dekhaus: it means :symbol.to_proc
<epochwolf> the proc looks like {|object| object.send(:symbol) }
<dekhaus> oh. OK. Thanks
<epochwolf> np
siksia has joined #ruby
h4mz1d has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
benatwork has joined #ruby
noodletraveler has quit [Ping timeout: 260 seconds]
hamfz_ has joined #ruby
noodletraveler has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
albemuth has quit [Quit: Leaving...]
nirakara has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
benatwork has quit [Ping timeout: 245 seconds]
kah_ has quit [Quit: Leaving]
ringotwo has quit [Remote host closed the connection]
noodletraveler has quit [Ping timeout: 252 seconds]
noodletraveler has joined #ruby
apok has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
noodletraveler has quit [Ping timeout: 244 seconds]
noodletraveler has joined #ruby
joshman_ has joined #ruby
<Magnu> Howdy folks. I'm trying to install grism (stockmarket program). Following instructions here: http://www.grism.org/install.html When i install the dependencies i get "unable to locate package libglade2-ruby. Is grism old and dead?
roams has joined #ruby
fayimora has quit [Quit: Be back in a gifii]
ringotwo has joined #ruby
jmcphers has quit [Ping timeout: 252 seconds]
jmcphers has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
dekhaus has quit [Quit: dekhaus]
Magnu_ has joined #ruby
noodletraveler has quit [Ping timeout: 248 seconds]
<Magnu_> what does "connection rests by peer" mean?
user__ has joined #ruby
<Magnu_> not rests, reset
noodletraveler has joined #ruby
thiagopnts has quit [Quit: Leaving]
Magnu has quit [Ping timeout: 245 seconds]
akem has quit [Ping timeout: 256 seconds]
<Magnu_> Howdy folks. I'm trying to install grism (stockmarket program). Following instructions here: http://www.grism.org/install.html When i install the dependencies i get "unable to locate package libglade2-ruby. Is grism old and dead?
emmanuelux has quit [Read error: Connection reset by peer]
<bnagy> those instructions are ancient
test34 has joined #ruby
test34 has quit [Changing host]
test34 has joined #ruby
macmartine has quit [Quit: macmartine]
Mon_Ouie has quit [Ping timeout: 245 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
aruntomar has joined #ruby
ibash has quit [Quit: ibash]
<dekz> do people here separate their negative spec tests?
Magnu has joined #ruby
noodletraveler has quit [Ping timeout: 265 seconds]
Mon_Ouie has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
Chryson has quit [Quit: Leaving]
andrewhl has quit [Remote host closed the connection]
AlbireoX`Laptop has joined #ruby
noodletraveler has joined #ruby
Progster has quit [Ping timeout: 248 seconds]
<Magnu> What are you 601 folks up to here? This is very little chat for 601 people.
test34- has quit [Ping timeout: 265 seconds]
Magnu_ has quit [Ping timeout: 256 seconds]
<jrajav> Would you rather we spam and/or argue endlessly?
<jrajav> Nobody's having trouble. This is good.
<Magnu> got a question about ruby
<jrajav> wtf get the hell out
<jrajav> (jk)
AlbireoX`Laptop has quit [Ping timeout: 245 seconds]
ConstantineXVI has quit [Read error: Connection reset by peer]
<Magnu> huh?
beilabs has joined #ruby
noodletraveler has quit [Ping timeout: 256 seconds]
minijupe has quit [Quit: minijupe]
<Magnu> What the hell is this forum?
nipra has joined #ruby
noodletraveler has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
uris has quit [Quit: leaving]
<jrajav> jk = just kidding..
<Magnu> jrajav Heh.
<Magnu> or you could answer the question Hanmac
<Magnu> easy question
* Hanmac is not supporting lazyness
kylemcgill has quit [Remote host closed the connection]
uc has joined #ruby
<Magnu> Hanmac is an unhelpful person
<jrajav> Are you asking us whether you can get grism to work or not?
tayy has joined #ruby
<samuelkadolph> He gave you a list of ubuntu distros that have that package you need
<samuelkadolph> What more do you want?
<jrajav> Because the answer is "have you tried?"
noodletraveler has quit [Ping timeout: 252 seconds]
<jrajav> libglade2-ruby is certainly obtainable, as evidenced
ibash has joined #ruby
<bnagy> those instructions are for, like, edgy though o_0
noodletraveler has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
Magnu has quit [Ping timeout: 240 seconds]
<Hanmac> information the last news of Grism is FOUR years old ...
<bnagy> maybe it is so good they never needed to update it?
noodletraveler has quit [Ping timeout: 248 seconds]
noodletraveler has joined #ruby
Dogfart has joined #ruby
yoklov has quit [Ping timeout: 244 seconds]
linus95014 has joined #ruby
jenrzzz-mac has joined #ruby
Dogfart has left #ruby [#ruby]
DanBoy has joined #ruby
noodletraveler has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby
b1rkh0ff has quit [Ping timeout: 252 seconds]
noodletraveler has joined #ruby
cha1tanya has quit [Quit: Leaving]
hamfz_ has quit [Ping timeout: 265 seconds]
h4mz1d has quit [Ping timeout: 265 seconds]
kevinbond has quit [Quit: kevinbond]
brianpWins has quit [Quit: brianpWins]
savage- has quit [Remote host closed the connection]
Magnu has joined #ruby
<Magnu> should libglade2-ruby be available in the synaptic package manager?
geekfactor has quit [Remote host closed the connection]
noodletraveler has quit [Ping timeout: 256 seconds]
<Magnu> because i get "unable to locate package libglade2-ruby"
geekfactor has joined #ruby
noodletraveler has joined #ruby
<Hanmac> Magnu: in short words your system is TOO NEW for grism to work, or in other words:grism is to old for your system
<Magnu> Thanks. That saved a lot of time.
adeponte has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<bnagy> what happened to the bindings? Did they change name?
noodletraveler has quit [Ping timeout: 252 seconds]
<bnagy> mac ports offers rb-libglade2 0.90.5, apparently
noodletraveler has joined #ruby
brianpWins has joined #ruby
chimkan has quit [Quit: chimkan]
<Hanmac> bnagy: libgnome2-ruby is renamed to ruby-gnome2, but glade seems to be gone
b1rkh0ff has joined #ruby
jgrevich_ has joined #ruby
<bnagy> weird
savage- has joined #ruby
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
ananthakumaran has quit [Quit: Leaving.]
yxhuvud has quit []
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
c0rn has joined #ruby
tewecske has joined #ruby
davidpk has joined #ruby
noodletraveler has quit [Ping timeout: 244 seconds]
<robert_> can I not monkey-patch a class instance through self.included if I've include'd or extend'd it and used Object.const_get() to create it?
noodletraveler has joined #ruby
Magnu has quit [Quit: Leaving]
SeySayux has quit [Ping timeout: 245 seconds]
vectorshelve has joined #ruby
yxhuvud has joined #ruby
aruntomar has quit [Ping timeout: 245 seconds]
noodletraveler has quit [Ping timeout: 256 seconds]
noodletraveler has joined #ruby
SeySayux has joined #ruby
nlc has quit [Quit: Leaving]
fantazo has joined #ruby
vectorshelve has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
noodletraveler has quit [Ping timeout: 252 seconds]
noodletraveler has joined #ruby
rking has quit [Quit: OK. That's it. It's weechat time. Goodbye, irssi, you were cool.]
Morkel has joined #ruby
MrGando has quit [Quit: Bye]
noodletraveler has quit [Ping timeout: 245 seconds]
vectorshelve has joined #ruby
noodletraveler has joined #ruby
<vectorshelve> hemanth: hai
<hemanth> vectorshelve, hey
prtksxna has joined #ruby
tscolari has quit [Read error: Connection reset by peer]
timonv has joined #ruby
werdnativ has joined #ruby
ConstantineXVI has joined #ruby
kevinbond has joined #ruby
nirakara has quit [Quit: http://gplus.to/nikhil]
noodletraveler has quit [Ping timeout: 245 seconds]
<hemanth> vectorshelve, Rs. 80 lakh per annum!
noodletraveler has joined #ruby
kevinbond has quit [Ping timeout: 245 seconds]
EzeQL has quit [Ping timeout: 260 seconds]
EzeQL has joined #ruby
noodletraveler has quit [Ping timeout: 244 seconds]
noodletraveler has joined #ruby
etehtsea has joined #ruby
Vert has quit [Read error: Connection reset by peer]
seitensei has quit [Remote host closed the connection]
<vectorshelve> hemanth: hmmm he must be a king of ds algo OS and discrete mathematics
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
<hemanth> vectorshelve, can't really say
<vectorshelve> hemanth: but thats for sure apart from other stuffs.. u cant really survive without it
JohnBat26 has joined #ruby
noodletraveler has quit [Ping timeout: 250 seconds]
Ripp__ has quit [Read error: Operation timed out]
stewart_ has quit [Quit: Leaving.]
noodletraveler has joined #ruby
noodletraveler has quit [Changing host]
noodletraveler has joined #ruby
Ripp__ has joined #ruby
ph^ has joined #ruby
bitsar has joined #ruby
<Tricks> Is there a way to capture multiple parts of a match with a regular expression in Ruby so that one can do something like:
<Tricks> string.scan(regex) do |arg1, arg2|
<bnagy> that will just work - string.scan(blah).each
<bnagy> or you need them two at a time?
<Tricks> Well say you have a string.
noodletraveler has quit [Ping timeout: 252 seconds]
<Tricks> And parts of the string contain bits that look like
<Tricks> <a>stuff<b>stuff<c>
cezar has joined #ruby
noodletraveler has joined #ruby
ananthakumaran has joined #ruby
<Tricks> Is there a regex you can use to match <a>stuff<b>stuff<c> stuff but capture both stuffs so that they become arg1 and arg2 in my example?
cezar has quit [Client Quit]
zomgbie has joined #ruby
<Tricks> Or can regular expressions only capture one item.
Emmanuel_Chanel has joined #ruby
beilabs has quit [Ping timeout: 252 seconds]
<bnagy> scan will capture as many matches as you have
chimkan__ has joined #ruby
<bnagy> "<a>thing<b>stuff<c>".scan(/>(.+?)</).flatten.each_slice(2) {|a,b| puts "#{a} #{b}"}
<bnagy> but I always get nervous when people look like they're trying to parse uml with regexp
<Tricks> I'm not, just an example.
<bnagy> you could also split n your separator
noodletraveler has quit [Ping timeout: 248 seconds]
<bnagy> but split in this case will give you a leading ""
noodletraveler has joined #ruby
<bnagy> "<a>thing<b>stuff<c>".split(/<.>/).reject(&:empty?).each_slice(2) {|a,b| ...
snickersnack has joined #ruby
linus95014 has left #ruby [#ruby]
noodletraveler has quit [Ping timeout: 256 seconds]
ibash has quit [Quit: ibash]
bitsar has quit [Remote host closed the connection]
noodletraveler has joined #ruby
mikepack has quit [Remote host closed the connection]
snickersnack has quit [Quit: Leaving...]
mikepack has joined #ruby
TheHunter_1039 has quit [Quit: TheHunter_1039]
ph^ has quit [Remote host closed the connection]
beilabs has joined #ruby
noodletraveler has quit [Ping timeout: 250 seconds]
adeponte has quit [Remote host closed the connection]
zomgbie has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
noodletraveler has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
apok has quit [Quit: apok]
ipoval has quit [Quit: ipoval]
benatwork has joined #ruby
williamcotton has quit [Quit: williamcotton]
zomgbie has joined #ruby
bosphorus has joined #ruby
noodletraveler has quit [Ping timeout: 256 seconds]
kaiwren has joined #ruby
mxweas_ has joined #ruby
noodletraveler has joined #ruby
benatwork has quit [Ping timeout: 245 seconds]
fivetwentysix has joined #ruby
icooba has joined #ruby
maesbn has joined #ruby
senny has joined #ruby
CheeToS has joined #ruby
schovi has joined #ruby
noodletraveler has quit [Ping timeout: 244 seconds]
chimkan__ has quit [Read error: Connection reset by peer]
fivetwentysix has quit [Client Quit]
noodletraveler has joined #ruby
chimkan_ has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
etehtsea has quit []
noodletraveler has quit [Ping timeout: 256 seconds]
cha1tanya has joined #ruby
noodletraveler has joined #ruby
fivetwentysix has joined #ruby
schovi has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
noodletraveler has quit [Ping timeout: 244 seconds]
schovi_ has joined #ruby
noodletraveler has joined #ruby
bigfg has quit [Ping timeout: 244 seconds]
brianpWins has joined #ruby
jprovazn has joined #ruby
charliesome has joined #ruby
beilabs has quit [Ping timeout: 244 seconds]
zommi has joined #ruby
dnyy has quit [Remote host closed the connection]
idoru has quit [Ping timeout: 600 seconds]
adeponte has joined #ruby
noodletraveler has quit [Ping timeout: 265 seconds]
alta has joined #ruby
noodletraveler has joined #ruby
ph^ has joined #ruby
youdonotexist has quit [Quit: youdonotexist]
noodletraveler has quit [Ping timeout: 245 seconds]
noodletraveler has joined #ruby
bfig has joined #ruby
dangerousdave has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
noyb has joined #ruby
QaDeS has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
noodletraveler has quit [Ping timeout: 252 seconds]
hoelzro|away is now known as hoelzro
beilabs has joined #ruby
fantazo has quit [Remote host closed the connection]
noodletraveler has joined #ruby
socomm has quit [Read error: Connection reset by peer]
socomm has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
shadoi has quit [Remote host closed the connection]
keanehsiao has joined #ruby
ryanf has joined #ruby
nipra has quit [Ping timeout: 244 seconds]
noodletraveler has quit [Ping timeout: 248 seconds]
cha1tanya has quit [Quit: Leaving]
kaiwren has quit [Quit: kaiwren]
noodletraveler has joined #ruby
EzeQL has quit [Ping timeout: 272 seconds]
dekroning has joined #ruby
EzeQL has joined #ruby
tayy has quit [Remote host closed the connection]
prtksxna has quit [Read error: Connection reset by peer]
n1x has joined #ruby
noodletraveler has quit [Ping timeout: 256 seconds]
noodletraveler has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
dr_bob has joined #ruby
noodletraveler has quit [Ping timeout: 245 seconds]
uc has quit [Ping timeout: 245 seconds]
hadees has joined #ruby
nipra has joined #ruby
mxweas_ has joined #ruby
noodletraveler has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
artOfWar has quit [Remote host closed the connection]
banisterfiend has joined #ruby
adeponte has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
noodletraveler has quit [Ping timeout: 252 seconds]
mxweas_ has quit [Quit: Computer has gone to sleep.]
replore has quit [Remote host closed the connection]
Helius has joined #ruby
noodletraveler has joined #ruby
beilabs has joined #ruby
noodletraveler has quit [Ping timeout: 250 seconds]
noodletraveler has joined #ruby
uc has joined #ruby
maccosmo has joined #ruby
Ben_ has joined #ruby
Ben_ has quit [Remote host closed the connection]
n1x has quit [Ping timeout: 252 seconds]
noodletraveler has quit [Ping timeout: 244 seconds]
benyarb has quit [Ping timeout: 260 seconds]
arturaz has joined #ruby
noodletraveler has joined #ruby
[Neurotic] has quit [Quit: Leaving]
jrajav has quit [Quit: burgermouth]
bambanx has joined #ruby
<bambanx> hi
oponder has joined #ruby
mxweas_ has joined #ruby
uc has quit [Ping timeout: 245 seconds]
ringotwo has quit [Ping timeout: 244 seconds]
<bambanx> hi bnagy
<bambanx> guys can you help me with this pls http://pastie.org/4030209
<arturaz> bambanx, its an array
red-panda has joined #ruby
<arturaz> .each will work
red-panda has quit [Remote host closed the connection]
apok has joined #ruby
<bambanx> arturaz, data.each.find_all its give me this error: `one': undefined method `[]' for nil:NilClass (NoMethodError)
<arturaz> data.each { |row| ... }
<Hanmac> data.flatten.find_all ...
c0rn__ has joined #ruby
<bambanx> what's do flatten Hanmac ?
beilabs has quit [Ping timeout: 260 seconds]
fivetwentysix has quit [Quit: fivetwentysix]
<Hanmac> [[a,b],[c,d],[[e,f],[g,h]]].flatten => [a,b,c,d,e,f,g,h]
<bambanx> nice
<bambanx> thanks Hanmac , arturaz
s8 has joined #ruby
jgrevich has quit [Quit: jgrevich]
kuranai|off has quit [Ping timeout: 244 seconds]
noyb has quit [Ping timeout: 260 seconds]
bambanx has quit [Quit: Saliendo]
noganex has quit [Ping timeout: 245 seconds]
kuranai|off has joined #ruby
oponder has quit [Remote host closed the connection]
noganex has joined #ruby
tomgrim has joined #ruby
fivetwentysix has joined #ruby
Criztian has joined #ruby
beilabs has joined #ruby
pk1001100011 has joined #ruby
timonv has joined #ruby
ringotwo has joined #ruby
alup has quit [Ping timeout: 245 seconds]
piotr_ has joined #ruby
tonini has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
ryanf has quit [Quit: leaving]
DuoSRX has joined #ruby
ringotwo has quit [Remote host closed the connection]
BiHi has joined #ruby
bluOxigen has joined #ruby
schovi has joined #ruby
schovi_ has quit [Ping timeout: 252 seconds]
siksia has quit [Remote host closed the connection]
roams has quit [Ping timeout: 260 seconds]
mxweas_ has quit [Quit: Computer has gone to sleep.]
jackiechan0 has joined #ruby
alup has joined #ruby
visof has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
billiamii has quit [Read error: Connection reset by peer]
jackiechan0 has quit [Client Quit]
<visof> Hello
visof has quit [Client Quit]
siksia has joined #ruby
qwerxy has joined #ruby
benatwork has joined #ruby
chimkan_ has quit [Quit: chimkan_]
Vainoharhainen has joined #ruby
benatwork has quit [Ping timeout: 245 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
beilabs has joined #ruby
genivf has joined #ruby
roolo has joined #ruby
s8 has quit [Quit: Page closed]
nai has joined #ruby
icooba has quit [Quit: icooba]
fivetwentysix has quit [Quit: fivetwentysix]
abstrusenick has joined #ruby
lolmaus has joined #ruby
nai has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
qwerxy has joined #ruby
ronniy has joined #ruby
sernin has joined #ruby
kontact has joined #ruby
<kontact> hey guys, I'm migrating from python - is there a way to run a ruby script and get an interactive shell when it ends instead of irb exiting? (something like python -i)
<bnagy> you want to run a normal script, but then drop into a repl after it's finished?
<dr_bob> kontact: irb -r path/to/script.rb
<kontact> bnagy: yup
<_br_> kontact: probably, you want to use pry anyway. Irb has its issues
<kontact> _br_: gem install pry ?
beilabs has quit [Ping timeout: 248 seconds]
<Hanmac> pry has its issues too ... (its still used an "outdated" slop version)
n1x has joined #ruby
<_br_> Well, lets say they are both not the best :)
eurek has joined #ruby
<kontact> dr_bob: I get a LoadError when using irb -r script.rb
c0rn__ has quit []
fixl has joined #ruby
yannis has joined #ruby
<dr_bob> please read what I wrote
<kontact> gotcha, needed a full path
beilabs has joined #ruby
qwerxy has quit [Quit: offski]
beilabs has quit [Ping timeout: 245 seconds]
emmanuelux has joined #ruby
siksia has quit [Ping timeout: 244 seconds]
siksia has joined #ruby
Guest97426 has joined #ruby
Guest97426 is now known as eddie_
tonini has quit [Remote host closed the connection]
<arturaz> any idea why rspec spec/models/ would skip some tests, while rspec -e "should reduce count to free slots left" spec/models/ runs that test just fine?
<eddie_> shevy: can you help me with unicode?
nfk has joined #ruby
yekta has joined #ruby
simao has joined #ruby
fayimora has joined #ruby
<eddie_> unicode?
stefanp has joined #ruby
berserkr has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
beilabs has joined #ruby
<hoelzro> eddie_: what Unicode help do you need?
<eddie_> need to get unicode value from the unicode symbol
<eddie_> reverse of this
<hoelzro> eddie_: what do you mean "unicode symbol"?
<hoelzro> a glyph? or a Ruby symbol?
vectorshelve has quit [Quit: Page closed]
<eddie_> not ruby symbol
n1x has quit [Ping timeout: 260 seconds]
<eddie_> i mean the unicode character
<hoelzro> eddie_: by Unicode character, do you mean the character value? or the glyph?
<eddie_> glyph
<eddie_> need to get the value
JohnBat26 has joined #ruby
<hoelzro> so you basically have a picture of a Unicode character, and you need to get the corresponding Unicode character(s)?
kaiwren has joined #ruby
<eddie_> yes
<hoelzro> ok
<hoelzro> one, it sounds like it would involve OCR
<hoelzro> which is hard in and of itself
<eddie_> something like this
<eddie_> '\u0d05'
jbw_ has quit [Ping timeout: 245 seconds]
<hoelzro> eddie_: that's the character you have? or what you need?
<eddie_> hoelzro: Its the unicode value for the character
<eddie_> അ
<eddie_> is the character
<hoelzro> ok
<eddie_> in python
<eddie_> u"അ"
<eddie_> gives me
<eddie_> '\u0d05'
<hoelzro> depending on the glyph, there may be more than one sequence of characters
<eddie_> how can i do this in ruby?
<hoelzro> oh
beilabs has quit [Ping timeout: 252 seconds]
<bnagy> ord
<hoelzro> you mean you want to type the character directly into your source, or...?
ph^ has quit [Remote host closed the connection]
abstrusenick has quit [Quit: abstrusenick]
<eddie_> read it from a file
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<hoelzro> oooooooooh
ph^ has joined #ruby
cha1tanya has quit [Quit: Leaving]
<hoelzro> eddie_: what version of Ruby are you using?
<eddie_> 1.9.3
<hoelzro> ok
<hoelzro> I haven't read the streams chapter of my book yet, but I'm guessing you can set an encoding on a stream
bluenemo has quit [Read error: Operation timed out]
<hoelzro> otherwise, you should be able to use some string methods to decode a binary string into a unicode string
blacktulip has joined #ruby
<eddie_> :(
kaiwren has quit [Ping timeout: 240 seconds]
piotr__ has joined #ruby
<hoelzro> Unicode is hard =)
piotr_ has quit [Ping timeout: 245 seconds]
<bnagy> if you want the unicode value you can just do str.codepoints {|c|
qwerxy has joined #ruby
<bnagy> which will give you integers
<bnagy> otherwise you can just specify your overall encoding, or even force_encoding on a string
kaiwren has joined #ruby
<bnagy> "\u{0d05}".encoding=> #<Encoding:UTF-8>
<bnagy> "\u{0d05}".force_encoding 'ascii-8bit' => "\xE0\xB4\x85"
<bnagy> "\u{0d05}".codepoints.to_a => [3333]
<eddie_> bnagy
<eddie_> i am expecting a value like this
<eddie_> \u0d05
noodletraveler has quit [Ping timeout: 240 seconds]
<bnagy> 3333 IS 0x0d05
Progster has joined #ruby
<eddie_> str.ord gives me the same value as your method
<bnagy> yeah, I said that earlier
nat2610 has quit [Ping timeout: 248 seconds]
<bnagy> but ord only works for a single character
<eddie_> bnagy: what i need is അ to \u0d05
yannis has quit [Read error: Connection timed out]
<bnagy> what does \u0d05 mean to you? You mean you want that string?
jbw_ has joined #ruby
yannis has joined #ruby
nat2610 has joined #ruby
<eddie_> with this value i can search to which set the unicode character belongs
beilabs has joined #ruby
<bnagy> no, you'll never be able to do that properly
<eddie_> why?
vitor-br has quit [Quit: Saindo]
<bnagy> because lots of glyphs belong to many charsets
niku4i has joined #ruby
fixl has quit [Remote host closed the connection]
<hoelzro> eddie_: example: ö ö
<hoelzro> those use the same glyphs, but they are in fact different strings
<hoelzro> the first is a single character, the second is a character + a combining character
noodletraveler has joined #ruby
niku4i has quit [Ping timeout: 252 seconds]
qwerxy has quit [Quit: offski]
<bnagy> eddie_: are you trying to do language detection?
fayimora has quit [Read error: Connection reset by peer]
fixl has joined #ruby
bluenemo has joined #ruby
fayimora has joined #ruby
werdnativ has quit [Quit: werdnativ]
Karmaon has quit [Ping timeout: 276 seconds]
jackiechan0 has joined #ruby
qwerxy has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Client Quit]
ABK has joined #ruby
mlevin_ has joined #ruby
poga has joined #ruby
yannis has quit [Quit: yannis]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Foxandxss has joined #ruby
cheater_ has joined #ruby
Floydzy has joined #ruby
cheater__ has quit [Ping timeout: 245 seconds]
Progster has quit [Ping timeout: 245 seconds]
jimeh2 has joined #ruby
cantonic_ has joined #ruby
siksia has quit [Ping timeout: 248 seconds]
Guest16903 has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
nipra has quit [Ping timeout: 250 seconds]
benatwork has joined #ruby
siksia has joined #ruby
<eddie_> bnagy: Yes
beilabs has quit [Ping timeout: 252 seconds]
benatwork has quit [Ping timeout: 245 seconds]
wargasm has quit [Read error: Connection reset by peer]
poga has quit [Remote host closed the connection]
wargasm has joined #ruby
wargasm has left #ruby [#ruby]
<bnagy> going to be tough just with unicode
<bnagy> like latin A covers a dozen languages or more
<bnagy> you'll be able to detect Hangul maybe :)
heeton has joined #ruby
tvw has joined #ruby
beilabs has joined #ruby
artm has joined #ruby
Richmond_ has joined #ruby
eurek has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
_blackbird has quit [Ping timeout: 240 seconds]
<eddie_> bnagy: I have nothing to do after office hours :)
grin1 has joined #ruby
nari has joined #ruby
mucker has joined #ruby
CheeToS has quit [Ping timeout: 252 seconds]
nipra has joined #ruby
jimeh2 has quit [Ping timeout: 250 seconds]
yannis has joined #ruby
beilabs has quit [Ping timeout: 244 seconds]
BiHi has quit [Quit: Computer has gone to sleep]
_blackbird has joined #ruby
d3vic3 has quit [Quit: leaving]
liluo has quit [Remote host closed the connection]
tomask has joined #ruby
yekta has quit [Read error: Connection reset by peer]
<chiel> so, if I want to install either rvm or rbenv, which one would you guys recommend?
kaiwren has quit [Quit: kaiwren]
rippa has joined #ruby
<bnagy> if you want gemsets or if you are unix challeneged, rvm, otherwise rbenv
tomb_ has joined #ruby
<_br_> unix challenged :) have to remember that one
<chiel> rbenv has gemsets as well now, though
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
<chiel> through this thingy: https://github.com/jamis/rbenv-gemset
<chiel> but alrighty, thank you :)
d3vic3 has joined #ruby
iamjarvo has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
Mchl has joined #ruby
beilabs has joined #ruby
mneorr has quit [Remote host closed the connection]
grin1 has left #ruby [#ruby]
fermion has joined #ruby
yekta has joined #ruby
tomgrim has quit [Remote host closed the connection]
davidcelis has joined #ruby
fortysixandtwo has quit [Quit: fortysixandtwo]
fgwaegeawgfwa has left #ruby [#ruby]
mlevin_ has quit [Quit: Computer has gone to sleep.]
BiHi has joined #ruby
mneorr has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
mdw has joined #ruby
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
graspee has joined #ruby
BiHi has quit [Ping timeout: 248 seconds]
bambanx has joined #ruby
<bambanx> hi
becom33 has joined #ruby
<bambanx> guys how i can round this result to the more higher and with only two numbers after the point : "#{minimo['price']-0.01}"
iocor has joined #ruby
BiHi has joined #ruby
j-v-e has joined #ruby
eddie_ has quit [Ping timeout: 245 seconds]
moosya has left #ruby [#ruby]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Guedes0 has joined #ruby
QaDeS has quit [Quit: Ex-Chat]
Guedes has quit [Disconnected by services]
beilabs has quit [Ping timeout: 245 seconds]
<chiel> so, i've installed rbenv (through homebrew, cause I'm lazy like that), and everything seems to work fine. I installed ruby 1.9.3-p194, and I've set it using `rbenv global 1.9.3-p194`, however, ruby -v still gives me the version that comes preinstalled on os x: ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
Guedes has joined #ruby
Guedes is now known as Guest59685
<chiel> anyone have any ideas on how to solve this?
Guedes0 is now known as Guedes
Guedes has quit [Client Quit]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<chiel> I also ran rbenv rehash and restarted my bash, to no avail
<chiel> does the "global" ruby version not apply to the shell, or so?
<hoelzro> chiel: what's your PATH?
<chiel> /usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
ZachBeta has joined #ruby
<hoelzro> that probably has something to do with it.
<chiel> which *seems* correct, given rbenv is installed through homebrew
nanderoo has joined #ruby
<chiel> hm, which path do I need to add?
<hoelzro> see 2.2 in the installation docs
<hoelzro> namely, the last paragraph of that section
QaDeS has joined #ruby
icooba has joined #ruby
j-v-e has left #ruby [#ruby]
* chiel checks
abionic has joined #ruby
<chiel> hoelzro: I did add that to my ~/.bash_profile though
<hoelzro> oh, ok
<hoelzro> just checking
<chiel> :)
<chiel> rbenv versions does give me: * 1.9.3-p194 (set by /Users/chiel/.rbenv/version)
<chiel> which is the expected output after I've set it
<chiel> but, ruby -v does not reflect that :/
<hoelzro> chiel: what does which ruby output?
AxonetBE has joined #ruby
<chiel> /usr/bin/ruby
<AxonetBE> I'm switching to ruby 1.9.2 and I have problems with -> invalid multibyte char (US-ASCII), we have a french application and there is a lot of controllers where some text like payé etc, how can I solve this easily
ABK has quit [Ping timeout: 240 seconds]
<AxonetBE> Is there an option to say to ruby to use UTF-8 encoding?
<Hanmac> i think ".bash_profile" is the wrong file ... i think you need ".bashrc" ... or whats your shell?
robbyoconnor has quit [Ping timeout: 244 seconds]
<hoelzro> AxonetBE: I think you need to use a special kind of comment
<hoelzro> (assuming you're having problems with strings in the Ruby source)
<AxonetBE> hoelzro: yes I found on the internet, # encoding: utf-8, but it means I have to edit like more then 200 files?
<hoelzro> I think you can specify a command line option to override it
<becom33> i want make a simple proxy listener . just a puts the traffic while Im surfing the website . like a interpreter
<Hanmac> AxonetBe: you could also change $LC_CTYPE
beilabs has joined #ruby
<AxonetBE> Hanmac: what do you mean with $LC_TYPE ?
<becom33> anyone for me ? Hanmac
iamjarvo has quit [Quit: Leaving.]
<chiel> hmm, i don't understand why this is not working. :D
<Hanmac> chiel: is your shell realy a bash or an other one? and did you read my line that you may need na different file?
artm has quit [Quit: artm]
<hoelzro> chiel: try putting at line in your bashrc as well
<chiel> Hanmac: ah, I see, yes, I'm really using bash, but I'll try sticking it in my bashrc, hang on.
iori has quit [Remote host closed the connection]
jackiechan0 has quit [Quit: Sto andando via]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<chiel> ah, I got it working now.. I forgot I explicitly set the PATH var in my bashrc file
artm has joined #ruby
<chiel> so now it works, when I put the eval after I source my bashrc
<chiel> Sorry for being a noob guys, thanks for the help.
bambanx has quit [Quit: Saliendo]
Defusal has quit [Read error: Connection reset by peer]
Defusal has joined #ruby
Defusal has joined #ruby
mucker has quit [Quit: leaving]
Floydzy has left #ruby [#ruby]
cha1tanya has quit [Ping timeout: 256 seconds]
beilabs has quit [Ping timeout: 245 seconds]
fixl has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
<AxonetBE> Hanmac: Here is the output : https://gist.github.com/2874564 everything is on UTF-8, but as soon as I start my rails server, he want to use US-ASCII
geekbri has joined #ruby
<becom33> https://github.com/igrigorik/em-proxy I downloaded this git and in example dir there is a simple.rb i executed the file but it says simple.rb:1:in `require': no such file to load -- lib/em-proxy (LoadError)
robotmay has joined #ruby
<Hanmac> AxonetBe: i think the problem is that rails maybe create an new shell prozess, or something like that ... so eigther put your export LC_CTYPE in a bashrc file or change your project files
beilabs has joined #ruby
cha1tanya has joined #ruby
heeton has quit [Quit: heeton]
iocor has joined #ruby
jedmtnman has joined #ruby
becom33 has quit [Read error: Connection reset by peer]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
fmcgeough has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
mdw has quit [Ping timeout: 252 seconds]
`brendan has joined #ruby
mohits has quit [Quit: Leaving]
<AxonetBE> Hanmac: I created a single ruby file with content puts "éllo", and even this is not working because he wants to use ASCII, so it is not a problem of rails. If I run ruby -UK test.rb it works fine
mdw has joined #ruby
iamjarvo has joined #ruby
<Hanmac> you mean -KU but this may not work in later versions
ramblex has joined #ruby
GeekOnCoffee has joined #ruby
vitoravelino`afk is now known as vitoravelino
<AxonetBE> Any idea then? Because I have no idea why he switch to ASCII : https://gist.github.com/d65c15a2238c3f2a7844
abionic has quit [Read error: Operation timed out]
<AxonetBE> also when putting # encoding: UTF-8 in the file it works
noodletraveler has quit [Quit: leaving]
becom33 has joined #ruby
roflmaus has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
v3n0m has joined #ruby
benatwork has joined #ruby
v3n0m has quit [Client Quit]
ananthakumaran has quit [Quit: Leaving.]
<AxonetBE> Hanmac: any idea?
hakunin has joined #ruby
abionic has joined #ruby
<Hanmac> i prefer the # encoding comment in each file
benatwork has quit [Ping timeout: 245 seconds]
wangr has joined #ruby
tcopp has joined #ruby
cha1tanya has quit [Quit: Leaving]
siksia has quit [Ping timeout: 260 seconds]
siksia has joined #ruby
punkrawkR has joined #ruby
fbernier has joined #ruby
zomb1e has joined #ruby
mdw has quit [Remote host closed the connection]
kirun has joined #ruby
<AxonetBE> Hanmac: why? because for me it is strange that a comment change something
<hoelzro> agreed
<Hanmac> a shebang is a comment too and it changes are massive
lessless has joined #ruby
user__ has quit [Quit: Forget progress by proxy. Land on your own moon.]
<AxonetBE> Hanmac: what do you mean? Which shebang changes are massive?
joast has joined #ruby
<Hanmac> i mean this line: old uses: #!/usr/bin/ruby , new uses: #!/usr/bin/env ruby
mdw has joined #ruby
sacarlson has joined #ruby
<AxonetBE> Hanmac: indeed, but there is ! what follows the ruby convention ( ! most of the time change something or is 'dangerous' ) irc://chat.freenode.net:6667/# encoding comment is just like a normal comment. Big mistake in my opinion
yekta has quit [Ping timeout: 244 seconds]
mdw_ has joined #ruby
bigkevmcd has joined #ruby
niv has left #ruby [#ruby]
mdw has quit [Ping timeout: 245 seconds]
mdw has joined #ruby
<lessless> how to escape a single quote in 'M&M's', so it would be 'M&M\'s'?
<lessless> not 'M&M\\'s' :)
<hoelzro> this might be nitpicky, but the shebang behavior isn't defined by Ruby
Jackneill has joined #ruby
<hoelzro> lessless: %q[M&M's]
eurek has joined #ruby
yekta has joined #ruby
<lessless> x=[1,'Sweets', 'M&M's']; %q[x[2]] :(
Axsuul has quit [Ping timeout: 245 seconds]
<AxonetBE> hoelzro: ok but the comment that change the encodig is defined by ruby no?
* tommylommykins pipes up with English out of the standard library also being comically undocumented
mdw_ has quit [Ping timeout: 244 seconds]
<Hanmac> lessless \n and others only works on "" not on ''
zomb1e has quit [Read error: Connection reset by peer]
zomb1e has joined #ruby
<hoelzro> AxonetBE: no, it does not
<lessless> okay, but how I should insert this value stored in the array element to the database
Synthead has quit [Ping timeout: 244 seconds]
<hoelzro> I'm just making a distinction between shebang and an encoding comment =)
<hoelzro> lessless: x=[1, 'Sweets', %q[M&M's]]
<hoelzro> %q is a special string literal
<lessless> LOL
krusty_ar has joined #ruby
Vendethiel has joined #ruby
lorandi has joined #ruby
Guest16903 is now known as davidw
<hoelzro> lessless: what's so funny?
<lessless> I think postgres do not accept double quotes :D
davidw is now known as Guest11890
jgarvey has joined #ruby
tscolari has joined #ruby
<tommylommykins> ooi
<hoelzro> it does
<tommylommykins> is there any official documentation on English
<tommylommykins> or do you *have* to open the source and read it yourself?
<hoelzro> tommylommykins: ruby-doc.org?
<hoelzro> lessless: it just might not do what you expect
<tommylommykins> hoelzro: Try it yourself :p
* tommylommykins finds it
<hoelzro> esp. if you're used to MySQL, which says "screw this" to the standard way of doing things half the time
<tommylommykins> That's the documentation for English :P
kaiwren has joined #ruby
mrdtt has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
dekroning has quit [Ping timeout: 260 seconds]
<lessless> hoelzro, at #postgres people say that double quotes are only for field and column name, not for values
<hoelzro> lessless: exactly
<lessless> and going back to to the root: how to insert a M&M's in the table?
jcromartie has joined #ruby
<hoelzro> you can use them to quote database structures
Defusal has quit [Read error: Connection reset by peer]
<hoelzro> lessless: I showed you earlier
Defusal has joined #ruby
Defusal has joined #ruby
Defusal has quit [Changing host]
<hoelzro> [14:56] < hoelzro> | lessless: x=[1, 'Sweets', %q[M&M's]]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
CannedCorn has joined #ruby
<lessless> hoelzro, sure, but what about the situation when it is readed from csv file, not constructed by myself
fantazo has joined #ruby
<hoelzro> oh
<hoelzro> wait
thoolihan_ has joined #ruby
<lessless> it is already in variable, is it possible to make a %q[] literal from array element?
<hoelzro> no
<hoelzro> that doesn't make sense
thoolihan has left #ruby [#ruby]
thoolihan_ has quit [Client Quit]
<hoelzro> lessless: so you have an array of values...what code are you using to insert that array into the DB?
<lessless> i need just convert csv to sql
thoolihan_ has joined #ruby
thoolihan_ has quit [Client Quit]
<hoelzro> if you're encountering issues with quoting, I'm almost afraid to know the answer.
<lessless> and only that
zomb1e_ has joined #ruby
hynkle has joined #ruby
<lessless> hoelzro, is it so scary?
thoolihan_ has joined #ruby
<hoelzro> lessless: what's the code you're using to perform the INSERT?
jedmtnman has quit [Quit: Leaving.]
geekfactor has quit [Remote host closed the connection]
<lessless> hoelzro, it is of my task, my job is only to convert data from csv file so that they can be inserted into the db
geekfactor has joined #ruby
dangerousdave has joined #ruby
zomb1e has quit [Ping timeout: 245 seconds]
<hoelzro> I'm just afraid that if you're encountering problems with quoting, you're not using parameterized queries, which is a *huge* mistake
cha1tanya has joined #ruby
<eam> I was surprised to learn that the mysql2 module doesn't use parameterized queries internally
bglusman has joined #ruby
beilabs has quit [Ping timeout: 250 seconds]
lorandi has quit [Remote host closed the connection]
zomb1e has joined #ruby
<hoelzro> eam: I don't think most MySQL modules in any language do
<hoelzro> DBD::mysql for Perl doesn't
<hoelzro> (sometimes)
xaxisx has joined #ruby
canton7 has joined #ruby
jrist-afk is now known as jrist
mdw_ has joined #ruby
jedmtnman has joined #ruby
zomb1e_ has quit [Ping timeout: 245 seconds]
CannedCorn has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 245 seconds]
mdw_ has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
bglusman has quit [Read error: Connection reset by peer]
mdw_ has joined #ruby
bglusman has joined #ruby
kirun_ has joined #ruby
internet_user has joined #ruby
mdw has quit [Ping timeout: 245 seconds]
lorandi has joined #ruby
lorandi has quit [Client Quit]
kirun has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
lorandi has joined #ruby
<arturaz> https://github.com/rspec/rspec-core/pull/628 <-- +1 to avoid stupid mistakes in rspec
lorandi has quit [Client Quit]
nlc has joined #ruby
lorandi has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
zomb1e has quit [Quit: zomb1e]
banisterfiend has joined #ruby
Konboi has joined #ruby
<eam> hoelzro: afaik that's not true?
<hoelzro> eam: in DBD::mysql?
<eam> yeah
<jedmtnman> arturaz: interesting idea. i've never considered calling return, but i can see how it might be a problem
<hoelzro> last time I worked on it it was
<hoelzro> unless you use mysql_server_prepare or whatever it's called
<arturaz> jedmtnman, back me up on that pull request ;)
beilabs has joined #ruby
b3gott3n has quit [Ping timeout: 256 seconds]
dv_ has joined #ruby
<dross> :o eww mysql
<jedmtnman> arturaz: maybe it would be nicer for it to be registered in the reporter message: eg "13 Specs, 0 Failures, 2 pending, 4 not run"
* dross has an allergic reaction from the word and has a seizure
rippa has quit [Quit: derp herp]
<arturaz> jedmtnman, this thing is something that should be noticed and fixed right away. "not run" sounds very mystique. Why didn't they run? No explanation :)
rorrego has joined #ruby
nlc has quit [Remote host closed the connection]
Konboi has quit [Quit: Leaving...]
cha1tanya has quit [Read error: Connection reset by peer]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
<jedmtnman> arturaz: maybe thats not the right terminology, but it would make me wonder enough to google the explanation
uris has joined #ruby
<arturaz> still, pretty hard to notice
fearoffish has joined #ruby
carloslopes has joined #ruby
pu22l3r has joined #ruby
<jedmtnman> arturaz: agreed
pu22l3r has quit [Remote host closed the connection]
lockweel has joined #ruby
pu22l3r has joined #ruby
dv310p3r has joined #ruby
Criztian has quit [Remote host closed the connection]
<jedmtnman> msg/ arturaz you think they'll want a spec for that change? it is rspec…?
<jedmtnman> oops
nlc has joined #ruby
Ankhers has joined #ruby
<eam> hoelzro: well I'll be damned, you're right. Do you know why that is?
roams has joined #ruby
td123 has joined #ruby
Morkel has quit [Quit: Morkel]
s8 has joined #ruby
awarner has joined #ruby
nuex has joined #ruby
nricciar has joined #ruby
Defusal has quit [Read error: Connection reset by peer]
Defusal has joined #ruby
Defusal has joined #ruby
Defusal has quit [Changing host]
yfeldblum has quit [Quit: Leaving]
beilabs has quit [Ping timeout: 245 seconds]
allanm has joined #ruby
thoolihan_ has quit [Quit: thoolihan_]
nipra has quit [Ping timeout: 256 seconds]
cha1tanya has joined #ruby
mengu has joined #ruby
LBRapid has joined #ruby
n1x has joined #ruby
jprovazn has quit [Quit: Leaving]
jprovazn has joined #ruby
<hoelzro> eam: probably because older versions of MySQL didn't have a proper prepare =(
bbttxu has quit [Quit: bbttxu]
<hoelzro> I did some work on the driver last year
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
Jackneill has quit [Remote host closed the connection]
nacengineer has quit [Quit: Leaving.]
kaiwren has quit [Quit: kaiwren]
jprovazn has quit [Client Quit]
shevy2 is now known as shevy
jetblack has quit [Ping timeout: 252 seconds]
jprovazn has joined #ruby
nirakara has joined #ruby
jrist is now known as jrist-afk
<zaargy> how do people move around ruby apps quickly in vim?
n1x has quit [Quit: Ex-Chat]
<zaargy> like if i have a method call and i want to go to teh def etc?
<zaargy> or i want to look at the gem sourcecode i'm using
* hoelzro pulls up a chair
n1x has joined #ruby
krusty_ar has quit [Quit: No Ping reply in 180 seconds.]
krusty_ar has joined #ruby
beilabs has joined #ruby
roflmaus has quit []
<jedmtnman> zaargy: i think `:gtf` for 'go to file' but you might google it. its probably a plugin
<zaargy> yeah you can do that
<zaargy> that's pretty primitive though
dekroning has joined #ruby
jrallison has joined #ruby
<jedmtnman> zaargy: google 'tim pope ruby vim' he's kinda the defatco author for ruby and vim, afaik
the_jeebster has joined #ruby
wunz has joined #ruby
chimkan_ has joined #ruby
ph^ has quit [Remote host closed the connection]
xaq has joined #ruby
bbttxu has joined #ruby
wunz has left #ruby [#ruby]
crankycoder has joined #ruby
brotspinne has joined #ruby
mikepack has joined #ruby
<brotspinne> hi. this there a way that this line 'foo'.scan(/(foo)(:bar)?/) returns [['foo']] instead of [['foo', nil]] ?
<brotspinne> is*
siksia has quit [Read error: Connection reset by peer]
<brotspinne> because foo should be optional and not in the matching groups
<fbernier> Hey, I am generating fixed length (6 chars) numbers, so for example: 000001 inside a loop. How could I gracefully prefix my number with zeros in ruby?
<brotspinne> fbernier: sprintf or rjust
<canton7> brotspinne, do you mean bar should be optional?
<brotspinne> canton7: yes, sorry
<brotspinne> fbernier: e.g. '100'.rjust(5, '0') # => "00100"
<canton7> brotspinne, /(foo)(?::bar)?/
<fbernier> brotspinne thanks!
<brotspinne> fbernier: but then its a string
<Hanmac> fbernier: "%06d" % number
siksia has joined #ruby
<fbernier> I want a string anyway
<canton7> fbernier, numbers are numbers. They don't have any sort of format of their own. If you were to print one, then it becomes a string, and you can control how that number is converted to a string (including prefixing with zeros, etc).
<brotspinne> canton7: okay nil is gone but I cant get bar now when the string is 'foo:bar'
mikepack has quit [Ping timeout: 265 seconds]
idoru has joined #ruby
<canton7> brotspinne, you said bar shouldn't be in the matching groups.. What, exactly, do you wnat?
<canton7> *want
<brotspinne> fbernier: Hanmac showed the sprintf version, thats nicer
abionic has quit [Ping timeout: 252 seconds]
<brotspinne> canton7: yes kind of. I want bar only in the groups when it is actually there, so "bar or nothing" instead of "bar or nil" in my array
<canton7> brotspinne, maybe you wanted /(foo(?::bar)?)/ ?
vlad_starkov has joined #ruby
<allanm> Hi, I'm trying to use rubyrep for handling mysql db replication on some of our staging servers
<allanm> but I been getting the following error
<allanm> Exception caught: Mysql::Error: query: not connected: SHOW TABLES
<canton7> brotspinne, aha, I see
<allanm> this is the full error I get https://gist.github.com/2875261
<canton7> brotspinne, I don't believe there's a way to do that with regex.... maybe strip them afterwards?
chson has joined #ruby
<brotspinne> canton7: ah you're right. maybe I can use #compact right?
gearaholic has joined #ruby
<jedmtnman> fbernier: this would be the exact sprintf for your example: >> "%05d" % 100
<jedmtnman> => "00100"
<jedmtnman> oh Hanmac said that. sorry
<canton7> brotspinne, yeah. Just calling .compact won't work because of the subarrays, but calling #map(&:compact) works
<brotspinne> canton7: yes silly me. thank you
<canton7> (so 'foo'.scan(/(foo)(:bar)?/).map(&:compact) )
nacengineer has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
<offby1> looks like lisp
tomask has quit [Quit: Quit]
theRoUS has joined #ruby
<Ankhers> lisp is fantastic.
<canton7> I need to learn lisp at some point, see how much ruby really borrows from it
<brotspinne> canton7: nice
* hoelzro is amazed that the Vim wiki doesn't have an article on recommended plugins for working with Ruby
n1x has quit [Ping timeout: 248 seconds]
sacarlson has left #ruby [#ruby]
<Ankhers> canton7: You don't really learn lisp per se... Lisp is a family of languages.
<canton7> Ankhers, oops, I meant 'a lisp'
zemanel has joined #ruby
<Ankhers> That is what I used.
<tommylommykins> Well, what does ruby take from lisp? lambdas, not-very-many-statements, and a community that likes to use map and inject?
<Mon_Ouie> Also symbols
<brotspinne> hoelzro: rails itself has an url for vim http://rubyonrails.org/ecosystem
benatwork has joined #ruby
billiamii has joined #ruby
brotspinne has quit [Quit: brotspinne]
<hoelzro> isn't that rails-specific?
benatwork has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
jrist-afk is now known as jrist
<Ankhers> Looks like it.
Guedes has quit [Quit: Saindo]
benatwork has joined #ruby
TheHunter_1039 has joined #ruby
madhatter has quit [Read error: Operation timed out]
kevinbond has joined #ruby
graspee has quit [Remote host closed the connection]
graspee has joined #ruby
<Ankhers> I would suggest the Janus plugins I linked to. They worked very well for me.
mdw_ has quit [Read error: Connection reset by peer]
mdw has joined #ruby
wmoxam has joined #ruby
<hoelzro> Ankhers: ah, thanks
zomb1e has joined #ruby
lockweel has quit [Ping timeout: 260 seconds]
mdw has quit [Read error: Connection reset by peer]
mrdtt has joined #ruby
brotspinne has joined #ruby
jrist is now known as jrist-afk
mdw has joined #ruby
mohits has joined #ruby
kaiwren has joined #ruby
btanaka has joined #ruby
perryh is now known as perryh_away
nilg` has joined #ruby
<brotspinne> does the regex option /o really change anything when the regex is not a constant?
CheeToS has joined #ruby
pygospa has quit [Disconnected by services]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
pygospa has joined #ruby
cheater_ has quit [Ping timeout: 245 seconds]
<jedmtnman> canton7: clojure is pretty easy to pickup. a little more modern than some other lisps. also you could play with heist (scheme interpreter in ruby)
<Ankhers> brotspinne: What do you mean by the regex isn't a constant? Do you mean the string you're testing against, or the matcher?
<brotspinne> canton7: I want this now: /((?:f)oo)?)bar/ so that "foo" is optional but only "oo" from the "foo" gets into the match data
kaiwren_ has joined #ruby
<brotspinne> Ankhers: both is in a method so I guess both are always new objects
<jedmtnman> brotspinne: this might be helpful: http://rubular.com/
madhatter has joined #ruby
<brotspinne> canton7: I tried but the "f" is always in the match
<Ankhers> brotspinne: Rubular is great, you could also check out #regex on here.
<brotspinne> yes okay. I've asked two questions now on the same time
jonathanwallace has joined #ruby
qwerxy has joined #ruby
mdw has quit [Read error: Connection reset by peer]
cheater_ has joined #ruby
mdw has joined #ruby
<canton7> brotspinne, look at the ruby regex page, search for "positive lookbehind"
<brotspinne> okay. thanks :)
kaiwren has quit [Ping timeout: 265 seconds]
krusty_ar has quit [Read error: Connection reset by peer]
kaiwren_ has quit [Ping timeout: 245 seconds]
yonggu_ has joined #ruby
wmoxam has quit [Quit: leaving]
mdw has quit [Read error: Connection reset by peer]
Eldariof-ru has quit []
mattwildig has joined #ruby
krusty_ar has joined #ruby
<the_jeebster> hi folks, is there a ruby method that checks if methods return undefined method error?
mdw has joined #ruby
<canton7> is #respond_to? what you're after
<Mon_Ouie> I think it's that too
kaiwren has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
thecreators has joined #ruby
<the_jeebster> could be
yonggu has quit [Ping timeout: 252 seconds]
<the_jeebster> looks like it, I'll try it out. thanks.
the_jeebster has left #ruby [#ruby]
the_jeebster has joined #ruby
mattwildig has left #ruby [#ruby]
sahli has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
mdw has quit [Read error: Connection reset by peer]
Eldariof-ru has joined #ruby
mdw has joined #ruby
kaiwren has quit [Client Quit]
luxurymode has joined #ruby
fayimora has quit [Quit: Be back in a gifii]
Guest44443 has joined #ruby
cbuxton has joined #ruby
vikhyat has quit [Quit: Leaving.]
becom33 has quit [Quit: Leaving]
minijupe has joined #ruby
replore has joined #ruby
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
pk1001100011 has joined #ruby
eurek has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pk1001100011 has quit [Client Quit]
pk1001100011 has joined #ruby
ipoval has joined #ruby
tayy has joined #ruby
ipoval has quit [Client Quit]
jonathanwallace has joined #ruby
chimkan__ has joined #ruby
nacengineer has quit [Ping timeout: 250 seconds]
jonathan_ has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
nacengineer has joined #ruby
jonathanwallace has joined #ruby
chimkan_ has quit [Ping timeout: 252 seconds]
blacktulip has joined #ruby
jonatha__ has joined #ruby
andrewhl has joined #ruby
jonathan_ has quit [Ping timeout: 245 seconds]
dsa has joined #ruby
ph^ has joined #ruby
EzeQL has quit [Disconnected by services]
jonatha__ has quit [Read error: Connection reset by peer]
jonathan_ has joined #ruby
dsa is now known as EzeQL
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
EzeQL is now known as Guest43190
Guest43190 is now known as EzeQL_
jonathanwallace has quit [Ping timeout: 252 seconds]
the_jeebster1 has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
albemuth has joined #ruby
jrist-afk is now known as jrist
xclite has joined #ruby
lorandi has quit [Quit: Leaving]
moshef has joined #ruby
ZadYree has joined #ruby
<ZadYree> Hello
jonathanwallace has joined #ruby
adambeynon has joined #ruby
ckrailo has joined #ruby
_sjs has quit [Read error: Connection reset by peer]
moshef has quit [Client Quit]
mikepack has joined #ruby
moshef has joined #ruby
azm has joined #ruby
dekroning has quit [Ping timeout: 244 seconds]
xclite has quit [Client Quit]
<ZadYree> I'm having an issue with this: http://pastie.org/private/dyu7szil8ch6f3ocs89dya
jonathan_ has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
xclite has joined #ruby
<ZadYree> It seems the interpreter ignores that I change the nList attribute
<ZadYree> (just started to learn rb)
dekroning has joined #ruby
<hoelzro> ZadYree: you're using nList externally, but @names internally
mdw has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Remote host closed the connection]
<hoelzro> I'm surprised Ruby's not throwing an exception for line 7
mdw has joined #ruby
Synthead has joined #ruby
jonathanwallace has joined #ruby
siksia has quit [Ping timeout: 265 seconds]
<ZadYree> hum
<ZadYree> say something like this there
<ZadYree> saw
<Hanmac> ZadYree & hoelzro: at line 7, it calls the nList method, and this returns nil
jonathan_ has joined #ruby
robotmay has quit [Remote host closed the connection]
moshef has quit [Quit: moshef]
siksia has joined #ruby
<ZadYree> yup, but shouldn't o.nList = "foo" set it to "foo" ?
jonathanwallace has quit [Read error: Operation timed out]
pl_ab has joined #ruby
<brotspinne> hoelzro: nList is an accessor
dekronin1 has joined #ruby
<brotspinne> ZadYree: nList= sets the @nList variable
<ZadYree> aaaah ok!
<ZadYree> I get my error then
gabrtv has quit [Ping timeout: 252 seconds]
dekroning has quit [Ping timeout: 260 seconds]
maesbn has quit [Remote host closed the connection]
pl_ab has quit [Client Quit]
<ZadYree> I thought @foo and foo were 2 different things
<brotspinne> ZadYree: attr_accessor :foo is the same as def foo=(value); @foo = value; end + def foo; @foo; end
dr_bob has quit []
<ZadYree> ok I see
sahli has quit [Quit: Leaving...]
<Hanmac> ZadYree: they can be a different thing, but with attr_accessor you define them as ~equal
pl_ab has joined #ruby
jonathan_ has quit [Ping timeout: 248 seconds]
<ZadYree> yeah I get it
<ZadYree> well, it's definitely quite different from perl
gabrtv has joined #ruby
<brotspinne> but much nicer :D
quest88 has joined #ruby
<ZadYree> trolololo :)
<hoelzro> Hanmac: ah, thanks, good call =)
<shevy> ZadYree foo can be a method call or a local variable, @foo can only be an instance variable
<ZadYree> I see
<Hanmac> you could add magic into the ruby methods like calling "foo_value_changed"
niku4i has joined #ruby
<ZadYree> aha ok
jprovazn is now known as jprovazn_away
arturaz has quit [Ping timeout: 245 seconds]
<Hanmac> PS: if you call foo= without reciver you set a local variable ... if you want to call the method you need self.foo=
mneorr has quit [Remote host closed the connection]
youdonotexist has joined #ruby
gearaholic has quit [Remote host closed the connection]
albemuth has quit [Ping timeout: 250 seconds]
albemuth has joined #ruby
EzeQL_ is now known as EzeQL
<brotspinne> Hanmac: quackery :P
lkba has joined #ruby
fermion has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
froy has joined #ruby
youdonotexist has quit [Ping timeout: 240 seconds]
Eldariof-ru has quit [Ping timeout: 240 seconds]
moshef has joined #ruby
gogiel has quit [Ping timeout: 252 seconds]
<brotspinne> Hanmac: but quite interesting! I've defined foo= without parameter and the only way I can call it inside the object is via send(:foo=) or method(:foo=).call
<brotspinne> Hanmac: when I do self.foo= he expects the right side of the assignment
<brotspinne> and does not call my "foo=()" method
<Hanmac> yeah :P the same is with other operator methods like +,-,*,/
Guest59685 is now known as Guedes
<brotspinne> Hanmac: okay I've learned never define a setter without a param. its quite useless
robbyoconnor has quit [Read error: Connection reset by peer]
<shevy> hehehe
axl_ has quit [Quit: axl_]
<shevy> a setter without a param is like a car without wheels!
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
mayankkohaley has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
AxonetBE has quit [Quit: Leaving.]
nuex has left #ruby [#ruby]
mdw has quit [Remote host closed the connection]
<brotspinne> shevy: but my car can actually speak when I call it
<shevy> so it was you who took K.I.T.T. away! :(
<Hanmac> yeah, a speaking, but not driving car ... very useful
<shevy> man KITT even survived some acid bath once
c0rn has joined #ruby
<shevy> but it was curious that he started to speak very slowly when he was damaged...
<brotspinne> car.instance_variable_set(:@wheels, [1,2,3,4]) so!
qwerxy has quit [Quit: offski]
jchauncey has joined #ruby
youdonotexist has joined #ruby
<Hanmac> car.instance_variable_set(:@wheels, 4.times.map{Wheel.new})
<shevy> see that surprises me
ben_alman has quit [Excess Flood]
test34 has quit [Ping timeout: 256 seconds]
<shevy> ruby usually prefers short method names right
<shevy> but instance_variable_set that is sooo long
kenperkins has joined #ruby
<jedmtnman> Hanmac: what about the spare? :)
afallows_ has joined #ruby
<shevy> Hanmac is a risk-it-all-or-nothing dude
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Karmaon has joined #ruby
<brotspinne> shevy: yes but ivs() sucks
ben_alman has joined #ruby
axl_ has joined #ruby
afallows has quit [Ping timeout: 250 seconds]
Morkel has joined #ruby
<brotspinne> shevy: I find the name perfectly valid
afallows_ is now known as afallows
vikhyat has joined #ruby
nfluxx has joined #ruby
brotspinne has left #ruby [#ruby]
axl_ has quit [Read error: Connection reset by peer]
MasterIdler has joined #ruby
youdonotexist has quit [Quit: youdonotexist]
axl_ has joined #ruby
hoelzro is now known as hoelzro|away
thone has joined #ruby
nfluxx has quit [Quit: nfluxx]
mdw_ has joined #ruby
allanm is now known as amacgregor
quest88 has quit [Quit: quest88]
jonathanwallace has joined #ruby
simao_ has joined #ruby
carloslopes has quit [Ping timeout: 245 seconds]
jonathan_ has joined #ruby
thone_ has quit [Ping timeout: 252 seconds]
s8 is now known as zii
simao has quit [Ping timeout: 265 seconds]
test34 has joined #ruby
zemanel has quit [Quit: Remote hottie closed the connection]
jonathanwallace has quit [Ping timeout: 245 seconds]
zii is now known as You`re
You`re is now known as ij
gogiel has joined #ruby
c0rn has quit []
jonathan_ has quit [Ping timeout: 240 seconds]
jgrevich has joined #ruby
bashdy has joined #ruby
bfig has quit [Read error: Connection reset by peer]
Karmaon has quit [Quit: WeeChat 0.3.8-rc2]
Karmaon has joined #ruby
AxonetBE has joined #ruby
Karmaon has quit [Client Quit]
Karmaon has joined #ruby
fserb has joined #ruby
afallows_ has joined #ruby
fbernier has quit [Remote host closed the connection]
savage- has joined #ruby
bashdy has quit [Ping timeout: 245 seconds]
afallows has quit [Ping timeout: 250 seconds]
bfig has joined #ruby
joch_n has joined #ruby
schovi has quit [Remote host closed the connection]
fserb has quit [Client Quit]
n1x has joined #ruby
the_jeebster1 has quit [Quit: Leaving.]
theRoUS has quit [Ping timeout: 260 seconds]
qwerxy has joined #ruby
mdw has joined #ruby
fbernier has joined #ruby
the_jeebster has joined #ruby
the_jeebster has quit [Client Quit]
Helius has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
<shevy> ivs() would be just one example. ivar_set or set_ivar would be other possibilities
<shevy> it does not seem to be extremely consistent in ruby. we have .size and .length which is fine, but we have .uniq but not .unique. these are short names though, 3 word-method names are quite rare
bluOxigen has quit [Ping timeout: 252 seconds]
mdw_ has quit [Ping timeout: 245 seconds]
PragCypher has joined #ruby
eurek has joined #ruby
AxonetBE has quit [Quit: Leaving.]
siksia has quit [Ping timeout: 260 seconds]
joch_n has quit [Quit: Linkinus - http://linkinus.com]
Tomasso has joined #ruby
siksia has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
apok has quit [Quit: apok]
GuidovanPossum has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
senny has quit [Remote host closed the connection]
the_jeebster has joined #ruby
artOfWar has joined #ruby
brianpWins has quit [Quit: brianpWins]
zomgbie has joined #ruby
kaiwren has joined #ruby
kaiwren has quit [Client Quit]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
jonathan_ has joined #ruby
CheeToS has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
jonatha__ has joined #ruby
counterbeing has joined #ruby
joch_n has joined #ruby
counterbeing has quit [Client Quit]
carloslopes has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
jonathan_ has quit [Ping timeout: 245 seconds]
eywu has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
bigoldrock has joined #ruby
fserb has joined #ruby
adeponte has joined #ruby
brasten has joined #ruby
Sou|cutter has joined #ruby
etehtsea has joined #ruby
etehtsea has quit [Client Quit]
zomgbie has joined #ruby
jgrevich has joined #ruby
bier has quit [Ping timeout: 244 seconds]
keanehsiao has quit [Quit: keanehsiao]
maletor has joined #ruby
<lectrick> (128513..128709).each { |index| puts "#{index} => #{[index].pack('U*')}" }
kenichi has joined #ruby
<lectrick> try that in a unicode-aware terminal (like os x)
bricker88 has joined #ruby
vlad_starkov has joined #ruby
tommyvyo has joined #ruby
SeySayux has quit [Ping timeout: 265 seconds]
jonatha__ has quit [Read error: Connection reset by peer]
<Mon_Ouie> Was that to ask a question, or just to show how many weird unicode characters exist and aren't supported by most fonts?
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
<shevy> down with unicode!
<dominikh> os x is a unicode-aware terminal now? interesting. I thought it was an operating system
<amacgregor> I been trying to get rubyrep (http://www.rubyrep.org) working but so far I always get stuck to the same issue Exception caught: Mysql::Error: query: not connected: SHOW TABLES
<amacgregor> my guess is a problem with the mysql gem
schovi has joined #ruby
Aaton_off is now known as Aaton
<dross> well there's your problem, you're using MySQL, not Postgresql
<amacgregor> dross, lol unfortunately I have to use mysql
<dross> I'm so sorry for you
<amacgregor> I know I contemplated suicide but ... I think I can go on
<amacgregor> lol
bashdy has joined #ruby
<amacgregor> in all seriousness I'm just looking for a tool that allows me to do and fine tune db sync and replication rubyrep does exactly that ... well except for the part where you know doesn't work
Morkel has quit [Quit: Morkel]
simao_ has quit [Ping timeout: 265 seconds]
kontact has quit [Ping timeout: 245 seconds]
<amacgregor> the issue is apparently common for anyone running or tryign to run rails in windows
kenperkins has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<amacgregor> I been seen plenty of references recomending libmysql.dll to be updated
<amacgregor> but I don't think this applies to me on linux right ?
lxsameer has quit [Quit: Leaving]
Ripp___ has joined #ruby
<shevy> unlikely. .dll on linux would be .so files typically
Ripp__ has quit [Ping timeout: 244 seconds]
<shevy> but perhaps they recommend a specific mysql version
SeySayux_ has joined #ruby
bier has joined #ruby
bluenemo has quit [Remote host closed the connection]
chimkan__ has quit [Ping timeout: 244 seconds]
bashdy has quit [Quit: leaving]
peregrine81 has joined #ruby
SegFaultAX has joined #ruby
punkrawkR has quit [Ping timeout: 252 seconds]
apok has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
jonathanwallace has joined #ruby
btanaka has quit [Remote host closed the connection]
afallows_ is now known as afallows
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
gentz has quit [Ping timeout: 252 seconds]
eurek has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rasbonics has quit [Quit: rasbonics]
rasbonics has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
keanehsiao has joined #ruby
<ZadYree> @num = 3 seems forbidden, how to declare a variable usable by every methods within the class?
<ZadYree> a numeric variable of course
<bnagy> it's not forbidden
<xclite> the type doesn't matter. how is @num = 3 forbidden?
khakimov has joined #ruby
<eam> ZadYree: you just need to say @num = 3 within a class method. Try putting it in your initialize() ?
<dominikh> that'd be an instance method.
brianpWins has joined #ruby
<shevy> ZadYree that assignment is allowed
<eam> dominikh: sorry, I meant "within the class, in a method"
samuelkadolph has quit [Quit: Quitting]
<bnagy> ZadYree: YOU LIE DAMMIT EVERYONE AGREES
<shevy> hehe
<ZadYree> Hehehe
<ZadYree> well, I must be wrong somewhere ele then
<shevy> never give bnagy a sledgehammer when he is angry
<bnagy> srsly though what error are you getting, and ideally pastie code
<bnagy> I can't think of any situation ever where that assignment would fail
<ZadYree> well, it doesn't like this: if nch < @num
samuelkadolph has joined #ruby
<shevy> and what value does nch have
<xclite> you have to say how it doesn't like it
<ZadYree> the code is in French, so I suspect it to be slightly painful for non-french people
<dominikh> please pastie all relevant code. single lines are pretty useless
tvw has quit [Remote host closed the connection]
<xclite> whatever I can read french paste it
<ZadYree> nch is numeri
<dominikh> probably less painful then random snippets
<ZadYree> numeric
<bnagy> ZadYree: j'en pare
<shevy> french is sexy
<bnagy> *parle
<ZadYree> aha sure ok lemme paste this
<bnagy> speaking is easy typing is hard
<shevy> if we could just code by speaking to our computers...
erichmenge has quit [Quit: erichmenge]
samuelkadolph has quit [Client Quit]
davidcelis has quit [Read error: Connection reset by peer]
niku4i has quit [Remote host closed the connection]
niklasb has joined #ruby
cha1tanya has quit [Quit: Leaving]
<ZadYree> <shevy> if we could just code by speaking to our computers... # I guess we could have to accept bot-weddings
<dominikh> ZadYree: nch is a string, not a number
tomask has joined #ruby
samuelkadolph has joined #ruby
<dominikh> ARGV[0] is a string, not a number
<ZadYree> oh
LBRapid has quit [Quit: Farewell...]
<ZadYree> I guess this was the weak point
<dominikh> script arguments are always strings, ruby cannot guess what you meant when you typed 5 on the terminal
<dominikh> this ain't javascript ;)
<ZadYree> Okay, how may I make it understand it? ^^
<ZadYree> nor perl :P
<bnagy> ZadYree: for style, I wouldn't make that a class, either
<dominikh> ARGV[0].to_i
yekta has quit [Ping timeout: 244 seconds]
<ZadYree> bnagy, yeah, I did this to get used manipulating classes
<bnagy> Integer( ARGV[0] )
<ZadYree> ah thanks dominikh !
<dominikh> bnagy: enjoy explaining the difference.
afallows_ has joined #ruby
<bnagy> dominikh's version will always return an integer, but it might be wrong
axl_ has quit [Read error: Connection reset by peer]
eywu has quit [Quit: Leaving.]
<ZadYree> hehehe some voodoo object-diff things? ^^
<ZadYree> ok
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
<bnagy> like if it can't work out to_i it just returns 0
axl_ has joined #ruby
schaerli has joined #ruby
<bnagy> Integer( ... ) will raise if it can't convert
Vainoharhainen has quit [Quit: Leaving...]
<eam> how can I create a NaN or Infinity literal in ruby?
<eam> without using math, I mean
<bnagy> Float::INFINITY
<eam> sweet. Is there no way to get that via Float() ?
<bnagy> wat?
<Mon_Ouie> Sure, Float(Float::INFINITY)
<ZadYree> (works fine now)
<eam> hm, I don't have Float::INFINITY (1.8.7)
gentz has joined #ruby
<Mon_Ouie> Float(…) is a method to do type conversion
<canton7> I've seen 1.0/0 used to get Infinity
<eam> Mon_Ouie: yeah and I'm using it with strings -- but I don't see a way to read in a string value for certain float types
<Mon_Ouie> Then you should be using 1.9 — in 1.8, you can do what canton7 said
afallows has quit [Ping timeout: 256 seconds]
davidcelis has joined #ruby
<dominikh> Float("1.8")
<eam> so in 1.8 I can turn floats into strings, but can't reverse the process?
<Mon_Ouie> Float#to_s
<bnagy> uh?
afallows_ is now known as afallows
<dominikh> Mon_Ouie: seriously though, you picked the worst possible and most pointless example with Float::INFINITY :P
BiHi has quit [Quit: Computer has gone to sleep]
timonv has joined #ruby
<Mon_Ouie> dominikh: It wasn't an example
<eam> bnagy: I mean float_val.to_s works for all values of the float type
<Mon_Ouie> He asked how to get Float(…) to return Float::INFINITY
<dominikh> Mon_Ouie: ah sorry, I missed a line
<eam> but Float(float_val.to_s) does not work for all values
<eam> NaN, Infinity and a few others break
nfluxx has joined #ruby
moshef has quit [Quit: moshef]
<bnagy> not in 1.9
<dominikh> Mon_Ouie: well, a couple
fserb has quit [Quit: ttyl]
<dominikh> bnagy: yes, also in 1.9
<bnagy> Float::INFINITY.to_s => "Infinity"
<dominikh> ye, now put that into Float()
yekta has joined #ruby
Guest11890 has quit [Ping timeout: 244 seconds]
<dominikh> you cannot use Float() to turn string representations of Infinity or NaN back into a float.
erikwb has joined #ruby
<bnagy> ahh yeah that wouldn't work
<eam> it's a curiosity I ran into a few days ago
flak has joined #ruby
<bnagy> but you CAN turn it into a Float
<bnagy> which is close enough
fserb has joined #ruby
<dominikh> it already IS a float
<bnagy> I mean FP math is all approximate
<dominikh> no turning there
<eam> bnagy: how?
flak is now known as Guest97030
<bnagy> Float( Float::INFINITY.to_s )
SmoothSage has joined #ruby
<eam> that works in 1.9?
<eam> Float("Infinity") ?
<dominikh> are you effin kidding me, bnagy?
<Mon_Ouie> No, it raises an exception
<dominikh> we just went over it, that _does not_ work
<eam> so there's no way to do this?
jonathanwallace has joined #ruby
celm has joined #ruby
<dominikh> not without investing some own code
celm has quit [Read error: Connection reset by peer]
<bnagy> "Infinity".to_f => 0.0
<dominikh> if foo == "Infinity"; Float::INFINITY; end
<erikwb> eeew
<bnagy> close enough
<bnagy> in the broad scheme
<erikwb> anyone have any experience with very long running jruby processes?
<erikwb> do they eventually gc hell like cruby tends to?
<bnagy> no because java
<erikwb> bnagy: cant tell if serious :)
<eam> so I'd basically have to use a case statement and say if == "NaN" return 0.0/0.0 ?
<dominikh> pretty much
Guest44443 has quit [Ping timeout: 250 seconds]
<bnagy> eam: can you keep your stuff as actual constants?
<bnagy> eam: no srsly
<bnagy> sorry
* Hanmac has tamed his GC well so it only eats what it should eat
<bnagy> erikwb: no srsly
<erikwb> bnagy: sweet
darkf has joined #ruby
<bnagy> but java gets pissy if you eat too much memory
Guest97030 has quit [Client Quit]
<eam> bnagy: well, assume this has to go out to some ascii protocol and then back (varchar, tab delimited file, etc)
<erikwb> yah, jvm wranglin' is ok
<bnagy> so you might want to invest some time into looking at Xmx Xms etc
<erikwb> right
<erikwb> permgen CMS voodoo jumbo etc
rippa has joined #ruby
<erikwb> at least jvm lets one do that :)
<Hanmac> eam be careful: Float::NAN != Float::NAN
<eam> Hanmac: yes I'm aware :)
<bnagy> Marshal.dump Float::INFINITY => "\x04\bf\binf"
<bnagy> what aout that?
<eam> bnagy: I'm trying to replace some perl stuff with ruby
<eam> and perl can properly turn string numeric values into all float values
<eam> just need to know what's necessary to get functional parity
savage-_ has joined #ruby
<bnagy> maybe check out marshal
fserb has quit [Quit: ttyl]
yekta has quit [Ping timeout: 250 seconds]
savage- has quit [Ping timeout: 240 seconds]
<dominikh> and by code he means data
zomb1e has quit [Remote host closed the connection]
<dominikh> hm, wrong channel
zomb1e has joined #ruby
<ZadYree> ah, by curiosity, in initialize, is it possible to write something like self.furtherMethod() ?
<dominikh> okay, merging two channels in one buffer was a shit stupid idea, getting confused :D
<Hanmac> zadYree: it is, do you want to call an instance or class method?
ringotwo has joined #ruby
<ZadYree> a class method
ringotwo has quit [Remote host closed the connection]
<ZadYree> inside the initialize one
ringotwo has joined #ruby
<bnagy> sure
<bnagy> apart from the horrible casing of that method
hadees has quit [Ping timeout: 245 seconds]
rmascarenhas has joined #ruby
<ZadYree> hehe ok
<davidcelis> Hanmac: wtf
<bnagy> although self in that context will point to instance won't it?
adamkittelson has joined #ruby
<davidcelis> Float::NAN != Float::NAN # why
<ZadYree> Ah, thought it would refer to the class itself
<eam> davidcelis: because NaN is not a number
Morkel has joined #ruby
<eam> so it cannot be equal to anything in a numeric expression
c0rn has joined #ruby
<eam> davidcelis: the same reason that NaN in any math expression returns NaN
<Mon_Ouie> davidcelis: That's part of the IEEE spec
<davidcelis> eam: ahhhh makes sense
lopin has joined #ruby
Eldariof-ru has joined #ruby
<bnagy> but it equal?s it :/
<bnagy> ZadYree: self.class.bloog
mohits has quit [Ping timeout: 250 seconds]
<Mon_Ouie> #equal? is to check if two objects are the *same*, not if their "values" are equal
<eam> bnagy: it doesn't -- it's a bit like NULL in sql
yekta has joined #ruby
<bnagy> eam: yeah it does
<eam> NaN is the absense of a valid numeric value
<Mon_Ouie> eam: He's talking about Object#equal?
<eam> Mon_Ouie: oh
qwerxy has quit [Quit: offski]
<bnagy> Float::NAN.equal? Float::NAN => true
<dominikh> "".equal? "" => false. your argument is invalid
<bnagy> lol
<Mon_Ouie> Usually being the same object obviously implies having the same value, but that's a particular case
<bnagy> and by the same token normally immediates == and equal?
<bnagy> damn persnickitty object model
zomb1e has quit [Remote host closed the connection]
erikwb has left #ruby [#ruby]
Morkel_ has joined #ruby
bluOxigen has joined #ruby
<eam> bnagy: here's another fun one: "-0.0".to_f.equal? "0.0".to_f
zomb1e has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
<eam> and "-0.0".to_f == "0.0".to_f
<banisterfiend> Float::NAN.equal?(Float::NAN) == true
<dominikh> you are late to the party…
Morkel has quit [Ping timeout: 248 seconds]
Morkel_ is now known as Morkel
<bnagy> honestly eam I expected neither of those to work
<bnagy> any time Float does something I expect I freak out
geekbri has quit [Remote host closed the connection]
rasbonics has quit [Quit: rasbonics]
fserb has joined #ruby
<bnagy> like, you know, rounding correctly
dr0p_pl has joined #ruby
<bnagy> banisterfiend: made curry tonight :> has .au tourists round for dinner
<bnagy> not porj though :|
mikeg has joined #ruby
<bnagy> pork
<banisterfiend> bnagy: oh god i hate australian toursists
<banisterfiend> bnagy: what kind of curry?
<bnagy> banisterfiend: inorite? Who likes going slops on sheep?
nfluxx has quit [Remote host closed the connection]
<eam> hm, ruby doesn't distinguish between positive and negative infinity, does it?
geekbri has joined #ruby
nfluxx has joined #ruby
<bnagy> palak paneer, aloo jeera, sambar and some sides
dsa has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
ryan0x2 has joined #ruby
timonv has quit [Remote host closed the connection]
luckyruby has joined #ruby
<ZadYree> ah bnagy thank you
fserb has quit [Client Quit]
mohits has joined #ruby
yekta has quit [Ping timeout: 252 seconds]
<shevy> eam I think that statement is correct
<dominikh> I think it is not
<bnagy> well it clearly does
EzeQL has quit [Ping timeout: 248 seconds]
<bnagy> cause rththey'[re not equal?
eywu has joined #ruby
EzeQL has joined #ruby
<dominikh> -Float::INFINITY == Float::INFINITY # => false :P
<bnagy> sorry :( typing with 2-3 second lag
waxjar has joined #ruby
mdw has joined #ruby
<shevy> indeed
<eam> oh, so it does
dsa has quit [Ping timeout: 260 seconds]
waxjar has quit [Client Quit]
iocor has quit [Quit: Computer has gone to sleep.]
<bnagy> FLOATS! HOW DO THEY WORK??
<dominikh> read the specification :P
<banisterfiend> eam: (-Float::INFINITY..Float::INFINITY)
chienpo has joined #ruby
<eam> banisterfiend: yeah so I'm talking about 1.8
<tommylommykins> hmmm
williamcotton has joined #ruby
<shevy> that's a big range
<banisterfiend> eam: same thing
<eam> banisterfiend: no it's not (see history)
<eam> 1.8 doesn't have Float::INFINITY
<banisterfiend> eam: when it comes to negative infinity vs positive infinity it's the same
<tommylommykins> ieee754 float representation has 0 and -0 as different, doesn't it?
<banisterfiend> eam: just that 1.9 has a constant Float::INFINITY
<eam> tommylommykins: 0.0 and -0.0 yes
afallows_ has joined #ruby
afallows has quit [Ping timeout: 252 seconds]
<eam> banisterfiend: yeah, I'm basically jumping through hoops to define my own constants
<banisterfiend> on 1.8
<shevy> eam yeah but there is the method .infinity? still x = 1.0/0; x.infinite?; y = -1.0/0; y.infinite?
<Mon_Ouie> Probably all ruby does is get a double out of the object and do the math with regular C operators
qwerxy has joined #ruby
mohits has quit [Ping timeout: 244 seconds]
mmsequeira has quit [Quit: mmsequeira]
kenperkins has joined #ruby
bashdy has joined #ruby
simao has joined #ruby
yekta has joined #ruby
<banisterfiend> eam: jumping through hoops? :) it's just: YourConstant = 1/0.0
<bnagy> 1.499999999999999.round
<bnagy> (add one more 9)
<bnagy> yaay float! because 32 bit maths ROCKS
afallows_ is now known as afallows
<eam> banisterfiend: I mean ARGV[0] == "Infinity" ...
zomb1e has quit [Remote host closed the connection]
zomb1e has joined #ruby
<eam> banisterfiend: but yes that's how I'm generating Inf/NaN values
<bnagy> Tere is a much shorter one someone was talking about on rubylang
<bnagy> like 3 decimal places and it suddenly goes Wrong
<banisterfiend> bnagy: do u eat meat
mucker has joined #ruby
<bnagy> I do
geekbri has quit [Remote host closed the connection]
geekbri has joined #ruby
<banisterfiend> bnagy: but u made a vegetarian curry?
<bnagy> although I regret it after 2 nights ago
<eam> bnagy: that's not an issue with 32bit math -- it's not even using 32bit values for that expression
<bnagy> yeah, veg. guests
<eam> it's an issue of base 10 versus base 2
<bnagy> eam: you're telling the story, dude
Ankhers has quit [Remote host closed the connection]
<bnagy> and as soon as you explain how you stop the cpu from using its native values...
yekta has quit [Client Quit]
<eam> I'm just saying it's not a "32 bit math" issue
<bnagy> I know that's what you're saying
td123 has quit [Quit: WeeChat 0.3.8]
<bnagy> and I say I was abducted by aliens
<bnagy> doesn't make either of us right
<shevy> what did they do with the old bnagy?
nuex has joined #ruby
<eam> erm, true, the reason I'm right is that I'm describing how things actually work ...
<Mon_Ouie> But he's right — doubles are coded on 64-bit
* tommylommykins wonders why it's traditional to have to do a calculation to generate infinity. Does C not have a set of NaN and Infinity constants?
simao has quit [Ping timeout: 265 seconds]
<banisterfiend> shevy: they abducted him and left him in the middle of nowhere, himalayas iirc
<eam> Mon_Ouie: and it's not a precision issue, it's a problem of decimals in various number bases
<banisterfiend> bnagy: hey i was reading the other day, do u know what caused the himalayan mountains?
<bnagy> geology?
<dominikh> God.
<banisterfiend> bnagy: haha
<eam> certain non-repeating decimals in base 10 are repeating in base 2, and vice versa. When the base changes, the expressability of a value changes
<bnagy> or did you want specifics?
linusoleander has joined #ruby
<banisterfiend> bnagy: india didnt used to be part of asia, the himalayans are what happened when idea crashed into asia
<bnagy> there's a huge ass subduction fault, roughly, right under my ass right at this second
<banisterfiend> bnagy: it's the wreckage from the crash :)
wmoxam has joined #ruby
g0bl1n has quit [Quit: Ex-Chat]
<bnagy> which is more or less like a coiled spring
<bnagy> eam: it's not just with repeating values
strnx has quit [Remote host closed the connection]
<eam> bnagy: absolutely
<nuex> is it possible for irb to evaluate script passed in via stdin and drop to an interactive prompt? i'm testing some stuff and I'm having to assign variables each time i set up the session to test it.
fserb has joined #ruby
<jedmtnman> nuex, you can also just save to a file and load it.
<banisterfiend> nuex: what not just use irb -r
<bnagy> or put if __FILE__==$0;binding.pry;end at the end of your script
<nuex> jedmtnman, banisterfiend: i tried that, but assigned variables in the script are lost
mucker has quit [Quit: leaving]
<banisterfiend> nuex: u mean LOCAL variables?
<Mon_Ouie> binding.eval File.read(…)
<nuex> banisterfiend: yeah
<banisterfiend> nuex: yeah good luck with locals
fserb has quit [Client Quit]
FLeiXiuS has joined #ruby
<FLeiXiuS> Is there a way to check for both '' and nil? without havign to have 2 conditions
<banisterfiend> nuex: do what either bnagy or Mon_Ouie said
<bnagy> no?
<banisterfiend> FLeiXiuS: x.to_s.empty?
<bnagy> uh nil.to_s? ?
<banisterfiend> nil.to_s #=> "" :D
<Mon_Ouie> Sometimes I wonder if Rubyists have metrical requirements like poets, and are restricted in the amount of lines and methods they can use in a program
<FLeiXiuS> bah!
<FLeiXiuS> So dumb.
<FLeiXiuS> Thanks.
<banisterfiend> Mon_Ouie: hehe
mohits has joined #ruby
<bnagy> nvm I hallucinated a ?
<bnagy> but that still isn't an answer imho
<banisterfiend> Mon_Ouie: it's the people transitioning from other languages (like java), they hear how ruby is supposed to be so concise
iocor has joined #ruby
<bnagy> and it's dangerous code
<banisterfiend> Mon_Ouie: and are unwilling to compromise a single character
mucker has joined #ruby
mrsolo has joined #ruby
<shevy> Mon_Ouie poetry demands a certain symmetrical style forward. evil words like eval "@@eval" make for very bad asymmetrical poetry
<banisterfiend> Mon_Ouie: my guess, anyway :)
<shevy> or for x in y
Helius has joined #ruby
mucker has quit [Client Quit]
Elfix has quit [Ping timeout: 250 seconds]
mucker has joined #ruby
daniel_hinojosa has joined #ruby
user__ has joined #ruby
bwlang has joined #ruby
<banisterfiend> Mon_Ouie: are you interested in seeing the new science fiction movie prometheus
palmfrond has quit [Read error: Connection reset by peer]
<bwlang> is there a better way to do this? comp[:wells].select{|w| well_ids.include?(w[:id])}
<Mon_Ouie> I didn't even hear about it
<banisterfiend> Mon_Ouie: there's a few coming out actually, loopers (time travel movie) looks cool too
<banisterfiend> Mon_Ouie: directed by the same guy behind aliens
<shevy> ridley scott?
<banisterfiend> shevy: Yeah.
<shevy> blade runner was epic
<bnagy> banisterfiend: I had xmas dinner with 2 of the dfx crew from that movie
AtoxHybrid has joined #ruby
mucker has quit [Client Quit]
vonsar has joined #ruby
akem has quit [Ping timeout: 256 seconds]
<shevy> in nepal???
<bnagy> no was in .au
AxonetBE has joined #ruby
mucker has joined #ruby
<banisterfiend> bnagy: cool, from prometheus? how did u get in a situation to do that?
<bnagy> bwlang: why, what's wrong with that? Seems pretty readable to me?
Elfix has joined #ruby
ericcoleman has joined #ruby
moshee has quit [Ping timeout: 250 seconds]
<shevy> bwlang you could omit the () after .include?
<bnagy> banisterfiend: dunno. Random chance. Friends of friends.
<bwlang> bnagy: i don't object to it... but i'm not sure if i'm missing some better option.
brasten has quit [Quit: brasten]
moshee has joined #ruby
<bwlang> bnagy: it will be slow with a long well_ids list.
<bnagy> one of the guys was polish, and hungarians love to drink poles under the table ;)
zomb1e has quit [Read error: Connection timed out]
moshee has quit [Changing host]
moshee has joined #ruby
nirakara has quit [Ping timeout: 252 seconds]
<bnagy> bwlang: make well_ids a hash
<banisterfiend> bnagy: you're hungarian?
<bnagy> on my father's side yeah
qwerxy has quit [Quit: offski]
brasten has joined #ruby
zomb1e has joined #ruby
<banisterfiend> bnagy: is your name atilla
sixty4k has joined #ruby
zomb1e_ has joined #ruby
dr0p_pl has quit [Quit: Konversation terminated!]
test34- has joined #ruby
test34- has quit [Changing host]
test34- has joined #ruby
<bnagy> yes, because that totally starts with 'b'
<banisterfiend> i wasnt sure if your nickname corresponded to your RL name
eywu1 has joined #ruby
<banisterfiend> mine does, but that's necessarily the norm
<bnagy> yeah. I lack imagination.
<banisterfiend> not necessarily*
eywu has quit [Ping timeout: 244 seconds]
gearaholic has joined #ruby
snip_it has joined #ruby
unlink has joined #ruby
snip_it has left #ruby [#ruby]
user__ has quit [Read error: Connection reset by peer]
Sheehan has joined #ruby
<unlink> Is there a simple way to compare on attributes between arbitrary objects? I'm doing lst.any? {|one| one.attr == other.attr}
<shevy> bnagy I lack underwear
nricciar has quit [Read error: Connection reset by peer]
jedmtnman has quit [Quit: Leaving.]
apok has quit [Remote host closed the connection]
zomb1e has quit [Ping timeout: 260 seconds]
zomb1e_ is now known as zomb1e
fserb has joined #ruby
apok has joined #ruby
test34 has quit [Ping timeout: 245 seconds]
ZadYree has quit [Ping timeout: 245 seconds]
bwlang_ has joined #ruby
jenrzzz-mac has joined #ruby
<bnagy> ok bedtiem
<bnagy> unlink: list.group_by(&:attr)
palmfrond has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
LBRapid has joined #ruby
<shevy> gtk...
<shevy> staring at http://www.gtk.org/language-bindings.php and wondering why ruby is not as much loved as python ...
akem has quit [Read error: Connection reset by peer]
bwlang has quit [Ping timeout: 265 seconds]
bwlang_ is now known as bwlang
roolo has quit [Quit: Linkinus - http://linkinus.com]
fserb has quit [Client Quit]
keanehsiao has quit [Quit: keanehsiao]
yannis has quit [Quit: yannis]
shadoi has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
<Hanmac> unlink i think you want this more: list.sort_by(&:attr)
nuex has left #ruby [#ruby]
PragCypher has joined #ruby
deryl has quit [Quit: deryl]
<unlink> I am trying to find whether one list contains an object from another list, comparing by a particular attribute.
ananthakumaran has quit [Quit: Leaving.]
mrdtt has quit [Quit: Leaving]
<unlink> in Haskell it would be: any . ((==) `on` someAttr)
<unlink> (or if it existed, elemBy someAttr)
<xclite> it is any in ruby too
<xclite> arr.any?{|o| o.attr == target.attr}
<xclite> well wait - so the definition is
<unlink> right, that's why I had before, I was just wondering if I needed to explicitly name o and target.
<xclite> you want to see whether two lists have an object in common by a given attribute
<xclite> ?
<unlink> yes.
Gekz has quit [Ping timeout: 245 seconds]
eywu has joined #ruby
bashdy has quit [Quit: leaving]
eywu1 has quit [Ping timeout: 244 seconds]
artm has quit [Remote host closed the connection]
akem has joined #ruby
artm has joined #ruby
<xclite> you could use the intersect operator
<xclite> (a1 & a2).empty?
<xclite> well
<xclite> no you couldn't if it's on attr
<xclite> (a1.map{|a| a.attr} & a2.map{|a| a.attr}).empty?
<unlink> yeah but that's quadratic
<xclite> (a1.map{|a| a.attr} & a2.map{|a| a.attr}).empty?
<xclite> ug typo
Helius has quit [Remote host closed the connection]
<xclite> algorithmically, what can do better than quadratic if all you have are two lists with no extra knowledge and no sorted qualities?
<yxhuvud> xclite: for starters, you can sort the list yourself.
itnomad has joined #ruby
<xclite> yxhuvud: which has been suggested
<yxhuvud> I'd use group_by.
sixty4k has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
<xclite> I guess my question really is what makes the haskell any . ((==) `on` someAttr) faster than quadratic time?
bfig has quit [Ping timeout: 265 seconds]
<xclite> or faster than l1.size*l2.size worst case
luckyruby has quit [Remote host closed the connection]
yonggu_ has joined #ruby
NorrinRadd has joined #ruby
<Mon_Ouie> I'd simply use a Set for the list you call #include? on
<Mon_Ouie> Since Set#include? is O(1)
dsa has joined #ruby
<xclite> that makes assumptions about his objects
<xclite> he wants to see if the lists share an object given a particular attribute
yonggu has quit [Ping timeout: 245 seconds]
<Hanmac> xclite try: (a1 + a2).map(&:attr).uniq.empty?
<xclite> they could be unequal in other attributes, which could make the objects different setwise
<Mon_Ouie> xclite: I don't get your point
<Mon_Ouie> any? { |obj| set.include? obj.attr }
akem has quit [Read error: Connection reset by peer]
<xclite> what a parallel set?
EzeQL has quit [Ping timeout: 248 seconds]
<Hanmac> (a1 + a2).uniq(&:attr).empty?
banisterfiend has quit []
<Mon_Ouie> Oh, nevermind, I'm confusing this with another question asked previously
gearaholic has quit [Remote host closed the connection]
<yxhuvud> Mon_Ouie: well, so is hash lookups.. Dunno which of group_by or set that is constructed the fastest. probably Set I guess since you don't have to keep anything but the attribute around.
tomask has quit [Quit: Quit]
twinturbo has joined #ruby
<Mon_Ouie> yxhuvud: Well, in YARV, Set#include? is just a fancy wrapper around a hash
Mohan has joined #ruby
<Mon_Ouie> def include?(o); @hash.key? o; end
replore has quit [Remote host closed the connection]
pooya72 has joined #ruby
joast has quit [Quit: Leaving.]
bwlang_ has joined #ruby
<xclite> Hanmac: Doesn't work - if it's empty, that just they key didn't exist. If it's not empty, they may or may not have shared that object.
<xclite> if it's empty nothing had that attribute at all*
sonicpond is now known as ReadyForTheNickM
<xclite> if it isn't empty, at least one of them had it. doesn't mean they shared it
eywu1 has joined #ruby
nascro has joined #ruby
bwlang has quit [Ping timeout: 250 seconds]
bwlang_ is now known as bwlang
jedmtnman has joined #ruby
eywu has quit [Ping timeout: 244 seconds]
PragCypher has quit [Read error: Connection reset by peer]
ReadyForTheNickM is now known as sonicpond
PragCypher has joined #ruby
akem has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
zomgbie has joined #ruby
sbanwart has joined #ruby
jedmtnman has quit [Client Quit]
pdtpatrick has joined #ruby
lessless has quit [Ping timeout: 245 seconds]
lessless has joined #ruby
indian has quit [Read error: Operation timed out]
keithcelt has joined #ruby
medik has quit [Remote host closed the connection]
baniseterfiend` has joined #ruby
bwlang_ has joined #ruby
<affix> A script I wrote to analyse malware in ruby
nfbvieira has joined #ruby
baniseterfiend` is now known as banisterfiend
fayimora has quit [Quit: Busy…..zzzzz]
<nfbvieira> hi
dsa is now known as EzeQL
deryl has joined #ruby
akem has quit [Read error: Connection reset by peer]
eywu1 has quit [Read error: No route to host]
eywu has joined #ruby
chimkan__ has joined #ruby
bwlang has quit [Ping timeout: 245 seconds]
akem has joined #ruby
bwlang_ is now known as bwlang
minijupe has quit [Quit: minijupe]
ping-pong has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
<the_jeebster> is there a string method that will slice characters and return everything but the sliced characters?
<bperry> affix: I think you mispelled PONG
<bperry> POMG
joast has joined #ruby
<affix> bperry: Lol so I did
<affix> Fixing now
vikhyat has quit [Quit: Leaving.]
jgrevich_ has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
joast has quit [Client Quit]
jgrevich_ is now known as jgrevich
<affix> bperry: Fixed it :)
chimkan has quit [Ping timeout: 244 seconds]
chimkan__ is now known as chimkan
vikhyat has joined #ruby
chimkan__ has joined #ruby
MrGando has joined #ruby
chimkan____ has joined #ruby
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
chimkan__ has quit [Ping timeout: 240 seconds]
wmoxam has quit [Quit: leaving]
simao has joined #ruby
chimkan____ has quit [Ping timeout: 252 seconds]
QaDeS has quit [Quit: Ex-Chat]
<_br_> is there any sane way to "clean" the .rvm folder? Or do I just fire a good old rm -rf on it and just bunle again?
chimkan has quit [Ping timeout: 265 seconds]
NorrinRadd has left #ruby [#ruby]
oooPaul has joined #ruby
<banisterfiend> _br_: i'd probably start with rvm help
khakimov has quit [Quit: Computer has gone to sleep.]
<banisterfiend> though
<banisterfiend> that normally results in an explosion of crap all over your screen
strnx has joined #ruby
simao has quit [Ping timeout: 265 seconds]
<_br_> banisterfiend: no, sorry my bad. Its a bit late here and after getting killed by xxxx lines of text I didn't think clearly. Seems the rvm cleanup all free'd 50% so its better. Sorry and thanks !
<bperry> affix: you might integrate virustotal in with it
werdnativ has joined #ruby
timonv has joined #ruby
eywu has quit [Quit: Leaving.]
bosphorus has quit [Remote host closed the connection]
akem has quit [Ping timeout: 250 seconds]
punkrawkR has joined #ruby
chimkan has joined #ruby
tvw has joined #ruby
yannis has joined #ruby
ZifreCL has joined #ruby
Bosma has joined #ruby
<affix> bperry: I might just do that :)
<affix> bperry: Maybe even make a VirusTotal Gem
werdnativ has quit [Ping timeout: 245 seconds]
counterbeing has joined #ruby
SmoothSage has quit [Ping timeout: 245 seconds]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
blacktulip has quit [Remote host closed the connection]
kevinbond has quit [Quit: kevinbond]
dsa has joined #ruby
blacktulip has joined #ruby
parus has quit [Ping timeout: 252 seconds]
parus has joined #ruby
EzeQL has quit [Ping timeout: 245 seconds]
ronniy has quit [Remote host closed the connection]
deryldoucette has joined #ruby
Croms has quit [Ping timeout: 260 seconds]
dankest has joined #ruby
mengu_ has joined #ruby
mengu has quit [Read error: Connection reset by peer]
deryl has quit [Ping timeout: 245 seconds]
deryldoucette is now known as deryl
jenrzzz-mac has joined #ruby
robdodson has joined #ruby
mdhopkins has joined #ruby
mayankkohaley has quit [Remote host closed the connection]
PaciFisT has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
thecreators has quit [Quit: thecreators]
michaelmartinez has joined #ruby
b3gott3n has joined #ruby
thecreators has joined #ruby
nanderoo has quit [Quit: Leaving.]
chimkan has quit [Read error: Connection reset by peer]
<tvw> In ruby-1.9.3 nil.to_i gives me 0, but "%d" % nil gives me an error instead of "0". In ruby-1.8, both returned 0. Is there a way to get easily the old behaviour in ruby 1.9.3.
chimkan has joined #ruby
foofoobar has joined #ruby
Ripp___ has quit [Read error: Operation timed out]
Croms has joined #ruby
<Hanmac> tvw, no i think you need "%d" % nil.to_i ... %d reacts to :to_int not to :to_i ... (as i think)
mucker has quit [Ping timeout: 256 seconds]
Ripp__ has joined #ruby
thecreators has quit [Quit: thecreators]
zomb1e has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
lorandi has joined #ruby
LBRapid has quit [Quit: Farewell...]
zomb1e has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
jedmtnman has joined #ruby
bwlang_ has joined #ruby
booginga has joined #ruby
Criztian has joined #ruby
foofoobar has quit [Quit: bb]
Bish has joined #ruby
strnx has quit [Excess Flood]
bwlang has quit [Ping timeout: 245 seconds]
bwlang_ is now known as bwlang
strnx has joined #ruby
jackiechan0 has joined #ruby
jackiechan0 has quit [Read error: Connection reset by peer]
jackiechan0 has joined #ruby
GoldenPie has joined #ruby
rvmeier has joined #ruby
GoldenPie has left #ruby [#ruby]
yannis has quit [Quit: yannis]
zomb1e_ has joined #ruby
<tvw> Hanmac: I am not sure, whether you are right. At least it behaves a bit weird. Another example "%d" % "5" gives you "5", though String does not have #to_int. But "%d" % "5a" gives an error, while "5a".to_i returns 5. But at least here it is the same behaviour in 1.9.3 and 1.8.7.
zomb1e has quit [Ping timeout: 256 seconds]
zomb1e_ is now known as zomb1e
aaronmase has joined #ruby
aaronmase has quit [Remote host closed the connection]
Sgeo has quit [Read error: Connection reset by peer]
<tvw> And if I monkeypatch NilClass with #to_int, it does not help me.
Sgeo has joined #ruby
jrajav has joined #ruby
deryl has quit [Read error: Connection reset by peer]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
deryl has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
<Mon_Ouie> That's because %d uses Integer(…), which requires string to only contain the integer
lolsuper_ has quit [Quit: Leaving]
bwlang_ has joined #ruby
fmcgeough has joined #ruby
<tvw> Mon_Ouie: And how did it ruby 1.8.7?
n1x has quit [Ping timeout: 240 seconds]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
bwlang has quit [Ping timeout: 260 seconds]
bwlang_ is now known as bwlang
bosphorus has joined #ruby
<Mon_Ouie> Exactly the same way?
robdodson has quit [Quit: robdodson]
oooPaul has quit [Ping timeout: 244 seconds]
n1x has joined #ruby
eph3meral has joined #ruby
MasterIdler_ has joined #ruby
MasterIdler_ has quit [Client Quit]
jenrzzz-mac has joined #ruby
mengu_ has quit [Quit: Konversation terminated!]
artm_ has joined #ruby
<Hanmac> i readed the SOURCE and it says: "rb_Integer(val)" ... wich is the cSide of Integer( ... ) i think
ajonsson has joined #ruby
luckyruby has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
imami|afk is now known as banseljaj
michaelmartinez has joined #ruby
MasterIdler has quit [Ping timeout: 245 seconds]
artm has quit [Ping timeout: 245 seconds]
artm_ is now known as artm
joast has joined #ruby
artOfWar_ has joined #ruby
Eldariof-ru has quit []
foofoobar has joined #ruby
<tvw> Mon_Ouie: No, I guess not, since it gives a different result.
siksia has quit [Ping timeout: 260 seconds]
dekronin1 has quit [Ping timeout: 240 seconds]
AxonetBE has quit [Quit: Leaving.]
Guedes is now known as Guedes_out
artOfWar has quit [Read error: Connection reset by peer]
fmcgeough has quit [Quit: fmcgeough]
zomb1e has quit [Quit: zomb1e]
zemanel has joined #ruby
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nfbvieira has quit [Quit: Leaving]
siksia has joined #ruby
bwlang_ has joined #ruby
sepp2k1 has joined #ruby
minijupe has joined #ruby
AxonetBE has joined #ruby
carlyle has joined #ruby
indian has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
bwlang has quit [Ping timeout: 248 seconds]
bwlang_ is now known as bwlang
EzeQL has joined #ruby
<Mon_Ouie> That's just because Kernel#Integer behaves differently
billy_ran_away has joined #ruby
hoelzro|away is now known as hoelzro
hoelzro has quit [Quit: leaving]
erichmenge has joined #ruby
Gavilan has joined #ruby
erichmenge has quit [Client Quit]
<Hanmac> Mon_Ouie: PS: overwriting Kernel#Integer does have NO effect for sprintf
erichmenge has joined #ruby
pl_ab has quit [Quit: pl_ab]
<banisterfiend> Hanmac: it calls the raw C function, it's irreleavnt if you override the exposed ruby wrapper
gregorg_taf has quit [Ping timeout: 245 seconds]
dsa has quit [Ping timeout: 272 seconds]
<Hanmac> banisterfiend and if you read my line before you would see that i readed the sourcecode, so i allready know
<banisterfiend> Hanmac: then why was it necessary for you to say that overwriting Kernel#Integer has no effect
<Hanmac> so that others can notic that TOO without reading the cCode
<banisterfiend> Hanmac: also, i thought you had ignored me, Und? oh btw - next pry version we have upgraded slop dependency to 3.0
NotreDev has joined #ruby
<Hanmac> yeah i blocked you, but it seems that i only works one day ... (until we get new ips)
akem has joined #ruby
<banisterfiend> Hanmac: since ou seem to mention the out of date slop dep every other day ;)
deryldoucette has joined #ruby
deryl has quit [Ping timeout: 240 seconds]
deryldoucette is now known as deryl
babonk has joined #ruby
g0bl1n has joined #ruby
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
cesario has joined #ruby
<NotreDev> i'm using code that begins with: require "delayed/command". i want to inspect this lib. how can i tell where it's located (the python equivalent of lib.__file__)
<babonk> Hi all. How does one go about dealing with this type of error: ruby(29356,0x7fff72aee960) malloc: *** error for object 0x7fdc5bce0008: pointer being freed was not allocated
<babonk> *** set a breakpoint in malloc_error_break to debug
<babonk> Abort trap: 6
deryl has quit [Client Quit]
lorandi has quit [Quit: Leaving]
bluenemo_ has quit [Read error: Connection reset by peer]
Guest11890 has joined #ruby
<Hanmac> NotreDev: ruby has __FILE__
<NotreDev> babonk: not too strong on ruby, but that's sounds like you've got a serious kernel issue
<NotreDev> Hanmac: thanks!
<babonk> NotreDev: File.expand_path(File.dirname(__FILE__))
<Mon_Ouie> babonk: Unless you're using a C extension, it's definitely a bug in Ruby
<babonk> Right.. But I wanted to look into it to see whether its an extension or ruby causing the issue
<babonk> and also whether maybe the bug has been patched or is avoidable
zomb1e has joined #ruby
<NotreDev> babonk: unless your ram is volatile; then you'd also begin experiencing kernel panics :)
<Mon_Ouie> Try to create a minimal example that reproduces the issue first
<babonk> k
<Mon_Ouie> You can also do what the error message suggests using gdb, and check the backtrace — though that may not give you a definite answer
<Hanmac> babonk whats your OS?
<babonk> im narrowing down the exact line of code so I should be able to produce that
<babonk> I'm on Mac OS X.
<Hanmac> does ruby only show this three lines or more?
CannedCorn has joined #ruby
bwlang_ has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<babonk> Hanmac: That's all.
<billy_ran_away> Can anyone tell me where I can find up to date documentation on rdebug?
<billy_ran_away> The docs I'm looking at mention at watch command, but that's missing from mine...
<billy_ran_away> And mine has a trace command that's missing from the documentation!
<epochwolf> billy_ran_away: you want the condition command
<babonk> Honestly I want to come back to you guys with a more specific debug
<babonk> will see what i can find
sonicpond has quit [Quit: leaving]
<Hanmac> babonk have you irb too? and does it make a difference?
rvmeier has quit [Quit: Saliendo]
bwlang has quit [Ping timeout: 265 seconds]
bwlang_ is now known as bwlang
<babonk> Hanmac: the issue comes up in a unit test, which I run through ruby -llib:test unit/ping_system_test.rb
<billy_ran_away> epochwolf: Possibly, but I'd have to have an expression evaluate true or false… what I'd really like to do is have it break anytime an expression changes.
schaerli has quit [Remote host closed the connection]
<epochwolf> billy_ran_away: well, you'll have to go dig up some docs somewhere then. I've never had a need to have the debugger do that.
<epochwolf> I have no idea if that's possible or not.
fbernier has quit [Ping timeout: 245 seconds]
<Hanmac> on my system i get multible levels of backtrace information ... (sometimes so much that i cant read it anymore :P)
vlad_starkov has quit [Remote host closed the connection]
<billy_ran_away> epochwolf: Hence why I was asking… I thought it was pretty rude of you to tell me to rtfm, especially if you can't even point me in it's direction.
bluenemo has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<epochwolf> billy_ran_away: and I found something similar in the docs after some quick looking.
fserb has joined #ruby
<NotreDev> hrm. so I called File.expand_path(File.dirname("delayed/command")) and I got the path of the root of my project (/home/ubuntu/myproj/releases/master/delayed"). there isn't a file there named delayed though. when calling require it returns true though. any thoughts on where to go from here?
rippa has quit [Ping timeout: 256 seconds]
dsa has joined #ruby
<NotreDev> i just realized i totally misused that File command. i'm a dumbass. i'm not finding the module properly
<epochwolf> billy_ran_away: you also didn't mention you had read any documentation until after I suggested it.
Xyphy has joined #ruby
mrck has joined #ruby
MasterIdler has joined #ruby
brasten has quit [Quit: brasten]
jedmtnman has quit [Quit: Leaving.]
<billy_ran_away> epochwolf: No after I told you that help trace didn't tell me what trace did you told me to go read it again… but if I jumped the gun in telling you off, sorry, it's just frustrating not to be able to figure out this potentially really powerful tool
scb has joined #ruby
scb has quit [Remote host closed the connection]
hadees has joined #ruby
brasten has joined #ruby
tcopp has left #ruby [#ruby]
Guest11890 is now known as davidw
MrGando has quit [Remote host closed the connection]
davidw has quit [Changing host]
davidw has joined #ruby
Axsuul has joined #ruby
EzeQL has quit [Ping timeout: 252 seconds]
<NotreDev> using ack i've found where the file is located. what was the proper way to do that through ruby? if i just know: require "delayed/command" how was I supposed to find it with .__FILE__
<Hanmac> use an newer ruby and require_relative
babonk_ has joined #ruby
babonk_ has quit [Changing host]
babonk_ has joined #ruby
ShutrBuzz has joined #ruby
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
hool has joined #ruby
babonk has quit [Ping timeout: 252 seconds]
babonk_ is now known as babonk
<billy_ran_away> Why does var global return this: TypeError Exception: can't convert Symbol into String
bwlang_ has joined #ruby
<hool> hi there. i'm new to ruby/rails. i'm trying to specify a line in a Gemfile. when i do a gem list from another server, i see a line rack (1.4.1, 1.1.3)
<hool> how do i specify that version in a gemfile ? i'm getting an error when i try gem "rack","1.4.1,1.1.3"
<billy_ran_away> Is ruby-debug really incapable of displaying symbols?
c0rn has quit [Quit: Computer has gone to sleep.]
vikhyat has quit [Quit: Leaving.]
<Hanmac> hool ask there: #rubyonrails
<hool> ok
simao has joined #ruby
iocor has joined #ruby
<davidcelis> not really a rails specific question; here is fine
twinturbo has quit [Quit: twinturbo]
<hool> true
<epochwolf> hool: gem 'rack', '1.4.1'
<davidcelis> hool: http://gembundler.com has the answers you're looking for
<epochwolf> hool: or you can look at the docs
bwlang has quit [Ping timeout: 250 seconds]
bwlang_ is now known as bwlang
<hool> why would gem list show me two different versions for rack?
<epochwolf> because both are available
<hool> ah. i guess because there are two installed, but only one can be in use
<epochwolf> hool: only one version can be loaded per process but multiple ones can be installed.
<hool> okay, i get it, thanks
rob_ has joined #ruby
rob_ is now known as hoelzro
ShutrBuzz has quit []
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pdtpatrick has quit [Quit: pdtpatrick]
hoelzro is now known as hoelzro|away
ShutrBuzz has joined #ruby
<Hanmac> ignore +StupidBot
zomb1e has quit [Quit: I'm tired. Real tired.]
mikeycgto has quit [Ping timeout: 252 seconds]
simao has quit [Ping timeout: 265 seconds]
ShutrBuzz has quit [Client Quit]
awarner_ has joined #ruby
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
pdtpatrick has joined #ruby
awarner has quit [Read error: Connection reset by peer]
g0bl1n has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
g0bl1n has joined #ruby
ericcoleman has quit [Quit: leaving]
mengu has joined #ruby
Richmond_ has quit [Quit: Leaving]
awarner has joined #ruby
awarner_ has quit [Read error: Connection reset by peer]
hynkle has quit [Quit: hynkle]
bwlang_ has joined #ruby
geekbri has quit [Remote host closed the connection]
<the_jeebster> can a ruby symbol be either a key or value in a hash?
<Mon_Ouie> Any object can be a value in a hash
<Mon_Ouie> Any object that implements #eql? and #hash correctly can be a key
<the_jeebster> Mon_Ouie: schweet, thanks
AtoxHybrid has quit [Remote host closed the connection]
bwlang has quit [Ping timeout: 252 seconds]
bwlang_ is now known as bwlang
awarner_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
artOfWar_ has quit [Remote host closed the connection]
<billy_ran_away> Is there a way to find out where a variable is changing?
<billy_ran_away> I want rdebug to stop when a certain condition is true
davidpk has joined #ruby
tommyvyo has joined #ruby
awarner has quit [Ping timeout: 248 seconds]
dev_ has joined #ruby
yxhuvud has quit [Ping timeout: 245 seconds]
gregorg_taf has joined #ruby
baroquebobcat_ has joined #ruby
carloslopes has quit [Quit: Leaving]
railrubix has joined #ruby
<railrubix> hi
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat_ is now known as baroquebobcat
EzeQL has joined #ruby
ryan0x2 has quit [Remote host closed the connection]
<railrubix> I get an error when trying to run "rails server"
<railrubix> script/rails:6:in `require': no such file to load -- rails/commands (LoadError) from script/rails:6:in `<main>'
michaelmartinez has left #ruby [#ruby]
<railrubix> any ideas how to fix that?
rmascarenhas has quit [Quit: leaving]
stewart_ has joined #ruby
ZachBeta has joined #ruby
<chienpo> You might have a rails app but not have the rails gem installed correctly. What do you see when you run `gem list`
<Hanmac> railrubix, whats your ruby and whats your rails version?
dsa has quit [Ping timeout: 245 seconds]
internet_user has quit [Remote host closed the connection]
<railrubix> chienp: I see a list of gems with versions
mjb2k has joined #ruby
<xclite> :railrubix I think the point there was do you see rails with a version?
<railrubix> Hanmac: ruby 1.9.2p290 and rails (3.2.5, 3.2.2)
<railrubix> xclite: ah, I didn't get it ;)
<chienpo> Does your list include the same version of rails as what your rails app uses? (listed in your "Gemfile" if its is rails 3 and above)
siksia has quit [Read error: Connection reset by peer]
siksia has joined #ruby
<railrubix> my gemfile has: gem 'rails', '3.2.2'
nfk has quit [Quit: yawn]
<Hanmac> is the script/rails file shiped with rails or is it your file?
<chienpo> railrubix: what happens if you run `bundle exec rails server` ?
banisterfiend has quit [Read error: Connection reset by peer]
<railrubix> Hanmac: it looks exactly as generic
mneorr_ has joined #ruby
mxweas_ has joined #ruby
<Hanmac> so it its yours right?
<davidcelis> railrubix: `bundle exec rails s`
dnyy has joined #ruby
<davidcelis> railrubix: you don't need to prefix "rails" with "script", by the way
Morkel has quit [Quit: Morkel]
jrallison has quit [Quit: Computer has gone to sleep.]
<railrubix> C:/Ruby192/bin/rails:19:in `load': no such file to load -- C:/Ruby192/lib/ruby/gems/1.9.1/specifications/bin/rails (LoadError) from C:/Ruby192/bin/rails:19:in `<main>'
jrallison has joined #ruby
<Hanmac> if the "script/rails" file is selfwritten then i think its not ready for ruby1.9.2+ yet
<railrubix> I get that ^^^
mneorr has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby
<railrubix> Hanmac: it looks exactly as the one if I do rails new Project
timonv has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
alexim has joined #ruby
libertyprime has quit [Quit: Lost terminal]
bwlang_ has joined #ruby
Boohbah has joined #ruby
libertyprime has joined #ruby
counterbeing has quit [Quit: Computer has gone to sleep.]
lockweel has joined #ruby
Y0Gi has joined #ruby
<railrubix> so what could be the problem?
<Y0Gi> hi. I've seen this in a few, official-looking places: ruby -rubygems -e 'require "foolib"'
sbanwart has quit [Ping timeout: 265 seconds]
<chienpo> It looks like your LOAD_PATH doesn't have your gems in it
libertyprime has quit [Client Quit]
bwlang has quit [Ping timeout: 245 seconds]
bwlang_ is now known as bwlang
<Y0Gi> however, I get "ruby: no such file to load -- ubygems (LoadError)"
robacarp_ has joined #ruby
<burgestrand> Y0Gi: it used to be necessary, in ruby 1.8, it is no longer required when using ruby 1.9
<Y0Gi> according to the manpage, the "-r" switch specifies a lib
libertyprime has joined #ruby
<Y0Gi> so shouldnt it be "-rrubygems" instead?
robacarp_ is now known as Guest20337
libertyprime has quit [Client Quit]
<chienpo> There is a specially-named "ubygems" lib so you can do -rubygems
<Y0Gi> burgestrand: yeah, I remember that rubygems got included since ruby1.9
<burgestrand> Y0Gi: that ought to work too, but I believe ubygems should also work, as it was added for aesthethic reasons :)
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<railrubix> chienpo: you mean I don't have LOAD_PATH?
libertyprime has joined #ruby
<Y0Gi> chienpo, burgestrand: omg, ok then :)
<Y0Gi> what an ugly hack ;)
tommyvyo has joined #ruby
<burgestrand> :d
<Y0Gi> but saves me from submitting patches on github ;)
GuidovanPossum has left #ruby [#ruby]
<Y0Gi> I guess it only works on ruby 1.9 anyway?
apeiros_ has joined #ruby
Aaton is now known as Aaton_off
<chienpo> What do you see when you run: ruby -e 'puts $LOAD_PATH'
<Y0Gi> whatever, my current issue is this: I use SASS on debian wheezy, installed it using the package system, and it depends on ruby1.8
babonk has quit [Quit: babonk]
robacarp has quit [Ping timeout: 260 seconds]
<Y0Gi> since, like, today, /usr/bin/scss tells me "LoadError: no such file to load -- listen"
<Boohbah> Y0Gi: yes, debian provides out-of-date ruby and gems
wangr has quit [Ping timeout: 260 seconds]
libertyprime has quit [Client Quit]
<Y0Gi> chienpo: it spills out some ruby 1.8 paths
<Boohbah> Y0Gi: recommend building from source with rvm or ruby-build/rbenv
libertyprime has joined #ruby
billy_ran_away has quit []
<railrubix> chienpo: I see a list of 8 items (not sure what I'm looking for)
<Y0Gi> strange.
<Y0Gi> chienpo: sorry, though you were referring to me
<Boohbah> Y0Gi: install gems with the gem command and not apt
<Y0Gi> Boohbah: I installed the rubygems package and now I have /usr/bin/gem1.8
<Y0Gi> where should 'gem' originate from?
<burgestrand> Y0Gi: I believe it should work on 1.8 too with ubygems, but considering ruby is installed with apt it’s not surprising that it does not work
<Y0Gi> (besides, installin from source)
<xclite> ruby + gems with apt is such a mess
<mjb2k> same thing on ubuntu
niklasb has quit [Quit: WeeChat 0.3.7]
<Y0Gi> well, I was surprised to see sass working out-of-the-box myself
<xclite> just dumped Debian for that reason :\
<Boohbah> Y0Gi: yes, that path leads to madness
<shevy> yay
<Y0Gi> and now I'm surprised it's broken again ;)
<shevy> DIE, debian, DIE
<mjb2k> But Ubuntu at least has ruby1.9 package, does Debian not?
<xclite> it does
<xclite> but the way they split things off and how things are packaged makes getting the right versions of everything to play along right is awful
<shevy> Y0Gi the name is non standard. gem binary or rather the name, is usually just gem. I am sure on your system you have a gem symlink that points to gem1.8
libertyprime has quit [Client Quit]
<mjb2k> on Ubuntu I isntalled ruby1.9.1 and only used gem1.9 command to install gems, works fine that way
<shevy> Y0Gi in 1.8.7 versions and below, rubygems is an addon
<Y0Gi> I'll try 1.9.1 again
<Y0Gi> shevy: yeah, installed that already
<shevy> in ruby 1.9.x, rubygems is integrated. debian splits it out though, those bastards
<mjb2k> oh for shame Debian!!
<burgestrand> Doesn’t debian actually distribute a modified version of rubygems, too?
libertyprime has joined #ruby
<shevy> you can try the source install for rubygems
<apeiros_> yes, one where you can't update rubygems from rubygems itself
<xclite> I dunno. I got sick of wrestling with it
b3gott3n has quit [Ping timeout: 252 seconds]
<burgestrand> Ah yes, I suppose it’s possible they removed the ubygems.rb file as well then :(
<shevy> nope, that link does not work... one moment
bwlang has quit [Ping timeout: 244 seconds]
<shevy> alright, that one: http://rubyforge.org/projects/rubygems/
mneorr_ has quit [Remote host closed the connection]
<shevy> whoa... they even modified rubygems in ways to ensure that it breaks functionality?
<Y0Gi> yeah, seems rather messy
<shevy> someone shoot down those bastards please
<Y0Gi> why don't you guys step up and fix package maintenance? :)
<Y0Gi> hm, what's the native(?) "mkmf" extension?
mneorr has joined #ruby
artm has quit [Quit: artm]
<shevy> Y0Gi but for ruby, the easy way to install addons is via "gem", gem install foo. that works very well in most cases
<Boohbah> Y0Gi: why don't you use rvm or ruby-build/rbenv ?
catcher has joined #ruby
catcher has left #ruby ["Ex-Chat"]
<shevy> Y0Gi to fix package maintenance for all programs, one would need to use a package/system manager of some sorts
artm has joined #ruby
<Y0Gi> shevy, Boohbah: I installed ruby1.9.1 for now, but "gem install listen" failed
awarner_ has quit [Remote host closed the connection]
akem has quit [Ping timeout: 240 seconds]
digitalcakestudi has joined #ruby
<chienpo> Debian's ruby package maintainer doesn't like where rubygems likes to put files by default since it doesn't follow the "Filesystem Hierarchy Standard" (http://www.pathname.com/fhs/)
<shevy> Y0Gi, what works not so bad is machomebrew for os x at least, see here for their activity: https://github.com/mxcl/homebrew/commits/master/Library/Formula
<mjb2k> i think you need to use "gem1.9" if you installed ruby1.9.1
<shevy> and it is written in ruby (although it is odd ...)
akem has joined #ruby
<shevy> they put the data of programs directly into .rb files. I dont like that too much :/
<chienpo> Hence the deliberately-broken debian/ubuntu version of rubygems included with the ruby apt packages
<Y0Gi> mjb2k: yeah, I actually did
<Y0Gi> chienpo: ok, that's at least some reason
<shevy> def options
<shevy> [["--universal", "Build a universal binary."]]
<burgestrand> Y0Gi: what do you mean with “hm, what's the native(?) "mkmf" extension?”
<Y0Gi> burgestrand: I was referring to the error message just I pasted
<shevy> that sounds as if debian ripped out mkmf.rb
<Boohbah> Y0Gi: why don't you use rvm or ruby-build/rbenv ?
<Y0Gi> Boohbah: I'd prefer to go with my package systems if possible to stay updated and don't have two (or more) disconnected ruby installs all over the place
fserb has quit [Quit: ttyl]
<burgestrand> Y0Gi: ah, mkmf is part of ruby’s standard library… usually
<Y0Gi> Boohbah: what exactly is rvm anyway?
<Y0Gi> I might not have -dev packages yet
<burgestrand> Y0Gi: rvm/rbenv is the accepted way of installing and maintaining ruby installations that works and are not horribly out of date
<mjb2k> "Ruby Version Manager" ?
fserb has joined #ruby
<burgestrand> Y0Gi: even though it sounds like it’s mostly suited for multiple ruby installations only, that is not so, it’s awfully useful even if you only ever use a single installation of ruby
<burgestrand> essentially they are both tools to manage your ruby installation, an alternative to using the package managers
<Boohbah> Y0Gi: rvm is aware of the version of ruby installed by apt, and it makes things so much easier
<vonsar> its also good practice for when you do need multiple ruby versions
<Y0Gi> I guess rvm's not available as a .deb? ;)
<burgestrand> unfortunately they also make the entry to ruby even more confusing for a newcomer, as if the broken packages weren’t enough :p
<Y0Gi> yeah
xclite has quit [Quit: Leaving]
<vonsar> the instructions on their website are pretty thorough
<mjb2k> I actually didn't like RVM at all as a ruby newbie
<Y0Gi> I have to admit that virtualenv and pip do a great job in the Python world, but gem handling always got me headaches
foofoobar has quit [Quit: bb]
<Boohbah> Y0Gi: that's because debian/ubuntu break it
<Y0Gi> might be
jrist is now known as jrist-afk
<Y0Gi> here we go: with ruby1.9.1-dev instaling gems with compiling native ones work, and so does SASS/SCSS when changing the interpreter to 1.0
<Y0Gi> *1.9
<Y0Gi> and I have a strong feeling that I've already been down this road :/
<Y0Gi> thanks for the pointer to rvm, I guess that will come in handy soon nevertheless
iamjarvo has quit [Quit: Leaving.]
minijupe has quit [Quit: minijupe]
etank has quit [Ping timeout: 246 seconds]
<chienpo> Y0Gi: I also recommend that you bite the bullet and use rvm or rbenv (I prefer rbenv now)
oooPaul has joined #ruby
ajonsson has quit [Quit: ajonsson]
thecreators has joined #ruby
<Y0Gi> chienpo: the latter sounds like an equivalent to virtualenv (a virtual app environment with a certain interpreter version and "locally" installed packages)
davidw has quit [Ping timeout: 245 seconds]
<chienpo> Y0Gi: Yeah, since they do similar things I suspect they've got quite a bit in common.
<shevy> mjb2k, I still dont like RVM either. I think it adds an extra layer over the problem that linux is unable to deal with multiple programs installed in the same prefix. in gobolinux, every program gets its own directory, so running multiple ruby versions is as simple as with RVM (the two dont have the same goals though, RVM has much more attention for ruby, gobolinux on all programs instead)
stephenjudkins has joined #ruby
the_jeebster has quit [Quit: Leaving.]
joshman_ has joined #ruby
<shevy> btw Y0Gi in 1.8.7 mkmf.rb should be at /usr/lib/ruby/1.8/mkmf.rb
<shevy> ah
<shevy> you are on 1.9.x I forgot... hmm
<shevy> perhaps /usr/lib/ruby/1.9.1/mkmf.rb ?
c0rn has joined #ruby
mdhopkins has quit [Quit: mdhopkins]
Guest20337 is now known as robacarp
dcolebatch2 has joined #ruby
mvangala has quit [Remote host closed the connection]
etank has joined #ruby
true_techie has joined #ruby
zommi has quit [Remote host closed the connection]
<true_techie> can someone tell me what this does? :method => :delete
<banisterfiend> true_techie: you're not giving any context, so no one can tell u
<mjb2k> fail to compile
mdw has quit [Ping timeout: 245 seconds]
<true_techie> banisterfiend, what is the name of this operater? =>
<mjb2k> oh wait, i read it wrong sorry, lol
<true_techie> or symbol..
<Boohbah> hashrocket
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<banisterfiend> true_techie: it associate a hash key with a value
<Boohbah> 1.8 hash syntax
shtirlic_ has quit [Read error: Connection reset by peer]
Aaton_off is now known as Aaton
<mjb2k> :method => :delete is the same as hash{ :method => :delete }, right?
<Boohbah> shevy: i believe gentoo supports installing multiple versions of the same program, but i'm not sure how they handle ruby
shtirlic has joined #ruby
<shevy> Boohbah yeah I think via elinks or something
<shevy> but I think it works via symlinks too, so it's the same way as RVM solves this problem and gobolinux too :(
<shevy> and debian uses symlinks in /etc/alternatives
jrallison has quit [Quit: Computer has gone to sleep.]
<shevy> rking should know, he uses gentoo. but he is not here right now
<mjb2k> on Ubuntu I have ruby 1.8 and 1.9 running side by side without any real issue, no RVM needed
PaciFisT has quit [Quit: Leaving.]
bluenemo has quit [Remote host closed the connection]
jrallison has joined #ruby
<shevy> mjb2k and how is this done?
<mjb2k> multiple versions just take a little more work
noganex has quit [Ping timeout: 240 seconds]
mutewinter has joined #ruby
balki_ has joined #ruby
alanp_ has joined #ruby
<mjb2k> the ruby and ruby 1.9.1 packages installed to different prefixes and I setup my links in /usr/bin the way i wanted, such as mv ruby ruby1.8, link ruby1.9 > ruby
alanp has quit [Read error: Operation timed out]
<mjb2k> at least I think that's all it took, oh and I had to change up the links for gem/gem1.9 too
siksia has quit [Ping timeout: 256 seconds]
noganex has joined #ruby
balki has quit [Read error: Operation timed out]
mdw has joined #ruby
siksia has joined #ruby
AxonetBE has quit [Quit: Leaving.]
railrubix has quit []
<shevy> yeah, with different prefixes it is easy. RVM does that too as far as I know, the prefix they use is in the $HOME dir of the user, unless I am mistaken
polysics has joined #ruby
apeiros_ has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 252 seconds]
Gavilan has quit []
hadees has quit [Ping timeout: 265 seconds]
<shevy> which is also how gobolinux got started back then, http://www.gobolinux.org/?page=doc/articles/clueless the part: "I work in an university environment, and I have for many years. There, I am not the superuser, so I have to install every extra app I need in my $HOME directory." sadly, hisham does not have the time anymore :(
lessless has quit [Remote host closed the connection]
jackiechan0 has quit [Quit: Sto andando via]
<mjb2k> yep, fired up the old VM to make sure, on Ubuntu gem ruby package installed to "/usr/lib/ruby/1.8", the ruby1.9.1 package installed to "/usr/lib/ruby/1.9.1"
<polysics> hi! anyone knows why Bundler says it is installing a gem that has a :git source, but the app would then not find it_
<polysics> ?
booginga has quit [Quit: Leaving]
ping-pong has joined #ruby
<shevy> mjb2k cool
ZachBeta has quit [Quit: Computer has gone to sleep.]
one8zero has joined #ruby
bitsar has joined #ruby
<shevy> no idea about bundler. there are folks on #bundler who might know more about it
vonsar has quit [Ping timeout: 245 seconds]
one8zero has left #ruby [#ruby]
axl_ has quit [Quit: axl_]
<polysics> yes, but there are less of them :)
werdnativ has joined #ruby
<shevy> yeah
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
<shevy> perhaps someone here can help ya
<shevy> I am biased. bundler should disband :)
<polysics> I will ask :)
jrallison has quit [Quit: Computer has gone to sleep.]
<polysics> mind if I ask why?
kevinbond has joined #ruby
PragCypher has quit [Quit: Leaving]
<shevy> I dont think it solves any problem that should be solved in the way bundler attempts to solve it. gem is nice and works. I also had bundler give me problems where it did not work
gmvsea has joined #ruby
jchauncey has quit [Quit: jchauncey]
hool has left #ruby [#ruby]
chson has quit [Remote host closed the connection]
<shevy> polysics, also a recent problem banisterfiend had with bundler https://gist.github.com/11b681a7fafa2c9dd741 and he was not happy with this :)
<polysics> I had not ye had problems with Bundler, they are cropping up now
mxweas_ has quit [Quit: Computer has gone to sleep.]
<Boohbah> shevy: how does gem implement the functionality of a Gemfile?
<Y0Gi> shevy: I already solved the mkmf issue by installing the missing header files so it could be compiled
<shevy> Y0Gi nice
artOfWar has joined #ruby
<banisterfiend> Y0Gi: be caerful of shevy, he's a violent drunk
<mjb2k> newbie question: does bundler do anything other than install gems listed in the Gemfile?
<shevy> Boohbah dunno. a .gemspec file just contains a description of the package
<shevy> and has an option to list its imminent dependencies
<polysics> Bundler does a few neat things. Like all automated tools, it can be cryptic
locriani has quit [Read error: Connection reset by peer]
<shevy> let me show you what banisterfiend wrote ;)
<shevy> <banisterfiend> somehow bundler is getting in the way but i didnt ask bundler to do a damn thing
<shevy> I am going to write that down in my collection of epic quotes
daniel_hinojosa has quit [Quit: Leaving.]
dv310p3r has quit [Read error: Operation timed out]
flip_digits has joined #ruby
<shevy> gotta sleep, almost 30 minutes past midnight :( cya
<burgestrand> mjb2k: it allows you to lock your application down to specific versions of gems, and also allows you to specify a local location to install your gems in instead of on your entire system (globally)
iamjarvo has joined #ruby
lockweel has quit [Ping timeout: 252 seconds]
<eph3meral> mjb2k, it manages your gem versions for you
<eph3meral> mjb2k, so you can use diff versions of the same gem in diff projects
<burgestrand> if you require bundler in your application, it will make sure the correct versions are required — it also does a lot of dependency resolution, keeping track of which gems you may install given your current combination of gems and their dependencies
<eph3meral> mjb2k, bundler will automagically select the proper version when you run your app, based on what's in your Gemfile.lock
eywu has joined #ruby
<eph3meral> mjb2k, that is, as burgestrand said, if you require bundler in your application
<burgestrand> mjb2k: so, if two gems (A and B) depend on gem C, but gem B is not compatible with the latest release of gem C (but A is), it will use a version of gem C that they are both compatible with
<mjb2k> ah ok, so if one app installs awesome-gem, all your other apps dont get awesome-gem?
billiamii has quit []
<burgestrand> mjb2k: it gives you that option, yes, most people just install gems globally with bundler anyway :)
<burgestrand> mjb2k: also, don’t require bundler in any of your gems, it will wreak havoc of users using your gem if they also use bundler
<Boohbah> i install gems per-application with rvm gemsets :)
<mjb2k> burgestrand: great explaination, thanks
<burgestrand> use bundler in applications, not libraries
brasten has quit [Quit: brasten]
ph^ has quit [Remote host closed the connection]
Vert has joined #ruby
fantazo_ has joined #ruby
amacgregor_osx has joined #ruby
brasten has joined #ruby
Vainoharhainen has joined #ruby
artOfWar has quit [Ping timeout: 252 seconds]
jgarvey has quit [Quit: Leaving]
mdw has quit [Read error: Connection timed out]
axl_ has joined #ruby
<eph3meral> Boohbah, gemsets are actually defunct now, unless *maybe* you need to support legacy apps that are stuck on old versions of bundler for some reason
<eph3meral> Boohbah, the need for gemsets was because of a bug that has been fixed as of bundler 1.x
fantazo has quit [Ping timeout: 244 seconds]
<eph3meral> Boohbah, rvm itself though is still quite nice
zemanel has quit [Quit: Remote hottie closed the connection]
<eph3meral> although, also, to be fair, what you should *probably* be doing is building your own system packages for your distro, be it .rpm or .deb and installing those
<Boohbah> eph3meral: interesting, any links where i can read about this?
<eph3meral> Boohbah, on the bundler site I'm sure, in the release notes somewhere
<eph3meral> Boohbah, not sure exatly what you should google for, sorry
<eph3meral> Boohbah, "bundler vs gemsets" maybe?
<eph3meral> i dunno
<Boohbah> regarding distribution pacakges for gems, rvm is so much easier
<eph3meral> rvm != gems
<eph3meral> rubygems = gems
corburn has joined #ruby
mdw has joined #ruby
<Boohbah> s/rvm/gem/ sorry
mikepack has quit [Remote host closed the connection]
<eph3meral> sooo, regarding distribution pacakges for gems, gem is so much easier
<eph3meral> easier than?
mikepack has joined #ruby
<Boohbah> easier to let gem handle gems than my distro package manager
simao has joined #ruby
<eph3meral> easier to let bundler handle gems than either of those :P
<eph3meral> which is fine, you can still make a package for ruby and a package for rubygems
<eph3meral> or just a package for ruby, really, install rubygems manually
<eph3meral> the .deb for rubygems is screwed up, cuz it's locked down, so you can't do --update
<Boohbah> right, bundler, i am still pretty new to it
fserb has quit [Quit: ttyl]
Haydos has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
artOfWar has joined #ruby
artOfWar has quit [Read error: Connection reset by peer]
artOfWar has joined #ruby
simao has quit [Ping timeout: 265 seconds]
artOfWar_ has joined #ruby
fantazo_ has quit [Remote host closed the connection]
ryan0x2 has joined #ruby
Foxandxss has joined #ruby
Criztian has quit [Remote host closed the connection]
kirun_ has quit [Quit: Client exiting]
beilabs has joined #ruby
Sheehan has quit [Quit: Sheehan]
artOfWar has quit [Ping timeout: 244 seconds]
n1x has quit [Read error: Operation timed out]
dcolebatch2 has quit [Quit: seacrest out]
mjb2k has quit [Quit: Leaving]
ZachBeta has joined #ruby
trvr has quit [Quit: WeeChat 0.3.7]
ryan0x2 has quit [Remote host closed the connection]
ping-pong has quit [Remote host closed the connection]
uris has quit [Quit: leaving]
bbttxu has quit [Ping timeout: 244 seconds]
piglittlepuffpuf has joined #ruby
indian has quit [Ping timeout: 250 seconds]
carlyle has quit [Read error: Operation timed out]
ping-pong has joined #ruby
Chryson has joined #ruby
blacktulip has quit [Remote host closed the connection]
fserb has joined #ruby
fserb has quit [Client Quit]
mdw has quit [Read error: Connection reset by peer]
<eph3meral> Boohbah, yeah, rails uses bundler by default, so it's pretty common to know about, but... not everyone does rails
mdw has joined #ruby
indian has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
pooya72 has quit [Quit: pooya72]
<Boohbah> eph3meral: i started learning rails last week :)
<eph3meral> Boohbah, cool, rails is nice
<eph3meral> Boohbah, I'm less of a rails fan though, these days anyway
<Boohbah> luckily i studied ruby for a few months before that
<eph3meral> Boohbah, I prefer simpler stuff, like sinatra
<eph3meral> Boohbah, faster, more lightweight
<Boohbah> yes, sinatra looks nice also
luxurymode has quit [Quit: Computer has gone to sleep.]
<Boohbah> i am going to learn them all so that i have options
<eph3meral> Boohbah, no reason you can't include whatever other gems you want, like ActiveRecord if you want it
<eph3meral> Boohbah, sure
schovi has quit [Remote host closed the connection]
<bricker88> can child classes access their parent class's private methods?
<eph3meral> bricker88, afaik, access, yes, override, no
<bricker88> thank you
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
artm has quit [Quit: artm]
<gmvsea> private method cannot have a receiver, that is the only restriction i know
mdw has quit [Read error: Connection reset by peer]
zomb1e has joined #ruby
libertyprime has quit [Quit: Lost terminal]
eywu has quit [Quit: Leaving.]
libertyprime has joined #ruby
xaq has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
azm has quit [Ping timeout: 250 seconds]
<Boohbah> bricker88: http://pastie.org/4034668
<Boohbah> bricker88: http://pastie.org/4034671
ZachBeta has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<bricker88> Boohbah: I see, thank you, that is exactly what I was looking for
jenrzzz-mac has quit [Ping timeout: 244 seconds]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
Paradox has left #ruby [#ruby]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
mneorr has joined #ruby
mikepack has joined #ruby
bluenemo has quit [Remote host closed the connection]
zomb1e has quit [Quit: I'm tired. Real tired.]
jenrzzz-mac has joined #ruby
cbuxton has quit [Ping timeout: 244 seconds]
cbuxton has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
eywu has joined #ruby
wvms has quit [Read error: Connection reset by peer]
freeayu1 has joined #ruby
freeayu__ has joined #ruby
itnomad has quit [Quit: Leaving]
freeayu__ has left #ruby [#ruby]
freeayu1 has left #ruby [#ruby]
freeayu1 has joined #ruby
freeayu1 has quit [Client Quit]
yonggu_ has quit [Remote host closed the connection]
freeayu has joined #ruby
anykey has joined #ruby
yonggu has joined #ruby
anykey is now known as any-key
michaelmartinez has joined #ruby
andrewhl has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
<dekz> so Object.new ends up calling #initialize, how would this be written in ruby itself (allocate object then call initialise?)
joast has quit [Ping timeout: 244 seconds]
Sheehan has joined #ruby
rorrego has quit [Quit: Ex-Chat]
Foxandxss has quit [Ping timeout: 245 seconds]
gmvsea has quit [Read error: Connection reset by peer]
<any-key> in the C api?
beilabs has quit [Quit: Leaving]
vitor-br has joined #ruby
bbttxu has joined #ruby
<dekz> any-key: no through ruby. Just found Class.allocate :)
<any-key> hmmm
eywu has quit [Quit: Leaving.]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
banseljaj is now known as imami|afk
peregrine81 has quit [Quit: Computer sleeping.]
<dekz> any-key: this is what I'm talking about
locriani has joined #ruby
* Sigma00 presses any-key
billiamii has joined #ruby
<Sigma00> <_< *returns to work*
mneorr has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
polysics has quit [Ping timeout: 252 seconds]
Foxandxss has joined #ruby
hasrb has joined #ruby
keithcelt has quit [Remote host closed the connection]
ramblex has quit [Quit: ramblex]
tvw has quit [Remote host closed the connection]
Tomasso has quit [Ping timeout: 245 seconds]
polysics has joined #ruby
brianpWins has quit [Quit: brianpWins]
stephenjudkins has quit [Quit: stephenjudkins]
stephenjudkins has joined #ruby
khakimov has joined #ruby
jenrzzz-mac has joined #ruby
dsa has joined #ruby
qwerxy has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
piotr__ has quit [Ping timeout: 260 seconds]
linusoleander has quit [Quit: linusoleander]
ryan0x2 has joined #ruby
maccosmo_ has joined #ruby
dr_diamond has joined #ruby
EzeQL has quit [Ping timeout: 248 seconds]